@arcgis/charts-components 5.2.0-next.105 → 5.2.0-next.106
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/{FHSOGQIM.js → 2BGHBNJR.js} +1 -1
- package/dist/cdn/2DW7DIXF.js +2 -0
- package/dist/cdn/{W7AXND3Q.js → 2LB76NS6.js} +4 -4
- package/dist/cdn/{WP4MTZZ4.js → 4INX2G3Q.js} +1 -1
- package/dist/cdn/4MUAQ5B5.js +2 -0
- package/dist/cdn/{RODCWBRR.js → 4OGNJHCC.js} +1 -1
- package/dist/cdn/56WSP7OU.js +2 -0
- package/dist/cdn/{NUPNG565.js → 5AG5HEJZ.js} +1 -1
- package/dist/cdn/{MA2W3LRP.js → 5XWDINLX.js} +1 -1
- package/dist/cdn/62QMWHS5.js +2 -0
- package/dist/cdn/6QSUWRYL.js +2 -0
- package/dist/cdn/{CUFMJAOH.js → 7WA5HGTF.js} +1 -1
- package/dist/cdn/{TLXWSOHC.js → AGBAER7I.js} +1 -1
- package/dist/cdn/{DIA75CKV.js → C5RPVPL3.js} +1 -1
- package/dist/cdn/DJSBCERV.js +2 -0
- package/dist/cdn/{BQIVBJC6.js → DPW6WDUS.js} +1 -1
- package/dist/cdn/{UUVUD77I.js → E2GZPXA7.js} +1 -1
- package/dist/cdn/{PKOUMDEH.js → EFLW5TIU.js} +1 -1
- package/dist/cdn/EGACYY5M.js +2 -0
- package/dist/cdn/EJD6DN4F.js +2 -0
- package/dist/cdn/{NVWUW2QZ.js → F2GL6TNL.js} +1 -1
- package/dist/cdn/{A32OUH5N.js → FY2QCHZI.js} +1 -1
- package/dist/cdn/{JIFGUAST.js → G5MSOPGH.js} +1 -1
- package/dist/cdn/{YNSSLWJT.js → GI7GNXRE.js} +1 -1
- package/dist/cdn/HE7XU44N.js +2 -0
- package/dist/cdn/{6IX32XNU.js → HJD7UOQ5.js} +1 -1
- package/dist/cdn/HLQ2CNM3.js +2 -0
- package/dist/cdn/{P72U7INS.js → HT5BW23V.js} +1 -1
- package/dist/cdn/{GTBMCBRY.js → JTZ3RZ4S.js} +1 -1
- package/dist/cdn/{O4PD2PGE.js → JWQRYKTY.js} +1 -1
- package/dist/cdn/{MJPN22Y4.js → JY6LCMBR.js} +1 -1
- package/dist/cdn/{ADHDTBG4.js → KMXRCG6Z.js} +1 -1
- package/dist/cdn/KRCT56OY.js +2 -0
- package/dist/cdn/{RCRWMQ26.js → KZBGGWMD.js} +1 -1
- package/dist/cdn/{6I4QCKNB.js → L4FZSJ6R.js} +1 -1
- package/dist/cdn/{2D4RIU3R.js → LTWZDHJW.js} +1 -1
- package/dist/cdn/MA3MMSOX.js +2 -0
- package/dist/cdn/MNXVSHZ7.js +2 -0
- package/dist/cdn/MQXTDYOZ.js +2 -0
- package/dist/cdn/{AR42YXOQ.js → OIJ2CF62.js} +1 -1
- package/dist/cdn/{5E4DFHD2.js → OVEDTDHX.js} +1 -1
- package/dist/cdn/OYFD6FQQ.js +2 -0
- package/dist/cdn/P4N6FLFI.js +2 -0
- package/dist/cdn/P5KPN2M7.js +2 -0
- package/dist/cdn/QAKREKNC.js +2 -0
- package/dist/cdn/{I2N7DZC6.js → QEG6Y27C.js} +1 -1
- package/dist/cdn/QJ5B6PUR.js +2 -0
- package/dist/cdn/RHN3QMSR.js +2 -0
- package/dist/cdn/{R6QBA2OM.js → TGPO6WYY.js} +1 -1
- package/dist/cdn/{KJRFPLJU.js → TIG4E3EM.js} +1 -1
- package/dist/cdn/U3BNFQQK.js +2 -0
- package/dist/cdn/{ZFDAOSJJ.js → UFFXRD7K.js} +1 -1
- package/dist/cdn/{2E6PIVZ3.js → UJDDDBXM.js} +1 -1
- package/dist/cdn/{4AV26VPX.js → V6OKA45H.js} +1 -1
- package/dist/cdn/VMVEEBUO.js +2 -0
- package/dist/cdn/{TFISDVHR.js → W4G4IP5B.js} +1 -1
- package/dist/cdn/{HFIBFLMU.js → WRISK5ZQ.js} +1 -1
- package/dist/cdn/{N66TGPHC.js → XCMVEVEM.js} +1 -1
- package/dist/cdn/XN5TYGE4.js +2 -0
- package/dist/cdn/{GNFP2CXI.js → ZTZYNW4S.js} +1 -1
- package/dist/cdn/{6P5RUNL4.js → ZXLDEDFO.js} +1 -1
- package/dist/cdn/ZYGG7EGH.js +2 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/bar-chart-model.js +1 -1
- package/dist/chunks/box-plot-model.js +1 -1
- package/dist/chunks/chart-model.js +1 -1
- package/dist/chunks/combo-bar-line-chart-model.js +8 -8
- package/dist/chunks/gauge-model.js +1 -1
- package/dist/chunks/generate-x-axis-title.js +17 -13
- package/dist/chunks/histogram-model.js +1 -1
- package/dist/chunks/line-chart-model.js +1 -1
- package/dist/chunks/model-with-x-guides.js +5 -5
- package/dist/chunks/model-with-y-guides.js +218 -223
- package/dist/chunks/pie-chart-model.js +13 -13
- package/dist/chunks/radar-chart-model.js +1 -1
- package/dist/chunks/scatterplot-model.js +11 -11
- package/dist/chunks/serial-chart-data.js +24 -24
- package/dist/chunks/serial-chart-model.js +1 -1
- package/dist/chunks/utils.js +81 -68
- package/dist/chunks/utils2.js +55 -38
- package/dist/chunks/x-bounds.js +13 -9
- package/dist/components/arcgis-chart/customElement.js +179 -174
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +14 -14
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/model/box-plot-model/box-plot-model.d.ts +2 -2
- package/dist/model/mixins/model-with-multi-axes.d.ts +14 -14
- package/package.json +4 -4
- package/dist/cdn/25IIAVUC.js +0 -2
- package/dist/cdn/3ZKNY2GI.js +0 -2
- package/dist/cdn/56YB7O3M.js +0 -2
- package/dist/cdn/AIAPONGU.js +0 -2
- package/dist/cdn/APB46III.js +0 -2
- package/dist/cdn/ASI3OTVS.js +0 -2
- package/dist/cdn/ASWFZXWR.js +0 -2
- package/dist/cdn/BPHPASCX.js +0 -2
- package/dist/cdn/C6YOQVOB.js +0 -2
- package/dist/cdn/DDPCQLH7.js +0 -2
- package/dist/cdn/E4NCL4M4.js +0 -2
- package/dist/cdn/GJCCH4ZB.js +0 -2
- package/dist/cdn/IEWOWYUS.js +0 -2
- package/dist/cdn/KZFSBW6I.js +0 -2
- package/dist/cdn/L4DH3UPO.js +0 -2
- package/dist/cdn/LROOQ7ZG.js +0 -2
- package/dist/cdn/MIIK4YRO.js +0 -2
- package/dist/cdn/R7ZATTXB.js +0 -2
- package/dist/cdn/T2PEASLR.js +0 -2
- package/dist/cdn/UDQWJ62J.js +0 -2
- package/dist/cdn/W5TZDZZJ.js +0 -2
- package/dist/cdn/WQ3R3KT4.js +0 -2
- package/dist/cdn/XCGSICB5.js +0 -2
- package/dist/cdn/ZM5TS7H5.js +0 -2
|
@@ -4,14 +4,14 @@ import { a as g } from "./chart-object-literals.js";
|
|
|
4
4
|
import { p as b, r as B } from "./index.js";
|
|
5
5
|
import { i as E } from "./index4.js";
|
|
6
6
|
import { a6 as p, ax as W, j as L, p as k, aw as R, af as j } from "./index3.js";
|
|
7
|
-
import { a as
|
|
7
|
+
import { a as f, b as K } from "./index2.js";
|
|
8
8
|
import { C as q } from "./chart-model.js";
|
|
9
9
|
import { m as s } from "./model-setter.js";
|
|
10
10
|
import { b as n, P as u } from "./common.js";
|
|
11
11
|
import { M as H, a as J, W as Q, b as U } from "./data-labels-visibility.js";
|
|
12
12
|
import { W as X } from "./data-labels-symbol.js";
|
|
13
|
-
import {
|
|
14
|
-
import { i as y, a as m, g as
|
|
13
|
+
import { k as Y, c as Z, h as $ } from "./utils.js";
|
|
14
|
+
import { i as y, a as m, g as h, s as ee, c as te, b as ie, d as se, e as re, f as ae, h as O, j as D, k as oe } from "./pie-chart-data.js";
|
|
15
15
|
import { cloneDeep as le } from "lodash-es";
|
|
16
16
|
import { b as _ } from "./rest-js-object-literals.js";
|
|
17
17
|
const C = (t) => t.legend?.displayNumericValue ?? !1, v = (t, e) => {
|
|
@@ -28,9 +28,9 @@ const C = (t) => t.legend?.displayNumericValue ?? !1, v = (t, e) => {
|
|
|
28
28
|
e.series?.[0] && (e.series[0].innerRadius = t);
|
|
29
29
|
}, de = (t) => t.series?.[0]?.dataLabelsCharacterLimit, ue = (t, e) => {
|
|
30
30
|
e.series?.[0] && (e.series[0].dataLabelsCharacterLimit = t);
|
|
31
|
-
}, M = (t) => t.series[0]?.startAngle,
|
|
31
|
+
}, M = (t) => t.series[0]?.startAngle, he = (t, e) => {
|
|
32
32
|
e.series?.[0] && (e.series[0].startAngle = t);
|
|
33
|
-
},
|
|
33
|
+
}, fe = (t, e) => {
|
|
34
34
|
e.series?.[0] && (e.series[0].endAngle = t);
|
|
35
35
|
}, ye = (t) => t.series?.[0]?.displayCategoryOnTooltip ?? !0, me = (t) => t.series?.[0]?.displayCategoryOnDataLabel ?? !0, _e = (t) => t.series?.[0]?.displayNumericValueOnDataLabel ?? !0, Se = (t) => t.series?.[0]?.displayPercentageOnDataLabel ?? !1, be = (t) => t.series?.[0]?.displayNumericValueOnTooltip ?? !0, Le = (t) => t.series?.[0]?.displayPercentageOnTooltip ?? !0, Oe = (t, e) => {
|
|
36
36
|
e.series[0] && (e.series[0].displayPercentageOnTooltip = t);
|
|
@@ -111,9 +111,9 @@ class i extends q {
|
|
|
111
111
|
await this.loadConfigFromLayer(e);
|
|
112
112
|
const { config: a } = e;
|
|
113
113
|
if (a !== void 0) {
|
|
114
|
-
const l = b(a.series) !==
|
|
114
|
+
const l = b(a.series) !== f.PieFromFields ? u.Category : u.Fields;
|
|
115
115
|
this._mode = y({
|
|
116
|
-
category:
|
|
116
|
+
category: h(this._config),
|
|
117
117
|
numericFields: m(this._config),
|
|
118
118
|
fallbackMode: l
|
|
119
119
|
});
|
|
@@ -127,7 +127,7 @@ class i extends q {
|
|
|
127
127
|
* Category field for the pie chart.
|
|
128
128
|
*/
|
|
129
129
|
get category() {
|
|
130
|
-
return
|
|
130
|
+
return h(this._config);
|
|
131
131
|
}
|
|
132
132
|
set category(e) {
|
|
133
133
|
(!E(this._config) || e.trim() !== "") && (this._mode = y({
|
|
@@ -150,7 +150,7 @@ class i extends q {
|
|
|
150
150
|
}
|
|
151
151
|
set numericFields(e) {
|
|
152
152
|
typeof e == "string" && (e = [e]), (this.layerInfo !== void 0 ? Y(this.layerInfo.layerFieldsInfo, e) : !0) ? (this._mode = y({
|
|
153
|
-
category:
|
|
153
|
+
category: h(this._config),
|
|
154
154
|
numericFields: e,
|
|
155
155
|
fallbackMode: this._mode
|
|
156
156
|
}), te({
|
|
@@ -226,9 +226,9 @@ class i extends q {
|
|
|
226
226
|
* Gets the list of the category values for the chart.
|
|
227
227
|
*/
|
|
228
228
|
async getCustomSortValues() {
|
|
229
|
-
const e =
|
|
229
|
+
const e = h(this._config), a = b(this._config.series);
|
|
230
230
|
let o = [];
|
|
231
|
-
return a ===
|
|
231
|
+
return a === f.PieFromFields ? o = this.numericFields : e.trim() !== "" && a === f.PieFromCategory && (o = await Z({
|
|
232
232
|
category: e,
|
|
233
233
|
config: this._config,
|
|
234
234
|
layerInfo: this.layerInfo,
|
|
@@ -446,7 +446,7 @@ class i extends q {
|
|
|
446
446
|
return M(this._config);
|
|
447
447
|
}
|
|
448
448
|
set startAngle(e) {
|
|
449
|
-
|
|
449
|
+
he(e, this._config);
|
|
450
450
|
}
|
|
451
451
|
/**
|
|
452
452
|
* End angle of the pie chart.
|
|
@@ -455,7 +455,7 @@ class i extends q {
|
|
|
455
455
|
return M(this._config);
|
|
456
456
|
}
|
|
457
457
|
set endAngle(e) {
|
|
458
|
-
|
|
458
|
+
fe(e, this._config);
|
|
459
459
|
}
|
|
460
460
|
/**
|
|
461
461
|
* Whether to display the category on the data label.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { S as c, s as y, a as m } from "./serial-chart-model.js";
|
|
3
3
|
import { s as g, a as f, b, 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 { h as T } from "./utils.js";
|
|
6
6
|
import { m as d } from "./model-setter.js";
|
|
7
7
|
import { a as L, m as C } from "./chart-object-literals.js";
|
|
8
8
|
import { M as V } from "./model-with-line-marker-styling.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
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, h as O } from "./utils.js";
|
|
3
3
|
import { substitute as Y } from "@arcgis/core/intl.js";
|
|
4
|
-
import { isEmpty as
|
|
4
|
+
import { isEmpty as x, isEqual as D } from "lodash-es";
|
|
5
5
|
import { g as z } from "./series-length.js";
|
|
6
6
|
import { g as b } from "./utils2.js";
|
|
7
7
|
import { aB as m, B as w, az as k } from "./index3.js";
|
|
@@ -33,17 +33,17 @@ function M(i, e) {
|
|
|
33
33
|
return s === r || o;
|
|
34
34
|
}
|
|
35
35
|
function C(i, e) {
|
|
36
|
-
const { layerFieldsInfo: t } = e, s =
|
|
36
|
+
const { layerFieldsInfo: t } = e, s = f(i), r = y(t, s), o = b(0, i), n = T(i);
|
|
37
37
|
return r === o || n;
|
|
38
38
|
}
|
|
39
39
|
function g(i, e, t) {
|
|
40
|
-
const s =
|
|
40
|
+
const s = f(i), r = u(i), { layerFieldsInfo: o } = e, n = y(o, s), a = y(o, r);
|
|
41
41
|
return Y(t.titleLabels.xAndY, { x: n, y: a });
|
|
42
42
|
}
|
|
43
43
|
const _ = (i) => {
|
|
44
44
|
const { x: e, y: t, config: s, layerInfo: r, updateChartTitle: o, updateXAxisTitle: n, updateYAxisTitle: a, commonStrings: h } = i, { layerFieldsInfo: A } = r, W = y(A, e), P = y(A, t);
|
|
45
|
-
!
|
|
46
|
-
},
|
|
45
|
+
!x(e) && n && v(s, 0, W), !x(t) && a && v(s, 1, P), !x(e) && !x(t) && s.title && o && (s.title.content.text = g(s, r, h));
|
|
46
|
+
}, f = (i) => i.series[0]?.x ?? "", u = (i) => i.series[0]?.y ?? "", re = (i) => {
|
|
47
47
|
const { fieldName: e, config: t, layerInfo: s, commonStrings: r } = i, o = I(t, s, r), n = C(t, s), a = M(t, s);
|
|
48
48
|
F(t), t.series[0] && (t.series[0].x = e), _({
|
|
49
49
|
x: e,
|
|
@@ -63,7 +63,7 @@ const _ = (i) => {
|
|
|
63
63
|
}, oe = (i) => {
|
|
64
64
|
const { fieldName: e, config: t, layerInfo: s, commonStrings: r } = i, o = I(t, s, r), n = C(t, s), a = M(t, s);
|
|
65
65
|
F(t), t.series[0] && (t.series[0].y = e), _({
|
|
66
|
-
x:
|
|
66
|
+
x: f(t),
|
|
67
67
|
y: e,
|
|
68
68
|
config: t,
|
|
69
69
|
layerInfo: s,
|
|
@@ -93,7 +93,7 @@ const _ = (i) => {
|
|
|
93
93
|
!(e.series[0]?.overlays?.trendLine?.created ?? !1) && i && (e.series[0].overlays ??= m(), e.series[0].overlays.trendLine ??= m().trendLine, e.series[0].overlays.trendLine.created = i), ye(i, e);
|
|
94
94
|
}, S = (i) => i.series[0]?.sizePolicy ?? w(), pe = (i, e) => {
|
|
95
95
|
e.series[0] && (i !== void 0 && i.field?.trim() !== "" ? e.series[0].sizePolicy = { ...e.series[0].sizePolicy, ...i } : e.series[0].sizePolicy = void 0);
|
|
96
|
-
},
|
|
96
|
+
}, xe = (i) => i?.series?.[0]?.overlays, fe = (i, e) => {
|
|
97
97
|
e?.series[0] !== void 0 && (e.series[0].overlays = i);
|
|
98
98
|
}, ue = (i) => i.series.find((e) => e.additionalTooltipFields !== void 0)?.additionalTooltipFields ?? [], he = (i, e) => {
|
|
99
99
|
e.series.forEach((t) => {
|
|
@@ -119,7 +119,7 @@ class l extends B {
|
|
|
119
119
|
* X-axis field.
|
|
120
120
|
*/
|
|
121
121
|
get xAxisField() {
|
|
122
|
-
return
|
|
122
|
+
return f(this._config);
|
|
123
123
|
}
|
|
124
124
|
set xAxisField(e) {
|
|
125
125
|
re({ fieldName: e, config: this._config, layerInfo: this.layerInfo, commonStrings: this.commonStrings }), this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"));
|
|
@@ -174,10 +174,10 @@ class l extends B {
|
|
|
174
174
|
* Trendline overlay for the scatterplot.
|
|
175
175
|
*/
|
|
176
176
|
get seriesOverlays() {
|
|
177
|
-
return
|
|
177
|
+
return xe(this._config);
|
|
178
178
|
}
|
|
179
179
|
set seriesOverlays(e) {
|
|
180
|
-
e !== void 0 &&
|
|
180
|
+
e !== void 0 && fe(e, this._config);
|
|
181
181
|
}
|
|
182
182
|
/**
|
|
183
183
|
* Add an additional field to display for scatterplot tooltips.
|
|
@@ -3,13 +3,13 @@ import { substitute as M } from "@arcgis/core/intl.js";
|
|
|
3
3
|
import { cloneDeep as J, memoize as Ye, isEmpty as $e } from "lodash-es";
|
|
4
4
|
import { S as oe } from "./common.js";
|
|
5
5
|
import { s as D, u as Y, a as Ie, g as ye, b as Le, c as Xe, d as He, e as pe } from "./utils.js";
|
|
6
|
-
import { Y as L, aM as $, bi as Ue, bN as je, bO as Ze, bC as Ne, f as Ke, p as ee, W as _e, V as Qe, bP as ze, O as me, aW as Ge, bQ as Je, N as et, t as tt, bR as st, aN as it, Q as at, bS as rt, _ as nt, bw as ot, bT as lt, bU as fe, bV as ct, bW as ut, bX as dt, P as yt, bY as Se, bZ as _, bE as mt, aO as
|
|
6
|
+
import { Y as L, aM as $, bi as Ue, bN as je, bO as Ze, bC as Ne, f as Ke, p as ee, W as _e, V as Qe, bP as ze, O as me, aW as Ge, bQ as Je, N as et, t as tt, bR as st, aN as it, Q as at, bS as rt, _ as nt, bw as ot, bT as lt, bU as fe, bV as ct, bW as ut, bX as dt, P as yt, bY as Se, bZ as _, bE as mt, aO as q, aV as Q, M as gt, r as j, a1 as Oe, b_ as W, bA as U, b$ as pt, c0 as ft, c1 as V, c2 as k, c3 as Fe, bB as xe } from "./index.js";
|
|
7
7
|
import { a as E, s as ge, g as te, b as he, c as St } from "./data.js";
|
|
8
|
-
import { a as T, d as I, f as Ft, l as
|
|
8
|
+
import { a as T, d as I, f as Ft, l as R, t as N, h as X, g as xt, b as ht, e as le } from "./chart-object-literals.js";
|
|
9
9
|
import { d as De, b as Tt } from "./rest-js-object-literals.js";
|
|
10
10
|
import { i as se } from "./index4.js";
|
|
11
11
|
import { q as Bt, W as z, X as ce, H as Ct, Y as bt, Z as At, _ as vt, $ as It, j as Lt } from "./index3.js";
|
|
12
|
-
import { a as P, C as H, b as
|
|
12
|
+
import { a as P, C as H, b as w } from "./index2.js";
|
|
13
13
|
import { g as Ve, s as Nt } from "./series-types.js";
|
|
14
14
|
import { C as Ot, m as Dt } from "./model-setter.js";
|
|
15
15
|
import { convertChartSpec as Vt } from "../utils/chart-config/converter/index.js";
|
|
@@ -406,7 +406,7 @@ const Xs = (s) => s.hideEmptyRowsAndColumns, Hs = (s, e) => {
|
|
|
406
406
|
const { yField: e, config: t, layerInfo: r, commonStrings: i } = s, { layerFieldsInfo: a } = r, n = ie(1, t), o = Jt(t), l = se(t), c = t.series[0];
|
|
407
407
|
if (typeof e == "string" && o !== e && c) {
|
|
408
408
|
if (c.y = e, Ut(t), o === n || l) {
|
|
409
|
-
const p =
|
|
409
|
+
const p = w(a, e);
|
|
410
410
|
Y(t, 1, p);
|
|
411
411
|
}
|
|
412
412
|
qe({ commonStrings: i, config: t, layerInfo: r });
|
|
@@ -522,12 +522,12 @@ function Li(s, e) {
|
|
|
522
522
|
};
|
|
523
523
|
}
|
|
524
524
|
const as = [
|
|
525
|
-
|
|
526
|
-
|
|
525
|
+
R.DayOfMonth,
|
|
526
|
+
R.MonthOfYear
|
|
527
527
|
], Te = (s) => {
|
|
528
528
|
let e;
|
|
529
|
-
return _(s) ? e = ce() : (
|
|
530
|
-
}, Be = (s) =>
|
|
529
|
+
return _(s) ? e = ce() : (q(s) || Q(s)) && (e = z()), e;
|
|
530
|
+
}, Be = (s) => q(s) || Q(s), Ce = (s) => {
|
|
531
531
|
const { axisIndex: e, commonStrings: t, config: r, valueFormat: i } = s, a = r.axes?.[e]?.valueFormat;
|
|
532
532
|
i !== void 0 && a?.type !== i.type && Ie({ config: r, commonStrings: t, valueFormat: i, axisIndex: e });
|
|
533
533
|
}, rs = (s, e) => {
|
|
@@ -535,23 +535,23 @@ const as = [
|
|
|
535
535
|
return e === 0 ? t = s.series[0]?.xTemporalBinning : e === 1 && (t = s.series[0]?.yTemporalBinning), t;
|
|
536
536
|
}, be = (s, e) => s.utilsStrings.heatChartCalendarDatePartsUnits[e] ?? "", Ae = (s, e) => {
|
|
537
537
|
let t = as[s];
|
|
538
|
-
return s === 0 && e?.unit ===
|
|
538
|
+
return s === 0 && e?.unit === R.DayOfWeek ? t = R.HourOfDay : s === 1 && e?.unit === R.HourOfDay && (t = R.DayOfWeek), {
|
|
539
539
|
type: T.CalendarDateParts,
|
|
540
540
|
unit: t
|
|
541
541
|
};
|
|
542
542
|
}, ns = (s) => {
|
|
543
543
|
let e = {};
|
|
544
544
|
switch (s.unit) {
|
|
545
|
-
case
|
|
545
|
+
case R.DayOfMonth:
|
|
546
546
|
e = { day: "2-digit" };
|
|
547
547
|
break;
|
|
548
|
-
case
|
|
548
|
+
case R.DayOfWeek:
|
|
549
549
|
e = { weekday: "short" };
|
|
550
550
|
break;
|
|
551
|
-
case
|
|
551
|
+
case R.HourOfDay:
|
|
552
552
|
e = { hour: "numeric", hour12: !1 };
|
|
553
553
|
break;
|
|
554
|
-
case
|
|
554
|
+
case R.MonthOfYear:
|
|
555
555
|
e = { month: "short" };
|
|
556
556
|
break;
|
|
557
557
|
default:
|
|
@@ -563,7 +563,7 @@ const as = [
|
|
|
563
563
|
intlOptions: e
|
|
564
564
|
};
|
|
565
565
|
}, ve = (s) => {
|
|
566
|
-
const { axisIndex: e, binning: t, commonStrings: r, config: i, fieldName: a, layerInfo: n } = s, o = i.series[0], l = ie(e, i), c =
|
|
566
|
+
const { axisIndex: e, binning: t, commonStrings: r, config: i, fieldName: a, layerInfo: n } = s, o = i.series[0], l = ie(e, i), c = w(n.layerFieldsInfo, a);
|
|
567
567
|
e === 0 ? o.xTemporalBinning = t : e === 1 && (o.yTemporalBinning = t), t !== void 0 && (l === "" || l === c || l === be(r, t.unit) || l === r.xAxis) && Y(i, e, be(r, t.unit));
|
|
568
568
|
}, G = (s) => {
|
|
569
569
|
const { axisIndex: e, commonStrings: t, config: r } = s, i = rs(r, e), a = i ? ns(i) : void 0;
|
|
@@ -667,7 +667,7 @@ function ae(s) {
|
|
|
667
667
|
return J(C);
|
|
668
668
|
}
|
|
669
669
|
function Z(s, e, t) {
|
|
670
|
-
const { layerFieldsInfo: r } = e, { idField: i, isTraditionalTypeOID: a } = j(e.layer), n = E(s), o = K(s), l = we(s), c = re(s), p = a && (o.length === 0 || o.includes(i)), f = Ct(l, t), u = p ? "" : o.map((S) =>
|
|
670
|
+
const { layerFieldsInfo: r } = e, { idField: i, isTraditionalTypeOID: a } = j(e.layer), n = E(s), o = K(s), l = we(s), c = re(s), p = a && (o.length === 0 || o.includes(i)), f = Ct(l, t), u = p ? "" : o.map((S) => w(r ?? [], S)).join(", "), m = w(r ?? [], n), d = w(r ?? [], c), y = s.series.some((S) => W(S)), g = y ? "category" : "xAxisField", F = m;
|
|
671
671
|
let x = "";
|
|
672
672
|
if (ge({
|
|
673
673
|
fieldName: n,
|
|
@@ -832,7 +832,7 @@ function Ee(s) {
|
|
|
832
832
|
fieldList: o
|
|
833
833
|
}).name, x = t[d], S = i.series.find(
|
|
834
834
|
(O) => O.query?.where === void 0 && (O.query?.outStatistics?.length === 1 && O.query?.outStatistics?.[0]?.onStatisticField === x || O.query?.outStatistics === void 0 && (O.y === x || O.x === x))
|
|
835
|
-
), A = x !== l ? x : y.id, C = S?.id ?? A, B = S?.name ??
|
|
835
|
+
), A = x !== l ? x : y.id, C = S?.id ?? A, B = S?.name ?? w(o, x) ?? C, v = S ?? y, b = {
|
|
836
836
|
...v,
|
|
837
837
|
id: C,
|
|
838
838
|
name: B
|
|
@@ -983,8 +983,8 @@ const Oi = (s) => {
|
|
|
983
983
|
splitByFieldInfos: l
|
|
984
984
|
} = s, { layerFieldsInfo: c } = n ?? {}, p = J(a), f = qt(a), u = E(p), m = c.find((h) => h.name === u), d = a.series[0]?.query === void 0, y = c.find((h) => h.name === e), g = ne(p, n, o), F = We(p, n, o), x = ds({ config: p, layerInfo: n, commonStrings: o });
|
|
985
985
|
let S = Le(a);
|
|
986
|
-
const A = p.series.some((h) => W(h)), C = pt(p.series), B = ft(p.series), v =
|
|
987
|
-
if (_(y) ? S = ce() : !Q(m) && Q(y) ? S = z() : !
|
|
986
|
+
const A = p.series.some((h) => W(h)), C = pt(p.series), B = ft(p.series), v = q(m) || q(y);
|
|
987
|
+
if (_(y) ? S = ce() : !Q(m) && Q(y) ? S = z() : !q(m) && q(y) ? S = z() : q(m) && !q(y) && (A ? S = ce() : S = Lt()), S !== void 0 && He(a, o, S), f === 0 && (a.series = [
|
|
988
988
|
ae({ config: a, xAxisField: e, aggregationType: i, layerInfo: n, commonStrings: o })
|
|
989
989
|
]), a.series.forEach((h) => {
|
|
990
990
|
h.x = e, h.query !== void 0 && (h.query.groupByFieldsForStatistics = [e]);
|
|
@@ -1016,7 +1016,7 @@ const Oi = (s) => {
|
|
|
1016
1016
|
commonStrings: o,
|
|
1017
1017
|
splitByFieldInfos: l
|
|
1018
1018
|
})), x && e !== U && a.series[0].type !== T.HeatSeries) {
|
|
1019
|
-
const h =
|
|
1019
|
+
const h = w(c, e);
|
|
1020
1020
|
Y(a, 0, h);
|
|
1021
1021
|
}
|
|
1022
1022
|
if (F && a.series[0].type !== T.HeatSeries) {
|
|
@@ -1042,11 +1042,11 @@ const Oi = (s) => {
|
|
|
1042
1042
|
axisIndex: 1,
|
|
1043
1043
|
isMax: !0
|
|
1044
1044
|
}), ls({ numericFields: r, aggregationType: i, config: a, layerInfo: n }), (C || B) && (D({ config: a, value: null, axisIndex: 0, isMax: !1 }), D({ config: a, value: null, axisIndex: 0, isMax: !0 }), v && i !== I.NoAggregation && !$(p))) {
|
|
1045
|
-
const h =
|
|
1045
|
+
const h = q(y) ? X.Null : X.Interpolate;
|
|
1046
1046
|
Et(h, a);
|
|
1047
1047
|
}
|
|
1048
1048
|
$(a) && qe({ commonStrings: o, config: a, layerInfo: n }), a.series.forEach((h) => {
|
|
1049
|
-
d && delete h.query, L(h) &&
|
|
1049
|
+
d && delete h.query, u !== e && L(h) && (y?.type === De.TimeOnly ? h.binTemporalData = !1 : h.binTemporalData = h.type === T.LineSeries && q(y));
|
|
1050
1050
|
});
|
|
1051
1051
|
}, Me = (s, e) => {
|
|
1052
1052
|
s.markerVisible = e.markerVisible, s.lineSmoothed = e.lineSmoothed, s.showArea = e.showArea, s.areaColor = e.areaColor, s.stackNegativeValuesToBaseline = e.stackNegativeValuesToBaseline, e.lineSymbol && (s.lineSymbol = { ...e.lineSymbol, color: s.lineSymbol?.color }), e.markerSymbol && (s.markerSymbol = {
|
|
@@ -1060,7 +1060,7 @@ const Oi = (s) => {
|
|
|
1060
1060
|
o = i.axisLabels.values;
|
|
1061
1061
|
else if ($e(n)) {
|
|
1062
1062
|
const c = a.query?.outStatistics?.[0]?.onStatisticField;
|
|
1063
|
-
c !== void 0 && c !== j(r.layer).idField && (o =
|
|
1063
|
+
c !== void 0 && c !== j(r.layer).idField && (o = w(r.layerFieldsInfo, c));
|
|
1064
1064
|
} else {
|
|
1065
1065
|
const c = String(Re(a)).trim().replace(/'/gu, "");
|
|
1066
1066
|
o = Oe({
|
|
@@ -1084,7 +1084,7 @@ const Oi = (s) => {
|
|
|
1084
1084
|
}, ki = async (s) => {
|
|
1085
1085
|
const { config: e, layerInfo: t, errorStrings: r } = s, i = E(e), a = Le(e)?.type, n = K(e), o = ee(e.series);
|
|
1086
1086
|
let l = [];
|
|
1087
|
-
return a === T.CategoryAxisFormat && (o === P.BarAndLineFromFields || i === U ? l = n.map((c) =>
|
|
1087
|
+
return a === T.CategoryAxisFormat && (o === P.BarAndLineFromFields || i === U ? l = n.map((c) => w(t?.layerFieldsInfo, c)) : i.trim() !== "" && i !== U && t !== void 0 && (l = await Xe({
|
|
1088
1088
|
layerInfo: t,
|
|
1089
1089
|
config: e,
|
|
1090
1090
|
category: i,
|
|
@@ -1106,7 +1106,7 @@ function We(s, e, t) {
|
|
|
1106
1106
|
return r === i || a;
|
|
1107
1107
|
}
|
|
1108
1108
|
function ds(s) {
|
|
1109
|
-
const { config: e, layerInfo: t, commonStrings: r } = s, i =
|
|
1109
|
+
const { config: e, layerInfo: t, commonStrings: r } = s, i = w(t.layerFieldsInfo, E(e)), a = ie(0, e), n = se(e), o = E(e) === U && (a === "" || a === r.xAxis);
|
|
1110
1110
|
return i === a || n || o;
|
|
1111
1111
|
}
|
|
1112
1112
|
function qi(s) {
|
|
@@ -15,7 +15,7 @@ import { W as ge, c as ce, d as fe } from "./generate-x-axis-title.js";
|
|
|
15
15
|
import { W as he, a as pe } from "./x-bounds.js";
|
|
16
16
|
import { W as me } from "./data-labels-symbol.js";
|
|
17
17
|
import { W as de } from "./rotated-state.js";
|
|
18
|
-
import { g as W, u as ye, s as T,
|
|
18
|
+
import { g as W, u as ye, s as T, j as ue, k as Se, l as _e, h as xe } from "./utils.js";
|
|
19
19
|
import { d as F, e as C, a as Te } from "./data.js";
|
|
20
20
|
import { u as Fe, m as Ce, a7 as Be, k as Ae, j as be } from "./index3.js";
|
|
21
21
|
import { s as L } from "./series-types.js";
|
package/dist/chunks/utils.js
CHANGED
|
@@ -1,12 +1,23 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { ah as
|
|
4
|
-
import { i as
|
|
5
|
-
import { f as
|
|
2
|
+
import { c as q, a as d, d as A, g as w } from "./chart-object-literals.js";
|
|
3
|
+
import { ah as I, r as O, cb as k, cc as V, cd as L, ce as B, O as E, a1 as b } from "./index.js";
|
|
4
|
+
import { i as T } from "./type-guards.js";
|
|
5
|
+
import { f as M, b as S, i as W, q as $ } from "./index2.js";
|
|
6
6
|
import { substitute as h } from "@arcgis/core/intl.js";
|
|
7
7
|
import { H as U, a0 as X, a1 as H, X as K, a7 as P, a2 as R } from "./index3.js";
|
|
8
8
|
import { g as G } from "./series-types.js";
|
|
9
|
-
|
|
9
|
+
const se = (s) => {
|
|
10
|
+
const { config: e, axisIndex: i, callback: t } = s;
|
|
11
|
+
[i !== void 0 ? e.axes?.[i] : e.axes].flat().forEach((a, r) => {
|
|
12
|
+
a !== void 0 && t(a, i !== void 0 ? i : r);
|
|
13
|
+
});
|
|
14
|
+
}, ae = (s) => {
|
|
15
|
+
const { config: e, axisIndex: i, callback: t } = s;
|
|
16
|
+
[i !== void 0 ? e.axes?.[i] : e.axes].flat().forEach((a) => {
|
|
17
|
+
a !== void 0 && I(a.valueFormat) && t(a);
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
function re(s, e, i) {
|
|
10
21
|
const t = s?.axes?.[e];
|
|
11
22
|
t?.title !== void 0 ? t.title.content.text = i : t !== void 0 && (t.title = X({
|
|
12
23
|
text: i,
|
|
@@ -14,108 +25,108 @@ function se(s, e, i) {
|
|
|
14
25
|
font: H(R.AxisTitle)
|
|
15
26
|
}));
|
|
16
27
|
}
|
|
17
|
-
function
|
|
28
|
+
function oe(s) {
|
|
18
29
|
const { config: e, layerInfo: i, commonStrings: t, numericFields: a, aggregationType: r } = s;
|
|
19
30
|
let o = "";
|
|
20
31
|
if (e)
|
|
21
|
-
if (
|
|
32
|
+
if (M(e) === q.Stacked100)
|
|
22
33
|
o = t.utilsStrings.statistics.percent;
|
|
23
34
|
else {
|
|
24
|
-
const
|
|
25
|
-
if (e.series[0]?.type ===
|
|
35
|
+
const f = U(r, t);
|
|
36
|
+
if (e.series[0]?.type === d.HeatSeries)
|
|
26
37
|
o = S(i.layerFieldsInfo, e.series[0].y);
|
|
27
38
|
else if (a.length === 1) {
|
|
28
|
-
const g = S(i.layerFieldsInfo, a[0]), n =
|
|
39
|
+
const g = S(i.layerFieldsInfo, a[0]), n = O(i.layer).idField;
|
|
29
40
|
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
|
-
aggregation:
|
|
41
|
+
aggregation: f,
|
|
31
42
|
fieldName: g
|
|
32
43
|
});
|
|
33
44
|
} else a.length > 1 && (r === A.NoAggregation ? o = t.axisLabels.values : o = h(t.axisLabels.aggregationOfValues, {
|
|
34
|
-
aggregation:
|
|
45
|
+
aggregation: f
|
|
35
46
|
}));
|
|
36
47
|
}
|
|
37
48
|
return o;
|
|
38
49
|
}
|
|
39
|
-
const
|
|
50
|
+
const C = (s, e, i) => s.axes?.[e] ?? P(i, s.type)[e], D = (s) => {
|
|
40
51
|
const { config: e, axis: i, axisIndex: t } = s;
|
|
41
52
|
e.axes !== void 0 && (e.axes[t] = i);
|
|
42
|
-
},
|
|
53
|
+
}, ne = (s) => {
|
|
43
54
|
const { config: e, axisIndex: i, isMax: t } = s;
|
|
44
55
|
let a = Number.NaN;
|
|
45
56
|
return t ? a = e.axes?.[i]?.maximum : a = e.axes?.[i]?.minimum, a ?? Number.NaN;
|
|
46
|
-
},
|
|
57
|
+
}, v = (s) => {
|
|
47
58
|
const { config: e, value: i, axisIndex: t, isMax: a } = s, r = e?.axes?.[t];
|
|
48
59
|
r !== void 0 && (a ? r.maximum = i : r.minimum = i);
|
|
49
|
-
},
|
|
50
|
-
const t =
|
|
60
|
+
}, le = (s) => s.axes?.[0]?.valueFormat ?? K(), ce = (s, e, i) => {
|
|
61
|
+
const t = C(s, 0, e);
|
|
51
62
|
if (t !== void 0 && i !== void 0) {
|
|
52
63
|
const a = {
|
|
53
64
|
...t,
|
|
54
65
|
valueFormat: i
|
|
55
66
|
};
|
|
56
|
-
|
|
67
|
+
D({ config: s, axis: a, axisIndex: 0 });
|
|
57
68
|
}
|
|
58
|
-
},
|
|
69
|
+
}, ue = (s, e, i) => {
|
|
59
70
|
const t = s.axes?.[e];
|
|
60
71
|
t !== void 0 && (t.integerOnlyValues = i);
|
|
61
72
|
}, Q = (s) => {
|
|
62
73
|
const e = G(s.series);
|
|
63
|
-
return e ===
|
|
74
|
+
return e === d.BarSeries || e === d.ComboLineAndBarSeries || e === d.LineSeries;
|
|
64
75
|
}, Y = (s) => {
|
|
65
76
|
const { axisIndex: e, config: i, isMultiAxis: t } = s;
|
|
66
77
|
let a = !1;
|
|
67
78
|
return e === 0 || e === 1 && t ? a = !0 : e === 2 && (a = Q(i)), a;
|
|
68
|
-
},
|
|
79
|
+
}, fe = (s) => {
|
|
69
80
|
const { axisIndex: e, func: i, config: t } = s;
|
|
70
81
|
return Y({ axisIndex: e, config: t, isMultiAxis: !0 }) ? i(e) : void 0;
|
|
71
|
-
},
|
|
82
|
+
}, N = (s, e) => {
|
|
72
83
|
let i;
|
|
73
84
|
const t = e.axes?.[s]?.valueFormat;
|
|
74
|
-
return (s === 0 || s >= 1 &&
|
|
75
|
-
},
|
|
76
|
-
const { config: e, commonStrings: i, valueFormat: t, axisIndex: a = 0 } = s, r =
|
|
85
|
+
return (s === 0 || s >= 1 && I(t)) && (i = t), i;
|
|
86
|
+
}, de = (s) => {
|
|
87
|
+
const { config: e, commonStrings: i, valueFormat: t, axisIndex: a = 0 } = s, r = C(e, a, i);
|
|
77
88
|
if (r !== void 0 && t !== void 0) {
|
|
78
89
|
const o = {
|
|
79
90
|
...r,
|
|
80
91
|
valueFormat: t
|
|
81
92
|
};
|
|
82
|
-
|
|
93
|
+
D({
|
|
83
94
|
config: e,
|
|
84
95
|
axis: o,
|
|
85
96
|
axisIndex: a
|
|
86
97
|
});
|
|
87
98
|
}
|
|
88
|
-
},
|
|
99
|
+
}, ge = (s, e) => s.axes?.[e]?.isLogarithmic ?? !1, xe = (s) => {
|
|
89
100
|
const { config: e, isLogarithmic: i, axisIndex: t } = s, a = e.axes?.[t];
|
|
90
|
-
a && (a.isLogarithmic = i,
|
|
91
|
-
},
|
|
101
|
+
a && (a.isLogarithmic = i, v({ config: e, value: null, axisIndex: t, isMax: !0 }), v({ config: e, value: null, axisIndex: t, isMax: !1 }));
|
|
102
|
+
}, ye = (s) => {
|
|
92
103
|
const { config: e, scrollbar: i, axisIndex: t } = s;
|
|
93
104
|
e.axes?.[t] !== void 0 && (e.axes[t].scrollbar = i);
|
|
94
105
|
};
|
|
95
|
-
async function
|
|
96
|
-
const { config: e, layer: i, xAxisField: t, splitByField: a, layerFieldsInfo: r, aggregationFields: o, fetchNullValues: u, errorStrings:
|
|
97
|
-
where:
|
|
106
|
+
async function me(s) {
|
|
107
|
+
const { config: e, layer: i, xAxisField: t, splitByField: a, layerFieldsInfo: r, aggregationFields: o, fetchNullValues: u, errorStrings: f } = 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 ?? {}, j = {
|
|
108
|
+
where: V([m, x, l]),
|
|
98
109
|
// excluding the null values from the list
|
|
99
|
-
orderByFields:
|
|
110
|
+
orderByFields: W(a) ? [] : [`${a} ${w.Ascending}`],
|
|
100
111
|
// default sorting ascending for split-by field
|
|
101
112
|
geometry: e?.dataFilters?.geometry
|
|
102
113
|
};
|
|
103
114
|
let p = "";
|
|
104
|
-
o?.length === 0 ? p =
|
|
105
|
-
let y = i ?
|
|
115
|
+
o?.length === 0 ? p = O(i).idField : o && ([p] = o);
|
|
116
|
+
let y = i ? T(i) ? await L({
|
|
106
117
|
layer: i,
|
|
107
118
|
category: e?.series[0].x ?? "",
|
|
108
119
|
splitByField: a
|
|
109
|
-
}) : await
|
|
120
|
+
}) : await B({
|
|
110
121
|
queryObject: i,
|
|
111
122
|
category: e?.series[0].x ?? "",
|
|
112
123
|
splitByField: a,
|
|
113
|
-
queryConfig:
|
|
114
|
-
errorStrings:
|
|
124
|
+
queryConfig: j,
|
|
125
|
+
errorStrings: f
|
|
115
126
|
}) : [];
|
|
116
127
|
if (y = y.slice(0, 500), e) {
|
|
117
|
-
const F = e?.series.map((c) =>
|
|
118
|
-
y =
|
|
128
|
+
const F = e?.series.map((c) => E({ where: c.query?.where })?.toString() ?? "").filter((c) => c !== void 0 && c !== "");
|
|
129
|
+
y = $({
|
|
119
130
|
arrayA: y,
|
|
120
131
|
arrayB: F,
|
|
121
132
|
getKey: (c) => c === null ? null : c?.toString()
|
|
@@ -123,7 +134,7 @@ async function xe(s) {
|
|
|
123
134
|
}
|
|
124
135
|
return { categoriesArray: y, splitByFieldType: n, numericalField: p };
|
|
125
136
|
}
|
|
126
|
-
function
|
|
137
|
+
function pe(s, e) {
|
|
127
138
|
let i = e === "";
|
|
128
139
|
for (const t of s)
|
|
129
140
|
if (e === t.name) {
|
|
@@ -132,7 +143,7 @@ function ye(s, e) {
|
|
|
132
143
|
}
|
|
133
144
|
return i;
|
|
134
145
|
}
|
|
135
|
-
function
|
|
146
|
+
function Fe(s, e) {
|
|
136
147
|
const i = k(s);
|
|
137
148
|
let t = e.length === 0, a = 0;
|
|
138
149
|
for (const r of e) {
|
|
@@ -146,7 +157,7 @@ function me(s, e) {
|
|
|
146
157
|
}
|
|
147
158
|
return t;
|
|
148
159
|
}
|
|
149
|
-
function
|
|
160
|
+
function Ae(s, e) {
|
|
150
161
|
e.forEach((i) => {
|
|
151
162
|
Object.getOwnPropertyNames(i.prototype).forEach((t) => {
|
|
152
163
|
Object.defineProperty(
|
|
@@ -157,15 +168,15 @@ function pe(s, e) {
|
|
|
157
168
|
});
|
|
158
169
|
});
|
|
159
170
|
}
|
|
160
|
-
async function
|
|
161
|
-
const { layerInfo: e, config: i, category: t, errorStrings: a } = s, { layer: r } = e, { where: o } = i?.dataFilters ?? {}, { fetchNullValues: u } = i?.series?.[0]?.query ?? {},
|
|
162
|
-
where:
|
|
171
|
+
async function be(s) {
|
|
172
|
+
const { layerInfo: e, config: i, category: t, errorStrings: a } = s, { layer: r } = e, { where: o } = i?.dataFilters ?? {}, { fetchNullValues: u } = i?.series?.[0]?.query ?? {}, f = u !== !0 ? `${t} IS NOT NULL` : "", g = {
|
|
173
|
+
where: V([o, f]),
|
|
163
174
|
// excluding the null values from the list
|
|
164
175
|
orderByFields: [],
|
|
165
176
|
geometry: i?.dataFilters?.geometry
|
|
166
177
|
};
|
|
167
178
|
let n;
|
|
168
|
-
return
|
|
179
|
+
return T(r) ? n = (await L({
|
|
169
180
|
layer: r,
|
|
170
181
|
category: t,
|
|
171
182
|
fetchNullValues: u
|
|
@@ -177,7 +188,7 @@ async function Fe(s) {
|
|
|
177
188
|
fieldValue: l
|
|
178
189
|
}) ?? l;
|
|
179
190
|
}) : n = // fetch unique category values asynchronously
|
|
180
|
-
(await
|
|
191
|
+
(await B({ queryObject: r, category: t, queryConfig: g, errorStrings: a })).map(
|
|
181
192
|
(x) => {
|
|
182
193
|
const l = String(x);
|
|
183
194
|
return b({
|
|
@@ -188,27 +199,29 @@ async function Fe(s) {
|
|
|
188
199
|
}
|
|
189
200
|
), n;
|
|
190
201
|
}
|
|
191
|
-
function
|
|
192
|
-
return s !== void 0 &&
|
|
202
|
+
function Se(s) {
|
|
203
|
+
return s !== void 0 && N(0, s)?.type === d.CategoryAxisFormat && N(1, s)?.type === d.CategoryAxisFormat;
|
|
193
204
|
}
|
|
194
205
|
export {
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
206
|
+
de as a,
|
|
207
|
+
le as b,
|
|
208
|
+
be as c,
|
|
209
|
+
ce as d,
|
|
210
|
+
ue as e,
|
|
211
|
+
se as f,
|
|
212
|
+
oe as g,
|
|
213
|
+
Ae as h,
|
|
214
|
+
Se as i,
|
|
215
|
+
pe as j,
|
|
216
|
+
Fe as k,
|
|
217
|
+
me as l,
|
|
218
|
+
ae as m,
|
|
219
|
+
ne as n,
|
|
220
|
+
N as o,
|
|
210
221
|
ge as p,
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
222
|
+
xe as q,
|
|
223
|
+
fe as r,
|
|
224
|
+
v as s,
|
|
225
|
+
ye as t,
|
|
226
|
+
re as u
|
|
214
227
|
};
|