@arcgis/charts-components 5.2.0-next.61 → 5.2.0-next.62
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/{OT7PLFBK.js → 3IUZSUBJ.js} +1 -1
- package/dist/cdn/{DPTA2AET.js → 4DXQ255M.js} +1 -1
- package/dist/cdn/{67QYTLMM.js → 4F2MTKVF.js} +1 -1
- package/dist/cdn/{MU6ZYADT.js → 4HNA5BEL.js} +1 -1
- package/dist/cdn/{PLEC3GNT.js → 4II4V3R4.js} +1 -1
- package/dist/cdn/{ZWIF7LHW.js → 4SV3ARJE.js} +1 -1
- package/dist/cdn/{WTJ2NJ76.js → 5K4LYQAP.js} +1 -1
- package/dist/cdn/{2RYKKN36.js → 65QZ37RL.js} +1 -1
- package/dist/cdn/{O3VKOV2W.js → 6T37GQMM.js} +1 -1
- package/dist/cdn/{4COV22K4.js → 6ZJ4DH7D.js} +1 -1
- package/dist/cdn/{LGTXQIF7.js → 7H7MFSEY.js} +1 -1
- package/dist/cdn/{3YCGBAQY.js → 7JW7BKCY.js} +1 -1
- package/dist/cdn/{GARBFC7Q.js → 7Q5SYLKV.js} +1 -1
- package/dist/cdn/{BLZLMGO6.js → AJAOQCPS.js} +1 -1
- package/dist/cdn/{3AYXOX4U.js → AMM6O6DA.js} +1 -1
- package/dist/cdn/{46PXO7ZC.js → BIABAOQA.js} +1 -1
- package/dist/cdn/{Y5ZH7VS4.js → BP3IZMZQ.js} +1 -1
- package/dist/cdn/{WFW6BNDT.js → CNIDLTWS.js} +1 -1
- package/dist/cdn/{DGV6S2W3.js → CUW7EDSM.js} +1 -1
- package/dist/cdn/{QZCTLQBM.js → D5IKYXWS.js} +1 -1
- package/dist/cdn/DA4QOTYN.js +2 -0
- package/dist/cdn/{6MNV7FJC.js → DT4C4JZW.js} +1 -1
- package/dist/cdn/{SYVPFDIW.js → EEF2GZWF.js} +1 -1
- package/dist/cdn/{ONKEO3Z2.js → ELRXL4GL.js} +1 -1
- package/dist/cdn/{Q5OFF4FE.js → FLA3PJ5I.js} +18 -18
- package/dist/cdn/{EUOJG5H6.js → FZOZWZSG.js} +1 -1
- package/dist/cdn/{AYUYEY5H.js → G3I2WY7S.js} +1 -1
- package/dist/cdn/{MJTWR33N.js → GK3ESMF2.js} +1 -1
- package/dist/cdn/{I3XBTQKJ.js → GQKDPSP6.js} +1 -1
- package/dist/cdn/{TU3LYEK3.js → GRIVRWCF.js} +1 -1
- package/dist/cdn/{OWWQ5SYW.js → HHZSG3K6.js} +1 -1
- package/dist/cdn/{ZGBULDPL.js → IB5R6XBE.js} +1 -1
- package/dist/cdn/{EOHKNJSJ.js → INSAYWFB.js} +1 -1
- package/dist/cdn/{JUON3AJY.js → IP7NR32G.js} +1 -1
- package/dist/cdn/{XV4LD73L.js → IPMFDZBI.js} +1 -1
- package/dist/cdn/{JGESKW6S.js → JBO56HPJ.js} +1 -1
- package/dist/cdn/{RICA7GJM.js → JE4ZLQEX.js} +1 -1
- package/dist/cdn/JT2CHRVO.js +2 -0
- package/dist/cdn/{WSL76GA5.js → JYS5HVHP.js} +1 -1
- package/dist/cdn/{HOIPLQXD.js → KBMGQ3H6.js} +1 -1
- package/dist/cdn/{EAV3KAS7.js → KO6XLCKT.js} +1 -1
- package/dist/cdn/{TVG7KD3H.js → LK7Y2TPS.js} +1 -1
- package/dist/cdn/{5YP7P6S3.js → LNMXGS7N.js} +1 -1
- package/dist/cdn/{HUNN3ERX.js → LYLK7H23.js} +1 -1
- package/dist/cdn/{2G65P262.js → MIL4ALAU.js} +1 -1
- package/dist/cdn/{NK66D65H.js → MIMPZBTK.js} +1 -1
- package/dist/cdn/{EMBMJCFZ.js → MN5LEOFQ.js} +1 -1
- package/dist/cdn/{TQYJM66E.js → MRA3XRKD.js} +1 -1
- package/dist/cdn/{MXE4VPZS.js → MYAMCWA2.js} +1 -1
- package/dist/cdn/{TEWEPSIO.js → N2BF3AIP.js} +1 -1
- package/dist/cdn/{SUNHJPBW.js → NQYCZQ27.js} +1 -1
- package/dist/cdn/{UM7RIOCE.js → NSS4WWO7.js} +1 -1
- package/dist/cdn/{X3S4M6JL.js → P7VFYZRI.js} +1 -1
- package/dist/cdn/{T62EETHJ.js → PZFM3BRK.js} +1 -1
- package/dist/cdn/PZUVU7CC.js +3 -0
- package/dist/cdn/{SQIKFO32.js → Q376XO5C.js} +1 -1
- package/dist/cdn/{VA6KJZ2Y.js → QGKWF4LR.js} +1 -1
- package/dist/cdn/{LIBE4XVH.js → QS6QHTAG.js} +1 -1
- package/dist/cdn/{VM4XLVMS.js → QSFEGKYQ.js} +1 -1
- package/dist/cdn/{M744CFJ2.js → QXN2LIUA.js} +1 -1
- package/dist/cdn/{5JXEO4VE.js → R7VPFCG2.js} +1 -1
- package/dist/cdn/{BKK57XHL.js → S3YPXZ3Y.js} +1 -1
- package/dist/cdn/{J3CL6KB6.js → S7B57I24.js} +1 -1
- package/dist/cdn/{ANHW36VW.js → SSYHOPL2.js} +1 -1
- package/dist/cdn/{DBAM7MH7.js → SYU55EDE.js} +1 -1
- package/dist/cdn/{BHGOAHMJ.js → TGABTYRZ.js} +1 -1
- package/dist/cdn/{WZOHQJFB.js → TGXTKIAA.js} +1 -1
- package/dist/cdn/{JS6A5QAV.js → TRXKI7AQ.js} +1 -1
- package/dist/cdn/{KDCZQ6UT.js → V2POH2WS.js} +1 -1
- package/dist/cdn/{ISK4QVLY.js → VZPJL27P.js} +1 -1
- package/dist/cdn/{VPYL3RVN.js → WOE4UHYG.js} +1 -1
- package/dist/cdn/{FHBCVW5T.js → WUUBA4AY.js} +1 -1
- package/dist/cdn/{P5QEJOJS.js → X3B7R2CE.js} +1 -1
- package/dist/cdn/{JYITKARU.js → X4RUTR6U.js} +1 -1
- package/dist/cdn/{4ITNOJXC.js → X7BEP5KL.js} +1 -1
- package/dist/cdn/{INISFVAK.js → XM6OTYSW.js} +1 -1
- package/dist/cdn/{MPGHOXLW.js → XS5G7ML2.js} +1 -1
- package/dist/cdn/{KWA7OWHO.js → YN4QD76O.js} +1 -1
- package/dist/cdn/{MI6AKTXQ.js → YQJBJRP7.js} +1 -1
- package/dist/cdn/{L7TUV2MY.js → YWJTHRQP.js} +1 -1
- package/dist/cdn/{7DIQIFKR.js → ZOZ72K4S.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/class-breaks.js +66 -66
- package/dist/chunks/data.js +1 -1
- package/dist/chunks/index2.js +2026 -2088
- package/dist/chunks/index4.js +1 -1
- package/dist/chunks/serial-chart-data.js +1 -2
- package/dist/chunks/utils.js +30 -32
- package/dist/chunks/web-component-utils.js +38 -38
- package/dist/components/arcgis-chart/customElement.js +2226 -2210
- package/dist/components/arcgis-charts-config-create-flow/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 +171 -172
- package/dist/utils/chart-config/converter/index.js +26 -26
- package/dist/utils/data/categorical-data/index.d.ts +1 -1
- package/dist/utils/data/index.d.ts +1 -2
- package/dist/utils/layer/query-features/index.d.ts +2 -18
- package/dist/utils/layer/query-parser/index.d.ts +1 -2
- package/package.json +3 -3
- package/dist/cdn/54W4C75M.js +0 -2
- package/dist/cdn/PBO5VH6A.js +0 -2
- package/dist/cdn/V6LKZUEZ.js +0 -3
package/dist/chunks/index4.js
CHANGED
|
@@ -4,7 +4,7 @@ import E from "ajv";
|
|
|
4
4
|
import { g as w } from "./runtime.js";
|
|
5
5
|
import { fetchT9nStringsBundle as S } from "@arcgis/toolkit/intl";
|
|
6
6
|
import { getElementLocale as I } from "@arcgis/toolkit/intl/dom";
|
|
7
|
-
import { C as u,
|
|
7
|
+
import { C as u, du as M, Y as T, m as F, Z as V, af as z, ak as G, E as A, ay as U, I as L, a7 as D, bx as H, a as $, aH as J, bo as _, cS as K, V as Q, k as Z, n as X, l as Y, bc as ee, aI as te } from "./index2.js";
|
|
8
8
|
import { g as ie, aD as re } from "./index.js";
|
|
9
9
|
import { q as x, C as h, h as ne } from "./index3.js";
|
|
10
10
|
import { g as C } from "./series-types.js";
|
|
@@ -3,7 +3,7 @@ import { substitute as w } from "@arcgis/core/intl.js";
|
|
|
3
3
|
import { cloneDeep as G, isEmpty as Ye, memoize as We } from "lodash-es";
|
|
4
4
|
import { S as ne } from "./common.js";
|
|
5
5
|
import { s as D, u as E, a as Ie, g as ye, b as Le, c as He, d as Xe, e as pe } from "./utils.js";
|
|
6
|
-
import { w as I, i as Ue,
|
|
6
|
+
import { w as I, i as Ue, dh as W, cn as je, bC as Ke, a$ as De, x as Ze, Y as J, cS as _e, cR as Qe, p as ze, aJ as me, ct as Ge, d as Je, aI as et, I as tt, a7 as st, bx as it, W as at, e as rt, bI as nt, dr as ot, v as lt, dx as fe, cb as ut, dy as ct, c7 as dt, B as yt, N as Se, bL as Z, du as mt, bj as Y, bP as _, ap as U, a6 as Ne, bd as P, bc as gt, k as oe, bt as pt, bB as ft, bs as O, bA as V, bp as Fe, br as xe } from "./index2.js";
|
|
7
7
|
import { a as M, s as ge, g as ee, b as he, c as St } from "./data.js";
|
|
8
8
|
import { u as T, r as v, k as Ft, d as k, n as L, m as H, p as xt, t as ht, s as le } from "./chart-object-literals.js";
|
|
9
9
|
import { R as Oe, i as Tt } from "./rest-js-object-literals.js";
|
|
@@ -185,7 +185,6 @@ async function jt(s) {
|
|
|
185
185
|
queryObject: e,
|
|
186
186
|
queryConfig: S,
|
|
187
187
|
featureCount: F,
|
|
188
|
-
returnStatisticsAggregatedIds: !0,
|
|
189
188
|
errorStrings: i,
|
|
190
189
|
abortSignal: r
|
|
191
190
|
}), g = Array.from(
|
package/dist/chunks/utils.js
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { g as $ } from "./series-types.js";
|
|
5
|
-
import { l as E, d as S, q as U, D as H } from "./index3.js";
|
|
6
|
-
import { bw as K, ap as I, ag as P, h as O, cr as L, cs as V, aJ as X, a6 as h } from "./index2.js";
|
|
7
|
-
import { q as R, u as f, r as A, p as G } from "./chart-object-literals.js";
|
|
2
|
+
import { q, u as f, r as A, p as C } from "./chart-object-literals.js";
|
|
3
|
+
import { bw as j, ap as I, ag as k, h as O, cq as L, cr as V, aJ as M, a6 as b } from "./index2.js";
|
|
8
4
|
import { d as T } from "./type-guards.js";
|
|
5
|
+
import { l as W, d as S, q as $, D as E } from "./index3.js";
|
|
6
|
+
import { substitute as h } from "@arcgis/core/intl.js";
|
|
7
|
+
import { w as U, H, M as K, T as P, F as X, x as R } from "./index.js";
|
|
8
|
+
import { g as G } from "./series-types.js";
|
|
9
9
|
function se(s, e, i) {
|
|
10
10
|
const t = s?.axes?.[e];
|
|
11
|
-
t?.title !== void 0 ? t.title.content.text = i : t !== void 0 && (t.title =
|
|
11
|
+
t?.title !== void 0 ? t.title.content.text = i : t !== void 0 && (t.title = H({
|
|
12
12
|
text: i,
|
|
13
13
|
visible: !0,
|
|
14
|
-
font:
|
|
14
|
+
font: K(P.AxisTitle)
|
|
15
15
|
}));
|
|
16
16
|
}
|
|
17
17
|
function ae(s) {
|
|
18
18
|
const { config: e, layerInfo: i, commonStrings: t, numericFields: a, aggregationType: r } = s;
|
|
19
19
|
let o = "";
|
|
20
20
|
if (e)
|
|
21
|
-
if (
|
|
21
|
+
if (W(e) === q.Stacked100)
|
|
22
22
|
o = t.utilsStrings.statistics.percent;
|
|
23
23
|
else {
|
|
24
|
-
const d =
|
|
24
|
+
const d = U(r, t);
|
|
25
25
|
if (e.series[0]?.type === f.HeatSeries)
|
|
26
26
|
o = S(i.layerFieldsInfo, e.series[0].y);
|
|
27
27
|
else if (a.length === 1) {
|
|
28
28
|
const g = S(i.layerFieldsInfo, a[0]), n = I(i.layer).idField;
|
|
29
|
-
r === A.NoAggregation ? o = g : r === A.Count && n !== void 0 && a[0] === n ? o = t.utilsStrings.statistics.count : o =
|
|
29
|
+
r === A.NoAggregation ? o = g : r === A.Count && n !== void 0 && a[0] === n ? o = t.utilsStrings.statistics.count : o = h(t.axisLabels.aggregationOfFieldName, {
|
|
30
30
|
aggregation: d,
|
|
31
31
|
fieldName: g
|
|
32
32
|
});
|
|
33
|
-
} else a.length > 1 && (r === A.NoAggregation ? o = t.axisLabels.values : o =
|
|
33
|
+
} else a.length > 1 && (r === A.NoAggregation ? o = t.axisLabels.values : o = h(t.axisLabels.aggregationOfValues, {
|
|
34
34
|
aggregation: d
|
|
35
35
|
}));
|
|
36
36
|
}
|
|
37
37
|
return o;
|
|
38
38
|
}
|
|
39
|
-
const B = (s, e, i) => s.axes?.[e] ??
|
|
39
|
+
const B = (s, e, i) => s.axes?.[e] ?? R(i, s.type)[e], w = (s) => {
|
|
40
40
|
const { config: e, axis: i, axisIndex: t } = s;
|
|
41
41
|
e.axes !== void 0 && (e.axes[t] = i);
|
|
42
42
|
}, re = (s) => {
|
|
@@ -46,7 +46,7 @@ const B = (s, e, i) => s.axes?.[e] ?? W(i, s.type)[e], w = (s) => {
|
|
|
46
46
|
}, N = (s) => {
|
|
47
47
|
const { config: e, value: i, axisIndex: t, isMax: a } = s, r = e?.axes?.[t];
|
|
48
48
|
r !== void 0 && (a ? r.maximum = i : r.minimum = i);
|
|
49
|
-
}, oe = (s) => s.axes?.[0]?.valueFormat ??
|
|
49
|
+
}, oe = (s) => s.axes?.[0]?.valueFormat ?? X(), ne = (s, e, i) => {
|
|
50
50
|
const t = B(s, 0, e);
|
|
51
51
|
if (t !== void 0 && i !== void 0) {
|
|
52
52
|
const a = {
|
|
@@ -59,7 +59,7 @@ const B = (s, e, i) => s.axes?.[e] ?? W(i, s.type)[e], w = (s) => {
|
|
|
59
59
|
const t = s.axes?.[e];
|
|
60
60
|
t !== void 0 && (t.integerOnlyValues = i);
|
|
61
61
|
}, J = (s) => {
|
|
62
|
-
const e =
|
|
62
|
+
const e = G(s.series);
|
|
63
63
|
return e === f.BarSeries || e === f.ComboLineAndBarSeries || e === f.LineSeries;
|
|
64
64
|
}, Q = (s) => {
|
|
65
65
|
const { axisIndex: e, config: i, isMultiAxis: t } = s;
|
|
@@ -71,7 +71,7 @@ const B = (s, e, i) => s.axes?.[e] ?? W(i, s.type)[e], w = (s) => {
|
|
|
71
71
|
}, v = (s, e) => {
|
|
72
72
|
let i;
|
|
73
73
|
const t = e.axes?.[s]?.valueFormat;
|
|
74
|
-
return (s === 0 || s >= 1 &&
|
|
74
|
+
return (s === 0 || s >= 1 && j(t)) && (i = t), i;
|
|
75
75
|
}, ue = (s) => {
|
|
76
76
|
const { config: e, commonStrings: i, valueFormat: t, axisIndex: a = 0 } = s, r = B(e, a, i);
|
|
77
77
|
if (r !== void 0 && t !== void 0) {
|
|
@@ -96,7 +96,7 @@ async function xe(s) {
|
|
|
96
96
|
const { config: e, layer: i, xAxisField: t, splitByField: a, layerFieldsInfo: r, aggregationFields: o, fetchNullValues: u, errorStrings: d } = s, n = r.filter((F) => F.name === a)[0]?.type, x = u !== !0 ? `${a} IS NOT NULL` : "", l = t && u !== !0 ? `${t} IS NOT NULL` : "", { where: m } = e?.dataFilters ?? {}, D = {
|
|
97
97
|
where: O([m, x, l]),
|
|
98
98
|
// excluding the null values from the list
|
|
99
|
-
orderByFields:
|
|
99
|
+
orderByFields: $(a) ? [] : [`${a} ${C.Ascending}`],
|
|
100
100
|
// default sorting ascending for split-by field
|
|
101
101
|
geometry: e?.dataFilters?.geometry
|
|
102
102
|
};
|
|
@@ -106,18 +106,16 @@ async function xe(s) {
|
|
|
106
106
|
layer: i,
|
|
107
107
|
category: e?.series[0].x ?? "",
|
|
108
108
|
splitByField: a
|
|
109
|
-
}) :
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
})).keys()
|
|
117
|
-
) : [];
|
|
109
|
+
}) : await V({
|
|
110
|
+
queryObject: i,
|
|
111
|
+
category: e?.series[0].x ?? "",
|
|
112
|
+
splitByField: a,
|
|
113
|
+
queryConfig: D,
|
|
114
|
+
errorStrings: d
|
|
115
|
+
}) : [];
|
|
118
116
|
if (y = y.slice(0, 500), e) {
|
|
119
|
-
const F = e?.series.map((c) =>
|
|
120
|
-
y =
|
|
117
|
+
const F = e?.series.map((c) => M({ where: c.query?.where })?.toString() ?? "").filter((c) => c !== void 0 && c !== "");
|
|
118
|
+
y = E({
|
|
121
119
|
arrayA: y,
|
|
122
120
|
arrayB: F,
|
|
123
121
|
getKey: (c) => c === null ? null : c?.toString()
|
|
@@ -135,7 +133,7 @@ function ye(s, e) {
|
|
|
135
133
|
return i;
|
|
136
134
|
}
|
|
137
135
|
function me(s, e) {
|
|
138
|
-
const i =
|
|
136
|
+
const i = k(s);
|
|
139
137
|
let t = e.length === 0, a = 0;
|
|
140
138
|
for (const r of e) {
|
|
141
139
|
for (const o of i)
|
|
@@ -173,16 +171,16 @@ async function Fe(s) {
|
|
|
173
171
|
fetchNullValues: u
|
|
174
172
|
})).map((x) => {
|
|
175
173
|
const l = String(x);
|
|
176
|
-
return
|
|
174
|
+
return b({
|
|
177
175
|
queryObject: e.layer,
|
|
178
176
|
fieldName: t,
|
|
179
177
|
fieldValue: l
|
|
180
178
|
}) ?? l;
|
|
181
179
|
}) : n = // fetch unique category values asynchronously
|
|
182
|
-
|
|
180
|
+
(await V({ queryObject: r, category: t, queryConfig: g, errorStrings: a })).map(
|
|
183
181
|
(x) => {
|
|
184
182
|
const l = String(x);
|
|
185
|
-
return
|
|
183
|
+
return b({
|
|
186
184
|
queryObject: e.layer,
|
|
187
185
|
fieldName: t,
|
|
188
186
|
fieldValue: l
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { isEqual as ue, capitalize as
|
|
2
|
+
import { isEqual as ue, capitalize as B, isNumber as W, zip as ae } from "lodash-es";
|
|
3
3
|
import { d as Y } from "./interfaces.js";
|
|
4
4
|
import { g as ce, a as q, b as oe, c as z } from "./box-plot-data.js";
|
|
5
5
|
import { g as fe } from "./histogram-data.js";
|
|
@@ -7,8 +7,8 @@ import { g as me, a as de, b as ye } from "./pie-chart-data.js";
|
|
|
7
7
|
import { g 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 _, a as pe } from "./data.js";
|
|
10
|
-
import { Y as U, ap as be, af as xe, aM as E, cL as Fe, B as V, a6 as De, bj as Se,
|
|
11
|
-
import { k as H, az as $, g as R, as as
|
|
10
|
+
import { Y as U, ap as be, af as xe, aM as E, cL as Fe, B as V, a6 as De, bj as Se, dw as Be } from "./index2.js";
|
|
11
|
+
import { k as H, az as $, g as R, as as ve, b as he, a as Q } from "./index.js";
|
|
12
12
|
import { q as K, C as g, F as A } from "./index3.js";
|
|
13
13
|
import { g as Pe } from "./series-types.js";
|
|
14
14
|
import { V as Ve } from "./index5.js";
|
|
@@ -56,7 +56,7 @@ function G(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) => J({ 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) => J({ value:
|
|
159
|
+
l.forEach((v) => {
|
|
160
|
+
const b = f.map((x) => J({ value: v[x], quoteAll: i, locale: r, roundDecimals: n }));
|
|
161
161
|
u.push(b.join(p));
|
|
162
162
|
}), c += u.join(`\r
|
|
163
163
|
`);
|
|
@@ -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 ? Be(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,11 +293,11 @@ 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[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: v }, d = { label: n.y, value: b };
|
|
298
298
|
if (n.xTemporalBinning !== void 0) {
|
|
299
299
|
const { label: F, value: S } = G({
|
|
300
|
-
value: Number(
|
|
300
|
+
value: Number(v),
|
|
301
301
|
config: e,
|
|
302
302
|
formatLocale: i,
|
|
303
303
|
unit: n.xTemporalBinning.unit,
|
|
@@ -323,9 +323,9 @@ function Te(l) {
|
|
|
323
323
|
});
|
|
324
324
|
}
|
|
325
325
|
function Re(l, e, t) {
|
|
326
|
-
const a = fe(l), o = `${
|
|
326
|
+
const a = fe(l), o = `${B(Y.Min)} of ${a}`, i = `${B(Y.Max)} of ${a}`, r = `${B(Y.Count)} of ${a}`;
|
|
327
327
|
return e.map((n) => {
|
|
328
|
-
const { minValue: s, maxValue: c, count: f } = n, u = W(s), p = W(c),
|
|
328
|
+
const { minValue: s, maxValue: c, count: f } = n, u = W(s), p = W(c), v = W(f), b = {};
|
|
329
329
|
if (u && (b[o] = h({
|
|
330
330
|
value: s,
|
|
331
331
|
originalValue: s,
|
|
@@ -346,7 +346,7 @@ function Re(l, e, t) {
|
|
|
346
346
|
});
|
|
347
347
|
b.Label = `${String(x ?? "")} - ${String(D ?? "")}`;
|
|
348
348
|
}
|
|
349
|
-
return
|
|
349
|
+
return v && (b[r] = f), b;
|
|
350
350
|
});
|
|
351
351
|
}
|
|
352
352
|
function Ie(l, e, t) {
|
|
@@ -355,7 +355,7 @@ function Ie(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 = B(c), u = le(e), p = U(e.series), v = ie(e), b = ge(e), { idField: x, isTraditionalTypeOID: D } = be(xe(a)), m = D && u.length === 1 && u[0] === x;
|
|
359
359
|
let d;
|
|
360
360
|
switch (p) {
|
|
361
361
|
case g.BarAndLineNoAggregation:
|
|
@@ -434,7 +434,7 @@ function Ke(l) {
|
|
|
434
434
|
useRendererLabel: r,
|
|
435
435
|
timeZone: n
|
|
436
436
|
});
|
|
437
|
-
return
|
|
437
|
+
return v.map((P, C) => {
|
|
438
438
|
const w = ee({
|
|
439
439
|
config: e,
|
|
440
440
|
splitByField: b,
|
|
@@ -462,7 +462,7 @@ function Ke(l) {
|
|
|
462
462
|
formatter: i?.xAxisLabelFormatter,
|
|
463
463
|
useRendererLabel: r,
|
|
464
464
|
timeZone: n
|
|
465
|
-
}), S = Ie(y, u[0],
|
|
465
|
+
}), S = Ie(y, u[0], v), P = y[b], C = v.findIndex((I) => $e(I, P)), w = ee({
|
|
466
466
|
config: e,
|
|
467
467
|
splitByField: b,
|
|
468
468
|
splitByValue: P,
|
|
@@ -504,11 +504,11 @@ 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 = _({
|
|
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
|
|
@@ -527,7 +527,7 @@ function Ee(l) {
|
|
|
527
527
|
return c === g.PieFromCategory && x.toLowerCase() === b.name.toLowerCase() && (y = b.description, F = b.name), d[y] = h({
|
|
528
528
|
value: D[F],
|
|
529
529
|
originalValue: D[F]
|
|
530
|
-
}), d[
|
|
530
|
+
}), d[B($.trim())] = h({
|
|
531
531
|
value: D[`${F}${$}`],
|
|
532
532
|
originalValue: D[`${F}${$}`]
|
|
533
533
|
}), d;
|
|
@@ -540,7 +540,7 @@ function Ee(l) {
|
|
|
540
540
|
}), d.Value = h({
|
|
541
541
|
value: m[x],
|
|
542
542
|
originalValue: m[x]
|
|
543
|
-
}), d[
|
|
543
|
+
}), d[B($.trim())] = h({
|
|
544
544
|
value: m[`${x}${$}`],
|
|
545
545
|
originalValue: m[`${x}${$}`]
|
|
546
546
|
})), d;
|
|
@@ -569,13 +569,13 @@ function T(l) {
|
|
|
569
569
|
fieldList: r,
|
|
570
570
|
timeZone: n
|
|
571
571
|
});
|
|
572
|
-
t[s] = x, t[
|
|
572
|
+
t[s] = x, t[B(V.Outlier)] = e[u];
|
|
573
573
|
break;
|
|
574
574
|
}
|
|
575
575
|
case g.BoxPlotMultiFieldsAndCategory: {
|
|
576
|
-
t[
|
|
576
|
+
t[B(s)] = e[s], u = `${c.find(
|
|
577
577
|
(D) => Object.keys(e).some((m) => m.toLowerCase().includes(D.toLowerCase()))
|
|
578
|
-
) ?? ""}_${u}`, t[
|
|
578
|
+
) ?? ""}_${u}`, t[B(V.Outlier)] = e[u];
|
|
579
579
|
break;
|
|
580
580
|
}
|
|
581
581
|
case g.BoxPlotMonoFieldAndSplitBy:
|
|
@@ -587,7 +587,7 @@ function T(l) {
|
|
|
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[B(f)] = D, t[B(V.Outlier)] = e[u];
|
|
591
591
|
break;
|
|
592
592
|
}
|
|
593
593
|
case g.BoxPlotMonoFieldAndCategoryAndSplitBy: {
|
|
@@ -598,25 +598,25 @@ function T(l) {
|
|
|
598
598
|
fieldList: r,
|
|
599
599
|
timeZone: n
|
|
600
600
|
});
|
|
601
|
-
u = `${x}_${u}`, t[
|
|
601
|
+
u = `${x}_${u}`, t[B(s)] = e[s], t[B(f)] = D, t[B(V.Outlier)] = e[u];
|
|
602
602
|
break;
|
|
603
603
|
}
|
|
604
604
|
case g.BoxPlotMonoField:
|
|
605
605
|
case g.BoxPlotMultiFields:
|
|
606
606
|
default: {
|
|
607
|
-
t.Field = e[p], t[
|
|
607
|
+
t.Field = e[p], t[B(V.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[`${B(V.Outlier)} Z-Score`] = b);
|
|
613
613
|
}
|
|
614
614
|
function Ue(l) {
|
|
615
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 = z(a), u = q(a);
|
|
616
616
|
let p = "";
|
|
617
617
|
switch (s) {
|
|
618
618
|
case g.BoxPlotMonoFieldAndSplitBy: {
|
|
619
|
-
p = `${o}_${f}`, t.Field = e[R], t[
|
|
619
|
+
p = `${o}_${f}`, t.Field = e[R], t[B(f)] = M({
|
|
620
620
|
field: f,
|
|
621
621
|
value: e[p],
|
|
622
622
|
layer: i,
|
|
@@ -626,7 +626,7 @@ function Ue(l) {
|
|
|
626
626
|
break;
|
|
627
627
|
}
|
|
628
628
|
case g.BoxPlotMultiFieldsAndSplitBy: {
|
|
629
|
-
p = `${o}_${V.Average}`, t.Field = e[R], t[
|
|
629
|
+
p = `${o}_${V.Average}`, t.Field = e[R], t[B(f)] = M({
|
|
630
630
|
field: f,
|
|
631
631
|
value: e[p],
|
|
632
632
|
layer: i,
|
|
@@ -636,7 +636,7 @@ function Ue(l) {
|
|
|
636
636
|
break;
|
|
637
637
|
}
|
|
638
638
|
case g.BoxPlotMonoFieldAndCategoryAndSplitBy: {
|
|
639
|
-
p = `${o}_${V.Average}`, t[u] = e[u], t[
|
|
639
|
+
p = `${o}_${V.Average}`, t[u] = e[u], t[B(f)] = M({
|
|
640
640
|
field: f,
|
|
641
641
|
value: o,
|
|
642
642
|
layer: i,
|
|
@@ -646,16 +646,16 @@ function Ue(l) {
|
|
|
646
646
|
break;
|
|
647
647
|
}
|
|
648
648
|
}
|
|
649
|
-
t[
|
|
650
|
-
const
|
|
651
|
-
b !== void 0 && (t[`${
|
|
649
|
+
t[B(V.Average)] = c;
|
|
650
|
+
const v = `${String(c)}${Q}`, b = e[v];
|
|
651
|
+
b !== void 0 && (t[`${B(V.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
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),
|
|
658
|
+
const p = q(e), v = oe(e), b = ie(e), x = z(e);
|
|
659
659
|
let D;
|
|
660
660
|
switch (c) {
|
|
661
661
|
case g.BoxPlotMonoField:
|
|
@@ -708,7 +708,7 @@ function Ze(l) {
|
|
|
708
708
|
}
|
|
709
709
|
case g.BoxPlotMultiFieldsAndCategory: {
|
|
710
710
|
D = t.flatMap(
|
|
711
|
-
(m) =>
|
|
711
|
+
(m) => v.map((d) => {
|
|
712
712
|
const y = {};
|
|
713
713
|
let F = "";
|
|
714
714
|
if (y.Field = d, m[A.boxPlot.boxPlotOutlierId])
|