@arcgis/charts-components 5.2.0-next.114 → 5.2.0-next.115
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/{NWLALCT2.js → 2KF6G3TW.js} +1 -1
- package/dist/cdn/{6PJZNXE3.js → 2M6NOWZH.js} +1 -1
- package/dist/cdn/{667QTWV7.js → 2RX7CFJZ.js} +1 -1
- package/dist/cdn/{5SSI6USD.js → 2T7ZUVHP.js} +1 -1
- package/dist/cdn/{MZL56CPH.js → 34JAB5UH.js} +1 -1
- package/dist/cdn/{JTKC5SCU.js → 3BLSEO47.js} +1 -1
- package/dist/cdn/{L2PF5ID2.js → 3DN2BHOQ.js} +1 -1
- package/dist/cdn/{D6QQH5HJ.js → 3HPWU5ID.js} +1 -1
- package/dist/cdn/{4YCRCBIC.js → 3P5DXQON.js} +1 -1
- package/dist/cdn/{2MCYVG7K.js → 3YIN5ZR6.js} +1 -1
- package/dist/cdn/{SEF6MDKB.js → 4EEANOMS.js} +1 -1
- package/dist/cdn/{EFUKNOAB.js → 4YMHNMGU.js} +1 -1
- package/dist/cdn/{EKT5V4TI.js → 53TSMZAM.js} +1 -1
- package/dist/cdn/566ODMCM.js +4 -0
- package/dist/cdn/{76CEAJUG.js → 5JACBJVQ.js} +1 -1
- package/dist/cdn/5NLH5NS2.js +3 -0
- package/dist/cdn/{E3QHTISV.js → 5OD74CU7.js} +1 -1
- package/dist/cdn/{Z36PSAIT.js → 6FXRJNB7.js} +1 -1
- package/dist/cdn/{6KING4YQ.js → 6OFVY2BU.js} +1 -1
- package/dist/cdn/{7J5X5RNF.js → 6RFRWYM2.js} +1 -1
- package/dist/cdn/{MS56HMZ7.js → 75EPETWU.js} +1 -1
- package/dist/cdn/{AYA7WEUX.js → 7CLOBWEI.js} +1 -1
- package/dist/cdn/{V447JTLE.js → 7D5IELSU.js} +1 -1
- package/dist/cdn/{BD4Q632U.js → 7DX2X2M6.js} +1 -1
- package/dist/cdn/{XPBLQULK.js → 7ESDYEUI.js} +1 -1
- package/dist/cdn/{AAKW4RVS.js → 7GYKQBI2.js} +1 -1
- package/dist/cdn/{L3MNB4ZO.js → 7L6JYKL3.js} +2 -2
- package/dist/cdn/{YBPIYXAK.js → ACY2RJG6.js} +1 -1
- package/dist/cdn/{ZRFMWOMA.js → AKJDIMQC.js} +1 -1
- package/dist/cdn/{6E2B7CYX.js → AOZG77WL.js} +1 -1
- package/dist/cdn/{EJUE2DFB.js → AQAGHRYN.js} +1 -1
- package/dist/cdn/{2YTIBCVH.js → BKHAERW7.js} +1 -1
- package/dist/cdn/CHV2N66C.js +2 -0
- package/dist/cdn/{EFR7NE4H.js → CIK43DDR.js} +1 -1
- package/dist/cdn/{GVTUNNPZ.js → CMECSKKT.js} +1 -1
- package/dist/cdn/{KPL6JB55.js → CNKLZHH7.js} +1 -1
- package/dist/cdn/{BDFAWIG5.js → CO3FBKOL.js} +1 -1
- package/dist/cdn/{6QQBEX6H.js → D5NCBP6F.js} +1 -1
- package/dist/cdn/{BFPIRUDN.js → D6PBW53D.js} +1 -1
- package/dist/cdn/{EI4CJAER.js → DCW2ZBK4.js} +1 -1
- package/dist/cdn/{PB4AFEXI.js → DWXKIA5H.js} +1 -1
- package/dist/cdn/{34ZS7EFE.js → F7JZQQEQ.js} +1 -1
- package/dist/cdn/{U3IE3PZ7.js → FIIRJDC2.js} +1 -1
- package/dist/cdn/{LLRUDYD7.js → GQDSTKYF.js} +1 -1
- package/dist/cdn/{3YZBG2FY.js → GVQYJBVB.js} +1 -1
- package/dist/cdn/{7HZESUQT.js → GXHUAPY5.js} +1 -1
- package/dist/cdn/{CSXK4RI6.js → HAVT2ATQ.js} +1 -1
- package/dist/cdn/{DWXB2VFB.js → HCDDOFOP.js} +1 -1
- package/dist/cdn/HHW3YRII.js +2 -0
- package/dist/cdn/{ALGN4ACL.js → HPQZQRHD.js} +1 -1
- package/dist/cdn/{L547CXPU.js → I75CEBPU.js} +1 -1
- package/dist/cdn/{VY3IKBCP.js → IBEXJF3Q.js} +1 -1
- package/dist/cdn/{DU2BXW2U.js → IUBSW7JZ.js} +1 -1
- package/dist/cdn/{RGKJ27TT.js → IVRYUXG3.js} +1 -1
- package/dist/cdn/{MPJ5VL4B.js → JG6GHMP7.js} +1 -1
- package/dist/cdn/{ATTLONPQ.js → JMVO446U.js} +1 -1
- package/dist/cdn/{37JHDGGH.js → JOAG4YGY.js} +1 -1
- package/dist/cdn/{BZ4UL3SH.js → JPMGLG7L.js} +1 -1
- package/dist/cdn/{A27CU7YC.js → JRNZ74TV.js} +1 -1
- package/dist/cdn/{HG2ZQ4FH.js → KMM4522Z.js} +1 -1
- package/dist/cdn/{FMRKH7CQ.js → KOXVXSWF.js} +1 -1
- package/dist/cdn/{DPFXPBDX.js → KTMIUASB.js} +1 -1
- package/dist/cdn/{MPDUPJ27.js → LVMKNGET.js} +1 -1
- package/dist/cdn/{AHNVPKZ3.js → MAUH77PP.js} +1 -1
- package/dist/cdn/{QDOX7KHY.js → NDW5WZHO.js} +1 -1
- package/dist/cdn/{EVG3BZC3.js → NJOQ5MC6.js} +19 -19
- package/dist/cdn/{PJQFTLWH.js → NORI6CPC.js} +1 -1
- package/dist/cdn/{2VKBTPNZ.js → OJ4IPOIX.js} +1 -1
- package/dist/cdn/{P5GJO5B6.js → PB2TARKD.js} +1 -1
- package/dist/cdn/{GA63KDPD.js → PKBRCR4Y.js} +1 -1
- package/dist/cdn/{X2V3HNHL.js → PS2SISM7.js} +1 -1
- package/dist/cdn/{UO5TMG7I.js → QBMK6EE3.js} +1 -1
- package/dist/cdn/{ULLU3CEO.js → QWBGD3GZ.js} +1 -1
- package/dist/cdn/{NKDOMQAR.js → QXAP7DRB.js} +1 -1
- package/dist/cdn/{6654NT2G.js → SYCVCYOW.js} +1 -1
- package/dist/cdn/{U46W3EHZ.js → SZAJUT6D.js} +1 -1
- package/dist/cdn/{MUMEV2DT.js → TH2ZBUJD.js} +1 -1
- package/dist/cdn/{ONN32R5O.js → TPNCYNX4.js} +1 -1
- package/dist/cdn/{YDOVIGG4.js → UYMG3L2D.js} +1 -1
- package/dist/cdn/{FST35U4F.js → V5FIMV2Y.js} +1 -1
- package/dist/cdn/{XJFY5UHN.js → VBESINVQ.js} +1 -1
- package/dist/cdn/{DTOBNYL7.js → WCK7BM4P.js} +1 -1
- package/dist/cdn/{DXPHLNX4.js → XFWCKK3S.js} +1 -1
- package/dist/cdn/{42RYQOPR.js → ZEQQTM2Z.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/index.js +2153 -2058
- package/dist/chunks/index2.js +34 -34
- package/dist/chunks/index4.js +1 -1
- package/dist/chunks/serial-chart-data.js +1 -1
- package/dist/chunks/web-component-utils.js +135 -135
- package/dist/components/arcgis-chart/customElement.js +2674 -2662
- package/dist/components/arcgis-charts-config-box-plot-series/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/utils/chart-config/converter/index.js +1 -1
- package/dist/utils/misc/interfaces.d.ts +7 -7
- package/package.json +4 -4
- package/dist/cdn/5FP66CO4.js +0 -2
- package/dist/cdn/6IVB6SYO.js +0 -3
- package/dist/cdn/LSCDFGG7.js +0 -4
- package/dist/cdn/WULGRUTL.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { capitalize as
|
|
2
|
+
import { capitalize as S, isNumber as H, zip as ae, isEqual as ue } from "lodash-es";
|
|
3
3
|
import { H as W } from "./interfaces.js";
|
|
4
4
|
import { g as ce, a as q, b as oe, c as _ } from "./box-plot-data.js";
|
|
5
5
|
import { g as fe } from "./histogram-data.js";
|
|
@@ -7,15 +7,15 @@ import { g as me, a as de, b as ye } from "./pie-chart-data.js";
|
|
|
7
7
|
import { a as ie } from "./series-length.js";
|
|
8
8
|
import { g as re, d as le, e as ge } from "./serial-chart-data.js";
|
|
9
9
|
import { g as z, a as pe } from "./data.js";
|
|
10
|
-
import { p as U, r as be, q as xe, U as E, H as Fe, P
|
|
11
|
-
import { i as Y, J as $, l as I, K as
|
|
10
|
+
import { p as U, r as be, q as xe, U as E, H as Fe, P, a1 as Ce, aO as De, bI as Se } from "./index.js";
|
|
11
|
+
import { i as Y, J as $, l as I, K as ve, L as Be, M as Q } from "./index3.js";
|
|
12
12
|
import { i as K, a as g, C as A } from "./index2.js";
|
|
13
|
-
import { g as
|
|
14
|
-
import { V as
|
|
13
|
+
import { g as he } from "./series-types.js";
|
|
14
|
+
import { V as Pe } from "./index5.js";
|
|
15
15
|
import { DateTime as ne } from "luxon";
|
|
16
16
|
import { P as X } from "./common.js";
|
|
17
17
|
import { a as k, l as L } from "./chart-object-literals.js";
|
|
18
|
-
import { d as
|
|
18
|
+
import { d as Ve } from "./rest-js-object-literals.js";
|
|
19
19
|
function Le(l) {
|
|
20
20
|
const { hour: e, minute: t = 0, format: a, locale: o = "en-US" } = l, i = a && Object.keys(a).length > 0 ? a : {
|
|
21
21
|
hour: "numeric",
|
|
@@ -56,7 +56,7 @@ function J(l) {
|
|
|
56
56
|
label: i.heatChartCalendarDatePartsUnits.dayOfWeek,
|
|
57
57
|
value: Ae({
|
|
58
58
|
weekdayNumber: e,
|
|
59
|
-
firstDayOfWeek: "firstDayOfWeek" in o ? o.firstDayOfWeek :
|
|
59
|
+
firstDayOfWeek: "firstDayOfWeek" in o ? o.firstDayOfWeek : ve,
|
|
60
60
|
locale: t
|
|
61
61
|
})
|
|
62
62
|
};
|
|
@@ -153,11 +153,11 @@ function ct(l, e = {}) {
|
|
|
153
153
|
const f = t ?? Object.keys(l[0]), u = [], p = a ?? we(r ?? "en");
|
|
154
154
|
if (r !== void 0 && p !== "," && (c += `sep=${p}\r
|
|
155
155
|
`), o) {
|
|
156
|
-
const
|
|
157
|
-
u.push(
|
|
156
|
+
const v = f.map((b) => G({ value: b, quoteAll: i, locale: r, roundDecimals: n }));
|
|
157
|
+
u.push(v.join(p));
|
|
158
158
|
}
|
|
159
|
-
l.forEach((
|
|
160
|
-
const b = f.map((x) => G({ value:
|
|
159
|
+
l.forEach((v) => {
|
|
160
|
+
const b = f.map((x) => G({ value: v[x], quoteAll: i, locale: r, roundDecimals: n }));
|
|
161
161
|
u.push(b.join(p));
|
|
162
162
|
}), c += u.join(`\r
|
|
163
163
|
`);
|
|
@@ -168,7 +168,7 @@ function ft(l) {
|
|
|
168
168
|
const { rawData: e, config: t, layer: a, fieldList: o, formatters: i, useRendererLabel: r, timeZone: n, formatLocale: s, utilsStrings: c } = l;
|
|
169
169
|
let f = [];
|
|
170
170
|
if (t !== void 0 && Array.isArray(e) && e.length > 0) {
|
|
171
|
-
const u =
|
|
171
|
+
const u = he(t?.series);
|
|
172
172
|
u === k.HistogramSeries ? f = Ie(
|
|
173
173
|
t,
|
|
174
174
|
e,
|
|
@@ -208,7 +208,7 @@ function ft(l) {
|
|
|
208
208
|
}
|
|
209
209
|
return f;
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function B(l) {
|
|
212
212
|
const { value: e, originalValue: t, formatter: a } = l;
|
|
213
213
|
let o = e;
|
|
214
214
|
return a !== void 0 && (e === null || e instanceof Date || typeof e == "number" || typeof e == "string") && (o = a(e, t)), o;
|
|
@@ -222,7 +222,7 @@ function M(l) {
|
|
|
222
222
|
const f = Ne({
|
|
223
223
|
fieldName: e,
|
|
224
224
|
dataContext: a
|
|
225
|
-
}) ?? (o !== void 0 && (typeof t == "string" || typeof t == "number") ?
|
|
225
|
+
}) ?? (o !== void 0 && (typeof t == "string" || typeof t == "number") ? Ce({
|
|
226
226
|
queryObject: o,
|
|
227
227
|
fieldName: e,
|
|
228
228
|
fieldValue: t
|
|
@@ -235,7 +235,7 @@ function M(l) {
|
|
|
235
235
|
});
|
|
236
236
|
} else
|
|
237
237
|
s = t;
|
|
238
|
-
return
|
|
238
|
+
return B({
|
|
239
239
|
value: s,
|
|
240
240
|
originalValue: t,
|
|
241
241
|
formatter: r
|
|
@@ -269,7 +269,7 @@ function $e(l, e) {
|
|
|
269
269
|
}
|
|
270
270
|
function Ne(l) {
|
|
271
271
|
const { fieldName: e, dataContext: t } = l, a = A.rendererSymbolField;
|
|
272
|
-
return e === a && t !== void 0 ?
|
|
272
|
+
return e === a && t !== void 0 ? Se(t) : void 0;
|
|
273
273
|
}
|
|
274
274
|
function ee(l) {
|
|
275
275
|
const { config: e, splitByField: t, splitByValue: a, splitByValueIndex: o, layer: i, fieldList: r, timeZone: n } = l;
|
|
@@ -293,60 +293,60 @@ function Te(l) {
|
|
|
293
293
|
fieldList: o
|
|
294
294
|
});
|
|
295
295
|
return t.map((p) => {
|
|
296
|
-
const
|
|
297
|
-
let m = { label: n.x, value:
|
|
296
|
+
const v = p[Y.xField], b = p[Y.yField], x = p[Y.valueField], C = typeof x == "number" && Number.isFinite(x) ? x.toFixed(2) : x;
|
|
297
|
+
let m = { label: n.x, value: v }, d = { label: n.y, value: b };
|
|
298
298
|
if (n.xTemporalBinning !== void 0) {
|
|
299
|
-
const { label: F, value:
|
|
300
|
-
value: Number(
|
|
299
|
+
const { label: F, value: D } = J({
|
|
300
|
+
value: Number(v),
|
|
301
301
|
config: e,
|
|
302
302
|
formatLocale: i,
|
|
303
303
|
unit: n.xTemporalBinning.unit,
|
|
304
304
|
utilsStrings: r
|
|
305
305
|
});
|
|
306
|
-
!K(F) && !K(
|
|
306
|
+
!K(F) && !K(D) && (m = { label: F, value: D });
|
|
307
307
|
}
|
|
308
308
|
if (n.yTemporalBinning !== void 0) {
|
|
309
|
-
const { label: F, value:
|
|
309
|
+
const { label: F, value: D } = J({
|
|
310
310
|
value: Number(b),
|
|
311
311
|
config: e,
|
|
312
312
|
formatLocale: i,
|
|
313
313
|
unit: n.yTemporalBinning.unit,
|
|
314
314
|
utilsStrings: r
|
|
315
315
|
});
|
|
316
|
-
!K(F) && !K(
|
|
316
|
+
!K(F) && !K(D) && (d = { label: F, value: D });
|
|
317
317
|
}
|
|
318
318
|
return {
|
|
319
319
|
[m.label]: m.value,
|
|
320
320
|
[d.label]: d.value,
|
|
321
|
-
[u.description]:
|
|
321
|
+
[u.description]: C
|
|
322
322
|
};
|
|
323
323
|
});
|
|
324
324
|
}
|
|
325
325
|
function Ie(l, e, t) {
|
|
326
|
-
const a = fe(l), o = `${
|
|
326
|
+
const a = fe(l), o = `${S(W.Min)} of ${a}`, i = `${S(W.Max)} of ${a}`, r = `${S(W.Count)} of ${a}`;
|
|
327
327
|
return e.map((n) => {
|
|
328
|
-
const { minValue: s, maxValue: c, count: f } = n, u = H(s), p = H(c),
|
|
329
|
-
if (u && (b[o] =
|
|
328
|
+
const { minValue: s, maxValue: c, count: f } = n, u = H(s), p = H(c), v = H(f), b = {};
|
|
329
|
+
if (u && (b[o] = B({
|
|
330
330
|
value: s,
|
|
331
331
|
originalValue: s,
|
|
332
332
|
formatter: t?.xAxisLabelFormatter
|
|
333
|
-
})), p && (b[i] =
|
|
333
|
+
})), p && (b[i] = B({
|
|
334
334
|
value: c,
|
|
335
335
|
originalValue: c,
|
|
336
336
|
formatter: t?.xAxisLabelFormatter
|
|
337
337
|
})), u && p) {
|
|
338
|
-
const x =
|
|
338
|
+
const x = B({
|
|
339
339
|
value: s,
|
|
340
340
|
originalValue: s,
|
|
341
341
|
formatter: t?.xAxisLabelFormatter
|
|
342
|
-
}),
|
|
342
|
+
}), C = B({
|
|
343
343
|
value: c,
|
|
344
344
|
originalValue: c,
|
|
345
345
|
formatter: t?.xAxisLabelFormatter
|
|
346
346
|
});
|
|
347
|
-
b.Label = `${String(x ?? "")} - ${String(
|
|
347
|
+
b.Label = `${String(x ?? "")} - ${String(C ?? "")}`;
|
|
348
348
|
}
|
|
349
|
-
return
|
|
349
|
+
return v && (b[r] = f), b;
|
|
350
350
|
});
|
|
351
351
|
}
|
|
352
352
|
function Re(l, e, t) {
|
|
@@ -355,7 +355,7 @@ function Re(l, e, t) {
|
|
|
355
355
|
return t ? o = t.map((i) => a.find((r) => r.toLowerCase().includes(i.toLowerCase())) || "") : o = a.filter((r) => r.toLowerCase().includes(e.toLowerCase())), o.filter((i) => i.trim() !== "");
|
|
356
356
|
}
|
|
357
357
|
function Ke(l) {
|
|
358
|
-
const { config: e, rows: t, layer: a, fieldList: o, formatters: i, useRendererLabel: r = !1, timeZone: n } = l, s = pe(e), c = re(e), f =
|
|
358
|
+
const { config: e, rows: t, layer: a, fieldList: o, formatters: i, useRendererLabel: r = !1, timeZone: n } = l, s = pe(e), c = re(e), f = S(c), u = le(e), p = U(e.series), v = ie(e), b = ge(e), { idField: x, isTraditionalTypeOID: C } = be(xe(a)), m = C && u.length === 1 && u[0] === x;
|
|
359
359
|
let d;
|
|
360
360
|
switch (p) {
|
|
361
361
|
case g.BarAndLineNoAggregation:
|
|
@@ -368,29 +368,29 @@ function Ke(l) {
|
|
|
368
368
|
formatter: i?.xAxisLabelFormatter,
|
|
369
369
|
useRendererLabel: r,
|
|
370
370
|
timeZone: n
|
|
371
|
-
}),
|
|
371
|
+
}), D = { [s]: F };
|
|
372
372
|
return Object.assign(
|
|
373
|
-
|
|
374
|
-
...u.map((
|
|
375
|
-
[
|
|
376
|
-
value: y[
|
|
377
|
-
originalValue: y[
|
|
373
|
+
D,
|
|
374
|
+
...u.map((h) => ({
|
|
375
|
+
[h]: B({
|
|
376
|
+
value: y[h],
|
|
377
|
+
originalValue: y[h]
|
|
378
378
|
})
|
|
379
379
|
}))
|
|
380
|
-
),
|
|
380
|
+
), D;
|
|
381
381
|
});
|
|
382
382
|
break;
|
|
383
383
|
case g.BarAndLineFromFields:
|
|
384
384
|
d = ae(u, t).map(([y, F]) => {
|
|
385
|
-
const
|
|
386
|
-
return F !== void 0 && y !== void 0 && (
|
|
385
|
+
const D = E(e.series)[0], h = {};
|
|
386
|
+
return F !== void 0 && y !== void 0 && (h.Field = B({
|
|
387
387
|
value: F[s],
|
|
388
388
|
originalValue: F[s],
|
|
389
389
|
formatter: i?.xAxisLabelFormatter
|
|
390
|
-
}),
|
|
391
|
-
value: F[
|
|
392
|
-
originalValue: F[
|
|
393
|
-
})),
|
|
390
|
+
}), h.Value = B({
|
|
391
|
+
value: F[D],
|
|
392
|
+
originalValue: F[D]
|
|
393
|
+
})), h;
|
|
394
394
|
});
|
|
395
395
|
break;
|
|
396
396
|
case g.BarAndLineMonoField:
|
|
@@ -404,28 +404,28 @@ function Ke(l) {
|
|
|
404
404
|
formatter: i?.xAxisLabelFormatter,
|
|
405
405
|
useRendererLabel: r,
|
|
406
406
|
timeZone: n
|
|
407
|
-
}),
|
|
408
|
-
return u.forEach((
|
|
407
|
+
}), D = { [s]: F };
|
|
408
|
+
return u.forEach((h, V) => {
|
|
409
409
|
const w = z({
|
|
410
410
|
config: e,
|
|
411
411
|
xAxisField: s,
|
|
412
412
|
numericFields: u,
|
|
413
413
|
aggregationType: c,
|
|
414
414
|
layer: a,
|
|
415
|
-
numericFieldIndex:
|
|
415
|
+
numericFieldIndex: V,
|
|
416
416
|
fieldList: o
|
|
417
|
-
}), N = E(e.series)[
|
|
417
|
+
}), N = E(e.series)[V];
|
|
418
418
|
let R = N, Z = N;
|
|
419
|
-
N.toLowerCase() === w.name.toLowerCase() && (R = w.description, Z = w.name),
|
|
419
|
+
N.toLowerCase() === w.name.toLowerCase() && (R = w.description, Z = w.name), D[R] = B({
|
|
420
420
|
value: y[Z],
|
|
421
421
|
originalValue: y[Z]
|
|
422
422
|
});
|
|
423
|
-
}),
|
|
423
|
+
}), D;
|
|
424
424
|
});
|
|
425
425
|
break;
|
|
426
426
|
case g.BarAndLineSplitBy:
|
|
427
427
|
d = t.flatMap((y) => {
|
|
428
|
-
const F = E(e.series),
|
|
428
|
+
const F = E(e.series), D = O({
|
|
429
429
|
field: s,
|
|
430
430
|
row: y,
|
|
431
431
|
layer: a,
|
|
@@ -434,20 +434,20 @@ function Ke(l) {
|
|
|
434
434
|
useRendererLabel: r,
|
|
435
435
|
timeZone: n
|
|
436
436
|
});
|
|
437
|
-
return
|
|
437
|
+
return v.map((h, V) => {
|
|
438
438
|
const w = ee({
|
|
439
439
|
config: e,
|
|
440
440
|
splitByField: b,
|
|
441
|
-
splitByValue:
|
|
442
|
-
splitByValueIndex:
|
|
441
|
+
splitByValue: h,
|
|
442
|
+
splitByValueIndex: V,
|
|
443
443
|
layer: a,
|
|
444
444
|
fieldList: o,
|
|
445
445
|
timeZone: n
|
|
446
446
|
});
|
|
447
447
|
return {
|
|
448
|
-
[s]:
|
|
448
|
+
[s]: D,
|
|
449
449
|
[b]: w,
|
|
450
|
-
[m ? f : `${f} of ${u[0]}`]: y[F[
|
|
450
|
+
[m ? f : `${f} of ${u[0]}`]: y[F[V]]
|
|
451
451
|
};
|
|
452
452
|
});
|
|
453
453
|
});
|
|
@@ -462,11 +462,11 @@ function Ke(l) {
|
|
|
462
462
|
formatter: i?.xAxisLabelFormatter,
|
|
463
463
|
useRendererLabel: r,
|
|
464
464
|
timeZone: n
|
|
465
|
-
}),
|
|
465
|
+
}), D = Re(y, u[0], v), h = y[b], V = v.findIndex((R) => $e(R, h)), w = ee({
|
|
466
466
|
config: e,
|
|
467
467
|
splitByField: b,
|
|
468
|
-
splitByValue:
|
|
469
|
-
splitByValueIndex:
|
|
468
|
+
splitByValue: h,
|
|
469
|
+
splitByValueIndex: V >= 0 ? V : void 0,
|
|
470
470
|
layer: a,
|
|
471
471
|
fieldList: o,
|
|
472
472
|
timeZone: n
|
|
@@ -474,7 +474,7 @@ function Ke(l) {
|
|
|
474
474
|
return {
|
|
475
475
|
[s]: F,
|
|
476
476
|
[b]: w,
|
|
477
|
-
[u[0]]: y[
|
|
477
|
+
[u[0]]: y[D[0]]
|
|
478
478
|
};
|
|
479
479
|
});
|
|
480
480
|
break;
|
|
@@ -504,19 +504,19 @@ function je(l) {
|
|
|
504
504
|
function Ee(l) {
|
|
505
505
|
const { config: e, rows: t, layer: a, fieldList: o, formatters: i, useRendererLabel: r = !1, timeZone: n } = l, s = me(e), c = U(e.series);
|
|
506
506
|
let f = je(t);
|
|
507
|
-
const u = de(e), p = c !== g.PieFromFields ? X.Category : X.Fields,
|
|
507
|
+
const u = de(e), p = c !== g.PieFromFields ? X.Category : X.Fields, v = ye(e, p), b = z({
|
|
508
508
|
config: e,
|
|
509
509
|
xAxisField: s,
|
|
510
510
|
numericFields: u,
|
|
511
|
-
aggregationType:
|
|
511
|
+
aggregationType: v,
|
|
512
512
|
mode: p,
|
|
513
513
|
layer: a,
|
|
514
514
|
fieldList: o
|
|
515
515
|
}), x = E(e.series)[0];
|
|
516
|
-
return c === g.PieFromCategory || c === g.PieNoAggregation ? f = f.map((
|
|
516
|
+
return c === g.PieFromCategory || c === g.PieNoAggregation ? f = f.map((C) => {
|
|
517
517
|
const m = O({
|
|
518
518
|
field: s,
|
|
519
|
-
row:
|
|
519
|
+
row: C,
|
|
520
520
|
layer: a,
|
|
521
521
|
fieldList: o,
|
|
522
522
|
formatter: i?.xAxisLabelFormatter,
|
|
@@ -524,23 +524,23 @@ function Ee(l) {
|
|
|
524
524
|
timeZone: n
|
|
525
525
|
}), d = { [s]: m };
|
|
526
526
|
let y = x, F = x;
|
|
527
|
-
return c === g.PieFromCategory && x.toLowerCase() === b.name.toLowerCase() && (y = b.description, F = b.name), d[y] =
|
|
528
|
-
value:
|
|
529
|
-
originalValue:
|
|
530
|
-
}), d[
|
|
531
|
-
value:
|
|
532
|
-
originalValue:
|
|
527
|
+
return c === g.PieFromCategory && x.toLowerCase() === b.name.toLowerCase() && (y = b.description, F = b.name), d[y] = B({
|
|
528
|
+
value: C[F],
|
|
529
|
+
originalValue: C[F]
|
|
530
|
+
}), d[S($.trim())] = B({
|
|
531
|
+
value: C[`${F}${$}`],
|
|
532
|
+
originalValue: C[`${F}${$}`]
|
|
533
533
|
}), d;
|
|
534
|
-
}) : c === g.PieFromFields && (f = ae(u, f).map(([
|
|
534
|
+
}) : c === g.PieFromFields && (f = ae(u, f).map(([C, m]) => {
|
|
535
535
|
const d = {};
|
|
536
|
-
return m !== void 0 &&
|
|
536
|
+
return m !== void 0 && C !== void 0 && (d.Field = B({
|
|
537
537
|
value: m[s],
|
|
538
538
|
originalValue: m[s],
|
|
539
539
|
formatter: i?.xAxisLabelFormatter
|
|
540
|
-
}), d.Value =
|
|
540
|
+
}), d.Value = B({
|
|
541
541
|
value: m[x],
|
|
542
542
|
originalValue: m[x]
|
|
543
|
-
}), d[
|
|
543
|
+
}), d[S($.trim())] = B({
|
|
544
544
|
value: m[`${x}${$}`],
|
|
545
545
|
originalValue: m[`${x}${$}`]
|
|
546
546
|
})), d;
|
|
@@ -548,10 +548,10 @@ function Ee(l) {
|
|
|
548
548
|
}
|
|
549
549
|
function j(l) {
|
|
550
550
|
const { rawData: e, keyBase: t = "", outRow: a } = l;
|
|
551
|
-
for (const [o, i] of Object.entries(
|
|
551
|
+
for (const [o, i] of Object.entries(P)) {
|
|
552
552
|
const r = e[t + i];
|
|
553
553
|
r !== void 0 && (a[o] = r);
|
|
554
|
-
const n = e[t + i +
|
|
554
|
+
const n = e[t + i + Be];
|
|
555
555
|
n !== void 0 && (a[`${o} Outlier`] = n);
|
|
556
556
|
const s = e[t + i + Q];
|
|
557
557
|
s !== void 0 && (a[`${o} Z-Score`] = s);
|
|
@@ -559,64 +559,64 @@ function j(l) {
|
|
|
559
559
|
}
|
|
560
560
|
function T(l) {
|
|
561
561
|
const { rawData: e, outRow: t, config: a, boxPlotSubType: o, layer: i, fieldList: r, timeZone: n } = l, s = q(a), c = oe(a), f = _(a);
|
|
562
|
-
let u =
|
|
562
|
+
let u = P.Outlier;
|
|
563
563
|
const p = I;
|
|
564
564
|
switch (o) {
|
|
565
|
-
case g.
|
|
565
|
+
case g.BoxPlotC3MonoFieldAndCategory: {
|
|
566
566
|
const x = se({
|
|
567
567
|
field: s,
|
|
568
568
|
value: e[s],
|
|
569
569
|
fieldList: r,
|
|
570
570
|
timeZone: n
|
|
571
571
|
});
|
|
572
|
-
t[s] = x, t[
|
|
572
|
+
t[s] = x, t[S(P.Outlier)] = e[u];
|
|
573
573
|
break;
|
|
574
574
|
}
|
|
575
|
-
case g.
|
|
576
|
-
t[
|
|
577
|
-
(
|
|
578
|
-
) ?? ""}_${u}`, t[
|
|
575
|
+
case g.BoxPlotC4MultiFieldsAndCategory: {
|
|
576
|
+
t[S(s)] = e[s], u = `${c.find(
|
|
577
|
+
(C) => Object.keys(e).some((m) => m.toLowerCase().includes(C.toLowerCase()))
|
|
578
|
+
) ?? ""}_${u}`, t[S(P.Outlier)] = e[u];
|
|
579
579
|
break;
|
|
580
580
|
}
|
|
581
|
-
case g.
|
|
582
|
-
case g.
|
|
583
|
-
const x = String(e[f]),
|
|
581
|
+
case g.BoxPlotC5MonoFieldAndSplitBy:
|
|
582
|
+
case g.BoxPlotC6MultiFieldsAndSplitBy: {
|
|
583
|
+
const x = String(e[f]), C = M({
|
|
584
584
|
field: f,
|
|
585
585
|
value: x,
|
|
586
586
|
layer: i,
|
|
587
587
|
fieldList: r,
|
|
588
588
|
timeZone: n
|
|
589
589
|
});
|
|
590
|
-
u = `${x}_${u}`, t.Field = e[p], t[
|
|
590
|
+
u = `${x}_${u}`, t.Field = e[p], t[S(f)] = C, t[S(P.Outlier)] = e[u];
|
|
591
591
|
break;
|
|
592
592
|
}
|
|
593
|
-
case g.
|
|
594
|
-
const x = String(e[f]),
|
|
593
|
+
case g.BoxPlotC7MonoFieldAndCategoryAndSplitBy: {
|
|
594
|
+
const x = String(e[f]), C = M({
|
|
595
595
|
field: f,
|
|
596
596
|
value: x,
|
|
597
597
|
layer: i,
|
|
598
598
|
fieldList: r,
|
|
599
599
|
timeZone: n
|
|
600
600
|
});
|
|
601
|
-
u = `${x}_${u}`, t[
|
|
601
|
+
u = `${x}_${u}`, t[S(s)] = e[s], t[S(f)] = C, t[S(P.Outlier)] = e[u];
|
|
602
602
|
break;
|
|
603
603
|
}
|
|
604
|
-
case g.
|
|
605
|
-
case g.
|
|
604
|
+
case g.BoxPlotC1MonoField:
|
|
605
|
+
case g.BoxPlotC2MultiFields:
|
|
606
606
|
default: {
|
|
607
|
-
t.Field = e[p], t[
|
|
607
|
+
t.Field = e[p], t[S(P.Outlier)] = e[u];
|
|
608
608
|
break;
|
|
609
609
|
}
|
|
610
610
|
}
|
|
611
|
-
const
|
|
612
|
-
b !== void 0 && (t[`${
|
|
611
|
+
const v = `${u}${Q}`, b = e[v];
|
|
612
|
+
b !== void 0 && (t[`${S(P.Outlier)} Z-Score`] = b);
|
|
613
613
|
}
|
|
614
614
|
function Ue(l) {
|
|
615
|
-
const { rawData: e, outRow: t, config: a, splitByValue: o, layer: i, fieldList: r, timeZone: n } = l, s = U(a.series), c = e[`${o}_${
|
|
615
|
+
const { rawData: e, outRow: t, config: a, splitByValue: o, layer: i, fieldList: r, timeZone: n } = l, s = U(a.series), c = e[`${o}_${P.Average}`], f = _(a), u = q(a);
|
|
616
616
|
let p = "";
|
|
617
617
|
switch (s) {
|
|
618
|
-
case g.
|
|
619
|
-
p = `${o}_${f}`, t.Field = e[I], t[
|
|
618
|
+
case g.BoxPlotC5MonoFieldAndSplitBy: {
|
|
619
|
+
p = `${o}_${f}`, t.Field = e[I], t[S(f)] = M({
|
|
620
620
|
field: f,
|
|
621
621
|
value: e[p],
|
|
622
622
|
layer: i,
|
|
@@ -625,8 +625,8 @@ function Ue(l) {
|
|
|
625
625
|
});
|
|
626
626
|
break;
|
|
627
627
|
}
|
|
628
|
-
case g.
|
|
629
|
-
p = `${o}_${
|
|
628
|
+
case g.BoxPlotC6MultiFieldsAndSplitBy: {
|
|
629
|
+
p = `${o}_${P.Average}`, t.Field = e[I], t[S(f)] = M({
|
|
630
630
|
field: f,
|
|
631
631
|
value: e[p],
|
|
632
632
|
layer: i,
|
|
@@ -635,8 +635,8 @@ function Ue(l) {
|
|
|
635
635
|
});
|
|
636
636
|
break;
|
|
637
637
|
}
|
|
638
|
-
case g.
|
|
639
|
-
p = `${o}_${
|
|
638
|
+
case g.BoxPlotC7MonoFieldAndCategoryAndSplitBy: {
|
|
639
|
+
p = `${o}_${P.Average}`, t[u] = e[u], t[S(f)] = M({
|
|
640
640
|
field: f,
|
|
641
641
|
value: o,
|
|
642
642
|
layer: i,
|
|
@@ -646,21 +646,21 @@ function Ue(l) {
|
|
|
646
646
|
break;
|
|
647
647
|
}
|
|
648
648
|
}
|
|
649
|
-
t[
|
|
650
|
-
const
|
|
651
|
-
b !== void 0 && (t[`${
|
|
649
|
+
t[S(P.Average)] = c;
|
|
650
|
+
const v = `${String(c)}${Q}`, b = e[v];
|
|
651
|
+
b !== void 0 && (t[`${S(P.Average)} Z-Score`] = b);
|
|
652
652
|
}
|
|
653
653
|
function Ze(l) {
|
|
654
654
|
const { config: e, rows: t, layer: a, fieldList: o, formatters: i, useRendererLabel: r = !1, timeZone: n } = l, s = U(e.series);
|
|
655
655
|
let c = s;
|
|
656
656
|
const f = ce(e), u = Array.isArray(t) && t.length > 0 && t.every((m) => m[A.boxPlot.boxPlotMeanLineMarkerId] !== void 0);
|
|
657
|
-
f && !u && (s === g.
|
|
658
|
-
const p = q(e),
|
|
659
|
-
let
|
|
657
|
+
f && !u && (s === g.BoxPlotC5MonoFieldAndSplitBy ? c = g.BoxPlotC1MonoField : s === g.BoxPlotC6MultiFieldsAndSplitBy ? c = g.BoxPlotC2MultiFields : s === g.BoxPlotC7MonoFieldAndCategoryAndSplitBy && (c = g.BoxPlotC3MonoFieldAndCategory));
|
|
658
|
+
const p = q(e), v = oe(e), b = ie(e), x = _(e);
|
|
659
|
+
let C;
|
|
660
660
|
switch (c) {
|
|
661
|
-
case g.
|
|
662
|
-
case g.
|
|
663
|
-
|
|
661
|
+
case g.BoxPlotC1MonoField:
|
|
662
|
+
case g.BoxPlotC3MonoFieldAndCategory: {
|
|
663
|
+
C = t.map((m) => {
|
|
664
664
|
const d = {};
|
|
665
665
|
if (m[A.boxPlot.boxPlotOutlierId])
|
|
666
666
|
T({
|
|
@@ -673,7 +673,7 @@ function Ze(l) {
|
|
|
673
673
|
timeZone: n
|
|
674
674
|
});
|
|
675
675
|
else {
|
|
676
|
-
if (c === g.
|
|
676
|
+
if (c === g.BoxPlotC3MonoFieldAndCategory) {
|
|
677
677
|
const y = O({
|
|
678
678
|
field: p,
|
|
679
679
|
row: m,
|
|
@@ -684,15 +684,15 @@ function Ze(l) {
|
|
|
684
684
|
timeZone: n
|
|
685
685
|
});
|
|
686
686
|
d[p] = y;
|
|
687
|
-
} else c === g.
|
|
687
|
+
} else c === g.BoxPlotC1MonoField && (d.Field = m[I]);
|
|
688
688
|
j({ rawData: m, outRow: d });
|
|
689
689
|
}
|
|
690
690
|
return d;
|
|
691
691
|
});
|
|
692
692
|
break;
|
|
693
693
|
}
|
|
694
|
-
case g.
|
|
695
|
-
|
|
694
|
+
case g.BoxPlotC2MultiFields: {
|
|
695
|
+
C = t.flatMap((m) => {
|
|
696
696
|
const d = {};
|
|
697
697
|
return m[A.boxPlot.boxPlotOutlierId] ? T({
|
|
698
698
|
rawData: m,
|
|
@@ -706,9 +706,9 @@ function Ze(l) {
|
|
|
706
706
|
});
|
|
707
707
|
break;
|
|
708
708
|
}
|
|
709
|
-
case g.
|
|
710
|
-
|
|
711
|
-
(m) =>
|
|
709
|
+
case g.BoxPlotC4MultiFieldsAndCategory: {
|
|
710
|
+
C = t.flatMap(
|
|
711
|
+
(m) => v.map((d) => {
|
|
712
712
|
const y = {};
|
|
713
713
|
let F = "";
|
|
714
714
|
if (y.Field = d, m[A.boxPlot.boxPlotOutlierId])
|
|
@@ -722,8 +722,8 @@ function Ze(l) {
|
|
|
722
722
|
timeZone: n
|
|
723
723
|
});
|
|
724
724
|
else {
|
|
725
|
-
if (c === g.
|
|
726
|
-
const
|
|
725
|
+
if (c === g.BoxPlotC4MultiFieldsAndCategory) {
|
|
726
|
+
const D = O({
|
|
727
727
|
field: p,
|
|
728
728
|
row: m,
|
|
729
729
|
layer: a,
|
|
@@ -732,7 +732,7 @@ function Ze(l) {
|
|
|
732
732
|
useRendererLabel: r,
|
|
733
733
|
timeZone: n
|
|
734
734
|
});
|
|
735
|
-
y[p] =
|
|
735
|
+
y[p] = D, F = `${d}_`;
|
|
736
736
|
}
|
|
737
737
|
j({ rawData: m, outRow: y, keyBase: F });
|
|
738
738
|
}
|
|
@@ -741,10 +741,10 @@ function Ze(l) {
|
|
|
741
741
|
);
|
|
742
742
|
break;
|
|
743
743
|
}
|
|
744
|
-
case g.
|
|
745
|
-
case g.
|
|
746
|
-
case g.
|
|
747
|
-
|
|
744
|
+
case g.BoxPlotC5MonoFieldAndSplitBy:
|
|
745
|
+
case g.BoxPlotC6MultiFieldsAndSplitBy:
|
|
746
|
+
case g.BoxPlotC7MonoFieldAndCategoryAndSplitBy: {
|
|
747
|
+
C = t.flatMap((m) => {
|
|
748
748
|
if (m[A.boxPlot.boxPlotOutlierId]) {
|
|
749
749
|
const d = {};
|
|
750
750
|
return T({
|
|
@@ -774,8 +774,8 @@ function Ze(l) {
|
|
|
774
774
|
layer: a,
|
|
775
775
|
fieldList: o
|
|
776
776
|
});
|
|
777
|
-
if (c === g.
|
|
778
|
-
const
|
|
777
|
+
if (c === g.BoxPlotC7MonoFieldAndCategoryAndSplitBy) {
|
|
778
|
+
const D = O({
|
|
779
779
|
field: p,
|
|
780
780
|
row: m,
|
|
781
781
|
layer: a,
|
|
@@ -784,7 +784,7 @@ function Ze(l) {
|
|
|
784
784
|
useRendererLabel: r,
|
|
785
785
|
timeZone: n
|
|
786
786
|
});
|
|
787
|
-
y[p] =
|
|
787
|
+
y[p] = D;
|
|
788
788
|
}
|
|
789
789
|
return m[A.boxPlot.boxPlotOutlierId] ? T({
|
|
790
790
|
rawData: m,
|
|
@@ -800,9 +800,9 @@ function Ze(l) {
|
|
|
800
800
|
break;
|
|
801
801
|
}
|
|
802
802
|
default:
|
|
803
|
-
|
|
803
|
+
C = t;
|
|
804
804
|
}
|
|
805
|
-
return
|
|
805
|
+
return C;
|
|
806
806
|
}
|
|
807
807
|
const te = (l) => {
|
|
808
808
|
let e = !1;
|
|
@@ -812,15 +812,15 @@ const te = (l) => {
|
|
|
812
812
|
let i = t;
|
|
813
813
|
const r = a?.find((n) => n.name === e);
|
|
814
814
|
if (r) {
|
|
815
|
-
const n = r.type ===
|
|
816
|
-
|
|
815
|
+
const n = r.type === Ve.DateOnly;
|
|
816
|
+
De(r) && !n ? i = te(t) ? We(new Date(t), o) : t : n && typeof t != "string" && (i = te(t) ? He(new Date(t), o) : t);
|
|
817
817
|
}
|
|
818
818
|
return i;
|
|
819
819
|
};
|
|
820
820
|
function mt(l) {
|
|
821
821
|
const { runtimeDataFilters: e, view: t, viewTimeExtentChangePolicy: a, syncViewTimeExtent: o } = l;
|
|
822
822
|
let i = e;
|
|
823
|
-
return t && (a ===
|
|
823
|
+
return t && (a === Pe.Refresh || o) && t.timeExtent?.start != null && t.timeExtent?.end != null && (i = {
|
|
824
824
|
...e,
|
|
825
825
|
timeExtent: [t.timeExtent.start.valueOf(), t.timeExtent.end.valueOf()]
|
|
826
826
|
}), i;
|