@arcgis/charts-components 5.2.0-next.58 → 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,43 +1,43 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { isEqual as
|
|
3
|
-
import { q as
|
|
4
|
-
import { k as
|
|
2
|
+
import { isEqual as D } from "lodash-es";
|
|
3
|
+
import { q as I, u, r as h } from "./chart-object-literals.js";
|
|
4
|
+
import { bd as b, bs as v, k as p, ap as M } from "./index2.js";
|
|
5
5
|
import { i as P } from "./index4.js";
|
|
6
6
|
import { C as O } from "./chart-model.js";
|
|
7
7
|
import { m as o } from "./model-setter.js";
|
|
8
8
|
import { S as V } from "./common.js";
|
|
9
|
-
import { M as N, a as
|
|
9
|
+
import { M as N, a as k, W as E, b as U } from "./data-labels-visibility.js";
|
|
10
10
|
import { M as j, a as X } from "./model-with-y-guides.js";
|
|
11
|
-
import { g as
|
|
11
|
+
import { g as d, d as y, j as Y, k as w, l as z, m as R, n as q, o as K, q as G, t as $, v as Z, w as H, x as J, y as Q, z as S, A as _, B as x, C as m, D as ee, E as ie, e as te, F as se, W as re } from "./serial-chart-data.js";
|
|
12
12
|
import { M as oe } from "./model-with-x-guides.js";
|
|
13
13
|
import { W as ne, c as ae, d as le } from "./axis-lines-symbol.js";
|
|
14
14
|
import { W as ge, c as ce, d as fe } from "./generate-x-axis-title.js";
|
|
15
15
|
import { W as he, a as pe } from "./x-bounds.js";
|
|
16
|
-
import { W as
|
|
17
|
-
import { W as
|
|
18
|
-
import { g as W, u as ye, s as
|
|
19
|
-
import { d as
|
|
20
|
-
import { B as Fe, Z as
|
|
21
|
-
import {
|
|
22
|
-
const
|
|
16
|
+
import { W as me } from "./data-labels-symbol.js";
|
|
17
|
+
import { W as de } from "./rotated-state.js";
|
|
18
|
+
import { g as W, u as ye, s as T, j as ue, k as Se, f as _e, h as xe } from "./utils.js";
|
|
19
|
+
import { d as F, e as B, a as Te } from "./data.js";
|
|
20
|
+
import { B as Fe, Z as Be, x as Ce, a4 as Ae, a2 as Ie } from "./index.js";
|
|
21
|
+
import { s as L } from "./series-types.js";
|
|
22
|
+
const C = (s, e) => e.series?.[s].assignToSecondValueAxis ?? !1, A = (s) => {
|
|
23
23
|
const { assign: e, seriesIndex: i, config: t, commonStrings: r } = s;
|
|
24
|
-
e && t.axes !== void 0 && !t.axes?.[2] && (t.axes[2] =
|
|
24
|
+
e && t.axes !== void 0 && !t.axes?.[2] && (t.axes[2] = Ce(r, u.BarSeries)[1]), t.series && t.series.forEach((a, g) => {
|
|
25
25
|
g === i ? a.assignToSecondValueAxis = e : g !== i && a?.assignToSecondValueAxis !== !0 && (a.assignToSecondValueAxis = !1);
|
|
26
26
|
}), t.axes?.[2] && !t.series.some((a) => a.assignToSecondValueAxis) && t.axes.splice(2, 1);
|
|
27
|
-
},
|
|
27
|
+
}, be = (s, e) => e.series?.[s]?.name, ve = (s, e, i) => {
|
|
28
28
|
i.series?.[e] && (i.series[e].name = s);
|
|
29
29
|
}, Oe = (s, e) => {
|
|
30
30
|
const i = e.series?.[s];
|
|
31
31
|
let t;
|
|
32
|
-
return
|
|
32
|
+
return b(i) ? t = i.fillSymbol?.color : v(i) && (t = i.lineSymbol?.color), t;
|
|
33
33
|
}, We = (s, e, i) => {
|
|
34
34
|
const t = i.series?.[e];
|
|
35
|
-
t && (
|
|
35
|
+
t && (b(t) ? t.fillSymbol = {
|
|
36
36
|
...Fe(e),
|
|
37
37
|
...t.fillSymbol,
|
|
38
38
|
color: s
|
|
39
|
-
} :
|
|
40
|
-
...
|
|
39
|
+
} : v(t) && (t.lineSymbol = {
|
|
40
|
+
...Be(e),
|
|
41
41
|
...t.lineSymbol,
|
|
42
42
|
color: s
|
|
43
43
|
}));
|
|
@@ -45,34 +45,33 @@ const I = (s, e) => e.series?.[s].assignToSecondValueAxis ?? !1, v = (s) => {
|
|
|
45
45
|
e.series?.sort(
|
|
46
46
|
(i, t) => s.findIndex((r) => i.id === r) - s.findIndex((r) => t.id === r)
|
|
47
47
|
);
|
|
48
|
-
}, Me = (s) => s.stackedType ??
|
|
48
|
+
}, Me = (s) => s.stackedType ?? I.Side, Pe = (s) => {
|
|
49
49
|
const { newStackedType: e, config: i, layerInfo: t, commonStrings: r } = s;
|
|
50
50
|
if (i.stackedType = e, t !== void 0) {
|
|
51
51
|
const a = W({
|
|
52
52
|
config: i,
|
|
53
53
|
layerInfo: t,
|
|
54
54
|
commonStrings: r,
|
|
55
|
-
numericFields:
|
|
56
|
-
aggregationType:
|
|
55
|
+
numericFields: y(i),
|
|
56
|
+
aggregationType: d(i)
|
|
57
57
|
});
|
|
58
58
|
ye(i, 1, a);
|
|
59
59
|
}
|
|
60
|
-
i.axes?.[1] && (e ===
|
|
60
|
+
i.axes?.[1] && (e === I.Stacked100 ? i.axes[1].valueFormat = Ae() : i.axes[1].valueFormat = Ie()), T({ config: i, value: null, axisIndex: 1, isMax: !1 }), T({ config: i, value: null, axisIndex: 1, isMax: !0 });
|
|
61
61
|
}, Ve = (s) => {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
(
|
|
65
|
-
);
|
|
66
|
-
return (h(i) || p(i) || _(i)) && (e = i?.nullCategory), e;
|
|
62
|
+
const e = {};
|
|
63
|
+
return s.series.forEach((i) => {
|
|
64
|
+
L(i) && "nullCategory" in i && i.nullCategory !== void 0 && (e.text ??= i.nullCategory.text, i.type === u.BarSeries ? e.fillSymbol ??= i.nullCategory.fillSymbol : e.markerSymbol ??= i.nullCategory.markerSymbol);
|
|
65
|
+
}), e.text || e.fillSymbol || e.markerSymbol ? e : void 0;
|
|
67
66
|
}, Ne = (s, e) => {
|
|
68
67
|
s.series.forEach((i) => {
|
|
69
|
-
(
|
|
68
|
+
L(i) && (e ? i.type === u.BarSeries ? i.nullCategory = { text: e?.text, fillSymbol: e?.fillSymbol } : i.nullCategory = { text: e?.text, markerSymbol: e?.markerSymbol } : i.nullCategory = void 0);
|
|
70
69
|
});
|
|
71
70
|
};
|
|
72
|
-
var
|
|
73
|
-
for (var r =
|
|
71
|
+
var ke = Object.defineProperty, Ee = Object.getOwnPropertyDescriptor, f = (s, e, i, t) => {
|
|
72
|
+
for (var r = Ee(e, i), a = s.length - 1, g; a >= 0; a--)
|
|
74
73
|
(g = s[a]) && (r = g(e, i, r) || r);
|
|
75
|
-
return r &&
|
|
74
|
+
return r && ke(e, i, r), r;
|
|
76
75
|
};
|
|
77
76
|
class c extends O {
|
|
78
77
|
/**
|
|
@@ -155,7 +154,7 @@ var Ue = Object.defineProperty, je = Object.getOwnPropertyDescriptor, l = (s, e,
|
|
|
155
154
|
};
|
|
156
155
|
class n extends O {
|
|
157
156
|
constructor() {
|
|
158
|
-
super(...arguments), this._xAxisField = "", this._aggregationType =
|
|
157
|
+
super(...arguments), this._xAxisField = "", this._aggregationType = h.Count, this._splitByField = "", this._numericFields = [];
|
|
159
158
|
}
|
|
160
159
|
// #endregion
|
|
161
160
|
// ---------------------------------------------------------------------------------------------
|
|
@@ -168,7 +167,7 @@ class n extends O {
|
|
|
168
167
|
return this._xAxisField;
|
|
169
168
|
}
|
|
170
169
|
set xAxisField(e) {
|
|
171
|
-
if (this._xAxisField = e, e.trim() === "" || e ===
|
|
170
|
+
if (this._xAxisField = e, e.trim() === "" || e === p) {
|
|
172
171
|
const r = this.numericFields;
|
|
173
172
|
this.resetConfig(), this.numericFields = r;
|
|
174
173
|
}
|
|
@@ -205,10 +204,10 @@ class n extends O {
|
|
|
205
204
|
}
|
|
206
205
|
set numericFields(e) {
|
|
207
206
|
typeof e == "string" && (e = [e]);
|
|
208
|
-
const i = Se(this.layerInfo?.layerFieldsInfo ?? [], e), t = (this.xAxisField === "" || this.xAxisField ===
|
|
207
|
+
const i = Se(this.layerInfo?.layerFieldsInfo ?? [], e), t = (this.xAxisField === "" || this.xAxisField === p) && e.length === 0;
|
|
209
208
|
if (i && !t) {
|
|
210
209
|
const r = M(this.layerInfo.layer).idField;
|
|
211
|
-
e.length === 0 && r !== void 0 ? (e.push(r), this._aggregationType =
|
|
210
|
+
e.length === 0 && r !== void 0 ? (e.push(r), this._aggregationType = h.Count) : this._aggregationType === h.Count && e.length >= 1 && r !== void 0 && !e.includes(r) && (this._aggregationType = h.Sum), this._numericFields = e, this.numericFields.length > 1 && (this._splitByField = ""), this.processSeriesRebuild("numericFields");
|
|
212
211
|
} else t && this.resetConfig();
|
|
213
212
|
}
|
|
214
213
|
/**
|
|
@@ -218,10 +217,10 @@ class n extends O {
|
|
|
218
217
|
* @deprecated since 5.2. Use {@link model/serial-chart-model/serial-chart-model#getSeriesToSecondaryYAxis getSeriesToSecondaryYAxis} instead.
|
|
219
218
|
*/
|
|
220
219
|
getAssignToSecondValueAxis(e) {
|
|
221
|
-
return
|
|
220
|
+
return C(e, this._config);
|
|
222
221
|
}
|
|
223
222
|
setAssignToSecondValueAxis(e, i) {
|
|
224
|
-
|
|
223
|
+
A({ assign: e, seriesIndex: i, config: this._config, commonStrings: this.commonStrings });
|
|
225
224
|
}
|
|
226
225
|
/**
|
|
227
226
|
* Gets whether the series should be assigned to the secondary y-axis.
|
|
@@ -229,25 +228,25 @@ class n extends O {
|
|
|
229
228
|
* @param seriesIndex - The index of the series.
|
|
230
229
|
*/
|
|
231
230
|
getSeriesToSecondaryYAxis(e) {
|
|
232
|
-
return
|
|
231
|
+
return C(e, this._config);
|
|
233
232
|
}
|
|
234
233
|
setSeriesToSecondaryYAxis(e, i) {
|
|
235
|
-
|
|
234
|
+
A({ assign: e, seriesIndex: i, config: this._config, commonStrings: this.commonStrings });
|
|
236
235
|
}
|
|
237
236
|
/**
|
|
238
237
|
* Gets the sort order for the bar chart.
|
|
239
238
|
*/
|
|
240
239
|
getSortOrder() {
|
|
241
|
-
return
|
|
240
|
+
return S(this._config)[0];
|
|
242
241
|
}
|
|
243
242
|
setSortOrder(e, i) {
|
|
244
|
-
|
|
243
|
+
F(e, this._config, i);
|
|
245
244
|
}
|
|
246
245
|
/**
|
|
247
246
|
* Gets the list of the category values for the chart.
|
|
248
247
|
*/
|
|
249
248
|
async getCustomSortValues() {
|
|
250
|
-
return await
|
|
249
|
+
return await _({
|
|
251
250
|
config: this._config,
|
|
252
251
|
layerInfo: this.layerInfo,
|
|
253
252
|
errorStrings: this.commonStrings?.errorStrings
|
|
@@ -255,15 +254,15 @@ class n extends O {
|
|
|
255
254
|
}
|
|
256
255
|
async setDataFilters(e) {
|
|
257
256
|
super.setDataFilters(e);
|
|
258
|
-
const i =
|
|
257
|
+
const i = S(this._config)[0];
|
|
259
258
|
if (i === V.customSort) {
|
|
260
259
|
this.startAsyncUpdate();
|
|
261
|
-
const t = await
|
|
260
|
+
const t = await _({
|
|
262
261
|
config: this._config,
|
|
263
262
|
layerInfo: this.layerInfo,
|
|
264
263
|
errorStrings: this.commonStrings?.errorStrings
|
|
265
264
|
});
|
|
266
|
-
|
|
265
|
+
F(i, this._config, t), this.finishAsyncUpdate();
|
|
267
266
|
}
|
|
268
267
|
this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"));
|
|
269
268
|
}
|
|
@@ -271,16 +270,16 @@ class n extends O {
|
|
|
271
270
|
* The list of values for custom sort.
|
|
272
271
|
*/
|
|
273
272
|
get orderByList() {
|
|
274
|
-
return
|
|
273
|
+
return B(this._config);
|
|
275
274
|
}
|
|
276
275
|
set orderByList(e) {
|
|
277
|
-
!P(this._config) &&
|
|
276
|
+
!P(this._config) && x(e, this._config);
|
|
278
277
|
}
|
|
279
278
|
/**
|
|
280
279
|
* Updates the series based on the layer filter.
|
|
281
280
|
*/
|
|
282
281
|
updateSeriesFromLayerFilter() {
|
|
283
|
-
this.layerInfo !== void 0 &&
|
|
282
|
+
this.layerInfo !== void 0 && m(this.getBuildNewSeriesProps());
|
|
284
283
|
}
|
|
285
284
|
/**
|
|
286
285
|
* Whether temporal binning is enabled for all series in the config.
|
|
@@ -304,10 +303,10 @@ class n extends O {
|
|
|
304
303
|
* @param seriesIndex - The index of the series.
|
|
305
304
|
*/
|
|
306
305
|
getSeriesName(e) {
|
|
307
|
-
return
|
|
306
|
+
return be(e, this._config);
|
|
308
307
|
}
|
|
309
308
|
setSeriesName(e, i) {
|
|
310
|
-
|
|
309
|
+
ve(e, i, this._config);
|
|
311
310
|
}
|
|
312
311
|
/**
|
|
313
312
|
* Gets the color of the series based on the series index. If the index is out of bounds, it will return `undefined`.
|
|
@@ -351,8 +350,8 @@ class n extends O {
|
|
|
351
350
|
t.splice(i, 0, r), this.setOrderOfSeries(t);
|
|
352
351
|
}
|
|
353
352
|
moveCustomSortValuesInOrderByList(e, i) {
|
|
354
|
-
const t =
|
|
355
|
-
t.splice(i, 0, r),
|
|
353
|
+
const t = B(this._config), [r] = t.splice(e, 1);
|
|
354
|
+
t.splice(i, 0, r), x(t, this._config);
|
|
356
355
|
}
|
|
357
356
|
/**
|
|
358
357
|
* The null category configuration of the chart.
|
|
@@ -366,7 +365,7 @@ class n extends O {
|
|
|
366
365
|
}
|
|
367
366
|
set nullCategory(e) {
|
|
368
367
|
const i = this.nullCategory;
|
|
369
|
-
|
|
368
|
+
D(i, e) || Ne(this._config, e);
|
|
370
369
|
}
|
|
371
370
|
/**
|
|
372
371
|
* Sets up the local props based on the current config.
|
|
@@ -374,7 +373,7 @@ class n extends O {
|
|
|
374
373
|
* @private
|
|
375
374
|
*/
|
|
376
375
|
setupLocalProps() {
|
|
377
|
-
this._xAxisField =
|
|
376
|
+
this._xAxisField = Te(this._config), this._aggregationType = d(this._config), this._splitByField = te(this._config), this._numericFields = y(this._config);
|
|
378
377
|
}
|
|
379
378
|
resetConfig() {
|
|
380
379
|
const e = this._config.id;
|
|
@@ -397,7 +396,7 @@ class n extends O {
|
|
|
397
396
|
* @private
|
|
398
397
|
*/
|
|
399
398
|
async processSeriesRebuild(e) {
|
|
400
|
-
this.usingSplitBy() ? (this.startAsyncUpdate(), await this.fetchSplitByFieldInfos(),
|
|
399
|
+
this.usingSplitBy() ? (this.startAsyncUpdate(), await this.fetchSplitByFieldInfos(), m(this.getBuildNewSeriesProps()), this.finishAsyncUpdate()) : m(this.getBuildNewSeriesProps()), this.setupLocalProps(), this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")), this.emitConfigUpdate(e);
|
|
401
400
|
}
|
|
402
401
|
/**
|
|
403
402
|
* Fetches the split-by field information and stores it in a private member for use in building the series.
|
|
@@ -407,7 +406,7 @@ class n extends O {
|
|
|
407
406
|
config: this._config,
|
|
408
407
|
layer: this.layerInfo.layer,
|
|
409
408
|
layerFieldsInfo: this.layerInfo.layerFieldsInfo,
|
|
410
|
-
xAxisField: this._xAxisField !==
|
|
409
|
+
xAxisField: this._xAxisField !== p ? this._xAxisField : void 0,
|
|
411
410
|
splitByField: this._splitByField,
|
|
412
411
|
fetchNullValues: this._config?.series?.[0]?.query?.fetchNullValues,
|
|
413
412
|
errorStrings: this.commonStrings?.errorStrings
|
|
@@ -448,8 +447,8 @@ class n extends O {
|
|
|
448
447
|
config: this._config,
|
|
449
448
|
layerInfo: this.layerInfo,
|
|
450
449
|
commonStrings: this.commonStrings,
|
|
451
|
-
numericFields:
|
|
452
|
-
aggregationType:
|
|
450
|
+
numericFields: y(this._config),
|
|
451
|
+
aggregationType: d(this._config)
|
|
453
452
|
}) : "";
|
|
454
453
|
}
|
|
455
454
|
// #endregion
|
|
@@ -502,11 +501,11 @@ l([
|
|
|
502
501
|
const Xe = [
|
|
503
502
|
j,
|
|
504
503
|
N,
|
|
505
|
-
E,
|
|
506
504
|
k,
|
|
507
|
-
|
|
508
|
-
U,
|
|
505
|
+
E,
|
|
509
506
|
de,
|
|
507
|
+
U,
|
|
508
|
+
me,
|
|
510
509
|
oe,
|
|
511
510
|
X,
|
|
512
511
|
c,
|
|
@@ -520,10 +519,10 @@ const Xe = [
|
|
|
520
519
|
fe,
|
|
521
520
|
re
|
|
522
521
|
];
|
|
523
|
-
|
|
522
|
+
xe(n, Xe);
|
|
524
523
|
export {
|
|
525
524
|
n as S,
|
|
526
|
-
|
|
527
|
-
|
|
525
|
+
ve as a,
|
|
526
|
+
be as g,
|
|
528
527
|
We as s
|
|
529
528
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { m as n, C as l } from "./model-setter.js";
|
|
3
3
|
import { H as o, M as g, T as h } from "./index.js";
|
|
4
|
-
import {
|
|
4
|
+
import { aJ as p } from "./index2.js";
|
|
5
5
|
var f = Object.defineProperty, c = Object.getOwnPropertyDescriptor, u = (t, e, i, _) => {
|
|
6
6
|
for (var s = c(e, i), r = t.length - 1, a; r >= 0; r--)
|
|
7
7
|
(a = t[r]) && (s = a(e, i, s) || s);
|
|
@@ -1,31 +1,35 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { u as
|
|
2
|
+
import { u as e } from "./chart-object-literals.js";
|
|
3
3
|
function r(t) {
|
|
4
|
-
return t.size === 2 && t.has(
|
|
4
|
+
return t.size === 2 && t.has(e.LineSeries) && t.has(e.BarSeries);
|
|
5
5
|
}
|
|
6
|
-
function
|
|
7
|
-
return t.size === 2 && t.has(
|
|
6
|
+
function a(t) {
|
|
7
|
+
return t.size === 2 && t.has(e.LineSeries) && t.has(e.BoxPlotSeries) || t.size === 1 && t.has(e.BoxPlotSeries);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
let
|
|
9
|
+
function f(t, o) {
|
|
10
|
+
let n;
|
|
11
11
|
if (t !== void 0 && t.length > 0)
|
|
12
|
-
if (
|
|
13
|
-
|
|
12
|
+
if (o !== void 0 && o >= 0 && o < t.length)
|
|
13
|
+
n = t[o].type;
|
|
14
14
|
else {
|
|
15
|
-
const
|
|
16
|
-
|
|
15
|
+
const i = new Set(t.map((p) => p.type)), s = r(i), l = a(i);
|
|
16
|
+
s === !0 ? n = e.ComboLineAndBarSeries : l ? n = e.BoxPlotSeries : i.size >= 2 ? n = void 0 : n = t[0].type;
|
|
17
17
|
}
|
|
18
|
-
return
|
|
18
|
+
return n;
|
|
19
19
|
}
|
|
20
|
-
function
|
|
21
|
-
return
|
|
20
|
+
function C(t, o = !0) {
|
|
21
|
+
return o ? t?.xTemporalBinning : t?.yTemporalBinning;
|
|
22
22
|
}
|
|
23
|
-
const
|
|
23
|
+
const g = {
|
|
24
24
|
isComboLineAndBarChart: r,
|
|
25
|
-
isBoxPlotChart:
|
|
25
|
+
isBoxPlotChart: a
|
|
26
26
|
};
|
|
27
|
+
function m(t) {
|
|
28
|
+
return t.type === e.BarSeries || t.type === e.LineSeries || t.type === e.RadarSeries || t.type === e.ComboLineAndBarSeries;
|
|
29
|
+
}
|
|
27
30
|
export {
|
|
28
|
-
|
|
29
|
-
g,
|
|
30
|
-
|
|
31
|
+
C as a,
|
|
32
|
+
f as g,
|
|
33
|
+
m as s,
|
|
34
|
+
g as t
|
|
31
35
|
};
|
|
@@ -13,29 +13,29 @@ function d(i) {
|
|
|
13
13
|
function f(i) {
|
|
14
14
|
return i?.chartType === e.RadarSeries;
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function o(i) {
|
|
17
17
|
return i?.chartType === e.ComboLineAndBarSeries;
|
|
18
18
|
}
|
|
19
19
|
function h(i) {
|
|
20
20
|
const t = i?.chartType;
|
|
21
21
|
return t === e.LineSeries || t === e.BarSeries || t === e.ComboLineAndBarSeries || t === e.RadarSeries;
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function l(i) {
|
|
24
24
|
return i?.chartType === e.PieSeries;
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function p(i) {
|
|
27
27
|
return i?.chartType === e.BoxPlotSeries;
|
|
28
28
|
}
|
|
29
29
|
function y(i) {
|
|
30
30
|
return i?.chartType === e.ScatterSeries;
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function M(i) {
|
|
33
33
|
return i?.chartType === e.HistogramSeries;
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function S(i) {
|
|
36
36
|
return i?.chartType === e.HeatSeries;
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function T(i) {
|
|
39
39
|
return i?.chartType === e.GaugeSeries;
|
|
40
40
|
}
|
|
41
41
|
function g(i) {
|
|
@@ -56,10 +56,10 @@ function C(i) {
|
|
|
56
56
|
function x(i) {
|
|
57
57
|
return i !== void 0 && "getDataTooltipVisibility" in i;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function v(i) {
|
|
60
60
|
return i !== void 0 && "getGuideVisibility" in i && typeof i.getGuideVisibility == "function";
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function B(i) {
|
|
63
63
|
return i !== void 0 && "addXAxisGuide" in i && typeof i.addXAxisGuide == "function";
|
|
64
64
|
}
|
|
65
65
|
function A(i) {
|
|
@@ -71,38 +71,42 @@ function G(i) {
|
|
|
71
71
|
function L(i) {
|
|
72
72
|
return i !== void 0 && "displayCategory" in i;
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function W(i) {
|
|
75
75
|
return i !== void 0 && "temporalBinningSize" in i;
|
|
76
76
|
}
|
|
77
|
-
function
|
|
78
|
-
return s(i) ||
|
|
77
|
+
function b(i) {
|
|
78
|
+
return s(i) || o(i);
|
|
79
79
|
}
|
|
80
80
|
function H(i, t) {
|
|
81
81
|
const r = n(i?.chartType);
|
|
82
82
|
return i !== void 0 && r === t;
|
|
83
83
|
}
|
|
84
|
+
function P(i) {
|
|
85
|
+
return i !== void 0 && "nullCategory" in i;
|
|
86
|
+
}
|
|
84
87
|
export {
|
|
85
|
-
|
|
88
|
+
p as a,
|
|
86
89
|
c as b,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
90
|
+
o as c,
|
|
91
|
+
T as d,
|
|
92
|
+
S as e,
|
|
93
|
+
M as f,
|
|
91
94
|
d as g,
|
|
92
95
|
H as h,
|
|
93
96
|
s as i,
|
|
94
|
-
|
|
97
|
+
v as j,
|
|
95
98
|
G as k,
|
|
96
99
|
C as l,
|
|
97
100
|
g as m,
|
|
98
|
-
|
|
101
|
+
P as n,
|
|
99
102
|
b as o,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
103
|
+
W as p,
|
|
104
|
+
x as q,
|
|
105
|
+
B as r,
|
|
106
|
+
A as s,
|
|
107
|
+
L as t,
|
|
108
|
+
l as u,
|
|
109
|
+
f as v,
|
|
110
|
+
y as w,
|
|
111
|
+
h as x
|
|
108
112
|
};
|