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