@arcgis/charts-components 5.1.2 → 5.1.4

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 (105) hide show
  1. package/dist/cdn/{Q7ZUX7SL.js → 2KMZGANY.js} +1 -1
  2. package/dist/cdn/{IIOX3RFV.js → 2TFATOOA.js} +1 -1
  3. package/dist/cdn/{562GIY35.js → 33DVUHLW.js} +1 -1
  4. package/dist/cdn/{YO6A2YHO.js → 3KPPKAKV.js} +1 -1
  5. package/dist/cdn/{3TA3RDV3.js → 3XQOOVQD.js} +1 -1
  6. package/dist/cdn/{OIZPNP26.js → 4D6MJQGE.js} +1 -1
  7. package/dist/cdn/{PTXIYS2H.js → 4TT2P5OY.js} +1 -1
  8. package/dist/cdn/{YCJWLASD.js → 5DFOI7PP.js} +1 -1
  9. package/dist/cdn/{GTL767EA.js → 5FGV55H7.js} +1 -1
  10. package/dist/cdn/{NI6RCR5I.js → 5LJPDYNW.js} +1 -1
  11. package/dist/cdn/{7VOQAPKR.js → 5NEOQ33I.js} +1 -1
  12. package/dist/cdn/{YLW4B7PO.js → 5TMK4CEI.js} +1 -1
  13. package/dist/cdn/{HDQGCIFU.js → 5XDQYOWX.js} +1 -1
  14. package/dist/cdn/{VJIYLBEB.js → 6WUIHNJV.js} +1 -1
  15. package/dist/cdn/{23CRD7HX.js → 6XGEGAU4.js} +1 -1
  16. package/dist/cdn/{XLZMYLCK.js → 72EIE6AJ.js} +1 -1
  17. package/dist/cdn/{SHMV2YW7.js → 7U6BD7RE.js} +1 -1
  18. package/dist/cdn/{DWMT4K7G.js → ABV6UCMN.js} +1 -1
  19. package/dist/cdn/{QXO56EEX.js → ASP76QRT.js} +1 -1
  20. package/dist/cdn/{SJLXVHEK.js → B5HQ43EN.js} +1 -1
  21. package/dist/cdn/{U46QANN7.js → BIHDQSPP.js} +1 -1
  22. package/dist/cdn/{JXMKI4IA.js → BO62D625.js} +1 -1
  23. package/dist/cdn/{QVQYL6M6.js → BODOPAEX.js} +1 -1
  24. package/dist/cdn/{XNAEJAWM.js → BYMBCT2F.js} +1 -1
  25. package/dist/cdn/{TOTYYAA5.js → DBIVR3L2.js} +1 -1
  26. package/dist/cdn/{AWK63DFR.js → DNADQCK3.js} +1 -1
  27. package/dist/cdn/{CMP6PTJT.js → DWKUQWMM.js} +2 -2
  28. package/dist/cdn/{4H6RZWUK.js → E6GB46ZD.js} +1 -1
  29. package/dist/cdn/{P3UNVQS7.js → EG6IUTUM.js} +1 -1
  30. package/dist/cdn/{2B6N7FWF.js → EHGLI22W.js} +1 -1
  31. package/dist/cdn/{NKVDX2XU.js → FFA2RBY6.js} +1 -1
  32. package/dist/cdn/{3YYMPKGE.js → G37SKFUL.js} +1 -1
  33. package/dist/cdn/{ABXH2N5Z.js → G4INLVFS.js} +1 -1
  34. package/dist/cdn/{VVPCLQHH.js → GYLV7XO5.js} +1 -1
  35. package/dist/cdn/{VRCBDAIM.js → GZHDYNRE.js} +1 -1
  36. package/dist/cdn/{S6SNO2EA.js → HPQR3MBB.js} +1 -1
  37. package/dist/cdn/{ZIVZ5VM7.js → HTIKYSUG.js} +1 -1
  38. package/dist/cdn/{GIDFPLFF.js → HUUQ5D7I.js} +1 -1
  39. package/dist/cdn/{5MUUCLRR.js → J4JRQR6I.js} +1 -1
  40. package/dist/cdn/{J7JQTU7Z.js → J5GJ5GMV.js} +1 -1
  41. package/dist/cdn/{UCKHWA7Y.js → JQ625GCM.js} +1 -1
  42. package/dist/cdn/{5BS2HDMS.js → JW72VEXT.js} +1 -1
  43. package/dist/cdn/{NMF2WTWI.js → JYZJN3VW.js} +1 -1
  44. package/dist/cdn/{3P23ZVN7.js → L4UNCX3L.js} +1 -1
  45. package/dist/cdn/{B2US7GOK.js → MKTZLNQS.js} +1 -1
  46. package/dist/cdn/{NUGTADWT.js → N2EQ4VQJ.js} +1 -1
  47. package/dist/cdn/{TZEFJQQO.js → N4F66JKS.js} +1 -1
  48. package/dist/cdn/{LINGZCLS.js → NAH7RHCB.js} +1 -1
  49. package/dist/cdn/{NBPDOKLD.js → NBKUOIWE.js} +1 -1
  50. package/dist/cdn/{M3TE4TO2.js → NJH2AUUA.js} +1 -1
  51. package/dist/cdn/{VNG5IORT.js → NT7UYJVV.js} +1 -1
  52. package/dist/cdn/{ICMG5OSW.js → NYHISIOD.js} +1 -1
  53. package/dist/cdn/{JNRPZSX2.js → OFCKFTDX.js} +1 -1
  54. package/dist/cdn/{XNRQCRPW.js → OIYGFIO4.js} +1 -1
  55. package/dist/cdn/{CS62SWED.js → P7BXFL27.js} +1 -1
  56. package/dist/cdn/{GLAETANO.js → PSKB6EW7.js} +1 -1
  57. package/dist/cdn/{D5XEPB7Y.js → PYT35JFQ.js} +1 -1
  58. package/dist/cdn/{7VT3PWDF.js → PZNWCTHF.js} +1 -1
  59. package/dist/cdn/{ZC64GSWH.js → QWCA3FTZ.js} +1 -1
  60. package/dist/cdn/{SO54SMRK.js → RAVTKVYZ.js} +1 -1
  61. package/dist/cdn/{5LE75OKD.js → RBDGIDAU.js} +1 -1
  62. package/dist/cdn/{F4OFYIQV.js → RDZKQ3UB.js} +1 -1
  63. package/dist/cdn/{QFIFEZPG.js → S6T5M6GS.js} +1 -1
  64. package/dist/cdn/{X6TCZC2V.js → SIFAYWHC.js} +1 -1
  65. package/dist/cdn/{BWSQAF3V.js → SKIB625Y.js} +1 -1
  66. package/dist/cdn/{NSCYUNI2.js → SWYI6DEZ.js} +1 -1
  67. package/dist/cdn/{FQO23L3F.js → SZMGKYVB.js} +1 -1
  68. package/dist/cdn/{E67Z7RHG.js → TFIXQT72.js} +1 -1
  69. package/dist/cdn/{ZNNQGFW5.js → TLJ4H37R.js} +1 -1
  70. package/dist/cdn/{PUGAJFQ4.js → TW3SD7C7.js} +1 -1
  71. package/dist/cdn/{E4ZX35OO.js → U4JZDPSL.js} +2 -2
  72. package/dist/cdn/{SR3RJNZQ.js → UMEPK4WF.js} +1 -1
  73. package/dist/cdn/{JMTMQC5D.js → UZ3QNDHV.js} +1 -1
  74. package/dist/cdn/{72RT5P6B.js → VCYPJ7PB.js} +1 -1
  75. package/dist/cdn/{KE2C7F2Y.js → VEZL4O6Q.js} +1 -1
  76. package/dist/cdn/{75TR4O5O.js → VKI3EJVB.js} +1 -1
  77. package/dist/cdn/{K7KTF7KO.js → VLBGCHXS.js} +1 -1
  78. package/dist/cdn/{A45L4YEF.js → VMF3NPNR.js} +1 -1
  79. package/dist/cdn/{5TPBNWMN.js → VNGGZBV3.js} +1 -1
  80. package/dist/cdn/{OQASNTFD.js → VVI7T6DN.js} +1 -1
  81. package/dist/cdn/{JD43H6XD.js → VZIW4UJA.js} +1 -1
  82. package/dist/cdn/{OVKTWAJF.js → W5BMIVSG.js} +1 -1
  83. package/dist/cdn/{VKALNXU3.js → WS34OEFD.js} +1 -1
  84. package/dist/cdn/{LCZDAPJ2.js → WSYF2WB3.js} +1 -1
  85. package/dist/cdn/{MJQFSILF.js → WVKAKDT2.js} +1 -1
  86. package/dist/cdn/{47ZF5XTV.js → X2TTMLTD.js} +1 -1
  87. package/dist/cdn/{5GH3OFHI.js → Y5GWG5U5.js} +1 -1
  88. package/dist/cdn/{BQTWGQLP.js → YTYNOFR6.js} +1 -1
  89. package/dist/cdn/{ZEUIFHHY.js → Z2RV6WZ3.js} +1 -1
  90. package/dist/cdn/{44WYDFC2.js → ZBLIN4DV.js} +1 -1
  91. package/dist/cdn/{P3NOLN4B.js → ZG3MLOD3.js} +1 -1
  92. package/dist/cdn/{J2HBTLZL.js → ZLJEUWW4.js} +1 -1
  93. package/dist/cdn/{IFCENHKZ.js → ZO2YW5LI.js} +1 -1
  94. package/dist/cdn/{BYGJR44E.js → ZQBIFM6I.js} +1 -1
  95. package/dist/cdn/{YB3MZLQ3.js → ZQNOUNTB.js} +1 -1
  96. package/dist/cdn/{QVUK4O4M.js → ZZB2HIWS.js} +1 -1
  97. package/dist/cdn/index.js +1 -1
  98. package/dist/cdn/model/shared/setup-utils.js +1 -1
  99. package/dist/chunks/index2.js +71 -71
  100. package/dist/chunks/runtime.js +1 -1
  101. package/dist/components/arcgis-chart/customElement.js +1 -1
  102. package/dist/docs/api.json +1 -1
  103. package/dist/docs/docs.json +1 -1
  104. package/dist/docs/web-types.json +1 -1
  105. package/package.json +3 -3
@@ -26,14 +26,14 @@ import Er from "@arcgis/core/AttributeBinsGraphic.js";
26
26
  import { substitute as Be } from "@arcgis/core/intl.js";
27
27
  import { g as Vt, L as lt, az as W, j as Q, r as ut, o as Oe, ax as Kt, am as ra, aB as na, aq as qr, s as Rt, ay as Vr, b as Rr, a as $r } from "./index.js";
28
28
  import { unsafeGetElementDirection as kr } from "@arcgis/toolkit/dom";
29
- import { fetchT9nStringsBundle as ft, getElementLocale as ze, supportedLocales as sa } from "@arcgis/toolkit/intl";
30
- import { i as oa, b as la, c as ie, a as mt, f as Qr, e as _r } from "./type-guards.js";
29
+ import { fetchT9nStringsBundle as mt, getElementLocale as ze, supportedLocales as sa } from "@arcgis/toolkit/intl";
30
+ import { i as oa, b as la, c as ie, a as yt, f as Qr, e as _r } from "./type-guards.js";
31
31
  import * as ua from "@arcgis/core/core/promiseUtils.js";
32
- import { g as yt } from "./runtime.js";
32
+ import { g as gt } from "./runtime.js";
33
33
  import { linearRegression as jr, linearRegressionLine as Hr, rSquared as zr } from "simple-statistics";
34
34
  import { sqlLiteral as Wr } from "@arcgis/core/core/sql.js";
35
35
  import { DateTime as me } from "luxon";
36
- import { computeStatisticsHistograms as Gr, computeRasterAttributeTable as Ur, getCurrentRasterInfo as bt, fetchPixelFeatureSet as Yr } from "@arcgis/core/applications/Components/imageryUtils.js";
36
+ import { computeStatisticsHistograms as Gr, computeRasterAttributeTable as Ur, getCurrentRasterInfo as ct, fetchPixelFeatureSet as Yr } from "@arcgis/core/applications/Components/imageryUtils.js";
37
37
  import Zr from "@arcgis/core/geometry/Extent.js";
38
38
  import ca from "@arcgis/core/geometry/Point.js";
39
39
  import Xr from "@arcgis/core/layers/ImageryLayer.js";
@@ -173,7 +173,7 @@ function cc(t, e) {
173
173
  }
174
174
  return i;
175
175
  }
176
- const ce = "arcgis_charts_pie_from_fields_name", Ne = "arcgis_charts_pie_from_fields_value", dc = "arcgis_charts_bar_line_from_fields_name", fc = "arcgis_charts_bar_line_from_fields_value", gt = {
176
+ const ce = "arcgis_charts_pie_from_fields_name", Ne = "arcgis_charts_pie_from_fields_value", dc = "arcgis_charts_bar_line_from_fields_name", fc = "arcgis_charts_bar_line_from_fields_value", pt = {
177
177
  ...C,
178
178
  titleAndSubtitlePaddingBottom: 5,
179
179
  chartPadding: 5,
@@ -748,7 +748,7 @@ function wn(t, e) {
748
748
  return (t.hideEmptyRowsAndColumns ?? !1) !== (e.hideEmptyRowsAndColumns ?? !1);
749
749
  }
750
750
  function Ln(t, e) {
751
- return (t.includeLeapDay ?? gt.heatChart.includeLeapDay) !== (e.includeLeapDay ?? gt.heatChart.includeLeapDay);
751
+ return (t.includeLeapDay ?? pt.heatChart.includeLeapDay) !== (e.includeLeapDay ?? pt.heatChart.includeLeapDay);
752
752
  }
753
753
  function Pn(t) {
754
754
  const { previousConfig: e, newConfig: i, fieldList: a } = t, r = e.series[0], n = i.series[0];
@@ -757,7 +757,7 @@ function Pn(t) {
757
757
  const o = new Set(r.additionalTooltipFields || []), u = new Set(n.additionalTooltipFields || []);
758
758
  if (!at(o, u)) {
759
759
  const c = Array.from(u).filter((l) => !o.has(l));
760
- c.length > 0 && (s = a?.some((l) => c.includes(l.name) && !St(l)));
760
+ c.length > 0 && (s = a?.some((l) => c.includes(l.name) && !Ft(l)));
761
761
  }
762
762
  }
763
763
  return s;
@@ -770,7 +770,7 @@ function wc(t, e) {
770
770
  }
771
771
  function Pt(t) {
772
772
  const e = { ...t };
773
- return e.position === void 0 && (e.position = gt.heatChart.legend.position), e;
773
+ return e.position === void 0 && (e.position = pt.heatChart.legend.position), e;
774
774
  }
775
775
  function Lc(t, e) {
776
776
  const i = t.legend ?? { type: h.Legend }, a = e.legend ?? { type: h.Legend }, r = Pt(i), n = Pt(a);
@@ -1035,7 +1035,7 @@ function Na(t) {
1035
1035
  let s, o = "", u;
1036
1036
  if (t.orderOptions?.data !== void 0) {
1037
1037
  const c = t.orderOptions.data && "preferLabel" in t.orderOptions.data ? t.orderOptions.data.preferLabel : !0;
1038
- if (o = t.orderOptions?.data?.orderType ?? De.Category, u = t.orderOptions?.data && "orderBy" in t.orderOptions.data ? t.orderOptions.data.orderBy : void 0, o === De.Category ? r ? o = ce : o = c ? i : gt.originalCategoryValue : o = r ? Ne : [a].flat()[0], o !== void 0 && o !== "") {
1038
+ if (o = t.orderOptions?.data?.orderType ?? De.Category, u = t.orderOptions?.data && "orderBy" in t.orderOptions.data ? t.orderOptions.data.orderBy : void 0, o === De.Category ? r ? o = ce : o = c ? i : pt.originalCategoryValue : o = r ? Ne : [a].flat()[0], o !== void 0 && o !== "") {
1039
1039
  const l = ci(t);
1040
1040
  if (_(t.series) !== h.PieSeries && o !== i && t.series?.length > 1)
1041
1041
  switch (l) {
@@ -1056,7 +1056,7 @@ function Na(t) {
1056
1056
  };
1057
1057
  }
1058
1058
  } else (n || r) && t.series[0].query?.outStatistics && (u = t.series[0].query.outStatistics.map((c) => c.onStatisticField), u?.length > 1 && (s = {
1059
- sortingField: gt.originalCategoryValue,
1059
+ sortingField: pt.originalCategoryValue,
1060
1060
  orderBy: u,
1061
1061
  preferLabel: !1
1062
1062
  }));
@@ -1146,7 +1146,7 @@ function fi(t) {
1146
1146
  function In(t) {
1147
1147
  return t?.[C.originalCategoryValue];
1148
1148
  }
1149
- function pt(t) {
1149
+ function ht(t) {
1150
1150
  const {
1151
1151
  arrayToSort: e,
1152
1152
  orderBy: i,
@@ -2077,10 +2077,10 @@ async function ys(t) {
2077
2077
  if (!ie(f))
2078
2078
  throw new re(le.LayerNotSupported);
2079
2079
  f.loaded || await f.load({ signal: n });
2080
- const m = await ct(f, n);
2080
+ const m = await dt(f, n);
2081
2081
  if (!m)
2082
2082
  throw new Error("Raster info is not available for the layer.");
2083
- const y = dt(e.geometry) ?? f.fullExtent, p = m.bandCount === 1 ? 0 : m.bandInfos.findIndex((b) => b.name === c);
2083
+ const y = ft(e.geometry) ?? f.fullExtent, p = m.bandCount === 1 ? 0 : m.bandInfos.findIndex((b) => b.name === c);
2084
2084
  let g, S;
2085
2085
  if (s !== !0 && (l === void 0 || l === Z.None) && d && Array.isArray(m.histograms) && m.histograms.length > p && m.histograms[p].size % d === 0 && Array.isArray(m.statistics) && m?.statistics?.length > p)
2086
2086
  g = m.histograms[p], S = m.statistics[p];
@@ -2215,7 +2215,7 @@ function Ss(t) {
2215
2215
  pixelRanges: s
2216
2216
  } : void 0;
2217
2217
  }
2218
- function ht(t, e) {
2218
+ function St(t, e) {
2219
2219
  let i, a;
2220
2220
  const r = e ?? ((n) => n);
2221
2221
  for (const n of t) {
@@ -2290,7 +2290,7 @@ async function vs(t) {
2290
2290
  let m;
2291
2291
  const y = z(e), p = ge(y);
2292
2292
  if (p) {
2293
- const S = { where: Y([u, p.definitionExpression]) }, b = { query: S, signal: o }, v = dt(c)?.extent?.toJSON();
2293
+ const S = { where: Y([u, p.definitionExpression]) }, b = { query: S, signal: o }, v = ft(c)?.extent?.toJSON();
2294
2294
  if (v !== void 0) {
2295
2295
  const B = Cs(d), { xmin: N, ymin: T, xmax: w, ymax: L } = v;
2296
2296
  S.geometryType = "esriGeometryEnvelope", S.geometry = `${N},${T},${w},${L}`, l !== void 0 && (S.distance = l.toString()), B !== void 0 && (S.units = B, c?.spatialReference?.wkid != null && (S.inSR = c.spatialReference.wkid.toString()));
@@ -2300,9 +2300,9 @@ async function vs(t) {
2300
2300
  try {
2301
2301
  m = (await Lt(x, b)).data?.features?.[0]?.attributes;
2302
2302
  } catch (B) {
2303
- const N = s ?? (await ft(
2303
+ const N = s ?? (await mt(
2304
2304
  ze(document.documentElement).t9nLocale,
2305
- yt("./assets/common/t9n"),
2305
+ gt("./assets/common/t9n"),
2306
2306
  "messages."
2307
2307
  )).errorStrings;
2308
2308
  throw new re(le.QueryFeaturesError, N.errors.queryError, B);
@@ -2422,9 +2422,9 @@ async function xt(t) {
2422
2422
  });
2423
2423
  } catch (f) {
2424
2424
  if (!ua.isAbortError(f)) {
2425
- const m = r ?? (await ft(
2425
+ const m = r ?? (await mt(
2426
2426
  ze(document.documentElement).t9nLocale,
2427
- yt("./assets/common/t9n"),
2427
+ gt("./assets/common/t9n"),
2428
2428
  "messages."
2429
2429
  )).errorStrings;
2430
2430
  throw new re(le.QueryFeaturesError, m.errors.queryError, f);
@@ -2463,9 +2463,9 @@ async function Oa(t) {
2463
2463
  o = (await e.queryFeatures(d, { signal: c })).features;
2464
2464
  } catch (f) {
2465
2465
  if (!ua.isAbortError(f)) {
2466
- const m = n ?? (await ft(
2466
+ const m = n ?? (await mt(
2467
2467
  ze(document.documentElement).t9nLocale,
2468
- yt("./assets/common/t9n"),
2468
+ gt("./assets/common/t9n"),
2469
2469
  "messages."
2470
2470
  )).errorStrings;
2471
2471
  throw new re(le.QueryFeaturesError, m.errors.queryError, f);
@@ -2573,18 +2573,18 @@ async function Ps(t) {
2573
2573
  d = (await e.queryAttributeBins(y, { signal: l })).features;
2574
2574
  }
2575
2575
  } catch (y) {
2576
- const p = o ?? (await ft(
2576
+ const p = o ?? (await mt(
2577
2577
  ze(document.documentElement).t9nLocale,
2578
- yt("./assets/common/t9n"),
2578
+ gt("./assets/common/t9n"),
2579
2579
  "messages."
2580
2580
  )).errorStrings;
2581
2581
  throw new re(le.QueryFeaturesError, p.errors.queryError, y);
2582
2582
  }
2583
2583
  }
2584
2584
  if (f === !1) {
2585
- const m = o ?? (await ft(
2585
+ const m = o ?? (await mt(
2586
2586
  ze(document.documentElement).t9nLocale,
2587
- yt("./assets/common/t9n"),
2587
+ gt("./assets/common/t9n"),
2588
2588
  "messages."
2589
2589
  )).errorStrings;
2590
2590
  throw new re(
@@ -2613,7 +2613,7 @@ async function Ms(t) {
2613
2613
  return a;
2614
2614
  }
2615
2615
  function Ds(t) {
2616
- const { x: e, y: i, trendlineXToY: a, data: r } = t, { min: n, max: s } = r ? ht(r, (u) => u[e]) : { min: Number.NaN, max: Number.NaN };
2616
+ const { x: e, y: i, trendlineXToY: a, data: r } = t, { min: n, max: s } = r ? St(r, (u) => u[e]) : { min: Number.NaN, max: Number.NaN };
2617
2617
  return [
2618
2618
  { [e]: n ?? Number.NaN, [i]: a(n ?? Number.NaN) },
2619
2619
  { [e]: s ?? Number.NaN, [i]: a(s ?? Number.NaN) }
@@ -2626,7 +2626,7 @@ function Os(t) {
2626
2626
  }
2627
2627
  async function Is(t) {
2628
2628
  const { statsMap: e, queryObject: i, chartConfig: a, queryConfig: r, errorStrings: n, abortSignal: s } = t, o = a.series[0], { x: u, y: c } = o;
2629
- mt(i);
2629
+ yt(i);
2630
2630
  let l = Number.NaN, d = [
2631
2631
  { [u]: Number.NaN, [c]: Number.NaN },
2632
2632
  { [u]: Number.NaN, [c]: Number.NaN }
@@ -2695,7 +2695,7 @@ const Es = 50, qs = 4194304;
2695
2695
  async function Vs(t) {
2696
2696
  const { layer: e, chartConfig: i, rawData: a } = t;
2697
2697
  let r;
2698
- const n = i.series[0], { x: s, y: o } = n, { idField: u } = ve(e), c = await ct(e);
2698
+ const n = i.series[0], { x: s, y: o } = n, { idField: u } = ve(e), c = await dt(e);
2699
2699
  if (c) {
2700
2700
  const l = c.bandInfos, d = l.length === 1, f = d ? l?.[0].name : "";
2701
2701
  r = a.map((m) => ({
@@ -2734,7 +2734,7 @@ async function $s(t) {
2734
2734
  chartConfig: e,
2735
2735
  rawData: u
2736
2736
  });
2737
- r !== !1 && pt({
2737
+ r !== !1 && ht({
2738
2738
  arrayToSort: c,
2739
2739
  sortingField: e.series[0].x,
2740
2740
  orderBy: ye.Ascending
@@ -2885,7 +2885,7 @@ function Ii(t, e) {
2885
2885
  async function Hs(t) {
2886
2886
  const { layer: e, geometry: i, filterByViewExtent: a, view: r, abortKey: n, abortSignal: s } = t;
2887
2887
  e.loaded || await e.load({ signal: s });
2888
- const o = await ct(e, s), u = dt(i) ?? e.fullExtent;
2888
+ const o = await dt(e, s), u = ft(i) ?? e.fullExtent;
2889
2889
  let c = o?.attributeTable;
2890
2890
  if (a) {
2891
2891
  const l = r ? new ca({
@@ -2971,7 +2971,7 @@ async function zs(t) {
2971
2971
  return u;
2972
2972
  }
2973
2973
  async function gd(t) {
2974
- const { layer: e, category: i, splitByField: a, fetchNullValues: r } = t, o = (await ct(e))?.attributeTable?.features, u = a ?? i;
2974
+ const { layer: e, category: i, splitByField: a, fetchNullValues: r } = t, o = (await dt(e))?.attributeTable?.features, u = a ?? i;
2975
2975
  return Array.from(
2976
2976
  new Set(
2977
2977
  o?.filter((l) => {
@@ -3003,7 +3003,7 @@ function Gs(t, e) {
3003
3003
  function Us(t) {
3004
3004
  const { chartConfig: e, layer: i, selectionDataItems: a } = t;
3005
3005
  let r;
3006
- const n = i.serviceRasterInfo?.attributeTable, s = e.series?.[0]?.x, o = n?.features, u = n?.fields?.find(({ name: c }) => c.toLowerCase() === "value")?.name;
3006
+ const n = i.serviceRasterInfo?.attributeTable ?? ct(i)?.attributeTable, s = e.series?.[0]?.x, o = n?.features, u = n?.fields?.find(({ name: c }) => c.toLowerCase() === "value")?.name;
3007
3007
  if (a.length > 0 && s && o && o.length > 0 && u) {
3008
3008
  const c = new Set(
3009
3009
  a.map((l) => l[s]).filter((l) => l !== void 0)
@@ -3037,7 +3037,7 @@ async function pd(t) {
3037
3037
  if (Dr(Zs, i))
3038
3038
  switch (_(i?.series)) {
3039
3039
  case h.BarSeries:
3040
- a.loaded || await a.load({ signal: r }), e = !!(await ct(a, r))?.attributeTable;
3040
+ a.loaded || await a.load({ signal: r }), e = !!(await dt(a, r))?.attributeTable;
3041
3041
  break;
3042
3042
  case h.HistogramSeries:
3043
3043
  case h.ScatterSeries:
@@ -3070,7 +3070,7 @@ function Va(t) {
3070
3070
  if (!t.loaded)
3071
3071
  throw new Error("Raster layer must be loaded to get its ID field name");
3072
3072
  let e;
3073
- const i = bt(t);
3073
+ const i = ct(t);
3074
3074
  if (i?.attributeTable) {
3075
3075
  const a = i.attributeTable.fields, r = a.find((n) => n.type === "oid")?.name;
3076
3076
  r ? e = r : e = a.find((s) => s.name.toLowerCase() === "value")?.name;
@@ -3082,7 +3082,7 @@ function Ra(t) {
3082
3082
  const { layer: e, chartType: i, rasterInfo: a, popupTemplateFieldInfosEnabled: r } = t;
3083
3083
  if (!e.loaded)
3084
3084
  throw new Error("Raster layer must be loaded to get its fields info");
3085
- const n = a ?? bt(e);
3085
+ const n = a ?? ct(e);
3086
3086
  if (!n)
3087
3087
  throw new Error("Raster info must be provided or generated beforehand to get raster layer fields info");
3088
3088
  let s = [];
@@ -3092,7 +3092,7 @@ function Ei(t) {
3092
3092
  const { layer: e, rasterInfo: i, popupTemplateFieldInfosEnabled: a } = t;
3093
3093
  if (!e.loaded)
3094
3094
  throw new Error("Raster layer must be loaded to get its fields info");
3095
- const r = i ?? bt(e);
3095
+ const r = i ?? ct(e);
3096
3096
  if (!r)
3097
3097
  throw new Error("Raster info must be provided or generated beforehand to get raster layer fields info");
3098
3098
  let n;
@@ -3117,12 +3117,12 @@ function Ei(t) {
3117
3117
  }
3118
3118
  return n;
3119
3119
  }
3120
- async function ct(t, e) {
3121
- return t.loaded || await t.load({ signal: e }), Qr(t) ? bt(t) ?? void 0 : await t.generateRasterInfo(t.rasterFunction, { signal: e });
3120
+ async function dt(t, e) {
3121
+ return t.loaded || await t.load({ signal: e }), Qr(t) ? ct(t) ?? void 0 : await t.generateRasterInfo(t.rasterFunction, { signal: e });
3122
3122
  }
3123
3123
  async function hd(t, e) {
3124
3124
  t.loaded || await t.load();
3125
- const i = await ct(t);
3125
+ const i = await dt(t);
3126
3126
  return Ra({ layer: t, rasterInfo: i, popupTemplateFieldInfosEnabled: e });
3127
3127
  }
3128
3128
  const $a = Et(
@@ -3156,7 +3156,7 @@ const $a = Et(
3156
3156
  let i = -1;
3157
3157
  if (!t.loaded)
3158
3158
  throw new Error("Raster layer must be loaded to get its band ID by name");
3159
- const a = bt(t)?.bandInfos;
3159
+ const a = ct(t)?.bandInfos;
3160
3160
  if (a?.length === 1)
3161
3161
  i = 0;
3162
3162
  else if (e && a?.length) {
@@ -3203,7 +3203,7 @@ async function eo(t) {
3203
3203
  const o = n && Ge.get(n)?.signal || void 0, u = z(e);
3204
3204
  u.loaded || await kt(u, o);
3205
3205
  const l = {
3206
- geometry: dt(i.geometry) ?? u.fullExtent,
3206
+ geometry: ft(i.geometry) ?? u.fullExtent,
3207
3207
  autoResample: !0,
3208
3208
  maxPixelCount: r,
3209
3209
  skipFactor: a
@@ -3348,7 +3348,7 @@ function ve(t) {
3348
3348
  }
3349
3349
  return { idField: e, isTraditionalTypeOID: i };
3350
3350
  }
3351
- function St(t) {
3351
+ function Ft(t) {
3352
3352
  const e = [
3353
3353
  U.Single,
3354
3354
  U.Double,
@@ -3379,7 +3379,7 @@ function ro(t) {
3379
3379
  return t.filter((e) => ao(e)).map((e) => e.name);
3380
3380
  }
3381
3381
  function Nd(t) {
3382
- return t.filter((e) => St(e)).map((e) => e.name);
3382
+ return t.filter((e) => Ft(e)).map((e) => e.name);
3383
3383
  }
3384
3384
  function ri(t, e) {
3385
3385
  let i;
@@ -3574,7 +3574,7 @@ function Ld(t) {
3574
3574
  end: new Date(t[1])
3575
3575
  })), e;
3576
3576
  }
3577
- function dt(t) {
3577
+ function ft(t) {
3578
3578
  let e;
3579
3579
  return t !== void 0 && (e = Xi.fromJSON(t)), e;
3580
3580
  }
@@ -3596,7 +3596,7 @@ function Qt(t) {
3596
3596
  (N) => N.statisticType !== D.EnvelopeAggregate || B
3597
3597
  ).map((N) => Nr.fromJSON(N));
3598
3598
  }
3599
- const x = dt(l);
3599
+ const x = ft(l);
3600
3600
  return x !== void 0 && (S.geometry = x, a?.spatialRelationship && (S.spatialRelationship = a.spatialRelationship), ma(p) && (d !== void 0 && (S.distance = d), f !== void 0 && (S.units = f))), m && (S.timeExtent = new Ji({
3601
3601
  start: m?.[0],
3602
3602
  end: m?.[1]
@@ -3970,7 +3970,7 @@ async function Mo(t) {
3970
3970
  abortSignal: u
3971
3971
  } = t, c = e.series[0], { dataTransformationType: l } = c;
3972
3972
  let d = { valid: !0 };
3973
- const f = z(a), y = dt(i?.geometry)?.extent?.toJSON() !== void 0, p = s, g = wo({
3973
+ const f = z(a), y = ft(i?.geometry)?.extent?.toJSON() !== void 0, p = s, g = wo({
3974
3974
  seriesConfig: c,
3975
3975
  layer: f,
3976
3976
  view: p,
@@ -4752,7 +4752,7 @@ async function Go(t) {
4752
4752
  const v = await Promise.all(b);
4753
4753
  for (let x = 0; x < v.length; x += 1)
4754
4754
  l.push(...v[x]);
4755
- return y !== F.BoxPlotMonoFieldAndCategoryAndSplitBy && y !== F.BoxPlotMonoField && (l = Ft({
4755
+ return y !== F.BoxPlotMonoFieldAndCategoryAndSplitBy && y !== F.BoxPlotMonoField && (l = bt({
4756
4756
  data: l,
4757
4757
  x: S !== void 0 && S !== "" ? S : g
4758
4758
  })), l;
@@ -5014,7 +5014,7 @@ function It(t) {
5014
5014
  });
5015
5015
  else {
5016
5016
  const S = u === h.DateAxisFormat && f;
5017
- pt({
5017
+ ht({
5018
5018
  arrayToSort: e,
5019
5019
  orderBy: l,
5020
5020
  sortingField: d,
@@ -5176,7 +5176,7 @@ async function _d(t) {
5176
5176
  fetchNullValues: void 0,
5177
5177
  num: void 0
5178
5178
  };
5179
- mt(e);
5179
+ yt(e);
5180
5180
  const d = await xt({
5181
5181
  queryObject: e,
5182
5182
  queryConfig: l,
@@ -5217,7 +5217,7 @@ function al(t) {
5217
5217
  }), p.push(v), p;
5218
5218
  }, f = (p, g) => JSON.stringify(p).localeCompare(JSON.stringify(g));
5219
5219
  let m = o?.reduce(d, [])?.sort(f), y = u?.reduce(d, [])?.sort(f);
5220
- m && y && r && m.length !== y.length && (m = Ft({ data: m, x: r }), y = Ft({ data: y, x: r })), c = m?.length !== y?.length || !at(m, y);
5220
+ m && y && r && m.length !== y.length && (m = bt({ data: m, x: r }), y = bt({ data: y, x: r })), c = m?.length !== y?.length || !at(m, y);
5221
5221
  }
5222
5222
  return c;
5223
5223
  }
@@ -5235,7 +5235,7 @@ function rl(t) {
5235
5235
  outStatisticFieldName: e.series[0].query?.outStatistics?.[0]?.outStatisticFieldName
5236
5236
  }) ? r = o : r = i ?? [], n.length > 1 && s !== F.BarAndLineNoAggregation && s !== F.BarAndLineSplitByNoAggregation) {
5237
5237
  const u = te(n[0].query?.where);
5238
- r = Ft({ data: r, x: n[0].x, splitByField: u });
5238
+ r = bt({ data: r, x: n[0].x, splitByField: u });
5239
5239
  }
5240
5240
  It({
5241
5241
  arrayToSort: r,
@@ -5566,7 +5566,7 @@ async function dl(t) {
5566
5566
  abortKey: p,
5567
5567
  abortSignal: g
5568
5568
  } = t;
5569
- mt(e);
5569
+ yt(e);
5570
5570
  const { series: S } = a, b = _(S), v = xe(a);
5571
5571
  let x = { valid: !0 }, B = s?.selectionItems ?? [];
5572
5572
  n || (B = rl({ chartConfig: a, currentSelectionDataItems: r, selectionData: s }));
@@ -5791,7 +5791,7 @@ async function fl(t) {
5791
5791
  else
5792
5792
  switch (T) {
5793
5793
  case h.HeatSeries:
5794
- mt(e), w = await ur({
5794
+ yt(e), w = await ur({
5795
5795
  chartConfig: i,
5796
5796
  queryConfig: a,
5797
5797
  queryObject: e,
@@ -5885,7 +5885,7 @@ async function fl(t) {
5885
5885
  });
5886
5886
  break;
5887
5887
  case h.GaugeSeries:
5888
- mt(e), w = await il({
5888
+ yt(e), w = await il({
5889
5889
  queryObject: e,
5890
5890
  chartConfig: i,
5891
5891
  queryConfig: a,
@@ -6163,10 +6163,10 @@ function bl(t) {
6163
6163
  n = bs(s, (o) => o[a]);
6164
6164
  break;
6165
6165
  case D.Minimum:
6166
- n = ht(s, (o) => o[a]).min;
6166
+ n = St(s, (o) => o[a]).min;
6167
6167
  break;
6168
6168
  case D.Maximum:
6169
- n = ht(s, (o) => o[a]).max;
6169
+ n = St(s, (o) => o[a]).max;
6170
6170
  break;
6171
6171
  case D.Average:
6172
6172
  n = Fs(s, (o) => o[a]);
@@ -6546,7 +6546,7 @@ async function Ml(t) {
6546
6546
  const { dateMinTimestamp: d, dateMaxTimestamp: f } = s;
6547
6547
  if (d && f) {
6548
6548
  const m = i.length;
6549
- if (pt({
6549
+ if (ht({
6550
6550
  arrayToSort: l,
6551
6551
  sortingField: a
6552
6552
  }), m > 1) {
@@ -6570,7 +6570,7 @@ async function Ml(t) {
6570
6570
  initialNumberOfBins: m,
6571
6571
  numberOfSingleBinsWithinDataRange: p,
6572
6572
  timeIntervalInfo: o
6573
- }), pt({
6573
+ }), ht({
6574
6574
  arrayToSort: l,
6575
6575
  sortingField: a
6576
6576
  }), l = xl({
@@ -6690,7 +6690,7 @@ function ql(t) {
6690
6690
  const { input: e, x: i, splitByField: a } = t;
6691
6691
  return e.reduce((n, s) => (a !== void 0 && a !== i && !(C.technicalFieldSplitByField in s) && delete s[a], Object.assign(n, s)), {});
6692
6692
  }
6693
- function Ft(t) {
6693
+ function bt(t) {
6694
6694
  const { data: e, x: i, splitByField: a } = t;
6695
6695
  let r = e;
6696
6696
  if (e !== void 0 && e.length > 0) {
@@ -6939,7 +6939,7 @@ async function _t(t) {
6939
6939
  resultLimit: i.num,
6940
6940
  showMean: c,
6941
6941
  chartLimits: l
6942
- }), p !== F.BarAndLineSplitByNoAggregation && p !== F.BarAndLineFromFields && (S !== "" && (g = Ft({ data: g, x, splitByField: S })), g = Vl(
6942
+ }), p !== F.BarAndLineSplitByNoAggregation && p !== F.BarAndLineFromFields && (S !== "" && (g = bt({ data: g, x, splitByField: S })), g = Vl(
6943
6943
  g,
6944
6944
  y
6945
6945
  )), g;
@@ -7625,13 +7625,13 @@ async function lu(t) {
7625
7625
  if (v != null && N !== void 0 && N !== null && x !== void 0 && x !== null && T !== void 0 && T !== null && !Number.isNaN(v + x + N + T)) {
7626
7626
  const w = z(a), { idField: L, isTraditionalTypeOID: A } = ve(w), I = A ? L : "*", P = e?.get(C.scatterplotAggregationFields.xStep), O = e?.get(C.scatterplotAggregationFields.yStep), V = e?.get(C.scatterplotAggregationFields.realGridSize), $ = e?.get(C.scatterplotAggregationFields.rowCount), M = e?.get(C.scatterplotAggregationFields.columnCount), q = /* @__PURE__ */ new Map(), G = Ce(a);
7627
7627
  if (G?.forEach((H) => {
7628
- St(H) && q.set(H.name, {
7628
+ Ft(H) && q.set(H.name, {
7629
7629
  onStatisticField: H.name,
7630
7630
  outStatisticFieldName: H.name,
7631
7631
  statisticType: D.Maximum
7632
7632
  });
7633
7633
  }), (G.filter((H) => c?.additionalTooltipFields?.includes(H.name)) ?? [])?.forEach((H) => {
7634
- St(H) || q.set(H.name, {
7634
+ Ft(H) || q.set(H.name, {
7635
7635
  onStatisticField: H.name,
7636
7636
  outStatisticFieldName: H.name,
7637
7637
  statisticType: D.Maximum
@@ -7835,7 +7835,7 @@ function du(t) {
7835
7835
  async function fu(t) {
7836
7836
  const { queryObject: e, queryConfig: i, chartConfig: a, featureCount: r, errorStrings: n, abortKey: s, abortSignal: o } = t, u = a.series[0], { x: c, y: l } = u, d = z(e);
7837
7837
  let f = [];
7838
- const m = Ce(e), y = $t(d).idFields, p = (m?.filter((x) => St(x) && x.name !== c && x.name !== l) ?? []).map(
7838
+ const m = Ce(e), y = $t(d).idFields, p = (m?.filter((x) => Ft(x) && x.name !== c && x.name !== l) ?? []).map(
7839
7839
  (x) => x.name
7840
7840
  ) ?? [], g = u?.additionalTooltipFields ?? [], S = Array.from(
7841
7841
  /* @__PURE__ */ new Set([c, l, ...y ?? [], ...p, ...g])
@@ -7943,7 +7943,7 @@ async function cr(t) {
7943
7943
  yStep: d.get(m),
7944
7944
  useQueryAttributeBins: S
7945
7945
  });
7946
- r !== !1 && pt({
7946
+ r !== !1 && ht({
7947
7947
  arrayToSort: v,
7948
7948
  sortingField: e.series[0].x,
7949
7949
  orderBy: ye.Ascending
@@ -8180,7 +8180,7 @@ function Ui(t) {
8180
8180
  a = typeof d == "number" ? d : a, r = typeof f == "number" ? f : r;
8181
8181
  } else {
8182
8182
  const d = s.filter((m) => m[c] !== null);
8183
- if ({ min: a, max: r } = ht(d, (m) => m[c]), n.axes?.[0]?.valueFormat.type === h.DateAxisFormat && a !== void 0 && r !== void 0 && ([a, r] = [new Date(a).valueOf(), new Date(r).valueOf()]), l === h.BoxPlotSeries) {
8183
+ if ({ min: a, max: r } = St(d, (m) => m[c]), n.axes?.[0]?.valueFormat.type === h.DateAxisFormat && a !== void 0 && r !== void 0 && ([a, r] = [new Date(a).valueOf(), new Date(r).valueOf()]), l === h.BoxPlotSeries) {
8184
8184
  e = Number.MAX_SAFE_INTEGER, i = Number.MIN_SAFE_INTEGER;
8185
8185
  const m = ue(u, o), y = k(u), p = "standardizeValues" in n ? n.standardizeValues === !0 : void 0, g = n.series.map(
8186
8186
  (S) => S.visible !== !1 ? fe({ where: S.query?.where }) : ""
@@ -8217,7 +8217,7 @@ function Ui(t) {
8217
8217
  case Te.Side:
8218
8218
  default: {
8219
8219
  e = Number.MAX_SAFE_INTEGER, i = Number.MIN_SAFE_INTEGER, ue(u, o).forEach((p) => {
8220
- const { min: g, max: S } = ht(
8220
+ const { min: g, max: S } = St(
8221
8221
  d,
8222
8222
  (b) => b[p]
8223
8223
  );
@@ -8604,7 +8604,7 @@ export {
8604
8604
  $s as H,
8605
8605
  Ce as I,
8606
8606
  eo as J,
8607
- ct as K,
8607
+ dt as K,
8608
8608
  hd as L,
8609
8609
  Tc as M,
8610
8610
  oo as N,
@@ -8700,7 +8700,7 @@ export {
8700
8700
  Ie as b9,
8701
8701
  ho as bA,
8702
8702
  hi as bB,
8703
- dt as bC,
8703
+ ft as bC,
8704
8704
  Ld as bD,
8705
8705
  lo as bE,
8706
8706
  xc as bF,
@@ -8735,7 +8735,7 @@ export {
8735
8735
  Bd as bh,
8736
8736
  fr as bi,
8737
8737
  Yc as bj,
8738
- St as bk,
8738
+ Ft as bk,
8739
8739
  mo as bl,
8740
8740
  pd as bm,
8741
8741
  pa as bn,
@@ -8763,7 +8763,7 @@ export {
8763
8763
  sd as c7,
8764
8764
  Qd as c8,
8765
8765
  nd as c9,
8766
- Ft as cA,
8766
+ bt as cA,
8767
8767
  al as cB,
8768
8768
  Md as cC,
8769
8769
  Sc as cD,
@@ -8776,7 +8776,7 @@ export {
8776
8776
  uc as cK,
8777
8777
  ud as cL,
8778
8778
  ti as cM,
8779
- gt as cN,
8779
+ pt as cN,
8780
8780
  dn as cO,
8781
8781
  Jc as cP,
8782
8782
  md as cQ,
@@ -2,7 +2,7 @@
2
2
  import "../cdn/main.css";
3
3
  import { makeRuntime as e } from "@arcgis/lumina";
4
4
  import { trackAccess as s, createObservable as r, createTrackingTarget as a, runTracked as c } from "@arcgis/core/applications/Components/reactiveUtils.js";
5
- const t = e({ defaultAssetPath: "https://js.arcgis.com/5.1.2/charts-components/", hydratedAttribute: "hydrated" }), { customElement: n, getAssetPath: h, setAssetPath: i } = t;
5
+ const t = e({ defaultAssetPath: "https://js.arcgis.com/5.1.4/charts-components/", hydratedAttribute: "hydrated" }), { customElement: n, getAssetPath: h, setAssetPath: i } = t;
6
6
  t.t = s;
7
7
  t.o = r;
8
8
  t.c = a;
@@ -869,7 +869,7 @@ function Fd(t) {
869
869
  const { axis: e, defaultOutput: i, dataItem: a } = t;
870
870
  let o = i;
871
871
  const n = Je(e.uid, "categoryFormatter"), s = Je(e.uid, "numberFormatter");
872
- if ((s !== void 0 || n !== void 0) && a instanceof ka) {
872
+ if ((s !== void 0 || n !== void 0) && a instanceof ka && a.dataContext) {
873
873
  const r = $(e.chart.uid, "config"), l = j(r?.series), c = $(e.chart.uid, "rendererFieldNames");
874
874
  let d = ii({
875
875
  value: pn(l, r?.series?.[0]),