@arcgis/charts-components 5.2.0-next.57 → 5.2.0-next.59
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/{A6QLIVFM.js → 26UUSCOV.js} +20 -20
- package/dist/cdn/2B27HWX2.js +2 -0
- package/dist/cdn/44DVV3KE.js +2 -0
- package/dist/cdn/54M3LLQH.js +2 -0
- package/dist/cdn/5NZ537SN.js +2 -0
- package/dist/cdn/5RC76C5H.js +2 -0
- package/dist/cdn/{OEYB3NZZ.js → 5RWZRHLN.js} +1 -1
- package/dist/cdn/64CBZCW7.js +2 -0
- package/dist/cdn/{PHUJHKPW.js → 6HIK7EBX.js} +1 -1
- package/dist/cdn/6KMPIGFU.js +2 -0
- package/dist/cdn/6KTWKIGJ.js +2 -0
- package/dist/cdn/{UGOWEOTC.js → AYQ4HHL6.js} +1 -1
- package/dist/cdn/AZDPAG65.js +2 -0
- package/dist/cdn/B2XDPYOL.js +2 -0
- package/dist/cdn/{LOEMTYZB.js → B5KB7HXA.js} +1 -1
- package/dist/cdn/BFT5CL7V.js +2 -0
- package/dist/cdn/BU3IX333.js +2 -0
- package/dist/cdn/COLTSCAS.js +2 -0
- package/dist/cdn/CU6R7UXF.js +2 -0
- package/dist/cdn/{NYFHPR6N.js → DAFNQT4C.js} +1 -1
- package/dist/cdn/{OS5TUH4X.js → DDUKKQIZ.js} +1 -1
- package/dist/cdn/{FQ6B5P53.js → DG6ENZ35.js} +1 -1
- package/dist/cdn/E5G6IGUP.js +2 -0
- package/dist/cdn/EFRELYIP.js +2 -0
- package/dist/cdn/EQ2X422F.js +2 -0
- package/dist/cdn/{J64IDIEG.js → EQDTX4JX.js} +1 -1
- package/dist/cdn/FHCIXPMQ.js +3 -0
- package/dist/cdn/FJGG2VVZ.js +2 -0
- package/dist/cdn/G3MWFZDW.js +2 -0
- package/dist/cdn/GC7ISTDF.js +2 -0
- package/dist/cdn/{GVUHKCSZ.js → GJ4JGGKT.js} +1 -1
- package/dist/cdn/GPABWWGF.js +2 -0
- package/dist/cdn/{DRHDCMI3.js → GQGII3CK.js} +1 -1
- package/dist/cdn/{JXZJXDU5.js → GWNHO3MZ.js} +11 -9
- package/dist/cdn/H3CYQU3L.js +2 -0
- package/dist/cdn/{HDCSZ2BJ.js → H57XAQPI.js} +2 -2
- package/dist/cdn/HD72K7JQ.js +2 -0
- package/dist/cdn/{FJPWWKHZ.js → HSVZTTYF.js} +1 -1
- package/dist/cdn/IJYXP34M.js +2 -0
- package/dist/cdn/IKSW6TU5.js +2 -0
- package/dist/cdn/{BGTNSGMQ.js → INUVRMMG.js} +1 -1
- package/dist/cdn/{6Z7SZ44K.js → IOE5YG7Q.js} +1 -1
- package/dist/cdn/IPMCTC6B.js +2 -0
- package/dist/cdn/IW7AZIV6.js +2 -0
- package/dist/cdn/{4B5XCGIW.js → J6M4AA5V.js} +1 -1
- package/dist/cdn/JWWSIFDA.js +2 -0
- package/dist/cdn/KBOIN2ZI.js +2 -0
- package/dist/cdn/KDLRVDVQ.js +2 -0
- package/dist/cdn/KJZTU3DV.js +2 -0
- package/dist/cdn/{GSD4ZLN6.js → KR7A5JG4.js} +1 -1
- package/dist/cdn/KUI3SQHQ.js +2 -0
- package/dist/cdn/KVAWYWYK.js +2 -0
- package/dist/cdn/{5PAOUYHV.js → LA5FTE2U.js} +2 -2
- package/dist/cdn/LU6YEMXO.js +2 -0
- package/dist/cdn/MJLDF2FQ.js +2 -0
- package/dist/cdn/{UYQBMPSN.js → MLLV2GML.js} +1 -1
- package/dist/cdn/MO5LDVWE.js +2 -0
- package/dist/cdn/MYDNPSD6.js +2 -0
- package/dist/cdn/NCHIDM4H.js +2 -0
- package/dist/cdn/NYDW2I5M.js +2 -0
- package/dist/cdn/{2EDBRZSQ.js → NZT3J3KJ.js} +1 -1
- package/dist/cdn/{QYNNPEED.js → OAXHS4LE.js} +1 -1
- package/dist/cdn/OKZBV5LB.js +2 -0
- package/dist/cdn/{QRJMT2DB.js → OTH3FQJJ.js} +1 -1
- package/dist/cdn/P2L3OTIA.js +2 -0
- package/dist/cdn/PA4NRD4I.js +2 -0
- package/dist/cdn/PDYOXU7M.js +2 -0
- package/dist/cdn/PXTBSPEA.js +2 -0
- package/dist/cdn/{ALOMPW5P.js → Q6VW7H3A.js} +1 -1
- package/dist/cdn/QRNP4SNY.js +2 -0
- package/dist/cdn/QTD2QGHC.js +2 -0
- package/dist/cdn/{GXGUKV7H.js → RA3GUNR3.js} +1 -1
- package/dist/cdn/{VPJVWP7S.js → RQ6HACQP.js} +1 -1
- package/dist/cdn/{2ULHNXRJ.js → SCU3SBSN.js} +1 -1
- package/dist/cdn/T3WULYNA.js +2 -0
- package/dist/cdn/TCKFUPRR.js +2 -0
- package/dist/cdn/TQYULR2I.js +2 -0
- package/dist/cdn/UL2ASLY7.js +2 -0
- package/dist/cdn/{MEQOANO2.js → UMYQZXPT.js} +1 -1
- package/dist/cdn/USNCFQ5L.js +2 -0
- package/dist/cdn/{EZ6DGROJ.js → UYMLDXJI.js} +1 -1
- package/dist/cdn/V6TEH3XV.js +2 -0
- package/dist/cdn/VME2NH7X.js +2 -0
- package/dist/cdn/{KI2XMATI.js → VXQLTYHF.js} +1 -1
- package/dist/cdn/WKCITUA3.js +2 -0
- package/dist/cdn/{CB6BIIF2.js → WMUPNT4Q.js} +1 -1
- package/dist/cdn/WWKZYBCF.js +2 -0
- package/dist/cdn/XYBOIKE4.js +2 -0
- package/dist/cdn/{2DHUAIBZ.js → YIWJ2NPY.js} +1 -1
- package/dist/cdn/YL27XTUT.js +2 -0
- package/dist/cdn/{TT6WOAKC.js → ZESW7TCR.js} +1 -1
- package/dist/cdn/ZH3BXRLT.js +2 -0
- package/dist/cdn/{6HFL4FZL.js → ZZ5FKECR.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/interfaces.d.ts +11 -8
- package/dist/chunks/action-bar-utils.js +1 -1
- package/dist/chunks/bar-chart-model.js +1 -1
- package/dist/chunks/box-plot-data.js +55 -56
- package/dist/chunks/box-plot-model.js +1 -1
- package/dist/chunks/class-breaks.js +1 -1
- package/dist/chunks/combo-bar-line-chart-model.js +6 -7
- package/dist/chunks/data.js +9 -9
- package/dist/chunks/gauge-model.js +1 -1
- package/dist/chunks/generate-x-axis-title.js +4 -4
- package/dist/chunks/heat-chart-model.js +1 -1
- package/dist/chunks/index.js +1 -1
- package/dist/chunks/index2.js +1576 -1467
- package/dist/chunks/index3.js +77 -67
- package/dist/chunks/index4.js +25 -13
- package/dist/chunks/index5.js +63 -100
- package/dist/chunks/line-chart-model.js +1 -1
- package/dist/chunks/model-setter.js +1 -1
- package/dist/chunks/negative-values-stacked-to-baseline.js +6 -6
- package/dist/chunks/pie-chart-data.js +1 -1
- package/dist/chunks/pie-chart-model.js +1 -1
- package/dist/chunks/radar-chart-model.js +1 -1
- package/dist/chunks/resource.js +5 -5
- package/dist/chunks/rounded-corners.js +5 -5
- package/dist/chunks/scatterplot-model.js +1 -1
- package/dist/chunks/serial-chart-data.js +631 -620
- package/dist/chunks/serial-chart-model.js +63 -64
- package/dist/chunks/series-length.js +1 -1
- package/dist/chunks/series-types.js +22 -18
- package/dist/chunks/type-guards2.js +30 -26
- package/dist/chunks/utils.js +50 -51
- package/dist/chunks/web-component-utils.js +2 -2
- package/dist/chunks/x-bounds.js +21 -22
- package/dist/components/arcgis-chart/customElement.d.ts +64 -23
- package/dist/components/arcgis-chart/customElement.js +6128 -6148
- package/dist/components/arcgis-charts-action-bar/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +6 -7
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +54 -53
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +10 -9
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +10 -11
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +48 -46
- package/dist/components/arcgis-charts-config-format/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-guide/customElement.js +18 -19
- package/dist/components/arcgis-charts-config-guides/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +12 -13
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram/customElement.js +12 -13
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +6 -6
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +5 -6
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +4 -5
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +18 -18
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +6 -7
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-view-charts/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.js +286 -283
- package/dist/json-schema/index.d.ts +12 -2
- package/dist/model/shared/type-guards.d.ts +9 -2
- package/dist/spec/web-chart.d.ts +26 -4
- package/dist/utils/chart-config/converter/index.js +185 -166
- package/dist/utils/chart-config/utils/index.d.ts +18 -3
- package/dist/utils/cursor/interfaces.d.ts +21 -0
- package/dist/utils/type-guards/series-types.d.ts +9 -2
- package/package.json +3 -3
- package/dist/cdn/2B7R5EPU.js +0 -2
- package/dist/cdn/37UC5ORG.js +0 -2
- package/dist/cdn/3MGWFTQH.js +0 -2
- package/dist/cdn/3Z4FG2HV.js +0 -2
- package/dist/cdn/4L2YTJ24.js +0 -2
- package/dist/cdn/4MQOMRB6.js +0 -2
- package/dist/cdn/4MSUALRF.js +0 -2
- package/dist/cdn/4PMNY6J6.js +0 -2
- package/dist/cdn/4SFDTXQJ.js +0 -2
- package/dist/cdn/53DFPXFT.js +0 -2
- package/dist/cdn/5GXB34LE.js +0 -2
- package/dist/cdn/5WIDEL4K.js +0 -2
- package/dist/cdn/7IK6J5VF.js +0 -2
- package/dist/cdn/A34ROM33.js +0 -2
- package/dist/cdn/BM62ZXFE.js +0 -2
- package/dist/cdn/BNBZEIMG.js +0 -2
- package/dist/cdn/C3YMGEUW.js +0 -2
- package/dist/cdn/C64W7ELG.js +0 -2
- package/dist/cdn/CD2NGAV3.js +0 -2
- package/dist/cdn/CPRSIFTK.js +0 -2
- package/dist/cdn/DTNHSQRD.js +0 -2
- package/dist/cdn/DUAMGCAK.js +0 -2
- package/dist/cdn/E4T5VUXT.js +0 -2
- package/dist/cdn/EDYZLWGW.js +0 -3
- package/dist/cdn/EKWX6BR7.js +0 -2
- package/dist/cdn/EQXKSMAG.js +0 -2
- package/dist/cdn/F64XESDA.js +0 -2
- package/dist/cdn/G5DDARQJ.js +0 -2
- package/dist/cdn/G5FTVXQF.js +0 -2
- package/dist/cdn/GHTCOHC2.js +0 -2
- package/dist/cdn/I6LYDJKQ.js +0 -2
- package/dist/cdn/IDAMYFLT.js +0 -2
- package/dist/cdn/IH2BBWAQ.js +0 -2
- package/dist/cdn/J4C4QWY4.js +0 -2
- package/dist/cdn/JYROXMJN.js +0 -2
- package/dist/cdn/LDBJRKCM.js +0 -2
- package/dist/cdn/M5K6IJLD.js +0 -2
- package/dist/cdn/M7ZANON3.js +0 -2
- package/dist/cdn/MCJTQ4YF.js +0 -2
- package/dist/cdn/MLA3N4MI.js +0 -2
- package/dist/cdn/MR7KELUF.js +0 -2
- package/dist/cdn/MY2W3RH7.js +0 -2
- package/dist/cdn/MYK7BBLS.js +0 -2
- package/dist/cdn/N7D4B5LO.js +0 -2
- package/dist/cdn/NFU76HOO.js +0 -2
- package/dist/cdn/NZVEN4LR.js +0 -2
- package/dist/cdn/OKK5OJ6S.js +0 -2
- package/dist/cdn/PXTV6Y3K.js +0 -2
- package/dist/cdn/QJMUS3VS.js +0 -2
- package/dist/cdn/QMJ75W7D.js +0 -2
- package/dist/cdn/RKGAXZQB.js +0 -2
- package/dist/cdn/RP2TRPHY.js +0 -2
- package/dist/cdn/UIU5UYBO.js +0 -2
- package/dist/cdn/V23GYHYZ.js +0 -2
- package/dist/cdn/XWJ4GDXQ.js +0 -2
- package/dist/cdn/ZAAMSMQB.js +0 -2
- package/dist/cdn/ZALJA7E5.js +0 -2
- package/dist/cdn/ZCACFAKY.js +0 -2
- package/dist/cdn/ZKZOXEXY.js +0 -2
- package/dist/cdn/ZMBNBTJQ.js +0 -2
- package/dist/chunks/index6.js +0 -66
- /package/dist/cdn/{IVLVCLDE.js → 7NWEE7T2.js} +0 -0
|
@@ -1,188 +1,187 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { substitute as E } from "@arcgis/core/intl.js";
|
|
3
|
-
import { cloneDeep as te, isEmpty as
|
|
3
|
+
import { cloneDeep as te, isEmpty as je, memoize as Ke } from "lodash-es";
|
|
4
4
|
import { S as ue } from "./common.js";
|
|
5
|
-
import { s as
|
|
6
|
-
import { w as V, i as
|
|
7
|
-
import { a as U, s as Oe, g as se, b as
|
|
8
|
-
import { u as
|
|
9
|
-
import { R as
|
|
5
|
+
import { s as k, u as W, a as De, g as ge, b as Le, c as Ze, d as _e, e as Se } from "./utils.js";
|
|
6
|
+
import { w as V, i as Qe, di as Y, co as ze, bC as Ge, a$ as ke, x as Je, Y as ie, cT as et, cS as tt, p as it, aJ as fe, cu as st, d as at, aI as rt, I as nt, a7 as lt, bx as ot, W as ut, e as ct, bI as dt, ds as yt, v as mt, dy as Fe, cb as pt, dz as gt, c7 as ft, B as St, N as xe, bL as z, dv as Ft, bj as $, bP as G, ap as Z, a6 as Ne, bd as O, bc as xt, k as ce, bt as ht, bB as Tt, bs as A, bA as v, bp as he, br as Te } from "./index2.js";
|
|
7
|
+
import { a as U, s as Oe, g as se, b as Be, c as Bt } from "./data.js";
|
|
8
|
+
import { u as C, r as I, k as Ct, d as R, n as L, m as H, p as bt, t as At, s as de } from "./chart-object-literals.js";
|
|
9
|
+
import { R as qe, i as vt } from "./rest-js-object-literals.js";
|
|
10
10
|
import { i as ae } from "./index4.js";
|
|
11
|
-
import { aD as
|
|
11
|
+
import { aD as It, K as J, F as ye, w as Vt, $ as Dt, ac as Lt, ao as kt, A as Nt, a2 as Ot } from "./index.js";
|
|
12
12
|
import { C as w, F as X, d as P } from "./index3.js";
|
|
13
|
-
import {
|
|
14
|
-
import { convertChartSpec as
|
|
15
|
-
import { d as me, f as
|
|
16
|
-
import {
|
|
17
|
-
import { C as Rt, m as Pt } from "./model-setter.js";
|
|
13
|
+
import { g as Re, s as Pe } from "./series-types.js";
|
|
14
|
+
import { convertChartSpec as qt } from "../utils/chart-config/converter/index.js";
|
|
15
|
+
import { d as me, f as Rt } from "./type-guards.js";
|
|
16
|
+
import { C as Pt, m as wt } from "./model-setter.js";
|
|
18
17
|
import { g as re } from "./utils2.js";
|
|
19
|
-
import { a as
|
|
20
|
-
const Oi = (
|
|
18
|
+
import { a as Mt, b as Et } from "./series-length.js";
|
|
19
|
+
const Oi = (i) => {
|
|
21
20
|
let e;
|
|
22
|
-
const
|
|
23
|
-
return V(
|
|
24
|
-
},
|
|
21
|
+
const t = i.series[0];
|
|
22
|
+
return V(t) && (e = t.temporalBinning?.size), e;
|
|
23
|
+
}, Wt = (i) => {
|
|
25
24
|
let e;
|
|
26
|
-
const
|
|
27
|
-
return V(
|
|
28
|
-
},
|
|
25
|
+
const t = i.series[0];
|
|
26
|
+
return V(t) && (e = t.temporalBinning?.unit), e;
|
|
27
|
+
}, qi = (i) => {
|
|
29
28
|
let e;
|
|
30
|
-
const
|
|
31
|
-
return V(
|
|
32
|
-
},
|
|
29
|
+
const t = i.series[0];
|
|
30
|
+
return V(t) && (e = t.temporalBinning?.timeAggregationType), e;
|
|
31
|
+
}, Ri = (i) => {
|
|
33
32
|
let e;
|
|
34
|
-
const
|
|
35
|
-
return V(
|
|
36
|
-
},
|
|
33
|
+
const t = i.series[0];
|
|
34
|
+
return V(t) && (e = t.temporalBinning?.trimIncompleteTimeInterval), e;
|
|
35
|
+
}, Pi = (i) => {
|
|
37
36
|
let e;
|
|
38
|
-
const
|
|
39
|
-
return V(
|
|
40
|
-
},
|
|
41
|
-
e?.series?.forEach((
|
|
42
|
-
V(
|
|
43
|
-
}),
|
|
44
|
-
}, Yt = (
|
|
45
|
-
e?.series?.forEach((
|
|
46
|
-
V(
|
|
47
|
-
}),
|
|
48
|
-
},
|
|
49
|
-
e.series?.forEach((
|
|
50
|
-
V(
|
|
51
|
-
}),
|
|
52
|
-
},
|
|
53
|
-
e.series?.forEach((
|
|
54
|
-
V(
|
|
55
|
-
}),
|
|
56
|
-
},
|
|
57
|
-
e.series?.forEach((
|
|
58
|
-
V(
|
|
59
|
-
}),
|
|
60
|
-
},
|
|
61
|
-
|
|
37
|
+
const t = i.series[0];
|
|
38
|
+
return V(t) && (e = t.temporalBinning?.nullPolicy), e;
|
|
39
|
+
}, $t = (i, e) => {
|
|
40
|
+
e?.series?.forEach((t) => {
|
|
41
|
+
V(t) && (t.temporalBinning ??= {}, t.temporalBinning.size = i);
|
|
42
|
+
}), k({ config: e, value: null, axisIndex: 1, isMax: !1 }), k({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
43
|
+
}, Yt = (i, e) => {
|
|
44
|
+
e?.series?.forEach((t) => {
|
|
45
|
+
V(t) && (t.temporalBinning ??= {}, t.temporalBinning.nullPolicy = i);
|
|
46
|
+
}), k({ config: e, value: null, axisIndex: 1, isMax: !1 }), k({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
47
|
+
}, wi = (i, e) => {
|
|
48
|
+
e.series?.forEach((t) => {
|
|
49
|
+
V(t) && (t.temporalBinning ??= {}, t.temporalBinning.unit = i);
|
|
50
|
+
}), k({ config: e, value: null, axisIndex: 1, isMax: !1 }), k({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
51
|
+
}, Mi = (i, e) => {
|
|
52
|
+
e.series?.forEach((t) => {
|
|
53
|
+
V(t) && (t.temporalBinning ??= {}, t.temporalBinning.timeAggregationType = i);
|
|
54
|
+
}), k({ config: e, value: null, axisIndex: 1, isMax: !1 }), k({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
55
|
+
}, Ei = (i, e) => {
|
|
56
|
+
e.series?.forEach((t) => {
|
|
57
|
+
V(t) && (t.temporalBinning ??= {}, t.temporalBinning.trimIncompleteTimeInterval = i);
|
|
58
|
+
}), k({ config: e, value: null, axisIndex: 1, isMax: !1 }), k({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
59
|
+
}, Ht = (i) => {
|
|
60
|
+
$t(0, i);
|
|
62
61
|
};
|
|
63
|
-
var
|
|
64
|
-
for (var r =
|
|
65
|
-
(n =
|
|
66
|
-
return r &&
|
|
62
|
+
var Xt = Object.defineProperty, Ut = Object.getOwnPropertyDescriptor, jt = (i, e, t, a) => {
|
|
63
|
+
for (var r = Ut(e, t), s = i.length - 1, n; s >= 0; s--)
|
|
64
|
+
(n = i[s]) && (r = n(e, t, r) || r);
|
|
65
|
+
return r && Xt(e, t, r), r;
|
|
67
66
|
};
|
|
68
|
-
const
|
|
67
|
+
const Kt = (i) => {
|
|
69
68
|
let e;
|
|
70
|
-
return
|
|
71
|
-
(
|
|
72
|
-
}), e || (e =
|
|
73
|
-
},
|
|
74
|
-
const
|
|
75
|
-
|
|
76
|
-
(a.type ===
|
|
77
|
-
}), e?.axes?.[0]?.valueFormat.type ===
|
|
69
|
+
return Y(i) ? e = i.outTimeZone : i?.series.forEach((t) => {
|
|
70
|
+
(t.type === C.BarSeries || t.type === C.RadarSeries || t.type === C.LineSeries) && t.temporalBinning && (e = t.temporalBinning.outTimeZone);
|
|
71
|
+
}), e || (e = i?.axes?.[0]?.valueFormat.type === C.DateAxisFormat ? i.axes[0].valueFormat.intlOptions.timeZone : void 0), e;
|
|
72
|
+
}, we = (i, e) => {
|
|
73
|
+
const t = Qe(i);
|
|
74
|
+
Y(e) ? i ? e.outTimeZone = t : delete e.outTimeZone : e?.series.forEach((a) => {
|
|
75
|
+
(a.type === C.BarSeries || a.type === C.RadarSeries || a.type === C.LineSeries) && (i ? (a.temporalBinning ??= {}, a.temporalBinning.outTimeZone = t) : a.temporalBinning && delete a.temporalBinning.outTimeZone);
|
|
76
|
+
}), e?.axes?.[0]?.valueFormat.type === C.DateAxisFormat && (i ? e.axes[0].valueFormat.intlOptions.timeZone = t : delete e.axes[0].valueFormat.intlOptions.timeZone);
|
|
78
77
|
};
|
|
79
|
-
class
|
|
78
|
+
class Zt extends Pt {
|
|
80
79
|
/**
|
|
81
80
|
* Gets the time zone for the chart.
|
|
82
81
|
*/
|
|
83
82
|
get timeZone() {
|
|
84
|
-
return
|
|
83
|
+
return Kt(this._config);
|
|
85
84
|
}
|
|
86
85
|
set timeZone(e) {
|
|
87
|
-
|
|
86
|
+
we(e, this._config), this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"));
|
|
88
87
|
}
|
|
89
88
|
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
],
|
|
93
|
-
function
|
|
94
|
-
let
|
|
95
|
-
return e !== void 0 && (
|
|
89
|
+
jt([
|
|
90
|
+
wt
|
|
91
|
+
], Zt.prototype, "timeZone");
|
|
92
|
+
function Wi(i, e) {
|
|
93
|
+
let t;
|
|
94
|
+
return e !== void 0 && (t = { ...e }, t.legend !== void 0 && (t.legend.position = i)), t;
|
|
96
95
|
}
|
|
97
|
-
function
|
|
98
|
-
let
|
|
99
|
-
return e !== void 0 && (
|
|
96
|
+
function $i(i, e) {
|
|
97
|
+
let t;
|
|
98
|
+
return e !== void 0 && (t = { ...e }, t.legend !== void 0 && (t.legend.visible = i)), t;
|
|
100
99
|
}
|
|
101
|
-
function Yi(
|
|
102
|
-
let
|
|
103
|
-
return e !== void 0 && (
|
|
100
|
+
function Yi(i, e) {
|
|
101
|
+
let t;
|
|
102
|
+
return e !== void 0 && (t = { ...e, rotated: i }), t;
|
|
104
103
|
}
|
|
105
|
-
function
|
|
104
|
+
function _t(i) {
|
|
106
105
|
let e;
|
|
107
|
-
return
|
|
106
|
+
return i !== void 0 && (e = { ...i }, delete e.axes?.[0]?.minimum, delete e.axes?.[0]?.maximum, delete e.axes?.[1]?.minimum, delete e.axes?.[1]?.maximum), e;
|
|
108
107
|
}
|
|
109
|
-
function
|
|
110
|
-
return e != null ||
|
|
108
|
+
function Hi(i, e) {
|
|
109
|
+
return e != null || ke(i);
|
|
111
110
|
}
|
|
112
|
-
async function
|
|
113
|
-
const { config: e, layer:
|
|
111
|
+
async function Xi(i) {
|
|
112
|
+
const { config: e, layer: t, abortSignal: a } = i;
|
|
114
113
|
let r = !1;
|
|
115
|
-
return me(
|
|
114
|
+
return me(t) || Rt(e) ? e && me(t) && (r = await Ge({ config: e, layer: t, abortSignal: a })) : r = !0, r;
|
|
116
115
|
}
|
|
117
|
-
async function
|
|
116
|
+
async function Qt(i) {
|
|
118
117
|
const {
|
|
119
118
|
queryObject: e,
|
|
120
|
-
chartConfig:
|
|
119
|
+
chartConfig: t,
|
|
121
120
|
splitByField: a,
|
|
122
121
|
errorStrings: r,
|
|
123
122
|
abortSignal: s,
|
|
124
123
|
runtimeDataFilters: n,
|
|
125
|
-
ignoreViewExtent:
|
|
124
|
+
ignoreViewExtent: o,
|
|
126
125
|
setTimeBinningInfoWhenNotProvided: c,
|
|
127
126
|
returnFeaturesExtent: d,
|
|
128
|
-
chartLimits:
|
|
129
|
-
} =
|
|
130
|
-
let u = [],
|
|
131
|
-
const
|
|
127
|
+
chartLimits: p
|
|
128
|
+
} = i;
|
|
129
|
+
let u = [], y;
|
|
130
|
+
const m = te(t), g = m.series[0], l = ct({
|
|
132
131
|
queryObject: e,
|
|
133
|
-
chartConfig:
|
|
132
|
+
chartConfig: m,
|
|
134
133
|
runtimeDataFilters: n,
|
|
135
|
-
ignoreViewExtent:
|
|
134
|
+
ignoreViewExtent: o
|
|
136
135
|
});
|
|
137
|
-
if (
|
|
138
|
-
xAxisValueFormatType:
|
|
136
|
+
if (l.outStatistics?.[0]?.outStatisticFieldName && (l.outStatistics[0].outStatisticFieldName = It.outStatistics.outStatisticFieldName), V(g) && dt({
|
|
137
|
+
xAxisValueFormatType: yt(m),
|
|
139
138
|
setTimeBinningInfoWhenNotProvided: c,
|
|
140
139
|
seriesConfig: g,
|
|
141
140
|
queryObject: e
|
|
142
|
-
}) &&
|
|
143
|
-
const { temporalBinning: f, x: b } = g, { uniqueQuery:
|
|
144
|
-
chartConfig:
|
|
145
|
-
queryConfig:
|
|
141
|
+
}) && mt(a, e)) {
|
|
142
|
+
const { temporalBinning: f, x: b } = g, { uniqueQuery: B } = Fe({
|
|
143
|
+
chartConfig: m,
|
|
144
|
+
queryConfig: l,
|
|
146
145
|
queryObject: e,
|
|
147
146
|
setTimeBinningInfoWhenNotProvided: c,
|
|
148
147
|
returnFeaturesExtent: d,
|
|
149
|
-
chartLimits:
|
|
150
|
-
}), x =
|
|
151
|
-
|
|
148
|
+
chartLimits: p
|
|
149
|
+
}), x = t.axes?.[0].valueFormat.type === C.DateAxisFormat ? t.axes[0].valueFormat.intlOptions.timeZone : void 0;
|
|
150
|
+
y = await pt({
|
|
152
151
|
queryObject: e,
|
|
153
152
|
dateField: b,
|
|
154
153
|
splitByField: a,
|
|
155
|
-
queryConfig:
|
|
154
|
+
queryConfig: B,
|
|
156
155
|
axisTimeZone: x,
|
|
157
156
|
temporalBinning: f,
|
|
158
157
|
errorStrings: r,
|
|
159
158
|
abortSignal: s
|
|
160
159
|
}), u = Array.from(
|
|
161
160
|
new Set(
|
|
162
|
-
|
|
163
|
-
const { stackedAttributes:
|
|
161
|
+
y.flatMap((F) => {
|
|
162
|
+
const { stackedAttributes: N } = F;
|
|
164
163
|
let S = [];
|
|
165
|
-
return
|
|
164
|
+
return N && (S = N.map((h) => h[a]).filter((h) => h !== void 0)), S;
|
|
166
165
|
})
|
|
167
166
|
).values()
|
|
168
167
|
);
|
|
169
168
|
} else {
|
|
170
169
|
const { uniqueQuery: f } = Fe({
|
|
171
|
-
chartConfig:
|
|
170
|
+
chartConfig: m,
|
|
172
171
|
queryObject: e,
|
|
173
|
-
queryConfig:
|
|
172
|
+
queryConfig: l,
|
|
174
173
|
setTimeBinningInfoWhenNotProvided: c,
|
|
175
174
|
returnFeaturesExtent: d,
|
|
176
|
-
chartLimits:
|
|
177
|
-
}), { elementCount: b } = await
|
|
178
|
-
chartConfig:
|
|
175
|
+
chartLimits: p
|
|
176
|
+
}), { elementCount: b } = await gt({
|
|
177
|
+
chartConfig: m,
|
|
179
178
|
queryObject: e,
|
|
180
|
-
queryConfig:
|
|
181
|
-
behaviorAfterLimit:
|
|
179
|
+
queryConfig: l,
|
|
180
|
+
behaviorAfterLimit: p?.behaviorAfterLimit,
|
|
182
181
|
numberMaxOfFeaturesToFetch: f.num,
|
|
183
182
|
abortSignal: s
|
|
184
183
|
});
|
|
185
|
-
|
|
184
|
+
y = await ft({
|
|
186
185
|
queryObject: e,
|
|
187
186
|
queryConfig: f,
|
|
188
187
|
featureCount: b,
|
|
@@ -191,15 +190,15 @@ async function _t(t) {
|
|
|
191
190
|
abortSignal: s
|
|
192
191
|
}), u = Array.from(
|
|
193
192
|
new Set(
|
|
194
|
-
|
|
193
|
+
y.map((B) => B.attributes[a]).filter((B) => B !== void 0)
|
|
195
194
|
).values()
|
|
196
195
|
);
|
|
197
196
|
}
|
|
198
|
-
return { allValues: u, preFetchedQueryResponse:
|
|
197
|
+
return { allValues: u, preFetchedQueryResponse: y };
|
|
199
198
|
}
|
|
200
|
-
function
|
|
201
|
-
const
|
|
202
|
-
return
|
|
199
|
+
function zt(i, e) {
|
|
200
|
+
const t = /* @__PURE__ */ new Map();
|
|
201
|
+
return i.series.forEach((a) => {
|
|
203
202
|
let r = fe({
|
|
204
203
|
where: a.query?.where,
|
|
205
204
|
// normalize the value so it matches what we get from getAllValues()
|
|
@@ -211,234 +210,234 @@ function Qt(t, e) {
|
|
|
211
210
|
});
|
|
212
211
|
e && r !== null && (r = Number(r));
|
|
213
212
|
const s = Re([a]);
|
|
214
|
-
s !== void 0 &&
|
|
215
|
-
...
|
|
213
|
+
s !== void 0 && t.set(s, [
|
|
214
|
+
...t.get(s) ?? [],
|
|
216
215
|
r
|
|
217
216
|
]);
|
|
218
|
-
}),
|
|
217
|
+
}), t;
|
|
219
218
|
}
|
|
220
|
-
function
|
|
221
|
-
const { allValues: e, configUniqueValuesPerSeriesType:
|
|
222
|
-
return Array.from(
|
|
223
|
-
const n =
|
|
224
|
-
let
|
|
225
|
-
a ?
|
|
226
|
-
n.includes(c) ||
|
|
227
|
-
}), r.set(s,
|
|
219
|
+
function Gt(i) {
|
|
220
|
+
const { allValues: e, configUniqueValuesPerSeriesType: t, initialConfigWasEmpty: a } = i, r = /* @__PURE__ */ new Map();
|
|
221
|
+
return Array.from(t.keys()).forEach((s) => {
|
|
222
|
+
const n = t.get(s) ?? [];
|
|
223
|
+
let o = [];
|
|
224
|
+
a ? o = e : e.forEach((c) => {
|
|
225
|
+
n.includes(c) || o.push(c);
|
|
226
|
+
}), r.set(s, o);
|
|
228
227
|
}), r;
|
|
229
228
|
}
|
|
230
|
-
function
|
|
231
|
-
const { chartConfig: e, missingValue:
|
|
229
|
+
function Jt(i) {
|
|
230
|
+
const { chartConfig: e, missingValue: t, splitByField: a, seriesTemplate: r } = i, s = JSON.parse(
|
|
232
231
|
JSON.stringify({
|
|
233
232
|
...e.series[0],
|
|
234
233
|
...r
|
|
235
234
|
})
|
|
236
235
|
);
|
|
237
236
|
if (s.query) {
|
|
238
|
-
if (
|
|
239
|
-
const
|
|
240
|
-
s.query.outStatistics[0].outStatisticFieldName =
|
|
237
|
+
if (t === null ? s.id = X.nullValue : t === "" ? s.id = X.emptyStringValue : s.id = `${t}`, s.name = `${t}`, s.query.outStatistics?.[0] !== void 0) {
|
|
238
|
+
const o = s.id;
|
|
239
|
+
s.query.outStatistics[0].outStatisticFieldName = o, "y" in s && (s.y = o);
|
|
241
240
|
}
|
|
242
|
-
const n = typeof
|
|
241
|
+
const n = typeof t == "number" || t === null ? t : `'${t}'`;
|
|
243
242
|
s.query.where = `${a}=${n}`;
|
|
244
243
|
}
|
|
245
244
|
return s;
|
|
246
245
|
}
|
|
247
|
-
async function
|
|
246
|
+
async function ei(i) {
|
|
248
247
|
const {
|
|
249
248
|
updateSplitBySeries: e,
|
|
250
|
-
config:
|
|
249
|
+
config: t,
|
|
251
250
|
queryObject: a,
|
|
252
251
|
errorStrings: r,
|
|
253
252
|
abortSignal: s,
|
|
254
253
|
runtimeDataFilters: n,
|
|
255
|
-
ignoreViewExtent:
|
|
254
|
+
ignoreViewExtent: o,
|
|
256
255
|
setTimeBinningInfoWhenNotProvided: c,
|
|
257
256
|
returnFeaturesExtent: d,
|
|
258
|
-
chartLimits:
|
|
259
|
-
} =
|
|
260
|
-
let
|
|
261
|
-
if (a && !me(a) && e !== void 0 &&
|
|
262
|
-
const
|
|
263
|
-
|
|
264
|
-
const g = ie(
|
|
257
|
+
chartLimits: p
|
|
258
|
+
} = i, { seriesTemplate: u } = e ?? {};
|
|
259
|
+
let y;
|
|
260
|
+
if (a && !me(a) && e !== void 0 && t !== void 0 && (t.series.length > 0 || u !== void 0) && e.addMissingSeries) {
|
|
261
|
+
const m = t.series.length === 0;
|
|
262
|
+
t.series.length === 0 && u !== void 0 && t.series.push(u);
|
|
263
|
+
const g = ie(t.series);
|
|
265
264
|
if (g === w.BoxPlotMonoFieldAndSplitBy || g === w.BoxPlotMultiFieldsAndSplitBy || g === w.BoxPlotMonoFieldAndCategoryAndSplitBy || g === w.BarAndLineSplitBy || g === w.BarAndLineSplitByNoAggregation) {
|
|
266
|
-
const
|
|
265
|
+
const l = rt(t.series[0]?.query?.where), f = nt(a), b = lt(l, f), B = b ? ot(b) : !1, x = await Qt({
|
|
267
266
|
queryObject: a,
|
|
268
|
-
chartConfig:
|
|
269
|
-
splitByField:
|
|
267
|
+
chartConfig: t,
|
|
268
|
+
splitByField: l,
|
|
270
269
|
abortSignal: s,
|
|
271
270
|
runtimeDataFilters: n,
|
|
272
|
-
ignoreViewExtent:
|
|
271
|
+
ignoreViewExtent: o,
|
|
273
272
|
setTimeBinningInfoWhenNotProvided: c,
|
|
274
273
|
returnFeaturesExtent: d,
|
|
275
|
-
chartLimits:
|
|
274
|
+
chartLimits: p,
|
|
276
275
|
errorStrings: r
|
|
277
276
|
}), { allValues: F } = x;
|
|
278
|
-
if ({ preFetchedQueryResponse:
|
|
279
|
-
const
|
|
277
|
+
if ({ preFetchedQueryResponse: y } = x, F.length > 0) {
|
|
278
|
+
const N = zt(t, B), S = Gt({
|
|
280
279
|
allValues: F,
|
|
281
|
-
configUniqueValuesPerSeriesType:
|
|
282
|
-
initialConfigWasEmpty:
|
|
280
|
+
configUniqueValuesPerSeriesType: N,
|
|
281
|
+
initialConfigWasEmpty: m
|
|
283
282
|
});
|
|
284
283
|
Array.from(S.keys()).forEach((h) => {
|
|
285
284
|
(S.get(h) ?? []).forEach((M) => {
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
chartConfig:
|
|
285
|
+
t.series.push(
|
|
286
|
+
Jt({
|
|
287
|
+
chartConfig: t,
|
|
289
288
|
seriesTemplate: u,
|
|
290
289
|
missingValue: M,
|
|
291
|
-
splitByField:
|
|
290
|
+
splitByField: l
|
|
292
291
|
})
|
|
293
292
|
);
|
|
294
|
-
}),
|
|
293
|
+
}), m && t.series.shift();
|
|
295
294
|
});
|
|
296
295
|
}
|
|
297
296
|
}
|
|
298
297
|
}
|
|
299
|
-
return
|
|
298
|
+
return y;
|
|
300
299
|
}
|
|
301
|
-
function
|
|
302
|
-
e && !
|
|
300
|
+
function ti(i, e) {
|
|
301
|
+
e && !ke(e) && (e = at({ chartConfig: e, queryObject: i }));
|
|
303
302
|
}
|
|
304
|
-
async function
|
|
303
|
+
async function Ui(i) {
|
|
305
304
|
const {
|
|
306
305
|
configToAlter: e,
|
|
307
|
-
layer:
|
|
306
|
+
layer: t,
|
|
308
307
|
addMissingSeries: a,
|
|
309
308
|
updateSplitBySeries: r,
|
|
310
309
|
chartContainer: s,
|
|
311
310
|
queryObject: n,
|
|
312
|
-
abortSignal:
|
|
311
|
+
abortSignal: o,
|
|
313
312
|
runtimeDataFilters: c,
|
|
314
313
|
ignoreViewExtent: d,
|
|
315
|
-
setTimeBinningInfoWhenNotProvided:
|
|
314
|
+
setTimeBinningInfoWhenNotProvided: p,
|
|
316
315
|
returnFeaturesExtent: u,
|
|
317
|
-
chartLimits:
|
|
318
|
-
timeZone:
|
|
316
|
+
chartLimits: y,
|
|
317
|
+
timeZone: m,
|
|
319
318
|
errorStrings: g
|
|
320
|
-
} =
|
|
321
|
-
let
|
|
322
|
-
return
|
|
319
|
+
} = i;
|
|
320
|
+
let l = e, f;
|
|
321
|
+
return l && (ti(t, l), l = await qt(l, t, void 0, o), a && n && (f = await ei({
|
|
323
322
|
updateSplitBySeries: r,
|
|
324
|
-
config:
|
|
323
|
+
config: l,
|
|
325
324
|
queryObject: n,
|
|
326
325
|
errorStrings: g,
|
|
327
|
-
abortSignal:
|
|
326
|
+
abortSignal: o,
|
|
328
327
|
runtimeDataFilters: c,
|
|
329
328
|
ignoreViewExtent: d,
|
|
330
|
-
setTimeBinningInfoWhenNotProvided:
|
|
329
|
+
setTimeBinningInfoWhenNotProvided: p,
|
|
331
330
|
returnFeaturesExtent: u,
|
|
332
|
-
chartLimits:
|
|
333
|
-
})),
|
|
331
|
+
chartLimits: y
|
|
332
|
+
})), l = ze(l, s), we(m, l)), { alteredConfig: l, preFetchedQueryResponse: f };
|
|
334
333
|
}
|
|
335
|
-
function
|
|
336
|
-
let
|
|
334
|
+
function ii(i, e) {
|
|
335
|
+
let t = !1;
|
|
337
336
|
if (e !== void 0) {
|
|
338
|
-
const a =
|
|
339
|
-
|
|
337
|
+
const a = ut({ key: St.Average, splitBy: e });
|
|
338
|
+
t = Number.isFinite(i[a]);
|
|
340
339
|
}
|
|
341
|
-
return
|
|
340
|
+
return t;
|
|
342
341
|
}
|
|
343
|
-
function
|
|
344
|
-
const { data: e, config:
|
|
342
|
+
function ji(i) {
|
|
343
|
+
const { data: e, config: t, showEmptySeries: a } = i, r = t.series.length, s = te(t);
|
|
345
344
|
let n = !1;
|
|
346
345
|
if (!a && r > 1 && e) {
|
|
347
|
-
const
|
|
346
|
+
const o = Je(e), c = Re(t?.series), d = ie(t?.series), p = /* @__PURE__ */ new Set();
|
|
348
347
|
switch (c) {
|
|
349
|
-
case
|
|
350
|
-
case
|
|
351
|
-
case
|
|
352
|
-
case
|
|
353
|
-
s.series.forEach((
|
|
354
|
-
if (Array.isArray(
|
|
355
|
-
let
|
|
356
|
-
"y" in
|
|
357
|
-
(
|
|
358
|
-
dataItem:
|
|
359
|
-
x:
|
|
360
|
-
y:
|
|
361
|
-
aggregationType:
|
|
348
|
+
case C.ComboLineAndBarSeries:
|
|
349
|
+
case C.BarSeries:
|
|
350
|
+
case C.RadarSeries:
|
|
351
|
+
case C.LineSeries: {
|
|
352
|
+
s.series.forEach((y) => {
|
|
353
|
+
if (Array.isArray(o)) {
|
|
354
|
+
let m = "";
|
|
355
|
+
"y" in y && (m = Array.isArray(y.y) ? y.y[0] : y.y, d === w.BarAndLineSplitByNoAggregation && (m = `${m}_${fe({ where: y.query?.where, keepSurroundingQuotes: !1, escape: !1 })}`), o.some(
|
|
356
|
+
(l) => st({
|
|
357
|
+
dataItem: l,
|
|
358
|
+
x: y.x,
|
|
359
|
+
y: m,
|
|
360
|
+
aggregationType: t.series[0].query?.outStatistics?.[0]?.statisticType
|
|
362
361
|
})
|
|
363
|
-
) &&
|
|
362
|
+
) && p.add(y));
|
|
364
363
|
}
|
|
365
364
|
});
|
|
366
365
|
break;
|
|
367
366
|
}
|
|
368
|
-
case
|
|
369
|
-
if (
|
|
370
|
-
const
|
|
371
|
-
|
|
372
|
-
let g,
|
|
373
|
-
|
|
374
|
-
(f) =>
|
|
367
|
+
case C.BoxPlotSeries: {
|
|
368
|
+
if (et(t)) {
|
|
369
|
+
const y = tt(t);
|
|
370
|
+
t.series.forEach((m) => {
|
|
371
|
+
let g, l;
|
|
372
|
+
m.type === C.BoxPlotSeries ? (g = e.dataItems, l = g?.some(
|
|
373
|
+
(f) => it({
|
|
375
374
|
dataItem: f,
|
|
376
|
-
splitBy:
|
|
377
|
-
showOutliers:
|
|
375
|
+
splitBy: m.query?.where,
|
|
376
|
+
showOutliers: y
|
|
378
377
|
})
|
|
379
|
-
)) :
|
|
380
|
-
(f) =>
|
|
381
|
-
)),
|
|
378
|
+
)) : m.type === C.LineSeries && (g = e.meanLines, l = g?.some(
|
|
379
|
+
(f) => ii(f, m.query?.where)
|
|
380
|
+
)), l && p.add(m);
|
|
382
381
|
});
|
|
383
382
|
}
|
|
384
383
|
break;
|
|
385
384
|
}
|
|
386
385
|
}
|
|
387
|
-
const u = Array.from(
|
|
386
|
+
const u = Array.from(p.values());
|
|
388
387
|
n = u.length > 0 && u.length < r, n && (s.series = u);
|
|
389
388
|
}
|
|
390
389
|
return { seriesFilteredOut: n, filteredConfig: s };
|
|
391
390
|
}
|
|
392
|
-
const
|
|
393
|
-
|
|
394
|
-
},
|
|
395
|
-
const
|
|
396
|
-
|
|
397
|
-
},
|
|
398
|
-
const
|
|
399
|
-
|
|
400
|
-
},
|
|
401
|
-
const { yField: e, config:
|
|
402
|
-
if (typeof e == "string" &&
|
|
403
|
-
if (d.y = e,
|
|
404
|
-
const
|
|
405
|
-
W(
|
|
391
|
+
const Ki = (i) => i.hideEmptyRowsAndColumns, Zi = (i, e) => {
|
|
392
|
+
i.hideEmptyRowsAndColumns = e;
|
|
393
|
+
}, _i = (i, e) => {
|
|
394
|
+
const t = i.series[0];
|
|
395
|
+
t.heatRulesType = e;
|
|
396
|
+
}, Qi = (i) => i.series[0].heatRulesType, zi = (i, e) => {
|
|
397
|
+
const t = i.series[0];
|
|
398
|
+
t.gradientRules = e;
|
|
399
|
+
}, Gi = (i) => i.series[0].gradientRules, Ji = (i) => {
|
|
400
|
+
const { yField: e, config: t, layerInfo: a, commonStrings: r } = i, { layerFieldsInfo: s } = a, n = re(1, t), o = si(t), c = ae(t), d = t.series[0];
|
|
401
|
+
if (typeof e == "string" && o !== e && d) {
|
|
402
|
+
if (d.y = e, _t(t), o === n || c) {
|
|
403
|
+
const p = P(s, e);
|
|
404
|
+
W(t, 1, p);
|
|
406
405
|
}
|
|
407
|
-
|
|
406
|
+
Me({ commonStrings: r, config: t, layerInfo: a });
|
|
408
407
|
}
|
|
409
|
-
},
|
|
410
|
-
const { binning: e, config:
|
|
408
|
+
}, si = (i) => i.series[0].y ?? "", es = (i) => {
|
|
409
|
+
const { binning: e, config: t, commonStrings: a } = i, r = t.series[0];
|
|
411
410
|
if (r.xTemporalBinning = e, e?.unit !== void 0 && e.unit in a.utilsStrings.heatChartCalendarDatePartsUnits) {
|
|
412
411
|
const s = a.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
|
|
413
|
-
W(
|
|
412
|
+
W(t, 0, s);
|
|
414
413
|
}
|
|
415
|
-
ee({ axisIndex: 0, commonStrings: a, config:
|
|
416
|
-
},
|
|
417
|
-
const { binning: e, config:
|
|
414
|
+
ee({ axisIndex: 0, commonStrings: a, config: t });
|
|
415
|
+
}, ai = (i) => i.series[0].xTemporalBinning, ts = (i) => {
|
|
416
|
+
const { binning: e, config: t, commonStrings: a } = i, r = t.series[0];
|
|
418
417
|
if (r.yTemporalBinning = e, e?.unit !== void 0 && e.unit in a.utilsStrings.heatChartCalendarDatePartsUnits) {
|
|
419
418
|
const s = a.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
|
|
420
|
-
W(
|
|
419
|
+
W(t, 1, s);
|
|
421
420
|
}
|
|
422
|
-
ee({ axisIndex: 1, commonStrings: a, config:
|
|
423
|
-
},
|
|
421
|
+
ee({ axisIndex: 1, commonStrings: a, config: t });
|
|
422
|
+
}, ri = (i) => i.series[0].yTemporalBinning, ni = (i, e) => {
|
|
424
423
|
e.orderOptions ??= {};
|
|
425
|
-
const
|
|
424
|
+
const t = e.axes?.[0]?.valueFormat?.type === "category" ? L.Category : L.YValue, a = pe(e)[0], r = e.axes?.[1]?.valueFormat?.type === "category" ? L.Category : L.YValue, s = pe(e)[1], n = {
|
|
426
425
|
...e.orderOptions.data ?? {},
|
|
427
426
|
orderType: L.MultiAxes
|
|
428
427
|
};
|
|
429
|
-
a === ue.customSort &&
|
|
430
|
-
},
|
|
431
|
-
const
|
|
432
|
-
|
|
433
|
-
},
|
|
434
|
-
const
|
|
435
|
-
|
|
436
|
-
},
|
|
437
|
-
const
|
|
438
|
-
|
|
439
|
-
},
|
|
440
|
-
const { field: e, config:
|
|
441
|
-
s ? (s.onStatisticField = e, s.outStatisticFieldName = `${s.statisticType}_${e}`) :
|
|
428
|
+
a === ue.customSort && t === L.Category && (n.orderByX = [...i]), s === ue.customSort && r === L.Category && (n.orderByY = [...i]), Object.keys(n).length > 1 && (e.orderOptions.data = n);
|
|
429
|
+
}, is = (i, e) => {
|
|
430
|
+
const t = e.series[0];
|
|
431
|
+
t.gridLine && (t.gridLine.width = i);
|
|
432
|
+
}, ss = (i) => i.series[0].gridLine?.width, as = (i, e) => {
|
|
433
|
+
const t = e.series[0], a = i?.length === 4 && i.every((r) => typeof r == "number");
|
|
434
|
+
t.gridLine && a && (t.gridLine.color = i);
|
|
435
|
+
}, rs = (i) => i.series[0].gridLine?.color, ns = (i, e) => {
|
|
436
|
+
const t = e.legend;
|
|
437
|
+
t && (t.position = i);
|
|
438
|
+
}, ls = (i) => i.legend?.position ?? Ct.Bottom, os = (i) => i.series[0].query?.outStatistics?.[0]?.onStatisticField, us = (i) => {
|
|
439
|
+
const { field: e, config: t, layerInfo: a, commonStrings: r } = i, s = t.series[0].query?.outStatistics?.[0], n = oe(t, a, r);
|
|
440
|
+
s ? (s.onStatisticField = e, s.outStatisticFieldName = `${s.statisticType}_${e}`) : t.series[0].query = {
|
|
442
441
|
outStatistics: [
|
|
443
442
|
{
|
|
444
443
|
onStatisticField: e,
|
|
@@ -446,97 +445,97 @@ const ji = (t) => t.hideEmptyRowsAndColumns, Ki = (t, e) => {
|
|
|
446
445
|
statisticType: I.Count
|
|
447
446
|
}
|
|
448
447
|
]
|
|
449
|
-
}, n &&
|
|
450
|
-
},
|
|
451
|
-
const { aggregationType: e, config:
|
|
452
|
-
s && e !== I.NoAggregation && (s.statisticType = e, s.outStatisticFieldName = `${e}_${s.onStatisticField}`), (e === I.Count || e === I.Sum) &&
|
|
453
|
-
},
|
|
454
|
-
e.nullPolicy =
|
|
455
|
-
},
|
|
456
|
-
e.series[0].emptyCells =
|
|
457
|
-
},
|
|
458
|
-
e.series[0].emptyCells ? e.series[0].emptyCells.text =
|
|
459
|
-
},
|
|
460
|
-
e.includeLeapDay =
|
|
461
|
-
},
|
|
462
|
-
e.series[0].emptyCells ? e.series[0].emptyCells.symbol =
|
|
448
|
+
}, n && t.title && (t.title.content.text = _(t, a, r));
|
|
449
|
+
}, cs = (i) => i.series[0].query?.outStatistics?.[0].statisticType ?? I.Count, ds = (i) => {
|
|
450
|
+
const { aggregationType: e, config: t, layerInfo: a, commonStrings: r } = i, s = t.series[0]?.query?.outStatistics?.[0], n = oe(t, a, r);
|
|
451
|
+
s && e !== I.NoAggregation && (s.statisticType = e, s.outStatisticFieldName = `${e}_${s.onStatisticField}`), (e === I.Count || e === I.Sum) && li(H.Zero, t), n && t.title && (t.title.content.text = _(t, a, r));
|
|
452
|
+
}, ys = (i) => i.nullPolicy, li = (i, e) => {
|
|
453
|
+
e.nullPolicy = i;
|
|
454
|
+
}, ms = (i) => i.series[0].emptyCells, ps = (i, e) => {
|
|
455
|
+
e.series[0].emptyCells = i;
|
|
456
|
+
}, gs = (i) => i.series[0].emptyCells?.text, fs = (i, e) => {
|
|
457
|
+
e.series[0].emptyCells ? e.series[0].emptyCells.text = i : e.series[0].emptyCells = { text: i };
|
|
458
|
+
}, Ss = (i) => i.includeLeapDay, Fs = (i, e) => {
|
|
459
|
+
e.includeLeapDay = i;
|
|
460
|
+
}, xs = (i) => i.series[0].emptyCells?.symbol, hs = (i, e) => {
|
|
461
|
+
e.series[0].emptyCells ? e.series[0].emptyCells.symbol = i : e.series[0].emptyCells = { symbol: i };
|
|
463
462
|
};
|
|
464
|
-
function
|
|
465
|
-
return
|
|
463
|
+
function Ts(i) {
|
|
464
|
+
return i.viewType;
|
|
466
465
|
}
|
|
467
|
-
function
|
|
468
|
-
|
|
466
|
+
function Bs(i, e) {
|
|
467
|
+
Ft(e) || (e.viewType = i);
|
|
469
468
|
}
|
|
470
|
-
function
|
|
471
|
-
return
|
|
469
|
+
function Cs(i) {
|
|
470
|
+
return i.series[0].classBreaksRules?.breaksCount ?? X.classBreaks.breaksCount;
|
|
472
471
|
}
|
|
473
|
-
function
|
|
474
|
-
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.breaksCount =
|
|
475
|
-
breaksCount:
|
|
472
|
+
function bs(i, e) {
|
|
473
|
+
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.breaksCount = i ?? X.classBreaks.breaksCount : e.series[0].classBreaksRules = {
|
|
474
|
+
breaksCount: i ?? X.classBreaks.breaksCount
|
|
476
475
|
};
|
|
477
476
|
}
|
|
478
|
-
function
|
|
479
|
-
return
|
|
477
|
+
function As(i) {
|
|
478
|
+
return i.series[0].classBreaksRules?.classificationMethod;
|
|
480
479
|
}
|
|
481
|
-
function
|
|
482
|
-
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.classificationMethod =
|
|
483
|
-
classificationMethod:
|
|
480
|
+
function vs(i, e) {
|
|
481
|
+
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.classificationMethod = i : e.series[0].classBreaksRules = {
|
|
482
|
+
classificationMethod: i
|
|
484
483
|
}, e.series[0].classBreaksRules.breaksCount = e.series[0].classBreaksRules.breaksCount ?? X.classBreaks.breaksCount;
|
|
485
484
|
}
|
|
486
|
-
function
|
|
487
|
-
e.firstDayOfWeek =
|
|
485
|
+
function Is(i, e) {
|
|
486
|
+
e.firstDayOfWeek = i;
|
|
488
487
|
}
|
|
489
|
-
function
|
|
490
|
-
return
|
|
488
|
+
function Vs(i) {
|
|
489
|
+
return i.firstDayOfWeek;
|
|
491
490
|
}
|
|
492
|
-
function
|
|
493
|
-
return
|
|
491
|
+
function Ds(i) {
|
|
492
|
+
return i.series[0].classBreaksRules?.colorRampInfo?.name;
|
|
494
493
|
}
|
|
495
|
-
function
|
|
494
|
+
function Ls(i, e) {
|
|
496
495
|
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.colorRampInfo = {
|
|
497
496
|
...e.series[0].classBreaksRules.colorRampInfo,
|
|
498
|
-
name:
|
|
497
|
+
name: i
|
|
499
498
|
} : e.series[0].classBreaksRules = {
|
|
500
499
|
colorRampInfo: {
|
|
501
|
-
name:
|
|
500
|
+
name: i,
|
|
502
501
|
flipped: !1
|
|
503
502
|
}
|
|
504
503
|
};
|
|
505
504
|
}
|
|
506
|
-
function
|
|
507
|
-
return
|
|
505
|
+
function ks(i) {
|
|
506
|
+
return i.series[0].classBreaksRules?.colorRampInfo?.flipped ?? !1;
|
|
508
507
|
}
|
|
509
|
-
function Ns(
|
|
508
|
+
function Ns(i, e) {
|
|
510
509
|
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.colorRampInfo = {
|
|
511
510
|
...e.series[0].classBreaksRules.colorRampInfo,
|
|
512
|
-
flipped:
|
|
511
|
+
flipped: i
|
|
513
512
|
} : e.series[0].classBreaksRules = {
|
|
514
513
|
colorRampInfo: {
|
|
515
|
-
flipped:
|
|
514
|
+
flipped: i
|
|
516
515
|
}
|
|
517
516
|
};
|
|
518
517
|
}
|
|
519
|
-
const
|
|
518
|
+
const oi = [
|
|
520
519
|
R.DayOfMonth,
|
|
521
520
|
R.MonthOfYear
|
|
522
|
-
], Ce = (
|
|
521
|
+
], Ce = (i) => {
|
|
523
522
|
let e;
|
|
524
|
-
return z(
|
|
525
|
-
}, be = (
|
|
526
|
-
const { axisIndex: e, commonStrings:
|
|
527
|
-
r !== void 0 && s?.type !== r.type && De({ config: a, commonStrings:
|
|
528
|
-
},
|
|
529
|
-
let
|
|
530
|
-
return e === 0 ?
|
|
531
|
-
}, ve = (
|
|
532
|
-
let
|
|
533
|
-
return
|
|
534
|
-
type:
|
|
535
|
-
unit:
|
|
523
|
+
return z(i) ? e = ye() : ($(i) || G(i)) && (e = J()), e;
|
|
524
|
+
}, be = (i) => $(i) || G(i), Ae = (i) => {
|
|
525
|
+
const { axisIndex: e, commonStrings: t, config: a, valueFormat: r } = i, s = a.axes?.[e]?.valueFormat;
|
|
526
|
+
r !== void 0 && s?.type !== r.type && De({ config: a, commonStrings: t, valueFormat: r, axisIndex: e });
|
|
527
|
+
}, ui = (i, e) => {
|
|
528
|
+
let t;
|
|
529
|
+
return e === 0 ? t = i.series[0]?.xTemporalBinning : e === 1 && (t = i.series[0]?.yTemporalBinning), t;
|
|
530
|
+
}, ve = (i, e) => i.utilsStrings.heatChartCalendarDatePartsUnits[e] ?? "", Ie = (i, e) => {
|
|
531
|
+
let t = oi[i];
|
|
532
|
+
return i === 0 && e?.unit === R.DayOfWeek ? t = R.HourOfDay : i === 1 && e?.unit === R.HourOfDay && (t = R.DayOfWeek), {
|
|
533
|
+
type: C.CalendarDateParts,
|
|
534
|
+
unit: t
|
|
536
535
|
};
|
|
537
|
-
},
|
|
536
|
+
}, ci = (i) => {
|
|
538
537
|
let e = {};
|
|
539
|
-
switch (
|
|
538
|
+
switch (i.unit) {
|
|
540
539
|
case R.DayOfMonth:
|
|
541
540
|
e = { day: "2-digit" };
|
|
542
541
|
break;
|
|
@@ -554,123 +553,129 @@ const li = [
|
|
|
554
553
|
break;
|
|
555
554
|
}
|
|
556
555
|
return {
|
|
557
|
-
type:
|
|
556
|
+
type: C.DateAxisFormat,
|
|
558
557
|
intlOptions: e
|
|
559
558
|
};
|
|
560
|
-
}, Ve = (
|
|
561
|
-
const { axisIndex: e, binning:
|
|
562
|
-
e === 0 ?
|
|
563
|
-
}, ee = (
|
|
564
|
-
const { axisIndex: e, commonStrings:
|
|
565
|
-
De({ config: a, commonStrings:
|
|
566
|
-
},
|
|
567
|
-
const { commonStrings: e, config:
|
|
568
|
-
if (Ae({ axisIndex: 0, commonStrings: e, config:
|
|
569
|
-
const
|
|
570
|
-
|
|
559
|
+
}, Ve = (i) => {
|
|
560
|
+
const { axisIndex: e, binning: t, commonStrings: a, config: r, fieldName: s, layerInfo: n } = i, o = r.series[0], c = re(e, r), d = P(n.layerFieldsInfo, s);
|
|
561
|
+
e === 0 ? o.xTemporalBinning = t : e === 1 && (o.yTemporalBinning = t), t !== void 0 && (c === "" || c === d || c === ve(a, t.unit) || c === a.xAxis) && W(r, e, ve(a, t.unit));
|
|
562
|
+
}, ee = (i) => {
|
|
563
|
+
const { axisIndex: e, commonStrings: t, config: a } = i, r = ui(a, e), s = r ? ci(r) : void 0;
|
|
564
|
+
De({ config: a, commonStrings: t, valueFormat: s, axisIndex: e });
|
|
565
|
+
}, Me = (i) => {
|
|
566
|
+
const { commonStrings: e, config: t, layerInfo: a } = i, r = t.series[0]?.x ?? "", s = t.series[0]?.y ?? "", n = xe(a.layerFieldsInfo, r), o = xe(a.layerFieldsInfo, s), c = Ce(n), d = Ce(o), p = be(n) && be(o), u = z(n) && z(o);
|
|
567
|
+
if (Ae({ axisIndex: 0, commonStrings: e, config: t, valueFormat: c }), Ae({ axisIndex: 1, commonStrings: e, config: t, valueFormat: d }), p) {
|
|
568
|
+
const y = ai(t) === void 0, m = ri(t) === void 0;
|
|
569
|
+
y && (Ve({
|
|
571
570
|
axisIndex: 0,
|
|
572
|
-
binning: Ie(0,
|
|
571
|
+
binning: Ie(0, t.series[0].yTemporalBinning),
|
|
573
572
|
commonStrings: e,
|
|
574
|
-
config:
|
|
573
|
+
config: t,
|
|
575
574
|
fieldName: r,
|
|
576
575
|
layerInfo: a
|
|
577
576
|
}), ee({
|
|
578
577
|
axisIndex: 0,
|
|
579
578
|
commonStrings: e,
|
|
580
|
-
config:
|
|
581
|
-
})),
|
|
579
|
+
config: t
|
|
580
|
+
})), m && (Ve({
|
|
582
581
|
axisIndex: 1,
|
|
583
|
-
binning: Ie(1,
|
|
582
|
+
binning: Ie(1, t.series[0].xTemporalBinning),
|
|
584
583
|
commonStrings: e,
|
|
585
|
-
config:
|
|
584
|
+
config: t,
|
|
586
585
|
fieldName: s,
|
|
587
586
|
layerInfo: a
|
|
588
587
|
}), ee({
|
|
589
588
|
axisIndex: 1,
|
|
590
589
|
commonStrings: e,
|
|
591
|
-
config:
|
|
590
|
+
config: t
|
|
592
591
|
}));
|
|
593
592
|
}
|
|
594
|
-
u && (
|
|
593
|
+
u && (t.series[0].xTemporalBinning = void 0, t.series[0].yTemporalBinning = void 0);
|
|
595
594
|
};
|
|
596
|
-
function
|
|
597
|
-
const
|
|
595
|
+
function di(i) {
|
|
596
|
+
const e = {};
|
|
597
|
+
return i.series.forEach((t) => {
|
|
598
|
+
Pe(t) && "nullCategory" in t && t.nullCategory !== void 0 && (e.text ??= t.nullCategory.text, t.type === C.BarSeries ? e.fillSymbol ??= t.nullCategory.fillSymbol : e.markerSymbol ??= t.nullCategory.markerSymbol);
|
|
599
|
+
}), e.text || e.fillSymbol || e.markerSymbol ? e : void 0;
|
|
600
|
+
}
|
|
601
|
+
function j(i) {
|
|
602
|
+
const { seriesIndex: e, xAxisField: t, aggregationType: a, config: r, layerInfo: s, commonStrings: n } = i, o = Z(s?.layer).idField;
|
|
598
603
|
let c;
|
|
599
604
|
const d = r.series[e ?? 0];
|
|
600
|
-
let
|
|
605
|
+
let p = !1, u = !1, y = !1;
|
|
601
606
|
if (d === void 0) {
|
|
602
|
-
const
|
|
603
|
-
|
|
607
|
+
const l = r.series;
|
|
608
|
+
p = l.slice(0, e).every((f) => A(f)), u = l.slice(0, e).every((f) => v(f)), y = l.slice(0, e).every((f) => he(f));
|
|
604
609
|
} else
|
|
605
|
-
|
|
606
|
-
|
|
610
|
+
p = A(d), u = v(d), y = he(d);
|
|
611
|
+
p ? c = Dt({
|
|
607
612
|
commonStrings: n,
|
|
608
613
|
seriesIndex: e,
|
|
609
|
-
objectIDField:
|
|
610
|
-
}) : u ? c =
|
|
614
|
+
objectIDField: o
|
|
615
|
+
}) : u ? c = Lt({
|
|
611
616
|
commonStrings: n,
|
|
612
617
|
seriesIndex: e,
|
|
613
|
-
objectIDField:
|
|
614
|
-
}) :
|
|
618
|
+
objectIDField: o
|
|
619
|
+
}) : y ? c = kt(n, o) : c = Nt({
|
|
615
620
|
seriesIndex: e,
|
|
616
|
-
objectIDField:
|
|
621
|
+
objectIDField: o,
|
|
617
622
|
commonStrings: n
|
|
618
623
|
});
|
|
619
|
-
const
|
|
624
|
+
const m = r.series[0]?.dataLabels, g = {
|
|
620
625
|
...c,
|
|
621
|
-
x:
|
|
626
|
+
x: t,
|
|
622
627
|
y: "",
|
|
623
628
|
dataLabels: {
|
|
624
629
|
...c.dataLabels,
|
|
625
|
-
type: c.dataLabels?.type ??
|
|
626
|
-
content: { ...c.dataLabels?.content, ...
|
|
627
|
-
visible:
|
|
630
|
+
type: c.dataLabels?.type ?? C.Text,
|
|
631
|
+
content: { ...c.dataLabels?.content, ...m?.content, type: vt.TS },
|
|
632
|
+
visible: m?.visible ?? !1
|
|
628
633
|
}
|
|
629
634
|
};
|
|
630
635
|
if (g.query = {
|
|
631
|
-
groupByFieldsForStatistics: [
|
|
632
|
-
}, a !== I.NoAggregation &&
|
|
633
|
-
const
|
|
634
|
-
g.y =
|
|
636
|
+
groupByFieldsForStatistics: [t]
|
|
637
|
+
}, a !== I.NoAggregation && o !== void 0) {
|
|
638
|
+
const l = `${a}_${o}_0`.toUpperCase();
|
|
639
|
+
g.y = l, g.query.outStatistics = [
|
|
635
640
|
{
|
|
636
641
|
statisticType: a,
|
|
637
|
-
onStatisticField:
|
|
638
|
-
outStatisticFieldName:
|
|
642
|
+
onStatisticField: o,
|
|
643
|
+
outStatisticFieldName: l
|
|
639
644
|
}
|
|
640
645
|
];
|
|
641
646
|
}
|
|
642
647
|
if (V(r.series[0]) && V(g)) {
|
|
643
|
-
let
|
|
644
|
-
|
|
648
|
+
let l = Wt(r);
|
|
649
|
+
l === de.Quarter && (l = de.Month), g.temporalBinning = {
|
|
645
650
|
...r.series[0]?.temporalBinning,
|
|
646
|
-
unit:
|
|
651
|
+
unit: l
|
|
647
652
|
};
|
|
648
653
|
}
|
|
649
654
|
return te(g);
|
|
650
655
|
}
|
|
651
|
-
function _(
|
|
652
|
-
const { layerFieldsInfo: a } = e, { idField: r, isTraditionalTypeOID: s } = Z(e.layer), n = U(
|
|
653
|
-
let
|
|
656
|
+
function _(i, e, t) {
|
|
657
|
+
const { layerFieldsInfo: a } = e, { idField: r, isTraditionalTypeOID: s } = Z(e.layer), n = U(i), o = le(i), c = We(i), d = ne(i), p = s && (o.length === 0 || o.includes(r)), u = Vt(c, t), y = p ? "" : o.map((x) => P(a ?? [], x)).join(", "), m = P(a ?? [], n), g = P(a ?? [], d), l = i.series.some((x) => O(x)), f = l ? "category" : "xAxisField", b = m;
|
|
658
|
+
let B = "";
|
|
654
659
|
if (Oe({
|
|
655
660
|
fieldName: n,
|
|
656
|
-
numericFields:
|
|
661
|
+
numericFields: o,
|
|
657
662
|
fieldList: a
|
|
658
663
|
}))
|
|
659
|
-
|
|
664
|
+
B = E(t.titleLabels.aggrTypeOfAggrFields, {
|
|
660
665
|
aggregationType: u,
|
|
661
|
-
aggregationFields:
|
|
666
|
+
aggregationFields: y
|
|
662
667
|
});
|
|
663
668
|
else if (c === I.NoAggregation) {
|
|
664
|
-
const x =
|
|
669
|
+
const x = p ? r : y;
|
|
665
670
|
if (d === "") {
|
|
666
|
-
const F =
|
|
667
|
-
|
|
671
|
+
const F = l ? "aggrTypeCategory" : "aggrTypeXAxisField";
|
|
672
|
+
B = E(t.titleLabels[F], {
|
|
668
673
|
aggregationType: x,
|
|
669
674
|
[f]: b
|
|
670
675
|
});
|
|
671
676
|
} else {
|
|
672
|
-
const F =
|
|
673
|
-
|
|
677
|
+
const F = l ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
|
|
678
|
+
B = E(t.titleLabels[F], {
|
|
674
679
|
aggregationType: x,
|
|
675
680
|
[f]: b,
|
|
676
681
|
splitByField: g
|
|
@@ -678,90 +683,90 @@ function _(t, e, i) {
|
|
|
678
683
|
}
|
|
679
684
|
} else if (c === I.Count)
|
|
680
685
|
if (d === "") {
|
|
681
|
-
const x =
|
|
682
|
-
|
|
686
|
+
const x = l ? "aggrTypeCategory" : "aggrTypeXAxisField";
|
|
687
|
+
B = E(t.titleLabels[x], {
|
|
683
688
|
aggregationType: u,
|
|
684
689
|
[f]: b
|
|
685
690
|
});
|
|
686
691
|
} else {
|
|
687
|
-
const x =
|
|
688
|
-
|
|
692
|
+
const x = l ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
|
|
693
|
+
B = E(t.titleLabels[x], {
|
|
689
694
|
aggregationType: u,
|
|
690
695
|
[f]: b,
|
|
691
696
|
splitByField: g
|
|
692
697
|
});
|
|
693
698
|
}
|
|
694
699
|
else if (d !== "") {
|
|
695
|
-
const x =
|
|
696
|
-
|
|
700
|
+
const x = l ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
|
|
701
|
+
B = E(t.titleLabels[x], {
|
|
697
702
|
aggregationType: u,
|
|
698
|
-
aggregationField:
|
|
703
|
+
aggregationField: y,
|
|
699
704
|
[f]: b,
|
|
700
705
|
splitByField: g
|
|
701
706
|
});
|
|
702
|
-
} else if (
|
|
703
|
-
const x =
|
|
704
|
-
|
|
707
|
+
} else if (o.length > 0) {
|
|
708
|
+
const x = l ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
|
|
709
|
+
B = E(t.titleLabels[x], {
|
|
705
710
|
aggregationType: u,
|
|
706
|
-
aggregationFields:
|
|
711
|
+
aggregationFields: y,
|
|
707
712
|
[f]: b
|
|
708
713
|
});
|
|
709
714
|
}
|
|
710
|
-
return
|
|
715
|
+
return B;
|
|
711
716
|
}
|
|
712
|
-
const
|
|
713
|
-
where:
|
|
717
|
+
const Ee = (i) => fe({
|
|
718
|
+
where: i.query?.where,
|
|
714
719
|
normalize: !1,
|
|
715
720
|
escape: !1
|
|
716
|
-
}) ?? "",
|
|
717
|
-
(
|
|
718
|
-
const e =
|
|
719
|
-
return
|
|
721
|
+
}) ?? "", We = (i) => i?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? I.NoAggregation, ne = Ke(
|
|
722
|
+
(i) => {
|
|
723
|
+
const e = i?.series?.[0]?.query?.where?.split("=")[0].trim() ?? "";
|
|
724
|
+
return xt(i?.series?.[0]?.query?.where) ? "" : e;
|
|
720
725
|
},
|
|
721
|
-
(
|
|
722
|
-
), le = (
|
|
726
|
+
(i) => i?.series?.[0]?.query?.where
|
|
727
|
+
), le = (i) => {
|
|
723
728
|
let e = [];
|
|
724
|
-
if (ne(
|
|
725
|
-
e =
|
|
726
|
-
const a =
|
|
727
|
-
return a?.length > 0 ? a :
|
|
729
|
+
if (ne(i) === "")
|
|
730
|
+
e = i?.series.map((t) => {
|
|
731
|
+
const a = t.query?.outStatistics?.map((r) => r.onStatisticField) ?? [];
|
|
732
|
+
return a?.length > 0 ? a : t.y;
|
|
728
733
|
}).flat() ?? [];
|
|
729
734
|
else {
|
|
730
|
-
const
|
|
735
|
+
const t = i?.series?.[0], a = t?.query?.outStatistics?.[0]?.onStatisticField ?? [t?.y].flat()[0];
|
|
731
736
|
e = a !== void 0 ? [a] : [];
|
|
732
737
|
}
|
|
733
|
-
return e.filter((
|
|
738
|
+
return e.filter((t) => t !== "");
|
|
734
739
|
};
|
|
735
|
-
function
|
|
736
|
-
const { splitByField: e, numericFields:
|
|
737
|
-
return e === "" ?
|
|
740
|
+
function $e(i) {
|
|
741
|
+
const { splitByField: e, numericFields: t, layer: a, seriesIndex: r } = i, s = Z(a).idField ?? "";
|
|
742
|
+
return e === "" ? t[r] ?? s : t[0] ?? s;
|
|
738
743
|
}
|
|
739
|
-
function
|
|
740
|
-
const { numericFields: e, aggregationType:
|
|
744
|
+
function yi(i) {
|
|
745
|
+
const { numericFields: e, aggregationType: t, config: a, layerInfo: r } = i;
|
|
741
746
|
let s = !1;
|
|
742
|
-
|
|
743
|
-
const d = r.layerFieldsInfo.find((
|
|
744
|
-
return d !== void 0 ?
|
|
747
|
+
t === I.Count ? s = !0 : t === I.NoAggregation && (s = e.every((c) => {
|
|
748
|
+
const d = r.layerFieldsInfo.find((p) => p.name === c);
|
|
749
|
+
return d !== void 0 ? Te(d) : !1;
|
|
745
750
|
})), Se(a, 1, s);
|
|
746
|
-
const n = a.series.some((c) => A(c)),
|
|
747
|
-
if (n ||
|
|
748
|
-
const c = U(a), d = r.layerFieldsInfo.find((u) => u.name === c),
|
|
749
|
-
Se(a, 0,
|
|
751
|
+
const n = a.series.some((c) => A(c)), o = a.series.some((c) => v(c));
|
|
752
|
+
if (n || o) {
|
|
753
|
+
const c = U(a), d = r.layerFieldsInfo.find((u) => u.name === c), p = d !== void 0 && Te(d);
|
|
754
|
+
Se(a, 0, p);
|
|
750
755
|
}
|
|
751
756
|
}
|
|
752
|
-
const pe = (
|
|
757
|
+
const pe = (i) => {
|
|
753
758
|
let e;
|
|
754
|
-
if (
|
|
755
|
-
const
|
|
756
|
-
e = [
|
|
759
|
+
if (Y(i)) {
|
|
760
|
+
const t = i.orderOptions?.data?.orderByX ?? [""], a = i.orderOptions?.data?.orderByY ?? [""], r = i.axes?.[0]?.valueFormat?.type === "category" ? L.Category : L.YValue, s = i.axes?.[1]?.valueFormat?.type === "category" ? L.Category : L.YValue;
|
|
761
|
+
e = [Be(t, r), Be(a, s)];
|
|
757
762
|
} else {
|
|
758
|
-
const
|
|
759
|
-
e = [
|
|
763
|
+
const t = i.orderOptions?.data?.orderType ?? L.Category, a = i.orderOptions?.data && "orderBy" in i.orderOptions.data ? i.orderOptions.data.orderBy : bt.Ascending;
|
|
764
|
+
e = [Bt(a, t)];
|
|
760
765
|
}
|
|
761
766
|
return e;
|
|
762
767
|
};
|
|
763
|
-
function
|
|
764
|
-
const { xAxisField: e, numericFields:
|
|
768
|
+
function mi(i) {
|
|
769
|
+
const { xAxisField: e, numericFields: t, aggregationType: a, config: r, layerInfo: s, commonStrings: n } = i, { layerFieldsInfo: o } = s;
|
|
765
770
|
let c = !1;
|
|
766
771
|
const d = j({
|
|
767
772
|
config: r,
|
|
@@ -770,432 +775,438 @@ function di(t) {
|
|
|
770
775
|
layerInfo: s,
|
|
771
776
|
seriesIndex: 0,
|
|
772
777
|
commonStrings: n
|
|
773
|
-
}),
|
|
778
|
+
}), p = se({
|
|
774
779
|
config: r,
|
|
775
780
|
xAxisField: e,
|
|
776
|
-
numericFields:
|
|
781
|
+
numericFields: t,
|
|
777
782
|
aggregationType: a,
|
|
778
783
|
layer: s.layer,
|
|
779
|
-
fieldList:
|
|
784
|
+
fieldList: o
|
|
780
785
|
}).name, u = {
|
|
781
786
|
...d,
|
|
782
787
|
id: `series_${Date.now()}`,
|
|
783
788
|
name: n.axisLabels.values,
|
|
784
789
|
x: ce,
|
|
785
|
-
y
|
|
786
|
-
},
|
|
787
|
-
for (const g of
|
|
788
|
-
|
|
790
|
+
y: p
|
|
791
|
+
}, y = [];
|
|
792
|
+
for (const g of t)
|
|
793
|
+
y.push({
|
|
789
794
|
onStatisticField: g,
|
|
790
795
|
outStatisticFieldName: `${g}_0`.toUpperCase(),
|
|
791
796
|
statisticType: a
|
|
792
797
|
});
|
|
793
|
-
u.query = { outStatistics:
|
|
794
|
-
const
|
|
795
|
-
return
|
|
798
|
+
u.query = { outStatistics: y };
|
|
799
|
+
const m = r.series[0];
|
|
800
|
+
return m !== void 0 && (u.id = m.id, (A(u) && A(m) || v(u) && v(m)) && K(u, m), r.colorMatch || (O(m) && O(u) ? u.fillSymbol = m.fillSymbol : (A(u) && A(m) || v(u) && v(m)) && (u.lineSymbol = m.lineSymbol, u.markerSymbol = m.markerSymbol), c = !0), u.id = m.id, m.name !== d.name && (u.name = m.name)), r.series.length === 1 && ((A(u) || v(u)) && K(u, r.series[0]), r.colorMatch || (O(u) ? u.fillSymbol = r.series[0].fillSymbol : (A(u) || v(u)) && (u.lineSymbol = r.series[0].lineSymbol, u.markerSymbol = r.series[0].markerSymbol), c = !0)), r.colorMatch = !c, [u];
|
|
796
801
|
}
|
|
797
|
-
function Ye(
|
|
798
|
-
const { xAxisField: e, numericFields:
|
|
799
|
-
let
|
|
800
|
-
for (let
|
|
802
|
+
function Ye(i) {
|
|
803
|
+
const { xAxisField: e, numericFields: t, aggregationType: a, config: r, layerInfo: s, commonStrings: n } = i, { layerFieldsInfo: o } = s, c = Z(s.layer).idField, d = [];
|
|
804
|
+
let p = !1;
|
|
805
|
+
for (let l = 0; l < t.length; l += 1) {
|
|
801
806
|
const f = j({
|
|
802
807
|
config: r,
|
|
803
808
|
xAxisField: e,
|
|
804
809
|
aggregationType: a,
|
|
805
810
|
layerInfo: s,
|
|
806
|
-
seriesIndex:
|
|
811
|
+
seriesIndex: l,
|
|
807
812
|
commonStrings: n
|
|
808
|
-
}), b = r.series[
|
|
813
|
+
}), b = r.series[l]?.y, B = typeof b == "string" && b.trim() !== "" && !o.find((h) => h.name === b) ? b : se({
|
|
809
814
|
config: r,
|
|
810
815
|
xAxisField: e,
|
|
811
|
-
numericFields:
|
|
816
|
+
numericFields: t,
|
|
812
817
|
aggregationType: a,
|
|
813
818
|
layer: s.layer,
|
|
814
|
-
numericFieldIndex:
|
|
815
|
-
fieldList:
|
|
816
|
-
}).name, x =
|
|
819
|
+
numericFieldIndex: l,
|
|
820
|
+
fieldList: o
|
|
821
|
+
}).name, x = t[l];
|
|
817
822
|
let F = {
|
|
818
823
|
...f,
|
|
819
824
|
query: {
|
|
820
825
|
...f.query
|
|
821
826
|
}
|
|
822
827
|
};
|
|
823
|
-
|
|
828
|
+
t && x !== c && (F = {
|
|
824
829
|
...F,
|
|
825
830
|
id: x,
|
|
826
|
-
name: P(
|
|
831
|
+
name: P(o, x)
|
|
827
832
|
});
|
|
828
|
-
let
|
|
829
|
-
F.query !== void 0 && (a !== I.NoAggregation ? (
|
|
833
|
+
let N = x;
|
|
834
|
+
F.query !== void 0 && (a !== I.NoAggregation ? (N = B, F.query.outStatistics = [
|
|
830
835
|
{
|
|
831
836
|
...f.query?.outStatistics?.[0] ?? {},
|
|
832
837
|
onStatisticField: x,
|
|
833
|
-
outStatisticFieldName:
|
|
838
|
+
outStatisticFieldName: B,
|
|
834
839
|
statisticType: a
|
|
835
840
|
}
|
|
836
|
-
]) : delete F.query.outStatistics), F.y =
|
|
841
|
+
]) : delete F.query.outStatistics), F.y = N;
|
|
837
842
|
const S = r.series.find(
|
|
838
843
|
(h) => h.query?.outStatistics?.[0]?.onStatisticField === x && h.query.where === void 0 || h.query?.outStatistics === void 0 && (h.y === x || h.x === x)
|
|
839
844
|
);
|
|
840
845
|
if (S !== void 0 && typeof S.y == "string" && S.y.trim() !== "") {
|
|
841
|
-
(A(F) && A(S) || v(F) && v(S)) && K(F, S), r.colorMatch || (
|
|
846
|
+
(A(F) && A(S) || v(F) && v(S)) && K(F, S), r.colorMatch || (O(F) && O(S) ? F.fillSymbol = S.fillSymbol : (A(F) && A(S) || v(F) && v(S)) && (F.lineSymbol = S.lineSymbol, F.markerSymbol = S.markerSymbol), p = !0);
|
|
842
847
|
const h = j({
|
|
843
848
|
config: r,
|
|
844
849
|
xAxisField: e,
|
|
845
850
|
aggregationType: a,
|
|
846
851
|
layerInfo: s,
|
|
847
|
-
seriesIndex:
|
|
852
|
+
seriesIndex: l,
|
|
848
853
|
commonStrings: n
|
|
849
854
|
});
|
|
850
|
-
F.id = S.id, S.id !== h.id && S.name !== h.name && (F.id = S.id, F.name = S.name), F.assignToSecondValueAxis = S.assignToSecondValueAxis, F.type ===
|
|
855
|
+
F.id = S.id, S.id !== h.id && S.name !== h.name && (F.id = S.id, F.name = S.name), F.assignToSecondValueAxis = S.assignToSecondValueAxis, F.type === C.HeatSeries && S.type === C.HeatSeries && (F.y = S.y, F.heatRulesType = S.heatRulesType);
|
|
851
856
|
}
|
|
852
857
|
d.push(F);
|
|
853
858
|
}
|
|
854
|
-
const u = d.filter((
|
|
855
|
-
(
|
|
856
|
-
),
|
|
857
|
-
(
|
|
859
|
+
const u = d.filter((l) => O(l)), y = d.filter(
|
|
860
|
+
(l) => A(l) || v(l)
|
|
861
|
+
), m = r.series.filter((l) => O(l)), g = r.series.filter(
|
|
862
|
+
(l) => A(l) || v(l)
|
|
858
863
|
);
|
|
859
|
-
return
|
|
864
|
+
return m.length === 1 && u.length === 1 && !r.colorMatch && (O(m[0]) && O(u[0]) && (u[0].fillSymbol = m[0].fillSymbol), p = !0), g.length === 1 && y.length === 1 && ((A(g[0]) && A(y[0]) || v(g[0]) && v(y[0])) && K(y[0], g[0]), r.colorMatch || ((A(g[0]) && A(y[0]) || v(g[0]) && v(y[0])) && (y[0].lineSymbol = g[0].lineSymbol, y[0].markerSymbol = g[0].markerSymbol), p = !0)), r.colorMatch = !p, d;
|
|
860
865
|
}
|
|
861
|
-
function Os(
|
|
862
|
-
const { aggregationType: e, config:
|
|
863
|
-
if (
|
|
866
|
+
function Os(i) {
|
|
867
|
+
const { aggregationType: e, config: t, layerInfo: a, commonStrings: r } = i, { layerFieldsInfo: s, layer: n } = a, o = U(t), c = le(t), d = ne(t), p = oe(t, a, r), u = He(t, a, r);
|
|
868
|
+
if (t.series.forEach((y, m) => {
|
|
864
869
|
const g = se({
|
|
865
|
-
config:
|
|
866
|
-
xAxisField:
|
|
870
|
+
config: t,
|
|
871
|
+
xAxisField: o,
|
|
867
872
|
numericFields: c,
|
|
868
873
|
aggregationType: e,
|
|
869
874
|
splitByField: d,
|
|
870
875
|
layer: n,
|
|
871
|
-
seriesIndex:
|
|
872
|
-
numericFieldIndex:
|
|
876
|
+
seriesIndex: m,
|
|
877
|
+
numericFieldIndex: m,
|
|
873
878
|
fieldList: s
|
|
874
879
|
}).name;
|
|
875
|
-
|
|
876
|
-
const
|
|
880
|
+
y.y = g;
|
|
881
|
+
const l = $e({
|
|
877
882
|
splitByField: d,
|
|
878
883
|
numericFields: c,
|
|
879
884
|
layer: n,
|
|
880
|
-
seriesIndex:
|
|
881
|
-
}), f =
|
|
882
|
-
|
|
883
|
-
...
|
|
885
|
+
seriesIndex: m
|
|
886
|
+
}), f = y.query?.outStatistics?.[0]?.onStatisticField ?? l;
|
|
887
|
+
y.query = {
|
|
888
|
+
...y.query,
|
|
884
889
|
outStatistics: e === I.NoAggregation ? void 0 : [
|
|
885
890
|
{
|
|
886
|
-
...
|
|
891
|
+
...y.query?.outStatistics?.[0],
|
|
887
892
|
outStatisticFieldName: g,
|
|
888
893
|
statisticType: e,
|
|
889
894
|
onStatisticField: f
|
|
890
895
|
}
|
|
891
896
|
]
|
|
892
|
-
}, "temporalBinning" in
|
|
893
|
-
}),
|
|
894
|
-
const
|
|
895
|
-
config:
|
|
897
|
+
}, "temporalBinning" in y && y.temporalBinning !== void 0 && (y.temporalBinning.nullPolicy = e === I.NoAggregation ? H.Interpolate : H.Null), e === I.NoAggregation && Ht(t);
|
|
898
|
+
}), p && t.title && (t.title.content.text = _(t, a, r)), u && t.series[0].type !== C.HeatSeries) {
|
|
899
|
+
const y = ge({
|
|
900
|
+
config: t,
|
|
896
901
|
layerInfo: a,
|
|
897
902
|
commonStrings: r,
|
|
898
903
|
numericFields: c,
|
|
899
904
|
aggregationType: e
|
|
900
905
|
});
|
|
901
|
-
W(
|
|
906
|
+
W(t, 1, y);
|
|
902
907
|
}
|
|
903
908
|
}
|
|
904
|
-
function
|
|
909
|
+
function pi(i) {
|
|
905
910
|
const {
|
|
906
911
|
splitByField: e,
|
|
907
|
-
xAxisField:
|
|
912
|
+
xAxisField: t,
|
|
908
913
|
numericFields: a,
|
|
909
914
|
aggregationType: r,
|
|
910
915
|
config: s,
|
|
911
916
|
layerInfo: n,
|
|
912
|
-
commonStrings:
|
|
917
|
+
commonStrings: o,
|
|
913
918
|
splitByFieldInfos: c
|
|
914
|
-
} =
|
|
919
|
+
} = i, { layer: d, layerFieldsInfo: p } = n, { categoriesArray: u, splitByFieldType: y } = c, m = $e({
|
|
915
920
|
splitByField: e,
|
|
916
921
|
numericFields: a,
|
|
917
922
|
layer: d,
|
|
918
923
|
seriesIndex: 0
|
|
919
924
|
});
|
|
920
|
-
let g = [],
|
|
925
|
+
let g = [], l = !1;
|
|
921
926
|
if (u.length === 0) {
|
|
922
927
|
g = Ye({
|
|
923
|
-
xAxisField:
|
|
928
|
+
xAxisField: t,
|
|
924
929
|
numericFields: a,
|
|
925
930
|
aggregationType: r,
|
|
926
931
|
config: s,
|
|
927
932
|
layerInfo: n,
|
|
928
|
-
commonStrings:
|
|
933
|
+
commonStrings: o
|
|
929
934
|
});
|
|
930
935
|
for (const f of g)
|
|
931
936
|
f.query && (f.query.where = `${e}=''`);
|
|
932
937
|
} else
|
|
933
938
|
for (let f = 0; f < u.length; f += 1) {
|
|
934
|
-
const b = u[f],
|
|
939
|
+
const b = u[f], B = se({
|
|
935
940
|
config: s,
|
|
936
|
-
xAxisField:
|
|
941
|
+
xAxisField: t,
|
|
937
942
|
numericFields: a,
|
|
938
943
|
aggregationType: r,
|
|
939
944
|
layer: n.layer,
|
|
940
945
|
seriesIndex: f,
|
|
941
946
|
splitByField: e,
|
|
942
|
-
fieldList:
|
|
947
|
+
fieldList: p
|
|
943
948
|
}).name, x = j({
|
|
944
949
|
config: s,
|
|
945
|
-
xAxisField:
|
|
950
|
+
xAxisField: t,
|
|
946
951
|
aggregationType: r,
|
|
947
952
|
layerInfo: n,
|
|
948
953
|
seriesIndex: f,
|
|
949
|
-
commonStrings:
|
|
954
|
+
commonStrings: o
|
|
950
955
|
}), F = Ne({
|
|
951
956
|
queryObject: n.layer,
|
|
952
957
|
fieldName: e,
|
|
953
958
|
fieldValue: b ?? ""
|
|
954
|
-
}),
|
|
959
|
+
}), N = `${b}`, h = {
|
|
955
960
|
...x,
|
|
956
|
-
id:
|
|
957
|
-
name: F ??
|
|
958
|
-
y:
|
|
961
|
+
id: N,
|
|
962
|
+
name: F ?? N,
|
|
963
|
+
y: B,
|
|
959
964
|
query: {
|
|
960
965
|
...x.query,
|
|
961
|
-
where: `${e}=${
|
|
966
|
+
where: `${e}=${y === qe.String && b !== null ? `'${b}'` : b}`,
|
|
962
967
|
outStatistics: r !== I.NoAggregation ? [
|
|
963
968
|
{
|
|
964
969
|
...x.query?.outStatistics?.[0] ?? {},
|
|
965
|
-
onStatisticField:
|
|
966
|
-
outStatisticFieldName:
|
|
970
|
+
onStatisticField: m,
|
|
971
|
+
outStatisticFieldName: B,
|
|
967
972
|
statisticType: r
|
|
968
973
|
}
|
|
969
974
|
] : void 0
|
|
970
975
|
}
|
|
971
976
|
}, D = s.series.find(
|
|
972
|
-
(M) => String(
|
|
977
|
+
(M) => String(Ee(M)).trim().replace(/'/gu, "") === N
|
|
973
978
|
);
|
|
974
|
-
D !== void 0 && ((A(h) && A(D) || v(h) && v(D)) && K(h, D), s.colorMatch || (
|
|
979
|
+
D !== void 0 && ((A(h) && A(D) || v(h) && v(D)) && K(h, D), s.colorMatch || (O(h) && O(D) ? h.fillSymbol = D.fillSymbol : (A(h) && A(D) || v(h) && v(D)) && (h.lineSymbol = D.lineSymbol, h.markerSymbol = D.markerSymbol), l = !0), h.id = D.id, h.name = D.name, h.assignToSecondValueAxis = D.assignToSecondValueAxis), h.query && (h.query.fetchNullValues = s.series.some((M) => M.query?.fetchNullValues)), g.push(h);
|
|
975
980
|
}
|
|
976
|
-
return s.colorMatch = !
|
|
981
|
+
return s.colorMatch = !l, g;
|
|
977
982
|
}
|
|
978
|
-
const
|
|
983
|
+
const qs = (i) => {
|
|
979
984
|
const {
|
|
980
985
|
xAxisFieldName: e,
|
|
981
|
-
splitByField:
|
|
986
|
+
splitByField: t,
|
|
982
987
|
numericFields: a,
|
|
983
988
|
aggregationType: r,
|
|
984
989
|
config: s,
|
|
985
990
|
layerInfo: n,
|
|
986
|
-
commonStrings:
|
|
991
|
+
commonStrings: o,
|
|
987
992
|
splitByFieldInfos: c
|
|
988
|
-
} =
|
|
993
|
+
} = i, { layerFieldsInfo: d } = n ?? {}, p = te(s), u = Mt(s), y = U(p), m = d.find((T) => T.name === y), g = s.series[0].query?.fetchNullValues, l = di(s), f = s.series[0]?.query === void 0, b = "binTemporalData" in p.series[0] ? p.series[0].binTemporalData : void 0, B = d.find((T) => T.name === e), x = oe(p, n, o), F = He(p, n, o), N = gi(p, n);
|
|
989
994
|
let S = Le(s);
|
|
990
|
-
const h =
|
|
991
|
-
|
|
995
|
+
const h = p.series.some((T) => O(T)), D = ht(p.series), M = Tt(p.series), q = {};
|
|
996
|
+
Y(p) && (q.classBreaksRules = p.series[0]?.classBreaksRules, q.xTemporalBinning = p.series[0]?.xTemporalBinning, q.yTemporalBinning = p.series[0]?.yTemporalBinning, q.emptyCells = p.series[0]?.emptyCells, q.nullPolicy = p.nullPolicy);
|
|
992
997
|
let Q = !1;
|
|
993
|
-
if (z(
|
|
994
|
-
j({ config: s, xAxisField: e, aggregationType: r, layerInfo: n, commonStrings:
|
|
998
|
+
if (z(B) ? S = ye() : !G(m) && G(B) ? (S = J(), Q = !0) : !$(m) && $(B) ? (S = J(), Q = !0) : $(m) && !$(B) && (h ? S = ye() : S = Ot(), Q = !0), S !== void 0 && _e(s, o, S), u === 0 && (s.series = [
|
|
999
|
+
j({ config: s, xAxisField: e, aggregationType: r, layerInfo: n, commonStrings: o })
|
|
995
1000
|
]), s.series.forEach((T) => {
|
|
996
1001
|
T.x = e, T.query !== void 0 && (T.query.groupByFieldsForStatistics = [e]);
|
|
997
|
-
}),
|
|
1002
|
+
}), t === "" || a.length > 1 ? Oe({
|
|
998
1003
|
fieldName: e,
|
|
999
1004
|
numericFields: a,
|
|
1000
1005
|
fieldList: d
|
|
1001
|
-
}) ? s.series =
|
|
1006
|
+
}) ? s.series = mi({
|
|
1002
1007
|
config: s,
|
|
1003
1008
|
layerInfo: n,
|
|
1004
1009
|
xAxisField: e,
|
|
1005
1010
|
numericFields: a,
|
|
1006
1011
|
aggregationType: r,
|
|
1007
|
-
commonStrings:
|
|
1012
|
+
commonStrings: o
|
|
1008
1013
|
}) : s.series = Ye({
|
|
1009
1014
|
config: s,
|
|
1010
1015
|
layerInfo: n,
|
|
1011
1016
|
xAxisField: e,
|
|
1012
1017
|
numericFields: a,
|
|
1013
1018
|
aggregationType: r,
|
|
1014
|
-
commonStrings:
|
|
1015
|
-
}) : c && (s.series =
|
|
1019
|
+
commonStrings: o
|
|
1020
|
+
}) : c && (s.series = pi({
|
|
1016
1021
|
config: s,
|
|
1017
1022
|
layerInfo: n,
|
|
1018
|
-
splitByField:
|
|
1023
|
+
splitByField: t,
|
|
1019
1024
|
xAxisField: e,
|
|
1020
1025
|
numericFields: a,
|
|
1021
1026
|
aggregationType: r,
|
|
1022
|
-
commonStrings:
|
|
1027
|
+
commonStrings: o,
|
|
1023
1028
|
splitByFieldInfos: c
|
|
1024
|
-
})),
|
|
1029
|
+
})), N && s.series[0].type !== C.HeatSeries) {
|
|
1025
1030
|
const T = P(d, e);
|
|
1026
1031
|
W(s, 0, T);
|
|
1027
1032
|
}
|
|
1028
|
-
if (F && s.series[0].type !==
|
|
1033
|
+
if (F && s.series[0].type !== C.HeatSeries) {
|
|
1029
1034
|
const T = ge({
|
|
1030
1035
|
config: s,
|
|
1031
1036
|
layerInfo: n,
|
|
1032
|
-
commonStrings:
|
|
1037
|
+
commonStrings: o,
|
|
1033
1038
|
numericFields: a,
|
|
1034
1039
|
aggregationType: r
|
|
1035
1040
|
});
|
|
1036
1041
|
W(s, 1, T);
|
|
1037
1042
|
}
|
|
1038
|
-
if (x && s.title && (s.title.content.text = _(s, n,
|
|
1039
|
-
const T = S?.type ===
|
|
1043
|
+
if (x && s.title && (s.title.content.text = _(s, n, o)), k({ config: s, value: null, axisIndex: 1, isMax: !1 }), k({ config: s, value: null, axisIndex: 1, isMax: !0 }), yi({ numericFields: a, aggregationType: r, config: s, layerInfo: n }), (D || M) && (k({ config: s, value: null, axisIndex: 0, isMax: !1 }), k({ config: s, value: null, axisIndex: 0, isMax: !0 }), Q && r !== I.NoAggregation)) {
|
|
1044
|
+
const T = S?.type === C.DateAxisFormat ? H.Null : H.Interpolate;
|
|
1040
1045
|
Yt(T, s);
|
|
1041
1046
|
}
|
|
1042
|
-
|
|
1043
|
-
f ? delete T.query : g && T.query && (T.query.fetchNullValues = g),
|
|
1044
|
-
|
|
1045
|
-
|
|
1047
|
+
Y(s) && (s.series[0].classBreaksRules = q.classBreaksRules, s.series[0].xTemporalBinning = q.xTemporalBinning, s.series[0].yTemporalBinning = q.yTemporalBinning, s.series[0].emptyCells = q.emptyCells, s.nullPolicy = q.nullPolicy, Me({ commonStrings: o, config: s, layerInfo: n })), s.series.forEach((T) => {
|
|
1048
|
+
f ? delete T.query : g && T.query && (T.query.fetchNullValues = g), Pe(T) && l && (T.type === C.BarSeries ? T.nullCategory = {
|
|
1049
|
+
text: l.text,
|
|
1050
|
+
fillSymbol: l.fillSymbol
|
|
1051
|
+
} : T.nullCategory = {
|
|
1052
|
+
text: l.text,
|
|
1053
|
+
markerSymbol: l.markerSymbol
|
|
1054
|
+
}), V(T) && T.binTemporalData === void 0 && B?.type === qe.TimeOnly && (T.binTemporalData = !1);
|
|
1055
|
+
const Xe = p.series.find((Ue) => Ue.id === T.id)?.visible;
|
|
1056
|
+
T.visible = Xe, V(T) && (T.binTemporalData = b);
|
|
1046
1057
|
});
|
|
1047
|
-
}, K = (
|
|
1048
|
-
|
|
1058
|
+
}, K = (i, e) => {
|
|
1059
|
+
i.markerVisible = e.markerVisible, i.lineSmoothed = e.lineSmoothed, i.showArea = e.showArea, i.areaColor = e.areaColor, i.stackNegativeValuesToBaseline = e.stackNegativeValuesToBaseline, e.lineSymbol && (i.lineSymbol = { ...e.lineSymbol, color: i.lineSymbol?.color }), e.markerSymbol && (i.markerSymbol = {
|
|
1049
1060
|
...e.markerSymbol,
|
|
1050
|
-
color:
|
|
1061
|
+
color: i.markerSymbol?.color
|
|
1051
1062
|
});
|
|
1052
|
-
},
|
|
1053
|
-
const { config: e, seriesIndex:
|
|
1054
|
-
let
|
|
1063
|
+
}, Rs = (i) => {
|
|
1064
|
+
const { config: e, seriesIndex: t, layerInfo: a, commonStrings: r } = i, s = e.series?.[t], n = ne(e);
|
|
1065
|
+
let o;
|
|
1055
1066
|
if (ie(e.series) === w.BarAndLineFromFields)
|
|
1056
|
-
|
|
1057
|
-
else if (
|
|
1067
|
+
o = r.axisLabels.values;
|
|
1068
|
+
else if (je(n)) {
|
|
1058
1069
|
const d = s.query?.outStatistics?.[0]?.onStatisticField;
|
|
1059
|
-
d !== void 0 && d !== Z(a.layer).idField && (
|
|
1070
|
+
d !== void 0 && d !== Z(a.layer).idField && (o = P(a.layerFieldsInfo, d));
|
|
1060
1071
|
} else {
|
|
1061
|
-
const d = String(
|
|
1062
|
-
|
|
1072
|
+
const d = String(Ee(s)).trim().replace(/'/gu, "");
|
|
1073
|
+
o = Ne({
|
|
1063
1074
|
queryObject: a.layer,
|
|
1064
1075
|
fieldName: n,
|
|
1065
1076
|
fieldValue: d ?? ""
|
|
1066
1077
|
}) ?? d;
|
|
1067
1078
|
}
|
|
1068
|
-
return
|
|
1069
|
-
},
|
|
1070
|
-
if (
|
|
1071
|
-
|
|
1079
|
+
return o ?? s.id;
|
|
1080
|
+
}, Ps = (i, e) => {
|
|
1081
|
+
if (Y(e))
|
|
1082
|
+
ni(i, e);
|
|
1072
1083
|
else {
|
|
1073
1084
|
e.orderOptions ??= {};
|
|
1074
|
-
const
|
|
1075
|
-
pe(e)[0] === ue.customSort &&
|
|
1085
|
+
const t = e.orderOptions?.data?.orderType;
|
|
1086
|
+
pe(e)[0] === ue.customSort && t === L.Category && (e.orderOptions.data = {
|
|
1076
1087
|
orderType: L.Category,
|
|
1077
|
-
orderBy: [...
|
|
1088
|
+
orderBy: [...i]
|
|
1078
1089
|
});
|
|
1079
1090
|
}
|
|
1080
|
-
},
|
|
1081
|
-
const { config: e, layerInfo:
|
|
1091
|
+
}, ws = async (i) => {
|
|
1092
|
+
const { config: e, layerInfo: t, errorStrings: a } = i, r = U(e), s = Le(e)?.type, n = le(e), o = ie(e.series);
|
|
1082
1093
|
let c = [];
|
|
1083
|
-
return s ===
|
|
1084
|
-
layerInfo:
|
|
1094
|
+
return s === C.CategoryAxisFormat && (o === w.BarAndLineFromFields || r === ce ? c = n.map((d) => P(t?.layerFieldsInfo, d)) : r.trim() !== "" && r !== ce && t !== void 0 && (c = await Ze({
|
|
1095
|
+
layerInfo: t,
|
|
1085
1096
|
config: e,
|
|
1086
1097
|
category: r,
|
|
1087
1098
|
errorStrings: a
|
|
1088
1099
|
}))), c;
|
|
1089
1100
|
};
|
|
1090
|
-
function oe(
|
|
1091
|
-
const a = _(
|
|
1101
|
+
function oe(i, e, t) {
|
|
1102
|
+
const a = _(i, e, t), r = Et(i), s = ae(i);
|
|
1092
1103
|
return a === r || s;
|
|
1093
1104
|
}
|
|
1094
|
-
function
|
|
1105
|
+
function He(i, e, t) {
|
|
1095
1106
|
const a = ge({
|
|
1096
|
-
config:
|
|
1107
|
+
config: i,
|
|
1097
1108
|
layerInfo: e,
|
|
1098
|
-
commonStrings:
|
|
1099
|
-
numericFields: le(
|
|
1100
|
-
aggregationType:
|
|
1101
|
-
}), r = re(1,
|
|
1109
|
+
commonStrings: t,
|
|
1110
|
+
numericFields: le(i),
|
|
1111
|
+
aggregationType: We(i)
|
|
1112
|
+
}), r = re(1, i), s = ae(i);
|
|
1102
1113
|
return a === r || s;
|
|
1103
1114
|
}
|
|
1104
|
-
function
|
|
1105
|
-
const
|
|
1106
|
-
return
|
|
1115
|
+
function gi(i, e) {
|
|
1116
|
+
const t = P(e.layerFieldsInfo, U(i)), a = re(0, i), r = ae(i);
|
|
1117
|
+
return t === a || r;
|
|
1107
1118
|
}
|
|
1108
|
-
function
|
|
1109
|
-
return V(
|
|
1119
|
+
function Ms(i) {
|
|
1120
|
+
return V(i.series[0]) ? i.series[0].binTemporalData ?? !0 : !1;
|
|
1110
1121
|
}
|
|
1111
|
-
function
|
|
1112
|
-
e?.series.forEach((
|
|
1113
|
-
V(
|
|
1122
|
+
function Es(i, e) {
|
|
1123
|
+
e?.series.forEach((t) => {
|
|
1124
|
+
V(t) && (t.binTemporalData = i, i ? t.temporalBinning = {
|
|
1114
1125
|
unit: de.Day,
|
|
1115
1126
|
size: 0,
|
|
1116
|
-
timeAggregationType:
|
|
1127
|
+
timeAggregationType: At.Start,
|
|
1117
1128
|
trimIncompleteTimeInterval: !0,
|
|
1118
1129
|
nullPolicy: H.Null
|
|
1119
|
-
} : delete
|
|
1130
|
+
} : delete t.temporalBinning);
|
|
1120
1131
|
});
|
|
1121
1132
|
}
|
|
1122
1133
|
export {
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1134
|
+
is as $,
|
|
1135
|
+
ws as A,
|
|
1136
|
+
Ps as B,
|
|
1137
|
+
qs as C,
|
|
1138
|
+
Ms as D,
|
|
1139
|
+
Es as E,
|
|
1129
1140
|
_ as F,
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1141
|
+
Me as G,
|
|
1142
|
+
si as H,
|
|
1143
|
+
Ji as I,
|
|
1144
|
+
Ts as J,
|
|
1145
|
+
Bs as K,
|
|
1146
|
+
ai as L,
|
|
1147
|
+
es as M,
|
|
1148
|
+
ri as N,
|
|
1149
|
+
ts as O,
|
|
1150
|
+
Cs as P,
|
|
1151
|
+
bs as Q,
|
|
1152
|
+
As as R,
|
|
1153
|
+
vs as S,
|
|
1154
|
+
Ds as T,
|
|
1155
|
+
Ls as U,
|
|
1156
|
+
ks as V,
|
|
1157
|
+
Zt as W,
|
|
1147
1158
|
Ns as X,
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1159
|
+
Ki as Y,
|
|
1160
|
+
Zi as Z,
|
|
1161
|
+
ss as _,
|
|
1162
|
+
Hi as a,
|
|
1163
|
+
rs as a0,
|
|
1164
|
+
as as a1,
|
|
1165
|
+
Qi as a2,
|
|
1166
|
+
_i as a3,
|
|
1167
|
+
Gi as a4,
|
|
1168
|
+
zi as a5,
|
|
1169
|
+
os as a6,
|
|
1170
|
+
us as a7,
|
|
1171
|
+
cs as a8,
|
|
1172
|
+
ds as a9,
|
|
1173
|
+
ls as aa,
|
|
1174
|
+
ns as ab,
|
|
1175
|
+
ys as ac,
|
|
1176
|
+
li as ad,
|
|
1177
|
+
ms as ae,
|
|
1178
|
+
ps as af,
|
|
1179
|
+
gs as ag,
|
|
1180
|
+
fs as ah,
|
|
1181
|
+
Ss as ai,
|
|
1182
|
+
Fs as aj,
|
|
1183
|
+
Vs as ak,
|
|
1184
|
+
Is as al,
|
|
1185
|
+
xs as am,
|
|
1186
|
+
hs as an,
|
|
1187
|
+
Wi as b,
|
|
1188
|
+
$i as c,
|
|
1178
1189
|
le as d,
|
|
1179
1190
|
ne as e,
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1191
|
+
ji as f,
|
|
1192
|
+
We as g,
|
|
1193
|
+
Rs as h,
|
|
1194
|
+
Xi as i,
|
|
1184
1195
|
Oi as j,
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1196
|
+
$t as k,
|
|
1197
|
+
Wt as l,
|
|
1198
|
+
wi as m,
|
|
1199
|
+
qi as n,
|
|
1200
|
+
Mi as o,
|
|
1201
|
+
Ui as p,
|
|
1202
|
+
Ri as q,
|
|
1203
|
+
_t as r,
|
|
1204
|
+
we as s,
|
|
1205
|
+
Ei as t,
|
|
1195
1206
|
Yi as u,
|
|
1196
|
-
|
|
1207
|
+
Pi as v,
|
|
1197
1208
|
Yt as w,
|
|
1198
|
-
|
|
1209
|
+
Ht as x,
|
|
1199
1210
|
Os as y,
|
|
1200
1211
|
pe as z
|
|
1201
1212
|
};
|