@arcgis/charts-components 5.2.0-next.116 → 5.2.0-next.118
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/{7DX2X2M6.js → 3ENZSG27.js} +1 -1
- package/dist/cdn/{GQDSTKYF.js → 3O67VAST.js} +1 -1
- package/dist/cdn/{V5FIMV2Y.js → 4A37DTZX.js} +1 -1
- package/dist/cdn/{GVQYJBVB.js → 4DUZ3DBV.js} +1 -1
- package/dist/cdn/{KOXVXSWF.js → 4FIQZ7ML.js} +1 -1
- package/dist/cdn/{JMVO446U.js → 4THGJRO7.js} +1 -1
- package/dist/cdn/{FIIRJDC2.js → 4XSVNPEK.js} +1 -1
- package/dist/cdn/{DWXKIA5H.js → 53SSVK7N.js} +1 -1
- package/dist/cdn/{2M6NOWZH.js → 53UMBR7N.js} +1 -1
- package/dist/cdn/{7L6JYKL3.js → 5HDOHGI4.js} +1 -1
- package/dist/cdn/{7GYKQBI2.js → 6EHQBSWA.js} +1 -1
- package/dist/cdn/{XFWCKK3S.js → 6U7WMM3T.js} +1 -1
- package/dist/cdn/{IUBSW7JZ.js → 7IHXUP3W.js} +1 -1
- package/dist/cdn/{TPNCYNX4.js → 7UJEERMJ.js} +1 -1
- package/dist/cdn/{5JACBJVQ.js → 7V6X72KT.js} +1 -1
- package/dist/cdn/{JOAG4YGY.js → A6C5ZSQX.js} +1 -1
- package/dist/cdn/{PS2SISM7.js → ACUQ3GSY.js} +1 -1
- package/dist/cdn/{DCW2ZBK4.js → ADYMQ4Y2.js} +1 -1
- package/dist/cdn/{2RX7CFJZ.js → ANYYYIRI.js} +1 -1
- package/dist/cdn/{CHV2N66C.js → C5ZJ4DRI.js} +1 -1
- package/dist/cdn/{566ODMCM.js → DPJFM4NP.js} +1 -1
- package/dist/cdn/{ACY2RJG6.js → DY7JRVSH.js} +1 -1
- package/dist/cdn/{GXHUAPY5.js → E2JOOTO5.js} +1 -1
- package/dist/cdn/{MAUH77PP.js → FGHHEJ7Q.js} +1 -1
- package/dist/cdn/{3P5DXQON.js → FY3TBFIV.js} +1 -1
- package/dist/cdn/{SZAJUT6D.js → GFVDFWRY.js} +1 -1
- package/dist/cdn/{7D5IELSU.js → HEWIZKQY.js} +1 -1
- package/dist/cdn/{F7JZQQEQ.js → HHEWJXPN.js} +1 -1
- package/dist/cdn/{QWBGD3GZ.js → HJ5VB5VO.js} +1 -1
- package/dist/cdn/{KTMIUASB.js → HOGVXO5U.js} +1 -1
- package/dist/cdn/{2T7ZUVHP.js → ICISCYJS.js} +1 -1
- package/dist/cdn/{3DN2BHOQ.js → IX25OK5T.js} +1 -1
- package/dist/cdn/{JG6GHMP7.js → J2BDF3BA.js} +1 -1
- package/dist/cdn/{IVRYUXG3.js → J5OL3IK4.js} +1 -1
- package/dist/cdn/{PB2TARKD.js → JT2V74UY.js} +1 -1
- package/dist/cdn/{6RFRWYM2.js → LF6C4WDO.js} +1 -1
- package/dist/cdn/{34JAB5UH.js → LIRYT77W.js} +1 -1
- package/dist/cdn/{7ESDYEUI.js → MBQT7SKP.js} +1 -1
- package/dist/cdn/MKT2I7XP.js +3 -0
- package/dist/cdn/{HAVT2ATQ.js → NDWWMTS4.js} +1 -1
- package/dist/cdn/{CMECSKKT.js → NGKSADMN.js} +1 -1
- package/dist/cdn/{SYCVCYOW.js → NI7A233E.js} +1 -1
- package/dist/cdn/{HCDDOFOP.js → NZIHTLRS.js} +1 -1
- package/dist/cdn/{ZEQQTM2Z.js → P3J77G25.js} +1 -1
- package/dist/cdn/{4EEANOMS.js → PAMROVVE.js} +1 -1
- package/dist/cdn/{OJ4IPOIX.js → PBPYRFS3.js} +1 -1
- package/dist/cdn/{75EPETWU.js → PGFXIMQZ.js} +1 -1
- package/dist/cdn/{BKHAERW7.js → PHOEIZRB.js} +1 -1
- package/dist/cdn/{QXAP7DRB.js → PLXQMAKJ.js} +1 -1
- package/dist/cdn/{5OD74CU7.js → PXCDE2VI.js} +1 -1
- package/dist/cdn/{JRNZ74TV.js → QDMQERJE.js} +1 -1
- package/dist/cdn/{3HPWU5ID.js → QJ4KUKW4.js} +1 -1
- package/dist/cdn/{JPMGLG7L.js → QJ5FZEFC.js} +1 -1
- package/dist/cdn/{53TSMZAM.js → QN4LSFXZ.js} +1 -1
- package/dist/cdn/{TH2ZBUJD.js → QOTBD6G3.js} +1 -1
- package/dist/cdn/{HHW3YRII.js → QTT3SC3J.js} +1 -1
- package/dist/cdn/{WCK7BM4P.js → QUWAZG3L.js} +1 -1
- package/dist/cdn/{NJOQ5MC6.js → R3ZPVVUQ.js} +1 -1
- package/dist/cdn/{HPQZQRHD.js → RDBHOXAJ.js} +1 -1
- package/dist/cdn/{PKBRCR4Y.js → S23Y4TVC.js} +1 -1
- package/dist/cdn/{UYMG3L2D.js → S56ZKFQJ.js} +1 -1
- package/dist/cdn/{AQAGHRYN.js → SAGUQ6EW.js} +1 -1
- package/dist/cdn/{I75CEBPU.js → SB3KBW5O.js} +1 -1
- package/dist/cdn/{4YMHNMGU.js → SO6TB4XB.js} +1 -1
- package/dist/cdn/{KMM4522Z.js → SP6T2Q5J.js} +1 -1
- package/dist/cdn/{AKJDIMQC.js → ST6NXHRA.js} +1 -1
- package/dist/cdn/{6FXRJNB7.js → TNEQKLQT.js} +1 -1
- package/dist/cdn/{IBEXJF3Q.js → UEP6ZQXG.js} +1 -1
- package/dist/cdn/{NORI6CPC.js → URFJXFHP.js} +1 -1
- package/dist/cdn/{CO3FBKOL.js → VKWBVDPR.js} +1 -1
- package/dist/cdn/{CNKLZHH7.js → VRIFEBAE.js} +1 -1
- package/dist/cdn/{6OFVY2BU.js → W6FBDRM6.js} +1 -1
- package/dist/cdn/{D5NCBP6F.js → WBFUQWNV.js} +1 -1
- package/dist/cdn/{LVMKNGET.js → WG5YXJ2C.js} +1 -1
- package/dist/cdn/{AOZG77WL.js → X7UW6GQP.js} +1 -1
- package/dist/cdn/{D6PBW53D.js → XCSKZALR.js} +1 -1
- package/dist/cdn/{CIK43DDR.js → XN3NVCAC.js} +1 -1
- package/dist/cdn/{NDW5WZHO.js → Y2BKQMV4.js} +1 -1
- package/dist/cdn/{3YIN5ZR6.js → Z5XFBQIU.js} +1 -1
- package/dist/cdn/{2KF6G3TW.js → Z7RM6IBM.js} +1 -1
- package/dist/cdn/{3BLSEO47.js → ZKLOHQPH.js} +1 -1
- package/dist/cdn/{VBESINVQ.js → ZVGVGFQF.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/index.js +215 -213
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/package.json +4 -4
- package/dist/cdn/5NLH5NS2.js +0 -3
package/dist/chunks/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { cloneDeep as Re, isEqual as
|
|
2
|
+
import { cloneDeep as Re, isEqual as st, isArray as hi, isNil as Ea, isEmpty as qa, memoize as Qe, sortBy as Oi } from "lodash-es";
|
|
3
3
|
import { C, i as ne, a as S, v as Kt, g as ur, f as Si, w as ai, x as Pe, y as Ht, z as cr, b as ni, t as Ra, r as Va, B as $a, e as Ei, n as dr } from "./index2.js";
|
|
4
|
-
import { a as si, b as xe, d as X, e as
|
|
5
|
-
import { a as h, f as ka, e as _, d as D, b as ie, l as he, s as ee, G as fr, g as ye, c as Ae, t as Ee, h as Se, S as mr, o as
|
|
4
|
+
import { a as si, b as xe, d as X, e as tt, c as ce } from "./rest-js-object-literals.js";
|
|
5
|
+
import { a as h, f as ka, e as _, d as D, b as ie, l as he, s as ee, G as fr, g as ye, c as Ae, t as Ee, h as Se, S as mr, o as it } from "./chart-object-literals.js";
|
|
6
6
|
import Qa from "@arcgis/core/Graphic.js";
|
|
7
7
|
import * as Ut from "@arcgis/core/renderers/support/jsonUtils.js";
|
|
8
8
|
import * as ei from "@arcgis/core/symbols/support/symbolUtils.js";
|
|
9
9
|
import { g as Q, s as _a } from "./series-types.js";
|
|
10
10
|
import { q as k, g as gr, Q as Ha, l as zt, i as G, R as ct, S as Gt, T as Ua, U as dt, a as qi, V as qe, C as yr, L as za, M as Ga, r as pr, p as oi } from "./index3.js";
|
|
11
|
-
import { i as te, c as
|
|
11
|
+
import { i as te, c as Ue, d as hr, a as yt, e as Wa, f as ja, g as Xa } from "./type-guards.js";
|
|
12
12
|
import Ri from "@arcgis/core/layers/support/FeatureFilter.js";
|
|
13
13
|
import Ya from "@arcgis/core/smartMapping/statistics/histogram.js";
|
|
14
14
|
import Vi from "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
15
|
-
import { computeStatisticsHistograms as Za, computeRasterAttributeTable as Ja, getCurrentRasterInfo as
|
|
15
|
+
import { computeStatisticsHistograms as Za, computeRasterAttributeTable as Ja, getCurrentRasterInfo as Ye, fetchPixelFeatureSet as Ka } from "@arcgis/core/applications/Components/imageryUtils.js";
|
|
16
16
|
import * as Fi from "@arcgis/core/core/promiseUtils.js";
|
|
17
17
|
import Sr from "@arcgis/core/geometry/Point.js";
|
|
18
18
|
import * as Fr from "@arcgis/core/geometry/support/jsonUtils.js";
|
|
@@ -25,7 +25,7 @@ import an from "@arcgis/core/layers/support/CodedValueDomain.js";
|
|
|
25
25
|
import nn from "@arcgis/core/layers/support/Field.js";
|
|
26
26
|
import * as sn from "@arcgis/core/layers/support/fieldUtils.js";
|
|
27
27
|
import on from "@arcgis/core/portal/Portal.js";
|
|
28
|
-
import
|
|
28
|
+
import Dt from "@arcgis/core/request.js";
|
|
29
29
|
import xr from "@arcgis/core/rest/support/FeatureSet.js";
|
|
30
30
|
import ln from "@arcgis/core/layers/ImageryLayer.js";
|
|
31
31
|
import un from "@arcgis/core/layers/ImageryTileLayer.js";
|
|
@@ -33,18 +33,18 @@ import cn from "@arcgis/core/layers/WCSLayer.js";
|
|
|
33
33
|
import dn from "@arcgis/core/geometry/Extent.js";
|
|
34
34
|
import { linearRegression as fn, linearRegressionLine as mn, rSquared as gn } from "simple-statistics";
|
|
35
35
|
import { fetchT9nStringsBundle as pt, supportedLocales as Cr } from "@arcgis/toolkit/intl";
|
|
36
|
-
import { getElementLocale as
|
|
36
|
+
import { getElementLocale as ze } from "@arcgis/toolkit/intl/dom";
|
|
37
37
|
import { g as ht } from "./runtime.js";
|
|
38
38
|
import { DateTime as ge } from "luxon";
|
|
39
39
|
import yn from "@arcgis/core/AttributeBinsGraphic.js";
|
|
40
40
|
import { substitute as be } from "@arcgis/core/intl.js";
|
|
41
41
|
import { unsafeGetElementDirection as pn } from "@arcgis/toolkit/dom";
|
|
42
42
|
import { sqlLiteral as hn } from "@arcgis/core/core/sql.js";
|
|
43
|
-
function
|
|
43
|
+
function Ot(t) {
|
|
44
44
|
return t?.type === h.NumberAxisFormat;
|
|
45
45
|
}
|
|
46
46
|
function Vc(t) {
|
|
47
|
-
return
|
|
47
|
+
return Ot(t) && t.intlOptions?.style === "percent";
|
|
48
48
|
}
|
|
49
49
|
function Be(t) {
|
|
50
50
|
return t.axes?.[0]?.valueFormat?.type;
|
|
@@ -52,7 +52,7 @@ function Be(t) {
|
|
|
52
52
|
function $c(t) {
|
|
53
53
|
return t.intlOptions;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function Et(t) {
|
|
56
56
|
return t?.type === h.CategoryAxisFormat;
|
|
57
57
|
}
|
|
58
58
|
function Br(t) {
|
|
@@ -67,7 +67,7 @@ function kc(t) {
|
|
|
67
67
|
}
|
|
68
68
|
function Sn(t) {
|
|
69
69
|
const { isXAxis: e, chartType: i, valueFormat: r, isAxisForHistogramOverlaySeries: a } = t;
|
|
70
|
-
return i === h.HeatSeries || e && (
|
|
70
|
+
return i === h.HeatSeries || e && (Et(r) || i === h.HistogramSeries && !a || i === h.BarSeries && Ot(r));
|
|
71
71
|
}
|
|
72
72
|
const St = {
|
|
73
73
|
...C,
|
|
@@ -317,7 +317,7 @@ function Xc(t) {
|
|
|
317
317
|
let r;
|
|
318
318
|
if (i) {
|
|
319
319
|
const a = W(i);
|
|
320
|
-
|
|
320
|
+
Ue(a) ? r = {
|
|
321
321
|
id: a.id,
|
|
322
322
|
layerType: "ArcGISImageServiceLayer"
|
|
323
323
|
} : hr(a) ? r = {
|
|
@@ -330,7 +330,7 @@ function Xc(t) {
|
|
|
330
330
|
}
|
|
331
331
|
return { ...e, iLayer: r };
|
|
332
332
|
}
|
|
333
|
-
const
|
|
333
|
+
const Ge = /* @__PURE__ */ new Map();
|
|
334
334
|
function An(t) {
|
|
335
335
|
let e;
|
|
336
336
|
switch (t) {
|
|
@@ -360,7 +360,7 @@ async function wn(t) {
|
|
|
360
360
|
let m;
|
|
361
361
|
const g = W(e), y = pe(g);
|
|
362
362
|
if (y) {
|
|
363
|
-
const F = { where: Y([l, y.definitionExpression]) }, x = { query: F, signal: o }, T =
|
|
363
|
+
const F = { where: Y([l, y.definitionExpression]) }, x = { query: F, signal: o }, T = Ze(c)?.extent?.toJSON();
|
|
364
364
|
if (T !== void 0) {
|
|
365
365
|
const b = An(d), { xmin: v, ymin: N, xmax: A, ymax: P } = T;
|
|
366
366
|
F.geometryType = "esriGeometryEnvelope", F.geometry = `${v},${N},${A},${P}`, u !== void 0 && (F.distance = u.toString()), b !== void 0 && (F.units = b, c?.spatialReference?.wkid != null && (F.inSR = c.spatialReference.wkid.toString()));
|
|
@@ -368,10 +368,10 @@ async function wn(t) {
|
|
|
368
368
|
f && (F.time = `${f[0]},${f[1]}`);
|
|
369
369
|
const B = `${y.url}/${y.layerId}/queryAnalytic?f=${r}&dataFormat=${a}&outAnalytics=${n}`;
|
|
370
370
|
try {
|
|
371
|
-
m = (await
|
|
371
|
+
m = (await Dt(B, x)).data?.features?.[0]?.attributes;
|
|
372
372
|
} catch (b) {
|
|
373
373
|
const v = s ?? (await pt(
|
|
374
|
-
|
|
374
|
+
ze(document.documentElement).t9nLocale,
|
|
375
375
|
ht("./assets/common/t9n"),
|
|
376
376
|
"messages."
|
|
377
377
|
)).errorStrings;
|
|
@@ -512,7 +512,7 @@ async function In(t) {
|
|
|
512
512
|
}
|
|
513
513
|
return o;
|
|
514
514
|
}
|
|
515
|
-
async function
|
|
515
|
+
async function vt(t) {
|
|
516
516
|
const { queryObject: e, queryConfig: i, abortKey: r, errorStrings: a, abortSignal: n } = t, { outStatistics: s } = i, o = /* @__PURE__ */ new Map();
|
|
517
517
|
if (s !== void 0 && s.length > 0) {
|
|
518
518
|
const l = s.map((f) => {
|
|
@@ -532,12 +532,12 @@ async function Bt(t) {
|
|
|
532
532
|
let u;
|
|
533
533
|
try {
|
|
534
534
|
u = await e.queryFeatures(c, {
|
|
535
|
-
signal: n ?? (r !== void 0 ?
|
|
535
|
+
signal: n ?? (r !== void 0 ? Ge.get(r)?.signal : void 0)
|
|
536
536
|
});
|
|
537
537
|
} catch (f) {
|
|
538
538
|
if (!Fi.isAbortError(f)) {
|
|
539
539
|
const m = a ?? (await pt(
|
|
540
|
-
|
|
540
|
+
ze(document.documentElement).t9nLocale,
|
|
541
541
|
ht("./assets/common/t9n"),
|
|
542
542
|
"messages."
|
|
543
543
|
)).errorStrings;
|
|
@@ -566,7 +566,7 @@ async function wr(t) {
|
|
|
566
566
|
abortSignal: o
|
|
567
567
|
} = t;
|
|
568
568
|
let l = [];
|
|
569
|
-
const c = W(e), u = o || (n !== void 0 ?
|
|
569
|
+
const c = W(e), u = o || (n !== void 0 ? Ge.get(n)?.signal : void 0), d = r === !0 ? void 0 : zn(c), f = xi({
|
|
570
570
|
queryObject: e,
|
|
571
571
|
queryConfig: i,
|
|
572
572
|
maxRecordCountFactor: d,
|
|
@@ -577,7 +577,7 @@ async function wr(t) {
|
|
|
577
577
|
} catch (m) {
|
|
578
578
|
if (!Fi.isAbortError(m)) {
|
|
579
579
|
const g = s ?? (await pt(
|
|
580
|
-
|
|
580
|
+
ze(document.documentElement).t9nLocale,
|
|
581
581
|
ht("./assets/common/t9n"),
|
|
582
582
|
"messages."
|
|
583
583
|
)).errorStrings;
|
|
@@ -658,8 +658,8 @@ async function On(t) {
|
|
|
658
658
|
}
|
|
659
659
|
function En(t) {
|
|
660
660
|
if (t !== void 0) {
|
|
661
|
-
const e =
|
|
662
|
-
e !== void 0 && e.abort(),
|
|
661
|
+
const e = Ge.get(t);
|
|
662
|
+
e !== void 0 && e.abort(), Ge.set(t, new AbortController());
|
|
663
663
|
}
|
|
664
664
|
}
|
|
665
665
|
function Lr(t) {
|
|
@@ -702,7 +702,7 @@ async function qn(t) {
|
|
|
702
702
|
}
|
|
703
703
|
} catch (y) {
|
|
704
704
|
const p = o ?? (await pt(
|
|
705
|
-
|
|
705
|
+
ze(document.documentElement).t9nLocale,
|
|
706
706
|
ht("./assets/common/t9n"),
|
|
707
707
|
"messages."
|
|
708
708
|
)).errorStrings;
|
|
@@ -711,7 +711,7 @@ async function qn(t) {
|
|
|
711
711
|
}
|
|
712
712
|
if (m === !1) {
|
|
713
713
|
const g = o ?? (await pt(
|
|
714
|
-
|
|
714
|
+
ze(document.documentElement).t9nLocale,
|
|
715
715
|
ht("./assets/common/t9n"),
|
|
716
716
|
"messages."
|
|
717
717
|
)).errorStrings;
|
|
@@ -765,7 +765,7 @@ function Yc(t) {
|
|
|
765
765
|
end: new Date(t[1])
|
|
766
766
|
})), e;
|
|
767
767
|
}
|
|
768
|
-
function
|
|
768
|
+
function Ze(t) {
|
|
769
769
|
let e;
|
|
770
770
|
return t !== void 0 && (e = Fr.fromJSON(t)), e;
|
|
771
771
|
}
|
|
@@ -796,7 +796,7 @@ function Wt(t) {
|
|
|
796
796
|
(N) => N.statisticType !== D.EnvelopeAggregate || v
|
|
797
797
|
).map((N) => tn.fromJSON(N));
|
|
798
798
|
}
|
|
799
|
-
const b =
|
|
799
|
+
const b = Ze(d);
|
|
800
800
|
return b !== void 0 && (x.geometry = b, r?.spatialRelationship && (x.spatialRelationship = r.spatialRelationship), Nr(p) && (f !== void 0 && (x.distance = f), m !== void 0 && (x.units = m))), g && (x.timeExtent = new br({
|
|
801
801
|
start: g?.[0],
|
|
802
802
|
end: g?.[1]
|
|
@@ -1072,18 +1072,18 @@ function Wn(t) {
|
|
|
1072
1072
|
return e;
|
|
1073
1073
|
}
|
|
1074
1074
|
async function jn(t) {
|
|
1075
|
-
const { chartConfig: e, queryConfig: i, queryObject: r, filterByViewExtent: a, view: n, abortKey: s, abortSignal: o } = t, l = o ?? (s !== void 0 ?
|
|
1075
|
+
const { chartConfig: e, queryConfig: i, queryObject: r, filterByViewExtent: a, view: n, abortKey: s, abortSignal: o } = t, l = o ?? (s !== void 0 ? Ge.get(s)?.signal : void 0), c = e.series[0], { x: u, dataTransformationType: d, binCount: f } = c, m = W(r);
|
|
1076
1076
|
if (!te(m))
|
|
1077
1077
|
throw new oe(le.LayerNotSupported);
|
|
1078
1078
|
const g = await ft(m, l);
|
|
1079
1079
|
if (!g)
|
|
1080
1080
|
throw new Error("Raster info is not available for the layer.");
|
|
1081
|
-
let y =
|
|
1082
|
-
const p =
|
|
1081
|
+
let y = Ze(i.geometry);
|
|
1082
|
+
const p = kt(m, u);
|
|
1083
1083
|
if (p < 0)
|
|
1084
1084
|
throw new Error("Band ID not found for `${x}`.");
|
|
1085
1085
|
let F, x;
|
|
1086
|
-
if (!a && (d === void 0 || d === ee.None) && !(
|
|
1086
|
+
if (!a && (d === void 0 || d === ee.None) && !(Ue(m) && Ct(m)) && f && Array.isArray(g.histograms) && g.histograms.length > p && g.histograms[p].size % f === 0 && Array.isArray(g.statistics) && g?.statistics?.length > p)
|
|
1087
1087
|
F = g.histograms[p], x = g.statistics[p];
|
|
1088
1088
|
else {
|
|
1089
1089
|
let T, B, b;
|
|
@@ -1092,7 +1092,7 @@ async function jn(t) {
|
|
|
1092
1092
|
else {
|
|
1093
1093
|
const N = Gn, A = 2;
|
|
1094
1094
|
let P = g.width, M = g.height;
|
|
1095
|
-
if (!a && !y &&
|
|
1095
|
+
if (!a && !y && Ue(m) && Ct(m))
|
|
1096
1096
|
try {
|
|
1097
1097
|
const L = m.createQuery(), { extent: O } = await m.queryExtent(L, { signal: l });
|
|
1098
1098
|
O && (P = O.width, M = O.height, y = O);
|
|
@@ -1203,7 +1203,7 @@ async function Yn(t) {
|
|
|
1203
1203
|
}
|
|
1204
1204
|
const Zn = (t) => t.series[0].x;
|
|
1205
1205
|
function Jn(t) {
|
|
1206
|
-
const { chartConfig: e, layer: i, selectionItems: r } = t, a =
|
|
1206
|
+
const { chartConfig: e, layer: i, selectionItems: r } = t, a = kt(i, Zn(e)), s = r.map((c) => [
|
|
1207
1207
|
c.minValue,
|
|
1208
1208
|
c.maxValue
|
|
1209
1209
|
]).reduce((c, u, d) => {
|
|
@@ -1287,7 +1287,7 @@ async function is(t) {
|
|
|
1287
1287
|
if (a && s?.url !== void 0 && s.url !== null) {
|
|
1288
1288
|
const o = `${s.url}/${s.layerId}?f=json`;
|
|
1289
1289
|
try {
|
|
1290
|
-
const l = (await
|
|
1290
|
+
const l = (await Dt(o, { signal: i })).data, c = l?.advancedQueryCapabilities?.supportsQueryAnalytic === !0, u = l?.sqlParserVersion === void 0 || s.version != null && s.version >= 10.91;
|
|
1291
1291
|
r = c && u;
|
|
1292
1292
|
} catch {
|
|
1293
1293
|
}
|
|
@@ -1382,22 +1382,22 @@ function rd(t, e) {
|
|
|
1382
1382
|
let i = "";
|
|
1383
1383
|
const n = (e ?? 0) / 2, s = 0 - n, o = 0 + n, l = 0 - n, c = 0 + n;
|
|
1384
1384
|
switch (t) {
|
|
1385
|
-
case
|
|
1385
|
+
case tt.Circle:
|
|
1386
1386
|
i = `M ${s},0 a ${n},${n} 0 1,0 ${n * 2},0 a ${n},${n} 0 1,0 ${-n * 2},0`;
|
|
1387
1387
|
break;
|
|
1388
|
-
case
|
|
1388
|
+
case tt.Cross:
|
|
1389
1389
|
i = `M ${s},0 L ${o},0 M 0,${l} L 0,${c} E`;
|
|
1390
1390
|
break;
|
|
1391
|
-
case
|
|
1391
|
+
case tt.Diamond:
|
|
1392
1392
|
i = `M ${s},0 L 0,${l} L ${o},0 L 0,${c} L ${s},0 Z`;
|
|
1393
1393
|
break;
|
|
1394
|
-
case
|
|
1394
|
+
case tt.Square:
|
|
1395
1395
|
i = `M ${s},${c} L ${s},${l} L ${o},${l} L ${o},${c} L ${s},${c} Z`;
|
|
1396
1396
|
break;
|
|
1397
|
-
case
|
|
1397
|
+
case tt.Triangle:
|
|
1398
1398
|
i = `M ${s},${c} L 0,${l} L ${o},${c} L ${s},${c} Z`;
|
|
1399
1399
|
break;
|
|
1400
|
-
case
|
|
1400
|
+
case tt.X:
|
|
1401
1401
|
i = `M ${s},${c} L ${o},${l} M ${s},${l} L ${o},${c} E`;
|
|
1402
1402
|
break;
|
|
1403
1403
|
}
|
|
@@ -1444,7 +1444,7 @@ function ld(t) {
|
|
|
1444
1444
|
function os(t) {
|
|
1445
1445
|
return t ? t.replace(/[A-Z]/gu, (e) => `-${e.toLowerCase()}`) : void 0;
|
|
1446
1446
|
}
|
|
1447
|
-
function
|
|
1447
|
+
function We(t) {
|
|
1448
1448
|
return Q(t?.series) === h.HeatSeries;
|
|
1449
1449
|
}
|
|
1450
1450
|
function de(t) {
|
|
@@ -1493,7 +1493,7 @@ function cs(t) {
|
|
|
1493
1493
|
const e = z(t.series);
|
|
1494
1494
|
return e === S.BarAndLineFromFields || e === S.PieFromFields || e === S.BoxPlotC1MonoField || e === S.BoxPlotC2MultiFields || e === S.BoxPlotC5MonoFieldAndSplitBy || e === S.BoxPlotC6MultiFieldsAndSplitBy;
|
|
1495
1495
|
}
|
|
1496
|
-
function
|
|
1496
|
+
function je(t) {
|
|
1497
1497
|
return de(t) ? t?.showMean ?? !1 : !1;
|
|
1498
1498
|
}
|
|
1499
1499
|
function ds(t) {
|
|
@@ -1515,7 +1515,7 @@ const gd = [
|
|
|
1515
1515
|
h.PieSeries,
|
|
1516
1516
|
h.HistogramSeries,
|
|
1517
1517
|
h.ScatterSeries
|
|
1518
|
-
], yd = { PNG: "png" },
|
|
1518
|
+
], yd = { PNG: "png" }, at = {
|
|
1519
1519
|
ChartRenderer: 1,
|
|
1520
1520
|
LayerRenderer: 2
|
|
1521
1521
|
}, qr = [
|
|
@@ -1528,7 +1528,7 @@ const gd = [
|
|
|
1528
1528
|
S.BoxPlotC7MonoFieldAndCategoryAndSplitBy,
|
|
1529
1529
|
S.BarAndLineNoAggregation,
|
|
1530
1530
|
S.BarAndLineSplitByNoAggregation
|
|
1531
|
-
], Qi = 1e4,
|
|
1531
|
+
], Qi = 1e4, Tt = 1e4;
|
|
1532
1532
|
function fs(t = ee.None, e) {
|
|
1533
1533
|
return t === ee.None || t === ee.Log && e > 0 || t === ee.Sqrt && e >= 0;
|
|
1534
1534
|
}
|
|
@@ -1597,7 +1597,7 @@ async function ys(t) {
|
|
|
1597
1597
|
outStatisticFieldName: g
|
|
1598
1598
|
}
|
|
1599
1599
|
]
|
|
1600
|
-
}, p = await
|
|
1600
|
+
}, p = await vt({
|
|
1601
1601
|
queryObject: e,
|
|
1602
1602
|
queryConfig: y,
|
|
1603
1603
|
errorStrings: a,
|
|
@@ -1681,7 +1681,7 @@ function bs(t, e) {
|
|
|
1681
1681
|
}
|
|
1682
1682
|
function xs(t) {
|
|
1683
1683
|
const { view: e, queryConfig: i, layer: r, ignoreViewExtent: a } = t;
|
|
1684
|
-
let n, s =
|
|
1684
|
+
let n, s = Ze(i?.geometry)?.extent;
|
|
1685
1685
|
if (!a && e?.extent !== void 0 && (s = e?.extent), s !== void 0 && (n = new Ri({ geometry: s }), e?.extent !== void 0 && Nr(r))) {
|
|
1686
1686
|
const { distance: o, units: l } = i;
|
|
1687
1687
|
o !== void 0 && (n.distance = o), l !== void 0 && (n.units = l);
|
|
@@ -1708,7 +1708,7 @@ async function Cs(t) {
|
|
|
1708
1708
|
const m = W(r);
|
|
1709
1709
|
if (!Wa(m))
|
|
1710
1710
|
return { valid: !1 };
|
|
1711
|
-
const g =
|
|
1711
|
+
const g = Ze(i?.geometry)?.extent?.toJSON() !== void 0, y = xs({ view: s, queryConfig: i, layer: m, ignoreViewExtent: o }), p = Ss({
|
|
1712
1712
|
seriesConfig: u,
|
|
1713
1713
|
layer: m,
|
|
1714
1714
|
view: s,
|
|
@@ -1762,7 +1762,7 @@ async function Cs(t) {
|
|
|
1762
1762
|
isLastBin: O === M.bins.length - 1
|
|
1763
1763
|
// adding a flag on the last bin - useful for the selection feature
|
|
1764
1764
|
};
|
|
1765
|
-
return "aggregateIds" in E && (Array.isArray(E.aggregateIds) && E.aggregateIds.length !==
|
|
1765
|
+
return "aggregateIds" in E && (Array.isArray(E.aggregateIds) && E.aggregateIds.length !== Tt && (E.arcgisChartsUniqueIds = E.aggregateIds), delete E.aggregateIds), E;
|
|
1766
1766
|
}), I = bs(n, a);
|
|
1767
1767
|
f.data = {
|
|
1768
1768
|
mean: x,
|
|
@@ -1834,7 +1834,7 @@ const _i = {
|
|
|
1834
1834
|
Count: "count",
|
|
1835
1835
|
Start: "minValue",
|
|
1836
1836
|
End: "maxValue"
|
|
1837
|
-
},
|
|
1837
|
+
}, Xe = {
|
|
1838
1838
|
groupByCaseBegin: "CASE",
|
|
1839
1839
|
groupByOutKeyword: "OUT",
|
|
1840
1840
|
groupByCaseEnd: "ELSE 'OUT' END"
|
|
@@ -2082,28 +2082,30 @@ function zi(t, e) {
|
|
|
2082
2082
|
} : i = { groupKey: t, display: t, original: t }, i;
|
|
2083
2083
|
}
|
|
2084
2084
|
async function Ps(t) {
|
|
2085
|
-
const { layer: e, geometry: i, filterByViewExtent: r, view: a, abortKey: n, abortSignal: s } = t, o = s ?? (n !== void 0 ?
|
|
2085
|
+
const { layer: e, geometry: i, filterByViewExtent: r, view: a, abortKey: n, abortSignal: s } = t, o = s ?? (n !== void 0 ? Ge.get(n)?.signal : void 0);
|
|
2086
2086
|
e.loaded || await e.load({ signal: o });
|
|
2087
|
-
const l = await ft(e, s), c =
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2087
|
+
const l = await ft(e, s), c = Ze(i), u = a ? new Sr({
|
|
2088
|
+
x: a.resolution,
|
|
2089
|
+
y: a.resolution,
|
|
2090
|
+
spatialReference: a.spatialReference
|
|
2091
|
+
}) : void 0;
|
|
2092
|
+
let d = l?.attributeTable, f = c;
|
|
2093
|
+
if (!r && !f && Ue(e) && Ct(e))
|
|
2094
|
+
try {
|
|
2095
|
+
const { extent: m } = await e.queryExtent(e.createQuery(), { signal: o });
|
|
2096
|
+
f = m ?? void 0;
|
|
2097
|
+
} catch {
|
|
2098
|
+
}
|
|
2099
|
+
return (r || f) && (d = await Ja(
|
|
2100
|
+
e,
|
|
2101
|
+
{
|
|
2102
|
+
geometry: f ?? e.fullExtent,
|
|
2103
|
+
pixelSize: u,
|
|
2104
|
+
downsampleOnly: !0
|
|
2105
|
+
},
|
|
2106
|
+
{ signal: o }
|
|
2107
|
+
)), {
|
|
2108
|
+
attributeTable: d,
|
|
2107
2109
|
hasColormap: l?.colormap != null
|
|
2108
2110
|
};
|
|
2109
2111
|
}
|
|
@@ -2247,7 +2249,7 @@ function Ds(t, e) {
|
|
|
2247
2249
|
function Os(t) {
|
|
2248
2250
|
const { chartConfig: e, layer: i, selectionItems: r } = t;
|
|
2249
2251
|
let a;
|
|
2250
|
-
const n = i.serviceRasterInfo?.attributeTable ??
|
|
2252
|
+
const n = i.serviceRasterInfo?.attributeTable ?? Ye(i)?.attributeTable, s = e.series?.[0]?.x, o = n?.features, l = n?.fields?.find(({ name: c }) => c.toLowerCase() === "value")?.name;
|
|
2251
2253
|
if (r.length > 0 && s && o && o.length > 0 && l) {
|
|
2252
2254
|
const c = new Set(
|
|
2253
2255
|
r.map((u) => u[s]).filter((u) => u !== void 0)
|
|
@@ -2370,7 +2372,7 @@ function $s(t) {
|
|
|
2370
2372
|
return t.showMean === !0 && (e.series = [e.series[0]], e.series[0].query?.where !== void 0 && delete e.series[0].query.where), e;
|
|
2371
2373
|
}
|
|
2372
2374
|
function ks(t) {
|
|
2373
|
-
return
|
|
2375
|
+
return We(t) && Et(t?.axes?.[0]?.valueFormat) && Et(t?.axes?.[1]?.valueFormat);
|
|
2374
2376
|
}
|
|
2375
2377
|
const Qs = [
|
|
2376
2378
|
...Cr,
|
|
@@ -2387,7 +2389,7 @@ const Qs = [
|
|
|
2387
2389
|
"it-IT"
|
|
2388
2390
|
];
|
|
2389
2391
|
function _d(t) {
|
|
2390
|
-
const { t9nLocale: e } =
|
|
2392
|
+
const { t9nLocale: e } = ze(t ?? document.documentElement), i = _r(t ?? document.documentElement), r = pn(t ?? document.documentElement) === "rtl";
|
|
2391
2393
|
return { locale: e, formatLocale: i, rtl: r };
|
|
2392
2394
|
}
|
|
2393
2395
|
function Hd(t) {
|
|
@@ -2421,10 +2423,10 @@ function _s(t) {
|
|
|
2421
2423
|
return Qs.includes(t) && !e.includes(t);
|
|
2422
2424
|
}
|
|
2423
2425
|
function _r(t) {
|
|
2424
|
-
const { lang: e, t9nLocale: i } =
|
|
2426
|
+
const { lang: e, t9nLocale: i } = ze(t);
|
|
2425
2427
|
return _s(e) ? e : i;
|
|
2426
2428
|
}
|
|
2427
|
-
function
|
|
2429
|
+
function qt(t) {
|
|
2428
2430
|
const { dataInfo: e, chartType: i, subError: r } = t;
|
|
2429
2431
|
switch (e.valid = !1, i) {
|
|
2430
2432
|
case h.BarSeries:
|
|
@@ -2834,7 +2836,7 @@ function Gi(t) {
|
|
|
2834
2836
|
return l === "outliers" && o !== s ? d = `(${e}<${o} OR ${e}>${s})` : l === "alternativeData" && (o === s ? d = `(${e}=${o})` : d = `(${e}>=${o} AND ${e}<=${s})`), [c, u, d].filter((m) => m !== void 0).join(" AND ");
|
|
2835
2837
|
}
|
|
2836
2838
|
function Hr(t) {
|
|
2837
|
-
const { data: e, yField: i, x: r, chartSubType: a, splitByField: n } = t, s = a === S.BoxPlotC1MonoField || a === S.BoxPlotC3MonoFieldAndCategory || a === S.BoxPlotC5MonoFieldAndSplitBy || a === S.BoxPlotC7MonoFieldAndCategoryAndSplitBy ? void 0 : i, o =
|
|
2839
|
+
const { data: e, yField: i, x: r, chartSubType: a, splitByField: n } = t, s = a === S.BoxPlotC1MonoField || a === S.BoxPlotC3MonoFieldAndCategory || a === S.BoxPlotC5MonoFieldAndSplitBy || a === S.BoxPlotC7MonoFieldAndCategoryAndSplitBy ? void 0 : i, o = nt(s), l = [], c = [], { maxOperandsPerWhereClause: u } = Gt();
|
|
2838
2840
|
let d = [], f = [], m = 1;
|
|
2839
2841
|
return e.forEach((g, y) => {
|
|
2840
2842
|
const { outlierMinThreshold: p, outlierMaxThreshold: F } = Ys(g, o);
|
|
@@ -2862,14 +2864,14 @@ function Zs(t) {
|
|
|
2862
2864
|
if (l === void 0 && c === void 0)
|
|
2863
2865
|
switch (r) {
|
|
2864
2866
|
case S.BoxPlotC2MultiFields: {
|
|
2865
|
-
const u =
|
|
2867
|
+
const u = nt(n), d = e[0];
|
|
2866
2868
|
l = Number(d[u[q.Average]]), c = Number(d[u[q.StandardDeviation]]);
|
|
2867
2869
|
break;
|
|
2868
2870
|
}
|
|
2869
2871
|
case S.BoxPlotC4MultiFieldsAndCategory: {
|
|
2870
2872
|
const u = e.find((d) => d[a] === i[a]);
|
|
2871
2873
|
if (u !== void 0) {
|
|
2872
|
-
const d =
|
|
2874
|
+
const d = nt(n);
|
|
2873
2875
|
l = Number(u[d[q.Average]]), c = Number(u[d[q.StandardDeviation]]);
|
|
2874
2876
|
}
|
|
2875
2877
|
break;
|
|
@@ -2877,7 +2879,7 @@ function Zs(t) {
|
|
|
2877
2879
|
case S.BoxPlotC6MultiFieldsAndSplitBy: {
|
|
2878
2880
|
const u = e.find((d) => d[o] === i[o]);
|
|
2879
2881
|
if (u !== void 0) {
|
|
2880
|
-
const d =
|
|
2882
|
+
const d = nt(n);
|
|
2881
2883
|
l = Number(u[d[q.Average]]), c = Number(u[d[q.StandardDeviation]]);
|
|
2882
2884
|
}
|
|
2883
2885
|
break;
|
|
@@ -3241,11 +3243,11 @@ function ao(t) {
|
|
|
3241
3243
|
chartData: i.dataItems
|
|
3242
3244
|
});
|
|
3243
3245
|
}
|
|
3244
|
-
function
|
|
3246
|
+
function Rt(t) {
|
|
3245
3247
|
const { arrayToSort: e, chartConfig: i, fieldList: r, isTimeBinningSeries: a } = t;
|
|
3246
3248
|
if (a !== !0 && e[0] !== void 0) {
|
|
3247
3249
|
const { series: n } = i, s = z(n), o = Q(n), l = Be(i), c = _t(i);
|
|
3248
|
-
if (
|
|
3250
|
+
if (We(i) && e !== void 0)
|
|
3249
3251
|
ro({
|
|
3250
3252
|
arrayToSort: e,
|
|
3251
3253
|
chartConfig: i,
|
|
@@ -3282,7 +3284,7 @@ function qt(t) {
|
|
|
3282
3284
|
}
|
|
3283
3285
|
function jd(t) {
|
|
3284
3286
|
const { alteredConfig: e, dataInfo: i, fieldList: r, options: a, queryObject: n } = t, s = Ni(i.data);
|
|
3285
|
-
if (s &&
|
|
3287
|
+
if (s && Rt({
|
|
3286
3288
|
arrayToSort: s,
|
|
3287
3289
|
chartConfig: e,
|
|
3288
3290
|
fieldList: r,
|
|
@@ -3294,7 +3296,7 @@ function jd(t) {
|
|
|
3294
3296
|
})
|
|
3295
3297
|
}), de(e)) {
|
|
3296
3298
|
const o = i?.data && "meanLines" in i.data ? i.data.meanLines : void 0, l = i?.data && "outliers" in i.data ? i.data.outliers : void 0;
|
|
3297
|
-
if (o &&
|
|
3299
|
+
if (o && Rt({
|
|
3298
3300
|
arrayToSort: o,
|
|
3299
3301
|
chartConfig: e
|
|
3300
3302
|
}), l && s) {
|
|
@@ -3302,7 +3304,7 @@ function jd(t) {
|
|
|
3302
3304
|
l.sort((d, f) => u.indexOf(d[c]) - u.indexOf(f[c]));
|
|
3303
3305
|
}
|
|
3304
3306
|
}
|
|
3305
|
-
|
|
3307
|
+
We(e) && i.data && ao({ chartConfig: e, chartData: i.data });
|
|
3306
3308
|
}
|
|
3307
3309
|
function no(t) {
|
|
3308
3310
|
return t?.type === "uniqueValue" && (t.uniqueValueInfos = t.uniqueValueInfos.map((e) => {
|
|
@@ -3314,9 +3316,9 @@ async function Xd(t) {
|
|
|
3314
3316
|
const { data: e, queryObject: i, chartConfig: r, allowColorMatch: a } = t;
|
|
3315
3317
|
let n = !1, s = [];
|
|
3316
3318
|
if (a && !te(i)) {
|
|
3317
|
-
const { series: o, chartRenderer: l } = r, c = no(l), u = c ?
|
|
3319
|
+
const { series: o, chartRenderer: l } = r, c = no(l), u = c ? at.ChartRenderer : at.LayerRenderer, d = i ? W(i) : void 0, f = c ?? d?.renderer;
|
|
3318
3320
|
let m;
|
|
3319
|
-
d && u ===
|
|
3321
|
+
d && u === at.LayerRenderer ? s = await ha(d) : u === at.ChartRenderer && (s = Zl(f));
|
|
3320
3322
|
const g = _l(c, d?.renderer), y = Wl({
|
|
3321
3323
|
chartRenderer: l,
|
|
3322
3324
|
queryObject: i
|
|
@@ -3372,7 +3374,7 @@ function so(t) {
|
|
|
3372
3374
|
}), y.push(T), y;
|
|
3373
3375
|
}, f = (y, p) => JSON.stringify(y).localeCompare(JSON.stringify(p));
|
|
3374
3376
|
let m = o?.reduce(d, [])?.sort(f), g = l?.reduce(d, [])?.sort(f);
|
|
3375
|
-
m && g && a && m.length !== g.length && (m = bt({ data: m, x: a }), g = bt({ data: g, x: a })), c = m?.length !== g?.length || !
|
|
3377
|
+
m && g && a && m.length !== g.length && (m = bt({ data: m, x: a }), g = bt({ data: g, x: a })), c = m?.length !== g?.length || !st(m, g);
|
|
3376
3378
|
}
|
|
3377
3379
|
return c;
|
|
3378
3380
|
}
|
|
@@ -3392,7 +3394,7 @@ function oo(t) {
|
|
|
3392
3394
|
const l = ae(n[0].query?.where);
|
|
3393
3395
|
a = bt({ data: a, x: n[0].x, splitByField: l });
|
|
3394
3396
|
}
|
|
3395
|
-
|
|
3397
|
+
Rt({
|
|
3396
3398
|
arrayToSort: a,
|
|
3397
3399
|
chartConfig: e
|
|
3398
3400
|
});
|
|
@@ -3471,7 +3473,7 @@ async function uo(t) {
|
|
|
3471
3473
|
gaugeValue: T
|
|
3472
3474
|
}, l.count = p.length, Number.isNaN(T) && p.length > 0 && (l.valid = !1, l.invalidType = $.NoValue);
|
|
3473
3475
|
} else
|
|
3474
|
-
l.count = y,
|
|
3476
|
+
l.count = y, qt({
|
|
3475
3477
|
dataInfo: l,
|
|
3476
3478
|
chartType: h.GaugeSeries
|
|
3477
3479
|
});
|
|
@@ -3514,7 +3516,7 @@ async function fo(t) {
|
|
|
3514
3516
|
num: void 0
|
|
3515
3517
|
};
|
|
3516
3518
|
yt(e);
|
|
3517
|
-
const d = await
|
|
3519
|
+
const d = await vt({
|
|
3518
3520
|
queryObject: e,
|
|
3519
3521
|
queryConfig: u,
|
|
3520
3522
|
errorStrings: a
|
|
@@ -4022,7 +4024,7 @@ async function bo(t) {
|
|
|
4022
4024
|
break;
|
|
4023
4025
|
}
|
|
4024
4026
|
}
|
|
4025
|
-
return N && b.data !== void 0 &&
|
|
4027
|
+
return N && b.data !== void 0 && Rt({
|
|
4026
4028
|
arrayToSort: "dataItems" in b.data ? b.data.dataItems : b.data,
|
|
4027
4029
|
chartConfig: r
|
|
4028
4030
|
}), b;
|
|
@@ -4045,7 +4047,7 @@ async function Bi(t) {
|
|
|
4045
4047
|
view: g
|
|
4046
4048
|
} = t;
|
|
4047
4049
|
let y = { valid: !0 };
|
|
4048
|
-
const p =
|
|
4050
|
+
const p = je(i), F = await di({
|
|
4049
4051
|
queryObject: e,
|
|
4050
4052
|
queryConfig: r,
|
|
4051
4053
|
fetchFullBoxPlotData: !p,
|
|
@@ -4633,7 +4635,7 @@ async function Mo(t) {
|
|
|
4633
4635
|
]
|
|
4634
4636
|
};
|
|
4635
4637
|
delete u.groupByFieldsForStatistics, delete u.orderByFields;
|
|
4636
|
-
const d = await
|
|
4638
|
+
const d = await vt({
|
|
4637
4639
|
queryObject: e,
|
|
4638
4640
|
queryConfig: u,
|
|
4639
4641
|
errorStrings: n,
|
|
@@ -4641,7 +4643,7 @@ async function Mo(t) {
|
|
|
4641
4643
|
});
|
|
4642
4644
|
let f = d.get(o), m = d.get(l);
|
|
4643
4645
|
const g = d.get(c);
|
|
4644
|
-
return typeof f == "string" && (f = a === X.TimeOnly ?
|
|
4646
|
+
return typeof f == "string" && (f = a === X.TimeOnly ? Vt(f) ?? 0 : new Date(f).valueOf()), typeof m == "string" && (m = a === X.TimeOnly ? Vt(m) ?? 0 : new Date(m).valueOf()), { dateRange: { dateMinTimestamp: f, dateMaxTimestamp: m }, numberOfFeatures: g };
|
|
4645
4647
|
}
|
|
4646
4648
|
function Io(t) {
|
|
4647
4649
|
const {
|
|
@@ -4693,7 +4695,7 @@ function Do(t) {
|
|
|
4693
4695
|
}
|
|
4694
4696
|
function Oo(t) {
|
|
4695
4697
|
const { groupByFieldsForStatistics: e, dateField: i, queryStartDate: r, queryEndDate: a, y: n, binIndex: s, lastBin: o } = t;
|
|
4696
|
-
let l = e === "" ?
|
|
4698
|
+
let l = e === "" ? Xe.groupByCaseBegin : e;
|
|
4697
4699
|
return l = be(vo, {
|
|
4698
4700
|
groupByFieldsForStatistics: l,
|
|
4699
4701
|
dateField: i,
|
|
@@ -4716,7 +4718,7 @@ function* Eo(t) {
|
|
|
4716
4718
|
statisticParameters: { value: 0.5 }
|
|
4717
4719
|
}
|
|
4718
4720
|
];
|
|
4719
|
-
let g =
|
|
4721
|
+
let g = Xe.groupByCaseBegin;
|
|
4720
4722
|
for (let p = 0; p < a.length; p += 1) {
|
|
4721
4723
|
const F = a[p], [x, T] = F[C.dateBinningRange], B = ut(x), b = ut(T);
|
|
4722
4724
|
g = Oo({
|
|
@@ -4729,7 +4731,7 @@ function* Eo(t) {
|
|
|
4729
4731
|
lastBin: p === a.length - 1
|
|
4730
4732
|
});
|
|
4731
4733
|
}
|
|
4732
|
-
g = `${g} ${
|
|
4734
|
+
g = `${g} ${Xe.groupByCaseEnd}`;
|
|
4733
4735
|
const y = {
|
|
4734
4736
|
...r,
|
|
4735
4737
|
groupByFieldsForStatistics: [g],
|
|
@@ -4794,7 +4796,7 @@ function Ji(t) {
|
|
|
4794
4796
|
function Ki(t, e) {
|
|
4795
4797
|
let i = t;
|
|
4796
4798
|
if (e === X.TimeOnly && typeof t == "string")
|
|
4797
|
-
i =
|
|
4799
|
+
i = Vt(t);
|
|
4798
4800
|
else if (e === X.DateOnly && (typeof t == "string" && t.length === 10 || typeof t == "number"))
|
|
4799
4801
|
if (typeof t == "string") {
|
|
4800
4802
|
const r = t.split("-");
|
|
@@ -4818,7 +4820,7 @@ function Ro(t) {
|
|
|
4818
4820
|
const P = N, M = A;
|
|
4819
4821
|
if (N = Ki(N, d), A = Ki(A, d), typeof N == "number" && typeof A == "number") {
|
|
4820
4822
|
const w = { ...B };
|
|
4821
|
-
w[C.originalServerBinningRange] = [P, M], w[n] = N, w[C.xAxisField] = N, w[C.dateBinningRange] = [N, A], v && v.length !==
|
|
4823
|
+
w[C.originalServerBinningRange] = [P, M], w[n] = N, w[C.xAxisField] = N, w[C.dateBinningRange] = [N, A], v && v.length !== Tt && (w[k.uniqueIds] = v), delete w[c.lowerBoundaryAlias], delete w[c.upperBoundaryAlias], b && a && !ne(a) && r ? b.forEach((O) => {
|
|
4822
4824
|
const E = O[a];
|
|
4823
4825
|
if (E === null || typeof E == "string" || typeof E == "number") {
|
|
4824
4826
|
const H = r?.get(E);
|
|
@@ -4941,7 +4943,7 @@ function _o(t) {
|
|
|
4941
4943
|
Number(e[5] ?? 0)
|
|
4942
4944
|
).valueOf();
|
|
4943
4945
|
}
|
|
4944
|
-
function
|
|
4946
|
+
function Vt(t) {
|
|
4945
4947
|
let e;
|
|
4946
4948
|
const [i, r, a] = t.split(":");
|
|
4947
4949
|
return Number.isFinite(Number(i)) && Number.isFinite(Number(r)) && Number.isFinite(Number(a)) && (e = new Date(2e3, 0, 1, Number(i), Number(r), Number(a)).valueOf()), e;
|
|
@@ -4983,14 +4985,14 @@ function Uo(t, e) {
|
|
|
4983
4985
|
if (de(t)) {
|
|
4984
4986
|
const i = ue(t.series), r = i.length === 1;
|
|
4985
4987
|
i.forEach((a) => {
|
|
4986
|
-
const n =
|
|
4988
|
+
const n = nt(r ? void 0 : a), s = e[n[q.FirstQuartile]], o = e[n[q.ThirdQuartile]];
|
|
4987
4989
|
Number.isFinite(s) && Number.isFinite(o) && o >= s && (e[n[q.IQR]] = o - s);
|
|
4988
4990
|
});
|
|
4989
4991
|
}
|
|
4990
4992
|
}
|
|
4991
4993
|
function zo(t) {
|
|
4992
4994
|
const { x: e, attributes: i, fieldList: r } = t;
|
|
4993
|
-
typeof i[e] == "string" && r?.find((a) => a.name === e)?.type === X.TimeOnly && (i[e] =
|
|
4995
|
+
typeof i[e] == "string" && r?.find((a) => a.name === e)?.type === X.TimeOnly && (i[e] = Vt(i[e]));
|
|
4994
4996
|
}
|
|
4995
4997
|
function Go(t) {
|
|
4996
4998
|
const { chartType: e, x: i, attributes: r } = t;
|
|
@@ -5119,7 +5121,7 @@ function sl(t) {
|
|
|
5119
5121
|
let u, d;
|
|
5120
5122
|
if (o !== S.PieFromFields) {
|
|
5121
5123
|
const f = e[i], m = typeof r == "string" ? r : r?.[0], g = typeof m == "string" ? e[m] : void 0;
|
|
5122
|
-
a && (typeof f == "string" || typeof f == "number") && (u = pi(f, a)), n && s === h.HeatSeries && (typeof g == "string" || typeof g == "number") && (d = pi(g, n)), u !== void 0 && u !== f && (typeof u != "string" || !
|
|
5124
|
+
a && (typeof f == "string" || typeof f == "number") && (u = pi(f, a)), n && s === h.HeatSeries && (typeof g == "string" || typeof g == "number") && (d = pi(g, n)), u !== void 0 && u !== f && (typeof u != "string" || !Ot(l)) && (e[C.originalXValue] = f, e[i] = u, e[C.xAxisDisplayField] = u), typeof r == "string" && !Ot(c) && d !== void 0 && d !== g && (e[C.originalYCategoryValue] = e[r], e[r] = d);
|
|
5123
5125
|
}
|
|
5124
5126
|
}
|
|
5125
5127
|
function ol(t) {
|
|
@@ -5131,7 +5133,7 @@ function ol(t) {
|
|
|
5131
5133
|
const l = a.getObjectId();
|
|
5132
5134
|
l != null && (o = [l]);
|
|
5133
5135
|
}
|
|
5134
|
-
if (Array.isArray(o) && o.length !==
|
|
5136
|
+
if (Array.isArray(o) && o.length !== Tt) {
|
|
5135
5137
|
const l = ea(e, n), c = l ? s?.get(l) : void 0, u = c ? `${k.uniqueIds}_${c}` : k.uniqueIds;
|
|
5136
5138
|
e[u] = o;
|
|
5137
5139
|
}
|
|
@@ -5163,7 +5165,7 @@ function ta(t) {
|
|
|
5163
5165
|
resultLimit: o,
|
|
5164
5166
|
chartLimits: l,
|
|
5165
5167
|
fieldList: c
|
|
5166
|
-
} = t, { series: u } = r, d = z(u), f = Q(u), { x: m } = u[0], g = "y" in u[0] ? u[0].y : void 0, y = u[0].query?.outStatistics ?? [], p =
|
|
5168
|
+
} = t, { series: u } = r, d = z(u), f = Q(u), { x: m } = u[0], g = "y" in u[0] ? u[0].y : void 0, y = u[0].query?.outStatistics ?? [], p = Et(r?.axes?.[0]?.valueFormat), F = yi(e, m), x = typeof g == "string" ? yi(e, g) : void 0, B = Bu(c ?? []).includes(m), b = je(r), v = [];
|
|
5167
5169
|
let N = 0;
|
|
5168
5170
|
const A = /* @__PURE__ */ new Set(), {
|
|
5169
5171
|
maxCategoryCount: P,
|
|
@@ -5308,7 +5310,7 @@ async function di(t) {
|
|
|
5308
5310
|
popupTemplateFieldInfosEnabled: g,
|
|
5309
5311
|
hideZeroCountCategories: y
|
|
5310
5312
|
} = t;
|
|
5311
|
-
|
|
5313
|
+
je(e);
|
|
5312
5314
|
const p = t.replaceNoValueCategoryWithZero ?? C.options.replaceNoValueCategoryWithZero, F = !(y ?? !p), { behaviorAfterLimit: x } = m ?? {};
|
|
5313
5315
|
let T;
|
|
5314
5316
|
const B = { valid: !0 };
|
|
@@ -5380,7 +5382,7 @@ async function di(t) {
|
|
|
5380
5382
|
chartLimits: m
|
|
5381
5383
|
})), U) {
|
|
5382
5384
|
if (M === h.PieSeries) {
|
|
5383
|
-
P === S.PieFromFields && (b =
|
|
5385
|
+
P === S.PieFromFields && (b = $t({
|
|
5384
5386
|
dataToConvert: b[0],
|
|
5385
5387
|
x: me,
|
|
5386
5388
|
y: Ne,
|
|
@@ -5388,7 +5390,7 @@ async function di(t) {
|
|
|
5388
5390
|
}));
|
|
5389
5391
|
let R = "";
|
|
5390
5392
|
P === S.PieFromFields ? R = Ne : "y" in A && typeof A.y == "string" && (R = A.y), iu(b, R) ? B.data = { dataItems: b } : Hs(B, $.PieChartMixOfNegativePositiveSlices);
|
|
5391
|
-
} else if ((M === h.RadarSeries || M === h.BarSeries || M === h.LineSeries || M === h.ComboLineAndBarSeries) && (P === S.BarAndLineFromFields && "y" in A && typeof A.y == "string" ? b =
|
|
5393
|
+
} else if ((M === h.RadarSeries || M === h.BarSeries || M === h.LineSeries || M === h.ComboLineAndBarSeries) && (P === S.BarAndLineFromFields && "y" in A && typeof A.y == "string" ? b = $t({
|
|
5392
5394
|
dataToConvert: b[0],
|
|
5393
5395
|
x: A.x,
|
|
5394
5396
|
y: A.y,
|
|
@@ -5419,7 +5421,7 @@ async function di(t) {
|
|
|
5419
5421
|
}
|
|
5420
5422
|
}
|
|
5421
5423
|
}
|
|
5422
|
-
U ||
|
|
5424
|
+
U || qt({
|
|
5423
5425
|
dataInfo: B,
|
|
5424
5426
|
chartType: M,
|
|
5425
5427
|
subError: { outlierLimit: v }
|
|
@@ -5509,7 +5511,7 @@ async function ra(t) {
|
|
|
5509
5511
|
abortSignal: g
|
|
5510
5512
|
} = t, y = { valid: !0 };
|
|
5511
5513
|
let p;
|
|
5512
|
-
if (
|
|
5514
|
+
if (We(e)) {
|
|
5513
5515
|
const { nullPolicy: F } = e, x = e.series[0], { x: T, y: B, query: b, xTemporalBinning: v, yTemporalBinning: N } = x, A = b?.outStatistics?.[0]?.outStatisticFieldName ?? "", P = b?.outStatistics?.[0]?.statisticType ?? D.Count, M = dl(e), w = G.valueField, I = F === Se.Zero ? 0 : null;
|
|
5514
5516
|
if (ks(e)) {
|
|
5515
5517
|
const L = n ? await ti({
|
|
@@ -5533,7 +5535,7 @@ async function ra(t) {
|
|
|
5533
5535
|
chartType: h.HeatSeries,
|
|
5534
5536
|
chartLimits: c
|
|
5535
5537
|
}))
|
|
5536
|
-
|
|
5538
|
+
qt({ dataInfo: y, chartType: h.HeatSeries });
|
|
5537
5539
|
else {
|
|
5538
5540
|
const H = await Pn({
|
|
5539
5541
|
chartConfig: e,
|
|
@@ -5597,7 +5599,7 @@ async function ra(t) {
|
|
|
5597
5599
|
[G.yField]: V,
|
|
5598
5600
|
[w]: J[A]
|
|
5599
5601
|
};
|
|
5600
|
-
Array.isArray(J.aggregateIds) && J.aggregateIds.length !==
|
|
5602
|
+
Array.isArray(J.aggregateIds) && J.aggregateIds.length !== Tt && (K[k.uniqueIds] = J.aggregateIds), U.push(K);
|
|
5601
5603
|
}), a && O && j.length !== O?.length) {
|
|
5602
5604
|
const J = O.filter((V) => !j.includes(V.toString()));
|
|
5603
5605
|
M && (J.length !== O.length || j.length === 0) || J.forEach((V) => {
|
|
@@ -5624,7 +5626,7 @@ async function ra(t) {
|
|
|
5624
5626
|
seriesCount: 1,
|
|
5625
5627
|
chartType: h.HeatSeries,
|
|
5626
5628
|
chartLimits: c
|
|
5627
|
-
}) ||
|
|
5629
|
+
}) || qt({ dataInfo: y, chartType: h.HeatSeries });
|
|
5628
5630
|
}
|
|
5629
5631
|
p && (y.data = {
|
|
5630
5632
|
dataItems: p,
|
|
@@ -5741,8 +5743,8 @@ async function Ti(t) {
|
|
|
5741
5743
|
chartType: J,
|
|
5742
5744
|
chartLimits: d
|
|
5743
5745
|
})) {
|
|
5744
|
-
const
|
|
5745
|
-
(Le) =>
|
|
5746
|
+
const Nt = ue(p), gt = b.filter(
|
|
5747
|
+
(Le) => Nt.some((Te) => Te in Le && Number.isFinite(Le[Te]))
|
|
5746
5748
|
).length;
|
|
5747
5749
|
Pe({
|
|
5748
5750
|
count: gt,
|
|
@@ -5806,7 +5808,7 @@ async function yl(t) {
|
|
|
5806
5808
|
chartLimits: l,
|
|
5807
5809
|
popupTemplateFieldInfosEnabled: c,
|
|
5808
5810
|
errorStrings: u
|
|
5809
|
-
} = t, d =
|
|
5811
|
+
} = t, d = je(e), f = { valid: !0 }, m = e.series, g = De({
|
|
5810
5812
|
seriesConfig: m[0],
|
|
5811
5813
|
xAxisValueFormatType: Be(e),
|
|
5812
5814
|
setTimeBinningInfoWhenNotProvided: n,
|
|
@@ -5892,7 +5894,7 @@ async function Sl(t) {
|
|
|
5892
5894
|
returnDistinctValues: !0
|
|
5893
5895
|
// this parameters guarantees the 2 count stats bring back distinct values. It has no impact on the other stats.
|
|
5894
5896
|
};
|
|
5895
|
-
return await
|
|
5897
|
+
return await vt({
|
|
5896
5898
|
queryObject: i,
|
|
5897
5899
|
queryConfig: f,
|
|
5898
5900
|
errorStrings: a,
|
|
@@ -5928,7 +5930,7 @@ async function Fl(t) {
|
|
|
5928
5930
|
}
|
|
5929
5931
|
function bl(t) {
|
|
5930
5932
|
const { groupByFieldsForStatistics: e, x: i, y: r, xValue: a, yValue: n, xStep: s, yStep: o, endOfRow: l, endOfColumn: c } = t;
|
|
5931
|
-
let u = e === "" ?
|
|
5933
|
+
let u = e === "" ? Xe.groupByCaseBegin : e;
|
|
5932
5934
|
return u = be(hl, {
|
|
5933
5935
|
groupByFieldsForStatistics: u,
|
|
5934
5936
|
x: i,
|
|
@@ -5985,13 +5987,13 @@ async function Cl(t) {
|
|
|
5985
5987
|
if (B != null && N !== void 0 && N !== null && b !== void 0 && b !== null && A !== void 0 && A !== null && !Number.isNaN(B + b + N + A)) {
|
|
5986
5988
|
const P = W(r), { idField: M, isTraditionalTypeOID: w } = we(P), I = w ? M : "*", L = e?.get(C.scatterplotAggregationFields.xStep), O = e?.get(C.scatterplotAggregationFields.yStep), E = e?.get(C.scatterplotAggregationFields.realGridSize), H = e?.get(C.scatterplotAggregationFields.rowCount), U = e?.get(C.scatterplotAggregationFields.columnCount), R = /* @__PURE__ */ new Map(), Z = ve(r);
|
|
5987
5989
|
if (Z?.forEach((V) => {
|
|
5988
|
-
|
|
5990
|
+
Bt(V) && R.set(V.name, {
|
|
5989
5991
|
onStatisticField: V.name,
|
|
5990
5992
|
outStatisticFieldName: V.name,
|
|
5991
5993
|
statisticType: D.Maximum
|
|
5992
5994
|
});
|
|
5993
5995
|
}), (Z.filter((V) => u?.additionalTooltipFields?.includes(V.name)) ?? [])?.forEach((V) => {
|
|
5994
|
-
|
|
5996
|
+
Bt(V) || R.set(V.name, {
|
|
5995
5997
|
onStatisticField: V.name,
|
|
5996
5998
|
outStatisticFieldName: V.name,
|
|
5997
5999
|
statisticType: D.Maximum
|
|
@@ -6035,47 +6037,47 @@ async function Cl(t) {
|
|
|
6035
6037
|
});
|
|
6036
6038
|
} else if (H !== void 0 && U !== void 0) {
|
|
6037
6039
|
let V = 0;
|
|
6038
|
-
const { maxScatterCellsPerQuery: K, maxScatterCellsPerQueryForStandard: se } = Gt(), mt = await vu(P, c) ? se : K,
|
|
6039
|
-
let gt = !0, Le = B, Te = N,
|
|
6040
|
+
const { maxScatterCellsPerQuery: K, maxScatterCellsPerQueryForStandard: se } = Gt(), mt = await vu(P, c) ? se : K, Nt = [];
|
|
6041
|
+
let gt = !0, Le = B, Te = N, et = "", At = 1, Jt = 1, wt = Number.MAX_SAFE_INTEGER, Lt = Number.MIN_SAFE_INTEGER, Pt = Number.MAX_SAFE_INTEGER, Mt = Number.MIN_SAFE_INTEGER;
|
|
6040
6042
|
for (; Jt <= U && gt; ) {
|
|
6041
|
-
for (Te = N,
|
|
6042
|
-
if (
|
|
6043
|
-
groupByFieldsForStatistics:
|
|
6043
|
+
for (Te = N, At = 1; At <= H && gt; ) {
|
|
6044
|
+
if (et = bl({
|
|
6045
|
+
groupByFieldsForStatistics: et,
|
|
6044
6046
|
x: d,
|
|
6045
6047
|
y: f,
|
|
6046
6048
|
xValue: Le,
|
|
6047
6049
|
yValue: Te,
|
|
6048
6050
|
xStep: L,
|
|
6049
6051
|
yStep: O,
|
|
6050
|
-
endOfRow:
|
|
6052
|
+
endOfRow: At === H,
|
|
6051
6053
|
endOfColumn: Jt === U
|
|
6052
|
-
}), Le <
|
|
6053
|
-
|
|
6054
|
+
}), Le < wt && (wt = Le), Le + L > Lt && (Lt = Le + L), Te < Pt && (Pt = Te), Te + L > Mt && (Mt = Te + O), V += 1, V % mt === 0 || V === E || V === v) {
|
|
6055
|
+
et = `${et} ${Xe.groupByCaseEnd}`;
|
|
6054
6056
|
const Oa = {
|
|
6055
6057
|
...a,
|
|
6056
|
-
groupByFieldsForStatistics: [
|
|
6058
|
+
groupByFieldsForStatistics: [et],
|
|
6057
6059
|
outStatistics: [...R.values()]
|
|
6058
6060
|
};
|
|
6059
|
-
|
|
6061
|
+
Nt.push(
|
|
6060
6062
|
xl({
|
|
6061
6063
|
chartConfig: i,
|
|
6062
6064
|
queryConfig: Oa,
|
|
6063
6065
|
queryObject: r,
|
|
6064
|
-
xMin:
|
|
6065
|
-
xMax:
|
|
6066
|
-
yMin:
|
|
6067
|
-
yMax:
|
|
6066
|
+
xMin: wt,
|
|
6067
|
+
xMax: Lt,
|
|
6068
|
+
yMin: Pt,
|
|
6069
|
+
yMax: Mt,
|
|
6068
6070
|
errorStrings: o,
|
|
6069
6071
|
abortKey: l,
|
|
6070
6072
|
abortSignal: c
|
|
6071
6073
|
})
|
|
6072
|
-
),
|
|
6074
|
+
), wt = Number.MAX_SAFE_INTEGER, Lt = Number.MIN_SAFE_INTEGER, Pt = Number.MAX_SAFE_INTEGER, Mt = Number.MIN_SAFE_INTEGER, et = "", V === E && (gt = !1);
|
|
6073
6075
|
}
|
|
6074
|
-
Te += O,
|
|
6076
|
+
Te += O, At += 1;
|
|
6075
6077
|
}
|
|
6076
6078
|
Le += L, Jt += 1;
|
|
6077
6079
|
}
|
|
6078
|
-
T = (await Promise.all(
|
|
6080
|
+
T = (await Promise.all(Nt)).flat();
|
|
6079
6081
|
}
|
|
6080
6082
|
}
|
|
6081
6083
|
}
|
|
@@ -6120,7 +6122,7 @@ async function Bl(t) {
|
|
|
6120
6122
|
}
|
|
6121
6123
|
);
|
|
6122
6124
|
const B = { ...i };
|
|
6123
|
-
return B.outStatistics = T, u = await
|
|
6125
|
+
return B.outStatistics = T, u = await vt({
|
|
6124
6126
|
queryObject: r,
|
|
6125
6127
|
queryConfig: B,
|
|
6126
6128
|
errorStrings: a,
|
|
@@ -6128,12 +6130,12 @@ async function Bl(t) {
|
|
|
6128
6130
|
abortSignal: s
|
|
6129
6131
|
}), l === c && (u.set(m, u.get(d) ?? Number.NaN), u.set(g, u.get(f) ?? Number.NaN)), u;
|
|
6130
6132
|
}
|
|
6131
|
-
function
|
|
6133
|
+
function It(t) {
|
|
6132
6134
|
const { value: e, valueMin: i, valueMax: r } = t;
|
|
6133
6135
|
return e === i || e === r ? e : Math.random() * (r - i) + i;
|
|
6134
6136
|
}
|
|
6135
6137
|
function vl(t) {
|
|
6136
|
-
const { useQueryAttributeBins: e, graphic: i, x: r, y: a, yStep: n } = t, { groupByOutKeyword: s } =
|
|
6138
|
+
const { useQueryAttributeBins: e, graphic: i, x: r, y: a, yStep: n } = t, { groupByOutKeyword: s } = Xe, { dataContextXMinField: o, dataContextXMaxField: l, dataContextYMinField: c, dataContextYMaxField: u } = C.scatterplotAggregationFields;
|
|
6137
6139
|
let d = [];
|
|
6138
6140
|
if (e && "stackedAttributes" in i && i.stackedAttributes) {
|
|
6139
6141
|
const f = Ar(r, a), m = i.attributes[f.lowerBoundaryAlias], g = i.attributes[f.upperBoundaryAlias];
|
|
@@ -6144,14 +6146,14 @@ function vl(t) {
|
|
|
6144
6146
|
if (typeof p == "number" && typeof F == "number" && typeof x == "number" && typeof T == "number") {
|
|
6145
6147
|
const B = {
|
|
6146
6148
|
...y,
|
|
6147
|
-
[r]:
|
|
6148
|
-
[a]:
|
|
6149
|
+
[r]: It({ value: x, valueMin: m, valueMax: g }),
|
|
6150
|
+
[a]: It({ value: T, valueMin: p, valueMax: F }),
|
|
6149
6151
|
[o]: Math.min(m, g),
|
|
6150
6152
|
[l]: Math.max(m, g),
|
|
6151
6153
|
[c]: p,
|
|
6152
6154
|
[u]: F
|
|
6153
6155
|
};
|
|
6154
|
-
Array.isArray(y.aggregateIds) && y.aggregateIds.length !==
|
|
6156
|
+
Array.isArray(y.aggregateIds) && y.aggregateIds.length !== Tt && (B[k.uniqueIds] = y.aggregateIds), d.push(B);
|
|
6155
6157
|
}
|
|
6156
6158
|
});
|
|
6157
6159
|
} else {
|
|
@@ -6166,11 +6168,11 @@ function vl(t) {
|
|
|
6166
6168
|
[c]: p,
|
|
6167
6169
|
[u]: F
|
|
6168
6170
|
};
|
|
6169
|
-
x[r] =
|
|
6171
|
+
x[r] = It({
|
|
6170
6172
|
value: x[r],
|
|
6171
6173
|
valueMin: g,
|
|
6172
6174
|
valueMax: y
|
|
6173
|
-
}), x[a] =
|
|
6175
|
+
}), x[a] = It({
|
|
6174
6176
|
value: x[a],
|
|
6175
6177
|
valueMin: p,
|
|
6176
6178
|
valueMax: F
|
|
@@ -6193,13 +6195,13 @@ function Tl(t) {
|
|
|
6193
6195
|
});
|
|
6194
6196
|
return u = u?.filter((d) => {
|
|
6195
6197
|
const { expr: f } = Ht(d);
|
|
6196
|
-
return Number.isFinite(d[o]) && Number.isFinite(d[l]) && (f === void 0 || d[f] !==
|
|
6198
|
+
return Number.isFinite(d[o]) && Number.isFinite(d[l]) && (f === void 0 || d[f] !== Xe.groupByOutKeyword);
|
|
6197
6199
|
}), u ?? [];
|
|
6198
6200
|
}
|
|
6199
6201
|
async function Nl(t) {
|
|
6200
6202
|
const { queryObject: e, queryConfig: i, chartConfig: r, featureCount: a, errorStrings: n, abortKey: s, abortSignal: o } = t, l = r.series[0], { x: c, y: u } = l, d = W(e);
|
|
6201
6203
|
let f = [];
|
|
6202
|
-
const m = ve(e), g = Yt(d).idFields, y = (m?.filter((B) =>
|
|
6204
|
+
const m = ve(e), g = Yt(d).idFields, y = (m?.filter((B) => Bt(B) && B.name !== c && B.name !== u) ?? []).map(
|
|
6203
6205
|
(B) => B.name
|
|
6204
6206
|
) ?? [], p = l?.additionalTooltipFields ?? [], F = Array.from(
|
|
6205
6207
|
/* @__PURE__ */ new Set([c, u, ...g ?? [], ...y, ...p])
|
|
@@ -6366,7 +6368,7 @@ async function Kd(t) {
|
|
|
6366
6368
|
}
|
|
6367
6369
|
return s;
|
|
6368
6370
|
}
|
|
6369
|
-
function
|
|
6371
|
+
function nt(t) {
|
|
6370
6372
|
const e = t === void 0 || t === "";
|
|
6371
6373
|
return {
|
|
6372
6374
|
[q.Average]: `${e ? "" : `${t}_`}${q.Average}`,
|
|
@@ -6392,7 +6394,7 @@ function na(t) {
|
|
|
6392
6394
|
}
|
|
6393
6395
|
function re(t) {
|
|
6394
6396
|
const { key: e, y: i, chartSubType: r, splitBy: a, splitByValue: n, showOutliers: s, standardizeValues: o } = t;
|
|
6395
|
-
let l = n, u =
|
|
6397
|
+
let l = n, u = nt(i)[e];
|
|
6396
6398
|
return s === !0 && (e === q.Min || e === q.Max) && (u = `${u}${za}`), o === !0 && (na(r) || e === q.Outlier) && (u = `${u}${Ga}`), (n === void 0 || `${n}`.trim() === "") && (l = fe({ where: a, normalize: !0, escape: !1 })), l !== void 0 && `${l}`.trim() !== "" && (u = `${l}${u !== "" ? `_${u}` : ""}`), u;
|
|
6397
6399
|
}
|
|
6398
6400
|
function ii(t) {
|
|
@@ -6790,11 +6792,11 @@ function Vl(t) {
|
|
|
6790
6792
|
[f]: m[f]
|
|
6791
6793
|
}))
|
|
6792
6794
|
);
|
|
6793
|
-
} else c.valid && (a === S.PieFromFields ? n =
|
|
6795
|
+
} else c.valid && (a === S.PieFromFields ? n = $t({
|
|
6794
6796
|
dataToConvert: u[0],
|
|
6795
6797
|
x: me,
|
|
6796
6798
|
y: Ne
|
|
6797
|
-
}) : a === S.BarAndLineFromFields ? n =
|
|
6799
|
+
}) : a === S.BarAndLineFromFields ? n = $t({
|
|
6798
6800
|
dataToConvert: u[0],
|
|
6799
6801
|
x: i[0].x,
|
|
6800
6802
|
y: i[0].y
|
|
@@ -7115,7 +7117,7 @@ function la(t) {
|
|
|
7115
7117
|
delete i[e];
|
|
7116
7118
|
else {
|
|
7117
7119
|
const s = { ...r };
|
|
7118
|
-
s.color !== void 0 && a ===
|
|
7120
|
+
s.color !== void 0 && a === at.LayerRenderer && (s.color[3] = pr * 255), a === at.LayerRenderer && (delete s.style, delete s.outline, delete s.label), i[e] = s, n = !0;
|
|
7119
7121
|
}
|
|
7120
7122
|
return n;
|
|
7121
7123
|
}
|
|
@@ -7461,7 +7463,7 @@ function ut(t) {
|
|
|
7461
7463
|
let e = new Date(t).valueOf();
|
|
7462
7464
|
return Number.isNaN(e) || (e = new Intl.DateTimeFormat("en-US", C.dateFormatUTC).format(t).replace(",", "")), e;
|
|
7463
7465
|
}
|
|
7464
|
-
function
|
|
7466
|
+
function $t(t) {
|
|
7465
7467
|
const { dataToConvert: e, x: i, y: r, fieldList: a } = t, n = [];
|
|
7466
7468
|
if (e) {
|
|
7467
7469
|
const s = e[qe];
|
|
@@ -7490,7 +7492,7 @@ function iu(t, e) {
|
|
|
7490
7492
|
}
|
|
7491
7493
|
return i;
|
|
7492
7494
|
}
|
|
7493
|
-
function
|
|
7495
|
+
function rt(t) {
|
|
7494
7496
|
const { countTotal: e, countPerSeries: i, numberOfSeries: r } = t;
|
|
7495
7497
|
let a;
|
|
7496
7498
|
const n = [];
|
|
@@ -7526,33 +7528,33 @@ function ca(t, e) {
|
|
|
7526
7528
|
switch (w) {
|
|
7527
7529
|
case h.ComboLineAndBarSeries:
|
|
7528
7530
|
case h.BarSeries:
|
|
7529
|
-
I <= (r ?? N) && (I === 1 ? i = a ?? A : I === 2 ? i =
|
|
7531
|
+
I <= (r ?? N) && (I === 1 ? i = a ?? A : I === 2 ? i = rt({
|
|
7530
7532
|
countTotal: s ?? A,
|
|
7531
7533
|
countPerSeries: n,
|
|
7532
7534
|
numberOfSeries: I
|
|
7533
|
-
}) : I > 2 && (i =
|
|
7535
|
+
}) : I > 2 && (i = rt({
|
|
7534
7536
|
countTotal: l ?? A,
|
|
7535
7537
|
countPerSeries: o,
|
|
7536
7538
|
numberOfSeries: I
|
|
7537
7539
|
})));
|
|
7538
7540
|
break;
|
|
7539
7541
|
case h.LineSeries:
|
|
7540
|
-
I <= (c ?? N) && (I === 1 ? i = u ?? A : I === 2 ? i =
|
|
7542
|
+
I <= (c ?? N) && (I === 1 ? i = u ?? A : I === 2 ? i = rt({
|
|
7541
7543
|
countTotal: f ?? A,
|
|
7542
7544
|
countPerSeries: d,
|
|
7543
7545
|
numberOfSeries: I
|
|
7544
|
-
}) : I > 2 && (i =
|
|
7546
|
+
}) : I > 2 && (i = rt({
|
|
7545
7547
|
countTotal: g ?? A,
|
|
7546
7548
|
countPerSeries: m,
|
|
7547
7549
|
numberOfSeries: I
|
|
7548
7550
|
})));
|
|
7549
7551
|
break;
|
|
7550
7552
|
case h.RadarSeries:
|
|
7551
|
-
I <= (F ?? N) && (I === 1 ? i = x ?? A : I === 2 ? i =
|
|
7553
|
+
I <= (F ?? N) && (I === 1 ? i = x ?? A : I === 2 ? i = rt({
|
|
7552
7554
|
countTotal: B ?? A,
|
|
7553
7555
|
countPerSeries: T,
|
|
7554
7556
|
numberOfSeries: I
|
|
7555
|
-
}) : I > 2 && (i =
|
|
7557
|
+
}) : I > 2 && (i = rt({
|
|
7556
7558
|
countTotal: v ?? A,
|
|
7557
7559
|
countPerSeries: b,
|
|
7558
7560
|
numberOfSeries: I
|
|
@@ -7600,7 +7602,7 @@ const au = 50, nu = 4194304;
|
|
|
7600
7602
|
function su(t) {
|
|
7601
7603
|
const { layer: e, chartConfig: i, rawData: r } = t;
|
|
7602
7604
|
let a;
|
|
7603
|
-
const n = i.series[0], { x: s, y: o } = n, { idField: l } = we(e), c =
|
|
7605
|
+
const n = i.series[0], { x: s, y: o } = n, { idField: l } = we(e), c = Ye(e);
|
|
7604
7606
|
if (c) {
|
|
7605
7607
|
const u = c.bandInfos, d = u.length === 1, f = d ? u?.[0].name : "";
|
|
7606
7608
|
a = r.map((m) => ({
|
|
@@ -7615,14 +7617,14 @@ function su(t) {
|
|
|
7615
7617
|
return a ?? [];
|
|
7616
7618
|
}
|
|
7617
7619
|
async function ou(t) {
|
|
7618
|
-
const { queryObject: e, queryConfig: i, filterByViewExtent: r, abortKey: a, abortSignal: n } = t, s = n ?? (a !== void 0 ?
|
|
7620
|
+
const { queryObject: e, queryConfig: i, filterByViewExtent: r, abortKey: a, abortSignal: n } = t, s = n ?? (a !== void 0 ? Ge.get(a)?.signal : void 0);
|
|
7619
7621
|
if (!e || !te(e))
|
|
7620
7622
|
throw new oe(le.LayerNotSupported);
|
|
7621
7623
|
const o = W(e), l = await ft(o, s);
|
|
7622
7624
|
if (!l)
|
|
7623
7625
|
throw new Error("Raster info is not available for the layer.");
|
|
7624
7626
|
let c = l.extent;
|
|
7625
|
-
if (!r && !i.geometry &&
|
|
7627
|
+
if (!r && !i.geometry && Ue(o) && Ct(o))
|
|
7626
7628
|
try {
|
|
7627
7629
|
const d = o.createQuery(), { extent: f } = await o.queryExtent(d, { signal: s });
|
|
7628
7630
|
f && (c = f);
|
|
@@ -7686,7 +7688,7 @@ function cu(t) {
|
|
|
7686
7688
|
const { chartConfig: e, layer: i, selectionItems: r } = t;
|
|
7687
7689
|
let a;
|
|
7688
7690
|
if (r.length > 0) {
|
|
7689
|
-
const { x: n, y: s } = uu(e), o =
|
|
7691
|
+
const { x: n, y: s } = uu(e), o = kt(i, n), l = kt(i, s);
|
|
7690
7692
|
if (o !== void 0 && l !== void 0 && o !== l) {
|
|
7691
7693
|
let c = Number.MAX_SAFE_INTEGER, u = Number.MIN_SAFE_INTEGER, d = Number.MAX_SAFE_INTEGER, f = Number.MIN_SAFE_INTEGER;
|
|
7692
7694
|
r.forEach((m) => {
|
|
@@ -7754,7 +7756,7 @@ function da(t) {
|
|
|
7754
7756
|
if (!t.loaded)
|
|
7755
7757
|
throw new Error("Raster layer must be loaded to get its ID field name");
|
|
7756
7758
|
let e;
|
|
7757
|
-
const i =
|
|
7759
|
+
const i = Ye(t);
|
|
7758
7760
|
if (i?.attributeTable) {
|
|
7759
7761
|
const r = i.attributeTable.fields, a = r.find((n) => n.type === "oid")?.name;
|
|
7760
7762
|
a ? e = a : e = r.find((s) => s.name.toLowerCase() === "value")?.name;
|
|
@@ -7766,7 +7768,7 @@ function fa(t) {
|
|
|
7766
7768
|
const { layer: e, chartType: i, rasterInfo: r, popupTemplateFieldInfosEnabled: a } = t;
|
|
7767
7769
|
if (!e.loaded)
|
|
7768
7770
|
throw new Error("Raster layer must be loaded to get its fields info");
|
|
7769
|
-
const n = r ??
|
|
7771
|
+
const n = r ?? Ye(e);
|
|
7770
7772
|
if (!n)
|
|
7771
7773
|
throw new Error("Raster info must be provided or generated beforehand to get raster layer fields info");
|
|
7772
7774
|
let s = [];
|
|
@@ -7776,7 +7778,7 @@ function sr(t) {
|
|
|
7776
7778
|
const { layer: e, rasterInfo: i, popupTemplateFieldInfosEnabled: r } = t;
|
|
7777
7779
|
if (!e.loaded)
|
|
7778
7780
|
throw new Error("Raster layer must be loaded to get its fields info");
|
|
7779
|
-
const a = i ??
|
|
7781
|
+
const a = i ?? Ye(e);
|
|
7780
7782
|
if (!a)
|
|
7781
7783
|
throw new Error("Raster info must be provided or generated beforehand to get raster layer fields info");
|
|
7782
7784
|
let n;
|
|
@@ -7802,7 +7804,7 @@ function sr(t) {
|
|
|
7802
7804
|
return n;
|
|
7803
7805
|
}
|
|
7804
7806
|
async function ft(t, e) {
|
|
7805
|
-
return t.loaded || await t.load({ signal: e }), ja(t) ?
|
|
7807
|
+
return t.loaded || await t.load({ signal: e }), ja(t) ? Ye(t) ?? void 0 : await t.generateRasterInfo(t.rasterFunction, { signal: e });
|
|
7806
7808
|
}
|
|
7807
7809
|
async function ff(t, e) {
|
|
7808
7810
|
t.loaded || await t.load();
|
|
@@ -7851,11 +7853,11 @@ const ma = Qe(
|
|
|
7851
7853
|
},
|
|
7852
7854
|
(t) => JSON.stringify(t, Object.keys(t).sort())
|
|
7853
7855
|
// stringify with sorted keys
|
|
7854
|
-
),
|
|
7856
|
+
), kt = (t, e) => {
|
|
7855
7857
|
let i = -1;
|
|
7856
7858
|
if (!t.loaded)
|
|
7857
7859
|
throw new Error("Raster layer must be loaded to get its band ID by name");
|
|
7858
|
-
const r =
|
|
7860
|
+
const r = Ye(t)?.bandInfos;
|
|
7859
7861
|
if (r?.length === 1)
|
|
7860
7862
|
i = 0;
|
|
7861
7863
|
else if (e && r?.length) {
|
|
@@ -7894,7 +7896,7 @@ const ma = Qe(
|
|
|
7894
7896
|
}
|
|
7895
7897
|
return n;
|
|
7896
7898
|
};
|
|
7897
|
-
function
|
|
7899
|
+
function Ct(t) {
|
|
7898
7900
|
const { definitionExpression: e, mosaicRule: i } = t;
|
|
7899
7901
|
return !!(e || i?.objectIds?.length || i?.method === "lock-raster" && i?.lockRasterIds?.length || i?.where);
|
|
7900
7902
|
}
|
|
@@ -7904,7 +7906,7 @@ async function Fu(t) {
|
|
|
7904
7906
|
if (e !== void 0)
|
|
7905
7907
|
try {
|
|
7906
7908
|
const l = W(e), u = {
|
|
7907
|
-
geometry:
|
|
7909
|
+
geometry: Ze(i.geometry) ?? n ?? l.fullExtent,
|
|
7908
7910
|
autoResample: !0,
|
|
7909
7911
|
maxPixelCount: a,
|
|
7910
7912
|
skipFactor: r
|
|
@@ -7930,7 +7932,7 @@ function bu(t) {
|
|
|
7930
7932
|
spatialReference: a.spatialReference.toJSON()
|
|
7931
7933
|
};
|
|
7932
7934
|
} else if (!s && n.fullExtent)
|
|
7933
|
-
if (
|
|
7935
|
+
if (Ue(n) && Ct(n))
|
|
7934
7936
|
s = void 0;
|
|
7935
7937
|
else {
|
|
7936
7938
|
const { xmin: o, xmax: l, ymin: c, ymax: u, zmin: d, zmax: f } = n.fullExtent;
|
|
@@ -8052,7 +8054,7 @@ function we(t) {
|
|
|
8052
8054
|
}
|
|
8053
8055
|
return { idField: e, isTraditionalTypeOID: i };
|
|
8054
8056
|
}
|
|
8055
|
-
function
|
|
8057
|
+
function Bt(t) {
|
|
8056
8058
|
const e = [
|
|
8057
8059
|
X.Single,
|
|
8058
8060
|
X.Double,
|
|
@@ -8083,7 +8085,7 @@ function Bu(t) {
|
|
|
8083
8085
|
return t.filter((e) => Cu(e)).map((e) => e.name);
|
|
8084
8086
|
}
|
|
8085
8087
|
function bf(t) {
|
|
8086
|
-
return t.filter((e) =>
|
|
8088
|
+
return t.filter((e) => Bt(e)).map((e) => e.name);
|
|
8087
8089
|
}
|
|
8088
8090
|
function yi(t, e) {
|
|
8089
8091
|
let i;
|
|
@@ -8117,9 +8119,9 @@ async function vu(t, e) {
|
|
|
8117
8119
|
if (a && n && pe(t)?.sourceJSON?.serviceItemId !== void 0) {
|
|
8118
8120
|
const s = Sa(a);
|
|
8119
8121
|
try {
|
|
8120
|
-
const o = (await
|
|
8122
|
+
const o = (await Dt(s, { query: { f: "json" }, signal: e })).data;
|
|
8121
8123
|
if (o.owningTenant !== void 0 && o.owningSystemUrl !== void 0) {
|
|
8122
|
-
const l = `${o.owningSystemUrl}/sharing/rest/portals/${o.owningTenant}`, c = (await
|
|
8124
|
+
const l = `${o.owningSystemUrl}/sharing/rest/portals/${o.owningTenant}`, c = (await Dt(l, {
|
|
8123
8125
|
authMode: "auto",
|
|
8124
8126
|
query: { f: "json" },
|
|
8125
8127
|
signal: e
|
|
@@ -8233,7 +8235,7 @@ const Cf = {
|
|
|
8233
8235
|
getServerRestInfo: Sa
|
|
8234
8236
|
};
|
|
8235
8237
|
async function Pi(t, e) {
|
|
8236
|
-
await t?.load({ signal: e }), t && (
|
|
8238
|
+
await t?.load({ signal: e }), t && (Ue(t) || hr(t)) && await t.generateRasterInfo(t.rasterFunction, {
|
|
8237
8239
|
signal: e
|
|
8238
8240
|
});
|
|
8239
8241
|
}
|
|
@@ -8305,7 +8307,7 @@ function Eu(t) {
|
|
|
8305
8307
|
o === !0 && (!s || ne(l)) && e.outStatistics?.push({ statisticType: D.EnvelopeAggregate, onStatisticField: "1" });
|
|
8306
8308
|
}
|
|
8307
8309
|
function qu(t) {
|
|
8308
|
-
const { chartConfig: e, fetchFullBoxPlotData: i } = t, { series: r } = e, a =
|
|
8310
|
+
const { chartConfig: e, fetchFullBoxPlotData: i } = t, { series: r } = e, a = je(e);
|
|
8309
8311
|
let n = [
|
|
8310
8312
|
{ statisticType: D.Average, suffix: q.Average }
|
|
8311
8313
|
];
|
|
@@ -8466,7 +8468,7 @@ function Ii(t) {
|
|
|
8466
8468
|
const { gdbVersion: N, geometry: A, distance: P, units: M, timeExtent: w, where: I, objectIds: L, spatialRelationship: O } = i;
|
|
8467
8469
|
return N !== void 0 && (v.gdbVersion = N), A !== void 0 && (v.geometry = A), P !== void 0 && (v.distance = P), M !== void 0 && (v.units = M), w !== void 0 && (v.timeExtent = w), L !== void 0 && (v.objectIds = L), O !== void 0 && (v.spatialRelationship = O), I !== void 0 && (v.where = Y([v.where, I])), { uniqueQuery: v, mapToStatField: p };
|
|
8468
8470
|
}
|
|
8469
|
-
const
|
|
8471
|
+
const Je = {
|
|
8470
8472
|
LegendItemVisibilityChange: "arcgisChartsJSLegendItemVisibilityChange",
|
|
8471
8473
|
RenderingComplete: "arcgisChartsJSRenderingComplete",
|
|
8472
8474
|
SeriesColorsChange: "arcgisChartsJSSeriesColorChange",
|
|
@@ -8475,7 +8477,7 @@ const Ze = {
|
|
|
8475
8477
|
TooManySelectedElements: "arcgisChartsJSTooManySelectedElements",
|
|
8476
8478
|
SeriesOrder: "arcgisChartsJSSeriesOrder"
|
|
8477
8479
|
};
|
|
8478
|
-
function
|
|
8480
|
+
function Ke(t) {
|
|
8479
8481
|
return {
|
|
8480
8482
|
detail: t,
|
|
8481
8483
|
composed: !0,
|
|
@@ -8485,25 +8487,25 @@ function Je(t) {
|
|
|
8485
8487
|
}
|
|
8486
8488
|
function Bf(t, e) {
|
|
8487
8489
|
e && e.dispatchEvent(
|
|
8488
|
-
new window.CustomEvent(
|
|
8490
|
+
new window.CustomEvent(Je.LegendItemVisibilityChange, Ke(t))
|
|
8489
8491
|
);
|
|
8490
8492
|
}
|
|
8491
8493
|
function vf(t) {
|
|
8492
|
-
t && t.dispatchEvent(new window.CustomEvent(
|
|
8494
|
+
t && t.dispatchEvent(new window.CustomEvent(Je.RenderingComplete, Ke()));
|
|
8493
8495
|
}
|
|
8494
8496
|
function Tf(t) {
|
|
8495
8497
|
const { data: e, htmlContainer: i } = t;
|
|
8496
|
-
i && i.dispatchEvent(new window.CustomEvent(
|
|
8498
|
+
i && i.dispatchEvent(new window.CustomEvent(Je.SelectionComplete, Ke(e)));
|
|
8497
8499
|
}
|
|
8498
8500
|
function Nf(t) {
|
|
8499
|
-
t && t.dispatchEvent(new window.CustomEvent(
|
|
8501
|
+
t && t.dispatchEvent(new window.CustomEvent(Je.TooManySelectedElements, Ke()));
|
|
8500
8502
|
}
|
|
8501
8503
|
function Af(t) {
|
|
8502
8504
|
const { data: e, htmlContainer: i, chartId: r, colorMatchApplied: a } = t;
|
|
8503
8505
|
i && i.dispatchEvent(
|
|
8504
8506
|
new window.CustomEvent(
|
|
8505
|
-
|
|
8506
|
-
|
|
8507
|
+
Je.SeriesColorsChange,
|
|
8508
|
+
Ke({
|
|
8507
8509
|
chartId: r,
|
|
8508
8510
|
data: e,
|
|
8509
8511
|
colorMatchApplied: a
|
|
@@ -8512,11 +8514,11 @@ function Af(t) {
|
|
|
8512
8514
|
);
|
|
8513
8515
|
}
|
|
8514
8516
|
function wf(t, e) {
|
|
8515
|
-
e && e.dispatchEvent(new window.CustomEvent(
|
|
8517
|
+
e && e.dispatchEvent(new window.CustomEvent(Je.AxesMinMaxChange, Ke(t)));
|
|
8516
8518
|
}
|
|
8517
8519
|
function $u(t) {
|
|
8518
8520
|
const { data: e, htmlContainer: i } = t;
|
|
8519
|
-
i && e && i.dispatchEvent(new window.CustomEvent(
|
|
8521
|
+
i && e && i.dispatchEvent(new window.CustomEvent(Je.SeriesOrder, Ke(e)));
|
|
8520
8522
|
}
|
|
8521
8523
|
const He = [
|
|
8522
8524
|
"1.0.0",
|
|
@@ -8637,11 +8639,11 @@ function Hu(t) {
|
|
|
8637
8639
|
return t !== void 0 ? /^([1-9]\d*|0)(\.(([1-9]\d*)|0)){2}$/u.test(t) : !1;
|
|
8638
8640
|
}
|
|
8639
8641
|
function Lf(t) {
|
|
8640
|
-
let e =
|
|
8642
|
+
let e = it.Same, i = [];
|
|
8641
8643
|
if (Hu(t) && t !== void 0) {
|
|
8642
8644
|
He.sort(ri);
|
|
8643
8645
|
const a = ri(t, He[He.length - 1]);
|
|
8644
|
-
if (a === 1 ? e =
|
|
8646
|
+
if (a === 1 ? e = it.Newer : a === -1 && (e = it.Older), e === it.Newer || e === it.Same)
|
|
8645
8647
|
i.push(t);
|
|
8646
8648
|
else {
|
|
8647
8649
|
for (let n = He.length - 2; n >= 0; n -= 1)
|
|
@@ -8652,7 +8654,7 @@ function Lf(t) {
|
|
|
8652
8654
|
i.length === 0 && i.push(ku);
|
|
8653
8655
|
}
|
|
8654
8656
|
} else
|
|
8655
|
-
e =
|
|
8657
|
+
e = it.Unrecognized, i.push(Qu);
|
|
8656
8658
|
return { versionStatus: e, versions: i };
|
|
8657
8659
|
}
|
|
8658
8660
|
function _e(t) {
|
|
@@ -8787,7 +8789,7 @@ function Ce(t) {
|
|
|
8787
8789
|
function va(t) {
|
|
8788
8790
|
const { previousConfig: e, newConfig: i, behaviorAfterLimit: r } = t, a = e.series, n = i.series;
|
|
8789
8791
|
let s = !1, o = !1;
|
|
8790
|
-
(r === dt.RenderUpToTheLimit || e.orderOptions?.data === void 0 || i.orderOptions?.data === void 0) && (o = !
|
|
8792
|
+
(r === dt.RenderUpToTheLimit || e.orderOptions?.data === void 0 || i.orderOptions?.data === void 0) && (o = !st(
|
|
8791
8793
|
e.orderOptions?.orderByFields,
|
|
8792
8794
|
i.orderOptions?.orderByFields
|
|
8793
8795
|
));
|
|
@@ -8799,7 +8801,7 @@ function va(t) {
|
|
|
8799
8801
|
});
|
|
8800
8802
|
}), m;
|
|
8801
8803
|
}, c = ["where", "outStatistics[0].outStatisticFieldName", "outStatistics[0].onStatisticField"], u = Oi(a.map(l), c), d = Oi(n.map(l), c);
|
|
8802
|
-
return s = !
|
|
8804
|
+
return s = !st(u, d), s || o;
|
|
8803
8805
|
}
|
|
8804
8806
|
function Wu(t, e) {
|
|
8805
8807
|
return JSON.stringify(t.dataFilters) !== JSON.stringify(e.dataFilters);
|
|
@@ -8846,7 +8848,7 @@ function lr(t, e) {
|
|
|
8846
8848
|
return e.length !== t.length;
|
|
8847
8849
|
}
|
|
8848
8850
|
function wa(t, e) {
|
|
8849
|
-
return
|
|
8851
|
+
return je(t) !== je(e);
|
|
8850
8852
|
}
|
|
8851
8853
|
function La(t, e) {
|
|
8852
8854
|
return JSON.stringify(t.series[0]?.valueConversion) !== JSON.stringify(e.series[0]?.valueConversion);
|
|
@@ -8869,9 +8871,9 @@ function Ju(t) {
|
|
|
8869
8871
|
let s = !1;
|
|
8870
8872
|
if (a.type === h.ScatterSeries && n.type === h.ScatterSeries && r && r.length > 0) {
|
|
8871
8873
|
const o = new Set(a.additionalTooltipFields || []), l = new Set(n.additionalTooltipFields || []);
|
|
8872
|
-
if (!
|
|
8874
|
+
if (!st(o, l)) {
|
|
8873
8875
|
const c = Array.from(l).filter((u) => !o.has(u));
|
|
8874
|
-
c.length > 0 && (s = r?.some((u) => c.includes(u.name) && !
|
|
8876
|
+
c.length > 0 && (s = r?.some((u) => c.includes(u.name) && !Bt(u)));
|
|
8875
8877
|
}
|
|
8876
8878
|
}
|
|
8877
8879
|
return s;
|
|
@@ -8888,7 +8890,7 @@ function Qt(t) {
|
|
|
8888
8890
|
}
|
|
8889
8891
|
function Of(t, e) {
|
|
8890
8892
|
const i = t.legend ?? { type: h.Legend }, r = e.legend ?? { type: h.Legend }, a = Qt(i), n = Qt(r);
|
|
8891
|
-
return !
|
|
8893
|
+
return !st(a, n);
|
|
8892
8894
|
}
|
|
8893
8895
|
function Ef(t, e) {
|
|
8894
8896
|
const i = t.legend ?? { type: h.Legend }, r = e.legend ?? { type: h.Legend }, a = Qt(i), n = Qt(r);
|
|
@@ -8919,7 +8921,7 @@ function Vf(t) {
|
|
|
8919
8921
|
function Ku(t) {
|
|
8920
8922
|
const { previousSelectionOIDs: e, selectionData: i, filterBySelection: r } = t;
|
|
8921
8923
|
let a = !1;
|
|
8922
|
-
return r === !0 && (a = e?.length !== i?.selectionOIDs?.length || !
|
|
8924
|
+
return r === !0 && (a = e?.length !== i?.selectionOIDs?.length || !st(e, i?.selectionOIDs)), a;
|
|
8923
8925
|
}
|
|
8924
8926
|
function $f(t, e) {
|
|
8925
8927
|
return t?.length !== e?.length || t?.some((i, r) => {
|
|
@@ -9066,7 +9068,7 @@ function Jf(t) {
|
|
|
9066
9068
|
);
|
|
9067
9069
|
break;
|
|
9068
9070
|
case h.HeatSeries:
|
|
9069
|
-
|
|
9071
|
+
We(e) && We(i) && (F.heatChart.binningChanged = Ma(e, i), F.heatChart.hideEmptyRowsAndColumnsChanged = Yu(
|
|
9070
9072
|
e,
|
|
9071
9073
|
i
|
|
9072
9074
|
), F.heatChart.includeLeapDay = Zu(e, i));
|
|
@@ -9189,7 +9191,7 @@ function _t(t) {
|
|
|
9189
9191
|
let r;
|
|
9190
9192
|
switch (i) {
|
|
9191
9193
|
case h.HeatSeries:
|
|
9192
|
-
|
|
9194
|
+
We(t) && (e = Di(t));
|
|
9193
9195
|
break;
|
|
9194
9196
|
case h.BoxPlotSeries:
|
|
9195
9197
|
de(t) && (r = Ia(t));
|
|
@@ -9250,7 +9252,7 @@ export {
|
|
|
9250
9252
|
Bf as $,
|
|
9251
9253
|
oe as A,
|
|
9252
9254
|
Br as B,
|
|
9253
|
-
|
|
9255
|
+
Ot as C,
|
|
9254
9256
|
_r as D,
|
|
9255
9257
|
Sn as E,
|
|
9256
9258
|
$c as F,
|
|
@@ -9259,7 +9261,7 @@ export {
|
|
|
9259
9261
|
uf as I,
|
|
9260
9262
|
Kl as J,
|
|
9261
9263
|
Gd as K,
|
|
9262
|
-
|
|
9264
|
+
je as L,
|
|
9263
9265
|
Me as M,
|
|
9264
9266
|
ae as N,
|
|
9265
9267
|
fe as O,
|
|
@@ -9299,8 +9301,8 @@ export {
|
|
|
9299
9301
|
ss as aJ,
|
|
9300
9302
|
nd as aK,
|
|
9301
9303
|
ed as aL,
|
|
9302
|
-
|
|
9303
|
-
|
|
9304
|
+
We as aM,
|
|
9305
|
+
Bt as aN,
|
|
9304
9306
|
Cu as aO,
|
|
9305
9307
|
_i as aP,
|
|
9306
9308
|
pe as aQ,
|
|
@@ -9330,7 +9332,7 @@ export {
|
|
|
9330
9332
|
$d as an,
|
|
9331
9333
|
tm as ao,
|
|
9332
9334
|
vf as ap,
|
|
9333
|
-
|
|
9335
|
+
Ge as aq,
|
|
9334
9336
|
_d as ar,
|
|
9335
9337
|
cd as as,
|
|
9336
9338
|
le as at,
|
|
@@ -9424,7 +9426,7 @@ export {
|
|
|
9424
9426
|
ff as cE,
|
|
9425
9427
|
Mu as cF,
|
|
9426
9428
|
Uu as cG,
|
|
9427
|
-
|
|
9429
|
+
nt as cH,
|
|
9428
9430
|
bi as cI,
|
|
9429
9431
|
_t as cJ,
|
|
9430
9432
|
ya as cK,
|
|
@@ -9471,7 +9473,7 @@ export {
|
|
|
9471
9473
|
Lu as cy,
|
|
9472
9474
|
wu as cz,
|
|
9473
9475
|
lf as d,
|
|
9474
|
-
|
|
9476
|
+
kt as d0,
|
|
9475
9477
|
Os as d1,
|
|
9476
9478
|
Jn as d2,
|
|
9477
9479
|
mu as d3,
|
|
@@ -9487,7 +9489,7 @@ export {
|
|
|
9487
9489
|
In as dD,
|
|
9488
9490
|
Pn as dE,
|
|
9489
9491
|
Zc as dF,
|
|
9490
|
-
|
|
9492
|
+
vt as dG,
|
|
9491
9493
|
On as dH,
|
|
9492
9494
|
Rl as dI,
|
|
9493
9495
|
Zi as dJ,
|
|
@@ -9500,7 +9502,7 @@ export {
|
|
|
9500
9502
|
xn as df,
|
|
9501
9503
|
Cn as dg,
|
|
9502
9504
|
Pd as dh,
|
|
9503
|
-
|
|
9505
|
+
Ct as di,
|
|
9504
9506
|
Hc as dj,
|
|
9505
9507
|
Rn as dk,
|
|
9506
9508
|
_c as dl,
|
|
@@ -9513,7 +9515,7 @@ export {
|
|
|
9513
9515
|
Un as dt,
|
|
9514
9516
|
Qn as du,
|
|
9515
9517
|
xi as dv,
|
|
9516
|
-
|
|
9518
|
+
Ze as dw,
|
|
9517
9519
|
Yc as dx,
|
|
9518
9520
|
Qt as dy,
|
|
9519
9521
|
Ie as dz,
|
|
@@ -9534,9 +9536,9 @@ export {
|
|
|
9534
9536
|
nf as s,
|
|
9535
9537
|
ve as t,
|
|
9536
9538
|
Xl as u,
|
|
9537
|
-
|
|
9539
|
+
Rt as v,
|
|
9538
9540
|
me as w,
|
|
9539
9541
|
Md as x,
|
|
9540
9542
|
Ne as y,
|
|
9541
|
-
|
|
9543
|
+
Et as z
|
|
9542
9544
|
};
|