@arcgis/charts-components 5.2.0-next.1 → 5.2.0-next.3
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/{H6NH46AS.js → 23YH7MTF.js} +1 -1
- package/dist/cdn/{6JGLHOFY.js → 24LTTBTF.js} +1 -1
- package/dist/cdn/{BZCVDNC4.js → 26FWESH3.js} +2 -2
- package/dist/cdn/{X6WA2KXK.js → 2K4ODNJ4.js} +1 -1
- package/dist/cdn/{7IV6GMF7.js → 3DK6M5E7.js} +1 -1
- package/dist/cdn/{IWVS6SKP.js → 3XHZ677O.js} +1 -1
- package/dist/cdn/{7BEC5WZB.js → 3YT44D4Z.js} +1 -1
- package/dist/cdn/{6SRISPQN.js → 5FMEOIBS.js} +2 -2
- package/dist/cdn/{XMQCH4QI.js → 5G7DSKI7.js} +1 -1
- package/dist/cdn/{ZQCUJ7VE.js → 5JML3JUR.js} +1 -1
- package/dist/cdn/{45JPWIBI.js → 5QO32XSX.js} +1 -1
- package/dist/cdn/{I2M6YAUU.js → 7ABIELGZ.js} +1 -1
- package/dist/cdn/{HJHMEVMB.js → 7HIZH35G.js} +1 -1
- package/dist/cdn/{HUCSTT64.js → CCR46UHB.js} +1 -1
- package/dist/cdn/{URYNG6OA.js → CJ4POAPM.js} +1 -1
- package/dist/cdn/{7YBKGD3V.js → CRFJ2GGS.js} +1 -1
- package/dist/cdn/{KV4ZPVWQ.js → E2N2S7BH.js} +1 -1
- package/dist/cdn/{OY6UOUYX.js → E43KEVHT.js} +1 -1
- package/dist/cdn/{6LQYOBAL.js → F7Y6EWWB.js} +1 -1
- package/dist/cdn/{RKN64EJQ.js → FDXE5JLT.js} +1 -1
- package/dist/cdn/{45PJ5TQL.js → G5HVFOIO.js} +1 -1
- package/dist/cdn/{F5Q73CFW.js → G7TRU7JI.js} +1 -1
- package/dist/cdn/{TORIY3OE.js → GES3HRXE.js} +1 -1
- package/dist/cdn/{MKQAQDRM.js → GL3IXVRN.js} +1 -1
- package/dist/cdn/{B7DM7VT6.js → HCMD362H.js} +1 -1
- package/dist/cdn/{EQVQRZHJ.js → HCV34H6X.js} +1 -1
- package/dist/cdn/{S3BC57BJ.js → IHQ7R6L4.js} +1 -1
- package/dist/cdn/{ATIARKAU.js → IUFXFWXH.js} +1 -1
- package/dist/cdn/{YVVQVAJZ.js → JHYH555K.js} +1 -1
- package/dist/cdn/{CPPT5HUK.js → JRRFLDWX.js} +19 -19
- package/dist/cdn/{4OZZXXZF.js → JVHJMPFE.js} +1 -1
- package/dist/cdn/{O4M33ZPK.js → KI4HS3AM.js} +1 -1
- package/dist/cdn/{TZ4GOE2Q.js → KLC6NTPC.js} +1 -1
- package/dist/cdn/{YZQ54BRI.js → KOBNV5AQ.js} +1 -1
- package/dist/cdn/{PYKHO4QI.js → KVGEY3IQ.js} +1 -1
- package/dist/cdn/{FJPGZEGK.js → LDPHZHSF.js} +1 -1
- package/dist/cdn/{V2XJSJH4.js → LONASKGH.js} +1 -1
- package/dist/cdn/{Z7EBST4A.js → LRNADJJG.js} +1 -1
- package/dist/cdn/{V76PIVCF.js → LWODMEOP.js} +1 -1
- package/dist/cdn/{HX4236ZL.js → LYZGRYQV.js} +1 -1
- package/dist/cdn/{GCSGY6GL.js → LZYN55O4.js} +1 -1
- package/dist/cdn/{YKGZVYK2.js → MF3FGXHI.js} +1 -1
- package/dist/cdn/{PEZCCXQ7.js → MUPHTV55.js} +1 -1
- package/dist/cdn/{JILAM6NH.js → N524VXQ2.js} +1 -1
- package/dist/cdn/{47HHRDX4.js → N5ERJZPG.js} +1 -1
- package/dist/cdn/{FT2K3J7O.js → NGPMU4T3.js} +1 -1
- package/dist/cdn/{MOMKSNIZ.js → NJCZ6UTM.js} +1 -1
- package/dist/cdn/{RKKWMNWU.js → NMB6TWC2.js} +1 -1
- package/dist/cdn/{P74SXC5B.js → NNNTZU5J.js} +1 -1
- package/dist/cdn/{KC6CFXB7.js → NQQW4GKA.js} +1 -1
- package/dist/cdn/{P6SC5DD2.js → OE3UFORR.js} +1 -1
- package/dist/cdn/{V7MBHG4F.js → P2NPQAJ3.js} +1 -1
- package/dist/cdn/{KKWXEF5W.js → PC7IKOIB.js} +1 -1
- package/dist/cdn/{GUH6CQE6.js → PJUAU42S.js} +1 -1
- package/dist/cdn/{FAQDMSUC.js → PK5XIIZY.js} +1 -1
- package/dist/cdn/{3FTJIVFE.js → PSO5AURI.js} +1 -1
- package/dist/cdn/{UQPFMDJB.js → PVJEBBA7.js} +1 -1
- package/dist/cdn/{CAJVNPHZ.js → PY5Q3V6E.js} +1 -1
- package/dist/cdn/{PTFRQF65.js → PZGIXDMC.js} +1 -1
- package/dist/cdn/{AT2NWWBG.js → R45FWF7D.js} +1 -1
- package/dist/cdn/{GWQJXXP3.js → RAQZUMC6.js} +1 -1
- package/dist/cdn/{7SNOZDAD.js → RFQBUWOW.js} +1 -1
- package/dist/cdn/{PKMZ6N6M.js → RMYZGOBM.js} +1 -1
- package/dist/cdn/{FCXI523J.js → RX3RNE7F.js} +1 -1
- package/dist/cdn/{RG3I5ORH.js → TAI4RIWT.js} +1 -1
- package/dist/cdn/{XFZX5ULX.js → TNB3MBXR.js} +1 -1
- package/dist/cdn/{UNUPCA4W.js → TU3UF32Y.js} +1 -1
- package/dist/cdn/{M75ENKIU.js → TYMKFCF4.js} +1 -1
- package/dist/cdn/{P3RM2ACY.js → TZB57XD4.js} +1 -1
- package/dist/cdn/{6PAONFHB.js → U2LJZ4ML.js} +1 -1
- package/dist/cdn/{G6OHBBUT.js → U4XLNCOU.js} +1 -1
- package/dist/cdn/{TTDZKISK.js → UAJGYF4S.js} +1 -1
- package/dist/cdn/{DNMVB3A2.js → UKDTXHZT.js} +1 -1
- package/dist/cdn/{D23GGWFM.js → UT6G7RV7.js} +1 -1
- package/dist/cdn/{EUOPRFMU.js → VDG54AIC.js} +1 -1
- package/dist/cdn/{5HQ2CJEQ.js → VEA5ZR5D.js} +1 -1
- package/dist/cdn/{5MVNVHYG.js → VVKV5KKN.js} +1 -1
- package/dist/cdn/{CUJHGXNK.js → WEQBZOH7.js} +1 -1
- package/dist/cdn/{NS7OCROO.js → WO6JBNMU.js} +1 -1
- package/dist/cdn/{LKY2A3U6.js → WPPMMVD5.js} +1 -1
- package/dist/cdn/{S6PJHEJ7.js → YRBE7MBU.js} +1 -1
- package/dist/cdn/{RWEUTQWS.js → ZRFHAQL6.js} +1 -1
- package/dist/cdn/{OVM5QF7Q.js → ZRZEKOEF.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/axis-lines-symbol.js +4 -4
- package/dist/chunks/bar-chart-model.js +13 -13
- package/dist/chunks/bar-chart-series.js +1 -1
- package/dist/chunks/box-plot-data.js +5 -5
- package/dist/chunks/box-plot-model.js +18 -18
- package/dist/chunks/chart-model.js +2 -2
- package/dist/chunks/chart-ui-utils2.js +13 -13
- package/dist/chunks/class-breaks.js +5 -5
- package/dist/chunks/combo-bar-line-chart-model.js +2 -2
- package/dist/chunks/data.js +21 -21
- package/dist/chunks/gauge-model.js +14 -14
- package/dist/chunks/generate-x-axis-title.js +4 -4
- package/dist/chunks/heat-chart-model.js +19 -19
- package/dist/chunks/histogram-data.js +2 -2
- package/dist/chunks/histogram-model.js +11 -11
- package/dist/chunks/index2.js +73 -74
- package/dist/chunks/index3.js +7 -7
- package/dist/chunks/index4.js +10755 -680
- package/dist/chunks/index5.js +87 -10782
- package/dist/chunks/index6.js +63 -100
- package/dist/chunks/interfaces.js +3 -3
- package/dist/chunks/line-chart-model.js +2 -2
- package/dist/chunks/model-setter.js +10 -10
- package/dist/chunks/model-with-x-guides.js +6 -6
- package/dist/chunks/model-with-y-guides.js +2 -2
- package/dist/chunks/negative-values-stacked-to-baseline.js +2 -2
- package/dist/chunks/pie-chart-data.js +2 -2
- package/dist/chunks/pie-chart-model.js +2 -2
- package/dist/chunks/radar-chart-model.js +2 -2
- package/dist/chunks/scatterplot-model.js +18 -18
- package/dist/chunks/serial-chart-data.js +104 -104
- package/dist/chunks/serial-chart-model.js +44 -44
- package/dist/chunks/series-length.js +2 -2
- package/dist/chunks/series.js +2 -2
- package/dist/chunks/store.js +5 -5
- package/dist/chunks/time-zone.js +1 -1
- package/dist/chunks/type-guards3.js +4 -4
- package/dist/chunks/utils.js +9 -9
- package/dist/chunks/web-component-utils.js +9 -9
- package/dist/chunks/x-bounds.js +4 -4
- package/dist/components/arcgis-chart/customElement.js +730 -730
- package/dist/components/arcgis-charts-action-bar/customElement.js +19 -19
- package/dist/components/arcgis-charts-config-axis/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-colors/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +7 -7
- package/dist/components/arcgis-charts-config-format/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-general/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-guide/customElement.js +13 -13
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +4 -4
- 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-histogram-data/customElement.js +7 -7
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +14 -14
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-scatter-plot-popover/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.d.ts +13 -1
- package/dist/index.js +474 -471
- package/dist/{model.js → model/shared/setup-utils.js} +12 -12
- package/dist/utils/chart-config/converter/index.js +723 -0
- package/package.json +5 -3
- package/dist/chunks/index7.js +0 -66
- /package/dist/cdn/{N3VOUI25.js → 2HUAW34Q.js} +0 -0
- /package/dist/cdn/{4E7C5QPS.js → 5MEQANMY.js} +0 -0
- /package/dist/cdn/{66KSEDOR.js → 5XTQQOTT.js} +0 -0
- /package/dist/cdn/{YIIPYKTL.js → 5YJNENER.js} +0 -0
- /package/dist/cdn/{NHDVOYQ2.js → 6XTKJ7DO.js} +0 -0
- /package/dist/cdn/{75P3QRL4.js → 7FZC3RZK.js} +0 -0
- /package/dist/cdn/{XWKBJDZT.js → A4GEWIPY.js} +0 -0
- /package/dist/cdn/{DIKQ7BPQ.js → A5AECJXP.js} +0 -0
- /package/dist/cdn/{RDTBZUT7.js → AJWYIBGC.js} +0 -0
- /package/dist/cdn/{TSI3C3OV.js → AM2TOTX6.js} +0 -0
- /package/dist/cdn/{3V4HRXIT.js → AWF4R7WL.js} +0 -0
- /package/dist/cdn/{NG2IHVZ4.js → BJDRJUEJ.js} +0 -0
- /package/dist/cdn/{ZFM5RGWD.js → CJPEW4LJ.js} +0 -0
- /package/dist/cdn/{NFDXH5B3.js → CLXVAIQX.js} +0 -0
- /package/dist/cdn/{AJBEE7WE.js → DCZWZOPF.js} +0 -0
- /package/dist/cdn/{CODAXMWM.js → DEGBVJ76.js} +0 -0
- /package/dist/cdn/{FLO3N6JD.js → DKAHZ7IX.js} +0 -0
- /package/dist/cdn/{5AOYADA3.js → E7OAEGSE.js} +0 -0
- /package/dist/cdn/{I36OAVW3.js → ETKPMU7Z.js} +0 -0
- /package/dist/cdn/{2X75KJPF.js → FF4DUQDZ.js} +0 -0
- /package/dist/cdn/{OA7FHTCA.js → GV3TT7L5.js} +0 -0
- /package/dist/cdn/{VFM2EV3M.js → HVO4LIXR.js} +0 -0
- /package/dist/cdn/{53FG76LL.js → IPM2XKST.js} +0 -0
- /package/dist/cdn/{WVRBLV5L.js → IVLVCLDE.js} +0 -0
- /package/dist/cdn/{PH6UOHRS.js → JBHGSSHS.js} +0 -0
- /package/dist/cdn/{OYHKUGS6.js → JJIGLOJA.js} +0 -0
- /package/dist/cdn/{4JQ2RRLY.js → K3GNHGEW.js} +0 -0
- /package/dist/cdn/{N6OT5IBC.js → KFONSKQF.js} +0 -0
- /package/dist/cdn/{7ILH7ZG2.js → KUZR6CGB.js} +0 -0
- /package/dist/cdn/{SGOYJFLO.js → KZ7LPNX3.js} +0 -0
- /package/dist/cdn/{O2ERVMSN.js → L4G6FO7A.js} +0 -0
- /package/dist/cdn/{I5VHQW7B.js → LFQGH44F.js} +0 -0
- /package/dist/cdn/{B4KT2HUE.js → N6AOFBBX.js} +0 -0
- /package/dist/cdn/{O6SNP6QE.js → QMSINFQX.js} +0 -0
- /package/dist/cdn/{4QQVKRJ5.js → QOOBNATX.js} +0 -0
- /package/dist/cdn/{DD4QUBOF.js → SBYD2EKR.js} +0 -0
- /package/dist/cdn/{XIJ5VLER.js → TF7TE7K5.js} +0 -0
- /package/dist/cdn/{MHG42BA5.js → WNKDEOFZ.js} +0 -0
- /package/dist/cdn/{2HGBRW4I.js → XE3FKQFA.js} +0 -0
- /package/dist/cdn/{M4AQLWZU.js → XW4PBQNW.js} +0 -0
- /package/dist/cdn/{ABIVSH72.js → YOT6DVSU.js} +0 -0
- /package/dist/cdn/{LNF44ZGQ.js → ZFZ5AEUQ.js} +0 -0
- /package/dist/cdn/{UAZ34KDJ.js → ZXOO3X5P.js} +0 -0
|
@@ -0,0 +1,723 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import { getElementLocale as ze } from "@arcgis/toolkit/intl";
|
|
3
|
+
import { cloneDeep as n, isEmpty as h } from "lodash-es";
|
|
4
|
+
import { DateTime as He } from "luxon";
|
|
5
|
+
import { af as $e, Q as oe, Z as Qe, cq as se, cR 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 et } from "../../../chunks/index2.js";
|
|
6
|
+
import { W as tt, ax as rt, g as it, D as ot, ad as st } from "../../../chunks/index.js";
|
|
7
|
+
import { c as nt } from "../../../chunks/type-guards.js";
|
|
8
|
+
import { C as f, h as k, q as ae } from "../../../chunks/index3.js";
|
|
9
|
+
import { h as at, o as dt, s as lt } from "../../../chunks/index5.js";
|
|
10
|
+
import { g as B } from "../../../chunks/series-types.js";
|
|
11
|
+
import { v as te, u as c, r as F, n as p, p as v, f as ct, j as re, s as C } from "../../../chunks/chart-object-literals.js";
|
|
12
|
+
import { p as ut, e as ft, f as pt, h as yt } from "../../../chunks/class-breaks.js";
|
|
13
|
+
var L = /* @__PURE__ */ ((r) => (r.NONE = "none", r.ROTATE = "rotate", r.STAGGER = "stagger", r.WRAP = "wrap", r))(L || {});
|
|
14
|
+
function de(r) {
|
|
15
|
+
const { configToUpdate: e, chartContainer: i, layer: t } = r, o = n(e);
|
|
16
|
+
if (t?.capabilities?.queryAttributeBins?.supportsFirstDayOfWeek === !0 && (!("firstDayOfWeek" in e) || e.firstDayOfWeek === void 0 || e.firstDayOfWeek === null)) {
|
|
17
|
+
const { lang: s } = ze(i ?? document.documentElement);
|
|
18
|
+
try {
|
|
19
|
+
o.firstDayOfWeek = He.local().setLocale(s.replaceAll("_", "-")).startOf("week", { useLocaleWeeks: !0 }).weekday;
|
|
20
|
+
} catch {
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return o;
|
|
24
|
+
}
|
|
25
|
+
function mt(r) {
|
|
26
|
+
const e = n(r);
|
|
27
|
+
if (ne(e)) {
|
|
28
|
+
const t = e.series[0], o = e.chartRenderer?.classBreakInfos;
|
|
29
|
+
if (o?.length && t?.classBreaksRules) {
|
|
30
|
+
t.classBreaksRules.colorRampInfo = t.classBreaksRules.colorRampInfo ?? {};
|
|
31
|
+
const { name: s, flipped: a } = t.classBreaksRules.colorRampInfo, u = ut(o, ft.esriColorRamps);
|
|
32
|
+
if (!s && u?.name && (t.classBreaksRules.colorRampInfo.name = u.name), a === void 0 && u) {
|
|
33
|
+
const y = pt({
|
|
34
|
+
numberOfClassBreaks: o.length,
|
|
35
|
+
selectedColorRamp: u
|
|
36
|
+
});
|
|
37
|
+
y.length === o.length && (t.classBreaksRules.colorRampInfo.flipped = yt(y, o));
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
return e;
|
|
42
|
+
}
|
|
43
|
+
function le(r) {
|
|
44
|
+
const e = n(r);
|
|
45
|
+
return h(r.axes) || (e.axes = r.axes?.map((i) => {
|
|
46
|
+
const t = i;
|
|
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
|
+
})), e;
|
|
49
|
+
}
|
|
50
|
+
function ce(r) {
|
|
51
|
+
const e = n(r);
|
|
52
|
+
return h(r.series) || (e.series = r.series.map((i, t) => {
|
|
53
|
+
const o = i;
|
|
54
|
+
i.id === void 0 && (o.id = `Series ${Date.now()}-${t}`);
|
|
55
|
+
const s = B(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 = rt.defaultGroupOfSlicesId, o.sliceGrouping.groupName !== void 0 && (o.sliceGrouping = {
|
|
57
|
+
...o.sliceGrouping,
|
|
58
|
+
label: o.sliceGrouping.groupName
|
|
59
|
+
}, delete o.sliceGrouping.groupName), o.sliceGrouping.groupSliceSymbol !== void 0 && (o.sliceGrouping = {
|
|
60
|
+
...o.sliceGrouping,
|
|
61
|
+
fillSymbol: o.sliceGrouping.groupSliceSymbol
|
|
62
|
+
}, delete o.sliceGrouping.groupSliceSymbol)), o;
|
|
63
|
+
})), e;
|
|
64
|
+
}
|
|
65
|
+
function ie(r, e) {
|
|
66
|
+
const i = [];
|
|
67
|
+
return r.forEach((t) => {
|
|
68
|
+
if (!ae(t)) {
|
|
69
|
+
const o = k(t, !1);
|
|
70
|
+
if (o.fieldToSort !== void 0) {
|
|
71
|
+
const s = b({
|
|
72
|
+
queryObject: e,
|
|
73
|
+
fieldToMatch: o.fieldToSort
|
|
74
|
+
});
|
|
75
|
+
s !== void 0 && i.push(
|
|
76
|
+
o.orderBy === void 0 ? s : `${s} ${o.orderBy}`
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}), i;
|
|
81
|
+
}
|
|
82
|
+
async function ue(r) {
|
|
83
|
+
const { configToUpdate: e, layer: i, abortSignal: t } = r, o = { ...e };
|
|
84
|
+
let s = i;
|
|
85
|
+
if (!s) {
|
|
86
|
+
const a = at(e) ? e.iLayer : e.dataSource?.layer;
|
|
87
|
+
a && (s = await Ke(a, t));
|
|
88
|
+
}
|
|
89
|
+
if (s) {
|
|
90
|
+
const a = O(o.series), u = B(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;
|
|
91
|
+
if (o.series = e.series.map((l) => {
|
|
92
|
+
const d = { ...l };
|
|
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,
|
|
98
|
+
queryObject: s
|
|
99
|
+
});
|
|
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 }));
|
|
102
|
+
}
|
|
103
|
+
if (l.query !== void 0) {
|
|
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({
|
|
108
|
+
queryObject: s,
|
|
109
|
+
fieldToMatch: T.onStatisticField
|
|
110
|
+
}), x;
|
|
111
|
+
})), m !== void 0 && a === f.BarAndLineSplitBy) {
|
|
112
|
+
const T = Ze(l.query?.where), x = Je({
|
|
113
|
+
where: l.query?.where,
|
|
114
|
+
normalize: !1,
|
|
115
|
+
escape: !1
|
|
116
|
+
});
|
|
117
|
+
m = `${b({ queryObject: s, fieldToMatch: T })}=${x}`;
|
|
118
|
+
}
|
|
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));
|
|
120
|
+
}
|
|
121
|
+
return d;
|
|
122
|
+
}), o.series[0]?.query !== void 0) {
|
|
123
|
+
const l = o.series[0].query;
|
|
124
|
+
let { orderByFields: d } = l;
|
|
125
|
+
d !== void 0 && d.length > 0 && (d = ie(d, s), d.length > 0 && l.orderByFields !== void 0 && (o.series[0].query.orderByFields = d));
|
|
126
|
+
}
|
|
127
|
+
if (o.orderOptions?.orderByFields !== void 0) {
|
|
128
|
+
let { orderByFields: l } = o.orderOptions;
|
|
129
|
+
l !== void 0 && l.length > 0 && (l = ie(l, s), l.length > 0 && (o.orderOptions.orderByFields = l));
|
|
130
|
+
}
|
|
131
|
+
if (u === c.GaugeSeries && e.axes?.[0] !== void 0) {
|
|
132
|
+
const { minimumFromField: l, maximumFromField: d } = e.axes[0];
|
|
133
|
+
if (l !== void 0) {
|
|
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 = {
|
|
137
|
+
...l,
|
|
138
|
+
onStatisticField: S
|
|
139
|
+
}), e.axes[0].minimumFromField = g;
|
|
140
|
+
}
|
|
141
|
+
if (d !== void 0) {
|
|
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 = {
|
|
145
|
+
...d,
|
|
146
|
+
onStatisticField: S
|
|
147
|
+
}), e.axes[0].maximumFromField = g;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
return o;
|
|
152
|
+
}
|
|
153
|
+
function fe(r) {
|
|
154
|
+
const e = n(r);
|
|
155
|
+
if (!h(r.series) && B(r.series) === c.BoxPlotSeries) {
|
|
156
|
+
const t = e.series[0];
|
|
157
|
+
t && (t.showOutliers !== void 0 && (r.showOutliers === void 0 && (e.showOutliers = t.showOutliers), delete t.showOutliers), t.standardizeValues !== void 0 && (r.standardizeValues === void 0 && (e.standardizeValues = t.standardizeValues), delete t.standardizeValues), t.showMean !== void 0 && (r.showMean === void 0 && (e.showMean = t.showMean), delete t.showMean));
|
|
158
|
+
}
|
|
159
|
+
return e;
|
|
160
|
+
}
|
|
161
|
+
function pe(r) {
|
|
162
|
+
const e = {
|
|
163
|
+
orderType: p.Category,
|
|
164
|
+
orderBy: v.Ascending
|
|
165
|
+
}, i = r.query?.orderByFields?.[0];
|
|
166
|
+
if (i !== void 0) {
|
|
167
|
+
const { outStatisticFieldName: t, statisticType: o } = r.query?.outStatistics?.[0] ?? {}, s = k(i);
|
|
168
|
+
t !== void 0 && s.fieldToSort === t && 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;
|
|
169
|
+
}
|
|
170
|
+
return e;
|
|
171
|
+
}
|
|
172
|
+
function ye(r) {
|
|
173
|
+
let e = !1;
|
|
174
|
+
const i = Array.from(new Set(r.series.map((t) => t.type)));
|
|
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
|
+
}
|
|
177
|
+
function me(r) {
|
|
178
|
+
const e = n(r);
|
|
179
|
+
if (!h(e.series) && B(r.series) === c.BoxPlotSeries) {
|
|
180
|
+
if (e.orderOptions?.data === void 0) {
|
|
181
|
+
const t = pe(r.series[0]);
|
|
182
|
+
t.orderType !== void 0 && (e.orderOptions ??= {}, e.orderOptions.data = {
|
|
183
|
+
orderType: t.orderType,
|
|
184
|
+
orderBy: t.orderBy
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
if (e.series = r.series.map((t) => {
|
|
188
|
+
const o = t;
|
|
189
|
+
return h(o.x?.trim()) && (o.x = it), delete o.query?.orderByFields, o;
|
|
190
|
+
}), ye(e)) {
|
|
191
|
+
e.showMean = !0;
|
|
192
|
+
const t = e.series.find(
|
|
193
|
+
(o) => o.type === c.BoxPlotSeries
|
|
194
|
+
);
|
|
195
|
+
e.series.forEach((o) => {
|
|
196
|
+
o.type === c.LineSeries && (delete o.query?.groupByFieldsForStatistics, delete o.query?.outStatistics, delete o.query?.orderByFields, t && (o.y = t.y));
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
e.series = r.series.map((t) => {
|
|
200
|
+
const o = t;
|
|
201
|
+
return delete o.query?.outStatistics, o;
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
return e;
|
|
205
|
+
}
|
|
206
|
+
function Se(r) {
|
|
207
|
+
const e = n(r);
|
|
208
|
+
return e.legend !== void 0 && !Number.isFinite(e.legend.maxHeight) && (e.legend.maxHeight = void 0), e;
|
|
209
|
+
}
|
|
210
|
+
function ge(r) {
|
|
211
|
+
const e = n(r);
|
|
212
|
+
return "dataSource" in e && e.dataSource.layer && (e.iLayer = e.dataSource.layer, delete e.dataSource), e;
|
|
213
|
+
}
|
|
214
|
+
function ve(r) {
|
|
215
|
+
const e = n(r), i = /* @__PURE__ */ new Set(), t = e.id ?? "";
|
|
216
|
+
return i.add(t), e.series.forEach((o) => {
|
|
217
|
+
let s = o.id;
|
|
218
|
+
i.has(s) && (s = `${s}_${Date.now()}`, o.id = s), i.add(s);
|
|
219
|
+
}), e;
|
|
220
|
+
}
|
|
221
|
+
async function he(r) {
|
|
222
|
+
const { configToUpdate: e, layer: i, chartContainer: t, abortSignal: o } = r;
|
|
223
|
+
let s = n(e);
|
|
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);
|
|
227
|
+
}
|
|
228
|
+
return s = Se(s), s = ve(s), ne(s) && !nt(i) && (s = de({ configToUpdate: s, chartContainer: t, layer: i })), s;
|
|
229
|
+
}
|
|
230
|
+
function Be(r) {
|
|
231
|
+
const e = n(r);
|
|
232
|
+
return e?.orderOptions?.orderByFields !== void 0 && O(r.series) === f.PieFromFields && (e.orderOptions.orderByFields = r?.orderOptions?.orderByFields?.map(
|
|
233
|
+
(i) => {
|
|
234
|
+
let t = n(i);
|
|
235
|
+
return i !== void 0 && i.includes("arcgis_charts_pie_category_from_fields_name") && (t = i.replace(
|
|
236
|
+
"arcgis_charts_pie_category_from_fields_name",
|
|
237
|
+
Z
|
|
238
|
+
)), t;
|
|
239
|
+
}
|
|
240
|
+
)), e;
|
|
241
|
+
}
|
|
242
|
+
function Ce(r) {
|
|
243
|
+
const e = n(r);
|
|
244
|
+
if (!h(r.series) && e.axes?.[0] !== void 0 && B(r.series) === c.GaugeSeries && r.axes?.[0] !== void 0) {
|
|
245
|
+
const t = r.axes[0];
|
|
246
|
+
t.ticks !== void 0 && Object.hasOwn(t.ticks, "spacing") && delete t.ticks.spacing, e.axes[0] = t;
|
|
247
|
+
}
|
|
248
|
+
return e;
|
|
249
|
+
}
|
|
250
|
+
function be(r) {
|
|
251
|
+
const e = n(r), { extent: i } = e.series[0]?.query ?? {};
|
|
252
|
+
return i !== void 0 && (e.dataFilters = {
|
|
253
|
+
...e.dataFilters,
|
|
254
|
+
geometry: i
|
|
255
|
+
}, e.series.forEach((t) => {
|
|
256
|
+
"query" in t && "extent" in t.query && delete t.query.extent;
|
|
257
|
+
})), e;
|
|
258
|
+
}
|
|
259
|
+
function J(r) {
|
|
260
|
+
const e = n(r);
|
|
261
|
+
return h(r.series) || (dt(r) && r.rotated === void 0 && (e.rotated = r.series[0].rotated ?? ot()), e.series.forEach((i) => {
|
|
262
|
+
i.rotated !== void 0 && delete i.rotated;
|
|
263
|
+
})), e;
|
|
264
|
+
}
|
|
265
|
+
function Fe(r) {
|
|
266
|
+
const e = n(r), i = r.dataSource;
|
|
267
|
+
return "dataSource" in e && !h(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
|
+
}
|
|
269
|
+
function Te(r) {
|
|
270
|
+
const e = n(r);
|
|
271
|
+
if ("dataSource" in r) {
|
|
272
|
+
const i = r.dataSource;
|
|
273
|
+
if (i.filter !== void 0 && i.filter.trim() !== "") {
|
|
274
|
+
const t = Ue([i.filter, e.dataFilters?.where]);
|
|
275
|
+
e.dataFilters = {
|
|
276
|
+
...e.dataFilters,
|
|
277
|
+
where: t
|
|
278
|
+
}, delete e.dataSource.filter;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
return e;
|
|
282
|
+
}
|
|
283
|
+
function xe(r) {
|
|
284
|
+
return r !== "originalValue";
|
|
285
|
+
}
|
|
286
|
+
function U(r) {
|
|
287
|
+
let e;
|
|
288
|
+
switch (r) {
|
|
289
|
+
case "mean":
|
|
290
|
+
e = p.Mean;
|
|
291
|
+
break;
|
|
292
|
+
case "median":
|
|
293
|
+
e = p.Median;
|
|
294
|
+
break;
|
|
295
|
+
case "category":
|
|
296
|
+
e = p.Category;
|
|
297
|
+
break;
|
|
298
|
+
}
|
|
299
|
+
return e;
|
|
300
|
+
}
|
|
301
|
+
function Oe(r) {
|
|
302
|
+
const e = n(r);
|
|
303
|
+
if (!h(r.series) && B(r.series) === c.PieSeries) {
|
|
304
|
+
const t = e.series[0];
|
|
305
|
+
if (t) {
|
|
306
|
+
if (t.sortLabelsBy === "originalValue")
|
|
307
|
+
e.sortLabelsBy = t.sortLabelsBy;
|
|
308
|
+
else if (t.sortLabelsBy !== void 0 && e.orderOptions?.data === void 0) {
|
|
309
|
+
const o = P(e);
|
|
310
|
+
o !== void 0 && (e.orderOptions ??= {}, e.orderOptions.data = o);
|
|
311
|
+
}
|
|
312
|
+
t.sortLabelsBy && delete t.sortLabelsBy;
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
return e;
|
|
316
|
+
}
|
|
317
|
+
function ke(r) {
|
|
318
|
+
const e = n(r);
|
|
319
|
+
return h(r.series) || (lt(r) && r.stackedType === void 0 && (e.stackedType = r.series[0].stackedType ?? st()), e.series.forEach((i) => {
|
|
320
|
+
"stackedType" in i && delete i.stackedType;
|
|
321
|
+
})), e;
|
|
322
|
+
}
|
|
323
|
+
function Pe(r) {
|
|
324
|
+
const e = n(r), i = r.sortOptions?.sortSeriesBy;
|
|
325
|
+
return e.orderOptions === void 0 && typeof i == "string" && (e.orderOptions ??= {}, e.orderOptions.series = {
|
|
326
|
+
orderBy: i === "DESC" ? v.Descending : v.Ascending
|
|
327
|
+
}), e;
|
|
328
|
+
}
|
|
329
|
+
function Le(r) {
|
|
330
|
+
const e = n(r);
|
|
331
|
+
return e.colorMatch === void 0 && e.series[0]?.colorType !== void 0 && (e.colorMatch = e.series[0]?.colorType === ct.Match), e.series.forEach((i) => {
|
|
332
|
+
i.colorType !== void 0 && delete i.colorType;
|
|
333
|
+
}), e;
|
|
334
|
+
}
|
|
335
|
+
function we(r) {
|
|
336
|
+
const e = n(r);
|
|
337
|
+
if (e.sortDataBy !== void 0) {
|
|
338
|
+
if (e.orderOptions?.data === void 0) {
|
|
339
|
+
const i = r.sortDataBy, t = U(i?.sortType);
|
|
340
|
+
t && t !== p.MultiAxes && (e.orderOptions ??= {}, e.orderOptions.data = {
|
|
341
|
+
orderType: t,
|
|
342
|
+
orderBy: i?.sortOrder ?? v.Ascending
|
|
343
|
+
});
|
|
344
|
+
}
|
|
345
|
+
delete e.sortDataBy;
|
|
346
|
+
}
|
|
347
|
+
return e;
|
|
348
|
+
}
|
|
349
|
+
function Ae(r) {
|
|
350
|
+
const e = n(r);
|
|
351
|
+
return e.axes?.forEach((i) => {
|
|
352
|
+
i !== void 0 && i.scrollbarVisible !== void 0 && i.scrollbar?.visible === void 0 && (i.scrollbar = {
|
|
353
|
+
...i.scrollbar,
|
|
354
|
+
visible: i.scrollbarVisible
|
|
355
|
+
}, delete i.scrollbarVisible);
|
|
356
|
+
}), e;
|
|
357
|
+
}
|
|
358
|
+
function De(r) {
|
|
359
|
+
const e = n(r), i = e.series[0]?.query?.orderByFields;
|
|
360
|
+
if (i !== void 0 && i.length > 0 && e.orderOptions?.orderByFields === void 0) {
|
|
361
|
+
e.orderOptions ??= {};
|
|
362
|
+
let t = !0;
|
|
363
|
+
if (i.length === 1) {
|
|
364
|
+
const { fieldToSort: o, orderBy: s } = k(i[0]);
|
|
365
|
+
let a;
|
|
366
|
+
o === r.series[0].x || o === Z ? a = p.Category : "y" in r.series[0] && o === r.series[0].y && (a = p.YValue), a && a !== p.MultiAxes && (t = !1, e.orderOptions.data === void 0 && (e.orderOptions.data = {
|
|
367
|
+
orderType: a,
|
|
368
|
+
orderBy: s?.toUpperCase() === "DESC" ? v.Descending : v.Ascending
|
|
369
|
+
}));
|
|
370
|
+
}
|
|
371
|
+
t && (e.orderOptions.orderByFields = i);
|
|
372
|
+
}
|
|
373
|
+
return e.series.forEach((t) => {
|
|
374
|
+
delete t.query?.orderByFields;
|
|
375
|
+
}), e;
|
|
376
|
+
}
|
|
377
|
+
function P(r) {
|
|
378
|
+
let e, i = r.orderOptions?.orderByFields?.[0];
|
|
379
|
+
if (r.series?.length > 0) {
|
|
380
|
+
const t = B(r.series), o = O(r.series);
|
|
381
|
+
if (t !== c.PieSeries && o !== f.BarAndLineFromFields && (i = i ?? r.series[0].x), i && !ae(i)) {
|
|
382
|
+
const { fieldToSort: s, orderBy: a } = k(i);
|
|
383
|
+
let u;
|
|
384
|
+
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 = {
|
|
385
|
+
orderType: u,
|
|
386
|
+
orderBy: a?.toUpperCase() === "DESC" ? v.Descending : v.Ascending
|
|
387
|
+
});
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
return e;
|
|
391
|
+
}
|
|
392
|
+
function Me(r) {
|
|
393
|
+
const e = n(r), i = r, t = r, o = r, s = r, a = r;
|
|
394
|
+
if (e) {
|
|
395
|
+
if (e.orderOptions?.series === void 0 && i.sortOptions?.sortSeriesBy !== void 0 && (e.orderOptions ??= {}, e.orderOptions.series = {
|
|
396
|
+
preferLabel: xe(
|
|
397
|
+
t.sortLabelsBy ?? i.sortOptions.sortSeriesBy.sortType
|
|
398
|
+
),
|
|
399
|
+
orderBy: i.sortOptions.sortSeriesBy.sortOrder ?? v.Ascending
|
|
400
|
+
}), t.sortLabelsBy === "originalValue" || s.orderOptions?.data?.preferDataLabel === !1 || a.orderOptions?.data?.preferLabel === !1)
|
|
401
|
+
e.orderOptions?.data && delete e.orderOptions.data;
|
|
402
|
+
else if (e.orderOptions?.data === void 0)
|
|
403
|
+
if (B(e.series) === c.BoxPlotSeries) {
|
|
404
|
+
if (t.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,
|
|
408
|
+
orderBy: o.sortOptions?.sortDataBy?.sortOrder ?? v.Ascending
|
|
409
|
+
});
|
|
410
|
+
}
|
|
411
|
+
} else {
|
|
412
|
+
const y = P(e);
|
|
413
|
+
y !== void 0 && (e.orderOptions ??= {}, e.orderOptions.data = y);
|
|
414
|
+
}
|
|
415
|
+
"sortLabelsBy" in e && delete e.sortLabelsBy, "sortOptions" in e && delete e.sortOptions;
|
|
416
|
+
}
|
|
417
|
+
return e;
|
|
418
|
+
}
|
|
419
|
+
function Ie(r) {
|
|
420
|
+
const e = n(r);
|
|
421
|
+
if (e) {
|
|
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 t = P(e);
|
|
425
|
+
t !== void 0 && (e.orderOptions ??= {}, e.orderOptions.data = t, delete e.orderOptions.orderByFields);
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
return e;
|
|
429
|
+
}
|
|
430
|
+
function qe(r) {
|
|
431
|
+
const e = n(r);
|
|
432
|
+
return e.horizontalAxisLabelsBehavior === L.NONE && (e.horizontalAxisLabelsBehavior = re.Hide), e.verticalAxisLabelsBehavior === L.NONE && (e.verticalAxisLabelsBehavior = re.Hide), e;
|
|
433
|
+
}
|
|
434
|
+
function We(r) {
|
|
435
|
+
const e = n(r), i = e.series[0];
|
|
436
|
+
if (i && !i.temporalBinning && et(e.series[0]) && ("timeIntervalSize" in i || "timeIntervalUnits" in i || "timeAggregationType" in i || "trimIncompleteTimeInterval" in i || "nullPolicy" in i)) {
|
|
437
|
+
if (i.temporalBinning = {}, i.timeIntervalSize !== void 0 && (i.temporalBinning.size = i.timeIntervalSize, delete i.timeIntervalSize), i.timeIntervalUnits) {
|
|
438
|
+
let t;
|
|
439
|
+
switch (i.timeIntervalUnits) {
|
|
440
|
+
case "esriTimeUnitsSeconds":
|
|
441
|
+
t = C.Second;
|
|
442
|
+
break;
|
|
443
|
+
case "esriTimeUnitsMinutes":
|
|
444
|
+
t = C.Minute;
|
|
445
|
+
break;
|
|
446
|
+
case "esriTimeUnitsHours":
|
|
447
|
+
t = C.Hour;
|
|
448
|
+
break;
|
|
449
|
+
case "esriTimeUnitsDays":
|
|
450
|
+
t = C.Day;
|
|
451
|
+
break;
|
|
452
|
+
case "esriTimeUnitsWeeks":
|
|
453
|
+
t = C.Week;
|
|
454
|
+
break;
|
|
455
|
+
case "esriTimeUnitsMonths":
|
|
456
|
+
t = C.Month;
|
|
457
|
+
break;
|
|
458
|
+
case "esriTimeUnitsYears":
|
|
459
|
+
t = C.Year;
|
|
460
|
+
break;
|
|
461
|
+
}
|
|
462
|
+
t !== void 0 && (i.temporalBinning.unit = t), delete i.timeIntervalUnits;
|
|
463
|
+
}
|
|
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);
|
|
465
|
+
}
|
|
466
|
+
return e;
|
|
467
|
+
}
|
|
468
|
+
function Re(r) {
|
|
469
|
+
const e = n(r);
|
|
470
|
+
return e.series.forEach((i) => {
|
|
471
|
+
i.query?.outStatistics?.forEach((t) => {
|
|
472
|
+
t.statisticType === "percentile_cont" ? t.statisticType = F.ContinuousPercentile : t.statisticType === "percentile_disc" && (t.statisticType = F.DiscretePercentile);
|
|
473
|
+
});
|
|
474
|
+
}), e;
|
|
475
|
+
}
|
|
476
|
+
function Ee(r) {
|
|
477
|
+
const e = n(r);
|
|
478
|
+
return e.subtitle === void 0 && e.subTitle && (e.subtitle = e.subTitle), delete e.subTitle, e;
|
|
479
|
+
}
|
|
480
|
+
function Ne(r) {
|
|
481
|
+
const e = n(r), i = e.series[0];
|
|
482
|
+
return i?.temporalBinning && delete i.temporalBinning?.type, e;
|
|
483
|
+
}
|
|
484
|
+
function Ve(r) {
|
|
485
|
+
const e = n(r), i = e.series[0], t = r;
|
|
486
|
+
return t.series[0]?.xTemporalBinning && (i.xTemporalBinning = {
|
|
487
|
+
...t.series[0]?.xTemporalBinning,
|
|
488
|
+
type: c.CalendarDateParts
|
|
489
|
+
}), t.series[0]?.yTemporalBinning && (i.yTemporalBinning = {
|
|
490
|
+
...t.series[0]?.yTemporalBinning,
|
|
491
|
+
type: c.CalendarDateParts
|
|
492
|
+
}), e;
|
|
493
|
+
}
|
|
494
|
+
function Ge(r) {
|
|
495
|
+
let e = n(r);
|
|
496
|
+
return e = Be(e), e;
|
|
497
|
+
}
|
|
498
|
+
function w(r) {
|
|
499
|
+
let e = n(r);
|
|
500
|
+
return e = Ce(e), e;
|
|
501
|
+
}
|
|
502
|
+
function A(r) {
|
|
503
|
+
let e = n(r);
|
|
504
|
+
return e = be(e), e;
|
|
505
|
+
}
|
|
506
|
+
function D(r) {
|
|
507
|
+
let e = n(r);
|
|
508
|
+
return e = J(e), e;
|
|
509
|
+
}
|
|
510
|
+
function M(r) {
|
|
511
|
+
let e = n(r);
|
|
512
|
+
return e = Fe(e), e;
|
|
513
|
+
}
|
|
514
|
+
function I(r) {
|
|
515
|
+
let e = n(r);
|
|
516
|
+
return e = Te(e), e;
|
|
517
|
+
}
|
|
518
|
+
function q(r) {
|
|
519
|
+
let e = n(r);
|
|
520
|
+
return e = Oe(e), e;
|
|
521
|
+
}
|
|
522
|
+
function W(r) {
|
|
523
|
+
let e = n(r);
|
|
524
|
+
return e = Pe(e), e;
|
|
525
|
+
}
|
|
526
|
+
function R(r) {
|
|
527
|
+
let e = n(r);
|
|
528
|
+
return e = Le(e), e;
|
|
529
|
+
}
|
|
530
|
+
function E(r) {
|
|
531
|
+
return Ae(r);
|
|
532
|
+
}
|
|
533
|
+
function N(r) {
|
|
534
|
+
let e = n(r);
|
|
535
|
+
return se(e) && (e = we(e)), e;
|
|
536
|
+
}
|
|
537
|
+
function V(r) {
|
|
538
|
+
return ke(r);
|
|
539
|
+
}
|
|
540
|
+
function G(r) {
|
|
541
|
+
return Me(r);
|
|
542
|
+
}
|
|
543
|
+
function _(r) {
|
|
544
|
+
return ge(r);
|
|
545
|
+
}
|
|
546
|
+
function j(r) {
|
|
547
|
+
return Ie(r);
|
|
548
|
+
}
|
|
549
|
+
function z(r) {
|
|
550
|
+
return qe(r);
|
|
551
|
+
}
|
|
552
|
+
function H(r) {
|
|
553
|
+
return We(r);
|
|
554
|
+
}
|
|
555
|
+
function $(r) {
|
|
556
|
+
return Re(r);
|
|
557
|
+
}
|
|
558
|
+
function Q(r) {
|
|
559
|
+
let e = n(r);
|
|
560
|
+
return e = J(e), Ee(e);
|
|
561
|
+
}
|
|
562
|
+
function Y(r) {
|
|
563
|
+
let e = n(r);
|
|
564
|
+
return e = Ne(e), e;
|
|
565
|
+
}
|
|
566
|
+
function K(r) {
|
|
567
|
+
let e = n(r);
|
|
568
|
+
return e = Ve(e), e;
|
|
569
|
+
}
|
|
570
|
+
function X(r) {
|
|
571
|
+
let e = n(r);
|
|
572
|
+
return e = mt(e), e;
|
|
573
|
+
}
|
|
574
|
+
function _e(r) {
|
|
575
|
+
const { versionsToConvert: e, configToUpdate: i } = r;
|
|
576
|
+
let t = n(i);
|
|
577
|
+
return e.length > 0 && t !== void 0 && (t = De(t), e.includes(oe) || e.includes(Ye) ? (t = Ge(t), t = w(t), t = A(t), t = D(t), t = M(t), t = I(t), t = q(t), t = W(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 = K(t), t = X(t)) : e.forEach((o) => {
|
|
578
|
+
if (t !== void 0)
|
|
579
|
+
switch (o) {
|
|
580
|
+
case "1.0.1":
|
|
581
|
+
t = w(t);
|
|
582
|
+
break;
|
|
583
|
+
case "3.4.0":
|
|
584
|
+
t = A(t);
|
|
585
|
+
break;
|
|
586
|
+
case "4.0.0":
|
|
587
|
+
t = D(t);
|
|
588
|
+
break;
|
|
589
|
+
case "4.0.1":
|
|
590
|
+
t = M(t);
|
|
591
|
+
break;
|
|
592
|
+
case "6.4.0":
|
|
593
|
+
t = I(t);
|
|
594
|
+
break;
|
|
595
|
+
case "7.5.1":
|
|
596
|
+
t = q(t);
|
|
597
|
+
break;
|
|
598
|
+
case "8.0.0":
|
|
599
|
+
t = W(t);
|
|
600
|
+
break;
|
|
601
|
+
case "9.2.0":
|
|
602
|
+
t = R(t);
|
|
603
|
+
break;
|
|
604
|
+
case "9.7.0":
|
|
605
|
+
t = E(t);
|
|
606
|
+
break;
|
|
607
|
+
case "10.0.0":
|
|
608
|
+
t = N(t);
|
|
609
|
+
break;
|
|
610
|
+
case "11.0.0":
|
|
611
|
+
t = V(t);
|
|
612
|
+
break;
|
|
613
|
+
case "14.0.1":
|
|
614
|
+
t = G(t);
|
|
615
|
+
break;
|
|
616
|
+
case "16.0.0":
|
|
617
|
+
t = _(t);
|
|
618
|
+
break;
|
|
619
|
+
case "16.1.0":
|
|
620
|
+
t = j(t);
|
|
621
|
+
break;
|
|
622
|
+
case "18.1.3":
|
|
623
|
+
t = z(t);
|
|
624
|
+
break;
|
|
625
|
+
case "20.1.0":
|
|
626
|
+
t = H(t);
|
|
627
|
+
break;
|
|
628
|
+
case "21.0.0":
|
|
629
|
+
t = $(t);
|
|
630
|
+
break;
|
|
631
|
+
case "23.2.0":
|
|
632
|
+
t = Q(t);
|
|
633
|
+
break;
|
|
634
|
+
case "24.7.0":
|
|
635
|
+
t = Y(t);
|
|
636
|
+
break;
|
|
637
|
+
case "24.8.0":
|
|
638
|
+
t = K(t);
|
|
639
|
+
break;
|
|
640
|
+
case "25.0.0":
|
|
641
|
+
t = X(t);
|
|
642
|
+
break;
|
|
643
|
+
}
|
|
644
|
+
}), t.version = tt), t;
|
|
645
|
+
}
|
|
646
|
+
async function Pt(r, e, i, t) {
|
|
647
|
+
let o = r;
|
|
648
|
+
if (r) {
|
|
649
|
+
const s = $e(e);
|
|
650
|
+
await s?.load({ signal: t }), o = await he({ configToUpdate: r, layer: s, chartContainer: i, abortSignal: t });
|
|
651
|
+
const a = r.version ?? oe, { versionStatus: u, versions: y } = Qe(a);
|
|
652
|
+
(u === te.Older || u === te.Unrecognized) && (o = _e({
|
|
653
|
+
versionsToConvert: y,
|
|
654
|
+
configToUpdate: o
|
|
655
|
+
}));
|
|
656
|
+
}
|
|
657
|
+
return o;
|
|
658
|
+
}
|
|
659
|
+
const Lt = {
|
|
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: Be,
|
|
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: qe,
|
|
686
|
+
handleOrderOptionsChanges: Me,
|
|
687
|
+
applyDataOrderInstructionForFromFieldsCharts: Ie,
|
|
688
|
+
convertTemporalBinningProps: We,
|
|
689
|
+
convertRESTStatisticTypeToWebChartStatisticType: Re,
|
|
690
|
+
renameChartSubtitle: Ee,
|
|
691
|
+
applyMandatoryConversions: he,
|
|
692
|
+
convertTo1x0x1: Ge,
|
|
693
|
+
convertTo2x0x0: w,
|
|
694
|
+
convertTo3x5x0: A,
|
|
695
|
+
convertTo4x0x1: D,
|
|
696
|
+
convertTo5x0x0: M,
|
|
697
|
+
convertTo7x0x0: I,
|
|
698
|
+
convertTo7x6x0: q,
|
|
699
|
+
convertTo8x0x1: W,
|
|
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,
|
|
709
|
+
convertTo21x1x0: $,
|
|
710
|
+
convertTo23x3x0: Q,
|
|
711
|
+
convertTo24x8x0: Y,
|
|
712
|
+
convertTo25x0x0: K,
|
|
713
|
+
convertTo25x1x0: X,
|
|
714
|
+
convertTemporalBinningProps2: Ne,
|
|
715
|
+
transformPropsInHeatChart: Ve,
|
|
716
|
+
applyConversions: _e,
|
|
717
|
+
convertDataSourceToILayer: ge,
|
|
718
|
+
applyDefaultFirstDayOfWeek: de
|
|
719
|
+
};
|
|
720
|
+
export {
|
|
721
|
+
Lt as chartConfigConverterPrivateFunctions,
|
|
722
|
+
Pt as convertChartSpec
|
|
723
|
+
};
|