@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,7 +1,7 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
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, cm as _ } from "./index2.js";
4
+ import { a3 as G, cl 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";
@@ -70,8 +70,8 @@ function v(e) {
70
70
  }
71
71
  function te(e) {
72
72
  const { categoryField: o, numericFields: t, configFields: s, inlineData: c } = e;
73
- let n = {};
74
- return s && Object.keys(s).length > 0 && "dataItems" in c && (n = {
73
+ let l = {};
74
+ return s && Object.keys(s).length > 0 && "dataItems" in c && (l = {
75
75
  type: "uniqueValue",
76
76
  field1: o,
77
77
  uniqueValueInfos: []
@@ -79,8 +79,8 @@ function te(e) {
79
79
  const a = r[o];
80
80
  if (a != null) {
81
81
  let i = { value: a };
82
- t.forEach((l) => {
83
- const f = x(r[`${s.fillColor}_${l}`]), u = r[`${s.fillOpacity}_${l}`], p = r[`${s.fillStyle}_${l}`], m = r[`${s.markerSize}_${l}`], d = x(r[`${s.outlineColor}_${l}`]), R = r[`${s.outlineOpacity}_${l}`], g = r[`${s.outlineWidth}_${l}`], N = r[`${s.outlineStyle}_${l}`], $ = x(r[`${s.lineColor}_${l}`]), B = r[`${s.lineOpacity}_${l}`], S = r[`${s.lineWidth}_${l}`], O = r[`${s.lineStyle}_${l}`], A = r[`${s.displayLabel}_${l}`];
82
+ t.forEach((n) => {
83
+ const f = x(r[`${s.fillColor}_${n}`]), u = r[`${s.fillOpacity}_${n}`], p = r[`${s.fillStyle}_${n}`], m = r[`${s.markerSize}_${n}`], d = x(r[`${s.outlineColor}_${n}`]), R = r[`${s.outlineOpacity}_${n}`], g = r[`${s.outlineWidth}_${n}`], N = r[`${s.outlineStyle}_${n}`], $ = x(r[`${s.lineColor}_${n}`]), B = r[`${s.lineOpacity}_${n}`], S = r[`${s.lineWidth}_${n}`], O = r[`${s.lineStyle}_${n}`], A = r[`${s.displayLabel}_${n}`];
84
84
  if (typeof A == "string" && (i = {
85
85
  ...i,
86
86
  label: A
@@ -100,28 +100,28 @@ function te(e) {
100
100
  const h = { type: k.SLS };
101
101
  $ && (B && typeof B == "number" && ($[3] = B), h.color = $), v(O) && (h.style = O), S != null && typeof S == "number" && (h.width = S), i.symbol = h;
102
102
  }
103
- }), (i.label || i.symbol) && n.uniqueValueInfos.push(i);
103
+ }), (i.label || i.symbol) && l.uniqueValueInfos.push(i);
104
104
  }
105
- })), n;
105
+ })), l;
106
106
  }
107
107
  function j(e) {
108
108
  const { numericFields: o, configFields: t, inlineData: s } = e, c = s;
109
- return "dataItems" in s && Object.entries(t).forEach(([n, r]) => {
109
+ return "dataItems" in s && Object.entries(t).forEach(([l, r]) => {
110
110
  o.forEach((a) => {
111
111
  const i = `${r}_${a}`;
112
- s.dataItems.forEach((l) => {
113
- i in l && delete l[i];
112
+ s.dataItems.forEach((n) => {
113
+ i in n && delete n[i];
114
114
  });
115
115
  });
116
116
  }), c;
117
117
  }
118
118
  function oe(e) {
119
119
  const { categoryField: o, categoryType: t, numericFields: s, inlineData: c } = e;
120
- let n;
120
+ let l;
121
121
  if ("dataItems" in c) {
122
122
  const { dataItems: r } = c, a = [];
123
123
  let i = "OBJECTID";
124
- const l = r.map((u, p) => {
124
+ const n = r.map((u, p) => {
125
125
  const m = { ...u };
126
126
  return "FID" in u ? i = "FID" : "ObjectId" in u && (i = "ObjectId"), m[i] || (m[i] = p), { attributes: m };
127
127
  });
@@ -146,19 +146,19 @@ function oe(e) {
146
146
  }
147
147
  a.push({ type: f, name: o }), s.forEach((u) => {
148
148
  a.push({ type: F.Double, name: u });
149
- }), n = {
149
+ }), l = {
150
150
  id: "",
151
151
  layerType: "ArcGISFeatureLayer",
152
152
  featureCollection: {
153
- layers: [{ layerDefinition: { fields: a }, featureSet: { features: l } }]
153
+ layers: [{ layerDefinition: { fields: a }, featureSet: { features: n } }]
154
154
  }
155
155
  };
156
156
  }
157
- return n;
157
+ return l;
158
158
  }
159
159
  async function se(e) {
160
- const { categoryField: o, categoryType: t, numericFields: s, configFields: c, inlineData: n } = e;
161
- let r, a, i = J(n);
160
+ const { categoryField: o, categoryType: t, numericFields: s, configFields: c, inlineData: l } = e;
161
+ let r, a, i = J(l);
162
162
  c && (r = te({
163
163
  categoryField: o,
164
164
  numericFields: s,
@@ -169,13 +169,13 @@ async function se(e) {
169
169
  configFields: c,
170
170
  inlineData: i
171
171
  }));
172
- const l = oe({
172
+ const n = oe({
173
173
  categoryField: o,
174
174
  categoryType: t,
175
175
  numericFields: s,
176
176
  inlineData: i
177
177
  });
178
- return l && (a = await G(l)), { chartRenderer: r, iLayer: l, layer: a };
178
+ return n && (a = await G(n)), { chartRenderer: r, iLayer: n, layer: a };
179
179
  }
180
180
  const $e = {
181
181
  hexToRGB: z,
@@ -194,46 +194,46 @@ function H(e, o, t) {
194
194
  function ae(e, o) {
195
195
  return o?.length === e ? o : [];
196
196
  }
197
- function ne(e) {
197
+ function le(e) {
198
198
  const {
199
199
  numberOfClassBreaks: o,
200
200
  baseColors: t,
201
201
  fallbackStartColor: s = [237, 248, 251, 255],
202
202
  fallbackEndColor: c = [136, 65, 157, 255]
203
203
  } = e;
204
- let n = [];
204
+ let l = [];
205
205
  if (o > 0) {
206
206
  const r = t?.[0] ?? s, a = t && t.length > 1 ? t[t.length - 1] : c;
207
207
  if (o === 1)
208
- n = [r];
208
+ l = [r];
209
209
  else
210
210
  for (let i = 0; i < o; i++) {
211
- const l = i / (o - 1);
212
- n.push(H(r, a, l));
211
+ const n = i / (o - 1);
212
+ l.push(H(r, a, n));
213
213
  }
214
214
  }
215
- return n;
215
+ return l;
216
216
  }
217
- function le(e) {
217
+ function ne(e) {
218
218
  const { colorRamp: o, numberOfClassBreaks: t, isFlipped: s } = e;
219
- let c = [], n = !1;
219
+ let c = [], l = !1;
220
220
  if (o.colorsForClassBreaks && o.colorsForClassBreaks.length > 0) {
221
221
  const r = o.colorsForClassBreaks.find(
222
222
  (a) => a.numClasses === t
223
223
  );
224
224
  if (r?.colors?.length === t) {
225
- const a = r.colors.map((l) => M(l));
226
- a.every((l) => l !== void 0) && (c = s ? a.reverse() : a, n = !0);
225
+ const a = r.colors.map((n) => M(n));
226
+ a.every((n) => n !== void 0) && (c = s ? a.reverse() : a, l = !0);
227
227
  }
228
228
  }
229
- if (!n) {
229
+ if (!l) {
230
230
  const r = o.colors || [];
231
231
  if (r.length > 0) {
232
- let a = r.map(M).filter((l) => l !== void 0);
232
+ let a = r.map(M).filter((n) => n !== void 0);
233
233
  s && (a = a.reverse());
234
234
  const i = [];
235
- for (let l = 0; l < t; l++) {
236
- const f = t > 1 ? l / (t - 1) : 0, u = Math.floor(f * (a.length - 1)), p = Math.min(u + 1, a.length - 1), m = a[u], d = a[p];
235
+ for (let n = 0; n < t; n++) {
236
+ const f = t > 1 ? n / (t - 1) : 0, u = Math.floor(f * (a.length - 1)), p = Math.min(u + 1, a.length - 1), m = a[u], d = a[p];
237
237
  if (!m || !d) {
238
238
  c = [];
239
239
  break;
@@ -248,12 +248,12 @@ function le(e) {
248
248
  }
249
249
  function K(e) {
250
250
  const { numberOfClassBreaks: o, selectedColorRamp: t, colorRamp: s, isFlipped: c = !1 } = e;
251
- let n = ae(o, s);
252
- const r = t ? le({ colorRamp: t, numberOfClassBreaks: o, isFlipped: c }) : [];
253
- return n.length !== o && (n = r), n.length !== o && (n = ne({
251
+ let l = ae(o, s);
252
+ const r = t ? ne({ colorRamp: t, numberOfClassBreaks: o, isFlipped: c }) : [];
253
+ return l.length !== o && (l = r), l.length !== o && (l = le({
254
254
  numberOfClassBreaks: o,
255
255
  baseColors: r.length > 0 ? r : s
256
- })), n;
256
+ })), l;
257
257
  }
258
258
  function ie(e, o = 2) {
259
259
  return `≤ ${((s) => {
@@ -264,8 +264,8 @@ function ie(e, o = 2) {
264
264
  function De(e) {
265
265
  let o = "#000000";
266
266
  if (e && Array.isArray(e) && e.length >= 3) {
267
- const t = y(e[0] || 0), s = y(e[1] || 0), c = y(e[2] || 0), n = t.toString(16).padStart(2, "0"), r = s.toString(16).padStart(2, "0"), a = c.toString(16).padStart(2, "0");
268
- o = `#${n}${r}${a}`;
267
+ const t = y(e[0] || 0), s = y(e[1] || 0), c = y(e[2] || 0), l = t.toString(16).padStart(2, "0"), r = s.toString(16).padStart(2, "0"), a = c.toString(16).padStart(2, "0");
268
+ o = `#${l}${r}${a}`;
269
269
  }
270
270
  return o;
271
271
  }
@@ -286,13 +286,13 @@ const ve = {
286
286
  all: "all"
287
287
  }, ce = (e) => {
288
288
  let o = 0;
289
- const t = (n) => {
289
+ const t = (l) => {
290
290
  let r = 0;
291
- return n.forEach((a) => {
291
+ return l.forEach((a) => {
292
292
  const i = a.toString().split(".")[1];
293
293
  i && (r = Math.max(r, i.length));
294
294
  }), r;
295
- }, s = [...e].sort((n, r) => n - r), c = t(s);
295
+ }, s = [...e].sort((l, r) => l - r), c = t(s);
296
296
  for (; o <= c && s.some(
297
297
  (r, a) => a > 0 && _(r, o) <= _(s[a - 1], o)
298
298
  ); )
@@ -324,8 +324,8 @@ function I(e) {
324
324
  function E(e, o) {
325
325
  let t = 0;
326
326
  const s = e.size <= o.size ? e : o, c = s === e ? o : e;
327
- for (const n of s)
328
- c.has(n) && t++;
327
+ for (const l of s)
328
+ c.has(l) && t++;
329
329
  return t;
330
330
  }
331
331
  function fe(e) {
@@ -335,11 +335,11 @@ function fe(e) {
335
335
  ];
336
336
  }
337
337
  function ue(e) {
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(
338
+ const { ramp: o, breakKeys: t, breakCount: s, weights: c } = e, l = (d) => d.join(","), r = o.colorsForClassBreaks?.find((d) => d.numClasses === s)?.colors ?? [], a = new Set(I(r).map(l)), i = E(t, a), n = new Set(
339
339
  I(K({ numberOfClassBreaks: s, selectedColorRamp: o })).map(
340
- n
340
+ l
341
341
  )
342
- ), f = E(t, l), u = fe(o).filter((d) => !!d), p = new Set(I(u).map(n)), m = E(t, p);
342
+ ), f = E(t, n), u = fe(o).filter((d) => !!d), p = new Set(I(u).map(l)), m = E(t, p);
343
343
  return i * c.exactN + f * c.generated + m * c.anyOverlap;
344
344
  }
345
345
  function Ie(e, o) {
@@ -347,10 +347,10 @@ function Ie(e, o) {
347
347
  exactN: 100,
348
348
  generated: 10,
349
349
  anyOverlap: 1
350
- }, s = (n) => n.join(",");
350
+ }, s = (l) => l.join(",");
351
351
  let c;
352
352
  if (e?.length) {
353
- const n = I(e.map((f) => f.symbol?.color)), r = new Set(n.map(s)), a = n.length, i = o.map((f) => {
353
+ const l = I(e.map((f) => f.symbol?.color)), r = new Set(l.map(s)), a = l.length, i = o.map((f) => {
354
354
  const u = ue({
355
355
  ramp: f,
356
356
  breakKeys: r,
@@ -358,13 +358,13 @@ function Ie(e, o) {
358
358
  weights: t
359
359
  });
360
360
  return { ramp: f, score: u };
361
- }), l = Q(i, [
361
+ }), n = Q(i, [
362
362
  (f) => -f.score,
363
363
  // descending score
364
364
  (f) => f.ramp.name
365
365
  // ascending name
366
366
  ]);
367
- l[0]?.score > 0 && (c = l[0].ramp);
367
+ n[0]?.score > 0 && (c = n[0].ramp);
368
368
  }
369
369
  return c;
370
370
  }
@@ -373,14 +373,14 @@ function Me(e, o) {
373
373
  if (!e?.length || o.length < 2)
374
374
  t = !1;
375
375
  else {
376
- const s = e.map(M), c = o.map((n) => n.symbol.color);
376
+ const s = e.map(M), c = o.map((l) => l.symbol.color);
377
377
  if (s.length !== c.length)
378
378
  t = !1;
379
379
  else {
380
- const n = (i, l) => !!i && !!l && i.length === l.length && i.every((f, u) => f === l[u]);
380
+ const l = (i, n) => !!i && !!n && i.length === n.length && i.every((f, u) => f === n[u]);
381
381
  let r = 0, a = c.length - 1;
382
382
  for (; r < s.length && a >= 0; ) {
383
- if (!n(s[r], c[a])) {
383
+ if (!l(s[r], c[a])) {
384
384
  t = !1;
385
385
  break;
386
386
  }
@@ -391,7 +391,7 @@ function Me(e, o) {
391
391
  return t;
392
392
  }
393
393
  async function me(e) {
394
- const { data: o, breaksCount: t, classificationMethod: s, xAxisField: c, colorsForClassBreaks: n } = e;
394
+ const { data: o, breaksCount: t, classificationMethod: s, xAxisField: c, colorsForClassBreaks: l } = e;
395
395
  let r = [];
396
396
  const a = await se({
397
397
  categoryField: c ?? "",
@@ -400,25 +400,25 @@ async function me(e) {
400
400
  inlineData: o
401
401
  });
402
402
  if (a.layer) {
403
- const i = re?.primaryScheme, l = await q({
403
+ const i = re?.primaryScheme, n = await q({
404
404
  layer: a.layer,
405
405
  field: L.valueField,
406
406
  classificationMethod: s,
407
407
  numClasses: t,
408
408
  colorScheme: i
409
409
  });
410
- if (l?.classBreaksResult?.classBreakInfos?.length) {
410
+ if (n?.classBreaksResult?.classBreakInfos?.length) {
411
411
  const f = ce(
412
- l.classBreaksResult.classBreakInfos.map((u) => u.maxValue)
412
+ n.classBreaksResult.classBreakInfos.map((u) => u.maxValue)
413
413
  );
414
- r = l.classBreaksResult.classBreakInfos.map((u, p) => ({
414
+ r = n.classBreaksResult.classBreakInfos.map((u, p) => ({
415
415
  classMinValue: u.minValue,
416
416
  classMaxValue: u.maxValue,
417
417
  label: ie(u.maxValue, f),
418
418
  symbol: {
419
419
  type: k.SFS,
420
420
  style: b.Solid,
421
- color: n?.[p] || [0, 0, 0, 255],
421
+ color: l?.[p] || [0, 0, 0, 255],
422
422
  outline: {
423
423
  style: C.Solid,
424
424
  width: 0.5,
@@ -447,15 +447,15 @@ const Ne = Y(
447
447
  breaksCount: t,
448
448
  classificationMethod: s,
449
449
  xAxisField: c,
450
- colorRampName: n,
450
+ colorRampName: l,
451
451
  availableColorRamps: r,
452
452
  existingClassBreakInfos: a,
453
453
  useExistingColors: i,
454
- isColorRampFlipped: l
454
+ isColorRampFlipped: n
455
455
  } = e, f = he({
456
- colorRampName: n,
456
+ colorRampName: l,
457
457
  availableColorRamps: r
458
- }), u = l ?? !1, p = K({
458
+ }), u = n ?? !1, p = K({
459
459
  numberOfClassBreaks: t,
460
460
  selectedColorRamp: f,
461
461
  colorRamp: i ? a?.map((m) => m.symbol?.color) : void 0,
@@ -481,9 +481,9 @@ function Be({
481
481
  }) {
482
482
  let s = !0;
483
483
  if (Array.isArray(e) && Array.isArray(o)) {
484
- const c = (n) => n.map(({ symbol: r, ...a }) => a);
484
+ const c = (l) => l.map(({ symbol: r, ...a }) => a);
485
485
  if (T(c(e), c(o))) {
486
- const n = e.map((l) => l.symbol?.color), r = o.map((l) => l.symbol?.color), a = T(n, r), i = T(n, [...r].reverse());
486
+ const l = e.map((n) => n.symbol?.color), r = o.map((n) => n.symbol?.color), a = T(l, r), i = T(l, [...r].reverse());
487
487
  s = t ? !(a || i) : !a;
488
488
  }
489
489
  }
@@ -1,15 +1,15 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  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
- 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 A, d as D, j as F, 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";
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 A, d as D, j as F, k as H, n as W, o as d, p as j, q as w, r as P, W as T } from "./negative-values-stacked-to-baseline.js";
5
5
  import { S as N, s as q } from "./serial-chart-model.js";
6
- import { h as R } from "./utils.js";
6
+ import { f as R } from "./utils.js";
7
7
  import { u as S } from "./chart-object-literals.js";
8
- import { bt as $, ap as f, bs as l, bd as h } from "./index2.js";
8
+ import { bt as $, ap as f, bs as l, bd as g } from "./index2.js";
9
9
  import { z as E, A as y, $ as m } from "./index.js";
10
10
  var G = Object.defineProperty, J = Object.getOwnPropertyDescriptor, n = (c, e, i, s) => {
11
- for (var t = J(e, i), r = c.length - 1, g; r >= 0; r--)
12
- (g = c[r]) && (t = g(e, i, t) || t);
11
+ for (var t = J(e, i), r = c.length - 1, h; r >= 0; r--)
12
+ (h = c[r]) && (t = h(e, i, t) || t);
13
13
  return t && G(e, i, t), t;
14
14
  };
15
15
  class o extends N {
@@ -17,7 +17,7 @@ class o extends N {
17
17
  super(...arguments), this._chartType = S.ComboLineAndBarSeries;
18
18
  }
19
19
  async setup(e) {
20
- await this.loadConfigFromLayer(e), this.setupLocalProps(), e.config !== void 0 && ($(e.config?.series) && this.initDefaultSeries(), this.updateSeriesFromLayerFilter()), typeof this.resolveSetup == "function" && this.resolveSetup();
20
+ await this.loadConfigFromLayer(e), this.setupLocalProps(), e.config !== void 0 && ($(e.config?.series) && this.initDefaultSeries(), await this.rebuildSeries()), typeof this.resolveSetup == "function" && this.resolveSetup();
21
21
  }
22
22
  // ---------------------------------------------------------------------------------------------
23
23
  // Protected Methods
@@ -61,7 +61,7 @@ class o extends N {
61
61
  ...t.fillSymbol,
62
62
  color: s.lineSymbol?.color
63
63
  });
64
- } else if (i === S.LineSeries && h(s)) {
64
+ } else if (i === S.LineSeries && g(s)) {
65
65
  const r = { ...s };
66
66
  delete r.fillSymbol, delete r.hideOversizedStackedLabels, delete r.hideOversizedSideBySideLabels, t = {
67
67
  ...m({
@@ -184,7 +184,7 @@ class o extends N {
184
184
  }
185
185
  setMarkerVisible(e, i) {
186
186
  const s = this._config.series?.[i];
187
- l(s) && P({
187
+ l(s) && w({
188
188
  visible: e,
189
189
  seriesIndex: i,
190
190
  config: this._config
@@ -197,7 +197,7 @@ class o extends N {
197
197
  * @param seriesIndex - The index of the series.
198
198
  */
199
199
  getAreaColor(e) {
200
- return T(e, this._config);
200
+ return P(e, this._config);
201
201
  }
202
202
  setAreaColor(e, i) {
203
203
  const s = this._config.series?.[i];
@@ -219,7 +219,7 @@ class o extends N {
219
219
  }
220
220
  setSeriesHideOversizedSideBySideLabels(e, i) {
221
221
  const s = this._config.series?.[i];
222
- h(s) && b(e, i, this._config);
222
+ g(s) && b(e, i, this._config);
223
223
  }
224
224
  /**
225
225
  * Gets whether to hide oversized data labels of the stacked series based on the series index.
@@ -232,7 +232,7 @@ class o extends N {
232
232
  }
233
233
  setSeriesHideOversizedStackedLabels(e, i) {
234
234
  const s = this._config.series?.[i];
235
- h(s) && L(e, i, this._config);
235
+ g(s) && L(e, i, this._config);
236
236
  }
237
237
  }
238
238
  n([
@@ -271,7 +271,7 @@ n([
271
271
  n([
272
272
  a
273
273
  ], o.prototype, "setSeriesHideOversizedStackedLabels");
274
- const K = [w, u];
274
+ const K = [T, u];
275
275
  R(o, K);
276
276
  export {
277
277
  o as ComboBarLineChartModel
@@ -1,6 +1,6 @@
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 h, k as B, m as L, dg as $, Y as N, ap as I, af as H, az as P, l as _, n as v } from "./index2.js";
3
+ import { N as h, k as B, m as L, dh as $, Y as N, ap as I, af as H, az as P, l as _, n as v } from "./index2.js";
4
4
  import { g as F } from "./series-types.js";
5
5
  import { H as A, S as o, P as M } from "./common.js";
6
6
  import { p as l, n, u as d, r as g } from "./chart-object-literals.js";
@@ -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 P } from "./x-bounds.js";
11
- import { g as N, h as w } from "./utils.js";
11
+ import { g as N, f as w } from "./utils.js";
12
12
  const M = (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,17 +1,17 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { m as t } from "./model-setter.js";
3
- import { H as o } from "./common.js";
3
+ import { H as n } from "./common.js";
4
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 Q, a7 as Z, a8 as c, a9 as m, aa as q, ab as z, ac as J, 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";
5
+ import { F as C, G as T, H as F, I as A, 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 Q, a7 as Z, a8 as m, a9 as y, aa as q, ab as z, ac as J, ad as $, ae as ee, af as te, z as d, 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 as f } from "./data.js";
7
+ import { u as pe, r as p } from "./chart-object-literals.js";
8
8
  import { Q as ce } from "./index.js";
9
9
  import { ap as h } from "./index2.js";
10
10
  import { q as me } from "./index3.js";
11
11
  var ye = Object.defineProperty, de = Object.getOwnPropertyDescriptor, i = (l, e, r, a) => {
12
- for (var n = de(e, r), g = l.length - 1, p; g >= 0; g--)
13
- (p = l[g]) && (n = p(e, r, n) || n);
14
- return n && ye(e, r, n), n;
12
+ for (var o = de(e, r), g = l.length - 1, c; g >= 0; g--)
13
+ (c = l[g]) && (o = c(e, r, o) || o);
14
+ return o && ye(e, r, o), o;
15
15
  };
16
16
  class s extends u {
17
17
  constructor() {
@@ -51,10 +51,10 @@ class s extends u {
51
51
  * The y axis field used by the heat chart.
52
52
  */
53
53
  get yAxisField() {
54
- return A(this._config);
54
+ return F(this._config);
55
55
  }
56
56
  set yAxisField(e) {
57
- F({
57
+ A({
58
58
  yField: e,
59
59
  config: this._config,
60
60
  layerInfo: this.layerInfo,
@@ -254,29 +254,29 @@ class s extends u {
254
254
  return e !== void 0 ? [e] : [];
255
255
  }
256
256
  set numericFields(e) {
257
- const { idField: r } = h(this.layerInfo.layer), a = me(e[0]), n = a ? r : e[0];
258
- Z({
259
- field: n,
257
+ const { idField: r } = h(this.layerInfo.layer), a = me(e[0]), o = a ? r : e[0];
258
+ this._numericFields = [o], Z({
259
+ field: o,
260
260
  config: this._config,
261
261
  layerInfo: this.layerInfo,
262
262
  commonStrings: this.commonStrings
263
263
  });
264
- const g = c(this._config);
265
- a && g !== f.Count && m({
266
- aggregationType: f.Count,
264
+ const g = m(this._config);
265
+ a && g !== p.Count && (this._aggregationType = p.Count, y({
266
+ aggregationType: p.Count,
267
267
  config: this._config,
268
268
  layerInfo: this.layerInfo,
269
269
  commonStrings: this.commonStrings
270
- });
270
+ }));
271
271
  }
272
272
  /**
273
273
  * The aggregation type for the heat chart.
274
274
  */
275
275
  get aggregationType() {
276
- return c(this._config);
276
+ return m(this._config);
277
277
  }
278
278
  set aggregationType(e) {
279
- m({
279
+ this._aggregationType = e, y({
280
280
  aggregationType: e,
281
281
  config: this._config,
282
282
  layerInfo: this.layerInfo,
@@ -316,7 +316,7 @@ class s extends u {
316
316
  });
317
317
  }
318
318
  getSortOrder() {
319
- return o.Asc;
319
+ return n.Asc;
320
320
  }
321
321
  setSortOrder(e, r) {
322
322
  }
@@ -325,22 +325,22 @@ class s extends u {
325
325
  * @returns {"Asc" | "Desc" | "customSort"}
326
326
  */
327
327
  getXAxisSortOrder() {
328
- const e = y(this._config)[0];
329
- return e === o.Asc || e === o.Desc || e === o.customSort ? e : o.Asc;
328
+ const e = d(this._config)[0];
329
+ return e === n.Asc || e === n.Desc || e === n.customSort ? e : n.Asc;
330
330
  }
331
331
  setXAxisSortOrder(e, r) {
332
- d(e, this._config, r);
332
+ f(e, this._config, r);
333
333
  }
334
334
  /**
335
335
  * Gets the sort order for on the y axis for heat chart.
336
336
  * @returns {"Asc" | "Desc" | "customSort"}
337
337
  */
338
338
  getYAxisSortOrder() {
339
- const e = y(this._config)[1];
340
- return e === o.Asc || e === o.Desc || e === o.customSort ? e : o.Asc;
339
+ const e = d(this._config)[1];
340
+ return e === n.Asc || e === n.Desc || e === n.customSort ? e : n.Asc;
341
341
  }
342
342
  setYAxisSortOrder(e, r) {
343
- d(e, this._config, r, !0);
343
+ f(e, this._config, r, !0);
344
344
  }
345
345
  get emptyCellText() {
346
346
  return ie(this._config);
@@ -1,5 +1,5 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { h as m } from "./utils.js";
2
+ import { f 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";