@arcgis/charts-components 5.2.0-next.60 → 5.2.0-next.62
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.
- package/dist/cdn/{BXBY6D2F.js → 3IUZSUBJ.js} +1 -1
- package/dist/cdn/{DPTA2AET.js → 4DXQ255M.js} +1 -1
- package/dist/cdn/{67QYTLMM.js → 4F2MTKVF.js} +1 -1
- package/dist/cdn/4HNA5BEL.js +2 -0
- package/dist/cdn/{PLEC3GNT.js → 4II4V3R4.js} +1 -1
- package/dist/cdn/{ZWIF7LHW.js → 4SV3ARJE.js} +1 -1
- package/dist/cdn/{WTJ2NJ76.js → 5K4LYQAP.js} +1 -1
- package/dist/cdn/{2RYKKN36.js → 65QZ37RL.js} +1 -1
- package/dist/cdn/{O3VKOV2W.js → 6T37GQMM.js} +1 -1
- package/dist/cdn/{4COV22K4.js → 6ZJ4DH7D.js} +1 -1
- package/dist/cdn/{LGTXQIF7.js → 7H7MFSEY.js} +1 -1
- package/dist/cdn/{3YCGBAQY.js → 7JW7BKCY.js} +1 -1
- package/dist/cdn/{GARBFC7Q.js → 7Q5SYLKV.js} +1 -1
- package/dist/cdn/{BLZLMGO6.js → AJAOQCPS.js} +1 -1
- package/dist/cdn/{3AYXOX4U.js → AMM6O6DA.js} +1 -1
- package/dist/cdn/{JBFVGQSP.js → BIABAOQA.js} +1 -1
- package/dist/cdn/{Y5ZH7VS4.js → BP3IZMZQ.js} +1 -1
- package/dist/cdn/{WFW6BNDT.js → CNIDLTWS.js} +1 -1
- package/dist/cdn/{DGV6S2W3.js → CUW7EDSM.js} +1 -1
- package/dist/cdn/{QZCTLQBM.js → D5IKYXWS.js} +1 -1
- package/dist/cdn/DA4QOTYN.js +2 -0
- package/dist/cdn/{XM2GVJT3.js → DQXO7PWX.js} +1 -1
- package/dist/cdn/{6MNV7FJC.js → DT4C4JZW.js} +1 -1
- package/dist/cdn/{SYVPFDIW.js → EEF2GZWF.js} +1 -1
- package/dist/cdn/ELRXL4GL.js +2 -0
- package/dist/cdn/{6DOANSRL.js → FLA3PJ5I.js} +18 -18
- package/dist/cdn/{EUOJG5H6.js → FZOZWZSG.js} +1 -1
- package/dist/cdn/{AYUYEY5H.js → G3I2WY7S.js} +1 -1
- package/dist/cdn/{MJTWR33N.js → GK3ESMF2.js} +1 -1
- package/dist/cdn/{I3XBTQKJ.js → GQKDPSP6.js} +1 -1
- package/dist/cdn/{Z3LGGHZN.js → GRIVRWCF.js} +1 -1
- package/dist/cdn/{OWWQ5SYW.js → HHZSG3K6.js} +1 -1
- package/dist/cdn/{ZGBULDPL.js → IB5R6XBE.js} +1 -1
- package/dist/cdn/{EOHKNJSJ.js → INSAYWFB.js} +1 -1
- package/dist/cdn/{ZLXYBOM3.js → IP7NR32G.js} +1 -1
- package/dist/cdn/IPMFDZBI.js +2 -0
- package/dist/cdn/{JGESKW6S.js → JBO56HPJ.js} +1 -1
- package/dist/cdn/{RICA7GJM.js → JE4ZLQEX.js} +1 -1
- package/dist/cdn/JT2CHRVO.js +2 -0
- package/dist/cdn/JYS5HVHP.js +2 -0
- package/dist/cdn/{HOIPLQXD.js → KBMGQ3H6.js} +1 -1
- package/dist/cdn/{EAV3KAS7.js → KO6XLCKT.js} +1 -1
- package/dist/cdn/LK7Y2TPS.js +2 -0
- package/dist/cdn/{5YP7P6S3.js → LNMXGS7N.js} +1 -1
- package/dist/cdn/{HUNN3ERX.js → LYLK7H23.js} +1 -1
- package/dist/cdn/{2G65P262.js → MIL4ALAU.js} +1 -1
- package/dist/cdn/{NK66D65H.js → MIMPZBTK.js} +1 -1
- package/dist/cdn/{EMBMJCFZ.js → MN5LEOFQ.js} +1 -1
- package/dist/cdn/{5EYVH3PA.js → MRA3XRKD.js} +1 -1
- package/dist/cdn/{MXE4VPZS.js → MYAMCWA2.js} +1 -1
- package/dist/cdn/{TEWEPSIO.js → N2BF3AIP.js} +1 -1
- package/dist/cdn/{SUNHJPBW.js → NQYCZQ27.js} +1 -1
- package/dist/cdn/{UM7RIOCE.js → NSS4WWO7.js} +1 -1
- package/dist/cdn/{Y2WHHAAA.js → P7VFYZRI.js} +1 -1
- package/dist/cdn/{T62EETHJ.js → PZFM3BRK.js} +1 -1
- package/dist/cdn/PZUVU7CC.js +3 -0
- package/dist/cdn/{SQIKFO32.js → Q376XO5C.js} +1 -1
- package/dist/cdn/{VA6KJZ2Y.js → QGKWF4LR.js} +1 -1
- package/dist/cdn/QS6QHTAG.js +2 -0
- package/dist/cdn/{A36KQ6YP.js → QSFEGKYQ.js} +1 -1
- package/dist/cdn/{M744CFJ2.js → QXN2LIUA.js} +1 -1
- package/dist/cdn/{QTSF2LK7.js → R7VPFCG2.js} +1 -1
- package/dist/cdn/{BKK57XHL.js → S3YPXZ3Y.js} +1 -1
- package/dist/cdn/{J3CL6KB6.js → S7B57I24.js} +1 -1
- package/dist/cdn/{ANHW36VW.js → SSYHOPL2.js} +1 -1
- package/dist/cdn/{DBAM7MH7.js → SYU55EDE.js} +1 -1
- package/dist/cdn/{BHGOAHMJ.js → TGABTYRZ.js} +1 -1
- package/dist/cdn/{WZOHQJFB.js → TGXTKIAA.js} +1 -1
- package/dist/cdn/{JS6A5QAV.js → TRXKI7AQ.js} +1 -1
- package/dist/cdn/{KDCZQ6UT.js → V2POH2WS.js} +1 -1
- package/dist/cdn/{ISK4QVLY.js → VZPJL27P.js} +1 -1
- package/dist/cdn/WOE4UHYG.js +2 -0
- package/dist/cdn/WUUBA4AY.js +2 -0
- package/dist/cdn/{P5QEJOJS.js → X3B7R2CE.js} +1 -1
- package/dist/cdn/{JYITKARU.js → X4RUTR6U.js} +1 -1
- package/dist/cdn/{5MPXETTU.js → X7BEP5KL.js} +1 -1
- package/dist/cdn/{INISFVAK.js → XM6OTYSW.js} +1 -1
- package/dist/cdn/XS5G7ML2.js +2 -0
- package/dist/cdn/{KWA7OWHO.js → YN4QD76O.js} +1 -1
- package/dist/cdn/YQJBJRP7.js +2 -0
- package/dist/cdn/{L7TUV2MY.js → YWJTHRQP.js} +1 -1
- package/dist/cdn/{7DIQIFKR.js → ZOZ72K4S.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/bar-chart-model.js +10 -10
- package/dist/chunks/box-plot-data.js +271 -279
- package/dist/chunks/box-plot-model.js +161 -146
- package/dist/chunks/chart-model.js +1 -1
- package/dist/chunks/class-breaks.js +66 -66
- package/dist/chunks/combo-bar-line-chart-model.js +12 -12
- package/dist/chunks/data.js +1 -1
- package/dist/chunks/gauge-model.js +1 -1
- package/dist/chunks/heat-chart-model.js +25 -25
- package/dist/chunks/histogram-model.js +1 -1
- package/dist/chunks/index2.js +2026 -2088
- package/dist/chunks/index4.js +1 -1
- package/dist/chunks/line-chart-model.js +11 -11
- package/dist/chunks/model-with-x-guides.js +5 -5
- package/dist/chunks/model-with-y-guides.js +33 -48
- package/dist/chunks/pie-chart-data.js +165 -189
- package/dist/chunks/pie-chart-model.js +9 -9
- package/dist/chunks/radar-chart-model.js +7 -7
- package/dist/chunks/scatterplot-model.js +1 -1
- package/dist/chunks/serial-chart-data.js +745 -770
- package/dist/chunks/serial-chart-model.js +19 -11
- package/dist/chunks/utils.js +36 -38
- package/dist/chunks/web-component-utils.js +38 -38
- package/dist/chunks/x-bounds.js +1 -1
- package/dist/components/arcgis-chart/customElement.d.ts +53 -11
- package/dist/components/arcgis-chart/customElement.js +2226 -2210
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +67 -68
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +5 -5
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +171 -172
- package/dist/model/box-plot-model/box-plot-model.d.ts +7 -1
- package/dist/model/heat-chart-model/heat-chart-model.d.ts +20 -0
- package/dist/model/mixins/model-with-multi-axes.d.ts +61 -98
- package/dist/model/serial-chart-model/serial-chart-model.d.ts +12 -1
- package/dist/utils/chart-config/converter/index.js +26 -26
- package/dist/utils/data/categorical-data/index.d.ts +1 -1
- package/dist/utils/data/index.d.ts +1 -2
- package/dist/utils/layer/query-features/index.d.ts +2 -18
- package/dist/utils/layer/query-parser/index.d.ts +1 -2
- package/package.json +3 -3
- package/dist/cdn/3UHXOKCR.js +0 -2
- package/dist/cdn/54W4C75M.js +0 -2
- package/dist/cdn/6PIQ2O5S.js +0 -2
- package/dist/cdn/7CMQGTU6.js +0 -2
- package/dist/cdn/EBSQRCQQ.js +0 -2
- package/dist/cdn/EDVN42ME.js +0 -2
- package/dist/cdn/H2EMIJME.js +0 -2
- package/dist/cdn/JEVWE6ER.js +0 -2
- package/dist/cdn/O3DJD5IR.js +0 -2
- package/dist/cdn/V5W5LNFT.js +0 -2
- package/dist/cdn/V6LKZUEZ.js +0 -3
- package/dist/cdn/XKZ44LA2.js +0 -2
- package/dist/cdn/YVSZN6IH.js +0 -2
|
@@ -1,205 +1,204 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { substitute as
|
|
3
|
-
import { cloneDeep as
|
|
4
|
-
import { S as
|
|
5
|
-
import { s as
|
|
6
|
-
import { w as
|
|
7
|
-
import { a as
|
|
8
|
-
import { u as
|
|
9
|
-
import { R as
|
|
10
|
-
import { i as
|
|
11
|
-
import { aD as
|
|
12
|
-
import { C as
|
|
13
|
-
import { g as
|
|
14
|
-
import { convertChartSpec as
|
|
15
|
-
import { d as
|
|
16
|
-
import { C as
|
|
17
|
-
import { g as
|
|
18
|
-
import { a as
|
|
19
|
-
const
|
|
2
|
+
import { substitute as w } from "@arcgis/core/intl.js";
|
|
3
|
+
import { cloneDeep as G, isEmpty as Ye, memoize as We } from "lodash-es";
|
|
4
|
+
import { S as ne } from "./common.js";
|
|
5
|
+
import { s as D, u as E, a as Ie, g as ye, b as Le, c as He, d as Xe, e as pe } from "./utils.js";
|
|
6
|
+
import { w as I, i as Ue, dh as W, cn as je, bC as Ke, a$ as De, x as Ze, Y as J, cS as _e, cR as Qe, p as ze, aJ as me, ct as Ge, d as Je, aI as et, I as tt, a7 as st, bx as it, W as at, e as rt, bI as nt, dr as ot, v as lt, dx as fe, cb as ut, dy as ct, c7 as dt, B as yt, N as Se, bL as Z, du as mt, bj as Y, bP as _, ap as U, a6 as Ne, bd as P, bc as gt, k as oe, bt as pt, bB as ft, bs as O, bA as V, bp as Fe, br as xe } from "./index2.js";
|
|
7
|
+
import { a as M, s as ge, g as ee, b as he, c as St } from "./data.js";
|
|
8
|
+
import { u as T, r as v, k as Ft, d as k, n as L, m as H, p as xt, t as ht, s as le } from "./chart-object-literals.js";
|
|
9
|
+
import { R as Oe, i as Tt } from "./rest-js-object-literals.js";
|
|
10
|
+
import { i as te } from "./index4.js";
|
|
11
|
+
import { aD as Bt, K as Q, F as ue, w as Ct, $ as bt, ac as At, ao as vt, A as It, a2 as Lt } from "./index.js";
|
|
12
|
+
import { C as q, F as X, d as R } from "./index3.js";
|
|
13
|
+
import { g as Ve, s as Dt } from "./series-types.js";
|
|
14
|
+
import { convertChartSpec as Nt } from "../utils/chart-config/converter/index.js";
|
|
15
|
+
import { d as ce, f as Ot } from "./type-guards.js";
|
|
16
|
+
import { C as Vt, m as kt } from "./model-setter.js";
|
|
17
|
+
import { g as se } from "./utils2.js";
|
|
18
|
+
import { a as Rt, b as qt } from "./series-length.js";
|
|
19
|
+
const Ds = (s) => {
|
|
20
20
|
let e;
|
|
21
|
-
const t =
|
|
22
|
-
return
|
|
23
|
-
},
|
|
21
|
+
const t = s.series[0];
|
|
22
|
+
return I(t) && (e = t.temporalBinning?.size), e;
|
|
23
|
+
}, wt = (s) => {
|
|
24
24
|
let e;
|
|
25
|
-
const t =
|
|
26
|
-
return
|
|
27
|
-
},
|
|
25
|
+
const t = s.series[0];
|
|
26
|
+
return I(t) && (e = t.temporalBinning?.unit), e;
|
|
27
|
+
}, Ns = (s) => {
|
|
28
28
|
let e;
|
|
29
|
-
const t =
|
|
30
|
-
return
|
|
31
|
-
},
|
|
29
|
+
const t = s.series[0];
|
|
30
|
+
return I(t) && (e = t.temporalBinning?.timeAggregationType), e;
|
|
31
|
+
}, Os = (s) => {
|
|
32
32
|
let e;
|
|
33
|
-
const t =
|
|
34
|
-
return
|
|
35
|
-
},
|
|
33
|
+
const t = s.series[0];
|
|
34
|
+
return I(t) && (e = t.temporalBinning?.trimIncompleteTimeInterval), e;
|
|
35
|
+
}, Vs = (s) => {
|
|
36
36
|
let e;
|
|
37
|
-
const t =
|
|
38
|
-
return
|
|
39
|
-
},
|
|
37
|
+
const t = s.series[0];
|
|
38
|
+
return I(t) && (e = t.temporalBinning?.nullPolicy), e;
|
|
39
|
+
}, Pt = (s, e) => {
|
|
40
40
|
e?.series?.forEach((t) => {
|
|
41
|
-
|
|
42
|
-
}),
|
|
43
|
-
},
|
|
41
|
+
I(t) && (t.temporalBinning ??= {}, t.temporalBinning.size = s);
|
|
42
|
+
}), D({ config: e, value: null, axisIndex: 1, isMax: !1 }), D({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
43
|
+
}, Et = (s, e) => {
|
|
44
44
|
e?.series?.forEach((t) => {
|
|
45
|
-
|
|
46
|
-
}),
|
|
47
|
-
},
|
|
45
|
+
I(t) && (t.temporalBinning ??= {}, t.temporalBinning.nullPolicy = s);
|
|
46
|
+
}), D({ config: e, value: null, axisIndex: 1, isMax: !1 }), D({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
47
|
+
}, ks = (s, e) => {
|
|
48
48
|
e.series?.forEach((t) => {
|
|
49
|
-
|
|
50
|
-
}),
|
|
51
|
-
},
|
|
49
|
+
I(t) && (t.temporalBinning ??= {}, t.temporalBinning.unit = s);
|
|
50
|
+
}), D({ config: e, value: null, axisIndex: 1, isMax: !1 }), D({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
51
|
+
}, Rs = (s, e) => {
|
|
52
52
|
e.series?.forEach((t) => {
|
|
53
|
-
|
|
54
|
-
}),
|
|
55
|
-
},
|
|
53
|
+
I(t) && (t.temporalBinning ??= {}, t.temporalBinning.timeAggregationType = s);
|
|
54
|
+
}), D({ config: e, value: null, axisIndex: 1, isMax: !1 }), D({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
55
|
+
}, qs = (s, e) => {
|
|
56
56
|
e.series?.forEach((t) => {
|
|
57
|
-
|
|
58
|
-
}),
|
|
59
|
-
},
|
|
60
|
-
|
|
57
|
+
I(t) && (t.temporalBinning ??= {}, t.temporalBinning.trimIncompleteTimeInterval = s);
|
|
58
|
+
}), D({ config: e, value: null, axisIndex: 1, isMax: !1 }), D({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
59
|
+
}, Mt = (s) => {
|
|
60
|
+
Pt(0, s);
|
|
61
61
|
};
|
|
62
|
-
var
|
|
63
|
-
for (var
|
|
64
|
-
(n =
|
|
65
|
-
return
|
|
62
|
+
var $t = Object.defineProperty, Yt = Object.getOwnPropertyDescriptor, Wt = (s, e, t, a) => {
|
|
63
|
+
for (var i = Yt(e, t), r = s.length - 1, n; r >= 0; r--)
|
|
64
|
+
(n = s[r]) && (i = n(e, t, i) || i);
|
|
65
|
+
return i && $t(e, t, i), i;
|
|
66
66
|
};
|
|
67
|
-
const
|
|
67
|
+
const Ht = (s) => {
|
|
68
68
|
let e;
|
|
69
|
-
return
|
|
70
|
-
(t.type ===
|
|
71
|
-
}), e || (e =
|
|
72
|
-
},
|
|
73
|
-
const t =
|
|
74
|
-
|
|
75
|
-
(a.type ===
|
|
76
|
-
}), e?.axes?.[0]?.valueFormat.type ===
|
|
69
|
+
return W(s) ? e = s.outTimeZone : s?.series.forEach((t) => {
|
|
70
|
+
(t.type === T.BarSeries || t.type === T.RadarSeries || t.type === T.LineSeries) && t.temporalBinning && (e = t.temporalBinning.outTimeZone);
|
|
71
|
+
}), e || (e = s?.axes?.[0]?.valueFormat.type === T.DateAxisFormat ? s.axes[0].valueFormat.intlOptions.timeZone : void 0), e;
|
|
72
|
+
}, ke = (s, e) => {
|
|
73
|
+
const t = Ue(s);
|
|
74
|
+
W(e) ? s ? e.outTimeZone = t : delete e.outTimeZone : e?.series.forEach((a) => {
|
|
75
|
+
(a.type === T.BarSeries || a.type === T.RadarSeries || a.type === T.LineSeries) && (s ? (a.temporalBinning ??= {}, a.temporalBinning.outTimeZone = t) : a.temporalBinning && delete a.temporalBinning.outTimeZone);
|
|
76
|
+
}), e?.axes?.[0]?.valueFormat.type === T.DateAxisFormat && (s ? e.axes[0].valueFormat.intlOptions.timeZone = t : delete e.axes[0].valueFormat.intlOptions.timeZone);
|
|
77
77
|
};
|
|
78
|
-
class
|
|
78
|
+
class Xt extends Vt {
|
|
79
79
|
/**
|
|
80
80
|
* Gets the time zone for the chart.
|
|
81
81
|
*/
|
|
82
82
|
get timeZone() {
|
|
83
|
-
return
|
|
83
|
+
return Ht(this._config);
|
|
84
84
|
}
|
|
85
85
|
set timeZone(e) {
|
|
86
|
-
|
|
86
|
+
ke(e, this._config), this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"));
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
],
|
|
92
|
-
function
|
|
89
|
+
Wt([
|
|
90
|
+
kt
|
|
91
|
+
], Xt.prototype, "timeZone");
|
|
92
|
+
function ws(s, e) {
|
|
93
93
|
let t;
|
|
94
|
-
return e !== void 0 && (t = { ...e }, t.legend !== void 0 && (t.legend.position =
|
|
94
|
+
return e !== void 0 && (t = { ...e }, t.legend !== void 0 && (t.legend.position = s)), t;
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function Ps(s, e) {
|
|
97
97
|
let t;
|
|
98
|
-
return e !== void 0 && (t = { ...e }, t.legend !== void 0 && (t.legend.visible =
|
|
98
|
+
return e !== void 0 && (t = { ...e }, t.legend !== void 0 && (t.legend.visible = s)), t;
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function Es(s, e) {
|
|
101
101
|
let t;
|
|
102
|
-
return e !== void 0 && (t = { ...e, rotated:
|
|
102
|
+
return e !== void 0 && (t = { ...e, rotated: s }), t;
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function Ut(s) {
|
|
105
105
|
let e;
|
|
106
|
-
return
|
|
106
|
+
return s !== void 0 && (e = { ...s }, delete e.axes?.[0]?.minimum, delete e.axes?.[0]?.maximum, delete e.axes?.[1]?.minimum, delete e.axes?.[1]?.maximum), e;
|
|
107
107
|
}
|
|
108
|
-
function
|
|
109
|
-
return e != null ||
|
|
108
|
+
function Ms(s, e) {
|
|
109
|
+
return e != null || De(s);
|
|
110
110
|
}
|
|
111
|
-
async function
|
|
112
|
-
const { config: e, layer: t, abortSignal: a } =
|
|
113
|
-
let
|
|
114
|
-
return
|
|
111
|
+
async function $s(s) {
|
|
112
|
+
const { config: e, layer: t, abortSignal: a } = s;
|
|
113
|
+
let i = !1;
|
|
114
|
+
return ce(t) || Ot(e) ? e && ce(t) && (i = await Ke({ config: e, layer: t, abortSignal: a })) : i = !0, i;
|
|
115
115
|
}
|
|
116
|
-
async function
|
|
116
|
+
async function jt(s) {
|
|
117
117
|
const {
|
|
118
118
|
queryObject: e,
|
|
119
119
|
chartConfig: t,
|
|
120
120
|
splitByField: a,
|
|
121
|
-
errorStrings:
|
|
122
|
-
abortSignal:
|
|
121
|
+
errorStrings: i,
|
|
122
|
+
abortSignal: r,
|
|
123
123
|
runtimeDataFilters: n,
|
|
124
124
|
ignoreViewExtent: o,
|
|
125
|
-
setTimeBinningInfoWhenNotProvided:
|
|
126
|
-
returnFeaturesExtent:
|
|
125
|
+
setTimeBinningInfoWhenNotProvided: l,
|
|
126
|
+
returnFeaturesExtent: c,
|
|
127
127
|
chartLimits: p
|
|
128
|
-
} =
|
|
129
|
-
let
|
|
130
|
-
const m =
|
|
128
|
+
} = s;
|
|
129
|
+
let g = [], d;
|
|
130
|
+
const m = G(t), y = m.series[0], u = rt({
|
|
131
131
|
queryObject: e,
|
|
132
132
|
chartConfig: m,
|
|
133
133
|
runtimeDataFilters: n,
|
|
134
134
|
ignoreViewExtent: o
|
|
135
135
|
});
|
|
136
|
-
if (
|
|
137
|
-
xAxisValueFormatType:
|
|
138
|
-
setTimeBinningInfoWhenNotProvided:
|
|
139
|
-
seriesConfig:
|
|
136
|
+
if (u.outStatistics?.[0]?.outStatisticFieldName && (u.outStatistics[0].outStatisticFieldName = Bt.outStatistics.outStatisticFieldName), I(y) && nt({
|
|
137
|
+
xAxisValueFormatType: ot(m),
|
|
138
|
+
setTimeBinningInfoWhenNotProvided: l,
|
|
139
|
+
seriesConfig: y,
|
|
140
140
|
queryObject: e
|
|
141
|
-
}) &&
|
|
142
|
-
const { temporalBinning:
|
|
141
|
+
}) && lt(a, e)) {
|
|
142
|
+
const { temporalBinning: S, x: F } = y, { uniqueQuery: x } = fe({
|
|
143
143
|
chartConfig: m,
|
|
144
|
-
queryConfig:
|
|
144
|
+
queryConfig: u,
|
|
145
145
|
queryObject: e,
|
|
146
|
-
setTimeBinningInfoWhenNotProvided:
|
|
147
|
-
returnFeaturesExtent:
|
|
146
|
+
setTimeBinningInfoWhenNotProvided: l,
|
|
147
|
+
returnFeaturesExtent: c,
|
|
148
148
|
chartLimits: p
|
|
149
|
-
}),
|
|
150
|
-
|
|
149
|
+
}), f = t.axes?.[0].valueFormat.type === T.DateAxisFormat ? t.axes[0].valueFormat.intlOptions.timeZone : void 0;
|
|
150
|
+
d = await ut({
|
|
151
151
|
queryObject: e,
|
|
152
|
-
dateField:
|
|
152
|
+
dateField: F,
|
|
153
153
|
splitByField: a,
|
|
154
|
-
queryConfig:
|
|
155
|
-
axisTimeZone:
|
|
156
|
-
temporalBinning:
|
|
157
|
-
errorStrings:
|
|
158
|
-
abortSignal:
|
|
159
|
-
}),
|
|
154
|
+
queryConfig: x,
|
|
155
|
+
axisTimeZone: f,
|
|
156
|
+
temporalBinning: S,
|
|
157
|
+
errorStrings: i,
|
|
158
|
+
abortSignal: r
|
|
159
|
+
}), g = Array.from(
|
|
160
160
|
new Set(
|
|
161
|
-
|
|
162
|
-
const { stackedAttributes:
|
|
163
|
-
let
|
|
164
|
-
return
|
|
161
|
+
d.flatMap((A) => {
|
|
162
|
+
const { stackedAttributes: b } = A;
|
|
163
|
+
let B = [];
|
|
164
|
+
return b && (B = b.map((C) => C[a]).filter((C) => C !== void 0)), B;
|
|
165
165
|
})
|
|
166
166
|
).values()
|
|
167
167
|
);
|
|
168
168
|
} else {
|
|
169
|
-
const { uniqueQuery:
|
|
169
|
+
const { uniqueQuery: S } = fe({
|
|
170
170
|
chartConfig: m,
|
|
171
171
|
queryObject: e,
|
|
172
|
-
queryConfig:
|
|
173
|
-
setTimeBinningInfoWhenNotProvided:
|
|
174
|
-
returnFeaturesExtent:
|
|
172
|
+
queryConfig: u,
|
|
173
|
+
setTimeBinningInfoWhenNotProvided: l,
|
|
174
|
+
returnFeaturesExtent: c,
|
|
175
175
|
chartLimits: p
|
|
176
|
-
}), { elementCount:
|
|
176
|
+
}), { elementCount: F } = await ct({
|
|
177
177
|
chartConfig: m,
|
|
178
178
|
queryObject: e,
|
|
179
|
-
queryConfig:
|
|
179
|
+
queryConfig: u,
|
|
180
180
|
behaviorAfterLimit: p?.behaviorAfterLimit,
|
|
181
|
-
numberMaxOfFeaturesToFetch:
|
|
182
|
-
abortSignal:
|
|
181
|
+
numberMaxOfFeaturesToFetch: S.num,
|
|
182
|
+
abortSignal: r
|
|
183
183
|
});
|
|
184
|
-
|
|
184
|
+
d = await dt({
|
|
185
185
|
queryObject: e,
|
|
186
|
-
queryConfig:
|
|
187
|
-
featureCount:
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
}), u = Array.from(
|
|
186
|
+
queryConfig: S,
|
|
187
|
+
featureCount: F,
|
|
188
|
+
errorStrings: i,
|
|
189
|
+
abortSignal: r
|
|
190
|
+
}), g = Array.from(
|
|
192
191
|
new Set(
|
|
193
|
-
|
|
192
|
+
d.map((x) => x.attributes[a]).filter((x) => x !== void 0)
|
|
194
193
|
).values()
|
|
195
194
|
);
|
|
196
195
|
}
|
|
197
|
-
return { allValues:
|
|
196
|
+
return { allValues: g, preFetchedQueryResponse: d };
|
|
198
197
|
}
|
|
199
|
-
function
|
|
198
|
+
function Kt(s, e) {
|
|
200
199
|
const t = /* @__PURE__ */ new Map();
|
|
201
|
-
return
|
|
202
|
-
let
|
|
200
|
+
return s.series.forEach((a) => {
|
|
201
|
+
let i = me({
|
|
203
202
|
where: a.query?.where,
|
|
204
203
|
// normalize the value so it matches what we get from getAllValues()
|
|
205
204
|
// Refer to https://devtopia.esri.com/WebGIS/arcgis-charts/issues/8127
|
|
@@ -208,86 +207,86 @@ function zt(i, e) {
|
|
|
208
207
|
// Refer to https://devtopia.esri.com/WebGIS/arcgis-charts/issues/8078
|
|
209
208
|
escape: !1
|
|
210
209
|
});
|
|
211
|
-
e &&
|
|
212
|
-
const
|
|
213
|
-
|
|
214
|
-
...t.get(
|
|
215
|
-
|
|
210
|
+
e && i !== null && (i = Number(i));
|
|
211
|
+
const r = Ve([a]);
|
|
212
|
+
r !== void 0 && t.set(r, [
|
|
213
|
+
...t.get(r) ?? [],
|
|
214
|
+
i
|
|
216
215
|
]);
|
|
217
216
|
}), t;
|
|
218
217
|
}
|
|
219
|
-
function
|
|
220
|
-
const { allValues: e, configUniqueValuesPerSeriesType: t, initialConfigWasEmpty: a } =
|
|
221
|
-
return Array.from(t.keys()).forEach((
|
|
222
|
-
const n = t.get(
|
|
218
|
+
function Zt(s) {
|
|
219
|
+
const { allValues: e, configUniqueValuesPerSeriesType: t, initialConfigWasEmpty: a } = s, i = /* @__PURE__ */ new Map();
|
|
220
|
+
return Array.from(t.keys()).forEach((r) => {
|
|
221
|
+
const n = t.get(r) ?? [];
|
|
223
222
|
let o = [];
|
|
224
|
-
a ? o = e : e.forEach((
|
|
225
|
-
n.includes(
|
|
226
|
-
}),
|
|
227
|
-
}),
|
|
223
|
+
a ? o = e : e.forEach((l) => {
|
|
224
|
+
n.includes(l) || o.push(l);
|
|
225
|
+
}), i.set(r, o);
|
|
226
|
+
}), i;
|
|
228
227
|
}
|
|
229
|
-
function
|
|
230
|
-
const { chartConfig: e, missingValue: t, splitByField: a, seriesTemplate:
|
|
228
|
+
function _t(s) {
|
|
229
|
+
const { chartConfig: e, missingValue: t, splitByField: a, seriesTemplate: i } = s, r = JSON.parse(
|
|
231
230
|
JSON.stringify({
|
|
232
231
|
...e.series[0],
|
|
233
|
-
...
|
|
232
|
+
...i
|
|
234
233
|
})
|
|
235
234
|
);
|
|
236
|
-
if (
|
|
237
|
-
if (t === null ?
|
|
238
|
-
const o =
|
|
239
|
-
|
|
235
|
+
if (r.query) {
|
|
236
|
+
if (t === null ? r.id = X.nullValue : t === "" ? r.id = X.emptyStringValue : r.id = `${t}`, r.name = `${t}`, r.query.outStatistics?.[0] !== void 0) {
|
|
237
|
+
const o = r.id;
|
|
238
|
+
r.query.outStatistics[0].outStatisticFieldName = o, "y" in r && (r.y = o);
|
|
240
239
|
}
|
|
241
240
|
const n = typeof t == "number" || t === null ? t : `'${t}'`;
|
|
242
|
-
|
|
241
|
+
r.query.where = `${a}=${n}`;
|
|
243
242
|
}
|
|
244
|
-
return
|
|
243
|
+
return r;
|
|
245
244
|
}
|
|
246
|
-
async function
|
|
245
|
+
async function Qt(s) {
|
|
247
246
|
const {
|
|
248
247
|
updateSplitBySeries: e,
|
|
249
248
|
config: t,
|
|
250
249
|
queryObject: a,
|
|
251
|
-
errorStrings:
|
|
252
|
-
abortSignal:
|
|
250
|
+
errorStrings: i,
|
|
251
|
+
abortSignal: r,
|
|
253
252
|
runtimeDataFilters: n,
|
|
254
253
|
ignoreViewExtent: o,
|
|
255
|
-
setTimeBinningInfoWhenNotProvided:
|
|
256
|
-
returnFeaturesExtent:
|
|
254
|
+
setTimeBinningInfoWhenNotProvided: l,
|
|
255
|
+
returnFeaturesExtent: c,
|
|
257
256
|
chartLimits: p
|
|
258
|
-
} =
|
|
259
|
-
let
|
|
260
|
-
if (a && !
|
|
257
|
+
} = s, { seriesTemplate: g } = e ?? {};
|
|
258
|
+
let d;
|
|
259
|
+
if (a && !ce(a) && e !== void 0 && t !== void 0 && (t.series.length > 0 || g !== void 0) && e.addMissingSeries) {
|
|
261
260
|
const m = t.series.length === 0;
|
|
262
|
-
t.series.length === 0 &&
|
|
263
|
-
const
|
|
264
|
-
if (
|
|
265
|
-
const
|
|
261
|
+
t.series.length === 0 && g !== void 0 && t.series.push(g);
|
|
262
|
+
const y = J(t.series);
|
|
263
|
+
if (y === q.BoxPlotMonoFieldAndSplitBy || y === q.BoxPlotMultiFieldsAndSplitBy || y === q.BoxPlotMonoFieldAndCategoryAndSplitBy || y === q.BarAndLineSplitBy || y === q.BarAndLineSplitByNoAggregation) {
|
|
264
|
+
const u = et(t.series[0]?.query?.where), S = tt(a), F = st(u, S), x = F ? it(F) : !1, f = await jt({
|
|
266
265
|
queryObject: a,
|
|
267
266
|
chartConfig: t,
|
|
268
|
-
splitByField:
|
|
269
|
-
abortSignal:
|
|
267
|
+
splitByField: u,
|
|
268
|
+
abortSignal: r,
|
|
270
269
|
runtimeDataFilters: n,
|
|
271
270
|
ignoreViewExtent: o,
|
|
272
|
-
setTimeBinningInfoWhenNotProvided:
|
|
273
|
-
returnFeaturesExtent:
|
|
271
|
+
setTimeBinningInfoWhenNotProvided: l,
|
|
272
|
+
returnFeaturesExtent: c,
|
|
274
273
|
chartLimits: p,
|
|
275
|
-
errorStrings:
|
|
276
|
-
}), { allValues:
|
|
277
|
-
if ({ preFetchedQueryResponse:
|
|
278
|
-
const
|
|
279
|
-
allValues:
|
|
280
|
-
configUniqueValuesPerSeriesType:
|
|
274
|
+
errorStrings: i
|
|
275
|
+
}), { allValues: A } = f;
|
|
276
|
+
if ({ preFetchedQueryResponse: d } = f, A.length > 0) {
|
|
277
|
+
const b = Kt(t, x), B = Zt({
|
|
278
|
+
allValues: A,
|
|
279
|
+
configUniqueValuesPerSeriesType: b,
|
|
281
280
|
initialConfigWasEmpty: m
|
|
282
281
|
});
|
|
283
|
-
Array.from(
|
|
284
|
-
(
|
|
282
|
+
Array.from(B.keys()).forEach((C) => {
|
|
283
|
+
(B.get(C) ?? []).forEach(($) => {
|
|
285
284
|
t.series.push(
|
|
286
|
-
|
|
285
|
+
_t({
|
|
287
286
|
chartConfig: t,
|
|
288
|
-
seriesTemplate:
|
|
289
|
-
missingValue:
|
|
290
|
-
splitByField:
|
|
287
|
+
seriesTemplate: g,
|
|
288
|
+
missingValue: $,
|
|
289
|
+
splitByField: u
|
|
291
290
|
})
|
|
292
291
|
);
|
|
293
292
|
}), m && t.series.shift();
|
|
@@ -295,918 +294,894 @@ async function ei(i) {
|
|
|
295
294
|
}
|
|
296
295
|
}
|
|
297
296
|
}
|
|
298
|
-
return
|
|
297
|
+
return d;
|
|
299
298
|
}
|
|
300
|
-
function
|
|
301
|
-
e && !
|
|
299
|
+
function zt(s, e) {
|
|
300
|
+
e && !De(e) && (e = Je({ chartConfig: e, queryObject: s }));
|
|
302
301
|
}
|
|
303
|
-
async function
|
|
302
|
+
async function Ys(s) {
|
|
304
303
|
const {
|
|
305
304
|
configToAlter: e,
|
|
306
305
|
layer: t,
|
|
307
306
|
addMissingSeries: a,
|
|
308
|
-
updateSplitBySeries:
|
|
309
|
-
chartContainer:
|
|
307
|
+
updateSplitBySeries: i,
|
|
308
|
+
chartContainer: r,
|
|
310
309
|
queryObject: n,
|
|
311
310
|
abortSignal: o,
|
|
312
|
-
runtimeDataFilters:
|
|
313
|
-
ignoreViewExtent:
|
|
311
|
+
runtimeDataFilters: l,
|
|
312
|
+
ignoreViewExtent: c,
|
|
314
313
|
setTimeBinningInfoWhenNotProvided: p,
|
|
315
|
-
returnFeaturesExtent:
|
|
316
|
-
chartLimits:
|
|
314
|
+
returnFeaturesExtent: g,
|
|
315
|
+
chartLimits: d,
|
|
317
316
|
timeZone: m,
|
|
318
|
-
errorStrings:
|
|
319
|
-
} =
|
|
320
|
-
let
|
|
321
|
-
return
|
|
322
|
-
updateSplitBySeries:
|
|
323
|
-
config:
|
|
317
|
+
errorStrings: y
|
|
318
|
+
} = s;
|
|
319
|
+
let u = e, S;
|
|
320
|
+
return u && (zt(t, u), u = await Nt(u, t, void 0, o), a && n && (S = await Qt({
|
|
321
|
+
updateSplitBySeries: i,
|
|
322
|
+
config: u,
|
|
324
323
|
queryObject: n,
|
|
325
|
-
errorStrings:
|
|
324
|
+
errorStrings: y,
|
|
326
325
|
abortSignal: o,
|
|
327
|
-
runtimeDataFilters:
|
|
328
|
-
ignoreViewExtent:
|
|
326
|
+
runtimeDataFilters: l,
|
|
327
|
+
ignoreViewExtent: c,
|
|
329
328
|
setTimeBinningInfoWhenNotProvided: p,
|
|
330
|
-
returnFeaturesExtent:
|
|
331
|
-
chartLimits:
|
|
332
|
-
})),
|
|
329
|
+
returnFeaturesExtent: g,
|
|
330
|
+
chartLimits: d
|
|
331
|
+
})), u = je(u, r), ke(m, u)), { alteredConfig: u, preFetchedQueryResponse: S };
|
|
333
332
|
}
|
|
334
|
-
function
|
|
333
|
+
function Gt(s, e) {
|
|
335
334
|
let t = !1;
|
|
336
335
|
if (e !== void 0) {
|
|
337
|
-
const a =
|
|
338
|
-
t = Number.isFinite(
|
|
336
|
+
const a = at({ key: yt.Average, splitBy: e });
|
|
337
|
+
t = Number.isFinite(s[a]);
|
|
339
338
|
}
|
|
340
339
|
return t;
|
|
341
340
|
}
|
|
342
|
-
function
|
|
343
|
-
const { data: e, config: t, showEmptySeries: a } =
|
|
341
|
+
function Ws(s) {
|
|
342
|
+
const { data: e, config: t, showEmptySeries: a } = s, i = t.series.length, r = G(t);
|
|
344
343
|
let n = !1;
|
|
345
|
-
if (!a &&
|
|
346
|
-
const o =
|
|
347
|
-
switch (
|
|
348
|
-
case
|
|
349
|
-
case
|
|
350
|
-
case
|
|
351
|
-
case
|
|
352
|
-
|
|
344
|
+
if (!a && i > 1 && e) {
|
|
345
|
+
const o = Ze(e), l = Ve(t?.series), c = J(t?.series), p = /* @__PURE__ */ new Set();
|
|
346
|
+
switch (l) {
|
|
347
|
+
case T.ComboLineAndBarSeries:
|
|
348
|
+
case T.BarSeries:
|
|
349
|
+
case T.RadarSeries:
|
|
350
|
+
case T.LineSeries: {
|
|
351
|
+
r.series.forEach((d) => {
|
|
353
352
|
if (Array.isArray(o)) {
|
|
354
353
|
let m = "";
|
|
355
|
-
"y" in
|
|
356
|
-
(
|
|
357
|
-
dataItem:
|
|
358
|
-
x:
|
|
354
|
+
"y" in d && (m = Array.isArray(d.y) ? d.y[0] : d.y, c === q.BarAndLineSplitByNoAggregation && (m = `${m}_${me({ where: d.query?.where, keepSurroundingQuotes: !1, escape: !1 })}`), o.some(
|
|
355
|
+
(u) => Ge({
|
|
356
|
+
dataItem: u,
|
|
357
|
+
x: d.x,
|
|
359
358
|
y: m,
|
|
360
359
|
aggregationType: t.series[0].query?.outStatistics?.[0]?.statisticType
|
|
361
360
|
})
|
|
362
|
-
) && p.add(
|
|
361
|
+
) && p.add(d));
|
|
363
362
|
}
|
|
364
363
|
});
|
|
365
364
|
break;
|
|
366
365
|
}
|
|
367
|
-
case
|
|
368
|
-
if (
|
|
369
|
-
const
|
|
366
|
+
case T.BoxPlotSeries: {
|
|
367
|
+
if (_e(t)) {
|
|
368
|
+
const d = Qe(t);
|
|
370
369
|
t.series.forEach((m) => {
|
|
371
|
-
let
|
|
372
|
-
m.type ===
|
|
373
|
-
(
|
|
374
|
-
dataItem:
|
|
370
|
+
let y, u;
|
|
371
|
+
m.type === T.BoxPlotSeries ? (y = e.dataItems, u = y?.some(
|
|
372
|
+
(S) => ze({
|
|
373
|
+
dataItem: S,
|
|
375
374
|
splitBy: m.query?.where,
|
|
376
|
-
showOutliers:
|
|
375
|
+
showOutliers: d
|
|
377
376
|
})
|
|
378
|
-
)) : m.type ===
|
|
379
|
-
(
|
|
380
|
-
)),
|
|
377
|
+
)) : m.type === T.LineSeries && (y = e.meanLines, u = y?.some(
|
|
378
|
+
(S) => Gt(S, m.query?.where)
|
|
379
|
+
)), u && p.add(m);
|
|
381
380
|
});
|
|
382
381
|
}
|
|
383
382
|
break;
|
|
384
383
|
}
|
|
385
384
|
}
|
|
386
|
-
const
|
|
387
|
-
n =
|
|
385
|
+
const g = Array.from(p.values());
|
|
386
|
+
n = g.length > 0 && g.length < i, n && (r.series = g);
|
|
388
387
|
}
|
|
389
|
-
return { seriesFilteredOut: n, filteredConfig:
|
|
388
|
+
return { seriesFilteredOut: n, filteredConfig: r };
|
|
390
389
|
}
|
|
391
|
-
const
|
|
392
|
-
|
|
393
|
-
},
|
|
394
|
-
const t =
|
|
390
|
+
const Hs = (s) => s.hideEmptyRowsAndColumns, Xs = (s, e) => {
|
|
391
|
+
s.hideEmptyRowsAndColumns = e;
|
|
392
|
+
}, Us = (s, e) => {
|
|
393
|
+
const t = s.series[0];
|
|
395
394
|
t.heatRulesType = e;
|
|
396
|
-
},
|
|
397
|
-
const t =
|
|
395
|
+
}, js = (s) => s.series[0].heatRulesType, Ks = (s, e) => {
|
|
396
|
+
const t = s.series[0];
|
|
398
397
|
t.gradientRules = e;
|
|
399
|
-
},
|
|
400
|
-
const { yField: e, config: t, layerInfo: a, commonStrings:
|
|
401
|
-
if (typeof e == "string" && o !== e &&
|
|
402
|
-
if (
|
|
403
|
-
const p =
|
|
404
|
-
|
|
398
|
+
}, Zs = (s) => s.series[0].gradientRules, _s = (s) => {
|
|
399
|
+
const { yField: e, config: t, layerInfo: a, commonStrings: i } = s, { layerFieldsInfo: r } = a, n = se(1, t), o = Jt(t), l = te(t), c = t.series[0];
|
|
400
|
+
if (typeof e == "string" && o !== e && c) {
|
|
401
|
+
if (c.y = e, Ut(t), o === n || l) {
|
|
402
|
+
const p = R(r, e);
|
|
403
|
+
E(t, 1, p);
|
|
405
404
|
}
|
|
406
|
-
|
|
405
|
+
Re({ commonStrings: i, config: t, layerInfo: a });
|
|
407
406
|
}
|
|
408
|
-
},
|
|
409
|
-
const { binning: e, config: t, commonStrings: a } =
|
|
410
|
-
if (
|
|
411
|
-
const
|
|
412
|
-
|
|
407
|
+
}, Jt = (s) => s.series[0].y ?? "", Qs = (s) => {
|
|
408
|
+
const { binning: e, config: t, commonStrings: a } = s, i = t.series[0];
|
|
409
|
+
if (i.xTemporalBinning = e, e?.unit !== void 0 && e.unit in a.utilsStrings.heatChartCalendarDatePartsUnits) {
|
|
410
|
+
const r = a.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
|
|
411
|
+
E(t, 0, r);
|
|
413
412
|
}
|
|
414
|
-
|
|
415
|
-
},
|
|
416
|
-
const { binning: e, config: t, commonStrings: a } =
|
|
417
|
-
if (
|
|
418
|
-
const
|
|
419
|
-
|
|
413
|
+
z({ axisIndex: 0, commonStrings: a, config: t });
|
|
414
|
+
}, es = (s) => s.series[0].xTemporalBinning, zs = (s) => {
|
|
415
|
+
const { binning: e, config: t, commonStrings: a } = s, i = t.series[0];
|
|
416
|
+
if (i.yTemporalBinning = e, e?.unit !== void 0 && e.unit in a.utilsStrings.heatChartCalendarDatePartsUnits) {
|
|
417
|
+
const r = a.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
|
|
418
|
+
E(t, 1, r);
|
|
420
419
|
}
|
|
421
|
-
|
|
422
|
-
},
|
|
420
|
+
z({ axisIndex: 1, commonStrings: a, config: t });
|
|
421
|
+
}, ts = (s) => s.series[0].yTemporalBinning, ss = (s, e) => {
|
|
423
422
|
e.orderOptions ??= {};
|
|
424
|
-
const t = e.axes?.[0]?.valueFormat?.type === "category" ? L.Category : L.YValue, a =
|
|
423
|
+
const t = e.axes?.[0]?.valueFormat?.type === "category" ? L.Category : L.YValue, a = de(e)[0], i = e.axes?.[1]?.valueFormat?.type === "category" ? L.Category : L.YValue, r = de(e)[1], n = {
|
|
425
424
|
...e.orderOptions.data ?? {},
|
|
426
425
|
orderType: L.MultiAxes
|
|
427
426
|
};
|
|
428
|
-
a ===
|
|
429
|
-
},
|
|
427
|
+
a === ne.customSort && t === L.Category && (n.orderByX = [...s]), r === ne.customSort && i === L.Category && (n.orderByY = [...s]), Object.keys(n).length > 1 && (e.orderOptions.data = n);
|
|
428
|
+
}, Gs = (s, e) => {
|
|
430
429
|
const t = e.series[0];
|
|
431
|
-
t.gridLine && (t.gridLine.width =
|
|
432
|
-
},
|
|
433
|
-
const t = e.series[0], a =
|
|
434
|
-
t.gridLine && a && (t.gridLine.color =
|
|
435
|
-
},
|
|
430
|
+
t.gridLine && (t.gridLine.width = s);
|
|
431
|
+
}, Js = (s) => s.series[0].gridLine?.width, ei = (s, e) => {
|
|
432
|
+
const t = e.series[0], a = s?.length === 4 && s.every((i) => typeof i == "number");
|
|
433
|
+
t.gridLine && a && (t.gridLine.color = s);
|
|
434
|
+
}, ti = (s) => s.series[0].gridLine?.color, si = (s, e) => {
|
|
436
435
|
const t = e.legend;
|
|
437
|
-
t && (t.position =
|
|
438
|
-
},
|
|
439
|
-
const { field: e, config: t, layerInfo: a, commonStrings:
|
|
440
|
-
|
|
436
|
+
t && (t.position = s);
|
|
437
|
+
}, ii = (s) => s.legend?.position ?? Ft.Bottom, ai = (s) => s.series[0].query?.outStatistics?.[0]?.onStatisticField, ri = (s) => {
|
|
438
|
+
const { field: e, config: t, layerInfo: a, commonStrings: i } = s, r = t.series[0].query?.outStatistics?.[0], n = re(t, a, i);
|
|
439
|
+
r ? (r.onStatisticField = e, r.outStatisticFieldName = `${r.statisticType}_${e}`) : t.series[0].query = {
|
|
441
440
|
outStatistics: [
|
|
442
441
|
{
|
|
443
442
|
onStatisticField: e,
|
|
444
|
-
outStatisticFieldName: `${
|
|
445
|
-
statisticType:
|
|
443
|
+
outStatisticFieldName: `${v.Count}_${e}`,
|
|
444
|
+
statisticType: v.Count
|
|
446
445
|
}
|
|
447
446
|
]
|
|
448
|
-
}, n && t.title && (t.title.content.text =
|
|
449
|
-
},
|
|
450
|
-
const { aggregationType: e, config: t, layerInfo: a, commonStrings:
|
|
451
|
-
|
|
452
|
-
},
|
|
453
|
-
e.nullPolicy =
|
|
454
|
-
},
|
|
455
|
-
e.series[0].emptyCells =
|
|
456
|
-
},
|
|
457
|
-
e.series[0].emptyCells ? e.series[0].emptyCells.text =
|
|
458
|
-
},
|
|
459
|
-
e.includeLeapDay =
|
|
460
|
-
},
|
|
461
|
-
e.series[0].emptyCells ? e.series[0].emptyCells.symbol =
|
|
447
|
+
}, n && t.title && (t.title.content.text = j(t, a, i));
|
|
448
|
+
}, ni = (s) => s.series[0].query?.outStatistics?.[0].statisticType ?? v.Count, oi = (s) => {
|
|
449
|
+
const { aggregationType: e, config: t, layerInfo: a, commonStrings: i } = s, r = t.series[0]?.query?.outStatistics?.[0], n = re(t, a, i);
|
|
450
|
+
r && e !== v.NoAggregation && (r.statisticType = e, r.outStatisticFieldName = `${e}_${r.onStatisticField}`), (e === v.Count || e === v.Sum) && is(H.Zero, t), n && t.title && (t.title.content.text = j(t, a, i));
|
|
451
|
+
}, li = (s) => s.nullPolicy, is = (s, e) => {
|
|
452
|
+
e.nullPolicy = s;
|
|
453
|
+
}, ui = (s) => s.series[0].emptyCells, ci = (s, e) => {
|
|
454
|
+
e.series[0].emptyCells = s;
|
|
455
|
+
}, di = (s) => s.series[0].emptyCells?.text, yi = (s, e) => {
|
|
456
|
+
e.series[0].emptyCells ? e.series[0].emptyCells.text = s : e.series[0].emptyCells = { text: s };
|
|
457
|
+
}, mi = (s) => s.includeLeapDay, gi = (s, e) => {
|
|
458
|
+
e.includeLeapDay = s;
|
|
459
|
+
}, pi = (s) => s.series[0].emptyCells?.symbol, fi = (s, e) => {
|
|
460
|
+
e.series[0].emptyCells ? e.series[0].emptyCells.symbol = s : e.series[0].emptyCells = { symbol: s };
|
|
462
461
|
};
|
|
463
|
-
function
|
|
464
|
-
return
|
|
462
|
+
function Si(s) {
|
|
463
|
+
return s.viewType;
|
|
465
464
|
}
|
|
466
|
-
function
|
|
467
|
-
|
|
465
|
+
function Fi(s, e) {
|
|
466
|
+
mt(e) || (e.viewType = s);
|
|
468
467
|
}
|
|
469
|
-
function
|
|
470
|
-
return
|
|
468
|
+
function xi(s) {
|
|
469
|
+
return s.series[0].classBreaksRules?.breaksCount ?? X.classBreaks.breaksCount;
|
|
471
470
|
}
|
|
472
|
-
function
|
|
473
|
-
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.breaksCount =
|
|
474
|
-
breaksCount:
|
|
471
|
+
function hi(s, e) {
|
|
472
|
+
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.breaksCount = s ?? X.classBreaks.breaksCount : e.series[0].classBreaksRules = {
|
|
473
|
+
breaksCount: s ?? X.classBreaks.breaksCount
|
|
475
474
|
};
|
|
476
475
|
}
|
|
477
|
-
function
|
|
478
|
-
return
|
|
476
|
+
function Ti(s) {
|
|
477
|
+
return s.series[0].classBreaksRules?.classificationMethod;
|
|
479
478
|
}
|
|
480
|
-
function
|
|
481
|
-
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.classificationMethod =
|
|
482
|
-
classificationMethod:
|
|
479
|
+
function Bi(s, e) {
|
|
480
|
+
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.classificationMethod = s : e.series[0].classBreaksRules = {
|
|
481
|
+
classificationMethod: s
|
|
483
482
|
}, e.series[0].classBreaksRules.breaksCount = e.series[0].classBreaksRules.breaksCount ?? X.classBreaks.breaksCount;
|
|
484
483
|
}
|
|
485
|
-
function
|
|
486
|
-
e.firstDayOfWeek =
|
|
484
|
+
function Ci(s, e) {
|
|
485
|
+
e.firstDayOfWeek = s;
|
|
487
486
|
}
|
|
488
|
-
function
|
|
489
|
-
return
|
|
487
|
+
function bi(s) {
|
|
488
|
+
return s.firstDayOfWeek;
|
|
490
489
|
}
|
|
491
|
-
function
|
|
492
|
-
return
|
|
490
|
+
function Ai(s) {
|
|
491
|
+
return s.series[0].classBreaksRules?.colorRampInfo?.name;
|
|
493
492
|
}
|
|
494
|
-
function
|
|
493
|
+
function vi(s, e) {
|
|
495
494
|
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.colorRampInfo = {
|
|
496
495
|
...e.series[0].classBreaksRules.colorRampInfo,
|
|
497
|
-
name:
|
|
496
|
+
name: s
|
|
498
497
|
} : e.series[0].classBreaksRules = {
|
|
499
498
|
colorRampInfo: {
|
|
500
|
-
name:
|
|
499
|
+
name: s,
|
|
501
500
|
flipped: !1
|
|
502
501
|
}
|
|
503
502
|
};
|
|
504
503
|
}
|
|
505
|
-
function
|
|
506
|
-
return
|
|
504
|
+
function Ii(s) {
|
|
505
|
+
return s.series[0].classBreaksRules?.colorRampInfo?.flipped ?? !1;
|
|
507
506
|
}
|
|
508
|
-
function
|
|
507
|
+
function Li(s, e) {
|
|
509
508
|
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.colorRampInfo = {
|
|
510
509
|
...e.series[0].classBreaksRules.colorRampInfo,
|
|
511
|
-
flipped:
|
|
510
|
+
flipped: s
|
|
512
511
|
} : e.series[0].classBreaksRules = {
|
|
513
512
|
colorRampInfo: {
|
|
514
|
-
flipped:
|
|
513
|
+
flipped: s
|
|
515
514
|
}
|
|
516
515
|
};
|
|
517
516
|
}
|
|
518
|
-
const
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
],
|
|
517
|
+
const as = [
|
|
518
|
+
k.DayOfMonth,
|
|
519
|
+
k.MonthOfYear
|
|
520
|
+
], Te = (s) => {
|
|
522
521
|
let e;
|
|
523
|
-
return
|
|
524
|
-
},
|
|
525
|
-
const { axisIndex: e, commonStrings: t, config: a, valueFormat:
|
|
526
|
-
|
|
527
|
-
},
|
|
522
|
+
return Z(s) ? e = ue() : (Y(s) || _(s)) && (e = Q()), e;
|
|
523
|
+
}, Be = (s) => Y(s) || _(s), Ce = (s) => {
|
|
524
|
+
const { axisIndex: e, commonStrings: t, config: a, valueFormat: i } = s, r = a.axes?.[e]?.valueFormat;
|
|
525
|
+
i !== void 0 && r?.type !== i.type && Ie({ config: a, commonStrings: t, valueFormat: i, axisIndex: e });
|
|
526
|
+
}, rs = (s, e) => {
|
|
528
527
|
let t;
|
|
529
|
-
return e === 0 ? t =
|
|
530
|
-
},
|
|
531
|
-
let t =
|
|
532
|
-
return
|
|
533
|
-
type:
|
|
528
|
+
return e === 0 ? t = s.series[0]?.xTemporalBinning : e === 1 && (t = s.series[0]?.yTemporalBinning), t;
|
|
529
|
+
}, be = (s, e) => s.utilsStrings.heatChartCalendarDatePartsUnits[e] ?? "", Ae = (s, e) => {
|
|
530
|
+
let t = as[s];
|
|
531
|
+
return s === 0 && e?.unit === k.DayOfWeek ? t = k.HourOfDay : s === 1 && e?.unit === k.HourOfDay && (t = k.DayOfWeek), {
|
|
532
|
+
type: T.CalendarDateParts,
|
|
534
533
|
unit: t
|
|
535
534
|
};
|
|
536
|
-
},
|
|
535
|
+
}, ns = (s) => {
|
|
537
536
|
let e = {};
|
|
538
|
-
switch (
|
|
539
|
-
case
|
|
537
|
+
switch (s.unit) {
|
|
538
|
+
case k.DayOfMonth:
|
|
540
539
|
e = { day: "2-digit" };
|
|
541
540
|
break;
|
|
542
|
-
case
|
|
541
|
+
case k.DayOfWeek:
|
|
543
542
|
e = { weekday: "short" };
|
|
544
543
|
break;
|
|
545
|
-
case
|
|
544
|
+
case k.HourOfDay:
|
|
546
545
|
e = { hour: "numeric", hour12: !1 };
|
|
547
546
|
break;
|
|
548
|
-
case
|
|
547
|
+
case k.MonthOfYear:
|
|
549
548
|
e = { month: "short" };
|
|
550
549
|
break;
|
|
551
550
|
default:
|
|
552
|
-
e =
|
|
551
|
+
e = Q().intlOptions;
|
|
553
552
|
break;
|
|
554
553
|
}
|
|
555
554
|
return {
|
|
556
|
-
type:
|
|
555
|
+
type: T.DateAxisFormat,
|
|
557
556
|
intlOptions: e
|
|
558
557
|
};
|
|
559
|
-
},
|
|
560
|
-
const { axisIndex: e, binning: t, commonStrings: a, config:
|
|
561
|
-
e === 0 ? o.xTemporalBinning = t : e === 1 && (o.yTemporalBinning = t), t !== void 0 && (
|
|
562
|
-
},
|
|
563
|
-
const { axisIndex: e, commonStrings: t, config: a } =
|
|
564
|
-
|
|
565
|
-
},
|
|
566
|
-
const { commonStrings: e, config: t, layerInfo: a } =
|
|
567
|
-
if (
|
|
568
|
-
const
|
|
569
|
-
|
|
558
|
+
}, ve = (s) => {
|
|
559
|
+
const { axisIndex: e, binning: t, commonStrings: a, config: i, fieldName: r, layerInfo: n } = s, o = i.series[0], l = se(e, i), c = R(n.layerFieldsInfo, r);
|
|
560
|
+
e === 0 ? o.xTemporalBinning = t : e === 1 && (o.yTemporalBinning = t), t !== void 0 && (l === "" || l === c || l === be(a, t.unit) || l === a.xAxis) && E(i, e, be(a, t.unit));
|
|
561
|
+
}, z = (s) => {
|
|
562
|
+
const { axisIndex: e, commonStrings: t, config: a } = s, i = rs(a, e), r = i ? ns(i) : void 0;
|
|
563
|
+
Ie({ config: a, commonStrings: t, valueFormat: r, axisIndex: e });
|
|
564
|
+
}, Re = (s) => {
|
|
565
|
+
const { commonStrings: e, config: t, layerInfo: a } = s, i = t.series[0]?.x ?? "", r = t.series[0]?.y ?? "", n = Se(a.layerFieldsInfo, i), o = Se(a.layerFieldsInfo, r), l = Te(n), c = Te(o), p = Be(n) && Be(o), g = Z(n) && Z(o);
|
|
566
|
+
if (Ce({ axisIndex: 0, commonStrings: e, config: t, valueFormat: l }), Ce({ axisIndex: 1, commonStrings: e, config: t, valueFormat: c }), p) {
|
|
567
|
+
const d = es(t) === void 0, m = ts(t) === void 0;
|
|
568
|
+
d && (ve({
|
|
570
569
|
axisIndex: 0,
|
|
571
|
-
binning:
|
|
570
|
+
binning: Ae(0, t.series[0].yTemporalBinning),
|
|
572
571
|
commonStrings: e,
|
|
573
572
|
config: t,
|
|
574
|
-
fieldName:
|
|
573
|
+
fieldName: i,
|
|
575
574
|
layerInfo: a
|
|
576
|
-
}),
|
|
575
|
+
}), z({
|
|
577
576
|
axisIndex: 0,
|
|
578
577
|
commonStrings: e,
|
|
579
578
|
config: t
|
|
580
|
-
})), m && (
|
|
579
|
+
})), m && (ve({
|
|
581
580
|
axisIndex: 1,
|
|
582
|
-
binning:
|
|
581
|
+
binning: Ae(1, t.series[0].xTemporalBinning),
|
|
583
582
|
commonStrings: e,
|
|
584
583
|
config: t,
|
|
585
|
-
fieldName:
|
|
584
|
+
fieldName: r,
|
|
586
585
|
layerInfo: a
|
|
587
|
-
}),
|
|
586
|
+
}), z({
|
|
588
587
|
axisIndex: 1,
|
|
589
588
|
commonStrings: e,
|
|
590
589
|
config: t
|
|
591
590
|
}));
|
|
592
591
|
}
|
|
593
|
-
|
|
592
|
+
g && (t.series[0].xTemporalBinning = void 0, t.series[0].yTemporalBinning = void 0);
|
|
594
593
|
};
|
|
595
|
-
function
|
|
594
|
+
function os(s) {
|
|
596
595
|
const e = {};
|
|
597
|
-
return
|
|
598
|
-
|
|
596
|
+
return s.series.forEach((t) => {
|
|
597
|
+
Dt(t) && "nullCategory" in t && t.nullCategory !== void 0 && (e.text ??= t.nullCategory.text, t.type === T.BarSeries ? e.fillSymbol ??= t.nullCategory.fillSymbol : e.markerSymbol ??= t.nullCategory.markerSymbol);
|
|
599
598
|
}), e.text || e.fillSymbol || e.markerSymbol ? e : void 0;
|
|
600
599
|
}
|
|
601
|
-
function
|
|
602
|
-
const { seriesIndex: e, xAxisField: t, aggregationType: a, config:
|
|
603
|
-
let
|
|
604
|
-
const
|
|
605
|
-
let p = !1,
|
|
606
|
-
if (
|
|
607
|
-
const
|
|
608
|
-
p =
|
|
600
|
+
function ie(s) {
|
|
601
|
+
const { seriesIndex: e, xAxisField: t, aggregationType: a, config: i, layerInfo: r, commonStrings: n } = s, o = U(r?.layer).idField;
|
|
602
|
+
let l;
|
|
603
|
+
const c = i.series[e ?? 0];
|
|
604
|
+
let p = !1, g = !1, d = !1;
|
|
605
|
+
if (c === void 0) {
|
|
606
|
+
const B = i.series;
|
|
607
|
+
p = B.slice(0, e).every((C) => O(C)), g = B.slice(0, e).every((C) => V(C)), d = B.slice(0, e).every((C) => Fe(C));
|
|
609
608
|
} else
|
|
610
|
-
p =
|
|
611
|
-
p ?
|
|
609
|
+
p = O(c), g = V(c), d = Fe(c);
|
|
610
|
+
p ? l = bt({
|
|
612
611
|
commonStrings: n,
|
|
613
612
|
seriesIndex: e,
|
|
614
613
|
objectIDField: o
|
|
615
|
-
}) :
|
|
614
|
+
}) : g ? l = At({
|
|
616
615
|
commonStrings: n,
|
|
617
616
|
seriesIndex: e,
|
|
618
617
|
objectIDField: o
|
|
619
|
-
}) :
|
|
618
|
+
}) : d ? l = vt(n, o) : l = It({
|
|
620
619
|
seriesIndex: e,
|
|
621
620
|
objectIDField: o,
|
|
622
621
|
commonStrings: n
|
|
623
622
|
});
|
|
624
|
-
const m =
|
|
625
|
-
...
|
|
623
|
+
const m = i.series[0]?.dataLabels, y = "nullCategory" in i.series[0] ? os(i) : void 0, u = "binTemporalData" in i.series[0] ? i.series[0].binTemporalData : void 0, S = "classBreakRules" in i.series[0] ? i.series[0].classBreakRules : void 0, F = "xTemporalBinning" in i.series[0] ? i.series[0].xTemporalBinning : void 0, x = "yTemporalBinning" in i.series[0] ? i.series[0].yTemporalBinning : void 0, f = "emptyCells" in i.series[0] ? i.series[0].emptyCells : void 0, A = i.series[0].query && "fetchNullValues" in i.series[0].query ? i.series[0].query?.fetchNullValues : void 0, b = {
|
|
624
|
+
...l,
|
|
626
625
|
x: t,
|
|
627
626
|
y: "",
|
|
628
627
|
dataLabels: {
|
|
629
|
-
...
|
|
630
|
-
type:
|
|
631
|
-
content: { ...
|
|
628
|
+
...l.dataLabels,
|
|
629
|
+
type: l.dataLabels?.type ?? T.Text,
|
|
630
|
+
content: { ...l.dataLabels?.content, ...m?.content, type: Tt.TS },
|
|
632
631
|
visible: m?.visible ?? !1
|
|
633
|
-
}
|
|
632
|
+
},
|
|
633
|
+
...y !== void 0 ? { nullCategory: y } : {},
|
|
634
|
+
...u !== void 0 ? { binTemporalData: u } : {},
|
|
635
|
+
...S !== void 0 ? { classBreakRules: S } : {},
|
|
636
|
+
...F !== void 0 ? { xTemporalBinning: F } : {},
|
|
637
|
+
...x !== void 0 ? { yTemporalBinning: x } : {},
|
|
638
|
+
...f !== void 0 ? { emptyCells: f } : {}
|
|
634
639
|
};
|
|
635
|
-
if (
|
|
636
|
-
groupByFieldsForStatistics: [t]
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
+
if (b.query = {
|
|
641
|
+
groupByFieldsForStatistics: [t],
|
|
642
|
+
...A !== void 0 ? { fetchNullValues: A } : {}
|
|
643
|
+
}, a !== v.NoAggregation && o !== void 0) {
|
|
644
|
+
const B = `${a}_${o}_0`.toUpperCase();
|
|
645
|
+
b.y = B, b.query.outStatistics = [
|
|
640
646
|
{
|
|
641
647
|
statisticType: a,
|
|
642
648
|
onStatisticField: o,
|
|
643
|
-
outStatisticFieldName:
|
|
649
|
+
outStatisticFieldName: B
|
|
644
650
|
}
|
|
645
651
|
];
|
|
646
652
|
}
|
|
647
|
-
if (
|
|
648
|
-
let
|
|
649
|
-
|
|
650
|
-
...
|
|
651
|
-
unit:
|
|
653
|
+
if (I(i.series[0]) && I(b)) {
|
|
654
|
+
let B = wt(i);
|
|
655
|
+
B === le.Quarter && (B = le.Month), b.temporalBinning = {
|
|
656
|
+
...i.series[0]?.temporalBinning,
|
|
657
|
+
unit: B
|
|
652
658
|
};
|
|
653
659
|
}
|
|
654
|
-
return
|
|
660
|
+
return G(b);
|
|
655
661
|
}
|
|
656
|
-
function
|
|
657
|
-
const { layerFieldsInfo: a } = e, { idField:
|
|
658
|
-
let
|
|
659
|
-
if (
|
|
662
|
+
function j(s, e, t) {
|
|
663
|
+
const { layerFieldsInfo: a } = e, { idField: i, isTraditionalTypeOID: r } = U(e.layer), n = M(s), o = K(s), l = we(s), c = ae(s), p = r && (o.length === 0 || o.includes(i)), g = Ct(l, t), d = p ? "" : o.map((f) => R(a ?? [], f)).join(", "), m = R(a ?? [], n), y = R(a ?? [], c), u = s.series.some((f) => P(f)), S = u ? "category" : "xAxisField", F = m;
|
|
664
|
+
let x = "";
|
|
665
|
+
if (ge({
|
|
660
666
|
fieldName: n,
|
|
661
667
|
numericFields: o,
|
|
662
668
|
fieldList: a
|
|
663
669
|
}))
|
|
664
|
-
|
|
665
|
-
aggregationType:
|
|
666
|
-
aggregationFields:
|
|
670
|
+
x = w(t.titleLabels.aggrTypeOfAggrFields, {
|
|
671
|
+
aggregationType: g,
|
|
672
|
+
aggregationFields: d
|
|
667
673
|
});
|
|
668
|
-
else if (
|
|
669
|
-
const
|
|
670
|
-
if (
|
|
671
|
-
const
|
|
672
|
-
|
|
673
|
-
aggregationType:
|
|
674
|
-
[
|
|
674
|
+
else if (l === v.NoAggregation) {
|
|
675
|
+
const f = p ? i : d;
|
|
676
|
+
if (c === "") {
|
|
677
|
+
const A = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
|
|
678
|
+
x = w(t.titleLabels[A], {
|
|
679
|
+
aggregationType: f,
|
|
680
|
+
[S]: F
|
|
675
681
|
});
|
|
676
682
|
} else {
|
|
677
|
-
const
|
|
678
|
-
|
|
679
|
-
aggregationType:
|
|
680
|
-
[
|
|
681
|
-
splitByField:
|
|
683
|
+
const A = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
|
|
684
|
+
x = w(t.titleLabels[A], {
|
|
685
|
+
aggregationType: f,
|
|
686
|
+
[S]: F,
|
|
687
|
+
splitByField: y
|
|
682
688
|
});
|
|
683
689
|
}
|
|
684
|
-
} else if (
|
|
685
|
-
if (
|
|
686
|
-
const
|
|
687
|
-
|
|
688
|
-
aggregationType:
|
|
689
|
-
[
|
|
690
|
+
} else if (l === v.Count)
|
|
691
|
+
if (c === "") {
|
|
692
|
+
const f = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
|
|
693
|
+
x = w(t.titleLabels[f], {
|
|
694
|
+
aggregationType: g,
|
|
695
|
+
[S]: F
|
|
690
696
|
});
|
|
691
697
|
} else {
|
|
692
|
-
const
|
|
693
|
-
|
|
694
|
-
aggregationType:
|
|
695
|
-
[
|
|
696
|
-
splitByField:
|
|
698
|
+
const f = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
|
|
699
|
+
x = w(t.titleLabels[f], {
|
|
700
|
+
aggregationType: g,
|
|
701
|
+
[S]: F,
|
|
702
|
+
splitByField: y
|
|
697
703
|
});
|
|
698
704
|
}
|
|
699
|
-
else if (
|
|
700
|
-
const
|
|
701
|
-
|
|
702
|
-
aggregationType:
|
|
703
|
-
aggregationField:
|
|
704
|
-
[
|
|
705
|
-
splitByField:
|
|
705
|
+
else if (c !== "") {
|
|
706
|
+
const f = u ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
|
|
707
|
+
x = w(t.titleLabels[f], {
|
|
708
|
+
aggregationType: g,
|
|
709
|
+
aggregationField: d,
|
|
710
|
+
[S]: F,
|
|
711
|
+
splitByField: y
|
|
706
712
|
});
|
|
707
713
|
} else if (o.length > 0) {
|
|
708
|
-
const
|
|
709
|
-
|
|
710
|
-
aggregationType:
|
|
711
|
-
aggregationFields:
|
|
712
|
-
[
|
|
714
|
+
const f = u ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
|
|
715
|
+
x = w(t.titleLabels[f], {
|
|
716
|
+
aggregationType: g,
|
|
717
|
+
aggregationFields: d,
|
|
718
|
+
[S]: F
|
|
713
719
|
});
|
|
714
720
|
}
|
|
715
|
-
return
|
|
721
|
+
return x;
|
|
716
722
|
}
|
|
717
|
-
const
|
|
718
|
-
where:
|
|
723
|
+
const qe = (s) => me({
|
|
724
|
+
where: s.query?.where,
|
|
719
725
|
normalize: !1,
|
|
720
726
|
escape: !1
|
|
721
|
-
}) ?? "",
|
|
722
|
-
(
|
|
723
|
-
const e =
|
|
724
|
-
return
|
|
727
|
+
}) ?? "", we = (s) => s?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? v.NoAggregation, ae = We(
|
|
728
|
+
(s) => {
|
|
729
|
+
const e = s?.series?.[0]?.query?.where?.split("=")[0].trim() ?? "";
|
|
730
|
+
return gt(s?.series?.[0]?.query?.where) ? "" : e;
|
|
725
731
|
},
|
|
726
|
-
(
|
|
727
|
-
),
|
|
732
|
+
(s) => s?.series?.[0]?.query?.where
|
|
733
|
+
), K = (s) => {
|
|
728
734
|
let e = [];
|
|
729
|
-
if (
|
|
730
|
-
e =
|
|
731
|
-
const a = t.query?.outStatistics?.map((
|
|
735
|
+
if (ae(s) === "")
|
|
736
|
+
e = s?.series.map((t) => {
|
|
737
|
+
const a = t.query?.outStatistics?.map((i) => i.onStatisticField) ?? [];
|
|
732
738
|
return a?.length > 0 ? a : t.y;
|
|
733
739
|
}).flat() ?? [];
|
|
734
740
|
else {
|
|
735
|
-
const t =
|
|
741
|
+
const t = s?.series?.[0], a = t?.query?.outStatistics?.[0]?.onStatisticField ?? [t?.y].flat()[0];
|
|
736
742
|
e = a !== void 0 ? [a] : [];
|
|
737
743
|
}
|
|
738
744
|
return e.filter((t) => t !== "");
|
|
739
745
|
};
|
|
740
|
-
function
|
|
741
|
-
const { splitByField: e, numericFields: t, layer: a, seriesIndex:
|
|
742
|
-
return e === "" ? t[
|
|
746
|
+
function Pe(s) {
|
|
747
|
+
const { splitByField: e, numericFields: t, layer: a, seriesIndex: i } = s, r = U(a).idField ?? "";
|
|
748
|
+
return e === "" ? t[i] ?? r : t[0] ?? r;
|
|
743
749
|
}
|
|
744
|
-
function
|
|
745
|
-
const { numericFields: e, aggregationType: t, config: a, layerInfo:
|
|
746
|
-
let
|
|
747
|
-
t ===
|
|
748
|
-
const
|
|
749
|
-
return
|
|
750
|
-
})),
|
|
751
|
-
const n = a.series.some((
|
|
750
|
+
function ls(s) {
|
|
751
|
+
const { numericFields: e, aggregationType: t, config: a, layerInfo: i } = s;
|
|
752
|
+
let r = !1;
|
|
753
|
+
t === v.Count ? r = !0 : t === v.NoAggregation && (r = e.every((l) => {
|
|
754
|
+
const c = i.layerFieldsInfo.find((p) => p.name === l);
|
|
755
|
+
return c !== void 0 ? xe(c) : !1;
|
|
756
|
+
})), pe(a, 1, r);
|
|
757
|
+
const n = a.series.some((l) => O(l)), o = a.series.some((l) => V(l));
|
|
752
758
|
if (n || o) {
|
|
753
|
-
const
|
|
754
|
-
|
|
759
|
+
const l = M(a), c = i.layerFieldsInfo.find((g) => g.name === l), p = c !== void 0 && xe(c);
|
|
760
|
+
pe(a, 0, p);
|
|
755
761
|
}
|
|
756
762
|
}
|
|
757
|
-
const
|
|
763
|
+
const de = (s) => {
|
|
758
764
|
let e;
|
|
759
|
-
if (
|
|
760
|
-
const t =
|
|
761
|
-
e = [
|
|
765
|
+
if (W(s)) {
|
|
766
|
+
const t = s.orderOptions?.data?.orderByX ?? [""], a = s.orderOptions?.data?.orderByY ?? [""], i = s.axes?.[0]?.valueFormat?.type === "category" ? L.Category : L.YValue, r = s.axes?.[1]?.valueFormat?.type === "category" ? L.Category : L.YValue;
|
|
767
|
+
e = [he(t, i), he(a, r)];
|
|
762
768
|
} else {
|
|
763
|
-
const t =
|
|
764
|
-
e = [
|
|
769
|
+
const t = s.orderOptions?.data?.orderType ?? L.Category, a = s.orderOptions?.data && "orderBy" in s.orderOptions.data ? s.orderOptions.data.orderBy : xt.Ascending;
|
|
770
|
+
e = [St(a, t)];
|
|
765
771
|
}
|
|
766
772
|
return e;
|
|
767
773
|
};
|
|
768
|
-
function
|
|
769
|
-
const { xAxisField: e, numericFields: t, aggregationType: a, config:
|
|
770
|
-
|
|
771
|
-
const d = j({
|
|
772
|
-
config: r,
|
|
774
|
+
function us(s) {
|
|
775
|
+
const { xAxisField: e, numericFields: t, aggregationType: a, config: i, layerInfo: r, commonStrings: n } = s, { layerFieldsInfo: o } = r, l = ie({
|
|
776
|
+
config: i,
|
|
773
777
|
xAxisField: e,
|
|
774
778
|
aggregationType: a,
|
|
775
|
-
layerInfo:
|
|
779
|
+
layerInfo: r,
|
|
776
780
|
seriesIndex: 0,
|
|
777
781
|
commonStrings: n
|
|
778
|
-
}),
|
|
779
|
-
config:
|
|
782
|
+
}), c = ee({
|
|
783
|
+
config: i,
|
|
780
784
|
xAxisField: e,
|
|
781
785
|
numericFields: t,
|
|
782
786
|
aggregationType: a,
|
|
783
|
-
layer:
|
|
787
|
+
layer: r.layer,
|
|
788
|
+
fieldList: o
|
|
789
|
+
}).name, p = M(i), g = K(i), d = ge({
|
|
790
|
+
fieldName: p,
|
|
791
|
+
numericFields: g,
|
|
784
792
|
fieldList: o
|
|
785
|
-
}).
|
|
786
|
-
...d,
|
|
787
|
-
id:
|
|
788
|
-
name:
|
|
789
|
-
x:
|
|
790
|
-
y:
|
|
791
|
-
},
|
|
792
|
-
for (const
|
|
793
|
-
|
|
794
|
-
onStatisticField:
|
|
795
|
-
outStatisticFieldName: `${
|
|
793
|
+
}) ? i.series[0] : void 0, m = `series_${Date.now()}`, y = d?.id ?? m, u = d?.name ?? n.axisLabels.values, F = {
|
|
794
|
+
...d ?? l,
|
|
795
|
+
id: y,
|
|
796
|
+
name: u,
|
|
797
|
+
x: oe,
|
|
798
|
+
y: c
|
|
799
|
+
}, x = [];
|
|
800
|
+
for (const f of t)
|
|
801
|
+
x.push({
|
|
802
|
+
onStatisticField: f,
|
|
803
|
+
outStatisticFieldName: `${f}_0`.toUpperCase(),
|
|
796
804
|
statisticType: a
|
|
797
805
|
});
|
|
798
|
-
|
|
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];
|
|
806
|
+
return F.query = { outStatistics: x }, i.series.length === 1 && ((O(F) || V(F)) && Me(F, i.series[0]), P(F) ? F.fillSymbol = i.series[0].fillSymbol : (O(F) || V(F)) && (F.lineSymbol = i.series[0].lineSymbol, F.markerSymbol = i.series[0].markerSymbol)), [F];
|
|
801
807
|
}
|
|
802
|
-
function
|
|
803
|
-
const { xAxisField: e, numericFields: t, aggregationType: a, config:
|
|
804
|
-
let
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
config: r,
|
|
808
|
+
function Ee(s) {
|
|
809
|
+
const { xAxisField: e, numericFields: t, aggregationType: a, config: i, layerInfo: r, commonStrings: n } = s, { layerFieldsInfo: o } = r, l = U(r.layer).idField, c = [];
|
|
810
|
+
for (let y = 0; y < t.length; y += 1) {
|
|
811
|
+
const u = ie({
|
|
812
|
+
config: i,
|
|
808
813
|
xAxisField: e,
|
|
809
814
|
aggregationType: a,
|
|
810
|
-
layerInfo:
|
|
811
|
-
seriesIndex:
|
|
815
|
+
layerInfo: r,
|
|
816
|
+
seriesIndex: y,
|
|
812
817
|
commonStrings: n
|
|
813
|
-
}),
|
|
814
|
-
config:
|
|
818
|
+
}), S = i.series[y]?.y, F = typeof S == "string" && S.trim() !== "" && !o.find((N) => N.name === S) ? S : ee({
|
|
819
|
+
config: i,
|
|
815
820
|
xAxisField: e,
|
|
816
821
|
numericFields: t,
|
|
817
822
|
aggregationType: a,
|
|
818
|
-
layer:
|
|
819
|
-
numericFieldIndex:
|
|
823
|
+
layer: r.layer,
|
|
824
|
+
numericFieldIndex: y,
|
|
820
825
|
fieldList: o
|
|
821
|
-
}).name, x = t[
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
826
|
+
}).name, x = t[y], f = i.series.find(
|
|
827
|
+
(N) => N.query?.where === void 0 && (N.query?.outStatistics?.length === 1 && N.query?.outStatistics?.[0]?.onStatisticField === x || N.query?.outStatistics === void 0 && (N.y === x || N.x === x))
|
|
828
|
+
), A = x !== l ? x : u.id, b = f?.id ?? A, B = f?.name ?? R(o, x) ?? b, C = f ?? u, h = {
|
|
829
|
+
...C,
|
|
830
|
+
id: b,
|
|
831
|
+
name: B
|
|
827
832
|
};
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
id: x,
|
|
831
|
-
name: P(o, x)
|
|
832
|
-
});
|
|
833
|
-
let N = x;
|
|
834
|
-
F.query !== void 0 && (a !== I.NoAggregation ? (N = B, F.query.outStatistics = [
|
|
833
|
+
let $ = x;
|
|
834
|
+
h.query !== void 0 && (a !== v.NoAggregation ? ($ = h.type === T.HeatSeries && f?.type === T.HeatSeries ? x : F, h.query.outStatistics = [
|
|
835
835
|
{
|
|
836
|
-
...
|
|
836
|
+
...C.query?.outStatistics?.[0] ?? {},
|
|
837
837
|
onStatisticField: x,
|
|
838
|
-
outStatisticFieldName:
|
|
838
|
+
outStatisticFieldName: F,
|
|
839
839
|
statisticType: a
|
|
840
840
|
}
|
|
841
|
-
]) : delete
|
|
842
|
-
const S = r.series.find(
|
|
843
|
-
(h) => h.query?.outStatistics?.[0]?.onStatisticField === x && h.query.where === void 0 || h.query?.outStatistics === void 0 && (h.y === x || h.x === x)
|
|
844
|
-
);
|
|
845
|
-
if (S !== void 0 && typeof S.y == "string" && S.y.trim() !== "") {
|
|
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);
|
|
847
|
-
const h = j({
|
|
848
|
-
config: r,
|
|
849
|
-
xAxisField: e,
|
|
850
|
-
aggregationType: a,
|
|
851
|
-
layerInfo: s,
|
|
852
|
-
seriesIndex: l,
|
|
853
|
-
commonStrings: n
|
|
854
|
-
});
|
|
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);
|
|
856
|
-
}
|
|
857
|
-
d.push(F);
|
|
841
|
+
]) : delete h.query.outStatistics), h.y = $, c.push(h);
|
|
858
842
|
}
|
|
859
|
-
const
|
|
860
|
-
(
|
|
861
|
-
),
|
|
862
|
-
(
|
|
843
|
+
const p = c.filter((y) => P(y)), g = c.filter(
|
|
844
|
+
(y) => O(y) || V(y)
|
|
845
|
+
), d = i.series.filter((y) => P(y)), m = i.series.filter(
|
|
846
|
+
(y) => O(y) || V(y)
|
|
863
847
|
);
|
|
864
|
-
return
|
|
848
|
+
return d.length === 1 && p.length === 1 && P(d[0]) && P(p[0]) && (p[0].fillSymbol = d[0].fillSymbol), m.length === 1 && g.length === 1 && ((O(m[0]) && O(g[0]) || V(m[0]) && V(g[0])) && Me(g[0], m[0]), (O(m[0]) && O(g[0]) || V(m[0]) && V(g[0])) && (g[0].lineSymbol = m[0].lineSymbol, g[0].markerSymbol = m[0].markerSymbol)), c;
|
|
865
849
|
}
|
|
866
|
-
function
|
|
867
|
-
const { aggregationType: e, config: t, layerInfo: a, commonStrings:
|
|
868
|
-
if (t.series.forEach((
|
|
869
|
-
const
|
|
850
|
+
function Di(s) {
|
|
851
|
+
const { aggregationType: e, config: t, layerInfo: a, commonStrings: i } = s, { layerFieldsInfo: r, layer: n } = a, o = M(t), l = K(t), c = ae(t), p = re(t, a, i), g = $e(t, a, i);
|
|
852
|
+
if (t.series.forEach((d, m) => {
|
|
853
|
+
const y = ee({
|
|
870
854
|
config: t,
|
|
871
855
|
xAxisField: o,
|
|
872
|
-
numericFields:
|
|
856
|
+
numericFields: l,
|
|
873
857
|
aggregationType: e,
|
|
874
|
-
splitByField:
|
|
858
|
+
splitByField: c,
|
|
875
859
|
layer: n,
|
|
876
860
|
seriesIndex: m,
|
|
877
861
|
numericFieldIndex: m,
|
|
878
|
-
fieldList:
|
|
862
|
+
fieldList: r
|
|
879
863
|
}).name;
|
|
880
|
-
|
|
881
|
-
const
|
|
882
|
-
splitByField:
|
|
883
|
-
numericFields:
|
|
864
|
+
d.y = y;
|
|
865
|
+
const u = Pe({
|
|
866
|
+
splitByField: c,
|
|
867
|
+
numericFields: l,
|
|
884
868
|
layer: n,
|
|
885
869
|
seriesIndex: m
|
|
886
|
-
}),
|
|
887
|
-
|
|
888
|
-
...
|
|
889
|
-
outStatistics: e ===
|
|
870
|
+
}), S = d.query?.outStatistics?.[0]?.onStatisticField ?? u;
|
|
871
|
+
d.query = {
|
|
872
|
+
...d.query,
|
|
873
|
+
outStatistics: e === v.NoAggregation ? void 0 : [
|
|
890
874
|
{
|
|
891
|
-
...
|
|
892
|
-
outStatisticFieldName:
|
|
875
|
+
...d.query?.outStatistics?.[0],
|
|
876
|
+
outStatisticFieldName: y,
|
|
893
877
|
statisticType: e,
|
|
894
|
-
onStatisticField:
|
|
878
|
+
onStatisticField: S
|
|
895
879
|
}
|
|
896
880
|
]
|
|
897
|
-
}, "temporalBinning" in
|
|
898
|
-
}), p && t.title && (t.title.content.text =
|
|
899
|
-
const
|
|
881
|
+
}, "temporalBinning" in d && d.temporalBinning !== void 0 && (d.temporalBinning.nullPolicy = e === v.NoAggregation ? H.Interpolate : H.Null), e === v.NoAggregation && Mt(t);
|
|
882
|
+
}), p && t.title && (t.title.content.text = j(t, a, i)), g && t.series[0].type !== T.HeatSeries) {
|
|
883
|
+
const d = ye({
|
|
900
884
|
config: t,
|
|
901
885
|
layerInfo: a,
|
|
902
|
-
commonStrings:
|
|
903
|
-
numericFields:
|
|
886
|
+
commonStrings: i,
|
|
887
|
+
numericFields: l,
|
|
904
888
|
aggregationType: e
|
|
905
889
|
});
|
|
906
|
-
|
|
890
|
+
E(t, 1, d);
|
|
907
891
|
}
|
|
908
892
|
}
|
|
909
|
-
function
|
|
893
|
+
function cs(s) {
|
|
910
894
|
const {
|
|
911
895
|
splitByField: e,
|
|
912
896
|
xAxisField: t,
|
|
913
897
|
numericFields: a,
|
|
914
|
-
aggregationType:
|
|
915
|
-
config:
|
|
898
|
+
aggregationType: i,
|
|
899
|
+
config: r,
|
|
916
900
|
layerInfo: n,
|
|
917
901
|
commonStrings: o,
|
|
918
|
-
splitByFieldInfos:
|
|
919
|
-
} =
|
|
902
|
+
splitByFieldInfos: l
|
|
903
|
+
} = s, { layer: c, layerFieldsInfo: p } = n, { categoriesArray: g, splitByFieldType: d } = l, m = Pe({
|
|
920
904
|
splitByField: e,
|
|
921
905
|
numericFields: a,
|
|
922
|
-
layer:
|
|
906
|
+
layer: c,
|
|
923
907
|
seriesIndex: 0
|
|
924
908
|
});
|
|
925
|
-
let
|
|
926
|
-
if (
|
|
927
|
-
|
|
909
|
+
let y = [];
|
|
910
|
+
if (g.length === 0) {
|
|
911
|
+
y = Ee({
|
|
928
912
|
xAxisField: t,
|
|
929
913
|
numericFields: a,
|
|
930
|
-
aggregationType:
|
|
931
|
-
config:
|
|
914
|
+
aggregationType: i,
|
|
915
|
+
config: r,
|
|
932
916
|
layerInfo: n,
|
|
933
917
|
commonStrings: o
|
|
934
918
|
});
|
|
935
|
-
for (const
|
|
936
|
-
|
|
919
|
+
for (const u of y)
|
|
920
|
+
u.query && (u.query.where = `${e}=''`);
|
|
937
921
|
} else
|
|
938
|
-
for (let
|
|
939
|
-
const
|
|
940
|
-
config:
|
|
922
|
+
for (let u = 0; u < g.length; u += 1) {
|
|
923
|
+
const S = g[u], F = ee({
|
|
924
|
+
config: r,
|
|
941
925
|
xAxisField: t,
|
|
942
926
|
numericFields: a,
|
|
943
|
-
aggregationType:
|
|
927
|
+
aggregationType: i,
|
|
944
928
|
layer: n.layer,
|
|
945
|
-
seriesIndex:
|
|
929
|
+
seriesIndex: u,
|
|
946
930
|
splitByField: e,
|
|
947
931
|
fieldList: p
|
|
948
|
-
}).name, x =
|
|
949
|
-
config:
|
|
932
|
+
}).name, x = ie({
|
|
933
|
+
config: r,
|
|
950
934
|
xAxisField: t,
|
|
951
|
-
aggregationType:
|
|
935
|
+
aggregationType: i,
|
|
952
936
|
layerInfo: n,
|
|
953
|
-
seriesIndex:
|
|
937
|
+
seriesIndex: u,
|
|
954
938
|
commonStrings: o
|
|
955
|
-
}),
|
|
939
|
+
}), f = Ne({
|
|
956
940
|
queryObject: n.layer,
|
|
957
941
|
fieldName: e,
|
|
958
|
-
fieldValue:
|
|
959
|
-
}),
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
942
|
+
fieldValue: S ?? ""
|
|
943
|
+
}), A = `${S}`, b = r.series.find(
|
|
944
|
+
(N) => String(qe(N)).trim().replace(/'/gu, "") === A
|
|
945
|
+
), B = b?.id ?? A, C = b?.name ?? f ?? B, h = b ?? x, $ = {
|
|
946
|
+
...h,
|
|
947
|
+
id: B,
|
|
948
|
+
name: C,
|
|
949
|
+
y: F,
|
|
964
950
|
query: {
|
|
965
|
-
...
|
|
966
|
-
where: `${e}=${
|
|
967
|
-
outStatistics:
|
|
951
|
+
...h.query,
|
|
952
|
+
where: `${e}=${d === Oe.String && S !== null ? `'${S}'` : S}`,
|
|
953
|
+
outStatistics: i !== v.NoAggregation ? [
|
|
968
954
|
{
|
|
969
|
-
...
|
|
955
|
+
...h.query?.outStatistics?.[0] ?? {},
|
|
970
956
|
onStatisticField: m,
|
|
971
|
-
outStatisticFieldName:
|
|
972
|
-
statisticType:
|
|
957
|
+
outStatisticFieldName: F,
|
|
958
|
+
statisticType: i
|
|
973
959
|
}
|
|
974
960
|
] : void 0
|
|
975
961
|
}
|
|
976
|
-
}
|
|
977
|
-
|
|
978
|
-
);
|
|
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);
|
|
962
|
+
};
|
|
963
|
+
y.push($);
|
|
980
964
|
}
|
|
981
|
-
return
|
|
965
|
+
return y;
|
|
982
966
|
}
|
|
983
|
-
const
|
|
967
|
+
const Ni = (s) => {
|
|
984
968
|
const {
|
|
985
969
|
xAxisFieldName: e,
|
|
986
970
|
splitByField: t,
|
|
987
971
|
numericFields: a,
|
|
988
|
-
aggregationType:
|
|
989
|
-
config:
|
|
972
|
+
aggregationType: i,
|
|
973
|
+
config: r,
|
|
990
974
|
layerInfo: n,
|
|
991
975
|
commonStrings: o,
|
|
992
|
-
splitByFieldInfos:
|
|
993
|
-
} =
|
|
994
|
-
let
|
|
995
|
-
const
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
}), t === "" || a.length > 1 ? Oe({
|
|
976
|
+
splitByFieldInfos: l
|
|
977
|
+
} = s, { layerFieldsInfo: c } = n ?? {}, p = G(r), g = Rt(r), d = M(p), m = c.find((h) => h.name === d), y = r.series[0]?.query === void 0, u = c.find((h) => h.name === e), S = re(p, n, o), F = $e(p, n, o), x = ds(p, n);
|
|
978
|
+
let f = Le(r);
|
|
979
|
+
const A = p.series.some((h) => P(h)), b = pt(p.series), B = ft(p.series);
|
|
980
|
+
let C = !1;
|
|
981
|
+
if (Z(u) ? f = ue() : !_(m) && _(u) ? (f = Q(), C = !0) : !Y(m) && Y(u) ? (f = Q(), C = !0) : Y(m) && !Y(u) && (A ? f = ue() : f = Lt(), C = !0), f !== void 0 && Xe(r, o, f), g === 0 && (r.series = [
|
|
982
|
+
ie({ config: r, xAxisField: e, aggregationType: i, layerInfo: n, commonStrings: o })
|
|
983
|
+
]), r.series.forEach((h) => {
|
|
984
|
+
h.x = e, h.query !== void 0 && (h.query.groupByFieldsForStatistics = [e]);
|
|
985
|
+
}), t === "" || a.length > 1 ? ge({
|
|
1003
986
|
fieldName: e,
|
|
1004
987
|
numericFields: a,
|
|
1005
|
-
fieldList:
|
|
1006
|
-
}) ?
|
|
1007
|
-
config:
|
|
988
|
+
fieldList: c
|
|
989
|
+
}) ? r.series = us({
|
|
990
|
+
config: r,
|
|
1008
991
|
layerInfo: n,
|
|
1009
992
|
xAxisField: e,
|
|
1010
993
|
numericFields: a,
|
|
1011
|
-
aggregationType:
|
|
994
|
+
aggregationType: i,
|
|
1012
995
|
commonStrings: o
|
|
1013
|
-
}) :
|
|
1014
|
-
config:
|
|
996
|
+
}) : r.series = Ee({
|
|
997
|
+
config: r,
|
|
1015
998
|
layerInfo: n,
|
|
1016
999
|
xAxisField: e,
|
|
1017
1000
|
numericFields: a,
|
|
1018
|
-
aggregationType:
|
|
1001
|
+
aggregationType: i,
|
|
1019
1002
|
commonStrings: o
|
|
1020
|
-
}) :
|
|
1021
|
-
config:
|
|
1003
|
+
}) : l && (r.series = cs({
|
|
1004
|
+
config: r,
|
|
1022
1005
|
layerInfo: n,
|
|
1023
1006
|
splitByField: t,
|
|
1024
1007
|
xAxisField: e,
|
|
1025
1008
|
numericFields: a,
|
|
1026
|
-
aggregationType:
|
|
1009
|
+
aggregationType: i,
|
|
1027
1010
|
commonStrings: o,
|
|
1028
|
-
splitByFieldInfos:
|
|
1029
|
-
})),
|
|
1030
|
-
const
|
|
1031
|
-
|
|
1011
|
+
splitByFieldInfos: l
|
|
1012
|
+
})), x && r.series[0].type !== T.HeatSeries) {
|
|
1013
|
+
const h = R(c, e);
|
|
1014
|
+
E(r, 0, h);
|
|
1032
1015
|
}
|
|
1033
|
-
if (F &&
|
|
1034
|
-
const
|
|
1035
|
-
config:
|
|
1016
|
+
if (F && r.series[0].type !== T.HeatSeries) {
|
|
1017
|
+
const h = ye({
|
|
1018
|
+
config: r,
|
|
1036
1019
|
layerInfo: n,
|
|
1037
1020
|
commonStrings: o,
|
|
1038
1021
|
numericFields: a,
|
|
1039
|
-
aggregationType:
|
|
1022
|
+
aggregationType: i
|
|
1040
1023
|
});
|
|
1041
|
-
|
|
1024
|
+
E(r, 1, h);
|
|
1042
1025
|
}
|
|
1043
|
-
if (
|
|
1044
|
-
const
|
|
1045
|
-
|
|
1026
|
+
if (S && r.title && (r.title.content.text = j(r, n, o)), D({ config: r, value: null, axisIndex: 1, isMax: !1 }), D({ config: r, value: null, axisIndex: 1, isMax: !0 }), ls({ numericFields: a, aggregationType: i, config: r, layerInfo: n }), (b || B) && (D({ config: r, value: null, axisIndex: 0, isMax: !1 }), D({ config: r, value: null, axisIndex: 0, isMax: !0 }), C && i !== v.NoAggregation && !W(p))) {
|
|
1027
|
+
const h = f?.type === T.DateAxisFormat ? H.Null : H.Interpolate;
|
|
1028
|
+
Et(h, r);
|
|
1046
1029
|
}
|
|
1047
|
-
|
|
1048
|
-
|
|
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);
|
|
1030
|
+
W(r) && Re({ commonStrings: o, config: r, layerInfo: n }), r.series.forEach((h) => {
|
|
1031
|
+
y && delete h.query, I(h) && h.binTemporalData === void 0 && u?.type === Oe.TimeOnly && (h.binTemporalData = !1);
|
|
1057
1032
|
});
|
|
1058
|
-
},
|
|
1059
|
-
|
|
1033
|
+
}, Me = (s, e) => {
|
|
1034
|
+
s.markerVisible = e.markerVisible, s.lineSmoothed = e.lineSmoothed, s.showArea = e.showArea, s.areaColor = e.areaColor, s.stackNegativeValuesToBaseline = e.stackNegativeValuesToBaseline, e.lineSymbol && (s.lineSymbol = { ...e.lineSymbol, color: s.lineSymbol?.color }), e.markerSymbol && (s.markerSymbol = {
|
|
1060
1035
|
...e.markerSymbol,
|
|
1061
|
-
color:
|
|
1036
|
+
color: s.markerSymbol?.color
|
|
1062
1037
|
});
|
|
1063
|
-
},
|
|
1064
|
-
const { config: e, seriesIndex: t, layerInfo: a, commonStrings:
|
|
1038
|
+
}, Oi = (s) => {
|
|
1039
|
+
const { config: e, seriesIndex: t, layerInfo: a, commonStrings: i } = s, r = e.series?.[t], n = ae(e);
|
|
1065
1040
|
let o;
|
|
1066
|
-
if (
|
|
1067
|
-
o =
|
|
1068
|
-
else if (
|
|
1069
|
-
const
|
|
1070
|
-
|
|
1041
|
+
if (J(e.series) === q.BarAndLineFromFields)
|
|
1042
|
+
o = i.axisLabels.values;
|
|
1043
|
+
else if (Ye(n)) {
|
|
1044
|
+
const c = r.query?.outStatistics?.[0]?.onStatisticField;
|
|
1045
|
+
c !== void 0 && c !== U(a.layer).idField && (o = R(a.layerFieldsInfo, c));
|
|
1071
1046
|
} else {
|
|
1072
|
-
const
|
|
1047
|
+
const c = String(qe(r)).trim().replace(/'/gu, "");
|
|
1073
1048
|
o = Ne({
|
|
1074
1049
|
queryObject: a.layer,
|
|
1075
1050
|
fieldName: n,
|
|
1076
|
-
fieldValue:
|
|
1077
|
-
}) ??
|
|
1051
|
+
fieldValue: c ?? ""
|
|
1052
|
+
}) ?? c;
|
|
1078
1053
|
}
|
|
1079
|
-
return o ??
|
|
1080
|
-
},
|
|
1081
|
-
if (
|
|
1082
|
-
|
|
1054
|
+
return o ?? r.id;
|
|
1055
|
+
}, Vi = (s, e) => {
|
|
1056
|
+
if (W(e))
|
|
1057
|
+
ss(s, e);
|
|
1083
1058
|
else {
|
|
1084
1059
|
e.orderOptions ??= {};
|
|
1085
1060
|
const t = e.orderOptions?.data?.orderType;
|
|
1086
|
-
|
|
1061
|
+
de(e)[0] === ne.customSort && t === L.Category && (e.orderOptions.data = {
|
|
1087
1062
|
orderType: L.Category,
|
|
1088
|
-
orderBy: [...
|
|
1063
|
+
orderBy: [...s]
|
|
1089
1064
|
});
|
|
1090
1065
|
}
|
|
1091
|
-
},
|
|
1092
|
-
const { config: e, layerInfo: t, errorStrings: a } =
|
|
1093
|
-
let
|
|
1094
|
-
return
|
|
1066
|
+
}, ki = async (s) => {
|
|
1067
|
+
const { config: e, layerInfo: t, errorStrings: a } = s, i = M(e), r = Le(e)?.type, n = K(e), o = J(e.series);
|
|
1068
|
+
let l = [];
|
|
1069
|
+
return r === T.CategoryAxisFormat && (o === q.BarAndLineFromFields || i === oe ? l = n.map((c) => R(t?.layerFieldsInfo, c)) : i.trim() !== "" && i !== oe && t !== void 0 && (l = await He({
|
|
1095
1070
|
layerInfo: t,
|
|
1096
1071
|
config: e,
|
|
1097
|
-
category:
|
|
1072
|
+
category: i,
|
|
1098
1073
|
errorStrings: a
|
|
1099
|
-
}))),
|
|
1074
|
+
}))), l;
|
|
1100
1075
|
};
|
|
1101
|
-
function
|
|
1102
|
-
const a =
|
|
1103
|
-
return a ===
|
|
1076
|
+
function re(s, e, t) {
|
|
1077
|
+
const a = j(s, e, t), i = qt(s), r = te(s);
|
|
1078
|
+
return a === i || r;
|
|
1104
1079
|
}
|
|
1105
|
-
function
|
|
1106
|
-
const a =
|
|
1107
|
-
config:
|
|
1080
|
+
function $e(s, e, t) {
|
|
1081
|
+
const a = ye({
|
|
1082
|
+
config: s,
|
|
1108
1083
|
layerInfo: e,
|
|
1109
1084
|
commonStrings: t,
|
|
1110
|
-
numericFields:
|
|
1111
|
-
aggregationType:
|
|
1112
|
-
}),
|
|
1113
|
-
return a ===
|
|
1085
|
+
numericFields: K(s),
|
|
1086
|
+
aggregationType: we(s)
|
|
1087
|
+
}), i = se(1, s), r = te(s);
|
|
1088
|
+
return a === i || r;
|
|
1114
1089
|
}
|
|
1115
|
-
function
|
|
1116
|
-
const t =
|
|
1117
|
-
return t === a ||
|
|
1090
|
+
function ds(s, e) {
|
|
1091
|
+
const t = R(e.layerFieldsInfo, M(s)), a = se(0, s), i = te(s);
|
|
1092
|
+
return t === a || i;
|
|
1118
1093
|
}
|
|
1119
|
-
function
|
|
1120
|
-
return
|
|
1094
|
+
function Ri(s) {
|
|
1095
|
+
return I(s.series[0]) ? s.series[0].binTemporalData ?? !0 : !1;
|
|
1121
1096
|
}
|
|
1122
|
-
function
|
|
1097
|
+
function qi(s, e) {
|
|
1123
1098
|
e?.series.forEach((t) => {
|
|
1124
|
-
|
|
1125
|
-
unit:
|
|
1099
|
+
I(t) && (t.binTemporalData = s, s ? t.temporalBinning = {
|
|
1100
|
+
unit: le.Day,
|
|
1126
1101
|
size: 0,
|
|
1127
|
-
timeAggregationType:
|
|
1102
|
+
timeAggregationType: ht.Start,
|
|
1128
1103
|
trimIncompleteTimeInterval: !0,
|
|
1129
1104
|
nullPolicy: H.Null
|
|
1130
1105
|
} : delete t.temporalBinning);
|
|
1131
1106
|
});
|
|
1132
1107
|
}
|
|
1133
1108
|
export {
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1109
|
+
Gs as $,
|
|
1110
|
+
ki as A,
|
|
1111
|
+
Vi as B,
|
|
1112
|
+
Ni as C,
|
|
1113
|
+
Ri as D,
|
|
1114
|
+
qi as E,
|
|
1115
|
+
j as F,
|
|
1116
|
+
Re as G,
|
|
1117
|
+
Jt as H,
|
|
1118
|
+
_s as I,
|
|
1119
|
+
Si as J,
|
|
1120
|
+
Fi as K,
|
|
1121
|
+
es as L,
|
|
1122
|
+
Qs as M,
|
|
1123
|
+
ts as N,
|
|
1124
|
+
zs as O,
|
|
1125
|
+
xi as P,
|
|
1126
|
+
hi as Q,
|
|
1127
|
+
Ti as R,
|
|
1128
|
+
Bi as S,
|
|
1129
|
+
Ai as T,
|
|
1130
|
+
vi as U,
|
|
1131
|
+
Ii as V,
|
|
1132
|
+
Xt as W,
|
|
1133
|
+
Li as X,
|
|
1134
|
+
Hs as Y,
|
|
1135
|
+
Xs as Z,
|
|
1136
|
+
Js as _,
|
|
1137
|
+
Ms as a,
|
|
1138
|
+
ti as a0,
|
|
1139
|
+
ei as a1,
|
|
1140
|
+
js as a2,
|
|
1141
|
+
Us as a3,
|
|
1142
|
+
Zs as a4,
|
|
1143
|
+
Ks as a5,
|
|
1144
|
+
ai as a6,
|
|
1145
|
+
ri as a7,
|
|
1146
|
+
ni as a8,
|
|
1147
|
+
oi as a9,
|
|
1148
|
+
ii as aa,
|
|
1149
|
+
si as ab,
|
|
1150
|
+
li as ac,
|
|
1151
|
+
is as ad,
|
|
1152
|
+
ui as ae,
|
|
1153
|
+
ci as af,
|
|
1154
|
+
di as ag,
|
|
1155
|
+
yi as ah,
|
|
1156
|
+
mi as ai,
|
|
1157
|
+
gi as aj,
|
|
1158
|
+
bi as ak,
|
|
1159
|
+
Ci as al,
|
|
1160
|
+
pi as am,
|
|
1161
|
+
fi as an,
|
|
1162
|
+
ws as b,
|
|
1163
|
+
Ps as c,
|
|
1164
|
+
K as d,
|
|
1165
|
+
ae as e,
|
|
1166
|
+
Ws as f,
|
|
1167
|
+
we as g,
|
|
1168
|
+
Oi as h,
|
|
1169
|
+
$s as i,
|
|
1170
|
+
Ds as j,
|
|
1171
|
+
Pt as k,
|
|
1172
|
+
wt as l,
|
|
1173
|
+
ks as m,
|
|
1174
|
+
Ns as n,
|
|
1175
|
+
Rs as o,
|
|
1176
|
+
Ys as p,
|
|
1177
|
+
Os as q,
|
|
1178
|
+
Ut as r,
|
|
1179
|
+
ke as s,
|
|
1180
|
+
qs as t,
|
|
1181
|
+
Es as u,
|
|
1182
|
+
Vs as v,
|
|
1183
|
+
Et as w,
|
|
1184
|
+
Mt as x,
|
|
1185
|
+
Di as y,
|
|
1186
|
+
de as z
|
|
1212
1187
|
};
|