@arcgis/charts-components 5.2.0-next.60 → 5.2.0-next.62
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/{BXBY6D2F.js → 3IUZSUBJ.js} +1 -1
- package/dist/cdn/{DPTA2AET.js → 4DXQ255M.js} +1 -1
- package/dist/cdn/{67QYTLMM.js → 4F2MTKVF.js} +1 -1
- package/dist/cdn/4HNA5BEL.js +2 -0
- package/dist/cdn/{PLEC3GNT.js → 4II4V3R4.js} +1 -1
- package/dist/cdn/{ZWIF7LHW.js → 4SV3ARJE.js} +1 -1
- package/dist/cdn/{WTJ2NJ76.js → 5K4LYQAP.js} +1 -1
- package/dist/cdn/{2RYKKN36.js → 65QZ37RL.js} +1 -1
- package/dist/cdn/{O3VKOV2W.js → 6T37GQMM.js} +1 -1
- package/dist/cdn/{4COV22K4.js → 6ZJ4DH7D.js} +1 -1
- package/dist/cdn/{LGTXQIF7.js → 7H7MFSEY.js} +1 -1
- package/dist/cdn/{3YCGBAQY.js → 7JW7BKCY.js} +1 -1
- package/dist/cdn/{GARBFC7Q.js → 7Q5SYLKV.js} +1 -1
- package/dist/cdn/{BLZLMGO6.js → AJAOQCPS.js} +1 -1
- package/dist/cdn/{3AYXOX4U.js → AMM6O6DA.js} +1 -1
- package/dist/cdn/{JBFVGQSP.js → BIABAOQA.js} +1 -1
- package/dist/cdn/{Y5ZH7VS4.js → BP3IZMZQ.js} +1 -1
- package/dist/cdn/{WFW6BNDT.js → CNIDLTWS.js} +1 -1
- package/dist/cdn/{DGV6S2W3.js → CUW7EDSM.js} +1 -1
- package/dist/cdn/{QZCTLQBM.js → D5IKYXWS.js} +1 -1
- package/dist/cdn/DA4QOTYN.js +2 -0
- package/dist/cdn/{XM2GVJT3.js → DQXO7PWX.js} +1 -1
- package/dist/cdn/{6MNV7FJC.js → DT4C4JZW.js} +1 -1
- package/dist/cdn/{SYVPFDIW.js → EEF2GZWF.js} +1 -1
- package/dist/cdn/ELRXL4GL.js +2 -0
- package/dist/cdn/{6DOANSRL.js → FLA3PJ5I.js} +18 -18
- package/dist/cdn/{EUOJG5H6.js → FZOZWZSG.js} +1 -1
- package/dist/cdn/{AYUYEY5H.js → G3I2WY7S.js} +1 -1
- package/dist/cdn/{MJTWR33N.js → GK3ESMF2.js} +1 -1
- package/dist/cdn/{I3XBTQKJ.js → GQKDPSP6.js} +1 -1
- package/dist/cdn/{Z3LGGHZN.js → GRIVRWCF.js} +1 -1
- package/dist/cdn/{OWWQ5SYW.js → HHZSG3K6.js} +1 -1
- package/dist/cdn/{ZGBULDPL.js → IB5R6XBE.js} +1 -1
- package/dist/cdn/{EOHKNJSJ.js → INSAYWFB.js} +1 -1
- package/dist/cdn/{ZLXYBOM3.js → IP7NR32G.js} +1 -1
- package/dist/cdn/IPMFDZBI.js +2 -0
- package/dist/cdn/{JGESKW6S.js → JBO56HPJ.js} +1 -1
- package/dist/cdn/{RICA7GJM.js → JE4ZLQEX.js} +1 -1
- package/dist/cdn/JT2CHRVO.js +2 -0
- package/dist/cdn/JYS5HVHP.js +2 -0
- package/dist/cdn/{HOIPLQXD.js → KBMGQ3H6.js} +1 -1
- package/dist/cdn/{EAV3KAS7.js → KO6XLCKT.js} +1 -1
- package/dist/cdn/LK7Y2TPS.js +2 -0
- package/dist/cdn/{5YP7P6S3.js → LNMXGS7N.js} +1 -1
- package/dist/cdn/{HUNN3ERX.js → LYLK7H23.js} +1 -1
- package/dist/cdn/{2G65P262.js → MIL4ALAU.js} +1 -1
- package/dist/cdn/{NK66D65H.js → MIMPZBTK.js} +1 -1
- package/dist/cdn/{EMBMJCFZ.js → MN5LEOFQ.js} +1 -1
- package/dist/cdn/{5EYVH3PA.js → MRA3XRKD.js} +1 -1
- package/dist/cdn/{MXE4VPZS.js → MYAMCWA2.js} +1 -1
- package/dist/cdn/{TEWEPSIO.js → N2BF3AIP.js} +1 -1
- package/dist/cdn/{SUNHJPBW.js → NQYCZQ27.js} +1 -1
- package/dist/cdn/{UM7RIOCE.js → NSS4WWO7.js} +1 -1
- package/dist/cdn/{Y2WHHAAA.js → P7VFYZRI.js} +1 -1
- package/dist/cdn/{T62EETHJ.js → PZFM3BRK.js} +1 -1
- package/dist/cdn/PZUVU7CC.js +3 -0
- package/dist/cdn/{SQIKFO32.js → Q376XO5C.js} +1 -1
- package/dist/cdn/{VA6KJZ2Y.js → QGKWF4LR.js} +1 -1
- package/dist/cdn/QS6QHTAG.js +2 -0
- package/dist/cdn/{A36KQ6YP.js → QSFEGKYQ.js} +1 -1
- package/dist/cdn/{M744CFJ2.js → QXN2LIUA.js} +1 -1
- package/dist/cdn/{QTSF2LK7.js → R7VPFCG2.js} +1 -1
- package/dist/cdn/{BKK57XHL.js → S3YPXZ3Y.js} +1 -1
- package/dist/cdn/{J3CL6KB6.js → S7B57I24.js} +1 -1
- package/dist/cdn/{ANHW36VW.js → SSYHOPL2.js} +1 -1
- package/dist/cdn/{DBAM7MH7.js → SYU55EDE.js} +1 -1
- package/dist/cdn/{BHGOAHMJ.js → TGABTYRZ.js} +1 -1
- package/dist/cdn/{WZOHQJFB.js → TGXTKIAA.js} +1 -1
- package/dist/cdn/{JS6A5QAV.js → TRXKI7AQ.js} +1 -1
- package/dist/cdn/{KDCZQ6UT.js → V2POH2WS.js} +1 -1
- package/dist/cdn/{ISK4QVLY.js → VZPJL27P.js} +1 -1
- package/dist/cdn/WOE4UHYG.js +2 -0
- package/dist/cdn/WUUBA4AY.js +2 -0
- package/dist/cdn/{P5QEJOJS.js → X3B7R2CE.js} +1 -1
- package/dist/cdn/{JYITKARU.js → X4RUTR6U.js} +1 -1
- package/dist/cdn/{5MPXETTU.js → X7BEP5KL.js} +1 -1
- package/dist/cdn/{INISFVAK.js → XM6OTYSW.js} +1 -1
- package/dist/cdn/XS5G7ML2.js +2 -0
- package/dist/cdn/{KWA7OWHO.js → YN4QD76O.js} +1 -1
- package/dist/cdn/YQJBJRP7.js +2 -0
- package/dist/cdn/{L7TUV2MY.js → YWJTHRQP.js} +1 -1
- package/dist/cdn/{7DIQIFKR.js → ZOZ72K4S.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/bar-chart-model.js +10 -10
- package/dist/chunks/box-plot-data.js +271 -279
- package/dist/chunks/box-plot-model.js +161 -146
- package/dist/chunks/chart-model.js +1 -1
- package/dist/chunks/class-breaks.js +66 -66
- package/dist/chunks/combo-bar-line-chart-model.js +12 -12
- package/dist/chunks/data.js +1 -1
- package/dist/chunks/gauge-model.js +1 -1
- package/dist/chunks/heat-chart-model.js +25 -25
- package/dist/chunks/histogram-model.js +1 -1
- package/dist/chunks/index2.js +2026 -2088
- package/dist/chunks/index4.js +1 -1
- package/dist/chunks/line-chart-model.js +11 -11
- package/dist/chunks/model-with-x-guides.js +5 -5
- package/dist/chunks/model-with-y-guides.js +33 -48
- package/dist/chunks/pie-chart-data.js +165 -189
- package/dist/chunks/pie-chart-model.js +9 -9
- package/dist/chunks/radar-chart-model.js +7 -7
- package/dist/chunks/scatterplot-model.js +1 -1
- package/dist/chunks/serial-chart-data.js +745 -770
- package/dist/chunks/serial-chart-model.js +19 -11
- package/dist/chunks/utils.js +36 -38
- package/dist/chunks/web-component-utils.js +38 -38
- package/dist/chunks/x-bounds.js +1 -1
- package/dist/components/arcgis-chart/customElement.d.ts +53 -11
- package/dist/components/arcgis-chart/customElement.js +2226 -2210
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +67 -68
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +5 -5
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +171 -172
- package/dist/model/box-plot-model/box-plot-model.d.ts +7 -1
- package/dist/model/heat-chart-model/heat-chart-model.d.ts +20 -0
- package/dist/model/mixins/model-with-multi-axes.d.ts +61 -98
- package/dist/model/serial-chart-model/serial-chart-model.d.ts +12 -1
- package/dist/utils/chart-config/converter/index.js +26 -26
- package/dist/utils/data/categorical-data/index.d.ts +1 -1
- package/dist/utils/data/index.d.ts +1 -2
- package/dist/utils/layer/query-features/index.d.ts +2 -18
- package/dist/utils/layer/query-parser/index.d.ts +1 -2
- package/package.json +3 -3
- package/dist/cdn/3UHXOKCR.js +0 -2
- package/dist/cdn/54W4C75M.js +0 -2
- package/dist/cdn/6PIQ2O5S.js +0 -2
- package/dist/cdn/7CMQGTU6.js +0 -2
- package/dist/cdn/EBSQRCQQ.js +0 -2
- package/dist/cdn/EDVN42ME.js +0 -2
- package/dist/cdn/H2EMIJME.js +0 -2
- package/dist/cdn/JEVWE6ER.js +0 -2
- package/dist/cdn/O3DJD5IR.js +0 -2
- package/dist/cdn/V5W5LNFT.js +0 -2
- package/dist/cdn/V6LKZUEZ.js +0 -3
- package/dist/cdn/XKZ44LA2.js +0 -2
- package/dist/cdn/YVSZN6IH.js +0 -2
|
@@ -1,32 +1,32 @@
|
|
|
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, C as
|
|
5
|
-
import { bs as l } from "./index2.js";
|
|
6
|
-
import { C as
|
|
7
|
-
import { m as
|
|
8
|
-
import { B as
|
|
9
|
-
import { M as
|
|
10
|
-
import { M as
|
|
11
|
-
import { W as
|
|
12
|
-
import { W as
|
|
13
|
-
import { W as
|
|
14
|
-
import { W as
|
|
15
|
-
import { W as
|
|
16
|
-
import { g as
|
|
17
|
-
import {
|
|
18
|
-
import { s as
|
|
19
|
-
var ve = Object.defineProperty,
|
|
20
|
-
for (var
|
|
21
|
-
(h = c[a]) && (
|
|
22
|
-
return
|
|
3
|
+
import { u as P } from "./chart-object-literals.js";
|
|
4
|
+
import { g as f, C as D, E as A, ap as V, aF as T, h as y, m as p, n as m } from "./index.js";
|
|
5
|
+
import { aH as E, bs as l } from "./index2.js";
|
|
6
|
+
import { C as N } from "./chart-model.js";
|
|
7
|
+
import { m as r } from "./model-setter.js";
|
|
8
|
+
import { B as R } from "./common.js";
|
|
9
|
+
import { M as z, a as U, W as X, b as j } from "./data-labels-visibility.js";
|
|
10
|
+
import { M as k, a as K } from "./model-with-y-guides.js";
|
|
11
|
+
import { W as Y, c as q, d as G } from "./axis-lines-symbol.js";
|
|
12
|
+
import { W as H, c as J, d as Q } from "./generate-x-axis-title.js";
|
|
13
|
+
import { W as Z, a as $ } from "./x-bounds.js";
|
|
14
|
+
import { W as ee } from "./data-labels-symbol.js";
|
|
15
|
+
import { W as te } from "./rotated-state.js";
|
|
16
|
+
import { g as ie, s as u, b as se, a as S } from "./series.js";
|
|
17
|
+
import { j as oe, h as re, k as ne, f as ae } from "./utils.js";
|
|
18
|
+
import { s as le, d as he, e as ce, f as ge, h as de, i as _, j as L, k as B, l as C, m as F, g as fe, n as ye, o as pe, p as M, a as me, c as ue, b as Se, q as _e, r as x, t as Le, u as Be, v as I, w as Ce, x as b, y as Fe, z as Me, A as xe, B as Ie, C as be, D as we, E as w } from "./box-plot-data.js";
|
|
19
|
+
var ve = Object.defineProperty, We = Object.getOwnPropertyDescriptor, n = (c, e, t, i) => {
|
|
20
|
+
for (var o = We(e, t), a = c.length - 1, h; a >= 0; a--)
|
|
21
|
+
(h = c[a]) && (o = h(e, t, o) || o);
|
|
22
|
+
return o && ve(e, t, o), o;
|
|
23
23
|
};
|
|
24
|
-
class
|
|
24
|
+
class s extends N {
|
|
25
25
|
constructor() {
|
|
26
|
-
super(...arguments), this._chartType =
|
|
26
|
+
super(...arguments), this._chartType = P.BoxPlotSeries, this._category = f, this._splitByField = "", this._numericFields = [];
|
|
27
27
|
}
|
|
28
28
|
async setup(e) {
|
|
29
|
-
await this.loadConfigFromLayer(e), this.setupLocalProps(), e.config !== void 0 && await this.
|
|
29
|
+
await this.loadConfigFromLayer(e), this.setupLocalProps(), e.config !== void 0 && await this.rebuildSeries(), typeof this.resolveSetup == "function" && this.resolveSetup();
|
|
30
30
|
}
|
|
31
31
|
// ---------------------------------------------------------------------------------------------
|
|
32
32
|
// #region Data Props
|
|
@@ -39,7 +39,7 @@ class i extends E {
|
|
|
39
39
|
}
|
|
40
40
|
set category(e) {
|
|
41
41
|
const t = e.trim() === "";
|
|
42
|
-
this._category = t ? f : e, this.
|
|
42
|
+
this._category = t ? f : e, this.processSeriesRebuild("category");
|
|
43
43
|
}
|
|
44
44
|
/**
|
|
45
45
|
* The numeric fields array for the box plot.
|
|
@@ -49,7 +49,7 @@ class i extends E {
|
|
|
49
49
|
}
|
|
50
50
|
set numericFields(e) {
|
|
51
51
|
const { layerFieldsInfo: t } = this.layerInfo;
|
|
52
|
-
typeof e == "string" && (e = [e]),
|
|
52
|
+
typeof e == "string" && (e = [e]), oe(t, e) ? (this._numericFields = e, le(this._category, this._numericFields) && (this._splitByField = ""), this.processSeriesRebuild("numericFields")) : d("error", "box-plot-model", "Invalid `numericFields`");
|
|
53
53
|
}
|
|
54
54
|
/**
|
|
55
55
|
* The split-by field for the box plot.
|
|
@@ -58,16 +58,16 @@ class i extends E {
|
|
|
58
58
|
return this._splitByField;
|
|
59
59
|
}
|
|
60
60
|
set splitByField(e) {
|
|
61
|
-
re(this.layerInfo.layerFieldsInfo, e) ? (this._splitByField = e, this.
|
|
61
|
+
re(this.layerInfo.layerFieldsInfo, e) ? (this._splitByField = e, this.processSeriesRebuild("splitByField")) : d("error", "box-plot-model", "Invalid `splitByField`");
|
|
62
62
|
}
|
|
63
63
|
/**
|
|
64
64
|
* Whether outliers are shown.
|
|
65
65
|
*/
|
|
66
66
|
get showOutliers() {
|
|
67
|
-
return
|
|
67
|
+
return he(this._config);
|
|
68
68
|
}
|
|
69
69
|
set showOutliers(e) {
|
|
70
|
-
|
|
70
|
+
ce({
|
|
71
71
|
newShowOutliers: e,
|
|
72
72
|
config: this._config,
|
|
73
73
|
layerInfo: this.layerInfo,
|
|
@@ -78,10 +78,10 @@ class i extends E {
|
|
|
78
78
|
* Whether values are standardized as z-scores.
|
|
79
79
|
*/
|
|
80
80
|
get standardizeValues() {
|
|
81
|
-
return
|
|
81
|
+
return ge(this._config);
|
|
82
82
|
}
|
|
83
83
|
set standardizeValues(e) {
|
|
84
|
-
|
|
84
|
+
de({
|
|
85
85
|
newStandardizeValues: e,
|
|
86
86
|
config: this._config,
|
|
87
87
|
layerInfo: this.layerInfo,
|
|
@@ -92,16 +92,16 @@ class i extends E {
|
|
|
92
92
|
* Gets the sort order of the box plot data.
|
|
93
93
|
*/
|
|
94
94
|
getSortOrder() {
|
|
95
|
-
return
|
|
95
|
+
return _(this._config);
|
|
96
96
|
}
|
|
97
97
|
setSortOrder(e, t) {
|
|
98
|
-
|
|
98
|
+
L(e, this._config, t);
|
|
99
99
|
}
|
|
100
100
|
/**
|
|
101
101
|
* Gets the list of the category values for the chart.
|
|
102
102
|
*/
|
|
103
103
|
async getCustomSortValues() {
|
|
104
|
-
return await
|
|
104
|
+
return await B({
|
|
105
105
|
config: this._config,
|
|
106
106
|
layerInfo: this.layerInfo,
|
|
107
107
|
errorStrings: this.commonStrings.errorStrings
|
|
@@ -109,15 +109,15 @@ class i extends E {
|
|
|
109
109
|
}
|
|
110
110
|
async setDataFilters(e) {
|
|
111
111
|
super.setDataFilters(e);
|
|
112
|
-
const t =
|
|
113
|
-
if (t ===
|
|
112
|
+
const t = _(this._config);
|
|
113
|
+
if (t === R.customSort) {
|
|
114
114
|
this.startAsyncUpdate();
|
|
115
|
-
const
|
|
115
|
+
const i = await B({
|
|
116
116
|
config: this._config,
|
|
117
117
|
layerInfo: this.layerInfo,
|
|
118
118
|
errorStrings: this.commonStrings.errorStrings
|
|
119
119
|
});
|
|
120
|
-
|
|
120
|
+
L(t, this._config, i), this.finishAsyncUpdate();
|
|
121
121
|
}
|
|
122
122
|
this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"));
|
|
123
123
|
}
|
|
@@ -125,16 +125,24 @@ class i extends E {
|
|
|
125
125
|
* The list of category values for custom sort.
|
|
126
126
|
*/
|
|
127
127
|
get orderByList() {
|
|
128
|
-
return
|
|
128
|
+
return C(this._config);
|
|
129
129
|
}
|
|
130
130
|
set orderByList(e) {
|
|
131
|
-
|
|
131
|
+
F(e, this._config);
|
|
132
132
|
}
|
|
133
133
|
/**
|
|
134
134
|
* Updates the series based on the layer filter.
|
|
135
|
+
*
|
|
136
|
+
* @deprecated since 5.2. Use {@link model/box-plot-model/box-plot-model#rebuildSeries rebuildSeries} instead.
|
|
135
137
|
*/
|
|
136
138
|
async updateSeriesFromLayerFilter() {
|
|
137
|
-
this.
|
|
139
|
+
await this.processSeriesRebuild("updateSeriesFromLayerFilter");
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Rebuilds the series based on the current configuration.
|
|
143
|
+
*/
|
|
144
|
+
async rebuildSeries() {
|
|
145
|
+
await this.processSeriesRebuild("rebuildSeries");
|
|
138
146
|
}
|
|
139
147
|
// ---------------------------------------------------------------------------------------------
|
|
140
148
|
// #region Series Props
|
|
@@ -143,10 +151,10 @@ class i extends E {
|
|
|
143
151
|
* Whether mean lines are shown.
|
|
144
152
|
*/
|
|
145
153
|
get showMeanLines() {
|
|
146
|
-
return
|
|
154
|
+
return fe(this._config);
|
|
147
155
|
}
|
|
148
156
|
set showMeanLines(e) {
|
|
149
|
-
const { previousMeanLinesBoxColor: t } =
|
|
157
|
+
const { previousMeanLinesBoxColor: t } = ye({
|
|
150
158
|
newShowMeanLines: e,
|
|
151
159
|
config: this._config,
|
|
152
160
|
commonStrings: this.commonStrings,
|
|
@@ -160,10 +168,10 @@ class i extends E {
|
|
|
160
168
|
* Only applicable when mean lines are shown.
|
|
161
169
|
*/
|
|
162
170
|
get meanLinesBoxColor() {
|
|
163
|
-
return
|
|
171
|
+
return pe(this._config);
|
|
164
172
|
}
|
|
165
173
|
set meanLinesBoxColor(e) {
|
|
166
|
-
|
|
174
|
+
M(e, this._config);
|
|
167
175
|
}
|
|
168
176
|
// ---------------------------------------------------------------------------------------------
|
|
169
177
|
// #region Protected Methods
|
|
@@ -173,45 +181,51 @@ class i extends E {
|
|
|
173
181
|
* @private
|
|
174
182
|
*/
|
|
175
183
|
setupLocalProps() {
|
|
176
|
-
this._category =
|
|
184
|
+
this._category = me(this._config), this._splitByField = ue(this._config), this._numericFields = Se(this._config);
|
|
177
185
|
}
|
|
178
186
|
/** @private */
|
|
179
187
|
generateDefaultConfig() {
|
|
180
|
-
const e =
|
|
181
|
-
return e.series = [
|
|
188
|
+
const e = D(this.commonStrings);
|
|
189
|
+
return e.series = [A(this.commonStrings)], e;
|
|
182
190
|
}
|
|
183
191
|
resetConfig() {
|
|
184
192
|
const e = this._config.id;
|
|
185
193
|
this._config = this.generateDefaultConfig(), this._config.id = e, this.setupLocalProps(), this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"));
|
|
186
194
|
}
|
|
187
195
|
/**
|
|
188
|
-
* Determines if we
|
|
189
|
-
*
|
|
190
|
-
* - there is
|
|
191
|
-
* - there are multiple numeric fields
|
|
196
|
+
* Determines if we are using the split-by field, based on the following conditions:
|
|
197
|
+
*
|
|
198
|
+
* - there is split-by field
|
|
199
|
+
* - and, there are not multiple numeric fields
|
|
192
200
|
*
|
|
193
201
|
* @private
|
|
194
202
|
*/
|
|
195
|
-
|
|
196
|
-
return
|
|
203
|
+
usingSplitBy() {
|
|
204
|
+
return _e(this.category, this.numericFields, this.splitByField);
|
|
197
205
|
}
|
|
198
206
|
/**
|
|
199
207
|
* Processes the series rebuild.
|
|
200
|
-
*
|
|
208
|
+
*
|
|
201
209
|
* @private
|
|
202
210
|
*/
|
|
203
|
-
async processSeriesRebuild() {
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
211
|
+
async processSeriesRebuild(e) {
|
|
212
|
+
this.usingSplitBy() ? (this.startAsyncUpdate(), await this.fetchSplitByFieldInfos(), x(this.getBuildNewSeriesProps()), this.finishAsyncUpdate()) : x(this.getBuildNewSeriesProps()), this.setupLocalProps(), this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")), this.emitConfigUpdate(e);
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* Fetches the split-by field information and stores it in a private member for use in building the series.
|
|
216
|
+
*/
|
|
217
|
+
async fetchSplitByFieldInfos() {
|
|
218
|
+
const { fetchNullValues: e } = E(this._config)?.query ?? {};
|
|
219
|
+
return this.splitByFieldInfos = await ne({
|
|
220
|
+
config: this._config,
|
|
221
|
+
layer: this.layerInfo.layer,
|
|
222
|
+
layerFieldsInfo: this.layerInfo.layerFieldsInfo,
|
|
223
|
+
xAxisField: Le(this._category) ? void 0 : this._category,
|
|
224
|
+
aggregationFields: this.numericFields,
|
|
225
|
+
splitByField: this._splitByField,
|
|
226
|
+
fetchNullValues: e,
|
|
227
|
+
errorStrings: this.commonStrings?.errorStrings
|
|
228
|
+
}), this.splitByFieldInfos;
|
|
215
229
|
}
|
|
216
230
|
//#endregion
|
|
217
231
|
// #region Private Methods
|
|
@@ -225,7 +239,8 @@ class i extends E {
|
|
|
225
239
|
numericFields: this.numericFields,
|
|
226
240
|
config: this._config,
|
|
227
241
|
layerInfo: this.layerInfo,
|
|
228
|
-
commonStrings: this.commonStrings
|
|
242
|
+
commonStrings: this.commonStrings,
|
|
243
|
+
splitByFieldInfos: this.splitByFieldInfos
|
|
229
244
|
};
|
|
230
245
|
}
|
|
231
246
|
// #endregion
|
|
@@ -238,10 +253,10 @@ class i extends E {
|
|
|
238
253
|
* @param seriesIndex - The index of the series.
|
|
239
254
|
*/
|
|
240
255
|
getSeriesName(e) {
|
|
241
|
-
return
|
|
256
|
+
return Be(e, this._config);
|
|
242
257
|
}
|
|
243
258
|
setSeriesName(e, t) {
|
|
244
|
-
|
|
259
|
+
I(e, t, this._config);
|
|
245
260
|
}
|
|
246
261
|
/**
|
|
247
262
|
* Gets the color of the series based on the series index. If the index is out of bounds, it will return `undefined`.
|
|
@@ -249,10 +264,10 @@ class i extends E {
|
|
|
249
264
|
* @param seriesIndex - The index of the series.
|
|
250
265
|
*/
|
|
251
266
|
getSeriesColor(e) {
|
|
252
|
-
return
|
|
267
|
+
return Ce(e, this._config);
|
|
253
268
|
}
|
|
254
269
|
setSeriesColor(e, t) {
|
|
255
|
-
|
|
270
|
+
b(e, t, this._config);
|
|
256
271
|
}
|
|
257
272
|
/**
|
|
258
273
|
* Gets the line style of the series based on the series index. If the index is out of bounds, it will return `undefined`.
|
|
@@ -264,11 +279,11 @@ class i extends E {
|
|
|
264
279
|
getSeriesLineStyle(e) {
|
|
265
280
|
const t = this._config.series[e];
|
|
266
281
|
if (this.showMeanLines === !0 && l(t))
|
|
267
|
-
return
|
|
282
|
+
return ie(t);
|
|
268
283
|
}
|
|
269
284
|
setSeriesLineStyle(e, t) {
|
|
270
|
-
const
|
|
271
|
-
this.showMeanLines === !0 && l(
|
|
285
|
+
const i = this._config.series[t];
|
|
286
|
+
this.showMeanLines === !0 && l(i) && u(e, i);
|
|
272
287
|
}
|
|
273
288
|
/**
|
|
274
289
|
* Gets the line width of the series based on the series index. If the index is out of bounds, it will return `undefined`.
|
|
@@ -283,20 +298,20 @@ class i extends E {
|
|
|
283
298
|
return se(t);
|
|
284
299
|
}
|
|
285
300
|
setSeriesLineWidth(e, t) {
|
|
286
|
-
const
|
|
287
|
-
this.showMeanLines === !0 && l(
|
|
301
|
+
const i = this._config.series[t];
|
|
302
|
+
this.showMeanLines === !0 && l(i) && S(e, i);
|
|
288
303
|
}
|
|
289
304
|
/**
|
|
290
305
|
* The order of the series array by returning an array of series ids.
|
|
291
306
|
*/
|
|
292
307
|
get orderOfSeries() {
|
|
293
|
-
return
|
|
308
|
+
return Fe(this._config);
|
|
294
309
|
}
|
|
295
310
|
set orderOfSeries(e) {
|
|
296
|
-
|
|
311
|
+
Me(e, this._config);
|
|
297
312
|
}
|
|
298
313
|
moveSeries(e, t) {
|
|
299
|
-
|
|
314
|
+
xe(e, t, this._config);
|
|
300
315
|
}
|
|
301
316
|
/**
|
|
302
317
|
* The index of the box plot series in the series array in config object when show mean is true.
|
|
@@ -304,11 +319,11 @@ class i extends E {
|
|
|
304
319
|
* **Note**: There is only one box plot series when show mean is `true`. The function returns `-1` if show mean is `false`.
|
|
305
320
|
*/
|
|
306
321
|
get boxPlotSeriesIndexWhenMeanLinesShown() {
|
|
307
|
-
return
|
|
322
|
+
return Ie(this._config);
|
|
308
323
|
}
|
|
309
324
|
moveCustomSortValuesInOrderByList(e, t) {
|
|
310
|
-
const
|
|
311
|
-
|
|
325
|
+
const i = C(this._config), [o] = i.splice(e, 1);
|
|
326
|
+
i.splice(t, 0, o), F(i, this._config);
|
|
312
327
|
}
|
|
313
328
|
// ---------------------------------------------------------------------------------------------
|
|
314
329
|
// #region General Methods
|
|
@@ -317,127 +332,127 @@ class i extends E {
|
|
|
317
332
|
* Generate the proper chart title given the current config.
|
|
318
333
|
*/
|
|
319
334
|
generateChartTitle() {
|
|
320
|
-
return
|
|
335
|
+
return be(this._config, this.layerInfo, this.commonStrings);
|
|
321
336
|
}
|
|
322
337
|
/**
|
|
323
338
|
* Generate the proper y-axis title given the current config.
|
|
324
339
|
*/
|
|
325
340
|
generateYAxisTitle() {
|
|
326
|
-
return
|
|
341
|
+
return we(this._config, this.layerInfo, this.commonStrings);
|
|
327
342
|
}
|
|
328
343
|
resetSeriesStyling() {
|
|
329
344
|
for (let e = this.showMeanLines === !0 ? 1 : 0; e < this.seriesLength; e += 1) {
|
|
330
|
-
const t = this.getSeriesId(e),
|
|
345
|
+
const t = this.getSeriesId(e), i = V({
|
|
331
346
|
colorIndex: e,
|
|
332
|
-
opacity:
|
|
333
|
-
}),
|
|
334
|
-
|
|
335
|
-
const a =
|
|
336
|
-
series:
|
|
347
|
+
opacity: T
|
|
348
|
+
}), o = this._config.series[e];
|
|
349
|
+
b(i, e, this._config);
|
|
350
|
+
const a = w({
|
|
351
|
+
series: o,
|
|
337
352
|
splitByField: this._splitByField,
|
|
338
353
|
layerInfo: this.layerInfo,
|
|
339
354
|
commonStrings: this.commonStrings
|
|
340
355
|
});
|
|
341
|
-
|
|
356
|
+
I(a ?? t, e, this._config), this.showMeanLines === !0 && l(o) && (u(p, o), S(m, o));
|
|
342
357
|
}
|
|
343
|
-
this.showMeanLines === !0 &&
|
|
358
|
+
this.showMeanLines === !0 && M(y, this._config), this._config.colorMatch = !0;
|
|
344
359
|
}
|
|
345
360
|
/**
|
|
346
361
|
* Returns whether the series styling is able to be reset.
|
|
347
362
|
*/
|
|
348
363
|
resetAvailable() {
|
|
349
364
|
const e = !this.colorMatch, t = this.showMeanLines === !0 && this.meanLinesBoxColor !== y;
|
|
350
|
-
let
|
|
365
|
+
let i = !1, o = !1;
|
|
351
366
|
if (!e)
|
|
352
367
|
for (let a = this.showMeanLines === !0 ? 1 : 0; a < this.seriesLength; a += 1) {
|
|
353
|
-
const h = this._config.series[a], g =
|
|
368
|
+
const h = this._config.series[a], g = w({
|
|
354
369
|
series: h,
|
|
355
370
|
splitByField: this._splitByField,
|
|
356
371
|
layerInfo: this.layerInfo,
|
|
357
372
|
commonStrings: this.commonStrings
|
|
358
|
-
}),
|
|
359
|
-
if (g !== void 0 && g !==
|
|
360
|
-
|
|
373
|
+
}), v = this.getSeriesName(a);
|
|
374
|
+
if (g !== void 0 && g !== v) {
|
|
375
|
+
i = !0;
|
|
361
376
|
break;
|
|
362
377
|
}
|
|
363
378
|
if (this.showMeanLines === !0 && l(h)) {
|
|
364
|
-
const
|
|
365
|
-
if (
|
|
366
|
-
|
|
379
|
+
const W = this.getSeriesLineStyle(a), O = this.getSeriesLineWidth(a);
|
|
380
|
+
if (W !== p || O !== m) {
|
|
381
|
+
o = !0;
|
|
367
382
|
break;
|
|
368
383
|
}
|
|
369
384
|
}
|
|
370
385
|
}
|
|
371
|
-
return e || t ||
|
|
386
|
+
return e || t || i || o;
|
|
372
387
|
}
|
|
373
388
|
}
|
|
374
389
|
n([
|
|
375
|
-
|
|
376
|
-
],
|
|
390
|
+
r
|
|
391
|
+
], s.prototype, "showOutliers");
|
|
377
392
|
n([
|
|
378
|
-
|
|
379
|
-
],
|
|
393
|
+
r
|
|
394
|
+
], s.prototype, "standardizeValues");
|
|
380
395
|
n([
|
|
381
|
-
|
|
382
|
-
],
|
|
396
|
+
r
|
|
397
|
+
], s.prototype, "setSortOrder");
|
|
383
398
|
n([
|
|
384
|
-
|
|
385
|
-
],
|
|
399
|
+
r
|
|
400
|
+
], s.prototype, "setDataFilters");
|
|
386
401
|
n([
|
|
387
|
-
|
|
388
|
-
],
|
|
402
|
+
r
|
|
403
|
+
], s.prototype, "orderByList");
|
|
389
404
|
n([
|
|
390
|
-
|
|
391
|
-
],
|
|
405
|
+
r
|
|
406
|
+
], s.prototype, "showMeanLines");
|
|
392
407
|
n([
|
|
393
|
-
|
|
394
|
-
],
|
|
408
|
+
r
|
|
409
|
+
], s.prototype, "meanLinesBoxColor");
|
|
395
410
|
n([
|
|
396
|
-
|
|
397
|
-
],
|
|
411
|
+
r
|
|
412
|
+
], s.prototype, "resetConfig");
|
|
398
413
|
n([
|
|
399
|
-
|
|
400
|
-
],
|
|
414
|
+
r
|
|
415
|
+
], s.prototype, "setSeriesName");
|
|
401
416
|
n([
|
|
402
|
-
|
|
403
|
-
],
|
|
417
|
+
r
|
|
418
|
+
], s.prototype, "setSeriesColor");
|
|
404
419
|
n([
|
|
405
|
-
|
|
406
|
-
],
|
|
420
|
+
r
|
|
421
|
+
], s.prototype, "setSeriesLineStyle");
|
|
407
422
|
n([
|
|
408
|
-
|
|
409
|
-
],
|
|
423
|
+
r
|
|
424
|
+
], s.prototype, "setSeriesLineWidth");
|
|
410
425
|
n([
|
|
411
|
-
|
|
412
|
-
],
|
|
426
|
+
r
|
|
427
|
+
], s.prototype, "orderOfSeries");
|
|
413
428
|
n([
|
|
414
|
-
|
|
415
|
-
],
|
|
429
|
+
r
|
|
430
|
+
], s.prototype, "moveSeries");
|
|
416
431
|
n([
|
|
417
|
-
|
|
418
|
-
],
|
|
432
|
+
r
|
|
433
|
+
], s.prototype, "moveCustomSortValuesInOrderByList");
|
|
419
434
|
n([
|
|
420
|
-
|
|
421
|
-
],
|
|
422
|
-
const
|
|
423
|
-
|
|
424
|
-
R,
|
|
425
|
-
U,
|
|
435
|
+
r
|
|
436
|
+
], s.prototype, "resetSeriesStyling");
|
|
437
|
+
const Oe = [
|
|
438
|
+
k,
|
|
426
439
|
z,
|
|
427
|
-
|
|
440
|
+
U,
|
|
428
441
|
X,
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
442
|
+
te,
|
|
443
|
+
j,
|
|
444
|
+
ee,
|
|
445
|
+
K,
|
|
433
446
|
H,
|
|
434
447
|
Z,
|
|
435
|
-
|
|
448
|
+
J,
|
|
449
|
+
$,
|
|
436
450
|
Y,
|
|
451
|
+
q,
|
|
437
452
|
G,
|
|
438
|
-
|
|
453
|
+
Q
|
|
439
454
|
];
|
|
440
|
-
|
|
455
|
+
ae(s, Oe);
|
|
441
456
|
export {
|
|
442
|
-
|
|
457
|
+
s as BoxPlotModel
|
|
443
458
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import {
|
|
2
|
+
import { f as j } from "./utils.js";
|
|
3
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
5
|
import { H as p, T as c, M as f } from "./index.js";
|