@arcgis/charts-components 5.2.0-next.27 → 5.2.0-next.29
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/{I4NVKM3H.js → 2ODYZG66.js} +1 -1
- package/dist/cdn/{54F7CW76.js → 2SPGX6AF.js} +1 -1
- package/dist/cdn/{6OC4X4GP.js → 2SPURZEN.js} +1 -1
- package/dist/cdn/{JIHUDUXV.js → 35NSJ3NJ.js} +1 -1
- package/dist/cdn/{HOZ4AHQR.js → 3QO6REDF.js} +1 -1
- package/dist/cdn/{3QFCHMXP.js → 3UTF2CB3.js} +1 -1
- package/dist/cdn/{H4VTKKBN.js → 3YN4EKSJ.js} +1 -1
- package/dist/cdn/{SBP4RBXK.js → 4BEGCEGA.js} +1 -1
- package/dist/cdn/{A3DHDZLR.js → 4P7URPRQ.js} +1 -1
- package/dist/cdn/{MMPHPV2C.js → 5XCU5SR2.js} +1 -1
- package/dist/cdn/{HYDDSP4M.js → 6ANVHVX4.js} +1 -1
- package/dist/cdn/{VQFCYPDR.js → 6CB5R4QQ.js} +1 -1
- package/dist/cdn/{CEBE6KZ5.js → 6GV2QPKV.js} +1 -1
- package/dist/cdn/{3HT2XHTE.js → 6OCDFMFB.js} +1 -1
- package/dist/cdn/{E4OZ432W.js → 6VK54DG5.js} +1 -1
- package/dist/cdn/{LLICYFCD.js → 6XIDALQU.js} +1 -1
- package/dist/cdn/{DEN7277X.js → 7VQXBQMZ.js} +1 -1
- package/dist/cdn/{WINZ53K3.js → 7Z7NOIH2.js} +1 -1
- package/dist/cdn/{YFYTXRLW.js → ADYDCO3M.js} +1 -1
- package/dist/cdn/{OZEARYZA.js → AICTKGE3.js} +1 -1
- package/dist/cdn/{F5NJPXUK.js → AXRHJ55P.js} +1 -1
- package/dist/cdn/BJBNELDD.js +3 -0
- package/dist/cdn/{OPMJTZOV.js → BKU72IQC.js} +1 -1
- package/dist/cdn/{FVGXWZBY.js → BQXXD2HU.js} +1 -1
- package/dist/cdn/{PA5GXXDY.js → BZFGE4LO.js} +1 -1
- package/dist/cdn/{POPYMWVR.js → C4TQOUPO.js} +1 -1
- package/dist/cdn/{CTTLJGLV.js → CLN32L2L.js} +1 -1
- package/dist/cdn/{U35HGES6.js → DAF2U7TN.js} +1 -1
- package/dist/cdn/{RMF3UYFS.js → DRFJC64L.js} +1 -1
- package/dist/cdn/{D2LXXBP5.js → DVAQXOL6.js} +1 -1
- package/dist/cdn/{S44GNLAE.js → EXQXLQRA.js} +1 -1
- package/dist/cdn/{5LVCC5LO.js → G5EGTXMY.js} +1 -1
- package/dist/cdn/{3M2I2DRI.js → GCRQHIGQ.js} +1 -1
- package/dist/cdn/{K473JQIX.js → HBS6O3P3.js} +1 -1
- package/dist/cdn/{ICFXSFV6.js → HIW5WRHR.js} +1 -1
- package/dist/cdn/{K2H47DLO.js → IWMWJN7M.js} +1 -1
- package/dist/cdn/{6WZLNZJI.js → JBR6IJMK.js} +1 -1
- package/dist/cdn/{FAOLLBXF.js → JIV6BQKG.js} +1 -1
- package/dist/cdn/{JPNGKMXS.js → K27GKXGP.js} +1 -1
- package/dist/cdn/{I4CGHGFK.js → KFPJI52X.js} +1 -1
- package/dist/cdn/{R4F7L2HV.js → KQLAAGKI.js} +1 -1
- package/dist/cdn/{WF76CIN2.js → L5PCPBED.js} +1 -1
- package/dist/cdn/{QGJNZGQX.js → LFXRCL7K.js} +1 -1
- package/dist/cdn/{PHAOZ7SV.js → M4ZJRIYM.js} +1 -1
- package/dist/cdn/{ATQN27OC.js → MBPFBE3E.js} +1 -1
- package/dist/cdn/{6EX4GDM3.js → MEA74C44.js} +1 -1
- package/dist/cdn/{6N4SYUQV.js → MRNQGHRD.js} +1 -1
- package/dist/cdn/{TR4ULKH5.js → MVUIKY5Y.js} +1 -1
- package/dist/cdn/{JAJUMMUL.js → N673JFHK.js} +1 -1
- package/dist/cdn/{2CCG5VRK.js → NKVZYKL5.js} +1 -1
- package/dist/cdn/{RFU52ORA.js → O5NKLK7V.js} +1 -1
- package/dist/cdn/{VRF5VORO.js → PEYVSFSE.js} +1 -1
- package/dist/cdn/{3FDSEXHU.js → PKQOLKTW.js} +1 -1
- package/dist/cdn/{HFCAMEBX.js → Q2GW5LB7.js} +1 -1
- package/dist/cdn/{HWUT7IFD.js → QGEFY4ND.js} +1 -1
- package/dist/cdn/{TYJZR25X.js → QV3NMKKZ.js} +1 -1
- package/dist/cdn/{7ZQHAWKS.js → REZ2QR42.js} +1 -1
- package/dist/cdn/{2VERKODU.js → RKG6CXUU.js} +1 -1
- package/dist/cdn/{FSJ6RT4T.js → SAYLTYWY.js} +1 -1
- package/dist/cdn/{4X7O5PV4.js → SOGVYNPI.js} +1 -1
- package/dist/cdn/{DINELIBX.js → SSKHF7PO.js} +1 -1
- package/dist/cdn/{7UMBIDWG.js → T5TFLMQL.js} +1 -1
- package/dist/cdn/{MP4N4SFB.js → TOFVWGTG.js} +1 -1
- package/dist/cdn/{54UV746F.js → TSA7UMSZ.js} +1 -1
- package/dist/cdn/{EJEUMMWZ.js → U3MRRFML.js} +1 -1
- package/dist/cdn/{UU2LYQUI.js → VWTJHXHI.js} +1 -1
- package/dist/cdn/{525WSDKI.js → WHVW3P3O.js} +1 -1
- package/dist/cdn/{S6MDSIET.js → WJHIJTWS.js} +1 -1
- package/dist/cdn/{OOVQ6IVC.js → WU62O2AU.js} +1 -1
- package/dist/cdn/{4UG5VYOC.js → X7YEBHBF.js} +1 -1
- package/dist/cdn/{DL77MIWY.js → X7Z4LEZH.js} +1 -1
- package/dist/cdn/{ZO27SWFU.js → XRP6IFM4.js} +1 -1
- package/dist/cdn/{6E2WAXRT.js → Y6CFEFZM.js} +1 -1
- package/dist/cdn/{EA7AXGJI.js → YF6HKRXX.js} +1 -1
- package/dist/cdn/{SZ3VH4UZ.js → YFHB2EFH.js} +1 -1
- package/dist/cdn/{BRG2PBG4.js → YQIFZJTZ.js} +1 -1
- package/dist/cdn/{RKZ2IOOP.js → YWCIV7ZZ.js} +1 -1
- package/dist/cdn/{Q5VREFP6.js → YWKPGNHB.js} +1 -1
- package/dist/cdn/{ODTCEPEL.js → Z43DVT6G.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/index2.js +710 -706
- 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/BFVFX476.js +0 -3
package/dist/chunks/index2.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { isEqual as at, sortBy as Ai, cloneDeep as He, memoize as
|
|
2
|
+
import { isEqual as at, sortBy as Ai, cloneDeep as He, memoize as qt, isArray as ui, isNil as hr, isEmpty as Sr } from "lodash-es";
|
|
3
3
|
import { u as h, k as Fr, r as D, v as Ke, m as Se, p as ye, n as De, q as Te, g as Z, j as br, s as R, t as ee, d as he, a as Xi, G as xr } from "./chart-object-literals.js";
|
|
4
4
|
import wi from "@arcgis/core/layers/support/FeatureFilter.js";
|
|
5
5
|
import Cr from "@arcgis/core/smartMapping/statistics/histogram.js";
|
|
@@ -18,13 +18,13 @@ import * as ea from "@arcgis/core/renderers/support/jsonUtils.js";
|
|
|
18
18
|
import Lt from "@arcgis/core/request.js";
|
|
19
19
|
import ta from "@arcgis/core/rest/support/FeatureSet.js";
|
|
20
20
|
import { g as _ } from "./series-types.js";
|
|
21
|
-
import { F as C, q as oe, C as F, e as
|
|
21
|
+
import { F as C, q as oe, C as F, e as Xt, z as ia, l as ci, o as Pi, v as aa, d as Jt, x as Mr, g as ra, s as Wt, w as Dr, i as Or, r as Ae, t as Vt } from "./index3.js";
|
|
22
22
|
import Ir from "@arcgis/core/Graphic.js";
|
|
23
|
-
import * as
|
|
24
|
-
import { f as
|
|
23
|
+
import * as Gt from "@arcgis/core/symbols/support/symbolUtils.js";
|
|
24
|
+
import { f as Kt, h as et, i as _e, e as se, R as U } from "./rest-js-object-literals.js";
|
|
25
25
|
import Er from "@arcgis/core/AttributeBinsGraphic.js";
|
|
26
26
|
import { substitute as Be } from "@arcgis/core/intl.js";
|
|
27
|
-
import { g as
|
|
27
|
+
import { g as Rt, L as lt, az as W, j as Q, r as ut, o as Oe, ax as ei, am as na, aB as sa, aq as qr, s as $t, ay as Vr, b as Rr, a as $r } from "./index.js";
|
|
28
28
|
import { unsafeGetElementDirection as kr } from "@arcgis/toolkit/dom";
|
|
29
29
|
import { fetchT9nStringsBundle as mt, getElementLocale as ze, supportedLocales as oa } from "@arcgis/toolkit/intl";
|
|
30
30
|
import { i as la, b as ua, c as ie, a as yt, f as Qr, e as _r } from "./type-guards.js";
|
|
@@ -146,7 +146,7 @@ function de(t) {
|
|
|
146
146
|
return _(t?.series) === h.BoxPlotSeries;
|
|
147
147
|
}
|
|
148
148
|
function dn(t) {
|
|
149
|
-
return t !== void 0 && t !==
|
|
149
|
+
return t !== void 0 && t !== Kt.Solid && t !== Kt.Null;
|
|
150
150
|
}
|
|
151
151
|
function cc(t, e) {
|
|
152
152
|
let i = "";
|
|
@@ -248,7 +248,7 @@ const ce = "arcgis_charts_pie_from_fields_name", Ne = "arcgis_charts_pie_from_fi
|
|
|
248
248
|
emptyCells: {
|
|
249
249
|
symbol: {
|
|
250
250
|
type: _e.SFS,
|
|
251
|
-
style:
|
|
251
|
+
style: Kt.Solid,
|
|
252
252
|
color: C.grayColor
|
|
253
253
|
},
|
|
254
254
|
text: "null"
|
|
@@ -508,7 +508,7 @@ const Qe = [
|
|
|
508
508
|
h.ComboLineAndBarSeries,
|
|
509
509
|
h.RadarSeries
|
|
510
510
|
];
|
|
511
|
-
function
|
|
511
|
+
function Ut(t, e) {
|
|
512
512
|
let i = 0;
|
|
513
513
|
if (t !== e) {
|
|
514
514
|
const a = t.split("."), r = e.split(".");
|
|
@@ -532,13 +532,13 @@ function bn(t) {
|
|
|
532
532
|
function Nc(t) {
|
|
533
533
|
let e = Ke.Same, i = [];
|
|
534
534
|
if (bn(t) && t !== void 0) {
|
|
535
|
-
Qe.sort(
|
|
536
|
-
const r =
|
|
535
|
+
Qe.sort(Ut);
|
|
536
|
+
const r = Ut(t, Qe[Qe.length - 1]);
|
|
537
537
|
if (r === 1 ? e = Ke.Newer : r === -1 && (e = Ke.Older), e === Ke.Newer || e === Ke.Same)
|
|
538
538
|
i.push(t);
|
|
539
539
|
else {
|
|
540
540
|
for (let n = Qe.length - 2; n >= 0; n -= 1)
|
|
541
|
-
if (
|
|
541
|
+
if (Ut(t, Qe[n]) >= 0) {
|
|
542
542
|
i = Qe.slice(n, Qe.length);
|
|
543
543
|
break;
|
|
544
544
|
}
|
|
@@ -564,7 +564,7 @@ function te(t, e) {
|
|
|
564
564
|
function fe(t) {
|
|
565
565
|
const { where: e, normalize: i, keepSurroundingQuotes: a, escape: r = !1 } = t;
|
|
566
566
|
let n = "";
|
|
567
|
-
return e?.includes("=") && (n = e.split("=").slice(1).join("=").trim(), n === "null" ? n = null : n.trim() !== "" && !Number.isNaN(Number(n)) ? n = Number(n) : i === !1 ? r && (n =
|
|
567
|
+
return e?.includes("=") && (n = e.split("=").slice(1).join("=").trim(), n === "null" ? n = null : n.trim() !== "" && !Number.isNaN(Number(n)) ? n = Number(n) : i === !1 ? r && (n = Xt(n)) : n = ia({ value: n, keepSurroundingQuotes: a, escape: r })), n;
|
|
568
568
|
}
|
|
569
569
|
function Ie(t) {
|
|
570
570
|
let e = !1;
|
|
@@ -598,7 +598,7 @@ function pa(t) {
|
|
|
598
598
|
function xn(t) {
|
|
599
599
|
let e = F.BoxPlotMonoField;
|
|
600
600
|
const i = t.length === 1, a = t.find((o) => o.type === h.LineSeries) ?? t[0], { x: r } = a, n = "y" in a ? a.y : "", s = a.query?.where;
|
|
601
|
-
return r ===
|
|
601
|
+
return r === Rt ? typeof n == "object" && n.length > 1 ? Ie(s) ? i && (e = F.BoxPlotMultiFields) : e = F.BoxPlotMultiFieldsAndSplitBy : i ? e = F.BoxPlotMonoField : Ie(s) || (e = F.BoxPlotMonoFieldAndSplitBy) : i ? e = F.BoxPlotMonoFieldAndCategory : Ie(s) ? e = F.BoxPlotMultiFieldsAndCategory : e = F.BoxPlotMonoFieldAndCategoryAndSplitBy, e;
|
|
602
602
|
}
|
|
603
603
|
function k(t) {
|
|
604
604
|
let e = F.NonSpecific;
|
|
@@ -791,14 +791,14 @@ function Oc(t) {
|
|
|
791
791
|
let a = !1;
|
|
792
792
|
const r = e?.series[0], n = i.series[0], s = _(e?.series), o = _(i.series);
|
|
793
793
|
if (s === h.PieSeries && o === h.PieSeries) {
|
|
794
|
-
const { slices: u, sliceGrouping: c } = r, { slices: l, sliceGrouping: d } = n, f = u?.map((
|
|
795
|
-
sliceId:
|
|
796
|
-
label:
|
|
797
|
-
})), m = l?.map((
|
|
798
|
-
sliceId:
|
|
799
|
-
label:
|
|
800
|
-
})), y = c?.label,
|
|
801
|
-
a = JSON.stringify(f) !== JSON.stringify(m) || JSON.stringify(y) !== JSON.stringify(
|
|
794
|
+
const { slices: u, sliceGrouping: c } = r, { slices: l, sliceGrouping: d } = n, f = u?.map((p) => ({
|
|
795
|
+
sliceId: p.sliceId,
|
|
796
|
+
label: p.label
|
|
797
|
+
})), m = l?.map((p) => ({
|
|
798
|
+
sliceId: p.sliceId,
|
|
799
|
+
label: p.label
|
|
800
|
+
})), y = c?.label, g = d?.label;
|
|
801
|
+
a = JSON.stringify(f) !== JSON.stringify(m) || JSON.stringify(y) !== JSON.stringify(g);
|
|
802
802
|
}
|
|
803
803
|
return a;
|
|
804
804
|
}
|
|
@@ -819,7 +819,7 @@ function Ec(t, e) {
|
|
|
819
819
|
}
|
|
820
820
|
function qc(t, e) {
|
|
821
821
|
let i, a, r, n;
|
|
822
|
-
return be(t.series[0]) && (i = t.series[0].temporalBinning?.unit, r = t.series[0].temporalBinning?.size), be(e.series[0]) && (a = e.series[0].temporalBinning?.unit, n = e.series[0].temporalBinning?.size),
|
|
822
|
+
return be(t.series[0]) && (i = t.series[0].temporalBinning?.unit, r = t.series[0].temporalBinning?.size), be(e.series[0]) && (a = e.series[0].temporalBinning?.unit, n = e.series[0].temporalBinning?.size), ti(i, r) && !ti(a, n);
|
|
823
823
|
}
|
|
824
824
|
function Vc(t, e) {
|
|
825
825
|
return t.axes?.length === 3 && e.axes?.length === 2 || t.axes?.length === 2 && e.axes?.length === 3;
|
|
@@ -878,7 +878,7 @@ function Gc(t) {
|
|
|
878
878
|
setTimeBinningInfoWhenNotProvided: c,
|
|
879
879
|
chartLimits: l
|
|
880
880
|
} = t, { series: d } = i, { series: f } = e, m = _(d);
|
|
881
|
-
let y = !1,
|
|
881
|
+
let y = !1, g = !1, p = !1;
|
|
882
882
|
const S = {
|
|
883
883
|
common: {
|
|
884
884
|
layerChanged: !1,
|
|
@@ -959,7 +959,7 @@ function Gc(t) {
|
|
|
959
959
|
});
|
|
960
960
|
break;
|
|
961
961
|
}
|
|
962
|
-
return
|
|
962
|
+
return g = Object.values(S.common).some((x) => x), (S.gauge.valueConversionChanged || S.histogram.dataPropsChanged || S.boxPlot.showMeanChanged || S.heatChart.binningChanged || S.heatChart.hideEmptyRowsAndColumnsChanged || S.heatChart.includeLeapDay || S.scatterPlot.tooltipFieldsChanged) && (p = !0), y = g || p, { dataUpdateNeeded: y, dataUpdateDetails: S };
|
|
963
963
|
}
|
|
964
964
|
function Uc(t, e) {
|
|
965
965
|
const i = He(t);
|
|
@@ -1172,7 +1172,7 @@ function ht(t) {
|
|
|
1172
1172
|
value: `${d[a]?.toString()}`,
|
|
1173
1173
|
dataContext: d,
|
|
1174
1174
|
specificField: o ? C.xAxisField : C.originalCategoryValue
|
|
1175
|
-
})), n === !0 && c && s === !0 && (m = Number.isNaN(Number.parseFloat(`${m?.toString()}`)) ? m : Number.parseFloat(m), y = Number.isNaN(Number.parseFloat(`${y?.toString()}`)) ? y : Number.parseFloat(y)), s === !0 && (l[C.originalCategoryValue] === null || m === null) || l[
|
|
1175
|
+
})), n === !0 && c && s === !0 && (m = Number.isNaN(Number.parseFloat(`${m?.toString()}`)) ? m : Number.parseFloat(m), y = Number.isNaN(Number.parseFloat(`${y?.toString()}`)) ? y : Number.parseFloat(y)), s === !0 && (l[C.originalCategoryValue] === null || m === null) || l[ei.defaultGroupOfSlicesId] === !0 ? f = 1 : s === !0 && (d[C.originalCategoryValue] === null || y === null) || d[ei.defaultGroupOfSlicesId] === !0 ? f = -1 : typeof m == "string" && typeof y == "string" ? (f = m.localeCompare(y, void 0, { numeric: !0 }), c && (f *= -1)) : m === void 0 ? f = c ? -1 : 1 : y === void 0 ? f = c ? 1 : -1 : m !== null && y !== null && (m > y ? f = c ? -1 : 1 : m < y && (f = c ? 1 : -1)), f;
|
|
1176
1176
|
});
|
|
1177
1177
|
}
|
|
1178
1178
|
}
|
|
@@ -1180,11 +1180,11 @@ function En(t) {
|
|
|
1180
1180
|
const { arrayToSort: e, orderBy: i, sortingField: a, fieldList: r, isByFieldsChart: n, preferLabel: s } = t;
|
|
1181
1181
|
e !== void 0 && e.length > 1 && !oe(a) && i !== void 0 && i.length > 0 && e.sort((o, u) => {
|
|
1182
1182
|
let c = o[a];
|
|
1183
|
-
s && n && typeof c == "string" && (c =
|
|
1183
|
+
s && n && typeof c == "string" && (c = Jt(r, c));
|
|
1184
1184
|
let l = i.indexOf(c?.toString() ?? "");
|
|
1185
1185
|
l === -1 && (l = i.length);
|
|
1186
1186
|
let d = u[a];
|
|
1187
|
-
s && n && typeof d == "string" && (d =
|
|
1187
|
+
s && n && typeof d == "string" && (d = Jt(r, d));
|
|
1188
1188
|
let f = i.indexOf(d?.toString() ?? "");
|
|
1189
1189
|
return f === -1 && (f = i.length), l - f;
|
|
1190
1190
|
});
|
|
@@ -1212,7 +1212,7 @@ function Dt(t) {
|
|
|
1212
1212
|
Object.entries(e).forEach(([o]) => {
|
|
1213
1213
|
if (o !== "" && o !== Oe && o in e) {
|
|
1214
1214
|
const u = {
|
|
1215
|
-
[i]:
|
|
1215
|
+
[i]: Jt(r, o),
|
|
1216
1216
|
[a]: e[o],
|
|
1217
1217
|
[C.xAxisField]: o,
|
|
1218
1218
|
[C.originalCategoryValue]: o
|
|
@@ -1255,38 +1255,38 @@ function Aa(t, e) {
|
|
|
1255
1255
|
maxLineTwoSeriesCountTotal: f,
|
|
1256
1256
|
maxLineThreePlusSeriesCountPerSeries: m,
|
|
1257
1257
|
maxLineThreePlusSeriesCountTotal: y,
|
|
1258
|
-
maxPieChartSliceCountTotal:
|
|
1259
|
-
maxGaugeByFeaturesLimit:
|
|
1260
|
-
} = ut(e), S = _(t.series),
|
|
1258
|
+
maxPieChartSliceCountTotal: g,
|
|
1259
|
+
maxGaugeByFeaturesLimit: p
|
|
1260
|
+
} = ut(e), S = _(t.series), x = t.series.length === 0 ? 1 : t.series.length, v = k(t.series);
|
|
1261
1261
|
switch (S) {
|
|
1262
1262
|
case h.ComboLineAndBarSeries:
|
|
1263
1263
|
case h.BarSeries:
|
|
1264
|
-
|
|
1264
|
+
x <= a && (x === 1 ? i = r : x === 2 ? i = At({
|
|
1265
1265
|
countTotal: s,
|
|
1266
1266
|
countPerSeries: n,
|
|
1267
|
-
numberOfSeries:
|
|
1268
|
-
}) :
|
|
1267
|
+
numberOfSeries: x
|
|
1268
|
+
}) : x > 2 && (i = At({
|
|
1269
1269
|
countTotal: u,
|
|
1270
1270
|
countPerSeries: o,
|
|
1271
|
-
numberOfSeries:
|
|
1271
|
+
numberOfSeries: x
|
|
1272
1272
|
})));
|
|
1273
1273
|
break;
|
|
1274
1274
|
case h.LineSeries:
|
|
1275
|
-
|
|
1275
|
+
x <= c && (x === 1 ? i = l : x === 2 ? i = At({
|
|
1276
1276
|
countTotal: f,
|
|
1277
1277
|
countPerSeries: d,
|
|
1278
|
-
numberOfSeries:
|
|
1279
|
-
}) :
|
|
1278
|
+
numberOfSeries: x
|
|
1279
|
+
}) : x > 2 && (i = At({
|
|
1280
1280
|
countTotal: y,
|
|
1281
1281
|
countPerSeries: m,
|
|
1282
|
-
numberOfSeries:
|
|
1282
|
+
numberOfSeries: x
|
|
1283
1283
|
})));
|
|
1284
1284
|
break;
|
|
1285
1285
|
case h.PieSeries:
|
|
1286
|
-
i =
|
|
1286
|
+
i = g;
|
|
1287
1287
|
break;
|
|
1288
1288
|
case h.GaugeSeries:
|
|
1289
|
-
i =
|
|
1289
|
+
i = p;
|
|
1290
1290
|
break;
|
|
1291
1291
|
case h.ScatterSeries:
|
|
1292
1292
|
// handled through the aggregation feature
|
|
@@ -1294,7 +1294,7 @@ function Aa(t, e) {
|
|
|
1294
1294
|
// handled through the number of bins
|
|
1295
1295
|
case h.BoxPlotSeries:
|
|
1296
1296
|
}
|
|
1297
|
-
return (v === F.BarAndLineNoAggregation || v === F.BarAndLineMultiFields) && i !== void 0 && (i = Math.ceil(i /
|
|
1297
|
+
return (v === F.BarAndLineNoAggregation || v === F.BarAndLineMultiFields) && i !== void 0 && (i = Math.ceil(i / x)), i;
|
|
1298
1298
|
}
|
|
1299
1299
|
function Oi(t, e) {
|
|
1300
1300
|
let i = t;
|
|
@@ -1460,30 +1460,30 @@ function Wn(t) {
|
|
|
1460
1460
|
(d) => {
|
|
1461
1461
|
let { field: f } = d;
|
|
1462
1462
|
const { color: m, label: y } = d;
|
|
1463
|
-
let
|
|
1464
|
-
Array.isArray(m) && m?.length === 4 ?
|
|
1465
|
-
let
|
|
1463
|
+
let g;
|
|
1464
|
+
Array.isArray(m) && m?.length === 4 ? g = m : m && "toRgba" in m && (g = m.toRgba());
|
|
1465
|
+
let p = !1, S = !0;
|
|
1466
1466
|
switch (u) {
|
|
1467
1467
|
case h.BarSeries:
|
|
1468
1468
|
case h.LineSeries:
|
|
1469
1469
|
case h.ComboLineAndBarSeries:
|
|
1470
1470
|
case h.RadarSeries:
|
|
1471
1471
|
if (a !== F.BarAndLineFromFields) {
|
|
1472
|
-
const
|
|
1473
|
-
|
|
1472
|
+
const x = i.find((v) => v.query?.outStatistics?.[0]?.onStatisticField === f);
|
|
1473
|
+
x !== void 0 && "y" in x ? f = [x.y].flat()[0] : f = "";
|
|
1474
1474
|
}
|
|
1475
|
-
|
|
1475
|
+
p = a !== F.BarAndLineFromFields || f === r[C.originalCategoryValue];
|
|
1476
1476
|
break;
|
|
1477
1477
|
case h.PieSeries:
|
|
1478
|
-
|
|
1478
|
+
p = a === F.PieFromFields && f === r[C.originalCategoryValue];
|
|
1479
1479
|
break;
|
|
1480
1480
|
case h.BoxPlotSeries:
|
|
1481
|
-
a === F.BoxPlotMonoField || a === F.BoxPlotMonoFieldAndCategory ?
|
|
1481
|
+
a === F.BoxPlotMonoField || a === F.BoxPlotMonoFieldAndCategory ? p = f === i[0].y : f && (a === F.BoxPlotMultiFields || a === F.BoxPlotMultiFieldsAndCategory) && (p = i.map((v) => v.y).flat().includes(f)), S = !1;
|
|
1482
1482
|
break;
|
|
1483
1483
|
}
|
|
1484
|
-
|
|
1484
|
+
p && g && (s = {
|
|
1485
1485
|
type: _e.SMS,
|
|
1486
|
-
color:
|
|
1486
|
+
color: g,
|
|
1487
1487
|
label: S && y ? y : void 0
|
|
1488
1488
|
}, c != null && (s.outline = c), La({
|
|
1489
1489
|
dataItem: r,
|
|
@@ -1528,7 +1528,7 @@ function Pa(t) {
|
|
|
1528
1528
|
chartSubType: i,
|
|
1529
1529
|
rendererType: a
|
|
1530
1530
|
});
|
|
1531
|
-
return n instanceof Array && e.type === h.BoxPlotSeries && a === se.PieChart && r !== void 0 && (n = n.find((s) => s === r[
|
|
1531
|
+
return n instanceof Array && e.type === h.BoxPlotSeries && a === se.PieChart && r !== void 0 && (n = n.find((s) => s === r[Rt]) ?? n[0]), n = n !== C.rendererSymbolField ? `${C.rendererSymbolField}_${n.toString()}` : n, n;
|
|
1532
1532
|
}
|
|
1533
1533
|
function Un(t) {
|
|
1534
1534
|
const { chartRenderer: e, queryObject: i } = t, a = e !== void 0 ? {
|
|
@@ -1564,22 +1564,22 @@ async function Yn(t) {
|
|
|
1564
1564
|
rendererOrigin: n
|
|
1565
1565
|
});
|
|
1566
1566
|
d = m.rendererSymbol, f = m.colorMatchApplied;
|
|
1567
|
-
} else if (i?.[
|
|
1567
|
+
} else if (i?.[ei.defaultGroupOfSlicesId] !== !0) {
|
|
1568
1568
|
const { x: m } = e[0], y = /* @__PURE__ */ new Map();
|
|
1569
|
-
o && o.trim() !== "" ? e.forEach((
|
|
1570
|
-
if (
|
|
1571
|
-
const
|
|
1572
|
-
seriesConfig:
|
|
1569
|
+
o && o.trim() !== "" ? e.forEach((g) => {
|
|
1570
|
+
if (g.type === h.BarSeries || g.type === h.LineSeries || g.type === h.BoxPlotSeries || g.type === h.RadarSeries) {
|
|
1571
|
+
const p = Pa({
|
|
1572
|
+
seriesConfig: g,
|
|
1573
1573
|
chartSubType: s,
|
|
1574
1574
|
rendererType: r,
|
|
1575
1575
|
dataItem: i
|
|
1576
1576
|
}), S = fe({
|
|
1577
|
-
where:
|
|
1577
|
+
where: g.query?.where,
|
|
1578
1578
|
normalize: !0,
|
|
1579
1579
|
keepSurroundingQuotes: !1,
|
|
1580
1580
|
escape: !1
|
|
1581
1581
|
});
|
|
1582
|
-
y.set(
|
|
1582
|
+
y.set(p, {
|
|
1583
1583
|
...i,
|
|
1584
1584
|
[o]: S
|
|
1585
1585
|
});
|
|
@@ -1594,30 +1594,30 @@ async function Yn(t) {
|
|
|
1594
1594
|
}
|
|
1595
1595
|
);
|
|
1596
1596
|
try {
|
|
1597
|
-
const
|
|
1598
|
-
|
|
1597
|
+
const g = Array.from(y.entries()), p = u.clone();
|
|
1598
|
+
p.layer = u.layer;
|
|
1599
1599
|
const S = a?.uniqueValueInfos;
|
|
1600
|
-
for (let
|
|
1601
|
-
const [v,
|
|
1600
|
+
for (let x = 0; x < g.length; x += 1) {
|
|
1601
|
+
const [v, b] = g[x];
|
|
1602
1602
|
if (Ii({
|
|
1603
1603
|
mode: "encode",
|
|
1604
1604
|
x: m,
|
|
1605
1605
|
splitByField: o,
|
|
1606
|
-
attributes:
|
|
1607
|
-
}), c && c.length > 0 && Object.keys(
|
|
1608
|
-
c.includes(N) || delete
|
|
1609
|
-
}),
|
|
1610
|
-
d = l.get(JSON.stringify(
|
|
1606
|
+
attributes: b
|
|
1607
|
+
}), c && c.length > 0 && Object.keys(b).forEach((N) => {
|
|
1608
|
+
c.includes(N) || delete b[N];
|
|
1609
|
+
}), p.attributes = b, l?.has(JSON.stringify(b)))
|
|
1610
|
+
d = l.get(JSON.stringify(b));
|
|
1611
1611
|
else {
|
|
1612
|
-
if (d = (await
|
|
1612
|
+
if (d = (await Gt.getDisplayedSymbol(p))?.toJSON(), d != null) {
|
|
1613
1613
|
if (d.color === void 0) {
|
|
1614
|
-
const T = (await
|
|
1614
|
+
const T = (await Gt.getDisplayedColor(p))?.toJSON();
|
|
1615
1615
|
T && (d.color = T.length === 4 ? T : [...T, 255]);
|
|
1616
1616
|
}
|
|
1617
|
-
const N = await
|
|
1617
|
+
const N = await Gt.getLegendLabel(p);
|
|
1618
1618
|
N != null && N !== "" && (d.label = N, d.uniqueValue = S?.find((T) => T.label === N)?.value ?? void 0);
|
|
1619
1619
|
}
|
|
1620
|
-
l?.set(JSON.stringify(
|
|
1620
|
+
l?.set(JSON.stringify(b), d);
|
|
1621
1621
|
}
|
|
1622
1622
|
Ii({
|
|
1623
1623
|
mode: "revert",
|
|
@@ -1713,7 +1713,7 @@ function ld(t, e) {
|
|
|
1713
1713
|
const a = _(t?.series), r = _(e?.series);
|
|
1714
1714
|
return a && a !== r && (i = a === h.ComboLineAndBarSeries && (r === h.BarSeries || r === h.LineSeries) || r === h.ComboLineAndBarSeries && (a === h.BarSeries || a === h.LineSeries) || a === h.BarSeries && r === h.LineSeries || a === h.LineSeries && r === h.BarSeries), i;
|
|
1715
1715
|
}
|
|
1716
|
-
function
|
|
1716
|
+
function ti(t, e) {
|
|
1717
1717
|
return t !== void 0 && e !== void 0 && e > 0;
|
|
1718
1718
|
}
|
|
1719
1719
|
function ud(t) {
|
|
@@ -1732,7 +1732,7 @@ function ud(t) {
|
|
|
1732
1732
|
})?.color : f === void 0 && (f = na({ colorIndex: l }))), f;
|
|
1733
1733
|
}).filter((c) => c !== void 0), r;
|
|
1734
1734
|
}
|
|
1735
|
-
function
|
|
1735
|
+
function ii(t) {
|
|
1736
1736
|
return t !== F.PieNoAggregation && t !== F.BarAndLineNoAggregation && t !== F.BarAndLineSplitByNoAggregation;
|
|
1737
1737
|
}
|
|
1738
1738
|
function ts(t) {
|
|
@@ -1815,7 +1815,7 @@ function ss(t) {
|
|
|
1815
1815
|
}
|
|
1816
1816
|
function os(t) {
|
|
1817
1817
|
const { uniqueQuery: e, splitByField: i, x: a } = t, r = [...e.groupByFieldsForStatistics ?? [], a, i].filter(
|
|
1818
|
-
(n) => n !== void 0 && n.trim() !== "" && n !==
|
|
1818
|
+
(n) => n !== void 0 && n.trim() !== "" && n !== Rt
|
|
1819
1819
|
);
|
|
1820
1820
|
e.groupByFieldsForStatistics = Array.from(new Set(r));
|
|
1821
1821
|
}
|
|
@@ -1946,32 +1946,32 @@ function yi(t) {
|
|
|
1946
1946
|
fetchFullBoxPlotData: s,
|
|
1947
1947
|
returnFeaturesExtent: o,
|
|
1948
1948
|
chartLimits: u
|
|
1949
|
-
} = t, c = e.series, l = k(c), d = Re(e), { query: f, x: m } = d, y = "y" in d ? d.y : void 0,
|
|
1949
|
+
} = t, c = e.series, l = k(c), d = Re(e), { query: f, x: m } = d, y = "y" in d ? d.y : void 0, g = Pe({
|
|
1950
1950
|
xAxisValueFormatType: xe(e),
|
|
1951
1951
|
setTimeBinningInfoWhenNotProvided: n,
|
|
1952
1952
|
seriesConfig: d,
|
|
1953
1953
|
queryObject: a
|
|
1954
1954
|
});
|
|
1955
|
-
let
|
|
1955
|
+
let p = /* @__PURE__ */ new Map(), S = !1, x = !1, v = !1, b = !1, B = !1, N = {};
|
|
1956
1956
|
if (f !== void 0) {
|
|
1957
1957
|
N = He(f);
|
|
1958
1958
|
const $ = te(f.where);
|
|
1959
1959
|
let M = "";
|
|
1960
1960
|
switch (i.fetchNullValues !== !0 && (m !== C.boxPlot.boxPlotCategory && (M = `${m} IS NOT NULL`), $.trim() !== "" && $ !== m && !Ie(f.where) && (M = Y([M, `${$} IS NOT NULL`]))), l) {
|
|
1961
1961
|
case F.BarAndLineSplitBy: {
|
|
1962
|
-
|
|
1962
|
+
p = ss(c), b = !0, S = !0, x = !0;
|
|
1963
1963
|
break;
|
|
1964
1964
|
}
|
|
1965
1965
|
case F.BarAndLineMultiFields:
|
|
1966
|
-
cs(N, c),
|
|
1966
|
+
cs(N, c), x = !0;
|
|
1967
1967
|
break;
|
|
1968
1968
|
case F.PieFromFields:
|
|
1969
1969
|
case F.BarAndLineFromFields:
|
|
1970
|
-
M = "", v = !0,
|
|
1970
|
+
M = "", v = !0, x = !0;
|
|
1971
1971
|
break;
|
|
1972
1972
|
case F.BarAndLineMonoField:
|
|
1973
1973
|
case F.PieFromCategory:
|
|
1974
|
-
|
|
1974
|
+
x = !0;
|
|
1975
1975
|
break;
|
|
1976
1976
|
case F.BoxPlotMonoField:
|
|
1977
1977
|
case F.BoxPlotMultiFields:
|
|
@@ -1982,27 +1982,27 @@ function yi(t) {
|
|
|
1982
1982
|
case F.BoxPlotMonoFieldAndSplitBy:
|
|
1983
1983
|
case F.BoxPlotMonoFieldAndCategoryAndSplitBy:
|
|
1984
1984
|
case F.BoxPlotMultiFieldsAndSplitBy: {
|
|
1985
|
-
B = !0,
|
|
1985
|
+
B = !0, b = !0, v = !0;
|
|
1986
1986
|
break;
|
|
1987
1987
|
}
|
|
1988
1988
|
case F.PieNoAggregation:
|
|
1989
1989
|
case F.BarAndLineNoAggregation:
|
|
1990
1990
|
case F.BarAndLineSplitByNoAggregation:
|
|
1991
1991
|
}
|
|
1992
|
-
if (
|
|
1992
|
+
if (x && ls({
|
|
1993
1993
|
uniqueQuery: N,
|
|
1994
1994
|
y,
|
|
1995
1995
|
useGenericOutStatFieldName: S,
|
|
1996
1996
|
queryObject: a,
|
|
1997
1997
|
chartSubType: l,
|
|
1998
|
-
isTimeBinningSeries:
|
|
1998
|
+
isTimeBinningSeries: g,
|
|
1999
1999
|
returnFeaturesExtent: o,
|
|
2000
2000
|
splitByField: $
|
|
2001
|
-
}),
|
|
2001
|
+
}), b && os({ uniqueQuery: N, splitByField: $, x: m }), de(e) && B && (N.outStatistics = us({ chartConfig: e, fetchFullBoxPlotData: s })), v ? delete N.orderByFields : i.orderByFields !== void 0 && (N.orderByFields = i.orderByFields.filter((q) => {
|
|
2002
2002
|
const G = q.split(" ");
|
|
2003
2003
|
return !oe(G[0]);
|
|
2004
|
-
})),
|
|
2005
|
-
const q = z(a), { idFields: G } =
|
|
2004
|
+
})), g && be(c[0])) {
|
|
2005
|
+
const q = z(a), { idFields: G } = kt(q);
|
|
2006
2006
|
Ce(a).find((H) => H.name === m)?.type !== U.DateOnly && G && ds({
|
|
2007
2007
|
uniqueQuery: N,
|
|
2008
2008
|
x: m,
|
|
@@ -2017,7 +2017,7 @@ function yi(t) {
|
|
|
2017
2017
|
}
|
|
2018
2018
|
Da({ chartConfig: e, uniqueQuery: N, chartLimits: u });
|
|
2019
2019
|
const { gdbVersion: T, geometry: w, distance: L, units: A, timeExtent: I, where: P, objectIds: O, spatialRelationship: V } = i;
|
|
2020
|
-
return T !== void 0 && (N.gdbVersion = T), w !== void 0 && (N.geometry = w), L !== void 0 && (N.distance = L), A !== void 0 && (N.units = A), I !== void 0 && (N.timeExtent = I), O !== void 0 && (N.objectIds = O), V !== void 0 && (N.spatialRelationship = V), P !== void 0 && (N.where = Y([N.where, P])), { uniqueQuery: N, mapToStatField:
|
|
2020
|
+
return T !== void 0 && (N.gdbVersion = T), w !== void 0 && (N.geometry = w), L !== void 0 && (N.distance = L), A !== void 0 && (N.units = A), I !== void 0 && (N.timeExtent = I), O !== void 0 && (N.objectIds = O), V !== void 0 && (N.spatialRelationship = V), P !== void 0 && (N.where = Y([N.where, P])), { uniqueQuery: N, mapToStatField: p };
|
|
2021
2021
|
}
|
|
2022
2022
|
const le = {
|
|
2023
2023
|
Default: "defaultError",
|
|
@@ -2074,36 +2074,38 @@ function ms(t) {
|
|
|
2074
2074
|
return e;
|
|
2075
2075
|
}
|
|
2076
2076
|
async function ys(t) {
|
|
2077
|
-
const {
|
|
2077
|
+
const { chartConfig: e, queryConfig: i, queryObject: a, filterByViewExtent: r, view: n, abortKey: s, abortSignal: o } = t, u = e.series[0], { x: c, dataTransformationType: l, binCount: d } = u, f = z(a);
|
|
2078
2078
|
if (!ie(f))
|
|
2079
2079
|
throw new re(le.LayerNotSupported);
|
|
2080
|
-
f.loaded || await f.load({ signal:
|
|
2081
|
-
const m = await dt(f,
|
|
2080
|
+
f.loaded || await f.load({ signal: o });
|
|
2081
|
+
const m = await dt(f, o);
|
|
2082
2082
|
if (!m)
|
|
2083
2083
|
throw new Error("Raster info is not available for the layer.");
|
|
2084
|
-
const y = ft(
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2084
|
+
const y = ft(i.geometry) ?? f.fullExtent, g = Ot(f, c);
|
|
2085
|
+
if (g < 0)
|
|
2086
|
+
throw new Error("Band ID not found for `${x}`.");
|
|
2087
|
+
let p, S;
|
|
2088
|
+
if (!r && (l === void 0 || l === Z.None) && d && Array.isArray(m.histograms) && m.histograms.length > g && m.histograms[g].size % d === 0 && Array.isArray(m.statistics) && m?.statistics?.length > g)
|
|
2089
|
+
p = m.histograms[g], S = m.statistics[g];
|
|
2088
2090
|
else {
|
|
2089
|
-
let
|
|
2090
|
-
if (
|
|
2091
|
-
|
|
2091
|
+
let x, v, b;
|
|
2092
|
+
if (r && n)
|
|
2093
|
+
x = n.resolution, v = n.resolution, b = n.spatialReference;
|
|
2092
2094
|
else {
|
|
2093
2095
|
const w = fs, L = 2, A = m.width, I = m.height, P = Math.max(
|
|
2094
2096
|
0,
|
|
2095
2097
|
Math.ceil(Math.log(Math.max(A, I) / w) / Math.log(L))
|
|
2096
2098
|
), O = L ** P;
|
|
2097
|
-
|
|
2099
|
+
x = m.pixelSize.x * O, v = m.pixelSize.y * O, b = f.spatialReference;
|
|
2098
2100
|
}
|
|
2099
2101
|
const B = new da({
|
|
2100
|
-
x
|
|
2102
|
+
x,
|
|
2101
2103
|
y: v,
|
|
2102
|
-
spatialReference:
|
|
2104
|
+
spatialReference: b
|
|
2103
2105
|
}), N = ms(l), T = await Gr(
|
|
2104
2106
|
f,
|
|
2105
2107
|
{
|
|
2106
|
-
bandIds: [
|
|
2108
|
+
bandIds: [g],
|
|
2107
2109
|
geometry: y,
|
|
2108
2110
|
histogramSize: d ?? void 0,
|
|
2109
2111
|
pixelSize: B,
|
|
@@ -2111,12 +2113,12 @@ async function ys(t) {
|
|
|
2111
2113
|
downsampleOnly: !0
|
|
2112
2114
|
},
|
|
2113
2115
|
{
|
|
2114
|
-
signal:
|
|
2116
|
+
signal: o ?? (s !== void 0 ? Ge.get(s)?.signal : void 0)
|
|
2115
2117
|
}
|
|
2116
2118
|
);
|
|
2117
|
-
S = T.statistics[0],
|
|
2119
|
+
S = T.statistics[0], p = T.histograms[0];
|
|
2118
2120
|
}
|
|
2119
|
-
return { histogram:
|
|
2121
|
+
return { histogram: p, statistics: S };
|
|
2120
2122
|
}
|
|
2121
2123
|
function gs(t, e) {
|
|
2122
2124
|
const i = [], a = (t.max - t.min) / t.size;
|
|
@@ -2146,47 +2148,48 @@ function gs(t, e) {
|
|
|
2146
2148
|
return i;
|
|
2147
2149
|
}
|
|
2148
2150
|
async function ps(t) {
|
|
2149
|
-
const { chartConfig: e, queryConfig: i, queryObject: a,
|
|
2151
|
+
const { chartConfig: e, queryConfig: i, queryObject: a, filterByViewExtent: r, abortKey: n, abortSignal: s, view: o } = t;
|
|
2150
2152
|
if (a === void 0)
|
|
2151
2153
|
throw new Error("QueryObject is undefined!");
|
|
2152
|
-
let
|
|
2153
|
-
const { statistics:
|
|
2154
|
+
let u;
|
|
2155
|
+
const { statistics: c, histogram: l } = await ys({
|
|
2154
2156
|
queryObject: a,
|
|
2155
2157
|
chartConfig: e,
|
|
2156
2158
|
queryConfig: i,
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2159
|
+
filterByViewExtent: r,
|
|
2160
|
+
view: o,
|
|
2161
|
+
abortKey: n,
|
|
2162
|
+
abortSignal: s
|
|
2160
2163
|
});
|
|
2161
|
-
if (
|
|
2162
|
-
const
|
|
2163
|
-
|
|
2164
|
+
if (c && l) {
|
|
2165
|
+
const d = e.series[0].binCount ?? void 0, f = gs(l, d);
|
|
2166
|
+
f.length > 0 ? u = {
|
|
2164
2167
|
valid: !0,
|
|
2165
|
-
count:
|
|
2168
|
+
count: f.length,
|
|
2166
2169
|
data: {
|
|
2167
|
-
bins:
|
|
2168
|
-
min:
|
|
2169
|
-
max:
|
|
2170
|
-
mean:
|
|
2171
|
-
median:
|
|
2172
|
-
stddev:
|
|
2173
|
-
sum:
|
|
2174
|
-
count:
|
|
2170
|
+
bins: f,
|
|
2171
|
+
min: c.min,
|
|
2172
|
+
max: c.max,
|
|
2173
|
+
mean: c.avg,
|
|
2174
|
+
median: c.median,
|
|
2175
|
+
stddev: c.stddev,
|
|
2176
|
+
sum: c.sum ?? c.avg * c.count,
|
|
2177
|
+
count: c.count
|
|
2175
2178
|
}
|
|
2176
|
-
} :
|
|
2179
|
+
} : u = {
|
|
2177
2180
|
valid: !1,
|
|
2178
2181
|
invalidType: j.EmptyDataSet
|
|
2179
2182
|
};
|
|
2180
2183
|
} else
|
|
2181
|
-
|
|
2184
|
+
u = {
|
|
2182
2185
|
valid: !1,
|
|
2183
2186
|
invalidType: j.BadData
|
|
2184
2187
|
};
|
|
2185
|
-
return
|
|
2188
|
+
return u;
|
|
2186
2189
|
}
|
|
2187
2190
|
const hs = (t) => t.series[0].x;
|
|
2188
2191
|
function Ss(t) {
|
|
2189
|
-
const { chartConfig: e, layer: i, selectionDataItems: a } = t, r =
|
|
2192
|
+
const { chartConfig: e, layer: i, selectionDataItems: a } = t, r = Ot(i, hs(e)), s = a.map((c) => [
|
|
2190
2193
|
c.minValue,
|
|
2191
2194
|
c.maxValue
|
|
2192
2195
|
]).reduce((c, l, d) => {
|
|
@@ -2289,17 +2292,17 @@ function Cs(t) {
|
|
|
2289
2292
|
async function vs(t) {
|
|
2290
2293
|
const { queryObject: e, queryConfig: i, outputFormat: a, dataFormat: r, outAnalytics: n, errorStrings: s, abortSignal: o } = t, { where: u, geometry: c, distance: l, units: d, timeExtent: f } = i;
|
|
2291
2294
|
let m;
|
|
2292
|
-
const y = z(e),
|
|
2293
|
-
if (
|
|
2294
|
-
const S = { where: Y([u,
|
|
2295
|
+
const y = z(e), g = ge(y);
|
|
2296
|
+
if (g) {
|
|
2297
|
+
const S = { where: Y([u, g.definitionExpression]) }, x = { query: S, signal: o }, v = ft(c)?.extent?.toJSON();
|
|
2295
2298
|
if (v !== void 0) {
|
|
2296
2299
|
const B = Cs(d), { xmin: N, ymin: T, xmax: w, ymax: L } = v;
|
|
2297
2300
|
S.geometryType = "esriGeometryEnvelope", S.geometry = `${N},${T},${w},${L}`, l !== void 0 && (S.distance = l.toString()), B !== void 0 && (S.units = B, c?.spatialReference?.wkid != null && (S.inSR = c.spatialReference.wkid.toString()));
|
|
2298
2301
|
}
|
|
2299
2302
|
f && (S.time = `${f[0]},${f[1]}`);
|
|
2300
|
-
const
|
|
2303
|
+
const b = `${g.url}/${g.layerId}/queryAnalytic?f=${a}&dataFormat=${r}&outAnalytics=${n}`;
|
|
2301
2304
|
try {
|
|
2302
|
-
m = (await Lt(
|
|
2305
|
+
m = (await Lt(b, x)).data?.features?.[0]?.attributes;
|
|
2303
2306
|
} catch (B) {
|
|
2304
2307
|
const N = s ?? (await mt(
|
|
2305
2308
|
ze(document.documentElement).t9nLocale,
|
|
@@ -2323,21 +2326,21 @@ async function Bs(t) {
|
|
|
2323
2326
|
let u;
|
|
2324
2327
|
const c = z(i), l = yn(c);
|
|
2325
2328
|
if (l && i && "queryAttributeBins" in i) {
|
|
2326
|
-
const { x: d, y: f, xTemporalBinning: m, yTemporalBinning: y } = e.series[0], { outTimeZone:
|
|
2329
|
+
const { x: d, y: f, xTemporalBinning: m, yTemporalBinning: y } = e.series[0], { outTimeZone: g, firstDayOfWeek: p, includeLeapDay: S } = e, x = Fo({
|
|
2327
2330
|
queryObject: i,
|
|
2328
2331
|
queryConfig: a,
|
|
2329
2332
|
x: d,
|
|
2330
2333
|
y: f,
|
|
2331
2334
|
xTemporalBinning: m,
|
|
2332
2335
|
yTemporalBinning: y,
|
|
2333
|
-
configTimeZone:
|
|
2334
|
-
firstDayOfWeek:
|
|
2336
|
+
configTimeZone: g,
|
|
2337
|
+
firstDayOfWeek: p,
|
|
2335
2338
|
includeLeapDay: S,
|
|
2336
2339
|
view: r,
|
|
2337
2340
|
syncViewTimeZone: n
|
|
2338
2341
|
});
|
|
2339
2342
|
try {
|
|
2340
|
-
u = await i.queryAttributeBins(
|
|
2343
|
+
u = await i.queryAttributeBins(x, { signal: o });
|
|
2341
2344
|
} catch (v) {
|
|
2342
2345
|
throw new re(le.QueryFeaturesError, s.errors.queryError, v);
|
|
2343
2346
|
}
|
|
@@ -2404,11 +2407,11 @@ async function xt(t) {
|
|
|
2404
2407
|
const { queryObject: e, queryConfig: i, abortKey: a, errorStrings: r, abortSignal: n } = t, { outStatistics: s } = i, o = /* @__PURE__ */ new Map();
|
|
2405
2408
|
if (s !== void 0 && s.length > 0) {
|
|
2406
2409
|
const u = s.map((f) => {
|
|
2407
|
-
const { statisticType: m, onStatisticField: y, outStatisticFieldName:
|
|
2410
|
+
const { statisticType: m, onStatisticField: y, outStatisticFieldName: g } = f;
|
|
2408
2411
|
return {
|
|
2409
2412
|
statisticType: m,
|
|
2410
2413
|
onStatisticField: y,
|
|
2411
|
-
outStatisticFieldName:
|
|
2414
|
+
outStatisticFieldName: g?.toUpperCase()
|
|
2412
2415
|
};
|
|
2413
2416
|
});
|
|
2414
2417
|
i.outStatistics = u, delete i.num, delete i.orderByFields;
|
|
@@ -2458,7 +2461,7 @@ async function Ia(t) {
|
|
|
2458
2461
|
const { idField: f, isTraditionalTypeOID: m } = ve(u), y = m ? f : "*";
|
|
2459
2462
|
d.outFields = [y], o = (await e.queryFeatures(d, {
|
|
2460
2463
|
signal: c
|
|
2461
|
-
})).features.map((
|
|
2464
|
+
})).features.map((p) => p.getObjectId());
|
|
2462
2465
|
}
|
|
2463
2466
|
else
|
|
2464
2467
|
o = (await e.queryFeatures(d, { signal: c })).features;
|
|
@@ -2493,8 +2496,8 @@ async function Fe(t) {
|
|
|
2493
2496
|
const l = z(e), d = r ?? 1, f = za(l);
|
|
2494
2497
|
if (n !== !0 && d > f && l?.capabilities?.query.supportsPagination) {
|
|
2495
2498
|
let m = 0, y = 0;
|
|
2496
|
-
const
|
|
2497
|
-
for (; y <
|
|
2499
|
+
const g = Math.ceil(d / f), p = Math.ceil(g / W.maxParallelRequests), S = [];
|
|
2500
|
+
for (; y < p; ) {
|
|
2498
2501
|
m = y * W.maxParallelRequests * f;
|
|
2499
2502
|
const v = ws({
|
|
2500
2503
|
queryConfig: { ...i, start: m },
|
|
@@ -2574,12 +2577,12 @@ async function Ps(t) {
|
|
|
2574
2577
|
d = (await e.queryAttributeBins(y, { signal: l })).features;
|
|
2575
2578
|
}
|
|
2576
2579
|
} catch (y) {
|
|
2577
|
-
const
|
|
2580
|
+
const g = o ?? (await mt(
|
|
2578
2581
|
ze(document.documentElement).t9nLocale,
|
|
2579
2582
|
gt("./assets/common/t9n"),
|
|
2580
2583
|
"messages."
|
|
2581
2584
|
)).errorStrings;
|
|
2582
|
-
throw new re(le.QueryFeaturesError,
|
|
2585
|
+
throw new re(le.QueryFeaturesError, g.errors.queryError, y);
|
|
2583
2586
|
}
|
|
2584
2587
|
}
|
|
2585
2588
|
if (f === !1) {
|
|
@@ -2636,23 +2639,23 @@ async function Is(t) {
|
|
|
2636
2639
|
dataFormat: f,
|
|
2637
2640
|
outputFormat: m,
|
|
2638
2641
|
typeKey: y,
|
|
2639
|
-
typeValue:
|
|
2640
|
-
fieldValue:
|
|
2642
|
+
typeValue: g,
|
|
2643
|
+
fieldValue: p,
|
|
2641
2644
|
slopePropertyList: S,
|
|
2642
|
-
interceptPropertyList:
|
|
2645
|
+
interceptPropertyList: x,
|
|
2643
2646
|
r2PropertyList: v
|
|
2644
|
-
} = xs,
|
|
2647
|
+
} = xs, b = `[{"${y}": "${g}", "${p}":"${u},${c}"}]`, B = await vs({
|
|
2645
2648
|
queryObject: i,
|
|
2646
2649
|
queryConfig: r,
|
|
2647
2650
|
outputFormat: m,
|
|
2648
2651
|
dataFormat: f,
|
|
2649
|
-
outAnalytics:
|
|
2652
|
+
outAnalytics: b,
|
|
2650
2653
|
errorStrings: n,
|
|
2651
2654
|
abortSignal: s
|
|
2652
2655
|
});
|
|
2653
2656
|
if (B !== void 0) {
|
|
2654
2657
|
let N = Number.NaN, T = Number.NaN;
|
|
2655
|
-
const { expr: w } =
|
|
2658
|
+
const { expr: w } = Wt(B, S), { expr: L } = Wt(B, x), { expr: A } = Wt(B, v);
|
|
2656
2659
|
w !== void 0 && Number.isFinite(B[w]) && (N = B[w]), L !== void 0 && Number.isFinite(B[L]) && (T = B[L]), A !== void 0 && Number.isFinite(B[A]) && (l = B[A]);
|
|
2657
2660
|
const { dataContextXMinField: I, dataContextXMaxField: P, dataContextYMinField: O, dataContextYMaxField: V } = C.scatterplotAggregationFields, $ = e.get(I) ?? Number.NaN, M = e.get(P) ?? Number.NaN, q = e.get(O) ?? Number.NaN, G = e.get(V) ?? Number.NaN, X = (M - $) / 100;
|
|
2658
2661
|
let H = $ - X, ae = Number.NaN;
|
|
@@ -2758,12 +2761,12 @@ function Qs(t) {
|
|
|
2758
2761
|
const { chartConfig: e, layer: i, selectionDataItems: a } = t;
|
|
2759
2762
|
let r;
|
|
2760
2763
|
if (a.length > 0) {
|
|
2761
|
-
const { x: n, y: s } = ks(e), o =
|
|
2764
|
+
const { x: n, y: s } = ks(e), o = Ot(i, n), u = Ot(i, s);
|
|
2762
2765
|
if (o !== void 0 && u !== void 0 && o !== u) {
|
|
2763
2766
|
let c = Number.MAX_SAFE_INTEGER, l = Number.MIN_SAFE_INTEGER, d = Number.MAX_SAFE_INTEGER, f = Number.MIN_SAFE_INTEGER;
|
|
2764
2767
|
a.forEach((m) => {
|
|
2765
|
-
const y = m[n],
|
|
2766
|
-
typeof y == "number" && (y < c && (c = y), y > l && (l = y)), typeof
|
|
2768
|
+
const y = m[n], g = m[s];
|
|
2769
|
+
typeof y == "number" && (y < c && (c = y), y > l && (l = y)), typeof g == "number" && (g < d && (d = g), g > f && (f = g));
|
|
2767
2770
|
}), c !== Number.MAX_SAFE_INTEGER && l !== Number.MIN_SAFE_INTEGER && d !== Number.MAX_SAFE_INTEGER && f !== Number.MIN_SAFE_INTEGER && (r = {
|
|
2768
2771
|
xBandId: o,
|
|
2769
2772
|
yBandId: u,
|
|
@@ -2936,35 +2939,35 @@ async function zs(t) {
|
|
|
2936
2939
|
valid: !0
|
|
2937
2940
|
};
|
|
2938
2941
|
else {
|
|
2939
|
-
const m = i.groupByFieldsForStatistics?.[0] ?? "", y = f.some((S) => S.query?.fetchNullValues),
|
|
2942
|
+
const m = i.groupByFieldsForStatistics?.[0] ?? "", y = f.some((S) => S.query?.fetchNullValues), g = /* @__PURE__ */ new Map();
|
|
2940
2943
|
for (const S of d) {
|
|
2941
|
-
const { groupKey:
|
|
2942
|
-
|
|
2944
|
+
const { groupKey: x } = Ei(S.attributes[m], y);
|
|
2945
|
+
x === C.nullValue && !y || (g.has(x) || g.set(x, []), g.get(x).push(S.attributes));
|
|
2943
2946
|
}
|
|
2944
|
-
const
|
|
2945
|
-
|
|
2946
|
-
const
|
|
2947
|
-
|
|
2947
|
+
const p = [];
|
|
2948
|
+
g.forEach((S) => {
|
|
2949
|
+
const x = {}, v = S[0][m], { display: b, original: B } = Ei(v, y);
|
|
2950
|
+
x[m] = b, x[C.xAxisField] = b, x[C.originalCategoryValue] = B, f.forEach((N) => {
|
|
2948
2951
|
const T = N.query?.outStatistics?.[0];
|
|
2949
2952
|
if (!T) {
|
|
2950
2953
|
const { name: O } = N;
|
|
2951
|
-
|
|
2954
|
+
x[O] = S[0][O];
|
|
2952
2955
|
return;
|
|
2953
2956
|
}
|
|
2954
2957
|
let w = S;
|
|
2955
2958
|
const L = N.query?.where;
|
|
2956
2959
|
L && (w = S.filter((O) => _s(O, L)));
|
|
2957
2960
|
const A = T.statisticType, I = T.onStatisticField, P = T.outStatisticFieldName;
|
|
2958
|
-
|
|
2961
|
+
x[P] = js({
|
|
2959
2962
|
features: w,
|
|
2960
2963
|
aggregationType: A,
|
|
2961
2964
|
onField: I
|
|
2962
2965
|
});
|
|
2963
|
-
}),
|
|
2966
|
+
}), p.push(x);
|
|
2964
2967
|
}), u = {
|
|
2965
2968
|
valid: !0,
|
|
2966
2969
|
data: {
|
|
2967
|
-
dataItems:
|
|
2970
|
+
dataItems: p
|
|
2968
2971
|
}
|
|
2969
2972
|
};
|
|
2970
2973
|
}
|
|
@@ -3027,7 +3030,7 @@ function Us(t) {
|
|
|
3027
3030
|
}
|
|
3028
3031
|
return r;
|
|
3029
3032
|
}
|
|
3030
|
-
const
|
|
3033
|
+
const ai = "PixelID", Ys = "Pixel ID", Zs = [
|
|
3031
3034
|
h.BarSeries,
|
|
3032
3035
|
h.HistogramSeries,
|
|
3033
3036
|
h.ScatterSeries
|
|
@@ -3076,8 +3079,8 @@ function Ra(t) {
|
|
|
3076
3079
|
const a = i.attributeTable.fields, r = a.find((n) => n.type === "oid")?.name;
|
|
3077
3080
|
r ? e = r : e = a.find((s) => s.name.toLowerCase() === "value")?.name;
|
|
3078
3081
|
} else
|
|
3079
|
-
e =
|
|
3080
|
-
return e ??
|
|
3082
|
+
e = ai;
|
|
3083
|
+
return e ?? ai;
|
|
3081
3084
|
}
|
|
3082
3085
|
function $a(t) {
|
|
3083
3086
|
const { layer: e, chartType: i, rasterInfo: a, popupTemplateFieldInfosEnabled: r } = t;
|
|
@@ -3109,7 +3112,7 @@ function qi(t) {
|
|
|
3109
3112
|
)?.label;
|
|
3110
3113
|
return d && d !== l.name && (l.alias = d), l;
|
|
3111
3114
|
}), n = [{
|
|
3112
|
-
name:
|
|
3115
|
+
name: ai,
|
|
3113
3116
|
alias: Ys,
|
|
3114
3117
|
type: U.OID
|
|
3115
3118
|
}, ...o];
|
|
@@ -3126,34 +3129,34 @@ async function hd(t, e) {
|
|
|
3126
3129
|
const i = await dt(t);
|
|
3127
3130
|
return $a({ layer: t, rasterInfo: i, popupTemplateFieldInfosEnabled: e });
|
|
3128
3131
|
}
|
|
3129
|
-
const ka =
|
|
3132
|
+
const ka = qt(
|
|
3130
3133
|
async (t, e) => {
|
|
3131
3134
|
const i = {}, a = t.layerDefinition;
|
|
3132
3135
|
i.definitionExpression = a?.definitionExpression, i.id = t.id, t.url !== void 0 && (i.url = t.url), t.itemId !== void 0 && t.layerDefinition?.id !== void 0 && (i.portalItem = { id: t.itemId });
|
|
3133
3136
|
const r = new Xr(i);
|
|
3134
|
-
return await
|
|
3137
|
+
return await Qt(r, e), r;
|
|
3135
3138
|
},
|
|
3136
3139
|
(t) => JSON.stringify(t, Object.keys(t).sort())
|
|
3137
3140
|
// stringify with sorted keys
|
|
3138
|
-
), Qa =
|
|
3141
|
+
), Qa = qt(
|
|
3139
3142
|
async (t, e) => {
|
|
3140
3143
|
const i = {};
|
|
3141
3144
|
i.id = t.id, t.url !== void 0 && (i.url = t.url), t.itemId !== void 0 && (i.portalItem = { id: t.itemId });
|
|
3142
3145
|
const a = new Jr(i);
|
|
3143
|
-
return await
|
|
3146
|
+
return await Qt(a, e), a;
|
|
3144
3147
|
},
|
|
3145
3148
|
(t) => JSON.stringify(t, Object.keys(t).sort())
|
|
3146
3149
|
// stringify with sorted keys
|
|
3147
|
-
), Ks =
|
|
3150
|
+
), Ks = qt(
|
|
3148
3151
|
async (t, e) => {
|
|
3149
3152
|
const i = {};
|
|
3150
3153
|
i.id = t.id, t.url !== void 0 && (i.url = t.url), t.itemId !== void 0 && (i.portalItem = { id: t.itemId });
|
|
3151
3154
|
const a = new Kr(i);
|
|
3152
|
-
return await
|
|
3155
|
+
return await Qt(a, e), a;
|
|
3153
3156
|
},
|
|
3154
3157
|
(t) => JSON.stringify(t, Object.keys(t).sort())
|
|
3155
3158
|
// stringify with sorted keys
|
|
3156
|
-
),
|
|
3159
|
+
), Ot = (t, e) => {
|
|
3157
3160
|
let i = -1;
|
|
3158
3161
|
if (!t.loaded)
|
|
3159
3162
|
throw new Error("Raster layer must be loaded to get its band ID by name");
|
|
@@ -3202,7 +3205,7 @@ async function eo(t) {
|
|
|
3202
3205
|
if (e !== void 0)
|
|
3203
3206
|
try {
|
|
3204
3207
|
const o = n && Ge.get(n)?.signal || void 0, u = z(e);
|
|
3205
|
-
u.loaded || await
|
|
3208
|
+
u.loaded || await Qt(u, o);
|
|
3206
3209
|
const l = {
|
|
3207
3210
|
geometry: ft(i.geometry) ?? u.fullExtent,
|
|
3208
3211
|
autoResample: !0,
|
|
@@ -3247,7 +3250,7 @@ function io(t) {
|
|
|
3247
3250
|
let e, i, a;
|
|
3248
3251
|
return t !== void 0 && (e = t.type, (e === se.UniqueValue || e === se.ClassBreaks) && (i = t.field ?? void 0, e === se.ClassBreaks && (a = t.normalizationField ?? void 0))), { rendererType: e, rendererField: i, rendererNormalizationField: a };
|
|
3249
3252
|
}
|
|
3250
|
-
const gi =
|
|
3253
|
+
const gi = qt(
|
|
3251
3254
|
async (t, e) => {
|
|
3252
3255
|
const i = t.featureCollection;
|
|
3253
3256
|
let a, r;
|
|
@@ -3329,7 +3332,7 @@ function Ce(t, e) {
|
|
|
3329
3332
|
function xd(t, e = []) {
|
|
3330
3333
|
return e.find((i) => i.name === t);
|
|
3331
3334
|
}
|
|
3332
|
-
function
|
|
3335
|
+
function kt(t) {
|
|
3333
3336
|
let e, i = !1;
|
|
3334
3337
|
if (ie(t))
|
|
3335
3338
|
e = [Ra(t)];
|
|
@@ -3344,7 +3347,7 @@ function ve(t) {
|
|
|
3344
3347
|
if (ie(t))
|
|
3345
3348
|
e = Ra(t);
|
|
3346
3349
|
else if (t) {
|
|
3347
|
-
const a =
|
|
3350
|
+
const a = kt(t);
|
|
3348
3351
|
i = a.isTraditionalTypeOID, a.idFields && (e = a.idFields[0]);
|
|
3349
3352
|
}
|
|
3350
3353
|
return { idField: e, isTraditionalTypeOID: i };
|
|
@@ -3452,18 +3455,18 @@ function Ha(t) {
|
|
|
3452
3455
|
distance: f,
|
|
3453
3456
|
units: m,
|
|
3454
3457
|
objectIds: y,
|
|
3455
|
-
spatialRelationship:
|
|
3458
|
+
spatialRelationship: g
|
|
3456
3459
|
} = o ?? {}, {
|
|
3457
|
-
where:
|
|
3460
|
+
where: p,
|
|
3458
3461
|
gdbVersion: S,
|
|
3459
|
-
timeExtent:
|
|
3462
|
+
timeExtent: x,
|
|
3460
3463
|
geometry: v,
|
|
3461
|
-
distance:
|
|
3464
|
+
distance: b,
|
|
3462
3465
|
units: B,
|
|
3463
3466
|
objectIds: N,
|
|
3464
3467
|
spatialRelationship: T
|
|
3465
3468
|
} = a ?? {}, w = s[0], { query: L } = w, { where: A } = L ?? {}, I = k(s), P = { ...L };
|
|
3466
|
-
return P.where = Y([u,
|
|
3469
|
+
return P.where = Y([u, p]), I !== F.BarAndLineSplitBy && I !== F.BoxPlotMonoFieldAndSplitBy && I !== F.BoxPlotMonoFieldAndCategoryAndSplitBy && I !== F.BoxPlotMultiFieldsAndSplitBy && I !== F.BarAndLineSplitByNoAggregation && (P.where = Y([P.where, A])), i.orderOptions?.orderByFields !== void 0 && (P.orderByFields = i.orderOptions.orderByFields), P.gdbVersion = S ?? c, P.timeExtent = yo(n?.timeExtent, x ?? l), P.geometry = ie(e) ? to({
|
|
3467
3470
|
queryObject: e,
|
|
3468
3471
|
defaultGeometry: v ?? d,
|
|
3469
3472
|
ignoreViewExtent: r,
|
|
@@ -3472,7 +3475,7 @@ function Ha(t) {
|
|
|
3472
3475
|
queryObject: e,
|
|
3473
3476
|
defaultGeometry: v ?? d,
|
|
3474
3477
|
ignoreViewExtent: r
|
|
3475
|
-
}), P.distance =
|
|
3478
|
+
}), P.distance = b ?? f, P.units = B ?? m, P.objectIds = N ?? y, P.spatialRelationship = T ?? g, L?.outStatistics?.[0]?.statisticType === D.Count && (P.returnDistinctValues = L?.returnDistinctValues ?? !1), P?.outStatistics?.forEach((O) => {
|
|
3476
3479
|
mi(O) && !("statisticParameters" in O) && (O.statisticParameters = {
|
|
3477
3480
|
value: W.defaultStatParameterValue
|
|
3478
3481
|
});
|
|
@@ -3529,7 +3532,7 @@ function Ad(t) {
|
|
|
3529
3532
|
const wd = {
|
|
3530
3533
|
getServerRestInfo: ja
|
|
3531
3534
|
};
|
|
3532
|
-
async function
|
|
3535
|
+
async function Qt(t, e) {
|
|
3533
3536
|
await t.load({ signal: e }), (la(t) || ua(t)) && await t.generateRasterInfo(t.rasterFunction, {
|
|
3534
3537
|
signal: e
|
|
3535
3538
|
});
|
|
@@ -3582,23 +3585,23 @@ function ft(t) {
|
|
|
3582
3585
|
function Wa(t) {
|
|
3583
3586
|
return t === void 0 ? ["*"] : Array.from(new Set(t));
|
|
3584
3587
|
}
|
|
3585
|
-
function
|
|
3586
|
-
const { queryType: e, queryObject: i, queryConfig: a, view: r, configTimeZone: n, dateField: s, useViewTimeZone: o } = t, { where: u, outStatistics: c, geometry: l, distance: d, units: f, timeExtent: m, returnDistinctValues: y } = a ?? {},
|
|
3587
|
-
let S = ge(
|
|
3588
|
-
const v =
|
|
3589
|
-
if (e === "AttributeBinsQuery" && a?.objectIds?.[0] !== void 0 && v && (
|
|
3588
|
+
function _t(t) {
|
|
3589
|
+
const { queryType: e, queryObject: i, queryConfig: a, view: r, configTimeZone: n, dateField: s, useViewTimeZone: o } = t, { where: u, outStatistics: c, geometry: l, distance: d, units: f, timeExtent: m, returnDistinctValues: y } = a ?? {}, g = z(i);
|
|
3590
|
+
let S = ge(g)?.createQuery() ?? new Br(), x;
|
|
3591
|
+
const v = kt(g).idFields;
|
|
3592
|
+
if (e === "AttributeBinsQuery" && a?.objectIds?.[0] !== void 0 && v && (x = `${v} IN (${a.objectIds.join(",")})`), e === "AttributeBinsQuery" && (S = new vr(S.toJSON()), Ce(i).find((T) => T.name === s)?.type !== U.DateOnly)) {
|
|
3590
3593
|
const T = Intl.DateTimeFormat().resolvedOptions().timeZone, w = o && r && "timeZone" in r ? r.timeZone : void 0;
|
|
3591
3594
|
let L = n ?? w ?? T;
|
|
3592
3595
|
L === "unknown" ? L = "Etc/UTC" : L === "system" && (L = T), S.outTimeZone = L;
|
|
3593
3596
|
}
|
|
3594
|
-
if (S.where = Y([S.where, u,
|
|
3595
|
-
const B = pn(
|
|
3597
|
+
if (S.where = Y([S.where, u, x]), "returnDistinctValues" in S && (S.returnDistinctValues = y ?? !1), c !== void 0) {
|
|
3598
|
+
const B = pn(g);
|
|
3596
3599
|
S.outStatistics = c.filter(
|
|
3597
3600
|
(N) => N.statisticType !== D.EnvelopeAggregate || B
|
|
3598
3601
|
).map((N) => Nr.fromJSON(N));
|
|
3599
3602
|
}
|
|
3600
|
-
const
|
|
3601
|
-
return
|
|
3603
|
+
const b = ft(l);
|
|
3604
|
+
return b !== void 0 && (S.geometry = b, a?.spatialRelationship && (S.spatialRelationship = a.spatialRelationship), ya(g) && (d !== void 0 && (S.distance = d), f !== void 0 && (S.units = f))), m && (S.timeExtent = new Ki({
|
|
3602
3605
|
start: m?.[0],
|
|
3603
3606
|
end: m?.[1]
|
|
3604
3607
|
})), mo(S) && (S.cacheHint = !0), S;
|
|
@@ -3616,29 +3619,29 @@ function po(t) {
|
|
|
3616
3619
|
return e;
|
|
3617
3620
|
}
|
|
3618
3621
|
function ho(t) {
|
|
3619
|
-
const { queryObject: e, queryConfig: i, temporalBinning: a, dateField: r, splitByField: n, axisTimeZone: s, view: o, syncViewTimeZone: u } = t, { unit: c, size: l, timeAggregationType: d, start: f, end: m, offset: y, outTimeZone:
|
|
3622
|
+
const { queryObject: e, queryConfig: i, temporalBinning: a, dateField: r, splitByField: n, axisTimeZone: s, view: o, syncViewTimeZone: u } = t, { unit: c, size: l, timeAggregationType: d, start: f, end: m, offset: y, outTimeZone: g } = a, p = z(e), S = _t({
|
|
3620
3623
|
queryType: "AttributeBinsQuery",
|
|
3621
3624
|
queryObject: e,
|
|
3622
3625
|
queryConfig: i,
|
|
3623
3626
|
// we look first into the outTimeZone defined at the series level (deprecated), then the tz coming from the axis config
|
|
3624
|
-
configTimeZone:
|
|
3627
|
+
configTimeZone: g ?? s,
|
|
3625
3628
|
view: o,
|
|
3626
3629
|
dateField: r,
|
|
3627
3630
|
useViewTimeZone: u ?? !1
|
|
3628
|
-
}),
|
|
3629
|
-
if (S.lowerBoundaryAlias =
|
|
3631
|
+
}), x = Ea(r);
|
|
3632
|
+
if (S.lowerBoundaryAlias = x.lowerBoundaryAlias, S.upperBoundaryAlias = x.upperBoundaryAlias, S.binParameters = {
|
|
3630
3633
|
type: "date",
|
|
3631
3634
|
field: r,
|
|
3632
3635
|
interval: { unit: c, value: l },
|
|
3633
3636
|
start: f,
|
|
3634
3637
|
end: m,
|
|
3635
3638
|
offset: y ? { unit: y.unit, value: y.size } : null
|
|
3636
|
-
}, S.binParameters.type === "date" && (
|
|
3637
|
-
const
|
|
3638
|
-
(!
|
|
3639
|
+
}, S.binParameters.type === "date" && (p?.capabilities?.queryAttributeBins?.supportsSnapToData && (S.binParameters.snapToData = po(d)), p?.capabilities?.queryAttributeBins?.supportsReturnFullIntervalBin && (S.binParameters.returnFullIntervalBin = !0)), !oe(n)) {
|
|
3640
|
+
const b = ge(p)?.fields.find((B) => B.name === n)?.type;
|
|
3641
|
+
(!b || b === "string" || b === "integer" || b === "small-integer" || b === "big-integer" || b === "double") && (S.binParameters.stackBy = {
|
|
3639
3642
|
type: "field",
|
|
3640
3643
|
value: n,
|
|
3641
|
-
valueType:
|
|
3644
|
+
valueType: b === "string" ? "string" : "integer"
|
|
3642
3645
|
});
|
|
3643
3646
|
}
|
|
3644
3647
|
return S;
|
|
@@ -3737,7 +3740,7 @@ function Fo(t) {
|
|
|
3737
3740
|
configTimeZone: c,
|
|
3738
3741
|
view: l,
|
|
3739
3742
|
syncViewTimeZone: d
|
|
3740
|
-
} = t, f = Ce(e), m = f.find((N) => N.name === a)?.type, y = f.find((N) => N.name === r)?.type,
|
|
3743
|
+
} = t, f = Ce(e), m = f.find((N) => N.name === a)?.type, y = f.find((N) => N.name === r)?.type, g = _t({
|
|
3741
3744
|
queryType: "AttributeBinsQuery",
|
|
3742
3745
|
queryObject: e,
|
|
3743
3746
|
queryConfig: i,
|
|
@@ -3746,18 +3749,18 @@ function Fo(t) {
|
|
|
3746
3749
|
dateField: a,
|
|
3747
3750
|
useViewTimeZone: d ?? !1
|
|
3748
3751
|
});
|
|
3749
|
-
|
|
3752
|
+
g.binParameters = {
|
|
3750
3753
|
type: "fixed-interval",
|
|
3751
3754
|
interval: 1
|
|
3752
|
-
},
|
|
3753
|
-
const
|
|
3755
|
+
}, g.lowerBoundaryAlias = W.heatChartLowerBoundaryAlias, g.upperBoundaryAlias = W.heatChartUpperBoundaryAlias, o !== void 0 && (g.binParameters.firstDayOfWeek = o);
|
|
3756
|
+
const p = Ri({
|
|
3754
3757
|
temporalBinning: n,
|
|
3755
3758
|
xOrY: a,
|
|
3756
3759
|
xOrYFieldType: m,
|
|
3757
3760
|
addIntervalStatement: !1,
|
|
3758
3761
|
includeLeapDay: u
|
|
3759
|
-
}), { field: S, expression:
|
|
3760
|
-
S ?
|
|
3762
|
+
}), { field: S, expression: x, start: v, end: b } = p;
|
|
3763
|
+
S ? g.binParameters.field = S : x && (g.binParameters.expression = x, g.binParameters.expressionValueType = "integer", g.binParameters.type === "fixed-interval" && (v !== void 0 && (g.binParameters.start = v), b !== void 0 && (g.binParameters.end = b)));
|
|
3761
3764
|
const B = Ri({
|
|
3762
3765
|
temporalBinning: s,
|
|
3763
3766
|
xOrY: r,
|
|
@@ -3765,15 +3768,15 @@ function Fo(t) {
|
|
|
3765
3768
|
addIntervalStatement: !1,
|
|
3766
3769
|
includeLeapDay: u
|
|
3767
3770
|
});
|
|
3768
|
-
return B.field ?
|
|
3771
|
+
return B.field ? g.binParameters.stackBy = { type: "field", value: B.field } : B.expression && (g.binParameters.stackBy = {
|
|
3769
3772
|
type: "expression",
|
|
3770
3773
|
value: B.expression,
|
|
3771
3774
|
valueType: "integer",
|
|
3772
3775
|
alias: r
|
|
3773
|
-
}),
|
|
3776
|
+
}), g;
|
|
3774
3777
|
}
|
|
3775
3778
|
function bo(t) {
|
|
3776
|
-
const { queryObject: e, queryConfig: i, xStep: a, xMin: r, xMax: n, x: s, y: o, yStep: u } = t, c =
|
|
3779
|
+
const { queryObject: e, queryConfig: i, xStep: a, xMin: r, xMax: n, x: s, y: o, yStep: u } = t, c = _t({
|
|
3777
3780
|
queryType: "AttributeBinsQuery",
|
|
3778
3781
|
queryObject: e,
|
|
3779
3782
|
queryConfig: i,
|
|
@@ -3794,7 +3797,7 @@ function bo(t) {
|
|
|
3794
3797
|
}, c;
|
|
3795
3798
|
}
|
|
3796
3799
|
function hi(t) {
|
|
3797
|
-
const { queryObject: e, queryConfig: i, maxRecordCountFactor: a } = t, { groupByFieldsForStatistics: r, orderByFields: n, gdbVersion: s, start: o, num: u, outFields: c } = i ?? {}, l =
|
|
3800
|
+
const { queryObject: e, queryConfig: i, maxRecordCountFactor: a } = t, { groupByFieldsForStatistics: r, orderByFields: n, gdbVersion: s, start: o, num: u, outFields: c } = i ?? {}, l = _t({
|
|
3798
3801
|
queryType: "Query",
|
|
3799
3802
|
queryObject: e,
|
|
3800
3803
|
queryConfig: i,
|
|
@@ -3854,7 +3857,7 @@ function Ua(t) {
|
|
|
3854
3857
|
return e;
|
|
3855
3858
|
}
|
|
3856
3859
|
async function No(t) {
|
|
3857
|
-
const { queryObject: e, fieldName: i, queryConfig: a, errorStrings: r, abortKey: n, abortSignal: s } = t, o = z(e), { idField: u, isTraditionalTypeOID: c } = ve(o), l = c ? u : "*", d = `${D.Count}_${u}`, f = `${D.Count}_${i}`, m = `${D.Minimum}_${i}`, y = `${D.Maximum}_${i}`,
|
|
3860
|
+
const { queryObject: e, fieldName: i, queryConfig: a, errorStrings: r, abortKey: n, abortSignal: s } = t, o = z(e), { idField: u, isTraditionalTypeOID: c } = ve(o), l = c ? u : "*", d = `${D.Count}_${u}`, f = `${D.Count}_${i}`, m = `${D.Minimum}_${i}`, y = `${D.Maximum}_${i}`, g = {
|
|
3858
3861
|
...a,
|
|
3859
3862
|
outStatistics: [
|
|
3860
3863
|
{
|
|
@@ -3878,14 +3881,14 @@ async function No(t) {
|
|
|
3878
3881
|
outStatisticFieldName: y
|
|
3879
3882
|
}
|
|
3880
3883
|
]
|
|
3881
|
-
},
|
|
3884
|
+
}, p = await xt({
|
|
3882
3885
|
queryObject: e,
|
|
3883
|
-
queryConfig:
|
|
3886
|
+
queryConfig: g,
|
|
3884
3887
|
errorStrings: r,
|
|
3885
3888
|
abortKey: n,
|
|
3886
3889
|
abortSignal: s
|
|
3887
|
-
}), S =
|
|
3888
|
-
return { countExcludingNulls:
|
|
3890
|
+
}), S = p.get(d) ?? Number.NaN, x = p.get(f) ?? Number.NaN, v = p.get(m) ?? Number.NaN, b = p.get(y) ?? Number.NaN;
|
|
3891
|
+
return { countExcludingNulls: x, countIncludingNulls: S, min: v, max: b };
|
|
3889
3892
|
}
|
|
3890
3893
|
async function To(t) {
|
|
3891
3894
|
const { queryConfig: e, chartConfig: i, queryObject: a, errorStrings: r, abortKey: n, abortSignal: s } = t, o = i.series[0], { x: u, dataTransformationType: c } = o;
|
|
@@ -3897,11 +3900,11 @@ async function To(t) {
|
|
|
3897
3900
|
errorStrings: r,
|
|
3898
3901
|
abortKey: n,
|
|
3899
3902
|
abortSignal: s
|
|
3900
|
-
}),
|
|
3903
|
+
}), g = Co(c, m), p = f < 2 || m === y, S = { ...e };
|
|
3901
3904
|
return S.where = Y([S.where, `${u} is not null`]), {
|
|
3902
3905
|
rawData: l,
|
|
3903
|
-
dataCompatibleWithTransformation:
|
|
3904
|
-
dataCountIncompatible:
|
|
3906
|
+
dataCompatibleWithTransformation: g,
|
|
3907
|
+
dataCountIncompatible: p,
|
|
3905
3908
|
countExcludingNulls: f,
|
|
3906
3909
|
countIncludingNulls: d
|
|
3907
3910
|
};
|
|
@@ -3971,18 +3974,18 @@ async function Mo(t) {
|
|
|
3971
3974
|
abortSignal: u
|
|
3972
3975
|
} = t, c = e.series[0], { dataTransformationType: l } = c;
|
|
3973
3976
|
let d = { valid: !0 };
|
|
3974
|
-
const f = z(a), y = ft(i?.geometry)?.extent?.toJSON() !== void 0,
|
|
3977
|
+
const f = z(a), y = ft(i?.geometry)?.extent?.toJSON() !== void 0, g = s, p = wo({
|
|
3975
3978
|
seriesConfig: c,
|
|
3976
3979
|
layer: f,
|
|
3977
|
-
view:
|
|
3980
|
+
view: g,
|
|
3978
3981
|
useFeaturesInView: y,
|
|
3979
3982
|
queryConfig: i,
|
|
3980
3983
|
abortSignal: u
|
|
3981
3984
|
});
|
|
3982
3985
|
let S;
|
|
3983
|
-
if (
|
|
3984
|
-
geometry:
|
|
3985
|
-
}),
|
|
3986
|
+
if (g !== void 0 && (S = new wi({
|
|
3987
|
+
geometry: g.extent
|
|
3988
|
+
}), g.extent !== void 0 && ya(f))) {
|
|
3986
3989
|
const { distance: A, units: I } = i;
|
|
3987
3990
|
A !== void 0 && (S.distance = A), I !== void 0 && (S.units = I);
|
|
3988
3991
|
}
|
|
@@ -3990,23 +3993,23 @@ async function Mo(t) {
|
|
|
3990
3993
|
const A = { start: i.timeExtent[0], end: i.timeExtent[1] };
|
|
3991
3994
|
S === void 0 ? S = new wi({ timeExtent: A }) : S.timeExtent = A;
|
|
3992
3995
|
}
|
|
3993
|
-
|
|
3994
|
-
let
|
|
3995
|
-
|
|
3996
|
+
p.filter = S;
|
|
3997
|
+
let x;
|
|
3998
|
+
p.outStatisticTypes = { exclude: ["median"] };
|
|
3996
3999
|
try {
|
|
3997
|
-
|
|
4000
|
+
x = await Li(p);
|
|
3998
4001
|
} catch (A) {
|
|
3999
4002
|
throw new re(le.QueryFeaturesError, o.errors.queryError, A);
|
|
4000
4003
|
}
|
|
4001
|
-
|
|
4004
|
+
p.outStatisticTypes = { include: ["median"] };
|
|
4002
4005
|
try {
|
|
4003
|
-
const A = await Li(
|
|
4004
|
-
A?.median && (
|
|
4006
|
+
const A = await Li(p);
|
|
4007
|
+
A?.median && (x.median = A.median);
|
|
4005
4008
|
} catch {
|
|
4006
4009
|
}
|
|
4007
|
-
|
|
4008
|
-
const { avg: v, count:
|
|
4009
|
-
if (
|
|
4010
|
+
x = Ao(x);
|
|
4011
|
+
const { avg: v, count: b, stddev: B, min: N, max: T, sum: w, median: L } = x;
|
|
4012
|
+
if (b === 0)
|
|
4010
4013
|
d = {
|
|
4011
4014
|
...Ga(l)
|
|
4012
4015
|
};
|
|
@@ -4014,11 +4017,11 @@ async function Mo(t) {
|
|
|
4014
4017
|
const A = Lo({
|
|
4015
4018
|
seriesConfig: c,
|
|
4016
4019
|
layer: f,
|
|
4017
|
-
view:
|
|
4020
|
+
view: g,
|
|
4018
4021
|
useFeaturesInView: y,
|
|
4019
4022
|
minValue: Bo(N),
|
|
4020
4023
|
maxValue: T,
|
|
4021
|
-
valueExpression:
|
|
4024
|
+
valueExpression: p.valueExpression,
|
|
4022
4025
|
queryConfig: i,
|
|
4023
4026
|
abortSignal: u
|
|
4024
4027
|
});
|
|
@@ -4055,7 +4058,7 @@ async function Ya(t) {
|
|
|
4055
4058
|
dataCompatibleWithTransformation: f,
|
|
4056
4059
|
dataCountIncompatible: m,
|
|
4057
4060
|
countIncludingNulls: y,
|
|
4058
|
-
countExcludingNulls:
|
|
4061
|
+
countExcludingNulls: g
|
|
4059
4062
|
} = await To({
|
|
4060
4063
|
queryObject: a,
|
|
4061
4064
|
chartConfig: e,
|
|
@@ -4069,7 +4072,7 @@ async function Ya(t) {
|
|
|
4069
4072
|
queryObject: a,
|
|
4070
4073
|
queryConfig: i,
|
|
4071
4074
|
countIncludingNulls: y,
|
|
4072
|
-
countExcludingNulls:
|
|
4075
|
+
countExcludingNulls: g,
|
|
4073
4076
|
view: o,
|
|
4074
4077
|
abortSignal: n,
|
|
4075
4078
|
errorStrings: s
|
|
@@ -4181,7 +4184,7 @@ function Za(t) {
|
|
|
4181
4184
|
const { lang: e, t9nLocale: i } = ze(t);
|
|
4182
4185
|
return qo(e) ? e : i;
|
|
4183
4186
|
}
|
|
4184
|
-
function
|
|
4187
|
+
function It(t) {
|
|
4185
4188
|
const { dataInfo: e, chartType: i, subError: a } = t;
|
|
4186
4189
|
switch (e.valid = !1, i) {
|
|
4187
4190
|
case h.BarSeries:
|
|
@@ -4222,75 +4225,75 @@ function $d(t) {
|
|
|
4222
4225
|
errorStrings: l
|
|
4223
4226
|
} = t;
|
|
4224
4227
|
let d = l.errors.defaultInvalidChart, f;
|
|
4225
|
-
const m = new Intl.NumberFormat(o), y = ut(i), { maxCategoryCount:
|
|
4226
|
-
let
|
|
4228
|
+
const m = new Intl.NumberFormat(o), y = ut(i), { maxCategoryCount: g } = y;
|
|
4229
|
+
let p = l.modalHeaders.invalidChart;
|
|
4227
4230
|
switch (e) {
|
|
4228
4231
|
case j.BarElementExceedsLimit: {
|
|
4229
|
-
|
|
4230
|
-
let
|
|
4231
|
-
r !== void 0 && (r <= y.maxBarChartSeriesCount ? r === 1 ? (
|
|
4232
|
-
const B = m.format(
|
|
4233
|
-
d = Be(
|
|
4232
|
+
p = l.modalHeaders.tooManyFeatures;
|
|
4233
|
+
let x = Number.NaN, v = Number.NaN, b = "";
|
|
4234
|
+
r !== void 0 && (r <= y.maxBarChartSeriesCount ? r === 1 ? (b = l.errors.uniqueSeriesBarCountCannotExceedLimit, x = y.maxBarUniqueSeriesCountTotal) : r === 2 ? (b = l.errors.twoSeriesBarCountCannotExceedLimit, x = y.maxBarTwoSeriesCountTotal, v = y.maxBarTwoSeriesCountPerSeries) : r > 2 && (b = l.errors.threePlusSeriesBarCountCannotExceedLimit, x = y.maxBarThreePlusSeriesCountTotal, v = y.maxBarThreePlusSeriesCountPerSeries) : (b = l.errors.barSeriesCountCannotExceedLimit, v = y.maxBarChartSeriesCount));
|
|
4235
|
+
const B = m.format(x), N = m.format(v), T = a !== void 0 ? m.format(a) : "";
|
|
4236
|
+
d = Be(b, {
|
|
4234
4237
|
totalLimit: B,
|
|
4235
4238
|
seriesLimit: N,
|
|
4236
4239
|
elementCount: T
|
|
4237
4240
|
}), f = {
|
|
4238
4241
|
actualCount: a ?? Number.NaN,
|
|
4239
|
-
totalLimit:
|
|
4242
|
+
totalLimit: x,
|
|
4240
4243
|
seriesLimit: v
|
|
4241
4244
|
};
|
|
4242
4245
|
break;
|
|
4243
4246
|
}
|
|
4244
4247
|
case j.LineChartExceedsLimit:
|
|
4245
4248
|
{
|
|
4246
|
-
|
|
4247
|
-
let
|
|
4248
|
-
r !== void 0 && (r <= y.maxLineChartSeriesCount ? r === 1 ? (
|
|
4249
|
-
const B = m.format(
|
|
4250
|
-
d = Be(
|
|
4249
|
+
p = l.modalHeaders.tooManyFeatures;
|
|
4250
|
+
let x = Number.NaN, v = Number.NaN, b = "";
|
|
4251
|
+
r !== void 0 && (r <= y.maxLineChartSeriesCount ? r === 1 ? (b = u ? l.errors.uniqueTemporalSeriesLineCountCannotExceedLimit : l.errors.uniqueSeriesLineCountCannotExceedLimit, x = y.maxLineUniqueSeriesCountTotal) : r === 2 ? (b = u ? l.errors.twoTemporalSeriesLineCountCannotExceedLimit : l.errors.twoSeriesLineCountCannotExceedLimit, x = y.maxLineTwoSeriesCountTotal, v = y.maxLineTwoSeriesCountPerSeries) : r > 2 && (b = u ? l.errors.threePlusTemporalSeriesLineCountCannotExceedLimit : l.errors.threePlusSeriesLineCountCannotExceedLimit, x = y.maxLineThreePlusSeriesCountTotal, v = y.maxLineThreePlusSeriesCountPerSeries) : (b = l.errors.lineSeriesCountCannotExceedLimit, v = y.maxLineChartSeriesCount));
|
|
4252
|
+
const B = m.format(x), N = m.format(v), T = a !== void 0 ? m.format(a) : "";
|
|
4253
|
+
d = Be(b, {
|
|
4251
4254
|
elementCount: T,
|
|
4252
4255
|
seriesLimit: N,
|
|
4253
4256
|
totalLimit: B
|
|
4254
4257
|
}), f = {
|
|
4255
4258
|
actualCount: a ?? Number.NaN,
|
|
4256
|
-
totalLimit:
|
|
4259
|
+
totalLimit: x,
|
|
4257
4260
|
seriesLimit: v
|
|
4258
4261
|
};
|
|
4259
4262
|
}
|
|
4260
4263
|
break;
|
|
4261
4264
|
case j.BoxPlotExceedsLimit:
|
|
4262
4265
|
{
|
|
4263
|
-
|
|
4264
|
-
let
|
|
4265
|
-
r !== void 0 && (r <= y.maxBoxPlotSeriesCount ? r === 1 ? (
|
|
4266
|
-
const B = m.format(
|
|
4267
|
-
d = Be(
|
|
4266
|
+
p = l.modalHeaders.tooManyFeatures;
|
|
4267
|
+
let x = Number.NaN, v = Number.NaN, b = "";
|
|
4268
|
+
r !== void 0 && (r <= y.maxBoxPlotSeriesCount ? r === 1 ? (b = l.errors.uniqueSeriesBoxCountCannotExceedLimit, x = y.maxBoxUniqueSeriesCountTotal) : r === 2 ? (b = l.errors.twoSeriesBoxCountCannotExceedLimit, x = y.maxBoxTwoSeriesCountTotal, v = y.maxBoxTwoSeriesCountPerSeries) : r > 2 && (b = l.errors.threePlusBoxLineCountCannotExceedLimit, x = y.maxBoxThreePlusSeriesCountTotal, v = y.maxBoxThreePlusSeriesCountPerSeries) : (b = l.errors.boxSeriesCountCannotExceedLimit, v = y.maxBoxPlotSeriesCount));
|
|
4269
|
+
const B = m.format(x), N = m.format(v), T = a !== void 0 ? m.format(a) : "";
|
|
4270
|
+
d = Be(b, {
|
|
4268
4271
|
elementCount: T,
|
|
4269
4272
|
seriesLimit: N,
|
|
4270
4273
|
totalLimit: B
|
|
4271
4274
|
}), f = {
|
|
4272
4275
|
actualCount: a ?? Number.NaN,
|
|
4273
|
-
totalLimit:
|
|
4276
|
+
totalLimit: x,
|
|
4274
4277
|
seriesLimit: v
|
|
4275
4278
|
};
|
|
4276
4279
|
}
|
|
4277
4280
|
break;
|
|
4278
4281
|
case j.BoxPlotOutliersExceedsLimit:
|
|
4279
4282
|
{
|
|
4280
|
-
|
|
4281
|
-
const
|
|
4282
|
-
d = Be(
|
|
4283
|
-
totalLimit:
|
|
4283
|
+
p = l.modalHeaders.tooManyFeatures;
|
|
4284
|
+
const x = l.errors.boxSeriesOutlierCannotExceedLimit, v = y.maxBoxPlotOutlierLimit, b = m.format(v);
|
|
4285
|
+
d = Be(x, {
|
|
4286
|
+
totalLimit: b
|
|
4284
4287
|
}), f = { actualCount: a ?? Number.NaN, totalLimit: v };
|
|
4285
4288
|
}
|
|
4286
4289
|
break;
|
|
4287
4290
|
case j.HeatChartExceedsLimit:
|
|
4288
4291
|
{
|
|
4289
|
-
|
|
4290
|
-
const
|
|
4291
|
-
d = Be(
|
|
4292
|
+
p = l.modalHeaders.tooManyFeatures;
|
|
4293
|
+
const x = l.errors.heatChartCannotExceedLimit, v = y.maxHeatChartCellLimit, b = m.format(v), B = a !== void 0 ? m.format(a) : "";
|
|
4294
|
+
d = Be(x, {
|
|
4292
4295
|
featureCount: B,
|
|
4293
|
-
totalLimit:
|
|
4296
|
+
totalLimit: b
|
|
4294
4297
|
}), f = {
|
|
4295
4298
|
actualCount: a ?? Number.NaN,
|
|
4296
4299
|
totalLimit: v
|
|
@@ -4299,11 +4302,11 @@ function $d(t) {
|
|
|
4299
4302
|
break;
|
|
4300
4303
|
case j.PieChartExceedsLimit:
|
|
4301
4304
|
{
|
|
4302
|
-
|
|
4303
|
-
const
|
|
4304
|
-
d = Be(
|
|
4305
|
+
p = l.modalHeaders.tooManyFeatures;
|
|
4306
|
+
const x = l.errors.pieChartSlicesCannotExceedLimit, v = y.maxPieChartSliceCountTotal, b = m.format(v), B = a !== void 0 ? m.format(a) : "";
|
|
4307
|
+
d = Be(x, {
|
|
4305
4308
|
sliceCount: B,
|
|
4306
|
-
totalLimit:
|
|
4309
|
+
totalLimit: b
|
|
4307
4310
|
}), f = {
|
|
4308
4311
|
actualCount: a ?? Number.NaN,
|
|
4309
4312
|
totalLimit: v
|
|
@@ -4312,11 +4315,11 @@ function $d(t) {
|
|
|
4312
4315
|
break;
|
|
4313
4316
|
case j.GaugeExceedsLimit:
|
|
4314
4317
|
{
|
|
4315
|
-
|
|
4316
|
-
const
|
|
4317
|
-
d = Be(
|
|
4318
|
+
p = l.modalHeaders.tooManyFeatures;
|
|
4319
|
+
const x = l.errors.gaugeCannotExceedLimit, v = y.maxGaugeByFeaturesLimit, b = m.format(v), B = a !== void 0 ? m.format(a) : "";
|
|
4320
|
+
d = Be(x, {
|
|
4318
4321
|
featureCount: B,
|
|
4319
|
-
totalLimit:
|
|
4322
|
+
totalLimit: b
|
|
4320
4323
|
}), f = {
|
|
4321
4324
|
actualCount: a ?? Number.NaN,
|
|
4322
4325
|
totalLimit: v
|
|
@@ -4324,22 +4327,22 @@ function $d(t) {
|
|
|
4324
4327
|
}
|
|
4325
4328
|
break;
|
|
4326
4329
|
case j.PieChartMixOfNegativePositiveSlices:
|
|
4327
|
-
|
|
4330
|
+
p = l.modalHeaders.cannotCombineNegativeAndPositiveSlices, d = l.errors.pieChartCannotHaveMixtureOfPositiveAndNegativeSlices;
|
|
4328
4331
|
break;
|
|
4329
4332
|
case j.NegativeValueInSqrtCalculation:
|
|
4330
|
-
|
|
4333
|
+
p = l.modalHeaders.invalidData, d = l.errors.negativeValueInDataForSqrtTransformation;
|
|
4331
4334
|
break;
|
|
4332
4335
|
case j.NegativeValueInLogCalculation:
|
|
4333
|
-
|
|
4336
|
+
p = l.modalHeaders.invalidData, d = l.errors.negativeValueInDataForLogTransformation;
|
|
4334
4337
|
break;
|
|
4335
4338
|
case j.HistogramEmptyField:
|
|
4336
|
-
s === !0 ? (
|
|
4339
|
+
s === !0 ? (p = l.modalHeaders.noDataAvailable, d = l.errors.noDataFBSMessage) : Ee(n) ? (p = l.modalHeaders.noDataAvailable, d = l.errors.noDataFBEMessage) : (p = l.modalHeaders.invalidChart, d = l.errors.histogramEmptyField);
|
|
4337
4340
|
break;
|
|
4338
4341
|
case j.EmptyDataSet:
|
|
4339
|
-
|
|
4342
|
+
p = l.modalHeaders.noDataAvailable, s === !0 ? d = l.errors.noDataFBSMessage : Ee(n) ? d = l.errors.noDataFBEMessage : d = l.errors.noDataMessage;
|
|
4340
4343
|
break;
|
|
4341
4344
|
case j.NoValue:
|
|
4342
|
-
c && a && (
|
|
4345
|
+
c && a && (p = void 0, d = l.errors.noValue);
|
|
4343
4346
|
break;
|
|
4344
4347
|
case j.NegativeValueInXAxisLogScale:
|
|
4345
4348
|
d = l.errors.logarithmicXAxisNotPossible;
|
|
@@ -4349,16 +4352,16 @@ function $d(t) {
|
|
|
4349
4352
|
break;
|
|
4350
4353
|
case j.BadData:
|
|
4351
4354
|
}
|
|
4352
|
-
if (d === l.errors.defaultInvalidChart && (e === j.BarElementExceedsLimit || e === j.LineChartExceedsLimit || e === j.HeatChartExceedsLimit || e === j.PieChartExceedsLimit || e === j.GaugeExceedsLimit || e === j.BoxPlotExceedsLimit) && typeof a == "number" && typeof r == "number" && a / r >
|
|
4353
|
-
const
|
|
4355
|
+
if (d === l.errors.defaultInvalidChart && (e === j.BarElementExceedsLimit || e === j.LineChartExceedsLimit || e === j.HeatChartExceedsLimit || e === j.PieChartExceedsLimit || e === j.GaugeExceedsLimit || e === j.BoxPlotExceedsLimit) && typeof a == "number" && typeof r == "number" && a / r > g) {
|
|
4356
|
+
const x = a / r;
|
|
4354
4357
|
d = Be(l.errors.categoryCountCannotExceedLimit, {
|
|
4355
|
-
categoryCount: m.format(
|
|
4356
|
-
maxCategoryCount: m.format(
|
|
4358
|
+
categoryCount: m.format(x),
|
|
4359
|
+
maxCategoryCount: m.format(g)
|
|
4357
4360
|
});
|
|
4358
4361
|
}
|
|
4359
4362
|
return {
|
|
4360
4363
|
keyword: e ?? j.BadData,
|
|
4361
|
-
header:
|
|
4364
|
+
header: p,
|
|
4362
4365
|
message: d,
|
|
4363
4366
|
params: f
|
|
4364
4367
|
};
|
|
@@ -4390,10 +4393,10 @@ function Si(t) {
|
|
|
4390
4393
|
y: a,
|
|
4391
4394
|
chartSubType: i,
|
|
4392
4395
|
splitByValue: r
|
|
4393
|
-
}),
|
|
4394
|
-
if (
|
|
4395
|
-
let
|
|
4396
|
-
if (Number.isFinite(
|
|
4396
|
+
}), g = e[y];
|
|
4397
|
+
if (g != null) {
|
|
4398
|
+
let p = Number(g);
|
|
4399
|
+
if (Number.isFinite(p)) {
|
|
4397
4400
|
u = {
|
|
4398
4401
|
...u,
|
|
4399
4402
|
key: m,
|
|
@@ -4401,7 +4404,7 @@ function Si(t) {
|
|
|
4401
4404
|
standardizeValues: !0
|
|
4402
4405
|
};
|
|
4403
4406
|
let S = K(u);
|
|
4404
|
-
if (o[S] = si({ mean: d, stdDev: f, value:
|
|
4407
|
+
if (o[S] = si({ mean: d, stdDev: f, value: p }), m === E.Min || m === E.Max) {
|
|
4405
4408
|
u = {
|
|
4406
4409
|
...u,
|
|
4407
4410
|
key: m,
|
|
@@ -4412,11 +4415,11 @@ function Si(t) {
|
|
|
4412
4415
|
standardizeValues: !1,
|
|
4413
4416
|
splitByValue: r
|
|
4414
4417
|
};
|
|
4415
|
-
const
|
|
4416
|
-
|
|
4418
|
+
const x = K(u);
|
|
4419
|
+
p = Number(e[x]), Number.isFinite(p) && (o[S] = si({
|
|
4417
4420
|
mean: d,
|
|
4418
4421
|
stdDev: f,
|
|
4419
|
-
value:
|
|
4422
|
+
value: p
|
|
4420
4423
|
}));
|
|
4421
4424
|
}
|
|
4422
4425
|
}
|
|
@@ -4547,32 +4550,32 @@ function ki(t) {
|
|
|
4547
4550
|
const { yField: e, xField: i, xValue: a, splitByField: r, splitByValue: n, outlierMaxThreshold: s, outlierMinThreshold: o, target: u } = t;
|
|
4548
4551
|
let c;
|
|
4549
4552
|
if (i !== void 0 && a !== void 0) {
|
|
4550
|
-
const m = typeof a != "string" ? a : `'${
|
|
4553
|
+
const m = typeof a != "string" ? a : `'${Xt(a)}'`;
|
|
4551
4554
|
c = `${i}=${m.toString()}`;
|
|
4552
4555
|
}
|
|
4553
4556
|
let l;
|
|
4554
4557
|
if (r !== void 0 && n !== void 0) {
|
|
4555
|
-
const m = typeof n != "string" ? n : `'${
|
|
4558
|
+
const m = typeof n != "string" ? n : `'${Xt(n)}'`;
|
|
4556
4559
|
l = `${r}=${m.toString()}`;
|
|
4557
4560
|
}
|
|
4558
4561
|
let d;
|
|
4559
4562
|
return u === "outliers" && o !== s ? d = `(${e}<${o} OR ${e}>${s})` : u === "alternativeData" && (o === s ? d = `(${e}=${o})` : d = `(${e}>=${o} AND ${e}<=${s})`), [c, l, d].filter((m) => m !== void 0).join(" AND ");
|
|
4560
4563
|
}
|
|
4561
4564
|
function Xa(t) {
|
|
4562
|
-
const { data: e, yField: i, x: a, chartSubType: r, splitByField: n } = t, s = r === F.BoxPlotMonoField || r === F.BoxPlotMonoFieldAndCategory || r === F.BoxPlotMonoFieldAndSplitBy || r === F.BoxPlotMonoFieldAndCategoryAndSplitBy ? void 0 : i, o = it(s), u = [], c = [], { maxOperandsPerWhereClause: l } =
|
|
4565
|
+
const { data: e, yField: i, x: a, chartSubType: r, splitByField: n } = t, s = r === F.BoxPlotMonoField || r === F.BoxPlotMonoFieldAndCategory || r === F.BoxPlotMonoFieldAndSplitBy || r === F.BoxPlotMonoFieldAndCategoryAndSplitBy ? void 0 : i, o = it(s), u = [], c = [], { maxOperandsPerWhereClause: l } = $t();
|
|
4563
4566
|
let d = [], f = [], m = 1;
|
|
4564
|
-
return e.forEach((y,
|
|
4565
|
-
const { outlierMinThreshold:
|
|
4566
|
-
if (typeof
|
|
4567
|
-
const
|
|
4567
|
+
return e.forEach((y, g) => {
|
|
4568
|
+
const { outlierMinThreshold: p, outlierMaxThreshold: S } = Ho(y, o);
|
|
4569
|
+
if (typeof p == "number" && typeof S == "number") {
|
|
4570
|
+
const x = {
|
|
4568
4571
|
yField: i,
|
|
4569
|
-
outlierMinThreshold:
|
|
4572
|
+
outlierMinThreshold: p,
|
|
4570
4573
|
outlierMaxThreshold: S
|
|
4571
4574
|
};
|
|
4572
|
-
(r === F.BoxPlotMonoFieldAndCategory || r === F.BoxPlotMultiFieldsAndCategory || r === F.BoxPlotMonoFieldAndCategoryAndSplitBy) && a !== void 0 && a in y && (
|
|
4575
|
+
(r === F.BoxPlotMonoFieldAndCategory || r === F.BoxPlotMultiFieldsAndCategory || r === F.BoxPlotMonoFieldAndCategoryAndSplitBy) && a !== void 0 && a in y && (x.xField = a, x.xValue = fi({
|
|
4573
4576
|
value: y[a],
|
|
4574
4577
|
dataContext: y
|
|
4575
|
-
})), (r === F.BoxPlotMonoFieldAndSplitBy || r === F.BoxPlotMultiFieldsAndSplitBy || r === F.BoxPlotMonoFieldAndCategoryAndSplitBy) && n !== void 0 && n in y && (
|
|
4578
|
+
})), (r === F.BoxPlotMonoFieldAndSplitBy || r === F.BoxPlotMultiFieldsAndSplitBy || r === F.BoxPlotMonoFieldAndCategoryAndSplitBy) && n !== void 0 && n in y && (x.splitByField = n, x.splitByValue = y[n]), d.push(ki({ ...x, target: "outliers" })), f.push(ki({ ...x, target: "alternativeData" })), (m % l === 0 || g === e.length - 1) && (u.push(Y(d, "OR")), c.push(Y(f, "OR")), d = [], f = []);
|
|
4576
4579
|
}
|
|
4577
4580
|
m += 1;
|
|
4578
4581
|
}), { outliersFilterBatches: u, dataWithoutOutliersFilterBatches: c };
|
|
@@ -4607,11 +4610,11 @@ function zo(t) {
|
|
|
4607
4610
|
return { mean: u, stdDev: c };
|
|
4608
4611
|
}
|
|
4609
4612
|
async function Wo(t) {
|
|
4610
|
-
const { seriesConfig: e, data: i, uniqueQuery: a, queryObject: r, meanAndStdDevPerField: n, errorStrings: s, abortKey: o, abortSignal: u } = t, c = k(e), l = e[0], { x: d } = l, f = te(l.query?.where), m = z(r), y = ve(m).idField,
|
|
4611
|
-
for (let v = 0; v <
|
|
4612
|
-
const
|
|
4613
|
+
const { seriesConfig: e, data: i, uniqueQuery: a, queryObject: r, meanAndStdDevPerField: n, errorStrings: s, abortKey: o, abortSignal: u } = t, c = k(e), l = e[0], { x: d } = l, f = te(l.query?.where), m = z(r), y = ve(m).idField, g = ue(e), p = [];
|
|
4614
|
+
for (let v = 0; v < g.length; v += 1) {
|
|
4615
|
+
const b = g[v], { outliersFilterBatches: B } = Xa({
|
|
4613
4616
|
data: i,
|
|
4614
|
-
yField:
|
|
4617
|
+
yField: b,
|
|
4615
4618
|
x: d,
|
|
4616
4619
|
chartSubType: c,
|
|
4617
4620
|
splitByField: f
|
|
@@ -4620,7 +4623,7 @@ async function Wo(t) {
|
|
|
4620
4623
|
const T = B[N];
|
|
4621
4624
|
if (T !== "") {
|
|
4622
4625
|
const w = [];
|
|
4623
|
-
d !== C.boxPlot.boxPlotCategory && w.push(d), w.push(
|
|
4626
|
+
d !== C.boxPlot.boxPlotCategory && w.push(d), w.push(b), f !== "" && w.push(f), w.push(y);
|
|
4624
4627
|
const L = {
|
|
4625
4628
|
...a,
|
|
4626
4629
|
where: Y([a.where, T]),
|
|
@@ -4630,7 +4633,7 @@ async function Wo(t) {
|
|
|
4630
4633
|
num: void 0,
|
|
4631
4634
|
outFields: w
|
|
4632
4635
|
};
|
|
4633
|
-
|
|
4636
|
+
p.push(
|
|
4634
4637
|
Fe({
|
|
4635
4638
|
queryObject: r,
|
|
4636
4639
|
queryConfig: L,
|
|
@@ -4644,10 +4647,10 @@ async function Wo(t) {
|
|
|
4644
4647
|
}
|
|
4645
4648
|
}
|
|
4646
4649
|
}
|
|
4647
|
-
const S = await Promise.all(
|
|
4650
|
+
const S = await Promise.all(p), x = /* @__PURE__ */ new Map();
|
|
4648
4651
|
for (let v = 0; v < S.length; v += 1) {
|
|
4649
|
-
const
|
|
4650
|
-
|
|
4652
|
+
const b = S[v], B = g[v];
|
|
4653
|
+
b.forEach((N) => {
|
|
4651
4654
|
const T = { ...N.attributes };
|
|
4652
4655
|
if (T[B] !== void 0) {
|
|
4653
4656
|
d === C.boxPlot.boxPlotCategory && (T[C.boxPlot.boxPlotCategory] = B);
|
|
@@ -4673,7 +4676,7 @@ async function Wo(t) {
|
|
|
4673
4676
|
}
|
|
4674
4677
|
const L = K(w), A = T[B];
|
|
4675
4678
|
T[L] = A;
|
|
4676
|
-
const I = `${T[d]}-${T[f]}-${A}`, P =
|
|
4679
|
+
const I = `${T[d]}-${T[f]}-${A}`, P = x.get(I);
|
|
4677
4680
|
if (T[W.uniqueIdsName] = [
|
|
4678
4681
|
...P?.[W.uniqueIdsName] ?? [],
|
|
4679
4682
|
T[y]
|
|
@@ -4696,11 +4699,11 @@ async function Wo(t) {
|
|
|
4696
4699
|
stdDev: $
|
|
4697
4700
|
}));
|
|
4698
4701
|
}
|
|
4699
|
-
delete T[B], T[C.boxPlot.boxPlotOutlierId] = !0,
|
|
4702
|
+
delete T[B], T[C.boxPlot.boxPlotOutlierId] = !0, x.set(I, T);
|
|
4700
4703
|
}
|
|
4701
4704
|
});
|
|
4702
4705
|
}
|
|
4703
|
-
return Array.from(
|
|
4706
|
+
return Array.from(x.values());
|
|
4704
4707
|
}
|
|
4705
4708
|
async function Go(t) {
|
|
4706
4709
|
const {
|
|
@@ -4715,12 +4718,12 @@ async function Go(t) {
|
|
|
4715
4718
|
abortSignal: c
|
|
4716
4719
|
} = t;
|
|
4717
4720
|
let l = [];
|
|
4718
|
-
const { series: d, showMean: f } = n, m = Bi({ showMean: f, seriesConfig: d }), y = k(d),
|
|
4719
|
-
for (let
|
|
4720
|
-
const B = m[
|
|
4721
|
+
const { series: d, showMean: f } = n, m = Bi({ showMean: f, seriesConfig: d }), y = k(d), g = Re(n), { x: p } = g, S = te(g.query?.where), x = [];
|
|
4722
|
+
for (let b = 0; b < m.length; b += 1) {
|
|
4723
|
+
const B = m[b], { dataWithoutOutliersFilterBatches: N } = Xa({
|
|
4721
4724
|
data: e,
|
|
4722
4725
|
yField: B,
|
|
4723
|
-
x:
|
|
4726
|
+
x: p,
|
|
4724
4727
|
chartSubType: y,
|
|
4725
4728
|
splitByField: S
|
|
4726
4729
|
});
|
|
@@ -4734,8 +4737,8 @@ async function Go(t) {
|
|
|
4734
4737
|
).map((A) => ({
|
|
4735
4738
|
...A,
|
|
4736
4739
|
outStatisticFieldName: `${A.outStatisticFieldName}${C.boxPlot.boxPlotOutliersSuffix}`
|
|
4737
|
-
}))),
|
|
4738
|
-
|
|
4740
|
+
}))), x.push(
|
|
4741
|
+
jt({
|
|
4739
4742
|
queryObject: i,
|
|
4740
4743
|
uniqueQuery: L,
|
|
4741
4744
|
chartConfig: n,
|
|
@@ -4750,12 +4753,12 @@ async function Go(t) {
|
|
|
4750
4753
|
);
|
|
4751
4754
|
}
|
|
4752
4755
|
}
|
|
4753
|
-
const v = await Promise.all(
|
|
4754
|
-
for (let
|
|
4755
|
-
l.push(...v[
|
|
4756
|
+
const v = await Promise.all(x);
|
|
4757
|
+
for (let b = 0; b < v.length; b += 1)
|
|
4758
|
+
l.push(...v[b]);
|
|
4756
4759
|
return y !== F.BoxPlotMonoFieldAndCategoryAndSplitBy && y !== F.BoxPlotMonoField && (l = bt({
|
|
4757
4760
|
data: l,
|
|
4758
|
-
x: S !== void 0 && S !== "" ? S :
|
|
4761
|
+
x: S !== void 0 && S !== "" ? S : p
|
|
4759
4762
|
})), l;
|
|
4760
4763
|
}
|
|
4761
4764
|
async function Uo(t) {
|
|
@@ -4768,18 +4771,18 @@ async function Uo(t) {
|
|
|
4768
4771
|
};
|
|
4769
4772
|
delete f.outStatistics, delete f.groupByFieldsForStatistics, delete f.orderByFields;
|
|
4770
4773
|
const m = [];
|
|
4771
|
-
for (let
|
|
4772
|
-
const
|
|
4774
|
+
for (let g = 0; g < d.length; g += 1) {
|
|
4775
|
+
const p = d[g];
|
|
4773
4776
|
m.push(
|
|
4774
4777
|
{
|
|
4775
4778
|
statisticType: D.Average,
|
|
4776
|
-
onStatisticField:
|
|
4777
|
-
outStatisticFieldName: `${D.Average}_${
|
|
4779
|
+
onStatisticField: p,
|
|
4780
|
+
outStatisticFieldName: `${D.Average}_${p}`
|
|
4778
4781
|
},
|
|
4779
4782
|
{
|
|
4780
4783
|
statisticType: D.StandardDeviation,
|
|
4781
|
-
onStatisticField:
|
|
4782
|
-
outStatisticFieldName: `${D.StandardDeviation}_${
|
|
4784
|
+
onStatisticField: p,
|
|
4785
|
+
outStatisticFieldName: `${D.StandardDeviation}_${p}`
|
|
4783
4786
|
}
|
|
4784
4787
|
);
|
|
4785
4788
|
}
|
|
@@ -4892,7 +4895,7 @@ async function Zo(t) {
|
|
|
4892
4895
|
abortKey: c,
|
|
4893
4896
|
abortSignal: l
|
|
4894
4897
|
});
|
|
4895
|
-
const
|
|
4898
|
+
const g = await Go({
|
|
4896
4899
|
queryObject: i,
|
|
4897
4900
|
uniqueQuery: a,
|
|
4898
4901
|
elementCount: s,
|
|
@@ -4905,7 +4908,7 @@ async function Zo(t) {
|
|
|
4905
4908
|
});
|
|
4906
4909
|
d = Yo({
|
|
4907
4910
|
data: d,
|
|
4908
|
-
additionalData:
|
|
4911
|
+
additionalData: g,
|
|
4909
4912
|
chartConfig: n
|
|
4910
4913
|
});
|
|
4911
4914
|
}
|
|
@@ -4990,7 +4993,7 @@ function Ko(t) {
|
|
|
4990
4993
|
chartData: i.dataItems
|
|
4991
4994
|
});
|
|
4992
4995
|
}
|
|
4993
|
-
function
|
|
4996
|
+
function Et(t) {
|
|
4994
4997
|
const { arrayToSort: e, chartConfig: i, fieldList: a, isTimeBinningSeries: r } = t;
|
|
4995
4998
|
if (r !== !0 && e[0] !== void 0) {
|
|
4996
4999
|
const { series: n } = i, s = k(n), o = _(n), u = xe(i), c = Mt(i);
|
|
@@ -5003,8 +5006,8 @@ function It(t) {
|
|
|
5003
5006
|
else if (c?.[0] !== void 0 && e !== void 0 && e.length > 1) {
|
|
5004
5007
|
const { orderBy: l } = c[0];
|
|
5005
5008
|
let { sortingField: d } = c[0];
|
|
5006
|
-
const f = i.orderOptions?.data?.orderType === De.Category, m = c[0].preferLabel !== !1, y = s === F.BarAndLineFromFields || s === F.PieFromFields || s === F.BoxPlotMultiFields || s === F.BoxPlotMultiFieldsAndSplitBy,
|
|
5007
|
-
if (f &&
|
|
5009
|
+
const f = i.orderOptions?.data?.orderType === De.Category, m = c[0].preferLabel !== !1, y = s === F.BarAndLineFromFields || s === F.PieFromFields || s === F.BoxPlotMultiFields || s === F.BoxPlotMultiFieldsAndSplitBy, g = y || o === h.PieSeries, p = s === F.PieNoAggregation || s === F.BarAndLineNoAggregation || s === F.BarAndLineSplitByNoAggregation;
|
|
5010
|
+
if (f && g && (!m || (o === h.LineSeries || o === h.RadarSeries) && u === h.NumberAxisFormat) && (d = C.originalCategoryValue), Array.isArray(l))
|
|
5008
5011
|
En({
|
|
5009
5012
|
arrayToSort: e,
|
|
5010
5013
|
orderBy: l,
|
|
@@ -5020,10 +5023,10 @@ function It(t) {
|
|
|
5020
5023
|
orderBy: l,
|
|
5021
5024
|
sortingField: d,
|
|
5022
5025
|
forceAscendingOrder: S,
|
|
5023
|
-
isNonAggregated:
|
|
5026
|
+
isNonAggregated: p,
|
|
5024
5027
|
sortByCategory: f,
|
|
5025
5028
|
preferLabel: m,
|
|
5026
|
-
isPieOrByFieldsChart:
|
|
5029
|
+
isPieOrByFieldsChart: g
|
|
5027
5030
|
});
|
|
5028
5031
|
}
|
|
5029
5032
|
}
|
|
@@ -5031,7 +5034,7 @@ function It(t) {
|
|
|
5031
5034
|
}
|
|
5032
5035
|
function kd(t) {
|
|
5033
5036
|
const { alteredConfig: e, dataInfo: i, fieldList: a, options: r, queryObject: n } = t, s = Ci(i.data);
|
|
5034
|
-
if (s &&
|
|
5037
|
+
if (s && Et({
|
|
5035
5038
|
arrayToSort: s,
|
|
5036
5039
|
chartConfig: e,
|
|
5037
5040
|
fieldList: a,
|
|
@@ -5043,7 +5046,7 @@ function kd(t) {
|
|
|
5043
5046
|
})
|
|
5044
5047
|
}), de(e)) {
|
|
5045
5048
|
const o = i?.data && "meanLines" in i.data ? i.data.meanLines : void 0;
|
|
5046
|
-
o &&
|
|
5049
|
+
o && Et({
|
|
5047
5050
|
arrayToSort: o,
|
|
5048
5051
|
chartConfig: e
|
|
5049
5052
|
});
|
|
@@ -5063,13 +5066,13 @@ async function Qd(t) {
|
|
|
5063
5066
|
const { series: o, chartRenderer: u } = a, c = el(u), l = c ? tt.ChartRenderer : tt.LayerRenderer, d = i ? z(i) : void 0, f = c ?? d?.renderer;
|
|
5064
5067
|
let m;
|
|
5065
5068
|
d && l === tt.LayerRenderer ? s = await _a(d) : l === tt.ChartRenderer && (s = Jn(f));
|
|
5066
|
-
const y = jn(c, d?.renderer),
|
|
5069
|
+
const y = jn(c, d?.renderer), g = Un({
|
|
5067
5070
|
chartRenderer: u,
|
|
5068
5071
|
queryObject: i
|
|
5069
|
-
}),
|
|
5072
|
+
}), p = _(o), S = k(o), x = Re(a), v = te(x.query?.where);
|
|
5070
5073
|
m = /* @__PURE__ */ new Map();
|
|
5071
|
-
for (let
|
|
5072
|
-
const B = e[
|
|
5074
|
+
for (let b = 0; b < (p === h.HistogramSeries && e.length > 0 ? 1 : e.length); b += 1) {
|
|
5075
|
+
const B = e[b], N = await Yn({
|
|
5073
5076
|
seriesConfig: a.series,
|
|
5074
5077
|
dataItem: B,
|
|
5075
5078
|
renderer: f,
|
|
@@ -5077,7 +5080,7 @@ async function Qd(t) {
|
|
|
5077
5080
|
rendererOrigin: l,
|
|
5078
5081
|
chartSubType: S,
|
|
5079
5082
|
splitByField: v,
|
|
5080
|
-
graphicTemplate:
|
|
5083
|
+
graphicTemplate: g,
|
|
5081
5084
|
mapAttributesToSymbol: m,
|
|
5082
5085
|
rendererFieldNames: s
|
|
5083
5086
|
});
|
|
@@ -5127,11 +5130,11 @@ async function il(t) {
|
|
|
5127
5130
|
chartLimits: r
|
|
5128
5131
|
})), r && (Number.isFinite(l) || Number.isFinite(m)))) {
|
|
5129
5132
|
const y = Math.min(l ?? Number.NaN, m ?? Number.NaN);
|
|
5130
|
-
let
|
|
5131
|
-
Number.isFinite(y) && (
|
|
5133
|
+
let g = r;
|
|
5134
|
+
Number.isFinite(y) && (g = {
|
|
5132
5135
|
...r,
|
|
5133
5136
|
maxGaugeByFeaturesLimit: y
|
|
5134
|
-
}), Da({ chartConfig: i, chartLimits:
|
|
5137
|
+
}), Da({ chartConfig: i, chartLimits: g, uniqueQuery: a });
|
|
5135
5138
|
}
|
|
5136
5139
|
if (Number.isNaN(f) || f) {
|
|
5137
5140
|
const y = await tl({
|
|
@@ -5144,7 +5147,7 @@ async function il(t) {
|
|
|
5144
5147
|
});
|
|
5145
5148
|
u.data = { dataItems: y }, u.count = y.length;
|
|
5146
5149
|
} else
|
|
5147
|
-
u.count = m,
|
|
5150
|
+
u.count = m, It({
|
|
5148
5151
|
dataInfo: u,
|
|
5149
5152
|
chartType: h.GaugeSeries
|
|
5150
5153
|
});
|
|
@@ -5207,16 +5210,16 @@ function al(t) {
|
|
|
5207
5210
|
W.uniqueIdsName,
|
|
5208
5211
|
Q.valueField,
|
|
5209
5212
|
...Vr
|
|
5210
|
-
], d = (
|
|
5211
|
-
const S =
|
|
5212
|
-
S !== void 0 && r && (
|
|
5213
|
-
const
|
|
5214
|
-
|
|
5213
|
+
], d = (g, p) => {
|
|
5214
|
+
const S = p[C.originalCategoryValue];
|
|
5215
|
+
S !== void 0 && r && (p[r] = S);
|
|
5216
|
+
const x = p[C.originalYCategoryValue];
|
|
5217
|
+
x !== void 0 && n && (p[n] = x), r && p[Q.xField] !== void 0 && (p[r] = p[C.originalCategoryValue] !== void 0 ? p[C.originalCategoryValue] : p[Q.xField], delete p[Q.xField]), n && p[Q.yField] !== void 0 && (p[n] = p[C.originalYCategoryValue] !== void 0 ? p[C.originalYCategoryValue] : p[Q.yField], delete p[Q.yField]), s && p[Q.valueField] !== void 0 && (p[s] = p[Q.valueField], delete p[Q.valueField]);
|
|
5215
5218
|
const v = {};
|
|
5216
|
-
return Object.keys(
|
|
5217
|
-
!l.includes(
|
|
5218
|
-
}),
|
|
5219
|
-
}, f = (
|
|
5219
|
+
return Object.keys(p).forEach((b) => {
|
|
5220
|
+
!l.includes(b) && !b.includes(C.rendererSymbolField) && (v[b] = p[b]);
|
|
5221
|
+
}), g.push(v), g;
|
|
5222
|
+
}, f = (g, p) => JSON.stringify(g).localeCompare(JSON.stringify(p));
|
|
5220
5223
|
let m = o?.reduce(d, [])?.sort(f), y = u?.reduce(d, [])?.sort(f);
|
|
5221
5224
|
m && y && r && m.length !== y.length && (m = bt({ data: m, x: r }), y = bt({ data: y, x: r })), c = m?.length !== y?.length || !at(m, y);
|
|
5222
5225
|
}
|
|
@@ -5238,7 +5241,7 @@ function rl(t) {
|
|
|
5238
5241
|
const u = te(n[0].query?.where);
|
|
5239
5242
|
r = bt({ data: r, x: n[0].x, splitByField: u });
|
|
5240
5243
|
}
|
|
5241
|
-
|
|
5244
|
+
Et({
|
|
5242
5245
|
arrayToSort: r,
|
|
5243
5246
|
chartConfig: e
|
|
5244
5247
|
});
|
|
@@ -5333,8 +5336,8 @@ function ir(t) {
|
|
|
5333
5336
|
y: d
|
|
5334
5337
|
}), y = e === C.boxPlot.boxPlotCategory ? r[e] : i;
|
|
5335
5338
|
if (!oe(y)) {
|
|
5336
|
-
const
|
|
5337
|
-
Number.isFinite(
|
|
5339
|
+
const g = r[f], p = r[m];
|
|
5340
|
+
Number.isFinite(g) && Number.isFinite(p) && (c = `${y?.toString()}>=${g?.toString()} AND ${y?.toString()}<=${p?.toString()}`);
|
|
5338
5341
|
}
|
|
5339
5342
|
}
|
|
5340
5343
|
return Y([o, u, c]);
|
|
@@ -5394,8 +5397,8 @@ function ll(t) {
|
|
|
5394
5397
|
let c = "";
|
|
5395
5398
|
if (u.type === h.HeatSeries) {
|
|
5396
5399
|
let l, d;
|
|
5397
|
-
const f = a[Q.xField], m = a[C.originalCategoryValue], y = a[Q.yField],
|
|
5398
|
-
|
|
5400
|
+
const f = a[Q.xField], m = a[C.originalCategoryValue], y = a[Q.yField], g = a[C.originalYCategoryValue], p = r.axes?.[0]?.valueFormat?.type, S = r.axes?.[1]?.valueFormat?.type;
|
|
5401
|
+
p === h.CategoryAxisFormat ? l = Le({
|
|
5399
5402
|
where: qe(u.x, m ?? f),
|
|
5400
5403
|
normalize: !1,
|
|
5401
5404
|
escape: !0
|
|
@@ -5408,7 +5411,7 @@ function ll(t) {
|
|
|
5408
5411
|
dataTimeZone: s,
|
|
5409
5412
|
runsOnClientQueryEngine: o
|
|
5410
5413
|
}), S === h.CategoryAxisFormat ? d = Le({
|
|
5411
|
-
where: qe(u.y,
|
|
5414
|
+
where: qe(u.y, g ?? y),
|
|
5412
5415
|
normalize: !1,
|
|
5413
5416
|
escape: !0
|
|
5414
5417
|
}) : d = zi({
|
|
@@ -5480,16 +5483,16 @@ async function cl(t) {
|
|
|
5480
5483
|
errorStrings: f,
|
|
5481
5484
|
abortKey: m,
|
|
5482
5485
|
abortSignal: y
|
|
5483
|
-
} = t,
|
|
5484
|
-
let
|
|
5486
|
+
} = t, g = k(a.series);
|
|
5487
|
+
let p = { valid: !0, data: { dataItems: [] } };
|
|
5485
5488
|
if (r !== void 0 && r.length > 0) {
|
|
5486
|
-
const S = Re(a), { x
|
|
5489
|
+
const S = Re(a), { x } = S, v = "y" in S ? S.y : "", B = Ce(e).find((I) => I.name === x)?.type, N = [], T = r.reduce(
|
|
5487
5490
|
(I, P) => {
|
|
5488
5491
|
const O = [];
|
|
5489
5492
|
if (W.uniqueIdsName in P)
|
|
5490
5493
|
N.push(P[W.uniqueIdsName]);
|
|
5491
5494
|
else {
|
|
5492
|
-
switch (
|
|
5495
|
+
switch (g) {
|
|
5493
5496
|
case F.BoxPlotMonoFieldAndSplitBy:
|
|
5494
5497
|
case F.BoxPlotMultiFieldsAndSplitBy:
|
|
5495
5498
|
case F.BoxPlotMonoFieldAndCategoryAndSplitBy: {
|
|
@@ -5505,14 +5508,14 @@ async function cl(t) {
|
|
|
5505
5508
|
}
|
|
5506
5509
|
const V = [v].flat();
|
|
5507
5510
|
let $ = V.length === 1 ? V[0] : "";
|
|
5508
|
-
if (
|
|
5511
|
+
if (g === F.BoxPlotMultiFieldsAndCategory) {
|
|
5509
5512
|
const M = `_${E.FirstQuartile}`, q = Object.keys(P).find((G) => G.includes(M));
|
|
5510
5513
|
q !== void 0 && ($ = q.replace(M, ""));
|
|
5511
5514
|
}
|
|
5512
5515
|
O.length === 0 && O.push(""), O.forEach((M) => {
|
|
5513
5516
|
const q = ir({
|
|
5514
5517
|
chartConfig: a,
|
|
5515
|
-
xAxisField:
|
|
5518
|
+
xAxisField: x,
|
|
5516
5519
|
yAxisField: $,
|
|
5517
5520
|
splitBy: M,
|
|
5518
5521
|
dataContext: P,
|
|
@@ -5530,7 +5533,7 @@ async function cl(t) {
|
|
|
5530
5533
|
T.push(`${I} IN (${N.join(",")})`);
|
|
5531
5534
|
}
|
|
5532
5535
|
const L = T.join(" OR "), A = { ...i };
|
|
5533
|
-
A.where = Y([A.where, L]),
|
|
5536
|
+
A.where = Y([A.where, L]), p = await Fi({
|
|
5534
5537
|
queryObject: e,
|
|
5535
5538
|
chartConfig: a,
|
|
5536
5539
|
queryConfig: A,
|
|
@@ -5546,7 +5549,7 @@ async function cl(t) {
|
|
|
5546
5549
|
abortSignal: y
|
|
5547
5550
|
});
|
|
5548
5551
|
}
|
|
5549
|
-
return
|
|
5552
|
+
return p;
|
|
5550
5553
|
}
|
|
5551
5554
|
async function dl(t) {
|
|
5552
5555
|
const {
|
|
@@ -5564,30 +5567,30 @@ async function dl(t) {
|
|
|
5564
5567
|
replaceNoValueCategoryWithZero: f,
|
|
5565
5568
|
view: m,
|
|
5566
5569
|
errorStrings: y,
|
|
5567
|
-
abortKey:
|
|
5568
|
-
abortSignal:
|
|
5570
|
+
abortKey: g,
|
|
5571
|
+
abortSignal: p
|
|
5569
5572
|
} = t;
|
|
5570
5573
|
yt(e);
|
|
5571
|
-
const { series: S } = a,
|
|
5572
|
-
let
|
|
5574
|
+
const { series: S } = a, x = _(S), v = xe(a);
|
|
5575
|
+
let b = { valid: !0 }, B = s?.selectionItems ?? [];
|
|
5573
5576
|
n || (B = rl({ chartConfig: a, currentSelectionDataItems: r, selectionData: s }));
|
|
5574
5577
|
let N = !1;
|
|
5575
|
-
switch (
|
|
5578
|
+
switch (x) {
|
|
5576
5579
|
case h.HeatSeries:
|
|
5577
|
-
|
|
5580
|
+
b.data = { dataItems: B };
|
|
5578
5581
|
break;
|
|
5579
5582
|
case h.PieSeries:
|
|
5580
5583
|
if (k(a.series) === F.PieFromFields) {
|
|
5581
5584
|
const { x: T, y: w } = a.series[0], L = He(B);
|
|
5582
5585
|
L.forEach((A) => {
|
|
5583
5586
|
T in A && (A[ce] = A[T], delete A[T]), w in A && (A[Ne] = A[w], delete A[w]);
|
|
5584
|
-
}),
|
|
5587
|
+
}), b.data = { dataItems: L };
|
|
5585
5588
|
} else
|
|
5586
|
-
|
|
5587
|
-
|
|
5589
|
+
b.data = { dataItems: B };
|
|
5590
|
+
b.count = B.length, N = !0;
|
|
5588
5591
|
break;
|
|
5589
5592
|
case h.BoxPlotSeries:
|
|
5590
|
-
de(a) && (
|
|
5593
|
+
de(a) && (b = await cl({
|
|
5591
5594
|
queryObject: e,
|
|
5592
5595
|
queryConfig: i,
|
|
5593
5596
|
chartConfig: a,
|
|
@@ -5600,8 +5603,8 @@ async function dl(t) {
|
|
|
5600
5603
|
replaceNoValueCategoryWithZero: f,
|
|
5601
5604
|
view: m,
|
|
5602
5605
|
errorStrings: y,
|
|
5603
|
-
abortKey:
|
|
5604
|
-
abortSignal:
|
|
5606
|
+
abortKey: g,
|
|
5607
|
+
abortSignal: p
|
|
5605
5608
|
}));
|
|
5606
5609
|
break;
|
|
5607
5610
|
case h.BarSeries:
|
|
@@ -5614,7 +5617,7 @@ async function dl(t) {
|
|
|
5614
5617
|
seriesConfig: S[0],
|
|
5615
5618
|
queryObject: e
|
|
5616
5619
|
}))
|
|
5617
|
-
|
|
5620
|
+
b.data = { dataItems: B }, b.count = B.length * S.length, N = !0;
|
|
5618
5621
|
else {
|
|
5619
5622
|
const T = { ...i };
|
|
5620
5623
|
if (r !== void 0 && r.length > 0) {
|
|
@@ -5627,7 +5630,7 @@ async function dl(t) {
|
|
|
5627
5630
|
), A = Y(L, "OR");
|
|
5628
5631
|
T.where = Y([T.where, A]);
|
|
5629
5632
|
}
|
|
5630
|
-
|
|
5633
|
+
b = await xi({
|
|
5631
5634
|
queryObject: e,
|
|
5632
5635
|
queryConfig: T,
|
|
5633
5636
|
chartConfig: a,
|
|
@@ -5637,33 +5640,33 @@ async function dl(t) {
|
|
|
5637
5640
|
chartLimits: c,
|
|
5638
5641
|
popupTemplateFieldInfosEnabled: l,
|
|
5639
5642
|
view: m,
|
|
5640
|
-
abortSignal:
|
|
5643
|
+
abortSignal: p
|
|
5641
5644
|
});
|
|
5642
5645
|
}
|
|
5643
5646
|
break;
|
|
5644
5647
|
case h.HistogramSeries: {
|
|
5645
5648
|
if (B.length === 0)
|
|
5646
|
-
|
|
5649
|
+
b.data = {
|
|
5647
5650
|
mean: Number.NaN,
|
|
5648
5651
|
median: Number.NaN,
|
|
5649
5652
|
stddev: Number.NaN,
|
|
5650
5653
|
max: Number.NaN,
|
|
5651
5654
|
min: Number.NaN,
|
|
5652
5655
|
bins: []
|
|
5653
|
-
},
|
|
5656
|
+
}, b.count = 0;
|
|
5654
5657
|
else {
|
|
5655
5658
|
const { x: T } = S[0], w = B.map((I, P) => {
|
|
5656
5659
|
const { minValue: O, maxValue: V } = I, $ = P === B.length - 1 ? "<=" : "<";
|
|
5657
5660
|
return `${T} >= ${O} AND ${T} ${$} ${V}`;
|
|
5658
5661
|
}), L = Y(w, "OR"), A = { ...i };
|
|
5659
|
-
A.where = Y([A.where, L]),
|
|
5662
|
+
A.where = Y([A.where, L]), b = await Ya({
|
|
5660
5663
|
queryObject: e,
|
|
5661
5664
|
chartConfig: a,
|
|
5662
5665
|
queryConfig: A,
|
|
5663
5666
|
view: m,
|
|
5664
5667
|
errorStrings: y,
|
|
5665
|
-
abortKey:
|
|
5666
|
-
abortSignal:
|
|
5668
|
+
abortKey: g,
|
|
5669
|
+
abortSignal: p
|
|
5667
5670
|
});
|
|
5668
5671
|
}
|
|
5669
5672
|
break;
|
|
@@ -5671,21 +5674,21 @@ async function dl(t) {
|
|
|
5671
5674
|
case h.ScatterSeries: {
|
|
5672
5675
|
if (B.length === 0) {
|
|
5673
5676
|
const { r2: T, trendLinePoints: w } = C.scatterplotSeries;
|
|
5674
|
-
|
|
5677
|
+
b.data = { dataItems: [], r2: T, trendLinePoints: w, count: 0 }, b.count = 0;
|
|
5675
5678
|
} else {
|
|
5676
5679
|
const { r2: T, trendLinePoints: w } = qa({
|
|
5677
5680
|
data: B,
|
|
5678
5681
|
chartConfig: a
|
|
5679
5682
|
});
|
|
5680
|
-
|
|
5683
|
+
b.data = { dataItems: B, r2: T, trendLinePoints: w }, b.count = B.length;
|
|
5681
5684
|
}
|
|
5682
5685
|
break;
|
|
5683
5686
|
}
|
|
5684
5687
|
}
|
|
5685
|
-
return N &&
|
|
5686
|
-
arrayToSort: "dataItems" in
|
|
5688
|
+
return N && b.data !== void 0 && Et({
|
|
5689
|
+
arrayToSort: "dataItems" in b.data ? b.data.dataItems : b.data,
|
|
5687
5690
|
chartConfig: a
|
|
5688
|
-
}),
|
|
5691
|
+
}), b;
|
|
5689
5692
|
}
|
|
5690
5693
|
async function Fi(t) {
|
|
5691
5694
|
const {
|
|
@@ -5704,10 +5707,10 @@ async function Fi(t) {
|
|
|
5704
5707
|
view: m
|
|
5705
5708
|
} = t;
|
|
5706
5709
|
let y = { valid: !0 };
|
|
5707
|
-
const
|
|
5710
|
+
const g = st(i), p = await oi({
|
|
5708
5711
|
queryObject: e,
|
|
5709
5712
|
queryConfig: a,
|
|
5710
|
-
fetchFullBoxPlotData: !
|
|
5713
|
+
fetchFullBoxPlotData: !g,
|
|
5711
5714
|
chartConfig: i,
|
|
5712
5715
|
errorStrings: r,
|
|
5713
5716
|
abortKey: n,
|
|
@@ -5720,12 +5723,12 @@ async function Fi(t) {
|
|
|
5720
5723
|
replaceNoValueCategoryWithZero: f,
|
|
5721
5724
|
view: m
|
|
5722
5725
|
});
|
|
5723
|
-
if (!
|
|
5724
|
-
y =
|
|
5726
|
+
if (!g)
|
|
5727
|
+
y = p;
|
|
5725
5728
|
else {
|
|
5726
5729
|
const S = { dataItems: [] };
|
|
5727
|
-
S.meanLines =
|
|
5728
|
-
const
|
|
5730
|
+
S.meanLines = p.data.dataItems;
|
|
5731
|
+
const x = Oo(i), v = (await oi({
|
|
5729
5732
|
queryObject: e,
|
|
5730
5733
|
queryConfig: a,
|
|
5731
5734
|
fetchFullBoxPlotData: !0,
|
|
@@ -5737,7 +5740,7 @@ async function Fi(t) {
|
|
|
5737
5740
|
replaceNoValueCategoryWithZero: f,
|
|
5738
5741
|
view: m,
|
|
5739
5742
|
errorStrings: r,
|
|
5740
|
-
chartConfig:
|
|
5743
|
+
chartConfig: x,
|
|
5741
5744
|
abortKey: n,
|
|
5742
5745
|
abortSignal: s
|
|
5743
5746
|
})).data;
|
|
@@ -5761,12 +5764,12 @@ async function fl(t) {
|
|
|
5761
5764
|
view: f,
|
|
5762
5765
|
syncViewTimeZone: m,
|
|
5763
5766
|
errorStrings: y,
|
|
5764
|
-
abortKey:
|
|
5765
|
-
abortSignal:
|
|
5767
|
+
abortKey: g,
|
|
5768
|
+
abortSignal: p,
|
|
5766
5769
|
fieldList: S,
|
|
5767
|
-
currentSelectionDataItems:
|
|
5770
|
+
currentSelectionDataItems: x,
|
|
5768
5771
|
dataForFilterBySelectionChanged: v,
|
|
5769
|
-
filterByViewExtent:
|
|
5772
|
+
filterByViewExtent: b,
|
|
5770
5773
|
preFetchedQueryResponse: B
|
|
5771
5774
|
} = t, { series: N } = i, T = _(N);
|
|
5772
5775
|
let w = { valid: !0 };
|
|
@@ -5775,7 +5778,7 @@ async function fl(t) {
|
|
|
5775
5778
|
queryObject: e,
|
|
5776
5779
|
queryConfig: a,
|
|
5777
5780
|
chartConfig: i,
|
|
5778
|
-
currentSelectionDataItems:
|
|
5781
|
+
currentSelectionDataItems: x,
|
|
5779
5782
|
dataForFilterBySelectionChanged: v,
|
|
5780
5783
|
selectionData: n,
|
|
5781
5784
|
setTimeBinningInfoWhenNotProvided: s,
|
|
@@ -5786,8 +5789,8 @@ async function fl(t) {
|
|
|
5786
5789
|
replaceNoValueCategoryWithZero: d,
|
|
5787
5790
|
view: f,
|
|
5788
5791
|
errorStrings: y,
|
|
5789
|
-
abortKey:
|
|
5790
|
-
abortSignal:
|
|
5792
|
+
abortKey: g,
|
|
5793
|
+
abortSignal: p
|
|
5791
5794
|
});
|
|
5792
5795
|
else
|
|
5793
5796
|
switch (T) {
|
|
@@ -5802,8 +5805,8 @@ async function fl(t) {
|
|
|
5802
5805
|
popupTemplateFieldInfosEnabled: c,
|
|
5803
5806
|
view: f,
|
|
5804
5807
|
syncViewTimeZone: m,
|
|
5805
|
-
abortKey:
|
|
5806
|
-
abortSignal:
|
|
5808
|
+
abortKey: g,
|
|
5809
|
+
abortSignal: p
|
|
5807
5810
|
});
|
|
5808
5811
|
break;
|
|
5809
5812
|
case h.BoxPlotSeries:
|
|
@@ -5820,8 +5823,8 @@ async function fl(t) {
|
|
|
5820
5823
|
replaceNoValueCategoryWithZero: d,
|
|
5821
5824
|
view: f,
|
|
5822
5825
|
errorStrings: y,
|
|
5823
|
-
abortKey:
|
|
5824
|
-
abortSignal:
|
|
5826
|
+
abortKey: g,
|
|
5827
|
+
abortSignal: p
|
|
5825
5828
|
}));
|
|
5826
5829
|
break;
|
|
5827
5830
|
case h.BarSeries:
|
|
@@ -5834,7 +5837,7 @@ async function fl(t) {
|
|
|
5834
5837
|
// @REV: temporary
|
|
5835
5838
|
queryConfig: a,
|
|
5836
5839
|
chartConfig: i,
|
|
5837
|
-
filterByViewExtent:
|
|
5840
|
+
filterByViewExtent: b,
|
|
5838
5841
|
errorStrings: y,
|
|
5839
5842
|
setTimeBinningInfoWhenNotProvided: s,
|
|
5840
5843
|
returnFeaturesExtent: o,
|
|
@@ -5843,8 +5846,8 @@ async function fl(t) {
|
|
|
5843
5846
|
hideZeroCountCategories: l,
|
|
5844
5847
|
replaceNoValueCategoryWithZero: d,
|
|
5845
5848
|
view: f,
|
|
5846
|
-
abortKey:
|
|
5847
|
-
abortSignal:
|
|
5849
|
+
abortKey: g,
|
|
5850
|
+
abortSignal: p,
|
|
5848
5851
|
fieldList: S,
|
|
5849
5852
|
preFetchedQueryResponse: B
|
|
5850
5853
|
};
|
|
@@ -5860,7 +5863,7 @@ async function fl(t) {
|
|
|
5860
5863
|
w.data = await dr({
|
|
5861
5864
|
queryObject: e,
|
|
5862
5865
|
queryConfig: a,
|
|
5863
|
-
filterByViewExtent:
|
|
5866
|
+
filterByViewExtent: b,
|
|
5864
5867
|
setTimeBinningInfoWhenNotProvided: s,
|
|
5865
5868
|
returnFeaturesExtent: o,
|
|
5866
5869
|
chartLimits: u,
|
|
@@ -5870,8 +5873,8 @@ async function fl(t) {
|
|
|
5870
5873
|
view: f,
|
|
5871
5874
|
chartConfig: i,
|
|
5872
5875
|
errorStrings: y,
|
|
5873
|
-
abortKey:
|
|
5874
|
-
abortSignal:
|
|
5876
|
+
abortKey: g,
|
|
5877
|
+
abortSignal: p
|
|
5875
5878
|
});
|
|
5876
5879
|
break;
|
|
5877
5880
|
case h.HistogramSeries:
|
|
@@ -5879,9 +5882,10 @@ async function fl(t) {
|
|
|
5879
5882
|
queryObject: e,
|
|
5880
5883
|
queryConfig: a,
|
|
5881
5884
|
chartConfig: i,
|
|
5885
|
+
filterByViewExtent: b,
|
|
5882
5886
|
view: f,
|
|
5883
|
-
abortKey:
|
|
5884
|
-
abortSignal:
|
|
5887
|
+
abortKey: g,
|
|
5888
|
+
abortSignal: p,
|
|
5885
5889
|
errorStrings: y
|
|
5886
5890
|
});
|
|
5887
5891
|
break;
|
|
@@ -5892,8 +5896,8 @@ async function fl(t) {
|
|
|
5892
5896
|
queryConfig: a,
|
|
5893
5897
|
chartLimits: u,
|
|
5894
5898
|
errorStrings: y,
|
|
5895
|
-
abortKey:
|
|
5896
|
-
abortSignal:
|
|
5899
|
+
abortKey: g,
|
|
5900
|
+
abortSignal: p
|
|
5897
5901
|
});
|
|
5898
5902
|
break;
|
|
5899
5903
|
}
|
|
@@ -5915,12 +5919,12 @@ async function Hd(t) {
|
|
|
5915
5919
|
setTimeBinningInfoWhenNotProvided: f,
|
|
5916
5920
|
returnFeaturesExtent: m,
|
|
5917
5921
|
chartLimits: y,
|
|
5918
|
-
popupTemplateFieldInfosEnabled:
|
|
5919
|
-
hideZeroCountCategories:
|
|
5922
|
+
popupTemplateFieldInfosEnabled: g,
|
|
5923
|
+
hideZeroCountCategories: p,
|
|
5920
5924
|
replaceNoValueCategoryWithZero: S,
|
|
5921
|
-
view:
|
|
5925
|
+
view: x,
|
|
5922
5926
|
syncViewTimeZone: v,
|
|
5923
|
-
errorStrings:
|
|
5927
|
+
errorStrings: b,
|
|
5924
5928
|
fieldList: B,
|
|
5925
5929
|
preFetchedQueryResponse: N
|
|
5926
5930
|
} = t;
|
|
@@ -5930,7 +5934,7 @@ async function Hd(t) {
|
|
|
5930
5934
|
chartConfig: i,
|
|
5931
5935
|
runtimeDataFilters: u,
|
|
5932
5936
|
ignoreViewExtent: c,
|
|
5933
|
-
view:
|
|
5937
|
+
view: x
|
|
5934
5938
|
});
|
|
5935
5939
|
return Ls(a), T = await fl({
|
|
5936
5940
|
chartConfig: i,
|
|
@@ -5944,14 +5948,14 @@ async function Hd(t) {
|
|
|
5944
5948
|
setTimeBinningInfoWhenNotProvided: f,
|
|
5945
5949
|
returnFeaturesExtent: m,
|
|
5946
5950
|
chartLimits: y,
|
|
5947
|
-
popupTemplateFieldInfosEnabled:
|
|
5948
|
-
hideZeroCountCategories:
|
|
5951
|
+
popupTemplateFieldInfosEnabled: g,
|
|
5952
|
+
hideZeroCountCategories: p,
|
|
5949
5953
|
replaceNoValueCategoryWithZero: S,
|
|
5950
|
-
view:
|
|
5954
|
+
view: x,
|
|
5951
5955
|
syncViewTimeZone: v,
|
|
5952
5956
|
abortKey: a,
|
|
5953
5957
|
abortSignal: r,
|
|
5954
|
-
errorStrings:
|
|
5958
|
+
errorStrings: b,
|
|
5955
5959
|
fieldList: B,
|
|
5956
5960
|
preFetchedQueryResponse: N
|
|
5957
5961
|
}), T.queryConfig = w, T;
|
|
@@ -5983,20 +5987,20 @@ async function yl(t) {
|
|
|
5983
5987
|
let d = e;
|
|
5984
5988
|
const f = k(l), m = xe(i);
|
|
5985
5989
|
if (s !== lt.RenderUpToTheLimit && n !== void 0 && n > e.length && f !== F.BarAndLineFromFields && f !== F.BarAndLineNoAggregation && f !== F.PieNoAggregation && m === h.CategoryAxisFormat) {
|
|
5986
|
-
const { x: y } = l[0],
|
|
5990
|
+
const { x: y } = l[0], g = {
|
|
5987
5991
|
...a,
|
|
5988
5992
|
returnDistinctValues: !0,
|
|
5989
5993
|
outFields: [y]
|
|
5990
5994
|
};
|
|
5991
|
-
delete
|
|
5995
|
+
delete g.outStatistics, delete g.orderByFields, delete g.groupByFieldsForStatistics;
|
|
5992
5996
|
const S = (await Fe({
|
|
5993
5997
|
queryObject: r,
|
|
5994
|
-
queryConfig:
|
|
5998
|
+
queryConfig: g,
|
|
5995
5999
|
featureCount: n,
|
|
5996
6000
|
errorStrings: o,
|
|
5997
6001
|
abortKey: u,
|
|
5998
6002
|
abortSignal: c
|
|
5999
|
-
})).map((
|
|
6003
|
+
})).map((x) => x.attributes[y]).filter((x) => x != null);
|
|
6000
6004
|
S.length > e.length && (d = ml(S, e, y));
|
|
6001
6005
|
}
|
|
6002
6006
|
return d;
|
|
@@ -6182,45 +6186,45 @@ function xl(t) {
|
|
|
6182
6186
|
const { unit: o } = a, u = a.size ?? 1, c = i[0], { x: l } = c;
|
|
6183
6187
|
let d, f;
|
|
6184
6188
|
if (be(c) && (f = c.temporalBinning?.nullPolicy, d = c.temporalBinning?.timeAggregationType), u > 1 || o === R.Week || o === R.Month || o === R.Year) {
|
|
6185
|
-
const { query: m } = i[0], y = ue(i), { statisticType:
|
|
6186
|
-
let
|
|
6187
|
-
const
|
|
6189
|
+
const { query: m } = i[0], y = ue(i), { statisticType: g } = m?.outStatistics?.[0] ?? Xi;
|
|
6190
|
+
let p = !1, S = d === ee.End ? e.length - 1 : 0;
|
|
6191
|
+
const x = {
|
|
6188
6192
|
binFirstOrLastIndex: S,
|
|
6189
6193
|
data: e,
|
|
6190
6194
|
x: l,
|
|
6191
6195
|
timeIntervalInfo: a
|
|
6192
6196
|
};
|
|
6193
|
-
for (; !
|
|
6197
|
+
for (; !p; ) {
|
|
6194
6198
|
let v = {};
|
|
6195
|
-
const { binStartDate:
|
|
6199
|
+
const { binStartDate: b, binEndDate: B, last: N, nextBinFirstOrLastIndex: T, sliceStartIndex: w, sliceEndIndex: L } = d === ee.End ? (
|
|
6196
6200
|
// When grouping from the end we'll start from the last date and move backward to create the bins
|
|
6197
|
-
Fl(
|
|
6201
|
+
Fl(x)
|
|
6198
6202
|
) : (
|
|
6199
6203
|
// When grouping from the start we'll start from the first date and move forward to create the bins
|
|
6200
|
-
Sl(
|
|
6204
|
+
Sl(x)
|
|
6201
6205
|
);
|
|
6202
|
-
if (
|
|
6206
|
+
if (p = N, v = d === ee.End ? v = e[L - 1] : v = e[S], B > n && b < n || b < r && B > r || b >= r && B <= n) {
|
|
6203
6207
|
const A = e.slice(w, L).filter((O) => !(C.dateBinModel in O));
|
|
6204
6208
|
y.forEach((O) => {
|
|
6205
|
-
v[O] = bl({ binsToRegroup: A, statisticType:
|
|
6209
|
+
v[O] = bl({ binsToRegroup: A, statisticType: g, y: O, nullPolicy: f });
|
|
6206
6210
|
});
|
|
6207
6211
|
const I = A.map((O) => O[Oe]).filter((O) => O !== void 0), P = On(I);
|
|
6208
|
-
P !== void 0 && (v[Oe] = P), v[l] =
|
|
6212
|
+
P !== void 0 && (v[Oe] = P), v[l] = b, v[C.xAxisField] = b, v[C.dateBinningRange] = [b, B], delete v[C.dateBinModel], s.push(v);
|
|
6209
6213
|
} else N && d !== ee.End && s.length > 0 && (s[s.length - 1][C.dateBinningRange][1] = s[s.length - 1][C.dateBinningRange][1] + 1);
|
|
6210
|
-
S = T,
|
|
6214
|
+
S = T, x.binFirstOrLastIndex = T;
|
|
6211
6215
|
}
|
|
6212
6216
|
d === ee.End && (s = s.reverse());
|
|
6213
6217
|
} else u === 1 ? s = e.map((m, y) => {
|
|
6214
|
-
const
|
|
6215
|
-
let
|
|
6216
|
-
return
|
|
6217
|
-
date:
|
|
6218
|
+
const g = m[l];
|
|
6219
|
+
let p = e[y + 1]?.[l];
|
|
6220
|
+
return p = typeof p == "number" ? p - 1 : Ve({
|
|
6221
|
+
date: g,
|
|
6218
6222
|
unit: o,
|
|
6219
6223
|
size: u,
|
|
6220
6224
|
nextOrPrevious: "next"
|
|
6221
6225
|
}), {
|
|
6222
6226
|
...m,
|
|
6223
|
-
[C.dateBinningRange]: [
|
|
6227
|
+
[C.dateBinningRange]: [g, p]
|
|
6224
6228
|
};
|
|
6225
6229
|
}) : s = e;
|
|
6226
6230
|
return s;
|
|
@@ -6278,33 +6282,33 @@ function Cl(t) {
|
|
|
6278
6282
|
if (o !== void 0 && Number.isFinite(o) && a / i !== o) {
|
|
6279
6283
|
let y = Math.ceil(a / i) * i - a;
|
|
6280
6284
|
u === R.Week && (y *= 7);
|
|
6281
|
-
const
|
|
6285
|
+
const g = sr(n);
|
|
6282
6286
|
if (l === ee.End) {
|
|
6283
|
-
let
|
|
6287
|
+
let p = r[0][c];
|
|
6284
6288
|
for (let S = 0; S < y; S += 1)
|
|
6285
|
-
|
|
6286
|
-
date:
|
|
6289
|
+
p = Ve({
|
|
6290
|
+
date: p,
|
|
6287
6291
|
unit: u,
|
|
6288
6292
|
size: 1,
|
|
6289
6293
|
nextOrPrevious: "previous"
|
|
6290
6294
|
}), r.push({
|
|
6291
|
-
...
|
|
6292
|
-
[c]:
|
|
6293
|
-
[C.xAxisField]:
|
|
6295
|
+
...g,
|
|
6296
|
+
[c]: p,
|
|
6297
|
+
[C.xAxisField]: p
|
|
6294
6298
|
});
|
|
6295
6299
|
y > 0 && (d = r[r.length - 1][c]);
|
|
6296
6300
|
} else {
|
|
6297
|
-
let
|
|
6301
|
+
let p = r[r.length - 1][c];
|
|
6298
6302
|
for (let S = 0; S < y; S += 1)
|
|
6299
|
-
|
|
6300
|
-
date:
|
|
6303
|
+
p = Ve({
|
|
6304
|
+
date: p,
|
|
6301
6305
|
unit: u,
|
|
6302
6306
|
size: 1,
|
|
6303
6307
|
nextOrPrevious: "next"
|
|
6304
6308
|
}), r.push({
|
|
6305
|
-
...
|
|
6306
|
-
[c]:
|
|
6307
|
-
[C.xAxisField]:
|
|
6309
|
+
...g,
|
|
6310
|
+
[c]: p,
|
|
6311
|
+
[C.xAxisField]: p
|
|
6308
6312
|
});
|
|
6309
6313
|
f = r[r.length - 1][c];
|
|
6310
6314
|
}
|
|
@@ -6363,14 +6367,14 @@ function Nl(t) {
|
|
|
6363
6367
|
unit: u
|
|
6364
6368
|
})) {
|
|
6365
6369
|
const { x: d } = a[0], f = a[0].temporalBinning?.timeAggregationType, m = sr(a);
|
|
6366
|
-
let
|
|
6367
|
-
for (;
|
|
6368
|
-
|
|
6370
|
+
let g = f === ee.End ? i : e, p = f === ee.End ? r.length - 1 : 0;
|
|
6371
|
+
for (; p < r.length && (f === ee.End && g > e || f !== ee.End && g < i); )
|
|
6372
|
+
g !== r[p][d] ? c.push({
|
|
6369
6373
|
...m,
|
|
6370
|
-
[d]:
|
|
6371
|
-
[C.xAxisField]:
|
|
6372
|
-
}) :
|
|
6373
|
-
date:
|
|
6374
|
+
[d]: g,
|
|
6375
|
+
[C.xAxisField]: g
|
|
6376
|
+
}) : p = f === ee.End ? p - 1 : p + 1, g = Ve({
|
|
6377
|
+
date: g,
|
|
6374
6378
|
unit: u === R.Month || u === R.Year ? R.Day : u,
|
|
6375
6379
|
size: 1,
|
|
6376
6380
|
nextOrPrevious: f === ee.End ? "previous" : "next"
|
|
@@ -6421,20 +6425,20 @@ function* wl(t) {
|
|
|
6421
6425
|
}
|
|
6422
6426
|
];
|
|
6423
6427
|
let y = Ue.groupByCaseBegin;
|
|
6424
|
-
for (let
|
|
6425
|
-
const S = r[
|
|
6428
|
+
for (let p = 0; p < r.length; p += 1) {
|
|
6429
|
+
const S = r[p], [x, v] = S[C.dateBinningRange], b = nt(x), B = nt(v);
|
|
6426
6430
|
y = Al({
|
|
6427
6431
|
groupByFieldsForStatistics: y,
|
|
6428
|
-
queryStartDate:
|
|
6432
|
+
queryStartDate: b,
|
|
6429
6433
|
queryEndDate: B,
|
|
6430
6434
|
dateField: l,
|
|
6431
6435
|
y: [d].flat()[0],
|
|
6432
|
-
binIndex:
|
|
6433
|
-
lastBin:
|
|
6436
|
+
binIndex: p,
|
|
6437
|
+
lastBin: p === r.length - 1
|
|
6434
6438
|
});
|
|
6435
6439
|
}
|
|
6436
6440
|
y = `${y} ${Ue.groupByCaseEnd}`;
|
|
6437
|
-
const
|
|
6441
|
+
const g = {
|
|
6438
6442
|
...a,
|
|
6439
6443
|
groupByFieldsForStatistics: [y],
|
|
6440
6444
|
outStatistics: m,
|
|
@@ -6442,7 +6446,7 @@ function* wl(t) {
|
|
|
6442
6446
|
};
|
|
6443
6447
|
yield Fe({
|
|
6444
6448
|
queryObject: e,
|
|
6445
|
-
queryConfig:
|
|
6449
|
+
queryConfig: g,
|
|
6446
6450
|
noBatch: !0,
|
|
6447
6451
|
errorStrings: n,
|
|
6448
6452
|
abortSignal: s
|
|
@@ -6461,14 +6465,14 @@ async function Ll(t) {
|
|
|
6461
6465
|
abortSignal: s
|
|
6462
6466
|
}), l = (await Promise.all(c)).flat();
|
|
6463
6467
|
if (l.length > 0) {
|
|
6464
|
-
const { isInItem: d, expr: f } =
|
|
6468
|
+
const { isInItem: d, expr: f } = Vt(l[0].attributes);
|
|
6465
6469
|
d && l.forEach((m) => {
|
|
6466
6470
|
const y = m.attributes[`${f}`];
|
|
6467
6471
|
if (y !== void 0) {
|
|
6468
|
-
const [
|
|
6469
|
-
if (
|
|
6472
|
+
const [g, p] = y.split("|");
|
|
6473
|
+
if (p !== void 0) {
|
|
6470
6474
|
const S = m.attributes[D.ContinuousPercentile];
|
|
6471
|
-
o[
|
|
6475
|
+
o[p][`${g}`] = S;
|
|
6472
6476
|
}
|
|
6473
6477
|
}
|
|
6474
6478
|
});
|
|
@@ -6495,10 +6499,10 @@ function Gi(t) {
|
|
|
6495
6499
|
}
|
|
6496
6500
|
}
|
|
6497
6501
|
function Pl(t) {
|
|
6498
|
-
const { chartConfig: e, queryResults: i, mapToStatField: a, splitByField: r, x: n, y: s, nullPolicy: o, queryObject: u } = t, c = Ea(n), d = Ce(u).find((
|
|
6499
|
-
return i.forEach((
|
|
6500
|
-
if (!(y && (S === 0 &&
|
|
6501
|
-
const { attributes: v, stackedAttributes:
|
|
6502
|
+
const { chartConfig: e, queryResults: i, mapToStatField: a, splitByField: r, x: n, y: s, nullPolicy: o, queryObject: u } = t, c = Ea(n), d = Ce(u).find((p) => p.name === n)?.type, f = [], m = e.series[0], y = "temporalBinning" in m ? m.temporalBinning?.trimIncompleteTimeInterval : !1, g = "temporalBinning" in m ? m.temporalBinning?.timeAggregationType : !1;
|
|
6503
|
+
return i.forEach((p, S) => {
|
|
6504
|
+
if (!(y && (S === 0 && g === ee.End || S === i.length - 1 && g === ee.Start))) {
|
|
6505
|
+
const { attributes: v, stackedAttributes: b } = p;
|
|
6502
6506
|
let B = v[c.lowerBoundaryAlias], N = v[c.upperBoundaryAlias];
|
|
6503
6507
|
const T = B, w = N, L = (A, I) => {
|
|
6504
6508
|
let P = A;
|
|
@@ -6515,7 +6519,7 @@ function Pl(t) {
|
|
|
6515
6519
|
};
|
|
6516
6520
|
if (B = L(B, d), N = L(N, d), typeof B == "number" && typeof N == "number") {
|
|
6517
6521
|
const A = { ...v };
|
|
6518
|
-
A[C.originalServerBinningRange] = [T, w], A[n] = B, A[C.xAxisField] = B, A[C.dateBinningRange] = [B, N], delete A[c.lowerBoundaryAlias], delete A[c.upperBoundaryAlias],
|
|
6522
|
+
A[C.originalServerBinningRange] = [T, w], A[n] = B, A[C.xAxisField] = B, A[C.dateBinningRange] = [B, N], delete A[c.lowerBoundaryAlias], delete A[c.upperBoundaryAlias], b && r && !oe(r) && a ? b.forEach((O) => {
|
|
6519
6523
|
const V = O[r];
|
|
6520
6524
|
if (V === null || typeof V == "string" || typeof V == "number") {
|
|
6521
6525
|
const $ = a?.get(V);
|
|
@@ -6523,7 +6527,7 @@ function Pl(t) {
|
|
|
6523
6527
|
}
|
|
6524
6528
|
}) : typeof s == "string" && Gi({ dataItem: A, statField: s, nullPolicy: o });
|
|
6525
6529
|
const { featureExtent: I, featureExtentKey: P } = or({
|
|
6526
|
-
feature:
|
|
6530
|
+
feature: p,
|
|
6527
6531
|
splitByField: r
|
|
6528
6532
|
});
|
|
6529
6533
|
I && (A[P] = I), f.push(A);
|
|
@@ -6551,25 +6555,25 @@ async function Ml(t) {
|
|
|
6551
6555
|
arrayToSort: l,
|
|
6552
6556
|
sortingField: a
|
|
6553
6557
|
}), m > 1) {
|
|
6554
|
-
const { numberOfFinalBinsWithinDataRange: y, numberOfSingleBinsWithinDataRange:
|
|
6558
|
+
const { numberOfFinalBinsWithinDataRange: y, numberOfSingleBinsWithinDataRange: g } = nr({
|
|
6555
6559
|
dateMinTimestamp: d,
|
|
6556
6560
|
dateMaxTimestamp: f,
|
|
6557
6561
|
timeIntervalInfo: o
|
|
6558
|
-
}), { newDateMin:
|
|
6562
|
+
}), { newDateMin: p, newDateMax: S } = Cl({
|
|
6559
6563
|
dateMaxTimestamp: f,
|
|
6560
6564
|
data: l,
|
|
6561
6565
|
numberOfFinalBinsWithinDataRange: y,
|
|
6562
|
-
numberOfSingleBinsWithinDataRange:
|
|
6566
|
+
numberOfSingleBinsWithinDataRange: g,
|
|
6563
6567
|
seriesConfig: n,
|
|
6564
6568
|
timeIntervalInfo: o
|
|
6565
6569
|
});
|
|
6566
6570
|
l = Nl({
|
|
6567
|
-
newDateMin:
|
|
6571
|
+
newDateMin: p,
|
|
6568
6572
|
newDateMax: S,
|
|
6569
6573
|
seriesConfig: n,
|
|
6570
6574
|
data: l,
|
|
6571
6575
|
initialNumberOfBins: m,
|
|
6572
|
-
numberOfSingleBinsWithinDataRange:
|
|
6576
|
+
numberOfSingleBinsWithinDataRange: g,
|
|
6573
6577
|
timeIntervalInfo: o
|
|
6574
6578
|
}), ht({
|
|
6575
6579
|
arrayToSort: l,
|
|
@@ -6609,8 +6613,8 @@ function Ol(t) {
|
|
|
6609
6613
|
({ unit: a } = l);
|
|
6610
6614
|
const m = u / d, y = f.findIndex(
|
|
6611
6615
|
(S) => S >= m
|
|
6612
|
-
),
|
|
6613
|
-
r =
|
|
6616
|
+
), g = f[y], p = y === 0 ? f[0] : f[y - 1];
|
|
6617
|
+
r = g - m < m - p ? g : p;
|
|
6614
6618
|
}
|
|
6615
6619
|
return { size: r, unit: a };
|
|
6616
6620
|
}
|
|
@@ -6619,7 +6623,7 @@ function Il(t) {
|
|
|
6619
6623
|
let r = !1;
|
|
6620
6624
|
if (be(e) && i) {
|
|
6621
6625
|
const { unit: n, size: s } = e.temporalBinning ?? {};
|
|
6622
|
-
r = !
|
|
6626
|
+
r = !ti(n, s) && a === !0;
|
|
6623
6627
|
}
|
|
6624
6628
|
return r;
|
|
6625
6629
|
}
|
|
@@ -6638,10 +6642,10 @@ function El(t) {
|
|
|
6638
6642
|
Number(e[5] ?? 0)
|
|
6639
6643
|
).valueOf();
|
|
6640
6644
|
}
|
|
6641
|
-
async function
|
|
6642
|
-
const { queryObject: e, queryConfig: i, category: a, splitByField: r, chartLimits: n, errorStrings: s, abortKey: o, abortSignal: u } = t, c = r !== void 0, l = a !==
|
|
6645
|
+
async function Yt(t) {
|
|
6646
|
+
const { queryObject: e, queryConfig: i, category: a, splitByField: r, chartLimits: n, errorStrings: s, abortKey: o, abortSignal: u } = t, c = r !== void 0, l = a !== Rt ? [a] : [];
|
|
6643
6647
|
c && l.push(r);
|
|
6644
|
-
const d = z(e), { idField: f, isTraditionalTypeOID: m } = ve(d), y = m ? f : "*",
|
|
6648
|
+
const d = z(e), { idField: f, isTraditionalTypeOID: m } = ve(d), y = m ? f : "*", g = {
|
|
6645
6649
|
...i,
|
|
6646
6650
|
groupByFieldsForStatistics: Array.from(new Set(l)),
|
|
6647
6651
|
outStatistics: [
|
|
@@ -6659,20 +6663,20 @@ async function Ut(t) {
|
|
|
6659
6663
|
// state, using the `returnDistinctValues` on a specific field.
|
|
6660
6664
|
// Refer to: https://devtopia.esri.com/WebGIS/arcgis-charts/issues/8208
|
|
6661
6665
|
num: n?.maxBarThreePlusSeriesCountTotal
|
|
6662
|
-
},
|
|
6666
|
+
}, p = await Fe({
|
|
6663
6667
|
queryObject: e,
|
|
6664
6668
|
featureCount: 1,
|
|
6665
6669
|
// skipping the count
|
|
6666
|
-
queryConfig:
|
|
6670
|
+
queryConfig: g,
|
|
6667
6671
|
errorStrings: s,
|
|
6668
6672
|
abortKey: o,
|
|
6669
6673
|
abortSignal: u
|
|
6670
6674
|
});
|
|
6671
6675
|
return Array.from(
|
|
6672
6676
|
new Set(
|
|
6673
|
-
|
|
6677
|
+
p.map((x) => x.attributes[c ? r : a])
|
|
6674
6678
|
)
|
|
6675
|
-
).sort((
|
|
6679
|
+
).sort((x, v) => typeof x == "string" && typeof v == "string" ? x.localeCompare(v) : Number(x) - Number(v));
|
|
6676
6680
|
}
|
|
6677
6681
|
function or(t) {
|
|
6678
6682
|
const { feature: e, splitByField: i, chartSubType: a } = t;
|
|
@@ -6861,7 +6865,7 @@ function lr(t) {
|
|
|
6861
6865
|
showMean: u,
|
|
6862
6866
|
chartLimits: c,
|
|
6863
6867
|
fieldList: l
|
|
6864
|
-
} = t, { series: d } = a, f = k(d), m = _(d), { x: y } = d[0],
|
|
6868
|
+
} = t, { series: d } = a, f = k(d), m = _(d), { x: y } = d[0], g = "y" in d[0] ? d[0].y : void 0, p = d[0].query?.outStatistics ?? [], S = we(a?.axes?.[0]?.valueFormat), { originalYCategoryValue: x, originalCategoryValue: v, originalDateValue: b } = C, B = ri(e, y), N = typeof g == "string" ? ri(e, g) : void 0, w = ro(l ?? []).includes(y), L = [];
|
|
6865
6869
|
let A = 0;
|
|
6866
6870
|
const I = /* @__PURE__ */ new Set(), { maxCategoryCount: P } = ut(c), O = Wl({ queryResponse: i, chartConfig: a, maxCategoryCount: P });
|
|
6867
6871
|
for (let V = 0; O[V] && V < O.length && !(o !== void 0 && A >= o); V += 1) {
|
|
@@ -6871,40 +6875,40 @@ function lr(t) {
|
|
|
6871
6875
|
if (Gl({ attributes: M, uniqueCategoryList: I, maxCategoryCount: P, x: y, chartSubType: f }))
|
|
6872
6876
|
continue;
|
|
6873
6877
|
if (kl(M, d), f === F.PieFromFields || f === F.BarAndLineFromFields)
|
|
6874
|
-
M = Ql(M,
|
|
6875
|
-
else if (typeof
|
|
6878
|
+
M = Ql(M, p);
|
|
6879
|
+
else if (typeof g == "string" && f === F.BarAndLineSplitByNoAggregation) {
|
|
6876
6880
|
const ae = z(e), { idField: pe, isTraditionalTypeOID: $e } = ve(ae);
|
|
6877
|
-
_l({ dataItem: M, splitByField: n, y:
|
|
6878
|
-
} else
|
|
6881
|
+
_l({ dataItem: M, splitByField: n, y: g, fieldOID: $e ? pe : void 0 });
|
|
6882
|
+
} else g && (f === F.BoxPlotMonoField || f === F.BoxPlotMonoFieldAndCategory || f === F.BoxPlotMonoFieldAndSplitBy || f === F.BoxPlotMonoFieldAndCategoryAndSplitBy) && jl(
|
|
6879
6883
|
M,
|
|
6880
|
-
typeof
|
|
6884
|
+
typeof g == "string" ? g : g[0]
|
|
6881
6885
|
);
|
|
6882
6886
|
zl({ attributes: M, showMean: u, chartSubType: f });
|
|
6883
6887
|
let q = M[y];
|
|
6884
|
-
const G = typeof
|
|
6888
|
+
const G = typeof g == "string" ? M[g] : void 0;
|
|
6885
6889
|
q === null && d[0]?.query?.fetchNullValues === !0 && f !== F.PieFromFields && (M[v] = null, q = C.nullValue), S || (w && typeof q == "string" ? q = new Date(q).valueOf() : s && (q = El(M))), typeof q == "string" && l?.find((ae) => ae.name === y)?.type === U.TimeOnly && (M[v] = q, q = Yl(q));
|
|
6886
6890
|
const { outStatisticFieldName: J } = W.outStatistics ?? {}, { featureExtent: X, featureExtentKey: H } = or({ feature: $, splitByField: n, chartSubType: f });
|
|
6887
6891
|
if (X && (M[H] = X), f === F.BarAndLineSplitBy && J !== void 0) {
|
|
6888
6892
|
const ae = M[n], pe = r?.get(ae);
|
|
6889
6893
|
pe !== void 0 && (ae === n && (M[C.technicalFieldSplitByField] = M[pe]), M[pe] = M[J]), delete M[J];
|
|
6890
|
-
} else (f === F.PieNoAggregation || f === F.BarAndLineNoAggregation || f === F.BarAndLineSplitByNoAggregation) && (w ? M[
|
|
6894
|
+
} else (f === F.PieNoAggregation || f === F.BarAndLineNoAggregation || f === F.BarAndLineSplitByNoAggregation) && (w ? M[b] = q : q !== C.nullValue && (M[v] = q), cn({ isXAxis: !0, chartType: m, valueFormat: a.axes?.[0]?.valueFormat }) && (M[C.xAxisField] = `${q}-${V}`, M[C.xAxisDisplayField] = q), M[W.uniqueIdsName] = $.getObjectId());
|
|
6891
6895
|
m === h.BoxPlotSeries && (M = Rl(d, M)), m === h.PieSeries && typeof q == "number" && (M[v] === void 0 && (M[v] = M[y]), q = `${q}`), q !== void 0 && (M[v] === void 0 && (M[v] = M[y]), M[y] === null ? M[y] = m === h.HeatSeries ? "null" : C.nullValue : M[y] = q, Ul({
|
|
6892
6896
|
attributes: M,
|
|
6893
6897
|
xValue: q,
|
|
6894
6898
|
yValue: G,
|
|
6895
6899
|
x: y,
|
|
6896
|
-
y:
|
|
6900
|
+
y: g,
|
|
6897
6901
|
xFieldDomain: B,
|
|
6898
6902
|
yFieldDomain: N,
|
|
6899
6903
|
chartType: m,
|
|
6900
6904
|
chartSubType: f,
|
|
6901
6905
|
xAxisValueFormat: a.axes?.[0].valueFormat,
|
|
6902
6906
|
yAxisValueFormat: a.axes?.[1]?.valueFormat
|
|
6903
|
-
}), m === h.HeatSeries && typeof
|
|
6907
|
+
}), m === h.HeatSeries && typeof g == "string" && M[g] === null && (M[g] = "null", M[x] = null), M[C.xAxisField] === void 0 && (M[C.xAxisField] = M[y])), M = $l(M, a), L.push(M);
|
|
6904
6908
|
}
|
|
6905
6909
|
return L;
|
|
6906
6910
|
}
|
|
6907
|
-
async function
|
|
6911
|
+
async function jt(t) {
|
|
6908
6912
|
const {
|
|
6909
6913
|
queryObject: e,
|
|
6910
6914
|
uniqueQuery: i,
|
|
@@ -6919,19 +6923,19 @@ async function _t(t) {
|
|
|
6919
6923
|
popupTemplateFieldInfosEnabled: d,
|
|
6920
6924
|
preFetchedQueryResponse: f,
|
|
6921
6925
|
errorStrings: m
|
|
6922
|
-
} = t, { series: y } = a,
|
|
6923
|
-
let
|
|
6924
|
-
const S =
|
|
6926
|
+
} = t, { series: y } = a, g = k(y);
|
|
6927
|
+
let p = [];
|
|
6928
|
+
const S = g === F.BarAndLineSplitBy || g === F.BarAndLineSplitByNoAggregation ? te(y[0].query?.where) : "", x = f ?? await Fe({
|
|
6925
6929
|
queryObject: e,
|
|
6926
6930
|
queryConfig: i,
|
|
6927
6931
|
featureCount: o,
|
|
6928
6932
|
abortKey: n,
|
|
6929
6933
|
errorStrings: m,
|
|
6930
6934
|
abortSignal: s
|
|
6931
|
-
}), v = Ce(e, d), { x } = y[0];
|
|
6932
|
-
return
|
|
6935
|
+
}), v = Ce(e, d), { x: b } = y[0];
|
|
6936
|
+
return p = lr({
|
|
6933
6937
|
queryObject: e,
|
|
6934
|
-
queryResponse:
|
|
6938
|
+
queryResponse: x,
|
|
6935
6939
|
chartConfig: a,
|
|
6936
6940
|
mapToStatField: r,
|
|
6937
6941
|
splitByField: S,
|
|
@@ -6940,10 +6944,10 @@ async function _t(t) {
|
|
|
6940
6944
|
resultLimit: i.num,
|
|
6941
6945
|
showMean: c,
|
|
6942
6946
|
chartLimits: l
|
|
6943
|
-
}),
|
|
6944
|
-
|
|
6947
|
+
}), g !== F.BarAndLineSplitByNoAggregation && g !== F.BarAndLineFromFields && (S !== "" && (p = bt({ data: p, x: b, splitByField: S })), p = Vl(
|
|
6948
|
+
p,
|
|
6945
6949
|
y
|
|
6946
|
-
)),
|
|
6950
|
+
)), p;
|
|
6947
6951
|
}
|
|
6948
6952
|
async function ur(t) {
|
|
6949
6953
|
const {
|
|
@@ -6967,7 +6971,7 @@ async function ur(t) {
|
|
|
6967
6971
|
abortSignal: o
|
|
6968
6972
|
}), f !== void 0) {
|
|
6969
6973
|
const y = c === F.BoxPlotMonoField || c === F.BoxPlotMonoFieldAndCategory || c === F.BoxPlotMonoFieldAndSplitBy;
|
|
6970
|
-
m =
|
|
6974
|
+
m = ii(c) && !y ? f * d : f;
|
|
6971
6975
|
}
|
|
6972
6976
|
return n === lt.RenderUpToTheLimit && m !== void 0 && r !== void 0 && r < m && (m = r, f = Math.ceil(m / d)), { categoryOrDateCount: f, elementCount: m };
|
|
6973
6977
|
}
|
|
@@ -6987,13 +6991,13 @@ async function oi(t) {
|
|
|
6987
6991
|
chartLimits: f,
|
|
6988
6992
|
popupTemplateFieldInfosEnabled: m,
|
|
6989
6993
|
hideZeroCountCategories: y
|
|
6990
|
-
} = t,
|
|
6994
|
+
} = t, g = st(e), p = t.replaceNoValueCategoryWithZero ?? C.options.replaceNoValueCategoryWithZero, S = !(y ?? !p), { behaviorAfterLimit: x } = f ?? {};
|
|
6991
6995
|
let v;
|
|
6992
|
-
const
|
|
6996
|
+
const b = { valid: !0 };
|
|
6993
6997
|
let B, N = !1;
|
|
6994
6998
|
const T = e.series, w = T[0], L = k(e.series);
|
|
6995
6999
|
if (ie(r))
|
|
6996
|
-
v = _(T) === h.BarSeries ? await zs(t) :
|
|
7000
|
+
v = _(T) === h.BarSeries ? await zs(t) : b;
|
|
6997
7001
|
else {
|
|
6998
7002
|
if (w !== void 0) {
|
|
6999
7003
|
const A = _(T), { uniqueQuery: I, mapToStatField: P } = yi({
|
|
@@ -7009,7 +7013,7 @@ async function oi(t) {
|
|
|
7009
7013
|
chartConfig: e,
|
|
7010
7014
|
queryObject: r,
|
|
7011
7015
|
queryConfig: i,
|
|
7012
|
-
behaviorAfterLimit:
|
|
7016
|
+
behaviorAfterLimit: x,
|
|
7013
7017
|
numberMaxOfFeaturesToFetch: I.num,
|
|
7014
7018
|
abortSignal: c
|
|
7015
7019
|
});
|
|
@@ -7020,7 +7024,7 @@ async function oi(t) {
|
|
|
7020
7024
|
chartType: A,
|
|
7021
7025
|
chartLimits: f
|
|
7022
7026
|
});
|
|
7023
|
-
if (M && (B = await
|
|
7027
|
+
if (M && (B = await jt({
|
|
7024
7028
|
queryObject: r,
|
|
7025
7029
|
uniqueQuery: I,
|
|
7026
7030
|
chartConfig: e,
|
|
@@ -7028,13 +7032,13 @@ async function oi(t) {
|
|
|
7028
7032
|
mapToStatField: P,
|
|
7029
7033
|
elementCount: V,
|
|
7030
7034
|
isTimeBinningSeries: !1,
|
|
7031
|
-
showMean:
|
|
7035
|
+
showMean: g,
|
|
7032
7036
|
chartLimits: f,
|
|
7033
7037
|
popupTemplateFieldInfosEnabled: m,
|
|
7034
7038
|
errorStrings: u,
|
|
7035
7039
|
abortKey: n,
|
|
7036
7040
|
abortSignal: c
|
|
7037
|
-
}), de(e) && B !== void 0 && (
|
|
7041
|
+
}), de(e) && B !== void 0 && (b.data = await Zo({
|
|
7038
7042
|
data: B,
|
|
7039
7043
|
queryObject: r,
|
|
7040
7044
|
fetchFullBoxPlotData: a,
|
|
@@ -7045,7 +7049,7 @@ async function oi(t) {
|
|
|
7045
7049
|
errorStrings: u,
|
|
7046
7050
|
abortKey: n,
|
|
7047
7051
|
abortSignal: c
|
|
7048
|
-
}), f?.maxBoxPlotOutlierLimit !== void 0 && (M = (
|
|
7052
|
+
}), f?.maxBoxPlotOutlierLimit !== void 0 && (M = (b.data.outliers ?? []).length <= f.maxBoxPlotOutlierLimit, N = !M)), $ && (O = B.length, V = ii(L) ? O * T.length : O, M = Ae({
|
|
7049
7053
|
count: V,
|
|
7050
7054
|
seriesCount: T.length,
|
|
7051
7055
|
chartType: A,
|
|
@@ -7059,7 +7063,7 @@ async function oi(t) {
|
|
|
7059
7063
|
fieldList: s
|
|
7060
7064
|
}));
|
|
7061
7065
|
let q = "";
|
|
7062
|
-
L === F.PieFromFields ? q = Ne : "y" in w && typeof w.y == "string" && (q = w.y), Vn(B, q) ?
|
|
7066
|
+
L === F.PieFromFields ? q = Ne : "y" in w && typeof w.y == "string" && (q = w.y), Vn(B, q) ? b.data = { dataItems: B } : Vo(b, j.PieChartMixOfNegativePositiveSlices);
|
|
7063
7067
|
} else if ((A === h.RadarSeries || A === h.BarSeries || A === h.LineSeries || A === h.ComboLineAndBarSeries) && (L === F.BarAndLineFromFields && "y" in w && typeof w.y == "string" ? B = Dt({
|
|
7064
7068
|
dataToConvert: B[0],
|
|
7065
7069
|
x: w.x,
|
|
@@ -7071,11 +7075,11 @@ async function oi(t) {
|
|
|
7071
7075
|
chartConfig: e,
|
|
7072
7076
|
queryConfig: i,
|
|
7073
7077
|
categoryOrDateCount: O,
|
|
7074
|
-
behaviorAfterLimit:
|
|
7078
|
+
behaviorAfterLimit: x,
|
|
7075
7079
|
errorStrings: u,
|
|
7076
7080
|
abortKey: n,
|
|
7077
7081
|
abortSignal: c
|
|
7078
|
-
}), V =
|
|
7082
|
+
}), V = ii(L) ? B.length * T.length : B.length, M = Ae({
|
|
7079
7083
|
count: V,
|
|
7080
7084
|
seriesCount: T.length,
|
|
7081
7085
|
chartType: A,
|
|
@@ -7087,16 +7091,16 @@ async function oi(t) {
|
|
|
7087
7091
|
const { size: G, unit: J } = w.temporalBinning ?? {};
|
|
7088
7092
|
G !== void 0 && J !== void 0 && (q = { size: G, unit: J });
|
|
7089
7093
|
}
|
|
7090
|
-
|
|
7094
|
+
b.data = { dataItems: B, timeIntervalInfo: q };
|
|
7091
7095
|
}
|
|
7092
7096
|
}
|
|
7093
|
-
M ||
|
|
7094
|
-
dataInfo:
|
|
7097
|
+
M || It({
|
|
7098
|
+
dataInfo: b,
|
|
7095
7099
|
chartType: A,
|
|
7096
7100
|
subError: { outlierLimit: N }
|
|
7097
|
-
}),
|
|
7101
|
+
}), b.count = V;
|
|
7098
7102
|
}
|
|
7099
|
-
v =
|
|
7103
|
+
v = b;
|
|
7100
7104
|
}
|
|
7101
7105
|
return v;
|
|
7102
7106
|
}
|
|
@@ -7135,11 +7139,11 @@ function Kl(t) {
|
|
|
7135
7139
|
for (const m of a) {
|
|
7136
7140
|
const y = String(m);
|
|
7137
7141
|
if (!l.has(`${f}|${y}`)) {
|
|
7138
|
-
const
|
|
7142
|
+
const g = u ? Vi({
|
|
7139
7143
|
queryObject: u,
|
|
7140
7144
|
fieldName: s,
|
|
7141
7145
|
fieldValue: f
|
|
7142
|
-
}) ?? d : d,
|
|
7146
|
+
}) ?? d : d, p = u ? Vi({
|
|
7143
7147
|
queryObject: u,
|
|
7144
7148
|
fieldName: o,
|
|
7145
7149
|
fieldValue: y
|
|
@@ -7147,8 +7151,8 @@ function Kl(t) {
|
|
|
7147
7151
|
c.push({
|
|
7148
7152
|
[C.originalCategoryValue]: d === null ? null : d,
|
|
7149
7153
|
[C.originalYCategoryValue]: m === null ? null : m,
|
|
7150
|
-
[Q.xField]: d === null ? "null" :
|
|
7151
|
-
[Q.yField]: m === null ? "null" :
|
|
7154
|
+
[Q.xField]: d === null ? "null" : g,
|
|
7155
|
+
[Q.yField]: m === null ? "null" : p,
|
|
7152
7156
|
[r]: n
|
|
7153
7157
|
});
|
|
7154
7158
|
}
|
|
@@ -7177,7 +7181,7 @@ async function cr(t) {
|
|
|
7177
7181
|
} = t, m = { valid: !0 };
|
|
7178
7182
|
let y;
|
|
7179
7183
|
if (We(e)) {
|
|
7180
|
-
const { nullPolicy:
|
|
7184
|
+
const { nullPolicy: g } = e, p = e.series[0], { x: S, y: x, query: v, xTemporalBinning: b, yTemporalBinning: B } = p, N = v?.outStatistics?.[0]?.outStatisticFieldName ?? "", T = v?.outStatistics?.[0]?.statisticType ?? D.Count, w = Xl(e), L = Q.valueField, A = g === Se.Zero ? 0 : null;
|
|
7181
7185
|
if (Io(e)) {
|
|
7182
7186
|
const I = await Ns({
|
|
7183
7187
|
chartConfig: e,
|
|
@@ -7194,7 +7198,7 @@ async function cr(t) {
|
|
|
7194
7198
|
chartType: h.HeatSeries,
|
|
7195
7199
|
chartLimits: o
|
|
7196
7200
|
}))
|
|
7197
|
-
|
|
7201
|
+
It({ dataInfo: m, chartType: h.HeatSeries });
|
|
7198
7202
|
else if (typeof I?.[0] == "object") {
|
|
7199
7203
|
const P = Ce(a, u);
|
|
7200
7204
|
y = lr({
|
|
@@ -7207,17 +7211,17 @@ async function cr(t) {
|
|
|
7207
7211
|
resultLimit: i.num,
|
|
7208
7212
|
fieldList: P
|
|
7209
7213
|
});
|
|
7210
|
-
const O = await
|
|
7214
|
+
const O = await Yt({
|
|
7211
7215
|
queryObject: a,
|
|
7212
7216
|
queryConfig: i,
|
|
7213
7217
|
category: S,
|
|
7214
7218
|
errorStrings: n,
|
|
7215
7219
|
abortKey: d,
|
|
7216
7220
|
abortSignal: f
|
|
7217
|
-
}), V = await
|
|
7221
|
+
}), V = await Yt({
|
|
7218
7222
|
queryObject: a,
|
|
7219
7223
|
queryConfig: i,
|
|
7220
|
-
category:
|
|
7224
|
+
category: x,
|
|
7221
7225
|
errorStrings: n,
|
|
7222
7226
|
abortKey: d,
|
|
7223
7227
|
abortSignal: f
|
|
@@ -7231,7 +7235,7 @@ async function cr(t) {
|
|
|
7231
7235
|
valueField: L,
|
|
7232
7236
|
emptyCellValue: A,
|
|
7233
7237
|
x: S,
|
|
7234
|
-
y:
|
|
7238
|
+
y: x,
|
|
7235
7239
|
queryObject: a
|
|
7236
7240
|
})
|
|
7237
7241
|
], w && (y = Jl({
|
|
@@ -7249,12 +7253,12 @@ async function cr(t) {
|
|
|
7249
7253
|
syncViewTimeZone: l,
|
|
7250
7254
|
errorStrings: n,
|
|
7251
7255
|
abortSignal: f
|
|
7252
|
-
}), P = B ? Zl(B.unit) : await
|
|
7256
|
+
}), P = B ? Zl(B.unit) : await Yt({ queryObject: a, queryConfig: i, category: x, errorStrings: n, abortKey: d, abortSignal: f });
|
|
7253
7257
|
let O = 0;
|
|
7254
7258
|
y = I?.features.flatMap((V) => {
|
|
7255
7259
|
const $ = [], { attributes: M, stackedAttributes: q } = V, G = [];
|
|
7256
7260
|
if (q?.forEach((J) => {
|
|
7257
|
-
const X = `${J[
|
|
7261
|
+
const X = `${J[x]}`;
|
|
7258
7262
|
G.push(X), $.push({
|
|
7259
7263
|
[Q.xField]: `${M[W.heatChartLowerBoundaryAlias]}`,
|
|
7260
7264
|
[Q.yField]: X,
|
|
@@ -7263,18 +7267,18 @@ async function cr(t) {
|
|
|
7263
7267
|
}), r && P && G.length !== P?.length) {
|
|
7264
7268
|
const J = P.filter((X) => !G.includes(X.toString()));
|
|
7265
7269
|
w && (J.length !== P.length || G.length === 0) || J.forEach((X) => {
|
|
7266
|
-
Number.isFinite(Number(M[W.heatChartLowerBoundaryAlias])) && Number.isFinite(Number(X)) && (
|
|
7270
|
+
Number.isFinite(Number(M[W.heatChartLowerBoundaryAlias])) && Number.isFinite(Number(X)) && (b?.unit === he.DayOfMonth && B?.unit === he.MonthOfYear && Ui({
|
|
7267
7271
|
day: Number(M[W.heatChartLowerBoundaryAlias]),
|
|
7268
7272
|
month: Number(X),
|
|
7269
7273
|
includeLeapDay: e.includeLeapDay
|
|
7270
|
-
}) || B?.unit === he.DayOfMonth &&
|
|
7274
|
+
}) || B?.unit === he.DayOfMonth && b?.unit === he.MonthOfYear && Ui({
|
|
7271
7275
|
day: Number(X),
|
|
7272
7276
|
month: Number(M[W.heatChartLowerBoundaryAlias]),
|
|
7273
7277
|
includeLeapDay: e.includeLeapDay
|
|
7274
7278
|
})) || $.push({
|
|
7275
7279
|
[Q.xField]: `${M[W.heatChartLowerBoundaryAlias]}`,
|
|
7276
7280
|
[Q.yField]: X,
|
|
7277
|
-
[L]:
|
|
7281
|
+
[L]: g === Se.Zero ? 0 : null
|
|
7278
7282
|
});
|
|
7279
7283
|
});
|
|
7280
7284
|
}
|
|
@@ -7284,7 +7288,7 @@ async function cr(t) {
|
|
|
7284
7288
|
seriesCount: 1,
|
|
7285
7289
|
chartType: h.HeatSeries,
|
|
7286
7290
|
chartLimits: o
|
|
7287
|
-
}) ||
|
|
7291
|
+
}) || It({ dataInfo: m, chartType: h.HeatSeries });
|
|
7288
7292
|
}
|
|
7289
7293
|
y && (m.data = {
|
|
7290
7294
|
dataItems: y,
|
|
@@ -7335,18 +7339,18 @@ async function xi(t) {
|
|
|
7335
7339
|
popupTemplateFieldInfosEnabled: d,
|
|
7336
7340
|
view: f,
|
|
7337
7341
|
syncViewTimeZone: m
|
|
7338
|
-
} = t, { behaviorAfterLimit: y } = l ?? {},
|
|
7339
|
-
let
|
|
7340
|
-
if (be(
|
|
7341
|
-
const { temporalBinning: B } =
|
|
7342
|
+
} = t, { behaviorAfterLimit: y } = l ?? {}, g = e.series, p = g[0], { x: S } = p, x = te(p.query?.where), v = { valid: !0 };
|
|
7343
|
+
let b;
|
|
7344
|
+
if (be(p)) {
|
|
7345
|
+
const { temporalBinning: B } = p;
|
|
7342
7346
|
if (a && B) {
|
|
7343
7347
|
const { unit: N, size: T } = B;
|
|
7344
7348
|
let w = 1, L = { unit: N, size: T }, A = !1;
|
|
7345
7349
|
const I = Il({
|
|
7346
|
-
series:
|
|
7350
|
+
series: p,
|
|
7347
7351
|
isTimeBinningSeries: !0,
|
|
7348
7352
|
setTimeBinningInfoWhenNotProvided: u
|
|
7349
|
-
}), P = !rt(
|
|
7353
|
+
}), P = !rt(x, a) || I ? await Bl({ queryObject: a, queryConfig: i, x: S, errorStrings: o, abortSignal: n }) : void 0;
|
|
7350
7354
|
I && P && P.numberOfFeatures > 0 && P.dateRange.dateMaxTimestamp !== void 0 && P.dateRange.dateMinTimestamp !== void 0 && (L = Ol(P), Ce(a).find((G) => G.name === S)?.type === U.DateOnly && L.unit !== void 0 && [
|
|
7351
7355
|
R.Hour,
|
|
7352
7356
|
R.Minute,
|
|
@@ -7363,16 +7367,16 @@ async function xi(t) {
|
|
|
7363
7367
|
});
|
|
7364
7368
|
let $ = Ae({
|
|
7365
7369
|
count: w ?? 0,
|
|
7366
|
-
seriesCount:
|
|
7370
|
+
seriesCount: g.length,
|
|
7367
7371
|
chartType: h.LineSeries,
|
|
7368
7372
|
chartLimits: l
|
|
7369
7373
|
});
|
|
7370
7374
|
if ($) {
|
|
7371
|
-
if (rt(
|
|
7375
|
+
if (rt(x, a)) {
|
|
7372
7376
|
const M = e.axes?.[0].valueFormat.type === h.DateAxisFormat ? e.axes[0].valueFormat.intlOptions.timeZone : void 0, q = s?.[0] instanceof Er ? s : await Ps({
|
|
7373
7377
|
queryObject: a,
|
|
7374
7378
|
dateField: S,
|
|
7375
|
-
splitByField:
|
|
7379
|
+
splitByField: x,
|
|
7376
7380
|
queryConfig: O,
|
|
7377
7381
|
axisTimeZone: M,
|
|
7378
7382
|
temporalBinning: B,
|
|
@@ -7380,28 +7384,28 @@ async function xi(t) {
|
|
|
7380
7384
|
view: f,
|
|
7381
7385
|
syncViewTimeZone: m,
|
|
7382
7386
|
abortSignal: n
|
|
7383
|
-
}), G = "y" in
|
|
7384
|
-
if (
|
|
7387
|
+
}), G = "y" in p && typeof p.y == "string" ? p.y : void 0;
|
|
7388
|
+
if (b = Pl({
|
|
7385
7389
|
chartConfig: e,
|
|
7386
7390
|
queryResults: q,
|
|
7387
7391
|
mapToStatField: V,
|
|
7388
|
-
splitByField:
|
|
7392
|
+
splitByField: x,
|
|
7389
7393
|
x: S,
|
|
7390
7394
|
y: G,
|
|
7391
7395
|
nullPolicy: B.nullPolicy,
|
|
7392
7396
|
queryObject: a
|
|
7393
7397
|
}), !Ae({
|
|
7394
|
-
count:
|
|
7395
|
-
seriesCount:
|
|
7398
|
+
count: b.length,
|
|
7399
|
+
seriesCount: g.length,
|
|
7396
7400
|
chartType: h.LineSeries,
|
|
7397
7401
|
chartLimits: l
|
|
7398
7402
|
})) {
|
|
7399
|
-
const J = ue(
|
|
7403
|
+
const J = ue(g), X = b.filter(
|
|
7400
7404
|
(H) => J.some((ae) => ae in H && Number.isFinite(H[ae]))
|
|
7401
7405
|
).length;
|
|
7402
7406
|
Ae({
|
|
7403
7407
|
count: X,
|
|
7404
|
-
seriesCount:
|
|
7408
|
+
seriesCount: g.length,
|
|
7405
7409
|
chartType: h.LineSeries,
|
|
7406
7410
|
chartLimits: l
|
|
7407
7411
|
}) || ($ = !1);
|
|
@@ -7412,7 +7416,7 @@ async function xi(t) {
|
|
|
7412
7416
|
dateMaxTimestamp: P.dateRange.dateMaxTimestamp,
|
|
7413
7417
|
timeIntervalInfo: L
|
|
7414
7418
|
});
|
|
7415
|
-
w = M *
|
|
7419
|
+
w = M * g.length, w = rr(w, L.unit), b = await jt({
|
|
7416
7420
|
queryObject: a,
|
|
7417
7421
|
uniqueQuery: O,
|
|
7418
7422
|
chartConfig: e,
|
|
@@ -7424,21 +7428,21 @@ async function xi(t) {
|
|
|
7424
7428
|
errorStrings: o,
|
|
7425
7429
|
abortKey: r,
|
|
7426
7430
|
abortSignal: n
|
|
7427
|
-
}),
|
|
7431
|
+
}), b = await Ml({
|
|
7428
7432
|
queryObject: a,
|
|
7429
7433
|
queryConfig: i,
|
|
7430
|
-
queryResults:
|
|
7434
|
+
queryResults: b,
|
|
7431
7435
|
x: S,
|
|
7432
|
-
seriesConfig:
|
|
7436
|
+
seriesConfig: g,
|
|
7433
7437
|
dateRange: P.dateRange,
|
|
7434
7438
|
timeIntervalInfo: L,
|
|
7435
7439
|
errorStrings: o,
|
|
7436
7440
|
abortSignal: n
|
|
7437
7441
|
});
|
|
7438
7442
|
}
|
|
7439
|
-
fa(a) &&
|
|
7443
|
+
fa(a) && b && b?.length === pl && (A = !0), y === lt.RenderUpToTheLimit && b && (b = eu({ chartConfig: e, chartLimits: l, data: b }));
|
|
7440
7444
|
}
|
|
7441
|
-
$ || (v.valid = !1, v.invalidType = j.LineChartExceedsLimit),
|
|
7445
|
+
$ || (v.valid = !1, v.invalidType = j.LineChartExceedsLimit), b && b.length > 0 && (b[b.length - 1][C.lastTemporalBin] = !0), v.data = { dataItems: b, timeIntervalInfo: L, serverLimitReached: A }, v.count = w;
|
|
7442
7446
|
}
|
|
7443
7447
|
}
|
|
7444
7448
|
return v;
|
|
@@ -7459,7 +7463,7 @@ async function tu(t) {
|
|
|
7459
7463
|
xAxisValueFormatType: xe(e),
|
|
7460
7464
|
setTimeBinningInfoWhenNotProvided: n,
|
|
7461
7465
|
queryObject: a
|
|
7462
|
-
}), { uniqueQuery: y, mapToStatField:
|
|
7466
|
+
}), { uniqueQuery: y, mapToStatField: g } = yi({
|
|
7463
7467
|
chartConfig: e,
|
|
7464
7468
|
queryObject: a,
|
|
7465
7469
|
queryConfig: i,
|
|
@@ -7468,13 +7472,13 @@ async function tu(t) {
|
|
|
7468
7472
|
returnFeaturesExtent: s,
|
|
7469
7473
|
chartLimits: o
|
|
7470
7474
|
});
|
|
7471
|
-
let
|
|
7475
|
+
let p = await jt({
|
|
7472
7476
|
queryObject: a,
|
|
7473
7477
|
uniqueQuery: y,
|
|
7474
7478
|
elementCount: 1,
|
|
7475
7479
|
// this will skip the query counting the number of features, not needed for selection
|
|
7476
7480
|
chartConfig: e,
|
|
7477
|
-
mapToStatField:
|
|
7481
|
+
mapToStatField: g,
|
|
7478
7482
|
isTimeBinningSeries: m,
|
|
7479
7483
|
showMean: l,
|
|
7480
7484
|
chartLimits: o,
|
|
@@ -7482,7 +7486,7 @@ async function tu(t) {
|
|
|
7482
7486
|
errorStrings: c,
|
|
7483
7487
|
abortKey: r
|
|
7484
7488
|
});
|
|
7485
|
-
return de(e) && (
|
|
7489
|
+
return de(e) && (p = Ja({ chartConfig: e, data: p, calculateZScore: !1 })), d.data = { dataItems: p }, d;
|
|
7486
7490
|
}
|
|
7487
7491
|
async function iu(t) {
|
|
7488
7492
|
const {
|
|
@@ -7555,9 +7559,9 @@ async function nu(t) {
|
|
|
7555
7559
|
dataContextCountDistinctX: m,
|
|
7556
7560
|
dataContextCountDistinctY: y
|
|
7557
7561
|
} = C.scatterplotAggregationFields;
|
|
7558
|
-
let
|
|
7559
|
-
const
|
|
7560
|
-
if (
|
|
7562
|
+
let g, p, S, x, v;
|
|
7563
|
+
const b = e.get(c), B = e.get(l), N = e.get(d), T = e.get(f);
|
|
7564
|
+
if (b != null && N !== void 0 && N !== null && B !== void 0 && B !== null && T !== void 0 && T !== null && !Number.isNaN(b + B + N + T)) {
|
|
7561
7565
|
const { maxScatterPointsAfterAggregation: w } = ut(r), A = Math.floor(Math.sqrt(w)), I = await ru({
|
|
7562
7566
|
queryObject: a,
|
|
7563
7567
|
chartConfig: i,
|
|
@@ -7566,7 +7570,7 @@ async function nu(t) {
|
|
|
7566
7570
|
abortKey: o,
|
|
7567
7571
|
abortSignal: u
|
|
7568
7572
|
});
|
|
7569
|
-
S = Math.min(I.get(y) ?? Number.NaN, A),
|
|
7573
|
+
S = Math.min(I.get(y) ?? Number.NaN, A), x = Math.min(I.get(m) ?? Number.NaN, A), v = x * S, g = B === b ? 0 : (B - b) / (x - 1), p = T === N ? 0 : (T - N) / (S - 1), e.set(C.scatterplotAggregationFields.xStep, g), e.set(C.scatterplotAggregationFields.yStep, p), e.set(C.scatterplotAggregationFields.rowCount, S), e.set(C.scatterplotAggregationFields.columnCount, x), e.set(C.scatterplotAggregationFields.realGridSize, v);
|
|
7570
7574
|
}
|
|
7571
7575
|
}
|
|
7572
7576
|
function su(t) {
|
|
@@ -7617,13 +7621,13 @@ async function lu(t) {
|
|
|
7617
7621
|
dataContextXMinField: f,
|
|
7618
7622
|
dataContextXMaxField: m,
|
|
7619
7623
|
dataContextYMinField: y,
|
|
7620
|
-
dataContextYMaxField:
|
|
7621
|
-
queryNumberOfFeatures:
|
|
7624
|
+
dataContextYMaxField: g,
|
|
7625
|
+
queryNumberOfFeatures: p,
|
|
7622
7626
|
queryNumberOfAggregatedFeatures: S
|
|
7623
7627
|
} = C.scatterplotAggregationFields;
|
|
7624
|
-
let
|
|
7625
|
-
const v = e?.get(f) ?? Number.NaN,
|
|
7626
|
-
if (v != null && N !== void 0 && N !== null &&
|
|
7628
|
+
let x;
|
|
7629
|
+
const v = e?.get(f) ?? Number.NaN, b = e?.get(m) ?? Number.NaN, B = e?.get(p) ?? Number.NaN, N = e?.get(y) ?? v, T = e?.get(g) ?? b;
|
|
7630
|
+
if (v != null && N !== void 0 && N !== null && b !== void 0 && b !== null && T !== void 0 && T !== null && !Number.isNaN(v + b + N + T)) {
|
|
7627
7631
|
const w = z(a), { idField: L, isTraditionalTypeOID: A } = ve(w), I = A ? L : "*", P = e?.get(C.scatterplotAggregationFields.xStep), O = e?.get(C.scatterplotAggregationFields.yStep), V = e?.get(C.scatterplotAggregationFields.realGridSize), $ = e?.get(C.scatterplotAggregationFields.rowCount), M = e?.get(C.scatterplotAggregationFields.columnCount), q = /* @__PURE__ */ new Map(), G = Ce(a);
|
|
7628
7632
|
if (G?.forEach((H) => {
|
|
7629
7633
|
Ft(H) && q.set(H.name, {
|
|
@@ -7661,12 +7665,12 @@ async function lu(t) {
|
|
|
7661
7665
|
...r,
|
|
7662
7666
|
outStatistics: [...q.values()]
|
|
7663
7667
|
};
|
|
7664
|
-
|
|
7668
|
+
x = await Ts({
|
|
7665
7669
|
queryObject: a,
|
|
7666
7670
|
queryConfig: H,
|
|
7667
7671
|
xStep: P,
|
|
7668
7672
|
xMin: v,
|
|
7669
|
-
xMax:
|
|
7673
|
+
xMax: b,
|
|
7670
7674
|
x: l,
|
|
7671
7675
|
y: d,
|
|
7672
7676
|
yStep: O,
|
|
@@ -7675,10 +7679,10 @@ async function lu(t) {
|
|
|
7675
7679
|
});
|
|
7676
7680
|
} else if ($ !== void 0 && M !== void 0) {
|
|
7677
7681
|
let H = 0;
|
|
7678
|
-
const { maxScatterCellsPerQuery: ae, maxScatterCellsPerQueryForStandard: pe } =
|
|
7679
|
-
let
|
|
7680
|
-
for (;
|
|
7681
|
-
for (ke = N, Ct = 1; Ct <= $ &&
|
|
7682
|
+
const { maxScatterCellsPerQuery: ae, maxScatterCellsPerQueryForStandard: pe } = $t(), Ni = await no(w, u) ? pe : ae, Ti = [];
|
|
7683
|
+
let Ht = !0, Xe = v, ke = N, Je = "", Ct = 1, zt = 1, vt = Number.MAX_SAFE_INTEGER, Bt = Number.MIN_SAFE_INTEGER, Nt = Number.MAX_SAFE_INTEGER, Tt = Number.MIN_SAFE_INTEGER;
|
|
7684
|
+
for (; zt <= M && Ht; ) {
|
|
7685
|
+
for (ke = N, Ct = 1; Ct <= $ && Ht; ) {
|
|
7682
7686
|
if (Je = su({
|
|
7683
7687
|
groupByFieldsForStatistics: Je,
|
|
7684
7688
|
x: l,
|
|
@@ -7688,7 +7692,7 @@ async function lu(t) {
|
|
|
7688
7692
|
xStep: P,
|
|
7689
7693
|
yStep: O,
|
|
7690
7694
|
endOfRow: Ct === $,
|
|
7691
|
-
endOfColumn:
|
|
7695
|
+
endOfColumn: zt === M
|
|
7692
7696
|
}), Xe < vt && (vt = Xe), Xe + P > Bt && (Bt = Xe + P), ke < Nt && (Nt = ke), ke + P > Tt && (Tt = ke + O), H += 1, H % Ni === 0 || H === V || H === B) {
|
|
7693
7697
|
Je = `${Je} ${Ue.groupByCaseEnd}`;
|
|
7694
7698
|
const pr = {
|
|
@@ -7709,17 +7713,17 @@ async function lu(t) {
|
|
|
7709
7713
|
abortKey: o,
|
|
7710
7714
|
abortSignal: u
|
|
7711
7715
|
})
|
|
7712
|
-
), vt = Number.MAX_SAFE_INTEGER, Bt = Number.MIN_SAFE_INTEGER, Nt = Number.MAX_SAFE_INTEGER, Tt = Number.MIN_SAFE_INTEGER, Je = "", H === V && (
|
|
7716
|
+
), vt = Number.MAX_SAFE_INTEGER, Bt = Number.MIN_SAFE_INTEGER, Nt = Number.MAX_SAFE_INTEGER, Tt = Number.MIN_SAFE_INTEGER, Je = "", H === V && (Ht = !1);
|
|
7713
7717
|
}
|
|
7714
7718
|
ke += O, Ct += 1;
|
|
7715
7719
|
}
|
|
7716
|
-
Xe += P,
|
|
7720
|
+
Xe += P, zt += 1;
|
|
7717
7721
|
}
|
|
7718
|
-
|
|
7722
|
+
x = (await Promise.all(Ti)).flat();
|
|
7719
7723
|
}
|
|
7720
7724
|
}
|
|
7721
7725
|
}
|
|
7722
|
-
return
|
|
7726
|
+
return x;
|
|
7723
7727
|
}
|
|
7724
7728
|
async function uu(t) {
|
|
7725
7729
|
const { chartConfig: e, queryConfig: i, queryObject: a, errorStrings: r, abortKey: n, abortSignal: s } = t, o = e.series[0], { x: u, y: c } = o;
|
|
@@ -7729,12 +7733,12 @@ async function uu(t) {
|
|
|
7729
7733
|
dataContextXMaxField: f,
|
|
7730
7734
|
dataContextYMinField: m,
|
|
7731
7735
|
dataContextYMaxField: y,
|
|
7732
|
-
queryNumberOfFeatures:
|
|
7733
|
-
} = C.scatterplotAggregationFields, { idField:
|
|
7736
|
+
queryNumberOfFeatures: g
|
|
7737
|
+
} = C.scatterplotAggregationFields, { idField: p, isTraditionalTypeOID: S } = ve(z(a)), x = S ? p : "*", v = [
|
|
7734
7738
|
{
|
|
7735
7739
|
statisticType: D.Count,
|
|
7736
|
-
onStatisticField:
|
|
7737
|
-
outStatisticFieldName:
|
|
7740
|
+
onStatisticField: x,
|
|
7741
|
+
outStatisticFieldName: g
|
|
7738
7742
|
},
|
|
7739
7743
|
{
|
|
7740
7744
|
statisticType: D.Minimum,
|
|
@@ -7759,10 +7763,10 @@ async function uu(t) {
|
|
|
7759
7763
|
onStatisticField: c
|
|
7760
7764
|
}
|
|
7761
7765
|
);
|
|
7762
|
-
const
|
|
7763
|
-
return
|
|
7766
|
+
const b = { ...i };
|
|
7767
|
+
return b.outStatistics = v, l = await xt({
|
|
7764
7768
|
queryObject: a,
|
|
7765
|
-
queryConfig:
|
|
7769
|
+
queryConfig: b,
|
|
7766
7770
|
errorStrings: r,
|
|
7767
7771
|
abortKey: n,
|
|
7768
7772
|
abortSignal: s
|
|
@@ -7777,41 +7781,41 @@ function cu(t) {
|
|
|
7777
7781
|
let d = [];
|
|
7778
7782
|
if (e && "stackedAttributes" in i && i.stackedAttributes) {
|
|
7779
7783
|
const f = Oa(a, r), m = i.attributes[f.lowerBoundaryAlias], y = i.attributes[f.upperBoundaryAlias];
|
|
7780
|
-
i.stackedAttributes.forEach((
|
|
7781
|
-
let
|
|
7782
|
-
typeof
|
|
7783
|
-
const
|
|
7784
|
-
typeof
|
|
7785
|
-
...
|
|
7786
|
-
[a]: wt({ value:
|
|
7787
|
-
[r]: wt({ value: v, valueMin:
|
|
7784
|
+
i.stackedAttributes.forEach((g) => {
|
|
7785
|
+
let p = g[f.stackAlias], S;
|
|
7786
|
+
typeof p == "number" && typeof n == "number" && (p *= n), typeof p == "number" && typeof n == "number" && (S = p + n);
|
|
7787
|
+
const x = g[a], v = g[r];
|
|
7788
|
+
typeof p == "number" && typeof S == "number" && typeof x == "number" && typeof v == "number" && d.push({
|
|
7789
|
+
...g,
|
|
7790
|
+
[a]: wt({ value: x, valueMin: m, valueMax: y }),
|
|
7791
|
+
[r]: wt({ value: v, valueMin: p, valueMax: S }),
|
|
7788
7792
|
[o]: Math.min(m, y),
|
|
7789
7793
|
[u]: Math.max(m, y),
|
|
7790
|
-
[c]:
|
|
7794
|
+
[c]: p,
|
|
7791
7795
|
[l]: S
|
|
7792
7796
|
});
|
|
7793
7797
|
});
|
|
7794
7798
|
} else {
|
|
7795
|
-
const { expr: f, isInItem: m } =
|
|
7799
|
+
const { expr: f, isInItem: m } = Vt(i.attributes);
|
|
7796
7800
|
if (m && f && i.attributes[f] !== s) {
|
|
7797
|
-
let [y,
|
|
7798
|
-
y = Math.min(y,
|
|
7799
|
-
const
|
|
7801
|
+
let [y, g, p, S] = i.attributes[f].split("|");
|
|
7802
|
+
y = Math.min(y, g), g = Math.max(y, g), p = Math.min(p, S), S = Math.max(p, S);
|
|
7803
|
+
const x = {
|
|
7800
7804
|
...i.attributes,
|
|
7801
7805
|
[o]: y,
|
|
7802
|
-
[u]:
|
|
7803
|
-
[c]:
|
|
7806
|
+
[u]: g,
|
|
7807
|
+
[c]: p,
|
|
7804
7808
|
[l]: S
|
|
7805
7809
|
};
|
|
7806
|
-
|
|
7807
|
-
value:
|
|
7810
|
+
x[a] = wt({
|
|
7811
|
+
value: x[a],
|
|
7808
7812
|
valueMin: y,
|
|
7809
|
-
valueMax:
|
|
7810
|
-
}),
|
|
7811
|
-
value:
|
|
7812
|
-
valueMin:
|
|
7813
|
+
valueMax: g
|
|
7814
|
+
}), x[r] = wt({
|
|
7815
|
+
value: x[r],
|
|
7816
|
+
valueMin: p,
|
|
7813
7817
|
valueMax: S
|
|
7814
|
-
}), d = [
|
|
7818
|
+
}), d = [x];
|
|
7815
7819
|
}
|
|
7816
7820
|
}
|
|
7817
7821
|
return d;
|
|
@@ -7829,21 +7833,21 @@ function du(t) {
|
|
|
7829
7833
|
}) : f[0][W.uniqueIdsName] = d.getObjectId(), f;
|
|
7830
7834
|
});
|
|
7831
7835
|
return l = l?.filter((d) => {
|
|
7832
|
-
const { expr: f } =
|
|
7836
|
+
const { expr: f } = Vt(d);
|
|
7833
7837
|
return Number.isFinite(d[o]) && Number.isFinite(d[u]) && (f === void 0 || d[f] !== Ue.groupByOutKeyword);
|
|
7834
7838
|
}), l ?? [];
|
|
7835
7839
|
}
|
|
7836
7840
|
async function fu(t) {
|
|
7837
7841
|
const { queryObject: e, queryConfig: i, chartConfig: a, featureCount: r, errorStrings: n, abortKey: s, abortSignal: o } = t, u = a.series[0], { x: c, y: l } = u, d = z(e);
|
|
7838
7842
|
let f = [];
|
|
7839
|
-
const m = Ce(e), y =
|
|
7840
|
-
(
|
|
7841
|
-
) ?? [],
|
|
7842
|
-
/* @__PURE__ */ new Set([c, l, ...y ?? [], ...
|
|
7843
|
-
),
|
|
7844
|
-
if (
|
|
7845
|
-
const { rendererField:
|
|
7846
|
-
oe(
|
|
7843
|
+
const m = Ce(e), y = kt(d).idFields, g = (m?.filter((b) => Ft(b) && b.name !== c && b.name !== l) ?? []).map(
|
|
7844
|
+
(b) => b.name
|
|
7845
|
+
) ?? [], p = u?.additionalTooltipFields ?? [], S = Array.from(
|
|
7846
|
+
/* @__PURE__ */ new Set([c, l, ...y ?? [], ...g, ...p])
|
|
7847
|
+
), x = ge(d);
|
|
7848
|
+
if (x && !x.isTable) {
|
|
7849
|
+
const { rendererField: b, rendererNormalizationField: B } = io(d?.renderer ?? void 0);
|
|
7850
|
+
oe(b) || S.push(b), oe(B) || S.push(B);
|
|
7847
7851
|
}
|
|
7848
7852
|
const v = {
|
|
7849
7853
|
...i,
|
|
@@ -7874,11 +7878,11 @@ async function mu(t) {
|
|
|
7874
7878
|
abortSignal: d
|
|
7875
7879
|
} = t, f = i.series[0], { x: m, y } = f;
|
|
7876
7880
|
if (!Number.isNaN(s) && s > 0) {
|
|
7877
|
-
const
|
|
7878
|
-
|
|
7881
|
+
const g = { ...a };
|
|
7882
|
+
g.where = Y([g.where, `${m} IS NOT NULL`, `${y} IS NOT NULL`]), o ? e = await lu({
|
|
7879
7883
|
chartConfig: i,
|
|
7880
7884
|
queryObject: r,
|
|
7881
|
-
queryConfig:
|
|
7885
|
+
queryConfig: g,
|
|
7882
7886
|
statsMap: n,
|
|
7883
7887
|
useQueryAttributeBins: u,
|
|
7884
7888
|
errorStrings: c,
|
|
@@ -7887,7 +7891,7 @@ async function mu(t) {
|
|
|
7887
7891
|
}) : e = await fu({
|
|
7888
7892
|
queryObject: r,
|
|
7889
7893
|
chartConfig: i,
|
|
7890
|
-
queryConfig:
|
|
7894
|
+
queryConfig: g,
|
|
7891
7895
|
featureCount: s,
|
|
7892
7896
|
errorStrings: c,
|
|
7893
7897
|
abortKey: l,
|
|
@@ -7919,8 +7923,8 @@ async function dr(t) {
|
|
|
7919
7923
|
errorStrings: o,
|
|
7920
7924
|
abortKey: u,
|
|
7921
7925
|
abortSignal: c
|
|
7922
|
-
}), { queryNumberOfFeatures: f, yStep: m } = C.scatterplotAggregationFields, { maxScatterPointsBeforeAggregation: y } = ut(s),
|
|
7923
|
-
|
|
7926
|
+
}), { queryNumberOfFeatures: f, yStep: m } = C.scatterplotAggregationFields, { maxScatterPointsBeforeAggregation: y } = ut(s), g = d?.get(f) ?? Number.NaN, p = g >= y, S = gn(a);
|
|
7927
|
+
p && await nu({
|
|
7924
7928
|
statsMap: d,
|
|
7925
7929
|
chartConfig: e,
|
|
7926
7930
|
queryObject: a,
|
|
@@ -7930,17 +7934,17 @@ async function dr(t) {
|
|
|
7930
7934
|
abortKey: u,
|
|
7931
7935
|
abortSignal: c
|
|
7932
7936
|
});
|
|
7933
|
-
const
|
|
7937
|
+
const x = await mu({
|
|
7934
7938
|
...t,
|
|
7935
7939
|
queryObject: a,
|
|
7936
7940
|
statsMap: d,
|
|
7937
|
-
numberOfFeatures:
|
|
7938
|
-
isAggregationMode:
|
|
7941
|
+
numberOfFeatures: g,
|
|
7942
|
+
isAggregationMode: p,
|
|
7939
7943
|
useQueryAttributeBins: S
|
|
7940
7944
|
}), v = du({
|
|
7941
7945
|
chartConfig: e,
|
|
7942
|
-
rawData:
|
|
7943
|
-
isAggregationMode:
|
|
7946
|
+
rawData: x,
|
|
7947
|
+
isAggregationMode: p,
|
|
7944
7948
|
yStep: d.get(m),
|
|
7945
7949
|
useQueryAttributeBins: S
|
|
7946
7950
|
});
|
|
@@ -7949,7 +7953,7 @@ async function dr(t) {
|
|
|
7949
7953
|
sortingField: e.series[0].x,
|
|
7950
7954
|
orderBy: ye.Ascending
|
|
7951
7955
|
});
|
|
7952
|
-
const { r2:
|
|
7956
|
+
const { r2: b, trendLinePoints: B } = n !== !1 ? await Va({
|
|
7953
7957
|
data: v,
|
|
7954
7958
|
statsMap: d,
|
|
7955
7959
|
queryConfig: i,
|
|
@@ -7958,7 +7962,7 @@ async function dr(t) {
|
|
|
7958
7962
|
errorStrings: o,
|
|
7959
7963
|
abortSignal: c
|
|
7960
7964
|
}) : C.scatterplotSeries;
|
|
7961
|
-
l = { dataItems: v, r2:
|
|
7965
|
+
l = { dataItems: v, r2: b, trendLinePoints: B, aggregated: p };
|
|
7962
7966
|
}
|
|
7963
7967
|
return l;
|
|
7964
7968
|
}
|
|
@@ -7991,7 +7995,7 @@ function K(t) {
|
|
|
7991
7995
|
let u = n, l = it(i)[e];
|
|
7992
7996
|
return s === !0 && (e === E.Min || e === E.Max) && (l = `${l}${Rr}`), o === !0 && (mr(a) || e === E.Outlier) && (l = `${l}${$r}`), (n === void 0 || `${n}`.trim() === "") && (u = fe({ where: r, normalize: !0, escape: !1 })), u !== void 0 && `${u}`.trim() !== "" && (l = `${u}${l !== "" ? `_${l}` : ""}`), l;
|
|
7993
7997
|
}
|
|
7994
|
-
function
|
|
7998
|
+
function Zt(t) {
|
|
7995
7999
|
const { dataItem: e, y: i, splitBy: a, showOutliers: r } = t, n = K({ key: E.FirstQuartile, y: i, splitBy: a, showOutliers: r }), s = K({ key: E.ThirdQuartile, y: i, splitBy: a, showOutliers: r });
|
|
7996
8000
|
return Number.isFinite(e[n]) || Number.isFinite(e[s]);
|
|
7997
8001
|
}
|
|
@@ -8002,18 +8006,18 @@ function yu(t) {
|
|
|
8002
8006
|
case F.BoxPlotMonoField:
|
|
8003
8007
|
case F.BoxPlotMultiFields:
|
|
8004
8008
|
case F.BoxPlotMonoFieldAndCategory:
|
|
8005
|
-
s =
|
|
8009
|
+
s = Zt({ dataItem: i, showOutliers: r });
|
|
8006
8010
|
break;
|
|
8007
8011
|
case F.BoxPlotMultiFieldsAndCategory:
|
|
8008
8012
|
s = a.some(
|
|
8009
|
-
(o) =>
|
|
8013
|
+
(o) => Zt({ dataItem: i, y: o, showOutliers: r })
|
|
8010
8014
|
);
|
|
8011
8015
|
break;
|
|
8012
8016
|
case F.BoxPlotMonoFieldAndSplitBy:
|
|
8013
8017
|
case F.BoxPlotMultiFieldsAndSplitBy:
|
|
8014
8018
|
case F.BoxPlotMonoFieldAndCategoryAndSplitBy:
|
|
8015
8019
|
s = e.some(
|
|
8016
|
-
(o) =>
|
|
8020
|
+
(o) => Zt({
|
|
8017
8021
|
dataItem: i,
|
|
8018
8022
|
splitBy: o.query?.where,
|
|
8019
8023
|
showOutliers: r
|
|
@@ -8151,9 +8155,9 @@ function hu(t) {
|
|
|
8151
8155
|
r.forEach((l) => {
|
|
8152
8156
|
if (n) {
|
|
8153
8157
|
let d = 0, f = 0, m = !1, y = !1;
|
|
8154
|
-
for (let
|
|
8155
|
-
const
|
|
8156
|
-
Number.isFinite(
|
|
8158
|
+
for (let g = 0; g < l.length; g += 1) {
|
|
8159
|
+
const p = c[l[g]];
|
|
8160
|
+
Number.isFinite(p) && (p < 0 ? (f += p, y = !0, u = !0) : (d += p, m = !0));
|
|
8157
8161
|
}
|
|
8158
8162
|
s = m ? Math.max(s, d) : s, o = y ? Math.min(o, f) : o, m && !y && (o = Math.min(o, d)), !m && y && (s = Math.max(s, f)), m && d <= 0 && (u = !0);
|
|
8159
8163
|
} else {
|
|
@@ -8183,19 +8187,19 @@ function Yi(t) {
|
|
|
8183
8187
|
const d = s.filter((m) => m[c] !== null);
|
|
8184
8188
|
if ({ min: a, max: r } = St(d, (m) => m[c]), n.axes?.[0]?.valueFormat.type === h.DateAxisFormat && a !== void 0 && r !== void 0 && ([a, r] = [new Date(a).valueOf(), new Date(r).valueOf()]), l === h.BoxPlotSeries) {
|
|
8185
8189
|
e = Number.MAX_SAFE_INTEGER, i = Number.MIN_SAFE_INTEGER;
|
|
8186
|
-
const m = ue(u, o), y = k(u),
|
|
8190
|
+
const m = ue(u, o), y = k(u), g = "standardizeValues" in n ? n.standardizeValues === !0 : void 0, p = n.series.map(
|
|
8187
8191
|
(S) => S.visible !== !1 ? fe({ where: S.query?.where }) : ""
|
|
8188
8192
|
);
|
|
8189
|
-
|
|
8190
|
-
m.forEach((
|
|
8191
|
-
const v = y === F.BoxPlotMultiFieldsAndCategory ?
|
|
8192
|
-
|
|
8193
|
+
p.length === 0 && p.push(" "), d.forEach((S) => {
|
|
8194
|
+
m.forEach((x) => {
|
|
8195
|
+
const v = y === F.BoxPlotMultiFieldsAndCategory ? x : void 0;
|
|
8196
|
+
p.forEach((b) => {
|
|
8193
8197
|
const { min: B, max: N } = Su({
|
|
8194
8198
|
y: v,
|
|
8195
|
-
splitByValue:
|
|
8199
|
+
splitByValue: b,
|
|
8196
8200
|
chartSubType: y,
|
|
8197
8201
|
showOutliers: !1,
|
|
8198
|
-
standardizeValues:
|
|
8202
|
+
standardizeValues: g,
|
|
8199
8203
|
dataItem: S
|
|
8200
8204
|
});
|
|
8201
8205
|
B != null && B < e && (e = B), N != null && N > i && (i = N);
|
|
@@ -8207,22 +8211,22 @@ function Yi(t) {
|
|
|
8207
8211
|
// we should keep the intention of the function purely as it is, meaning retrieving the min/max values from the stacked series.
|
|
8208
8212
|
case Te.Stacked100:
|
|
8209
8213
|
case Te.Stacked: {
|
|
8210
|
-
const { stackedMinY: y, stackedMaxY:
|
|
8214
|
+
const { stackedMinY: y, stackedMaxY: g } = hu({
|
|
8211
8215
|
seriesConfig: u,
|
|
8212
8216
|
filteredData: d,
|
|
8213
8217
|
filteredSeriesIds: o
|
|
8214
8218
|
});
|
|
8215
|
-
e = y, i =
|
|
8219
|
+
e = y, i = g;
|
|
8216
8220
|
break;
|
|
8217
8221
|
}
|
|
8218
8222
|
case Te.Side:
|
|
8219
8223
|
default: {
|
|
8220
|
-
e = Number.MAX_SAFE_INTEGER, i = Number.MIN_SAFE_INTEGER, ue(u, o).forEach((
|
|
8221
|
-
const { min:
|
|
8224
|
+
e = Number.MAX_SAFE_INTEGER, i = Number.MIN_SAFE_INTEGER, ue(u, o).forEach((g) => {
|
|
8225
|
+
const { min: p, max: S } = St(
|
|
8222
8226
|
d,
|
|
8223
|
-
(
|
|
8227
|
+
(x) => x[g]
|
|
8224
8228
|
);
|
|
8225
|
-
|
|
8229
|
+
p !== void 0 && p < e && (e = p), S !== void 0 && S > i && (i = S);
|
|
8226
8230
|
});
|
|
8227
8231
|
break;
|
|
8228
8232
|
}
|
|
@@ -8301,12 +8305,12 @@ function xu(t, e) {
|
|
|
8301
8305
|
s = s.map((m) => {
|
|
8302
8306
|
let y = m[d];
|
|
8303
8307
|
m[c] !== void 0 ? y = m[c] : m[o] !== void 0 && (y = m[o]);
|
|
8304
|
-
let
|
|
8305
|
-
if (delete
|
|
8306
|
-
let
|
|
8307
|
-
m[u] !== void 0 && (
|
|
8308
|
+
let g = { ...m, [d]: y };
|
|
8309
|
+
if (delete g[c], delete g[o], delete g[l], f) {
|
|
8310
|
+
let p = m[f];
|
|
8311
|
+
m[u] !== void 0 && (p = m[u]), g = { ...g, [f]: p }, delete g[u];
|
|
8308
8312
|
}
|
|
8309
|
-
return
|
|
8313
|
+
return g;
|
|
8310
8314
|
}), n ? a = s : "dataItems" in a && (a.dataItems = s);
|
|
8311
8315
|
}
|
|
8312
8316
|
}
|
|
@@ -8317,7 +8321,7 @@ function Zi(t) {
|
|
|
8317
8321
|
delete e[C.technicalSortingFieldBySum], delete e[C.technicalSortingFieldByPercent], delete e[C.pieChart.technicalFieldSlicePercent], delete e[C.pieChart.technicalFieldGroupedSlices], delete e[C.lastTemporalBin], delete e[C.originalServerBinningRange], delete e[C.technicalFieldSplitByField], delete e[W.uniqueIdsName], Object.keys(e).filter(
|
|
8318
8322
|
(r) => r.includes(C.rendererSymbolField)
|
|
8319
8323
|
).forEach((r) => delete e[r]);
|
|
8320
|
-
const a =
|
|
8324
|
+
const a = Vt(e);
|
|
8321
8325
|
return a.isInItem && delete e[a.expr ?? ""], e;
|
|
8322
8326
|
}
|
|
8323
8327
|
function Cu(t, e) {
|
|
@@ -8414,10 +8418,10 @@ async function Bu(t) {
|
|
|
8414
8418
|
returnFeaturesExtent: f,
|
|
8415
8419
|
popupTemplateFieldInfosEnabled: m,
|
|
8416
8420
|
view: y
|
|
8417
|
-
} = t, { series:
|
|
8418
|
-
for (let
|
|
8419
|
-
const B =
|
|
8420
|
-
switch (w.objectIds = T,
|
|
8421
|
+
} = t, { series: g } = a, p = _(g), S = [], { maxOIDsPerSelectionQuery: x } = $t();
|
|
8422
|
+
for (let b = 0; b < e; b += 1) {
|
|
8423
|
+
const B = b * x, N = (b + 1) * x - 1, T = i.slice(B === 0 ? 0 : B - 1, N), w = { ...r };
|
|
8424
|
+
switch (w.objectIds = T, p) {
|
|
8421
8425
|
case h.HeatSeries:
|
|
8422
8426
|
S.push(
|
|
8423
8427
|
cr({
|
|
@@ -8442,7 +8446,7 @@ async function Bu(t) {
|
|
|
8442
8446
|
if (Pe({
|
|
8443
8447
|
xAxisValueFormatType: xe(a),
|
|
8444
8448
|
setTimeBinningInfoWhenNotProvided: d,
|
|
8445
|
-
seriesConfig:
|
|
8449
|
+
seriesConfig: g[0],
|
|
8446
8450
|
queryObject: s
|
|
8447
8451
|
})) {
|
|
8448
8452
|
const L = He(a);
|
|
@@ -8517,7 +8521,7 @@ async function Bu(t) {
|
|
|
8517
8521
|
queryObject: s,
|
|
8518
8522
|
queryConfig: w,
|
|
8519
8523
|
chartConfig: a,
|
|
8520
|
-
x:
|
|
8524
|
+
x: g[0].x,
|
|
8521
8525
|
errorStrings: n
|
|
8522
8526
|
})
|
|
8523
8527
|
);
|
|
@@ -8542,19 +8546,19 @@ async function Yd(t) {
|
|
|
8542
8546
|
popupTemplateFieldInfosEnabled: f,
|
|
8543
8547
|
view: m,
|
|
8544
8548
|
viewExtentUpdated: y,
|
|
8545
|
-
runtimeDataFilters:
|
|
8546
|
-
ignoreViewExtent:
|
|
8549
|
+
runtimeDataFilters: g,
|
|
8550
|
+
ignoreViewExtent: p,
|
|
8547
8551
|
returnSelectionOIDs: S,
|
|
8548
|
-
selectionData:
|
|
8549
|
-
} = t, { series: v } = e, { selectionItems:
|
|
8552
|
+
selectionData: x
|
|
8553
|
+
} = t, { series: v } = e, { selectionItems: b, selectionOIDs: B } = x ?? {};
|
|
8550
8554
|
let N;
|
|
8551
|
-
const T = _(v), w = T !== h.HistogramSeries && T !== h.HeatSeries &&
|
|
8555
|
+
const T = _(v), w = T !== h.HistogramSeries && T !== h.HeatSeries && b !== void 0 && b.length > 0 && !(v[0].x in b[0]) && !(ce in b[0]) && !(C.boxPlot.boxPlotCategory in b[0]);
|
|
8552
8556
|
if (y !== !0 && S !== !1 && B !== void 0 && B.length > 0 && (a === !0 || w || u)) {
|
|
8553
8557
|
const A = Ci(i), I = Ha({
|
|
8554
8558
|
queryObject: s,
|
|
8555
8559
|
chartConfig: e,
|
|
8556
|
-
runtimeDataFilters:
|
|
8557
|
-
ignoreViewExtent:
|
|
8560
|
+
runtimeDataFilters: g,
|
|
8561
|
+
ignoreViewExtent: p,
|
|
8558
8562
|
view: m
|
|
8559
8563
|
});
|
|
8560
8564
|
if (A !== void 0 && !Bn({ dataContext: A[0], chartConfig: e, chartLimits: c }))
|
|
@@ -8563,7 +8567,7 @@ async function Yd(t) {
|
|
|
8563
8567
|
return typeof O == "number" || typeof O == "string" ? B?.includes(O) : !1;
|
|
8564
8568
|
});
|
|
8565
8569
|
else if (B?.[0] !== void 0 && I !== void 0) {
|
|
8566
|
-
const { maxOIDsPerSelectionQuery: P } =
|
|
8570
|
+
const { maxOIDsPerSelectionQuery: P } = $t(), O = Math.ceil(B.length / P), V = te(e.series[0]?.query?.where), $ = await Bu({
|
|
8567
8571
|
numberOfQueries: O,
|
|
8568
8572
|
selectionOIDs: B,
|
|
8569
8573
|
queryConfig: I,
|
|
@@ -8670,7 +8674,7 @@ export {
|
|
|
8670
8674
|
z as af,
|
|
8671
8675
|
Nd as ag,
|
|
8672
8676
|
pn as ah,
|
|
8673
|
-
|
|
8677
|
+
kt as ai,
|
|
8674
8678
|
Id as aj,
|
|
8675
8679
|
ge as ak,
|
|
8676
8680
|
xo as al,
|
|
@@ -8681,7 +8685,7 @@ export {
|
|
|
8681
8685
|
go as aq,
|
|
8682
8686
|
bd as ar,
|
|
8683
8687
|
yo as as,
|
|
8684
|
-
|
|
8688
|
+
Ot as at,
|
|
8685
8689
|
Us as au,
|
|
8686
8690
|
Ss as av,
|
|
8687
8691
|
$a as aw,
|
|
@@ -8749,13 +8753,13 @@ export {
|
|
|
8749
8753
|
mn as bt,
|
|
8750
8754
|
vd as bu,
|
|
8751
8755
|
wd as bv,
|
|
8752
|
-
|
|
8756
|
+
Qt as bw,
|
|
8753
8757
|
Rd as bx,
|
|
8754
8758
|
Fo as by,
|
|
8755
8759
|
bo as bz,
|
|
8756
8760
|
Ls as c,
|
|
8757
8761
|
kd as c$,
|
|
8758
|
-
|
|
8762
|
+
Yt as c0,
|
|
8759
8763
|
Sn as c1,
|
|
8760
8764
|
gu as c2,
|
|
8761
8765
|
Fn as c3,
|
|
@@ -8777,7 +8781,7 @@ export {
|
|
|
8777
8781
|
Od as cJ,
|
|
8778
8782
|
uc as cK,
|
|
8779
8783
|
ud as cL,
|
|
8780
|
-
|
|
8784
|
+
ii as cM,
|
|
8781
8785
|
pt as cN,
|
|
8782
8786
|
dn as cO,
|
|
8783
8787
|
Jc as cP,
|
|
@@ -8793,7 +8797,7 @@ export {
|
|
|
8793
8797
|
xe as cZ,
|
|
8794
8798
|
$d as c_,
|
|
8795
8799
|
Zn as ca,
|
|
8796
|
-
|
|
8800
|
+
Et as cb,
|
|
8797
8801
|
cn as cc,
|
|
8798
8802
|
je as cd,
|
|
8799
8803
|
ne as ce,
|
|
@@ -8836,7 +8840,7 @@ export {
|
|
|
8836
8840
|
ce as m,
|
|
8837
8841
|
Ne as n,
|
|
8838
8842
|
Wc as o,
|
|
8839
|
-
|
|
8843
|
+
Zt as p,
|
|
8840
8844
|
Gc as q,
|
|
8841
8845
|
ya as r,
|
|
8842
8846
|
Cc as s,
|