@arcgis/charts-components 5.1.0-next.112 → 5.1.0-next.113
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/{D64TYM3R.js → 24TOMTMP.js} +1 -1
- package/dist/cdn/{KGUWJXNX.js → 2EPXIQFD.js} +1 -1
- package/dist/cdn/2SVBUT3V.js +2 -0
- package/dist/cdn/{KBFIWSF2.js → 2XTQT6TW.js} +1 -1
- package/dist/cdn/{PIQLTGQV.js → 2YI4HWFY.js} +36 -36
- package/dist/cdn/{VA7A24CW.js → 34WNZMJY.js} +1 -1
- package/dist/cdn/{MT2SXIFX.js → 4G5JOLEP.js} +1 -1
- package/dist/cdn/{D5HBIRFV.js → 4MZJZQDO.js} +1 -1
- package/dist/cdn/{2XZHEQOM.js → 52QMEXI6.js} +1 -1
- package/dist/cdn/{XL2LODIA.js → 5I75UYWD.js} +1 -1
- package/dist/cdn/{ABLXR4MB.js → 5M72DGYL.js} +1 -1
- package/dist/cdn/{I3AEOP2Z.js → 5PG6PXDG.js} +1 -1
- package/dist/cdn/6FGRLBTA.js +2 -0
- package/dist/cdn/6JNHTWDQ.js +2 -0
- package/dist/cdn/{BRQAPAQK.js → 6YSH3ROL.js} +1 -1
- package/dist/cdn/{D3BGIANC.js → 7AVVBDQS.js} +1 -1
- package/dist/cdn/{U4MRHS76.js → 7EDHTVVK.js} +1 -1
- package/dist/cdn/{NF2XLTBQ.js → 7MHEEH5F.js} +1 -1
- package/dist/cdn/{H2KJXNFC.js → 7Y76VKGS.js} +1 -1
- package/dist/cdn/AC2XSIOU.js +2 -0
- package/dist/cdn/{GFNVUB7K.js → AEESEH6N.js} +1 -1
- package/dist/cdn/{YINMQ55E.js → AYY2C4BW.js} +1 -1
- package/dist/cdn/{GWMDQQIJ.js → BH7WDRGU.js} +1 -1
- package/dist/cdn/CMPHBGKB.js +2 -0
- package/dist/cdn/{IBM2BU72.js → DDA7NVBX.js} +1 -1
- package/dist/cdn/{JGJIYKDB.js → DMDXALHQ.js} +1 -1
- package/dist/cdn/{JVHLFBSS.js → DX5LK7LS.js} +1 -1
- package/dist/cdn/{3FXHEHMZ.js → ERUYMQOC.js} +1 -1
- package/dist/cdn/{E6KDF7I4.js → ESUMWLYT.js} +1 -1
- package/dist/cdn/{P2QKEA6M.js → EULFJ5JL.js} +1 -1
- package/dist/cdn/{S5AL63QJ.js → EX27CNDS.js} +1 -1
- package/dist/cdn/FYI7J2KF.js +2 -0
- package/dist/cdn/{6KZXKGN5.js → GGZNH26O.js} +1 -1
- package/dist/cdn/{XWRRNCXX.js → HIQSXKPT.js} +1 -1
- package/dist/cdn/{RD6ECNGH.js → HS2WQJEO.js} +1 -1
- package/dist/cdn/{6MJZVFHH.js → IBCUXQZ4.js} +1 -1
- package/dist/cdn/{KKRB2MKQ.js → IC4OZCXG.js} +1 -1
- package/dist/cdn/{Y7XBFA23.js → JGD2M47O.js} +1 -1
- package/dist/cdn/KGOERXN5.js +2 -0
- package/dist/cdn/{ODQFJ4LV.js → KPXH2MNB.js} +1 -1
- package/dist/cdn/KSBWHMXE.js +2 -0
- package/dist/cdn/{CM6SMNRV.js → L3ULFQN3.js} +1 -1
- package/dist/cdn/{AHJ3Z5VK.js → LKHNZDEC.js} +1 -1
- package/dist/cdn/{UMYKMOTP.js → LXVLBS7T.js} +1 -1
- package/dist/cdn/{FBAOV5K3.js → M5E3NFDP.js} +1 -1
- package/dist/cdn/{EXMOSLLD.js → MKEUDI3M.js} +1 -1
- package/dist/cdn/{CM3VU2OY.js → MKQPW6B4.js} +1 -1
- package/dist/cdn/MVAMHZ3Q.js +2 -0
- package/dist/cdn/{5HINM2VQ.js → N265ZHHU.js} +1 -1
- package/dist/cdn/{R7CJ4O3L.js → N2S6YV3I.js} +1 -1
- package/dist/cdn/N3EATDXE.js +2 -0
- package/dist/cdn/{X67CUQNM.js → NR3BCOHU.js} +1 -1
- package/dist/cdn/{67KR6LRC.js → O2JEDVIA.js} +1 -1
- package/dist/cdn/{LOCJNU5K.js → OB7IDW6S.js} +1 -1
- package/dist/cdn/{AEUYFUBD.js → OBPCKG62.js} +1 -1
- package/dist/cdn/{PJNQHWV6.js → OCERCT4I.js} +1 -1
- package/dist/cdn/{5LC3XI7H.js → OFN7ED75.js} +1 -1
- package/dist/cdn/{KMEU5ARZ.js → OQSFVGUL.js} +1 -1
- package/dist/cdn/{DQCPY5W2.js → PA3PSUQ3.js} +1 -1
- package/dist/cdn/PYFMKPMO.js +2 -0
- package/dist/cdn/QRZ32JMG.js +2 -0
- package/dist/cdn/{3HD6QKW5.js → R3GNKVFS.js} +1 -1
- package/dist/cdn/R3Y2F64T.js +2 -0
- package/dist/cdn/{PBODMDBX.js → RBVV7JGY.js} +9 -9
- package/dist/cdn/{ESYVOEM3.js → S32VCEG7.js} +1 -1
- package/dist/cdn/{OML6Q2NW.js → S7ASARWB.js} +1 -1
- package/dist/cdn/{WXICRF7E.js → SVMC3JP5.js} +1 -1
- package/dist/cdn/SYXU6NZX.js +2 -0
- package/dist/cdn/{JUZN32FE.js → T3CSQ5DU.js} +1 -1
- package/dist/cdn/T3NJTAF3.js +2 -0
- package/dist/cdn/{LJRBB6FP.js → T53WJZQN.js} +1 -1
- package/dist/cdn/TES5ZESK.js +2 -0
- package/dist/cdn/U5ZB4YD6.js +2 -0
- package/dist/cdn/{3AXJHQ2G.js → UNDCO72C.js} +1 -1
- package/dist/cdn/{S76F4PYC.js → UR537UXK.js} +1 -1
- package/dist/cdn/{XJNMW7WT.js → VMAOMKFN.js} +1 -1
- package/dist/cdn/{KZPT7DNZ.js → VV7JMGHL.js} +1 -1
- package/dist/cdn/{5HA57VEM.js → W6CIWZSM.js} +1 -1
- package/dist/cdn/{SZZ4H4ZK.js → WA5XK3HC.js} +1 -1
- package/dist/cdn/{6TTUH24U.js → WD4QY4YU.js} +1 -1
- package/dist/cdn/{W7FIZJJV.js → WESXMGHU.js} +1 -1
- package/dist/cdn/{SJN44JLK.js → WFDVEHVL.js} +1 -1
- package/dist/cdn/{JSLCGSQY.js → WI3CE5TT.js} +1 -1
- package/dist/cdn/{FEYXO2GF.js → WNZ2PSFZ.js} +1 -1
- package/dist/cdn/{WURCLA4B.js → XLJSZ42M.js} +1 -1
- package/dist/cdn/{JQ46RTG7.js → XM6GBBOL.js} +1 -1
- package/dist/cdn/{QLSZLTAV.js → YE5ASSSN.js} +1 -1
- package/dist/cdn/{P6S4F5LJ.js → ZBLRD77K.js} +1 -1
- package/dist/cdn/ZZRH7LXO.js +2 -0
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/bar-chart-series.js +1 -1
- package/dist/chunks/box-plot-data.js +1 -1
- package/dist/chunks/box-plot-model.js +1 -1
- package/dist/chunks/class-breaks.js +375 -196
- package/dist/chunks/combo-bar-line-chart-model.js +1 -1
- package/dist/chunks/heat-chart-model.js +80 -55
- package/dist/chunks/index.js +1 -1
- package/dist/chunks/index2.js +2 -1
- package/dist/chunks/index4.js +395 -368
- package/dist/chunks/index5.js +30 -16
- package/dist/chunks/index6.js +95 -180
- package/dist/chunks/index7.js +63 -96
- package/dist/chunks/model-setter.js +5 -4
- package/dist/chunks/negative-values-stacked-to-baseline.js +1 -1
- package/dist/chunks/serial-chart-data.js +459 -428
- package/dist/chunks/serial-chart-model.js +21 -21
- package/dist/chunks/type-guards3.js +1 -1
- package/dist/chunks/utils.js +1 -1
- package/dist/chunks/web-component-utils.js +1 -1
- package/dist/chunks/x-bounds.js +1 -1
- package/dist/components/arcgis-chart/customElement.js +1874 -1852
- package/dist/components/arcgis-charts-action-bar/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-format/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-guide/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +113 -115
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +3 -3
- package/dist/json-schema/index.d.ts +16 -2
- package/dist/model/heat-chart-model/heat-chart-model.d.ts +7 -0
- package/dist/spec/web-chart.d.ts +5 -1
- package/package.json +3 -3
- package/dist/cdn/263JBBGM.js +0 -2
- package/dist/cdn/35KB444X.js +0 -2
- package/dist/cdn/4HY2RXSW.js +0 -2
- package/dist/cdn/66KACO5S.js +0 -2
- package/dist/cdn/AG3TVVQ2.js +0 -2
- package/dist/cdn/ALLLIA7C.js +0 -2
- package/dist/cdn/CDQ7GWYX.js +0 -2
- package/dist/cdn/CSP5QTAR.js +0 -2
- package/dist/cdn/DK6HSROT.js +0 -2
- package/dist/cdn/EZWN2KJB.js +0 -2
- package/dist/cdn/FYM7POP4.js +0 -2
- package/dist/cdn/IYGAISDT.js +0 -2
- package/dist/cdn/J33CC7V4.js +0 -2
- package/dist/cdn/KNQ5BIHK.js +0 -2
- package/dist/cdn/KXB6IFTK.js +0 -2
- package/dist/cdn/SH6SDXJC.js +0 -2
- package/dist/cdn/SYUVV7NT.js +0 -2
- package/dist/cdn/XGNWXJ66.js +0 -2
- package/dist/chunks/index8.js +0 -66
- /package/dist/cdn/{AUFWCLGL.js → COYWSD6X.js} +0 -0
- /package/dist/cdn/{BVUORLWQ.js → Y2AULE2F.js} +0 -0
package/dist/chunks/index4.js
CHANGED
|
@@ -1,40 +1,59 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { getElementLocale as
|
|
3
|
-
import { cloneDeep as n, isEmpty as
|
|
4
|
-
import { DateTime as
|
|
5
|
-
import { af as
|
|
6
|
-
import { W as
|
|
7
|
-
import { c as
|
|
8
|
-
import { C as
|
|
9
|
-
import { h as
|
|
10
|
-
import { g as
|
|
11
|
-
import { v as
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
2
|
+
import { getElementLocale as ze } from "@arcgis/toolkit/intl";
|
|
3
|
+
import { cloneDeep as n, isEmpty as B } from "lodash-es";
|
|
4
|
+
import { DateTime as He } from "luxon";
|
|
5
|
+
import { af as $e, Q as oe, Z as Qe, c4 as se, c3 as ne, b$ as Ye, ac as Ke, Y as O, bf as Xe, O as b, bC as ee, aG as Ze, aH as Je, m as Z, h as Ue, w as er } from "./index2.js";
|
|
6
|
+
import { W as rr, ax as tr, g as ir, D as or, ad as sr } from "./index.js";
|
|
7
|
+
import { c as nr } from "./type-guards.js";
|
|
8
|
+
import { C as f, h as k, q as ae } from "./index3.js";
|
|
9
|
+
import { h as ar, n as dr, r as lr } from "./index6.js";
|
|
10
|
+
import { g as h } from "./series-types.js";
|
|
11
|
+
import { v as re, u as c, r as F, n as p, p as v, f as cr, j as te, s as C } from "./chart-object-literals.js";
|
|
12
|
+
import { p as ur, d as fr, g as pr, e as yr } from "./class-breaks.js";
|
|
13
|
+
var L = /* @__PURE__ */ ((t) => (t.NONE = "none", t.ROTATE = "rotate", t.STAGGER = "stagger", t.WRAP = "wrap", t))(L || {});
|
|
14
|
+
function de(t) {
|
|
15
|
+
const { configToUpdate: e, chartContainer: i, layer: r } = t, o = n(e);
|
|
16
|
+
if (r?.capabilities?.queryAttributeBins?.supportsFirstDayOfWeek === !0 && (!("firstDayOfWeek" in e) || e.firstDayOfWeek === void 0 || e.firstDayOfWeek === null)) {
|
|
17
|
+
const { lang: s } = ze(i ?? document.documentElement);
|
|
17
18
|
try {
|
|
18
|
-
o.firstDayOfWeek =
|
|
19
|
+
o.firstDayOfWeek = He.local().setLocale(s.replaceAll("_", "-")).startOf("week", { useLocaleWeeks: !0 }).weekday;
|
|
19
20
|
} catch {
|
|
20
21
|
}
|
|
21
22
|
}
|
|
22
23
|
return o;
|
|
23
24
|
}
|
|
24
|
-
function
|
|
25
|
-
const e = n(
|
|
26
|
-
|
|
27
|
-
const
|
|
28
|
-
|
|
25
|
+
function mr(t) {
|
|
26
|
+
const e = n(t);
|
|
27
|
+
if (ne(e)) {
|
|
28
|
+
const r = e.series[0], o = e.chartRenderer?.classBreakInfos;
|
|
29
|
+
if (o?.length && r?.classBreaksRules) {
|
|
30
|
+
r.classBreaksRules.colorRampInfo = r.classBreaksRules.colorRampInfo ?? {};
|
|
31
|
+
const { name: s, flipped: a } = r.classBreaksRules.colorRampInfo, u = ur(o, fr.esriColorRamps);
|
|
32
|
+
if (!s && u?.name && (r.classBreaksRules.colorRampInfo.name = u.name), a === void 0 && u) {
|
|
33
|
+
const y = pr({
|
|
34
|
+
numberOfClassBreaks: o.length,
|
|
35
|
+
selectedColorRamp: u
|
|
36
|
+
});
|
|
37
|
+
y.length === o.length && (r.classBreaksRules.colorRampInfo.flipped = yr(y, o));
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
return e;
|
|
42
|
+
}
|
|
43
|
+
function le(t) {
|
|
44
|
+
const e = n(t);
|
|
45
|
+
return B(t.axes) || (e.axes = t.axes?.map((i) => {
|
|
46
|
+
const r = i;
|
|
47
|
+
return delete r.calculateAutomaticMaximum, delete r.calculateAutomaticMinimum, r.title?.content.font?.style !== void 0 && (r.title.content.font.style = r.title.content.font.style.toLowerCase()), r;
|
|
29
48
|
})), e;
|
|
30
49
|
}
|
|
31
|
-
function
|
|
32
|
-
const e = n(
|
|
33
|
-
return
|
|
50
|
+
function ce(t) {
|
|
51
|
+
const e = n(t);
|
|
52
|
+
return B(t.series) || (e.series = t.series.map((i, r) => {
|
|
34
53
|
const o = i;
|
|
35
|
-
i.id === void 0 && (o.id = `Series ${Date.now()}-${
|
|
36
|
-
const s =
|
|
37
|
-
return (s === c.BarSeries || s === c.LineSeries || s === c.RadarSeries) && o.query?.outStatistics?.[0]?.statisticType === "median" && (o.query.outStatistics[0].statisticType =
|
|
54
|
+
i.id === void 0 && (o.id = `Series ${Date.now()}-${r}`);
|
|
55
|
+
const s = h(t.series, r);
|
|
56
|
+
return (s === c.BarSeries || s === c.LineSeries || s === c.RadarSeries) && o.query?.outStatistics?.[0]?.statisticType === "median" && (o.query.outStatistics[0].statisticType = F.ContinuousPercentile), s === c.BarSeries && o.multipleBarType !== void 0 && (o.stackedType = o.multipleBarType, delete o.multipleBarType), s === c.PieSeries && o.sliceGrouping !== void 0 && (o.sliceGrouping.sliceId = tr.defaultGroupOfSlicesId, o.sliceGrouping.groupName !== void 0 && (o.sliceGrouping = {
|
|
38
57
|
...o.sliceGrouping,
|
|
39
58
|
label: o.sliceGrouping.groupName
|
|
40
59
|
}, delete o.sliceGrouping.groupName), o.sliceGrouping.groupSliceSymbol !== void 0 && (o.sliceGrouping = {
|
|
@@ -43,13 +62,13 @@ function de(r) {
|
|
|
43
62
|
}, delete o.sliceGrouping.groupSliceSymbol)), o;
|
|
44
63
|
})), e;
|
|
45
64
|
}
|
|
46
|
-
function
|
|
65
|
+
function ie(t, e) {
|
|
47
66
|
const i = [];
|
|
48
|
-
return
|
|
49
|
-
if (!
|
|
50
|
-
const o =
|
|
67
|
+
return t.forEach((r) => {
|
|
68
|
+
if (!ae(r)) {
|
|
69
|
+
const o = k(r, !1);
|
|
51
70
|
if (o.fieldToSort !== void 0) {
|
|
52
|
-
const s =
|
|
71
|
+
const s = b({
|
|
53
72
|
queryObject: e,
|
|
54
73
|
fieldToMatch: o.fieldToSort
|
|
55
74
|
});
|
|
@@ -60,213 +79,213 @@ function re(r, e) {
|
|
|
60
79
|
}
|
|
61
80
|
}), i;
|
|
62
81
|
}
|
|
63
|
-
async function
|
|
64
|
-
const { configToUpdate: e, layer: i, abortSignal:
|
|
82
|
+
async function ue(t) {
|
|
83
|
+
const { configToUpdate: e, layer: i, abortSignal: r } = t, o = { ...e };
|
|
65
84
|
let s = i;
|
|
66
85
|
if (!s) {
|
|
67
|
-
const a =
|
|
68
|
-
a && (s = await
|
|
86
|
+
const a = ar(e) ? e.iLayer : e.dataSource?.layer;
|
|
87
|
+
a && (s = await Ke(a, r));
|
|
69
88
|
}
|
|
70
89
|
if (s) {
|
|
71
|
-
const a =
|
|
90
|
+
const a = O(o.series), u = h(o.series), y = o.series && o.series.length > 0 && o.series[0].x.trim() === "" || u === c.GaugeSeries && !Xe(e) || a === f.PieFromFields || a === f.BarAndLineFromFields || a === f.BoxPlotMonoField || a === f.BoxPlotMonoFieldAndSplitBy || a === f.BoxPlotMultiFields || a === f.BoxPlotMultiFieldsAndSplitBy, je = u === c.ScatterSeries || u === c.HeatSeries || a === f.BarAndLineNoAggregation || a === f.BarAndLineSplitByNoAggregation || a === f.BoxPlotMonoField || a === f.BoxPlotMonoFieldAndSplitBy || a === f.BoxPlotMonoFieldAndCategory || a === f.BoxPlotMonoFieldAndCategoryAndSplitBy || a === f.PieNoAggregation;
|
|
72
91
|
if (o.series = e.series.map((l) => {
|
|
73
92
|
const d = { ...l };
|
|
74
|
-
if (
|
|
75
|
-
const
|
|
76
|
-
if (Array.isArray(
|
|
77
|
-
const
|
|
78
|
-
fieldsList:
|
|
93
|
+
if (y || (d.x = b({ queryObject: s, fieldToMatch: l.x })), "y" in d && je) {
|
|
94
|
+
const m = d.y;
|
|
95
|
+
if (Array.isArray(m)) {
|
|
96
|
+
const S = ee({
|
|
97
|
+
fieldsList: m,
|
|
79
98
|
queryObject: s
|
|
80
99
|
});
|
|
81
|
-
|
|
82
|
-
} else "y" in d && typeof
|
|
100
|
+
S !== void 0 && "y" in d && (d.y = S);
|
|
101
|
+
} else "y" in d && typeof m == "string" && (d.y = b({ queryObject: s, fieldToMatch: m }));
|
|
83
102
|
}
|
|
84
103
|
if (l.query !== void 0) {
|
|
85
|
-
let { where:
|
|
86
|
-
if (
|
|
87
|
-
const
|
|
88
|
-
return
|
|
104
|
+
let { where: m, groupByFieldsForStatistics: S, outStatistics: g } = l.query;
|
|
105
|
+
if (S = ee({ fieldsList: S, queryObject: s }), g !== void 0 && (g = g.map((T) => {
|
|
106
|
+
const x = { ...T };
|
|
107
|
+
return x.onStatisticField = b({
|
|
89
108
|
queryObject: s,
|
|
90
|
-
fieldToMatch:
|
|
91
|
-
}),
|
|
92
|
-
})),
|
|
93
|
-
const
|
|
109
|
+
fieldToMatch: T.onStatisticField
|
|
110
|
+
}), x;
|
|
111
|
+
})), m !== void 0 && a === f.BarAndLineSplitBy) {
|
|
112
|
+
const T = Ze(l.query?.where), x = Je({
|
|
94
113
|
where: l.query?.where,
|
|
95
114
|
normalize: !1,
|
|
96
115
|
escape: !1
|
|
97
116
|
});
|
|
98
|
-
|
|
117
|
+
m = `${b({ queryObject: s, fieldToMatch: T })}=${x}`;
|
|
99
118
|
}
|
|
100
|
-
d.query !== void 0 && (
|
|
119
|
+
d.query !== void 0 && (m !== void 0 && (d.query.where = m), S !== void 0 && (d.query.groupByFieldsForStatistics = S), g !== void 0 && (d.query.outStatistics = g));
|
|
101
120
|
}
|
|
102
121
|
return d;
|
|
103
122
|
}), o.series[0]?.query !== void 0) {
|
|
104
123
|
const l = o.series[0].query;
|
|
105
124
|
let { orderByFields: d } = l;
|
|
106
|
-
d !== void 0 && d.length > 0 && (d =
|
|
125
|
+
d !== void 0 && d.length > 0 && (d = ie(d, s), d.length > 0 && l.orderByFields !== void 0 && (o.series[0].query.orderByFields = d));
|
|
107
126
|
}
|
|
108
127
|
if (o.orderOptions?.orderByFields !== void 0) {
|
|
109
128
|
let { orderByFields: l } = o.orderOptions;
|
|
110
|
-
l !== void 0 && l.length > 0 && (l =
|
|
129
|
+
l !== void 0 && l.length > 0 && (l = ie(l, s), l.length > 0 && (o.orderOptions.orderByFields = l));
|
|
111
130
|
}
|
|
112
|
-
if (
|
|
131
|
+
if (u === c.GaugeSeries && e.axes?.[0] !== void 0) {
|
|
113
132
|
const { minimumFromField: l, maximumFromField: d } = e.axes[0];
|
|
114
133
|
if (l !== void 0) {
|
|
115
|
-
const
|
|
116
|
-
let
|
|
117
|
-
typeof e.axes[0].minimumFromField == "string" ?
|
|
134
|
+
const m = typeof l == "string" ? l : l.onStatisticField, S = b({ queryObject: s, fieldToMatch: m });
|
|
135
|
+
let g = l;
|
|
136
|
+
typeof e.axes[0].minimumFromField == "string" ? g = S : typeof l == "object" && (g = {
|
|
118
137
|
...l,
|
|
119
|
-
onStatisticField:
|
|
120
|
-
}), e.axes[0].minimumFromField =
|
|
138
|
+
onStatisticField: S
|
|
139
|
+
}), e.axes[0].minimumFromField = g;
|
|
121
140
|
}
|
|
122
141
|
if (d !== void 0) {
|
|
123
|
-
const
|
|
124
|
-
let
|
|
125
|
-
typeof e.axes[0].maximumFromField == "string" ?
|
|
142
|
+
const m = typeof d == "string" ? d : d.onStatisticField, S = b({ queryObject: s, fieldToMatch: m });
|
|
143
|
+
let g = d;
|
|
144
|
+
typeof e.axes[0].maximumFromField == "string" ? g = S : typeof d == "object" && (g = {
|
|
126
145
|
...d,
|
|
127
|
-
onStatisticField:
|
|
128
|
-
}), e.axes[0].maximumFromField =
|
|
146
|
+
onStatisticField: S
|
|
147
|
+
}), e.axes[0].maximumFromField = g;
|
|
129
148
|
}
|
|
130
149
|
}
|
|
131
150
|
}
|
|
132
151
|
return o;
|
|
133
152
|
}
|
|
134
|
-
function
|
|
135
|
-
const e = n(
|
|
136
|
-
if (!
|
|
137
|
-
const
|
|
138
|
-
|
|
153
|
+
function fe(t) {
|
|
154
|
+
const e = n(t);
|
|
155
|
+
if (!B(t.series) && h(t.series) === c.BoxPlotSeries) {
|
|
156
|
+
const r = e.series[0];
|
|
157
|
+
r && (r.showOutliers !== void 0 && (t.showOutliers === void 0 && (e.showOutliers = r.showOutliers), delete r.showOutliers), r.standardizeValues !== void 0 && (t.standardizeValues === void 0 && (e.standardizeValues = r.standardizeValues), delete r.standardizeValues), r.showMean !== void 0 && (t.showMean === void 0 && (e.showMean = r.showMean), delete r.showMean));
|
|
139
158
|
}
|
|
140
159
|
return e;
|
|
141
160
|
}
|
|
142
|
-
function
|
|
161
|
+
function pe(t) {
|
|
143
162
|
const e = {
|
|
144
163
|
orderType: p.Category,
|
|
145
164
|
orderBy: v.Ascending
|
|
146
|
-
}, i =
|
|
165
|
+
}, i = t.query?.orderByFields?.[0];
|
|
147
166
|
if (i !== void 0) {
|
|
148
|
-
const { outStatisticFieldName:
|
|
149
|
-
|
|
167
|
+
const { outStatisticFieldName: r, statisticType: o } = t.query?.outStatistics?.[0] ?? {}, s = k(i);
|
|
168
|
+
r !== void 0 && s.fieldToSort === r && o !== void 0 && (o === F.Average || o === "mean" ? e.orderType = p.Mean : o === F.ContinuousPercentile && (e.orderType = p.Median)), e.orderBy = s.orderBy ?? v.Ascending;
|
|
150
169
|
}
|
|
151
170
|
return e;
|
|
152
171
|
}
|
|
153
|
-
function
|
|
172
|
+
function ye(t) {
|
|
154
173
|
let e = !1;
|
|
155
|
-
const i = Array.from(new Set(
|
|
156
|
-
return i.length === 2 && i.includes(c.BoxPlotSeries) && i.includes(c.LineSeries) && (e =
|
|
174
|
+
const i = Array.from(new Set(t.series.map((r) => r.type)));
|
|
175
|
+
return i.length === 2 && i.includes(c.BoxPlotSeries) && i.includes(c.LineSeries) && (e = t.series.find((o) => o.type === c.LineSeries)?.query?.outStatistics?.[0] !== void 0), e;
|
|
157
176
|
}
|
|
158
|
-
function
|
|
159
|
-
const e = n(
|
|
160
|
-
if (!
|
|
177
|
+
function me(t) {
|
|
178
|
+
const e = n(t);
|
|
179
|
+
if (!B(e.series) && h(t.series) === c.BoxPlotSeries) {
|
|
161
180
|
if (e.orderOptions?.data === void 0) {
|
|
162
|
-
const
|
|
163
|
-
|
|
164
|
-
orderType:
|
|
165
|
-
orderBy:
|
|
181
|
+
const r = pe(t.series[0]);
|
|
182
|
+
r.orderType !== void 0 && (e.orderOptions ??= {}, e.orderOptions.data = {
|
|
183
|
+
orderType: r.orderType,
|
|
184
|
+
orderBy: r.orderBy
|
|
166
185
|
});
|
|
167
186
|
}
|
|
168
|
-
if (e.series =
|
|
169
|
-
const o =
|
|
170
|
-
return
|
|
171
|
-
}),
|
|
187
|
+
if (e.series = t.series.map((r) => {
|
|
188
|
+
const o = r;
|
|
189
|
+
return B(o.x?.trim()) && (o.x = ir), delete o.query?.orderByFields, o;
|
|
190
|
+
}), ye(e)) {
|
|
172
191
|
e.showMean = !0;
|
|
173
|
-
const
|
|
192
|
+
const r = e.series.find(
|
|
174
193
|
(o) => o.type === c.BoxPlotSeries
|
|
175
194
|
);
|
|
176
195
|
e.series.forEach((o) => {
|
|
177
|
-
o.type === c.LineSeries && (delete o.query?.groupByFieldsForStatistics, delete o.query?.outStatistics, delete o.query?.orderByFields,
|
|
196
|
+
o.type === c.LineSeries && (delete o.query?.groupByFieldsForStatistics, delete o.query?.outStatistics, delete o.query?.orderByFields, r && (o.y = r.y));
|
|
178
197
|
});
|
|
179
198
|
}
|
|
180
|
-
e.series =
|
|
181
|
-
const o =
|
|
199
|
+
e.series = t.series.map((r) => {
|
|
200
|
+
const o = r;
|
|
182
201
|
return delete o.query?.outStatistics, o;
|
|
183
202
|
});
|
|
184
203
|
}
|
|
185
204
|
return e;
|
|
186
205
|
}
|
|
187
|
-
function
|
|
188
|
-
const e = n(
|
|
206
|
+
function Se(t) {
|
|
207
|
+
const e = n(t);
|
|
189
208
|
return e.legend !== void 0 && !Number.isFinite(e.legend.maxHeight) && (e.legend.maxHeight = void 0), e;
|
|
190
209
|
}
|
|
191
|
-
function
|
|
192
|
-
const e = n(
|
|
210
|
+
function ge(t) {
|
|
211
|
+
const e = n(t);
|
|
193
212
|
return "dataSource" in e && e.dataSource.layer && (e.iLayer = e.dataSource.layer, delete e.dataSource), e;
|
|
194
213
|
}
|
|
195
|
-
function
|
|
196
|
-
const e = n(
|
|
197
|
-
return i.add(
|
|
214
|
+
function ve(t) {
|
|
215
|
+
const e = n(t), i = /* @__PURE__ */ new Set(), r = e.id ?? "";
|
|
216
|
+
return i.add(r), e.series.forEach((o) => {
|
|
198
217
|
let s = o.id;
|
|
199
218
|
i.has(s) && (s = `${s}_${Date.now()}`, o.id = s), i.add(s);
|
|
200
219
|
}), e;
|
|
201
220
|
}
|
|
202
|
-
async function
|
|
203
|
-
const { configToUpdate: e, layer: i, chartContainer:
|
|
221
|
+
async function Be(t) {
|
|
222
|
+
const { configToUpdate: e, layer: i, chartContainer: r, abortSignal: o } = t;
|
|
204
223
|
let s = n(e);
|
|
205
|
-
if (s =
|
|
206
|
-
const a =
|
|
207
|
-
s =
|
|
224
|
+
if (s = le(s), s = ce(s), s = await ue({ configToUpdate: s, layer: i, abortSignal: o }), se(s)) {
|
|
225
|
+
const a = fe(s);
|
|
226
|
+
s = me(a);
|
|
208
227
|
}
|
|
209
|
-
return s =
|
|
228
|
+
return s = Se(s), s = ve(s), ne(s) && !nr(i) && (s = de({ configToUpdate: s, chartContainer: r, layer: i })), s;
|
|
210
229
|
}
|
|
211
|
-
function
|
|
212
|
-
const e = n(
|
|
213
|
-
return e?.orderOptions?.orderByFields !== void 0 &&
|
|
230
|
+
function he(t) {
|
|
231
|
+
const e = n(t);
|
|
232
|
+
return e?.orderOptions?.orderByFields !== void 0 && O(t.series) === f.PieFromFields && (e.orderOptions.orderByFields = t?.orderOptions?.orderByFields?.map(
|
|
214
233
|
(i) => {
|
|
215
|
-
let
|
|
216
|
-
return i !== void 0 && i.includes("arcgis_charts_pie_category_from_fields_name") && (
|
|
234
|
+
let r = n(i);
|
|
235
|
+
return i !== void 0 && i.includes("arcgis_charts_pie_category_from_fields_name") && (r = i.replace(
|
|
217
236
|
"arcgis_charts_pie_category_from_fields_name",
|
|
218
|
-
|
|
219
|
-
)),
|
|
237
|
+
Z
|
|
238
|
+
)), r;
|
|
220
239
|
}
|
|
221
240
|
)), e;
|
|
222
241
|
}
|
|
223
|
-
function
|
|
224
|
-
const e = n(
|
|
225
|
-
if (!
|
|
226
|
-
const
|
|
227
|
-
|
|
242
|
+
function Ce(t) {
|
|
243
|
+
const e = n(t);
|
|
244
|
+
if (!B(t.series) && e.axes?.[0] !== void 0 && h(t.series) === c.GaugeSeries && t.axes?.[0] !== void 0) {
|
|
245
|
+
const r = t.axes[0];
|
|
246
|
+
r.ticks !== void 0 && Object.hasOwn(r.ticks, "spacing") && delete r.ticks.spacing, e.axes[0] = r;
|
|
228
247
|
}
|
|
229
248
|
return e;
|
|
230
249
|
}
|
|
231
|
-
function
|
|
232
|
-
const e = n(
|
|
250
|
+
function be(t) {
|
|
251
|
+
const e = n(t), { extent: i } = e.series[0]?.query ?? {};
|
|
233
252
|
return i !== void 0 && (e.dataFilters = {
|
|
234
253
|
...e.dataFilters,
|
|
235
254
|
geometry: i
|
|
236
|
-
}, e.series.forEach((
|
|
237
|
-
"query" in
|
|
255
|
+
}, e.series.forEach((r) => {
|
|
256
|
+
"query" in r && "extent" in r.query && delete r.query.extent;
|
|
238
257
|
})), e;
|
|
239
258
|
}
|
|
240
|
-
function
|
|
241
|
-
const e = n(
|
|
242
|
-
return
|
|
259
|
+
function J(t) {
|
|
260
|
+
const e = n(t);
|
|
261
|
+
return B(t.series) || (dr(t) && t.rotated === void 0 && (e.rotated = t.series[0].rotated ?? or()), e.series.forEach((i) => {
|
|
243
262
|
i.rotated !== void 0 && delete i.rotated;
|
|
244
263
|
})), e;
|
|
245
264
|
}
|
|
246
|
-
function
|
|
247
|
-
const e = n(
|
|
248
|
-
return "dataSource" in e && !
|
|
265
|
+
function Fe(t) {
|
|
266
|
+
const e = n(t), i = t.dataSource;
|
|
267
|
+
return "dataSource" in e && !B(i) && (i.type === "featureLayer" && e.dataSource !== void 0 && (e.dataSource.type = "layer"), "featureLayer" in i && (e.dataSource.layer = i.featureLayer, delete e.dataSource.featureLayer)), e;
|
|
249
268
|
}
|
|
250
|
-
function
|
|
251
|
-
const e = n(
|
|
252
|
-
if ("dataSource" in
|
|
253
|
-
const i =
|
|
269
|
+
function Te(t) {
|
|
270
|
+
const e = n(t);
|
|
271
|
+
if ("dataSource" in t) {
|
|
272
|
+
const i = t.dataSource;
|
|
254
273
|
if (i.filter !== void 0 && i.filter.trim() !== "") {
|
|
255
|
-
const
|
|
274
|
+
const r = Ue([i.filter, e.dataFilters?.where]);
|
|
256
275
|
e.dataFilters = {
|
|
257
276
|
...e.dataFilters,
|
|
258
|
-
where:
|
|
277
|
+
where: r
|
|
259
278
|
}, delete e.dataSource.filter;
|
|
260
279
|
}
|
|
261
280
|
}
|
|
262
281
|
return e;
|
|
263
282
|
}
|
|
264
|
-
function
|
|
265
|
-
return
|
|
283
|
+
function xe(t) {
|
|
284
|
+
return t !== "originalValue";
|
|
266
285
|
}
|
|
267
|
-
function
|
|
286
|
+
function U(t) {
|
|
268
287
|
let e;
|
|
269
|
-
switch (
|
|
288
|
+
switch (t) {
|
|
270
289
|
case "mean":
|
|
271
290
|
e = p.Mean;
|
|
272
291
|
break;
|
|
@@ -279,47 +298,47 @@ function J(r) {
|
|
|
279
298
|
}
|
|
280
299
|
return e;
|
|
281
300
|
}
|
|
282
|
-
function
|
|
283
|
-
const e = n(
|
|
284
|
-
if (!
|
|
285
|
-
const
|
|
286
|
-
if (
|
|
287
|
-
if (
|
|
288
|
-
e.sortLabelsBy =
|
|
289
|
-
else if (
|
|
290
|
-
const o =
|
|
301
|
+
function Oe(t) {
|
|
302
|
+
const e = n(t);
|
|
303
|
+
if (!B(t.series) && h(t.series) === c.PieSeries) {
|
|
304
|
+
const r = e.series[0];
|
|
305
|
+
if (r) {
|
|
306
|
+
if (r.sortLabelsBy === "originalValue")
|
|
307
|
+
e.sortLabelsBy = r.sortLabelsBy;
|
|
308
|
+
else if (r.sortLabelsBy !== void 0 && e.orderOptions?.data === void 0) {
|
|
309
|
+
const o = P(e);
|
|
291
310
|
o !== void 0 && (e.orderOptions ??= {}, e.orderOptions.data = o);
|
|
292
311
|
}
|
|
293
|
-
|
|
312
|
+
r.sortLabelsBy && delete r.sortLabelsBy;
|
|
294
313
|
}
|
|
295
314
|
}
|
|
296
315
|
return e;
|
|
297
316
|
}
|
|
298
|
-
function
|
|
299
|
-
const e = n(
|
|
300
|
-
return
|
|
317
|
+
function ke(t) {
|
|
318
|
+
const e = n(t);
|
|
319
|
+
return B(t.series) || (lr(t) && t.stackedType === void 0 && (e.stackedType = t.series[0].stackedType ?? sr()), e.series.forEach((i) => {
|
|
301
320
|
"stackedType" in i && delete i.stackedType;
|
|
302
321
|
})), e;
|
|
303
322
|
}
|
|
304
|
-
function
|
|
305
|
-
const e = n(
|
|
323
|
+
function Pe(t) {
|
|
324
|
+
const e = n(t), i = t.sortOptions?.sortSeriesBy;
|
|
306
325
|
return e.orderOptions === void 0 && typeof i == "string" && (e.orderOptions ??= {}, e.orderOptions.series = {
|
|
307
326
|
orderBy: i === "DESC" ? v.Descending : v.Ascending
|
|
308
327
|
}), e;
|
|
309
328
|
}
|
|
310
|
-
function
|
|
311
|
-
const e = n(
|
|
312
|
-
return e.colorMatch === void 0 && e.series[0]?.colorType !== void 0 && (e.colorMatch = e.series[0]?.colorType ===
|
|
329
|
+
function Le(t) {
|
|
330
|
+
const e = n(t);
|
|
331
|
+
return e.colorMatch === void 0 && e.series[0]?.colorType !== void 0 && (e.colorMatch = e.series[0]?.colorType === cr.Match), e.series.forEach((i) => {
|
|
313
332
|
i.colorType !== void 0 && delete i.colorType;
|
|
314
333
|
}), e;
|
|
315
334
|
}
|
|
316
|
-
function
|
|
317
|
-
const e = n(
|
|
335
|
+
function we(t) {
|
|
336
|
+
const e = n(t);
|
|
318
337
|
if (e.sortDataBy !== void 0) {
|
|
319
338
|
if (e.orderOptions?.data === void 0) {
|
|
320
|
-
const i =
|
|
321
|
-
|
|
322
|
-
orderType:
|
|
339
|
+
const i = t.sortDataBy, r = U(i?.sortType);
|
|
340
|
+
r && r !== p.MultiAxes && (e.orderOptions ??= {}, e.orderOptions.data = {
|
|
341
|
+
orderType: r,
|
|
323
342
|
orderBy: i?.sortOrder ?? v.Ascending
|
|
324
343
|
});
|
|
325
344
|
}
|
|
@@ -327,8 +346,8 @@ function Le(r) {
|
|
|
327
346
|
}
|
|
328
347
|
return e;
|
|
329
348
|
}
|
|
330
|
-
function
|
|
331
|
-
const e = n(
|
|
349
|
+
function Ae(t) {
|
|
350
|
+
const e = n(t);
|
|
332
351
|
return e.axes?.forEach((i) => {
|
|
333
352
|
i !== void 0 && i.scrollbarVisible !== void 0 && i.scrollbar?.visible === void 0 && (i.scrollbar = {
|
|
334
353
|
...i.scrollbar,
|
|
@@ -336,361 +355,369 @@ function ke(r) {
|
|
|
336
355
|
}, delete i.scrollbarVisible);
|
|
337
356
|
}), e;
|
|
338
357
|
}
|
|
339
|
-
function
|
|
340
|
-
const e = n(
|
|
358
|
+
function De(t) {
|
|
359
|
+
const e = n(t), i = e.series[0]?.query?.orderByFields;
|
|
341
360
|
if (i !== void 0 && i.length > 0 && e.orderOptions?.orderByFields === void 0) {
|
|
342
361
|
e.orderOptions ??= {};
|
|
343
|
-
let
|
|
362
|
+
let r = !0;
|
|
344
363
|
if (i.length === 1) {
|
|
345
|
-
const { fieldToSort: o, orderBy: s } =
|
|
364
|
+
const { fieldToSort: o, orderBy: s } = k(i[0]);
|
|
346
365
|
let a;
|
|
347
|
-
o ===
|
|
366
|
+
o === t.series[0].x || o === Z ? a = p.Category : "y" in t.series[0] && o === t.series[0].y && (a = p.YValue), a && a !== p.MultiAxes && (r = !1, e.orderOptions.data === void 0 && (e.orderOptions.data = {
|
|
348
367
|
orderType: a,
|
|
349
368
|
orderBy: s?.toUpperCase() === "DESC" ? v.Descending : v.Ascending
|
|
350
369
|
}));
|
|
351
370
|
}
|
|
352
|
-
|
|
371
|
+
r && (e.orderOptions.orderByFields = i);
|
|
353
372
|
}
|
|
354
|
-
return e.series.forEach((
|
|
355
|
-
delete
|
|
373
|
+
return e.series.forEach((r) => {
|
|
374
|
+
delete r.query?.orderByFields;
|
|
356
375
|
}), e;
|
|
357
376
|
}
|
|
358
|
-
function
|
|
359
|
-
let e, i =
|
|
360
|
-
if (
|
|
361
|
-
const
|
|
362
|
-
if (
|
|
363
|
-
const { fieldToSort: s, orderBy: a } =
|
|
364
|
-
let
|
|
365
|
-
s ===
|
|
366
|
-
orderType:
|
|
377
|
+
function P(t) {
|
|
378
|
+
let e, i = t.orderOptions?.orderByFields?.[0];
|
|
379
|
+
if (t.series?.length > 0) {
|
|
380
|
+
const r = h(t.series), o = O(t.series);
|
|
381
|
+
if (r !== c.PieSeries && o !== f.BarAndLineFromFields && (i = i ?? t.series[0].x), i && !ae(i)) {
|
|
382
|
+
const { fieldToSort: s, orderBy: a } = k(i);
|
|
383
|
+
let u;
|
|
384
|
+
s === t.series[0].x || s === Z ? u = p.Category : "y" in t.series[0] && s === t.series[0].y && (u = p.YValue), u && u !== p.MultiAxes && (e = {
|
|
385
|
+
orderType: u,
|
|
367
386
|
orderBy: a?.toUpperCase() === "DESC" ? v.Descending : v.Ascending
|
|
368
387
|
});
|
|
369
388
|
}
|
|
370
389
|
}
|
|
371
390
|
return e;
|
|
372
391
|
}
|
|
373
|
-
function
|
|
374
|
-
const e = n(
|
|
392
|
+
function Me(t) {
|
|
393
|
+
const e = n(t), i = t, r = t, o = t, s = t, a = t;
|
|
375
394
|
if (e) {
|
|
376
395
|
if (e.orderOptions?.series === void 0 && i.sortOptions?.sortSeriesBy !== void 0 && (e.orderOptions ??= {}, e.orderOptions.series = {
|
|
377
|
-
preferLabel:
|
|
378
|
-
|
|
396
|
+
preferLabel: xe(
|
|
397
|
+
r.sortLabelsBy ?? i.sortOptions.sortSeriesBy.sortType
|
|
379
398
|
),
|
|
380
399
|
orderBy: i.sortOptions.sortSeriesBy.sortOrder ?? v.Ascending
|
|
381
|
-
}),
|
|
400
|
+
}), r.sortLabelsBy === "originalValue" || s.orderOptions?.data?.preferDataLabel === !1 || a.orderOptions?.data?.preferLabel === !1)
|
|
382
401
|
e.orderOptions?.data && delete e.orderOptions.data;
|
|
383
402
|
else if (e.orderOptions?.data === void 0)
|
|
384
|
-
if (
|
|
385
|
-
if (
|
|
386
|
-
const
|
|
387
|
-
|
|
388
|
-
orderType:
|
|
403
|
+
if (h(e.series) === c.BoxPlotSeries) {
|
|
404
|
+
if (r.sortLabelsBy || o.sortOptions?.sortDataBy !== void 0) {
|
|
405
|
+
const y = U(o.sortOptions?.sortDataBy?.sortType);
|
|
406
|
+
y && y !== p.MultiAxes && (e.orderOptions ??= {}, e.orderOptions.data = {
|
|
407
|
+
orderType: y,
|
|
389
408
|
orderBy: o.sortOptions?.sortDataBy?.sortOrder ?? v.Ascending
|
|
390
409
|
});
|
|
391
410
|
}
|
|
392
411
|
} else {
|
|
393
|
-
const
|
|
394
|
-
|
|
412
|
+
const y = P(e);
|
|
413
|
+
y !== void 0 && (e.orderOptions ??= {}, e.orderOptions.data = y);
|
|
395
414
|
}
|
|
396
415
|
"sortLabelsBy" in e && delete e.sortLabelsBy, "sortOptions" in e && delete e.sortOptions;
|
|
397
416
|
}
|
|
398
417
|
return e;
|
|
399
418
|
}
|
|
400
|
-
function
|
|
401
|
-
const e = n(
|
|
419
|
+
function Ie(t) {
|
|
420
|
+
const e = n(t);
|
|
402
421
|
if (e) {
|
|
403
|
-
const i =
|
|
404
|
-
if ((i ===
|
|
405
|
-
const
|
|
406
|
-
|
|
422
|
+
const i = O(e.series);
|
|
423
|
+
if ((i === f.BarAndLineFromFields || i === f.PieFromFields) && e.orderOptions?.data === void 0 && e.orderOptions?.orderByFields !== void 0) {
|
|
424
|
+
const r = P(e);
|
|
425
|
+
r !== void 0 && (e.orderOptions ??= {}, e.orderOptions.data = r, delete e.orderOptions.orderByFields);
|
|
407
426
|
}
|
|
408
427
|
}
|
|
409
428
|
return e;
|
|
410
429
|
}
|
|
411
|
-
function
|
|
412
|
-
const e = n(
|
|
413
|
-
return e.horizontalAxisLabelsBehavior ===
|
|
430
|
+
function We(t) {
|
|
431
|
+
const e = n(t);
|
|
432
|
+
return e.horizontalAxisLabelsBehavior === L.NONE && (e.horizontalAxisLabelsBehavior = te.Hide), e.verticalAxisLabelsBehavior === L.NONE && (e.verticalAxisLabelsBehavior = te.Hide), e;
|
|
414
433
|
}
|
|
415
|
-
function
|
|
416
|
-
const e = n(
|
|
417
|
-
if (i && !i.temporalBinning &&
|
|
434
|
+
function qe(t) {
|
|
435
|
+
const e = n(t), i = e.series[0];
|
|
436
|
+
if (i && !i.temporalBinning && er(e.series[0]) && ("timeIntervalSize" in i || "timeIntervalUnits" in i || "timeAggregationType" in i || "trimIncompleteTimeInterval" in i || "nullPolicy" in i)) {
|
|
418
437
|
if (i.temporalBinning = {}, i.timeIntervalSize !== void 0 && (i.temporalBinning.size = i.timeIntervalSize, delete i.timeIntervalSize), i.timeIntervalUnits) {
|
|
419
|
-
let
|
|
438
|
+
let r;
|
|
420
439
|
switch (i.timeIntervalUnits) {
|
|
421
440
|
case "esriTimeUnitsSeconds":
|
|
422
|
-
|
|
441
|
+
r = C.Second;
|
|
423
442
|
break;
|
|
424
443
|
case "esriTimeUnitsMinutes":
|
|
425
|
-
|
|
444
|
+
r = C.Minute;
|
|
426
445
|
break;
|
|
427
446
|
case "esriTimeUnitsHours":
|
|
428
|
-
|
|
447
|
+
r = C.Hour;
|
|
429
448
|
break;
|
|
430
449
|
case "esriTimeUnitsDays":
|
|
431
|
-
|
|
450
|
+
r = C.Day;
|
|
432
451
|
break;
|
|
433
452
|
case "esriTimeUnitsWeeks":
|
|
434
|
-
|
|
453
|
+
r = C.Week;
|
|
435
454
|
break;
|
|
436
455
|
case "esriTimeUnitsMonths":
|
|
437
|
-
|
|
456
|
+
r = C.Month;
|
|
438
457
|
break;
|
|
439
458
|
case "esriTimeUnitsYears":
|
|
440
|
-
|
|
459
|
+
r = C.Year;
|
|
441
460
|
break;
|
|
442
461
|
}
|
|
443
|
-
|
|
462
|
+
r !== void 0 && (i.temporalBinning.unit = r), delete i.timeIntervalUnits;
|
|
444
463
|
}
|
|
445
464
|
i.timeAggregationType && (i.temporalBinning.timeAggregationType = i.timeAggregationType, delete i.timeAggregationType), i.trimIncompleteTimeInterval !== void 0 && (i.temporalBinning.trimIncompleteTimeInterval = i.trimIncompleteTimeInterval, delete i.trimIncompleteTimeInterval), i.nullPolicy && (i.temporalBinning.nullPolicy = i.nullPolicy, delete i.nullPolicy);
|
|
446
465
|
}
|
|
447
466
|
return e;
|
|
448
467
|
}
|
|
449
|
-
function
|
|
450
|
-
const e = n(
|
|
468
|
+
function Re(t) {
|
|
469
|
+
const e = n(t);
|
|
451
470
|
return e.series.forEach((i) => {
|
|
452
|
-
i.query?.outStatistics?.forEach((
|
|
453
|
-
|
|
471
|
+
i.query?.outStatistics?.forEach((r) => {
|
|
472
|
+
r.statisticType === "percentile_cont" ? r.statisticType = F.ContinuousPercentile : r.statisticType === "percentile_disc" && (r.statisticType = F.DiscretePercentile);
|
|
454
473
|
});
|
|
455
474
|
}), e;
|
|
456
475
|
}
|
|
457
|
-
function
|
|
458
|
-
const e = n(
|
|
476
|
+
function Ee(t) {
|
|
477
|
+
const e = n(t);
|
|
459
478
|
return e.subtitle === void 0 && e.subTitle && (e.subtitle = e.subTitle), delete e.subTitle, e;
|
|
460
479
|
}
|
|
461
|
-
function
|
|
462
|
-
const e = n(
|
|
480
|
+
function Ne(t) {
|
|
481
|
+
const e = n(t), i = e.series[0];
|
|
463
482
|
return i?.temporalBinning && delete i.temporalBinning?.type, e;
|
|
464
483
|
}
|
|
465
|
-
function
|
|
466
|
-
const e = n(
|
|
467
|
-
return
|
|
468
|
-
...
|
|
484
|
+
function Ve(t) {
|
|
485
|
+
const e = n(t), i = e.series[0], r = t;
|
|
486
|
+
return r.series[0]?.xTemporalBinning && (i.xTemporalBinning = {
|
|
487
|
+
...r.series[0]?.xTemporalBinning,
|
|
469
488
|
type: c.CalendarDateParts
|
|
470
|
-
}),
|
|
471
|
-
...
|
|
489
|
+
}), r.series[0]?.yTemporalBinning && (i.yTemporalBinning = {
|
|
490
|
+
...r.series[0]?.yTemporalBinning,
|
|
472
491
|
type: c.CalendarDateParts
|
|
473
492
|
}), e;
|
|
474
493
|
}
|
|
475
|
-
function
|
|
476
|
-
let e = n(
|
|
477
|
-
return e = ge(e), e;
|
|
478
|
-
}
|
|
479
|
-
function w(r) {
|
|
480
|
-
let e = n(r);
|
|
494
|
+
function Ge(t) {
|
|
495
|
+
let e = n(t);
|
|
481
496
|
return e = he(e), e;
|
|
482
497
|
}
|
|
483
|
-
function
|
|
484
|
-
let e = n(
|
|
485
|
-
return e =
|
|
486
|
-
}
|
|
487
|
-
function D(r) {
|
|
488
|
-
let e = n(r);
|
|
489
|
-
return e = Z(e), e;
|
|
498
|
+
function w(t) {
|
|
499
|
+
let e = n(t);
|
|
500
|
+
return e = Ce(e), e;
|
|
490
501
|
}
|
|
491
|
-
function
|
|
492
|
-
let e = n(
|
|
502
|
+
function A(t) {
|
|
503
|
+
let e = n(t);
|
|
493
504
|
return e = be(e), e;
|
|
494
505
|
}
|
|
495
|
-
function
|
|
496
|
-
let e = n(
|
|
506
|
+
function D(t) {
|
|
507
|
+
let e = n(t);
|
|
508
|
+
return e = J(e), e;
|
|
509
|
+
}
|
|
510
|
+
function M(t) {
|
|
511
|
+
let e = n(t);
|
|
497
512
|
return e = Fe(e), e;
|
|
498
513
|
}
|
|
499
|
-
function
|
|
500
|
-
let e = n(
|
|
501
|
-
return e =
|
|
514
|
+
function I(t) {
|
|
515
|
+
let e = n(t);
|
|
516
|
+
return e = Te(e), e;
|
|
502
517
|
}
|
|
503
|
-
function
|
|
504
|
-
let e = n(
|
|
505
|
-
return e =
|
|
518
|
+
function W(t) {
|
|
519
|
+
let e = n(t);
|
|
520
|
+
return e = Oe(e), e;
|
|
506
521
|
}
|
|
507
|
-
function
|
|
508
|
-
let e = n(
|
|
522
|
+
function q(t) {
|
|
523
|
+
let e = n(t);
|
|
509
524
|
return e = Pe(e), e;
|
|
510
525
|
}
|
|
511
|
-
function
|
|
512
|
-
|
|
526
|
+
function R(t) {
|
|
527
|
+
let e = n(t);
|
|
528
|
+
return e = Le(e), e;
|
|
513
529
|
}
|
|
514
|
-
function
|
|
515
|
-
|
|
516
|
-
return oe(e) && (e = Le(e)), e;
|
|
530
|
+
function E(t) {
|
|
531
|
+
return Ae(t);
|
|
517
532
|
}
|
|
518
|
-
function
|
|
519
|
-
|
|
533
|
+
function N(t) {
|
|
534
|
+
let e = n(t);
|
|
535
|
+
return se(e) && (e = we(e)), e;
|
|
520
536
|
}
|
|
521
|
-
function
|
|
522
|
-
return
|
|
537
|
+
function V(t) {
|
|
538
|
+
return ke(t);
|
|
523
539
|
}
|
|
524
|
-
function
|
|
525
|
-
return
|
|
540
|
+
function G(t) {
|
|
541
|
+
return Me(t);
|
|
526
542
|
}
|
|
527
|
-
function
|
|
528
|
-
return
|
|
543
|
+
function _(t) {
|
|
544
|
+
return ge(t);
|
|
529
545
|
}
|
|
530
|
-
function
|
|
531
|
-
return
|
|
546
|
+
function j(t) {
|
|
547
|
+
return Ie(t);
|
|
532
548
|
}
|
|
533
|
-
function
|
|
534
|
-
return We(
|
|
549
|
+
function z(t) {
|
|
550
|
+
return We(t);
|
|
535
551
|
}
|
|
536
|
-
function
|
|
537
|
-
return qe(
|
|
552
|
+
function H(t) {
|
|
553
|
+
return qe(t);
|
|
538
554
|
}
|
|
539
|
-
function
|
|
540
|
-
|
|
541
|
-
return e = Z(e), Ie(e);
|
|
555
|
+
function $(t) {
|
|
556
|
+
return Re(t);
|
|
542
557
|
}
|
|
543
|
-
function
|
|
544
|
-
let e = n(
|
|
545
|
-
return e =
|
|
558
|
+
function Q(t) {
|
|
559
|
+
let e = n(t);
|
|
560
|
+
return e = J(e), Ee(e);
|
|
546
561
|
}
|
|
547
|
-
function
|
|
548
|
-
let e = n(
|
|
562
|
+
function Y(t) {
|
|
563
|
+
let e = n(t);
|
|
549
564
|
return e = Ne(e), e;
|
|
550
565
|
}
|
|
551
|
-
function
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
566
|
+
function K(t) {
|
|
567
|
+
let e = n(t);
|
|
568
|
+
return e = Ve(e), e;
|
|
569
|
+
}
|
|
570
|
+
function X(t) {
|
|
571
|
+
let e = n(t);
|
|
572
|
+
return e = mr(e), e;
|
|
573
|
+
}
|
|
574
|
+
function _e(t) {
|
|
575
|
+
const { versionsToConvert: e, configToUpdate: i } = t;
|
|
576
|
+
let r = n(i);
|
|
577
|
+
return e.length > 0 && r !== void 0 && (r = De(r), e.includes(oe) || e.includes(Ye) ? (r = Ge(r), r = w(r), r = A(r), r = D(r), r = M(r), r = I(r), r = W(r), r = q(r), r = R(r), r = E(r), r = N(r), r = V(r), r = G(r), r = _(r), r = j(r), r = z(r), r = H(r), r = $(r), r = Q(r), r = Y(r), r = K(r), r = X(r)) : e.forEach((o) => {
|
|
578
|
+
if (r !== void 0)
|
|
556
579
|
switch (o) {
|
|
557
580
|
case "1.0.1":
|
|
558
|
-
|
|
581
|
+
r = w(r);
|
|
559
582
|
break;
|
|
560
583
|
case "3.4.0":
|
|
561
|
-
|
|
584
|
+
r = A(r);
|
|
562
585
|
break;
|
|
563
586
|
case "4.0.0":
|
|
564
|
-
|
|
587
|
+
r = D(r);
|
|
565
588
|
break;
|
|
566
589
|
case "4.0.1":
|
|
567
|
-
|
|
590
|
+
r = M(r);
|
|
568
591
|
break;
|
|
569
592
|
case "6.4.0":
|
|
570
|
-
|
|
593
|
+
r = I(r);
|
|
571
594
|
break;
|
|
572
595
|
case "7.5.1":
|
|
573
|
-
|
|
596
|
+
r = W(r);
|
|
574
597
|
break;
|
|
575
598
|
case "8.0.0":
|
|
576
|
-
|
|
599
|
+
r = q(r);
|
|
577
600
|
break;
|
|
578
601
|
case "9.2.0":
|
|
579
|
-
|
|
602
|
+
r = R(r);
|
|
580
603
|
break;
|
|
581
604
|
case "9.7.0":
|
|
582
|
-
|
|
605
|
+
r = E(r);
|
|
583
606
|
break;
|
|
584
607
|
case "10.0.0":
|
|
585
|
-
|
|
608
|
+
r = N(r);
|
|
586
609
|
break;
|
|
587
610
|
case "11.0.0":
|
|
588
|
-
|
|
611
|
+
r = V(r);
|
|
589
612
|
break;
|
|
590
613
|
case "14.0.1":
|
|
591
|
-
|
|
614
|
+
r = G(r);
|
|
592
615
|
break;
|
|
593
616
|
case "16.0.0":
|
|
594
|
-
|
|
617
|
+
r = _(r);
|
|
595
618
|
break;
|
|
596
619
|
case "16.1.0":
|
|
597
|
-
|
|
620
|
+
r = j(r);
|
|
598
621
|
break;
|
|
599
622
|
case "18.1.3":
|
|
600
|
-
|
|
623
|
+
r = z(r);
|
|
601
624
|
break;
|
|
602
625
|
case "20.1.0":
|
|
603
|
-
|
|
626
|
+
r = H(r);
|
|
604
627
|
break;
|
|
605
628
|
case "21.0.0":
|
|
606
|
-
|
|
629
|
+
r = $(r);
|
|
607
630
|
break;
|
|
608
631
|
case "23.2.0":
|
|
609
|
-
|
|
632
|
+
r = Q(r);
|
|
610
633
|
break;
|
|
611
634
|
case "24.7.0":
|
|
612
|
-
|
|
635
|
+
r = Y(r);
|
|
613
636
|
break;
|
|
614
637
|
case "24.8.0":
|
|
615
|
-
|
|
638
|
+
r = K(r);
|
|
639
|
+
break;
|
|
640
|
+
case "25.0.0":
|
|
641
|
+
r = X(r);
|
|
616
642
|
break;
|
|
617
643
|
}
|
|
618
|
-
}),
|
|
619
|
-
}
|
|
620
|
-
async function
|
|
621
|
-
let o =
|
|
622
|
-
if (
|
|
623
|
-
const s =
|
|
624
|
-
await s?.load({ signal:
|
|
625
|
-
const a =
|
|
626
|
-
(
|
|
627
|
-
versionsToConvert:
|
|
644
|
+
}), r.version = rr), r;
|
|
645
|
+
}
|
|
646
|
+
async function Pr(t, e, i, r) {
|
|
647
|
+
let o = t;
|
|
648
|
+
if (t) {
|
|
649
|
+
const s = $e(e);
|
|
650
|
+
await s?.load({ signal: r }), o = await Be({ configToUpdate: t, layer: s, chartContainer: i, abortSignal: r });
|
|
651
|
+
const a = t.version ?? oe, { versionStatus: u, versions: y } = Qe(a);
|
|
652
|
+
(u === re.Older || u === re.Unrecognized) && (o = _e({
|
|
653
|
+
versionsToConvert: y,
|
|
628
654
|
configToUpdate: o
|
|
629
655
|
}));
|
|
630
656
|
}
|
|
631
657
|
return o;
|
|
632
658
|
}
|
|
633
|
-
const
|
|
634
|
-
adjustAxes:
|
|
635
|
-
adjustSeries:
|
|
636
|
-
matchChartFieldsToLayerFields:
|
|
637
|
-
resetLegendMaxHeight:
|
|
638
|
-
moveSeriesQueryExtent:
|
|
639
|
-
moveSeriesRotatedPropToChart:
|
|
640
|
-
renameDataSourceProperties:
|
|
641
|
-
copyDataSourceFilterToConfig:
|
|
642
|
-
adjustPieFromFieldsDefaultNameAndValue:
|
|
643
|
-
removeSpacingPropertyFromGauge:
|
|
644
|
-
moveBoxPlotSeriesPropsToChart:
|
|
645
|
-
movePieSeriesSortLabelsPropToChart:
|
|
646
|
-
getProBoxPlotSortDataOption:
|
|
647
|
-
isBoxPlotConfigWithMeanLinesFromPro:
|
|
648
|
-
preventDuplicatedIds:
|
|
649
|
-
adjustBoxPlotConfig:
|
|
650
|
-
convertSortSeriesByToObject:
|
|
651
|
-
moveBoxPlotSortDataByProp:
|
|
652
|
-
handleColorMatchChanges:
|
|
653
|
-
moveScrollbarVisible:
|
|
654
|
-
moveSeriesStackedTypePropToChart:
|
|
655
|
-
convertBoxplotOldToNewDataSortType:
|
|
656
|
-
getDataOrderFromOrderByFields:
|
|
657
|
-
convertWebChartDataValueTypes:
|
|
658
|
-
moveOrConvertSeriesOrderByFieldsToChartOrderOptions:
|
|
659
|
-
convertWebChartLabelBehaviorNoneToHide:
|
|
660
|
-
handleOrderOptionsChanges:
|
|
661
|
-
applyDataOrderInstructionForFromFieldsCharts:
|
|
662
|
-
convertTemporalBinningProps:
|
|
663
|
-
convertRESTStatisticTypeToWebChartStatisticType:
|
|
664
|
-
renameChartSubtitle:
|
|
665
|
-
applyMandatoryConversions:
|
|
666
|
-
convertTo1x0x1:
|
|
659
|
+
const Lr = {
|
|
660
|
+
adjustAxes: le,
|
|
661
|
+
adjustSeries: ce,
|
|
662
|
+
matchChartFieldsToLayerFields: ue,
|
|
663
|
+
resetLegendMaxHeight: Se,
|
|
664
|
+
moveSeriesQueryExtent: be,
|
|
665
|
+
moveSeriesRotatedPropToChart: J,
|
|
666
|
+
renameDataSourceProperties: Fe,
|
|
667
|
+
copyDataSourceFilterToConfig: Te,
|
|
668
|
+
adjustPieFromFieldsDefaultNameAndValue: he,
|
|
669
|
+
removeSpacingPropertyFromGauge: Ce,
|
|
670
|
+
moveBoxPlotSeriesPropsToChart: fe,
|
|
671
|
+
movePieSeriesSortLabelsPropToChart: Oe,
|
|
672
|
+
getProBoxPlotSortDataOption: pe,
|
|
673
|
+
isBoxPlotConfigWithMeanLinesFromPro: ye,
|
|
674
|
+
preventDuplicatedIds: ve,
|
|
675
|
+
adjustBoxPlotConfig: me,
|
|
676
|
+
convertSortSeriesByToObject: Pe,
|
|
677
|
+
moveBoxPlotSortDataByProp: we,
|
|
678
|
+
handleColorMatchChanges: Le,
|
|
679
|
+
moveScrollbarVisible: Ae,
|
|
680
|
+
moveSeriesStackedTypePropToChart: ke,
|
|
681
|
+
convertBoxplotOldToNewDataSortType: U,
|
|
682
|
+
getDataOrderFromOrderByFields: P,
|
|
683
|
+
convertWebChartDataValueTypes: xe,
|
|
684
|
+
moveOrConvertSeriesOrderByFieldsToChartOrderOptions: De,
|
|
685
|
+
convertWebChartLabelBehaviorNoneToHide: We,
|
|
686
|
+
handleOrderOptionsChanges: Me,
|
|
687
|
+
applyDataOrderInstructionForFromFieldsCharts: Ie,
|
|
688
|
+
convertTemporalBinningProps: qe,
|
|
689
|
+
convertRESTStatisticTypeToWebChartStatisticType: Re,
|
|
690
|
+
renameChartSubtitle: Ee,
|
|
691
|
+
applyMandatoryConversions: Be,
|
|
692
|
+
convertTo1x0x1: Ge,
|
|
667
693
|
convertTo2x0x0: w,
|
|
668
694
|
convertTo3x5x0: A,
|
|
669
695
|
convertTo4x0x1: D,
|
|
670
696
|
convertTo5x0x0: M,
|
|
671
|
-
convertTo7x0x0:
|
|
672
|
-
convertTo7x6x0:
|
|
673
|
-
convertTo8x0x1:
|
|
674
|
-
convertTo9x3x0:
|
|
675
|
-
convertTo10x0x0:
|
|
676
|
-
convertTo11x0x0:
|
|
677
|
-
convertTo12x0x0:
|
|
678
|
-
convertTo15x0x0:
|
|
679
|
-
convertTo16x1x0:
|
|
680
|
-
convertTo16x1x1:
|
|
681
|
-
convertTo19x0x0:
|
|
682
|
-
convertTo20x2x0:
|
|
697
|
+
convertTo7x0x0: I,
|
|
698
|
+
convertTo7x6x0: W,
|
|
699
|
+
convertTo8x0x1: q,
|
|
700
|
+
convertTo9x3x0: R,
|
|
701
|
+
convertTo10x0x0: E,
|
|
702
|
+
convertTo11x0x0: N,
|
|
703
|
+
convertTo12x0x0: V,
|
|
704
|
+
convertTo15x0x0: G,
|
|
705
|
+
convertTo16x1x0: _,
|
|
706
|
+
convertTo16x1x1: j,
|
|
707
|
+
convertTo19x0x0: z,
|
|
708
|
+
convertTo20x2x0: H,
|
|
683
709
|
convertTo21x1x0: $,
|
|
684
710
|
convertTo23x3x0: Q,
|
|
685
711
|
convertTo24x8x0: Y,
|
|
686
712
|
convertTo25x0x0: K,
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
713
|
+
convertTo25x1x0: X,
|
|
714
|
+
convertTemporalBinningProps2: Ne,
|
|
715
|
+
transformPropsInHeatChart: Ve,
|
|
716
|
+
applyConversions: _e,
|
|
717
|
+
convertDataSourceToILayer: ge,
|
|
718
|
+
applyDefaultFirstDayOfWeek: de
|
|
692
719
|
};
|
|
693
720
|
export {
|
|
694
|
-
|
|
695
|
-
|
|
721
|
+
Pr as a,
|
|
722
|
+
Lr as c
|
|
696
723
|
};
|