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