@arcgis/charts-components 5.2.0-next.64 → 5.2.0-next.66
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/{DBL7YAA3.js → 2TJIWV5F.js} +1 -1
- package/dist/cdn/{TTP4J64D.js → 5XXUPM5P.js} +1 -1
- package/dist/cdn/{ER3EOKSB.js → 7HUL35PU.js} +1 -1
- package/dist/cdn/{R6DTHFYW.js → ALCVBLC3.js} +1 -1
- package/dist/cdn/{C4ECGYJQ.js → AVDYAU62.js} +1 -1
- package/dist/cdn/{GEET3CQC.js → BPK3PD5M.js} +1 -1
- package/dist/cdn/{6KVXTLIC.js → BYD5Z33P.js} +1 -1
- package/dist/cdn/{5QYGNJZZ.js → DO2EWRXG.js} +1 -1
- package/dist/cdn/{HKUVYTBA.js → DWRQVHUB.js} +1 -1
- package/dist/cdn/{MDYXKBBD.js → EIXBC2RU.js} +1 -1
- package/dist/cdn/{7YYGELLZ.js → EMGSXQME.js} +1 -1
- package/dist/cdn/{COLQXDK7.js → ES2EMZAG.js} +1 -1
- package/dist/cdn/{25YKUXSB.js → FAAWFOLV.js} +1 -1
- package/dist/cdn/{NVHBKDPY.js → GCZ6DFXI.js} +1 -1
- package/dist/cdn/{SZKPEUN5.js → GDDDGPAU.js} +1 -1
- package/dist/cdn/{QPY7Y5TQ.js → GJL4IRBS.js} +1 -1
- package/dist/cdn/{U2B6RADM.js → GLSEW7NT.js} +1 -1
- package/dist/cdn/{FZJIUJA5.js → GOE2U47L.js} +1 -1
- package/dist/cdn/{TNP5SEQB.js → GQCETYSQ.js} +1 -1
- package/dist/cdn/{X32ZF5ZW.js → HQA6T34B.js} +1 -1
- package/dist/cdn/{5S6KE7ZK.js → IIDIJAAE.js} +1 -1
- package/dist/cdn/{KQVRPDUR.js → J6SJWHVL.js} +1 -1
- package/dist/cdn/{2MAAPBYT.js → JG7NKECK.js} +1 -1
- package/dist/cdn/JKBOZKG3.js +2 -0
- package/dist/cdn/{WHL2M7QL.js → JLCPLGX7.js} +1 -1
- package/dist/cdn/{H574T3WF.js → JP22TFCC.js} +22 -22
- package/dist/cdn/{FQXTBPWM.js → JPT4AHGX.js} +1 -1
- package/dist/cdn/{MIJFC5AH.js → JR7H3QP3.js} +1 -1
- package/dist/cdn/{5LWQLRYG.js → JVKBKQVH.js} +1 -1
- package/dist/cdn/{RFDSBNKF.js → KBFQXCDZ.js} +1 -1
- package/dist/cdn/{PJTM63EA.js → KIN7EK6A.js} +1 -1
- package/dist/cdn/{5ULER4YN.js → KKJXMY7J.js} +1 -1
- package/dist/cdn/{TH2NZINL.js → KW36EC35.js} +1 -1
- package/dist/cdn/{K2PVH6WC.js → L5MHZ4XS.js} +1 -1
- package/dist/cdn/{JCHZJK2Y.js → LEHLFA4M.js} +1 -1
- package/dist/cdn/{BDHKWS47.js → LJNSQDP4.js} +1 -1
- package/dist/cdn/{CR3AO65Y.js → LYH6FAVN.js} +1 -1
- package/dist/cdn/{WW7VTR4G.js → MKWYVBKT.js} +1 -1
- package/dist/cdn/{SR3ZVQU3.js → MN4IWNOW.js} +1 -1
- package/dist/cdn/{QO6DZX5X.js → MQL76WZU.js} +1 -1
- package/dist/cdn/{B5EBQSZO.js → N5EWBVEP.js} +1 -1
- package/dist/cdn/{Q3JWIFPJ.js → NERP6IQJ.js} +1 -1
- package/dist/cdn/{EC74URPL.js → NRP7JZ2N.js} +1 -1
- package/dist/cdn/{BUN3G5US.js → NS4DTKTX.js} +1 -1
- package/dist/cdn/{VXPINEQQ.js → O5TF56YM.js} +1 -1
- package/dist/cdn/{BASOJPOL.js → OOFDCJTZ.js} +1 -1
- package/dist/cdn/{WJVFKW47.js → P2FVU6TM.js} +1 -1
- package/dist/cdn/{M5ZGHJP4.js → P66FIZ3I.js} +1 -1
- package/dist/cdn/{NTDDQAKJ.js → PYPCKQIM.js} +1 -1
- package/dist/cdn/{QH67KX5R.js → PZTO7HAL.js} +2 -2
- package/dist/cdn/{GF6SKP3D.js → Q4QBDDTZ.js} +1 -1
- package/dist/cdn/{HLFZHWSK.js → RB4M4A3A.js} +1 -1
- package/dist/cdn/{LX7DEKHW.js → RC3EE625.js} +1 -1
- package/dist/cdn/{LVKFQ36J.js → RCXEKJIO.js} +1 -1
- package/dist/cdn/{PGO2EPCC.js → RFC5H2U3.js} +1 -1
- package/dist/cdn/{EMJQHL2T.js → RHMWRE52.js} +1 -1
- package/dist/cdn/{XHLNNBJC.js → RKY6MJXO.js} +2 -2
- package/dist/cdn/{JFGIGXOO.js → RMAADG2K.js} +1 -1
- package/dist/cdn/{6VNIZLPT.js → S3QRGN6V.js} +1 -1
- package/dist/cdn/{GPPFULKZ.js → SJ62ZS3H.js} +1 -1
- package/dist/cdn/{KRQLN2QY.js → SLPFRGJW.js} +1 -1
- package/dist/cdn/{RCI3EBQ4.js → SSLW7SXN.js} +1 -1
- package/dist/cdn/{ML3E4VVC.js → SYK7CNXD.js} +1 -1
- package/dist/cdn/{XCSDBTBL.js → SZX7IBPD.js} +1 -1
- package/dist/cdn/{5SQUKJMS.js → TGZFKDPC.js} +1 -1
- package/dist/cdn/{JGGBN4YB.js → TLN3DUDJ.js} +1 -1
- package/dist/cdn/{3OPHROOV.js → TZKCYATE.js} +1 -1
- package/dist/cdn/{6EO2NURO.js → UBRIQVHZ.js} +1 -1
- package/dist/cdn/{BQB66RIJ.js → UY3733IE.js} +1 -1
- package/dist/cdn/{54XEAJ7U.js → VK6FNPKY.js} +1 -1
- package/dist/cdn/{YWRJTKES.js → VQ2EMCYL.js} +1 -1
- package/dist/cdn/{KNVQY6ET.js → VSJK5RTD.js} +1 -1
- package/dist/cdn/{WGKEYRHI.js → W6VVXP6G.js} +1 -1
- package/dist/cdn/{5WWQNPXJ.js → XGNDVHWJ.js} +1 -1
- package/dist/cdn/{6OOWQDFB.js → XLUNDGEL.js} +1 -1
- package/dist/cdn/{B2NT7BMA.js → XVMQD75T.js} +1 -1
- package/dist/cdn/{7QCFIGAG.js → XZVQQOEN.js} +1 -1
- package/dist/cdn/{YM3PEBYW.js → ZGFZTSYD.js} +1 -1
- package/dist/cdn/{PN62LQYN.js → ZJMTZWFM.js} +1 -1
- package/dist/cdn/{743FPGT4.js → ZP2WKE5B.js} +1 -1
- package/dist/cdn/{IRG22MBH.js → ZW7RPK6D.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/index2.js +1500 -1491
- package/dist/chunks/index4.js +11 -7
- package/dist/chunks/serial-chart-data.js +325 -326
- package/dist/components/arcgis-chart/customElement.d.ts +247 -69
- package/dist/components/arcgis-chart/customElement.js +2877 -2864
- 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/json-schema/index.d.ts +4 -0
- package/dist/spec/data-source.d.ts +2 -0
- package/package.json +5 -5
- package/dist/cdn/SUUDJODL.js +0 -2
- /package/dist/cdn/{EXS2KOEA.js → 274L47ID.js} +0 -0
- /package/dist/cdn/{GP3LPIRJ.js → 3QPQ3RE5.js} +0 -0
- /package/dist/cdn/{A2NFOGT2.js → 47E3TKSH.js} +0 -0
- /package/dist/cdn/{3FZCVKWJ.js → 4BQ22DKZ.js} +0 -0
- /package/dist/cdn/{IUOORM26.js → 64F7QNUM.js} +0 -0
- /package/dist/cdn/{CL5G6D6W.js → 6LACIKDG.js} +0 -0
- /package/dist/cdn/{UB36FUCN.js → 6PDO75JM.js} +0 -0
- /package/dist/cdn/{TSSN2OW3.js → 6WJKLKEZ.js} +0 -0
- /package/dist/cdn/{DJPMW6UC.js → 7PC3VBMY.js} +0 -0
- /package/dist/cdn/{CHMLTTRN.js → 7XHAJY6Q.js} +0 -0
- /package/dist/cdn/{ASZ6YFIL.js → ACRMB7MU.js} +0 -0
- /package/dist/cdn/{MZ2RZ62O.js → B4RCAP3J.js} +0 -0
- /package/dist/cdn/{HQMOMCWF.js → BJC2AIS3.js} +0 -0
- /package/dist/cdn/{D3KIBJKD.js → C3A3UXVR.js} +0 -0
- /package/dist/cdn/{3CGAUDYD.js → CKIF4L44.js} +0 -0
- /package/dist/cdn/{3GVTYZ2I.js → DWYBKGOM.js} +0 -0
- /package/dist/cdn/{PEEVY5UG.js → EQD2B3I6.js} +0 -0
- /package/dist/cdn/{VT6X6QMA.js → FBLOPEXC.js} +0 -0
- /package/dist/cdn/{HSQ32NUA.js → GBOCN364.js} +0 -0
- /package/dist/cdn/{HBOYEK6P.js → HDYL2BOC.js} +0 -0
- /package/dist/cdn/{CVJSVWF3.js → HP3GIDT5.js} +0 -0
- /package/dist/cdn/{OSUM4CWA.js → IR2W7UQ3.js} +0 -0
- /package/dist/cdn/{TGEHTOWR.js → J3VAMS5Z.js} +0 -0
- /package/dist/cdn/{LHDBHPXR.js → JWEGCP5P.js} +0 -0
- /package/dist/cdn/{V7AEHY25.js → K2PVLPOV.js} +0 -0
- /package/dist/cdn/{AZMQPJO3.js → LC4YFJSM.js} +0 -0
- /package/dist/cdn/{VNNTABNO.js → MGAMMXJW.js} +0 -0
- /package/dist/cdn/{7WVTY3XI.js → MSB6J66X.js} +0 -0
- /package/dist/cdn/{CDJRYMBP.js → NWHLFMAD.js} +0 -0
- /package/dist/cdn/{22WGB4CQ.js → PMAHEVYY.js} +0 -0
- /package/dist/cdn/{4EBMUPEV.js → PQVUA4T4.js} +0 -0
- /package/dist/cdn/{KOCZJFY6.js → Q2OIHROC.js} +0 -0
- /package/dist/cdn/{4VL2SBHK.js → Q2WDEGUQ.js} +0 -0
- /package/dist/cdn/{WKQB6Z7Z.js → XDNGNOOK.js} +0 -0
- /package/dist/cdn/{AZKX3FMB.js → XJVFIGWI.js} +0 -0
- /package/dist/cdn/{PAQGR4DD.js → Y2NESTSK.js} +0 -0
- /package/dist/cdn/{MVCB4RM7.js → YFHCD7R2.js} +0 -0
- /package/dist/cdn/{CMGCZ4MF.js → YW6IZCRW.js} +0 -0
- /package/dist/cdn/{JZ5HUNM5.js → ZK2KMZEI.js} +0 -0
|
@@ -1,20 +1,20 @@
|
|
|
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 D, u as
|
|
6
|
-
import { w as I, i as Ue, di as W, cn as je, bC as Ke, a$ as De, x as Ze, Y as
|
|
7
|
-
import { a as
|
|
2
|
+
import { substitute as E } from "@arcgis/core/intl.js";
|
|
3
|
+
import { cloneDeep as J, isEmpty as Ye, memoize as We } from "lodash-es";
|
|
4
|
+
import { S as oe } from "./common.js";
|
|
5
|
+
import { s as D, u as $, 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, di as W, cn as je, bC as Ke, a$ as De, x as Ze, Y as ee, 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, ds as ot, v as lt, dy as fe, cb as ct, dz as ut, c7 as dt, B as yt, N as Se, bL as _, dv as mt, bj as q, bP as Q, ap as j, a6 as Ne, bd as M, bc as gt, k as U, 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 P, s as ge, g as te, b as he, c as St } from "./data.js";
|
|
8
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
9
|
import { R as Oe, i as Tt } from "./rest-js-object-literals.js";
|
|
10
|
-
import { i as
|
|
11
|
-
import { aD as Bt, K as
|
|
12
|
-
import { C as
|
|
10
|
+
import { i as se } from "./index4.js";
|
|
11
|
+
import { aD as Bt, K as z, F as ce, w as Ct, $ as bt, ac as At, ao as vt, A as It, a2 as Lt } from "./index.js";
|
|
12
|
+
import { C as w, F as X, d as R } from "./index3.js";
|
|
13
13
|
import { g as Ve, s as Dt } from "./series-types.js";
|
|
14
14
|
import { convertChartSpec as Nt } from "../utils/chart-config/converter/index.js";
|
|
15
|
-
import { d as
|
|
15
|
+
import { d as ue, f as Ot } from "./type-guards.js";
|
|
16
16
|
import { C as Vt, m as kt } from "./model-setter.js";
|
|
17
|
-
import { g as
|
|
17
|
+
import { g as ie } from "./utils2.js";
|
|
18
18
|
import { a as Rt, b as qt } from "./series-length.js";
|
|
19
19
|
const Ds = (s) => {
|
|
20
20
|
let e;
|
|
@@ -59,9 +59,9 @@ const Ds = (s) => {
|
|
|
59
59
|
}, Mt = (s) => {
|
|
60
60
|
Pt(0, s);
|
|
61
61
|
};
|
|
62
|
-
var $t = Object.defineProperty, Yt = Object.getOwnPropertyDescriptor, Wt = (s, e, t,
|
|
63
|
-
for (var i = Yt(e, t),
|
|
64
|
-
(n = s[
|
|
62
|
+
var $t = Object.defineProperty, Yt = Object.getOwnPropertyDescriptor, Wt = (s, e, t, r) => {
|
|
63
|
+
for (var i = Yt(e, t), a = s.length - 1, n; a >= 0; a--)
|
|
64
|
+
(n = s[a]) && (i = n(e, t, i) || i);
|
|
65
65
|
return i && $t(e, t, i), i;
|
|
66
66
|
};
|
|
67
67
|
const Ht = (s) => {
|
|
@@ -71,8 +71,8 @@ const Ht = (s) => {
|
|
|
71
71
|
}), e || (e = s?.axes?.[0]?.valueFormat.type === T.DateAxisFormat ? s.axes[0].valueFormat.intlOptions.timeZone : void 0), e;
|
|
72
72
|
}, ke = (s, e) => {
|
|
73
73
|
const t = Ue(s);
|
|
74
|
-
W(e) ? s ? e.outTimeZone = t : delete e.outTimeZone : e?.series.forEach((
|
|
75
|
-
(
|
|
74
|
+
W(e) ? s ? e.outTimeZone = t : delete e.outTimeZone : e?.series.forEach((r) => {
|
|
75
|
+
(r.type === T.BarSeries || r.type === T.RadarSeries || r.type === T.LineSeries) && (s ? (r.temporalBinning ??= {}, r.temporalBinning.outTimeZone = t) : r.temporalBinning && delete r.temporalBinning.outTimeZone);
|
|
76
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
78
|
class Xt extends Vt {
|
|
@@ -109,59 +109,59 @@ function Ms(s, e) {
|
|
|
109
109
|
return e != null || De(s);
|
|
110
110
|
}
|
|
111
111
|
async function $s(s) {
|
|
112
|
-
const { config: e, layer: t, abortSignal:
|
|
112
|
+
const { config: e, layer: t, abortSignal: r } = s;
|
|
113
113
|
let i = !1;
|
|
114
|
-
return
|
|
114
|
+
return ue(t) || Ot(e) ? e && ue(t) && (i = await Ke({ config: e, layer: t, abortSignal: r })) : i = !0, i;
|
|
115
115
|
}
|
|
116
116
|
async function jt(s) {
|
|
117
117
|
const {
|
|
118
118
|
queryObject: e,
|
|
119
119
|
chartConfig: t,
|
|
120
|
-
splitByField:
|
|
120
|
+
splitByField: r,
|
|
121
121
|
errorStrings: i,
|
|
122
|
-
abortSignal:
|
|
122
|
+
abortSignal: a,
|
|
123
123
|
runtimeDataFilters: n,
|
|
124
124
|
ignoreViewExtent: o,
|
|
125
125
|
setTimeBinningInfoWhenNotProvided: l,
|
|
126
|
-
returnFeaturesExtent:
|
|
126
|
+
returnFeaturesExtent: u,
|
|
127
127
|
chartLimits: p
|
|
128
128
|
} = s;
|
|
129
129
|
let g = [], d;
|
|
130
|
-
const m =
|
|
130
|
+
const m = J(t), y = m.series[0], c = rt({
|
|
131
131
|
queryObject: e,
|
|
132
132
|
chartConfig: m,
|
|
133
133
|
runtimeDataFilters: n,
|
|
134
134
|
ignoreViewExtent: o
|
|
135
135
|
});
|
|
136
|
-
if (
|
|
136
|
+
if (c.outStatistics?.[0]?.outStatisticFieldName && (c.outStatistics[0].outStatisticFieldName = Bt.outStatistics.outStatisticFieldName), I(y) && nt({
|
|
137
137
|
xAxisValueFormatType: ot(m),
|
|
138
138
|
setTimeBinningInfoWhenNotProvided: l,
|
|
139
139
|
seriesConfig: y,
|
|
140
140
|
queryObject: e
|
|
141
|
-
}) && lt(
|
|
141
|
+
}) && lt(r, e)) {
|
|
142
142
|
const { temporalBinning: S, x: F } = y, { uniqueQuery: x } = fe({
|
|
143
143
|
chartConfig: m,
|
|
144
|
-
queryConfig:
|
|
144
|
+
queryConfig: c,
|
|
145
145
|
queryObject: e,
|
|
146
146
|
setTimeBinningInfoWhenNotProvided: l,
|
|
147
|
-
returnFeaturesExtent:
|
|
147
|
+
returnFeaturesExtent: u,
|
|
148
148
|
chartLimits: p
|
|
149
149
|
}), f = t.axes?.[0].valueFormat.type === T.DateAxisFormat ? t.axes[0].valueFormat.intlOptions.timeZone : void 0;
|
|
150
|
-
d = await
|
|
150
|
+
d = await ct({
|
|
151
151
|
queryObject: e,
|
|
152
152
|
dateField: F,
|
|
153
|
-
splitByField:
|
|
153
|
+
splitByField: r,
|
|
154
154
|
queryConfig: x,
|
|
155
155
|
axisTimeZone: f,
|
|
156
156
|
temporalBinning: S,
|
|
157
157
|
errorStrings: i,
|
|
158
|
-
abortSignal:
|
|
158
|
+
abortSignal: a
|
|
159
159
|
}), g = Array.from(
|
|
160
160
|
new Set(
|
|
161
|
-
d.flatMap((
|
|
162
|
-
const { stackedAttributes:
|
|
161
|
+
d.flatMap((b) => {
|
|
162
|
+
const { stackedAttributes: C } = b;
|
|
163
163
|
let B = [];
|
|
164
|
-
return
|
|
164
|
+
return C && (B = C.map((A) => A[r]).filter((A) => A !== void 0)), B;
|
|
165
165
|
})
|
|
166
166
|
).values()
|
|
167
167
|
);
|
|
@@ -169,27 +169,27 @@ async function jt(s) {
|
|
|
169
169
|
const { uniqueQuery: S } = fe({
|
|
170
170
|
chartConfig: m,
|
|
171
171
|
queryObject: e,
|
|
172
|
-
queryConfig:
|
|
172
|
+
queryConfig: c,
|
|
173
173
|
setTimeBinningInfoWhenNotProvided: l,
|
|
174
|
-
returnFeaturesExtent:
|
|
174
|
+
returnFeaturesExtent: u,
|
|
175
175
|
chartLimits: p
|
|
176
|
-
}), { elementCount: F } = await
|
|
176
|
+
}), { elementCount: F } = await ut({
|
|
177
177
|
chartConfig: m,
|
|
178
178
|
queryObject: e,
|
|
179
|
-
queryConfig:
|
|
179
|
+
queryConfig: c,
|
|
180
180
|
behaviorAfterLimit: p?.behaviorAfterLimit,
|
|
181
181
|
numberMaxOfFeaturesToFetch: S.num,
|
|
182
|
-
abortSignal:
|
|
182
|
+
abortSignal: a
|
|
183
183
|
});
|
|
184
184
|
d = await dt({
|
|
185
185
|
queryObject: e,
|
|
186
186
|
queryConfig: S,
|
|
187
187
|
featureCount: F,
|
|
188
188
|
errorStrings: i,
|
|
189
|
-
abortSignal:
|
|
189
|
+
abortSignal: a
|
|
190
190
|
}), g = Array.from(
|
|
191
191
|
new Set(
|
|
192
|
-
d.map((x) => x.attributes[
|
|
192
|
+
d.map((x) => x.attributes[r]).filter((x) => x !== void 0)
|
|
193
193
|
).values()
|
|
194
194
|
);
|
|
195
195
|
}
|
|
@@ -197,9 +197,9 @@ async function jt(s) {
|
|
|
197
197
|
}
|
|
198
198
|
function Kt(s, e) {
|
|
199
199
|
const t = /* @__PURE__ */ new Map();
|
|
200
|
-
return s.series.forEach((
|
|
200
|
+
return s.series.forEach((r) => {
|
|
201
201
|
let i = me({
|
|
202
|
-
where:
|
|
202
|
+
where: r.query?.where,
|
|
203
203
|
// normalize the value so it matches what we get from getAllValues()
|
|
204
204
|
// Refer to https://devtopia.esri.com/WebGIS/arcgis-charts/issues/8127
|
|
205
205
|
normalize: !0,
|
|
@@ -208,85 +208,85 @@ function Kt(s, e) {
|
|
|
208
208
|
escape: !1
|
|
209
209
|
});
|
|
210
210
|
e && i !== null && (i = Number(i));
|
|
211
|
-
const
|
|
212
|
-
|
|
213
|
-
...t.get(
|
|
211
|
+
const a = Ve([r]);
|
|
212
|
+
a !== void 0 && t.set(a, [
|
|
213
|
+
...t.get(a) ?? [],
|
|
214
214
|
i
|
|
215
215
|
]);
|
|
216
216
|
}), t;
|
|
217
217
|
}
|
|
218
218
|
function Zt(s) {
|
|
219
|
-
const { allValues: e, configUniqueValuesPerSeriesType: t, initialConfigWasEmpty:
|
|
220
|
-
return Array.from(t.keys()).forEach((
|
|
221
|
-
const n = t.get(
|
|
219
|
+
const { allValues: e, configUniqueValuesPerSeriesType: t, initialConfigWasEmpty: r } = s, i = /* @__PURE__ */ new Map();
|
|
220
|
+
return Array.from(t.keys()).forEach((a) => {
|
|
221
|
+
const n = t.get(a) ?? [];
|
|
222
222
|
let o = [];
|
|
223
|
-
|
|
223
|
+
r ? o = e : e.forEach((l) => {
|
|
224
224
|
n.includes(l) || o.push(l);
|
|
225
|
-
}), i.set(
|
|
225
|
+
}), i.set(a, o);
|
|
226
226
|
}), i;
|
|
227
227
|
}
|
|
228
228
|
function _t(s) {
|
|
229
|
-
const { chartConfig: e, missingValue: t, splitByField:
|
|
229
|
+
const { chartConfig: e, missingValue: t, splitByField: r, seriesTemplate: i } = s, a = JSON.parse(
|
|
230
230
|
JSON.stringify({
|
|
231
231
|
...e.series[0],
|
|
232
232
|
...i
|
|
233
233
|
})
|
|
234
234
|
);
|
|
235
|
-
if (
|
|
236
|
-
if (t === null ?
|
|
237
|
-
const o =
|
|
238
|
-
|
|
235
|
+
if (a.query) {
|
|
236
|
+
if (t === null ? a.id = X.nullValue : t === "" ? a.id = X.emptyStringValue : a.id = `${t}`, a.name = `${t}`, a.query.outStatistics?.[0] !== void 0) {
|
|
237
|
+
const o = a.id;
|
|
238
|
+
a.query.outStatistics[0].outStatisticFieldName = o, "y" in a && (a.y = o);
|
|
239
239
|
}
|
|
240
240
|
const n = typeof t == "number" || t === null ? t : `'${t}'`;
|
|
241
|
-
|
|
241
|
+
a.query.where = `${r}=${n}`;
|
|
242
242
|
}
|
|
243
|
-
return
|
|
243
|
+
return a;
|
|
244
244
|
}
|
|
245
245
|
async function Qt(s) {
|
|
246
246
|
const {
|
|
247
247
|
updateSplitBySeries: e,
|
|
248
248
|
config: t,
|
|
249
|
-
queryObject:
|
|
249
|
+
queryObject: r,
|
|
250
250
|
errorStrings: i,
|
|
251
|
-
abortSignal:
|
|
251
|
+
abortSignal: a,
|
|
252
252
|
runtimeDataFilters: n,
|
|
253
253
|
ignoreViewExtent: o,
|
|
254
254
|
setTimeBinningInfoWhenNotProvided: l,
|
|
255
|
-
returnFeaturesExtent:
|
|
255
|
+
returnFeaturesExtent: u,
|
|
256
256
|
chartLimits: p
|
|
257
257
|
} = s, { seriesTemplate: g } = e ?? {};
|
|
258
258
|
let d;
|
|
259
|
-
if (
|
|
259
|
+
if (r && !ue(r) && e !== void 0 && t !== void 0 && (t.series.length > 0 || g !== void 0) && e.addMissingSeries) {
|
|
260
260
|
const m = t.series.length === 0;
|
|
261
261
|
t.series.length === 0 && g !== void 0 && t.series.push(g);
|
|
262
|
-
const y =
|
|
263
|
-
if (y ===
|
|
264
|
-
const
|
|
265
|
-
queryObject:
|
|
262
|
+
const y = ee(t.series);
|
|
263
|
+
if (y === w.BoxPlotMonoFieldAndSplitBy || y === w.BoxPlotMultiFieldsAndSplitBy || y === w.BoxPlotMonoFieldAndCategoryAndSplitBy || y === w.BarAndLineSplitBy || y === w.BarAndLineSplitByNoAggregation) {
|
|
264
|
+
const c = et(t.series[0]?.query?.where), S = tt(r), F = st(c, S), x = F ? it(F) : !1, f = await jt({
|
|
265
|
+
queryObject: r,
|
|
266
266
|
chartConfig: t,
|
|
267
|
-
splitByField:
|
|
268
|
-
abortSignal:
|
|
267
|
+
splitByField: c,
|
|
268
|
+
abortSignal: a,
|
|
269
269
|
runtimeDataFilters: n,
|
|
270
270
|
ignoreViewExtent: o,
|
|
271
271
|
setTimeBinningInfoWhenNotProvided: l,
|
|
272
|
-
returnFeaturesExtent:
|
|
272
|
+
returnFeaturesExtent: u,
|
|
273
273
|
chartLimits: p,
|
|
274
274
|
errorStrings: i
|
|
275
|
-
}), { allValues:
|
|
276
|
-
if ({ preFetchedQueryResponse: d } = f,
|
|
277
|
-
const
|
|
278
|
-
allValues:
|
|
279
|
-
configUniqueValuesPerSeriesType:
|
|
275
|
+
}), { allValues: b } = f;
|
|
276
|
+
if ({ preFetchedQueryResponse: d } = f, b.length > 0) {
|
|
277
|
+
const C = Kt(t, x), B = Zt({
|
|
278
|
+
allValues: b,
|
|
279
|
+
configUniqueValuesPerSeriesType: C,
|
|
280
280
|
initialConfigWasEmpty: m
|
|
281
281
|
});
|
|
282
|
-
Array.from(B.keys()).forEach((
|
|
283
|
-
(B.get(
|
|
282
|
+
Array.from(B.keys()).forEach((A) => {
|
|
283
|
+
(B.get(A) ?? []).forEach((Y) => {
|
|
284
284
|
t.series.push(
|
|
285
285
|
_t({
|
|
286
286
|
chartConfig: t,
|
|
287
287
|
seriesTemplate: g,
|
|
288
|
-
missingValue:
|
|
289
|
-
splitByField:
|
|
288
|
+
missingValue: Y,
|
|
289
|
+
splitByField: c
|
|
290
290
|
})
|
|
291
291
|
);
|
|
292
292
|
}), m && t.series.shift();
|
|
@@ -303,57 +303,57 @@ async function Ys(s) {
|
|
|
303
303
|
const {
|
|
304
304
|
configToAlter: e,
|
|
305
305
|
layer: t,
|
|
306
|
-
addMissingSeries:
|
|
306
|
+
addMissingSeries: r,
|
|
307
307
|
updateSplitBySeries: i,
|
|
308
|
-
chartContainer:
|
|
308
|
+
chartContainer: a,
|
|
309
309
|
queryObject: n,
|
|
310
310
|
abortSignal: o,
|
|
311
311
|
runtimeDataFilters: l,
|
|
312
|
-
ignoreViewExtent:
|
|
312
|
+
ignoreViewExtent: u,
|
|
313
313
|
setTimeBinningInfoWhenNotProvided: p,
|
|
314
314
|
returnFeaturesExtent: g,
|
|
315
315
|
chartLimits: d,
|
|
316
316
|
timeZone: m,
|
|
317
317
|
errorStrings: y
|
|
318
318
|
} = s;
|
|
319
|
-
let
|
|
320
|
-
return
|
|
319
|
+
let c = e, S;
|
|
320
|
+
return c && (zt(t, c), c = await Nt(c, t, void 0, o), r && n && (S = await Qt({
|
|
321
321
|
updateSplitBySeries: i,
|
|
322
|
-
config:
|
|
322
|
+
config: c,
|
|
323
323
|
queryObject: n,
|
|
324
324
|
errorStrings: y,
|
|
325
325
|
abortSignal: o,
|
|
326
326
|
runtimeDataFilters: l,
|
|
327
|
-
ignoreViewExtent:
|
|
327
|
+
ignoreViewExtent: u,
|
|
328
328
|
setTimeBinningInfoWhenNotProvided: p,
|
|
329
329
|
returnFeaturesExtent: g,
|
|
330
330
|
chartLimits: d
|
|
331
|
-
})),
|
|
331
|
+
})), c = je(c, a), ke(m, c)), { alteredConfig: c, preFetchedQueryResponse: S };
|
|
332
332
|
}
|
|
333
333
|
function Gt(s, e) {
|
|
334
334
|
let t = !1;
|
|
335
335
|
if (e !== void 0) {
|
|
336
|
-
const
|
|
337
|
-
t = Number.isFinite(s[
|
|
336
|
+
const r = at({ key: yt.Average, splitBy: e });
|
|
337
|
+
t = Number.isFinite(s[r]);
|
|
338
338
|
}
|
|
339
339
|
return t;
|
|
340
340
|
}
|
|
341
341
|
function Ws(s) {
|
|
342
|
-
const { data: e, config: t, showEmptySeries:
|
|
342
|
+
const { data: e, config: t, showEmptySeries: r } = s, i = t.series.length, a = J(t);
|
|
343
343
|
let n = !1;
|
|
344
|
-
if (!
|
|
345
|
-
const o = Ze(e), l = Ve(t?.series),
|
|
344
|
+
if (!r && i > 1 && e) {
|
|
345
|
+
const o = Ze(e), l = Ve(t?.series), u = ee(t?.series), p = /* @__PURE__ */ new Set();
|
|
346
346
|
switch (l) {
|
|
347
347
|
case T.ComboLineAndBarSeries:
|
|
348
348
|
case T.BarSeries:
|
|
349
349
|
case T.RadarSeries:
|
|
350
350
|
case T.LineSeries: {
|
|
351
|
-
|
|
351
|
+
a.series.forEach((d) => {
|
|
352
352
|
if (Array.isArray(o)) {
|
|
353
353
|
let m = "";
|
|
354
|
-
"y" in d && (m = Array.isArray(d.y) ? d.y[0] : d.y,
|
|
355
|
-
(
|
|
356
|
-
dataItem:
|
|
354
|
+
"y" in d && (m = Array.isArray(d.y) ? d.y[0] : d.y, u === w.BarAndLineSplitByNoAggregation && (m = `${m}_${me({ where: d.query?.where, keepSurroundingQuotes: !1, escape: !1 })}`), o.some(
|
|
355
|
+
(c) => Ge({
|
|
356
|
+
dataItem: c,
|
|
357
357
|
x: d.x,
|
|
358
358
|
y: m,
|
|
359
359
|
aggregationType: t.series[0].query?.outStatistics?.[0]?.statisticType
|
|
@@ -367,25 +367,25 @@ function Ws(s) {
|
|
|
367
367
|
if (_e(t)) {
|
|
368
368
|
const d = Qe(t);
|
|
369
369
|
t.series.forEach((m) => {
|
|
370
|
-
let y,
|
|
371
|
-
m.type === T.BoxPlotSeries ? (y = e.dataItems,
|
|
370
|
+
let y, c;
|
|
371
|
+
m.type === T.BoxPlotSeries ? (y = e.dataItems, c = y?.some(
|
|
372
372
|
(S) => ze({
|
|
373
373
|
dataItem: S,
|
|
374
374
|
splitBy: m.query?.where,
|
|
375
375
|
showOutliers: d
|
|
376
376
|
})
|
|
377
|
-
)) : m.type === T.LineSeries && (y = e.meanLines,
|
|
377
|
+
)) : m.type === T.LineSeries && (y = e.meanLines, c = y?.some(
|
|
378
378
|
(S) => Gt(S, m.query?.where)
|
|
379
|
-
)),
|
|
379
|
+
)), c && p.add(m);
|
|
380
380
|
});
|
|
381
381
|
}
|
|
382
382
|
break;
|
|
383
383
|
}
|
|
384
384
|
}
|
|
385
385
|
const g = Array.from(p.values());
|
|
386
|
-
n = g.length > 0 && g.length < i, n && (
|
|
386
|
+
n = g.length > 0 && g.length < i, n && (a.series = g);
|
|
387
387
|
}
|
|
388
|
-
return { seriesFilteredOut: n, filteredConfig:
|
|
388
|
+
return { seriesFilteredOut: n, filteredConfig: a };
|
|
389
389
|
}
|
|
390
390
|
const Hs = (s) => s.hideEmptyRowsAndColumns, Xs = (s, e) => {
|
|
391
391
|
s.hideEmptyRowsAndColumns = e;
|
|
@@ -396,47 +396,47 @@ const Hs = (s) => s.hideEmptyRowsAndColumns, Xs = (s, e) => {
|
|
|
396
396
|
const t = s.series[0];
|
|
397
397
|
t.gradientRules = e;
|
|
398
398
|
}, Zs = (s) => s.series[0].gradientRules, _s = (s) => {
|
|
399
|
-
const { yField: e, config: t, layerInfo:
|
|
400
|
-
if (typeof e == "string" && o !== e &&
|
|
401
|
-
if (
|
|
402
|
-
const p = R(
|
|
403
|
-
|
|
399
|
+
const { yField: e, config: t, layerInfo: r, commonStrings: i } = s, { layerFieldsInfo: a } = r, n = ie(1, t), o = Jt(t), l = se(t), u = t.series[0];
|
|
400
|
+
if (typeof e == "string" && o !== e && u) {
|
|
401
|
+
if (u.y = e, Ut(t), o === n || l) {
|
|
402
|
+
const p = R(a, e);
|
|
403
|
+
$(t, 1, p);
|
|
404
404
|
}
|
|
405
|
-
Re({ commonStrings: i, config: t, layerInfo:
|
|
405
|
+
Re({ commonStrings: i, config: t, layerInfo: r });
|
|
406
406
|
}
|
|
407
407
|
}, Jt = (s) => s.series[0].y ?? "", Qs = (s) => {
|
|
408
|
-
const { binning: e, config: t, commonStrings:
|
|
409
|
-
if (i.xTemporalBinning = e, e?.unit !== void 0 && e.unit in
|
|
410
|
-
const
|
|
411
|
-
|
|
408
|
+
const { binning: e, config: t, commonStrings: r } = s, i = t.series[0];
|
|
409
|
+
if (i.xTemporalBinning = e, e?.unit !== void 0 && e.unit in r.utilsStrings.heatChartCalendarDatePartsUnits) {
|
|
410
|
+
const a = r.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
|
|
411
|
+
$(t, 0, a);
|
|
412
412
|
}
|
|
413
|
-
|
|
413
|
+
G({ axisIndex: 0, commonStrings: r, config: t });
|
|
414
414
|
}, es = (s) => s.series[0].xTemporalBinning, zs = (s) => {
|
|
415
|
-
const { binning: e, config: t, commonStrings:
|
|
416
|
-
if (i.yTemporalBinning = e, e?.unit !== void 0 && e.unit in
|
|
417
|
-
const
|
|
418
|
-
|
|
415
|
+
const { binning: e, config: t, commonStrings: r } = s, i = t.series[0];
|
|
416
|
+
if (i.yTemporalBinning = e, e?.unit !== void 0 && e.unit in r.utilsStrings.heatChartCalendarDatePartsUnits) {
|
|
417
|
+
const a = r.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
|
|
418
|
+
$(t, 1, a);
|
|
419
419
|
}
|
|
420
|
-
|
|
420
|
+
G({ axisIndex: 1, commonStrings: r, config: t });
|
|
421
421
|
}, ts = (s) => s.series[0].yTemporalBinning, ss = (s, e) => {
|
|
422
422
|
e.orderOptions ??= {};
|
|
423
|
-
const t = e.axes?.[0]?.valueFormat?.type === "category" ? L.Category : L.YValue,
|
|
423
|
+
const t = e.axes?.[0]?.valueFormat?.type === "category" ? L.Category : L.YValue, r = de(e)[0], i = e.axes?.[1]?.valueFormat?.type === "category" ? L.Category : L.YValue, a = de(e)[1], n = {
|
|
424
424
|
...e.orderOptions.data ?? {},
|
|
425
425
|
orderType: L.MultiAxes
|
|
426
426
|
};
|
|
427
|
-
|
|
427
|
+
r === oe.customSort && t === L.Category && (n.orderByX = [...s]), a === oe.customSort && i === L.Category && (n.orderByY = [...s]), Object.keys(n).length > 1 && (e.orderOptions.data = n);
|
|
428
428
|
}, Gs = (s, e) => {
|
|
429
429
|
const t = e.series[0];
|
|
430
430
|
t.gridLine && (t.gridLine.width = s);
|
|
431
431
|
}, Js = (s) => s.series[0].gridLine?.width, ei = (s, e) => {
|
|
432
|
-
const t = e.series[0],
|
|
433
|
-
t.gridLine &&
|
|
432
|
+
const t = e.series[0], r = s?.length === 4 && s.every((i) => typeof i == "number");
|
|
433
|
+
t.gridLine && r && (t.gridLine.color = s);
|
|
434
434
|
}, ti = (s) => s.series[0].gridLine?.color, si = (s, e) => {
|
|
435
435
|
const t = e.legend;
|
|
436
436
|
t && (t.position = s);
|
|
437
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:
|
|
439
|
-
|
|
438
|
+
const { field: e, config: t, layerInfo: r, commonStrings: i } = s, a = t.series[0].query?.outStatistics?.[0], n = ne(t, r, i);
|
|
439
|
+
a ? (a.onStatisticField = e, a.outStatisticFieldName = `${a.statisticType}_${e}`) : t.series[0].query = {
|
|
440
440
|
outStatistics: [
|
|
441
441
|
{
|
|
442
442
|
onStatisticField: e,
|
|
@@ -444,13 +444,13 @@ const Hs = (s) => s.hideEmptyRowsAndColumns, Xs = (s, e) => {
|
|
|
444
444
|
statisticType: v.Count
|
|
445
445
|
}
|
|
446
446
|
]
|
|
447
|
-
}, n && t.title && (t.title.content.text =
|
|
447
|
+
}, n && t.title && (t.title.content.text = K(t, r, i));
|
|
448
448
|
}, ni = (s) => s.series[0].query?.outStatistics?.[0].statisticType ?? v.Count, oi = (s) => {
|
|
449
|
-
const { aggregationType: e, config: t, layerInfo:
|
|
450
|
-
|
|
449
|
+
const { aggregationType: e, config: t, layerInfo: r, commonStrings: i } = s, a = t.series[0]?.query?.outStatistics?.[0], n = ne(t, r, i);
|
|
450
|
+
a && e !== v.NoAggregation && (a.statisticType = e, a.outStatisticFieldName = `${e}_${a.onStatisticField}`), (e === v.Count || e === v.Sum) && is(H.Zero, t), n && t.title && (t.title.content.text = K(t, r, i));
|
|
451
451
|
}, li = (s) => s.nullPolicy, is = (s, e) => {
|
|
452
452
|
e.nullPolicy = s;
|
|
453
|
-
},
|
|
453
|
+
}, ci = (s) => s.series[0].emptyCells, ui = (s, e) => {
|
|
454
454
|
e.series[0].emptyCells = s;
|
|
455
455
|
}, di = (s) => s.series[0].emptyCells?.text, yi = (s, e) => {
|
|
456
456
|
e.series[0].emptyCells ? e.series[0].emptyCells.text = s : e.series[0].emptyCells = { text: s };
|
|
@@ -519,10 +519,10 @@ const as = [
|
|
|
519
519
|
k.MonthOfYear
|
|
520
520
|
], Te = (s) => {
|
|
521
521
|
let e;
|
|
522
|
-
return
|
|
523
|
-
}, Be = (s) =>
|
|
524
|
-
const { axisIndex: e, commonStrings: t, config:
|
|
525
|
-
i !== void 0 &&
|
|
522
|
+
return _(s) ? e = ce() : (q(s) || Q(s)) && (e = z()), e;
|
|
523
|
+
}, Be = (s) => q(s) || Q(s), Ce = (s) => {
|
|
524
|
+
const { axisIndex: e, commonStrings: t, config: r, valueFormat: i } = s, a = r.axes?.[e]?.valueFormat;
|
|
525
|
+
i !== void 0 && a?.type !== i.type && Ie({ config: r, commonStrings: t, valueFormat: i, axisIndex: e });
|
|
526
526
|
}, rs = (s, e) => {
|
|
527
527
|
let t;
|
|
528
528
|
return e === 0 ? t = s.series[0]?.xTemporalBinning : e === 1 && (t = s.series[0]?.yTemporalBinning), t;
|
|
@@ -548,7 +548,7 @@ const as = [
|
|
|
548
548
|
e = { month: "short" };
|
|
549
549
|
break;
|
|
550
550
|
default:
|
|
551
|
-
e =
|
|
551
|
+
e = z().intlOptions;
|
|
552
552
|
break;
|
|
553
553
|
}
|
|
554
554
|
return {
|
|
@@ -556,14 +556,14 @@ const as = [
|
|
|
556
556
|
intlOptions: e
|
|
557
557
|
};
|
|
558
558
|
}, ve = (s) => {
|
|
559
|
-
const { axisIndex: e, binning: t, commonStrings:
|
|
560
|
-
e === 0 ? o.xTemporalBinning = t : e === 1 && (o.yTemporalBinning = t), t !== void 0 && (l === "" || l ===
|
|
561
|
-
},
|
|
562
|
-
const { axisIndex: e, commonStrings: t, config:
|
|
563
|
-
Ie({ config:
|
|
559
|
+
const { axisIndex: e, binning: t, commonStrings: r, config: i, fieldName: a, layerInfo: n } = s, o = i.series[0], l = ie(e, i), u = R(n.layerFieldsInfo, a);
|
|
560
|
+
e === 0 ? o.xTemporalBinning = t : e === 1 && (o.yTemporalBinning = t), t !== void 0 && (l === "" || l === u || l === be(r, t.unit) || l === r.xAxis) && $(i, e, be(r, t.unit));
|
|
561
|
+
}, G = (s) => {
|
|
562
|
+
const { axisIndex: e, commonStrings: t, config: r } = s, i = rs(r, e), a = i ? ns(i) : void 0;
|
|
563
|
+
Ie({ config: r, commonStrings: t, valueFormat: a, axisIndex: e });
|
|
564
564
|
}, Re = (s) => {
|
|
565
|
-
const { commonStrings: e, config: t, layerInfo:
|
|
566
|
-
if (Ce({ axisIndex: 0, commonStrings: e, config: t, valueFormat: l }), Ce({ axisIndex: 1, commonStrings: e, config: t, valueFormat:
|
|
565
|
+
const { commonStrings: e, config: t, layerInfo: r } = s, i = t.series[0]?.x ?? "", a = t.series[0]?.y ?? "", n = Se(r.layerFieldsInfo, i), o = Se(r.layerFieldsInfo, a), l = Te(n), u = Te(o), p = Be(n) && Be(o), g = _(n) && _(o);
|
|
566
|
+
if (Ce({ axisIndex: 0, commonStrings: e, config: t, valueFormat: l }), Ce({ axisIndex: 1, commonStrings: e, config: t, valueFormat: u }), p) {
|
|
567
567
|
const d = es(t) === void 0, m = ts(t) === void 0;
|
|
568
568
|
d && (ve({
|
|
569
569
|
axisIndex: 0,
|
|
@@ -571,8 +571,8 @@ const as = [
|
|
|
571
571
|
commonStrings: e,
|
|
572
572
|
config: t,
|
|
573
573
|
fieldName: i,
|
|
574
|
-
layerInfo:
|
|
575
|
-
}),
|
|
574
|
+
layerInfo: r
|
|
575
|
+
}), G({
|
|
576
576
|
axisIndex: 0,
|
|
577
577
|
commonStrings: e,
|
|
578
578
|
config: t
|
|
@@ -581,9 +581,9 @@ const as = [
|
|
|
581
581
|
binning: Ae(1, t.series[0].xTemporalBinning),
|
|
582
582
|
commonStrings: e,
|
|
583
583
|
config: t,
|
|
584
|
-
fieldName:
|
|
585
|
-
layerInfo:
|
|
586
|
-
}),
|
|
584
|
+
fieldName: a,
|
|
585
|
+
layerInfo: r
|
|
586
|
+
}), G({
|
|
587
587
|
axisIndex: 1,
|
|
588
588
|
commonStrings: e,
|
|
589
589
|
config: t
|
|
@@ -597,16 +597,16 @@ function os(s) {
|
|
|
597
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);
|
|
598
598
|
}), e.text || e.fillSymbol || e.markerSymbol ? e : void 0;
|
|
599
599
|
}
|
|
600
|
-
function
|
|
601
|
-
const { seriesIndex: e, xAxisField: t, aggregationType:
|
|
600
|
+
function ae(s) {
|
|
601
|
+
const { seriesIndex: e, xAxisField: t, aggregationType: r, config: i, layerInfo: a, commonStrings: n } = s, o = j(a?.layer).idField;
|
|
602
602
|
let l;
|
|
603
|
-
const
|
|
603
|
+
const u = i.series[e ?? 0];
|
|
604
604
|
let p = !1, g = !1, d = !1;
|
|
605
|
-
if (
|
|
605
|
+
if (u === void 0) {
|
|
606
606
|
const B = i.series;
|
|
607
|
-
p = B.slice(0, e).every((
|
|
607
|
+
p = B.slice(0, e).every((A) => O(A)), g = B.slice(0, e).every((A) => V(A)), d = B.slice(0, e).every((A) => Fe(A));
|
|
608
608
|
} else
|
|
609
|
-
p = O(
|
|
609
|
+
p = O(u), g = V(u), d = Fe(u);
|
|
610
610
|
p ? l = bt({
|
|
611
611
|
commonStrings: n,
|
|
612
612
|
seriesIndex: e,
|
|
@@ -620,7 +620,7 @@ function ie(s) {
|
|
|
620
620
|
objectIDField: o,
|
|
621
621
|
commonStrings: n
|
|
622
622
|
});
|
|
623
|
-
const m = i.series[0]?.dataLabels, y = "nullCategory" in i.series[0] ? os(i) : void 0,
|
|
623
|
+
const m = i.series[0]?.dataLabels, y = "nullCategory" in i.series[0] ? os(i) : void 0, c = "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, b = i.series[0].query && "fetchNullValues" in i.series[0].query ? i.series[0].query?.fetchNullValues : void 0, C = {
|
|
624
624
|
...l,
|
|
625
625
|
x: t,
|
|
626
626
|
y: "",
|
|
@@ -631,88 +631,88 @@ function ie(s) {
|
|
|
631
631
|
visible: m?.visible ?? !1
|
|
632
632
|
},
|
|
633
633
|
...y !== void 0 ? { nullCategory: y } : {},
|
|
634
|
-
...
|
|
634
|
+
...c !== void 0 ? { binTemporalData: c } : {},
|
|
635
635
|
...S !== void 0 ? { classBreakRules: S } : {},
|
|
636
636
|
...F !== void 0 ? { xTemporalBinning: F } : {},
|
|
637
637
|
...x !== void 0 ? { yTemporalBinning: x } : {},
|
|
638
638
|
...f !== void 0 ? { emptyCells: f } : {}
|
|
639
639
|
};
|
|
640
|
-
if (
|
|
640
|
+
if (C.query = {
|
|
641
641
|
groupByFieldsForStatistics: [t],
|
|
642
|
-
...
|
|
643
|
-
},
|
|
644
|
-
const B = `${
|
|
645
|
-
|
|
642
|
+
...b !== void 0 ? { fetchNullValues: b } : {}
|
|
643
|
+
}, r !== v.NoAggregation && o !== void 0) {
|
|
644
|
+
const B = `${r}_${o}_0`.toUpperCase();
|
|
645
|
+
C.y = B, C.query.outStatistics = [
|
|
646
646
|
{
|
|
647
|
-
statisticType:
|
|
647
|
+
statisticType: r,
|
|
648
648
|
onStatisticField: o,
|
|
649
649
|
outStatisticFieldName: B
|
|
650
650
|
}
|
|
651
651
|
];
|
|
652
652
|
}
|
|
653
|
-
if (I(i.series[0]) && I(
|
|
653
|
+
if (I(i.series[0]) && I(C)) {
|
|
654
654
|
let B = wt(i);
|
|
655
|
-
B === le.Quarter && (B = le.Month),
|
|
655
|
+
B === le.Quarter && (B = le.Month), C.temporalBinning = {
|
|
656
656
|
...i.series[0]?.temporalBinning,
|
|
657
657
|
unit: B
|
|
658
658
|
};
|
|
659
659
|
}
|
|
660
|
-
return
|
|
660
|
+
return J(C);
|
|
661
661
|
}
|
|
662
|
-
function
|
|
663
|
-
const { layerFieldsInfo:
|
|
662
|
+
function K(s, e, t) {
|
|
663
|
+
const { layerFieldsInfo: r } = e, { idField: i, isTraditionalTypeOID: a } = j(e.layer), n = P(s), o = Z(s), l = we(s), u = re(s), p = a && (o.length === 0 || o.includes(i)), g = Ct(l, t), d = p ? "" : o.map((f) => R(r ?? [], f)).join(", "), m = R(r ?? [], n), y = R(r ?? [], u), c = s.series.some((f) => M(f)), S = c ? "category" : "xAxisField", F = m;
|
|
664
664
|
let x = "";
|
|
665
665
|
if (ge({
|
|
666
666
|
fieldName: n,
|
|
667
667
|
numericFields: o,
|
|
668
|
-
fieldList:
|
|
668
|
+
fieldList: r
|
|
669
669
|
}))
|
|
670
|
-
x =
|
|
670
|
+
x = E(t.titleLabels.aggrTypeOfAggrFields, {
|
|
671
671
|
aggregationType: g,
|
|
672
672
|
aggregationFields: d
|
|
673
673
|
});
|
|
674
674
|
else if (l === v.NoAggregation) {
|
|
675
675
|
const f = p ? i : d;
|
|
676
|
-
if (
|
|
677
|
-
const
|
|
678
|
-
x =
|
|
676
|
+
if (u === "") {
|
|
677
|
+
const b = c ? "aggrTypeCategory" : "aggrTypeXAxisField";
|
|
678
|
+
x = E(t.titleLabels[b], {
|
|
679
679
|
aggregationType: f,
|
|
680
680
|
[S]: F
|
|
681
681
|
});
|
|
682
682
|
} else {
|
|
683
|
-
const
|
|
684
|
-
x =
|
|
683
|
+
const b = c ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
|
|
684
|
+
x = E(t.titleLabels[b], {
|
|
685
685
|
aggregationType: f,
|
|
686
686
|
[S]: F,
|
|
687
687
|
splitByField: y
|
|
688
688
|
});
|
|
689
689
|
}
|
|
690
690
|
} else if (l === v.Count)
|
|
691
|
-
if (
|
|
692
|
-
const f =
|
|
693
|
-
x =
|
|
691
|
+
if (u === "") {
|
|
692
|
+
const f = c ? "aggrTypeCategory" : "aggrTypeXAxisField";
|
|
693
|
+
x = E(t.titleLabels[f], {
|
|
694
694
|
aggregationType: g,
|
|
695
695
|
[S]: F
|
|
696
696
|
});
|
|
697
697
|
} else {
|
|
698
|
-
const f =
|
|
699
|
-
x =
|
|
698
|
+
const f = c ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
|
|
699
|
+
x = E(t.titleLabels[f], {
|
|
700
700
|
aggregationType: g,
|
|
701
701
|
[S]: F,
|
|
702
702
|
splitByField: y
|
|
703
703
|
});
|
|
704
704
|
}
|
|
705
|
-
else if (
|
|
706
|
-
const f =
|
|
707
|
-
x =
|
|
705
|
+
else if (u !== "") {
|
|
706
|
+
const f = c ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
|
|
707
|
+
x = E(t.titleLabels[f], {
|
|
708
708
|
aggregationType: g,
|
|
709
709
|
aggregationField: d,
|
|
710
710
|
[S]: F,
|
|
711
711
|
splitByField: y
|
|
712
712
|
});
|
|
713
713
|
} else if (o.length > 0) {
|
|
714
|
-
const f =
|
|
715
|
-
x =
|
|
714
|
+
const f = c ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
|
|
715
|
+
x = E(t.titleLabels[f], {
|
|
716
716
|
aggregationType: g,
|
|
717
717
|
aggregationFields: d,
|
|
718
718
|
[S]: F
|
|
@@ -724,150 +724,150 @@ const qe = (s) => me({
|
|
|
724
724
|
where: s.query?.where,
|
|
725
725
|
normalize: !1,
|
|
726
726
|
escape: !1
|
|
727
|
-
}) ?? "", we = (s) => s?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? v.NoAggregation,
|
|
727
|
+
}) ?? "", we = (s) => s?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? v.NoAggregation, re = We(
|
|
728
728
|
(s) => {
|
|
729
729
|
const e = s?.series?.[0]?.query?.where?.split("=")[0].trim() ?? "";
|
|
730
730
|
return gt(s?.series?.[0]?.query?.where) ? "" : e;
|
|
731
731
|
},
|
|
732
732
|
(s) => s?.series?.[0]?.query?.where
|
|
733
|
-
),
|
|
733
|
+
), Z = (s) => {
|
|
734
734
|
let e = [];
|
|
735
|
-
if (
|
|
735
|
+
if (re(s) === "")
|
|
736
736
|
e = s?.series.map((t) => {
|
|
737
|
-
const
|
|
738
|
-
return
|
|
737
|
+
const r = t.query?.outStatistics?.map((i) => i.onStatisticField) ?? [];
|
|
738
|
+
return r?.length > 0 ? r : t.y;
|
|
739
739
|
}).flat() ?? [];
|
|
740
740
|
else {
|
|
741
|
-
const t = s?.series?.[0],
|
|
742
|
-
e =
|
|
741
|
+
const t = s?.series?.[0], r = t?.query?.outStatistics?.[0]?.onStatisticField ?? [t?.y].flat()[0];
|
|
742
|
+
e = r !== void 0 ? [r] : [];
|
|
743
743
|
}
|
|
744
744
|
return e.filter((t) => t !== "");
|
|
745
745
|
};
|
|
746
746
|
function Pe(s) {
|
|
747
|
-
const { splitByField: e, numericFields: t, layer:
|
|
748
|
-
return e === "" ? t[i] ??
|
|
747
|
+
const { splitByField: e, numericFields: t, layer: r, seriesIndex: i } = s, a = j(r).idField ?? "";
|
|
748
|
+
return e === "" ? t[i] ?? a : t[0] ?? a;
|
|
749
749
|
}
|
|
750
750
|
function ls(s) {
|
|
751
|
-
const { numericFields: e, aggregationType: t, config:
|
|
752
|
-
let
|
|
753
|
-
t === v.Count ?
|
|
754
|
-
const
|
|
755
|
-
return
|
|
756
|
-
})), pe(
|
|
757
|
-
const n =
|
|
751
|
+
const { numericFields: e, aggregationType: t, config: r, layerInfo: i } = s;
|
|
752
|
+
let a = !1;
|
|
753
|
+
t === v.Count ? a = !0 : t === v.NoAggregation && (a = e.every((l) => {
|
|
754
|
+
const u = i.layerFieldsInfo.find((p) => p.name === l);
|
|
755
|
+
return u !== void 0 ? xe(u) : !1;
|
|
756
|
+
})), pe(r, 1, a);
|
|
757
|
+
const n = r.series.some((l) => O(l)), o = r.series.some((l) => V(l));
|
|
758
758
|
if (n || o) {
|
|
759
|
-
const l =
|
|
760
|
-
pe(
|
|
759
|
+
const l = P(r), u = i.layerFieldsInfo.find((g) => g.name === l), p = u !== void 0 && xe(u);
|
|
760
|
+
pe(r, 0, p);
|
|
761
761
|
}
|
|
762
762
|
}
|
|
763
763
|
const de = (s) => {
|
|
764
764
|
let e;
|
|
765
765
|
if (W(s)) {
|
|
766
|
-
const t = s.orderOptions?.data?.orderByX ?? [""],
|
|
767
|
-
e = [he(t, i), he(
|
|
766
|
+
const t = s.orderOptions?.data?.orderByX ?? [""], r = s.orderOptions?.data?.orderByY ?? [""], i = s.axes?.[0]?.valueFormat?.type === "category" ? L.Category : L.YValue, a = s.axes?.[1]?.valueFormat?.type === "category" ? L.Category : L.YValue;
|
|
767
|
+
e = [he(t, i), he(r, a)];
|
|
768
768
|
} else {
|
|
769
|
-
const t = s.orderOptions?.data?.orderType ?? L.Category,
|
|
770
|
-
e = [St(
|
|
769
|
+
const t = s.orderOptions?.data?.orderType ?? L.Category, r = s.orderOptions?.data && "orderBy" in s.orderOptions.data ? s.orderOptions.data.orderBy : xt.Ascending;
|
|
770
|
+
e = [St(r, t)];
|
|
771
771
|
}
|
|
772
772
|
return e;
|
|
773
773
|
};
|
|
774
|
-
function
|
|
775
|
-
const { xAxisField: e, numericFields: t, aggregationType:
|
|
774
|
+
function cs(s) {
|
|
775
|
+
const { xAxisField: e, numericFields: t, aggregationType: r, config: i, layerInfo: a, commonStrings: n } = s, { layerFieldsInfo: o } = a, l = ae({
|
|
776
776
|
config: i,
|
|
777
777
|
xAxisField: e,
|
|
778
|
-
aggregationType:
|
|
779
|
-
layerInfo:
|
|
778
|
+
aggregationType: r,
|
|
779
|
+
layerInfo: a,
|
|
780
780
|
seriesIndex: 0,
|
|
781
781
|
commonStrings: n
|
|
782
|
-
}),
|
|
782
|
+
}), u = te({
|
|
783
783
|
config: i,
|
|
784
784
|
xAxisField: e,
|
|
785
785
|
numericFields: t,
|
|
786
|
-
aggregationType:
|
|
787
|
-
layer:
|
|
786
|
+
aggregationType: r,
|
|
787
|
+
layer: a.layer,
|
|
788
788
|
fieldList: o
|
|
789
|
-
}).name, p =
|
|
789
|
+
}).name, p = P(i), g = Z(i), d = ge({
|
|
790
790
|
fieldName: p,
|
|
791
791
|
numericFields: g,
|
|
792
792
|
fieldList: o
|
|
793
|
-
}) ? i.series[0] : void 0, m = `series_${Date.now()}`, y = d?.id ?? m,
|
|
793
|
+
}) ? i.series[0] : void 0, m = `series_${Date.now()}`, y = d?.id ?? m, c = d?.name ?? n.axisLabels.values, F = {
|
|
794
794
|
...d ?? l,
|
|
795
795
|
id: y,
|
|
796
|
-
name:
|
|
797
|
-
x:
|
|
798
|
-
y:
|
|
796
|
+
name: c,
|
|
797
|
+
x: U,
|
|
798
|
+
y: u
|
|
799
799
|
}, x = [];
|
|
800
800
|
for (const f of t)
|
|
801
801
|
x.push({
|
|
802
802
|
onStatisticField: f,
|
|
803
803
|
outStatisticFieldName: `${f}_0`.toUpperCase(),
|
|
804
|
-
statisticType:
|
|
804
|
+
statisticType: r
|
|
805
805
|
});
|
|
806
|
-
return F.query = { outStatistics: x }, i.series.length === 1 && ((O(F) || V(F)) && Me(F, i.series[0]),
|
|
806
|
+
return F.query = { outStatistics: x }, i.series.length === 1 && ((O(F) || V(F)) && Me(F, i.series[0]), M(F) ? F.fillSymbol = i.series[0].fillSymbol : (O(F) || V(F)) && (F.lineSymbol = i.series[0].lineSymbol, F.markerSymbol = i.series[0].markerSymbol)), [F];
|
|
807
807
|
}
|
|
808
808
|
function Ee(s) {
|
|
809
|
-
const { xAxisField: e, numericFields: t, aggregationType:
|
|
809
|
+
const { xAxisField: e, numericFields: t, aggregationType: r, config: i, layerInfo: a, commonStrings: n } = s, { layerFieldsInfo: o } = a, l = j(a.layer).idField, u = [];
|
|
810
810
|
for (let y = 0; y < t.length; y += 1) {
|
|
811
|
-
const
|
|
811
|
+
const c = ae({
|
|
812
812
|
config: i,
|
|
813
813
|
xAxisField: e,
|
|
814
|
-
aggregationType:
|
|
815
|
-
layerInfo:
|
|
814
|
+
aggregationType: r,
|
|
815
|
+
layerInfo: a,
|
|
816
816
|
seriesIndex: y,
|
|
817
817
|
commonStrings: n
|
|
818
|
-
}), S = i.series[y]?.y, F = typeof S == "string" && S.trim() !== "" && !o.find((N) => N.name === S) ? S :
|
|
818
|
+
}), S = i.series[y]?.y, F = typeof S == "string" && S.trim() !== "" && !o.find((N) => N.name === S) ? S : te({
|
|
819
819
|
config: i,
|
|
820
820
|
xAxisField: e,
|
|
821
821
|
numericFields: t,
|
|
822
|
-
aggregationType:
|
|
823
|
-
layer:
|
|
822
|
+
aggregationType: r,
|
|
823
|
+
layer: a.layer,
|
|
824
824
|
numericFieldIndex: y,
|
|
825
825
|
fieldList: o
|
|
826
826
|
}).name, x = t[y], f = i.series.find(
|
|
827
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
|
-
),
|
|
829
|
-
...
|
|
830
|
-
id:
|
|
828
|
+
), b = x !== l ? x : c.id, C = f?.id ?? b, B = f?.name ?? R(o, x) ?? C, A = f ?? c, h = {
|
|
829
|
+
...A,
|
|
830
|
+
id: C,
|
|
831
831
|
name: B
|
|
832
832
|
};
|
|
833
|
-
let
|
|
834
|
-
h.query !== void 0 && (
|
|
833
|
+
let Y = x;
|
|
834
|
+
h.query !== void 0 && (r !== v.NoAggregation ? (Y = h.type === T.HeatSeries && f?.type === T.HeatSeries ? x : F, h.query.outStatistics = [
|
|
835
835
|
{
|
|
836
|
-
...
|
|
836
|
+
...A.query?.outStatistics?.[0] ?? {},
|
|
837
837
|
onStatisticField: x,
|
|
838
838
|
outStatisticFieldName: F,
|
|
839
|
-
statisticType:
|
|
839
|
+
statisticType: r
|
|
840
840
|
}
|
|
841
|
-
]) : delete h.query.outStatistics), h.y =
|
|
841
|
+
]) : delete h.query.outStatistics), h.y = Y, u.push(h);
|
|
842
842
|
}
|
|
843
|
-
const p =
|
|
843
|
+
const p = u.filter((y) => M(y)), g = u.filter(
|
|
844
844
|
(y) => O(y) || V(y)
|
|
845
|
-
), d = i.series.filter((y) =>
|
|
845
|
+
), d = i.series.filter((y) => M(y)), m = i.series.filter(
|
|
846
846
|
(y) => O(y) || V(y)
|
|
847
847
|
);
|
|
848
|
-
return d.length === 1 && p.length === 1 &&
|
|
848
|
+
return d.length === 1 && p.length === 1 && M(d[0]) && M(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)), u;
|
|
849
849
|
}
|
|
850
850
|
function Di(s) {
|
|
851
|
-
const { aggregationType: e, config: t, layerInfo:
|
|
851
|
+
const { aggregationType: e, config: t, layerInfo: r, commonStrings: i } = s, { layerFieldsInfo: a, layer: n } = r, o = P(t), l = Z(t), u = re(t), p = ne(t, r, i), g = $e(t, r, i);
|
|
852
852
|
if (t.series.forEach((d, m) => {
|
|
853
|
-
const y =
|
|
853
|
+
const y = te({
|
|
854
854
|
config: t,
|
|
855
855
|
xAxisField: o,
|
|
856
856
|
numericFields: l,
|
|
857
857
|
aggregationType: e,
|
|
858
|
-
splitByField:
|
|
858
|
+
splitByField: u,
|
|
859
859
|
layer: n,
|
|
860
860
|
seriesIndex: m,
|
|
861
861
|
numericFieldIndex: m,
|
|
862
|
-
fieldList:
|
|
862
|
+
fieldList: a
|
|
863
863
|
}).name;
|
|
864
864
|
d.y = y;
|
|
865
|
-
const
|
|
866
|
-
splitByField:
|
|
865
|
+
const c = Pe({
|
|
866
|
+
splitByField: u,
|
|
867
867
|
numericFields: l,
|
|
868
868
|
layer: n,
|
|
869
869
|
seriesIndex: m
|
|
870
|
-
}), S = d.query?.outStatistics?.[0]?.onStatisticField ??
|
|
870
|
+
}), S = d.query?.outStatistics?.[0]?.onStatisticField ?? c;
|
|
871
871
|
d.query = {
|
|
872
872
|
...d.query,
|
|
873
873
|
outStatistics: e === v.NoAggregation ? void 0 : [
|
|
@@ -879,73 +879,73 @@ function Di(s) {
|
|
|
879
879
|
}
|
|
880
880
|
]
|
|
881
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 =
|
|
882
|
+
}), p && t.title && (t.title.content.text = K(t, r, i)), g && t.series[0].type !== T.HeatSeries) {
|
|
883
883
|
const d = ye({
|
|
884
884
|
config: t,
|
|
885
|
-
layerInfo:
|
|
885
|
+
layerInfo: r,
|
|
886
886
|
commonStrings: i,
|
|
887
887
|
numericFields: l,
|
|
888
888
|
aggregationType: e
|
|
889
889
|
});
|
|
890
|
-
|
|
890
|
+
$(t, 1, d);
|
|
891
891
|
}
|
|
892
892
|
}
|
|
893
|
-
function
|
|
893
|
+
function us(s) {
|
|
894
894
|
const {
|
|
895
895
|
splitByField: e,
|
|
896
896
|
xAxisField: t,
|
|
897
|
-
numericFields:
|
|
897
|
+
numericFields: r,
|
|
898
898
|
aggregationType: i,
|
|
899
|
-
config:
|
|
899
|
+
config: a,
|
|
900
900
|
layerInfo: n,
|
|
901
901
|
commonStrings: o,
|
|
902
902
|
splitByFieldInfos: l
|
|
903
|
-
} = s, { layer:
|
|
903
|
+
} = s, { layer: u, layerFieldsInfo: p } = n, { categoriesArray: g, splitByFieldType: d } = l, m = Pe({
|
|
904
904
|
splitByField: e,
|
|
905
|
-
numericFields:
|
|
906
|
-
layer:
|
|
905
|
+
numericFields: r,
|
|
906
|
+
layer: u,
|
|
907
907
|
seriesIndex: 0
|
|
908
908
|
});
|
|
909
909
|
let y = [];
|
|
910
910
|
if (g.length === 0) {
|
|
911
911
|
y = Ee({
|
|
912
912
|
xAxisField: t,
|
|
913
|
-
numericFields:
|
|
913
|
+
numericFields: r,
|
|
914
914
|
aggregationType: i,
|
|
915
|
-
config:
|
|
915
|
+
config: a,
|
|
916
916
|
layerInfo: n,
|
|
917
917
|
commonStrings: o
|
|
918
918
|
});
|
|
919
|
-
for (const
|
|
920
|
-
|
|
919
|
+
for (const c of y)
|
|
920
|
+
c.query && (c.query.where = `${e}=''`);
|
|
921
921
|
} else
|
|
922
|
-
for (let
|
|
923
|
-
const S = g[
|
|
924
|
-
config:
|
|
922
|
+
for (let c = 0; c < g.length; c += 1) {
|
|
923
|
+
const S = g[c], F = te({
|
|
924
|
+
config: a,
|
|
925
925
|
xAxisField: t,
|
|
926
|
-
numericFields:
|
|
926
|
+
numericFields: r,
|
|
927
927
|
aggregationType: i,
|
|
928
928
|
layer: n.layer,
|
|
929
|
-
seriesIndex:
|
|
929
|
+
seriesIndex: c,
|
|
930
930
|
splitByField: e,
|
|
931
931
|
fieldList: p
|
|
932
|
-
}).name, x =
|
|
933
|
-
config:
|
|
932
|
+
}).name, x = ae({
|
|
933
|
+
config: a,
|
|
934
934
|
xAxisField: t,
|
|
935
935
|
aggregationType: i,
|
|
936
936
|
layerInfo: n,
|
|
937
|
-
seriesIndex:
|
|
937
|
+
seriesIndex: c,
|
|
938
938
|
commonStrings: o
|
|
939
939
|
}), f = Ne({
|
|
940
940
|
queryObject: n.layer,
|
|
941
941
|
fieldName: e,
|
|
942
942
|
fieldValue: S ?? ""
|
|
943
|
-
}),
|
|
944
|
-
(N) => String(qe(N)).trim().replace(/'/gu, "") ===
|
|
945
|
-
), B =
|
|
943
|
+
}), b = `${S}`, C = a.series.find(
|
|
944
|
+
(N) => String(qe(N)).trim().replace(/'/gu, "") === b
|
|
945
|
+
), B = C?.id ?? b, A = C?.name ?? f ?? B, h = C ?? x, Y = {
|
|
946
946
|
...h,
|
|
947
947
|
id: B,
|
|
948
|
-
name:
|
|
948
|
+
name: A,
|
|
949
949
|
y: F,
|
|
950
950
|
query: {
|
|
951
951
|
...h.query,
|
|
@@ -960,7 +960,7 @@ function cs(s) {
|
|
|
960
960
|
] : void 0
|
|
961
961
|
}
|
|
962
962
|
};
|
|
963
|
-
y.push(
|
|
963
|
+
y.push(Y);
|
|
964
964
|
}
|
|
965
965
|
return y;
|
|
966
966
|
}
|
|
@@ -968,67 +968,66 @@ const Ni = (s) => {
|
|
|
968
968
|
const {
|
|
969
969
|
xAxisFieldName: e,
|
|
970
970
|
splitByField: t,
|
|
971
|
-
numericFields:
|
|
971
|
+
numericFields: r,
|
|
972
972
|
aggregationType: i,
|
|
973
|
-
config:
|
|
973
|
+
config: a,
|
|
974
974
|
layerInfo: n,
|
|
975
975
|
commonStrings: o,
|
|
976
976
|
splitByFieldInfos: l
|
|
977
|
-
} = s, { layerFieldsInfo:
|
|
978
|
-
let f = Le(
|
|
979
|
-
const
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
]), r.series.forEach((h) => {
|
|
977
|
+
} = s, { layerFieldsInfo: u } = n ?? {}, p = J(a), g = Rt(a), d = P(p), m = u.find((h) => h.name === d), y = a.series[0]?.query === void 0, c = u.find((h) => h.name === e), S = ne(p, n, o), F = $e(p, n, o), x = ds({ config: p, layerInfo: n, commonStrings: o });
|
|
978
|
+
let f = Le(a);
|
|
979
|
+
const b = p.series.some((h) => M(h)), C = pt(p.series), B = ft(p.series), A = q(m) || q(c);
|
|
980
|
+
if (_(c) ? f = ce() : !Q(m) && Q(c) ? f = z() : !q(m) && q(c) ? f = z() : q(m) && !q(c) && (b ? f = ce() : f = Lt()), f !== void 0 && Xe(a, o, f), g === 0 && (a.series = [
|
|
981
|
+
ae({ config: a, xAxisField: e, aggregationType: i, layerInfo: n, commonStrings: o })
|
|
982
|
+
]), a.series.forEach((h) => {
|
|
984
983
|
h.x = e, h.query !== void 0 && (h.query.groupByFieldsForStatistics = [e]);
|
|
985
|
-
}), t === "" ||
|
|
984
|
+
}), t === "" || r.length > 1 ? ge({
|
|
986
985
|
fieldName: e,
|
|
987
|
-
numericFields:
|
|
988
|
-
fieldList:
|
|
989
|
-
}) ?
|
|
990
|
-
config:
|
|
986
|
+
numericFields: r,
|
|
987
|
+
fieldList: u
|
|
988
|
+
}) ? a.series = cs({
|
|
989
|
+
config: a,
|
|
991
990
|
layerInfo: n,
|
|
992
991
|
xAxisField: e,
|
|
993
|
-
numericFields:
|
|
992
|
+
numericFields: r,
|
|
994
993
|
aggregationType: i,
|
|
995
994
|
commonStrings: o
|
|
996
|
-
}) :
|
|
997
|
-
config:
|
|
995
|
+
}) : a.series = Ee({
|
|
996
|
+
config: a,
|
|
998
997
|
layerInfo: n,
|
|
999
998
|
xAxisField: e,
|
|
1000
|
-
numericFields:
|
|
999
|
+
numericFields: r,
|
|
1001
1000
|
aggregationType: i,
|
|
1002
1001
|
commonStrings: o
|
|
1003
|
-
}) : l && (
|
|
1004
|
-
config:
|
|
1002
|
+
}) : l && (a.series = us({
|
|
1003
|
+
config: a,
|
|
1005
1004
|
layerInfo: n,
|
|
1006
1005
|
splitByField: t,
|
|
1007
1006
|
xAxisField: e,
|
|
1008
|
-
numericFields:
|
|
1007
|
+
numericFields: r,
|
|
1009
1008
|
aggregationType: i,
|
|
1010
1009
|
commonStrings: o,
|
|
1011
1010
|
splitByFieldInfos: l
|
|
1012
|
-
})), x &&
|
|
1013
|
-
const h = R(
|
|
1014
|
-
|
|
1011
|
+
})), x && e !== U && a.series[0].type !== T.HeatSeries) {
|
|
1012
|
+
const h = R(u, e);
|
|
1013
|
+
$(a, 0, h);
|
|
1015
1014
|
}
|
|
1016
|
-
if (F &&
|
|
1015
|
+
if (F && a.series[0].type !== T.HeatSeries) {
|
|
1017
1016
|
const h = ye({
|
|
1018
|
-
config:
|
|
1017
|
+
config: a,
|
|
1019
1018
|
layerInfo: n,
|
|
1020
1019
|
commonStrings: o,
|
|
1021
|
-
numericFields:
|
|
1020
|
+
numericFields: r,
|
|
1022
1021
|
aggregationType: i
|
|
1023
1022
|
});
|
|
1024
|
-
|
|
1023
|
+
$(a, 1, h);
|
|
1025
1024
|
}
|
|
1026
|
-
if (S &&
|
|
1027
|
-
const h =
|
|
1028
|
-
Et(h,
|
|
1025
|
+
if (S && a.title && (a.title.content.text = K(a, n, o)), D({ config: a, value: null, axisIndex: 1, isMax: !1 }), D({ config: a, value: null, axisIndex: 1, isMax: !0 }), ls({ numericFields: r, aggregationType: i, config: a, layerInfo: n }), (C || B) && (D({ config: a, value: null, axisIndex: 0, isMax: !1 }), D({ config: a, value: null, axisIndex: 0, isMax: !0 }), A && i !== v.NoAggregation && !W(p))) {
|
|
1026
|
+
const h = q(c) ? H.Null : H.Interpolate;
|
|
1027
|
+
Et(h, a);
|
|
1029
1028
|
}
|
|
1030
|
-
W(
|
|
1031
|
-
y && delete h.query, I(h) && h.binTemporalData === void 0 &&
|
|
1029
|
+
W(a) && Re({ commonStrings: o, config: a, layerInfo: n }), a.series.forEach((h) => {
|
|
1030
|
+
y && delete h.query, I(h) && h.binTemporalData === void 0 && c?.type === Oe.TimeOnly && (h.binTemporalData = !1);
|
|
1032
1031
|
});
|
|
1033
1032
|
}, Me = (s, e) => {
|
|
1034
1033
|
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 = {
|
|
@@ -1036,60 +1035,60 @@ const Ni = (s) => {
|
|
|
1036
1035
|
color: s.markerSymbol?.color
|
|
1037
1036
|
});
|
|
1038
1037
|
}, Oi = (s) => {
|
|
1039
|
-
const { config: e, seriesIndex: t, layerInfo:
|
|
1038
|
+
const { config: e, seriesIndex: t, layerInfo: r, commonStrings: i } = s, a = e.series?.[t], n = re(e);
|
|
1040
1039
|
let o;
|
|
1041
|
-
if (
|
|
1040
|
+
if (ee(e.series) === w.BarAndLineFromFields)
|
|
1042
1041
|
o = i.axisLabels.values;
|
|
1043
1042
|
else if (Ye(n)) {
|
|
1044
|
-
const
|
|
1045
|
-
|
|
1043
|
+
const u = a.query?.outStatistics?.[0]?.onStatisticField;
|
|
1044
|
+
u !== void 0 && u !== j(r.layer).idField && (o = R(r.layerFieldsInfo, u));
|
|
1046
1045
|
} else {
|
|
1047
|
-
const
|
|
1046
|
+
const u = String(qe(a)).trim().replace(/'/gu, "");
|
|
1048
1047
|
o = Ne({
|
|
1049
|
-
queryObject:
|
|
1048
|
+
queryObject: r.layer,
|
|
1050
1049
|
fieldName: n,
|
|
1051
|
-
fieldValue:
|
|
1052
|
-
}) ??
|
|
1050
|
+
fieldValue: u ?? ""
|
|
1051
|
+
}) ?? u;
|
|
1053
1052
|
}
|
|
1054
|
-
return o ??
|
|
1053
|
+
return o ?? a.id;
|
|
1055
1054
|
}, Vi = (s, e) => {
|
|
1056
1055
|
if (W(e))
|
|
1057
1056
|
ss(s, e);
|
|
1058
1057
|
else {
|
|
1059
1058
|
e.orderOptions ??= {};
|
|
1060
1059
|
const t = e.orderOptions?.data?.orderType;
|
|
1061
|
-
de(e)[0] ===
|
|
1060
|
+
de(e)[0] === oe.customSort && t === L.Category && (e.orderOptions.data = {
|
|
1062
1061
|
orderType: L.Category,
|
|
1063
1062
|
orderBy: [...s]
|
|
1064
1063
|
});
|
|
1065
1064
|
}
|
|
1066
1065
|
}, ki = async (s) => {
|
|
1067
|
-
const { config: e, layerInfo: t, errorStrings:
|
|
1066
|
+
const { config: e, layerInfo: t, errorStrings: r } = s, i = P(e), a = Le(e)?.type, n = Z(e), o = ee(e.series);
|
|
1068
1067
|
let l = [];
|
|
1069
|
-
return
|
|
1068
|
+
return a === T.CategoryAxisFormat && (o === w.BarAndLineFromFields || i === U ? l = n.map((u) => R(t?.layerFieldsInfo, u)) : i.trim() !== "" && i !== U && t !== void 0 && (l = await He({
|
|
1070
1069
|
layerInfo: t,
|
|
1071
1070
|
config: e,
|
|
1072
1071
|
category: i,
|
|
1073
|
-
errorStrings:
|
|
1072
|
+
errorStrings: r
|
|
1074
1073
|
}))), l;
|
|
1075
1074
|
};
|
|
1076
|
-
function
|
|
1077
|
-
const
|
|
1078
|
-
return
|
|
1075
|
+
function ne(s, e, t) {
|
|
1076
|
+
const r = K(s, e, t), i = qt(s), a = se(s);
|
|
1077
|
+
return r === i || a;
|
|
1079
1078
|
}
|
|
1080
1079
|
function $e(s, e, t) {
|
|
1081
|
-
const
|
|
1080
|
+
const r = ye({
|
|
1082
1081
|
config: s,
|
|
1083
1082
|
layerInfo: e,
|
|
1084
1083
|
commonStrings: t,
|
|
1085
|
-
numericFields:
|
|
1084
|
+
numericFields: Z(s),
|
|
1086
1085
|
aggregationType: we(s)
|
|
1087
|
-
}), i =
|
|
1088
|
-
return
|
|
1086
|
+
}), i = ie(1, s), a = se(s);
|
|
1087
|
+
return r === i || a;
|
|
1089
1088
|
}
|
|
1090
|
-
function ds(s
|
|
1091
|
-
const t = R(
|
|
1092
|
-
return
|
|
1089
|
+
function ds(s) {
|
|
1090
|
+
const { config: e, layerInfo: t, commonStrings: r } = s, i = R(t.layerFieldsInfo, P(e)), a = ie(0, e), n = se(e), o = P(e) === U && (a === "" || a === r.xAxis);
|
|
1091
|
+
return i === a || n || o;
|
|
1093
1092
|
}
|
|
1094
1093
|
function Ri(s) {
|
|
1095
1094
|
return I(s.series[0]) ? s.series[0].binTemporalData ?? !0 : !1;
|
|
@@ -1112,7 +1111,7 @@ export {
|
|
|
1112
1111
|
Ni as C,
|
|
1113
1112
|
Ri as D,
|
|
1114
1113
|
qi as E,
|
|
1115
|
-
|
|
1114
|
+
K as F,
|
|
1116
1115
|
Re as G,
|
|
1117
1116
|
Jt as H,
|
|
1118
1117
|
_s as I,
|
|
@@ -1149,8 +1148,8 @@ export {
|
|
|
1149
1148
|
si as ab,
|
|
1150
1149
|
li as ac,
|
|
1151
1150
|
is as ad,
|
|
1152
|
-
|
|
1153
|
-
|
|
1151
|
+
ci as ae,
|
|
1152
|
+
ui as af,
|
|
1154
1153
|
di as ag,
|
|
1155
1154
|
yi as ah,
|
|
1156
1155
|
mi as ai,
|
|
@@ -1161,8 +1160,8 @@ export {
|
|
|
1161
1160
|
fi as an,
|
|
1162
1161
|
ws as b,
|
|
1163
1162
|
Ps as c,
|
|
1164
|
-
|
|
1165
|
-
|
|
1163
|
+
Z as d,
|
|
1164
|
+
re as e,
|
|
1166
1165
|
Ws as f,
|
|
1167
1166
|
we as g,
|
|
1168
1167
|
Oi as h,
|