@arcgis/charts-components 5.1.0-next.1 → 5.1.0-next.2
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/{XRYZYAL4.js → 2MIOMGFE.js} +1 -1
- package/dist/cdn/{2FVGG2EI.js → 2NTTT3TW.js} +1 -1
- package/dist/cdn/{M6U6FZYV.js → 2S7MC6IH.js} +1 -1
- package/dist/cdn/{HI6AE5XG.js → 2XXLQ5Y6.js} +1 -1
- package/dist/cdn/{R65NAU4T.js → 35UJW2K7.js} +1 -1
- package/dist/cdn/{ZTF5EW2C.js → 3ECR6VZA.js} +1 -1
- package/dist/cdn/{YQC2FUWM.js → 3R4FAEOA.js} +1 -1
- package/dist/cdn/{S6IN2PJK.js → 3X5BIAIH.js} +1 -1
- package/dist/cdn/{AT5TLS5G.js → 5J75SUB7.js} +1 -1
- package/dist/cdn/{JLC5Q7Y2.js → 5LGB7G4J.js} +1 -1
- package/dist/cdn/{UJ3X5GAK.js → 6H7C37ET.js} +1 -1
- package/dist/cdn/{EGTQDORP.js → 6P6D5EQM.js} +1 -1
- package/dist/cdn/{STULUM25.js → 6QPQJCDF.js} +1 -1
- package/dist/cdn/{DFSUGOC2.js → AEGOLCCB.js} +1 -1
- package/dist/cdn/{RVDUQNQH.js → AOADUMLE.js} +1 -1
- package/dist/cdn/{F7YBMSC7.js → AX4J6AI7.js} +1 -1
- package/dist/cdn/{NP2HK66D.js → AYCC4F4F.js} +1 -1
- package/dist/cdn/{NO66QM4U.js → BHKN6KLI.js} +1 -1
- package/dist/cdn/{7J7IYWG7.js → DJWQERUV.js} +1 -1
- package/dist/cdn/{7OIBIDJX.js → DMCRUQRB.js} +1 -1
- package/dist/cdn/{Y3U6VC3K.js → ECCH4ADF.js} +1 -1
- package/dist/cdn/{BW44TT3O.js → EHXU4YXH.js} +1 -1
- package/dist/cdn/{ITVP53KT.js → EI24FPBG.js} +1 -1
- package/dist/cdn/{QES24ZNV.js → EQZYVXZ4.js} +1 -1
- package/dist/cdn/{RBW7HCYN.js → EXOEBBNG.js} +1 -1
- package/dist/cdn/{GS4YJSDV.js → FBSZY5IZ.js} +1 -1
- package/dist/cdn/{OH623XHQ.js → FM2BW3TM.js} +1 -1
- package/dist/cdn/{FVHKQX4O.js → FNVHMS3H.js} +1 -1
- package/dist/cdn/{4NQ4FOPA.js → FTSW4HI5.js} +1 -1
- package/dist/cdn/{RHEU3VW6.js → FWZSPESB.js} +1 -1
- package/dist/cdn/{3DSUDPMW.js → GB2NFBIT.js} +1 -1
- package/dist/cdn/{7SSRNOEZ.js → HBNVWG3C.js} +1 -1
- package/dist/cdn/{XINBF3UQ.js → HFZVRDUA.js} +1 -1
- package/dist/cdn/{GWYSKUDT.js → HXFWZC75.js} +1 -1
- package/dist/cdn/{CKOTQVMD.js → HY3LR3KK.js} +1 -1
- package/dist/cdn/{SBBG2LAI.js → IB7QFJ53.js} +1 -1
- package/dist/cdn/{7GVHJYQ4.js → ID4UFFP4.js} +1 -1
- package/dist/cdn/{QBDBBEMO.js → IXCOCHIN.js} +1 -1
- package/dist/cdn/{W32EPRL3.js → J52LA3XG.js} +1 -1
- package/dist/cdn/{CLZB5JAL.js → J76ITKCE.js} +1 -1
- package/dist/cdn/{5F7P2IRB.js → JB3AN55N.js} +1 -1
- package/dist/cdn/{GU6JH3VZ.js → JRNQMXAJ.js} +3 -3
- package/dist/cdn/{46NT4YQ5.js → JWJDAHU7.js} +1 -1
- package/dist/cdn/{G2EFW5BS.js → KXMZHCZV.js} +1 -1
- package/dist/cdn/{OFNVRKLL.js → LG4UY6SI.js} +1 -1
- package/dist/cdn/{5RFEFP2G.js → LKAP5YGA.js} +1 -1
- package/dist/cdn/{ROJ67ATL.js → LPBHJ3MJ.js} +1 -1
- package/dist/cdn/{PQQQPD6E.js → LY52O2R2.js} +1 -1
- package/dist/cdn/M5VLEZ53.js +2 -0
- package/dist/cdn/{D5EFLFGK.js → MFEFSFFB.js} +1 -1
- package/dist/cdn/{ESHE4EJO.js → MSTBHX5F.js} +1 -1
- package/dist/cdn/{YBSBFAGE.js → NTZUHVUX.js} +1 -1
- package/dist/cdn/{W7THVT7Z.js → NZUSMDEI.js} +1 -1
- package/dist/cdn/{SM5V7JW4.js → O3MTULYR.js} +1 -1
- package/dist/cdn/{734N3Q42.js → OYXE3FXG.js} +1 -1
- package/dist/cdn/{NRBBCJMI.js → P6U3FRUV.js} +1 -1
- package/dist/cdn/{KKUG22EI.js → PDUXHSFV.js} +1 -1
- package/dist/cdn/{QGBDD3VP.js → PPOLZ5BG.js} +1 -1
- package/dist/cdn/{WHQ6EWYY.js → PVDSHL2H.js} +1 -1
- package/dist/cdn/{527DICLD.js → PYAGAI3Q.js} +1 -1
- package/dist/cdn/{IHPHZSVH.js → QNMJT6VU.js} +1 -1
- package/dist/cdn/{54S7WK2Q.js → QSMCN53C.js} +1 -1
- package/dist/cdn/{JDUDNQNC.js → QXL7A4DC.js} +1 -1
- package/dist/cdn/{VCBEQAWJ.js → RSICVDZA.js} +1 -1
- package/dist/cdn/{UUYAX5P7.js → SRYBZ24U.js} +1 -1
- package/dist/cdn/{Z4B2NHJI.js → SRZ4ZT6P.js} +1 -1
- package/dist/cdn/{R6PSD7B7.js → TTCTP5YC.js} +1 -1
- package/dist/cdn/{XYKNQZFD.js → TUH6JU6E.js} +1 -1
- package/dist/cdn/UIIICG5Q.js +2 -0
- package/dist/cdn/{B6AQ5E4L.js → UTFNFNBS.js} +1 -1
- package/dist/cdn/{6MUSVNGM.js → V43EVP67.js} +1 -1
- package/dist/cdn/{GTMWPA5J.js → VGWNGBJQ.js} +1 -1
- package/dist/cdn/{VMAJ5W4A.js → VGXLTGQQ.js} +1 -1
- package/dist/cdn/{QITSU7UB.js → VQP74MNM.js} +1 -1
- package/dist/cdn/{OOYDYFQL.js → VTHNATFJ.js} +1 -1
- package/dist/cdn/{2TSZGBRW.js → VUPR4BHS.js} +1 -1
- package/dist/cdn/{JQFKP5BO.js → VWQJZLW7.js} +1 -1
- package/dist/cdn/{DLWGXLTP.js → VY7Q2Q5C.js} +1 -1
- package/dist/cdn/{3H63O632.js → WHY5MR3Z.js} +1 -1
- package/dist/cdn/{DGBFUPHF.js → WKWLOFTY.js} +1 -1
- package/dist/cdn/{3VYTY4CH.js → XA6MMB3P.js} +1 -1
- package/dist/cdn/{BUTXND3Y.js → XOIFXWHH.js} +1 -1
- package/dist/cdn/{5GIBJIKZ.js → XX3QRZBV.js} +1 -1
- package/dist/cdn/{ODSBX4UB.js → Y2IS52FA.js} +1 -1
- package/dist/cdn/{4ONBF7EX.js → YQN5ORQV.js} +1 -1
- package/dist/cdn/{KBCK3TOS.js → ZZAZBS4T.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/index.js +1583 -1574
- package/dist/chunks/serial-chart-data.js +150 -150
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +1 -1
- 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/A43B7S7N.js +0 -2
- package/dist/cdn/LA5QA6QE.js +0 -2
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { substitute as k } from "@arcgis/core/intl.js";
|
|
3
|
-
import { cloneDeep as
|
|
3
|
+
import { cloneDeep as le, memoize as oe, isEmpty as Be } from "lodash-es";
|
|
4
4
|
import "@arcgis/toolkit/type";
|
|
5
|
-
import { w as Ce, a as v, d as be, t as I, m as E, g as Ae, W as D, n as ve, i as
|
|
6
|
-
import { R as
|
|
7
|
-
import { U as Le, cH as qe, o as X, df as
|
|
5
|
+
import { w as Ce, a as v, d as be, t as I, m as E, g as Ae, W as D, n as ve, i as Q } from "./series-types.js";
|
|
6
|
+
import { R as ue, f as Ie } from "./rest-js-object-literals.js";
|
|
7
|
+
import { U as Le, cH as qe, o as X, df as w, j as Ne, cF as Ve, bL as we, bX as Oe, am as ke, q as N, p as De, dm as Re, cB as Me, dn as te, cc as Pe, c8 as Ee, k as de, Z as Y, cY as O, dk as $e, di as $, bK as K, bQ as ce, bR as ye, br as Ue, dh as G, l as We, b as U, bO as Xe, b3 as Ye, b4 as Ke, a_ as je, b6 as He, bN as ie, aL as Qe, aK as se, aM as ze } from "./index.js";
|
|
8
8
|
import "@arcgis/toolkit/intl";
|
|
9
9
|
import "luxon";
|
|
10
10
|
import "d3-array";
|
|
@@ -15,14 +15,14 @@ import "@arcgis/core/time/TimeExtent.js";
|
|
|
15
15
|
import "@arcgis/core/core/promiseUtils.js";
|
|
16
16
|
import "@arcgis/core/request.js";
|
|
17
17
|
import "./runtime.js";
|
|
18
|
-
import { h as
|
|
18
|
+
import { h as ge, l as L, o as _e, p as Ge, j as B, k as C, m as ae } from "./index4.js";
|
|
19
19
|
import "@arcgis/toolkit/dom";
|
|
20
|
-
import { s as q, u as R, d as
|
|
21
|
-
import { S as
|
|
20
|
+
import { s as q, u as R, d as me, e as Je, f as Ze, g as pe, h as et, j as re } from "./utils.js";
|
|
21
|
+
import { S as z } from "./common.js";
|
|
22
22
|
import "@esri/arcgis-html-sanitizer";
|
|
23
|
-
import { b as P, c as
|
|
23
|
+
import { b as P, c as fe, g as J, e as ne, f as tt } from "./data.js";
|
|
24
24
|
import { b as it, g as st } from "./series-length.js";
|
|
25
|
-
import { g as
|
|
25
|
+
import { g as Z } from "./utils2.js";
|
|
26
26
|
import "@arcgis/core/Graphic.js";
|
|
27
27
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
28
28
|
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
@@ -40,7 +40,7 @@ function oi(t, e) {
|
|
|
40
40
|
let i;
|
|
41
41
|
return e !== void 0 && (i = { ...e }, i.legend !== void 0 && (i.legend.visible = t)), i;
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function ui(t, e) {
|
|
44
44
|
let i;
|
|
45
45
|
return e !== void 0 && (i = { ...e, rotated: t }), i;
|
|
46
46
|
}
|
|
@@ -48,26 +48,26 @@ function rt(t) {
|
|
|
48
48
|
let e;
|
|
49
49
|
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;
|
|
50
50
|
}
|
|
51
|
-
function
|
|
52
|
-
return e != null ||
|
|
51
|
+
function di(t, e) {
|
|
52
|
+
return e != null || ge(t);
|
|
53
53
|
}
|
|
54
54
|
async function nt(t) {
|
|
55
55
|
const { queryObject: e, chartConfig: i, options: r, splitByField: a } = t;
|
|
56
56
|
let s = [], n;
|
|
57
|
-
const l =
|
|
57
|
+
const l = le(i), o = l.series[0], u = Oe({
|
|
58
58
|
queryObject: e,
|
|
59
59
|
chartConfig: l,
|
|
60
60
|
runtimeDataFilters: r?.runtimeDataFilters,
|
|
61
61
|
ignoreViewExtent: r?.ignoreViewExtent
|
|
62
62
|
});
|
|
63
|
-
if (
|
|
63
|
+
if (u.outStatistics?.[0]?.outStatisticFieldName && (u.outStatistics[0].outStatisticFieldName = ke.outStatistics.outStatisticFieldName), N(o) && De({
|
|
64
64
|
xAxisValueFormatType: Re(l),
|
|
65
65
|
setTimeBinningInfoWhenNotProvided: r?.setTimeBinningInfoWhenNotProvided,
|
|
66
66
|
seriesConfig: o
|
|
67
67
|
}) && Me(e)) {
|
|
68
|
-
const { temporalBinning: p, x: c } = o, { uniqueQuery: S } = await
|
|
68
|
+
const { temporalBinning: p, x: c } = o, { uniqueQuery: S } = await te({
|
|
69
69
|
chartConfig: l,
|
|
70
|
-
queryConfig:
|
|
70
|
+
queryConfig: u,
|
|
71
71
|
queryObject: e,
|
|
72
72
|
options: r
|
|
73
73
|
});
|
|
@@ -81,16 +81,16 @@ async function nt(t) {
|
|
|
81
81
|
new Set(
|
|
82
82
|
n.flatMap((f) => {
|
|
83
83
|
const { stackedAttributes: g } = f;
|
|
84
|
-
let
|
|
85
|
-
return g && (
|
|
84
|
+
let d = [];
|
|
85
|
+
return g && (d = g.map((m) => m[a]).filter((m) => m !== void 0)), d;
|
|
86
86
|
})
|
|
87
87
|
).values()
|
|
88
88
|
);
|
|
89
89
|
} else {
|
|
90
|
-
const { uniqueQuery: p } = await
|
|
90
|
+
const { uniqueQuery: p } = await te({
|
|
91
91
|
chartConfig: l,
|
|
92
92
|
queryObject: e,
|
|
93
|
-
queryConfig:
|
|
93
|
+
queryConfig: u,
|
|
94
94
|
options: r
|
|
95
95
|
});
|
|
96
96
|
n = await Ee({
|
|
@@ -135,7 +135,7 @@ function ot(t) {
|
|
|
135
135
|
}), a.set(s, l);
|
|
136
136
|
}), a;
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function ut(t) {
|
|
139
139
|
const { chartConfig: e, missingValue: i, splitByField: r, seriesTemplate: a } = t, s = JSON.parse(
|
|
140
140
|
JSON.stringify({
|
|
141
141
|
...e.series[0],
|
|
@@ -152,36 +152,36 @@ function dt(t) {
|
|
|
152
152
|
}
|
|
153
153
|
return s;
|
|
154
154
|
}
|
|
155
|
-
async function
|
|
155
|
+
async function dt(t) {
|
|
156
156
|
const { updateSplitBySeries: e, config: i, options: r, queryObject: a } = t, { seriesTemplate: s } = e ?? {};
|
|
157
157
|
let n;
|
|
158
158
|
if (e !== void 0 && i !== void 0 && (i.series.length > 0 || s !== void 0) && e.addMissingSeries) {
|
|
159
159
|
const l = i.series.length === 0;
|
|
160
160
|
i.series.length === 0 && s !== void 0 && i.series.push(s);
|
|
161
161
|
const o = X(i.series);
|
|
162
|
-
if ((o ===
|
|
163
|
-
const
|
|
162
|
+
if ((o === w.BoxPlotMonoFieldAndSplitBy || o === w.BoxPlotMultiFieldsAndSplitBy || o === w.BoxPlotMonoFieldAndCategoryAndSplitBy || o === w.BarAndLineSplitBy || o === w.BarAndLineSplitByNoAggregation) && a !== void 0) {
|
|
163
|
+
const u = Ne(i.series[0]?.query?.where), p = Ve(a);
|
|
164
164
|
await p.load();
|
|
165
|
-
const c = p.getField(
|
|
165
|
+
const c = p.getField(u)?.toJSON(), S = we(c), f = await nt({
|
|
166
166
|
queryObject: a,
|
|
167
167
|
chartConfig: i,
|
|
168
|
-
splitByField:
|
|
168
|
+
splitByField: u,
|
|
169
169
|
options: r
|
|
170
170
|
}), { allValues: g } = f;
|
|
171
171
|
if ({ preFetchedQueryResponse: n } = f, g.length > 0) {
|
|
172
|
-
const
|
|
172
|
+
const d = lt(i, S), m = ot({
|
|
173
173
|
allValues: g,
|
|
174
|
-
configUniqueValuesPerSeriesType:
|
|
174
|
+
configUniqueValuesPerSeriesType: d,
|
|
175
175
|
initialConfigWasEmpty: l
|
|
176
176
|
});
|
|
177
177
|
Array.from(m.keys()).forEach((h) => {
|
|
178
178
|
(m.get(h) ?? []).forEach((y) => {
|
|
179
179
|
i.series.push(
|
|
180
|
-
|
|
180
|
+
ut({
|
|
181
181
|
chartConfig: i,
|
|
182
182
|
seriesTemplate: s,
|
|
183
183
|
missingValue: y,
|
|
184
|
-
splitByField:
|
|
184
|
+
splitByField: u
|
|
185
185
|
})
|
|
186
186
|
);
|
|
187
187
|
}), l && i.series.shift();
|
|
@@ -192,17 +192,17 @@ async function ut(t) {
|
|
|
192
192
|
return n;
|
|
193
193
|
}
|
|
194
194
|
function ct(t, e) {
|
|
195
|
-
e && !
|
|
195
|
+
e && !ge(e) && (e = qe({ chartConfig: e, queryObject: t }));
|
|
196
196
|
}
|
|
197
197
|
async function ci(t) {
|
|
198
198
|
const { configToAlter: e, layer: i, addMissingSeries: r, updateSplitBySeries: a, chartContainer: s, queryObject: n, options: l } = t;
|
|
199
|
-
let o = e,
|
|
200
|
-
return o && (ct(i, o), o = await at(o, i), r && (
|
|
199
|
+
let o = e, u;
|
|
200
|
+
return o && (ct(i, o), o = await at(o, i), r && (u = await dt({
|
|
201
201
|
updateSplitBySeries: a,
|
|
202
202
|
config: o,
|
|
203
203
|
options: l,
|
|
204
204
|
queryObject: n
|
|
205
|
-
})), o = Le(o, s)), { alteredConfig: o, preFetchedQueryResponse:
|
|
205
|
+
})), o = Le(o, s)), { alteredConfig: o, preFetchedQueryResponse: u };
|
|
206
206
|
}
|
|
207
207
|
const yt = (t) => {
|
|
208
208
|
let e;
|
|
@@ -224,7 +224,7 @@ const yt = (t) => {
|
|
|
224
224
|
let e;
|
|
225
225
|
const i = t.series[0];
|
|
226
226
|
return N(i) && (e = i.temporalBinning?.nullPolicy), e;
|
|
227
|
-
},
|
|
227
|
+
}, Se = (t, e) => {
|
|
228
228
|
e?.series?.forEach((i) => {
|
|
229
229
|
N(i) && (i.temporalBinning ??= {}, i.temporalBinning.size = t);
|
|
230
230
|
}), q({ config: e, value: null, axisIndex: 1, isMax: !1 }), q({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
@@ -245,7 +245,7 @@ const yt = (t) => {
|
|
|
245
245
|
N(i) && (i.temporalBinning ??= {}, i.temporalBinning.trimIncompleteTimeInterval = t);
|
|
246
246
|
}), q({ config: e, value: null, axisIndex: 1, isMax: !1 }), q({ config: e, value: null, axisIndex: 1, isMax: !0 });
|
|
247
247
|
}, pi = (t) => {
|
|
248
|
-
|
|
248
|
+
Se(0, t);
|
|
249
249
|
}, fi = (t) => t.hideEmptyRowsAndColumns, Si = (t, e) => {
|
|
250
250
|
t.hideEmptyRowsAndColumns = e;
|
|
251
251
|
}, Fi = (t, e) => {
|
|
@@ -255,10 +255,10 @@ const yt = (t) => {
|
|
|
255
255
|
const i = t.series[0];
|
|
256
256
|
i.gradientRules = e;
|
|
257
257
|
}, xi = (t) => t.series[0].gradientRules, Bi = (t) => {
|
|
258
|
-
const { yField: e, config: i, layerInfo: r } = t, { layerFieldsInfo: a } = r, s =
|
|
258
|
+
const { yField: e, config: i, layerInfo: r } = t, { layerFieldsInfo: a } = r, s = Z(1, i), n = Ft(i), l = Y(i), o = i.series[0];
|
|
259
259
|
if (typeof e == "string" && n !== e && o && (o.y = e, rt(i), n === s || l)) {
|
|
260
|
-
const
|
|
261
|
-
R(i, 1,
|
|
260
|
+
const u = O(a, e);
|
|
261
|
+
R(i, 1, u);
|
|
262
262
|
}
|
|
263
263
|
}, Ft = (t) => t.series[0].y ?? "", Ci = (t) => {
|
|
264
264
|
const { binning: e, config: i, commonStrings: r } = t, a = i.series[0];
|
|
@@ -274,21 +274,21 @@ const yt = (t) => {
|
|
|
274
274
|
}
|
|
275
275
|
}, vi = (t) => t.series[0].yTemporalBinning, Tt = (t, e) => {
|
|
276
276
|
e.orderOptions ??= {};
|
|
277
|
-
const i = e.axes?.[0]?.valueFormat?.type === "category" ? I.Category : I.YValue, r =
|
|
277
|
+
const i = e.axes?.[0]?.valueFormat?.type === "category" ? I.Category : I.YValue, r = _(e)[0], a = e.axes?.[1]?.valueFormat?.type === "category" ? I.Category : I.YValue, s = _(e)[1], n = {
|
|
278
278
|
...e.orderOptions.data ?? {},
|
|
279
279
|
orderType: I.MultiAxes
|
|
280
280
|
};
|
|
281
|
-
r ===
|
|
281
|
+
r === z.customSort && i === I.Category && (n.orderByX = [...t]), s === z.customSort && a === I.Category && (n.orderByY = [...t]), Object.keys(n).length > 1 && (e.orderOptions.data = n);
|
|
282
282
|
}, Ii = (t, e) => {
|
|
283
283
|
const i = e.series[0];
|
|
284
284
|
i.gridLine && (i.gridLine.width = t);
|
|
285
285
|
}, Li = (t) => t.series[0].gridLine?.width, qi = (t, e) => {
|
|
286
286
|
const i = e.series[0], r = t?.length === 4 && t.every((a) => typeof a == "number");
|
|
287
287
|
i.gridLine && r && (i.gridLine.color = t);
|
|
288
|
-
}, Ni = (t) => t.series[0].gridLine?.color,
|
|
288
|
+
}, Ni = (t) => t.series[0].gridLine?.color, Vi = (t, e) => {
|
|
289
289
|
const i = e.legend;
|
|
290
290
|
i && (i.position = t);
|
|
291
|
-
},
|
|
291
|
+
}, wi = (t) => t.legend?.position ?? be.Bottom, Oi = (t) => t.series[0].query?.outStatistics?.[0]?.onStatisticField, ki = (t, e) => {
|
|
292
292
|
const i = e.series[0].query?.outStatistics?.[0];
|
|
293
293
|
i ? (i.onStatisticField = t, i.outStatisticFieldName = `${i.statisticType}_${t}`) : e.series[0].query = {
|
|
294
294
|
outStatistics: [
|
|
@@ -344,13 +344,13 @@ function Zi(t) {
|
|
|
344
344
|
function M(t) {
|
|
345
345
|
const { seriesIndex: e, xAxisField: i, aggregationType: r, config: a, layerInfo: s, commonStrings: n } = t, l = K(s?.layer).idField;
|
|
346
346
|
let o;
|
|
347
|
-
const
|
|
347
|
+
const u = a.series[e ?? 0];
|
|
348
348
|
let p = !1, c = !1, S = !1;
|
|
349
|
-
if (
|
|
350
|
-
const
|
|
351
|
-
p =
|
|
349
|
+
if (u === void 0) {
|
|
350
|
+
const d = a.series;
|
|
351
|
+
p = d.slice(0, e).every((m) => B(m)), c = d.slice(0, e).every((m) => C(m)), S = d.slice(0, e).every((m) => ae(m));
|
|
352
352
|
} else
|
|
353
|
-
p = B(
|
|
353
|
+
p = B(u), c = C(u), S = ae(u);
|
|
354
354
|
p ? o = Ye({
|
|
355
355
|
commonStrings: n,
|
|
356
356
|
seriesIndex: e,
|
|
@@ -378,20 +378,20 @@ function M(t) {
|
|
|
378
378
|
if (g.query = {
|
|
379
379
|
groupByFieldsForStatistics: [i]
|
|
380
380
|
}, r !== v.NoAggregation && l !== void 0) {
|
|
381
|
-
const
|
|
382
|
-
g.y =
|
|
381
|
+
const d = `${r}_${l}_0`.toUpperCase();
|
|
382
|
+
g.y = d, g.query.outStatistics = [
|
|
383
383
|
{
|
|
384
384
|
statisticType: r,
|
|
385
385
|
onStatisticField: l,
|
|
386
|
-
outStatisticFieldName:
|
|
386
|
+
outStatisticFieldName: d
|
|
387
387
|
}
|
|
388
388
|
];
|
|
389
389
|
}
|
|
390
390
|
if (B(g) || C(g) || L(g) && a.series[0]?.binTemporalData) {
|
|
391
|
-
let
|
|
392
|
-
if (a?.series?.[0] !== void 0 && (
|
|
391
|
+
let d;
|
|
392
|
+
if (a?.series?.[0] !== void 0 && (d = X(a.series)), d !== w.BarAndLineNoAggregation && d !== w.BarAndLineSplitByNoAggregation) {
|
|
393
393
|
let m = gt(a);
|
|
394
|
-
m ===
|
|
394
|
+
m === Q.Quarter && (m = Q.Month), g.temporalBinning = {
|
|
395
395
|
size: yt(a),
|
|
396
396
|
unit: m,
|
|
397
397
|
timeAggregationType: mt(a),
|
|
@@ -400,12 +400,12 @@ function M(t) {
|
|
|
400
400
|
};
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
|
-
return
|
|
403
|
+
return le(g);
|
|
404
404
|
}
|
|
405
|
-
function
|
|
406
|
-
const { layerFieldsInfo: r } = e, { idField: a, isTraditionalTypeOID: s } = K(e.layer), n = P(t), l =
|
|
405
|
+
function Fe(t, e, i) {
|
|
406
|
+
const { layerFieldsInfo: r } = e, { idField: a, isTraditionalTypeOID: s } = K(e.layer), n = P(t), l = ee(t), o = he(t), u = W(t), p = s && (l.length === 0 || l.includes(a)), c = Ue(o, i), S = p ? "" : l.map((y) => O(r ?? [], y)).join(", "), f = O(r ?? [], n), g = O(r ?? [], u), d = t.series.some((y) => L(y)), m = d ? "category" : "xAxisField", h = f;
|
|
407
407
|
let T = "";
|
|
408
|
-
if (
|
|
408
|
+
if (fe({
|
|
409
409
|
fieldName: n,
|
|
410
410
|
numericFields: l,
|
|
411
411
|
fieldList: r
|
|
@@ -416,14 +416,14 @@ function Se(t, e, i) {
|
|
|
416
416
|
});
|
|
417
417
|
else if (o === v.NoAggregation) {
|
|
418
418
|
const y = p ? a : S;
|
|
419
|
-
if (
|
|
420
|
-
const F =
|
|
419
|
+
if (u === "") {
|
|
420
|
+
const F = d ? "aggrTypeCategory" : "aggrTypeXAxisField";
|
|
421
421
|
T = k(i.titleLabels[F], {
|
|
422
422
|
aggregationType: y,
|
|
423
423
|
[m]: h
|
|
424
424
|
});
|
|
425
425
|
} else {
|
|
426
|
-
const F =
|
|
426
|
+
const F = d ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
|
|
427
427
|
T = k(i.titleLabels[F], {
|
|
428
428
|
aggregationType: y,
|
|
429
429
|
[m]: h,
|
|
@@ -431,22 +431,22 @@ function Se(t, e, i) {
|
|
|
431
431
|
});
|
|
432
432
|
}
|
|
433
433
|
} else if (o === v.Count)
|
|
434
|
-
if (
|
|
435
|
-
const y =
|
|
434
|
+
if (u === "") {
|
|
435
|
+
const y = d ? "aggrTypeCategory" : "aggrTypeXAxisField";
|
|
436
436
|
T = k(i.titleLabels[y], {
|
|
437
437
|
aggregationType: c,
|
|
438
438
|
[m]: h
|
|
439
439
|
});
|
|
440
440
|
} else {
|
|
441
|
-
const y =
|
|
441
|
+
const y = d ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
|
|
442
442
|
T = k(i.titleLabels[y], {
|
|
443
443
|
aggregationType: c,
|
|
444
444
|
[m]: h,
|
|
445
445
|
splitByField: g
|
|
446
446
|
});
|
|
447
447
|
}
|
|
448
|
-
else if (
|
|
449
|
-
const y =
|
|
448
|
+
else if (u !== "") {
|
|
449
|
+
const y = d ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
|
|
450
450
|
T = k(i.titleLabels[y], {
|
|
451
451
|
aggregationType: c,
|
|
452
452
|
aggregationField: S,
|
|
@@ -454,7 +454,7 @@ function Se(t, e, i) {
|
|
|
454
454
|
splitByField: g
|
|
455
455
|
});
|
|
456
456
|
} else if (l.length > 0) {
|
|
457
|
-
const y =
|
|
457
|
+
const y = d ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
|
|
458
458
|
T = k(i.titleLabels[y], {
|
|
459
459
|
aggregationType: c,
|
|
460
460
|
aggregationFields: S,
|
|
@@ -463,17 +463,17 @@ function Se(t, e, i) {
|
|
|
463
463
|
}
|
|
464
464
|
return T;
|
|
465
465
|
}
|
|
466
|
-
const
|
|
466
|
+
const Te = (t) => de({
|
|
467
467
|
where: t.query?.where,
|
|
468
468
|
normalize: !1,
|
|
469
469
|
escape: !1
|
|
470
|
-
}) ?? "",
|
|
470
|
+
}) ?? "", he = (t) => t?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? v.NoAggregation, W = oe(
|
|
471
471
|
(t) => {
|
|
472
472
|
const e = t?.series?.[0]?.query?.where?.split("=")[0].trim() ?? "";
|
|
473
473
|
return We(t?.series?.[0]?.query?.where) ? "" : e;
|
|
474
474
|
},
|
|
475
475
|
(t) => t?.series?.[0]?.query?.where
|
|
476
|
-
),
|
|
476
|
+
), ee = oe(
|
|
477
477
|
// without memoizing, the worst case efficiency is O(series.length), best case is O(1)
|
|
478
478
|
// with memoizing, the worst case efficiency for repeated calls becomes O(1)
|
|
479
479
|
(t) => {
|
|
@@ -496,20 +496,20 @@ function xt(t) {
|
|
|
496
496
|
const { numericFields: e, aggregationType: i, config: r, layerInfo: a } = t;
|
|
497
497
|
let s = !1;
|
|
498
498
|
i === v.Count ? s = !0 : i === v.NoAggregation && (s = e.every((o) => {
|
|
499
|
-
const
|
|
500
|
-
return
|
|
501
|
-
})),
|
|
499
|
+
const u = a.layerFieldsInfo.find((p) => p.name === o);
|
|
500
|
+
return u !== void 0 ? ie(u) : !1;
|
|
501
|
+
})), re(r, 1, s);
|
|
502
502
|
const n = r.series.some((o) => B(o)), l = r.series.some((o) => C(o));
|
|
503
503
|
if (n || l) {
|
|
504
|
-
const o = P(r),
|
|
505
|
-
|
|
504
|
+
const o = P(r), u = a.layerFieldsInfo.find((c) => c.name === o), p = u !== void 0 && ie(u);
|
|
505
|
+
re(r, 0, p);
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
|
-
const
|
|
508
|
+
const _ = (t) => {
|
|
509
509
|
let e;
|
|
510
|
-
if (
|
|
510
|
+
if (G(t)) {
|
|
511
511
|
const i = t.orderOptions?.data?.orderByX ?? [""], r = t.orderOptions?.data?.orderByY ?? [""], a = t.axes?.[0]?.valueFormat?.type === "category" ? I.Category : I.YValue, s = t.axes?.[1]?.valueFormat?.type === "category" ? I.Category : I.YValue;
|
|
512
|
-
e = [
|
|
512
|
+
e = [ne(i, a), ne(r, s)];
|
|
513
513
|
} else {
|
|
514
514
|
const i = t.orderOptions?.data?.orderType ?? I.Category, r = t.orderOptions?.data && "orderBy" in t.orderOptions.data ? t.orderOptions.data.orderBy : Ae.Ascending;
|
|
515
515
|
e = [tt(r, i)];
|
|
@@ -519,14 +519,14 @@ const z = (t) => {
|
|
|
519
519
|
function Bt(t) {
|
|
520
520
|
const { xAxisField: e, numericFields: i, aggregationType: r, config: a, layerInfo: s, commonStrings: n } = t, { layerFieldsInfo: l } = s;
|
|
521
521
|
let o = !1;
|
|
522
|
-
const
|
|
522
|
+
const u = M({
|
|
523
523
|
config: a,
|
|
524
524
|
xAxisField: e,
|
|
525
525
|
aggregationType: r,
|
|
526
526
|
layerInfo: s,
|
|
527
527
|
seriesIndex: 0,
|
|
528
528
|
commonStrings: n
|
|
529
|
-
}), p =
|
|
529
|
+
}), p = J({
|
|
530
530
|
config: a,
|
|
531
531
|
xAxisField: e,
|
|
532
532
|
numericFields: i,
|
|
@@ -534,7 +534,7 @@ function Bt(t) {
|
|
|
534
534
|
layer: s.layer,
|
|
535
535
|
fieldList: l
|
|
536
536
|
}).name, c = {
|
|
537
|
-
...
|
|
537
|
+
...u,
|
|
538
538
|
id: `series_${Date.now()}`,
|
|
539
539
|
name: n.axisLabels.values,
|
|
540
540
|
x: U,
|
|
@@ -548,28 +548,28 @@ function Bt(t) {
|
|
|
548
548
|
});
|
|
549
549
|
c.query = { outStatistics: S };
|
|
550
550
|
const f = a.series[0];
|
|
551
|
-
return f !== void 0 && (c.id = f.id, a.colorMatch || (L(f) && L(c) ? c.fillSymbol = f.fillSymbol : (B(c) && B(f) || C(c) && C(f)) && (c.lineSymbol = f.lineSymbol, c.markerSymbol = f.markerSymbol), o = !0), c.id = f.id, f.name !==
|
|
551
|
+
return f !== void 0 && (c.id = f.id, a.colorMatch || (L(f) && L(c) ? c.fillSymbol = f.fillSymbol : (B(c) && B(f) || C(c) && C(f)) && (c.lineSymbol = f.lineSymbol, c.markerSymbol = f.markerSymbol), o = !0), c.id = f.id, f.name !== u.name && (c.name = f.name)), a.series.length === 1 && !a.colorMatch && (L(c) ? c.fillSymbol = a.series[0].fillSymbol : (B(c) || C(c)) && (c.lineSymbol = a.series[0].lineSymbol, c.markerSymbol = a.series[0].markerSymbol), o = !0), a.colorMatch = !o, [c];
|
|
552
552
|
}
|
|
553
|
-
function
|
|
554
|
-
const { xAxisField: e, numericFields: i, aggregationType: r, config: a, layerInfo: s, commonStrings: n } = t, { layerFieldsInfo: l } = s, o = K(s.layer).idField,
|
|
553
|
+
function xe(t) {
|
|
554
|
+
const { xAxisField: e, numericFields: i, aggregationType: r, config: a, layerInfo: s, commonStrings: n } = t, { layerFieldsInfo: l } = s, o = K(s.layer).idField, u = [];
|
|
555
555
|
let p = !1;
|
|
556
|
-
for (let
|
|
556
|
+
for (let d = 0; d < i.length; d += 1) {
|
|
557
557
|
const m = M({
|
|
558
558
|
config: a,
|
|
559
559
|
xAxisField: e,
|
|
560
560
|
aggregationType: r,
|
|
561
561
|
layerInfo: s,
|
|
562
|
-
seriesIndex:
|
|
562
|
+
seriesIndex: d,
|
|
563
563
|
commonStrings: n
|
|
564
|
-
}), h =
|
|
564
|
+
}), h = J({
|
|
565
565
|
config: a,
|
|
566
566
|
xAxisField: e,
|
|
567
567
|
numericFields: i,
|
|
568
568
|
aggregationType: r,
|
|
569
569
|
layer: s.layer,
|
|
570
|
-
numericFieldIndex:
|
|
570
|
+
numericFieldIndex: d,
|
|
571
571
|
fieldList: l
|
|
572
|
-
}).name, T = i[
|
|
572
|
+
}).name, T = i[d];
|
|
573
573
|
let y = {
|
|
574
574
|
...m,
|
|
575
575
|
query: {
|
|
@@ -591,42 +591,42 @@ function he(t) {
|
|
|
591
591
|
}
|
|
592
592
|
]) : delete y.query.outStatistics), y.y = F;
|
|
593
593
|
const b = a.series.find(
|
|
594
|
-
(
|
|
594
|
+
(V) => V.query?.outStatistics?.[0]?.onStatisticField === T && V.query.where === void 0
|
|
595
595
|
);
|
|
596
596
|
if (b !== void 0 && typeof b.y == "string" && b.y.trim() !== "") {
|
|
597
597
|
a.colorMatch || (L(y) && L(b) ? y.fillSymbol = b.fillSymbol : (B(y) && B(b) || C(y) && C(b)) && (y.lineSymbol = b.lineSymbol, y.markerSymbol = b.markerSymbol), p = !0);
|
|
598
|
-
const
|
|
598
|
+
const V = M({
|
|
599
599
|
config: a,
|
|
600
600
|
xAxisField: e,
|
|
601
601
|
aggregationType: r,
|
|
602
602
|
layerInfo: s,
|
|
603
|
-
seriesIndex:
|
|
603
|
+
seriesIndex: d,
|
|
604
604
|
commonStrings: n
|
|
605
605
|
});
|
|
606
|
-
y.id = b.id, b.id !==
|
|
606
|
+
y.id = b.id, b.id !== V.id && b.name !== V.name && (y.id = b.id, y.name = b.name);
|
|
607
607
|
}
|
|
608
|
-
|
|
608
|
+
u.push(y);
|
|
609
609
|
}
|
|
610
|
-
const c =
|
|
611
|
-
(
|
|
612
|
-
), f = a.series.filter((
|
|
613
|
-
(
|
|
610
|
+
const c = u.filter((d) => L(d)), S = u.filter(
|
|
611
|
+
(d) => B(d) || C(d)
|
|
612
|
+
), f = a.series.filter((d) => L(d)), g = a.series.filter(
|
|
613
|
+
(d) => B(d) || C(d)
|
|
614
614
|
);
|
|
615
|
-
return f.length === 1 && c.length === 1 && !a.colorMatch && (L(f[0]) && L(c[0]) && (c[0].fillSymbol = f[0].fillSymbol), p = !0), g.length === 1 && S.length === 1 && !a.colorMatch && ((B(g[0]) && B(S[0]) || C(g[0]) && C(S[0])) && (S[0].lineSymbol = g[0].lineSymbol, S[0].markerSymbol = g[0].markerSymbol), p = !0), a.colorMatch = !p,
|
|
615
|
+
return f.length === 1 && c.length === 1 && !a.colorMatch && (L(f[0]) && L(c[0]) && (c[0].fillSymbol = f[0].fillSymbol), p = !0), g.length === 1 && S.length === 1 && !a.colorMatch && ((B(g[0]) && B(S[0]) || C(g[0]) && C(S[0])) && (S[0].lineSymbol = g[0].lineSymbol, S[0].markerSymbol = g[0].markerSymbol), p = !0), a.colorMatch = !p, u;
|
|
616
616
|
}
|
|
617
617
|
async function Ct(t) {
|
|
618
|
-
const { splitByField: e, xAxisField: i, numericFields: r, aggregationType: a, config: s, layerInfo: n, commonStrings: l } = t, { layer: o, layerFieldsInfo:
|
|
618
|
+
const { splitByField: e, xAxisField: i, numericFields: r, aggregationType: a, config: s, layerInfo: n, commonStrings: l } = t, { layer: o, layerFieldsInfo: u } = n, { fetchNullValues: p } = s?.series?.[0]?.query ?? {}, c = i !== U ? i : void 0, { categoriesArray: S, splitByFieldType: f, numericalField: g } = await et({
|
|
619
619
|
config: s,
|
|
620
620
|
layer: o,
|
|
621
|
-
layerFieldsInfo:
|
|
621
|
+
layerFieldsInfo: u,
|
|
622
622
|
xAxisField: c,
|
|
623
623
|
aggregationFields: r,
|
|
624
624
|
splitByField: e,
|
|
625
625
|
fetchNullValues: p
|
|
626
626
|
});
|
|
627
|
-
let
|
|
627
|
+
let d = [], m = !1;
|
|
628
628
|
if (S.length === 0) {
|
|
629
|
-
|
|
629
|
+
d = xe({
|
|
630
630
|
xAxisField: i,
|
|
631
631
|
numericFields: r,
|
|
632
632
|
aggregationType: a,
|
|
@@ -634,11 +634,11 @@ async function Ct(t) {
|
|
|
634
634
|
layerInfo: n,
|
|
635
635
|
commonStrings: l
|
|
636
636
|
});
|
|
637
|
-
for (const h of
|
|
637
|
+
for (const h of d)
|
|
638
638
|
h.query && (h.query.where = `${e}=''`);
|
|
639
639
|
} else
|
|
640
640
|
for (let h = 0; h < S.length; h += 1) {
|
|
641
|
-
const T = S[h], y =
|
|
641
|
+
const T = S[h], y = J({
|
|
642
642
|
config: s,
|
|
643
643
|
xAxisField: i,
|
|
644
644
|
numericFields: r,
|
|
@@ -646,7 +646,7 @@ async function Ct(t) {
|
|
|
646
646
|
layer: n.layer,
|
|
647
647
|
seriesIndex: h,
|
|
648
648
|
splitByField: e,
|
|
649
|
-
fieldList:
|
|
649
|
+
fieldList: u
|
|
650
650
|
}).name, F = M({
|
|
651
651
|
config: s,
|
|
652
652
|
xAxisField: i,
|
|
@@ -657,16 +657,16 @@ async function Ct(t) {
|
|
|
657
657
|
}), b = {
|
|
658
658
|
fieldName: e,
|
|
659
659
|
fieldValueToMatch: T ?? "",
|
|
660
|
-
subtypeInfo:
|
|
660
|
+
subtypeInfo: ce(n.layer),
|
|
661
661
|
fieldList: n.layerFieldsInfo
|
|
662
|
-
},
|
|
662
|
+
}, V = ye(b), j = `${T}`, x = {
|
|
663
663
|
...F,
|
|
664
664
|
id: j,
|
|
665
|
-
name:
|
|
665
|
+
name: V ?? j,
|
|
666
666
|
y,
|
|
667
667
|
query: {
|
|
668
668
|
...F.query,
|
|
669
|
-
where: `${e}=${f ===
|
|
669
|
+
where: `${e}=${f === ue.String && T !== null ? `'${T}'` : T}`,
|
|
670
670
|
outStatistics: a !== v.NoAggregation ? [
|
|
671
671
|
{
|
|
672
672
|
...F.query?.outStatistics?.[0] ?? {},
|
|
@@ -679,25 +679,25 @@ async function Ct(t) {
|
|
|
679
679
|
};
|
|
680
680
|
a === v.NoAggregation && (x.query !== void 0 && (delete x.query.outStatistics, delete x.query.groupByFieldsForStatistics), x.y = g);
|
|
681
681
|
const A = s.series.find(
|
|
682
|
-
(
|
|
682
|
+
(H) => String(Te(H)).trim().replace(/'/gu, "") === j
|
|
683
683
|
);
|
|
684
|
-
A !== void 0 && (s.colorMatch || (L(x) && L(A) ? x.fillSymbol = A.fillSymbol : (B(x) && B(A) || C(x) && C(A)) && (x.lineSymbol = A.lineSymbol, x.markerSymbol = A.markerSymbol), m = !0), (B(x) && B(A) || C(x) && C(A)) && (x.lineSmoothed = A.lineSmoothed), (B(x) && B(A) || C(x) && C(A)) && (x.showArea = A.showArea), x.id = A.id, x.name = A.name),
|
|
684
|
+
A !== void 0 && (s.colorMatch || (L(x) && L(A) ? x.fillSymbol = A.fillSymbol : (B(x) && B(A) || C(x) && C(A)) && (x.lineSymbol = A.lineSymbol, x.markerSymbol = A.markerSymbol), m = !0), (B(x) && B(A) || C(x) && C(A)) && (x.lineSmoothed = A.lineSmoothed), (B(x) && B(A) || C(x) && C(A)) && (x.showArea = A.showArea), x.id = A.id, x.name = A.name), x.query && (x.query.fetchNullValues = s.series.some((H) => H.query?.fetchNullValues)), d.push(x);
|
|
685
685
|
}
|
|
686
|
-
return s.colorMatch = !m,
|
|
686
|
+
return s.colorMatch = !m, d;
|
|
687
687
|
}
|
|
688
688
|
const es = async (t) => {
|
|
689
|
-
const { xAxisField: e, splitByField: i, numericFields: r, aggregationType: a, config: s, layerInfo: n, commonStrings: l } = t, { layerFieldsInfo: o } = n ?? {},
|
|
690
|
-
let g =
|
|
691
|
-
const
|
|
689
|
+
const { xAxisField: e, splitByField: i, numericFields: r, aggregationType: a, config: s, layerInfo: n, commonStrings: l } = t, { layerFieldsInfo: o } = n ?? {}, u = it(s), p = P(s), c = bt(s, n, l), S = At(s, n, l), f = vt(s, n);
|
|
690
|
+
let g = me(s);
|
|
691
|
+
const d = s.series.some((F) => L(F)), m = _e(s.series), h = Ge(s.series), T = G(s), y = {};
|
|
692
692
|
if (T && (y.classBreaksRules = s.series[0]?.classBreaksRules, y.xTemporalBinning = s.series[0]?.xTemporalBinning, y.yTemporalBinning = s.series[0]?.yTemporalBinning), o !== void 0) {
|
|
693
693
|
const F = Xe(o);
|
|
694
|
-
!F.includes(p) && F.includes(e) ? g = Qe() : F.includes(p) && !F.includes(e) && (
|
|
694
|
+
!F.includes(p) && F.includes(e) ? g = Qe() : F.includes(p) && !F.includes(e) && (d ? g = se() : g = ze()), o.find((V) => V.name === e)?.type === ue.String && (g = se()), g !== void 0 && Ze(s, l, g);
|
|
695
695
|
}
|
|
696
|
-
if (
|
|
696
|
+
if (u === 0 && (s.series = [
|
|
697
697
|
M({ config: s, xAxisField: e, aggregationType: a, layerInfo: n, commonStrings: l })
|
|
698
698
|
]), s.series.forEach((F) => {
|
|
699
699
|
F.x = e, F.query !== void 0 && (F.query.groupByFieldsForStatistics = [e]);
|
|
700
|
-
}), i === "" || r.length > 1 ?
|
|
700
|
+
}), i === "" || r.length > 1 ? fe({
|
|
701
701
|
fieldName: e,
|
|
702
702
|
numericFields: r,
|
|
703
703
|
fieldList: o
|
|
@@ -708,7 +708,7 @@ const es = async (t) => {
|
|
|
708
708
|
numericFields: r,
|
|
709
709
|
aggregationType: a,
|
|
710
710
|
commonStrings: l
|
|
711
|
-
}) : s.series =
|
|
711
|
+
}) : s.series = xe({
|
|
712
712
|
config: s,
|
|
713
713
|
layerInfo: n,
|
|
714
714
|
xAxisField: e,
|
|
@@ -728,7 +728,7 @@ const es = async (t) => {
|
|
|
728
728
|
R(s, 0, F);
|
|
729
729
|
}
|
|
730
730
|
if (S) {
|
|
731
|
-
const F =
|
|
731
|
+
const F = pe({
|
|
732
732
|
config: s,
|
|
733
733
|
layerInfo: n,
|
|
734
734
|
commonStrings: l,
|
|
@@ -737,8 +737,8 @@ const es = async (t) => {
|
|
|
737
737
|
});
|
|
738
738
|
R(s, 1, F);
|
|
739
739
|
}
|
|
740
|
-
if (s.title && c && (s.title.content.text =
|
|
741
|
-
q({ config: s, value: null, axisIndex: 0, isMax: !1 }), q({ config: s, value: null, axisIndex: 0, isMax: !0 }),
|
|
740
|
+
if (s.title && c && (s.title.content.text = Fe(s, n, l)), q({ config: s, value: null, axisIndex: 1, isMax: !1 }), q({ config: s, value: null, axisIndex: 1, isMax: !0 }), xt({ numericFields: r, aggregationType: a, config: s, layerInfo: n }), m || h) {
|
|
741
|
+
q({ config: s, value: null, axisIndex: 0, isMax: !1 }), q({ config: s, value: null, axisIndex: 0, isMax: !0 }), Se(0, s);
|
|
742
742
|
const F = g?.type === D.DateAxisFormat ? E.Null : E.Interpolate;
|
|
743
743
|
St(F, s);
|
|
744
744
|
}
|
|
@@ -746,57 +746,57 @@ const es = async (t) => {
|
|
|
746
746
|
}, ts = (t) => {
|
|
747
747
|
const { config: e, seriesIndex: i, layerInfo: r, commonStrings: a } = t, s = e.series?.[i], n = W(e);
|
|
748
748
|
let l;
|
|
749
|
-
if (X(e.series) ===
|
|
749
|
+
if (X(e.series) === w.BarAndLineFromFields)
|
|
750
750
|
l = a.axisLabels.values;
|
|
751
751
|
else if (Be(n)) {
|
|
752
|
-
const
|
|
753
|
-
|
|
752
|
+
const u = s.query?.outStatistics?.[0]?.onStatisticField;
|
|
753
|
+
u !== void 0 && u !== K(r.layer).idField && (l = O(r.layerFieldsInfo, u));
|
|
754
754
|
} else {
|
|
755
|
-
const
|
|
755
|
+
const u = String(Te(s)).trim().replace(/'/gu, ""), p = {
|
|
756
756
|
fieldName: W(e),
|
|
757
|
-
fieldValueToMatch:
|
|
758
|
-
subtypeInfo:
|
|
757
|
+
fieldValueToMatch: u ?? "",
|
|
758
|
+
subtypeInfo: ce(r.layer),
|
|
759
759
|
fieldList: r.layerFieldsInfo
|
|
760
760
|
};
|
|
761
|
-
l =
|
|
761
|
+
l = ye(p) ?? u;
|
|
762
762
|
}
|
|
763
763
|
return l ?? s.id;
|
|
764
764
|
}, is = (t, e) => {
|
|
765
|
-
if (
|
|
765
|
+
if (G(e))
|
|
766
766
|
Tt(t, e);
|
|
767
767
|
else {
|
|
768
768
|
e.orderOptions ??= {};
|
|
769
769
|
const i = e.orderOptions?.data?.orderType;
|
|
770
|
-
|
|
770
|
+
_(e)[0] === z.customSort && i === I.Category && (e.orderOptions.data = {
|
|
771
771
|
orderType: I.Category,
|
|
772
772
|
orderBy: [...t]
|
|
773
773
|
});
|
|
774
774
|
}
|
|
775
775
|
}, ss = async (t, e) => {
|
|
776
|
-
const i = P(t), r =
|
|
776
|
+
const i = P(t), r = me(t)?.type, a = ee(t), s = X(t.series);
|
|
777
777
|
let n = [];
|
|
778
|
-
return r === D.CategoryAxisFormat && (s ===
|
|
778
|
+
return r === D.CategoryAxisFormat && (s === w.BarAndLineFromFields || i === U ? n = a.map((l) => O(e?.layerFieldsInfo, l)) : i.trim() !== "" && i !== U && e !== void 0 && (n = await Je({
|
|
779
779
|
layerInfo: e,
|
|
780
780
|
config: t,
|
|
781
781
|
category: i
|
|
782
782
|
}))), n;
|
|
783
783
|
};
|
|
784
784
|
function bt(t, e, i) {
|
|
785
|
-
const r =
|
|
785
|
+
const r = Fe(t, e, i), a = st(t), s = Y(t);
|
|
786
786
|
return r === a || s;
|
|
787
787
|
}
|
|
788
788
|
function At(t, e, i) {
|
|
789
|
-
const r =
|
|
789
|
+
const r = pe({
|
|
790
790
|
config: t,
|
|
791
791
|
layerInfo: e,
|
|
792
792
|
commonStrings: i,
|
|
793
|
-
numericFields:
|
|
794
|
-
aggregationType:
|
|
795
|
-
}), a =
|
|
793
|
+
numericFields: ee(t),
|
|
794
|
+
aggregationType: he(t)
|
|
795
|
+
}), a = Z(1, t), s = Y(t);
|
|
796
796
|
return r === a || s;
|
|
797
797
|
}
|
|
798
798
|
function vt(t, e) {
|
|
799
|
-
const i = O(e.layerFieldsInfo, P(t)), r =
|
|
799
|
+
const i = O(e.layerFieldsInfo, P(t)), r = Z(0, t), a = Y(t);
|
|
800
800
|
return i === r || a;
|
|
801
801
|
}
|
|
802
802
|
function as(t) {
|
|
@@ -805,7 +805,7 @@ function as(t) {
|
|
|
805
805
|
function rs(t, e) {
|
|
806
806
|
e?.series.forEach((i) => {
|
|
807
807
|
(i?.type === D.BarSeries || i?.type === D.LineSeries) && (i.binTemporalData = t, t ? i.temporalBinning = {
|
|
808
|
-
unit:
|
|
808
|
+
unit: Q.Day,
|
|
809
809
|
size: 0,
|
|
810
810
|
timeAggregationType: ve.Start,
|
|
811
811
|
trimIncompleteTimeInterval: !0,
|
|
@@ -817,13 +817,13 @@ export {
|
|
|
817
817
|
mi as $,
|
|
818
818
|
Di as A,
|
|
819
819
|
Ri as B,
|
|
820
|
-
|
|
821
|
-
|
|
820
|
+
wi as C,
|
|
821
|
+
Vi as D,
|
|
822
822
|
Mi as E,
|
|
823
823
|
ht as F,
|
|
824
824
|
Pi as G,
|
|
825
825
|
Ei as H,
|
|
826
|
-
|
|
826
|
+
_ as I,
|
|
827
827
|
$i as J,
|
|
828
828
|
Ui as K,
|
|
829
829
|
Wi as L,
|
|
@@ -832,17 +832,17 @@ export {
|
|
|
832
832
|
Ji as O,
|
|
833
833
|
Yi as P,
|
|
834
834
|
Ki as Q,
|
|
835
|
-
|
|
836
|
-
|
|
835
|
+
he as R,
|
|
836
|
+
ee as S,
|
|
837
837
|
W as T,
|
|
838
838
|
yt as U,
|
|
839
|
-
|
|
839
|
+
Se as V,
|
|
840
840
|
gt as W,
|
|
841
841
|
yi as X,
|
|
842
842
|
mt as Y,
|
|
843
843
|
gi as Z,
|
|
844
844
|
pt as _,
|
|
845
|
-
|
|
845
|
+
Fe as a,
|
|
846
846
|
ft as a0,
|
|
847
847
|
St as a1,
|
|
848
848
|
pi as a2,
|
|
@@ -852,8 +852,8 @@ export {
|
|
|
852
852
|
rs as a6,
|
|
853
853
|
es as a7,
|
|
854
854
|
ci as a8,
|
|
855
|
-
|
|
856
|
-
|
|
855
|
+
di as a9,
|
|
856
|
+
ui as aa,
|
|
857
857
|
li as ab,
|
|
858
858
|
oi as ac,
|
|
859
859
|
rt as ad,
|