@arcgis/charts-components 5.2.0-next.40 → 5.2.0-next.42

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 (151) hide show
  1. package/dist/cdn/{EJK3RW6P.js → 22GC5BZP.js} +1 -1
  2. package/dist/cdn/{7CZ4J2W3.js → 2VWSSNE6.js} +1 -1
  3. package/dist/cdn/{Z3XWLWF4.js → 2WFIFBMW.js} +1 -1
  4. package/dist/cdn/{KFH7ONYI.js → 33NDNTD4.js} +1 -1
  5. package/dist/cdn/{YKOEU6IH.js → 3WV4T637.js} +1 -1
  6. package/dist/cdn/{LGM37IA4.js → 3YJRZ7CT.js} +1 -1
  7. package/dist/cdn/{J2YNPNIL.js → 4MSUALRF.js} +1 -1
  8. package/dist/cdn/{YAMKN44F.js → 4QGMMXRI.js} +1 -1
  9. package/dist/cdn/{SGVBAC76.js → 4RGS5J3H.js} +1 -1
  10. package/dist/cdn/{DIBTCFWT.js → 4WQF5DM3.js} +1 -1
  11. package/dist/cdn/{LV3T5QZF.js → 4ZJHIYGJ.js} +1 -1
  12. package/dist/cdn/{KPWBRKB2.js → 5XXP2NRJ.js} +1 -1
  13. package/dist/cdn/{LQ4XNJEN.js → 6TA7HFV2.js} +1 -1
  14. package/dist/cdn/76HEBLTU.js +2 -0
  15. package/dist/cdn/{Y4AQR62O.js → 76ILRLUC.js} +1 -1
  16. package/dist/cdn/{NIKK5PQK.js → 7KYTSBST.js} +1 -1
  17. package/dist/cdn/{77YS6YLT.js → 7RFX7LUS.js} +4 -4
  18. package/dist/cdn/{YSAFZOZ6.js → 7T4W77V3.js} +1 -1
  19. package/dist/cdn/{3GGLSOHN.js → B6GOLH4Q.js} +1 -1
  20. package/dist/cdn/{67K3MAX5.js → CHFKSXBJ.js} +1 -1
  21. package/dist/cdn/{PKQ36JAB.js → CMPHWKTI.js} +1 -1
  22. package/dist/cdn/{QCRIXDV3.js → CXT62XXL.js} +1 -1
  23. package/dist/cdn/{PIXOUTW3.js → D4WXMS4I.js} +1 -1
  24. package/dist/cdn/{M7YZTXYW.js → D7FL6CSK.js} +1 -1
  25. package/dist/cdn/{EVCIAJFC.js → DE5QJPJV.js} +1 -1
  26. package/dist/cdn/{FXACMXC2.js → DWOP2HE4.js} +1 -1
  27. package/dist/cdn/{BMQRK46I.js → E47MLNJA.js} +1 -1
  28. package/dist/cdn/{TBGSY7QJ.js → EAXAXRX2.js} +1 -1
  29. package/dist/cdn/EIXU5GSK.js +2 -0
  30. package/dist/cdn/{I7QOG3AA.js → ELICLP7J.js} +1 -1
  31. package/dist/cdn/{4GZPZPT6.js → EMMV3MPZ.js} +1 -1
  32. package/dist/cdn/{2MWAHHYM.js → ESAVCU5M.js} +20 -20
  33. package/dist/cdn/{32EVZ7R6.js → F5P4Z43T.js} +1 -1
  34. package/dist/cdn/{OEIPZTMI.js → G3IEARQP.js} +1 -1
  35. package/dist/cdn/{M7F2IDEE.js → GGN3I7J2.js} +1 -1
  36. package/dist/cdn/{RB7LVEKZ.js → GKXBWOFH.js} +1 -1
  37. package/dist/cdn/{NKUXUCUP.js → GP3V6A7V.js} +1 -1
  38. package/dist/cdn/{HAOL7B5B.js → HCYQEOJ6.js} +1 -1
  39. package/dist/cdn/{KML35YPO.js → HP47BFLZ.js} +1 -1
  40. package/dist/cdn/{BUXRBQJJ.js → HRMCHOLZ.js} +1 -1
  41. package/dist/cdn/{MAHZG3PJ.js → I2CZFSEB.js} +1 -1
  42. package/dist/cdn/{FFKWJL25.js → I6REUMW3.js} +1 -1
  43. package/dist/cdn/{LHQWVJAF.js → IIQVRNZF.js} +1 -1
  44. package/dist/cdn/{P4HSSZRL.js → IONJLIQQ.js} +1 -1
  45. package/dist/cdn/{XCRTBM2X.js → ISYGPFXM.js} +1 -1
  46. package/dist/cdn/{W2YAFML7.js → J64IDIEG.js} +1 -1
  47. package/dist/cdn/{K63SHENK.js → JATS27TM.js} +1 -1
  48. package/dist/cdn/{GHE7Q677.js → JPPLQW3P.js} +1 -1
  49. package/dist/cdn/{WNKDEOFZ.js → JWD4Y2L6.js} +1 -1
  50. package/dist/cdn/{AK7X7SGI.js → JYC77MVD.js} +1 -1
  51. package/dist/cdn/K4APZJ2O.js +2 -0
  52. package/dist/cdn/{CFC3NUMS.js → KHLGXKN5.js} +1 -1
  53. package/dist/cdn/KRBNJLUR.js +2 -0
  54. package/dist/cdn/{G6EAXNDR.js → LJLL37FG.js} +1 -1
  55. package/dist/cdn/{YTUVGIHK.js → LMIDBRIM.js} +1 -1
  56. package/dist/cdn/{FX3T2NSR.js → LSMBD5CK.js} +1 -1
  57. package/dist/cdn/{UM5S2Y4R.js → LSWWNXP3.js} +1 -1
  58. package/dist/cdn/{LLUS6VGO.js → MCT4U7MC.js} +1 -1
  59. package/dist/cdn/{QCTAG2EK.js → MLBDUKS3.js} +1 -1
  60. package/dist/cdn/{WGANHKGM.js → MNE46H4A.js} +1 -1
  61. package/dist/cdn/{BDKELWTL.js → NFJXS4T6.js} +1 -1
  62. package/dist/cdn/{L7HQ4MVM.js → NG254LPM.js} +1 -1
  63. package/dist/cdn/{KDJ5RVHA.js → NYFHPR6N.js} +1 -1
  64. package/dist/cdn/{A7NYIP7H.js → OGRUONHM.js} +1 -1
  65. package/dist/cdn/{XM6AWAPQ.js → PCODH67Z.js} +1 -1
  66. package/dist/cdn/{IQFWMCJN.js → PDYF2IZ2.js} +1 -1
  67. package/dist/cdn/{LX7XADSL.js → PF7KNYUV.js} +1 -1
  68. package/dist/cdn/{ME5VD6DD.js → PGO6DEJM.js} +1 -1
  69. package/dist/cdn/{FGNKVNM7.js → PLEZNRQC.js} +1 -1
  70. package/dist/cdn/{D3ITKS2P.js → QFDQH5CQ.js} +1 -1
  71. package/dist/cdn/{XJFVSX2E.js → QJMUS3VS.js} +1 -1
  72. package/dist/cdn/{KHT4LCWN.js → QYNNPEED.js} +1 -1
  73. package/dist/cdn/{AAKVGDCP.js → QZ5YUJ7Y.js} +1 -1
  74. package/dist/cdn/{7GOPZGE7.js → R32CA4NB.js} +1 -1
  75. package/dist/cdn/{NDOLRRBV.js → RE5QI7WA.js} +1 -1
  76. package/dist/cdn/{FLNKNNA4.js → RPTZ52MF.js} +1 -1
  77. package/dist/cdn/{7IEZ4KIQ.js → RS37HDC7.js} +1 -1
  78. package/dist/cdn/{T7SDOM4Y.js → SDHNDW2J.js} +1 -1
  79. package/dist/cdn/{GVLUS52N.js → SG3NAFAX.js} +1 -1
  80. package/dist/cdn/{2WUJ5KOD.js → T3ZESENF.js} +1 -1
  81. package/dist/cdn/{ZVPPOBET.js → TAGN7GHJ.js} +1 -1
  82. package/dist/cdn/{QWKP4JOC.js → U5FPTPFH.js} +1 -1
  83. package/dist/cdn/{OJR4AWVU.js → UG37REGM.js} +1 -1
  84. package/dist/cdn/{F2OCFEOW.js → UNFEHNQQ.js} +1 -1
  85. package/dist/cdn/{6TCG2WXL.js → USQYT55U.js} +1 -1
  86. package/dist/cdn/{2AFGL3N3.js → UTJ2ODDK.js} +1 -1
  87. package/dist/cdn/VAUVQGBW.js +3 -0
  88. package/dist/cdn/{LH4X6ACJ.js → WGYVJ5PD.js} +1 -1
  89. package/dist/cdn/{GOZ5QOUF.js → WIPAO2FH.js} +1 -1
  90. package/dist/cdn/{RJENJCOJ.js → WKRYWDKZ.js} +1 -1
  91. package/dist/cdn/{LU3GHFTE.js → WVPMH6DW.js} +1 -1
  92. package/dist/cdn/{YMY3CBBG.js → XY4HDZKZ.js} +1 -1
  93. package/dist/cdn/{IRSXCGOE.js → YABRVLVL.js} +1 -1
  94. package/dist/cdn/{LBG2RY2P.js → YE6DMUZG.js} +1 -1
  95. package/dist/cdn/{7HTA55LZ.js → YGGPPIZ7.js} +1 -1
  96. package/dist/cdn/{DGYWXTWO.js → YXG7RVTK.js} +1 -1
  97. package/dist/cdn/{BDCXALOP.js → Z7NF4IGS.js} +1 -1
  98. package/dist/cdn/ZSATO43B.js +2 -0
  99. package/dist/cdn/index.js +1 -1
  100. package/dist/cdn/model/shared/setup-utils.js +1 -1
  101. package/dist/chunks/bar-chart-model.js +1 -1
  102. package/dist/chunks/box-plot-data.js +1 -1
  103. package/dist/chunks/box-plot-model.js +5 -5
  104. package/dist/chunks/chart-model.js +1 -1
  105. package/dist/chunks/chart-object-literals.js +2 -1
  106. package/dist/chunks/class-breaks.js +14 -14
  107. package/dist/chunks/combo-bar-line-chart-model.js +1 -1
  108. package/dist/chunks/data.js +5 -5
  109. package/dist/chunks/gauge-model.js +1 -1
  110. package/dist/chunks/heat-chart-model.js +66 -57
  111. package/dist/chunks/histogram-model.js +1 -1
  112. package/dist/chunks/index2.js +3496 -3375
  113. package/dist/chunks/index4.js +26 -8
  114. package/dist/chunks/line-chart-model.js +1 -1
  115. package/dist/chunks/model-setter.js +3 -3
  116. package/dist/chunks/model-with-x-guides.js +5 -5
  117. package/dist/chunks/model-with-y-guides.js +8 -8
  118. package/dist/chunks/pie-chart-model.js +9 -9
  119. package/dist/chunks/radar-chart-model.js +1 -1
  120. package/dist/chunks/scatterplot-model.js +11 -11
  121. package/dist/chunks/serial-chart-data.js +785 -701
  122. package/dist/chunks/serial-chart-model.js +1 -1
  123. package/dist/chunks/utils.js +16 -16
  124. package/dist/chunks/web-component-utils.js +1 -1
  125. package/dist/chunks/x-bounds.js +1 -1
  126. package/dist/components/arcgis-chart/customElement.js +3531 -3519
  127. package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
  128. package/dist/components/arcgis-charts-config-create-flow/customElement.js +7 -7
  129. package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +57 -70
  130. package/dist/components/arcgis-charts-config-histogram/customElement.js +1 -1
  131. package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
  132. package/dist/docs/api.json +1 -1
  133. package/dist/docs/docs.json +1 -1
  134. package/dist/docs/web-types.json +1 -1
  135. package/dist/index.js +215 -213
  136. package/dist/json-schema/index.d.ts +15 -2
  137. package/dist/model/heat-chart-model/heat-chart-model.d.ts +2 -2
  138. package/dist/spec/chart-object-literals.d.ts +1 -0
  139. package/dist/spec/data-source.d.ts +6 -1
  140. package/dist/utils/chart-config/converter/index.js +26 -26
  141. package/dist/utils/data/index.d.ts +8 -1
  142. package/dist/utils/defaults/interfaces.d.ts +1 -1
  143. package/dist/utils/layer/query-features/index.d.ts +17 -1
  144. package/dist/utils/layer/query-parser/index.d.ts +1 -0
  145. package/package.json +3 -3
  146. package/dist/cdn/4HBMPMYY.js +0 -2
  147. package/dist/cdn/547RDEMV.js +0 -2
  148. package/dist/cdn/GN53HRKZ.js +0 -2
  149. package/dist/cdn/HR4NMTBV.js +0 -2
  150. package/dist/cdn/QU7LT4XK.js +0 -3
  151. package/dist/cdn/ZLFL6BY5.js +0 -2
@@ -7,14 +7,14 @@ import { C as N } from "./chart-model.js";
7
7
  import { m as o } from "./model-setter.js";
8
8
  import { B as E } from "./common.js";
9
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 Y, c as k, d as G } from "./axis-lines-symbol.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
12
  import { W as q, c as H, d as J } from "./generate-x-axis-title.js";
13
13
  import { W as Q, a as Z } from "./x-bounds.js";
14
14
  import { W as $ } from "./data-labels-symbol.js";
15
15
  import { W as ee } from "./rotated-state.js";
16
16
  import { g as te, s as u, b as se, a as S } from "./series.js";
17
- import { j as ie, h as re, f as oe } from "./utils.js";
17
+ import { k as ie, j as re, h as oe } from "./utils.js";
18
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 x, a as ye, c as me, b as pe, q as ue, r as F, t as Se, u as v, v as Le, w, x as _e, y as Ce, z as Be, A as Me, B as xe, C as Fe, D as b } from "./box-plot-data.js";
19
19
  var ve = Object.defineProperty, we = Object.getOwnPropertyDescriptor, n = (c, e, t, s) => {
20
20
  for (var r = we(e, t), a = c.length - 1, h; a >= 0; a--)
@@ -427,13 +427,13 @@ const be = [
427
427
  ee,
428
428
  X,
429
429
  $,
430
- K,
430
+ k,
431
431
  q,
432
432
  Q,
433
433
  H,
434
434
  Z,
435
+ K,
435
436
  Y,
436
- k,
437
437
  G,
438
438
  J
439
439
  ];
@@ -1,5 +1,5 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { f as j } from "./utils.js";
2
+ import { h 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 { F as p, T as c, J as f } from "./index.js";
@@ -27,7 +27,8 @@ const r = {
27
27
  HeatSeries: "heatSeries",
28
28
  Buffer: "buffer",
29
29
  SizePolicy: "sizeScale",
30
- CalendarDateParts: "calendarDateParts"
30
+ CalendarDateParts: "calendarDateParts",
31
+ HistogramBin: "histogramBin"
31
32
  }, e = {
32
33
  Count: "count",
33
34
  Sum: "sum",
@@ -1,7 +1,7 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import P from "@arcgis/core/Color.js";
2
+ import W from "@arcgis/core/Color.js";
3
3
  import { createClassBreaksRenderer as q } from "@arcgis/core/smartMapping/renderers/color.js";
4
- import { a3 as G, bW as _ } from "./index2.js";
4
+ import { a3 as G, bY as _ } from "./index2.js";
5
5
  import { cloneDeep as J, memoize as Y, isEqual as T, sortBy as Q, flatMap as U } from "lodash-es";
6
6
  import { getSchemes as X } from "@arcgis/core/smartMapping/symbology/color.js";
7
7
  import { k as L } from "./index.js";
@@ -182,7 +182,7 @@ const $e = {
182
182
  convertColor: x,
183
183
  removeConfigFieldsFromData: j
184
184
  }, w = Z.all(), re = X({ geometryType: "point", theme: "high-to-low" });
185
- function W(e, o, t) {
185
+ function H(e, o, t) {
186
186
  const s = Math.max(0, Math.min(1, t));
187
187
  return [
188
188
  Math.round(e[0] + (o[0] - e[0]) * s),
@@ -209,7 +209,7 @@ function ne(e) {
209
209
  else
210
210
  for (let i = 0; i < o; i++) {
211
211
  const l = i / (o - 1);
212
- n.push(W(r, a, l));
212
+ n.push(H(r, a, l));
213
213
  }
214
214
  }
215
215
  return n;
@@ -238,7 +238,7 @@ function le(e) {
238
238
  c = [];
239
239
  break;
240
240
  }
241
- const R = f * (a.length - 1) - u, g = W(m, d, R);
241
+ const R = f * (a.length - 1) - u, g = H(m, d, R);
242
242
  i.push(g);
243
243
  }
244
244
  c = i;
@@ -246,7 +246,7 @@ function le(e) {
246
246
  }
247
247
  return c;
248
248
  }
249
- function H(e) {
249
+ function K(e) {
250
250
  const { numberOfClassBreaks: o, selectedColorRamp: t, colorRamp: s, isFlipped: c = !1 } = e;
251
251
  let n = ae(o, s);
252
252
  const r = t ? le({ colorRamp: t, numberOfClassBreaks: o, isFlipped: c }) : [];
@@ -304,7 +304,7 @@ function y(e) {
304
304
  }
305
305
  function M(e) {
306
306
  let o;
307
- if (e instanceof P) {
307
+ if (e instanceof W) {
308
308
  const t = e.toRgba();
309
309
  o = [y(t[0]), y(t[1]), y(t[2]), y(t[3] * 255)];
310
310
  } else if (Array.isArray(e) && e.every((t) => typeof t == "number") && e.length === 4) {
@@ -336,7 +336,7 @@ function fe(e) {
336
336
  }
337
337
  function ue(e) {
338
338
  const { ramp: o, breakKeys: t, breakCount: s, weights: c } = e, n = (d) => d.join(","), r = o.colorsForClassBreaks?.find((d) => d.numClasses === s)?.colors ?? [], a = new Set(I(r).map(n)), i = E(t, a), l = new Set(
339
- I(H({ numberOfClassBreaks: s, selectedColorRamp: o })).map(
339
+ I(K({ numberOfClassBreaks: s, selectedColorRamp: o })).map(
340
340
  n
341
341
  )
342
342
  ), f = E(t, l), u = fe(o).filter((d) => !!d), p = new Set(I(u).map(n)), m = E(t, p);
@@ -431,14 +431,14 @@ async function me(e) {
431
431
  return r;
432
432
  }
433
433
  function pe(e) {
434
- return e?.length ? e : K.esriColorRamps;
434
+ return e?.length ? e : P.esriColorRamps;
435
435
  }
436
436
  function de(e, o) {
437
437
  return e ? pe(o).find((s) => s.name === e) : void 0;
438
438
  }
439
439
  function he(e) {
440
440
  const { colorRampName: o, availableColorRamps: t } = e;
441
- return de(o, t) ?? K.defaultColorRampForCharts;
441
+ return de(o, t) ?? P.defaultColorRampForCharts;
442
442
  }
443
443
  const Ne = Y(
444
444
  async (e) => {
@@ -455,7 +455,7 @@ const Ne = Y(
455
455
  } = e, f = he({
456
456
  colorRampName: n,
457
457
  availableColorRamps: r
458
- }), u = l ?? !1, p = H({
458
+ }), u = l ?? !1, p = K({
459
459
  numberOfClassBreaks: t,
460
460
  selectedColorRamp: f,
461
461
  colorRamp: i ? a?.map((m) => m.symbol?.color) : void 0,
@@ -470,7 +470,7 @@ const Ne = Y(
470
470
  });
471
471
  },
472
472
  (e) => JSON.stringify(e)
473
- ), K = {
473
+ ), P = {
474
474
  esriColorRamps: w,
475
475
  defaultColorRampForCharts: w.find((e) => e.name === "Blue 3") ?? w[0]
476
476
  };
@@ -495,8 +495,8 @@ export {
495
495
  oe as b,
496
496
  te as c,
497
497
  Be as d,
498
- K as e,
499
- H as f,
498
+ P as e,
499
+ K as f,
500
500
  Ne as g,
501
501
  Me as h,
502
502
  $e as i,
@@ -3,7 +3,7 @@ import { g as p, s as b, a as _, b as L, W as u } from "./rounded-corners.js";
3
3
  import { m as a } from "./model-setter.js";
4
4
  import { g as k, a as C, e as v, b as M, f as z, s as O, h as B, c as V, i as D, d as F, j as A, k as H, n as W, o as d, p as j, q as P, r as T, W as w } from "./negative-values-stacked-to-baseline.js";
5
5
  import { S as N, s as q } from "./serial-chart-model.js";
6
- import { f as R } from "./utils.js";
6
+ import { h as R } from "./utils.js";
7
7
  import { u as S } from "./chart-object-literals.js";
8
8
  import { j as Z, g as l, i as g } from "./index5.js";
9
9
  import { x as E, y, Z as m } from "./index.js";
@@ -1,10 +1,10 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { capitalize as u } from "lodash-es";
3
- import { N as x, k as B, m as L, cS as $, Y as N, an as I, af as H, ax as P, l as _, n as v } from "./index2.js";
3
+ import { N as x, k as B, m as L, cU as $, Y as N, an as I, af as H, ax as P, l as _, n as U } from "./index2.js";
4
4
  import { g as F } from "./series-types.js";
5
- import { H as A, S as o, P as M } from "./common.js";
5
+ import { H as A, S as o, P as v } from "./common.js";
6
6
  import { p as l, n, u as d, r as g } from "./chart-object-literals.js";
7
- import { C as U } from "./index3.js";
7
+ import { C as M } from "./index3.js";
8
8
  import { g as W } from "./index.js";
9
9
  import { d as Y } from "./type-guards.js";
10
10
  function k(e, r) {
@@ -77,7 +77,7 @@ const E = (e) => {
77
77
  let p = "y", C = "y";
78
78
  switch (T) {
79
79
  case d.PieSeries: {
80
- i !== g.NoAggregation ? y === M.Category ? (p = `${i}_${t[0]}_0`.toUpperCase(), C = f ? u(g.Count) : u(`${i} of ${t[0]}`)) : p = v : p = t[0];
80
+ i !== g.NoAggregation ? y === v.Category ? (p = `${i}_${t[0]}_0`.toUpperCase(), C = f ? u(g.Count) : u(`${i} of ${t[0]}`)) : p = U : p = t[0];
81
81
  break;
82
82
  }
83
83
  case d.BarSeries:
@@ -90,7 +90,7 @@ const E = (e) => {
90
90
  fieldName: s,
91
91
  numericFields: t,
92
92
  fieldList: O ?? []
93
- }) || b === U.BarAndLineFromFields ? p = _ : (p = i !== g.NoAggregation ? `${i}_${t[c ?? 0]}_${c ?? 0}`.toUpperCase() : t[c ?? 0], C = f ? u(g.Count) : u(`${i} of ${t[c ?? 0]}`));
93
+ }) || b === M.BarAndLineFromFields ? p = _ : (p = i !== g.NoAggregation ? `${i}_${t[c ?? 0]}_${c ?? 0}`.toUpperCase() : t[c ?? 0], C = f ? u(g.Count) : u(`${i} of ${t[c ?? 0]}`));
94
94
  else {
95
95
  const m = t[0];
96
96
  p = i !== g.NoAggregation ? `${i}_${m}_${h ?? 0}`.toUpperCase() : m, C = f ? u(g.Count) : u(`${i} of ${m}`);
@@ -8,7 +8,7 @@ import { M as T } from "./model-with-x-guides.js";
8
8
  import { W as A, c as W, d as V } from "./axis-lines-symbol.js";
9
9
  import { W as F, c as D, d as B } from "./generate-x-axis-title.js";
10
10
  import { W as E, a as M } from "./x-bounds.js";
11
- import { g as N, f as P } from "./utils.js";
11
+ import { g as N, h as P } from "./utils.js";
12
12
  const w = (t) => t.axes[0].needle?.visible ?? !0, R = (t, e) => {
13
13
  e.axes[0].needle === void 0 && (e.axes[0].needle = d()), e.axes[0].needle.visible = t;
14
14
  }, G = (t) => t.axes[0].needle?.symbol, k = (t, e) => {
@@ -1,13 +1,13 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { m as t } from "./model-setter.js";
3
3
  import { H as o } from "./common.js";
4
- import { S as u, g as _, a as C } from "./serial-chart-model.js";
5
- import { F as S, G as T, H as A, I as F, J as O, K as x, L, M as R, N as D, O as v, P as w, Q as I, R as b, S as B, T as P, U as k, V as E, X as N, Y as W, Z as Y, _ as G, $ as H, a0 as U, a1 as M, a2 as V, a3 as X, a4 as j, a5 as K, a6 as Z, a7 as c, a8 as y, a9 as q, aa as z, ab as J, ac as Q, ad as $, ae as ee, z as d, af as te, ag as ie, ah as se, ai as re, aj as oe, ak as ne, al as ae, am as ge } from "./serial-chart-data.js";
6
- import { d as m } from "./data.js";
7
- import { u as le, r as f } from "./chart-object-literals.js";
8
- import { O as pe } from "./index.js";
4
+ import { S as u, g as _, a as S } from "./serial-chart-model.js";
5
+ import { F as C, G as T, H as A, I as F, J as O, K as x, L, M as R, N as D, O as I, P as v, Q as w, R as b, S as B, T as P, U as k, V as E, X as N, Y as W, Z as Y, _ as H, $ as G, a0 as M, a1 as U, a2 as V, a3 as X, a4 as j, a5 as K, a6 as Z, a7 as q, a8 as c, a9 as m, aa as z, ab as J, ac as Q, ad as $, ae as ee, af as te, z as y, ag as ie, ah as se, ai as re, aj as oe, ak as ne, al as ae, am as ge, an as le } from "./serial-chart-data.js";
6
+ import { d } from "./data.js";
7
+ import { u as pe, r as f } from "./chart-object-literals.js";
8
+ import { O as ce } from "./index.js";
9
9
  import { an as h } from "./index2.js";
10
- import { q as ce } from "./index3.js";
10
+ import { q as me } from "./index3.js";
11
11
  var ye = Object.defineProperty, de = Object.getOwnPropertyDescriptor, i = (l, e, r, a) => {
12
12
  for (var n = de(e, r), g = l.length - 1, p; g >= 0; g--)
13
13
  (p = l[g]) && (n = p(e, r, n) || n);
@@ -15,13 +15,13 @@ var ye = Object.defineProperty, de = Object.getOwnPropertyDescriptor, i = (l, e,
15
15
  };
16
16
  class s extends u {
17
17
  constructor() {
18
- super(...arguments), this._chartType = le.HeatSeries;
18
+ super(...arguments), this._chartType = pe.HeatSeries;
19
19
  }
20
20
  /**
21
21
  * Generate the proper chart title given the current config.
22
22
  */
23
23
  generateChartTitle() {
24
- return this.layerInfo !== void 0 ? S(this._config, this.layerInfo, this.commonStrings) : "";
24
+ return this.layerInfo !== void 0 ? C(this._config, this.layerInfo, this.commonStrings) : "";
25
25
  }
26
26
  /**
27
27
  * Generate the proper y-axis title given the current config.
@@ -36,20 +36,29 @@ class s extends u {
36
36
  get layer() {
37
37
  return super.layer;
38
38
  }
39
+ /**
40
+ * Sets up the heat chart model from the provided model params.
41
+ * @param {ModelParams<ChartConfig<typeof ModelTypes.HeatChart>>} params - The model setup params.
42
+ */
39
43
  async setup(e) {
40
- await this.loadConfigFromLayer(e), this.setupLocalProps(), typeof this.resolveSetup == "function" && this.resolveSetup();
44
+ await this.loadConfigFromLayer(e), T({
45
+ commonStrings: this.commonStrings,
46
+ config: this._config,
47
+ layerInfo: this.layerInfo
48
+ }), this.setupLocalProps(), typeof this.resolveSetup == "function" && this.resolveSetup();
41
49
  }
42
50
  /**
43
51
  * The y axis field used by the heat chart.
44
52
  */
45
53
  get yAxisField() {
46
- return T(this._config);
54
+ return A(this._config);
47
55
  }
48
56
  set yAxisField(e) {
49
- A({
57
+ F({
50
58
  yField: e,
51
59
  config: this._config,
52
- layerInfo: this.layerInfo
60
+ layerInfo: this.layerInfo,
61
+ commonStrings: this.commonStrings
53
62
  });
54
63
  }
55
64
  /**
@@ -60,11 +69,11 @@ class s extends u {
60
69
  * **Note**: This is only applicable for calendar heat charts (when `xAxisField` and `yAxisField` are date fields).
61
70
  */
62
71
  get viewType() {
63
- return F(this._config);
72
+ return O(this._config);
64
73
  }
65
74
  set viewType(e) {
66
75
  this.guardSetterFromAsyncOverwrite(() => {
67
- O(e, this._config), this.emitConfigUpdate("heatChartViewType");
76
+ x(e, this._config), this.emitConfigUpdate("heatChartViewType");
68
77
  });
69
78
  }
70
79
  /**
@@ -79,10 +88,10 @@ class s extends u {
79
88
  * ```
80
89
  */
81
90
  get xTemporalBinning() {
82
- return x(this._config);
91
+ return L(this._config);
83
92
  }
84
93
  set xTemporalBinning(e) {
85
- L({
94
+ R({
86
95
  commonStrings: this.commonStrings,
87
96
  binning: e,
88
97
  config: this._config
@@ -100,10 +109,10 @@ class s extends u {
100
109
  * ```
101
110
  */
102
111
  get yTemporalBinning() {
103
- return R(this._config);
112
+ return D(this._config);
104
113
  }
105
114
  set yTemporalBinning(e) {
106
- D({
115
+ I({
107
116
  commonStrings: this.commonStrings,
108
117
  binning: e,
109
118
  config: this._config
@@ -129,46 +138,46 @@ class s extends u {
129
138
  * `manual` - Allows you to manually specify the class breaks.
130
139
  */
131
140
  get classificationMethod() {
132
- return I(this._config);
141
+ return b(this._config);
133
142
  }
134
143
  set classificationMethod(e) {
135
144
  this.guardSetterFromAsyncOverwrite(() => {
136
- e && (b(e, this._config), this.emitConfigUpdate("classificationMethod"));
145
+ e && (B(e, this._config), this.emitConfigUpdate("classificationMethod"));
137
146
  });
138
147
  }
139
148
  /**
140
149
  * The name of the color ramp used by the heat chart.
141
150
  */
142
151
  get colorRampName() {
143
- return B(this._config);
152
+ return P(this._config);
144
153
  }
145
154
  set colorRampName(e) {
146
- P(e, this._config);
155
+ k(e, this._config);
147
156
  }
148
157
  /**
149
158
  * Whether the color ramp is flipped for the heat chart,
150
159
  * which means the colors will be reversed (e.g., if the original color ramp goes from light to dark, flipping it will make it go from dark to light).
151
160
  */
152
161
  get isColorRampFlipped() {
153
- return k(this._config);
162
+ return E(this._config);
154
163
  }
155
164
  set isColorRampFlipped(e) {
156
- E(e, this._config);
165
+ N(e, this._config);
157
166
  }
158
167
  /**
159
168
  * Hide the empty rows and columns in the heat chart.
160
169
  */
161
170
  get hideEmptyRowsAndColumns() {
162
- return N(this._config);
171
+ return W(this._config);
163
172
  }
164
173
  set hideEmptyRowsAndColumns(e) {
165
- W(this._config, e);
174
+ Y(this._config, e);
166
175
  }
167
176
  /**
168
177
  * The grid line width used by the heat chart.
169
178
  */
170
179
  get gridLineWidth() {
171
- return Y(this._config);
180
+ return H(this._config);
172
181
  }
173
182
  set gridLineWidth(e) {
174
183
  G(e, this._config);
@@ -177,7 +186,7 @@ class s extends u {
177
186
  * The grid line color used by the heat chart.
178
187
  */
179
188
  get gridLineColor() {
180
- return H(this._config);
189
+ return M(this._config);
181
190
  }
182
191
  set gridLineColor(e) {
183
192
  U(e, this._config);
@@ -190,7 +199,7 @@ class s extends u {
190
199
  return _(0, this._config);
191
200
  }
192
201
  set seriesName(e) {
193
- typeof e == "string" && C(e, 0, this._config);
202
+ typeof e == "string" && S(e, 0, this._config);
194
203
  }
195
204
  /**
196
205
  * The heat rules type used by the heat chart.
@@ -198,10 +207,10 @@ class s extends u {
198
207
  * `renderer`: A class break renderer is used to apply specific colors to cells based on defined value ranges, allowing for more customized visualizations.
199
208
  */
200
209
  get heatRulesType() {
201
- return M(this._config);
210
+ return V(this._config);
202
211
  }
203
212
  set heatRulesType(e) {
204
- V(this._config, e);
213
+ X(this._config, e);
205
214
  }
206
215
  /**
207
216
  * Set the gradient rules for the heat chart, which define how data values map to colors.
@@ -223,10 +232,10 @@ class s extends u {
223
232
  * ```
224
233
  */
225
234
  get gradientRules() {
226
- return X(this._config);
235
+ return j(this._config);
227
236
  }
228
237
  set gradientRules(e) {
229
- j(this._config, e);
238
+ K(this._config, e);
230
239
  }
231
240
  /**
232
241
  * Gets the grid lines symbol. Contains styling information such as line width, line style, and line color.
@@ -241,19 +250,19 @@ class s extends u {
241
250
  * Heat chart only supports one numeric field, if there are multiple numeric fields provided in the array, only the first one will be used and the rest will be ignored.
242
251
  */
243
252
  get numericFields() {
244
- const e = K(this._config);
253
+ const e = Z(this._config);
245
254
  return e !== void 0 ? [e] : [];
246
255
  }
247
256
  set numericFields(e) {
248
- const { idField: r } = h(this.layerInfo.layer), a = ce(e[0]), n = a ? r : e[0];
249
- Z({
257
+ const { idField: r } = h(this.layerInfo.layer), a = me(e[0]), n = a ? r : e[0];
258
+ q({
250
259
  field: n,
251
260
  config: this._config,
252
261
  layerInfo: this.layerInfo,
253
262
  commonStrings: this.commonStrings
254
263
  });
255
264
  const g = c(this._config);
256
- a && g !== f.Count && y({
265
+ a && g !== f.Count && m({
257
266
  aggregationType: f.Count,
258
267
  config: this._config,
259
268
  layerInfo: this.layerInfo,
@@ -267,7 +276,7 @@ class s extends u {
267
276
  return c(this._config);
268
277
  }
269
278
  set aggregationType(e) {
270
- y({
279
+ m({
271
280
  aggregationType: e,
272
281
  config: this._config,
273
282
  layerInfo: this.layerInfo,
@@ -284,26 +293,26 @@ class s extends u {
284
293
  set splitByField(e) {
285
294
  }
286
295
  get legendPosition() {
287
- return q(this._config);
296
+ return z(this._config);
288
297
  }
289
298
  set legendPosition(e) {
290
- z(e, this._config);
299
+ J(e, this._config);
291
300
  }
292
301
  get nullPolicy() {
293
- return J(this._config);
302
+ return Q(this._config);
294
303
  }
295
304
  set nullPolicy(e) {
296
- Q(e, this._config);
305
+ $(e, this._config);
297
306
  }
298
307
  get emptyCell() {
299
- return $(this._config);
308
+ return ee(this._config);
300
309
  }
301
310
  /**
302
311
  * The heat chart's empty cell configuration.
303
312
  */
304
313
  set emptyCell(e) {
305
314
  this.guardSetterFromAsyncOverwrite(() => {
306
- ee(e, this._config), this.emitConfigUpdate("emptyCell");
315
+ te(e, this._config), this.emitConfigUpdate("emptyCell");
307
316
  });
308
317
  }
309
318
  getSortOrder() {
@@ -316,38 +325,38 @@ class s extends u {
316
325
  * @returns {"Asc" | "Desc" | "customSort"}
317
326
  */
318
327
  getXAxisSortOrder() {
319
- const e = d(this._config)[0];
328
+ const e = y(this._config)[0];
320
329
  return e === o.Asc || e === o.Desc || e === o.customSort ? e : o.Asc;
321
330
  }
322
331
  setXAxisSortOrder(e, r) {
323
- m(e, this._config, r);
332
+ d(e, this._config, r);
324
333
  }
325
334
  /**
326
335
  * Gets the sort order for on the y axis for heat chart.
327
336
  * @returns {"Asc" | "Desc" | "customSort"}
328
337
  */
329
338
  getYAxisSortOrder() {
330
- const e = d(this._config)[1];
339
+ const e = y(this._config)[1];
331
340
  return e === o.Asc || e === o.Desc || e === o.customSort ? e : o.Asc;
332
341
  }
333
342
  setYAxisSortOrder(e, r) {
334
- m(e, this._config, r, !0);
343
+ d(e, this._config, r, !0);
335
344
  }
336
345
  get emptyCellText() {
337
- return te(this._config);
346
+ return ie(this._config);
338
347
  }
339
348
  set emptyCellText(e) {
340
- ie(e, this._config);
349
+ se(e, this._config);
341
350
  }
342
351
  get includeLeapDay() {
343
- return se(this._config);
352
+ return re(this._config);
344
353
  }
345
354
  /**
346
355
  * Whether to include leap day (February 29) in the heat chart when using "day of month" temporal binning.
347
356
  */
348
357
  set includeLeapDay(e) {
349
358
  this.guardSetterFromAsyncOverwrite(() => {
350
- re(e, this._config), this.emitConfigUpdate("includeLeapDay");
359
+ oe(e, this._config), this.emitConfigUpdate("includeLeapDay");
351
360
  });
352
361
  }
353
362
  /**
@@ -357,18 +366,18 @@ class s extends u {
357
366
  * - `7`: Sunday
358
367
  */
359
368
  get firstDayOfWeek() {
360
- return oe(this._config);
369
+ return ne(this._config);
361
370
  }
362
371
  set firstDayOfWeek(e) {
363
372
  this.guardSetterFromAsyncOverwrite(() => {
364
- ne(e, this._config), this.emitConfigUpdate("firstDayOfWeek");
373
+ ae(e, this._config), this.emitConfigUpdate("firstDayOfWeek");
365
374
  });
366
375
  }
367
376
  get emptyCellSymbol() {
368
- return ae(this._config);
377
+ return ge(this._config);
369
378
  }
370
379
  set emptyCellSymbol(e) {
371
- ge(e, this._config);
380
+ le(e, this._config);
372
381
  }
373
382
  // Chart override methods that aren't supported
374
383
  /**
@@ -410,7 +419,7 @@ class s extends u {
410
419
  * @private
411
420
  */
412
421
  generateDefaultConfig() {
413
- const e = pe(this.commonStrings, h(this.layerInfo.layer).idField);
422
+ const e = ce(this.commonStrings, h(this.layerInfo.layer).idField);
414
423
  return e.axes?.forEach((r, a) => {
415
424
  r && (r.valueFormat = {
416
425
  // use short date format for y axis labels
@@ -1,5 +1,5 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { f as m } from "./utils.js";
2
+ import { h as m } from "./utils.js";
3
3
  import { g as h, s as y, a as g, b as f, c as p, d, e as c, f as S, h as v, i as b, j as u, k as _, l as D, m as M, n as O, o as w, p as C, q as W, r as T, t as x, u as A, v as N, w as L, x as E, y as F, z as X, A as B } from "./histogram-data.js";
4
4
  import { C as P } from "./chart-model.js";
5
5
  import { M as j, a as H, W as I, b as V } from "./data-labels-visibility.js";