@arcgis/charts-components 5.2.0-next.57 → 5.2.0-next.59
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/{A6QLIVFM.js → 26UUSCOV.js} +20 -20
- package/dist/cdn/2B27HWX2.js +2 -0
- package/dist/cdn/44DVV3KE.js +2 -0
- package/dist/cdn/54M3LLQH.js +2 -0
- package/dist/cdn/5NZ537SN.js +2 -0
- package/dist/cdn/5RC76C5H.js +2 -0
- package/dist/cdn/{OEYB3NZZ.js → 5RWZRHLN.js} +1 -1
- package/dist/cdn/64CBZCW7.js +2 -0
- package/dist/cdn/{PHUJHKPW.js → 6HIK7EBX.js} +1 -1
- package/dist/cdn/6KMPIGFU.js +2 -0
- package/dist/cdn/6KTWKIGJ.js +2 -0
- package/dist/cdn/{UGOWEOTC.js → AYQ4HHL6.js} +1 -1
- package/dist/cdn/AZDPAG65.js +2 -0
- package/dist/cdn/B2XDPYOL.js +2 -0
- package/dist/cdn/{LOEMTYZB.js → B5KB7HXA.js} +1 -1
- package/dist/cdn/BFT5CL7V.js +2 -0
- package/dist/cdn/BU3IX333.js +2 -0
- package/dist/cdn/COLTSCAS.js +2 -0
- package/dist/cdn/CU6R7UXF.js +2 -0
- package/dist/cdn/{NYFHPR6N.js → DAFNQT4C.js} +1 -1
- package/dist/cdn/{OS5TUH4X.js → DDUKKQIZ.js} +1 -1
- package/dist/cdn/{FQ6B5P53.js → DG6ENZ35.js} +1 -1
- package/dist/cdn/E5G6IGUP.js +2 -0
- package/dist/cdn/EFRELYIP.js +2 -0
- package/dist/cdn/EQ2X422F.js +2 -0
- package/dist/cdn/{J64IDIEG.js → EQDTX4JX.js} +1 -1
- package/dist/cdn/FHCIXPMQ.js +3 -0
- package/dist/cdn/FJGG2VVZ.js +2 -0
- package/dist/cdn/G3MWFZDW.js +2 -0
- package/dist/cdn/GC7ISTDF.js +2 -0
- package/dist/cdn/{GVUHKCSZ.js → GJ4JGGKT.js} +1 -1
- package/dist/cdn/GPABWWGF.js +2 -0
- package/dist/cdn/{DRHDCMI3.js → GQGII3CK.js} +1 -1
- package/dist/cdn/{JXZJXDU5.js → GWNHO3MZ.js} +11 -9
- package/dist/cdn/H3CYQU3L.js +2 -0
- package/dist/cdn/{HDCSZ2BJ.js → H57XAQPI.js} +2 -2
- package/dist/cdn/HD72K7JQ.js +2 -0
- package/dist/cdn/{FJPWWKHZ.js → HSVZTTYF.js} +1 -1
- package/dist/cdn/IJYXP34M.js +2 -0
- package/dist/cdn/IKSW6TU5.js +2 -0
- package/dist/cdn/{BGTNSGMQ.js → INUVRMMG.js} +1 -1
- package/dist/cdn/{6Z7SZ44K.js → IOE5YG7Q.js} +1 -1
- package/dist/cdn/IPMCTC6B.js +2 -0
- package/dist/cdn/IW7AZIV6.js +2 -0
- package/dist/cdn/{4B5XCGIW.js → J6M4AA5V.js} +1 -1
- package/dist/cdn/JWWSIFDA.js +2 -0
- package/dist/cdn/KBOIN2ZI.js +2 -0
- package/dist/cdn/KDLRVDVQ.js +2 -0
- package/dist/cdn/KJZTU3DV.js +2 -0
- package/dist/cdn/{GSD4ZLN6.js → KR7A5JG4.js} +1 -1
- package/dist/cdn/KUI3SQHQ.js +2 -0
- package/dist/cdn/KVAWYWYK.js +2 -0
- package/dist/cdn/{5PAOUYHV.js → LA5FTE2U.js} +2 -2
- package/dist/cdn/LU6YEMXO.js +2 -0
- package/dist/cdn/MJLDF2FQ.js +2 -0
- package/dist/cdn/{UYQBMPSN.js → MLLV2GML.js} +1 -1
- package/dist/cdn/MO5LDVWE.js +2 -0
- package/dist/cdn/MYDNPSD6.js +2 -0
- package/dist/cdn/NCHIDM4H.js +2 -0
- package/dist/cdn/NYDW2I5M.js +2 -0
- package/dist/cdn/{2EDBRZSQ.js → NZT3J3KJ.js} +1 -1
- package/dist/cdn/{QYNNPEED.js → OAXHS4LE.js} +1 -1
- package/dist/cdn/OKZBV5LB.js +2 -0
- package/dist/cdn/{QRJMT2DB.js → OTH3FQJJ.js} +1 -1
- package/dist/cdn/P2L3OTIA.js +2 -0
- package/dist/cdn/PA4NRD4I.js +2 -0
- package/dist/cdn/PDYOXU7M.js +2 -0
- package/dist/cdn/PXTBSPEA.js +2 -0
- package/dist/cdn/{ALOMPW5P.js → Q6VW7H3A.js} +1 -1
- package/dist/cdn/QRNP4SNY.js +2 -0
- package/dist/cdn/QTD2QGHC.js +2 -0
- package/dist/cdn/{GXGUKV7H.js → RA3GUNR3.js} +1 -1
- package/dist/cdn/{VPJVWP7S.js → RQ6HACQP.js} +1 -1
- package/dist/cdn/{2ULHNXRJ.js → SCU3SBSN.js} +1 -1
- package/dist/cdn/T3WULYNA.js +2 -0
- package/dist/cdn/TCKFUPRR.js +2 -0
- package/dist/cdn/TQYULR2I.js +2 -0
- package/dist/cdn/UL2ASLY7.js +2 -0
- package/dist/cdn/{MEQOANO2.js → UMYQZXPT.js} +1 -1
- package/dist/cdn/USNCFQ5L.js +2 -0
- package/dist/cdn/{EZ6DGROJ.js → UYMLDXJI.js} +1 -1
- package/dist/cdn/V6TEH3XV.js +2 -0
- package/dist/cdn/VME2NH7X.js +2 -0
- package/dist/cdn/{KI2XMATI.js → VXQLTYHF.js} +1 -1
- package/dist/cdn/WKCITUA3.js +2 -0
- package/dist/cdn/{CB6BIIF2.js → WMUPNT4Q.js} +1 -1
- package/dist/cdn/WWKZYBCF.js +2 -0
- package/dist/cdn/XYBOIKE4.js +2 -0
- package/dist/cdn/{2DHUAIBZ.js → YIWJ2NPY.js} +1 -1
- package/dist/cdn/YL27XTUT.js +2 -0
- package/dist/cdn/{TT6WOAKC.js → ZESW7TCR.js} +1 -1
- package/dist/cdn/ZH3BXRLT.js +2 -0
- package/dist/cdn/{6HFL4FZL.js → ZZ5FKECR.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chart-rendering/common/interfaces.d.ts +11 -8
- package/dist/chunks/action-bar-utils.js +1 -1
- package/dist/chunks/bar-chart-model.js +1 -1
- package/dist/chunks/box-plot-data.js +55 -56
- package/dist/chunks/box-plot-model.js +1 -1
- package/dist/chunks/class-breaks.js +1 -1
- package/dist/chunks/combo-bar-line-chart-model.js +6 -7
- package/dist/chunks/data.js +9 -9
- package/dist/chunks/gauge-model.js +1 -1
- package/dist/chunks/generate-x-axis-title.js +4 -4
- package/dist/chunks/heat-chart-model.js +1 -1
- package/dist/chunks/index.js +1 -1
- package/dist/chunks/index2.js +1576 -1467
- package/dist/chunks/index3.js +77 -67
- package/dist/chunks/index4.js +25 -13
- package/dist/chunks/index5.js +63 -100
- package/dist/chunks/line-chart-model.js +1 -1
- package/dist/chunks/model-setter.js +1 -1
- package/dist/chunks/negative-values-stacked-to-baseline.js +6 -6
- package/dist/chunks/pie-chart-data.js +1 -1
- package/dist/chunks/pie-chart-model.js +1 -1
- package/dist/chunks/radar-chart-model.js +1 -1
- package/dist/chunks/resource.js +5 -5
- package/dist/chunks/rounded-corners.js +5 -5
- package/dist/chunks/scatterplot-model.js +1 -1
- package/dist/chunks/serial-chart-data.js +631 -620
- package/dist/chunks/serial-chart-model.js +63 -64
- package/dist/chunks/series-length.js +1 -1
- package/dist/chunks/series-types.js +22 -18
- package/dist/chunks/type-guards2.js +30 -26
- package/dist/chunks/utils.js +50 -51
- package/dist/chunks/web-component-utils.js +2 -2
- package/dist/chunks/x-bounds.js +21 -22
- package/dist/components/arcgis-chart/customElement.d.ts +64 -23
- package/dist/components/arcgis-chart/customElement.js +6128 -6148
- package/dist/components/arcgis-charts-action-bar/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +6 -7
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +54 -53
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +10 -9
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +10 -11
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +48 -46
- package/dist/components/arcgis-charts-config-format/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-guide/customElement.js +18 -19
- package/dist/components/arcgis-charts-config-guides/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +12 -13
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram/customElement.js +12 -13
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +6 -6
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +5 -6
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +4 -5
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +18 -18
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +6 -7
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-view-charts/customElement.js +1 -1
- 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/index.js +286 -283
- package/dist/json-schema/index.d.ts +12 -2
- package/dist/model/shared/type-guards.d.ts +9 -2
- package/dist/spec/web-chart.d.ts +26 -4
- package/dist/utils/chart-config/converter/index.js +185 -166
- package/dist/utils/chart-config/utils/index.d.ts +18 -3
- package/dist/utils/cursor/interfaces.d.ts +21 -0
- package/dist/utils/type-guards/series-types.d.ts +9 -2
- package/package.json +3 -3
- package/dist/cdn/2B7R5EPU.js +0 -2
- package/dist/cdn/37UC5ORG.js +0 -2
- package/dist/cdn/3MGWFTQH.js +0 -2
- package/dist/cdn/3Z4FG2HV.js +0 -2
- package/dist/cdn/4L2YTJ24.js +0 -2
- package/dist/cdn/4MQOMRB6.js +0 -2
- package/dist/cdn/4MSUALRF.js +0 -2
- package/dist/cdn/4PMNY6J6.js +0 -2
- package/dist/cdn/4SFDTXQJ.js +0 -2
- package/dist/cdn/53DFPXFT.js +0 -2
- package/dist/cdn/5GXB34LE.js +0 -2
- package/dist/cdn/5WIDEL4K.js +0 -2
- package/dist/cdn/7IK6J5VF.js +0 -2
- package/dist/cdn/A34ROM33.js +0 -2
- package/dist/cdn/BM62ZXFE.js +0 -2
- package/dist/cdn/BNBZEIMG.js +0 -2
- package/dist/cdn/C3YMGEUW.js +0 -2
- package/dist/cdn/C64W7ELG.js +0 -2
- package/dist/cdn/CD2NGAV3.js +0 -2
- package/dist/cdn/CPRSIFTK.js +0 -2
- package/dist/cdn/DTNHSQRD.js +0 -2
- package/dist/cdn/DUAMGCAK.js +0 -2
- package/dist/cdn/E4T5VUXT.js +0 -2
- package/dist/cdn/EDYZLWGW.js +0 -3
- package/dist/cdn/EKWX6BR7.js +0 -2
- package/dist/cdn/EQXKSMAG.js +0 -2
- package/dist/cdn/F64XESDA.js +0 -2
- package/dist/cdn/G5DDARQJ.js +0 -2
- package/dist/cdn/G5FTVXQF.js +0 -2
- package/dist/cdn/GHTCOHC2.js +0 -2
- package/dist/cdn/I6LYDJKQ.js +0 -2
- package/dist/cdn/IDAMYFLT.js +0 -2
- package/dist/cdn/IH2BBWAQ.js +0 -2
- package/dist/cdn/J4C4QWY4.js +0 -2
- package/dist/cdn/JYROXMJN.js +0 -2
- package/dist/cdn/LDBJRKCM.js +0 -2
- package/dist/cdn/M5K6IJLD.js +0 -2
- package/dist/cdn/M7ZANON3.js +0 -2
- package/dist/cdn/MCJTQ4YF.js +0 -2
- package/dist/cdn/MLA3N4MI.js +0 -2
- package/dist/cdn/MR7KELUF.js +0 -2
- package/dist/cdn/MY2W3RH7.js +0 -2
- package/dist/cdn/MYK7BBLS.js +0 -2
- package/dist/cdn/N7D4B5LO.js +0 -2
- package/dist/cdn/NFU76HOO.js +0 -2
- package/dist/cdn/NZVEN4LR.js +0 -2
- package/dist/cdn/OKK5OJ6S.js +0 -2
- package/dist/cdn/PXTV6Y3K.js +0 -2
- package/dist/cdn/QJMUS3VS.js +0 -2
- package/dist/cdn/QMJ75W7D.js +0 -2
- package/dist/cdn/RKGAXZQB.js +0 -2
- package/dist/cdn/RP2TRPHY.js +0 -2
- package/dist/cdn/UIU5UYBO.js +0 -2
- package/dist/cdn/V23GYHYZ.js +0 -2
- package/dist/cdn/XWJ4GDXQ.js +0 -2
- package/dist/cdn/ZAAMSMQB.js +0 -2
- package/dist/cdn/ZALJA7E5.js +0 -2
- package/dist/cdn/ZCACFAKY.js +0 -2
- package/dist/cdn/ZKZOXEXY.js +0 -2
- package/dist/cdn/ZMBNBTJQ.js +0 -2
- package/dist/chunks/index6.js +0 -66
- /package/dist/cdn/{IVLVCLDE.js → 7NWEE7T2.js} +0 -0
|
@@ -1,59 +1,59 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { getElementLocale as
|
|
2
|
+
import { getElementLocale as $e } from "@arcgis/toolkit/intl/dom";
|
|
3
3
|
import { cloneDeep as n, isEmpty as B } from "lodash-es";
|
|
4
|
-
import { DateTime as
|
|
5
|
-
import { af as
|
|
6
|
-
import { W as
|
|
7
|
-
import { d as
|
|
8
|
-
import { C as f, h as k, q as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
4
|
+
import { DateTime as Qe } from "luxon";
|
|
5
|
+
import { af as Ye, Q as se, Z as Je, cT as ne, di as ae, ct as Ke, a$ as Xe, ac as Ze, Y as O, bo as Ue, O as b, c3 as te, aI as et, aJ as tt, m as Z, bD as rt, h as it, bJ as ot, w as st } from "../../../chunks/index2.js";
|
|
6
|
+
import { W as nt, aB as at, g as dt, G as lt, ag as ct } from "../../../chunks/index.js";
|
|
7
|
+
import { d as ut } from "../../../chunks/type-guards.js";
|
|
8
|
+
import { C as f, h as k, q as de } from "../../../chunks/index3.js";
|
|
9
|
+
import { g as h, s as ft } from "../../../chunks/series-types.js";
|
|
10
|
+
import { v as re, u as c, r as F, n as p, p as v, f as pt, j as ie, s as C } from "../../../chunks/chart-object-literals.js";
|
|
11
|
+
import { p as yt, e as mt, f as gt, h as St } from "../../../chunks/class-breaks.js";
|
|
12
|
+
import { i as vt } from "../../../chunks/rest-js-object-literals.js";
|
|
13
13
|
var L = /* @__PURE__ */ ((r) => (r.NONE = "none", r.ROTATE = "rotate", r.STAGGER = "stagger", r.WRAP = "wrap", r))(L || {});
|
|
14
|
-
function
|
|
14
|
+
function le(r) {
|
|
15
15
|
const { configToUpdate: e, chartContainer: i, layer: t } = r, o = n(e);
|
|
16
16
|
if (t?.capabilities?.queryAttributeBins?.supportsFirstDayOfWeek === !0 && (!("firstDayOfWeek" in e) || e.firstDayOfWeek === void 0 || e.firstDayOfWeek === null)) {
|
|
17
|
-
const { lang: s } =
|
|
17
|
+
const { lang: s } = $e(i ?? document.documentElement);
|
|
18
18
|
try {
|
|
19
|
-
o.firstDayOfWeek =
|
|
19
|
+
o.firstDayOfWeek = Qe.local().setLocale(s.replaceAll("_", "-")).startOf("week", { useLocaleWeeks: !0 }).weekday;
|
|
20
20
|
} catch {
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
return o;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function Bt(r) {
|
|
26
26
|
const e = n(r);
|
|
27
|
-
if (
|
|
27
|
+
if (ae(e)) {
|
|
28
28
|
const t = e.series[0], o = e.chartRenderer?.classBreakInfos;
|
|
29
29
|
if (o?.length && t?.classBreaksRules) {
|
|
30
30
|
t.classBreaksRules.colorRampInfo = t.classBreaksRules.colorRampInfo ?? {};
|
|
31
|
-
const { name: s, flipped: a } = t.classBreaksRules.colorRampInfo, u =
|
|
31
|
+
const { name: s, flipped: a } = t.classBreaksRules.colorRampInfo, u = yt(o, mt.esriColorRamps);
|
|
32
32
|
if (!s && u?.name && (t.classBreaksRules.colorRampInfo.name = u.name), a === void 0 && u) {
|
|
33
|
-
const y =
|
|
33
|
+
const y = gt({
|
|
34
34
|
numberOfClassBreaks: o.length,
|
|
35
35
|
selectedColorRamp: u
|
|
36
36
|
});
|
|
37
|
-
y.length === o.length && (t.classBreaksRules.colorRampInfo.flipped =
|
|
37
|
+
y.length === o.length && (t.classBreaksRules.colorRampInfo.flipped = St(y, o));
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
return e;
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function ce(r) {
|
|
44
44
|
const e = n(r);
|
|
45
45
|
return B(r.axes) || (e.axes = r.axes?.map((i) => {
|
|
46
46
|
const t = i;
|
|
47
47
|
return delete t.calculateAutomaticMaximum, delete t.calculateAutomaticMinimum, t.title?.content.font?.style !== void 0 && (t.title.content.font.style = t.title.content.font.style.toLowerCase()), t;
|
|
48
48
|
})), e;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function ue(r) {
|
|
51
51
|
const e = n(r);
|
|
52
52
|
return B(r.series) || (e.series = r.series.map((i, t) => {
|
|
53
53
|
const o = i;
|
|
54
54
|
i.id === void 0 && (o.id = `Series ${Date.now()}-${t}`);
|
|
55
55
|
const s = h(r.series, t);
|
|
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 =
|
|
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 = at.defaultGroupOfSlicesId, o.sliceGrouping.groupName !== void 0 && (o.sliceGrouping = {
|
|
57
57
|
...o.sliceGrouping,
|
|
58
58
|
label: o.sliceGrouping.groupName
|
|
59
59
|
}, delete o.sliceGrouping.groupName), o.sliceGrouping.groupSliceSymbol !== void 0 && (o.sliceGrouping = {
|
|
@@ -62,10 +62,10 @@ function ce(r) {
|
|
|
62
62
|
}, delete o.sliceGrouping.groupSliceSymbol)), o;
|
|
63
63
|
})), e;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function oe(r, e) {
|
|
66
66
|
const i = [];
|
|
67
67
|
return r.forEach((t) => {
|
|
68
|
-
if (!
|
|
68
|
+
if (!de(t)) {
|
|
69
69
|
const o = k(t, !1);
|
|
70
70
|
if (o.fieldToSort !== void 0) {
|
|
71
71
|
const s = b({
|
|
@@ -79,78 +79,78 @@ function ie(r, e) {
|
|
|
79
79
|
}
|
|
80
80
|
}), i;
|
|
81
81
|
}
|
|
82
|
-
async function
|
|
82
|
+
async function fe(r) {
|
|
83
83
|
const { configToUpdate: e, layer: i, abortSignal: t } = r, o = { ...e };
|
|
84
84
|
let s = i;
|
|
85
85
|
if (!s) {
|
|
86
|
-
const a =
|
|
87
|
-
a && (s = await
|
|
86
|
+
const a = Xe(e) ? e.iLayer : e.dataSource?.layer;
|
|
87
|
+
a && (s = await Ze(a, t));
|
|
88
88
|
}
|
|
89
89
|
if (s) {
|
|
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 && !
|
|
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 && !Ue(e) || a === f.PieFromFields || a === f.BarAndLineFromFields || a === f.BoxPlotMonoField || a === f.BoxPlotMonoFieldAndSplitBy || a === f.BoxPlotMultiFields || a === f.BoxPlotMultiFieldsAndSplitBy, He = 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;
|
|
91
91
|
if (o.series = e.series.map((l) => {
|
|
92
92
|
const d = { ...l };
|
|
93
|
-
if (y || (d.x = b({ queryObject: s, fieldToMatch: l.x })), "y" in d &&
|
|
93
|
+
if (y || (d.x = b({ queryObject: s, fieldToMatch: l.x })), "y" in d && He) {
|
|
94
94
|
const m = d.y;
|
|
95
95
|
if (Array.isArray(m)) {
|
|
96
|
-
const
|
|
96
|
+
const g = te({
|
|
97
97
|
fieldsList: m,
|
|
98
98
|
queryObject: s
|
|
99
99
|
});
|
|
100
|
-
|
|
100
|
+
g !== void 0 && "y" in d && (d.y = g);
|
|
101
101
|
} else "y" in d && typeof m == "string" && (d.y = b({ queryObject: s, fieldToMatch: m }));
|
|
102
102
|
}
|
|
103
103
|
if (l.query !== void 0) {
|
|
104
|
-
let { where: m, groupByFieldsForStatistics:
|
|
105
|
-
if (
|
|
104
|
+
let { where: m, groupByFieldsForStatistics: g, outStatistics: S } = l.query;
|
|
105
|
+
if (g = te({ fieldsList: g, queryObject: s }), S !== void 0 && (S = S.map((T) => {
|
|
106
106
|
const x = { ...T };
|
|
107
107
|
return x.onStatisticField = b({
|
|
108
108
|
queryObject: s,
|
|
109
109
|
fieldToMatch: T.onStatisticField
|
|
110
110
|
}), x;
|
|
111
111
|
})), m !== void 0 && a === f.BarAndLineSplitBy) {
|
|
112
|
-
const T =
|
|
112
|
+
const T = et(l.query?.where), x = tt({
|
|
113
113
|
where: l.query?.where,
|
|
114
114
|
normalize: !1,
|
|
115
115
|
escape: !1
|
|
116
116
|
});
|
|
117
117
|
m = `${b({ queryObject: s, fieldToMatch: T })}=${x}`;
|
|
118
118
|
}
|
|
119
|
-
d.query !== void 0 && (m !== void 0 && (d.query.where = m),
|
|
119
|
+
d.query !== void 0 && (m !== void 0 && (d.query.where = m), g !== void 0 && (d.query.groupByFieldsForStatistics = g), S !== void 0 && (d.query.outStatistics = S));
|
|
120
120
|
}
|
|
121
121
|
return d;
|
|
122
122
|
}), o.series[0]?.query !== void 0) {
|
|
123
123
|
const l = o.series[0].query;
|
|
124
124
|
let { orderByFields: d } = l;
|
|
125
|
-
d !== void 0 && d.length > 0 && (d =
|
|
125
|
+
d !== void 0 && d.length > 0 && (d = oe(d, s), d.length > 0 && l.orderByFields !== void 0 && (o.series[0].query.orderByFields = d));
|
|
126
126
|
}
|
|
127
127
|
if (o.orderOptions?.orderByFields !== void 0) {
|
|
128
128
|
let { orderByFields: l } = o.orderOptions;
|
|
129
|
-
l !== void 0 && l.length > 0 && (l =
|
|
129
|
+
l !== void 0 && l.length > 0 && (l = oe(l, s), l.length > 0 && (o.orderOptions.orderByFields = l));
|
|
130
130
|
}
|
|
131
131
|
if (u === c.GaugeSeries && e.axes?.[0] !== void 0) {
|
|
132
132
|
const { minimumFromField: l, maximumFromField: d } = e.axes[0];
|
|
133
133
|
if (l !== void 0) {
|
|
134
|
-
const m = typeof l == "string" ? l : l.onStatisticField,
|
|
135
|
-
let
|
|
136
|
-
typeof e.axes[0].minimumFromField == "string" ?
|
|
134
|
+
const m = typeof l == "string" ? l : l.onStatisticField, g = b({ queryObject: s, fieldToMatch: m });
|
|
135
|
+
let S = l;
|
|
136
|
+
typeof e.axes[0].minimumFromField == "string" ? S = g : typeof l == "object" && (S = {
|
|
137
137
|
...l,
|
|
138
|
-
onStatisticField:
|
|
139
|
-
}), e.axes[0].minimumFromField =
|
|
138
|
+
onStatisticField: g
|
|
139
|
+
}), e.axes[0].minimumFromField = S;
|
|
140
140
|
}
|
|
141
141
|
if (d !== void 0) {
|
|
142
|
-
const m = typeof d == "string" ? d : d.onStatisticField,
|
|
143
|
-
let
|
|
144
|
-
typeof e.axes[0].maximumFromField == "string" ?
|
|
142
|
+
const m = typeof d == "string" ? d : d.onStatisticField, g = b({ queryObject: s, fieldToMatch: m });
|
|
143
|
+
let S = d;
|
|
144
|
+
typeof e.axes[0].maximumFromField == "string" ? S = g : typeof d == "object" && (S = {
|
|
145
145
|
...d,
|
|
146
|
-
onStatisticField:
|
|
147
|
-
}), e.axes[0].maximumFromField =
|
|
146
|
+
onStatisticField: g
|
|
147
|
+
}), e.axes[0].maximumFromField = S;
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
return o;
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function pe(r) {
|
|
154
154
|
const e = n(r);
|
|
155
155
|
if (!B(r.series) && h(r.series) === c.BoxPlotSeries) {
|
|
156
156
|
const t = e.series[0];
|
|
@@ -158,7 +158,7 @@ function fe(r) {
|
|
|
158
158
|
}
|
|
159
159
|
return e;
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function ye(r) {
|
|
162
162
|
const e = {
|
|
163
163
|
orderType: p.Category,
|
|
164
164
|
orderBy: v.Ascending
|
|
@@ -169,16 +169,16 @@ function pe(r) {
|
|
|
169
169
|
}
|
|
170
170
|
return e;
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function me(r) {
|
|
173
173
|
let e = !1;
|
|
174
174
|
const i = Array.from(new Set(r.series.map((t) => t.type)));
|
|
175
175
|
return i.length === 2 && i.includes(c.BoxPlotSeries) && i.includes(c.LineSeries) && (e = r.series.find((o) => o.type === c.LineSeries)?.query?.outStatistics?.[0] !== void 0), e;
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function ge(r) {
|
|
178
178
|
const e = n(r);
|
|
179
179
|
if (!B(e.series) && h(r.series) === c.BoxPlotSeries) {
|
|
180
180
|
if (e.orderOptions?.data === void 0) {
|
|
181
|
-
const t =
|
|
181
|
+
const t = ye(r.series[0]);
|
|
182
182
|
t.orderType !== void 0 && (e.orderOptions ??= {}, e.orderOptions.data = {
|
|
183
183
|
orderType: t.orderType,
|
|
184
184
|
orderBy: t.orderBy
|
|
@@ -186,8 +186,8 @@ function me(r) {
|
|
|
186
186
|
}
|
|
187
187
|
if (e.series = r.series.map((t) => {
|
|
188
188
|
const o = t;
|
|
189
|
-
return B(o.x?.trim()) && (o.x =
|
|
190
|
-
}),
|
|
189
|
+
return B(o.x?.trim()) && (o.x = dt), delete o.query?.orderByFields, o;
|
|
190
|
+
}), me(e)) {
|
|
191
191
|
e.showMean = !0;
|
|
192
192
|
const t = e.series.find(
|
|
193
193
|
(o) => o.type === c.BoxPlotSeries
|
|
@@ -207,27 +207,37 @@ function Se(r) {
|
|
|
207
207
|
const e = n(r);
|
|
208
208
|
return e.legend !== void 0 && !Number.isFinite(e.legend.maxHeight) && (e.legend.maxHeight = void 0), e;
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function ve(r) {
|
|
211
211
|
const e = n(r);
|
|
212
212
|
return "dataSource" in e && e.dataSource.layer && (e.iLayer = e.dataSource.layer, delete e.dataSource), e;
|
|
213
213
|
}
|
|
214
|
-
function
|
|
214
|
+
function Be(r) {
|
|
215
215
|
const e = n(r), i = /* @__PURE__ */ new Set(), t = e.id ?? "";
|
|
216
216
|
return i.add(t), e.series.forEach((o) => {
|
|
217
217
|
let s = o.id;
|
|
218
218
|
i.has(s) && (s = `${s}_${Date.now()}`, o.id = s), i.add(s);
|
|
219
219
|
}), e;
|
|
220
220
|
}
|
|
221
|
-
async function
|
|
221
|
+
async function he(r) {
|
|
222
222
|
const { configToUpdate: e, layer: i, chartContainer: t, abortSignal: o } = r;
|
|
223
223
|
let s = n(e);
|
|
224
|
-
if (s =
|
|
225
|
-
const a =
|
|
226
|
-
s =
|
|
224
|
+
if (s = ce(s), s = ue(s), s = await fe({ configToUpdate: s, layer: i, abortSignal: o }), ne(s)) {
|
|
225
|
+
const a = pe(s);
|
|
226
|
+
s = ge(a);
|
|
227
227
|
}
|
|
228
|
-
return s = Se(s), s =
|
|
228
|
+
return s = Se(s), s = Be(s), ae(s) && !ut(i) && (s = le({ configToUpdate: s, chartContainer: t, layer: i })), s;
|
|
229
229
|
}
|
|
230
|
-
function
|
|
230
|
+
function Ce(r) {
|
|
231
|
+
const e = n(r), i = e.series[0];
|
|
232
|
+
if (ft(i) && i.nullCategory?.symbol) {
|
|
233
|
+
const t = i.nullCategory.symbol, o = t.type;
|
|
234
|
+
e.series?.forEach((s) => {
|
|
235
|
+
"nullCategory" in s && s.nullCategory && o === vt.SFS && (s.nullCategory.fillSymbol = t);
|
|
236
|
+
}), delete i.nullCategory.symbol;
|
|
237
|
+
}
|
|
238
|
+
return e;
|
|
239
|
+
}
|
|
240
|
+
function be(r) {
|
|
231
241
|
const e = n(r);
|
|
232
242
|
return e?.orderOptions?.orderByFields !== void 0 && O(r.series) === f.PieFromFields && (e.orderOptions.orderByFields = r?.orderOptions?.orderByFields?.map(
|
|
233
243
|
(i) => {
|
|
@@ -239,7 +249,7 @@ function he(r) {
|
|
|
239
249
|
}
|
|
240
250
|
)), e;
|
|
241
251
|
}
|
|
242
|
-
function
|
|
252
|
+
function Fe(r) {
|
|
243
253
|
const e = n(r);
|
|
244
254
|
if (!B(r.series) && e.axes?.[0] !== void 0 && h(r.series) === c.GaugeSeries && r.axes?.[0] !== void 0) {
|
|
245
255
|
const t = r.axes[0];
|
|
@@ -247,7 +257,7 @@ function Ce(r) {
|
|
|
247
257
|
}
|
|
248
258
|
return e;
|
|
249
259
|
}
|
|
250
|
-
function
|
|
260
|
+
function Te(r) {
|
|
251
261
|
const e = n(r), { extent: i } = e.series[0]?.query ?? {};
|
|
252
262
|
return i !== void 0 && (e.dataFilters = {
|
|
253
263
|
...e.dataFilters,
|
|
@@ -256,22 +266,22 @@ function be(r) {
|
|
|
256
266
|
"query" in t && "extent" in t.query && delete t.query.extent;
|
|
257
267
|
})), e;
|
|
258
268
|
}
|
|
259
|
-
function
|
|
269
|
+
function U(r) {
|
|
260
270
|
const e = n(r);
|
|
261
|
-
return B(r.series) || (
|
|
271
|
+
return B(r.series) || (rt(r) && r.rotated === void 0 && (e.rotated = r.series[0].rotated ?? lt()), e.series.forEach((i) => {
|
|
262
272
|
i.rotated !== void 0 && delete i.rotated;
|
|
263
273
|
})), e;
|
|
264
274
|
}
|
|
265
|
-
function
|
|
275
|
+
function xe(r) {
|
|
266
276
|
const e = n(r), i = r.dataSource;
|
|
267
277
|
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;
|
|
268
278
|
}
|
|
269
|
-
function
|
|
279
|
+
function Oe(r) {
|
|
270
280
|
const e = n(r);
|
|
271
281
|
if ("dataSource" in r) {
|
|
272
282
|
const i = r.dataSource;
|
|
273
283
|
if (i.filter !== void 0 && i.filter.trim() !== "") {
|
|
274
|
-
const t =
|
|
284
|
+
const t = it([i.filter, e.dataFilters?.where]);
|
|
275
285
|
e.dataFilters = {
|
|
276
286
|
...e.dataFilters,
|
|
277
287
|
where: t
|
|
@@ -280,10 +290,10 @@ function Te(r) {
|
|
|
280
290
|
}
|
|
281
291
|
return e;
|
|
282
292
|
}
|
|
283
|
-
function
|
|
293
|
+
function ke(r) {
|
|
284
294
|
return r !== "originalValue";
|
|
285
295
|
}
|
|
286
|
-
function
|
|
296
|
+
function ee(r) {
|
|
287
297
|
let e;
|
|
288
298
|
switch (r) {
|
|
289
299
|
case "mean":
|
|
@@ -298,7 +308,7 @@ function U(r) {
|
|
|
298
308
|
}
|
|
299
309
|
return e;
|
|
300
310
|
}
|
|
301
|
-
function
|
|
311
|
+
function Pe(r) {
|
|
302
312
|
const e = n(r);
|
|
303
313
|
if (!B(r.series) && h(r.series) === c.PieSeries) {
|
|
304
314
|
const t = e.series[0];
|
|
@@ -314,29 +324,29 @@ function Oe(r) {
|
|
|
314
324
|
}
|
|
315
325
|
return e;
|
|
316
326
|
}
|
|
317
|
-
function
|
|
327
|
+
function Le(r) {
|
|
318
328
|
const e = n(r);
|
|
319
|
-
return B(r.series) || (
|
|
329
|
+
return B(r.series) || (ot(r) && r.stackedType === void 0 && (e.stackedType = r.series[0].stackedType ?? ct()), e.series.forEach((i) => {
|
|
320
330
|
"stackedType" in i && delete i.stackedType;
|
|
321
331
|
})), e;
|
|
322
332
|
}
|
|
323
|
-
function
|
|
333
|
+
function we(r) {
|
|
324
334
|
const e = n(r), i = r.sortOptions?.sortSeriesBy;
|
|
325
335
|
return e.orderOptions === void 0 && typeof i == "string" && (e.orderOptions ??= {}, e.orderOptions.series = {
|
|
326
336
|
orderBy: i === "DESC" ? v.Descending : v.Ascending
|
|
327
337
|
}), e;
|
|
328
338
|
}
|
|
329
|
-
function
|
|
339
|
+
function Ae(r) {
|
|
330
340
|
const e = n(r);
|
|
331
|
-
return e.colorMatch === void 0 && e.series[0]?.colorType !== void 0 && (e.colorMatch = e.series[0]?.colorType ===
|
|
341
|
+
return e.colorMatch === void 0 && e.series[0]?.colorType !== void 0 && (e.colorMatch = e.series[0]?.colorType === pt.Match), e.series.forEach((i) => {
|
|
332
342
|
i.colorType !== void 0 && delete i.colorType;
|
|
333
343
|
}), e;
|
|
334
344
|
}
|
|
335
|
-
function
|
|
345
|
+
function De(r) {
|
|
336
346
|
const e = n(r);
|
|
337
347
|
if (e.sortDataBy !== void 0) {
|
|
338
348
|
if (e.orderOptions?.data === void 0) {
|
|
339
|
-
const i = r.sortDataBy, t =
|
|
349
|
+
const i = r.sortDataBy, t = ee(i?.sortType);
|
|
340
350
|
t && t !== p.MultiAxes && (e.orderOptions ??= {}, e.orderOptions.data = {
|
|
341
351
|
orderType: t,
|
|
342
352
|
orderBy: i?.sortOrder ?? v.Ascending
|
|
@@ -346,7 +356,7 @@ function we(r) {
|
|
|
346
356
|
}
|
|
347
357
|
return e;
|
|
348
358
|
}
|
|
349
|
-
function
|
|
359
|
+
function Me(r) {
|
|
350
360
|
const e = n(r);
|
|
351
361
|
return e.axes?.forEach((i) => {
|
|
352
362
|
i !== void 0 && i.scrollbarVisible !== void 0 && i.scrollbar?.visible === void 0 && (i.scrollbar = {
|
|
@@ -355,7 +365,7 @@ function Ae(r) {
|
|
|
355
365
|
}, delete i.scrollbarVisible);
|
|
356
366
|
}), e;
|
|
357
367
|
}
|
|
358
|
-
function
|
|
368
|
+
function Ie(r) {
|
|
359
369
|
const e = n(r), i = e.series[0]?.query?.orderByFields;
|
|
360
370
|
if (i !== void 0 && i.length > 0 && e.orderOptions?.orderByFields === void 0) {
|
|
361
371
|
e.orderOptions ??= {};
|
|
@@ -378,7 +388,7 @@ function P(r) {
|
|
|
378
388
|
let e, i = r.orderOptions?.orderByFields?.[0];
|
|
379
389
|
if (r.series?.length > 0) {
|
|
380
390
|
const t = h(r.series), o = O(r.series);
|
|
381
|
-
if (t !== c.PieSeries && o !== f.BarAndLineFromFields && (i = i ?? r.series[0].x), i && !
|
|
391
|
+
if (t !== c.PieSeries && o !== f.BarAndLineFromFields && (i = i ?? r.series[0].x), i && !de(i)) {
|
|
382
392
|
const { fieldToSort: s, orderBy: a } = k(i);
|
|
383
393
|
let u;
|
|
384
394
|
s === r.series[0].x || s === Z ? u = p.Category : "y" in r.series[0] && s === r.series[0].y && (u = p.YValue), u && u !== p.MultiAxes && (e = {
|
|
@@ -389,11 +399,11 @@ function P(r) {
|
|
|
389
399
|
}
|
|
390
400
|
return e;
|
|
391
401
|
}
|
|
392
|
-
function
|
|
402
|
+
function We(r) {
|
|
393
403
|
const e = n(r), i = r, t = r, o = r, s = r, a = r;
|
|
394
404
|
if (e) {
|
|
395
405
|
if (e.orderOptions?.series === void 0 && i.sortOptions?.sortSeriesBy !== void 0 && (e.orderOptions ??= {}, e.orderOptions.series = {
|
|
396
|
-
preferLabel:
|
|
406
|
+
preferLabel: ke(
|
|
397
407
|
t.sortLabelsBy ?? i.sortOptions.sortSeriesBy.sortType
|
|
398
408
|
),
|
|
399
409
|
orderBy: i.sortOptions.sortSeriesBy.sortOrder ?? v.Ascending
|
|
@@ -402,7 +412,7 @@ function Me(r) {
|
|
|
402
412
|
else if (e.orderOptions?.data === void 0)
|
|
403
413
|
if (h(e.series) === c.BoxPlotSeries) {
|
|
404
414
|
if (t.sortLabelsBy || o.sortOptions?.sortDataBy !== void 0) {
|
|
405
|
-
const y =
|
|
415
|
+
const y = ee(o.sortOptions?.sortDataBy?.sortType);
|
|
406
416
|
y && y !== p.MultiAxes && (e.orderOptions ??= {}, e.orderOptions.data = {
|
|
407
417
|
orderType: y,
|
|
408
418
|
orderBy: o.sortOptions?.sortDataBy?.sortOrder ?? v.Ascending
|
|
@@ -416,7 +426,7 @@ function Me(r) {
|
|
|
416
426
|
}
|
|
417
427
|
return e;
|
|
418
428
|
}
|
|
419
|
-
function
|
|
429
|
+
function qe(r) {
|
|
420
430
|
const e = n(r);
|
|
421
431
|
if (e) {
|
|
422
432
|
const i = O(e.series);
|
|
@@ -427,13 +437,13 @@ function Ie(r) {
|
|
|
427
437
|
}
|
|
428
438
|
return e;
|
|
429
439
|
}
|
|
430
|
-
function
|
|
440
|
+
function Re(r) {
|
|
431
441
|
const e = n(r);
|
|
432
|
-
return e.horizontalAxisLabelsBehavior === L.NONE && (e.horizontalAxisLabelsBehavior =
|
|
442
|
+
return e.horizontalAxisLabelsBehavior === L.NONE && (e.horizontalAxisLabelsBehavior = ie.Hide), e.verticalAxisLabelsBehavior === L.NONE && (e.verticalAxisLabelsBehavior = ie.Hide), e;
|
|
433
443
|
}
|
|
434
|
-
function
|
|
444
|
+
function Ee(r) {
|
|
435
445
|
const e = n(r), i = e.series[0];
|
|
436
|
-
if (i && !i.temporalBinning &&
|
|
446
|
+
if (i && !i.temporalBinning && st(e.series[0]) && ("timeIntervalSize" in i || "timeIntervalUnits" in i || "timeAggregationType" in i || "trimIncompleteTimeInterval" in i || "nullPolicy" in i)) {
|
|
437
447
|
if (i.temporalBinning = {}, i.timeIntervalSize !== void 0 && (i.temporalBinning.size = i.timeIntervalSize, delete i.timeIntervalSize), i.timeIntervalUnits) {
|
|
438
448
|
let t;
|
|
439
449
|
switch (i.timeIntervalUnits) {
|
|
@@ -465,7 +475,7 @@ function qe(r) {
|
|
|
465
475
|
}
|
|
466
476
|
return e;
|
|
467
477
|
}
|
|
468
|
-
function
|
|
478
|
+
function Ne(r) {
|
|
469
479
|
const e = n(r);
|
|
470
480
|
return e.series.forEach((i) => {
|
|
471
481
|
i.query?.outStatistics?.forEach((t) => {
|
|
@@ -473,15 +483,15 @@ function Re(r) {
|
|
|
473
483
|
});
|
|
474
484
|
}), e;
|
|
475
485
|
}
|
|
476
|
-
function
|
|
486
|
+
function Ve(r) {
|
|
477
487
|
const e = n(r);
|
|
478
488
|
return e.subtitle === void 0 && e.subTitle && (e.subtitle = e.subTitle), delete e.subTitle, e;
|
|
479
489
|
}
|
|
480
|
-
function
|
|
490
|
+
function Ge(r) {
|
|
481
491
|
const e = n(r), i = e.series[0];
|
|
482
492
|
return i?.temporalBinning && delete i.temporalBinning?.type, e;
|
|
483
493
|
}
|
|
484
|
-
function
|
|
494
|
+
function _e(r) {
|
|
485
495
|
const e = n(r), i = e.series[0], t = r;
|
|
486
496
|
return t.series[0]?.xTemporalBinning && (i.xTemporalBinning = {
|
|
487
497
|
...t.series[0]?.xTemporalBinning,
|
|
@@ -491,90 +501,94 @@ function Ve(r) {
|
|
|
491
501
|
type: c.CalendarDateParts
|
|
492
502
|
}), e;
|
|
493
503
|
}
|
|
494
|
-
function
|
|
504
|
+
function je(r) {
|
|
495
505
|
let e = n(r);
|
|
496
|
-
return e =
|
|
506
|
+
return e = be(e), e;
|
|
497
507
|
}
|
|
498
508
|
function w(r) {
|
|
499
509
|
let e = n(r);
|
|
500
|
-
return e =
|
|
510
|
+
return e = Fe(e), e;
|
|
501
511
|
}
|
|
502
512
|
function A(r) {
|
|
503
513
|
let e = n(r);
|
|
504
|
-
return e =
|
|
514
|
+
return e = Te(e), e;
|
|
505
515
|
}
|
|
506
516
|
function D(r) {
|
|
507
517
|
let e = n(r);
|
|
508
|
-
return e =
|
|
518
|
+
return e = U(e), e;
|
|
509
519
|
}
|
|
510
520
|
function M(r) {
|
|
511
521
|
let e = n(r);
|
|
512
|
-
return e =
|
|
522
|
+
return e = xe(e), e;
|
|
513
523
|
}
|
|
514
524
|
function I(r) {
|
|
515
525
|
let e = n(r);
|
|
516
|
-
return e =
|
|
526
|
+
return e = Oe(e), e;
|
|
517
527
|
}
|
|
518
528
|
function W(r) {
|
|
519
529
|
let e = n(r);
|
|
520
|
-
return e =
|
|
530
|
+
return e = Pe(e), e;
|
|
521
531
|
}
|
|
522
532
|
function q(r) {
|
|
523
533
|
let e = n(r);
|
|
524
|
-
return e =
|
|
534
|
+
return e = we(e), e;
|
|
525
535
|
}
|
|
526
536
|
function R(r) {
|
|
527
537
|
let e = n(r);
|
|
528
|
-
return e =
|
|
538
|
+
return e = Ae(e), e;
|
|
529
539
|
}
|
|
530
540
|
function E(r) {
|
|
531
|
-
return
|
|
541
|
+
return Me(r);
|
|
532
542
|
}
|
|
533
543
|
function N(r) {
|
|
534
544
|
let e = n(r);
|
|
535
|
-
return
|
|
545
|
+
return ne(e) && (e = De(e)), e;
|
|
536
546
|
}
|
|
537
547
|
function V(r) {
|
|
538
|
-
return
|
|
548
|
+
return Le(r);
|
|
539
549
|
}
|
|
540
550
|
function G(r) {
|
|
541
|
-
return
|
|
551
|
+
return We(r);
|
|
542
552
|
}
|
|
543
553
|
function _(r) {
|
|
544
|
-
return
|
|
554
|
+
return ve(r);
|
|
545
555
|
}
|
|
546
556
|
function j(r) {
|
|
547
|
-
return
|
|
557
|
+
return qe(r);
|
|
548
558
|
}
|
|
549
559
|
function z(r) {
|
|
550
|
-
return
|
|
560
|
+
return Re(r);
|
|
551
561
|
}
|
|
552
562
|
function H(r) {
|
|
553
|
-
return
|
|
563
|
+
return Ee(r);
|
|
554
564
|
}
|
|
555
565
|
function $(r) {
|
|
556
|
-
return
|
|
566
|
+
return Ne(r);
|
|
557
567
|
}
|
|
558
568
|
function Q(r) {
|
|
559
569
|
let e = n(r);
|
|
560
|
-
return e =
|
|
570
|
+
return e = U(e), Ve(e);
|
|
561
571
|
}
|
|
562
572
|
function Y(r) {
|
|
563
573
|
let e = n(r);
|
|
564
|
-
return e =
|
|
574
|
+
return e = Ge(e), e;
|
|
575
|
+
}
|
|
576
|
+
function J(r) {
|
|
577
|
+
let e = n(r);
|
|
578
|
+
return e = _e(e), e;
|
|
565
579
|
}
|
|
566
580
|
function K(r) {
|
|
567
581
|
let e = n(r);
|
|
568
|
-
return e =
|
|
582
|
+
return e = Bt(e), e;
|
|
569
583
|
}
|
|
570
584
|
function X(r) {
|
|
571
585
|
let e = n(r);
|
|
572
|
-
return e =
|
|
586
|
+
return h(e.series) === c.BarSeries && (e = Ce(e)), e;
|
|
573
587
|
}
|
|
574
|
-
function
|
|
588
|
+
function ze(r) {
|
|
575
589
|
const { versionsToConvert: e, configToUpdate: i } = r;
|
|
576
590
|
let t = n(i);
|
|
577
|
-
return e.length > 0 && t !== void 0 && (t =
|
|
591
|
+
return e.length > 0 && t !== void 0 && (t = Ie(t), e.includes(se) || e.includes(Ke) ? (t = je(t), t = w(t), t = A(t), t = D(t), t = M(t), t = I(t), t = W(t), t = q(t), t = R(t), t = E(t), t = N(t), t = V(t), t = G(t), t = _(t), t = j(t), t = z(t), t = H(t), t = $(t), t = Q(t), t = Y(t), t = J(t), t = K(t), t = X(t)) : e.forEach((o) => {
|
|
578
592
|
if (t !== void 0)
|
|
579
593
|
switch (o) {
|
|
580
594
|
case "1.0.1":
|
|
@@ -635,61 +649,64 @@ function _e(r) {
|
|
|
635
649
|
t = Y(t);
|
|
636
650
|
break;
|
|
637
651
|
case "24.8.0":
|
|
638
|
-
t =
|
|
652
|
+
t = J(t);
|
|
639
653
|
break;
|
|
640
654
|
case "25.0.0":
|
|
655
|
+
t = K(t);
|
|
656
|
+
break;
|
|
657
|
+
case "25.1.0":
|
|
641
658
|
t = X(t);
|
|
642
659
|
break;
|
|
643
660
|
}
|
|
644
|
-
}), t.version =
|
|
661
|
+
}), t.version = nt), t;
|
|
645
662
|
}
|
|
646
|
-
async function
|
|
663
|
+
async function Dt(r, e, i, t) {
|
|
647
664
|
let o = r;
|
|
648
665
|
if (r) {
|
|
649
|
-
const s =
|
|
650
|
-
await s?.load({ signal: t }), o = await
|
|
651
|
-
const a = r.version ??
|
|
652
|
-
(u ===
|
|
666
|
+
const s = Ye(e);
|
|
667
|
+
await s?.load({ signal: t }), o = await he({ configToUpdate: r, layer: s, chartContainer: i, abortSignal: t });
|
|
668
|
+
const a = r.version ?? se, { versionStatus: u, versions: y } = Je(a);
|
|
669
|
+
(u === re.Older || u === re.Unrecognized) && (o = ze({
|
|
653
670
|
versionsToConvert: y,
|
|
654
671
|
configToUpdate: o
|
|
655
672
|
}));
|
|
656
673
|
}
|
|
657
674
|
return o;
|
|
658
675
|
}
|
|
659
|
-
const
|
|
660
|
-
adjustAxes:
|
|
661
|
-
adjustSeries:
|
|
662
|
-
matchChartFieldsToLayerFields:
|
|
676
|
+
const Mt = {
|
|
677
|
+
adjustAxes: ce,
|
|
678
|
+
adjustSeries: ue,
|
|
679
|
+
matchChartFieldsToLayerFields: fe,
|
|
663
680
|
resetLegendMaxHeight: Se,
|
|
664
|
-
moveSeriesQueryExtent:
|
|
665
|
-
moveSeriesRotatedPropToChart:
|
|
666
|
-
renameDataSourceProperties:
|
|
667
|
-
copyDataSourceFilterToConfig:
|
|
668
|
-
adjustPieFromFieldsDefaultNameAndValue:
|
|
669
|
-
removeSpacingPropertyFromGauge:
|
|
670
|
-
moveBoxPlotSeriesPropsToChart:
|
|
671
|
-
movePieSeriesSortLabelsPropToChart:
|
|
672
|
-
getProBoxPlotSortDataOption:
|
|
673
|
-
isBoxPlotConfigWithMeanLinesFromPro:
|
|
674
|
-
preventDuplicatedIds:
|
|
675
|
-
adjustBoxPlotConfig:
|
|
676
|
-
convertSortSeriesByToObject:
|
|
677
|
-
moveBoxPlotSortDataByProp:
|
|
678
|
-
handleColorMatchChanges:
|
|
679
|
-
moveScrollbarVisible:
|
|
680
|
-
moveSeriesStackedTypePropToChart:
|
|
681
|
-
convertBoxplotOldToNewDataSortType:
|
|
681
|
+
moveSeriesQueryExtent: Te,
|
|
682
|
+
moveSeriesRotatedPropToChart: U,
|
|
683
|
+
renameDataSourceProperties: xe,
|
|
684
|
+
copyDataSourceFilterToConfig: Oe,
|
|
685
|
+
adjustPieFromFieldsDefaultNameAndValue: be,
|
|
686
|
+
removeSpacingPropertyFromGauge: Fe,
|
|
687
|
+
moveBoxPlotSeriesPropsToChart: pe,
|
|
688
|
+
movePieSeriesSortLabelsPropToChart: Pe,
|
|
689
|
+
getProBoxPlotSortDataOption: ye,
|
|
690
|
+
isBoxPlotConfigWithMeanLinesFromPro: me,
|
|
691
|
+
preventDuplicatedIds: Be,
|
|
692
|
+
adjustBoxPlotConfig: ge,
|
|
693
|
+
convertSortSeriesByToObject: we,
|
|
694
|
+
moveBoxPlotSortDataByProp: De,
|
|
695
|
+
handleColorMatchChanges: Ae,
|
|
696
|
+
moveScrollbarVisible: Me,
|
|
697
|
+
moveSeriesStackedTypePropToChart: Le,
|
|
698
|
+
convertBoxplotOldToNewDataSortType: ee,
|
|
682
699
|
getDataOrderFromOrderByFields: P,
|
|
683
|
-
convertWebChartDataValueTypes:
|
|
684
|
-
moveOrConvertSeriesOrderByFieldsToChartOrderOptions:
|
|
685
|
-
convertWebChartLabelBehaviorNoneToHide:
|
|
686
|
-
handleOrderOptionsChanges:
|
|
687
|
-
applyDataOrderInstructionForFromFieldsCharts:
|
|
688
|
-
convertTemporalBinningProps:
|
|
689
|
-
convertRESTStatisticTypeToWebChartStatisticType:
|
|
690
|
-
renameChartSubtitle:
|
|
691
|
-
applyMandatoryConversions:
|
|
692
|
-
convertTo1x0x1:
|
|
700
|
+
convertWebChartDataValueTypes: ke,
|
|
701
|
+
moveOrConvertSeriesOrderByFieldsToChartOrderOptions: Ie,
|
|
702
|
+
convertWebChartLabelBehaviorNoneToHide: Re,
|
|
703
|
+
handleOrderOptionsChanges: We,
|
|
704
|
+
applyDataOrderInstructionForFromFieldsCharts: qe,
|
|
705
|
+
convertTemporalBinningProps: Ee,
|
|
706
|
+
convertRESTStatisticTypeToWebChartStatisticType: Ne,
|
|
707
|
+
renameChartSubtitle: Ve,
|
|
708
|
+
applyMandatoryConversions: he,
|
|
709
|
+
convertTo1x0x1: je,
|
|
693
710
|
convertTo2x0x0: w,
|
|
694
711
|
convertTo3x5x0: A,
|
|
695
712
|
convertTo4x0x1: D,
|
|
@@ -709,15 +726,17 @@ const Lt = {
|
|
|
709
726
|
convertTo21x1x0: $,
|
|
710
727
|
convertTo23x3x0: Q,
|
|
711
728
|
convertTo24x8x0: Y,
|
|
712
|
-
convertTo25x0x0:
|
|
713
|
-
convertTo25x1x0:
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
729
|
+
convertTo25x0x0: J,
|
|
730
|
+
convertTo25x1x0: K,
|
|
731
|
+
convertTo25x2x0: X,
|
|
732
|
+
convertTemporalBinningProps2: Ge,
|
|
733
|
+
transformPropsInHeatChart: _e,
|
|
734
|
+
applyConversions: ze,
|
|
735
|
+
convertDataSourceToILayer: ve,
|
|
736
|
+
applyDefaultFirstDayOfWeek: le,
|
|
737
|
+
convertWebChartNullCategoryProps: Ce
|
|
719
738
|
};
|
|
720
739
|
export {
|
|
721
|
-
|
|
722
|
-
|
|
740
|
+
Mt as chartConfigConverterPrivateFunctions,
|
|
741
|
+
Dt as convertChartSpec
|
|
723
742
|
};
|