@arcgis/charts-components 5.2.1 → 5.2.3
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/{R2KUXPHO.js → 2DHOWU74.js} +1 -1
- package/dist/cdn/{E23L4XK5.js → 2ITRCZ43.js} +1 -1
- package/dist/cdn/{DGIMOH47.js → 3PL6X4PU.js} +1 -1
- package/dist/cdn/{KVSF4VV2.js → 4DK44E5O.js} +1 -1
- package/dist/cdn/{MVOEDTNZ.js → 4QJLNQVP.js} +1 -1
- package/dist/cdn/{HZWUKCDX.js → 4RUGZX4B.js} +1 -1
- package/dist/cdn/{R5ZE6LNV.js → 4T63TCAU.js} +1 -1
- package/dist/cdn/{MKSX2OHA.js → 5DHIEIKM.js} +1 -1
- package/dist/cdn/{Q62Q3AOS.js → 5E24TRTV.js} +1 -1
- package/dist/cdn/{LWTZQ6ZK.js → 5J6IA3AT.js} +1 -1
- package/dist/cdn/{WSKCMADP.js → 5NXG23F4.js} +1 -1
- package/dist/cdn/{GXE2UASQ.js → 6HMFCTSE.js} +1 -1
- package/dist/cdn/{5XHNYAC6.js → 6KJ3ATLC.js} +1 -1
- package/dist/cdn/{4KNHB3QB.js → 6MCRBGLJ.js} +1 -1
- package/dist/cdn/{ZYO5HXYN.js → 6RGFJYNO.js} +1 -1
- package/dist/cdn/{6DU55O6U.js → 6RZYKXDA.js} +1 -1
- package/dist/cdn/{6M4CVZWC.js → 75HWWMEG.js} +1 -1
- package/dist/cdn/{NPUQMXEL.js → 76U7GN3L.js} +1 -1
- package/dist/cdn/{SKITJFGE.js → 76YX2DGE.js} +1 -1
- package/dist/cdn/{ZPRNS5RI.js → 7GB2Q6OS.js} +1 -1
- package/dist/cdn/{2BZ3R323.js → 7QKHK4XD.js} +1 -1
- package/dist/cdn/{GJN3J5S6.js → A34FRLBP.js} +1 -1
- package/dist/cdn/{SBEGXTPK.js → AWBGXQRZ.js} +1 -1
- package/dist/cdn/{V3AR6XAZ.js → AZP4RGFP.js} +1 -1
- package/dist/cdn/{C4PIFSYE.js → BCHANC26.js} +1 -1
- package/dist/cdn/{4G65VRW2.js → BIBN2SQU.js} +1 -1
- package/dist/cdn/{GWRFPEEX.js → BTNU6VLH.js} +1 -1
- package/dist/cdn/{KYYUQVT5.js → BTSCZNHG.js} +1 -1
- package/dist/cdn/{V6BCHIRS.js → CDRFXW4A.js} +1 -1
- package/dist/cdn/{H2LZVTYL.js → CR4MU3W6.js} +1 -1
- package/dist/cdn/{2MBO3UD6.js → EFVPTYFY.js} +1 -1
- package/dist/cdn/{YDX3PDEX.js → EQWLGHXR.js} +1 -1
- package/dist/cdn/{EPGCX7RW.js → F2WF5LOK.js} +1 -1
- package/dist/cdn/{Z2IUM7DK.js → F55Y2EPO.js} +1 -1
- package/dist/cdn/{72SVWOPY.js → F6JR4B5W.js} +1 -1
- package/dist/cdn/{ZITX4BFR.js → FF6SXLVE.js} +1 -1
- package/dist/cdn/{U5OSD2UX.js → FJDJEGBB.js} +1 -1
- package/dist/cdn/{NST6EEVZ.js → FTUDHR5D.js} +1 -1
- package/dist/cdn/{HY3TC2V7.js → FXHGYIYN.js} +1 -1
- package/dist/cdn/{WTXNKC2H.js → GXNMIY2V.js} +2 -2
- package/dist/cdn/{BLGYF7UQ.js → H6ZF2I7S.js} +1 -1
- package/dist/cdn/{E4OXLX4I.js → HUPBTTYO.js} +1 -1
- package/dist/cdn/I3AJHPG3.js +2 -0
- package/dist/cdn/{EQUXJPPN.js → I5JXNSMW.js} +1 -1
- package/dist/cdn/{OOWIBXPF.js → IVJNEGWU.js} +1 -1
- package/dist/cdn/{WLHHTU7Y.js → JUBE7XD2.js} +1 -1
- package/dist/cdn/{7OMANLDX.js → JV4NMPZ4.js} +1 -1
- package/dist/cdn/{XSV3OOUO.js → JYANGPFS.js} +1 -1
- package/dist/cdn/{3QZZP5B2.js → JZU4SOIS.js} +1 -1
- package/dist/cdn/{KUYJY3M3.js → KHIAPS7F.js} +1 -1
- package/dist/cdn/{ZO3OZ34B.js → KMSUWCI6.js} +1 -1
- package/dist/cdn/{CNG26GJ2.js → KOO5EZH6.js} +1 -1
- package/dist/cdn/{SUHY3KRM.js → KTFNKN5F.js} +1 -1
- package/dist/cdn/{3REZP6DD.js → LRSAWJXU.js} +1 -1
- package/dist/cdn/{IEGC5XQD.js → LU75T4XH.js} +1 -1
- package/dist/cdn/{TGSLVQ6J.js → NAS5U23Y.js} +1 -1
- package/dist/cdn/{6726O5CR.js → NIJPEYBN.js} +1 -1
- package/dist/cdn/{N4E2CELH.js → NKN7AFL4.js} +1 -1
- package/dist/cdn/{IPHIYEWD.js → NOMIOWXZ.js} +1 -1
- package/dist/cdn/{6FHVLQBP.js → NPYUDYKA.js} +1 -1
- package/dist/cdn/{YINDFEQ3.js → NWJR42GU.js} +1 -1
- package/dist/cdn/{LAETAAAC.js → OGAZTEWM.js} +1 -1
- package/dist/cdn/{AWPCC57E.js → OWLTOYDG.js} +1 -1
- package/dist/cdn/{NU42LY2P.js → P657CUK2.js} +1 -1
- package/dist/cdn/{44OIF7FS.js → PMXISOZT.js} +1 -1
- package/dist/cdn/{5KYJNOUA.js → QCKR4OTA.js} +1 -1
- package/dist/cdn/{PVLNBGYV.js → R55EYC4S.js} +17 -17
- package/dist/cdn/{O2AIMGBR.js → RKIFK4DG.js} +1 -1
- package/dist/cdn/{HQJCNLVD.js → RW3ON36X.js} +1 -1
- package/dist/cdn/{HJNZHZEY.js → RW7RIOD3.js} +1 -1
- package/dist/cdn/{LBKKWTFX.js → RZAKMRDK.js} +1 -1
- package/dist/cdn/{7DOW74JC.js → SHHHKG57.js} +1 -1
- package/dist/cdn/{G3DL43CH.js → SSYS6VT2.js} +1 -1
- package/dist/cdn/{PLFQBO3L.js → TCH4J3F6.js} +1 -1
- package/dist/cdn/{GMECUMD6.js → TDHOHWAC.js} +1 -1
- package/dist/cdn/{STL5NY64.js → TFIU4IUB.js} +1 -1
- package/dist/cdn/{7PZA76IS.js → TG7JNJCB.js} +1 -1
- package/dist/cdn/{D645IYGO.js → TQK5XUSK.js} +1 -1
- package/dist/cdn/{GY3R4BDA.js → TRFGSCB4.js} +1 -1
- package/dist/cdn/{GK2CDJ4H.js → TT5HDSP6.js} +1 -1
- package/dist/cdn/{PQ2EO3DG.js → UA55OQF3.js} +1 -1
- package/dist/cdn/{U2S4KXBF.js → UHJ7VTFD.js} +1 -1
- package/dist/cdn/{TUOW2D7C.js → ULANMCAP.js} +1 -1
- package/dist/cdn/{W67ERLKR.js → UY3IN55T.js} +1 -1
- package/dist/cdn/{3Z3HDTXQ.js → UYQTXFCW.js} +1 -1
- package/dist/cdn/{YOBZF6Z3.js → VKNN66QE.js} +1 -1
- package/dist/cdn/{AE6IPFRO.js → VLRPMYSL.js} +1 -1
- package/dist/cdn/{XPN52BTY.js → W3QA6ZI7.js} +1 -1
- package/dist/cdn/{GG6H4ESM.js → WA5VS7K6.js} +1 -1
- package/dist/cdn/{G4564DXR.js → WUP5BSUX.js} +1 -1
- package/dist/cdn/{BTI6KUR4.js → X47VAXVY.js} +1 -1
- package/dist/cdn/{WJFNHBHR.js → XK5OMNAS.js} +1 -1
- package/dist/cdn/{VKNFKI7T.js → YGO7XLM2.js} +1 -1
- package/dist/cdn/{FS5YJVDE.js → YMIPGKRK.js} +1 -1
- package/dist/cdn/{QPKFMEZG.js → YN5ITGQJ.js} +1 -1
- package/dist/cdn/{DGLCAG7B.js → YTW4BANB.js} +1 -1
- package/dist/cdn/{4GHSP5KY.js → ZGN6WYDJ.js} +1 -1
- package/dist/cdn/{4PJ37VNO.js → ZNE4F3GH.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/index.js +340 -340
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/serial-chart-data.js +2 -2
- package/dist/components/arcgis-chart/customElement.js +1975 -1974
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +2 -6
- 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 +6 -6
- package/dist/cdn/4J32HZ7L.js +0 -2
package/dist/chunks/index.js
CHANGED
|
@@ -729,7 +729,7 @@ function Un(t) {
|
|
|
729
729
|
}
|
|
730
730
|
return f;
|
|
731
731
|
}
|
|
732
|
-
const
|
|
732
|
+
const S = {
|
|
733
733
|
// chart with no specific subtype
|
|
734
734
|
NonSpecific: "nonSpecific",
|
|
735
735
|
// non aggregated bar/line chart
|
|
@@ -950,12 +950,12 @@ async function ss(t) {
|
|
|
950
950
|
let m;
|
|
951
951
|
const g = j(e), p = pe(g);
|
|
952
952
|
if (p) {
|
|
953
|
-
const
|
|
953
|
+
const F = { where: J([l, p.definitionExpression]) }, b = { query: F, signal: o }, T = it(u)?.extent?.toJSON();
|
|
954
954
|
if (T !== void 0) {
|
|
955
955
|
const x = ns(d), { xmin: v, ymin: A, xmax: N, ymax: L } = T;
|
|
956
|
-
|
|
956
|
+
F.geometryType = "esriGeometryEnvelope", F.geometry = `${v},${A},${N},${L}`, c !== void 0 && (F.distance = c.toString()), x !== void 0 && (F.units = x, u?.spatialReference?.wkid != null && (F.inSR = u.spatialReference.wkid.toString()));
|
|
957
957
|
}
|
|
958
|
-
f && (
|
|
958
|
+
f && (F.time = `${f[0]},${f[1]}`);
|
|
959
959
|
const C = `${p.url}/${p.layerId}/queryAnalytic?f=${r}&dataFormat=${a}&outAnalytics=${n}`;
|
|
960
960
|
try {
|
|
961
961
|
m = (await kt(C, b)).data?.features?.[0]?.attributes;
|
|
@@ -991,7 +991,7 @@ async function os(t) {
|
|
|
991
991
|
let u;
|
|
992
992
|
const c = j(i), d = is(c);
|
|
993
993
|
if (d && i && "queryAttributeBins" in i && i.queryAttributeBins) {
|
|
994
|
-
const { x: f, y: m, xTemporalBinning: g, yTemporalBinning: p } = e.series[0], { outTimeZone: y, firstDayOfWeek:
|
|
994
|
+
const { x: f, y: m, xTemporalBinning: g, yTemporalBinning: p } = e.series[0], { outTimeZone: y, firstDayOfWeek: F, includeLeapDay: b } = e, T = lu({
|
|
995
995
|
queryObject: i,
|
|
996
996
|
queryConfig: r,
|
|
997
997
|
x: f,
|
|
@@ -999,7 +999,7 @@ async function os(t) {
|
|
|
999
999
|
xTemporalBinning: g,
|
|
1000
1000
|
yTemporalBinning: p,
|
|
1001
1001
|
configTimeZone: y,
|
|
1002
|
-
firstDayOfWeek:
|
|
1002
|
+
firstDayOfWeek: F,
|
|
1003
1003
|
includeLeapDay: b,
|
|
1004
1004
|
view: a,
|
|
1005
1005
|
syncViewTimeZone: n,
|
|
@@ -1094,7 +1094,7 @@ async function us(t) {
|
|
|
1094
1094
|
queryConfig: e,
|
|
1095
1095
|
returnStatisticsAggregatedIds: !1
|
|
1096
1096
|
});
|
|
1097
|
-
d.outFields = n || a ===
|
|
1097
|
+
d.outFields = n || a === S.PieNoAggregation || a === S.BarAndLineNoAggregation || a === S.BarAndLineSplitByNoAggregation ? [c ? u : "*"] : [i], d.outFields?.[0] === i && (d.returnDistinctValues = !0), d.outStatistics = null, d.groupByFieldsForStatistics = null, d.orderByFields = null;
|
|
1098
1098
|
try {
|
|
1099
1099
|
o = await r.queryFeatureCount(d, { signal: s });
|
|
1100
1100
|
} catch {
|
|
@@ -1205,8 +1205,8 @@ async function xe(t) {
|
|
|
1205
1205
|
const d = j(e), f = a ?? 1, m = Va(e, d);
|
|
1206
1206
|
if (n !== !0 && f > m && d?.capabilities?.query.supportsPagination) {
|
|
1207
1207
|
let g = 0, p = 0;
|
|
1208
|
-
const y = Math.ceil(f / m),
|
|
1209
|
-
for (; p <
|
|
1208
|
+
const y = Math.ceil(f / m), F = Math.ceil(y / _.maxParallelRequests), b = [];
|
|
1209
|
+
for (; p < F; ) {
|
|
1210
1210
|
g = p * _.maxParallelRequests * m;
|
|
1211
1211
|
const C = ds({
|
|
1212
1212
|
queryConfig: { ...i, start: g },
|
|
@@ -1335,7 +1335,7 @@ async function St(t) {
|
|
|
1335
1335
|
// state, using the `returnDistinctValues` on a specific field.
|
|
1336
1336
|
// Refer to: https://devtopia.esri.com/WebGIS/arcgis-charts/issues/8208
|
|
1337
1337
|
num: n ?? s?.maxBarThreePlusSeriesCountTotal ?? s?.serialChart?.elements
|
|
1338
|
-
},
|
|
1338
|
+
}, F = await xe({
|
|
1339
1339
|
queryObject: e,
|
|
1340
1340
|
featureCount: 1,
|
|
1341
1341
|
// skipping the count
|
|
@@ -1347,7 +1347,7 @@ async function St(t) {
|
|
|
1347
1347
|
});
|
|
1348
1348
|
return Array.from(
|
|
1349
1349
|
new Set(
|
|
1350
|
-
|
|
1350
|
+
F.map((T) => T.attributes[c ? a : r])
|
|
1351
1351
|
)
|
|
1352
1352
|
).sort((T, C) => typeof T == "string" && typeof C == "string" ? T.localeCompare(C) : Number(T) - Number(C));
|
|
1353
1353
|
}
|
|
@@ -1448,9 +1448,9 @@ function vt(t) {
|
|
|
1448
1448
|
chartConfig: u
|
|
1449
1449
|
} = t;
|
|
1450
1450
|
if (e !== void 0 && e.length > 1) {
|
|
1451
|
-
const c = i === oe.Descending && a !== !0, d = G(u.series) ===
|
|
1451
|
+
const c = i === oe.Descending && a !== !0, d = G(u.series) === S.BarAndLineSplitByNoAggregation, f = u.series?.[0], m = d ? re(f?.query?.where) : "", g = d && f !== void 0 && "y" in f && typeof f.y == "string" ? f.y : "";
|
|
1452
1452
|
e.sort((p, y) => {
|
|
1453
|
-
let
|
|
1453
|
+
let F = 0, b = m !== "" && g !== "" ? (
|
|
1454
1454
|
// using String(dataItems[splitByField]) to preserve both null and undefined values like y_null and y_undefined
|
|
1455
1455
|
p[`${g}_${String(p[m])}`]
|
|
1456
1456
|
) : p[r];
|
|
@@ -1469,7 +1469,7 @@ function vt(t) {
|
|
|
1469
1469
|
specificField: o ? B.xAxisField : B.originalXValue
|
|
1470
1470
|
})), n === !0 && c && s === !0 && (b = Number.isNaN(Number.parseFloat(`${b?.toString()}`)) ? b : Number.parseFloat(b), T = Number.isNaN(Number.parseFloat(`${T?.toString()}`)) ? T : Number.parseFloat(T));
|
|
1471
1471
|
const C = p[B.originalXValue] === null || p[Vt.defaultGroupOfSlicesId] === !0, x = y[B.originalXValue] === null || y[Vt.defaultGroupOfSlicesId] === !0;
|
|
1472
|
-
return C && !x ?
|
|
1472
|
+
return C && !x ? F = 1 : !C && x ? F = -1 : typeof b == "string" && typeof T == "string" ? (F = b.localeCompare(T, void 0, { numeric: !0 }), c && (F *= -1)) : b === void 0 ? F = c ? -1 : 1 : T === void 0 ? F = c ? 1 : -1 : b !== null && T !== null && (b > T ? F = c ? -1 : 1 : b < T && (F = c ? 1 : -1)), F;
|
|
1473
1473
|
});
|
|
1474
1474
|
}
|
|
1475
1475
|
}
|
|
@@ -1554,7 +1554,7 @@ function Ni(t, e) {
|
|
|
1554
1554
|
maxLineThreePlusSeriesCountTotal: g,
|
|
1555
1555
|
maxPieChartSliceCountTotal: p,
|
|
1556
1556
|
maxGaugeByFeaturesLimit: y,
|
|
1557
|
-
maxRadarChartSeriesCount:
|
|
1557
|
+
maxRadarChartSeriesCount: F,
|
|
1558
1558
|
maxRadarUniqueSeriesCountTotal: b,
|
|
1559
1559
|
maxRadarTwoSeriesCountPerSeries: T,
|
|
1560
1560
|
maxRadarTwoSeriesCountTotal: C,
|
|
@@ -1591,7 +1591,7 @@ function Ni(t, e) {
|
|
|
1591
1591
|
})));
|
|
1592
1592
|
break;
|
|
1593
1593
|
case h.RadarSeries:
|
|
1594
|
-
P <= (
|
|
1594
|
+
P <= (F ?? N) && (P === 1 ? i = b ?? L : P === 2 ? i = lt({
|
|
1595
1595
|
countTotal: C ?? L,
|
|
1596
1596
|
countPerSeries: T,
|
|
1597
1597
|
numberOfSeries: P
|
|
@@ -1616,7 +1616,7 @@ function Ni(t, e) {
|
|
|
1616
1616
|
// handled through the number of bins
|
|
1617
1617
|
case h.BoxPlotSeries:
|
|
1618
1618
|
}
|
|
1619
|
-
return (E ===
|
|
1619
|
+
return (E === S.BarAndLineNoAggregation || E === S.BarAndLineMultiFields) && i !== void 0 && (i = Math.ceil(i / P)), i;
|
|
1620
1620
|
}
|
|
1621
1621
|
function Zi(t, e) {
|
|
1622
1622
|
let i = t;
|
|
@@ -1723,11 +1723,11 @@ function df(t) {
|
|
|
1723
1723
|
}).filter((u) => u !== void 0), a;
|
|
1724
1724
|
}
|
|
1725
1725
|
function mi(t) {
|
|
1726
|
-
return t !==
|
|
1726
|
+
return t !== S.PieNoAggregation && t !== S.BarAndLineNoAggregation && t !== S.BarAndLineSplitByNoAggregation;
|
|
1727
1727
|
}
|
|
1728
1728
|
function Ts(t) {
|
|
1729
1729
|
const e = G(t.series);
|
|
1730
|
-
return e ===
|
|
1730
|
+
return e === S.BarAndLineFromFields || e === S.PieFromFields || e === S.BoxPlotC1MonoField || e === S.BoxPlotC2MultiFields || e === S.BoxPlotC5MonoFieldAndSplitBy || e === S.BoxPlotC6MultiFieldsAndSplitBy;
|
|
1731
1731
|
}
|
|
1732
1732
|
function Ke(t) {
|
|
1733
1733
|
return me(t) ? t?.showMean ?? !1 : !1;
|
|
@@ -1866,7 +1866,7 @@ async function Os(t) {
|
|
|
1866
1866
|
typeKey: g,
|
|
1867
1867
|
typeValue: p,
|
|
1868
1868
|
fieldValue: y,
|
|
1869
|
-
slopePropertyList:
|
|
1869
|
+
slopePropertyList: F,
|
|
1870
1870
|
interceptPropertyList: b,
|
|
1871
1871
|
r2PropertyList: T
|
|
1872
1872
|
} = ws, C = `[{"${g}": "${p}", "${y}":"${l},${u}"}]`, x = await ss({
|
|
@@ -1880,7 +1880,7 @@ async function Os(t) {
|
|
|
1880
1880
|
});
|
|
1881
1881
|
if (x !== void 0) {
|
|
1882
1882
|
let v = Number.NaN, A = Number.NaN;
|
|
1883
|
-
const { expr: N } = qt(x,
|
|
1883
|
+
const { expr: N } = qt(x, F), { expr: L } = qt(x, b), { expr: M } = qt(x, T);
|
|
1884
1884
|
N !== void 0 && Number.isFinite(x[N]) && (v = x[N]), L !== void 0 && Number.isFinite(x[L]) && (A = x[L]), M !== void 0 && Number.isFinite(x[M]) && (c = x[M]);
|
|
1885
1885
|
const { dataContextXMinField: w, dataContextXMaxField: D, dataContextYMinField: I, dataContextYMaxField: P } = B.scatterplotAggregationFields, E = e.get(w) ?? Number.NaN, z = e.get(D) ?? Number.NaN, Q = e.get(I) ?? Number.NaN, q = e.get(P) ?? Number.NaN, X = (z - E) / 100;
|
|
1886
1886
|
let K = E - X, k = Number.NaN;
|
|
@@ -2001,7 +2001,7 @@ async function qs(t) {
|
|
|
2001
2001
|
chartConfig: e,
|
|
2002
2002
|
orderBy: oe.Ascending
|
|
2003
2003
|
});
|
|
2004
|
-
const p = /* @__PURE__ */ new Map(), { r2: y, trendLinePoints:
|
|
2004
|
+
const p = /* @__PURE__ */ new Map(), { r2: y, trendLinePoints: F } = s !== !1 ? await jr({
|
|
2005
2005
|
data: g,
|
|
2006
2006
|
statsMap: p,
|
|
2007
2007
|
queryConfig: i,
|
|
@@ -2010,7 +2010,7 @@ async function qs(t) {
|
|
|
2010
2010
|
errorStrings: o,
|
|
2011
2011
|
abortSignal: u
|
|
2012
2012
|
}) : B.scatterplotSeries;
|
|
2013
|
-
return { dataItems: g, r2: y, trendLinePoints:
|
|
2013
|
+
return { dataItems: g, r2: y, trendLinePoints: F };
|
|
2014
2014
|
}
|
|
2015
2015
|
const Vs = (t) => ({
|
|
2016
2016
|
x: t.series[0].x,
|
|
@@ -2373,9 +2373,9 @@ async function eo(t) {
|
|
|
2373
2373
|
const y = Qt(m, c);
|
|
2374
2374
|
if (y < 0)
|
|
2375
2375
|
throw new Error("Band ID not found for `${x}`.");
|
|
2376
|
-
let
|
|
2376
|
+
let F, b;
|
|
2377
2377
|
if (!a && (d === void 0 || d === te.None) && !(Ye(m) && At(m)) && f && Array.isArray(g.histograms) && g.histograms.length > y && g.histograms[y].size % f === 0 && Array.isArray(g.statistics) && g?.statistics?.length > y)
|
|
2378
|
-
|
|
2378
|
+
F = g.histograms[y], b = g.statistics[y];
|
|
2379
2379
|
else {
|
|
2380
2380
|
let T, C, x;
|
|
2381
2381
|
if (a && n)
|
|
@@ -2413,13 +2413,13 @@ async function eo(t) {
|
|
|
2413
2413
|
},
|
|
2414
2414
|
{ signal: l }
|
|
2415
2415
|
);
|
|
2416
|
-
b = N.statistics[0],
|
|
2416
|
+
b = N.statistics[0], F = N.histograms[0];
|
|
2417
2417
|
} catch (A) {
|
|
2418
2418
|
if (!Ti.isAbortError(A))
|
|
2419
2419
|
throw new ue(de.Default, "Failed to compute raster histogram.", A);
|
|
2420
2420
|
}
|
|
2421
2421
|
}
|
|
2422
|
-
return { histogram:
|
|
2422
|
+
return { histogram: F, statistics: b };
|
|
2423
2423
|
}
|
|
2424
2424
|
function to(t, e) {
|
|
2425
2425
|
const i = [], r = (t.max - t.min) / t.size;
|
|
@@ -2525,15 +2525,15 @@ function ao(t) {
|
|
|
2525
2525
|
} : void 0;
|
|
2526
2526
|
}
|
|
2527
2527
|
const ta = [
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2528
|
+
S.BarAndLineMonoField,
|
|
2529
|
+
S.BarAndLineMultiFields,
|
|
2530
|
+
S.PieNoAggregation,
|
|
2531
|
+
S.PieFromCategory,
|
|
2532
|
+
S.BoxPlotC3MonoFieldAndCategory,
|
|
2533
|
+
S.BoxPlotC4MultiFieldsAndCategory,
|
|
2534
|
+
S.BoxPlotC7MonoFieldAndCategoryAndSplitBy,
|
|
2535
|
+
S.BarAndLineNoAggregation,
|
|
2536
|
+
S.BarAndLineSplitByNoAggregation
|
|
2537
2537
|
], tr = 1e4, wt = 1e4;
|
|
2538
2538
|
function no(t = te.None, e) {
|
|
2539
2539
|
return t === te.None || t === te.Log && e > 0 || t === te.Sqrt && e >= 0;
|
|
@@ -2609,8 +2609,8 @@ async function lo(t) {
|
|
|
2609
2609
|
errorStrings: a,
|
|
2610
2610
|
abortKey: n,
|
|
2611
2611
|
abortSignal: s
|
|
2612
|
-
}),
|
|
2613
|
-
return { countExcludingNulls: b, countIncludingNulls:
|
|
2612
|
+
}), F = y.get(d) ?? Number.NaN, b = y.get(f) ?? Number.NaN, T = y.get(m) ?? Number.NaN, C = y.get(g) ?? Number.NaN;
|
|
2613
|
+
return { countExcludingNulls: b, countIncludingNulls: F, min: T, max: C };
|
|
2614
2614
|
}
|
|
2615
2615
|
async function co(t) {
|
|
2616
2616
|
const { queryConfig: e, chartConfig: i, queryObject: r, errorStrings: a, abortKey: n, abortSignal: s } = t, o = i.series[0], { x: l, dataTransformationType: u } = o;
|
|
@@ -2622,8 +2622,8 @@ async function co(t) {
|
|
|
2622
2622
|
errorStrings: a,
|
|
2623
2623
|
abortKey: n,
|
|
2624
2624
|
abortSignal: s
|
|
2625
|
-
}), p = no(u, m), y = f < 2 || m === g,
|
|
2626
|
-
return
|
|
2625
|
+
}), p = no(u, m), y = f < 2 || m === g, F = { ...e };
|
|
2626
|
+
return F.where = J([F.where, `${l} is not null`]), {
|
|
2627
2627
|
rawData: c,
|
|
2628
2628
|
dataCompatibleWithTransformation: p,
|
|
2629
2629
|
dataCountIncompatible: y,
|
|
@@ -2722,21 +2722,21 @@ async function po(t) {
|
|
|
2722
2722
|
queryConfig: i,
|
|
2723
2723
|
abortSignal: u
|
|
2724
2724
|
});
|
|
2725
|
-
let
|
|
2725
|
+
let F;
|
|
2726
2726
|
y.outStatisticTypes = { exclude: ["median"] };
|
|
2727
2727
|
try {
|
|
2728
|
-
|
|
2728
|
+
F = await Xi(y);
|
|
2729
2729
|
} catch (L) {
|
|
2730
2730
|
throw new ue(de.QueryFeaturesError, l.errors.queryError, L);
|
|
2731
2731
|
}
|
|
2732
2732
|
y.outStatisticTypes = { include: ["median"] };
|
|
2733
2733
|
try {
|
|
2734
2734
|
const L = await Xi(y);
|
|
2735
|
-
L?.median && (
|
|
2735
|
+
L?.median && (F.median = L.median);
|
|
2736
2736
|
} catch {
|
|
2737
2737
|
}
|
|
2738
|
-
|
|
2739
|
-
const { avg: b, count: T, stddev: C, min: x, max: v, sum: A, median: N } =
|
|
2738
|
+
F = uo(F);
|
|
2739
|
+
const { avg: b, count: T, stddev: C, min: x, max: v, sum: A, median: N } = F;
|
|
2740
2740
|
if (T === 0)
|
|
2741
2741
|
f = {
|
|
2742
2742
|
...ia(d)
|
|
@@ -3073,7 +3073,7 @@ function Kf(t) {
|
|
|
3073
3073
|
let f = c.errors.defaultInvalidChart, m;
|
|
3074
3074
|
const g = new Intl.NumberFormat(o), p = Qe(i), {
|
|
3075
3075
|
maxCategoryCount: y,
|
|
3076
|
-
serialChart: { categories:
|
|
3076
|
+
serialChart: { categories: F }
|
|
3077
3077
|
} = p;
|
|
3078
3078
|
let b = c.modalHeaders.invalidChart;
|
|
3079
3079
|
switch (e) {
|
|
@@ -3219,11 +3219,11 @@ function Kf(t) {
|
|
|
3219
3219
|
break;
|
|
3220
3220
|
case W.BadData:
|
|
3221
3221
|
}
|
|
3222
|
-
if (f === c.errors.defaultInvalidChart && (e === W.BarElementExceedsLimit || e === W.LineChartExceedsLimit || e === W.RadarChartExceedsLimit || e === W.HeatChartExceedsLimit || e === W.PieChartExceedsLimit || e === W.GaugeExceedsLimit || e === W.BoxPlotExceedsLimit) && typeof r == "number" && typeof a == "number" && r / a > (y ??
|
|
3222
|
+
if (f === c.errors.defaultInvalidChart && (e === W.BarElementExceedsLimit || e === W.LineChartExceedsLimit || e === W.RadarChartExceedsLimit || e === W.HeatChartExceedsLimit || e === W.PieChartExceedsLimit || e === W.GaugeExceedsLimit || e === W.BoxPlotExceedsLimit) && typeof r == "number" && typeof a == "number" && r / a > (y ?? F)) {
|
|
3223
3223
|
const C = r / a;
|
|
3224
3224
|
f = Ce(c.errors.categoryCountCannotExceedLimit, {
|
|
3225
3225
|
categoryCount: g.format(C),
|
|
3226
|
-
maxCategoryCount: g.format(y ??
|
|
3226
|
+
maxCategoryCount: g.format(y ?? F)
|
|
3227
3227
|
});
|
|
3228
3228
|
}
|
|
3229
3229
|
return {
|
|
@@ -3270,20 +3270,20 @@ function wi(t) {
|
|
|
3270
3270
|
showOutliers: !1,
|
|
3271
3271
|
standardizeValues: !0
|
|
3272
3272
|
};
|
|
3273
|
-
let
|
|
3274
|
-
if (o[
|
|
3273
|
+
let F = se(l);
|
|
3274
|
+
if (o[F] = yi({ mean: d, stdDev: f, value: y }), m === R.Min || m === R.Max) {
|
|
3275
3275
|
l = {
|
|
3276
3276
|
...l,
|
|
3277
3277
|
key: m,
|
|
3278
3278
|
showOutliers: !0,
|
|
3279
3279
|
standardizeValues: !0
|
|
3280
|
-
},
|
|
3280
|
+
}, F = se(l), l = {
|
|
3281
3281
|
...l,
|
|
3282
3282
|
standardizeValues: !1,
|
|
3283
3283
|
splitByValue: a
|
|
3284
3284
|
};
|
|
3285
3285
|
const b = se(l);
|
|
3286
|
-
y = Number(e[b]), Number.isFinite(y) && (o[
|
|
3286
|
+
y = Number(e[b]), Number.isFinite(y) && (o[F] = yi({
|
|
3287
3287
|
mean: d,
|
|
3288
3288
|
stdDev: f,
|
|
3289
3289
|
value: y
|
|
@@ -3300,7 +3300,7 @@ function Lo(t) {
|
|
|
3300
3300
|
Object.keys(a).forEach((u) => {
|
|
3301
3301
|
u.startsWith(o) ? l[u.replace(`${o}_`, "")] = a[u] : u.includes(B.rendererSymbolField) && (l[u] = a[u]), l[B.boxPlot.boxPlotCategory] = o, r && (l = wi({
|
|
3302
3302
|
dataItem: l,
|
|
3303
|
-
chartSubType:
|
|
3303
|
+
chartSubType: S.BoxPlotC2MultiFields
|
|
3304
3304
|
}));
|
|
3305
3305
|
}), n.set(o, l);
|
|
3306
3306
|
}), Array.from(n.values());
|
|
@@ -3328,7 +3328,7 @@ function Po(t) {
|
|
|
3328
3328
|
f.startsWith(`${c}_`) ? d[`${u}_${f.replace(`${c}_`, "")}`] = m : f.includes(B.rendererSymbolField) || f === _.uniqueIds ? d[`${f}_${u}`] = m : f === B.boxPlot.boxPlotMeanLineMarkerId && (d[f] = l[f]);
|
|
3329
3329
|
}), a && (d = wi({
|
|
3330
3330
|
dataItem: d,
|
|
3331
|
-
chartSubType:
|
|
3331
|
+
chartSubType: S.BoxPlotC6MultiFieldsAndSplitBy,
|
|
3332
3332
|
splitByValue: u,
|
|
3333
3333
|
meanPerField: n?.[mt(c, O.Average)],
|
|
3334
3334
|
stdDevPerField: n?.[mt(c, O.StandardDeviation)]
|
|
@@ -3345,7 +3345,7 @@ function Mo(t) {
|
|
|
3345
3345
|
i.forEach((o) => {
|
|
3346
3346
|
wi({
|
|
3347
3347
|
dataItem: s,
|
|
3348
|
-
chartSubType:
|
|
3348
|
+
chartSubType: S.BoxPlotC4MultiFieldsAndCategory,
|
|
3349
3349
|
y: o,
|
|
3350
3350
|
meanPerField: a?.[mt(o, O.Average)],
|
|
3351
3351
|
stdDevPerField: a?.[mt(o, O.StandardDeviation)]
|
|
@@ -3376,7 +3376,7 @@ function Io(t) {
|
|
|
3376
3376
|
}
|
|
3377
3377
|
function Oo(t, e) {
|
|
3378
3378
|
const { series: i } = t, r = i[0], { y: a } = r, n = G(t.series), s = {
|
|
3379
|
-
y: n ===
|
|
3379
|
+
y: n === S.BoxPlotC4MultiFieldsAndCategory ? a : void 0,
|
|
3380
3380
|
chartSubType: n
|
|
3381
3381
|
}, o = t.series.map((l) => {
|
|
3382
3382
|
let u = ce({
|
|
@@ -3437,20 +3437,20 @@ function ar(t) {
|
|
|
3437
3437
|
return l === "outliers" && o !== s ? d = `(${e}<${o} OR ${e}>${s})` : l === "alternativeData" && (o === s ? d = `(${e}=${o})` : d = `(${e}>=${o} AND ${e}<=${s})`), [u, c, d].filter((m) => m !== void 0).join(" AND ");
|
|
3438
3438
|
}
|
|
3439
3439
|
function oa(t) {
|
|
3440
|
-
const { data: e, yField: i, x: r, chartSubType: a, splitByField: n } = t, s = a ===
|
|
3440
|
+
const { data: e, yField: i, x: r, chartSubType: a, splitByField: n } = t, s = a === S.BoxPlotC1MonoField || a === S.BoxPlotC3MonoFieldAndCategory || a === S.BoxPlotC5MonoFieldAndSplitBy || a === S.BoxPlotC7MonoFieldAndCategoryAndSplitBy ? void 0 : i, o = ut(s), l = [], u = [], { maxOperandsPerWhereClause: c } = Jt();
|
|
3441
3441
|
let d = [], f = [], m = 1;
|
|
3442
3442
|
return e.forEach((g, p) => {
|
|
3443
|
-
const { outlierMinThreshold: y, outlierMaxThreshold:
|
|
3444
|
-
if (typeof y == "number" && typeof
|
|
3443
|
+
const { outlierMinThreshold: y, outlierMaxThreshold: F } = Do(g, o);
|
|
3444
|
+
if (typeof y == "number" && typeof F == "number") {
|
|
3445
3445
|
const b = {
|
|
3446
3446
|
yField: i,
|
|
3447
3447
|
outlierMinThreshold: y,
|
|
3448
|
-
outlierMaxThreshold:
|
|
3448
|
+
outlierMaxThreshold: F
|
|
3449
3449
|
};
|
|
3450
|
-
if ((a ===
|
|
3450
|
+
if ((a === S.BoxPlotC3MonoFieldAndCategory || a === S.BoxPlotC4MultiFieldsAndCategory || a === S.BoxPlotC7MonoFieldAndCategoryAndSplitBy) && r !== void 0 && r in g && (b.xField = r, b.xValue = Ai({
|
|
3451
3451
|
value: g[r],
|
|
3452
3452
|
dataContext: g
|
|
3453
|
-
})), (a ===
|
|
3453
|
+
})), (a === S.BoxPlotC5MonoFieldAndSplitBy || a === S.BoxPlotC6MultiFieldsAndSplitBy || a === S.BoxPlotC7MonoFieldAndCategoryAndSplitBy) && n !== void 0 && n in g) {
|
|
3454
3454
|
const T = g[n];
|
|
3455
3455
|
(typeof T == "string" || typeof T == "number" || T instanceof Date || T === null) && (b.splitByField = n, b.splitByValue = T);
|
|
3456
3456
|
}
|
|
@@ -3464,12 +3464,12 @@ function Eo(t) {
|
|
|
3464
3464
|
let l = s?.[mt(n, O.Average)], u = s?.[mt(n, O.StandardDeviation)];
|
|
3465
3465
|
if (l === void 0 && u === void 0)
|
|
3466
3466
|
switch (r) {
|
|
3467
|
-
case
|
|
3467
|
+
case S.BoxPlotC2MultiFields: {
|
|
3468
3468
|
const c = ut(n), d = e[0];
|
|
3469
3469
|
l = Number(d[c[R.Average]]), u = Number(d[c[R.StandardDeviation]]);
|
|
3470
3470
|
break;
|
|
3471
3471
|
}
|
|
3472
|
-
case
|
|
3472
|
+
case S.BoxPlotC4MultiFieldsAndCategory: {
|
|
3473
3473
|
const c = e.find((d) => d[a] === i[a]);
|
|
3474
3474
|
if (c !== void 0) {
|
|
3475
3475
|
const d = ut(n);
|
|
@@ -3477,7 +3477,7 @@ function Eo(t) {
|
|
|
3477
3477
|
}
|
|
3478
3478
|
break;
|
|
3479
3479
|
}
|
|
3480
|
-
case
|
|
3480
|
+
case S.BoxPlotC6MultiFieldsAndSplitBy: {
|
|
3481
3481
|
const c = e.find((d) => d[o] === i[o]);
|
|
3482
3482
|
if (c !== void 0) {
|
|
3483
3483
|
const d = ut(n);
|
|
@@ -3527,9 +3527,9 @@ async function Ro(t) {
|
|
|
3527
3527
|
}
|
|
3528
3528
|
}
|
|
3529
3529
|
}
|
|
3530
|
-
const
|
|
3531
|
-
for (let T = 0; T <
|
|
3532
|
-
const C =
|
|
3530
|
+
const F = await Promise.all(y), b = /* @__PURE__ */ new Map();
|
|
3531
|
+
for (let T = 0; T < F.length; T += 1) {
|
|
3532
|
+
const C = F[T], x = p[T];
|
|
3533
3533
|
C.forEach((v) => {
|
|
3534
3534
|
const A = { ...v.attributes };
|
|
3535
3535
|
if (A[x] !== void 0) {
|
|
@@ -3539,15 +3539,15 @@ async function Ro(t) {
|
|
|
3539
3539
|
chartSubType: u
|
|
3540
3540
|
};
|
|
3541
3541
|
switch (u) {
|
|
3542
|
-
case
|
|
3543
|
-
case
|
|
3544
|
-
case
|
|
3542
|
+
case S.BoxPlotC5MonoFieldAndSplitBy:
|
|
3543
|
+
case S.BoxPlotC6MultiFieldsAndSplitBy:
|
|
3544
|
+
case S.BoxPlotC7MonoFieldAndCategoryAndSplitBy:
|
|
3545
3545
|
N = {
|
|
3546
3546
|
...N,
|
|
3547
3547
|
splitByValue: A[f]
|
|
3548
3548
|
};
|
|
3549
3549
|
break;
|
|
3550
|
-
case
|
|
3550
|
+
case S.BoxPlotC4MultiFieldsAndCategory:
|
|
3551
3551
|
N = {
|
|
3552
3552
|
...N,
|
|
3553
3553
|
y: x
|
|
@@ -3598,14 +3598,14 @@ async function qo(t) {
|
|
|
3598
3598
|
abortSignal: u
|
|
3599
3599
|
} = t;
|
|
3600
3600
|
let c = [];
|
|
3601
|
-
const { series: d, showMean: f } = n, m = Ei({ showMean: f, seriesConfig: d }), g = G(d), p = He(n), { x: y } = p,
|
|
3601
|
+
const { series: d, showMean: f } = n, m = Ei({ showMean: f, seriesConfig: d }), g = G(d), p = He(n), { x: y } = p, F = re(p.query?.where), b = [];
|
|
3602
3602
|
for (let C = 0; C < m.length; C += 1) {
|
|
3603
3603
|
const x = m[C], { dataWithoutOutliersFilterBatches: v } = oa({
|
|
3604
3604
|
data: e,
|
|
3605
3605
|
yField: x,
|
|
3606
3606
|
x: y,
|
|
3607
3607
|
chartSubType: g,
|
|
3608
|
-
splitByField:
|
|
3608
|
+
splitByField: F
|
|
3609
3609
|
});
|
|
3610
3610
|
for (let A = 0; A < v.length; A += 1) {
|
|
3611
3611
|
const N = v[A], L = {
|
|
@@ -3636,16 +3636,16 @@ async function qo(t) {
|
|
|
3636
3636
|
const T = await Promise.all(b);
|
|
3637
3637
|
for (let C = 0; C < T.length; C += 1)
|
|
3638
3638
|
c.push(...T[C]);
|
|
3639
|
-
return g !==
|
|
3639
|
+
return g !== S.BoxPlotC7MonoFieldAndCategoryAndSplitBy && g !== S.BoxPlotC1MonoField && (c = Bt({
|
|
3640
3640
|
data: c,
|
|
3641
|
-
x:
|
|
3641
|
+
x: F !== void 0 && F !== "" ? F : y
|
|
3642
3642
|
})), c;
|
|
3643
3643
|
}
|
|
3644
3644
|
async function Vo(t) {
|
|
3645
3645
|
const { queryObject: e, uniqueQuery: i, chartConfig: r, errorStrings: a, abortKey: n, abortSignal: s } = t;
|
|
3646
3646
|
let o;
|
|
3647
3647
|
const { series: l, showMean: u } = r, c = G(l);
|
|
3648
|
-
if (c ===
|
|
3648
|
+
if (c === S.BoxPlotC4MultiFieldsAndCategory || c === S.BoxPlotC6MultiFieldsAndSplitBy) {
|
|
3649
3649
|
const d = Ei({ showMean: u, seriesConfig: l }), f = {
|
|
3650
3650
|
...i
|
|
3651
3651
|
};
|
|
@@ -3696,17 +3696,17 @@ function la(t) {
|
|
|
3696
3696
|
if (i?.[0] !== void 0) {
|
|
3697
3697
|
const f = re(o.query?.where);
|
|
3698
3698
|
switch (l) {
|
|
3699
|
-
case
|
|
3699
|
+
case S.BoxPlotC1MonoField:
|
|
3700
3700
|
d[0][B.boxPlot.boxPlotCategory] = c[0];
|
|
3701
3701
|
break;
|
|
3702
|
-
case
|
|
3702
|
+
case S.BoxPlotC2MultiFields:
|
|
3703
3703
|
d = Lo({
|
|
3704
3704
|
data: i,
|
|
3705
3705
|
yList: c,
|
|
3706
3706
|
calculateZScore: r
|
|
3707
3707
|
});
|
|
3708
3708
|
break;
|
|
3709
|
-
case
|
|
3709
|
+
case S.BoxPlotC4MultiFieldsAndCategory:
|
|
3710
3710
|
d = Mo({
|
|
3711
3711
|
data: i,
|
|
3712
3712
|
yList: c,
|
|
@@ -3714,7 +3714,7 @@ function la(t) {
|
|
|
3714
3714
|
calculateZScore: r
|
|
3715
3715
|
});
|
|
3716
3716
|
break;
|
|
3717
|
-
case
|
|
3717
|
+
case S.BoxPlotC5MonoFieldAndSplitBy:
|
|
3718
3718
|
d = wo({
|
|
3719
3719
|
data: i,
|
|
3720
3720
|
splitByField: f,
|
|
@@ -3722,7 +3722,7 @@ function la(t) {
|
|
|
3722
3722
|
// there's only one `y` value for that query type
|
|
3723
3723
|
});
|
|
3724
3724
|
break;
|
|
3725
|
-
case
|
|
3725
|
+
case S.BoxPlotC6MultiFieldsAndSplitBy:
|
|
3726
3726
|
d = Po({
|
|
3727
3727
|
splitByField: f,
|
|
3728
3728
|
data: i,
|
|
@@ -3731,14 +3731,14 @@ function la(t) {
|
|
|
3731
3731
|
calculateZScore: r
|
|
3732
3732
|
});
|
|
3733
3733
|
break;
|
|
3734
|
-
case
|
|
3734
|
+
case S.BoxPlotC7MonoFieldAndCategoryAndSplitBy:
|
|
3735
3735
|
d = Io({
|
|
3736
3736
|
splitByField: f,
|
|
3737
3737
|
x: u,
|
|
3738
3738
|
data: i
|
|
3739
3739
|
});
|
|
3740
3740
|
break;
|
|
3741
|
-
case
|
|
3741
|
+
case S.BoxPlotC3MonoFieldAndCategory:
|
|
3742
3742
|
}
|
|
3743
3743
|
}
|
|
3744
3744
|
return Oo(e, d), d;
|
|
@@ -3879,7 +3879,7 @@ function Ht(t) {
|
|
|
3879
3879
|
else if (u?.[0] !== void 0 && e !== void 0 && e.length > 1) {
|
|
3880
3880
|
const { orderBy: c } = u[0];
|
|
3881
3881
|
let { sortingField: d } = u[0];
|
|
3882
|
-
const f = i.orderOptions?.data?.orderType === je.Category, m = u[0].preferLabel !== !1, g = s ===
|
|
3882
|
+
const f = i.orderOptions?.data?.orderType === je.Category, m = u[0].preferLabel !== !1, g = s === S.BarAndLineFromFields || s === S.PieFromFields || s === S.BoxPlotC2MultiFields || s === S.BoxPlotC6MultiFieldsAndSplitBy, p = g || o === h.PieSeries, y = s === S.PieNoAggregation || s === S.BarAndLineNoAggregation || s === S.BarAndLineSplitByNoAggregation;
|
|
3883
3883
|
if (f && p && (!m || (o === h.LineSeries || o === h.RadarSeries) && l === h.NumberAxisFormat) && (d = B.originalXValue), Array.isArray(c))
|
|
3884
3884
|
Ss({
|
|
3885
3885
|
arrayToSort: e,
|
|
@@ -3890,13 +3890,13 @@ function Ht(t) {
|
|
|
3890
3890
|
preferLabel: m
|
|
3891
3891
|
});
|
|
3892
3892
|
else {
|
|
3893
|
-
const
|
|
3893
|
+
const F = l === h.DateAxisFormat && f;
|
|
3894
3894
|
vt({
|
|
3895
3895
|
arrayToSort: e,
|
|
3896
3896
|
orderBy: c,
|
|
3897
3897
|
chartConfig: i,
|
|
3898
3898
|
sortingField: d,
|
|
3899
|
-
forceAscendingOrder:
|
|
3899
|
+
forceAscendingOrder: F,
|
|
3900
3900
|
isNonAggregated: y,
|
|
3901
3901
|
sortByCategory: f,
|
|
3902
3902
|
preferLabel: m,
|
|
@@ -3943,7 +3943,7 @@ async function im(t) {
|
|
|
3943
3943
|
const g = Nc(u, d?.renderer), p = Ic({
|
|
3944
3944
|
chartRenderer: l,
|
|
3945
3945
|
queryObject: i
|
|
3946
|
-
}), y = V(o),
|
|
3946
|
+
}), y = V(o), F = G(o), b = He(r), T = re(b.query?.where);
|
|
3947
3947
|
m = /* @__PURE__ */ new Map();
|
|
3948
3948
|
for (let C = 0; C < (y === h.HistogramSeries && e.length > 0 ? 1 : e.length); C += 1) {
|
|
3949
3949
|
const x = e[C], v = await Oc({
|
|
@@ -3952,7 +3952,7 @@ async function im(t) {
|
|
|
3952
3952
|
renderer: f,
|
|
3953
3953
|
rendererType: g,
|
|
3954
3954
|
rendererOrigin: c,
|
|
3955
|
-
chartSubType:
|
|
3955
|
+
chartSubType: F,
|
|
3956
3956
|
splitByField: T,
|
|
3957
3957
|
graphicTemplate: p,
|
|
3958
3958
|
mapAttributesToSymbol: m,
|
|
@@ -3985,8 +3985,8 @@ function Wo(t) {
|
|
|
3985
3985
|
H.valueField,
|
|
3986
3986
|
...Br
|
|
3987
3987
|
], d = (p, y) => {
|
|
3988
|
-
const
|
|
3989
|
-
|
|
3988
|
+
const F = y[B.originalXValue];
|
|
3989
|
+
F !== void 0 && a && (y[a] = F);
|
|
3990
3990
|
const b = y[B.originalYCategoryValue];
|
|
3991
3991
|
b !== void 0 && n && (y[n] = b), a && y[H.xField] !== void 0 && (y[a] = y[B.originalXValue] !== void 0 ? y[B.originalXValue] : y[H.xField], delete y[H.xField]), n && y[H.yField] !== void 0 && (y[n] = y[B.originalYCategoryValue] !== void 0 ? y[B.originalYCategoryValue] : y[H.yField], delete y[H.yField]), s && y[H.valueField] !== void 0 && (y[s] = y[H.valueField], delete y[H.valueField]);
|
|
3992
3992
|
const T = {};
|
|
@@ -4007,11 +4007,11 @@ function Ho(t) {
|
|
|
4007
4007
|
if (o !== void 0 && Wo({
|
|
4008
4008
|
itemsA: o,
|
|
4009
4009
|
itemsB: i,
|
|
4010
|
-
isPieFromFields: G(e.series) ===
|
|
4010
|
+
isPieFromFields: G(e.series) === S.PieFromFields,
|
|
4011
4011
|
x: e.series[0].x,
|
|
4012
4012
|
y: "y" in e.series[0] ? e.series[0].y.toString() : void 0,
|
|
4013
4013
|
outStatisticFieldName: e.series[0].query?.outStatistics?.[0]?.outStatisticFieldName
|
|
4014
|
-
}) ? a = o : a = i ?? [], n.length > 1 && s !==
|
|
4014
|
+
}) ? a = o : a = i ?? [], n.length > 1 && s !== S.BarAndLineNoAggregation && s !== S.BarAndLineSplitByNoAggregation) {
|
|
4015
4015
|
const l = re(n[0].query?.where);
|
|
4016
4016
|
a = Bt({ data: a, x: n[0].x, splitByField: l });
|
|
4017
4017
|
}
|
|
@@ -4064,12 +4064,12 @@ async function Uo(t) {
|
|
|
4064
4064
|
chartLimits: a
|
|
4065
4065
|
})), a && (Number.isFinite(f) || Number.isFinite(p)))) {
|
|
4066
4066
|
const y = Math.min(f ?? Number.NaN, p ?? Number.NaN);
|
|
4067
|
-
let
|
|
4068
|
-
Number.isFinite(y) && (
|
|
4067
|
+
let F = a;
|
|
4068
|
+
Number.isFinite(y) && (F = {
|
|
4069
4069
|
...a,
|
|
4070
4070
|
maxGaugeByFeaturesLimit: y,
|
|
4071
4071
|
gauge: { features: y }
|
|
4072
|
-
}), Ha({ chartConfig: i, chartLimits:
|
|
4072
|
+
}), Ha({ chartConfig: i, chartLimits: F, uniqueQuery: r });
|
|
4073
4073
|
}
|
|
4074
4074
|
if (Number.isNaN(g) || g) {
|
|
4075
4075
|
const y = await Go({
|
|
@@ -4079,7 +4079,7 @@ async function Uo(t) {
|
|
|
4079
4079
|
errorStrings: n,
|
|
4080
4080
|
abortKey: s,
|
|
4081
4081
|
abortSignal: o
|
|
4082
|
-
}), { calculatedAxisMinimum:
|
|
4082
|
+
}), { calculatedAxisMinimum: F, calculatedAxisMaximum: b, gaugeValue: T } = await Yo({
|
|
4083
4083
|
chartConfig: i,
|
|
4084
4084
|
queryConfig: r,
|
|
4085
4085
|
chartData: y,
|
|
@@ -4089,7 +4089,7 @@ async function Uo(t) {
|
|
|
4089
4089
|
});
|
|
4090
4090
|
l.data = {
|
|
4091
4091
|
dataItems: y,
|
|
4092
|
-
calculatedAxisMinimum:
|
|
4092
|
+
calculatedAxisMinimum: F,
|
|
4093
4093
|
calculatedAxisMaximum: b,
|
|
4094
4094
|
gaugeValue: T
|
|
4095
4095
|
}, l.count = y.length, Number.isNaN(T) && y.length > 0 && (l.valid = !1, l.invalidType = W.NoValue);
|
|
@@ -4272,7 +4272,7 @@ function ma(t) {
|
|
|
4272
4272
|
const l = Ee({ where: r ?? "", normalize: !1, escape: !0 });
|
|
4273
4273
|
let u = "";
|
|
4274
4274
|
if (As(s)) {
|
|
4275
|
-
const d = G(s.series) ===
|
|
4275
|
+
const d = G(s.series) === S.BoxPlotC4MultiFieldsAndCategory ? i : void 0, f = se({
|
|
4276
4276
|
key: R.Min,
|
|
4277
4277
|
showOutliers: !0,
|
|
4278
4278
|
splitBy: r,
|
|
@@ -4301,7 +4301,7 @@ function Jo(t) {
|
|
|
4301
4301
|
dataContext: r,
|
|
4302
4302
|
queryObject: s
|
|
4303
4303
|
});
|
|
4304
|
-
else if (G(n.series) !==
|
|
4304
|
+
else if (G(n.series) !== S.BarAndLineFromFields) {
|
|
4305
4305
|
let c = Ai({
|
|
4306
4306
|
value: r[e],
|
|
4307
4307
|
dataContext: r
|
|
@@ -4318,7 +4318,7 @@ function Jo(t) {
|
|
|
4318
4318
|
function Ko(t) {
|
|
4319
4319
|
const { xAxisField: e, dataContext: i, chartConfig: r } = t;
|
|
4320
4320
|
let a = i[B.originalXValue];
|
|
4321
|
-
return a === void 0 && (a = i[e]), G(r.series) ===
|
|
4321
|
+
return a === void 0 && (a = i[e]), G(r.series) === S.PieFromFields ? "" : Ee({
|
|
4322
4322
|
where: $e(e, a),
|
|
4323
4323
|
normalize: !1,
|
|
4324
4324
|
escape: !0
|
|
@@ -4351,7 +4351,7 @@ function el(t) {
|
|
|
4351
4351
|
let u = "";
|
|
4352
4352
|
if (l.type === h.HeatSeries) {
|
|
4353
4353
|
let c, d;
|
|
4354
|
-
const f = r[H.xField], m = r[B.originalXValue], g = r[H.yField], p = r[B.originalYCategoryValue], y = a.axes?.[0]?.valueFormat?.type,
|
|
4354
|
+
const f = r[H.xField], m = r[B.originalXValue], g = r[H.yField], p = r[B.originalYCategoryValue], y = a.axes?.[0]?.valueFormat?.type, F = a.axes?.[1]?.valueFormat?.type;
|
|
4355
4355
|
y === h.CategoryAxisFormat ? c = Ee({
|
|
4356
4356
|
where: $e(l.x, m ?? f),
|
|
4357
4357
|
normalize: !1,
|
|
@@ -4364,7 +4364,7 @@ function el(t) {
|
|
|
4364
4364
|
outTimeZone: n,
|
|
4365
4365
|
dataTimeZone: s,
|
|
4366
4366
|
runsOnClientQueryEngine: o
|
|
4367
|
-
}),
|
|
4367
|
+
}), F === h.CategoryAxisFormat ? d = Ee({
|
|
4368
4368
|
where: $e(l.y, p ?? g),
|
|
4369
4369
|
normalize: !1,
|
|
4370
4370
|
escape: !0
|
|
@@ -4439,7 +4439,7 @@ async function il(t) {
|
|
|
4439
4439
|
abortKey: g,
|
|
4440
4440
|
abortSignal: p
|
|
4441
4441
|
} = t, y = G(r.series);
|
|
4442
|
-
let
|
|
4442
|
+
let F = { valid: !0, data: { dataItems: [] } };
|
|
4443
4443
|
if (a !== void 0 && a.length > 0) {
|
|
4444
4444
|
const b = He(r), { x: T } = b, C = "y" in b ? b.y : "", v = Te(e).find((D) => D.name === T)?.type, A = [], N = a.reduce(
|
|
4445
4445
|
(D, I) => {
|
|
@@ -4448,9 +4448,9 @@ async function il(t) {
|
|
|
4448
4448
|
A.push(I[_.uniqueIds]);
|
|
4449
4449
|
else {
|
|
4450
4450
|
switch (y) {
|
|
4451
|
-
case
|
|
4452
|
-
case
|
|
4453
|
-
case
|
|
4451
|
+
case S.BoxPlotC5MonoFieldAndSplitBy:
|
|
4452
|
+
case S.BoxPlotC6MultiFieldsAndSplitBy:
|
|
4453
|
+
case S.BoxPlotC7MonoFieldAndCategoryAndSplitBy: {
|
|
4454
4454
|
const Q = re(b.query?.where ?? ""), q = `_${R.Average}`;
|
|
4455
4455
|
Object.keys(I).forEach((U) => {
|
|
4456
4456
|
if (U.includes(q)) {
|
|
@@ -4463,7 +4463,7 @@ async function il(t) {
|
|
|
4463
4463
|
}
|
|
4464
4464
|
const E = [C].flat();
|
|
4465
4465
|
let z = E.length === 1 ? E[0] : "";
|
|
4466
|
-
if (y ===
|
|
4466
|
+
if (y === S.BoxPlotC4MultiFieldsAndCategory) {
|
|
4467
4467
|
const Q = `_${R.FirstQuartile}`, q = Object.keys(I).find((U) => U.includes(Q));
|
|
4468
4468
|
q !== void 0 && (z = q.replace(Q, ""));
|
|
4469
4469
|
}
|
|
@@ -4488,7 +4488,7 @@ async function il(t) {
|
|
|
4488
4488
|
N.push(`${D} IN (${A.join(",")})`);
|
|
4489
4489
|
}
|
|
4490
4490
|
const M = N.join(" OR "), w = { ...i };
|
|
4491
|
-
w.where = J([w.where, M]),
|
|
4491
|
+
w.where = J([w.where, M]), F = await Pi({
|
|
4492
4492
|
queryObject: e,
|
|
4493
4493
|
chartConfig: r,
|
|
4494
4494
|
queryConfig: w,
|
|
@@ -4505,7 +4505,7 @@ async function il(t) {
|
|
|
4505
4505
|
abortSignal: p
|
|
4506
4506
|
});
|
|
4507
4507
|
}
|
|
4508
|
-
return
|
|
4508
|
+
return F;
|
|
4509
4509
|
}
|
|
4510
4510
|
async function rl(t) {
|
|
4511
4511
|
const {
|
|
@@ -4525,7 +4525,7 @@ async function rl(t) {
|
|
|
4525
4525
|
view: g,
|
|
4526
4526
|
errorStrings: p,
|
|
4527
4527
|
abortKey: y,
|
|
4528
|
-
abortSignal:
|
|
4528
|
+
abortSignal: F
|
|
4529
4529
|
} = t;
|
|
4530
4530
|
Ct(e);
|
|
4531
4531
|
const { series: b } = r, T = V(b), C = ve(r);
|
|
@@ -4537,7 +4537,7 @@ async function rl(t) {
|
|
|
4537
4537
|
x.data = { dataItems: v };
|
|
4538
4538
|
break;
|
|
4539
4539
|
case h.PieSeries:
|
|
4540
|
-
if (G(r.series) ===
|
|
4540
|
+
if (G(r.series) === S.PieFromFields) {
|
|
4541
4541
|
const { x: N, y: L } = r.series[0], M = Ve(v);
|
|
4542
4542
|
M.forEach((w) => {
|
|
4543
4543
|
N in w && (w[ye] = w[N], delete w[N]), L in w && (w[Le] = w[L], delete w[L]);
|
|
@@ -4562,7 +4562,7 @@ async function rl(t) {
|
|
|
4562
4562
|
view: g,
|
|
4563
4563
|
errorStrings: p,
|
|
4564
4564
|
abortKey: y,
|
|
4565
|
-
abortSignal:
|
|
4565
|
+
abortSignal: F
|
|
4566
4566
|
}));
|
|
4567
4567
|
break;
|
|
4568
4568
|
case h.BarSeries:
|
|
@@ -4600,7 +4600,7 @@ async function rl(t) {
|
|
|
4600
4600
|
chartLimits: c,
|
|
4601
4601
|
popupTemplateFieldInfosEnabled: d,
|
|
4602
4602
|
view: g,
|
|
4603
|
-
abortSignal:
|
|
4603
|
+
abortSignal: F
|
|
4604
4604
|
});
|
|
4605
4605
|
}
|
|
4606
4606
|
break;
|
|
@@ -4626,7 +4626,7 @@ async function rl(t) {
|
|
|
4626
4626
|
view: g,
|
|
4627
4627
|
errorStrings: p,
|
|
4628
4628
|
abortKey: y,
|
|
4629
|
-
abortSignal:
|
|
4629
|
+
abortSignal: F
|
|
4630
4630
|
});
|
|
4631
4631
|
}
|
|
4632
4632
|
break;
|
|
@@ -4668,7 +4668,7 @@ async function Pi(t) {
|
|
|
4668
4668
|
view: g
|
|
4669
4669
|
} = t;
|
|
4670
4670
|
let p = { valid: !0 };
|
|
4671
|
-
const y = Ke(i),
|
|
4671
|
+
const y = Ke(i), F = await pi({
|
|
4672
4672
|
queryObject: e,
|
|
4673
4673
|
queryConfig: r,
|
|
4674
4674
|
fetchFullBoxPlotData: !y,
|
|
@@ -4686,10 +4686,10 @@ async function Pi(t) {
|
|
|
4686
4686
|
view: g
|
|
4687
4687
|
});
|
|
4688
4688
|
if (!y)
|
|
4689
|
-
p =
|
|
4689
|
+
p = F;
|
|
4690
4690
|
else {
|
|
4691
4691
|
const b = { dataItems: [] };
|
|
4692
|
-
b.meanLines =
|
|
4692
|
+
b.meanLines = F.data.dataItems;
|
|
4693
4693
|
const T = Bo(i), C = (await pi({
|
|
4694
4694
|
queryObject: e,
|
|
4695
4695
|
queryConfig: r,
|
|
@@ -4729,7 +4729,7 @@ async function nm(t) {
|
|
|
4729
4729
|
returnStatisticsAggregatedIds: g,
|
|
4730
4730
|
chartLimits: p,
|
|
4731
4731
|
popupTemplateFieldInfosEnabled: y,
|
|
4732
|
-
hideZeroCountCategories:
|
|
4732
|
+
hideZeroCountCategories: F,
|
|
4733
4733
|
replaceNoValueCategoryWithZero: b,
|
|
4734
4734
|
view: T,
|
|
4735
4735
|
syncViewTimeZone: C,
|
|
@@ -4759,7 +4759,7 @@ async function nm(t) {
|
|
|
4759
4759
|
returnStatisticsAggregatedIds: g,
|
|
4760
4760
|
chartLimits: p,
|
|
4761
4761
|
popupTemplateFieldInfosEnabled: y,
|
|
4762
|
-
hideZeroCountCategories:
|
|
4762
|
+
hideZeroCountCategories: F,
|
|
4763
4763
|
replaceNoValueCategoryWithZero: b,
|
|
4764
4764
|
view: T,
|
|
4765
4765
|
errorStrings: x,
|
|
@@ -4795,7 +4795,7 @@ async function nm(t) {
|
|
|
4795
4795
|
returnStatisticsAggregatedIds: g,
|
|
4796
4796
|
chartLimits: p,
|
|
4797
4797
|
popupTemplateFieldInfosEnabled: y,
|
|
4798
|
-
hideZeroCountCategories:
|
|
4798
|
+
hideZeroCountCategories: F,
|
|
4799
4799
|
replaceNoValueCategoryWithZero: b,
|
|
4800
4800
|
view: T,
|
|
4801
4801
|
errorStrings: x,
|
|
@@ -4820,7 +4820,7 @@ async function nm(t) {
|
|
|
4820
4820
|
returnStatisticsAggregatedIds: g,
|
|
4821
4821
|
chartLimits: p,
|
|
4822
4822
|
popupTemplateFieldInfosEnabled: y,
|
|
4823
|
-
hideZeroCountCategories:
|
|
4823
|
+
hideZeroCountCategories: F,
|
|
4824
4824
|
replaceNoValueCategoryWithZero: b,
|
|
4825
4825
|
view: T,
|
|
4826
4826
|
abortKey: r,
|
|
@@ -4846,7 +4846,7 @@ async function nm(t) {
|
|
|
4846
4846
|
returnStatisticsAggregatedIds: g,
|
|
4847
4847
|
chartLimits: p,
|
|
4848
4848
|
popupTemplateFieldInfosEnabled: y,
|
|
4849
|
-
hideZeroCountCategories:
|
|
4849
|
+
hideZeroCountCategories: F,
|
|
4850
4850
|
replaceNoValueCategoryWithZero: b,
|
|
4851
4851
|
view: T,
|
|
4852
4852
|
chartConfig: i,
|
|
@@ -4908,14 +4908,14 @@ async function nl(t) {
|
|
|
4908
4908
|
} = t, { series: c } = i;
|
|
4909
4909
|
let d = e;
|
|
4910
4910
|
const f = G(c), m = ve(i);
|
|
4911
|
-
if (s !== We.RenderUpToTheLimit && n !== void 0 && n > e.length && f !==
|
|
4911
|
+
if (s !== We.RenderUpToTheLimit && n !== void 0 && n > e.length && f !== S.BarAndLineFromFields && f !== S.BarAndLineNoAggregation && f !== S.PieNoAggregation && m === h.CategoryAxisFormat) {
|
|
4912
4912
|
const { x: g } = c[0], p = {
|
|
4913
4913
|
...r,
|
|
4914
4914
|
returnDistinctValues: !0,
|
|
4915
4915
|
outFields: [g]
|
|
4916
4916
|
};
|
|
4917
4917
|
delete p.outStatistics, delete p.orderByFields, delete p.groupByFieldsForStatistics;
|
|
4918
|
-
const
|
|
4918
|
+
const F = (await xe({
|
|
4919
4919
|
queryObject: a,
|
|
4920
4920
|
queryConfig: p,
|
|
4921
4921
|
featureCount: n,
|
|
@@ -4924,7 +4924,7 @@ async function nl(t) {
|
|
|
4924
4924
|
abortKey: l,
|
|
4925
4925
|
abortSignal: u
|
|
4926
4926
|
})).map((b) => b.attributes[g]).filter((b) => b != null);
|
|
4927
|
-
|
|
4927
|
+
F.length > e.length && (d = al(F, e, g));
|
|
4928
4928
|
}
|
|
4929
4929
|
return d;
|
|
4930
4930
|
}
|
|
@@ -5102,9 +5102,9 @@ function dl(t) {
|
|
|
5102
5102
|
let d, f;
|
|
5103
5103
|
if (Be(u) && (f = u.temporalBinning?.nullPolicy, d = u.temporalBinning?.timeAggregationType), l > 1 || o === $.Week || o === $.Month || o === $.Year) {
|
|
5104
5104
|
const { query: m } = i[0], g = le(i), { statisticType: p } = m?.outStatistics?.[0] ?? Nr;
|
|
5105
|
-
let y = !1,
|
|
5105
|
+
let y = !1, F = d === ae.End ? e.length - 1 : 0;
|
|
5106
5106
|
const b = {
|
|
5107
|
-
binFirstOrLastIndex:
|
|
5107
|
+
binFirstOrLastIndex: F,
|
|
5108
5108
|
data: e,
|
|
5109
5109
|
x: c,
|
|
5110
5110
|
timeIntervalInfo: r
|
|
@@ -5118,7 +5118,7 @@ function dl(t) {
|
|
|
5118
5118
|
// When grouping from the start we'll start from the first date and move forward to create the bins
|
|
5119
5119
|
ll(b)
|
|
5120
5120
|
);
|
|
5121
|
-
if (y = v, T = d === ae.End ? T = e[L - 1] : T = e[
|
|
5121
|
+
if (y = v, T = d === ae.End ? T = e[L - 1] : T = e[F], x > n && C < n || C < a && x > a || C >= a && x <= n) {
|
|
5122
5122
|
const M = e.slice(N, L).filter((P) => !(B.dateBinModel in P));
|
|
5123
5123
|
g.forEach((P) => {
|
|
5124
5124
|
T[P] = ul({ binsToRegroup: M, statisticType: p, y: P, nullPolicy: f });
|
|
@@ -5131,7 +5131,7 @@ function dl(t) {
|
|
|
5131
5131
|
}, []);
|
|
5132
5132
|
I.length > 0 && (T[_.uniqueIds] = I), T[c] = C, T[B.xAxisField] = C, T[B.dateBinningRange] = [C, x], delete T[B.dateBinModel], s.push(T);
|
|
5133
5133
|
} else v && d !== ae.End && s.length > 0 && (s[s.length - 1][B.dateBinningRange][1] = s[s.length - 1][B.dateBinningRange][1] + 1);
|
|
5134
|
-
|
|
5134
|
+
F = A, b.binFirstOrLastIndex = A;
|
|
5135
5135
|
}
|
|
5136
5136
|
d === ae.End && (s = s.reverse());
|
|
5137
5137
|
} else l === 1 ? s = e.map((m, g) => {
|
|
@@ -5205,7 +5205,7 @@ function fl(t) {
|
|
|
5205
5205
|
const p = pa(n);
|
|
5206
5206
|
if (c === ae.End) {
|
|
5207
5207
|
let y = a[0][u];
|
|
5208
|
-
for (let
|
|
5208
|
+
for (let F = 0; F < g; F += 1)
|
|
5209
5209
|
y = _e({
|
|
5210
5210
|
date: y,
|
|
5211
5211
|
unit: l,
|
|
@@ -5219,7 +5219,7 @@ function fl(t) {
|
|
|
5219
5219
|
g > 0 && (d = a[a.length - 1][u]);
|
|
5220
5220
|
} else {
|
|
5221
5221
|
let y = a[a.length - 1][u];
|
|
5222
|
-
for (let
|
|
5222
|
+
for (let F = 0; F < g; F += 1)
|
|
5223
5223
|
y = _e({
|
|
5224
5224
|
date: y,
|
|
5225
5225
|
unit: l,
|
|
@@ -5346,7 +5346,7 @@ function* Sl(t) {
|
|
|
5346
5346
|
];
|
|
5347
5347
|
let g = et.groupByCaseBegin;
|
|
5348
5348
|
for (let y = 0; y < a.length; y += 1) {
|
|
5349
|
-
const
|
|
5349
|
+
const F = a[y], [b, T] = F[B.dateBinningRange], C = ft(b), x = ft(T);
|
|
5350
5350
|
g = hl({
|
|
5351
5351
|
groupByFieldsForStatistics: g,
|
|
5352
5352
|
queryStartDate: C,
|
|
@@ -5392,8 +5392,8 @@ async function Fl(t) {
|
|
|
5392
5392
|
if (g !== void 0) {
|
|
5393
5393
|
const [p, y] = g.split("|");
|
|
5394
5394
|
if (y !== void 0) {
|
|
5395
|
-
const
|
|
5396
|
-
o[y][`${p}`] =
|
|
5395
|
+
const F = m.attributes[O.ContinuousPercentile];
|
|
5396
|
+
o[y][`${p}`] = F;
|
|
5397
5397
|
}
|
|
5398
5398
|
}
|
|
5399
5399
|
});
|
|
@@ -5435,13 +5435,13 @@ function dr(t, e) {
|
|
|
5435
5435
|
return i;
|
|
5436
5436
|
}
|
|
5437
5437
|
function bl(t) {
|
|
5438
|
-
const { chartConfig: e, queryResults: i, mapToStatField: r, splitByField: a, x: n, y: s, nullPolicy: o, queryObject: l } = t, u = Qr(n), d = Te(l).find((
|
|
5438
|
+
const { chartConfig: e, queryResults: i, mapToStatField: r, splitByField: a, x: n, y: s, nullPolicy: o, queryObject: l } = t, u = Qr(n), d = Te(l).find((F) => F.name === n)?.type, f = [], m = e.series[0], g = "temporalBinning" in m ? m.temporalBinning?.trimIncompleteTimeInterval : !1, p = "temporalBinning" in m ? m.temporalBinning?.timeAggregationType : !1;
|
|
5439
5439
|
let y = !1;
|
|
5440
|
-
return i.forEach((
|
|
5440
|
+
return i.forEach((F, b) => {
|
|
5441
5441
|
if (g && (b === 0 && p === ae.End || b === i.length - 1 && p === ae.Start))
|
|
5442
5442
|
y = !0;
|
|
5443
5443
|
else {
|
|
5444
|
-
const { attributes: C, stackedAttributes: x, statisticsAggregatedIds: v } =
|
|
5444
|
+
const { attributes: C, stackedAttributes: x, statisticsAggregatedIds: v } = F;
|
|
5445
5445
|
let A = C[u.lowerBoundaryAlias], N = C[u.upperBoundaryAlias];
|
|
5446
5446
|
const L = A, M = N;
|
|
5447
5447
|
if (A = dr(A, d), N = dr(N, d), typeof A == "number" && typeof N == "number") {
|
|
@@ -5454,7 +5454,7 @@ function bl(t) {
|
|
|
5454
5454
|
}
|
|
5455
5455
|
}) : typeof s == "string" && ur({ dataItem: w, statField: s, nullPolicy: o });
|
|
5456
5456
|
const { featureExtent: D, featureExtentKey: I } = ha({
|
|
5457
|
-
feature:
|
|
5457
|
+
feature: F,
|
|
5458
5458
|
splitByField: a
|
|
5459
5459
|
});
|
|
5460
5460
|
D && (w[I] = D), f.push(w);
|
|
@@ -5488,7 +5488,7 @@ async function xl(t) {
|
|
|
5488
5488
|
dateMinTimestamp: f,
|
|
5489
5489
|
dateMaxTimestamp: m,
|
|
5490
5490
|
timeIntervalInfo: l
|
|
5491
|
-
}), { newDateMin:
|
|
5491
|
+
}), { newDateMin: F, newDateMax: b } = fl({
|
|
5492
5492
|
dateMaxTimestamp: m,
|
|
5493
5493
|
data: d,
|
|
5494
5494
|
numberOfFinalBinsWithinDataRange: p,
|
|
@@ -5497,7 +5497,7 @@ async function xl(t) {
|
|
|
5497
5497
|
timeIntervalInfo: l
|
|
5498
5498
|
});
|
|
5499
5499
|
d = yl({
|
|
5500
|
-
newDateMin:
|
|
5500
|
+
newDateMin: F,
|
|
5501
5501
|
newDateMax: b,
|
|
5502
5502
|
seriesConfig: s,
|
|
5503
5503
|
data: d,
|
|
@@ -5539,10 +5539,10 @@ function Bl(t) {
|
|
|
5539
5539
|
let r, a, { dateMinTimestamp: n, dateMaxTimestamp: s } = e;
|
|
5540
5540
|
if (n && s) {
|
|
5541
5541
|
typeof n == "string" && (n = new Date(n).valueOf()), typeof s == "string" && (s = new Date(s).valueOf());
|
|
5542
|
-
const o = Cl(i), l = (s - n) / o, u = cr.findIndex((
|
|
5542
|
+
const o = Cl(i), l = (s - n) / o, u = cr.findIndex((F) => F.threshold > l), c = cr[u], { unitMs: d, preferredIntervalSize: f } = c;
|
|
5543
5543
|
({ unit: r } = c);
|
|
5544
5544
|
const m = l / d, g = f.findIndex(
|
|
5545
|
-
(
|
|
5545
|
+
(F) => F >= m
|
|
5546
5546
|
), p = f[g], y = g === 0 ? f[0] : f[g - 1];
|
|
5547
5547
|
a = p - m < m - y ? p : y;
|
|
5548
5548
|
}
|
|
@@ -5588,7 +5588,7 @@ function ha(t) {
|
|
|
5588
5588
|
}
|
|
5589
5589
|
const n = a?.toJSON();
|
|
5590
5590
|
let s = Ie;
|
|
5591
|
-
return n !== void 0 && i !== void 0 && r ===
|
|
5591
|
+
return n !== void 0 && i !== void 0 && r === S.BarAndLineSplitBy && (s = e.attributes[i] !== void 0 ? `${Ie}_${e.attributes[i]}` : Ie), { featureExtent: n, featureExtentKey: s };
|
|
5592
5592
|
}
|
|
5593
5593
|
function Al(t, e) {
|
|
5594
5594
|
const i = t, r = V(e);
|
|
@@ -5629,7 +5629,7 @@ function Pl(t) {
|
|
|
5629
5629
|
}
|
|
5630
5630
|
function Ml(t) {
|
|
5631
5631
|
const { chartConfig: e, chartType: i, chartSubType: r, attributes: a, featureIndex: n, x: s } = t;
|
|
5632
|
-
(r ===
|
|
5632
|
+
(r === S.BarAndLineNoAggregation || r === S.BarAndLineSplitByNoAggregation) && Wn({ isXAxis: !0, chartType: i, valueFormat: e.axes?.[0]?.valueFormat }) ? (a[B.xAxisField] = `${a[s]}-${n}`, a[B.xAxisDisplayField] = a[s]) : i === h.HeatSeries ? a[B.xAxisField] = a[H.xField] : r !== S.BarAndLineFromFields && r !== S.PieFromFields && (a[B.xAxisField] = a[s]);
|
|
5633
5633
|
}
|
|
5634
5634
|
function Il(t) {
|
|
5635
5635
|
const { feature: e, splitByField: i, chartSubType: r, attributes: a } = t, { featureExtent: n, featureExtentKey: s } = ha({ feature: e, splitByField: i, chartSubType: r });
|
|
@@ -5637,7 +5637,7 @@ function Il(t) {
|
|
|
5637
5637
|
}
|
|
5638
5638
|
function Ol(t) {
|
|
5639
5639
|
const { chartSubType: e, attributes: i, splitByField: r, mapToStatField: a } = t, { outStatisticFieldName: n } = _.outStatistics ?? {}, s = Sa(i, r);
|
|
5640
|
-
if (e ===
|
|
5640
|
+
if (e === S.BarAndLineSplitBy && n && s !== void 0) {
|
|
5641
5641
|
const o = a?.get(s);
|
|
5642
5642
|
o !== void 0 && (s === r && (i[B.technicalFieldSplitByField] = i[o]), i[o] = i[n]), delete i[n];
|
|
5643
5643
|
}
|
|
@@ -5666,7 +5666,7 @@ function El(t, e) {
|
|
|
5666
5666
|
}
|
|
5667
5667
|
function Rl(t) {
|
|
5668
5668
|
const { chartSubType: e, dataItem: i, outStatistics: r } = t;
|
|
5669
|
-
(e ===
|
|
5669
|
+
(e === S.PieFromFields || e === S.BarAndLineFromFields) && i !== void 0 && r[0] !== void 0 && Object.keys(i).forEach((a) => {
|
|
5670
5670
|
const n = r.find(
|
|
5671
5671
|
(s) => s.outStatisticFieldName?.toLowerCase() === a.toLowerCase()
|
|
5672
5672
|
)?.onStatisticField;
|
|
@@ -5675,7 +5675,7 @@ function Rl(t) {
|
|
|
5675
5675
|
}
|
|
5676
5676
|
function ql(t) {
|
|
5677
5677
|
const { dataItem: e, splitByField: i, y: r, chartSubType: a, queryObject: n } = t;
|
|
5678
|
-
if (typeof r == "string" && a ===
|
|
5678
|
+
if (typeof r == "string" && a === S.BarAndLineSplitByNoAggregation) {
|
|
5679
5679
|
const s = j(n), { idField: o, isTraditionalTypeOID: l } = Ae(s), u = l ? o : void 0;
|
|
5680
5680
|
if (e !== void 0 && !ie(i) && !ie(r)) {
|
|
5681
5681
|
const c = e[i], d = c === null ? "null" : c?.toString(), f = `${r}_${d}`;
|
|
@@ -5685,7 +5685,7 @@ function ql(t) {
|
|
|
5685
5685
|
}
|
|
5686
5686
|
function Vl(t) {
|
|
5687
5687
|
const { chartSubType: e, attributes: i, y: r } = t;
|
|
5688
|
-
r && (e ===
|
|
5688
|
+
r && (e === S.BoxPlotC1MonoField || e === S.BoxPlotC3MonoFieldAndCategory || e === S.BoxPlotC5MonoFieldAndSplitBy || e === S.BoxPlotC7MonoFieldAndCategoryAndSplitBy) && Object.keys(i).forEach((n) => {
|
|
5689
5689
|
if (n.startsWith(`${r}_`)) {
|
|
5690
5690
|
const s = n.slice(r.length + 1);
|
|
5691
5691
|
i[s] = i[n], delete i[n];
|
|
@@ -5695,33 +5695,33 @@ function Vl(t) {
|
|
|
5695
5695
|
function kl(t, e) {
|
|
5696
5696
|
let i = 1;
|
|
5697
5697
|
switch (t) {
|
|
5698
|
-
case
|
|
5699
|
-
case
|
|
5698
|
+
case S.BarAndLineFromFields:
|
|
5699
|
+
case S.PieFromFields:
|
|
5700
5700
|
i = e.series[0].query?.outStatistics?.length ?? 1;
|
|
5701
5701
|
break;
|
|
5702
|
-
case
|
|
5703
|
-
case
|
|
5702
|
+
case S.BoxPlotC2MultiFields:
|
|
5703
|
+
case S.BoxPlotC6MultiFieldsAndSplitBy:
|
|
5704
5704
|
i = e.series[0].y.length;
|
|
5705
5705
|
break;
|
|
5706
|
-
case
|
|
5707
|
-
case
|
|
5708
|
-
case
|
|
5709
|
-
case
|
|
5710
|
-
case
|
|
5711
|
-
case
|
|
5712
|
-
case
|
|
5713
|
-
case
|
|
5714
|
-
case
|
|
5715
|
-
case
|
|
5716
|
-
case
|
|
5717
|
-
case
|
|
5718
|
-
case
|
|
5706
|
+
case S.BarAndLineNoAggregation:
|
|
5707
|
+
case S.BoxPlotC1MonoField:
|
|
5708
|
+
case S.BoxPlotC3MonoFieldAndCategory:
|
|
5709
|
+
case S.BoxPlotC4MultiFieldsAndCategory:
|
|
5710
|
+
case S.BoxPlotC5MonoFieldAndSplitBy:
|
|
5711
|
+
case S.BoxPlotC7MonoFieldAndCategoryAndSplitBy:
|
|
5712
|
+
case S.PieFromCategory:
|
|
5713
|
+
case S.BarAndLineSplitByNoAggregation:
|
|
5714
|
+
case S.PieNoAggregation:
|
|
5715
|
+
case S.BarAndLineSplitBy:
|
|
5716
|
+
case S.BarAndLineMonoField:
|
|
5717
|
+
case S.BarAndLineMultiFields:
|
|
5718
|
+
case S.NonSpecific:
|
|
5719
5719
|
}
|
|
5720
5720
|
return i;
|
|
5721
5721
|
}
|
|
5722
5722
|
function $l(t) {
|
|
5723
5723
|
const { attributes: e, showMean: i, chartSubType: r } = t;
|
|
5724
|
-
i && (r ===
|
|
5724
|
+
i && (r === S.BoxPlotC5MonoFieldAndSplitBy || r === S.BoxPlotC6MultiFieldsAndSplitBy || r === S.BoxPlotC7MonoFieldAndCategoryAndSplitBy) && (e[B.boxPlot.boxPlotMeanLineMarkerId] = !0);
|
|
5725
5725
|
}
|
|
5726
5726
|
function _l(t) {
|
|
5727
5727
|
const { queryResponse: e, chartConfig: i, maxCategoryCount: r } = t, a = G(i.series);
|
|
@@ -5731,7 +5731,7 @@ function zl(t) {
|
|
|
5731
5731
|
const { attributes: e, uniqueCategoryList: i, maxCategoryCount: r, x: a, chartSubType: n } = t;
|
|
5732
5732
|
let s = !1;
|
|
5733
5733
|
if (a && r && Number.isFinite(r) && !ta.includes(n))
|
|
5734
|
-
if ((n ===
|
|
5734
|
+
if ((n === S.BarAndLineFromFields || n === S.PieFromFields) && Object.keys(e).length > r)
|
|
5735
5735
|
Object.keys(e).filter((o) => o !== O.EnvelopeAggregate).forEach((o, l) => {
|
|
5736
5736
|
l >= r && delete e[o];
|
|
5737
5737
|
});
|
|
@@ -5744,7 +5744,7 @@ function zl(t) {
|
|
|
5744
5744
|
function Ql(t) {
|
|
5745
5745
|
const { attributes: e, x: i, y: r, xFieldDomain: a, yFieldDomain: n, chartType: s, chartSubType: o, xAxisValueFormat: l, yAxisValueFormat: u } = t;
|
|
5746
5746
|
let c, d;
|
|
5747
|
-
if (o !==
|
|
5747
|
+
if (o !== S.PieFromFields) {
|
|
5748
5748
|
const f = e[i], m = typeof r == "string" ? r : r?.[0], g = typeof m == "string" ? e[m] : void 0;
|
|
5749
5749
|
a && (typeof f == "string" || typeof f == "number") && (c = Ci(f, a)), n && s === h.HeatSeries && (typeof g == "string" || typeof g == "number") && (d = Ci(g, n)), c !== void 0 && c !== f && (typeof c != "string" || !$t(l)) && (e[B.originalXValue] = f, e[i] = c, e[B.xAxisDisplayField] = c), typeof r == "string" && !$t(u) && d !== void 0 && d !== g && (e[B.originalYCategoryValue] = e[r], e[r] = d);
|
|
5750
5750
|
}
|
|
@@ -5754,7 +5754,7 @@ function Wl(t) {
|
|
|
5754
5754
|
let o;
|
|
5755
5755
|
if (i)
|
|
5756
5756
|
o = i;
|
|
5757
|
-
else if (r ===
|
|
5757
|
+
else if (r === S.PieNoAggregation || r === S.BarAndLineNoAggregation || r === S.BarAndLineSplitByNoAggregation) {
|
|
5758
5758
|
const l = a.getObjectId();
|
|
5759
5759
|
l != null && (o = [l]);
|
|
5760
5760
|
}
|
|
@@ -5769,7 +5769,7 @@ function Hl(t) {
|
|
|
5769
5769
|
}
|
|
5770
5770
|
function Gl(t) {
|
|
5771
5771
|
const { chartSubType: e, attributes: i, x: r } = t;
|
|
5772
|
-
e !==
|
|
5772
|
+
e !== S.BarAndLineFromFields && e !== S.PieFromFields && (i[B.originalXValue] = i[r]);
|
|
5773
5773
|
}
|
|
5774
5774
|
function Sa(t, e) {
|
|
5775
5775
|
let i;
|
|
@@ -5790,7 +5790,7 @@ function Fa(t) {
|
|
|
5790
5790
|
resultLimit: o,
|
|
5791
5791
|
chartLimits: l,
|
|
5792
5792
|
fieldList: u
|
|
5793
|
-
} = t, { series: c } = r, d = G(c), f = V(c), { x: m } = c[0], g = "y" in c[0] ? c[0].y : void 0, p = c[0].query?.outStatistics ?? [], y = _t(r?.axes?.[0]?.valueFormat),
|
|
5793
|
+
} = t, { series: c } = r, d = G(c), f = V(c), { x: m } = c[0], g = "y" in c[0] ? c[0].y : void 0, p = c[0].query?.outStatistics ?? [], y = _t(r?.axes?.[0]?.valueFormat), F = xi(e, m), b = typeof g == "string" ? xi(e, g) : void 0, C = mu(u ?? []).includes(m), x = Ke(r), v = [];
|
|
5794
5794
|
let A = 0;
|
|
5795
5795
|
const N = /* @__PURE__ */ new Set(), {
|
|
5796
5796
|
maxCategoryCount: L,
|
|
@@ -5826,7 +5826,7 @@ function Fa(t) {
|
|
|
5826
5826
|
attributes: E,
|
|
5827
5827
|
x: m,
|
|
5828
5828
|
y: g,
|
|
5829
|
-
xFieldDomain:
|
|
5829
|
+
xFieldDomain: F,
|
|
5830
5830
|
yFieldDomain: b,
|
|
5831
5831
|
chartType: f,
|
|
5832
5832
|
chartSubType: d,
|
|
@@ -5867,7 +5867,7 @@ async function ti(t) {
|
|
|
5867
5867
|
abortSignal: m
|
|
5868
5868
|
} = t, { series: g } = r, p = G(g);
|
|
5869
5869
|
let y = [];
|
|
5870
|
-
const
|
|
5870
|
+
const F = p === S.BarAndLineSplitBy || p === S.BarAndLineSplitByNoAggregation ? re(g[0].query?.where) : "", b = c ?? await xe({
|
|
5871
5871
|
queryObject: e,
|
|
5872
5872
|
queryConfig: i,
|
|
5873
5873
|
featureCount: n,
|
|
@@ -5881,12 +5881,12 @@ async function ti(t) {
|
|
|
5881
5881
|
queryResponse: b,
|
|
5882
5882
|
chartConfig: r,
|
|
5883
5883
|
mapToStatField: a,
|
|
5884
|
-
splitByField:
|
|
5884
|
+
splitByField: F,
|
|
5885
5885
|
isTimeBinningSeries: s,
|
|
5886
5886
|
fieldList: T,
|
|
5887
5887
|
resultLimit: i.num,
|
|
5888
5888
|
chartLimits: o
|
|
5889
|
-
}), p !==
|
|
5889
|
+
}), p !== S.BarAndLineSplitByNoAggregation && p !== S.BarAndLineFromFields && (F !== "" && (y = Bt({ data: y, x: C, splitByField: F })), y = Al(
|
|
5890
5890
|
y,
|
|
5891
5891
|
g
|
|
5892
5892
|
)), y;
|
|
@@ -5902,7 +5902,7 @@ async function ba(t) {
|
|
|
5902
5902
|
abortSignal: o
|
|
5903
5903
|
} = t, { series: l } = e, u = G(l), { x: c } = l[0], d = l.length;
|
|
5904
5904
|
let f, m, g = !1;
|
|
5905
|
-
if (u ===
|
|
5905
|
+
if (u === S.BoxPlotC1MonoField || u === S.BoxPlotC5MonoFieldAndSplitBy ? (m = d, f = m) : u === S.BoxPlotC2MultiFields || u === S.BoxPlotC6MultiFieldsAndSplitBy ? (m = e.series[0].y.length, f = m) : u === S.PieFromFields || u === S.BarAndLineFromFields ? (m = l[0].query?.outStatistics?.filter(
|
|
5906
5906
|
(p) => p.statisticType !== O.EnvelopeAggregate
|
|
5907
5907
|
).length ?? 0, f = m) : f = await us({
|
|
5908
5908
|
queryObject: i,
|
|
@@ -5912,7 +5912,7 @@ async function ba(t) {
|
|
|
5912
5912
|
isGaugeByFeature: s,
|
|
5913
5913
|
abortSignal: o
|
|
5914
5914
|
}), f !== void 0) {
|
|
5915
|
-
const p = u ===
|
|
5915
|
+
const p = u === S.BoxPlotC1MonoField || u === S.BoxPlotC3MonoFieldAndCategory || u === S.BoxPlotC5MonoFieldAndSplitBy;
|
|
5916
5916
|
m = mi(u) && !p ? f * d : f;
|
|
5917
5917
|
}
|
|
5918
5918
|
return n === We.RenderUpToTheLimit && m !== void 0 && a !== void 0 && a < m && (m = a, f = Math.ceil(m / d), g = !0), { categoryOrDateCount: f, elementCount: m, chartLimitsReached: g };
|
|
@@ -5936,7 +5936,7 @@ async function pi(t) {
|
|
|
5936
5936
|
hideZeroCountCategories: p
|
|
5937
5937
|
} = t;
|
|
5938
5938
|
Ke(e);
|
|
5939
|
-
const y = t.replaceNoValueCategoryWithZero ?? B.options.replaceNoValueCategoryWithZero,
|
|
5939
|
+
const y = t.replaceNoValueCategoryWithZero ?? B.options.replaceNoValueCategoryWithZero, F = !(p ?? !y), { behaviorAfterLimit: b } = m ?? {};
|
|
5940
5940
|
let T;
|
|
5941
5941
|
const C = { valid: !0 };
|
|
5942
5942
|
let x, v = !1;
|
|
@@ -6007,15 +6007,15 @@ async function pi(t) {
|
|
|
6007
6007
|
chartLimits: m
|
|
6008
6008
|
})), Q) {
|
|
6009
6009
|
if (M === h.PieSeries) {
|
|
6010
|
-
L ===
|
|
6010
|
+
L === S.PieFromFields && (x = zt({
|
|
6011
6011
|
dataToConvert: x[0],
|
|
6012
6012
|
x: ye,
|
|
6013
6013
|
y: Le,
|
|
6014
6014
|
fieldList: s
|
|
6015
6015
|
}));
|
|
6016
6016
|
let q = "";
|
|
6017
|
-
L ===
|
|
6018
|
-
} else if ((M === h.RadarSeries || M === h.BarSeries || M === h.LineSeries || M === h.ComboLineAndBarSeries) && (L ===
|
|
6017
|
+
L === S.PieFromFields ? q = Le : "y" in N && typeof N.y == "string" && (q = N.y), bs(x, q) ? C.data = { dataItems: x } : No(C, W.PieChartMixOfNegativePositiveSlices);
|
|
6018
|
+
} else if ((M === h.RadarSeries || M === h.BarSeries || M === h.LineSeries || M === h.ComboLineAndBarSeries) && (L === S.BarAndLineFromFields && "y" in N && typeof N.y == "string" ? x = zt({
|
|
6019
6019
|
dataToConvert: x[0],
|
|
6020
6020
|
x: N.x,
|
|
6021
6021
|
y: N.y,
|
|
@@ -6036,7 +6036,7 @@ async function pi(t) {
|
|
|
6036
6036
|
chartType: M,
|
|
6037
6037
|
chartLimits: m
|
|
6038
6038
|
}), Q)) {
|
|
6039
|
-
|
|
6039
|
+
F && (x = sl(x, e));
|
|
6040
6040
|
let q = {};
|
|
6041
6041
|
if (Be(N)) {
|
|
6042
6042
|
const { size: U, unit: X } = N.temporalBinning ?? {};
|
|
@@ -6164,7 +6164,7 @@ async function xa(t) {
|
|
|
6164
6164
|
} = t, p = { valid: !0 };
|
|
6165
6165
|
let y;
|
|
6166
6166
|
if (Je(e)) {
|
|
6167
|
-
const { nullPolicy:
|
|
6167
|
+
const { nullPolicy: F } = e, b = e.series[0], { x: T, y: C, query: x, xTemporalBinning: v, yTemporalBinning: A } = b, N = x?.outStatistics?.[0]?.outStatisticFieldName ?? "", L = x?.outStatistics?.[0]?.statisticType ?? O.Count, M = jl(e), w = H.valueField, D = F === be.Zero ? 0 : null;
|
|
6168
6168
|
if (vo(e)) {
|
|
6169
6169
|
const I = n ? await St({
|
|
6170
6170
|
queryObject: r,
|
|
@@ -6266,7 +6266,7 @@ async function xa(t) {
|
|
|
6266
6266
|
})) || Q.push({
|
|
6267
6267
|
[H.xField]: `${q[_.heatChartLowerBoundaryAlias]}`,
|
|
6268
6268
|
[H.yField]: k,
|
|
6269
|
-
[w]:
|
|
6269
|
+
[w]: F === be.Zero ? 0 : null,
|
|
6270
6270
|
[vr]: !0
|
|
6271
6271
|
// flagging the cell with an extra field to later skip it at selection
|
|
6272
6272
|
});
|
|
@@ -6335,15 +6335,15 @@ async function Ii(t) {
|
|
|
6335
6335
|
popupTemplateFieldInfosEnabled: f,
|
|
6336
6336
|
view: m,
|
|
6337
6337
|
syncViewTimeZone: g
|
|
6338
|
-
} = t, { behaviorAfterLimit: p } = d ?? {}, y = e.series,
|
|
6338
|
+
} = t, { behaviorAfterLimit: p } = d ?? {}, y = e.series, F = y[0], { x: b } = F, T = re(F.query?.where), C = { valid: !0 };
|
|
6339
6339
|
let x;
|
|
6340
|
-
if (Be(
|
|
6341
|
-
const { temporalBinning: v } =
|
|
6340
|
+
if (Be(F)) {
|
|
6341
|
+
const { temporalBinning: v } = F;
|
|
6342
6342
|
if (r && v) {
|
|
6343
6343
|
const { unit: A, size: N } = v, w = Te(r).find((ge) => ge.name === b)?.type;
|
|
6344
6344
|
let D = 1, I = { unit: A, size: N }, P = !1, E = !1, z = !1;
|
|
6345
6345
|
const Q = vl({
|
|
6346
|
-
series:
|
|
6346
|
+
series: F,
|
|
6347
6347
|
isTimeBinningSeries: !0,
|
|
6348
6348
|
setTimeBinningInfoWhenNotProvided: l
|
|
6349
6349
|
}), q = !dt(T, r) || Q ? await gl({ queryObject: r, queryConfig: i, x: b, xFieldType: w, errorStrings: o, abortSignal: n }) : void 0;
|
|
@@ -6362,7 +6362,7 @@ async function Ii(t) {
|
|
|
6362
6362
|
chartLimits: d
|
|
6363
6363
|
});
|
|
6364
6364
|
let K = h.LineSeries, k = W.LineChartExceedsLimit;
|
|
6365
|
-
Co(
|
|
6365
|
+
Co(F) ? (K = h.BarSeries, k = W.BarElementExceedsLimit) : xo(F) && (K = h.RadarSeries, k = W.RadarChartExceedsLimit);
|
|
6366
6366
|
let Y = Oe({
|
|
6367
6367
|
count: D ?? 0,
|
|
6368
6368
|
seriesCount: y.length,
|
|
@@ -6383,7 +6383,7 @@ async function Ii(t) {
|
|
|
6383
6383
|
syncViewTimeZone: g,
|
|
6384
6384
|
returnStatisticsAggregatedIds: c,
|
|
6385
6385
|
abortSignal: n
|
|
6386
|
-
}), nt = "y" in
|
|
6386
|
+
}), nt = "y" in F && typeof F.y == "string" ? F.y : void 0;
|
|
6387
6387
|
if ({ data: x, firstOrLastWasSkipped: z } = bl({
|
|
6388
6388
|
chartConfig: e,
|
|
6389
6389
|
queryResults: yt,
|
|
@@ -6479,7 +6479,7 @@ async function Kl(t) {
|
|
|
6479
6479
|
returnFeaturesExtent: s,
|
|
6480
6480
|
chartLimits: l
|
|
6481
6481
|
});
|
|
6482
|
-
let
|
|
6482
|
+
let F = await ti({
|
|
6483
6483
|
queryObject: r,
|
|
6484
6484
|
uniqueQuery: p,
|
|
6485
6485
|
elementCount: 1,
|
|
@@ -6493,7 +6493,7 @@ async function Kl(t) {
|
|
|
6493
6493
|
errorStrings: c,
|
|
6494
6494
|
abortKey: a
|
|
6495
6495
|
});
|
|
6496
|
-
return me(e) && (
|
|
6496
|
+
return me(e) && (F = la({ chartConfig: e, data: F, calculateZScore: !1 })), f.data = { dataItems: F }, f;
|
|
6497
6497
|
}
|
|
6498
6498
|
async function ec(t) {
|
|
6499
6499
|
const {
|
|
@@ -6568,7 +6568,7 @@ async function rc(t) {
|
|
|
6568
6568
|
dataContextCountDistinctX: m,
|
|
6569
6569
|
dataContextCountDistinctY: g
|
|
6570
6570
|
} = B.scatterplotAggregationFields;
|
|
6571
|
-
let p, y,
|
|
6571
|
+
let p, y, F, b, T;
|
|
6572
6572
|
const C = e.get(u), x = e.get(c), v = e.get(d), A = e.get(f);
|
|
6573
6573
|
if (C != null && v !== void 0 && v !== null && x !== void 0 && x !== null && A !== void 0 && A !== null && !Number.isNaN(C + x + v + A)) {
|
|
6574
6574
|
const {
|
|
@@ -6582,7 +6582,7 @@ async function rc(t) {
|
|
|
6582
6582
|
abortKey: o,
|
|
6583
6583
|
abortSignal: l
|
|
6584
6584
|
});
|
|
6585
|
-
|
|
6585
|
+
F = Math.min(D.get(g) ?? Number.NaN, w), b = Math.min(D.get(m) ?? Number.NaN, w), T = b * F, p = x === C ? 0 : (x - C) / (b - 1), y = A === v ? 0 : (A - v) / (F - 1), e.set(B.scatterplotAggregationFields.xStep, p), e.set(B.scatterplotAggregationFields.yStep, y), e.set(B.scatterplotAggregationFields.rowCount, F), e.set(B.scatterplotAggregationFields.columnCount, b), e.set(B.scatterplotAggregationFields.realGridSize, T);
|
|
6586
6586
|
}
|
|
6587
6587
|
}
|
|
6588
6588
|
function ac(t) {
|
|
@@ -6636,11 +6636,11 @@ async function sc(t) {
|
|
|
6636
6636
|
dataContextXMaxField: g,
|
|
6637
6637
|
dataContextYMinField: p,
|
|
6638
6638
|
dataContextYMaxField: y,
|
|
6639
|
-
queryNumberOfFeatures:
|
|
6639
|
+
queryNumberOfFeatures: F,
|
|
6640
6640
|
queryNumberOfAggregatedFeatures: b
|
|
6641
6641
|
} = B.scatterplotAggregationFields;
|
|
6642
6642
|
let T;
|
|
6643
|
-
const C = e?.get(m) ?? Number.NaN, x = e?.get(g) ?? Number.NaN, v = e?.get(
|
|
6643
|
+
const C = e?.get(m) ?? Number.NaN, x = e?.get(g) ?? Number.NaN, v = e?.get(F) ?? Number.NaN, A = e?.get(p) ?? C, N = e?.get(y) ?? x;
|
|
6644
6644
|
if (C != null && A !== void 0 && A !== null && x !== void 0 && x !== null && N !== void 0 && N !== null && !Number.isNaN(C + x + A + N)) {
|
|
6645
6645
|
const L = j(r), { idField: M, isTraditionalTypeOID: w } = Ae(L), D = w ? M : "*", I = e?.get(B.scatterplotAggregationFields.xStep), P = e?.get(B.scatterplotAggregationFields.yStep), E = e?.get(B.scatterplotAggregationFields.realGridSize), z = e?.get(B.scatterplotAggregationFields.rowCount), Q = e?.get(B.scatterplotAggregationFields.columnCount), q = /* @__PURE__ */ new Map(), U = Te(r);
|
|
6646
6646
|
if (U?.forEach((k) => {
|
|
@@ -6749,7 +6749,7 @@ async function oc(t) {
|
|
|
6749
6749
|
dataContextYMinField: m,
|
|
6750
6750
|
dataContextYMaxField: g,
|
|
6751
6751
|
queryNumberOfFeatures: p
|
|
6752
|
-
} = B.scatterplotAggregationFields, { idField: y, isTraditionalTypeOID:
|
|
6752
|
+
} = B.scatterplotAggregationFields, { idField: y, isTraditionalTypeOID: F } = Ae(j(r)), b = F ? y : "*", T = [
|
|
6753
6753
|
{
|
|
6754
6754
|
statisticType: O.Count,
|
|
6755
6755
|
onStatisticField: b,
|
|
@@ -6797,18 +6797,18 @@ function lc(t) {
|
|
|
6797
6797
|
if (e && "stackedAttributes" in i && i.stackedAttributes) {
|
|
6798
6798
|
const f = _r(r, a), m = i.attributes[f.lowerBoundaryAlias], g = i.attributes[f.upperBoundaryAlias];
|
|
6799
6799
|
i.stackedAttributes.forEach((p) => {
|
|
6800
|
-
let y = p[f.stackAlias],
|
|
6801
|
-
typeof y == "number" && typeof n == "number" && (y *= n), typeof y == "number" && typeof n == "number" && (
|
|
6800
|
+
let y = p[f.stackAlias], F;
|
|
6801
|
+
typeof y == "number" && typeof n == "number" && (y *= n), typeof y == "number" && typeof n == "number" && (F = y + n);
|
|
6802
6802
|
const b = p[r], T = p[a];
|
|
6803
|
-
if (typeof y == "number" && typeof
|
|
6803
|
+
if (typeof y == "number" && typeof F == "number" && typeof b == "number" && typeof T == "number") {
|
|
6804
6804
|
const C = {
|
|
6805
6805
|
...p,
|
|
6806
6806
|
[r]: Rt({ value: b, valueMin: m, valueMax: g }),
|
|
6807
|
-
[a]: Rt({ value: T, valueMin: y, valueMax:
|
|
6807
|
+
[a]: Rt({ value: T, valueMin: y, valueMax: F }),
|
|
6808
6808
|
[o]: Math.min(m, g),
|
|
6809
6809
|
[l]: Math.max(m, g),
|
|
6810
6810
|
[u]: y,
|
|
6811
|
-
[c]:
|
|
6811
|
+
[c]: F
|
|
6812
6812
|
};
|
|
6813
6813
|
Array.isArray(p.aggregateIds) && p.aggregateIds.length !== wt && (C[_.uniqueIds] = p.aggregateIds), d.push(C);
|
|
6814
6814
|
}
|
|
@@ -6816,14 +6816,14 @@ function lc(t) {
|
|
|
6816
6816
|
} else {
|
|
6817
6817
|
const { expr: f, isInItem: m } = ii(i.attributes);
|
|
6818
6818
|
if (m && f && i.attributes[f] !== s) {
|
|
6819
|
-
let [g, p, y,
|
|
6820
|
-
g = Math.min(g, p), p = Math.max(g, p), y = Math.min(y,
|
|
6819
|
+
let [g, p, y, F] = i.attributes[f].split("|");
|
|
6820
|
+
g = Math.min(g, p), p = Math.max(g, p), y = Math.min(y, F), F = Math.max(y, F);
|
|
6821
6821
|
const b = {
|
|
6822
6822
|
...i.attributes,
|
|
6823
6823
|
[o]: g,
|
|
6824
6824
|
[l]: p,
|
|
6825
6825
|
[u]: y,
|
|
6826
|
-
[c]:
|
|
6826
|
+
[c]: F
|
|
6827
6827
|
};
|
|
6828
6828
|
b[r] = Rt({
|
|
6829
6829
|
value: b[r],
|
|
@@ -6832,7 +6832,7 @@ function lc(t) {
|
|
|
6832
6832
|
}), b[a] = Rt({
|
|
6833
6833
|
value: b[a],
|
|
6834
6834
|
valueMin: y,
|
|
6835
|
-
valueMax:
|
|
6835
|
+
valueMax: F
|
|
6836
6836
|
}), d = [b];
|
|
6837
6837
|
}
|
|
6838
6838
|
}
|
|
@@ -6860,17 +6860,17 @@ async function uc(t) {
|
|
|
6860
6860
|
let f = [];
|
|
6861
6861
|
const m = Te(e), g = ai(d).idFields, p = (m?.filter((C) => Nt(C) && C.name !== u && C.name !== c) ?? []).map(
|
|
6862
6862
|
(C) => C.name
|
|
6863
|
-
) ?? [], y = l?.additionalTooltipFields ?? [],
|
|
6863
|
+
) ?? [], y = l?.additionalTooltipFields ?? [], F = Array.from(
|
|
6864
6864
|
/* @__PURE__ */ new Set([u, c, ...g ?? [], ...p, ...y])
|
|
6865
6865
|
), b = pe(d);
|
|
6866
6866
|
if (b && !b.isTable) {
|
|
6867
6867
|
const { rendererField: C, rendererNormalizationField: x } = du(d?.renderer ?? void 0);
|
|
6868
|
-
ie(C) ||
|
|
6868
|
+
ie(C) || F.push(C), ie(x) || F.push(x);
|
|
6869
6869
|
}
|
|
6870
6870
|
const T = {
|
|
6871
6871
|
...i,
|
|
6872
6872
|
orderByFields: [`${u} ${oe.Ascending}`],
|
|
6873
|
-
outFields:
|
|
6873
|
+
outFields: F
|
|
6874
6874
|
};
|
|
6875
6875
|
return f = await xe({
|
|
6876
6876
|
queryObject: e,
|
|
@@ -6947,8 +6947,8 @@ async function Ca(t) {
|
|
|
6947
6947
|
}), { queryNumberOfFeatures: f, yStep: m } = B.scatterplotAggregationFields, {
|
|
6948
6948
|
maxScatterPointsBeforeAggregation: g,
|
|
6949
6949
|
scatterplot: { aggregationThreshold: p }
|
|
6950
|
-
} = Qe(s), y = d?.get(f) ?? Number.NaN,
|
|
6951
|
-
|
|
6950
|
+
} = Qe(s), y = d?.get(f) ?? Number.NaN, F = y >= (g ?? p), b = rs(r);
|
|
6951
|
+
F && await rc({
|
|
6952
6952
|
statsMap: d,
|
|
6953
6953
|
chartConfig: e,
|
|
6954
6954
|
queryObject: r,
|
|
@@ -6963,12 +6963,12 @@ async function Ca(t) {
|
|
|
6963
6963
|
queryObject: r,
|
|
6964
6964
|
statsMap: d,
|
|
6965
6965
|
numberOfFeatures: y,
|
|
6966
|
-
isAggregationMode:
|
|
6966
|
+
isAggregationMode: F,
|
|
6967
6967
|
useQueryAttributeBins: b
|
|
6968
6968
|
}), C = cc({
|
|
6969
6969
|
chartConfig: e,
|
|
6970
6970
|
rawData: T,
|
|
6971
|
-
isAggregationMode:
|
|
6971
|
+
isAggregationMode: F,
|
|
6972
6972
|
yStep: d.get(m),
|
|
6973
6973
|
useQueryAttributeBins: b
|
|
6974
6974
|
});
|
|
@@ -6987,7 +6987,7 @@ async function Ca(t) {
|
|
|
6987
6987
|
errorStrings: o,
|
|
6988
6988
|
abortSignal: u
|
|
6989
6989
|
}) : B.scatterplotSeries;
|
|
6990
|
-
c = { dataItems: C, r2: x, trendLinePoints: v, aggregated:
|
|
6990
|
+
c = { dataItems: C, r2: x, trendLinePoints: v, aggregated: F };
|
|
6991
6991
|
}
|
|
6992
6992
|
return c;
|
|
6993
6993
|
}
|
|
@@ -7048,7 +7048,7 @@ function Oi(t) {
|
|
|
7048
7048
|
return t !== void 0 && ("bins" in t ? e = t.bins : "dataItems" in t && (e = t.dataItems)), e;
|
|
7049
7049
|
}
|
|
7050
7050
|
function Ba(t) {
|
|
7051
|
-
return t ===
|
|
7051
|
+
return t === S.BoxPlotC2MultiFields || t === S.BoxPlotC4MultiFieldsAndCategory || t === S.BoxPlotC6MultiFieldsAndSplitBy;
|
|
7052
7052
|
}
|
|
7053
7053
|
function se(t) {
|
|
7054
7054
|
const { key: e, y: i, chartSubType: r, splitBy: a, splitByValue: n, showOutliers: s, standardizeValues: o } = t;
|
|
@@ -7063,19 +7063,19 @@ function mc(t) {
|
|
|
7063
7063
|
const { configSeries: e, boxPlotDataItem: i, yList: r, showOutliers: a } = t, n = G(e);
|
|
7064
7064
|
let s = !1;
|
|
7065
7065
|
switch (n) {
|
|
7066
|
-
case
|
|
7067
|
-
case
|
|
7068
|
-
case
|
|
7066
|
+
case S.BoxPlotC1MonoField:
|
|
7067
|
+
case S.BoxPlotC2MultiFields:
|
|
7068
|
+
case S.BoxPlotC3MonoFieldAndCategory:
|
|
7069
7069
|
s = ci({ dataItem: i, showOutliers: a });
|
|
7070
7070
|
break;
|
|
7071
|
-
case
|
|
7071
|
+
case S.BoxPlotC4MultiFieldsAndCategory:
|
|
7072
7072
|
s = r.some(
|
|
7073
7073
|
(o) => ci({ dataItem: i, y: o, showOutliers: a })
|
|
7074
7074
|
);
|
|
7075
7075
|
break;
|
|
7076
|
-
case
|
|
7077
|
-
case
|
|
7078
|
-
case
|
|
7076
|
+
case S.BoxPlotC5MonoFieldAndSplitBy:
|
|
7077
|
+
case S.BoxPlotC6MultiFieldsAndSplitBy:
|
|
7078
|
+
case S.BoxPlotC7MonoFieldAndCategoryAndSplitBy:
|
|
7079
7079
|
s = e.some(
|
|
7080
7080
|
(o) => ci({
|
|
7081
7081
|
dataItem: i,
|
|
@@ -7095,7 +7095,7 @@ function Di(t) {
|
|
|
7095
7095
|
}
|
|
7096
7096
|
function va(t, e) {
|
|
7097
7097
|
let i = [];
|
|
7098
|
-
return "y" in t && t.y !== void 0 && (e ===
|
|
7098
|
+
return "y" in t && t.y !== void 0 && (e === S.BarAndLineSplitByNoAggregation ? i = [
|
|
7099
7099
|
`${t.y.toString()}_${ce({
|
|
7100
7100
|
where: t.query?.where,
|
|
7101
7101
|
keepSurroundingQuotes: !1,
|
|
@@ -7181,7 +7181,7 @@ function lm(t) {
|
|
|
7181
7181
|
{
|
|
7182
7182
|
const c = l;
|
|
7183
7183
|
let { x: d, y: f } = e.series[0];
|
|
7184
|
-
G(e.series) ===
|
|
7184
|
+
G(e.series) === S.PieFromFields && (d = ye, f = Le);
|
|
7185
7185
|
const m = c[f];
|
|
7186
7186
|
u = c[d] !== void 0 && c[d] !== null && !on(m) && qe(Number(m), i);
|
|
7187
7187
|
}
|
|
@@ -7263,16 +7263,16 @@ function hc(t) {
|
|
|
7263
7263
|
c.forEach((m, g) => {
|
|
7264
7264
|
const p = d !== h.ComboLineAndBarSeries || g === h.BarSeries;
|
|
7265
7265
|
if (n) {
|
|
7266
|
-
let y = 0,
|
|
7266
|
+
let y = 0, F = 0, b = !1, T = !1;
|
|
7267
7267
|
for (let C = 0; C < m.length; C += 1) {
|
|
7268
7268
|
const x = f[m[C]];
|
|
7269
|
-
Number.isFinite(x) && (x < 0 ? (
|
|
7269
|
+
Number.isFinite(x) && (x < 0 ? (F += x, T = !0, p && (l = !0)) : (y += x, b = !0));
|
|
7270
7270
|
}
|
|
7271
|
-
s = b ? Math.max(s, y) : s, o = T ? Math.min(o,
|
|
7271
|
+
s = b ? Math.max(s, y) : s, o = T ? Math.min(o, F) : o, b && !T && (o = Math.min(o, y)), !b && T && (s = Math.max(s, F)), p && b && y <= 0 && (l = !0);
|
|
7272
7272
|
} else {
|
|
7273
7273
|
let y = 0;
|
|
7274
|
-
for (let
|
|
7275
|
-
const b = f[m[
|
|
7274
|
+
for (let F = 0; F < m.length; F += 1) {
|
|
7275
|
+
const b = f[m[F]];
|
|
7276
7276
|
y += b, s = Math.max(s, y), o = Math.min(o, y);
|
|
7277
7277
|
}
|
|
7278
7278
|
p && (s <= 0 || o <= 0) && (l = !0);
|
|
@@ -7305,11 +7305,11 @@ function gr(t) {
|
|
|
7305
7305
|
if ({ min: r, max: a } = Tt(d, (m) => m[u]), n.axes?.[0]?.valueFormat.type === h.DateAxisFormat && r !== void 0 && a !== void 0 && ([r, a] = [new Date(r).valueOf(), new Date(a).valueOf()]), c === h.BoxPlotSeries) {
|
|
7306
7306
|
e = Number.MAX_SAFE_INTEGER, i = Number.MIN_SAFE_INTEGER;
|
|
7307
7307
|
const m = le(l, o), g = G(l), p = "standardizeValues" in n ? n.standardizeValues === !0 : void 0, y = n.series.map(
|
|
7308
|
-
(
|
|
7308
|
+
(F) => F.visible !== !1 ? ce({ where: F.query?.where }) : ""
|
|
7309
7309
|
);
|
|
7310
|
-
y.length === 0 && y.push(" "), d.forEach((
|
|
7310
|
+
y.length === 0 && y.push(" "), d.forEach((F) => {
|
|
7311
7311
|
m.forEach((b) => {
|
|
7312
|
-
const T = g ===
|
|
7312
|
+
const T = g === S.BoxPlotC4MultiFieldsAndCategory ? b : void 0;
|
|
7313
7313
|
y.forEach((C) => {
|
|
7314
7314
|
const { min: x, max: v } = Sc({
|
|
7315
7315
|
y: T,
|
|
@@ -7317,7 +7317,7 @@ function gr(t) {
|
|
|
7317
7317
|
chartSubType: g,
|
|
7318
7318
|
showOutliers: !1,
|
|
7319
7319
|
standardizeValues: p,
|
|
7320
|
-
dataItem:
|
|
7320
|
+
dataItem: F
|
|
7321
7321
|
});
|
|
7322
7322
|
x != null && x < e && (e = x), v != null && v > i && (i = v);
|
|
7323
7323
|
});
|
|
@@ -7341,11 +7341,11 @@ function gr(t) {
|
|
|
7341
7341
|
case Fe.Side:
|
|
7342
7342
|
default: {
|
|
7343
7343
|
e = Number.MAX_SAFE_INTEGER, i = Number.MIN_SAFE_INTEGER, le(l, o).forEach((p) => {
|
|
7344
|
-
const { min: y, max:
|
|
7344
|
+
const { min: y, max: F } = Tt(
|
|
7345
7345
|
d,
|
|
7346
7346
|
(b) => b[p]
|
|
7347
7347
|
);
|
|
7348
|
-
y !== void 0 && y < e && (e = y),
|
|
7348
|
+
y !== void 0 && y < e && (e = y), F !== void 0 && F > i && (i = F);
|
|
7349
7349
|
});
|
|
7350
7350
|
break;
|
|
7351
7351
|
}
|
|
@@ -7407,7 +7407,7 @@ function um(t) {
|
|
|
7407
7407
|
}
|
|
7408
7408
|
function bc(t, e) {
|
|
7409
7409
|
const i = t;
|
|
7410
|
-
if (e?.[0] !== void 0 && G(e) ===
|
|
7410
|
+
if (e?.[0] !== void 0 && G(e) === S.PieFromFields) {
|
|
7411
7411
|
const { x: r, y: a } = e[0];
|
|
7412
7412
|
(Bi(t) ? i : i.dataItems).forEach((o) => (ye in o && r !== ye && (o[r] = o[r] !== void 0 ? o[r] : o[ye], delete o[ye]), Le in o && a !== Le && (o[a] = o[a] !== void 0 ? o[a] : o[Le], delete o[Le]), o));
|
|
7413
7413
|
}
|
|
@@ -7509,11 +7509,11 @@ function Bc(t) {
|
|
|
7509
7509
|
[f]: m[f]
|
|
7510
7510
|
}))
|
|
7511
7511
|
);
|
|
7512
|
-
} else u.valid && (a ===
|
|
7512
|
+
} else u.valid && (a === S.PieFromFields ? n = zt({
|
|
7513
7513
|
dataToConvert: c[0],
|
|
7514
7514
|
x: ye,
|
|
7515
7515
|
y: Le
|
|
7516
|
-
}) : a ===
|
|
7516
|
+
}) : a === S.BarAndLineFromFields ? n = zt({
|
|
7517
7517
|
dataToConvert: c[0],
|
|
7518
7518
|
x: i[0].x,
|
|
7519
7519
|
y: i[0].y
|
|
@@ -7539,7 +7539,7 @@ async function vc(t) {
|
|
|
7539
7539
|
returnStatisticsAggregatedIds: m,
|
|
7540
7540
|
popupTemplateFieldInfosEnabled: g,
|
|
7541
7541
|
view: p
|
|
7542
|
-
} = t, { series: y } = r,
|
|
7542
|
+
} = t, { series: y } = r, F = V(y), b = [], { maxOIDsPerSelectionQuery: T, maxElementsPerSelectionQuery: C } = Jt(), x = i && i.length > 0 ? Math.ceil(i.length / C) : void 0, v = Math.ceil(e.length / T), A = x ? x <= v : !1, N = (A ? x : v) ?? 1;
|
|
7543
7543
|
for (let M = 0; M < N; M += 1) {
|
|
7544
7544
|
const w = { ...a };
|
|
7545
7545
|
if (A && i) {
|
|
@@ -7557,7 +7557,7 @@ async function vc(t) {
|
|
|
7557
7557
|
});
|
|
7558
7558
|
w.objectIds = D;
|
|
7559
7559
|
}
|
|
7560
|
-
switch (
|
|
7560
|
+
switch (F) {
|
|
7561
7561
|
case h.HeatSeries:
|
|
7562
7562
|
b.push(
|
|
7563
7563
|
xa({
|
|
@@ -7690,7 +7690,7 @@ async function mm(t) {
|
|
|
7690
7690
|
view: g,
|
|
7691
7691
|
viewExtentUpdated: p,
|
|
7692
7692
|
runtimeDataFilters: y,
|
|
7693
|
-
ignoreViewExtent:
|
|
7693
|
+
ignoreViewExtent: F,
|
|
7694
7694
|
selectionData: b
|
|
7695
7695
|
} = t, { series: T } = e, { selectionItems: C, selectionOIDs: x } = b ?? {};
|
|
7696
7696
|
let v;
|
|
@@ -7700,7 +7700,7 @@ async function mm(t) {
|
|
|
7700
7700
|
queryObject: s,
|
|
7701
7701
|
chartConfig: e,
|
|
7702
7702
|
runtimeDataFilters: y,
|
|
7703
|
-
ignoreViewExtent:
|
|
7703
|
+
ignoreViewExtent: F,
|
|
7704
7704
|
view: g
|
|
7705
7705
|
}), I = re(e.series[0]?.query?.where), P = le(e.series), E = De(e.series[0].query?.where);
|
|
7706
7706
|
if (w && !Tc(w) && w.some((z) => N.objectIdField in z))
|
|
@@ -7785,26 +7785,26 @@ function Ac(t) {
|
|
|
7785
7785
|
}), u = j(i), c = u?.renderer;
|
|
7786
7786
|
switch (c?.type) {
|
|
7787
7787
|
case fe.Simple:
|
|
7788
|
-
r = n === h.HistogramSeries || n === h.ScatterSeries || s ===
|
|
7788
|
+
r = n === h.HistogramSeries || n === h.ScatterSeries || s === S.BarAndLineMonoField || s === S.BoxPlotC1MonoField || s === S.BoxPlotC2MultiFields || s === S.BoxPlotC3MonoFieldAndCategory || s === S.BarAndLineNoAggregation && a.length === 1 && !l;
|
|
7789
7789
|
break;
|
|
7790
7790
|
case fe.UniqueValue:
|
|
7791
7791
|
{
|
|
7792
7792
|
const f = c?.field, m = re(o.query?.where), { x: g } = o;
|
|
7793
|
-
r = (s ===
|
|
7793
|
+
r = (s === S.BoxPlotC5MonoFieldAndSplitBy || s === S.BoxPlotC6MultiFieldsAndSplitBy || s === S.BoxPlotC7MonoFieldAndCategoryAndSplitBy || s === S.BarAndLineSplitByNoAggregation || s === S.BarAndLineSplitBy) && f === m || (s === S.BoxPlotC3MonoFieldAndCategory || s === S.PieFromCategory || s === S.BarAndLineMonoField) && f === g || s === S.BarAndLineNoAggregation || s === S.PieNoAggregation || n === h.ScatterSeries;
|
|
7794
7794
|
}
|
|
7795
7795
|
break;
|
|
7796
7796
|
case fe.PieChart:
|
|
7797
|
-
r = s ===
|
|
7797
|
+
r = s === S.PieFromFields || s === S.BarAndLineFromFields || s === S.BarAndLineMultiFields || s === S.BarAndLineMonoField || s === S.BoxPlotC1MonoField || s === S.BoxPlotC2MultiFields || s === S.BoxPlotC3MonoFieldAndCategory || s === S.BoxPlotC4MultiFieldsAndCategory;
|
|
7798
7798
|
break;
|
|
7799
7799
|
case fe.ClassBreaks:
|
|
7800
|
-
r = n === h.HeatSeries || n === h.ScatterSeries || s ===
|
|
7800
|
+
r = n === h.HeatSeries || n === h.ScatterSeries || s === S.BarAndLineNoAggregation || s === S.PieNoAggregation;
|
|
7801
7801
|
break;
|
|
7802
7802
|
case fe.Dictionary:
|
|
7803
7803
|
case fe.DotDensity:
|
|
7804
7804
|
case fe.Heatmap:
|
|
7805
7805
|
break;
|
|
7806
7806
|
default:
|
|
7807
|
-
r = ee(u) && (s ===
|
|
7807
|
+
r = ee(u) && (s === S.BarAndLineMonoField || s === S.BarAndLineNoAggregation || s === S.BarAndLineSplitBy || s === S.BarAndLineSplitByNoAggregation);
|
|
7808
7808
|
break;
|
|
7809
7809
|
}
|
|
7810
7810
|
}
|
|
@@ -7849,32 +7849,32 @@ function Pc(t) {
|
|
|
7849
7849
|
const { color: m, label: g } = d;
|
|
7850
7850
|
let p;
|
|
7851
7851
|
Array.isArray(m) && m?.length === 4 ? p = m : m && "toRgba" in m && (p = m.toRgba());
|
|
7852
|
-
let y = !1,
|
|
7852
|
+
let y = !1, F = !0;
|
|
7853
7853
|
switch (l) {
|
|
7854
7854
|
case h.BarSeries:
|
|
7855
7855
|
case h.LineSeries:
|
|
7856
7856
|
case h.ComboLineAndBarSeries:
|
|
7857
7857
|
case h.RadarSeries:
|
|
7858
|
-
if (r !==
|
|
7858
|
+
if (r !== S.BarAndLineFromFields) {
|
|
7859
7859
|
const b = i.find((T) => T.query?.outStatistics?.[0]?.onStatisticField === f);
|
|
7860
7860
|
b !== void 0 && "y" in b ? f = [b.y].flat()[0] : f = "";
|
|
7861
7861
|
}
|
|
7862
|
-
y = r !==
|
|
7862
|
+
y = r !== S.BarAndLineFromFields || f === a[B.originalXValue];
|
|
7863
7863
|
break;
|
|
7864
7864
|
case h.PieSeries:
|
|
7865
|
-
y = r ===
|
|
7865
|
+
y = r === S.PieFromFields && f === a[B.originalXValue];
|
|
7866
7866
|
break;
|
|
7867
7867
|
case h.BoxPlotSeries:
|
|
7868
|
-
r ===
|
|
7868
|
+
r === S.BoxPlotC1MonoField || r === S.BoxPlotC3MonoFieldAndCategory ? y = f === i[0].y : f && (r === S.BoxPlotC2MultiFields || r === S.BoxPlotC4MultiFieldsAndCategory) && (y = i.map((T) => T.y).flat().includes(f)), F = !1;
|
|
7869
7869
|
break;
|
|
7870
7870
|
}
|
|
7871
7871
|
y && p && (s = {
|
|
7872
7872
|
type: ne.SMS,
|
|
7873
7873
|
color: p,
|
|
7874
|
-
label:
|
|
7874
|
+
label: F && g ? g : void 0
|
|
7875
7875
|
}, u != null && (s.outline = u), wa({
|
|
7876
7876
|
dataItem: a,
|
|
7877
|
-
symbolField: r ===
|
|
7877
|
+
symbolField: r === S.BarAndLineFromFields || r === S.PieFromFields ? B.rendererSymbolField : `${B.rendererSymbolField}_${f}`,
|
|
7878
7878
|
rendererSymbol: s,
|
|
7879
7879
|
rendererOrigin: n
|
|
7880
7880
|
}) && (o = !0));
|
|
@@ -7891,18 +7891,18 @@ function Mc(t) {
|
|
|
7891
7891
|
keepSurroundingQuotes: !1,
|
|
7892
7892
|
escape: !1
|
|
7893
7893
|
});
|
|
7894
|
-
o === null ? s = B.nullValue : i ===
|
|
7894
|
+
o === null ? s = B.nullValue : i === S.BarAndLineSplitBy && typeof e.y == "string" ? s = e.y : i === S.BarAndLineSplitByNoAggregation && typeof e.y == "string" ? s = `${e.y}_${o}` : s = `${o}`;
|
|
7895
7895
|
}
|
|
7896
7896
|
} else if (r === fe.PieChart)
|
|
7897
7897
|
switch (i) {
|
|
7898
|
-
case
|
|
7898
|
+
case S.BoxPlotC2MultiFields:
|
|
7899
7899
|
s = Array.isArray(e.y) ? e.y.flat() : e.y;
|
|
7900
7900
|
break;
|
|
7901
|
-
case
|
|
7902
|
-
case
|
|
7903
|
-
case
|
|
7904
|
-
case
|
|
7905
|
-
case
|
|
7901
|
+
case S.BarAndLineMonoField:
|
|
7902
|
+
case S.BarAndLineMultiFields:
|
|
7903
|
+
case S.BoxPlotC1MonoField:
|
|
7904
|
+
case S.BoxPlotC3MonoFieldAndCategory:
|
|
7905
|
+
case S.BoxPlotC4MultiFieldsAndCategory:
|
|
7906
7906
|
s = e.y;
|
|
7907
7907
|
break;
|
|
7908
7908
|
}
|
|
@@ -7960,7 +7960,7 @@ async function Oc(t) {
|
|
|
7960
7960
|
chartSubType: s,
|
|
7961
7961
|
rendererType: a,
|
|
7962
7962
|
dataItem: i
|
|
7963
|
-
}),
|
|
7963
|
+
}), F = ce({
|
|
7964
7964
|
where: p.query?.where,
|
|
7965
7965
|
normalize: !0,
|
|
7966
7966
|
keepSurroundingQuotes: !1,
|
|
@@ -7968,7 +7968,7 @@ async function Oc(t) {
|
|
|
7968
7968
|
});
|
|
7969
7969
|
g.set(y, {
|
|
7970
7970
|
...i,
|
|
7971
|
-
[o]:
|
|
7971
|
+
[o]: F
|
|
7972
7972
|
});
|
|
7973
7973
|
}
|
|
7974
7974
|
}) : e[0].type === h.HeatSeries && a === fe.ClassBreaks ? g.set(B.rendererSymbolField, {
|
|
@@ -7983,7 +7983,7 @@ async function Oc(t) {
|
|
|
7983
7983
|
try {
|
|
7984
7984
|
const p = Array.from(g.entries()), y = l.clone();
|
|
7985
7985
|
y.layer = l.layer;
|
|
7986
|
-
const
|
|
7986
|
+
const F = r?.uniqueValueInfos;
|
|
7987
7987
|
for (let b = 0; b < p.length; b += 1) {
|
|
7988
7988
|
const [T, C] = p[b];
|
|
7989
7989
|
if (pr({
|
|
@@ -8002,7 +8002,7 @@ async function Oc(t) {
|
|
|
8002
8002
|
A && (d.color = A.length === 4 ? A : [...A, 255]);
|
|
8003
8003
|
}
|
|
8004
8004
|
const v = await oi.getLegendLabel(y);
|
|
8005
|
-
v != null && v !== "" && (d.label = v, d.uniqueValue =
|
|
8005
|
+
v != null && v !== "" && (d.label = v, d.uniqueValue = F?.find((A) => A.label === v)?.value ?? void 0);
|
|
8006
8006
|
}
|
|
8007
8007
|
c?.set(JSON.stringify(C), d);
|
|
8008
8008
|
}
|
|
@@ -8315,16 +8315,16 @@ async function Qc(t) {
|
|
|
8315
8315
|
// for #17296
|
|
8316
8316
|
};
|
|
8317
8317
|
else {
|
|
8318
|
-
const g = i.groupByFieldsForStatistics?.[0] ?? "", p = e.colorMatch === !0 && Ac({ chartConfig: e, queryObject: r }), y = m.some((x) => x.query?.fetchNullValues),
|
|
8318
|
+
const g = i.groupByFieldsForStatistics?.[0] ?? "", p = e.colorMatch === !0 && Ac({ chartConfig: e, queryObject: r }), y = m.some((x) => x.query?.fetchNullValues), F = /* @__PURE__ */ new Map();
|
|
8319
8319
|
for (const x of f) {
|
|
8320
8320
|
const { groupKey: v } = Sr(x.attributes[g], y);
|
|
8321
|
-
v === B.nullValue && !y || (
|
|
8321
|
+
v === B.nullValue && !y || (F.has(v) || F.set(v, []), F.get(v).push(x.attributes));
|
|
8322
8322
|
}
|
|
8323
8323
|
const b = c.fields.find(({ name: x }) => x.toLowerCase() === "value")?.name, T = Vc(
|
|
8324
|
-
|
|
8324
|
+
F,
|
|
8325
8325
|
b
|
|
8326
8326
|
), C = [];
|
|
8327
|
-
|
|
8327
|
+
F.forEach((x) => {
|
|
8328
8328
|
const v = {}, A = x[0][g], { display: N, original: L } = Sr(A, y);
|
|
8329
8329
|
if (v[g] = N, v[B.xAxisField] = N, v[B.originalXValue] = L, p) {
|
|
8330
8330
|
const M = hr({
|
|
@@ -8458,8 +8458,8 @@ async function hm(t) {
|
|
|
8458
8458
|
// default sorting ascending for split-by field
|
|
8459
8459
|
geometry: e?.dataFilters?.geometry
|
|
8460
8460
|
};
|
|
8461
|
-
let
|
|
8462
|
-
s?.length === 0 ?
|
|
8461
|
+
let F = "";
|
|
8462
|
+
s?.length === 0 ? F = Ae(i).idField : s && ([F] = s);
|
|
8463
8463
|
let b = i ? ee(i) ? await Ma({
|
|
8464
8464
|
layer: i,
|
|
8465
8465
|
category: e?.series[0].x ?? "",
|
|
@@ -8485,7 +8485,7 @@ async function hm(t) {
|
|
|
8485
8485
|
getKey: (L) => L === null ? null : L?.toString()
|
|
8486
8486
|
});
|
|
8487
8487
|
}
|
|
8488
|
-
return { categoriesArray: b, seriesLimitReached: A, totalSeriesCount: v, splitByFieldType: d, numericalField:
|
|
8488
|
+
return { categoriesArray: b, seriesLimitReached: A, totalSeriesCount: v, splitByFieldType: d, numericalField: F };
|
|
8489
8489
|
}
|
|
8490
8490
|
function Sm(t, e) {
|
|
8491
8491
|
let i = e === "";
|
|
@@ -8642,7 +8642,7 @@ function Oe(t) {
|
|
|
8642
8642
|
maxLineUniqueSeriesCountTotal: g,
|
|
8643
8643
|
maxLineTwoSeriesCountPerSeries: p,
|
|
8644
8644
|
maxLineTwoSeriesCountTotal: y,
|
|
8645
|
-
maxLineThreePlusSeriesCountPerSeries:
|
|
8645
|
+
maxLineThreePlusSeriesCountPerSeries: F,
|
|
8646
8646
|
maxLineThreePlusSeriesCountTotal: b,
|
|
8647
8647
|
maxRadarChartSeriesCount: T,
|
|
8648
8648
|
maxRadarUniqueSeriesCountTotal: C,
|
|
@@ -8675,7 +8675,7 @@ function Oe(t) {
|
|
|
8675
8675
|
case h.LineSeries:
|
|
8676
8676
|
{
|
|
8677
8677
|
const Y = e / i;
|
|
8678
|
-
i <= (m ?? q) ? i === 0 ? s = !0 : i === 1 ? s = e <= (g ?? U) : i === 2 ? s = e <= (y ?? U) && Y <= p : i > 2 && (s = e <= (b ?? U) && Y <=
|
|
8678
|
+
i <= (m ?? q) ? i === 0 ? s = !0 : i === 1 ? s = e <= (g ?? U) : i === 2 ? s = e <= (y ?? U) && Y <= p : i > 2 && (s = e <= (b ?? U) && Y <= F) : s = !1;
|
|
8679
8679
|
}
|
|
8680
8680
|
break;
|
|
8681
8681
|
case h.RadarSeries:
|
|
@@ -8873,7 +8873,7 @@ function eu(t) {
|
|
|
8873
8873
|
return t.orderOptions?.orderByFields?.map((e) => Kc(e).fieldToSort) ?? [];
|
|
8874
8874
|
}
|
|
8875
8875
|
function qa(t) {
|
|
8876
|
-
return t ===
|
|
8876
|
+
return t === S.BarAndLineSplitBy || t === S.BarAndLineSplitByNoAggregation || t === S.BoxPlotC5MonoFieldAndSplitBy || t === S.BoxPlotC6MultiFieldsAndSplitBy || t === S.BoxPlotC7MonoFieldAndCategoryAndSplitBy;
|
|
8877
8877
|
}
|
|
8878
8878
|
function Pm(t, e) {
|
|
8879
8879
|
let { selectionItems: i } = t ?? {};
|
|
@@ -8923,7 +8923,7 @@ function tu(t = {
|
|
|
8923
8923
|
}), o;
|
|
8924
8924
|
}
|
|
8925
8925
|
function Im(t, e) {
|
|
8926
|
-
return (t ===
|
|
8926
|
+
return (t === S.BarAndLineNoAggregation || t === S.BarAndLineSplitByNoAggregation) && e !== void 0 ? e.x : B.xAxisField;
|
|
8927
8927
|
}
|
|
8928
8928
|
function Om(t) {
|
|
8929
8929
|
const { r: e, g: i, b: r, a = 1 } = t, n = Math.round((1 - a) * 255 + a * e), s = Math.round((1 - a) * 255 + a * i), o = Math.round((1 - a) * 255 + a * r);
|
|
@@ -8993,15 +8993,15 @@ function ri(t) {
|
|
|
8993
8993
|
dateField: s,
|
|
8994
8994
|
useViewTimeZone: o,
|
|
8995
8995
|
returnStatisticsAggregatedIds: l
|
|
8996
|
-
} = t, { where: u, outStatistics: c, geometry: d, distance: f, units: m, timeExtent: g, returnDistinctValues: p } = r ?? {}, y = j(i),
|
|
8997
|
-
let b =
|
|
8996
|
+
} = t, { where: u, outStatistics: c, geometry: d, distance: f, units: m, timeExtent: g, returnDistinctValues: p } = r ?? {}, y = j(i), F = pe(y);
|
|
8997
|
+
let b = F?.createQuery() ?? new Gi(), T;
|
|
8998
8998
|
const C = ai(y).idFields;
|
|
8999
8999
|
if (e === "AttributeBinsQuery" && r?.objectIds?.[0] !== void 0 && C && (T = `${C} IN (${r.objectIds.join(",")})`), e === "AttributeBinsQuery" && (b = new vn(b.toJSON()), Te(i).find((N) => N.name === s)?.type !== Z.DateOnly)) {
|
|
9000
9000
|
const N = Intl.DateTimeFormat().resolvedOptions().timeZone, L = o && a && "timeZone" in a ? a.timeZone : void 0;
|
|
9001
9001
|
let M = n ?? L ?? N;
|
|
9002
9002
|
M === "unknown" ? M = "Etc/UTC" : M === "system" && (M = N), b.outTimeZone = M;
|
|
9003
9003
|
}
|
|
9004
|
-
if (b.where = J([b.where, u, T]), "returnDistinctValues" in b &&
|
|
9004
|
+
if (b.where = J([b.where, u, T]), "returnDistinctValues" in b && F?.capabilities?.query?.supportsDistinct && (b.returnDistinctValues = p ?? !1), c !== void 0 && F?.capabilities?.query?.supportsStatistics) {
|
|
9005
9005
|
const v = as(y);
|
|
9006
9006
|
b.outStatistics = c.filter(
|
|
9007
9007
|
(A) => A.statisticType !== O.EnvelopeAggregate || v
|
|
@@ -9036,7 +9036,7 @@ function su(t) {
|
|
|
9036
9036
|
view: o,
|
|
9037
9037
|
syncViewTimeZone: l,
|
|
9038
9038
|
returnStatisticsAggregatedIds: u
|
|
9039
|
-
} = t, { unit: c, size: d, timeAggregationType: f, start: m, end: g, offset: p, outTimeZone: y, firstDayOfWeek:
|
|
9039
|
+
} = t, { unit: c, size: d, timeAggregationType: f, start: m, end: g, offset: p, outTimeZone: y, firstDayOfWeek: F } = r, b = j(e), T = ri({
|
|
9040
9040
|
queryType: "AttributeBinsQuery",
|
|
9041
9041
|
queryObject: e,
|
|
9042
9042
|
queryConfig: i,
|
|
@@ -9054,7 +9054,7 @@ function su(t) {
|
|
|
9054
9054
|
start: m,
|
|
9055
9055
|
end: g,
|
|
9056
9056
|
offset: p ? { unit: p.unit, value: p.size } : null
|
|
9057
|
-
},
|
|
9057
|
+
}, F !== void 0 && (T.binParameters.firstDayOfWeek = F), T.binParameters.type === "date" && (b?.capabilities?.queryAttributeBins?.supportsSnapToData && (T.binParameters.snapToData = nu(f)), b?.capabilities?.queryAttributeBins?.supportsReturnFullIntervalBin && (T.binParameters.returnFullIntervalBin = !0)), !ie(n)) {
|
|
9058
9058
|
const v = pe(b)?.fields.find((A) => A.name === n)?.type;
|
|
9059
9059
|
(!v || v === "string" || v === "integer" || v === "small-integer" || v === "big-integer" || v === "double") && (T.binParameters.stackBy = {
|
|
9060
9060
|
type: "field",
|
|
@@ -9173,13 +9173,13 @@ function lu(t) {
|
|
|
9173
9173
|
type: "fixed-interval",
|
|
9174
9174
|
interval: 1
|
|
9175
9175
|
}, y.lowerBoundaryAlias = _.heatChartLowerBoundaryAlias, y.upperBoundaryAlias = _.heatChartUpperBoundaryAlias, o !== void 0 && (y.binParameters.firstDayOfWeek = o);
|
|
9176
|
-
const
|
|
9176
|
+
const F = br({
|
|
9177
9177
|
temporalBinning: n,
|
|
9178
9178
|
xOrY: r,
|
|
9179
9179
|
xOrYFieldType: g,
|
|
9180
9180
|
addIntervalStatement: !1,
|
|
9181
9181
|
includeLeapDay: l
|
|
9182
|
-
}), { field: b, expression: T, start: C, end: x } =
|
|
9182
|
+
}), { field: b, expression: T, start: C, end: x } = F;
|
|
9183
9183
|
b ? y.binParameters.field = b : T && (y.binParameters.expression = T, y.binParameters.expressionValueType = "integer", y.binParameters.type === "fixed-interval" && (C !== void 0 && (y.binParameters.start = C), x !== void 0 && (y.binParameters.end = x)));
|
|
9184
9184
|
const v = br({
|
|
9185
9185
|
temporalBinning: s,
|
|
@@ -9446,7 +9446,7 @@ function Wa(t) {
|
|
|
9446
9446
|
objectIds: p,
|
|
9447
9447
|
spatialRelationship: y
|
|
9448
9448
|
} = l ?? {}, {
|
|
9449
|
-
where:
|
|
9449
|
+
where: F,
|
|
9450
9450
|
gdbVersion: b,
|
|
9451
9451
|
timeExtent: T,
|
|
9452
9452
|
geometry: C,
|
|
@@ -9455,7 +9455,7 @@ function Wa(t) {
|
|
|
9455
9455
|
objectIds: A,
|
|
9456
9456
|
spatialRelationship: N
|
|
9457
9457
|
} = r ?? {}, L = o[0], { query: M } = L, { where: w } = M ?? {}, D = G(o), I = { ...M };
|
|
9458
|
-
return I.where = J([u,
|
|
9458
|
+
return I.where = J([u, F]), D !== S.BarAndLineSplitBy && D !== S.BoxPlotC5MonoFieldAndSplitBy && D !== S.BoxPlotC7MonoFieldAndCategoryAndSplitBy && D !== S.BoxPlotC6MultiFieldsAndSplitBy && D !== S.BarAndLineSplitByNoAggregation && (I.where = J([I.where, w])), i.orderOptions?.orderByFields !== void 0 && (I.orderByFields = i.orderOptions.orderByFields), I.gdbVersion = b ?? c, I.timeExtent = ru(s?.timeExtent, T ?? d), I.geometry = ee(e) ? Zs({
|
|
9459
9459
|
queryObject: e,
|
|
9460
9460
|
defaultGeometry: C ?? f,
|
|
9461
9461
|
filterByViewExtent: a,
|
|
@@ -9570,7 +9570,7 @@ function Au(t) {
|
|
|
9570
9570
|
splitByField: l
|
|
9571
9571
|
} = t, u = _.outStatistics;
|
|
9572
9572
|
if (e.outStatistics?.[0] !== void 0) {
|
|
9573
|
-
n !==
|
|
9573
|
+
n !== S.PieFromFields && n !== S.BarAndLineFromFields && (e.outStatistics[0].outStatisticFieldName = r ? u.outStatisticFieldName : [i].flat()[0]);
|
|
9574
9574
|
const { outStatistics: c } = e;
|
|
9575
9575
|
for (let d = 0; d < c.length; d += 1) {
|
|
9576
9576
|
const f = c[d];
|
|
@@ -9647,7 +9647,7 @@ function wu(t) {
|
|
|
9647
9647
|
unit: a,
|
|
9648
9648
|
runsOnClientQueryEngine: o
|
|
9649
9649
|
});
|
|
9650
|
-
e.orderByFields = l, e.groupByFieldsForStatistics = l, n ===
|
|
9650
|
+
e.orderByFields = l, e.groupByFieldsForStatistics = l, n === S.BarAndLineSplitBy && !ie(r) ? e.groupByFieldsForStatistics.push(r) : n === S.BarAndLineNoAggregation && (e.groupByFieldsForStatistics = s, e.outStatistics = [
|
|
9651
9651
|
{
|
|
9652
9652
|
onStatisticField: s.length > 1 ? "*" : s[0],
|
|
9653
9653
|
outStatisticFieldName: `COUNT_${s[0]}`,
|
|
@@ -9662,7 +9662,7 @@ function Ha(t) {
|
|
|
9662
9662
|
const a = Ni(e, r);
|
|
9663
9663
|
if (a !== void 0) {
|
|
9664
9664
|
const n = G(e.series);
|
|
9665
|
-
if (n ===
|
|
9665
|
+
if (n === S.PieFromFields || n === S.BarAndLineFromFields) {
|
|
9666
9666
|
if (i.outStatistics?.[0] !== void 0) {
|
|
9667
9667
|
const s = (u, c) => u.statisticType === O.EnvelopeAggregate === c, o = i.outStatistics.filter((u) => s(u, !0)), l = i.outStatistics.filter((u) => s(u, !1));
|
|
9668
9668
|
l.splice(a), i.outStatistics = [...l, ...o];
|
|
@@ -9688,47 +9688,47 @@ function _i(t) {
|
|
|
9688
9688
|
seriesConfig: d,
|
|
9689
9689
|
queryObject: r
|
|
9690
9690
|
});
|
|
9691
|
-
let y = /* @__PURE__ */ new Map(),
|
|
9691
|
+
let y = /* @__PURE__ */ new Map(), F = !1, b = !1, T = !1, C = !1, x = !1, v = {};
|
|
9692
9692
|
if (f !== void 0) {
|
|
9693
9693
|
v = Ve(f);
|
|
9694
9694
|
const E = re(f.where);
|
|
9695
9695
|
let z = "";
|
|
9696
9696
|
switch (i.fetchNullValues !== !0 && (m !== B.boxPlot.boxPlotCategory && (z = `${m} IS NOT NULL`), E.trim() !== "" && E !== m && !De(f.where) && (z = J([z, `${E} IS NOT NULL`]))), c) {
|
|
9697
|
-
case
|
|
9698
|
-
y = vu(u), C = !0,
|
|
9697
|
+
case S.BarAndLineSplitBy: {
|
|
9698
|
+
y = vu(u), C = !0, F = !0, b = !0;
|
|
9699
9699
|
break;
|
|
9700
9700
|
}
|
|
9701
|
-
case
|
|
9701
|
+
case S.BarAndLineMultiFields:
|
|
9702
9702
|
Lu(v, u), b = !0;
|
|
9703
9703
|
break;
|
|
9704
|
-
case
|
|
9705
|
-
case
|
|
9704
|
+
case S.PieFromFields:
|
|
9705
|
+
case S.BarAndLineFromFields:
|
|
9706
9706
|
z = "", T = !0, b = !0;
|
|
9707
9707
|
break;
|
|
9708
|
-
case
|
|
9709
|
-
case
|
|
9708
|
+
case S.BarAndLineMonoField:
|
|
9709
|
+
case S.PieFromCategory:
|
|
9710
9710
|
b = !0;
|
|
9711
9711
|
break;
|
|
9712
|
-
case
|
|
9713
|
-
case
|
|
9712
|
+
case S.BoxPlotC1MonoField:
|
|
9713
|
+
case S.BoxPlotC2MultiFields:
|
|
9714
9714
|
T = !0, x = !0;
|
|
9715
9715
|
break;
|
|
9716
|
-
case
|
|
9717
|
-
case
|
|
9718
|
-
case
|
|
9719
|
-
case
|
|
9720
|
-
case
|
|
9716
|
+
case S.BoxPlotC3MonoFieldAndCategory:
|
|
9717
|
+
case S.BoxPlotC4MultiFieldsAndCategory:
|
|
9718
|
+
case S.BoxPlotC5MonoFieldAndSplitBy:
|
|
9719
|
+
case S.BoxPlotC6MultiFieldsAndSplitBy:
|
|
9720
|
+
case S.BoxPlotC7MonoFieldAndCategoryAndSplitBy: {
|
|
9721
9721
|
x = !0, C = !0, T = !0;
|
|
9722
9722
|
break;
|
|
9723
9723
|
}
|
|
9724
|
-
case
|
|
9725
|
-
case
|
|
9726
|
-
case
|
|
9724
|
+
case S.PieNoAggregation:
|
|
9725
|
+
case S.BarAndLineNoAggregation:
|
|
9726
|
+
case S.BarAndLineSplitByNoAggregation:
|
|
9727
9727
|
}
|
|
9728
9728
|
if (b && Au({
|
|
9729
9729
|
uniqueQuery: v,
|
|
9730
9730
|
y: g,
|
|
9731
|
-
useGenericOutStatFieldName:
|
|
9731
|
+
useGenericOutStatFieldName: F,
|
|
9732
9732
|
queryObject: r,
|
|
9733
9733
|
chartSubType: c,
|
|
9734
9734
|
isTimeBinningSeries: p,
|
|
@@ -9983,21 +9983,21 @@ function Ee(t) {
|
|
|
9983
9983
|
return n !== "" && s !== "" && (s === null ? o = `${n} IS NULL` : o = `${n}=${s}`), o;
|
|
9984
9984
|
}
|
|
9985
9985
|
function Ga(t) {
|
|
9986
|
-
let e =
|
|
9987
|
-
return t[0].query?.outStatistics === void 0 ? e =
|
|
9986
|
+
let e = S.PieFromCategory;
|
|
9987
|
+
return t[0].query?.outStatistics === void 0 ? e = S.PieNoAggregation : t[0].query?.groupByFieldsForStatistics === void 0 && (e = S.PieFromFields), e;
|
|
9988
9988
|
}
|
|
9989
9989
|
function Ua(t) {
|
|
9990
|
-
let e =
|
|
9990
|
+
let e = S.BarAndLineMonoField;
|
|
9991
9991
|
const i = t[0].query?.where;
|
|
9992
|
-
return t[0].query?.groupByFieldsForStatistics === void 0 && (t[0].query?.outStatistics ?? []).length > 0 ? e =
|
|
9992
|
+
return t[0].query?.groupByFieldsForStatistics === void 0 && (t[0].query?.outStatistics ?? []).length > 0 ? e = S.BarAndLineFromFields : i === void 0 && t[0].query?.outStatistics === void 0 ? e = S.BarAndLineNoAggregation : De(i) ? t.length > 1 && (e = S.BarAndLineMultiFields) : e = t[0].query?.outStatistics === void 0 ? S.BarAndLineSplitByNoAggregation : S.BarAndLineSplitBy, e;
|
|
9993
9993
|
}
|
|
9994
9994
|
function Eu(t) {
|
|
9995
|
-
let e =
|
|
9995
|
+
let e = S.BoxPlotC1MonoField;
|
|
9996
9996
|
const i = t.length === 1, r = t.find((o) => o.type === h.LineSeries) ?? t[0], { x: a } = r, n = "y" in r ? r.y : "", s = r.query?.where;
|
|
9997
|
-
return a === Zt ? typeof n == "object" && n.length > 1 ? De(s) ? i && (e =
|
|
9997
|
+
return a === Zt ? typeof n == "object" && n.length > 1 ? De(s) ? i && (e = S.BoxPlotC2MultiFields) : e = S.BoxPlotC6MultiFieldsAndSplitBy : i ? e = S.BoxPlotC1MonoField : De(s) || (e = S.BoxPlotC5MonoFieldAndSplitBy) : i ? e = S.BoxPlotC3MonoFieldAndCategory : De(s) ? e = S.BoxPlotC4MultiFieldsAndCategory : e = S.BoxPlotC7MonoFieldAndCategoryAndSplitBy, e;
|
|
9998
9998
|
}
|
|
9999
9999
|
function G(t) {
|
|
10000
|
-
let e =
|
|
10000
|
+
let e = S.NonSpecific;
|
|
10001
10001
|
if (t?.[0] !== void 0)
|
|
10002
10002
|
switch (V(t)) {
|
|
10003
10003
|
case h.PieSeries:
|
|
@@ -10016,14 +10016,14 @@ function G(t) {
|
|
|
10016
10016
|
return e;
|
|
10017
10017
|
}
|
|
10018
10018
|
function Ru(t) {
|
|
10019
|
-
return G(t.series) !==
|
|
10019
|
+
return G(t.series) !== S.PieNoAggregation;
|
|
10020
10020
|
}
|
|
10021
10021
|
function qu(t) {
|
|
10022
10022
|
let e = !0;
|
|
10023
10023
|
const i = V(t.series);
|
|
10024
10024
|
if (i === h.BarSeries || i === h.LineSeries || i === h.ComboLineAndBarSeries) {
|
|
10025
10025
|
const r = G(t.series);
|
|
10026
|
-
e = r !==
|
|
10026
|
+
e = r !== S.BarAndLineNoAggregation && r !== S.BarAndLineSplitByNoAggregation;
|
|
10027
10027
|
}
|
|
10028
10028
|
return e;
|
|
10029
10029
|
}
|
|
@@ -10063,7 +10063,7 @@ function Re(t) {
|
|
|
10063
10063
|
let n = !1;
|
|
10064
10064
|
if (!ee(a) && Be(e) && e.binTemporalData !== !1 && i === h.DateAxisFormat) {
|
|
10065
10065
|
const s = G([e]);
|
|
10066
|
-
if (e.temporalBinning && s !==
|
|
10066
|
+
if (e.temporalBinning && s !== S.BarAndLineNoAggregation && s !== S.BarAndLineSplitByNoAggregation) {
|
|
10067
10067
|
const { unit: o, size: l } = e.temporalBinning;
|
|
10068
10068
|
n = r === !0 || l !== void 0 && l > 0 && o !== void 0;
|
|
10069
10069
|
}
|
|
@@ -10118,7 +10118,7 @@ function Za(t, e) {
|
|
|
10118
10118
|
return Be(t.series[0]) && Be(e.series[0]) && (t.series[0].binTemporalData ?? B.binTemporalData) !== (e.series[0].binTemporalData ?? B.binTemporalData);
|
|
10119
10119
|
}
|
|
10120
10120
|
function Ja(t, e) {
|
|
10121
|
-
const i = t.axes?.[0].valueFormat.type, r = e.axes?.[0].valueFormat.type, a = G(e.series), n = a ===
|
|
10121
|
+
const i = t.axes?.[0].valueFormat.type, r = e.axes?.[0].valueFormat.type, a = G(e.series), n = a === S.BarAndLineNoAggregation || a === S.BarAndLineSplitByNoAggregation, s = i === h.DateAxisFormat && r === h.NumberAxisFormat, o = i === h.NumberAxisFormat && r === h.DateAxisFormat;
|
|
10122
10122
|
return i !== r && (n || s || o);
|
|
10123
10123
|
}
|
|
10124
10124
|
function _u(t) {
|
|
@@ -10292,7 +10292,7 @@ function xg(t) {
|
|
|
10292
10292
|
chartLimits: c
|
|
10293
10293
|
} = t, { series: d } = i, { series: f } = e, m = V(d);
|
|
10294
10294
|
let g = !1, p = !1, y = !1;
|
|
10295
|
-
const
|
|
10295
|
+
const F = {
|
|
10296
10296
|
common: {
|
|
10297
10297
|
layerChanged: !1,
|
|
10298
10298
|
queryChanged: !1,
|
|
@@ -10322,22 +10322,22 @@ function xg(t) {
|
|
|
10322
10322
|
imageryAoiChanged: !1
|
|
10323
10323
|
}
|
|
10324
10324
|
};
|
|
10325
|
-
switch (
|
|
10325
|
+
switch (F.common.queryChanged = Xa({
|
|
10326
10326
|
previousConfig: e,
|
|
10327
10327
|
newConfig: i,
|
|
10328
10328
|
behaviorAfterLimit: c?.behaviorAfterLimit
|
|
10329
|
-
}),
|
|
10329
|
+
}), F.common.configFiltersChanged = Vu(e, i), F.common.xOrYChanged = $u(f, d), F.common.filterBySelectionChanged = Ya(
|
|
10330
10330
|
r,
|
|
10331
10331
|
o
|
|
10332
|
-
),
|
|
10332
|
+
), F.common.dataForFilterBySelectionChanged = Hu({
|
|
10333
10333
|
previousSelectionOIDs: a,
|
|
10334
10334
|
selectionData: l,
|
|
10335
10335
|
filterBySelection: o
|
|
10336
|
-
}),
|
|
10336
|
+
}), F.common.binTemporalDataChanged = Za(e, i), F.common.valueFormatChangeRequiresNewData = Ja(
|
|
10337
10337
|
e,
|
|
10338
10338
|
i
|
|
10339
|
-
),
|
|
10340
|
-
...
|
|
10339
|
+
), F.common = {
|
|
10340
|
+
...F.common,
|
|
10341
10341
|
..._u({
|
|
10342
10342
|
previousSeries: f,
|
|
10343
10343
|
newConfig: i,
|
|
@@ -10346,7 +10346,7 @@ function xg(t) {
|
|
|
10346
10346
|
})
|
|
10347
10347
|
}, m) {
|
|
10348
10348
|
case h.HistogramSeries:
|
|
10349
|
-
|
|
10349
|
+
F.histogram.dataPropsChanged = vs(f, d) || Bs(
|
|
10350
10350
|
f,
|
|
10351
10351
|
d
|
|
10352
10352
|
);
|
|
@@ -10354,32 +10354,32 @@ function xg(t) {
|
|
|
10354
10354
|
case h.LineSeries:
|
|
10355
10355
|
case h.BarSeries:
|
|
10356
10356
|
case h.ComboLineAndBarSeries:
|
|
10357
|
-
|
|
10357
|
+
F.common.numberOfSeriesChanged = xr(f, d);
|
|
10358
10358
|
break;
|
|
10359
10359
|
case h.BoxPlotSeries:
|
|
10360
|
-
me(e) && me(i) && (
|
|
10360
|
+
me(e) && me(i) && (F.common.numberOfSeriesChanged = xr(f, d), F.boxPlot.showMeanChanged = Ka(e, i));
|
|
10361
10361
|
break;
|
|
10362
10362
|
case h.GaugeSeries:
|
|
10363
|
-
|
|
10363
|
+
F.gauge.valueConversionChanged = en(e, i), F.gauge.minMaxFromFieldsChanged = tn(
|
|
10364
10364
|
e,
|
|
10365
10365
|
i
|
|
10366
10366
|
);
|
|
10367
10367
|
break;
|
|
10368
10368
|
case h.HeatSeries:
|
|
10369
|
-
Je(e) && Je(i) && (
|
|
10369
|
+
Je(e) && Je(i) && (F.heatChart.binningChanged = rn(e, i), F.heatChart.hideEmptyRowsAndColumnsChanged = zu(
|
|
10370
10370
|
e,
|
|
10371
10371
|
i
|
|
10372
|
-
),
|
|
10372
|
+
), F.heatChart.includeLeapDay = Qu(e, i));
|
|
10373
10373
|
break;
|
|
10374
10374
|
case h.ScatterSeries:
|
|
10375
|
-
|
|
10375
|
+
F.scatterPlot.tooltipFieldsChanged = Wu({
|
|
10376
10376
|
previousConfig: e,
|
|
10377
10377
|
newConfig: i,
|
|
10378
10378
|
fieldList: n
|
|
10379
|
-
}), ee(s) && (
|
|
10379
|
+
}), ee(s) && (F.scatterPlot.imageryAoiChanged = ku(e, i));
|
|
10380
10380
|
break;
|
|
10381
10381
|
}
|
|
10382
|
-
return p = Object.values(
|
|
10382
|
+
return p = Object.values(F.common).some((b) => b), (F.gauge.valueConversionChanged || F.gauge.minMaxFromFieldsChanged || F.histogram.dataPropsChanged || F.boxPlot.showMeanChanged || F.heatChart.binningChanged || F.heatChart.hideEmptyRowsAndColumnsChanged || F.heatChart.includeLeapDay || F.scatterPlot.tooltipFieldsChanged || F.scatterPlot.imageryAoiChanged) && (y = !0), g = p || y, { dataUpdateNeeded: g, dataUpdateDetails: F };
|
|
10383
10383
|
}
|
|
10384
10384
|
function Cg(t, e) {
|
|
10385
10385
|
const i = Ve(t);
|
|
@@ -10434,7 +10434,7 @@ function an(t) {
|
|
|
10434
10434
|
r = t.series[0].x;
|
|
10435
10435
|
else {
|
|
10436
10436
|
r === je.Mean ? r = R.Average : r === je.Median && (r = R.Median);
|
|
10437
|
-
const n = e ===
|
|
10437
|
+
const n = e === S.BoxPlotC4MultiFieldsAndCategory && typeof t.series[0].y == "string" ? t.series[0].y : void 0, s = re(t.series[0].query?.where), o = ce({
|
|
10438
10438
|
where: t.series[0].query?.where
|
|
10439
10439
|
});
|
|
10440
10440
|
r = se({
|
|
@@ -10450,7 +10450,7 @@ function an(t) {
|
|
|
10450
10450
|
orderBy: a ?? oe.Ascending,
|
|
10451
10451
|
preferLabel: t.orderOptions.data && "preferLabel" in t.orderOptions.data ? t.orderOptions.data.preferLabel ?? !0 : !0
|
|
10452
10452
|
};
|
|
10453
|
-
} else if (e ===
|
|
10453
|
+
} else if (e === S.BoxPlotC2MultiFields && t.series[0].y) {
|
|
10454
10454
|
const r = [t.series[0].y].flat();
|
|
10455
10455
|
r.length > 1 && (i = {
|
|
10456
10456
|
sortingField: B.boxPlot.boxPlotCategory,
|
|
@@ -10461,7 +10461,7 @@ function an(t) {
|
|
|
10461
10461
|
return i;
|
|
10462
10462
|
}
|
|
10463
10463
|
function nn(t) {
|
|
10464
|
-
const e = t.series[0], { x: i, y: r } = e, a = G(t.series) ===
|
|
10464
|
+
const e = t.series[0], { x: i, y: r } = e, a = G(t.series) === S.PieFromFields, n = G(t.series) === S.BarAndLineFromFields;
|
|
10465
10465
|
let s, o = "", l;
|
|
10466
10466
|
if (t.orderOptions?.data !== void 0) {
|
|
10467
10467
|
const u = t.orderOptions.data && "preferLabel" in t.orderOptions.data ? t.orderOptions.data.preferLabel : !0;
|
|
@@ -10522,7 +10522,7 @@ function Bg(t) {
|
|
|
10522
10522
|
const { oldConfig: e, newConfig: i, dataWasUpdated: r } = t, a = V(i.series), n = G(i.series);
|
|
10523
10523
|
let s = !1, o = !1;
|
|
10524
10524
|
const l = Xt(i);
|
|
10525
|
-
if (n !==
|
|
10525
|
+
if (n !== S.BoxPlotC1MonoField && n !== S.BoxPlotC5MonoFieldAndSplitBy && (i.orderOptions?.data !== void 0 || l !== void 0)) {
|
|
10526
10526
|
const u = Xt(e);
|
|
10527
10527
|
if (a === h.HeatSeries) {
|
|
10528
10528
|
const c = u ? u[0] : void 0, d = l ? l[0] : void 0, f = u ? u[1] : void 0, m = l ? l[1] : void 0;
|
|
@@ -10934,6 +10934,6 @@ export {
|
|
|
10934
10934
|
Te as v,
|
|
10935
10935
|
Ia as w,
|
|
10936
10936
|
bi as x,
|
|
10937
|
-
|
|
10937
|
+
S as y,
|
|
10938
10938
|
Dc as z
|
|
10939
10939
|
};
|