@arcgis/charts-components 5.2.0-next.60 → 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/{BXBY6D2F.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/4HNA5BEL.js +2 -0
- 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/{JBFVGQSP.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/{XM2GVJT3.js → DQXO7PWX.js} +1 -1
- package/dist/cdn/{6MNV7FJC.js → DT4C4JZW.js} +1 -1
- package/dist/cdn/{SYVPFDIW.js → EEF2GZWF.js} +1 -1
- package/dist/cdn/ELRXL4GL.js +2 -0
- package/dist/cdn/{6DOANSRL.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/{Z3LGGHZN.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/{ZLXYBOM3.js → IP7NR32G.js} +1 -1
- package/dist/cdn/IPMFDZBI.js +2 -0
- 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/JYS5HVHP.js +2 -0
- package/dist/cdn/{HOIPLQXD.js → KBMGQ3H6.js} +1 -1
- package/dist/cdn/{EAV3KAS7.js → KO6XLCKT.js} +1 -1
- package/dist/cdn/LK7Y2TPS.js +2 -0
- 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/{5EYVH3PA.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/{Y2WHHAAA.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/QS6QHTAG.js +2 -0
- package/dist/cdn/{A36KQ6YP.js → QSFEGKYQ.js} +1 -1
- package/dist/cdn/{M744CFJ2.js → QXN2LIUA.js} +1 -1
- package/dist/cdn/{QTSF2LK7.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/WOE4UHYG.js +2 -0
- package/dist/cdn/WUUBA4AY.js +2 -0
- package/dist/cdn/{P5QEJOJS.js → X3B7R2CE.js} +1 -1
- package/dist/cdn/{JYITKARU.js → X4RUTR6U.js} +1 -1
- package/dist/cdn/{5MPXETTU.js → X7BEP5KL.js} +1 -1
- package/dist/cdn/{INISFVAK.js → XM6OTYSW.js} +1 -1
- package/dist/cdn/XS5G7ML2.js +2 -0
- package/dist/cdn/{KWA7OWHO.js → YN4QD76O.js} +1 -1
- package/dist/cdn/YQJBJRP7.js +2 -0
- 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/bar-chart-model.js +10 -10
- package/dist/chunks/box-plot-data.js +271 -279
- package/dist/chunks/box-plot-model.js +161 -146
- package/dist/chunks/chart-model.js +1 -1
- package/dist/chunks/class-breaks.js +66 -66
- package/dist/chunks/combo-bar-line-chart-model.js +12 -12
- package/dist/chunks/data.js +1 -1
- package/dist/chunks/gauge-model.js +1 -1
- package/dist/chunks/heat-chart-model.js +25 -25
- package/dist/chunks/histogram-model.js +1 -1
- package/dist/chunks/index2.js +2026 -2088
- package/dist/chunks/index4.js +1 -1
- package/dist/chunks/line-chart-model.js +11 -11
- package/dist/chunks/model-with-x-guides.js +5 -5
- package/dist/chunks/model-with-y-guides.js +33 -48
- package/dist/chunks/pie-chart-data.js +165 -189
- package/dist/chunks/pie-chart-model.js +9 -9
- package/dist/chunks/radar-chart-model.js +7 -7
- package/dist/chunks/scatterplot-model.js +1 -1
- package/dist/chunks/serial-chart-data.js +745 -770
- package/dist/chunks/serial-chart-model.js +19 -11
- package/dist/chunks/utils.js +36 -38
- package/dist/chunks/web-component-utils.js +38 -38
- package/dist/chunks/x-bounds.js +1 -1
- package/dist/components/arcgis-chart/customElement.d.ts +53 -11
- package/dist/components/arcgis-chart/customElement.js +2226 -2210
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +67 -68
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +5 -5
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +171 -172
- package/dist/model/box-plot-model/box-plot-model.d.ts +7 -1
- package/dist/model/heat-chart-model/heat-chart-model.d.ts +20 -0
- package/dist/model/mixins/model-with-multi-axes.d.ts +61 -98
- package/dist/model/serial-chart-model/serial-chart-model.d.ts +12 -1
- 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/3UHXOKCR.js +0 -2
- package/dist/cdn/54W4C75M.js +0 -2
- package/dist/cdn/6PIQ2O5S.js +0 -2
- package/dist/cdn/7CMQGTU6.js +0 -2
- package/dist/cdn/EBSQRCQQ.js +0 -2
- package/dist/cdn/EDVN42ME.js +0 -2
- package/dist/cdn/H2EMIJME.js +0 -2
- package/dist/cdn/JEVWE6ER.js +0 -2
- package/dist/cdn/O3DJD5IR.js +0 -2
- package/dist/cdn/V5W5LNFT.js +0 -2
- package/dist/cdn/V6LKZUEZ.js +0 -3
- package/dist/cdn/XKZ44LA2.js +0 -2
- package/dist/cdn/YVSZN6IH.js +0 -2
|
@@ -1,271 +1,247 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { substitute as O } from "@arcgis/core/intl.js";
|
|
3
|
-
import {
|
|
3
|
+
import { isEmpty as E, isNull as M, cloneDeep as U } from "lodash-es";
|
|
4
4
|
import { P as g, a as y } from "./common.js";
|
|
5
|
-
import { g as
|
|
6
|
-
import { g as
|
|
5
|
+
import { g as x, u as L } from "./utils.js";
|
|
6
|
+
import { g as W } from "./data.js";
|
|
7
7
|
import { b as k } from "./series-length.js";
|
|
8
|
-
import { g as
|
|
9
|
-
import { X
|
|
8
|
+
import { g as _ } from "./utils2.js";
|
|
9
|
+
import { X, w as z, a6 as G } from "./index.js";
|
|
10
10
|
import { d as P } from "./index3.js";
|
|
11
|
-
import { m as
|
|
12
|
-
import { i as
|
|
13
|
-
import { r as
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
return a === l || d;
|
|
11
|
+
import { m as A, ap as B, n as w } from "./index2.js";
|
|
12
|
+
import { i as K } from "./index4.js";
|
|
13
|
+
import { r as p, p as C, n as f } from "./chart-object-literals.js";
|
|
14
|
+
function v(s) {
|
|
15
|
+
const { config: t, layerInfo: e, mode: i, commonStrings: r } = s, o = e !== void 0 ? D({ config: t, layerInfo: e, commonStrings: r, mode: i }) : "", d = k(t), l = K(t);
|
|
16
|
+
return o === d || l;
|
|
18
17
|
}
|
|
19
|
-
function
|
|
20
|
-
const { config: t, layerInfo: e, mode: i, commonStrings:
|
|
18
|
+
function I(s) {
|
|
19
|
+
const { config: t, layerInfo: e, mode: i, commonStrings: r } = s, o = e !== void 0 ? x({
|
|
21
20
|
config: t,
|
|
22
21
|
layerInfo: e,
|
|
23
|
-
commonStrings:
|
|
24
|
-
numericFields:
|
|
25
|
-
aggregationType:
|
|
26
|
-
}) : "",
|
|
27
|
-
return
|
|
22
|
+
commonStrings: r,
|
|
23
|
+
numericFields: m(t),
|
|
24
|
+
aggregationType: F(t, i)
|
|
25
|
+
}) : "", d = _(1, t), l = K(t);
|
|
26
|
+
return o === d || l;
|
|
28
27
|
}
|
|
29
|
-
const
|
|
30
|
-
function
|
|
31
|
-
const e =
|
|
32
|
-
return [`${t === g.Category ? e.y :
|
|
28
|
+
const b = (s) => s.series?.[0]?.x ?? "";
|
|
29
|
+
function H(s, t) {
|
|
30
|
+
const e = s.series?.[0];
|
|
31
|
+
return [`${t === g.Category ? e.y : w} ${C.Descending}`];
|
|
33
32
|
}
|
|
34
|
-
const
|
|
33
|
+
const Y = (s, t) => {
|
|
35
34
|
let e = y.valueDesc;
|
|
36
|
-
const i =
|
|
37
|
-
return i ===
|
|
38
|
-
},
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
) ?? [r.series?.[0]?.y ?? ""], t.filter((e) => e !== "");
|
|
46
|
-
},
|
|
47
|
-
// using series array address as key, since a change to the numeric fields will always rebuild a fresh series array
|
|
48
|
-
(r) => r.series
|
|
49
|
-
), T = (r, t) => {
|
|
50
|
-
const e = f(r);
|
|
35
|
+
const i = s.orderOptions?.data?.orderType ?? H(s, t), r = s.orderOptions?.data && "orderBy" in s.orderOptions.data ? s.orderOptions.data.orderBy : C.Descending;
|
|
36
|
+
return i === f.Category && Array.isArray(r) ? e = y.customSort : i === f.Category ? r === C.Ascending ? e = y.labelAsc : e = y.labelDesc : r === C.Ascending ? e = y.valueAsc : e = y.valueDesc, e;
|
|
37
|
+
}, m = (s) => {
|
|
38
|
+
let t = [];
|
|
39
|
+
return t = s.series?.[0]?.query?.outStatistics?.map(
|
|
40
|
+
(e) => e.onStatisticField
|
|
41
|
+
) ?? [s.series?.[0]?.y ?? ""], t.filter((e) => e !== "");
|
|
42
|
+
}, F = (s, t) => {
|
|
43
|
+
const e = m(s);
|
|
51
44
|
let i;
|
|
52
|
-
return t === g.Fields && e.length === 0 ? i =
|
|
45
|
+
return t === g.Fields && e.length === 0 ? i = p.Sum : i = s.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? p.NoAggregation, i;
|
|
53
46
|
};
|
|
54
|
-
function
|
|
55
|
-
const { config: t, layerInfo: e, mode: i, commonStrings:
|
|
56
|
-
...
|
|
57
|
-
x: i === g.Category ?
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
content: { ...l.dataLabels?.content, ...c?.content, type: J.TS },
|
|
63
|
-
visible: c?.visible ?? !1
|
|
64
|
-
},
|
|
65
|
-
innerRadiusSize: t.series?.[0]?.innerRadius,
|
|
66
|
-
sliceGrouping: t.series?.[0]?.sliceGrouping,
|
|
67
|
-
dataLabelsCharacterLimit: t.series?.[0]?.dataLabelsCharacterLimit,
|
|
68
|
-
numericValueFormat: t.series?.[0]?.numericValueFormat,
|
|
69
|
-
percentValueFormat: t.series?.[0]?.percentValueFormat,
|
|
70
|
-
displayCategoryOnDataLabel: t.series?.[0]?.displayCategoryOnDataLabel,
|
|
71
|
-
displayNumericValueOnDataLabel: t.series?.[0]?.displayNumericValueOnDataLabel,
|
|
72
|
-
displayPercentageOnDataLabel: t.series?.[0]?.displayPercentageOnDataLabel
|
|
73
|
-
}, n = T(t, i);
|
|
74
|
-
if (n !== m.NoAggregation && a !== void 0) {
|
|
75
|
-
const u = `${n}_${a}_0`.toUpperCase();
|
|
76
|
-
o.y = i === g.Category ? u : V, o.query = {
|
|
47
|
+
function j(s) {
|
|
48
|
+
const { config: t, layerInfo: e, mode: i, commonStrings: r } = s, o = B(e?.layer).idField, d = t.series[0] ?? G(r, o), l = b(t), c = {
|
|
49
|
+
...d,
|
|
50
|
+
x: i === g.Category ? l : A
|
|
51
|
+
}, a = F(t, i);
|
|
52
|
+
if (a !== p.NoAggregation && o !== void 0) {
|
|
53
|
+
const n = `${a}_${o}_0`.toUpperCase();
|
|
54
|
+
c.y = i === g.Category ? n : w, c.query = {
|
|
77
55
|
outStatistics: i === g.Category ? [
|
|
78
56
|
{
|
|
79
|
-
statisticType:
|
|
80
|
-
onStatisticField:
|
|
81
|
-
outStatisticFieldName:
|
|
57
|
+
statisticType: a,
|
|
58
|
+
onStatisticField: o,
|
|
59
|
+
outStatisticFieldName: n
|
|
82
60
|
}
|
|
83
61
|
] : []
|
|
84
62
|
};
|
|
85
63
|
}
|
|
86
|
-
return i === g.Category &&
|
|
64
|
+
return i === g.Category && c.query !== void 0 ? c.query.groupByFieldsForStatistics = [l] : delete c.query?.groupByFieldsForStatistics, U(c);
|
|
87
65
|
}
|
|
88
|
-
function D(
|
|
89
|
-
const { config: t, layerInfo: e, mode: i, commonStrings:
|
|
66
|
+
function D(s) {
|
|
67
|
+
const { config: t, layerInfo: e, mode: i, commonStrings: r } = s, { layerFieldsInfo: o } = e, { idField: d, isTraditionalTypeOID: l } = B(e.layer), c = b(t), a = m(t), n = F(t, i), u = l && (a.length === 0 || a.includes(d)), h = z(n, r), q = u ? "" : a.map(($) => P(o ?? [], $)).join(", "), T = P(o ?? [], c);
|
|
90
68
|
let S = "", N;
|
|
91
|
-
return i === g.Fields ? N =
|
|
92
|
-
aggregationFields: u ?
|
|
93
|
-
category:
|
|
94
|
-
}) : n ===
|
|
95
|
-
aggregationType:
|
|
96
|
-
category:
|
|
97
|
-
}) :
|
|
98
|
-
aggregationType:
|
|
99
|
-
aggregationFields:
|
|
100
|
-
}) : S = O(
|
|
101
|
-
aggregationType:
|
|
102
|
-
aggregationFields:
|
|
103
|
-
category:
|
|
69
|
+
return i === g.Fields ? N = a.length === 0 : N = c === "", N ? S = r.utilsStrings.chartType.pieChart : n === p.NoAggregation ? S = O(r.titleLabels.aggrFieldsByCategory, {
|
|
70
|
+
aggregationFields: u ? d : q,
|
|
71
|
+
category: T
|
|
72
|
+
}) : n === p.Count ? S = O(r.titleLabels.aggrTypeCategory, {
|
|
73
|
+
aggregationType: h,
|
|
74
|
+
category: T
|
|
75
|
+
}) : a.length > 0 && (T === A || E(T) || M(T) ? S = O(r.titleLabels.aggrTypeOfAggrFields, {
|
|
76
|
+
aggregationType: h,
|
|
77
|
+
aggregationFields: q
|
|
78
|
+
}) : S = O(r.titleLabels.aggrTypeOfAggrFieldsByCategory, {
|
|
79
|
+
aggregationType: h,
|
|
80
|
+
aggregationFields: q,
|
|
81
|
+
category: T
|
|
104
82
|
})), S;
|
|
105
83
|
}
|
|
106
|
-
const
|
|
107
|
-
const { newSortOrderKind: t, config: e, orderByList: i } =
|
|
84
|
+
const de = (s) => {
|
|
85
|
+
const { newSortOrderKind: t, config: e, orderByList: i } = s;
|
|
108
86
|
e.orderOptions ??= {}, t === y.customSort && i !== void 0 ? e.orderOptions.data = {
|
|
109
|
-
orderType:
|
|
87
|
+
orderType: f.Category,
|
|
110
88
|
orderBy: [...i]
|
|
111
89
|
} : e.orderOptions.data = {
|
|
112
|
-
orderType: t === y.labelAsc || t === y.labelDesc ?
|
|
113
|
-
orderBy: t === y.labelAsc || t === y.valueAsc ?
|
|
90
|
+
orderType: t === y.labelAsc || t === y.labelDesc ? f.Category : f.YValue,
|
|
91
|
+
orderBy: t === y.labelAsc || t === y.valueAsc ? C.Ascending : C.Descending
|
|
114
92
|
};
|
|
115
|
-
},
|
|
116
|
-
const { newCategory: t, config: e, layerInfo: i, mode:
|
|
117
|
-
if (e.series.forEach((
|
|
118
|
-
|
|
119
|
-
}),
|
|
120
|
-
const
|
|
121
|
-
e.series =
|
|
93
|
+
}, ce = (s) => {
|
|
94
|
+
const { newCategory: t, config: e, layerInfo: i, mode: r, commonStrings: o } = s, d = e.series?.length ?? 0, l = v({ config: e, layerInfo: i, commonStrings: o, mode: r }), c = I({ config: e, layerInfo: i, commonStrings: o, mode: r });
|
|
95
|
+
if (e.series.forEach((a) => {
|
|
96
|
+
a.x = r === g.Category ? t : A, a.query !== void 0 && t !== A ? a.query.groupByFieldsForStatistics = [t] : delete a.query?.groupByFieldsForStatistics;
|
|
97
|
+
}), d === 0) {
|
|
98
|
+
const a = [j({ config: e, layerInfo: i, mode: r, commonStrings: o })];
|
|
99
|
+
e.series = a;
|
|
122
100
|
}
|
|
123
101
|
if (i !== void 0) {
|
|
124
102
|
if (c) {
|
|
125
|
-
const n =
|
|
103
|
+
const n = x({
|
|
126
104
|
config: e,
|
|
127
105
|
layerInfo: i,
|
|
128
|
-
numericFields:
|
|
129
|
-
aggregationType:
|
|
130
|
-
commonStrings:
|
|
106
|
+
numericFields: m(e),
|
|
107
|
+
aggregationType: F(e, r),
|
|
108
|
+
commonStrings: o
|
|
131
109
|
});
|
|
132
|
-
|
|
110
|
+
L(e, 1, n);
|
|
133
111
|
}
|
|
134
|
-
e.title &&
|
|
135
|
-
const
|
|
136
|
-
|
|
112
|
+
e.title && l && (e.title.content.text = D({ config: e, layerInfo: i, commonStrings: o, mode: r }));
|
|
113
|
+
const a = r === g.Fields ? m(e).filter((n) => n !== B(i.layer).idField) : m(e);
|
|
114
|
+
J({ newNumericFields: a, config: e, layerInfo: i, mode: r, commonStrings: o });
|
|
137
115
|
}
|
|
138
116
|
};
|
|
139
|
-
function
|
|
140
|
-
const { numericFields: t, aggregationType: e, config: i, layerInfo:
|
|
117
|
+
function V(s) {
|
|
118
|
+
const { numericFields: t, aggregationType: e, config: i, layerInfo: r, mode: o, commonStrings: d } = s, { layerFieldsInfo: l } = r, c = [], a = j({
|
|
141
119
|
config: i,
|
|
142
|
-
layerInfo:
|
|
143
|
-
mode:
|
|
144
|
-
commonStrings:
|
|
145
|
-
})
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
...o.query
|
|
149
|
-
}
|
|
150
|
-
};
|
|
151
|
-
t.length <= 1 ? n.query.where = o.query?.where : delete n.query.where;
|
|
152
|
-
const u = U({
|
|
120
|
+
layerInfo: r,
|
|
121
|
+
mode: o,
|
|
122
|
+
commonStrings: d
|
|
123
|
+
});
|
|
124
|
+
a.query || (a.query = {}), t.length > 1 && delete a.query?.where;
|
|
125
|
+
const n = W({
|
|
153
126
|
config: i,
|
|
154
|
-
xAxisField:
|
|
127
|
+
xAxisField: b(i),
|
|
155
128
|
numericFields: t,
|
|
156
129
|
aggregationType: e,
|
|
157
|
-
mode:
|
|
158
|
-
layer:
|
|
159
|
-
fieldList:
|
|
130
|
+
mode: o,
|
|
131
|
+
layer: r.layer,
|
|
132
|
+
fieldList: l
|
|
160
133
|
}).name;
|
|
161
|
-
if (e !==
|
|
162
|
-
if (
|
|
134
|
+
if (e !== p.NoAggregation)
|
|
135
|
+
if (o === g.Category) {
|
|
163
136
|
if (t.length > 0) {
|
|
164
|
-
const
|
|
165
|
-
|
|
137
|
+
const u = t[0];
|
|
138
|
+
a.query.outStatistics = [
|
|
166
139
|
{
|
|
167
|
-
...
|
|
168
|
-
onStatisticField:
|
|
169
|
-
outStatisticFieldName:
|
|
140
|
+
...a.query?.outStatistics?.[0] ?? {},
|
|
141
|
+
onStatisticField: u,
|
|
142
|
+
outStatisticFieldName: n,
|
|
170
143
|
statisticType: e
|
|
171
144
|
}
|
|
172
|
-
];
|
|
145
|
+
], a.query.groupByFieldsForStatistics = [b(i)];
|
|
173
146
|
}
|
|
174
|
-
} else
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
147
|
+
} else {
|
|
148
|
+
a.query.outStatistics = [];
|
|
149
|
+
for (const u of t)
|
|
150
|
+
a.query.outStatistics?.push({
|
|
151
|
+
onStatisticField: u,
|
|
152
|
+
outStatisticFieldName: u,
|
|
179
153
|
statisticType: e
|
|
180
154
|
});
|
|
155
|
+
delete a.query.groupByFieldsForStatistics;
|
|
156
|
+
}
|
|
181
157
|
else
|
|
182
|
-
|
|
183
|
-
|
|
158
|
+
a.query = {};
|
|
159
|
+
a.y = n, c.push(a), i.series = c;
|
|
184
160
|
}
|
|
185
|
-
const
|
|
186
|
-
const { newAggregationType: t, config: e, layerInfo: i, mode:
|
|
187
|
-
if (
|
|
161
|
+
const ge = (s) => {
|
|
162
|
+
const { newAggregationType: t, config: e, layerInfo: i, mode: r, commonStrings: o } = s, d = m(e), l = v({ config: e, layerInfo: i, commonStrings: o, mode: r }), c = I({ config: e, layerInfo: i, commonStrings: o, mode: r });
|
|
163
|
+
if (V({
|
|
188
164
|
config: e,
|
|
189
165
|
layerInfo: i,
|
|
190
|
-
numericFields:
|
|
166
|
+
numericFields: d,
|
|
191
167
|
aggregationType: t,
|
|
192
|
-
commonStrings:
|
|
193
|
-
mode:
|
|
168
|
+
commonStrings: o,
|
|
169
|
+
mode: r
|
|
194
170
|
}), c) {
|
|
195
|
-
const
|
|
171
|
+
const h = x({
|
|
196
172
|
config: e,
|
|
197
173
|
layerInfo: i,
|
|
198
|
-
commonStrings:
|
|
199
|
-
numericFields:
|
|
200
|
-
aggregationType:
|
|
174
|
+
commonStrings: o,
|
|
175
|
+
numericFields: m(e),
|
|
176
|
+
aggregationType: F(e, r)
|
|
201
177
|
});
|
|
202
|
-
|
|
178
|
+
L(e, 1, h);
|
|
203
179
|
}
|
|
204
|
-
e.title &&
|
|
205
|
-
const
|
|
180
|
+
e.title && l && (e.title.content.text = D({ config: e, layerInfo: i, commonStrings: o, mode: r }));
|
|
181
|
+
const a = e.series?.[0]?.displayCategoryOnDataLabel, n = e.series?.[0]?.displayNumericValueOnDataLabel, u = e.series?.[0]?.displayPercentageOnDataLabel;
|
|
206
182
|
e.legend = {
|
|
207
|
-
...e.legend ??
|
|
183
|
+
...e.legend ?? X(),
|
|
208
184
|
displayNumericValue: n,
|
|
209
185
|
displayPercentage: u,
|
|
210
|
-
displayCategory:
|
|
186
|
+
displayCategory: a
|
|
211
187
|
};
|
|
212
|
-
},
|
|
213
|
-
let { newNumericFields: t } =
|
|
214
|
-
const { config: e, layerInfo: i, mode:
|
|
215
|
-
let
|
|
216
|
-
const c = v({ config: e, layerInfo: i, commonStrings:
|
|
217
|
-
if (t = t === "" ? [] : t, t = typeof t == "string" ? [t] : t,
|
|
218
|
-
if (
|
|
188
|
+
}, J = (s) => {
|
|
189
|
+
let { newNumericFields: t } = s;
|
|
190
|
+
const { config: e, layerInfo: i, mode: r, commonStrings: o } = s, d = B(i?.layer).idField;
|
|
191
|
+
let l = F(e, r);
|
|
192
|
+
const c = v({ config: e, layerInfo: i, commonStrings: o, mode: r }), a = I({ config: e, layerInfo: i, commonStrings: o, mode: r });
|
|
193
|
+
if (t = t === "" ? [] : t, t = typeof t == "string" ? [t] : t, d !== void 0 && (t.length === 0 && r === g.Category ? (t.push(d), l = p.Count) : l === p.Count && t.length >= 1 && !t.includes(d) && (l = p.Sum)), i !== void 0) {
|
|
194
|
+
if (V({
|
|
219
195
|
config: e,
|
|
220
196
|
layerInfo: i,
|
|
221
|
-
commonStrings:
|
|
197
|
+
commonStrings: o,
|
|
222
198
|
numericFields: t,
|
|
223
|
-
aggregationType:
|
|
224
|
-
mode:
|
|
225
|
-
}),
|
|
226
|
-
const n =
|
|
199
|
+
aggregationType: l,
|
|
200
|
+
mode: r
|
|
201
|
+
}), a) {
|
|
202
|
+
const n = x({
|
|
227
203
|
config: e,
|
|
228
204
|
layerInfo: i,
|
|
229
|
-
commonStrings:
|
|
230
|
-
numericFields:
|
|
231
|
-
aggregationType:
|
|
205
|
+
commonStrings: o,
|
|
206
|
+
numericFields: m(e),
|
|
207
|
+
aggregationType: F(e, r)
|
|
232
208
|
});
|
|
233
|
-
|
|
209
|
+
L(e, 1, n);
|
|
234
210
|
}
|
|
235
|
-
e.title && c && (e.title.content.text = D({ config: e, layerInfo: i, commonStrings:
|
|
211
|
+
e.title && c && (e.title.content.text = D({ config: e, layerInfo: i, commonStrings: o, mode: r }));
|
|
236
212
|
} else
|
|
237
213
|
e.series.forEach((n) => {
|
|
238
214
|
delete n.query, n.y = t[0];
|
|
239
215
|
});
|
|
240
|
-
},
|
|
216
|
+
}, ye = (s, t) => {
|
|
241
217
|
let e = [];
|
|
242
|
-
const i =
|
|
243
|
-
return
|
|
244
|
-
},
|
|
245
|
-
const { values: t, config: e, mode: i } =
|
|
218
|
+
const i = s.orderOptions?.data?.orderType, r = Y(s, t), o = s.orderOptions?.data && "orderBy" in s.orderOptions.data ? s.orderOptions.data.orderBy : void 0;
|
|
219
|
+
return r === y.customSort && i === f.Category && Array.isArray(o) && (e = o), e;
|
|
220
|
+
}, ue = (s) => {
|
|
221
|
+
const { values: t, config: e, mode: i } = s;
|
|
246
222
|
e.orderOptions ??= {};
|
|
247
|
-
const
|
|
248
|
-
|
|
249
|
-
orderType:
|
|
223
|
+
const r = e.orderOptions?.data?.orderType;
|
|
224
|
+
Y(e, i) === y.customSort && r === f.Category && (e.orderOptions.data = {
|
|
225
|
+
orderType: f.Category,
|
|
250
226
|
orderBy: [...t]
|
|
251
227
|
});
|
|
252
228
|
};
|
|
253
|
-
function
|
|
254
|
-
const { category: t = "", numericFields: e = [], fallbackMode: i = g.Category } =
|
|
255
|
-
let
|
|
256
|
-
return e.length > 1 ?
|
|
229
|
+
function pe(s) {
|
|
230
|
+
const { category: t = "", numericFields: e = [], fallbackMode: i = g.Category } = s, r = t.trim() !== "" && t !== A;
|
|
231
|
+
let o = i;
|
|
232
|
+
return e.length > 1 ? o = g.Fields : r && e.length <= 1 && (o = g.Category), o;
|
|
257
233
|
}
|
|
258
234
|
export {
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
235
|
+
m as a,
|
|
236
|
+
F as b,
|
|
237
|
+
J as c,
|
|
238
|
+
ge as d,
|
|
239
|
+
Y as e,
|
|
240
|
+
de as f,
|
|
241
|
+
b as g,
|
|
242
|
+
ye as h,
|
|
243
|
+
pe as i,
|
|
244
|
+
ue as j,
|
|
269
245
|
D as k,
|
|
270
|
-
|
|
246
|
+
ce as s
|
|
271
247
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { log as W } from "@arcgis/toolkit/log";
|
|
3
3
|
import { u as p } from "./chart-object-literals.js";
|
|
4
|
-
import { Y as L, ap as
|
|
5
|
-
import { i as
|
|
4
|
+
import { Y as L, ap as A } from "./index2.js";
|
|
5
|
+
import { i as k } from "./index4.js";
|
|
6
6
|
import { X as d, a8 as T, a2 as O, aB as V, a5 as w, a6 as G } from "./index.js";
|
|
7
7
|
import { C as h } from "./index3.js";
|
|
8
8
|
import { C as z } from "./chart-model.js";
|
|
@@ -10,7 +10,7 @@ import { m as s } from "./model-setter.js";
|
|
|
10
10
|
import { b as g, P as y } from "./common.js";
|
|
11
11
|
import { M as x, a as B, W as E, b as R } from "./data-labels-visibility.js";
|
|
12
12
|
import { W as j } from "./data-labels-symbol.js";
|
|
13
|
-
import {
|
|
13
|
+
import { f as I, j as U, c as K } from "./utils.js";
|
|
14
14
|
import { i as m, a as _, g as f, s as $, c as X, b as Y, d as q, e as H, f as J, h as D, j as C, k as Q } from "./pie-chart-data.js";
|
|
15
15
|
import { cloneDeep as Z } from "lodash-es";
|
|
16
16
|
import { i as S } from "./rest-js-object-literals.js";
|
|
@@ -117,14 +117,14 @@ const ue = (t) => t.series?.[0]?.innerRadius, fe = (t, e) => {
|
|
|
117
117
|
let e;
|
|
118
118
|
const i = t.series?.[0];
|
|
119
119
|
return i?.displayNumericValueOnDataLabel === !0 && i?.displayPercentageOnDataLabel === !0 ? e = g.Both : i?.displayNumericValueOnDataLabel === !0 ? e = g.Value : e = g.Percentage, e;
|
|
120
|
-
},
|
|
120
|
+
}, Ae = (t, e) => {
|
|
121
121
|
const i = t === g.Value || t === g.Both, o = t === g.Percentage || t === g.Both;
|
|
122
122
|
e.series?.[0] && (e.series[0].displayNumericValueOnDataLabel = i, e.series[0].displayPercentageOnDataLabel = o), e.legend && (e.legend = {
|
|
123
123
|
...e.legend,
|
|
124
124
|
displayNumericValue: i,
|
|
125
125
|
displayPercentage: o
|
|
126
126
|
});
|
|
127
|
-
},
|
|
127
|
+
}, ke = (t) => t.series?.[0]?.alignDataLabels ?? !1, we = (t, e) => {
|
|
128
128
|
e.series[0] && (e.series[0].alignDataLabels = t);
|
|
129
129
|
}, Ge = (t) => t.series?.[0]?.dataLabelsInside ?? !1, ze = (t, e) => {
|
|
130
130
|
e.series[0] && (e.series[0].dataLabelsInside = t);
|
|
@@ -201,7 +201,7 @@ class r extends z {
|
|
|
201
201
|
return f(this._config);
|
|
202
202
|
}
|
|
203
203
|
set category(e) {
|
|
204
|
-
(!
|
|
204
|
+
(!k(this._config) || e.trim() !== "") && (this._mode = m({
|
|
205
205
|
category: e,
|
|
206
206
|
numericFields: _(this._config),
|
|
207
207
|
fallbackMode: this._mode
|
|
@@ -397,7 +397,7 @@ class r extends z {
|
|
|
397
397
|
return We(this._config);
|
|
398
398
|
}
|
|
399
399
|
set displayType(e) {
|
|
400
|
-
|
|
400
|
+
Ae(e, this._config);
|
|
401
401
|
}
|
|
402
402
|
// ---------------------------------------------------------------------------------------------
|
|
403
403
|
// #region Protected methods
|
|
@@ -405,7 +405,7 @@ class r extends z {
|
|
|
405
405
|
/** @private */
|
|
406
406
|
generateDefaultConfig() {
|
|
407
407
|
const e = w(this.commonStrings);
|
|
408
|
-
return e.series = [G(this.commonStrings,
|
|
408
|
+
return e.series = [G(this.commonStrings, A(this.layerInfo.layer).idField)], e;
|
|
409
409
|
}
|
|
410
410
|
// ---------------------------------------------------------------------------------------------
|
|
411
411
|
// #region Series Methods
|
|
@@ -643,7 +643,7 @@ class r extends z {
|
|
|
643
643
|
* Align the data labels on the left or right side of the chart instead of the default position around the chart.
|
|
644
644
|
*/
|
|
645
645
|
get alignDataLabels() {
|
|
646
|
-
return
|
|
646
|
+
return ke(this._config);
|
|
647
647
|
}
|
|
648
648
|
set alignDataLabels(e) {
|
|
649
649
|
we(e, this._config);
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { S as c, s as m, a as y } from "./serial-chart-model.js";
|
|
3
|
-
import { s as b, a as
|
|
3
|
+
import { s as b, a as f, b as g, c as A, d as S, W as p } from "./negative-values-stacked-to-baseline.js";
|
|
4
4
|
import { h as u } from "./serial-chart-data.js";
|
|
5
|
-
import {
|
|
5
|
+
import { f as T } from "./utils.js";
|
|
6
6
|
import { m as d } from "./model-setter.js";
|
|
7
7
|
import { u as L, o as C } from "./chart-object-literals.js";
|
|
8
8
|
import { M as V } from "./model-with-line-marker-styling.js";
|
|
9
9
|
import { ab as v, ac as x, ap as B, aF as X } from "./index.js";
|
|
10
10
|
import { ap as a } from "./index2.js";
|
|
11
|
-
var
|
|
12
|
-
for (var s =
|
|
11
|
+
var _ = Object.defineProperty, F = Object.getOwnPropertyDescriptor, h = (l, i, e, t) => {
|
|
12
|
+
for (var s = F(i, e), r = l.length - 1, n; r >= 0; r--)
|
|
13
13
|
(n = l[r]) && (s = n(i, e, s) || s);
|
|
14
|
-
return s &&
|
|
14
|
+
return s && _(i, e, s), s;
|
|
15
15
|
};
|
|
16
16
|
class o extends c {
|
|
17
17
|
constructor() {
|
|
18
18
|
super(...arguments), this._chartType = L.RadarSeries;
|
|
19
19
|
}
|
|
20
20
|
async setup(i) {
|
|
21
|
-
await this.loadConfigFromLayer(i), this.setupLocalProps(), i.config !== void 0 && this.
|
|
21
|
+
await this.loadConfigFromLayer(i), this.setupLocalProps(), i.config !== void 0 && await this.rebuildSeries(), this.initDefaultSeries(), typeof this.resolveSetup == "function" && this.resolveSetup();
|
|
22
22
|
}
|
|
23
23
|
// ---------------------------------------------------------------------------------------------
|
|
24
24
|
// Circular and radial axis aliases
|
|
@@ -406,7 +406,7 @@ class o extends c {
|
|
|
406
406
|
});
|
|
407
407
|
s !== a(this.layerInfo.layer).idField && y(s ?? t, i, this._config);
|
|
408
408
|
}
|
|
409
|
-
|
|
409
|
+
f(this.defaultSeries?.lineSymbol?.style, i, this._config), g(this.defaultSeries?.lineSymbol?.width, i, this._config), A(this.defaultSeries?.markerSymbol?.style, i, this._config), S(this.defaultSeries?.markerSymbol?.size, i, this._config);
|
|
410
410
|
}
|
|
411
411
|
this._config.colorMatch = !0;
|
|
412
412
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { s as p, u as v, e as X,
|
|
2
|
+
import { s as p, u as v, e as X, f as O } from "./utils.js";
|
|
3
3
|
import { substitute as Y } from "@arcgis/core/intl.js";
|
|
4
4
|
import { isEmpty as f, isEqual as D } from "lodash-es";
|
|
5
5
|
import { b as w } from "./series-length.js";
|