@arcgis/charts-components 5.2.0-next.124 → 5.2.0-next.125
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/{CQLILZFZ.js → 2FQ6G6B6.js} +1 -1
- package/dist/cdn/{IYVSAR3D.js → 2FYXFIR4.js} +1 -1
- package/dist/cdn/2QWB5XRH.js +2 -0
- package/dist/cdn/{ZRYPRUVT.js → 2VX44HPW.js} +1 -1
- package/dist/cdn/{IKH7UGJM.js → 3GN7VR32.js} +1 -1
- package/dist/cdn/{WTMEWLUJ.js → 3W4HHL2V.js} +1 -1
- package/dist/cdn/{ELXF6XQQ.js → 4PUOMS4A.js} +1 -1
- package/dist/cdn/{U2O4NGY5.js → 4RLQLQVB.js} +1 -1
- package/dist/cdn/{H4UKMJ3M.js → 4SNP6HTM.js} +1 -1
- package/dist/cdn/{OO4U6KKQ.js → 54265YSL.js} +1 -1
- package/dist/cdn/{MQI4ZLAS.js → 5434ASC3.js} +1 -1
- package/dist/cdn/{GCPA466R.js → 56INS6ML.js} +1 -1
- package/dist/cdn/{N4YN5XHL.js → 5E6TR5OW.js} +1 -1
- package/dist/cdn/{STFT35NP.js → 5XXBOV4Q.js} +1 -1
- package/dist/cdn/6462KIIY.js +2 -0
- package/dist/cdn/{BUXZ2NBS.js → 6ESCKCYY.js} +1 -1
- package/dist/cdn/{EXCMERSU.js → 6H4PWDET.js} +1 -1
- package/dist/cdn/77VLHOOC.js +2 -0
- package/dist/cdn/{Q4HYSXEK.js → 77YJOTCX.js} +1 -1
- package/dist/cdn/{KYQWN5DR.js → 7OESRD4R.js} +1 -1
- package/dist/cdn/7PKJNQL7.js +2 -0
- package/dist/cdn/{ZP4T262N.js → B44MEIQW.js} +1 -1
- package/dist/cdn/{BQMUOJL7.js → B5XYZKLU.js} +1 -1
- package/dist/cdn/{RPUEIRTH.js → BGIUDL2K.js} +1 -1
- package/dist/cdn/{IJKFUMKC.js → C3PVEL66.js} +1 -1
- package/dist/cdn/{IJR65YQB.js → CSN6MJ4B.js} +1 -1
- package/dist/cdn/{CR2U5KNC.js → DPRUAGVZ.js} +1 -1
- package/dist/cdn/{O7NFMOTE.js → ENG2F3IQ.js} +1 -1
- package/dist/cdn/{JSFNIFWE.js → EP5BMXUY.js} +1 -1
- package/dist/cdn/{3IXFIA6D.js → ETDHU5U4.js} +19 -19
- package/dist/cdn/EU6AJ57R.js +2 -0
- package/dist/cdn/{HFFXDWQL.js → F2MSD3QS.js} +1 -1
- package/dist/cdn/{DYCZXSJG.js → F2WEYOKD.js} +1 -1
- package/dist/cdn/{WSSQILRB.js → F3UFKEVT.js} +1 -1
- package/dist/cdn/{5SYHQWPP.js → FASMW7S2.js} +1 -1
- package/dist/cdn/{JFXCJ6HT.js → FH66KPN5.js} +1 -1
- package/dist/cdn/{A5CQKJHA.js → G6DJZSMC.js} +1 -1
- package/dist/cdn/{QSJV77RB.js → H5QMZ65D.js} +1 -1
- package/dist/cdn/{JO4YQAFF.js → HDHS7RTZ.js} +1 -1
- package/dist/cdn/{353KIT3L.js → HPO7UHSN.js} +1 -1
- package/dist/cdn/{METDO2QG.js → IMQYTRSY.js} +1 -1
- package/dist/cdn/{4GHJREG3.js → J5E4KON6.js} +1 -1
- package/dist/cdn/{UDQP2AFN.js → J65VM5UV.js} +1 -1
- package/dist/cdn/{VP5MGMQP.js → JPDI5NK6.js} +1 -1
- package/dist/cdn/{IS7KQGMM.js → JSJ2OXVP.js} +1 -1
- package/dist/cdn/{IGOJGDYE.js → JSUH5PFI.js} +1 -1
- package/dist/cdn/{WXO3YJ3T.js → KAVJHTFB.js} +1 -1
- package/dist/cdn/{6CPDF77P.js → KCEJQPTE.js} +1 -1
- package/dist/cdn/{DCIQMSQ2.js → KDMYI6HZ.js} +1 -1
- package/dist/cdn/{RDCTBV2Q.js → KHFNTBX4.js} +1 -1
- package/dist/cdn/{MFJINTU5.js → KHV5W5KY.js} +1 -1
- package/dist/cdn/{5V33DFCG.js → KIUBFEUI.js} +1 -1
- package/dist/cdn/{M6L3GCVZ.js → KKHTRL5K.js} +1 -1
- package/dist/cdn/{C6YIO7EV.js → LHQ5R7PX.js} +1 -1
- package/dist/cdn/{V4VQT6A6.js → LQL7VPXH.js} +1 -1
- package/dist/cdn/{CQORXOQS.js → LYVV7FBJ.js} +1 -1
- package/dist/cdn/{LBX6U6EK.js → MDKLQ2IS.js} +2 -2
- package/dist/cdn/{SZYIWW3C.js → MRN3GTKF.js} +1 -1
- package/dist/cdn/{W7HVSUF2.js → MUFEV5ZR.js} +1 -1
- package/dist/cdn/{6H6ZTNGY.js → N26FS3KG.js} +1 -1
- package/dist/cdn/{CKD62DZ4.js → N75HEDSD.js} +1 -1
- package/dist/cdn/{Q4GIMFJ2.js → NMAG7AL2.js} +1 -1
- package/dist/cdn/{KILQBDSV.js → OCCBK5S7.js} +1 -1
- package/dist/cdn/{U2VHNPRE.js → OLRPPTEO.js} +1 -1
- package/dist/cdn/{3LEJV2CC.js → OR765GRF.js} +1 -1
- package/dist/cdn/{GZA5OPRD.js → OUDFAIXR.js} +1 -1
- package/dist/cdn/{O34ACKBX.js → P7PD3PBN.js} +1 -1
- package/dist/cdn/{BF2U4V7S.js → PAHQAFMT.js} +1 -1
- package/dist/cdn/{KRNF2XCU.js → PIOFHDMU.js} +1 -1
- package/dist/cdn/{BQMDOKAK.js → POSJMG3Z.js} +1 -1
- package/dist/cdn/{MOL3RVAG.js → PUXBUCDR.js} +1 -1
- package/dist/cdn/{MDMJT2VS.js → PZRHKUTQ.js} +1 -1
- package/dist/cdn/{XIVGFLZQ.js → QHGSGGGJ.js} +1 -1
- package/dist/cdn/{PX7QCMDX.js → QHRYG4SP.js} +1 -1
- package/dist/cdn/{TV3FXQVK.js → QL5M6E2E.js} +1 -1
- package/dist/cdn/{CB3BW4H5.js → QZNI3BD3.js} +1 -1
- package/dist/cdn/{DPEEMYYB.js → RBTEJMJT.js} +1 -1
- package/dist/cdn/RD2OZ5DF.js +2 -0
- package/dist/cdn/{EFFUZV52.js → S2PTOBDF.js} +1 -1
- package/dist/cdn/{OCABBLZ7.js → SF3FTQP5.js} +1 -1
- package/dist/cdn/{3HZFE5JC.js → SLKGXWIE.js} +1 -1
- package/dist/cdn/{V4N4EY2E.js → TLYVHR5K.js} +1 -1
- package/dist/cdn/{MVJKABXP.js → UYNE67O2.js} +1 -1
- package/dist/cdn/{WVOXFKFO.js → VJG6ZEH4.js} +1 -1
- package/dist/cdn/{JNRJSGDP.js → VPCAPPIP.js} +1 -1
- package/dist/cdn/{IW27UN5J.js → VSMUBBEN.js} +1 -1
- package/dist/cdn/{IJ3OJVJQ.js → W2QXMYBG.js} +1 -1
- package/dist/cdn/{32RVL6OQ.js → W6SZDF5T.js} +1 -1
- package/dist/cdn/{QOZYAJXQ.js → WDWOAIWE.js} +1 -1
- package/dist/cdn/{7TM4LYGN.js → WG2TWSUV.js} +1 -1
- package/dist/cdn/{PETPI6FO.js → WQQMTR5J.js} +1 -1
- package/dist/cdn/{4UYG2V6P.js → X7OXNUXM.js} +1 -1
- package/dist/cdn/{NCOXA4CE.js → XQ5Q4AMB.js} +1 -1
- package/dist/cdn/{FK7MIBNE.js → XZAXZDTP.js} +1 -1
- package/dist/cdn/{OY5HRHVW.js → YEAARWKU.js} +1 -1
- package/dist/cdn/{ITFMAKY3.js → YMAI2PRA.js} +1 -1
- package/dist/cdn/Z5KG3KRT.js +2 -0
- package/dist/cdn/{LUFRX5TB.js → Z5ZBVJ2L.js} +1 -1
- package/dist/cdn/{YW6WBDZV.js → ZD4GMDVL.js} +1 -1
- package/dist/cdn/{H3JLQ2R3.js → ZLUIF2K7.js} +1 -1
- package/dist/cdn/{ZTVR6KBG.js → ZUN46CYQ.js} +1 -1
- package/dist/cdn/{4YOIC4P4.js → ZZAJQVXL.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/action-bar-utils.js +1 -1
- package/dist/chunks/box-plot-data.js +1 -1
- package/dist/chunks/box-plot-model.js +173 -117
- package/dist/chunks/chart-ui-utils.js +7 -7
- package/dist/chunks/class-breaks.js +1 -1
- package/dist/chunks/combo-bar-line-chart-model.js +1 -1
- package/dist/chunks/data.js +9 -9
- package/dist/chunks/generate-x-axis-title.js +15 -15
- package/dist/chunks/index.js +164 -163
- package/dist/chunks/index2.js +1 -1
- package/dist/chunks/index3.js +15 -15
- package/dist/chunks/index4.js +7 -7
- package/dist/chunks/model-setter.js +22 -22
- package/dist/chunks/negative-values-stacked-to-baseline.js +1 -1
- package/dist/chunks/pie-chart-data.js +4 -4
- package/dist/chunks/resource.js +1 -1
- package/dist/chunks/rounded-corners.js +1 -1
- package/dist/chunks/scatterplot-model.js +1 -1
- package/dist/chunks/serial-chart-data.js +2 -2
- package/dist/chunks/serial-chart-model.js +131 -76
- package/dist/chunks/type-guards2.js +17 -17
- package/dist/chunks/utils.js +122 -106
- package/dist/chunks/web-component-utils.js +9 -9
- package/dist/chunks/x-bounds.js +12 -12
- package/dist/components/arcgis-chart/customElement.js +2259 -2254
- 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 +8 -8
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +8 -8
- package/dist/components/arcgis-charts-config-font-style/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-format/customElement.js +14 -14
- package/dist/components/arcgis-charts-config-general/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-guide/customElement.js +11 -11
- package/dist/components/arcgis-charts-config-guides/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +7 -7
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +9 -9
- package/dist/components/arcgis-charts-config-line-chart/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 +7 -7
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-scatter-plot/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 +111 -111
- package/dist/model/box-plot-model/box-plot-model.d.ts +20 -1
- package/dist/model/interfaces/chart-interfaces.d.ts +3 -0
- package/dist/model/interfaces/common.d.ts +2 -0
- package/dist/model/serial-chart-model/serial-chart-model.d.ts +20 -1
- package/dist/model/shared/setup-utils.d.ts +2 -0
- package/dist/model/shared/setup-utils.js +37 -36
- package/dist/utils/chart-config/converter/index.js +40 -40
- package/dist/utils/data/interfaces.d.ts +1 -0
- package/package.json +4 -4
- package/dist/cdn/2TV4NKY2.js +0 -2
- package/dist/cdn/EXLX4SJG.js +0 -2
- package/dist/cdn/GTBT4ACW.js +0 -2
- package/dist/cdn/HH5B6KCV.js +0 -2
- package/dist/cdn/KZBUDNHW.js +0 -2
- package/dist/cdn/KZSCAJDG.js +0 -2
- package/dist/cdn/XOTHROVZ.js +0 -2
- /package/dist/cdn/{225VUGML.js → IJPD3GVL.js} +0 -0
|
@@ -1,29 +1,30 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import { isEqual as W } from "es-toolkit/compat";
|
|
2
3
|
import { log as d } from "@arcgis/toolkit/log";
|
|
3
|
-
import { a as
|
|
4
|
-
import { l as f, ao as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { M as N, a as R, W as z, b as U } from "./data-labels-visibility.js";
|
|
4
|
+
import { a as O } from "./chart-object-literals.js";
|
|
5
|
+
import { l as f, ao as P, a9 as D, g as R, aa as y, am as m, ab as p, r as A } from "./index3.js";
|
|
6
|
+
import { cb as V, c6 as h } from "./index.js";
|
|
7
|
+
import { m as r } from "./model-setter.js";
|
|
8
|
+
import { B as T } from "./common.js";
|
|
9
|
+
import { M as E, a as N, W as z, b as U } from "./data-labels-visibility.js";
|
|
10
10
|
import { M as X, a as j } from "./model-with-y-guides.js";
|
|
11
|
-
import { W as k, c as
|
|
12
|
-
import { W as
|
|
11
|
+
import { W as k, c as q, d as G } from "./axis-lines-symbol.js";
|
|
12
|
+
import { W as K, c as Y, d as H } from "./generate-x-axis-title.js";
|
|
13
13
|
import { W as J, a as Q } from "./x-bounds.js";
|
|
14
14
|
import { W as Z } from "./data-labels-symbol.js";
|
|
15
15
|
import { W as $ } from "./rotated-state.js";
|
|
16
|
-
import { g as ee, b as
|
|
17
|
-
import { k as
|
|
18
|
-
import { s as le, d as he, e as ce, f as ge, h as de, i as u, j as S, k as _, l as L, m as B, g as fe, n as ye, o as me, p as C, a as pe, c as ue, b as Se, q as _e, r as F, t as Le, u as Be, v as M, w as Ce, x, y as Fe, z as Me, A as xe, B as Ie, C as
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
16
|
+
import { g as ee, b as ie, s as te, a as se } from "./series.js";
|
|
17
|
+
import { k as re, j as oe, l as ne, h as ae } from "./utils.js";
|
|
18
|
+
import { s as le, d as he, e as ce, f as ge, h as de, i as u, j as S, k as _, l as L, m as B, g as fe, n as ye, o as me, p as C, a as pe, c as ue, b as Se, q as _e, r as F, t as Le, u as Be, v as M, w as Ce, x, y as Fe, z as Me, A as xe, B as Ie, C as be, D as ve, E as we, F as We, G as I } from "./box-plot-data.js";
|
|
19
|
+
import { C as Oe } from "./chart-model.js";
|
|
20
|
+
var Pe = Object.defineProperty, De = Object.getOwnPropertyDescriptor, o = (c, e, i, n) => {
|
|
21
|
+
for (var s = De(e, i), a = c.length - 1, l; a >= 0; a--)
|
|
22
|
+
(l = c[a]) && (s = l(e, i, s) || s);
|
|
23
|
+
return s && Pe(e, i, s), s;
|
|
23
24
|
};
|
|
24
|
-
class
|
|
25
|
+
class t extends Oe {
|
|
25
26
|
constructor() {
|
|
26
|
-
super(...arguments), this._chartType =
|
|
27
|
+
super(...arguments), this._chartType = O.BoxPlotSeries, this._category = f, this._splitByField = "", this._numericFields = [], this._splitBySeriesLimitReached = !1, this._splitBySeriesCount = 0;
|
|
27
28
|
}
|
|
28
29
|
async setup(e) {
|
|
29
30
|
await this.loadConfigFromLayer(e), this.setupLocalProps(), e.config !== void 0 && await this.rebuildSeries(), typeof this.resolveSetup == "function" && this.resolveSetup();
|
|
@@ -31,6 +32,60 @@ class i extends T {
|
|
|
31
32
|
// ---------------------------------------------------------------------------------------------
|
|
32
33
|
// #region Data Props
|
|
33
34
|
// ---------------------------------------------------------------------------------------------
|
|
35
|
+
/**
|
|
36
|
+
* The chart limits used when generating split-by series.
|
|
37
|
+
*
|
|
38
|
+
* @internal
|
|
39
|
+
*/
|
|
40
|
+
get chartLimits() {
|
|
41
|
+
return this._chartLimits;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Sets the chart limits used when generating split-by series.
|
|
45
|
+
*
|
|
46
|
+
* When the limits change after model setup, the series are rebuilt asynchronously. Call the update() method to wait
|
|
47
|
+
* for the rebuild to complete.
|
|
48
|
+
*
|
|
49
|
+
* @internal
|
|
50
|
+
*
|
|
51
|
+
* @param chartLimits The chart limits to apply, or `undefined` to use the default limits.
|
|
52
|
+
*/
|
|
53
|
+
set chartLimits(e) {
|
|
54
|
+
const i = !W(this._chartLimits, e);
|
|
55
|
+
this._chartLimits = e, i && this.layerInfo !== void 0 && this._config !== void 0 && this.processSeriesRebuild("chartLimits");
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Get whether split-by series were trimmed to the configured chart limit.
|
|
59
|
+
*
|
|
60
|
+
* @internal
|
|
61
|
+
*/
|
|
62
|
+
get splitBySeriesLimitReached() {
|
|
63
|
+
return this._splitBySeriesLimitReached;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Sets whether split-by series were trimmed to the configured chart limit.
|
|
67
|
+
*
|
|
68
|
+
* @internal
|
|
69
|
+
*/
|
|
70
|
+
set splitBySeriesLimitReached(e) {
|
|
71
|
+
this._splitBySeriesLimitReached = e;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Get the number of split-by series before applying the configured chart limit.
|
|
75
|
+
*
|
|
76
|
+
* @internal
|
|
77
|
+
*/
|
|
78
|
+
get splitBySeriesCount() {
|
|
79
|
+
return this._splitBySeriesCount;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Sets the number of split-by series before applying the configured chart limit.
|
|
83
|
+
*
|
|
84
|
+
* @internal
|
|
85
|
+
*/
|
|
86
|
+
set splitBySeriesCount(e) {
|
|
87
|
+
this._splitBySeriesCount = e;
|
|
88
|
+
}
|
|
34
89
|
/**
|
|
35
90
|
* The category field for the box plot.
|
|
36
91
|
*/
|
|
@@ -38,8 +93,8 @@ class i extends T {
|
|
|
38
93
|
return this._category;
|
|
39
94
|
}
|
|
40
95
|
set category(e) {
|
|
41
|
-
const
|
|
42
|
-
this._category =
|
|
96
|
+
const i = e.trim() === "";
|
|
97
|
+
this._category = i ? f : e, this.processSeriesRebuild("category");
|
|
43
98
|
}
|
|
44
99
|
/**
|
|
45
100
|
* The numeric fields array for the box plot.
|
|
@@ -48,8 +103,8 @@ class i extends T {
|
|
|
48
103
|
return this._numericFields;
|
|
49
104
|
}
|
|
50
105
|
set numericFields(e) {
|
|
51
|
-
const { layerFieldsInfo:
|
|
52
|
-
typeof e == "string" && (e = [e]),
|
|
106
|
+
const { layerFieldsInfo: i } = this.layerInfo;
|
|
107
|
+
typeof e == "string" && (e = [e]), re(i, e) ? (this._numericFields = e, le(this._category, this._numericFields) && (this._splitByField = ""), this.processSeriesRebuild("numericFields")) : d("error", "box-plot-model", "Invalid `numericFields`");
|
|
53
108
|
}
|
|
54
109
|
/**
|
|
55
110
|
* The split-by field for the box plot.
|
|
@@ -58,7 +113,7 @@ class i extends T {
|
|
|
58
113
|
return this._splitByField;
|
|
59
114
|
}
|
|
60
115
|
set splitByField(e) {
|
|
61
|
-
|
|
116
|
+
oe(this.layerInfo.layerFieldsInfo, e) ? (this._splitByField = e, this.processSeriesRebuild("splitByField")) : d("error", "box-plot-model", "Invalid `splitByField`");
|
|
62
117
|
}
|
|
63
118
|
/**
|
|
64
119
|
* Whether outliers are shown.
|
|
@@ -94,8 +149,8 @@ class i extends T {
|
|
|
94
149
|
getSortOrder() {
|
|
95
150
|
return u(this._config);
|
|
96
151
|
}
|
|
97
|
-
setSortOrder(e,
|
|
98
|
-
S(e, this._config,
|
|
152
|
+
setSortOrder(e, i) {
|
|
153
|
+
S(e, this._config, i);
|
|
99
154
|
}
|
|
100
155
|
/**
|
|
101
156
|
* Gets the list of the category values for the chart.
|
|
@@ -109,15 +164,15 @@ class i extends T {
|
|
|
109
164
|
}
|
|
110
165
|
async setDataFilters(e) {
|
|
111
166
|
super.setDataFilters(e);
|
|
112
|
-
const
|
|
113
|
-
if (
|
|
167
|
+
const i = u(this._config);
|
|
168
|
+
if (i === T.customSort) {
|
|
114
169
|
this.startAsyncUpdate();
|
|
115
170
|
const n = await _({
|
|
116
171
|
config: this._config,
|
|
117
172
|
layerInfo: this.layerInfo,
|
|
118
173
|
errorStrings: this.commonStrings.errorStrings
|
|
119
174
|
});
|
|
120
|
-
S(
|
|
175
|
+
S(i, this._config, n), this.finishAsyncUpdate();
|
|
121
176
|
}
|
|
122
177
|
this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"));
|
|
123
178
|
}
|
|
@@ -154,13 +209,13 @@ class i extends T {
|
|
|
154
209
|
return fe(this._config);
|
|
155
210
|
}
|
|
156
211
|
set showMeanLines(e) {
|
|
157
|
-
const { previousMeanLinesBoxColor:
|
|
212
|
+
const { previousMeanLinesBoxColor: i } = ye({
|
|
158
213
|
newShowMeanLines: e,
|
|
159
214
|
config: this._config,
|
|
160
215
|
commonStrings: this.commonStrings,
|
|
161
216
|
previousMeanLinesBoxColor: this.previousMeanLinesBoxColor
|
|
162
217
|
});
|
|
163
|
-
this.previousMeanLinesBoxColor =
|
|
218
|
+
this.previousMeanLinesBoxColor = i;
|
|
164
219
|
}
|
|
165
220
|
/**
|
|
166
221
|
* The color of the boxes when showing mean lines.
|
|
@@ -185,8 +240,8 @@ class i extends T {
|
|
|
185
240
|
}
|
|
186
241
|
/** @private */
|
|
187
242
|
generateDefaultConfig() {
|
|
188
|
-
const e =
|
|
189
|
-
return e.series = [
|
|
243
|
+
const e = P(this.commonStrings);
|
|
244
|
+
return e.series = [D(this.commonStrings)], e;
|
|
190
245
|
}
|
|
191
246
|
resetConfig() {
|
|
192
247
|
const e = this._config.id;
|
|
@@ -209,7 +264,7 @@ class i extends T {
|
|
|
209
264
|
* @private
|
|
210
265
|
*/
|
|
211
266
|
async processSeriesRebuild(e) {
|
|
212
|
-
this.usingSplitBy() ? (this.startAsyncUpdate(), await this.fetchSplitByFieldInfos(), F(this.getBuildNewSeriesProps()), this.finishAsyncUpdate()) : F(this.getBuildNewSeriesProps()), this.setupLocalProps(), this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")), this.emitConfigUpdate(e);
|
|
267
|
+
this.usingSplitBy() ? (this.startAsyncUpdate(), await this.fetchSplitByFieldInfos(), F(this.getBuildNewSeriesProps()), this.finishAsyncUpdate()) : (this._splitBySeriesLimitReached = !1, this._splitBySeriesCount = 0, F(this.getBuildNewSeriesProps())), this.setupLocalProps(), this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")), this.emitConfigUpdate(e);
|
|
213
268
|
}
|
|
214
269
|
/**
|
|
215
270
|
* Fetches the split-by field information and stores it in a private member for use in building the series.
|
|
@@ -224,8 +279,9 @@ class i extends T {
|
|
|
224
279
|
aggregationFields: this.numericFields,
|
|
225
280
|
splitByField: this._splitByField,
|
|
226
281
|
fetchNullValues: e,
|
|
282
|
+
chartLimits: this._chartLimits,
|
|
227
283
|
errorStrings: this.commonStrings?.errorStrings
|
|
228
|
-
}), this.splitByFieldInfos;
|
|
284
|
+
}), this._splitBySeriesLimitReached = this.splitByFieldInfos.seriesLimitReached, this._splitBySeriesCount = this.splitByFieldInfos.totalSeriesCount, this.splitByFieldInfos;
|
|
229
285
|
}
|
|
230
286
|
//#endregion
|
|
231
287
|
// #region Private Methods
|
|
@@ -255,8 +311,8 @@ class i extends T {
|
|
|
255
311
|
getSeriesName(e) {
|
|
256
312
|
return Be(e, this._config);
|
|
257
313
|
}
|
|
258
|
-
setSeriesName(e,
|
|
259
|
-
M(e,
|
|
314
|
+
setSeriesName(e, i) {
|
|
315
|
+
M(e, i, this._config);
|
|
260
316
|
}
|
|
261
317
|
/**
|
|
262
318
|
* Gets the color of the series based on the series index. If the index is out of bounds, it will return `undefined`.
|
|
@@ -266,8 +322,8 @@ class i extends T {
|
|
|
266
322
|
getSeriesColor(e) {
|
|
267
323
|
return Ce(e, this._config);
|
|
268
324
|
}
|
|
269
|
-
setSeriesColor(e,
|
|
270
|
-
x(e,
|
|
325
|
+
setSeriesColor(e, i) {
|
|
326
|
+
x(e, i, this._config);
|
|
271
327
|
}
|
|
272
328
|
/**
|
|
273
329
|
* Gets the line style of the series based on the series index. If the index is out of bounds, it will return `undefined`.
|
|
@@ -277,12 +333,12 @@ class i extends T {
|
|
|
277
333
|
* @param seriesIndex - The index of the series.
|
|
278
334
|
*/
|
|
279
335
|
getSeriesLineStyle(e) {
|
|
280
|
-
const
|
|
281
|
-
if (this.showMeanLines === !0 && h(
|
|
282
|
-
return ee(
|
|
336
|
+
const i = this._config.series[e];
|
|
337
|
+
if (this.showMeanLines === !0 && h(i))
|
|
338
|
+
return ee(i);
|
|
283
339
|
}
|
|
284
|
-
setSeriesLineStyle(e,
|
|
285
|
-
this.showMeanLines === !0 && Fe({ style: e, seriesIndex:
|
|
340
|
+
setSeriesLineStyle(e, i) {
|
|
341
|
+
this.showMeanLines === !0 && Fe({ style: e, seriesIndex: i, config: this._config });
|
|
286
342
|
}
|
|
287
343
|
/**
|
|
288
344
|
* Gets the line width of the series based on the series index. If the index is out of bounds, it will return `undefined`.
|
|
@@ -292,12 +348,12 @@ class i extends T {
|
|
|
292
348
|
* @param seriesIndex - The index of the series.
|
|
293
349
|
*/
|
|
294
350
|
getSeriesLineWidth(e) {
|
|
295
|
-
const
|
|
296
|
-
if (this.showMeanLines === !0 && h(
|
|
297
|
-
return
|
|
351
|
+
const i = this._config.series[e];
|
|
352
|
+
if (this.showMeanLines === !0 && h(i))
|
|
353
|
+
return ie(i);
|
|
298
354
|
}
|
|
299
|
-
setSeriesLineWidth(e,
|
|
300
|
-
this.showMeanLines === !0 && Me({ width: e, seriesIndex:
|
|
355
|
+
setSeriesLineWidth(e, i) {
|
|
356
|
+
this.showMeanLines === !0 && Me({ width: e, seriesIndex: i, config: this._config });
|
|
301
357
|
}
|
|
302
358
|
/**
|
|
303
359
|
* The order of the series array by returning an array of series ids.
|
|
@@ -308,8 +364,8 @@ class i extends T {
|
|
|
308
364
|
set orderOfSeries(e) {
|
|
309
365
|
Ie(e, this._config);
|
|
310
366
|
}
|
|
311
|
-
moveSeries(e,
|
|
312
|
-
|
|
367
|
+
moveSeries(e, i) {
|
|
368
|
+
be(e, i, this._config);
|
|
313
369
|
}
|
|
314
370
|
/**
|
|
315
371
|
* The index of the box plot series in the series array in config object when show mean is true.
|
|
@@ -317,11 +373,11 @@ class i extends T {
|
|
|
317
373
|
* **Note**: There is only one box plot series when show mean is `true`. The function returns `-1` if show mean is `false`.
|
|
318
374
|
*/
|
|
319
375
|
get boxPlotSeriesIndexWhenMeanLinesShown() {
|
|
320
|
-
return
|
|
376
|
+
return ve(this._config);
|
|
321
377
|
}
|
|
322
|
-
moveCustomSortValuesInOrderByList(e,
|
|
378
|
+
moveCustomSortValuesInOrderByList(e, i) {
|
|
323
379
|
const n = L(this._config), [s] = n.splice(e, 1);
|
|
324
|
-
n.splice(
|
|
380
|
+
n.splice(i, 0, s), B(n, this._config);
|
|
325
381
|
}
|
|
326
382
|
// ---------------------------------------------------------------------------------------------
|
|
327
383
|
// #region General Methods
|
|
@@ -330,7 +386,7 @@ class i extends T {
|
|
|
330
386
|
* Generate the proper chart title given the current config.
|
|
331
387
|
*/
|
|
332
388
|
generateChartTitle() {
|
|
333
|
-
return
|
|
389
|
+
return we(this._config, this.layerInfo, this.commonStrings);
|
|
334
390
|
}
|
|
335
391
|
/**
|
|
336
392
|
* Generate the proper y-axis title given the current config.
|
|
@@ -340,7 +396,7 @@ class i extends T {
|
|
|
340
396
|
}
|
|
341
397
|
resetSeriesStyling() {
|
|
342
398
|
for (let e = this.showMeanLines === !0 ? 1 : 0; e < this.seriesLength; e += 1) {
|
|
343
|
-
const
|
|
399
|
+
const i = this.getSeriesId(e), n = R({
|
|
344
400
|
colorIndex: e,
|
|
345
401
|
opacity: A
|
|
346
402
|
}), s = this._config.series[e];
|
|
@@ -351,7 +407,7 @@ class i extends T {
|
|
|
351
407
|
layerInfo: this.layerInfo,
|
|
352
408
|
commonStrings: this.commonStrings
|
|
353
409
|
});
|
|
354
|
-
M(a ??
|
|
410
|
+
M(a ?? i, e, this._config), this.showMeanLines === !0 && h(s) && (te(m, s), se(p, s));
|
|
355
411
|
}
|
|
356
412
|
this.showMeanLines === !0 && C(y, this._config), this._config.colorMatch = !0;
|
|
357
413
|
}
|
|
@@ -359,7 +415,7 @@ class i extends T {
|
|
|
359
415
|
* Returns whether the series styling is able to be reset.
|
|
360
416
|
*/
|
|
361
417
|
resetAvailable() {
|
|
362
|
-
const e = !this.colorMatch,
|
|
418
|
+
const e = !this.colorMatch, i = this.showMeanLines === !0 && this.meanLinesBoxColor !== y;
|
|
363
419
|
let n = !1, s = !1;
|
|
364
420
|
if (!e)
|
|
365
421
|
for (let a = this.showMeanLines === !0 ? 1 : 0; a < this.seriesLength; a += 1) {
|
|
@@ -368,89 +424,89 @@ class i extends T {
|
|
|
368
424
|
splitByField: this._splitByField,
|
|
369
425
|
layerInfo: this.layerInfo,
|
|
370
426
|
commonStrings: this.commonStrings
|
|
371
|
-
}),
|
|
372
|
-
if (g !== void 0 && g !==
|
|
427
|
+
}), b = this.getSeriesName(a);
|
|
428
|
+
if (g !== void 0 && g !== b) {
|
|
373
429
|
n = !0;
|
|
374
430
|
break;
|
|
375
431
|
}
|
|
376
432
|
if (this.showMeanLines === !0 && h(l)) {
|
|
377
|
-
const
|
|
378
|
-
if (
|
|
433
|
+
const v = this.getSeriesLineStyle(a), w = this.getSeriesLineWidth(a);
|
|
434
|
+
if (v !== m || w !== p) {
|
|
379
435
|
s = !0;
|
|
380
436
|
break;
|
|
381
437
|
}
|
|
382
438
|
}
|
|
383
439
|
}
|
|
384
|
-
return e ||
|
|
440
|
+
return e || i || n || s;
|
|
385
441
|
}
|
|
386
442
|
}
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
],
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
],
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
],
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
],
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
],
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
],
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
],
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
],
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
],
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
],
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
],
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
],
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
],
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
],
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
],
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
],
|
|
435
|
-
const
|
|
443
|
+
o([
|
|
444
|
+
r
|
|
445
|
+
], t.prototype, "showOutliers");
|
|
446
|
+
o([
|
|
447
|
+
r
|
|
448
|
+
], t.prototype, "standardizeValues");
|
|
449
|
+
o([
|
|
450
|
+
r
|
|
451
|
+
], t.prototype, "setSortOrder");
|
|
452
|
+
o([
|
|
453
|
+
r
|
|
454
|
+
], t.prototype, "setDataFilters");
|
|
455
|
+
o([
|
|
456
|
+
r
|
|
457
|
+
], t.prototype, "orderByList");
|
|
458
|
+
o([
|
|
459
|
+
r
|
|
460
|
+
], t.prototype, "showMeanLines");
|
|
461
|
+
o([
|
|
462
|
+
r
|
|
463
|
+
], t.prototype, "meanLinesBoxColor");
|
|
464
|
+
o([
|
|
465
|
+
r
|
|
466
|
+
], t.prototype, "resetConfig");
|
|
467
|
+
o([
|
|
468
|
+
r
|
|
469
|
+
], t.prototype, "setSeriesName");
|
|
470
|
+
o([
|
|
471
|
+
r
|
|
472
|
+
], t.prototype, "setSeriesColor");
|
|
473
|
+
o([
|
|
474
|
+
r
|
|
475
|
+
], t.prototype, "setSeriesLineStyle");
|
|
476
|
+
o([
|
|
477
|
+
r
|
|
478
|
+
], t.prototype, "setSeriesLineWidth");
|
|
479
|
+
o([
|
|
480
|
+
r
|
|
481
|
+
], t.prototype, "orderOfSeries");
|
|
482
|
+
o([
|
|
483
|
+
r
|
|
484
|
+
], t.prototype, "moveSeries");
|
|
485
|
+
o([
|
|
486
|
+
r
|
|
487
|
+
], t.prototype, "moveCustomSortValuesInOrderByList");
|
|
488
|
+
o([
|
|
489
|
+
r
|
|
490
|
+
], t.prototype, "resetSeriesStyling");
|
|
491
|
+
const Re = [
|
|
436
492
|
X,
|
|
493
|
+
E,
|
|
437
494
|
N,
|
|
438
|
-
R,
|
|
439
495
|
z,
|
|
440
496
|
$,
|
|
441
497
|
U,
|
|
442
498
|
Z,
|
|
443
499
|
j,
|
|
444
|
-
|
|
500
|
+
K,
|
|
445
501
|
J,
|
|
446
|
-
|
|
502
|
+
Y,
|
|
447
503
|
Q,
|
|
448
504
|
k,
|
|
505
|
+
q,
|
|
449
506
|
G,
|
|
450
|
-
K,
|
|
451
507
|
H
|
|
452
508
|
];
|
|
453
|
-
ae(
|
|
509
|
+
ae(t, Re);
|
|
454
510
|
export {
|
|
455
|
-
|
|
511
|
+
t as BoxPlotModel
|
|
456
512
|
};
|
|
@@ -3,7 +3,7 @@ import { F as o, W as f } from "./interfaces.js";
|
|
|
3
3
|
import { i as b } from "./utils.js";
|
|
4
4
|
import { R as u } from "./rest-js-object-literals.js";
|
|
5
5
|
import { d as r, l as m } from "./chart-object-literals.js";
|
|
6
|
-
import { D as p,
|
|
6
|
+
import { D as p, bF as g } from "./index.js";
|
|
7
7
|
import { t as d } from "./index2.js";
|
|
8
8
|
import { F as n } from "./common.js";
|
|
9
9
|
const F = {
|
|
@@ -55,12 +55,12 @@ function C(e) {
|
|
|
55
55
|
}
|
|
56
56
|
return t;
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function x(e, t, a) {
|
|
59
59
|
let i = !1;
|
|
60
60
|
const s = typeof e == "string" ? Number.parseFloat(e) : e, c = typeof t == "string" ? Number.parseFloat(t) : t, l = typeof a == "string" ? Number.parseFloat(a) : a;
|
|
61
61
|
return Number.isNaN(s) || (i = (c === void 0 || Number.isNaN(c) || s >= c) && (l === void 0 || Number.isNaN(l) || s <= l)), i;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function A(e, t) {
|
|
64
64
|
let a;
|
|
65
65
|
if (e !== null) {
|
|
66
66
|
const i = typeof e == "string" ? Number.parseFloat(e) : e;
|
|
@@ -68,7 +68,7 @@ function x(e, t) {
|
|
|
68
68
|
}
|
|
69
69
|
return a === void 0 ? "" : `${a}`;
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function E(e) {
|
|
72
72
|
const { inputElement: t, status: a } = e;
|
|
73
73
|
t.status = a;
|
|
74
74
|
}
|
|
@@ -160,13 +160,13 @@ export {
|
|
|
160
160
|
P as f,
|
|
161
161
|
U as g,
|
|
162
162
|
C as h,
|
|
163
|
-
|
|
163
|
+
x as i,
|
|
164
164
|
w as j,
|
|
165
165
|
W as k,
|
|
166
166
|
R as l,
|
|
167
|
-
|
|
167
|
+
E as m,
|
|
168
168
|
V as n,
|
|
169
169
|
M as o,
|
|
170
170
|
I as p,
|
|
171
|
-
|
|
171
|
+
A as s
|
|
172
172
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import G from "@arcgis/core/Color.js";
|
|
3
3
|
import { createClassBreaksRenderer as J } from "@arcgis/core/smartMapping/renderers/color.js";
|
|
4
|
-
import {
|
|
4
|
+
import { ce as Y, cf as L } from "./index.js";
|
|
5
5
|
import { cloneDeep as Q, memoize as U, isEqual as O, sortBy as X, flatMap as Z } from "es-toolkit/compat";
|
|
6
6
|
import { getSchemes as ee } from "@arcgis/core/smartMapping/symbology/color.js";
|
|
7
7
|
import { i as V } from "./index3.js";
|
|
@@ -5,7 +5,7 @@ import { g as u, a as k, e as C, b as M, f as v, s as z, h as O, c as B, i as V,
|
|
|
5
5
|
import { S as T, s as I } from "./serial-chart-model.js";
|
|
6
6
|
import { h as N } from "./utils.js";
|
|
7
7
|
import { a as n } from "./chart-object-literals.js";
|
|
8
|
-
import {
|
|
8
|
+
import { c4 as q, r as S, c6 as d, c3 as R } from "./index.js";
|
|
9
9
|
import { an as Y, $ as h, Y as y } from "./index3.js";
|
|
10
10
|
var $ = Object.defineProperty, E = Object.getOwnPropertyDescriptor, l = (c, e, i, o) => {
|
|
11
11
|
for (var s = E(e, i), t = c.length - 1, f; t >= 0; t--)
|
package/dist/chunks/data.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { capitalize as u } from "es-toolkit/compat";
|
|
3
|
-
import { aO as B, p as L, r as $, q as N,
|
|
3
|
+
import { aO as B, p as L, r as $, q as N, ct as I, c1 as h, bF as H, w as P, cd as _, y as v } from "./index.js";
|
|
4
4
|
import { g as C } from "./series-types.js";
|
|
5
|
-
import { H as A, S as o, P as
|
|
5
|
+
import { H as A, S as o, P as M } from "./common.js";
|
|
6
6
|
import { g as l, t as n, a as d, d as g } from "./chart-object-literals.js";
|
|
7
|
-
import { a as
|
|
8
|
-
import { l as
|
|
9
|
-
import { i as
|
|
7
|
+
import { a as U } from "./index2.js";
|
|
8
|
+
import { l as W } from "./index3.js";
|
|
9
|
+
import { i as E } from "./type-guards.js";
|
|
10
10
|
function K(e, r) {
|
|
11
11
|
let s;
|
|
12
12
|
return r === n.Category && Array.isArray(e) ? s = o.customSort : r === n.Category ? s = e === l.Ascending ? o.xAxisAsc : o.xAxisDesc : e === l.Ascending ? s = o.yAxisAsc : s = o.yAxisDesc, s;
|
|
@@ -67,7 +67,7 @@ const R = (e) => {
|
|
|
67
67
|
fieldList: O
|
|
68
68
|
} = e, T = C(r.series), b = L(r.series);
|
|
69
69
|
let f;
|
|
70
|
-
if (
|
|
70
|
+
if (E(a)) {
|
|
71
71
|
const y = I(a);
|
|
72
72
|
f = t.length === 1 && t[0] === y;
|
|
73
73
|
} else {
|
|
@@ -77,7 +77,7 @@ const R = (e) => {
|
|
|
77
77
|
let p = "y", F = "y";
|
|
78
78
|
switch (T) {
|
|
79
79
|
case d.PieSeries: {
|
|
80
|
-
i !== g.NoAggregation ? m ===
|
|
80
|
+
i !== g.NoAggregation ? m === M.Category ? (p = `${i}_${t[0]}_0`.toUpperCase(), F = f ? u(g.Count) : u(`${i} of ${t[0]}`)) : p = v : p = t[0];
|
|
81
81
|
break;
|
|
82
82
|
}
|
|
83
83
|
case d.BarSeries:
|
|
@@ -90,7 +90,7 @@ const R = (e) => {
|
|
|
90
90
|
fieldName: s,
|
|
91
91
|
numericFields: t,
|
|
92
92
|
fieldList: O ?? []
|
|
93
|
-
}) || b ===
|
|
93
|
+
}) || b === U.BarAndLineFromFields ? p = _ : (p = i !== g.NoAggregation ? `${i}_${t[c ?? 0]}_${c ?? 0}`.toUpperCase() : t[c ?? 0], F = f ? u(g.Count) : u(`${i} of ${t[c ?? 0]}`));
|
|
94
94
|
else {
|
|
95
95
|
const y = t[0];
|
|
96
96
|
p = i !== g.NoAggregation ? `${i}_${y}_${x ?? 0}`.toUpperCase() : y, F = f ? u(g.Count) : u(`${i} of ${y}`);
|
|
@@ -105,7 +105,7 @@ const R = (e) => {
|
|
|
105
105
|
};
|
|
106
106
|
function Y(e) {
|
|
107
107
|
const { fieldName: r, fieldList: s } = e, t = h(s ?? [], r);
|
|
108
|
-
return r === H || r === P || r ===
|
|
108
|
+
return r === H || r === P || r === W || r === void 0 || r.trim() === "" || t === void 0;
|
|
109
109
|
}
|
|
110
110
|
function j(e) {
|
|
111
111
|
const { fieldName: r, fieldList: s, numericFields: t } = e, i = t.filter((m) => h(s ?? [], m)?.type !== "esriFieldTypeOID");
|