@arcgis/charts-components 5.2.0-next.134 → 5.2.0-next.135
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/{IGFC74OK.js → 237DFICJ.js} +1 -1
- package/dist/cdn/{EJNWROC7.js → 2TH2NLKH.js} +1 -1
- package/dist/cdn/{35YCEIPG.js → 2WMXFFGK.js} +1 -1
- package/dist/cdn/{SNZ7YX4G.js → 4HRC4N36.js} +1 -1
- package/dist/cdn/{7HEDEKUK.js → 54MARFOX.js} +1 -1
- package/dist/cdn/{LDIHSUX2.js → 5FLFQNR7.js} +1 -1
- package/dist/cdn/{XJXSAYEK.js → 5J4YCXT7.js} +1 -1
- package/dist/cdn/{RAUY3KKA.js → 6XU3HVJF.js} +1 -1
- package/dist/cdn/{BTVIWRYJ.js → 7V464FLT.js} +1 -1
- package/dist/cdn/{RCD46RH5.js → 7ZIK7CXK.js} +1 -1
- package/dist/cdn/{QL2Y7MRB.js → AEKQA723.js} +1 -1
- package/dist/cdn/{LJO5VDUN.js → AXYWDXEL.js} +1 -1
- package/dist/cdn/{QKENGEGV.js → B2L54U6A.js} +1 -1
- package/dist/cdn/{H5DH4WNN.js → BGRTZDUX.js} +1 -1
- package/dist/cdn/{7LTSJSTM.js → BWHTYMQB.js} +1 -1
- package/dist/cdn/{U4GLRB5M.js → BZFXEB67.js} +1 -1
- package/dist/cdn/{7JOTYFCC.js → CIHQXJ22.js} +1 -1
- package/dist/cdn/{N7EBMOGD.js → D6AJNGRK.js} +1 -1
- package/dist/cdn/{5HNY3IAS.js → E4E2WV6B.js} +1 -1
- package/dist/cdn/{57HL3UWJ.js → EHWOAZN7.js} +1 -1
- package/dist/cdn/{G5R4DPDE.js → F2NO4I6W.js} +1 -1
- package/dist/cdn/{SYYWPV6X.js → F347H3VP.js} +1 -1
- package/dist/cdn/{OPIODPW3.js → F7AX7464.js} +1 -1
- package/dist/cdn/{EXL2B3BJ.js → FBSOJYSL.js} +1 -1
- package/dist/cdn/{GCIRVVIE.js → FF5R6NM4.js} +1 -1
- package/dist/cdn/{34XMANB5.js → FJNF77FI.js} +1 -1
- package/dist/cdn/{GWNC2RK3.js → GDMO4GD3.js} +1 -1
- package/dist/cdn/{4555T57S.js → HKJALKXI.js} +1 -1
- package/dist/cdn/{TGRE7VEP.js → IAZC7AQD.js} +1 -1
- package/dist/cdn/{SLMVIJZS.js → IRHBAPVI.js} +1 -1
- package/dist/cdn/{MEVS5PVK.js → J7FI5MUJ.js} +1 -1
- package/dist/cdn/{FB73CWAR.js → JM3JDVI3.js} +1 -1
- package/dist/cdn/{TOETRZXJ.js → JRBXQRR3.js} +1 -1
- package/dist/cdn/{E3GMOBBD.js → JRO7TCEJ.js} +1 -1
- package/dist/cdn/{ZJTFGMDB.js → KG5S3UIQ.js} +1 -1
- package/dist/cdn/{LOCELKGX.js → LPQNRUNB.js} +3 -3
- package/dist/cdn/{MJOSYJQM.js → LQLS3XBM.js} +1 -1
- package/dist/cdn/{3GS6JTKO.js → LWTFQAHK.js} +19 -19
- package/dist/cdn/{SY67MGEX.js → LYAWKYBD.js} +1 -1
- package/dist/cdn/{4TYYNWIM.js → MHTOZK7U.js} +1 -1
- package/dist/cdn/{PTXE3HWB.js → MVMW7ICK.js} +1 -1
- package/dist/cdn/{5MZ56C7R.js → NHMG5ROX.js} +1 -1
- package/dist/cdn/{HLHP2HHG.js → NSOVRPRE.js} +1 -1
- package/dist/cdn/{7RELPYIT.js → NWB2XYFC.js} +1 -1
- package/dist/cdn/{5HNG6KMX.js → PB5EMF72.js} +1 -1
- package/dist/cdn/{A7WJVI5D.js → Q7W6SXYC.js} +1 -1
- package/dist/cdn/{TTM5ZQFA.js → QAYSFUD7.js} +1 -1
- package/dist/cdn/{SJF6WAGB.js → QBWCTB6A.js} +1 -1
- package/dist/cdn/{HLNBRVRG.js → QDALL6M3.js} +1 -1
- package/dist/cdn/{ODTXJRD3.js → QWH37V5U.js} +1 -1
- package/dist/cdn/{SKJ3EY3H.js → R6IRQAQX.js} +1 -1
- package/dist/cdn/{HZBM265G.js → RLWLROKT.js} +1 -1
- package/dist/cdn/{A6ZHMVPA.js → RRLXLHLQ.js} +1 -1
- package/dist/cdn/{KFUYJAX4.js → SCGAGWRM.js} +1 -1
- package/dist/cdn/{TUEYIIMJ.js → SZZ5ARZP.js} +1 -1
- package/dist/cdn/{AE3Q3FDI.js → TG6R3HGR.js} +1 -1
- package/dist/cdn/{DDNS3GY4.js → THOUIYL5.js} +1 -1
- package/dist/cdn/{RSJPZSNN.js → TXLZGJBS.js} +1 -1
- package/dist/cdn/{ROY54SMC.js → UMM6WL6A.js} +1 -1
- package/dist/cdn/{IUFIYS7S.js → V5MTKOJP.js} +1 -1
- package/dist/cdn/{DJTFBHNQ.js → VBJ6455L.js} +1 -1
- package/dist/cdn/{ZL524IM5.js → VVXOD6FU.js} +1 -1
- package/dist/cdn/{UDTDIZNT.js → W5EEE7AO.js} +1 -1
- package/dist/cdn/{FKNSQZCW.js → WT5EQBFC.js} +1 -1
- package/dist/cdn/{PYRBEWFD.js → XGVPNZ4W.js} +1 -1
- package/dist/cdn/{FL6IYK2Q.js → XL73XJKZ.js} +1 -1
- package/dist/cdn/{EGROLWFL.js → XOUPCPXQ.js} +1 -1
- package/dist/cdn/{FEEYT3QQ.js → YVLG5MT3.js} +1 -1
- package/dist/cdn/{R35RZX3J.js → YZVWDBRN.js} +1 -1
- package/dist/cdn/{F4U6EDV7.js → Z4LTOPMQ.js} +1 -1
- package/dist/cdn/{TT4BXH4L.js → ZWDYQ77Q.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chart-rendering/common/interfaces.d.ts +6 -0
- package/dist/chunks/action-bar-utils.js +1 -1
- package/dist/chunks/bar-chart-model.js +1 -1
- package/dist/chunks/box-plot-data.js +7 -7
- package/dist/chunks/chart-model.js +9 -9
- package/dist/chunks/chart-ui-utils.js +7 -7
- package/dist/chunks/combo-bar-line-chart-model.js +1 -1
- package/dist/chunks/data.js +15 -15
- package/dist/chunks/gauge-model.js +41 -41
- package/dist/chunks/heat-chart-model.js +20 -20
- package/dist/chunks/index.js +93 -93
- package/dist/chunks/index4.js +1 -1
- package/dist/chunks/line-chart-model.js +1 -1
- package/dist/chunks/model-setter.js +1 -1
- package/dist/chunks/pie-chart-data.js +1 -1
- package/dist/chunks/pie-chart-model.js +1 -1
- package/dist/chunks/radar-chart-model.js +1 -1
- package/dist/chunks/serial-chart-data.js +47 -47
- package/dist/chunks/serial-chart-model.js +1 -1
- package/dist/chunks/series-length.js +3 -3
- package/dist/chunks/utils.js +15 -15
- package/dist/chunks/web-component-utils.js +1 -1
- package/dist/components/arcgis-chart/customElement.d.ts +21 -10
- package/dist/components/arcgis-chart/customElement.js +3273 -3231
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-view-charts/customElement.js +1 -1
- 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 +71 -71
- package/dist/loader.js +1 -1
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/dist/utils/chart-config/converter/index.js +88 -88
- package/package.json +4 -4
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { getElementLocale as $e } from "@arcgis/toolkit/intl/dom";
|
|
3
3
|
import { cloneDeep as n, isEmpty as B } from "es-toolkit/compat";
|
|
4
|
-
import { DateTime as
|
|
5
|
-
import {
|
|
4
|
+
import { DateTime as Qe } from "luxon";
|
|
5
|
+
import { r as Ye, co as se, bA as Xe, X as ne, aP as ae, cp as Ke, bL as Ze, bM as Je, q as x, bl as Ue, cq as b, cr as te, O as et, P as tt, x as J, cs as rt, cl as it, ct as ot, Z as st } from "../../../chunks/index.js";
|
|
6
6
|
import { a8 as nt, p as at, l as lt, a5 as dt, s as ct } from "../../../chunks/index3.js";
|
|
7
7
|
import { i as ut } from "../../../chunks/type-guards.js";
|
|
8
|
-
import { a as u, D as
|
|
8
|
+
import { a as u, D as P, i as le } from "../../../chunks/index2.js";
|
|
9
9
|
import { g as h, s as ft } from "../../../chunks/series-types.js";
|
|
10
10
|
import { o as re, a as c, d as F, t as p, g as v, u as pt, W as ie, e as C } from "../../../chunks/chart-object-literals.js";
|
|
11
11
|
import { p as yt, c as mt, e as St, i as gt } from "../../../chunks/class-breaks.js";
|
|
@@ -16,7 +16,7 @@ function de(r) {
|
|
|
16
16
|
if (t?.capabilities?.queryAttributeBins?.supportsFirstDayOfWeek === !0 && (!("firstDayOfWeek" in e) || e.firstDayOfWeek === void 0 || e.firstDayOfWeek === null)) {
|
|
17
17
|
const { lang: s } = $e(i ?? document.documentElement);
|
|
18
18
|
try {
|
|
19
|
-
o.firstDayOfWeek =
|
|
19
|
+
o.firstDayOfWeek = Qe.local().setLocale(s.replaceAll("_", "-")).startOf("week", { useLocaleWeeks: !0 }).weekday;
|
|
20
20
|
} catch {
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -66,7 +66,7 @@ function oe(r, e) {
|
|
|
66
66
|
const i = [];
|
|
67
67
|
return r.forEach((t) => {
|
|
68
68
|
if (!le(t)) {
|
|
69
|
-
const o =
|
|
69
|
+
const o = P(t, !1);
|
|
70
70
|
if (o.fieldToSort !== void 0) {
|
|
71
71
|
const s = b({
|
|
72
72
|
queryObject: e,
|
|
@@ -83,11 +83,11 @@ async function fe(r) {
|
|
|
83
83
|
const { configToUpdate: e, layer: i, abortSignal: t } = r, o = { ...e };
|
|
84
84
|
let s = i;
|
|
85
85
|
if (!s) {
|
|
86
|
-
const a =
|
|
87
|
-
a && (s = await
|
|
86
|
+
const a = Ze(e) ? e.iLayer : e.dataSource?.layer;
|
|
87
|
+
a && (s = await Je(a, t));
|
|
88
88
|
}
|
|
89
89
|
if (s) {
|
|
90
|
-
const a =
|
|
90
|
+
const a = x(o.series), f = h(o.series), y = o.series && o.series.length > 0 && o.series[0].x.trim() === "" || f === c.GaugeSeries && !Ue(e) || a === u.PieFromFields || a === u.BarAndLineFromFields || a === u.BoxPlotC1MonoField || a === u.BoxPlotC5MonoFieldAndSplitBy || a === u.BoxPlotC2MultiFields || a === u.BoxPlotC6MultiFieldsAndSplitBy, He = f === c.ScatterSeries || f === c.HeatSeries || a === u.BarAndLineNoAggregation || a === u.BarAndLineSplitByNoAggregation || a === u.BoxPlotC1MonoField || a === u.BoxPlotC5MonoFieldAndSplitBy || a === u.BoxPlotC3MonoFieldAndCategory || a === u.BoxPlotC7MonoFieldAndCategoryAndSplitBy || a === u.PieNoAggregation;
|
|
91
91
|
if (o.series = e.series.map((d) => {
|
|
92
92
|
const l = { ...d };
|
|
93
93
|
if (y || (l.x = b({ queryObject: s, fieldToMatch: d.x })), "y" in l && He) {
|
|
@@ -102,19 +102,19 @@ async function fe(r) {
|
|
|
102
102
|
}
|
|
103
103
|
if (d.query !== void 0) {
|
|
104
104
|
let { where: m, groupByFieldsForStatistics: S, outStatistics: g } = d.query;
|
|
105
|
-
if (S = te({ fieldsList: S, queryObject: s }), g !== void 0 && (g = g.map((
|
|
106
|
-
const O = { ...
|
|
105
|
+
if (S = te({ fieldsList: S, queryObject: s }), g !== void 0 && (g = g.map((T) => {
|
|
106
|
+
const O = { ...T };
|
|
107
107
|
return O.onStatisticField = b({
|
|
108
108
|
queryObject: s,
|
|
109
|
-
fieldToMatch:
|
|
109
|
+
fieldToMatch: T.onStatisticField
|
|
110
110
|
}), O;
|
|
111
111
|
})), m !== void 0 && a === u.BarAndLineSplitBy) {
|
|
112
|
-
const
|
|
112
|
+
const T = et(d.query?.where), O = tt({
|
|
113
113
|
where: d.query?.where,
|
|
114
114
|
normalize: !1,
|
|
115
115
|
escape: !1
|
|
116
116
|
});
|
|
117
|
-
m = `${b({ queryObject: s, fieldToMatch:
|
|
117
|
+
m = `${b({ queryObject: s, fieldToMatch: T })}=${O}`;
|
|
118
118
|
}
|
|
119
119
|
l.query !== void 0 && (m !== void 0 && (l.query.where = m), S !== void 0 && (l.query.groupByFieldsForStatistics = S), g !== void 0 && (l.query.outStatistics = g));
|
|
120
120
|
}
|
|
@@ -164,7 +164,7 @@ function ye(r) {
|
|
|
164
164
|
orderBy: v.Ascending
|
|
165
165
|
}, i = r.query?.orderByFields?.[0];
|
|
166
166
|
if (i !== void 0) {
|
|
167
|
-
const { outStatisticFieldName: t, statisticType: o } = r.query?.outStatistics?.[0] ?? {}, s =
|
|
167
|
+
const { outStatisticFieldName: t, statisticType: o } = r.query?.outStatistics?.[0] ?? {}, s = P(i);
|
|
168
168
|
t !== void 0 && s.fieldToSort === t && o !== void 0 && (o === F.Average || o === "mean" ? e.orderType = p.Mean : o === F.ContinuousPercentile && (e.orderType = p.Median)), e.orderBy = s.orderBy ?? v.Ascending;
|
|
169
169
|
}
|
|
170
170
|
return e;
|
|
@@ -177,7 +177,7 @@ function me(r) {
|
|
|
177
177
|
function Se(r) {
|
|
178
178
|
const e = n(r);
|
|
179
179
|
if (!B(e.series) && h(r.series) === c.BoxPlotSeries) {
|
|
180
|
-
const t =
|
|
180
|
+
const t = x(r.series);
|
|
181
181
|
if (e.orderOptions?.data === void 0 && t !== u.BoxPlotC2MultiFields && t !== u.BoxPlotC1MonoField) {
|
|
182
182
|
const o = ye(r.series[0]);
|
|
183
183
|
o.orderType !== void 0 && (e.orderOptions ??= {}, e.orderOptions.data = {
|
|
@@ -240,12 +240,12 @@ function Ce(r) {
|
|
|
240
240
|
}
|
|
241
241
|
function be(r) {
|
|
242
242
|
const e = n(r);
|
|
243
|
-
return e?.orderOptions?.orderByFields !== void 0 &&
|
|
243
|
+
return e?.orderOptions?.orderByFields !== void 0 && x(r.series) === u.PieFromFields && (e.orderOptions.orderByFields = r?.orderOptions?.orderByFields?.map(
|
|
244
244
|
(i) => {
|
|
245
245
|
let t = n(i);
|
|
246
246
|
return i !== void 0 && i.includes("arcgis_charts_pie_category_from_fields_name") && (t = i.replace(
|
|
247
247
|
"arcgis_charts_pie_category_from_fields_name",
|
|
248
|
-
|
|
248
|
+
J
|
|
249
249
|
)), t;
|
|
250
250
|
}
|
|
251
251
|
)), e;
|
|
@@ -258,7 +258,7 @@ function Fe(r) {
|
|
|
258
258
|
}
|
|
259
259
|
return e;
|
|
260
260
|
}
|
|
261
|
-
function
|
|
261
|
+
function xe(r) {
|
|
262
262
|
const e = n(r), { extent: i } = e.series[0]?.query ?? {};
|
|
263
263
|
return i !== void 0 && (e.dataFilters = {
|
|
264
264
|
...e.dataFilters,
|
|
@@ -273,7 +273,7 @@ function U(r) {
|
|
|
273
273
|
i.rotated !== void 0 && delete i.rotated;
|
|
274
274
|
})), e;
|
|
275
275
|
}
|
|
276
|
-
function
|
|
276
|
+
function Te(r) {
|
|
277
277
|
const e = n(r), i = r.dataSource;
|
|
278
278
|
return "dataSource" in e && !B(i) && (i.type === "featureLayer" && e.dataSource !== void 0 && (e.dataSource.type = "layer"), "featureLayer" in i && (e.dataSource.layer = i.featureLayer, delete e.dataSource.featureLayer)), e;
|
|
279
279
|
}
|
|
@@ -291,7 +291,7 @@ function Oe(r) {
|
|
|
291
291
|
}
|
|
292
292
|
return e;
|
|
293
293
|
}
|
|
294
|
-
function
|
|
294
|
+
function Pe(r) {
|
|
295
295
|
return r !== "originalValue";
|
|
296
296
|
}
|
|
297
297
|
function ee(r) {
|
|
@@ -309,7 +309,7 @@ function ee(r) {
|
|
|
309
309
|
}
|
|
310
310
|
return e;
|
|
311
311
|
}
|
|
312
|
-
function
|
|
312
|
+
function ke(r) {
|
|
313
313
|
const e = n(r);
|
|
314
314
|
if (!B(r.series) && h(r.series) === c.PieSeries) {
|
|
315
315
|
const t = e.series[0];
|
|
@@ -317,7 +317,7 @@ function Pe(r) {
|
|
|
317
317
|
if (t.sortLabelsBy === "originalValue")
|
|
318
318
|
e.sortLabelsBy = t.sortLabelsBy;
|
|
319
319
|
else if (t.sortLabelsBy !== void 0 && e.orderOptions?.data === void 0) {
|
|
320
|
-
const o =
|
|
320
|
+
const o = k(e);
|
|
321
321
|
o !== void 0 && (e.orderOptions ??= {}, e.orderOptions.data = o);
|
|
322
322
|
}
|
|
323
323
|
t.sortLabelsBy && delete t.sortLabelsBy;
|
|
@@ -331,13 +331,13 @@ function Le(r) {
|
|
|
331
331
|
"stackedType" in i && delete i.stackedType;
|
|
332
332
|
})), e;
|
|
333
333
|
}
|
|
334
|
-
function
|
|
334
|
+
function Ae(r) {
|
|
335
335
|
const e = n(r), i = r.sortOptions?.sortSeriesBy;
|
|
336
336
|
return e.orderOptions === void 0 && typeof i == "string" && (e.orderOptions ??= {}, e.orderOptions.series = {
|
|
337
337
|
orderBy: i === "DESC" ? v.Descending : v.Ascending
|
|
338
338
|
}), e;
|
|
339
339
|
}
|
|
340
|
-
function
|
|
340
|
+
function we(r) {
|
|
341
341
|
const e = n(r);
|
|
342
342
|
return e.colorMatch === void 0 && e.series[0]?.colorType !== void 0 && (e.colorMatch = e.series[0]?.colorType === pt.Match), e.series.forEach((i) => {
|
|
343
343
|
i.colorType !== void 0 && delete i.colorType;
|
|
@@ -372,9 +372,9 @@ function Ie(r) {
|
|
|
372
372
|
e.orderOptions ??= {};
|
|
373
373
|
let t = !0;
|
|
374
374
|
if (i.length === 1) {
|
|
375
|
-
const { fieldToSort: o, orderBy: s } =
|
|
375
|
+
const { fieldToSort: o, orderBy: s } = P(i[0]);
|
|
376
376
|
let a;
|
|
377
|
-
o === r.series[0].x || o ===
|
|
377
|
+
o === r.series[0].x || o === J ? a = p.Category : "y" in r.series[0] && o === r.series[0].y && (a = p.YValue), a && a !== p.MultiAxes && (t = !1, e.orderOptions.data === void 0 && (e.orderOptions.data = {
|
|
378
378
|
orderType: a,
|
|
379
379
|
orderBy: s?.toUpperCase() === "DESC" ? v.Descending : v.Ascending
|
|
380
380
|
}));
|
|
@@ -385,14 +385,14 @@ function Ie(r) {
|
|
|
385
385
|
delete t.query?.orderByFields;
|
|
386
386
|
}), e;
|
|
387
387
|
}
|
|
388
|
-
function
|
|
388
|
+
function k(r) {
|
|
389
389
|
let e, i = r.orderOptions?.orderByFields?.[0];
|
|
390
390
|
if (r.series?.length > 0) {
|
|
391
|
-
const t = h(r.series), o =
|
|
391
|
+
const t = h(r.series), o = x(r.series);
|
|
392
392
|
if (t !== c.PieSeries && o !== u.BarAndLineFromFields && o !== u.BoxPlotC2MultiFields && (i = i ?? r.series[0].x), i && !le(i)) {
|
|
393
|
-
const { fieldToSort: s, orderBy: a } =
|
|
393
|
+
const { fieldToSort: s, orderBy: a } = P(i);
|
|
394
394
|
let f;
|
|
395
|
-
s === r.series[0].x || s ===
|
|
395
|
+
s === r.series[0].x || s === J ? f = p.Category : "y" in r.series[0] && s === r.series[0].y && (f = p.YValue), f && f !== p.MultiAxes && (e = {
|
|
396
396
|
orderType: f,
|
|
397
397
|
orderBy: a?.toUpperCase() === "DESC" ? v.Descending : v.Ascending
|
|
398
398
|
});
|
|
@@ -404,7 +404,7 @@ function We(r) {
|
|
|
404
404
|
const e = n(r), i = r, t = r, o = r, s = r, a = r;
|
|
405
405
|
if (e) {
|
|
406
406
|
if (e.orderOptions?.series === void 0 && i.sortOptions?.sortSeriesBy !== void 0 && (e.orderOptions ??= {}, e.orderOptions.series = {
|
|
407
|
-
preferLabel:
|
|
407
|
+
preferLabel: Pe(
|
|
408
408
|
t.sortLabelsBy ?? i.sortOptions.sortSeriesBy.sortType
|
|
409
409
|
),
|
|
410
410
|
orderBy: i.sortOptions.sortSeriesBy.sortOrder ?? v.Ascending
|
|
@@ -420,7 +420,7 @@ function We(r) {
|
|
|
420
420
|
});
|
|
421
421
|
}
|
|
422
422
|
} else {
|
|
423
|
-
const y =
|
|
423
|
+
const y = k(e);
|
|
424
424
|
y !== void 0 && (e.orderOptions ??= {}, e.orderOptions.data = y);
|
|
425
425
|
}
|
|
426
426
|
"sortLabelsBy" in e && delete e.sortLabelsBy, "sortOptions" in e && delete e.sortOptions;
|
|
@@ -430,19 +430,19 @@ function We(r) {
|
|
|
430
430
|
function qe(r) {
|
|
431
431
|
const e = n(r);
|
|
432
432
|
if (e) {
|
|
433
|
-
const i =
|
|
433
|
+
const i = x(e.series);
|
|
434
434
|
if ((i === u.BarAndLineFromFields || i === u.PieFromFields) && e.orderOptions?.data === void 0 && e.orderOptions?.orderByFields !== void 0) {
|
|
435
|
-
const t =
|
|
435
|
+
const t = k(e);
|
|
436
436
|
t !== void 0 && (e.orderOptions ??= {}, e.orderOptions.data = t, delete e.orderOptions.orderByFields);
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
439
|
return e;
|
|
440
440
|
}
|
|
441
|
-
function
|
|
441
|
+
function Re(r) {
|
|
442
442
|
const e = n(r);
|
|
443
443
|
return e.horizontalAxisLabelsBehavior === L.NONE && (e.horizontalAxisLabelsBehavior = ie.Hide), e.verticalAxisLabelsBehavior === L.NONE && (e.verticalAxisLabelsBehavior = ie.Hide), e;
|
|
444
444
|
}
|
|
445
|
-
function
|
|
445
|
+
function Ee(r) {
|
|
446
446
|
const e = n(r), i = e.series[0];
|
|
447
447
|
if (i && !i.temporalBinning && st(e.series[0]) && ("timeIntervalSize" in i || "timeIntervalUnits" in i || "timeAggregationType" in i || "trimIncompleteTimeInterval" in i || "nullPolicy" in i)) {
|
|
448
448
|
if (i.temporalBinning = {}, i.timeIntervalSize !== void 0 && (i.temporalBinning.size = i.timeIntervalSize, delete i.timeIntervalSize), i.timeIntervalUnits) {
|
|
@@ -476,7 +476,7 @@ function Re(r) {
|
|
|
476
476
|
}
|
|
477
477
|
return e;
|
|
478
478
|
}
|
|
479
|
-
function
|
|
479
|
+
function Ne(r) {
|
|
480
480
|
const e = n(r);
|
|
481
481
|
return e.series.forEach((i) => {
|
|
482
482
|
i.query?.outStatistics?.forEach((t) => {
|
|
@@ -506,13 +506,13 @@ function ze(r) {
|
|
|
506
506
|
let e = n(r);
|
|
507
507
|
return e = be(e), e;
|
|
508
508
|
}
|
|
509
|
-
function
|
|
509
|
+
function A(r) {
|
|
510
510
|
let e = n(r);
|
|
511
511
|
return e = Fe(e), e;
|
|
512
512
|
}
|
|
513
|
-
function
|
|
513
|
+
function w(r) {
|
|
514
514
|
let e = n(r);
|
|
515
|
-
return e =
|
|
515
|
+
return e = xe(e), e;
|
|
516
516
|
}
|
|
517
517
|
function D(r) {
|
|
518
518
|
let e = n(r);
|
|
@@ -520,7 +520,7 @@ function D(r) {
|
|
|
520
520
|
}
|
|
521
521
|
function M(r) {
|
|
522
522
|
let e = n(r);
|
|
523
|
-
return e =
|
|
523
|
+
return e = Te(e), e;
|
|
524
524
|
}
|
|
525
525
|
function I(r) {
|
|
526
526
|
let e = n(r);
|
|
@@ -528,20 +528,20 @@ function I(r) {
|
|
|
528
528
|
}
|
|
529
529
|
function W(r) {
|
|
530
530
|
let e = n(r);
|
|
531
|
-
return e =
|
|
531
|
+
return e = ke(e), e;
|
|
532
532
|
}
|
|
533
533
|
function q(r) {
|
|
534
|
-
let e = n(r);
|
|
535
|
-
return e = we(e), e;
|
|
536
|
-
}
|
|
537
|
-
function N(r) {
|
|
538
534
|
let e = n(r);
|
|
539
535
|
return e = Ae(e), e;
|
|
540
536
|
}
|
|
541
537
|
function R(r) {
|
|
542
|
-
|
|
538
|
+
let e = n(r);
|
|
539
|
+
return e = we(e), e;
|
|
543
540
|
}
|
|
544
541
|
function E(r) {
|
|
542
|
+
return Me(r);
|
|
543
|
+
}
|
|
544
|
+
function N(r) {
|
|
545
545
|
let e = n(r);
|
|
546
546
|
return ne(e) && (e = De(e)), e;
|
|
547
547
|
}
|
|
@@ -558,45 +558,45 @@ function z(r) {
|
|
|
558
558
|
return qe(r);
|
|
559
559
|
}
|
|
560
560
|
function j(r) {
|
|
561
|
-
return
|
|
561
|
+
return Re(r);
|
|
562
562
|
}
|
|
563
563
|
function H(r) {
|
|
564
|
-
return
|
|
564
|
+
return Ee(r);
|
|
565
565
|
}
|
|
566
566
|
function $(r) {
|
|
567
|
-
return
|
|
567
|
+
return Ne(r);
|
|
568
568
|
}
|
|
569
|
-
function
|
|
569
|
+
function Q(r) {
|
|
570
570
|
let e = n(r);
|
|
571
571
|
return e = U(e), Ve(e);
|
|
572
572
|
}
|
|
573
|
-
function
|
|
573
|
+
function Y(r) {
|
|
574
574
|
let e = n(r);
|
|
575
575
|
return e = Ge(e), e;
|
|
576
576
|
}
|
|
577
|
-
function
|
|
577
|
+
function X(r) {
|
|
578
578
|
let e = n(r);
|
|
579
579
|
return e = _e(e), e;
|
|
580
580
|
}
|
|
581
|
-
function
|
|
581
|
+
function K(r) {
|
|
582
582
|
let e = n(r);
|
|
583
583
|
return e = Bt(e), e;
|
|
584
584
|
}
|
|
585
|
-
function
|
|
585
|
+
function Z(r) {
|
|
586
586
|
let e = n(r);
|
|
587
587
|
return h(e.series) === c.BarSeries && (e = Ce(e)), e;
|
|
588
588
|
}
|
|
589
589
|
function je(r) {
|
|
590
590
|
const { versionsToConvert: e, configToUpdate: i } = r;
|
|
591
591
|
let t = n(i);
|
|
592
|
-
return e.length > 0 && t !== void 0 && (t = Ie(t), e.includes(se) || e.includes(
|
|
592
|
+
return e.length > 0 && t !== void 0 && (t = Ie(t), e.includes(se) || e.includes(Ke) ? (t = ze(t), t = A(t), t = w(t), t = D(t), t = M(t), t = I(t), t = W(t), t = q(t), t = R(t), t = E(t), t = N(t), t = V(t), t = G(t), t = _(t), t = z(t), t = j(t), t = H(t), t = $(t), t = Q(t), t = Y(t), t = X(t), t = K(t), t = Z(t)) : e.forEach((o) => {
|
|
593
593
|
if (t !== void 0)
|
|
594
594
|
switch (o) {
|
|
595
595
|
case "1.0.1":
|
|
596
|
-
t =
|
|
596
|
+
t = A(t);
|
|
597
597
|
break;
|
|
598
598
|
case "3.4.0":
|
|
599
|
-
t =
|
|
599
|
+
t = w(t);
|
|
600
600
|
break;
|
|
601
601
|
case "4.0.0":
|
|
602
602
|
t = D(t);
|
|
@@ -614,13 +614,13 @@ function je(r) {
|
|
|
614
614
|
t = q(t);
|
|
615
615
|
break;
|
|
616
616
|
case "9.2.0":
|
|
617
|
-
t =
|
|
617
|
+
t = R(t);
|
|
618
618
|
break;
|
|
619
619
|
case "9.7.0":
|
|
620
|
-
t =
|
|
620
|
+
t = E(t);
|
|
621
621
|
break;
|
|
622
622
|
case "10.0.0":
|
|
623
|
-
t =
|
|
623
|
+
t = N(t);
|
|
624
624
|
break;
|
|
625
625
|
case "11.0.0":
|
|
626
626
|
t = V(t);
|
|
@@ -644,19 +644,19 @@ function je(r) {
|
|
|
644
644
|
t = $(t);
|
|
645
645
|
break;
|
|
646
646
|
case "23.2.0":
|
|
647
|
-
t =
|
|
647
|
+
t = Q(t);
|
|
648
648
|
break;
|
|
649
649
|
case "24.7.0":
|
|
650
|
-
t =
|
|
650
|
+
t = Y(t);
|
|
651
651
|
break;
|
|
652
652
|
case "24.8.0":
|
|
653
|
-
t =
|
|
653
|
+
t = X(t);
|
|
654
654
|
break;
|
|
655
655
|
case "25.0.0":
|
|
656
|
-
t =
|
|
656
|
+
t = K(t);
|
|
657
657
|
break;
|
|
658
658
|
case "25.1.0":
|
|
659
|
-
t =
|
|
659
|
+
t = Z(t);
|
|
660
660
|
break;
|
|
661
661
|
}
|
|
662
662
|
}), t.version = nt), t;
|
|
@@ -664,9 +664,9 @@ function je(r) {
|
|
|
664
664
|
async function Dt(r, e, i, t) {
|
|
665
665
|
let o = r;
|
|
666
666
|
if (r) {
|
|
667
|
-
const s =
|
|
667
|
+
const s = Ye(e);
|
|
668
668
|
await s?.load({ signal: t }), o = await he({ configToUpdate: r, layer: s, chartContainer: i, abortSignal: t });
|
|
669
|
-
const a = r.version ?? se, { versionStatus: f, versions: y } =
|
|
669
|
+
const a = r.version ?? se, { versionStatus: f, versions: y } = Xe(a);
|
|
670
670
|
(f === re.Older || f === re.Unrecognized) && (o = je({
|
|
671
671
|
versionsToConvert: y,
|
|
672
672
|
configToUpdate: o
|
|
@@ -679,45 +679,45 @@ const Mt = {
|
|
|
679
679
|
adjustSeries: ue,
|
|
680
680
|
matchChartFieldsToLayerFields: fe,
|
|
681
681
|
resetLegendMaxHeight: ge,
|
|
682
|
-
moveSeriesQueryExtent:
|
|
682
|
+
moveSeriesQueryExtent: xe,
|
|
683
683
|
moveSeriesRotatedPropToChart: U,
|
|
684
|
-
renameDataSourceProperties:
|
|
684
|
+
renameDataSourceProperties: Te,
|
|
685
685
|
copyDataSourceFilterToConfig: Oe,
|
|
686
686
|
adjustPieFromFieldsDefaultNameAndValue: be,
|
|
687
687
|
removeSpacingPropertyFromGauge: Fe,
|
|
688
688
|
moveBoxPlotSeriesPropsToChart: pe,
|
|
689
|
-
movePieSeriesSortLabelsPropToChart:
|
|
689
|
+
movePieSeriesSortLabelsPropToChart: ke,
|
|
690
690
|
getProBoxPlotSortDataOption: ye,
|
|
691
691
|
isBoxPlotConfigWithMeanLinesFromPro: me,
|
|
692
692
|
preventDuplicatedIds: Be,
|
|
693
693
|
adjustBoxPlotConfig: Se,
|
|
694
|
-
convertSortSeriesByToObject:
|
|
694
|
+
convertSortSeriesByToObject: Ae,
|
|
695
695
|
moveBoxPlotSortDataByProp: De,
|
|
696
|
-
handleColorMatchChanges:
|
|
696
|
+
handleColorMatchChanges: we,
|
|
697
697
|
moveScrollbarVisible: Me,
|
|
698
698
|
moveSeriesStackedTypePropToChart: Le,
|
|
699
699
|
convertBoxplotOldToNewDataSortType: ee,
|
|
700
|
-
getDataOrderFromOrderByFields:
|
|
701
|
-
convertWebChartDataValueTypes:
|
|
700
|
+
getDataOrderFromOrderByFields: k,
|
|
701
|
+
convertWebChartDataValueTypes: Pe,
|
|
702
702
|
moveOrConvertSeriesOrderByFieldsToChartOrderOptions: Ie,
|
|
703
|
-
convertWebChartLabelBehaviorNoneToHide:
|
|
703
|
+
convertWebChartLabelBehaviorNoneToHide: Re,
|
|
704
704
|
handleOrderOptionsChanges: We,
|
|
705
705
|
applyDataOrderInstructionForFromFieldsCharts: qe,
|
|
706
|
-
convertTemporalBinningProps:
|
|
707
|
-
convertRESTStatisticTypeToWebChartStatisticType:
|
|
706
|
+
convertTemporalBinningProps: Ee,
|
|
707
|
+
convertRESTStatisticTypeToWebChartStatisticType: Ne,
|
|
708
708
|
renameChartSubtitle: Ve,
|
|
709
709
|
applyMandatoryConversions: he,
|
|
710
710
|
convertTo1x0x1: ze,
|
|
711
|
-
convertTo2x0x0:
|
|
712
|
-
convertTo3x5x0:
|
|
711
|
+
convertTo2x0x0: A,
|
|
712
|
+
convertTo3x5x0: w,
|
|
713
713
|
convertTo4x0x1: D,
|
|
714
714
|
convertTo5x0x0: M,
|
|
715
715
|
convertTo7x0x0: I,
|
|
716
716
|
convertTo7x6x0: W,
|
|
717
717
|
convertTo8x0x1: q,
|
|
718
|
-
convertTo9x3x0:
|
|
719
|
-
convertTo10x0x0:
|
|
720
|
-
convertTo11x0x0:
|
|
718
|
+
convertTo9x3x0: R,
|
|
719
|
+
convertTo10x0x0: E,
|
|
720
|
+
convertTo11x0x0: N,
|
|
721
721
|
convertTo12x0x0: V,
|
|
722
722
|
convertTo15x0x0: G,
|
|
723
723
|
convertTo16x1x0: _,
|
|
@@ -725,11 +725,11 @@ const Mt = {
|
|
|
725
725
|
convertTo19x0x0: j,
|
|
726
726
|
convertTo20x2x0: H,
|
|
727
727
|
convertTo21x1x0: $,
|
|
728
|
-
convertTo23x3x0:
|
|
729
|
-
convertTo24x8x0:
|
|
730
|
-
convertTo25x0x0:
|
|
731
|
-
convertTo25x1x0:
|
|
732
|
-
convertTo25x2x0:
|
|
728
|
+
convertTo23x3x0: Q,
|
|
729
|
+
convertTo24x8x0: Y,
|
|
730
|
+
convertTo25x0x0: X,
|
|
731
|
+
convertTo25x1x0: K,
|
|
732
|
+
convertTo25x2x0: Z,
|
|
733
733
|
convertTemporalBinningProps2: Ge,
|
|
734
734
|
transformPropsInHeatChart: _e,
|
|
735
735
|
applyConversions: je,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/charts-components",
|
|
3
|
-
"version": "5.2.0-next.
|
|
3
|
+
"version": "5.2.0-next.135",
|
|
4
4
|
"description": "Reusable ArcGIS charting Web Components.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@amcharts/amcharts4": "^4.10.31",
|
|
32
32
|
"@amcharts/amcharts5": "~5.20.8",
|
|
33
|
-
"@arcgis/lumina": "5.2.0-next.
|
|
34
|
-
"@arcgis/toolkit": "5.2.0-next.
|
|
33
|
+
"@arcgis/lumina": "5.2.0-next.135",
|
|
34
|
+
"@arcgis/toolkit": "5.2.0-next.135",
|
|
35
35
|
"@esri/arcgis-html-sanitizer": "~4.2.0-next.2",
|
|
36
36
|
"@lit/task": "^1.0.3",
|
|
37
37
|
"@zumer/snapdom": "^2.24.1",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"tslib": "^2.8.1"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@arcgis/core": "5.2.0-next.
|
|
48
|
+
"@arcgis/core": "5.2.0-next.135",
|
|
49
49
|
"@esri/calcite-components": "^5.2.0-next.80"
|
|
50
50
|
},
|
|
51
51
|
"css.customData": [
|