@arcgis/charts-components 5.0.0-next.162 → 5.0.0-next.164
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/{TQRAYSWN.js → 2ZSCSQKE.js} +1 -1
- package/dist/cdn/{SW6ENGEK.js → 3ETPKJLH.js} +1 -1
- package/dist/cdn/3FJBR2FR.js +2 -0
- package/dist/cdn/3HSM4YOY.js +4 -0
- package/dist/cdn/{EYXP4YQW.js → 3IU5PLYH.js} +1 -1
- package/dist/cdn/{VMSL4CWI.js → 43YS2I72.js} +1 -1
- package/dist/cdn/45NODT2J.js +2 -0
- package/dist/cdn/{62OZB7FK.js → 4CICGGRX.js} +1 -1
- package/dist/cdn/{37TWMIC2.js → 4R2UOKDR.js} +1 -1
- package/dist/cdn/{UHB77RAE.js → 4TFNYB6N.js} +1 -1
- package/dist/cdn/{BYAYB5LF.js → 4WOGY3WA.js} +1 -1
- package/dist/cdn/{CTDG3FOZ.js → 4Z3XHMLM.js} +1 -1
- package/dist/cdn/{TUTT6I7D.js → 55KRKYFS.js} +1 -1
- package/dist/cdn/567U5TC6.js +2 -0
- package/dist/cdn/{7WZV7AE3.js → 5FIT7FHW.js} +1 -1
- package/dist/cdn/{PQRPDV2N.js → 5MM7SODQ.js} +1 -1
- package/dist/cdn/{7XUX4ZTI.js → 5R6MQSUY.js} +1 -1
- package/dist/cdn/{B5LXWQRU.js → 62V455IN.js} +1 -1
- package/dist/cdn/{UUZWRA5G.js → 6ERZOPDO.js} +1 -1
- package/dist/cdn/{DB3UL5LX.js → 735B4X34.js} +1 -1
- package/dist/cdn/{4L3ESTCL.js → 7SZ3MTAV.js} +1 -1
- package/dist/cdn/{XQAUA2KI.js → A6NRPBTW.js} +1 -1
- package/dist/cdn/{KLOSKKEF.js → A7BXN5EL.js} +1 -1
- package/dist/cdn/{OMR6RCJW.js → AAHVSFKB.js} +1 -1
- package/dist/cdn/AGJFBRLT.js +2 -0
- package/dist/cdn/{HAAT4GZV.js → AI3L7T2E.js} +1 -1
- package/dist/cdn/{RKJFJ3VI.js → AJHQESHE.js} +1 -1
- package/dist/cdn/{JBHDZEVD.js → ATTQBQ5G.js} +1 -1
- package/dist/cdn/{P3XTRZL3.js → B2MBGCT2.js} +1 -1
- package/dist/cdn/{KOC7VWEQ.js → BELVV3ZC.js} +1 -1
- package/dist/cdn/{MMVZJQGM.js → CDCU3GES.js} +1 -1
- package/dist/cdn/{MSNUKDFY.js → CJFTBI6B.js} +1 -1
- package/dist/cdn/{TBYLHPGX.js → CNCVZK7E.js} +1 -1
- package/dist/cdn/{TCKDCNZ6.js → COJU472P.js} +1 -1
- package/dist/cdn/CQUCOSCR.js +2 -0
- package/dist/cdn/{277KZ5EH.js → DUDOTKJA.js} +1 -1
- package/dist/cdn/{JASXULGK.js → E4D75GTQ.js} +1 -1
- package/dist/cdn/{7KAPOFBN.js → F2HVMZZK.js} +1 -1
- package/dist/cdn/{SW62HLGO.js → FU2EQLXU.js} +1 -1
- package/dist/cdn/{64DXX3FX.js → G7VC2XBZ.js} +1 -1
- package/dist/cdn/{GKUTVRCP.js → GS3GRA2H.js} +1 -1
- package/dist/cdn/GSVN46KN.js +2 -0
- package/dist/cdn/{DACWGPLL.js → GTHSVE2K.js} +1 -1
- package/dist/cdn/{WCBXBXTZ.js → GTSIEQM5.js} +1 -1
- package/dist/cdn/{KF4ILYWV.js → HHJIYADP.js} +1 -1
- package/dist/cdn/{GB223HFN.js → HZDRSBX2.js} +1 -1
- package/dist/cdn/{D2HQHUZF.js → I457NPW3.js} +1 -1
- package/dist/cdn/{IDMPL6T7.js → IP4VBE6Z.js} +1 -1
- package/dist/cdn/{WTZ23CRY.js → IYXHOL5D.js} +1 -1
- package/dist/cdn/{SZ2BB7ZG.js → J5JH47IU.js} +1 -1
- package/dist/cdn/{7HDTPUIY.js → K3LNGUQX.js} +1 -1
- package/dist/cdn/{6AP262U4.js → K4YRNWYA.js} +1 -1
- package/dist/cdn/{YHIJMVJQ.js → KKYRF4QI.js} +1 -1
- package/dist/cdn/{GRUDYKUK.js → KQHMG4PC.js} +1 -1
- package/dist/cdn/{S3MAP4NY.js → L6HK4PG5.js} +1 -1
- package/dist/cdn/{IBMHE4HG.js → LHJS2B4G.js} +1 -1
- package/dist/cdn/{KHPBPGZW.js → LN5HOZFK.js} +1 -1
- package/dist/cdn/{CBTHS6I5.js → M4XXCCFI.js} +1 -1
- package/dist/cdn/{Y7OQUVXC.js → M5OKIJH6.js} +1 -1
- package/dist/cdn/{IL22JCIC.js → M6KGYVL2.js} +1 -1
- package/dist/cdn/{PUO6TAT3.js → N673HFEJ.js} +1 -1
- package/dist/cdn/{DLT5ZL25.js → NYBZPU4F.js} +1 -1
- package/dist/cdn/{PZ5VL76M.js → OI76MVPM.js} +1 -1
- package/dist/cdn/{G7UITT5F.js → OJXN4Y6A.js} +1 -1
- package/dist/cdn/{OWTDESPZ.js → OQZBAWVC.js} +1 -1
- package/dist/cdn/{35FGLAKV.js → P4ZZY7IW.js} +1 -1
- package/dist/cdn/{7LRO7RMI.js → PFRK5465.js} +11 -5
- package/dist/cdn/{NNTJCO7Q.js → PO4LLHQE.js} +1 -1
- package/dist/cdn/{53QDB3IL.js → QJGDTSOH.js} +1 -1
- package/dist/cdn/{IYGUWGB6.js → QNI5OMGX.js} +1 -1
- package/dist/cdn/RICBVTMN.js +2 -0
- package/dist/cdn/{YHVWLHT7.js → ROH4QPZI.js} +1 -1
- package/dist/cdn/{R7TVVBB7.js → TLIZYLM2.js} +1 -1
- package/dist/cdn/{NLNJYC2E.js → TZEMRMGW.js} +1 -1
- package/dist/cdn/{IBDFXE7F.js → UZWDIHM7.js} +1 -1
- package/dist/cdn/{ISB65KPT.js → VBHRSNOL.js} +1 -1
- package/dist/cdn/{7HCS3J2W.js → VMTV5CBU.js} +1 -1
- package/dist/cdn/{CAXYDF5R.js → WEMAQZCY.js} +1 -1
- package/dist/cdn/{DHBBU7AG.js → WN37QN4E.js} +1 -1
- package/dist/cdn/{KDGGKNBV.js → XJ7KF4OJ.js} +1 -1
- package/dist/cdn/{3TCYZ5OB.js → XLJBOHXR.js} +10 -10
- package/dist/cdn/{OR2MF4BU.js → XQ4KCPRX.js} +1 -1
- package/dist/cdn/{FGMU7G6T.js → YHGIRUKH.js} +1 -1
- package/dist/cdn/YLV6SOAM.js +2 -0
- package/dist/cdn/{C72B5RSG.js → YVYDVSXP.js} +1 -1
- package/dist/cdn/{WORQWDJQ.js → Z5O5KIH5.js} +1 -1
- package/dist/cdn/{SAKNSC4M.js → ZOPR2Y4S.js} +1 -1
- package/dist/cdn/{XIFLK5EG.js → ZWD6ENTH.js} +1 -1
- package/dist/cdn/assets/common/t9n/messages.fr.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chart-rendering/common/interfaces.d.ts +65 -73
- package/dist/chunks/action-bar-utils.js +1 -1
- package/dist/chunks/axis-lines-symbol.js +20 -20
- package/dist/chunks/bar-chart-model.js +8 -8
- package/dist/chunks/box-plot-data.js +60 -60
- package/dist/chunks/box-plot-model.js +20 -20
- package/dist/chunks/chart-model.js +37 -37
- package/dist/chunks/chart-ui-utils2.js +1 -1
- package/dist/chunks/class-breaks.js +120 -122
- package/dist/chunks/combo-bar-line-chart-model.js +4 -4
- package/dist/chunks/data-labels-symbol.js +1 -1
- package/dist/chunks/data.js +11 -11
- package/dist/chunks/gauge-model.js +17 -17
- package/dist/chunks/generate-x-axis-title.js +4 -4
- package/dist/chunks/heat-chart-model.js +32 -20
- package/dist/chunks/histogram-data.js +7 -7
- package/dist/chunks/histogram-model.js +8 -8
- package/dist/chunks/index.js +336 -360
- package/dist/chunks/index2.js +49 -49
- package/dist/chunks/index3.js +3 -3
- package/dist/chunks/line-chart-model.js +6 -6
- package/dist/chunks/model-setter.js +3 -3
- package/dist/chunks/model-with-guides.js +15 -15
- package/dist/chunks/model-with-tooltips.js +8 -8
- package/dist/chunks/model-with-y-guides.js +12 -12
- package/dist/chunks/negative-values-stacked-to-baseline.js +1 -1
- package/dist/chunks/pie-chart-data.js +26 -26
- package/dist/chunks/pie-chart-model.js +22 -22
- package/dist/chunks/radar-chart-model.js +7 -7
- package/dist/chunks/rotated-state.js +1 -1
- package/dist/chunks/scatterplot-model.js +15 -15
- package/dist/chunks/serial-chart-data.js +162 -165
- package/dist/chunks/serial-chart-model.js +17 -17
- package/dist/chunks/series-length.js +1 -1
- package/dist/chunks/series.js +3 -3
- package/dist/chunks/utils.js +43 -43
- package/dist/chunks/utils2.js +5 -5
- package/dist/chunks/web-component-utils.js +175 -169
- package/dist/components/arcgis-chart/customElement.d.ts +4 -4
- package/dist/components/arcgis-chart/customElement.js +864 -847
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +8 -8
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +10 -10
- package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-font-style/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-format/customElement.js +42 -39
- package/dist/components/arcgis-charts-config-guide/customElement.js +8 -8
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +18 -18
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-histogram/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +7 -7
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-info-modal/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 +154 -153
- package/dist/interfaces.d.ts +6 -5
- package/dist/json-schema/index.d.ts +12 -20
- package/dist/model/heat-chart-model/heat-chart-model.d.ts +9 -1
- package/dist/spec/data-source.d.ts +26 -18
- package/dist/spec/events.d.ts +2 -5
- package/dist/spec/rest-js-types.d.ts +27 -9
- package/dist/utils/chart-config/converter/index.d.ts +7 -7
- package/dist/utils/chart-config/validator/index.d.ts +6 -4
- package/dist/utils/components/event-payloads.d.ts +3 -3
- package/dist/utils/data/index.d.ts +10 -1
- package/dist/utils/errors/index.d.ts +5 -5
- package/dist/utils/layer/index.d.ts +2 -2
- package/dist/utils/layer/inline-conversion/index.d.ts +7 -8
- package/dist/utils/layer/interfaces.d.ts +3 -3
- package/dist/utils/layer/query-features/interfaces.d.ts +1 -1
- package/dist/utils/layer/query-parser/index.d.ts +1 -1
- package/dist/utils/layer/utils/index.d.ts +11 -5
- package/dist/utils/localization/index.d.ts +1 -1
- package/dist/utils/misc/index.d.ts +3 -3
- package/dist/utils/misc/interfaces.d.ts +7 -6
- package/dist/utils/types/index.d.ts +17 -17
- package/package.json +3 -3
- package/dist/cdn/3UBEHDWK.js +0 -2
- package/dist/cdn/CIW6WMFK.js +0 -4
- package/dist/cdn/DKC6E3QZ.js +0 -2
- package/dist/cdn/HTKSTR36.js +0 -2
- package/dist/cdn/KPBKHH3V.js +0 -2
- package/dist/cdn/LRATJMH3.js +0 -2
- package/dist/cdn/V65HT7NA.js +0 -2
- package/dist/cdn/WNZXN6Y2.js +0 -2
- package/dist/cdn/XNTLXVQF.js +0 -2
|
@@ -1,126 +1,127 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
2
|
-
import { W as
|
|
3
|
-
import { isEqual as
|
|
4
|
-
import { o as
|
|
2
|
+
import { W as P, w as U } from "./series-types.js";
|
|
3
|
+
import { isEqual as Y, capitalize as F, isNumber as A, zip as G } from "lodash-es";
|
|
4
|
+
import { o as T, bM as W, cH as X, di as c, ab as O, bB as h, dl as C, ay as w, bO as J, aj as B, by as ee, bz as K } from "./index.js";
|
|
5
5
|
import { b as R } from "./interfaces.js";
|
|
6
6
|
import { a as z } from "./common.js";
|
|
7
7
|
import "@arcgis/toolkit/type";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { g as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
8
|
+
import { R as te } from "./rest-js-object-literals.js";
|
|
9
|
+
import { j as oe, n as N, p as Z, o as I } from "./box-plot-data.js";
|
|
10
|
+
import { a as q } from "./series-length.js";
|
|
11
|
+
import { g as ie } from "./histogram-data.js";
|
|
12
|
+
import { g as ae, a as se, b as ne } from "./pie-chart-data.js";
|
|
13
|
+
import { R as re, S as le, T as ce } from "./serial-chart-data.js";
|
|
14
|
+
import { b as ue, g as Q } from "./data.js";
|
|
15
|
+
const Ve = [
|
|
16
|
+
P.BarSeries,
|
|
17
|
+
P.BoxPlotSeries,
|
|
18
|
+
P.LineSeries,
|
|
19
|
+
P.PieSeries,
|
|
20
|
+
P.HistogramSeries,
|
|
21
|
+
P.ScatterSeries
|
|
22
|
+
], ke = 1, Re = { PNG: "png" };
|
|
23
|
+
function de(n, e) {
|
|
24
|
+
return !Y(n, e);
|
|
24
25
|
}
|
|
25
|
-
function
|
|
26
|
-
return
|
|
26
|
+
function Ke(n, e) {
|
|
27
|
+
return de(n, e) || n !== e;
|
|
27
28
|
}
|
|
28
|
-
function
|
|
29
|
+
function fe(n) {
|
|
29
30
|
return (new Intl.NumberFormat(n, {
|
|
30
31
|
minimumFractionDigits: 1,
|
|
31
32
|
maximumFractionDigits: 1
|
|
32
33
|
}).formatToParts(1.1).find((r) => r.type === "decimal")?.value ?? ".") === "." ? "," : ";";
|
|
33
34
|
}
|
|
34
|
-
function
|
|
35
|
+
function me(n) {
|
|
35
36
|
return new Intl.NumberFormat(n, {
|
|
36
37
|
minimumFractionDigits: 1,
|
|
37
38
|
maximumFractionDigits: 1
|
|
38
39
|
}).formatToParts(1.1).find((t) => t.type === "decimal")?.value ?? ".";
|
|
39
40
|
}
|
|
40
|
-
const
|
|
41
|
+
const H = (n) => {
|
|
41
42
|
const { value: e, quoteAll: t = !1, locale: r } = n;
|
|
42
|
-
let
|
|
43
|
+
let i = e == null ? "" : String(e);
|
|
43
44
|
if (e === null)
|
|
44
|
-
|
|
45
|
+
i = "null";
|
|
45
46
|
else if (e === void 0)
|
|
46
|
-
|
|
47
|
+
i = "";
|
|
47
48
|
else if (typeof e == "number" && Number.isFinite(e) && r !== void 0) {
|
|
48
|
-
const
|
|
49
|
-
|
|
50
|
-
maximumFractionDigits:
|
|
49
|
+
const a = me(r), f = i.split(a)[1]?.length ?? 3;
|
|
50
|
+
i = new Intl.NumberFormat(r, {
|
|
51
|
+
maximumFractionDigits: f
|
|
51
52
|
}).format(e).replace(/\u202F/gu, " ");
|
|
52
53
|
}
|
|
53
|
-
return (t || /[",\r\n]/u.test(
|
|
54
|
+
return (t || /[",\r\n]/u.test(i)) && (i = `"${i.replace(/"/gu, '""')}"`), i;
|
|
54
55
|
};
|
|
55
|
-
function
|
|
56
|
-
const { columns: t, delimiter: r, includeHeader:
|
|
56
|
+
function Ne(n, e = {}) {
|
|
57
|
+
const { columns: t, delimiter: r, includeHeader: i = !0, quoteAll: o = !1, locale: a } = e, f = n.length === 0;
|
|
57
58
|
let l = "";
|
|
58
|
-
if (!
|
|
59
|
-
const
|
|
60
|
-
if (
|
|
61
|
-
`),
|
|
62
|
-
const y =
|
|
59
|
+
if (!f) {
|
|
60
|
+
const m = t ?? Object.keys(n[0]), x = [], g = r ?? fe(a ?? "en");
|
|
61
|
+
if (a !== void 0 && g !== "," && (l += `sep=${g}\r
|
|
62
|
+
`), i) {
|
|
63
|
+
const y = m.map((s) => H({ value: s, quoteAll: o, locale: a }));
|
|
63
64
|
x.push(y.join(g));
|
|
64
65
|
}
|
|
65
66
|
n.forEach((y) => {
|
|
66
|
-
const s =
|
|
67
|
+
const s = m.map((d) => H({ value: y[d], quoteAll: o, locale: a }));
|
|
67
68
|
x.push(s.join(g));
|
|
68
69
|
}), l += x.join(`\r
|
|
69
70
|
`);
|
|
70
71
|
}
|
|
71
72
|
return l;
|
|
72
73
|
}
|
|
73
|
-
function
|
|
74
|
-
const { rawData: e, config: t, layer: r, fieldList:
|
|
74
|
+
function Ie(n) {
|
|
75
|
+
const { rawData: e, config: t, layer: r, fieldList: i } = n;
|
|
75
76
|
let o = e;
|
|
76
77
|
if (t !== void 0 && Array.isArray(e) && e.length > 0) {
|
|
77
|
-
const
|
|
78
|
-
|
|
78
|
+
const a = U(t?.series);
|
|
79
|
+
a === P.HistogramSeries ? o = ye(t, e) : a === P.BarSeries || a === P.LineSeries || a === P.ComboLineAndBarSeries ? o = pe({
|
|
79
80
|
config: t,
|
|
80
81
|
rows: e,
|
|
81
82
|
layer: r,
|
|
82
|
-
fieldList:
|
|
83
|
-
}) :
|
|
83
|
+
fieldList: i
|
|
84
|
+
}) : a === P.PieSeries ? o = xe({
|
|
84
85
|
config: t,
|
|
85
86
|
rows: e,
|
|
86
87
|
layer: r,
|
|
87
|
-
fieldList:
|
|
88
|
-
}) :
|
|
88
|
+
fieldList: i
|
|
89
|
+
}) : a === P.BoxPlotSeries && (o = Be({
|
|
89
90
|
config: t,
|
|
90
91
|
rows: e,
|
|
91
|
-
fieldList:
|
|
92
|
+
fieldList: i
|
|
92
93
|
}));
|
|
93
94
|
}
|
|
94
95
|
return o;
|
|
95
96
|
}
|
|
96
|
-
function
|
|
97
|
-
const t =
|
|
98
|
-
return e.map((
|
|
99
|
-
const { minValue:
|
|
100
|
-
return x && (s[r] =
|
|
97
|
+
function ye(n, e) {
|
|
98
|
+
const t = ie(n), r = `${F(R.Min)} of ${t}`, i = `${F(R.Max)} of ${t}`, o = `${F(R.Count)} of ${t}`;
|
|
99
|
+
return e.map((a) => {
|
|
100
|
+
const { minValue: f, maxValue: l, count: m } = a, x = A(f), g = A(l), y = A(m), s = {};
|
|
101
|
+
return x && (s[r] = f.toFixed(2)), g && (s[i] = l.toFixed(2)), x && g && (s.Label = `${f.toFixed(2)} - ${l.toFixed(2)}`), y && (s[o] = m), s;
|
|
101
102
|
});
|
|
102
103
|
}
|
|
103
|
-
function
|
|
104
|
+
function ge(n, e, t) {
|
|
104
105
|
const r = Object.keys(n);
|
|
105
|
-
let
|
|
106
|
-
return t ?
|
|
106
|
+
let i = [];
|
|
107
|
+
return t ? i = t.map((o) => r.find((a) => a.toLowerCase().includes(o.toLowerCase())) || "") : i = r.filter((a) => a.toLowerCase().includes(e.toLowerCase())), i.filter((o) => o.trim() !== "");
|
|
107
108
|
}
|
|
108
|
-
function
|
|
109
|
-
const { config: e, rows: t, layer: r, fieldList:
|
|
109
|
+
function pe(n) {
|
|
110
|
+
const { config: e, rows: t, layer: r, fieldList: i } = n, o = ue(e), a = re(e), f = F(a), l = le(e), m = T(e.series), x = q(e), g = ce(e), { idField: y, isTraditionalTypeOID: s } = W(X(r)), d = s && l.length === 1 && l[0] === y;
|
|
110
111
|
let u;
|
|
111
|
-
switch (
|
|
112
|
+
switch (m) {
|
|
112
113
|
case c.BarAndLineNoAggregation:
|
|
113
114
|
u = t.map((p) => {
|
|
114
|
-
const b =
|
|
115
|
+
const b = D({
|
|
115
116
|
field: o,
|
|
116
117
|
value: p[o],
|
|
117
|
-
fieldList:
|
|
118
|
+
fieldList: i
|
|
118
119
|
}), S = { [o]: b };
|
|
119
120
|
return Object.assign(S, ...l.map(($) => ({ [$]: p[$] }))), S;
|
|
120
121
|
});
|
|
121
122
|
break;
|
|
122
123
|
case c.BarAndLineFromFields:
|
|
123
|
-
u =
|
|
124
|
+
u = G(l, t).map(([p, b]) => {
|
|
124
125
|
const S = O(e.series)[0], $ = {};
|
|
125
126
|
return b !== void 0 && p !== void 0 && ($.Field = b[o], $.Value = b[S]), $;
|
|
126
127
|
});
|
|
@@ -128,49 +129,49 @@ function ye(n) {
|
|
|
128
129
|
case c.BarAndLineMonoField:
|
|
129
130
|
case c.BarAndLineMultiFields:
|
|
130
131
|
u = t.map((p) => {
|
|
131
|
-
const b =
|
|
132
|
+
const b = D({
|
|
132
133
|
field: o,
|
|
133
134
|
value: p[o],
|
|
134
|
-
fieldList:
|
|
135
|
+
fieldList: i
|
|
135
136
|
}), S = { [o]: b };
|
|
136
|
-
return l.forEach(($,
|
|
137
|
-
const
|
|
137
|
+
return l.forEach(($, v) => {
|
|
138
|
+
const V = Q({
|
|
138
139
|
config: e,
|
|
139
140
|
xAxisField: o,
|
|
140
141
|
numericFields: l,
|
|
141
|
-
aggregationType:
|
|
142
|
+
aggregationType: a,
|
|
142
143
|
layer: r,
|
|
143
|
-
numericFieldIndex:
|
|
144
|
-
fieldList:
|
|
145
|
-
}),
|
|
146
|
-
let j =
|
|
147
|
-
|
|
144
|
+
numericFieldIndex: v,
|
|
145
|
+
fieldList: i
|
|
146
|
+
}), k = O(e.series)[v];
|
|
147
|
+
let j = k, _ = k;
|
|
148
|
+
k.toLowerCase() === V.name.toLowerCase() && (j = V.description, _ = V.name), S[j] = p[_];
|
|
148
149
|
}), S;
|
|
149
150
|
});
|
|
150
151
|
break;
|
|
151
152
|
case c.BarAndLineSplitBy:
|
|
152
153
|
u = t.flatMap((p) => {
|
|
153
|
-
const b = O(e.series), S =
|
|
154
|
+
const b = O(e.series), S = D({
|
|
154
155
|
field: o,
|
|
155
156
|
value: p[o],
|
|
156
|
-
fieldList:
|
|
157
|
+
fieldList: i
|
|
157
158
|
});
|
|
158
159
|
return x.map(
|
|
159
|
-
($,
|
|
160
|
+
($, v) => ({
|
|
160
161
|
[o]: S,
|
|
161
162
|
[g]: $,
|
|
162
|
-
[d ?
|
|
163
|
+
[d ? f : `${f} of ${l[0]}`]: p[b[v]]
|
|
163
164
|
})
|
|
164
165
|
);
|
|
165
166
|
});
|
|
166
167
|
break;
|
|
167
168
|
case c.BarAndLineSplitByNoAggregation:
|
|
168
169
|
u = t.map((p) => {
|
|
169
|
-
const b =
|
|
170
|
+
const b = D({
|
|
170
171
|
field: o,
|
|
171
172
|
value: p[o],
|
|
172
|
-
fieldList:
|
|
173
|
-
}), S =
|
|
173
|
+
fieldList: i
|
|
174
|
+
}), S = ge(p, l[0], x);
|
|
174
175
|
return {
|
|
175
176
|
[o]: b,
|
|
176
177
|
[g]: p[g],
|
|
@@ -183,145 +184,145 @@ function ye(n) {
|
|
|
183
184
|
}
|
|
184
185
|
return u;
|
|
185
186
|
}
|
|
186
|
-
function
|
|
187
|
+
function Fe(n) {
|
|
187
188
|
if (n.length === 0)
|
|
188
189
|
return [];
|
|
189
|
-
const
|
|
190
|
-
for (const [
|
|
191
|
-
typeof
|
|
192
|
-
return
|
|
190
|
+
const e = n.reduce((t, r) => {
|
|
191
|
+
for (const [i, o] of Object.entries(r))
|
|
192
|
+
typeof o == "number" && Number.isFinite(o) && (t[i] = (t[i] ?? 0) + o);
|
|
193
|
+
return t;
|
|
193
194
|
}, {});
|
|
194
|
-
return n.map((
|
|
195
|
-
const
|
|
196
|
-
for (const [
|
|
197
|
-
if (typeof
|
|
198
|
-
const
|
|
199
|
-
|
|
195
|
+
return n.map((t) => {
|
|
196
|
+
const r = { ...t };
|
|
197
|
+
for (const [i, o] of Object.entries(t))
|
|
198
|
+
if (typeof o == "number" && e[i] > 0) {
|
|
199
|
+
const a = o / e[i];
|
|
200
|
+
r[`${i}${h}`] = a.toPrecision(2);
|
|
200
201
|
}
|
|
201
|
-
return
|
|
202
|
+
return r;
|
|
202
203
|
});
|
|
203
204
|
}
|
|
204
|
-
function
|
|
205
|
-
const { config: e, rows: t, layer: r, fieldList:
|
|
206
|
-
let
|
|
207
|
-
const l =
|
|
205
|
+
function xe(n) {
|
|
206
|
+
const { config: e, rows: t, layer: r, fieldList: i } = n, o = ae(e), a = T(e.series);
|
|
207
|
+
let f = Fe(t);
|
|
208
|
+
const l = se(e), m = a !== c.PieFromFields ? z.Category : z.Fields, x = ne(e, m), g = Q({
|
|
208
209
|
config: e,
|
|
209
210
|
xAxisField: o,
|
|
210
211
|
numericFields: l,
|
|
211
212
|
aggregationType: x,
|
|
212
|
-
mode:
|
|
213
|
+
mode: m,
|
|
213
214
|
layer: r,
|
|
214
|
-
fieldList:
|
|
215
|
+
fieldList: i
|
|
215
216
|
}), y = O(e.series)[0];
|
|
216
|
-
return
|
|
217
|
-
const d =
|
|
217
|
+
return a === c.PieFromCategory || a === c.PieNoAggregation ? f = f.map((s) => {
|
|
218
|
+
const d = D({
|
|
218
219
|
field: o,
|
|
219
220
|
value: s[o],
|
|
220
|
-
fieldList:
|
|
221
|
+
fieldList: i
|
|
221
222
|
}), u = { [o]: d };
|
|
222
223
|
let p = y, b = y;
|
|
223
|
-
return
|
|
224
|
-
}) :
|
|
224
|
+
return a === c.PieFromCategory && y.toLowerCase() === g.name.toLowerCase() && (p = g.description, b = g.name), u[p] = s[b], u[F(h.trim())] = s[`${b}${h}`], u;
|
|
225
|
+
}) : a === c.PieFromFields && (f = G(l, f).map(([s, d]) => {
|
|
225
226
|
const u = {};
|
|
226
227
|
return d !== void 0 && s !== void 0 && (u.Field = d[o], u.Value = d[y], u[F(h.trim())] = d[`${y}${h}`]), u;
|
|
227
|
-
})),
|
|
228
|
+
})), f;
|
|
228
229
|
}
|
|
229
230
|
function L(n) {
|
|
230
231
|
const { rawData: e, keyBase: t = "", outRow: r } = n;
|
|
231
|
-
for (const [
|
|
232
|
-
const
|
|
233
|
-
|
|
234
|
-
const
|
|
235
|
-
|
|
232
|
+
for (const [i, o] of Object.entries(B)) {
|
|
233
|
+
const a = e[t + o];
|
|
234
|
+
a !== void 0 && (r[i] = A(a) ? a.toFixed(2) : a);
|
|
235
|
+
const f = e[t + o + ee];
|
|
236
|
+
f !== void 0 && (r[`${i} Outlier`] = A(f) ? f.toFixed(2) : f);
|
|
236
237
|
const l = e[t + o + K];
|
|
237
|
-
l !== void 0 && (r[`${
|
|
238
|
+
l !== void 0 && (r[`${i} Z-Score`] = A(l) ? l.toFixed(2) : l);
|
|
238
239
|
}
|
|
239
240
|
}
|
|
240
|
-
function
|
|
241
|
-
const { rawData: e, outRow: t, config: r, boxPlotSubType:
|
|
242
|
-
let
|
|
243
|
-
const x =
|
|
244
|
-
switch (
|
|
241
|
+
function M(n) {
|
|
242
|
+
const { rawData: e, outRow: t, config: r, boxPlotSubType: i, fieldList: o } = n, a = N(r), f = Z(r), l = I(r);
|
|
243
|
+
let m = B.Outlier;
|
|
244
|
+
const x = w;
|
|
245
|
+
switch (i) {
|
|
245
246
|
case c.BoxPlotMonoFieldAndCategory: {
|
|
246
|
-
const s =
|
|
247
|
-
field:
|
|
248
|
-
value: e[
|
|
247
|
+
const s = D({
|
|
248
|
+
field: a,
|
|
249
|
+
value: e[a],
|
|
249
250
|
fieldList: o
|
|
250
251
|
});
|
|
251
|
-
t[
|
|
252
|
+
t[a] = s, t[F(B.Outlier)] = e[m];
|
|
252
253
|
break;
|
|
253
254
|
}
|
|
254
255
|
case c.BoxPlotMultiFieldsAndCategory: {
|
|
255
|
-
t[F(
|
|
256
|
+
t[F(a)] = e[a], m = `${f.find(
|
|
256
257
|
(d) => Object.keys(e).some((u) => u.toLowerCase().includes(d.toLowerCase()))
|
|
257
|
-
) ?? ""}_${
|
|
258
|
+
) ?? ""}_${m}`, t[F(B.Outlier)] = e[m];
|
|
258
259
|
break;
|
|
259
260
|
}
|
|
260
261
|
case c.BoxPlotMonoFieldAndSplitBy:
|
|
261
262
|
case c.BoxPlotMultiFieldsAndSplitBy: {
|
|
262
263
|
const s = e[l];
|
|
263
|
-
|
|
264
|
+
m = `${s}_${m}`, t.Field = e[x], t[F(l)] = s, t[F(B.Outlier)] = e[m];
|
|
264
265
|
break;
|
|
265
266
|
}
|
|
266
267
|
case c.BoxPlotMonoFieldAndCategoryAndSplitBy: {
|
|
267
268
|
const s = e[l];
|
|
268
|
-
|
|
269
|
+
m = `${s}_${m}`, t[F(a)] = e[a], t[F(l)] = s, t[F(B.Outlier)] = e[m];
|
|
269
270
|
break;
|
|
270
271
|
}
|
|
271
272
|
case c.BoxPlotMonoField:
|
|
272
273
|
case c.BoxPlotMultiFields:
|
|
273
274
|
default: {
|
|
274
|
-
t.Field = e[x], t[F(
|
|
275
|
+
t.Field = e[x], t[F(B.Outlier)] = e[m];
|
|
275
276
|
break;
|
|
276
277
|
}
|
|
277
278
|
}
|
|
278
|
-
const g = `${
|
|
279
|
-
y !== void 0 && (t[`${F(
|
|
279
|
+
const g = `${m}${K}`, y = e[g];
|
|
280
|
+
y !== void 0 && (t[`${F(B.Outlier)} Z-Score`] = A(y) ? y.toFixed(2) : y);
|
|
280
281
|
}
|
|
281
|
-
function
|
|
282
|
-
const { rawData: e, outRow: t, config: r, splitByValue:
|
|
283
|
-
let
|
|
282
|
+
function be(n) {
|
|
283
|
+
const { rawData: e, outRow: t, config: r, splitByValue: i } = n, o = T(r.series), a = e[`${i}_${B.Average}`], f = I(r), l = N(r);
|
|
284
|
+
let m = "";
|
|
284
285
|
switch (o) {
|
|
285
286
|
case c.BoxPlotMonoFieldAndSplitBy: {
|
|
286
|
-
|
|
287
|
+
m = `${i}_${f}`, t.Field = e[w], t[F(f)] = e[m];
|
|
287
288
|
break;
|
|
288
289
|
}
|
|
289
290
|
case c.BoxPlotMultiFieldsAndSplitBy: {
|
|
290
|
-
|
|
291
|
+
m = `${i}_${B.Average}`, t.Field = e[w], t[F(f)] = e[m];
|
|
291
292
|
break;
|
|
292
293
|
}
|
|
293
294
|
case c.BoxPlotMonoFieldAndCategoryAndSplitBy: {
|
|
294
|
-
|
|
295
|
+
m = `${i}_${B.Average}`, t[l] = e[l], t[F(f)] = i;
|
|
295
296
|
break;
|
|
296
297
|
}
|
|
297
298
|
}
|
|
298
|
-
t[F(
|
|
299
|
-
const x = `${
|
|
300
|
-
g !== void 0 && (t[`${F(
|
|
299
|
+
t[F(B.Average)] = A(a) ? a.toFixed(2) : a;
|
|
300
|
+
const x = `${a}${K}`, g = e[x];
|
|
301
|
+
g !== void 0 && (t[`${F(B.Average)} Z-Score`] = A(g) ? g.toFixed(2) : g);
|
|
301
302
|
}
|
|
302
|
-
function
|
|
303
|
-
const { config: e, rows: t, fieldList: r } = n,
|
|
304
|
-
let o =
|
|
305
|
-
const
|
|
306
|
-
|
|
307
|
-
const l = N(e),
|
|
303
|
+
function Be(n) {
|
|
304
|
+
const { config: e, rows: t, fieldList: r } = n, i = T(e.series);
|
|
305
|
+
let o = i;
|
|
306
|
+
const a = oe(e), f = Array.isArray(t) && t.length > 0 && t.every((s) => s[C.boxPlot.boxPlotMeanLineMarkerId] !== void 0);
|
|
307
|
+
a && !f && (i === c.BoxPlotMonoFieldAndSplitBy ? o = c.BoxPlotMonoField : i === c.BoxPlotMultiFieldsAndSplitBy ? o = c.BoxPlotMultiFields : i === c.BoxPlotMonoFieldAndCategoryAndSplitBy && (o = c.BoxPlotMonoFieldAndCategory));
|
|
308
|
+
const l = N(e), m = Z(e), x = q(e), g = I(e);
|
|
308
309
|
let y;
|
|
309
310
|
switch (o) {
|
|
310
311
|
case c.BoxPlotMonoField:
|
|
311
312
|
case c.BoxPlotMonoFieldAndCategory: {
|
|
312
313
|
y = t.map((s) => {
|
|
313
314
|
const d = {};
|
|
314
|
-
if (s[
|
|
315
|
-
|
|
315
|
+
if (s[C.boxPlot.boxPlotOutlierId])
|
|
316
|
+
M({ rawData: s, outRow: d, config: e, boxPlotSubType: o });
|
|
316
317
|
else {
|
|
317
318
|
if (o === c.BoxPlotMonoFieldAndCategory) {
|
|
318
|
-
const u =
|
|
319
|
+
const u = D({
|
|
319
320
|
field: l,
|
|
320
321
|
value: s[l],
|
|
321
322
|
fieldList: r
|
|
322
323
|
});
|
|
323
324
|
d[l] = u;
|
|
324
|
-
} else o === c.BoxPlotMonoField && (d.Field = s[
|
|
325
|
+
} else o === c.BoxPlotMonoField && (d.Field = s[w]);
|
|
325
326
|
L({ rawData: s, outRow: d });
|
|
326
327
|
}
|
|
327
328
|
return d;
|
|
@@ -331,22 +332,22 @@ function xe(n) {
|
|
|
331
332
|
case c.BoxPlotMultiFields: {
|
|
332
333
|
y = t.flatMap((s) => {
|
|
333
334
|
const d = {};
|
|
334
|
-
return s[
|
|
335
|
+
return s[C.boxPlot.boxPlotOutlierId] ? M({
|
|
335
336
|
rawData: s,
|
|
336
337
|
outRow: d,
|
|
337
338
|
config: e,
|
|
338
339
|
boxPlotSubType: o
|
|
339
|
-
}) : (d.Field = s[
|
|
340
|
+
}) : (d.Field = s[w], L({ rawData: s, outRow: d })), [d];
|
|
340
341
|
});
|
|
341
342
|
break;
|
|
342
343
|
}
|
|
343
344
|
case c.BoxPlotMultiFieldsAndCategory: {
|
|
344
345
|
y = t.flatMap(
|
|
345
|
-
(s) =>
|
|
346
|
+
(s) => m.map((d) => {
|
|
346
347
|
const u = {};
|
|
347
348
|
let p = "";
|
|
348
|
-
if (u.Field = d, s[
|
|
349
|
-
|
|
349
|
+
if (u.Field = d, s[C.boxPlot.boxPlotOutlierId])
|
|
350
|
+
M({
|
|
350
351
|
rawData: s,
|
|
351
352
|
outRow: u,
|
|
352
353
|
config: e,
|
|
@@ -354,7 +355,7 @@ function xe(n) {
|
|
|
354
355
|
});
|
|
355
356
|
else {
|
|
356
357
|
if (o === c.BoxPlotMultiFieldsAndCategory) {
|
|
357
|
-
const b =
|
|
358
|
+
const b = D({
|
|
358
359
|
field: l,
|
|
359
360
|
value: s[l],
|
|
360
361
|
fieldList: r
|
|
@@ -372,17 +373,17 @@ function xe(n) {
|
|
|
372
373
|
case c.BoxPlotMultiFieldsAndSplitBy:
|
|
373
374
|
case c.BoxPlotMonoFieldAndCategoryAndSplitBy: {
|
|
374
375
|
y = t.flatMap((s) => {
|
|
375
|
-
if (s[
|
|
376
|
+
if (s[C.boxPlot.boxPlotOutlierId]) {
|
|
376
377
|
const d = {};
|
|
377
|
-
return
|
|
378
|
+
return M({
|
|
378
379
|
rawData: s,
|
|
379
380
|
outRow: d,
|
|
380
381
|
config: e,
|
|
381
382
|
boxPlotSubType: o
|
|
382
383
|
}), [d];
|
|
383
|
-
} else return s[
|
|
384
|
+
} else return s[C.boxPlot.boxPlotMeanLineMarkerId] ? x?.map((d) => {
|
|
384
385
|
const u = {};
|
|
385
|
-
return
|
|
386
|
+
return be({
|
|
386
387
|
rawData: s,
|
|
387
388
|
outRow: u,
|
|
388
389
|
splitByValue: d,
|
|
@@ -391,14 +392,14 @@ function xe(n) {
|
|
|
391
392
|
}) : x.map((d) => {
|
|
392
393
|
const u = {};
|
|
393
394
|
if (o === c.BoxPlotMonoFieldAndCategoryAndSplitBy) {
|
|
394
|
-
const p =
|
|
395
|
+
const p = D({
|
|
395
396
|
field: l,
|
|
396
397
|
value: s[l],
|
|
397
398
|
fieldList: r
|
|
398
399
|
});
|
|
399
400
|
u[l] = p;
|
|
400
401
|
}
|
|
401
|
-
return s[
|
|
402
|
+
return s[C.boxPlot.boxPlotOutlierId] ? M({
|
|
402
403
|
rawData: s,
|
|
403
404
|
outRow: u,
|
|
404
405
|
config: e,
|
|
@@ -413,25 +414,30 @@ function xe(n) {
|
|
|
413
414
|
}
|
|
414
415
|
return y;
|
|
415
416
|
}
|
|
416
|
-
const
|
|
417
|
+
const E = (n) => {
|
|
417
418
|
let e = !1;
|
|
418
419
|
return (typeof n == "string" || typeof n == "number") && (e = !Number.isNaN(new Date(n).getTime())), e;
|
|
419
|
-
},
|
|
420
|
+
}, D = (n) => {
|
|
420
421
|
const { field: e, value: t, fieldList: r } = n;
|
|
421
|
-
let
|
|
422
|
-
|
|
422
|
+
let i = t;
|
|
423
|
+
const o = r?.find((a) => a.name === e);
|
|
424
|
+
if (o) {
|
|
425
|
+
const a = o.type === te.DateOnly;
|
|
426
|
+
J(o) && !a ? i = E(t) ? new Date(t).toISOString() : t : a && typeof t != "string" && (i = E(t) ? new Date(t).toISOString().split("T")[0] : t);
|
|
427
|
+
}
|
|
428
|
+
return i;
|
|
423
429
|
};
|
|
424
|
-
function
|
|
430
|
+
function je() {
|
|
425
431
|
const n = () => ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
|
|
426
432
|
return `${n() + n()}-${n()}-${n()}-${n()}-${n()}${n()}${n()}`;
|
|
427
433
|
}
|
|
428
434
|
export {
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
435
|
+
Re as D,
|
|
436
|
+
de as a,
|
|
437
|
+
Ne as b,
|
|
438
|
+
je as g,
|
|
439
|
+
Ke as h,
|
|
440
|
+
ke as m,
|
|
441
|
+
Ve as s,
|
|
442
|
+
Ie as t
|
|
437
443
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
|
-
import type MapView from "@arcgis/core/views/MapView";
|
|
3
|
-
import type SceneView from "@arcgis/core/views/SceneView";
|
|
4
|
-
import type FeatureLayerView from "@arcgis/core/views/layers/FeatureLayerView";
|
|
5
|
-
import type { DOMContainerAria } from "@arcgis/core/views/DOMContainer";
|
|
2
|
+
import type MapView from "@arcgis/core/views/MapView.js";
|
|
3
|
+
import type SceneView from "@arcgis/core/views/SceneView.js";
|
|
4
|
+
import type FeatureLayerView from "@arcgis/core/views/layers/FeatureLayerView.js";
|
|
5
|
+
import type { DOMContainerAria } from "@arcgis/core/views/DOMContainer.js";
|
|
6
6
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
7
7
|
import type { AxisLabelFormatCallback, ChartOptions, GaugeInnerLabelFormatCallback, GuideTooltipFormatCallback, PieChartLegendValueLabelFormatCallback, PreRenderCallback } from "../../chart-rendering/common/interfaces.js";
|
|
8
8
|
import type { CSVOptions, SupportedLayer } from "../../interfaces.js";
|