@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.
Files changed (141) hide show
  1. package/dist/cdn/{BXBY6D2F.js → 3IUZSUBJ.js} +1 -1
  2. package/dist/cdn/{DPTA2AET.js → 4DXQ255M.js} +1 -1
  3. package/dist/cdn/{67QYTLMM.js → 4F2MTKVF.js} +1 -1
  4. package/dist/cdn/4HNA5BEL.js +2 -0
  5. package/dist/cdn/{PLEC3GNT.js → 4II4V3R4.js} +1 -1
  6. package/dist/cdn/{ZWIF7LHW.js → 4SV3ARJE.js} +1 -1
  7. package/dist/cdn/{WTJ2NJ76.js → 5K4LYQAP.js} +1 -1
  8. package/dist/cdn/{2RYKKN36.js → 65QZ37RL.js} +1 -1
  9. package/dist/cdn/{O3VKOV2W.js → 6T37GQMM.js} +1 -1
  10. package/dist/cdn/{4COV22K4.js → 6ZJ4DH7D.js} +1 -1
  11. package/dist/cdn/{LGTXQIF7.js → 7H7MFSEY.js} +1 -1
  12. package/dist/cdn/{3YCGBAQY.js → 7JW7BKCY.js} +1 -1
  13. package/dist/cdn/{GARBFC7Q.js → 7Q5SYLKV.js} +1 -1
  14. package/dist/cdn/{BLZLMGO6.js → AJAOQCPS.js} +1 -1
  15. package/dist/cdn/{3AYXOX4U.js → AMM6O6DA.js} +1 -1
  16. package/dist/cdn/{JBFVGQSP.js → BIABAOQA.js} +1 -1
  17. package/dist/cdn/{Y5ZH7VS4.js → BP3IZMZQ.js} +1 -1
  18. package/dist/cdn/{WFW6BNDT.js → CNIDLTWS.js} +1 -1
  19. package/dist/cdn/{DGV6S2W3.js → CUW7EDSM.js} +1 -1
  20. package/dist/cdn/{QZCTLQBM.js → D5IKYXWS.js} +1 -1
  21. package/dist/cdn/DA4QOTYN.js +2 -0
  22. package/dist/cdn/{XM2GVJT3.js → DQXO7PWX.js} +1 -1
  23. package/dist/cdn/{6MNV7FJC.js → DT4C4JZW.js} +1 -1
  24. package/dist/cdn/{SYVPFDIW.js → EEF2GZWF.js} +1 -1
  25. package/dist/cdn/ELRXL4GL.js +2 -0
  26. package/dist/cdn/{6DOANSRL.js → FLA3PJ5I.js} +18 -18
  27. package/dist/cdn/{EUOJG5H6.js → FZOZWZSG.js} +1 -1
  28. package/dist/cdn/{AYUYEY5H.js → G3I2WY7S.js} +1 -1
  29. package/dist/cdn/{MJTWR33N.js → GK3ESMF2.js} +1 -1
  30. package/dist/cdn/{I3XBTQKJ.js → GQKDPSP6.js} +1 -1
  31. package/dist/cdn/{Z3LGGHZN.js → GRIVRWCF.js} +1 -1
  32. package/dist/cdn/{OWWQ5SYW.js → HHZSG3K6.js} +1 -1
  33. package/dist/cdn/{ZGBULDPL.js → IB5R6XBE.js} +1 -1
  34. package/dist/cdn/{EOHKNJSJ.js → INSAYWFB.js} +1 -1
  35. package/dist/cdn/{ZLXYBOM3.js → IP7NR32G.js} +1 -1
  36. package/dist/cdn/IPMFDZBI.js +2 -0
  37. package/dist/cdn/{JGESKW6S.js → JBO56HPJ.js} +1 -1
  38. package/dist/cdn/{RICA7GJM.js → JE4ZLQEX.js} +1 -1
  39. package/dist/cdn/JT2CHRVO.js +2 -0
  40. package/dist/cdn/JYS5HVHP.js +2 -0
  41. package/dist/cdn/{HOIPLQXD.js → KBMGQ3H6.js} +1 -1
  42. package/dist/cdn/{EAV3KAS7.js → KO6XLCKT.js} +1 -1
  43. package/dist/cdn/LK7Y2TPS.js +2 -0
  44. package/dist/cdn/{5YP7P6S3.js → LNMXGS7N.js} +1 -1
  45. package/dist/cdn/{HUNN3ERX.js → LYLK7H23.js} +1 -1
  46. package/dist/cdn/{2G65P262.js → MIL4ALAU.js} +1 -1
  47. package/dist/cdn/{NK66D65H.js → MIMPZBTK.js} +1 -1
  48. package/dist/cdn/{EMBMJCFZ.js → MN5LEOFQ.js} +1 -1
  49. package/dist/cdn/{5EYVH3PA.js → MRA3XRKD.js} +1 -1
  50. package/dist/cdn/{MXE4VPZS.js → MYAMCWA2.js} +1 -1
  51. package/dist/cdn/{TEWEPSIO.js → N2BF3AIP.js} +1 -1
  52. package/dist/cdn/{SUNHJPBW.js → NQYCZQ27.js} +1 -1
  53. package/dist/cdn/{UM7RIOCE.js → NSS4WWO7.js} +1 -1
  54. package/dist/cdn/{Y2WHHAAA.js → P7VFYZRI.js} +1 -1
  55. package/dist/cdn/{T62EETHJ.js → PZFM3BRK.js} +1 -1
  56. package/dist/cdn/PZUVU7CC.js +3 -0
  57. package/dist/cdn/{SQIKFO32.js → Q376XO5C.js} +1 -1
  58. package/dist/cdn/{VA6KJZ2Y.js → QGKWF4LR.js} +1 -1
  59. package/dist/cdn/QS6QHTAG.js +2 -0
  60. package/dist/cdn/{A36KQ6YP.js → QSFEGKYQ.js} +1 -1
  61. package/dist/cdn/{M744CFJ2.js → QXN2LIUA.js} +1 -1
  62. package/dist/cdn/{QTSF2LK7.js → R7VPFCG2.js} +1 -1
  63. package/dist/cdn/{BKK57XHL.js → S3YPXZ3Y.js} +1 -1
  64. package/dist/cdn/{J3CL6KB6.js → S7B57I24.js} +1 -1
  65. package/dist/cdn/{ANHW36VW.js → SSYHOPL2.js} +1 -1
  66. package/dist/cdn/{DBAM7MH7.js → SYU55EDE.js} +1 -1
  67. package/dist/cdn/{BHGOAHMJ.js → TGABTYRZ.js} +1 -1
  68. package/dist/cdn/{WZOHQJFB.js → TGXTKIAA.js} +1 -1
  69. package/dist/cdn/{JS6A5QAV.js → TRXKI7AQ.js} +1 -1
  70. package/dist/cdn/{KDCZQ6UT.js → V2POH2WS.js} +1 -1
  71. package/dist/cdn/{ISK4QVLY.js → VZPJL27P.js} +1 -1
  72. package/dist/cdn/WOE4UHYG.js +2 -0
  73. package/dist/cdn/WUUBA4AY.js +2 -0
  74. package/dist/cdn/{P5QEJOJS.js → X3B7R2CE.js} +1 -1
  75. package/dist/cdn/{JYITKARU.js → X4RUTR6U.js} +1 -1
  76. package/dist/cdn/{5MPXETTU.js → X7BEP5KL.js} +1 -1
  77. package/dist/cdn/{INISFVAK.js → XM6OTYSW.js} +1 -1
  78. package/dist/cdn/XS5G7ML2.js +2 -0
  79. package/dist/cdn/{KWA7OWHO.js → YN4QD76O.js} +1 -1
  80. package/dist/cdn/YQJBJRP7.js +2 -0
  81. package/dist/cdn/{L7TUV2MY.js → YWJTHRQP.js} +1 -1
  82. package/dist/cdn/{7DIQIFKR.js → ZOZ72K4S.js} +1 -1
  83. package/dist/cdn/index.js +1 -1
  84. package/dist/cdn/model/shared/setup-utils.js +1 -1
  85. package/dist/chunks/bar-chart-model.js +10 -10
  86. package/dist/chunks/box-plot-data.js +271 -279
  87. package/dist/chunks/box-plot-model.js +161 -146
  88. package/dist/chunks/chart-model.js +1 -1
  89. package/dist/chunks/class-breaks.js +66 -66
  90. package/dist/chunks/combo-bar-line-chart-model.js +12 -12
  91. package/dist/chunks/data.js +1 -1
  92. package/dist/chunks/gauge-model.js +1 -1
  93. package/dist/chunks/heat-chart-model.js +25 -25
  94. package/dist/chunks/histogram-model.js +1 -1
  95. package/dist/chunks/index2.js +2026 -2088
  96. package/dist/chunks/index4.js +1 -1
  97. package/dist/chunks/line-chart-model.js +11 -11
  98. package/dist/chunks/model-with-x-guides.js +5 -5
  99. package/dist/chunks/model-with-y-guides.js +33 -48
  100. package/dist/chunks/pie-chart-data.js +165 -189
  101. package/dist/chunks/pie-chart-model.js +9 -9
  102. package/dist/chunks/radar-chart-model.js +7 -7
  103. package/dist/chunks/scatterplot-model.js +1 -1
  104. package/dist/chunks/serial-chart-data.js +745 -770
  105. package/dist/chunks/serial-chart-model.js +19 -11
  106. package/dist/chunks/utils.js +36 -38
  107. package/dist/chunks/web-component-utils.js +38 -38
  108. package/dist/chunks/x-bounds.js +1 -1
  109. package/dist/components/arcgis-chart/customElement.d.ts +53 -11
  110. package/dist/components/arcgis-chart/customElement.js +2226 -2210
  111. package/dist/components/arcgis-charts-config-create-flow/customElement.js +1 -1
  112. package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +67 -68
  113. package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +5 -5
  114. package/dist/docs/api.json +1 -1
  115. package/dist/docs/docs.json +1 -1
  116. package/dist/docs/vscode.html-custom-data.json +1 -1
  117. package/dist/docs/web-types.json +1 -1
  118. package/dist/index.js +171 -172
  119. package/dist/model/box-plot-model/box-plot-model.d.ts +7 -1
  120. package/dist/model/heat-chart-model/heat-chart-model.d.ts +20 -0
  121. package/dist/model/mixins/model-with-multi-axes.d.ts +61 -98
  122. package/dist/model/serial-chart-model/serial-chart-model.d.ts +12 -1
  123. package/dist/utils/chart-config/converter/index.js +26 -26
  124. package/dist/utils/data/categorical-data/index.d.ts +1 -1
  125. package/dist/utils/data/index.d.ts +1 -2
  126. package/dist/utils/layer/query-features/index.d.ts +2 -18
  127. package/dist/utils/layer/query-parser/index.d.ts +1 -2
  128. package/package.json +3 -3
  129. package/dist/cdn/3UHXOKCR.js +0 -2
  130. package/dist/cdn/54W4C75M.js +0 -2
  131. package/dist/cdn/6PIQ2O5S.js +0 -2
  132. package/dist/cdn/7CMQGTU6.js +0 -2
  133. package/dist/cdn/EBSQRCQQ.js +0 -2
  134. package/dist/cdn/EDVN42ME.js +0 -2
  135. package/dist/cdn/H2EMIJME.js +0 -2
  136. package/dist/cdn/JEVWE6ER.js +0 -2
  137. package/dist/cdn/O3DJD5IR.js +0 -2
  138. package/dist/cdn/V5W5LNFT.js +0 -2
  139. package/dist/cdn/V6LKZUEZ.js +0 -3
  140. package/dist/cdn/XKZ44LA2.js +0 -2
  141. 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 A } from "./chart-object-literals.js";
4
- import { g as f, C as P, E as D, ap as T, aF as V, h as y, m, n as p } from "./index.js";
5
- import { bs as l } from "./index2.js";
6
- import { C as E } from "./chart-model.js";
7
- import { m as o } from "./model-setter.js";
8
- import { B as N } from "./common.js";
9
- import { M as R, a as U, W as z, b as X } from "./data-labels-visibility.js";
10
- import { M as j, a as k } from "./model-with-y-guides.js";
11
- import { W as K, c as Y, d as G } from "./axis-lines-symbol.js";
12
- import { W as q, c as H, d as J } from "./generate-x-axis-title.js";
13
- import { W as Q, a as Z } from "./x-bounds.js";
14
- import { W as $ } from "./data-labels-symbol.js";
15
- import { W as ee } from "./rotated-state.js";
16
- import { g as te, s as u, b as se, a as S } from "./series.js";
17
- import { k as ie, j as re, h as oe } from "./utils.js";
18
- import { s as ne, d as ae, e as le, f as he, h as ce, i as L, j as _, k as C, l as B, m as M, g as ge, n as de, o as fe, p as F, a as ye, c as me, b as pe, q as ue, r as x, t as Se, u as v, v as Le, w, x as _e, y as Ce, z as Be, A as Me, B as Fe, C as xe, D as b } from "./box-plot-data.js";
19
- var ve = Object.defineProperty, we = Object.getOwnPropertyDescriptor, n = (c, e, t, s) => {
20
- for (var r = we(e, t), a = c.length - 1, h; a >= 0; a--)
21
- (h = c[a]) && (r = h(e, t, r) || r);
22
- return r && ve(e, t, r), r;
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 i extends E {
24
+ class s extends N {
25
25
  constructor() {
26
- super(...arguments), this._chartType = A.BoxPlotSeries, this._category = f, this._splitByField = "", this._numericFields = [];
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.updateSeriesFromLayerFilter(), typeof this.resolveSetup == "function" && this.resolveSetup();
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.dirtyAsyncSetters.push("category"), this.processSeriesRebuild();
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]), ie(t, e) ? (this._numericFields = e, this.dirtyAsyncSetters.push("numericFields"), ne(this._category, this._numericFields) && (this._splitByField = "", this.dirtyAsyncSetters.push("splitByField")), this.processSeriesRebuild()) : d("error", "box-plot-model", "Invalid `numericFields`");
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.dirtyAsyncSetters.push("splitByField"), this.processSeriesRebuild()) : d("error", "box-plot-model", "Invalid `splitByField`");
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 ae(this._config);
67
+ return he(this._config);
68
68
  }
69
69
  set showOutliers(e) {
70
- le({
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 he(this._config);
81
+ return ge(this._config);
82
82
  }
83
83
  set standardizeValues(e) {
84
- ce({
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 L(this._config);
95
+ return _(this._config);
96
96
  }
97
97
  setSortOrder(e, t) {
98
- _(e, this._config, t);
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 C({
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 = L(this._config);
113
- if (t === N.customSort) {
112
+ const t = _(this._config);
113
+ if (t === R.customSort) {
114
114
  this.startAsyncUpdate();
115
- const s = await C({
115
+ const i = await B({
116
116
  config: this._config,
117
117
  layerInfo: this.layerInfo,
118
118
  errorStrings: this.commonStrings.errorStrings
119
119
  });
120
- _(t, this._config, s), this.finishAsyncUpdate();
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 B(this._config);
128
+ return C(this._config);
129
129
  }
130
130
  set orderByList(e) {
131
- M(e, this._config);
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.dirtyAsyncSetters.push("updateSeriesFromLayerFilter"), await this.processSeriesRebuild();
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 ge(this._config);
154
+ return fe(this._config);
147
155
  }
148
156
  set showMeanLines(e) {
149
- const { previousMeanLinesBoxColor: t } = de({
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 fe(this._config);
171
+ return pe(this._config);
164
172
  }
165
173
  set meanLinesBoxColor(e) {
166
- F(e, this._config);
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 = ye(this._config), this._splitByField = me(this._config), this._numericFields = pe(this._config);
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 = P(this.commonStrings);
181
- return e.series = [D(this.commonStrings)], e;
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 can rebuild the series synchronously.
189
- * We can call the build new series function synchronously when either is true:
190
- * - there is no split-by field
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
- canUseSynchronousSeriesRebuild() {
196
- return !ue(this.category, this.numericFields, this.splitByField);
203
+ usingSplitBy() {
204
+ return _e(this.category, this.numericFields, this.splitByField);
197
205
  }
198
206
  /**
199
207
  * Processes the series rebuild.
200
- * If multiple async setters are called in succession, this function will only rebuild the series once after all setters have been called.
208
+ *
201
209
  * @private
202
210
  */
203
- async processSeriesRebuild() {
204
- if (this.layerInfo !== void 0) {
205
- const e = this.dirtyAsyncSetters[this.dirtyAsyncSetters.length - 1];
206
- if (this.canUseSynchronousSeriesRebuild())
207
- this.dirtyAsyncSetters = [], x(this.getBuildNewSeriesProps());
208
- else if (!this.asyncConfigUpdateInProgress) {
209
- for (this.startAsyncUpdate(); this.dirtyAsyncSetters.length > 0; )
210
- this.dirtyAsyncSetters = [], await x(this.getBuildNewSeriesProps());
211
- this.finishAsyncUpdate();
212
- }
213
- this.setupLocalProps(), this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")), this.emitConfigUpdate(e);
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 Se(e, this._config);
256
+ return Be(e, this._config);
242
257
  }
243
258
  setSeriesName(e, t) {
244
- v(e, t, this._config);
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 Le(e, this._config);
267
+ return Ce(e, this._config);
253
268
  }
254
269
  setSeriesColor(e, t) {
255
- w(e, t, this._config);
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 te(t);
282
+ return ie(t);
268
283
  }
269
284
  setSeriesLineStyle(e, t) {
270
- const s = this._config.series[t];
271
- this.showMeanLines === !0 && l(s) && u(e, s);
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 s = this._config.series[t];
287
- this.showMeanLines === !0 && l(s) && S(e, s);
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 _e(this._config);
308
+ return Fe(this._config);
294
309
  }
295
310
  set orderOfSeries(e) {
296
- Ce(e, this._config);
311
+ Me(e, this._config);
297
312
  }
298
313
  moveSeries(e, t) {
299
- Be(e, t, this._config);
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 Me(this._config);
322
+ return Ie(this._config);
308
323
  }
309
324
  moveCustomSortValuesInOrderByList(e, t) {
310
- const s = B(this._config), [r] = s.splice(e, 1);
311
- s.splice(t, 0, r), M(s, this._config);
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 Fe(this._config, this.layerInfo, this.commonStrings);
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 xe(this._config, this.layerInfo, this.commonStrings);
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), s = T({
345
+ const t = this.getSeriesId(e), i = V({
331
346
  colorIndex: e,
332
- opacity: V
333
- }), r = this._config.series[e];
334
- w(s, e, this._config);
335
- const a = b({
336
- series: r,
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
- v(a ?? t, e, this._config), this.showMeanLines === !0 && l(r) && (u(m, r), S(p, r));
356
+ I(a ?? t, e, this._config), this.showMeanLines === !0 && l(o) && (u(p, o), S(m, o));
342
357
  }
343
- this.showMeanLines === !0 && F(y, this._config), this._config.colorMatch = !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 s = !1, r = !1;
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 = b({
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
- }), W = this.getSeriesName(a);
359
- if (g !== void 0 && g !== W) {
360
- s = !0;
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 I = this.getSeriesLineStyle(a), O = this.getSeriesLineWidth(a);
365
- if (I !== m || O !== p) {
366
- r = !0;
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 || s || r;
386
+ return e || t || i || o;
372
387
  }
373
388
  }
374
389
  n([
375
- o
376
- ], i.prototype, "showOutliers");
390
+ r
391
+ ], s.prototype, "showOutliers");
377
392
  n([
378
- o
379
- ], i.prototype, "standardizeValues");
393
+ r
394
+ ], s.prototype, "standardizeValues");
380
395
  n([
381
- o
382
- ], i.prototype, "setSortOrder");
396
+ r
397
+ ], s.prototype, "setSortOrder");
383
398
  n([
384
- o
385
- ], i.prototype, "setDataFilters");
399
+ r
400
+ ], s.prototype, "setDataFilters");
386
401
  n([
387
- o
388
- ], i.prototype, "orderByList");
402
+ r
403
+ ], s.prototype, "orderByList");
389
404
  n([
390
- o
391
- ], i.prototype, "showMeanLines");
405
+ r
406
+ ], s.prototype, "showMeanLines");
392
407
  n([
393
- o
394
- ], i.prototype, "meanLinesBoxColor");
408
+ r
409
+ ], s.prototype, "meanLinesBoxColor");
395
410
  n([
396
- o
397
- ], i.prototype, "resetConfig");
411
+ r
412
+ ], s.prototype, "resetConfig");
398
413
  n([
399
- o
400
- ], i.prototype, "setSeriesName");
414
+ r
415
+ ], s.prototype, "setSeriesName");
401
416
  n([
402
- o
403
- ], i.prototype, "setSeriesColor");
417
+ r
418
+ ], s.prototype, "setSeriesColor");
404
419
  n([
405
- o
406
- ], i.prototype, "setSeriesLineStyle");
420
+ r
421
+ ], s.prototype, "setSeriesLineStyle");
407
422
  n([
408
- o
409
- ], i.prototype, "setSeriesLineWidth");
423
+ r
424
+ ], s.prototype, "setSeriesLineWidth");
410
425
  n([
411
- o
412
- ], i.prototype, "orderOfSeries");
426
+ r
427
+ ], s.prototype, "orderOfSeries");
413
428
  n([
414
- o
415
- ], i.prototype, "moveSeries");
429
+ r
430
+ ], s.prototype, "moveSeries");
416
431
  n([
417
- o
418
- ], i.prototype, "moveCustomSortValuesInOrderByList");
432
+ r
433
+ ], s.prototype, "moveCustomSortValuesInOrderByList");
419
434
  n([
420
- o
421
- ], i.prototype, "resetSeriesStyling");
422
- const be = [
423
- j,
424
- R,
425
- U,
435
+ r
436
+ ], s.prototype, "resetSeriesStyling");
437
+ const Oe = [
438
+ k,
426
439
  z,
427
- ee,
440
+ U,
428
441
  X,
429
- $,
430
- k,
431
- q,
432
- Q,
442
+ te,
443
+ j,
444
+ ee,
445
+ K,
433
446
  H,
434
447
  Z,
435
- K,
448
+ J,
449
+ $,
436
450
  Y,
451
+ q,
437
452
  G,
438
- J
453
+ Q
439
454
  ];
440
- oe(i, be);
455
+ ae(s, Oe);
441
456
  export {
442
- i as BoxPlotModel
457
+ s as BoxPlotModel
443
458
  };
@@ -1,5 +1,5 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { h as j } from "./utils.js";
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";