@arcgis/charts-components 5.0.0-next.160 → 5.0.0-next.162
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/{RZ6R7MN4.js → 277KZ5EH.js} +1 -1
- package/dist/cdn/{ZNEO3KDO.js → 35FGLAKV.js} +1 -1
- package/dist/cdn/{F4YTYW5V.js → 37TWMIC2.js} +1 -1
- package/dist/cdn/{ZRXBS332.js → 3TCYZ5OB.js} +19 -19
- package/dist/cdn/3UBEHDWK.js +2 -0
- package/dist/cdn/{OPLYTZOK.js → 4L3ESTCL.js} +1 -1
- package/dist/cdn/{FTVGPPNT.js → 53QDB3IL.js} +1 -1
- package/dist/cdn/{PN64D75Z.js → 62OZB7FK.js} +1 -1
- package/dist/cdn/{SWT4YIO7.js → 64DXX3FX.js} +1 -1
- package/dist/cdn/{VDGG6FNJ.js → 6AP262U4.js} +1 -1
- package/dist/cdn/{67GFPMNP.js → 7HCS3J2W.js} +1 -1
- package/dist/cdn/{6CXURON6.js → 7HDTPUIY.js} +1 -1
- package/dist/cdn/{HHE4YHFC.js → 7KAPOFBN.js} +1 -1
- package/dist/cdn/{RDBJ4EAL.js → 7LRO7RMI.js} +1 -1
- package/dist/cdn/{LTTLQY6M.js → 7WZV7AE3.js} +1 -1
- package/dist/cdn/{GOTYA4RS.js → 7XUX4ZTI.js} +1 -1
- package/dist/cdn/{BQRMDGR3.js → B5LXWQRU.js} +1 -1
- package/dist/cdn/{PBRZV4IF.js → BYAYB5LF.js} +1 -1
- package/dist/cdn/{665XYLCG.js → C72B5RSG.js} +1 -1
- package/dist/cdn/{MJRULOQL.js → CAXYDF5R.js} +1 -1
- package/dist/cdn/{IYF5UHWL.js → CBTHS6I5.js} +1 -1
- package/dist/cdn/{FO26BDGS.js → CIW6WMFK.js} +3 -3
- package/dist/cdn/{XGWFSBK7.js → CTDG3FOZ.js} +1 -1
- package/dist/cdn/{IWZKNPYZ.js → D2HQHUZF.js} +1 -1
- package/dist/cdn/{UR26ITDF.js → DACWGPLL.js} +1 -1
- package/dist/cdn/{LG32FAGS.js → DB3UL5LX.js} +1 -1
- package/dist/cdn/{VAXL6P2J.js → DHBBU7AG.js} +1 -1
- package/dist/cdn/{L7PMTZK6.js → DKC6E3QZ.js} +1 -1
- package/dist/cdn/{BNTX3CFT.js → DLT5ZL25.js} +1 -1
- package/dist/cdn/{QTV7HK2M.js → EYXP4YQW.js} +1 -1
- package/dist/cdn/{6YNI4VGB.js → FGMU7G6T.js} +1 -1
- package/dist/cdn/{PDPZOXDT.js → G7UITT5F.js} +1 -1
- package/dist/cdn/{XQG5VGS4.js → GB223HFN.js} +1 -1
- package/dist/cdn/{RGUQ44HW.js → GKUTVRCP.js} +1 -1
- package/dist/cdn/{SLX36JI6.js → GRUDYKUK.js} +1 -1
- package/dist/cdn/{MEXLQN6D.js → HAAT4GZV.js} +1 -1
- package/dist/cdn/{RKQXTPOC.js → IBDFXE7F.js} +1 -1
- package/dist/cdn/{UVFZBFUX.js → IBMHE4HG.js} +1 -1
- package/dist/cdn/{UR4FYTBG.js → IDMPL6T7.js} +1 -1
- package/dist/cdn/{HAS5TLQ3.js → IL22JCIC.js} +1 -1
- package/dist/cdn/{XJUEF5CF.js → ISB65KPT.js} +1 -1
- package/dist/cdn/{JGXIWN67.js → IYGUWGB6.js} +1 -1
- package/dist/cdn/{KGZ4OZTE.js → JASXULGK.js} +1 -1
- package/dist/cdn/{D26O56MQ.js → JBHDZEVD.js} +1 -1
- package/dist/cdn/{PWNEQTL7.js → KDGGKNBV.js} +1 -1
- package/dist/cdn/{M6Z5DNZU.js → KF4ILYWV.js} +1 -1
- package/dist/cdn/KHPBPGZW.js +2 -0
- package/dist/cdn/{X4EAJDXE.js → KLOSKKEF.js} +1 -1
- package/dist/cdn/{R7BXDBMM.js → KOC7VWEQ.js} +1 -1
- package/dist/cdn/{3WRKA6FV.js → KPBKHH3V.js} +1 -1
- package/dist/cdn/LRATJMH3.js +2 -0
- package/dist/cdn/{MG7QVBU6.js → MMVZJQGM.js} +1 -1
- package/dist/cdn/{JCKTUCRW.js → MSNUKDFY.js} +1 -1
- package/dist/cdn/{YV3ZTJIM.js → NLNJYC2E.js} +1 -1
- package/dist/cdn/{44H6FBHJ.js → NNTJCO7Q.js} +1 -1
- package/dist/cdn/{PKZLBYM2.js → OMR6RCJW.js} +1 -1
- package/dist/cdn/{KY27HRBB.js → OR2MF4BU.js} +1 -1
- package/dist/cdn/{CH42B5JL.js → OWTDESPZ.js} +1 -1
- package/dist/cdn/{PAYHZG5C.js → P3XTRZL3.js} +1 -1
- package/dist/cdn/{4PBJ7FUT.js → PQRPDV2N.js} +1 -1
- package/dist/cdn/{PPNZMZXU.js → PUO6TAT3.js} +1 -1
- package/dist/cdn/{4UKLAJSH.js → PZ5VL76M.js} +1 -1
- package/dist/cdn/{GBKRQ677.js → R7TVVBB7.js} +1 -1
- package/dist/cdn/{O73BKEVY.js → RKJFJ3VI.js} +1 -1
- package/dist/cdn/{2KLSYRIH.js → S3MAP4NY.js} +1 -1
- package/dist/cdn/{NCTDUS4J.js → SAKNSC4M.js} +1 -1
- package/dist/cdn/{7743VKV6.js → SW62HLGO.js} +1 -1
- package/dist/cdn/{VVKJ7NJ6.js → SW6ENGEK.js} +1 -1
- package/dist/cdn/{2BMO22B2.js → SZ2BB7ZG.js} +1 -1
- package/dist/cdn/{GJAATA35.js → TBYLHPGX.js} +1 -1
- package/dist/cdn/{A6KHSTDR.js → TCKDCNZ6.js} +1 -1
- package/dist/cdn/{L4YLTTHZ.js → TQRAYSWN.js} +1 -1
- package/dist/cdn/{XSF4MZ74.js → TUTT6I7D.js} +1 -1
- package/dist/cdn/{WQIYKKB6.js → UHB77RAE.js} +1 -1
- package/dist/cdn/{FQHGUWNW.js → UUZWRA5G.js} +1 -1
- package/dist/cdn/{IFGO4IOP.js → V65HT7NA.js} +1 -1
- package/dist/cdn/{PXVGQP6X.js → VMSL4CWI.js} +1 -1
- package/dist/cdn/{TO45SJXS.js → WCBXBXTZ.js} +1 -1
- package/dist/cdn/WNZXN6Y2.js +2 -0
- package/dist/cdn/{C7TDDQQD.js → WORQWDJQ.js} +1 -1
- package/dist/cdn/{B2VQPKK2.js → WTZ23CRY.js} +1 -1
- package/dist/cdn/{2KSPR6GE.js → XIFLK5EG.js} +1 -1
- package/dist/cdn/XNTLXVQF.js +2 -0
- package/dist/cdn/{UGPLQMQT.js → XQAUA2KI.js} +1 -1
- package/dist/cdn/{GGMJJ64F.js → Y7OQUVXC.js} +1 -1
- package/dist/cdn/{LX4URLJD.js → YHIJMVJQ.js} +1 -1
- package/dist/cdn/{WF4C6C2Y.js → YHVWLHT7.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/action-bar-utils.js +5 -5
- package/dist/chunks/axis-lines-symbol.js +14 -14
- package/dist/chunks/bar-chart-model.js +3 -3
- package/dist/chunks/box-plot-data.js +20 -20
- package/dist/chunks/box-plot-model.js +19 -19
- package/dist/chunks/chart-model.js +43 -43
- package/dist/chunks/chart-ui-utils2.js +3 -3
- package/dist/chunks/combo-bar-line-chart-model.js +7 -7
- package/dist/chunks/data-labels-symbol.js +1 -1
- package/dist/chunks/data.js +19 -19
- package/dist/chunks/gauge-model.js +16 -16
- package/dist/chunks/generate-x-axis-title.js +1 -1
- package/dist/chunks/heat-chart-model.js +12 -12
- package/dist/chunks/histogram-data.js +7 -7
- package/dist/chunks/histogram-model.js +4 -4
- package/dist/chunks/index.js +320 -318
- package/dist/chunks/index2.js +51 -51
- package/dist/chunks/index3.js +12 -12
- package/dist/chunks/line-chart-model.js +6 -6
- package/dist/chunks/model-setter.js +3 -3
- package/dist/chunks/model-with-guides.js +12 -12
- package/dist/chunks/model-with-tooltips.js +16 -16
- package/dist/chunks/model-with-y-guides.js +11 -11
- package/dist/chunks/negative-values-stacked-to-baseline.js +1 -1
- package/dist/chunks/pie-chart-data.js +25 -25
- package/dist/chunks/pie-chart-model.js +33 -33
- package/dist/chunks/radar-chart-model.js +4 -4
- package/dist/chunks/rotated-state.js +3 -3
- package/dist/chunks/scatterplot-model.js +18 -18
- package/dist/chunks/serial-chart-data.js +306 -300
- package/dist/chunks/serial-chart-model.js +13 -13
- package/dist/chunks/series-length.js +1 -1
- package/dist/chunks/series.js +7 -7
- package/dist/chunks/utils.js +36 -36
- package/dist/chunks/utils2.js +9 -9
- package/dist/chunks/web-component-utils.js +51 -51
- package/dist/components/arcgis-chart/customElement.js +1529 -1517
- package/dist/components/arcgis-charts-action-bar/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +10 -10
- 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 +5 -5
- 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 +8 -8
- 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 +10 -10
- package/dist/components/arcgis-charts-config-font-style/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-general/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-guide/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +9 -9
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +7 -7
- 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 +5 -5
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +1 -1
- 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 +1 -1
- 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 +224 -223
- package/dist/utils/chart-config/utils/index.d.ts +8 -0
- package/package.json +3 -3
- package/dist/cdn/FIR7XZ4I.js +0 -2
- package/dist/cdn/GMI2B2TP.js +0 -2
- package/dist/cdn/IIQTQZRE.js +0 -2
- package/dist/cdn/V4BNMRTI.js +0 -2
- package/dist/cdn/YNDD5HWR.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 { b6 as L, aX as D, b1 as P, aP as M, aN as V, b as S, bL 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 K, Y, Z as $, _ as G, $ as
|
|
29
|
+
import { g as I, u as E, s as _, c as R, b as X, a as k } from "./utils.js";
|
|
30
|
+
import { R as y, S as u, U as j, V as w, W as z, X as K, Y, Z as $, _ as G, $ as q, a0 as Z, a1 as H, a2 as J, I as T, a3 as x, a4 as A, a5 as Q, 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] = P(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 = M() : 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
|
+
}, Pe = (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 Me = 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 && Me(e, t, r), r;
|
|
96
96
|
};
|
|
97
97
|
class c extends v {
|
|
98
98
|
/**
|
|
@@ -129,7 +129,7 @@ class c extends v {
|
|
|
129
129
|
return G(this._config);
|
|
130
130
|
}
|
|
131
131
|
set trimIncompleteTimeInterval(e) {
|
|
132
|
-
|
|
132
|
+
q(e, this._config);
|
|
133
133
|
}
|
|
134
134
|
/**
|
|
135
135
|
* Policy which tells the chart how to handle null values.
|
|
@@ -141,7 +141,7 @@ 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 Z(this._config);
|
|
145
145
|
}
|
|
146
146
|
set nullPolicy(e) {
|
|
147
147
|
H(e, this._config);
|
|
@@ -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 = X(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();
|
|
@@ -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) || Pe(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
|
+
k(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 { aJ as l, aH as a, bC 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 { aX 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,14 +24,14 @@ 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 X = (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;
|
|
31
31
|
};
|
|
32
32
|
export {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
k as a,
|
|
34
|
+
q as b,
|
|
35
|
+
X as g,
|
|
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
|
|
3
|
+
import { e as B, W as c, a as F, w as C, g as w } 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 { aL as D, cV as k, bs as j, cZ as h, bL as v, aJ as M, aH as q, bC as W, b1 as $, bQ as E, ch as L, bR as U, ah as V, bS as H, d1 as K, k as P, de as X } 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 S } 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";
|
|
@@ -23,7 +23,7 @@ import "@arcgis/core/geometry/support/jsonUtils.js";
|
|
|
23
23
|
import "@arcgis/core/rest/support/AttributeBinsQuery.js";
|
|
24
24
|
import "@arcgis/core/rest/support/StatisticDefinition.js";
|
|
25
25
|
import "@arcgis/core/time/TimeExtent.js";
|
|
26
|
-
import { s as
|
|
26
|
+
import { s as G } from "./index4.js";
|
|
27
27
|
function be(i, e, s) {
|
|
28
28
|
const t = i?.axes?.[e];
|
|
29
29
|
t?.title !== void 0 ? t.title.content.text = s : t !== void 0 && (t.title = M({
|
|
@@ -32,32 +32,32 @@ function be(i, e, s) {
|
|
|
32
32
|
font: q(W.AxisTitle)
|
|
33
33
|
}));
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function he(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 (k(e) ===
|
|
39
|
+
if (k(e) === B.Stacked100)
|
|
40
40
|
o = t.utilsStrings.statistics.percent;
|
|
41
41
|
else {
|
|
42
42
|
const d = j(r, t);
|
|
43
43
|
if (e.series[0]?.type === c.HeatSeries)
|
|
44
|
-
o =
|
|
44
|
+
o = h(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 = h(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 = S(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 = S(t.axisLabels.aggregationOfValues, {
|
|
52
52
|
aggregation: d
|
|
53
53
|
}));
|
|
54
54
|
}
|
|
55
55
|
return o;
|
|
56
56
|
}
|
|
57
|
-
const
|
|
57
|
+
const O = (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
|
+
}, Se = (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;
|
|
@@ -65,48 +65,48 @@ const V = (i, e, s) => i.axes?.[e] ?? K(s, i.type)[e], B = (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
67
|
}, Ie = (i) => i.axes?.[0]?.valueFormat ?? D(), Ne = (i, e, s) => {
|
|
68
|
-
const t =
|
|
68
|
+
const t = O(i, 0, e);
|
|
69
69
|
if (t !== void 0 && s !== void 0) {
|
|
70
70
|
const a = {
|
|
71
71
|
...t,
|
|
72
72
|
valueFormat: s
|
|
73
73
|
};
|
|
74
|
-
|
|
74
|
+
T({ config: i, axis: a, axisIndex: 0 });
|
|
75
75
|
}
|
|
76
76
|
}, ve = (i, e, s) => {
|
|
77
77
|
const t = i.axes?.[e];
|
|
78
78
|
t !== void 0 && (t.integerOnlyValues = s);
|
|
79
|
-
},
|
|
79
|
+
}, J = (i) => {
|
|
80
80
|
const e = C(i.series);
|
|
81
81
|
return e === c.BarSeries || e === c.ComboLineAndBarSeries || e === c.LineSeries;
|
|
82
82
|
}, Q = (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 = J(s)), a;
|
|
86
86
|
}, Le = (i) => {
|
|
87
87
|
const { axisIndex: e, func: s, config: t } = i;
|
|
88
88
|
return Q({ 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
|
-
return (i === 0 || i >= 1 &&
|
|
93
|
-
},
|
|
94
|
-
const { config: e, commonStrings: s, valueFormat: t, axisIndex: a = 0 } = i, r =
|
|
92
|
+
return (i === 0 || i >= 1 && G(t)) && (s = t), s;
|
|
93
|
+
}, Ve = (i) => {
|
|
94
|
+
const { config: e, commonStrings: s, valueFormat: t, axisIndex: a = 0 } = i, r = O(e, a, s);
|
|
95
95
|
if (r !== void 0 && t !== void 0) {
|
|
96
96
|
const o = {
|
|
97
97
|
...r,
|
|
98
98
|
valueFormat: t
|
|
99
99
|
};
|
|
100
|
-
|
|
100
|
+
T({
|
|
101
101
|
config: e,
|
|
102
102
|
axis: o,
|
|
103
103
|
axisIndex: a
|
|
104
104
|
});
|
|
105
105
|
}
|
|
106
|
-
},
|
|
106
|
+
}, Oe = (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) => {
|
|
110
110
|
const { config: e, scrollbar: s, axisIndex: t } = i;
|
|
111
111
|
e.axes?.[t] !== void 0 && (e.axes[t].scrollbar = s);
|
|
112
112
|
};
|
|
@@ -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: K(a) ? [] : [`${a} ${w.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 V({
|
|
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) => P({ where: n.query?.where })?.toString() ?? "").filter((n) => n !== void 0 && n !== "");
|
|
131
|
+
y = X({
|
|
132
132
|
arrayA: y,
|
|
133
133
|
arrayB: p,
|
|
134
134
|
getKey: (n) => n === null ? null : n?.toString()
|
|
@@ -146,7 +146,7 @@ function we(i, e) {
|
|
|
146
146
|
return s;
|
|
147
147
|
}
|
|
148
148
|
function De(i, e) {
|
|
149
|
-
const s =
|
|
149
|
+
const s = E(i);
|
|
150
150
|
let t = e.length === 0, a = 0;
|
|
151
151
|
for (const r of e) {
|
|
152
152
|
for (const o of s)
|
|
@@ -176,12 +176,12 @@ async function je(i) {
|
|
|
176
176
|
// excluding the null values from the list
|
|
177
177
|
orderByFields: [],
|
|
178
178
|
geometry: s?.dataFilters?.geometry
|
|
179
|
-
}, l =
|
|
179
|
+
}, l = U(a);
|
|
180
180
|
return (
|
|
181
181
|
// fetch unique category values asynchronously
|
|
182
|
-
(await
|
|
182
|
+
(await V({ queryObject: a, category: t, queryConfig: d })).map((x) => {
|
|
183
183
|
const g = String(x);
|
|
184
|
-
return
|
|
184
|
+
return H({
|
|
185
185
|
fieldName: t,
|
|
186
186
|
fieldValueToMatch: g,
|
|
187
187
|
subtypeInfo: l,
|
|
@@ -202,16 +202,16 @@ export {
|
|
|
202
202
|
Ie as d,
|
|
203
203
|
je as e,
|
|
204
204
|
Ne as f,
|
|
205
|
-
|
|
205
|
+
he as g,
|
|
206
206
|
Ce as h,
|
|
207
207
|
Me as i,
|
|
208
208
|
ve as j,
|
|
209
|
-
|
|
209
|
+
Se as k,
|
|
210
210
|
N as l,
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
211
|
+
Ve as m,
|
|
212
|
+
Oe as n,
|
|
213
|
+
Te as o,
|
|
214
|
+
Be as p,
|
|
215
215
|
Le as r,
|
|
216
216
|
I as s,
|
|
217
217
|
be as u
|
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 { aJ as x, aH as a, bC 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";
|
|
@@ -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 w = (i, e) => e.axes?.[i]?.labels?.visible ?? !0, z = (i, e, s) => {
|
|
28
28
|
const t = s.axes?.[e];
|
|
29
29
|
t?.labels !== void 0 ? t.labels.visible = i : t !== void 0 && t?.labels === void 0 && (t.labels = x({
|
|
30
30
|
text: "",
|
|
@@ -32,14 +32,14 @@ const q = (i, e) => e.axes?.[i]?.labels?.visible ?? !0, w = (i, e, s) => {
|
|
|
32
32
|
font: a(l.AxisLabels),
|
|
33
33
|
type: l.AxisLabels
|
|
34
34
|
}));
|
|
35
|
-
}, r = (i, e) => e.axes?.[i]?.title?.content.text ?? "",
|
|
35
|
+
}, r = (i, e) => e.axes?.[i]?.title?.content.text ?? "", B = (i, e, s) => {
|
|
36
36
|
const t = s.axes?.[e];
|
|
37
37
|
t?.title !== void 0 ? t.title.content.text = i : t !== void 0 && t?.title === void 0 && (t.title = x({
|
|
38
38
|
text: i,
|
|
39
39
|
visible: !0,
|
|
40
40
|
font: a(l.AxisTitle)
|
|
41
41
|
}));
|
|
42
|
-
},
|
|
42
|
+
}, G = (i, e) => e.axes?.[i]?.title?.visible ?? !1, I = (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),
|
|
@@ -60,11 +60,11 @@ const q = (i, e) => e.axes?.[i]?.labels?.visible ?? !0, w = (i, e, s) => {
|
|
|
60
60
|
};
|
|
61
61
|
export {
|
|
62
62
|
K as a,
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
63
|
+
B as b,
|
|
64
|
+
G as c,
|
|
65
|
+
I as d,
|
|
66
|
+
w as e,
|
|
67
|
+
z as f,
|
|
68
68
|
r as g,
|
|
69
69
|
M as s
|
|
70
70
|
};
|