@arcgis/charts-components 5.2.0-next.0 → 5.2.0-next.1
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/{MJCXQCOV.js → 3FTJIVFE.js} +1 -1
- package/dist/cdn/{4ONG3Z7W.js → 45JPWIBI.js} +1 -1
- package/dist/cdn/{5MMDKA25.js → 45PJ5TQL.js} +1 -1
- package/dist/cdn/{V7TM2WGV.js → 47HHRDX4.js} +1 -1
- package/dist/cdn/{P4T5TI3T.js → 4OZZXXZF.js} +1 -1
- package/dist/cdn/{MRSWVYMY.js → 5HQ2CJEQ.js} +1 -1
- package/dist/cdn/{ROIT25TY.js → 5MVNVHYG.js} +1 -1
- package/dist/cdn/{LEK5TYY2.js → 6JGLHOFY.js} +1 -1
- package/dist/cdn/{ZVZ2XDVU.js → 6LQYOBAL.js} +1 -1
- package/dist/cdn/{AUFCZ2VI.js → 6PAONFHB.js} +1 -1
- package/dist/cdn/{ZIF2SLZ7.js → 6SRISPQN.js} +1 -1
- package/dist/cdn/{FKH3OVSJ.js → 7BEC5WZB.js} +1 -1
- package/dist/cdn/{JJ2M4U57.js → 7IV6GMF7.js} +1 -1
- package/dist/cdn/{RJN2Y6QR.js → 7SNOZDAD.js} +1 -1
- package/dist/cdn/{JN2ZWL6Y.js → 7YBKGD3V.js} +1 -1
- package/dist/cdn/{C3ZSWQ3I.js → AT2NWWBG.js} +1 -1
- package/dist/cdn/{VM7TU42Q.js → ATIARKAU.js} +1 -1
- package/dist/cdn/{4MT26NON.js → B7DM7VT6.js} +1 -1
- package/dist/cdn/{3HDCBEWA.js → BZCVDNC4.js} +1 -1
- package/dist/cdn/{2CKPKXNB.js → CAJVNPHZ.js} +1 -1
- package/dist/cdn/{ETLXX7MH.js → CPPT5HUK.js} +36 -36
- package/dist/cdn/{G2RDPRW6.js → CUJHGXNK.js} +1 -1
- package/dist/cdn/{F22N7RZE.js → D23GGWFM.js} +1 -1
- package/dist/cdn/{35COV7CA.js → DNMVB3A2.js} +1 -1
- package/dist/cdn/{XQN3IPCF.js → EQVQRZHJ.js} +1 -1
- package/dist/cdn/{ERSFBFQP.js → EUOPRFMU.js} +1 -1
- package/dist/cdn/{GKCSV5KX.js → F5Q73CFW.js} +1 -1
- package/dist/cdn/{NI5ICKEY.js → FAQDMSUC.js} +1 -1
- package/dist/cdn/{UUO3C7JX.js → FCXI523J.js} +1 -1
- package/dist/cdn/{GJNWHFFY.js → FJPGZEGK.js} +1 -1
- package/dist/cdn/{PD433VW7.js → FT2K3J7O.js} +1 -1
- package/dist/cdn/{IFUSMYSL.js → G6OHBBUT.js} +1 -1
- package/dist/cdn/{BI4UYGSS.js → GCSGY6GL.js} +1 -1
- package/dist/cdn/{SOQJHUX7.js → GUH6CQE6.js} +1 -1
- package/dist/cdn/{ZCIQS5VL.js → GWQJXXP3.js} +1 -1
- package/dist/cdn/{V7HFHWME.js → HJHMEVMB.js} +1 -1
- package/dist/cdn/{UUBMII4X.js → HUCSTT64.js} +1 -1
- package/dist/cdn/{SOSPMFB6.js → HX4236ZL.js} +1 -1
- package/dist/cdn/{ZPMBL64I.js → I2M6YAUU.js} +1 -1
- package/dist/cdn/{74GWGGKE.js → IWVS6SKP.js} +1 -1
- package/dist/cdn/{LDLY2SF3.js → JILAM6NH.js} +1 -1
- package/dist/cdn/{SSIG3VVL.js → KC6CFXB7.js} +1 -1
- package/dist/cdn/{QR5JSPMD.js → KKWXEF5W.js} +1 -1
- package/dist/cdn/{GGQP5JYM.js → KV4ZPVWQ.js} +1 -1
- package/dist/cdn/{L4RUPWN7.js → M75ENKIU.js} +1 -1
- package/dist/cdn/{HOX7NZNG.js → MKQAQDRM.js} +1 -1
- package/dist/cdn/{XMMHYOKG.js → MOMKSNIZ.js} +1 -1
- package/dist/cdn/NS7OCROO.js +2 -0
- package/dist/cdn/{7JNA22OU.js → O4M33ZPK.js} +1 -1
- package/dist/cdn/{FJFVM6MK.js → OVM5QF7Q.js} +1 -1
- package/dist/cdn/{LKLXYXQS.js → OY6UOUYX.js} +1 -1
- package/dist/cdn/{UQN6IMJJ.js → P3RM2ACY.js} +1 -1
- package/dist/cdn/{IMK7WGD3.js → P6SC5DD2.js} +1 -1
- package/dist/cdn/{Q3AILKYR.js → P74SXC5B.js} +1 -1
- package/dist/cdn/{WBH5XG4U.js → PEZCCXQ7.js} +1 -1
- package/dist/cdn/{QPZNCW73.js → PKMZ6N6M.js} +1 -1
- package/dist/cdn/{BXXLVGNQ.js → PTFRQF65.js} +1 -1
- package/dist/cdn/{2RU466XY.js → PYKHO4QI.js} +1 -1
- package/dist/cdn/{4DN22Z2T.js → RG3I5ORH.js} +1 -1
- package/dist/cdn/{4WLT4SF2.js → RKKWMNWU.js} +1 -1
- package/dist/cdn/{6BUS62PQ.js → RKN64EJQ.js} +1 -1
- package/dist/cdn/{DPSPWVA2.js → RWEUTQWS.js} +1 -1
- package/dist/cdn/{IU3JHT4C.js → S3BC57BJ.js} +1 -1
- package/dist/cdn/{AHXJHLWG.js → S6PJHEJ7.js} +1 -1
- package/dist/cdn/{3EOJXLYW.js → TORIY3OE.js} +1 -1
- package/dist/cdn/{E4SQHQBK.js → TTDZKISK.js} +1 -1
- package/dist/cdn/{5PBHJCIL.js → TZ4GOE2Q.js} +1 -1
- package/dist/cdn/{76ZTJWGM.js → UNUPCA4W.js} +1 -1
- package/dist/cdn/{ZSNIMQ53.js → UQPFMDJB.js} +1 -1
- package/dist/cdn/{M7DJDXCP.js → URYNG6OA.js} +1 -1
- package/dist/cdn/{O3YTMAQX.js → V2XJSJH4.js} +1 -1
- package/dist/cdn/{OBPXCFUE.js → V76PIVCF.js} +1 -1
- package/dist/cdn/{BAIMTE2A.js → V7MBHG4F.js} +1 -1
- package/dist/cdn/{I6ILHZ4V.js → X6WA2KXK.js} +1 -1
- package/dist/cdn/{DA7U5FLY.js → XFZX5ULX.js} +1 -1
- package/dist/cdn/{XCBRFRLO.js → XMQCH4QI.js} +1 -1
- package/dist/cdn/{JOI6WL3P.js → YKGZVYK2.js} +1 -1
- package/dist/cdn/{I6ZAHATO.js → YVVQVAJZ.js} +1 -1
- package/dist/cdn/{I2AGE5R2.js → YZQ54BRI.js} +1 -1
- package/dist/cdn/{H3VQJF7X.js → ZQCUJ7VE.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/index2.js +245 -239
- package/dist/chunks/serial-chart-data.js +80 -75
- package/dist/components/arcgis-chart/customElement.js +5367 -5484
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/utils/data/index.d.ts +2 -0
- package/package.json +3 -3
- package/dist/cdn/6LTWEPUM.js +0 -2
package/dist/chunks/index2.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { isEqual as at, sortBy as
|
|
3
|
-
import { u as S, k as Sr, r as D, v as Ke, m as Se, p as ye, n as De, q as
|
|
4
|
-
import
|
|
2
|
+
import { isEqual as at, sortBy as Ti, cloneDeep as He, memoize as It, isArray as ui, isNil as pr, isEmpty as hr } from "lodash-es";
|
|
3
|
+
import { u as S, k as Sr, r as D, v as Ke, m as Se, p as ye, n as De, q as Ne, g as Z, j as Fr, s as R, t as ee, d as pe, a as Gi, G as br } from "./chart-object-literals.js";
|
|
4
|
+
import Ni from "@arcgis/core/layers/support/FeatureFilter.js";
|
|
5
5
|
import xr from "@arcgis/core/smartMapping/statistics/histogram.js";
|
|
6
6
|
import Ai from "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
7
7
|
import * as Ui from "@arcgis/core/geometry/support/jsonUtils.js";
|
|
@@ -9,8 +9,8 @@ import Cr from "@arcgis/core/rest/support/AttributeBinsQuery.js";
|
|
|
9
9
|
import vr from "@arcgis/core/rest/support/Query.js";
|
|
10
10
|
import Br from "@arcgis/core/rest/support/StatisticDefinition.js";
|
|
11
11
|
import Yi from "@arcgis/core/time/TimeExtent.js";
|
|
12
|
-
import
|
|
13
|
-
import
|
|
12
|
+
import Tr from "@arcgis/core/layers/FeatureLayer.js";
|
|
13
|
+
import Nr from "@arcgis/core/layers/support/CodedValueDomain.js";
|
|
14
14
|
import Ar from "@arcgis/core/layers/support/Field.js";
|
|
15
15
|
import * as wr from "@arcgis/core/layers/support/fieldUtils.js";
|
|
16
16
|
import Lr from "@arcgis/core/portal/Portal.js";
|
|
@@ -39,7 +39,7 @@ import la from "@arcgis/core/geometry/Point.js";
|
|
|
39
39
|
import Yr from "@arcgis/core/layers/ImageryLayer.js";
|
|
40
40
|
import Zr from "@arcgis/core/layers/ImageryTileLayer.js";
|
|
41
41
|
import Xr from "@arcgis/core/layers/WCSLayer.js";
|
|
42
|
-
const he = "arcgis_charts_pie_from_fields_name",
|
|
42
|
+
const he = "arcgis_charts_pie_from_fields_name", Te = "arcgis_charts_pie_from_fields_value", ac = "arcgis_charts_bar_line_from_fields_name", rc = "arcgis_charts_bar_line_from_fields_value";
|
|
43
43
|
class re extends Error {
|
|
44
44
|
/**
|
|
45
45
|
* Creates a new `ArcgisChartsError` instance.
|
|
@@ -649,7 +649,7 @@ function ya(t) {
|
|
|
649
649
|
value: W.defaultStatParameterValue
|
|
650
650
|
});
|
|
651
651
|
}), m;
|
|
652
|
-
}, c = ["where", "outStatistics[0].outStatisticFieldName", "outStatistics[0].onStatisticField"], l =
|
|
652
|
+
}, c = ["where", "outStatistics[0].outStatisticFieldName", "outStatistics[0].onStatisticField"], l = Ti(r.map(u), c), d = Ti(n.map(u), c);
|
|
653
653
|
return s = !at(l, d), s || o;
|
|
654
654
|
}
|
|
655
655
|
function bn(t, e) {
|
|
@@ -711,7 +711,7 @@ function vn(t, e) {
|
|
|
711
711
|
function Bn(t, e) {
|
|
712
712
|
return (t.includeLeapDay ?? rt.heatChart.includeLeapDay) !== (e.includeLeapDay ?? rt.heatChart.includeLeapDay);
|
|
713
713
|
}
|
|
714
|
-
function
|
|
714
|
+
function Tn(t) {
|
|
715
715
|
const { previousConfig: e, newConfig: i, fieldList: a } = t, r = e.series[0], n = i.series[0];
|
|
716
716
|
let s = !1;
|
|
717
717
|
if (r.type === S.ScatterSeries && n.type === S.ScatterSeries && a && a.length > 0) {
|
|
@@ -726,14 +726,14 @@ function Nn(t) {
|
|
|
726
726
|
function Bc(t, e) {
|
|
727
727
|
return (t?.colorMatch ?? !1) !== (e.colorMatch ?? !1);
|
|
728
728
|
}
|
|
729
|
-
function
|
|
730
|
-
return (t.stackedType ??
|
|
729
|
+
function Tc(t, e) {
|
|
730
|
+
return (t.stackedType ?? Ne.Side) !== (e.stackedType ?? Ne.Side);
|
|
731
731
|
}
|
|
732
732
|
function Pt(t) {
|
|
733
733
|
const e = { ...t };
|
|
734
734
|
return e.position === void 0 && (e.position = rt.heatChart.legend.position), e;
|
|
735
735
|
}
|
|
736
|
-
function
|
|
736
|
+
function Nc(t, e) {
|
|
737
737
|
const i = t.legend ?? { type: S.Legend }, a = e.legend ?? { type: S.Legend }, r = Pt(i), n = Pt(a);
|
|
738
738
|
return !at(r, n);
|
|
739
739
|
}
|
|
@@ -763,7 +763,7 @@ function Pc(t) {
|
|
|
763
763
|
}
|
|
764
764
|
return a;
|
|
765
765
|
}
|
|
766
|
-
function
|
|
766
|
+
function Nn(t) {
|
|
767
767
|
const { previousSelectionOIDs: e, selectionData: i, filterBySelection: a } = t;
|
|
768
768
|
let r = !1;
|
|
769
769
|
return a === !0 && (r = e?.length !== i?.selectionOIDs?.length || !at(e, i?.selectionOIDs)), r;
|
|
@@ -873,7 +873,7 @@ function Hc(t) {
|
|
|
873
873
|
}), h.common.configFiltersChanged = bn(e, i), h.common.xOrYChanged = xn(f, d), h.common.filterBySelectionChanged = ga(
|
|
874
874
|
a,
|
|
875
875
|
o
|
|
876
|
-
), h.common.dataForFilterBySelectionChanged =
|
|
876
|
+
), h.common.dataForFilterBySelectionChanged = Nn({
|
|
877
877
|
previousSelectionOIDs: r,
|
|
878
878
|
selectionData: u,
|
|
879
879
|
filterBySelection: o
|
|
@@ -913,7 +913,7 @@ function Hc(t) {
|
|
|
913
913
|
), h.heatChart.includeLeapDay = Bn(e, i));
|
|
914
914
|
break;
|
|
915
915
|
case S.ScatterSeries:
|
|
916
|
-
h.scatterPlot.tooltipFieldsChanged =
|
|
916
|
+
h.scatterPlot.tooltipFieldsChanged = Tn({
|
|
917
917
|
previousConfig: e,
|
|
918
918
|
newConfig: i,
|
|
919
919
|
fieldList: n
|
|
@@ -996,17 +996,17 @@ function Ca(t) {
|
|
|
996
996
|
let s, o = "", u;
|
|
997
997
|
if (t.orderOptions?.data !== void 0) {
|
|
998
998
|
const c = t.orderOptions.data && "preferLabel" in t.orderOptions.data ? t.orderOptions.data.preferLabel : !0;
|
|
999
|
-
if (o = t.orderOptions?.data?.orderType ?? De.Category, u = t.orderOptions?.data && "orderBy" in t.orderOptions.data ? t.orderOptions.data.orderBy : void 0, o === De.Category ? r ? o = he : o = c ? i : rt.originalCategoryValue : o = r ?
|
|
999
|
+
if (o = t.orderOptions?.data?.orderType ?? De.Category, u = t.orderOptions?.data && "orderBy" in t.orderOptions.data ? t.orderOptions.data.orderBy : void 0, o === De.Category ? r ? o = he : o = c ? i : rt.originalCategoryValue : o = r ? Te : [a].flat()[0], o !== void 0 && o !== "") {
|
|
1000
1000
|
const l = ci(t);
|
|
1001
1001
|
if (_(t.series) !== S.PieSeries && o !== i && t.series?.length > 1)
|
|
1002
1002
|
switch (l) {
|
|
1003
|
-
case
|
|
1003
|
+
case Ne.Stacked:
|
|
1004
1004
|
o = C.technicalSortingFieldBySum;
|
|
1005
1005
|
break;
|
|
1006
|
-
case
|
|
1006
|
+
case Ne.Stacked100:
|
|
1007
1007
|
o = C.technicalSortingFieldByPercent;
|
|
1008
1008
|
break;
|
|
1009
|
-
case
|
|
1009
|
+
case Ne.Side:
|
|
1010
1010
|
typeof a == "string" && (o = a);
|
|
1011
1011
|
break;
|
|
1012
1012
|
}
|
|
@@ -1314,7 +1314,7 @@ function Uc(t) {
|
|
|
1314
1314
|
}
|
|
1315
1315
|
return e;
|
|
1316
1316
|
}
|
|
1317
|
-
function
|
|
1317
|
+
function Ta(t) {
|
|
1318
1318
|
const { stringToTruncate: e, characterLimit: i, ellipsis: a = C.chartEllipsis } = t;
|
|
1319
1319
|
let r = e;
|
|
1320
1320
|
return typeof i == "number" && Number.isFinite(i) && i > 0 && i < e.length && (r = e.slice(0, i), r = `${r}${a}`), r;
|
|
@@ -1325,7 +1325,7 @@ function Yc(t) {
|
|
|
1325
1325
|
if (i > 0 && e.length > i) {
|
|
1326
1326
|
const r = e.lastIndexOf(" ", i), n = e.lastIndexOf("-", i), s = Math.max(r, n), o = s === n && n > 0, u = s > 0 ? s + (o ? 1 : 0) : i, c = Math.min(i, u), l = e.slice(0, c).trimEnd();
|
|
1327
1327
|
let d = e.slice(c).trimStart();
|
|
1328
|
-
d.length > i && (d =
|
|
1328
|
+
d.length > i && (d = Ta({
|
|
1329
1329
|
stringToTruncate: d,
|
|
1330
1330
|
characterLimit: Math.max(1, i - 1)
|
|
1331
1331
|
})), a = `${l}
|
|
@@ -1339,7 +1339,7 @@ function Zc(t, e = ":") {
|
|
|
1339
1339
|
function Xc(t) {
|
|
1340
1340
|
return (i) => {
|
|
1341
1341
|
let a = typeof i != "string" ? i?.toString() ?? "" : i;
|
|
1342
|
-
return !oe(a) && a !== C.htmlEmptyContent && (a =
|
|
1342
|
+
return !oe(a) && a !== C.htmlEmptyContent && (a = Ta({
|
|
1343
1343
|
stringToTruncate: a,
|
|
1344
1344
|
characterLimit: t
|
|
1345
1345
|
})), a;
|
|
@@ -1435,7 +1435,7 @@ function _n(t) {
|
|
|
1435
1435
|
function jn(t) {
|
|
1436
1436
|
return t?.type !== void 0 && (t.color !== void 0 || t.label !== void 0 || t.style !== void 0 || t.outline !== void 0);
|
|
1437
1437
|
}
|
|
1438
|
-
function
|
|
1438
|
+
function Na(t) {
|
|
1439
1439
|
const { symbolField: e, dataItem: i, rendererSymbol: a, rendererOrigin: r } = t;
|
|
1440
1440
|
let n = !1;
|
|
1441
1441
|
if (!jn(a))
|
|
@@ -1479,7 +1479,7 @@ function Hn(t) {
|
|
|
1479
1479
|
type: _e.SMS,
|
|
1480
1480
|
color: p,
|
|
1481
1481
|
label: h && y ? y : void 0
|
|
1482
|
-
}, c != null && (s.outline = c),
|
|
1482
|
+
}, c != null && (s.outline = c), Na({
|
|
1483
1483
|
dataItem: r,
|
|
1484
1484
|
symbolField: a === F.BarAndLineFromFields || a === F.PieFromFields ? C.rendererSymbolField : `${C.rendererSymbolField}_${f}`,
|
|
1485
1485
|
rendererSymbol: s,
|
|
@@ -1598,18 +1598,18 @@ async function Gn(t) {
|
|
|
1598
1598
|
x: m,
|
|
1599
1599
|
splitByField: o,
|
|
1600
1600
|
attributes: b
|
|
1601
|
-
}), c && c.length > 0 && Object.keys(b).forEach((
|
|
1602
|
-
c.includes(
|
|
1601
|
+
}), c && c.length > 0 && Object.keys(b).forEach((T) => {
|
|
1602
|
+
c.includes(T) || delete b[T];
|
|
1603
1603
|
}), g.attributes = b, l?.has(JSON.stringify(b)))
|
|
1604
1604
|
d = l.get(JSON.stringify(b));
|
|
1605
1605
|
else {
|
|
1606
1606
|
if (d = (await Gt.getDisplayedSymbol(g))?.toJSON(), d != null) {
|
|
1607
1607
|
if (d.color === void 0) {
|
|
1608
|
-
const
|
|
1609
|
-
|
|
1608
|
+
const N = (await Gt.getDisplayedColor(g))?.toJSON();
|
|
1609
|
+
N && (d.color = N.length === 4 ? N : [...N, 255]);
|
|
1610
1610
|
}
|
|
1611
|
-
const
|
|
1612
|
-
|
|
1611
|
+
const T = await Gt.getLegendLabel(g);
|
|
1612
|
+
T != null && T !== "" && (d.label = T, d.uniqueValue = h?.find((N) => N.label === T)?.value ?? void 0);
|
|
1613
1613
|
}
|
|
1614
1614
|
l?.set(JSON.stringify(b), d);
|
|
1615
1615
|
}
|
|
@@ -1618,7 +1618,7 @@ async function Gn(t) {
|
|
|
1618
1618
|
x: m,
|
|
1619
1619
|
splitByField: o,
|
|
1620
1620
|
attributes: i
|
|
1621
|
-
}),
|
|
1621
|
+
}), Na({
|
|
1622
1622
|
dataItem: i,
|
|
1623
1623
|
symbolField: v,
|
|
1624
1624
|
rendererSymbol: d,
|
|
@@ -1946,9 +1946,9 @@ function mi(t) {
|
|
|
1946
1946
|
seriesConfig: d,
|
|
1947
1947
|
queryObject: a
|
|
1948
1948
|
});
|
|
1949
|
-
let g = /* @__PURE__ */ new Map(), h = !1, x = !1, v = !1, b = !1, B = !1,
|
|
1949
|
+
let g = /* @__PURE__ */ new Map(), h = !1, x = !1, v = !1, b = !1, B = !1, T = {};
|
|
1950
1950
|
if (f !== void 0) {
|
|
1951
|
-
|
|
1951
|
+
T = He(f);
|
|
1952
1952
|
const $ = te(f.where);
|
|
1953
1953
|
let M = "";
|
|
1954
1954
|
switch (i.fetchNullValues !== !0 && (m !== C.boxPlot.boxPlotCategory && (M = `${m} IS NOT NULL`), $.trim() !== "" && $ !== m && !Ee(f.where) && (M = Y([M, `${$} IS NOT NULL`]))), l) {
|
|
@@ -1957,7 +1957,7 @@ function mi(t) {
|
|
|
1957
1957
|
break;
|
|
1958
1958
|
}
|
|
1959
1959
|
case F.BarAndLineMultiFields:
|
|
1960
|
-
ls(
|
|
1960
|
+
ls(T, c), x = !0;
|
|
1961
1961
|
break;
|
|
1962
1962
|
case F.PieFromFields:
|
|
1963
1963
|
case F.BarAndLineFromFields:
|
|
@@ -1984,7 +1984,7 @@ function mi(t) {
|
|
|
1984
1984
|
case F.BarAndLineSplitByNoAggregation:
|
|
1985
1985
|
}
|
|
1986
1986
|
if (x && ss({
|
|
1987
|
-
uniqueQuery:
|
|
1987
|
+
uniqueQuery: T,
|
|
1988
1988
|
y,
|
|
1989
1989
|
useGenericOutStatFieldName: h,
|
|
1990
1990
|
queryObject: a,
|
|
@@ -1992,13 +1992,13 @@ function mi(t) {
|
|
|
1992
1992
|
isTimeBinningSeries: p,
|
|
1993
1993
|
returnFeaturesExtent: o,
|
|
1994
1994
|
splitByField: $
|
|
1995
|
-
}), b && ns({ uniqueQuery:
|
|
1995
|
+
}), b && ns({ uniqueQuery: T, splitByField: $, x: m }), ce(e) && B && (T.outStatistics = os({ chartConfig: e, fetchFullBoxPlotData: s })), v ? delete T.orderByFields : i.orderByFields !== void 0 && (T.orderByFields = i.orderByFields.filter((q) => {
|
|
1996
1996
|
const G = q.split(" ");
|
|
1997
1997
|
return !oe(G[0]);
|
|
1998
1998
|
})), p && be(c[0])) {
|
|
1999
1999
|
const q = H(a), { idFields: G } = kt(q);
|
|
2000
2000
|
Ce(a).find((z) => z.name === m)?.type !== U.DateOnly && G && us({
|
|
2001
|
-
uniqueQuery:
|
|
2001
|
+
uniqueQuery: T,
|
|
2002
2002
|
x: m,
|
|
2003
2003
|
splitByField: te(f.where),
|
|
2004
2004
|
unit: r?.unit ?? c[0].temporalBinning?.unit,
|
|
@@ -2007,11 +2007,11 @@ function mi(t) {
|
|
|
2007
2007
|
runsOnClientQueryEngine: Ie(a)
|
|
2008
2008
|
});
|
|
2009
2009
|
}
|
|
2010
|
-
|
|
2010
|
+
T.where = M;
|
|
2011
2011
|
}
|
|
2012
|
-
La({ chartConfig: e, uniqueQuery:
|
|
2013
|
-
const { gdbVersion:
|
|
2014
|
-
return
|
|
2012
|
+
La({ chartConfig: e, uniqueQuery: T, chartLimits: u });
|
|
2013
|
+
const { gdbVersion: N, geometry: w, distance: P, units: A, timeExtent: E, where: L, objectIds: O, spatialRelationship: V } = i;
|
|
2014
|
+
return N !== void 0 && (T.gdbVersion = N), w !== void 0 && (T.geometry = w), P !== void 0 && (T.distance = P), A !== void 0 && (T.units = A), E !== void 0 && (T.timeExtent = E), O !== void 0 && (T.objectIds = O), V !== void 0 && (T.spatialRelationship = V), L !== void 0 && (T.where = Y([T.where, L])), { uniqueQuery: T, mapToStatField: g };
|
|
2015
2015
|
}
|
|
2016
2016
|
const le = {
|
|
2017
2017
|
Default: "defaultError",
|
|
@@ -2083,9 +2083,9 @@ async function fs(t) {
|
|
|
2083
2083
|
if (s)
|
|
2084
2084
|
h = s.resolution, x = s.resolution, v = s.spatialReference;
|
|
2085
2085
|
else {
|
|
2086
|
-
const
|
|
2086
|
+
const N = cs, w = 2, P = f.width, A = f.height, E = Math.max(
|
|
2087
2087
|
0,
|
|
2088
|
-
Math.ceil(Math.log(Math.max(P, A) /
|
|
2088
|
+
Math.ceil(Math.log(Math.max(P, A) / N) / Math.log(w))
|
|
2089
2089
|
), L = w ** E;
|
|
2090
2090
|
h = f.pixelSize.x * L, x = f.pixelSize.y * L, v = d.spatialReference;
|
|
2091
2091
|
}
|
|
@@ -2093,7 +2093,7 @@ async function fs(t) {
|
|
|
2093
2093
|
x: h,
|
|
2094
2094
|
y: x,
|
|
2095
2095
|
spatialReference: v
|
|
2096
|
-
}), B = ds(c),
|
|
2096
|
+
}), B = ds(c), T = await Wr(
|
|
2097
2097
|
d,
|
|
2098
2098
|
{
|
|
2099
2099
|
bandIds: [y],
|
|
@@ -2106,7 +2106,7 @@ async function fs(t) {
|
|
|
2106
2106
|
signal: n ?? (r !== void 0 ? Ge.get(r)?.signal : void 0)
|
|
2107
2107
|
}
|
|
2108
2108
|
);
|
|
2109
|
-
g =
|
|
2109
|
+
g = T.statistics[0], p = T.histograms[0];
|
|
2110
2110
|
}
|
|
2111
2111
|
return { histogram: p, statistics: g };
|
|
2112
2112
|
}
|
|
@@ -2285,20 +2285,20 @@ async function xs(t) {
|
|
|
2285
2285
|
if (p) {
|
|
2286
2286
|
const h = { where: Y([u, p.definitionExpression]) }, x = { query: h, signal: o }, v = ft(c)?.extent?.toJSON();
|
|
2287
2287
|
if (v !== void 0) {
|
|
2288
|
-
const B = bs(d), { xmin:
|
|
2289
|
-
h.geometryType = "esriGeometryEnvelope", h.geometry = `${
|
|
2288
|
+
const B = bs(d), { xmin: T, ymin: N, xmax: w, ymax: P } = v;
|
|
2289
|
+
h.geometryType = "esriGeometryEnvelope", h.geometry = `${T},${N},${w},${P}`, l !== void 0 && (h.distance = l.toString()), B !== void 0 && (h.units = B, c?.spatialReference?.wkid != null && (h.inSR = c.spatialReference.wkid.toString()));
|
|
2290
2290
|
}
|
|
2291
2291
|
f && (h.time = `${f[0]},${f[1]}`);
|
|
2292
2292
|
const b = `${p.url}/${p.layerId}/queryAnalytic?f=${a}&dataFormat=${r}&outAnalytics=${n}`;
|
|
2293
2293
|
try {
|
|
2294
2294
|
m = (await Lt(b, x)).data?.features?.[0]?.attributes;
|
|
2295
2295
|
} catch (B) {
|
|
2296
|
-
const
|
|
2296
|
+
const T = s ?? (await mt(
|
|
2297
2297
|
ze(document.documentElement).t9nLocale,
|
|
2298
2298
|
gt("./assets/common/t9n"),
|
|
2299
2299
|
"messages."
|
|
2300
2300
|
)).errorStrings;
|
|
2301
|
-
throw new re(le.QueryFeaturesError,
|
|
2301
|
+
throw new re(le.QueryFeaturesError, T.errors.queryError, B);
|
|
2302
2302
|
}
|
|
2303
2303
|
}
|
|
2304
2304
|
return m;
|
|
@@ -2380,7 +2380,7 @@ async function Bs(t) {
|
|
|
2380
2380
|
}
|
|
2381
2381
|
return d;
|
|
2382
2382
|
}
|
|
2383
|
-
async function
|
|
2383
|
+
async function Ts(t) {
|
|
2384
2384
|
const { queryConfig: e, x: i, queryObject: a, chartSubType: r, isGaugeByFeature: n, abortSignal: s } = t;
|
|
2385
2385
|
let o;
|
|
2386
2386
|
const u = H(a), { idField: c, isTraditionalTypeOID: l } = ve(u), d = pi({ queryObject: a, queryConfig: e });
|
|
@@ -2466,7 +2466,7 @@ async function Ma(t) {
|
|
|
2466
2466
|
}
|
|
2467
2467
|
return o;
|
|
2468
2468
|
}
|
|
2469
|
-
async function
|
|
2469
|
+
async function Ns(t) {
|
|
2470
2470
|
const e = [], { featureCount: i, maxRecords: a, queryConfig: r, abortSignal: n } = t;
|
|
2471
2471
|
let s = [], o = 0, u = r?.start ?? 0;
|
|
2472
2472
|
for (; o < W.maxParallelRequests && u < i; ) {
|
|
@@ -2488,7 +2488,7 @@ async function Fe(t) {
|
|
|
2488
2488
|
const p = Math.ceil(d / f), g = Math.ceil(p / W.maxParallelRequests), h = [];
|
|
2489
2489
|
for (; y < g; ) {
|
|
2490
2490
|
m = y * W.maxParallelRequests * f;
|
|
2491
|
-
const v =
|
|
2491
|
+
const v = Ns({
|
|
2492
2492
|
queryConfig: { ...i, start: m },
|
|
2493
2493
|
queryObject: e,
|
|
2494
2494
|
maxRecords: f,
|
|
@@ -2643,16 +2643,16 @@ async function Ds(t) {
|
|
|
2643
2643
|
abortSignal: s
|
|
2644
2644
|
});
|
|
2645
2645
|
if (B !== void 0) {
|
|
2646
|
-
let
|
|
2646
|
+
let T = Number.NaN, N = Number.NaN;
|
|
2647
2647
|
const { expr: w } = Wt(B, h), { expr: P } = Wt(B, x), { expr: A } = Wt(B, v);
|
|
2648
|
-
w !== void 0 && Number.isFinite(B[w]) && (
|
|
2648
|
+
w !== void 0 && Number.isFinite(B[w]) && (T = B[w]), P !== void 0 && Number.isFinite(B[P]) && (N = B[P]), A !== void 0 && Number.isFinite(B[A]) && (l = B[A]);
|
|
2649
2649
|
const { dataContextXMinField: E, dataContextXMaxField: L, dataContextYMinField: O, dataContextYMaxField: V } = C.scatterplotAggregationFields, $ = e.get(E) ?? Number.NaN, M = e.get(L) ?? Number.NaN, q = e.get(O) ?? Number.NaN, G = e.get(V) ?? Number.NaN, X = (M - $) / 100;
|
|
2650
2650
|
let z = $ - X, ae = Number.NaN;
|
|
2651
2651
|
for (; !(ae >= q && ae <= G) && z <= M; )
|
|
2652
|
-
z += X, ae =
|
|
2652
|
+
z += X, ae = T * z + N;
|
|
2653
2653
|
let ge = M + X, $e = Number.NaN;
|
|
2654
2654
|
for (; !($e >= q && $e <= G) && ge >= $; )
|
|
2655
|
-
ge -= X, $e =
|
|
2655
|
+
ge -= X, $e = T * ge + N;
|
|
2656
2656
|
d = [
|
|
2657
2657
|
{ [u]: z, [c]: ae },
|
|
2658
2658
|
{ [u]: ge, [c]: $e }
|
|
@@ -2935,18 +2935,18 @@ async function js(t) {
|
|
|
2935
2935
|
y.forEach((g) => {
|
|
2936
2936
|
const h = {}, x = g[0][f], { display: v, original: b } = Di(x, m);
|
|
2937
2937
|
h[f] = v, h[C.xAxisField] = v, h[C.originalCategoryValue] = b, d.forEach((B) => {
|
|
2938
|
-
const
|
|
2939
|
-
if (!
|
|
2938
|
+
const T = B.query?.outStatistics?.[0];
|
|
2939
|
+
if (!T) {
|
|
2940
2940
|
const { name: L } = B;
|
|
2941
2941
|
h[L] = g[0][L];
|
|
2942
2942
|
return;
|
|
2943
2943
|
}
|
|
2944
|
-
let
|
|
2944
|
+
let N = g;
|
|
2945
2945
|
const w = B.query?.where;
|
|
2946
|
-
w && (
|
|
2947
|
-
const P =
|
|
2946
|
+
w && (N = g.filter((L) => ks(L, w)));
|
|
2947
|
+
const P = T.statisticType, A = T.onStatisticField, E = T.outStatisticFieldName;
|
|
2948
2948
|
h[E] = Qs({
|
|
2949
|
-
features:
|
|
2949
|
+
features: N,
|
|
2950
2950
|
aggregationType: P,
|
|
2951
2951
|
onField: A
|
|
2952
2952
|
});
|
|
@@ -3247,7 +3247,7 @@ const yi = It(
|
|
|
3247
3247
|
const o = r.drawingInfo;
|
|
3248
3248
|
o?.renderer !== void 0 && (n.renderer = Zi.fromJSON(o.renderer));
|
|
3249
3249
|
}
|
|
3250
|
-
const s = new
|
|
3250
|
+
const s = new Tr(n);
|
|
3251
3251
|
return await s.load({ signal: e }), s;
|
|
3252
3252
|
},
|
|
3253
3253
|
(t) => JSON.stringify(t)
|
|
@@ -3362,7 +3362,7 @@ function ri(t, e) {
|
|
|
3362
3362
|
let i;
|
|
3363
3363
|
if (e) {
|
|
3364
3364
|
const r = H(t).getFieldDomain(e);
|
|
3365
|
-
r instanceof
|
|
3365
|
+
r instanceof Nr && (i = r);
|
|
3366
3366
|
}
|
|
3367
3367
|
return i;
|
|
3368
3368
|
}
|
|
@@ -3436,8 +3436,8 @@ function _a(t) {
|
|
|
3436
3436
|
geometry: v,
|
|
3437
3437
|
distance: b,
|
|
3438
3438
|
units: B,
|
|
3439
|
-
objectIds:
|
|
3440
|
-
spatialRelationship:
|
|
3439
|
+
objectIds: T,
|
|
3440
|
+
spatialRelationship: N
|
|
3441
3441
|
} = a ?? {}, w = s[0], { query: P } = w, { where: A } = P ?? {}, E = k(s), L = { ...P };
|
|
3442
3442
|
return L.where = Y([u, g]), E !== F.BarAndLineSplitBy && E !== F.BoxPlotMonoFieldAndSplitBy && E !== F.BoxPlotMonoFieldAndCategoryAndSplitBy && E !== F.BoxPlotMultiFieldsAndSplitBy && E !== F.BarAndLineSplitByNoAggregation && (L.where = Y([L.where, A])), i.orderOptions?.orderByFields !== void 0 && (L.orderByFields = i.orderOptions.orderByFields), L.gdbVersion = h ?? c, L.timeExtent = co(e, x ?? l), L.geometry = ie(e) ? Js({
|
|
3443
3443
|
queryObject: e,
|
|
@@ -3448,7 +3448,7 @@ function _a(t) {
|
|
|
3448
3448
|
queryObject: e,
|
|
3449
3449
|
defaultGeometry: v ?? d,
|
|
3450
3450
|
ignoreViewExtent: r
|
|
3451
|
-
}), L.distance = b ?? f, L.units = B ?? m, L.objectIds =
|
|
3451
|
+
}), L.distance = b ?? f, L.units = B ?? m, L.objectIds = T ?? y, L.spatialRelationship = N ?? p, P?.outStatistics?.[0]?.statisticType === D.Count && (L.returnDistinctValues = P?.returnDistinctValues ?? !1), L?.outStatistics?.forEach((O) => {
|
|
3452
3452
|
fi(O) && !("statisticParameters" in O) && (O.statisticParameters = {
|
|
3453
3453
|
value: W.defaultStatParameterValue
|
|
3454
3454
|
});
|
|
@@ -3502,7 +3502,7 @@ function Bd(t) {
|
|
|
3502
3502
|
}
|
|
3503
3503
|
return a;
|
|
3504
3504
|
}
|
|
3505
|
-
const
|
|
3505
|
+
const Td = {
|
|
3506
3506
|
getServerRestInfo: Qa
|
|
3507
3507
|
};
|
|
3508
3508
|
async function Qt(t, e) {
|
|
@@ -3548,7 +3548,7 @@ function fo(t) {
|
|
|
3548
3548
|
}
|
|
3549
3549
|
return r;
|
|
3550
3550
|
}
|
|
3551
|
-
function
|
|
3551
|
+
function Nd(t) {
|
|
3552
3552
|
let e;
|
|
3553
3553
|
return t !== void 0 && (e = new Yi({
|
|
3554
3554
|
start: new Date(t[0]),
|
|
@@ -3566,16 +3566,16 @@ function _t(t) {
|
|
|
3566
3566
|
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 ?? {}, p = H(i);
|
|
3567
3567
|
let h = fe(p)?.createQuery() ?? new vr(), x;
|
|
3568
3568
|
const v = kt(p).idFields;
|
|
3569
|
-
if (e === "AttributeBinsQuery" && a?.objectIds?.[0] !== void 0 && v && (x = `${v} IN (${a.objectIds.join(",")})`), e === "AttributeBinsQuery" && (h = new Cr(h.toJSON()), Ce(i).find((
|
|
3570
|
-
const
|
|
3571
|
-
let P = n ?? w ??
|
|
3572
|
-
P === "unknown" ? P = "Etc/UTC" : P === "system" && (P =
|
|
3569
|
+
if (e === "AttributeBinsQuery" && a?.objectIds?.[0] !== void 0 && v && (x = `${v} IN (${a.objectIds.join(",")})`), e === "AttributeBinsQuery" && (h = new Cr(h.toJSON()), Ce(i).find((N) => N.name === s)?.type !== U.DateOnly)) {
|
|
3570
|
+
const N = Intl.DateTimeFormat().resolvedOptions().timeZone, w = o && r && "timeZone" in r ? r.timeZone : void 0;
|
|
3571
|
+
let P = n ?? w ?? N;
|
|
3572
|
+
P === "unknown" ? P = "Etc/UTC" : P === "system" && (P = N), h.outTimeZone = P;
|
|
3573
3573
|
}
|
|
3574
3574
|
if (h.where = Y([h.where, u, x]), "returnDistinctValues" in h && (h.returnDistinctValues = y ?? !1), c !== void 0) {
|
|
3575
3575
|
const B = yn(p);
|
|
3576
3576
|
h.outStatistics = c.filter(
|
|
3577
|
-
(
|
|
3578
|
-
).map((
|
|
3577
|
+
(T) => T.statisticType !== D.EnvelopeAggregate || B
|
|
3578
|
+
).map((T) => Br.fromJSON(T));
|
|
3579
3579
|
}
|
|
3580
3580
|
const b = ft(l);
|
|
3581
3581
|
return b !== void 0 && (h.geometry = b, a?.spatialRelationship && (h.spatialRelationship = a.spatialRelationship), da(p) && (d !== void 0 && (h.distance = d), f !== void 0 && (h.units = f))), m && (h.timeExtent = new Yi({
|
|
@@ -3717,7 +3717,7 @@ function po(t) {
|
|
|
3717
3717
|
configTimeZone: c,
|
|
3718
3718
|
view: l,
|
|
3719
3719
|
syncViewTimeZone: d
|
|
3720
|
-
} = t, f = Ce(e), m = f.find((
|
|
3720
|
+
} = t, f = Ce(e), m = f.find((T) => T.name === a)?.type, y = f.find((T) => T.name === r)?.type, p = _t({
|
|
3721
3721
|
queryType: "AttributeBinsQuery",
|
|
3722
3722
|
queryObject: e,
|
|
3723
3723
|
queryConfig: i,
|
|
@@ -3890,7 +3890,7 @@ function Bo(t) {
|
|
|
3890
3890
|
const e = { ...t };
|
|
3891
3891
|
return e.avg = e.avg ?? Number.NaN, e.count = e.count ?? Number.NaN, e.max = e.max ?? Number.NaN, e.min = e.min ?? Number.NaN, e.stddev = e.stddev ?? Number.NaN, e.sum = e.sum ?? Number.NaN, e.variance = e.variance ?? Number.NaN, e.median = e.median ?? Number.NaN, e;
|
|
3892
3892
|
}
|
|
3893
|
-
function
|
|
3893
|
+
function To(t) {
|
|
3894
3894
|
const { seriesConfig: e, layer: i, useFeaturesInView: a, view: r, queryConfig: n, abortSignal: s } = t, { x: o, dataTransformationType: u } = e;
|
|
3895
3895
|
let c = {
|
|
3896
3896
|
layer: i,
|
|
@@ -3906,7 +3906,7 @@ function No(t) {
|
|
|
3906
3906
|
normalizationType: Wa(u)
|
|
3907
3907
|
}), c;
|
|
3908
3908
|
}
|
|
3909
|
-
function
|
|
3909
|
+
function No(t) {
|
|
3910
3910
|
const {
|
|
3911
3911
|
seriesConfig: e,
|
|
3912
3912
|
layer: i,
|
|
@@ -3951,7 +3951,7 @@ async function wo(t) {
|
|
|
3951
3951
|
abortSignal: u
|
|
3952
3952
|
} = t, c = e.series[0], { dataTransformationType: l } = c;
|
|
3953
3953
|
let d = { valid: !0 };
|
|
3954
|
-
const f = H(a), y = ft(i?.geometry)?.extent?.toJSON() !== void 0, p = s, g =
|
|
3954
|
+
const f = H(a), y = ft(i?.geometry)?.extent?.toJSON() !== void 0, p = s, g = To({
|
|
3955
3955
|
seriesConfig: c,
|
|
3956
3956
|
layer: f,
|
|
3957
3957
|
view: p,
|
|
@@ -3960,7 +3960,7 @@ async function wo(t) {
|
|
|
3960
3960
|
abortSignal: u
|
|
3961
3961
|
});
|
|
3962
3962
|
let h;
|
|
3963
|
-
if (p !== void 0 && (h = new
|
|
3963
|
+
if (p !== void 0 && (h = new Ni({
|
|
3964
3964
|
geometry: p.extent
|
|
3965
3965
|
}), p.extent !== void 0 && da(f))) {
|
|
3966
3966
|
const { distance: A, units: E } = i;
|
|
@@ -3968,7 +3968,7 @@ async function wo(t) {
|
|
|
3968
3968
|
}
|
|
3969
3969
|
if (i.timeExtent) {
|
|
3970
3970
|
const A = { start: i.timeExtent[0], end: i.timeExtent[1] };
|
|
3971
|
-
h === void 0 ? h = new
|
|
3971
|
+
h === void 0 ? h = new Ni({ timeExtent: A }) : h.timeExtent = A;
|
|
3972
3972
|
}
|
|
3973
3973
|
g.filter = h;
|
|
3974
3974
|
let x;
|
|
@@ -3985,19 +3985,19 @@ async function wo(t) {
|
|
|
3985
3985
|
} catch {
|
|
3986
3986
|
}
|
|
3987
3987
|
x = Bo(x);
|
|
3988
|
-
const { avg: v, count: b, stddev: B, min:
|
|
3988
|
+
const { avg: v, count: b, stddev: B, min: T, max: N, sum: w, median: P } = x;
|
|
3989
3989
|
if (b === 0)
|
|
3990
3990
|
d = {
|
|
3991
3991
|
...za(l)
|
|
3992
3992
|
};
|
|
3993
3993
|
else {
|
|
3994
|
-
const A =
|
|
3994
|
+
const A = No({
|
|
3995
3995
|
seriesConfig: c,
|
|
3996
3996
|
layer: f,
|
|
3997
3997
|
view: p,
|
|
3998
3998
|
useFeaturesInView: y,
|
|
3999
|
-
minValue: xo(
|
|
4000
|
-
maxValue:
|
|
3999
|
+
minValue: xo(T),
|
|
4000
|
+
maxValue: N,
|
|
4001
4001
|
valueExpression: g.valueExpression,
|
|
4002
4002
|
queryConfig: i,
|
|
4003
4003
|
abortSignal: u
|
|
@@ -4013,8 +4013,8 @@ async function wo(t) {
|
|
|
4013
4013
|
d.data = {
|
|
4014
4014
|
mean: v,
|
|
4015
4015
|
stddev: B,
|
|
4016
|
-
min:
|
|
4017
|
-
max:
|
|
4016
|
+
min: T,
|
|
4017
|
+
max: N,
|
|
4018
4018
|
median: Number(P),
|
|
4019
4019
|
bins: E?.bins,
|
|
4020
4020
|
count: r,
|
|
@@ -4088,7 +4088,7 @@ function wd(t) {
|
|
|
4088
4088
|
}
|
|
4089
4089
|
function Ld(t) {
|
|
4090
4090
|
const e = ci(t);
|
|
4091
|
-
return e ===
|
|
4091
|
+
return e === Ne.Stacked || e === Ne.Stacked100;
|
|
4092
4092
|
}
|
|
4093
4093
|
function Pd(t, e) {
|
|
4094
4094
|
const i = [], a = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map();
|
|
@@ -4209,11 +4209,11 @@ function qd(t) {
|
|
|
4209
4209
|
g = l.modalHeaders.tooManyFeatures;
|
|
4210
4210
|
let x = Number.NaN, v = Number.NaN, b = "";
|
|
4211
4211
|
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));
|
|
4212
|
-
const B = m.format(x),
|
|
4212
|
+
const B = m.format(x), T = m.format(v), N = a !== void 0 ? m.format(a) : "";
|
|
4213
4213
|
d = Be(b, {
|
|
4214
4214
|
totalLimit: B,
|
|
4215
|
-
seriesLimit:
|
|
4216
|
-
elementCount:
|
|
4215
|
+
seriesLimit: T,
|
|
4216
|
+
elementCount: N
|
|
4217
4217
|
}), f = {
|
|
4218
4218
|
actualCount: a ?? Number.NaN,
|
|
4219
4219
|
totalLimit: x,
|
|
@@ -4226,10 +4226,10 @@ function qd(t) {
|
|
|
4226
4226
|
g = l.modalHeaders.tooManyFeatures;
|
|
4227
4227
|
let x = Number.NaN, v = Number.NaN, b = "";
|
|
4228
4228
|
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));
|
|
4229
|
-
const B = m.format(x),
|
|
4229
|
+
const B = m.format(x), T = m.format(v), N = a !== void 0 ? m.format(a) : "";
|
|
4230
4230
|
d = Be(b, {
|
|
4231
|
-
elementCount:
|
|
4232
|
-
seriesLimit:
|
|
4231
|
+
elementCount: N,
|
|
4232
|
+
seriesLimit: T,
|
|
4233
4233
|
totalLimit: B
|
|
4234
4234
|
}), f = {
|
|
4235
4235
|
actualCount: a ?? Number.NaN,
|
|
@@ -4243,10 +4243,10 @@ function qd(t) {
|
|
|
4243
4243
|
g = l.modalHeaders.tooManyFeatures;
|
|
4244
4244
|
let x = Number.NaN, v = Number.NaN, b = "";
|
|
4245
4245
|
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));
|
|
4246
|
-
const B = m.format(x),
|
|
4246
|
+
const B = m.format(x), T = m.format(v), N = a !== void 0 ? m.format(a) : "";
|
|
4247
4247
|
d = Be(b, {
|
|
4248
|
-
elementCount:
|
|
4249
|
-
seriesLimit:
|
|
4248
|
+
elementCount: N,
|
|
4249
|
+
seriesLimit: T,
|
|
4250
4250
|
totalLimit: B
|
|
4251
4251
|
}), f = {
|
|
4252
4252
|
actualCount: a ?? Number.NaN,
|
|
@@ -4594,14 +4594,14 @@ async function jo(t) {
|
|
|
4594
4594
|
chartSubType: c,
|
|
4595
4595
|
splitByField: f
|
|
4596
4596
|
});
|
|
4597
|
-
for (let
|
|
4598
|
-
const
|
|
4599
|
-
if (
|
|
4597
|
+
for (let T = 0; T < B.length; T += 1) {
|
|
4598
|
+
const N = B[T];
|
|
4599
|
+
if (N !== "") {
|
|
4600
4600
|
const w = [];
|
|
4601
4601
|
d !== C.boxPlot.boxPlotCategory && w.push(d), w.push(b), f !== "" && w.push(f), w.push(y);
|
|
4602
4602
|
const P = {
|
|
4603
4603
|
...a,
|
|
4604
|
-
where: Y([a.where,
|
|
4604
|
+
where: Y([a.where, N]),
|
|
4605
4605
|
groupByFieldsForStatistics: void 0,
|
|
4606
4606
|
outStatistics: void 0,
|
|
4607
4607
|
orderByFields: void 0,
|
|
@@ -4625,10 +4625,10 @@ async function jo(t) {
|
|
|
4625
4625
|
const h = await Promise.all(g), x = /* @__PURE__ */ new Map();
|
|
4626
4626
|
for (let v = 0; v < h.length; v += 1) {
|
|
4627
4627
|
const b = h[v], B = p[v];
|
|
4628
|
-
b.forEach((
|
|
4629
|
-
const
|
|
4630
|
-
if (
|
|
4631
|
-
d === C.boxPlot.boxPlotCategory && (
|
|
4628
|
+
b.forEach((T) => {
|
|
4629
|
+
const N = { ...T.attributes };
|
|
4630
|
+
if (N[B] !== void 0) {
|
|
4631
|
+
d === C.boxPlot.boxPlotCategory && (N[C.boxPlot.boxPlotCategory] = B);
|
|
4632
4632
|
let w = {
|
|
4633
4633
|
key: I.Outlier,
|
|
4634
4634
|
chartSubType: c
|
|
@@ -4639,7 +4639,7 @@ async function jo(t) {
|
|
|
4639
4639
|
case F.BoxPlotMonoFieldAndCategoryAndSplitBy:
|
|
4640
4640
|
w = {
|
|
4641
4641
|
...w,
|
|
4642
|
-
splitByValue:
|
|
4642
|
+
splitByValue: N[f]
|
|
4643
4643
|
};
|
|
4644
4644
|
break;
|
|
4645
4645
|
case F.BoxPlotMultiFieldsAndCategory:
|
|
@@ -4649,32 +4649,32 @@ async function jo(t) {
|
|
|
4649
4649
|
};
|
|
4650
4650
|
break;
|
|
4651
4651
|
}
|
|
4652
|
-
const P = K(w), A =
|
|
4653
|
-
|
|
4654
|
-
const E = `${
|
|
4655
|
-
if (
|
|
4652
|
+
const P = K(w), A = N[B];
|
|
4653
|
+
N[P] = A;
|
|
4654
|
+
const E = `${N[d]}-${N[f]}-${A}`, L = x.get(E);
|
|
4655
|
+
if (N[W.uniqueIdsName] = [
|
|
4656
4656
|
...L?.[W.uniqueIdsName] ?? [],
|
|
4657
|
-
|
|
4658
|
-
], delete
|
|
4657
|
+
N[y]
|
|
4658
|
+
], delete N[y], dr(c)) {
|
|
4659
4659
|
const O = K({
|
|
4660
4660
|
...w,
|
|
4661
4661
|
standardizeValues: !0
|
|
4662
4662
|
}), { mean: V, stdDev: $ } = _o({
|
|
4663
4663
|
data: i,
|
|
4664
|
-
outlierDataItem:
|
|
4664
|
+
outlierDataItem: N,
|
|
4665
4665
|
chartSubType: c,
|
|
4666
4666
|
x: d,
|
|
4667
4667
|
y: B,
|
|
4668
4668
|
splitByField: f,
|
|
4669
4669
|
meanAndStdDevPerField: n
|
|
4670
4670
|
});
|
|
4671
|
-
V !== void 0 && $ !== void 0 && (
|
|
4671
|
+
V !== void 0 && $ !== void 0 && (N[O] = si({
|
|
4672
4672
|
value: A,
|
|
4673
4673
|
mean: V,
|
|
4674
4674
|
stdDev: $
|
|
4675
4675
|
}));
|
|
4676
4676
|
}
|
|
4677
|
-
delete
|
|
4677
|
+
delete N[B], N[C.boxPlot.boxPlotOutlierId] = !0, x.set(E, N);
|
|
4678
4678
|
}
|
|
4679
4679
|
});
|
|
4680
4680
|
}
|
|
@@ -4695,15 +4695,15 @@ async function Ho(t) {
|
|
|
4695
4695
|
let l = [];
|
|
4696
4696
|
const { series: d, showMean: f } = n, m = Ci({ showMean: f, seriesConfig: d }), y = k(d), p = Re(n), { x: g } = p, h = te(p.query?.where), x = [];
|
|
4697
4697
|
for (let b = 0; b < m.length; b += 1) {
|
|
4698
|
-
const B = m[b], { dataWithoutOutliersFilterBatches:
|
|
4698
|
+
const B = m[b], { dataWithoutOutliersFilterBatches: T } = Ya({
|
|
4699
4699
|
data: e,
|
|
4700
4700
|
yField: B,
|
|
4701
4701
|
x: g,
|
|
4702
4702
|
chartSubType: y,
|
|
4703
4703
|
splitByField: h
|
|
4704
4704
|
});
|
|
4705
|
-
for (let
|
|
4706
|
-
const w = N
|
|
4705
|
+
for (let N = 0; N < T.length; N += 1) {
|
|
4706
|
+
const w = T[N], P = {
|
|
4707
4707
|
...a,
|
|
4708
4708
|
where: Y([a.where, w])
|
|
4709
4709
|
};
|
|
@@ -5047,7 +5047,7 @@ async function Rd(t) {
|
|
|
5047
5047
|
}), g = _(o), h = k(o), x = Re(a), v = te(x.query?.where);
|
|
5048
5048
|
m = /* @__PURE__ */ new Map();
|
|
5049
5049
|
for (let b = 0; b < (g === S.HistogramSeries && e.length > 0 ? 1 : e.length); b += 1) {
|
|
5050
|
-
const B = e[b],
|
|
5050
|
+
const B = e[b], T = await Gn({
|
|
5051
5051
|
seriesConfig: a.series,
|
|
5052
5052
|
dataItem: B,
|
|
5053
5053
|
renderer: f,
|
|
@@ -5059,7 +5059,7 @@ async function Rd(t) {
|
|
|
5059
5059
|
mapAttributesToSymbol: m,
|
|
5060
5060
|
rendererFieldNames: s
|
|
5061
5061
|
});
|
|
5062
|
-
n = n ||
|
|
5062
|
+
n = n || T.colorMatchApplied;
|
|
5063
5063
|
}
|
|
5064
5064
|
}
|
|
5065
5065
|
return { dataItems: e, colorMatchApplied: n, rendererFieldNames: s };
|
|
@@ -5463,11 +5463,11 @@ async function ol(t) {
|
|
|
5463
5463
|
} = t, p = k(a.series);
|
|
5464
5464
|
let g = { valid: !0, data: { dataItems: [] } };
|
|
5465
5465
|
if (r !== void 0 && r.length > 0) {
|
|
5466
|
-
const h = Re(a), { x } = h, v = "y" in h ? h.y : "", B = Ce(e).find((E) => E.name === x)?.type,
|
|
5466
|
+
const h = Re(a), { x } = h, v = "y" in h ? h.y : "", B = Ce(e).find((E) => E.name === x)?.type, T = [], N = r.reduce(
|
|
5467
5467
|
(E, L) => {
|
|
5468
5468
|
const O = [];
|
|
5469
5469
|
if (W.uniqueIdsName in L)
|
|
5470
|
-
|
|
5470
|
+
T.push(L[W.uniqueIdsName]);
|
|
5471
5471
|
else {
|
|
5472
5472
|
switch (p) {
|
|
5473
5473
|
case F.BoxPlotMonoFieldAndSplitBy:
|
|
@@ -5505,11 +5505,11 @@ async function ol(t) {
|
|
|
5505
5505
|
},
|
|
5506
5506
|
[]
|
|
5507
5507
|
), w = H(e);
|
|
5508
|
-
if (w !== void 0 &&
|
|
5508
|
+
if (w !== void 0 && T.length > 0) {
|
|
5509
5509
|
const E = ve(w).idField;
|
|
5510
|
-
|
|
5510
|
+
N.push(`${E} IN (${T.join(",")})`);
|
|
5511
5511
|
}
|
|
5512
|
-
const P =
|
|
5512
|
+
const P = N.join(" OR "), A = { ...i };
|
|
5513
5513
|
A.where = Y([A.where, P]), g = await Si({
|
|
5514
5514
|
queryObject: e,
|
|
5515
5515
|
chartConfig: a,
|
|
@@ -5551,20 +5551,20 @@ async function ll(t) {
|
|
|
5551
5551
|
const { series: h } = a, x = _(h), v = xe(a);
|
|
5552
5552
|
let b = { valid: !0 }, B = s?.selectionItems ?? [];
|
|
5553
5553
|
n || (B = tl({ chartConfig: a, currentSelectionDataItems: r, selectionData: s }));
|
|
5554
|
-
let
|
|
5554
|
+
let T = !1;
|
|
5555
5555
|
switch (x) {
|
|
5556
5556
|
case S.HeatSeries:
|
|
5557
5557
|
b.data = { dataItems: B };
|
|
5558
5558
|
break;
|
|
5559
5559
|
case S.PieSeries:
|
|
5560
5560
|
if (k(a.series) === F.PieFromFields) {
|
|
5561
|
-
const { x:
|
|
5561
|
+
const { x: N, y: w } = a.series[0], P = He(B);
|
|
5562
5562
|
P.forEach((A) => {
|
|
5563
|
-
|
|
5563
|
+
N in A && (A[he] = A[N], delete A[N]), w in A && (A[Te] = A[w], delete A[w]);
|
|
5564
5564
|
}), b.data = { dataItems: P };
|
|
5565
5565
|
} else
|
|
5566
5566
|
b.data = { dataItems: B };
|
|
5567
|
-
b.count = B.length,
|
|
5567
|
+
b.count = B.length, T = !0;
|
|
5568
5568
|
break;
|
|
5569
5569
|
case S.BoxPlotSeries:
|
|
5570
5570
|
ce(a) && (b = await ol({
|
|
@@ -5594,9 +5594,9 @@ async function ll(t) {
|
|
|
5594
5594
|
seriesConfig: h[0],
|
|
5595
5595
|
queryObject: e
|
|
5596
5596
|
}))
|
|
5597
|
-
b.data = { dataItems: B }, b.count = B.length * h.length,
|
|
5597
|
+
b.data = { dataItems: B }, b.count = B.length * h.length, T = !0;
|
|
5598
5598
|
else {
|
|
5599
|
-
const
|
|
5599
|
+
const N = { ...i };
|
|
5600
5600
|
if (r !== void 0 && r.length > 0) {
|
|
5601
5601
|
const P = r.map(
|
|
5602
5602
|
(E) => Ja({
|
|
@@ -5605,11 +5605,11 @@ async function ll(t) {
|
|
|
5605
5605
|
queryObject: e
|
|
5606
5606
|
})
|
|
5607
5607
|
), A = Y(P, "OR");
|
|
5608
|
-
|
|
5608
|
+
N.where = Y([N.where, A]);
|
|
5609
5609
|
}
|
|
5610
5610
|
b = await bi({
|
|
5611
5611
|
queryObject: e,
|
|
5612
|
-
queryConfig:
|
|
5612
|
+
queryConfig: N,
|
|
5613
5613
|
chartConfig: a,
|
|
5614
5614
|
errorStrings: y,
|
|
5615
5615
|
setTimeBinningInfoWhenNotProvided: o,
|
|
@@ -5632,9 +5632,9 @@ async function ll(t) {
|
|
|
5632
5632
|
bins: []
|
|
5633
5633
|
}, b.count = 0;
|
|
5634
5634
|
else {
|
|
5635
|
-
const { x:
|
|
5635
|
+
const { x: N } = h[0], w = B.map((E, L) => {
|
|
5636
5636
|
const { minValue: O, maxValue: V } = E, $ = L === B.length - 1 ? "<=" : "<";
|
|
5637
|
-
return `${
|
|
5637
|
+
return `${N} >= ${O} AND ${N} ${$} ${V}`;
|
|
5638
5638
|
}), P = Y(w, "OR"), A = { ...i };
|
|
5639
5639
|
A.where = Y([A.where, P]), b = await Ga({
|
|
5640
5640
|
queryObject: e,
|
|
@@ -5650,19 +5650,19 @@ async function ll(t) {
|
|
|
5650
5650
|
}
|
|
5651
5651
|
case S.ScatterSeries: {
|
|
5652
5652
|
if (B.length === 0) {
|
|
5653
|
-
const { r2:
|
|
5654
|
-
b.data = { dataItems: [], r2:
|
|
5653
|
+
const { r2: N, trendLinePoints: w } = C.scatterplotSeries;
|
|
5654
|
+
b.data = { dataItems: [], r2: N, trendLinePoints: w, count: 0 }, b.count = 0;
|
|
5655
5655
|
} else {
|
|
5656
|
-
const { r2:
|
|
5656
|
+
const { r2: N, trendLinePoints: w } = Oa({
|
|
5657
5657
|
data: B,
|
|
5658
5658
|
chartConfig: a
|
|
5659
5659
|
});
|
|
5660
|
-
b.data = { dataItems: B, r2:
|
|
5660
|
+
b.data = { dataItems: B, r2: N, trendLinePoints: w }, b.count = B.length;
|
|
5661
5661
|
}
|
|
5662
5662
|
break;
|
|
5663
5663
|
}
|
|
5664
5664
|
}
|
|
5665
|
-
return
|
|
5665
|
+
return T && b.data !== void 0 && Et({
|
|
5666
5666
|
arrayToSort: "dataItems" in b.data ? b.data.dataItems : b.data,
|
|
5667
5667
|
chartConfig: a
|
|
5668
5668
|
}), b;
|
|
@@ -5747,10 +5747,10 @@ async function ul(t) {
|
|
|
5747
5747
|
currentSelectionDataItems: x,
|
|
5748
5748
|
dataForFilterBySelectionChanged: v,
|
|
5749
5749
|
preFetchedQueryResponse: b
|
|
5750
|
-
} = t, { series: B } = i,
|
|
5751
|
-
let
|
|
5750
|
+
} = t, { series: B } = i, T = _(B);
|
|
5751
|
+
let N = { valid: !0 };
|
|
5752
5752
|
if (r)
|
|
5753
|
-
|
|
5753
|
+
N = await ll({
|
|
5754
5754
|
queryObject: e,
|
|
5755
5755
|
queryConfig: a,
|
|
5756
5756
|
chartConfig: i,
|
|
@@ -5769,9 +5769,9 @@ async function ul(t) {
|
|
|
5769
5769
|
abortSignal: g
|
|
5770
5770
|
});
|
|
5771
5771
|
else
|
|
5772
|
-
switch (
|
|
5772
|
+
switch (T) {
|
|
5773
5773
|
case S.HeatSeries:
|
|
5774
|
-
yt(e),
|
|
5774
|
+
yt(e), N = await lr({
|
|
5775
5775
|
chartConfig: i,
|
|
5776
5776
|
queryConfig: a,
|
|
5777
5777
|
queryObject: e,
|
|
@@ -5786,7 +5786,7 @@ async function ul(t) {
|
|
|
5786
5786
|
});
|
|
5787
5787
|
break;
|
|
5788
5788
|
case S.BoxPlotSeries:
|
|
5789
|
-
ce(i) && (
|
|
5789
|
+
ce(i) && (N = await Si({
|
|
5790
5790
|
queryObject: e,
|
|
5791
5791
|
// @REV: temporary
|
|
5792
5792
|
chartConfig: i,
|
|
@@ -5831,11 +5831,11 @@ async function ul(t) {
|
|
|
5831
5831
|
setTimeBinningInfoWhenNotProvided: s,
|
|
5832
5832
|
seriesConfig: B[0],
|
|
5833
5833
|
queryObject: e
|
|
5834
|
-
}) ?
|
|
5834
|
+
}) ? N = await bi(w) : N = await oi(w);
|
|
5835
5835
|
break;
|
|
5836
5836
|
}
|
|
5837
5837
|
case S.ScatterSeries:
|
|
5838
|
-
|
|
5838
|
+
N.data = await ur({
|
|
5839
5839
|
queryObject: e,
|
|
5840
5840
|
queryConfig: a,
|
|
5841
5841
|
setTimeBinningInfoWhenNotProvided: s,
|
|
@@ -5852,7 +5852,7 @@ async function ul(t) {
|
|
|
5852
5852
|
});
|
|
5853
5853
|
break;
|
|
5854
5854
|
case S.HistogramSeries:
|
|
5855
|
-
|
|
5855
|
+
N = await Ga({
|
|
5856
5856
|
queryObject: e,
|
|
5857
5857
|
queryConfig: a,
|
|
5858
5858
|
chartConfig: i,
|
|
@@ -5863,7 +5863,7 @@ async function ul(t) {
|
|
|
5863
5863
|
});
|
|
5864
5864
|
break;
|
|
5865
5865
|
case S.GaugeSeries:
|
|
5866
|
-
yt(e),
|
|
5866
|
+
yt(e), N = await Ko({
|
|
5867
5867
|
queryObject: e,
|
|
5868
5868
|
chartConfig: i,
|
|
5869
5869
|
queryConfig: a,
|
|
@@ -5874,7 +5874,7 @@ async function ul(t) {
|
|
|
5874
5874
|
});
|
|
5875
5875
|
break;
|
|
5876
5876
|
}
|
|
5877
|
-
return
|
|
5877
|
+
return N;
|
|
5878
5878
|
}
|
|
5879
5879
|
async function Qd(t) {
|
|
5880
5880
|
const {
|
|
@@ -5900,18 +5900,18 @@ async function Qd(t) {
|
|
|
5900
5900
|
fieldList: b,
|
|
5901
5901
|
preFetchedQueryResponse: B
|
|
5902
5902
|
} = t;
|
|
5903
|
-
let
|
|
5904
|
-
const
|
|
5903
|
+
let T = { valid: !0 };
|
|
5904
|
+
const N = _a({
|
|
5905
5905
|
queryObject: e,
|
|
5906
5906
|
chartConfig: i,
|
|
5907
5907
|
runtimeDataFilters: o,
|
|
5908
5908
|
ignoreViewExtent: u,
|
|
5909
5909
|
viewExtent: h?.extent
|
|
5910
5910
|
});
|
|
5911
|
-
return As(a),
|
|
5911
|
+
return As(a), T = await ul({
|
|
5912
5912
|
chartConfig: i,
|
|
5913
5913
|
queryObject: e,
|
|
5914
|
-
queryConfig:
|
|
5914
|
+
queryConfig: N,
|
|
5915
5915
|
currentSelectionDataItems: n,
|
|
5916
5916
|
dataForFilterBySelectionChanged: s,
|
|
5917
5917
|
filterBySelection: c,
|
|
@@ -5929,7 +5929,7 @@ async function Qd(t) {
|
|
|
5929
5929
|
errorStrings: v,
|
|
5930
5930
|
fieldList: b,
|
|
5931
5931
|
preFetchedQueryResponse: B
|
|
5932
|
-
}),
|
|
5932
|
+
}), T.queryConfig = N, T;
|
|
5933
5933
|
}
|
|
5934
5934
|
function cl(t, e, i) {
|
|
5935
5935
|
const a = /* @__PURE__ */ new Map();
|
|
@@ -6165,22 +6165,22 @@ function Sl(t) {
|
|
|
6165
6165
|
};
|
|
6166
6166
|
for (; !g; ) {
|
|
6167
6167
|
let v = {};
|
|
6168
|
-
const { binStartDate: b, binEndDate: B, last:
|
|
6168
|
+
const { binStartDate: b, binEndDate: B, last: T, nextBinFirstOrLastIndex: N, sliceStartIndex: w, sliceEndIndex: P } = d === ee.End ? (
|
|
6169
6169
|
// When grouping from the end we'll start from the last date and move backward to create the bins
|
|
6170
6170
|
pl(x)
|
|
6171
6171
|
) : (
|
|
6172
6172
|
// When grouping from the start we'll start from the first date and move forward to create the bins
|
|
6173
6173
|
gl(x)
|
|
6174
6174
|
);
|
|
6175
|
-
if (g =
|
|
6175
|
+
if (g = T, v = d === ee.End ? v = e[P - 1] : v = e[h], B > n && b < n || b < r && B > r || b >= r && B <= n) {
|
|
6176
6176
|
const A = e.slice(w, P).filter((O) => !(C.dateBinModel in O));
|
|
6177
6177
|
y.forEach((O) => {
|
|
6178
6178
|
v[O] = hl({ binsToRegroup: A, statisticType: p, y: O, nullPolicy: f });
|
|
6179
6179
|
});
|
|
6180
6180
|
const E = A.map((O) => O[Oe]).filter((O) => O !== void 0), L = wn(E);
|
|
6181
6181
|
L !== void 0 && (v[Oe] = L), v[l] = b, v[C.xAxisField] = b, v[C.dateBinningRange] = [b, B], delete v[C.dateBinModel], s.push(v);
|
|
6182
|
-
} else
|
|
6183
|
-
h =
|
|
6182
|
+
} else T && d !== ee.End && s.length > 0 && (s[s.length - 1][C.dateBinningRange][1] = s[s.length - 1][C.dateBinningRange][1] + 1);
|
|
6183
|
+
h = N, x.binFirstOrLastIndex = N;
|
|
6184
6184
|
}
|
|
6185
6185
|
d === ee.End && (s = s.reverse());
|
|
6186
6186
|
} else u === 1 ? s = e.map((m, y) => {
|
|
@@ -6382,7 +6382,7 @@ function Bl(t) {
|
|
|
6382
6382
|
// we use <= to catch the last bin's value, < otherwise
|
|
6383
6383
|
}), u;
|
|
6384
6384
|
}
|
|
6385
|
-
function*
|
|
6385
|
+
function* Tl(t) {
|
|
6386
6386
|
const { queryObject: e, seriesConfig: i, queryConfig: a, completeData: r, errorStrings: n, abortSignal: s } = t;
|
|
6387
6387
|
for (let o = 0; o < i.length; o += 1) {
|
|
6388
6388
|
const u = i[o], { query: c, x: l, y: d } = u, m = [
|
|
@@ -6422,10 +6422,10 @@ function* Nl(t) {
|
|
|
6422
6422
|
});
|
|
6423
6423
|
}
|
|
6424
6424
|
}
|
|
6425
|
-
async function
|
|
6425
|
+
async function Nl(t) {
|
|
6426
6426
|
const { queryObject: e, data: i, seriesConfig: a, queryConfig: r, errorStrings: n, abortSignal: s } = t, o = i, { statisticType: u } = a[0].query?.outStatistics?.[0] ?? Gi;
|
|
6427
6427
|
if (u === D.ContinuousPercentile && o.length > 0) {
|
|
6428
|
-
const c =
|
|
6428
|
+
const c = Tl({
|
|
6429
6429
|
queryObject: e,
|
|
6430
6430
|
completeData: o,
|
|
6431
6431
|
seriesConfig: a,
|
|
@@ -6472,8 +6472,8 @@ function Al(t) {
|
|
|
6472
6472
|
return i.forEach((g, h) => {
|
|
6473
6473
|
if (!(y && (h === 0 && p === ee.End || h === i.length - 1 && p === ee.Start))) {
|
|
6474
6474
|
const { attributes: v, stackedAttributes: b } = g;
|
|
6475
|
-
let B = v[c.lowerBoundaryAlias],
|
|
6476
|
-
const
|
|
6475
|
+
let B = v[c.lowerBoundaryAlias], T = v[c.upperBoundaryAlias];
|
|
6476
|
+
const N = B, w = T, P = (A, E) => {
|
|
6477
6477
|
let L = A;
|
|
6478
6478
|
if (E === U.DateOnly && (typeof A == "string" && A.length === 10 || typeof A == "number"))
|
|
6479
6479
|
if (typeof A == "string") {
|
|
@@ -6486,9 +6486,9 @@ function Al(t) {
|
|
|
6486
6486
|
});
|
|
6487
6487
|
return L;
|
|
6488
6488
|
};
|
|
6489
|
-
if (B = P(B, d),
|
|
6489
|
+
if (B = P(B, d), T = P(T, d), typeof B == "number" && typeof T == "number") {
|
|
6490
6490
|
const A = { ...v };
|
|
6491
|
-
A[C.originalServerBinningRange] = [
|
|
6491
|
+
A[C.originalServerBinningRange] = [N, w], A[n] = B, A[C.xAxisField] = B, A[C.dateBinningRange] = [B, T], delete A[c.lowerBoundaryAlias], delete A[c.upperBoundaryAlias], b && r && !oe(r) && a ? b.forEach((O) => {
|
|
6492
6492
|
const V = O[r];
|
|
6493
6493
|
if (V === null || typeof V == "string" || typeof V == "number") {
|
|
6494
6494
|
const $ = a?.get(V);
|
|
@@ -6558,7 +6558,7 @@ async function wl(t) {
|
|
|
6558
6558
|
seriesConfig: n,
|
|
6559
6559
|
dateMinTimestamp: d,
|
|
6560
6560
|
dateMaxTimestamp: f
|
|
6561
|
-
}), e && (l = await
|
|
6561
|
+
}), e && (l = await Nl({
|
|
6562
6562
|
queryObject: e,
|
|
6563
6563
|
data: l,
|
|
6564
6564
|
seriesConfig: n,
|
|
@@ -6834,7 +6834,7 @@ function sr(t) {
|
|
|
6834
6834
|
showMean: u,
|
|
6835
6835
|
chartLimits: c,
|
|
6836
6836
|
fieldList: l
|
|
6837
|
-
} = t, { series: d } = a, f = k(d), m = _(d), { x: y } = d[0], p = "y" in d[0] ? d[0].y : void 0, g = d[0].query?.outStatistics ?? [], h = we(a?.axes?.[0]?.valueFormat), { originalYCategoryValue: x, originalCategoryValue: v, originalDateValue: b } = C, B = ri(e, y),
|
|
6837
|
+
} = t, { series: d } = a, f = k(d), m = _(d), { x: y } = d[0], p = "y" in d[0] ? d[0].y : void 0, g = d[0].query?.outStatistics ?? [], h = we(a?.axes?.[0]?.valueFormat), { originalYCategoryValue: x, originalCategoryValue: v, originalDateValue: b } = C, B = ri(e, y), T = typeof p == "string" ? ri(e, p) : void 0, w = to(l ?? []).includes(y), P = [];
|
|
6838
6838
|
let A = 0;
|
|
6839
6839
|
const E = /* @__PURE__ */ new Set(), { maxCategoryCount: L } = ct(c), O = jl({ queryResponse: i, chartConfig: a, maxCategoryCount: L });
|
|
6840
6840
|
for (let V = 0; O[V] && V < O.length && !(o !== void 0 && A >= o); V += 1) {
|
|
@@ -6868,7 +6868,7 @@ function sr(t) {
|
|
|
6868
6868
|
x: y,
|
|
6869
6869
|
y: p,
|
|
6870
6870
|
xFieldDomain: B,
|
|
6871
|
-
yFieldDomain:
|
|
6871
|
+
yFieldDomain: T,
|
|
6872
6872
|
chartType: m,
|
|
6873
6873
|
chartSubType: f,
|
|
6874
6874
|
xAxisValueFormat: a.axes?.[0].valueFormat,
|
|
@@ -6931,7 +6931,7 @@ async function or(t) {
|
|
|
6931
6931
|
let f, m;
|
|
6932
6932
|
if (c === F.BoxPlotMonoField || c === F.BoxPlotMonoFieldAndSplitBy ? (m = d, f = m) : c === F.BoxPlotMultiFields || c === F.BoxPlotMultiFieldsAndSplitBy ? (m = e.series[0].y.length, f = m) : c === F.PieFromFields || c === F.BarAndLineFromFields ? (m = u[0].query?.outStatistics?.filter(
|
|
6933
6933
|
(y) => y.statisticType !== D.EnvelopeAggregate
|
|
6934
|
-
).length ?? 0, f = m) : f = await
|
|
6934
|
+
).length ?? 0, f = m) : f = await Ts({
|
|
6935
6935
|
queryObject: i,
|
|
6936
6936
|
x: l,
|
|
6937
6937
|
chartSubType: c,
|
|
@@ -6963,13 +6963,13 @@ async function oi(t) {
|
|
|
6963
6963
|
} = t, p = ot(e), g = t.replaceNoValueCategoryWithZero ?? C.options.replaceNoValueCategoryWithZero, h = !(y ?? !g), { behaviorAfterLimit: x } = f ?? {};
|
|
6964
6964
|
let v;
|
|
6965
6965
|
const b = { valid: !0 };
|
|
6966
|
-
let B,
|
|
6967
|
-
const
|
|
6966
|
+
let B, T = !1;
|
|
6967
|
+
const N = e.series, w = N[0], P = k(e.series);
|
|
6968
6968
|
if (ie(r))
|
|
6969
|
-
v = _(
|
|
6969
|
+
v = _(N) === S.BarSeries ? await js(t) : b;
|
|
6970
6970
|
else {
|
|
6971
6971
|
if (w !== void 0) {
|
|
6972
|
-
const A = _(
|
|
6972
|
+
const A = _(N), { uniqueQuery: E, mapToStatField: L } = mi({
|
|
6973
6973
|
chartConfig: e,
|
|
6974
6974
|
queryObject: r,
|
|
6975
6975
|
queryConfig: i,
|
|
@@ -6989,7 +6989,7 @@ async function oi(t) {
|
|
|
6989
6989
|
const $ = !Number.isFinite(V);
|
|
6990
6990
|
let M = $ || Ae({
|
|
6991
6991
|
count: V ?? 0,
|
|
6992
|
-
seriesCount:
|
|
6992
|
+
seriesCount: N.length,
|
|
6993
6993
|
chartType: A,
|
|
6994
6994
|
chartLimits: f
|
|
6995
6995
|
});
|
|
@@ -7018,9 +7018,9 @@ async function oi(t) {
|
|
|
7018
7018
|
errorStrings: u,
|
|
7019
7019
|
abortKey: n,
|
|
7020
7020
|
abortSignal: c
|
|
7021
|
-
}), f?.maxBoxPlotOutlierLimit !== void 0 && (M = (b.data.outliers ?? []).length <= f.maxBoxPlotOutlierLimit,
|
|
7021
|
+
}), f?.maxBoxPlotOutlierLimit !== void 0 && (M = (b.data.outliers ?? []).length <= f.maxBoxPlotOutlierLimit, T = !M)), $ && (O = B.length, V = ii(P) ? O * N.length : O, M = Ae({
|
|
7022
7022
|
count: V,
|
|
7023
|
-
seriesCount:
|
|
7023
|
+
seriesCount: N.length,
|
|
7024
7024
|
chartType: A,
|
|
7025
7025
|
chartLimits: f
|
|
7026
7026
|
})), M)) {
|
|
@@ -7028,11 +7028,11 @@ async function oi(t) {
|
|
|
7028
7028
|
P === F.PieFromFields && (B = Dt({
|
|
7029
7029
|
dataToConvert: B[0],
|
|
7030
7030
|
x: he,
|
|
7031
|
-
y:
|
|
7031
|
+
y: Te,
|
|
7032
7032
|
fieldList: s
|
|
7033
7033
|
}));
|
|
7034
7034
|
let q = "";
|
|
7035
|
-
P === F.PieFromFields ? q =
|
|
7035
|
+
P === F.PieFromFields ? q = Te : "y" in w && typeof w.y == "string" && (q = w.y), In(B, q) ? b.data = { dataItems: B } : Eo(b, j.PieChartMixOfNegativePositiveSlices);
|
|
7036
7036
|
} else if ((A === S.RadarSeries || A === S.BarSeries || A === S.LineSeries || A === S.ComboLineAndBarSeries) && (P === F.BarAndLineFromFields && "y" in w && typeof w.y == "string" ? B = Dt({
|
|
7037
7037
|
dataToConvert: B[0],
|
|
7038
7038
|
x: w.x,
|
|
@@ -7048,9 +7048,9 @@ async function oi(t) {
|
|
|
7048
7048
|
errorStrings: u,
|
|
7049
7049
|
abortKey: n,
|
|
7050
7050
|
abortSignal: c
|
|
7051
|
-
}), V = ii(P) ? B.length *
|
|
7051
|
+
}), V = ii(P) ? B.length * N.length : B.length, M = Ae({
|
|
7052
7052
|
count: V,
|
|
7053
|
-
seriesCount:
|
|
7053
|
+
seriesCount: N.length,
|
|
7054
7054
|
chartType: A,
|
|
7055
7055
|
chartLimits: f
|
|
7056
7056
|
}), M)) {
|
|
@@ -7066,7 +7066,7 @@ async function oi(t) {
|
|
|
7066
7066
|
M || Ot({
|
|
7067
7067
|
dataInfo: b,
|
|
7068
7068
|
chartType: A,
|
|
7069
|
-
subError: { outlierLimit:
|
|
7069
|
+
subError: { outlierLimit: T }
|
|
7070
7070
|
}), b.count = V;
|
|
7071
7071
|
}
|
|
7072
7072
|
v = b;
|
|
@@ -7150,7 +7150,7 @@ async function lr(t) {
|
|
|
7150
7150
|
} = t, m = { valid: !0 };
|
|
7151
7151
|
let y;
|
|
7152
7152
|
if (We(e)) {
|
|
7153
|
-
const { nullPolicy: p } = e, g = e.series[0], { x: h, y: x, query: v, xTemporalBinning: b, yTemporalBinning: B } = g,
|
|
7153
|
+
const { nullPolicy: p } = e, g = e.series[0], { x: h, y: x, query: v, xTemporalBinning: b, yTemporalBinning: B } = g, T = v?.outStatistics?.[0]?.outStatisticFieldName ?? "", N = v?.outStatistics?.[0]?.statisticType ?? D.Count, w = Ul(e), P = Q.valueField, A = p === Se.Zero ? 0 : null;
|
|
7154
7154
|
if (Mo(e)) {
|
|
7155
7155
|
const E = await vs({
|
|
7156
7156
|
chartConfig: e,
|
|
@@ -7210,7 +7210,7 @@ async function lr(t) {
|
|
|
7210
7210
|
], w && (y = Yl({
|
|
7211
7211
|
dataItems: y,
|
|
7212
7212
|
valueField: P,
|
|
7213
|
-
filterOutZero:
|
|
7213
|
+
filterOutZero: N === D.Count
|
|
7214
7214
|
})));
|
|
7215
7215
|
}
|
|
7216
7216
|
} else {
|
|
@@ -7231,7 +7231,7 @@ async function lr(t) {
|
|
|
7231
7231
|
G.push(X), $.push({
|
|
7232
7232
|
[Q.xField]: `${M[W.heatChartLowerBoundaryAlias]}`,
|
|
7233
7233
|
[Q.yField]: X,
|
|
7234
|
-
[P]: J[
|
|
7234
|
+
[P]: J[T]
|
|
7235
7235
|
});
|
|
7236
7236
|
}), r && L && G.length !== L?.length) {
|
|
7237
7237
|
const J = L.filter((X) => !G.includes(X.toString()));
|
|
@@ -7313,8 +7313,8 @@ async function bi(t) {
|
|
|
7313
7313
|
if (be(g)) {
|
|
7314
7314
|
const { temporalBinning: B } = g;
|
|
7315
7315
|
if (a && B) {
|
|
7316
|
-
const { unit:
|
|
7317
|
-
let w = 1, P = { unit:
|
|
7316
|
+
const { unit: T, size: N } = B;
|
|
7317
|
+
let w = 1, P = { unit: T, size: N }, A = !1;
|
|
7318
7318
|
const E = Ml({
|
|
7319
7319
|
series: g,
|
|
7320
7320
|
isTimeBinningSeries: !0,
|
|
@@ -7529,8 +7529,8 @@ async function iu(t) {
|
|
|
7529
7529
|
dataContextCountDistinctY: y
|
|
7530
7530
|
} = C.scatterplotAggregationFields;
|
|
7531
7531
|
let p, g, h, x, v;
|
|
7532
|
-
const b = e.get(c), B = e.get(l),
|
|
7533
|
-
if (b != null &&
|
|
7532
|
+
const b = e.get(c), B = e.get(l), T = e.get(d), N = e.get(f);
|
|
7533
|
+
if (b != null && T !== void 0 && T !== null && B !== void 0 && B !== null && N !== void 0 && N !== null && !Number.isNaN(b + B + T + N)) {
|
|
7534
7534
|
const { maxScatterPointsAfterAggregation: w } = ct(r), A = Math.floor(Math.sqrt(w)), E = await tu({
|
|
7535
7535
|
queryObject: a,
|
|
7536
7536
|
chartConfig: i,
|
|
@@ -7539,7 +7539,7 @@ async function iu(t) {
|
|
|
7539
7539
|
abortKey: o,
|
|
7540
7540
|
abortSignal: u
|
|
7541
7541
|
});
|
|
7542
|
-
h = Math.min(E.get(y) ?? Number.NaN, A), x = Math.min(E.get(m) ?? Number.NaN, A), v = x * h, p = B === b ? 0 : (B - b) / (x - 1), g =
|
|
7542
|
+
h = Math.min(E.get(y) ?? Number.NaN, A), x = Math.min(E.get(m) ?? Number.NaN, A), v = x * h, p = B === b ? 0 : (B - b) / (x - 1), g = N === T ? 0 : (N - T) / (h - 1), e.set(C.scatterplotAggregationFields.xStep, p), e.set(C.scatterplotAggregationFields.yStep, g), e.set(C.scatterplotAggregationFields.rowCount, h), e.set(C.scatterplotAggregationFields.columnCount, x), e.set(C.scatterplotAggregationFields.realGridSize, v);
|
|
7543
7543
|
}
|
|
7544
7544
|
}
|
|
7545
7545
|
function au(t) {
|
|
@@ -7595,8 +7595,8 @@ async function nu(t) {
|
|
|
7595
7595
|
queryNumberOfAggregatedFeatures: h
|
|
7596
7596
|
} = C.scatterplotAggregationFields;
|
|
7597
7597
|
let x;
|
|
7598
|
-
const v = e?.get(f) ?? Number.NaN, b = e?.get(m) ?? Number.NaN, B = e?.get(g) ?? Number.NaN,
|
|
7599
|
-
if (v != null &&
|
|
7598
|
+
const v = e?.get(f) ?? Number.NaN, b = e?.get(m) ?? Number.NaN, B = e?.get(g) ?? Number.NaN, T = e?.get(y) ?? v, N = e?.get(p) ?? b;
|
|
7599
|
+
if (v != null && T !== void 0 && T !== null && b !== void 0 && b !== null && N !== void 0 && N !== null && !Number.isNaN(v + b + T + N)) {
|
|
7600
7600
|
const w = H(a), { idField: P, isTraditionalTypeOID: A } = ve(w), E = A ? P : "*", L = 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);
|
|
7601
7601
|
if (G?.forEach((z) => {
|
|
7602
7602
|
Ft(z) && q.set(z.name, {
|
|
@@ -7649,9 +7649,9 @@ async function nu(t) {
|
|
|
7649
7649
|
} else if ($ !== void 0 && M !== void 0) {
|
|
7650
7650
|
let z = 0;
|
|
7651
7651
|
const { maxScatterCellsPerQuery: ae, maxScatterCellsPerQueryForStandard: ge } = Rt(), vi = await io(w, u) ? ge : ae, Bi = [];
|
|
7652
|
-
let Ht = !0, Xe = v, ke =
|
|
7652
|
+
let Ht = !0, Xe = v, ke = T, Je = "", Ct = 1, zt = 1, vt = Number.MAX_SAFE_INTEGER, Bt = Number.MIN_SAFE_INTEGER, Tt = Number.MAX_SAFE_INTEGER, Nt = Number.MIN_SAFE_INTEGER;
|
|
7653
7653
|
for (; zt <= M && Ht; ) {
|
|
7654
|
-
for (ke =
|
|
7654
|
+
for (ke = T, Ct = 1; Ct <= $ && Ht; ) {
|
|
7655
7655
|
if (Je = au({
|
|
7656
7656
|
groupByFieldsForStatistics: Je,
|
|
7657
7657
|
x: l,
|
|
@@ -7662,7 +7662,7 @@ async function nu(t) {
|
|
|
7662
7662
|
yStep: O,
|
|
7663
7663
|
endOfRow: Ct === $,
|
|
7664
7664
|
endOfColumn: zt === M
|
|
7665
|
-
}), Xe < vt && (vt = Xe), Xe + L > Bt && (Bt = Xe + L), ke <
|
|
7665
|
+
}), Xe < vt && (vt = Xe), Xe + L > Bt && (Bt = Xe + L), ke < Tt && (Tt = ke), ke + L > Nt && (Nt = ke + O), z += 1, z % vi === 0 || z === V || z === B) {
|
|
7666
7666
|
Je = `${Je} ${Ue.groupByCaseEnd}`;
|
|
7667
7667
|
const gr = {
|
|
7668
7668
|
...r,
|
|
@@ -7676,13 +7676,13 @@ async function nu(t) {
|
|
|
7676
7676
|
queryObject: a,
|
|
7677
7677
|
xMin: vt,
|
|
7678
7678
|
xMax: Bt,
|
|
7679
|
-
yMin:
|
|
7680
|
-
yMax:
|
|
7679
|
+
yMin: Tt,
|
|
7680
|
+
yMax: Nt,
|
|
7681
7681
|
errorStrings: s,
|
|
7682
7682
|
abortKey: o,
|
|
7683
7683
|
abortSignal: u
|
|
7684
7684
|
})
|
|
7685
|
-
), vt = Number.MAX_SAFE_INTEGER, Bt = Number.MIN_SAFE_INTEGER,
|
|
7685
|
+
), vt = Number.MAX_SAFE_INTEGER, Bt = Number.MIN_SAFE_INTEGER, Tt = Number.MAX_SAFE_INTEGER, Nt = Number.MIN_SAFE_INTEGER, Je = "", z === V && (Ht = !1);
|
|
7686
7686
|
}
|
|
7687
7687
|
ke += O, Ct += 1;
|
|
7688
7688
|
}
|
|
@@ -8024,8 +8024,8 @@ function Me(t, e) {
|
|
|
8024
8024
|
return t === null && e === !0 || Number.isFinite(t);
|
|
8025
8025
|
}
|
|
8026
8026
|
function fu(t) {
|
|
8027
|
-
const { dataItem: e, x: i, y: a, nullAsValid: r = !1 } = t;
|
|
8028
|
-
return
|
|
8027
|
+
const { dataItem: e, x: i, y: a, nullAsValid: r = !1, aggregationType: n = D.Count } = t, s = e[i], o = e[a];
|
|
8028
|
+
return s !== void 0 && (typeof s != "number" || Number.isFinite(s)) && Me(o, r) && (n !== D.Count || o !== 0);
|
|
8029
8029
|
}
|
|
8030
8030
|
function _d(t) {
|
|
8031
8031
|
const { chartConfig: e, nullAsValid: i = !1, dataSet: a } = t;
|
|
@@ -8057,7 +8057,13 @@ function _d(t) {
|
|
|
8057
8057
|
case S.BarSeries: {
|
|
8058
8058
|
const c = o, { x: l } = e.series[0];
|
|
8059
8059
|
u = s.some(
|
|
8060
|
-
(d) => fu({
|
|
8060
|
+
(d) => fu({
|
|
8061
|
+
dataItem: c,
|
|
8062
|
+
x: l,
|
|
8063
|
+
y: d,
|
|
8064
|
+
nullAsValid: i,
|
|
8065
|
+
aggregationType: e.series[0].query?.outStatistics?.[0]?.statisticType
|
|
8066
|
+
})
|
|
8061
8067
|
);
|
|
8062
8068
|
break;
|
|
8063
8069
|
}
|
|
@@ -8077,7 +8083,7 @@ function _d(t) {
|
|
|
8077
8083
|
{
|
|
8078
8084
|
const c = o;
|
|
8079
8085
|
let { x: l, y: d } = e.series[0];
|
|
8080
|
-
k(e.series) === F.PieFromFields && (l = he, d =
|
|
8086
|
+
k(e.series) === F.PieFromFields && (l = he, d = Te);
|
|
8081
8087
|
const f = c[d];
|
|
8082
8088
|
u = c[l] !== void 0 && c[l] !== null && !pr(f) && Me(Number(f), i);
|
|
8083
8089
|
}
|
|
@@ -8157,7 +8163,7 @@ function zi(t) {
|
|
|
8157
8163
|
m.forEach((x) => {
|
|
8158
8164
|
const v = y === F.BoxPlotMultiFieldsAndCategory ? x : void 0;
|
|
8159
8165
|
g.forEach((b) => {
|
|
8160
|
-
const { min: B, max:
|
|
8166
|
+
const { min: B, max: T } = gu({
|
|
8161
8167
|
y: v,
|
|
8162
8168
|
splitByValue: b,
|
|
8163
8169
|
chartSubType: y,
|
|
@@ -8165,15 +8171,15 @@ function zi(t) {
|
|
|
8165
8171
|
standardizeValues: p,
|
|
8166
8172
|
dataItem: h
|
|
8167
8173
|
});
|
|
8168
|
-
B != null && B < e && (e = B),
|
|
8174
|
+
B != null && B < e && (e = B), T != null && T > i && (i = T);
|
|
8169
8175
|
});
|
|
8170
8176
|
});
|
|
8171
8177
|
});
|
|
8172
8178
|
} else
|
|
8173
8179
|
switch (ci(n)) {
|
|
8174
8180
|
// we should keep the intention of the function purely as it is, meaning retrieving the min/max values from the stacked series.
|
|
8175
|
-
case
|
|
8176
|
-
case
|
|
8181
|
+
case Ne.Stacked100:
|
|
8182
|
+
case Ne.Stacked: {
|
|
8177
8183
|
const { stackedMinY: y, stackedMaxY: p } = yu({
|
|
8178
8184
|
seriesConfig: u,
|
|
8179
8185
|
filteredData: d,
|
|
@@ -8182,7 +8188,7 @@ function zi(t) {
|
|
|
8182
8188
|
e = y, i = p;
|
|
8183
8189
|
break;
|
|
8184
8190
|
}
|
|
8185
|
-
case
|
|
8191
|
+
case Ne.Side:
|
|
8186
8192
|
default: {
|
|
8187
8193
|
e = Number.MAX_SAFE_INTEGER, i = Number.MIN_SAFE_INTEGER, ue(u, o).forEach((p) => {
|
|
8188
8194
|
const { min: g, max: h } = St(
|
|
@@ -8252,7 +8258,7 @@ function hu(t, e) {
|
|
|
8252
8258
|
const i = t;
|
|
8253
8259
|
if (e?.[0] !== void 0 && k(e) === F.PieFromFields) {
|
|
8254
8260
|
const { x: a, y: r } = e[0];
|
|
8255
|
-
(ui(t) ? i : i.dataItems).forEach((o) => (he in o && a !== he && (o[a] = o[a] !== void 0 ? o[a] : o[he], delete o[he]),
|
|
8261
|
+
(ui(t) ? i : i.dataItems).forEach((o) => (he in o && a !== he && (o[a] = o[a] !== void 0 ? o[a] : o[he], delete o[he]), Te in o && r !== Te && (o[r] = o[r] !== void 0 ? o[r] : o[Te], delete o[Te]), o));
|
|
8256
8262
|
}
|
|
8257
8263
|
return i;
|
|
8258
8264
|
}
|
|
@@ -8355,7 +8361,7 @@ function bu(t) {
|
|
|
8355
8361
|
} else c.valid && (n === F.PieFromFields ? s = Dt({
|
|
8356
8362
|
dataToConvert: l[0],
|
|
8357
8363
|
x: he,
|
|
8358
|
-
y:
|
|
8364
|
+
y: Te
|
|
8359
8365
|
}) : n === F.BarAndLineFromFields ? s = Dt({
|
|
8360
8366
|
dataToConvert: l[0],
|
|
8361
8367
|
x: a[0].x,
|
|
@@ -8383,8 +8389,8 @@ async function xu(t) {
|
|
|
8383
8389
|
view: y
|
|
8384
8390
|
} = t, { series: p } = a, g = _(p), h = [], { maxOIDsPerSelectionQuery: x } = Rt();
|
|
8385
8391
|
for (let b = 0; b < e; b += 1) {
|
|
8386
|
-
const B = b * x,
|
|
8387
|
-
switch (w.objectIds =
|
|
8392
|
+
const B = b * x, T = (b + 1) * x - 1, N = i.slice(B === 0 ? 0 : B - 1, T), w = { ...r };
|
|
8393
|
+
switch (w.objectIds = N, g) {
|
|
8388
8394
|
case S.HeatSeries:
|
|
8389
8395
|
h.push(
|
|
8390
8396
|
lr({
|
|
@@ -8514,8 +8520,8 @@ async function Wd(t) {
|
|
|
8514
8520
|
returnSelectionOIDs: h,
|
|
8515
8521
|
selectionData: x
|
|
8516
8522
|
} = t, { series: v } = e, { selectionItems: b, selectionOIDs: B } = x ?? {};
|
|
8517
|
-
let
|
|
8518
|
-
const
|
|
8523
|
+
let T;
|
|
8524
|
+
const N = _(v), w = N !== S.HistogramSeries && N !== S.HeatSeries && b !== void 0 && b.length > 0 && !(v[0].x in b[0]) && !(he in b[0]) && !(C.boxPlot.boxPlotCategory in b[0]);
|
|
8519
8525
|
if (y !== !0 && h !== !1 && B !== void 0 && B.length > 0 && (a === !0 || w || u)) {
|
|
8520
8526
|
const A = xi(i), E = _a({
|
|
8521
8527
|
queryObject: s,
|
|
@@ -8525,7 +8531,7 @@ async function Wd(t) {
|
|
|
8525
8531
|
viewExtent: m?.extent
|
|
8526
8532
|
});
|
|
8527
8533
|
if (A !== void 0 && !On({ dataContext: A[0], chartConfig: e, chartLimits: c }))
|
|
8528
|
-
|
|
8534
|
+
T = A.filter((L) => {
|
|
8529
8535
|
const O = L[W.uniqueIdsName];
|
|
8530
8536
|
return typeof O == "number" || typeof O == "string" ? B?.includes(O) : !1;
|
|
8531
8537
|
});
|
|
@@ -8546,14 +8552,14 @@ async function Wd(t) {
|
|
|
8546
8552
|
errorStrings: o,
|
|
8547
8553
|
chartConfig: e
|
|
8548
8554
|
});
|
|
8549
|
-
|
|
8555
|
+
T = bu({
|
|
8550
8556
|
dataFetchingResults: $,
|
|
8551
8557
|
numberOfQueries: O,
|
|
8552
8558
|
series: v
|
|
8553
8559
|
});
|
|
8554
8560
|
}
|
|
8555
8561
|
}
|
|
8556
|
-
return
|
|
8562
|
+
return T;
|
|
8557
8563
|
}
|
|
8558
8564
|
const Gd = {
|
|
8559
8565
|
shouldCheckDataMinMaxForLogScaleOnXAxis: mr,
|
|
@@ -8613,17 +8619,17 @@ export {
|
|
|
8613
8619
|
Zs as aJ,
|
|
8614
8620
|
ue as aK,
|
|
8615
8621
|
yl as aL,
|
|
8616
|
-
|
|
8622
|
+
Tn as aM,
|
|
8617
8623
|
qc as aN,
|
|
8618
8624
|
kc as aO,
|
|
8619
8625
|
Bc as aP,
|
|
8620
8626
|
bn as aQ,
|
|
8621
|
-
|
|
8627
|
+
Nn as aR,
|
|
8622
8628
|
Ec as aS,
|
|
8623
8629
|
wc as aT,
|
|
8624
8630
|
vn as aU,
|
|
8625
8631
|
Bn as aV,
|
|
8626
|
-
|
|
8632
|
+
Nc as aW,
|
|
8627
8633
|
Ac as aX,
|
|
8628
8634
|
Lc as aY,
|
|
8629
8635
|
Qc as aZ,
|
|
@@ -8662,12 +8668,12 @@ export {
|
|
|
8662
8668
|
_c as b3,
|
|
8663
8669
|
Pc as b4,
|
|
8664
8670
|
Mc as b5,
|
|
8665
|
-
|
|
8671
|
+
Tc as b6,
|
|
8666
8672
|
$c as b7,
|
|
8667
8673
|
Oc as b8,
|
|
8668
8674
|
Ee as b9,
|
|
8669
8675
|
ft as bA,
|
|
8670
|
-
|
|
8676
|
+
Nd as bB,
|
|
8671
8677
|
no as bC,
|
|
8672
8678
|
Sc as bD,
|
|
8673
8679
|
Pt as bE,
|
|
@@ -8677,7 +8683,7 @@ export {
|
|
|
8677
8683
|
Cs as bI,
|
|
8678
8684
|
Bs as bJ,
|
|
8679
8685
|
ws as bK,
|
|
8680
|
-
|
|
8686
|
+
Ts as bL,
|
|
8681
8687
|
vs as bM,
|
|
8682
8688
|
Ad as bN,
|
|
8683
8689
|
xt as bO,
|
|
@@ -8712,7 +8718,7 @@ export {
|
|
|
8712
8718
|
ca as bq,
|
|
8713
8719
|
dn as br,
|
|
8714
8720
|
bd as bs,
|
|
8715
|
-
|
|
8721
|
+
Td as bt,
|
|
8716
8722
|
Qt as bu,
|
|
8717
8723
|
Id as bv,
|
|
8718
8724
|
po as bw,
|
|
@@ -8731,16 +8737,16 @@ export {
|
|
|
8731
8737
|
es as c7,
|
|
8732
8738
|
xe as c8,
|
|
8733
8739
|
mi as c9,
|
|
8734
|
-
|
|
8735
|
-
|
|
8736
|
-
|
|
8737
|
-
|
|
8738
|
-
|
|
8739
|
-
|
|
8740
|
-
|
|
8741
|
-
|
|
8742
|
-
|
|
8743
|
-
|
|
8740
|
+
cc as cA,
|
|
8741
|
+
Qn as cB,
|
|
8742
|
+
yc as cC,
|
|
8743
|
+
Po as cD,
|
|
8744
|
+
fc as cE,
|
|
8745
|
+
mc as cF,
|
|
8746
|
+
kd as cG,
|
|
8747
|
+
el as cH,
|
|
8748
|
+
bt as cI,
|
|
8749
|
+
wd as cJ,
|
|
8744
8750
|
gc as cK,
|
|
8745
8751
|
Pi as cL,
|
|
8746
8752
|
sc as cM,
|
|
@@ -8755,7 +8761,7 @@ export {
|
|
|
8755
8761
|
Yc as cV,
|
|
8756
8762
|
cd as cW,
|
|
8757
8763
|
Ii as cX,
|
|
8758
|
-
|
|
8764
|
+
Ta as cY,
|
|
8759
8765
|
Ld as cZ,
|
|
8760
8766
|
ed as c_,
|
|
8761
8767
|
or as ca,
|
|
@@ -8780,10 +8786,10 @@ export {
|
|
|
8780
8786
|
ot as ct,
|
|
8781
8787
|
va as cu,
|
|
8782
8788
|
Uc as cv,
|
|
8783
|
-
|
|
8784
|
-
|
|
8785
|
-
|
|
8786
|
-
|
|
8789
|
+
od as cw,
|
|
8790
|
+
dc as cx,
|
|
8791
|
+
Zc as cy,
|
|
8792
|
+
Vn as cz,
|
|
8787
8793
|
xc as d,
|
|
8788
8794
|
td as d0,
|
|
8789
8795
|
qd as d1,
|
|
@@ -8798,7 +8804,7 @@ export {
|
|
|
8798
8804
|
ac as k,
|
|
8799
8805
|
rc as l,
|
|
8800
8806
|
he as m,
|
|
8801
|
-
|
|
8807
|
+
Te as n,
|
|
8802
8808
|
jc as o,
|
|
8803
8809
|
Zt as p,
|
|
8804
8810
|
Hc as q,
|