@arcgis/charts-components 5.2.0-next.25 → 5.2.0-next.27
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/{MVNNQWQB.js → 2CCG5VRK.js} +1 -1
- package/dist/cdn/{JF7YQCM6.js → 2VERKODU.js} +1 -1
- package/dist/cdn/{2V4LOGZL.js → 3FDSEXHU.js} +1 -1
- package/dist/cdn/{DNSJAZKI.js → 3HT2XHTE.js} +1 -1
- package/dist/cdn/{BFIXNPQC.js → 3M2I2DRI.js} +1 -1
- package/dist/cdn/{U6MMH2LR.js → 3QFCHMXP.js} +1 -1
- package/dist/cdn/4UG5VYOC.js +2 -0
- package/dist/cdn/{YL45GUSC.js → 4X7O5PV4.js} +1 -1
- package/dist/cdn/{NUIBH3VT.js → 525WSDKI.js} +1 -1
- package/dist/cdn/{NOAJPX72.js → 54F7CW76.js} +1 -1
- package/dist/cdn/{L6NNUSXU.js → 54UV746F.js} +1 -1
- package/dist/cdn/{GOZIQ6A2.js → 5LVCC5LO.js} +1 -1
- package/dist/cdn/{ZERRCOSM.js → 6E2WAXRT.js} +1 -1
- package/dist/cdn/{LZMLIBIH.js → 6EX4GDM3.js} +1 -1
- package/dist/cdn/{5VQQA6MA.js → 6N4SYUQV.js} +1 -1
- package/dist/cdn/{S4SG2V5X.js → 6OC4X4GP.js} +1 -1
- package/dist/cdn/6WZLNZJI.js +2 -0
- package/dist/cdn/{XST7FY7F.js → 7UMBIDWG.js} +1 -1
- package/dist/cdn/{NUK4NPOT.js → 7ZQHAWKS.js} +1 -1
- package/dist/cdn/{YPRIULPN.js → A3DHDZLR.js} +1 -1
- package/dist/cdn/{IOAD36KI.js → ATQN27OC.js} +1 -1
- package/dist/cdn/BFVFX476.js +3 -0
- package/dist/cdn/{S6SBVFMN.js → BRG2PBG4.js} +1 -1
- package/dist/cdn/{RAUYMTSM.js → CEBE6KZ5.js} +1 -1
- package/dist/cdn/{GQK23IL4.js → CTTLJGLV.js} +1 -1
- package/dist/cdn/{O6CSF6KG.js → D2LXXBP5.js} +1 -1
- package/dist/cdn/{NDBH7YLO.js → DEN7277X.js} +1 -1
- package/dist/cdn/{6VDLIICW.js → DINELIBX.js} +1 -1
- package/dist/cdn/{CTXTTI3G.js → DL77MIWY.js} +1 -1
- package/dist/cdn/{QUR7IUKK.js → E4OZ432W.js} +1 -1
- package/dist/cdn/{C3MXUPEW.js → EA7AXGJI.js} +1 -1
- package/dist/cdn/{LVSNOD77.js → EJEUMMWZ.js} +1 -1
- package/dist/cdn/{APNALJWN.js → F5NJPXUK.js} +1 -1
- package/dist/cdn/{QSH4RLKM.js → FAOLLBXF.js} +1 -1
- package/dist/cdn/{XX6OXKZK.js → FSJ6RT4T.js} +1 -1
- package/dist/cdn/{GZU5HJCQ.js → FVGXWZBY.js} +1 -1
- package/dist/cdn/{GP5MHPDX.js → H4VTKKBN.js} +1 -1
- package/dist/cdn/{NNP7U57T.js → HFCAMEBX.js} +1 -1
- package/dist/cdn/{WHBJYAT4.js → HOZ4AHQR.js} +1 -1
- package/dist/cdn/{G5TRNV2I.js → HWUT7IFD.js} +1 -1
- package/dist/cdn/{KXKOTDCQ.js → HYDDSP4M.js} +1 -1
- package/dist/cdn/{UV5LIHCE.js → I4CGHGFK.js} +1 -1
- package/dist/cdn/{QQSX47ZE.js → I4NVKM3H.js} +1 -1
- package/dist/cdn/{TLP2PMYA.js → ICFXSFV6.js} +1 -1
- package/dist/cdn/{3XMGXTZB.js → JAJUMMUL.js} +1 -1
- package/dist/cdn/{5M57QONK.js → JIHUDUXV.js} +1 -1
- package/dist/cdn/{ZX4AZXEF.js → JPNGKMXS.js} +1 -1
- package/dist/cdn/{J72BLOD2.js → K2H47DLO.js} +1 -1
- package/dist/cdn/{YNHUPD3J.js → K473JQIX.js} +1 -1
- package/dist/cdn/{T5NY73Y2.js → LLICYFCD.js} +1 -1
- package/dist/cdn/{CU56A45C.js → MMPHPV2C.js} +1 -1
- package/dist/cdn/{6UVZ3NXS.js → MP4N4SFB.js} +1 -1
- package/dist/cdn/{KOKJLIPK.js → ODTCEPEL.js} +1 -1
- package/dist/cdn/{W6CKM3J3.js → OOVQ6IVC.js} +1 -1
- package/dist/cdn/{YPFJW7NS.js → OPMJTZOV.js} +1 -1
- package/dist/cdn/{XNJIGVQJ.js → OZEARYZA.js} +1 -1
- package/dist/cdn/{LHGLUPW5.js → PA5GXXDY.js} +1 -1
- package/dist/cdn/{KCJKQ44K.js → PHAOZ7SV.js} +1 -1
- package/dist/cdn/{OLPU6MNA.js → POPYMWVR.js} +1 -1
- package/dist/cdn/{FP72YYAO.js → Q5VREFP6.js} +1 -1
- package/dist/cdn/{MSN54T3T.js → QGJNZGQX.js} +1 -1
- package/dist/cdn/{OFP7FIPS.js → R4F7L2HV.js} +1 -1
- package/dist/cdn/{NNP5LCX5.js → RFU52ORA.js} +1 -1
- package/dist/cdn/{OQWDZSTM.js → RKZ2IOOP.js} +1 -1
- package/dist/cdn/{KXGVMPQJ.js → RMF3UYFS.js} +1 -1
- package/dist/cdn/{G7SXRDMI.js → S44GNLAE.js} +1 -1
- package/dist/cdn/{F2N6CMAL.js → S6MDSIET.js} +1 -1
- package/dist/cdn/SBP4RBXK.js +4 -0
- package/dist/cdn/{MDMUNG7R.js → SZ3VH4UZ.js} +1 -1
- package/dist/cdn/{A3TAYUWE.js → TR4ULKH5.js} +1 -1
- package/dist/cdn/{UYKZWTFH.js → TYJZR25X.js} +1 -1
- package/dist/cdn/{7LGIXLPP.js → U35HGES6.js} +1 -1
- package/dist/cdn/{WHLDUYAG.js → UU2LYQUI.js} +1 -1
- package/dist/cdn/{U7ZGT3IG.js → VQFCYPDR.js} +1 -1
- package/dist/cdn/{AQIUPTKW.js → VRF5VORO.js} +19 -19
- package/dist/cdn/{FRSKVY2N.js → WF76CIN2.js} +1 -1
- package/dist/cdn/{YMFG2IVU.js → WINZ53K3.js} +1 -1
- package/dist/cdn/{EUGGSDEV.js → YFYTXRLW.js} +1 -1
- package/dist/cdn/{6RD22S75.js → ZO27SWFU.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/heat-chart-model.js +46 -26
- package/dist/chunks/index2.js +376 -374
- package/dist/chunks/model-with-y-guides.js +6 -6
- package/dist/chunks/serial-chart-data.js +63 -62
- package/dist/chunks/serial-chart-model.js +107 -92
- package/dist/chunks/web-component-utils.js +414 -384
- package/dist/components/arcgis-chart/customElement.js +1984 -1980
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/model/heat-chart-model/heat-chart-model.d.ts +22 -0
- package/dist/model/mixins/model-with-multi-axes.d.ts +22 -22
- package/dist/model/serial-chart-model/serial-chart-model.d.ts +15 -0
- package/dist/utils/data/index.d.ts +1 -1
- package/package.json +3 -3
- package/dist/cdn/3RA3JNKB.js +0 -3
- package/dist/cdn/7WMOXCPU.js +0 -2
- package/dist/cdn/JGSF55NE.js +0 -2
- package/dist/cdn/RBAE74TA.js +0 -4
package/dist/chunks/index2.js
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { isEqual as at, sortBy as
|
|
3
|
-
import { u as h, k as Fr, r as D, v as Ke, m as Se, p as ye, n as De, q as Te, g as Z, j as br, s as R, t as ee, d as he, a as
|
|
4
|
-
import
|
|
2
|
+
import { isEqual as at, sortBy as Ai, cloneDeep as He, memoize as Et, isArray as ui, isNil as hr, isEmpty as Sr } from "lodash-es";
|
|
3
|
+
import { u as h, k as Fr, r as D, v as Ke, m as Se, p as ye, n as De, q as Te, g as Z, j as br, s as R, t as ee, d as he, a as Xi, G as xr } from "./chart-object-literals.js";
|
|
4
|
+
import wi from "@arcgis/core/layers/support/FeatureFilter.js";
|
|
5
5
|
import Cr from "@arcgis/core/smartMapping/statistics/histogram.js";
|
|
6
|
-
import
|
|
7
|
-
import * as
|
|
6
|
+
import Li from "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
7
|
+
import * as Ji from "@arcgis/core/geometry/support/jsonUtils.js";
|
|
8
8
|
import vr from "@arcgis/core/rest/support/AttributeBinsQuery.js";
|
|
9
9
|
import Br from "@arcgis/core/rest/support/Query.js";
|
|
10
10
|
import Nr from "@arcgis/core/rest/support/StatisticDefinition.js";
|
|
11
|
-
import
|
|
11
|
+
import Ki from "@arcgis/core/time/TimeExtent.js";
|
|
12
12
|
import Tr from "@arcgis/core/layers/FeatureLayer.js";
|
|
13
13
|
import Ar from "@arcgis/core/layers/support/CodedValueDomain.js";
|
|
14
14
|
import wr from "@arcgis/core/layers/support/Field.js";
|
|
15
15
|
import * as Lr from "@arcgis/core/layers/support/fieldUtils.js";
|
|
16
16
|
import Pr from "@arcgis/core/portal/Portal.js";
|
|
17
|
-
import * as
|
|
17
|
+
import * as ea from "@arcgis/core/renderers/support/jsonUtils.js";
|
|
18
18
|
import Lt from "@arcgis/core/request.js";
|
|
19
|
-
import
|
|
19
|
+
import ta from "@arcgis/core/rest/support/FeatureSet.js";
|
|
20
20
|
import { g as _ } from "./series-types.js";
|
|
21
|
-
import { F as C, q as oe, C as F, e as Zt, z as
|
|
21
|
+
import { F as C, q as oe, C as F, e as Zt, z as ia, l as ci, o as Pi, v as aa, d as Xt, x as Mr, g as ra, s as zt, w as Dr, i as Or, r as Ae, t as qt } from "./index3.js";
|
|
22
22
|
import Ir from "@arcgis/core/Graphic.js";
|
|
23
23
|
import * as Wt from "@arcgis/core/symbols/support/symbolUtils.js";
|
|
24
24
|
import { f as Jt, h as et, i as _e, e as se, R as U } from "./rest-js-object-literals.js";
|
|
25
25
|
import Er from "@arcgis/core/AttributeBinsGraphic.js";
|
|
26
26
|
import { substitute as Be } from "@arcgis/core/intl.js";
|
|
27
|
-
import { g as Vt, L as lt, az as W, j as Q, r as ut, o as Oe, ax as Kt, am as
|
|
27
|
+
import { g as Vt, L as lt, az as W, j as Q, r as ut, o as Oe, ax as Kt, am as na, aB as sa, aq as qr, s as Rt, ay as Vr, b as Rr, a as $r } from "./index.js";
|
|
28
28
|
import { unsafeGetElementDirection as kr } from "@arcgis/toolkit/dom";
|
|
29
|
-
import { fetchT9nStringsBundle as
|
|
30
|
-
import { i as
|
|
31
|
-
import * as
|
|
32
|
-
import { g as
|
|
29
|
+
import { fetchT9nStringsBundle as mt, getElementLocale as ze, supportedLocales as oa } from "@arcgis/toolkit/intl";
|
|
30
|
+
import { i as la, b as ua, c as ie, a as yt, f as Qr, e as _r } from "./type-guards.js";
|
|
31
|
+
import * as ca from "@arcgis/core/core/promiseUtils.js";
|
|
32
|
+
import { g as gt } from "./runtime.js";
|
|
33
33
|
import { linearRegression as jr, linearRegressionLine as Hr, rSquared as zr } from "simple-statistics";
|
|
34
34
|
import { sqlLiteral as Wr } from "@arcgis/core/core/sql.js";
|
|
35
35
|
import { DateTime as me } from "luxon";
|
|
36
|
-
import { computeStatisticsHistograms as Gr, computeRasterAttributeTable as Ur, getCurrentRasterInfo as
|
|
36
|
+
import { computeStatisticsHistograms as Gr, computeRasterAttributeTable as Ur, getCurrentRasterInfo as ct, fetchPixelFeatureSet as Yr } from "@arcgis/core/applications/Components/imageryUtils.js";
|
|
37
37
|
import Zr from "@arcgis/core/geometry/Extent.js";
|
|
38
|
-
import
|
|
38
|
+
import da from "@arcgis/core/geometry/Point.js";
|
|
39
39
|
import Xr from "@arcgis/core/layers/ImageryLayer.js";
|
|
40
40
|
import Jr from "@arcgis/core/layers/ImageryTileLayer.js";
|
|
41
41
|
import Kr from "@arcgis/core/layers/WCSLayer.js";
|
|
@@ -173,7 +173,7 @@ function cc(t, e) {
|
|
|
173
173
|
}
|
|
174
174
|
return i;
|
|
175
175
|
}
|
|
176
|
-
const ce = "arcgis_charts_pie_from_fields_name", Ne = "arcgis_charts_pie_from_fields_value", dc = "arcgis_charts_bar_line_from_fields_name", fc = "arcgis_charts_bar_line_from_fields_value",
|
|
176
|
+
const ce = "arcgis_charts_pie_from_fields_name", Ne = "arcgis_charts_pie_from_fields_value", dc = "arcgis_charts_bar_line_from_fields_name", fc = "arcgis_charts_bar_line_from_fields_value", pt = {
|
|
177
177
|
...C,
|
|
178
178
|
titleAndSubtitlePaddingBottom: 5,
|
|
179
179
|
chartPadding: 5,
|
|
@@ -332,22 +332,22 @@ function Fc(t) {
|
|
|
332
332
|
function Ee(t) {
|
|
333
333
|
return t !== void 0 && "view" in t && "layer" in t && t.layer.type === "feature";
|
|
334
334
|
}
|
|
335
|
-
function
|
|
335
|
+
function fa(t) {
|
|
336
336
|
return t !== void 0 && "type" in t && t.type === "feature";
|
|
337
337
|
}
|
|
338
338
|
function bc(t) {
|
|
339
339
|
return t !== void 0 && "type" in t && t.type === "subtype-group";
|
|
340
340
|
}
|
|
341
|
-
function
|
|
341
|
+
function ma(t) {
|
|
342
342
|
return t !== void 0 && "type" in t && t.type === "subtype-sublayer";
|
|
343
343
|
}
|
|
344
344
|
function mn(t) {
|
|
345
|
-
return
|
|
345
|
+
return fa(t) || ma(t);
|
|
346
346
|
}
|
|
347
347
|
function ge(t) {
|
|
348
|
-
return
|
|
348
|
+
return ma(t) ? t.parent ?? void 0 : t;
|
|
349
349
|
}
|
|
350
|
-
function
|
|
350
|
+
function ya(t) {
|
|
351
351
|
return t?.capabilities?.query?.supportsDistance || ge(t)?.sourceJSON?.advancedQueryCapabilities?.supportsQueryWithDistance === !0;
|
|
352
352
|
}
|
|
353
353
|
function yn(t) {
|
|
@@ -399,10 +399,10 @@ function Bc(t) {
|
|
|
399
399
|
let a;
|
|
400
400
|
if (i) {
|
|
401
401
|
const r = z(i);
|
|
402
|
-
|
|
402
|
+
la(r) ? a = {
|
|
403
403
|
id: r.id,
|
|
404
404
|
layerType: "ArcGISImageServiceLayer"
|
|
405
|
-
} :
|
|
405
|
+
} : ua(r) ? a = {
|
|
406
406
|
id: r.id,
|
|
407
407
|
layerType: "ArcGISTiledImageServiceLayer"
|
|
408
408
|
} : a = {
|
|
@@ -559,12 +559,12 @@ function Tc(t, e) {
|
|
|
559
559
|
}
|
|
560
560
|
function te(t, e) {
|
|
561
561
|
let i = "";
|
|
562
|
-
return t?.includes("=") && (i = e !== !1 ?
|
|
562
|
+
return t?.includes("=") && (i = e !== !1 ? ia({ value: t.split("=")[0], escape: !1 }) : t.split("=")[0].trim()), i;
|
|
563
563
|
}
|
|
564
564
|
function fe(t) {
|
|
565
565
|
const { where: e, normalize: i, keepSurroundingQuotes: a, escape: r = !1 } = t;
|
|
566
566
|
let n = "";
|
|
567
|
-
return e?.includes("=") && (n = e.split("=").slice(1).join("=").trim(), n === "null" ? n = null : n.trim() !== "" && !Number.isNaN(Number(n)) ? n = Number(n) : i === !1 ? r && (n = Zt(n)) : n =
|
|
567
|
+
return e?.includes("=") && (n = e.split("=").slice(1).join("=").trim(), n === "null" ? n = null : n.trim() !== "" && !Number.isNaN(Number(n)) ? n = Number(n) : i === !1 ? r && (n = Zt(n)) : n = ia({ value: n, keepSurroundingQuotes: a, escape: r })), n;
|
|
568
568
|
}
|
|
569
569
|
function Ie(t) {
|
|
570
570
|
let e = !1;
|
|
@@ -586,11 +586,11 @@ function Le(t) {
|
|
|
586
586
|
let o = e;
|
|
587
587
|
return n !== "" && s !== "" && (s === null ? o = `${n} IS NULL` : o = `${n}=${s}`), o;
|
|
588
588
|
}
|
|
589
|
-
function
|
|
589
|
+
function ga(t) {
|
|
590
590
|
let e = F.PieFromCategory;
|
|
591
591
|
return t[0].query?.outStatistics === void 0 ? e = F.PieNoAggregation : t[0].query?.groupByFieldsForStatistics === void 0 && (e = F.PieFromFields), e;
|
|
592
592
|
}
|
|
593
|
-
function
|
|
593
|
+
function pa(t) {
|
|
594
594
|
let e = F.BarAndLineMonoField;
|
|
595
595
|
const i = t[0].query?.where;
|
|
596
596
|
return t[0].query?.groupByFieldsForStatistics === void 0 && (t[0].query?.outStatistics ?? []).length > 0 ? e = F.BarAndLineFromFields : i === void 0 && t[0].query?.outStatistics === void 0 ? e = F.BarAndLineNoAggregation : Ie(i) ? t.length > 1 && (e = F.BarAndLineMultiFields) : e = t[0].query?.outStatistics === void 0 ? F.BarAndLineSplitByNoAggregation : F.BarAndLineSplitBy, e;
|
|
@@ -605,13 +605,13 @@ function k(t) {
|
|
|
605
605
|
if (t?.[0] !== void 0)
|
|
606
606
|
switch (_(t)) {
|
|
607
607
|
case h.PieSeries:
|
|
608
|
-
e =
|
|
608
|
+
e = ga(t);
|
|
609
609
|
break;
|
|
610
610
|
case h.RadarSeries:
|
|
611
611
|
case h.BarSeries:
|
|
612
612
|
case h.LineSeries:
|
|
613
613
|
case h.ComboLineAndBarSeries:
|
|
614
|
-
e =
|
|
614
|
+
e = pa(t);
|
|
615
615
|
break;
|
|
616
616
|
case h.BoxPlotSeries:
|
|
617
617
|
e = xn(t);
|
|
@@ -631,7 +631,7 @@ function vn(t) {
|
|
|
631
631
|
}
|
|
632
632
|
return e;
|
|
633
633
|
}
|
|
634
|
-
function
|
|
634
|
+
function ha(t) {
|
|
635
635
|
const { statsMap: e, dataContext: i, chartLimits: a } = t;
|
|
636
636
|
let r = !1;
|
|
637
637
|
if (e !== void 0) {
|
|
@@ -651,7 +651,7 @@ function Bn(t) {
|
|
|
651
651
|
r = vn(i);
|
|
652
652
|
break;
|
|
653
653
|
case h.ScatterSeries:
|
|
654
|
-
r =
|
|
654
|
+
r = ha({ dataContext: e, chartLimits: a });
|
|
655
655
|
break;
|
|
656
656
|
case h.PieSeries:
|
|
657
657
|
r = Cn(i);
|
|
@@ -674,7 +674,7 @@ function Pe(t) {
|
|
|
674
674
|
function be(t) {
|
|
675
675
|
return Fn.includes(t?.type);
|
|
676
676
|
}
|
|
677
|
-
function
|
|
677
|
+
function Sa(t) {
|
|
678
678
|
const { previousConfig: e, newConfig: i, behaviorAfterLimit: a } = t, r = e.series, n = i.series;
|
|
679
679
|
let s = !1, o = !1;
|
|
680
680
|
(a === lt.RenderUpToTheLimit || e.orderOptions?.data === void 0 || i.orderOptions?.data === void 0) && (o = !at(
|
|
@@ -688,7 +688,7 @@ function ha(t) {
|
|
|
688
688
|
value: W.defaultStatParameterValue
|
|
689
689
|
});
|
|
690
690
|
}), m;
|
|
691
|
-
}, c = ["where", "outStatistics[0].outStatisticFieldName", "outStatistics[0].onStatisticField"], l =
|
|
691
|
+
}, c = ["where", "outStatistics[0].outStatisticFieldName", "outStatistics[0].onStatisticField"], l = Ai(r.map(u), c), d = Ai(n.map(u), c);
|
|
692
692
|
return s = !at(l, d), s || o;
|
|
693
693
|
}
|
|
694
694
|
function Nn(t, e) {
|
|
@@ -708,13 +708,13 @@ function Tn(t, e) {
|
|
|
708
708
|
}
|
|
709
709
|
return i;
|
|
710
710
|
}
|
|
711
|
-
function
|
|
711
|
+
function Fa(t, e) {
|
|
712
712
|
return (t ?? !1) !== (e ?? !1);
|
|
713
713
|
}
|
|
714
|
-
function
|
|
714
|
+
function ba(t, e) {
|
|
715
715
|
return be(t.series[0]) && be(e.series[0]) && (t.series[0].binTemporalData ?? C.binTemporalData) !== (e.series[0].binTemporalData ?? C.binTemporalData);
|
|
716
716
|
}
|
|
717
|
-
function
|
|
717
|
+
function xa(t, e) {
|
|
718
718
|
const i = t.axes?.[0].valueFormat.type, a = e.axes?.[0].valueFormat.type, r = k(e.series), n = r === F.BarAndLineNoAggregation || r === F.BarAndLineSplitByNoAggregation, s = i === h.DateAxisFormat && a === h.NumberAxisFormat, o = i === h.NumberAxisFormat && a === h.DateAxisFormat;
|
|
719
719
|
return i !== a && (n || s || o);
|
|
720
720
|
}
|
|
@@ -732,23 +732,23 @@ function An(t) {
|
|
|
732
732
|
}
|
|
733
733
|
return { timeBinningChanged: s, newTimeBinningWillBeCalculated: o };
|
|
734
734
|
}
|
|
735
|
-
function
|
|
735
|
+
function Mi(t, e) {
|
|
736
736
|
return e.length !== t.length;
|
|
737
737
|
}
|
|
738
|
-
function
|
|
738
|
+
function Ca(t, e) {
|
|
739
739
|
return st(t) !== st(e);
|
|
740
740
|
}
|
|
741
|
-
function
|
|
741
|
+
function va(t, e) {
|
|
742
742
|
return JSON.stringify(t.series[0]?.valueConversion) !== JSON.stringify(e.series[0]?.valueConversion);
|
|
743
743
|
}
|
|
744
|
-
function
|
|
744
|
+
function Ba(t, e) {
|
|
745
745
|
return JSON.stringify(t.series[0]?.xTemporalBinning) !== JSON.stringify(e.series[0]?.xTemporalBinning) || JSON.stringify(t.series[0]?.yTemporalBinning) !== JSON.stringify(e.series[0]?.yTemporalBinning) || (t.firstDayOfWeek ?? 7) !== (e.firstDayOfWeek ?? 7) || t.outTimeZone !== e.outTimeZone || (t.nullPolicy ?? Se.Null) !== (e.nullPolicy ?? Se.Null);
|
|
746
746
|
}
|
|
747
747
|
function wn(t, e) {
|
|
748
748
|
return (t.hideEmptyRowsAndColumns ?? !1) !== (e.hideEmptyRowsAndColumns ?? !1);
|
|
749
749
|
}
|
|
750
750
|
function Ln(t, e) {
|
|
751
|
-
return (t.includeLeapDay ??
|
|
751
|
+
return (t.includeLeapDay ?? pt.heatChart.includeLeapDay) !== (e.includeLeapDay ?? pt.heatChart.includeLeapDay);
|
|
752
752
|
}
|
|
753
753
|
function Pn(t) {
|
|
754
754
|
const { previousConfig: e, newConfig: i, fieldList: a } = t, r = e.series[0], n = i.series[0];
|
|
@@ -757,7 +757,7 @@ function Pn(t) {
|
|
|
757
757
|
const o = new Set(r.additionalTooltipFields || []), u = new Set(n.additionalTooltipFields || []);
|
|
758
758
|
if (!at(o, u)) {
|
|
759
759
|
const c = Array.from(u).filter((l) => !o.has(l));
|
|
760
|
-
c.length > 0 && (s = a?.some((l) => c.includes(l.name) && !
|
|
760
|
+
c.length > 0 && (s = a?.some((l) => c.includes(l.name) && !Ft(l)));
|
|
761
761
|
}
|
|
762
762
|
}
|
|
763
763
|
return s;
|
|
@@ -770,7 +770,7 @@ function wc(t, e) {
|
|
|
770
770
|
}
|
|
771
771
|
function Pt(t) {
|
|
772
772
|
const e = { ...t };
|
|
773
|
-
return e.position === void 0 && (e.position =
|
|
773
|
+
return e.position === void 0 && (e.position = pt.heatChart.legend.position), e;
|
|
774
774
|
}
|
|
775
775
|
function Lc(t, e) {
|
|
776
776
|
const i = t.legend ?? { type: h.Legend }, a = e.legend ?? { type: h.Legend }, r = Pt(i), n = Pt(a);
|
|
@@ -832,7 +832,7 @@ function $c(t, e) {
|
|
|
832
832
|
return JSON.stringify(i) !== JSON.stringify(a);
|
|
833
833
|
}
|
|
834
834
|
function kc(t, e) {
|
|
835
|
-
return
|
|
835
|
+
return Pi(t) !== Pi(e);
|
|
836
836
|
}
|
|
837
837
|
function Qc(t, e) {
|
|
838
838
|
return (t.showOutliers ?? C.boxPlot.boxPlotOutliersVisibility) !== (e.showOutliers ?? C.boxPlot.boxPlotOutliersVisibility);
|
|
@@ -905,18 +905,18 @@ function Gc(t) {
|
|
|
905
905
|
tooltipFieldsChanged: !1
|
|
906
906
|
}
|
|
907
907
|
};
|
|
908
|
-
switch (S.common.queryChanged =
|
|
908
|
+
switch (S.common.queryChanged = Sa({
|
|
909
909
|
previousConfig: e,
|
|
910
910
|
newConfig: i,
|
|
911
911
|
behaviorAfterLimit: l?.behaviorAfterLimit
|
|
912
|
-
}), S.common.configFiltersChanged = Nn(e, i), S.common.xOrYChanged = Tn(f, d), S.common.filterBySelectionChanged =
|
|
912
|
+
}), S.common.configFiltersChanged = Nn(e, i), S.common.xOrYChanged = Tn(f, d), S.common.filterBySelectionChanged = Fa(
|
|
913
913
|
a,
|
|
914
914
|
o
|
|
915
915
|
), S.common.dataForFilterBySelectionChanged = Mn({
|
|
916
916
|
previousSelectionOIDs: r,
|
|
917
917
|
selectionData: u,
|
|
918
918
|
filterBySelection: o
|
|
919
|
-
}), S.common.binTemporalDataChanged =
|
|
919
|
+
}), S.common.binTemporalDataChanged = ba(e, i), S.common.valueFormatChangeRequiresNewData = xa(
|
|
920
920
|
e,
|
|
921
921
|
i
|
|
922
922
|
), S.common = {
|
|
@@ -937,16 +937,16 @@ function Gc(t) {
|
|
|
937
937
|
case h.LineSeries:
|
|
938
938
|
case h.BarSeries:
|
|
939
939
|
case h.ComboLineAndBarSeries:
|
|
940
|
-
S.common.numberOfSeriesChanged =
|
|
940
|
+
S.common.numberOfSeriesChanged = Mi(f, d);
|
|
941
941
|
break;
|
|
942
942
|
case h.BoxPlotSeries:
|
|
943
|
-
de(e) && de(i) && (S.common.numberOfSeriesChanged =
|
|
943
|
+
de(e) && de(i) && (S.common.numberOfSeriesChanged = Mi(f, d), S.boxPlot.showMeanChanged = Ca(e, i));
|
|
944
944
|
break;
|
|
945
945
|
case h.GaugeSeries:
|
|
946
|
-
S.gauge.valueConversionChanged =
|
|
946
|
+
S.gauge.valueConversionChanged = va(e, i);
|
|
947
947
|
break;
|
|
948
948
|
case h.HeatSeries:
|
|
949
|
-
We(e) && We(i) && (S.heatChart.binningChanged =
|
|
949
|
+
We(e) && We(i) && (S.heatChart.binningChanged = Ba(e, i), S.heatChart.hideEmptyRowsAndColumnsChanged = wn(
|
|
950
950
|
e,
|
|
951
951
|
i
|
|
952
952
|
), S.heatChart.includeLeapDay = Ln(e, i));
|
|
@@ -969,7 +969,7 @@ function Uc(t, e) {
|
|
|
969
969
|
let n;
|
|
970
970
|
if (a === !1) {
|
|
971
971
|
const s = k(i.series);
|
|
972
|
-
n =
|
|
972
|
+
n = aa(s) ? "splitByValue" : "name";
|
|
973
973
|
} else
|
|
974
974
|
n = "name";
|
|
975
975
|
i.series.sort((s, o) => {
|
|
@@ -1002,7 +1002,7 @@ function Dn(t) {
|
|
|
1002
1002
|
const r = di(e);
|
|
1003
1003
|
return r?.length === 2 && (a = i === Q.xField ? r[0]?.orderBy : r[1]?.orderBy), a;
|
|
1004
1004
|
}
|
|
1005
|
-
function
|
|
1005
|
+
function Na(t) {
|
|
1006
1006
|
const e = k(t.series);
|
|
1007
1007
|
let i;
|
|
1008
1008
|
if (t.orderOptions?.data !== void 0) {
|
|
@@ -1030,12 +1030,12 @@ function Ba(t) {
|
|
|
1030
1030
|
}
|
|
1031
1031
|
return i;
|
|
1032
1032
|
}
|
|
1033
|
-
function
|
|
1033
|
+
function Ta(t) {
|
|
1034
1034
|
const e = t.series[0], { x: i, y: a } = e, r = k(t.series) === F.PieFromFields, n = k(t.series) === F.BarAndLineFromFields;
|
|
1035
1035
|
let s, o = "", u;
|
|
1036
1036
|
if (t.orderOptions?.data !== void 0) {
|
|
1037
1037
|
const c = t.orderOptions.data && "preferLabel" in t.orderOptions.data ? t.orderOptions.data.preferLabel : !0;
|
|
1038
|
-
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 = ce : o = c ? i :
|
|
1038
|
+
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 = ce : o = c ? i : pt.originalCategoryValue : o = r ? Ne : [a].flat()[0], o !== void 0 && o !== "") {
|
|
1039
1039
|
const l = ci(t);
|
|
1040
1040
|
if (_(t.series) !== h.PieSeries && o !== i && t.series?.length > 1)
|
|
1041
1041
|
switch (l) {
|
|
@@ -1056,7 +1056,7 @@ function Na(t) {
|
|
|
1056
1056
|
};
|
|
1057
1057
|
}
|
|
1058
1058
|
} else (n || r) && t.series[0].query?.outStatistics && (u = t.series[0].query.outStatistics.map((c) => c.onStatisticField), u?.length > 1 && (s = {
|
|
1059
|
-
sortingField:
|
|
1059
|
+
sortingField: pt.originalCategoryValue,
|
|
1060
1060
|
orderBy: u,
|
|
1061
1061
|
preferLabel: !1
|
|
1062
1062
|
}));
|
|
@@ -1072,13 +1072,14 @@ function Mt(t) {
|
|
|
1072
1072
|
We(t) && (e = di(t));
|
|
1073
1073
|
break;
|
|
1074
1074
|
case h.BoxPlotSeries:
|
|
1075
|
-
de(t) && (a =
|
|
1075
|
+
de(t) && (a = Na(t));
|
|
1076
1076
|
break;
|
|
1077
1077
|
case h.LineSeries:
|
|
1078
1078
|
case h.BarSeries:
|
|
1079
|
+
case h.ComboLineAndBarSeries:
|
|
1079
1080
|
case h.RadarSeries:
|
|
1080
1081
|
case h.PieSeries:
|
|
1081
|
-
a =
|
|
1082
|
+
a = Ta(t);
|
|
1082
1083
|
break;
|
|
1083
1084
|
}
|
|
1084
1085
|
!e && a && (e = [], e.push(a));
|
|
@@ -1101,17 +1102,17 @@ function Yc(t) {
|
|
|
1101
1102
|
return s;
|
|
1102
1103
|
}
|
|
1103
1104
|
const Zc = {
|
|
1104
|
-
getPieChartChartSubType:
|
|
1105
|
-
getBarLineChartSubType:
|
|
1106
|
-
hasQueryChanged:
|
|
1107
|
-
hasFilterBySelectionChanged:
|
|
1108
|
-
hasBinTemporalDataChanged:
|
|
1109
|
-
hasGaugeValueConversionChanged:
|
|
1110
|
-
isNewDataRequiredForValueFormatChange:
|
|
1111
|
-
hasShowMeanChanged:
|
|
1112
|
-
hasHeatChartBinningChanged:
|
|
1113
|
-
getDataOrderParametersForBoxPlot:
|
|
1114
|
-
getDataOrderParametersForCommonChart:
|
|
1105
|
+
getPieChartChartSubType: ga,
|
|
1106
|
+
getBarLineChartSubType: pa,
|
|
1107
|
+
hasQueryChanged: Sa,
|
|
1108
|
+
hasFilterBySelectionChanged: Fa,
|
|
1109
|
+
hasBinTemporalDataChanged: ba,
|
|
1110
|
+
hasGaugeValueConversionChanged: va,
|
|
1111
|
+
isNewDataRequiredForValueFormatChange: xa,
|
|
1112
|
+
hasShowMeanChanged: Ca,
|
|
1113
|
+
hasHeatChartBinningChanged: Ba,
|
|
1114
|
+
getDataOrderParametersForBoxPlot: Na,
|
|
1115
|
+
getDataOrderParametersForCommonChart: Ta,
|
|
1115
1116
|
getDataOrderParametersForHeatChart: di
|
|
1116
1117
|
};
|
|
1117
1118
|
function On(t) {
|
|
@@ -1127,7 +1128,7 @@ function On(t) {
|
|
|
1127
1128
|
t[0]
|
|
1128
1129
|
)), e;
|
|
1129
1130
|
}
|
|
1130
|
-
function
|
|
1131
|
+
function Di(t) {
|
|
1131
1132
|
const { value: e, dataContext: i, specificField: a, keepNullValues: r = !1, useRendererLabel: n = !1, config: s } = t;
|
|
1132
1133
|
let o = e;
|
|
1133
1134
|
const { originalCategoryValue: u, originalDateValue: c } = C;
|
|
@@ -1146,7 +1147,7 @@ function fi(t) {
|
|
|
1146
1147
|
function In(t) {
|
|
1147
1148
|
return t?.[C.originalCategoryValue];
|
|
1148
1149
|
}
|
|
1149
|
-
function
|
|
1150
|
+
function ht(t) {
|
|
1150
1151
|
const {
|
|
1151
1152
|
arrayToSort: e,
|
|
1152
1153
|
orderBy: i,
|
|
@@ -1161,13 +1162,13 @@ function pt(t) {
|
|
|
1161
1162
|
const c = i === ye.Descending && r !== !0;
|
|
1162
1163
|
e.sort((l, d) => {
|
|
1163
1164
|
let f = 0, m = l[a];
|
|
1164
|
-
s === !0 && !u && (m =
|
|
1165
|
+
s === !0 && !u && (m = Di({
|
|
1165
1166
|
value: `${l[a]?.toString()}`,
|
|
1166
1167
|
dataContext: l,
|
|
1167
1168
|
specificField: o ? C.xAxisField : C.originalCategoryValue
|
|
1168
1169
|
}));
|
|
1169
1170
|
let y = d[a];
|
|
1170
|
-
return s === !0 && !u && (y =
|
|
1171
|
+
return s === !0 && !u && (y = Di({
|
|
1171
1172
|
value: `${d[a]?.toString()}`,
|
|
1172
1173
|
dataContext: d,
|
|
1173
1174
|
specificField: o ? C.xAxisField : C.originalCategoryValue
|
|
@@ -1239,7 +1240,7 @@ function At(t) {
|
|
|
1239
1240
|
const n = [];
|
|
1240
1241
|
return typeof e == "number" && Number.isFinite(e) && n.push(e), typeof i == "number" && Number.isFinite(i) && n.push(i * a), n.length > 0 && (r = Math.min(...n)), r;
|
|
1241
1242
|
}
|
|
1242
|
-
function
|
|
1243
|
+
function Aa(t, e) {
|
|
1243
1244
|
let i;
|
|
1244
1245
|
const {
|
|
1245
1246
|
maxBarChartSeriesCount: a,
|
|
@@ -1295,7 +1296,7 @@ function Ta(t, e) {
|
|
|
1295
1296
|
}
|
|
1296
1297
|
return (v === F.BarAndLineNoAggregation || v === F.BarAndLineMultiFields) && i !== void 0 && (i = Math.ceil(i / b)), i;
|
|
1297
1298
|
}
|
|
1298
|
-
function
|
|
1299
|
+
function Oi(t, e) {
|
|
1299
1300
|
let i = t;
|
|
1300
1301
|
if (Number.isFinite(t)) {
|
|
1301
1302
|
const { factor: a, offset: r } = e ?? {};
|
|
@@ -1319,7 +1320,7 @@ function Xc(t) {
|
|
|
1319
1320
|
}
|
|
1320
1321
|
return e;
|
|
1321
1322
|
}
|
|
1322
|
-
function
|
|
1323
|
+
function wa(t) {
|
|
1323
1324
|
const { stringToTruncate: e, characterLimit: i, ellipsis: a = C.chartEllipsis } = t;
|
|
1324
1325
|
let r = e;
|
|
1325
1326
|
return typeof i == "number" && Number.isFinite(i) && i > 0 && i < e.length && (r = e.slice(0, i), r = `${r}${a}`), r;
|
|
@@ -1330,7 +1331,7 @@ function Jc(t) {
|
|
|
1330
1331
|
if (i > 0 && e.length > i) {
|
|
1331
1332
|
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();
|
|
1332
1333
|
let d = e.slice(c).trimStart();
|
|
1333
|
-
d.length > i && (d =
|
|
1334
|
+
d.length > i && (d = wa({
|
|
1334
1335
|
stringToTruncate: d,
|
|
1335
1336
|
characterLimit: Math.max(1, i - 1)
|
|
1336
1337
|
})), a = `${l}
|
|
@@ -1344,7 +1345,7 @@ function Kc(t, e = ":") {
|
|
|
1344
1345
|
function ed(t) {
|
|
1345
1346
|
return (i) => {
|
|
1346
1347
|
let a = typeof i != "string" ? i?.toString() ?? "" : i;
|
|
1347
|
-
return !oe(a) && a !== C.htmlEmptyContent && (a =
|
|
1348
|
+
return !oe(a) && a !== C.htmlEmptyContent && (a = wa({
|
|
1348
1349
|
stringToTruncate: a,
|
|
1349
1350
|
characterLimit: t
|
|
1350
1351
|
})), a;
|
|
@@ -1440,14 +1441,14 @@ function Hn(t) {
|
|
|
1440
1441
|
function zn(t) {
|
|
1441
1442
|
return t?.type !== void 0 && (t.color !== void 0 || t.label !== void 0 || t.style !== void 0 || t.outline !== void 0);
|
|
1442
1443
|
}
|
|
1443
|
-
function
|
|
1444
|
+
function La(t) {
|
|
1444
1445
|
const { symbolField: e, dataItem: i, rendererSymbol: a, rendererOrigin: r } = t;
|
|
1445
1446
|
let n = !1;
|
|
1446
1447
|
if (!zn(a))
|
|
1447
1448
|
delete i[e];
|
|
1448
1449
|
else {
|
|
1449
1450
|
const s = { ...a };
|
|
1450
|
-
s.color !== void 0 && r === tt.LayerRenderer && (s.color[3] =
|
|
1451
|
+
s.color !== void 0 && r === tt.LayerRenderer && (s.color[3] = sa * 255), r === tt.LayerRenderer && (delete s.style, delete s.outline, delete s.label), i[e] = s, n = !0;
|
|
1451
1452
|
}
|
|
1452
1453
|
return n;
|
|
1453
1454
|
}
|
|
@@ -1484,7 +1485,7 @@ function Wn(t) {
|
|
|
1484
1485
|
type: _e.SMS,
|
|
1485
1486
|
color: p,
|
|
1486
1487
|
label: S && y ? y : void 0
|
|
1487
|
-
}, c != null && (s.outline = c),
|
|
1488
|
+
}, c != null && (s.outline = c), La({
|
|
1488
1489
|
dataItem: r,
|
|
1489
1490
|
symbolField: a === F.BarAndLineFromFields || a === F.PieFromFields ? C.rendererSymbolField : `${C.rendererSymbolField}_${f}`,
|
|
1490
1491
|
rendererSymbol: s,
|
|
@@ -1497,7 +1498,7 @@ function Gn(t) {
|
|
|
1497
1498
|
const { seriesConfig: e, chartSubType: i, rendererType: a } = t;
|
|
1498
1499
|
let n = C.rendererSymbolField;
|
|
1499
1500
|
if (a === se.UniqueValue) {
|
|
1500
|
-
if (
|
|
1501
|
+
if (aa(i)) {
|
|
1501
1502
|
const s = fe({
|
|
1502
1503
|
where: e.query?.where,
|
|
1503
1504
|
keepSurroundingQuotes: !1,
|
|
@@ -1520,7 +1521,7 @@ function Gn(t) {
|
|
|
1520
1521
|
}
|
|
1521
1522
|
return n;
|
|
1522
1523
|
}
|
|
1523
|
-
function
|
|
1524
|
+
function Pa(t) {
|
|
1524
1525
|
const { seriesConfig: e, chartSubType: i, rendererType: a, dataItem: r } = t;
|
|
1525
1526
|
let n = Gn({
|
|
1526
1527
|
seriesConfig: e,
|
|
@@ -1534,7 +1535,7 @@ function Un(t) {
|
|
|
1534
1535
|
// TODO: find a better way to copy the layer. For now it's all right as the information we need are not lost with the spread operator
|
|
1535
1536
|
// eslint-disable-next-line @typescript-eslint/no-misused-spread
|
|
1536
1537
|
...z(i),
|
|
1537
|
-
renderer:
|
|
1538
|
+
renderer: ea.fromJSON(e)
|
|
1538
1539
|
} : z(i);
|
|
1539
1540
|
return new Ir({
|
|
1540
1541
|
layer: a
|
|
@@ -1567,7 +1568,7 @@ async function Yn(t) {
|
|
|
1567
1568
|
const { x: m } = e[0], y = /* @__PURE__ */ new Map();
|
|
1568
1569
|
o && o.trim() !== "" ? e.forEach((p) => {
|
|
1569
1570
|
if (p.type === h.BarSeries || p.type === h.LineSeries || p.type === h.BoxPlotSeries || p.type === h.RadarSeries) {
|
|
1570
|
-
const g =
|
|
1571
|
+
const g = Pa({
|
|
1571
1572
|
seriesConfig: p,
|
|
1572
1573
|
chartSubType: s,
|
|
1573
1574
|
rendererType: r,
|
|
@@ -1598,7 +1599,7 @@ async function Yn(t) {
|
|
|
1598
1599
|
const S = a?.uniqueValueInfos;
|
|
1599
1600
|
for (let b = 0; b < p.length; b += 1) {
|
|
1600
1601
|
const [v, x] = p[b];
|
|
1601
|
-
if (
|
|
1602
|
+
if (Ii({
|
|
1602
1603
|
mode: "encode",
|
|
1603
1604
|
x: m,
|
|
1604
1605
|
splitByField: o,
|
|
@@ -1618,12 +1619,12 @@ async function Yn(t) {
|
|
|
1618
1619
|
}
|
|
1619
1620
|
l?.set(JSON.stringify(x), d);
|
|
1620
1621
|
}
|
|
1621
|
-
|
|
1622
|
+
Ii({
|
|
1622
1623
|
mode: "revert",
|
|
1623
1624
|
x: m,
|
|
1624
1625
|
splitByField: o,
|
|
1625
1626
|
attributes: i
|
|
1626
|
-
}),
|
|
1627
|
+
}), La({
|
|
1627
1628
|
dataItem: i,
|
|
1628
1629
|
symbolField: v,
|
|
1629
1630
|
rendererSymbol: d,
|
|
@@ -1635,7 +1636,7 @@ async function Yn(t) {
|
|
|
1635
1636
|
}
|
|
1636
1637
|
return { rendererSymbol: d, colorMatchApplied: f };
|
|
1637
1638
|
}
|
|
1638
|
-
function
|
|
1639
|
+
function Ii(t) {
|
|
1639
1640
|
const { splitByField: e, attributes: i, x: a, mode: r } = t;
|
|
1640
1641
|
[a, e ?? ""].forEach((n) => {
|
|
1641
1642
|
i[n] === (r === "encode" ? null : C.nullValue) && (i[n] = r === "encode" ? C.nullValue : null);
|
|
@@ -1645,7 +1646,7 @@ function Zn(t) {
|
|
|
1645
1646
|
const { dataItem: e, seriesConfig: i, chartSubType: a, colorMatch: r, rendererType: n } = t;
|
|
1646
1647
|
let s;
|
|
1647
1648
|
if (r && e !== void 0) {
|
|
1648
|
-
const o =
|
|
1649
|
+
const o = Pa({
|
|
1649
1650
|
seriesConfig: i,
|
|
1650
1651
|
chartSubType: a,
|
|
1651
1652
|
rendererType: n,
|
|
@@ -1658,7 +1659,7 @@ function Zn(t) {
|
|
|
1658
1659
|
function sd(t) {
|
|
1659
1660
|
const { seriesSymbol: e, rendererSymbol: i, colorIndex: a } = t;
|
|
1660
1661
|
let r = i?.color ?? e.color;
|
|
1661
|
-
r = r ??
|
|
1662
|
+
r = r ?? na({ colorIndex: a, opacity: sa });
|
|
1662
1663
|
const n = {
|
|
1663
1664
|
...e,
|
|
1664
1665
|
color: r
|
|
@@ -1676,7 +1677,7 @@ function Xn(t) {
|
|
|
1676
1677
|
}
|
|
1677
1678
|
function od(t, e) {
|
|
1678
1679
|
let i = !1;
|
|
1679
|
-
if (t && e && e.length > 0 &&
|
|
1680
|
+
if (t && e && e.length > 0 && ra(t)) {
|
|
1680
1681
|
const r = ts(t), n = Re(t);
|
|
1681
1682
|
r ? i = Xn(t).some((o) => e.includes(o)) : i = e.includes(n.x);
|
|
1682
1683
|
}
|
|
@@ -1718,7 +1719,7 @@ function ei(t, e) {
|
|
|
1718
1719
|
function ud(t) {
|
|
1719
1720
|
const { chartConfig: e, queryObject: i, chartData: a } = t;
|
|
1720
1721
|
let r = [];
|
|
1721
|
-
const n = k(e.series), s =
|
|
1722
|
+
const n = k(e.series), s = ra(e), o = z(i), u = e.chartRenderer ?? o?.renderer?.toJSON();
|
|
1722
1723
|
return r = e.series.map((c, l) => {
|
|
1723
1724
|
const d = _([c]);
|
|
1724
1725
|
let f;
|
|
@@ -1728,7 +1729,7 @@ function ud(t) {
|
|
|
1728
1729
|
chartSubType: n,
|
|
1729
1730
|
colorMatch: s,
|
|
1730
1731
|
rendererType: u?.type
|
|
1731
|
-
})?.color : f === void 0 && (f =
|
|
1732
|
+
})?.color : f === void 0 && (f = na({ colorIndex: l }))), f;
|
|
1732
1733
|
}).filter((c) => c !== void 0), r;
|
|
1733
1734
|
}
|
|
1734
1735
|
function ti(t) {
|
|
@@ -1751,7 +1752,7 @@ function as(t, e) {
|
|
|
1751
1752
|
const i = me.now().offset / 60, a = me.now().setZone(t) ?? i, r = a.offset / 60, n = e ? a.setZone(e).offset / 60 : 0;
|
|
1752
1753
|
return r - n;
|
|
1753
1754
|
}
|
|
1754
|
-
function
|
|
1755
|
+
function Ma(t) {
|
|
1755
1756
|
const {
|
|
1756
1757
|
outTimeZone: e = Intl.DateTimeFormat().resolvedOptions().timeZone,
|
|
1757
1758
|
dataTimeZone: i = "UTC",
|
|
@@ -1768,7 +1769,7 @@ function Pa(t) {
|
|
|
1768
1769
|
return r;
|
|
1769
1770
|
}
|
|
1770
1771
|
function rs(t) {
|
|
1771
|
-
const { dateFieldName: e, unit: i, runsOnClientQueryEngine: a, outTimeZone: r } = t, n =
|
|
1772
|
+
const { dateFieldName: e, unit: i, runsOnClientQueryEngine: a, outTimeZone: r } = t, n = Ma({ runsOnClientQueryEngine: a, outTimeZone: r }), s = `EXTRACT(YEAR FROM ${e} ${n})`, o = `EXTRACT(MONTH FROM ${e} ${n})`, u = `EXTRACT(DAY FROM ${e} ${n})`, c = `EXTRACT(HOUR FROM ${e} ${n})`, l = `EXTRACT(MINUTE FROM ${e} ${n})`, d = `EXTRACT(SECOND FROM ${e} ${n})`;
|
|
1772
1773
|
let f = [];
|
|
1773
1774
|
switch (i) {
|
|
1774
1775
|
case R.Second:
|
|
@@ -1919,10 +1920,10 @@ function ds(t) {
|
|
|
1919
1920
|
]);
|
|
1920
1921
|
}
|
|
1921
1922
|
}
|
|
1922
|
-
function
|
|
1923
|
+
function Da(t) {
|
|
1923
1924
|
const { chartConfig: e, uniqueQuery: i, chartLimits: a } = t;
|
|
1924
1925
|
if (a?.behaviorAfterLimit === lt.RenderUpToTheLimit) {
|
|
1925
|
-
const r =
|
|
1926
|
+
const r = Aa(e, a);
|
|
1926
1927
|
if (r !== void 0) {
|
|
1927
1928
|
const n = k(e.series);
|
|
1928
1929
|
if (n === F.PieFromFields || n === F.BarAndLineFromFields) {
|
|
@@ -2014,7 +2015,7 @@ function yi(t) {
|
|
|
2014
2015
|
}
|
|
2015
2016
|
N.where = M;
|
|
2016
2017
|
}
|
|
2017
|
-
|
|
2018
|
+
Da({ chartConfig: e, uniqueQuery: N, chartLimits: u });
|
|
2018
2019
|
const { gdbVersion: T, geometry: w, distance: L, units: A, timeExtent: I, where: P, objectIds: O, spatialRelationship: V } = i;
|
|
2019
2020
|
return T !== void 0 && (N.gdbVersion = T), w !== void 0 && (N.geometry = w), L !== void 0 && (N.distance = L), A !== void 0 && (N.units = A), I !== void 0 && (N.timeExtent = I), O !== void 0 && (N.objectIds = O), V !== void 0 && (N.spatialRelationship = V), P !== void 0 && (N.where = Y([N.where, P])), { uniqueQuery: N, mapToStatField: g };
|
|
2020
2021
|
}
|
|
@@ -2077,10 +2078,10 @@ async function ys(t) {
|
|
|
2077
2078
|
if (!ie(f))
|
|
2078
2079
|
throw new re(le.LayerNotSupported);
|
|
2079
2080
|
f.loaded || await f.load({ signal: n });
|
|
2080
|
-
const m = await
|
|
2081
|
+
const m = await dt(f, n);
|
|
2081
2082
|
if (!m)
|
|
2082
2083
|
throw new Error("Raster info is not available for the layer.");
|
|
2083
|
-
const y =
|
|
2084
|
+
const y = ft(e.geometry) ?? f.fullExtent, p = m.bandCount === 1 ? 0 : m.bandInfos.findIndex((b) => b.name === c);
|
|
2084
2085
|
let g, S;
|
|
2085
2086
|
if (s !== !0 && (l === void 0 || l === Z.None) && d && Array.isArray(m.histograms) && m.histograms.length > p && m.histograms[p].size % d === 0 && Array.isArray(m.statistics) && m?.statistics?.length > p)
|
|
2086
2087
|
g = m.histograms[p], S = m.statistics[p];
|
|
@@ -2095,7 +2096,7 @@ async function ys(t) {
|
|
|
2095
2096
|
), O = L ** P;
|
|
2096
2097
|
b = m.pixelSize.x * O, v = m.pixelSize.y * O, x = f.spatialReference;
|
|
2097
2098
|
}
|
|
2098
|
-
const B = new
|
|
2099
|
+
const B = new da({
|
|
2099
2100
|
x: b,
|
|
2100
2101
|
y: v,
|
|
2101
2102
|
spatialReference: x
|
|
@@ -2215,7 +2216,7 @@ function Ss(t) {
|
|
|
2215
2216
|
pixelRanges: s
|
|
2216
2217
|
} : void 0;
|
|
2217
2218
|
}
|
|
2218
|
-
function
|
|
2219
|
+
function St(t, e) {
|
|
2219
2220
|
let i, a;
|
|
2220
2221
|
const r = e ?? ((n) => n);
|
|
2221
2222
|
for (const n of t) {
|
|
@@ -2290,7 +2291,7 @@ async function vs(t) {
|
|
|
2290
2291
|
let m;
|
|
2291
2292
|
const y = z(e), p = ge(y);
|
|
2292
2293
|
if (p) {
|
|
2293
|
-
const S = { where: Y([u, p.definitionExpression]) }, b = { query: S, signal: o }, v =
|
|
2294
|
+
const S = { where: Y([u, p.definitionExpression]) }, b = { query: S, signal: o }, v = ft(c)?.extent?.toJSON();
|
|
2294
2295
|
if (v !== void 0) {
|
|
2295
2296
|
const B = Cs(d), { xmin: N, ymin: T, xmax: w, ymax: L } = v;
|
|
2296
2297
|
S.geometryType = "esriGeometryEnvelope", S.geometry = `${N},${T},${w},${L}`, l !== void 0 && (S.distance = l.toString()), B !== void 0 && (S.units = B, c?.spatialReference?.wkid != null && (S.inSR = c.spatialReference.wkid.toString()));
|
|
@@ -2300,9 +2301,9 @@ async function vs(t) {
|
|
|
2300
2301
|
try {
|
|
2301
2302
|
m = (await Lt(x, b)).data?.features?.[0]?.attributes;
|
|
2302
2303
|
} catch (B) {
|
|
2303
|
-
const N = s ?? (await
|
|
2304
|
+
const N = s ?? (await mt(
|
|
2304
2305
|
ze(document.documentElement).t9nLocale,
|
|
2305
|
-
|
|
2306
|
+
gt("./assets/common/t9n"),
|
|
2306
2307
|
"messages."
|
|
2307
2308
|
)).errorStrings;
|
|
2308
2309
|
throw new re(le.QueryFeaturesError, N.errors.queryError, B);
|
|
@@ -2310,7 +2311,7 @@ async function vs(t) {
|
|
|
2310
2311
|
}
|
|
2311
2312
|
return m;
|
|
2312
2313
|
}
|
|
2313
|
-
function
|
|
2314
|
+
function Oa(t, e) {
|
|
2314
2315
|
return {
|
|
2315
2316
|
lowerBoundaryAlias: `charts_lower_boundary_${t}`,
|
|
2316
2317
|
upperBoundaryAlias: `charts_upper_boundary_${t}`,
|
|
@@ -2421,10 +2422,10 @@ async function xt(t) {
|
|
|
2421
2422
|
signal: n ?? (a !== void 0 ? Ge.get(a)?.signal : void 0)
|
|
2422
2423
|
});
|
|
2423
2424
|
} catch (f) {
|
|
2424
|
-
if (!
|
|
2425
|
-
const m = r ?? (await
|
|
2425
|
+
if (!ca.isAbortError(f)) {
|
|
2426
|
+
const m = r ?? (await mt(
|
|
2426
2427
|
ze(document.documentElement).t9nLocale,
|
|
2427
|
-
|
|
2428
|
+
gt("./assets/common/t9n"),
|
|
2428
2429
|
"messages."
|
|
2429
2430
|
)).errorStrings;
|
|
2430
2431
|
throw new re(le.QueryFeaturesError, m.errors.queryError, f);
|
|
@@ -2441,7 +2442,7 @@ async function xt(t) {
|
|
|
2441
2442
|
}
|
|
2442
2443
|
return o;
|
|
2443
2444
|
}
|
|
2444
|
-
async function
|
|
2445
|
+
async function Ia(t) {
|
|
2445
2446
|
const { queryObject: e, queryConfig: i, returnUniqueIdsOnly: a, abortKey: r, errorStrings: n, abortSignal: s } = t;
|
|
2446
2447
|
let o = [];
|
|
2447
2448
|
const u = z(e), c = s || (r !== void 0 ? Ge.get(r)?.signal : void 0), l = xo(u), d = hi({
|
|
@@ -2462,10 +2463,10 @@ async function Oa(t) {
|
|
|
2462
2463
|
else
|
|
2463
2464
|
o = (await e.queryFeatures(d, { signal: c })).features;
|
|
2464
2465
|
} catch (f) {
|
|
2465
|
-
if (!
|
|
2466
|
-
const m = n ?? (await
|
|
2466
|
+
if (!ca.isAbortError(f)) {
|
|
2467
|
+
const m = n ?? (await mt(
|
|
2467
2468
|
ze(document.documentElement).t9nLocale,
|
|
2468
|
-
|
|
2469
|
+
gt("./assets/common/t9n"),
|
|
2469
2470
|
"messages."
|
|
2470
2471
|
)).errorStrings;
|
|
2471
2472
|
throw new re(le.QueryFeaturesError, m.errors.queryError, f);
|
|
@@ -2482,14 +2483,14 @@ async function ws(t) {
|
|
|
2482
2483
|
...r,
|
|
2483
2484
|
start: u,
|
|
2484
2485
|
num: Math.min(a, i - u)
|
|
2485
|
-
}, e.push(
|
|
2486
|
+
}, e.push(Ia({ ...l, abortSignal: n })), u += a, o += 1;
|
|
2486
2487
|
}
|
|
2487
2488
|
return s = (await Promise.all(e)).flat(), s;
|
|
2488
2489
|
}
|
|
2489
2490
|
async function Fe(t) {
|
|
2490
2491
|
const { queryObject: e, queryConfig: i, returnUniqueIdsOnly: a, featureCount: r, noBatch: n, errorStrings: s, abortKey: o, abortSignal: u } = t;
|
|
2491
2492
|
let c = [];
|
|
2492
|
-
const l = z(e), d = r ?? 1, f =
|
|
2493
|
+
const l = z(e), d = r ?? 1, f = za(l);
|
|
2493
2494
|
if (n !== !0 && d > f && l?.capabilities?.query.supportsPagination) {
|
|
2494
2495
|
let m = 0, y = 0;
|
|
2495
2496
|
const p = Math.ceil(d / f), g = Math.ceil(p / W.maxParallelRequests), S = [];
|
|
@@ -2508,7 +2509,7 @@ async function Fe(t) {
|
|
|
2508
2509
|
S.push(v), y += 1;
|
|
2509
2510
|
}
|
|
2510
2511
|
c = (await Promise.all(S)).flat();
|
|
2511
|
-
} else (Number.isNaN(d) || d >= 0) && (c = await
|
|
2512
|
+
} else (Number.isNaN(d) || d >= 0) && (c = await Ia({
|
|
2512
2513
|
queryObject: e,
|
|
2513
2514
|
queryConfig: i,
|
|
2514
2515
|
returnUniqueIdsOnly: a,
|
|
@@ -2536,7 +2537,7 @@ function Ls(t) {
|
|
|
2536
2537
|
e !== void 0 && e.abort(), Ge.set(t, new AbortController());
|
|
2537
2538
|
}
|
|
2538
2539
|
}
|
|
2539
|
-
function
|
|
2540
|
+
function Ea(t) {
|
|
2540
2541
|
return {
|
|
2541
2542
|
lowerBoundaryAlias: `charts_lower_boundary_${t}`,
|
|
2542
2543
|
upperBoundaryAlias: `charts_upper_boundary_${t}`
|
|
@@ -2573,18 +2574,18 @@ async function Ps(t) {
|
|
|
2573
2574
|
d = (await e.queryAttributeBins(y, { signal: l })).features;
|
|
2574
2575
|
}
|
|
2575
2576
|
} catch (y) {
|
|
2576
|
-
const p = o ?? (await
|
|
2577
|
+
const p = o ?? (await mt(
|
|
2577
2578
|
ze(document.documentElement).t9nLocale,
|
|
2578
|
-
|
|
2579
|
+
gt("./assets/common/t9n"),
|
|
2579
2580
|
"messages."
|
|
2580
2581
|
)).errorStrings;
|
|
2581
2582
|
throw new re(le.QueryFeaturesError, p.errors.queryError, y);
|
|
2582
2583
|
}
|
|
2583
2584
|
}
|
|
2584
2585
|
if (f === !1) {
|
|
2585
|
-
const m = o ?? (await
|
|
2586
|
+
const m = o ?? (await mt(
|
|
2586
2587
|
ze(document.documentElement).t9nLocale,
|
|
2587
|
-
|
|
2588
|
+
gt("./assets/common/t9n"),
|
|
2588
2589
|
"messages."
|
|
2589
2590
|
)).errorStrings;
|
|
2590
2591
|
throw new re(
|
|
@@ -2613,7 +2614,7 @@ async function Ms(t) {
|
|
|
2613
2614
|
return a;
|
|
2614
2615
|
}
|
|
2615
2616
|
function Ds(t) {
|
|
2616
|
-
const { x: e, y: i, trendlineXToY: a, data: r } = t, { min: n, max: s } = r ?
|
|
2617
|
+
const { x: e, y: i, trendlineXToY: a, data: r } = t, { min: n, max: s } = r ? St(r, (u) => u[e]) : { min: Number.NaN, max: Number.NaN };
|
|
2617
2618
|
return [
|
|
2618
2619
|
{ [e]: n ?? Number.NaN, [i]: a(n ?? Number.NaN) },
|
|
2619
2620
|
{ [e]: s ?? Number.NaN, [i]: a(s ?? Number.NaN) }
|
|
@@ -2626,7 +2627,7 @@ function Os(t) {
|
|
|
2626
2627
|
}
|
|
2627
2628
|
async function Is(t) {
|
|
2628
2629
|
const { statsMap: e, queryObject: i, chartConfig: a, queryConfig: r, errorStrings: n, abortSignal: s } = t, o = a.series[0], { x: u, y: c } = o;
|
|
2629
|
-
|
|
2630
|
+
yt(i);
|
|
2630
2631
|
let l = Number.NaN, d = [
|
|
2631
2632
|
{ [u]: Number.NaN, [c]: Number.NaN },
|
|
2632
2633
|
{ [u]: Number.NaN, [c]: Number.NaN }
|
|
@@ -2667,7 +2668,7 @@ async function Is(t) {
|
|
|
2667
2668
|
}
|
|
2668
2669
|
return { r2: l, trendLinePoints: d };
|
|
2669
2670
|
}
|
|
2670
|
-
function
|
|
2671
|
+
function qa(t) {
|
|
2671
2672
|
const { data: e, chartConfig: i } = t, a = i.series[0], { x: r, y: n } = a;
|
|
2672
2673
|
let { r2: s, trendLinePoints: o } = C.scatterplotSeries;
|
|
2673
2674
|
const u = Os({ data: e, x: r, y: n });
|
|
@@ -2677,7 +2678,7 @@ function Ea(t) {
|
|
|
2677
2678
|
}
|
|
2678
2679
|
return { r2: s, trendLinePoints: o };
|
|
2679
2680
|
}
|
|
2680
|
-
async function
|
|
2681
|
+
async function Va(t) {
|
|
2681
2682
|
const e = await Ms(t), { chartConfig: i } = t, a = i.series[0], { x: r, y: n } = a, { r2: s } = C.scatterplotSeries, o = [
|
|
2682
2683
|
{ [r]: Number.NaN, [n]: Number.NaN },
|
|
2683
2684
|
{ [r]: Number.NaN, [n]: Number.NaN }
|
|
@@ -2689,13 +2690,13 @@ async function qa(t) {
|
|
|
2689
2690
|
} catch {
|
|
2690
2691
|
c = !0;
|
|
2691
2692
|
}
|
|
2692
|
-
return (!e || c) && (u =
|
|
2693
|
+
return (!e || c) && (u = qa(t)), u;
|
|
2693
2694
|
}
|
|
2694
2695
|
const Es = 50, qs = 4194304;
|
|
2695
2696
|
async function Vs(t) {
|
|
2696
2697
|
const { layer: e, chartConfig: i, rawData: a } = t;
|
|
2697
2698
|
let r;
|
|
2698
|
-
const n = i.series[0], { x: s, y: o } = n, { idField: u } = ve(e), c = await
|
|
2699
|
+
const n = i.series[0], { x: s, y: o } = n, { idField: u } = ve(e), c = await dt(e);
|
|
2699
2700
|
if (c) {
|
|
2700
2701
|
const l = c.bandInfos, d = l.length === 1, f = d ? l?.[0].name : "";
|
|
2701
2702
|
r = a.map((m) => ({
|
|
@@ -2734,12 +2735,12 @@ async function $s(t) {
|
|
|
2734
2735
|
chartConfig: e,
|
|
2735
2736
|
rawData: u
|
|
2736
2737
|
});
|
|
2737
|
-
r !== !1 &&
|
|
2738
|
+
r !== !1 && ht({
|
|
2738
2739
|
arrayToSort: c,
|
|
2739
2740
|
sortingField: e.series[0].x,
|
|
2740
2741
|
orderBy: ye.Ascending
|
|
2741
2742
|
});
|
|
2742
|
-
const l = /* @__PURE__ */ new Map(), { r2: d, trendLinePoints: f } = n !== !1 ? await
|
|
2743
|
+
const l = /* @__PURE__ */ new Map(), { r2: d, trendLinePoints: f } = n !== !1 ? await Va({
|
|
2743
2744
|
data: c,
|
|
2744
2745
|
statsMap: l,
|
|
2745
2746
|
queryConfig: i,
|
|
@@ -2874,7 +2875,7 @@ function js(t) {
|
|
|
2874
2875
|
}
|
|
2875
2876
|
return r;
|
|
2876
2877
|
}
|
|
2877
|
-
function
|
|
2878
|
+
function Ei(t, e) {
|
|
2878
2879
|
let i;
|
|
2879
2880
|
return t == null && e ? i = {
|
|
2880
2881
|
groupKey: C.nullValue,
|
|
@@ -2885,10 +2886,10 @@ function Ii(t, e) {
|
|
|
2885
2886
|
async function Hs(t) {
|
|
2886
2887
|
const { layer: e, geometry: i, filterByViewExtent: a, view: r, abortKey: n, abortSignal: s } = t;
|
|
2887
2888
|
e.loaded || await e.load({ signal: s });
|
|
2888
|
-
const o = await
|
|
2889
|
+
const o = await dt(e, s), u = ft(i) ?? e.fullExtent;
|
|
2889
2890
|
let c = o?.attributeTable;
|
|
2890
2891
|
if (a) {
|
|
2891
|
-
const l = r ? new
|
|
2892
|
+
const l = r ? new da({
|
|
2892
2893
|
x: r.resolution,
|
|
2893
2894
|
y: r.resolution,
|
|
2894
2895
|
spatialReference: r.spatialReference
|
|
@@ -2937,12 +2938,12 @@ async function zs(t) {
|
|
|
2937
2938
|
else {
|
|
2938
2939
|
const m = i.groupByFieldsForStatistics?.[0] ?? "", y = f.some((S) => S.query?.fetchNullValues), p = /* @__PURE__ */ new Map();
|
|
2939
2940
|
for (const S of d) {
|
|
2940
|
-
const { groupKey: b } =
|
|
2941
|
+
const { groupKey: b } = Ei(S.attributes[m], y);
|
|
2941
2942
|
b === C.nullValue && !y || (p.has(b) || p.set(b, []), p.get(b).push(S.attributes));
|
|
2942
2943
|
}
|
|
2943
2944
|
const g = [];
|
|
2944
2945
|
p.forEach((S) => {
|
|
2945
|
-
const b = {}, v = S[0][m], { display: x, original: B } =
|
|
2946
|
+
const b = {}, v = S[0][m], { display: x, original: B } = Ei(v, y);
|
|
2946
2947
|
b[m] = x, b[C.xAxisField] = x, b[C.originalCategoryValue] = B, f.forEach((N) => {
|
|
2947
2948
|
const T = N.query?.outStatistics?.[0];
|
|
2948
2949
|
if (!T) {
|
|
@@ -2971,7 +2972,7 @@ async function zs(t) {
|
|
|
2971
2972
|
return u;
|
|
2972
2973
|
}
|
|
2973
2974
|
async function gd(t) {
|
|
2974
|
-
const { layer: e, category: i, splitByField: a, fetchNullValues: r } = t, o = (await
|
|
2975
|
+
const { layer: e, category: i, splitByField: a, fetchNullValues: r } = t, o = (await dt(e))?.attributeTable?.features, u = a ?? i;
|
|
2975
2976
|
return Array.from(
|
|
2976
2977
|
new Set(
|
|
2977
2978
|
o?.filter((l) => {
|
|
@@ -3003,7 +3004,7 @@ function Gs(t, e) {
|
|
|
3003
3004
|
function Us(t) {
|
|
3004
3005
|
const { chartConfig: e, layer: i, selectionDataItems: a } = t;
|
|
3005
3006
|
let r;
|
|
3006
|
-
const n = i.serviceRasterInfo?.attributeTable, s = e.series?.[0]?.x, o = n?.features, u = n?.fields?.find(({ name: c }) => c.toLowerCase() === "value")?.name;
|
|
3007
|
+
const n = i.serviceRasterInfo?.attributeTable ?? ct(i)?.attributeTable, s = e.series?.[0]?.x, o = n?.features, u = n?.fields?.find(({ name: c }) => c.toLowerCase() === "value")?.name;
|
|
3007
3008
|
if (a.length > 0 && s && o && o.length > 0 && u) {
|
|
3008
3009
|
const c = new Set(
|
|
3009
3010
|
a.map((l) => l[s]).filter((l) => l !== void 0)
|
|
@@ -3037,7 +3038,7 @@ async function pd(t) {
|
|
|
3037
3038
|
if (Dr(Zs, i))
|
|
3038
3039
|
switch (_(i?.series)) {
|
|
3039
3040
|
case h.BarSeries:
|
|
3040
|
-
a.loaded || await a.load({ signal: r }), e = !!(await
|
|
3041
|
+
a.loaded || await a.load({ signal: r }), e = !!(await dt(a, r))?.attributeTable;
|
|
3041
3042
|
break;
|
|
3042
3043
|
case h.HistogramSeries:
|
|
3043
3044
|
case h.ScatterSeries:
|
|
@@ -3049,7 +3050,7 @@ async function pd(t) {
|
|
|
3049
3050
|
async function Xs(t) {
|
|
3050
3051
|
const { layer: e, chartConfig: i } = t;
|
|
3051
3052
|
let a;
|
|
3052
|
-
return ie(e) ? a = e : i?.iLayer?.layerType === "ArcGISImageServiceLayer" ? a = await
|
|
3053
|
+
return ie(e) ? a = e : i?.iLayer?.layerType === "ArcGISImageServiceLayer" ? a = await ka(i.iLayer) : i?.iLayer?.layerType === "ArcGISTiledImageServiceLayer" && (a = await Qa(i.iLayer)), a;
|
|
3053
3054
|
}
|
|
3054
3055
|
function Js(t) {
|
|
3055
3056
|
let e;
|
|
@@ -3066,11 +3067,11 @@ function Js(t) {
|
|
|
3066
3067
|
}
|
|
3067
3068
|
return e;
|
|
3068
3069
|
}
|
|
3069
|
-
function
|
|
3070
|
+
function Ra(t) {
|
|
3070
3071
|
if (!t.loaded)
|
|
3071
3072
|
throw new Error("Raster layer must be loaded to get its ID field name");
|
|
3072
3073
|
let e;
|
|
3073
|
-
const i =
|
|
3074
|
+
const i = ct(t);
|
|
3074
3075
|
if (i?.attributeTable) {
|
|
3075
3076
|
const a = i.attributeTable.fields, r = a.find((n) => n.type === "oid")?.name;
|
|
3076
3077
|
r ? e = r : e = a.find((s) => s.name.toLowerCase() === "value")?.name;
|
|
@@ -3078,21 +3079,21 @@ function Va(t) {
|
|
|
3078
3079
|
e = ii;
|
|
3079
3080
|
return e ?? ii;
|
|
3080
3081
|
}
|
|
3081
|
-
function
|
|
3082
|
+
function $a(t) {
|
|
3082
3083
|
const { layer: e, chartType: i, rasterInfo: a, popupTemplateFieldInfosEnabled: r } = t;
|
|
3083
3084
|
if (!e.loaded)
|
|
3084
3085
|
throw new Error("Raster layer must be loaded to get its fields info");
|
|
3085
|
-
const n = a ??
|
|
3086
|
+
const n = a ?? ct(e);
|
|
3086
3087
|
if (!n)
|
|
3087
3088
|
throw new Error("Raster info must be provided or generated beforehand to get raster layer fields info");
|
|
3088
3089
|
let s = [];
|
|
3089
|
-
return i !== void 0 ? i !== h.BarSeries ? s =
|
|
3090
|
+
return i !== void 0 ? i !== h.BarSeries ? s = qi({ layer: e, rasterInfo: n, popupTemplateFieldInfosEnabled: r }) : n.attributeTable && (s = n.attributeTable.fields.map((o) => o.toJSON())) : n.attributeTable ? s = n.attributeTable.fields.map((o) => o.toJSON()) : s = qi({ layer: e, rasterInfo: n, popupTemplateFieldInfosEnabled: r }), s;
|
|
3090
3091
|
}
|
|
3091
|
-
function
|
|
3092
|
+
function qi(t) {
|
|
3092
3093
|
const { layer: e, rasterInfo: i, popupTemplateFieldInfosEnabled: a } = t;
|
|
3093
3094
|
if (!e.loaded)
|
|
3094
3095
|
throw new Error("Raster layer must be loaded to get its fields info");
|
|
3095
|
-
const r = i ??
|
|
3096
|
+
const r = i ?? ct(e);
|
|
3096
3097
|
if (!r)
|
|
3097
3098
|
throw new Error("Raster info must be provided or generated beforehand to get raster layer fields info");
|
|
3098
3099
|
let n;
|
|
@@ -3117,15 +3118,15 @@ function Ei(t) {
|
|
|
3117
3118
|
}
|
|
3118
3119
|
return n;
|
|
3119
3120
|
}
|
|
3120
|
-
async function
|
|
3121
|
-
return t.loaded || await t.load({ signal: e }), Qr(t) ?
|
|
3121
|
+
async function dt(t, e) {
|
|
3122
|
+
return t.loaded || await t.load({ signal: e }), Qr(t) ? ct(t) ?? void 0 : await t.generateRasterInfo(t.rasterFunction, { signal: e });
|
|
3122
3123
|
}
|
|
3123
3124
|
async function hd(t, e) {
|
|
3124
3125
|
t.loaded || await t.load();
|
|
3125
|
-
const i = await
|
|
3126
|
-
return
|
|
3126
|
+
const i = await dt(t);
|
|
3127
|
+
return $a({ layer: t, rasterInfo: i, popupTemplateFieldInfosEnabled: e });
|
|
3127
3128
|
}
|
|
3128
|
-
const
|
|
3129
|
+
const ka = Et(
|
|
3129
3130
|
async (t, e) => {
|
|
3130
3131
|
const i = {}, a = t.layerDefinition;
|
|
3131
3132
|
i.definitionExpression = a?.definitionExpression, i.id = t.id, t.url !== void 0 && (i.url = t.url), t.itemId !== void 0 && t.layerDefinition?.id !== void 0 && (i.portalItem = { id: t.itemId });
|
|
@@ -3134,7 +3135,7 @@ const $a = Et(
|
|
|
3134
3135
|
},
|
|
3135
3136
|
(t) => JSON.stringify(t, Object.keys(t).sort())
|
|
3136
3137
|
// stringify with sorted keys
|
|
3137
|
-
),
|
|
3138
|
+
), Qa = Et(
|
|
3138
3139
|
async (t, e) => {
|
|
3139
3140
|
const i = {};
|
|
3140
3141
|
i.id = t.id, t.url !== void 0 && (i.url = t.url), t.itemId !== void 0 && (i.portalItem = { id: t.itemId });
|
|
@@ -3156,7 +3157,7 @@ const $a = Et(
|
|
|
3156
3157
|
let i = -1;
|
|
3157
3158
|
if (!t.loaded)
|
|
3158
3159
|
throw new Error("Raster layer must be loaded to get its band ID by name");
|
|
3159
|
-
const a =
|
|
3160
|
+
const a = ct(t)?.bandInfos;
|
|
3160
3161
|
if (a?.length === 1)
|
|
3161
3162
|
i = 0;
|
|
3162
3163
|
else if (e && a?.length) {
|
|
@@ -3203,12 +3204,12 @@ async function eo(t) {
|
|
|
3203
3204
|
const o = n && Ge.get(n)?.signal || void 0, u = z(e);
|
|
3204
3205
|
u.loaded || await kt(u, o);
|
|
3205
3206
|
const l = {
|
|
3206
|
-
geometry:
|
|
3207
|
+
geometry: ft(i.geometry) ?? u.fullExtent,
|
|
3207
3208
|
autoResample: !0,
|
|
3208
3209
|
maxPixelCount: r,
|
|
3209
3210
|
skipFactor: a
|
|
3210
3211
|
}, d = await Yr(u, l, { signal: o });
|
|
3211
|
-
s =
|
|
3212
|
+
s = ta.fromJSON(d.featureSet).features;
|
|
3212
3213
|
} catch {
|
|
3213
3214
|
s = [];
|
|
3214
3215
|
}
|
|
@@ -3257,8 +3258,8 @@ const gi = Et(
|
|
|
3257
3258
|
r = t.layerDefinition;
|
|
3258
3259
|
const n = {};
|
|
3259
3260
|
if (a !== void 0) {
|
|
3260
|
-
if (n.source =
|
|
3261
|
-
const o =
|
|
3261
|
+
if (n.source = ta.fromJSON(a).features, r?.fields !== void 0 && (n.fields = r.fields.map((o) => wr.fromJSON(o))), r?.objectIdField !== void 0 && (n.objectIdField = r.objectIdField), r?.geometryType !== void 0) {
|
|
3262
|
+
const o = Ji.fromJSON({
|
|
3262
3263
|
geometryType: r.geometryType
|
|
3263
3264
|
});
|
|
3264
3265
|
o?.type !== void 0 && o?.type !== "extent" && (n.geometryType = o.type);
|
|
@@ -3268,7 +3269,7 @@ const gi = Et(
|
|
|
3268
3269
|
n.id = t.id, r?.id !== void 0 && (n.layerId = r.id), t.url !== void 0 && (n.url = t.url), t.itemId !== void 0 && r?.id !== void 0 && (n.portalItem = { id: t.itemId });
|
|
3269
3270
|
if (r !== void 0) {
|
|
3270
3271
|
const o = r.drawingInfo;
|
|
3271
|
-
o?.renderer !== void 0 && (n.renderer =
|
|
3272
|
+
o?.renderer !== void 0 && (n.renderer = ea.fromJSON(o.renderer));
|
|
3272
3273
|
}
|
|
3273
3274
|
const s = new Tr(n);
|
|
3274
3275
|
return await s.load({ signal: e }), s;
|
|
@@ -3283,10 +3284,10 @@ async function Fd(t, e) {
|
|
|
3283
3284
|
i = await gi(t, e);
|
|
3284
3285
|
break;
|
|
3285
3286
|
case "ArcGISImageServiceLayer":
|
|
3286
|
-
i = await
|
|
3287
|
+
i = await ka(t, e);
|
|
3287
3288
|
break;
|
|
3288
3289
|
case "ArcGISTiledImageServiceLayer":
|
|
3289
|
-
i = await
|
|
3290
|
+
i = await Qa(t, e);
|
|
3290
3291
|
break;
|
|
3291
3292
|
case "WCS":
|
|
3292
3293
|
i = await Ks(t, e);
|
|
@@ -3312,7 +3313,7 @@ function Ce(t, e) {
|
|
|
3312
3313
|
let a = [];
|
|
3313
3314
|
if (i !== void 0) {
|
|
3314
3315
|
const r = e === !0 && i?.popupTemplate?.fieldInfos !== void 0;
|
|
3315
|
-
ie(i) ? a =
|
|
3316
|
+
ie(i) ? a = $a({ layer: i, popupTemplateFieldInfosEnabled: e }) : a = i.fields.map((n) => {
|
|
3316
3317
|
const s = n.toJSON();
|
|
3317
3318
|
if (r) {
|
|
3318
3319
|
const o = i.popupTemplate?.fieldInfos?.find(
|
|
@@ -3331,7 +3332,7 @@ function xd(t, e = []) {
|
|
|
3331
3332
|
function $t(t) {
|
|
3332
3333
|
let e, i = !1;
|
|
3333
3334
|
if (ie(t))
|
|
3334
|
-
e = [
|
|
3335
|
+
e = [Ra(t)];
|
|
3335
3336
|
else {
|
|
3336
3337
|
const a = ge(t);
|
|
3337
3338
|
a && ("uniqueIdFields" in a && a.uniqueIdFields && a.uniqueIdFields.length > 0 ? e = a.uniqueIdFields : (e = [a.objectIdField], i = !0));
|
|
@@ -3341,14 +3342,14 @@ function $t(t) {
|
|
|
3341
3342
|
function ve(t) {
|
|
3342
3343
|
let e = "", i = !1;
|
|
3343
3344
|
if (ie(t))
|
|
3344
|
-
e =
|
|
3345
|
+
e = Ra(t);
|
|
3345
3346
|
else if (t) {
|
|
3346
3347
|
const a = $t(t);
|
|
3347
3348
|
i = a.isTraditionalTypeOID, a.idFields && (e = a.idFields[0]);
|
|
3348
3349
|
}
|
|
3349
3350
|
return { idField: e, isTraditionalTypeOID: i };
|
|
3350
3351
|
}
|
|
3351
|
-
function
|
|
3352
|
+
function Ft(t) {
|
|
3352
3353
|
const e = [
|
|
3353
3354
|
U.Single,
|
|
3354
3355
|
U.Double,
|
|
@@ -3379,7 +3380,7 @@ function ro(t) {
|
|
|
3379
3380
|
return t.filter((e) => ao(e)).map((e) => e.name);
|
|
3380
3381
|
}
|
|
3381
3382
|
function Nd(t) {
|
|
3382
|
-
return t.filter((e) =>
|
|
3383
|
+
return t.filter((e) => Ft(e)).map((e) => e.name);
|
|
3383
3384
|
}
|
|
3384
3385
|
function ri(t, e) {
|
|
3385
3386
|
let i;
|
|
@@ -3393,15 +3394,15 @@ function ni(t, e) {
|
|
|
3393
3394
|
let i = e?.getName(t?.toString()) ?? e?.getName(t) ?? e?.getName(Number(t));
|
|
3394
3395
|
return i === null && (i = void 0), i;
|
|
3395
3396
|
}
|
|
3396
|
-
function
|
|
3397
|
+
function Vi(t) {
|
|
3397
3398
|
const { queryObject: e, fieldName: i, fieldValue: a } = t;
|
|
3398
3399
|
return ie(e) ? void 0 : ni(a, ri(e, i));
|
|
3399
3400
|
}
|
|
3400
|
-
async function
|
|
3401
|
+
async function _a(t) {
|
|
3401
3402
|
let e = [];
|
|
3402
3403
|
return t && !ge(t)?.isTable && t.fieldsIndex && (e = await Lr.getRendererFields(t.renderer, t.fieldsIndex)), e;
|
|
3403
3404
|
}
|
|
3404
|
-
function
|
|
3405
|
+
function ja(t) {
|
|
3405
3406
|
const e = "/rest/services";
|
|
3406
3407
|
let i = t.toLowerCase();
|
|
3407
3408
|
const a = i.indexOf(e);
|
|
@@ -3411,7 +3412,7 @@ async function no(t, e) {
|
|
|
3411
3412
|
let i = !0;
|
|
3412
3413
|
const a = ".arcgis.com/", r = t?.url, n = r?.includes(a);
|
|
3413
3414
|
if (r && n && ge(t)?.sourceJSON?.serviceItemId !== void 0) {
|
|
3414
|
-
const s =
|
|
3415
|
+
const s = ja(r);
|
|
3415
3416
|
try {
|
|
3416
3417
|
const o = (await Lt(s, { query: { f: "json" }, signal: e })).data;
|
|
3417
3418
|
if (o.owningTenant !== void 0 && o.owningSystemUrl !== void 0) {
|
|
@@ -3442,7 +3443,7 @@ function lo(t) {
|
|
|
3442
3443
|
(n) => so({ queryObject: i, fieldToMatch: n, returnUndefinedIfNotFound: a })
|
|
3443
3444
|
)), r;
|
|
3444
3445
|
}
|
|
3445
|
-
function
|
|
3446
|
+
function Ha(t) {
|
|
3446
3447
|
const { queryObject: e, chartConfig: i, runtimeDataFilters: a, ignoreViewExtent: r, view: n } = t, { series: s, dataFilters: o } = i, {
|
|
3447
3448
|
where: u,
|
|
3448
3449
|
gdbVersion: c,
|
|
@@ -3526,10 +3527,10 @@ function Ad(t) {
|
|
|
3526
3527
|
return a;
|
|
3527
3528
|
}
|
|
3528
3529
|
const wd = {
|
|
3529
|
-
getServerRestInfo:
|
|
3530
|
+
getServerRestInfo: ja
|
|
3530
3531
|
};
|
|
3531
3532
|
async function kt(t, e) {
|
|
3532
|
-
await t.load({ signal: e }), (
|
|
3533
|
+
await t.load({ signal: e }), (la(t) || ua(t)) && await t.generateRasterInfo(t.rasterFunction, {
|
|
3533
3534
|
signal: e
|
|
3534
3535
|
});
|
|
3535
3536
|
}
|
|
@@ -3537,7 +3538,7 @@ function mo(t) {
|
|
|
3537
3538
|
const e = !t.geometry || t.geometry.type === "extent", i = (t.where ?? "").toUpperCase(), a = !i.includes("CURRENT_TIMESTAMP") && !i.includes("CURRENT_DATE") && !i.includes("CURRENT_TIME");
|
|
3538
3539
|
return e && a;
|
|
3539
3540
|
}
|
|
3540
|
-
function
|
|
3541
|
+
function za(t) {
|
|
3541
3542
|
let e = W.maxRecords;
|
|
3542
3543
|
if (t && "sourceJSON" in t && t.sourceJSON?.maxRecordCount) {
|
|
3543
3544
|
const { sourceJSON: i } = t;
|
|
@@ -3569,16 +3570,16 @@ function go(t) {
|
|
|
3569
3570
|
}
|
|
3570
3571
|
function Ld(t) {
|
|
3571
3572
|
let e;
|
|
3572
|
-
return t !== void 0 && (e = new
|
|
3573
|
+
return t !== void 0 && (e = new Ki({
|
|
3573
3574
|
start: new Date(t[0]),
|
|
3574
3575
|
end: new Date(t[1])
|
|
3575
3576
|
})), e;
|
|
3576
3577
|
}
|
|
3577
|
-
function
|
|
3578
|
+
function ft(t) {
|
|
3578
3579
|
let e;
|
|
3579
|
-
return t !== void 0 && (e =
|
|
3580
|
+
return t !== void 0 && (e = Ji.fromJSON(t)), e;
|
|
3580
3581
|
}
|
|
3581
|
-
function
|
|
3582
|
+
function Wa(t) {
|
|
3582
3583
|
return t === void 0 ? ["*"] : Array.from(new Set(t));
|
|
3583
3584
|
}
|
|
3584
3585
|
function Qt(t) {
|
|
@@ -3596,8 +3597,8 @@ function Qt(t) {
|
|
|
3596
3597
|
(N) => N.statisticType !== D.EnvelopeAggregate || B
|
|
3597
3598
|
).map((N) => Nr.fromJSON(N));
|
|
3598
3599
|
}
|
|
3599
|
-
const x =
|
|
3600
|
-
return x !== void 0 && (S.geometry = x, a?.spatialRelationship && (S.spatialRelationship = a.spatialRelationship),
|
|
3600
|
+
const x = ft(l);
|
|
3601
|
+
return x !== void 0 && (S.geometry = x, a?.spatialRelationship && (S.spatialRelationship = a.spatialRelationship), ya(p) && (d !== void 0 && (S.distance = d), f !== void 0 && (S.units = f))), m && (S.timeExtent = new Ki({
|
|
3601
3602
|
start: m?.[0],
|
|
3602
3603
|
end: m?.[1]
|
|
3603
3604
|
})), mo(S) && (S.cacheHint = !0), S;
|
|
@@ -3624,7 +3625,7 @@ function ho(t) {
|
|
|
3624
3625
|
view: o,
|
|
3625
3626
|
dateField: r,
|
|
3626
3627
|
useViewTimeZone: u ?? !1
|
|
3627
|
-
}), b =
|
|
3628
|
+
}), b = Ea(r);
|
|
3628
3629
|
if (S.lowerBoundaryAlias = b.lowerBoundaryAlias, S.upperBoundaryAlias = b.upperBoundaryAlias, S.binParameters = {
|
|
3629
3630
|
type: "date",
|
|
3630
3631
|
field: r,
|
|
@@ -3681,7 +3682,7 @@ function pi(t) {
|
|
|
3681
3682
|
break;
|
|
3682
3683
|
}
|
|
3683
3684
|
if (l) {
|
|
3684
|
-
const m = o ? ` ${
|
|
3685
|
+
const m = o ? ` ${Ma({
|
|
3685
3686
|
dataTimeZone: n,
|
|
3686
3687
|
runsOnClientQueryEngine: s,
|
|
3687
3688
|
outTimeZone: r
|
|
@@ -3700,7 +3701,7 @@ function So(t) {
|
|
|
3700
3701
|
let n;
|
|
3701
3702
|
return e && a.length && i === "DAY" ? n = `CASE WHEN (EXTRACT(MONTH FROM ${a})=2 AND EXTRACT(DAY FROM ${a})=29) THEN 0 ELSE EXTRACT (${i} FROM ${a}${r}) END` : n = `EXTRACT (${i} FROM ${a}${r})`, n;
|
|
3702
3703
|
}
|
|
3703
|
-
function
|
|
3704
|
+
function Ri(t) {
|
|
3704
3705
|
const {
|
|
3705
3706
|
temporalBinning: e,
|
|
3706
3707
|
xOrY: i,
|
|
@@ -3749,7 +3750,7 @@ function Fo(t) {
|
|
|
3749
3750
|
type: "fixed-interval",
|
|
3750
3751
|
interval: 1
|
|
3751
3752
|
}, p.lowerBoundaryAlias = W.heatChartLowerBoundaryAlias, p.upperBoundaryAlias = W.heatChartUpperBoundaryAlias, o !== void 0 && (p.binParameters.firstDayOfWeek = o);
|
|
3752
|
-
const g =
|
|
3753
|
+
const g = Ri({
|
|
3753
3754
|
temporalBinning: n,
|
|
3754
3755
|
xOrY: a,
|
|
3755
3756
|
xOrYFieldType: m,
|
|
@@ -3757,7 +3758,7 @@ function Fo(t) {
|
|
|
3757
3758
|
includeLeapDay: u
|
|
3758
3759
|
}), { field: S, expression: b, start: v, end: x } = g;
|
|
3759
3760
|
S ? p.binParameters.field = S : b && (p.binParameters.expression = b, p.binParameters.expressionValueType = "integer", p.binParameters.type === "fixed-interval" && (v !== void 0 && (p.binParameters.start = v), x !== void 0 && (p.binParameters.end = x)));
|
|
3760
|
-
const B =
|
|
3761
|
+
const B = Ri({
|
|
3761
3762
|
temporalBinning: s,
|
|
3762
3763
|
xOrY: r,
|
|
3763
3764
|
xOrYFieldType: y,
|
|
@@ -3777,7 +3778,7 @@ function bo(t) {
|
|
|
3777
3778
|
queryObject: e,
|
|
3778
3779
|
queryConfig: i,
|
|
3779
3780
|
useViewTimeZone: !1
|
|
3780
|
-
}), l =
|
|
3781
|
+
}), l = Oa(s, o);
|
|
3781
3782
|
return c.lowerBoundaryAlias = l.lowerBoundaryAlias, c.upperBoundaryAlias = l.upperBoundaryAlias, c.binParameters = {
|
|
3782
3783
|
type: "fixed-interval",
|
|
3783
3784
|
field: s,
|
|
@@ -3801,18 +3802,18 @@ function hi(t) {
|
|
|
3801
3802
|
});
|
|
3802
3803
|
l.returnGeometry = !1;
|
|
3803
3804
|
const d = z(e);
|
|
3804
|
-
return l.outFields =
|
|
3805
|
+
return l.outFields = Wa(c), l.groupByFieldsForStatistics = r ?? l.groupByFieldsForStatistics, l.orderByFields = n ?? [], l.objectIds = i?.objectIds, a !== void 0 && (l.maxRecordCountFactor = a), s !== void 0 && s !== "" && (l.gdbVersion = s), u !== void 0 && (l.num = u), o !== void 0 && (l.start = o, l.num = l.num ?? za(d)), l;
|
|
3805
3806
|
}
|
|
3806
3807
|
function xo(t) {
|
|
3807
3808
|
return t && "sourceJSON" in t && t.sourceJSON?.advancedQueryCapabilities?.supportsMaxRecordCountFactor === !0 ? W.maxRecordCountFactor : void 0;
|
|
3808
3809
|
}
|
|
3809
3810
|
const Pd = {
|
|
3810
|
-
sanitizeOutFields:
|
|
3811
|
+
sanitizeOutFields: Wa
|
|
3811
3812
|
};
|
|
3812
3813
|
function Co(t = Z.None, e) {
|
|
3813
3814
|
return t === Z.None || t === Z.Log && e > 0 || t === Z.Sqrt && e >= 0;
|
|
3814
3815
|
}
|
|
3815
|
-
function
|
|
3816
|
+
function Ga(t, e) {
|
|
3816
3817
|
const i = { valid: !1 };
|
|
3817
3818
|
return e === !0 ? i.invalidType = j.HistogramEmptyField : t === Z.Log ? i.invalidType = j.NegativeValueInLogCalculation : t === Z.Sqrt && (i.invalidType = j.NegativeValueInSqrtCalculation), i;
|
|
3818
3819
|
}
|
|
@@ -3839,7 +3840,7 @@ function Bo(t) {
|
|
|
3839
3840
|
}
|
|
3840
3841
|
return e;
|
|
3841
3842
|
}
|
|
3842
|
-
function
|
|
3843
|
+
function Ua(t) {
|
|
3843
3844
|
let e = "field";
|
|
3844
3845
|
switch (t) {
|
|
3845
3846
|
case Z.Log:
|
|
@@ -3922,7 +3923,7 @@ function wo(t) {
|
|
|
3922
3923
|
};
|
|
3923
3924
|
return u !== Z.None && (c = {
|
|
3924
3925
|
...c,
|
|
3925
|
-
normalizationType:
|
|
3926
|
+
normalizationType: Ua(u)
|
|
3926
3927
|
}), c;
|
|
3927
3928
|
}
|
|
3928
3929
|
function Lo(t) {
|
|
@@ -3951,7 +3952,7 @@ function Lo(t) {
|
|
|
3951
3952
|
};
|
|
3952
3953
|
return d !== Z.None && (f = {
|
|
3953
3954
|
...f,
|
|
3954
|
-
normalizationType:
|
|
3955
|
+
normalizationType: Ua(d)
|
|
3955
3956
|
}), f;
|
|
3956
3957
|
}
|
|
3957
3958
|
function Po(t, e) {
|
|
@@ -3970,7 +3971,7 @@ async function Mo(t) {
|
|
|
3970
3971
|
abortSignal: u
|
|
3971
3972
|
} = t, c = e.series[0], { dataTransformationType: l } = c;
|
|
3972
3973
|
let d = { valid: !0 };
|
|
3973
|
-
const f = z(a), y =
|
|
3974
|
+
const f = z(a), y = ft(i?.geometry)?.extent?.toJSON() !== void 0, p = s, g = wo({
|
|
3974
3975
|
seriesConfig: c,
|
|
3975
3976
|
layer: f,
|
|
3976
3977
|
view: p,
|
|
@@ -3979,27 +3980,27 @@ async function Mo(t) {
|
|
|
3979
3980
|
abortSignal: u
|
|
3980
3981
|
});
|
|
3981
3982
|
let S;
|
|
3982
|
-
if (p !== void 0 && (S = new
|
|
3983
|
+
if (p !== void 0 && (S = new wi({
|
|
3983
3984
|
geometry: p.extent
|
|
3984
|
-
}), p.extent !== void 0 &&
|
|
3985
|
+
}), p.extent !== void 0 && ya(f))) {
|
|
3985
3986
|
const { distance: A, units: I } = i;
|
|
3986
3987
|
A !== void 0 && (S.distance = A), I !== void 0 && (S.units = I);
|
|
3987
3988
|
}
|
|
3988
3989
|
if (i.timeExtent) {
|
|
3989
3990
|
const A = { start: i.timeExtent[0], end: i.timeExtent[1] };
|
|
3990
|
-
S === void 0 ? S = new
|
|
3991
|
+
S === void 0 ? S = new wi({ timeExtent: A }) : S.timeExtent = A;
|
|
3991
3992
|
}
|
|
3992
3993
|
g.filter = S;
|
|
3993
3994
|
let b;
|
|
3994
3995
|
g.outStatisticTypes = { exclude: ["median"] };
|
|
3995
3996
|
try {
|
|
3996
|
-
b = await
|
|
3997
|
+
b = await Li(g);
|
|
3997
3998
|
} catch (A) {
|
|
3998
3999
|
throw new re(le.QueryFeaturesError, o.errors.queryError, A);
|
|
3999
4000
|
}
|
|
4000
4001
|
g.outStatisticTypes = { include: ["median"] };
|
|
4001
4002
|
try {
|
|
4002
|
-
const A = await
|
|
4003
|
+
const A = await Li(g);
|
|
4003
4004
|
A?.median && (b.median = A.median);
|
|
4004
4005
|
} catch {
|
|
4005
4006
|
}
|
|
@@ -4007,7 +4008,7 @@ async function Mo(t) {
|
|
|
4007
4008
|
const { avg: v, count: x, stddev: B, min: N, max: T, sum: w, median: L } = b;
|
|
4008
4009
|
if (x === 0)
|
|
4009
4010
|
d = {
|
|
4010
|
-
...
|
|
4011
|
+
...Ga(l)
|
|
4011
4012
|
};
|
|
4012
4013
|
else {
|
|
4013
4014
|
const A = Lo({
|
|
@@ -4043,7 +4044,7 @@ async function Mo(t) {
|
|
|
4043
4044
|
}
|
|
4044
4045
|
return d;
|
|
4045
4046
|
}
|
|
4046
|
-
async function
|
|
4047
|
+
async function Ya(t) {
|
|
4047
4048
|
const { chartConfig: e, queryConfig: i, queryObject: a, abortKey: r, abortSignal: n, errorStrings: s, view: o } = t, { series: u } = e, c = u[0];
|
|
4048
4049
|
let l;
|
|
4049
4050
|
if (ie(a))
|
|
@@ -4063,7 +4064,7 @@ async function Ua(t) {
|
|
|
4063
4064
|
abortKey: r,
|
|
4064
4065
|
abortSignal: n
|
|
4065
4066
|
});
|
|
4066
|
-
l = { valid: !0 }, !f || m ? l =
|
|
4067
|
+
l = { valid: !0 }, !f || m ? l = Ga(c.dataTransformationType, m) : l = await Mo({
|
|
4067
4068
|
chartConfig: e,
|
|
4068
4069
|
queryObject: a,
|
|
4069
4070
|
queryConfig: i,
|
|
@@ -4093,7 +4094,7 @@ async function Do(t) {
|
|
|
4093
4094
|
})) }
|
|
4094
4095
|
};
|
|
4095
4096
|
}
|
|
4096
|
-
const
|
|
4097
|
+
const $i = {
|
|
4097
4098
|
Count: "count",
|
|
4098
4099
|
Start: "minValue",
|
|
4099
4100
|
End: "maxValue"
|
|
@@ -4129,7 +4130,7 @@ function Io(t) {
|
|
|
4129
4130
|
return We(t) && we(t?.axes?.[0]?.valueFormat) && we(t?.axes?.[1]?.valueFormat);
|
|
4130
4131
|
}
|
|
4131
4132
|
const Eo = [
|
|
4132
|
-
...
|
|
4133
|
+
...oa,
|
|
4133
4134
|
"ar-u-nu-latn",
|
|
4134
4135
|
"en-AU",
|
|
4135
4136
|
"en-GB",
|
|
@@ -4143,7 +4144,7 @@ const Eo = [
|
|
|
4143
4144
|
"it-IT"
|
|
4144
4145
|
];
|
|
4145
4146
|
function Id(t) {
|
|
4146
|
-
const { t9nLocale: e } = ze(t ?? document.documentElement), i =
|
|
4147
|
+
const { t9nLocale: e } = ze(t ?? document.documentElement), i = Za(t ?? document.documentElement), a = kr(t ?? document.documentElement) === "rtl";
|
|
4147
4148
|
return { locale: e, formatLocale: i, rtl: a };
|
|
4148
4149
|
}
|
|
4149
4150
|
function Ed(t) {
|
|
@@ -4173,10 +4174,10 @@ function Rd(t, e) {
|
|
|
4173
4174
|
return Number.parseFloat(r);
|
|
4174
4175
|
}
|
|
4175
4176
|
function qo(t) {
|
|
4176
|
-
const e = Array.from(
|
|
4177
|
+
const e = Array.from(oa);
|
|
4177
4178
|
return Eo.includes(t) && !e.includes(t);
|
|
4178
4179
|
}
|
|
4179
|
-
function
|
|
4180
|
+
function Za(t) {
|
|
4180
4181
|
const { lang: e, t9nLocale: i } = ze(t);
|
|
4181
4182
|
return qo(e) ? e : i;
|
|
4182
4183
|
}
|
|
@@ -4215,7 +4216,7 @@ function $d(t) {
|
|
|
4215
4216
|
seriesCount: r,
|
|
4216
4217
|
queryObject: n,
|
|
4217
4218
|
filterBySelection: s,
|
|
4218
|
-
formatLocale: o =
|
|
4219
|
+
formatLocale: o = Za(document.documentElement),
|
|
4219
4220
|
isTemporalChart: u,
|
|
4220
4221
|
isGaugeChartByFeature: c,
|
|
4221
4222
|
errorStrings: l
|
|
@@ -4542,7 +4543,7 @@ function Ho(t, e) {
|
|
|
4542
4543
|
const r = t[e[E.IQR]], n = t[e[E.FirstQuartile]], s = t[e[E.ThirdQuartile]];
|
|
4543
4544
|
return Number.isFinite(r) && Number.isFinite(n) && Number.isFinite(s) && (i = n - r * 1.5, a = s + r * 1.5), { outlierMinThreshold: i, outlierMaxThreshold: a };
|
|
4544
4545
|
}
|
|
4545
|
-
function
|
|
4546
|
+
function ki(t) {
|
|
4546
4547
|
const { yField: e, xField: i, xValue: a, splitByField: r, splitByValue: n, outlierMaxThreshold: s, outlierMinThreshold: o, target: u } = t;
|
|
4547
4548
|
let c;
|
|
4548
4549
|
if (i !== void 0 && a !== void 0) {
|
|
@@ -4557,7 +4558,7 @@ function $i(t) {
|
|
|
4557
4558
|
let d;
|
|
4558
4559
|
return u === "outliers" && o !== s ? d = `(${e}<${o} OR ${e}>${s})` : u === "alternativeData" && (o === s ? d = `(${e}=${o})` : d = `(${e}>=${o} AND ${e}<=${s})`), [c, l, d].filter((m) => m !== void 0).join(" AND ");
|
|
4559
4560
|
}
|
|
4560
|
-
function
|
|
4561
|
+
function Xa(t) {
|
|
4561
4562
|
const { data: e, yField: i, x: a, chartSubType: r, splitByField: n } = t, s = r === F.BoxPlotMonoField || r === F.BoxPlotMonoFieldAndCategory || r === F.BoxPlotMonoFieldAndSplitBy || r === F.BoxPlotMonoFieldAndCategoryAndSplitBy ? void 0 : i, o = it(s), u = [], c = [], { maxOperandsPerWhereClause: l } = Rt();
|
|
4562
4563
|
let d = [], f = [], m = 1;
|
|
4563
4564
|
return e.forEach((y, p) => {
|
|
@@ -4571,7 +4572,7 @@ function Za(t) {
|
|
|
4571
4572
|
(r === F.BoxPlotMonoFieldAndCategory || r === F.BoxPlotMultiFieldsAndCategory || r === F.BoxPlotMonoFieldAndCategoryAndSplitBy) && a !== void 0 && a in y && (b.xField = a, b.xValue = fi({
|
|
4572
4573
|
value: y[a],
|
|
4573
4574
|
dataContext: y
|
|
4574
|
-
})), (r === F.BoxPlotMonoFieldAndSplitBy || r === F.BoxPlotMultiFieldsAndSplitBy || r === F.BoxPlotMonoFieldAndCategoryAndSplitBy) && n !== void 0 && n in y && (b.splitByField = n, b.splitByValue = y[n]), d.push(
|
|
4575
|
+
})), (r === F.BoxPlotMonoFieldAndSplitBy || r === F.BoxPlotMultiFieldsAndSplitBy || r === F.BoxPlotMonoFieldAndCategoryAndSplitBy) && n !== void 0 && n in y && (b.splitByField = n, b.splitByValue = y[n]), d.push(ki({ ...b, target: "outliers" })), f.push(ki({ ...b, target: "alternativeData" })), (m % l === 0 || p === e.length - 1) && (u.push(Y(d, "OR")), c.push(Y(f, "OR")), d = [], f = []);
|
|
4575
4576
|
}
|
|
4576
4577
|
m += 1;
|
|
4577
4578
|
}), { outliersFilterBatches: u, dataWithoutOutliersFilterBatches: c };
|
|
@@ -4608,7 +4609,7 @@ function zo(t) {
|
|
|
4608
4609
|
async function Wo(t) {
|
|
4609
4610
|
const { seriesConfig: e, data: i, uniqueQuery: a, queryObject: r, meanAndStdDevPerField: n, errorStrings: s, abortKey: o, abortSignal: u } = t, c = k(e), l = e[0], { x: d } = l, f = te(l.query?.where), m = z(r), y = ve(m).idField, p = ue(e), g = [];
|
|
4610
4611
|
for (let v = 0; v < p.length; v += 1) {
|
|
4611
|
-
const x = p[v], { outliersFilterBatches: B } =
|
|
4612
|
+
const x = p[v], { outliersFilterBatches: B } = Xa({
|
|
4612
4613
|
data: i,
|
|
4613
4614
|
yField: x,
|
|
4614
4615
|
x: d,
|
|
@@ -4676,7 +4677,7 @@ async function Wo(t) {
|
|
|
4676
4677
|
if (T[W.uniqueIdsName] = [
|
|
4677
4678
|
...P?.[W.uniqueIdsName] ?? [],
|
|
4678
4679
|
T[y]
|
|
4679
|
-
], delete T[y],
|
|
4680
|
+
], delete T[y], mr(c)) {
|
|
4680
4681
|
const O = K({
|
|
4681
4682
|
...w,
|
|
4682
4683
|
standardizeValues: !0
|
|
@@ -4714,9 +4715,9 @@ async function Go(t) {
|
|
|
4714
4715
|
abortSignal: c
|
|
4715
4716
|
} = t;
|
|
4716
4717
|
let l = [];
|
|
4717
|
-
const { series: d, showMean: f } = n, m =
|
|
4718
|
+
const { series: d, showMean: f } = n, m = Bi({ showMean: f, seriesConfig: d }), y = k(d), p = Re(n), { x: g } = p, S = te(p.query?.where), b = [];
|
|
4718
4719
|
for (let x = 0; x < m.length; x += 1) {
|
|
4719
|
-
const B = m[x], { dataWithoutOutliersFilterBatches: N } =
|
|
4720
|
+
const B = m[x], { dataWithoutOutliersFilterBatches: N } = Xa({
|
|
4720
4721
|
data: e,
|
|
4721
4722
|
yField: B,
|
|
4722
4723
|
x: g,
|
|
@@ -4752,7 +4753,7 @@ async function Go(t) {
|
|
|
4752
4753
|
const v = await Promise.all(b);
|
|
4753
4754
|
for (let x = 0; x < v.length; x += 1)
|
|
4754
4755
|
l.push(...v[x]);
|
|
4755
|
-
return y !== F.BoxPlotMonoFieldAndCategoryAndSplitBy && y !== F.BoxPlotMonoField && (l =
|
|
4756
|
+
return y !== F.BoxPlotMonoFieldAndCategoryAndSplitBy && y !== F.BoxPlotMonoField && (l = bt({
|
|
4756
4757
|
data: l,
|
|
4757
4758
|
x: S !== void 0 && S !== "" ? S : g
|
|
4758
4759
|
})), l;
|
|
@@ -4762,7 +4763,7 @@ async function Uo(t) {
|
|
|
4762
4763
|
let o;
|
|
4763
4764
|
const { series: u, showMean: c } = a, l = k(u);
|
|
4764
4765
|
if (l === F.BoxPlotMultiFieldsAndCategory || l === F.BoxPlotMultiFieldsAndSplitBy) {
|
|
4765
|
-
const d =
|
|
4766
|
+
const d = Bi({ showMean: c, seriesConfig: u }), f = {
|
|
4766
4767
|
...i
|
|
4767
4768
|
};
|
|
4768
4769
|
delete f.outStatistics, delete f.groupByFieldsForStatistics, delete f.orderByFields;
|
|
@@ -4805,8 +4806,8 @@ function Yo(t) {
|
|
|
4805
4806
|
return c !== void 0 && (u = { ...o, ...c }), u;
|
|
4806
4807
|
});
|
|
4807
4808
|
}
|
|
4808
|
-
function
|
|
4809
|
-
const { chartConfig: e, data: i, calculateZScore: a = !1, meanAndStdDevPerField: r } = t, { series: n, showMean: s } = e, o = Re(e), u = k(e.series), { x: c } = o, l =
|
|
4809
|
+
function Ja(t) {
|
|
4810
|
+
const { chartConfig: e, data: i, calculateZScore: a = !1, meanAndStdDevPerField: r } = t, { series: n, showMean: s } = e, o = Re(e), u = k(e.series), { x: c } = o, l = Bi({ showMean: s, seriesConfig: n });
|
|
4810
4811
|
let d = i;
|
|
4811
4812
|
if (i?.[0] !== void 0) {
|
|
4812
4813
|
const f = te(o.query?.where);
|
|
@@ -4908,7 +4909,7 @@ async function Zo(t) {
|
|
|
4908
4909
|
chartConfig: n
|
|
4909
4910
|
});
|
|
4910
4911
|
}
|
|
4911
|
-
d =
|
|
4912
|
+
d = Ja({
|
|
4912
4913
|
chartConfig: n,
|
|
4913
4914
|
data: d,
|
|
4914
4915
|
meanAndStdDevPerField: y,
|
|
@@ -4926,32 +4927,32 @@ function Xo(t, e, i) {
|
|
|
4926
4927
|
} else i === ye.Descending ? typeof t == "string" && typeof e == "string" ? a = e.localeCompare(t, void 0, { numeric: !0 }) : a = (Number(e) || 0) - (Number(t) || 0) : i === ye.Ascending && (typeof t == "string" && typeof e == "string" ? a = t.localeCompare(e, void 0, { numeric: !0 }) : a = (Number(t) || 0) - (Number(e) || 0));
|
|
4927
4928
|
return a;
|
|
4928
4929
|
}
|
|
4929
|
-
function
|
|
4930
|
+
function Qi(t) {
|
|
4930
4931
|
const { chartConfig: e, field: i, chartData: a } = t, r = Dn({ chartConfig: e, field: i }), n = Array.from(
|
|
4931
4932
|
new Set(a.map((s) => i in s ? s[i] : void 0))
|
|
4932
4933
|
);
|
|
4933
4934
|
return r && n.length > 1 && n.sort((s, o) => Xo(s, o, r)), n.map((s) => ({ [i]: s }));
|
|
4934
4935
|
}
|
|
4935
|
-
function
|
|
4936
|
+
function Ka(t) {
|
|
4936
4937
|
const { chartConfig: e, chartData: i } = t;
|
|
4937
4938
|
return {
|
|
4938
|
-
xAxisData:
|
|
4939
|
+
xAxisData: Qi({
|
|
4939
4940
|
chartConfig: e,
|
|
4940
4941
|
field: Q.xField,
|
|
4941
4942
|
chartData: i
|
|
4942
4943
|
}),
|
|
4943
|
-
yAxisData:
|
|
4944
|
+
yAxisData: Qi({
|
|
4944
4945
|
chartConfig: e,
|
|
4945
4946
|
field: Q.yField,
|
|
4946
4947
|
chartData: i
|
|
4947
4948
|
})
|
|
4948
4949
|
};
|
|
4949
4950
|
}
|
|
4950
|
-
function
|
|
4951
|
+
function _i(t) {
|
|
4951
4952
|
const { orderBy: e, axisFormatOptions: i } = t;
|
|
4952
4953
|
return e !== void 0 && i !== void 0 && (!Array.isArray(e) || i?.type === h.CategoryAxisFormat);
|
|
4953
4954
|
}
|
|
4954
|
-
function
|
|
4955
|
+
function ji(t, e, i) {
|
|
4955
4956
|
let a = 0;
|
|
4956
4957
|
if (Array.isArray(i)) {
|
|
4957
4958
|
const r = t?.toString() ?? "", n = e?.toString() ?? "";
|
|
@@ -4963,28 +4964,28 @@ function _i(t, e, i) {
|
|
|
4963
4964
|
function Jo(t) {
|
|
4964
4965
|
const { arrayToSort: e, chartConfig: i, dataOrderParameters: a } = t, r = a ?? Mt(i);
|
|
4965
4966
|
let n, s, o = !1, u = !1, c = !1;
|
|
4966
|
-
r && e.length > 1 && ([n, s] = r, o = n && n.sortingField.length > 0 &&
|
|
4967
|
+
r && e.length > 1 && ([n, s] = r, o = n && n.sortingField.length > 0 && _i({
|
|
4967
4968
|
orderBy: n.orderBy,
|
|
4968
4969
|
axisFormatOptions: i.axes?.[0]?.valueFormat
|
|
4969
|
-
}), u = s && s.sortingField.length > 0 &&
|
|
4970
|
+
}), u = s && s.sortingField.length > 0 && _i({
|
|
4970
4971
|
orderBy: s.orderBy,
|
|
4971
4972
|
axisFormatOptions: i.axes?.[1]?.valueFormat
|
|
4972
4973
|
}), c = o || u), c && e.sort((l, d) => {
|
|
4973
4974
|
let f = 0;
|
|
4974
4975
|
if (o && n?.sortingField) {
|
|
4975
4976
|
const m = n.orderBy;
|
|
4976
|
-
f =
|
|
4977
|
+
f = ji(l[n.sortingField], d[n.sortingField], m);
|
|
4977
4978
|
}
|
|
4978
4979
|
if (f === 0 && u && s?.sortingField) {
|
|
4979
4980
|
const m = s.orderBy;
|
|
4980
|
-
f =
|
|
4981
|
+
f = ji(l[s.sortingField], d[s.sortingField], m);
|
|
4981
4982
|
}
|
|
4982
4983
|
return f;
|
|
4983
4984
|
});
|
|
4984
4985
|
}
|
|
4985
4986
|
function Ko(t) {
|
|
4986
4987
|
const { chartConfig: e, chartData: i } = t;
|
|
4987
|
-
i.heatChartAxesData =
|
|
4988
|
+
i.heatChartAxesData = Ka({
|
|
4988
4989
|
chartConfig: e,
|
|
4989
4990
|
chartData: i.dataItems
|
|
4990
4991
|
});
|
|
@@ -5014,7 +5015,7 @@ function It(t) {
|
|
|
5014
5015
|
});
|
|
5015
5016
|
else {
|
|
5016
5017
|
const S = u === h.DateAxisFormat && f;
|
|
5017
|
-
|
|
5018
|
+
ht({
|
|
5018
5019
|
arrayToSort: e,
|
|
5019
5020
|
orderBy: l,
|
|
5020
5021
|
sortingField: d,
|
|
@@ -5061,7 +5062,7 @@ async function Qd(t) {
|
|
|
5061
5062
|
if (r && !ie(i)) {
|
|
5062
5063
|
const { series: o, chartRenderer: u } = a, c = el(u), l = c ? tt.ChartRenderer : tt.LayerRenderer, d = i ? z(i) : void 0, f = c ?? d?.renderer;
|
|
5063
5064
|
let m;
|
|
5064
|
-
d && l === tt.LayerRenderer ? s = await
|
|
5065
|
+
d && l === tt.LayerRenderer ? s = await _a(d) : l === tt.ChartRenderer && (s = Jn(f));
|
|
5065
5066
|
const y = jn(c, d?.renderer), p = Un({
|
|
5066
5067
|
chartRenderer: u,
|
|
5067
5068
|
queryObject: i
|
|
@@ -5086,7 +5087,7 @@ async function Qd(t) {
|
|
|
5086
5087
|
return { dataItems: e, colorMatchApplied: n, rendererFieldNames: s };
|
|
5087
5088
|
}
|
|
5088
5089
|
async function tl(t) {
|
|
5089
|
-
const { queryObject: e, queryConfig: i, chartConfig: a, errorStrings: r, abortKey: n, abortSignal: s } = t, o = a.series[0], { x: u, valueConversion: c } = o, l =
|
|
5090
|
+
const { queryObject: e, queryConfig: i, chartConfig: a, errorStrings: r, abortKey: n, abortSignal: s } = t, o = a.series[0], { x: u, valueConversion: c } = o, l = fr(a), d = await Fe({
|
|
5090
5091
|
queryObject: e,
|
|
5091
5092
|
queryConfig: i,
|
|
5092
5093
|
featureCount: i.num ?? 1,
|
|
@@ -5099,19 +5100,19 @@ async function tl(t) {
|
|
|
5099
5100
|
if (l)
|
|
5100
5101
|
f = d.map((m) => {
|
|
5101
5102
|
bi(m.attributes, u);
|
|
5102
|
-
const y =
|
|
5103
|
+
const y = Oi(m.attributes[u], c);
|
|
5103
5104
|
return { ...m.attributes, [u]: y };
|
|
5104
5105
|
});
|
|
5105
5106
|
else if (d.length > 0) {
|
|
5106
5107
|
let m = d[0].attributes[u] ?? d[0].attributes[u.toUpperCase()] ?? d[0].attributes[u.toLowerCase()];
|
|
5107
|
-
m =
|
|
5108
|
+
m = Oi(m, c), f = [{ [u]: m }];
|
|
5108
5109
|
}
|
|
5109
5110
|
return f;
|
|
5110
5111
|
}
|
|
5111
5112
|
async function il(t) {
|
|
5112
|
-
const { queryObject: e, chartConfig: i, queryConfig: a, chartLimits: r, errorStrings: n, abortKey: s, abortSignal: o } = t, u = { valid: !0 }, { behaviorAfterLimit: c, maxGaugeByFeaturesLimit: l } = r ?? {}, d =
|
|
5113
|
+
const { queryObject: e, chartConfig: i, queryConfig: a, chartLimits: r, errorStrings: n, abortKey: s, abortSignal: o } = t, u = { valid: !0 }, { behaviorAfterLimit: c, maxGaugeByFeaturesLimit: l } = r ?? {}, d = fr(i);
|
|
5113
5114
|
let f = !0, m;
|
|
5114
|
-
if (d && (m = (await
|
|
5115
|
+
if (d && (m = (await ur({
|
|
5115
5116
|
chartConfig: i,
|
|
5116
5117
|
queryObject: e,
|
|
5117
5118
|
queryConfig: a,
|
|
@@ -5130,7 +5131,7 @@ async function il(t) {
|
|
|
5130
5131
|
Number.isFinite(y) && (p = {
|
|
5131
5132
|
...r,
|
|
5132
5133
|
maxGaugeByFeaturesLimit: y
|
|
5133
|
-
}),
|
|
5134
|
+
}), Da({ chartConfig: i, chartLimits: p, uniqueQuery: a });
|
|
5134
5135
|
}
|
|
5135
5136
|
if (Number.isNaN(f) || f) {
|
|
5136
5137
|
const y = await tl({
|
|
@@ -5176,7 +5177,7 @@ async function _d(t) {
|
|
|
5176
5177
|
fetchNullValues: void 0,
|
|
5177
5178
|
num: void 0
|
|
5178
5179
|
};
|
|
5179
|
-
|
|
5180
|
+
yt(e);
|
|
5180
5181
|
const d = await xt({
|
|
5181
5182
|
queryObject: e,
|
|
5182
5183
|
queryConfig: l,
|
|
@@ -5217,7 +5218,7 @@ function al(t) {
|
|
|
5217
5218
|
}), p.push(v), p;
|
|
5218
5219
|
}, f = (p, g) => JSON.stringify(p).localeCompare(JSON.stringify(g));
|
|
5219
5220
|
let m = o?.reduce(d, [])?.sort(f), y = u?.reduce(d, [])?.sort(f);
|
|
5220
|
-
m && y && r && m.length !== y.length && (m =
|
|
5221
|
+
m && y && r && m.length !== y.length && (m = bt({ data: m, x: r }), y = bt({ data: y, x: r })), c = m?.length !== y?.length || !at(m, y);
|
|
5221
5222
|
}
|
|
5222
5223
|
return c;
|
|
5223
5224
|
}
|
|
@@ -5235,7 +5236,7 @@ function rl(t) {
|
|
|
5235
5236
|
outStatisticFieldName: e.series[0].query?.outStatistics?.[0]?.outStatisticFieldName
|
|
5236
5237
|
}) ? r = o : r = i ?? [], n.length > 1 && s !== F.BarAndLineNoAggregation && s !== F.BarAndLineSplitByNoAggregation) {
|
|
5237
5238
|
const u = te(n[0].query?.where);
|
|
5238
|
-
r =
|
|
5239
|
+
r = bt({ data: r, x: n[0].x, splitByField: u });
|
|
5239
5240
|
}
|
|
5240
5241
|
It({
|
|
5241
5242
|
arrayToSort: r,
|
|
@@ -5259,7 +5260,7 @@ function nl(t) {
|
|
|
5259
5260
|
const { dataContext: e, xAxisField: i, yAxisField: a, options: r } = t;
|
|
5260
5261
|
let n = "";
|
|
5261
5262
|
const { dataContextXMinField: s, dataContextXMaxField: o, dataContextYMinField: u, dataContextYMaxField: c } = C.scatterplotAggregationFields;
|
|
5262
|
-
if (
|
|
5263
|
+
if (ha({ dataContext: e, chartLimits: r?.chartLimits })) {
|
|
5263
5264
|
const { [s]: l, [o]: d } = e, f = i !== a ? e[u] : l, m = i !== a ? e[c] : d;
|
|
5264
5265
|
if (!Number.isNaN(l) && !Number.isNaN(d) && !Number.isNaN(f) && !Number.isNaN(m)) {
|
|
5265
5266
|
const y = [];
|
|
@@ -5272,11 +5273,11 @@ function nl(t) {
|
|
|
5272
5273
|
]);
|
|
5273
5274
|
return n;
|
|
5274
5275
|
}
|
|
5275
|
-
function
|
|
5276
|
+
function Hi(t) {
|
|
5276
5277
|
const { fieldsIndex: e, fieldName: i, inputDate: a } = t, r = e.get(i), n = e.getTimeZone(i);
|
|
5277
5278
|
return Wr(new Date(a), { type: "date" }, { type: r, timeZone: n });
|
|
5278
5279
|
}
|
|
5279
|
-
function
|
|
5280
|
+
function er(t) {
|
|
5280
5281
|
const { xAxisField: e, dataContext: i, queryObject: a } = t;
|
|
5281
5282
|
let r = "";
|
|
5282
5283
|
const n = i[C.originalServerBinningRange] ?? i[C.dateBinningRange];
|
|
@@ -5285,7 +5286,7 @@ function Ka(t) {
|
|
|
5285
5286
|
const c = Ee(a);
|
|
5286
5287
|
if (c) {
|
|
5287
5288
|
const l = z(a), { fieldsIndex: d } = l;
|
|
5288
|
-
s =
|
|
5289
|
+
s = Hi({ fieldsIndex: d, fieldName: e, inputDate: s }), o = Hi({ fieldsIndex: d, fieldName: e, inputDate: o });
|
|
5289
5290
|
} else
|
|
5290
5291
|
typeof s == "number" && typeof o == "number" ? Number.isFinite(s) && Number.isFinite(o) ? (s = nt(s), o = nt(o)) : u = !1 : typeof s == "string" && typeof o == "string" && (s = new Date(s).toISOString(), o = new Date(o).toISOString());
|
|
5291
5292
|
if (u) {
|
|
@@ -5295,7 +5296,7 @@ function Ka(t) {
|
|
|
5295
5296
|
}
|
|
5296
5297
|
return r;
|
|
5297
5298
|
}
|
|
5298
|
-
function
|
|
5299
|
+
function tr(t, e) {
|
|
5299
5300
|
let i = "";
|
|
5300
5301
|
if (Number.isFinite(t)) {
|
|
5301
5302
|
const a = 1 / 10 ** C.queryMaxFloatPrecision;
|
|
@@ -5303,7 +5304,7 @@ function er(t, e) {
|
|
|
5303
5304
|
}
|
|
5304
5305
|
return i;
|
|
5305
5306
|
}
|
|
5306
|
-
function
|
|
5307
|
+
function ir(t) {
|
|
5307
5308
|
const { xAxisField: e, yAxisField: i, splitBy: a, dataContext: r, xAxisFieldType: n, chartConfig: s } = t;
|
|
5308
5309
|
let o = "";
|
|
5309
5310
|
if (e !== void 0 && e !== C.boxPlot.boxPlotCategory) {
|
|
@@ -5311,7 +5312,7 @@ function tr(t) {
|
|
|
5311
5312
|
value: r[e],
|
|
5312
5313
|
dataContext: r
|
|
5313
5314
|
});
|
|
5314
|
-
n === U.Double ? o =
|
|
5315
|
+
n === U.Double ? o = tr(d, e) : (je(s.axes?.[0].valueFormat) && (d = nt(d)), o = Le({
|
|
5315
5316
|
where: qe(e, d),
|
|
5316
5317
|
normalize: !1,
|
|
5317
5318
|
escape: !0
|
|
@@ -5342,13 +5343,13 @@ function sl(t) {
|
|
|
5342
5343
|
const { xAxisField: e, splitBy: i, dataContext: a, xAxisFieldType: r, chartConfig: n, queryObject: s } = t;
|
|
5343
5344
|
let o = "";
|
|
5344
5345
|
if (C.dateBinningRange in a)
|
|
5345
|
-
o =
|
|
5346
|
+
o = er({ xAxisField: e, dataContext: a, queryObject: s });
|
|
5346
5347
|
else if (k(n.series) !== F.BarAndLineFromFields) {
|
|
5347
5348
|
let l = fi({
|
|
5348
5349
|
value: a[e],
|
|
5349
5350
|
dataContext: a
|
|
5350
5351
|
});
|
|
5351
|
-
r === U.Double ? o =
|
|
5352
|
+
r === U.Double ? o = tr(l, e) : (je(n.axes?.[0].valueFormat) && r !== U.TimeOnly && (l = nt(l)), o = Le({
|
|
5352
5353
|
where: qe(e, l),
|
|
5353
5354
|
normalize: !1,
|
|
5354
5355
|
escape: !0
|
|
@@ -5366,7 +5367,7 @@ function ol(t) {
|
|
|
5366
5367
|
escape: !0
|
|
5367
5368
|
});
|
|
5368
5369
|
}
|
|
5369
|
-
function
|
|
5370
|
+
function zi(t) {
|
|
5370
5371
|
const { field: e, fieldType: i, fieldValue: a, unit: r, outTimeZone: n, dataTimeZone: s, runsOnClientQueryEngine: o } = t;
|
|
5371
5372
|
let u;
|
|
5372
5373
|
const { expression: c } = pi({
|
|
@@ -5398,7 +5399,7 @@ function ll(t) {
|
|
|
5398
5399
|
where: qe(u.x, m ?? f),
|
|
5399
5400
|
normalize: !1,
|
|
5400
5401
|
escape: !0
|
|
5401
|
-
}) : l =
|
|
5402
|
+
}) : l = zi({
|
|
5402
5403
|
field: u.x,
|
|
5403
5404
|
fieldType: e,
|
|
5404
5405
|
fieldValue: f,
|
|
@@ -5410,7 +5411,7 @@ function ll(t) {
|
|
|
5410
5411
|
where: qe(u.y, p ?? y),
|
|
5411
5412
|
normalize: !1,
|
|
5412
5413
|
escape: !0
|
|
5413
|
-
}) : d =
|
|
5414
|
+
}) : d = zi({
|
|
5414
5415
|
field: u.y,
|
|
5415
5416
|
fieldType: i,
|
|
5416
5417
|
fieldValue: y,
|
|
@@ -5452,7 +5453,7 @@ function jd(t) {
|
|
|
5452
5453
|
a = sl(t);
|
|
5453
5454
|
break;
|
|
5454
5455
|
case h.BoxPlotSeries:
|
|
5455
|
-
a =
|
|
5456
|
+
a = ir(t);
|
|
5456
5457
|
break;
|
|
5457
5458
|
case h.HistogramSeries:
|
|
5458
5459
|
a = ul(t);
|
|
@@ -5509,7 +5510,7 @@ async function cl(t) {
|
|
|
5509
5510
|
q !== void 0 && ($ = q.replace(M, ""));
|
|
5510
5511
|
}
|
|
5511
5512
|
O.length === 0 && O.push(""), O.forEach((M) => {
|
|
5512
|
-
const q =
|
|
5513
|
+
const q = ir({
|
|
5513
5514
|
chartConfig: a,
|
|
5514
5515
|
xAxisField: b,
|
|
5515
5516
|
yAxisField: $,
|
|
@@ -5566,7 +5567,7 @@ async function dl(t) {
|
|
|
5566
5567
|
abortKey: p,
|
|
5567
5568
|
abortSignal: g
|
|
5568
5569
|
} = t;
|
|
5569
|
-
|
|
5570
|
+
yt(e);
|
|
5570
5571
|
const { series: S } = a, b = _(S), v = xe(a);
|
|
5571
5572
|
let x = { valid: !0 }, B = s?.selectionItems ?? [];
|
|
5572
5573
|
n || (B = rl({ chartConfig: a, currentSelectionDataItems: r, selectionData: s }));
|
|
@@ -5618,7 +5619,7 @@ async function dl(t) {
|
|
|
5618
5619
|
const T = { ...i };
|
|
5619
5620
|
if (r !== void 0 && r.length > 0) {
|
|
5620
5621
|
const L = r.map(
|
|
5621
|
-
(I) =>
|
|
5622
|
+
(I) => er({
|
|
5622
5623
|
xAxisField: S[0].x,
|
|
5623
5624
|
dataContext: I,
|
|
5624
5625
|
queryObject: e
|
|
@@ -5655,7 +5656,7 @@ async function dl(t) {
|
|
|
5655
5656
|
const { minValue: O, maxValue: V } = I, $ = P === B.length - 1 ? "<=" : "<";
|
|
5656
5657
|
return `${T} >= ${O} AND ${T} ${$} ${V}`;
|
|
5657
5658
|
}), L = Y(w, "OR"), A = { ...i };
|
|
5658
|
-
A.where = Y([A.where, L]), x = await
|
|
5659
|
+
A.where = Y([A.where, L]), x = await Ya({
|
|
5659
5660
|
queryObject: e,
|
|
5660
5661
|
chartConfig: a,
|
|
5661
5662
|
queryConfig: A,
|
|
@@ -5672,7 +5673,7 @@ async function dl(t) {
|
|
|
5672
5673
|
const { r2: T, trendLinePoints: w } = C.scatterplotSeries;
|
|
5673
5674
|
x.data = { dataItems: [], r2: T, trendLinePoints: w, count: 0 }, x.count = 0;
|
|
5674
5675
|
} else {
|
|
5675
|
-
const { r2: T, trendLinePoints: w } =
|
|
5676
|
+
const { r2: T, trendLinePoints: w } = qa({
|
|
5676
5677
|
data: B,
|
|
5677
5678
|
chartConfig: a
|
|
5678
5679
|
});
|
|
@@ -5791,7 +5792,7 @@ async function fl(t) {
|
|
|
5791
5792
|
else
|
|
5792
5793
|
switch (T) {
|
|
5793
5794
|
case h.HeatSeries:
|
|
5794
|
-
|
|
5795
|
+
yt(e), w = await cr({
|
|
5795
5796
|
chartConfig: i,
|
|
5796
5797
|
queryConfig: a,
|
|
5797
5798
|
queryObject: e,
|
|
@@ -5856,7 +5857,7 @@ async function fl(t) {
|
|
|
5856
5857
|
break;
|
|
5857
5858
|
}
|
|
5858
5859
|
case h.ScatterSeries:
|
|
5859
|
-
w.data = await
|
|
5860
|
+
w.data = await dr({
|
|
5860
5861
|
queryObject: e,
|
|
5861
5862
|
queryConfig: a,
|
|
5862
5863
|
filterByViewExtent: x,
|
|
@@ -5874,7 +5875,7 @@ async function fl(t) {
|
|
|
5874
5875
|
});
|
|
5875
5876
|
break;
|
|
5876
5877
|
case h.HistogramSeries:
|
|
5877
|
-
w = await
|
|
5878
|
+
w = await Ya({
|
|
5878
5879
|
queryObject: e,
|
|
5879
5880
|
queryConfig: a,
|
|
5880
5881
|
chartConfig: i,
|
|
@@ -5885,7 +5886,7 @@ async function fl(t) {
|
|
|
5885
5886
|
});
|
|
5886
5887
|
break;
|
|
5887
5888
|
case h.GaugeSeries:
|
|
5888
|
-
|
|
5889
|
+
yt(e), w = await il({
|
|
5889
5890
|
queryObject: e,
|
|
5890
5891
|
chartConfig: i,
|
|
5891
5892
|
queryConfig: a,
|
|
@@ -5924,7 +5925,7 @@ async function Hd(t) {
|
|
|
5924
5925
|
preFetchedQueryResponse: N
|
|
5925
5926
|
} = t;
|
|
5926
5927
|
let T = { valid: !0 };
|
|
5927
|
-
const w =
|
|
5928
|
+
const w = Ha({
|
|
5928
5929
|
queryObject: e,
|
|
5929
5930
|
chartConfig: i,
|
|
5930
5931
|
runtimeDataFilters: u,
|
|
@@ -6015,7 +6016,7 @@ function gl(t, e) {
|
|
|
6015
6016
|
}
|
|
6016
6017
|
return i;
|
|
6017
6018
|
}
|
|
6018
|
-
const
|
|
6019
|
+
const ar = [
|
|
6019
6020
|
F.BarAndLineMonoField,
|
|
6020
6021
|
F.BarAndLineMultiFields,
|
|
6021
6022
|
F.PieNoAggregation,
|
|
@@ -6023,7 +6024,7 @@ const ir = [
|
|
|
6023
6024
|
F.BoxPlotMonoFieldAndCategory,
|
|
6024
6025
|
F.BoxPlotMultiFieldsAndCategory,
|
|
6025
6026
|
F.BoxPlotMonoFieldAndCategoryAndSplitBy
|
|
6026
|
-
], pl = 8e3,
|
|
6027
|
+
], pl = 8e3, Wi = [
|
|
6027
6028
|
{
|
|
6028
6029
|
unit: R.Second,
|
|
6029
6030
|
threshold: 6e4,
|
|
@@ -6067,7 +6068,7 @@ const ir = [
|
|
|
6067
6068
|
preferredIntervalSize: [1, 2, 4, 5, 10, 25, 50, 100]
|
|
6068
6069
|
}
|
|
6069
6070
|
], hl = "{ groupByFieldsForStatistics } WHEN { dateField }>='{ startDate }' AND { dateField }{ endDateOperand }'{ endDate }' THEN '{ y }|{ binIndex}'";
|
|
6070
|
-
function
|
|
6071
|
+
function rr(t, e) {
|
|
6071
6072
|
let i = t;
|
|
6072
6073
|
return e === R.Week ? i /= 7 : e === R.Month ? i /= 30 : e === R.Year && (i /= 365), i = Math.ceil(i), i;
|
|
6073
6074
|
}
|
|
@@ -6163,10 +6164,10 @@ function bl(t) {
|
|
|
6163
6164
|
n = bs(s, (o) => o[a]);
|
|
6164
6165
|
break;
|
|
6165
6166
|
case D.Minimum:
|
|
6166
|
-
n =
|
|
6167
|
+
n = St(s, (o) => o[a]).min;
|
|
6167
6168
|
break;
|
|
6168
6169
|
case D.Maximum:
|
|
6169
|
-
n =
|
|
6170
|
+
n = St(s, (o) => o[a]).max;
|
|
6170
6171
|
break;
|
|
6171
6172
|
case D.Average:
|
|
6172
6173
|
n = Fs(s, (o) => o[a]);
|
|
@@ -6181,7 +6182,7 @@ function xl(t) {
|
|
|
6181
6182
|
const { unit: o } = a, u = a.size ?? 1, c = i[0], { x: l } = c;
|
|
6182
6183
|
let d, f;
|
|
6183
6184
|
if (be(c) && (f = c.temporalBinning?.nullPolicy, d = c.temporalBinning?.timeAggregationType), u > 1 || o === R.Week || o === R.Month || o === R.Year) {
|
|
6184
|
-
const { query: m } = i[0], y = ue(i), { statisticType: p } = m?.outStatistics?.[0] ??
|
|
6185
|
+
const { query: m } = i[0], y = ue(i), { statisticType: p } = m?.outStatistics?.[0] ?? Xi;
|
|
6185
6186
|
let g = !1, S = d === ee.End ? e.length - 1 : 0;
|
|
6186
6187
|
const b = {
|
|
6187
6188
|
binFirstOrLastIndex: S,
|
|
@@ -6224,7 +6225,7 @@ function xl(t) {
|
|
|
6224
6225
|
}) : s = e;
|
|
6225
6226
|
return s;
|
|
6226
6227
|
}
|
|
6227
|
-
function
|
|
6228
|
+
function nr(t) {
|
|
6228
6229
|
const { dateMinTimestamp: e, dateMaxTimestamp: i, timeIntervalInfo: a } = t, { size: r, unit: n } = a;
|
|
6229
6230
|
let s = 0, o = 0;
|
|
6230
6231
|
if (r !== void 0 && Number.isFinite(r) && Number.isFinite(e) && Number.isFinite(i)) {
|
|
@@ -6253,7 +6254,7 @@ function rr(t) {
|
|
|
6253
6254
|
}
|
|
6254
6255
|
return { numberOfFinalBinsWithinDataRange: s, numberOfSingleBinsWithinDataRange: o };
|
|
6255
6256
|
}
|
|
6256
|
-
function
|
|
6257
|
+
function sr(t) {
|
|
6257
6258
|
const e = t[0].temporalBinning?.nullPolicy;
|
|
6258
6259
|
return t.reduce(
|
|
6259
6260
|
(a, r) => {
|
|
@@ -6277,7 +6278,7 @@ function Cl(t) {
|
|
|
6277
6278
|
if (o !== void 0 && Number.isFinite(o) && a / i !== o) {
|
|
6278
6279
|
let y = Math.ceil(a / i) * i - a;
|
|
6279
6280
|
u === R.Week && (y *= 7);
|
|
6280
|
-
const p =
|
|
6281
|
+
const p = sr(n);
|
|
6281
6282
|
if (l === ee.End) {
|
|
6282
6283
|
let g = r[0][c];
|
|
6283
6284
|
for (let S = 0; S < y; S += 1)
|
|
@@ -6312,7 +6313,7 @@ function Cl(t) {
|
|
|
6312
6313
|
}
|
|
6313
6314
|
function vl(t) {
|
|
6314
6315
|
const { numberOfSingleBinsWithinDataRange: e, dataLength: i, unit: a } = t;
|
|
6315
|
-
return
|
|
6316
|
+
return rr(i, a) >= e;
|
|
6316
6317
|
}
|
|
6317
6318
|
async function Bl(t) {
|
|
6318
6319
|
const { queryObject: e, queryConfig: i, x: a, errorStrings: r, abortSignal: n } = t, s = `MIN_${a}`, o = `MAX_${a}`, u = `COUNT_${a}`, c = {
|
|
@@ -6361,7 +6362,7 @@ function Nl(t) {
|
|
|
6361
6362
|
dataLength: s,
|
|
6362
6363
|
unit: u
|
|
6363
6364
|
})) {
|
|
6364
|
-
const { x: d } = a[0], f = a[0].temporalBinning?.timeAggregationType, m =
|
|
6365
|
+
const { x: d } = a[0], f = a[0].temporalBinning?.timeAggregationType, m = sr(a);
|
|
6365
6366
|
let p = f === ee.End ? i : e, g = f === ee.End ? r.length - 1 : 0;
|
|
6366
6367
|
for (; g < r.length && (f === ee.End && p > e || f !== ee.End && p < i); )
|
|
6367
6368
|
p !== r[g][d] ? c.push({
|
|
@@ -6449,7 +6450,7 @@ function* wl(t) {
|
|
|
6449
6450
|
}
|
|
6450
6451
|
}
|
|
6451
6452
|
async function Ll(t) {
|
|
6452
|
-
const { queryObject: e, data: i, seriesConfig: a, queryConfig: r, errorStrings: n, abortSignal: s } = t, o = i, { statisticType: u } = a[0].query?.outStatistics?.[0] ??
|
|
6453
|
+
const { queryObject: e, data: i, seriesConfig: a, queryConfig: r, errorStrings: n, abortSignal: s } = t, o = i, { statisticType: u } = a[0].query?.outStatistics?.[0] ?? Xi;
|
|
6453
6454
|
if (u === D.ContinuousPercentile && o.length > 0) {
|
|
6454
6455
|
const c = wl({
|
|
6455
6456
|
queryObject: e,
|
|
@@ -6475,7 +6476,7 @@ async function Ll(t) {
|
|
|
6475
6476
|
}
|
|
6476
6477
|
return o;
|
|
6477
6478
|
}
|
|
6478
|
-
function
|
|
6479
|
+
function Gi(t) {
|
|
6479
6480
|
const { dataItem: e, nullPolicy: i, statField: a } = t;
|
|
6480
6481
|
if (a) {
|
|
6481
6482
|
const r = e[a];
|
|
@@ -6494,7 +6495,7 @@ function Wi(t) {
|
|
|
6494
6495
|
}
|
|
6495
6496
|
}
|
|
6496
6497
|
function Pl(t) {
|
|
6497
|
-
const { chartConfig: e, queryResults: i, mapToStatField: a, splitByField: r, x: n, y: s, nullPolicy: o, queryObject: u } = t, c =
|
|
6498
|
+
const { chartConfig: e, queryResults: i, mapToStatField: a, splitByField: r, x: n, y: s, nullPolicy: o, queryObject: u } = t, c = Ea(n), d = Ce(u).find((g) => g.name === n)?.type, f = [], m = e.series[0], y = "temporalBinning" in m ? m.temporalBinning?.trimIncompleteTimeInterval : !1, p = "temporalBinning" in m ? m.temporalBinning?.timeAggregationType : !1;
|
|
6498
6499
|
return i.forEach((g, S) => {
|
|
6499
6500
|
if (!(y && (S === 0 && p === ee.End || S === i.length - 1 && p === ee.Start))) {
|
|
6500
6501
|
const { attributes: v, stackedAttributes: x } = g;
|
|
@@ -6518,10 +6519,10 @@ function Pl(t) {
|
|
|
6518
6519
|
const V = O[r];
|
|
6519
6520
|
if (V === null || typeof V == "string" || typeof V == "number") {
|
|
6520
6521
|
const $ = a?.get(V);
|
|
6521
|
-
$ !== void 0 && (A[$] = O[W.outStatistics?.outStatisticFieldName ?? ""],
|
|
6522
|
+
$ !== void 0 && (A[$] = O[W.outStatistics?.outStatisticFieldName ?? ""], Gi({ dataItem: A, statField: $, nullPolicy: o }));
|
|
6522
6523
|
}
|
|
6523
|
-
}) : typeof s == "string" &&
|
|
6524
|
-
const { featureExtent: I, featureExtentKey: P } =
|
|
6524
|
+
}) : typeof s == "string" && Gi({ dataItem: A, statField: s, nullPolicy: o });
|
|
6525
|
+
const { featureExtent: I, featureExtentKey: P } = or({
|
|
6525
6526
|
feature: g,
|
|
6526
6527
|
splitByField: r
|
|
6527
6528
|
});
|
|
@@ -6546,11 +6547,11 @@ async function Ml(t) {
|
|
|
6546
6547
|
const { dateMinTimestamp: d, dateMaxTimestamp: f } = s;
|
|
6547
6548
|
if (d && f) {
|
|
6548
6549
|
const m = i.length;
|
|
6549
|
-
if (
|
|
6550
|
+
if (ht({
|
|
6550
6551
|
arrayToSort: l,
|
|
6551
6552
|
sortingField: a
|
|
6552
6553
|
}), m > 1) {
|
|
6553
|
-
const { numberOfFinalBinsWithinDataRange: y, numberOfSingleBinsWithinDataRange: p } =
|
|
6554
|
+
const { numberOfFinalBinsWithinDataRange: y, numberOfSingleBinsWithinDataRange: p } = nr({
|
|
6554
6555
|
dateMinTimestamp: d,
|
|
6555
6556
|
dateMaxTimestamp: f,
|
|
6556
6557
|
timeIntervalInfo: o
|
|
@@ -6570,7 +6571,7 @@ async function Ml(t) {
|
|
|
6570
6571
|
initialNumberOfBins: m,
|
|
6571
6572
|
numberOfSingleBinsWithinDataRange: p,
|
|
6572
6573
|
timeIntervalInfo: o
|
|
6573
|
-
}),
|
|
6574
|
+
}), ht({
|
|
6574
6575
|
arrayToSort: l,
|
|
6575
6576
|
sortingField: a
|
|
6576
6577
|
}), l = xl({
|
|
@@ -6604,7 +6605,7 @@ function Ol(t) {
|
|
|
6604
6605
|
let a, r, { dateMinTimestamp: n, dateMaxTimestamp: s } = e;
|
|
6605
6606
|
if (n && s) {
|
|
6606
6607
|
typeof n == "string" && (n = new Date(n).valueOf()), typeof s == "string" && (s = new Date(s).valueOf());
|
|
6607
|
-
const o = Dl(i), u = (s - n) / o, c =
|
|
6608
|
+
const o = Dl(i), u = (s - n) / o, c = Wi.findIndex((S) => S.threshold > u), l = Wi[c], { unitMs: d, preferredIntervalSize: f } = l;
|
|
6608
6609
|
({ unit: a } = l);
|
|
6609
6610
|
const m = u / d, y = f.findIndex(
|
|
6610
6611
|
(S) => S >= m
|
|
@@ -6673,7 +6674,7 @@ async function Ut(t) {
|
|
|
6673
6674
|
)
|
|
6674
6675
|
).sort((b, v) => typeof b == "string" && typeof v == "string" ? b.localeCompare(v) : Number(b) - Number(v));
|
|
6675
6676
|
}
|
|
6676
|
-
function
|
|
6677
|
+
function or(t) {
|
|
6677
6678
|
const { feature: e, splitByField: i, chartSubType: a } = t;
|
|
6678
6679
|
let r;
|
|
6679
6680
|
if (e.aggregateGeometries && "Extent" in e.aggregateGeometries)
|
|
@@ -6690,7 +6691,7 @@ function ql(t) {
|
|
|
6690
6691
|
const { input: e, x: i, splitByField: a } = t;
|
|
6691
6692
|
return e.reduce((n, s) => (a !== void 0 && a !== i && !(C.technicalFieldSplitByField in s) && delete s[a], Object.assign(n, s)), {});
|
|
6692
6693
|
}
|
|
6693
|
-
function
|
|
6694
|
+
function bt(t) {
|
|
6694
6695
|
const { data: e, x: i, splitByField: a } = t;
|
|
6695
6696
|
let r = e;
|
|
6696
6697
|
if (e !== void 0 && e.length > 0) {
|
|
@@ -6810,12 +6811,12 @@ function zl(t) {
|
|
|
6810
6811
|
}
|
|
6811
6812
|
function Wl(t) {
|
|
6812
6813
|
const { queryResponse: e, chartConfig: i, maxCategoryCount: a } = t, r = k(i.series);
|
|
6813
|
-
return a && Number.isFinite(a) && a < e.length &&
|
|
6814
|
+
return a && Number.isFinite(a) && a < e.length && ar.includes(r) ? e.slice(0, a) : e;
|
|
6814
6815
|
}
|
|
6815
6816
|
function Gl(t) {
|
|
6816
6817
|
const { attributes: e, uniqueCategoryList: i, maxCategoryCount: a, x: r, chartSubType: n } = t;
|
|
6817
6818
|
let s = !1;
|
|
6818
|
-
if (r && a && Number.isFinite(a) && !
|
|
6819
|
+
if (r && a && Number.isFinite(a) && !ar.includes(n))
|
|
6819
6820
|
if ((n === F.BarAndLineFromFields || n === F.PieFromFields) && Object.keys(e).length > a)
|
|
6820
6821
|
Object.keys(e).filter((o) => o !== D.EnvelopeAggregate).forEach((o, u) => {
|
|
6821
6822
|
u >= a && delete e[o];
|
|
@@ -6848,7 +6849,7 @@ function Yl(t) {
|
|
|
6848
6849
|
const [i, a, r] = t.split(":");
|
|
6849
6850
|
return Number.isFinite(Number(i)) && Number.isFinite(Number(a)) && Number.isFinite(Number(r)) && (e = new Date(2e3, 0, 1, Number(i), Number(a), Number(r)).valueOf()), e;
|
|
6850
6851
|
}
|
|
6851
|
-
function
|
|
6852
|
+
function lr(t) {
|
|
6852
6853
|
const {
|
|
6853
6854
|
queryObject: e,
|
|
6854
6855
|
queryResponse: i,
|
|
@@ -6882,7 +6883,7 @@ function or(t) {
|
|
|
6882
6883
|
let q = M[y];
|
|
6883
6884
|
const G = typeof p == "string" ? M[p] : void 0;
|
|
6884
6885
|
q === null && d[0]?.query?.fetchNullValues === !0 && f !== F.PieFromFields && (M[v] = null, q = C.nullValue), S || (w && typeof q == "string" ? q = new Date(q).valueOf() : s && (q = El(M))), typeof q == "string" && l?.find((ae) => ae.name === y)?.type === U.TimeOnly && (M[v] = q, q = Yl(q));
|
|
6885
|
-
const { outStatisticFieldName: J } = W.outStatistics ?? {}, { featureExtent: X, featureExtentKey: H } =
|
|
6886
|
+
const { outStatisticFieldName: J } = W.outStatistics ?? {}, { featureExtent: X, featureExtentKey: H } = or({ feature: $, splitByField: n, chartSubType: f });
|
|
6886
6887
|
if (X && (M[H] = X), f === F.BarAndLineSplitBy && J !== void 0) {
|
|
6887
6888
|
const ae = M[n], pe = r?.get(ae);
|
|
6888
6889
|
pe !== void 0 && (ae === n && (M[C.technicalFieldSplitByField] = M[pe]), M[pe] = M[J]), delete M[J];
|
|
@@ -6928,7 +6929,7 @@ async function _t(t) {
|
|
|
6928
6929
|
errorStrings: m,
|
|
6929
6930
|
abortSignal: s
|
|
6930
6931
|
}), v = Ce(e, d), { x } = y[0];
|
|
6931
|
-
return g =
|
|
6932
|
+
return g = lr({
|
|
6932
6933
|
queryObject: e,
|
|
6933
6934
|
queryResponse: b,
|
|
6934
6935
|
chartConfig: a,
|
|
@@ -6939,12 +6940,12 @@ async function _t(t) {
|
|
|
6939
6940
|
resultLimit: i.num,
|
|
6940
6941
|
showMean: c,
|
|
6941
6942
|
chartLimits: l
|
|
6942
|
-
}), p !== F.BarAndLineSplitByNoAggregation && p !== F.BarAndLineFromFields && (S !== "" && (g =
|
|
6943
|
+
}), p !== F.BarAndLineSplitByNoAggregation && p !== F.BarAndLineFromFields && (S !== "" && (g = bt({ data: g, x, splitByField: S })), g = Vl(
|
|
6943
6944
|
g,
|
|
6944
6945
|
y
|
|
6945
6946
|
)), g;
|
|
6946
6947
|
}
|
|
6947
|
-
async function
|
|
6948
|
+
async function ur(t) {
|
|
6948
6949
|
const {
|
|
6949
6950
|
chartConfig: e,
|
|
6950
6951
|
queryObject: i,
|
|
@@ -7004,7 +7005,7 @@ async function oi(t) {
|
|
|
7004
7005
|
returnFeaturesExtent: d,
|
|
7005
7006
|
chartLimits: f
|
|
7006
7007
|
});
|
|
7007
|
-
let { categoryOrDateCount: O, elementCount: V } = await
|
|
7008
|
+
let { categoryOrDateCount: O, elementCount: V } = await ur({
|
|
7008
7009
|
chartConfig: e,
|
|
7009
7010
|
queryObject: r,
|
|
7010
7011
|
queryConfig: i,
|
|
@@ -7134,11 +7135,11 @@ function Kl(t) {
|
|
|
7134
7135
|
for (const m of a) {
|
|
7135
7136
|
const y = String(m);
|
|
7136
7137
|
if (!l.has(`${f}|${y}`)) {
|
|
7137
|
-
const p = u ?
|
|
7138
|
+
const p = u ? Vi({
|
|
7138
7139
|
queryObject: u,
|
|
7139
7140
|
fieldName: s,
|
|
7140
7141
|
fieldValue: f
|
|
7141
|
-
}) ?? d : d, g = u ?
|
|
7142
|
+
}) ?? d : d, g = u ? Vi({
|
|
7142
7143
|
queryObject: u,
|
|
7143
7144
|
fieldName: o,
|
|
7144
7145
|
fieldValue: y
|
|
@@ -7155,11 +7156,11 @@ function Kl(t) {
|
|
|
7155
7156
|
}
|
|
7156
7157
|
return c;
|
|
7157
7158
|
}
|
|
7158
|
-
function
|
|
7159
|
+
function Ui(t) {
|
|
7159
7160
|
const { day: e, month: i, includeLeapDay: a } = t;
|
|
7160
7161
|
return i === 2 && e > (a ? 29 : 28) || [4, 6, 9, 11].includes(i) && e > 30;
|
|
7161
7162
|
}
|
|
7162
|
-
async function
|
|
7163
|
+
async function cr(t) {
|
|
7163
7164
|
const {
|
|
7164
7165
|
chartConfig: e,
|
|
7165
7166
|
queryConfig: i,
|
|
@@ -7196,7 +7197,7 @@ async function ur(t) {
|
|
|
7196
7197
|
Ot({ dataInfo: m, chartType: h.HeatSeries });
|
|
7197
7198
|
else if (typeof I?.[0] == "object") {
|
|
7198
7199
|
const P = Ce(a, u);
|
|
7199
|
-
y =
|
|
7200
|
+
y = lr({
|
|
7200
7201
|
queryObject: a,
|
|
7201
7202
|
queryResponse: I,
|
|
7202
7203
|
chartConfig: e,
|
|
@@ -7262,11 +7263,11 @@ async function ur(t) {
|
|
|
7262
7263
|
}), r && P && G.length !== P?.length) {
|
|
7263
7264
|
const J = P.filter((X) => !G.includes(X.toString()));
|
|
7264
7265
|
w && (J.length !== P.length || G.length === 0) || J.forEach((X) => {
|
|
7265
|
-
Number.isFinite(Number(M[W.heatChartLowerBoundaryAlias])) && Number.isFinite(Number(X)) && (x?.unit === he.DayOfMonth && B?.unit === he.MonthOfYear &&
|
|
7266
|
+
Number.isFinite(Number(M[W.heatChartLowerBoundaryAlias])) && Number.isFinite(Number(X)) && (x?.unit === he.DayOfMonth && B?.unit === he.MonthOfYear && Ui({
|
|
7266
7267
|
day: Number(M[W.heatChartLowerBoundaryAlias]),
|
|
7267
7268
|
month: Number(X),
|
|
7268
7269
|
includeLeapDay: e.includeLeapDay
|
|
7269
|
-
}) || B?.unit === he.DayOfMonth && x?.unit === he.MonthOfYear &&
|
|
7270
|
+
}) || B?.unit === he.DayOfMonth && x?.unit === he.MonthOfYear && Ui({
|
|
7270
7271
|
day: Number(X),
|
|
7271
7272
|
month: Number(M[W.heatChartLowerBoundaryAlias]),
|
|
7272
7273
|
includeLeapDay: e.includeLeapDay
|
|
@@ -7287,7 +7288,7 @@ async function ur(t) {
|
|
|
7287
7288
|
}
|
|
7288
7289
|
y && (m.data = {
|
|
7289
7290
|
dataItems: y,
|
|
7290
|
-
heatChartAxesData:
|
|
7291
|
+
heatChartAxesData: Ka({ chartConfig: e, chartData: y })
|
|
7291
7292
|
});
|
|
7292
7293
|
}
|
|
7293
7294
|
return m;
|
|
@@ -7295,7 +7296,7 @@ async function ur(t) {
|
|
|
7295
7296
|
function eu(t) {
|
|
7296
7297
|
const { chartConfig: e, data: i, chartLimits: a } = t, r = e.series;
|
|
7297
7298
|
let n = i;
|
|
7298
|
-
const s =
|
|
7299
|
+
const s = Aa(e, a);
|
|
7299
7300
|
if (s !== void 0) {
|
|
7300
7301
|
const o = ue(r);
|
|
7301
7302
|
if (o.length === 1)
|
|
@@ -7406,12 +7407,12 @@ async function xi(t) {
|
|
|
7406
7407
|
}) || ($ = !1);
|
|
7407
7408
|
}
|
|
7408
7409
|
} else if (P?.dateRange.dateMinTimestamp && P.dateRange.dateMaxTimestamp) {
|
|
7409
|
-
const { numberOfFinalBinsWithinDataRange: M } =
|
|
7410
|
+
const { numberOfFinalBinsWithinDataRange: M } = nr({
|
|
7410
7411
|
dateMinTimestamp: P.dateRange.dateMinTimestamp,
|
|
7411
7412
|
dateMaxTimestamp: P.dateRange.dateMaxTimestamp,
|
|
7412
7413
|
timeIntervalInfo: L
|
|
7413
7414
|
});
|
|
7414
|
-
w = M * p.length, w =
|
|
7415
|
+
w = M * p.length, w = rr(w, L.unit), x = await _t({
|
|
7415
7416
|
queryObject: a,
|
|
7416
7417
|
uniqueQuery: O,
|
|
7417
7418
|
chartConfig: e,
|
|
@@ -7435,7 +7436,7 @@ async function xi(t) {
|
|
|
7435
7436
|
abortSignal: n
|
|
7436
7437
|
});
|
|
7437
7438
|
}
|
|
7438
|
-
|
|
7439
|
+
fa(a) && x && x?.length === pl && (A = !0), y === lt.RenderUpToTheLimit && x && (x = eu({ chartConfig: e, chartLimits: l, data: x }));
|
|
7439
7440
|
}
|
|
7440
7441
|
$ || (v.valid = !1, v.invalidType = j.LineChartExceedsLimit), x && x.length > 0 && (x[x.length - 1][C.lastTemporalBin] = !0), v.data = { dataItems: x, timeIntervalInfo: L, serverLimitReached: A }, v.count = w;
|
|
7441
7442
|
}
|
|
@@ -7481,7 +7482,7 @@ async function tu(t) {
|
|
|
7481
7482
|
errorStrings: c,
|
|
7482
7483
|
abortKey: r
|
|
7483
7484
|
});
|
|
7484
|
-
return de(e) && (g =
|
|
7485
|
+
return de(e) && (g = Ja({ chartConfig: e, data: g, calculateZScore: !1 })), d.data = { dataItems: g }, d;
|
|
7485
7486
|
}
|
|
7486
7487
|
async function iu(t) {
|
|
7487
7488
|
const {
|
|
@@ -7625,18 +7626,18 @@ async function lu(t) {
|
|
|
7625
7626
|
if (v != null && N !== void 0 && N !== null && x !== void 0 && x !== null && T !== void 0 && T !== null && !Number.isNaN(v + x + N + T)) {
|
|
7626
7627
|
const w = z(a), { idField: L, isTraditionalTypeOID: A } = ve(w), I = A ? L : "*", P = e?.get(C.scatterplotAggregationFields.xStep), O = e?.get(C.scatterplotAggregationFields.yStep), V = e?.get(C.scatterplotAggregationFields.realGridSize), $ = e?.get(C.scatterplotAggregationFields.rowCount), M = e?.get(C.scatterplotAggregationFields.columnCount), q = /* @__PURE__ */ new Map(), G = Ce(a);
|
|
7627
7628
|
if (G?.forEach((H) => {
|
|
7628
|
-
|
|
7629
|
+
Ft(H) && q.set(H.name, {
|
|
7629
7630
|
onStatisticField: H.name,
|
|
7630
7631
|
outStatisticFieldName: H.name,
|
|
7631
7632
|
statisticType: D.Maximum
|
|
7632
7633
|
});
|
|
7633
7634
|
}), (G.filter((H) => c?.additionalTooltipFields?.includes(H.name)) ?? [])?.forEach((H) => {
|
|
7634
|
-
|
|
7635
|
+
Ft(H) || q.set(H.name, {
|
|
7635
7636
|
onStatisticField: H.name,
|
|
7636
7637
|
outStatisticFieldName: H.name,
|
|
7637
7638
|
statisticType: D.Maximum
|
|
7638
7639
|
});
|
|
7639
|
-
}), (await
|
|
7640
|
+
}), (await _a(w)).forEach((H) => {
|
|
7640
7641
|
q.set(H, {
|
|
7641
7642
|
onStatisticField: H,
|
|
7642
7643
|
outStatisticFieldName: H,
|
|
@@ -7674,7 +7675,7 @@ async function lu(t) {
|
|
|
7674
7675
|
});
|
|
7675
7676
|
} else if ($ !== void 0 && M !== void 0) {
|
|
7676
7677
|
let H = 0;
|
|
7677
|
-
const { maxScatterCellsPerQuery: ae, maxScatterCellsPerQueryForStandard: pe } = Rt(),
|
|
7678
|
+
const { maxScatterCellsPerQuery: ae, maxScatterCellsPerQueryForStandard: pe } = Rt(), Ni = await no(w, u) ? pe : ae, Ti = [];
|
|
7678
7679
|
let jt = !0, Xe = v, ke = N, Je = "", Ct = 1, Ht = 1, vt = Number.MAX_SAFE_INTEGER, Bt = Number.MIN_SAFE_INTEGER, Nt = Number.MAX_SAFE_INTEGER, Tt = Number.MIN_SAFE_INTEGER;
|
|
7679
7680
|
for (; Ht <= M && jt; ) {
|
|
7680
7681
|
for (ke = N, Ct = 1; Ct <= $ && jt; ) {
|
|
@@ -7688,14 +7689,14 @@ async function lu(t) {
|
|
|
7688
7689
|
yStep: O,
|
|
7689
7690
|
endOfRow: Ct === $,
|
|
7690
7691
|
endOfColumn: Ht === M
|
|
7691
|
-
}), Xe < vt && (vt = Xe), Xe + P > Bt && (Bt = Xe + P), ke < Nt && (Nt = ke), ke + P > Tt && (Tt = ke + O), H += 1, H %
|
|
7692
|
+
}), Xe < vt && (vt = Xe), Xe + P > Bt && (Bt = Xe + P), ke < Nt && (Nt = ke), ke + P > Tt && (Tt = ke + O), H += 1, H % Ni === 0 || H === V || H === B) {
|
|
7692
7693
|
Je = `${Je} ${Ue.groupByCaseEnd}`;
|
|
7693
7694
|
const pr = {
|
|
7694
7695
|
...r,
|
|
7695
7696
|
groupByFieldsForStatistics: [Je],
|
|
7696
7697
|
outStatistics: [...q.values()]
|
|
7697
7698
|
};
|
|
7698
|
-
|
|
7699
|
+
Ti.push(
|
|
7699
7700
|
ou({
|
|
7700
7701
|
chartConfig: i,
|
|
7701
7702
|
queryConfig: pr,
|
|
@@ -7714,7 +7715,7 @@ async function lu(t) {
|
|
|
7714
7715
|
}
|
|
7715
7716
|
Xe += P, Ht += 1;
|
|
7716
7717
|
}
|
|
7717
|
-
b = (await Promise.all(
|
|
7718
|
+
b = (await Promise.all(Ti)).flat();
|
|
7718
7719
|
}
|
|
7719
7720
|
}
|
|
7720
7721
|
}
|
|
@@ -7775,7 +7776,7 @@ function cu(t) {
|
|
|
7775
7776
|
const { useQueryAttributeBins: e, graphic: i, x: a, y: r, yStep: n } = t, { groupByOutKeyword: s } = Ue, { dataContextXMinField: o, dataContextXMaxField: u, dataContextYMinField: c, dataContextYMaxField: l } = C.scatterplotAggregationFields;
|
|
7776
7777
|
let d = [];
|
|
7777
7778
|
if (e && "stackedAttributes" in i && i.stackedAttributes) {
|
|
7778
|
-
const f =
|
|
7779
|
+
const f = Oa(a, r), m = i.attributes[f.lowerBoundaryAlias], y = i.attributes[f.upperBoundaryAlias];
|
|
7779
7780
|
i.stackedAttributes.forEach((p) => {
|
|
7780
7781
|
let g = p[f.stackAlias], S;
|
|
7781
7782
|
typeof g == "number" && typeof n == "number" && (g *= n), typeof g == "number" && typeof n == "number" && (S = g + n);
|
|
@@ -7835,7 +7836,7 @@ function du(t) {
|
|
|
7835
7836
|
async function fu(t) {
|
|
7836
7837
|
const { queryObject: e, queryConfig: i, chartConfig: a, featureCount: r, errorStrings: n, abortKey: s, abortSignal: o } = t, u = a.series[0], { x: c, y: l } = u, d = z(e);
|
|
7837
7838
|
let f = [];
|
|
7838
|
-
const m = Ce(e), y = $t(d).idFields, p = (m?.filter((x) =>
|
|
7839
|
+
const m = Ce(e), y = $t(d).idFields, p = (m?.filter((x) => Ft(x) && x.name !== c && x.name !== l) ?? []).map(
|
|
7839
7840
|
(x) => x.name
|
|
7840
7841
|
) ?? [], g = u?.additionalTooltipFields ?? [], S = Array.from(
|
|
7841
7842
|
/* @__PURE__ */ new Set([c, l, ...y ?? [], ...p, ...g])
|
|
@@ -7895,7 +7896,7 @@ async function mu(t) {
|
|
|
7895
7896
|
}
|
|
7896
7897
|
return e;
|
|
7897
7898
|
}
|
|
7898
|
-
async function
|
|
7899
|
+
async function dr(t) {
|
|
7899
7900
|
const {
|
|
7900
7901
|
chartConfig: e,
|
|
7901
7902
|
queryConfig: i,
|
|
@@ -7943,12 +7944,12 @@ async function cr(t) {
|
|
|
7943
7944
|
yStep: d.get(m),
|
|
7944
7945
|
useQueryAttributeBins: S
|
|
7945
7946
|
});
|
|
7946
|
-
r !== !1 &&
|
|
7947
|
+
r !== !1 && ht({
|
|
7947
7948
|
arrayToSort: v,
|
|
7948
7949
|
sortingField: e.series[0].x,
|
|
7949
7950
|
orderBy: ye.Ascending
|
|
7950
7951
|
});
|
|
7951
|
-
const { r2: x, trendLinePoints: B } = n !== !1 ? await
|
|
7952
|
+
const { r2: x, trendLinePoints: B } = n !== !1 ? await Va({
|
|
7952
7953
|
data: v,
|
|
7953
7954
|
statsMap: d,
|
|
7954
7955
|
queryConfig: i,
|
|
@@ -7975,20 +7976,20 @@ function it(t) {
|
|
|
7975
7976
|
[E.StandardDeviation]: `${e ? "" : `${t}_`}${E.StandardDeviation}`
|
|
7976
7977
|
};
|
|
7977
7978
|
}
|
|
7978
|
-
function
|
|
7979
|
+
function fr(t) {
|
|
7979
7980
|
return "subType" in t && t.subType === xr.FeatureGauge;
|
|
7980
7981
|
}
|
|
7981
7982
|
function Ci(t) {
|
|
7982
7983
|
let e;
|
|
7983
7984
|
return t !== void 0 && ("bins" in t ? e = t.bins : "dataItems" in t && (e = t.dataItems)), e;
|
|
7984
7985
|
}
|
|
7985
|
-
function
|
|
7986
|
+
function mr(t) {
|
|
7986
7987
|
return t === F.BoxPlotMultiFields || t === F.BoxPlotMultiFieldsAndCategory || t === F.BoxPlotMultiFieldsAndSplitBy;
|
|
7987
7988
|
}
|
|
7988
7989
|
function K(t) {
|
|
7989
7990
|
const { key: e, y: i, chartSubType: a, splitBy: r, splitByValue: n, showOutliers: s, standardizeValues: o } = t;
|
|
7990
7991
|
let u = n, l = it(i)[e];
|
|
7991
|
-
return s === !0 && (e === E.Min || e === E.Max) && (l = `${l}${Rr}`), o === !0 && (
|
|
7992
|
+
return s === !0 && (e === E.Min || e === E.Max) && (l = `${l}${Rr}`), o === !0 && (mr(a) || e === E.Outlier) && (l = `${l}${$r}`), (n === void 0 || `${n}`.trim() === "") && (u = fe({ where: r, normalize: !0, escape: !1 })), u !== void 0 && `${u}`.trim() !== "" && (l = `${u}${l !== "" ? `_${l}` : ""}`), l;
|
|
7992
7993
|
}
|
|
7993
7994
|
function Yt(t) {
|
|
7994
7995
|
const { dataItem: e, y: i, splitBy: a, showOutliers: r } = t, n = K({ key: E.FirstQuartile, y: i, splitBy: a, showOutliers: r }), s = K({ key: E.ThirdQuartile, y: i, splitBy: a, showOutliers: r });
|
|
@@ -8025,18 +8026,18 @@ function yu(t) {
|
|
|
8025
8026
|
}
|
|
8026
8027
|
return s;
|
|
8027
8028
|
}
|
|
8028
|
-
function
|
|
8029
|
+
function vi(t) {
|
|
8029
8030
|
return t.map((e) => e.id).filter((e) => e !== void 0);
|
|
8030
8031
|
}
|
|
8031
8032
|
function ue(t, e) {
|
|
8032
8033
|
let i = [];
|
|
8033
|
-
const a = e ??
|
|
8034
|
+
const a = e ?? vi(t), r = k(t);
|
|
8034
8035
|
return i = t.filter((n) => a.includes(n.id)).map((n) => {
|
|
8035
8036
|
let s = "y" in n ? n.y : void 0;
|
|
8036
8037
|
return s !== void 0 && r === F.BarAndLineSplitByNoAggregation && (s = `${s.toString()}_${fe({ where: n.query?.where, keepSurroundingQuotes: !1, escape: !1 })}`), s;
|
|
8037
8038
|
}).filter((n) => n !== void 0), Array.from(new Set(i.flat()));
|
|
8038
8039
|
}
|
|
8039
|
-
function
|
|
8040
|
+
function Bi(t) {
|
|
8040
8041
|
const { seriesConfig: e, filteredSeriesIds: i, showMean: a } = t;
|
|
8041
8042
|
let r = [];
|
|
8042
8043
|
if (a === !0) {
|
|
@@ -8133,7 +8134,7 @@ function zd(t) {
|
|
|
8133
8134
|
return r;
|
|
8134
8135
|
}
|
|
8135
8136
|
function pu(t, e) {
|
|
8136
|
-
const i = /* @__PURE__ */ new Map(), a = e ??
|
|
8137
|
+
const i = /* @__PURE__ */ new Map(), a = e ?? vi(t);
|
|
8137
8138
|
return t.forEach((r) => {
|
|
8138
8139
|
if (a.includes(r.id) && "y" in r) {
|
|
8139
8140
|
const n = i.get(r.type) ?? [];
|
|
@@ -8170,17 +8171,17 @@ function Su(t) {
|
|
|
8170
8171
|
const { dataItem: e, ...i } = t, a = K({ key: E.Min, ...i }), r = K({ key: E.Max, ...i }), n = e[a], s = e[r];
|
|
8171
8172
|
return { min: n, max: s };
|
|
8172
8173
|
}
|
|
8173
|
-
function
|
|
8174
|
+
function Yi(t) {
|
|
8174
8175
|
let e = Number.NaN, i = Number.NaN, a, r;
|
|
8175
8176
|
const { chartConfig: n, chartData: s, filteredSeriesIds: o } = t, { series: u } = n;
|
|
8176
8177
|
if (u?.length > 0) {
|
|
8177
8178
|
const { x: c } = u[0], l = _(n.series);
|
|
8178
8179
|
if (l === h.HistogramSeries && s.length > 0) {
|
|
8179
|
-
const d = s[0]?.[
|
|
8180
|
+
const d = s[0]?.[$i.Start], f = s[s.length - 1]?.[$i.End];
|
|
8180
8181
|
a = typeof d == "number" ? d : a, r = typeof f == "number" ? f : r;
|
|
8181
8182
|
} else {
|
|
8182
8183
|
const d = s.filter((m) => m[c] !== null);
|
|
8183
|
-
if ({ min: a, max: r } =
|
|
8184
|
+
if ({ min: a, max: r } = St(d, (m) => m[c]), n.axes?.[0]?.valueFormat.type === h.DateAxisFormat && a !== void 0 && r !== void 0 && ([a, r] = [new Date(a).valueOf(), new Date(r).valueOf()]), l === h.BoxPlotSeries) {
|
|
8184
8185
|
e = Number.MAX_SAFE_INTEGER, i = Number.MIN_SAFE_INTEGER;
|
|
8185
8186
|
const m = ue(u, o), y = k(u), p = "standardizeValues" in n ? n.standardizeValues === !0 : void 0, g = n.series.map(
|
|
8186
8187
|
(S) => S.visible !== !1 ? fe({ where: S.query?.where }) : ""
|
|
@@ -8217,7 +8218,7 @@ function Ui(t) {
|
|
|
8217
8218
|
case Te.Side:
|
|
8218
8219
|
default: {
|
|
8219
8220
|
e = Number.MAX_SAFE_INTEGER, i = Number.MIN_SAFE_INTEGER, ue(u, o).forEach((p) => {
|
|
8220
|
-
const { min: g, max: S } =
|
|
8221
|
+
const { min: g, max: S } = St(
|
|
8221
8222
|
d,
|
|
8222
8223
|
(b) => b[p]
|
|
8223
8224
|
);
|
|
@@ -8231,7 +8232,7 @@ function Ui(t) {
|
|
|
8231
8232
|
return { minY: e, maxY: i, minX: a, maxX: r };
|
|
8232
8233
|
}
|
|
8233
8234
|
function Fu(t) {
|
|
8234
|
-
const { chartConfig: e,
|
|
8235
|
+
const { chartConfig: e, isSecondaryYAxis: i, seriesIds: a } = t;
|
|
8235
8236
|
let r = a;
|
|
8236
8237
|
return e.axes?.length === 3 && (r = e.series.map((n) => {
|
|
8237
8238
|
let s = "";
|
|
@@ -8255,7 +8256,7 @@ function gr(t) {
|
|
|
8255
8256
|
let r = !1;
|
|
8256
8257
|
if (a === 0) {
|
|
8257
8258
|
if (yr(e)) {
|
|
8258
|
-
const { minX: n, maxX: s } =
|
|
8259
|
+
const { minX: n, maxX: s } = Yi({
|
|
8259
8260
|
chartConfig: e,
|
|
8260
8261
|
chartData: i
|
|
8261
8262
|
});
|
|
@@ -8264,8 +8265,8 @@ function gr(t) {
|
|
|
8264
8265
|
} else {
|
|
8265
8266
|
const n = Fu({
|
|
8266
8267
|
chartConfig: e,
|
|
8267
|
-
|
|
8268
|
-
}), { minY: s, maxY: o } =
|
|
8268
|
+
isSecondaryYAxis: a === 2
|
|
8269
|
+
}), { minY: s, maxY: o } = Yi({
|
|
8269
8270
|
chartConfig: e,
|
|
8270
8271
|
chartData: i,
|
|
8271
8272
|
filteredSeriesIds: n
|
|
@@ -8311,7 +8312,7 @@ function xu(t, e) {
|
|
|
8311
8312
|
}
|
|
8312
8313
|
return a;
|
|
8313
8314
|
}
|
|
8314
|
-
function
|
|
8315
|
+
function Zi(t) {
|
|
8315
8316
|
const e = { ...t };
|
|
8316
8317
|
delete e[C.technicalSortingFieldBySum], delete e[C.technicalSortingFieldByPercent], delete e[C.pieChart.technicalFieldSlicePercent], delete e[C.pieChart.technicalFieldGroupedSlices], delete e[C.lastTemporalBin], delete e[C.originalServerBinningRange], delete e[C.technicalFieldSplitByField], delete e[W.uniqueIdsName], Object.keys(e).filter(
|
|
8317
8318
|
(r) => r.includes(C.rendererSymbolField)
|
|
@@ -8331,7 +8332,7 @@ function Cu(t, e) {
|
|
|
8331
8332
|
case h.RadarSeries:
|
|
8332
8333
|
case h.PieSeries:
|
|
8333
8334
|
{
|
|
8334
|
-
r = r.map(
|
|
8335
|
+
r = r.map(Zi), i = { dataItems: r };
|
|
8335
8336
|
const { timeIntervalInfo: n, serverLimitReached: s } = t ?? {};
|
|
8336
8337
|
Sr(n) || (i.timeIntervalInfo = n), s !== void 0 && (i.serverLimitReached = s);
|
|
8337
8338
|
}
|
|
@@ -8339,7 +8340,7 @@ function Cu(t, e) {
|
|
|
8339
8340
|
case h.ScatterSeries:
|
|
8340
8341
|
i = {
|
|
8341
8342
|
...i,
|
|
8342
|
-
dataItems: r.map(
|
|
8343
|
+
dataItems: r.map(Zi)
|
|
8343
8344
|
};
|
|
8344
8345
|
break;
|
|
8345
8346
|
}
|
|
@@ -8419,7 +8420,7 @@ async function Bu(t) {
|
|
|
8419
8420
|
switch (w.objectIds = T, g) {
|
|
8420
8421
|
case h.HeatSeries:
|
|
8421
8422
|
S.push(
|
|
8422
|
-
|
|
8423
|
+
cr({
|
|
8423
8424
|
completeHeatChartDataset: !1,
|
|
8424
8425
|
// we do not want the empty bins to be added for the selection
|
|
8425
8426
|
chartConfig: a,
|
|
@@ -8491,7 +8492,7 @@ async function Bu(t) {
|
|
|
8491
8492
|
break;
|
|
8492
8493
|
case h.ScatterSeries:
|
|
8493
8494
|
S.push(
|
|
8494
|
-
|
|
8495
|
+
dr({
|
|
8495
8496
|
queryObject: s,
|
|
8496
8497
|
chartConfig: a,
|
|
8497
8498
|
queryConfig: w,
|
|
@@ -8549,7 +8550,7 @@ async function Yd(t) {
|
|
|
8549
8550
|
let N;
|
|
8550
8551
|
const T = _(v), w = T !== h.HistogramSeries && T !== h.HeatSeries && x !== void 0 && x.length > 0 && !(v[0].x in x[0]) && !(ce in x[0]) && !(C.boxPlot.boxPlotCategory in x[0]);
|
|
8551
8552
|
if (y !== !0 && S !== !1 && B !== void 0 && B.length > 0 && (a === !0 || w || u)) {
|
|
8552
|
-
const A = Ci(i), I =
|
|
8553
|
+
const A = Ci(i), I = Ha({
|
|
8553
8554
|
queryObject: s,
|
|
8554
8555
|
chartConfig: e,
|
|
8555
8556
|
runtimeDataFilters: p,
|
|
@@ -8590,7 +8591,8 @@ async function Yd(t) {
|
|
|
8590
8591
|
const Zd = {
|
|
8591
8592
|
shouldCheckDataMinMaxForLogScaleOnXAxis: yr,
|
|
8592
8593
|
minMaxHasZeroOrNegativeValues: li,
|
|
8593
|
-
isChartWithZeroOrNegativeValues: gr
|
|
8594
|
+
isChartWithZeroOrNegativeValues: gr,
|
|
8595
|
+
getAllSeriesIDs: vi
|
|
8594
8596
|
};
|
|
8595
8597
|
export {
|
|
8596
8598
|
hu as $,
|
|
@@ -8604,7 +8606,7 @@ export {
|
|
|
8604
8606
|
$s as H,
|
|
8605
8607
|
Ce as I,
|
|
8606
8608
|
eo as J,
|
|
8607
|
-
|
|
8609
|
+
dt as K,
|
|
8608
8610
|
hd as L,
|
|
8609
8611
|
Tc as M,
|
|
8610
8612
|
oo as N,
|
|
@@ -8615,27 +8617,27 @@ export {
|
|
|
8615
8617
|
Eo as S,
|
|
8616
8618
|
xn as T,
|
|
8617
8619
|
it as U,
|
|
8618
|
-
|
|
8620
|
+
Bi as V,
|
|
8619
8621
|
K as W,
|
|
8620
8622
|
pi as X,
|
|
8621
8623
|
k as Y,
|
|
8622
8624
|
Nc as Z,
|
|
8623
|
-
|
|
8625
|
+
Yi as _,
|
|
8624
8626
|
dd as a,
|
|
8625
8627
|
Ec as a$,
|
|
8626
8628
|
Mt as a0,
|
|
8627
8629
|
qd as a1,
|
|
8628
|
-
|
|
8630
|
+
Za as a2,
|
|
8629
8631
|
gi as a3,
|
|
8630
8632
|
ri as a4,
|
|
8631
8633
|
ni as a5,
|
|
8632
|
-
|
|
8634
|
+
Vi as a6,
|
|
8633
8635
|
xd as a7,
|
|
8634
8636
|
Td as a8,
|
|
8635
8637
|
Dn as a9,
|
|
8636
8638
|
Xs as aA,
|
|
8637
8639
|
Qs as aB,
|
|
8638
|
-
|
|
8640
|
+
_a as aC,
|
|
8639
8641
|
io as aD,
|
|
8640
8642
|
Yd as aE,
|
|
8641
8643
|
Re as aF,
|
|
@@ -8659,9 +8661,9 @@ export {
|
|
|
8659
8661
|
Pc as aX,
|
|
8660
8662
|
Dc as aY,
|
|
8661
8663
|
Hc as aZ,
|
|
8662
|
-
|
|
8663
|
-
|
|
8664
|
-
|
|
8664
|
+
Mi as a_,
|
|
8665
|
+
ka as aa,
|
|
8666
|
+
Qa as ab,
|
|
8665
8667
|
Fd as ac,
|
|
8666
8668
|
ro as ad,
|
|
8667
8669
|
vc as ae,
|
|
@@ -8672,18 +8674,18 @@ export {
|
|
|
8672
8674
|
Id as aj,
|
|
8673
8675
|
ge as ak,
|
|
8674
8676
|
xo as al,
|
|
8675
|
-
|
|
8677
|
+
za as am,
|
|
8676
8678
|
ve as an,
|
|
8677
|
-
|
|
8678
|
-
|
|
8679
|
+
Oa as ao,
|
|
8680
|
+
Ea as ap,
|
|
8679
8681
|
go as aq,
|
|
8680
8682
|
bd as ar,
|
|
8681
8683
|
yo as as,
|
|
8682
8684
|
ai as at,
|
|
8683
8685
|
Us as au,
|
|
8684
8686
|
Ss as av,
|
|
8685
|
-
|
|
8686
|
-
|
|
8687
|
+
$a as aw,
|
|
8688
|
+
Ra as ax,
|
|
8687
8689
|
Sd as ay,
|
|
8688
8690
|
to as az,
|
|
8689
8691
|
Ge as b,
|
|
@@ -8700,7 +8702,7 @@ export {
|
|
|
8700
8702
|
Ie as b9,
|
|
8701
8703
|
ho as bA,
|
|
8702
8704
|
hi as bB,
|
|
8703
|
-
|
|
8705
|
+
ft as bC,
|
|
8704
8706
|
Ld as bD,
|
|
8705
8707
|
lo as bE,
|
|
8706
8708
|
xc as bF,
|
|
@@ -8717,33 +8719,33 @@ export {
|
|
|
8717
8719
|
xt as bQ,
|
|
8718
8720
|
yd as bR,
|
|
8719
8721
|
Cu as bS,
|
|
8720
|
-
|
|
8722
|
+
Zi as bT,
|
|
8721
8723
|
xu as bU,
|
|
8722
8724
|
bu as bV,
|
|
8723
8725
|
Gd as bW,
|
|
8724
8726
|
Ud as bX,
|
|
8725
8727
|
Uc as bY,
|
|
8726
8728
|
Zs as bZ,
|
|
8727
|
-
|
|
8729
|
+
Wi as b_,
|
|
8728
8730
|
Bn as ba,
|
|
8729
8731
|
ao as bb,
|
|
8730
8732
|
zd as bc,
|
|
8731
8733
|
Fc as bd,
|
|
8732
|
-
|
|
8734
|
+
fa as be,
|
|
8733
8735
|
Ee as bf,
|
|
8734
|
-
|
|
8736
|
+
fr as bg,
|
|
8735
8737
|
Bd as bh,
|
|
8736
|
-
|
|
8738
|
+
mr as bi,
|
|
8737
8739
|
Yc as bj,
|
|
8738
|
-
|
|
8740
|
+
Ft as bk,
|
|
8739
8741
|
mo as bl,
|
|
8740
8742
|
pd as bm,
|
|
8741
|
-
|
|
8743
|
+
ha as bn,
|
|
8742
8744
|
Pe as bo,
|
|
8743
8745
|
no as bp,
|
|
8744
8746
|
Cd as bq,
|
|
8745
8747
|
bc as br,
|
|
8746
|
-
|
|
8748
|
+
ma as bs,
|
|
8747
8749
|
mn as bt,
|
|
8748
8750
|
vd as bu,
|
|
8749
8751
|
wd as bv,
|
|
@@ -8763,11 +8765,11 @@ export {
|
|
|
8763
8765
|
sd as c7,
|
|
8764
8766
|
Qd as c8,
|
|
8765
8767
|
nd as c9,
|
|
8766
|
-
|
|
8768
|
+
bt as cA,
|
|
8767
8769
|
al as cB,
|
|
8768
8770
|
Md as cC,
|
|
8769
8771
|
Sc as cD,
|
|
8770
|
-
|
|
8772
|
+
Oi as cE,
|
|
8771
8773
|
oc as cF,
|
|
8772
8774
|
yc as cG,
|
|
8773
8775
|
ld as cH,
|
|
@@ -8776,13 +8778,13 @@ export {
|
|
|
8776
8778
|
uc as cK,
|
|
8777
8779
|
ud as cL,
|
|
8778
8780
|
ti as cM,
|
|
8779
|
-
|
|
8781
|
+
pt as cN,
|
|
8780
8782
|
dn as cO,
|
|
8781
8783
|
Jc as cP,
|
|
8782
8784
|
md as cQ,
|
|
8783
8785
|
We as cR,
|
|
8784
|
-
|
|
8785
|
-
|
|
8786
|
+
$i as cS,
|
|
8787
|
+
wa as cT,
|
|
8786
8788
|
Dd as cU,
|
|
8787
8789
|
ad as cV,
|
|
8788
8790
|
Hd as cW,
|
|
@@ -8799,7 +8801,7 @@ export {
|
|
|
8799
8801
|
en as cg,
|
|
8800
8802
|
sc as ch,
|
|
8801
8803
|
ed as ci,
|
|
8802
|
-
|
|
8804
|
+
Di as cj,
|
|
8803
8805
|
od as ck,
|
|
8804
8806
|
In as cl,
|
|
8805
8807
|
st as cm,
|
|
@@ -8822,8 +8824,8 @@ export {
|
|
|
8822
8824
|
id as d2,
|
|
8823
8825
|
Hn as d3,
|
|
8824
8826
|
yi as d4,
|
|
8825
|
-
|
|
8826
|
-
|
|
8827
|
+
ur as d5,
|
|
8828
|
+
Ha as e,
|
|
8827
8829
|
Zc as f,
|
|
8828
8830
|
Qe as g,
|
|
8829
8831
|
Y as h,
|
|
@@ -8836,7 +8838,7 @@ export {
|
|
|
8836
8838
|
Wc as o,
|
|
8837
8839
|
Yt as p,
|
|
8838
8840
|
Gc as q,
|
|
8839
|
-
|
|
8841
|
+
ya as r,
|
|
8840
8842
|
Cc as s,
|
|
8841
8843
|
yn as t,
|
|
8842
8844
|
gn as u,
|