@arcgis/charts-components 5.2.0-next.10 → 5.2.0-next.11
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/{I5AALJRN.js → 24AOJE7B.js} +1 -1
- package/dist/cdn/{VOTZAPI3.js → 3KRPCKJZ.js} +1 -1
- package/dist/cdn/{LOZOENFC.js → 3TBK72EK.js} +1 -1
- package/dist/cdn/{RA3CZHC7.js → 425PZ2QJ.js} +1 -1
- package/dist/cdn/{6SRJ2VKV.js → 4PHYDOBF.js} +1 -1
- package/dist/cdn/{F7Q3XDZH.js → 567CLBG4.js} +1 -1
- package/dist/cdn/{YDJPGFXU.js → 5IIF22XN.js} +1 -1
- package/dist/cdn/{NKJC4MT7.js → 5IN5WK2R.js} +1 -1
- package/dist/cdn/{GNC62GNV.js → 5LXX2PUM.js} +1 -1
- package/dist/cdn/{4YJSRB7R.js → 5NTIKQP4.js} +1 -1
- package/dist/cdn/{QF4UBQYT.js → 5YEADAVZ.js} +1 -1
- package/dist/cdn/{2XYTPC2V.js → 6R7VSDDU.js} +1 -1
- package/dist/cdn/{ICVAXCHZ.js → 76MOP26H.js} +1 -1
- package/dist/cdn/77A4T4FJ.js +2 -0
- package/dist/cdn/{N7NZHIGS.js → 7JIHGRTB.js} +1 -1
- package/dist/cdn/{CHQDKVVQ.js → 7YXTWBT4.js} +1 -1
- package/dist/cdn/{XUT56VH6.js → AHYYQWKY.js} +1 -1
- package/dist/cdn/{CEE2QRZ5.js → ASI7RDYV.js} +1 -1
- package/dist/cdn/{4J6UFQ2Q.js → AXS3UMQJ.js} +1 -1
- package/dist/cdn/BHUFE4DA.js +2 -0
- package/dist/cdn/{2HTYRBIX.js → CEWH3LQO.js} +1 -1
- package/dist/cdn/{KKKCWW6G.js → CTBQ5Y4Z.js} +1 -1
- package/dist/cdn/CVK7KFEC.js +2 -0
- package/dist/cdn/{255TSQSE.js → DFKVPDMJ.js} +6 -6
- package/dist/cdn/DJGEQ42V.js +2 -0
- package/dist/cdn/DL43NPDO.js +2 -0
- package/dist/cdn/{PZKRRAXW.js → E2DO2HQ6.js} +1 -1
- package/dist/cdn/E4LJWBRC.js +2 -0
- package/dist/cdn/EE3KEIAT.js +2 -0
- package/dist/cdn/EJCGZPIV.js +2 -0
- package/dist/cdn/{L6ZALCLC.js → ETSB7KD3.js} +1 -1
- package/dist/cdn/{YSWV4FZE.js → F6QRLYSF.js} +1 -1
- package/dist/cdn/{ZIVPZF6E.js → FBMA7FW4.js} +1 -1
- package/dist/cdn/{3376CR53.js → FEKSPYHM.js} +1 -1
- package/dist/cdn/FUAA6IFR.js +4 -0
- package/dist/cdn/FWRMJQXY.js +2 -0
- package/dist/cdn/{M6JCOZIE.js → G5FULTB5.js} +1 -1
- package/dist/cdn/{PRPNJEPZ.js → GISGGO3Z.js} +1 -1
- package/dist/cdn/{CBHWMUGA.js → GQPOEX7B.js} +21 -21
- package/dist/cdn/{BJRHNVLR.js → GYXK3DV7.js} +1 -1
- package/dist/cdn/{Z5VVIVR3.js → H45LPCQ2.js} +1 -1
- package/dist/cdn/HW6MJJSX.js +2 -0
- package/dist/cdn/{2PAVNZEM.js → HZFHTWL6.js} +1 -1
- package/dist/cdn/{QF6LHQTR.js → I2EERAZ3.js} +1 -1
- package/dist/cdn/{PM6FCUUV.js → I5T7JUDH.js} +1 -1
- package/dist/cdn/IE3GLZJZ.js +2 -0
- package/dist/cdn/{PNDFAGEB.js → IL2FG26D.js} +1 -1
- package/dist/cdn/{5V3ADOWS.js → JBPYGZPJ.js} +1 -1
- package/dist/cdn/JEOBO5JM.js +2 -0
- package/dist/cdn/{XWZYTOHY.js → KPWHYSA5.js} +1 -1
- package/dist/cdn/{IKCVYV5L.js → KXUQJ6GE.js} +1 -1
- package/dist/cdn/{GXC7VLYM.js → KZQFX7LH.js} +1 -1
- package/dist/cdn/{VMS7DT3M.js → L5DROI2A.js} +1 -1
- package/dist/cdn/LL7NH3VV.js +2 -0
- package/dist/cdn/{CDHUW42P.js → LUMOL7ZP.js} +1 -1
- package/dist/cdn/{5OKNLDIJ.js → LYJFZA2M.js} +1 -1
- package/dist/cdn/{WBJ6NWHX.js → MBSMC77K.js} +1 -1
- package/dist/cdn/{25YAWDIB.js → MVGAATR7.js} +1 -1
- package/dist/cdn/{UHPAFBYO.js → NNZCIR7W.js} +1 -1
- package/dist/cdn/NZXQ5BWP.js +2 -0
- package/dist/cdn/{FTOYQNHN.js → O4HUYRYL.js} +1 -1
- package/dist/cdn/{4ETF22K6.js → O4LKWTBY.js} +1 -1
- package/dist/cdn/{LIPUN4CH.js → OW2DLJGU.js} +1 -1
- package/dist/cdn/{CSAUXIK2.js → P2F2O6MH.js} +1 -1
- package/dist/cdn/P4UJJCPG.js +2 -0
- package/dist/cdn/{BBURKBKE.js → P56ROGSK.js} +1 -1
- package/dist/cdn/{HD4FP3ZK.js → PMIWXHTG.js} +1 -1
- package/dist/cdn/{SYIW6YJN.js → PXIAM4CZ.js} +1 -1
- package/dist/cdn/{VL2G5M57.js → QPSJ6XOX.js} +1 -1
- package/dist/cdn/R7HW5WVG.js +2 -0
- package/dist/cdn/{2A7JZQX5.js → RJCJ3F5C.js} +1 -1
- package/dist/cdn/{QM27URJR.js → RKB6QZNW.js} +1 -1
- package/dist/cdn/{GBDEYCR6.js → S6LH7YS6.js} +1 -1
- package/dist/cdn/{XACXJMSF.js → S74GCXXK.js} +2 -2
- package/dist/cdn/{JNNB2DIA.js → SA22QZNW.js} +1 -1
- package/dist/cdn/{OYCT7CFU.js → SJVVFOAX.js} +1 -1
- package/dist/cdn/{TH4OHGTQ.js → SOKKWGPA.js} +1 -1
- package/dist/cdn/SQYOFBS6.js +2 -0
- package/dist/cdn/{KHNP4LWB.js → SVGAVKBQ.js} +1 -1
- package/dist/cdn/SX6SDBU7.js +2 -0
- package/dist/cdn/TTBRUBXY.js +2 -0
- package/dist/cdn/{IHTJSWKK.js → U5IM4KAQ.js} +1 -1
- package/dist/cdn/{VW4GW2JT.js → UE5VX2RL.js} +1 -1
- package/dist/cdn/{7EEYYP6X.js → UIRKQREJ.js} +1 -1
- package/dist/cdn/{Z4HCNLCD.js → UIY2PSG4.js} +1 -1
- package/dist/cdn/UNTIPIBS.js +2 -0
- package/dist/cdn/{KB76VF4V.js → VIY3BCJZ.js} +1 -1
- package/dist/cdn/{LO6KKSE4.js → WHJU66P4.js} +1 -1
- package/dist/cdn/{3S3PN7AK.js → WJ2VDT6B.js} +1 -1
- package/dist/cdn/WU3C7BQU.js +2 -0
- package/dist/cdn/{SPVZ5BND.js → WWO326JE.js} +1 -1
- package/dist/cdn/{H4B3ERFL.js → XNWSVHA3.js} +1 -1
- package/dist/cdn/{RH4AC577.js → XOM6LSIW.js} +1 -1
- package/dist/cdn/{NFANBMTU.js → XP4S2M7F.js} +1 -1
- package/dist/cdn/YALB4GSA.js +2 -0
- package/dist/cdn/YUF4ZSA5.js +2 -0
- package/dist/cdn/ZJHV3UVG.js +2 -0
- package/dist/cdn/{SZEYHOGG.js → ZQ2WG55W.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/data.js +68 -68
- package/dist/chunks/index2.js +214 -208
- package/dist/chunks/index3.js +1 -0
- package/dist/chunks/index4.js +21 -14
- package/dist/chunks/serial-chart-data.js +588 -569
- package/dist/chunks/time-zone.js +1 -1
- package/dist/chunks/web-component-utils.js +529 -508
- package/dist/components/arcgis-chart/customElement.d.ts +1 -1
- package/dist/components/arcgis-chart/customElement.js +4167 -4128
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +34 -36
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +28 -28
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +5 -8
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +34 -35
- package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +14 -17
- package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +14 -16
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +11 -11
- package/dist/components/arcgis-charts-config-format/customElement.js +25 -25
- package/dist/components/arcgis-charts-config-format-popover/customElement.js +7 -10
- package/dist/components/arcgis-charts-config-guide-popover/customElement.js +8 -11
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +13 -14
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +25 -26
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +28 -30
- package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +4 -5
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +35 -35
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +37 -39
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +5 -8
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +11 -12
- package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +8 -10
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/json-schema/index.d.ts +9 -2
- package/dist/model/interfaces/common.d.ts +0 -2
- package/dist/spec/rest-js-types.d.ts +22 -8
- package/dist/spec/web-chart.d.ts +2 -2
- package/dist/utils/chart-config/converter/index.js +264 -264
- package/dist/utils/chart-config/utils/index.d.ts +1 -0
- package/dist/utils/chart-config/validator/interfaces.d.ts +1 -3
- package/dist/utils/errors/index.d.ts +1 -1
- package/dist/utils/layer/inline-conversion/index.d.ts +0 -3
- package/dist/utils/layer/inline-conversion/interfaces.d.ts +0 -2
- package/dist/utils/misc/index.d.ts +2 -3
- package/dist/utils/types/index.d.ts +1 -5
- package/package.json +3 -3
- package/dist/cdn/3CFZUVMF.js +0 -2
- package/dist/cdn/3W2A4SAP.js +0 -2
- package/dist/cdn/5JNEJJU3.js +0 -2
- package/dist/cdn/6MF2R6DJ.js +0 -2
- package/dist/cdn/BER7FMK3.js +0 -2
- package/dist/cdn/CGYB5KPV.js +0 -2
- package/dist/cdn/DJ5OHPYW.js +0 -2
- package/dist/cdn/EK33HUAH.js +0 -2
- package/dist/cdn/GKPMAFU3.js +0 -2
- package/dist/cdn/HFJ4EPET.js +0 -2
- package/dist/cdn/JEH22SPH.js +0 -2
- package/dist/cdn/JMAVBKEZ.js +0 -2
- package/dist/cdn/JQYB4ZDY.js +0 -2
- package/dist/cdn/PJZVDHIF.js +0 -2
- package/dist/cdn/QAIY4AMN.js +0 -2
- package/dist/cdn/SHTFWNG3.js +0 -2
- package/dist/cdn/SXT5DNXJ.js +0 -4
- package/dist/cdn/U4COKMGA.js +0 -2
- package/dist/cdn/U6USPTQ5.js +0 -2
- package/dist/cdn/VSPTNIIU.js +0 -2
- package/dist/cdn/X4BYDZDR.js +0 -2
- package/dist/cdn/XJ2L7VN4.js +0 -2
- package/dist/cdn/XP5GZU4O.js +0 -2
- package/dist/cdn/XXXXO6OB.js +0 -2
- package/dist/cdn/YXWIKYN4.js +0 -2
|
@@ -1,174 +1,174 @@
|
|
|
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
|
|
4
|
-
import { S as
|
|
5
|
-
import { s as N, u as E, g as
|
|
6
|
-
import { w as
|
|
7
|
-
import { a as
|
|
8
|
-
import { u as v, r as L, k as
|
|
9
|
-
import { i as
|
|
3
|
+
import { cloneDeep as re, isEmpty as qe, memoize as Ve } from "lodash-es";
|
|
4
|
+
import { S as ee } from "./common.js";
|
|
5
|
+
import { s as N, u as E, g as le, a as he, b as Ne, c as ke, d as de } from "./utils.js";
|
|
6
|
+
import { w as k, bY as Re, bm as Oe, x as De, Y as K, cr as we, cq as Pe, p as Ee, aH as ne, c2 as Me, d as $e, aG as Ye, I as We, a7 as Xe, bk as He, W as je, e as Ue, bo as Ke, c_ as Qe, v as ze, d5 as ye, bM as _e, d6 as Ge, bI as Ze, B as Je, d2 as et, an as X, a6 as xe, cS as oe, b9 as tt, ba as ue, k as te, bq as st, bu as me, bb as j, bh as ge } from "./index2.js";
|
|
7
|
+
import { a as $, s as Te, g as Q, b as pe, c as it } from "./data.js";
|
|
8
|
+
import { u as v, r as L, k as at, n as V, m as U, p as rt, t as lt, s as se } from "./chart-object-literals.js";
|
|
9
|
+
import { i as nt, R as ot } from "./rest-js-object-literals.js";
|
|
10
10
|
import { i as z } from "./index4.js";
|
|
11
|
-
import { az as
|
|
12
|
-
import { C as w, F as
|
|
13
|
-
import { h as Be, i as O, j as
|
|
14
|
-
import { convertChartSpec as
|
|
15
|
-
import { c as
|
|
11
|
+
import { az as ut, t as ct, Y as dt, a9 as yt, al as mt, x as gt, C as fe, H as Se, $ as pt } from "./index.js";
|
|
12
|
+
import { C as w, F as M, d as D } from "./index3.js";
|
|
13
|
+
import { h as Be, i as O, j as ft, n as St, g as b, m as A, e as Fe } from "./index5.js";
|
|
14
|
+
import { convertChartSpec as Ft } from "../utils/chart-config/converter/index.js";
|
|
15
|
+
import { c as ie, e as ht } from "./type-guards.js";
|
|
16
16
|
import { g as Ce } from "./series-types.js";
|
|
17
|
-
import { g as
|
|
18
|
-
import { a as
|
|
19
|
-
const
|
|
17
|
+
import { g as ce } from "./utils2.js";
|
|
18
|
+
import { a as xt, b as Tt } from "./series-length.js";
|
|
19
|
+
const is = (t) => {
|
|
20
20
|
let e;
|
|
21
21
|
const s = t.series[0];
|
|
22
|
-
return
|
|
23
|
-
},
|
|
22
|
+
return k(s) && (e = s.temporalBinning?.size), e;
|
|
23
|
+
}, Bt = (t) => {
|
|
24
24
|
let e;
|
|
25
25
|
const s = t.series[0];
|
|
26
|
-
return
|
|
27
|
-
}, is = (t) => {
|
|
28
|
-
let e;
|
|
29
|
-
const s = t.series[0];
|
|
30
|
-
return R(s) && (e = s.temporalBinning?.timeAggregationType), e;
|
|
26
|
+
return k(s) && (e = s.temporalBinning?.unit), e;
|
|
31
27
|
}, as = (t) => {
|
|
32
28
|
let e;
|
|
33
29
|
const s = t.series[0];
|
|
34
|
-
return
|
|
30
|
+
return k(s) && (e = s.temporalBinning?.timeAggregationType), e;
|
|
35
31
|
}, rs = (t) => {
|
|
36
32
|
let e;
|
|
37
33
|
const s = t.series[0];
|
|
38
|
-
return
|
|
39
|
-
},
|
|
40
|
-
e
|
|
41
|
-
|
|
42
|
-
|
|
34
|
+
return k(s) && (e = s.temporalBinning?.trimIncompleteTimeInterval), e;
|
|
35
|
+
}, ls = (t) => {
|
|
36
|
+
let e;
|
|
37
|
+
const s = t.series[0];
|
|
38
|
+
return k(s) && (e = s.temporalBinning?.nullPolicy), e;
|
|
43
39
|
}, Ct = (t, e) => {
|
|
44
40
|
e?.series?.forEach((s) => {
|
|
45
|
-
|
|
41
|
+
k(s) && (s.temporalBinning ??= {}, s.temporalBinning.size = t);
|
|
46
42
|
}), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
47
|
-
},
|
|
48
|
-
e
|
|
49
|
-
|
|
43
|
+
}, bt = (t, e) => {
|
|
44
|
+
e?.series?.forEach((s) => {
|
|
45
|
+
k(s) && (s.temporalBinning ??= {}, s.temporalBinning.nullPolicy = t);
|
|
50
46
|
}), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
51
47
|
}, ns = (t, e) => {
|
|
52
48
|
e.series?.forEach((s) => {
|
|
53
|
-
|
|
49
|
+
k(s) && (s.temporalBinning ??= {}, s.temporalBinning.unit = t);
|
|
54
50
|
}), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
55
51
|
}, os = (t, e) => {
|
|
56
52
|
e.series?.forEach((s) => {
|
|
57
|
-
|
|
53
|
+
k(s) && (s.temporalBinning ??= {}, s.temporalBinning.timeAggregationType = t);
|
|
58
54
|
}), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
59
|
-
}, us = (t) => {
|
|
60
|
-
|
|
55
|
+
}, us = (t, e) => {
|
|
56
|
+
e.series?.forEach((s) => {
|
|
57
|
+
k(s) && (s.temporalBinning ??= {}, s.temporalBinning.trimIncompleteTimeInterval = t);
|
|
58
|
+
}), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
59
|
+
}, cs = (t) => {
|
|
60
|
+
Ct(0, t);
|
|
61
61
|
};
|
|
62
|
-
function
|
|
62
|
+
function ds(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 ys(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 ms(t, e) {
|
|
71
71
|
let s;
|
|
72
72
|
return e !== void 0 && (s = { ...e, rotated: t }), s;
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function At(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
|
|
78
|
+
function gs(t, e) {
|
|
79
79
|
return e != null || Be(t);
|
|
80
80
|
}
|
|
81
|
-
async function
|
|
81
|
+
async function ps(t) {
|
|
82
82
|
const { config: e, layer: s, abortSignal: r } = t;
|
|
83
83
|
let a = !1;
|
|
84
|
-
return
|
|
84
|
+
return ie(s) || ht(e) ? e && ie(s) && (a = await Oe({ config: e, layer: s, abortSignal: r })) : a = !0, a;
|
|
85
85
|
}
|
|
86
|
-
async function
|
|
86
|
+
async function vt(t) {
|
|
87
87
|
const {
|
|
88
88
|
queryObject: e,
|
|
89
89
|
chartConfig: s,
|
|
90
90
|
splitByField: r,
|
|
91
91
|
errorStrings: a,
|
|
92
92
|
abortSignal: i,
|
|
93
|
-
runtimeDataFilters:
|
|
94
|
-
ignoreViewExtent:
|
|
95
|
-
setTimeBinningInfoWhenNotProvided:
|
|
96
|
-
returnFeaturesExtent:
|
|
97
|
-
chartLimits:
|
|
93
|
+
runtimeDataFilters: l,
|
|
94
|
+
ignoreViewExtent: n,
|
|
95
|
+
setTimeBinningInfoWhenNotProvided: y,
|
|
96
|
+
returnFeaturesExtent: g,
|
|
97
|
+
chartLimits: F
|
|
98
98
|
} = t;
|
|
99
|
-
let
|
|
100
|
-
const
|
|
99
|
+
let o = [], c;
|
|
100
|
+
const m = re(s), d = m.series[0], u = Ue({
|
|
101
101
|
queryObject: e,
|
|
102
|
-
chartConfig:
|
|
103
|
-
runtimeDataFilters:
|
|
104
|
-
ignoreViewExtent:
|
|
102
|
+
chartConfig: m,
|
|
103
|
+
runtimeDataFilters: l,
|
|
104
|
+
ignoreViewExtent: n
|
|
105
105
|
});
|
|
106
|
-
if (u.outStatistics?.[0]?.outStatisticFieldName && (u.outStatistics[0].outStatisticFieldName =
|
|
107
|
-
xAxisValueFormatType:
|
|
108
|
-
setTimeBinningInfoWhenNotProvided:
|
|
109
|
-
seriesConfig:
|
|
106
|
+
if (u.outStatistics?.[0]?.outStatisticFieldName && (u.outStatistics[0].outStatisticFieldName = ut.outStatistics.outStatisticFieldName), k(d) && Ke({
|
|
107
|
+
xAxisValueFormatType: Qe(m),
|
|
108
|
+
setTimeBinningInfoWhenNotProvided: y,
|
|
109
|
+
seriesConfig: d,
|
|
110
110
|
queryObject: e
|
|
111
|
-
}) &&
|
|
112
|
-
const { temporalBinning:
|
|
113
|
-
chartConfig:
|
|
111
|
+
}) && ze(r, e)) {
|
|
112
|
+
const { temporalBinning: p, x: T } = d, { uniqueQuery: C } = ye({
|
|
113
|
+
chartConfig: m,
|
|
114
114
|
queryConfig: u,
|
|
115
115
|
queryObject: e,
|
|
116
|
-
setTimeBinningInfoWhenNotProvided:
|
|
117
|
-
returnFeaturesExtent:
|
|
118
|
-
chartLimits:
|
|
119
|
-
}),
|
|
120
|
-
|
|
116
|
+
setTimeBinningInfoWhenNotProvided: y,
|
|
117
|
+
returnFeaturesExtent: g,
|
|
118
|
+
chartLimits: F
|
|
119
|
+
}), h = s.axes?.[0].valueFormat.type === v.DateAxisFormat ? s.axes[0].valueFormat.intlOptions.timeZone : void 0;
|
|
120
|
+
c = await _e({
|
|
121
121
|
queryObject: e,
|
|
122
|
-
dateField:
|
|
122
|
+
dateField: T,
|
|
123
123
|
splitByField: r,
|
|
124
124
|
queryConfig: C,
|
|
125
|
-
axisTimeZone:
|
|
126
|
-
temporalBinning:
|
|
125
|
+
axisTimeZone: h,
|
|
126
|
+
temporalBinning: p,
|
|
127
127
|
errorStrings: a,
|
|
128
128
|
abortSignal: i
|
|
129
|
-
}),
|
|
129
|
+
}), o = Array.from(
|
|
130
130
|
new Set(
|
|
131
|
-
|
|
132
|
-
const { stackedAttributes:
|
|
133
|
-
let
|
|
134
|
-
return
|
|
131
|
+
c.flatMap((f) => {
|
|
132
|
+
const { stackedAttributes: R } = f;
|
|
133
|
+
let x = [];
|
|
134
|
+
return R && (x = R.map((S) => S[r]).filter((S) => S !== void 0)), x;
|
|
135
135
|
})
|
|
136
136
|
).values()
|
|
137
137
|
);
|
|
138
138
|
} else {
|
|
139
|
-
const { uniqueQuery:
|
|
140
|
-
chartConfig:
|
|
139
|
+
const { uniqueQuery: p } = ye({
|
|
140
|
+
chartConfig: m,
|
|
141
141
|
queryObject: e,
|
|
142
142
|
queryConfig: u,
|
|
143
|
-
setTimeBinningInfoWhenNotProvided:
|
|
144
|
-
returnFeaturesExtent:
|
|
145
|
-
chartLimits:
|
|
146
|
-
}), { elementCount:
|
|
147
|
-
chartConfig:
|
|
143
|
+
setTimeBinningInfoWhenNotProvided: y,
|
|
144
|
+
returnFeaturesExtent: g,
|
|
145
|
+
chartLimits: F
|
|
146
|
+
}), { elementCount: T } = await Ge({
|
|
147
|
+
chartConfig: m,
|
|
148
148
|
queryObject: e,
|
|
149
149
|
queryConfig: u,
|
|
150
|
-
behaviorAfterLimit:
|
|
151
|
-
numberMaxOfFeaturesToFetch:
|
|
150
|
+
behaviorAfterLimit: F?.behaviorAfterLimit,
|
|
151
|
+
numberMaxOfFeaturesToFetch: p.num,
|
|
152
152
|
abortSignal: i
|
|
153
153
|
});
|
|
154
|
-
|
|
154
|
+
c = await Ze({
|
|
155
155
|
queryObject: e,
|
|
156
|
-
queryConfig:
|
|
157
|
-
featureCount:
|
|
156
|
+
queryConfig: p,
|
|
157
|
+
featureCount: T,
|
|
158
158
|
errorStrings: a,
|
|
159
159
|
abortSignal: i
|
|
160
|
-
}),
|
|
160
|
+
}), o = Array.from(
|
|
161
161
|
new Set(
|
|
162
|
-
|
|
162
|
+
c.map((C) => C.attributes[r]).filter((C) => C !== void 0)
|
|
163
163
|
).values()
|
|
164
164
|
);
|
|
165
165
|
}
|
|
166
|
-
return { allValues:
|
|
166
|
+
return { allValues: o, preFetchedQueryResponse: c };
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function It(t, e) {
|
|
169
169
|
const s = /* @__PURE__ */ new Map();
|
|
170
170
|
return t.series.forEach((r) => {
|
|
171
|
-
let a =
|
|
171
|
+
let a = ne({
|
|
172
172
|
where: r.query?.where,
|
|
173
173
|
// normalize the value so it matches what we get from getAllValues()
|
|
174
174
|
// Refer to https://devtopia.esri.com/WebGIS/arcgis-charts/issues/8127
|
|
@@ -185,17 +185,17 @@ function vt(t, e) {
|
|
|
185
185
|
]);
|
|
186
186
|
}), s;
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function Lt(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
|
-
const
|
|
192
|
-
let
|
|
193
|
-
r ?
|
|
194
|
-
|
|
195
|
-
}), a.set(i,
|
|
191
|
+
const l = s.get(i) ?? [];
|
|
192
|
+
let n = [];
|
|
193
|
+
r ? n = e : e.forEach((y) => {
|
|
194
|
+
l.includes(y) || n.push(y);
|
|
195
|
+
}), a.set(i, n);
|
|
196
196
|
}), a;
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function qt(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,203 +203,203 @@ function Lt(t) {
|
|
|
203
203
|
})
|
|
204
204
|
);
|
|
205
205
|
if (i.query) {
|
|
206
|
-
if (i.id = s ===
|
|
207
|
-
const
|
|
208
|
-
i.query.outStatistics[0].outStatisticFieldName =
|
|
206
|
+
if (s === null ? i.id = M.nullValue : s === "" ? i.id = M.emptyStringValue : i.id = `${s}`, i.name = `${s}`, i.query.outStatistics?.[0] !== void 0) {
|
|
207
|
+
const n = i.id;
|
|
208
|
+
i.query.outStatistics[0].outStatisticFieldName = n, "y" in i && (i.y = n);
|
|
209
209
|
}
|
|
210
|
-
const
|
|
211
|
-
i.query.where = `${r}=${
|
|
210
|
+
const l = typeof s == "number" || s === null ? s : `'${s}'`;
|
|
211
|
+
i.query.where = `${r}=${l}`;
|
|
212
212
|
}
|
|
213
213
|
return i;
|
|
214
214
|
}
|
|
215
|
-
async function
|
|
215
|
+
async function Vt(t) {
|
|
216
216
|
const {
|
|
217
217
|
updateSplitBySeries: e,
|
|
218
218
|
config: s,
|
|
219
219
|
queryObject: r,
|
|
220
220
|
errorStrings: a,
|
|
221
221
|
abortSignal: i,
|
|
222
|
-
runtimeDataFilters:
|
|
223
|
-
ignoreViewExtent:
|
|
224
|
-
setTimeBinningInfoWhenNotProvided:
|
|
225
|
-
returnFeaturesExtent:
|
|
226
|
-
chartLimits:
|
|
227
|
-
} = t, { seriesTemplate:
|
|
228
|
-
let
|
|
229
|
-
if (r && !
|
|
230
|
-
const
|
|
231
|
-
s.series.length === 0 &&
|
|
232
|
-
const
|
|
233
|
-
if (
|
|
234
|
-
const u = Ye(s.series[0]?.query?.where),
|
|
222
|
+
runtimeDataFilters: l,
|
|
223
|
+
ignoreViewExtent: n,
|
|
224
|
+
setTimeBinningInfoWhenNotProvided: y,
|
|
225
|
+
returnFeaturesExtent: g,
|
|
226
|
+
chartLimits: F
|
|
227
|
+
} = t, { seriesTemplate: o } = e ?? {};
|
|
228
|
+
let c;
|
|
229
|
+
if (r && !ie(r) && e !== void 0 && s !== void 0 && (s.series.length > 0 || o !== void 0) && e.addMissingSeries) {
|
|
230
|
+
const m = s.series.length === 0;
|
|
231
|
+
s.series.length === 0 && o !== void 0 && s.series.push(o);
|
|
232
|
+
const d = K(s.series);
|
|
233
|
+
if (d === w.BoxPlotMonoFieldAndSplitBy || d === w.BoxPlotMultiFieldsAndSplitBy || d === w.BoxPlotMonoFieldAndCategoryAndSplitBy || d === w.BarAndLineSplitBy || d === w.BarAndLineSplitByNoAggregation) {
|
|
234
|
+
const u = Ye(s.series[0]?.query?.where), p = We(r), T = Xe(u, p), C = T ? He(T) : !1, h = await vt({
|
|
235
235
|
queryObject: r,
|
|
236
236
|
chartConfig: s,
|
|
237
237
|
splitByField: u,
|
|
238
238
|
abortSignal: i,
|
|
239
|
-
runtimeDataFilters:
|
|
240
|
-
ignoreViewExtent:
|
|
241
|
-
setTimeBinningInfoWhenNotProvided:
|
|
242
|
-
returnFeaturesExtent:
|
|
243
|
-
chartLimits:
|
|
239
|
+
runtimeDataFilters: l,
|
|
240
|
+
ignoreViewExtent: n,
|
|
241
|
+
setTimeBinningInfoWhenNotProvided: y,
|
|
242
|
+
returnFeaturesExtent: g,
|
|
243
|
+
chartLimits: F,
|
|
244
244
|
errorStrings: a
|
|
245
|
-
}), { allValues:
|
|
246
|
-
if ({ preFetchedQueryResponse:
|
|
247
|
-
const
|
|
248
|
-
allValues:
|
|
249
|
-
configUniqueValuesPerSeriesType:
|
|
250
|
-
initialConfigWasEmpty:
|
|
245
|
+
}), { allValues: f } = h;
|
|
246
|
+
if ({ preFetchedQueryResponse: c } = h, f.length > 0) {
|
|
247
|
+
const R = It(s, C), x = Lt({
|
|
248
|
+
allValues: f,
|
|
249
|
+
configUniqueValuesPerSeriesType: R,
|
|
250
|
+
initialConfigWasEmpty: m
|
|
251
251
|
});
|
|
252
|
-
Array.from(
|
|
253
|
-
(
|
|
252
|
+
Array.from(x.keys()).forEach((S) => {
|
|
253
|
+
(x.get(S) ?? []).forEach((q) => {
|
|
254
254
|
s.series.push(
|
|
255
|
-
|
|
255
|
+
qt({
|
|
256
256
|
chartConfig: s,
|
|
257
|
-
seriesTemplate:
|
|
257
|
+
seriesTemplate: o,
|
|
258
258
|
missingValue: q,
|
|
259
259
|
splitByField: u
|
|
260
260
|
})
|
|
261
261
|
);
|
|
262
|
-
}),
|
|
262
|
+
}), m && s.series.shift();
|
|
263
263
|
});
|
|
264
264
|
}
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
|
-
return
|
|
267
|
+
return c;
|
|
268
268
|
}
|
|
269
|
-
function
|
|
270
|
-
e && !Be(e) && (e =
|
|
269
|
+
function Nt(t, e) {
|
|
270
|
+
e && !Be(e) && (e = $e({ chartConfig: e, queryObject: t }));
|
|
271
271
|
}
|
|
272
|
-
async function
|
|
272
|
+
async function fs(t) {
|
|
273
273
|
const {
|
|
274
274
|
configToAlter: e,
|
|
275
275
|
layer: s,
|
|
276
276
|
addMissingSeries: r,
|
|
277
277
|
updateSplitBySeries: a,
|
|
278
278
|
chartContainer: i,
|
|
279
|
-
queryObject:
|
|
280
|
-
abortSignal:
|
|
281
|
-
runtimeDataFilters:
|
|
282
|
-
ignoreViewExtent:
|
|
283
|
-
setTimeBinningInfoWhenNotProvided:
|
|
284
|
-
returnFeaturesExtent:
|
|
285
|
-
chartLimits:
|
|
286
|
-
errorStrings:
|
|
279
|
+
queryObject: l,
|
|
280
|
+
abortSignal: n,
|
|
281
|
+
runtimeDataFilters: y,
|
|
282
|
+
ignoreViewExtent: g,
|
|
283
|
+
setTimeBinningInfoWhenNotProvided: F,
|
|
284
|
+
returnFeaturesExtent: o,
|
|
285
|
+
chartLimits: c,
|
|
286
|
+
errorStrings: m
|
|
287
287
|
} = t;
|
|
288
|
-
let
|
|
289
|
-
return
|
|
288
|
+
let d = e, u;
|
|
289
|
+
return d && (Nt(s, d), d = await Ft(d, s, void 0, n), r && l && (u = await Vt({
|
|
290
290
|
updateSplitBySeries: a,
|
|
291
|
-
config:
|
|
292
|
-
queryObject:
|
|
293
|
-
errorStrings:
|
|
294
|
-
abortSignal:
|
|
295
|
-
runtimeDataFilters:
|
|
296
|
-
ignoreViewExtent:
|
|
297
|
-
setTimeBinningInfoWhenNotProvided:
|
|
298
|
-
returnFeaturesExtent:
|
|
299
|
-
chartLimits:
|
|
300
|
-
})),
|
|
291
|
+
config: d,
|
|
292
|
+
queryObject: l,
|
|
293
|
+
errorStrings: m,
|
|
294
|
+
abortSignal: n,
|
|
295
|
+
runtimeDataFilters: y,
|
|
296
|
+
ignoreViewExtent: g,
|
|
297
|
+
setTimeBinningInfoWhenNotProvided: F,
|
|
298
|
+
returnFeaturesExtent: o,
|
|
299
|
+
chartLimits: c
|
|
300
|
+
})), d = Re(d, i)), { alteredConfig: d, preFetchedQueryResponse: u };
|
|
301
301
|
}
|
|
302
|
-
function
|
|
302
|
+
function kt(t, e) {
|
|
303
303
|
let s = !1;
|
|
304
304
|
if (e !== void 0) {
|
|
305
|
-
const r =
|
|
305
|
+
const r = je({ key: Je.Average, splitBy: e });
|
|
306
306
|
s = Number.isFinite(t[r]);
|
|
307
307
|
}
|
|
308
308
|
return s;
|
|
309
309
|
}
|
|
310
|
-
function
|
|
311
|
-
const { data: e, config: s, showEmptySeries: r } = t, a = s.series.length, i =
|
|
312
|
-
let
|
|
310
|
+
function Ss(t) {
|
|
311
|
+
const { data: e, config: s, showEmptySeries: r } = t, a = s.series.length, i = re(s);
|
|
312
|
+
let l = !1;
|
|
313
313
|
if (!r && a > 1 && e) {
|
|
314
|
-
const
|
|
315
|
-
switch (
|
|
314
|
+
const n = De(e), y = Ce(s?.series), g = K(s?.series), F = /* @__PURE__ */ new Set();
|
|
315
|
+
switch (y) {
|
|
316
316
|
case v.ComboLineAndBarSeries:
|
|
317
317
|
case v.BarSeries:
|
|
318
318
|
case v.RadarSeries:
|
|
319
319
|
case v.LineSeries: {
|
|
320
|
-
i.series.forEach((
|
|
321
|
-
if (Array.isArray(
|
|
322
|
-
let
|
|
323
|
-
"y" in
|
|
324
|
-
(u) =>
|
|
320
|
+
i.series.forEach((c) => {
|
|
321
|
+
if (Array.isArray(n)) {
|
|
322
|
+
let m = "";
|
|
323
|
+
"y" in c && (m = Array.isArray(c.y) ? c.y[0] : c.y, g === w.BarAndLineSplitByNoAggregation && (m = `${m}_${ne({ where: c.query?.where, keepSurroundingQuotes: !1, escape: !1 })}`), n.some(
|
|
324
|
+
(u) => Me({
|
|
325
325
|
dataItem: u,
|
|
326
|
-
x:
|
|
327
|
-
y:
|
|
326
|
+
x: c.x,
|
|
327
|
+
y: m,
|
|
328
328
|
aggregationType: s.series[0].query?.outStatistics?.[0]?.statisticType
|
|
329
329
|
})
|
|
330
|
-
) &&
|
|
330
|
+
) && F.add(c));
|
|
331
331
|
}
|
|
332
332
|
});
|
|
333
333
|
break;
|
|
334
334
|
}
|
|
335
335
|
case v.BoxPlotSeries: {
|
|
336
|
-
if (
|
|
337
|
-
const
|
|
338
|
-
s.series.forEach((
|
|
339
|
-
let
|
|
340
|
-
|
|
341
|
-
(
|
|
342
|
-
dataItem:
|
|
343
|
-
splitBy:
|
|
344
|
-
showOutliers:
|
|
336
|
+
if (we(s)) {
|
|
337
|
+
const c = Pe(s);
|
|
338
|
+
s.series.forEach((m) => {
|
|
339
|
+
let d, u;
|
|
340
|
+
m.type === v.BoxPlotSeries ? (d = e.dataItems, u = d?.some(
|
|
341
|
+
(p) => Ee({
|
|
342
|
+
dataItem: p,
|
|
343
|
+
splitBy: m.query?.where,
|
|
344
|
+
showOutliers: c
|
|
345
345
|
})
|
|
346
|
-
)) :
|
|
347
|
-
(
|
|
348
|
-
)), u &&
|
|
346
|
+
)) : m.type === v.LineSeries && (d = e.meanLines, u = d?.some(
|
|
347
|
+
(p) => kt(p, m.query?.where)
|
|
348
|
+
)), u && F.add(m);
|
|
349
349
|
});
|
|
350
350
|
}
|
|
351
351
|
break;
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
|
-
const
|
|
355
|
-
|
|
354
|
+
const o = Array.from(F.values());
|
|
355
|
+
l = o.length > 0 && o.length < a, l && (i.series = o);
|
|
356
356
|
}
|
|
357
|
-
return { seriesFilteredOut:
|
|
357
|
+
return { seriesFilteredOut: l, filteredConfig: i };
|
|
358
358
|
}
|
|
359
|
-
const
|
|
359
|
+
const Fs = (t) => t.hideEmptyRowsAndColumns, hs = (t, e) => {
|
|
360
360
|
t.hideEmptyRowsAndColumns = e;
|
|
361
|
-
},
|
|
361
|
+
}, xs = (t, e) => {
|
|
362
362
|
const s = t.series[0];
|
|
363
363
|
s.heatRulesType = e;
|
|
364
|
-
}, Ts = (t) => t.series[0].heatRulesType,
|
|
364
|
+
}, Ts = (t) => t.series[0].heatRulesType, Bs = (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" &&
|
|
370
|
-
const
|
|
371
|
-
E(s, 1,
|
|
367
|
+
}, Cs = (t) => t.series[0].gradientRules, bs = (t) => {
|
|
368
|
+
const { yField: e, config: s, layerInfo: r } = t, { layerFieldsInfo: a } = r, i = ce(1, s), l = Rt(s), n = z(s), y = s.series[0];
|
|
369
|
+
if (typeof e == "string" && l !== e && y && (y.y = e, At(s), l === i || n)) {
|
|
370
|
+
const g = D(a, e);
|
|
371
|
+
E(s, 1, g);
|
|
372
372
|
}
|
|
373
|
-
}, Rt = (t) => t.series[0].y ?? "",
|
|
373
|
+
}, Rt = (t) => t.series[0].y ?? "", As = (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
|
+
}, vs = (t) => t.series[0].xTemporalBinning, Is = (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
|
+
}, Ls = (t) => t.series[0].yTemporalBinning, Ot = (t, e) => {
|
|
386
386
|
e.orderOptions ??= {};
|
|
387
|
-
const s = e.axes?.[0]?.valueFormat?.type === "category" ? V.Category : V.YValue, r =
|
|
387
|
+
const s = e.axes?.[0]?.valueFormat?.type === "category" ? V.Category : V.YValue, r = ae(e)[0], a = e.axes?.[1]?.valueFormat?.type === "category" ? V.Category : V.YValue, i = ae(e)[1], l = {
|
|
388
388
|
...e.orderOptions.data ?? {},
|
|
389
389
|
orderType: V.MultiAxes
|
|
390
390
|
};
|
|
391
|
-
r ===
|
|
392
|
-
},
|
|
391
|
+
r === ee.customSort && s === V.Category && (l.orderByX = [...t]), i === ee.customSort && a === V.Category && (l.orderByY = [...t]), Object.keys(l).length > 1 && (e.orderOptions.data = l);
|
|
392
|
+
}, qs = (t, e) => {
|
|
393
393
|
const s = e.series[0];
|
|
394
394
|
s.gridLine && (s.gridLine.width = t);
|
|
395
|
-
},
|
|
395
|
+
}, Vs = (t) => t.series[0].gridLine?.width, Ns = (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
|
+
}, ks = (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],
|
|
401
|
+
}, Os = (t) => t.legend?.position ?? at.Bottom, Ds = (t) => t.series[0].query?.outStatistics?.[0]?.onStatisticField, ws = (t) => {
|
|
402
|
+
const { field: e, config: s, layerInfo: r, commonStrings: a } = t, i = s.series[0].query?.outStatistics?.[0], l = Z(s, r, a);
|
|
403
403
|
i ? (i.onStatisticField = e, i.outStatisticFieldName = `${i.statisticType}_${e}`) : s.series[0].query = {
|
|
404
404
|
outStatistics: [
|
|
405
405
|
{
|
|
@@ -408,53 +408,53 @@ const Ss = (t) => t.hideEmptyRowsAndColumns, hs = (t, e) => {
|
|
|
408
408
|
statisticType: L.Count
|
|
409
409
|
}
|
|
410
410
|
]
|
|
411
|
-
},
|
|
412
|
-
},
|
|
413
|
-
const { aggregationType: e, config: s, layerInfo: r, commonStrings: a } = t, i = s.series[0]?.query?.outStatistics?.[0],
|
|
414
|
-
i && e !== L.NoAggregation && (i.statisticType = e, i.outStatisticFieldName = `${e}_${i.onStatisticField}`), (e === L.Count || e === L.Sum) &&
|
|
415
|
-
},
|
|
411
|
+
}, l && s.title && (s.title.content.text = H(s, r, a));
|
|
412
|
+
}, Ps = (t) => t.series[0].query?.outStatistics?.[0].statisticType ?? L.Count, Es = (t) => {
|
|
413
|
+
const { aggregationType: e, config: s, layerInfo: r, commonStrings: a } = t, i = s.series[0]?.query?.outStatistics?.[0], l = Z(s, r, a);
|
|
414
|
+
i && e !== L.NoAggregation && (i.statisticType = e, i.outStatisticFieldName = `${e}_${i.onStatisticField}`), (e === L.Count || e === L.Sum) && Dt(U.Zero, s), l && s.title && (s.title.content.text = H(s, r, a));
|
|
415
|
+
}, Ms = (t) => t.nullPolicy, Dt = (t, e) => {
|
|
416
416
|
e.nullPolicy = t;
|
|
417
|
-
},
|
|
417
|
+
}, $s = (t) => t.series[0].emptyCells, Ys = (t, e) => {
|
|
418
418
|
e.series[0].emptyCells = t;
|
|
419
|
-
},
|
|
419
|
+
}, Ws = (t) => t.series[0].emptyCells?.text, Xs = (t, e) => {
|
|
420
420
|
e.series[0].emptyCells ? e.series[0].emptyCells.text = t : e.series[0].emptyCells = { text: t };
|
|
421
|
-
},
|
|
421
|
+
}, Hs = (t) => t.includeLeapDay, js = (t, e) => {
|
|
422
422
|
e.includeLeapDay = t;
|
|
423
|
-
}, Us = (t) => t.series[0].emptyCells?.symbol,
|
|
423
|
+
}, Us = (t) => t.series[0].emptyCells?.symbol, Ks = (t, e) => {
|
|
424
424
|
e.series[0].emptyCells ? e.series[0].emptyCells.symbol = t : e.series[0].emptyCells = { symbol: t };
|
|
425
425
|
};
|
|
426
|
-
function
|
|
426
|
+
function Qs(t) {
|
|
427
427
|
return t.viewType;
|
|
428
428
|
}
|
|
429
|
-
function
|
|
430
|
-
|
|
429
|
+
function zs(t, e) {
|
|
430
|
+
et(e) || (e.viewType = t);
|
|
431
431
|
}
|
|
432
|
-
function
|
|
433
|
-
return t.series[0].classBreaksRules?.breaksCount ??
|
|
432
|
+
function _s(t) {
|
|
433
|
+
return t.series[0].classBreaksRules?.breaksCount ?? M.classBreaks.breaksCount;
|
|
434
434
|
}
|
|
435
|
-
function
|
|
436
|
-
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.breaksCount = t ??
|
|
437
|
-
breaksCount: t ??
|
|
435
|
+
function Gs(t, e) {
|
|
436
|
+
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.breaksCount = t ?? M.classBreaks.breaksCount : e.series[0].classBreaksRules = {
|
|
437
|
+
breaksCount: t ?? M.classBreaks.breaksCount
|
|
438
438
|
};
|
|
439
439
|
}
|
|
440
|
-
function
|
|
440
|
+
function Zs(t) {
|
|
441
441
|
return t.series[0].classBreaksRules?.classificationMethod;
|
|
442
442
|
}
|
|
443
|
-
function
|
|
443
|
+
function Js(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 ?? M.classBreaks.breaksCount;
|
|
447
447
|
}
|
|
448
|
-
function
|
|
448
|
+
function ei(t, e) {
|
|
449
449
|
e.firstDayOfWeek = t;
|
|
450
450
|
}
|
|
451
|
-
function
|
|
451
|
+
function ti(t) {
|
|
452
452
|
return t.firstDayOfWeek;
|
|
453
453
|
}
|
|
454
|
-
function
|
|
454
|
+
function si(t) {
|
|
455
455
|
return t.series[0].classBreaksRules?.colorRampInfo?.name;
|
|
456
456
|
}
|
|
457
|
-
function
|
|
457
|
+
function ii(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 si(t, e) {
|
|
|
465
465
|
}
|
|
466
466
|
};
|
|
467
467
|
}
|
|
468
|
-
function
|
|
468
|
+
function ai(t) {
|
|
469
469
|
return t.series[0].classBreaksRules?.colorRampInfo?.flipped ?? !1;
|
|
470
470
|
}
|
|
471
|
-
function
|
|
471
|
+
function ri(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,135 +478,135 @@ function ai(t, e) {
|
|
|
478
478
|
}
|
|
479
479
|
};
|
|
480
480
|
}
|
|
481
|
-
function
|
|
482
|
-
const { seriesIndex: e, xAxisField: s, aggregationType: r, config: a, layerInfo: i, commonStrings:
|
|
483
|
-
let
|
|
484
|
-
const
|
|
485
|
-
let
|
|
486
|
-
if (
|
|
481
|
+
function Y(t) {
|
|
482
|
+
const { seriesIndex: e, xAxisField: s, aggregationType: r, config: a, layerInfo: i, commonStrings: l } = t, n = X(i?.layer).idField;
|
|
483
|
+
let y;
|
|
484
|
+
const g = a.series[e ?? 0];
|
|
485
|
+
let F = !1, o = !1, c = !1;
|
|
486
|
+
if (g === void 0) {
|
|
487
487
|
const u = a.series;
|
|
488
|
-
|
|
488
|
+
F = u.slice(0, e).every((p) => b(p)), o = u.slice(0, e).every((p) => A(p)), c = u.slice(0, e).every((p) => Fe(p));
|
|
489
489
|
} else
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
commonStrings:
|
|
490
|
+
F = b(g), o = A(g), c = Fe(g);
|
|
491
|
+
F ? y = dt({
|
|
492
|
+
commonStrings: l,
|
|
493
493
|
seriesIndex: e,
|
|
494
|
-
objectIDField:
|
|
495
|
-
}) :
|
|
496
|
-
commonStrings:
|
|
494
|
+
objectIDField: n
|
|
495
|
+
}) : o ? y = yt({
|
|
496
|
+
commonStrings: l,
|
|
497
497
|
seriesIndex: e,
|
|
498
|
-
objectIDField:
|
|
499
|
-
}) :
|
|
498
|
+
objectIDField: n
|
|
499
|
+
}) : c ? y = mt(l, n) : y = gt({
|
|
500
500
|
seriesIndex: e,
|
|
501
|
-
objectIDField:
|
|
502
|
-
commonStrings:
|
|
501
|
+
objectIDField: n,
|
|
502
|
+
commonStrings: l
|
|
503
503
|
});
|
|
504
|
-
const
|
|
505
|
-
...
|
|
504
|
+
const m = a.series[0]?.dataLabels, d = {
|
|
505
|
+
...y,
|
|
506
506
|
x: s,
|
|
507
507
|
y: "",
|
|
508
508
|
dataLabels: {
|
|
509
|
-
...
|
|
510
|
-
type:
|
|
511
|
-
content: { ...
|
|
512
|
-
visible:
|
|
509
|
+
...y.dataLabels,
|
|
510
|
+
type: y.dataLabels?.type ?? v.Text,
|
|
511
|
+
content: { ...y.dataLabels?.content, ...m?.content, type: nt.TS },
|
|
512
|
+
visible: m?.visible ?? !1
|
|
513
513
|
}
|
|
514
514
|
};
|
|
515
|
-
if (
|
|
515
|
+
if (d.query = {
|
|
516
516
|
groupByFieldsForStatistics: [s]
|
|
517
|
-
}, r !== L.NoAggregation &&
|
|
518
|
-
const u = `${r}_${
|
|
519
|
-
|
|
517
|
+
}, r !== L.NoAggregation && n !== void 0) {
|
|
518
|
+
const u = `${r}_${n}_0`.toUpperCase();
|
|
519
|
+
d.y = u, d.query.outStatistics = [
|
|
520
520
|
{
|
|
521
521
|
statisticType: r,
|
|
522
|
-
onStatisticField:
|
|
522
|
+
onStatisticField: n,
|
|
523
523
|
outStatisticFieldName: u
|
|
524
524
|
}
|
|
525
525
|
];
|
|
526
526
|
}
|
|
527
|
-
if (
|
|
528
|
-
let u =
|
|
529
|
-
u ===
|
|
527
|
+
if (k(a.series[0]) && k(d) && ue({ chartConfig: a })) {
|
|
528
|
+
let u = Bt(a);
|
|
529
|
+
u === se.Quarter && (u = se.Month), d.temporalBinning = {
|
|
530
530
|
...a.series[0]?.temporalBinning,
|
|
531
531
|
unit: u
|
|
532
532
|
};
|
|
533
533
|
}
|
|
534
|
-
return
|
|
534
|
+
return re(d);
|
|
535
535
|
}
|
|
536
536
|
function H(t, e, s) {
|
|
537
|
-
const { layerFieldsInfo: r } = e, { idField: a, isTraditionalTypeOID: i } = X(e.layer),
|
|
537
|
+
const { layerFieldsInfo: r } = e, { idField: a, isTraditionalTypeOID: i } = X(e.layer), l = $(t), n = G(t), y = Ae(t), g = _(t), F = i && (n.length === 0 || n.includes(a)), o = ct(y, s), c = F ? "" : n.map((h) => D(r ?? [], h)).join(", "), m = D(r ?? [], l), d = D(r ?? [], g), u = t.series.some((h) => O(h)), p = u ? "category" : "xAxisField", T = m;
|
|
538
538
|
let C = "";
|
|
539
|
-
if (
|
|
540
|
-
fieldName:
|
|
541
|
-
numericFields:
|
|
539
|
+
if (Te({
|
|
540
|
+
fieldName: l,
|
|
541
|
+
numericFields: n,
|
|
542
542
|
fieldList: r
|
|
543
543
|
}))
|
|
544
544
|
C = P(s.titleLabels.aggrTypeOfAggrFields, {
|
|
545
|
-
aggregationType:
|
|
546
|
-
aggregationFields:
|
|
545
|
+
aggregationType: o,
|
|
546
|
+
aggregationFields: c
|
|
547
547
|
});
|
|
548
|
-
else if (
|
|
549
|
-
const
|
|
550
|
-
if (
|
|
551
|
-
const
|
|
552
|
-
C = P(s.titleLabels[
|
|
553
|
-
aggregationType:
|
|
554
|
-
[
|
|
548
|
+
else if (y === L.NoAggregation) {
|
|
549
|
+
const h = F ? a : c;
|
|
550
|
+
if (g === "") {
|
|
551
|
+
const f = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
|
|
552
|
+
C = P(s.titleLabels[f], {
|
|
553
|
+
aggregationType: h,
|
|
554
|
+
[p]: T
|
|
555
555
|
});
|
|
556
556
|
} else {
|
|
557
|
-
const
|
|
558
|
-
C = P(s.titleLabels[
|
|
559
|
-
aggregationType:
|
|
560
|
-
[
|
|
561
|
-
splitByField:
|
|
557
|
+
const f = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
|
|
558
|
+
C = P(s.titleLabels[f], {
|
|
559
|
+
aggregationType: h,
|
|
560
|
+
[p]: T,
|
|
561
|
+
splitByField: d
|
|
562
562
|
});
|
|
563
563
|
}
|
|
564
|
-
} else if (
|
|
565
|
-
if (
|
|
566
|
-
const
|
|
567
|
-
C = P(s.titleLabels[
|
|
568
|
-
aggregationType:
|
|
569
|
-
[
|
|
564
|
+
} else if (y === L.Count)
|
|
565
|
+
if (g === "") {
|
|
566
|
+
const h = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
|
|
567
|
+
C = P(s.titleLabels[h], {
|
|
568
|
+
aggregationType: o,
|
|
569
|
+
[p]: T
|
|
570
570
|
});
|
|
571
571
|
} else {
|
|
572
|
-
const
|
|
573
|
-
C = P(s.titleLabels[
|
|
574
|
-
aggregationType:
|
|
575
|
-
[
|
|
576
|
-
splitByField:
|
|
572
|
+
const h = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
|
|
573
|
+
C = P(s.titleLabels[h], {
|
|
574
|
+
aggregationType: o,
|
|
575
|
+
[p]: T,
|
|
576
|
+
splitByField: d
|
|
577
577
|
});
|
|
578
578
|
}
|
|
579
|
-
else if (
|
|
580
|
-
const
|
|
581
|
-
C = P(s.titleLabels[
|
|
582
|
-
aggregationType:
|
|
583
|
-
aggregationField:
|
|
584
|
-
[
|
|
585
|
-
splitByField:
|
|
579
|
+
else if (g !== "") {
|
|
580
|
+
const h = u ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
|
|
581
|
+
C = P(s.titleLabels[h], {
|
|
582
|
+
aggregationType: o,
|
|
583
|
+
aggregationField: c,
|
|
584
|
+
[p]: T,
|
|
585
|
+
splitByField: d
|
|
586
586
|
});
|
|
587
|
-
} else if (
|
|
588
|
-
const
|
|
589
|
-
C = P(s.titleLabels[
|
|
590
|
-
aggregationType:
|
|
591
|
-
aggregationFields:
|
|
592
|
-
[
|
|
587
|
+
} else if (n.length > 0) {
|
|
588
|
+
const h = u ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
|
|
589
|
+
C = P(s.titleLabels[h], {
|
|
590
|
+
aggregationType: o,
|
|
591
|
+
aggregationFields: c,
|
|
592
|
+
[p]: T
|
|
593
593
|
});
|
|
594
594
|
}
|
|
595
595
|
return C;
|
|
596
596
|
}
|
|
597
|
-
const be = (t) =>
|
|
597
|
+
const be = (t) => ne({
|
|
598
598
|
where: t.query?.where,
|
|
599
599
|
normalize: !1,
|
|
600
600
|
escape: !1
|
|
601
|
-
}) ?? "", Ae = (t) => t?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? L.NoAggregation,
|
|
601
|
+
}) ?? "", Ae = (t) => t?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? L.NoAggregation, _ = Ve(
|
|
602
602
|
(t) => {
|
|
603
603
|
const e = t?.series?.[0]?.query?.where?.split("=")[0].trim() ?? "";
|
|
604
|
-
return
|
|
604
|
+
return tt(t?.series?.[0]?.query?.where) ? "" : e;
|
|
605
605
|
},
|
|
606
606
|
(t) => t?.series?.[0]?.query?.where
|
|
607
|
-
),
|
|
607
|
+
), G = (t) => {
|
|
608
608
|
let e = [];
|
|
609
|
-
if (
|
|
609
|
+
if (_(t) === "")
|
|
610
610
|
e = t?.series.map((s) => {
|
|
611
611
|
const r = s.query?.outStatistics?.map((a) => a.onStatisticField) ?? [];
|
|
612
612
|
return r?.length > 0 ? r : s.y;
|
|
@@ -617,454 +617,473 @@ const be = (t) => le({
|
|
|
617
617
|
}
|
|
618
618
|
return e.filter((s) => s !== "");
|
|
619
619
|
};
|
|
620
|
-
function
|
|
620
|
+
function ve(t) {
|
|
621
|
+
const { splitByField: e, numericFields: s, layer: r, seriesIndex: a } = t, i = X(r).idField ?? "";
|
|
622
|
+
return e === "" ? s[a] ?? i : s[0] ?? i;
|
|
623
|
+
}
|
|
624
|
+
function wt(t) {
|
|
621
625
|
const { numericFields: e, aggregationType: s, config: r, layerInfo: a } = t;
|
|
622
626
|
let i = !1;
|
|
623
|
-
s === L.Count ? i = !0 : s === L.NoAggregation && (i = e.every((
|
|
624
|
-
const
|
|
625
|
-
return
|
|
627
|
+
s === L.Count ? i = !0 : s === L.NoAggregation && (i = e.every((y) => {
|
|
628
|
+
const g = a.layerFieldsInfo.find((F) => F.name === y);
|
|
629
|
+
return g !== void 0 ? ge(g) : !1;
|
|
626
630
|
})), de(r, 1, i);
|
|
627
|
-
const
|
|
628
|
-
if (
|
|
629
|
-
const
|
|
630
|
-
de(r, 0,
|
|
631
|
+
const l = r.series.some((y) => b(y)), n = r.series.some((y) => A(y));
|
|
632
|
+
if (l || n) {
|
|
633
|
+
const y = $(r), g = a.layerFieldsInfo.find((o) => o.name === y), F = g !== void 0 && ge(g);
|
|
634
|
+
de(r, 0, F);
|
|
631
635
|
}
|
|
632
636
|
}
|
|
633
|
-
const
|
|
637
|
+
const ae = (t) => {
|
|
634
638
|
let e;
|
|
635
|
-
if (
|
|
639
|
+
if (oe(t)) {
|
|
636
640
|
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;
|
|
637
641
|
e = [pe(s, a), pe(r, i)];
|
|
638
642
|
} else {
|
|
639
|
-
const s = t.orderOptions?.data?.orderType ?? V.Category, r = t.orderOptions?.data && "orderBy" in t.orderOptions.data ? t.orderOptions.data.orderBy :
|
|
640
|
-
e = [
|
|
643
|
+
const s = t.orderOptions?.data?.orderType ?? V.Category, r = t.orderOptions?.data && "orderBy" in t.orderOptions.data ? t.orderOptions.data.orderBy : rt.Ascending;
|
|
644
|
+
e = [it(r, s)];
|
|
641
645
|
}
|
|
642
646
|
return e;
|
|
643
647
|
};
|
|
644
|
-
function
|
|
645
|
-
const { xAxisField: e, numericFields: s, aggregationType: r, config: a, layerInfo: i, commonStrings:
|
|
646
|
-
let
|
|
647
|
-
const
|
|
648
|
+
function Pt(t) {
|
|
649
|
+
const { xAxisField: e, numericFields: s, aggregationType: r, config: a, layerInfo: i, commonStrings: l } = t, { layerFieldsInfo: n } = i;
|
|
650
|
+
let y = !1;
|
|
651
|
+
const g = Y({
|
|
648
652
|
config: a,
|
|
649
653
|
xAxisField: e,
|
|
650
654
|
aggregationType: r,
|
|
651
655
|
layerInfo: i,
|
|
652
656
|
seriesIndex: 0,
|
|
653
|
-
commonStrings:
|
|
654
|
-
}),
|
|
657
|
+
commonStrings: l
|
|
658
|
+
}), F = Q({
|
|
655
659
|
config: a,
|
|
656
660
|
xAxisField: e,
|
|
657
661
|
numericFields: s,
|
|
658
662
|
aggregationType: r,
|
|
659
663
|
layer: i.layer,
|
|
660
|
-
fieldList:
|
|
661
|
-
}).name,
|
|
662
|
-
...
|
|
664
|
+
fieldList: n
|
|
665
|
+
}).name, o = {
|
|
666
|
+
...g,
|
|
663
667
|
id: `series_${Date.now()}`,
|
|
664
|
-
name:
|
|
665
|
-
x:
|
|
666
|
-
y:
|
|
667
|
-
},
|
|
668
|
-
for (const
|
|
669
|
-
|
|
670
|
-
onStatisticField:
|
|
671
|
-
outStatisticFieldName: `${
|
|
668
|
+
name: l.axisLabels.values,
|
|
669
|
+
x: te,
|
|
670
|
+
y: F
|
|
671
|
+
}, c = [];
|
|
672
|
+
for (const d of s)
|
|
673
|
+
c.push({
|
|
674
|
+
onStatisticField: d,
|
|
675
|
+
outStatisticFieldName: `${d}_0`.toUpperCase(),
|
|
672
676
|
statisticType: r
|
|
673
677
|
});
|
|
674
|
-
|
|
675
|
-
const
|
|
676
|
-
return
|
|
678
|
+
o.query = { outStatistics: c };
|
|
679
|
+
const m = a.series[0];
|
|
680
|
+
return m !== void 0 && (o.id = m.id, (b(o) && b(m) || A(o) && A(m)) && W(o, m), a.colorMatch || (O(m) && O(o) ? o.fillSymbol = m.fillSymbol : (b(o) && b(m) || A(o) && A(m)) && (o.lineSymbol = m.lineSymbol, o.markerSymbol = m.markerSymbol), y = !0), o.id = m.id, m.name !== g.name && (o.name = m.name)), a.series.length === 1 && ((b(o) || A(o)) && W(o, a.series[0]), a.colorMatch || (O(o) ? o.fillSymbol = a.series[0].fillSymbol : (b(o) || A(o)) && (o.lineSymbol = a.series[0].lineSymbol, o.markerSymbol = a.series[0].markerSymbol), y = !0)), a.colorMatch = !y, [o];
|
|
677
681
|
}
|
|
678
|
-
function
|
|
679
|
-
const { xAxisField: e, numericFields: s, aggregationType: r, config: a, layerInfo: i, commonStrings:
|
|
680
|
-
let
|
|
682
|
+
function Ie(t) {
|
|
683
|
+
const { xAxisField: e, numericFields: s, aggregationType: r, config: a, layerInfo: i, commonStrings: l } = t, { layerFieldsInfo: n } = i, y = X(i.layer).idField, g = [];
|
|
684
|
+
let F = !1;
|
|
681
685
|
for (let u = 0; u < s.length; u += 1) {
|
|
682
|
-
const
|
|
686
|
+
const p = Y({
|
|
683
687
|
config: a,
|
|
684
688
|
xAxisField: e,
|
|
685
689
|
aggregationType: r,
|
|
686
690
|
layerInfo: i,
|
|
687
691
|
seriesIndex: u,
|
|
688
|
-
commonStrings:
|
|
689
|
-
}),
|
|
692
|
+
commonStrings: l
|
|
693
|
+
}), T = a.series[u]?.y, C = typeof T == "string" && T.trim() !== "" && !n.find((S) => S.name === T) ? T : Q({
|
|
690
694
|
config: a,
|
|
691
695
|
xAxisField: e,
|
|
692
696
|
numericFields: s,
|
|
693
697
|
aggregationType: r,
|
|
694
698
|
layer: i.layer,
|
|
695
699
|
numericFieldIndex: u,
|
|
696
|
-
fieldList:
|
|
697
|
-
}).name,
|
|
698
|
-
let
|
|
699
|
-
...
|
|
700
|
+
fieldList: n
|
|
701
|
+
}).name, h = s[u];
|
|
702
|
+
let f = {
|
|
703
|
+
...p,
|
|
700
704
|
query: {
|
|
701
|
-
...
|
|
705
|
+
...p.query
|
|
702
706
|
}
|
|
703
707
|
};
|
|
704
|
-
s &&
|
|
705
|
-
...
|
|
706
|
-
id:
|
|
707
|
-
name: D(
|
|
708
|
+
s && h !== y && (f = {
|
|
709
|
+
...f,
|
|
710
|
+
id: h,
|
|
711
|
+
name: D(n, h)
|
|
708
712
|
});
|
|
709
|
-
let
|
|
710
|
-
|
|
713
|
+
let R = h;
|
|
714
|
+
f.query !== void 0 && (r !== L.NoAggregation ? (R = C, f.query.outStatistics = [
|
|
711
715
|
{
|
|
712
|
-
...
|
|
713
|
-
onStatisticField:
|
|
716
|
+
...p.query?.outStatistics?.[0] ?? {},
|
|
717
|
+
onStatisticField: h,
|
|
714
718
|
outStatisticFieldName: C,
|
|
715
719
|
statisticType: r
|
|
716
720
|
}
|
|
717
|
-
]) : delete
|
|
718
|
-
const
|
|
719
|
-
(S) => S.query?.outStatistics?.[0]?.onStatisticField ===
|
|
721
|
+
]) : delete f.query.outStatistics), f.y = R;
|
|
722
|
+
const x = a.series.find(
|
|
723
|
+
(S) => S.query?.outStatistics?.[0]?.onStatisticField === h && S.query.where === void 0 || S.query?.outStatistics === void 0 && (S.y === h || S.x === h)
|
|
720
724
|
);
|
|
721
|
-
if (
|
|
722
|
-
(b(
|
|
723
|
-
const S =
|
|
725
|
+
if (x !== void 0 && typeof x.y == "string" && x.y.trim() !== "") {
|
|
726
|
+
(b(f) && b(x) || A(f) && A(x)) && W(f, x), a.colorMatch || (O(f) && O(x) ? f.fillSymbol = x.fillSymbol : (b(f) && b(x) || A(f) && A(x)) && (f.lineSymbol = x.lineSymbol, f.markerSymbol = x.markerSymbol), F = !0);
|
|
727
|
+
const S = Y({
|
|
724
728
|
config: a,
|
|
725
729
|
xAxisField: e,
|
|
726
730
|
aggregationType: r,
|
|
727
731
|
layerInfo: i,
|
|
728
732
|
seriesIndex: u,
|
|
729
|
-
commonStrings:
|
|
733
|
+
commonStrings: l
|
|
730
734
|
});
|
|
731
|
-
|
|
735
|
+
f.id = x.id, x.id !== S.id && x.name !== S.name && (f.id = x.id, f.name = x.name), f.assignToSecondValueAxis = x.assignToSecondValueAxis, f.type === v.HeatSeries && x.type === v.HeatSeries && (f.y = x.y, f.heatRulesType = x.heatRulesType);
|
|
732
736
|
}
|
|
733
|
-
|
|
737
|
+
g.push(f);
|
|
734
738
|
}
|
|
735
|
-
const
|
|
739
|
+
const o = g.filter((u) => O(u)), c = g.filter(
|
|
736
740
|
(u) => b(u) || A(u)
|
|
737
|
-
),
|
|
741
|
+
), m = a.series.filter((u) => O(u)), d = a.series.filter(
|
|
738
742
|
(u) => b(u) || A(u)
|
|
739
743
|
);
|
|
740
|
-
return
|
|
744
|
+
return m.length === 1 && o.length === 1 && !a.colorMatch && (O(m[0]) && O(o[0]) && (o[0].fillSymbol = m[0].fillSymbol), F = !0), d.length === 1 && c.length === 1 && ((b(d[0]) && b(c[0]) || A(d[0]) && A(c[0])) && W(c[0], d[0]), a.colorMatch || ((b(d[0]) && b(c[0]) || A(d[0]) && A(c[0])) && (c[0].lineSymbol = d[0].lineSymbol, c[0].markerSymbol = d[0].markerSymbol), F = !0)), a.colorMatch = !F, g;
|
|
741
745
|
}
|
|
742
|
-
function
|
|
743
|
-
const { aggregationType: e, config: s, layerInfo: r, commonStrings: a } = t, { layerFieldsInfo: i, layer:
|
|
744
|
-
if (s.series.forEach((
|
|
746
|
+
function li(t) {
|
|
747
|
+
const { aggregationType: e, config: s, layerInfo: r, commonStrings: a } = t, { layerFieldsInfo: i, layer: l } = r, n = $(s), y = G(s), g = _(s), F = Z(s, r, a), o = Le(s, r, a);
|
|
748
|
+
if (s.series.forEach((c, m) => {
|
|
745
749
|
const d = Q({
|
|
746
750
|
config: s,
|
|
747
|
-
xAxisField:
|
|
748
|
-
numericFields:
|
|
751
|
+
xAxisField: n,
|
|
752
|
+
numericFields: y,
|
|
749
753
|
aggregationType: e,
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
754
|
+
splitByField: g,
|
|
755
|
+
layer: l,
|
|
756
|
+
seriesIndex: m,
|
|
757
|
+
numericFieldIndex: m,
|
|
753
758
|
fieldList: i
|
|
754
759
|
}).name;
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
760
|
+
if (c.y = d, e !== L.NoAggregation) {
|
|
761
|
+
const u = ve({
|
|
762
|
+
splitByField: g,
|
|
763
|
+
numericFields: y,
|
|
764
|
+
layer: l,
|
|
765
|
+
seriesIndex: m
|
|
766
|
+
}), p = c.query?.outStatistics?.[0]?.onStatisticField ?? u;
|
|
767
|
+
c.query = {
|
|
768
|
+
...c.query,
|
|
769
|
+
outStatistics: [
|
|
770
|
+
{
|
|
771
|
+
...c.query?.outStatistics?.[0],
|
|
772
|
+
outStatisticFieldName: d,
|
|
773
|
+
statisticType: e,
|
|
774
|
+
onStatisticField: p
|
|
775
|
+
}
|
|
776
|
+
]
|
|
777
|
+
};
|
|
778
|
+
} else
|
|
779
|
+
delete c.query?.outStatistics, !ue({ chartConfig: s }) && c.type === v.LineSeries && c.temporalBinning !== void 0 && delete c.temporalBinning;
|
|
780
|
+
}), F && s.title && (s.title.content.text = H(s, r, a)), o && s.series[0].type !== v.HeatSeries) {
|
|
781
|
+
const c = le({
|
|
768
782
|
config: s,
|
|
769
783
|
layerInfo: r,
|
|
770
784
|
commonStrings: a,
|
|
771
|
-
numericFields:
|
|
785
|
+
numericFields: y,
|
|
772
786
|
aggregationType: e
|
|
773
787
|
});
|
|
774
|
-
E(s, 1,
|
|
788
|
+
E(s, 1, c);
|
|
775
789
|
}
|
|
776
790
|
}
|
|
777
|
-
function
|
|
791
|
+
function Et(t) {
|
|
778
792
|
const {
|
|
779
793
|
splitByField: e,
|
|
780
794
|
xAxisField: s,
|
|
781
795
|
numericFields: r,
|
|
782
796
|
aggregationType: a,
|
|
783
797
|
config: i,
|
|
784
|
-
layerInfo:
|
|
785
|
-
commonStrings:
|
|
786
|
-
splitByFieldInfos:
|
|
787
|
-
} = t, { layer:
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
798
|
+
layerInfo: l,
|
|
799
|
+
commonStrings: n,
|
|
800
|
+
splitByFieldInfos: y
|
|
801
|
+
} = t, { layer: g, layerFieldsInfo: F } = l, { categoriesArray: o, splitByFieldType: c } = y, m = ve({
|
|
802
|
+
splitByField: e,
|
|
803
|
+
numericFields: r,
|
|
804
|
+
layer: g,
|
|
805
|
+
seriesIndex: 0
|
|
806
|
+
});
|
|
807
|
+
let d = [], u = !1;
|
|
808
|
+
if (o.length === 0) {
|
|
809
|
+
d = Ie({
|
|
791
810
|
xAxisField: s,
|
|
792
811
|
numericFields: r,
|
|
793
812
|
aggregationType: a,
|
|
794
813
|
config: i,
|
|
795
|
-
layerInfo:
|
|
796
|
-
commonStrings:
|
|
814
|
+
layerInfo: l,
|
|
815
|
+
commonStrings: n
|
|
797
816
|
});
|
|
798
|
-
for (const
|
|
799
|
-
|
|
817
|
+
for (const p of d)
|
|
818
|
+
p.query && (p.query.where = `${e}=''`);
|
|
800
819
|
} else
|
|
801
|
-
for (let
|
|
802
|
-
const
|
|
820
|
+
for (let p = 0; p < o.length; p += 1) {
|
|
821
|
+
const T = o[p], C = Q({
|
|
803
822
|
config: i,
|
|
804
823
|
xAxisField: s,
|
|
805
824
|
numericFields: r,
|
|
806
825
|
aggregationType: a,
|
|
807
|
-
layer:
|
|
808
|
-
seriesIndex:
|
|
826
|
+
layer: l.layer,
|
|
827
|
+
seriesIndex: p,
|
|
809
828
|
splitByField: e,
|
|
810
|
-
fieldList:
|
|
811
|
-
}).name,
|
|
829
|
+
fieldList: F
|
|
830
|
+
}).name, h = Y({
|
|
812
831
|
config: i,
|
|
813
832
|
xAxisField: s,
|
|
814
833
|
aggregationType: a,
|
|
815
|
-
layerInfo:
|
|
816
|
-
seriesIndex:
|
|
817
|
-
commonStrings:
|
|
818
|
-
}),
|
|
819
|
-
queryObject:
|
|
834
|
+
layerInfo: l,
|
|
835
|
+
seriesIndex: p,
|
|
836
|
+
commonStrings: n
|
|
837
|
+
}), f = xe({
|
|
838
|
+
queryObject: l.layer,
|
|
820
839
|
fieldName: e,
|
|
821
|
-
fieldValue:
|
|
822
|
-
}),
|
|
823
|
-
...
|
|
824
|
-
id:
|
|
825
|
-
name:
|
|
840
|
+
fieldValue: T ?? ""
|
|
841
|
+
}), R = `${T}`, S = {
|
|
842
|
+
...h,
|
|
843
|
+
id: R,
|
|
844
|
+
name: f ?? R,
|
|
826
845
|
y: C,
|
|
827
846
|
query: {
|
|
828
|
-
...
|
|
829
|
-
where: `${e}=${
|
|
847
|
+
...h.query,
|
|
848
|
+
where: `${e}=${c === ot.String && T !== null ? `'${T}'` : T}`,
|
|
830
849
|
outStatistics: a !== L.NoAggregation ? [
|
|
831
850
|
{
|
|
832
|
-
...
|
|
833
|
-
onStatisticField:
|
|
851
|
+
...h.query?.outStatistics?.[0] ?? {},
|
|
852
|
+
onStatisticField: m,
|
|
834
853
|
outStatisticFieldName: C,
|
|
835
854
|
statisticType: a
|
|
836
855
|
}
|
|
837
856
|
] : void 0
|
|
838
857
|
}
|
|
839
858
|
};
|
|
840
|
-
a === L.NoAggregation && (S.query !== void 0 && (delete S.query.outStatistics, delete S.query.groupByFieldsForStatistics), S.y =
|
|
859
|
+
a === L.NoAggregation && (S.query !== void 0 && (delete S.query.outStatistics, delete S.query.groupByFieldsForStatistics), S.y = m);
|
|
841
860
|
const I = i.series.find(
|
|
842
|
-
(q) => String(be(q)).trim().replace(/'/gu, "") ===
|
|
861
|
+
(q) => String(be(q)).trim().replace(/'/gu, "") === R
|
|
843
862
|
);
|
|
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)),
|
|
863
|
+
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)), d.push(S);
|
|
845
864
|
}
|
|
846
|
-
return i.colorMatch = !u,
|
|
865
|
+
return i.colorMatch = !u, d;
|
|
847
866
|
}
|
|
848
|
-
const
|
|
867
|
+
const ni = (t) => {
|
|
849
868
|
const {
|
|
850
869
|
xAxisFieldName: e,
|
|
851
870
|
splitByField: s,
|
|
852
871
|
numericFields: r,
|
|
853
872
|
aggregationType: a,
|
|
854
873
|
config: i,
|
|
855
|
-
layerInfo:
|
|
856
|
-
commonStrings:
|
|
857
|
-
splitByFieldInfos:
|
|
858
|
-
} = t, { layerFieldsInfo:
|
|
859
|
-
let
|
|
860
|
-
const
|
|
874
|
+
layerInfo: l,
|
|
875
|
+
commonStrings: n,
|
|
876
|
+
splitByFieldInfos: y
|
|
877
|
+
} = t, { layerFieldsInfo: g } = l ?? {}, F = xt(i), o = $(i), c = g.find((B) => B.name === o), m = i.series[0].query?.fetchNullValues, d = "nullCategory" in i.series?.[0] ? i.series[0].nullCategory : void 0, u = i.series[0]?.query === void 0, p = g.find((B) => B.name === e), T = Z(i, l, n), C = Le(i, l, n), h = Mt(i, l);
|
|
878
|
+
let f = he(i);
|
|
879
|
+
const R = i.series.some((B) => O(B)), x = ft(i.series), S = St(i.series), I = oe(i), q = {};
|
|
861
880
|
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);
|
|
862
|
-
let
|
|
863
|
-
if (
|
|
864
|
-
|
|
881
|
+
let J = !1;
|
|
882
|
+
if (st(p) ? f = fe() : !me(c) && me(p) ? f = Se() : !j(c) && j(p) ? (f = Se(), J = !0) : j(c) && !j(p) && (R ? f = fe() : f = pt(), J = !0), f !== void 0 && ke(i, n, f), F === 0 && (i.series = [
|
|
883
|
+
Y({ config: i, xAxisField: e, aggregationType: a, layerInfo: l, commonStrings: n })
|
|
865
884
|
]), i.series.forEach((B) => {
|
|
866
885
|
B.x = e, B.query !== void 0 && (B.query.groupByFieldsForStatistics = [e]);
|
|
867
|
-
}), s === "" || r.length > 1 ?
|
|
886
|
+
}), s === "" || r.length > 1 ? Te({
|
|
868
887
|
fieldName: e,
|
|
869
888
|
numericFields: r,
|
|
870
|
-
fieldList:
|
|
871
|
-
}) ? i.series =
|
|
889
|
+
fieldList: g
|
|
890
|
+
}) ? i.series = Pt({
|
|
872
891
|
config: i,
|
|
873
|
-
layerInfo:
|
|
892
|
+
layerInfo: l,
|
|
874
893
|
xAxisField: e,
|
|
875
894
|
numericFields: r,
|
|
876
895
|
aggregationType: a,
|
|
877
|
-
commonStrings:
|
|
878
|
-
}) : i.series =
|
|
896
|
+
commonStrings: n
|
|
897
|
+
}) : i.series = Ie({
|
|
879
898
|
config: i,
|
|
880
|
-
layerInfo:
|
|
899
|
+
layerInfo: l,
|
|
881
900
|
xAxisField: e,
|
|
882
901
|
numericFields: r,
|
|
883
902
|
aggregationType: a,
|
|
884
|
-
commonStrings:
|
|
885
|
-
}) :
|
|
903
|
+
commonStrings: n
|
|
904
|
+
}) : y && (i.series = Et({
|
|
886
905
|
config: i,
|
|
887
|
-
layerInfo:
|
|
906
|
+
layerInfo: l,
|
|
888
907
|
splitByField: s,
|
|
889
908
|
xAxisField: e,
|
|
890
909
|
numericFields: r,
|
|
891
910
|
aggregationType: a,
|
|
892
|
-
commonStrings:
|
|
893
|
-
splitByFieldInfos:
|
|
894
|
-
})),
|
|
895
|
-
const B = D(
|
|
911
|
+
commonStrings: n,
|
|
912
|
+
splitByFieldInfos: y
|
|
913
|
+
})), h && i.series[0].type !== v.HeatSeries) {
|
|
914
|
+
const B = D(g, e);
|
|
896
915
|
E(i, 0, B);
|
|
897
916
|
}
|
|
898
917
|
if (C && i.series[0].type !== v.HeatSeries) {
|
|
899
|
-
const B =
|
|
918
|
+
const B = le({
|
|
900
919
|
config: i,
|
|
901
|
-
layerInfo:
|
|
902
|
-
commonStrings:
|
|
920
|
+
layerInfo: l,
|
|
921
|
+
commonStrings: n,
|
|
903
922
|
numericFields: r,
|
|
904
923
|
aggregationType: a
|
|
905
924
|
});
|
|
906
925
|
E(i, 1, B);
|
|
907
926
|
}
|
|
908
|
-
if (
|
|
909
|
-
const B =
|
|
910
|
-
|
|
927
|
+
if (T && i.title && (i.title.content.text = H(i, l, n)), N({ config: i, value: null, axisIndex: 1, isMax: !1 }), N({ config: i, value: null, axisIndex: 1, isMax: !0 }), wt({ numericFields: r, aggregationType: a, config: i, layerInfo: l }), (x || S) && (N({ config: i, value: null, axisIndex: 0, isMax: !1 }), N({ config: i, value: null, axisIndex: 0, isMax: !0 }), J && a !== L.NoAggregation)) {
|
|
928
|
+
const B = f?.type === v.DateAxisFormat ? U.Null : U.Interpolate;
|
|
929
|
+
bt(B, i);
|
|
911
930
|
}
|
|
912
931
|
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) => {
|
|
913
932
|
delete B.query;
|
|
914
|
-
}) :
|
|
915
|
-
B.query && (B.query.fetchNullValues =
|
|
916
|
-
}),
|
|
917
|
-
(B.type === v.BarSeries || B.type === v.LineSeries || B.type === v.RadarSeries) && (B.nullCategory =
|
|
933
|
+
}) : m && i.series.forEach((B) => {
|
|
934
|
+
B.query && (B.query.fetchNullValues = m);
|
|
935
|
+
}), d && i.series.forEach((B) => {
|
|
936
|
+
(B.type === v.BarSeries || B.type === v.LineSeries || B.type === v.RadarSeries) && (B.nullCategory = d);
|
|
918
937
|
});
|
|
919
938
|
}, W = (t, e) => {
|
|
920
939
|
t.markerVisible = e.markerVisible, t.lineSmoothed = e.lineSmoothed, t.showArea = e.showArea, t.areaColor = e.areaColor, t.stackNegativeValuesToBaseline = e.stackNegativeValuesToBaseline, e.lineSymbol && (t.lineSymbol = { ...e.lineSymbol, color: t.lineSymbol?.color }), e.markerSymbol && (t.markerSymbol = {
|
|
921
940
|
...e.markerSymbol,
|
|
922
941
|
color: t.markerSymbol?.color
|
|
923
942
|
});
|
|
924
|
-
},
|
|
925
|
-
const { config: e, seriesIndex: s, layerInfo: r, commonStrings: a } = t, i = e.series?.[s],
|
|
926
|
-
let
|
|
943
|
+
}, oi = (t) => {
|
|
944
|
+
const { config: e, seriesIndex: s, layerInfo: r, commonStrings: a } = t, i = e.series?.[s], l = _(e);
|
|
945
|
+
let n;
|
|
927
946
|
if (K(e.series) === w.BarAndLineFromFields)
|
|
928
|
-
|
|
929
|
-
else if (
|
|
930
|
-
const
|
|
931
|
-
|
|
947
|
+
n = a.axisLabels.values;
|
|
948
|
+
else if (qe(l)) {
|
|
949
|
+
const g = i.query?.outStatistics?.[0]?.onStatisticField;
|
|
950
|
+
g !== void 0 && g !== X(r.layer).idField && (n = D(r.layerFieldsInfo, g));
|
|
932
951
|
} else {
|
|
933
|
-
const
|
|
934
|
-
|
|
952
|
+
const g = String(be(i)).trim().replace(/'/gu, "");
|
|
953
|
+
n = xe({
|
|
935
954
|
queryObject: r.layer,
|
|
936
|
-
fieldName:
|
|
937
|
-
fieldValue:
|
|
938
|
-
}) ??
|
|
955
|
+
fieldName: l,
|
|
956
|
+
fieldValue: g ?? ""
|
|
957
|
+
}) ?? g;
|
|
939
958
|
}
|
|
940
|
-
return
|
|
941
|
-
},
|
|
942
|
-
if (
|
|
943
|
-
|
|
959
|
+
return n ?? i.id;
|
|
960
|
+
}, ui = (t, e) => {
|
|
961
|
+
if (oe(e))
|
|
962
|
+
Ot(t, e);
|
|
944
963
|
else {
|
|
945
964
|
e.orderOptions ??= {};
|
|
946
965
|
const s = e.orderOptions?.data?.orderType;
|
|
947
|
-
|
|
966
|
+
ae(e)[0] === ee.customSort && s === V.Category && (e.orderOptions.data = {
|
|
948
967
|
orderType: V.Category,
|
|
949
968
|
orderBy: [...t]
|
|
950
969
|
});
|
|
951
970
|
}
|
|
952
|
-
},
|
|
953
|
-
const { config: e, layerInfo: s, errorStrings: r } = t, a =
|
|
954
|
-
let
|
|
955
|
-
return i === v.CategoryAxisFormat && (
|
|
971
|
+
}, ci = async (t) => {
|
|
972
|
+
const { config: e, layerInfo: s, errorStrings: r } = t, a = $(e), i = he(e)?.type, l = G(e), n = K(e.series);
|
|
973
|
+
let y = [];
|
|
974
|
+
return i === v.CategoryAxisFormat && (n === w.BarAndLineFromFields || a === te ? y = l.map((g) => D(s?.layerFieldsInfo, g)) : a.trim() !== "" && a !== te && s !== void 0 && (y = await Ne({
|
|
956
975
|
layerInfo: s,
|
|
957
976
|
config: e,
|
|
958
977
|
category: a,
|
|
959
978
|
errorStrings: r
|
|
960
|
-
}))),
|
|
979
|
+
}))), y;
|
|
961
980
|
};
|
|
962
|
-
function
|
|
981
|
+
function Z(t, e, s) {
|
|
963
982
|
const r = H(t, e, s), a = Tt(t), i = z(t);
|
|
964
983
|
return r === a || i;
|
|
965
984
|
}
|
|
966
|
-
function
|
|
967
|
-
const r =
|
|
985
|
+
function Le(t, e, s) {
|
|
986
|
+
const r = le({
|
|
968
987
|
config: t,
|
|
969
988
|
layerInfo: e,
|
|
970
989
|
commonStrings: s,
|
|
971
|
-
numericFields:
|
|
990
|
+
numericFields: G(t),
|
|
972
991
|
aggregationType: Ae(t)
|
|
973
|
-
}), a =
|
|
992
|
+
}), a = ce(1, t), i = z(t);
|
|
974
993
|
return r === a || i;
|
|
975
994
|
}
|
|
976
|
-
function
|
|
977
|
-
const s = D(e.layerFieldsInfo,
|
|
995
|
+
function Mt(t, e) {
|
|
996
|
+
const s = D(e.layerFieldsInfo, $(t)), r = ce(0, t), a = z(t);
|
|
978
997
|
return s === r || a;
|
|
979
998
|
}
|
|
980
|
-
function
|
|
981
|
-
return
|
|
999
|
+
function di(t) {
|
|
1000
|
+
return k(t.series[0]) ? t.series[0].binTemporalData ?? !0 : !1;
|
|
982
1001
|
}
|
|
983
|
-
function
|
|
984
|
-
|
|
1002
|
+
function yi(t, e) {
|
|
1003
|
+
ue({ chartConfig: e }) && e?.series.forEach((s) => {
|
|
985
1004
|
(s?.type === v.BarSeries || s?.type === v.LineSeries) && (s.binTemporalData = t, t ? s.temporalBinning = {
|
|
986
|
-
unit:
|
|
1005
|
+
unit: se.Day,
|
|
987
1006
|
size: 0,
|
|
988
|
-
timeAggregationType:
|
|
1007
|
+
timeAggregationType: lt.Start,
|
|
989
1008
|
trimIncompleteTimeInterval: !0,
|
|
990
|
-
nullPolicy:
|
|
1009
|
+
nullPolicy: U.Null
|
|
991
1010
|
} : delete s.temporalBinning);
|
|
992
1011
|
});
|
|
993
1012
|
}
|
|
994
1013
|
export {
|
|
995
1014
|
Ts as $,
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1015
|
+
ui as A,
|
|
1016
|
+
ni as B,
|
|
1017
|
+
di as C,
|
|
1018
|
+
yi as D,
|
|
1000
1019
|
H as E,
|
|
1001
1020
|
Rt as F,
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1021
|
+
bs as G,
|
|
1022
|
+
Qs as H,
|
|
1023
|
+
zs as I,
|
|
1024
|
+
vs as J,
|
|
1025
|
+
As as K,
|
|
1026
|
+
Ls as L,
|
|
1027
|
+
Is as M,
|
|
1028
|
+
_s as N,
|
|
1029
|
+
Gs as O,
|
|
1030
|
+
Zs as P,
|
|
1031
|
+
Js as Q,
|
|
1032
|
+
si as R,
|
|
1033
|
+
ii as S,
|
|
1034
|
+
ai as T,
|
|
1035
|
+
ri as U,
|
|
1036
|
+
Fs as V,
|
|
1018
1037
|
hs as W,
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1038
|
+
Vs as X,
|
|
1039
|
+
qs as Y,
|
|
1040
|
+
ks as Z,
|
|
1041
|
+
Ns as _,
|
|
1042
|
+
gs as a,
|
|
1043
|
+
xs as a0,
|
|
1044
|
+
Cs as a1,
|
|
1045
|
+
Bs as a2,
|
|
1046
|
+
Ds as a3,
|
|
1047
|
+
ws as a4,
|
|
1048
|
+
Ps as a5,
|
|
1049
|
+
Es as a6,
|
|
1050
|
+
Os as a7,
|
|
1032
1051
|
Rs as a8,
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1052
|
+
Ms as a9,
|
|
1053
|
+
Dt as aa,
|
|
1054
|
+
$s as ab,
|
|
1036
1055
|
Ys as ac,
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1056
|
+
Ws as ad,
|
|
1057
|
+
Xs as ae,
|
|
1058
|
+
Hs as af,
|
|
1059
|
+
js as ag,
|
|
1060
|
+
ti as ah,
|
|
1061
|
+
ei as ai,
|
|
1043
1062
|
Us as aj,
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1063
|
+
Ks as ak,
|
|
1064
|
+
ds as b,
|
|
1065
|
+
ys as c,
|
|
1066
|
+
G as d,
|
|
1067
|
+
_ as e,
|
|
1068
|
+
Ss as f,
|
|
1050
1069
|
Ae as g,
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
+
oi as h,
|
|
1071
|
+
ps as i,
|
|
1072
|
+
is as j,
|
|
1073
|
+
Bt as k,
|
|
1074
|
+
ns as l,
|
|
1075
|
+
as as m,
|
|
1076
|
+
os as n,
|
|
1077
|
+
rs as o,
|
|
1078
|
+
fs as p,
|
|
1079
|
+
us as q,
|
|
1080
|
+
At as r,
|
|
1081
|
+
Ct as s,
|
|
1082
|
+
ls as t,
|
|
1083
|
+
ms as u,
|
|
1084
|
+
bt as v,
|
|
1085
|
+
cs as w,
|
|
1086
|
+
li as x,
|
|
1087
|
+
ae as y,
|
|
1088
|
+
ci as z
|
|
1070
1089
|
};
|