@arcgis/charts-components 5.2.0-next.66 → 5.2.0-next.68
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/{SZX7IBPD.js → 3NDQG26H.js} +1 -1
- package/dist/cdn/3SXAM2RQ.js +2 -0
- package/dist/cdn/{FAAWFOLV.js → 3VCCFFA5.js} +1 -1
- package/dist/cdn/{VSJK5RTD.js → 423BMEZZ.js} +1 -1
- package/dist/cdn/{XGNDVHWJ.js → 4AG2K75I.js} +1 -1
- package/dist/cdn/{ES2EMZAG.js → 4STXGWZC.js} +1 -1
- package/dist/cdn/{MQL76WZU.js → 5EITERNU.js} +1 -1
- package/dist/cdn/{UBRIQVHZ.js → 5F57WKC5.js} +1 -1
- package/dist/cdn/{BPK3PD5M.js → 5YLWW4AL.js} +1 -1
- package/dist/cdn/{IIDIJAAE.js → 6CYWDDEH.js} +1 -1
- package/dist/cdn/{SYK7CNXD.js → 7QDRO7G4.js} +1 -1
- package/dist/cdn/{RC3EE625.js → A6WH2SX7.js} +1 -1
- package/dist/cdn/{AYQ4HHL6.js → ASYRUV4T.js} +1 -1
- package/dist/cdn/{GQCETYSQ.js → BCWC6W6C.js} +1 -1
- package/dist/cdn/{AVDYAU62.js → BDVUD66T.js} +1 -1
- package/dist/cdn/{Q4QBDDTZ.js → BJIZMJPY.js} +1 -1
- package/dist/cdn/{LEHLFA4M.js → BMXVB7A7.js} +1 -1
- package/dist/cdn/{JP22TFCC.js → BOVXYSZZ.js} +22 -22
- package/dist/cdn/{JG7NKECK.js → BXYB6KDL.js} +1 -1
- package/dist/cdn/{VQ2EMCYL.js → CE737BXZ.js} +1 -1
- package/dist/cdn/{TVORVJGE.js → CRNIOME2.js} +1 -1
- package/dist/cdn/{JR7H3QP3.js → CYGRQATX.js} +1 -1
- package/dist/cdn/{OOFDCJTZ.js → DAPZKYDA.js} +1 -1
- package/dist/cdn/{5XXUPM5P.js → DBHGUPI3.js} +1 -1
- package/dist/cdn/{RMAADG2K.js → DLKGXIGE.js} +1 -1
- package/dist/cdn/{DO2EWRXG.js → DWYUDHNF.js} +1 -1
- package/dist/cdn/{EMGSXQME.js → EIYPD7LX.js} +1 -1
- package/dist/cdn/{DQXO7PWX.js → EVJJ3M3H.js} +1 -1
- package/dist/cdn/{SLPFRGJW.js → FD6XLDC3.js} +1 -1
- package/dist/cdn/{MKWYVBKT.js → FHKECIDV.js} +1 -1
- package/dist/cdn/{GLSEW7NT.js → FIUWGM5F.js} +1 -1
- package/dist/cdn/{TGZFKDPC.js → GYERZTZC.js} +1 -1
- package/dist/cdn/{O5TF56YM.js → GZW2J5BB.js} +1 -1
- package/dist/cdn/{UY3733IE.js → HFN2JW2Y.js} +1 -1
- package/dist/cdn/{RB4M4A3A.js → HIIT5JYP.js} +1 -1
- package/dist/cdn/{JLCPLGX7.js → HITCAMI5.js} +1 -1
- package/dist/cdn/{HQA6T34B.js → HK7L4KW5.js} +1 -1
- package/dist/cdn/{TZKCYATE.js → HQRQMNS3.js} +1 -1
- package/dist/cdn/{7HUL35PU.js → HY7QBK5Q.js} +1 -1
- package/dist/cdn/I5T73GQO.js +3 -0
- package/dist/cdn/{LYH6FAVN.js → JE7HHPRA.js} +1 -1
- package/dist/cdn/{ZGFZTSYD.js → JJVBR3P7.js} +1 -1
- package/dist/cdn/{GCZ6DFXI.js → JR4XDV5M.js} +1 -1
- package/dist/cdn/{LJNSQDP4.js → K2BKBWOE.js} +1 -1
- package/dist/cdn/{NRP7JZ2N.js → KPYAHOEF.js} +1 -1
- package/dist/cdn/{S3QRGN6V.js → LDLGRKYX.js} +1 -1
- package/dist/cdn/{DWRQVHUB.js → LFKT5OKL.js} +1 -1
- package/dist/cdn/{RFC5H2U3.js → LJMPMWML.js} +1 -1
- package/dist/cdn/{KBFQXCDZ.js → LQUC2OYQ.js} +1 -1
- package/dist/cdn/{KW36EC35.js → M5QUJQPF.js} +1 -1
- package/dist/cdn/{SSLW7SXN.js → MHJLTIS5.js} +1 -1
- package/dist/cdn/{ZJMTZWFM.js → MLC52WUK.js} +1 -1
- package/dist/cdn/{XZVQQOEN.js → MQG7NVTD.js} +1 -1
- package/dist/cdn/{EIXBC2RU.js → NEZLKPY2.js} +1 -1
- package/dist/cdn/{KCES2YBJ.js → NIJ4EHI5.js} +1 -1
- package/dist/cdn/{J6SJWHVL.js → NM4OO5YU.js} +1 -1
- package/dist/cdn/{W6VVXP6G.js → NO4VCKIK.js} +1 -1
- package/dist/cdn/{RCXEKJIO.js → NYZ237BW.js} +1 -1
- package/dist/cdn/{L5MHZ4XS.js → OPADFZDX.js} +1 -1
- package/dist/cdn/{XVMQD75T.js → OSVQNJ2P.js} +1 -1
- package/dist/cdn/{PZTO7HAL.js → P6L3V5ZK.js} +1 -1
- package/dist/cdn/{GOE2U47L.js → PL7MI5YT.js} +1 -1
- package/dist/cdn/{MN4IWNOW.js → Q6BX3XAH.js} +1 -1
- package/dist/cdn/{PYPCKQIM.js → QJWTSQQU.js} +1 -1
- package/dist/cdn/{KIN7EK6A.js → RF5ZHOUK.js} +1 -1
- package/dist/cdn/{BYD5Z33P.js → RI756YEJ.js} +1 -1
- package/dist/cdn/{P66FIZ3I.js → RJ2Y7JHV.js} +1 -1
- package/dist/cdn/{RHMWRE52.js → RJ7YN4N5.js} +1 -1
- package/dist/cdn/{KKJXMY7J.js → RPNCN55D.js} +1 -1
- package/dist/cdn/{XLUNDGEL.js → RUYG5XKF.js} +1 -1
- package/dist/cdn/{ZP2WKE5B.js → RV7GNNST.js} +1 -1
- package/dist/cdn/{GDDDGPAU.js → S43LUG32.js} +1 -1
- package/dist/cdn/{NS4DTKTX.js → S5TDCVHM.js} +1 -1
- package/dist/cdn/{TLN3DUDJ.js → SE6CNVZX.js} +1 -1
- package/dist/cdn/{GJL4IRBS.js → SJLIHX7G.js} +1 -1
- package/dist/cdn/{NERP6IQJ.js → T4OM7MKJ.js} +1 -1
- package/dist/cdn/{SJ62ZS3H.js → U3IW423I.js} +1 -1
- package/dist/cdn/{2KKIGZQN.js → U4O47D36.js} +1 -1
- package/dist/cdn/{ZW7RPK6D.js → UJRTXJNX.js} +1 -1
- package/dist/cdn/{P2FVU6TM.js → UPTO3LTH.js} +1 -1
- package/dist/cdn/USNJZCHH.js +2 -0
- package/dist/cdn/{VK6FNPKY.js → V3M6E7SI.js} +1 -1
- package/dist/cdn/{2TJIWV5F.js → V5OAZMFF.js} +1 -1
- package/dist/cdn/{WMUPNT4Q.js → WDMYVS4F.js} +1 -1
- package/dist/cdn/{JVKBKQVH.js → WFMWMNU7.js} +1 -1
- package/dist/cdn/{JPT4AHGX.js → X3S24JSK.js} +1 -1
- package/dist/cdn/{ALCVBLC3.js → XPZCZV3I.js} +1 -1
- package/dist/cdn/{N5EWBVEP.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 +3527 -3429
- package/dist/chunks/serial-chart-data.js +272 -265
- package/dist/components/arcgis-chart/customElement.js +2691 -2704
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- 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 +3 -3
- package/dist/cdn/JKBOZKG3.js +0 -2
- package/dist/cdn/RKY6MJXO.js +0 -3
- package/dist/cdn/SCU3SBSN.js +0 -2
|
@@ -3,13 +3,13 @@ import { substitute as E } from "@arcgis/core/intl.js";
|
|
|
3
3
|
import { cloneDeep as J, isEmpty as Ye, memoize as We } from "lodash-es";
|
|
4
4
|
import { S as oe } from "./common.js";
|
|
5
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
|
|
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
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
|
|
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
10
|
import { i as se } from "./index4.js";
|
|
11
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
|
|
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
15
|
import { d as ue, f as Ot } from "./type-guards.js";
|
|
@@ -66,12 +66,12 @@ var $t = Object.defineProperty, Yt = Object.getOwnPropertyDescriptor, Wt = (s, e
|
|
|
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
|
-
|
|
74
|
+
Y(e) ? s ? e.outTimeZone = t : delete e.outTimeZone : e?.series.forEach((r) => {
|
|
75
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
|
};
|
|
@@ -123,77 +123,80 @@ async function jt(s) {
|
|
|
123
123
|
runtimeDataFilters: n,
|
|
124
124
|
ignoreViewExtent: o,
|
|
125
125
|
setTimeBinningInfoWhenNotProvided: l,
|
|
126
|
-
returnFeaturesExtent:
|
|
127
|
-
|
|
126
|
+
returnFeaturesExtent: c,
|
|
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
142
|
}) && lt(r, e)) {
|
|
142
|
-
const { temporalBinning:
|
|
143
|
-
chartConfig:
|
|
144
|
-
queryConfig:
|
|
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
|
-
returnFeaturesExtent:
|
|
148
|
-
chartLimits:
|
|
149
|
-
}),
|
|
150
|
-
|
|
148
|
+
returnFeaturesExtent: c,
|
|
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
|
+
dateField: h,
|
|
153
154
|
splitByField: r,
|
|
154
|
-
queryConfig:
|
|
155
|
-
axisTimeZone:
|
|
156
|
-
temporalBinning:
|
|
155
|
+
queryConfig: S,
|
|
156
|
+
axisTimeZone: b,
|
|
157
|
+
temporalBinning: F,
|
|
158
|
+
returnStatisticsAggregatedIds: p,
|
|
157
159
|
errorStrings: i,
|
|
158
160
|
abortSignal: a
|
|
159
|
-
}),
|
|
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
|
-
returnFeaturesExtent:
|
|
175
|
-
chartLimits:
|
|
176
|
-
}), { elementCount:
|
|
177
|
-
chartConfig:
|
|
176
|
+
returnFeaturesExtent: c,
|
|
177
|
+
chartLimits: f
|
|
178
|
+
}), { elementCount: h } = await ut({
|
|
179
|
+
chartConfig: d,
|
|
178
180
|
queryObject: e,
|
|
179
|
-
queryConfig:
|
|
180
|
-
behaviorAfterLimit:
|
|
181
|
-
numberMaxOfFeaturesToFetch:
|
|
181
|
+
queryConfig: g,
|
|
182
|
+
behaviorAfterLimit: f?.behaviorAfterLimit,
|
|
183
|
+
numberMaxOfFeaturesToFetch: F.num,
|
|
182
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
192
|
abortSignal: a
|
|
190
|
-
}),
|
|
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();
|
|
@@ -233,7 +236,7 @@ function _t(s) {
|
|
|
233
236
|
})
|
|
234
237
|
);
|
|
235
238
|
if (a.query) {
|
|
236
|
-
if (t === null ? a.id =
|
|
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) {
|
|
237
240
|
const o = a.id;
|
|
238
241
|
a.query.outStatistics[0].outStatisticFieldName = o, "y" in a && (a.y = o);
|
|
239
242
|
}
|
|
@@ -252,49 +255,51 @@ async function Qt(s) {
|
|
|
252
255
|
runtimeDataFilters: n,
|
|
253
256
|
ignoreViewExtent: o,
|
|
254
257
|
setTimeBinningInfoWhenNotProvided: l,
|
|
255
|
-
returnFeaturesExtent:
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
t.series.length === 0
|
|
258
|
+
returnFeaturesExtent: c,
|
|
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);
|
|
262
266
|
const y = ee(t.series);
|
|
263
267
|
if (y === w.BoxPlotMonoFieldAndSplitBy || y === w.BoxPlotMultiFieldsAndSplitBy || y === w.BoxPlotMonoFieldAndCategoryAndSplitBy || y === w.BarAndLineSplitBy || y === w.BarAndLineSplitByNoAggregation) {
|
|
264
|
-
const
|
|
268
|
+
const g = et(t.series[0]?.query?.where), F = tt(r), h = st(g, F), S = h ? it(h) : !1, b = await jt({
|
|
265
269
|
queryObject: r,
|
|
266
270
|
chartConfig: t,
|
|
267
|
-
splitByField:
|
|
271
|
+
splitByField: g,
|
|
268
272
|
abortSignal: a,
|
|
269
273
|
runtimeDataFilters: n,
|
|
270
274
|
ignoreViewExtent: o,
|
|
271
275
|
setTimeBinningInfoWhenNotProvided: l,
|
|
272
|
-
returnFeaturesExtent:
|
|
273
|
-
|
|
276
|
+
returnFeaturesExtent: c,
|
|
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 }));
|
|
@@ -309,26 +314,28 @@ async function Ys(s) {
|
|
|
309
314
|
queryObject: n,
|
|
310
315
|
abortSignal: o,
|
|
311
316
|
runtimeDataFilters: l,
|
|
312
|
-
ignoreViewExtent:
|
|
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
|
-
ignoreViewExtent:
|
|
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;
|
|
@@ -342,48 +349,48 @@ function Ws(s) {
|
|
|
342
349
|
const { data: e, config: t, showEmptySeries: r } = s, i = t.series.length, a = J(t);
|
|
343
350
|
let n = !1;
|
|
344
351
|
if (!r && i > 1 && e) {
|
|
345
|
-
const o = Ze(e), l = Ve(t?.series),
|
|
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
|
-
a.series.forEach((
|
|
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
395
|
return { seriesFilteredOut: n, filteredConfig: a };
|
|
389
396
|
}
|
|
@@ -396,9 +403,9 @@ 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: r, commonStrings: i } = s, { layerFieldsInfo: a } = r, n = ie(1, t), o = Jt(t), l = se(t),
|
|
400
|
-
if (typeof e == "string" && o !== e &&
|
|
401
|
-
if (
|
|
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];
|
|
407
|
+
if (typeof e == "string" && o !== e && c) {
|
|
408
|
+
if (c.y = e, Ut(t), o === n || l) {
|
|
402
409
|
const p = R(a, e);
|
|
403
410
|
$(t, 1, p);
|
|
404
411
|
}
|
|
@@ -447,7 +454,7 @@ const Hs = (s) => s.hideEmptyRowsAndColumns, Xs = (s, e) => {
|
|
|
447
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
456
|
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(
|
|
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) => {
|
|
@@ -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;
|
|
@@ -556,16 +563,16 @@ const as = [
|
|
|
556
563
|
intlOptions: e
|
|
557
564
|
};
|
|
558
565
|
}, ve = (s) => {
|
|
559
|
-
const { axisIndex: e, binning: t, commonStrings: r, config: i, fieldName: a, layerInfo: n } = s, o = i.series[0], l = ie(e, i),
|
|
560
|
-
e === 0 ? o.xTemporalBinning = t : e === 1 && (o.yTemporalBinning = t), t !== void 0 && (l === "" || l ===
|
|
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));
|
|
561
568
|
}, G = (s) => {
|
|
562
569
|
const { axisIndex: e, commonStrings: t, config: r } = s, i = rs(r, e), a = i ? ns(i) : void 0;
|
|
563
570
|
Ie({ config: r, commonStrings: t, valueFormat: a, axisIndex: e });
|
|
564
571
|
}, Re = (s) => {
|
|
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),
|
|
566
|
-
if (Ce({ axisIndex: 0, commonStrings: e, config: t, valueFormat: l }), Ce({ axisIndex: 1, commonStrings: e, config: t, valueFormat:
|
|
567
|
-
const
|
|
568
|
-
|
|
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);
|
|
573
|
+
if (Ce({ axisIndex: 0, commonStrings: e, config: t, valueFormat: l }), Ce({ axisIndex: 1, commonStrings: e, config: t, valueFormat: c }), p) {
|
|
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,
|
|
@@ -589,7 +596,7 @@ const as = [
|
|
|
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 = {};
|
|
@@ -600,27 +607,27 @@ function os(s) {
|
|
|
600
607
|
function ae(s) {
|
|
601
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
|
-
const
|
|
604
|
-
let p = !1,
|
|
605
|
-
if (
|
|
610
|
+
const c = i.series[e ?? 0];
|
|
611
|
+
let p = !1, f = !1, u = !1;
|
|
612
|
+
if (c === void 0) {
|
|
606
613
|
const B = i.series;
|
|
607
|
-
p = B.slice(0, e).every((A) => O(A)),
|
|
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(
|
|
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,12 +637,12 @@ function ae(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
647
|
if (C.query = {
|
|
641
648
|
groupByFieldsForStatistics: [t],
|
|
@@ -660,65 +667,65 @@ function ae(s) {
|
|
|
660
667
|
return J(C);
|
|
661
668
|
}
|
|
662
669
|
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),
|
|
664
|
-
let
|
|
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
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
|
|
676
|
-
if (
|
|
677
|
-
const b =
|
|
678
|
-
|
|
679
|
-
aggregationType:
|
|
680
|
-
[
|
|
682
|
+
const S = p ? i : u;
|
|
683
|
+
if (c === "") {
|
|
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 b =
|
|
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
|
-
if (
|
|
692
|
-
const
|
|
693
|
-
|
|
694
|
-
aggregationType:
|
|
695
|
-
[
|
|
698
|
+
if (c === "") {
|
|
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
|
-
else if (
|
|
706
|
-
const
|
|
707
|
-
|
|
708
|
-
aggregationType:
|
|
709
|
-
aggregationField:
|
|
710
|
-
[
|
|
711
|
-
splitByField:
|
|
712
|
+
else if (c !== "") {
|
|
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,
|
|
@@ -751,18 +758,18 @@ function ls(s) {
|
|
|
751
758
|
const { numericFields: e, aggregationType: t, config: r, layerInfo: i } = s;
|
|
752
759
|
let a = !1;
|
|
753
760
|
t === v.Count ? a = !0 : t === v.NoAggregation && (a = e.every((l) => {
|
|
754
|
-
const
|
|
755
|
-
return
|
|
761
|
+
const c = i.layerFieldsInfo.find((p) => p.name === l);
|
|
762
|
+
return c !== void 0 ? xe(c) : !1;
|
|
756
763
|
})), pe(r, 1, a);
|
|
757
764
|
const n = r.series.some((l) => O(l)), o = r.series.some((l) => V(l));
|
|
758
765
|
if (n || o) {
|
|
759
|
-
const l = P(r),
|
|
766
|
+
const l = P(r), c = i.layerFieldsInfo.find((f) => f.name === l), p = c !== void 0 && xe(c);
|
|
760
767
|
pe(r, 0, p);
|
|
761
768
|
}
|
|
762
769
|
}
|
|
763
770
|
const de = (s) => {
|
|
764
771
|
let e;
|
|
765
|
-
if (
|
|
772
|
+
if (Y(s)) {
|
|
766
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;
|
|
767
774
|
e = [he(t, i), he(r, a)];
|
|
768
775
|
} else {
|
|
@@ -779,115 +786,115 @@ function cs(s) {
|
|
|
779
786
|
layerInfo: a,
|
|
780
787
|
seriesIndex: 0,
|
|
781
788
|
commonStrings: n
|
|
782
|
-
}),
|
|
789
|
+
}), c = te({
|
|
783
790
|
config: i,
|
|
784
791
|
xAxisField: e,
|
|
785
792
|
numericFields: t,
|
|
786
793
|
aggregationType: r,
|
|
787
794
|
layer: a.layer,
|
|
788
795
|
fieldList: o
|
|
789
|
-
}).name, p = P(i),
|
|
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:
|
|
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,
|
|
797
804
|
x: U,
|
|
798
|
-
y:
|
|
799
|
-
},
|
|
800
|
-
for (const
|
|
801
|
-
|
|
802
|
-
onStatisticField:
|
|
803
|
-
outStatisticFieldName: `${
|
|
805
|
+
y: c
|
|
806
|
+
}, h = [];
|
|
807
|
+
for (const S of t)
|
|
808
|
+
h.push({
|
|
809
|
+
onStatisticField: S,
|
|
810
|
+
outStatisticFieldName: `${S}_0`.toUpperCase(),
|
|
804
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: r, config: i, layerInfo: a, commonStrings: n } = s, { layerFieldsInfo: o } = a, l = j(a.layer).idField,
|
|
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
821
|
aggregationType: r,
|
|
815
822
|
layerInfo: a,
|
|
816
|
-
seriesIndex:
|
|
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
829
|
aggregationType: r,
|
|
823
830
|
layer: a.layer,
|
|
824
|
-
numericFieldIndex:
|
|
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
|
-
), b =
|
|
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 = {
|
|
829
836
|
...A,
|
|
830
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
843
|
...A.query?.outStatistics?.[0] ?? {},
|
|
837
|
-
onStatisticField:
|
|
844
|
+
onStatisticField: h,
|
|
838
845
|
outStatisticFieldName: F,
|
|
839
846
|
statisticType: r
|
|
840
847
|
}
|
|
841
|
-
]) : delete
|
|
848
|
+
]) : delete x.query.outStatistics), x.y = X, c.push(x);
|
|
842
849
|
}
|
|
843
|
-
const p =
|
|
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: r, commonStrings: i } = s, { layerFieldsInfo: a, layer: n } = r, o = P(t), l = Z(t),
|
|
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,
|
|
857
864
|
aggregationType: e,
|
|
858
|
-
splitByField:
|
|
865
|
+
splitByField: c,
|
|
859
866
|
layer: n,
|
|
860
867
|
seriesIndex: m,
|
|
861
868
|
numericFieldIndex: m,
|
|
862
869
|
fieldList: a
|
|
863
870
|
}).name;
|
|
864
|
-
|
|
865
|
-
const
|
|
866
|
-
splitByField:
|
|
871
|
+
u.y = d;
|
|
872
|
+
const y = Pe({
|
|
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 = K(t, r, i)),
|
|
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
892
|
layerInfo: r,
|
|
886
893
|
commonStrings: i,
|
|
887
894
|
numericFields: l,
|
|
888
895
|
aggregationType: e
|
|
889
896
|
});
|
|
890
|
-
$(t, 1,
|
|
897
|
+
$(t, 1, u);
|
|
891
898
|
}
|
|
892
899
|
}
|
|
893
900
|
function us(s) {
|
|
@@ -900,15 +907,15 @@ function us(s) {
|
|
|
900
907
|
layerInfo: n,
|
|
901
908
|
commonStrings: o,
|
|
902
909
|
splitByFieldInfos: l
|
|
903
|
-
} = s, { layer:
|
|
910
|
+
} = s, { layer: c, layerFieldsInfo: p } = n, { categoriesArray: f, splitByFieldType: u } = l, m = Pe({
|
|
904
911
|
splitByField: e,
|
|
905
912
|
numericFields: r,
|
|
906
|
-
layer:
|
|
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
920
|
numericFields: r,
|
|
914
921
|
aggregationType: i,
|
|
@@ -916,43 +923,43 @@ function us(s) {
|
|
|
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
|
|
929
|
+
for (let y = 0; y < f.length; y += 1) {
|
|
930
|
+
const g = f[y], F = te({
|
|
924
931
|
config: a,
|
|
925
932
|
xAxisField: t,
|
|
926
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,
|
|
939
|
+
}).name, h = ae({
|
|
933
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
|
-
}), b = `${
|
|
949
|
+
fieldValue: g ?? ""
|
|
950
|
+
}), b = `${g}`, C = a.series.find(
|
|
944
951
|
(N) => String(qe(N)).trim().replace(/'/gu, "") === b
|
|
945
|
-
), B = C?.id ?? b, A = C?.name ??
|
|
946
|
-
...
|
|
952
|
+
), B = C?.id ?? b, A = C?.name ?? S ?? B, x = C ?? h, X = {
|
|
953
|
+
...x,
|
|
947
954
|
id: B,
|
|
948
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,9 +967,9 @@ function us(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 {
|
|
@@ -974,17 +981,17 @@ const Ni = (s) => {
|
|
|
974
981
|
layerInfo: n,
|
|
975
982
|
commonStrings: o,
|
|
976
983
|
splitByFieldInfos: l
|
|
977
|
-
} = s, { layerFieldsInfo:
|
|
978
|
-
let
|
|
979
|
-
const b = p.series.some((
|
|
980
|
-
if (_(
|
|
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 = [
|
|
981
988
|
ae({ config: a, xAxisField: e, aggregationType: i, layerInfo: n, commonStrings: o })
|
|
982
|
-
]), a.series.forEach((
|
|
983
|
-
|
|
989
|
+
]), a.series.forEach((x) => {
|
|
990
|
+
x.x = e, x.query !== void 0 && (x.query.groupByFieldsForStatistics = [e]);
|
|
984
991
|
}), t === "" || r.length > 1 ? ge({
|
|
985
992
|
fieldName: e,
|
|
986
993
|
numericFields: r,
|
|
987
|
-
fieldList:
|
|
994
|
+
fieldList: c
|
|
988
995
|
}) ? a.series = cs({
|
|
989
996
|
config: a,
|
|
990
997
|
layerInfo: n,
|
|
@@ -1008,26 +1015,26 @@ const Ni = (s) => {
|
|
|
1008
1015
|
aggregationType: i,
|
|
1009
1016
|
commonStrings: o,
|
|
1010
1017
|
splitByFieldInfos: l
|
|
1011
|
-
})),
|
|
1012
|
-
const
|
|
1013
|
-
$(a, 0,
|
|
1018
|
+
})), h && e !== U && a.series[0].type !== T.HeatSeries) {
|
|
1019
|
+
const x = R(c, e);
|
|
1020
|
+
$(a, 0, x);
|
|
1014
1021
|
}
|
|
1015
1022
|
if (F && a.series[0].type !== T.HeatSeries) {
|
|
1016
|
-
const
|
|
1023
|
+
const x = ye({
|
|
1017
1024
|
config: a,
|
|
1018
1025
|
layerInfo: n,
|
|
1019
1026
|
commonStrings: o,
|
|
1020
1027
|
numericFields: r,
|
|
1021
1028
|
aggregationType: i
|
|
1022
1029
|
});
|
|
1023
|
-
$(a, 1,
|
|
1030
|
+
$(a, 1, x);
|
|
1024
1031
|
}
|
|
1025
|
-
if (
|
|
1026
|
-
const
|
|
1027
|
-
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);
|
|
1028
1035
|
}
|
|
1029
|
-
|
|
1030
|
-
|
|
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);
|
|
1031
1038
|
});
|
|
1032
1039
|
}, Me = (s, e) => {
|
|
1033
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 = {
|
|
@@ -1040,19 +1047,19 @@ const Ni = (s) => {
|
|
|
1040
1047
|
if (ee(e.series) === w.BarAndLineFromFields)
|
|
1041
1048
|
o = i.axisLabels.values;
|
|
1042
1049
|
else if (Ye(n)) {
|
|
1043
|
-
const
|
|
1044
|
-
|
|
1050
|
+
const c = a.query?.outStatistics?.[0]?.onStatisticField;
|
|
1051
|
+
c !== void 0 && c !== j(r.layer).idField && (o = R(r.layerFieldsInfo, c));
|
|
1045
1052
|
} else {
|
|
1046
|
-
const
|
|
1053
|
+
const c = String(qe(a)).trim().replace(/'/gu, "");
|
|
1047
1054
|
o = Ne({
|
|
1048
1055
|
queryObject: r.layer,
|
|
1049
1056
|
fieldName: n,
|
|
1050
|
-
fieldValue:
|
|
1051
|
-
}) ??
|
|
1057
|
+
fieldValue: c ?? ""
|
|
1058
|
+
}) ?? c;
|
|
1052
1059
|
}
|
|
1053
1060
|
return o ?? a.id;
|
|
1054
1061
|
}, Vi = (s, e) => {
|
|
1055
|
-
if (
|
|
1062
|
+
if (Y(e))
|
|
1056
1063
|
ss(s, e);
|
|
1057
1064
|
else {
|
|
1058
1065
|
e.orderOptions ??= {};
|
|
@@ -1065,7 +1072,7 @@ const Ni = (s) => {
|
|
|
1065
1072
|
}, ki = async (s) => {
|
|
1066
1073
|
const { config: e, layerInfo: t, errorStrings: r } = s, i = P(e), a = Le(e)?.type, n = Z(e), o = ee(e.series);
|
|
1067
1074
|
let l = [];
|
|
1068
|
-
return a === T.CategoryAxisFormat && (o === w.BarAndLineFromFields || i === U ? l = n.map((
|
|
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({
|
|
1069
1076
|
layerInfo: t,
|
|
1070
1077
|
config: e,
|
|
1071
1078
|
category: i,
|
|
@@ -1100,7 +1107,7 @@ function qi(s, e) {
|
|
|
1100
1107
|
size: 0,
|
|
1101
1108
|
timeAggregationType: ht.Start,
|
|
1102
1109
|
trimIncompleteTimeInterval: !0,
|
|
1103
|
-
nullPolicy:
|
|
1110
|
+
nullPolicy: W.Null
|
|
1104
1111
|
} : delete t.temporalBinning);
|
|
1105
1112
|
});
|
|
1106
1113
|
}
|