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