@arcgis/charts-components 5.2.0-next.7 → 5.2.0-next.9
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/{DPNTYHTH.js → 2B4S6PH2.js} +1 -1
- package/dist/cdn/{7HGVEE7A.js → 2GJX5OO6.js} +1 -1
- package/dist/cdn/{TJMTF45U.js → 3X5JIVJJ.js} +2 -2
- package/dist/cdn/{EP34TF4L.js → 44GWFKSR.js} +1 -1
- package/dist/cdn/{ADPDJISV.js → 4LLOMGO7.js} +1 -1
- package/dist/cdn/{JTTJ455Y.js → 4P7S3KIY.js} +1 -1
- package/dist/cdn/{WGYJBMRM.js → 55UVN4AF.js} +1 -1
- package/dist/cdn/{DAB5R2BN.js → 5F54SB3S.js} +1 -1
- package/dist/cdn/{RG3DO2OE.js → 667DYS3D.js} +1 -1
- package/dist/cdn/{GDQBQQUP.js → 73BVFUAA.js} +1 -1
- package/dist/cdn/{XG3WW5GG.js → 7DD3FFI5.js} +1 -1
- package/dist/cdn/{TDHHWIIC.js → 7LXWQH6J.js} +1 -1
- package/dist/cdn/{6CFIKYKR.js → 7TRRNFTL.js} +1 -1
- package/dist/cdn/{UZEMSOA2.js → 7XLZ42N6.js} +1 -1
- package/dist/cdn/{J6WQX4UD.js → BSP7U5YN.js} +20 -20
- package/dist/cdn/{IWX5L226.js → CAGJKKOW.js} +1 -1
- package/dist/cdn/{KO7HQLGV.js → CG6PLENK.js} +1 -1
- package/dist/cdn/{XCUXUZXY.js → CKRMYU2S.js} +1 -1
- package/dist/cdn/{L5AQ4I5T.js → CQTLTJ52.js} +1 -1
- package/dist/cdn/CY7GY33F.js +2 -0
- package/dist/cdn/{S32NLOJ5.js → D57ESYPO.js} +1 -1
- package/dist/cdn/{JS2KOBA2.js → DKXRIXFG.js} +1 -1
- package/dist/cdn/EDSF5KGV.js +233 -0
- package/dist/cdn/{SJGYHEMZ.js → EPUNY3VI.js} +1 -1
- package/dist/cdn/{Q5JDSPJA.js → FATECLIQ.js} +1 -1
- package/dist/cdn/{GQ5QBLRO.js → FGNRWY57.js} +1 -1
- package/dist/cdn/{JWO5WVTZ.js → FJ4UGRMY.js} +1 -1
- package/dist/cdn/{OHF3AEWY.js → G7YZE67F.js} +1 -1
- package/dist/cdn/{O5A25X5K.js → GGHRYV36.js} +1 -1
- package/dist/cdn/{CVU3UPPF.js → GOP2GNGE.js} +1 -1
- package/dist/cdn/{4LPXOEML.js → GQ3TDTO5.js} +1 -1
- package/dist/cdn/{TW5DX7YP.js → H2DP7HXE.js} +1 -1
- package/dist/cdn/{ICFKKJWQ.js → H42V247N.js} +1 -1
- package/dist/cdn/{KCMZSNBL.js → H7TZ42RW.js} +1 -1
- package/dist/cdn/{OGYY2Y22.js → I5B6REVT.js} +1 -1
- package/dist/cdn/{K4WI2SGM.js → IXKYQBM7.js} +1 -1
- package/dist/cdn/{PROSIXIF.js → J7XXIAQJ.js} +1 -1
- package/dist/cdn/{ML3A3MYV.js → JRN2TZSV.js} +1 -1
- package/dist/cdn/{EGISZTGB.js → JRUIUNQA.js} +1 -1
- package/dist/cdn/{3NUNWPAR.js → KI2YCXW6.js} +1 -1
- package/dist/cdn/{VZTLODMQ.js → KPPNRDOP.js} +1 -1
- package/dist/cdn/{RPNZL6AC.js → LB6EF2UN.js} +1 -1
- package/dist/cdn/{OAAJ6CIN.js → M7QVV7WC.js} +1 -1
- package/dist/cdn/MICVGPGC.js +2 -0
- package/dist/cdn/{BBUPTHPL.js → MZHOWTY3.js} +1 -1
- package/dist/cdn/{BO62KSB5.js → NALKWY43.js} +1 -1
- package/dist/cdn/{KLHZFPYK.js → OCE4FAJ4.js} +1 -1
- package/dist/cdn/{R75MHIRF.js → PQHVQQSI.js} +1 -1
- package/dist/cdn/{MVHQR4FJ.js → PRFJNHPS.js} +1 -1
- package/dist/cdn/{JNG6V7XC.js → QNUCPXBU.js} +1 -1
- package/dist/cdn/{RDA5NV6M.js → QW5KML7L.js} +1 -1
- package/dist/cdn/{QRLILSSI.js → QXUR76TF.js} +1 -1
- package/dist/cdn/{QFEZPP3R.js → RCK5VONL.js} +1 -1
- package/dist/cdn/{MGEW6X3Y.js → RJW2DOIR.js} +2 -2
- package/dist/cdn/{6GLTSMOR.js → RR63Q3C2.js} +1 -1
- package/dist/cdn/{43ZHPVBB.js → RRC5ESYH.js} +1 -1
- package/dist/cdn/{LC6CY2HW.js → SS42OW45.js} +1 -1
- package/dist/cdn/{PRGFNLY7.js → STM26XZG.js} +1 -1
- package/dist/cdn/{7OF2IANH.js → TX43YOVC.js} +1 -1
- package/dist/cdn/{SCAZDS2G.js → TYAN5HWQ.js} +1 -1
- package/dist/cdn/{DZ72EIRH.js → UAGGYOZB.js} +1 -1
- package/dist/cdn/{D73VV2AZ.js → UDKG7LGN.js} +1 -1
- package/dist/cdn/{S5UDCCRH.js → UHQGJR3U.js} +1 -1
- package/dist/cdn/{VBHQFV2H.js → UYOCWLLG.js} +1 -1
- package/dist/cdn/{6AF2OTL6.js → UYTPOUP7.js} +1 -1
- package/dist/cdn/{7VN3A7S2.js → VKYQGU2R.js} +1 -1
- package/dist/cdn/{7YWZG3ZS.js → VOSE67U2.js} +1 -1
- package/dist/cdn/{VFREVEVA.js → W3OA4MKU.js} +1 -1
- package/dist/cdn/{TCTQ4LMU.js → W6KE6F3T.js} +1 -1
- package/dist/cdn/{32FR66QO.js → WCJ5W5TE.js} +1 -1
- package/dist/cdn/{NTSTL3FK.js → WHYRYWPW.js} +1 -1
- package/dist/cdn/{MBVTB42G.js → WOJQ6BTB.js} +1 -1
- package/dist/cdn/{7EMCHGGV.js → XP6RGZ2N.js} +1 -1
- package/dist/cdn/{NSOZIR5F.js → XRUOXTHH.js} +1 -1
- package/dist/cdn/{B4KAJRUJ.js → XTNDUDWE.js} +1 -1
- package/dist/cdn/{HWJGWDU3.js → YAR2TF55.js} +1 -1
- package/dist/cdn/{TJMPLGQI.js → YRFSWIDQ.js} +1 -1
- package/dist/cdn/{JRHMUFED.js → ZAHVBXAQ.js} +1 -1
- package/dist/cdn/{QY53LXP2.js → ZG7SUAGR.js} +1 -1
- package/dist/cdn/{C2FOUUEM.js → ZTX2ULE6.js} +1 -1
- package/dist/cdn/{G72TNKCS.js → ZY44M3QZ.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chart-rendering/common/data/utils/summarize-data/interfaces.d.ts +5 -1
- package/dist/chart-rendering/common/interfaces.d.ts +8 -8
- package/dist/chunks/class-breaks.js +18 -18
- package/dist/chunks/index2.js +186 -186
- package/dist/chunks/index4.js +2 -2
- package/dist/chunks/model-setter.js +1 -1
- package/dist/chunks/rotated-state.js +1 -1
- package/dist/chunks/scatterplot-model.js +1 -1
- package/dist/chunks/serial-chart-data.js +353 -356
- package/dist/chunks/utils.js +5 -5
- package/dist/chunks/web-component-utils.js +1 -1
- package/dist/components/arcgis-chart/customElement.d.ts +37 -40
- package/dist/components/arcgis-chart/customElement.js +5199 -5329
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-histogram/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +75 -75
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +1 -1
- 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/index.d.ts +62 -67
- package/dist/index.js +210 -208
- package/dist/model/properties/rotated-state.d.ts +1 -1
- package/dist/spec/rest-js-object-literals.d.ts +2 -2
- package/dist/utils/chart-config/converter/index.js +1 -1
- package/dist/utils/chart-config/utils/index.d.ts +29 -0
- package/dist/utils/defaults/index.d.ts +0 -1
- package/dist/utils/layer/inline-conversion/index.d.ts +3 -0
- package/package.json +4 -4
- package/dist/cdn/24RLLXS6.js +0 -2
- package/dist/cdn/2N4MK6FQ.js +0 -2
- /package/dist/cdn/{YOT6DVSU.js → 2OHFSVV5.js} +0 -0
- /package/dist/cdn/{AM2TOTX6.js → 2XXW3WF3.js} +0 -0
- /package/dist/cdn/{A4GEWIPY.js → 3JYZJUOM.js} +0 -0
- /package/dist/cdn/{6XTKJ7DO.js → 3TZEMBXR.js} +0 -0
- /package/dist/cdn/{ZXOO3X5P.js → 4OH4NSIW.js} +0 -0
- /package/dist/cdn/{TF7TE7K5.js → 5SIAOUPO.js} +0 -0
- /package/dist/cdn/{7FZC3RZK.js → 7QXRWMUN.js} +0 -0
- /package/dist/cdn/{QOOBNATX.js → AASL4RKT.js} +0 -0
- /package/dist/cdn/{JBHGSSHS.js → ANN3O54W.js} +0 -0
- /package/dist/cdn/{KFONSKQF.js → BDGHBTPU.js} +0 -0
- /package/dist/cdn/{CJPEW4LJ.js → FFS73X36.js} +0 -0
- /package/dist/cdn/{E7OAEGSE.js → FOYOG3G7.js} +0 -0
- /package/dist/cdn/{IPM2XKST.js → FWAXKDYV.js} +0 -0
- /package/dist/cdn/{N6AOFBBX.js → H3EXGCE7.js} +0 -0
- /package/dist/cdn/{DKAHZ7IX.js → I6UPUSLQ.js} +0 -0
- /package/dist/cdn/{BJDRJUEJ.js → IYA7HQMS.js} +0 -0
- /package/dist/cdn/{LFQGH44F.js → L47EGLUH.js} +0 -0
- /package/dist/cdn/{JJIGLOJA.js → LROW4Y6O.js} +0 -0
- /package/dist/cdn/{A5AECJXP.js → MK5ZYSOD.js} +0 -0
- /package/dist/cdn/{AJWYIBGC.js → N4L5KE23.js} +0 -0
- /package/dist/cdn/{K3GNHGEW.js → N5ZUO6F3.js} +0 -0
- /package/dist/cdn/{XE3FKQFA.js → OFWEHJDH.js} +0 -0
- /package/dist/cdn/{XW4PBQNW.js → OXYJKZEP.js} +0 -0
- /package/dist/cdn/{QMSINFQX.js → QR2OOC4D.js} +0 -0
- /package/dist/cdn/{5MEQANMY.js → RSNZMJ6I.js} +0 -0
- /package/dist/cdn/{DEGBVJ76.js → S3ZSZXYG.js} +0 -0
- /package/dist/cdn/{ETKPMU7Z.js → SERX6V5M.js} +0 -0
- /package/dist/cdn/{DCZWZOPF.js → SSQ3VCZ2.js} +0 -0
- /package/dist/cdn/{AWF4R7WL.js → TFPQDMER.js} +0 -0
- /package/dist/cdn/{FF4DUQDZ.js → ULWJ57VT.js} +0 -0
- /package/dist/cdn/{ZFZ5AEUQ.js → UYXCGSXU.js} +0 -0
- /package/dist/cdn/{GV3TT7L5.js → VDKFC44J.js} +0 -0
- /package/dist/cdn/{5YJNENER.js → VRZ2SY6M.js} +0 -0
- /package/dist/cdn/{HVO4LIXR.js → WAINRCCJ.js} +0 -0
- /package/dist/cdn/{SBYD2EKR.js → X2LW7GTR.js} +0 -0
- /package/dist/cdn/{2HUAW34Q.js → XDMGH7YU.js} +0 -0
- /package/dist/cdn/{KUZR6CGB.js → XY4TRZCG.js} +0 -0
- /package/dist/cdn/{5XTQQOTT.js → XYKXBWIT.js} +0 -0
- /package/dist/cdn/{L4G6FO7A.js → Y6ZCTPJW.js} +0 -0
- /package/dist/cdn/{CLXVAIQX.js → YKDW7ZW3.js} +0 -0
- /package/dist/cdn/{KZ7LPNX3.js → ZBIVDGNH.js} +0 -0
|
@@ -1,89 +1,89 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { substitute as P } from "@arcgis/core/intl.js";
|
|
3
|
-
import { cloneDeep as ae, isEmpty as
|
|
3
|
+
import { cloneDeep as ae, isEmpty as Le, memoize as qe } from "lodash-es";
|
|
4
4
|
import { S as J } from "./common.js";
|
|
5
|
-
import { s as N, u as E, g as re, a as Fe, b as
|
|
6
|
-
import { w as R,
|
|
7
|
-
import { a as M, s as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { convertChartSpec as rt } from "../utils/chart-config/converter/index.js";
|
|
11
|
-
import { az as lt, t as nt, Y as ot, a9 as ut, al as ct, x as dt, C as pe, H as fe, $ as yt } from "./index.js";
|
|
12
|
-
import { c as se, e as mt } from "./type-guards.js";
|
|
13
|
-
import { h as xe, i as O, j as gt, n as pt, g as b, m as A, e as Se } from "./index5.js";
|
|
14
|
-
import { g as Be } from "./series-types.js";
|
|
15
|
-
import { g as oe } from "./utils2.js";
|
|
16
|
-
import { a as ft, b as St } from "./series-length.js";
|
|
17
|
-
import { i as Ft, R as ht } from "./rest-js-object-literals.js";
|
|
5
|
+
import { s as N, u as E, g as re, a as Fe, b as Ve, c as Ne, d as de } from "./utils.js";
|
|
6
|
+
import { w as R, bY as Re, bm as ke, x as Oe, Y as K, cq as De, cp as we, p as Pe, aH as le, c2 as Ee, d as Me, aG as Ye, I as $e, a7 as We, bk as Xe, W as He, e as Ue, bo as je, cY as Ke, v as Qe, d2 as ye, bM as ze, d3 as _e, bI as Ge, B as Ze, d0 as Je, an as X, a6 as Te, cR as ne, b9 as et, ba as oe, k as ee, bq as tt, bu as me, bb as U, bh as ge } from "./index2.js";
|
|
7
|
+
import { a as M, s as xe, g as Q, b as pe, c as st } from "./data.js";
|
|
8
|
+
import { u as v, r as L, k as it, n as V, m as j, p as at, t as rt, s as te } from "./chart-object-literals.js";
|
|
9
|
+
import { i as lt, R as nt } from "./rest-js-object-literals.js";
|
|
18
10
|
import { i as z } from "./index4.js";
|
|
19
|
-
|
|
11
|
+
import { az as ot, t as ut, Y as ct, a9 as dt, al as yt, x as mt, C as fe, H as Se, $ as gt } from "./index.js";
|
|
12
|
+
import { C as w, F as Y, d as D } from "./index3.js";
|
|
13
|
+
import { h as Be, i as O, j as pt, n as ft, g as b, m as A, e as he } from "./index5.js";
|
|
14
|
+
import { convertChartSpec as St } from "../utils/chart-config/converter/index.js";
|
|
15
|
+
import { c as se, e as ht } from "./type-guards.js";
|
|
16
|
+
import { g as Ce } from "./series-types.js";
|
|
17
|
+
import { g as ue } from "./utils2.js";
|
|
18
|
+
import { a as Ft, b as Tt } from "./series-length.js";
|
|
19
|
+
const ss = (t) => {
|
|
20
20
|
let e;
|
|
21
21
|
const s = t.series[0];
|
|
22
22
|
return R(s) && (e = s.temporalBinning?.size), e;
|
|
23
|
-
},
|
|
23
|
+
}, xt = (t) => {
|
|
24
24
|
let e;
|
|
25
25
|
const s = t.series[0];
|
|
26
26
|
return R(s) && (e = s.temporalBinning?.unit), e;
|
|
27
|
-
},
|
|
27
|
+
}, is = (t) => {
|
|
28
28
|
let e;
|
|
29
29
|
const s = t.series[0];
|
|
30
30
|
return R(s) && (e = s.temporalBinning?.timeAggregationType), e;
|
|
31
|
-
},
|
|
31
|
+
}, as = (t) => {
|
|
32
32
|
let e;
|
|
33
33
|
const s = t.series[0];
|
|
34
34
|
return R(s) && (e = s.temporalBinning?.trimIncompleteTimeInterval), e;
|
|
35
|
-
},
|
|
35
|
+
}, rs = (t) => {
|
|
36
36
|
let e;
|
|
37
37
|
const s = t.series[0];
|
|
38
38
|
return R(s) && (e = s.temporalBinning?.nullPolicy), e;
|
|
39
|
-
},
|
|
39
|
+
}, Bt = (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 });
|
|
43
|
-
},
|
|
43
|
+
}, Ct = (t, e) => {
|
|
44
44
|
e?.series?.forEach((s) => {
|
|
45
45
|
R(s) && (s.temporalBinning ??= {}, s.temporalBinning.nullPolicy = t);
|
|
46
46
|
}), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
47
|
-
},
|
|
47
|
+
}, ls = (t, e) => {
|
|
48
48
|
e.series?.forEach((s) => {
|
|
49
49
|
R(s) && (s.temporalBinning ??= {}, s.temporalBinning.unit = t);
|
|
50
50
|
}), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
51
|
-
},
|
|
51
|
+
}, ns = (t, e) => {
|
|
52
52
|
e.series?.forEach((s) => {
|
|
53
53
|
R(s) && (s.temporalBinning ??= {}, s.temporalBinning.timeAggregationType = t);
|
|
54
54
|
}), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
55
|
-
},
|
|
55
|
+
}, os = (t, e) => {
|
|
56
56
|
e.series?.forEach((s) => {
|
|
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
|
-
},
|
|
60
|
-
|
|
59
|
+
}, us = (t) => {
|
|
60
|
+
Bt(0, t);
|
|
61
61
|
};
|
|
62
|
-
function
|
|
62
|
+
function cs(t, e) {
|
|
63
63
|
let s;
|
|
64
64
|
return e !== void 0 && (s = { ...e }, s.legend !== void 0 && (s.legend.position = t)), s;
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function ds(t, e) {
|
|
67
67
|
let s;
|
|
68
68
|
return e !== void 0 && (s = { ...e }, s.legend !== void 0 && (s.legend.visible = t)), s;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function ys(t, e) {
|
|
71
71
|
let s;
|
|
72
72
|
return e !== void 0 && (s = { ...e, rotated: t }), s;
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function bt(t) {
|
|
75
75
|
let e;
|
|
76
76
|
return t !== void 0 && (e = { ...t }, delete e.axes?.[0]?.minimum, delete e.axes?.[0]?.maximum, delete e.axes?.[1]?.minimum, delete e.axes?.[1]?.maximum), e;
|
|
77
77
|
}
|
|
78
|
-
function
|
|
79
|
-
return e != null ||
|
|
78
|
+
function ms(t, e) {
|
|
79
|
+
return e != null || Be(t);
|
|
80
80
|
}
|
|
81
|
-
async function
|
|
81
|
+
async function gs(t) {
|
|
82
82
|
const { config: e, layer: s, abortSignal: r } = t;
|
|
83
83
|
let a = !1;
|
|
84
|
-
return se(s) ||
|
|
84
|
+
return se(s) || ht(e) ? e && se(s) && (a = await ke({ config: e, layer: s, abortSignal: r })) : a = !0, a;
|
|
85
85
|
}
|
|
86
|
-
async function
|
|
86
|
+
async function At(t) {
|
|
87
87
|
const {
|
|
88
88
|
queryObject: e,
|
|
89
89
|
chartConfig: s,
|
|
@@ -94,66 +94,66 @@ async function bt(t) {
|
|
|
94
94
|
ignoreViewExtent: o,
|
|
95
95
|
setTimeBinningInfoWhenNotProvided: c,
|
|
96
96
|
returnFeaturesExtent: m,
|
|
97
|
-
chartLimits:
|
|
97
|
+
chartLimits: h
|
|
98
98
|
} = t;
|
|
99
99
|
let l = [], g;
|
|
100
|
-
const d = ae(s), y = d.series[0], u =
|
|
100
|
+
const d = ae(s), y = d.series[0], u = Ue({
|
|
101
101
|
queryObject: e,
|
|
102
102
|
chartConfig: d,
|
|
103
103
|
runtimeDataFilters: n,
|
|
104
104
|
ignoreViewExtent: o
|
|
105
105
|
});
|
|
106
|
-
if (u.outStatistics?.[0]?.outStatisticFieldName && (u.outStatistics[0].outStatisticFieldName =
|
|
106
|
+
if (u.outStatistics?.[0]?.outStatisticFieldName && (u.outStatistics[0].outStatisticFieldName = ot.outStatistics.outStatisticFieldName), R(y) && je({
|
|
107
107
|
xAxisValueFormatType: Ke(d),
|
|
108
108
|
setTimeBinningInfoWhenNotProvided: c,
|
|
109
109
|
seriesConfig: y,
|
|
110
110
|
queryObject: e
|
|
111
|
-
}) &&
|
|
112
|
-
const { temporalBinning:
|
|
111
|
+
}) && Qe(r, e)) {
|
|
112
|
+
const { temporalBinning: f, x } = y, { uniqueQuery: C } = ye({
|
|
113
113
|
chartConfig: d,
|
|
114
114
|
queryConfig: u,
|
|
115
115
|
queryObject: e,
|
|
116
116
|
setTimeBinningInfoWhenNotProvided: c,
|
|
117
117
|
returnFeaturesExtent: m,
|
|
118
|
-
chartLimits:
|
|
119
|
-
}),
|
|
120
|
-
g = await
|
|
118
|
+
chartLimits: h
|
|
119
|
+
}), F = s.axes?.[0].valueFormat.type === v.DateAxisFormat ? s.axes[0].valueFormat.intlOptions.timeZone : void 0;
|
|
120
|
+
g = await ze({
|
|
121
121
|
queryObject: e,
|
|
122
122
|
dateField: x,
|
|
123
123
|
splitByField: r,
|
|
124
124
|
queryConfig: C,
|
|
125
|
-
axisTimeZone:
|
|
126
|
-
temporalBinning:
|
|
125
|
+
axisTimeZone: F,
|
|
126
|
+
temporalBinning: f,
|
|
127
127
|
errorStrings: a,
|
|
128
128
|
abortSignal: i
|
|
129
129
|
}), l = Array.from(
|
|
130
130
|
new Set(
|
|
131
|
-
g.flatMap((
|
|
132
|
-
const { stackedAttributes: k } =
|
|
131
|
+
g.flatMap((p) => {
|
|
132
|
+
const { stackedAttributes: k } = p;
|
|
133
133
|
let T = [];
|
|
134
134
|
return k && (T = k.map((S) => S[r]).filter((S) => S !== void 0)), T;
|
|
135
135
|
})
|
|
136
136
|
).values()
|
|
137
137
|
);
|
|
138
138
|
} else {
|
|
139
|
-
const { uniqueQuery:
|
|
139
|
+
const { uniqueQuery: f } = ye({
|
|
140
140
|
chartConfig: d,
|
|
141
141
|
queryObject: e,
|
|
142
142
|
queryConfig: u,
|
|
143
143
|
setTimeBinningInfoWhenNotProvided: c,
|
|
144
144
|
returnFeaturesExtent: m,
|
|
145
|
-
chartLimits:
|
|
146
|
-
}), { elementCount: x } = await
|
|
145
|
+
chartLimits: h
|
|
146
|
+
}), { elementCount: x } = await _e({
|
|
147
147
|
chartConfig: d,
|
|
148
148
|
queryObject: e,
|
|
149
149
|
queryConfig: u,
|
|
150
|
-
behaviorAfterLimit:
|
|
151
|
-
numberMaxOfFeaturesToFetch:
|
|
150
|
+
behaviorAfterLimit: h?.behaviorAfterLimit,
|
|
151
|
+
numberMaxOfFeaturesToFetch: f.num,
|
|
152
152
|
abortSignal: i
|
|
153
153
|
});
|
|
154
154
|
g = await Ge({
|
|
155
155
|
queryObject: e,
|
|
156
|
-
queryConfig:
|
|
156
|
+
queryConfig: f,
|
|
157
157
|
featureCount: x,
|
|
158
158
|
errorStrings: a,
|
|
159
159
|
abortSignal: i
|
|
@@ -165,7 +165,7 @@ async function bt(t) {
|
|
|
165
165
|
}
|
|
166
166
|
return { allValues: l, preFetchedQueryResponse: g };
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function vt(t, e) {
|
|
169
169
|
const s = /* @__PURE__ */ new Map();
|
|
170
170
|
return t.series.forEach((r) => {
|
|
171
171
|
let a = le({
|
|
@@ -178,14 +178,14 @@ function At(t, e) {
|
|
|
178
178
|
escape: !1
|
|
179
179
|
});
|
|
180
180
|
e && a !== null && (a = Number(a));
|
|
181
|
-
const i =
|
|
181
|
+
const i = Ce([r]);
|
|
182
182
|
i !== void 0 && s.set(i, [
|
|
183
183
|
...s.get(i) ?? [],
|
|
184
184
|
a
|
|
185
185
|
]);
|
|
186
186
|
}), s;
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function It(t) {
|
|
189
189
|
const { allValues: e, configUniqueValuesPerSeriesType: s, initialConfigWasEmpty: r } = t, a = /* @__PURE__ */ new Map();
|
|
190
190
|
return Array.from(s.keys()).forEach((i) => {
|
|
191
191
|
const n = s.get(i) ?? [];
|
|
@@ -195,7 +195,7 @@ function vt(t) {
|
|
|
195
195
|
}), a.set(i, o);
|
|
196
196
|
}), a;
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function Lt(t) {
|
|
199
199
|
const { chartConfig: e, missingValue: s, splitByField: r, seriesTemplate: a } = t, i = JSON.parse(
|
|
200
200
|
JSON.stringify({
|
|
201
201
|
...e.series[0],
|
|
@@ -203,7 +203,7 @@ function It(t) {
|
|
|
203
203
|
})
|
|
204
204
|
);
|
|
205
205
|
if (i.query) {
|
|
206
|
-
if (i.id = s === null ?
|
|
206
|
+
if (i.id = s === null ? Y.nullValue : `${s}`, i.name = `${s}`, i.query.outStatistics?.[0] !== void 0) {
|
|
207
207
|
const o = i.id;
|
|
208
208
|
i.query.outStatistics[0].outStatisticFieldName = o, "y" in i && (i.y = o);
|
|
209
209
|
}
|
|
@@ -212,7 +212,7 @@ function It(t) {
|
|
|
212
212
|
}
|
|
213
213
|
return i;
|
|
214
214
|
}
|
|
215
|
-
async function
|
|
215
|
+
async function qt(t) {
|
|
216
216
|
const {
|
|
217
217
|
updateSplitBySeries: e,
|
|
218
218
|
config: s,
|
|
@@ -223,15 +223,15 @@ async function Lt(t) {
|
|
|
223
223
|
ignoreViewExtent: o,
|
|
224
224
|
setTimeBinningInfoWhenNotProvided: c,
|
|
225
225
|
returnFeaturesExtent: m,
|
|
226
|
-
chartLimits:
|
|
226
|
+
chartLimits: h
|
|
227
227
|
} = t, { seriesTemplate: l } = e ?? {};
|
|
228
228
|
let g;
|
|
229
229
|
if (r && !se(r) && e !== void 0 && s !== void 0 && (s.series.length > 0 || l !== void 0) && e.addMissingSeries) {
|
|
230
230
|
const d = s.series.length === 0;
|
|
231
231
|
s.series.length === 0 && l !== void 0 && s.series.push(l);
|
|
232
|
-
const y =
|
|
233
|
-
if (y ===
|
|
234
|
-
const u =
|
|
232
|
+
const y = K(s.series);
|
|
233
|
+
if (y === w.BoxPlotMonoFieldAndSplitBy || y === w.BoxPlotMultiFieldsAndSplitBy || y === w.BoxPlotMonoFieldAndCategoryAndSplitBy || y === w.BarAndLineSplitBy || y === w.BarAndLineSplitByNoAggregation) {
|
|
234
|
+
const u = Ye(s.series[0]?.query?.where), f = $e(r), x = We(u, f), C = x ? Xe(x) : !1, F = await At({
|
|
235
235
|
queryObject: r,
|
|
236
236
|
chartConfig: s,
|
|
237
237
|
splitByField: u,
|
|
@@ -240,22 +240,22 @@ async function Lt(t) {
|
|
|
240
240
|
ignoreViewExtent: o,
|
|
241
241
|
setTimeBinningInfoWhenNotProvided: c,
|
|
242
242
|
returnFeaturesExtent: m,
|
|
243
|
-
chartLimits:
|
|
243
|
+
chartLimits: h,
|
|
244
244
|
errorStrings: a
|
|
245
|
-
}), { allValues:
|
|
246
|
-
if ({ preFetchedQueryResponse: g } =
|
|
247
|
-
const k =
|
|
248
|
-
allValues:
|
|
245
|
+
}), { allValues: p } = F;
|
|
246
|
+
if ({ preFetchedQueryResponse: g } = F, p.length > 0) {
|
|
247
|
+
const k = vt(s, C), T = It({
|
|
248
|
+
allValues: p,
|
|
249
249
|
configUniqueValuesPerSeriesType: k,
|
|
250
250
|
initialConfigWasEmpty: d
|
|
251
251
|
});
|
|
252
252
|
Array.from(T.keys()).forEach((S) => {
|
|
253
|
-
(T.get(S) ?? []).forEach((
|
|
253
|
+
(T.get(S) ?? []).forEach((q) => {
|
|
254
254
|
s.series.push(
|
|
255
|
-
|
|
255
|
+
Lt({
|
|
256
256
|
chartConfig: s,
|
|
257
257
|
seriesTemplate: l,
|
|
258
|
-
missingValue:
|
|
258
|
+
missingValue: q,
|
|
259
259
|
splitByField: u
|
|
260
260
|
})
|
|
261
261
|
);
|
|
@@ -266,10 +266,10 @@ async function Lt(t) {
|
|
|
266
266
|
}
|
|
267
267
|
return g;
|
|
268
268
|
}
|
|
269
|
-
function
|
|
270
|
-
e && !
|
|
269
|
+
function Vt(t, e) {
|
|
270
|
+
e && !Be(e) && (e = Me({ chartConfig: e, queryObject: t }));
|
|
271
271
|
}
|
|
272
|
-
async function
|
|
272
|
+
async function ps(t) {
|
|
273
273
|
const {
|
|
274
274
|
configToAlter: e,
|
|
275
275
|
layer: s,
|
|
@@ -280,13 +280,13 @@ async function gs(t) {
|
|
|
280
280
|
abortSignal: o,
|
|
281
281
|
runtimeDataFilters: c,
|
|
282
282
|
ignoreViewExtent: m,
|
|
283
|
-
setTimeBinningInfoWhenNotProvided:
|
|
283
|
+
setTimeBinningInfoWhenNotProvided: h,
|
|
284
284
|
returnFeaturesExtent: l,
|
|
285
285
|
chartLimits: g,
|
|
286
286
|
errorStrings: d
|
|
287
287
|
} = t;
|
|
288
288
|
let y = e, u;
|
|
289
|
-
return y && (
|
|
289
|
+
return y && (Vt(s, y), y = await St(y, s, void 0, o), r && n && (u = await qt({
|
|
290
290
|
updateSplitBySeries: a,
|
|
291
291
|
config: y,
|
|
292
292
|
queryObject: n,
|
|
@@ -294,24 +294,24 @@ async function gs(t) {
|
|
|
294
294
|
abortSignal: o,
|
|
295
295
|
runtimeDataFilters: c,
|
|
296
296
|
ignoreViewExtent: m,
|
|
297
|
-
setTimeBinningInfoWhenNotProvided:
|
|
297
|
+
setTimeBinningInfoWhenNotProvided: h,
|
|
298
298
|
returnFeaturesExtent: l,
|
|
299
299
|
chartLimits: g
|
|
300
|
-
})), y =
|
|
300
|
+
})), y = Re(y, i)), { alteredConfig: y, preFetchedQueryResponse: u };
|
|
301
301
|
}
|
|
302
|
-
function
|
|
302
|
+
function Nt(t, e) {
|
|
303
303
|
let s = !1;
|
|
304
304
|
if (e !== void 0) {
|
|
305
|
-
const r =
|
|
305
|
+
const r = He({ key: Ze.Average, splitBy: e });
|
|
306
306
|
s = Number.isFinite(t[r]);
|
|
307
307
|
}
|
|
308
308
|
return s;
|
|
309
309
|
}
|
|
310
|
-
function
|
|
310
|
+
function fs(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 =
|
|
314
|
+
const o = Oe(e), c = Ce(s?.series), m = K(s?.series), h = /* @__PURE__ */ new Set();
|
|
315
315
|
switch (c) {
|
|
316
316
|
case v.ComboLineAndBarSeries:
|
|
317
317
|
case v.BarSeries:
|
|
@@ -320,141 +320,141 @@ function ps(t) {
|
|
|
320
320
|
i.series.forEach((g) => {
|
|
321
321
|
if (Array.isArray(o)) {
|
|
322
322
|
let d = "";
|
|
323
|
-
"y" in g && (d = Array.isArray(g.y) ? g.y[0] : g.y, m ===
|
|
324
|
-
(u) =>
|
|
323
|
+
"y" in g && (d = Array.isArray(g.y) ? g.y[0] : g.y, m === w.BarAndLineSplitByNoAggregation && (d = `${d}_${le({ where: g.query?.where, keepSurroundingQuotes: !1, escape: !1 })}`), o.some(
|
|
324
|
+
(u) => Ee({
|
|
325
325
|
dataItem: u,
|
|
326
326
|
x: g.x,
|
|
327
327
|
y: d,
|
|
328
328
|
aggregationType: s.series[0].query?.outStatistics?.[0]?.statisticType
|
|
329
329
|
})
|
|
330
|
-
) &&
|
|
330
|
+
) && h.add(g));
|
|
331
331
|
}
|
|
332
332
|
});
|
|
333
333
|
break;
|
|
334
334
|
}
|
|
335
335
|
case v.BoxPlotSeries: {
|
|
336
|
-
if (
|
|
337
|
-
const g =
|
|
336
|
+
if (De(s)) {
|
|
337
|
+
const g = we(s);
|
|
338
338
|
s.series.forEach((d) => {
|
|
339
339
|
let y, u;
|
|
340
340
|
d.type === v.BoxPlotSeries ? (y = e.dataItems, u = y?.some(
|
|
341
|
-
(
|
|
342
|
-
dataItem:
|
|
341
|
+
(f) => Pe({
|
|
342
|
+
dataItem: f,
|
|
343
343
|
splitBy: d.query?.where,
|
|
344
344
|
showOutliers: g
|
|
345
345
|
})
|
|
346
346
|
)) : d.type === v.LineSeries && (y = e.meanLines, u = y?.some(
|
|
347
|
-
(
|
|
348
|
-
)), u &&
|
|
347
|
+
(f) => Nt(f, d.query?.where)
|
|
348
|
+
)), u && h.add(d);
|
|
349
349
|
});
|
|
350
350
|
}
|
|
351
351
|
break;
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
|
-
const l = Array.from(
|
|
354
|
+
const l = Array.from(h.values());
|
|
355
355
|
n = l.length > 0 && l.length < a, n && (i.series = l);
|
|
356
356
|
}
|
|
357
357
|
return { seriesFilteredOut: n, filteredConfig: i };
|
|
358
358
|
}
|
|
359
|
-
const
|
|
359
|
+
const Ss = (t) => t.hideEmptyRowsAndColumns, hs = (t, e) => {
|
|
360
360
|
t.hideEmptyRowsAndColumns = e;
|
|
361
361
|
}, Fs = (t, e) => {
|
|
362
362
|
const s = t.series[0];
|
|
363
363
|
s.heatRulesType = e;
|
|
364
|
-
},
|
|
364
|
+
}, Ts = (t) => t.series[0].heatRulesType, xs = (t, e) => {
|
|
365
365
|
const s = t.series[0];
|
|
366
366
|
s.gradientRules = e;
|
|
367
|
-
},
|
|
368
|
-
const { yField: e, config: s, layerInfo: r } = t, { layerFieldsInfo: a } = r, i =
|
|
369
|
-
if (typeof e == "string" && n !== e && c && (c.y = e,
|
|
370
|
-
const m =
|
|
367
|
+
}, Bs = (t) => t.series[0].gradientRules, Cs = (t) => {
|
|
368
|
+
const { yField: e, config: s, layerInfo: r } = t, { layerFieldsInfo: a } = r, i = ue(1, s), n = Rt(s), o = z(s), c = s.series[0];
|
|
369
|
+
if (typeof e == "string" && n !== e && c && (c.y = e, bt(s), n === i || o)) {
|
|
370
|
+
const m = D(a, e);
|
|
371
371
|
E(s, 1, m);
|
|
372
372
|
}
|
|
373
|
-
},
|
|
373
|
+
}, Rt = (t) => t.series[0].y ?? "", bs = (t) => {
|
|
374
374
|
const { binning: e, config: s, commonStrings: r } = t, a = s.series[0];
|
|
375
375
|
if (a.xTemporalBinning = e, e?.unit !== void 0 && e.unit in r.utilsStrings.heatChartCalendarDatePartsUnits) {
|
|
376
376
|
const i = r.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
|
|
377
377
|
E(s, 0, i);
|
|
378
378
|
}
|
|
379
|
-
},
|
|
379
|
+
}, As = (t) => t.series[0].xTemporalBinning, vs = (t) => {
|
|
380
380
|
const { binning: e, config: s, commonStrings: r } = t, a = s.series[0];
|
|
381
381
|
if (a.yTemporalBinning = e, e?.unit !== void 0 && e.unit in r.utilsStrings.heatChartCalendarDatePartsUnits) {
|
|
382
382
|
const i = r.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
|
|
383
383
|
E(s, 1, i);
|
|
384
384
|
}
|
|
385
|
-
},
|
|
385
|
+
}, Is = (t) => t.series[0].yTemporalBinning, kt = (t, e) => {
|
|
386
386
|
e.orderOptions ??= {};
|
|
387
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 = {
|
|
388
388
|
...e.orderOptions.data ?? {},
|
|
389
389
|
orderType: V.MultiAxes
|
|
390
390
|
};
|
|
391
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);
|
|
392
|
-
},
|
|
392
|
+
}, Ls = (t, e) => {
|
|
393
393
|
const s = e.series[0];
|
|
394
394
|
s.gridLine && (s.gridLine.width = t);
|
|
395
|
-
},
|
|
395
|
+
}, qs = (t) => t.series[0].gridLine?.width, Vs = (t, e) => {
|
|
396
396
|
const s = e.series[0], r = t?.length === 4 && t.every((a) => typeof a == "number");
|
|
397
397
|
s.gridLine && r && (s.gridLine.color = t);
|
|
398
|
-
},
|
|
398
|
+
}, Ns = (t) => t.series[0].gridLine?.color, Rs = (t, e) => {
|
|
399
399
|
const s = e.legend;
|
|
400
400
|
s && (s.position = t);
|
|
401
|
-
},
|
|
402
|
-
const { field: e, config: s, layerInfo: r, commonStrings: a } = t, i = s.series[0].query?.outStatistics?.[0], n =
|
|
401
|
+
}, ks = (t) => t.legend?.position ?? it.Bottom, Os = (t) => t.series[0].query?.outStatistics?.[0]?.onStatisticField, Ds = (t) => {
|
|
402
|
+
const { field: e, config: s, layerInfo: r, commonStrings: a } = t, i = s.series[0].query?.outStatistics?.[0], n = G(s, r, a);
|
|
403
403
|
i ? (i.onStatisticField = e, i.outStatisticFieldName = `${i.statisticType}_${e}`) : s.series[0].query = {
|
|
404
404
|
outStatistics: [
|
|
405
405
|
{
|
|
406
406
|
onStatisticField: e,
|
|
407
|
-
outStatisticFieldName: `${
|
|
408
|
-
statisticType:
|
|
407
|
+
outStatisticFieldName: `${L.Count}_${e}`,
|
|
408
|
+
statisticType: L.Count
|
|
409
409
|
}
|
|
410
410
|
]
|
|
411
|
-
}, n && s.title && (s.title.content.text =
|
|
412
|
-
},
|
|
413
|
-
const { aggregationType: e, config: s, layerInfo: r, commonStrings: a } = t, i = s.series[0]?.query?.outStatistics?.[0], n =
|
|
414
|
-
i && e !==
|
|
415
|
-
},
|
|
411
|
+
}, n && s.title && (s.title.content.text = H(s, r, a));
|
|
412
|
+
}, ws = (t) => t.series[0].query?.outStatistics?.[0].statisticType ?? L.Count, Ps = (t) => {
|
|
413
|
+
const { aggregationType: e, config: s, layerInfo: r, commonStrings: a } = t, i = s.series[0]?.query?.outStatistics?.[0], n = G(s, r, a);
|
|
414
|
+
i && e !== L.NoAggregation && (i.statisticType = e, i.outStatisticFieldName = `${e}_${i.onStatisticField}`), (e === L.Count || e === L.Sum) && Ot(j.Zero, s), n && s.title && (s.title.content.text = H(s, r, a));
|
|
415
|
+
}, Es = (t) => t.nullPolicy, Ot = (t, e) => {
|
|
416
416
|
e.nullPolicy = t;
|
|
417
|
-
},
|
|
417
|
+
}, Ms = (t) => t.series[0].emptyCells, Ys = (t, e) => {
|
|
418
418
|
e.series[0].emptyCells = t;
|
|
419
|
-
}, $s = (t) => t.series[0].emptyCells?.text,
|
|
419
|
+
}, $s = (t) => t.series[0].emptyCells?.text, Ws = (t, e) => {
|
|
420
420
|
e.series[0].emptyCells ? e.series[0].emptyCells.text = t : e.series[0].emptyCells = { text: t };
|
|
421
|
-
},
|
|
421
|
+
}, Xs = (t) => t.includeLeapDay, Hs = (t, e) => {
|
|
422
422
|
e.includeLeapDay = t;
|
|
423
|
-
},
|
|
423
|
+
}, Us = (t) => t.series[0].emptyCells?.symbol, js = (t, e) => {
|
|
424
424
|
e.series[0].emptyCells ? e.series[0].emptyCells.symbol = t : e.series[0].emptyCells = { symbol: t };
|
|
425
425
|
};
|
|
426
426
|
function Ks(t) {
|
|
427
427
|
return t.viewType;
|
|
428
428
|
}
|
|
429
|
-
function
|
|
430
|
-
|
|
429
|
+
function Qs(t, e) {
|
|
430
|
+
Je(e) || (e.viewType = t);
|
|
431
431
|
}
|
|
432
|
-
function
|
|
433
|
-
return t.series[0].classBreaksRules?.breaksCount ??
|
|
432
|
+
function zs(t) {
|
|
433
|
+
return t.series[0].classBreaksRules?.breaksCount ?? Y.classBreaks.breaksCount;
|
|
434
434
|
}
|
|
435
|
-
function
|
|
436
|
-
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.breaksCount = t ??
|
|
437
|
-
breaksCount: t ??
|
|
435
|
+
function _s(t, e) {
|
|
436
|
+
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.breaksCount = t ?? Y.classBreaks.breaksCount : e.series[0].classBreaksRules = {
|
|
437
|
+
breaksCount: t ?? Y.classBreaks.breaksCount
|
|
438
438
|
};
|
|
439
439
|
}
|
|
440
440
|
function Gs(t) {
|
|
441
441
|
return t.series[0].classBreaksRules?.classificationMethod;
|
|
442
442
|
}
|
|
443
|
-
function
|
|
443
|
+
function Zs(t, e) {
|
|
444
444
|
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.classificationMethod = t : e.series[0].classBreaksRules = {
|
|
445
445
|
classificationMethod: t
|
|
446
|
-
}, e.series[0].classBreaksRules.breaksCount = e.series[0].classBreaksRules.breaksCount ??
|
|
446
|
+
}, e.series[0].classBreaksRules.breaksCount = e.series[0].classBreaksRules.breaksCount ?? Y.classBreaks.breaksCount;
|
|
447
447
|
}
|
|
448
|
-
function
|
|
448
|
+
function Js(t, e) {
|
|
449
449
|
e.firstDayOfWeek = t;
|
|
450
450
|
}
|
|
451
|
-
function
|
|
451
|
+
function ei(t) {
|
|
452
452
|
return t.firstDayOfWeek;
|
|
453
453
|
}
|
|
454
|
-
function
|
|
454
|
+
function ti(t) {
|
|
455
455
|
return t.series[0].classBreaksRules?.colorRampInfo?.name;
|
|
456
456
|
}
|
|
457
|
-
function
|
|
457
|
+
function si(t, e) {
|
|
458
458
|
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.colorRampInfo = {
|
|
459
459
|
...e.series[0].classBreaksRules.colorRampInfo,
|
|
460
460
|
name: t
|
|
@@ -465,10 +465,10 @@ function ti(t, e) {
|
|
|
465
465
|
}
|
|
466
466
|
};
|
|
467
467
|
}
|
|
468
|
-
function
|
|
468
|
+
function ii(t) {
|
|
469
469
|
return t.series[0].classBreaksRules?.colorRampInfo?.flipped ?? !1;
|
|
470
470
|
}
|
|
471
|
-
function
|
|
471
|
+
function ai(t, e) {
|
|
472
472
|
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.colorRampInfo = {
|
|
473
473
|
...e.series[0].classBreaksRules.colorRampInfo,
|
|
474
474
|
flipped: t
|
|
@@ -478,25 +478,25 @@ function ii(t, e) {
|
|
|
478
478
|
}
|
|
479
479
|
};
|
|
480
480
|
}
|
|
481
|
-
function
|
|
482
|
-
const { seriesIndex: e, xAxisField: s, aggregationType: r, config: a, layerInfo: i, commonStrings: n } = t, o =
|
|
481
|
+
function $(t) {
|
|
482
|
+
const { seriesIndex: e, xAxisField: s, aggregationType: r, config: a, layerInfo: i, commonStrings: n } = t, o = X(i?.layer).idField;
|
|
483
483
|
let c;
|
|
484
484
|
const m = a.series[e ?? 0];
|
|
485
|
-
let
|
|
485
|
+
let h = !1, l = !1, g = !1;
|
|
486
486
|
if (m === void 0) {
|
|
487
487
|
const u = a.series;
|
|
488
|
-
|
|
488
|
+
h = u.slice(0, e).every((f) => b(f)), l = u.slice(0, e).every((f) => A(f)), g = u.slice(0, e).every((f) => he(f));
|
|
489
489
|
} else
|
|
490
|
-
|
|
491
|
-
|
|
490
|
+
h = b(m), l = A(m), g = he(m);
|
|
491
|
+
h ? c = ct({
|
|
492
492
|
commonStrings: n,
|
|
493
493
|
seriesIndex: e,
|
|
494
494
|
objectIDField: o
|
|
495
|
-
}) : l ? c =
|
|
495
|
+
}) : l ? c = dt({
|
|
496
496
|
commonStrings: n,
|
|
497
497
|
seriesIndex: e,
|
|
498
498
|
objectIDField: o
|
|
499
|
-
}) : g ? c =
|
|
499
|
+
}) : g ? c = yt(n, o) : c = mt({
|
|
500
500
|
seriesIndex: e,
|
|
501
501
|
objectIDField: o,
|
|
502
502
|
commonStrings: n
|
|
@@ -508,13 +508,13 @@ function Y(t) {
|
|
|
508
508
|
dataLabels: {
|
|
509
509
|
...c.dataLabels,
|
|
510
510
|
type: c.dataLabels?.type ?? v.Text,
|
|
511
|
-
content: { ...c.dataLabels?.content, ...d?.content, type:
|
|
511
|
+
content: { ...c.dataLabels?.content, ...d?.content, type: lt.TS },
|
|
512
512
|
visible: d?.visible ?? !1
|
|
513
513
|
}
|
|
514
514
|
};
|
|
515
515
|
if (y.query = {
|
|
516
516
|
groupByFieldsForStatistics: [s]
|
|
517
|
-
}, r !==
|
|
517
|
+
}, r !== L.NoAggregation && o !== void 0) {
|
|
518
518
|
const u = `${r}_${o}_0`.toUpperCase();
|
|
519
519
|
y.y = u, y.query.outStatistics = [
|
|
520
520
|
{
|
|
@@ -524,22 +524,19 @@ function Y(t) {
|
|
|
524
524
|
}
|
|
525
525
|
];
|
|
526
526
|
}
|
|
527
|
-
if (R(a.series[0]) && R(y)) {
|
|
528
|
-
let u;
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
unit: p
|
|
534
|
-
};
|
|
535
|
-
}
|
|
527
|
+
if (R(a.series[0]) && R(y) && oe({ chartConfig: a })) {
|
|
528
|
+
let u = xt(a);
|
|
529
|
+
u === te.Quarter && (u = te.Month), y.temporalBinning = {
|
|
530
|
+
...a.series[0]?.temporalBinning,
|
|
531
|
+
unit: u
|
|
532
|
+
};
|
|
536
533
|
}
|
|
537
534
|
return ae(y);
|
|
538
535
|
}
|
|
539
|
-
function
|
|
540
|
-
const { layerFieldsInfo: r } = e, { idField: a, isTraditionalTypeOID: i } =
|
|
536
|
+
function H(t, e, s) {
|
|
537
|
+
const { layerFieldsInfo: r } = e, { idField: a, isTraditionalTypeOID: i } = X(e.layer), n = M(t), o = _(t), c = Ae(t), m = ce(t), h = i && (o.length === 0 || o.includes(a)), l = ut(c, s), g = h ? "" : o.map((F) => D(r ?? [], F)).join(", "), d = D(r ?? [], n), y = D(r ?? [], m), u = t.series.some((F) => O(F)), f = u ? "category" : "xAxisField", x = d;
|
|
541
538
|
let C = "";
|
|
542
|
-
if (
|
|
539
|
+
if (xe({
|
|
543
540
|
fieldName: n,
|
|
544
541
|
numericFields: o,
|
|
545
542
|
fieldList: r
|
|
@@ -548,68 +545,68 @@ function j(t, e, s) {
|
|
|
548
545
|
aggregationType: l,
|
|
549
546
|
aggregationFields: g
|
|
550
547
|
});
|
|
551
|
-
else if (c ===
|
|
552
|
-
const
|
|
548
|
+
else if (c === L.NoAggregation) {
|
|
549
|
+
const F = h ? a : g;
|
|
553
550
|
if (m === "") {
|
|
554
|
-
const
|
|
555
|
-
C = P(s.titleLabels[
|
|
556
|
-
aggregationType:
|
|
557
|
-
[
|
|
551
|
+
const p = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
|
|
552
|
+
C = P(s.titleLabels[p], {
|
|
553
|
+
aggregationType: F,
|
|
554
|
+
[f]: x
|
|
558
555
|
});
|
|
559
556
|
} else {
|
|
560
|
-
const
|
|
561
|
-
C = P(s.titleLabels[
|
|
562
|
-
aggregationType:
|
|
563
|
-
[
|
|
557
|
+
const p = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
|
|
558
|
+
C = P(s.titleLabels[p], {
|
|
559
|
+
aggregationType: F,
|
|
560
|
+
[f]: x,
|
|
564
561
|
splitByField: y
|
|
565
562
|
});
|
|
566
563
|
}
|
|
567
|
-
} else if (c ===
|
|
564
|
+
} else if (c === L.Count)
|
|
568
565
|
if (m === "") {
|
|
569
|
-
const
|
|
570
|
-
C = P(s.titleLabels[
|
|
566
|
+
const F = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
|
|
567
|
+
C = P(s.titleLabels[F], {
|
|
571
568
|
aggregationType: l,
|
|
572
|
-
[
|
|
569
|
+
[f]: x
|
|
573
570
|
});
|
|
574
571
|
} else {
|
|
575
|
-
const
|
|
576
|
-
C = P(s.titleLabels[
|
|
572
|
+
const F = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
|
|
573
|
+
C = P(s.titleLabels[F], {
|
|
577
574
|
aggregationType: l,
|
|
578
|
-
[
|
|
575
|
+
[f]: x,
|
|
579
576
|
splitByField: y
|
|
580
577
|
});
|
|
581
578
|
}
|
|
582
579
|
else if (m !== "") {
|
|
583
|
-
const
|
|
584
|
-
C = P(s.titleLabels[
|
|
580
|
+
const F = u ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
|
|
581
|
+
C = P(s.titleLabels[F], {
|
|
585
582
|
aggregationType: l,
|
|
586
583
|
aggregationField: g,
|
|
587
|
-
[
|
|
584
|
+
[f]: x,
|
|
588
585
|
splitByField: y
|
|
589
586
|
});
|
|
590
587
|
} else if (o.length > 0) {
|
|
591
|
-
const
|
|
592
|
-
C = P(s.titleLabels[
|
|
588
|
+
const F = u ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
|
|
589
|
+
C = P(s.titleLabels[F], {
|
|
593
590
|
aggregationType: l,
|
|
594
591
|
aggregationFields: g,
|
|
595
|
-
[
|
|
592
|
+
[f]: x
|
|
596
593
|
});
|
|
597
594
|
}
|
|
598
595
|
return C;
|
|
599
596
|
}
|
|
600
|
-
const
|
|
597
|
+
const be = (t) => le({
|
|
601
598
|
where: t.query?.where,
|
|
602
599
|
normalize: !1,
|
|
603
600
|
escape: !1
|
|
604
|
-
}) ?? "",
|
|
601
|
+
}) ?? "", Ae = (t) => t?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? L.NoAggregation, ce = qe(
|
|
605
602
|
(t) => {
|
|
606
603
|
const e = t?.series?.[0]?.query?.where?.split("=")[0].trim() ?? "";
|
|
607
|
-
return
|
|
604
|
+
return et(t?.series?.[0]?.query?.where) ? "" : e;
|
|
608
605
|
},
|
|
609
606
|
(t) => t?.series?.[0]?.query?.where
|
|
610
|
-
),
|
|
607
|
+
), _ = (t) => {
|
|
611
608
|
let e = [];
|
|
612
|
-
if (
|
|
609
|
+
if (ce(t) === "")
|
|
613
610
|
e = t?.series.map((s) => {
|
|
614
611
|
const r = s.query?.outStatistics?.map((a) => a.onStatisticField) ?? [];
|
|
615
612
|
return r?.length > 0 ? r : s.y;
|
|
@@ -620,41 +617,41 @@ const Ce = (t) => le({
|
|
|
620
617
|
}
|
|
621
618
|
return e.filter((s) => s !== "");
|
|
622
619
|
};
|
|
623
|
-
function
|
|
620
|
+
function Dt(t) {
|
|
624
621
|
const { numericFields: e, aggregationType: s, config: r, layerInfo: a } = t;
|
|
625
622
|
let i = !1;
|
|
626
|
-
s ===
|
|
627
|
-
const m = a.layerFieldsInfo.find((
|
|
628
|
-
return m !== void 0 ?
|
|
629
|
-
})),
|
|
623
|
+
s === L.Count ? i = !0 : s === L.NoAggregation && (i = e.every((c) => {
|
|
624
|
+
const m = a.layerFieldsInfo.find((h) => h.name === c);
|
|
625
|
+
return m !== void 0 ? ge(m) : !1;
|
|
626
|
+
})), de(r, 1, i);
|
|
630
627
|
const n = r.series.some((c) => b(c)), o = r.series.some((c) => A(c));
|
|
631
628
|
if (n || o) {
|
|
632
|
-
const c = M(r), m = a.layerFieldsInfo.find((l) => l.name === c),
|
|
633
|
-
|
|
629
|
+
const c = M(r), m = a.layerFieldsInfo.find((l) => l.name === c), h = m !== void 0 && ge(m);
|
|
630
|
+
de(r, 0, h);
|
|
634
631
|
}
|
|
635
632
|
}
|
|
636
633
|
const ie = (t) => {
|
|
637
634
|
let e;
|
|
638
635
|
if (ne(t)) {
|
|
639
636
|
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;
|
|
640
|
-
e = [
|
|
637
|
+
e = [pe(s, a), pe(r, i)];
|
|
641
638
|
} else {
|
|
642
|
-
const s = t.orderOptions?.data?.orderType ?? V.Category, r = t.orderOptions?.data && "orderBy" in t.orderOptions.data ? t.orderOptions.data.orderBy :
|
|
643
|
-
e = [
|
|
639
|
+
const s = t.orderOptions?.data?.orderType ?? V.Category, r = t.orderOptions?.data && "orderBy" in t.orderOptions.data ? t.orderOptions.data.orderBy : at.Ascending;
|
|
640
|
+
e = [st(r, s)];
|
|
644
641
|
}
|
|
645
642
|
return e;
|
|
646
643
|
};
|
|
647
|
-
function
|
|
644
|
+
function wt(t) {
|
|
648
645
|
const { xAxisField: e, numericFields: s, aggregationType: r, config: a, layerInfo: i, commonStrings: n } = t, { layerFieldsInfo: o } = i;
|
|
649
646
|
let c = !1;
|
|
650
|
-
const m =
|
|
647
|
+
const m = $({
|
|
651
648
|
config: a,
|
|
652
649
|
xAxisField: e,
|
|
653
650
|
aggregationType: r,
|
|
654
651
|
layerInfo: i,
|
|
655
652
|
seriesIndex: 0,
|
|
656
653
|
commonStrings: n
|
|
657
|
-
}),
|
|
654
|
+
}), h = Q({
|
|
658
655
|
config: a,
|
|
659
656
|
xAxisField: e,
|
|
660
657
|
numericFields: s,
|
|
@@ -666,7 +663,7 @@ function Dt(t) {
|
|
|
666
663
|
id: `series_${Date.now()}`,
|
|
667
664
|
name: n.axisLabels.values,
|
|
668
665
|
x: ee,
|
|
669
|
-
y:
|
|
666
|
+
y: h
|
|
670
667
|
}, g = [];
|
|
671
668
|
for (const y of s)
|
|
672
669
|
g.push({
|
|
@@ -678,11 +675,11 @@ function Dt(t) {
|
|
|
678
675
|
const d = a.series[0];
|
|
679
676
|
return d !== void 0 && (l.id = d.id, (b(l) && b(d) || A(l) && A(d)) && W(l, d), a.colorMatch || (O(d) && O(l) ? l.fillSymbol = d.fillSymbol : (b(l) && b(d) || A(l) && A(d)) && (l.lineSymbol = d.lineSymbol, l.markerSymbol = d.markerSymbol), c = !0), l.id = d.id, d.name !== m.name && (l.name = d.name)), a.series.length === 1 && ((b(l) || A(l)) && W(l, a.series[0]), a.colorMatch || (O(l) ? l.fillSymbol = a.series[0].fillSymbol : (b(l) || A(l)) && (l.lineSymbol = a.series[0].lineSymbol, l.markerSymbol = a.series[0].markerSymbol), c = !0)), a.colorMatch = !c, [l];
|
|
680
677
|
}
|
|
681
|
-
function
|
|
682
|
-
const { xAxisField: e, numericFields: s, aggregationType: r, config: a, layerInfo: i, commonStrings: n } = t, { layerFieldsInfo: o } = i, c =
|
|
683
|
-
let
|
|
678
|
+
function ve(t) {
|
|
679
|
+
const { xAxisField: e, numericFields: s, aggregationType: r, config: a, layerInfo: i, commonStrings: n } = t, { layerFieldsInfo: o } = i, c = X(i.layer).idField, m = [];
|
|
680
|
+
let h = !1;
|
|
684
681
|
for (let u = 0; u < s.length; u += 1) {
|
|
685
|
-
const
|
|
682
|
+
const f = $({
|
|
686
683
|
config: a,
|
|
687
684
|
xAxisField: e,
|
|
688
685
|
aggregationType: r,
|
|
@@ -697,33 +694,33 @@ function Ae(t) {
|
|
|
697
694
|
layer: i.layer,
|
|
698
695
|
numericFieldIndex: u,
|
|
699
696
|
fieldList: o
|
|
700
|
-
}).name,
|
|
701
|
-
let
|
|
702
|
-
...
|
|
697
|
+
}).name, F = s[u];
|
|
698
|
+
let p = {
|
|
699
|
+
...f,
|
|
703
700
|
query: {
|
|
704
|
-
...
|
|
701
|
+
...f.query
|
|
705
702
|
}
|
|
706
703
|
};
|
|
707
|
-
s &&
|
|
708
|
-
...
|
|
709
|
-
id:
|
|
710
|
-
name:
|
|
704
|
+
s && F !== c && (p = {
|
|
705
|
+
...p,
|
|
706
|
+
id: F,
|
|
707
|
+
name: D(o, F)
|
|
711
708
|
});
|
|
712
|
-
let k =
|
|
713
|
-
|
|
709
|
+
let k = F;
|
|
710
|
+
p.query !== void 0 && (r !== L.NoAggregation ? (k = C, p.query.outStatistics = [
|
|
714
711
|
{
|
|
715
|
-
...
|
|
716
|
-
onStatisticField:
|
|
712
|
+
...f.query?.outStatistics?.[0] ?? {},
|
|
713
|
+
onStatisticField: F,
|
|
717
714
|
outStatisticFieldName: C,
|
|
718
715
|
statisticType: r
|
|
719
716
|
}
|
|
720
|
-
]) : delete
|
|
717
|
+
]) : delete p.query.outStatistics), p.y = k;
|
|
721
718
|
const T = a.series.find(
|
|
722
|
-
(S) => S.query?.outStatistics?.[0]?.onStatisticField ===
|
|
719
|
+
(S) => S.query?.outStatistics?.[0]?.onStatisticField === F && S.query.where === void 0 || S.query?.outStatistics === void 0 && (S.y === F || S.x === F)
|
|
723
720
|
);
|
|
724
721
|
if (T !== void 0 && typeof T.y == "string" && T.y.trim() !== "") {
|
|
725
|
-
(b(
|
|
726
|
-
const S =
|
|
722
|
+
(b(p) && b(T) || A(p) && A(T)) && W(p, T), a.colorMatch || (O(p) && O(T) ? p.fillSymbol = T.fillSymbol : (b(p) && b(T) || A(p) && A(T)) && (p.lineSymbol = T.lineSymbol, p.markerSymbol = T.markerSymbol), h = !0);
|
|
723
|
+
const S = $({
|
|
727
724
|
config: a,
|
|
728
725
|
xAxisField: e,
|
|
729
726
|
aggregationType: r,
|
|
@@ -731,19 +728,19 @@ function Ae(t) {
|
|
|
731
728
|
seriesIndex: u,
|
|
732
729
|
commonStrings: n
|
|
733
730
|
});
|
|
734
|
-
|
|
731
|
+
p.id = T.id, T.id !== S.id && T.name !== S.name && (p.id = T.id, p.name = T.name), p.assignToSecondValueAxis = T.assignToSecondValueAxis, p.type === v.HeatSeries && T.type === v.HeatSeries && (p.y = T.y, p.heatRulesType = T.heatRulesType);
|
|
735
732
|
}
|
|
736
|
-
m.push(
|
|
733
|
+
m.push(p);
|
|
737
734
|
}
|
|
738
735
|
const l = m.filter((u) => O(u)), g = m.filter(
|
|
739
736
|
(u) => b(u) || A(u)
|
|
740
737
|
), d = a.series.filter((u) => O(u)), y = a.series.filter(
|
|
741
738
|
(u) => b(u) || A(u)
|
|
742
739
|
);
|
|
743
|
-
return d.length === 1 && l.length === 1 && !a.colorMatch && (O(d[0]) && O(l[0]) && (l[0].fillSymbol = d[0].fillSymbol),
|
|
740
|
+
return d.length === 1 && l.length === 1 && !a.colorMatch && (O(d[0]) && O(l[0]) && (l[0].fillSymbol = d[0].fillSymbol), h = !0), y.length === 1 && g.length === 1 && ((b(y[0]) && b(g[0]) || A(y[0]) && A(g[0])) && W(g[0], y[0]), a.colorMatch || ((b(y[0]) && b(g[0]) || A(y[0]) && A(g[0])) && (g[0].lineSymbol = y[0].lineSymbol, g[0].markerSymbol = y[0].markerSymbol), h = !0)), a.colorMatch = !h, m;
|
|
744
741
|
}
|
|
745
|
-
function
|
|
746
|
-
const { aggregationType: e, config: s, layerInfo: r, commonStrings: a } = t, { layerFieldsInfo: i, layer: n } = r, o = M(s), c =
|
|
742
|
+
function ri(t) {
|
|
743
|
+
const { aggregationType: e, config: s, layerInfo: r, commonStrings: a } = t, { layerFieldsInfo: i, layer: n } = r, o = M(s), c = _(s), m = G(s, r, a), h = Ie(s, r, a);
|
|
747
744
|
if (s.series.forEach((l, g) => {
|
|
748
745
|
const d = Q({
|
|
749
746
|
config: s,
|
|
@@ -755,7 +752,7 @@ function ai(t) {
|
|
|
755
752
|
numericFieldIndex: g,
|
|
756
753
|
fieldList: i
|
|
757
754
|
}).name;
|
|
758
|
-
e !==
|
|
755
|
+
e !== L.NoAggregation ? (l.y = d, l.query = {
|
|
759
756
|
...l.query,
|
|
760
757
|
outStatistics: [
|
|
761
758
|
{
|
|
@@ -765,8 +762,8 @@ function ai(t) {
|
|
|
765
762
|
onStatisticField: l.query?.outStatistics?.[0]?.onStatisticField ?? c[g]
|
|
766
763
|
}
|
|
767
764
|
]
|
|
768
|
-
}) : (delete l.query?.outStatistics, l.y = c[g]);
|
|
769
|
-
}), m && s.title && (s.title.content.text =
|
|
765
|
+
}) : (delete l.query?.outStatistics, l.y = c[g], !oe({ chartConfig: s }) && l.type === v.LineSeries && l.temporalBinning !== void 0 && delete l.temporalBinning);
|
|
766
|
+
}), m && s.title && (s.title.content.text = H(s, r, a)), h && s.series[0].type !== v.HeatSeries) {
|
|
770
767
|
const l = re({
|
|
771
768
|
config: s,
|
|
772
769
|
layerInfo: r,
|
|
@@ -777,7 +774,7 @@ function ai(t) {
|
|
|
777
774
|
E(s, 1, l);
|
|
778
775
|
}
|
|
779
776
|
}
|
|
780
|
-
function
|
|
777
|
+
function Pt(t) {
|
|
781
778
|
const {
|
|
782
779
|
splitByField: e,
|
|
783
780
|
xAxisField: s,
|
|
@@ -787,10 +784,10 @@ function wt(t) {
|
|
|
787
784
|
layerInfo: n,
|
|
788
785
|
commonStrings: o,
|
|
789
786
|
splitByFieldInfos: c
|
|
790
|
-
} = t, { layer: m, layerFieldsInfo:
|
|
787
|
+
} = t, { layer: m, layerFieldsInfo: h } = n, { categoriesArray: l, splitByFieldType: g } = c, d = r.length === 0 ? X(m).idField : r[0];
|
|
791
788
|
let y = [], u = !1;
|
|
792
789
|
if (l.length === 0) {
|
|
793
|
-
y =
|
|
790
|
+
y = ve({
|
|
794
791
|
xAxisField: s,
|
|
795
792
|
numericFields: r,
|
|
796
793
|
aggregationType: a,
|
|
@@ -798,41 +795,41 @@ function wt(t) {
|
|
|
798
795
|
layerInfo: n,
|
|
799
796
|
commonStrings: o
|
|
800
797
|
});
|
|
801
|
-
for (const
|
|
802
|
-
|
|
798
|
+
for (const f of y)
|
|
799
|
+
f.query && (f.query.where = `${e}=''`);
|
|
803
800
|
} else
|
|
804
|
-
for (let
|
|
805
|
-
const x = l[
|
|
801
|
+
for (let f = 0; f < l.length; f += 1) {
|
|
802
|
+
const x = l[f], C = Q({
|
|
806
803
|
config: i,
|
|
807
804
|
xAxisField: s,
|
|
808
805
|
numericFields: r,
|
|
809
806
|
aggregationType: a,
|
|
810
807
|
layer: n.layer,
|
|
811
|
-
seriesIndex:
|
|
808
|
+
seriesIndex: f,
|
|
812
809
|
splitByField: e,
|
|
813
|
-
fieldList:
|
|
814
|
-
}).name,
|
|
810
|
+
fieldList: h
|
|
811
|
+
}).name, F = $({
|
|
815
812
|
config: i,
|
|
816
813
|
xAxisField: s,
|
|
817
814
|
aggregationType: a,
|
|
818
815
|
layerInfo: n,
|
|
819
|
-
seriesIndex:
|
|
816
|
+
seriesIndex: f,
|
|
820
817
|
commonStrings: o
|
|
821
|
-
}),
|
|
818
|
+
}), p = Te({
|
|
822
819
|
queryObject: n.layer,
|
|
823
820
|
fieldName: e,
|
|
824
821
|
fieldValue: x ?? ""
|
|
825
822
|
}), k = `${x}`, S = {
|
|
826
|
-
...
|
|
823
|
+
...F,
|
|
827
824
|
id: k,
|
|
828
|
-
name:
|
|
825
|
+
name: p ?? k,
|
|
829
826
|
y: C,
|
|
830
827
|
query: {
|
|
831
|
-
...
|
|
832
|
-
where: `${e}=${g ===
|
|
833
|
-
outStatistics: a !==
|
|
828
|
+
...F.query,
|
|
829
|
+
where: `${e}=${g === nt.String && x !== null ? `'${x}'` : x}`,
|
|
830
|
+
outStatistics: a !== L.NoAggregation ? [
|
|
834
831
|
{
|
|
835
|
-
...
|
|
832
|
+
...F.query?.outStatistics?.[0] ?? {},
|
|
836
833
|
onStatisticField: d,
|
|
837
834
|
outStatisticFieldName: C,
|
|
838
835
|
statisticType: a
|
|
@@ -840,15 +837,15 @@ function wt(t) {
|
|
|
840
837
|
] : void 0
|
|
841
838
|
}
|
|
842
839
|
};
|
|
843
|
-
a ===
|
|
840
|
+
a === L.NoAggregation && (S.query !== void 0 && (delete S.query.outStatistics, delete S.query.groupByFieldsForStatistics), S.y = d);
|
|
844
841
|
const I = i.series.find(
|
|
845
|
-
(
|
|
842
|
+
(q) => String(be(q)).trim().replace(/'/gu, "") === k
|
|
846
843
|
);
|
|
847
|
-
I !== void 0 && ((b(S) && b(I) || A(S) && A(I)) && W(S, I), i.colorMatch || (O(S) && O(I) ? S.fillSymbol = I.fillSymbol : (b(S) && b(I) || A(S) && A(I)) && (S.lineSymbol = I.lineSymbol, S.markerSymbol = I.markerSymbol), u = !0), S.id = I.id, S.name = I.name, S.assignToSecondValueAxis = I.assignToSecondValueAxis), S.query && (S.query.fetchNullValues = i.series.some((
|
|
844
|
+
I !== void 0 && ((b(S) && b(I) || A(S) && A(I)) && W(S, I), i.colorMatch || (O(S) && O(I) ? S.fillSymbol = I.fillSymbol : (b(S) && b(I) || A(S) && A(I)) && (S.lineSymbol = I.lineSymbol, S.markerSymbol = I.markerSymbol), u = !0), S.id = I.id, S.name = I.name, S.assignToSecondValueAxis = I.assignToSecondValueAxis), S.query && (S.query.fetchNullValues = i.series.some((q) => q.query?.fetchNullValues)), y.push(S);
|
|
848
845
|
}
|
|
849
846
|
return i.colorMatch = !u, y;
|
|
850
847
|
}
|
|
851
|
-
const
|
|
848
|
+
const li = (t) => {
|
|
852
849
|
const {
|
|
853
850
|
xAxisFieldName: e,
|
|
854
851
|
splitByField: s,
|
|
@@ -858,34 +855,34 @@ const ri = (t) => {
|
|
|
858
855
|
layerInfo: n,
|
|
859
856
|
commonStrings: o,
|
|
860
857
|
splitByFieldInfos: c
|
|
861
|
-
} = t, { layerFieldsInfo: m } = n ?? {},
|
|
862
|
-
let
|
|
863
|
-
const k = i.series.some((B) => O(B)), T =
|
|
864
|
-
I && (
|
|
858
|
+
} = t, { layerFieldsInfo: m } = n ?? {}, h = Ft(i), l = M(i), g = m.find((B) => B.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, f = m.find((B) => B.name === e), x = G(i, n, o), C = Ie(i, n, o), F = Et(i, n);
|
|
859
|
+
let p = Fe(i);
|
|
860
|
+
const k = i.series.some((B) => O(B)), T = pt(i.series), S = ft(i.series), I = ne(i), q = {};
|
|
861
|
+
I && (q.classBreaksRules = i.series[0]?.classBreaksRules, q.xTemporalBinning = i.series[0]?.xTemporalBinning, q.yTemporalBinning = i.series[0]?.yTemporalBinning, q.emptyCells = i.series[0]?.emptyCells, q.nullPolicy = i.nullPolicy);
|
|
865
862
|
let Z = !1;
|
|
866
|
-
if (
|
|
867
|
-
|
|
863
|
+
if (tt(f) ? p = fe() : !me(g) && me(f) ? p = Se() : !U(g) && U(f) ? (p = Se(), Z = !0) : U(g) && !U(f) && (k ? p = fe() : p = gt(), Z = !0), p !== void 0 && Ne(i, o, p), h === 0 && (i.series = [
|
|
864
|
+
$({ config: i, xAxisField: e, aggregationType: a, layerInfo: n, commonStrings: o })
|
|
868
865
|
]), i.series.forEach((B) => {
|
|
869
866
|
B.x = e, B.query !== void 0 && (B.query.groupByFieldsForStatistics = [e]);
|
|
870
|
-
}), s === "" || r.length > 1 ?
|
|
867
|
+
}), s === "" || r.length > 1 ? xe({
|
|
871
868
|
fieldName: e,
|
|
872
869
|
numericFields: r,
|
|
873
870
|
fieldList: m
|
|
874
|
-
}) ? i.series =
|
|
871
|
+
}) ? i.series = wt({
|
|
875
872
|
config: i,
|
|
876
873
|
layerInfo: n,
|
|
877
874
|
xAxisField: e,
|
|
878
875
|
numericFields: r,
|
|
879
876
|
aggregationType: a,
|
|
880
877
|
commonStrings: o
|
|
881
|
-
}) : i.series =
|
|
878
|
+
}) : i.series = ve({
|
|
882
879
|
config: i,
|
|
883
880
|
layerInfo: n,
|
|
884
881
|
xAxisField: e,
|
|
885
882
|
numericFields: r,
|
|
886
883
|
aggregationType: a,
|
|
887
884
|
commonStrings: o
|
|
888
|
-
}) : c && (i.series =
|
|
885
|
+
}) : c && (i.series = Pt({
|
|
889
886
|
config: i,
|
|
890
887
|
layerInfo: n,
|
|
891
888
|
splitByField: s,
|
|
@@ -894,8 +891,8 @@ const ri = (t) => {
|
|
|
894
891
|
aggregationType: a,
|
|
895
892
|
commonStrings: o,
|
|
896
893
|
splitByFieldInfos: c
|
|
897
|
-
})),
|
|
898
|
-
const B =
|
|
894
|
+
})), F && i.series[0].type !== v.HeatSeries) {
|
|
895
|
+
const B = D(m, e);
|
|
899
896
|
E(i, 0, B);
|
|
900
897
|
}
|
|
901
898
|
if (C && i.series[0].type !== v.HeatSeries) {
|
|
@@ -908,11 +905,11 @@ const ri = (t) => {
|
|
|
908
905
|
});
|
|
909
906
|
E(i, 1, B);
|
|
910
907
|
}
|
|
911
|
-
if (x && i.title && (i.title.content.text =
|
|
912
|
-
const B =
|
|
913
|
-
|
|
908
|
+
if (x && i.title && (i.title.content.text = H(i, n, o)), N({ config: i, value: null, axisIndex: 1, isMax: !1 }), N({ config: i, value: null, axisIndex: 1, isMax: !0 }), Dt({ 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 && a !== L.NoAggregation)) {
|
|
909
|
+
const B = p?.type === v.DateAxisFormat ? j.Null : j.Interpolate;
|
|
910
|
+
Ct(B, i);
|
|
914
911
|
}
|
|
915
|
-
I && (i.series[0].classBreaksRules =
|
|
912
|
+
I && (i.series[0].classBreaksRules = q.classBreaksRules, i.series[0].xTemporalBinning = q.xTemporalBinning, i.series[0].yTemporalBinning = q.yTemporalBinning, i.series[0].emptyCells = q.emptyCells, i.nullPolicy = q.nullPolicy), u ? i.series.forEach((B) => {
|
|
916
913
|
delete B.query;
|
|
917
914
|
}) : d && i.series.forEach((B) => {
|
|
918
915
|
B.query && (B.query.fetchNullValues = d);
|
|
@@ -924,26 +921,26 @@ const ri = (t) => {
|
|
|
924
921
|
...e.markerSymbol,
|
|
925
922
|
color: t.markerSymbol?.color
|
|
926
923
|
});
|
|
927
|
-
},
|
|
928
|
-
const { config: e, seriesIndex: s, layerInfo: r, commonStrings: a } = t, i = e.series?.[s], n =
|
|
924
|
+
}, ni = (t) => {
|
|
925
|
+
const { config: e, seriesIndex: s, layerInfo: r, commonStrings: a } = t, i = e.series?.[s], n = ce(e);
|
|
929
926
|
let o;
|
|
930
|
-
if (
|
|
927
|
+
if (K(e.series) === w.BarAndLineFromFields)
|
|
931
928
|
o = a.axisLabels.values;
|
|
932
|
-
else if (
|
|
929
|
+
else if (Le(n)) {
|
|
933
930
|
const m = i.query?.outStatistics?.[0]?.onStatisticField;
|
|
934
|
-
m !== void 0 && m !==
|
|
931
|
+
m !== void 0 && m !== X(r.layer).idField && (o = D(r.layerFieldsInfo, m));
|
|
935
932
|
} else {
|
|
936
|
-
const m = String(
|
|
937
|
-
o =
|
|
933
|
+
const m = String(be(i)).trim().replace(/'/gu, "");
|
|
934
|
+
o = Te({
|
|
938
935
|
queryObject: r.layer,
|
|
939
936
|
fieldName: n,
|
|
940
937
|
fieldValue: m ?? ""
|
|
941
938
|
}) ?? m;
|
|
942
939
|
}
|
|
943
940
|
return o ?? i.id;
|
|
944
|
-
},
|
|
941
|
+
}, oi = (t, e) => {
|
|
945
942
|
if (ne(e))
|
|
946
|
-
|
|
943
|
+
kt(t, e);
|
|
947
944
|
else {
|
|
948
945
|
e.orderOptions ??= {};
|
|
949
946
|
const s = e.orderOptions?.data?.orderType;
|
|
@@ -952,122 +949,122 @@ const ri = (t) => {
|
|
|
952
949
|
orderBy: [...t]
|
|
953
950
|
});
|
|
954
951
|
}
|
|
955
|
-
},
|
|
956
|
-
const { config: e, layerInfo: s, errorStrings: r } = t, a = M(e), i = Fe(e)?.type, n =
|
|
952
|
+
}, ui = async (t) => {
|
|
953
|
+
const { config: e, layerInfo: s, errorStrings: r } = t, a = M(e), i = Fe(e)?.type, n = _(e), o = K(e.series);
|
|
957
954
|
let c = [];
|
|
958
|
-
return i === v.CategoryAxisFormat && (o ===
|
|
955
|
+
return i === v.CategoryAxisFormat && (o === w.BarAndLineFromFields || a === ee ? c = n.map((m) => D(s?.layerFieldsInfo, m)) : a.trim() !== "" && a !== ee && s !== void 0 && (c = await Ve({
|
|
959
956
|
layerInfo: s,
|
|
960
957
|
config: e,
|
|
961
958
|
category: a,
|
|
962
959
|
errorStrings: r
|
|
963
960
|
}))), c;
|
|
964
961
|
};
|
|
965
|
-
function
|
|
966
|
-
const r =
|
|
962
|
+
function G(t, e, s) {
|
|
963
|
+
const r = H(t, e, s), a = Tt(t), i = z(t);
|
|
967
964
|
return r === a || i;
|
|
968
965
|
}
|
|
969
|
-
function
|
|
966
|
+
function Ie(t, e, s) {
|
|
970
967
|
const r = re({
|
|
971
968
|
config: t,
|
|
972
969
|
layerInfo: e,
|
|
973
970
|
commonStrings: s,
|
|
974
|
-
numericFields:
|
|
975
|
-
aggregationType:
|
|
976
|
-
}), a =
|
|
971
|
+
numericFields: _(t),
|
|
972
|
+
aggregationType: Ae(t)
|
|
973
|
+
}), a = ue(1, t), i = z(t);
|
|
977
974
|
return r === a || i;
|
|
978
975
|
}
|
|
979
|
-
function
|
|
980
|
-
const s =
|
|
976
|
+
function Et(t, e) {
|
|
977
|
+
const s = D(e.layerFieldsInfo, M(t)), r = ue(0, t), a = z(t);
|
|
981
978
|
return s === r || a;
|
|
982
979
|
}
|
|
983
|
-
function
|
|
980
|
+
function ci(t) {
|
|
984
981
|
return R(t.series[0]) ? t.series[0].binTemporalData ?? !0 : !1;
|
|
985
982
|
}
|
|
986
|
-
function
|
|
987
|
-
e?.series.forEach((s) => {
|
|
983
|
+
function di(t, e) {
|
|
984
|
+
oe({ chartConfig: e }) && e?.series.forEach((s) => {
|
|
988
985
|
(s?.type === v.BarSeries || s?.type === v.LineSeries) && (s.binTemporalData = t, t ? s.temporalBinning = {
|
|
989
986
|
unit: te.Day,
|
|
990
987
|
size: 0,
|
|
991
|
-
timeAggregationType:
|
|
988
|
+
timeAggregationType: rt.Start,
|
|
992
989
|
trimIncompleteTimeInterval: !0,
|
|
993
|
-
nullPolicy:
|
|
990
|
+
nullPolicy: j.Null
|
|
994
991
|
} : delete s.temporalBinning);
|
|
995
992
|
});
|
|
996
993
|
}
|
|
997
994
|
export {
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
995
|
+
Ts as $,
|
|
996
|
+
oi as A,
|
|
997
|
+
li as B,
|
|
998
|
+
ci as C,
|
|
999
|
+
di as D,
|
|
1000
|
+
H as E,
|
|
1001
|
+
Rt as F,
|
|
1002
|
+
Cs as G,
|
|
1006
1003
|
Ks as H,
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1004
|
+
Qs as I,
|
|
1005
|
+
As as J,
|
|
1006
|
+
bs as K,
|
|
1007
|
+
Is as L,
|
|
1008
|
+
vs as M,
|
|
1009
|
+
zs as N,
|
|
1010
|
+
_s as O,
|
|
1014
1011
|
Gs as P,
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1012
|
+
Zs as Q,
|
|
1013
|
+
ti as R,
|
|
1014
|
+
si as S,
|
|
1015
|
+
ii as T,
|
|
1016
|
+
ai as U,
|
|
1017
|
+
Ss as V,
|
|
1018
|
+
hs as W,
|
|
1019
|
+
qs as X,
|
|
1020
|
+
Ls as Y,
|
|
1021
|
+
Ns as Z,
|
|
1022
|
+
Vs as _,
|
|
1023
|
+
ms as a,
|
|
1027
1024
|
Fs as a0,
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1025
|
+
Bs as a1,
|
|
1026
|
+
xs as a2,
|
|
1027
|
+
Os as a3,
|
|
1028
|
+
Ds as a4,
|
|
1029
|
+
ws as a5,
|
|
1030
|
+
Ps as a6,
|
|
1031
|
+
ks as a7,
|
|
1032
|
+
Rs as a8,
|
|
1033
|
+
Es as a9,
|
|
1034
|
+
Ot as aa,
|
|
1035
|
+
Ms as ab,
|
|
1036
|
+
Ys as ac,
|
|
1040
1037
|
$s as ad,
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1038
|
+
Ws as ae,
|
|
1039
|
+
Xs as af,
|
|
1040
|
+
Hs as ag,
|
|
1041
|
+
ei as ah,
|
|
1042
|
+
Js as ai,
|
|
1043
|
+
Us as aj,
|
|
1047
1044
|
js as ak,
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1045
|
+
cs as b,
|
|
1046
|
+
ds as c,
|
|
1047
|
+
_ as d,
|
|
1048
|
+
ce as e,
|
|
1049
|
+
fs as f,
|
|
1050
|
+
Ae as g,
|
|
1051
|
+
ni as h,
|
|
1052
|
+
gs as i,
|
|
1053
|
+
ss as j,
|
|
1054
|
+
xt as k,
|
|
1055
|
+
ls as l,
|
|
1056
|
+
is as m,
|
|
1057
|
+
ns as n,
|
|
1058
|
+
as as o,
|
|
1059
|
+
ps as p,
|
|
1060
|
+
os as q,
|
|
1061
|
+
bt as r,
|
|
1062
|
+
Bt as s,
|
|
1063
|
+
rs as t,
|
|
1064
|
+
ys as u,
|
|
1065
|
+
Ct as v,
|
|
1066
|
+
us as w,
|
|
1067
|
+
ri as x,
|
|
1071
1068
|
ie as y,
|
|
1072
|
-
|
|
1069
|
+
ui as z
|
|
1073
1070
|
};
|