@arcgis/charts-components 5.1.0-next.0 → 5.1.0-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/{I4JPIKWZ.js → 2FVGG2EI.js} +1 -1
- package/dist/cdn/{Z3ATQCGU.js → 2TSZGBRW.js} +1 -1
- package/dist/cdn/{N7QH3COK.js → 3DSUDPMW.js} +1 -1
- package/dist/cdn/{4OI742MI.js → 3H63O632.js} +1 -1
- package/dist/cdn/{VPF4DANX.js → 3VYTY4CH.js} +1 -1
- package/dist/cdn/{F7EELFJY.js → 46NT4YQ5.js} +1 -1
- package/dist/cdn/{4SDMBWIH.js → 4NQ4FOPA.js} +1 -1
- package/dist/cdn/{GUN4GTO3.js → 4ONBF7EX.js} +1 -1
- package/dist/cdn/4XC2ZKSZ.js +2 -0
- package/dist/cdn/527DICLD.js +2 -0
- package/dist/cdn/{6AMFQCS7.js → 54S7WK2Q.js} +1 -1
- package/dist/cdn/{IMMCY2GO.js → 5F7P2IRB.js} +1 -1
- package/dist/cdn/{I45WQ4BL.js → 5GIBJIKZ.js} +1 -1
- package/dist/cdn/{YBWIUGMX.js → 5RFEFP2G.js} +1 -1
- package/dist/cdn/{VLDV4SLC.js → 6HU6FAC6.js} +1 -1
- package/dist/cdn/{H2ZHJTT5.js → 6MUSVNGM.js} +1 -1
- package/dist/cdn/{B227HROY.js → 6WQPKBUS.js} +1 -1
- package/dist/cdn/734N3Q42.js +2 -0
- package/dist/cdn/{5UWCB534.js → 7GVHJYQ4.js} +1 -1
- package/dist/cdn/{RREICBPO.js → 7J7IYWG7.js} +19 -19
- package/dist/cdn/{PGRROSLP.js → 7OIBIDJX.js} +1 -1
- package/dist/cdn/{MFY2WNGC.js → 7SSRNOEZ.js} +1 -1
- package/dist/cdn/A43B7S7N.js +2 -0
- package/dist/cdn/{YFQBIEH6.js → AT5TLS5G.js} +1 -1
- package/dist/cdn/B6AQ5E4L.js +2 -0
- package/dist/cdn/{GB3TK5D3.js → BJPCRXMJ.js} +1 -1
- package/dist/cdn/BUTXND3Y.js +2 -0
- package/dist/cdn/{2BIDUUM3.js → BW44TT3O.js} +1 -1
- package/dist/cdn/{UPWTKME3.js → CKOTQVMD.js} +1 -1
- package/dist/cdn/{TCKWKRVQ.js → CLZB5JAL.js} +1 -1
- package/dist/cdn/{MAYX7C4V.js → D5EFLFGK.js} +1 -1
- package/dist/cdn/DFSUGOC2.js +2 -0
- package/dist/cdn/{7XB4DP2Y.js → DGBFUPHF.js} +1 -1
- package/dist/cdn/DGTF5KBL.js +2 -0
- package/dist/cdn/{7TA3GQ2P.js → DLWGXLTP.js} +1 -1
- package/dist/cdn/{VQGWUSUK.js → EGTQDORP.js} +1 -1
- package/dist/cdn/{RBLN6H3R.js → ESHE4EJO.js} +1 -1
- package/dist/cdn/{XVD4CGMV.js → EVWSDR7F.js} +1 -1
- package/dist/cdn/{YP55GB27.js → F7YBMSC7.js} +1 -1
- package/dist/cdn/{C3QBGU3R.js → FVHKQX4O.js} +1 -1
- package/dist/cdn/{ZMTNSPCX.js → G2EFW5BS.js} +1 -1
- package/dist/cdn/{ACIPSEQP.js → GS4YJSDV.js} +1 -1
- package/dist/cdn/{UVEAGNF2.js → GTMWPA5J.js} +1 -1
- package/dist/cdn/{XAWIW6KZ.js → GU6JH3VZ.js} +3 -3
- package/dist/cdn/{JYAZY7C6.js → GWYSKUDT.js} +1 -1
- package/dist/cdn/{T6J2NNJR.js → HAJ2VWEU.js} +1 -1
- package/dist/cdn/{GV3FPWSE.js → HI6AE5XG.js} +1 -1
- package/dist/cdn/IHPHZSVH.js +2 -0
- package/dist/cdn/{OKE67HPM.js → ITVP53KT.js} +1 -1
- package/dist/cdn/JDUDNQNC.js +2 -0
- package/dist/cdn/{NZKAMZX6.js → JLC5Q7Y2.js} +1 -1
- package/dist/cdn/{CSMPPQK6.js → JQFKP5BO.js} +1 -1
- package/dist/cdn/{4YGTK6R4.js → KBCK3TOS.js} +1 -1
- package/dist/cdn/{OBF3ZYVJ.js → KKUG22EI.js} +1 -1
- package/dist/cdn/{AE43AFN2.js → KZ7WEJMS.js} +1 -1
- package/dist/cdn/LA5QA6QE.js +2 -0
- package/dist/cdn/{7OIBV6LX.js → M6U6FZYV.js} +1 -1
- package/dist/cdn/{5SBX2OSZ.js → NO66QM4U.js} +1 -1
- package/dist/cdn/{YHXUQR6R.js → NP2HK66D.js} +1 -1
- package/dist/cdn/{ITMPO5LO.js → NRBBCJMI.js} +1 -1
- package/dist/cdn/ODSBX4UB.js +2 -0
- package/dist/cdn/{Z5OGHBTB.js → OFNVRKLL.js} +1 -1
- package/dist/cdn/{OLGKBPS4.js → OH623XHQ.js} +1 -1
- package/dist/cdn/OOYDYFQL.js +2 -0
- package/dist/cdn/{VCDTXXBB.js → PQQQPD6E.js} +1 -1
- package/dist/cdn/{N5LXTC5F.js → QBDBBEMO.js} +1 -1
- package/dist/cdn/{RESJUXIH.js → QES24ZNV.js} +1 -1
- package/dist/cdn/QGBDD3VP.js +2 -0
- package/dist/cdn/{FGQCHT3Y.js → QITSU7UB.js} +1 -1
- package/dist/cdn/{XPATRR6S.js → R65NAU4T.js} +1 -1
- package/dist/cdn/{CGRJSESJ.js → R6PSD7B7.js} +1 -1
- package/dist/cdn/{CF4MUKBD.js → RBW7HCYN.js} +1 -1
- package/dist/cdn/{E4Z7JPW7.js → RHEU3VW6.js} +1 -1
- package/dist/cdn/ROJ67ATL.js +2 -0
- package/dist/cdn/{E2XSIMND.js → RVDUQNQH.js} +1 -1
- package/dist/cdn/{ILN66JCQ.js → S6IN2PJK.js} +1 -1
- package/dist/cdn/{UR4SN4J4.js → SBBG2LAI.js} +1 -1
- package/dist/cdn/{3KIKTBU4.js → SM5V7JW4.js} +1 -1
- package/dist/cdn/{SGOQQYBY.js → SPAXIJWK.js} +1 -1
- package/dist/cdn/{UKLAAPT4.js → STULUM25.js} +1 -1
- package/dist/cdn/{L7BKIZJN.js → UJ3X5GAK.js} +1 -1
- package/dist/cdn/{EOT7WEOM.js → UUYAX5P7.js} +1 -1
- package/dist/cdn/{NKTG3HYP.js → VCBEQAWJ.js} +1 -1
- package/dist/cdn/{INA4MWOS.js → VFC4KZRP.js} +1 -1
- package/dist/cdn/{DSCSQG33.js → VMAJ5W4A.js} +1 -1
- package/dist/cdn/{7HHTWL5X.js → W32EPRL3.js} +1 -1
- package/dist/cdn/{JEOHGL3P.js → W7THVT7Z.js} +1 -1
- package/dist/cdn/WHQ6EWYY.js +2 -0
- package/dist/cdn/{WZJQSJPK.js → XINBF3UQ.js} +1 -1
- package/dist/cdn/{V3NRWE2B.js → XRYZYAL4.js} +1 -1
- package/dist/cdn/{UNGIAYCA.js → XYKNQZFD.js} +1 -1
- package/dist/cdn/{CCBSYUDL.js → Y3U6VC3K.js} +1 -1
- package/dist/cdn/{O3LWVBLQ.js → YBSBFAGE.js} +1 -1
- package/dist/cdn/{A2TYB4C2.js → YQC2FUWM.js} +1 -1
- package/dist/cdn/{7F454N3C.js → Z4B2NHJI.js} +2 -2
- package/dist/cdn/{TW7SDPY6.js → ZTF5EW2C.js} +1 -1
- package/dist/cdn/{HOPCZKQO.js → ZYEUKPGT.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/action-bar-utils.js +9 -8
- package/dist/chunks/box-plot-data.js +1 -1
- package/dist/chunks/chart-ui-utils.js +52 -48
- package/dist/chunks/chart-ui-utils2.js +1 -1
- package/dist/chunks/class-breaks.js +159 -94
- package/dist/chunks/data.js +10 -9
- package/dist/chunks/heat-chart-model.js +83 -66
- package/dist/chunks/index.js +117 -109
- package/dist/chunks/model-setter.js +1 -1
- package/dist/chunks/model-with-guides.js +7 -6
- package/dist/chunks/pie-chart-data.js +1 -1
- package/dist/chunks/radar-chart-model.js +9 -9
- package/dist/chunks/serial-chart-data.js +315 -306
- package/dist/chunks/serial-chart-model.js +4 -4
- package/dist/chunks/web-component-utils.js +32 -32
- package/dist/components/arcgis-chart/customElement.d.ts +1 -1
- package/dist/components/arcgis-chart/customElement.js +845 -842
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +1 -0
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +120 -112
- package/dist/components/arcgis-charts-config-guide/customElement.js +1 -0
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +111 -101
- package/dist/components/arcgis-charts-config-heat-chart-data/index.js +2 -0
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +28 -15
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +1 -1
- package/dist/model/heat-chart-model/heat-chart-model.d.ts +7 -0
- package/dist/utils/ui/chart-ui-utils.d.ts +6 -3
- package/package.json +4 -4
- package/dist/cdn/BJJLSSQL.js +0 -2
- package/dist/cdn/CSHLYYDR.js +0 -2
- package/dist/cdn/DISBHZRX.js +0 -2
- package/dist/cdn/FGQ6QTNI.js +0 -2
- package/dist/cdn/FIBU5QUG.js +0 -2
- package/dist/cdn/GRFJADFY.js +0 -2
- package/dist/cdn/MMVAIEM3.js +0 -2
- package/dist/cdn/OFZOPSWX.js +0 -2
- package/dist/cdn/OQA4LU5O.js +0 -2
- package/dist/cdn/OX34MEOD.js +0 -2
- package/dist/cdn/T6HUC3X4.js +0 -2
- package/dist/cdn/W2Z3VO3C.js +0 -2
- package/dist/cdn/WI7OSEXJ.js +0 -2
- package/dist/cdn/WQS6NQUO.js +0 -2
- package/dist/cdn/YWRPXNSI.js +0 -2
- package/dist/cdn/ZARMIUOQ.js +0 -2
package/dist/chunks/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { fetchT9nStringsBundle as Re, getElementLocale as Fe, supportedLocales as sr } from "@arcgis/toolkit/intl";
|
|
3
|
-
import { isArray as Ti, cloneDeep as
|
|
3
|
+
import { isArray as Ti, cloneDeep as Ct, isEmpty as Na, isEqual as $e, sortBy as Gi, isNil as Ma } from "lodash-es";
|
|
4
4
|
import { DateTime as ve } from "luxon";
|
|
5
5
|
import { extent as hi, mean as Ra, max as $a, min as qa, sum as Ea, rollup as ka } from "d3-array";
|
|
6
6
|
import "@arcgis/toolkit/type";
|
|
7
7
|
import { W as y, a as I, n as ie, g as ae, t as me, d as ii, r as Wa, b as ne, m as ge, i as R, e as xe, S as Ii, h as Va, o as ja, w as E, j as Ce, p as st, G as za } from "./series-types.js";
|
|
8
|
-
import { a as lt, f as J, d as Q, c as
|
|
8
|
+
import { a as lt, f as J, d as Q, c as ct, b as Ai, e as Z, j as de, R as K, k as mt } from "./rest-js-object-literals.js";
|
|
9
9
|
import Ga from "@arcgis/core/Graphic.js";
|
|
10
10
|
import * as or from "@arcgis/core/renderers/support/jsonUtils.js";
|
|
11
11
|
import * as di from "@arcgis/core/symbols/support/symbolUtils.js";
|
|
@@ -439,7 +439,7 @@ function He() {
|
|
|
439
439
|
function Oc(t, e = !1) {
|
|
440
440
|
return {
|
|
441
441
|
type: J.SFS,
|
|
442
|
-
style:
|
|
442
|
+
style: ct.Solid,
|
|
443
443
|
color: e ? ri(ue) : we({
|
|
444
444
|
colorIndex: t ?? 0,
|
|
445
445
|
opacity: ue
|
|
@@ -523,6 +523,14 @@ function Pn(t, e) {
|
|
|
523
523
|
}
|
|
524
524
|
],
|
|
525
525
|
groupByFieldsForStatistics: []
|
|
526
|
+
},
|
|
527
|
+
emptyCells: {
|
|
528
|
+
symbol: {
|
|
529
|
+
type: J.SFS,
|
|
530
|
+
style: ct.Solid,
|
|
531
|
+
color: v.grayColor
|
|
532
|
+
},
|
|
533
|
+
text: t.utilsStrings.null
|
|
526
534
|
}
|
|
527
535
|
};
|
|
528
536
|
}
|
|
@@ -542,7 +550,7 @@ function On() {
|
|
|
542
550
|
})
|
|
543
551
|
};
|
|
544
552
|
}
|
|
545
|
-
function
|
|
553
|
+
function pt(t, e) {
|
|
546
554
|
const i = [], r = t.xAxis, a = t.utilsStrings.statistics.count;
|
|
547
555
|
let n, s;
|
|
548
556
|
const o = Rt({
|
|
@@ -624,7 +632,7 @@ function Mc(t) {
|
|
|
624
632
|
function $n(t) {
|
|
625
633
|
return {
|
|
626
634
|
type: J.SFS,
|
|
627
|
-
style:
|
|
635
|
+
style: ct.Solid,
|
|
628
636
|
color: we({
|
|
629
637
|
colorIndex: t,
|
|
630
638
|
opacity: ue
|
|
@@ -666,7 +674,7 @@ function $c(t, e) {
|
|
|
666
674
|
id: i,
|
|
667
675
|
fillSymbol: {
|
|
668
676
|
type: J.SFS,
|
|
669
|
-
style:
|
|
677
|
+
style: ct.Solid,
|
|
670
678
|
color: we({
|
|
671
679
|
colorIndex: e,
|
|
672
680
|
opacity: ue
|
|
@@ -690,7 +698,7 @@ function qn() {
|
|
|
690
698
|
function En() {
|
|
691
699
|
return {
|
|
692
700
|
type: J.SFS,
|
|
693
|
-
style:
|
|
701
|
+
style: ct.Solid
|
|
694
702
|
};
|
|
695
703
|
}
|
|
696
704
|
function qc(t, e) {
|
|
@@ -787,7 +795,7 @@ function kc(t, e = He()) {
|
|
|
787
795
|
font: H(W.DescriptionText)
|
|
788
796
|
}),
|
|
789
797
|
background: tt(),
|
|
790
|
-
axes:
|
|
798
|
+
axes: pt(t, y.BarSeries),
|
|
791
799
|
series: [],
|
|
792
800
|
legend: et()
|
|
793
801
|
};
|
|
@@ -819,7 +827,7 @@ function Wc(t, e = He()) {
|
|
|
819
827
|
background: tt(),
|
|
820
828
|
series: [],
|
|
821
829
|
legend: et(),
|
|
822
|
-
axes:
|
|
830
|
+
axes: pt(t, y.BoxPlotSeries),
|
|
823
831
|
standardizeValues: !0,
|
|
824
832
|
showOutliers: !1
|
|
825
833
|
};
|
|
@@ -849,7 +857,7 @@ function Vc(t, e = He()) {
|
|
|
849
857
|
font: H(W.DescriptionText)
|
|
850
858
|
}),
|
|
851
859
|
background: tt(),
|
|
852
|
-
axes:
|
|
860
|
+
axes: pt(t, y.LineSeries),
|
|
853
861
|
series: [],
|
|
854
862
|
legend: et()
|
|
855
863
|
};
|
|
@@ -878,7 +886,7 @@ function jc(t, e = He()) {
|
|
|
878
886
|
font: H(W.DescriptionText)
|
|
879
887
|
}),
|
|
880
888
|
background: tt(),
|
|
881
|
-
axes:
|
|
889
|
+
axes: pt(t, y.RadarSeries),
|
|
882
890
|
series: [],
|
|
883
891
|
legend: et()
|
|
884
892
|
};
|
|
@@ -948,7 +956,7 @@ function _c(t, e = He()) {
|
|
|
948
956
|
font: H(W.DescriptionText)
|
|
949
957
|
}),
|
|
950
958
|
background: tt(),
|
|
951
|
-
axes:
|
|
959
|
+
axes: pt(t, y.ScatterSeries),
|
|
952
960
|
series: [On()],
|
|
953
961
|
legend: et()
|
|
954
962
|
};
|
|
@@ -964,7 +972,7 @@ function Hc(t, e) {
|
|
|
964
972
|
font: H(W.ChartTitle)
|
|
965
973
|
}),
|
|
966
974
|
background: tt(),
|
|
967
|
-
axes:
|
|
975
|
+
axes: pt(t, y.HeatSeries),
|
|
968
976
|
series: [Pn(t, e)],
|
|
969
977
|
legend: { ...et(), position: ii.Bottom }
|
|
970
978
|
};
|
|
@@ -981,7 +989,7 @@ function kn() {
|
|
|
981
989
|
function Wn() {
|
|
982
990
|
return {
|
|
983
991
|
type: J.SFS,
|
|
984
|
-
style:
|
|
992
|
+
style: ct.Solid,
|
|
985
993
|
color: we({ colorIndex: 0, opacity: ue })
|
|
986
994
|
};
|
|
987
995
|
}
|
|
@@ -1024,7 +1032,7 @@ function Uc(t, e = He()) {
|
|
|
1024
1032
|
font: H(W.DescriptionText)
|
|
1025
1033
|
}),
|
|
1026
1034
|
background: tt(),
|
|
1027
|
-
axes:
|
|
1035
|
+
axes: pt(t, y.HistogramSeries),
|
|
1028
1036
|
series: [Vn()],
|
|
1029
1037
|
legend: et()
|
|
1030
1038
|
};
|
|
@@ -1087,7 +1095,7 @@ const _t = {
|
|
|
1087
1095
|
// maximum number of cells for a heat chart
|
|
1088
1096
|
maxHeatChartCellLimit: 1e4
|
|
1089
1097
|
};
|
|
1090
|
-
function
|
|
1098
|
+
function ut(t) {
|
|
1091
1099
|
const e = { ..._t };
|
|
1092
1100
|
return t !== void 0 && Object.keys(_t).forEach((i) => {
|
|
1093
1101
|
const r = i;
|
|
@@ -1184,7 +1192,7 @@ function jn() {
|
|
|
1184
1192
|
function Jc(t) {
|
|
1185
1193
|
return t.utilsStrings.notAvailable;
|
|
1186
1194
|
}
|
|
1187
|
-
const zn = 0, Gn = "_arcgis_charts_outliers", _n = "_arcgis_charts_z_score", Kc = [210, 210, 210, 255 * ue], Xc = " percentage ", pi = [150, 150, 150,
|
|
1195
|
+
const zn = 0, Gn = "_arcgis_charts_outliers", _n = "_arcgis_charts_z_score", Kc = [210, 210, 210, 255 * ue], Xc = " percentage ", pi = [150, 150, 150, 178.5], v = {
|
|
1188
1196
|
aria: {
|
|
1189
1197
|
defaultChartItemRole: "figure"
|
|
1190
1198
|
},
|
|
@@ -1653,7 +1661,7 @@ const zn = 0, Gn = "_arcgis_charts_outliers", _n = "_arcgis_charts_z_score", Kc
|
|
|
1653
1661
|
classBreaks: {
|
|
1654
1662
|
breaksCount: 5
|
|
1655
1663
|
}
|
|
1656
|
-
},
|
|
1664
|
+
}, vt = {
|
|
1657
1665
|
...v,
|
|
1658
1666
|
chartPadding: 5,
|
|
1659
1667
|
footerContainer: { ...v.footerContainer, paddingTop: 0, paddingBottom: 0 },
|
|
@@ -1722,7 +1730,7 @@ const zn = 0, Gn = "_arcgis_charts_outliers", _n = "_arcgis_charts_z_score", Kc
|
|
|
1722
1730
|
emptyCells: {
|
|
1723
1731
|
symbol: {
|
|
1724
1732
|
type: J.SFS,
|
|
1725
|
-
style:
|
|
1733
|
+
style: ct.Solid,
|
|
1726
1734
|
color: v.grayColor
|
|
1727
1735
|
},
|
|
1728
1736
|
text: "null"
|
|
@@ -1782,7 +1790,7 @@ function tp(t) {
|
|
|
1782
1790
|
function Jn(t) {
|
|
1783
1791
|
return t ? t.replace(/[A-Z]/gu, (e) => `-${e.toLowerCase()}`) : void 0;
|
|
1784
1792
|
}
|
|
1785
|
-
function
|
|
1793
|
+
function xt(t) {
|
|
1786
1794
|
return E(t?.series) === y.HeatSeries;
|
|
1787
1795
|
}
|
|
1788
1796
|
function fe(t) {
|
|
@@ -1834,7 +1842,7 @@ function es(t) {
|
|
|
1834
1842
|
function ap() {
|
|
1835
1843
|
return `{name} {${v.originalCategoryValue}} {dateY} {valueX} {dateX} {valueY}`;
|
|
1836
1844
|
}
|
|
1837
|
-
const
|
|
1845
|
+
const bt = {
|
|
1838
1846
|
ChartRenderer: 1,
|
|
1839
1847
|
LayerRenderer: 2
|
|
1840
1848
|
};
|
|
@@ -1844,7 +1852,7 @@ function np(t) {
|
|
|
1844
1852
|
if (e.chartRenderer)
|
|
1845
1853
|
r = !0;
|
|
1846
1854
|
else {
|
|
1847
|
-
const { series: a } = e, n = E(a), s = q(a), o = it(e), d =
|
|
1855
|
+
const { series: a } = e, n = E(a), s = q(a), o = it(e), d = ft({
|
|
1848
1856
|
seriesConfig: o
|
|
1849
1857
|
}), c = G(i)?.renderer;
|
|
1850
1858
|
switch (c?.type) {
|
|
@@ -1896,7 +1904,7 @@ function hr(t) {
|
|
|
1896
1904
|
delete i[e];
|
|
1897
1905
|
else {
|
|
1898
1906
|
const s = { ...r };
|
|
1899
|
-
s.color !== void 0 && a ===
|
|
1907
|
+
s.color !== void 0 && a === bt.LayerRenderer && (s.color[3] = ue * 255), a === bt.LayerRenderer && (delete s.style, delete s.outline, delete s.label), i[e] = s, n = !0;
|
|
1900
1908
|
}
|
|
1901
1909
|
return n;
|
|
1902
1910
|
}
|
|
@@ -2098,9 +2106,9 @@ async function sp(t) {
|
|
|
2098
2106
|
const { data: e, queryObject: i, chartConfig: r, allowColorMatch: a } = t;
|
|
2099
2107
|
let n = !1, s = [];
|
|
2100
2108
|
if (a) {
|
|
2101
|
-
const { series: o, chartRenderer: d } = r, l = ls(d), c = l ?
|
|
2109
|
+
const { series: o, chartRenderer: d } = r, l = ls(d), c = l ? bt.ChartRenderer : bt.LayerRenderer, p = i ? G(i) : void 0, u = l ?? p?.renderer;
|
|
2102
2110
|
let f;
|
|
2103
|
-
p && c ===
|
|
2111
|
+
p && c === bt.LayerRenderer ? s = await sa(p) : c === bt.ChartRenderer && (s = ps(u));
|
|
2104
2112
|
const h = ts(l, p?.renderer), m = ss({
|
|
2105
2113
|
chartRenderer: d,
|
|
2106
2114
|
queryObject: i
|
|
@@ -2203,7 +2211,7 @@ function Pt(t) {
|
|
|
2203
2211
|
const { originalCategoryValue: d, originalDateValue: l } = v;
|
|
2204
2212
|
if (i !== void 0) {
|
|
2205
2213
|
const c = n ? is(i) : void 0;
|
|
2206
|
-
r !== void 0 && i[r] !== void 0 ? o = i[r] : c !== void 0 ? o = c : i[l] !== void 0 ? o = i[l] : i[d] !== void 0 ? o = i[d] : i[pe] !== void 0 && (o = i[pe]), !a && o === null && (o = "null", s?.series?.[0].type === y.BarSeries && (o = s.series?.[0]?.nullCategory?.text ??
|
|
2214
|
+
r !== void 0 && i[r] !== void 0 ? o = i[r] : c !== void 0 ? o = c : i[l] !== void 0 ? o = i[l] : i[d] !== void 0 ? o = i[d] : i[pe] !== void 0 && (o = i[pe]), !a && o === null && (o = "null", s?.series?.[0].type === y.BarSeries && (o = s.series?.[0]?.nullCategory?.text ?? vt.nullCategory?.text ?? o));
|
|
2207
2215
|
}
|
|
2208
2216
|
return o;
|
|
2209
2217
|
}
|
|
@@ -2319,14 +2327,14 @@ function gs(t, e) {
|
|
|
2319
2327
|
}
|
|
2320
2328
|
function gr(t) {
|
|
2321
2329
|
const { data: e, seriesConfig: i } = t;
|
|
2322
|
-
let r =
|
|
2330
|
+
let r = Ct(e);
|
|
2323
2331
|
return r !== void 0 && (r = ms(r, i), r = gs(r, i), r = hs(r, i)), r;
|
|
2324
2332
|
}
|
|
2325
2333
|
function br(t) {
|
|
2326
2334
|
const { statsMap: e, dataContext: i, chartLimits: r } = t;
|
|
2327
2335
|
let a = !1;
|
|
2328
2336
|
if (e !== void 0) {
|
|
2329
|
-
const { maxScatterPointsBeforeAggregation: n } =
|
|
2337
|
+
const { maxScatterPointsBeforeAggregation: n } = ut(r), { queryNumberOfFeatures: s } = v.scatterplotAggregationFields;
|
|
2330
2338
|
a = (e.get(s) ?? Number.NaN) >= n;
|
|
2331
2339
|
} else i !== void 0 && (a = v.scatterplotAggregationFields.dataContextXMinField in i);
|
|
2332
2340
|
return a;
|
|
@@ -2374,7 +2382,7 @@ function vs(t, e) {
|
|
|
2374
2382
|
}
|
|
2375
2383
|
return i;
|
|
2376
2384
|
}
|
|
2377
|
-
function
|
|
2385
|
+
function Ft(t) {
|
|
2378
2386
|
let e = new Date(t).valueOf();
|
|
2379
2387
|
return Number.isNaN(e) || (e = new Intl.DateTimeFormat("en-US", v.dateFormatUTC).format(t).replace(",", "")), e;
|
|
2380
2388
|
}
|
|
@@ -2430,7 +2438,7 @@ function Sr(t, e) {
|
|
|
2430
2438
|
maxLineThreePlusSeriesCountTotal: h,
|
|
2431
2439
|
maxPieChartSliceCountTotal: m,
|
|
2432
2440
|
maxGaugeByFeaturesLimit: b
|
|
2433
|
-
} =
|
|
2441
|
+
} = ut(e), S = E(t.series), C = t.series.length === 0 ? 1 : t.series.length, x = q(t.series);
|
|
2434
2442
|
switch (S) {
|
|
2435
2443
|
case y.ComboLineAndBarSeries:
|
|
2436
2444
|
case y.BarSeries:
|
|
@@ -2619,7 +2627,7 @@ function We(t) {
|
|
|
2619
2627
|
maxBoxThreePlusSeriesCountTotal: P,
|
|
2620
2628
|
maxBoxThreePlusSeriesCountPerSeries: N,
|
|
2621
2629
|
maxHeatChartCellLimit: A
|
|
2622
|
-
} =
|
|
2630
|
+
} = ut(a);
|
|
2623
2631
|
switch (r) {
|
|
2624
2632
|
case y.BarSeries:
|
|
2625
2633
|
case y.ComboLineAndBarSeries:
|
|
@@ -2917,7 +2925,7 @@ function Ds(t) {
|
|
|
2917
2925
|
let s, o = "", d;
|
|
2918
2926
|
if (t.orderOptions?.data !== void 0) {
|
|
2919
2927
|
const l = t.orderOptions.data && "preferLabel" in t.orderOptions.data ? t.orderOptions.data.preferLabel : !0;
|
|
2920
|
-
if (o = t.orderOptions?.data?.orderType ?? me.Category, d = t.orderOptions?.data && "orderBy" in t.orderOptions.data ? t.orderOptions.data.orderBy : void 0, o === me.Category ? a ? o = pe : o = l ? i :
|
|
2928
|
+
if (o = t.orderOptions?.data?.orderType ?? me.Category, d = t.orderOptions?.data && "orderBy" in t.orderOptions.data ? t.orderOptions.data.orderBy : void 0, o === me.Category ? a ? o = pe : o = l ? i : vt.originalCategoryValue : o = a ? Be : [r].flat()[0], o !== void 0 && o !== "") {
|
|
2921
2929
|
const c = Bi(t);
|
|
2922
2930
|
if (E(t.series) !== y.PieSeries && o !== i && t.series?.length > 1)
|
|
2923
2931
|
switch (c) {
|
|
@@ -2938,7 +2946,7 @@ function Ds(t) {
|
|
|
2938
2946
|
};
|
|
2939
2947
|
}
|
|
2940
2948
|
} else (n || a) && t.series[0].query?.outStatistics && (d = t.series[0].query.outStatistics.map((l) => l.onStatisticField), d?.length > 1 && (s = {
|
|
2941
|
-
sortingField:
|
|
2949
|
+
sortingField: vt.originalCategoryValue,
|
|
2942
2950
|
orderBy: d,
|
|
2943
2951
|
preferLabel: !1
|
|
2944
2952
|
}));
|
|
@@ -2951,7 +2959,7 @@ function vi(t) {
|
|
|
2951
2959
|
let r;
|
|
2952
2960
|
switch (i) {
|
|
2953
2961
|
case y.HeatSeries:
|
|
2954
|
-
|
|
2962
|
+
xt(t) && (e = Bs(t));
|
|
2955
2963
|
break;
|
|
2956
2964
|
case y.BoxPlotSeries:
|
|
2957
2965
|
fe(t) && (r = Ls(t));
|
|
@@ -2999,7 +3007,7 @@ function Ps(t) {
|
|
|
2999
3007
|
return t.showMean === !0 && (e.series = [e.series[0]], e.series[0].query?.where !== void 0 && delete e.series[0].query.where), e;
|
|
3000
3008
|
}
|
|
3001
3009
|
function Ar(t) {
|
|
3002
|
-
return
|
|
3010
|
+
return xt(t) && Ye(t?.axes?.[0]?.valueFormat) && Ye(t?.axes?.[1]?.valueFormat);
|
|
3003
3011
|
}
|
|
3004
3012
|
function Zt(t) {
|
|
3005
3013
|
const { dataInfo: e, chartType: i, subError: r } = t;
|
|
@@ -3041,7 +3049,7 @@ function Ap(t) {
|
|
|
3041
3049
|
errorStrings: l
|
|
3042
3050
|
} = t;
|
|
3043
3051
|
let c = l.errors.defaultInvalidChart, p;
|
|
3044
|
-
const u = new Intl.NumberFormat(o), f =
|
|
3052
|
+
const u = new Intl.NumberFormat(o), f = ut(i), { maxCategoryCount: h } = f;
|
|
3045
3053
|
let m = l.modalHeaders.invalidChart;
|
|
3046
3054
|
switch (e) {
|
|
3047
3055
|
case j.BarElementExceedsLimit: {
|
|
@@ -3179,7 +3187,7 @@ function Ap(t) {
|
|
|
3179
3187
|
params: p
|
|
3180
3188
|
};
|
|
3181
3189
|
}
|
|
3182
|
-
function
|
|
3190
|
+
function wt(t, e) {
|
|
3183
3191
|
return `${e}_${t}`;
|
|
3184
3192
|
}
|
|
3185
3193
|
function xi(t) {
|
|
@@ -3276,8 +3284,8 @@ function Rs(t) {
|
|
|
3276
3284
|
dataItem: p,
|
|
3277
3285
|
chartSubType: g.BoxPlotMultiFieldsAndSplitBy,
|
|
3278
3286
|
splitByValue: l,
|
|
3279
|
-
meanPerField: n?.[
|
|
3280
|
-
stdDevPerField: n?.[
|
|
3287
|
+
meanPerField: n?.[wt(c, I.Average)],
|
|
3288
|
+
stdDevPerField: n?.[wt(c, I.StandardDeviation)]
|
|
3281
3289
|
})), s.set(c, {
|
|
3282
3290
|
...s.get(c) ?? {},
|
|
3283
3291
|
...p
|
|
@@ -3293,8 +3301,8 @@ function $s(t) {
|
|
|
3293
3301
|
dataItem: s,
|
|
3294
3302
|
chartSubType: g.BoxPlotMultiFieldsAndCategory,
|
|
3295
3303
|
y: o,
|
|
3296
|
-
meanPerField: a?.[
|
|
3297
|
-
stdDevPerField: a?.[
|
|
3304
|
+
meanPerField: a?.[wt(o, I.Average)],
|
|
3305
|
+
stdDevPerField: a?.[wt(o, I.StandardDeviation)]
|
|
3298
3306
|
});
|
|
3299
3307
|
});
|
|
3300
3308
|
}), n;
|
|
@@ -3375,7 +3383,7 @@ function Xi(t) {
|
|
|
3375
3383
|
return d === "outliers" && o !== s ? p = `(${e}<${o} OR ${e}>${s})` : d === "alternativeData" && (o === s ? p = `(${e}=${o})` : p = `(${e}>=${o} AND ${e}<=${s})`), [l, c, p].filter((f) => f !== void 0).join(" AND ");
|
|
3376
3384
|
}
|
|
3377
3385
|
function Br(t) {
|
|
3378
|
-
const { data: e, yField: i, x: r, chartSubType: a, splitByField: n } = t, s = a === g.BoxPlotMonoField || a === g.BoxPlotMonoFieldAndCategory || a === g.BoxPlotMonoFieldAndSplitBy || a === g.BoxPlotMonoFieldAndCategoryAndSplitBy ? void 0 : i, o =
|
|
3386
|
+
const { data: e, yField: i, x: r, chartSubType: a, splitByField: n } = t, s = a === g.BoxPlotMonoField || a === g.BoxPlotMonoFieldAndCategory || a === g.BoxPlotMonoFieldAndSplitBy || a === g.BoxPlotMonoFieldAndCategoryAndSplitBy ? void 0 : i, o = St(s), d = [], l = [], { maxOperandsPerWhereClause: c } = $t();
|
|
3379
3387
|
let p = [], u = [], f = 1;
|
|
3380
3388
|
return e.forEach((h, m) => {
|
|
3381
3389
|
const { outlierMinThreshold: b, outlierMaxThreshold: S } = ks(h, o);
|
|
@@ -3396,18 +3404,18 @@ function Br(t) {
|
|
|
3396
3404
|
}
|
|
3397
3405
|
function Ws(t) {
|
|
3398
3406
|
const { data: e, outlierDataItem: i, chartSubType: r, x: a, y: n, meanAndStdDevPerField: s, splitByField: o } = t;
|
|
3399
|
-
let d = s?.[
|
|
3407
|
+
let d = s?.[wt(n, I.Average)], l = s?.[wt(n, I.StandardDeviation)];
|
|
3400
3408
|
if (d === void 0 && l === void 0)
|
|
3401
3409
|
switch (r) {
|
|
3402
3410
|
case g.BoxPlotMultiFields: {
|
|
3403
|
-
const c =
|
|
3411
|
+
const c = St(n), p = e[0];
|
|
3404
3412
|
d = Number(p[c[O.Average]]), l = Number(p[c[O.StandardDeviation]]);
|
|
3405
3413
|
break;
|
|
3406
3414
|
}
|
|
3407
3415
|
case g.BoxPlotMultiFieldsAndCategory: {
|
|
3408
3416
|
const c = e.find((p) => p[a] === i[a]);
|
|
3409
3417
|
if (c !== void 0) {
|
|
3410
|
-
const p =
|
|
3418
|
+
const p = St(n);
|
|
3411
3419
|
d = Number(c[p[O.Average]]), l = Number(c[p[O.StandardDeviation]]);
|
|
3412
3420
|
}
|
|
3413
3421
|
break;
|
|
@@ -3415,7 +3423,7 @@ function Ws(t) {
|
|
|
3415
3423
|
case g.BoxPlotMultiFieldsAndSplitBy: {
|
|
3416
3424
|
const c = e.find((p) => p[o] === i[o]);
|
|
3417
3425
|
if (c !== void 0) {
|
|
3418
|
-
const p =
|
|
3426
|
+
const p = St(n);
|
|
3419
3427
|
d = Number(c[p[O.Average]]), l = Number(c[p[O.StandardDeviation]]);
|
|
3420
3428
|
}
|
|
3421
3429
|
break;
|
|
@@ -3889,14 +3897,14 @@ function Or(t) {
|
|
|
3889
3897
|
}
|
|
3890
3898
|
}
|
|
3891
3899
|
async function Di(t) {
|
|
3892
|
-
const { chartConfig: e, queryConfig: i, options: r, queryObject: a, timeIntervalInfo: n, fetchFullBoxPlotData: s } = t, { setTimeBinningInfoWhenNotProvided: o, returnFeaturesExtent: d } = r ?? {}, l = e.series, c = q(l), p = it(e), { query: u, x: f } = p, h = "y" in p ? p.y : void 0, m =
|
|
3900
|
+
const { chartConfig: e, queryConfig: i, options: r, queryObject: a, timeIntervalInfo: n, fetchFullBoxPlotData: s } = t, { setTimeBinningInfoWhenNotProvided: o, returnFeaturesExtent: d } = r ?? {}, l = e.series, c = q(l), p = it(e), { query: u, x: f } = p, h = "y" in p ? p.y : void 0, m = ft({
|
|
3893
3901
|
xAxisValueFormatType: Ge(e),
|
|
3894
3902
|
setTimeBinningInfoWhenNotProvided: o,
|
|
3895
3903
|
seriesConfig: p
|
|
3896
3904
|
});
|
|
3897
3905
|
let b = /* @__PURE__ */ new Map(), S = !1, C = !1, x = !1, F = !1, T = !1, w = {};
|
|
3898
3906
|
if (u !== void 0) {
|
|
3899
|
-
w =
|
|
3907
|
+
w = Ct(u);
|
|
3900
3908
|
const _ = se(u.where);
|
|
3901
3909
|
let U = "";
|
|
3902
3910
|
switch (i.fetchNullValues !== !0 && (f !== v.boxPlot.boxPlotCategory && (U = `${f} IS NOT NULL`), _.trim() !== "" && _ !== f && !Ve(u.where) && (U = Y([U, `${_} IS NOT NULL`]))), c) {
|
|
@@ -4347,7 +4355,7 @@ async function mo(t) {
|
|
|
4347
4355
|
let f, h, m, b, S;
|
|
4348
4356
|
const C = e.get(o), x = e.get(d), F = e.get(l), T = e.get(c);
|
|
4349
4357
|
if (C != null && F !== void 0 && F !== null && x !== void 0 && x !== null && T !== void 0 && T !== null && !Number.isNaN(C + x + F + T)) {
|
|
4350
|
-
const { maxScatterPointsAfterAggregation: w } =
|
|
4358
|
+
const { maxScatterPointsAfterAggregation: w } = ut(a?.chartLimits), D = Math.floor(Math.sqrt(w)), P = await ho({
|
|
4351
4359
|
queryObject: r,
|
|
4352
4360
|
chartConfig: i,
|
|
4353
4361
|
queryConfig: n,
|
|
@@ -4402,13 +4410,13 @@ async function So(t) {
|
|
|
4402
4410
|
if (C != null && T !== void 0 && T !== null && x !== void 0 && x !== null && w !== void 0 && w !== null && !Number.isNaN(C + x + T + w)) {
|
|
4403
4411
|
const L = G(r), { idField: D, isTraditionalTypeOID: P } = qe(L), N = P ? D : "*", A = e?.get(v.scatterplotAggregationFields.xStep), M = e?.get(v.scatterplotAggregationFields.yStep), B = e?.get(v.scatterplotAggregationFields.realGridSize), $ = e?.get(v.scatterplotAggregationFields.rowCount), _ = e?.get(v.scatterplotAggregationFields.columnCount), U = /* @__PURE__ */ new Map(), Ne = await he(r);
|
|
4404
4412
|
if (Ne?.forEach((V) => {
|
|
4405
|
-
|
|
4413
|
+
Tt(V) && U.set(V.name, {
|
|
4406
4414
|
onStatisticField: V.name,
|
|
4407
4415
|
outStatisticFieldName: V.name,
|
|
4408
4416
|
statisticType: I.Maximum
|
|
4409
4417
|
});
|
|
4410
4418
|
}), (Ne.filter((V) => d?.additionalTooltipFields?.includes(V.name)) ?? [])?.forEach((V) => {
|
|
4411
|
-
|
|
4419
|
+
Tt(V) || U.set(V.name, {
|
|
4412
4420
|
onStatisticField: V.name,
|
|
4413
4421
|
outStatisticFieldName: V.name,
|
|
4414
4422
|
statisticType: I.Maximum
|
|
@@ -4451,24 +4459,24 @@ async function So(t) {
|
|
|
4451
4459
|
} else if ($ !== void 0 && _ !== void 0) {
|
|
4452
4460
|
let V = 0;
|
|
4453
4461
|
const { maxScatterCellsPerQuery: Me, maxScatterCellsPerQueryForStandard: rt } = $t(), Pa = await dd(L) ? rt : Me, zi = [];
|
|
4454
|
-
let oi = !0,
|
|
4462
|
+
let oi = !0, yt = C, at = T, ht = "", kt = 1, li = 1, Wt = Number.MAX_SAFE_INTEGER, Vt = Number.MIN_SAFE_INTEGER, jt = Number.MAX_SAFE_INTEGER, zt = Number.MIN_SAFE_INTEGER;
|
|
4455
4463
|
for (; li <= _ && oi; ) {
|
|
4456
4464
|
for (at = T, kt = 1; kt <= $ && oi; ) {
|
|
4457
|
-
if (
|
|
4458
|
-
groupByFieldsForStatistics:
|
|
4465
|
+
if (ht = go({
|
|
4466
|
+
groupByFieldsForStatistics: ht,
|
|
4459
4467
|
x: l,
|
|
4460
4468
|
y: c,
|
|
4461
|
-
xValue:
|
|
4469
|
+
xValue: yt,
|
|
4462
4470
|
yValue: at,
|
|
4463
4471
|
xStep: A,
|
|
4464
4472
|
yStep: M,
|
|
4465
4473
|
endOfRow: kt === $,
|
|
4466
4474
|
endOfColumn: li === _
|
|
4467
|
-
}),
|
|
4468
|
-
|
|
4475
|
+
}), yt < Wt && (Wt = yt), yt + A > Vt && (Vt = yt + A), at < jt && (jt = at), at + A > zt && (zt = at + M), V += 1, V % Pa === 0 || V === B || V === F) {
|
|
4476
|
+
ht = `${ht} ${dt.groupByCaseEnd}`;
|
|
4469
4477
|
const Oa = {
|
|
4470
4478
|
...a,
|
|
4471
|
-
groupByFieldsForStatistics: [
|
|
4479
|
+
groupByFieldsForStatistics: [ht],
|
|
4472
4480
|
outStatistics: [...U.values()]
|
|
4473
4481
|
};
|
|
4474
4482
|
zi.push(
|
|
@@ -4482,11 +4490,11 @@ async function So(t) {
|
|
|
4482
4490
|
yMax: zt,
|
|
4483
4491
|
abortKey: o
|
|
4484
4492
|
})
|
|
4485
|
-
), Wt = Number.MAX_SAFE_INTEGER, Vt = Number.MIN_SAFE_INTEGER, jt = Number.MAX_SAFE_INTEGER, zt = Number.MIN_SAFE_INTEGER,
|
|
4493
|
+
), Wt = Number.MAX_SAFE_INTEGER, Vt = Number.MIN_SAFE_INTEGER, jt = Number.MAX_SAFE_INTEGER, zt = Number.MIN_SAFE_INTEGER, ht = "", V === B && (oi = !1);
|
|
4486
4494
|
}
|
|
4487
4495
|
at += M, kt += 1;
|
|
4488
4496
|
}
|
|
4489
|
-
|
|
4497
|
+
yt += A, li += 1;
|
|
4490
4498
|
}
|
|
4491
4499
|
S = (await Promise.all(zi)).flat();
|
|
4492
4500
|
}
|
|
@@ -4707,7 +4715,7 @@ function Bo(t) {
|
|
|
4707
4715
|
async function Lo(t) {
|
|
4708
4716
|
const { queryObject: e, queryConfig: i, chartConfig: r, featureCount: a, abortKey: n } = t, s = r.series[0], { x: o, y: d } = s, l = G(e);
|
|
4709
4717
|
let c = [];
|
|
4710
|
-
const p = await he(e), u = Wi(l).idFields, f = (p?.filter((S) =>
|
|
4718
|
+
const p = await he(e), u = Wi(l).idFields, f = (p?.filter((S) => Tt(S) && S.name !== o && S.name !== d) ?? []).map(
|
|
4711
4719
|
(S) => S.name
|
|
4712
4720
|
) ?? [], h = s?.additionalTooltipFields ?? [], m = Array.from(
|
|
4713
4721
|
/* @__PURE__ */ new Set([o, d, ...u ?? [], ...f, ...h])
|
|
@@ -4767,7 +4775,7 @@ async function qr(t) {
|
|
|
4767
4775
|
queryConfig: i,
|
|
4768
4776
|
queryObject: r,
|
|
4769
4777
|
abortKey: o
|
|
4770
|
-
}), { queryNumberOfFeatures: l, yStep: c } = v.scatterplotAggregationFields, { maxScatterPointsBeforeAggregation: p } =
|
|
4778
|
+
}), { queryNumberOfFeatures: l, yStep: c } = v.scatterplotAggregationFields, { maxScatterPointsBeforeAggregation: p } = ut(s?.chartLimits), u = d?.get(l) ?? Number.NaN, f = u >= p, h = kl(r);
|
|
4771
4779
|
f && await mo({
|
|
4772
4780
|
statsMap: d,
|
|
4773
4781
|
chartConfig: e,
|
|
@@ -4805,7 +4813,7 @@ async function qr(t) {
|
|
|
4805
4813
|
return { dataItems: b, r2: S, trendLinePoints: C, aggregated: f };
|
|
4806
4814
|
}
|
|
4807
4815
|
function Po(t) {
|
|
4808
|
-
const { itemsA: e, itemsB: i, isPieFromFields: r, x: a, y: n, outStatisticFieldName: s } = t, o =
|
|
4816
|
+
const { itemsA: e, itemsB: i, isPieFromFields: r, x: a, y: n, outStatisticFieldName: s } = t, o = Ct(e), d = Ct(i);
|
|
4809
4817
|
let l = !1;
|
|
4810
4818
|
if (o === void 0 && d !== void 0 || o !== void 0 && d === void 0)
|
|
4811
4819
|
l = !0;
|
|
@@ -4898,7 +4906,7 @@ function Er(t, e) {
|
|
|
4898
4906
|
if (Ti(r) && r.length === 2) {
|
|
4899
4907
|
let [a, n] = r;
|
|
4900
4908
|
if (typeof a == "number" && typeof n == "number" && Number.isFinite(a) && Number.isFinite(n)) {
|
|
4901
|
-
a =
|
|
4909
|
+
a = Ft(a), n = Ft(n);
|
|
4902
4910
|
const s = e[v.lastTemporalBin] === !0 ? "<=" : "<";
|
|
4903
4911
|
i = `${t}>='${a}' AND ${t}${s}'${n}'`;
|
|
4904
4912
|
}
|
|
@@ -4922,7 +4930,7 @@ function Wr(t) {
|
|
|
4922
4930
|
dataContext: a,
|
|
4923
4931
|
keepNullValues: !0
|
|
4924
4932
|
});
|
|
4925
|
-
n === K.Double ? o = kr(p, e) : (ot(s.axes?.[0].valueFormat) && (p =
|
|
4933
|
+
n === K.Double ? o = kr(p, e) : (ot(s.axes?.[0].valueFormat) && (p = Ft(p)), o = je({
|
|
4926
4934
|
where: Je(e, p),
|
|
4927
4935
|
normalize: !1,
|
|
4928
4936
|
escape: !0
|
|
@@ -4960,7 +4968,7 @@ function Mo(t) {
|
|
|
4960
4968
|
dataContext: r,
|
|
4961
4969
|
keepNullValues: !0
|
|
4962
4970
|
});
|
|
4963
|
-
a === K.Double ? s = kr(l, e) : (ot(n.axes?.[0].valueFormat) && (l =
|
|
4971
|
+
a === K.Double ? s = kr(l, e) : (ot(n.axes?.[0].valueFormat) && (l = Ft(l)), s = je({
|
|
4964
4972
|
where: Je(e, l),
|
|
4965
4973
|
normalize: !1,
|
|
4966
4974
|
escape: !0
|
|
@@ -5098,7 +5106,7 @@ async function Eo(t) {
|
|
|
5098
5106
|
case y.LineSeries:
|
|
5099
5107
|
case y.RadarSeries:
|
|
5100
5108
|
case y.ComboLineAndBarSeries:
|
|
5101
|
-
if (
|
|
5109
|
+
if (ft({
|
|
5102
5110
|
xAxisValueFormatType: Ge(r),
|
|
5103
5111
|
setTimeBinningInfoWhenNotProvided: d,
|
|
5104
5112
|
seriesConfig: l[0]
|
|
@@ -5370,7 +5378,7 @@ async function zo(t) {
|
|
|
5370
5378
|
break;
|
|
5371
5379
|
case y.PieSeries:
|
|
5372
5380
|
if (q(r.series) === g.PieFromFields) {
|
|
5373
|
-
const { x: S, y: C } = r.series[0], x =
|
|
5381
|
+
const { x: S, y: C } = r.series[0], x = Ct(m);
|
|
5374
5382
|
x.forEach((F) => {
|
|
5375
5383
|
S in F && (F[pe] = F[S], delete F[S]), C in F && (F[Be] = F[C], delete F[C]);
|
|
5376
5384
|
}), h.data = { dataItems: x };
|
|
@@ -5388,7 +5396,7 @@ async function zo(t) {
|
|
|
5388
5396
|
case y.ComboLineAndBarSeries:
|
|
5389
5397
|
case y.RadarSeries:
|
|
5390
5398
|
case y.LineSeries:
|
|
5391
|
-
if (m.length === 0 || !
|
|
5399
|
+
if (m.length === 0 || !ft({
|
|
5392
5400
|
xAxisValueFormatType: f,
|
|
5393
5401
|
setTimeBinningInfoWhenNotProvided: d?.setTimeBinningInfoWhenNotProvided,
|
|
5394
5402
|
seriesConfig: p[0]
|
|
@@ -5513,7 +5521,7 @@ async function Go(t) {
|
|
|
5513
5521
|
fieldList: o,
|
|
5514
5522
|
preFetchedQueryResponse: d
|
|
5515
5523
|
};
|
|
5516
|
-
|
|
5524
|
+
ft({
|
|
5517
5525
|
xAxisValueFormatType: Ge(i),
|
|
5518
5526
|
setTimeBinningInfoWhenNotProvided: a?.setTimeBinningInfoWhenNotProvided,
|
|
5519
5527
|
seriesConfig: l[0]
|
|
@@ -5995,7 +6003,7 @@ function* nl(t) {
|
|
|
5995
6003
|
];
|
|
5996
6004
|
let u = dt.groupByCaseBegin;
|
|
5997
6005
|
for (let h = 0; h < a.length; h += 1) {
|
|
5998
|
-
const m = a[h], [b, S] = m[v.dateBinningRange], C =
|
|
6006
|
+
const m = a[h], [b, S] = m[v.dateBinningRange], C = Ft(b), x = Ft(S);
|
|
5999
6007
|
u = al({
|
|
6000
6008
|
groupByFieldsForStatistics: u,
|
|
6001
6009
|
queryStartDate: C,
|
|
@@ -6236,7 +6244,7 @@ function yl(t, e) {
|
|
|
6236
6244
|
function hl(t, e) {
|
|
6237
6245
|
const i = e, r = ce(t), a = r.length === 1;
|
|
6238
6246
|
return r.forEach((n) => {
|
|
6239
|
-
const s =
|
|
6247
|
+
const s = St(a ? void 0 : n), o = i[s[O.FirstQuartile]], d = i[s[O.ThirdQuartile]];
|
|
6240
6248
|
Number.isFinite(o) && Number.isFinite(d) && d >= o && (i[s[O.IQR]] = d - o);
|
|
6241
6249
|
}), i;
|
|
6242
6250
|
}
|
|
@@ -6379,7 +6387,7 @@ function Hr(t) {
|
|
|
6379
6387
|
fieldList: u
|
|
6380
6388
|
} = t, { series: f } = r, h = q(f), m = E(f), { x: b } = f[0], S = "y" in f[0] ? f[0].y : void 0, C = f[0].query?.outStatistics ?? [], { originalYCategoryValue: x, originalCategoryValue: F, originalDateValue: T } = v, w = [];
|
|
6381
6389
|
let L = 0;
|
|
6382
|
-
const D = /* @__PURE__ */ new Set(), { maxCategoryCount: P } =
|
|
6390
|
+
const D = /* @__PURE__ */ new Set(), { maxCategoryCount: P } = ut(p), N = Fl({ queryResponse: i, chartConfig: r, maxCategoryCount: P });
|
|
6383
6391
|
for (let A = 0; N[A] && A < N.length && !(l !== void 0 && L >= l); A += 1) {
|
|
6384
6392
|
L += vl(h, r);
|
|
6385
6393
|
const M = N[A];
|
|
@@ -6509,7 +6517,7 @@ function qt(t) {
|
|
|
6509
6517
|
const { arrayToSort: e, chartConfig: i, fieldList: r, isTimeBinningSeries: a } = t;
|
|
6510
6518
|
if (a !== !0) {
|
|
6511
6519
|
const { series: n } = i, s = q(n), o = E(n), d = Ge(i), l = vi(i);
|
|
6512
|
-
if (
|
|
6520
|
+
if (xt(i) && e !== void 0)
|
|
6513
6521
|
Il({ arrayToSort: e, chartConfig: i, dataOrderParameters: l });
|
|
6514
6522
|
else if (l?.[0] !== void 0 && e !== void 0 && e.length > 1) {
|
|
6515
6523
|
const { orderBy: c } = l[0];
|
|
@@ -6716,7 +6724,7 @@ async function Qr(t) {
|
|
|
6716
6724
|
abortKey: o
|
|
6717
6725
|
} = t, d = { valid: !0 };
|
|
6718
6726
|
let l;
|
|
6719
|
-
if (
|
|
6727
|
+
if (xt(e)) {
|
|
6720
6728
|
const { nullPolicy: c } = e, p = e.series[0], { x: u, y: f, query: h, xTemporalBinning: m, yTemporalBinning: b } = p, S = h?.outStatistics?.[0]?.outStatisticFieldName ?? "", C = h?.outStatistics?.[0]?.statisticType ?? I.Count;
|
|
6721
6729
|
i?.outStatistics?.[0] && Pr(i.outStatistics[0]) && !("statisticParameters" in i?.outStatistics[0]) && (i.outStatistics[0].statisticParameters = {
|
|
6722
6730
|
value: v.defaultStatParameterValue
|
|
@@ -6945,7 +6953,7 @@ async function Ni(t) {
|
|
|
6945
6953
|
async function Ol(t) {
|
|
6946
6954
|
const { chartConfig: e, queryConfig: i, queryObject: r, abortKey: a, options: n } = t, s = Dt(e), { setTimeBinningInfoWhenNotProvided: o, chartLimits: d, usePopupTemplateFieldsInfo: l } = n ?? {}, c = { valid: !0 };
|
|
6947
6955
|
if (r !== void 0) {
|
|
6948
|
-
const p = e.series, u =
|
|
6956
|
+
const p = e.series, u = ft({
|
|
6949
6957
|
seriesConfig: p[0],
|
|
6950
6958
|
xAxisValueFormatType: Ge(e),
|
|
6951
6959
|
setTimeBinningInfoWhenNotProvided: o
|
|
@@ -7186,22 +7194,22 @@ const Mt = /* @__PURE__ */ new Map();
|
|
|
7186
7194
|
function Vl(t) {
|
|
7187
7195
|
let e;
|
|
7188
7196
|
switch (t) {
|
|
7189
|
-
case
|
|
7197
|
+
case mt.Feet:
|
|
7190
7198
|
e = "esriSRUnit_Foot";
|
|
7191
7199
|
break;
|
|
7192
|
-
case
|
|
7200
|
+
case mt.Miles:
|
|
7193
7201
|
e = "esriSRUnit_StatuteMile";
|
|
7194
7202
|
break;
|
|
7195
|
-
case
|
|
7203
|
+
case mt.NauticalMiles:
|
|
7196
7204
|
e = "esriSRUnit_NauticalMile";
|
|
7197
7205
|
break;
|
|
7198
|
-
case
|
|
7206
|
+
case mt.USNauticalMiles:
|
|
7199
7207
|
e = "esriSRUnit_USNauticalMile";
|
|
7200
7208
|
break;
|
|
7201
|
-
case
|
|
7209
|
+
case mt.Meters:
|
|
7202
7210
|
e = "esriSRUnit_Meter";
|
|
7203
7211
|
break;
|
|
7204
|
-
case
|
|
7212
|
+
case mt.Kilometers:
|
|
7205
7213
|
e = "esriSRUnit_Kilometer";
|
|
7206
7214
|
break;
|
|
7207
7215
|
}
|
|
@@ -7837,7 +7845,7 @@ function qe(t) {
|
|
|
7837
7845
|
}
|
|
7838
7846
|
return { idField: e, isTraditionalTypeOID: i };
|
|
7839
7847
|
}
|
|
7840
|
-
function
|
|
7848
|
+
function Tt(t) {
|
|
7841
7849
|
return [
|
|
7842
7850
|
K.Single,
|
|
7843
7851
|
K.Double,
|
|
@@ -7860,7 +7868,7 @@ function ld(t) {
|
|
|
7860
7868
|
return t.filter((e) => od(e)).map((e) => e.name);
|
|
7861
7869
|
}
|
|
7862
7870
|
function Kp(t) {
|
|
7863
|
-
return t.filter((e) =>
|
|
7871
|
+
return t.filter((e) => Tt(e)).map((e) => e.name);
|
|
7864
7872
|
}
|
|
7865
7873
|
function na(t) {
|
|
7866
7874
|
const { subtypeInfo: e, fieldName: i, fieldValueToMatch: r } = t;
|
|
@@ -8278,7 +8286,7 @@ function q(t) {
|
|
|
8278
8286
|
}
|
|
8279
8287
|
return e;
|
|
8280
8288
|
}
|
|
8281
|
-
function
|
|
8289
|
+
function ft(t) {
|
|
8282
8290
|
const { seriesConfig: e, xAxisValueFormatType: i, setTimeBinningInfoWhenNotProvided: r } = t;
|
|
8283
8291
|
let a = !1;
|
|
8284
8292
|
if (De(e) && e.binTemporalData !== !1 && i === y.DateAxisFormat) {
|
|
@@ -8339,7 +8347,7 @@ function fa(t, e) {
|
|
|
8339
8347
|
function Td(t) {
|
|
8340
8348
|
const { previousSeries: e, newConfig: i, previousTimeIntervalInfo: r, setTimeBinningInfoWhenNotProvided: a } = t, n = i.series?.[0];
|
|
8341
8349
|
let s = !1, o = !1, d = !1;
|
|
8342
|
-
if (n && De(n) &&
|
|
8350
|
+
if (n && De(n) && ft({
|
|
8343
8351
|
seriesConfig: n,
|
|
8344
8352
|
xAxisValueFormatType: Ge(i),
|
|
8345
8353
|
setTimeBinningInfoWhenNotProvided: a
|
|
@@ -8365,7 +8373,7 @@ function Id(t, e) {
|
|
|
8365
8373
|
return (t.hideEmptyRowsAndColumns ?? !1) !== (e.hideEmptyRowsAndColumns ?? !1);
|
|
8366
8374
|
}
|
|
8367
8375
|
function Ad(t, e) {
|
|
8368
|
-
return (t.includeLeapDay ??
|
|
8376
|
+
return (t.includeLeapDay ?? vt.heatChart.includeLeapDay) !== (e.includeLeapDay ?? vt.heatChart.includeLeapDay);
|
|
8369
8377
|
}
|
|
8370
8378
|
function Bd(t) {
|
|
8371
8379
|
const { previousConfig: e, newConfig: i, fieldList: r } = t, a = e.series[0], n = i.series[0];
|
|
@@ -8374,7 +8382,7 @@ function Bd(t) {
|
|
|
8374
8382
|
const o = new Set(a.additionalTooltipFields || []), d = new Set(n.additionalTooltipFields || []);
|
|
8375
8383
|
if (!$e(o, d)) {
|
|
8376
8384
|
const l = Array.from(d).filter((c) => !o.has(c));
|
|
8377
|
-
l.length > 0 && (s = r?.some((c) => l.includes(c.name) && !
|
|
8385
|
+
l.length > 0 && (s = r?.some((c) => l.includes(c.name) && !Tt(c)));
|
|
8378
8386
|
}
|
|
8379
8387
|
}
|
|
8380
8388
|
return s;
|
|
@@ -8387,7 +8395,7 @@ function ru(t, e) {
|
|
|
8387
8395
|
}
|
|
8388
8396
|
function ti(t) {
|
|
8389
8397
|
const e = { ...t };
|
|
8390
|
-
return e.position === void 0 && (e.position =
|
|
8398
|
+
return e.position === void 0 && (e.position = vt.heatChart.legend.position), e;
|
|
8391
8399
|
}
|
|
8392
8400
|
function au(t, e) {
|
|
8393
8401
|
const i = t.legend ?? { type: y.Legend }, r = e.legend ?? { type: y.Legend }, a = ti(i), n = ti(r);
|
|
@@ -8557,7 +8565,7 @@ function xu(t) {
|
|
|
8557
8565
|
h.gauge.valueConversionChanged = ha(e, i);
|
|
8558
8566
|
break;
|
|
8559
8567
|
case y.HeatSeries:
|
|
8560
|
-
|
|
8568
|
+
xt(e) && xt(i) && (h.heatChart.binningChanged = ma(e, i), h.heatChart.hideEmptyRowsAndColumnsChanged = Id(
|
|
8561
8569
|
e,
|
|
8562
8570
|
i
|
|
8563
8571
|
), h.heatChart.includeLeapDay = Ad(e, i));
|
|
@@ -8576,7 +8584,7 @@ function Dd(t, e) {
|
|
|
8576
8584
|
return t.series.map((i) => i.name).join() !== e.series.map((i) => i.name).join();
|
|
8577
8585
|
}
|
|
8578
8586
|
function Fu(t, e) {
|
|
8579
|
-
const i =
|
|
8587
|
+
const i = Ct(t);
|
|
8580
8588
|
if (i && i.series.length > 1) {
|
|
8581
8589
|
const { preferLabel: r, orderBy: a } = i.orderOptions?.series ?? {};
|
|
8582
8590
|
if (a !== void 0) {
|
|
@@ -8611,7 +8619,7 @@ const wu = {
|
|
|
8611
8619
|
hasHeatChartBinningChanged: ma,
|
|
8612
8620
|
hasConfigSeriesNamesChanged: Dd
|
|
8613
8621
|
};
|
|
8614
|
-
function
|
|
8622
|
+
function St(t) {
|
|
8615
8623
|
const e = t === void 0 || t === "";
|
|
8616
8624
|
return {
|
|
8617
8625
|
[O.Average]: `${e ? "" : `${t}_`}${O.Average}`,
|
|
@@ -8637,7 +8645,7 @@ function ba(t) {
|
|
|
8637
8645
|
}
|
|
8638
8646
|
function re(t) {
|
|
8639
8647
|
const { key: e, y: i, chartSubType: r, splitBy: a, splitByValue: n, showOutliers: s, standardizeValues: o } = t;
|
|
8640
|
-
let d = n, c =
|
|
8648
|
+
let d = n, c = St(i)[e];
|
|
8641
8649
|
return s === !0 && (e === O.Min || e === O.Max) && (c = `${c}${Gn}`), o === !0 && (ba(r) || e === O.Outlier) && (c = `${c}${_n}`), (n === void 0 || `${n}`.trim() === "") && (d = ye({ where: a, normalize: !0, escape: !1 })), d !== void 0 && `${d}`.trim() !== "" && (c = `${d}${c !== "" ? `_${c}` : ""}`), c;
|
|
8642
8650
|
}
|
|
8643
8651
|
function fi(t) {
|
|
@@ -8874,7 +8882,7 @@ function Iu(t) {
|
|
|
8874
8882
|
}
|
|
8875
8883
|
return { minY: e, maxY: i, minX: r, maxX: a };
|
|
8876
8884
|
}
|
|
8877
|
-
const
|
|
8885
|
+
const gt = {
|
|
8878
8886
|
$schema: "http://json-schema.org/draft-07/schema#",
|
|
8879
8887
|
definitions: {
|
|
8880
8888
|
ValueConversion: {
|
|
@@ -19057,7 +19065,7 @@ async function xa(t) {
|
|
|
19057
19065
|
break;
|
|
19058
19066
|
case Ue.AnyOf: {
|
|
19059
19067
|
let n = [];
|
|
19060
|
-
i.schemaPath === "#/properties/legend/anyOf" && (n =
|
|
19068
|
+
i.schemaPath === "#/properties/legend/anyOf" && (n = gt.definitions.WebChart.properties.legend.anyOf.map(
|
|
19061
19069
|
(s) => va(s.$ref)
|
|
19062
19070
|
)), r = {
|
|
19063
19071
|
...i,
|
|
@@ -19097,19 +19105,19 @@ function $d() {
|
|
|
19097
19105
|
return async (e) => {
|
|
19098
19106
|
let i = [];
|
|
19099
19107
|
const r = E(e?.series);
|
|
19100
|
-
let a =
|
|
19108
|
+
let a = gt;
|
|
19101
19109
|
switch (r) {
|
|
19102
19110
|
case y.GaugeSeries:
|
|
19103
|
-
a = At(
|
|
19111
|
+
a = At(gt, "WebGaugeChart");
|
|
19104
19112
|
break;
|
|
19105
19113
|
case y.BoxPlotSeries:
|
|
19106
|
-
a = At(
|
|
19114
|
+
a = At(gt, "WebBoxPlot");
|
|
19107
19115
|
break;
|
|
19108
19116
|
case y.RadarSeries:
|
|
19109
|
-
a = At(
|
|
19117
|
+
a = At(gt, "WebRadarChart");
|
|
19110
19118
|
break;
|
|
19111
19119
|
default:
|
|
19112
|
-
a = At(
|
|
19120
|
+
a = At(gt, "WebChart");
|
|
19113
19121
|
break;
|
|
19114
19122
|
}
|
|
19115
19123
|
const n = t.compile(a);
|
|
@@ -19128,7 +19136,7 @@ async function wa(t) {
|
|
|
19128
19136
|
if (d !== void 0)
|
|
19129
19137
|
for (let l = 0; l < d.length; l += 1) {
|
|
19130
19138
|
const c = d[l], p = ki(c.onStatisticField, n);
|
|
19131
|
-
if (p && !(p.type === K.OID && r ||
|
|
19139
|
+
if (p && !(p.type === K.OID && r || Tt(p)) && c.statisticType !== I.Count) {
|
|
19132
19140
|
const f = `series[${o}].query.outStatistics[${l}]`;
|
|
19133
19141
|
a.push({
|
|
19134
19142
|
keyword: Ca.NonNumericAggregation,
|
|
@@ -19495,7 +19503,7 @@ export {
|
|
|
19495
19503
|
j as a1,
|
|
19496
19504
|
Cn as a2,
|
|
19497
19505
|
vc as a3,
|
|
19498
|
-
|
|
19506
|
+
St as a4,
|
|
19499
19507
|
ji as a5,
|
|
19500
19508
|
ga as a6,
|
|
19501
19509
|
ba as a7,
|
|
@@ -19556,7 +19564,7 @@ export {
|
|
|
19556
19564
|
wn as az,
|
|
19557
19565
|
ln as b,
|
|
19558
19566
|
Zp as b$,
|
|
19559
|
-
|
|
19567
|
+
pt as b0,
|
|
19560
19568
|
Nn as b1,
|
|
19561
19569
|
Mn as b2,
|
|
19562
19570
|
Rn as b3,
|
|
@@ -19577,7 +19585,7 @@ export {
|
|
|
19577
19585
|
ki as bI,
|
|
19578
19586
|
Wi as bJ,
|
|
19579
19587
|
qe as bK,
|
|
19580
|
-
|
|
19588
|
+
Tt as bL,
|
|
19581
19589
|
od as bM,
|
|
19582
19590
|
Jp as bN,
|
|
19583
19591
|
ld as bO,
|
|
@@ -19608,7 +19616,7 @@ export {
|
|
|
19608
19616
|
Wn as bm,
|
|
19609
19617
|
Vn as bn,
|
|
19610
19618
|
Uc as bo,
|
|
19611
|
-
|
|
19619
|
+
ut as bp,
|
|
19612
19620
|
$t as bq,
|
|
19613
19621
|
Qc as br,
|
|
19614
19622
|
Yc as bs,
|
|
@@ -19710,7 +19718,7 @@ export {
|
|
|
19710
19718
|
ss as dL,
|
|
19711
19719
|
np as dM,
|
|
19712
19720
|
os as dN,
|
|
19713
|
-
|
|
19721
|
+
bt as dO,
|
|
19714
19722
|
Ep as dP,
|
|
19715
19723
|
es as dQ,
|
|
19716
19724
|
Lp as dR,
|
|
@@ -19730,7 +19738,7 @@ export {
|
|
|
19730
19738
|
xp as de,
|
|
19731
19739
|
g as df,
|
|
19732
19740
|
cp as dg,
|
|
19733
|
-
|
|
19741
|
+
xt as dh,
|
|
19734
19742
|
v as di,
|
|
19735
19743
|
fe as dj,
|
|
19736
19744
|
Ar as dk,
|
|
@@ -19739,7 +19747,7 @@ export {
|
|
|
19739
19747
|
Di as dn,
|
|
19740
19748
|
Yr as dp,
|
|
19741
19749
|
qt as dq,
|
|
19742
|
-
|
|
19750
|
+
vt as dr,
|
|
19743
19751
|
tp as ds,
|
|
19744
19752
|
dp as dt,
|
|
19745
19753
|
op as du,
|
|
@@ -19788,7 +19796,7 @@ export {
|
|
|
19788
19796
|
xd as m,
|
|
19789
19797
|
je as n,
|
|
19790
19798
|
q as o,
|
|
19791
|
-
|
|
19799
|
+
ft as p,
|
|
19792
19800
|
De as q,
|
|
19793
19801
|
Fd as r,
|
|
19794
19802
|
Id as s,
|