@arcgis/charts-components 5.2.0-next.85 → 5.2.0-next.87

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 (69) hide show
  1. package/dist/cdn/{YAWW63A5.js → 2Y4OUUMJ.js} +1 -1
  2. package/dist/cdn/{MJHVSD5B.js → 32KKW2IG.js} +1 -1
  3. package/dist/cdn/{2MF442VT.js → 3N6RFNEA.js} +1 -1
  4. package/dist/cdn/{KG574LAE.js → 3ZF4RSY4.js} +1 -1
  5. package/dist/cdn/{XHZAAQMF.js → 5EU4GHSG.js} +1 -1
  6. package/dist/cdn/{R5VDQBUH.js → 5LKJE2PR.js} +1 -1
  7. package/dist/cdn/{LCTDNI27.js → 6AWJXWDQ.js} +1 -1
  8. package/dist/cdn/7U6OEWTI.js +2 -0
  9. package/dist/cdn/{KHJC5P5T.js → AL6VZ6UZ.js} +1 -1
  10. package/dist/cdn/{IVM37XFX.js → APU26Y2Z.js} +1 -1
  11. package/dist/cdn/AWN3K3IH.js +2 -0
  12. package/dist/cdn/DNHE5ZCA.js +2 -0
  13. package/dist/cdn/DV7I4E5D.js +2 -0
  14. package/dist/cdn/EHYBMIDH.js +2 -0
  15. package/dist/cdn/FF46DEA7.js +2 -0
  16. package/dist/cdn/HX4HUXZP.js +2 -0
  17. package/dist/cdn/{JQM5R6XW.js → IG43EKA6.js} +1 -1
  18. package/dist/cdn/{FRTPDJGW.js → KE4AIHA7.js} +1 -1
  19. package/dist/cdn/{4U2HIMOR.js → LYSF2KY5.js} +1 -1
  20. package/dist/cdn/{CFOB77PI.js → N634G5MT.js} +1 -1
  21. package/dist/cdn/{NH2A5QEU.js → OADNRXFH.js} +1 -1
  22. package/dist/cdn/OGGEEHV2.js +2 -0
  23. package/dist/cdn/{GX64OP3A.js → OWYKZMAE.js} +1 -1
  24. package/dist/cdn/{3SSQPYQA.js → PDHWZPY5.js} +1 -1
  25. package/dist/cdn/{NIDXK3GN.js → PK7GYSIR.js} +1 -1
  26. package/dist/cdn/{7JA63ENU.js → PTGBFACY.js} +2 -2
  27. package/dist/cdn/QJFHIO72.js +2 -0
  28. package/dist/cdn/{PMTNALXO.js → R3XOXHKQ.js} +1 -1
  29. package/dist/cdn/{7SIKOCYK.js → R6RFH2KK.js} +1 -1
  30. package/dist/cdn/{EYYTKCXM.js → T6OTQUMI.js} +1 -1
  31. package/dist/cdn/{FQKGQHVK.js → TMLVMG4C.js} +1 -1
  32. package/dist/cdn/{4KF7SUJE.js → TVW2GMA6.js} +1 -1
  33. package/dist/cdn/{CVWT6DGY.js → UOL7KBJK.js} +1 -1
  34. package/dist/cdn/{HOASAQAB.js → VNWPA5A2.js} +1 -1
  35. package/dist/cdn/XHSD437D.js +2 -0
  36. package/dist/cdn/{XU7TGV75.js → XQRGIPLK.js} +1 -1
  37. package/dist/cdn/{DW5NK2B3.js → ZG3WNUBC.js} +1 -1
  38. package/dist/cdn/index.js +1 -1
  39. package/dist/cdn/model/shared/setup-utils.js +1 -1
  40. package/dist/chart-rendering/common/interfaces.d.ts +1 -5
  41. package/dist/chunks/bar-chart-model.js +8 -4
  42. package/dist/chunks/box-plot-data.js +138 -112
  43. package/dist/chunks/box-plot-model.js +131 -133
  44. package/dist/chunks/combo-bar-line-chart-model.js +115 -102
  45. package/dist/chunks/line-chart-model.js +33 -17
  46. package/dist/chunks/model-setter.js +43 -71
  47. package/dist/chunks/model-with-line-marker-styling.js +59 -43
  48. package/dist/chunks/negative-values-stacked-to-baseline.js +111 -64
  49. package/dist/chunks/radar-chart-model.js +26 -10
  50. package/dist/chunks/rounded-corners.js +47 -30
  51. package/dist/components/arcgis-chart/customElement.js +4 -3
  52. package/dist/docs/api.json +1 -1
  53. package/dist/docs/docs.json +1 -1
  54. package/dist/docs/web-types.json +1 -1
  55. package/dist/model/bar-chart-model/bar-chart-model.d.ts +2 -2
  56. package/dist/model/box-plot-model/box-plot-model.d.ts +4 -4
  57. package/dist/model/combo-bar-line-chart-model/combo-bar-line-chart-model.d.ts +14 -14
  58. package/dist/model/mixins/model-with-line-marker-styling.d.ts +12 -12
  59. package/package.json +6 -6
  60. package/dist/cdn/72VGCAR5.js +0 -2
  61. package/dist/cdn/DE3CJJG3.js +0 -2
  62. package/dist/cdn/EZLKMWI5.js +0 -2
  63. package/dist/cdn/JMMNRCD4.js +0 -2
  64. package/dist/cdn/JUU3BZT7.js +0 -2
  65. package/dist/cdn/LMTSW3JM.js +0 -2
  66. package/dist/cdn/TBW6K2TY.js +0 -2
  67. package/dist/cdn/TSU6UVTL.js +0 -2
  68. package/dist/cdn/ZDUW3TBJ.js +0 -2
  69. package/dist/cdn/ZGIM53IQ.js +0 -2
@@ -1,29 +1,29 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { log as d } from "@arcgis/toolkit/log";
3
- import { a as P } from "./chart-object-literals.js";
4
- import { l as f, ao as D, a9 as A, g as V, aa as y, am as m, ab as p, r as T } from "./index3.js";
5
- import { c6 as E, c1 as l } from "./index.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";
3
+ import { a as W } from "./chart-object-literals.js";
4
+ import { l as f, ao as O, a9 as P, g as D, aa as y, am as m, ab as p, r as A } from "./index3.js";
5
+ import { c6 as V, c1 as h } from "./index.js";
6
+ import { C as T } from "./chart-model.js";
7
+ import { m as o } from "./model-setter.js";
8
+ import { B as E } from "./common.js";
9
+ import { M as N, a as R, W as z, b as U } from "./data-labels-visibility.js";
10
+ import { M as X, a as j } from "./model-with-y-guides.js";
11
+ import { W as k, c as G, d as K } from "./axis-lines-symbol.js";
12
+ import { W as Y, c as q, d as H } from "./generate-x-axis-title.js";
13
+ import { W as J, a as Q } from "./x-bounds.js";
14
+ import { W as Z } from "./data-labels-symbol.js";
15
+ import { W as $ } from "./rotated-state.js";
16
+ import { g as ee, b as te, s as ie, a as se } from "./series.js";
17
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 me, p as M, a as pe, 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;
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 we, D as be, E as ve, F as We, G as I } from "./box-plot-data.js";
19
+ var Oe = Object.defineProperty, Pe = Object.getOwnPropertyDescriptor, r = (c, e, t, n) => {
20
+ for (var s = Pe(e, t), a = c.length - 1, l; a >= 0; a--)
21
+ (l = c[a]) && (s = l(e, t, s) || s);
22
+ return s && Oe(e, t, s), s;
23
23
  };
24
- class s extends N {
24
+ class i extends T {
25
25
  constructor() {
26
- super(...arguments), this._chartType = P.BoxPlotSeries, this._category = f, this._splitByField = "", this._numericFields = [];
26
+ super(...arguments), this._chartType = W.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.rebuildSeries(), typeof this.resolveSetup == "function" && this.resolveSetup();
@@ -92,16 +92,16 @@ class s extends N {
92
92
  * Gets the sort order of the box plot data.
93
93
  */
94
94
  getSortOrder() {
95
- return _(this._config);
95
+ return u(this._config);
96
96
  }
97
97
  setSortOrder(e, t) {
98
- L(e, this._config, t);
98
+ S(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 B({
104
+ return await _({
105
105
  config: this._config,
106
106
  layerInfo: this.layerInfo,
107
107
  errorStrings: this.commonStrings.errorStrings
@@ -109,15 +109,15 @@ class s extends N {
109
109
  }
110
110
  async setDataFilters(e) {
111
111
  super.setDataFilters(e);
112
- const t = _(this._config);
113
- if (t === R.customSort) {
112
+ const t = u(this._config);
113
+ if (t === E.customSort) {
114
114
  this.startAsyncUpdate();
115
- const i = await B({
115
+ const n = await _({
116
116
  config: this._config,
117
117
  layerInfo: this.layerInfo,
118
118
  errorStrings: this.commonStrings.errorStrings
119
119
  });
120
- L(t, this._config, i), this.finishAsyncUpdate();
120
+ S(t, this._config, n), this.finishAsyncUpdate();
121
121
  }
122
122
  this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"));
123
123
  }
@@ -125,10 +125,10 @@ class s extends N {
125
125
  * The list of category values for custom sort.
126
126
  */
127
127
  get orderByList() {
128
- return C(this._config);
128
+ return L(this._config);
129
129
  }
130
130
  set orderByList(e) {
131
- F(e, this._config);
131
+ B(e, this._config);
132
132
  }
133
133
  /**
134
134
  * Updates the series based on the layer filter.
@@ -171,7 +171,7 @@ class s extends N {
171
171
  return me(this._config);
172
172
  }
173
173
  set meanLinesBoxColor(e) {
174
- M(e, this._config);
174
+ C(e, this._config);
175
175
  }
176
176
  // ---------------------------------------------------------------------------------------------
177
177
  // #region Protected Methods
@@ -185,8 +185,8 @@ class s extends N {
185
185
  }
186
186
  /** @private */
187
187
  generateDefaultConfig() {
188
- const e = D(this.commonStrings);
189
- return e.series = [A(this.commonStrings)], e;
188
+ const e = O(this.commonStrings);
189
+ return e.series = [P(this.commonStrings)], e;
190
190
  }
191
191
  resetConfig() {
192
192
  const e = this._config.id;
@@ -209,13 +209,13 @@ class s extends N {
209
209
  * @private
210
210
  */
211
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);
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);
213
213
  }
214
214
  /**
215
215
  * Fetches the split-by field information and stores it in a private member for use in building the series.
216
216
  */
217
217
  async fetchSplitByFieldInfos() {
218
- const { fetchNullValues: e } = E(this._config)?.query ?? {};
218
+ const { fetchNullValues: e } = V(this._config)?.query ?? {};
219
219
  return this.splitByFieldInfos = await ne({
220
220
  config: this._config,
221
221
  layer: this.layerInfo.layer,
@@ -256,7 +256,7 @@ class s extends N {
256
256
  return Be(e, this._config);
257
257
  }
258
258
  setSeriesName(e, t) {
259
- I(e, t, this._config);
259
+ M(e, t, this._config);
260
260
  }
261
261
  /**
262
262
  * Gets the color of the series based on the series index. If the index is out of bounds, it will return `undefined`.
@@ -267,7 +267,7 @@ class s extends N {
267
267
  return Ce(e, this._config);
268
268
  }
269
269
  setSeriesColor(e, t) {
270
- b(e, t, this._config);
270
+ x(e, t, this._config);
271
271
  }
272
272
  /**
273
273
  * Gets the line style of the series based on the series index. If the index is out of bounds, it will return `undefined`.
@@ -278,12 +278,11 @@ class s extends N {
278
278
  */
279
279
  getSeriesLineStyle(e) {
280
280
  const t = this._config.series[e];
281
- if (this.showMeanLines === !0 && l(t))
282
- return ie(t);
281
+ if (this.showMeanLines === !0 && h(t))
282
+ return ee(t);
283
283
  }
284
284
  setSeriesLineStyle(e, t) {
285
- const i = this._config.series[t];
286
- this.showMeanLines === !0 && l(i) && u(e, i);
285
+ this.showMeanLines === !0 && Fe({ style: e, seriesIndex: t, config: this._config });
287
286
  }
288
287
  /**
289
288
  * Gets the line width of the series based on the series index. If the index is out of bounds, it will return `undefined`.
@@ -294,24 +293,23 @@ class s extends N {
294
293
  */
295
294
  getSeriesLineWidth(e) {
296
295
  const t = this._config.series[e];
297
- if (this.showMeanLines === !0 && l(t))
298
- return se(t);
296
+ if (this.showMeanLines === !0 && h(t))
297
+ return te(t);
299
298
  }
300
299
  setSeriesLineWidth(e, t) {
301
- const i = this._config.series[t];
302
- this.showMeanLines === !0 && l(i) && S(e, i);
300
+ this.showMeanLines === !0 && Me({ width: e, seriesIndex: t, config: this._config });
303
301
  }
304
302
  /**
305
303
  * The order of the series array by returning an array of series ids.
306
304
  */
307
305
  get orderOfSeries() {
308
- return Fe(this._config);
306
+ return xe(this._config);
309
307
  }
310
308
  set orderOfSeries(e) {
311
- Me(e, this._config);
309
+ Ie(e, this._config);
312
310
  }
313
311
  moveSeries(e, t) {
314
- xe(e, t, this._config);
312
+ we(e, t, this._config);
315
313
  }
316
314
  /**
317
315
  * The index of the box plot series in the series array in config object when show mean is true.
@@ -319,11 +317,11 @@ class s extends N {
319
317
  * **Note**: There is only one box plot series when show mean is `true`. The function returns `-1` if show mean is `false`.
320
318
  */
321
319
  get boxPlotSeriesIndexWhenMeanLinesShown() {
322
- return Ie(this._config);
320
+ return be(this._config);
323
321
  }
324
322
  moveCustomSortValuesInOrderByList(e, t) {
325
- const i = C(this._config), [o] = i.splice(e, 1);
326
- i.splice(t, 0, o), F(i, this._config);
323
+ const n = L(this._config), [s] = n.splice(e, 1);
324
+ n.splice(t, 0, s), B(n, this._config);
327
325
  }
328
326
  // ---------------------------------------------------------------------------------------------
329
327
  // #region General Methods
@@ -332,127 +330,127 @@ class s extends N {
332
330
  * Generate the proper chart title given the current config.
333
331
  */
334
332
  generateChartTitle() {
335
- return be(this._config, this.layerInfo, this.commonStrings);
333
+ return ve(this._config, this.layerInfo, this.commonStrings);
336
334
  }
337
335
  /**
338
336
  * Generate the proper y-axis title given the current config.
339
337
  */
340
338
  generateYAxisTitle() {
341
- return we(this._config, this.layerInfo, this.commonStrings);
339
+ return We(this._config, this.layerInfo, this.commonStrings);
342
340
  }
343
341
  resetSeriesStyling() {
344
342
  for (let e = this.showMeanLines === !0 ? 1 : 0; e < this.seriesLength; e += 1) {
345
- const t = this.getSeriesId(e), i = V({
343
+ const t = this.getSeriesId(e), n = D({
346
344
  colorIndex: e,
347
- opacity: T
348
- }), o = this._config.series[e];
349
- b(i, e, this._config);
350
- const a = w({
351
- series: o,
345
+ opacity: A
346
+ }), s = this._config.series[e];
347
+ x(n, e, this._config);
348
+ const a = I({
349
+ series: s,
352
350
  splitByField: this._splitByField,
353
351
  layerInfo: this.layerInfo,
354
352
  commonStrings: this.commonStrings
355
353
  });
356
- I(a ?? t, e, this._config), this.showMeanLines === !0 && l(o) && (u(m, o), S(p, o));
354
+ M(a ?? t, e, this._config), this.showMeanLines === !0 && h(s) && (ie(m, s), se(p, s));
357
355
  }
358
- this.showMeanLines === !0 && M(y, this._config), this._config.colorMatch = !0;
356
+ this.showMeanLines === !0 && C(y, this._config), this._config.colorMatch = !0;
359
357
  }
360
358
  /**
361
359
  * Returns whether the series styling is able to be reset.
362
360
  */
363
361
  resetAvailable() {
364
362
  const e = !this.colorMatch, t = this.showMeanLines === !0 && this.meanLinesBoxColor !== y;
365
- let i = !1, o = !1;
363
+ let n = !1, s = !1;
366
364
  if (!e)
367
365
  for (let a = this.showMeanLines === !0 ? 1 : 0; a < this.seriesLength; a += 1) {
368
- const h = this._config.series[a], g = w({
369
- series: h,
366
+ const l = this._config.series[a], g = I({
367
+ series: l,
370
368
  splitByField: this._splitByField,
371
369
  layerInfo: this.layerInfo,
372
370
  commonStrings: this.commonStrings
373
- }), v = this.getSeriesName(a);
374
- if (g !== void 0 && g !== v) {
375
- i = !0;
371
+ }), w = this.getSeriesName(a);
372
+ if (g !== void 0 && g !== w) {
373
+ n = !0;
376
374
  break;
377
375
  }
378
- if (this.showMeanLines === !0 && l(h)) {
379
- const W = this.getSeriesLineStyle(a), O = this.getSeriesLineWidth(a);
380
- if (W !== m || O !== p) {
381
- o = !0;
376
+ if (this.showMeanLines === !0 && h(l)) {
377
+ const b = this.getSeriesLineStyle(a), v = this.getSeriesLineWidth(a);
378
+ if (b !== m || v !== p) {
379
+ s = !0;
382
380
  break;
383
381
  }
384
382
  }
385
383
  }
386
- return e || t || i || o;
384
+ return e || t || n || s;
387
385
  }
388
386
  }
389
- n([
390
- r
391
- ], s.prototype, "showOutliers");
392
- n([
393
- r
394
- ], s.prototype, "standardizeValues");
395
- n([
396
- r
397
- ], s.prototype, "setSortOrder");
398
- n([
399
- r
400
- ], s.prototype, "setDataFilters");
401
- n([
402
- r
403
- ], s.prototype, "orderByList");
404
- n([
405
- r
406
- ], s.prototype, "showMeanLines");
407
- n([
408
- r
409
- ], s.prototype, "meanLinesBoxColor");
410
- n([
411
- r
412
- ], s.prototype, "resetConfig");
413
- n([
414
- r
415
- ], s.prototype, "setSeriesName");
416
- n([
417
- r
418
- ], s.prototype, "setSeriesColor");
419
- n([
420
- r
421
- ], s.prototype, "setSeriesLineStyle");
422
- n([
423
- r
424
- ], s.prototype, "setSeriesLineWidth");
425
- n([
426
- r
427
- ], s.prototype, "orderOfSeries");
428
- n([
429
- r
430
- ], s.prototype, "moveSeries");
431
- n([
432
- r
433
- ], s.prototype, "moveCustomSortValuesInOrderByList");
434
- n([
435
- r
436
- ], s.prototype, "resetSeriesStyling");
437
- const Oe = [
438
- k,
387
+ r([
388
+ o
389
+ ], i.prototype, "showOutliers");
390
+ r([
391
+ o
392
+ ], i.prototype, "standardizeValues");
393
+ r([
394
+ o
395
+ ], i.prototype, "setSortOrder");
396
+ r([
397
+ o
398
+ ], i.prototype, "setDataFilters");
399
+ r([
400
+ o
401
+ ], i.prototype, "orderByList");
402
+ r([
403
+ o
404
+ ], i.prototype, "showMeanLines");
405
+ r([
406
+ o
407
+ ], i.prototype, "meanLinesBoxColor");
408
+ r([
409
+ o
410
+ ], i.prototype, "resetConfig");
411
+ r([
412
+ o
413
+ ], i.prototype, "setSeriesName");
414
+ r([
415
+ o
416
+ ], i.prototype, "setSeriesColor");
417
+ r([
418
+ o
419
+ ], i.prototype, "setSeriesLineStyle");
420
+ r([
421
+ o
422
+ ], i.prototype, "setSeriesLineWidth");
423
+ r([
424
+ o
425
+ ], i.prototype, "orderOfSeries");
426
+ r([
427
+ o
428
+ ], i.prototype, "moveSeries");
429
+ r([
430
+ o
431
+ ], i.prototype, "moveCustomSortValuesInOrderByList");
432
+ r([
433
+ o
434
+ ], i.prototype, "resetSeriesStyling");
435
+ const De = [
436
+ X,
437
+ N,
438
+ R,
439
439
  z,
440
+ $,
440
441
  U,
441
- X,
442
- te,
443
- j,
444
- ee,
445
- K,
446
- H,
447
442
  Z,
448
- J,
449
- $,
443
+ j,
450
444
  Y,
445
+ J,
451
446
  q,
447
+ Q,
448
+ k,
452
449
  G,
453
- Q
450
+ K,
451
+ H
454
452
  ];
455
- ae(s, Oe);
453
+ ae(i, De);
456
454
  export {
457
- s as BoxPlotModel
455
+ i as BoxPlotModel
458
456
  };