@arcgis/charts-components 5.2.0-next.65 → 5.2.0-next.67
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/{XCSDBTBL.js → 3NDQG26H.js} +1 -1
- package/dist/cdn/3SXAM2RQ.js +2 -0
- package/dist/cdn/{25YKUXSB.js → 3VCCFFA5.js} +1 -1
- package/dist/cdn/{KNVQY6ET.js → 423BMEZZ.js} +1 -1
- package/dist/cdn/{5WWQNPXJ.js → 4AG2K75I.js} +1 -1
- package/dist/cdn/{COLQXDK7.js → 4STXGWZC.js} +1 -1
- package/dist/cdn/{QO6DZX5X.js → 5EITERNU.js} +1 -1
- package/dist/cdn/{6EO2NURO.js → 5F57WKC5.js} +1 -1
- package/dist/cdn/{GEET3CQC.js → 5YLWW4AL.js} +1 -1
- package/dist/cdn/{5S6KE7ZK.js → 6CYWDDEH.js} +1 -1
- package/dist/cdn/{ML3E4VVC.js → 7QDRO7G4.js} +1 -1
- package/dist/cdn/{LX7DEKHW.js → A6WH2SX7.js} +1 -1
- package/dist/cdn/{AYQ4HHL6.js → ASYRUV4T.js} +1 -1
- package/dist/cdn/{TNP5SEQB.js → BCWC6W6C.js} +1 -1
- package/dist/cdn/{C4ECGYJQ.js → BDVUD66T.js} +1 -1
- package/dist/cdn/{GF6SKP3D.js → BJIZMJPY.js} +1 -1
- package/dist/cdn/{JCHZJK2Y.js → BMXVB7A7.js} +1 -1
- package/dist/cdn/{H574T3WF.js → BOVXYSZZ.js} +20 -20
- package/dist/cdn/{2MAAPBYT.js → BXYB6KDL.js} +1 -1
- package/dist/cdn/{YWRJTKES.js → CE737BXZ.js} +1 -1
- package/dist/cdn/{TVORVJGE.js → CRNIOME2.js} +1 -1
- package/dist/cdn/{MIJFC5AH.js → CYGRQATX.js} +1 -1
- package/dist/cdn/{BASOJPOL.js → DAPZKYDA.js} +1 -1
- package/dist/cdn/{TTP4J64D.js → DBHGUPI3.js} +1 -1
- package/dist/cdn/{JFGIGXOO.js → DLKGXIGE.js} +1 -1
- package/dist/cdn/{5QYGNJZZ.js → DWYUDHNF.js} +1 -1
- package/dist/cdn/{7YYGELLZ.js → EIYPD7LX.js} +1 -1
- package/dist/cdn/{DQXO7PWX.js → EVJJ3M3H.js} +1 -1
- package/dist/cdn/{KRQLN2QY.js → FD6XLDC3.js} +1 -1
- package/dist/cdn/{WW7VTR4G.js → FHKECIDV.js} +1 -1
- package/dist/cdn/{U2B6RADM.js → FIUWGM5F.js} +1 -1
- package/dist/cdn/{5SQUKJMS.js → GYERZTZC.js} +1 -1
- package/dist/cdn/{VXPINEQQ.js → GZW2J5BB.js} +1 -1
- package/dist/cdn/{BQB66RIJ.js → HFN2JW2Y.js} +1 -1
- package/dist/cdn/{HLFZHWSK.js → HIIT5JYP.js} +1 -1
- package/dist/cdn/{WHL2M7QL.js → HITCAMI5.js} +1 -1
- package/dist/cdn/{X32ZF5ZW.js → HK7L4KW5.js} +1 -1
- package/dist/cdn/{3OPHROOV.js → HQRQMNS3.js} +1 -1
- package/dist/cdn/{ER3EOKSB.js → HY7QBK5Q.js} +1 -1
- package/dist/cdn/I5T73GQO.js +3 -0
- package/dist/cdn/{CR3AO65Y.js → JE7HHPRA.js} +1 -1
- package/dist/cdn/{YM3PEBYW.js → JJVBR3P7.js} +1 -1
- package/dist/cdn/{NVHBKDPY.js → JR4XDV5M.js} +1 -1
- package/dist/cdn/{BDHKWS47.js → K2BKBWOE.js} +1 -1
- package/dist/cdn/{EC74URPL.js → KPYAHOEF.js} +1 -1
- package/dist/cdn/{6VNIZLPT.js → LDLGRKYX.js} +1 -1
- package/dist/cdn/{HKUVYTBA.js → LFKT5OKL.js} +1 -1
- package/dist/cdn/{PGO2EPCC.js → LJMPMWML.js} +1 -1
- package/dist/cdn/{RFDSBNKF.js → LQUC2OYQ.js} +1 -1
- package/dist/cdn/{TH2NZINL.js → M5QUJQPF.js} +1 -1
- package/dist/cdn/{RCI3EBQ4.js → MHJLTIS5.js} +1 -1
- package/dist/cdn/{PN62LQYN.js → MLC52WUK.js} +1 -1
- package/dist/cdn/{7QCFIGAG.js → MQG7NVTD.js} +1 -1
- package/dist/cdn/{MDYXKBBD.js → NEZLKPY2.js} +1 -1
- package/dist/cdn/{KCES2YBJ.js → NIJ4EHI5.js} +1 -1
- package/dist/cdn/{KQVRPDUR.js → NM4OO5YU.js} +1 -1
- package/dist/cdn/{WGKEYRHI.js → NO4VCKIK.js} +1 -1
- package/dist/cdn/{LVKFQ36J.js → NYZ237BW.js} +1 -1
- package/dist/cdn/{K2PVH6WC.js → OPADFZDX.js} +1 -1
- package/dist/cdn/{B2NT7BMA.js → OSVQNJ2P.js} +1 -1
- package/dist/cdn/{QH67KX5R.js → P6L3V5ZK.js} +2 -2
- package/dist/cdn/{FZJIUJA5.js → PL7MI5YT.js} +1 -1
- package/dist/cdn/{SR3ZVQU3.js → Q6BX3XAH.js} +1 -1
- package/dist/cdn/{NTDDQAKJ.js → QJWTSQQU.js} +1 -1
- package/dist/cdn/{PJTM63EA.js → RF5ZHOUK.js} +1 -1
- package/dist/cdn/{6KVXTLIC.js → RI756YEJ.js} +1 -1
- package/dist/cdn/{M5ZGHJP4.js → RJ2Y7JHV.js} +1 -1
- package/dist/cdn/{EMJQHL2T.js → RJ7YN4N5.js} +1 -1
- package/dist/cdn/{5ULER4YN.js → RPNCN55D.js} +1 -1
- package/dist/cdn/{6OOWQDFB.js → RUYG5XKF.js} +1 -1
- package/dist/cdn/{743FPGT4.js → RV7GNNST.js} +1 -1
- package/dist/cdn/{SZKPEUN5.js → S43LUG32.js} +1 -1
- package/dist/cdn/{BUN3G5US.js → S5TDCVHM.js} +1 -1
- package/dist/cdn/{JGGBN4YB.js → SE6CNVZX.js} +1 -1
- package/dist/cdn/{QPY7Y5TQ.js → SJLIHX7G.js} +1 -1
- package/dist/cdn/{Q3JWIFPJ.js → T4OM7MKJ.js} +1 -1
- package/dist/cdn/{GPPFULKZ.js → U3IW423I.js} +1 -1
- package/dist/cdn/{2KKIGZQN.js → U4O47D36.js} +1 -1
- package/dist/cdn/{IRG22MBH.js → UJRTXJNX.js} +1 -1
- package/dist/cdn/{WJVFKW47.js → UPTO3LTH.js} +1 -1
- package/dist/cdn/USNJZCHH.js +2 -0
- package/dist/cdn/{54XEAJ7U.js → V3M6E7SI.js} +1 -1
- package/dist/cdn/{DBL7YAA3.js → V5OAZMFF.js} +1 -1
- package/dist/cdn/{WMUPNT4Q.js → WDMYVS4F.js} +1 -1
- package/dist/cdn/{5LWQLRYG.js → WFMWMNU7.js} +1 -1
- package/dist/cdn/{FQXTBPWM.js → X3S24JSK.js} +1 -1
- package/dist/cdn/{R6DTHFYW.js → XPZCZV3I.js} +1 -1
- package/dist/cdn/{B5EBQSZO.js → ZBNB5IAL.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/index.js +1 -1
- package/dist/chunks/index2.js +3136 -3029
- package/dist/chunks/index4.js +11 -7
- package/dist/chunks/serial-chart-data.js +434 -428
- package/dist/components/arcgis-chart/customElement.d.ts +247 -69
- package/dist/components/arcgis-chart/customElement.js +2301 -2301
- 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/dist/utils/chart-config/utils/index.d.ts +2 -2
- package/dist/utils/data/index.d.ts +7 -7
- package/dist/utils/defaults/interfaces.d.ts +1 -1
- package/dist/utils/layer/query-features/index.d.ts +7 -3
- package/dist/utils/layer/query-parser/index.d.ts +6 -3
- package/package.json +5 -5
- package/dist/cdn/SCU3SBSN.js +0 -2
- package/dist/cdn/SUUDJODL.js +0 -2
- package/dist/cdn/XHLNNBJC.js +0 -3
- /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
|
|
7
|
-
import { a as
|
|
8
|
-
import { u as T, r as v, k as Ft, d as k, n as L, m 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 Y, 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
|
+
import { u as T, r as v, k as Ft, d as k, n as L, m as W, 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 H, 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,20 +59,20 @@ 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) => {
|
|
68
68
|
let e;
|
|
69
|
-
return
|
|
69
|
+
return Y(s) ? e = s.outTimeZone : s?.series.forEach((t) => {
|
|
70
70
|
(t.type === T.BarSeries || t.type === T.RadarSeries || t.type === T.LineSeries) && t.temporalBinning && (e = t.temporalBinning.outTimeZone);
|
|
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
|
-
|
|
75
|
-
(
|
|
74
|
+
Y(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,97 +109,100 @@ 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
126
|
returnFeaturesExtent: c,
|
|
127
|
-
|
|
127
|
+
returnStatisticsAggregatedIds: p,
|
|
128
|
+
chartLimits: f
|
|
128
129
|
} = s;
|
|
129
|
-
let
|
|
130
|
-
const
|
|
130
|
+
let u = [], m;
|
|
131
|
+
const d = J(t), y = d.series[0], g = rt({
|
|
131
132
|
queryObject: e,
|
|
132
|
-
chartConfig:
|
|
133
|
+
chartConfig: d,
|
|
133
134
|
runtimeDataFilters: n,
|
|
134
135
|
ignoreViewExtent: o
|
|
135
136
|
});
|
|
136
|
-
if (
|
|
137
|
-
xAxisValueFormatType: ot(
|
|
137
|
+
if (g.outStatistics?.[0]?.outStatisticFieldName && (g.outStatistics[0].outStatisticFieldName = Bt.outStatistics.outStatisticFieldName), I(y) && nt({
|
|
138
|
+
xAxisValueFormatType: ot(d),
|
|
138
139
|
setTimeBinningInfoWhenNotProvided: l,
|
|
139
140
|
seriesConfig: y,
|
|
140
141
|
queryObject: e
|
|
141
|
-
}) && lt(
|
|
142
|
-
const { temporalBinning:
|
|
143
|
-
chartConfig:
|
|
144
|
-
queryConfig:
|
|
142
|
+
}) && lt(r, e)) {
|
|
143
|
+
const { temporalBinning: F, x: h } = y, { uniqueQuery: S } = fe({
|
|
144
|
+
chartConfig: d,
|
|
145
|
+
queryConfig: g,
|
|
145
146
|
queryObject: e,
|
|
146
147
|
setTimeBinningInfoWhenNotProvided: l,
|
|
147
148
|
returnFeaturesExtent: c,
|
|
148
|
-
chartLimits:
|
|
149
|
-
}),
|
|
150
|
-
|
|
149
|
+
chartLimits: f
|
|
150
|
+
}), b = t.axes?.[0].valueFormat.type === T.DateAxisFormat ? t.axes[0].valueFormat.intlOptions.timeZone : void 0;
|
|
151
|
+
m = await ct({
|
|
151
152
|
queryObject: e,
|
|
152
|
-
dateField:
|
|
153
|
-
splitByField:
|
|
154
|
-
queryConfig:
|
|
155
|
-
axisTimeZone:
|
|
156
|
-
temporalBinning:
|
|
153
|
+
dateField: h,
|
|
154
|
+
splitByField: r,
|
|
155
|
+
queryConfig: S,
|
|
156
|
+
axisTimeZone: b,
|
|
157
|
+
temporalBinning: F,
|
|
158
|
+
returnStatisticsAggregatedIds: p,
|
|
157
159
|
errorStrings: i,
|
|
158
|
-
abortSignal:
|
|
159
|
-
}),
|
|
160
|
+
abortSignal: a
|
|
161
|
+
}), u = Array.from(
|
|
160
162
|
new Set(
|
|
161
|
-
|
|
162
|
-
const { stackedAttributes:
|
|
163
|
-
let
|
|
164
|
-
return
|
|
163
|
+
m.flatMap((C) => {
|
|
164
|
+
const { stackedAttributes: B } = C;
|
|
165
|
+
let A = [];
|
|
166
|
+
return B && (A = B.map((x) => x[r]).filter((x) => x !== void 0)), A;
|
|
165
167
|
})
|
|
166
168
|
).values()
|
|
167
169
|
);
|
|
168
170
|
} else {
|
|
169
|
-
const { uniqueQuery:
|
|
170
|
-
chartConfig:
|
|
171
|
+
const { uniqueQuery: F } = fe({
|
|
172
|
+
chartConfig: d,
|
|
171
173
|
queryObject: e,
|
|
172
|
-
queryConfig:
|
|
174
|
+
queryConfig: g,
|
|
173
175
|
setTimeBinningInfoWhenNotProvided: l,
|
|
174
176
|
returnFeaturesExtent: c,
|
|
175
|
-
chartLimits:
|
|
176
|
-
}), { elementCount:
|
|
177
|
-
chartConfig:
|
|
177
|
+
chartLimits: f
|
|
178
|
+
}), { elementCount: h } = await ut({
|
|
179
|
+
chartConfig: d,
|
|
178
180
|
queryObject: e,
|
|
179
|
-
queryConfig:
|
|
180
|
-
behaviorAfterLimit:
|
|
181
|
-
numberMaxOfFeaturesToFetch:
|
|
182
|
-
abortSignal:
|
|
181
|
+
queryConfig: g,
|
|
182
|
+
behaviorAfterLimit: f?.behaviorAfterLimit,
|
|
183
|
+
numberMaxOfFeaturesToFetch: F.num,
|
|
184
|
+
abortSignal: a
|
|
183
185
|
});
|
|
184
|
-
|
|
186
|
+
m = await dt({
|
|
185
187
|
queryObject: e,
|
|
186
|
-
queryConfig:
|
|
187
|
-
featureCount:
|
|
188
|
+
queryConfig: F,
|
|
189
|
+
featureCount: h,
|
|
190
|
+
returnStatisticsAggregatedIds: p,
|
|
188
191
|
errorStrings: i,
|
|
189
|
-
abortSignal:
|
|
190
|
-
}),
|
|
192
|
+
abortSignal: a
|
|
193
|
+
}), u = Array.from(
|
|
191
194
|
new Set(
|
|
192
|
-
|
|
195
|
+
m.map((S) => S.attributes[r]).filter((S) => S !== void 0)
|
|
193
196
|
).values()
|
|
194
197
|
);
|
|
195
198
|
}
|
|
196
|
-
return { allValues:
|
|
199
|
+
return { allValues: u, preFetchedQueryResponse: m };
|
|
197
200
|
}
|
|
198
201
|
function Kt(s, e) {
|
|
199
202
|
const t = /* @__PURE__ */ new Map();
|
|
200
|
-
return s.series.forEach((
|
|
203
|
+
return s.series.forEach((r) => {
|
|
201
204
|
let i = me({
|
|
202
|
-
where:
|
|
205
|
+
where: r.query?.where,
|
|
203
206
|
// normalize the value so it matches what we get from getAllValues()
|
|
204
207
|
// Refer to https://devtopia.esri.com/WebGIS/arcgis-charts/issues/8127
|
|
205
208
|
normalize: !0,
|
|
@@ -208,93 +211,95 @@ function Kt(s, e) {
|
|
|
208
211
|
escape: !1
|
|
209
212
|
});
|
|
210
213
|
e && i !== null && (i = Number(i));
|
|
211
|
-
const
|
|
212
|
-
|
|
213
|
-
...t.get(
|
|
214
|
+
const a = Ve([r]);
|
|
215
|
+
a !== void 0 && t.set(a, [
|
|
216
|
+
...t.get(a) ?? [],
|
|
214
217
|
i
|
|
215
218
|
]);
|
|
216
219
|
}), t;
|
|
217
220
|
}
|
|
218
221
|
function Zt(s) {
|
|
219
|
-
const { allValues: e, configUniqueValuesPerSeriesType: t, initialConfigWasEmpty:
|
|
220
|
-
return Array.from(t.keys()).forEach((
|
|
221
|
-
const n = t.get(
|
|
222
|
+
const { allValues: e, configUniqueValuesPerSeriesType: t, initialConfigWasEmpty: r } = s, i = /* @__PURE__ */ new Map();
|
|
223
|
+
return Array.from(t.keys()).forEach((a) => {
|
|
224
|
+
const n = t.get(a) ?? [];
|
|
222
225
|
let o = [];
|
|
223
|
-
|
|
226
|
+
r ? o = e : e.forEach((l) => {
|
|
224
227
|
n.includes(l) || o.push(l);
|
|
225
|
-
}), i.set(
|
|
228
|
+
}), i.set(a, o);
|
|
226
229
|
}), i;
|
|
227
230
|
}
|
|
228
231
|
function _t(s) {
|
|
229
|
-
const { chartConfig: e, missingValue: t, splitByField:
|
|
232
|
+
const { chartConfig: e, missingValue: t, splitByField: r, seriesTemplate: i } = s, a = JSON.parse(
|
|
230
233
|
JSON.stringify({
|
|
231
234
|
...e.series[0],
|
|
232
235
|
...i
|
|
233
236
|
})
|
|
234
237
|
);
|
|
235
|
-
if (
|
|
236
|
-
if (t === null ?
|
|
237
|
-
const o =
|
|
238
|
-
|
|
238
|
+
if (a.query) {
|
|
239
|
+
if (t === null ? a.id = H.nullValue : t === "" ? a.id = H.emptyStringValue : a.id = `${t}`, a.name = `${t}`, a.query.outStatistics?.[0] !== void 0) {
|
|
240
|
+
const o = a.id;
|
|
241
|
+
a.query.outStatistics[0].outStatisticFieldName = o, "y" in a && (a.y = o);
|
|
239
242
|
}
|
|
240
243
|
const n = typeof t == "number" || t === null ? t : `'${t}'`;
|
|
241
|
-
|
|
244
|
+
a.query.where = `${r}=${n}`;
|
|
242
245
|
}
|
|
243
|
-
return
|
|
246
|
+
return a;
|
|
244
247
|
}
|
|
245
248
|
async function Qt(s) {
|
|
246
249
|
const {
|
|
247
250
|
updateSplitBySeries: e,
|
|
248
251
|
config: t,
|
|
249
|
-
queryObject:
|
|
252
|
+
queryObject: r,
|
|
250
253
|
errorStrings: i,
|
|
251
|
-
abortSignal:
|
|
254
|
+
abortSignal: a,
|
|
252
255
|
runtimeDataFilters: n,
|
|
253
256
|
ignoreViewExtent: o,
|
|
254
257
|
setTimeBinningInfoWhenNotProvided: l,
|
|
255
258
|
returnFeaturesExtent: c,
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
t.series.length === 0
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
259
|
+
returnStatisticsAggregatedIds: p,
|
|
260
|
+
chartLimits: f
|
|
261
|
+
} = s, { seriesTemplate: u } = e ?? {};
|
|
262
|
+
let m;
|
|
263
|
+
if (r && !ue(r) && e !== void 0 && t !== void 0 && (t.series.length > 0 || u !== void 0) && e.addMissingSeries) {
|
|
264
|
+
const d = t.series.length === 0;
|
|
265
|
+
t.series.length === 0 && u !== void 0 && t.series.push(u);
|
|
266
|
+
const y = ee(t.series);
|
|
267
|
+
if (y === w.BoxPlotMonoFieldAndSplitBy || y === w.BoxPlotMultiFieldsAndSplitBy || y === w.BoxPlotMonoFieldAndCategoryAndSplitBy || y === w.BarAndLineSplitBy || y === w.BarAndLineSplitByNoAggregation) {
|
|
268
|
+
const g = et(t.series[0]?.query?.where), F = tt(r), h = st(g, F), S = h ? it(h) : !1, b = await jt({
|
|
269
|
+
queryObject: r,
|
|
266
270
|
chartConfig: t,
|
|
267
|
-
splitByField:
|
|
268
|
-
abortSignal:
|
|
271
|
+
splitByField: g,
|
|
272
|
+
abortSignal: a,
|
|
269
273
|
runtimeDataFilters: n,
|
|
270
274
|
ignoreViewExtent: o,
|
|
271
275
|
setTimeBinningInfoWhenNotProvided: l,
|
|
272
276
|
returnFeaturesExtent: c,
|
|
273
|
-
|
|
277
|
+
returnStatisticsAggregatedIds: p,
|
|
278
|
+
chartLimits: f,
|
|
274
279
|
errorStrings: i
|
|
275
|
-
}), { allValues:
|
|
276
|
-
if ({ preFetchedQueryResponse:
|
|
277
|
-
const
|
|
278
|
-
allValues:
|
|
279
|
-
configUniqueValuesPerSeriesType:
|
|
280
|
-
initialConfigWasEmpty:
|
|
280
|
+
}), { allValues: C } = b;
|
|
281
|
+
if ({ preFetchedQueryResponse: m } = b, C.length > 0) {
|
|
282
|
+
const B = Kt(t, S), A = Zt({
|
|
283
|
+
allValues: C,
|
|
284
|
+
configUniqueValuesPerSeriesType: B,
|
|
285
|
+
initialConfigWasEmpty: d
|
|
281
286
|
});
|
|
282
|
-
Array.from(
|
|
283
|
-
(
|
|
287
|
+
Array.from(A.keys()).forEach((x) => {
|
|
288
|
+
(A.get(x) ?? []).forEach((N) => {
|
|
284
289
|
t.series.push(
|
|
285
290
|
_t({
|
|
286
291
|
chartConfig: t,
|
|
287
|
-
seriesTemplate:
|
|
288
|
-
missingValue:
|
|
289
|
-
splitByField:
|
|
292
|
+
seriesTemplate: u,
|
|
293
|
+
missingValue: N,
|
|
294
|
+
splitByField: g
|
|
290
295
|
})
|
|
291
296
|
);
|
|
292
|
-
}),
|
|
297
|
+
}), d && t.series.shift();
|
|
293
298
|
});
|
|
294
299
|
}
|
|
295
300
|
}
|
|
296
301
|
}
|
|
297
|
-
return
|
|
302
|
+
return m;
|
|
298
303
|
}
|
|
299
304
|
function zt(s, e) {
|
|
300
305
|
e && !De(e) && (e = Je({ chartConfig: e, queryObject: s }));
|
|
@@ -303,89 +308,91 @@ async function Ys(s) {
|
|
|
303
308
|
const {
|
|
304
309
|
configToAlter: e,
|
|
305
310
|
layer: t,
|
|
306
|
-
addMissingSeries:
|
|
311
|
+
addMissingSeries: r,
|
|
307
312
|
updateSplitBySeries: i,
|
|
308
|
-
chartContainer:
|
|
313
|
+
chartContainer: a,
|
|
309
314
|
queryObject: n,
|
|
310
315
|
abortSignal: o,
|
|
311
316
|
runtimeDataFilters: l,
|
|
312
317
|
ignoreViewExtent: c,
|
|
313
318
|
setTimeBinningInfoWhenNotProvided: p,
|
|
314
|
-
returnFeaturesExtent:
|
|
315
|
-
|
|
316
|
-
|
|
319
|
+
returnFeaturesExtent: f,
|
|
320
|
+
returnStatisticsAggregatedIds: u,
|
|
321
|
+
chartLimits: m,
|
|
322
|
+
timeZone: d,
|
|
317
323
|
errorStrings: y
|
|
318
324
|
} = s;
|
|
319
|
-
let
|
|
320
|
-
return
|
|
325
|
+
let g = e, F;
|
|
326
|
+
return g && (zt(t, g), g = await Nt(g, t, void 0, o), r && n && (F = await Qt({
|
|
321
327
|
updateSplitBySeries: i,
|
|
322
|
-
config:
|
|
328
|
+
config: g,
|
|
323
329
|
queryObject: n,
|
|
324
330
|
errorStrings: y,
|
|
325
331
|
abortSignal: o,
|
|
326
332
|
runtimeDataFilters: l,
|
|
327
333
|
ignoreViewExtent: c,
|
|
328
334
|
setTimeBinningInfoWhenNotProvided: p,
|
|
329
|
-
returnFeaturesExtent:
|
|
330
|
-
|
|
331
|
-
|
|
335
|
+
returnFeaturesExtent: f,
|
|
336
|
+
returnStatisticsAggregatedIds: u,
|
|
337
|
+
chartLimits: m
|
|
338
|
+
})), g = je(g, a), ke(d, g)), { alteredConfig: g, preFetchedQueryResponse: F };
|
|
332
339
|
}
|
|
333
340
|
function Gt(s, e) {
|
|
334
341
|
let t = !1;
|
|
335
342
|
if (e !== void 0) {
|
|
336
|
-
const
|
|
337
|
-
t = Number.isFinite(s[
|
|
343
|
+
const r = at({ key: yt.Average, splitBy: e });
|
|
344
|
+
t = Number.isFinite(s[r]);
|
|
338
345
|
}
|
|
339
346
|
return t;
|
|
340
347
|
}
|
|
341
348
|
function Ws(s) {
|
|
342
|
-
const { data: e, config: t, showEmptySeries:
|
|
349
|
+
const { data: e, config: t, showEmptySeries: r } = s, i = t.series.length, a = J(t);
|
|
343
350
|
let n = !1;
|
|
344
|
-
if (!
|
|
345
|
-
const o = Ze(e), l = Ve(t?.series), c =
|
|
351
|
+
if (!r && i > 1 && e) {
|
|
352
|
+
const o = Ze(e), l = Ve(t?.series), c = ee(t?.series), p = /* @__PURE__ */ new Set();
|
|
346
353
|
switch (l) {
|
|
347
354
|
case T.ComboLineAndBarSeries:
|
|
348
355
|
case T.BarSeries:
|
|
349
356
|
case T.RadarSeries:
|
|
350
357
|
case T.LineSeries: {
|
|
351
|
-
|
|
358
|
+
a.series.forEach((u) => {
|
|
352
359
|
if (Array.isArray(o)) {
|
|
353
360
|
let m = "";
|
|
354
|
-
"y" in
|
|
355
|
-
(
|
|
356
|
-
dataItem:
|
|
357
|
-
x:
|
|
361
|
+
"y" in u && (m = Array.isArray(u.y) ? u.y[0] : u.y, c === w.BarAndLineSplitByNoAggregation && (m = `${m}_${me({ where: u.query?.where, keepSurroundingQuotes: !1, escape: !1 })}`), o.some(
|
|
362
|
+
(y) => Ge({
|
|
363
|
+
dataItem: y,
|
|
364
|
+
x: u.x,
|
|
358
365
|
y: m,
|
|
359
366
|
aggregationType: t.series[0].query?.outStatistics?.[0]?.statisticType
|
|
360
367
|
})
|
|
361
|
-
) && p.add(
|
|
368
|
+
) && p.add(u));
|
|
362
369
|
}
|
|
363
370
|
});
|
|
364
371
|
break;
|
|
365
372
|
}
|
|
366
373
|
case T.BoxPlotSeries: {
|
|
367
374
|
if (_e(t)) {
|
|
368
|
-
const
|
|
375
|
+
const u = Qe(t);
|
|
369
376
|
t.series.forEach((m) => {
|
|
370
|
-
let
|
|
371
|
-
m.type === T.BoxPlotSeries ? (
|
|
372
|
-
(
|
|
373
|
-
dataItem:
|
|
377
|
+
let d, y;
|
|
378
|
+
m.type === T.BoxPlotSeries ? (d = e.dataItems, y = d?.some(
|
|
379
|
+
(g) => ze({
|
|
380
|
+
dataItem: g,
|
|
374
381
|
splitBy: m.query?.where,
|
|
375
|
-
showOutliers:
|
|
382
|
+
showOutliers: u
|
|
376
383
|
})
|
|
377
|
-
)) : m.type === T.LineSeries && (
|
|
378
|
-
(
|
|
379
|
-
)),
|
|
384
|
+
)) : m.type === T.LineSeries && (d = e.meanLines, y = d?.some(
|
|
385
|
+
(g) => Gt(g, m.query?.where)
|
|
386
|
+
)), y && p.add(m);
|
|
380
387
|
});
|
|
381
388
|
}
|
|
382
389
|
break;
|
|
383
390
|
}
|
|
384
391
|
}
|
|
385
|
-
const
|
|
386
|
-
n =
|
|
392
|
+
const f = Array.from(p.values());
|
|
393
|
+
n = f.length > 0 && f.length < i, n && (a.series = f);
|
|
387
394
|
}
|
|
388
|
-
return { seriesFilteredOut: n, filteredConfig:
|
|
395
|
+
return { seriesFilteredOut: n, filteredConfig: a };
|
|
389
396
|
}
|
|
390
397
|
const Hs = (s) => s.hideEmptyRowsAndColumns, Xs = (s, e) => {
|
|
391
398
|
s.hideEmptyRowsAndColumns = e;
|
|
@@ -396,47 +403,47 @@ const Hs = (s) => s.hideEmptyRowsAndColumns, Xs = (s, e) => {
|
|
|
396
403
|
const t = s.series[0];
|
|
397
404
|
t.gradientRules = e;
|
|
398
405
|
}, Zs = (s) => s.series[0].gradientRules, _s = (s) => {
|
|
399
|
-
const { yField: e, config: t, layerInfo:
|
|
406
|
+
const { yField: e, config: t, layerInfo: r, commonStrings: i } = s, { layerFieldsInfo: a } = r, n = ie(1, t), o = Jt(t), l = se(t), c = t.series[0];
|
|
400
407
|
if (typeof e == "string" && o !== e && c) {
|
|
401
408
|
if (c.y = e, Ut(t), o === n || l) {
|
|
402
|
-
const p = R(
|
|
403
|
-
|
|
409
|
+
const p = R(a, e);
|
|
410
|
+
$(t, 1, p);
|
|
404
411
|
}
|
|
405
|
-
Re({ commonStrings: i, config: t, layerInfo:
|
|
412
|
+
Re({ commonStrings: i, config: t, layerInfo: r });
|
|
406
413
|
}
|
|
407
414
|
}, 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
|
-
|
|
415
|
+
const { binning: e, config: t, commonStrings: r } = s, i = t.series[0];
|
|
416
|
+
if (i.xTemporalBinning = e, e?.unit !== void 0 && e.unit in r.utilsStrings.heatChartCalendarDatePartsUnits) {
|
|
417
|
+
const a = r.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
|
|
418
|
+
$(t, 0, a);
|
|
412
419
|
}
|
|
413
|
-
|
|
420
|
+
G({ axisIndex: 0, commonStrings: r, config: t });
|
|
414
421
|
}, 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
|
-
|
|
422
|
+
const { binning: e, config: t, commonStrings: r } = s, i = t.series[0];
|
|
423
|
+
if (i.yTemporalBinning = e, e?.unit !== void 0 && e.unit in r.utilsStrings.heatChartCalendarDatePartsUnits) {
|
|
424
|
+
const a = r.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
|
|
425
|
+
$(t, 1, a);
|
|
419
426
|
}
|
|
420
|
-
|
|
427
|
+
G({ axisIndex: 1, commonStrings: r, config: t });
|
|
421
428
|
}, ts = (s) => s.series[0].yTemporalBinning, ss = (s, e) => {
|
|
422
429
|
e.orderOptions ??= {};
|
|
423
|
-
const t = e.axes?.[0]?.valueFormat?.type === "category" ? L.Category : L.YValue,
|
|
430
|
+
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
431
|
...e.orderOptions.data ?? {},
|
|
425
432
|
orderType: L.MultiAxes
|
|
426
433
|
};
|
|
427
|
-
|
|
434
|
+
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
435
|
}, Gs = (s, e) => {
|
|
429
436
|
const t = e.series[0];
|
|
430
437
|
t.gridLine && (t.gridLine.width = s);
|
|
431
438
|
}, Js = (s) => s.series[0].gridLine?.width, ei = (s, e) => {
|
|
432
|
-
const t = e.series[0],
|
|
433
|
-
t.gridLine &&
|
|
439
|
+
const t = e.series[0], r = s?.length === 4 && s.every((i) => typeof i == "number");
|
|
440
|
+
t.gridLine && r && (t.gridLine.color = s);
|
|
434
441
|
}, ti = (s) => s.series[0].gridLine?.color, si = (s, e) => {
|
|
435
442
|
const t = e.legend;
|
|
436
443
|
t && (t.position = s);
|
|
437
444
|
}, 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
|
-
|
|
445
|
+
const { field: e, config: t, layerInfo: r, commonStrings: i } = s, a = t.series[0].query?.outStatistics?.[0], n = ne(t, r, i);
|
|
446
|
+
a ? (a.onStatisticField = e, a.outStatisticFieldName = `${a.statisticType}_${e}`) : t.series[0].query = {
|
|
440
447
|
outStatistics: [
|
|
441
448
|
{
|
|
442
449
|
onStatisticField: e,
|
|
@@ -444,13 +451,13 @@ const Hs = (s) => s.hideEmptyRowsAndColumns, Xs = (s, e) => {
|
|
|
444
451
|
statisticType: v.Count
|
|
445
452
|
}
|
|
446
453
|
]
|
|
447
|
-
}, n && t.title && (t.title.content.text =
|
|
454
|
+
}, n && t.title && (t.title.content.text = K(t, r, i));
|
|
448
455
|
}, ni = (s) => s.series[0].query?.outStatistics?.[0].statisticType ?? v.Count, oi = (s) => {
|
|
449
|
-
const { aggregationType: e, config: t, layerInfo:
|
|
450
|
-
|
|
456
|
+
const { aggregationType: e, config: t, layerInfo: r, commonStrings: i } = s, a = t.series[0]?.query?.outStatistics?.[0], n = ne(t, r, i);
|
|
457
|
+
a && e !== v.NoAggregation && (a.statisticType = e, a.outStatisticFieldName = `${e}_${a.onStatisticField}`), (e === v.Count || e === v.Sum) && is(W.Zero, t), n && t.title && (t.title.content.text = K(t, r, i));
|
|
451
458
|
}, li = (s) => s.nullPolicy, is = (s, e) => {
|
|
452
459
|
e.nullPolicy = s;
|
|
453
|
-
},
|
|
460
|
+
}, ci = (s) => s.series[0].emptyCells, ui = (s, e) => {
|
|
454
461
|
e.series[0].emptyCells = s;
|
|
455
462
|
}, di = (s) => s.series[0].emptyCells?.text, yi = (s, e) => {
|
|
456
463
|
e.series[0].emptyCells ? e.series[0].emptyCells.text = s : e.series[0].emptyCells = { text: s };
|
|
@@ -466,11 +473,11 @@ function Fi(s, e) {
|
|
|
466
473
|
mt(e) || (e.viewType = s);
|
|
467
474
|
}
|
|
468
475
|
function xi(s) {
|
|
469
|
-
return s.series[0].classBreaksRules?.breaksCount ??
|
|
476
|
+
return s.series[0].classBreaksRules?.breaksCount ?? H.classBreaks.breaksCount;
|
|
470
477
|
}
|
|
471
478
|
function hi(s, e) {
|
|
472
|
-
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.breaksCount = s ??
|
|
473
|
-
breaksCount: s ??
|
|
479
|
+
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.breaksCount = s ?? H.classBreaks.breaksCount : e.series[0].classBreaksRules = {
|
|
480
|
+
breaksCount: s ?? H.classBreaks.breaksCount
|
|
474
481
|
};
|
|
475
482
|
}
|
|
476
483
|
function Ti(s) {
|
|
@@ -479,7 +486,7 @@ function Ti(s) {
|
|
|
479
486
|
function Bi(s, e) {
|
|
480
487
|
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.classificationMethod = s : e.series[0].classBreaksRules = {
|
|
481
488
|
classificationMethod: s
|
|
482
|
-
}, e.series[0].classBreaksRules.breaksCount = e.series[0].classBreaksRules.breaksCount ??
|
|
489
|
+
}, e.series[0].classBreaksRules.breaksCount = e.series[0].classBreaksRules.breaksCount ?? H.classBreaks.breaksCount;
|
|
483
490
|
}
|
|
484
491
|
function Ci(s, e) {
|
|
485
492
|
e.firstDayOfWeek = s;
|
|
@@ -519,10 +526,10 @@ const as = [
|
|
|
519
526
|
k.MonthOfYear
|
|
520
527
|
], Te = (s) => {
|
|
521
528
|
let e;
|
|
522
|
-
return
|
|
523
|
-
}, Be = (s) =>
|
|
524
|
-
const { axisIndex: e, commonStrings: t, config:
|
|
525
|
-
i !== void 0 &&
|
|
529
|
+
return _(s) ? e = ce() : (q(s) || Q(s)) && (e = z()), e;
|
|
530
|
+
}, Be = (s) => q(s) || Q(s), Ce = (s) => {
|
|
531
|
+
const { axisIndex: e, commonStrings: t, config: r, valueFormat: i } = s, a = r.axes?.[e]?.valueFormat;
|
|
532
|
+
i !== void 0 && a?.type !== i.type && Ie({ config: r, commonStrings: t, valueFormat: i, axisIndex: e });
|
|
526
533
|
}, rs = (s, e) => {
|
|
527
534
|
let t;
|
|
528
535
|
return e === 0 ? t = s.series[0]?.xTemporalBinning : e === 1 && (t = s.series[0]?.yTemporalBinning), t;
|
|
@@ -548,7 +555,7 @@ const as = [
|
|
|
548
555
|
e = { month: "short" };
|
|
549
556
|
break;
|
|
550
557
|
default:
|
|
551
|
-
e =
|
|
558
|
+
e = z().intlOptions;
|
|
552
559
|
break;
|
|
553
560
|
}
|
|
554
561
|
return {
|
|
@@ -556,23 +563,23 @@ const as = [
|
|
|
556
563
|
intlOptions: e
|
|
557
564
|
};
|
|
558
565
|
}, 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 === c || l === be(
|
|
561
|
-
},
|
|
562
|
-
const { axisIndex: e, commonStrings: t, config:
|
|
563
|
-
Ie({ config:
|
|
566
|
+
const { axisIndex: e, binning: t, commonStrings: r, config: i, fieldName: a, layerInfo: n } = s, o = i.series[0], l = ie(e, i), c = R(n.layerFieldsInfo, a);
|
|
567
|
+
e === 0 ? o.xTemporalBinning = t : e === 1 && (o.yTemporalBinning = t), t !== void 0 && (l === "" || l === c || l === be(r, t.unit) || l === r.xAxis) && $(i, e, be(r, t.unit));
|
|
568
|
+
}, G = (s) => {
|
|
569
|
+
const { axisIndex: e, commonStrings: t, config: r } = s, i = rs(r, e), a = i ? ns(i) : void 0;
|
|
570
|
+
Ie({ config: r, commonStrings: t, valueFormat: a, axisIndex: e });
|
|
564
571
|
}, Re = (s) => {
|
|
565
|
-
const { commonStrings: e, config: t, layerInfo:
|
|
572
|
+
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), c = Te(o), p = Be(n) && Be(o), f = _(n) && _(o);
|
|
566
573
|
if (Ce({ axisIndex: 0, commonStrings: e, config: t, valueFormat: l }), Ce({ axisIndex: 1, commonStrings: e, config: t, valueFormat: c }), p) {
|
|
567
|
-
const
|
|
568
|
-
|
|
574
|
+
const u = es(t) === void 0, m = ts(t) === void 0;
|
|
575
|
+
u && (ve({
|
|
569
576
|
axisIndex: 0,
|
|
570
577
|
binning: Ae(0, t.series[0].yTemporalBinning),
|
|
571
578
|
commonStrings: e,
|
|
572
579
|
config: t,
|
|
573
580
|
fieldName: i,
|
|
574
|
-
layerInfo:
|
|
575
|
-
}),
|
|
581
|
+
layerInfo: r
|
|
582
|
+
}), G({
|
|
576
583
|
axisIndex: 0,
|
|
577
584
|
commonStrings: e,
|
|
578
585
|
config: t
|
|
@@ -581,15 +588,15 @@ const as = [
|
|
|
581
588
|
binning: Ae(1, t.series[0].xTemporalBinning),
|
|
582
589
|
commonStrings: e,
|
|
583
590
|
config: t,
|
|
584
|
-
fieldName:
|
|
585
|
-
layerInfo:
|
|
586
|
-
}),
|
|
591
|
+
fieldName: a,
|
|
592
|
+
layerInfo: r
|
|
593
|
+
}), G({
|
|
587
594
|
axisIndex: 1,
|
|
588
595
|
commonStrings: e,
|
|
589
596
|
config: t
|
|
590
597
|
}));
|
|
591
598
|
}
|
|
592
|
-
|
|
599
|
+
f && (t.series[0].xTemporalBinning = void 0, t.series[0].yTemporalBinning = void 0);
|
|
593
600
|
};
|
|
594
601
|
function os(s) {
|
|
595
602
|
const e = {};
|
|
@@ -597,30 +604,30 @@ function os(s) {
|
|
|
597
604
|
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
605
|
}), e.text || e.fillSymbol || e.markerSymbol ? e : void 0;
|
|
599
606
|
}
|
|
600
|
-
function
|
|
601
|
-
const { seriesIndex: e, xAxisField: t, aggregationType:
|
|
607
|
+
function ae(s) {
|
|
608
|
+
const { seriesIndex: e, xAxisField: t, aggregationType: r, config: i, layerInfo: a, commonStrings: n } = s, o = j(a?.layer).idField;
|
|
602
609
|
let l;
|
|
603
610
|
const c = i.series[e ?? 0];
|
|
604
|
-
let p = !1,
|
|
611
|
+
let p = !1, f = !1, u = !1;
|
|
605
612
|
if (c === void 0) {
|
|
606
613
|
const B = i.series;
|
|
607
|
-
p = B.slice(0, e).every((
|
|
614
|
+
p = B.slice(0, e).every((A) => O(A)), f = B.slice(0, e).every((A) => V(A)), u = B.slice(0, e).every((A) => Fe(A));
|
|
608
615
|
} else
|
|
609
|
-
p = O(c),
|
|
616
|
+
p = O(c), f = V(c), u = Fe(c);
|
|
610
617
|
p ? l = bt({
|
|
611
618
|
commonStrings: n,
|
|
612
619
|
seriesIndex: e,
|
|
613
620
|
objectIDField: o
|
|
614
|
-
}) :
|
|
621
|
+
}) : f ? l = At({
|
|
615
622
|
commonStrings: n,
|
|
616
623
|
seriesIndex: e,
|
|
617
624
|
objectIDField: o
|
|
618
|
-
}) :
|
|
625
|
+
}) : u ? l = vt(n, o) : l = It({
|
|
619
626
|
seriesIndex: e,
|
|
620
627
|
objectIDField: o,
|
|
621
628
|
commonStrings: n
|
|
622
629
|
});
|
|
623
|
-
const m = i.series[0]?.dataLabels,
|
|
630
|
+
const m = i.series[0]?.dataLabels, d = "nullCategory" in i.series[0] ? os(i) : void 0, y = "binTemporalData" in i.series[0] ? i.series[0].binTemporalData : void 0, g = "classBreakRules" in i.series[0] ? i.series[0].classBreakRules : void 0, F = "xTemporalBinning" in i.series[0] ? i.series[0].xTemporalBinning : void 0, h = "yTemporalBinning" in i.series[0] ? i.series[0].yTemporalBinning : void 0, S = "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
631
|
...l,
|
|
625
632
|
x: t,
|
|
626
633
|
y: "",
|
|
@@ -630,227 +637,227 @@ function ie(s) {
|
|
|
630
637
|
content: { ...l.dataLabels?.content, ...m?.content, type: Tt.TS },
|
|
631
638
|
visible: m?.visible ?? !1
|
|
632
639
|
},
|
|
633
|
-
...
|
|
634
|
-
...
|
|
635
|
-
...
|
|
640
|
+
...d !== void 0 ? { nullCategory: d } : {},
|
|
641
|
+
...y !== void 0 ? { binTemporalData: y } : {},
|
|
642
|
+
...g !== void 0 ? { classBreakRules: g } : {},
|
|
636
643
|
...F !== void 0 ? { xTemporalBinning: F } : {},
|
|
637
|
-
...
|
|
638
|
-
...
|
|
644
|
+
...h !== void 0 ? { yTemporalBinning: h } : {},
|
|
645
|
+
...S !== void 0 ? { emptyCells: S } : {}
|
|
639
646
|
};
|
|
640
|
-
if (
|
|
647
|
+
if (C.query = {
|
|
641
648
|
groupByFieldsForStatistics: [t],
|
|
642
|
-
...
|
|
643
|
-
},
|
|
644
|
-
const B = `${
|
|
645
|
-
|
|
649
|
+
...b !== void 0 ? { fetchNullValues: b } : {}
|
|
650
|
+
}, r !== v.NoAggregation && o !== void 0) {
|
|
651
|
+
const B = `${r}_${o}_0`.toUpperCase();
|
|
652
|
+
C.y = B, C.query.outStatistics = [
|
|
646
653
|
{
|
|
647
|
-
statisticType:
|
|
654
|
+
statisticType: r,
|
|
648
655
|
onStatisticField: o,
|
|
649
656
|
outStatisticFieldName: B
|
|
650
657
|
}
|
|
651
658
|
];
|
|
652
659
|
}
|
|
653
|
-
if (I(i.series[0]) && I(
|
|
660
|
+
if (I(i.series[0]) && I(C)) {
|
|
654
661
|
let B = wt(i);
|
|
655
|
-
B === le.Quarter && (B = le.Month),
|
|
662
|
+
B === le.Quarter && (B = le.Month), C.temporalBinning = {
|
|
656
663
|
...i.series[0]?.temporalBinning,
|
|
657
664
|
unit: B
|
|
658
665
|
};
|
|
659
666
|
}
|
|
660
|
-
return
|
|
667
|
+
return J(C);
|
|
661
668
|
}
|
|
662
|
-
function
|
|
663
|
-
const { layerFieldsInfo:
|
|
664
|
-
let
|
|
669
|
+
function K(s, e, t) {
|
|
670
|
+
const { layerFieldsInfo: r } = e, { idField: i, isTraditionalTypeOID: a } = j(e.layer), n = P(s), o = Z(s), l = we(s), c = re(s), p = a && (o.length === 0 || o.includes(i)), f = Ct(l, t), u = p ? "" : o.map((S) => R(r ?? [], S)).join(", "), m = R(r ?? [], n), d = R(r ?? [], c), y = s.series.some((S) => M(S)), g = y ? "category" : "xAxisField", F = m;
|
|
671
|
+
let h = "";
|
|
665
672
|
if (ge({
|
|
666
673
|
fieldName: n,
|
|
667
674
|
numericFields: o,
|
|
668
|
-
fieldList:
|
|
675
|
+
fieldList: r
|
|
669
676
|
}))
|
|
670
|
-
|
|
671
|
-
aggregationType:
|
|
672
|
-
aggregationFields:
|
|
677
|
+
h = E(t.titleLabels.aggrTypeOfAggrFields, {
|
|
678
|
+
aggregationType: f,
|
|
679
|
+
aggregationFields: u
|
|
673
680
|
});
|
|
674
681
|
else if (l === v.NoAggregation) {
|
|
675
|
-
const
|
|
682
|
+
const S = p ? i : u;
|
|
676
683
|
if (c === "") {
|
|
677
|
-
const
|
|
678
|
-
|
|
679
|
-
aggregationType:
|
|
680
|
-
[
|
|
684
|
+
const b = y ? "aggrTypeCategory" : "aggrTypeXAxisField";
|
|
685
|
+
h = E(t.titleLabels[b], {
|
|
686
|
+
aggregationType: S,
|
|
687
|
+
[g]: F
|
|
681
688
|
});
|
|
682
689
|
} else {
|
|
683
|
-
const
|
|
684
|
-
|
|
685
|
-
aggregationType:
|
|
686
|
-
[
|
|
687
|
-
splitByField:
|
|
690
|
+
const b = y ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
|
|
691
|
+
h = E(t.titleLabels[b], {
|
|
692
|
+
aggregationType: S,
|
|
693
|
+
[g]: F,
|
|
694
|
+
splitByField: d
|
|
688
695
|
});
|
|
689
696
|
}
|
|
690
697
|
} else if (l === v.Count)
|
|
691
698
|
if (c === "") {
|
|
692
|
-
const
|
|
693
|
-
|
|
694
|
-
aggregationType:
|
|
695
|
-
[
|
|
699
|
+
const S = y ? "aggrTypeCategory" : "aggrTypeXAxisField";
|
|
700
|
+
h = E(t.titleLabels[S], {
|
|
701
|
+
aggregationType: f,
|
|
702
|
+
[g]: F
|
|
696
703
|
});
|
|
697
704
|
} else {
|
|
698
|
-
const
|
|
699
|
-
|
|
700
|
-
aggregationType:
|
|
701
|
-
[
|
|
702
|
-
splitByField:
|
|
705
|
+
const S = y ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
|
|
706
|
+
h = E(t.titleLabels[S], {
|
|
707
|
+
aggregationType: f,
|
|
708
|
+
[g]: F,
|
|
709
|
+
splitByField: d
|
|
703
710
|
});
|
|
704
711
|
}
|
|
705
712
|
else if (c !== "") {
|
|
706
|
-
const
|
|
707
|
-
|
|
708
|
-
aggregationType:
|
|
709
|
-
aggregationField:
|
|
710
|
-
[
|
|
711
|
-
splitByField:
|
|
713
|
+
const S = y ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
|
|
714
|
+
h = E(t.titleLabels[S], {
|
|
715
|
+
aggregationType: f,
|
|
716
|
+
aggregationField: u,
|
|
717
|
+
[g]: F,
|
|
718
|
+
splitByField: d
|
|
712
719
|
});
|
|
713
720
|
} else if (o.length > 0) {
|
|
714
|
-
const
|
|
715
|
-
|
|
716
|
-
aggregationType:
|
|
717
|
-
aggregationFields:
|
|
718
|
-
[
|
|
721
|
+
const S = y ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
|
|
722
|
+
h = E(t.titleLabels[S], {
|
|
723
|
+
aggregationType: f,
|
|
724
|
+
aggregationFields: u,
|
|
725
|
+
[g]: F
|
|
719
726
|
});
|
|
720
727
|
}
|
|
721
|
-
return
|
|
728
|
+
return h;
|
|
722
729
|
}
|
|
723
730
|
const qe = (s) => me({
|
|
724
731
|
where: s.query?.where,
|
|
725
732
|
normalize: !1,
|
|
726
733
|
escape: !1
|
|
727
|
-
}) ?? "", we = (s) => s?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? v.NoAggregation,
|
|
734
|
+
}) ?? "", we = (s) => s?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? v.NoAggregation, re = We(
|
|
728
735
|
(s) => {
|
|
729
736
|
const e = s?.series?.[0]?.query?.where?.split("=")[0].trim() ?? "";
|
|
730
737
|
return gt(s?.series?.[0]?.query?.where) ? "" : e;
|
|
731
738
|
},
|
|
732
739
|
(s) => s?.series?.[0]?.query?.where
|
|
733
|
-
),
|
|
740
|
+
), Z = (s) => {
|
|
734
741
|
let e = [];
|
|
735
|
-
if (
|
|
742
|
+
if (re(s) === "")
|
|
736
743
|
e = s?.series.map((t) => {
|
|
737
|
-
const
|
|
738
|
-
return
|
|
744
|
+
const r = t.query?.outStatistics?.map((i) => i.onStatisticField) ?? [];
|
|
745
|
+
return r?.length > 0 ? r : t.y;
|
|
739
746
|
}).flat() ?? [];
|
|
740
747
|
else {
|
|
741
|
-
const t = s?.series?.[0],
|
|
742
|
-
e =
|
|
748
|
+
const t = s?.series?.[0], r = t?.query?.outStatistics?.[0]?.onStatisticField ?? [t?.y].flat()[0];
|
|
749
|
+
e = r !== void 0 ? [r] : [];
|
|
743
750
|
}
|
|
744
751
|
return e.filter((t) => t !== "");
|
|
745
752
|
};
|
|
746
753
|
function Pe(s) {
|
|
747
|
-
const { splitByField: e, numericFields: t, layer:
|
|
748
|
-
return e === "" ? t[i] ??
|
|
754
|
+
const { splitByField: e, numericFields: t, layer: r, seriesIndex: i } = s, a = j(r).idField ?? "";
|
|
755
|
+
return e === "" ? t[i] ?? a : t[0] ?? a;
|
|
749
756
|
}
|
|
750
757
|
function ls(s) {
|
|
751
|
-
const { numericFields: e, aggregationType: t, config:
|
|
752
|
-
let
|
|
753
|
-
t === v.Count ?
|
|
758
|
+
const { numericFields: e, aggregationType: t, config: r, layerInfo: i } = s;
|
|
759
|
+
let a = !1;
|
|
760
|
+
t === v.Count ? a = !0 : t === v.NoAggregation && (a = e.every((l) => {
|
|
754
761
|
const c = i.layerFieldsInfo.find((p) => p.name === l);
|
|
755
762
|
return c !== void 0 ? xe(c) : !1;
|
|
756
|
-
})), pe(
|
|
757
|
-
const n =
|
|
763
|
+
})), pe(r, 1, a);
|
|
764
|
+
const n = r.series.some((l) => O(l)), o = r.series.some((l) => V(l));
|
|
758
765
|
if (n || o) {
|
|
759
|
-
const l =
|
|
760
|
-
pe(
|
|
766
|
+
const l = P(r), c = i.layerFieldsInfo.find((f) => f.name === l), p = c !== void 0 && xe(c);
|
|
767
|
+
pe(r, 0, p);
|
|
761
768
|
}
|
|
762
769
|
}
|
|
763
770
|
const de = (s) => {
|
|
764
771
|
let e;
|
|
765
|
-
if (
|
|
766
|
-
const t = s.orderOptions?.data?.orderByX ?? [""],
|
|
767
|
-
e = [he(t, i), he(
|
|
772
|
+
if (Y(s)) {
|
|
773
|
+
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;
|
|
774
|
+
e = [he(t, i), he(r, a)];
|
|
768
775
|
} else {
|
|
769
|
-
const t = s.orderOptions?.data?.orderType ?? L.Category,
|
|
770
|
-
e = [St(
|
|
776
|
+
const t = s.orderOptions?.data?.orderType ?? L.Category, r = s.orderOptions?.data && "orderBy" in s.orderOptions.data ? s.orderOptions.data.orderBy : xt.Ascending;
|
|
777
|
+
e = [St(r, t)];
|
|
771
778
|
}
|
|
772
779
|
return e;
|
|
773
780
|
};
|
|
774
|
-
function
|
|
775
|
-
const { xAxisField: e, numericFields: t, aggregationType:
|
|
781
|
+
function cs(s) {
|
|
782
|
+
const { xAxisField: e, numericFields: t, aggregationType: r, config: i, layerInfo: a, commonStrings: n } = s, { layerFieldsInfo: o } = a, l = ae({
|
|
776
783
|
config: i,
|
|
777
784
|
xAxisField: e,
|
|
778
|
-
aggregationType:
|
|
779
|
-
layerInfo:
|
|
785
|
+
aggregationType: r,
|
|
786
|
+
layerInfo: a,
|
|
780
787
|
seriesIndex: 0,
|
|
781
788
|
commonStrings: n
|
|
782
|
-
}), c =
|
|
789
|
+
}), c = te({
|
|
783
790
|
config: i,
|
|
784
791
|
xAxisField: e,
|
|
785
792
|
numericFields: t,
|
|
786
|
-
aggregationType:
|
|
787
|
-
layer:
|
|
793
|
+
aggregationType: r,
|
|
794
|
+
layer: a.layer,
|
|
788
795
|
fieldList: o
|
|
789
|
-
}).name, p =
|
|
796
|
+
}).name, p = P(i), f = Z(i), u = ge({
|
|
790
797
|
fieldName: p,
|
|
791
|
-
numericFields:
|
|
798
|
+
numericFields: f,
|
|
792
799
|
fieldList: o
|
|
793
|
-
}) ? i.series[0] : void 0, m = `series_${Date.now()}`,
|
|
794
|
-
...
|
|
795
|
-
id:
|
|
796
|
-
name:
|
|
797
|
-
x:
|
|
800
|
+
}) ? i.series[0] : void 0, m = `series_${Date.now()}`, d = u?.id ?? m, y = u?.name ?? n.axisLabels.values, F = {
|
|
801
|
+
...u ?? l,
|
|
802
|
+
id: d,
|
|
803
|
+
name: y,
|
|
804
|
+
x: U,
|
|
798
805
|
y: c
|
|
799
|
-
},
|
|
800
|
-
for (const
|
|
801
|
-
|
|
802
|
-
onStatisticField:
|
|
803
|
-
outStatisticFieldName: `${
|
|
804
|
-
statisticType:
|
|
806
|
+
}, h = [];
|
|
807
|
+
for (const S of t)
|
|
808
|
+
h.push({
|
|
809
|
+
onStatisticField: S,
|
|
810
|
+
outStatisticFieldName: `${S}_0`.toUpperCase(),
|
|
811
|
+
statisticType: r
|
|
805
812
|
});
|
|
806
|
-
return F.query = { outStatistics:
|
|
813
|
+
return F.query = { outStatistics: h }, 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
814
|
}
|
|
808
815
|
function Ee(s) {
|
|
809
|
-
const { xAxisField: e, numericFields: t, aggregationType:
|
|
810
|
-
for (let
|
|
811
|
-
const
|
|
816
|
+
const { xAxisField: e, numericFields: t, aggregationType: r, config: i, layerInfo: a, commonStrings: n } = s, { layerFieldsInfo: o } = a, l = j(a.layer).idField, c = [];
|
|
817
|
+
for (let d = 0; d < t.length; d += 1) {
|
|
818
|
+
const y = ae({
|
|
812
819
|
config: i,
|
|
813
820
|
xAxisField: e,
|
|
814
|
-
aggregationType:
|
|
815
|
-
layerInfo:
|
|
816
|
-
seriesIndex:
|
|
821
|
+
aggregationType: r,
|
|
822
|
+
layerInfo: a,
|
|
823
|
+
seriesIndex: d,
|
|
817
824
|
commonStrings: n
|
|
818
|
-
}),
|
|
825
|
+
}), g = i.series[d]?.y, F = typeof g == "string" && g.trim() !== "" && !o.find((N) => N.name === g) ? g : te({
|
|
819
826
|
config: i,
|
|
820
827
|
xAxisField: e,
|
|
821
828
|
numericFields: t,
|
|
822
|
-
aggregationType:
|
|
823
|
-
layer:
|
|
824
|
-
numericFieldIndex:
|
|
829
|
+
aggregationType: r,
|
|
830
|
+
layer: a.layer,
|
|
831
|
+
numericFieldIndex: d,
|
|
825
832
|
fieldList: o
|
|
826
|
-
}).name,
|
|
827
|
-
(N) => N.query?.where === void 0 && (N.query?.outStatistics?.length === 1 && N.query?.outStatistics?.[0]?.onStatisticField ===
|
|
828
|
-
),
|
|
829
|
-
...
|
|
830
|
-
id:
|
|
833
|
+
}).name, h = t[d], S = i.series.find(
|
|
834
|
+
(N) => N.query?.where === void 0 && (N.query?.outStatistics?.length === 1 && N.query?.outStatistics?.[0]?.onStatisticField === h || N.query?.outStatistics === void 0 && (N.y === h || N.x === h))
|
|
835
|
+
), b = h !== l ? h : y.id, C = S?.id ?? b, B = S?.name ?? R(o, h) ?? C, A = S ?? y, x = {
|
|
836
|
+
...A,
|
|
837
|
+
id: C,
|
|
831
838
|
name: B
|
|
832
839
|
};
|
|
833
|
-
let
|
|
834
|
-
|
|
840
|
+
let X = h;
|
|
841
|
+
x.query !== void 0 && (r !== v.NoAggregation ? (X = x.type === T.HeatSeries && S?.type === T.HeatSeries ? h : F, x.query.outStatistics = [
|
|
835
842
|
{
|
|
836
|
-
...
|
|
837
|
-
onStatisticField:
|
|
843
|
+
...A.query?.outStatistics?.[0] ?? {},
|
|
844
|
+
onStatisticField: h,
|
|
838
845
|
outStatisticFieldName: F,
|
|
839
|
-
statisticType:
|
|
846
|
+
statisticType: r
|
|
840
847
|
}
|
|
841
|
-
]) : delete
|
|
848
|
+
]) : delete x.query.outStatistics), x.y = X, c.push(x);
|
|
842
849
|
}
|
|
843
|
-
const p = c.filter((
|
|
844
|
-
(
|
|
845
|
-
),
|
|
846
|
-
(
|
|
850
|
+
const p = c.filter((d) => M(d)), f = c.filter(
|
|
851
|
+
(d) => O(d) || V(d)
|
|
852
|
+
), u = i.series.filter((d) => M(d)), m = i.series.filter(
|
|
853
|
+
(d) => O(d) || V(d)
|
|
847
854
|
);
|
|
848
|
-
return
|
|
855
|
+
return u.length === 1 && p.length === 1 && M(u[0]) && M(p[0]) && (p[0].fillSymbol = u[0].fillSymbol), m.length === 1 && f.length === 1 && ((O(m[0]) && O(f[0]) || V(m[0]) && V(f[0])) && Me(f[0], m[0]), (O(m[0]) && O(f[0]) || V(m[0]) && V(f[0])) && (f[0].lineSymbol = m[0].lineSymbol, f[0].markerSymbol = m[0].markerSymbol)), c;
|
|
849
856
|
}
|
|
850
857
|
function Di(s) {
|
|
851
|
-
const { aggregationType: e, config: t, layerInfo:
|
|
852
|
-
if (t.series.forEach((
|
|
853
|
-
const
|
|
858
|
+
const { aggregationType: e, config: t, layerInfo: r, commonStrings: i } = s, { layerFieldsInfo: a, layer: n } = r, o = P(t), l = Z(t), c = re(t), p = ne(t, r, i), f = $e(t, r, i);
|
|
859
|
+
if (t.series.forEach((u, m) => {
|
|
860
|
+
const d = te({
|
|
854
861
|
config: t,
|
|
855
862
|
xAxisField: o,
|
|
856
863
|
numericFields: l,
|
|
@@ -859,100 +866,100 @@ function Di(s) {
|
|
|
859
866
|
layer: n,
|
|
860
867
|
seriesIndex: m,
|
|
861
868
|
numericFieldIndex: m,
|
|
862
|
-
fieldList:
|
|
869
|
+
fieldList: a
|
|
863
870
|
}).name;
|
|
864
|
-
|
|
865
|
-
const
|
|
871
|
+
u.y = d;
|
|
872
|
+
const y = Pe({
|
|
866
873
|
splitByField: c,
|
|
867
874
|
numericFields: l,
|
|
868
875
|
layer: n,
|
|
869
876
|
seriesIndex: m
|
|
870
|
-
}),
|
|
871
|
-
|
|
872
|
-
...
|
|
877
|
+
}), g = u.query?.outStatistics?.[0]?.onStatisticField ?? y;
|
|
878
|
+
u.query = {
|
|
879
|
+
...u.query,
|
|
873
880
|
outStatistics: e === v.NoAggregation ? void 0 : [
|
|
874
881
|
{
|
|
875
|
-
...
|
|
876
|
-
outStatisticFieldName:
|
|
882
|
+
...u.query?.outStatistics?.[0],
|
|
883
|
+
outStatisticFieldName: d,
|
|
877
884
|
statisticType: e,
|
|
878
|
-
onStatisticField:
|
|
885
|
+
onStatisticField: g
|
|
879
886
|
}
|
|
880
887
|
]
|
|
881
|
-
}, "temporalBinning" in
|
|
882
|
-
}), p && t.title && (t.title.content.text =
|
|
883
|
-
const
|
|
888
|
+
}, "temporalBinning" in u && u.temporalBinning !== void 0 && (u.temporalBinning.nullPolicy = e === v.NoAggregation ? W.Interpolate : W.Null), e === v.NoAggregation && Mt(t);
|
|
889
|
+
}), p && t.title && (t.title.content.text = K(t, r, i)), f && t.series[0].type !== T.HeatSeries) {
|
|
890
|
+
const u = ye({
|
|
884
891
|
config: t,
|
|
885
|
-
layerInfo:
|
|
892
|
+
layerInfo: r,
|
|
886
893
|
commonStrings: i,
|
|
887
894
|
numericFields: l,
|
|
888
895
|
aggregationType: e
|
|
889
896
|
});
|
|
890
|
-
|
|
897
|
+
$(t, 1, u);
|
|
891
898
|
}
|
|
892
899
|
}
|
|
893
|
-
function
|
|
900
|
+
function us(s) {
|
|
894
901
|
const {
|
|
895
902
|
splitByField: e,
|
|
896
903
|
xAxisField: t,
|
|
897
|
-
numericFields:
|
|
904
|
+
numericFields: r,
|
|
898
905
|
aggregationType: i,
|
|
899
|
-
config:
|
|
906
|
+
config: a,
|
|
900
907
|
layerInfo: n,
|
|
901
908
|
commonStrings: o,
|
|
902
909
|
splitByFieldInfos: l
|
|
903
|
-
} = s, { layer: c, layerFieldsInfo: p } = n, { categoriesArray:
|
|
910
|
+
} = s, { layer: c, layerFieldsInfo: p } = n, { categoriesArray: f, splitByFieldType: u } = l, m = Pe({
|
|
904
911
|
splitByField: e,
|
|
905
|
-
numericFields:
|
|
912
|
+
numericFields: r,
|
|
906
913
|
layer: c,
|
|
907
914
|
seriesIndex: 0
|
|
908
915
|
});
|
|
909
|
-
let
|
|
910
|
-
if (
|
|
911
|
-
|
|
916
|
+
let d = [];
|
|
917
|
+
if (f.length === 0) {
|
|
918
|
+
d = Ee({
|
|
912
919
|
xAxisField: t,
|
|
913
|
-
numericFields:
|
|
920
|
+
numericFields: r,
|
|
914
921
|
aggregationType: i,
|
|
915
|
-
config:
|
|
922
|
+
config: a,
|
|
916
923
|
layerInfo: n,
|
|
917
924
|
commonStrings: o
|
|
918
925
|
});
|
|
919
|
-
for (const
|
|
920
|
-
|
|
926
|
+
for (const y of d)
|
|
927
|
+
y.query && (y.query.where = `${e}=''`);
|
|
921
928
|
} else
|
|
922
|
-
for (let
|
|
923
|
-
const
|
|
924
|
-
config:
|
|
929
|
+
for (let y = 0; y < f.length; y += 1) {
|
|
930
|
+
const g = f[y], F = te({
|
|
931
|
+
config: a,
|
|
925
932
|
xAxisField: t,
|
|
926
|
-
numericFields:
|
|
933
|
+
numericFields: r,
|
|
927
934
|
aggregationType: i,
|
|
928
935
|
layer: n.layer,
|
|
929
|
-
seriesIndex:
|
|
936
|
+
seriesIndex: y,
|
|
930
937
|
splitByField: e,
|
|
931
938
|
fieldList: p
|
|
932
|
-
}).name,
|
|
933
|
-
config:
|
|
939
|
+
}).name, h = ae({
|
|
940
|
+
config: a,
|
|
934
941
|
xAxisField: t,
|
|
935
942
|
aggregationType: i,
|
|
936
943
|
layerInfo: n,
|
|
937
|
-
seriesIndex:
|
|
944
|
+
seriesIndex: y,
|
|
938
945
|
commonStrings: o
|
|
939
|
-
}),
|
|
946
|
+
}), S = Ne({
|
|
940
947
|
queryObject: n.layer,
|
|
941
948
|
fieldName: e,
|
|
942
|
-
fieldValue:
|
|
943
|
-
}),
|
|
944
|
-
(N) => String(qe(N)).trim().replace(/'/gu, "") ===
|
|
945
|
-
), B =
|
|
946
|
-
...
|
|
949
|
+
fieldValue: g ?? ""
|
|
950
|
+
}), b = `${g}`, C = a.series.find(
|
|
951
|
+
(N) => String(qe(N)).trim().replace(/'/gu, "") === b
|
|
952
|
+
), B = C?.id ?? b, A = C?.name ?? S ?? B, x = C ?? h, X = {
|
|
953
|
+
...x,
|
|
947
954
|
id: B,
|
|
948
|
-
name:
|
|
955
|
+
name: A,
|
|
949
956
|
y: F,
|
|
950
957
|
query: {
|
|
951
|
-
...
|
|
952
|
-
where: `${e}=${
|
|
958
|
+
...x.query,
|
|
959
|
+
where: `${e}=${u === Oe.String && g !== null ? `'${g}'` : g}`,
|
|
953
960
|
outStatistics: i !== v.NoAggregation ? [
|
|
954
961
|
{
|
|
955
|
-
...
|
|
962
|
+
...x.query?.outStatistics?.[0] ?? {},
|
|
956
963
|
onStatisticField: m,
|
|
957
964
|
outStatisticFieldName: F,
|
|
958
965
|
statisticType: i
|
|
@@ -960,75 +967,74 @@ function cs(s) {
|
|
|
960
967
|
] : void 0
|
|
961
968
|
}
|
|
962
969
|
};
|
|
963
|
-
|
|
970
|
+
d.push(X);
|
|
964
971
|
}
|
|
965
|
-
return
|
|
972
|
+
return d;
|
|
966
973
|
}
|
|
967
974
|
const Ni = (s) => {
|
|
968
975
|
const {
|
|
969
976
|
xAxisFieldName: e,
|
|
970
977
|
splitByField: t,
|
|
971
|
-
numericFields:
|
|
978
|
+
numericFields: r,
|
|
972
979
|
aggregationType: i,
|
|
973
|
-
config:
|
|
980
|
+
config: a,
|
|
974
981
|
layerInfo: n,
|
|
975
982
|
commonStrings: o,
|
|
976
983
|
splitByFieldInfos: l
|
|
977
|
-
} = s, { layerFieldsInfo: c } = n ?? {}, p =
|
|
978
|
-
let
|
|
979
|
-
const
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
}), t === "" || a.length > 1 ? ge({
|
|
984
|
+
} = s, { layerFieldsInfo: c } = n ?? {}, p = J(a), f = Rt(a), u = P(p), m = c.find((x) => x.name === u), d = a.series[0]?.query === void 0, y = c.find((x) => x.name === e), g = ne(p, n, o), F = $e(p, n, o), h = ds({ config: p, layerInfo: n, commonStrings: o });
|
|
985
|
+
let S = Le(a);
|
|
986
|
+
const b = p.series.some((x) => M(x)), C = pt(p.series), B = ft(p.series), A = q(m) || q(y);
|
|
987
|
+
if (_(y) ? S = ce() : !Q(m) && Q(y) ? S = z() : !q(m) && q(y) ? S = z() : q(m) && !q(y) && (b ? S = ce() : S = Lt()), S !== void 0 && Xe(a, o, S), f === 0 && (a.series = [
|
|
988
|
+
ae({ config: a, xAxisField: e, aggregationType: i, layerInfo: n, commonStrings: o })
|
|
989
|
+
]), a.series.forEach((x) => {
|
|
990
|
+
x.x = e, x.query !== void 0 && (x.query.groupByFieldsForStatistics = [e]);
|
|
991
|
+
}), t === "" || r.length > 1 ? ge({
|
|
986
992
|
fieldName: e,
|
|
987
|
-
numericFields:
|
|
993
|
+
numericFields: r,
|
|
988
994
|
fieldList: c
|
|
989
|
-
}) ?
|
|
990
|
-
config:
|
|
995
|
+
}) ? a.series = cs({
|
|
996
|
+
config: a,
|
|
991
997
|
layerInfo: n,
|
|
992
998
|
xAxisField: e,
|
|
993
|
-
numericFields:
|
|
999
|
+
numericFields: r,
|
|
994
1000
|
aggregationType: i,
|
|
995
1001
|
commonStrings: o
|
|
996
|
-
}) :
|
|
997
|
-
config:
|
|
1002
|
+
}) : a.series = Ee({
|
|
1003
|
+
config: a,
|
|
998
1004
|
layerInfo: n,
|
|
999
1005
|
xAxisField: e,
|
|
1000
|
-
numericFields:
|
|
1006
|
+
numericFields: r,
|
|
1001
1007
|
aggregationType: i,
|
|
1002
1008
|
commonStrings: o
|
|
1003
|
-
}) : l && (
|
|
1004
|
-
config:
|
|
1009
|
+
}) : l && (a.series = us({
|
|
1010
|
+
config: a,
|
|
1005
1011
|
layerInfo: n,
|
|
1006
1012
|
splitByField: t,
|
|
1007
1013
|
xAxisField: e,
|
|
1008
|
-
numericFields:
|
|
1014
|
+
numericFields: r,
|
|
1009
1015
|
aggregationType: i,
|
|
1010
1016
|
commonStrings: o,
|
|
1011
1017
|
splitByFieldInfos: l
|
|
1012
|
-
})),
|
|
1013
|
-
const
|
|
1014
|
-
|
|
1018
|
+
})), h && e !== U && a.series[0].type !== T.HeatSeries) {
|
|
1019
|
+
const x = R(c, e);
|
|
1020
|
+
$(a, 0, x);
|
|
1015
1021
|
}
|
|
1016
|
-
if (F &&
|
|
1017
|
-
const
|
|
1018
|
-
config:
|
|
1022
|
+
if (F && a.series[0].type !== T.HeatSeries) {
|
|
1023
|
+
const x = ye({
|
|
1024
|
+
config: a,
|
|
1019
1025
|
layerInfo: n,
|
|
1020
1026
|
commonStrings: o,
|
|
1021
|
-
numericFields:
|
|
1027
|
+
numericFields: r,
|
|
1022
1028
|
aggregationType: i
|
|
1023
1029
|
});
|
|
1024
|
-
|
|
1030
|
+
$(a, 1, x);
|
|
1025
1031
|
}
|
|
1026
|
-
if (
|
|
1027
|
-
const
|
|
1028
|
-
Et(
|
|
1032
|
+
if (g && 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 && !Y(p))) {
|
|
1033
|
+
const x = q(y) ? W.Null : W.Interpolate;
|
|
1034
|
+
Et(x, a);
|
|
1029
1035
|
}
|
|
1030
|
-
|
|
1031
|
-
|
|
1036
|
+
Y(a) && Re({ commonStrings: o, config: a, layerInfo: n }), a.series.forEach((x) => {
|
|
1037
|
+
d && delete x.query, I(x) && x.binTemporalData === void 0 && y?.type === Oe.TimeOnly && (x.binTemporalData = !1);
|
|
1032
1038
|
});
|
|
1033
1039
|
}, Me = (s, e) => {
|
|
1034
1040
|
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 +1042,60 @@ const Ni = (s) => {
|
|
|
1036
1042
|
color: s.markerSymbol?.color
|
|
1037
1043
|
});
|
|
1038
1044
|
}, Oi = (s) => {
|
|
1039
|
-
const { config: e, seriesIndex: t, layerInfo:
|
|
1045
|
+
const { config: e, seriesIndex: t, layerInfo: r, commonStrings: i } = s, a = e.series?.[t], n = re(e);
|
|
1040
1046
|
let o;
|
|
1041
|
-
if (
|
|
1047
|
+
if (ee(e.series) === w.BarAndLineFromFields)
|
|
1042
1048
|
o = i.axisLabels.values;
|
|
1043
1049
|
else if (Ye(n)) {
|
|
1044
|
-
const c =
|
|
1045
|
-
c !== void 0 && c !==
|
|
1050
|
+
const c = a.query?.outStatistics?.[0]?.onStatisticField;
|
|
1051
|
+
c !== void 0 && c !== j(r.layer).idField && (o = R(r.layerFieldsInfo, c));
|
|
1046
1052
|
} else {
|
|
1047
|
-
const c = String(qe(
|
|
1053
|
+
const c = String(qe(a)).trim().replace(/'/gu, "");
|
|
1048
1054
|
o = Ne({
|
|
1049
|
-
queryObject:
|
|
1055
|
+
queryObject: r.layer,
|
|
1050
1056
|
fieldName: n,
|
|
1051
1057
|
fieldValue: c ?? ""
|
|
1052
1058
|
}) ?? c;
|
|
1053
1059
|
}
|
|
1054
|
-
return o ??
|
|
1060
|
+
return o ?? a.id;
|
|
1055
1061
|
}, Vi = (s, e) => {
|
|
1056
|
-
if (
|
|
1062
|
+
if (Y(e))
|
|
1057
1063
|
ss(s, e);
|
|
1058
1064
|
else {
|
|
1059
1065
|
e.orderOptions ??= {};
|
|
1060
1066
|
const t = e.orderOptions?.data?.orderType;
|
|
1061
|
-
de(e)[0] ===
|
|
1067
|
+
de(e)[0] === oe.customSort && t === L.Category && (e.orderOptions.data = {
|
|
1062
1068
|
orderType: L.Category,
|
|
1063
1069
|
orderBy: [...s]
|
|
1064
1070
|
});
|
|
1065
1071
|
}
|
|
1066
1072
|
}, ki = async (s) => {
|
|
1067
|
-
const { config: e, layerInfo: t, errorStrings:
|
|
1073
|
+
const { config: e, layerInfo: t, errorStrings: r } = s, i = P(e), a = Le(e)?.type, n = Z(e), o = ee(e.series);
|
|
1068
1074
|
let l = [];
|
|
1069
|
-
return
|
|
1075
|
+
return a === T.CategoryAxisFormat && (o === w.BarAndLineFromFields || i === U ? l = n.map((c) => R(t?.layerFieldsInfo, c)) : i.trim() !== "" && i !== U && t !== void 0 && (l = await He({
|
|
1070
1076
|
layerInfo: t,
|
|
1071
1077
|
config: e,
|
|
1072
1078
|
category: i,
|
|
1073
|
-
errorStrings:
|
|
1079
|
+
errorStrings: r
|
|
1074
1080
|
}))), l;
|
|
1075
1081
|
};
|
|
1076
|
-
function
|
|
1077
|
-
const
|
|
1078
|
-
return
|
|
1082
|
+
function ne(s, e, t) {
|
|
1083
|
+
const r = K(s, e, t), i = qt(s), a = se(s);
|
|
1084
|
+
return r === i || a;
|
|
1079
1085
|
}
|
|
1080
1086
|
function $e(s, e, t) {
|
|
1081
|
-
const
|
|
1087
|
+
const r = ye({
|
|
1082
1088
|
config: s,
|
|
1083
1089
|
layerInfo: e,
|
|
1084
1090
|
commonStrings: t,
|
|
1085
|
-
numericFields:
|
|
1091
|
+
numericFields: Z(s),
|
|
1086
1092
|
aggregationType: we(s)
|
|
1087
|
-
}), i =
|
|
1088
|
-
return
|
|
1093
|
+
}), i = ie(1, s), a = se(s);
|
|
1094
|
+
return r === i || a;
|
|
1089
1095
|
}
|
|
1090
|
-
function ds(s
|
|
1091
|
-
const t = R(
|
|
1092
|
-
return
|
|
1096
|
+
function ds(s) {
|
|
1097
|
+
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);
|
|
1098
|
+
return i === a || n || o;
|
|
1093
1099
|
}
|
|
1094
1100
|
function Ri(s) {
|
|
1095
1101
|
return I(s.series[0]) ? s.series[0].binTemporalData ?? !0 : !1;
|
|
@@ -1101,7 +1107,7 @@ function qi(s, e) {
|
|
|
1101
1107
|
size: 0,
|
|
1102
1108
|
timeAggregationType: ht.Start,
|
|
1103
1109
|
trimIncompleteTimeInterval: !0,
|
|
1104
|
-
nullPolicy:
|
|
1110
|
+
nullPolicy: W.Null
|
|
1105
1111
|
} : delete t.temporalBinning);
|
|
1106
1112
|
});
|
|
1107
1113
|
}
|
|
@@ -1112,7 +1118,7 @@ export {
|
|
|
1112
1118
|
Ni as C,
|
|
1113
1119
|
Ri as D,
|
|
1114
1120
|
qi as E,
|
|
1115
|
-
|
|
1121
|
+
K as F,
|
|
1116
1122
|
Re as G,
|
|
1117
1123
|
Jt as H,
|
|
1118
1124
|
_s as I,
|
|
@@ -1149,8 +1155,8 @@ export {
|
|
|
1149
1155
|
si as ab,
|
|
1150
1156
|
li as ac,
|
|
1151
1157
|
is as ad,
|
|
1152
|
-
|
|
1153
|
-
|
|
1158
|
+
ci as ae,
|
|
1159
|
+
ui as af,
|
|
1154
1160
|
di as ag,
|
|
1155
1161
|
yi as ah,
|
|
1156
1162
|
mi as ai,
|
|
@@ -1161,8 +1167,8 @@ export {
|
|
|
1161
1167
|
fi as an,
|
|
1162
1168
|
ws as b,
|
|
1163
1169
|
Ps as c,
|
|
1164
|
-
|
|
1165
|
-
|
|
1170
|
+
Z as d,
|
|
1171
|
+
re as e,
|
|
1166
1172
|
Ws as f,
|
|
1167
1173
|
we as g,
|
|
1168
1174
|
Oi as h,
|