@arcgis/charts-components 5.2.0-next.0 → 5.2.0-next.1
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/{MJCXQCOV.js → 3FTJIVFE.js} +1 -1
- package/dist/cdn/{4ONG3Z7W.js → 45JPWIBI.js} +1 -1
- package/dist/cdn/{5MMDKA25.js → 45PJ5TQL.js} +1 -1
- package/dist/cdn/{V7TM2WGV.js → 47HHRDX4.js} +1 -1
- package/dist/cdn/{P4T5TI3T.js → 4OZZXXZF.js} +1 -1
- package/dist/cdn/{MRSWVYMY.js → 5HQ2CJEQ.js} +1 -1
- package/dist/cdn/{ROIT25TY.js → 5MVNVHYG.js} +1 -1
- package/dist/cdn/{LEK5TYY2.js → 6JGLHOFY.js} +1 -1
- package/dist/cdn/{ZVZ2XDVU.js → 6LQYOBAL.js} +1 -1
- package/dist/cdn/{AUFCZ2VI.js → 6PAONFHB.js} +1 -1
- package/dist/cdn/{ZIF2SLZ7.js → 6SRISPQN.js} +1 -1
- package/dist/cdn/{FKH3OVSJ.js → 7BEC5WZB.js} +1 -1
- package/dist/cdn/{JJ2M4U57.js → 7IV6GMF7.js} +1 -1
- package/dist/cdn/{RJN2Y6QR.js → 7SNOZDAD.js} +1 -1
- package/dist/cdn/{JN2ZWL6Y.js → 7YBKGD3V.js} +1 -1
- package/dist/cdn/{C3ZSWQ3I.js → AT2NWWBG.js} +1 -1
- package/dist/cdn/{VM7TU42Q.js → ATIARKAU.js} +1 -1
- package/dist/cdn/{4MT26NON.js → B7DM7VT6.js} +1 -1
- package/dist/cdn/{3HDCBEWA.js → BZCVDNC4.js} +1 -1
- package/dist/cdn/{2CKPKXNB.js → CAJVNPHZ.js} +1 -1
- package/dist/cdn/{ETLXX7MH.js → CPPT5HUK.js} +36 -36
- package/dist/cdn/{G2RDPRW6.js → CUJHGXNK.js} +1 -1
- package/dist/cdn/{F22N7RZE.js → D23GGWFM.js} +1 -1
- package/dist/cdn/{35COV7CA.js → DNMVB3A2.js} +1 -1
- package/dist/cdn/{XQN3IPCF.js → EQVQRZHJ.js} +1 -1
- package/dist/cdn/{ERSFBFQP.js → EUOPRFMU.js} +1 -1
- package/dist/cdn/{GKCSV5KX.js → F5Q73CFW.js} +1 -1
- package/dist/cdn/{NI5ICKEY.js → FAQDMSUC.js} +1 -1
- package/dist/cdn/{UUO3C7JX.js → FCXI523J.js} +1 -1
- package/dist/cdn/{GJNWHFFY.js → FJPGZEGK.js} +1 -1
- package/dist/cdn/{PD433VW7.js → FT2K3J7O.js} +1 -1
- package/dist/cdn/{IFUSMYSL.js → G6OHBBUT.js} +1 -1
- package/dist/cdn/{BI4UYGSS.js → GCSGY6GL.js} +1 -1
- package/dist/cdn/{SOQJHUX7.js → GUH6CQE6.js} +1 -1
- package/dist/cdn/{ZCIQS5VL.js → GWQJXXP3.js} +1 -1
- package/dist/cdn/{V7HFHWME.js → HJHMEVMB.js} +1 -1
- package/dist/cdn/{UUBMII4X.js → HUCSTT64.js} +1 -1
- package/dist/cdn/{SOSPMFB6.js → HX4236ZL.js} +1 -1
- package/dist/cdn/{ZPMBL64I.js → I2M6YAUU.js} +1 -1
- package/dist/cdn/{74GWGGKE.js → IWVS6SKP.js} +1 -1
- package/dist/cdn/{LDLY2SF3.js → JILAM6NH.js} +1 -1
- package/dist/cdn/{SSIG3VVL.js → KC6CFXB7.js} +1 -1
- package/dist/cdn/{QR5JSPMD.js → KKWXEF5W.js} +1 -1
- package/dist/cdn/{GGQP5JYM.js → KV4ZPVWQ.js} +1 -1
- package/dist/cdn/{L4RUPWN7.js → M75ENKIU.js} +1 -1
- package/dist/cdn/{HOX7NZNG.js → MKQAQDRM.js} +1 -1
- package/dist/cdn/{XMMHYOKG.js → MOMKSNIZ.js} +1 -1
- package/dist/cdn/NS7OCROO.js +2 -0
- package/dist/cdn/{7JNA22OU.js → O4M33ZPK.js} +1 -1
- package/dist/cdn/{FJFVM6MK.js → OVM5QF7Q.js} +1 -1
- package/dist/cdn/{LKLXYXQS.js → OY6UOUYX.js} +1 -1
- package/dist/cdn/{UQN6IMJJ.js → P3RM2ACY.js} +1 -1
- package/dist/cdn/{IMK7WGD3.js → P6SC5DD2.js} +1 -1
- package/dist/cdn/{Q3AILKYR.js → P74SXC5B.js} +1 -1
- package/dist/cdn/{WBH5XG4U.js → PEZCCXQ7.js} +1 -1
- package/dist/cdn/{QPZNCW73.js → PKMZ6N6M.js} +1 -1
- package/dist/cdn/{BXXLVGNQ.js → PTFRQF65.js} +1 -1
- package/dist/cdn/{2RU466XY.js → PYKHO4QI.js} +1 -1
- package/dist/cdn/{4DN22Z2T.js → RG3I5ORH.js} +1 -1
- package/dist/cdn/{4WLT4SF2.js → RKKWMNWU.js} +1 -1
- package/dist/cdn/{6BUS62PQ.js → RKN64EJQ.js} +1 -1
- package/dist/cdn/{DPSPWVA2.js → RWEUTQWS.js} +1 -1
- package/dist/cdn/{IU3JHT4C.js → S3BC57BJ.js} +1 -1
- package/dist/cdn/{AHXJHLWG.js → S6PJHEJ7.js} +1 -1
- package/dist/cdn/{3EOJXLYW.js → TORIY3OE.js} +1 -1
- package/dist/cdn/{E4SQHQBK.js → TTDZKISK.js} +1 -1
- package/dist/cdn/{5PBHJCIL.js → TZ4GOE2Q.js} +1 -1
- package/dist/cdn/{76ZTJWGM.js → UNUPCA4W.js} +1 -1
- package/dist/cdn/{ZSNIMQ53.js → UQPFMDJB.js} +1 -1
- package/dist/cdn/{M7DJDXCP.js → URYNG6OA.js} +1 -1
- package/dist/cdn/{O3YTMAQX.js → V2XJSJH4.js} +1 -1
- package/dist/cdn/{OBPXCFUE.js → V76PIVCF.js} +1 -1
- package/dist/cdn/{BAIMTE2A.js → V7MBHG4F.js} +1 -1
- package/dist/cdn/{I6ILHZ4V.js → X6WA2KXK.js} +1 -1
- package/dist/cdn/{DA7U5FLY.js → XFZX5ULX.js} +1 -1
- package/dist/cdn/{XCBRFRLO.js → XMQCH4QI.js} +1 -1
- package/dist/cdn/{JOI6WL3P.js → YKGZVYK2.js} +1 -1
- package/dist/cdn/{I6ZAHATO.js → YVVQVAJZ.js} +1 -1
- package/dist/cdn/{I2AGE5R2.js → YZQ54BRI.js} +1 -1
- package/dist/cdn/{H3VQJF7X.js → ZQCUJ7VE.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/index2.js +245 -239
- package/dist/chunks/serial-chart-data.js +80 -75
- package/dist/components/arcgis-chart/customElement.js +5367 -5484
- 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/data/index.d.ts +2 -0
- package/package.json +3 -3
- package/dist/cdn/6LTWEPUM.js +0 -2
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import { substitute as P } from "@arcgis/core/intl.js";
|
|
3
3
|
import { cloneDeep as ae, isEmpty as Ie, memoize as Le } from "lodash-es";
|
|
4
4
|
import { S as J } from "./common.js";
|
|
5
|
-
import { s as N, u as E, g as re, d as Fe, e as
|
|
5
|
+
import { s as N, u as E, g as re, d as Fe, e as qe, f as Ve, j as ce } from "./utils.js";
|
|
6
6
|
import { w as R, bW as Ne, bl as Re, x as ke, Y, c4 as Oe, c7 as De, p as we, aH as le, c0 as Pe, d as Ee, aG as Me, I as $e, a7 as We, bj as Ye, W as Xe, e as je, bm as He, c8 as Ke, v as Ue, c9 as de, bK as Qe, ca as ze, bG as Ge, B as _e, c5 as Ze, an as X, a6 as he, c3 as ne, b9 as Je, k as ee, bo as et, bs as ye, ba as H, bg as me } from "./index2.js";
|
|
7
|
-
import { a as M, c as
|
|
8
|
-
import { g as
|
|
9
|
-
import { u as v, r as
|
|
7
|
+
import { a as M, c as Te, g as Q, e as ge, f as tt } from "./data.js";
|
|
8
|
+
import { g as xe } from "./series-types.js";
|
|
9
|
+
import { u as v, r as q, k as st, n as V, m as K, p as it, t as at, s as te } from "./chart-object-literals.js";
|
|
10
10
|
import { C as D, d as w, F as U } from "./index3.js";
|
|
11
11
|
import { a as rt } from "./index4.js";
|
|
12
12
|
import { h as Be, i as O, j as lt, n as nt, g as b, m as A, e as pe } from "./index6.js";
|
|
@@ -20,7 +20,7 @@ const ts = (t) => {
|
|
|
20
20
|
let e;
|
|
21
21
|
const s = t.series[0];
|
|
22
22
|
return R(s) && (e = s.temporalBinning?.size), e;
|
|
23
|
-
},
|
|
23
|
+
}, Tt = (t) => {
|
|
24
24
|
let e;
|
|
25
25
|
const s = t.series[0];
|
|
26
26
|
return R(s) && (e = s.temporalBinning?.unit), e;
|
|
@@ -36,7 +36,7 @@ const ts = (t) => {
|
|
|
36
36
|
let e;
|
|
37
37
|
const s = t.series[0];
|
|
38
38
|
return R(s) && (e = s.temporalBinning?.nullPolicy), e;
|
|
39
|
-
},
|
|
39
|
+
}, xt = (t, e) => {
|
|
40
40
|
e?.series?.forEach((s) => {
|
|
41
41
|
R(s) && (s.temporalBinning ??= {}, s.temporalBinning.size = t);
|
|
42
42
|
}), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
@@ -57,7 +57,7 @@ const ts = (t) => {
|
|
|
57
57
|
R(s) && (s.temporalBinning ??= {}, s.temporalBinning.trimIncompleteTimeInterval = t);
|
|
58
58
|
}), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
59
59
|
}, os = (t) => {
|
|
60
|
-
|
|
60
|
+
xt(0, t);
|
|
61
61
|
};
|
|
62
62
|
function us(t, e) {
|
|
63
63
|
let s;
|
|
@@ -130,8 +130,8 @@ async function bt(t) {
|
|
|
130
130
|
new Set(
|
|
131
131
|
g.flatMap((f) => {
|
|
132
132
|
const { stackedAttributes: k } = f;
|
|
133
|
-
let
|
|
134
|
-
return k && (
|
|
133
|
+
let T = [];
|
|
134
|
+
return k && (T = k.map((S) => S[r]).filter((S) => S !== void 0)), T;
|
|
135
135
|
})
|
|
136
136
|
).values()
|
|
137
137
|
);
|
|
@@ -178,7 +178,7 @@ function At(t, e) {
|
|
|
178
178
|
escape: !1
|
|
179
179
|
});
|
|
180
180
|
e && a !== null && (a = Number(a));
|
|
181
|
-
const i =
|
|
181
|
+
const i = xe([r]);
|
|
182
182
|
i !== void 0 && s.set(i, [
|
|
183
183
|
...s.get(i) ?? [],
|
|
184
184
|
a
|
|
@@ -244,13 +244,13 @@ async function Lt(t) {
|
|
|
244
244
|
errorStrings: a
|
|
245
245
|
}), { allValues: f } = h;
|
|
246
246
|
if ({ preFetchedQueryResponse: g } = h, f.length > 0) {
|
|
247
|
-
const k = At(s, C),
|
|
247
|
+
const k = At(s, C), T = vt({
|
|
248
248
|
allValues: f,
|
|
249
249
|
configUniqueValuesPerSeriesType: k,
|
|
250
250
|
initialConfigWasEmpty: d
|
|
251
251
|
});
|
|
252
|
-
Array.from(
|
|
253
|
-
(
|
|
252
|
+
Array.from(T.keys()).forEach((S) => {
|
|
253
|
+
(T.get(S) ?? []).forEach((L) => {
|
|
254
254
|
s.series.push(
|
|
255
255
|
It({
|
|
256
256
|
chartConfig: s,
|
|
@@ -266,7 +266,7 @@ async function Lt(t) {
|
|
|
266
266
|
}
|
|
267
267
|
return g;
|
|
268
268
|
}
|
|
269
|
-
function
|
|
269
|
+
function qt(t, e) {
|
|
270
270
|
e && !Be(e) && (e = Ee({ chartConfig: e, queryObject: t }));
|
|
271
271
|
}
|
|
272
272
|
async function gs(t) {
|
|
@@ -286,7 +286,7 @@ async function gs(t) {
|
|
|
286
286
|
errorStrings: d
|
|
287
287
|
} = t;
|
|
288
288
|
let y = e, u;
|
|
289
|
-
return y && (
|
|
289
|
+
return y && (qt(s, y), y = await rt(y, s, void 0, o), r && n && (u = await Lt({
|
|
290
290
|
updateSplitBySeries: a,
|
|
291
291
|
config: y,
|
|
292
292
|
queryObject: n,
|
|
@@ -299,7 +299,7 @@ async function gs(t) {
|
|
|
299
299
|
chartLimits: g
|
|
300
300
|
})), y = Ne(y, i)), { alteredConfig: y, preFetchedQueryResponse: u };
|
|
301
301
|
}
|
|
302
|
-
function
|
|
302
|
+
function Vt(t, e) {
|
|
303
303
|
let s = !1;
|
|
304
304
|
if (e !== void 0) {
|
|
305
305
|
const r = Xe({ key: _e.Average, splitBy: e });
|
|
@@ -311,7 +311,7 @@ function ps(t) {
|
|
|
311
311
|
const { data: e, config: s, showEmptySeries: r } = t, a = s.series.length, i = ae(s);
|
|
312
312
|
let n = !1;
|
|
313
313
|
if (!r && a > 1 && e) {
|
|
314
|
-
const o = ke(e), c =
|
|
314
|
+
const o = ke(e), c = xe(s?.series), m = Y(s?.series), F = /* @__PURE__ */ new Set();
|
|
315
315
|
switch (c) {
|
|
316
316
|
case v.ComboLineAndBarSeries:
|
|
317
317
|
case v.BarSeries:
|
|
@@ -321,7 +321,12 @@ function ps(t) {
|
|
|
321
321
|
if (Array.isArray(o)) {
|
|
322
322
|
let d = "";
|
|
323
323
|
"y" in g && (d = Array.isArray(g.y) ? g.y[0] : g.y, m === D.BarAndLineSplitByNoAggregation && (d = `${d}_${le({ where: g.query?.where, keepSurroundingQuotes: !1, escape: !1 })}`), o.some(
|
|
324
|
-
(u) => Pe({
|
|
324
|
+
(u) => Pe({
|
|
325
|
+
dataItem: u,
|
|
326
|
+
x: g.x,
|
|
327
|
+
y: d,
|
|
328
|
+
aggregationType: s.series[0].query?.outStatistics?.[0]?.statisticType
|
|
329
|
+
})
|
|
325
330
|
) && F.add(g));
|
|
326
331
|
}
|
|
327
332
|
});
|
|
@@ -339,7 +344,7 @@ function ps(t) {
|
|
|
339
344
|
showOutliers: g
|
|
340
345
|
})
|
|
341
346
|
)) : d.type === v.LineSeries && (y = e.meanLines, u = y?.some(
|
|
342
|
-
(p) =>
|
|
347
|
+
(p) => Vt(p, d.query?.where)
|
|
343
348
|
)), u && F.add(d);
|
|
344
349
|
});
|
|
345
350
|
}
|
|
@@ -356,10 +361,10 @@ const fs = (t) => t.hideEmptyRowsAndColumns, Ss = (t, e) => {
|
|
|
356
361
|
}, Fs = (t, e) => {
|
|
357
362
|
const s = t.series[0];
|
|
358
363
|
s.heatRulesType = e;
|
|
359
|
-
}, hs = (t) => t.series[0].heatRulesType,
|
|
364
|
+
}, hs = (t) => t.series[0].heatRulesType, Ts = (t, e) => {
|
|
360
365
|
const s = t.series[0];
|
|
361
366
|
s.gradientRules = e;
|
|
362
|
-
},
|
|
367
|
+
}, xs = (t) => t.series[0].gradientRules, Bs = (t) => {
|
|
363
368
|
const { yField: e, config: s, layerInfo: r } = t, { layerFieldsInfo: a } = r, i = oe(1, s), n = Nt(s), o = z(s), c = s.series[0];
|
|
364
369
|
if (typeof e == "string" && n !== e && c && (c.y = e, Ct(s), n === i || o)) {
|
|
365
370
|
const m = w(a, e);
|
|
@@ -379,18 +384,18 @@ const fs = (t) => t.hideEmptyRowsAndColumns, Ss = (t, e) => {
|
|
|
379
384
|
}
|
|
380
385
|
}, vs = (t) => t.series[0].yTemporalBinning, Rt = (t, e) => {
|
|
381
386
|
e.orderOptions ??= {};
|
|
382
|
-
const s = e.axes?.[0]?.valueFormat?.type === "category" ?
|
|
387
|
+
const s = e.axes?.[0]?.valueFormat?.type === "category" ? V.Category : V.YValue, r = ie(e)[0], a = e.axes?.[1]?.valueFormat?.type === "category" ? V.Category : V.YValue, i = ie(e)[1], n = {
|
|
383
388
|
...e.orderOptions.data ?? {},
|
|
384
|
-
orderType:
|
|
389
|
+
orderType: V.MultiAxes
|
|
385
390
|
};
|
|
386
|
-
r === J.customSort && s ===
|
|
391
|
+
r === J.customSort && s === V.Category && (n.orderByX = [...t]), i === J.customSort && a === V.Category && (n.orderByY = [...t]), Object.keys(n).length > 1 && (e.orderOptions.data = n);
|
|
387
392
|
}, Is = (t, e) => {
|
|
388
393
|
const s = e.series[0];
|
|
389
394
|
s.gridLine && (s.gridLine.width = t);
|
|
390
|
-
}, Ls = (t) => t.series[0].gridLine?.width,
|
|
395
|
+
}, Ls = (t) => t.series[0].gridLine?.width, qs = (t, e) => {
|
|
391
396
|
const s = e.series[0], r = t?.length === 4 && t.every((a) => typeof a == "number");
|
|
392
397
|
s.gridLine && r && (s.gridLine.color = t);
|
|
393
|
-
},
|
|
398
|
+
}, Vs = (t) => t.series[0].gridLine?.color, Ns = (t, e) => {
|
|
394
399
|
const s = e.legend;
|
|
395
400
|
s && (s.position = t);
|
|
396
401
|
}, Rs = (t) => t.legend?.position ?? st.Bottom, ks = (t) => t.series[0].query?.outStatistics?.[0]?.onStatisticField, Os = (t) => {
|
|
@@ -399,14 +404,14 @@ const fs = (t) => t.hideEmptyRowsAndColumns, Ss = (t, e) => {
|
|
|
399
404
|
outStatistics: [
|
|
400
405
|
{
|
|
401
406
|
onStatisticField: e,
|
|
402
|
-
outStatisticFieldName: `${
|
|
403
|
-
statisticType:
|
|
407
|
+
outStatisticFieldName: `${q.Count}_${e}`,
|
|
408
|
+
statisticType: q.Count
|
|
404
409
|
}
|
|
405
410
|
]
|
|
406
411
|
}, n && s.title && (s.title.content.text = j(s, r, a));
|
|
407
|
-
}, Ds = (t) => t.series[0].query?.outStatistics?.[0].statisticType ??
|
|
412
|
+
}, Ds = (t) => t.series[0].query?.outStatistics?.[0].statisticType ?? q.Count, ws = (t) => {
|
|
408
413
|
const { aggregationType: e, config: s, layerInfo: r, commonStrings: a } = t, i = s.series[0]?.query?.outStatistics?.[0], n = _(s, r, a);
|
|
409
|
-
i && e !==
|
|
414
|
+
i && e !== q.NoAggregation && (i.statisticType = e, i.outStatisticFieldName = `${e}_${i.onStatisticField}`), (e === q.Count || e === q.Sum) && kt(K.Zero, s), n && s.title && (s.title.content.text = j(s, r, a));
|
|
410
415
|
}, Ps = (t) => t.nullPolicy, kt = (t, e) => {
|
|
411
416
|
e.nullPolicy = t;
|
|
412
417
|
}, Es = (t) => t.series[0].emptyCells, Ms = (t, e) => {
|
|
@@ -509,7 +514,7 @@ function $(t) {
|
|
|
509
514
|
};
|
|
510
515
|
if (y.query = {
|
|
511
516
|
groupByFieldsForStatistics: [s]
|
|
512
|
-
}, r !==
|
|
517
|
+
}, r !== q.NoAggregation && o !== void 0) {
|
|
513
518
|
const u = `${r}_${o}_0`.toUpperCase();
|
|
514
519
|
y.y = u, y.query.outStatistics = [
|
|
515
520
|
{
|
|
@@ -522,7 +527,7 @@ function $(t) {
|
|
|
522
527
|
if (R(a.series[0]) && R(y)) {
|
|
523
528
|
let u;
|
|
524
529
|
if (a?.series?.[0] !== void 0 && (u = Y(a.series)), u !== D.BarAndLineNoAggregation && u !== D.BarAndLineSplitByNoAggregation) {
|
|
525
|
-
let p =
|
|
530
|
+
let p = Tt(a);
|
|
526
531
|
p === te.Quarter && (p = te.Month), y.temporalBinning = {
|
|
527
532
|
...a.series[0]?.temporalBinning,
|
|
528
533
|
unit: p
|
|
@@ -534,7 +539,7 @@ function $(t) {
|
|
|
534
539
|
function j(t, e, s) {
|
|
535
540
|
const { layerFieldsInfo: r } = e, { idField: a, isTraditionalTypeOID: i } = X(e.layer), n = M(t), o = G(t), c = be(t), m = ue(t), F = i && (o.length === 0 || o.includes(a)), l = ct(c, s), g = F ? "" : o.map((h) => w(r ?? [], h)).join(", "), d = w(r ?? [], n), y = w(r ?? [], m), u = t.series.some((h) => O(h)), p = u ? "category" : "xAxisField", B = d;
|
|
536
541
|
let C = "";
|
|
537
|
-
if (
|
|
542
|
+
if (Te({
|
|
538
543
|
fieldName: n,
|
|
539
544
|
numericFields: o,
|
|
540
545
|
fieldList: r
|
|
@@ -543,7 +548,7 @@ function j(t, e, s) {
|
|
|
543
548
|
aggregationType: l,
|
|
544
549
|
aggregationFields: g
|
|
545
550
|
});
|
|
546
|
-
else if (c ===
|
|
551
|
+
else if (c === q.NoAggregation) {
|
|
547
552
|
const h = F ? a : g;
|
|
548
553
|
if (m === "") {
|
|
549
554
|
const f = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
|
|
@@ -559,7 +564,7 @@ function j(t, e, s) {
|
|
|
559
564
|
splitByField: y
|
|
560
565
|
});
|
|
561
566
|
}
|
|
562
|
-
} else if (c ===
|
|
567
|
+
} else if (c === q.Count)
|
|
563
568
|
if (m === "") {
|
|
564
569
|
const h = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
|
|
565
570
|
C = P(s.titleLabels[h], {
|
|
@@ -596,7 +601,7 @@ const Ce = (t) => le({
|
|
|
596
601
|
where: t.query?.where,
|
|
597
602
|
normalize: !1,
|
|
598
603
|
escape: !1
|
|
599
|
-
}) ?? "", be = (t) => t?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ??
|
|
604
|
+
}) ?? "", be = (t) => t?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? q.NoAggregation, ue = Le(
|
|
600
605
|
(t) => {
|
|
601
606
|
const e = t?.series?.[0]?.query?.where?.split("=")[0].trim() ?? "";
|
|
602
607
|
return Je(t?.series?.[0]?.query?.where) ? "" : e;
|
|
@@ -618,7 +623,7 @@ const Ce = (t) => le({
|
|
|
618
623
|
function Ot(t) {
|
|
619
624
|
const { numericFields: e, aggregationType: s, config: r, layerInfo: a } = t;
|
|
620
625
|
let i = !1;
|
|
621
|
-
s ===
|
|
626
|
+
s === q.Count ? i = !0 : s === q.NoAggregation && (i = e.every((c) => {
|
|
622
627
|
const m = a.layerFieldsInfo.find((F) => F.name === c);
|
|
623
628
|
return m !== void 0 ? me(m) : !1;
|
|
624
629
|
})), ce(r, 1, i);
|
|
@@ -631,10 +636,10 @@ function Ot(t) {
|
|
|
631
636
|
const ie = (t) => {
|
|
632
637
|
let e;
|
|
633
638
|
if (ne(t)) {
|
|
634
|
-
const s = t.orderOptions?.data?.orderByX ?? [""], r = t.orderOptions?.data?.orderByY ?? [""], a = t.axes?.[0]?.valueFormat?.type === "category" ?
|
|
639
|
+
const s = t.orderOptions?.data?.orderByX ?? [""], r = t.orderOptions?.data?.orderByY ?? [""], a = t.axes?.[0]?.valueFormat?.type === "category" ? V.Category : V.YValue, i = t.axes?.[1]?.valueFormat?.type === "category" ? V.Category : V.YValue;
|
|
635
640
|
e = [ge(s, a), ge(r, i)];
|
|
636
641
|
} else {
|
|
637
|
-
const s = t.orderOptions?.data?.orderType ??
|
|
642
|
+
const s = t.orderOptions?.data?.orderType ?? V.Category, r = t.orderOptions?.data && "orderBy" in t.orderOptions.data ? t.orderOptions.data.orderBy : it.Ascending;
|
|
638
643
|
e = [tt(r, s)];
|
|
639
644
|
}
|
|
640
645
|
return e;
|
|
@@ -705,7 +710,7 @@ function Ae(t) {
|
|
|
705
710
|
name: w(o, h)
|
|
706
711
|
});
|
|
707
712
|
let k = h;
|
|
708
|
-
f.query !== void 0 && (r !==
|
|
713
|
+
f.query !== void 0 && (r !== q.NoAggregation ? (k = C, f.query.outStatistics = [
|
|
709
714
|
{
|
|
710
715
|
...p.query?.outStatistics?.[0] ?? {},
|
|
711
716
|
onStatisticField: h,
|
|
@@ -713,11 +718,11 @@ function Ae(t) {
|
|
|
713
718
|
statisticType: r
|
|
714
719
|
}
|
|
715
720
|
]) : delete f.query.outStatistics), f.y = k;
|
|
716
|
-
const
|
|
721
|
+
const T = a.series.find(
|
|
717
722
|
(S) => S.query?.outStatistics?.[0]?.onStatisticField === h && S.query.where === void 0 || S.query?.outStatistics === void 0 && (S.y === h || S.x === h)
|
|
718
723
|
);
|
|
719
|
-
if (
|
|
720
|
-
(b(f) && b(
|
|
724
|
+
if (T !== void 0 && typeof T.y == "string" && T.y.trim() !== "") {
|
|
725
|
+
(b(f) && b(T) || A(f) && A(T)) && W(f, T), a.colorMatch || (O(f) && O(T) ? f.fillSymbol = T.fillSymbol : (b(f) && b(T) || A(f) && A(T)) && (f.lineSymbol = T.lineSymbol, f.markerSymbol = T.markerSymbol), F = !0);
|
|
721
726
|
const S = $({
|
|
722
727
|
config: a,
|
|
723
728
|
xAxisField: e,
|
|
@@ -726,7 +731,7 @@ function Ae(t) {
|
|
|
726
731
|
seriesIndex: u,
|
|
727
732
|
commonStrings: n
|
|
728
733
|
});
|
|
729
|
-
f.id =
|
|
734
|
+
f.id = T.id, T.id !== S.id && T.name !== S.name && (f.id = T.id, f.name = T.name), f.assignToSecondValueAxis = T.assignToSecondValueAxis, f.type === v.HeatSeries && T.type === v.HeatSeries && (f.y = T.y, f.heatRulesType = T.heatRulesType);
|
|
730
735
|
}
|
|
731
736
|
m.push(f);
|
|
732
737
|
}
|
|
@@ -750,7 +755,7 @@ function ai(t) {
|
|
|
750
755
|
numericFieldIndex: g,
|
|
751
756
|
fieldList: i
|
|
752
757
|
}).name;
|
|
753
|
-
e !==
|
|
758
|
+
e !== q.NoAggregation ? (l.y = d, l.query = {
|
|
754
759
|
...l.query,
|
|
755
760
|
outStatistics: [
|
|
756
761
|
{
|
|
@@ -825,7 +830,7 @@ function wt(t) {
|
|
|
825
830
|
query: {
|
|
826
831
|
...h.query,
|
|
827
832
|
where: `${e}=${g === ht.String && B !== null ? `'${B}'` : B}`,
|
|
828
|
-
outStatistics: a !==
|
|
833
|
+
outStatistics: a !== q.NoAggregation ? [
|
|
829
834
|
{
|
|
830
835
|
...h.query?.outStatistics?.[0] ?? {},
|
|
831
836
|
onStatisticField: d,
|
|
@@ -835,7 +840,7 @@ function wt(t) {
|
|
|
835
840
|
] : void 0
|
|
836
841
|
}
|
|
837
842
|
};
|
|
838
|
-
a ===
|
|
843
|
+
a === q.NoAggregation && (S.query !== void 0 && (delete S.query.outStatistics, delete S.query.groupByFieldsForStatistics), S.y = d);
|
|
839
844
|
const I = i.series.find(
|
|
840
845
|
(L) => String(Ce(L)).trim().replace(/'/gu, "") === k
|
|
841
846
|
);
|
|
@@ -853,16 +858,16 @@ const ri = (t) => {
|
|
|
853
858
|
layerInfo: n,
|
|
854
859
|
commonStrings: o,
|
|
855
860
|
splitByFieldInfos: c
|
|
856
|
-
} = t, { layerFieldsInfo: m } = n ?? {}, F = ft(i), l = M(i), g = m.find((
|
|
861
|
+
} = t, { layerFieldsInfo: m } = n ?? {}, F = ft(i), l = M(i), g = m.find((x) => x.name === l), d = i.series[0].query?.fetchNullValues, y = "nullCategory" in i.series?.[0] ? i.series[0].nullCategory : void 0, u = i.series[0]?.query === void 0, p = m.find((x) => x.name === e), B = _(i, n, o), C = ve(i, n, o), h = Pt(i, n);
|
|
857
862
|
let f = Fe(i);
|
|
858
|
-
const k = i.series.some((
|
|
863
|
+
const k = i.series.some((x) => O(x)), T = lt(i.series), S = nt(i.series), I = ne(i), L = {};
|
|
859
864
|
I && (L.classBreaksRules = i.series[0]?.classBreaksRules, L.xTemporalBinning = i.series[0]?.xTemporalBinning, L.yTemporalBinning = i.series[0]?.yTemporalBinning, L.emptyCells = i.series[0]?.emptyCells, L.nullPolicy = i.nullPolicy);
|
|
860
865
|
let Z = !1;
|
|
861
|
-
if (et(p) ? f = fe() : !ye(g) && ye(p) ? f = Se() : !H(g) && H(p) ? (f = Se(), Z = !0) : H(g) && !H(p) && (k ? f = fe() : f = pt(), Z = !0), f !== void 0 &&
|
|
866
|
+
if (et(p) ? f = fe() : !ye(g) && ye(p) ? f = Se() : !H(g) && H(p) ? (f = Se(), Z = !0) : H(g) && !H(p) && (k ? f = fe() : f = pt(), Z = !0), f !== void 0 && Ve(i, o, f), F === 0 && (i.series = [
|
|
862
867
|
$({ config: i, xAxisField: e, aggregationType: a, layerInfo: n, commonStrings: o })
|
|
863
|
-
]), i.series.forEach((
|
|
864
|
-
|
|
865
|
-
}), s === "" || r.length > 1 ?
|
|
868
|
+
]), i.series.forEach((x) => {
|
|
869
|
+
x.x = e, x.query !== void 0 && (x.query.groupByFieldsForStatistics = [e]);
|
|
870
|
+
}), s === "" || r.length > 1 ? Te({
|
|
866
871
|
fieldName: e,
|
|
867
872
|
numericFields: r,
|
|
868
873
|
fieldList: m
|
|
@@ -890,29 +895,29 @@ const ri = (t) => {
|
|
|
890
895
|
commonStrings: o,
|
|
891
896
|
splitByFieldInfos: c
|
|
892
897
|
})), h && i.series[0].type !== v.HeatSeries) {
|
|
893
|
-
const
|
|
894
|
-
E(i, 0,
|
|
898
|
+
const x = w(m, e);
|
|
899
|
+
E(i, 0, x);
|
|
895
900
|
}
|
|
896
901
|
if (C && i.series[0].type !== v.HeatSeries) {
|
|
897
|
-
const
|
|
902
|
+
const x = re({
|
|
898
903
|
config: i,
|
|
899
904
|
layerInfo: n,
|
|
900
905
|
commonStrings: o,
|
|
901
906
|
numericFields: r,
|
|
902
907
|
aggregationType: a
|
|
903
908
|
});
|
|
904
|
-
E(i, 1,
|
|
909
|
+
E(i, 1, x);
|
|
905
910
|
}
|
|
906
|
-
if (B && i.title && (i.title.content.text = j(i, n, o)), N({ config: i, value: null, axisIndex: 1, isMax: !1 }), N({ config: i, value: null, axisIndex: 1, isMax: !0 }), Ot({ numericFields: r, aggregationType: a, config: i, layerInfo: n }), (
|
|
907
|
-
const
|
|
908
|
-
Bt(
|
|
911
|
+
if (B && i.title && (i.title.content.text = j(i, n, o)), N({ config: i, value: null, axisIndex: 1, isMax: !1 }), N({ config: i, value: null, axisIndex: 1, isMax: !0 }), Ot({ numericFields: r, aggregationType: a, config: i, layerInfo: n }), (T || S) && (N({ config: i, value: null, axisIndex: 0, isMax: !1 }), N({ config: i, value: null, axisIndex: 0, isMax: !0 }), Z)) {
|
|
912
|
+
const x = f?.type === v.DateAxisFormat ? K.Null : K.Interpolate;
|
|
913
|
+
Bt(x, i);
|
|
909
914
|
}
|
|
910
|
-
I && (i.series[0].classBreaksRules = L.classBreaksRules, i.series[0].xTemporalBinning = L.xTemporalBinning, i.series[0].yTemporalBinning = L.yTemporalBinning, i.series[0].emptyCells = L.emptyCells, i.nullPolicy = L.nullPolicy), u ? i.series.forEach((
|
|
911
|
-
delete
|
|
912
|
-
}) : d && i.series.forEach((
|
|
913
|
-
|
|
914
|
-
}), y && i.series.forEach((
|
|
915
|
-
(
|
|
915
|
+
I && (i.series[0].classBreaksRules = L.classBreaksRules, i.series[0].xTemporalBinning = L.xTemporalBinning, i.series[0].yTemporalBinning = L.yTemporalBinning, i.series[0].emptyCells = L.emptyCells, i.nullPolicy = L.nullPolicy), u ? i.series.forEach((x) => {
|
|
916
|
+
delete x.query;
|
|
917
|
+
}) : d && i.series.forEach((x) => {
|
|
918
|
+
x.query && (x.query.fetchNullValues = d);
|
|
919
|
+
}), y && i.series.forEach((x) => {
|
|
920
|
+
(x.type === v.BarSeries || x.type === v.LineSeries || x.type === v.RadarSeries) && (x.nullCategory = y);
|
|
916
921
|
});
|
|
917
922
|
}, W = (t, e) => {
|
|
918
923
|
t.markerVisible = e.markerVisible, t.lineSmoothed = e.lineSmoothed, t.showArea = e.showArea, t.areaColor = e.areaColor, t.stackNegativeValuesToBaseline = e.stackNegativeValuesToBaseline, e.lineSymbol && (t.lineSymbol = { ...e.lineSymbol, color: t.lineSymbol?.color }), e.markerSymbol && (t.markerSymbol = {
|
|
@@ -942,15 +947,15 @@ const ri = (t) => {
|
|
|
942
947
|
else {
|
|
943
948
|
e.orderOptions ??= {};
|
|
944
949
|
const s = e.orderOptions?.data?.orderType;
|
|
945
|
-
ie(e)[0] === J.customSort && s ===
|
|
946
|
-
orderType:
|
|
950
|
+
ie(e)[0] === J.customSort && s === V.Category && (e.orderOptions.data = {
|
|
951
|
+
orderType: V.Category,
|
|
947
952
|
orderBy: [...t]
|
|
948
953
|
});
|
|
949
954
|
}
|
|
950
955
|
}, oi = async (t) => {
|
|
951
956
|
const { config: e, layerInfo: s, errorStrings: r } = t, a = M(e), i = Fe(e)?.type, n = G(e), o = Y(e.series);
|
|
952
957
|
let c = [];
|
|
953
|
-
return i === v.CategoryAxisFormat && (o === D.BarAndLineFromFields || a === ee ? c = n.map((m) => w(s?.layerFieldsInfo, m)) : a.trim() !== "" && a !== ee && s !== void 0 && (c = await
|
|
958
|
+
return i === v.CategoryAxisFormat && (o === D.BarAndLineFromFields || a === ee ? c = n.map((m) => w(s?.layerFieldsInfo, m)) : a.trim() !== "" && a !== ee && s !== void 0 && (c = await qe({
|
|
954
959
|
layerInfo: s,
|
|
955
960
|
config: e,
|
|
956
961
|
category: a,
|
|
@@ -991,11 +996,11 @@ function ci(t, e) {
|
|
|
991
996
|
}
|
|
992
997
|
export {
|
|
993
998
|
rs as $,
|
|
994
|
-
|
|
999
|
+
qs as A,
|
|
995
1000
|
hs as B,
|
|
996
1001
|
Fs as C,
|
|
997
|
-
|
|
998
|
-
|
|
1002
|
+
xs as D,
|
|
1003
|
+
Ts as E,
|
|
999
1004
|
ks as F,
|
|
1000
1005
|
Os as G,
|
|
1001
1006
|
Ds as H,
|
|
@@ -1016,8 +1021,8 @@ export {
|
|
|
1016
1021
|
js as W,
|
|
1017
1022
|
Hs as X,
|
|
1018
1023
|
ts as Y,
|
|
1019
|
-
|
|
1020
|
-
|
|
1024
|
+
xt as Z,
|
|
1025
|
+
Tt as _,
|
|
1021
1026
|
G as a,
|
|
1022
1027
|
ss as a0,
|
|
1023
1028
|
ls as a1,
|
|
@@ -1064,5 +1069,5 @@ export {
|
|
|
1064
1069
|
Ss as w,
|
|
1065
1070
|
Ls as x,
|
|
1066
1071
|
Is as y,
|
|
1067
|
-
|
|
1072
|
+
Vs as z
|
|
1068
1073
|
};
|