@arcgis/charts-components 5.2.0-next.40 → 5.2.0-next.41
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/{EJK3RW6P.js → 22GC5BZP.js} +1 -1
- package/dist/cdn/{7CZ4J2W3.js → 2VWSSNE6.js} +1 -1
- package/dist/cdn/{Z3XWLWF4.js → 2WFIFBMW.js} +1 -1
- package/dist/cdn/{XCRTBM2X.js → 3MRL3AI7.js} +1 -1
- package/dist/cdn/{FXACMXC2.js → 3QI7A32R.js} +1 -1
- package/dist/cdn/{YKOEU6IH.js → 3WV4T637.js} +1 -1
- package/dist/cdn/{LGM37IA4.js → 3YJRZ7CT.js} +1 -1
- package/dist/cdn/{J2YNPNIL.js → 4MSUALRF.js} +1 -1
- package/dist/cdn/{YAMKN44F.js → 4QGMMXRI.js} +1 -1
- package/dist/cdn/{SGVBAC76.js → 4RGS5J3H.js} +1 -1
- package/dist/cdn/{DIBTCFWT.js → 4WQF5DM3.js} +1 -1
- package/dist/cdn/{LV3T5QZF.js → 4ZJHIYGJ.js} +1 -1
- package/dist/cdn/{LQ4XNJEN.js → 5SIHKT2T.js} +1 -1
- package/dist/cdn/{2WUJ5KOD.js → 6BZMGEWV.js} +1 -1
- package/dist/cdn/{4HBMPMYY.js → 6IKWZMBE.js} +1 -1
- package/dist/cdn/{Y4AQR62O.js → 76ILRLUC.js} +1 -1
- package/dist/cdn/{NIKK5PQK.js → 7KYTSBST.js} +1 -1
- package/dist/cdn/{77YS6YLT.js → 7RFX7LUS.js} +4 -4
- package/dist/cdn/{YSAFZOZ6.js → 7T4W77V3.js} +1 -1
- package/dist/cdn/{MAHZG3PJ.js → 7T5P3U5A.js} +1 -1
- package/dist/cdn/{3GGLSOHN.js → B6GOLH4Q.js} +1 -1
- package/dist/cdn/{7GOPZGE7.js → CAOUA6TM.js} +1 -1
- package/dist/cdn/{67K3MAX5.js → CHFKSXBJ.js} +1 -1
- package/dist/cdn/{PKQ36JAB.js → CMPHWKTI.js} +1 -1
- package/dist/cdn/{QCRIXDV3.js → CXT62XXL.js} +1 -1
- package/dist/cdn/{ZLFL6BY5.js → D7D3TANP.js} +1 -1
- package/dist/cdn/{M7YZTXYW.js → D7FL6CSK.js} +1 -1
- package/dist/cdn/{EVCIAJFC.js → DE5QJPJV.js} +1 -1
- package/dist/cdn/{A7NYIP7H.js → DZP63RLO.js} +1 -1
- package/dist/cdn/{BMQRK46I.js → E47MLNJA.js} +1 -1
- package/dist/cdn/{TBGSY7QJ.js → EAXAXRX2.js} +1 -1
- package/dist/cdn/{I7QOG3AA.js → ELICLP7J.js} +1 -1
- package/dist/cdn/{4GZPZPT6.js → EMMV3MPZ.js} +1 -1
- package/dist/cdn/{32EVZ7R6.js → F5P4Z43T.js} +1 -1
- package/dist/cdn/{BDKELWTL.js → FBHIZNWF.js} +1 -1
- package/dist/cdn/{2MWAHHYM.js → FK7GEP3O.js} +20 -20
- package/dist/cdn/{OEIPZTMI.js → G3IEARQP.js} +1 -1
- package/dist/cdn/{M7F2IDEE.js → GGN3I7J2.js} +1 -1
- package/dist/cdn/{RB7LVEKZ.js → GKXBWOFH.js} +1 -1
- package/dist/cdn/{NKUXUCUP.js → GP3V6A7V.js} +1 -1
- package/dist/cdn/{HAOL7B5B.js → HCYQEOJ6.js} +1 -1
- package/dist/cdn/{BUXRBQJJ.js → HRMCHOLZ.js} +1 -1
- package/dist/cdn/I6CEN2WV.js +2 -0
- package/dist/cdn/{FFKWJL25.js → I6REUMW3.js} +1 -1
- package/dist/cdn/{LHQWVJAF.js → IIQVRNZF.js} +1 -1
- package/dist/cdn/{P4HSSZRL.js → IONJLIQQ.js} +1 -1
- package/dist/cdn/{W2YAFML7.js → J64IDIEG.js} +1 -1
- package/dist/cdn/{K63SHENK.js → JATS27TM.js} +1 -1
- package/dist/cdn/{GHE7Q677.js → JPPLQW3P.js} +1 -1
- package/dist/cdn/{YTUVGIHK.js → JTYCEFWF.js} +1 -1
- package/dist/cdn/{WNKDEOFZ.js → JWD4Y2L6.js} +1 -1
- package/dist/cdn/{AK7X7SGI.js → JYC77MVD.js} +1 -1
- package/dist/cdn/K4APZJ2O.js +2 -0
- package/dist/cdn/{CFC3NUMS.js → KHLGXKN5.js} +1 -1
- package/dist/cdn/{FGNKVNM7.js → KS72POQC.js} +1 -1
- package/dist/cdn/{G6EAXNDR.js → LJLL37FG.js} +1 -1
- package/dist/cdn/{KML35YPO.js → LN3IK232.js} +1 -1
- package/dist/cdn/{FX3T2NSR.js → LSMBD5CK.js} +1 -1
- package/dist/cdn/{UM5S2Y4R.js → LSWWNXP3.js} +1 -1
- package/dist/cdn/{LLUS6VGO.js → MCT4U7MC.js} +1 -1
- package/dist/cdn/{QCTAG2EK.js → MLBDUKS3.js} +1 -1
- package/dist/cdn/{WGANHKGM.js → MNE46H4A.js} +1 -1
- package/dist/cdn/{GN53HRKZ.js → MWARLTCH.js} +1 -1
- package/dist/cdn/{L7HQ4MVM.js → NG254LPM.js} +1 -1
- package/dist/cdn/{KDJ5RVHA.js → NYFHPR6N.js} +1 -1
- package/dist/cdn/{GVLUS52N.js → O324BBM7.js} +1 -1
- package/dist/cdn/{XM6AWAPQ.js → PCODH67Z.js} +1 -1
- package/dist/cdn/{IQFWMCJN.js → PDYF2IZ2.js} +1 -1
- package/dist/cdn/{LX7XADSL.js → PF7KNYUV.js} +1 -1
- package/dist/cdn/{ME5VD6DD.js → PGO6DEJM.js} +1 -1
- package/dist/cdn/{KPWBRKB2.js → PTQOX5OZ.js} +1 -1
- package/dist/cdn/{D3ITKS2P.js → QFDQH5CQ.js} +1 -1
- package/dist/cdn/{XJFVSX2E.js → QJMUS3VS.js} +1 -1
- package/dist/cdn/{KHT4LCWN.js → QYNNPEED.js} +1 -1
- package/dist/cdn/{AAKVGDCP.js → QZ5YUJ7Y.js} +1 -1
- package/dist/cdn/{NDOLRRBV.js → RE5QI7WA.js} +1 -1
- package/dist/cdn/{FLNKNNA4.js → RPTZ52MF.js} +1 -1
- package/dist/cdn/{7IEZ4KIQ.js → RS37HDC7.js} +1 -1
- package/dist/cdn/{T7SDOM4Y.js → SDHNDW2J.js} +1 -1
- package/dist/cdn/{ZVPPOBET.js → TAGN7GHJ.js} +1 -1
- package/dist/cdn/{PIXOUTW3.js → TTTGMEZ7.js} +1 -1
- package/dist/cdn/{QWKP4JOC.js → U5FPTPFH.js} +1 -1
- package/dist/cdn/{OJR4AWVU.js → UG37REGM.js} +1 -1
- package/dist/cdn/{F2OCFEOW.js → UNFEHNQQ.js} +1 -1
- package/dist/cdn/{6TCG2WXL.js → USQYT55U.js} +1 -1
- package/dist/cdn/{2AFGL3N3.js → UTJ2ODDK.js} +1 -1
- package/dist/cdn/VAUVQGBW.js +3 -0
- package/dist/cdn/{LH4X6ACJ.js → WGYVJ5PD.js} +1 -1
- package/dist/cdn/{GOZ5QOUF.js → WIPAO2FH.js} +1 -1
- package/dist/cdn/{RJENJCOJ.js → WKRYWDKZ.js} +1 -1
- package/dist/cdn/{LU3GHFTE.js → WVPMH6DW.js} +1 -1
- package/dist/cdn/{YMY3CBBG.js → XY4HDZKZ.js} +1 -1
- package/dist/cdn/{IRSXCGOE.js → YABRVLVL.js} +1 -1
- package/dist/cdn/{7HTA55LZ.js → YGGPPIZ7.js} +1 -1
- package/dist/cdn/{LBG2RY2P.js → YLMCVYAS.js} +1 -1
- package/dist/cdn/{DGYWXTWO.js → YXG7RVTK.js} +1 -1
- package/dist/cdn/{BDCXALOP.js → Z7NF4IGS.js} +1 -1
- package/dist/cdn/{KFH7ONYI.js → ZQDCFKNT.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/chart-object-literals.js +2 -1
- package/dist/chunks/class-breaks.js +14 -14
- package/dist/chunks/data.js +5 -5
- package/dist/chunks/index2.js +3496 -3375
- package/dist/chunks/index4.js +26 -8
- package/dist/chunks/model-setter.js +3 -3
- package/dist/chunks/serial-chart-data.js +27 -26
- package/dist/chunks/utils.js +5 -5
- package/dist/chunks/web-component-utils.js +1 -1
- package/dist/components/arcgis-chart/customElement.js +3531 -3519
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +7 -7
- package/dist/components/arcgis-charts-config-histogram/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot/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 +215 -213
- package/dist/json-schema/index.d.ts +15 -2
- package/dist/spec/chart-object-literals.d.ts +1 -0
- package/dist/spec/data-source.d.ts +6 -1
- package/dist/utils/chart-config/converter/index.js +26 -26
- package/dist/utils/data/index.d.ts +8 -1
- package/dist/utils/defaults/interfaces.d.ts +1 -1
- package/dist/utils/layer/query-features/index.d.ts +17 -1
- package/dist/utils/layer/query-parser/index.d.ts +1 -0
- package/package.json +3 -3
- package/dist/cdn/547RDEMV.js +0 -2
- package/dist/cdn/HR4NMTBV.js +0 -2
- package/dist/cdn/QU7LT4XK.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 v } from "@arcgis/toolkit/intl/dom";
|
|
7
|
-
import { C as u,
|
|
7
|
+
import { C as u, d3 as M, Y as T, m as F, Z as V, af as z, ak as G, E as A, aw as U, I as L, a7 as D, bk as H, a as $, aF as J, bg as _, cs as K, V as Q, k as Z, n as X, l as Y, b9 as ee, aG as te } from "./index2.js";
|
|
8
8
|
import { g as ie, aA 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";
|
|
@@ -44,7 +44,8 @@ const b = {
|
|
|
44
44
|
"heatSeries",
|
|
45
45
|
"buffer",
|
|
46
46
|
"sizeScale",
|
|
47
|
-
"calendarDateParts"
|
|
47
|
+
"calendarDateParts",
|
|
48
|
+
"histogramBin"
|
|
48
49
|
],
|
|
49
50
|
title: "WebChartTypes"
|
|
50
51
|
},
|
|
@@ -6059,8 +6060,14 @@ Only applicable to bar chart, line chart.`
|
|
|
6059
6060
|
WebChartBin: {
|
|
6060
6061
|
type: "object",
|
|
6061
6062
|
properties: {
|
|
6063
|
+
type: {
|
|
6064
|
+
type: "string",
|
|
6065
|
+
const: "histogramBin",
|
|
6066
|
+
description: "Identifier of a bin to simplify distinction between a WebChartBin and a WebChartDataItem"
|
|
6067
|
+
},
|
|
6062
6068
|
count: {
|
|
6063
|
-
type: "number"
|
|
6069
|
+
type: "number",
|
|
6070
|
+
description: "The bin count"
|
|
6064
6071
|
},
|
|
6065
6072
|
minValue: {
|
|
6066
6073
|
type: "number",
|
|
@@ -6077,9 +6084,20 @@ Only applicable to bar chart, line chart.`
|
|
|
6077
6084
|
isLastBin: {
|
|
6078
6085
|
type: "boolean",
|
|
6079
6086
|
description: "Whether this is the last bin."
|
|
6087
|
+
},
|
|
6088
|
+
arcgisChartsUniqueIds: {
|
|
6089
|
+
type: "array",
|
|
6090
|
+
items: {
|
|
6091
|
+
type: [
|
|
6092
|
+
"number",
|
|
6093
|
+
"string"
|
|
6094
|
+
]
|
|
6095
|
+
},
|
|
6096
|
+
description: "Unique ids associated to each bin"
|
|
6080
6097
|
}
|
|
6081
6098
|
},
|
|
6082
6099
|
required: [
|
|
6100
|
+
"type",
|
|
6083
6101
|
"count",
|
|
6084
6102
|
"minValue",
|
|
6085
6103
|
"maxValue"
|
|
@@ -10509,11 +10527,11 @@ If not provided the series will be displayed as they are ordered in the config.`
|
|
|
10509
10527
|
description: "Gives a JSON representation of the heat chart object.",
|
|
10510
10528
|
title: "WebHeatChart"
|
|
10511
10529
|
},
|
|
10512
|
-
'Omit<(structure-1066060463-
|
|
10513
|
-
$ref: "#/definitions/Pick%3C(structure-1066060463-
|
|
10514
|
-
title: 'Omit<(structure-1066060463-
|
|
10530
|
+
'Omit<(structure-1066060463-59734-61477-1066060463-59659-61478-1066060463-55764-62666-1066060463-0-65719|undefined)937098756,("data"|"orderByFields")>': {
|
|
10531
|
+
$ref: "#/definitions/Pick%3C(structure-1066060463-59734-61477-1066060463-59659-61478-1066060463-55764-62666-1066060463-0-65719%7Cundefined)937098756%2CExclude%3C(%22series%22%7C%22data%22%7C%22orderByFields%22)%2C(%22data%22%7C%22orderByFields%22)%3E%3E",
|
|
10532
|
+
title: 'Omit<(structure-1066060463-59734-61477-1066060463-59659-61478-1066060463-55764-62666-1066060463-0-65719|undefined)937098756,("data"|"orderByFields")>'
|
|
10515
10533
|
},
|
|
10516
|
-
'Pick<(structure-1066060463-
|
|
10534
|
+
'Pick<(structure-1066060463-59734-61477-1066060463-59659-61478-1066060463-55764-62666-1066060463-0-65719|undefined)937098756,Exclude<("series"|"data"|"orderByFields"),("data"|"orderByFields")>>': {
|
|
10517
10535
|
type: "object",
|
|
10518
10536
|
properties: {
|
|
10519
10537
|
series: {
|
|
@@ -10524,7 +10542,7 @@ If not provided the series will be displayed as they are ordered in the config.`
|
|
|
10524
10542
|
}
|
|
10525
10543
|
},
|
|
10526
10544
|
additionalProperties: !1,
|
|
10527
|
-
title: 'Pick<(structure-1066060463-
|
|
10545
|
+
title: 'Pick<(structure-1066060463-59734-61477-1066060463-59659-61478-1066060463-55764-62666-1066060463-0-65719|undefined)937098756,Exclude<("series"|"data"|"orderByFields"),("data"|"orderByFields")>>'
|
|
10528
10546
|
},
|
|
10529
10547
|
OverlayTerms: {
|
|
10530
10548
|
type: "string",
|
|
@@ -4,7 +4,7 @@ import { getElementLocale as c } from "@arcgis/toolkit/intl/dom";
|
|
|
4
4
|
import { g } from "./runtime.js";
|
|
5
5
|
import { convertChartSpec as h } from "../utils/chart-config/converter/index.js";
|
|
6
6
|
import { U as f } from "./index.js";
|
|
7
|
-
import { ac as o,
|
|
7
|
+
import { ac as o, bx as l, I as y, an as u } from "./index2.js";
|
|
8
8
|
import "lodash-es";
|
|
9
9
|
import "luxon";
|
|
10
10
|
import "./chart-object-literals.js";
|
|
@@ -23,15 +23,15 @@ import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
|
23
23
|
import "@esri/arcgis-html-sanitizer";
|
|
24
24
|
import "@arcgis/core/core/promiseUtils.js";
|
|
25
25
|
import "@arcgis/core/request.js";
|
|
26
|
-
import "@arcgis/core/geometry/Point.js";
|
|
27
26
|
import "@arcgis/core/applications/Components/imageryUtils.js";
|
|
27
|
+
import "@arcgis/core/geometry/Point.js";
|
|
28
28
|
import "@arcgis/core/AttributeBinsGraphic.js";
|
|
29
29
|
import "@arcgis/core/layers/support/CodedValueDomain.js";
|
|
30
|
+
import "@arcgis/core/geometry/Extent.js";
|
|
30
31
|
import "@arcgis/core/intl.js";
|
|
31
32
|
import "@arcgis/toolkit/dom";
|
|
32
33
|
import "simple-statistics";
|
|
33
34
|
import "@arcgis/core/core/sql.js";
|
|
34
|
-
import "@arcgis/core/geometry/Extent.js";
|
|
35
35
|
import "@arcgis/toolkit/type";
|
|
36
36
|
import "./class-breaks.js";
|
|
37
37
|
class K extends EventTarget {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { substitute as w } from "@arcgis/core/intl.js";
|
|
3
|
-
import { cloneDeep as
|
|
3
|
+
import { cloneDeep as Z, isEmpty as qe, memoize as Re } from "lodash-es";
|
|
4
4
|
import { S as se } from "./common.js";
|
|
5
5
|
import { s as R, u as E, g as le, a as Fe, b as ke, c as Oe, d as ce } from "./utils.js";
|
|
6
|
-
import { w as k, i as De,
|
|
6
|
+
import { w as k, i as De, cU as M, b_ as Pe, bm as we, x as Ee, Y as _, cs as Me, cr as $e, p as We, aH as oe, c4 as Ye, d as Xe, aG as je, I as Ue, a7 as He, bk as Ke, W as Ze, e as _e, bo as Qe, c$ as ze, v as Ge, d6 as de, bN as Je, d7 as et, bJ as tt, B as st, d3 as it, an as U, a6 as he, b9 as at, k as ie, bq as rt, bu as ye, bb as K, bh as me } from "./index2.js";
|
|
7
7
|
import { a as Y, s as Te, g as Q, b as pe, c as nt } from "./data.js";
|
|
8
8
|
import { u as B, r as L, k as lt, n as q, m as $, p as ot, t as ut, s as ae } from "./chart-object-literals.js";
|
|
9
9
|
import { i as ct, R as dt } from "./rest-js-object-literals.js";
|
|
@@ -128,7 +128,7 @@ async function wt(t) {
|
|
|
128
128
|
chartLimits: p
|
|
129
129
|
} = t;
|
|
130
130
|
let u = [], d;
|
|
131
|
-
const y =
|
|
131
|
+
const y = Z(s), g = y.series[0], l = _e({
|
|
132
132
|
queryObject: e,
|
|
133
133
|
chartConfig: y,
|
|
134
134
|
runtimeDataFilters: n,
|
|
@@ -186,6 +186,7 @@ async function wt(t) {
|
|
|
186
186
|
queryObject: e,
|
|
187
187
|
queryConfig: f,
|
|
188
188
|
featureCount: x,
|
|
189
|
+
returnStatisticsAggregatedIds: !0,
|
|
189
190
|
errorStrings: a,
|
|
190
191
|
abortSignal: i
|
|
191
192
|
}), u = Array.from(
|
|
@@ -262,7 +263,7 @@ async function Wt(t) {
|
|
|
262
263
|
s.series.length === 0 && u !== void 0 && s.series.push(u);
|
|
263
264
|
const g = _(s.series);
|
|
264
265
|
if (g === P.BoxPlotMonoFieldAndSplitBy || g === P.BoxPlotMultiFieldsAndSplitBy || g === P.BoxPlotMonoFieldAndCategoryAndSplitBy || g === P.BarAndLineSplitBy || g === P.BarAndLineSplitByNoAggregation) {
|
|
265
|
-
const l = je(s.series[0]?.query?.where), f = Ue(r), x =
|
|
266
|
+
const l = je(s.series[0]?.query?.where), f = Ue(r), x = He(l, f), b = x ? Ke(x) : !1, F = await wt({
|
|
266
267
|
queryObject: r,
|
|
267
268
|
chartConfig: s,
|
|
268
269
|
splitByField: l,
|
|
@@ -334,13 +335,13 @@ async function Is(t) {
|
|
|
334
335
|
function Xt(t, e) {
|
|
335
336
|
let s = !1;
|
|
336
337
|
if (e !== void 0) {
|
|
337
|
-
const r =
|
|
338
|
+
const r = Ze({ key: st.Average, splitBy: e });
|
|
338
339
|
s = Number.isFinite(t[r]);
|
|
339
340
|
}
|
|
340
341
|
return s;
|
|
341
342
|
}
|
|
342
343
|
function Ls(t) {
|
|
343
|
-
const { data: e, config: s, showEmptySeries: r } = t, a = s.series.length, i =
|
|
344
|
+
const { data: e, config: s, showEmptySeries: r } = t, a = s.series.length, i = Z(s);
|
|
344
345
|
let n = !1;
|
|
345
346
|
if (!r && a > 1 && e) {
|
|
346
347
|
const o = Ee(e), c = Be(s?.series), m = _(s?.series), p = /* @__PURE__ */ new Set();
|
|
@@ -430,7 +431,7 @@ const Vs = (t) => t.hideEmptyRowsAndColumns, Ns = (t, e) => {
|
|
|
430
431
|
}, Xs = (t) => t.series[0].gridLine?.color, js = (t, e) => {
|
|
431
432
|
const s = e.legend;
|
|
432
433
|
s && (s.position = t);
|
|
433
|
-
}, Us = (t) => t.legend?.position ?? lt.Bottom,
|
|
434
|
+
}, Us = (t) => t.legend?.position ?? lt.Bottom, Hs = (t) => t.series[0].query?.outStatistics?.[0]?.onStatisticField, Ks = (t) => {
|
|
434
435
|
const { field: e, config: s, layerInfo: r, commonStrings: a } = t, i = s.series[0].query?.outStatistics?.[0], n = ee(s, r, a);
|
|
435
436
|
i ? (i.onStatisticField = e, i.outStatisticFieldName = `${i.statisticType}_${e}`) : s.series[0].query = {
|
|
436
437
|
outStatistics: [
|
|
@@ -440,11 +441,11 @@ const Vs = (t) => t.hideEmptyRowsAndColumns, Ns = (t, e) => {
|
|
|
440
441
|
statisticType: L.Count
|
|
441
442
|
}
|
|
442
443
|
]
|
|
443
|
-
}, n && s.title && (s.title.content.text =
|
|
444
|
-
},
|
|
444
|
+
}, n && s.title && (s.title.content.text = H(s, r, a));
|
|
445
|
+
}, Zs = (t) => t.series[0].query?.outStatistics?.[0].statisticType ?? L.Count, _s = (t) => {
|
|
445
446
|
const { aggregationType: e, config: s, layerInfo: r, commonStrings: a } = t, i = s.series[0]?.query?.outStatistics?.[0], n = ee(s, r, a);
|
|
446
|
-
i && e !== L.NoAggregation && (i.statisticType = e, i.outStatisticFieldName = `${e}_${i.onStatisticField}`), (e === L.Count || e === L.Sum) &&
|
|
447
|
-
}, Qs = (t) => t.nullPolicy,
|
|
447
|
+
i && e !== L.NoAggregation && (i.statisticType = e, i.outStatisticFieldName = `${e}_${i.onStatisticField}`), (e === L.Count || e === L.Sum) && Ht($.Zero, s), n && s.title && (s.title.content.text = H(s, r, a));
|
|
448
|
+
}, Qs = (t) => t.nullPolicy, Ht = (t, e) => {
|
|
448
449
|
e.nullPolicy = t;
|
|
449
450
|
}, zs = (t) => t.series[0].emptyCells, Gs = (t, e) => {
|
|
450
451
|
e.series[0].emptyCells = t;
|
|
@@ -563,9 +564,9 @@ function X(t) {
|
|
|
563
564
|
unit: l
|
|
564
565
|
};
|
|
565
566
|
}
|
|
566
|
-
return
|
|
567
|
+
return Z(g);
|
|
567
568
|
}
|
|
568
|
-
function
|
|
569
|
+
function H(t, e, s) {
|
|
569
570
|
const { layerFieldsInfo: r } = e, { idField: a, isTraditionalTypeOID: i } = U(e.layer), n = Y(t), o = J(t), c = Ae(t), m = G(t), p = i && (o.length === 0 || o.includes(a)), u = mt(c, s), d = p ? "" : o.map((F) => D(r ?? [], F)).join(", "), y = D(r ?? [], n), g = D(r ?? [], m), l = t.series.some((F) => O(F)), f = l ? "category" : "xAxisField", x = y;
|
|
570
571
|
let b = "";
|
|
571
572
|
if (Te({
|
|
@@ -653,7 +654,7 @@ function ve(t) {
|
|
|
653
654
|
const { splitByField: e, numericFields: s, layer: r, seriesIndex: a } = t, i = U(r).idField ?? "";
|
|
654
655
|
return e === "" ? s[a] ?? i : s[0] ?? i;
|
|
655
656
|
}
|
|
656
|
-
function
|
|
657
|
+
function Kt(t) {
|
|
657
658
|
const { numericFields: e, aggregationType: s, config: r, layerInfo: a } = t;
|
|
658
659
|
let i = !1;
|
|
659
660
|
s === L.Count ? i = !0 : s === L.NoAggregation && (i = e.every((c) => {
|
|
@@ -677,7 +678,7 @@ const ne = (t) => {
|
|
|
677
678
|
}
|
|
678
679
|
return e;
|
|
679
680
|
};
|
|
680
|
-
function
|
|
681
|
+
function Zt(t) {
|
|
681
682
|
const { xAxisField: e, numericFields: s, aggregationType: r, config: a, layerInfo: i, commonStrings: n } = t, { layerFieldsInfo: o } = i;
|
|
682
683
|
let c = !1;
|
|
683
684
|
const m = X({
|
|
@@ -807,7 +808,7 @@ function Si(t) {
|
|
|
807
808
|
}
|
|
808
809
|
]
|
|
809
810
|
}, "temporalBinning" in d && d.temporalBinning !== void 0 && (d.temporalBinning.nullPolicy = e === L.NoAggregation ? $.Interpolate : $.Null), e === L.NoAggregation && Nt(s);
|
|
810
|
-
}), p && s.title && (s.title.content.text =
|
|
811
|
+
}), p && s.title && (s.title.content.text = H(s, r, a)), u && s.series[0].type !== B.HeatSeries) {
|
|
811
812
|
const d = le({
|
|
812
813
|
config: s,
|
|
813
814
|
layerInfo: r,
|
|
@@ -902,12 +903,12 @@ const Fi = (t) => {
|
|
|
902
903
|
layerInfo: n,
|
|
903
904
|
commonStrings: o,
|
|
904
905
|
splitByFieldInfos: c
|
|
905
|
-
} = t, { layerFieldsInfo: m } = n ?? {}, p =
|
|
906
|
+
} = t, { layerFieldsInfo: m } = n ?? {}, p = Z(i), u = At(i), d = Y(p), y = m.find((C) => C.name === d), g = p.series[0].query?.fetchNullValues, l = "nullCategory" in p.series?.[0] ? p.series[0].nullCategory : void 0, f = p.series[0]?.query === void 0, x = m.find((C) => C.name === e), b = ee(p, n, o), F = Le(p, n, o), S = Qt(p, n);
|
|
906
907
|
let I = Fe(i);
|
|
907
908
|
const T = p.series.some((C) => O(C)), h = ht(p.series), V = Tt(p.series), N = {};
|
|
908
909
|
M(p) && (N.classBreaksRules = p.series[0]?.classBreaksRules, N.xTemporalBinning = p.series[0]?.xTemporalBinning, N.yTemporalBinning = p.series[0]?.yTemporalBinning, N.emptyCells = p.series[0]?.emptyCells, N.nullPolicy = p.nullPolicy);
|
|
909
910
|
let te = !1;
|
|
910
|
-
if (rt(x) ? I = ge() : !ye(y) && ye(x) ? I = fe() : !
|
|
911
|
+
if (rt(x) ? I = ge() : !ye(y) && ye(x) ? I = fe() : !K(y) && K(x) ? (I = fe(), te = !0) : K(y) && !K(x) && (T ? I = ge() : I = Ft(), te = !0), I !== void 0 && Oe(i, o, I), u === 0 && (i.series = [
|
|
911
912
|
X({ config: i, xAxisField: e, aggregationType: a, layerInfo: n, commonStrings: o })
|
|
912
913
|
]), i.series.forEach((C) => {
|
|
913
914
|
C.x = e, C.query !== void 0 && (C.query.groupByFieldsForStatistics = [e]);
|
|
@@ -915,7 +916,7 @@ const Fi = (t) => {
|
|
|
915
916
|
fieldName: e,
|
|
916
917
|
numericFields: r,
|
|
917
918
|
fieldList: m
|
|
918
|
-
}) ? i.series =
|
|
919
|
+
}) ? i.series = Zt({
|
|
919
920
|
config: i,
|
|
920
921
|
layerInfo: n,
|
|
921
922
|
xAxisField: e,
|
|
@@ -952,7 +953,7 @@ const Fi = (t) => {
|
|
|
952
953
|
});
|
|
953
954
|
E(i, 1, C);
|
|
954
955
|
}
|
|
955
|
-
if (b && i.title && (i.title.content.text =
|
|
956
|
+
if (b && i.title && (i.title.content.text = H(i, n, o)), R({ config: i, value: null, axisIndex: 1, isMax: !1 }), R({ config: i, value: null, axisIndex: 1, isMax: !0 }), Kt({ numericFields: r, aggregationType: a, config: i, layerInfo: n }), (h || V) && (R({ config: i, value: null, axisIndex: 0, isMax: !1 }), R({ config: i, value: null, axisIndex: 0, isMax: !0 }), te && a !== L.NoAggregation)) {
|
|
956
957
|
const C = I?.type === B.DateAxisFormat ? $.Null : $.Interpolate;
|
|
957
958
|
Vt(C, i);
|
|
958
959
|
}
|
|
@@ -1010,7 +1011,7 @@ const Fi = (t) => {
|
|
|
1010
1011
|
}))), c;
|
|
1011
1012
|
};
|
|
1012
1013
|
function ee(t, e, s) {
|
|
1013
|
-
const r =
|
|
1014
|
+
const r = H(t, e, s), a = vt(t), i = z(t);
|
|
1014
1015
|
return r === a || i;
|
|
1015
1016
|
}
|
|
1016
1017
|
function Le(t, e, s) {
|
|
@@ -1048,7 +1049,7 @@ export {
|
|
|
1048
1049
|
Fi as C,
|
|
1049
1050
|
Bi as D,
|
|
1050
1051
|
Ci as E,
|
|
1051
|
-
|
|
1052
|
+
H as F,
|
|
1052
1053
|
jt as G,
|
|
1053
1054
|
Ds as H,
|
|
1054
1055
|
ri as I,
|
|
@@ -1076,14 +1077,14 @@ export {
|
|
|
1076
1077
|
qs as a2,
|
|
1077
1078
|
Os as a3,
|
|
1078
1079
|
ks as a4,
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1080
|
+
Hs as a5,
|
|
1081
|
+
Ks as a6,
|
|
1082
|
+
Zs as a7,
|
|
1082
1083
|
_s as a8,
|
|
1083
1084
|
Us as a9,
|
|
1084
1085
|
js as aa,
|
|
1085
1086
|
Qs as ab,
|
|
1086
|
-
|
|
1087
|
+
Ht as ac,
|
|
1087
1088
|
zs as ad,
|
|
1088
1089
|
Gs as ae,
|
|
1089
1090
|
Js as af,
|
package/dist/chunks/utils.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { substitute as b } from "@arcgis/core/intl.js";
|
|
3
|
-
import { u as j, F as q, J as w, T as k, D as M, v as
|
|
4
|
-
import { g as
|
|
3
|
+
import { u as j, F as q, J as w, T as k, D as M, v as W } from "./index.js";
|
|
4
|
+
import { g as $ } from "./series-types.js";
|
|
5
5
|
import { l as E, d as S, q as U, D as H } from "./index3.js";
|
|
6
|
-
import { an as I, ag as K, h as O,
|
|
6
|
+
import { an as I, ag as K, h as O, c2 as L, a6 as h, c1 as V, aH as P } from "./index2.js";
|
|
7
7
|
import { k as X } from "./index5.js";
|
|
8
8
|
import { q as R, u as f, r as A, p as G } from "./chart-object-literals.js";
|
|
9
9
|
import { d as T } from "./type-guards.js";
|
|
@@ -37,7 +37,7 @@ function re(s) {
|
|
|
37
37
|
}
|
|
38
38
|
return o;
|
|
39
39
|
}
|
|
40
|
-
const B = (s, e, i) => s.axes?.[e] ??
|
|
40
|
+
const B = (s, e, i) => s.axes?.[e] ?? W(i, s.type)[e], D = (s) => {
|
|
41
41
|
const { config: e, axis: i, axisIndex: t } = s;
|
|
42
42
|
e.axes !== void 0 && (e.axes[t] = i);
|
|
43
43
|
}, oe = (s) => {
|
|
@@ -60,7 +60,7 @@ const B = (s, e, i) => s.axes?.[e] ?? $(i, s.type)[e], D = (s) => {
|
|
|
60
60
|
const t = s.axes?.[e];
|
|
61
61
|
t !== void 0 && (t.integerOnlyValues = i);
|
|
62
62
|
}, J = (s) => {
|
|
63
|
-
const e =
|
|
63
|
+
const e = $(s.series);
|
|
64
64
|
return e === f.BarSeries || e === f.ComboLineAndBarSeries || e === f.LineSeries;
|
|
65
65
|
}, Q = (s) => {
|
|
66
66
|
const { axisIndex: e, config: i, isMultiAxis: t } = s;
|
|
@@ -7,7 +7,7 @@ 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 z, a as pe } from "./data.js";
|
|
10
|
-
import { Y as U, an as be, af as xe, aK as E,
|
|
10
|
+
import { Y as U, an as be, af as xe, aK as E, cl as Fe, B as V, a6 as De, bb as Se, d5 as Be } from "./index2.js";
|
|
11
11
|
import { k as q, aw as $, g as R, aq 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";
|