@arcgis/charts-components 5.2.0-next.30 → 5.2.0-next.32
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/{3QO6REDF.js → 25W6T5FX.js} +8 -8
- package/dist/cdn/{JBR6IJMK.js → 2HG3BPPY.js} +1 -1
- package/dist/cdn/2Y7PYCI7.js +2 -0
- package/dist/cdn/{HIW5WRHR.js → 46DNECVM.js} +1 -1
- package/dist/cdn/{HBS6O3P3.js → 4LKQOIJR.js} +1 -1
- package/dist/cdn/{X7Z4LEZH.js → 4N7Q4USI.js} +1 -1
- package/dist/cdn/{6ANVHVX4.js → 4T3YFJA6.js} +1 -1
- package/dist/cdn/{BI54CNMR.js → 4WISIBCY.js} +1 -1
- package/dist/cdn/{6CB5R4QQ.js → 4XYMN2CV.js} +1 -1
- package/dist/cdn/{AZR6HVRW.js → 575YVIX7.js} +1 -1
- package/dist/cdn/{7VQXBQMZ.js → 5Y5QG6LJ.js} +1 -1
- package/dist/cdn/{YQIFZJTZ.js → 6GQLATNT.js} +1 -1
- package/dist/cdn/{XRLVJJBT.js → 6LH7Y7PU.js} +1 -1
- package/dist/cdn/{6VK54DG5.js → 7HSE4SIZ.js} +1 -1
- package/dist/cdn/{C4TQOUPO.js → 7ISSUJ2D.js} +1 -1
- package/dist/cdn/7NHOA7QL.js +3 -0
- package/dist/cdn/{SSKHF7PO.js → AGY2UGFW.js} +1 -1
- package/dist/cdn/{IWMWJN7M.js → B7TOZQEW.js} +1 -1
- package/dist/cdn/{X7YEBHBF.js → BECNHOTD.js} +1 -1
- package/dist/cdn/{T5TFLMQL.js → BNNTNT7S.js} +1 -1
- package/dist/cdn/{REZ2QR42.js → BXCX7QFT.js} +1 -1
- package/dist/cdn/{BZFGE4LO.js → BXYUDSWF.js} +1 -1
- package/dist/cdn/{PEYVSFSE.js → CXMIIYBK.js} +36 -36
- package/dist/cdn/{4BEGCEGA.js → D7N4VK2S.js} +3 -3
- package/dist/cdn/{KFPJI52X.js → DTG42E2P.js} +1 -1
- package/dist/cdn/{K27GKXGP.js → DWIKPTKJ.js} +1 -1
- package/dist/cdn/{QV3NMKKZ.js → EAJBDT2X.js} +1 -1
- package/dist/cdn/{Q2GW5LB7.js → ESUNC3JW.js} +1 -1
- package/dist/cdn/{2SPGX6AF.js → EXJWV5I4.js} +1 -1
- package/dist/cdn/{YFHB2EFH.js → G5KG5GU4.js} +1 -1
- package/dist/cdn/{VY3KBD6N.js → G6EAXNDR.js} +1 -1
- package/dist/cdn/{YWKPGNHB.js → GRPZ65P4.js} +1 -1
- package/dist/cdn/{BKU72IQC.js → GXXY6NI7.js} +1 -1
- package/dist/cdn/{G5EGTXMY.js → HWYXGOUR.js} +1 -1
- package/dist/cdn/{AICTKGE3.js → IAVYR2KG.js} +1 -1
- package/dist/cdn/{4P7URPRQ.js → IDDJVOHS.js} +1 -1
- package/dist/cdn/IFYT2GHB.js +2 -0
- package/dist/cdn/{TSA7UMSZ.js → ILZCAXS5.js} +1 -1
- package/dist/cdn/{Y3CXVO2M.js → J2YNPNIL.js} +1 -1
- package/dist/cdn/JAN3QW7E.js +2 -0
- package/dist/cdn/{5UO6L27Q.js → JOJIT55L.js} +1 -1
- package/dist/cdn/{LFXRCL7K.js → JXPTGJSF.js} +1 -1
- package/dist/cdn/{3NKDMMC2.js → K2V7HVU3.js} +1 -1
- package/dist/cdn/{5XCU5SR2.js → K3FOMGX7.js} +1 -1
- package/dist/cdn/{WHVW3P3O.js → K6PPZIL5.js} +1 -1
- package/dist/cdn/{THTYR6IL.js → KHT4LCWN.js} +1 -1
- package/dist/cdn/{CLN32L2L.js → KU55QTV5.js} +1 -1
- package/dist/cdn/{CRCAJAFA.js → KZ2OB6RV.js} +1 -1
- package/dist/cdn/{3YN4EKSJ.js → L2OJXJD4.js} +1 -1
- package/dist/cdn/{3UTF2CB3.js → L5CT3KCS.js} +1 -1
- package/dist/cdn/{6GV2QPKV.js → LAPPRAQF.js} +1 -1
- package/dist/cdn/{MVUIKY5Y.js → LHLM6RMX.js} +1 -1
- package/dist/cdn/{KQLAAGKI.js → LKEHGBEV.js} +1 -1
- package/dist/cdn/{ADYDCO3M.js → LKLFDY3E.js} +1 -1
- package/dist/cdn/{PAIRUVLU.js → LLUS6VGO.js} +1 -1
- package/dist/cdn/{TCS4HOSG.js → LLYDWCNL.js} +1 -1
- package/dist/cdn/{DAF2U7TN.js → LQQJXKY7.js} +1 -1
- package/dist/cdn/{3TBK72EK.js → LV3T5QZF.js} +1 -1
- package/dist/cdn/{O5NKLK7V.js → MA2J6LRE.js} +1 -1
- package/dist/cdn/{BQXXD2HU.js → MTYZHHDS.js} +1 -1
- package/dist/cdn/{MBPFBE3E.js → N72PRHWL.js} +1 -1
- package/dist/cdn/{Y7HBWU3M.js → NKUXUCUP.js} +1 -1
- package/dist/cdn/{6XIDALQU.js → NX4OLIXG.js} +1 -1
- package/dist/cdn/{M7QZTQSD.js → OCRAZDQR.js} +1 -1
- package/dist/cdn/OEBQA6SR.js +2 -0
- package/dist/cdn/{XRP6IFM4.js → OKPUFIIU.js} +1 -1
- package/dist/cdn/{DRFJC64L.js → P2KW76YO.js} +1 -1
- package/dist/cdn/{YWCIV7ZZ.js → PCBE7IEQ.js} +1 -1
- package/dist/cdn/{M4ZJRIYM.js → PRGGOOYS.js} +1 -1
- package/dist/cdn/{N673JFHK.js → PXGQGJAV.js} +1 -1
- package/dist/cdn/{6OCDFMFB.js → Q7XQPRE5.js} +1 -1
- package/dist/cdn/{SOGVYNPI.js → QGLWN3TS.js} +1 -1
- package/dist/cdn/{2ODYZG66.js → QH2YJ3TT.js} +1 -1
- package/dist/cdn/{Y6CFEFZM.js → RA7EKGRW.js} +1 -1
- package/dist/cdn/{WU62O2AU.js → RJFIQORK.js} +1 -1
- package/dist/cdn/{MEA74C44.js → RVFD5Z7L.js} +1 -1
- package/dist/cdn/{WJHIJTWS.js → SWJIRHQQ.js} +1 -1
- package/dist/cdn/{3SBYV6BW.js → TYDIOOT2.js} +1 -1
- package/dist/cdn/{4TRUG37X.js → U53OVQF2.js} +1 -1
- package/dist/cdn/{RKG6CXUU.js → WNH47TQQ.js} +1 -1
- package/dist/cdn/{Z43DVT6G.js → WPHYJV72.js} +1 -1
- package/dist/cdn/{GCRQHIGQ.js → WSSYOOMW.js} +1 -1
- package/dist/cdn/{35NSJ3NJ.js → WYU56MVP.js} +1 -1
- package/dist/cdn/{TOFVWGTG.js → XQ2CVQJW.js} +1 -1
- package/dist/cdn/{7Z7NOIH2.js → XRTGYEKU.js} +1 -1
- package/dist/cdn/{IPALCXFF.js → YHFANXPC.js} +1 -1
- package/dist/cdn/{PKQOLKTW.js → YTV5MFKS.js} +1 -1
- package/dist/cdn/{ZW4PF3UK.js → Z2NN43OK.js} +1 -1
- package/dist/cdn/{QGEFY4ND.js → Z2YPKIRL.js} +1 -1
- package/dist/cdn/{NKVZYKL5.js → ZK3QFPDP.js} +1 -1
- package/dist/cdn/{JIV6BQKG.js → ZKZGO5WD.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/axis-lines-symbol.js +7 -7
- package/dist/chunks/bar-chart-model.js +39 -36
- package/dist/chunks/box-plot-data.js +36 -36
- package/dist/chunks/box-plot-model.js +5 -5
- package/dist/chunks/chart-model.js +38 -38
- package/dist/chunks/class-breaks.js +7 -7
- package/dist/chunks/combo-bar-line-chart-model.js +27 -27
- package/dist/chunks/data-labels-symbol.js +1 -1
- package/dist/chunks/data-labels-visibility.js +22 -22
- package/dist/chunks/data.js +18 -18
- package/dist/chunks/gauge-model.js +16 -16
- package/dist/chunks/generate-x-axis-title.js +9 -9
- package/dist/chunks/heat-chart-model.js +5 -5
- package/dist/chunks/histogram-data.js +15 -15
- package/dist/chunks/histogram-model.js +4 -4
- package/dist/chunks/index.js +84 -83
- package/dist/chunks/index2.js +989 -973
- package/dist/chunks/index3.js +13 -13
- package/dist/chunks/index4.js +149 -49
- package/dist/chunks/line-chart-model.js +1 -1
- package/dist/chunks/model-setter.js +1 -1
- package/dist/chunks/model-with-y-guides.js +6 -6
- package/dist/chunks/negative-values-stacked-to-baseline.js +3 -3
- package/dist/chunks/pie-chart-data.js +16 -16
- package/dist/chunks/pie-chart-model.js +20 -20
- package/dist/chunks/radar-chart-model.js +1 -1
- package/dist/chunks/resource.js +1 -1
- package/dist/chunks/rounded-corners.js +73 -0
- package/dist/chunks/scatterplot-model.js +3 -3
- package/dist/chunks/serial-chart-data.js +73 -73
- package/dist/chunks/serial-chart-model.js +13 -13
- package/dist/chunks/series-length.js +1 -1
- package/dist/chunks/series.js +1 -1
- package/dist/chunks/type-guards2.js +24 -20
- package/dist/chunks/utils.js +14 -14
- package/dist/chunks/utils2.js +1 -1
- package/dist/chunks/web-component-utils.js +41 -41
- package/dist/chunks/x-bounds.js +16 -16
- package/dist/components/arcgis-chart/customElement.js +6354 -6174
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-popover/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-series-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-font-style/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-format/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-guide/customElement.js +6 -6
- package/dist/components/arcgis-charts-config-guides/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +16 -16
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +10 -10
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-popover/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-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +5 -5
- 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 +446 -444
- package/dist/json-schema/index.d.ts +92 -2
- package/dist/model/bar-chart-model/bar-chart-model.d.ts +4 -2
- package/dist/model/combo-bar-line-chart-model/combo-bar-line-chart-model.d.ts +3 -2
- package/dist/model/properties/rounded-corners.d.ts +18 -0
- package/dist/model/shared/type-guards.d.ts +7 -0
- package/dist/spec/web-chart.d.ts +8 -0
- package/dist/utils/chart-config/converter/index.js +15 -15
- package/dist/utils/defaults/index.d.ts +4 -1
- package/package.json +3 -3
- package/dist/cdn/BJBNELDD.js +0 -3
- package/dist/cdn/SAYLTYWY.js +0 -2
- package/dist/cdn/U3MRRFML.js +0 -2
- package/dist/cdn/VWTJHXHI.js +0 -2
- package/dist/cdn/WPPMMVD5.js +0 -2
- package/dist/chunks/bar-chart-series.js +0 -15
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { m as
|
|
3
|
-
import {
|
|
2
|
+
import { m as d } from "./model-setter.js";
|
|
3
|
+
import { g as h, s as S, a as g, b as m, W as p } from "./rounded-corners.js";
|
|
4
|
+
import { S as y, s as u, a as v } from "./serial-chart-model.js";
|
|
4
5
|
import { h as c } from "./serial-chart-data.js";
|
|
5
|
-
import { f as
|
|
6
|
-
import {
|
|
7
|
-
import { u as
|
|
8
|
-
import {
|
|
9
|
-
import { an as
|
|
10
|
-
var
|
|
11
|
-
for (var i = B(e, t), s =
|
|
12
|
-
(f =
|
|
13
|
-
return i &&
|
|
6
|
+
import { f as b } from "./data.js";
|
|
7
|
+
import { f as O } from "./utils.js";
|
|
8
|
+
import { u as _ } from "./chart-object-literals.js";
|
|
9
|
+
import { x as C, y as L, an as I, aC as x } from "./index.js";
|
|
10
|
+
import { an as n } from "./index2.js";
|
|
11
|
+
var z = Object.defineProperty, B = Object.getOwnPropertyDescriptor, l = (a, e, t, r) => {
|
|
12
|
+
for (var i = B(e, t), s = a.length - 1, f; s >= 0; s--)
|
|
13
|
+
(f = a[s]) && (i = f(e, t, i) || i);
|
|
14
|
+
return i && z(e, t, i), i;
|
|
14
15
|
};
|
|
15
|
-
class
|
|
16
|
+
class o extends y {
|
|
16
17
|
constructor() {
|
|
17
|
-
super(...arguments), this._chartType =
|
|
18
|
+
super(...arguments), this._chartType = _.BarSeries;
|
|
18
19
|
}
|
|
19
20
|
async setup(e) {
|
|
20
21
|
await this.loadConfigFromLayer(e), this.setupLocalProps(), e.config !== void 0 && this.updateSeriesFromLayerFilter(), typeof this.resolveSetup == "function" && this.resolveSetup();
|
|
@@ -25,10 +26,10 @@ class l extends S {
|
|
|
25
26
|
// ---------------------------------------------------------------------------------------------
|
|
26
27
|
/** @private */
|
|
27
28
|
generateDefaultConfig() {
|
|
28
|
-
const e =
|
|
29
|
+
const e = C(this.commonStrings);
|
|
29
30
|
return e.series = [
|
|
30
|
-
|
|
31
|
-
objectIDField:
|
|
31
|
+
L({
|
|
32
|
+
objectIDField: n(this.layerInfo.layer).idField,
|
|
32
33
|
commonStrings: this.commonStrings
|
|
33
34
|
})
|
|
34
35
|
], e;
|
|
@@ -44,10 +45,10 @@ class l extends S {
|
|
|
44
45
|
* @param seriesIndex - The index of the series.
|
|
45
46
|
*/
|
|
46
47
|
getSeriesHideOversizedSideBySideLabels(e) {
|
|
47
|
-
return
|
|
48
|
+
return h(e, this._config);
|
|
48
49
|
}
|
|
49
50
|
setSeriesHideOversizedSideBySideLabels(e, t) {
|
|
50
|
-
|
|
51
|
+
S(e, t, this._config);
|
|
51
52
|
}
|
|
52
53
|
/**
|
|
53
54
|
* Gets whether to hide oversized stacked labels of the series based on the series index.
|
|
@@ -56,10 +57,10 @@ class l extends S {
|
|
|
56
57
|
* @param seriesIndex - The index of the series.
|
|
57
58
|
*/
|
|
58
59
|
getSeriesHideOversizedStackedLabels(e) {
|
|
59
|
-
return
|
|
60
|
+
return g(e, this._config);
|
|
60
61
|
}
|
|
61
62
|
setSeriesHideOversizedStackedLabels(e, t) {
|
|
62
|
-
|
|
63
|
+
m(e, t, this._config);
|
|
63
64
|
}
|
|
64
65
|
// #endregion
|
|
65
66
|
//#region Sorting Methods
|
|
@@ -68,22 +69,22 @@ class l extends S {
|
|
|
68
69
|
* @returns {"xAxisAsc" | "xAxisDesc" | "yAxisAsc" | "yAxisDesc" | "customSort"}
|
|
69
70
|
*/
|
|
70
71
|
getSortOrder() {
|
|
71
|
-
return
|
|
72
|
+
return b(this._config);
|
|
72
73
|
}
|
|
73
74
|
resetSeriesStyling() {
|
|
74
75
|
for (let e = 0; e < this.seriesLength; e += 1) {
|
|
75
|
-
const t = this.getSeriesId(e), r =
|
|
76
|
+
const t = this.getSeriesId(e), r = I({
|
|
76
77
|
colorIndex: e,
|
|
77
|
-
opacity:
|
|
78
|
+
opacity: x
|
|
78
79
|
});
|
|
79
|
-
if (
|
|
80
|
+
if (u(r, e, this._config), this.layerInfo !== void 0) {
|
|
80
81
|
const i = c({
|
|
81
82
|
config: this._config,
|
|
82
83
|
seriesIndex: e,
|
|
83
84
|
layerInfo: this.layerInfo,
|
|
84
85
|
commonStrings: this.commonStrings
|
|
85
86
|
});
|
|
86
|
-
i !==
|
|
87
|
+
i !== n(this.layerInfo.layer).idField && v(i ?? t, e, this._config);
|
|
87
88
|
}
|
|
88
89
|
}
|
|
89
90
|
this._config.colorMatch = !0;
|
|
@@ -102,7 +103,7 @@ class l extends S {
|
|
|
102
103
|
layerInfo: this.layerInfo,
|
|
103
104
|
commonStrings: this.commonStrings
|
|
104
105
|
}), s = this.getSeriesName(r);
|
|
105
|
-
if (i !== void 0 && i !==
|
|
106
|
+
if (i !== void 0 && i !== n(this.layerInfo.layer).idField && i !== s) {
|
|
106
107
|
t = !0;
|
|
107
108
|
break;
|
|
108
109
|
}
|
|
@@ -111,15 +112,17 @@ class l extends S {
|
|
|
111
112
|
}
|
|
112
113
|
// #endregion
|
|
113
114
|
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
],
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
],
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
],
|
|
115
|
+
l([
|
|
116
|
+
d
|
|
117
|
+
], o.prototype, "setSeriesHideOversizedSideBySideLabels");
|
|
118
|
+
l([
|
|
119
|
+
d
|
|
120
|
+
], o.prototype, "setSeriesHideOversizedStackedLabels");
|
|
121
|
+
l([
|
|
122
|
+
d
|
|
123
|
+
], o.prototype, "resetSeriesStyling");
|
|
124
|
+
const H = [p];
|
|
125
|
+
O(o, H);
|
|
123
126
|
export {
|
|
124
|
-
|
|
127
|
+
o as BarChartModel
|
|
125
128
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { substitute as M } from "@arcgis/core/intl.js";
|
|
3
|
-
import { memoize as
|
|
3
|
+
import { memoize as j, isEmpty as ce, isEqual as de, cloneDeep as X } from "lodash-es";
|
|
4
4
|
import { B as u } from "./common.js";
|
|
5
5
|
import { u as I, a as R, b as ye, c as ue, s as K, e as fe } from "./utils.js";
|
|
6
6
|
import { g as q } from "./utils2.js";
|
|
@@ -8,12 +8,12 @@ import { b as me } from "./series-length.js";
|
|
|
8
8
|
import { s as z } from "./data.js";
|
|
9
9
|
import { R as Se } from "./rest-js-object-literals.js";
|
|
10
10
|
import { u as f, n as p, p as h } from "./chart-object-literals.js";
|
|
11
|
-
import {
|
|
11
|
+
import { B as Y, g as C, Y as J, _, n as Q, C as Z, h as U, Z as pe, I as ge, D as xe } from "./index.js";
|
|
12
12
|
import { d as w } from "./index3.js";
|
|
13
|
-
import { aF as P, b9 as be, aK as he, ad as
|
|
14
|
-
import { b as D, c as
|
|
13
|
+
import { aF as P, b9 as be, aK as he, ad as Fe, a6 as G } from "./index2.js";
|
|
14
|
+
import { b as D, c as Ae } from "./index5.js";
|
|
15
15
|
import { i as V } from "./index4.js";
|
|
16
|
-
const
|
|
16
|
+
const He = (s, e) => e?.series?.[s]?.name, es = (s, e, t) => {
|
|
17
17
|
const o = t;
|
|
18
18
|
o?.series?.[e] !== void 0 && (o.series[e].name = s);
|
|
19
19
|
}, ss = (s, e) => {
|
|
@@ -44,7 +44,7 @@ function Te(s, e, t) {
|
|
|
44
44
|
const o = re(s, e, t), i = me(s), r = V(s);
|
|
45
45
|
return o === i || r;
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function H(s, e, t) {
|
|
48
48
|
const o = T(s, e, t), i = q(1, s), r = V(s);
|
|
49
49
|
return o === i || r;
|
|
50
50
|
}
|
|
@@ -52,13 +52,13 @@ function ve(s) {
|
|
|
52
52
|
const { config: e, layerInfo: t, newCategory: o } = s, { layerFieldsInfo: i } = t, r = L(e), l = o !== C ? w(i, r) : "", n = q(0, e), a = V(e);
|
|
53
53
|
return l === n || a || n.trim() === "";
|
|
54
54
|
}
|
|
55
|
-
const L = (s) => P(s)?.x ?? C, Me =
|
|
55
|
+
const L = (s) => P(s)?.x ?? C, Me = j(
|
|
56
56
|
(s) => {
|
|
57
57
|
const e = P(s), t = e?.query?.where?.split("=")[0].trim() ?? "";
|
|
58
58
|
return be(e?.query?.where) ? "" : t;
|
|
59
59
|
},
|
|
60
60
|
(s) => P(s)?.query?.where
|
|
61
|
-
), ee =
|
|
61
|
+
), ee = j(
|
|
62
62
|
// without memoizing, the worst case efficiency is O(series.length), best case is O(1)
|
|
63
63
|
// with memoizing, the worst case efficiency for repeated calls becomes O(1)
|
|
64
64
|
(s) => he(s?.series).filter((e) => e !== ""),
|
|
@@ -71,7 +71,7 @@ const L = (s) => P(s)?.x ?? C, Me = $(
|
|
|
71
71
|
y: o,
|
|
72
72
|
query: {}
|
|
73
73
|
};
|
|
74
|
-
return
|
|
74
|
+
return X(l);
|
|
75
75
|
}, Oe = (s) => {
|
|
76
76
|
const { category: e, seriesIndex: t, y: o, commonStrings: i } = s, l = {
|
|
77
77
|
...pe({ commonStrings: i, seriesIndex: t }),
|
|
@@ -79,7 +79,7 @@ const L = (s) => P(s)?.x ?? C, Me = $(
|
|
|
79
79
|
y: o,
|
|
80
80
|
query: {}
|
|
81
81
|
};
|
|
82
|
-
return
|
|
82
|
+
return X(l);
|
|
83
83
|
};
|
|
84
84
|
function se(s) {
|
|
85
85
|
const { x: e, y: t, seriesTemplate: o, commonStrings: i } = s, { id: r, fillSymbol: l } = o ?? {}, n = Z(i), a = r ?? `series_${Date.now()}`;
|
|
@@ -102,13 +102,13 @@ function te(s) {
|
|
|
102
102
|
});
|
|
103
103
|
n.push(m);
|
|
104
104
|
} else if (c) {
|
|
105
|
-
const m = e.length > 1 ? e : e[0],
|
|
105
|
+
const m = e.length > 1 ? e : e[0], F = O({
|
|
106
106
|
y: m,
|
|
107
107
|
seriesIndex: 0,
|
|
108
108
|
category: a,
|
|
109
109
|
commonStrings: r
|
|
110
110
|
}), x = e.length > 1 ? r.axisLabels.values : w(o.layerFieldsInfo, e[0]), g = {
|
|
111
|
-
...
|
|
111
|
+
...F,
|
|
112
112
|
id: e[0],
|
|
113
113
|
name: x,
|
|
114
114
|
x: c ? C : a
|
|
@@ -116,17 +116,17 @@ function te(s) {
|
|
|
116
116
|
S !== void 0 && (!t.colorMatch && "fillSymbol" in S && (g.fillSymbol = S.fillSymbol, y = !0), g.id = S.id, g.name = S.name), n.push(g);
|
|
117
117
|
} else
|
|
118
118
|
for (let m = 0; m < e.length; m += 1) {
|
|
119
|
-
const
|
|
120
|
-
y:
|
|
119
|
+
const F = e[m], x = O({
|
|
120
|
+
y: F,
|
|
121
121
|
seriesIndex: m,
|
|
122
122
|
category: a,
|
|
123
123
|
commonStrings: r
|
|
124
|
-
}), g = w(l,
|
|
124
|
+
}), g = w(l, F), S = {
|
|
125
125
|
...x,
|
|
126
|
-
id:
|
|
126
|
+
id: F,
|
|
127
127
|
name: g,
|
|
128
128
|
x: a
|
|
129
|
-
}, d = t.series.find((B) =>
|
|
129
|
+
}, d = t.series.find((B) => F === B.y);
|
|
130
130
|
d !== void 0 && (!t.colorMatch && "fillSymbol" in d && (S.fillSymbol = d.fillSymbol, y = !0), S.id = d.id, S.name = d.name), n.push(S);
|
|
131
131
|
}
|
|
132
132
|
return t.series.length === 1 && n.length === 1 && !t.colorMatch && "fillSymbol" in t.series[0] && (n[0].fillSymbol = t.series[0].fillSymbol, y = !0), t.colorMatch = !y, n;
|
|
@@ -141,7 +141,7 @@ function Pe(s, e, t) {
|
|
|
141
141
|
...n,
|
|
142
142
|
type: f.LineSeries,
|
|
143
143
|
lineSymbol: {
|
|
144
|
-
...
|
|
144
|
+
..._({ width: Q }),
|
|
145
145
|
...l !== void 0 ? { color: l.color } : {}
|
|
146
146
|
},
|
|
147
147
|
markerSymbol: {
|
|
@@ -184,7 +184,7 @@ function oe(s) {
|
|
|
184
184
|
)), i;
|
|
185
185
|
}
|
|
186
186
|
async function Ve(s) {
|
|
187
|
-
const { config: e, layerInfo: t, commonStrings: o, splitByField: i, numericFields: r, category: l } = s, { layer: n, layerFieldsInfo: a } = t, { fetchNullValues: y } = P(e)?.query ?? {}, c = l ?? L(e), { categoriesArray: m, splitByFieldType:
|
|
187
|
+
const { config: e, layerInfo: t, commonStrings: o, splitByField: i, numericFields: r, category: l } = s, { layer: n, layerFieldsInfo: a } = t, { fetchNullValues: y } = P(e)?.query ?? {}, c = l ?? L(e), { categoriesArray: m, splitByFieldType: F } = await fe({
|
|
188
188
|
config: e,
|
|
189
189
|
layer: n,
|
|
190
190
|
layerFieldsInfo: a,
|
|
@@ -213,30 +213,30 @@ async function Ve(s) {
|
|
|
213
213
|
seriesIndex: d,
|
|
214
214
|
category: c,
|
|
215
215
|
commonStrings: o
|
|
216
|
-
}, W = S ? Oe(v) : O(v), ne =
|
|
216
|
+
}, W = S ? Oe(v) : O(v), ne = G({
|
|
217
217
|
queryObject: t.layer,
|
|
218
218
|
fieldName: i,
|
|
219
219
|
fieldValue: B ?? ""
|
|
220
|
-
}), k = `${B}`,
|
|
220
|
+
}), k = `${B}`, A = {
|
|
221
221
|
...W,
|
|
222
222
|
id: k,
|
|
223
223
|
name: ne ?? k,
|
|
224
224
|
x: c === void 0 || c === "" ? C : c,
|
|
225
225
|
query: {
|
|
226
226
|
...W.query,
|
|
227
|
-
where: `${i}=${
|
|
227
|
+
where: `${i}=${F === Se.String && B !== null ? `'${B}'` : B}`
|
|
228
228
|
}
|
|
229
229
|
}, b = e.series.find((ae) => ie(ae) === k);
|
|
230
|
-
b !== void 0 && (e.colorMatch || (
|
|
230
|
+
b !== void 0 && (e.colorMatch || (A.type === f.BoxPlotSeries ? D(b) ? A.fillSymbol = b.fillSymbol : A.fillSymbol = {
|
|
231
231
|
...Y(),
|
|
232
232
|
color: b.lineSymbol?.color
|
|
233
|
-
} : D(b) ? (
|
|
234
|
-
...
|
|
233
|
+
} : D(b) ? (A.lineSymbol = {
|
|
234
|
+
..._({ width: Q }),
|
|
235
235
|
...b.fillSymbol !== void 0 ? { color: b.fillSymbol.color } : {}
|
|
236
|
-
},
|
|
236
|
+
}, A.markerSymbol = {
|
|
237
237
|
...J(),
|
|
238
238
|
...b.fillSymbol !== void 0 ? { color: b.fillSymbol.color } : {}
|
|
239
|
-
}) : (
|
|
239
|
+
}) : (A.lineSymbol = b.lineSymbol, A.markerSymbol = b.markerSymbol), g = !0), A.id = b.id, A.name = b.name), x.push(A);
|
|
240
240
|
}
|
|
241
241
|
if (x = oe({
|
|
242
242
|
formerSeries: e.series,
|
|
@@ -254,9 +254,9 @@ async function Ve(s) {
|
|
|
254
254
|
return x;
|
|
255
255
|
}
|
|
256
256
|
const rs = async (s) => {
|
|
257
|
-
const { splitByField: e, numericFields: t, category: o, config: i, layerInfo: r, commonStrings: l } = s, { layerFieldsInfo: n } = r, a = qe(o, t, e), y =
|
|
257
|
+
const { splitByField: e, numericFields: t, category: o, config: i, layerInfo: r, commonStrings: l } = s, { layerFieldsInfo: n } = r, a = qe(o, t, e), y = Fe(n), c = L(i), m = Te(i, r, l), F = H(i, r, l), x = ve({ config: i, layerInfo: r, newCategory: o });
|
|
258
258
|
let g = R(i);
|
|
259
|
-
if (!y.includes(c) && y.includes(o) ? g = ge() : y.includes(c) && !y.includes(o) && (g = xe()), g !== void 0 && ue(i, l, g),
|
|
259
|
+
if (!y.includes(c) && y.includes(o) ? g = ge() : y.includes(c) && !y.includes(o) && (g = xe()), g !== void 0 && ue(i, l, g), $(a ? { newShowMeanLines: i.showMean, config: i, commonStrings: l } : { newShowMeanLines: !1, config: i, commonStrings: l }), i.series = a ? await Ve({
|
|
260
260
|
config: i,
|
|
261
261
|
layerInfo: r,
|
|
262
262
|
splitByField: e,
|
|
@@ -277,7 +277,7 @@ const rs = async (s) => {
|
|
|
277
277
|
}) ? "" : w(n, o);
|
|
278
278
|
I(i, 0, d);
|
|
279
279
|
}
|
|
280
|
-
if (
|
|
280
|
+
if (F) {
|
|
281
281
|
const S = T(i, r, l);
|
|
282
282
|
I(i, 1, S);
|
|
283
283
|
}
|
|
@@ -308,14 +308,14 @@ function re(s, e, t) {
|
|
|
308
308
|
const ls = (s) => {
|
|
309
309
|
const { series: e, splitByField: t, layerInfo: o, commonStrings: i } = s;
|
|
310
310
|
let r = typeof e.y == "string" ? w(o.layerFieldsInfo, e.y) : i.axisLabels.values;
|
|
311
|
-
return ce(t) || (r = ie(e)), r =
|
|
311
|
+
return ce(t) || (r = ie(e)), r = G({
|
|
312
312
|
queryObject: o.layer,
|
|
313
313
|
fieldName: t,
|
|
314
314
|
fieldValue: r ?? ""
|
|
315
315
|
}) ?? r, r ?? e.id;
|
|
316
316
|
}, ns = (s) => s?.showOutliers ?? !1, as = (s) => {
|
|
317
317
|
const { newShowOutliers: e, config: t, layerInfo: o, commonStrings: i } = s;
|
|
318
|
-
if (t.showOutliers = e,
|
|
318
|
+
if (t.showOutliers = e, H(t, o, i)) {
|
|
319
319
|
const l = T(t, o, i);
|
|
320
320
|
I(t, 1, l);
|
|
321
321
|
}
|
|
@@ -379,11 +379,11 @@ const ls = (s) => {
|
|
|
379
379
|
orderBy: i
|
|
380
380
|
};
|
|
381
381
|
}
|
|
382
|
-
}, N = (s) => s.showMean ?? !1,
|
|
382
|
+
}, N = (s) => s.showMean ?? !1, $ = (s) => {
|
|
383
383
|
const { newShowMeanLines: e = !1, config: t, commonStrings: o, previousMeanLinesBoxColor: i } = s, r = e ? i : Be(t), l = (e ?? !1) !== (t.showMean ?? !1);
|
|
384
384
|
if (t.showMean = e, l) {
|
|
385
385
|
let n;
|
|
386
|
-
e ? n =
|
|
386
|
+
e ? n = Ae(t.series) ? Pe(t.series, o) : t.series : n = De(t.series), n && (n = oe({
|
|
387
387
|
formerSeries: t.series,
|
|
388
388
|
newSeries: n,
|
|
389
389
|
showMean: e
|
|
@@ -433,13 +433,13 @@ export {
|
|
|
433
433
|
fs as k,
|
|
434
434
|
ys as l,
|
|
435
435
|
us as m,
|
|
436
|
-
|
|
436
|
+
$ as n,
|
|
437
437
|
Be as o,
|
|
438
438
|
Ce as p,
|
|
439
439
|
qe as q,
|
|
440
440
|
rs as r,
|
|
441
441
|
Ne as s,
|
|
442
|
-
|
|
442
|
+
He as t,
|
|
443
443
|
es as u,
|
|
444
444
|
ss as v,
|
|
445
445
|
ts as w,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { log as d } from "@arcgis/toolkit/log";
|
|
3
|
-
import { u as
|
|
4
|
-
import { g as f,
|
|
3
|
+
import { u as O } from "./chart-object-literals.js";
|
|
4
|
+
import { g as f, A as P, C as D, an as T, aC as V, h as y, m, n as p } from "./index.js";
|
|
5
5
|
import { g as l } from "./index5.js";
|
|
6
6
|
import { C as N } from "./chart-model.js";
|
|
7
7
|
import { m as o } from "./model-setter.js";
|
|
@@ -23,7 +23,7 @@ var ve = Object.defineProperty, we = Object.getOwnPropertyDescriptor, n = (c, e,
|
|
|
23
23
|
};
|
|
24
24
|
class i extends N {
|
|
25
25
|
constructor() {
|
|
26
|
-
super(...arguments), this._chartType =
|
|
26
|
+
super(...arguments), this._chartType = O.BoxPlotSeries, this._category = f, this._splitByField = "", this._numericFields = [];
|
|
27
27
|
}
|
|
28
28
|
async setup(e) {
|
|
29
29
|
await this.loadConfigFromLayer(e), this.setupLocalProps(), e.config !== void 0 && await this.updateSeriesFromLayerFilter(), typeof this.resolveSetup == "function" && this.resolveSetup();
|
|
@@ -361,8 +361,8 @@ class i extends N {
|
|
|
361
361
|
break;
|
|
362
362
|
}
|
|
363
363
|
if (this.showMeanLines === !0 && l(h)) {
|
|
364
|
-
const I = this.getSeriesLineStyle(a),
|
|
365
|
-
if (I !== m ||
|
|
364
|
+
const I = this.getSeriesLineStyle(a), A = this.getSeriesLineWidth(a);
|
|
365
|
+
if (I !== m || A !== p) {
|
|
366
366
|
r = !0;
|
|
367
367
|
break;
|
|
368
368
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { f as j } from "./utils.js";
|
|
3
|
-
import { b as F, W, c as
|
|
3
|
+
import { b as F, W, c as L, d as I } from "./series-length.js";
|
|
4
4
|
import { m as a, C as n } from "./model-setter.js";
|
|
5
|
-
import {
|
|
5
|
+
import { F as p, T as c, J as f } from "./index.js";
|
|
6
6
|
import { E as z } from "./index3.js";
|
|
7
7
|
import { Y as N } from "./index2.js";
|
|
8
|
-
var R = Object.defineProperty,
|
|
9
|
-
for (var i =
|
|
8
|
+
var R = Object.defineProperty, M = Object.getOwnPropertyDescriptor, U = (e, t, r, l) => {
|
|
9
|
+
for (var i = M(t, r), s = e.length - 1, o; s >= 0; s--)
|
|
10
10
|
(o = e[s]) && (i = o(t, r, i) || i);
|
|
11
11
|
return i && R(t, r, i), i;
|
|
12
12
|
};
|
|
13
|
-
const
|
|
13
|
+
const B = (e) => e.title?.content, E = (e, t) => {
|
|
14
14
|
if (e) {
|
|
15
15
|
const r = F(t);
|
|
16
16
|
t.title === void 0 && (t.title = p({
|
|
@@ -26,17 +26,17 @@ class h extends n {
|
|
|
26
26
|
* The title text symbol. Contains styling information such as font, color, and symbol style.
|
|
27
27
|
*/
|
|
28
28
|
get titleSymbol() {
|
|
29
|
-
return
|
|
29
|
+
return B(this._config);
|
|
30
30
|
}
|
|
31
31
|
set titleSymbol(t) {
|
|
32
|
-
|
|
32
|
+
E(t, this._config);
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
|
|
35
|
+
U([
|
|
36
36
|
a
|
|
37
37
|
], h.prototype, "titleSymbol");
|
|
38
|
-
var q = Object.defineProperty,
|
|
39
|
-
for (var i =
|
|
38
|
+
var q = Object.defineProperty, J = Object.getOwnPropertyDescriptor, Y = (e, t, r, l) => {
|
|
39
|
+
for (var i = J(t, r), s = e.length - 1, o; s >= 0; s--)
|
|
40
40
|
(o = e[s]) && (i = o(t, r, i) || i);
|
|
41
41
|
return i && q(t, r, i), i;
|
|
42
42
|
};
|
|
@@ -51,10 +51,10 @@ class u extends n {
|
|
|
51
51
|
this._config = t;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
|
|
54
|
+
Y([
|
|
55
55
|
a
|
|
56
56
|
], u.prototype, "config");
|
|
57
|
-
class
|
|
57
|
+
class A extends n {
|
|
58
58
|
/**
|
|
59
59
|
* The chart model's layer.
|
|
60
60
|
*/
|
|
@@ -62,7 +62,7 @@ class G extends n {
|
|
|
62
62
|
return this.layerInfo?.layer;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
const
|
|
65
|
+
const G = (e) => e.id, H = (e, t) => {
|
|
66
66
|
t.id = e;
|
|
67
67
|
};
|
|
68
68
|
class K extends n {
|
|
@@ -70,10 +70,10 @@ class K extends n {
|
|
|
70
70
|
* The chart ID.
|
|
71
71
|
*/
|
|
72
72
|
get chartId() {
|
|
73
|
-
return
|
|
73
|
+
return G(this._config);
|
|
74
74
|
}
|
|
75
75
|
set chartId(t) {
|
|
76
|
-
|
|
76
|
+
H(t, this._config);
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
const Q = (e) => e.version;
|
|
@@ -283,7 +283,7 @@ var wt = Object.defineProperty, jt = Object.getOwnPropertyDescriptor, Ft = (e, t
|
|
|
283
283
|
(o = e[s]) && (i = o(t, r, i) || i);
|
|
284
284
|
return i && wt(t, r, i), i;
|
|
285
285
|
};
|
|
286
|
-
const Wt = (e) => e.chartRenderer,
|
|
286
|
+
const Wt = (e) => e.chartRenderer, Lt = (e, t) => {
|
|
287
287
|
t.chartRenderer = e;
|
|
288
288
|
};
|
|
289
289
|
class x extends n {
|
|
@@ -336,18 +336,18 @@ class x extends n {
|
|
|
336
336
|
return Wt(this._config);
|
|
337
337
|
}
|
|
338
338
|
set chartRenderer(t) {
|
|
339
|
-
|
|
339
|
+
Lt(t, this._config);
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
Ft([
|
|
343
343
|
a
|
|
344
344
|
], x.prototype, "chartRenderer");
|
|
345
|
-
var
|
|
345
|
+
var It = Object.defineProperty, zt = Object.getOwnPropertyDescriptor, Nt = (e, t, r, l) => {
|
|
346
346
|
for (var i = zt(t, r), s = e.length - 1, o; s >= 0; s--)
|
|
347
347
|
(o = e[s]) && (i = o(t, r, i) || i);
|
|
348
|
-
return i &&
|
|
348
|
+
return i && It(t, r, i), i;
|
|
349
349
|
};
|
|
350
|
-
const Rt = (e) => e.background,
|
|
350
|
+
const Rt = (e) => e.background, Mt = (e, t) => {
|
|
351
351
|
t.background = e;
|
|
352
352
|
};
|
|
353
353
|
class T extends n {
|
|
@@ -358,18 +358,18 @@ class T extends n {
|
|
|
358
358
|
return Rt(this._config);
|
|
359
359
|
}
|
|
360
360
|
set backgroundColor(t) {
|
|
361
|
-
|
|
361
|
+
Mt(t, this._config);
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
364
|
Nt([
|
|
365
365
|
a
|
|
366
366
|
], T.prototype, "backgroundColor");
|
|
367
|
-
var
|
|
368
|
-
for (var i =
|
|
367
|
+
var Ut = Object.defineProperty, Bt = Object.getOwnPropertyDescriptor, Et = (e, t, r, l) => {
|
|
368
|
+
for (var i = Bt(t, r), s = e.length - 1, o; s >= 0; s--)
|
|
369
369
|
(o = e[s]) && (i = o(t, r, i) || i);
|
|
370
|
-
return i &&
|
|
370
|
+
return i && Ut(t, r, i), i;
|
|
371
371
|
};
|
|
372
|
-
const qt = (e, t) => t.series[e].visible ?? !0,
|
|
372
|
+
const qt = (e, t) => t.series[e].visible ?? !0, Jt = (e, t) => {
|
|
373
373
|
z({ detail: e }, t);
|
|
374
374
|
};
|
|
375
375
|
class C extends n {
|
|
@@ -382,14 +382,14 @@ class C extends n {
|
|
|
382
382
|
return qt(t, this._config);
|
|
383
383
|
}
|
|
384
384
|
setSeriesVisibility(t) {
|
|
385
|
-
|
|
385
|
+
Jt(t, this._config);
|
|
386
386
|
}
|
|
387
387
|
}
|
|
388
|
-
|
|
388
|
+
Et([
|
|
389
389
|
a
|
|
390
390
|
], C.prototype, "setSeriesVisibility");
|
|
391
|
-
const
|
|
392
|
-
class
|
|
391
|
+
const Yt = (e, t) => t.series[e]?.id;
|
|
392
|
+
class At extends n {
|
|
393
393
|
/**
|
|
394
394
|
* Gets the series ID for a given series index.
|
|
395
395
|
* If the series index is out of bounds, this function will return `undefined`.
|
|
@@ -397,11 +397,11 @@ class Gt extends n {
|
|
|
397
397
|
* @param seriesIndex - The index of the series.
|
|
398
398
|
*/
|
|
399
399
|
getSeriesId(t) {
|
|
400
|
-
return
|
|
400
|
+
return Yt(t, this._config);
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
|
-
const
|
|
404
|
-
class
|
|
403
|
+
const Gt = (e, t) => t.series.findIndex((r) => r.id === e);
|
|
404
|
+
class Ht extends n {
|
|
405
405
|
/**
|
|
406
406
|
* Gets the series index for a given series ID.
|
|
407
407
|
* If the series ID is not found, this function will return `undefined`.
|
|
@@ -409,7 +409,7 @@ class Jt extends n {
|
|
|
409
409
|
* @param seriesId - The ID of the series.
|
|
410
410
|
*/
|
|
411
411
|
getSeriesIndex(t) {
|
|
412
|
-
return
|
|
412
|
+
return Gt(t, this._config);
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
415
|
const Kt = (e) => N(e.series);
|
|
@@ -536,7 +536,7 @@ class ve extends n {
|
|
|
536
536
|
}
|
|
537
537
|
const ge = [
|
|
538
538
|
u,
|
|
539
|
-
|
|
539
|
+
A,
|
|
540
540
|
K,
|
|
541
541
|
W,
|
|
542
542
|
h,
|
|
@@ -551,14 +551,14 @@ const ge = [
|
|
|
551
551
|
x,
|
|
552
552
|
T,
|
|
553
553
|
C,
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
554
|
+
At,
|
|
555
|
+
Ht,
|
|
556
|
+
L,
|
|
557
557
|
Qt,
|
|
558
558
|
$,
|
|
559
559
|
V,
|
|
560
560
|
m,
|
|
561
|
-
|
|
561
|
+
I,
|
|
562
562
|
w
|
|
563
563
|
];
|
|
564
564
|
j(ve, ge);
|
|
@@ -4,11 +4,11 @@ import { createClassBreaksRenderer as q } from "@arcgis/core/smartMapping/render
|
|
|
4
4
|
import { a3 as G, bW as _ } from "./index2.js";
|
|
5
5
|
import { cloneDeep as J, memoize as Y, isEqual as T, sortBy as Q, flatMap as U } from "lodash-es";
|
|
6
6
|
import { getSchemes as X } from "@arcgis/core/smartMapping/symbology/color.js";
|
|
7
|
-
import {
|
|
7
|
+
import { k as L } from "./index.js";
|
|
8
8
|
import { i as k, f as b, g as C, R as F } from "./rest-js-object-literals.js";
|
|
9
9
|
import * as Z from "@arcgis/core/smartMapping/symbology/support/colorRamps.js";
|
|
10
10
|
import { u as ee } from "./chart-object-literals.js";
|
|
11
|
-
function
|
|
11
|
+
function z(e) {
|
|
12
12
|
let o;
|
|
13
13
|
switch (e.length) {
|
|
14
14
|
case 4: {
|
|
@@ -57,7 +57,7 @@ function j(e) {
|
|
|
57
57
|
function x(e) {
|
|
58
58
|
let o;
|
|
59
59
|
if (typeof e == "string" && e.startsWith("#")) {
|
|
60
|
-
const t =
|
|
60
|
+
const t = z(e);
|
|
61
61
|
t && (o = t);
|
|
62
62
|
} else Array.isArray(e) && e.every((t) => typeof t == "number") && (e.length === 4 ? o = e : e.length === 3 && (o = [...e, 255]));
|
|
63
63
|
return o;
|
|
@@ -104,7 +104,7 @@ function te(e) {
|
|
|
104
104
|
}
|
|
105
105
|
})), n;
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function j(e) {
|
|
108
108
|
const { numericFields: o, configFields: t, inlineData: s } = e, c = s;
|
|
109
109
|
return "dataItems" in s && Object.entries(t).forEach(([n, r]) => {
|
|
110
110
|
o.forEach((a) => {
|
|
@@ -164,7 +164,7 @@ async function se(e) {
|
|
|
164
164
|
numericFields: s,
|
|
165
165
|
configFields: c,
|
|
166
166
|
inlineData: i
|
|
167
|
-
}), i =
|
|
167
|
+
}), i = j({
|
|
168
168
|
numericFields: s,
|
|
169
169
|
configFields: c,
|
|
170
170
|
inlineData: i
|
|
@@ -178,9 +178,9 @@ async function se(e) {
|
|
|
178
178
|
return l && (a = await G(l)), { chartRenderer: r, iLayer: l, layer: a };
|
|
179
179
|
}
|
|
180
180
|
const $e = {
|
|
181
|
-
hexToRGB:
|
|
181
|
+
hexToRGB: z,
|
|
182
182
|
convertColor: x,
|
|
183
|
-
removeConfigFieldsFromData:
|
|
183
|
+
removeConfigFieldsFromData: j
|
|
184
184
|
}, w = Z.all(), re = X({ geometryType: "point", theme: "high-to-low" });
|
|
185
185
|
function W(e, o, t) {
|
|
186
186
|
const s = Math.max(0, Math.min(1, t));
|