@arcgis/charts-components 5.0.0-next.162 → 5.0.0-next.164
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/{TQRAYSWN.js → 2ZSCSQKE.js} +1 -1
- package/dist/cdn/{SW6ENGEK.js → 3ETPKJLH.js} +1 -1
- package/dist/cdn/3FJBR2FR.js +2 -0
- package/dist/cdn/3HSM4YOY.js +4 -0
- package/dist/cdn/{EYXP4YQW.js → 3IU5PLYH.js} +1 -1
- package/dist/cdn/{VMSL4CWI.js → 43YS2I72.js} +1 -1
- package/dist/cdn/45NODT2J.js +2 -0
- package/dist/cdn/{62OZB7FK.js → 4CICGGRX.js} +1 -1
- package/dist/cdn/{37TWMIC2.js → 4R2UOKDR.js} +1 -1
- package/dist/cdn/{UHB77RAE.js → 4TFNYB6N.js} +1 -1
- package/dist/cdn/{BYAYB5LF.js → 4WOGY3WA.js} +1 -1
- package/dist/cdn/{CTDG3FOZ.js → 4Z3XHMLM.js} +1 -1
- package/dist/cdn/{TUTT6I7D.js → 55KRKYFS.js} +1 -1
- package/dist/cdn/567U5TC6.js +2 -0
- package/dist/cdn/{7WZV7AE3.js → 5FIT7FHW.js} +1 -1
- package/dist/cdn/{PQRPDV2N.js → 5MM7SODQ.js} +1 -1
- package/dist/cdn/{7XUX4ZTI.js → 5R6MQSUY.js} +1 -1
- package/dist/cdn/{B5LXWQRU.js → 62V455IN.js} +1 -1
- package/dist/cdn/{UUZWRA5G.js → 6ERZOPDO.js} +1 -1
- package/dist/cdn/{DB3UL5LX.js → 735B4X34.js} +1 -1
- package/dist/cdn/{4L3ESTCL.js → 7SZ3MTAV.js} +1 -1
- package/dist/cdn/{XQAUA2KI.js → A6NRPBTW.js} +1 -1
- package/dist/cdn/{KLOSKKEF.js → A7BXN5EL.js} +1 -1
- package/dist/cdn/{OMR6RCJW.js → AAHVSFKB.js} +1 -1
- package/dist/cdn/AGJFBRLT.js +2 -0
- package/dist/cdn/{HAAT4GZV.js → AI3L7T2E.js} +1 -1
- package/dist/cdn/{RKJFJ3VI.js → AJHQESHE.js} +1 -1
- package/dist/cdn/{JBHDZEVD.js → ATTQBQ5G.js} +1 -1
- package/dist/cdn/{P3XTRZL3.js → B2MBGCT2.js} +1 -1
- package/dist/cdn/{KOC7VWEQ.js → BELVV3ZC.js} +1 -1
- package/dist/cdn/{MMVZJQGM.js → CDCU3GES.js} +1 -1
- package/dist/cdn/{MSNUKDFY.js → CJFTBI6B.js} +1 -1
- package/dist/cdn/{TBYLHPGX.js → CNCVZK7E.js} +1 -1
- package/dist/cdn/{TCKDCNZ6.js → COJU472P.js} +1 -1
- package/dist/cdn/CQUCOSCR.js +2 -0
- package/dist/cdn/{277KZ5EH.js → DUDOTKJA.js} +1 -1
- package/dist/cdn/{JASXULGK.js → E4D75GTQ.js} +1 -1
- package/dist/cdn/{7KAPOFBN.js → F2HVMZZK.js} +1 -1
- package/dist/cdn/{SW62HLGO.js → FU2EQLXU.js} +1 -1
- package/dist/cdn/{64DXX3FX.js → G7VC2XBZ.js} +1 -1
- package/dist/cdn/{GKUTVRCP.js → GS3GRA2H.js} +1 -1
- package/dist/cdn/GSVN46KN.js +2 -0
- package/dist/cdn/{DACWGPLL.js → GTHSVE2K.js} +1 -1
- package/dist/cdn/{WCBXBXTZ.js → GTSIEQM5.js} +1 -1
- package/dist/cdn/{KF4ILYWV.js → HHJIYADP.js} +1 -1
- package/dist/cdn/{GB223HFN.js → HZDRSBX2.js} +1 -1
- package/dist/cdn/{D2HQHUZF.js → I457NPW3.js} +1 -1
- package/dist/cdn/{IDMPL6T7.js → IP4VBE6Z.js} +1 -1
- package/dist/cdn/{WTZ23CRY.js → IYXHOL5D.js} +1 -1
- package/dist/cdn/{SZ2BB7ZG.js → J5JH47IU.js} +1 -1
- package/dist/cdn/{7HDTPUIY.js → K3LNGUQX.js} +1 -1
- package/dist/cdn/{6AP262U4.js → K4YRNWYA.js} +1 -1
- package/dist/cdn/{YHIJMVJQ.js → KKYRF4QI.js} +1 -1
- package/dist/cdn/{GRUDYKUK.js → KQHMG4PC.js} +1 -1
- package/dist/cdn/{S3MAP4NY.js → L6HK4PG5.js} +1 -1
- package/dist/cdn/{IBMHE4HG.js → LHJS2B4G.js} +1 -1
- package/dist/cdn/{KHPBPGZW.js → LN5HOZFK.js} +1 -1
- package/dist/cdn/{CBTHS6I5.js → M4XXCCFI.js} +1 -1
- package/dist/cdn/{Y7OQUVXC.js → M5OKIJH6.js} +1 -1
- package/dist/cdn/{IL22JCIC.js → M6KGYVL2.js} +1 -1
- package/dist/cdn/{PUO6TAT3.js → N673HFEJ.js} +1 -1
- package/dist/cdn/{DLT5ZL25.js → NYBZPU4F.js} +1 -1
- package/dist/cdn/{PZ5VL76M.js → OI76MVPM.js} +1 -1
- package/dist/cdn/{G7UITT5F.js → OJXN4Y6A.js} +1 -1
- package/dist/cdn/{OWTDESPZ.js → OQZBAWVC.js} +1 -1
- package/dist/cdn/{35FGLAKV.js → P4ZZY7IW.js} +1 -1
- package/dist/cdn/{7LRO7RMI.js → PFRK5465.js} +11 -5
- package/dist/cdn/{NNTJCO7Q.js → PO4LLHQE.js} +1 -1
- package/dist/cdn/{53QDB3IL.js → QJGDTSOH.js} +1 -1
- package/dist/cdn/{IYGUWGB6.js → QNI5OMGX.js} +1 -1
- package/dist/cdn/RICBVTMN.js +2 -0
- package/dist/cdn/{YHVWLHT7.js → ROH4QPZI.js} +1 -1
- package/dist/cdn/{R7TVVBB7.js → TLIZYLM2.js} +1 -1
- package/dist/cdn/{NLNJYC2E.js → TZEMRMGW.js} +1 -1
- package/dist/cdn/{IBDFXE7F.js → UZWDIHM7.js} +1 -1
- package/dist/cdn/{ISB65KPT.js → VBHRSNOL.js} +1 -1
- package/dist/cdn/{7HCS3J2W.js → VMTV5CBU.js} +1 -1
- package/dist/cdn/{CAXYDF5R.js → WEMAQZCY.js} +1 -1
- package/dist/cdn/{DHBBU7AG.js → WN37QN4E.js} +1 -1
- package/dist/cdn/{KDGGKNBV.js → XJ7KF4OJ.js} +1 -1
- package/dist/cdn/{3TCYZ5OB.js → XLJBOHXR.js} +10 -10
- package/dist/cdn/{OR2MF4BU.js → XQ4KCPRX.js} +1 -1
- package/dist/cdn/{FGMU7G6T.js → YHGIRUKH.js} +1 -1
- package/dist/cdn/YLV6SOAM.js +2 -0
- package/dist/cdn/{C72B5RSG.js → YVYDVSXP.js} +1 -1
- package/dist/cdn/{WORQWDJQ.js → Z5O5KIH5.js} +1 -1
- package/dist/cdn/{SAKNSC4M.js → ZOPR2Y4S.js} +1 -1
- package/dist/cdn/{XIFLK5EG.js → ZWD6ENTH.js} +1 -1
- package/dist/cdn/assets/common/t9n/messages.fr.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chart-rendering/common/interfaces.d.ts +65 -73
- package/dist/chunks/action-bar-utils.js +1 -1
- package/dist/chunks/axis-lines-symbol.js +20 -20
- package/dist/chunks/bar-chart-model.js +8 -8
- package/dist/chunks/box-plot-data.js +60 -60
- package/dist/chunks/box-plot-model.js +20 -20
- package/dist/chunks/chart-model.js +37 -37
- package/dist/chunks/chart-ui-utils2.js +1 -1
- package/dist/chunks/class-breaks.js +120 -122
- package/dist/chunks/combo-bar-line-chart-model.js +4 -4
- package/dist/chunks/data-labels-symbol.js +1 -1
- package/dist/chunks/data.js +11 -11
- package/dist/chunks/gauge-model.js +17 -17
- package/dist/chunks/generate-x-axis-title.js +4 -4
- package/dist/chunks/heat-chart-model.js +32 -20
- package/dist/chunks/histogram-data.js +7 -7
- package/dist/chunks/histogram-model.js +8 -8
- package/dist/chunks/index.js +336 -360
- package/dist/chunks/index2.js +49 -49
- package/dist/chunks/index3.js +3 -3
- package/dist/chunks/line-chart-model.js +6 -6
- package/dist/chunks/model-setter.js +3 -3
- package/dist/chunks/model-with-guides.js +15 -15
- package/dist/chunks/model-with-tooltips.js +8 -8
- package/dist/chunks/model-with-y-guides.js +12 -12
- package/dist/chunks/negative-values-stacked-to-baseline.js +1 -1
- package/dist/chunks/pie-chart-data.js +26 -26
- package/dist/chunks/pie-chart-model.js +22 -22
- package/dist/chunks/radar-chart-model.js +7 -7
- package/dist/chunks/rotated-state.js +1 -1
- package/dist/chunks/scatterplot-model.js +15 -15
- package/dist/chunks/serial-chart-data.js +162 -165
- package/dist/chunks/serial-chart-model.js +17 -17
- package/dist/chunks/series-length.js +1 -1
- package/dist/chunks/series.js +3 -3
- package/dist/chunks/utils.js +43 -43
- package/dist/chunks/utils2.js +5 -5
- package/dist/chunks/web-component-utils.js +175 -169
- package/dist/components/arcgis-chart/customElement.d.ts +4 -4
- package/dist/components/arcgis-chart/customElement.js +864 -847
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +8 -8
- 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-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +10 -10
- package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-font-style/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-format/customElement.js +42 -39
- package/dist/components/arcgis-charts-config-guide/customElement.js +8 -8
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +18 -18
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-histogram/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram-popover/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 +5 -5
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-series-popover/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 +4 -4
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +7 -7
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-info-modal/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 +154 -153
- package/dist/interfaces.d.ts +6 -5
- package/dist/json-schema/index.d.ts +12 -20
- package/dist/model/heat-chart-model/heat-chart-model.d.ts +9 -1
- package/dist/spec/data-source.d.ts +26 -18
- package/dist/spec/events.d.ts +2 -5
- package/dist/spec/rest-js-types.d.ts +27 -9
- package/dist/utils/chart-config/converter/index.d.ts +7 -7
- package/dist/utils/chart-config/validator/index.d.ts +6 -4
- package/dist/utils/components/event-payloads.d.ts +3 -3
- package/dist/utils/data/index.d.ts +10 -1
- package/dist/utils/errors/index.d.ts +5 -5
- package/dist/utils/layer/index.d.ts +2 -2
- package/dist/utils/layer/inline-conversion/index.d.ts +7 -8
- package/dist/utils/layer/interfaces.d.ts +3 -3
- package/dist/utils/layer/query-features/interfaces.d.ts +1 -1
- package/dist/utils/layer/query-parser/index.d.ts +1 -1
- package/dist/utils/layer/utils/index.d.ts +11 -5
- package/dist/utils/localization/index.d.ts +1 -1
- package/dist/utils/misc/index.d.ts +3 -3
- package/dist/utils/misc/interfaces.d.ts +7 -6
- package/dist/utils/types/index.d.ts +17 -17
- package/package.json +3 -3
- package/dist/cdn/3UBEHDWK.js +0 -2
- package/dist/cdn/CIW6WMFK.js +0 -4
- package/dist/cdn/DKC6E3QZ.js +0 -2
- package/dist/cdn/HTKSTR36.js +0 -2
- package/dist/cdn/KPBKHH3V.js +0 -2
- package/dist/cdn/LRATJMH3.js +0 -2
- package/dist/cdn/V65HT7NA.js +0 -2
- package/dist/cdn/WNZXN6Y2.js +0 -2
- package/dist/cdn/XNTLXVQF.js +0 -2
|
@@ -6,7 +6,7 @@ import "@arcgis/toolkit/intl";
|
|
|
6
6
|
import { isEqual as W } from "lodash-es";
|
|
7
7
|
import "luxon";
|
|
8
8
|
import "d3-array";
|
|
9
|
-
import {
|
|
9
|
+
import { b7 as L, aY as D, b2 as M, aQ as P, aO as V, b as S, bM as N, _ as U } from "./index.js";
|
|
10
10
|
import "@arcgis/core/Graphic.js";
|
|
11
11
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
12
12
|
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
@@ -26,8 +26,8 @@ import "@arcgis/core/core/promiseUtils.js";
|
|
|
26
26
|
import "./runtime.js";
|
|
27
27
|
import { l as h, j as d, k as f } from "./index4.js";
|
|
28
28
|
import "@arcgis/toolkit/dom";
|
|
29
|
-
import { g as I, u as E, s as _, c as R, b as
|
|
30
|
-
import { R as y, S as u, U as j, V as w, W as z, X as
|
|
29
|
+
import { g as I, u as E, s as _, c as R, b as k, a as X } from "./utils.js";
|
|
30
|
+
import { R as y, S as u, U as j, V as w, W as z, X as Y, Y as K, Z as $, _ as G, $ as q, a0 as Q, a1 as Z, a2 as H, I as T, a3 as x, a4 as A, a5 as J, a6 as ee, T as te, a7 as C, a as ie } from "./serial-chart-data.js";
|
|
31
31
|
import { s as b, d as F, b as se } from "./data.js";
|
|
32
32
|
import { S as re } from "./common.js";
|
|
33
33
|
import { M as oe, a as ne, W as ae, b as le } from "./model-with-tooltips.js";
|
|
@@ -41,7 +41,7 @@ import { M as _e, a as Te } from "./model-with-y-guides.js";
|
|
|
41
41
|
import { M as xe } from "./model-with-x-guides.js";
|
|
42
42
|
const Ae = (s, e) => e.series?.[s].assignToSecondValueAxis ?? !1, Ce = (s) => {
|
|
43
43
|
const { assign: e, seriesIndex: t, config: i, commonStrings: r } = s;
|
|
44
|
-
e && i.axes !== void 0 && !i.axes?.[2] && (i.axes[2] =
|
|
44
|
+
e && i.axes !== void 0 && !i.axes?.[2] && (i.axes[2] = M(r, O.BarSeries)[1]), i.series && i.series.forEach((n, g) => {
|
|
45
45
|
g === t ? n.assignToSecondValueAxis = e : g !== t && n?.assignToSecondValueAxis !== !0 && (n.assignToSecondValueAxis = !1);
|
|
46
46
|
}), i.axes?.[2] && !i.series.some((n) => n.assignToSecondValueAxis) && i.axes.splice(2, 1);
|
|
47
47
|
}, be = (s, e) => e.series?.[s]?.name, Fe = (s, e, t) => {
|
|
@@ -77,22 +77,22 @@ const Ae = (s, e) => e.series?.[s].assignToSecondValueAxis ?? !1, Ce = (s) => {
|
|
|
77
77
|
});
|
|
78
78
|
E(t, 1, n);
|
|
79
79
|
}
|
|
80
|
-
t.axes?.[1] && (e === B.Stacked100 ? t.axes[1].valueFormat =
|
|
80
|
+
t.axes?.[1] && (e === B.Stacked100 ? t.axes[1].valueFormat = P() : t.axes[1].valueFormat = V()), _({ config: t, value: null, axisIndex: 1, isMax: !1 }), _({ config: t, value: null, axisIndex: 1, isMax: !0 });
|
|
81
81
|
}, De = (s) => {
|
|
82
82
|
let e;
|
|
83
83
|
const t = s.series.find(
|
|
84
84
|
(i) => (h(i) || d(i) || f(i)) && i.nullCategory !== void 0
|
|
85
85
|
);
|
|
86
86
|
return (h(t) || d(t) || f(t)) && (e = t?.nullCategory), e;
|
|
87
|
-
},
|
|
87
|
+
}, Me = (s, e) => {
|
|
88
88
|
s.series.forEach((t) => {
|
|
89
89
|
(h(t) || d(t) || f(t)) && (t.nullCategory = e);
|
|
90
90
|
});
|
|
91
91
|
};
|
|
92
|
-
var
|
|
92
|
+
var Pe = Object.defineProperty, Ve = Object.getOwnPropertyDescriptor, p = (s, e, t, i) => {
|
|
93
93
|
for (var r = Ve(e, t), n = s.length - 1, g; n >= 0; n--)
|
|
94
94
|
(g = s[n]) && (r = g(e, t, r) || r);
|
|
95
|
-
return r &&
|
|
95
|
+
return r && Pe(e, t, r), r;
|
|
96
96
|
};
|
|
97
97
|
class c extends v {
|
|
98
98
|
/**
|
|
@@ -111,13 +111,13 @@ class c extends v {
|
|
|
111
111
|
return z(this._config);
|
|
112
112
|
}
|
|
113
113
|
set temporalBinningUnit(e) {
|
|
114
|
-
|
|
114
|
+
Y(e, this._config);
|
|
115
115
|
}
|
|
116
116
|
/**
|
|
117
117
|
* Time aggregation type for a temporal bar/line chart.
|
|
118
118
|
*/
|
|
119
119
|
get timeAggregationType() {
|
|
120
|
-
return
|
|
120
|
+
return K(this._config);
|
|
121
121
|
}
|
|
122
122
|
set timeAggregationType(e) {
|
|
123
123
|
$(e, this._config);
|
|
@@ -141,13 +141,13 @@ class c extends v {
|
|
|
141
141
|
* `interpolate`: Bar series: same effect as `null` - Line series: connects the lines across null values.
|
|
142
142
|
*/
|
|
143
143
|
get nullPolicy() {
|
|
144
|
-
return
|
|
144
|
+
return Q(this._config);
|
|
145
145
|
}
|
|
146
146
|
set nullPolicy(e) {
|
|
147
|
-
|
|
147
|
+
Z(e, this._config);
|
|
148
148
|
}
|
|
149
149
|
resetTimeInterval() {
|
|
150
|
-
|
|
150
|
+
H(this._config);
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
p([
|
|
@@ -220,7 +220,7 @@ class a extends v {
|
|
|
220
220
|
}
|
|
221
221
|
set numericFields(e) {
|
|
222
222
|
typeof e == "string" && (e = [e]);
|
|
223
|
-
const t =
|
|
223
|
+
const t = k(this.layerInfo?.layerFieldsInfo ?? [], e), i = (this.xAxisField === "" || this.xAxisField === S) && e.length === 0;
|
|
224
224
|
if (t && !i) {
|
|
225
225
|
const r = N(this.layerInfo.layer).idField;
|
|
226
226
|
e.length === 0 && r !== void 0 ? (e.push(r), this._aggregationType = m.Count) : this._aggregationType === m.Count && e.length >= 1 && r !== void 0 && !e.includes(r) && (this._aggregationType = m.Sum), this._numericFields = e, this.dirtyAsyncSetters.push("numericFields"), this.numericFields.length > 1 && (this._splitByField = "", this.dirtyAsyncSetters.push("splitByField")), this.processSeriesRebuild();
|
|
@@ -283,7 +283,7 @@ class a extends v {
|
|
|
283
283
|
* **Note:** Setting this prop removes any existing temporal binning settings if `value` is set to `false`.
|
|
284
284
|
*/
|
|
285
285
|
get binTemporalData() {
|
|
286
|
-
return
|
|
286
|
+
return J(this._config);
|
|
287
287
|
}
|
|
288
288
|
set binTemporalData(e) {
|
|
289
289
|
ee(e, this._config);
|
|
@@ -361,7 +361,7 @@ class a extends v {
|
|
|
361
361
|
}
|
|
362
362
|
set nullCategory(e) {
|
|
363
363
|
const t = this.nullCategory;
|
|
364
|
-
W(t, e) ||
|
|
364
|
+
W(t, e) || Me(this._config, e);
|
|
365
365
|
}
|
|
366
366
|
/**
|
|
367
367
|
* Sets up the local props based on the current config.
|
|
@@ -504,7 +504,7 @@ const Ee = [
|
|
|
504
504
|
de,
|
|
505
505
|
Se
|
|
506
506
|
];
|
|
507
|
-
|
|
507
|
+
X(a, Ee);
|
|
508
508
|
export {
|
|
509
509
|
a as S,
|
|
510
510
|
Fe as a,
|
|
@@ -6,7 +6,7 @@ import "luxon";
|
|
|
6
6
|
import "d3-array";
|
|
7
7
|
import "@arcgis/toolkit/type";
|
|
8
8
|
import "./series-types.js";
|
|
9
|
-
import {
|
|
9
|
+
import { aK as l, aI as a, bD as n, k as g } from "./index.js";
|
|
10
10
|
import "@arcgis/core/Graphic.js";
|
|
11
11
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
12
12
|
import "@arcgis/core/symbols/support/symbolUtils.js";
|
package/dist/chunks/series.js
CHANGED
|
@@ -5,7 +5,7 @@ import "luxon";
|
|
|
5
5
|
import "d3-array";
|
|
6
6
|
import "@arcgis/toolkit/type";
|
|
7
7
|
import "./series-types.js";
|
|
8
|
-
import {
|
|
8
|
+
import { aY as o } from "./index.js";
|
|
9
9
|
import "@arcgis/core/Graphic.js";
|
|
10
10
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
11
11
|
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
@@ -24,7 +24,7 @@ import "@arcgis/core/time/TimeExtent.js";
|
|
|
24
24
|
import "@arcgis/core/core/promiseUtils.js";
|
|
25
25
|
import "./runtime.js";
|
|
26
26
|
import "@arcgis/toolkit/dom";
|
|
27
|
-
const
|
|
27
|
+
const Y = (t) => t.lineSymbol?.style, j = (t, i) => {
|
|
28
28
|
i.lineSymbol ??= o(), i.lineSymbol.style = t;
|
|
29
29
|
}, k = (t) => t.lineSymbol?.width, q = (t, i) => {
|
|
30
30
|
i.lineSymbol ??= o(), i.lineSymbol.width = t;
|
|
@@ -32,6 +32,6 @@ const X = (t) => t.lineSymbol?.style, j = (t, i) => {
|
|
|
32
32
|
export {
|
|
33
33
|
k as a,
|
|
34
34
|
q as b,
|
|
35
|
-
|
|
35
|
+
Y as g,
|
|
36
36
|
j as s
|
|
37
37
|
};
|
package/dist/chunks/utils.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
2
2
|
import "@arcgis/toolkit/type";
|
|
3
|
-
import { e as B, W as c, a as F, w as C, g as
|
|
3
|
+
import { e as B, W as c, a as F, w as C, g as D } from "./series-types.js";
|
|
4
4
|
import "@arcgis/toolkit/intl";
|
|
5
5
|
import "lodash-es";
|
|
6
6
|
import "luxon";
|
|
7
7
|
import "d3-array";
|
|
8
|
-
import {
|
|
8
|
+
import { aM as w, cW as M, bt as k, c_ as S, bM as v, aK as j, aI as q, bD as W, b2 as $, bR as E, ci as L, bS as K, ai as O, bT as U, d2 as P, k as X, df as H } from "./index.js";
|
|
9
9
|
import "@arcgis/core/core/promiseUtils.js";
|
|
10
10
|
import "@arcgis/core/request.js";
|
|
11
11
|
import "./runtime.js";
|
|
@@ -13,7 +13,7 @@ import "@arcgis/toolkit/dom";
|
|
|
13
13
|
import "@arcgis/core/Graphic.js";
|
|
14
14
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
15
15
|
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
16
|
-
import { substitute as
|
|
16
|
+
import { substitute as h } from "@arcgis/core/intl.js";
|
|
17
17
|
import "@arcgis/core/layers/support/FeatureFilter.js";
|
|
18
18
|
import "@arcgis/core/smartMapping/statistics/histogram.js";
|
|
19
19
|
import "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
|
|
@@ -26,46 +26,46 @@ import "@arcgis/core/time/TimeExtent.js";
|
|
|
26
26
|
import { s as G } from "./index4.js";
|
|
27
27
|
function be(i, e, s) {
|
|
28
28
|
const t = i?.axes?.[e];
|
|
29
|
-
t?.title !== void 0 ? t.title.content.text = s : t !== void 0 && (t.title =
|
|
29
|
+
t?.title !== void 0 ? t.title.content.text = s : t !== void 0 && (t.title = j({
|
|
30
30
|
text: s,
|
|
31
31
|
visible: !0,
|
|
32
32
|
font: q(W.AxisTitle)
|
|
33
33
|
}));
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function Se(i) {
|
|
36
36
|
const { config: e, layerInfo: s, commonStrings: t, numericFields: a, aggregationType: r } = i;
|
|
37
37
|
let o = "";
|
|
38
38
|
if (e)
|
|
39
|
-
if (
|
|
39
|
+
if (M(e) === B.Stacked100)
|
|
40
40
|
o = t.utilsStrings.statistics.percent;
|
|
41
41
|
else {
|
|
42
|
-
const d =
|
|
42
|
+
const d = k(r, t);
|
|
43
43
|
if (e.series[0]?.type === c.HeatSeries)
|
|
44
|
-
o =
|
|
44
|
+
o = S(s.layerFieldsInfo, e.series[0].y);
|
|
45
45
|
else if (a.length === 1) {
|
|
46
|
-
const l =
|
|
47
|
-
r === F.NoAggregation ? o = l : r === F.Count && f !== void 0 && a[0] === f ? o = t.utilsStrings.statistics.count : o =
|
|
46
|
+
const l = S(s.layerFieldsInfo, a[0]), f = v(s.layer).idField;
|
|
47
|
+
r === F.NoAggregation ? o = l : r === F.Count && f !== void 0 && a[0] === f ? o = t.utilsStrings.statistics.count : o = h(t.axisLabels.aggregationOfFieldName, {
|
|
48
48
|
aggregation: d,
|
|
49
49
|
fieldName: l
|
|
50
50
|
});
|
|
51
|
-
} else a.length > 1 && (r === F.NoAggregation ? o = t.axisLabels.values : o =
|
|
51
|
+
} else a.length > 1 && (r === F.NoAggregation ? o = t.axisLabels.values : o = h(t.axisLabels.aggregationOfValues, {
|
|
52
52
|
aggregation: d
|
|
53
53
|
}));
|
|
54
54
|
}
|
|
55
55
|
return o;
|
|
56
56
|
}
|
|
57
|
-
const
|
|
57
|
+
const V = (i, e, s) => i.axes?.[e] ?? $(s, i.type)[e], T = (i) => {
|
|
58
58
|
const { config: e, axis: s, axisIndex: t } = i;
|
|
59
59
|
e.axes !== void 0 && (e.axes[t] = s);
|
|
60
|
-
},
|
|
60
|
+
}, he = (i) => {
|
|
61
61
|
const { config: e, axisIndex: s, isMax: t } = i;
|
|
62
62
|
let a = Number.NaN;
|
|
63
63
|
return t ? a = e.axes?.[s]?.maximum : a = e.axes?.[s]?.minimum, a ?? Number.NaN;
|
|
64
64
|
}, I = (i) => {
|
|
65
65
|
const { config: e, value: s, axisIndex: t, isMax: a } = i, r = e?.axes?.[t];
|
|
66
66
|
r !== void 0 && (a ? r.maximum = s : r.minimum = s);
|
|
67
|
-
}, Ie = (i) => i.axes?.[0]?.valueFormat ??
|
|
68
|
-
const t =
|
|
67
|
+
}, Ie = (i) => i.axes?.[0]?.valueFormat ?? w(), Ne = (i, e, s) => {
|
|
68
|
+
const t = V(i, 0, e);
|
|
69
69
|
if (t !== void 0 && s !== void 0) {
|
|
70
70
|
const a = {
|
|
71
71
|
...t,
|
|
@@ -76,22 +76,22 @@ const O = (i, e, s) => i.axes?.[e] ?? $(s, i.type)[e], T = (i) => {
|
|
|
76
76
|
}, ve = (i, e, s) => {
|
|
77
77
|
const t = i.axes?.[e];
|
|
78
78
|
t !== void 0 && (t.integerOnlyValues = s);
|
|
79
|
-
},
|
|
79
|
+
}, R = (i) => {
|
|
80
80
|
const e = C(i.series);
|
|
81
81
|
return e === c.BarSeries || e === c.ComboLineAndBarSeries || e === c.LineSeries;
|
|
82
|
-
},
|
|
82
|
+
}, Y = (i) => {
|
|
83
83
|
const { axisIndex: e, config: s, isMultiAxis: t } = i;
|
|
84
84
|
let a = !1;
|
|
85
|
-
return e === 0 || e === 1 && t ? a = !0 : e === 2 && (a =
|
|
85
|
+
return e === 0 || e === 1 && t ? a = !0 : e === 2 && (a = R(s)), a;
|
|
86
86
|
}, Le = (i) => {
|
|
87
87
|
const { axisIndex: e, func: s, config: t } = i;
|
|
88
|
-
return
|
|
88
|
+
return Y({ axisIndex: e, config: t, isMultiAxis: !0 }) ? s(e) : void 0;
|
|
89
89
|
}, N = (i, e) => {
|
|
90
90
|
let s;
|
|
91
91
|
const t = e.axes?.[i]?.valueFormat;
|
|
92
92
|
return (i === 0 || i >= 1 && G(t)) && (s = t), s;
|
|
93
|
-
},
|
|
94
|
-
const { config: e, commonStrings: s, valueFormat: t, axisIndex: a = 0 } = i, r =
|
|
93
|
+
}, Oe = (i) => {
|
|
94
|
+
const { config: e, commonStrings: s, valueFormat: t, axisIndex: a = 0 } = i, r = V(e, a, s);
|
|
95
95
|
if (r !== void 0 && t !== void 0) {
|
|
96
96
|
const o = {
|
|
97
97
|
...r,
|
|
@@ -103,7 +103,7 @@ const O = (i, e, s) => i.axes?.[e] ?? $(s, i.type)[e], T = (i) => {
|
|
|
103
103
|
axisIndex: a
|
|
104
104
|
});
|
|
105
105
|
}
|
|
106
|
-
},
|
|
106
|
+
}, Ve = (i, e) => i.axes?.[e]?.isLogarithmic ?? !1, Te = (i) => {
|
|
107
107
|
const { config: e, isLogarithmic: s, axisIndex: t } = i, a = e.axes?.[t];
|
|
108
108
|
a && (a.isLogarithmic = s, I({ config: e, value: null, axisIndex: t, isMax: !0 }), I({ config: e, value: null, axisIndex: t, isMax: !1 }));
|
|
109
109
|
}, Be = (i) => {
|
|
@@ -114,21 +114,21 @@ async function Ce(i) {
|
|
|
114
114
|
const { config: e, layer: s, xAxisField: t, splitByField: a, layerFieldsInfo: r, aggregationFields: o, fetchNullValues: u } = i, l = r.filter((p) => p.name === a)[0]?.type, f = u !== !0 ? `${a} IS NOT NULL` : "", x = t && u !== !0 ? `${t} IS NOT NULL` : "", { where: g } = e?.dataFilters ?? {}, A = {
|
|
115
115
|
where: L([g, f, x]),
|
|
116
116
|
// excluding the null values from the list
|
|
117
|
-
orderByFields:
|
|
117
|
+
orderByFields: P(a) ? [] : [`${a} ${D.Ascending}`],
|
|
118
118
|
// default sorting ascending for split-by field
|
|
119
119
|
geometry: e?.dataFilters?.geometry
|
|
120
120
|
}, b = s;
|
|
121
121
|
let m = "";
|
|
122
122
|
o.length === 0 ? m = v(b).idField : [m] = o;
|
|
123
|
-
let y = await
|
|
123
|
+
let y = await O({
|
|
124
124
|
queryObject: b,
|
|
125
125
|
category: e?.series[0].x ?? "",
|
|
126
126
|
splitByField: a,
|
|
127
127
|
queryConfig: A
|
|
128
128
|
});
|
|
129
129
|
if (e) {
|
|
130
|
-
const p = e?.series.map((n) =>
|
|
131
|
-
y =
|
|
130
|
+
const p = e?.series.map((n) => X({ where: n.query?.where })?.toString() ?? "").filter((n) => n !== void 0 && n !== "");
|
|
131
|
+
y = H({
|
|
132
132
|
arrayA: y,
|
|
133
133
|
arrayB: p,
|
|
134
134
|
getKey: (n) => n === null ? null : n?.toString()
|
|
@@ -136,7 +136,7 @@ async function Ce(i) {
|
|
|
136
136
|
}
|
|
137
137
|
return { categoriesArray: y, splitByFieldType: l, numericalField: m };
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function De(i, e) {
|
|
140
140
|
let s = e === "";
|
|
141
141
|
for (const t of i)
|
|
142
142
|
if (e === t.name) {
|
|
@@ -145,7 +145,7 @@ function we(i, e) {
|
|
|
145
145
|
}
|
|
146
146
|
return s;
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function we(i, e) {
|
|
149
149
|
const s = E(i);
|
|
150
150
|
let t = e.length === 0, a = 0;
|
|
151
151
|
for (const r of e) {
|
|
@@ -159,7 +159,7 @@ function De(i, e) {
|
|
|
159
159
|
}
|
|
160
160
|
return t;
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function Me(i, e) {
|
|
163
163
|
e.forEach((s) => {
|
|
164
164
|
Object.getOwnPropertyNames(s.prototype).forEach((t) => {
|
|
165
165
|
Object.defineProperty(
|
|
@@ -170,18 +170,18 @@ function ke(i, e) {
|
|
|
170
170
|
});
|
|
171
171
|
});
|
|
172
172
|
}
|
|
173
|
-
async function
|
|
173
|
+
async function ke(i) {
|
|
174
174
|
const { layerInfo: e, config: s, category: t } = i, { layer: a } = e, { where: r } = s?.dataFilters ?? {}, { fetchNullValues: o } = s?.series?.[0]?.query ?? {}, u = o !== !0 ? `${t} IS NOT NULL` : "", d = {
|
|
175
175
|
where: L([r, u]),
|
|
176
176
|
// excluding the null values from the list
|
|
177
177
|
orderByFields: [],
|
|
178
178
|
geometry: s?.dataFilters?.geometry
|
|
179
|
-
}, l =
|
|
179
|
+
}, l = K(a);
|
|
180
180
|
return (
|
|
181
181
|
// fetch unique category values asynchronously
|
|
182
|
-
(await
|
|
182
|
+
(await O({ queryObject: a, category: t, queryConfig: d })).map((x) => {
|
|
183
183
|
const g = String(x);
|
|
184
|
-
return
|
|
184
|
+
return U({
|
|
185
185
|
fieldName: t,
|
|
186
186
|
fieldValueToMatch: g,
|
|
187
187
|
subtypeInfo: l,
|
|
@@ -192,24 +192,24 @@ async function je(i) {
|
|
|
192
192
|
})
|
|
193
193
|
);
|
|
194
194
|
}
|
|
195
|
-
function
|
|
195
|
+
function je(i) {
|
|
196
196
|
return i !== void 0 && N(0, i)?.type === c.CategoryAxisFormat && N(1, i)?.type === c.CategoryAxisFormat;
|
|
197
197
|
}
|
|
198
198
|
export {
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
199
|
+
Me as a,
|
|
200
|
+
we as b,
|
|
201
|
+
De as c,
|
|
202
202
|
Ie as d,
|
|
203
|
-
|
|
203
|
+
ke as e,
|
|
204
204
|
Ne as f,
|
|
205
|
-
|
|
205
|
+
Se as g,
|
|
206
206
|
Ce as h,
|
|
207
|
-
|
|
207
|
+
je as i,
|
|
208
208
|
ve as j,
|
|
209
|
-
|
|
209
|
+
he as k,
|
|
210
210
|
N as l,
|
|
211
|
-
|
|
212
|
-
|
|
211
|
+
Oe as m,
|
|
212
|
+
Ve as n,
|
|
213
213
|
Te as o,
|
|
214
214
|
Be as p,
|
|
215
215
|
Le as r,
|
package/dist/chunks/utils2.js
CHANGED
|
@@ -5,7 +5,7 @@ import "luxon";
|
|
|
5
5
|
import "d3-array";
|
|
6
6
|
import "@arcgis/toolkit/type";
|
|
7
7
|
import "./series-types.js";
|
|
8
|
-
import {
|
|
8
|
+
import { aK as x, aI as a, bD as l } from "./index.js";
|
|
9
9
|
import "@arcgis/core/Graphic.js";
|
|
10
10
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
11
11
|
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
@@ -39,14 +39,14 @@ const w = (i, e) => e.axes?.[i]?.labels?.visible ?? !0, z = (i, e, s) => {
|
|
|
39
39
|
visible: !0,
|
|
40
40
|
font: a(l.AxisTitle)
|
|
41
41
|
}));
|
|
42
|
-
}, G = (i, e) => e.axes?.[i]?.title?.visible ?? !1,
|
|
42
|
+
}, G = (i, e) => e.axes?.[i]?.title?.visible ?? !1, H = (i, e, s) => {
|
|
43
43
|
const t = s.axes?.[e];
|
|
44
44
|
t?.title !== void 0 ? t.title.visible = i : t !== void 0 && t?.title === void 0 && (t.title = x({
|
|
45
45
|
text: r(e, s),
|
|
46
46
|
visible: i,
|
|
47
47
|
font: a(l.AxisTitle)
|
|
48
48
|
}));
|
|
49
|
-
},
|
|
49
|
+
}, J = (i, e) => i.axes?.[e]?.title?.content, M = (i) => {
|
|
50
50
|
const { config: e, axisIndex: s, symbol: t } = i, o = e.axes?.[s];
|
|
51
51
|
if (o !== void 0) {
|
|
52
52
|
const n = o.title?.content.text;
|
|
@@ -59,10 +59,10 @@ const w = (i, e) => e.axes?.[i]?.labels?.visible ?? !0, z = (i, e, s) => {
|
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
61
|
export {
|
|
62
|
-
|
|
62
|
+
J as a,
|
|
63
63
|
B as b,
|
|
64
64
|
G as c,
|
|
65
|
-
|
|
65
|
+
H as d,
|
|
66
66
|
w as e,
|
|
67
67
|
z as f,
|
|
68
68
|
r as g,
|