@arcgis/charts-components 5.2.0-next.124 → 5.2.0-next.126
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/{4UYG2V6P.js → 2IW2QZFJ.js} +1 -1
- package/dist/cdn/{CB3BW4H5.js → 2PJPH3IO.js} +1 -1
- package/dist/cdn/{WTMEWLUJ.js → 3W4HHL2V.js} +1 -1
- package/dist/cdn/{32RVL6OQ.js → 4MAJ24GS.js} +1 -1
- package/dist/cdn/4U3OAZA7.js +2 -0
- package/dist/cdn/{BQMUOJL7.js → 4VFEZCIA.js} +1 -1
- package/dist/cdn/{MQI4ZLAS.js → 5434ASC3.js} +1 -1
- package/dist/cdn/{NCOXA4CE.js → 56LNZVTX.js} +1 -1
- package/dist/cdn/{HFFXDWQL.js → 57SE2XVZ.js} +1 -1
- package/dist/cdn/{DYCZXSJG.js → 5BMODU2D.js} +1 -1
- package/dist/cdn/{BQMDOKAK.js → 5BNYRPXI.js} +1 -1
- package/dist/cdn/{H4UKMJ3M.js → 5MDZB2JE.js} +1 -1
- package/dist/cdn/{VP5MGMQP.js → 5R7ZWTMY.js} +1 -1
- package/dist/cdn/6664UEHL.js +2 -0
- package/dist/cdn/{N4YN5XHL.js → 6AKXJHB7.js} +1 -1
- package/dist/cdn/{CQORXOQS.js → 6GTMALBB.js} +1 -1
- package/dist/cdn/{YW6WBDZV.js → 6MHADUGC.js} +1 -1
- package/dist/cdn/{XIVGFLZQ.js → 6QIL7VBD.js} +1 -1
- package/dist/cdn/{GZA5OPRD.js → 763Z5IGF.js} +1 -1
- package/dist/cdn/7KZO2XXD.js +2 -0
- package/dist/cdn/{KYQWN5DR.js → 7OESRD4R.js} +1 -1
- package/dist/cdn/{UDQP2AFN.js → A5P6WB3G.js} +1 -1
- package/dist/cdn/{FK7MIBNE.js → AMVJMEWD.js} +1 -1
- package/dist/cdn/{A5CQKJHA.js → ANSNUR3I.js} +1 -1
- package/dist/cdn/{RDCTBV2Q.js → AOKEN5ZO.js} +1 -1
- package/dist/cdn/{EXCMERSU.js → AOO37P5T.js} +1 -1
- package/dist/cdn/{4GHJREG3.js → ASBXNQOS.js} +2 -2
- package/dist/cdn/{GCPA466R.js → B5VRC7DP.js} +1 -1
- package/dist/cdn/{RPUEIRTH.js → BGIUDL2K.js} +1 -1
- package/dist/cdn/{OO4U6KKQ.js → CD3XMKTK.js} +1 -1
- package/dist/cdn/{5V33DFCG.js → CRDOGPB7.js} +1 -1
- package/dist/cdn/{KILQBDSV.js → CW4JPG3J.js} +1 -1
- package/dist/cdn/DAB3SJBG.js +2 -0
- package/dist/cdn/{IJR65YQB.js → DX7M2EXK.js} +1 -1
- package/dist/cdn/{BUXZ2NBS.js → DXWP65HI.js} +1 -1
- package/dist/cdn/{6H6ZTNGY.js → E5JWMNIW.js} +1 -1
- package/dist/cdn/{IKH7UGJM.js → EJXBVT5O.js} +1 -1
- package/dist/cdn/{ITFMAKY3.js → EX2R2B4U.js} +1 -1
- package/dist/cdn/{WSSQILRB.js → F3UFKEVT.js} +1 -1
- package/dist/cdn/{5SYHQWPP.js → FASMW7S2.js} +1 -1
- package/dist/cdn/{WXO3YJ3T.js → G4MIOOVR.js} +1 -1
- package/dist/cdn/{MVJKABXP.js → GMP2UWJG.js} +1 -1
- package/dist/cdn/{O7NFMOTE.js → GZWV22RE.js} +1 -1
- package/dist/cdn/{STFT35NP.js → HKFQANWN.js} +1 -1
- package/dist/cdn/{3HZFE5JC.js → HQMCT3VB.js} +1 -1
- package/dist/cdn/I3LNZVEA.js +3 -0
- package/dist/cdn/{ZRYPRUVT.js → IBLYUVF2.js} +1 -1
- package/dist/cdn/{CR2U5KNC.js → IJAURACW.js} +1 -1
- package/dist/cdn/{C6YIO7EV.js → IS2A63E6.js} +1 -1
- package/dist/cdn/{PX7QCMDX.js → IYI6DUGL.js} +1 -1
- package/dist/cdn/{Q4HYSXEK.js → JOEBZXL4.js} +1 -1
- package/dist/cdn/{IGOJGDYE.js → JSUH5PFI.js} +1 -1
- package/dist/cdn/{JO4YQAFF.js → JZ6V5FKE.js} +1 -1
- package/dist/cdn/{IJKFUMKC.js → K3R6EK3N.js} +1 -1
- package/dist/cdn/{3IXFIA6D.js → KS4EBLYJ.js} +22 -22
- package/dist/cdn/{BF2U4V7S.js → KW4KLLTK.js} +1 -1
- package/dist/cdn/{W7HVSUF2.js → LE2B3JXK.js} +1 -1
- package/dist/cdn/{V4N4EY2E.js → LHGIUJ6U.js} +1 -1
- package/dist/cdn/{JNRJSGDP.js → LV3GHN5L.js} +1 -1
- package/dist/cdn/{JFXCJ6HT.js → M2WD5JN6.js} +1 -1
- package/dist/cdn/{SZYIWW3C.js → MRN3GTKF.js} +1 -1
- package/dist/cdn/{CKD62DZ4.js → N75HEDSD.js} +1 -1
- package/dist/cdn/{OCABBLZ7.js → NNRSK2LV.js} +1 -1
- package/dist/cdn/ONKX4PWR.js +2 -0
- package/dist/cdn/{3LEJV2CC.js → OR765GRF.js} +1 -1
- package/dist/cdn/{V4VQT6A6.js → PEHD5Y4I.js} +1 -1
- package/dist/cdn/{JSFNIFWE.js → QELGEYXU.js} +1 -1
- package/dist/cdn/QZHRLUXI.js +2 -0
- package/dist/cdn/{DPEEMYYB.js → RBTEJMJT.js} +1 -1
- package/dist/cdn/RD2OZ5DF.js +2 -0
- package/dist/cdn/{EFFUZV52.js → RPMGP2UN.js} +1 -1
- package/dist/cdn/{H3JLQ2R3.js → RS2T6377.js} +1 -1
- package/dist/cdn/SKRBORPC.js +2 -0
- package/dist/cdn/SL3ZM7G5.js +2 -0
- package/dist/cdn/{353KIT3L.js → SYSQA3IG.js} +1 -1
- package/dist/cdn/{IS7KQGMM.js → T6RCABY5.js} +1 -1
- package/dist/cdn/{TV3FXQVK.js → TCYUL3JC.js} +1 -1
- package/dist/cdn/{MOL3RVAG.js → TIVS64YH.js} +1 -1
- package/dist/cdn/{O34ACKBX.js → TPTH224R.js} +1 -1
- package/dist/cdn/{DCIQMSQ2.js → TRR5AXW7.js} +1 -1
- package/dist/cdn/{LUFRX5TB.js → UEAU7YQZ.js} +1 -1
- package/dist/cdn/{ZP4T262N.js → UPEMQGFY.js} +1 -1
- package/dist/cdn/{6CPDF77P.js → UY4AKYFU.js} +1 -1
- package/dist/cdn/{MDMJT2VS.js → UYFTXYBR.js} +1 -1
- package/dist/cdn/{M6L3GCVZ.js → V3HNAMD7.js} +1 -1
- package/dist/cdn/{QOZYAJXQ.js → VFVOONAN.js} +1 -1
- package/dist/cdn/{WVOXFKFO.js → VJG6ZEH4.js} +1 -1
- package/dist/cdn/{IW27UN5J.js → VSMUBBEN.js} +1 -1
- package/dist/cdn/{U2O4NGY5.js → VT2XOG5Y.js} +1 -1
- package/dist/cdn/{IJ3OJVJQ.js → W2QXMYBG.js} +1 -1
- package/dist/cdn/{7TM4LYGN.js → WG2TWSUV.js} +1 -1
- package/dist/cdn/{IYVSAR3D.js → WOENRIAM.js} +1 -1
- package/dist/cdn/{PETPI6FO.js → WQQMTR5J.js} +1 -1
- package/dist/cdn/{OY5HRHVW.js → WW7WSQXS.js} +1 -1
- package/dist/cdn/{MFJINTU5.js → YHQ5JR63.js} +1 -1
- package/dist/cdn/YQDW3D4E.js +2 -0
- package/dist/cdn/{METDO2QG.js → YRWKRJU4.js} +1 -1
- package/dist/cdn/{U2VHNPRE.js → YSLCFR5X.js} +1 -1
- package/dist/cdn/{CQLILZFZ.js → YSZKMYYU.js} +1 -1
- package/dist/cdn/{QSJV77RB.js → YUN3KGXG.js} +1 -1
- package/dist/cdn/Z5VGMG7G.js +2 -0
- package/dist/cdn/{ZTVR6KBG.js → ZUN46CYQ.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/action-bar-utils.js +1 -1
- package/dist/chunks/box-plot-data.js +1 -1
- package/dist/chunks/box-plot-model.js +173 -117
- package/dist/chunks/chart-ui-utils.js +11 -11
- package/dist/chunks/class-breaks.js +1 -1
- package/dist/chunks/combo-bar-line-chart-model.js +1 -1
- package/dist/chunks/data.js +9 -9
- package/dist/chunks/generate-x-axis-title.js +15 -15
- package/dist/chunks/heat-chart-model.js +9 -0
- package/dist/chunks/index.js +1590 -1574
- package/dist/chunks/index2.js +7 -1
- package/dist/chunks/index3.js +15 -15
- package/dist/chunks/index4.js +7 -7
- package/dist/chunks/model-setter.js +21 -21
- package/dist/chunks/negative-values-stacked-to-baseline.js +1 -1
- package/dist/chunks/pie-chart-data.js +4 -4
- package/dist/chunks/pie-chart-model.js +102 -84
- package/dist/chunks/resource.js +1 -1
- package/dist/chunks/rounded-corners.js +1 -1
- package/dist/chunks/scatterplot-model.js +1 -1
- package/dist/chunks/serial-chart-data.js +71 -71
- package/dist/chunks/serial-chart-model.js +134 -79
- package/dist/chunks/type-guards2.js +17 -17
- package/dist/chunks/utils.js +123 -107
- package/dist/chunks/web-component-utils.js +9 -9
- package/dist/chunks/x-bounds.js +21 -21
- package/dist/components/arcgis-chart/customElement.js +4775 -4653
- package/dist/components/arcgis-charts-action-bar/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-axis/customElement.js +52 -42
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +11 -11
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +6 -6
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +10 -10
- package/dist/components/arcgis-charts-config-font-style/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-format/customElement.js +6 -6
- package/dist/components/arcgis-charts-config-general/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-guide/customElement.js +14 -14
- package/dist/components/arcgis-charts-config-guides/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +54 -63
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-histogram/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +9 -9
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +7 -7
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
- 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.js +368 -366
- package/dist/interfaces.d.ts +3 -2
- package/dist/model/box-plot-model/box-plot-model.d.ts +20 -1
- package/dist/model/heat-chart-model/heat-chart-model.d.ts +7 -1
- package/dist/model/interfaces/chart-interfaces.d.ts +3 -0
- package/dist/model/interfaces/common.d.ts +2 -0
- package/dist/model/pie-chart-model/pie-chart-model.d.ts +13 -1
- package/dist/model/serial-chart-model/serial-chart-model.d.ts +20 -1
- package/dist/model/shared/setup-utils.d.ts +2 -0
- package/dist/model/shared/setup-utils.js +37 -36
- package/dist/utils/chart-config/converter/index.js +48 -48
- package/dist/utils/chart-config/utils/index.d.ts +20 -0
- package/dist/utils/data/interfaces.d.ts +1 -0
- package/package.json +4 -4
- package/dist/cdn/2TV4NKY2.js +0 -2
- package/dist/cdn/4YOIC4P4.js +0 -2
- package/dist/cdn/ELXF6XQQ.js +0 -2
- package/dist/cdn/EXLX4SJG.js +0 -2
- package/dist/cdn/GTBT4ACW.js +0 -2
- package/dist/cdn/HH5B6KCV.js +0 -2
- package/dist/cdn/KRNF2XCU.js +0 -2
- package/dist/cdn/KZBUDNHW.js +0 -2
- package/dist/cdn/KZSCAJDG.js +0 -2
- package/dist/cdn/LBX6U6EK.js +0 -3
- package/dist/cdn/Q4GIMFJ2.js +0 -2
- package/dist/cdn/XOTHROVZ.js +0 -2
- /package/dist/cdn/{225VUGML.js → IJPD3GVL.js} +0 -0
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { isEqual as
|
|
3
|
-
import { a as
|
|
4
|
-
import {
|
|
2
|
+
import { isEqual as u } from "es-toolkit/compat";
|
|
3
|
+
import { a as S, c as b, d as f } from "./chart-object-literals.js";
|
|
4
|
+
import { c4 as v, c7 as L, bG as p, r as M } from "./index.js";
|
|
5
5
|
import { i as P } from "./index4.js";
|
|
6
|
-
import { C as O } from "./chart-model.js";
|
|
7
6
|
import { m as o } from "./model-setter.js";
|
|
8
7
|
import { S as V } from "./common.js";
|
|
9
|
-
import { M as N, a as k, W as
|
|
10
|
-
import { M as
|
|
11
|
-
import {
|
|
8
|
+
import { M as N, a as k, W as R, b as E } from "./data-labels-visibility.js";
|
|
9
|
+
import { M as U, a as j } from "./model-with-y-guides.js";
|
|
10
|
+
import { C as O } from "./chart-model.js";
|
|
11
|
+
import { g as d, d as y, j as X, k as Y, l as w, m as z, n as G, o as K, q, t as $, v as Z, w as H, x as J, y as Q, z as _, A as x, B as T, 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
|
-
import { W as ge, c as ce, d as
|
|
15
|
-
import { W as
|
|
14
|
+
import { W as ge, c as ce, d as he } from "./generate-x-axis-title.js";
|
|
15
|
+
import { W as fe, a as pe } from "./x-bounds.js";
|
|
16
16
|
import { W as me } from "./data-labels-symbol.js";
|
|
17
17
|
import { W as de } from "./rotated-state.js";
|
|
18
|
-
import { g as W, u as ye, d as
|
|
19
|
-
import { d as
|
|
20
|
-
import { u as
|
|
21
|
-
import { s as
|
|
22
|
-
const
|
|
18
|
+
import { g as W, u as ye, d as B, j as Se, k as ue, l as _e, h as xe } from "./utils.js";
|
|
19
|
+
import { d as C, e as F, a as Te } from "./data.js";
|
|
20
|
+
import { u as Be, m as Ce, a7 as Fe, j as Ae, k as Ie } from "./index3.js";
|
|
21
|
+
import { s as D } from "./series-types.js";
|
|
22
|
+
const A = (s, e) => e.series?.[s].assignToSecondValueAxis ?? !1, I = (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] = Fe(r, S.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
|
+
}, Le = (s, e) => {
|
|
30
30
|
const i = e.series?.[s];
|
|
31
31
|
let t;
|
|
32
|
-
return
|
|
33
|
-
},
|
|
32
|
+
return v(i) ? t = i.fillSymbol?.color : L(i) && (t = i.lineSymbol?.color), t;
|
|
33
|
+
}, Oe = (s, e, i) => {
|
|
34
34
|
const t = i.series?.[e];
|
|
35
|
-
t && (
|
|
36
|
-
...
|
|
35
|
+
t && (v(t) ? t.fillSymbol = {
|
|
36
|
+
...Be(e),
|
|
37
37
|
...t.fillSymbol,
|
|
38
38
|
color: s
|
|
39
|
-
} :
|
|
39
|
+
} : L(t) && (t.lineSymbol = {
|
|
40
40
|
...Ce(e),
|
|
41
41
|
...t.lineSymbol,
|
|
42
42
|
color: s
|
|
43
43
|
}));
|
|
44
|
-
},
|
|
44
|
+
}, We = (s) => s.series.map((e) => e.id), De = (s, e) => {
|
|
45
45
|
e.series?.sort(
|
|
46
46
|
(i, t) => s.findIndex((r) => i.id === r) - s.findIndex((r) => t.id === r)
|
|
47
47
|
);
|
|
@@ -57,19 +57,19 @@ const B = (s, e) => e.series?.[s].assignToSecondValueAxis ?? !1, A = (s) => {
|
|
|
57
57
|
});
|
|
58
58
|
ye(i, 1, a);
|
|
59
59
|
}
|
|
60
|
-
i.axes?.[1] && (e === b.Stacked100 ? i.axes[1].valueFormat = Ae() : i.axes[1].valueFormat =
|
|
60
|
+
i.axes?.[1] && (e === b.Stacked100 ? i.axes[1].valueFormat = Ae() : i.axes[1].valueFormat = Ie()), B({ config: i, value: null, axisIndex: 1, isMax: !1 }), B({ config: i, value: null, axisIndex: 1, isMax: !0 });
|
|
61
61
|
}, Ve = (s) => {
|
|
62
62
|
const e = {};
|
|
63
63
|
return s.series.forEach((i) => {
|
|
64
|
-
|
|
64
|
+
D(i) && "nullCategory" in i && i.nullCategory !== void 0 && (e.text ??= i.nullCategory.text, i.type === S.BarSeries ? e.fillSymbol ??= i.nullCategory.fillSymbol : e.markerSymbol ??= i.nullCategory.markerSymbol);
|
|
65
65
|
}), e.text || e.fillSymbol || e.markerSymbol ? e : void 0;
|
|
66
66
|
}, Ne = (s, e) => {
|
|
67
67
|
s.series.forEach((i) => {
|
|
68
|
-
|
|
68
|
+
D(i) && (e ? i.type === S.BarSeries ? i.nullCategory = { text: e?.text, fillSymbol: e?.fillSymbol } : i.nullCategory = { text: e?.text, markerSymbol: e?.markerSymbol } : i.nullCategory = void 0);
|
|
69
69
|
});
|
|
70
70
|
};
|
|
71
|
-
var ke = Object.defineProperty,
|
|
72
|
-
for (var r =
|
|
71
|
+
var ke = Object.defineProperty, Re = Object.getOwnPropertyDescriptor, h = (s, e, i, t) => {
|
|
72
|
+
for (var r = Re(e, i), a = s.length - 1, g; a >= 0; a--)
|
|
73
73
|
(g = s[a]) && (r = g(e, i, r) || r);
|
|
74
74
|
return r && ke(e, i, r), r;
|
|
75
75
|
};
|
|
@@ -78,34 +78,34 @@ class c extends O {
|
|
|
78
78
|
* Time interval size for a temporal bar chart or line chart.
|
|
79
79
|
*/
|
|
80
80
|
get temporalBinningSize() {
|
|
81
|
-
return
|
|
81
|
+
return X(this._config);
|
|
82
82
|
}
|
|
83
83
|
set temporalBinningSize(e) {
|
|
84
|
-
|
|
84
|
+
Y(e, this._config);
|
|
85
85
|
}
|
|
86
86
|
/**
|
|
87
87
|
* Time interval units for a temporal bar chart or line chart.
|
|
88
88
|
*/
|
|
89
89
|
get temporalBinningUnit() {
|
|
90
|
-
return
|
|
90
|
+
return w(this._config);
|
|
91
91
|
}
|
|
92
92
|
set temporalBinningUnit(e) {
|
|
93
|
-
|
|
93
|
+
z(e, this._config);
|
|
94
94
|
}
|
|
95
95
|
/**
|
|
96
96
|
* Time aggregation type for a temporal bar chart or line chart.
|
|
97
97
|
*/
|
|
98
98
|
get timeAggregationType() {
|
|
99
|
-
return
|
|
99
|
+
return G(this._config);
|
|
100
100
|
}
|
|
101
101
|
set timeAggregationType(e) {
|
|
102
|
-
|
|
102
|
+
K(e, this._config);
|
|
103
103
|
}
|
|
104
104
|
/**
|
|
105
105
|
* Whether to trim incomplete time intervals for a temporal bar chart or line chart.
|
|
106
106
|
*/
|
|
107
107
|
get trimIncompleteTimeInterval() {
|
|
108
|
-
return
|
|
108
|
+
return q(this._config);
|
|
109
109
|
}
|
|
110
110
|
set trimIncompleteTimeInterval(e) {
|
|
111
111
|
$(e, this._config);
|
|
@@ -129,37 +129,91 @@ class c extends O {
|
|
|
129
129
|
J(this._config);
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
|
-
|
|
132
|
+
h([
|
|
133
133
|
o
|
|
134
134
|
], c.prototype, "temporalBinningSize");
|
|
135
|
-
|
|
135
|
+
h([
|
|
136
136
|
o
|
|
137
137
|
], c.prototype, "temporalBinningUnit");
|
|
138
|
-
|
|
138
|
+
h([
|
|
139
139
|
o
|
|
140
140
|
], c.prototype, "timeAggregationType");
|
|
141
|
-
|
|
141
|
+
h([
|
|
142
142
|
o
|
|
143
143
|
], c.prototype, "trimIncompleteTimeInterval");
|
|
144
|
-
|
|
144
|
+
h([
|
|
145
145
|
o
|
|
146
146
|
], c.prototype, "nullPolicy");
|
|
147
|
-
|
|
147
|
+
h([
|
|
148
148
|
o
|
|
149
149
|
], c.prototype, "resetTimeInterval");
|
|
150
|
-
var
|
|
151
|
-
for (var r =
|
|
150
|
+
var Ee = Object.defineProperty, Ue = Object.getOwnPropertyDescriptor, l = (s, e, i, t) => {
|
|
151
|
+
for (var r = Ue(e, i), a = s.length - 1, g; a >= 0; a--)
|
|
152
152
|
(g = s[a]) && (r = g(e, i, r) || r);
|
|
153
|
-
return r &&
|
|
153
|
+
return r && Ee(e, i, r), r;
|
|
154
154
|
};
|
|
155
155
|
class n extends O {
|
|
156
156
|
constructor() {
|
|
157
|
-
super(...arguments), this._xAxisField = "", this._aggregationType =
|
|
157
|
+
super(...arguments), this._xAxisField = "", this._aggregationType = f.Count, this._splitByField = "", this._numericFields = [], this._splitBySeriesLimitReached = !1, this._splitBySeriesCount = 0;
|
|
158
158
|
}
|
|
159
159
|
// #endregion
|
|
160
160
|
// ---------------------------------------------------------------------------------------------
|
|
161
161
|
// #region Data Props
|
|
162
162
|
// ---------------------------------------------------------------------------------------------
|
|
163
|
+
/**
|
|
164
|
+
* The chart limits used when generating split-by series.
|
|
165
|
+
*
|
|
166
|
+
* @internal
|
|
167
|
+
*/
|
|
168
|
+
get chartLimits() {
|
|
169
|
+
return this._chartLimits;
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Sets the chart limits used when generating split-by series.
|
|
173
|
+
*
|
|
174
|
+
* When the limits change after model setup, the series are rebuilt asynchronously. Call the update() method to wait
|
|
175
|
+
* for the rebuild to complete.
|
|
176
|
+
*
|
|
177
|
+
* @internal
|
|
178
|
+
*
|
|
179
|
+
* @param chartLimits The chart limits to apply, or `undefined` to use the default limits.
|
|
180
|
+
*/
|
|
181
|
+
set chartLimits(e) {
|
|
182
|
+
const i = !u(this._chartLimits, e);
|
|
183
|
+
this._chartLimits = e, i && this.layerInfo !== void 0 && this._config !== void 0 && this.processSeriesRebuild("chartLimits");
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* Gets whether split-by series were trimmed to the configured chart limit.
|
|
187
|
+
*
|
|
188
|
+
* @internal
|
|
189
|
+
*/
|
|
190
|
+
get splitBySeriesLimitReached() {
|
|
191
|
+
return this._splitBySeriesLimitReached;
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* Sets whether split-by series were trimmed to the configured chart limit.
|
|
195
|
+
*
|
|
196
|
+
* @internal
|
|
197
|
+
*/
|
|
198
|
+
set splitBySeriesLimitReached(e) {
|
|
199
|
+
this._splitBySeriesLimitReached = e;
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Get the number of split-by series before applying the configured chart limit.
|
|
203
|
+
*
|
|
204
|
+
* @internal
|
|
205
|
+
*/
|
|
206
|
+
get splitBySeriesCount() {
|
|
207
|
+
return this._splitBySeriesCount;
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* Sets the number of split-by series before applying the configured chart limit.
|
|
211
|
+
*
|
|
212
|
+
* @internal
|
|
213
|
+
*/
|
|
214
|
+
set splitBySeriesCount(e) {
|
|
215
|
+
this._splitBySeriesCount = e;
|
|
216
|
+
}
|
|
163
217
|
/**
|
|
164
218
|
* The x-axis field for the chart.
|
|
165
219
|
*/
|
|
@@ -194,7 +248,7 @@ class n extends O {
|
|
|
194
248
|
return this._splitByField;
|
|
195
249
|
}
|
|
196
250
|
set splitByField(e) {
|
|
197
|
-
this.layerInfo?.layerFieldsInfo &&
|
|
251
|
+
this.layerInfo?.layerFieldsInfo && Se(this.layerInfo?.layerFieldsInfo, e) && (this._splitByField = e, this.processSeriesRebuild("splitByField"));
|
|
198
252
|
}
|
|
199
253
|
/**
|
|
200
254
|
* The numeric fields array for the chart.
|
|
@@ -204,10 +258,10 @@ class n extends O {
|
|
|
204
258
|
}
|
|
205
259
|
set numericFields(e) {
|
|
206
260
|
typeof e == "string" && (e = [e]);
|
|
207
|
-
const i =
|
|
261
|
+
const i = ue(this.layerInfo?.layerFieldsInfo ?? [], e), t = (this.xAxisField === "" || this.xAxisField === p) && e.length === 0;
|
|
208
262
|
if (i && !t) {
|
|
209
263
|
const r = M(this.layerInfo.layer).idField;
|
|
210
|
-
e.length === 0 && r !== void 0 ? (e = [r], this._aggregationType =
|
|
264
|
+
e.length === 0 && r !== void 0 ? (e = [r], this._aggregationType = f.Count) : this._aggregationType === f.Count && e.length >= 1 && r !== void 0 && !e.includes(r) && (this._aggregationType = f.Sum), this._numericFields = e, this.numericFields.length > 1 && (this._splitByField = ""), this.processSeriesRebuild("numericFields");
|
|
211
265
|
} else t && this.resetConfig();
|
|
212
266
|
}
|
|
213
267
|
/**
|
|
@@ -217,10 +271,10 @@ class n extends O {
|
|
|
217
271
|
* @deprecated since 5.2. Use {@link model/serial-chart-model/serial-chart-model#getSeriesToSecondaryYAxis getSeriesToSecondaryYAxis} instead.
|
|
218
272
|
*/
|
|
219
273
|
getAssignToSecondValueAxis(e) {
|
|
220
|
-
return
|
|
274
|
+
return A(e, this._config);
|
|
221
275
|
}
|
|
222
276
|
setAssignToSecondValueAxis(e, i) {
|
|
223
|
-
|
|
277
|
+
I({ assign: e, seriesIndex: i, config: this._config, commonStrings: this.commonStrings });
|
|
224
278
|
}
|
|
225
279
|
/**
|
|
226
280
|
* Gets whether the series should be assigned to the secondary y-axis.
|
|
@@ -228,25 +282,25 @@ class n extends O {
|
|
|
228
282
|
* @param seriesIndex - The index of the series.
|
|
229
283
|
*/
|
|
230
284
|
getSeriesToSecondaryYAxis(e) {
|
|
231
|
-
return
|
|
285
|
+
return A(e, this._config);
|
|
232
286
|
}
|
|
233
287
|
setSeriesToSecondaryYAxis(e, i) {
|
|
234
|
-
|
|
288
|
+
I({ assign: e, seriesIndex: i, config: this._config, commonStrings: this.commonStrings });
|
|
235
289
|
}
|
|
236
290
|
/**
|
|
237
291
|
* Gets the sort order for the bar chart.
|
|
238
292
|
*/
|
|
239
293
|
getSortOrder() {
|
|
240
|
-
return
|
|
294
|
+
return _(this._config)[0];
|
|
241
295
|
}
|
|
242
296
|
setSortOrder(e, i) {
|
|
243
|
-
|
|
297
|
+
C(e, this._config, i);
|
|
244
298
|
}
|
|
245
299
|
/**
|
|
246
300
|
* Gets the list of the category values for the chart.
|
|
247
301
|
*/
|
|
248
302
|
async getCustomSortValues() {
|
|
249
|
-
return await
|
|
303
|
+
return await x({
|
|
250
304
|
config: this._config,
|
|
251
305
|
layerInfo: this.layerInfo,
|
|
252
306
|
errorStrings: this.commonStrings?.errorStrings
|
|
@@ -254,15 +308,15 @@ class n extends O {
|
|
|
254
308
|
}
|
|
255
309
|
async setDataFilters(e) {
|
|
256
310
|
super.setDataFilters(e);
|
|
257
|
-
const i =
|
|
311
|
+
const i = _(this._config)[0];
|
|
258
312
|
if (i === V.customSort) {
|
|
259
313
|
this.startAsyncUpdate();
|
|
260
|
-
const t = await
|
|
314
|
+
const t = await x({
|
|
261
315
|
config: this._config,
|
|
262
316
|
layerInfo: this.layerInfo,
|
|
263
317
|
errorStrings: this.commonStrings?.errorStrings
|
|
264
318
|
});
|
|
265
|
-
|
|
319
|
+
C(i, this._config, t), this.finishAsyncUpdate();
|
|
266
320
|
}
|
|
267
321
|
this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"));
|
|
268
322
|
}
|
|
@@ -270,10 +324,10 @@ class n extends O {
|
|
|
270
324
|
* The list of values for custom sort.
|
|
271
325
|
*/
|
|
272
326
|
get orderByList() {
|
|
273
|
-
return
|
|
327
|
+
return F(this._config);
|
|
274
328
|
}
|
|
275
329
|
set orderByList(e) {
|
|
276
|
-
!P(this._config) &&
|
|
330
|
+
!P(this._config) && T(e, this._config);
|
|
277
331
|
}
|
|
278
332
|
/**
|
|
279
333
|
* Updates the series based on the layer filter.
|
|
@@ -311,7 +365,7 @@ class n extends O {
|
|
|
311
365
|
* @param seriesIndex - The index of the series.
|
|
312
366
|
*/
|
|
313
367
|
getSeriesName(e) {
|
|
314
|
-
return
|
|
368
|
+
return be(e, this._config);
|
|
315
369
|
}
|
|
316
370
|
setSeriesName(e, i) {
|
|
317
371
|
ve(e, i, this._config);
|
|
@@ -322,16 +376,16 @@ class n extends O {
|
|
|
322
376
|
* @param seriesIndex - The index of the series.
|
|
323
377
|
*/
|
|
324
378
|
getSeriesColor(e) {
|
|
325
|
-
return
|
|
379
|
+
return Le(e, this._config);
|
|
326
380
|
}
|
|
327
381
|
setSeriesColor(e, i) {
|
|
328
|
-
|
|
382
|
+
Oe(e, i, this._config);
|
|
329
383
|
}
|
|
330
384
|
/**
|
|
331
385
|
* Gets the order of the series array by returning an array of series ids.
|
|
332
386
|
*/
|
|
333
387
|
getOrderOfSeries() {
|
|
334
|
-
return
|
|
388
|
+
return We(this._config);
|
|
335
389
|
}
|
|
336
390
|
setOrderOfSeries(e) {
|
|
337
391
|
De(e, this._config);
|
|
@@ -358,8 +412,8 @@ class n extends O {
|
|
|
358
412
|
t.splice(i, 0, r), this.setOrderOfSeries(t);
|
|
359
413
|
}
|
|
360
414
|
moveCustomSortValuesInOrderByList(e, i) {
|
|
361
|
-
const t =
|
|
362
|
-
t.splice(i, 0, r),
|
|
415
|
+
const t = F(this._config), [r] = t.splice(e, 1);
|
|
416
|
+
t.splice(i, 0, r), T(t, this._config);
|
|
363
417
|
}
|
|
364
418
|
/**
|
|
365
419
|
* The null category configuration of the chart.
|
|
@@ -373,7 +427,7 @@ class n extends O {
|
|
|
373
427
|
}
|
|
374
428
|
set nullCategory(e) {
|
|
375
429
|
const i = this.nullCategory;
|
|
376
|
-
|
|
430
|
+
u(i, e) || Ne(this._config, e);
|
|
377
431
|
}
|
|
378
432
|
/**
|
|
379
433
|
* Sets up the local props based on the current config.
|
|
@@ -404,7 +458,7 @@ class n extends O {
|
|
|
404
458
|
* @private
|
|
405
459
|
*/
|
|
406
460
|
async processSeriesRebuild(e) {
|
|
407
|
-
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);
|
|
461
|
+
this.usingSplitBy() ? (this.startAsyncUpdate(), await this.fetchSplitByFieldInfos(), m(this.getBuildNewSeriesProps()), this.finishAsyncUpdate()) : (this._splitBySeriesLimitReached = !1, this._splitBySeriesCount = 0, m(this.getBuildNewSeriesProps())), this.setupLocalProps(), this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")), this.emitConfigUpdate(e);
|
|
408
462
|
}
|
|
409
463
|
/**
|
|
410
464
|
* Fetches the split-by field information and stores it in a private member for use in building the series.
|
|
@@ -417,8 +471,9 @@ class n extends O {
|
|
|
417
471
|
xAxisField: this._xAxisField !== p ? this._xAxisField : void 0,
|
|
418
472
|
splitByField: this._splitByField,
|
|
419
473
|
fetchNullValues: this._config?.series?.[0]?.query?.fetchNullValues,
|
|
474
|
+
chartLimits: this._chartLimits,
|
|
420
475
|
errorStrings: this.commonStrings?.errorStrings
|
|
421
|
-
}), this.splitByFieldInfos;
|
|
476
|
+
}), this._splitBySeriesLimitReached = this.splitByFieldInfos.seriesLimitReached, this._splitBySeriesCount = this.splitByFieldInfos.totalSeriesCount, this.splitByFieldInfos;
|
|
422
477
|
}
|
|
423
478
|
// #endregion
|
|
424
479
|
// #region Private Methods
|
|
@@ -506,32 +561,32 @@ l([
|
|
|
506
561
|
l([
|
|
507
562
|
o
|
|
508
563
|
], n.prototype, "resetConfig");
|
|
509
|
-
const
|
|
510
|
-
|
|
564
|
+
const je = [
|
|
565
|
+
U,
|
|
511
566
|
N,
|
|
512
567
|
k,
|
|
513
|
-
|
|
568
|
+
R,
|
|
514
569
|
de,
|
|
515
|
-
|
|
570
|
+
E,
|
|
516
571
|
me,
|
|
517
572
|
oe,
|
|
518
|
-
|
|
573
|
+
j,
|
|
519
574
|
c,
|
|
520
575
|
ge,
|
|
521
|
-
|
|
576
|
+
fe,
|
|
522
577
|
ce,
|
|
523
578
|
pe,
|
|
524
579
|
ne,
|
|
525
580
|
ae,
|
|
526
581
|
le,
|
|
527
|
-
|
|
582
|
+
he,
|
|
528
583
|
re
|
|
529
584
|
];
|
|
530
|
-
xe(n,
|
|
585
|
+
xe(n, je);
|
|
531
586
|
export {
|
|
532
587
|
n as S,
|
|
533
588
|
ve as a,
|
|
534
589
|
Ne as b,
|
|
535
|
-
|
|
536
|
-
|
|
590
|
+
be as g,
|
|
591
|
+
Oe as s
|
|
537
592
|
};
|
|
@@ -86,24 +86,24 @@ function P(i) {
|
|
|
86
86
|
return i !== void 0 && "nullCategory" in i;
|
|
87
87
|
}
|
|
88
88
|
export {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
89
|
+
p as a,
|
|
90
|
+
y as b,
|
|
91
|
+
T as c,
|
|
92
|
+
W as d,
|
|
93
|
+
a as e,
|
|
94
|
+
f,
|
|
95
|
+
o as g,
|
|
96
|
+
h,
|
|
97
97
|
t as i,
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
98
|
+
G as j,
|
|
99
|
+
M as k,
|
|
100
|
+
g as l,
|
|
101
|
+
P as m,
|
|
102
|
+
u as n,
|
|
103
|
+
B as o,
|
|
104
|
+
S as p,
|
|
105
|
+
v as q,
|
|
106
|
+
A as r,
|
|
107
107
|
l as s,
|
|
108
108
|
H as t,
|
|
109
109
|
C as u,
|