@arcgis/charts-components 6.0.0-next.15 → 6.0.0-next.17

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 (169) hide show
  1. package/dist/cdn/26XWRAQN.js +2 -0
  2. package/dist/cdn/{TA72F3YR.js → 2OZON66K.js} +1 -1
  3. package/dist/cdn/{5WK7EKWG.js → 2XFCDEUQ.js} +1 -1
  4. package/dist/cdn/{7MQQTEGS.js → 2YPHOEBL.js} +1 -1
  5. package/dist/cdn/{T5JI4I3G.js → 3BHGMUPM.js} +1 -1
  6. package/dist/cdn/{FEEBSCRS.js → 3WYN6S3X.js} +1 -1
  7. package/dist/cdn/{KYI6HDQF.js → 3Z4OBTI2.js} +1 -1
  8. package/dist/cdn/{X4EOEOKN.js → 4CDZP4TX.js} +1 -1
  9. package/dist/cdn/{CCOXNEXP.js → 4KWM7I3R.js} +19 -19
  10. package/dist/cdn/{2IL6SDH6.js → 54KQWYXM.js} +1 -1
  11. package/dist/cdn/{HFIOYGNL.js → 5SEDPIPU.js} +1 -1
  12. package/dist/cdn/{SHHA3DMQ.js → 7B5WALQA.js} +1 -1
  13. package/dist/cdn/{PVE3JDGX.js → 7EBLXYTO.js} +1 -1
  14. package/dist/cdn/{YWBS5O3M.js → 7PBQ23Z6.js} +1 -1
  15. package/dist/cdn/{WS365KG2.js → 7R57NAHO.js} +1 -1
  16. package/dist/cdn/{SN2JSWO5.js → 7YTUWHFR.js} +1 -1
  17. package/dist/cdn/{RF37N4VO.js → A73ZVGAS.js} +1 -1
  18. package/dist/cdn/{O6ZKYG4T.js → BIU5DASA.js} +1 -1
  19. package/dist/cdn/{OI3WFXG7.js → BVAWYQ2X.js} +1 -1
  20. package/dist/cdn/{K5HHOIAF.js → BVYYKKMD.js} +1 -1
  21. package/dist/cdn/{KDFM2DN3.js → CEK6AM7E.js} +1 -1
  22. package/dist/cdn/{4KY3CIOE.js → CJRZC5CN.js} +1 -1
  23. package/dist/cdn/{IZBXJRRJ.js → CM2TXHHV.js} +1 -1
  24. package/dist/cdn/{VQ7NP3P7.js → CO56NHDR.js} +1 -1
  25. package/dist/cdn/{EQL6DTXS.js → DRQAJW27.js} +1 -1
  26. package/dist/cdn/{K6XIY66O.js → E2Y55KVA.js} +1 -1
  27. package/dist/cdn/{HDMJM556.js → EDPNBLT6.js} +1 -1
  28. package/dist/cdn/{CWEJAEUV.js → F6MI4LEQ.js} +1 -1
  29. package/dist/cdn/{PH7PXDCI.js → FBLAMRCB.js} +1 -1
  30. package/dist/cdn/{2MLNSI3G.js → FNCCQ326.js} +1 -1
  31. package/dist/cdn/{PLZJ46HI.js → GG5XPSK5.js} +1 -1
  32. package/dist/cdn/{5766ZRIW.js → GLMJXTZF.js} +1 -1
  33. package/dist/cdn/{O7O5YDT5.js → GO5Q775T.js} +1 -1
  34. package/dist/cdn/{IBKFWQPH.js → GZ3YHHLB.js} +1 -1
  35. package/dist/cdn/{3RHVJYAV.js → HHBLZIL4.js} +1 -1
  36. package/dist/cdn/{626JGTRZ.js → HUTZOFDL.js} +1 -1
  37. package/dist/cdn/{MJD7DA5G.js → I3DVCLDP.js} +1 -1
  38. package/dist/cdn/{KIDSF6WN.js → ICEYNRHD.js} +1 -1
  39. package/dist/cdn/{TD3GMZRT.js → IHZHAFPS.js} +1 -1
  40. package/dist/cdn/{4YOBDCTR.js → JHF77RUC.js} +1 -1
  41. package/dist/cdn/{APLXZUSH.js → KKCQL6EG.js} +1 -1
  42. package/dist/cdn/{A4LP6267.js → KQJAQMO4.js} +1 -1
  43. package/dist/cdn/{6A57VCEB.js → LON6BJK7.js} +1 -1
  44. package/dist/cdn/{4KT3XIUS.js → LQATZGEX.js} +1 -1
  45. package/dist/cdn/{TONXC5MT.js → LQFQARDL.js} +1 -1
  46. package/dist/cdn/{HXTUTTDW.js → M4MZPY2T.js} +1 -1
  47. package/dist/cdn/{QYJMNNOD.js → MRCL6W5Z.js} +1 -1
  48. package/dist/cdn/{DDFYNCKU.js → MTMNRIHL.js} +1 -1
  49. package/dist/cdn/{SH5NIXPR.js → N3CQJ33I.js} +1 -1
  50. package/dist/cdn/{B5PJAELA.js → NGU7YK4K.js} +1 -1
  51. package/dist/cdn/{EHYUK7VN.js → NQJQ637M.js} +1 -1
  52. package/dist/cdn/{SSPQJJ5K.js → NXZ643YO.js} +1 -1
  53. package/dist/cdn/{AY7RTY3L.js → NYEME5J5.js} +1 -1
  54. package/dist/cdn/{NZOXMPKS.js → O2NYEOQ6.js} +1 -1
  55. package/dist/cdn/{GWUQBXSL.js → OGNCTDAF.js} +1 -1
  56. package/dist/cdn/{4F5FRRXP.js → ONCZ6POJ.js} +1 -1
  57. package/dist/cdn/{MFTD2HWQ.js → OWX5EO6C.js} +1 -1
  58. package/dist/cdn/P4GYZ2NE.js +2 -0
  59. package/dist/cdn/{XWBETWPT.js → Q4EFECTX.js} +1 -1
  60. package/dist/cdn/{CRVLFI7I.js → QGXFFV46.js} +1 -1
  61. package/dist/cdn/{T4JWI7IU.js → QX443ZT3.js} +1 -1
  62. package/dist/cdn/{YJS7H3HY.js → R5XG2G7J.js} +1 -1
  63. package/dist/cdn/{USS4BS7V.js → RANMZVK2.js} +1 -1
  64. package/dist/cdn/{YGBETAHO.js → RFMXU2H7.js} +1 -1
  65. package/dist/cdn/{JASKGKES.js → RQ3AQL7A.js} +1 -1
  66. package/dist/cdn/{E2Q5PPYX.js → SFA5VTS2.js} +1 -1
  67. package/dist/cdn/{5TNFHQIR.js → SNL33CT7.js} +1 -1
  68. package/dist/cdn/{3MDBYWXW.js → TX34E6CB.js} +1 -1
  69. package/dist/cdn/{FMMCLXTF.js → U4N3E77G.js} +1 -1
  70. package/dist/cdn/{3FV3RKYL.js → UI4IOFME.js} +1 -1
  71. package/dist/cdn/{OUM277XS.js → UKXRSJI4.js} +1 -1
  72. package/dist/cdn/{SBNA2XJS.js → UOAPLPM3.js} +1 -1
  73. package/dist/cdn/{YVGYDZ4Y.js → VSEVHNBJ.js} +1 -1
  74. package/dist/cdn/{VMX2EPNH.js → W5UOB7NS.js} +1 -1
  75. package/dist/cdn/{4BPMPV3W.js → WHE4AAZ7.js} +1 -1
  76. package/dist/cdn/{FXFRPOKB.js → WSTNZKNL.js} +1 -1
  77. package/dist/cdn/XZHXK4OO.js +4 -0
  78. package/dist/cdn/{RUGYC5G2.js → YEHQ2DYK.js} +1 -1
  79. package/dist/cdn/{IPH2HEQ3.js → YGV6VUSU.js} +1 -1
  80. package/dist/cdn/{QROPJ6DR.js → YI4CAGMX.js} +1 -1
  81. package/dist/cdn/{BZYCRR4Z.js → Z4MNKCOZ.js} +1 -1
  82. package/dist/cdn/{3GALMNH3.js → ZBDDGW7A.js} +1 -1
  83. package/dist/cdn/{TPOYE44W.js → ZMLRNHR5.js} +1 -1
  84. package/dist/cdn/index.js +1 -1
  85. package/dist/cdn/model/shared/setup-utils.js +1 -1
  86. package/dist/chunks/bar-chart-model.js +1 -1
  87. package/dist/chunks/box-plot-data.js +100 -98
  88. package/dist/chunks/box-plot-model.js +11 -11
  89. package/dist/chunks/chart-model.js +26 -26
  90. package/dist/chunks/chart-ui-utils.js +11 -11
  91. package/dist/chunks/chart-ui-utils2.js +1 -1
  92. package/dist/chunks/class-breaks.js +19 -19
  93. package/dist/chunks/combo-bar-line-chart-model.js +8 -8
  94. package/dist/chunks/data.js +16 -16
  95. package/dist/chunks/gauge-model.js +11 -11
  96. package/dist/chunks/histogram-model.js +9 -9
  97. package/dist/chunks/index.js +1294 -1266
  98. package/dist/chunks/index3.js +1 -1
  99. package/dist/chunks/line-chart-model.js +1 -1
  100. package/dist/chunks/model-with-x-guides.js +1 -1
  101. package/dist/chunks/model-with-y-guides.js +7 -7
  102. package/dist/chunks/pie-chart-model.js +1 -1
  103. package/dist/chunks/radar-chart-model.js +1 -1
  104. package/dist/chunks/scatterplot-model.js +5 -5
  105. package/dist/chunks/serial-chart-data.js +220 -218
  106. package/dist/chunks/serial-chart-model.js +19 -19
  107. package/dist/chunks/x-bounds.js +21 -21
  108. package/dist/components/arcgis-chart/customElement.d.ts +54 -15
  109. package/dist/components/arcgis-chart/customElement.js +1025 -1017
  110. package/dist/components/arcgis-charts-config-histogram/customElement.js +1 -1
  111. package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
  112. package/dist/components/arcgis-charts-config-scatter-plot-aoi/customElement.js +1 -1
  113. package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +1 -1
  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 +261 -260
  119. package/dist/loader.js +1 -1
  120. package/dist/model/mixins/model-with-multi-axes.d.ts +29 -1
  121. package/dist/types/lumina.d.ts +1 -1
  122. package/dist/types/preact.d.ts +1 -1
  123. package/dist/types/react.d.ts +1 -1
  124. package/dist/types/stencil.d.ts +1 -1
  125. package/dist/utils/chart-config/converter/index.js +18 -18
  126. package/dist/utils/chart-config/utils/index.d.ts +10 -3
  127. package/package.json +6 -6
  128. package/dist/cdn/BAJ6SAPB.js +0 -2
  129. package/dist/cdn/PFTKPGYF.js +0 -2
  130. package/dist/cdn/WFTQTZE4.js +0 -4
  131. /package/dist/cdn/{TLQIGFGQ.js → 3YRFJ6NV.js} +0 -0
  132. /package/dist/cdn/{4QVR4X35.js → 42UIR2IR.js} +0 -0
  133. /package/dist/cdn/{45NAN6JY.js → 4AKIGTA2.js} +0 -0
  134. /package/dist/cdn/{OBPQAH5S.js → 4L3BZMH7.js} +0 -0
  135. /package/dist/cdn/{3ZECZOXN.js → 5BNIGQ75.js} +0 -0
  136. /package/dist/cdn/{TTTHFTPR.js → 65L7R5DC.js} +0 -0
  137. /package/dist/cdn/{SKOFRVPK.js → 7D3LBTBW.js} +0 -0
  138. /package/dist/cdn/{KYMJHW7P.js → 7XRRXXLO.js} +0 -0
  139. /package/dist/cdn/{LMGLYX4S.js → AZKT7APT.js} +0 -0
  140. /package/dist/cdn/{PW57OZAT.js → BA32RD3P.js} +0 -0
  141. /package/dist/cdn/{VTAGDT6C.js → CGGLSXCD.js} +0 -0
  142. /package/dist/cdn/{DAUURPYJ.js → DOQLHITH.js} +0 -0
  143. /package/dist/cdn/{I2PJ6P6Y.js → DVBWXJY4.js} +0 -0
  144. /package/dist/cdn/{IQM72DXD.js → EF2HSNUZ.js} +0 -0
  145. /package/dist/cdn/{VAU5AAP4.js → EGKOW5LO.js} +0 -0
  146. /package/dist/cdn/{PVMCNHBW.js → FUUEOMQP.js} +0 -0
  147. /package/dist/cdn/{CZ77PXQJ.js → FVSJ2OPV.js} +0 -0
  148. /package/dist/cdn/{6VSBLWTN.js → FWC4JUA4.js} +0 -0
  149. /package/dist/cdn/{LRM7GE53.js → HZTV6GS6.js} +0 -0
  150. /package/dist/cdn/{2YALNURG.js → I3LSRXSY.js} +0 -0
  151. /package/dist/cdn/{R7OOVB2X.js → I5PEQRVF.js} +0 -0
  152. /package/dist/cdn/{AHSP6KVB.js → JMUDIMMT.js} +0 -0
  153. /package/dist/cdn/{33JWZJUR.js → K6FYLQNG.js} +0 -0
  154. /package/dist/cdn/{4EANFQ2G.js → LD5UFLE7.js} +0 -0
  155. /package/dist/cdn/{TKVNAHQH.js → NNK6NBLX.js} +0 -0
  156. /package/dist/cdn/{2KFSN6AH.js → NZNYMEBI.js} +0 -0
  157. /package/dist/cdn/{EKGOACQH.js → OMB6VH6Z.js} +0 -0
  158. /package/dist/cdn/{C3KOECVE.js → PAXVQYNM.js} +0 -0
  159. /package/dist/cdn/{335JQ5T6.js → Q7ZPO77A.js} +0 -0
  160. /package/dist/cdn/{CMD2MEIF.js → QSYOS3BC.js} +0 -0
  161. /package/dist/cdn/{LKONQKHX.js → SQ6XT3Z7.js} +0 -0
  162. /package/dist/cdn/{SVGEURCU.js → TAQ7WU3A.js} +0 -0
  163. /package/dist/cdn/{XYLPZSTR.js → TFYWD6QL.js} +0 -0
  164. /package/dist/cdn/{BFZ6M3RT.js → V2AEKOVG.js} +0 -0
  165. /package/dist/cdn/{ZJHP53IM.js → WQSXECW6.js} +0 -0
  166. /package/dist/cdn/{24BAQ5OD.js → XS6XHZQ5.js} +0 -0
  167. /package/dist/cdn/{ZSO2HMNF.js → Y2GJGDES.js} +0 -0
  168. /package/dist/cdn/{BIVFM3IL.js → YYKAPOEZ.js} +0 -0
  169. /package/dist/cdn/{74EKMBT4.js → ZOSUF434.js} +0 -0
@@ -1,14 +1,14 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
2
  import { isEqual as x } from "es-toolkit/compat";
3
3
  import { a as _, c as b, d as f } from "./chart-object-literals.js";
4
- import { cz as v, cD as L, eJ as M, eK as P, c5 as p, u as V, eL as N, eI as k } from "./index.js";
4
+ import { cz as v, cD as L, eL as M, eM as P, c5 as p, u as N, eN as V, eK as k } from "./index.js";
5
5
  import { i as R } from "./index3.js";
6
6
  import { m as o } from "./model-setter.js";
7
7
  import { S as E } from "./common.js";
8
8
  import { M as U, a as j, W as X, b as Y } from "./data-labels-visibility.js";
9
9
  import { M as w, a as z } from "./model-with-y-guides.js";
10
10
  import { C as O } from "./chart-model.js";
11
- import { g as S, d as u, j as K, k as q, l as G, m as $, n as J, o as Z, q as H, t as Q, v as ee, w as ie, x as te, y as se, z as m, A as T, B, C as d, D as re, E as oe, e as ne, F as ae, W as le } from "./serial-chart-data.js";
11
+ import { g as S, d as u, j as K, k as q, l as G, m as $, n as Z, o as H, q as J, t as Q, v as ee, w as ie, x as te, y as se, z as m, A as T, B, C as d, D as re, E as oe, e as ne, F as ae, W as le } from "./serial-chart-data.js";
12
12
  import { M as ge } from "./model-with-x-guides.js";
13
13
  import { W as ce, c as he, d as fe } from "./axis-lines-symbol.js";
14
14
  import { W as pe, c as me, d as de } from "./generate-x-axis-title.js";
@@ -17,9 +17,9 @@ import { W as ue } from "./data-labels-symbol.js";
17
17
  import { W as _e } from "./rotated-state.js";
18
18
  import { a as D, u as xe, d as C } from "./utils.js";
19
19
  import { d as y, e as F, a as Te } from "./data.js";
20
- import { u as Be, m as Ce, ag as Fe, j as Ie, k as Ae } from "./index2.js";
20
+ import { u as Be, m as Ce, ag as Fe, j as Ae, k as Ie } from "./index2.js";
21
21
  import { s as W } from "./series-types.js";
22
- const I = (s, e) => e.series?.[s].assignToSecondValueAxis ?? !1, A = (s) => {
22
+ const A = (s, e) => e.series?.[s].assignToSecondValueAxis ?? !1, I = (s) => {
23
23
  const { assign: e, seriesIndex: i, config: t, commonStrings: r } = s;
24
24
  e && t.axes !== void 0 && !t.axes?.[2] && (t.axes[2] = Fe(r, _.BarSeries)[1]), t.series && t.series.forEach((l, g) => {
25
25
  g === i ? l.assignToSecondValueAxis = e : g !== i && l?.assignToSecondValueAxis !== !0 && (l.assignToSecondValueAxis = !1);
@@ -57,13 +57,13 @@ const I = (s, e) => e.series?.[s].assignToSecondValueAxis ?? !1, A = (s) => {
57
57
  });
58
58
  xe(i, 1, l);
59
59
  }
60
- i.axes?.[1] && (e === b.Stacked100 ? i.axes[1].valueFormat = Ie() : i.axes[1].valueFormat = Ae()), C({ config: i, value: null, axisIndex: 1, isMax: !1 }), C({ config: i, value: null, axisIndex: 1, isMax: !0 });
61
- }, Ve = (s) => {
60
+ i.axes?.[1] && (e === b.Stacked100 ? i.axes[1].valueFormat = Ae() : i.axes[1].valueFormat = Ie()), C({ config: i, value: null, axisIndex: 1, isMax: !1 }), C({ config: i, value: null, axisIndex: 1, isMax: !0 });
61
+ }, Ne = (s) => {
62
62
  const e = {};
63
63
  return s.series.forEach((i) => {
64
64
  W(i) && "nullCategory" in i && i.nullCategory !== void 0 && (e.text ??= i.nullCategory.text, i.type === _.BarSeries ? e.fillSymbol ??= i.nullCategory.fillSymbol : e.markerSymbol ??= i.nullCategory.markerSymbol);
65
65
  }), e.text || e.fillSymbol || e.markerSymbol ? e : void 0;
66
- }, Ne = (s, e) => {
66
+ }, Ve = (s, e) => {
67
67
  s.series.forEach((i) => {
68
68
  W(i) && (e ? i.type === _.BarSeries ? i.nullCategory = { text: e?.text, fillSymbol: e?.fillSymbol } : i.nullCategory = { text: e?.text, markerSymbol: e?.markerSymbol } : i.nullCategory = void 0);
69
69
  });
@@ -96,16 +96,16 @@ class c extends O {
96
96
  * Time aggregation type for a temporal bar chart or line chart.
97
97
  */
98
98
  get timeAggregationType() {
99
- return J(this._config);
99
+ return Z(this._config);
100
100
  }
101
101
  set timeAggregationType(e) {
102
- Z(e, this._config);
102
+ H(e, this._config);
103
103
  }
104
104
  /**
105
105
  * Whether to trim incomplete time intervals for a temporal bar chart or line chart.
106
106
  */
107
107
  get trimIncompleteTimeInterval() {
108
- return H(this._config);
108
+ return J(this._config);
109
109
  }
110
110
  set trimIncompleteTimeInterval(e) {
111
111
  Q(e, this._config);
@@ -260,7 +260,7 @@ class n extends O {
260
260
  typeof e == "string" && (e = [e]);
261
261
  const i = P(this.layerInfo?.layerFieldsInfo ?? [], e), t = (this.xAxisField === "" || this.xAxisField === p) && e.length === 0;
262
262
  if (i && !t) {
263
- const r = V(this.layerInfo.layer).idField;
263
+ const r = N(this.layerInfo.layer).idField;
264
264
  e.length === 0 && r !== void 0 ? (e = [r], this._aggregationType = f.Count) : this._aggregationType === f.Count && e.length >= 1 && r !== void 0 && !e.includes(r) && (this._aggregationType = f.Sum), this._numericFields = e, this.numericFields.length > 1 && (this._splitByField = ""), this.processSeriesRebuild("numericFields");
265
265
  } else t && this.resetConfig();
266
266
  }
@@ -271,10 +271,10 @@ class n extends O {
271
271
  * @deprecated since 5.2. Use {@link model/serial-chart-model/serial-chart-model#getSeriesToSecondaryYAxis getSeriesToSecondaryYAxis} instead.
272
272
  */
273
273
  getAssignToSecondValueAxis(e) {
274
- return I(e, this._config);
274
+ return A(e, this._config);
275
275
  }
276
276
  setAssignToSecondValueAxis(e, i) {
277
- A({ assign: e, seriesIndex: i, config: this._config, commonStrings: this.commonStrings });
277
+ I({ assign: e, seriesIndex: i, config: this._config, commonStrings: this.commonStrings });
278
278
  }
279
279
  /**
280
280
  * Gets whether the series should be assigned to the secondary y-axis.
@@ -282,10 +282,10 @@ class n extends O {
282
282
  * @param seriesIndex - The index of the series.
283
283
  */
284
284
  getSeriesToSecondaryYAxis(e) {
285
- return I(e, this._config);
285
+ return A(e, this._config);
286
286
  }
287
287
  setSeriesToSecondaryYAxis(e, i) {
288
- A({ assign: e, seriesIndex: i, config: this._config, commonStrings: this.commonStrings });
288
+ I({ assign: e, seriesIndex: i, config: this._config, commonStrings: this.commonStrings });
289
289
  }
290
290
  /**
291
291
  * Gets the data sort order for the chart.
@@ -455,11 +455,11 @@ class n extends O {
455
455
  * - `colorMatch` to be set to `false` on the model
456
456
  */
457
457
  get nullCategory() {
458
- return Ve(this._config);
458
+ return Ne(this._config);
459
459
  }
460
460
  set nullCategory(e) {
461
461
  const i = this.nullCategory;
462
- x(i, e) || Ne(this._config, e);
462
+ x(i, e) || Ve(this._config, e);
463
463
  }
464
464
  /**
465
465
  * Sets up the local props based on the current config.
@@ -496,7 +496,7 @@ class n extends O {
496
496
  * Fetches the split-by field information and stores it in a private member for use in building the series.
497
497
  */
498
498
  async fetchSplitByFieldInfos() {
499
- return this.splitByFieldInfos = await N({
499
+ return this.splitByFieldInfos = await V({
500
500
  config: this._config,
501
501
  layer: this.layerInfo.layer,
502
502
  layerFieldsInfo: this.layerInfo.layerFieldsInfo,
@@ -621,7 +621,7 @@ k(n, je);
621
621
  export {
622
622
  n as S,
623
623
  ve as a,
624
- Ne as b,
624
+ Ve as b,
625
625
  be as g,
626
626
  Oe as s
627
627
  };
@@ -6,7 +6,7 @@ import { g as T } from "./model-types.js";
6
6
  import { b as g } from "./rest-js-object-literals.js";
7
7
  import { a as x } from "./chart-object-literals.js";
8
8
  import { Q as C, a5 as L, a6 as b, t as M } from "./index2.js";
9
- import { ch as X, b as B, i as A, eI as O } from "./index.js";
9
+ import { ch as X, b as B, i as A, eK as O } from "./index.js";
10
10
  import { m as a, C as f } from "./model-setter.js";
11
11
  import { o as P, n as R, p as v, d as y } from "./utils.js";
12
12
  const D = (t) => {
@@ -50,31 +50,31 @@ const E = (t) => {
50
50
  }, j = (t) => {
51
51
  const { axis: e, index: i } = d(t);
52
52
  return e?.guides?.[i]?.end;
53
- }, I = (t) => {
53
+ }, $ = (t) => {
54
54
  const { end: e, axis: i, index: s } = d(t);
55
55
  i?.guides?.[s] !== void 0 && (i.guides[s].end = e, p(i.guides[s]));
56
- }, $ = (t) => {
56
+ }, I = (t) => {
57
57
  const { axis: e, index: i } = d(t);
58
58
  return e?.guides?.[i]?.name;
59
59
  }, N = (t) => {
60
60
  const { name: e, axis: i, index: s } = d(t);
61
61
  i?.guides?.[s] !== void 0 && (i.guides[s].name = e);
62
- }, Q = (t) => {
62
+ }, K = (t) => {
63
63
  const { axis: e, index: i } = d(t);
64
64
  return e?.guides?.[i]?.label?.text;
65
- }, U = (t) => {
65
+ }, Q = (t) => {
66
66
  const { labelText: e, axis: i, index: s } = d(t), o = i?.guides?.[s]?.label ?? C(e, L(b.GuideLabel), b.GuideLabel);
67
67
  i?.guides?.[s] !== void 0 && (i.guides[s].label = { ...o, text: e });
68
- }, Y = (t) => {
68
+ }, U = (t) => {
69
69
  const { axis: e, index: i } = d(t);
70
70
  return e?.guides?.[i]?.above ?? !1;
71
- }, q = (t) => {
71
+ }, Y = (t) => {
72
72
  const { above: e, axis: i, index: s } = d(t);
73
73
  i?.guides?.[s] !== void 0 && (i.guides[s].above = e);
74
- }, z = (t) => {
74
+ }, q = (t) => {
75
75
  const { axis: e, index: i } = d(t);
76
76
  return e?.guides?.[i]?.style;
77
- }, H = (t) => {
77
+ }, z = (t) => {
78
78
  const { style: e, axis: i, index: s } = d(t);
79
79
  i?.guides?.[s] !== void 0 && (i.guides[s].style = e);
80
80
  }, he = (t) => {
@@ -92,10 +92,10 @@ const E = (t) => {
92
92
  }, _e = (t) => {
93
93
  const { config: e, index: i, orientation: s } = t, o = s === c.X ? e.axes?.[0] : e.axes?.[1];
94
94
  o?.guides !== void 0 && (i !== void 0 && i < o.guides.length ? o.guides.splice(i, 1) : o.guides.pop());
95
- }, J = (t) => {
95
+ }, H = (t) => {
96
96
  const { axis: e, index: i } = d(t);
97
97
  return e?.guides?.[i]?.tooltipReverseColor ?? !1;
98
- }, K = (t) => {
98
+ }, J = (t) => {
99
99
  const { axis: e } = d(t);
100
100
  [t.index !== void 0 ? e?.guides?.[t.index] : e?.guides].flat().forEach((i) => {
101
101
  i !== void 0 && (i.tooltipReverseColor = t.reverseColor);
@@ -150,7 +150,7 @@ class u extends h {
150
150
  return j({ config: this._config, index: e, orientation: i });
151
151
  }
152
152
  setGuideEnd(e, i, s) {
153
- I({ end: e, config: this._config, index: i, orientation: s });
153
+ $({ end: e, config: this._config, index: i, orientation: s });
154
154
  }
155
155
  /**
156
156
  * Gets the name of a guide.
@@ -159,7 +159,7 @@ class u extends h {
159
159
  * @param orientation - Default `y`. The axis orientation of the guide.
160
160
  */
161
161
  getGuideName(e, i) {
162
- return $({ config: this._config, index: e, orientation: i });
162
+ return I({ config: this._config, index: e, orientation: i });
163
163
  }
164
164
  setGuideName(e, i, s) {
165
165
  N({ name: e, config: this._config, index: i, orientation: s });
@@ -171,10 +171,10 @@ class u extends h {
171
171
  * @param orientation - Default `y`. The axis orientation of the guide.
172
172
  */
173
173
  getGuideLabelText(e, i) {
174
- return Q({ config: this._config, index: e, orientation: i });
174
+ return K({ config: this._config, index: e, orientation: i });
175
175
  }
176
176
  setGuideLabelText(e, i, s) {
177
- U({ labelText: e, config: this._config, index: i, orientation: s });
177
+ Q({ labelText: e, config: this._config, index: i, orientation: s });
178
178
  }
179
179
  /**
180
180
  * Gets whether the guide should be rendered above the other chart elements.
@@ -183,10 +183,10 @@ class u extends h {
183
183
  * @param orientation - Default `y`. The axis orientation of the guide.
184
184
  */
185
185
  getGuideAbove(e, i) {
186
- return Y({ config: this._config, index: e, orientation: i });
186
+ return U({ config: this._config, index: e, orientation: i });
187
187
  }
188
188
  setGuideAbove(e, i, s) {
189
- q({ above: e, config: this._config, index: i, orientation: s });
189
+ Y({ above: e, config: this._config, index: i, orientation: s });
190
190
  }
191
191
  /**
192
192
  * Gets the guide style.
@@ -195,10 +195,10 @@ class u extends h {
195
195
  * @param orientation - Default `y`. The axis orientation of the guide.
196
196
  */
197
197
  getGuideStyle(e, i) {
198
- return z({ config: this._config, index: e, orientation: i });
198
+ return q({ config: this._config, index: e, orientation: i });
199
199
  }
200
200
  setGuideStyle(e, i, s) {
201
- H({ style: e, config: this._config, index: i, orientation: s });
201
+ z({ style: e, config: this._config, index: i, orientation: s });
202
202
  }
203
203
  /**
204
204
  * Gets whether the tooltip text color should be reversed for a guide.
@@ -207,10 +207,10 @@ class u extends h {
207
207
  * @param orientation - The axis orientation of the guide.
208
208
  */
209
209
  getGuideTooltipReverseColor(e, i) {
210
- return J({ config: this._config, index: e, orientation: i });
210
+ return H({ config: this._config, index: e, orientation: i });
211
211
  }
212
212
  setGuideTooltipReverseColor(e, i, s) {
213
- K({ reverseColor: e, config: this._config, index: i, orientation: s });
213
+ J({ reverseColor: e, config: this._config, index: i, orientation: s });
214
214
  }
215
215
  /**
216
216
  * Gets whether the tooltip text color should be reversed for a guide.
@@ -607,14 +607,32 @@ export abstract class ArcgisChart extends LitElement {
607
607
  protected _messages: Partial<{ chartNotFoundWarning: string; }> & T9nMeta<{ chartNotFoundWarning: string; }>;
608
608
  /**
609
609
  * Specifies how user interactions on the chart are handled.
610
+ * - For all chart types except gauges, [`multiSelectionWithCtrlKey`](/references/charts-components/components/arcgis-chart/#multiselectionwithctrlkey) is the default behavior when [actionMode](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#actionMode) is not explicitly set.
611
+ * - For gauges, the default behavior is [`none`](/references/charts-components/components/arcgis-chart/#none).
612
+ * - Specific axis can be targeted for selection or zoom actions via the [cursorRange](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#cursorRange) property.
610
613
  *
611
- * - `monoSelection`: Select one data item at a time. Each new selection replaces the previous selection.
612
- * - `multiSelection`: Select multiple data items. Each new selection is added to the existing selection.
613
- * - `multiSelectionWithCtrlKey`: Select multiple data items only while holding Ctrl (or Cmd on macOS). Without the key, selection behaves like `monoSelection`.
614
- * - `zoom`: Zoom into an area of the chart.
615
- * - `none`: Disable interaction-driven selection and zoom actions.
614
+ * #### `monoSelection`
615
+ * Allow users to select one data item at a time by clicking on it. Each new selection replaces the previous selection.
616
+ * <video src="https://developers.arcgis.com/javascript/latest/assets/references/components/chart/actionMode_mono.webm" aria-label="action mode monoSelection" width="600" autoPlay loop muted playsInline/>
616
617
  *
617
- * **Note**: Not applicable to gauges.
618
+ * #### `multiSelection`
619
+ * Allows users to click or drag a selection rectangle to select multiple data items. Each new selection is added to the existing selection.
620
+ * <video src="https://developers.arcgis.com/javascript/latest/assets/references/components/chart/actionMode_multi.webm" aria-label="action mode multiSelection" width="600" autoPlay loop muted playsInline/>
621
+ *
622
+ * #### `multiSelectionWithCtrlKey`
623
+ * Allow users to click or drag a selection rectangle to select multiple data items. Each new selection replaces the previous selection unless the `Ctrl` (or `Cmd` on macOS) key is held.
624
+ *
625
+ * In the below video, the first two selections are made without holding the `Ctrl` key, so each new selection replaces the previous one. The next two selections are made while holding the `Ctrl` key, so they are added to the existing selection.
626
+ * <video src="https://developers.arcgis.com/javascript/latest/assets/references/components/chart/actionMode_ctrl.webm" aria-label="action mode multiSelectionWithCtrlKey" width="600" autoPlay loop muted playsInline/>
627
+ *
628
+ * #### `zoom`
629
+ * Allows users to zoom into an area of the chart.
630
+ * <video src="https://developers.arcgis.com/javascript/latest/assets/references/components/chart/actionMode_zoom.webm" aria-label="action mode zoom" width="600" autoPlay loop muted playsInline/>
631
+ *
632
+ * > Zoom can also be configured using the [`setAxisScrollbar`](/references/charts-components/model/bar-chart-model/bar-chart-model/#setAxisScrollbar) method on the charts model. Refer to the method documentation for details.
633
+ *
634
+ * #### `none`
635
+ * Disable interaction-driven selection or zoom actions.
618
636
  */
619
637
  accessor actionMode: ActionModes | undefined;
620
638
  /**
@@ -623,12 +641,20 @@ export abstract class ArcgisChart extends LitElement {
623
641
  * @default false
624
642
  */
625
643
  accessor allowUsingObjectIdStat: boolean;
644
+ /**
645
+ * When `true`, elements such as data items, axes, and legends will animate when the chart is first rendered or when the chart's configuration is updated.
646
+ *
647
+ * @deprecated since 5.2. Use [animationsEnabled](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#animationsEnabled) instead.
648
+ * @default false
649
+ * @since 5.1
650
+ */
651
+ accessor animationEnabled: boolean | undefined;
626
652
  /**
627
653
  * When `true`, elements such as data items, axes, and legends will animate when the chart is first rendered or when the chart's configuration is updated.
628
654
  *
629
655
  * <video
630
- * src="https://developers.arcgis.com/javascript/latest/assets/references/components/chart/animationEnabled.webm"
631
- * aria-label="animationEnabled"
656
+ * src="https://developers.arcgis.com/javascript/latest/assets/references/components/chart/animationsEnabled.webm"
657
+ * aria-label="animationsEnabled"
632
658
  * width="720"
633
659
  * autoPlay
634
660
  * loop
@@ -637,9 +663,9 @@ export abstract class ArcgisChart extends LitElement {
637
663
  * />
638
664
  *
639
665
  * @default false
640
- * @since 5.1
666
+ * @since 5.2
641
667
  */
642
- accessor animationEnabled: boolean | undefined;
668
+ accessor animationsEnabled: boolean;
643
669
  /**
644
670
  * The ARIA attributes for the chart component. Provides accessibility information to assistive technologies such as screen readers. Supports the following properties: [\`label\`](https://developer.mozilla.org/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-label), [\`description\`](https://developer.mozilla.org/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-description), [\`describedByElements\`](https://developer.mozilla.org/docs/Web/API/Element/ariaDescribedByElements), and [\`labelledByElements\`](https://developer.mozilla.org/docs/Web/API/Element/ariaLabelledByElements).
645
671
  *
@@ -775,14 +801,26 @@ export abstract class ArcgisChart extends LitElement {
775
801
  */
776
802
  accessor configurationEnabled: boolean;
777
803
  /**
778
- * Defines how the cursor selection rectangle is constrained when [actionMode](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#actionMode) is `zoom`, `multiSelection`, or `multiSelectionWithCtrlKey`.
804
+ * Defines how the cursor selection rectangle is constrained when [actionMode](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#actionMode) is `multiSelection`, `multiSelectionWithCtrlKey`, or `zoom`.
779
805
  *
780
806
  * - `multi-axes`: Allows drawing a free rectangle across both axes.
781
807
  * - `x-axis`: Constrains the rectangle to the x-axis direction.
782
808
  * - `y-axis`: Constrains the rectangle to the y-axis direction.
783
809
  * - `undefined`: Uses the default behavior for the current chart type and action mode.
784
810
  *
785
- * **Note**: Not applicable to gauges.
811
+ * | `multi-axes` with selection | `x-axis` with selection | `y-axis` with selection |
812
+ * |-------------|---------|---------|
813
+ * | <video src="https://developers.arcgis.com/javascript/latest/assets/references/components/chart/cursorRange_xy.webm" aria-label="cursorRange multi-axes" width="720" autoPlay loop muted playsInline/> | <video src="https://developers.arcgis.com/javascript/latest/assets/references/components/chart/cursorRange_x.webm" aria-label="cursorRange x-axis" width="720" autoPlay loop muted playsInline/> | <video src="https://developers.arcgis.com/javascript/latest/assets/references/components/chart/cursorRange_y.webm" aria-label="cursorRange y-axis" width="720" autoPlay loop muted playsInline/> |
814
+ *
815
+ * Default behavior when [cursorRange](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#cursorRange) is `undefined`:
816
+ * - Bar chart: For selection, `multi-axes`. For zoom, `x-axis` (or `y-axis` when rotated).
817
+ * - Box plot: For selection and zoom, `multi-axes`.
818
+ * - Heat chart, Histogram: For selection, `multi-axes`. For zoom, `x-axis`.
819
+ * - Line chart: For category axes, selection and zoom use `x-axis` (or `y-axis` when rotated). For number or date axes, both use `multi-axes`.
820
+ * - Radar chart: For selection and zoom, `x-axis` (circular axis).
821
+ * - Scatterplot: For selection and zoom, `multi-axes`.
822
+ *
823
+ * **Note**: Not applicable to gauges and pie charts.
786
824
  */
787
825
  accessor cursorRange: CursorRange | undefined;
788
826
  /**
@@ -1698,9 +1736,10 @@ export abstract class ArcgisChart extends LitElement {
1698
1736
  */
1699
1737
  accessor setTimeBinningInfoWhenNotProvided: boolean;
1700
1738
  /**
1701
- * When `true`, show the series on the chart and legend even if it doesn't contain any data.
1739
+ * When `true`, empty series are shown on the chart and in the legend. A series is empty when it has no data for its category or when data filters exclude all its data.
1740
+ * This property is available for bar, line, combo bar-line, and radar charts, and is most useful when the chart has multiple series.
1702
1741
  *
1703
- * By default, the empty series are hidden from the chart and the legend.
1742
+ * By default, empty series are hidden from the chart and the legend.
1704
1743
  *
1705
1744
  * @default false
1706
1745
  * @example
@@ -1897,7 +1936,7 @@ export abstract class ArcgisChart extends LitElement {
1897
1936
  /**
1898
1937
  * Enable animation on the chart.
1899
1938
  *
1900
- * @deprecated since 5.1. Use [animationEnabled](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#animationEnabled) instead.
1939
+ * @deprecated since 5.1. Use [animationsEnabled](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#animationsEnabled) instead.
1901
1940
  * @default false
1902
1941
  */
1903
1942
  accessor useAnimatedCharts: boolean;