@arcgis/charts-components 5.2.0-next.25 → 5.2.0-next.27
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/{MVNNQWQB.js → 2CCG5VRK.js} +1 -1
- package/dist/cdn/{JF7YQCM6.js → 2VERKODU.js} +1 -1
- package/dist/cdn/{2V4LOGZL.js → 3FDSEXHU.js} +1 -1
- package/dist/cdn/{DNSJAZKI.js → 3HT2XHTE.js} +1 -1
- package/dist/cdn/{BFIXNPQC.js → 3M2I2DRI.js} +1 -1
- package/dist/cdn/{U6MMH2LR.js → 3QFCHMXP.js} +1 -1
- package/dist/cdn/4UG5VYOC.js +2 -0
- package/dist/cdn/{YL45GUSC.js → 4X7O5PV4.js} +1 -1
- package/dist/cdn/{NUIBH3VT.js → 525WSDKI.js} +1 -1
- package/dist/cdn/{NOAJPX72.js → 54F7CW76.js} +1 -1
- package/dist/cdn/{L6NNUSXU.js → 54UV746F.js} +1 -1
- package/dist/cdn/{GOZIQ6A2.js → 5LVCC5LO.js} +1 -1
- package/dist/cdn/{ZERRCOSM.js → 6E2WAXRT.js} +1 -1
- package/dist/cdn/{LZMLIBIH.js → 6EX4GDM3.js} +1 -1
- package/dist/cdn/{5VQQA6MA.js → 6N4SYUQV.js} +1 -1
- package/dist/cdn/{S4SG2V5X.js → 6OC4X4GP.js} +1 -1
- package/dist/cdn/6WZLNZJI.js +2 -0
- package/dist/cdn/{XST7FY7F.js → 7UMBIDWG.js} +1 -1
- package/dist/cdn/{NUK4NPOT.js → 7ZQHAWKS.js} +1 -1
- package/dist/cdn/{YPRIULPN.js → A3DHDZLR.js} +1 -1
- package/dist/cdn/{IOAD36KI.js → ATQN27OC.js} +1 -1
- package/dist/cdn/BFVFX476.js +3 -0
- package/dist/cdn/{S6SBVFMN.js → BRG2PBG4.js} +1 -1
- package/dist/cdn/{RAUYMTSM.js → CEBE6KZ5.js} +1 -1
- package/dist/cdn/{GQK23IL4.js → CTTLJGLV.js} +1 -1
- package/dist/cdn/{O6CSF6KG.js → D2LXXBP5.js} +1 -1
- package/dist/cdn/{NDBH7YLO.js → DEN7277X.js} +1 -1
- package/dist/cdn/{6VDLIICW.js → DINELIBX.js} +1 -1
- package/dist/cdn/{CTXTTI3G.js → DL77MIWY.js} +1 -1
- package/dist/cdn/{QUR7IUKK.js → E4OZ432W.js} +1 -1
- package/dist/cdn/{C3MXUPEW.js → EA7AXGJI.js} +1 -1
- package/dist/cdn/{LVSNOD77.js → EJEUMMWZ.js} +1 -1
- package/dist/cdn/{APNALJWN.js → F5NJPXUK.js} +1 -1
- package/dist/cdn/{QSH4RLKM.js → FAOLLBXF.js} +1 -1
- package/dist/cdn/{XX6OXKZK.js → FSJ6RT4T.js} +1 -1
- package/dist/cdn/{GZU5HJCQ.js → FVGXWZBY.js} +1 -1
- package/dist/cdn/{GP5MHPDX.js → H4VTKKBN.js} +1 -1
- package/dist/cdn/{NNP7U57T.js → HFCAMEBX.js} +1 -1
- package/dist/cdn/{WHBJYAT4.js → HOZ4AHQR.js} +1 -1
- package/dist/cdn/{G5TRNV2I.js → HWUT7IFD.js} +1 -1
- package/dist/cdn/{KXKOTDCQ.js → HYDDSP4M.js} +1 -1
- package/dist/cdn/{UV5LIHCE.js → I4CGHGFK.js} +1 -1
- package/dist/cdn/{QQSX47ZE.js → I4NVKM3H.js} +1 -1
- package/dist/cdn/{TLP2PMYA.js → ICFXSFV6.js} +1 -1
- package/dist/cdn/{3XMGXTZB.js → JAJUMMUL.js} +1 -1
- package/dist/cdn/{5M57QONK.js → JIHUDUXV.js} +1 -1
- package/dist/cdn/{ZX4AZXEF.js → JPNGKMXS.js} +1 -1
- package/dist/cdn/{J72BLOD2.js → K2H47DLO.js} +1 -1
- package/dist/cdn/{YNHUPD3J.js → K473JQIX.js} +1 -1
- package/dist/cdn/{T5NY73Y2.js → LLICYFCD.js} +1 -1
- package/dist/cdn/{CU56A45C.js → MMPHPV2C.js} +1 -1
- package/dist/cdn/{6UVZ3NXS.js → MP4N4SFB.js} +1 -1
- package/dist/cdn/{KOKJLIPK.js → ODTCEPEL.js} +1 -1
- package/dist/cdn/{W6CKM3J3.js → OOVQ6IVC.js} +1 -1
- package/dist/cdn/{YPFJW7NS.js → OPMJTZOV.js} +1 -1
- package/dist/cdn/{XNJIGVQJ.js → OZEARYZA.js} +1 -1
- package/dist/cdn/{LHGLUPW5.js → PA5GXXDY.js} +1 -1
- package/dist/cdn/{KCJKQ44K.js → PHAOZ7SV.js} +1 -1
- package/dist/cdn/{OLPU6MNA.js → POPYMWVR.js} +1 -1
- package/dist/cdn/{FP72YYAO.js → Q5VREFP6.js} +1 -1
- package/dist/cdn/{MSN54T3T.js → QGJNZGQX.js} +1 -1
- package/dist/cdn/{OFP7FIPS.js → R4F7L2HV.js} +1 -1
- package/dist/cdn/{NNP5LCX5.js → RFU52ORA.js} +1 -1
- package/dist/cdn/{OQWDZSTM.js → RKZ2IOOP.js} +1 -1
- package/dist/cdn/{KXGVMPQJ.js → RMF3UYFS.js} +1 -1
- package/dist/cdn/{G7SXRDMI.js → S44GNLAE.js} +1 -1
- package/dist/cdn/{F2N6CMAL.js → S6MDSIET.js} +1 -1
- package/dist/cdn/SBP4RBXK.js +4 -0
- package/dist/cdn/{MDMUNG7R.js → SZ3VH4UZ.js} +1 -1
- package/dist/cdn/{A3TAYUWE.js → TR4ULKH5.js} +1 -1
- package/dist/cdn/{UYKZWTFH.js → TYJZR25X.js} +1 -1
- package/dist/cdn/{7LGIXLPP.js → U35HGES6.js} +1 -1
- package/dist/cdn/{WHLDUYAG.js → UU2LYQUI.js} +1 -1
- package/dist/cdn/{U7ZGT3IG.js → VQFCYPDR.js} +1 -1
- package/dist/cdn/{AQIUPTKW.js → VRF5VORO.js} +19 -19
- package/dist/cdn/{FRSKVY2N.js → WF76CIN2.js} +1 -1
- package/dist/cdn/{YMFG2IVU.js → WINZ53K3.js} +1 -1
- package/dist/cdn/{EUGGSDEV.js → YFYTXRLW.js} +1 -1
- package/dist/cdn/{6RD22S75.js → ZO27SWFU.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/heat-chart-model.js +46 -26
- package/dist/chunks/index2.js +376 -374
- package/dist/chunks/model-with-y-guides.js +6 -6
- package/dist/chunks/serial-chart-data.js +63 -62
- package/dist/chunks/serial-chart-model.js +107 -92
- package/dist/chunks/web-component-utils.js +414 -384
- package/dist/components/arcgis-chart/customElement.js +1984 -1980
- 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/heat-chart-model/heat-chart-model.d.ts +22 -0
- package/dist/model/mixins/model-with-multi-axes.d.ts +22 -22
- package/dist/model/serial-chart-model/serial-chart-model.d.ts +15 -0
- package/dist/utils/data/index.d.ts +1 -1
- package/package.json +3 -3
- package/dist/cdn/3RA3JNKB.js +0 -3
- package/dist/cdn/7WMOXCPU.js +0 -2
- package/dist/cdn/JGSF55NE.js +0 -2
- package/dist/cdn/RBAE74TA.js +0 -4
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { isEqual as
|
|
2
|
+
import { isEqual as ue, capitalize as v, isNumber as W, zip as ae } from "lodash-es";
|
|
3
3
|
import { d as Y } from "./interfaces.js";
|
|
4
|
-
import { g as
|
|
5
|
-
import { g as
|
|
6
|
-
import { g as
|
|
7
|
-
import { g as
|
|
8
|
-
import { g as
|
|
9
|
-
import { g as z, a as
|
|
10
|
-
import { Y as
|
|
11
|
-
import { j as H, av as
|
|
12
|
-
import { q as
|
|
13
|
-
import { g as
|
|
14
|
-
import { V as
|
|
15
|
-
import { DateTime as
|
|
4
|
+
import { g as ce, a as q, b as oe, c as _ } from "./box-plot-data.js";
|
|
5
|
+
import { g as fe } from "./histogram-data.js";
|
|
6
|
+
import { g as me, a as de, b as ye } from "./pie-chart-data.js";
|
|
7
|
+
import { g as ie } from "./series-length.js";
|
|
8
|
+
import { g as re, d as le, e as ge } from "./serial-chart-data.js";
|
|
9
|
+
import { g as z, a as pe } from "./data.js";
|
|
10
|
+
import { Y as U, an as be, af as xe, aK as E, cj as Fe, B as V, a6 as De, bb as Se, d3 as ve } from "./index2.js";
|
|
11
|
+
import { j as H, av as $, g as R, ap as Be, b as he, a as Q } from "./index.js";
|
|
12
|
+
import { q as K, C as g, F as A } from "./index3.js";
|
|
13
|
+
import { g as Pe } from "./series-types.js";
|
|
14
|
+
import { V as Ve } from "./index6.js";
|
|
15
|
+
import { DateTime as ne } from "luxon";
|
|
16
16
|
import { P as X } from "./common.js";
|
|
17
|
-
import { u as
|
|
18
|
-
import { R as
|
|
19
|
-
function
|
|
17
|
+
import { u as k, d as L } from "./chart-object-literals.js";
|
|
18
|
+
import { R as Ce } from "./rest-js-object-literals.js";
|
|
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",
|
|
22
22
|
minute: "2-digit",
|
|
@@ -29,7 +29,7 @@ function Ce(l) {
|
|
|
29
29
|
}
|
|
30
30
|
return r;
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function Ae(l) {
|
|
33
33
|
const { weekdayNumber: e, format: t, locale: a = "en-US", firstDayOfWeek: o = 7 } = l, i = t && Object.keys(t).length > 0 ? t : { weekday: "long" };
|
|
34
34
|
let r = e.toString();
|
|
35
35
|
if (Number.isInteger(e) && e > 0 && e <= 7 && Number.isInteger(o) && o > 0 && o <= 7) {
|
|
@@ -38,7 +38,7 @@ function Le(l) {
|
|
|
38
38
|
}
|
|
39
39
|
return r;
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Oe(l) {
|
|
42
42
|
const { monthNumber: e, format: t, locale: a = "en-US" } = l, o = t && Object.keys(t).length > 0 ? t : { month: "long" };
|
|
43
43
|
let i = e.toString();
|
|
44
44
|
if (Number.isInteger(e) && e > 0 && e <= 12) {
|
|
@@ -47,64 +47,64 @@ function Ae(l) {
|
|
|
47
47
|
}
|
|
48
48
|
return i;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function G(l) {
|
|
51
51
|
const { value: e, formatLocale: t, unit: a, config: o, utilsStrings: i } = l;
|
|
52
52
|
let r = { label: "", value: e.toString() };
|
|
53
53
|
switch (a) {
|
|
54
|
-
case
|
|
54
|
+
case L.DayOfWeek:
|
|
55
55
|
r = {
|
|
56
56
|
label: i.heatChartCalendarDatePartsUnits.dayOfWeek,
|
|
57
|
-
value:
|
|
57
|
+
value: Ae({
|
|
58
58
|
weekdayNumber: e,
|
|
59
|
-
firstDayOfWeek: "firstDayOfWeek" in o ? o.firstDayOfWeek :
|
|
59
|
+
firstDayOfWeek: "firstDayOfWeek" in o ? o.firstDayOfWeek : Be,
|
|
60
60
|
locale: t
|
|
61
61
|
})
|
|
62
62
|
};
|
|
63
63
|
break;
|
|
64
|
-
case
|
|
64
|
+
case L.MonthOfYear:
|
|
65
65
|
r = {
|
|
66
66
|
label: i.heatChartCalendarDatePartsUnits.monthOfYear,
|
|
67
|
-
value:
|
|
67
|
+
value: Oe({
|
|
68
68
|
monthNumber: e,
|
|
69
69
|
locale: t
|
|
70
70
|
})
|
|
71
71
|
};
|
|
72
72
|
break;
|
|
73
|
-
case
|
|
73
|
+
case L.HourOfDay:
|
|
74
74
|
r = {
|
|
75
75
|
label: i.heatChartCalendarDatePartsUnits.hourOfDay,
|
|
76
|
-
value:
|
|
76
|
+
value: Le({
|
|
77
77
|
hour: e,
|
|
78
78
|
format: { hour: "numeric", hour12: !1 },
|
|
79
79
|
locale: t
|
|
80
80
|
})
|
|
81
81
|
};
|
|
82
82
|
break;
|
|
83
|
-
case
|
|
83
|
+
case L.DayOfMonth:
|
|
84
84
|
r = {
|
|
85
85
|
label: i.heatChartCalendarDatePartsUnits.dayOfMonth,
|
|
86
86
|
value: typeof e == "string" ? e : e?.toString() ?? ""
|
|
87
87
|
};
|
|
88
88
|
break;
|
|
89
|
-
case
|
|
89
|
+
case L.DayOfYear:
|
|
90
90
|
r = {
|
|
91
91
|
label: i.heatChartCalendarDatePartsUnits.dayOfYear,
|
|
92
92
|
value: typeof e == "string" ? e : e?.toString() ?? ""
|
|
93
93
|
};
|
|
94
94
|
break;
|
|
95
|
-
case
|
|
95
|
+
case L.MinuteOfDay:
|
|
96
96
|
r = {
|
|
97
97
|
label: i.heatChartCalendarDatePartsUnits.minuteOfDay,
|
|
98
98
|
value: typeof e == "string" ? e : e?.toString() ?? ""
|
|
99
99
|
};
|
|
100
100
|
break;
|
|
101
|
-
case
|
|
101
|
+
case L.WeekOfYear:
|
|
102
102
|
r = {
|
|
103
103
|
label: i.heatChartCalendarDatePartsUnits.weekOfYear,
|
|
104
104
|
value: typeof e == "string" ? e : e?.toString() ?? ""
|
|
105
105
|
};
|
|
106
106
|
break;
|
|
107
|
-
case
|
|
107
|
+
case L.QuarterOfYear:
|
|
108
108
|
r = {
|
|
109
109
|
label: i.heatChartCalendarDatePartsUnits.quarterOfYear,
|
|
110
110
|
value: typeof e == "string" ? e : e?.toString() ?? ""
|
|
@@ -113,25 +113,25 @@ function Z(l) {
|
|
|
113
113
|
}
|
|
114
114
|
return r;
|
|
115
115
|
}
|
|
116
|
-
function
|
|
117
|
-
return !
|
|
116
|
+
function Me(l, e) {
|
|
117
|
+
return !ue(l, e);
|
|
118
118
|
}
|
|
119
|
-
function
|
|
120
|
-
return
|
|
119
|
+
function ut(l, e) {
|
|
120
|
+
return Me(l, e) || l !== e;
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function we(l) {
|
|
123
123
|
return (new Intl.NumberFormat(l, {
|
|
124
124
|
minimumFractionDigits: 1,
|
|
125
125
|
maximumFractionDigits: 1
|
|
126
126
|
}).formatToParts(1.1).find((a) => a.type === "decimal")?.value ?? ".") === "." ? "," : ";";
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function ke(l) {
|
|
129
129
|
return new Intl.NumberFormat(l, {
|
|
130
130
|
minimumFractionDigits: 1,
|
|
131
131
|
maximumFractionDigits: 1
|
|
132
132
|
}).formatToParts(1.1).find((t) => t.type === "decimal")?.value ?? ".";
|
|
133
133
|
}
|
|
134
|
-
const
|
|
134
|
+
const J = (l) => {
|
|
135
135
|
const { value: e, quoteAll: t = !1, locale: a, roundDecimals: o } = l;
|
|
136
136
|
let i = e == null ? "" : String(e);
|
|
137
137
|
if (e === null)
|
|
@@ -139,120 +139,125 @@ const G = (l) => {
|
|
|
139
139
|
else if (e === void 0)
|
|
140
140
|
i = "";
|
|
141
141
|
else if (typeof e == "number" && Number.isFinite(e) && a !== void 0) {
|
|
142
|
-
const n =
|
|
142
|
+
const n = ke(a), s = o ?? i.split(n)[1]?.length ?? 2;
|
|
143
143
|
i = new Intl.NumberFormat(a, {
|
|
144
144
|
maximumFractionDigits: s
|
|
145
145
|
}).format(e).replace(/\u202F/gu, " ");
|
|
146
146
|
}
|
|
147
147
|
return (t || /[",\r\n]/u.test(i)) && (i = `"${i.replace(/"/gu, '""')}"`), i;
|
|
148
148
|
};
|
|
149
|
-
function
|
|
149
|
+
function ct(l, e = {}) {
|
|
150
150
|
const { columns: t, delimiter: a, includeHeader: o = !0, quoteAll: i = !1, locale: r, roundDecimals: n } = e, s = l.length === 0;
|
|
151
|
-
let
|
|
151
|
+
let c = "";
|
|
152
152
|
if (!s) {
|
|
153
|
-
const
|
|
154
|
-
if (r !== void 0 &&
|
|
153
|
+
const f = t ?? Object.keys(l[0]), u = [], p = a ?? we(r ?? "en");
|
|
154
|
+
if (r !== void 0 && p !== "," && (c += `sep=${p}\r
|
|
155
155
|
`), o) {
|
|
156
|
-
const
|
|
157
|
-
|
|
156
|
+
const B = f.map((b) => J({ value: b, quoteAll: i, locale: r, roundDecimals: n }));
|
|
157
|
+
u.push(B.join(p));
|
|
158
158
|
}
|
|
159
|
-
l.forEach((
|
|
160
|
-
const
|
|
161
|
-
|
|
162
|
-
}),
|
|
159
|
+
l.forEach((B) => {
|
|
160
|
+
const b = f.map((x) => J({ value: B[x], quoteAll: i, locale: r, roundDecimals: n }));
|
|
161
|
+
u.push(b.join(p));
|
|
162
|
+
}), c += u.join(`\r
|
|
163
163
|
`);
|
|
164
164
|
}
|
|
165
|
-
return
|
|
165
|
+
return c;
|
|
166
166
|
}
|
|
167
|
-
function
|
|
168
|
-
const { rawData: e, config: t, layer: a, fieldList: o, formatters: i, useRendererLabel: r,
|
|
169
|
-
let
|
|
167
|
+
function ft(l) {
|
|
168
|
+
const { rawData: e, config: t, layer: a, fieldList: o, formatters: i, useRendererLabel: r, timeZone: n, formatLocale: s, utilsStrings: c } = l;
|
|
169
|
+
let f = [];
|
|
170
170
|
if (t !== void 0 && Array.isArray(e) && e.length > 0) {
|
|
171
|
-
const
|
|
172
|
-
|
|
171
|
+
const u = Pe(t?.series);
|
|
172
|
+
u === k.HistogramSeries ? f = Re(
|
|
173
173
|
t,
|
|
174
174
|
e,
|
|
175
175
|
i
|
|
176
|
-
) :
|
|
176
|
+
) : u === k.HeatSeries ? f = Te({
|
|
177
177
|
config: t,
|
|
178
178
|
rows: e,
|
|
179
179
|
layer: a,
|
|
180
180
|
fieldList: o,
|
|
181
|
-
formatLocale:
|
|
182
|
-
utilsStrings:
|
|
183
|
-
}) :
|
|
181
|
+
formatLocale: s,
|
|
182
|
+
utilsStrings: c
|
|
183
|
+
}) : u === k.BarSeries || u === k.LineSeries || u === k.ComboLineAndBarSeries ? f = Ke({
|
|
184
184
|
config: t,
|
|
185
185
|
rows: e,
|
|
186
186
|
layer: a,
|
|
187
187
|
fieldList: o,
|
|
188
188
|
formatters: i,
|
|
189
|
-
useRendererLabel: r
|
|
190
|
-
|
|
189
|
+
useRendererLabel: r,
|
|
190
|
+
timeZone: n
|
|
191
|
+
}) : u === k.PieSeries ? f = Ee({
|
|
191
192
|
config: t,
|
|
192
193
|
rows: e,
|
|
193
194
|
layer: a,
|
|
194
195
|
fieldList: o,
|
|
195
196
|
formatters: i,
|
|
196
|
-
useRendererLabel: r
|
|
197
|
-
|
|
197
|
+
useRendererLabel: r,
|
|
198
|
+
timeZone: n
|
|
199
|
+
}) : u === k.BoxPlotSeries && (f = Ze({
|
|
198
200
|
config: t,
|
|
199
201
|
rows: e,
|
|
200
202
|
layer: a,
|
|
201
203
|
fieldList: o,
|
|
202
204
|
formatters: i,
|
|
203
|
-
useRendererLabel: r
|
|
205
|
+
useRendererLabel: r,
|
|
206
|
+
timeZone: n
|
|
204
207
|
}));
|
|
205
208
|
}
|
|
206
|
-
return
|
|
209
|
+
return f;
|
|
207
210
|
}
|
|
208
211
|
function h(l) {
|
|
209
212
|
const { value: e, originalValue: t, formatter: a } = l;
|
|
210
213
|
let o = e;
|
|
211
214
|
return a !== void 0 && (e === null || e instanceof Date || typeof e == "number" || typeof e == "string") && (o = a(e, t)), o;
|
|
212
215
|
}
|
|
213
|
-
function
|
|
214
|
-
const { field: e, value: t, dataContext: a, layer: o, fieldList: i, formatter: r } = l;
|
|
215
|
-
let
|
|
216
|
+
function M(l) {
|
|
217
|
+
const { field: e, value: t, dataContext: a, layer: o, fieldList: i, formatter: r, timeZone: n } = l;
|
|
218
|
+
let s;
|
|
216
219
|
if (t == null || typeof t == "boolean" || Array.isArray(t))
|
|
217
|
-
|
|
220
|
+
s = t;
|
|
218
221
|
else if (typeof t == "string" || typeof t == "number" || t instanceof Date) {
|
|
219
|
-
const
|
|
222
|
+
const f = Ne({
|
|
220
223
|
fieldName: e,
|
|
221
224
|
dataContext: a
|
|
222
|
-
}) ?? (o !== void 0 && (typeof t == "string" || typeof t == "number") ?
|
|
225
|
+
}) ?? (o !== void 0 && (typeof t == "string" || typeof t == "number") ? De({
|
|
223
226
|
queryObject: o,
|
|
224
227
|
fieldName: e,
|
|
225
228
|
fieldValue: t
|
|
226
229
|
}) : void 0);
|
|
227
|
-
|
|
230
|
+
s = se({
|
|
228
231
|
field: e,
|
|
229
|
-
value:
|
|
230
|
-
fieldList: i
|
|
232
|
+
value: f ?? t,
|
|
233
|
+
fieldList: i,
|
|
234
|
+
timeZone: n
|
|
231
235
|
});
|
|
232
236
|
} else
|
|
233
|
-
|
|
237
|
+
s = t;
|
|
234
238
|
return h({
|
|
235
|
-
value:
|
|
239
|
+
value: s,
|
|
236
240
|
originalValue: t,
|
|
237
241
|
formatter: r
|
|
238
242
|
});
|
|
239
243
|
}
|
|
240
|
-
function
|
|
241
|
-
const { field: e, row: t, layer: a, fieldList: o, formatter: i, useRendererLabel: r = !1 } = l,
|
|
242
|
-
value:
|
|
244
|
+
function O(l) {
|
|
245
|
+
const { field: e, row: t, layer: a, fieldList: o, formatter: i, useRendererLabel: r = !1, timeZone: n } = l, s = Object.keys(t).find((u) => u.toLocaleLowerCase() === e.toLocaleLowerCase()), c = t[s ?? e], f = Fe({
|
|
246
|
+
value: c,
|
|
243
247
|
dataContext: t,
|
|
244
248
|
useRendererLabel: r
|
|
245
249
|
});
|
|
246
|
-
return
|
|
250
|
+
return M({
|
|
247
251
|
field: e,
|
|
248
|
-
value:
|
|
252
|
+
value: f,
|
|
249
253
|
dataContext: t,
|
|
250
254
|
layer: a,
|
|
251
255
|
fieldList: o,
|
|
252
|
-
formatter: i
|
|
256
|
+
formatter: i,
|
|
257
|
+
timeZone: n
|
|
253
258
|
});
|
|
254
259
|
}
|
|
255
|
-
function
|
|
260
|
+
function $e(l, e) {
|
|
256
261
|
let t = !1;
|
|
257
262
|
if (l === e)
|
|
258
263
|
t = !0;
|
|
@@ -262,207 +267,214 @@ function ke(l, e) {
|
|
|
262
267
|
}
|
|
263
268
|
return t;
|
|
264
269
|
}
|
|
265
|
-
function
|
|
266
|
-
const { fieldName: e, dataContext: t } = l, a =
|
|
267
|
-
return e === a && t !== void 0 ?
|
|
270
|
+
function Ne(l) {
|
|
271
|
+
const { fieldName: e, dataContext: t } = l, a = A.rendererSymbolField;
|
|
272
|
+
return e === a && t !== void 0 ? ve(t) : void 0;
|
|
268
273
|
}
|
|
269
|
-
function
|
|
270
|
-
const { config: e, splitByField: t, splitByValue: a, splitByValueIndex: o, layer: i, fieldList: r } = l;
|
|
271
|
-
let
|
|
272
|
-
const
|
|
273
|
-
return
|
|
274
|
+
function ee(l) {
|
|
275
|
+
const { config: e, splitByField: t, splitByValue: a, splitByValueIndex: o, layer: i, fieldList: r, timeZone: n } = l;
|
|
276
|
+
let s;
|
|
277
|
+
const c = e.series[o ?? -1]?.name;
|
|
278
|
+
return c !== void 0 ? s = c : s = M({
|
|
274
279
|
field: t,
|
|
275
280
|
value: a,
|
|
276
281
|
layer: i,
|
|
277
|
-
fieldList: r
|
|
278
|
-
|
|
282
|
+
fieldList: r,
|
|
283
|
+
timeZone: n
|
|
284
|
+
}), s;
|
|
279
285
|
}
|
|
280
|
-
function
|
|
281
|
-
const { config: e, rows: t, layer: a, fieldList: o, formatLocale: i, utilsStrings: r } = l, [n] = e.series, s = n.x,
|
|
286
|
+
function Te(l) {
|
|
287
|
+
const { config: e, rows: t, layer: a, fieldList: o, formatLocale: i, utilsStrings: r } = l, [n] = e.series, s = n.x, c = re(e), f = le(e), u = z({
|
|
282
288
|
config: e,
|
|
283
289
|
xAxisField: s,
|
|
284
|
-
numericFields:
|
|
285
|
-
aggregationType:
|
|
290
|
+
numericFields: f,
|
|
291
|
+
aggregationType: c,
|
|
286
292
|
layer: a,
|
|
287
293
|
fieldList: o
|
|
288
294
|
});
|
|
289
|
-
return t.map((
|
|
290
|
-
const
|
|
291
|
-
let
|
|
295
|
+
return t.map((p) => {
|
|
296
|
+
const B = p[H.xField], b = p[H.yField], x = p[H.valueField], D = typeof x == "number" && Number.isFinite(x) ? x.toFixed(2) : x;
|
|
297
|
+
let m = { label: n.x, value: B }, d = { label: n.y, value: b };
|
|
292
298
|
if (n.xTemporalBinning !== void 0) {
|
|
293
|
-
const { label:
|
|
294
|
-
value: Number(
|
|
299
|
+
const { label: F, value: S } = G({
|
|
300
|
+
value: Number(B),
|
|
295
301
|
config: e,
|
|
296
302
|
formatLocale: i,
|
|
297
303
|
unit: n.xTemporalBinning.unit,
|
|
298
304
|
utilsStrings: r
|
|
299
305
|
});
|
|
300
|
-
!
|
|
306
|
+
!K(F) && !K(S) && (m = { label: F, value: S });
|
|
301
307
|
}
|
|
302
308
|
if (n.yTemporalBinning !== void 0) {
|
|
303
|
-
const { label:
|
|
304
|
-
value: Number(
|
|
309
|
+
const { label: F, value: S } = G({
|
|
310
|
+
value: Number(b),
|
|
305
311
|
config: e,
|
|
306
312
|
formatLocale: i,
|
|
307
313
|
unit: n.yTemporalBinning.unit,
|
|
308
314
|
utilsStrings: r
|
|
309
315
|
});
|
|
310
|
-
!
|
|
316
|
+
!K(F) && !K(S) && (d = { label: F, value: S });
|
|
311
317
|
}
|
|
312
318
|
return {
|
|
313
|
-
[d.label]: d.value,
|
|
314
319
|
[m.label]: m.value,
|
|
315
|
-
[
|
|
320
|
+
[d.label]: d.value,
|
|
321
|
+
[u.description]: D
|
|
316
322
|
};
|
|
317
323
|
});
|
|
318
324
|
}
|
|
319
|
-
function
|
|
320
|
-
const a =
|
|
325
|
+
function Re(l, e, t) {
|
|
326
|
+
const a = fe(l), o = `${v(Y.Min)} of ${a}`, i = `${v(Y.Max)} of ${a}`, r = `${v(Y.Count)} of ${a}`;
|
|
321
327
|
return e.map((n) => {
|
|
322
|
-
const { minValue: s, maxValue:
|
|
323
|
-
if (
|
|
328
|
+
const { minValue: s, maxValue: c, count: f } = n, u = W(s), p = W(c), B = W(f), b = {};
|
|
329
|
+
if (u && (b[o] = h({
|
|
324
330
|
value: s,
|
|
325
331
|
originalValue: s,
|
|
326
332
|
formatter: t?.xAxisLabelFormatter
|
|
327
|
-
})),
|
|
328
|
-
value:
|
|
329
|
-
originalValue:
|
|
333
|
+
})), p && (b[i] = h({
|
|
334
|
+
value: c,
|
|
335
|
+
originalValue: c,
|
|
330
336
|
formatter: t?.xAxisLabelFormatter
|
|
331
|
-
})),
|
|
332
|
-
const
|
|
337
|
+
})), u && p) {
|
|
338
|
+
const x = h({
|
|
333
339
|
value: s,
|
|
334
340
|
originalValue: s,
|
|
335
341
|
formatter: t?.xAxisLabelFormatter
|
|
336
|
-
}),
|
|
337
|
-
value:
|
|
338
|
-
originalValue:
|
|
342
|
+
}), D = h({
|
|
343
|
+
value: c,
|
|
344
|
+
originalValue: c,
|
|
339
345
|
formatter: t?.xAxisLabelFormatter
|
|
340
346
|
});
|
|
341
|
-
|
|
347
|
+
b.Label = `${String(x ?? "")} - ${String(D ?? "")}`;
|
|
342
348
|
}
|
|
343
|
-
return
|
|
349
|
+
return B && (b[r] = f), b;
|
|
344
350
|
});
|
|
345
351
|
}
|
|
346
|
-
function
|
|
352
|
+
function Ie(l, e, t) {
|
|
347
353
|
const a = Object.keys(l);
|
|
348
354
|
let o = [];
|
|
349
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() !== "");
|
|
350
356
|
}
|
|
351
|
-
function
|
|
352
|
-
const { config: e, rows: t, layer: a, fieldList: o, formatters: i, useRendererLabel: r = !1 } = l,
|
|
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 = v(c), u = le(e), p = U(e.series), B = ie(e), b = ge(e), { idField: x, isTraditionalTypeOID: D } = be(xe(a)), m = D && u.length === 1 && u[0] === x;
|
|
353
359
|
let d;
|
|
354
|
-
switch (
|
|
355
|
-
case
|
|
356
|
-
d = t.map((
|
|
357
|
-
const F =
|
|
358
|
-
field:
|
|
359
|
-
row:
|
|
360
|
+
switch (p) {
|
|
361
|
+
case g.BarAndLineNoAggregation:
|
|
362
|
+
d = t.map((y) => {
|
|
363
|
+
const F = O({
|
|
364
|
+
field: s,
|
|
365
|
+
row: y,
|
|
360
366
|
layer: a,
|
|
361
367
|
fieldList: o,
|
|
362
368
|
formatter: i?.xAxisLabelFormatter,
|
|
363
|
-
useRendererLabel: r
|
|
364
|
-
|
|
369
|
+
useRendererLabel: r,
|
|
370
|
+
timeZone: n
|
|
371
|
+
}), S = { [s]: F };
|
|
365
372
|
return Object.assign(
|
|
366
373
|
S,
|
|
367
|
-
...
|
|
368
|
-
[
|
|
369
|
-
value:
|
|
370
|
-
originalValue:
|
|
374
|
+
...u.map((P) => ({
|
|
375
|
+
[P]: h({
|
|
376
|
+
value: y[P],
|
|
377
|
+
originalValue: y[P]
|
|
371
378
|
})
|
|
372
379
|
}))
|
|
373
380
|
), S;
|
|
374
381
|
});
|
|
375
382
|
break;
|
|
376
|
-
case
|
|
377
|
-
d =
|
|
378
|
-
const S =
|
|
379
|
-
return F !== void 0 &&
|
|
380
|
-
value: F[
|
|
381
|
-
originalValue: F[
|
|
383
|
+
case g.BarAndLineFromFields:
|
|
384
|
+
d = ae(u, t).map(([y, F]) => {
|
|
385
|
+
const S = E(e.series)[0], P = {};
|
|
386
|
+
return F !== void 0 && y !== void 0 && (P.Field = h({
|
|
387
|
+
value: F[s],
|
|
388
|
+
originalValue: F[s],
|
|
382
389
|
formatter: i?.xAxisLabelFormatter
|
|
383
|
-
}),
|
|
390
|
+
}), P.Value = h({
|
|
384
391
|
value: F[S],
|
|
385
392
|
originalValue: F[S]
|
|
386
|
-
})),
|
|
393
|
+
})), P;
|
|
387
394
|
});
|
|
388
395
|
break;
|
|
389
|
-
case
|
|
390
|
-
case
|
|
391
|
-
d = t.map((
|
|
392
|
-
const F =
|
|
393
|
-
field:
|
|
394
|
-
row:
|
|
396
|
+
case g.BarAndLineMonoField:
|
|
397
|
+
case g.BarAndLineMultiFields:
|
|
398
|
+
d = t.map((y) => {
|
|
399
|
+
const F = O({
|
|
400
|
+
field: s,
|
|
401
|
+
row: y,
|
|
395
402
|
layer: a,
|
|
396
403
|
fieldList: o,
|
|
397
404
|
formatter: i?.xAxisLabelFormatter,
|
|
398
|
-
useRendererLabel: r
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
405
|
+
useRendererLabel: r,
|
|
406
|
+
timeZone: n
|
|
407
|
+
}), S = { [s]: F };
|
|
408
|
+
return u.forEach((P, C) => {
|
|
409
|
+
const w = z({
|
|
402
410
|
config: e,
|
|
403
|
-
xAxisField:
|
|
404
|
-
numericFields:
|
|
405
|
-
aggregationType:
|
|
411
|
+
xAxisField: s,
|
|
412
|
+
numericFields: u,
|
|
413
|
+
aggregationType: c,
|
|
406
414
|
layer: a,
|
|
407
|
-
numericFieldIndex:
|
|
415
|
+
numericFieldIndex: C,
|
|
408
416
|
fieldList: o
|
|
409
|
-
}),
|
|
410
|
-
let
|
|
411
|
-
|
|
412
|
-
value:
|
|
413
|
-
originalValue:
|
|
417
|
+
}), N = E(e.series)[C];
|
|
418
|
+
let I = N, Z = N;
|
|
419
|
+
N.toLowerCase() === w.name.toLowerCase() && (I = w.description, Z = w.name), S[I] = h({
|
|
420
|
+
value: y[Z],
|
|
421
|
+
originalValue: y[Z]
|
|
414
422
|
});
|
|
415
423
|
}), S;
|
|
416
424
|
});
|
|
417
425
|
break;
|
|
418
|
-
case
|
|
419
|
-
d = t.flatMap((
|
|
420
|
-
const F =
|
|
421
|
-
field:
|
|
422
|
-
row:
|
|
426
|
+
case g.BarAndLineSplitBy:
|
|
427
|
+
d = t.flatMap((y) => {
|
|
428
|
+
const F = E(e.series), S = O({
|
|
429
|
+
field: s,
|
|
430
|
+
row: y,
|
|
423
431
|
layer: a,
|
|
424
432
|
fieldList: o,
|
|
425
433
|
formatter: i?.xAxisLabelFormatter,
|
|
426
|
-
useRendererLabel: r
|
|
434
|
+
useRendererLabel: r,
|
|
435
|
+
timeZone: n
|
|
427
436
|
});
|
|
428
|
-
return
|
|
429
|
-
const
|
|
437
|
+
return B.map((P, C) => {
|
|
438
|
+
const w = ee({
|
|
430
439
|
config: e,
|
|
431
|
-
splitByField:
|
|
432
|
-
splitByValue:
|
|
433
|
-
splitByValueIndex:
|
|
440
|
+
splitByField: b,
|
|
441
|
+
splitByValue: P,
|
|
442
|
+
splitByValueIndex: C,
|
|
434
443
|
layer: a,
|
|
435
|
-
fieldList: o
|
|
444
|
+
fieldList: o,
|
|
445
|
+
timeZone: n
|
|
436
446
|
});
|
|
437
447
|
return {
|
|
438
|
-
[
|
|
439
|
-
[
|
|
440
|
-
[
|
|
448
|
+
[s]: S,
|
|
449
|
+
[b]: w,
|
|
450
|
+
[m ? f : `${f} of ${u[0]}`]: y[F[C]]
|
|
441
451
|
};
|
|
442
452
|
});
|
|
443
453
|
});
|
|
444
454
|
break;
|
|
445
|
-
case
|
|
446
|
-
d = t.map((
|
|
447
|
-
const F =
|
|
448
|
-
field:
|
|
449
|
-
row:
|
|
455
|
+
case g.BarAndLineSplitByNoAggregation:
|
|
456
|
+
d = t.map((y) => {
|
|
457
|
+
const F = O({
|
|
458
|
+
field: s,
|
|
459
|
+
row: y,
|
|
450
460
|
layer: a,
|
|
451
461
|
fieldList: o,
|
|
452
462
|
formatter: i?.xAxisLabelFormatter,
|
|
453
|
-
useRendererLabel: r
|
|
454
|
-
|
|
463
|
+
useRendererLabel: r,
|
|
464
|
+
timeZone: n
|
|
465
|
+
}), S = Ie(y, u[0], B), P = y[b], C = B.findIndex((I) => $e(I, P)), w = ee({
|
|
455
466
|
config: e,
|
|
456
|
-
splitByField:
|
|
457
|
-
splitByValue:
|
|
458
|
-
splitByValueIndex:
|
|
467
|
+
splitByField: b,
|
|
468
|
+
splitByValue: P,
|
|
469
|
+
splitByValueIndex: C >= 0 ? C : void 0,
|
|
459
470
|
layer: a,
|
|
460
|
-
fieldList: o
|
|
471
|
+
fieldList: o,
|
|
472
|
+
timeZone: n
|
|
461
473
|
});
|
|
462
474
|
return {
|
|
463
|
-
[
|
|
464
|
-
[
|
|
465
|
-
[
|
|
475
|
+
[s]: F,
|
|
476
|
+
[b]: w,
|
|
477
|
+
[u[0]]: y[S[0]]
|
|
466
478
|
};
|
|
467
479
|
});
|
|
468
480
|
break;
|
|
@@ -471,7 +483,7 @@ function Ie(l) {
|
|
|
471
483
|
}
|
|
472
484
|
return d;
|
|
473
485
|
}
|
|
474
|
-
function
|
|
486
|
+
function je(l) {
|
|
475
487
|
if (l.length === 0)
|
|
476
488
|
return [];
|
|
477
489
|
const e = l.reduce((t, a) => {
|
|
@@ -484,325 +496,343 @@ function Ke(l) {
|
|
|
484
496
|
for (const [o, i] of Object.entries(t))
|
|
485
497
|
if (typeof i == "number" && e[o] > 0) {
|
|
486
498
|
const r = i / e[o];
|
|
487
|
-
a[`${o}${
|
|
499
|
+
a[`${o}${$}`] = r.toPrecision(2);
|
|
488
500
|
}
|
|
489
501
|
return a;
|
|
490
502
|
});
|
|
491
503
|
}
|
|
492
|
-
function
|
|
493
|
-
const { config: e, rows: t, layer: a, fieldList: o, formatters: i, useRendererLabel: r = !1 } = l,
|
|
494
|
-
let
|
|
495
|
-
const
|
|
504
|
+
function Ee(l) {
|
|
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
|
+
let f = je(t);
|
|
507
|
+
const u = de(e), p = c !== g.PieFromFields ? X.Category : X.Fields, B = ye(e, p), b = z({
|
|
496
508
|
config: e,
|
|
497
|
-
xAxisField:
|
|
498
|
-
numericFields:
|
|
499
|
-
aggregationType:
|
|
500
|
-
mode:
|
|
509
|
+
xAxisField: s,
|
|
510
|
+
numericFields: u,
|
|
511
|
+
aggregationType: B,
|
|
512
|
+
mode: p,
|
|
501
513
|
layer: a,
|
|
502
514
|
fieldList: o
|
|
503
|
-
}),
|
|
504
|
-
return
|
|
505
|
-
const
|
|
506
|
-
field:
|
|
507
|
-
row:
|
|
515
|
+
}), x = E(e.series)[0];
|
|
516
|
+
return c === g.PieFromCategory || c === g.PieNoAggregation ? f = f.map((D) => {
|
|
517
|
+
const m = O({
|
|
518
|
+
field: s,
|
|
519
|
+
row: D,
|
|
508
520
|
layer: a,
|
|
509
521
|
fieldList: o,
|
|
510
522
|
formatter: i?.xAxisLabelFormatter,
|
|
511
|
-
useRendererLabel: r
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
523
|
+
useRendererLabel: r,
|
|
524
|
+
timeZone: n
|
|
525
|
+
}), d = { [s]: m };
|
|
526
|
+
let y = x, F = x;
|
|
527
|
+
return c === g.PieFromCategory && x.toLowerCase() === b.name.toLowerCase() && (y = b.description, F = b.name), d[y] = h({
|
|
528
|
+
value: D[F],
|
|
529
|
+
originalValue: D[F]
|
|
530
|
+
}), d[v($.trim())] = h({
|
|
531
|
+
value: D[`${F}${$}`],
|
|
532
|
+
originalValue: D[`${F}${$}`]
|
|
520
533
|
}), d;
|
|
521
|
-
}) :
|
|
534
|
+
}) : c === g.PieFromFields && (f = ae(u, f).map(([D, m]) => {
|
|
522
535
|
const d = {};
|
|
523
|
-
return
|
|
524
|
-
value:
|
|
525
|
-
originalValue:
|
|
536
|
+
return m !== void 0 && D !== void 0 && (d.Field = h({
|
|
537
|
+
value: m[s],
|
|
538
|
+
originalValue: m[s],
|
|
526
539
|
formatter: i?.xAxisLabelFormatter
|
|
527
540
|
}), d.Value = h({
|
|
528
|
-
value:
|
|
529
|
-
originalValue:
|
|
530
|
-
}), d[v(
|
|
531
|
-
value:
|
|
532
|
-
originalValue:
|
|
541
|
+
value: m[x],
|
|
542
|
+
originalValue: m[x]
|
|
543
|
+
}), d[v($.trim())] = h({
|
|
544
|
+
value: m[`${x}${$}`],
|
|
545
|
+
originalValue: m[`${x}${$}`]
|
|
533
546
|
})), d;
|
|
534
|
-
})),
|
|
547
|
+
})), f;
|
|
535
548
|
}
|
|
536
|
-
function
|
|
549
|
+
function j(l) {
|
|
537
550
|
const { rawData: e, keyBase: t = "", outRow: a } = l;
|
|
538
|
-
for (const [o, i] of Object.entries(
|
|
551
|
+
for (const [o, i] of Object.entries(V)) {
|
|
539
552
|
const r = e[t + i];
|
|
540
553
|
r !== void 0 && (a[o] = r);
|
|
541
|
-
const n = e[t + i +
|
|
554
|
+
const n = e[t + i + he];
|
|
542
555
|
n !== void 0 && (a[`${o} Outlier`] = n);
|
|
543
556
|
const s = e[t + i + Q];
|
|
544
557
|
s !== void 0 && (a[`${o} Z-Score`] = s);
|
|
545
558
|
}
|
|
546
559
|
}
|
|
547
|
-
function
|
|
548
|
-
const { rawData: e, outRow: t, config: a, boxPlotSubType: o, layer: i, fieldList: r } = l,
|
|
549
|
-
let
|
|
550
|
-
const
|
|
560
|
+
function T(l) {
|
|
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 = V.Outlier;
|
|
563
|
+
const p = R;
|
|
551
564
|
switch (o) {
|
|
552
|
-
case
|
|
553
|
-
const
|
|
554
|
-
field:
|
|
555
|
-
value: e[
|
|
556
|
-
fieldList: r
|
|
565
|
+
case g.BoxPlotMonoFieldAndCategory: {
|
|
566
|
+
const x = se({
|
|
567
|
+
field: s,
|
|
568
|
+
value: e[s],
|
|
569
|
+
fieldList: r,
|
|
570
|
+
timeZone: n
|
|
557
571
|
});
|
|
558
|
-
t[
|
|
572
|
+
t[s] = x, t[v(V.Outlier)] = e[u];
|
|
559
573
|
break;
|
|
560
574
|
}
|
|
561
|
-
case
|
|
562
|
-
t[v(
|
|
563
|
-
(
|
|
564
|
-
) ?? ""}_${
|
|
575
|
+
case g.BoxPlotMultiFieldsAndCategory: {
|
|
576
|
+
t[v(s)] = e[s], u = `${c.find(
|
|
577
|
+
(D) => Object.keys(e).some((m) => m.toLowerCase().includes(D.toLowerCase()))
|
|
578
|
+
) ?? ""}_${u}`, t[v(V.Outlier)] = e[u];
|
|
565
579
|
break;
|
|
566
580
|
}
|
|
567
|
-
case
|
|
568
|
-
case
|
|
569
|
-
const
|
|
570
|
-
field:
|
|
571
|
-
value:
|
|
581
|
+
case g.BoxPlotMonoFieldAndSplitBy:
|
|
582
|
+
case g.BoxPlotMultiFieldsAndSplitBy: {
|
|
583
|
+
const x = String(e[f]), D = M({
|
|
584
|
+
field: f,
|
|
585
|
+
value: x,
|
|
572
586
|
layer: i,
|
|
573
|
-
fieldList: r
|
|
587
|
+
fieldList: r,
|
|
588
|
+
timeZone: n
|
|
574
589
|
});
|
|
575
|
-
|
|
590
|
+
u = `${x}_${u}`, t.Field = e[p], t[v(f)] = D, t[v(V.Outlier)] = e[u];
|
|
576
591
|
break;
|
|
577
592
|
}
|
|
578
|
-
case
|
|
579
|
-
const
|
|
580
|
-
field:
|
|
581
|
-
value:
|
|
593
|
+
case g.BoxPlotMonoFieldAndCategoryAndSplitBy: {
|
|
594
|
+
const x = String(e[f]), D = M({
|
|
595
|
+
field: f,
|
|
596
|
+
value: x,
|
|
582
597
|
layer: i,
|
|
583
|
-
fieldList: r
|
|
598
|
+
fieldList: r,
|
|
599
|
+
timeZone: n
|
|
584
600
|
});
|
|
585
|
-
|
|
601
|
+
u = `${x}_${u}`, t[v(s)] = e[s], t[v(f)] = D, t[v(V.Outlier)] = e[u];
|
|
586
602
|
break;
|
|
587
603
|
}
|
|
588
|
-
case
|
|
589
|
-
case
|
|
604
|
+
case g.BoxPlotMonoField:
|
|
605
|
+
case g.BoxPlotMultiFields:
|
|
590
606
|
default: {
|
|
591
|
-
t.Field = e[
|
|
607
|
+
t.Field = e[p], t[v(V.Outlier)] = e[u];
|
|
592
608
|
break;
|
|
593
609
|
}
|
|
594
610
|
}
|
|
595
|
-
const
|
|
596
|
-
|
|
611
|
+
const B = `${u}${Q}`, b = e[B];
|
|
612
|
+
b !== void 0 && (t[`${v(V.Outlier)} Z-Score`] = b);
|
|
597
613
|
}
|
|
598
|
-
function
|
|
599
|
-
const { rawData: e, outRow: t, config: a, splitByValue: o, layer: i, fieldList: r } = l,
|
|
600
|
-
let
|
|
601
|
-
switch (
|
|
602
|
-
case
|
|
603
|
-
|
|
604
|
-
field:
|
|
605
|
-
value: e[
|
|
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}_${V.Average}`], f = _(a), u = q(a);
|
|
616
|
+
let p = "";
|
|
617
|
+
switch (s) {
|
|
618
|
+
case g.BoxPlotMonoFieldAndSplitBy: {
|
|
619
|
+
p = `${o}_${f}`, t.Field = e[R], t[v(f)] = M({
|
|
620
|
+
field: f,
|
|
621
|
+
value: e[p],
|
|
606
622
|
layer: i,
|
|
607
|
-
fieldList: r
|
|
623
|
+
fieldList: r,
|
|
624
|
+
timeZone: n
|
|
608
625
|
});
|
|
609
626
|
break;
|
|
610
627
|
}
|
|
611
|
-
case
|
|
612
|
-
|
|
613
|
-
field:
|
|
614
|
-
value: e[
|
|
628
|
+
case g.BoxPlotMultiFieldsAndSplitBy: {
|
|
629
|
+
p = `${o}_${V.Average}`, t.Field = e[R], t[v(f)] = M({
|
|
630
|
+
field: f,
|
|
631
|
+
value: e[p],
|
|
615
632
|
layer: i,
|
|
616
|
-
fieldList: r
|
|
633
|
+
fieldList: r,
|
|
634
|
+
timeZone: n
|
|
617
635
|
});
|
|
618
636
|
break;
|
|
619
637
|
}
|
|
620
|
-
case
|
|
621
|
-
|
|
622
|
-
field:
|
|
638
|
+
case g.BoxPlotMonoFieldAndCategoryAndSplitBy: {
|
|
639
|
+
p = `${o}_${V.Average}`, t[u] = e[u], t[v(f)] = M({
|
|
640
|
+
field: f,
|
|
623
641
|
value: o,
|
|
624
642
|
layer: i,
|
|
625
|
-
fieldList: r
|
|
643
|
+
fieldList: r,
|
|
644
|
+
timeZone: n
|
|
626
645
|
});
|
|
627
646
|
break;
|
|
628
647
|
}
|
|
629
648
|
}
|
|
630
|
-
t[v(
|
|
631
|
-
const
|
|
632
|
-
|
|
649
|
+
t[v(V.Average)] = c;
|
|
650
|
+
const B = `${String(c)}${Q}`, b = e[B];
|
|
651
|
+
b !== void 0 && (t[`${v(V.Average)} Z-Score`] = b);
|
|
633
652
|
}
|
|
634
|
-
function
|
|
635
|
-
const { config: e, rows: t, layer: a, fieldList: o, formatters: i, useRendererLabel: r = !1 } = l,
|
|
636
|
-
let
|
|
637
|
-
const
|
|
638
|
-
|
|
639
|
-
const
|
|
640
|
-
let
|
|
641
|
-
switch (
|
|
642
|
-
case
|
|
643
|
-
case
|
|
644
|
-
|
|
653
|
+
function Ze(l) {
|
|
654
|
+
const { config: e, rows: t, layer: a, fieldList: o, formatters: i, useRendererLabel: r = !1, timeZone: n } = l, s = U(e.series);
|
|
655
|
+
let c = s;
|
|
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.BoxPlotMonoFieldAndSplitBy ? c = g.BoxPlotMonoField : s === g.BoxPlotMultiFieldsAndSplitBy ? c = g.BoxPlotMultiFields : s === g.BoxPlotMonoFieldAndCategoryAndSplitBy && (c = g.BoxPlotMonoFieldAndCategory));
|
|
658
|
+
const p = q(e), B = oe(e), b = ie(e), x = _(e);
|
|
659
|
+
let D;
|
|
660
|
+
switch (c) {
|
|
661
|
+
case g.BoxPlotMonoField:
|
|
662
|
+
case g.BoxPlotMonoFieldAndCategory: {
|
|
663
|
+
D = t.map((m) => {
|
|
645
664
|
const d = {};
|
|
646
|
-
if (
|
|
647
|
-
|
|
648
|
-
rawData:
|
|
665
|
+
if (m[A.boxPlot.boxPlotOutlierId])
|
|
666
|
+
T({
|
|
667
|
+
rawData: m,
|
|
649
668
|
outRow: d,
|
|
650
669
|
config: e,
|
|
651
|
-
boxPlotSubType:
|
|
670
|
+
boxPlotSubType: c,
|
|
652
671
|
layer: a,
|
|
653
|
-
fieldList: o
|
|
672
|
+
fieldList: o,
|
|
673
|
+
timeZone: n
|
|
654
674
|
});
|
|
655
675
|
else {
|
|
656
|
-
if (
|
|
657
|
-
const
|
|
658
|
-
field:
|
|
659
|
-
row:
|
|
676
|
+
if (c === g.BoxPlotMonoFieldAndCategory) {
|
|
677
|
+
const y = O({
|
|
678
|
+
field: p,
|
|
679
|
+
row: m,
|
|
660
680
|
layer: a,
|
|
661
681
|
fieldList: o,
|
|
662
682
|
formatter: i?.xAxisLabelFormatter,
|
|
663
|
-
useRendererLabel: r
|
|
683
|
+
useRendererLabel: r,
|
|
684
|
+
timeZone: n
|
|
664
685
|
});
|
|
665
|
-
d[
|
|
666
|
-
} else
|
|
667
|
-
|
|
686
|
+
d[p] = y;
|
|
687
|
+
} else c === g.BoxPlotMonoField && (d.Field = m[R]);
|
|
688
|
+
j({ rawData: m, outRow: d });
|
|
668
689
|
}
|
|
669
690
|
return d;
|
|
670
691
|
});
|
|
671
692
|
break;
|
|
672
693
|
}
|
|
673
|
-
case
|
|
674
|
-
|
|
694
|
+
case g.BoxPlotMultiFields: {
|
|
695
|
+
D = t.flatMap((m) => {
|
|
675
696
|
const d = {};
|
|
676
|
-
return
|
|
677
|
-
rawData:
|
|
697
|
+
return m[A.boxPlot.boxPlotOutlierId] ? T({
|
|
698
|
+
rawData: m,
|
|
678
699
|
outRow: d,
|
|
679
700
|
config: e,
|
|
680
|
-
boxPlotSubType:
|
|
701
|
+
boxPlotSubType: c,
|
|
681
702
|
layer: a,
|
|
682
|
-
fieldList: o
|
|
683
|
-
|
|
703
|
+
fieldList: o,
|
|
704
|
+
timeZone: n
|
|
705
|
+
}) : (d.Field = m[R], j({ rawData: m, outRow: d })), [d];
|
|
684
706
|
});
|
|
685
707
|
break;
|
|
686
708
|
}
|
|
687
|
-
case
|
|
688
|
-
|
|
689
|
-
(
|
|
690
|
-
const
|
|
709
|
+
case g.BoxPlotMultiFieldsAndCategory: {
|
|
710
|
+
D = t.flatMap(
|
|
711
|
+
(m) => B.map((d) => {
|
|
712
|
+
const y = {};
|
|
691
713
|
let F = "";
|
|
692
|
-
if (
|
|
693
|
-
|
|
694
|
-
rawData:
|
|
695
|
-
outRow:
|
|
714
|
+
if (y.Field = d, m[A.boxPlot.boxPlotOutlierId])
|
|
715
|
+
T({
|
|
716
|
+
rawData: m,
|
|
717
|
+
outRow: y,
|
|
696
718
|
config: e,
|
|
697
|
-
boxPlotSubType:
|
|
719
|
+
boxPlotSubType: c,
|
|
698
720
|
layer: a,
|
|
699
|
-
fieldList: o
|
|
721
|
+
fieldList: o,
|
|
722
|
+
timeZone: n
|
|
700
723
|
});
|
|
701
724
|
else {
|
|
702
|
-
if (
|
|
703
|
-
const S =
|
|
704
|
-
field:
|
|
705
|
-
row:
|
|
725
|
+
if (c === g.BoxPlotMultiFieldsAndCategory) {
|
|
726
|
+
const S = O({
|
|
727
|
+
field: p,
|
|
728
|
+
row: m,
|
|
706
729
|
layer: a,
|
|
707
730
|
fieldList: o,
|
|
708
731
|
formatter: i?.xAxisLabelFormatter,
|
|
709
|
-
useRendererLabel: r
|
|
732
|
+
useRendererLabel: r,
|
|
733
|
+
timeZone: n
|
|
710
734
|
});
|
|
711
|
-
|
|
735
|
+
y[p] = S, F = `${d}_`;
|
|
712
736
|
}
|
|
713
|
-
|
|
737
|
+
j({ rawData: m, outRow: y, keyBase: F });
|
|
714
738
|
}
|
|
715
|
-
return
|
|
739
|
+
return y;
|
|
716
740
|
})
|
|
717
741
|
);
|
|
718
742
|
break;
|
|
719
743
|
}
|
|
720
|
-
case
|
|
721
|
-
case
|
|
722
|
-
case
|
|
723
|
-
|
|
724
|
-
if (
|
|
744
|
+
case g.BoxPlotMonoFieldAndSplitBy:
|
|
745
|
+
case g.BoxPlotMultiFieldsAndSplitBy:
|
|
746
|
+
case g.BoxPlotMonoFieldAndCategoryAndSplitBy: {
|
|
747
|
+
D = t.flatMap((m) => {
|
|
748
|
+
if (m[A.boxPlot.boxPlotOutlierId]) {
|
|
725
749
|
const d = {};
|
|
726
|
-
return
|
|
727
|
-
rawData:
|
|
750
|
+
return T({
|
|
751
|
+
rawData: m,
|
|
728
752
|
outRow: d,
|
|
729
753
|
config: e,
|
|
730
|
-
boxPlotSubType:
|
|
754
|
+
boxPlotSubType: c,
|
|
731
755
|
layer: a,
|
|
732
|
-
fieldList: o
|
|
756
|
+
fieldList: o,
|
|
757
|
+
timeZone: n
|
|
733
758
|
}), [d];
|
|
734
|
-
} else return
|
|
735
|
-
const
|
|
736
|
-
return
|
|
737
|
-
rawData:
|
|
738
|
-
outRow:
|
|
759
|
+
} else return m[A.boxPlot.boxPlotMeanLineMarkerId] ? b?.map((d) => {
|
|
760
|
+
const y = {};
|
|
761
|
+
return Ue({
|
|
762
|
+
rawData: m,
|
|
763
|
+
outRow: y,
|
|
739
764
|
splitByValue: d,
|
|
740
765
|
config: e,
|
|
741
766
|
layer: a,
|
|
742
|
-
fieldList: o
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
767
|
+
fieldList: o,
|
|
768
|
+
timeZone: n
|
|
769
|
+
}), y;
|
|
770
|
+
}) : b.map((d) => {
|
|
771
|
+
const y = {}, F = M({
|
|
772
|
+
field: x,
|
|
747
773
|
value: d,
|
|
748
774
|
layer: a,
|
|
749
775
|
fieldList: o
|
|
750
776
|
});
|
|
751
|
-
if (
|
|
752
|
-
const S =
|
|
753
|
-
field:
|
|
754
|
-
row:
|
|
777
|
+
if (c === g.BoxPlotMonoFieldAndCategoryAndSplitBy) {
|
|
778
|
+
const S = O({
|
|
779
|
+
field: p,
|
|
780
|
+
row: m,
|
|
755
781
|
layer: a,
|
|
756
782
|
fieldList: o,
|
|
757
783
|
formatter: i?.xAxisLabelFormatter,
|
|
758
|
-
useRendererLabel: r
|
|
784
|
+
useRendererLabel: r,
|
|
785
|
+
timeZone: n
|
|
759
786
|
});
|
|
760
|
-
|
|
787
|
+
y[p] = S;
|
|
761
788
|
}
|
|
762
|
-
return
|
|
763
|
-
rawData:
|
|
764
|
-
outRow:
|
|
789
|
+
return m[A.boxPlot.boxPlotOutlierId] ? T({
|
|
790
|
+
rawData: m,
|
|
791
|
+
outRow: y,
|
|
765
792
|
config: e,
|
|
766
|
-
boxPlotSubType:
|
|
767
|
-
|
|
793
|
+
boxPlotSubType: c,
|
|
794
|
+
layer: a,
|
|
795
|
+
fieldList: o,
|
|
796
|
+
timeZone: n
|
|
797
|
+
}) : (y[x] = F, j({ rawData: m, outRow: y, keyBase: `${d}_` })), y;
|
|
768
798
|
});
|
|
769
799
|
});
|
|
770
800
|
break;
|
|
771
801
|
}
|
|
772
802
|
default:
|
|
773
|
-
|
|
803
|
+
D = t;
|
|
774
804
|
}
|
|
775
|
-
return
|
|
805
|
+
return D;
|
|
776
806
|
}
|
|
777
|
-
const
|
|
807
|
+
const te = (l) => {
|
|
778
808
|
let e = !1;
|
|
779
809
|
return (typeof l == "string" || typeof l == "number") && (e = !Number.isNaN(new Date(l).getTime())), e;
|
|
780
|
-
}, We = (l) =>
|
|
781
|
-
const { field: e, value: t, fieldList: a } = l;
|
|
782
|
-
let
|
|
783
|
-
const
|
|
784
|
-
if (
|
|
785
|
-
const
|
|
786
|
-
|
|
810
|
+
}, We = (l, e) => ne.fromJSDate(l, { zone: e ?? "local" }).toFormat("yyyy-LL-dd"), Ye = (l, e) => ne.fromJSDate(l, { zone: e ?? "local" }).toFormat("yyyy-LL-dd'T'HH:mm:ss"), se = (l) => {
|
|
811
|
+
const { field: e, value: t, fieldList: a, timeZone: o } = l;
|
|
812
|
+
let i = t;
|
|
813
|
+
const r = a?.find((n) => n.name === e);
|
|
814
|
+
if (r) {
|
|
815
|
+
const n = r.type === Ce.DateOnly;
|
|
816
|
+
Se(r) && !n ? i = te(t) ? Ye(new Date(t), o) : t : n && typeof t != "string" && (i = te(t) ? We(new Date(t), o) : t);
|
|
787
817
|
}
|
|
788
|
-
return
|
|
818
|
+
return i;
|
|
789
819
|
};
|
|
790
|
-
function
|
|
820
|
+
function mt(l) {
|
|
791
821
|
const { runtimeDataFilters: e, view: t, viewTimeExtentChangePolicy: a, syncViewTimeExtent: o } = l;
|
|
792
822
|
let i = e;
|
|
793
|
-
return t && (a ===
|
|
823
|
+
return t && (a === Ve.Refresh || o) && t.timeExtent?.start != null && t.timeExtent?.end != null && (i = {
|
|
794
824
|
...e,
|
|
795
825
|
timeExtent: [t.timeExtent.start.valueOf(), t.timeExtent.end.valueOf()]
|
|
796
826
|
}), i;
|
|
797
827
|
}
|
|
798
828
|
export {
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
829
|
+
Le as a,
|
|
830
|
+
Oe as b,
|
|
831
|
+
Ae as c,
|
|
832
|
+
mt as d,
|
|
833
|
+
ct as e,
|
|
834
|
+
Me as f,
|
|
835
|
+
G as g,
|
|
836
|
+
ut as h,
|
|
837
|
+
ft as t
|
|
808
838
|
};
|