@arcgis/charts-components 5.2.0-next.154 → 5.2.0-next.155
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/{EOH2W3LP.js → 25EQGAJY.js} +1 -1
- package/dist/cdn/{DIT5QYRZ.js → 2LV6GDYK.js} +1 -1
- package/dist/cdn/{QPE4226Z.js → 2USDPS2L.js} +1 -1
- package/dist/cdn/{BOPSKTO3.js → 3GGD7KLV.js} +1 -1
- package/dist/cdn/{NR6WJN42.js → 4T5L3BLL.js} +1 -1
- package/dist/cdn/{JOZZX5IK.js → 54WTBBPU.js} +1 -1
- package/dist/cdn/{O5YSHLEC.js → 5HKCWI3P.js} +1 -1
- package/dist/cdn/{KMYMJ4TB.js → 62FK6ANF.js} +1 -1
- package/dist/cdn/{M5WNLFQ6.js → 6IEIR3IJ.js} +1 -1
- package/dist/cdn/{XUN6JTT4.js → 6QEBTDLJ.js} +1 -1
- package/dist/cdn/{QJTMDECJ.js → 6UOV5TES.js} +1 -1
- package/dist/cdn/{GEWPZ2SD.js → 6WBGIBLN.js} +1 -1
- package/dist/cdn/{VUMWERXB.js → 75J7S444.js} +1 -1
- package/dist/cdn/{VSC4SDJS.js → 7NDAZIXV.js} +1 -1
- package/dist/cdn/{S7MBWOPD.js → 7ULLR4CN.js} +1 -1
- package/dist/cdn/{HF5XFFU2.js → A5UWEHLX.js} +1 -1
- package/dist/cdn/{YNLUQX4T.js → AWZYMQFF.js} +1 -1
- package/dist/cdn/{5IGMXNM2.js → B7NGZOWD.js} +1 -1
- package/dist/cdn/{YKD6IBPT.js → C5HTXSZS.js} +1 -1
- package/dist/cdn/D4E2DTYE.js +2 -0
- package/dist/cdn/DDNBFHKN.js +2 -0
- package/dist/cdn/DGXBF4BH.js +4 -0
- package/dist/cdn/{WN23K74S.js → DLX6ZNYG.js} +1 -1
- package/dist/cdn/{O6OHBRAO.js → DNS4RWBT.js} +1 -1
- package/dist/cdn/{F27FJBNB.js → DQLO4ITR.js} +1 -1
- package/dist/cdn/{GANKBRNZ.js → EBMUNX44.js} +1 -1
- package/dist/cdn/{BIXI63YR.js → ECFOVMA2.js} +1 -1
- package/dist/cdn/{IVJ2VRAU.js → EI6JNZL7.js} +1 -1
- package/dist/cdn/{5XIL7NWT.js → ETSSSFIS.js} +1 -1
- package/dist/cdn/{4ZBAUXGZ.js → EX7GAUGC.js} +1 -1
- package/dist/cdn/{THF4PSZK.js → FF4LQHDS.js} +1 -1
- package/dist/cdn/{KNM4Y7PI.js → FS6K3PGA.js} +1 -1
- package/dist/cdn/{YUJPRB3D.js → G37DEPFO.js} +1 -1
- package/dist/cdn/{HQA37HHH.js → GAFCUST3.js} +1 -1
- package/dist/cdn/{23DAXBKQ.js → GCGZ4SRD.js} +1 -1
- package/dist/cdn/{Z2DQ6K54.js → GPHCD6G4.js} +1 -1
- package/dist/cdn/{D3A6JODU.js → GRQ3RAS2.js} +1 -1
- package/dist/cdn/{47EPN7FR.js → GT7N5NKM.js} +1 -1
- package/dist/cdn/{5HL7EQRK.js → HOYAL4U2.js} +1 -1
- package/dist/cdn/{4TEMFIHR.js → J3AUMK36.js} +1 -1
- package/dist/cdn/{I6KD2MMJ.js → JHUXUZ3V.js} +1 -1
- package/dist/cdn/{UBOQOV4R.js → JMC5FR6G.js} +1 -1
- package/dist/cdn/{YW52HGG5.js → JX5JAG7D.js} +1 -1
- package/dist/cdn/{IHFE6MFI.js → K4WZTS5W.js} +1 -1
- package/dist/cdn/{IVCIEJ4G.js → KND6442A.js} +1 -1
- package/dist/cdn/{X7NFMMYD.js → KTDX5Z2G.js} +1 -1
- package/dist/cdn/{6RWJ4N2Q.js → L3C4LMLQ.js} +1 -1
- package/dist/cdn/{5WX476SX.js → LGUGOYL5.js} +1 -1
- package/dist/cdn/{DYTFQZOO.js → MHIL7RCM.js} +1 -1
- package/dist/cdn/{273IJ43I.js → MMRG4Q5Q.js} +1 -1
- package/dist/cdn/{EMJJDN2H.js → MZAJOKMM.js} +1 -1
- package/dist/cdn/{VZUGRGXA.js → NAFHJZYK.js} +1 -1
- package/dist/cdn/{KKLIUCWP.js → NDECGMQR.js} +1 -1
- package/dist/cdn/{XZYQVNBK.js → NTDBPHHL.js} +1 -1
- package/dist/cdn/{YJUJ2JXY.js → O7SBBJIT.js} +1 -1
- package/dist/cdn/{MYR6PJFL.js → OIRY7UKP.js} +1 -1
- package/dist/cdn/{7UC2JQPS.js → P6XYFLVZ.js} +1 -1
- package/dist/cdn/{ERKURCJE.js → PMMT66SN.js} +1 -1
- package/dist/cdn/{PIWPQCJ7.js → PNELR4NS.js} +1 -1
- package/dist/cdn/{6OWV7F4O.js → Q44XXOXV.js} +1 -1
- package/dist/cdn/{DY2RFK5X.js → Q6DXB7DT.js} +1 -1
- package/dist/cdn/{A2TBWLEB.js → QSCUSBOE.js} +1 -1
- package/dist/cdn/{7RUDMEC3.js → QXNM2F6D.js} +1 -1
- package/dist/cdn/{INRSI4JY.js → R5VDLCQN.js} +1 -1
- package/dist/cdn/{WMOWSZUY.js → R623PW73.js} +1 -1
- package/dist/cdn/{T35Z5NW4.js → RKYMPBR5.js} +1 -1
- package/dist/cdn/{F4HRPOER.js → RW56D36T.js} +1 -1
- package/dist/cdn/{XPNVMNSO.js → SEBELUXK.js} +1 -1
- package/dist/cdn/{QBQZBIOR.js → SZHT3SPH.js} +1 -1
- package/dist/cdn/{AXJC4XS3.js → TQUFEFBE.js} +1 -1
- package/dist/cdn/{F7BDZDWJ.js → TR3X4GPJ.js} +1 -1
- package/dist/cdn/{KWK2VF72.js → TWACT53N.js} +1 -1
- package/dist/cdn/{AQDO3GMP.js → UG74S4GG.js} +1 -1
- package/dist/cdn/{6U6W5ZSW.js → VTXTISBO.js} +1 -1
- package/dist/cdn/{LX3JDSZQ.js → VWS73BFY.js} +1 -1
- package/dist/cdn/{BC262Z6H.js → WAESGWAL.js} +1 -1
- package/dist/cdn/{4VKFYSJT.js → WGKZDY7Y.js} +1 -1
- package/dist/cdn/{FJG5G3NR.js → XDTACW3D.js} +1 -1
- package/dist/cdn/{BNQWCCMX.js → Y5W5WINS.js} +1 -1
- package/dist/cdn/{KHOVZWE4.js → YFVUQYKO.js} +1 -1
- package/dist/cdn/{4YF43WY7.js → YNOSBB23.js} +1 -1
- package/dist/cdn/{A4TOCPEB.js → YWKT5FUP.js} +1 -1
- package/dist/cdn/{CQ4UAH3F.js → ZBHRRQNP.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-charts-config-create-flow/customElement.js +1 -1
- 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/web-types.json +1 -1
- package/dist/index.js +261 -260
- package/dist/utils/chart-config/converter/index.js +14 -14
- package/dist/utils/chart-config/utils/index.d.ts +10 -3
- package/package.json +4 -4
- package/dist/cdn/3IQQDZZD.js +0 -2
- package/dist/cdn/JY62I5FE.js +0 -2
- package/dist/cdn/WOQECVI6.js +0 -4
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/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,
|