@arcgis/charts-components 5.2.0-next.120 → 5.2.0-next.121
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/{S5QSKGOD.js → 22GEDSID.js} +1 -1
- package/dist/cdn/{4ETHEVDM.js → 2DSJEDV6.js} +1 -1
- package/dist/cdn/{65WBRNOB.js → 2IMGLB5P.js} +1 -1
- package/dist/cdn/{EB5Z3G6D.js → 2MG6R4WZ.js} +1 -1
- package/dist/cdn/{SDDU5POB.js → 346W6JSX.js} +1 -1
- package/dist/cdn/{N7E2X5IX.js → 3JFIDJNK.js} +1 -1
- package/dist/cdn/3QIWL4Y6.js +2 -0
- package/dist/cdn/{ZAW4TN54.js → 4UPY7IZR.js} +1 -1
- package/dist/cdn/{CZGKNCIX.js → 55HD5ASD.js} +1 -1
- package/dist/cdn/{C22JKC32.js → 5NGZOXPZ.js} +1 -1
- package/dist/cdn/{P3VQFUQZ.js → 5NRVL7NV.js} +1 -1
- package/dist/cdn/{EAQZOXHL.js → 5OKYID5L.js} +1 -1
- package/dist/cdn/{UGJ6ZOQG.js → 5VU34FMQ.js} +1 -1
- package/dist/cdn/{U3W5ZPMZ.js → 6BYOOUOD.js} +1 -1
- package/dist/cdn/{FC6VMJIM.js → 6ESJJXFR.js} +1 -1
- package/dist/cdn/{WI4ABUKJ.js → 6IREEVIJ.js} +1 -1
- package/dist/cdn/{UQP6Q7H2.js → 72NDGOVB.js} +1 -1
- package/dist/cdn/{XNGFPEGT.js → 73RZMSJU.js} +1 -1
- package/dist/cdn/{7XTX3KFW.js → 74GBWUON.js} +1 -1
- package/dist/cdn/{JPCSR3D6.js → 7CVC24HH.js} +1 -1
- package/dist/cdn/{HBNL5LOO.js → 7MZUUBLN.js} +1 -1
- package/dist/cdn/{QJL354WC.js → A5JPFNVL.js} +1 -1
- package/dist/cdn/{V7JCHSX7.js → AAVHXU5D.js} +1 -1
- package/dist/cdn/BPEDCIDB.js +2 -0
- package/dist/cdn/{WFMMHYSH.js → CBSDCSFV.js} +1 -1
- package/dist/cdn/{6UUPPMVB.js → CFMJKZLO.js} +1 -1
- package/dist/cdn/{5NMUWLMG.js → CR5FDXHH.js} +1 -1
- package/dist/cdn/{OKH3U3GN.js → CSSKK7IZ.js} +1 -1
- package/dist/cdn/{J6RFRXEU.js → CXWIF2KU.js} +1 -1
- package/dist/cdn/{2LE4U3GT.js → DFR64RQY.js} +1 -1
- package/dist/cdn/{FF547HMW.js → ELRXUJGD.js} +1 -1
- package/dist/cdn/{XA4KE5YW.js → EWRTR7X6.js} +1 -1
- package/dist/cdn/{OQEUNYYG.js → F5DTLXOB.js} +1 -1
- package/dist/cdn/{VIQEFX6O.js → FUBHLZ4H.js} +1 -1
- package/dist/cdn/{VVWD3AMY.js → FZVZ5MJE.js} +1 -1
- package/dist/cdn/{FNDN7EW7.js → G5ND4PUZ.js} +1 -1
- package/dist/cdn/GSF5JMAE.js +2 -0
- package/dist/cdn/{ASQ2GJVW.js → GXCZ6WXB.js} +1 -1
- package/dist/cdn/{UVKFQG23.js → HDPGUTTH.js} +1 -1
- package/dist/cdn/{HXB7PSCG.js → HQO53B54.js} +1 -1
- package/dist/cdn/{RWAKKYLM.js → IGCN2436.js} +1 -1
- package/dist/cdn/INWA5VAO.js +2 -0
- package/dist/cdn/{7WZGORIO.js → K3VIGXRU.js} +24 -24
- package/dist/cdn/{XZ37Y4W5.js → K7OSRGWZ.js} +1 -1
- package/dist/cdn/{4YFDRBNS.js → KDIC74D5.js} +1 -1
- package/dist/cdn/{OMLLMMVS.js → LYOBJZHA.js} +1 -1
- package/dist/cdn/{5LI7FA5C.js → MHHVGZZG.js} +1 -1
- package/dist/cdn/{O5QM6RFL.js → MKCJDMSH.js} +1 -1
- package/dist/cdn/{BYRJMIXU.js → MV4GOTGG.js} +1 -1
- package/dist/cdn/NE2LIVPM.js +2 -0
- package/dist/cdn/{FTTD7LG7.js → O23HS34R.js} +1 -1
- package/dist/cdn/{NNCCPCL2.js → ONW2IT27.js} +1 -1
- package/dist/cdn/{PENUTMVD.js → OVXUFZCS.js} +1 -1
- package/dist/cdn/{3QSV7I2J.js → PQDWXZQQ.js} +1 -1
- package/dist/cdn/{NI5E2OS4.js → QNW7XSUO.js} +1 -1
- package/dist/cdn/{ZOOL6KEW.js → QXDNKTZG.js} +1 -1
- package/dist/cdn/{HPJM5ZOD.js → S6P4Y54X.js} +1 -1
- package/dist/cdn/SAQBQSQJ.js +2 -0
- package/dist/cdn/{4QQPANET.js → SZ5CW7OV.js} +1 -1
- package/dist/cdn/{ZXW6JPMX.js → T34EUD7U.js} +1 -1
- package/dist/cdn/T7I3TS7D.js +2 -0
- package/dist/cdn/{PO2ZDNTQ.js → UELAD6BI.js} +1 -1
- package/dist/cdn/{JQ7S563J.js → UQ2QHPXB.js} +1 -1
- package/dist/cdn/{SZHJZL2A.js → URI7A66F.js} +1 -1
- package/dist/cdn/{STJ2HTKL.js → V7YFMMPW.js} +1 -1
- package/dist/cdn/{T3VRQEKN.js → VTVZQCHN.js} +1 -1
- package/dist/cdn/{S2G75NCQ.js → VWLVU22M.js} +1 -1
- package/dist/cdn/{DPICOEXC.js → WAZUL35Q.js} +1 -1
- package/dist/cdn/{HI7Z5QTR.js → WSU3OSWJ.js} +1 -1
- package/dist/cdn/{BG65SP3R.js → X25OSCFT.js} +1 -1
- package/dist/cdn/{X2R5WPB4.js → XXMGWWQ4.js} +1 -1
- package/dist/cdn/{7QDL4TE3.js → Y5TN6VKQ.js} +2 -2
- package/dist/cdn/{V6MI3KKW.js → Y6NNKV6H.js} +1 -1
- package/dist/cdn/{7SE3B7E2.js → Y6UMC7NU.js} +1 -1
- package/dist/cdn/{WGGNHZDW.js → Y6WT7UDU.js} +1 -1
- package/dist/cdn/{LGS2QMGB.js → YQN5N3XC.js} +1 -1
- package/dist/cdn/{HQX6SMWC.js → YWFQXN7J.js} +1 -1
- package/dist/cdn/{JTO6MPTF.js → ZDDZVKMH.js} +1 -1
- package/dist/cdn/{LQKGTJZ6.js → ZDJAMFJK.js} +1 -1
- package/dist/cdn/{POB26WCE.js → ZMS2AX7K.js} +1 -1
- package/dist/cdn/{LE4F6FBR.js → ZPZQIWBB.js} +1 -1
- package/dist/cdn/{BIUADXHB.js → ZUVDEUDH.js} +1 -1
- package/dist/cdn/assets/charts-config-general/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/box-plot-data.js +2 -2
- package/dist/chunks/box-plot-model.js +1 -1
- package/dist/chunks/chart-ui-utils.js +13 -13
- package/dist/chunks/class-breaks.js +1 -1
- package/dist/chunks/combo-bar-line-chart-model.js +7 -7
- package/dist/chunks/data-labels-visibility.js +2 -2
- package/dist/chunks/data.js +12 -12
- package/dist/chunks/histogram-data.js +1 -1
- package/dist/chunks/index.js +1167 -1119
- package/dist/chunks/index4.js +7 -7
- package/dist/chunks/model-setter.js +3 -3
- package/dist/chunks/model-with-y-guides.js +1 -1
- package/dist/chunks/negative-values-stacked-to-baseline.js +1 -1
- package/dist/chunks/pie-chart-model.js +1 -1
- package/dist/chunks/rounded-corners.js +1 -1
- package/dist/chunks/scatterplot-model.js +6 -6
- package/dist/chunks/serial-chart-data.js +701 -708
- package/dist/chunks/serial-chart-model.js +15 -15
- package/dist/chunks/utils.js +6 -6
- package/dist/chunks/utils2.js +1 -1
- package/dist/chunks/web-component-utils.js +7 -7
- package/dist/chunks/x-bounds.js +44 -42
- package/dist/components/arcgis-chart/customElement.js +3085 -3010
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +52 -47
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +10 -7
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +9 -9
- package/dist/components/arcgis-charts-config-format/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-guide/customElement.js +21 -21
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +41 -39
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +351 -347
- package/dist/model/mixins/model-with-guides.d.ts +2 -2
- package/dist/utils/chart-config/converter/index.js +20 -20
- package/dist/utils/data/index.d.ts +47 -1
- package/package.json +5 -5
- package/dist/cdn/27DMKFXK.js +0 -2
- package/dist/cdn/7DMHLVYX.js +0 -2
- package/dist/cdn/FVYM4LYH.js +0 -2
- package/dist/cdn/WQ5MRC4U.js +0 -2
- package/dist/cdn/YM3BNPLM.js +0 -2
- package/dist/cdn/ZDQWQTZE.js +0 -2
- package/dist/cdn/ZYWOR5AX.js +0 -2
|
@@ -1,208 +1,208 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { substitute as M } from "@arcgis/core/intl.js";
|
|
3
|
-
import { cloneDeep as
|
|
4
|
-
import { S as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { a as
|
|
8
|
-
import { a as
|
|
9
|
-
import { d as
|
|
10
|
-
import { i as
|
|
11
|
-
import { q as
|
|
12
|
-
import { a as
|
|
13
|
-
import { g as
|
|
14
|
-
import { C as
|
|
15
|
-
import { convertChartSpec as
|
|
16
|
-
import { i as
|
|
17
|
-
import { g as
|
|
18
|
-
import { b as
|
|
19
|
-
const
|
|
3
|
+
import { cloneDeep as te, memoize as $e, isEmpty as He, isEqual as Ue } from "lodash-es";
|
|
4
|
+
import { S as ce } from "./common.js";
|
|
5
|
+
import { Y as L, aO as X, bm as je, bR as Ze, bS as _e, bG as De, f as Ke, p as ie, W as Qe, V as ze, bT as Ge, O as ge, a_ as Je, bU as et, N as tt, t as it, bV as st, aP as at, Q as rt, bW as nt, _ as ot, bA as lt, bX as ct, bY as Se, bZ as ut, b_ as dt, b$ as yt, P as mt, c0 as Fe, c1 as Q, bI as gt, aQ as k, aZ as z, M as pt, r as Z, a1 as Ne, c2 as Y, bE as j, c3 as ft, c4 as St, c5 as O, c6 as V, c7 as he, bF as Te } from "./index.js";
|
|
6
|
+
import { u as W, s as Oe, g as pe, a as Ve, b as Ft, c as ht, d as G, e as xe } from "./utils.js";
|
|
7
|
+
import { a as w, s as fe, g as se, b as Be, c as Tt } from "./data.js";
|
|
8
|
+
import { a as x, d as I, f as xt, l as q, t as N, h as $, g as Bt, b as Ct, e as ue } from "./chart-object-literals.js";
|
|
9
|
+
import { d as ke, b as bt } from "./rest-js-object-literals.js";
|
|
10
|
+
import { i as ae } from "./index4.js";
|
|
11
|
+
import { q as At, W as J, X as de, H as vt, Y as It, Z as Lt, _ as Dt, $ as Nt, k as Ot } from "./index3.js";
|
|
12
|
+
import { a as P, C as H, b as R } from "./index2.js";
|
|
13
|
+
import { g as qe, s as Vt } from "./series-types.js";
|
|
14
|
+
import { C as kt, m as qt } from "./model-setter.js";
|
|
15
|
+
import { convertChartSpec as Rt } from "../utils/chart-config/converter/index.js";
|
|
16
|
+
import { i as ye, h as Pt } from "./type-guards.js";
|
|
17
|
+
import { g as re } from "./utils2.js";
|
|
18
|
+
import { b as wt, g as Et } from "./series-length.js";
|
|
19
|
+
const qi = (i) => {
|
|
20
20
|
let e;
|
|
21
|
-
const t =
|
|
21
|
+
const t = i.series[0];
|
|
22
22
|
return L(t) && (e = t.temporalBinning?.size), e;
|
|
23
|
-
},
|
|
23
|
+
}, Mt = (i) => {
|
|
24
24
|
let e;
|
|
25
|
-
const t =
|
|
25
|
+
const t = i.series[0];
|
|
26
26
|
return L(t) && (e = t.temporalBinning?.unit), e;
|
|
27
|
-
},
|
|
27
|
+
}, Ri = (i) => {
|
|
28
28
|
let e;
|
|
29
|
-
const t =
|
|
29
|
+
const t = i.series[0];
|
|
30
30
|
return L(t) && (e = t.temporalBinning?.timeAggregationType), e;
|
|
31
|
-
},
|
|
31
|
+
}, Pi = (i) => {
|
|
32
32
|
let e;
|
|
33
|
-
const t =
|
|
33
|
+
const t = i.series[0];
|
|
34
34
|
return L(t) && (e = t.temporalBinning?.trimIncompleteTimeInterval), e;
|
|
35
|
-
},
|
|
35
|
+
}, wi = (i) => {
|
|
36
36
|
let e;
|
|
37
|
-
const t =
|
|
37
|
+
const t = i.series[0];
|
|
38
38
|
return L(t) && (e = t.temporalBinning?.nullPolicy), e;
|
|
39
|
-
},
|
|
39
|
+
}, Yt = (i, e) => {
|
|
40
40
|
e?.series?.forEach((t) => {
|
|
41
|
-
L(t) && (t.temporalBinning ??= {}, t.temporalBinning.size =
|
|
41
|
+
L(t) && (t.temporalBinning ??= {}, t.temporalBinning.size = i);
|
|
42
42
|
});
|
|
43
|
-
},
|
|
43
|
+
}, Wt = (i, e) => {
|
|
44
44
|
e?.series?.forEach((t) => {
|
|
45
|
-
L(t) && (t.temporalBinning ??= {}, t.temporalBinning.nullPolicy =
|
|
46
|
-
})
|
|
47
|
-
},
|
|
45
|
+
L(t) && (t.temporalBinning ??= {}, t.temporalBinning.nullPolicy = i);
|
|
46
|
+
});
|
|
47
|
+
}, Ei = (i, e) => {
|
|
48
48
|
e.series?.forEach((t) => {
|
|
49
|
-
L(t) && (t.temporalBinning ??= {}, t.temporalBinning.unit =
|
|
50
|
-
})
|
|
51
|
-
},
|
|
49
|
+
L(t) && (t.temporalBinning ??= {}, t.temporalBinning.unit = i);
|
|
50
|
+
});
|
|
51
|
+
}, Mi = (i, e) => {
|
|
52
52
|
e.series?.forEach((t) => {
|
|
53
|
-
L(t) && (t.temporalBinning ??= {}, t.temporalBinning.timeAggregationType =
|
|
54
|
-
})
|
|
55
|
-
},
|
|
53
|
+
L(t) && (t.temporalBinning ??= {}, t.temporalBinning.timeAggregationType = i);
|
|
54
|
+
});
|
|
55
|
+
}, Yi = (i, e) => {
|
|
56
56
|
e.series?.forEach((t) => {
|
|
57
|
-
L(t) && (t.temporalBinning ??= {}, t.temporalBinning.trimIncompleteTimeInterval =
|
|
58
|
-
})
|
|
59
|
-
},
|
|
60
|
-
|
|
57
|
+
L(t) && (t.temporalBinning ??= {}, t.temporalBinning.trimIncompleteTimeInterval = i);
|
|
58
|
+
});
|
|
59
|
+
}, Xt = (i) => {
|
|
60
|
+
Yt(0, i);
|
|
61
61
|
};
|
|
62
|
-
var
|
|
63
|
-
for (var
|
|
64
|
-
(n =
|
|
65
|
-
return
|
|
62
|
+
var $t = Object.defineProperty, Ht = Object.getOwnPropertyDescriptor, Ut = (i, e, t, a) => {
|
|
63
|
+
for (var s = Ht(e, t), r = i.length - 1, n; r >= 0; r--)
|
|
64
|
+
(n = i[r]) && (s = n(e, t, s) || s);
|
|
65
|
+
return s && $t(e, t, s), s;
|
|
66
66
|
};
|
|
67
|
-
const
|
|
67
|
+
const jt = (i) => {
|
|
68
68
|
let e;
|
|
69
|
-
return X(
|
|
70
|
-
(t.type ===
|
|
71
|
-
}), e || (e =
|
|
72
|
-
},
|
|
73
|
-
const t =
|
|
74
|
-
X(e) ?
|
|
75
|
-
(
|
|
76
|
-
}), e?.axes?.[0]?.valueFormat.type ===
|
|
69
|
+
return X(i) ? e = i.outTimeZone : i?.series.forEach((t) => {
|
|
70
|
+
(t.type === x.BarSeries || t.type === x.RadarSeries || t.type === x.LineSeries) && t.temporalBinning && (e = t.temporalBinning.outTimeZone);
|
|
71
|
+
}), e || (e = i?.axes?.[0]?.valueFormat.type === x.DateAxisFormat ? i.axes[0].valueFormat.intlOptions.timeZone : void 0), e;
|
|
72
|
+
}, Re = (i, e) => {
|
|
73
|
+
const t = je(i);
|
|
74
|
+
X(e) ? i ? e.outTimeZone = t : delete e.outTimeZone : e?.series.forEach((a) => {
|
|
75
|
+
(a.type === x.BarSeries || a.type === x.RadarSeries || a.type === x.LineSeries) && (i ? (a.temporalBinning ??= {}, a.temporalBinning.outTimeZone = t) : a.temporalBinning && delete a.temporalBinning.outTimeZone);
|
|
76
|
+
}), e?.axes?.[0]?.valueFormat.type === x.DateAxisFormat && (i ? e.axes[0].valueFormat.intlOptions.timeZone = t : delete e.axes[0].valueFormat.intlOptions.timeZone);
|
|
77
77
|
};
|
|
78
|
-
class
|
|
78
|
+
class Zt extends kt {
|
|
79
79
|
/**
|
|
80
80
|
* Gets the time zone for the chart.
|
|
81
81
|
*/
|
|
82
82
|
get timeZone() {
|
|
83
|
-
return
|
|
83
|
+
return jt(this._config);
|
|
84
84
|
}
|
|
85
85
|
set timeZone(e) {
|
|
86
|
-
|
|
86
|
+
Re(e, this._config), this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"));
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
],
|
|
92
|
-
function
|
|
89
|
+
Ut([
|
|
90
|
+
qt
|
|
91
|
+
], Zt.prototype, "timeZone");
|
|
92
|
+
function Wi(i, 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 = i)), t;
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function Xi(i, 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 = i)), t;
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function $i(i, e) {
|
|
101
101
|
let t;
|
|
102
|
-
return e !== void 0 && (t = { ...e, rotated:
|
|
102
|
+
return e !== void 0 && (t = { ...e, rotated: i }), t;
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function _t(i) {
|
|
105
105
|
let e;
|
|
106
|
-
return
|
|
106
|
+
return i !== void 0 && (e = { ...i }, delete e.axes?.[0]?.minimum, delete e.axes?.[0]?.maximum, delete e.axes?.[1]?.minimum, delete e.axes?.[1]?.maximum), e;
|
|
107
107
|
}
|
|
108
|
-
function
|
|
109
|
-
return e != null || De(
|
|
108
|
+
function Hi(i, e) {
|
|
109
|
+
return e != null || De(i);
|
|
110
110
|
}
|
|
111
|
-
async function
|
|
112
|
-
const { config: e, layer: t, abortSignal:
|
|
113
|
-
let
|
|
114
|
-
return
|
|
111
|
+
async function Ui(i) {
|
|
112
|
+
const { config: e, layer: t, abortSignal: a } = i;
|
|
113
|
+
let s = !1;
|
|
114
|
+
return ye(t) || Pt(e) ? e && ye(t) && (s = await _e({ config: e, layer: t, abortSignal: a })) : s = !0, s;
|
|
115
115
|
}
|
|
116
|
-
async function
|
|
116
|
+
async function Kt(i) {
|
|
117
117
|
const {
|
|
118
118
|
queryObject: e,
|
|
119
119
|
chartConfig: t,
|
|
120
|
-
splitByField:
|
|
121
|
-
errorStrings:
|
|
122
|
-
abortSignal:
|
|
120
|
+
splitByField: a,
|
|
121
|
+
errorStrings: s,
|
|
122
|
+
abortSignal: r,
|
|
123
123
|
runtimeDataFilters: n,
|
|
124
124
|
ignoreViewExtent: o,
|
|
125
125
|
setTimeBinningInfoWhenNotProvided: l,
|
|
126
126
|
returnFeaturesExtent: c,
|
|
127
|
-
returnStatisticsAggregatedIds:
|
|
127
|
+
returnStatisticsAggregatedIds: g,
|
|
128
128
|
chartLimits: f
|
|
129
|
-
} =
|
|
130
|
-
let
|
|
131
|
-
const d =
|
|
129
|
+
} = i;
|
|
130
|
+
let p = [], u;
|
|
131
|
+
const d = te(t), y = d.series[0], m = nt({
|
|
132
132
|
queryObject: e,
|
|
133
133
|
chartConfig: d,
|
|
134
134
|
runtimeDataFilters: n,
|
|
135
135
|
ignoreViewExtent: o
|
|
136
136
|
});
|
|
137
|
-
if (
|
|
138
|
-
xAxisValueFormatType:
|
|
137
|
+
if (m.outStatistics?.[0]?.outStatisticFieldName && (m.outStatistics[0].outStatisticFieldName = At.outStatistics.outStatisticFieldName), L(y) && ot({
|
|
138
|
+
xAxisValueFormatType: lt(d),
|
|
139
139
|
setTimeBinningInfoWhenNotProvided: l,
|
|
140
140
|
seriesConfig: y,
|
|
141
141
|
queryObject: e
|
|
142
|
-
}) &&
|
|
143
|
-
const { temporalBinning: F, x } = y, { uniqueQuery:
|
|
142
|
+
}) && ct(a, e)) {
|
|
143
|
+
const { temporalBinning: F, x: S } = y, { uniqueQuery: h } = Se({
|
|
144
144
|
chartConfig: d,
|
|
145
|
-
queryConfig:
|
|
145
|
+
queryConfig: m,
|
|
146
146
|
queryObject: e,
|
|
147
147
|
setTimeBinningInfoWhenNotProvided: l,
|
|
148
148
|
returnFeaturesExtent: c,
|
|
149
149
|
chartLimits: f
|
|
150
|
-
}),
|
|
151
|
-
|
|
150
|
+
}), b = t.axes?.[0].valueFormat.type === x.DateAxisFormat ? t.axes[0].valueFormat.intlOptions.timeZone : void 0;
|
|
151
|
+
u = await ut({
|
|
152
152
|
queryObject: e,
|
|
153
|
-
dateField:
|
|
154
|
-
splitByField:
|
|
155
|
-
queryConfig:
|
|
156
|
-
axisTimeZone:
|
|
153
|
+
dateField: S,
|
|
154
|
+
splitByField: a,
|
|
155
|
+
queryConfig: h,
|
|
156
|
+
axisTimeZone: b,
|
|
157
157
|
temporalBinning: F,
|
|
158
|
-
returnStatisticsAggregatedIds:
|
|
159
|
-
errorStrings:
|
|
160
|
-
abortSignal:
|
|
161
|
-
}),
|
|
158
|
+
returnStatisticsAggregatedIds: g,
|
|
159
|
+
errorStrings: s,
|
|
160
|
+
abortSignal: r
|
|
161
|
+
}), p = Array.from(
|
|
162
162
|
new Set(
|
|
163
|
-
|
|
164
|
-
const { stackedAttributes:
|
|
165
|
-
let
|
|
166
|
-
return
|
|
163
|
+
u.flatMap((C) => {
|
|
164
|
+
const { stackedAttributes: T } = C;
|
|
165
|
+
let A = [];
|
|
166
|
+
return T && (A = T.map((v) => v[a]).filter((v) => v !== void 0)), A;
|
|
167
167
|
})
|
|
168
168
|
).values()
|
|
169
169
|
);
|
|
170
170
|
} else {
|
|
171
|
-
const { uniqueQuery: F } =
|
|
171
|
+
const { uniqueQuery: F } = Se({
|
|
172
172
|
chartConfig: d,
|
|
173
173
|
queryObject: e,
|
|
174
|
-
queryConfig:
|
|
174
|
+
queryConfig: m,
|
|
175
175
|
setTimeBinningInfoWhenNotProvided: l,
|
|
176
176
|
returnFeaturesExtent: c,
|
|
177
177
|
chartLimits: f
|
|
178
|
-
}), { elementCount:
|
|
178
|
+
}), { elementCount: S } = await dt({
|
|
179
179
|
chartConfig: d,
|
|
180
180
|
queryObject: e,
|
|
181
|
-
queryConfig:
|
|
181
|
+
queryConfig: m,
|
|
182
182
|
behaviorAfterLimit: f?.behaviorAfterLimit,
|
|
183
183
|
numberMaxOfFeaturesToFetch: F.num,
|
|
184
|
-
abortSignal:
|
|
184
|
+
abortSignal: r
|
|
185
185
|
});
|
|
186
|
-
|
|
186
|
+
u = await yt({
|
|
187
187
|
queryObject: e,
|
|
188
188
|
queryConfig: F,
|
|
189
|
-
featureCount:
|
|
190
|
-
returnStatisticsAggregatedIds:
|
|
191
|
-
errorStrings:
|
|
192
|
-
abortSignal:
|
|
193
|
-
}),
|
|
189
|
+
featureCount: S,
|
|
190
|
+
returnStatisticsAggregatedIds: g,
|
|
191
|
+
errorStrings: s,
|
|
192
|
+
abortSignal: r
|
|
193
|
+
}), p = Array.from(
|
|
194
194
|
new Set(
|
|
195
|
-
|
|
195
|
+
u.map((h) => h.attributes[a]).filter((h) => h !== void 0)
|
|
196
196
|
).values()
|
|
197
197
|
);
|
|
198
198
|
}
|
|
199
|
-
return { allValues:
|
|
199
|
+
return { allValues: p, preFetchedQueryResponse: u };
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function Qt(i, e) {
|
|
202
202
|
const t = /* @__PURE__ */ new Map();
|
|
203
|
-
return
|
|
204
|
-
let
|
|
205
|
-
where:
|
|
203
|
+
return i.series.forEach((a) => {
|
|
204
|
+
let s = ge({
|
|
205
|
+
where: a.query?.where,
|
|
206
206
|
// normalize the value so it matches what we get from getAllValues()
|
|
207
207
|
// Refer to https://devtopia.esri.com/WebGIS/arcgis-charts/issues/8127
|
|
208
208
|
normalize: !0,
|
|
@@ -210,88 +210,88 @@ function Zt(s, e) {
|
|
|
210
210
|
// Refer to https://devtopia.esri.com/WebGIS/arcgis-charts/issues/8078
|
|
211
211
|
escape: !1
|
|
212
212
|
});
|
|
213
|
-
e &&
|
|
214
|
-
const
|
|
215
|
-
|
|
216
|
-
...t.get(
|
|
217
|
-
|
|
213
|
+
e && s !== null && (s = Number(s));
|
|
214
|
+
const r = qe([a]);
|
|
215
|
+
r !== void 0 && t.set(r, [
|
|
216
|
+
...t.get(r) ?? [],
|
|
217
|
+
s
|
|
218
218
|
]);
|
|
219
219
|
}), t;
|
|
220
220
|
}
|
|
221
|
-
function
|
|
222
|
-
const { allValues: e, configUniqueValuesPerSeriesType: t, initialConfigWasEmpty:
|
|
223
|
-
return Array.from(t.keys()).forEach((
|
|
224
|
-
const n = t.get(
|
|
221
|
+
function zt(i) {
|
|
222
|
+
const { allValues: e, configUniqueValuesPerSeriesType: t, initialConfigWasEmpty: a } = i, s = /* @__PURE__ */ new Map();
|
|
223
|
+
return Array.from(t.keys()).forEach((r) => {
|
|
224
|
+
const n = t.get(r) ?? [];
|
|
225
225
|
let o = [];
|
|
226
|
-
|
|
226
|
+
a ? o = e : e.forEach((l) => {
|
|
227
227
|
n.includes(l) || o.push(l);
|
|
228
|
-
}),
|
|
229
|
-
}),
|
|
228
|
+
}), s.set(r, o);
|
|
229
|
+
}), s;
|
|
230
230
|
}
|
|
231
|
-
function
|
|
232
|
-
const { chartConfig: e, missingValue: t, splitByField:
|
|
231
|
+
function Gt(i) {
|
|
232
|
+
const { chartConfig: e, missingValue: t, splitByField: a, seriesTemplate: s } = i, r = JSON.parse(
|
|
233
233
|
JSON.stringify({
|
|
234
234
|
...e.series[0],
|
|
235
|
-
...
|
|
235
|
+
...s
|
|
236
236
|
})
|
|
237
237
|
);
|
|
238
|
-
if (
|
|
239
|
-
if (t === null ?
|
|
240
|
-
const o =
|
|
241
|
-
|
|
238
|
+
if (r.query) {
|
|
239
|
+
if (t === null ? r.id = H.nullValue : t === "" ? r.id = H.emptyStringValue : r.id = `${t}`, r.name = `${t}`, r.query.outStatistics?.[0] !== void 0) {
|
|
240
|
+
const o = r.id;
|
|
241
|
+
r.query.outStatistics[0].outStatisticFieldName = o, "y" in r && (r.y = o);
|
|
242
242
|
}
|
|
243
243
|
const n = typeof t == "number" || t === null ? t : `'${t}'`;
|
|
244
|
-
|
|
244
|
+
r.query.where = `${a}=${n}`;
|
|
245
245
|
}
|
|
246
|
-
return
|
|
246
|
+
return r;
|
|
247
247
|
}
|
|
248
|
-
async function
|
|
248
|
+
async function Jt(i) {
|
|
249
249
|
const {
|
|
250
250
|
updateSplitBySeries: e,
|
|
251
251
|
config: t,
|
|
252
|
-
queryObject:
|
|
253
|
-
errorStrings:
|
|
254
|
-
abortSignal:
|
|
252
|
+
queryObject: a,
|
|
253
|
+
errorStrings: s,
|
|
254
|
+
abortSignal: r,
|
|
255
255
|
runtimeDataFilters: n,
|
|
256
256
|
ignoreViewExtent: o,
|
|
257
257
|
setTimeBinningInfoWhenNotProvided: l,
|
|
258
258
|
returnFeaturesExtent: c,
|
|
259
|
-
returnStatisticsAggregatedIds:
|
|
259
|
+
returnStatisticsAggregatedIds: g,
|
|
260
260
|
chartLimits: f
|
|
261
|
-
} =
|
|
262
|
-
let
|
|
263
|
-
if (
|
|
261
|
+
} = i, { seriesTemplate: p } = e ?? {};
|
|
262
|
+
let u;
|
|
263
|
+
if (a && !ye(a) && e !== void 0 && t !== void 0 && (t.series.length > 0 || p !== void 0) && e.addMissingSeries) {
|
|
264
264
|
const d = t.series.length === 0;
|
|
265
|
-
t.series.length === 0 &&
|
|
266
|
-
const y =
|
|
267
|
-
if (y ===
|
|
268
|
-
const
|
|
269
|
-
queryObject:
|
|
265
|
+
t.series.length === 0 && p !== void 0 && t.series.push(p);
|
|
266
|
+
const y = ie(t.series);
|
|
267
|
+
if (y === P.BoxPlotC5MonoFieldAndSplitBy || y === P.BoxPlotC6MultiFieldsAndSplitBy || y === P.BoxPlotC7MonoFieldAndCategoryAndSplitBy || y === P.BarAndLineSplitBy || y === P.BarAndLineSplitByNoAggregation) {
|
|
268
|
+
const m = tt(t.series[0]?.query?.where), F = it(a), S = st(m, F), h = S ? at(S) : !1, b = await Kt({
|
|
269
|
+
queryObject: a,
|
|
270
270
|
chartConfig: t,
|
|
271
|
-
splitByField:
|
|
272
|
-
abortSignal:
|
|
271
|
+
splitByField: m,
|
|
272
|
+
abortSignal: r,
|
|
273
273
|
runtimeDataFilters: n,
|
|
274
274
|
ignoreViewExtent: o,
|
|
275
275
|
setTimeBinningInfoWhenNotProvided: l,
|
|
276
276
|
returnFeaturesExtent: c,
|
|
277
|
-
returnStatisticsAggregatedIds:
|
|
277
|
+
returnStatisticsAggregatedIds: g,
|
|
278
278
|
chartLimits: f,
|
|
279
|
-
errorStrings:
|
|
280
|
-
}), { allValues: C } =
|
|
281
|
-
if ({ preFetchedQueryResponse:
|
|
282
|
-
const
|
|
279
|
+
errorStrings: s
|
|
280
|
+
}), { allValues: C } = b;
|
|
281
|
+
if ({ preFetchedQueryResponse: u } = b, C.length > 0) {
|
|
282
|
+
const T = Qt(t, h), A = zt({
|
|
283
283
|
allValues: C,
|
|
284
|
-
configUniqueValuesPerSeriesType:
|
|
284
|
+
configUniqueValuesPerSeriesType: T,
|
|
285
285
|
initialConfigWasEmpty: d
|
|
286
286
|
});
|
|
287
|
-
Array.from(
|
|
288
|
-
(
|
|
287
|
+
Array.from(A.keys()).forEach((v) => {
|
|
288
|
+
(A.get(v) ?? []).forEach((D) => {
|
|
289
289
|
t.series.push(
|
|
290
|
-
|
|
290
|
+
Gt({
|
|
291
291
|
chartConfig: t,
|
|
292
|
-
seriesTemplate:
|
|
293
|
-
missingValue:
|
|
294
|
-
splitByField:
|
|
292
|
+
seriesTemplate: p,
|
|
293
|
+
missingValue: D,
|
|
294
|
+
splitByField: m
|
|
295
295
|
})
|
|
296
296
|
);
|
|
297
297
|
}), d && t.series.shift();
|
|
@@ -299,151 +299,151 @@ async function Qt(s) {
|
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
|
-
return
|
|
302
|
+
return u;
|
|
303
303
|
}
|
|
304
|
-
function
|
|
305
|
-
e && !De(e) && (e =
|
|
304
|
+
function ei(i, e) {
|
|
305
|
+
e && !De(e) && (e = et({ chartConfig: e, queryObject: i }));
|
|
306
306
|
}
|
|
307
|
-
async function
|
|
307
|
+
async function ji(i) {
|
|
308
308
|
const {
|
|
309
309
|
configToAlter: e,
|
|
310
310
|
layer: t,
|
|
311
|
-
addMissingSeries:
|
|
312
|
-
updateSplitBySeries:
|
|
313
|
-
chartContainer:
|
|
311
|
+
addMissingSeries: a,
|
|
312
|
+
updateSplitBySeries: s,
|
|
313
|
+
chartContainer: r,
|
|
314
314
|
queryObject: n,
|
|
315
315
|
abortSignal: o,
|
|
316
316
|
runtimeDataFilters: l,
|
|
317
317
|
ignoreViewExtent: c,
|
|
318
|
-
setTimeBinningInfoWhenNotProvided:
|
|
318
|
+
setTimeBinningInfoWhenNotProvided: g,
|
|
319
319
|
returnFeaturesExtent: f,
|
|
320
|
-
returnStatisticsAggregatedIds:
|
|
321
|
-
chartLimits:
|
|
320
|
+
returnStatisticsAggregatedIds: p,
|
|
321
|
+
chartLimits: u,
|
|
322
322
|
timeZone: d,
|
|
323
323
|
errorStrings: y
|
|
324
|
-
} =
|
|
325
|
-
let
|
|
326
|
-
return
|
|
327
|
-
updateSplitBySeries:
|
|
328
|
-
config:
|
|
324
|
+
} = i;
|
|
325
|
+
let m = e, F;
|
|
326
|
+
return m && (ei(t, m), m = await Rt(m, t, void 0, o), a && n && (F = await Jt({
|
|
327
|
+
updateSplitBySeries: s,
|
|
328
|
+
config: m,
|
|
329
329
|
queryObject: n,
|
|
330
330
|
errorStrings: y,
|
|
331
331
|
abortSignal: o,
|
|
332
332
|
runtimeDataFilters: l,
|
|
333
333
|
ignoreViewExtent: c,
|
|
334
|
-
setTimeBinningInfoWhenNotProvided:
|
|
334
|
+
setTimeBinningInfoWhenNotProvided: g,
|
|
335
335
|
returnFeaturesExtent: f,
|
|
336
|
-
returnStatisticsAggregatedIds:
|
|
337
|
-
chartLimits:
|
|
338
|
-
})),
|
|
336
|
+
returnStatisticsAggregatedIds: p,
|
|
337
|
+
chartLimits: u
|
|
338
|
+
})), m = Ze(m, r), Re(d, m)), { alteredConfig: m, preFetchedQueryResponse: F };
|
|
339
339
|
}
|
|
340
|
-
function
|
|
340
|
+
function ti(i, e) {
|
|
341
341
|
let t = !1;
|
|
342
342
|
if (e !== void 0) {
|
|
343
|
-
const
|
|
344
|
-
t = Number.isFinite(
|
|
343
|
+
const a = rt({ key: mt.Average, splitBy: e });
|
|
344
|
+
t = Number.isFinite(i[a]);
|
|
345
345
|
}
|
|
346
346
|
return t;
|
|
347
347
|
}
|
|
348
|
-
function
|
|
349
|
-
const { data: e, config: t, showEmptySeries:
|
|
348
|
+
function Zi(i) {
|
|
349
|
+
const { data: e, config: t, showEmptySeries: a } = i, s = t.series.length, r = te(t);
|
|
350
350
|
let n = !1;
|
|
351
|
-
if (!
|
|
352
|
-
const o = Ke(e), l =
|
|
351
|
+
if (!a && s > 1 && e) {
|
|
352
|
+
const o = Ke(e), l = qe(t?.series), c = ie(t?.series), g = /* @__PURE__ */ new Set();
|
|
353
353
|
switch (l) {
|
|
354
|
-
case
|
|
355
|
-
case
|
|
356
|
-
case
|
|
357
|
-
case
|
|
358
|
-
|
|
354
|
+
case x.ComboLineAndBarSeries:
|
|
355
|
+
case x.BarSeries:
|
|
356
|
+
case x.RadarSeries:
|
|
357
|
+
case x.LineSeries: {
|
|
358
|
+
r.series.forEach((p) => {
|
|
359
359
|
if (Array.isArray(o)) {
|
|
360
|
-
let
|
|
361
|
-
"y" in
|
|
362
|
-
(y) =>
|
|
360
|
+
let u = "";
|
|
361
|
+
"y" in p && (u = Array.isArray(p.y) ? p.y[0] : p.y, c === P.BarAndLineSplitByNoAggregation && (u = `${u}_${ge({ where: p.query?.where, keepSurroundingQuotes: !1, escape: !1 })}`), o.some(
|
|
362
|
+
(y) => Je({
|
|
363
363
|
dataItem: y,
|
|
364
|
-
x:
|
|
365
|
-
y:
|
|
364
|
+
x: p.x,
|
|
365
|
+
y: u,
|
|
366
366
|
aggregationType: t.series[0].query?.outStatistics?.[0]?.statisticType
|
|
367
367
|
})
|
|
368
|
-
) &&
|
|
368
|
+
) && g.add(p));
|
|
369
369
|
}
|
|
370
370
|
});
|
|
371
371
|
break;
|
|
372
372
|
}
|
|
373
|
-
case
|
|
374
|
-
if (
|
|
375
|
-
const
|
|
376
|
-
t.series.forEach((
|
|
373
|
+
case x.BoxPlotSeries: {
|
|
374
|
+
if (Qe(t)) {
|
|
375
|
+
const p = ze(t);
|
|
376
|
+
t.series.forEach((u) => {
|
|
377
377
|
let d, y;
|
|
378
|
-
|
|
379
|
-
(
|
|
380
|
-
dataItem:
|
|
381
|
-
splitBy:
|
|
382
|
-
showOutliers:
|
|
378
|
+
u.type === x.BoxPlotSeries ? (d = e.dataItems, y = d?.some(
|
|
379
|
+
(m) => Ge({
|
|
380
|
+
dataItem: m,
|
|
381
|
+
splitBy: u.query?.where,
|
|
382
|
+
showOutliers: p
|
|
383
383
|
})
|
|
384
|
-
)) :
|
|
385
|
-
(
|
|
386
|
-
)), y &&
|
|
384
|
+
)) : u.type === x.LineSeries && (d = e.meanLines, y = d?.some(
|
|
385
|
+
(m) => ti(m, u.query?.where)
|
|
386
|
+
)), y && g.add(u);
|
|
387
387
|
});
|
|
388
388
|
}
|
|
389
389
|
break;
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
|
-
const f = Array.from(
|
|
393
|
-
n = f.length > 0 && f.length <
|
|
392
|
+
const f = Array.from(g.values());
|
|
393
|
+
n = f.length > 0 && f.length < s, n && (r.series = f);
|
|
394
394
|
}
|
|
395
|
-
return { seriesFilteredOut: n, filteredConfig:
|
|
395
|
+
return { seriesFilteredOut: n, filteredConfig: r };
|
|
396
396
|
}
|
|
397
|
-
const
|
|
398
|
-
|
|
399
|
-
},
|
|
400
|
-
const t =
|
|
397
|
+
const _i = (i) => i.hideEmptyRowsAndColumns, Ki = (i, e) => {
|
|
398
|
+
i.hideEmptyRowsAndColumns = e;
|
|
399
|
+
}, Qi = (i, e) => {
|
|
400
|
+
const t = i.series[0];
|
|
401
401
|
t.heatRulesType = e;
|
|
402
|
-
},
|
|
403
|
-
const t =
|
|
402
|
+
}, zi = (i) => i.series[0].heatRulesType, Gi = (i, e) => {
|
|
403
|
+
const t = i.series[0];
|
|
404
404
|
t.gradientRules = e;
|
|
405
|
-
},
|
|
406
|
-
const { yField: e, config: t, layerInfo:
|
|
405
|
+
}, Ji = (i) => i.series[0].gradientRules, es = (i) => {
|
|
406
|
+
const { yField: e, config: t, layerInfo: a, commonStrings: s } = i, { layerFieldsInfo: r } = a, n = re(1, t), o = ii(t), l = ae(t), c = t.series[0];
|
|
407
407
|
if (typeof e == "string" && o !== e && c) {
|
|
408
|
-
if (c.y = e,
|
|
409
|
-
const
|
|
410
|
-
|
|
408
|
+
if (c.y = e, _t(t), o === n || l) {
|
|
409
|
+
const g = R(r, e);
|
|
410
|
+
W(t, 1, g);
|
|
411
411
|
}
|
|
412
|
-
|
|
412
|
+
Pe({ commonStrings: s, config: t, layerInfo: a });
|
|
413
413
|
}
|
|
414
|
-
},
|
|
415
|
-
const { binning: e, config: t, commonStrings:
|
|
416
|
-
if (
|
|
417
|
-
const
|
|
418
|
-
|
|
414
|
+
}, ii = (i) => i.series[0].y ?? "", ts = (i) => {
|
|
415
|
+
const { binning: e, config: t, commonStrings: a } = i, s = t.series[0];
|
|
416
|
+
if (s.xTemporalBinning = e, e?.unit !== void 0 && e.unit in a.utilsStrings.heatChartCalendarDatePartsUnits) {
|
|
417
|
+
const r = a.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
|
|
418
|
+
W(t, 0, r);
|
|
419
419
|
}
|
|
420
|
-
|
|
421
|
-
},
|
|
422
|
-
const { binning: e, config: t, commonStrings:
|
|
423
|
-
if (
|
|
424
|
-
const
|
|
425
|
-
|
|
420
|
+
ee({ axisIndex: 0, commonStrings: a, config: t });
|
|
421
|
+
}, si = (i) => i.series[0].xTemporalBinning, is = (i) => {
|
|
422
|
+
const { binning: e, config: t, commonStrings: a } = i, s = t.series[0];
|
|
423
|
+
if (s.yTemporalBinning = e, e?.unit !== void 0 && e.unit in a.utilsStrings.heatChartCalendarDatePartsUnits) {
|
|
424
|
+
const r = a.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
|
|
425
|
+
W(t, 1, r);
|
|
426
426
|
}
|
|
427
|
-
|
|
428
|
-
},
|
|
427
|
+
ee({ axisIndex: 1, commonStrings: a, config: t });
|
|
428
|
+
}, ai = (i) => i.series[0].yTemporalBinning, ri = (i, e) => {
|
|
429
429
|
e.orderOptions ??= {};
|
|
430
|
-
const t = e.axes?.[0]?.valueFormat?.type === "category" ?
|
|
430
|
+
const t = e.axes?.[0]?.valueFormat?.type === "category" ? N.Category : N.YValue, a = me(e)[0], s = e.axes?.[1]?.valueFormat?.type === "category" ? N.Category : N.YValue, r = me(e)[1], n = {
|
|
431
431
|
...e.orderOptions.data ?? {},
|
|
432
|
-
orderType:
|
|
432
|
+
orderType: N.MultiAxes
|
|
433
433
|
};
|
|
434
|
-
|
|
435
|
-
},
|
|
434
|
+
a === ce.customSort && t === N.Category && (n.orderByX = [...i]), r === ce.customSort && s === N.Category && (n.orderByY = [...i]), Object.keys(n).length > 1 && (e.orderOptions.data = n);
|
|
435
|
+
}, ss = (i, e) => {
|
|
436
436
|
const t = e.series[0];
|
|
437
|
-
t.gridLine && (t.gridLine.width =
|
|
438
|
-
},
|
|
439
|
-
const t = e.series[0],
|
|
440
|
-
t.gridLine &&
|
|
441
|
-
},
|
|
437
|
+
t.gridLine && (t.gridLine.width = i);
|
|
438
|
+
}, as = (i) => i.series[0].gridLine?.width, rs = (i, e) => {
|
|
439
|
+
const t = e.series[0], a = i?.length === 4 && i.every((s) => typeof s == "number");
|
|
440
|
+
t.gridLine && a && (t.gridLine.color = i);
|
|
441
|
+
}, ns = (i) => i.series[0].gridLine?.color, os = (i, e) => {
|
|
442
442
|
const t = e.legend;
|
|
443
|
-
t && (t.position =
|
|
444
|
-
},
|
|
445
|
-
const { field: e, config: t, layerInfo:
|
|
446
|
-
|
|
443
|
+
t && (t.position = i);
|
|
444
|
+
}, ls = (i) => i.legend?.position ?? xt.Bottom, cs = (i) => i.series[0].query?.outStatistics?.[0]?.onStatisticField, us = (i) => {
|
|
445
|
+
const { field: e, config: t, layerInfo: a, commonStrings: s } = i, r = t.series[0].query?.outStatistics?.[0], n = le(t, a, s);
|
|
446
|
+
r ? (r.onStatisticField = e, r.outStatisticFieldName = `${r.statisticType}_${e}`) : t.series[0].query = {
|
|
447
447
|
outStatistics: [
|
|
448
448
|
{
|
|
449
449
|
onStatisticField: e,
|
|
@@ -451,146 +451,146 @@ const $s = (s) => s.hideEmptyRowsAndColumns, Hs = (s, e) => {
|
|
|
451
451
|
statisticType: I.Count
|
|
452
452
|
}
|
|
453
453
|
]
|
|
454
|
-
}, n && t.title && (t.title.content.text =
|
|
455
|
-
},
|
|
456
|
-
const { aggregationType: e, config: t, layerInfo:
|
|
457
|
-
|
|
458
|
-
},
|
|
459
|
-
e.nullPolicy =
|
|
460
|
-
},
|
|
461
|
-
e.series[0].emptyCells =
|
|
462
|
-
},
|
|
463
|
-
e.series[0].emptyCells ? e.series[0].emptyCells.text =
|
|
464
|
-
},
|
|
465
|
-
e.includeLeapDay =
|
|
466
|
-
},
|
|
467
|
-
e.series[0].emptyCells ? e.series[0].emptyCells.symbol =
|
|
454
|
+
}, n && t.title && (t.title.content.text = _(t, a, s));
|
|
455
|
+
}, ds = (i) => i.series[0].query?.outStatistics?.[0].statisticType ?? I.Count, ys = (i) => {
|
|
456
|
+
const { aggregationType: e, config: t, layerInfo: a, commonStrings: s } = i, r = t.series[0]?.query?.outStatistics?.[0], n = le(t, a, s);
|
|
457
|
+
r && e !== I.NoAggregation && (r.statisticType = e, r.outStatisticFieldName = `${e}_${r.onStatisticField}`), (e === I.Count || e === I.Sum) && ni($.Zero, t), n && t.title && (t.title.content.text = _(t, a, s));
|
|
458
|
+
}, ms = (i) => i.nullPolicy, ni = (i, e) => {
|
|
459
|
+
e.nullPolicy = i;
|
|
460
|
+
}, gs = (i) => i.series[0].emptyCells, ps = (i, e) => {
|
|
461
|
+
e.series[0].emptyCells = i;
|
|
462
|
+
}, fs = (i) => i.series[0].emptyCells?.text, Ss = (i, e) => {
|
|
463
|
+
e.series[0].emptyCells ? e.series[0].emptyCells.text = i : e.series[0].emptyCells = { text: i };
|
|
464
|
+
}, Fs = (i) => i.includeLeapDay, hs = (i, e) => {
|
|
465
|
+
e.includeLeapDay = i;
|
|
466
|
+
}, Ts = (i) => i.series[0].emptyCells?.symbol, xs = (i, e) => {
|
|
467
|
+
e.series[0].emptyCells ? e.series[0].emptyCells.symbol = i : e.series[0].emptyCells = { symbol: i };
|
|
468
468
|
};
|
|
469
|
-
function
|
|
470
|
-
return
|
|
469
|
+
function Bs(i) {
|
|
470
|
+
return i.viewType;
|
|
471
471
|
}
|
|
472
|
-
function
|
|
473
|
-
|
|
472
|
+
function Cs(i, e) {
|
|
473
|
+
gt(e) || (e.viewType = i);
|
|
474
474
|
}
|
|
475
|
-
function
|
|
476
|
-
return
|
|
475
|
+
function bs(i) {
|
|
476
|
+
return i.series[0].classBreaksRules?.breaksCount ?? H.classBreaks.breaksCount;
|
|
477
477
|
}
|
|
478
|
-
function
|
|
479
|
-
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.breaksCount =
|
|
480
|
-
breaksCount:
|
|
478
|
+
function As(i, e) {
|
|
479
|
+
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.breaksCount = i ?? H.classBreaks.breaksCount : e.series[0].classBreaksRules = {
|
|
480
|
+
breaksCount: i ?? H.classBreaks.breaksCount
|
|
481
481
|
};
|
|
482
482
|
}
|
|
483
|
-
function
|
|
484
|
-
return
|
|
483
|
+
function vs(i) {
|
|
484
|
+
return i.series[0].classBreaksRules?.classificationMethod;
|
|
485
485
|
}
|
|
486
|
-
function
|
|
487
|
-
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.classificationMethod =
|
|
488
|
-
classificationMethod:
|
|
486
|
+
function Is(i, e) {
|
|
487
|
+
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.classificationMethod = i : e.series[0].classBreaksRules = {
|
|
488
|
+
classificationMethod: i
|
|
489
489
|
}, e.series[0].classBreaksRules.breaksCount = e.series[0].classBreaksRules.breaksCount ?? H.classBreaks.breaksCount;
|
|
490
490
|
}
|
|
491
|
-
function
|
|
492
|
-
e.firstDayOfWeek =
|
|
491
|
+
function Ls(i, e) {
|
|
492
|
+
e.firstDayOfWeek = i;
|
|
493
493
|
}
|
|
494
|
-
function
|
|
495
|
-
return
|
|
494
|
+
function Ds(i) {
|
|
495
|
+
return i.firstDayOfWeek;
|
|
496
496
|
}
|
|
497
|
-
function
|
|
498
|
-
return
|
|
497
|
+
function Ns(i) {
|
|
498
|
+
return i.series[0].classBreaksRules?.colorRampInfo?.name;
|
|
499
499
|
}
|
|
500
|
-
function
|
|
500
|
+
function Os(i, e) {
|
|
501
501
|
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.colorRampInfo = {
|
|
502
502
|
...e.series[0].classBreaksRules.colorRampInfo,
|
|
503
|
-
name:
|
|
503
|
+
name: i
|
|
504
504
|
} : e.series[0].classBreaksRules = {
|
|
505
505
|
colorRampInfo: {
|
|
506
|
-
name:
|
|
506
|
+
name: i,
|
|
507
507
|
flipped: !1
|
|
508
508
|
}
|
|
509
509
|
};
|
|
510
510
|
}
|
|
511
|
-
function
|
|
512
|
-
return
|
|
511
|
+
function Vs(i) {
|
|
512
|
+
return i.series[0].classBreaksRules?.colorRampInfo?.flipped ?? !1;
|
|
513
513
|
}
|
|
514
|
-
function
|
|
514
|
+
function ks(i, e) {
|
|
515
515
|
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.colorRampInfo = {
|
|
516
516
|
...e.series[0].classBreaksRules.colorRampInfo,
|
|
517
|
-
flipped:
|
|
517
|
+
flipped: i
|
|
518
518
|
} : e.series[0].classBreaksRules = {
|
|
519
519
|
colorRampInfo: {
|
|
520
|
-
flipped:
|
|
520
|
+
flipped: i
|
|
521
521
|
}
|
|
522
522
|
};
|
|
523
523
|
}
|
|
524
|
-
const
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
],
|
|
524
|
+
const oi = [
|
|
525
|
+
q.DayOfMonth,
|
|
526
|
+
q.MonthOfYear
|
|
527
|
+
], Ce = (i) => {
|
|
528
528
|
let e;
|
|
529
|
-
return
|
|
530
|
-
},
|
|
531
|
-
const { axisIndex: e, commonStrings: t, config:
|
|
532
|
-
|
|
533
|
-
},
|
|
529
|
+
return Q(i) ? e = de() : (k(i) || z(i)) && (e = J()), e;
|
|
530
|
+
}, be = (i) => k(i) || z(i), Ae = (i) => {
|
|
531
|
+
const { axisIndex: e, commonStrings: t, config: a, valueFormat: s } = i, r = a.axes?.[e]?.valueFormat;
|
|
532
|
+
s !== void 0 && r?.type !== s.type && Oe({ config: a, commonStrings: t, valueFormat: s, axisIndex: e });
|
|
533
|
+
}, li = (i, e) => {
|
|
534
534
|
let t;
|
|
535
|
-
return e === 0 ? t =
|
|
536
|
-
},
|
|
537
|
-
let t =
|
|
538
|
-
return
|
|
539
|
-
type:
|
|
535
|
+
return e === 0 ? t = i.series[0]?.xTemporalBinning : e === 1 && (t = i.series[0]?.yTemporalBinning), t;
|
|
536
|
+
}, ve = (i, e) => i.utilsStrings.heatChartCalendarDatePartsUnits[e] ?? "", Ie = (i, e) => {
|
|
537
|
+
let t = oi[i];
|
|
538
|
+
return i === 0 && e?.unit === q.DayOfWeek ? t = q.HourOfDay : i === 1 && e?.unit === q.HourOfDay && (t = q.DayOfWeek), {
|
|
539
|
+
type: x.CalendarDateParts,
|
|
540
540
|
unit: t
|
|
541
541
|
};
|
|
542
|
-
},
|
|
542
|
+
}, ci = (i) => {
|
|
543
543
|
let e = {};
|
|
544
|
-
switch (
|
|
545
|
-
case
|
|
544
|
+
switch (i.unit) {
|
|
545
|
+
case q.DayOfMonth:
|
|
546
546
|
e = { day: "2-digit" };
|
|
547
547
|
break;
|
|
548
|
-
case
|
|
548
|
+
case q.DayOfWeek:
|
|
549
549
|
e = { weekday: "short" };
|
|
550
550
|
break;
|
|
551
|
-
case
|
|
551
|
+
case q.HourOfDay:
|
|
552
552
|
e = { hour: "numeric", hour12: !1 };
|
|
553
553
|
break;
|
|
554
|
-
case
|
|
554
|
+
case q.MonthOfYear:
|
|
555
555
|
e = { month: "short" };
|
|
556
556
|
break;
|
|
557
557
|
default:
|
|
558
|
-
e =
|
|
558
|
+
e = J().intlOptions;
|
|
559
559
|
break;
|
|
560
560
|
}
|
|
561
561
|
return {
|
|
562
|
-
type:
|
|
562
|
+
type: x.DateAxisFormat,
|
|
563
563
|
intlOptions: e
|
|
564
564
|
};
|
|
565
|
-
},
|
|
566
|
-
const { axisIndex: e, binning: t, commonStrings:
|
|
567
|
-
e === 0 ? o.xTemporalBinning = t : e === 1 && (o.yTemporalBinning = t), t !== void 0 && (l === "" || l === c || l ===
|
|
568
|
-
},
|
|
569
|
-
const { axisIndex: e, commonStrings: t, config:
|
|
570
|
-
|
|
571
|
-
},
|
|
572
|
-
const { commonStrings: e, config: t, layerInfo:
|
|
573
|
-
if (
|
|
574
|
-
const
|
|
575
|
-
|
|
565
|
+
}, Le = (i) => {
|
|
566
|
+
const { axisIndex: e, binning: t, commonStrings: a, config: s, fieldName: r, layerInfo: n } = i, o = s.series[0], l = re(e, s), c = R(n.layerFieldsInfo, r);
|
|
567
|
+
e === 0 ? o.xTemporalBinning = t : e === 1 && (o.yTemporalBinning = t), t !== void 0 && (l === "" || l === c || l === ve(a, t.unit) || l === a.xAxis) && W(s, e, ve(a, t.unit));
|
|
568
|
+
}, ee = (i) => {
|
|
569
|
+
const { axisIndex: e, commonStrings: t, config: a } = i, s = li(a, e), r = s ? ci(s) : void 0;
|
|
570
|
+
Oe({ config: a, commonStrings: t, valueFormat: r, axisIndex: e });
|
|
571
|
+
}, Pe = (i) => {
|
|
572
|
+
const { commonStrings: e, config: t, layerInfo: a } = i, s = t.series[0]?.x ?? "", r = t.series[0]?.y ?? "", n = Fe(a.layerFieldsInfo, s), o = Fe(a.layerFieldsInfo, r), l = Ce(n), c = Ce(o), g = be(n) && be(o), f = Q(n) && Q(o);
|
|
573
|
+
if (Ae({ axisIndex: 0, commonStrings: e, config: t, valueFormat: l }), Ae({ axisIndex: 1, commonStrings: e, config: t, valueFormat: c }), g) {
|
|
574
|
+
const p = si(t) === void 0, u = ai(t) === void 0;
|
|
575
|
+
p && (Le({
|
|
576
576
|
axisIndex: 0,
|
|
577
|
-
binning:
|
|
577
|
+
binning: Ie(0, t.series[0].yTemporalBinning),
|
|
578
578
|
commonStrings: e,
|
|
579
579
|
config: t,
|
|
580
|
-
fieldName:
|
|
581
|
-
layerInfo:
|
|
582
|
-
}),
|
|
580
|
+
fieldName: s,
|
|
581
|
+
layerInfo: a
|
|
582
|
+
}), ee({
|
|
583
583
|
axisIndex: 0,
|
|
584
584
|
commonStrings: e,
|
|
585
585
|
config: t
|
|
586
|
-
})),
|
|
586
|
+
})), u && (Le({
|
|
587
587
|
axisIndex: 1,
|
|
588
|
-
binning:
|
|
588
|
+
binning: Ie(1, t.series[0].xTemporalBinning),
|
|
589
589
|
commonStrings: e,
|
|
590
590
|
config: t,
|
|
591
|
-
fieldName:
|
|
592
|
-
layerInfo:
|
|
593
|
-
}),
|
|
591
|
+
fieldName: r,
|
|
592
|
+
layerInfo: a
|
|
593
|
+
}), ee({
|
|
594
594
|
axisIndex: 1,
|
|
595
595
|
commonStrings: e,
|
|
596
596
|
config: t
|
|
@@ -598,328 +598,333 @@ const as = [
|
|
|
598
598
|
}
|
|
599
599
|
f && (t.series[0].xTemporalBinning = void 0, t.series[0].yTemporalBinning = void 0);
|
|
600
600
|
};
|
|
601
|
-
function
|
|
601
|
+
function ui(i) {
|
|
602
602
|
const e = {};
|
|
603
|
-
return
|
|
604
|
-
|
|
603
|
+
return i.series.forEach((t) => {
|
|
604
|
+
Vt(t) && "nullCategory" in t && t.nullCategory !== void 0 && (e.text ??= t.nullCategory.text, t.type === x.BarSeries ? e.fillSymbol ??= t.nullCategory.fillSymbol : e.markerSymbol ??= t.nullCategory.markerSymbol);
|
|
605
605
|
}), e.text || e.fillSymbol || e.markerSymbol ? e : void 0;
|
|
606
606
|
}
|
|
607
|
-
function
|
|
608
|
-
const { seriesIndex: e, xAxisField: t, aggregationType:
|
|
607
|
+
function ne(i) {
|
|
608
|
+
const { seriesIndex: e, xAxisField: t, aggregationType: a, config: s, layerInfo: r, commonStrings: n } = i, o = Z(r?.layer).idField;
|
|
609
609
|
let l;
|
|
610
|
-
const c =
|
|
611
|
-
let
|
|
610
|
+
const c = s.series[e ?? 0];
|
|
611
|
+
let g = !1, f = !1, p = !1;
|
|
612
612
|
if (c === void 0) {
|
|
613
|
-
const
|
|
614
|
-
|
|
613
|
+
const T = s.series;
|
|
614
|
+
g = T.slice(0, e).every((A) => O(A)), f = T.slice(0, e).every((A) => V(A)), p = T.slice(0, e).every((A) => he(A));
|
|
615
615
|
} else
|
|
616
|
-
|
|
617
|
-
|
|
616
|
+
g = O(c), f = V(c), p = he(c);
|
|
617
|
+
g ? l = It({
|
|
618
618
|
commonStrings: n,
|
|
619
619
|
seriesIndex: e,
|
|
620
620
|
objectIDField: o
|
|
621
|
-
}) : f ? l =
|
|
621
|
+
}) : f ? l = Lt({
|
|
622
622
|
commonStrings: n,
|
|
623
623
|
seriesIndex: e,
|
|
624
624
|
objectIDField: o
|
|
625
|
-
}) :
|
|
625
|
+
}) : p ? l = Dt(n, o) : l = Nt({
|
|
626
626
|
seriesIndex: e,
|
|
627
627
|
objectIDField: o,
|
|
628
628
|
commonStrings: n
|
|
629
629
|
});
|
|
630
|
-
const
|
|
630
|
+
const u = s.series[0]?.dataLabels, d = "nullCategory" in s.series[0] ? ui(s) : void 0, y = "binTemporalData" in s.series[0] ? s.series[0].binTemporalData : void 0, m = "classBreakRules" in s.series[0] ? s.series[0].classBreakRules : void 0, F = "xTemporalBinning" in s.series[0] ? s.series[0].xTemporalBinning : void 0, S = "yTemporalBinning" in s.series[0] ? s.series[0].yTemporalBinning : void 0, h = "emptyCells" in s.series[0] ? s.series[0].emptyCells : void 0, b = s.series[0].query && "fetchNullValues" in s.series[0].query ? s.series[0].query?.fetchNullValues : void 0, C = {
|
|
631
631
|
...l,
|
|
632
632
|
x: t,
|
|
633
633
|
y: "",
|
|
634
634
|
dataLabels: {
|
|
635
635
|
...l.dataLabels,
|
|
636
|
-
type: l.dataLabels?.type ??
|
|
637
|
-
content: { ...l.dataLabels?.content, ...
|
|
638
|
-
visible:
|
|
636
|
+
type: l.dataLabels?.type ?? x.Text,
|
|
637
|
+
content: { ...l.dataLabels?.content, ...u?.content, type: bt.TS },
|
|
638
|
+
visible: u?.visible ?? !1
|
|
639
639
|
},
|
|
640
640
|
...d !== void 0 ? { nullCategory: d } : {},
|
|
641
641
|
...y !== void 0 ? { binTemporalData: y } : {},
|
|
642
|
-
...
|
|
642
|
+
...m !== void 0 ? { classBreakRules: m } : {},
|
|
643
643
|
...F !== void 0 ? { xTemporalBinning: F } : {},
|
|
644
|
-
...
|
|
645
|
-
...
|
|
644
|
+
...S !== void 0 ? { yTemporalBinning: S } : {},
|
|
645
|
+
...h !== void 0 ? { emptyCells: h } : {}
|
|
646
646
|
};
|
|
647
647
|
if (C.query = {
|
|
648
648
|
groupByFieldsForStatistics: [t],
|
|
649
|
-
...
|
|
650
|
-
},
|
|
651
|
-
const
|
|
652
|
-
C.y =
|
|
649
|
+
...b !== void 0 ? { fetchNullValues: b } : {}
|
|
650
|
+
}, a !== I.NoAggregation && o !== void 0) {
|
|
651
|
+
const T = `${a}_${o}_0`.toUpperCase();
|
|
652
|
+
C.y = T, C.query.outStatistics = [
|
|
653
653
|
{
|
|
654
|
-
statisticType:
|
|
654
|
+
statisticType: a,
|
|
655
655
|
onStatisticField: o,
|
|
656
|
-
outStatisticFieldName:
|
|
656
|
+
outStatisticFieldName: T
|
|
657
657
|
}
|
|
658
658
|
];
|
|
659
659
|
}
|
|
660
|
-
if (L(
|
|
661
|
-
let
|
|
662
|
-
|
|
663
|
-
...
|
|
664
|
-
unit:
|
|
660
|
+
if (L(s.series[0]) && L(C)) {
|
|
661
|
+
let T = Mt(s);
|
|
662
|
+
T === ue.Quarter && (T = ue.Month), C.temporalBinning = {
|
|
663
|
+
...s.series[0]?.temporalBinning,
|
|
664
|
+
unit: T
|
|
665
665
|
};
|
|
666
666
|
}
|
|
667
|
-
return
|
|
667
|
+
return te(C);
|
|
668
668
|
}
|
|
669
|
-
function
|
|
670
|
-
const { layerFieldsInfo:
|
|
671
|
-
let
|
|
672
|
-
if (
|
|
669
|
+
function _(i, e, t) {
|
|
670
|
+
const { layerFieldsInfo: a } = e, { idField: s, isTraditionalTypeOID: r } = Z(e.layer), n = w(i), o = U(i), l = oe(i), c = K(i), g = r && (o.length === 0 || o.includes(s)), f = vt(l, t), p = g ? "" : o.map((h) => R(a ?? [], h)).join(", "), u = R(a ?? [], n), d = R(a ?? [], c), y = i.series.some((h) => Y(h)), m = y ? "category" : "xAxisField", F = u;
|
|
671
|
+
let S = "";
|
|
672
|
+
if (fe({
|
|
673
673
|
fieldName: n,
|
|
674
674
|
numericFields: o,
|
|
675
|
-
fieldList:
|
|
675
|
+
fieldList: a
|
|
676
676
|
}))
|
|
677
|
-
|
|
677
|
+
S = M(t.titleLabels.aggrTypeOfAggrFields, {
|
|
678
678
|
aggregationType: f,
|
|
679
|
-
aggregationFields:
|
|
679
|
+
aggregationFields: p
|
|
680
680
|
});
|
|
681
681
|
else if (l === I.NoAggregation) {
|
|
682
|
-
const
|
|
682
|
+
const h = g ? s : p;
|
|
683
683
|
if (c === "") {
|
|
684
|
-
const
|
|
685
|
-
|
|
686
|
-
aggregationType:
|
|
687
|
-
[
|
|
684
|
+
const b = y ? "aggrTypeCategory" : "aggrTypeXAxisField";
|
|
685
|
+
S = M(t.titleLabels[b], {
|
|
686
|
+
aggregationType: h,
|
|
687
|
+
[m]: F
|
|
688
688
|
});
|
|
689
689
|
} else {
|
|
690
|
-
const
|
|
691
|
-
|
|
692
|
-
aggregationType:
|
|
693
|
-
[
|
|
690
|
+
const b = y ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
|
|
691
|
+
S = M(t.titleLabels[b], {
|
|
692
|
+
aggregationType: h,
|
|
693
|
+
[m]: F,
|
|
694
694
|
splitByField: d
|
|
695
695
|
});
|
|
696
696
|
}
|
|
697
697
|
} else if (l === I.Count)
|
|
698
698
|
if (c === "") {
|
|
699
|
-
const
|
|
700
|
-
|
|
699
|
+
const h = y ? "aggrTypeCategory" : "aggrTypeXAxisField";
|
|
700
|
+
S = M(t.titleLabels[h], {
|
|
701
701
|
aggregationType: f,
|
|
702
|
-
[
|
|
702
|
+
[m]: F
|
|
703
703
|
});
|
|
704
704
|
} else {
|
|
705
|
-
const
|
|
706
|
-
|
|
705
|
+
const h = y ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
|
|
706
|
+
S = M(t.titleLabels[h], {
|
|
707
707
|
aggregationType: f,
|
|
708
|
-
[
|
|
708
|
+
[m]: F,
|
|
709
709
|
splitByField: d
|
|
710
710
|
});
|
|
711
711
|
}
|
|
712
712
|
else if (c !== "") {
|
|
713
|
-
const
|
|
714
|
-
|
|
713
|
+
const h = y ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
|
|
714
|
+
S = M(t.titleLabels[h], {
|
|
715
715
|
aggregationType: f,
|
|
716
|
-
aggregationField:
|
|
717
|
-
[
|
|
716
|
+
aggregationField: p,
|
|
717
|
+
[m]: F,
|
|
718
718
|
splitByField: d
|
|
719
719
|
});
|
|
720
720
|
} else if (o.length > 0) {
|
|
721
|
-
const
|
|
722
|
-
|
|
721
|
+
const h = y ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
|
|
722
|
+
S = M(t.titleLabels[h], {
|
|
723
723
|
aggregationType: f,
|
|
724
|
-
aggregationFields:
|
|
725
|
-
[
|
|
724
|
+
aggregationFields: p,
|
|
725
|
+
[m]: F
|
|
726
726
|
});
|
|
727
727
|
}
|
|
728
|
-
return
|
|
728
|
+
return S;
|
|
729
729
|
}
|
|
730
|
-
const
|
|
731
|
-
where:
|
|
730
|
+
const we = (i) => ge({
|
|
731
|
+
where: i.query?.where,
|
|
732
732
|
normalize: !1,
|
|
733
733
|
escape: !1
|
|
734
|
-
}) ?? "",
|
|
735
|
-
(
|
|
736
|
-
const e =
|
|
737
|
-
return
|
|
734
|
+
}) ?? "", oe = (i) => i?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? I.NoAggregation, K = $e(
|
|
735
|
+
(i) => {
|
|
736
|
+
const e = i?.series?.[0]?.query?.where?.split("=")[0].trim() ?? "";
|
|
737
|
+
return pt(i?.series?.[0]?.query?.where) ? "" : e;
|
|
738
738
|
},
|
|
739
|
-
(
|
|
740
|
-
),
|
|
739
|
+
(i) => i?.series?.[0]?.query?.where
|
|
740
|
+
), U = (i) => {
|
|
741
741
|
let e = [];
|
|
742
|
-
if (
|
|
743
|
-
e =
|
|
744
|
-
const
|
|
745
|
-
return
|
|
742
|
+
if (K(i) === "")
|
|
743
|
+
e = i?.series.map((t) => {
|
|
744
|
+
const a = t.query?.outStatistics?.map((s) => s.onStatisticField) ?? [];
|
|
745
|
+
return a?.length > 0 ? a : t.y;
|
|
746
746
|
}).flat() ?? [];
|
|
747
747
|
else {
|
|
748
|
-
const t =
|
|
749
|
-
e =
|
|
748
|
+
const t = i?.series?.[0], a = t?.query?.outStatistics?.[0]?.onStatisticField ?? [t?.y].flat()[0];
|
|
749
|
+
e = a !== void 0 ? [a] : [];
|
|
750
750
|
}
|
|
751
751
|
return e.filter((t) => t !== "");
|
|
752
752
|
};
|
|
753
|
-
function
|
|
754
|
-
const { splitByField: e, numericFields: t, layer:
|
|
755
|
-
return e === "" ? t[
|
|
753
|
+
function Ee(i) {
|
|
754
|
+
const { splitByField: e, numericFields: t, layer: a, seriesIndex: s } = i, r = Z(a).idField ?? "";
|
|
755
|
+
return e === "" ? t[s] ?? r : t[0] ?? r;
|
|
756
756
|
}
|
|
757
|
-
function
|
|
758
|
-
const { numericFields: e, aggregationType: t, config:
|
|
759
|
-
let
|
|
760
|
-
t === I.Count ?
|
|
761
|
-
const c =
|
|
762
|
-
return c !== void 0 ?
|
|
763
|
-
})),
|
|
764
|
-
const n =
|
|
757
|
+
function di(i) {
|
|
758
|
+
const { numericFields: e, aggregationType: t, config: a, layerInfo: s } = i;
|
|
759
|
+
let r = !1;
|
|
760
|
+
t === I.Count ? r = !0 : t === I.NoAggregation && (r = e.every((l) => {
|
|
761
|
+
const c = s.layerFieldsInfo.find((g) => g.name === l);
|
|
762
|
+
return c !== void 0 ? Te(c) : !1;
|
|
763
|
+
})), xe(a, 1, r);
|
|
764
|
+
const n = a.series.some((l) => O(l)), o = a.series.some((l) => V(l));
|
|
765
765
|
if (n || o) {
|
|
766
|
-
const l =
|
|
767
|
-
|
|
766
|
+
const l = w(a), c = s.layerFieldsInfo.find((f) => f.name === l), g = c !== void 0 && Te(c);
|
|
767
|
+
xe(a, 0, g);
|
|
768
768
|
}
|
|
769
769
|
}
|
|
770
|
-
|
|
770
|
+
function Me(i) {
|
|
771
|
+
for (const e of [1, 2])
|
|
772
|
+
G({ config: i, value: null, axisIndex: e, isMax: !1 }), G({ config: i, value: null, axisIndex: e, isMax: !0 });
|
|
773
|
+
}
|
|
774
|
+
const me = (i) => {
|
|
771
775
|
let e;
|
|
772
|
-
if (X(
|
|
773
|
-
const t =
|
|
774
|
-
e = [
|
|
776
|
+
if (X(i)) {
|
|
777
|
+
const t = i.orderOptions?.data?.orderByX ?? [""], a = i.orderOptions?.data?.orderByY ?? [""], s = i.axes?.[0]?.valueFormat?.type === "category" ? N.Category : N.YValue, r = i.axes?.[1]?.valueFormat?.type === "category" ? N.Category : N.YValue;
|
|
778
|
+
e = [Be(t, s), Be(a, r)];
|
|
775
779
|
} else {
|
|
776
|
-
const t =
|
|
777
|
-
e = [
|
|
780
|
+
const t = i.orderOptions?.data?.orderType ?? N.Category, a = i.orderOptions?.data && "orderBy" in i.orderOptions.data ? i.orderOptions.data.orderBy : Bt.Ascending;
|
|
781
|
+
e = [Tt(a, t)];
|
|
778
782
|
}
|
|
779
783
|
return e;
|
|
780
784
|
};
|
|
781
|
-
function
|
|
782
|
-
const { xAxisField: e, numericFields: t, aggregationType:
|
|
783
|
-
config:
|
|
785
|
+
function yi(i) {
|
|
786
|
+
const { xAxisField: e, numericFields: t, aggregationType: a, config: s, layerInfo: r, commonStrings: n } = i, { layerFieldsInfo: o } = r, l = ne({
|
|
787
|
+
config: s,
|
|
784
788
|
xAxisField: e,
|
|
785
|
-
aggregationType:
|
|
786
|
-
layerInfo:
|
|
789
|
+
aggregationType: a,
|
|
790
|
+
layerInfo: r,
|
|
787
791
|
seriesIndex: 0,
|
|
788
792
|
commonStrings: n
|
|
789
|
-
}), c =
|
|
790
|
-
config:
|
|
793
|
+
}), c = se({
|
|
794
|
+
config: s,
|
|
791
795
|
xAxisField: e,
|
|
792
796
|
numericFields: t,
|
|
793
|
-
aggregationType:
|
|
794
|
-
layer:
|
|
797
|
+
aggregationType: a,
|
|
798
|
+
layer: r.layer,
|
|
795
799
|
fieldList: o
|
|
796
|
-
}).name,
|
|
797
|
-
fieldName:
|
|
800
|
+
}).name, g = w(s), f = U(s), p = fe({
|
|
801
|
+
fieldName: g,
|
|
798
802
|
numericFields: f,
|
|
799
803
|
fieldList: o
|
|
800
|
-
}) ?
|
|
801
|
-
...
|
|
804
|
+
}) ? s.series[0] : void 0, u = `series_${Date.now()}`, d = p?.id ?? u, y = p?.name ?? n.axisLabels.values, F = {
|
|
805
|
+
...p ?? l,
|
|
802
806
|
id: d,
|
|
803
807
|
name: y,
|
|
804
|
-
x:
|
|
808
|
+
x: j,
|
|
805
809
|
y: c
|
|
806
|
-
},
|
|
807
|
-
for (const
|
|
808
|
-
|
|
809
|
-
onStatisticField:
|
|
810
|
-
outStatisticFieldName: `${
|
|
811
|
-
statisticType:
|
|
810
|
+
}, S = [];
|
|
811
|
+
for (const h of t)
|
|
812
|
+
S.push({
|
|
813
|
+
onStatisticField: h,
|
|
814
|
+
outStatisticFieldName: `${h}_0`.toUpperCase(),
|
|
815
|
+
statisticType: a
|
|
812
816
|
});
|
|
813
|
-
return F.query = { outStatistics:
|
|
817
|
+
return F.query = { outStatistics: S }, s.series.length === 1 && ((O(F) || V(F)) && We(F, s.series[0]), Y(F) ? F.fillSymbol = s.series[0].fillSymbol : (O(F) || V(F)) && (F.lineSymbol = s.series[0].lineSymbol, F.markerSymbol = s.series[0].markerSymbol)), [F];
|
|
814
818
|
}
|
|
815
|
-
function
|
|
816
|
-
const { xAxisField: e, numericFields: t, aggregationType:
|
|
819
|
+
function Ye(i) {
|
|
820
|
+
const { xAxisField: e, numericFields: t, aggregationType: a, config: s, layerInfo: r, commonStrings: n } = i, { layerFieldsInfo: o } = r, l = Z(r.layer).idField, c = [];
|
|
817
821
|
for (let d = 0; d < t.length; d += 1) {
|
|
818
|
-
const y =
|
|
819
|
-
config:
|
|
822
|
+
const y = ne({
|
|
823
|
+
config: s,
|
|
820
824
|
xAxisField: e,
|
|
821
|
-
aggregationType:
|
|
822
|
-
layerInfo:
|
|
825
|
+
aggregationType: a,
|
|
826
|
+
layerInfo: r,
|
|
823
827
|
seriesIndex: d,
|
|
824
828
|
commonStrings: n
|
|
825
|
-
}),
|
|
826
|
-
config:
|
|
829
|
+
}), m = s.series[d]?.y, F = typeof m == "string" && m.trim() !== "" && !o.find((D) => D.name === m) ? m : se({
|
|
830
|
+
config: s,
|
|
827
831
|
xAxisField: e,
|
|
828
832
|
numericFields: t,
|
|
829
|
-
aggregationType:
|
|
830
|
-
layer:
|
|
833
|
+
aggregationType: a,
|
|
834
|
+
layer: r.layer,
|
|
831
835
|
numericFieldIndex: d,
|
|
832
836
|
fieldList: o
|
|
833
|
-
}).name,
|
|
834
|
-
(
|
|
835
|
-
),
|
|
836
|
-
...
|
|
837
|
+
}).name, S = t[d], h = s.series.find(
|
|
838
|
+
(D) => D.query?.where === void 0 && (D.query?.outStatistics?.length === 1 && D.query?.outStatistics?.[0]?.onStatisticField === S || D.query?.outStatistics === void 0 && (D.y === S || D.x === S))
|
|
839
|
+
), b = S !== l ? S : y.id, C = h?.id ?? b, T = h?.name ?? R(o, S) ?? C, A = h ?? y, v = {
|
|
840
|
+
...A,
|
|
837
841
|
id: C,
|
|
838
|
-
name:
|
|
842
|
+
name: T
|
|
839
843
|
};
|
|
840
|
-
let
|
|
841
|
-
|
|
844
|
+
let E = S;
|
|
845
|
+
v.query !== void 0 && (a !== I.NoAggregation ? (E = v.type === x.HeatSeries && h?.type === x.HeatSeries ? S : F, v.query.outStatistics = [
|
|
842
846
|
{
|
|
843
|
-
...
|
|
844
|
-
onStatisticField:
|
|
847
|
+
...A.query?.outStatistics?.[0] ?? {},
|
|
848
|
+
onStatisticField: S,
|
|
845
849
|
outStatisticFieldName: F,
|
|
846
|
-
statisticType:
|
|
850
|
+
statisticType: a
|
|
847
851
|
}
|
|
848
|
-
]) : delete
|
|
852
|
+
]) : delete v.query.outStatistics), v.y = E, c.push(v);
|
|
849
853
|
}
|
|
850
|
-
const
|
|
851
|
-
(d) =>
|
|
852
|
-
),
|
|
853
|
-
(d) =>
|
|
854
|
+
const g = c.filter((d) => Y(d)), f = c.filter(
|
|
855
|
+
(d) => O(d) || V(d)
|
|
856
|
+
), p = s.series.filter((d) => Y(d)), u = s.series.filter(
|
|
857
|
+
(d) => O(d) || V(d)
|
|
854
858
|
);
|
|
855
|
-
return
|
|
859
|
+
return p.length === 1 && g.length === 1 && Y(p[0]) && Y(g[0]) && (g[0].fillSymbol = p[0].fillSymbol), u.length === 1 && f.length === 1 && ((O(u[0]) && O(f[0]) || V(u[0]) && V(f[0])) && We(f[0], u[0]), (O(u[0]) && O(f[0]) || V(u[0]) && V(f[0])) && (f[0].lineSymbol = u[0].lineSymbol, f[0].markerSymbol = u[0].markerSymbol)), c;
|
|
856
860
|
}
|
|
857
|
-
function
|
|
858
|
-
const { aggregationType: e, config: t, layerInfo:
|
|
859
|
-
if (t.series.forEach((u,
|
|
860
|
-
const
|
|
861
|
+
function qs(i) {
|
|
862
|
+
const { aggregationType: e, config: t, layerInfo: a, commonStrings: s } = i, { layerFieldsInfo: r, layer: n } = a, o = w(t), l = U(t), c = K(t), g = oe(t), f = le(t, a, s), p = Xe(t, a, s);
|
|
863
|
+
if (t.series.forEach((u, d) => {
|
|
864
|
+
const y = se({
|
|
861
865
|
config: t,
|
|
862
866
|
xAxisField: o,
|
|
863
867
|
numericFields: l,
|
|
864
868
|
aggregationType: e,
|
|
865
869
|
splitByField: c,
|
|
866
870
|
layer: n,
|
|
867
|
-
seriesIndex:
|
|
868
|
-
numericFieldIndex:
|
|
869
|
-
fieldList:
|
|
871
|
+
seriesIndex: d,
|
|
872
|
+
numericFieldIndex: d,
|
|
873
|
+
fieldList: r
|
|
870
874
|
}).name;
|
|
871
|
-
u.y =
|
|
872
|
-
const
|
|
875
|
+
u.y = y;
|
|
876
|
+
const m = Ee({
|
|
873
877
|
splitByField: c,
|
|
874
878
|
numericFields: l,
|
|
875
879
|
layer: n,
|
|
876
|
-
seriesIndex:
|
|
877
|
-
}),
|
|
880
|
+
seriesIndex: d
|
|
881
|
+
}), F = u.query?.outStatistics?.[0]?.onStatisticField ?? m;
|
|
878
882
|
u.query = {
|
|
879
883
|
...u.query,
|
|
880
884
|
outStatistics: e === I.NoAggregation ? void 0 : [
|
|
881
885
|
{
|
|
882
886
|
...u.query?.outStatistics?.[0],
|
|
883
|
-
outStatisticFieldName:
|
|
887
|
+
outStatisticFieldName: y,
|
|
884
888
|
statisticType: e,
|
|
885
|
-
onStatisticField:
|
|
889
|
+
onStatisticField: F
|
|
886
890
|
}
|
|
887
891
|
]
|
|
888
|
-
}, "temporalBinning" in u && u.temporalBinning !== void 0 && (u.temporalBinning.nullPolicy = e === I.NoAggregation ? $.Interpolate : $.Null), e === I.NoAggregation &&
|
|
889
|
-
}),
|
|
890
|
-
const u =
|
|
892
|
+
}, "temporalBinning" in u && u.temporalBinning !== void 0 && (u.temporalBinning.nullPolicy = e === I.NoAggregation ? $.Interpolate : $.Null), e === I.NoAggregation && Xt(t);
|
|
893
|
+
}), f && t.title && (t.title.content.text = _(t, a, s)), p && t.series[0].type !== x.HeatSeries) {
|
|
894
|
+
const u = pe({
|
|
891
895
|
config: t,
|
|
892
|
-
layerInfo:
|
|
893
|
-
commonStrings:
|
|
896
|
+
layerInfo: a,
|
|
897
|
+
commonStrings: s,
|
|
894
898
|
numericFields: l,
|
|
895
899
|
aggregationType: e
|
|
896
900
|
});
|
|
897
|
-
|
|
901
|
+
W(t, 1, u);
|
|
898
902
|
}
|
|
903
|
+
g !== e && Me(t);
|
|
899
904
|
}
|
|
900
|
-
function
|
|
905
|
+
function mi(i) {
|
|
901
906
|
const {
|
|
902
907
|
splitByField: e,
|
|
903
908
|
xAxisField: t,
|
|
904
|
-
numericFields:
|
|
905
|
-
aggregationType:
|
|
906
|
-
config:
|
|
909
|
+
numericFields: a,
|
|
910
|
+
aggregationType: s,
|
|
911
|
+
config: r,
|
|
907
912
|
layerInfo: n,
|
|
908
913
|
commonStrings: o,
|
|
909
914
|
splitByFieldInfos: l
|
|
910
|
-
} =
|
|
915
|
+
} = i, { layer: c, layerFieldsInfo: g } = n, { categoriesArray: f, splitByFieldType: p } = l, u = Ee({
|
|
911
916
|
splitByField: e,
|
|
912
|
-
numericFields:
|
|
917
|
+
numericFields: a,
|
|
913
918
|
layer: c,
|
|
914
919
|
seriesIndex: 0
|
|
915
920
|
});
|
|
916
921
|
let d = [];
|
|
917
922
|
if (f.length === 0) {
|
|
918
|
-
d =
|
|
923
|
+
d = Ye({
|
|
919
924
|
xAxisField: t,
|
|
920
|
-
numericFields:
|
|
921
|
-
aggregationType:
|
|
922
|
-
config:
|
|
925
|
+
numericFields: a,
|
|
926
|
+
aggregationType: s,
|
|
927
|
+
config: r,
|
|
923
928
|
layerInfo: n,
|
|
924
929
|
commonStrings: o
|
|
925
930
|
});
|
|
@@ -927,279 +932,267 @@ function us(s) {
|
|
|
927
932
|
y.query && (y.query.where = `${e}=''`);
|
|
928
933
|
} else
|
|
929
934
|
for (let y = 0; y < f.length; y += 1) {
|
|
930
|
-
const
|
|
931
|
-
config:
|
|
935
|
+
const m = f[y], F = se({
|
|
936
|
+
config: r,
|
|
932
937
|
xAxisField: t,
|
|
933
|
-
numericFields:
|
|
934
|
-
aggregationType:
|
|
938
|
+
numericFields: a,
|
|
939
|
+
aggregationType: s,
|
|
935
940
|
layer: n.layer,
|
|
936
941
|
seriesIndex: y,
|
|
937
942
|
splitByField: e,
|
|
938
|
-
fieldList:
|
|
939
|
-
}).name,
|
|
940
|
-
config:
|
|
943
|
+
fieldList: g
|
|
944
|
+
}).name, S = ne({
|
|
945
|
+
config: r,
|
|
941
946
|
xAxisField: t,
|
|
942
|
-
aggregationType:
|
|
947
|
+
aggregationType: s,
|
|
943
948
|
layerInfo: n,
|
|
944
949
|
seriesIndex: y,
|
|
945
950
|
commonStrings: o
|
|
946
|
-
}),
|
|
951
|
+
}), h = Ne({
|
|
947
952
|
queryObject: n.layer,
|
|
948
953
|
fieldName: e,
|
|
949
|
-
fieldValue:
|
|
950
|
-
}),
|
|
951
|
-
(
|
|
952
|
-
),
|
|
953
|
-
...
|
|
954
|
-
id:
|
|
955
|
-
name:
|
|
954
|
+
fieldValue: m ?? ""
|
|
955
|
+
}), b = `${m}`, C = r.series.find(
|
|
956
|
+
(D) => String(we(D)).trim().replace(/'/gu, "") === b
|
|
957
|
+
), T = C?.id ?? b, A = C?.name ?? h ?? T, v = C ?? S, E = {
|
|
958
|
+
...v,
|
|
959
|
+
id: T,
|
|
960
|
+
name: A,
|
|
956
961
|
y: F,
|
|
957
962
|
query: {
|
|
958
|
-
...
|
|
959
|
-
where: `${e}=${
|
|
960
|
-
outStatistics:
|
|
963
|
+
...v.query,
|
|
964
|
+
where: `${e}=${p === ke.String && m !== null ? `'${m}'` : m}`,
|
|
965
|
+
outStatistics: s !== I.NoAggregation ? [
|
|
961
966
|
{
|
|
962
|
-
...
|
|
963
|
-
onStatisticField:
|
|
967
|
+
...v.query?.outStatistics?.[0] ?? {},
|
|
968
|
+
onStatisticField: u,
|
|
964
969
|
outStatisticFieldName: F,
|
|
965
|
-
statisticType:
|
|
970
|
+
statisticType: s
|
|
966
971
|
}
|
|
967
972
|
] : void 0
|
|
968
973
|
}
|
|
969
974
|
};
|
|
970
|
-
d.push(
|
|
975
|
+
d.push(E);
|
|
971
976
|
}
|
|
972
977
|
return d;
|
|
973
978
|
}
|
|
974
|
-
const
|
|
979
|
+
const Rs = (i) => {
|
|
975
980
|
const {
|
|
976
981
|
xAxisFieldName: e,
|
|
977
982
|
splitByField: t,
|
|
978
|
-
numericFields:
|
|
979
|
-
aggregationType:
|
|
980
|
-
config:
|
|
983
|
+
numericFields: a,
|
|
984
|
+
aggregationType: s,
|
|
985
|
+
config: r,
|
|
981
986
|
layerInfo: n,
|
|
982
987
|
commonStrings: o,
|
|
983
988
|
splitByFieldInfos: l
|
|
984
|
-
} =
|
|
985
|
-
let
|
|
986
|
-
const A =
|
|
987
|
-
if (
|
|
988
|
-
|
|
989
|
-
]),
|
|
990
|
-
|
|
991
|
-
}), t === "" ||
|
|
989
|
+
} = i, { layerFieldsInfo: c } = n ?? {}, g = te(r), f = wt(r), p = w(g), u = K(g), d = oe(g), y = c.find((B) => B.name === p), m = r.series[0]?.query === void 0, F = U(g), S = c.find((B) => B.name === e), h = le(g, n, o), b = Xe(g, n, o), C = gi({ config: g, layerInfo: n, commonStrings: o });
|
|
990
|
+
let T = Ve(r);
|
|
991
|
+
const A = g.series.some((B) => Y(B)), v = ft(g.series), E = St(g.series), D = k(y) || k(S);
|
|
992
|
+
if (Q(S) ? T = de() : !z(y) && z(S) ? T = J() : !k(y) && k(S) ? T = J() : k(y) && !k(S) && (A ? T = de() : T = Ot()), T !== void 0 && ht(r, o, T), f === 0 && (r.series = [
|
|
993
|
+
ne({ config: r, xAxisField: e, aggregationType: s, layerInfo: n, commonStrings: o })
|
|
994
|
+
]), r.series.forEach((B) => {
|
|
995
|
+
B.x = e, B.query !== void 0 && (B.query.groupByFieldsForStatistics = [e]);
|
|
996
|
+
}), t === "" || a.length > 1 ? fe({
|
|
992
997
|
fieldName: e,
|
|
993
|
-
numericFields:
|
|
998
|
+
numericFields: a,
|
|
994
999
|
fieldList: c
|
|
995
|
-
}) ?
|
|
996
|
-
config:
|
|
1000
|
+
}) ? r.series = yi({
|
|
1001
|
+
config: r,
|
|
997
1002
|
layerInfo: n,
|
|
998
1003
|
xAxisField: e,
|
|
999
|
-
numericFields:
|
|
1000
|
-
aggregationType:
|
|
1004
|
+
numericFields: a,
|
|
1005
|
+
aggregationType: s,
|
|
1001
1006
|
commonStrings: o
|
|
1002
|
-
}) :
|
|
1003
|
-
config:
|
|
1007
|
+
}) : r.series = Ye({
|
|
1008
|
+
config: r,
|
|
1004
1009
|
layerInfo: n,
|
|
1005
1010
|
xAxisField: e,
|
|
1006
|
-
numericFields:
|
|
1007
|
-
aggregationType:
|
|
1011
|
+
numericFields: a,
|
|
1012
|
+
aggregationType: s,
|
|
1008
1013
|
commonStrings: o
|
|
1009
|
-
}) : l && (
|
|
1010
|
-
config:
|
|
1014
|
+
}) : l && (r.series = mi({
|
|
1015
|
+
config: r,
|
|
1011
1016
|
layerInfo: n,
|
|
1012
1017
|
splitByField: t,
|
|
1013
1018
|
xAxisField: e,
|
|
1014
|
-
numericFields:
|
|
1015
|
-
aggregationType:
|
|
1019
|
+
numericFields: a,
|
|
1020
|
+
aggregationType: s,
|
|
1016
1021
|
commonStrings: o,
|
|
1017
1022
|
splitByFieldInfos: l
|
|
1018
|
-
})),
|
|
1019
|
-
const
|
|
1020
|
-
|
|
1023
|
+
})), C && e !== j && r.series[0].type !== x.HeatSeries) {
|
|
1024
|
+
const B = R(c, e);
|
|
1025
|
+
W(r, 0, B);
|
|
1021
1026
|
}
|
|
1022
|
-
if (
|
|
1023
|
-
const
|
|
1024
|
-
config:
|
|
1027
|
+
if (b && r.series[0].type !== x.HeatSeries) {
|
|
1028
|
+
const B = pe({
|
|
1029
|
+
config: r,
|
|
1025
1030
|
layerInfo: n,
|
|
1026
1031
|
commonStrings: o,
|
|
1027
|
-
numericFields:
|
|
1028
|
-
aggregationType:
|
|
1032
|
+
numericFields: a,
|
|
1033
|
+
aggregationType: s
|
|
1029
1034
|
});
|
|
1030
|
-
|
|
1035
|
+
W(r, 1, B);
|
|
1031
1036
|
}
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
config: a,
|
|
1036
|
-
value: b ? a.axes?.[1]?.minimum ?? null : null,
|
|
1037
|
-
axisIndex: 1,
|
|
1038
|
-
isMax: !1
|
|
1039
|
-
}), N({
|
|
1040
|
-
config: a,
|
|
1041
|
-
value: b ? a.axes?.[1]?.maximum ?? null : null,
|
|
1042
|
-
axisIndex: 1,
|
|
1043
|
-
isMax: !0
|
|
1044
|
-
}), ls({ numericFields: r, aggregationType: i, config: a, layerInfo: n }), (C || B) && (N({ config: a, value: null, axisIndex: 0, isMax: !1 }), N({ config: a, value: null, axisIndex: 0, isMax: !0 }), v && i !== I.NoAggregation && !X(p))) {
|
|
1045
|
-
const h = q(y) ? $.Null : $.Interpolate;
|
|
1046
|
-
Et(h, a);
|
|
1037
|
+
if (h && r.title && (r.title.content.text = _(r, n, o)), p === e && u === t && d === s && Ue(F, a) || Me(r), di({ numericFields: a, aggregationType: s, config: r, layerInfo: n }), (v || E) && (G({ config: r, value: null, axisIndex: 0, isMax: !1 }), G({ config: r, value: null, axisIndex: 0, isMax: !0 }), D && s !== I.NoAggregation && !X(g))) {
|
|
1038
|
+
const B = k(S) ? $.Null : $.Interpolate;
|
|
1039
|
+
Wt(B, r);
|
|
1047
1040
|
}
|
|
1048
|
-
X(
|
|
1049
|
-
|
|
1041
|
+
X(r) && Pe({ commonStrings: o, config: r, layerInfo: n }), r.series.forEach((B) => {
|
|
1042
|
+
m && delete B.query, p !== e && L(B) && (S?.type === ke.TimeOnly ? B.binTemporalData = !1 : B.binTemporalData = B.type === x.LineSeries && k(S));
|
|
1050
1043
|
});
|
|
1051
|
-
},
|
|
1052
|
-
|
|
1044
|
+
}, We = (i, e) => {
|
|
1045
|
+
i.markerVisible = e.markerVisible, i.lineSmoothed = e.lineSmoothed, i.showArea = e.showArea, i.areaColor = e.areaColor, i.stackNegativeValuesToBaseline = e.stackNegativeValuesToBaseline, e.lineSymbol && (i.lineSymbol = { ...e.lineSymbol, color: i.lineSymbol?.color }), e.markerSymbol && (i.markerSymbol = {
|
|
1053
1046
|
...e.markerSymbol,
|
|
1054
|
-
color:
|
|
1047
|
+
color: i.markerSymbol?.color
|
|
1055
1048
|
});
|
|
1056
|
-
},
|
|
1057
|
-
const { config: e, seriesIndex: t, layerInfo:
|
|
1049
|
+
}, Ps = (i) => {
|
|
1050
|
+
const { config: e, seriesIndex: t, layerInfo: a, commonStrings: s } = i, r = e.series?.[t], n = K(e);
|
|
1058
1051
|
let o;
|
|
1059
|
-
if (
|
|
1060
|
-
o =
|
|
1061
|
-
else if (
|
|
1062
|
-
const c =
|
|
1063
|
-
c !== void 0 && c !==
|
|
1052
|
+
if (ie(e.series) === P.BarAndLineFromFields)
|
|
1053
|
+
o = s.axisLabels.values;
|
|
1054
|
+
else if (He(n)) {
|
|
1055
|
+
const c = r.query?.outStatistics?.[0]?.onStatisticField;
|
|
1056
|
+
c !== void 0 && c !== Z(a.layer).idField && (o = R(a.layerFieldsInfo, c));
|
|
1064
1057
|
} else {
|
|
1065
|
-
const c = String(
|
|
1066
|
-
o =
|
|
1067
|
-
queryObject:
|
|
1058
|
+
const c = String(we(r)).trim().replace(/'/gu, "");
|
|
1059
|
+
o = Ne({
|
|
1060
|
+
queryObject: a.layer,
|
|
1068
1061
|
fieldName: n,
|
|
1069
1062
|
fieldValue: c ?? ""
|
|
1070
1063
|
}) ?? c;
|
|
1071
1064
|
}
|
|
1072
|
-
return o ??
|
|
1073
|
-
},
|
|
1065
|
+
return o ?? r.id;
|
|
1066
|
+
}, ws = (i, e) => {
|
|
1074
1067
|
if (X(e))
|
|
1075
|
-
|
|
1068
|
+
ri(i, e);
|
|
1076
1069
|
else {
|
|
1077
1070
|
e.orderOptions ??= {};
|
|
1078
1071
|
const t = e.orderOptions?.data?.orderType;
|
|
1079
|
-
|
|
1080
|
-
orderType:
|
|
1081
|
-
orderBy: [...
|
|
1072
|
+
me(e)[0] === ce.customSort && t === N.Category && (e.orderOptions.data = {
|
|
1073
|
+
orderType: N.Category,
|
|
1074
|
+
orderBy: [...i]
|
|
1082
1075
|
});
|
|
1083
1076
|
}
|
|
1084
|
-
},
|
|
1085
|
-
const { config: e, layerInfo: t, errorStrings:
|
|
1077
|
+
}, Es = async (i) => {
|
|
1078
|
+
const { config: e, layerInfo: t, errorStrings: a } = i, s = w(e), r = Ve(e)?.type, n = U(e), o = ie(e.series);
|
|
1086
1079
|
let l = [];
|
|
1087
|
-
return
|
|
1080
|
+
return r === x.CategoryAxisFormat && (o === P.BarAndLineFromFields || s === j ? l = n.map((c) => R(t?.layerFieldsInfo, c)) : s.trim() !== "" && s !== j && t !== void 0 && (l = await Ft({
|
|
1088
1081
|
layerInfo: t,
|
|
1089
1082
|
config: e,
|
|
1090
|
-
category:
|
|
1091
|
-
errorStrings:
|
|
1083
|
+
category: s,
|
|
1084
|
+
errorStrings: a
|
|
1092
1085
|
}))), l;
|
|
1093
1086
|
};
|
|
1094
|
-
function
|
|
1095
|
-
const
|
|
1096
|
-
return
|
|
1087
|
+
function le(i, e, t) {
|
|
1088
|
+
const a = _(i, e, t), s = Et(i), r = ae(i);
|
|
1089
|
+
return a === s || r;
|
|
1097
1090
|
}
|
|
1098
|
-
function
|
|
1099
|
-
const
|
|
1100
|
-
config:
|
|
1091
|
+
function Xe(i, e, t) {
|
|
1092
|
+
const a = pe({
|
|
1093
|
+
config: i,
|
|
1101
1094
|
layerInfo: e,
|
|
1102
1095
|
commonStrings: t,
|
|
1103
|
-
numericFields:
|
|
1104
|
-
aggregationType:
|
|
1105
|
-
}),
|
|
1106
|
-
return
|
|
1096
|
+
numericFields: U(i),
|
|
1097
|
+
aggregationType: oe(i)
|
|
1098
|
+
}), s = re(1, i), r = ae(i);
|
|
1099
|
+
return a === s || r;
|
|
1107
1100
|
}
|
|
1108
|
-
function
|
|
1109
|
-
const { config: e, layerInfo: t, commonStrings:
|
|
1110
|
-
return
|
|
1101
|
+
function gi(i) {
|
|
1102
|
+
const { config: e, layerInfo: t, commonStrings: a } = i, s = R(t.layerFieldsInfo, w(e)), r = re(0, e), n = ae(e), o = w(e) === j && (r === "" || r === a.xAxis);
|
|
1103
|
+
return s === r || n || o;
|
|
1111
1104
|
}
|
|
1112
|
-
function
|
|
1113
|
-
return L(
|
|
1105
|
+
function Ms(i) {
|
|
1106
|
+
return L(i.series[0]) ? i.series[0].binTemporalData ?? !0 : !1;
|
|
1114
1107
|
}
|
|
1115
|
-
function
|
|
1108
|
+
function Ys(i, e) {
|
|
1116
1109
|
e?.series.forEach((t) => {
|
|
1117
|
-
L(t) && (t.binTemporalData =
|
|
1118
|
-
unit:
|
|
1110
|
+
L(t) && (t.binTemporalData = i, i ? t.temporalBinning = {
|
|
1111
|
+
unit: ue.Day,
|
|
1119
1112
|
size: 0,
|
|
1120
|
-
timeAggregationType:
|
|
1113
|
+
timeAggregationType: Ct.Start,
|
|
1121
1114
|
trimIncompleteTimeInterval: !0,
|
|
1122
1115
|
nullPolicy: $.Null
|
|
1123
1116
|
} : delete t.temporalBinning);
|
|
1124
1117
|
});
|
|
1125
1118
|
}
|
|
1126
1119
|
export {
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
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
|
-
|
|
1120
|
+
ss as $,
|
|
1121
|
+
Es as A,
|
|
1122
|
+
ws as B,
|
|
1123
|
+
Rs as C,
|
|
1124
|
+
Ms as D,
|
|
1125
|
+
Ys as E,
|
|
1126
|
+
_ as F,
|
|
1127
|
+
Pe as G,
|
|
1128
|
+
ii as H,
|
|
1129
|
+
es as I,
|
|
1130
|
+
Bs as J,
|
|
1131
|
+
Cs as K,
|
|
1132
|
+
si as L,
|
|
1133
|
+
ts as M,
|
|
1134
|
+
ai as N,
|
|
1135
|
+
is as O,
|
|
1136
|
+
bs as P,
|
|
1137
|
+
As as Q,
|
|
1138
|
+
vs as R,
|
|
1139
|
+
Is as S,
|
|
1140
|
+
Ns as T,
|
|
1141
|
+
Os as U,
|
|
1142
|
+
Vs as V,
|
|
1143
|
+
Zt as W,
|
|
1144
|
+
ks as X,
|
|
1145
|
+
_i as Y,
|
|
1146
|
+
Ki as Z,
|
|
1147
|
+
as as _,
|
|
1148
|
+
Hi as a,
|
|
1149
|
+
ns as a0,
|
|
1150
|
+
rs as a1,
|
|
1151
|
+
zi as a2,
|
|
1152
|
+
Qi as a3,
|
|
1153
|
+
Ji as a4,
|
|
1154
|
+
Gi as a5,
|
|
1155
|
+
cs as a6,
|
|
1156
|
+
us as a7,
|
|
1157
|
+
ds as a8,
|
|
1158
|
+
ys as a9,
|
|
1159
|
+
ls as aa,
|
|
1160
|
+
os as ab,
|
|
1161
|
+
ms as ac,
|
|
1162
|
+
ni as ad,
|
|
1163
|
+
gs as ae,
|
|
1164
|
+
ps as af,
|
|
1165
|
+
fs as ag,
|
|
1166
|
+
Ss as ah,
|
|
1167
|
+
Fs as ai,
|
|
1168
|
+
hs as aj,
|
|
1169
|
+
Ds as ak,
|
|
1170
|
+
Ls as al,
|
|
1171
|
+
Ts as am,
|
|
1172
|
+
xs as an,
|
|
1173
|
+
Wi as b,
|
|
1174
|
+
Xi as c,
|
|
1175
|
+
U as d,
|
|
1176
|
+
K as e,
|
|
1177
|
+
Zi as f,
|
|
1178
|
+
oe as g,
|
|
1179
|
+
Ps as h,
|
|
1180
|
+
Ui as i,
|
|
1181
|
+
qi as j,
|
|
1182
|
+
Yt as k,
|
|
1183
|
+
Mt as l,
|
|
1184
|
+
Ei as m,
|
|
1185
|
+
Ri as n,
|
|
1186
|
+
Mi as o,
|
|
1187
|
+
ji as p,
|
|
1188
|
+
Pi as q,
|
|
1189
|
+
_t as r,
|
|
1190
|
+
Re as s,
|
|
1191
|
+
Yi as t,
|
|
1192
|
+
$i as u,
|
|
1193
|
+
wi as v,
|
|
1194
|
+
Wt as w,
|
|
1195
|
+
Xt as x,
|
|
1196
|
+
qs as y,
|
|
1197
|
+
me as z
|
|
1205
1198
|
};
|