@arcgis/charts-components 5.2.0-next.85 → 5.2.0-next.87
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/{YAWW63A5.js → 2Y4OUUMJ.js} +1 -1
- package/dist/cdn/{MJHVSD5B.js → 32KKW2IG.js} +1 -1
- package/dist/cdn/{2MF442VT.js → 3N6RFNEA.js} +1 -1
- package/dist/cdn/{KG574LAE.js → 3ZF4RSY4.js} +1 -1
- package/dist/cdn/{XHZAAQMF.js → 5EU4GHSG.js} +1 -1
- package/dist/cdn/{R5VDQBUH.js → 5LKJE2PR.js} +1 -1
- package/dist/cdn/{LCTDNI27.js → 6AWJXWDQ.js} +1 -1
- package/dist/cdn/7U6OEWTI.js +2 -0
- package/dist/cdn/{KHJC5P5T.js → AL6VZ6UZ.js} +1 -1
- package/dist/cdn/{IVM37XFX.js → APU26Y2Z.js} +1 -1
- package/dist/cdn/AWN3K3IH.js +2 -0
- package/dist/cdn/DNHE5ZCA.js +2 -0
- package/dist/cdn/DV7I4E5D.js +2 -0
- package/dist/cdn/EHYBMIDH.js +2 -0
- package/dist/cdn/FF46DEA7.js +2 -0
- package/dist/cdn/HX4HUXZP.js +2 -0
- package/dist/cdn/{JQM5R6XW.js → IG43EKA6.js} +1 -1
- package/dist/cdn/{FRTPDJGW.js → KE4AIHA7.js} +1 -1
- package/dist/cdn/{4U2HIMOR.js → LYSF2KY5.js} +1 -1
- package/dist/cdn/{CFOB77PI.js → N634G5MT.js} +1 -1
- package/dist/cdn/{NH2A5QEU.js → OADNRXFH.js} +1 -1
- package/dist/cdn/OGGEEHV2.js +2 -0
- package/dist/cdn/{GX64OP3A.js → OWYKZMAE.js} +1 -1
- package/dist/cdn/{3SSQPYQA.js → PDHWZPY5.js} +1 -1
- package/dist/cdn/{NIDXK3GN.js → PK7GYSIR.js} +1 -1
- package/dist/cdn/{7JA63ENU.js → PTGBFACY.js} +2 -2
- package/dist/cdn/QJFHIO72.js +2 -0
- package/dist/cdn/{PMTNALXO.js → R3XOXHKQ.js} +1 -1
- package/dist/cdn/{7SIKOCYK.js → R6RFH2KK.js} +1 -1
- package/dist/cdn/{EYYTKCXM.js → T6OTQUMI.js} +1 -1
- package/dist/cdn/{FQKGQHVK.js → TMLVMG4C.js} +1 -1
- package/dist/cdn/{4KF7SUJE.js → TVW2GMA6.js} +1 -1
- package/dist/cdn/{CVWT6DGY.js → UOL7KBJK.js} +1 -1
- package/dist/cdn/{HOASAQAB.js → VNWPA5A2.js} +1 -1
- package/dist/cdn/XHSD437D.js +2 -0
- package/dist/cdn/{XU7TGV75.js → XQRGIPLK.js} +1 -1
- package/dist/cdn/{DW5NK2B3.js → ZG3WNUBC.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 +1 -5
- package/dist/chunks/bar-chart-model.js +8 -4
- package/dist/chunks/box-plot-data.js +138 -112
- package/dist/chunks/box-plot-model.js +131 -133
- package/dist/chunks/combo-bar-line-chart-model.js +115 -102
- package/dist/chunks/line-chart-model.js +33 -17
- package/dist/chunks/model-setter.js +43 -71
- package/dist/chunks/model-with-line-marker-styling.js +59 -43
- package/dist/chunks/negative-values-stacked-to-baseline.js +111 -64
- package/dist/chunks/radar-chart-model.js +26 -10
- package/dist/chunks/rounded-corners.js +47 -30
- package/dist/components/arcgis-chart/customElement.js +4 -3
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/model/bar-chart-model/bar-chart-model.d.ts +2 -2
- package/dist/model/box-plot-model/box-plot-model.d.ts +4 -4
- package/dist/model/combo-bar-line-chart-model/combo-bar-line-chart-model.d.ts +14 -14
- package/dist/model/mixins/model-with-line-marker-styling.d.ts +12 -12
- package/package.json +6 -6
- package/dist/cdn/72VGCAR5.js +0 -2
- package/dist/cdn/DE3CJJG3.js +0 -2
- package/dist/cdn/EZLKMWI5.js +0 -2
- package/dist/cdn/JMMNRCD4.js +0 -2
- package/dist/cdn/JUU3BZT7.js +0 -2
- package/dist/cdn/LMTSW3JM.js +0 -2
- package/dist/cdn/TBW6K2TY.js +0 -2
- package/dist/cdn/TSU6UVTL.js +0 -2
- package/dist/cdn/ZDUW3TBJ.js +0 -2
- package/dist/cdn/ZGIM53IQ.js +0 -2
|
@@ -1,66 +1,90 @@
|
|
|
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 Y, isEmpty as ne, isEqual as le, cloneDeep as U } from "lodash-es";
|
|
4
4
|
import { B as f } from "./common.js";
|
|
5
|
-
import { u as
|
|
5
|
+
import { u as I, b as K, c as ae, d as ce, s as E } from "./utils.js";
|
|
6
6
|
import { g as k } from "./utils2.js";
|
|
7
|
-
import { g as
|
|
7
|
+
import { g as de } from "./series-length.js";
|
|
8
8
|
import { s as N } from "./data.js";
|
|
9
|
-
import { d as
|
|
9
|
+
import { d as ye } 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 X, l as h, n as
|
|
11
|
+
import { o as X, l as h, n as ue, t as fe, a9 as $, aa as z, Y as me, ab as Se, W as pe, X as ge } from "./index3.js";
|
|
12
12
|
import { b as A } from "./index2.js";
|
|
13
|
-
import { cl as
|
|
13
|
+
import { cl as M, c1 as xe, c6 as D, M as be, U as he, cm as Fe, cn as Ae, a1 as j } from "./index.js";
|
|
14
14
|
import { i as P } from "./index4.js";
|
|
15
|
-
|
|
15
|
+
import { s as Be, a as Le } from "./series.js";
|
|
16
|
+
const J = (s) => {
|
|
17
|
+
const { config: e, seriesIndex: t, callback: o } = s;
|
|
18
|
+
[t !== void 0 ? e.series?.[t] : e.series].flat().forEach((i) => {
|
|
19
|
+
xe(i) && o(i);
|
|
20
|
+
});
|
|
21
|
+
}, es = (s) => {
|
|
22
|
+
const { style: e, seriesIndex: t, config: o } = s;
|
|
23
|
+
J({
|
|
24
|
+
config: o,
|
|
25
|
+
seriesIndex: t,
|
|
26
|
+
callback: (i) => {
|
|
27
|
+
Be(e, i);
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
}, ss = (s) => {
|
|
31
|
+
const { width: e, seriesIndex: t, config: o } = s;
|
|
32
|
+
J({
|
|
33
|
+
config: o,
|
|
34
|
+
seriesIndex: t,
|
|
35
|
+
callback: (i) => {
|
|
36
|
+
Le(e, i);
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
}, ts = (s, e) => e?.series?.[s]?.name, is = (s, e, t) => {
|
|
16
40
|
const o = t;
|
|
17
41
|
o?.series?.[e] !== void 0 && (o.series[e].name = s);
|
|
18
|
-
},
|
|
42
|
+
}, os = (s, e) => {
|
|
19
43
|
let t;
|
|
20
44
|
const o = e.series?.[s];
|
|
21
45
|
return o?.type === p.BoxPlotSeries ? t = o.fillSymbol?.color : o?.type === p.LineSeries && (t = o.lineSymbol?.color), t;
|
|
22
|
-
},
|
|
46
|
+
}, Ce = (s) => {
|
|
23
47
|
const e = s.series[0];
|
|
24
|
-
return s.showMean === !0 &&
|
|
25
|
-
},
|
|
48
|
+
return s.showMean === !0 && M(e) ? e.fillSymbol?.color : void 0;
|
|
49
|
+
}, we = (s, e) => {
|
|
26
50
|
const t = e.series[0];
|
|
27
|
-
e.showMean === !0 &&
|
|
51
|
+
e.showMean === !0 && M(t) && (t.fillSymbol !== void 0 ? t.fillSymbol.color = s : t.fillSymbol = {
|
|
28
52
|
...X(),
|
|
29
53
|
color: s
|
|
30
54
|
});
|
|
31
|
-
},
|
|
55
|
+
}, rs = (s, e, t) => {
|
|
32
56
|
const i = t?.series?.[e];
|
|
33
57
|
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));
|
|
34
|
-
},
|
|
58
|
+
}, Te = (s) => s.series.map((e) => e.id), ve = (s, e) => {
|
|
35
59
|
e?.series?.sort(
|
|
36
60
|
(t, o) => s.findIndex((i) => t.id === i) - s.findIndex((i) => o.id === i)
|
|
37
61
|
);
|
|
38
|
-
},
|
|
39
|
-
const o =
|
|
40
|
-
o.splice(e, 0, i),
|
|
41
|
-
},
|
|
42
|
-
function
|
|
43
|
-
const o =
|
|
62
|
+
}, ns = (s, e, t) => {
|
|
63
|
+
const o = Te(t), [i] = o.splice(s, 1);
|
|
64
|
+
o.splice(e, 0, i), ve(o, t);
|
|
65
|
+
}, ls = (s) => V(s) ? s.series.findIndex((e) => e.type === p.BoxPlotSeries) : -1;
|
|
66
|
+
function Oe(s, e, t) {
|
|
67
|
+
const o = ee(s, e, t), i = de(s), n = P(s);
|
|
44
68
|
return o === i || n;
|
|
45
69
|
}
|
|
46
|
-
function
|
|
70
|
+
function R(s, e, t) {
|
|
47
71
|
const o = T(s, e, t), i = k(1, s), n = P(s);
|
|
48
72
|
return o === i || n;
|
|
49
73
|
}
|
|
50
|
-
function
|
|
51
|
-
const { config: e, layerInfo: t, newCategory: o } = s, { layerFieldsInfo: i } = t, n =
|
|
74
|
+
function Ie(s) {
|
|
75
|
+
const { config: e, layerInfo: t, newCategory: o } = s, { layerFieldsInfo: i } = t, n = C(e), r = o !== h ? A(i, n) : "", l = k(0, e), a = P(e);
|
|
52
76
|
return r === l || a || l.trim() === "";
|
|
53
77
|
}
|
|
54
|
-
const
|
|
78
|
+
const C = (s) => D(s)?.x ?? h, Me = Y(
|
|
55
79
|
(s) => {
|
|
56
80
|
const e = D(s), t = e?.query?.where?.split("=")[0].trim() ?? "";
|
|
57
|
-
return
|
|
81
|
+
return be(e?.query?.where) ? "" : t;
|
|
58
82
|
},
|
|
59
83
|
(s) => D(s)?.query?.where
|
|
60
|
-
),
|
|
84
|
+
), G = Y(
|
|
61
85
|
// without memoizing, the worst case efficiency is O(series.length), best case is O(1)
|
|
62
86
|
// with memoizing, the worst case efficiency for repeated calls becomes O(1)
|
|
63
|
-
(s) =>
|
|
87
|
+
(s) => he(s?.series).filter((e) => e !== ""),
|
|
64
88
|
// using series array address as key, since a change to the numeric fields will always rebuild a fresh series array
|
|
65
89
|
(s) => s?.series
|
|
66
90
|
), O = (s) => {
|
|
@@ -70,22 +94,22 @@ const w = (s) => D(s)?.x ?? h, Te = U(
|
|
|
70
94
|
y: o,
|
|
71
95
|
query: {}
|
|
72
96
|
};
|
|
73
|
-
return
|
|
74
|
-
},
|
|
97
|
+
return U(r);
|
|
98
|
+
}, Pe = (s) => {
|
|
75
99
|
const { category: e, seriesIndex: t, y: o, commonStrings: i } = s, r = {
|
|
76
|
-
...
|
|
100
|
+
...me({ commonStrings: i, seriesIndex: t }),
|
|
77
101
|
x: e === void 0 || e === "" ? h : e,
|
|
78
102
|
y: o,
|
|
79
103
|
query: {}
|
|
80
104
|
};
|
|
81
|
-
return
|
|
105
|
+
return U(r);
|
|
82
106
|
};
|
|
83
107
|
function Q(s) {
|
|
84
108
|
const { x: e, y: t, seriesTemplate: o, commonStrings: i } = s, { id: n, fillSymbol: r } = o ?? {}, l = $(i), a = n ?? `series_${Date.now()}`;
|
|
85
|
-
return l.id = a, l.name = a, l.x = e, l.y = t, r ? l.fillSymbol = r : l.fillSymbol && (l.fillSymbol.color =
|
|
109
|
+
return l.id = a, l.name = a, l.x = e, l.y = t, r ? l.fillSymbol = r : l.fillSymbol && (l.fillSymbol.color = z, l.fillSymbol?.outline && (l.fillSymbol.outline.color = z)), l;
|
|
86
110
|
}
|
|
87
111
|
function _(s) {
|
|
88
|
-
const { numericFields: e, config: t, layerInfo: o, category: i, commonStrings: n } = s, { layerFieldsInfo: r } = o, l = [], a = i ??
|
|
112
|
+
const { numericFields: e, config: t, layerInfo: o, category: i, commonStrings: n } = s, { layerFieldsInfo: r } = o, l = [], a = i ?? C(t), y = N({
|
|
89
113
|
fieldName: a,
|
|
90
114
|
numericFields: e,
|
|
91
115
|
fieldList: r
|
|
@@ -104,7 +128,7 @@ function _(s) {
|
|
|
104
128
|
seriesIndex: 0,
|
|
105
129
|
category: a,
|
|
106
130
|
commonStrings: n
|
|
107
|
-
}), F = t.series.find((
|
|
131
|
+
}), F = t.series.find((L) => le(c, L.y) && L.query?.where === void 0), d = M(F) ? F : void 0, m = d?.id ?? e[0], g = e.length > 1 ? n.axisLabels.values : A(o.layerFieldsInfo, e[0]), b = d?.name ?? g, B = {
|
|
108
132
|
...d ?? u,
|
|
109
133
|
id: m,
|
|
110
134
|
name: b,
|
|
@@ -118,7 +142,7 @@ function _(s) {
|
|
|
118
142
|
seriesIndex: c,
|
|
119
143
|
category: a,
|
|
120
144
|
commonStrings: n
|
|
121
|
-
}), d = t.series.find((
|
|
145
|
+
}), d = t.series.find((L) => u === L.y), m = M(d) ? d : void 0, g = m?.id ?? u, b = m?.name ?? A(r, u), B = {
|
|
122
146
|
...m ?? F,
|
|
123
147
|
id: g,
|
|
124
148
|
name: b,
|
|
@@ -128,8 +152,8 @@ function _(s) {
|
|
|
128
152
|
}
|
|
129
153
|
return t.series.length === 1 && l.length === 1 && "fillSymbol" in t.series[0] && (l[0].fillSymbol = t.series[0].fillSymbol), l;
|
|
130
154
|
}
|
|
131
|
-
const
|
|
132
|
-
function
|
|
155
|
+
const H = (s) => s?.query?.where?.split("=")[1].trim().replace(/'/gu, "") ?? "", De = (s) => s.series.some((e) => e.type === p.LineSeries) && s.series.some((e) => e.type === p.BoxPlotSeries);
|
|
156
|
+
function Ve(s, e, t) {
|
|
133
157
|
const o = [];
|
|
134
158
|
return s.forEach((i) => {
|
|
135
159
|
if (i.type === p.BoxPlotSeries) {
|
|
@@ -138,11 +162,11 @@ function Me(s, e, t) {
|
|
|
138
162
|
...l,
|
|
139
163
|
type: p.LineSeries,
|
|
140
164
|
lineSymbol: {
|
|
141
|
-
...
|
|
165
|
+
...fe({ width: Se }),
|
|
142
166
|
...r !== void 0 ? { color: r.color } : {}
|
|
143
167
|
},
|
|
144
168
|
markerSymbol: {
|
|
145
|
-
...
|
|
169
|
+
...ue(),
|
|
146
170
|
...r !== void 0 ? { color: r.color } : {}
|
|
147
171
|
}
|
|
148
172
|
});
|
|
@@ -156,7 +180,7 @@ function Me(s, e, t) {
|
|
|
156
180
|
})
|
|
157
181
|
), o;
|
|
158
182
|
}
|
|
159
|
-
function
|
|
183
|
+
function ke(s) {
|
|
160
184
|
const e = s.slice(1), t = [];
|
|
161
185
|
return e.forEach((o) => {
|
|
162
186
|
if (o.type === p.LineSeries) {
|
|
@@ -172,7 +196,7 @@ function Ie(s) {
|
|
|
172
196
|
}
|
|
173
197
|
}), t;
|
|
174
198
|
}
|
|
175
|
-
function
|
|
199
|
+
function Z(s) {
|
|
176
200
|
const { formerSeries: e, newSeries: t, showMean: o } = s;
|
|
177
201
|
let i = t;
|
|
178
202
|
const n = (a) => a.type === (o ? p.LineSeries : p.BoxPlotSeries), r = e.filter(n).map((a) => a.id), l = t.filter(n).map((a) => a.id);
|
|
@@ -180,7 +204,7 @@ function H(s) {
|
|
|
180
204
|
(a, y) => r.findIndex((c) => c === a.id) - r.findIndex((c) => c === y.id)
|
|
181
205
|
)), i;
|
|
182
206
|
}
|
|
183
|
-
function
|
|
207
|
+
function Ne(s) {
|
|
184
208
|
const {
|
|
185
209
|
config: e,
|
|
186
210
|
layerInfo: t,
|
|
@@ -189,9 +213,9 @@ function Pe(s) {
|
|
|
189
213
|
numericFields: n,
|
|
190
214
|
category: r,
|
|
191
215
|
splitByFieldInfos: l
|
|
192
|
-
} = s, a = r ??
|
|
216
|
+
} = s, a = r ?? C(e), { categoriesArray: y, splitByFieldType: c } = l;
|
|
193
217
|
let u = [];
|
|
194
|
-
const F =
|
|
218
|
+
const F = De(e);
|
|
195
219
|
if (y.length === 0) {
|
|
196
220
|
u = _({
|
|
197
221
|
numericFields: n,
|
|
@@ -209,25 +233,25 @@ function Pe(s) {
|
|
|
209
233
|
seriesIndex: d,
|
|
210
234
|
category: a,
|
|
211
235
|
commonStrings: o
|
|
212
|
-
}, b = F ?
|
|
236
|
+
}, b = F ? Pe(g) : O(g), w = j({
|
|
213
237
|
queryObject: t.layer,
|
|
214
238
|
fieldName: i,
|
|
215
239
|
fieldValue: m ?? ""
|
|
216
|
-
}), B = `${m}`,
|
|
240
|
+
}), B = `${m}`, L = e.series.find((re) => H(re) === B), ie = L?.name ?? w ?? B, q = L ?? b, oe = {
|
|
217
241
|
...q,
|
|
218
242
|
id: B,
|
|
219
|
-
name:
|
|
243
|
+
name: ie,
|
|
220
244
|
x: a === void 0 || a === "" ? h : a,
|
|
221
245
|
y: b.y,
|
|
222
246
|
// always update y values based on default generated value
|
|
223
247
|
query: {
|
|
224
248
|
...q.query,
|
|
225
|
-
where: `${i}=${c ===
|
|
249
|
+
where: `${i}=${c === ye.String && m !== null ? `'${m}'` : m}`
|
|
226
250
|
}
|
|
227
251
|
};
|
|
228
|
-
u.push(
|
|
252
|
+
u.push(oe);
|
|
229
253
|
}
|
|
230
|
-
if (u =
|
|
254
|
+
if (u = Z({
|
|
231
255
|
formerSeries: e.series,
|
|
232
256
|
newSeries: u,
|
|
233
257
|
showMean: V(e)
|
|
@@ -242,10 +266,10 @@ function Pe(s) {
|
|
|
242
266
|
}
|
|
243
267
|
return u;
|
|
244
268
|
}
|
|
245
|
-
const
|
|
246
|
-
const { splitByField: e, numericFields: t, category: o, config: i, layerInfo: n, commonStrings: r, splitByFieldInfos: l } = s, { layerFieldsInfo: a } = n, y =
|
|
269
|
+
const as = (s) => {
|
|
270
|
+
const { splitByField: e, numericFields: t, category: o, config: i, layerInfo: n, commonStrings: r, splitByFieldInfos: l } = s, { layerFieldsInfo: a } = n, y = ze(o, t, e), c = Ae(a), u = C(i), F = Oe(i, n, r), d = R(i, n, r), m = Ie({ config: i, layerInfo: n, newCategory: o });
|
|
247
271
|
let g = K(i);
|
|
248
|
-
if (!c.includes(u) && c.includes(o) ? g =
|
|
272
|
+
if (!c.includes(u) && c.includes(o) ? g = pe() : c.includes(u) && !c.includes(o) && (g = ge()), g !== void 0 && ce(i, r, g), W(y ? { newShowMeanLines: i.showMean, config: i, commonStrings: r } : { newShowMeanLines: !1, config: i, commonStrings: r }), i.series = y && l ? Ne({
|
|
249
273
|
config: i,
|
|
250
274
|
layerInfo: n,
|
|
251
275
|
splitByField: e,
|
|
@@ -260,26 +284,26 @@ const ss = (s) => {
|
|
|
260
284
|
category: o,
|
|
261
285
|
commonStrings: r
|
|
262
286
|
}), m) {
|
|
263
|
-
const
|
|
287
|
+
const w = N({
|
|
264
288
|
fieldName: o,
|
|
265
289
|
numericFields: t,
|
|
266
290
|
fieldList: a
|
|
267
291
|
}) ? "" : A(a, o);
|
|
268
|
-
|
|
292
|
+
I(i, 0, w);
|
|
269
293
|
}
|
|
270
294
|
if (d) {
|
|
271
295
|
const b = T(i, n, r);
|
|
272
|
-
|
|
296
|
+
I(i, 1, b);
|
|
273
297
|
}
|
|
274
|
-
i?.title !== void 0 && F && (i.title.content.text =
|
|
275
|
-
},
|
|
298
|
+
i?.title !== void 0 && F && (i.title.content.text = ee(i, n, r)), E({ config: i, value: null, axisIndex: 1, isMax: !1 }), E({ config: i, value: null, axisIndex: 1, isMax: !0 });
|
|
299
|
+
}, qe = (s) => s?.standardizeValues ?? !1;
|
|
276
300
|
function T(s, e, t) {
|
|
277
301
|
const { layerFieldsInfo: o } = e;
|
|
278
|
-
let n =
|
|
302
|
+
let n = qe(s) ? t.axisLabels.standardizedValues : t.axisLabels.values, r = s?.series?.map((l) => l.y).flat();
|
|
279
303
|
return r = [...new Set(r)], r.length === 1 && (n = A(o, r[0])), n;
|
|
280
304
|
}
|
|
281
|
-
function
|
|
282
|
-
const { layerFieldsInfo: o } = e, i =
|
|
305
|
+
function ee(s, e, t) {
|
|
306
|
+
const { layerFieldsInfo: o } = e, i = C(s), n = G(s), r = Me(s), l = n.map((c) => A(o ?? [], c)).join(", "), a = A(o ?? [], i);
|
|
283
307
|
let y = "";
|
|
284
308
|
return n.length > 0 && (i !== h && r !== "" ? y = v(t.titleLabels.distributionOfFieldsByCategoryAndSplitBy, {
|
|
285
309
|
valueFields: l,
|
|
@@ -295,27 +319,27 @@ function Z(s, e, t) {
|
|
|
295
319
|
valueField: l
|
|
296
320
|
})), y;
|
|
297
321
|
}
|
|
298
|
-
const
|
|
322
|
+
const cs = (s) => {
|
|
299
323
|
const { series: e, splitByField: t, layerInfo: o, commonStrings: i } = s;
|
|
300
324
|
let n = typeof e.y == "string" ? A(o.layerFieldsInfo, e.y) : i.axisLabels.values;
|
|
301
|
-
return
|
|
325
|
+
return ne(t) || (n = H(e)), n = j({
|
|
302
326
|
queryObject: o.layer,
|
|
303
327
|
fieldName: t,
|
|
304
328
|
fieldValue: n ?? ""
|
|
305
329
|
}) ?? n, n ?? e.id;
|
|
306
|
-
},
|
|
330
|
+
}, ds = (s) => s?.showOutliers ?? !1, ys = (s) => {
|
|
307
331
|
const { newShowOutliers: e, config: t, layerInfo: o, commonStrings: i } = s;
|
|
308
|
-
if (t.showOutliers = e,
|
|
332
|
+
if (t.showOutliers = e, R(t, o, i)) {
|
|
309
333
|
const r = T(t, o, i);
|
|
310
|
-
|
|
334
|
+
I(t, 1, r);
|
|
311
335
|
}
|
|
312
|
-
},
|
|
336
|
+
}, us = (s) => {
|
|
313
337
|
const { newStandardizeValues: e, config: t, layerInfo: o, commonStrings: i } = s, n = k(1, t), r = T(t, o, i), l = P(t);
|
|
314
338
|
if (t.standardizeValues = e, n === r || l) {
|
|
315
339
|
const a = T(t, o, i);
|
|
316
|
-
|
|
340
|
+
I(t, 1, a);
|
|
317
341
|
}
|
|
318
|
-
},
|
|
342
|
+
}, se = (s) => {
|
|
319
343
|
let e = f.xAxisAsc;
|
|
320
344
|
const t = s.orderOptions?.data?.orderType ?? S.Category, o = s.orderOptions?.data && "orderBy" in s.orderOptions.data ? s.orderOptions.data.orderBy : x.Ascending;
|
|
321
345
|
switch (t) {
|
|
@@ -330,7 +354,7 @@ const ts = (s) => {
|
|
|
330
354
|
break;
|
|
331
355
|
}
|
|
332
356
|
return e;
|
|
333
|
-
},
|
|
357
|
+
}, fs = (s, e, t) => {
|
|
334
358
|
let o = S.Category, i = x.Ascending;
|
|
335
359
|
if (e.orderOptions = e.orderOptions ?? {}, s === f.customSort && t !== void 0)
|
|
336
360
|
e.orderOptions.data = {
|
|
@@ -369,72 +393,74 @@ const ts = (s) => {
|
|
|
369
393
|
orderBy: i
|
|
370
394
|
};
|
|
371
395
|
}
|
|
372
|
-
}, V = (s) => s.showMean ?? !1,
|
|
373
|
-
const { newShowMeanLines: e = !1, config: t, commonStrings: o, previousMeanLinesBoxColor: i } = s, n = e ? i :
|
|
396
|
+
}, V = (s) => s.showMean ?? !1, W = (s) => {
|
|
397
|
+
const { newShowMeanLines: e = !1, config: t, commonStrings: o, previousMeanLinesBoxColor: i } = s, n = e ? i : Ce(t), r = (e ?? !1) !== (t.showMean ?? !1);
|
|
374
398
|
if (t.showMean = e, r) {
|
|
375
399
|
let l;
|
|
376
|
-
e ? l =
|
|
400
|
+
e ? l = Fe(t.series) ? Ve(t.series, o) : t.series : l = ke(t.series), l && (l = Z({
|
|
377
401
|
formerSeries: t.series,
|
|
378
402
|
newSeries: l,
|
|
379
403
|
showMean: e
|
|
380
404
|
}), t.series = l);
|
|
381
405
|
}
|
|
382
|
-
return e && i !== void 0 &&
|
|
383
|
-
},
|
|
406
|
+
return e && i !== void 0 && we(i, t), { previousMeanLinesBoxColor: n };
|
|
407
|
+
}, ms = (s) => {
|
|
384
408
|
let e = [];
|
|
385
409
|
const t = s.orderOptions?.data?.orderType;
|
|
386
|
-
return
|
|
387
|
-
},
|
|
410
|
+
return se(s) === f.customSort && t === S.Category && (e = s.orderOptions?.data?.orderBy), e;
|
|
411
|
+
}, Ss = (s, e) => {
|
|
388
412
|
e.orderOptions ??= {};
|
|
389
413
|
const t = e.orderOptions?.data?.orderType;
|
|
390
|
-
|
|
414
|
+
se(e) === f.customSort && t === S.Category && (e.orderOptions.data = {
|
|
391
415
|
orderType: S.Category,
|
|
392
416
|
orderBy: s
|
|
393
417
|
});
|
|
394
|
-
},
|
|
395
|
-
const { config: e, layerInfo: t, errorStrings: o } = s, i =
|
|
418
|
+
}, ps = async (s) => {
|
|
419
|
+
const { config: e, layerInfo: t, errorStrings: o } = s, i = C(e), n = K(e)?.type, r = G(e);
|
|
396
420
|
let l = [];
|
|
397
421
|
return n === p.CategoryAxisFormat && (N({
|
|
398
422
|
fieldName: i,
|
|
399
423
|
numericFields: r,
|
|
400
424
|
fieldList: t.layerFieldsInfo
|
|
401
|
-
}) ? l = r :
|
|
425
|
+
}) ? l = r : te(i) || (l = await ae({
|
|
402
426
|
layerInfo: t,
|
|
403
427
|
config: e,
|
|
404
428
|
category: i,
|
|
405
429
|
errorStrings: o
|
|
406
430
|
}))), l;
|
|
407
|
-
},
|
|
431
|
+
}, te = (s) => s.trim() === "" || s === h, Ee = (s, e) => e.length > 1 && !te(s), ze = (s, e, t) => !Ee(s, e) && t !== "";
|
|
408
432
|
export {
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
433
|
+
Te as A,
|
|
434
|
+
ve as B,
|
|
435
|
+
ns as C,
|
|
436
|
+
ls as D,
|
|
437
|
+
ee as E,
|
|
438
|
+
T as F,
|
|
439
|
+
cs as G,
|
|
440
|
+
C as a,
|
|
441
|
+
G as b,
|
|
442
|
+
Me as c,
|
|
443
|
+
ds as d,
|
|
444
|
+
ys as e,
|
|
445
|
+
qe as f,
|
|
420
446
|
V as g,
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
447
|
+
us as h,
|
|
448
|
+
se as i,
|
|
449
|
+
fs as j,
|
|
450
|
+
ps as k,
|
|
451
|
+
ms as l,
|
|
452
|
+
Ss as m,
|
|
453
|
+
W as n,
|
|
454
|
+
Ce as o,
|
|
455
|
+
we as p,
|
|
456
|
+
ze as q,
|
|
457
|
+
as as r,
|
|
458
|
+
Ee as s,
|
|
459
|
+
te as t,
|
|
460
|
+
ts as u,
|
|
461
|
+
is as v,
|
|
462
|
+
os as w,
|
|
463
|
+
rs as x,
|
|
464
|
+
es as y,
|
|
465
|
+
ss as z
|
|
440
466
|
};
|