@arcgis/charts-components 5.2.0-next.16 → 5.2.0-next.18
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/{LM3WDIMX.js → 2TC4JZJO.js} +1 -1
- package/dist/cdn/{WE5N2DWF.js → 2UMH6XR3.js} +1 -1
- package/dist/cdn/{N5M267HE.js → 3KVNM7WF.js} +2 -2
- package/dist/cdn/{JSX3LKOD.js → 3NNAZ5DL.js} +1 -1
- package/dist/cdn/{PACZSOVJ.js → 3RWWJIG5.js} +1 -1
- package/dist/cdn/{DLHFVWHO.js → 4CGXRXLH.js} +1 -1
- package/dist/cdn/{TP36RQNC.js → 4QAPLRTG.js} +1 -1
- package/dist/cdn/{BSWOQJUC.js → 4SF42PXV.js} +1 -1
- package/dist/cdn/{MQSBZKCF.js → 4WY6HQZI.js} +1 -1
- package/dist/cdn/{JEJYJTQ3.js → 5FBPTKD2.js} +1 -1
- package/dist/cdn/{RRYPAPCG.js → 5W5U3YCT.js} +1 -1
- package/dist/cdn/{SLMJ2X57.js → 65EM5PJT.js} +1 -1
- package/dist/cdn/{CFWCANTF.js → 6OEGVKEI.js} +1 -1
- package/dist/cdn/{2H2FBIZ2.js → 6SFQ3ODA.js} +1 -1
- package/dist/cdn/{TQHCSPE5.js → 6UNGL476.js} +1 -1
- package/dist/cdn/{OFZRCSH4.js → 6YD6IPIH.js} +1 -1
- package/dist/cdn/{HYXVFQC4.js → 7SFXGJNT.js} +1 -1
- package/dist/cdn/{QPLOPDDR.js → A5RPILC4.js} +1 -1
- package/dist/cdn/{KMRESWL3.js → A637XF3L.js} +1 -1
- package/dist/cdn/{TO5ZIEQF.js → AEY67Q67.js} +1 -1
- package/dist/cdn/{F2FUMKHT.js → BKZT6DIS.js} +1 -1
- package/dist/cdn/{MBBPNXP3.js → BVJDZG5Y.js} +1 -1
- package/dist/cdn/{YJPAOKRE.js → C5TWLOUL.js} +1 -1
- package/dist/cdn/{5MY4KKZV.js → CCNMKOBB.js} +1 -1
- package/dist/cdn/{QUUADWMW.js → DGHSOXHW.js} +1 -1
- package/dist/cdn/{JQN3RVVS.js → DXZZLLOU.js} +1 -1
- package/dist/cdn/{JQNUPBDP.js → E3SH4JDT.js} +1 -1
- package/dist/cdn/{G7EWCEOQ.js → EBYNTBVV.js} +1 -1
- package/dist/cdn/{ESEUMJAO.js → EJXBZW4I.js} +1 -1
- package/dist/cdn/{Q4RQQGVC.js → F36KMFKC.js} +1 -1
- package/dist/cdn/{JM2NUARU.js → FEZIILDK.js} +13 -13
- package/dist/cdn/{2MS6UDV4.js → FIQ3O5N5.js} +1 -1
- package/dist/cdn/{T7YPANRB.js → FSBIGWGF.js} +1 -1
- package/dist/cdn/FSS3JCMA.js +2 -0
- package/dist/cdn/{VJXC7G7Z.js → GDCYYANX.js} +1 -1
- package/dist/cdn/{475GCHIH.js → GHNRDFV4.js} +1 -1
- package/dist/cdn/{K4PTOYP7.js → GM67HTDG.js} +1 -1
- package/dist/cdn/{IOQKEV5U.js → GMEHVXPT.js} +1 -1
- package/dist/cdn/H5FMH3KI.js +2 -0
- package/dist/cdn/{73VJACG5.js → H5ICWR3Q.js} +1 -1
- package/dist/cdn/{TEE4SFIN.js → H6E76E5A.js} +1 -1
- package/dist/cdn/{ADOT6PAL.js → HNV5M5D2.js} +1 -1
- package/dist/cdn/{INWHDZUX.js → HO6UADCP.js} +1 -1
- package/dist/cdn/I3642G2U.js +2 -0
- package/dist/cdn/{Q5HENWDN.js → JDAHBQHF.js} +1 -1
- package/dist/cdn/{U4FMQ72H.js → JJTS4GMR.js} +1 -1
- package/dist/cdn/{ISN3Z6RD.js → JTUU3JXW.js} +1 -1
- package/dist/cdn/{BLLB6GVU.js → KD6BTGA7.js} +1 -1
- package/dist/cdn/{CEOJDFPK.js → KYCSFK4W.js} +1 -1
- package/dist/cdn/{HDAFZ7HZ.js → L6PTR5XW.js} +1 -1
- package/dist/cdn/{XAONJJD7.js → L7MGB5KR.js} +1 -1
- package/dist/cdn/LANNBQHD.js +3 -0
- package/dist/cdn/{KG34BN4R.js → LC57KDGS.js} +1 -1
- package/dist/cdn/{5XUJFHKU.js → NBOSJ2FF.js} +1 -1
- package/dist/cdn/{I3QPGNX2.js → NY75YT7Z.js} +1 -1
- package/dist/cdn/{336QQVQ2.js → P75Z6F5X.js} +1 -1
- package/dist/cdn/{2ATBYUR5.js → PCXV2JH3.js} +1 -1
- package/dist/cdn/{T4Y7PPAF.js → Q5H2IVEZ.js} +1 -1
- package/dist/cdn/{I7P7Y4AI.js → QHWBNFGR.js} +1 -1
- package/dist/cdn/{2563R3OI.js → QSM73CL4.js} +1 -1
- package/dist/cdn/{EHQCMFMJ.js → QUN52JQW.js} +1 -1
- package/dist/cdn/{WH6E3TRM.js → QXAK4J2A.js} +1 -1
- package/dist/cdn/{4OKQVD4Y.js → R4NU3MN5.js} +1 -1
- package/dist/cdn/{RIXNZMGD.js → RDJBP4WQ.js} +1 -1
- package/dist/cdn/{NHFF5CKW.js → ROETFMYI.js} +1 -1
- package/dist/cdn/{J25L7DLU.js → SS2PEQGJ.js} +1 -1
- package/dist/cdn/{IBGLMETB.js → T2GJNVJ7.js} +1 -1
- package/dist/cdn/{CFEXUWMK.js → TZZCNVXZ.js} +1 -1
- package/dist/cdn/{O32BJPVC.js → U7IBN6GO.js} +1 -1
- package/dist/cdn/{3XFA3QK6.js → UT2Q2IFL.js} +1 -1
- package/dist/cdn/{72MZJZ6I.js → UZDMA67A.js} +1 -1
- package/dist/cdn/{KSLJPKWC.js → VAWGYZN4.js} +1 -1
- package/dist/cdn/{IZBPTSEL.js → VSMQP4LB.js} +1 -1
- package/dist/cdn/{E3EBO7VM.js → W56KDWPN.js} +1 -1
- package/dist/cdn/{CZFZIEMX.js → X55UHKOC.js} +1 -1
- package/dist/cdn/{27Z26FPG.js → YRQT4DV3.js} +1 -1
- package/dist/cdn/{PJR43NZO.js → ZOWQW2N5.js} +1 -1
- package/dist/cdn/{E5LBVUWF.js → ZRXWYONR.js} +1 -1
- package/dist/cdn/{44OQITEZ.js → ZSIPBEQ2.js} +1 -1
- package/dist/cdn/{JRSODGEU.js → ZVSKN4AO.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/index2.js +1136 -1130
- package/dist/chunks/index4.js +36 -35
- package/dist/chunks/serial-chart-data.js +331 -335
- package/dist/components/arcgis-chart/customElement.d.ts +103 -103
- package/dist/components/arcgis-chart/customElement.js +2277 -2272
- package/dist/components/arcgis-charts-config-histogram/customElement.js +28 -23
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +27 -22
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +1 -1
- package/package.json +3 -3
- package/dist/cdn/FLLUECUY.js +0 -3
- package/dist/cdn/NIXBX2CY.js +0 -2
- package/dist/cdn/OFN7VGCU.js +0 -2
- package/dist/cdn/WH4TRMLQ.js +0 -2
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { substitute as
|
|
3
|
-
import { cloneDeep as re, isEmpty as
|
|
2
|
+
import { substitute as w } from "@arcgis/core/intl.js";
|
|
3
|
+
import { cloneDeep as re, isEmpty as Le, memoize as Ve } from "lodash-es";
|
|
4
4
|
import { S as ee } from "./common.js";
|
|
5
|
-
import { s as
|
|
6
|
-
import { w as k, bY as
|
|
7
|
-
import { a as
|
|
8
|
-
import { u as
|
|
9
|
-
import { i as
|
|
5
|
+
import { s as q, u as E, g as le, a as Fe, b as Ne, c as qe, d as ce } from "./utils.js";
|
|
6
|
+
import { w as k, bY as ke, bm as Re, x as Oe, Y as K, cr as De, cq as Pe, p as we, aH as ne, c2 as Ee, d as Me, aG as $e, I as Ye, a7 as We, bk as Xe, W as He, e as je, bo as Ue, c_ as Ke, v as Qe, d5 as de, bM as ze, d6 as _e, bI as Ge, B as Ze, d2 as Je, an as H, a6 as he, cS as oe, b9 as et, k as te, bq as tt, bu as ye, bb as U, bh as me } from "./index2.js";
|
|
7
|
+
import { a as Y, s as xe, g as Q, b as ge, c as st } from "./data.js";
|
|
8
|
+
import { u as I, r as v, k as it, n as N, m as M, p as at, t as rt, s as se } from "./chart-object-literals.js";
|
|
9
|
+
import { i as lt, R as nt } from "./rest-js-object-literals.js";
|
|
10
10
|
import { i as z } from "./index4.js";
|
|
11
|
-
import { az as
|
|
12
|
-
import { C as
|
|
13
|
-
import { h as
|
|
14
|
-
import { convertChartSpec as
|
|
15
|
-
import { c as ie, e as
|
|
16
|
-
import { g as
|
|
17
|
-
import { g as
|
|
18
|
-
import { a as
|
|
11
|
+
import { az as ot, t as ut, Y as ct, a9 as dt, al as yt, x as mt, C as pe, H as fe, $ as gt } from "./index.js";
|
|
12
|
+
import { C as P, F as $, d as D } from "./index3.js";
|
|
13
|
+
import { h as Te, i as O, j as pt, n as ft, g as b, m as A, e as Se } from "./index5.js";
|
|
14
|
+
import { convertChartSpec as St } from "../utils/chart-config/converter/index.js";
|
|
15
|
+
import { c as ie, e as Ft } from "./type-guards.js";
|
|
16
|
+
import { g as Be } from "./series-types.js";
|
|
17
|
+
import { g as ue } from "./utils2.js";
|
|
18
|
+
import { a as ht, b as xt } from "./series-length.js";
|
|
19
19
|
const is = (t) => {
|
|
20
20
|
let e;
|
|
21
21
|
const s = t.series[0];
|
|
22
22
|
return k(s) && (e = s.temporalBinning?.size), e;
|
|
23
|
-
},
|
|
23
|
+
}, Tt = (t) => {
|
|
24
24
|
let e;
|
|
25
25
|
const s = t.series[0];
|
|
26
26
|
return k(s) && (e = s.temporalBinning?.unit), e;
|
|
@@ -36,38 +36,38 @@ const is = (t) => {
|
|
|
36
36
|
let e;
|
|
37
37
|
const s = t.series[0];
|
|
38
38
|
return k(s) && (e = s.temporalBinning?.nullPolicy), e;
|
|
39
|
-
},
|
|
39
|
+
}, Bt = (t, e) => {
|
|
40
40
|
e?.series?.forEach((s) => {
|
|
41
41
|
k(s) && (s.temporalBinning ??= {}, s.temporalBinning.size = t);
|
|
42
|
-
}),
|
|
43
|
-
},
|
|
42
|
+
}), q({ config: e, value: null, axisIndex: 1, isMax: !1 }), q({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
43
|
+
}, Ct = (t, e) => {
|
|
44
44
|
e?.series?.forEach((s) => {
|
|
45
45
|
k(s) && (s.temporalBinning ??= {}, s.temporalBinning.nullPolicy = t);
|
|
46
|
-
}),
|
|
46
|
+
}), q({ config: e, value: null, axisIndex: 1, isMax: !1 }), q({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
47
47
|
}, ns = (t, e) => {
|
|
48
48
|
e.series?.forEach((s) => {
|
|
49
49
|
k(s) && (s.temporalBinning ??= {}, s.temporalBinning.unit = t);
|
|
50
|
-
}),
|
|
50
|
+
}), q({ config: e, value: null, axisIndex: 1, isMax: !1 }), q({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
51
51
|
}, os = (t, e) => {
|
|
52
52
|
e.series?.forEach((s) => {
|
|
53
53
|
k(s) && (s.temporalBinning ??= {}, s.temporalBinning.timeAggregationType = t);
|
|
54
|
-
}),
|
|
54
|
+
}), q({ config: e, value: null, axisIndex: 1, isMax: !1 }), q({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
55
55
|
}, us = (t, e) => {
|
|
56
56
|
e.series?.forEach((s) => {
|
|
57
57
|
k(s) && (s.temporalBinning ??= {}, s.temporalBinning.trimIncompleteTimeInterval = t);
|
|
58
|
-
}),
|
|
59
|
-
},
|
|
60
|
-
|
|
58
|
+
}), q({ config: e, value: null, axisIndex: 1, isMax: !1 }), q({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
59
|
+
}, bt = (t) => {
|
|
60
|
+
Bt(0, t);
|
|
61
61
|
};
|
|
62
|
-
function
|
|
62
|
+
function cs(t, e) {
|
|
63
63
|
let s;
|
|
64
64
|
return e !== void 0 && (s = { ...e }, s.legend !== void 0 && (s.legend.position = t)), s;
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function ds(t, e) {
|
|
67
67
|
let s;
|
|
68
68
|
return e !== void 0 && (s = { ...e }, s.legend !== void 0 && (s.legend.visible = t)), s;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function ys(t, e) {
|
|
71
71
|
let s;
|
|
72
72
|
return e !== void 0 && (s = { ...e, rotated: t }), s;
|
|
73
73
|
}
|
|
@@ -75,15 +75,15 @@ 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
|
|
79
|
-
return e != null ||
|
|
78
|
+
function ms(t, e) {
|
|
79
|
+
return e != null || Te(t);
|
|
80
80
|
}
|
|
81
|
-
async function
|
|
81
|
+
async function gs(t) {
|
|
82
82
|
const { config: e, layer: s, abortSignal: r } = t;
|
|
83
83
|
let a = !1;
|
|
84
|
-
return ie(s) ||
|
|
84
|
+
return ie(s) || Ft(e) ? e && ie(s) && (a = await Re({ config: e, layer: s, abortSignal: r })) : a = !0, a;
|
|
85
85
|
}
|
|
86
|
-
async function
|
|
86
|
+
async function It(t) {
|
|
87
87
|
const {
|
|
88
88
|
queryObject: e,
|
|
89
89
|
chartConfig: s,
|
|
@@ -94,35 +94,35 @@ async function vt(t) {
|
|
|
94
94
|
ignoreViewExtent: n,
|
|
95
95
|
setTimeBinningInfoWhenNotProvided: y,
|
|
96
96
|
returnFeaturesExtent: g,
|
|
97
|
-
chartLimits:
|
|
97
|
+
chartLimits: S
|
|
98
98
|
} = t;
|
|
99
99
|
let o = [], c;
|
|
100
|
-
const m = re(s), d = m.series[0], u =
|
|
100
|
+
const m = re(s), d = m.series[0], u = je({
|
|
101
101
|
queryObject: e,
|
|
102
102
|
chartConfig: m,
|
|
103
103
|
runtimeDataFilters: l,
|
|
104
104
|
ignoreViewExtent: n
|
|
105
105
|
});
|
|
106
|
-
if (u.outStatistics?.[0]?.outStatisticFieldName && (u.outStatistics[0].outStatisticFieldName =
|
|
107
|
-
xAxisValueFormatType:
|
|
106
|
+
if (u.outStatistics?.[0]?.outStatisticFieldName && (u.outStatistics[0].outStatisticFieldName = ot.outStatistics.outStatisticFieldName), k(d) && Ue({
|
|
107
|
+
xAxisValueFormatType: Ke(m),
|
|
108
108
|
setTimeBinningInfoWhenNotProvided: y,
|
|
109
109
|
seriesConfig: d,
|
|
110
110
|
queryObject: e
|
|
111
|
-
}) &&
|
|
112
|
-
const { temporalBinning: p, x: T } = d, { uniqueQuery: C } =
|
|
111
|
+
}) && Qe(r, e)) {
|
|
112
|
+
const { temporalBinning: p, x: T } = d, { uniqueQuery: C } = de({
|
|
113
113
|
chartConfig: m,
|
|
114
114
|
queryConfig: u,
|
|
115
115
|
queryObject: e,
|
|
116
116
|
setTimeBinningInfoWhenNotProvided: y,
|
|
117
117
|
returnFeaturesExtent: g,
|
|
118
|
-
chartLimits:
|
|
119
|
-
}),
|
|
120
|
-
c = await
|
|
118
|
+
chartLimits: S
|
|
119
|
+
}), F = s.axes?.[0].valueFormat.type === I.DateAxisFormat ? s.axes[0].valueFormat.intlOptions.timeZone : void 0;
|
|
120
|
+
c = await ze({
|
|
121
121
|
queryObject: e,
|
|
122
122
|
dateField: T,
|
|
123
123
|
splitByField: r,
|
|
124
124
|
queryConfig: C,
|
|
125
|
-
axisTimeZone:
|
|
125
|
+
axisTimeZone: F,
|
|
126
126
|
temporalBinning: p,
|
|
127
127
|
errorStrings: a,
|
|
128
128
|
abortSignal: i
|
|
@@ -131,27 +131,27 @@ async function vt(t) {
|
|
|
131
131
|
c.flatMap((f) => {
|
|
132
132
|
const { stackedAttributes: R } = f;
|
|
133
133
|
let x = [];
|
|
134
|
-
return R && (x = R.map((
|
|
134
|
+
return R && (x = R.map((h) => h[r]).filter((h) => h !== void 0)), x;
|
|
135
135
|
})
|
|
136
136
|
).values()
|
|
137
137
|
);
|
|
138
138
|
} else {
|
|
139
|
-
const { uniqueQuery: p } =
|
|
139
|
+
const { uniqueQuery: p } = de({
|
|
140
140
|
chartConfig: m,
|
|
141
141
|
queryObject: e,
|
|
142
142
|
queryConfig: u,
|
|
143
143
|
setTimeBinningInfoWhenNotProvided: y,
|
|
144
144
|
returnFeaturesExtent: g,
|
|
145
|
-
chartLimits:
|
|
146
|
-
}), { elementCount: T } = await
|
|
145
|
+
chartLimits: S
|
|
146
|
+
}), { elementCount: T } = await _e({
|
|
147
147
|
chartConfig: m,
|
|
148
148
|
queryObject: e,
|
|
149
149
|
queryConfig: u,
|
|
150
|
-
behaviorAfterLimit:
|
|
150
|
+
behaviorAfterLimit: S?.behaviorAfterLimit,
|
|
151
151
|
numberMaxOfFeaturesToFetch: p.num,
|
|
152
152
|
abortSignal: i
|
|
153
153
|
});
|
|
154
|
-
c = await
|
|
154
|
+
c = await Ge({
|
|
155
155
|
queryObject: e,
|
|
156
156
|
queryConfig: p,
|
|
157
157
|
featureCount: T,
|
|
@@ -165,7 +165,7 @@ async function vt(t) {
|
|
|
165
165
|
}
|
|
166
166
|
return { allValues: o, preFetchedQueryResponse: c };
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function vt(t, e) {
|
|
169
169
|
const s = /* @__PURE__ */ new Map();
|
|
170
170
|
return t.series.forEach((r) => {
|
|
171
171
|
let a = ne({
|
|
@@ -178,7 +178,7 @@ function It(t, e) {
|
|
|
178
178
|
escape: !1
|
|
179
179
|
});
|
|
180
180
|
e && a !== null && (a = Number(a));
|
|
181
|
-
const i =
|
|
181
|
+
const i = Be([r]);
|
|
182
182
|
i !== void 0 && s.set(i, [
|
|
183
183
|
...s.get(i) ?? [],
|
|
184
184
|
a
|
|
@@ -195,7 +195,7 @@ function Lt(t) {
|
|
|
195
195
|
}), a.set(i, n);
|
|
196
196
|
}), a;
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function Vt(t) {
|
|
199
199
|
const { chartConfig: e, missingValue: s, splitByField: r, seriesTemplate: a } = t, i = JSON.parse(
|
|
200
200
|
JSON.stringify({
|
|
201
201
|
...e.series[0],
|
|
@@ -203,7 +203,7 @@ function qt(t) {
|
|
|
203
203
|
})
|
|
204
204
|
);
|
|
205
205
|
if (i.query) {
|
|
206
|
-
if (s === null ? i.id =
|
|
206
|
+
if (s === null ? i.id = $.nullValue : s === "" ? i.id = $.emptyStringValue : i.id = `${s}`, i.name = `${s}`, i.query.outStatistics?.[0] !== void 0) {
|
|
207
207
|
const n = i.id;
|
|
208
208
|
i.query.outStatistics[0].outStatisticFieldName = n, "y" in i && (i.y = n);
|
|
209
209
|
}
|
|
@@ -212,7 +212,7 @@ function qt(t) {
|
|
|
212
212
|
}
|
|
213
213
|
return i;
|
|
214
214
|
}
|
|
215
|
-
async function
|
|
215
|
+
async function Nt(t) {
|
|
216
216
|
const {
|
|
217
217
|
updateSplitBySeries: e,
|
|
218
218
|
config: s,
|
|
@@ -223,15 +223,15 @@ async function Vt(t) {
|
|
|
223
223
|
ignoreViewExtent: n,
|
|
224
224
|
setTimeBinningInfoWhenNotProvided: y,
|
|
225
225
|
returnFeaturesExtent: g,
|
|
226
|
-
chartLimits:
|
|
226
|
+
chartLimits: S
|
|
227
227
|
} = t, { seriesTemplate: o } = e ?? {};
|
|
228
228
|
let c;
|
|
229
229
|
if (r && !ie(r) && e !== void 0 && s !== void 0 && (s.series.length > 0 || o !== void 0) && e.addMissingSeries) {
|
|
230
230
|
const m = s.series.length === 0;
|
|
231
231
|
s.series.length === 0 && o !== void 0 && s.series.push(o);
|
|
232
232
|
const d = K(s.series);
|
|
233
|
-
if (d ===
|
|
234
|
-
const u =
|
|
233
|
+
if (d === P.BoxPlotMonoFieldAndSplitBy || d === P.BoxPlotMultiFieldsAndSplitBy || d === P.BoxPlotMonoFieldAndCategoryAndSplitBy || d === P.BarAndLineSplitBy || d === P.BarAndLineSplitByNoAggregation) {
|
|
234
|
+
const u = $e(s.series[0]?.query?.where), p = Ye(r), T = We(u, p), C = T ? Xe(T) : !1, F = await It({
|
|
235
235
|
queryObject: r,
|
|
236
236
|
chartConfig: s,
|
|
237
237
|
splitByField: u,
|
|
@@ -240,22 +240,22 @@ async function Vt(t) {
|
|
|
240
240
|
ignoreViewExtent: n,
|
|
241
241
|
setTimeBinningInfoWhenNotProvided: y,
|
|
242
242
|
returnFeaturesExtent: g,
|
|
243
|
-
chartLimits:
|
|
243
|
+
chartLimits: S,
|
|
244
244
|
errorStrings: a
|
|
245
|
-
}), { allValues: f } =
|
|
246
|
-
if ({ preFetchedQueryResponse: c } =
|
|
247
|
-
const R =
|
|
245
|
+
}), { allValues: f } = F;
|
|
246
|
+
if ({ preFetchedQueryResponse: c } = F, f.length > 0) {
|
|
247
|
+
const R = vt(s, C), x = Lt({
|
|
248
248
|
allValues: f,
|
|
249
249
|
configUniqueValuesPerSeriesType: R,
|
|
250
250
|
initialConfigWasEmpty: m
|
|
251
251
|
});
|
|
252
|
-
Array.from(x.keys()).forEach((
|
|
253
|
-
(x.get(
|
|
252
|
+
Array.from(x.keys()).forEach((h) => {
|
|
253
|
+
(x.get(h) ?? []).forEach((V) => {
|
|
254
254
|
s.series.push(
|
|
255
|
-
|
|
255
|
+
Vt({
|
|
256
256
|
chartConfig: s,
|
|
257
257
|
seriesTemplate: o,
|
|
258
|
-
missingValue:
|
|
258
|
+
missingValue: V,
|
|
259
259
|
splitByField: u
|
|
260
260
|
})
|
|
261
261
|
);
|
|
@@ -266,10 +266,10 @@ async function Vt(t) {
|
|
|
266
266
|
}
|
|
267
267
|
return c;
|
|
268
268
|
}
|
|
269
|
-
function
|
|
270
|
-
e && !
|
|
269
|
+
function qt(t, e) {
|
|
270
|
+
e && !Te(e) && (e = Me({ chartConfig: e, queryObject: t }));
|
|
271
271
|
}
|
|
272
|
-
async function
|
|
272
|
+
async function ps(t) {
|
|
273
273
|
const {
|
|
274
274
|
configToAlter: e,
|
|
275
275
|
layer: s,
|
|
@@ -280,13 +280,13 @@ async function fs(t) {
|
|
|
280
280
|
abortSignal: n,
|
|
281
281
|
runtimeDataFilters: y,
|
|
282
282
|
ignoreViewExtent: g,
|
|
283
|
-
setTimeBinningInfoWhenNotProvided:
|
|
283
|
+
setTimeBinningInfoWhenNotProvided: S,
|
|
284
284
|
returnFeaturesExtent: o,
|
|
285
285
|
chartLimits: c,
|
|
286
286
|
errorStrings: m
|
|
287
287
|
} = t;
|
|
288
288
|
let d = e, u;
|
|
289
|
-
return d && (
|
|
289
|
+
return d && (qt(s, d), d = await St(d, s, void 0, n), r && l && (u = await Nt({
|
|
290
290
|
updateSplitBySeries: a,
|
|
291
291
|
config: d,
|
|
292
292
|
queryObject: l,
|
|
@@ -294,167 +294,167 @@ async function fs(t) {
|
|
|
294
294
|
abortSignal: n,
|
|
295
295
|
runtimeDataFilters: y,
|
|
296
296
|
ignoreViewExtent: g,
|
|
297
|
-
setTimeBinningInfoWhenNotProvided:
|
|
297
|
+
setTimeBinningInfoWhenNotProvided: S,
|
|
298
298
|
returnFeaturesExtent: o,
|
|
299
299
|
chartLimits: c
|
|
300
|
-
})), d =
|
|
300
|
+
})), d = ke(d, i)), { alteredConfig: d, preFetchedQueryResponse: u };
|
|
301
301
|
}
|
|
302
302
|
function kt(t, e) {
|
|
303
303
|
let s = !1;
|
|
304
304
|
if (e !== void 0) {
|
|
305
|
-
const r =
|
|
305
|
+
const r = He({ key: Ze.Average, splitBy: e });
|
|
306
306
|
s = Number.isFinite(t[r]);
|
|
307
307
|
}
|
|
308
308
|
return s;
|
|
309
309
|
}
|
|
310
|
-
function
|
|
310
|
+
function fs(t) {
|
|
311
311
|
const { data: e, config: s, showEmptySeries: r } = t, a = s.series.length, i = re(s);
|
|
312
312
|
let l = !1;
|
|
313
313
|
if (!r && a > 1 && e) {
|
|
314
|
-
const n =
|
|
314
|
+
const n = Oe(e), y = Be(s?.series), g = K(s?.series), S = /* @__PURE__ */ new Set();
|
|
315
315
|
switch (y) {
|
|
316
|
-
case
|
|
317
|
-
case
|
|
318
|
-
case
|
|
319
|
-
case
|
|
316
|
+
case I.ComboLineAndBarSeries:
|
|
317
|
+
case I.BarSeries:
|
|
318
|
+
case I.RadarSeries:
|
|
319
|
+
case I.LineSeries: {
|
|
320
320
|
i.series.forEach((c) => {
|
|
321
321
|
if (Array.isArray(n)) {
|
|
322
322
|
let m = "";
|
|
323
|
-
"y" in c && (m = Array.isArray(c.y) ? c.y[0] : c.y, g ===
|
|
324
|
-
(u) =>
|
|
323
|
+
"y" in c && (m = Array.isArray(c.y) ? c.y[0] : c.y, g === P.BarAndLineSplitByNoAggregation && (m = `${m}_${ne({ where: c.query?.where, keepSurroundingQuotes: !1, escape: !1 })}`), n.some(
|
|
324
|
+
(u) => Ee({
|
|
325
325
|
dataItem: u,
|
|
326
326
|
x: c.x,
|
|
327
327
|
y: m,
|
|
328
328
|
aggregationType: s.series[0].query?.outStatistics?.[0]?.statisticType
|
|
329
329
|
})
|
|
330
|
-
) &&
|
|
330
|
+
) && S.add(c));
|
|
331
331
|
}
|
|
332
332
|
});
|
|
333
333
|
break;
|
|
334
334
|
}
|
|
335
|
-
case
|
|
336
|
-
if (
|
|
335
|
+
case I.BoxPlotSeries: {
|
|
336
|
+
if (De(s)) {
|
|
337
337
|
const c = Pe(s);
|
|
338
338
|
s.series.forEach((m) => {
|
|
339
339
|
let d, u;
|
|
340
|
-
m.type ===
|
|
341
|
-
(p) =>
|
|
340
|
+
m.type === I.BoxPlotSeries ? (d = e.dataItems, u = d?.some(
|
|
341
|
+
(p) => we({
|
|
342
342
|
dataItem: p,
|
|
343
343
|
splitBy: m.query?.where,
|
|
344
344
|
showOutliers: c
|
|
345
345
|
})
|
|
346
|
-
)) : m.type ===
|
|
346
|
+
)) : m.type === I.LineSeries && (d = e.meanLines, u = d?.some(
|
|
347
347
|
(p) => kt(p, m.query?.where)
|
|
348
|
-
)), u &&
|
|
348
|
+
)), u && S.add(m);
|
|
349
349
|
});
|
|
350
350
|
}
|
|
351
351
|
break;
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
|
-
const o = Array.from(
|
|
354
|
+
const o = Array.from(S.values());
|
|
355
355
|
l = o.length > 0 && o.length < a, l && (i.series = o);
|
|
356
356
|
}
|
|
357
357
|
return { seriesFilteredOut: l, filteredConfig: i };
|
|
358
358
|
}
|
|
359
|
-
const
|
|
359
|
+
const Ss = (t) => t.hideEmptyRowsAndColumns, Fs = (t, e) => {
|
|
360
360
|
t.hideEmptyRowsAndColumns = e;
|
|
361
|
-
},
|
|
361
|
+
}, hs = (t, e) => {
|
|
362
362
|
const s = t.series[0];
|
|
363
363
|
s.heatRulesType = e;
|
|
364
|
-
},
|
|
364
|
+
}, xs = (t) => t.series[0].heatRulesType, Ts = (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 =
|
|
367
|
+
}, Bs = (t) => t.series[0].gradientRules, Cs = (t) => {
|
|
368
|
+
const { yField: e, config: s, layerInfo: r } = t, { layerFieldsInfo: a } = r, i = ue(1, s), l = Rt(s), n = z(s), y = s.series[0];
|
|
369
369
|
if (typeof e == "string" && l !== e && y && (y.y = e, At(s), l === i || n)) {
|
|
370
370
|
const g = D(a, e);
|
|
371
371
|
E(s, 1, g);
|
|
372
372
|
}
|
|
373
|
-
}, Rt = (t) => t.series[0].y ?? "",
|
|
373
|
+
}, Rt = (t) => t.series[0].y ?? "", bs = (t) => {
|
|
374
374
|
const { binning: e, config: s, commonStrings: r } = t, a = s.series[0];
|
|
375
375
|
if (a.xTemporalBinning = e, e?.unit !== void 0 && e.unit in r.utilsStrings.heatChartCalendarDatePartsUnits) {
|
|
376
376
|
const i = r.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
|
|
377
377
|
E(s, 0, i);
|
|
378
378
|
}
|
|
379
|
-
},
|
|
379
|
+
}, As = (t) => t.series[0].xTemporalBinning, 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
|
+
}, vs = (t) => t.series[0].yTemporalBinning, Ot = (t, e) => {
|
|
386
386
|
e.orderOptions ??= {};
|
|
387
|
-
const s = e.axes?.[0]?.valueFormat?.type === "category" ?
|
|
387
|
+
const s = e.axes?.[0]?.valueFormat?.type === "category" ? N.Category : N.YValue, r = ae(e)[0], a = e.axes?.[1]?.valueFormat?.type === "category" ? N.Category : N.YValue, i = ae(e)[1], l = {
|
|
388
388
|
...e.orderOptions.data ?? {},
|
|
389
|
-
orderType:
|
|
389
|
+
orderType: N.MultiAxes
|
|
390
390
|
};
|
|
391
|
-
r === ee.customSort && s ===
|
|
392
|
-
},
|
|
391
|
+
r === ee.customSort && s === N.Category && (l.orderByX = [...t]), i === ee.customSort && a === N.Category && (l.orderByY = [...t]), Object.keys(l).length > 1 && (e.orderOptions.data = l);
|
|
392
|
+
}, Ls = (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
|
+
}, qs = (t) => t.series[0].gridLine?.color, ks = (t, e) => {
|
|
399
399
|
const s = e.legend;
|
|
400
400
|
s && (s.position = t);
|
|
401
|
-
},
|
|
401
|
+
}, Rs = (t) => t.legend?.position ?? it.Bottom, Os = (t) => t.series[0].query?.outStatistics?.[0]?.onStatisticField, Ds = (t) => {
|
|
402
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
|
{
|
|
406
406
|
onStatisticField: e,
|
|
407
|
-
outStatisticFieldName: `${
|
|
408
|
-
statisticType:
|
|
407
|
+
outStatisticFieldName: `${v.Count}_${e}`,
|
|
408
|
+
statisticType: v.Count
|
|
409
409
|
}
|
|
410
410
|
]
|
|
411
|
-
}, l && s.title && (s.title.content.text =
|
|
412
|
-
}, Ps = (t) => t.series[0].query?.outStatistics?.[0].statisticType ??
|
|
411
|
+
}, l && s.title && (s.title.content.text = j(s, r, a));
|
|
412
|
+
}, Ps = (t) => t.series[0].query?.outStatistics?.[0].statisticType ?? v.Count, ws = (t) => {
|
|
413
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 !==
|
|
415
|
-
},
|
|
414
|
+
i && e !== v.NoAggregation && (i.statisticType = e, i.outStatisticFieldName = `${e}_${i.onStatisticField}`), (e === v.Count || e === v.Sum) && Dt(M.Zero, s), l && s.title && (s.title.content.text = j(s, r, a));
|
|
415
|
+
}, Es = (t) => t.nullPolicy, Dt = (t, e) => {
|
|
416
416
|
e.nullPolicy = t;
|
|
417
|
-
},
|
|
417
|
+
}, Ms = (t) => t.series[0].emptyCells, $s = (t, e) => {
|
|
418
418
|
e.series[0].emptyCells = t;
|
|
419
|
-
},
|
|
419
|
+
}, Ys = (t) => t.series[0].emptyCells?.text, Ws = (t, e) => {
|
|
420
420
|
e.series[0].emptyCells ? e.series[0].emptyCells.text = t : e.series[0].emptyCells = { text: t };
|
|
421
|
-
},
|
|
421
|
+
}, Xs = (t) => t.includeLeapDay, Hs = (t, e) => {
|
|
422
422
|
e.includeLeapDay = t;
|
|
423
|
-
},
|
|
423
|
+
}, js = (t) => t.series[0].emptyCells?.symbol, Us = (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 Ks(t) {
|
|
427
427
|
return t.viewType;
|
|
428
428
|
}
|
|
429
|
-
function
|
|
430
|
-
|
|
429
|
+
function Qs(t, e) {
|
|
430
|
+
Je(e) || (e.viewType = t);
|
|
431
431
|
}
|
|
432
|
-
function
|
|
433
|
-
return t.series[0].classBreaksRules?.breaksCount ??
|
|
432
|
+
function zs(t) {
|
|
433
|
+
return t.series[0].classBreaksRules?.breaksCount ?? $.classBreaks.breaksCount;
|
|
434
434
|
}
|
|
435
|
-
function
|
|
436
|
-
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.breaksCount = t ??
|
|
437
|
-
breaksCount: t ??
|
|
435
|
+
function _s(t, e) {
|
|
436
|
+
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.breaksCount = t ?? $.classBreaks.breaksCount : e.series[0].classBreaksRules = {
|
|
437
|
+
breaksCount: t ?? $.classBreaks.breaksCount
|
|
438
438
|
};
|
|
439
439
|
}
|
|
440
|
-
function
|
|
440
|
+
function Gs(t) {
|
|
441
441
|
return t.series[0].classBreaksRules?.classificationMethod;
|
|
442
442
|
}
|
|
443
|
-
function
|
|
443
|
+
function Zs(t, e) {
|
|
444
444
|
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.classificationMethod = t : e.series[0].classBreaksRules = {
|
|
445
445
|
classificationMethod: t
|
|
446
|
-
}, e.series[0].classBreaksRules.breaksCount = e.series[0].classBreaksRules.breaksCount ??
|
|
446
|
+
}, e.series[0].classBreaksRules.breaksCount = e.series[0].classBreaksRules.breaksCount ?? $.classBreaks.breaksCount;
|
|
447
447
|
}
|
|
448
|
-
function
|
|
448
|
+
function Js(t, e) {
|
|
449
449
|
e.firstDayOfWeek = t;
|
|
450
450
|
}
|
|
451
|
-
function
|
|
451
|
+
function ei(t) {
|
|
452
452
|
return t.firstDayOfWeek;
|
|
453
453
|
}
|
|
454
|
-
function
|
|
454
|
+
function ti(t) {
|
|
455
455
|
return t.series[0].classBreaksRules?.colorRampInfo?.name;
|
|
456
456
|
}
|
|
457
|
-
function
|
|
457
|
+
function si(t, e) {
|
|
458
458
|
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.colorRampInfo = {
|
|
459
459
|
...e.series[0].classBreaksRules.colorRampInfo,
|
|
460
460
|
name: t
|
|
@@ -465,10 +465,10 @@ function ii(t, e) {
|
|
|
465
465
|
}
|
|
466
466
|
};
|
|
467
467
|
}
|
|
468
|
-
function
|
|
468
|
+
function ii(t) {
|
|
469
469
|
return t.series[0].classBreaksRules?.colorRampInfo?.flipped ?? !1;
|
|
470
470
|
}
|
|
471
|
-
function
|
|
471
|
+
function ai(t, e) {
|
|
472
472
|
e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.colorRampInfo = {
|
|
473
473
|
...e.series[0].classBreaksRules.colorRampInfo,
|
|
474
474
|
flipped: t
|
|
@@ -478,25 +478,25 @@ function ri(t, e) {
|
|
|
478
478
|
}
|
|
479
479
|
};
|
|
480
480
|
}
|
|
481
|
-
function
|
|
482
|
-
const { seriesIndex: e, xAxisField: s, aggregationType: r, config: a, layerInfo: i, commonStrings: l } = t, n =
|
|
481
|
+
function W(t) {
|
|
482
|
+
const { seriesIndex: e, xAxisField: s, aggregationType: r, config: a, layerInfo: i, commonStrings: l } = t, n = H(i?.layer).idField;
|
|
483
483
|
let y;
|
|
484
484
|
const g = a.series[e ?? 0];
|
|
485
|
-
let
|
|
485
|
+
let S = !1, o = !1, c = !1;
|
|
486
486
|
if (g === void 0) {
|
|
487
487
|
const u = a.series;
|
|
488
|
-
|
|
488
|
+
S = u.slice(0, e).every((p) => b(p)), o = u.slice(0, e).every((p) => A(p)), c = u.slice(0, e).every((p) => Se(p));
|
|
489
489
|
} else
|
|
490
|
-
|
|
491
|
-
|
|
490
|
+
S = b(g), o = A(g), c = Se(g);
|
|
491
|
+
S ? y = ct({
|
|
492
492
|
commonStrings: l,
|
|
493
493
|
seriesIndex: e,
|
|
494
494
|
objectIDField: n
|
|
495
|
-
}) : o ? y =
|
|
495
|
+
}) : o ? y = dt({
|
|
496
496
|
commonStrings: l,
|
|
497
497
|
seriesIndex: e,
|
|
498
498
|
objectIDField: n
|
|
499
|
-
}) : c ? y =
|
|
499
|
+
}) : c ? y = yt(l, n) : y = mt({
|
|
500
500
|
seriesIndex: e,
|
|
501
501
|
objectIDField: n,
|
|
502
502
|
commonStrings: l
|
|
@@ -507,14 +507,14 @@ function Y(t) {
|
|
|
507
507
|
y: "",
|
|
508
508
|
dataLabels: {
|
|
509
509
|
...y.dataLabels,
|
|
510
|
-
type: y.dataLabels?.type ??
|
|
511
|
-
content: { ...y.dataLabels?.content, ...m?.content, type:
|
|
510
|
+
type: y.dataLabels?.type ?? I.Text,
|
|
511
|
+
content: { ...y.dataLabels?.content, ...m?.content, type: lt.TS },
|
|
512
512
|
visible: m?.visible ?? !1
|
|
513
513
|
}
|
|
514
514
|
};
|
|
515
515
|
if (d.query = {
|
|
516
516
|
groupByFieldsForStatistics: [s]
|
|
517
|
-
}, r !==
|
|
517
|
+
}, r !== v.NoAggregation && n !== void 0) {
|
|
518
518
|
const u = `${r}_${n}_0`.toUpperCase();
|
|
519
519
|
d.y = u, d.query.outStatistics = [
|
|
520
520
|
{
|
|
@@ -524,8 +524,8 @@ function Y(t) {
|
|
|
524
524
|
}
|
|
525
525
|
];
|
|
526
526
|
}
|
|
527
|
-
if (k(a.series[0]) && k(d)
|
|
528
|
-
let u =
|
|
527
|
+
if (k(a.series[0]) && k(d)) {
|
|
528
|
+
let u = Tt(a);
|
|
529
529
|
u === se.Quarter && (u = se.Month), d.temporalBinning = {
|
|
530
530
|
...a.series[0]?.temporalBinning,
|
|
531
531
|
unit: u
|
|
@@ -533,60 +533,60 @@ function Y(t) {
|
|
|
533
533
|
}
|
|
534
534
|
return re(d);
|
|
535
535
|
}
|
|
536
|
-
function
|
|
537
|
-
const { layerFieldsInfo: r } = e, { idField: a, isTraditionalTypeOID: i } =
|
|
536
|
+
function j(t, e, s) {
|
|
537
|
+
const { layerFieldsInfo: r } = e, { idField: a, isTraditionalTypeOID: i } = H(e.layer), l = Y(t), n = G(t), y = be(t), g = _(t), S = i && (n.length === 0 || n.includes(a)), o = ut(y, s), c = S ? "" : n.map((F) => D(r ?? [], F)).join(", "), m = D(r ?? [], l), d = D(r ?? [], g), u = t.series.some((F) => O(F)), p = u ? "category" : "xAxisField", T = m;
|
|
538
538
|
let C = "";
|
|
539
|
-
if (
|
|
539
|
+
if (xe({
|
|
540
540
|
fieldName: l,
|
|
541
541
|
numericFields: n,
|
|
542
542
|
fieldList: r
|
|
543
543
|
}))
|
|
544
|
-
C =
|
|
544
|
+
C = w(s.titleLabels.aggrTypeOfAggrFields, {
|
|
545
545
|
aggregationType: o,
|
|
546
546
|
aggregationFields: c
|
|
547
547
|
});
|
|
548
|
-
else if (y ===
|
|
549
|
-
const
|
|
548
|
+
else if (y === v.NoAggregation) {
|
|
549
|
+
const F = S ? a : c;
|
|
550
550
|
if (g === "") {
|
|
551
551
|
const f = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
|
|
552
|
-
C =
|
|
553
|
-
aggregationType:
|
|
552
|
+
C = w(s.titleLabels[f], {
|
|
553
|
+
aggregationType: F,
|
|
554
554
|
[p]: T
|
|
555
555
|
});
|
|
556
556
|
} else {
|
|
557
557
|
const f = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
|
|
558
|
-
C =
|
|
559
|
-
aggregationType:
|
|
558
|
+
C = w(s.titleLabels[f], {
|
|
559
|
+
aggregationType: F,
|
|
560
560
|
[p]: T,
|
|
561
561
|
splitByField: d
|
|
562
562
|
});
|
|
563
563
|
}
|
|
564
|
-
} else if (y ===
|
|
564
|
+
} else if (y === v.Count)
|
|
565
565
|
if (g === "") {
|
|
566
|
-
const
|
|
567
|
-
C =
|
|
566
|
+
const F = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
|
|
567
|
+
C = w(s.titleLabels[F], {
|
|
568
568
|
aggregationType: o,
|
|
569
569
|
[p]: T
|
|
570
570
|
});
|
|
571
571
|
} else {
|
|
572
|
-
const
|
|
573
|
-
C =
|
|
572
|
+
const F = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
|
|
573
|
+
C = w(s.titleLabels[F], {
|
|
574
574
|
aggregationType: o,
|
|
575
575
|
[p]: T,
|
|
576
576
|
splitByField: d
|
|
577
577
|
});
|
|
578
578
|
}
|
|
579
579
|
else if (g !== "") {
|
|
580
|
-
const
|
|
581
|
-
C =
|
|
580
|
+
const F = u ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
|
|
581
|
+
C = w(s.titleLabels[F], {
|
|
582
582
|
aggregationType: o,
|
|
583
583
|
aggregationField: c,
|
|
584
584
|
[p]: T,
|
|
585
585
|
splitByField: d
|
|
586
586
|
});
|
|
587
587
|
} else if (n.length > 0) {
|
|
588
|
-
const
|
|
589
|
-
C =
|
|
588
|
+
const F = u ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
|
|
589
|
+
C = w(s.titleLabels[F], {
|
|
590
590
|
aggregationType: o,
|
|
591
591
|
aggregationFields: c,
|
|
592
592
|
[p]: T
|
|
@@ -594,14 +594,14 @@ function H(t, e, s) {
|
|
|
594
594
|
}
|
|
595
595
|
return C;
|
|
596
596
|
}
|
|
597
|
-
const
|
|
597
|
+
const Ce = (t) => ne({
|
|
598
598
|
where: t.query?.where,
|
|
599
599
|
normalize: !1,
|
|
600
600
|
escape: !1
|
|
601
|
-
}) ?? "",
|
|
601
|
+
}) ?? "", be = (t) => t?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? v.NoAggregation, _ = Ve(
|
|
602
602
|
(t) => {
|
|
603
603
|
const e = t?.series?.[0]?.query?.where?.split("=")[0].trim() ?? "";
|
|
604
|
-
return
|
|
604
|
+
return et(t?.series?.[0]?.query?.where) ? "" : e;
|
|
605
605
|
},
|
|
606
606
|
(t) => t?.series?.[0]?.query?.where
|
|
607
607
|
), G = (t) => {
|
|
@@ -617,45 +617,45 @@ const be = (t) => ne({
|
|
|
617
617
|
}
|
|
618
618
|
return e.filter((s) => s !== "");
|
|
619
619
|
};
|
|
620
|
-
function
|
|
621
|
-
const { splitByField: e, numericFields: s, layer: r, seriesIndex: a } = t, i =
|
|
620
|
+
function Ae(t) {
|
|
621
|
+
const { splitByField: e, numericFields: s, layer: r, seriesIndex: a } = t, i = H(r).idField ?? "";
|
|
622
622
|
return e === "" ? s[a] ?? i : s[0] ?? i;
|
|
623
623
|
}
|
|
624
|
-
function
|
|
624
|
+
function Pt(t) {
|
|
625
625
|
const { numericFields: e, aggregationType: s, config: r, layerInfo: a } = t;
|
|
626
626
|
let i = !1;
|
|
627
|
-
s ===
|
|
628
|
-
const g = a.layerFieldsInfo.find((
|
|
629
|
-
return g !== void 0 ?
|
|
630
|
-
})),
|
|
627
|
+
s === v.Count ? i = !0 : s === v.NoAggregation && (i = e.every((y) => {
|
|
628
|
+
const g = a.layerFieldsInfo.find((S) => S.name === y);
|
|
629
|
+
return g !== void 0 ? me(g) : !1;
|
|
630
|
+
})), ce(r, 1, i);
|
|
631
631
|
const l = r.series.some((y) => b(y)), n = r.series.some((y) => A(y));
|
|
632
632
|
if (l || n) {
|
|
633
|
-
const y =
|
|
634
|
-
|
|
633
|
+
const y = Y(r), g = a.layerFieldsInfo.find((o) => o.name === y), S = g !== void 0 && me(g);
|
|
634
|
+
ce(r, 0, S);
|
|
635
635
|
}
|
|
636
636
|
}
|
|
637
637
|
const ae = (t) => {
|
|
638
638
|
let e;
|
|
639
639
|
if (oe(t)) {
|
|
640
|
-
const s = t.orderOptions?.data?.orderByX ?? [""], r = t.orderOptions?.data?.orderByY ?? [""], a = t.axes?.[0]?.valueFormat?.type === "category" ?
|
|
641
|
-
e = [
|
|
640
|
+
const s = t.orderOptions?.data?.orderByX ?? [""], r = t.orderOptions?.data?.orderByY ?? [""], a = t.axes?.[0]?.valueFormat?.type === "category" ? N.Category : N.YValue, i = t.axes?.[1]?.valueFormat?.type === "category" ? N.Category : N.YValue;
|
|
641
|
+
e = [ge(s, a), ge(r, i)];
|
|
642
642
|
} else {
|
|
643
|
-
const s = t.orderOptions?.data?.orderType ??
|
|
644
|
-
e = [
|
|
643
|
+
const s = t.orderOptions?.data?.orderType ?? N.Category, r = t.orderOptions?.data && "orderBy" in t.orderOptions.data ? t.orderOptions.data.orderBy : at.Ascending;
|
|
644
|
+
e = [st(r, s)];
|
|
645
645
|
}
|
|
646
646
|
return e;
|
|
647
647
|
};
|
|
648
|
-
function
|
|
648
|
+
function wt(t) {
|
|
649
649
|
const { xAxisField: e, numericFields: s, aggregationType: r, config: a, layerInfo: i, commonStrings: l } = t, { layerFieldsInfo: n } = i;
|
|
650
650
|
let y = !1;
|
|
651
|
-
const g =
|
|
651
|
+
const g = W({
|
|
652
652
|
config: a,
|
|
653
653
|
xAxisField: e,
|
|
654
654
|
aggregationType: r,
|
|
655
655
|
layerInfo: i,
|
|
656
656
|
seriesIndex: 0,
|
|
657
657
|
commonStrings: l
|
|
658
|
-
}),
|
|
658
|
+
}), S = Q({
|
|
659
659
|
config: a,
|
|
660
660
|
xAxisField: e,
|
|
661
661
|
numericFields: s,
|
|
@@ -667,7 +667,7 @@ function Pt(t) {
|
|
|
667
667
|
id: `series_${Date.now()}`,
|
|
668
668
|
name: l.axisLabels.values,
|
|
669
669
|
x: te,
|
|
670
|
-
y:
|
|
670
|
+
y: S
|
|
671
671
|
}, c = [];
|
|
672
672
|
for (const d of s)
|
|
673
673
|
c.push({
|
|
@@ -677,20 +677,20 @@ function Pt(t) {
|
|
|
677
677
|
});
|
|
678
678
|
o.query = { outStatistics: c };
|
|
679
679
|
const m = a.series[0];
|
|
680
|
-
return m !== void 0 && (o.id = m.id, (b(o) && b(m) || A(o) && A(m)) &&
|
|
680
|
+
return m !== void 0 && (o.id = m.id, (b(o) && b(m) || A(o) && A(m)) && X(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)) && X(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];
|
|
681
681
|
}
|
|
682
682
|
function Ie(t) {
|
|
683
|
-
const { xAxisField: e, numericFields: s, aggregationType: r, config: a, layerInfo: i, commonStrings: l } = t, { layerFieldsInfo: n } = i, y =
|
|
684
|
-
let
|
|
683
|
+
const { xAxisField: e, numericFields: s, aggregationType: r, config: a, layerInfo: i, commonStrings: l } = t, { layerFieldsInfo: n } = i, y = H(i.layer).idField, g = [];
|
|
684
|
+
let S = !1;
|
|
685
685
|
for (let u = 0; u < s.length; u += 1) {
|
|
686
|
-
const p =
|
|
686
|
+
const p = W({
|
|
687
687
|
config: a,
|
|
688
688
|
xAxisField: e,
|
|
689
689
|
aggregationType: r,
|
|
690
690
|
layerInfo: i,
|
|
691
691
|
seriesIndex: u,
|
|
692
692
|
commonStrings: l
|
|
693
|
-
}), T = a.series[u]?.y, C = typeof T == "string" && T.trim() !== "" && !n.find((
|
|
693
|
+
}), T = a.series[u]?.y, C = typeof T == "string" && T.trim() !== "" && !n.find((h) => h.name === T) ? T : Q({
|
|
694
694
|
config: a,
|
|
695
695
|
xAxisField: e,
|
|
696
696
|
numericFields: s,
|
|
@@ -698,33 +698,33 @@ function Ie(t) {
|
|
|
698
698
|
layer: i.layer,
|
|
699
699
|
numericFieldIndex: u,
|
|
700
700
|
fieldList: n
|
|
701
|
-
}).name,
|
|
701
|
+
}).name, F = s[u];
|
|
702
702
|
let f = {
|
|
703
703
|
...p,
|
|
704
704
|
query: {
|
|
705
705
|
...p.query
|
|
706
706
|
}
|
|
707
707
|
};
|
|
708
|
-
s &&
|
|
708
|
+
s && F !== y && (f = {
|
|
709
709
|
...f,
|
|
710
|
-
id:
|
|
711
|
-
name: D(n,
|
|
710
|
+
id: F,
|
|
711
|
+
name: D(n, F)
|
|
712
712
|
});
|
|
713
|
-
let R =
|
|
714
|
-
f.query !== void 0 && (r !==
|
|
713
|
+
let R = F;
|
|
714
|
+
f.query !== void 0 && (r !== v.NoAggregation ? (R = C, f.query.outStatistics = [
|
|
715
715
|
{
|
|
716
716
|
...p.query?.outStatistics?.[0] ?? {},
|
|
717
|
-
onStatisticField:
|
|
717
|
+
onStatisticField: F,
|
|
718
718
|
outStatisticFieldName: C,
|
|
719
719
|
statisticType: r
|
|
720
720
|
}
|
|
721
721
|
]) : delete f.query.outStatistics), f.y = R;
|
|
722
722
|
const x = a.series.find(
|
|
723
|
-
(
|
|
723
|
+
(h) => h.query?.outStatistics?.[0]?.onStatisticField === F && h.query.where === void 0 || h.query?.outStatistics === void 0 && (h.y === F || h.x === F)
|
|
724
724
|
);
|
|
725
725
|
if (x !== void 0 && typeof x.y == "string" && x.y.trim() !== "") {
|
|
726
|
-
(b(f) && b(x) || A(f) && A(x)) &&
|
|
727
|
-
const
|
|
726
|
+
(b(f) && b(x) || A(f) && A(x)) && X(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), S = !0);
|
|
727
|
+
const h = W({
|
|
728
728
|
config: a,
|
|
729
729
|
xAxisField: e,
|
|
730
730
|
aggregationType: r,
|
|
@@ -732,7 +732,7 @@ function Ie(t) {
|
|
|
732
732
|
seriesIndex: u,
|
|
733
733
|
commonStrings: l
|
|
734
734
|
});
|
|
735
|
-
f.id = x.id, x.id !==
|
|
735
|
+
f.id = x.id, x.id !== h.id && x.name !== h.name && (f.id = x.id, f.name = x.name), f.assignToSecondValueAxis = x.assignToSecondValueAxis, f.type === I.HeatSeries && x.type === I.HeatSeries && (f.y = x.y, f.heatRulesType = x.heatRulesType);
|
|
736
736
|
}
|
|
737
737
|
g.push(f);
|
|
738
738
|
}
|
|
@@ -741,10 +741,10 @@ function Ie(t) {
|
|
|
741
741
|
), m = a.series.filter((u) => O(u)), d = a.series.filter(
|
|
742
742
|
(u) => b(u) || A(u)
|
|
743
743
|
);
|
|
744
|
-
return m.length === 1 && o.length === 1 && !a.colorMatch && (O(m[0]) && O(o[0]) && (o[0].fillSymbol = m[0].fillSymbol),
|
|
744
|
+
return m.length === 1 && o.length === 1 && !a.colorMatch && (O(m[0]) && O(o[0]) && (o[0].fillSymbol = m[0].fillSymbol), S = !0), d.length === 1 && c.length === 1 && ((b(d[0]) && b(c[0]) || A(d[0]) && A(c[0])) && X(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), S = !0)), a.colorMatch = !S, g;
|
|
745
745
|
}
|
|
746
|
-
function
|
|
747
|
-
const { aggregationType: e, config: s, layerInfo: r, commonStrings: a } = t, { layerFieldsInfo: i, layer: l } = r, n =
|
|
746
|
+
function ri(t) {
|
|
747
|
+
const { aggregationType: e, config: s, layerInfo: r, commonStrings: a } = t, { layerFieldsInfo: i, layer: l } = r, n = Y(s), y = G(s), g = _(s), S = Z(s, r, a), o = ve(s, r, a);
|
|
748
748
|
if (s.series.forEach((c, m) => {
|
|
749
749
|
const d = Q({
|
|
750
750
|
config: s,
|
|
@@ -757,27 +757,25 @@ function li(t) {
|
|
|
757
757
|
numericFieldIndex: m,
|
|
758
758
|
fieldList: i
|
|
759
759
|
}).name;
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
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) {
|
|
760
|
+
c.y = d;
|
|
761
|
+
const u = Ae({
|
|
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: e === v.NoAggregation ? void 0 : [
|
|
770
|
+
{
|
|
771
|
+
...c.query?.outStatistics?.[0],
|
|
772
|
+
outStatisticFieldName: d,
|
|
773
|
+
statisticType: e,
|
|
774
|
+
onStatisticField: p
|
|
775
|
+
}
|
|
776
|
+
]
|
|
777
|
+
}, "temporalBinning" in c && c.temporalBinning !== void 0 && (c.temporalBinning.nullPolicy = e === v.NoAggregation ? M.Interpolate : M.Null), e === v.NoAggregation && bt(s);
|
|
778
|
+
}), S && s.title && (s.title.content.text = j(s, r, a)), o && s.series[0].type !== I.HeatSeries) {
|
|
781
779
|
const c = le({
|
|
782
780
|
config: s,
|
|
783
781
|
layerInfo: r,
|
|
@@ -798,7 +796,7 @@ function Et(t) {
|
|
|
798
796
|
layerInfo: l,
|
|
799
797
|
commonStrings: n,
|
|
800
798
|
splitByFieldInfos: y
|
|
801
|
-
} = t, { layer: g, layerFieldsInfo:
|
|
799
|
+
} = t, { layer: g, layerFieldsInfo: S } = l, { categoriesArray: o, splitByFieldType: c } = y, m = Ae({
|
|
802
800
|
splitByField: e,
|
|
803
801
|
numericFields: r,
|
|
804
802
|
layer: g,
|
|
@@ -826,45 +824,43 @@ function Et(t) {
|
|
|
826
824
|
layer: l.layer,
|
|
827
825
|
seriesIndex: p,
|
|
828
826
|
splitByField: e,
|
|
829
|
-
fieldList:
|
|
830
|
-
}).name,
|
|
827
|
+
fieldList: S
|
|
828
|
+
}).name, F = W({
|
|
831
829
|
config: i,
|
|
832
830
|
xAxisField: s,
|
|
833
831
|
aggregationType: a,
|
|
834
832
|
layerInfo: l,
|
|
835
833
|
seriesIndex: p,
|
|
836
834
|
commonStrings: n
|
|
837
|
-
}), f =
|
|
835
|
+
}), f = he({
|
|
838
836
|
queryObject: l.layer,
|
|
839
837
|
fieldName: e,
|
|
840
838
|
fieldValue: T ?? ""
|
|
841
|
-
}), R = `${T}`,
|
|
842
|
-
...
|
|
839
|
+
}), R = `${T}`, h = {
|
|
840
|
+
...F,
|
|
843
841
|
id: R,
|
|
844
842
|
name: f ?? R,
|
|
845
843
|
y: C,
|
|
846
844
|
query: {
|
|
847
|
-
...
|
|
848
|
-
where: `${e}=${c ===
|
|
849
|
-
outStatistics: a !==
|
|
845
|
+
...F.query,
|
|
846
|
+
where: `${e}=${c === nt.String && T !== null ? `'${T}'` : T}`,
|
|
847
|
+
outStatistics: a !== v.NoAggregation ? [
|
|
850
848
|
{
|
|
851
|
-
...
|
|
849
|
+
...F.query?.outStatistics?.[0] ?? {},
|
|
852
850
|
onStatisticField: m,
|
|
853
851
|
outStatisticFieldName: C,
|
|
854
852
|
statisticType: a
|
|
855
853
|
}
|
|
856
854
|
] : void 0
|
|
857
855
|
}
|
|
858
|
-
}
|
|
859
|
-
|
|
860
|
-
const I = i.series.find(
|
|
861
|
-
(q) => String(be(q)).trim().replace(/'/gu, "") === R
|
|
856
|
+
}, L = i.series.find(
|
|
857
|
+
(V) => String(Ce(V)).trim().replace(/'/gu, "") === R
|
|
862
858
|
);
|
|
863
|
-
|
|
859
|
+
L !== void 0 && ((b(h) && b(L) || A(h) && A(L)) && X(h, L), i.colorMatch || (O(h) && O(L) ? h.fillSymbol = L.fillSymbol : (b(h) && b(L) || A(h) && A(L)) && (h.lineSymbol = L.lineSymbol, h.markerSymbol = L.markerSymbol), u = !0), h.id = L.id, h.name = L.name, h.assignToSecondValueAxis = L.assignToSecondValueAxis), h.query && (h.query.fetchNullValues = i.series.some((V) => V.query?.fetchNullValues)), d.push(h);
|
|
864
860
|
}
|
|
865
861
|
return i.colorMatch = !u, d;
|
|
866
862
|
}
|
|
867
|
-
const
|
|
863
|
+
const li = (t) => {
|
|
868
864
|
const {
|
|
869
865
|
xAxisFieldName: e,
|
|
870
866
|
splitByField: s,
|
|
@@ -874,20 +870,20 @@ const ni = (t) => {
|
|
|
874
870
|
layerInfo: l,
|
|
875
871
|
commonStrings: n,
|
|
876
872
|
splitByFieldInfos: y
|
|
877
|
-
} = t, { layerFieldsInfo: g } = l ?? {},
|
|
878
|
-
let f =
|
|
879
|
-
const R = i.series.some((B) => O(B)), x =
|
|
880
|
-
|
|
873
|
+
} = t, { layerFieldsInfo: g } = l ?? {}, S = ht(i), o = Y(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 = ve(i, l, n), F = Mt(i, l);
|
|
874
|
+
let f = Fe(i);
|
|
875
|
+
const R = i.series.some((B) => O(B)), x = pt(i.series), h = ft(i.series), L = oe(i), V = {};
|
|
876
|
+
L && (V.classBreaksRules = i.series[0]?.classBreaksRules, V.xTemporalBinning = i.series[0]?.xTemporalBinning, V.yTemporalBinning = i.series[0]?.yTemporalBinning, V.emptyCells = i.series[0]?.emptyCells, V.nullPolicy = i.nullPolicy);
|
|
881
877
|
let J = !1;
|
|
882
|
-
if (
|
|
883
|
-
|
|
878
|
+
if (tt(p) ? f = pe() : !ye(c) && ye(p) ? f = fe() : !U(c) && U(p) ? (f = fe(), J = !0) : U(c) && !U(p) && (R ? f = pe() : f = gt(), J = !0), f !== void 0 && qe(i, n, f), S === 0 && (i.series = [
|
|
879
|
+
W({ config: i, xAxisField: e, aggregationType: a, layerInfo: l, commonStrings: n })
|
|
884
880
|
]), i.series.forEach((B) => {
|
|
885
881
|
B.x = e, B.query !== void 0 && (B.query.groupByFieldsForStatistics = [e]);
|
|
886
|
-
}), s === "" || r.length > 1 ?
|
|
882
|
+
}), s === "" || r.length > 1 ? xe({
|
|
887
883
|
fieldName: e,
|
|
888
884
|
numericFields: r,
|
|
889
885
|
fieldList: g
|
|
890
|
-
}) ? i.series =
|
|
886
|
+
}) ? i.series = wt({
|
|
891
887
|
config: i,
|
|
892
888
|
layerInfo: l,
|
|
893
889
|
xAxisField: e,
|
|
@@ -910,11 +906,11 @@ const ni = (t) => {
|
|
|
910
906
|
aggregationType: a,
|
|
911
907
|
commonStrings: n,
|
|
912
908
|
splitByFieldInfos: y
|
|
913
|
-
})),
|
|
909
|
+
})), F && i.series[0].type !== I.HeatSeries) {
|
|
914
910
|
const B = D(g, e);
|
|
915
911
|
E(i, 0, B);
|
|
916
912
|
}
|
|
917
|
-
if (C && i.series[0].type !==
|
|
913
|
+
if (C && i.series[0].type !== I.HeatSeries) {
|
|
918
914
|
const B = le({
|
|
919
915
|
config: i,
|
|
920
916
|
layerInfo: l,
|
|
@@ -924,54 +920,54 @@ const ni = (t) => {
|
|
|
924
920
|
});
|
|
925
921
|
E(i, 1, B);
|
|
926
922
|
}
|
|
927
|
-
if (T && i.title && (i.title.content.text =
|
|
928
|
-
const B = f?.type ===
|
|
929
|
-
|
|
923
|
+
if (T && i.title && (i.title.content.text = j(i, l, n)), q({ config: i, value: null, axisIndex: 1, isMax: !1 }), q({ config: i, value: null, axisIndex: 1, isMax: !0 }), Pt({ numericFields: r, aggregationType: a, config: i, layerInfo: l }), (x || h) && (q({ config: i, value: null, axisIndex: 0, isMax: !1 }), q({ config: i, value: null, axisIndex: 0, isMax: !0 }), J && a !== v.NoAggregation)) {
|
|
924
|
+
const B = f?.type === I.DateAxisFormat ? M.Null : M.Interpolate;
|
|
925
|
+
Ct(B, i);
|
|
930
926
|
}
|
|
931
|
-
|
|
927
|
+
L && (i.series[0].classBreaksRules = V.classBreaksRules, i.series[0].xTemporalBinning = V.xTemporalBinning, i.series[0].yTemporalBinning = V.yTemporalBinning, i.series[0].emptyCells = V.emptyCells, i.nullPolicy = V.nullPolicy), u ? i.series.forEach((B) => {
|
|
932
928
|
delete B.query;
|
|
933
929
|
}) : m && i.series.forEach((B) => {
|
|
934
930
|
B.query && (B.query.fetchNullValues = m);
|
|
935
931
|
}), d && i.series.forEach((B) => {
|
|
936
|
-
(B.type ===
|
|
932
|
+
(B.type === I.BarSeries || B.type === I.LineSeries || B.type === I.RadarSeries) && (B.nullCategory = d);
|
|
937
933
|
});
|
|
938
|
-
},
|
|
934
|
+
}, X = (t, e) => {
|
|
939
935
|
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 = {
|
|
940
936
|
...e.markerSymbol,
|
|
941
937
|
color: t.markerSymbol?.color
|
|
942
938
|
});
|
|
943
|
-
},
|
|
939
|
+
}, ni = (t) => {
|
|
944
940
|
const { config: e, seriesIndex: s, layerInfo: r, commonStrings: a } = t, i = e.series?.[s], l = _(e);
|
|
945
941
|
let n;
|
|
946
|
-
if (K(e.series) ===
|
|
942
|
+
if (K(e.series) === P.BarAndLineFromFields)
|
|
947
943
|
n = a.axisLabels.values;
|
|
948
|
-
else if (
|
|
944
|
+
else if (Le(l)) {
|
|
949
945
|
const g = i.query?.outStatistics?.[0]?.onStatisticField;
|
|
950
|
-
g !== void 0 && g !==
|
|
946
|
+
g !== void 0 && g !== H(r.layer).idField && (n = D(r.layerFieldsInfo, g));
|
|
951
947
|
} else {
|
|
952
|
-
const g = String(
|
|
953
|
-
n =
|
|
948
|
+
const g = String(Ce(i)).trim().replace(/'/gu, "");
|
|
949
|
+
n = he({
|
|
954
950
|
queryObject: r.layer,
|
|
955
951
|
fieldName: l,
|
|
956
952
|
fieldValue: g ?? ""
|
|
957
953
|
}) ?? g;
|
|
958
954
|
}
|
|
959
955
|
return n ?? i.id;
|
|
960
|
-
},
|
|
956
|
+
}, oi = (t, e) => {
|
|
961
957
|
if (oe(e))
|
|
962
958
|
Ot(t, e);
|
|
963
959
|
else {
|
|
964
960
|
e.orderOptions ??= {};
|
|
965
961
|
const s = e.orderOptions?.data?.orderType;
|
|
966
|
-
ae(e)[0] === ee.customSort && s ===
|
|
967
|
-
orderType:
|
|
962
|
+
ae(e)[0] === ee.customSort && s === N.Category && (e.orderOptions.data = {
|
|
963
|
+
orderType: N.Category,
|
|
968
964
|
orderBy: [...t]
|
|
969
965
|
});
|
|
970
966
|
}
|
|
971
|
-
},
|
|
972
|
-
const { config: e, layerInfo: s, errorStrings: r } = t, a =
|
|
967
|
+
}, ui = async (t) => {
|
|
968
|
+
const { config: e, layerInfo: s, errorStrings: r } = t, a = Y(e), i = Fe(e)?.type, l = G(e), n = K(e.series);
|
|
973
969
|
let y = [];
|
|
974
|
-
return i ===
|
|
970
|
+
return i === I.CategoryAxisFormat && (n === P.BarAndLineFromFields || a === te ? y = l.map((g) => D(s?.layerFieldsInfo, g)) : a.trim() !== "" && a !== te && s !== void 0 && (y = await Ne({
|
|
975
971
|
layerInfo: s,
|
|
976
972
|
config: e,
|
|
977
973
|
category: a,
|
|
@@ -979,111 +975,111 @@ const ni = (t) => {
|
|
|
979
975
|
}))), y;
|
|
980
976
|
};
|
|
981
977
|
function Z(t, e, s) {
|
|
982
|
-
const r =
|
|
978
|
+
const r = j(t, e, s), a = xt(t), i = z(t);
|
|
983
979
|
return r === a || i;
|
|
984
980
|
}
|
|
985
|
-
function
|
|
981
|
+
function ve(t, e, s) {
|
|
986
982
|
const r = le({
|
|
987
983
|
config: t,
|
|
988
984
|
layerInfo: e,
|
|
989
985
|
commonStrings: s,
|
|
990
986
|
numericFields: G(t),
|
|
991
|
-
aggregationType:
|
|
992
|
-
}), a =
|
|
987
|
+
aggregationType: be(t)
|
|
988
|
+
}), a = ue(1, t), i = z(t);
|
|
993
989
|
return r === a || i;
|
|
994
990
|
}
|
|
995
991
|
function Mt(t, e) {
|
|
996
|
-
const s = D(e.layerFieldsInfo,
|
|
992
|
+
const s = D(e.layerFieldsInfo, Y(t)), r = ue(0, t), a = z(t);
|
|
997
993
|
return s === r || a;
|
|
998
994
|
}
|
|
999
|
-
function
|
|
995
|
+
function ci(t) {
|
|
1000
996
|
return k(t.series[0]) ? t.series[0].binTemporalData ?? !0 : !1;
|
|
1001
997
|
}
|
|
1002
|
-
function
|
|
1003
|
-
|
|
1004
|
-
(s?.type ===
|
|
998
|
+
function di(t, e) {
|
|
999
|
+
e?.series.forEach((s) => {
|
|
1000
|
+
(s?.type === I.BarSeries || s?.type === I.LineSeries) && (s.binTemporalData = t, t ? s.temporalBinning = {
|
|
1005
1001
|
unit: se.Day,
|
|
1006
1002
|
size: 0,
|
|
1007
|
-
timeAggregationType:
|
|
1003
|
+
timeAggregationType: rt.Start,
|
|
1008
1004
|
trimIncompleteTimeInterval: !0,
|
|
1009
|
-
nullPolicy:
|
|
1005
|
+
nullPolicy: M.Null
|
|
1010
1006
|
} : delete s.temporalBinning);
|
|
1011
1007
|
});
|
|
1012
1008
|
}
|
|
1013
1009
|
export {
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1010
|
+
xs as $,
|
|
1011
|
+
oi as A,
|
|
1012
|
+
li as B,
|
|
1013
|
+
ci as C,
|
|
1014
|
+
di as D,
|
|
1015
|
+
j as E,
|
|
1020
1016
|
Rt as F,
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1017
|
+
Cs as G,
|
|
1018
|
+
Ks as H,
|
|
1019
|
+
Qs as I,
|
|
1020
|
+
As as J,
|
|
1021
|
+
bs as K,
|
|
1022
|
+
vs as L,
|
|
1027
1023
|
Is as M,
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1024
|
+
zs as N,
|
|
1025
|
+
_s as O,
|
|
1026
|
+
Gs as P,
|
|
1027
|
+
Zs as Q,
|
|
1028
|
+
ti as R,
|
|
1029
|
+
si as S,
|
|
1030
|
+
ii as T,
|
|
1031
|
+
ai as U,
|
|
1032
|
+
Ss as V,
|
|
1033
|
+
Fs as W,
|
|
1038
1034
|
Vs as X,
|
|
1039
|
-
|
|
1040
|
-
|
|
1035
|
+
Ls as Y,
|
|
1036
|
+
qs as Z,
|
|
1041
1037
|
Ns as _,
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1038
|
+
ms as a,
|
|
1039
|
+
hs as a0,
|
|
1040
|
+
Bs as a1,
|
|
1041
|
+
Ts as a2,
|
|
1042
|
+
Os as a3,
|
|
1043
|
+
Ds as a4,
|
|
1048
1044
|
Ps as a5,
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1045
|
+
ws as a6,
|
|
1046
|
+
Rs as a7,
|
|
1047
|
+
ks as a8,
|
|
1048
|
+
Es as a9,
|
|
1053
1049
|
Dt as aa,
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1050
|
+
Ms as ab,
|
|
1051
|
+
$s as ac,
|
|
1052
|
+
Ys as ad,
|
|
1053
|
+
Ws as ae,
|
|
1054
|
+
Xs as af,
|
|
1055
|
+
Hs as ag,
|
|
1056
|
+
ei as ah,
|
|
1057
|
+
Js as ai,
|
|
1058
|
+
js as aj,
|
|
1059
|
+
Us as ak,
|
|
1060
|
+
cs as b,
|
|
1061
|
+
ds as c,
|
|
1066
1062
|
G as d,
|
|
1067
1063
|
_ as e,
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1064
|
+
fs as f,
|
|
1065
|
+
be as g,
|
|
1066
|
+
ni as h,
|
|
1067
|
+
gs as i,
|
|
1072
1068
|
is as j,
|
|
1073
|
-
|
|
1069
|
+
Tt as k,
|
|
1074
1070
|
ns as l,
|
|
1075
1071
|
as as m,
|
|
1076
1072
|
os as n,
|
|
1077
1073
|
rs as o,
|
|
1078
|
-
|
|
1074
|
+
ps as p,
|
|
1079
1075
|
us as q,
|
|
1080
1076
|
At as r,
|
|
1081
|
-
|
|
1077
|
+
Bt as s,
|
|
1082
1078
|
ls as t,
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1079
|
+
ys as u,
|
|
1080
|
+
Ct as v,
|
|
1081
|
+
bt as w,
|
|
1082
|
+
ri as x,
|
|
1087
1083
|
ae as y,
|
|
1088
|
-
|
|
1084
|
+
ui as z
|
|
1089
1085
|
};
|