@arcgis/charts-components 5.2.0-next.89 → 5.2.0-next.90

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 (145) hide show
  1. package/dist/cdn/{255J2IDZ.js → 2B4DKL3R.js} +1 -1
  2. package/dist/cdn/{AF2VHZ3K.js → 3HG6OEAW.js} +1 -1
  3. package/dist/cdn/{GF5RCT7U.js → 3K7H52Y5.js} +1 -1
  4. package/dist/cdn/{B3J7GR64.js → 44ICH2UX.js} +1 -1
  5. package/dist/cdn/{LF4LYD3D.js → 4A42J7HF.js} +1 -1
  6. package/dist/cdn/{VVLHQONN.js → 4JMHK7HK.js} +1 -1
  7. package/dist/cdn/{G45UKTNI.js → 4JWNKQ22.js} +1 -1
  8. package/dist/cdn/{QYAEDUSX.js → 4O4L6CM3.js} +1 -1
  9. package/dist/cdn/{T6DZBPJC.js → 4QQRIMTI.js} +1 -1
  10. package/dist/cdn/{LPS3VU35.js → 4VW736DF.js} +1 -1
  11. package/dist/cdn/{KLWPXDAD.js → 54LUEUIT.js} +1 -1
  12. package/dist/cdn/{M6OCFMDB.js → 57PMXO2G.js} +1 -1
  13. package/dist/cdn/{AEKNZ5HX.js → 5YBMIR4F.js} +1 -1
  14. package/dist/cdn/{4V35YCIC.js → 65HVRSR6.js} +1 -1
  15. package/dist/cdn/{ENVLWI5H.js → 6K6Z6CQE.js} +1 -1
  16. package/dist/cdn/{WSHAUD65.js → 73DFT5MR.js} +1 -1
  17. package/dist/cdn/{MEOVOANP.js → 7HANUCEA.js} +1 -1
  18. package/dist/cdn/{3KDTVBIG.js → BHJHX65O.js} +1 -1
  19. package/dist/cdn/{TXFV35UH.js → BZEYWH2F.js} +1 -1
  20. package/dist/cdn/{LPZD4ZKK.js → BZIGQJAH.js} +1 -1
  21. package/dist/cdn/{IDH345JS.js → CDWFPVYG.js} +1 -1
  22. package/dist/cdn/{LMT3CJIW.js → CKRZTUGB.js} +1 -1
  23. package/dist/cdn/{J47KRLNI.js → COSE26XR.js} +1 -1
  24. package/dist/cdn/{WSL3KIDE.js → CPDE3ZSY.js} +1 -1
  25. package/dist/cdn/{IWY3WAPJ.js → D5O2M65G.js} +1 -1
  26. package/dist/cdn/{K3ZRQQD7.js → D7LBGWWL.js} +1 -1
  27. package/dist/cdn/{FHYZ5QCJ.js → DLCJMSYG.js} +1 -1
  28. package/dist/cdn/{YEZO2L2D.js → DOE5S7EP.js} +1 -1
  29. package/dist/cdn/{7DCT627N.js → EFXNPF4V.js} +1 -1
  30. package/dist/cdn/{5DIUGUTH.js → ELNZ7PTF.js} +1 -1
  31. package/dist/cdn/{NEDOBJNH.js → F66W272X.js} +1 -1
  32. package/dist/cdn/{V3ITNIER.js → F6VXAPTT.js} +1 -1
  33. package/dist/cdn/{RMRXMLPD.js → GK6IJBRW.js} +1 -1
  34. package/dist/cdn/{CM4FOO3G.js → GUMN6KPP.js} +1 -1
  35. package/dist/cdn/{BO3LKAOY.js → GUWBPR2H.js} +1 -1
  36. package/dist/cdn/{ER6XIB34.js → GVJF3VFV.js} +1 -1
  37. package/dist/cdn/{KWN3N6VE.js → H2NVXIPH.js} +2 -2
  38. package/dist/cdn/{LXKZKLGE.js → H4R2P2BO.js} +1 -1
  39. package/dist/cdn/{NBZGC5RR.js → HIVJRWLF.js} +1 -1
  40. package/dist/cdn/{6WWEQU3O.js → HSIYQNVK.js} +1 -1
  41. package/dist/cdn/{IP46DLF6.js → HZEGDF6W.js} +1 -1
  42. package/dist/cdn/{DZWIVB6V.js → IGE2Z7GO.js} +1 -1
  43. package/dist/cdn/{AO3CHQZX.js → IHDWXIBS.js} +2 -2
  44. package/dist/cdn/{CCUAQ7BS.js → IIV6X3KV.js} +1 -1
  45. package/dist/cdn/{54CWBGOT.js → JSPNXGH3.js} +1 -1
  46. package/dist/cdn/{74WIGEYX.js → JXAPOWHG.js} +1 -1
  47. package/dist/cdn/{YD4TDPP5.js → KAUOH4F3.js} +1 -1
  48. package/dist/cdn/{POK4XAOI.js → KHC2DMSU.js} +1 -1
  49. package/dist/cdn/{OEB4JHC5.js → KHWZ54IX.js} +1 -1
  50. package/dist/cdn/{MHQYPRTN.js → KJAMXKR3.js} +1 -1
  51. package/dist/cdn/{CGHKRNJC.js → KPEBWOLJ.js} +1 -1
  52. package/dist/cdn/{XFCDAI5T.js → KQUI4CT6.js} +1 -1
  53. package/dist/cdn/{5PVEURDM.js → KVWM73YN.js} +1 -1
  54. package/dist/cdn/{6RNJLIW7.js → KYCNUCTQ.js} +1 -1
  55. package/dist/cdn/KZ4SCRQT.js +2 -0
  56. package/dist/cdn/{SHUVH6EE.js → L6IM34J7.js} +1 -1
  57. package/dist/cdn/{GT6SCH3C.js → LCJVASMQ.js} +1 -1
  58. package/dist/cdn/{QQBBCUQ3.js → LJJPOUVA.js} +1 -1
  59. package/dist/cdn/{LODICMAM.js → LKC6J4IQ.js} +1 -1
  60. package/dist/cdn/{HJ2PHQD5.js → LU7UO6PR.js} +1 -1
  61. package/dist/cdn/{CD35AZCK.js → LZ3ZRY2F.js} +1 -1
  62. package/dist/cdn/{3VGDEPLZ.js → MF2ZBHWI.js} +1 -1
  63. package/dist/cdn/{X45ACF6H.js → MTFWTSTG.js} +1 -1
  64. package/dist/cdn/{JW662K55.js → N4XXKTCN.js} +1 -1
  65. package/dist/cdn/{EZIHNH4L.js → NGGJIQHT.js} +1 -1
  66. package/dist/cdn/{XF6T5ABY.js → NYR4K242.js} +1 -1
  67. package/dist/cdn/{B6EQRXIO.js → OCT2KA4Q.js} +1 -1
  68. package/dist/cdn/{BJ2GQUQQ.js → OPMACXLA.js} +1 -1
  69. package/dist/cdn/{6R75UK7R.js → OQQIDPDH.js} +1 -1
  70. package/dist/cdn/{LJRP7HPA.js → QBBUOEKF.js} +2 -2
  71. package/dist/cdn/{6LV3ASGE.js → QFXCVZYG.js} +1 -1
  72. package/dist/cdn/{SMR2VM6B.js → QIBUTVUN.js} +1 -1
  73. package/dist/cdn/{O6Y5E725.js → QVLDIB2N.js} +1 -1
  74. package/dist/cdn/{APBHRWO7.js → RAJO727X.js} +1 -1
  75. package/dist/cdn/{2PS272XV.js → RCAJJ24P.js} +1 -1
  76. package/dist/cdn/{7P3FHJUU.js → SBJGOYJL.js} +1 -1
  77. package/dist/cdn/{6EWSNVVQ.js → SBZKGQBV.js} +1 -1
  78. package/dist/cdn/{OX6VTXSJ.js → SJBJ2N5C.js} +2 -2
  79. package/dist/cdn/{I7NNKTPZ.js → SMTDJE55.js} +1 -1
  80. package/dist/cdn/{L4BZX57U.js → SOR4DYKA.js} +1 -1
  81. package/dist/cdn/{IPKYTV7V.js → SQHEWY2J.js} +1 -1
  82. package/dist/cdn/{GDGYKODO.js → SZNZAD56.js} +1 -1
  83. package/dist/cdn/{RIQLLNP5.js → ULF3LG3W.js} +1 -1
  84. package/dist/cdn/{72KEQM4K.js → UZHQF5CV.js} +1 -1
  85. package/dist/cdn/{2GXJ2BAR.js → VBDLVCPP.js} +1 -1
  86. package/dist/cdn/{RPWGXKU5.js → VCBFPEET.js} +1 -1
  87. package/dist/cdn/{U3542JBJ.js → VVOQ4Q2X.js} +1 -1
  88. package/dist/cdn/{G4VATGUV.js → WPLJ5BXE.js} +1 -1
  89. package/dist/cdn/{6HYAHTR7.js → WTABMFFY.js} +1 -1
  90. package/dist/cdn/{M5QTOCZ2.js → XW5I2M45.js} +1 -1
  91. package/dist/cdn/{E4L772I2.js → XYJJ2PIL.js} +1 -1
  92. package/dist/cdn/{PG5R4NDA.js → YOUTTWJN.js} +1 -1
  93. package/dist/cdn/{URJ4RY65.js → YQL5A2WS.js} +1 -1
  94. package/dist/cdn/{4EFLSDWR.js → YX7WAUQZ.js} +1 -1
  95. package/dist/cdn/{L452VJW3.js → Z4ZXC4GO.js} +22 -22
  96. package/dist/cdn/{EJAZNU6L.js → ZFHU5I2O.js} +1 -1
  97. package/dist/cdn/{TFA6LCYF.js → ZO4GRLG6.js} +1 -1
  98. package/dist/cdn/index.js +1 -1
  99. package/dist/cdn/model/shared/setup-utils.js +1 -1
  100. package/dist/chunks/box-plot-data.js +4 -4
  101. package/dist/chunks/box-plot-model.js +2 -2
  102. package/dist/chunks/chart-ui-utils.js +11 -11
  103. package/dist/chunks/class-breaks.js +1 -1
  104. package/dist/chunks/combo-bar-line-chart-model.js +10 -10
  105. package/dist/chunks/data.js +19 -19
  106. package/dist/chunks/index.js +1603 -1582
  107. package/dist/chunks/index3.js +13 -13
  108. package/dist/chunks/index4.js +219 -231
  109. package/dist/chunks/model-setter.js +1 -1
  110. package/dist/chunks/negative-values-stacked-to-baseline.js +1 -1
  111. package/dist/chunks/rounded-corners.js +3 -3
  112. package/dist/chunks/scatterplot-model.js +9 -9
  113. package/dist/chunks/serial-chart-data.js +32 -32
  114. package/dist/chunks/serial-chart-model.js +14 -14
  115. package/dist/chunks/utils.js +1 -1
  116. package/dist/chunks/web-component-utils.js +19 -19
  117. package/dist/chunks/x-bounds.js +13 -13
  118. package/dist/components/arcgis-chart/customElement.js +2984 -2965
  119. package/dist/components/arcgis-charts-config-bar-chart/customElement.js +5 -5
  120. package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +1 -1
  121. package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +1 -1
  122. package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
  123. package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +1 -1
  124. package/dist/components/arcgis-charts-config-create-flow/customElement.js +1 -1
  125. package/dist/components/arcgis-charts-config-format/customElement.js +1 -1
  126. package/dist/components/arcgis-charts-config-guide/customElement.js +10 -10
  127. package/dist/components/arcgis-charts-config-heat-chart/customElement.js +1 -1
  128. package/dist/components/arcgis-charts-config-histogram/customElement.js +1 -1
  129. package/dist/components/arcgis-charts-config-histogram-data/customElement.js +1 -1
  130. package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
  131. package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +1 -1
  132. package/dist/components/arcgis-charts-config-pie-chart/customElement.js +4 -4
  133. package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +1 -1
  134. package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
  135. package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +1 -1
  136. package/dist/docs/api.json +1 -1
  137. package/dist/docs/docs.json +1 -1
  138. package/dist/docs/web-types.json +1 -1
  139. package/dist/index.js +389 -381
  140. package/dist/utils/chart-config/converter/index.js +14 -14
  141. package/dist/utils/chart-config/validator/index.d.ts +1 -0
  142. package/dist/utils/layer/index.d.ts +20 -5
  143. package/dist/utils/layer/interfaces.d.ts +0 -13
  144. package/package.json +4 -4
  145. package/dist/cdn/ZNTX5IKT.js +0 -2
@@ -1,17 +1,17 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { substitute as f } from "@arcgis/core/intl.js";
3
- import E from "ajv";
4
- import { g as w } from "./runtime.js";
5
- import { fetchT9nStringsBundle as S } from "@arcgis/toolkit/intl";
6
- import { getElementLocale as I } from "@arcgis/toolkit/intl/dom";
7
- import { c5 as u, bu as M, bF as V, p as T, w as F, q as z, aS as G, au as A, c6 as U, t as L, bS as D, aO as H, bp as $, c7 as J, bh as _, W as K, c8 as Q, bB as Z, y as X, c9 as Y, M as ee, N as te } from "./index.js";
8
- import { l as ie, q as re } from "./index3.js";
9
- import { i as x, a as h, D as ne } from "./index2.js";
10
- import { g as C } from "./series-types.js";
11
- import { a as l, o as ae, d as oe } from "./chart-object-literals.js";
12
- import { d as se } from "./rest-js-object-literals.js";
13
- import { i as de } from "./type-guards.js";
14
- const b = {
2
+ import { substitute as y } from "@arcgis/core/intl.js";
3
+ import P from "ajv";
4
+ import { g as k } from "./runtime.js";
5
+ import { fetchT9nStringsBundle as B } from "@arcgis/toolkit/intl";
6
+ import { getElementLocale as N } from "@arcgis/toolkit/intl/dom";
7
+ import { c4 as u, q as E, aS as M, au as C, bE as V, p as I, w as T, bt as z, c5 as G, t as x, bR as W, aO as U, bo as F, c6 as H, bf as J, W as _, c7 as K, bA as Q, y as Z, c8 as X, M as Y, N as ee } from "./index.js";
8
+ import { l as te, q as ie } from "./index3.js";
9
+ import { i as v, a as h, D as re } from "./index2.js";
10
+ import { g as S } from "./series-types.js";
11
+ import { a as p, o as ne, d as ae } from "./chart-object-literals.js";
12
+ import { d as oe } from "./rest-js-object-literals.js";
13
+ import { i as se } from "./type-guards.js";
14
+ const g = {
15
15
  $schema: "http://json-schema.org/draft-07/schema#",
16
16
  definitions: {
17
17
  WebChartTypes: {
@@ -10678,164 +10678,151 @@ If not provided the series will be displayed as they are ordered in the config.`
10678
10678
  },
10679
10679
  $ref: "#/definitions/WebChart"
10680
10680
  };
10681
- function O(i) {
10682
- const r = i.lastIndexOf("/");
10683
- return r !== -1 ? i.slice(r + 1) : i;
10681
+ function A(t) {
10682
+ const r = t.lastIndexOf("/");
10683
+ return r !== -1 ? t.slice(r + 1) : t;
10684
10684
  }
10685
- async function j(i, r) {
10686
- const n = r ?? (await S(
10687
- I(document.documentElement).t9nLocale,
10688
- w("./assets/common/t9n"),
10689
- "messages."
10690
- )).errorStrings;
10691
- return i.map((e) => {
10692
- let t = e;
10693
- const a = e.dataPath.startsWith(".") ? e.dataPath.substring(1) : e.dataPath;
10685
+ function L(t, r) {
10686
+ return r.map((e) => {
10687
+ let i = e;
10688
+ const n = e.dataPath.startsWith(".") ? e.dataPath.substring(1) : e.dataPath;
10694
10689
  switch (e.keyword) {
10695
10690
  case u.Required:
10696
- t = {
10691
+ i = {
10697
10692
  ...e,
10698
- message: f(n.errors.requiredProperty, {
10699
- dataPath: a,
10693
+ message: y(t.errors.requiredProperty, {
10694
+ dataPath: n,
10700
10695
  missingProperty: e.params.missingProperty
10701
10696
  })
10702
10697
  };
10703
10698
  break;
10704
10699
  case u.MinLength:
10705
- t = {
10700
+ i = {
10706
10701
  ...e,
10707
- message: f(n.errors.minLength, {
10708
- dataPath: a,
10702
+ message: y(t.errors.minLength, {
10703
+ dataPath: n,
10709
10704
  limit: e.params.limit.toString()
10710
10705
  })
10711
10706
  };
10712
10707
  break;
10713
10708
  case u.MinItems:
10714
- t = {
10709
+ i = {
10715
10710
  ...e,
10716
- message: f(n.errors.minItems, {
10717
- dataPath: a,
10711
+ message: y(t.errors.minItems, {
10712
+ dataPath: n,
10718
10713
  limit: e.params.limit.toString()
10719
10714
  })
10720
10715
  };
10721
10716
  break;
10722
10717
  case u.MaxItems:
10723
- t = {
10718
+ i = {
10724
10719
  ...e,
10725
- message: f(n.errors.maxItems, {
10726
- dataPath: a,
10720
+ message: y(t.errors.maxItems, {
10721
+ dataPath: n,
10727
10722
  limit: e.params.limit.toString()
10728
10723
  })
10729
10724
  };
10730
10725
  break;
10731
10726
  case u.Pattern:
10732
- e.params.pattern === "\\w+" && (t = {
10727
+ e.params.pattern === "\\w+" && (i = {
10733
10728
  ...e,
10734
- message: f(n.errors.whiteSpacePattern, { dataPath: a }),
10729
+ message: y(t.errors.whiteSpacePattern, { dataPath: n }),
10735
10730
  params: {}
10736
10731
  });
10737
10732
  break;
10738
10733
  case u.AdditionalProperties:
10739
- t = {
10734
+ i = {
10740
10735
  ...e,
10741
- message: f(n.errors.additionalProperty, {
10742
- dataPath: a,
10736
+ message: y(t.errors.additionalProperty, {
10737
+ dataPath: n,
10743
10738
  additionalProperty: e.params.additionalProperty
10744
10739
  })
10745
10740
  };
10746
10741
  break;
10747
10742
  case u.Enum:
10748
- t = {
10743
+ i = {
10749
10744
  ...e,
10750
- message: f(n.errors.enumValues, {
10751
- dataPath: a,
10745
+ message: y(t.errors.enumValues, {
10746
+ dataPath: n,
10752
10747
  allowedValues: e.params.allowedValues.join(", ")
10753
10748
  })
10754
10749
  };
10755
10750
  break;
10756
10751
  case u.AnyOf: {
10757
- let o = [];
10758
- e.schemaPath === "#/properties/legend/anyOf" && (o = b.definitions.WebChart.properties.legend.anyOf.map(
10759
- (p) => O(p.$ref)
10760
- )), t = {
10752
+ let a = [];
10753
+ e.schemaPath === "#/properties/legend/anyOf" && (a = g.definitions.WebChart.properties.legend.anyOf.map(
10754
+ (s) => A(s.$ref)
10755
+ )), i = {
10761
10756
  ...e,
10762
- params: o,
10763
- message: f(n.errors.anyOfValues, { dataPath: a, schemaOptions: o.join(", ") })
10757
+ params: a,
10758
+ message: y(t.errors.anyOfValues, { dataPath: n, schemaOptions: a.join(", ") })
10764
10759
  };
10765
10760
  break;
10766
10761
  }
10767
10762
  }
10768
- return t;
10763
+ return i;
10769
10764
  });
10770
10765
  }
10771
- function g(i, r) {
10772
- return { ...i, $ref: `#/definitions/${r}` };
10766
+ function w(t, r) {
10767
+ return { ...t, $ref: `#/definitions/${r}` };
10773
10768
  }
10774
- async function R(i, r) {
10775
- let n;
10776
- const e = r ?? (await S(
10777
- I(document.documentElement).t9nLocale,
10778
- w("./assets/common/t9n"),
10779
- "messages."
10780
- )).errorStrings, t = z(i);
10769
+ async function D(t) {
10770
+ let r;
10771
+ const { queryObject: e, abortSignal: i, errorStrings: n } = t, a = E(e);
10781
10772
  try {
10782
- await t.load();
10773
+ await a?.load({ signal: i });
10783
10774
  } catch {
10784
- const o = t?.url ?? "", p = G(t)?.portalItem?.id ?? "";
10785
- n = {
10786
- keyword: A.LayerLoadFailure,
10787
- message: f(e.errors.layerLoadFailure, { url: o, portalItemId: p }),
10788
- params: { url: o, portalItemId: p }
10775
+ const d = a?.url ?? "", l = M(a)?.portalItem?.id ?? "";
10776
+ r = {
10777
+ keyword: C.LayerLoadFailure,
10778
+ message: y(n.errors.layerLoadFailure, { url: d, portalItemId: l }),
10779
+ params: { url: d, portalItemId: l }
10789
10780
  };
10790
10781
  }
10791
- return n;
10782
+ return r;
10792
10783
  }
10793
- function le() {
10794
- const i = new E({ allErrors: !0 });
10795
- return async (r, n) => {
10796
- let e = [];
10797
- const t = C(r?.series);
10798
- let a = b;
10799
- switch (t) {
10800
- case l.GaugeSeries:
10801
- a = g(b, "WebGaugeChart");
10784
+ function de() {
10785
+ const t = new P({ allErrors: !0 });
10786
+ return (r, e) => {
10787
+ let i = [];
10788
+ const n = S(e?.series);
10789
+ let a = g;
10790
+ switch (n) {
10791
+ case p.GaugeSeries:
10792
+ a = w(g, "WebGaugeChart");
10802
10793
  break;
10803
- case l.BoxPlotSeries:
10804
- a = g(b, "WebBoxPlot");
10794
+ case p.BoxPlotSeries:
10795
+ a = w(g, "WebBoxPlot");
10805
10796
  break;
10806
- case l.RadarSeries:
10807
- a = g(b, "WebRadarChart");
10797
+ case p.RadarSeries:
10798
+ a = w(g, "WebRadarChart");
10808
10799
  break;
10809
10800
  default:
10810
- a = g(b, "WebChart");
10801
+ a = w(g, "WebChart");
10811
10802
  break;
10812
10803
  }
10813
- const o = i.compile(a);
10814
- return o(r), o.errors !== null && o.errors !== void 0 && (e = await j(o.errors, n)), e;
10804
+ const s = t.compile(a);
10805
+ return s(e), s.errors !== null && s.errors !== void 0 && (i = L(r, s.errors)), i;
10815
10806
  };
10816
10807
  }
10817
- const pe = le();
10818
- async function q(i) {
10819
- const { seriesConfigs: r, queryObject: n, allowUsingObjectIdStat: e, errorStrings: t } = i, a = [], o = n ? L(n) : void 0, p = t ?? (await S(
10820
- I(document.documentElement).t9nLocale,
10821
- w("./assets/common/t9n"),
10822
- "messages."
10823
- )).errorStrings;
10808
+ const le = de();
10809
+ function $(t) {
10810
+ const { seriesConfigs: r, queryObject: e, allowUsingObjectIdStat: i, errorStrings: n } = t, a = [], s = e ? x(e) : void 0;
10824
10811
  for (let d = 0; d < r.length; d += 1) {
10825
- const y = r[d].query?.outStatistics;
10826
- if (y !== void 0)
10827
- for (let m = 0; m < y.length; m += 1) {
10828
- const s = y[m], c = D(s.onStatisticField, o);
10829
- if (c && !(c.type === se.OID && e || H(c)) && s.statisticType !== oe.Count) {
10830
- const W = `series[${d}].query.outStatistics[${m}]`;
10812
+ const l = r[d].query?.outStatistics;
10813
+ if (l !== void 0)
10814
+ for (let c = 0; c < l.length; c += 1) {
10815
+ const m = l[c], o = W(m.onStatisticField, s);
10816
+ if (o && !(o.type === oe.OID && i || U(o)) && m.statisticType !== ae.Count) {
10817
+ const b = `series[${d}].query.outStatistics[${c}]`;
10831
10818
  a.push({
10832
- keyword: $.NonNumericAggregation,
10833
- message: f(p.errors.nonNumericAggregation, { dataPath: W }),
10834
- dataPath: W,
10819
+ keyword: F.NonNumericAggregation,
10820
+ message: y(n.errors.nonNumericAggregation, { dataPath: b }),
10821
+ dataPath: b,
10835
10822
  params: {
10836
- fieldName: s.onStatisticField,
10837
- fieldType: c.type,
10838
- aggregationRequested: s.statisticType
10823
+ fieldName: m.onStatisticField,
10824
+ fieldType: o.type,
10825
+ aggregationRequested: m.statisticType
10839
10826
  }
10840
10827
  });
10841
10828
  }
@@ -10843,185 +10830,186 @@ async function q(i) {
10843
10830
  }
10844
10831
  return a;
10845
10832
  }
10846
- async function P(i, r) {
10847
- const n = [], e = r ?? (await S(
10848
- I(document.documentElement).t9nLocale,
10849
- w("./assets/common/t9n"),
10850
- "messages."
10851
- )).errorStrings;
10852
- if (i !== void 0 && i.series.length > 1) {
10853
- const t = /* @__PURE__ */ new Set();
10854
- let a = 0;
10855
- i.series.forEach((o, p) => {
10856
- if (t.add(o.id), t.size === a) {
10857
- const d = `series[${p}].id`;
10858
- n.push({
10859
- keyword: $.DuplicateSeriesID,
10860
- message: f(e.errors.duplicateSeriesID, {
10833
+ function O(t, r) {
10834
+ const e = [];
10835
+ if (r !== void 0 && r.series.length > 1) {
10836
+ const i = /* @__PURE__ */ new Set();
10837
+ let n = 0;
10838
+ r.series.forEach((a, s) => {
10839
+ if (i.add(a.id), i.size === n) {
10840
+ const d = `series[${s}].id`;
10841
+ e.push({
10842
+ keyword: F.DuplicateSeriesID,
10843
+ message: y(t?.errors.duplicateSeriesID ?? "", {
10861
10844
  dataPath: d,
10862
- seriesID: o.id,
10863
- seriesName: o.name
10845
+ seriesID: a.id,
10846
+ seriesName: a.name
10864
10847
  }),
10865
10848
  dataPath: d,
10866
- params: { seriesId: o.id, seriesName: o.name }
10849
+ params: { seriesId: a.id, seriesName: a.name }
10867
10850
  });
10868
10851
  } else
10869
- a += 1;
10852
+ n += 1;
10870
10853
  });
10871
10854
  }
10872
- return n;
10855
+ return e;
10873
10856
  }
10874
- function k(i) {
10875
- const r = /* @__PURE__ */ new Set(), n = J(i);
10876
- if (n) {
10877
- const e = C(i.series), t = T(i.series);
10878
- e === l.GaugeSeries && !_(i) || t === h.PieFromFields || t === h.BarAndLineFromFields || t === h.BoxPlotMonoField || t === h.BoxPlotMultiFields || t === h.BoxPlotMonoFieldAndSplitBy || t === h.BoxPlotMultiFieldsAndSplitBy || r.add(n.x);
10879
- const p = e === l.ScatterSeries || e === l.BoxPlotSeries || e === l.HeatSeries || t === h.BarAndLineNoAggregation || t === h.BarAndLineSplitByNoAggregation || t === h.PieNoAggregation, d = [
10880
- ie,
10881
- F,
10857
+ function j(t) {
10858
+ const r = /* @__PURE__ */ new Set(), e = H(t);
10859
+ if (e) {
10860
+ const i = S(t.series), n = I(t.series);
10861
+ i === p.GaugeSeries && !J(t) || n === h.PieFromFields || n === h.BarAndLineFromFields || n === h.BoxPlotMonoField || n === h.BoxPlotMultiFields || n === h.BoxPlotMonoFieldAndSplitBy || n === h.BoxPlotMultiFieldsAndSplitBy || r.add(e.x);
10862
+ const d = i === p.ScatterSeries || i === p.BoxPlotSeries || i === p.HeatSeries || n === h.BarAndLineNoAggregation || n === h.BarAndLineSplitByNoAggregation || n === h.PieNoAggregation, l = [
10863
+ te,
10864
+ T,
10865
+ Q,
10882
10866
  Z,
10883
10867
  X,
10884
- Y,
10885
- re.outStatistics.outStatisticFieldName ?? ""
10868
+ ie.outStatistics.outStatisticFieldName ?? ""
10886
10869
  ];
10887
- let y = [];
10888
- K(i) ? y = Q({
10889
- showMean: i.showMean,
10890
- seriesConfig: i.series
10891
- }) : y = i.series.map((s) => "y" in s ? s.y : void 0).filter((s) => s !== void 0).flat(), p ? y.forEach((s) => r.add(s)) : d.push(...y), i.series.forEach((s) => {
10892
- const { query: c } = s;
10893
- c && (ee(c.where) || r.add(te(c.where)), c.groupByFieldsForStatistics && c.groupByFieldsForStatistics.forEach((v) => r.add(v)), c.outStatistics && c.outStatistics.forEach((v) => r.add(v.onStatisticField)));
10870
+ let c = [];
10871
+ _(t) ? c = K({
10872
+ showMean: t.showMean,
10873
+ seriesConfig: t.series
10874
+ }) : c = t.series.map((o) => "y" in o ? o.y : void 0).filter((o) => o !== void 0).flat(), d ? c.forEach((o) => r.add(o)) : l.push(...c), t.series.forEach((o) => {
10875
+ const { query: f } = o;
10876
+ f && (Y(f.where) || r.add(ee(f.where)), f.groupByFieldsForStatistics && f.groupByFieldsForStatistics.forEach((b) => r.add(b)), f.outStatistics && f.outStatistics.forEach((b) => r.add(b.onStatisticField)));
10894
10877
  });
10895
- const m = t === h.BarAndLineNoAggregation || t === h.BarAndLineSplitByNoAggregation || t === h.PieNoAggregation;
10896
- if (i.orderOptions?.orderByFields && m && i.orderOptions.orderByFields.forEach((s) => {
10897
- const c = ne(s).fieldToSort;
10898
- r.add(c);
10899
- }), e === l.GaugeSeries && i.axes?.[0] !== void 0) {
10900
- const s = i.axes?.[0];
10901
- s && "minimumFromField" in s && typeof s.minimumFromField == "string" && r.add(s.minimumFromField), s && "maximumFromField" in s && typeof s.maximumFromField == "string" && r.add(s.maximumFromField);
10878
+ const m = n === h.BarAndLineNoAggregation || n === h.BarAndLineSplitByNoAggregation || n === h.PieNoAggregation;
10879
+ if (t.orderOptions?.orderByFields && m && t.orderOptions.orderByFields.forEach((o) => {
10880
+ const f = re(o).fieldToSort;
10881
+ r.add(f);
10882
+ }), i === p.GaugeSeries && t.axes?.[0] !== void 0) {
10883
+ const o = t.axes?.[0];
10884
+ o && "minimumFromField" in o && typeof o.minimumFromField == "string" && r.add(o.minimumFromField), o && "maximumFromField" in o && typeof o.maximumFromField == "string" && r.add(o.maximumFromField);
10902
10885
  }
10903
- d.forEach((s) => {
10904
- r.delete(s);
10886
+ l.forEach((o) => {
10887
+ r.delete(o);
10905
10888
  });
10906
10889
  }
10907
- return Array.from(r.values()).filter((e) => !x(e));
10890
+ return Array.from(r.values()).filter((i) => !v(i));
10908
10891
  }
10909
- async function ce(i) {
10910
- const { chartConfig: r, queryObject: n, errorStrings: e } = i;
10911
- let t;
10912
- const a = e ?? (await S(
10913
- I(document.documentElement).t9nLocale,
10914
- w("./assets/common/t9n"),
10915
- "messages."
10916
- )).errorStrings, o = de(n) ? U({ layer: n, chartType: C(r.series) }) : L(n), d = k(r).filter((y) => !D(y, o));
10892
+ function pe(t) {
10893
+ const { chartConfig: r, queryObject: e, errorStrings: i } = t;
10894
+ let n;
10895
+ const a = se(e) ? G({ layer: e, chartType: S(r.series) }) : x(e), d = j(r).filter((l) => !W(l, a));
10917
10896
  if (d.length > 0) {
10918
- const y = d.join(", ");
10919
- t = {
10920
- keyword: A.LayerFieldsNotFound,
10921
- message: f(a.errors.layerFieldsNotFound, { fieldNames: y }),
10922
- params: y
10897
+ const l = d.join(", ");
10898
+ n = {
10899
+ keyword: C.LayerFieldsNotFound,
10900
+ message: y(i.errors.layerFieldsNotFound, { fieldNames: l }),
10901
+ params: l
10923
10902
  };
10924
10903
  }
10925
- return t;
10904
+ return n;
10926
10905
  }
10927
- async function B(i) {
10928
- const { input: r, queryObject: n, allowUsingObjectIdStat: e, errorStrings: t } = i;
10906
+ function R(t) {
10907
+ const { input: r, queryObject: e, allowUsingObjectIdStat: i, errorStrings: n } = t;
10929
10908
  let a = [];
10930
- if (n !== void 0) {
10931
- const o = await q({
10909
+ if (e !== void 0) {
10910
+ const s = $({
10932
10911
  seriesConfigs: r.series,
10933
- queryObject: n,
10934
- allowUsingObjectIdStat: e,
10935
- errorStrings: t
10912
+ queryObject: e,
10913
+ allowUsingObjectIdStat: i,
10914
+ errorStrings: n
10936
10915
  });
10937
- a = a.concat(o);
10916
+ a = a.concat(s);
10938
10917
  }
10939
- return a = a.concat(await P(r, t)), a;
10918
+ return a = a.concat(O(n, r)), a;
10940
10919
  }
10941
- async function N(i) {
10942
- const { queryObject: r, chartConfig: n, errorStrings: e } = i;
10943
- let t = [];
10920
+ function q(t) {
10921
+ const { queryObject: r, chartConfig: e, errorStrings: i, layerLoadError: n } = t;
10922
+ let a = [];
10944
10923
  if (r !== void 0) {
10945
- const a = await R(r, e);
10946
- if (a !== void 0)
10947
- t = t.concat(a);
10948
- else if (n !== void 0) {
10949
- const o = await ce({ chartConfig: n, queryObject: r, errorStrings: e });
10950
- o !== void 0 && (t = t.concat(o));
10924
+ if (n !== void 0)
10925
+ a = a.concat(n);
10926
+ else if (e !== void 0) {
10927
+ const s = pe({ chartConfig: e, queryObject: r, errorStrings: i });
10928
+ s !== void 0 && (a = a.concat(s));
10951
10929
  }
10952
10930
  }
10953
- return t;
10931
+ return a;
10954
10932
  }
10955
- async function Te(i) {
10956
- const { input: r, queryObject: n, allowUsingObjectIdStat: e, errorStrings: t } = i;
10957
- let a;
10958
- if (M(r?.version).versionStatus === ae.Newer)
10959
- a = { valid: !0, schemaErrors: [], customErrors: [], warnings: [] };
10933
+ function ce(t) {
10934
+ const { input: r, queryObject: e, allowUsingObjectIdStat: i, errorStrings: n, layerLoadError: a } = t;
10935
+ let s;
10936
+ if (z(r?.version).versionStatus === ne.Newer)
10937
+ s = { valid: !0, schemaErrors: [], customErrors: [], warnings: [] };
10960
10938
  else {
10961
- const o = await pe(r, t);
10962
- let p = [], d = [];
10963
- r !== void 0 && o.length === 0 && (d = await N({ queryObject: n, chartConfig: r, errorStrings: t }), d.length === 0 && (p = await B({ input: r, queryObject: n, allowUsingObjectIdStat: e, errorStrings: t }))), a = {
10964
- valid: o.length === 0 && p.length === 0 && d.length === 0,
10965
- schemaErrors: o,
10966
- customErrors: d,
10967
- warnings: p
10939
+ const d = le(n, r);
10940
+ let l = [], c = [];
10941
+ r !== void 0 && d.length === 0 && (c = q({ queryObject: e, chartConfig: r, errorStrings: n, layerLoadError: a }), c.length === 0 && (l = R({ input: r, queryObject: e, allowUsingObjectIdStat: i, errorStrings: n }))), s = {
10942
+ valid: d.length === 0 && l.length === 0 && c.length === 0,
10943
+ schemaErrors: d,
10944
+ customErrors: c,
10945
+ warnings: l
10968
10946
  };
10969
10947
  }
10970
- return a;
10948
+ return s;
10949
+ }
10950
+ async function Te(t) {
10951
+ const { input: r, queryObject: e, allowUsingObjectIdStat: i, abortSignal: n } = t, a = t.errorStrings ?? (await B(
10952
+ N(document.documentElement).t9nLocale,
10953
+ k("./assets/common/t9n"),
10954
+ "messages."
10955
+ )).errorStrings, s = await D({ errorStrings: a, queryObject: e, abortSignal: n });
10956
+ return ce({ input: r, queryObject: e, allowUsingObjectIdStat: i, errorStrings: a, layerLoadError: s });
10971
10957
  }
10972
- function xe(i) {
10973
- const r = C(i?.series);
10974
- let n = !1;
10958
+ function xe(t) {
10959
+ const r = S(t?.series);
10960
+ let e = !1;
10975
10961
  switch (r) {
10976
- case l.HistogramSeries:
10977
- case l.GaugeSeries: {
10978
- n = (i?.series?.[0]?.x?.trim()?.length ?? 0) === 0;
10962
+ case p.HistogramSeries:
10963
+ case p.GaugeSeries: {
10964
+ e = (t?.series?.[0]?.x?.trim()?.length ?? 0) === 0;
10979
10965
  break;
10980
10966
  }
10981
- case l.ScatterSeries: {
10982
- const e = i?.series;
10983
- n = (e?.[0]?.x?.length ?? 0) === 0 || (e?.[0]?.y?.length ?? 0) === 0;
10967
+ case p.ScatterSeries: {
10968
+ const i = t?.series;
10969
+ e = (i?.[0]?.x?.length ?? 0) === 0 || (i?.[0]?.y?.length ?? 0) === 0;
10984
10970
  break;
10985
10971
  }
10986
- case l.PieSeries: {
10987
- const e = i?.series;
10988
- T(e) === h.PieFromFields ? n = (e?.[0]?.query?.outStatistics?.length ?? 0) === 0 : n = (e?.[0]?.x?.length ?? 0) === 0 || e?.[0]?.x === F;
10972
+ case p.PieSeries: {
10973
+ const i = t?.series;
10974
+ I(i) === h.PieFromFields ? e = (i?.[0]?.query?.outStatistics?.length ?? 0) === 0 : e = (i?.[0]?.x?.length ?? 0) === 0 || i?.[0]?.x === T;
10989
10975
  break;
10990
10976
  }
10991
- case l.BoxPlotSeries: {
10992
- const e = i?.series;
10993
- n = [e?.[0]?.y].flat().length === 0 || e?.[0]?.y === "";
10977
+ case p.BoxPlotSeries: {
10978
+ const i = t?.series;
10979
+ e = [i?.[0]?.y].flat().length === 0 || i?.[0]?.y === "";
10994
10980
  break;
10995
10981
  }
10996
- case l.ComboLineAndBarSeries:
10997
- case l.RadarSeries:
10998
- case l.BarSeries:
10999
- case l.LineSeries: {
11000
- const e = i?.series;
11001
- T(e) === h.BarAndLineFromFields ? n = (e?.[0]?.query?.outStatistics?.length ?? 0) === 0 : n = (e?.[0]?.x?.trim()?.length ?? 0) === 0;
10982
+ case p.ComboLineAndBarSeries:
10983
+ case p.RadarSeries:
10984
+ case p.BarSeries:
10985
+ case p.LineSeries: {
10986
+ const i = t?.series;
10987
+ I(i) === h.BarAndLineFromFields ? e = (i?.[0]?.query?.outStatistics?.length ?? 0) === 0 : e = (i?.[0]?.x?.trim()?.length ?? 0) === 0;
11002
10988
  break;
11003
10989
  }
11004
- case l.HeatSeries: {
11005
- const e = i?.series, t = x(e?.[0]?.x) || x(e?.[0]?.y), a = i !== void 0 && V(i) ? !1 : e?.[0]?.xTemporalBinning === void 0;
11006
- n = t || a;
10990
+ case p.HeatSeries: {
10991
+ const i = t?.series, n = v(i?.[0]?.x) || v(i?.[0]?.y), a = t !== void 0 && V(t) ? !1 : i?.[0]?.xTemporalBinning === void 0;
10992
+ e = n || a;
11007
10993
  break;
11008
10994
  }
11009
10995
  }
11010
- return n;
10996
+ return e;
11011
10997
  }
11012
10998
  const We = {
11013
- findCustomErrors: N,
11014
- findWarnings: B,
11015
- findNumericAggregationWarnings: q,
11016
- findDuplicateSeriesIDWarnings: P,
11017
- findLayerLoadError: R,
11018
- createStartingSchema: g,
11019
- extractSchemaNameFromRefPath: O,
11020
- getRequiredFieldNamesFromChartConfig: k,
11021
- customizeValidationErrors: j
10999
+ findCustomErrors: q,
11000
+ findWarnings: R,
11001
+ findNumericAggregationWarnings: $,
11002
+ findDuplicateSeriesIDWarnings: O,
11003
+ findLayerLoadError: D,
11004
+ createStartingSchema: w,
11005
+ extractSchemaNameFromRefPath: A,
11006
+ getRequiredFieldNamesFromChartConfig: j,
11007
+ customizeValidationErrors: L
11022
11008
  };
11023
11009
  export {
11010
+ Te as a,
11024
11011
  We as c,
11012
+ D as f,
11025
11013
  xe as i,
11026
- Te as v
11014
+ ce as v
11027
11015
  };
@@ -4,7 +4,7 @@ import { getElementLocale as g } from "@arcgis/toolkit/intl/dom";
4
4
  import { g as l } from "./runtime.js";
5
5
  import { convertChartSpec as m } from "../utils/chart-config/converter/index.js";
6
6
  import { a6 as y } from "./index3.js";
7
- import { bE as o, bc as p, t as u, r as _ } from "./index.js";
7
+ import { bD as o, ba as p, t as u, r as _ } from "./index.js";
8
8
  import { cloneDeep as C } from "lodash-es";
9
9
  const h = 30;
10
10
  function U(r, e, t, i) {
@@ -1,7 +1,7 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { g as k, b as S, s as b, a as v } from "./series.js";
3
3
  import { n } from "./index3.js";
4
- import { c2 as i, c3 as o } from "./index.js";
4
+ import { c1 as i, c2 as o } from "./index.js";
5
5
  import { C as y, m as h } from "./model-setter.js";
6
6
  const l = (s) => {
7
7
  const { config: e, seriesIndex: a, callback: t } = s;
@@ -1,5 +1,5 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { b$ as n } from "./index.js";
2
+ import { b_ as n } from "./index.js";
3
3
  import { C, m as u } from "./model-setter.js";
4
4
  import { al as h } from "./index3.js";
5
5
  const c = (r) => {
@@ -47,7 +47,7 @@ function p(r, e) {
47
47
  function S(r) {
48
48
  return r.roundCorners?.cornerRadius;
49
49
  }
50
- function O(r, e) {
50
+ function _(r, e) {
51
51
  e.roundCorners = {
52
52
  rounded: e.roundCorners?.rounded ?? !1,
53
53
  cornerRadius: r ?? e.roundCorners?.cornerRadius
@@ -72,7 +72,7 @@ class f extends C {
72
72
  return S(this._config);
73
73
  }
74
74
  set cornerRadius(e) {
75
- t(this._config) && O(e, this._config);
75
+ t(this._config) && _(e, this._config);
76
76
  }
77
77
  }
78
78
  l([