@arcgis/charts-components 6.0.0-next.14 → 6.0.0-next.16
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/26XWRAQN.js +2 -0
- package/dist/cdn/{TA72F3YR.js → 2OZON66K.js} +1 -1
- package/dist/cdn/{5WK7EKWG.js → 2XFCDEUQ.js} +1 -1
- package/dist/cdn/{7MQQTEGS.js → 2YPHOEBL.js} +1 -1
- package/dist/cdn/{T5JI4I3G.js → 3BHGMUPM.js} +1 -1
- package/dist/cdn/{FEEBSCRS.js → 3WYN6S3X.js} +1 -1
- package/dist/cdn/{KYI6HDQF.js → 3Z4OBTI2.js} +1 -1
- package/dist/cdn/{X4EOEOKN.js → 4CDZP4TX.js} +1 -1
- package/dist/cdn/{CCOXNEXP.js → 4KWM7I3R.js} +19 -19
- package/dist/cdn/{2IL6SDH6.js → 54KQWYXM.js} +1 -1
- package/dist/cdn/{HFIOYGNL.js → 5SEDPIPU.js} +1 -1
- package/dist/cdn/{SHHA3DMQ.js → 7B5WALQA.js} +1 -1
- package/dist/cdn/{PVE3JDGX.js → 7EBLXYTO.js} +1 -1
- package/dist/cdn/{YWBS5O3M.js → 7PBQ23Z6.js} +1 -1
- package/dist/cdn/{WS365KG2.js → 7R57NAHO.js} +1 -1
- package/dist/cdn/{SN2JSWO5.js → 7YTUWHFR.js} +1 -1
- package/dist/cdn/{RF37N4VO.js → A73ZVGAS.js} +1 -1
- package/dist/cdn/{O6ZKYG4T.js → BIU5DASA.js} +1 -1
- package/dist/cdn/{OI3WFXG7.js → BVAWYQ2X.js} +1 -1
- package/dist/cdn/{K5HHOIAF.js → BVYYKKMD.js} +1 -1
- package/dist/cdn/{KDFM2DN3.js → CEK6AM7E.js} +1 -1
- package/dist/cdn/{4KY3CIOE.js → CJRZC5CN.js} +1 -1
- package/dist/cdn/{IZBXJRRJ.js → CM2TXHHV.js} +1 -1
- package/dist/cdn/{VQ7NP3P7.js → CO56NHDR.js} +1 -1
- package/dist/cdn/{EQL6DTXS.js → DRQAJW27.js} +1 -1
- package/dist/cdn/{K6XIY66O.js → E2Y55KVA.js} +1 -1
- package/dist/cdn/{HDMJM556.js → EDPNBLT6.js} +1 -1
- package/dist/cdn/{CWEJAEUV.js → F6MI4LEQ.js} +1 -1
- package/dist/cdn/{PH7PXDCI.js → FBLAMRCB.js} +1 -1
- package/dist/cdn/{2MLNSI3G.js → FNCCQ326.js} +1 -1
- package/dist/cdn/{PLZJ46HI.js → GG5XPSK5.js} +1 -1
- package/dist/cdn/{5766ZRIW.js → GLMJXTZF.js} +1 -1
- package/dist/cdn/{O7O5YDT5.js → GO5Q775T.js} +1 -1
- package/dist/cdn/{IBKFWQPH.js → GZ3YHHLB.js} +1 -1
- package/dist/cdn/{3RHVJYAV.js → HHBLZIL4.js} +1 -1
- package/dist/cdn/{626JGTRZ.js → HUTZOFDL.js} +1 -1
- package/dist/cdn/{MJD7DA5G.js → I3DVCLDP.js} +1 -1
- package/dist/cdn/{KIDSF6WN.js → ICEYNRHD.js} +1 -1
- package/dist/cdn/{TD3GMZRT.js → IHZHAFPS.js} +1 -1
- package/dist/cdn/{4YOBDCTR.js → JHF77RUC.js} +1 -1
- package/dist/cdn/{APLXZUSH.js → KKCQL6EG.js} +1 -1
- package/dist/cdn/{A4LP6267.js → KQJAQMO4.js} +1 -1
- package/dist/cdn/{6A57VCEB.js → LON6BJK7.js} +1 -1
- package/dist/cdn/{4KT3XIUS.js → LQATZGEX.js} +1 -1
- package/dist/cdn/{TONXC5MT.js → LQFQARDL.js} +1 -1
- package/dist/cdn/{HXTUTTDW.js → M4MZPY2T.js} +1 -1
- package/dist/cdn/{QYJMNNOD.js → MRCL6W5Z.js} +1 -1
- package/dist/cdn/{DDFYNCKU.js → MTMNRIHL.js} +1 -1
- package/dist/cdn/{SH5NIXPR.js → N3CQJ33I.js} +1 -1
- package/dist/cdn/{B5PJAELA.js → NGU7YK4K.js} +1 -1
- package/dist/cdn/{EHYUK7VN.js → NQJQ637M.js} +1 -1
- package/dist/cdn/{SSPQJJ5K.js → NXZ643YO.js} +1 -1
- package/dist/cdn/{AY7RTY3L.js → NYEME5J5.js} +1 -1
- package/dist/cdn/{NZOXMPKS.js → O2NYEOQ6.js} +1 -1
- package/dist/cdn/{GWUQBXSL.js → OGNCTDAF.js} +1 -1
- package/dist/cdn/{4F5FRRXP.js → ONCZ6POJ.js} +1 -1
- package/dist/cdn/{MFTD2HWQ.js → OWX5EO6C.js} +1 -1
- package/dist/cdn/P4GYZ2NE.js +2 -0
- package/dist/cdn/{XWBETWPT.js → Q4EFECTX.js} +1 -1
- package/dist/cdn/{CRVLFI7I.js → QGXFFV46.js} +1 -1
- package/dist/cdn/{T4JWI7IU.js → QX443ZT3.js} +1 -1
- package/dist/cdn/{YJS7H3HY.js → R5XG2G7J.js} +1 -1
- package/dist/cdn/{USS4BS7V.js → RANMZVK2.js} +1 -1
- package/dist/cdn/{YGBETAHO.js → RFMXU2H7.js} +1 -1
- package/dist/cdn/{JASKGKES.js → RQ3AQL7A.js} +1 -1
- package/dist/cdn/{E2Q5PPYX.js → SFA5VTS2.js} +1 -1
- package/dist/cdn/{5TNFHQIR.js → SNL33CT7.js} +1 -1
- package/dist/cdn/{3MDBYWXW.js → TX34E6CB.js} +1 -1
- package/dist/cdn/{FMMCLXTF.js → U4N3E77G.js} +1 -1
- package/dist/cdn/{3FV3RKYL.js → UI4IOFME.js} +1 -1
- package/dist/cdn/{OUM277XS.js → UKXRSJI4.js} +1 -1
- package/dist/cdn/{SBNA2XJS.js → UOAPLPM3.js} +1 -1
- package/dist/cdn/{YVGYDZ4Y.js → VSEVHNBJ.js} +1 -1
- package/dist/cdn/{VMX2EPNH.js → W5UOB7NS.js} +1 -1
- package/dist/cdn/{4BPMPV3W.js → WHE4AAZ7.js} +1 -1
- package/dist/cdn/{FXFRPOKB.js → WSTNZKNL.js} +1 -1
- package/dist/cdn/XZHXK4OO.js +4 -0
- package/dist/cdn/{RUGYC5G2.js → YEHQ2DYK.js} +1 -1
- package/dist/cdn/{IPH2HEQ3.js → YGV6VUSU.js} +1 -1
- package/dist/cdn/{QROPJ6DR.js → YI4CAGMX.js} +1 -1
- package/dist/cdn/{BZYCRR4Z.js → Z4MNKCOZ.js} +1 -1
- package/dist/cdn/{3GALMNH3.js → ZBDDGW7A.js} +1 -1
- package/dist/cdn/{TPOYE44W.js → ZMLRNHR5.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/bar-chart-model.js +1 -1
- package/dist/chunks/box-plot-data.js +100 -98
- package/dist/chunks/box-plot-model.js +11 -11
- package/dist/chunks/chart-model.js +26 -26
- package/dist/chunks/chart-ui-utils.js +11 -11
- package/dist/chunks/chart-ui-utils2.js +1 -1
- package/dist/chunks/class-breaks.js +19 -19
- package/dist/chunks/combo-bar-line-chart-model.js +8 -8
- package/dist/chunks/data.js +16 -16
- package/dist/chunks/gauge-model.js +11 -11
- package/dist/chunks/histogram-model.js +9 -9
- package/dist/chunks/index.js +1293 -1265
- package/dist/chunks/index3.js +1 -1
- package/dist/chunks/line-chart-model.js +1 -1
- package/dist/chunks/model-with-x-guides.js +1 -1
- package/dist/chunks/model-with-y-guides.js +7 -7
- package/dist/chunks/pie-chart-model.js +1 -1
- package/dist/chunks/radar-chart-model.js +1 -1
- package/dist/chunks/scatterplot-model.js +5 -5
- package/dist/chunks/serial-chart-data.js +220 -218
- package/dist/chunks/serial-chart-model.js +19 -19
- package/dist/chunks/x-bounds.js +21 -21
- package/dist/components/arcgis-chart/customElement.d.ts +54 -15
- package/dist/components/arcgis-chart/customElement.js +1025 -1017
- package/dist/components/arcgis-charts-config-histogram/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot-aoi/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot-data/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 +261 -260
- package/dist/loader.js +1 -1
- package/dist/model/mixins/model-with-multi-axes.d.ts +29 -1
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/dist/utils/chart-config/converter/index.js +14 -14
- package/dist/utils/chart-config/utils/index.d.ts +10 -3
- package/package.json +5 -5
- package/dist/cdn/BAJ6SAPB.js +0 -2
- package/dist/cdn/PFTKPGYF.js +0 -2
- package/dist/cdn/WFTQTZE4.js +0 -4
- /package/dist/cdn/{TLQIGFGQ.js → 3YRFJ6NV.js} +0 -0
- /package/dist/cdn/{4QVR4X35.js → 42UIR2IR.js} +0 -0
- /package/dist/cdn/{45NAN6JY.js → 4AKIGTA2.js} +0 -0
- /package/dist/cdn/{OBPQAH5S.js → 4L3BZMH7.js} +0 -0
- /package/dist/cdn/{3ZECZOXN.js → 5BNIGQ75.js} +0 -0
- /package/dist/cdn/{TTTHFTPR.js → 65L7R5DC.js} +0 -0
- /package/dist/cdn/{SKOFRVPK.js → 7D3LBTBW.js} +0 -0
- /package/dist/cdn/{KYMJHW7P.js → 7XRRXXLO.js} +0 -0
- /package/dist/cdn/{LMGLYX4S.js → AZKT7APT.js} +0 -0
- /package/dist/cdn/{PW57OZAT.js → BA32RD3P.js} +0 -0
- /package/dist/cdn/{VTAGDT6C.js → CGGLSXCD.js} +0 -0
- /package/dist/cdn/{DAUURPYJ.js → DOQLHITH.js} +0 -0
- /package/dist/cdn/{I2PJ6P6Y.js → DVBWXJY4.js} +0 -0
- /package/dist/cdn/{IQM72DXD.js → EF2HSNUZ.js} +0 -0
- /package/dist/cdn/{VAU5AAP4.js → EGKOW5LO.js} +0 -0
- /package/dist/cdn/{PVMCNHBW.js → FUUEOMQP.js} +0 -0
- /package/dist/cdn/{CZ77PXQJ.js → FVSJ2OPV.js} +0 -0
- /package/dist/cdn/{6VSBLWTN.js → FWC4JUA4.js} +0 -0
- /package/dist/cdn/{LRM7GE53.js → HZTV6GS6.js} +0 -0
- /package/dist/cdn/{2YALNURG.js → I3LSRXSY.js} +0 -0
- /package/dist/cdn/{R7OOVB2X.js → I5PEQRVF.js} +0 -0
- /package/dist/cdn/{AHSP6KVB.js → JMUDIMMT.js} +0 -0
- /package/dist/cdn/{33JWZJUR.js → K6FYLQNG.js} +0 -0
- /package/dist/cdn/{4EANFQ2G.js → LD5UFLE7.js} +0 -0
- /package/dist/cdn/{TKVNAHQH.js → NNK6NBLX.js} +0 -0
- /package/dist/cdn/{2KFSN6AH.js → NZNYMEBI.js} +0 -0
- /package/dist/cdn/{EKGOACQH.js → OMB6VH6Z.js} +0 -0
- /package/dist/cdn/{C3KOECVE.js → PAXVQYNM.js} +0 -0
- /package/dist/cdn/{335JQ5T6.js → Q7ZPO77A.js} +0 -0
- /package/dist/cdn/{CMD2MEIF.js → QSYOS3BC.js} +0 -0
- /package/dist/cdn/{LKONQKHX.js → SQ6XT3Z7.js} +0 -0
- /package/dist/cdn/{SVGEURCU.js → TAQ7WU3A.js} +0 -0
- /package/dist/cdn/{XYLPZSTR.js → TFYWD6QL.js} +0 -0
- /package/dist/cdn/{BFZ6M3RT.js → V2AEKOVG.js} +0 -0
- /package/dist/cdn/{ZJHP53IM.js → WQSXECW6.js} +0 -0
- /package/dist/cdn/{24BAQ5OD.js → XS6XHZQ5.js} +0 -0
- /package/dist/cdn/{ZSO2HMNF.js → Y2GJGDES.js} +0 -0
- /package/dist/cdn/{BIVFM3IL.js → YYKAPOEZ.js} +0 -0
- /package/dist/cdn/{74EKMBT4.js → ZOSUF434.js} +0 -0
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
2
|
import { substitute as v } from "@arcgis/core/intl.js";
|
|
3
|
-
import { memoize as
|
|
3
|
+
import { memoize as W, isEmpty as ne, isEqual as le, cloneDeep as K } from "es-toolkit/compat";
|
|
4
4
|
import { B as f } from "./common.js";
|
|
5
5
|
import { u as I, g as k, b as U, c as ae, d as E } from "./utils.js";
|
|
6
|
-
import {
|
|
7
|
-
import { g as
|
|
6
|
+
import { cX as M, cD as ce, cJ as D, X as de, a5 as ye, cA as ue, cY as fe, cZ as me, B, ah as X, cG as Se } from "./index.js";
|
|
7
|
+
import { g as pe } from "./series-length.js";
|
|
8
8
|
import { s as N } from "./data.js";
|
|
9
|
-
import { d as
|
|
9
|
+
import { d as ge } from "./rest-js-object-literals.js";
|
|
10
10
|
import { a as p, t as S, g as x } from "./chart-object-literals.js";
|
|
11
|
-
import { o as $, l as h, n as
|
|
11
|
+
import { o as $, l as h, n as xe, t as be, a9 as j, aa as z, a0 as he, ab as Fe, _ as Ae, $ as Be } from "./index2.js";
|
|
12
12
|
import { i as P } from "./index3.js";
|
|
13
|
-
import { s as
|
|
13
|
+
import { s as Ce, a as Le } from "./series.js";
|
|
14
14
|
const J = (s) => {
|
|
15
15
|
const { config: e, seriesIndex: t, callback: o } = s;
|
|
16
16
|
[t !== void 0 ? e.series?.[t] : e.series].flat().forEach((i) => {
|
|
@@ -22,10 +22,10 @@ const J = (s) => {
|
|
|
22
22
|
config: o,
|
|
23
23
|
seriesIndex: t,
|
|
24
24
|
callback: (i) => {
|
|
25
|
-
|
|
25
|
+
Ce(e, i);
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
|
-
},
|
|
28
|
+
}, es = (s) => {
|
|
29
29
|
const { width: e, seriesIndex: t, config: o } = s;
|
|
30
30
|
J({
|
|
31
31
|
config: o,
|
|
@@ -34,52 +34,52 @@ const J = (s) => {
|
|
|
34
34
|
Le(e, i);
|
|
35
35
|
}
|
|
36
36
|
});
|
|
37
|
-
},
|
|
37
|
+
}, ss = (s, e) => e?.series?.[s]?.name, ts = (s, e, t) => {
|
|
38
38
|
const o = t;
|
|
39
39
|
o?.series?.[e] !== void 0 && (o.series[e].name = s);
|
|
40
|
-
},
|
|
40
|
+
}, is = (s, e) => {
|
|
41
41
|
let t;
|
|
42
42
|
const o = e.series?.[s];
|
|
43
43
|
return o?.type === p.BoxPlotSeries ? t = o.fillSymbol?.color : o?.type === p.LineSeries && (t = o.lineSymbol?.color), t;
|
|
44
|
-
},
|
|
44
|
+
}, we = (s) => {
|
|
45
45
|
const e = s.series[0];
|
|
46
46
|
return s.showMean === !0 && M(e) ? e.fillSymbol?.color : void 0;
|
|
47
|
-
},
|
|
47
|
+
}, Te = (s, e) => {
|
|
48
48
|
const t = e.series[0];
|
|
49
49
|
e.showMean === !0 && M(t) && (t.fillSymbol !== void 0 ? t.fillSymbol.color = s : t.fillSymbol = {
|
|
50
50
|
...$(),
|
|
51
51
|
color: s
|
|
52
52
|
});
|
|
53
|
-
},
|
|
53
|
+
}, os = (s, e, t) => {
|
|
54
54
|
const i = t?.series?.[e];
|
|
55
55
|
i?.type === p.BoxPlotSeries && i.fillSymbol !== void 0 ? i.fillSymbol.color = s : i?.type === p.LineSeries && i.lineSymbol !== void 0 && (i.lineSymbol.color = s, i.markerSymbol !== void 0 && (i.markerSymbol.color = s));
|
|
56
|
-
},
|
|
56
|
+
}, ve = (s) => s.series.map((e) => e.id), Oe = (s, e) => {
|
|
57
57
|
e?.series?.sort(
|
|
58
58
|
(t, o) => s.findIndex((i) => t.id === i) - s.findIndex((i) => o.id === i)
|
|
59
59
|
);
|
|
60
|
-
},
|
|
61
|
-
const o =
|
|
62
|
-
o.splice(e, 0, i),
|
|
63
|
-
},
|
|
64
|
-
function
|
|
65
|
-
const o = ee(s, e, t), i =
|
|
60
|
+
}, rs = (s, e, t) => {
|
|
61
|
+
const o = ve(t), [i] = o.splice(s, 1);
|
|
62
|
+
o.splice(e, 0, i), Oe(o, t);
|
|
63
|
+
}, ns = (s) => V(s) ? s.series.findIndex((e) => e.type === p.BoxPlotSeries) : -1;
|
|
64
|
+
function Ie(s, e, t) {
|
|
65
|
+
const o = ee(s, e, t), i = pe(s), r = P(s);
|
|
66
66
|
return o === i || r;
|
|
67
67
|
}
|
|
68
68
|
function R(s, e, t) {
|
|
69
69
|
const o = T(s, e, t), i = k(1, s), r = P(s);
|
|
70
70
|
return o === i || r;
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
const { config: e, layerInfo: t, newCategory: o } = s, { layerFieldsInfo: i } = t, r =
|
|
72
|
+
function Me(s) {
|
|
73
|
+
const { config: e, layerInfo: t, newCategory: o } = s, { layerFieldsInfo: i } = t, r = L(e), n = o !== h ? B(i, r) : "", l = k(0, e), a = P(e);
|
|
74
74
|
return n === l || a || l.trim() === "";
|
|
75
75
|
}
|
|
76
|
-
const
|
|
76
|
+
const L = (s) => D(s)?.x ?? h, Pe = W(
|
|
77
77
|
(s) => {
|
|
78
78
|
const e = D(s), t = e?.query?.where?.split("=")[0].trim() ?? "";
|
|
79
79
|
return de(e?.query?.where) ? "" : t;
|
|
80
80
|
},
|
|
81
81
|
(s) => D(s)?.query?.where
|
|
82
|
-
),
|
|
82
|
+
), G = W(
|
|
83
83
|
// without memoizing, the worst case efficiency is O(series.length), best case is O(1)
|
|
84
84
|
// with memoizing, the worst case efficiency for repeated calls becomes O(1)
|
|
85
85
|
(s) => ye(s?.series).filter((e) => e !== ""),
|
|
@@ -93,21 +93,21 @@ const C = (s) => D(s)?.x ?? h, Me = Y(
|
|
|
93
93
|
query: {}
|
|
94
94
|
};
|
|
95
95
|
return K(n);
|
|
96
|
-
},
|
|
96
|
+
}, De = (s) => {
|
|
97
97
|
const { category: e, seriesIndex: t, y: o, commonStrings: i } = s, n = {
|
|
98
|
-
...
|
|
98
|
+
...he({ commonStrings: i, seriesIndex: t }),
|
|
99
99
|
x: e === void 0 || e === "" ? h : e,
|
|
100
100
|
y: o,
|
|
101
101
|
query: {}
|
|
102
102
|
};
|
|
103
103
|
return K(n);
|
|
104
104
|
};
|
|
105
|
-
function
|
|
105
|
+
function _(s) {
|
|
106
106
|
const { x: e, y: t, seriesTemplate: o, commonStrings: i } = s, { id: r, fillSymbol: n } = o ?? {}, l = j(i), a = r ?? `series_${Date.now()}`;
|
|
107
107
|
return l.id = a, l.name = a, l.x = e, l.y = t, n ? l.fillSymbol = n : l.fillSymbol && (l.fillSymbol.color = z, l.fillSymbol?.outline && (l.fillSymbol.outline.color = z)), l;
|
|
108
108
|
}
|
|
109
109
|
function Q(s) {
|
|
110
|
-
const { numericFields: e, config: t, layerInfo: o, category: i, commonStrings: r } = s, { layerFieldsInfo: n } = o, l = [], a = i ??
|
|
110
|
+
const { numericFields: e, config: t, layerInfo: o, category: i, commonStrings: r } = s, { layerFieldsInfo: n } = o, l = [], a = i ?? L(t), y = N({
|
|
111
111
|
fieldName: a,
|
|
112
112
|
numericFields: e,
|
|
113
113
|
fieldList: n
|
|
@@ -126,13 +126,13 @@ function Q(s) {
|
|
|
126
126
|
seriesIndex: 0,
|
|
127
127
|
category: a,
|
|
128
128
|
commonStrings: r
|
|
129
|
-
}), F = t.series.find((
|
|
129
|
+
}), F = t.series.find((A) => le(c, A.y) && A.query?.where === void 0), d = M(F) ? F : void 0, m = d?.id ?? e[0], g = e.length > 1 ? r.axisLabels.values : B(o.layerFieldsInfo, e[0]), b = d?.name ?? g, C = {
|
|
130
130
|
...d ?? u,
|
|
131
131
|
id: m,
|
|
132
132
|
name: b,
|
|
133
133
|
x: y ? h : a
|
|
134
134
|
};
|
|
135
|
-
l.push(
|
|
135
|
+
l.push(C);
|
|
136
136
|
} else
|
|
137
137
|
for (let c = 0; c < e.length; c += 1) {
|
|
138
138
|
const u = e[c], F = O({
|
|
@@ -140,18 +140,18 @@ function Q(s) {
|
|
|
140
140
|
seriesIndex: c,
|
|
141
141
|
category: a,
|
|
142
142
|
commonStrings: r
|
|
143
|
-
}), d = t.series.find((
|
|
143
|
+
}), d = t.series.find((A) => u === A.y), m = M(d) ? d : void 0, g = m?.id ?? u, b = m?.name ?? B(n, u), C = {
|
|
144
144
|
...m ?? F,
|
|
145
145
|
id: g,
|
|
146
146
|
name: b,
|
|
147
147
|
x: a
|
|
148
148
|
};
|
|
149
|
-
l.push(
|
|
149
|
+
l.push(C);
|
|
150
150
|
}
|
|
151
151
|
return t.series.length === 1 && l.length === 1 && "fillSymbol" in t.series[0] && (l[0].fillSymbol = t.series[0].fillSymbol), l;
|
|
152
152
|
}
|
|
153
|
-
const
|
|
154
|
-
function
|
|
153
|
+
const Z = (s) => s?.query?.where?.split("=")[1].trim().replace(/'/gu, "") ?? "", Ve = (s) => s.series.some((e) => e.type === p.LineSeries) && s.series.some((e) => e.type === p.BoxPlotSeries);
|
|
154
|
+
function ke(s, e, t) {
|
|
155
155
|
const o = [];
|
|
156
156
|
return s.forEach((i) => {
|
|
157
157
|
if (i.type === p.BoxPlotSeries) {
|
|
@@ -160,17 +160,17 @@ function Ve(s, e, t) {
|
|
|
160
160
|
...l,
|
|
161
161
|
type: p.LineSeries,
|
|
162
162
|
lineSymbol: {
|
|
163
|
-
...
|
|
163
|
+
...be({ width: Fe }),
|
|
164
164
|
...n !== void 0 ? { color: n.color } : {}
|
|
165
165
|
},
|
|
166
166
|
markerSymbol: {
|
|
167
|
-
...
|
|
167
|
+
...xe(),
|
|
168
168
|
...n !== void 0 ? { color: n.color } : {}
|
|
169
169
|
}
|
|
170
170
|
});
|
|
171
171
|
}
|
|
172
172
|
}), o.unshift(
|
|
173
|
-
|
|
173
|
+
_({
|
|
174
174
|
x: s[0].x,
|
|
175
175
|
y: s[0].y,
|
|
176
176
|
seriesTemplate: t,
|
|
@@ -178,7 +178,7 @@ function Ve(s, e, t) {
|
|
|
178
178
|
})
|
|
179
179
|
), o;
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function Ne(s) {
|
|
182
182
|
const e = s.slice(1), t = [];
|
|
183
183
|
return e.forEach((o) => {
|
|
184
184
|
if (o.type === p.LineSeries) {
|
|
@@ -194,7 +194,7 @@ function ke(s) {
|
|
|
194
194
|
}
|
|
195
195
|
}), t;
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function H(s) {
|
|
198
198
|
const { formerSeries: e, newSeries: t, showMean: o } = s;
|
|
199
199
|
let i = t;
|
|
200
200
|
const r = (a) => a.type === (o ? p.LineSeries : p.BoxPlotSeries), n = e.filter(r).map((a) => a.id), l = t.filter(r).map((a) => a.id);
|
|
@@ -202,7 +202,7 @@ function Z(s) {
|
|
|
202
202
|
(a, y) => n.findIndex((c) => c === a.id) - n.findIndex((c) => c === y.id)
|
|
203
203
|
)), i;
|
|
204
204
|
}
|
|
205
|
-
function
|
|
205
|
+
function qe(s) {
|
|
206
206
|
const {
|
|
207
207
|
config: e,
|
|
208
208
|
layerInfo: t,
|
|
@@ -211,9 +211,9 @@ function Ne(s) {
|
|
|
211
211
|
numericFields: r,
|
|
212
212
|
category: n,
|
|
213
213
|
splitByFieldInfos: l
|
|
214
|
-
} = s, a = n ??
|
|
214
|
+
} = s, a = n ?? L(e), { categoriesArray: y, splitByFieldType: c } = l;
|
|
215
215
|
let u = [];
|
|
216
|
-
const F =
|
|
216
|
+
const F = Ve(e);
|
|
217
217
|
if (y.length === 0) {
|
|
218
218
|
u = Q({
|
|
219
219
|
numericFields: r,
|
|
@@ -231,30 +231,32 @@ function Ne(s) {
|
|
|
231
231
|
seriesIndex: d,
|
|
232
232
|
category: a,
|
|
233
233
|
commonStrings: o
|
|
234
|
-
}, b = F ?
|
|
234
|
+
}, b = F ? De(g) : O(g), w = X({
|
|
235
235
|
queryObject: t.layer,
|
|
236
236
|
fieldName: i,
|
|
237
237
|
fieldValue: m ?? ""
|
|
238
|
-
}),
|
|
238
|
+
}), C = `${m}`, A = e.series.find((re) => Z(re) === C), ie = A?.name ?? w ?? C;
|
|
239
|
+
Se(A, b);
|
|
240
|
+
const q = A ?? b, oe = {
|
|
239
241
|
...q,
|
|
240
|
-
id:
|
|
242
|
+
id: C,
|
|
241
243
|
name: ie,
|
|
242
244
|
x: a === void 0 || a === "" ? h : a,
|
|
243
245
|
y: b.y,
|
|
244
246
|
// always update y values based on default generated value
|
|
245
247
|
query: {
|
|
246
248
|
...q.query,
|
|
247
|
-
where: `${i}=${c ===
|
|
249
|
+
where: `${i}=${c === ge.String && m !== null ? `'${m}'` : m}`
|
|
248
250
|
}
|
|
249
251
|
};
|
|
250
252
|
u.push(oe);
|
|
251
253
|
}
|
|
252
|
-
if (u =
|
|
254
|
+
if (u = H({
|
|
253
255
|
formerSeries: e.series,
|
|
254
256
|
newSeries: u,
|
|
255
257
|
showMean: V(e)
|
|
256
258
|
}), V(e)) {
|
|
257
|
-
const d = e.series.find((g) => g.type === p.BoxPlotSeries), m =
|
|
259
|
+
const d = e.series.find((g) => g.type === p.BoxPlotSeries), m = _({
|
|
258
260
|
x: a,
|
|
259
261
|
y: r,
|
|
260
262
|
seriesTemplate: d,
|
|
@@ -264,10 +266,10 @@ function Ne(s) {
|
|
|
264
266
|
}
|
|
265
267
|
return u;
|
|
266
268
|
}
|
|
267
|
-
const
|
|
268
|
-
const { splitByField: e, numericFields: t, category: o, config: i, layerInfo: r, commonStrings: n, splitByFieldInfos: l } = s, { layerFieldsInfo: a } = r, y =
|
|
269
|
+
const ls = (s) => {
|
|
270
|
+
const { splitByField: e, numericFields: t, category: o, config: i, layerInfo: r, commonStrings: n, splitByFieldInfos: l } = s, { layerFieldsInfo: a } = r, y = Ye(o, t, e), c = me(a), u = L(i), F = Ie(i, r, n), d = R(i, r, n), m = Me({ config: i, layerInfo: r, newCategory: o });
|
|
269
271
|
let g = U(i);
|
|
270
|
-
if (!c.includes(u) && c.includes(o) ? g =
|
|
272
|
+
if (!c.includes(u) && c.includes(o) ? g = Ae() : c.includes(u) && !c.includes(o) && (g = Be()), g !== void 0 && ae(i, n, g), Y(y ? { newShowMeanLines: i.showMean, config: i, commonStrings: n } : { newShowMeanLines: !1, config: i, commonStrings: n }), i.series = y && l ? qe({
|
|
271
273
|
config: i,
|
|
272
274
|
layerInfo: r,
|
|
273
275
|
splitByField: e,
|
|
@@ -286,7 +288,7 @@ const ns = (s) => {
|
|
|
286
288
|
fieldName: o,
|
|
287
289
|
numericFields: t,
|
|
288
290
|
fieldList: a
|
|
289
|
-
}) ? "" :
|
|
291
|
+
}) ? "" : B(a, o);
|
|
290
292
|
I(i, 0, w);
|
|
291
293
|
}
|
|
292
294
|
if (d) {
|
|
@@ -294,14 +296,14 @@ const ns = (s) => {
|
|
|
294
296
|
I(i, 1, b);
|
|
295
297
|
}
|
|
296
298
|
i?.title !== void 0 && F && (i.title.content.text = ee(i, r, n)), E({ config: i, value: null, axisIndex: 1, isMax: !1 }), E({ config: i, value: null, axisIndex: 1, isMax: !0 });
|
|
297
|
-
},
|
|
299
|
+
}, Ee = (s) => s?.standardizeValues ?? !1;
|
|
298
300
|
function T(s, e, t) {
|
|
299
301
|
const { layerFieldsInfo: o } = e;
|
|
300
|
-
let r =
|
|
301
|
-
return n = [...new Set(n)], n.length === 1 && (r =
|
|
302
|
+
let r = Ee(s) ? t.axisLabels.standardizedValues : t.axisLabels.values, n = s?.series?.map((l) => l.y).flat();
|
|
303
|
+
return n = [...new Set(n)], n.length === 1 && (r = B(o, n[0])), r;
|
|
302
304
|
}
|
|
303
305
|
function ee(s, e, t) {
|
|
304
|
-
const { layerFieldsInfo: o } = e, i =
|
|
306
|
+
const { layerFieldsInfo: o } = e, i = L(s), r = G(s), n = Pe(s), l = r.map((c) => B(o ?? [], c)).join(", "), a = B(o ?? [], i);
|
|
305
307
|
let y = "";
|
|
306
308
|
return r.length > 0 && (i !== h && n !== "" ? y = v(t.titleLabels.distributionOfFieldsByCategoryAndSplitBy, {
|
|
307
309
|
valueFields: l,
|
|
@@ -317,21 +319,21 @@ function ee(s, e, t) {
|
|
|
317
319
|
valueField: l
|
|
318
320
|
})), y;
|
|
319
321
|
}
|
|
320
|
-
const
|
|
322
|
+
const as = (s) => {
|
|
321
323
|
const { series: e, splitByField: t, layerInfo: o, commonStrings: i } = s;
|
|
322
|
-
let r = typeof e.y == "string" ?
|
|
323
|
-
return ne(t) || (r =
|
|
324
|
+
let r = typeof e.y == "string" ? B(o.layerFieldsInfo, e.y) : i.axisLabels.values;
|
|
325
|
+
return ne(t) || (r = Z(e)), r = X({
|
|
324
326
|
queryObject: o.layer,
|
|
325
327
|
fieldName: t,
|
|
326
328
|
fieldValue: r ?? ""
|
|
327
329
|
}) ?? r, r ?? e.id;
|
|
328
|
-
},
|
|
330
|
+
}, cs = (s) => s?.showOutliers ?? !1, ds = (s) => {
|
|
329
331
|
const { newShowOutliers: e, config: t, layerInfo: o, commonStrings: i } = s;
|
|
330
332
|
if (t.showOutliers = e, R(t, o, i)) {
|
|
331
333
|
const n = T(t, o, i);
|
|
332
334
|
I(t, 1, n);
|
|
333
335
|
}
|
|
334
|
-
},
|
|
336
|
+
}, ys = (s) => {
|
|
335
337
|
const { newStandardizeValues: e, config: t, layerInfo: o, commonStrings: i } = s, r = k(1, t), n = T(t, o, i), l = P(t);
|
|
336
338
|
if (t.standardizeValues = e, r === n || l) {
|
|
337
339
|
const a = T(t, o, i);
|
|
@@ -352,7 +354,7 @@ const ls = (s) => {
|
|
|
352
354
|
break;
|
|
353
355
|
}
|
|
354
356
|
return e;
|
|
355
|
-
},
|
|
357
|
+
}, us = (s, e, t) => {
|
|
356
358
|
let o = S.Category, i = x.Ascending;
|
|
357
359
|
if (e.orderOptions = e.orderOptions ?? {}, s === f.customSort && t !== void 0)
|
|
358
360
|
e.orderOptions.data = {
|
|
@@ -391,30 +393,30 @@ const ls = (s) => {
|
|
|
391
393
|
orderBy: i
|
|
392
394
|
};
|
|
393
395
|
}
|
|
394
|
-
}, V = (s) => s.showMean ?? !1,
|
|
395
|
-
const { newShowMeanLines: e = !1, config: t, commonStrings: o, previousMeanLinesBoxColor: i } = s, r = e ? i :
|
|
396
|
+
}, V = (s) => s.showMean ?? !1, Y = (s) => {
|
|
397
|
+
const { newShowMeanLines: e = !1, config: t, commonStrings: o, previousMeanLinesBoxColor: i } = s, r = e ? i : we(t), n = (e ?? !1) !== (t.showMean ?? !1);
|
|
396
398
|
if (t.showMean = e, n) {
|
|
397
399
|
let l;
|
|
398
|
-
e ? l = fe(t.series) ?
|
|
400
|
+
e ? l = fe(t.series) ? ke(t.series, o) : t.series : l = Ne(t.series), l && (l = H({
|
|
399
401
|
formerSeries: t.series,
|
|
400
402
|
newSeries: l,
|
|
401
403
|
showMean: e
|
|
402
404
|
}), t.series = l);
|
|
403
405
|
}
|
|
404
|
-
return e && i !== void 0 &&
|
|
405
|
-
},
|
|
406
|
+
return e && i !== void 0 && Te(i, t), { previousMeanLinesBoxColor: r };
|
|
407
|
+
}, fs = (s) => {
|
|
406
408
|
let e = [];
|
|
407
409
|
const t = s.orderOptions?.data?.orderType;
|
|
408
410
|
return se(s) === f.customSort && t === S.Category && (e = s.orderOptions?.data?.orderBy), e;
|
|
409
|
-
},
|
|
411
|
+
}, ms = (s, e) => {
|
|
410
412
|
e.orderOptions ??= {};
|
|
411
413
|
const t = e.orderOptions?.data?.orderType;
|
|
412
414
|
se(e) === f.customSort && t === S.Category && (e.orderOptions.data = {
|
|
413
415
|
orderType: S.Category,
|
|
414
416
|
orderBy: s
|
|
415
417
|
});
|
|
416
|
-
},
|
|
417
|
-
const { config: e, layerInfo: t, num: o, errorStrings: i } = s, r =
|
|
418
|
+
}, Ss = async (s) => {
|
|
419
|
+
const { config: e, layerInfo: t, num: o, errorStrings: i } = s, r = L(e), n = U(e)?.type, l = G(e);
|
|
418
420
|
let a = [];
|
|
419
421
|
return n === p.CategoryAxisFormat && (N({
|
|
420
422
|
fieldName: r,
|
|
@@ -427,39 +429,39 @@ const ls = (s) => {
|
|
|
427
429
|
num: o,
|
|
428
430
|
errorStrings: i
|
|
429
431
|
}))), a;
|
|
430
|
-
}, te = (s) => s.trim() === "" || s === h,
|
|
432
|
+
}, te = (s) => s.trim() === "" || s === h, ze = (s, e) => e.length > 1 && !te(s), Ye = (s, e, t) => !ze(s, e) && t !== "";
|
|
431
433
|
export {
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
434
|
+
ve as A,
|
|
435
|
+
Oe as B,
|
|
436
|
+
rs as C,
|
|
437
|
+
ns as D,
|
|
436
438
|
ee as E,
|
|
437
439
|
T as F,
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
440
|
+
as as G,
|
|
441
|
+
L as a,
|
|
442
|
+
G as b,
|
|
443
|
+
Pe as c,
|
|
444
|
+
cs as d,
|
|
445
|
+
ds as e,
|
|
446
|
+
Ee as f,
|
|
445
447
|
V as g,
|
|
446
|
-
|
|
448
|
+
ys as h,
|
|
447
449
|
se as i,
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
450
|
+
us as j,
|
|
451
|
+
Ss as k,
|
|
452
|
+
fs as l,
|
|
453
|
+
ms as m,
|
|
454
|
+
Y as n,
|
|
455
|
+
we as o,
|
|
456
|
+
Te as p,
|
|
457
|
+
Ye as q,
|
|
458
|
+
ls as r,
|
|
459
|
+
ze as s,
|
|
458
460
|
te as t,
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
461
|
+
ss as u,
|
|
462
|
+
ts as v,
|
|
463
|
+
is as w,
|
|
464
|
+
os as x,
|
|
463
465
|
He as y,
|
|
464
|
-
|
|
466
|
+
es as z
|
|
465
467
|
};
|
|
@@ -3,7 +3,7 @@ import { isEqual as W } from "es-toolkit/compat";
|
|
|
3
3
|
import { log as y } from "@arcgis/toolkit/log";
|
|
4
4
|
import { a as O } from "./chart-object-literals.js";
|
|
5
5
|
import { l as p, ap as D, a9 as P, g as R, aa as m, an as u, ab as S, r as A } from "./index2.js";
|
|
6
|
-
import {
|
|
6
|
+
import { eM as V, eL as T, cJ as E, eN as N, cD as h, eK as z } from "./index.js";
|
|
7
7
|
import { m as s } from "./model-setter.js";
|
|
8
8
|
import { B as U } from "./common.js";
|
|
9
9
|
import { M as X, a as K, W as j, b as q } from "./data-labels-visibility.js";
|
|
@@ -14,7 +14,7 @@ import { W as ee, a as te } from "./x-bounds.js";
|
|
|
14
14
|
import { W as ie } from "./data-labels-symbol.js";
|
|
15
15
|
import { W as se } from "./rotated-state.js";
|
|
16
16
|
import { g as re, b as oe, s as ne, a as ae } from "./series.js";
|
|
17
|
-
import { s as le, d as he, e as ce, f as ge, h as de, i as g, j as d, k as _, l as L, m as B, g as fe, n as ye, o as pe, p as C, a as me, c as ue, b as Se, q as _e, r as F, t as Le, u as Be, v as
|
|
17
|
+
import { s as le, d as he, e as ce, f as ge, h as de, i as g, j as d, k as _, l as L, m as B, g as fe, n as ye, o as pe, p as C, a as me, c as ue, b as Se, q as _e, r as F, t as Le, u as Be, v as M, w as Ce, x, y as Fe, z as Me, A as xe, B as Ie, C as be, D as ve, E as we, F as We, G as I } from "./box-plot-data.js";
|
|
18
18
|
import { C as Oe } from "./chart-model.js";
|
|
19
19
|
var De = Object.defineProperty, Pe = Object.getOwnPropertyDescriptor, r = (c, e, t, n) => {
|
|
20
20
|
for (var o = Pe(e, t), a = c.length - 1, l; a >= 0; a--)
|
|
@@ -338,7 +338,7 @@ class i extends Oe {
|
|
|
338
338
|
return Be(e, this._config);
|
|
339
339
|
}
|
|
340
340
|
setSeriesName(e, t) {
|
|
341
|
-
|
|
341
|
+
M(e, t, this._config);
|
|
342
342
|
}
|
|
343
343
|
/**
|
|
344
344
|
* Gets the color of the series based on the series index. If the index is out of bounds, it will return `undefined`.
|
|
@@ -349,7 +349,7 @@ class i extends Oe {
|
|
|
349
349
|
return Ce(e, this._config);
|
|
350
350
|
}
|
|
351
351
|
setSeriesColor(e, t) {
|
|
352
|
-
|
|
352
|
+
x(e, t, this._config);
|
|
353
353
|
}
|
|
354
354
|
/**
|
|
355
355
|
* Gets the line style of the series based on the series index. If the index is out of bounds, it will return `undefined`.
|
|
@@ -379,7 +379,7 @@ class i extends Oe {
|
|
|
379
379
|
return oe(t);
|
|
380
380
|
}
|
|
381
381
|
setSeriesLineWidth(e, t) {
|
|
382
|
-
this.showMeanLines === !0 &&
|
|
382
|
+
this.showMeanLines === !0 && Me({ width: e, seriesIndex: t, config: this._config });
|
|
383
383
|
}
|
|
384
384
|
/**
|
|
385
385
|
* The order of the series array as an array of series ids.
|
|
@@ -391,10 +391,10 @@ class i extends Oe {
|
|
|
391
391
|
* orders categories or summary statistics within the chart data.
|
|
392
392
|
*/
|
|
393
393
|
get orderOfSeries() {
|
|
394
|
-
return
|
|
394
|
+
return xe(this._config);
|
|
395
395
|
}
|
|
396
396
|
set orderOfSeries(e) {
|
|
397
|
-
|
|
397
|
+
Ie(e, this._config);
|
|
398
398
|
}
|
|
399
399
|
moveSeries(e, t) {
|
|
400
400
|
be(e, t, this._config);
|
|
@@ -432,14 +432,14 @@ class i extends Oe {
|
|
|
432
432
|
colorIndex: e,
|
|
433
433
|
opacity: A
|
|
434
434
|
}), o = this._config.series[e];
|
|
435
|
-
|
|
436
|
-
const a =
|
|
435
|
+
x(n, e, this._config);
|
|
436
|
+
const a = I({
|
|
437
437
|
series: o,
|
|
438
438
|
splitByField: this._splitByField,
|
|
439
439
|
layerInfo: this.layerInfo,
|
|
440
440
|
commonStrings: this.commonStrings
|
|
441
441
|
});
|
|
442
|
-
|
|
442
|
+
M(a ?? t, e, this._config), this.showMeanLines === !0 && h(o) && (ne(u, o), ae(S, o));
|
|
443
443
|
}
|
|
444
444
|
this.showMeanLines === !0 && C(m, this._config), this._config.colorMatch = !0;
|
|
445
445
|
}
|
|
@@ -451,7 +451,7 @@ class i extends Oe {
|
|
|
451
451
|
let n = !1, o = !1;
|
|
452
452
|
if (!e)
|
|
453
453
|
for (let a = this.showMeanLines === !0 ? 1 : 0; a < this.seriesLength; a += 1) {
|
|
454
|
-
const l = this._config.series[a], f =
|
|
454
|
+
const l = this._config.series[a], f = I({
|
|
455
455
|
series: l,
|
|
456
456
|
splitByField: this._splitByField,
|
|
457
457
|
layerInfo: this.layerInfo,
|