@arcgis/charts-components 5.2.0-next.124 → 5.2.0-next.125

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 (173) hide show
  1. package/dist/cdn/{CQLILZFZ.js → 2FQ6G6B6.js} +1 -1
  2. package/dist/cdn/{IYVSAR3D.js → 2FYXFIR4.js} +1 -1
  3. package/dist/cdn/2QWB5XRH.js +2 -0
  4. package/dist/cdn/{ZRYPRUVT.js → 2VX44HPW.js} +1 -1
  5. package/dist/cdn/{IKH7UGJM.js → 3GN7VR32.js} +1 -1
  6. package/dist/cdn/{WTMEWLUJ.js → 3W4HHL2V.js} +1 -1
  7. package/dist/cdn/{ELXF6XQQ.js → 4PUOMS4A.js} +1 -1
  8. package/dist/cdn/{U2O4NGY5.js → 4RLQLQVB.js} +1 -1
  9. package/dist/cdn/{H4UKMJ3M.js → 4SNP6HTM.js} +1 -1
  10. package/dist/cdn/{OO4U6KKQ.js → 54265YSL.js} +1 -1
  11. package/dist/cdn/{MQI4ZLAS.js → 5434ASC3.js} +1 -1
  12. package/dist/cdn/{GCPA466R.js → 56INS6ML.js} +1 -1
  13. package/dist/cdn/{N4YN5XHL.js → 5E6TR5OW.js} +1 -1
  14. package/dist/cdn/{STFT35NP.js → 5XXBOV4Q.js} +1 -1
  15. package/dist/cdn/6462KIIY.js +2 -0
  16. package/dist/cdn/{BUXZ2NBS.js → 6ESCKCYY.js} +1 -1
  17. package/dist/cdn/{EXCMERSU.js → 6H4PWDET.js} +1 -1
  18. package/dist/cdn/77VLHOOC.js +2 -0
  19. package/dist/cdn/{Q4HYSXEK.js → 77YJOTCX.js} +1 -1
  20. package/dist/cdn/{KYQWN5DR.js → 7OESRD4R.js} +1 -1
  21. package/dist/cdn/7PKJNQL7.js +2 -0
  22. package/dist/cdn/{ZP4T262N.js → B44MEIQW.js} +1 -1
  23. package/dist/cdn/{BQMUOJL7.js → B5XYZKLU.js} +1 -1
  24. package/dist/cdn/{RPUEIRTH.js → BGIUDL2K.js} +1 -1
  25. package/dist/cdn/{IJKFUMKC.js → C3PVEL66.js} +1 -1
  26. package/dist/cdn/{IJR65YQB.js → CSN6MJ4B.js} +1 -1
  27. package/dist/cdn/{CR2U5KNC.js → DPRUAGVZ.js} +1 -1
  28. package/dist/cdn/{O7NFMOTE.js → ENG2F3IQ.js} +1 -1
  29. package/dist/cdn/{JSFNIFWE.js → EP5BMXUY.js} +1 -1
  30. package/dist/cdn/{3IXFIA6D.js → ETDHU5U4.js} +19 -19
  31. package/dist/cdn/EU6AJ57R.js +2 -0
  32. package/dist/cdn/{HFFXDWQL.js → F2MSD3QS.js} +1 -1
  33. package/dist/cdn/{DYCZXSJG.js → F2WEYOKD.js} +1 -1
  34. package/dist/cdn/{WSSQILRB.js → F3UFKEVT.js} +1 -1
  35. package/dist/cdn/{5SYHQWPP.js → FASMW7S2.js} +1 -1
  36. package/dist/cdn/{JFXCJ6HT.js → FH66KPN5.js} +1 -1
  37. package/dist/cdn/{A5CQKJHA.js → G6DJZSMC.js} +1 -1
  38. package/dist/cdn/{QSJV77RB.js → H5QMZ65D.js} +1 -1
  39. package/dist/cdn/{JO4YQAFF.js → HDHS7RTZ.js} +1 -1
  40. package/dist/cdn/{353KIT3L.js → HPO7UHSN.js} +1 -1
  41. package/dist/cdn/{METDO2QG.js → IMQYTRSY.js} +1 -1
  42. package/dist/cdn/{4GHJREG3.js → J5E4KON6.js} +1 -1
  43. package/dist/cdn/{UDQP2AFN.js → J65VM5UV.js} +1 -1
  44. package/dist/cdn/{VP5MGMQP.js → JPDI5NK6.js} +1 -1
  45. package/dist/cdn/{IS7KQGMM.js → JSJ2OXVP.js} +1 -1
  46. package/dist/cdn/{IGOJGDYE.js → JSUH5PFI.js} +1 -1
  47. package/dist/cdn/{WXO3YJ3T.js → KAVJHTFB.js} +1 -1
  48. package/dist/cdn/{6CPDF77P.js → KCEJQPTE.js} +1 -1
  49. package/dist/cdn/{DCIQMSQ2.js → KDMYI6HZ.js} +1 -1
  50. package/dist/cdn/{RDCTBV2Q.js → KHFNTBX4.js} +1 -1
  51. package/dist/cdn/{MFJINTU5.js → KHV5W5KY.js} +1 -1
  52. package/dist/cdn/{5V33DFCG.js → KIUBFEUI.js} +1 -1
  53. package/dist/cdn/{M6L3GCVZ.js → KKHTRL5K.js} +1 -1
  54. package/dist/cdn/{C6YIO7EV.js → LHQ5R7PX.js} +1 -1
  55. package/dist/cdn/{V4VQT6A6.js → LQL7VPXH.js} +1 -1
  56. package/dist/cdn/{CQORXOQS.js → LYVV7FBJ.js} +1 -1
  57. package/dist/cdn/{LBX6U6EK.js → MDKLQ2IS.js} +2 -2
  58. package/dist/cdn/{SZYIWW3C.js → MRN3GTKF.js} +1 -1
  59. package/dist/cdn/{W7HVSUF2.js → MUFEV5ZR.js} +1 -1
  60. package/dist/cdn/{6H6ZTNGY.js → N26FS3KG.js} +1 -1
  61. package/dist/cdn/{CKD62DZ4.js → N75HEDSD.js} +1 -1
  62. package/dist/cdn/{Q4GIMFJ2.js → NMAG7AL2.js} +1 -1
  63. package/dist/cdn/{KILQBDSV.js → OCCBK5S7.js} +1 -1
  64. package/dist/cdn/{U2VHNPRE.js → OLRPPTEO.js} +1 -1
  65. package/dist/cdn/{3LEJV2CC.js → OR765GRF.js} +1 -1
  66. package/dist/cdn/{GZA5OPRD.js → OUDFAIXR.js} +1 -1
  67. package/dist/cdn/{O34ACKBX.js → P7PD3PBN.js} +1 -1
  68. package/dist/cdn/{BF2U4V7S.js → PAHQAFMT.js} +1 -1
  69. package/dist/cdn/{KRNF2XCU.js → PIOFHDMU.js} +1 -1
  70. package/dist/cdn/{BQMDOKAK.js → POSJMG3Z.js} +1 -1
  71. package/dist/cdn/{MOL3RVAG.js → PUXBUCDR.js} +1 -1
  72. package/dist/cdn/{MDMJT2VS.js → PZRHKUTQ.js} +1 -1
  73. package/dist/cdn/{XIVGFLZQ.js → QHGSGGGJ.js} +1 -1
  74. package/dist/cdn/{PX7QCMDX.js → QHRYG4SP.js} +1 -1
  75. package/dist/cdn/{TV3FXQVK.js → QL5M6E2E.js} +1 -1
  76. package/dist/cdn/{CB3BW4H5.js → QZNI3BD3.js} +1 -1
  77. package/dist/cdn/{DPEEMYYB.js → RBTEJMJT.js} +1 -1
  78. package/dist/cdn/RD2OZ5DF.js +2 -0
  79. package/dist/cdn/{EFFUZV52.js → S2PTOBDF.js} +1 -1
  80. package/dist/cdn/{OCABBLZ7.js → SF3FTQP5.js} +1 -1
  81. package/dist/cdn/{3HZFE5JC.js → SLKGXWIE.js} +1 -1
  82. package/dist/cdn/{V4N4EY2E.js → TLYVHR5K.js} +1 -1
  83. package/dist/cdn/{MVJKABXP.js → UYNE67O2.js} +1 -1
  84. package/dist/cdn/{WVOXFKFO.js → VJG6ZEH4.js} +1 -1
  85. package/dist/cdn/{JNRJSGDP.js → VPCAPPIP.js} +1 -1
  86. package/dist/cdn/{IW27UN5J.js → VSMUBBEN.js} +1 -1
  87. package/dist/cdn/{IJ3OJVJQ.js → W2QXMYBG.js} +1 -1
  88. package/dist/cdn/{32RVL6OQ.js → W6SZDF5T.js} +1 -1
  89. package/dist/cdn/{QOZYAJXQ.js → WDWOAIWE.js} +1 -1
  90. package/dist/cdn/{7TM4LYGN.js → WG2TWSUV.js} +1 -1
  91. package/dist/cdn/{PETPI6FO.js → WQQMTR5J.js} +1 -1
  92. package/dist/cdn/{4UYG2V6P.js → X7OXNUXM.js} +1 -1
  93. package/dist/cdn/{NCOXA4CE.js → XQ5Q4AMB.js} +1 -1
  94. package/dist/cdn/{FK7MIBNE.js → XZAXZDTP.js} +1 -1
  95. package/dist/cdn/{OY5HRHVW.js → YEAARWKU.js} +1 -1
  96. package/dist/cdn/{ITFMAKY3.js → YMAI2PRA.js} +1 -1
  97. package/dist/cdn/Z5KG3KRT.js +2 -0
  98. package/dist/cdn/{LUFRX5TB.js → Z5ZBVJ2L.js} +1 -1
  99. package/dist/cdn/{YW6WBDZV.js → ZD4GMDVL.js} +1 -1
  100. package/dist/cdn/{H3JLQ2R3.js → ZLUIF2K7.js} +1 -1
  101. package/dist/cdn/{ZTVR6KBG.js → ZUN46CYQ.js} +1 -1
  102. package/dist/cdn/{4YOIC4P4.js → ZZAJQVXL.js} +1 -1
  103. package/dist/cdn/index.js +1 -1
  104. package/dist/cdn/model/shared/setup-utils.js +1 -1
  105. package/dist/chunks/action-bar-utils.js +1 -1
  106. package/dist/chunks/box-plot-data.js +1 -1
  107. package/dist/chunks/box-plot-model.js +173 -117
  108. package/dist/chunks/chart-ui-utils.js +7 -7
  109. package/dist/chunks/class-breaks.js +1 -1
  110. package/dist/chunks/combo-bar-line-chart-model.js +1 -1
  111. package/dist/chunks/data.js +9 -9
  112. package/dist/chunks/generate-x-axis-title.js +15 -15
  113. package/dist/chunks/index.js +164 -163
  114. package/dist/chunks/index2.js +1 -1
  115. package/dist/chunks/index3.js +15 -15
  116. package/dist/chunks/index4.js +7 -7
  117. package/dist/chunks/model-setter.js +22 -22
  118. package/dist/chunks/negative-values-stacked-to-baseline.js +1 -1
  119. package/dist/chunks/pie-chart-data.js +4 -4
  120. package/dist/chunks/resource.js +1 -1
  121. package/dist/chunks/rounded-corners.js +1 -1
  122. package/dist/chunks/scatterplot-model.js +1 -1
  123. package/dist/chunks/serial-chart-data.js +2 -2
  124. package/dist/chunks/serial-chart-model.js +131 -76
  125. package/dist/chunks/type-guards2.js +17 -17
  126. package/dist/chunks/utils.js +122 -106
  127. package/dist/chunks/web-component-utils.js +9 -9
  128. package/dist/chunks/x-bounds.js +12 -12
  129. package/dist/components/arcgis-chart/customElement.js +2259 -2254
  130. package/dist/components/arcgis-charts-action-bar/customElement.js +1 -1
  131. package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
  132. package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +8 -8
  133. package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +4 -4
  134. package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
  135. package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +1 -1
  136. package/dist/components/arcgis-charts-config-create-flow/customElement.js +8 -8
  137. package/dist/components/arcgis-charts-config-font-style/customElement.js +1 -1
  138. package/dist/components/arcgis-charts-config-format/customElement.js +14 -14
  139. package/dist/components/arcgis-charts-config-general/customElement.js +1 -1
  140. package/dist/components/arcgis-charts-config-guide/customElement.js +11 -11
  141. package/dist/components/arcgis-charts-config-guides/customElement.js +1 -1
  142. package/dist/components/arcgis-charts-config-heat-chart/customElement.js +1 -1
  143. package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +7 -7
  144. package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +1 -1
  145. package/dist/components/arcgis-charts-config-histogram/customElement.js +1 -1
  146. package/dist/components/arcgis-charts-config-histogram-data/customElement.js +9 -9
  147. package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
  148. package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +1 -1
  149. package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +7 -7
  150. package/dist/components/arcgis-charts-config-pie-chart/customElement.js +1 -1
  151. package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +2 -2
  152. package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
  153. package/dist/docs/api.json +1 -1
  154. package/dist/docs/docs.json +1 -1
  155. package/dist/docs/web-types.json +1 -1
  156. package/dist/index.js +111 -111
  157. package/dist/model/box-plot-model/box-plot-model.d.ts +20 -1
  158. package/dist/model/interfaces/chart-interfaces.d.ts +3 -0
  159. package/dist/model/interfaces/common.d.ts +2 -0
  160. package/dist/model/serial-chart-model/serial-chart-model.d.ts +20 -1
  161. package/dist/model/shared/setup-utils.d.ts +2 -0
  162. package/dist/model/shared/setup-utils.js +37 -36
  163. package/dist/utils/chart-config/converter/index.js +40 -40
  164. package/dist/utils/data/interfaces.d.ts +1 -0
  165. package/package.json +4 -4
  166. package/dist/cdn/2TV4NKY2.js +0 -2
  167. package/dist/cdn/EXLX4SJG.js +0 -2
  168. package/dist/cdn/GTBT4ACW.js +0 -2
  169. package/dist/cdn/HH5B6KCV.js +0 -2
  170. package/dist/cdn/KZBUDNHW.js +0 -2
  171. package/dist/cdn/KZSCAJDG.js +0 -2
  172. package/dist/cdn/XOTHROVZ.js +0 -2
  173. /package/dist/cdn/{225VUGML.js → IJPD3GVL.js} +0 -0
@@ -1,80 +1,81 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { M as o } from "../../chunks/common.js";
2
+ import { M as i } from "../../chunks/common.js";
3
3
  import { g as r, i as n, c } from "../../chunks/model-types.js";
4
- async function s(a) {
5
- const i = "config" in a ? r(a.config) : a.chartType;
6
- let t;
7
- if (!("layer" in a) && !("iLayer" in a) && "config" in a && a.config.iLayer === void 0)
4
+ async function m(t) {
5
+ const o = "config" in t ? r(t.config) : t.chartType;
6
+ let a;
7
+ if (!("layer" in t) && !("iLayer" in t) && "config" in t && t.config.iLayer === void 0)
8
8
  throw new Error(
9
9
  "The source is missing. You can provide it to createModel through either `iLayer`, `layer`, or by setting the `config.iLayer` property."
10
10
  );
11
- switch (i) {
12
- case o.LineChart: {
11
+ switch (o) {
12
+ case i.LineChart: {
13
13
  const { LineChartModel: e } = await import("../../chunks/line-chart-model.js");
14
- t = new e();
14
+ a = new e();
15
15
  break;
16
16
  }
17
- case o.ComboBarLineChart: {
17
+ case i.ComboBarLineChart: {
18
18
  const { ComboBarLineChartModel: e } = await import("../../chunks/combo-bar-line-chart-model.js");
19
- t = new e();
19
+ a = new e();
20
20
  break;
21
21
  }
22
- case o.PieChart: {
22
+ case i.PieChart: {
23
23
  const { PieChartModel: e } = await import("../../chunks/pie-chart-model.js");
24
- t = new e();
24
+ a = new e();
25
25
  break;
26
26
  }
27
- case o.Histogram: {
27
+ case i.Histogram: {
28
28
  const { HistogramModel: e } = await import("../../chunks/histogram-model.js");
29
- t = new e();
29
+ a = new e();
30
30
  break;
31
31
  }
32
- case o.Scatterplot: {
32
+ case i.Scatterplot: {
33
33
  const { ScatterplotModel: e } = await import("../../chunks/scatterplot-model.js");
34
- t = new e();
34
+ a = new e();
35
35
  break;
36
36
  }
37
- case o.BoxPlot: {
37
+ case i.BoxPlot: {
38
38
  const { BoxPlotModel: e } = await import("../../chunks/box-plot-model.js");
39
- t = new e();
39
+ a = new e();
40
40
  break;
41
41
  }
42
- case o.Gauge: {
42
+ case i.Gauge: {
43
43
  const { GaugeModel: e } = await import("../../chunks/gauge-model.js");
44
- t = new e();
44
+ a = new e();
45
45
  break;
46
46
  }
47
- case o.RadarChart: {
47
+ case i.RadarChart: {
48
48
  const { RadarChartModel: e } = await import("../../chunks/radar-chart-model.js");
49
- t = new e();
49
+ a = new e();
50
50
  break;
51
51
  }
52
- case o.HeatChart: {
52
+ case i.HeatChart: {
53
53
  const { HeatChartModel: e } = await import("../../chunks/heat-chart-model.js");
54
- t = new e();
54
+ a = new e();
55
55
  break;
56
56
  }
57
- case o.BarChart:
57
+ case i.BarChart:
58
58
  default: {
59
59
  const { BarChartModel: e } = await import("../../chunks/bar-chart-model.js");
60
- t = new e();
60
+ a = new e();
61
61
  break;
62
62
  }
63
63
  }
64
- if (await t?.setup({
65
- layer: "layer" in a ? a.layer : void 0,
66
- iLayer: "iLayer" in a ? a.iLayer : void 0,
67
- config: "config" in a ? a.config : void 0,
68
- commonStrings: "commonStrings" in a ? a.commonStrings : void 0
69
- }), i !== void 0 && n(t, i))
70
- return t;
64
+ if (await a?.setup({
65
+ layer: "layer" in t ? t.layer : void 0,
66
+ iLayer: "iLayer" in t ? t.iLayer : void 0,
67
+ config: "config" in t ? t.config : void 0,
68
+ commonStrings: "commonStrings" in t ? t.commonStrings : void 0,
69
+ chartLimits: "chartLimits" in t ? t.chartLimits : void 0
70
+ }), o !== void 0 && n(a, o))
71
+ return a;
71
72
  {
72
- const e = c(t.chartType);
73
+ const e = c(a.chartType);
73
74
  throw new Error(
74
- `Please check the arguments provided to \`createModel\`. The generated model's type (\`${e}\`) does not match the type specified by either the \`chartType\` or the \`config\` argument (\`${i}\`).`
75
+ `Please check the arguments provided to \`createModel\`. The generated model's type (\`${e}\`) does not match the type specified by either the \`chartType\` or the \`config\` argument (\`${o}\`).`
75
76
  );
76
77
  }
77
78
  }
78
79
  export {
79
- s as createModel
80
+ m as createModel
80
81
  };
@@ -2,13 +2,13 @@
2
2
  import { getElementLocale as $e } from "@arcgis/toolkit/intl/dom";
3
3
  import { cloneDeep as n, isEmpty as B } from "es-toolkit/compat";
4
4
  import { DateTime as Ye } from "luxon";
5
- import { q as Qe, cj as se, bw as Ke, W as ne, aO as ae, ck as Xe, bG as Je, bH as Ze, p as T, bi as Ue, cl as b, cm as te, N as et, O as tt, w as Z, cn as rt, cg as it, co as ot, Y as st } from "../../../chunks/index.js";
5
+ import { q as Qe, ck as se, bx as Ke, W as ne, aO as ae, cl as Xe, bH as Je, bI as Ze, p as x, bj as Ue, cm as b, cn as te, N as et, O as tt, w as Z, co as rt, ch as it, cp as ot, Y as st } from "../../../chunks/index.js";
6
6
  import { a8 as nt, p as at, l as lt, a5 as dt, s as ct } from "../../../chunks/index3.js";
7
7
  import { i as ut } from "../../../chunks/type-guards.js";
8
8
  import { a as u, D as k, i as le } from "../../../chunks/index2.js";
9
9
  import { g as h, s as ft } from "../../../chunks/series-types.js";
10
10
  import { o as re, a as c, d as F, t as p, g as v, u as pt, W as ie, e as C } from "../../../chunks/chart-object-literals.js";
11
- import { p as yt, c as mt, e as gt, i as St } from "../../../chunks/class-breaks.js";
11
+ import { p as yt, c as mt, e as St, i as gt } from "../../../chunks/class-breaks.js";
12
12
  import { b as vt } from "../../../chunks/rest-js-object-literals.js";
13
13
  var L = /* @__PURE__ */ ((r) => (r.NONE = "none", r.ROTATE = "rotate", r.STAGGER = "stagger", r.WRAP = "wrap", r))(L || {});
14
14
  function de(r) {
@@ -30,11 +30,11 @@ function Bt(r) {
30
30
  t.classBreaksRules.colorRampInfo = t.classBreaksRules.colorRampInfo ?? {};
31
31
  const { name: s, flipped: a } = t.classBreaksRules.colorRampInfo, f = yt(o, mt.esriColorRamps);
32
32
  if (!s && f?.name && (t.classBreaksRules.colorRampInfo.name = f.name), a === void 0 && f) {
33
- const y = gt({
33
+ const y = St({
34
34
  numberOfClassBreaks: o.length,
35
35
  selectedColorRamp: f
36
36
  });
37
- y.length === o.length && (t.classBreaksRules.colorRampInfo.flipped = St(y, o));
37
+ y.length === o.length && (t.classBreaksRules.colorRampInfo.flipped = gt(y, o));
38
38
  }
39
39
  }
40
40
  }
@@ -87,36 +87,36 @@ async function fe(r) {
87
87
  a && (s = await Ze(a, t));
88
88
  }
89
89
  if (s) {
90
- const a = T(o.series), f = h(o.series), y = o.series && o.series.length > 0 && o.series[0].x.trim() === "" || f === c.GaugeSeries && !Ue(e) || a === u.PieFromFields || a === u.BarAndLineFromFields || a === u.BoxPlotC1MonoField || a === u.BoxPlotC5MonoFieldAndSplitBy || a === u.BoxPlotC2MultiFields || a === u.BoxPlotC6MultiFieldsAndSplitBy, He = f === c.ScatterSeries || f === c.HeatSeries || a === u.BarAndLineNoAggregation || a === u.BarAndLineSplitByNoAggregation || a === u.BoxPlotC1MonoField || a === u.BoxPlotC5MonoFieldAndSplitBy || a === u.BoxPlotC3MonoFieldAndCategory || a === u.BoxPlotC7MonoFieldAndCategoryAndSplitBy || a === u.PieNoAggregation;
90
+ const a = x(o.series), f = h(o.series), y = o.series && o.series.length > 0 && o.series[0].x.trim() === "" || f === c.GaugeSeries && !Ue(e) || a === u.PieFromFields || a === u.BarAndLineFromFields || a === u.BoxPlotC1MonoField || a === u.BoxPlotC5MonoFieldAndSplitBy || a === u.BoxPlotC2MultiFields || a === u.BoxPlotC6MultiFieldsAndSplitBy, He = f === c.ScatterSeries || f === c.HeatSeries || a === u.BarAndLineNoAggregation || a === u.BarAndLineSplitByNoAggregation || a === u.BoxPlotC1MonoField || a === u.BoxPlotC5MonoFieldAndSplitBy || a === u.BoxPlotC3MonoFieldAndCategory || a === u.BoxPlotC7MonoFieldAndCategoryAndSplitBy || a === u.PieNoAggregation;
91
91
  if (o.series = e.series.map((d) => {
92
92
  const l = { ...d };
93
93
  if (y || (l.x = b({ queryObject: s, fieldToMatch: d.x })), "y" in l && He) {
94
94
  const m = l.y;
95
95
  if (Array.isArray(m)) {
96
- const g = te({
96
+ const S = te({
97
97
  fieldsList: m,
98
98
  queryObject: s
99
99
  });
100
- g !== void 0 && "y" in l && (l.y = g);
100
+ S !== void 0 && "y" in l && (l.y = S);
101
101
  } else "y" in l && typeof m == "string" && (l.y = b({ queryObject: s, fieldToMatch: m }));
102
102
  }
103
103
  if (d.query !== void 0) {
104
- let { where: m, groupByFieldsForStatistics: g, outStatistics: S } = d.query;
105
- if (g = te({ fieldsList: g, queryObject: s }), S !== void 0 && (S = S.map((x) => {
106
- const O = { ...x };
104
+ let { where: m, groupByFieldsForStatistics: S, outStatistics: g } = d.query;
105
+ if (S = te({ fieldsList: S, queryObject: s }), g !== void 0 && (g = g.map((T) => {
106
+ const O = { ...T };
107
107
  return O.onStatisticField = b({
108
108
  queryObject: s,
109
- fieldToMatch: x.onStatisticField
109
+ fieldToMatch: T.onStatisticField
110
110
  }), O;
111
111
  })), m !== void 0 && a === u.BarAndLineSplitBy) {
112
- const x = et(d.query?.where), O = tt({
112
+ const T = et(d.query?.where), O = tt({
113
113
  where: d.query?.where,
114
114
  normalize: !1,
115
115
  escape: !1
116
116
  });
117
- m = `${b({ queryObject: s, fieldToMatch: x })}=${O}`;
117
+ m = `${b({ queryObject: s, fieldToMatch: T })}=${O}`;
118
118
  }
119
- l.query !== void 0 && (m !== void 0 && (l.query.where = m), g !== void 0 && (l.query.groupByFieldsForStatistics = g), S !== void 0 && (l.query.outStatistics = S));
119
+ l.query !== void 0 && (m !== void 0 && (l.query.where = m), S !== void 0 && (l.query.groupByFieldsForStatistics = S), g !== void 0 && (l.query.outStatistics = g));
120
120
  }
121
121
  return l;
122
122
  }), o.series[0]?.query !== void 0) {
@@ -131,20 +131,20 @@ async function fe(r) {
131
131
  if (f === c.GaugeSeries && e.axes?.[0] !== void 0) {
132
132
  const { minimumFromField: d, maximumFromField: l } = e.axes[0];
133
133
  if (d !== void 0) {
134
- const m = typeof d == "string" ? d : d.onStatisticField, g = b({ queryObject: s, fieldToMatch: m });
135
- let S = d;
136
- typeof e.axes[0].minimumFromField == "string" ? S = g : typeof d == "object" && (S = {
134
+ const m = typeof d == "string" ? d : d.onStatisticField, S = b({ queryObject: s, fieldToMatch: m });
135
+ let g = d;
136
+ typeof e.axes[0].minimumFromField == "string" ? g = S : typeof d == "object" && (g = {
137
137
  ...d,
138
- onStatisticField: g
139
- }), e.axes[0].minimumFromField = S;
138
+ onStatisticField: S
139
+ }), e.axes[0].minimumFromField = g;
140
140
  }
141
141
  if (l !== void 0) {
142
- const m = typeof l == "string" ? l : l.onStatisticField, g = b({ queryObject: s, fieldToMatch: m });
143
- let S = l;
144
- typeof e.axes[0].maximumFromField == "string" ? S = g : typeof l == "object" && (S = {
142
+ const m = typeof l == "string" ? l : l.onStatisticField, S = b({ queryObject: s, fieldToMatch: m });
143
+ let g = l;
144
+ typeof e.axes[0].maximumFromField == "string" ? g = S : typeof l == "object" && (g = {
145
145
  ...l,
146
- onStatisticField: g
147
- }), e.axes[0].maximumFromField = S;
146
+ onStatisticField: S
147
+ }), e.axes[0].maximumFromField = g;
148
148
  }
149
149
  }
150
150
  }
@@ -174,10 +174,10 @@ function me(r) {
174
174
  const i = Array.from(new Set(r.series.map((t) => t.type)));
175
175
  return i.length === 2 && i.includes(c.BoxPlotSeries) && i.includes(c.LineSeries) && (e = r.series.find((o) => o.type === c.LineSeries)?.query?.outStatistics?.[0] !== void 0), e;
176
176
  }
177
- function ge(r) {
177
+ function Se(r) {
178
178
  const e = n(r);
179
179
  if (!B(e.series) && h(r.series) === c.BoxPlotSeries) {
180
- const t = T(r.series);
180
+ const t = x(r.series);
181
181
  if (e.orderOptions?.data === void 0 && t !== u.BoxPlotC2MultiFields && t !== u.BoxPlotC1MonoField) {
182
182
  const o = ye(r.series[0]);
183
183
  o.orderType !== void 0 && (e.orderOptions ??= {}, e.orderOptions.data = {
@@ -204,7 +204,7 @@ function ge(r) {
204
204
  }
205
205
  return e;
206
206
  }
207
- function Se(r) {
207
+ function ge(r) {
208
208
  const e = n(r);
209
209
  return e.legend !== void 0 && !Number.isFinite(e.legend.maxHeight) && (e.legend.maxHeight = void 0), e;
210
210
  }
@@ -224,9 +224,9 @@ async function he(r) {
224
224
  let s = n(e);
225
225
  if (s = ce(s), s = ue(s), s = await fe({ configToUpdate: s, layer: i, abortSignal: o }), ne(s)) {
226
226
  const a = pe(s);
227
- s = ge(a);
227
+ s = Se(a);
228
228
  }
229
- return s = Se(s), s = Be(s), ae(s) && !ut(i) && (s = de({ configToUpdate: s, chartContainer: t, layer: i })), s;
229
+ return s = ge(s), s = Be(s), ae(s) && !ut(i) && (s = de({ configToUpdate: s, chartContainer: t, layer: i })), s;
230
230
  }
231
231
  function Ce(r) {
232
232
  const e = n(r), i = e.series[0];
@@ -240,7 +240,7 @@ function Ce(r) {
240
240
  }
241
241
  function be(r) {
242
242
  const e = n(r);
243
- return e?.orderOptions?.orderByFields !== void 0 && T(r.series) === u.PieFromFields && (e.orderOptions.orderByFields = r?.orderOptions?.orderByFields?.map(
243
+ return e?.orderOptions?.orderByFields !== void 0 && x(r.series) === u.PieFromFields && (e.orderOptions.orderByFields = r?.orderOptions?.orderByFields?.map(
244
244
  (i) => {
245
245
  let t = n(i);
246
246
  return i !== void 0 && i.includes("arcgis_charts_pie_category_from_fields_name") && (t = i.replace(
@@ -258,7 +258,7 @@ function Fe(r) {
258
258
  }
259
259
  return e;
260
260
  }
261
- function Te(r) {
261
+ function xe(r) {
262
262
  const e = n(r), { extent: i } = e.series[0]?.query ?? {};
263
263
  return i !== void 0 && (e.dataFilters = {
264
264
  ...e.dataFilters,
@@ -273,7 +273,7 @@ function U(r) {
273
273
  i.rotated !== void 0 && delete i.rotated;
274
274
  })), e;
275
275
  }
276
- function xe(r) {
276
+ function Te(r) {
277
277
  const e = n(r), i = r.dataSource;
278
278
  return "dataSource" in e && !B(i) && (i.type === "featureLayer" && e.dataSource !== void 0 && (e.dataSource.type = "layer"), "featureLayer" in i && (e.dataSource.layer = i.featureLayer, delete e.dataSource.featureLayer)), e;
279
279
  }
@@ -388,7 +388,7 @@ function Ie(r) {
388
388
  function P(r) {
389
389
  let e, i = r.orderOptions?.orderByFields?.[0];
390
390
  if (r.series?.length > 0) {
391
- const t = h(r.series), o = T(r.series);
391
+ const t = h(r.series), o = x(r.series);
392
392
  if (t !== c.PieSeries && o !== u.BarAndLineFromFields && o !== u.BoxPlotC2MultiFields && (i = i ?? r.series[0].x), i && !le(i)) {
393
393
  const { fieldToSort: s, orderBy: a } = k(i);
394
394
  let f;
@@ -430,7 +430,7 @@ function We(r) {
430
430
  function qe(r) {
431
431
  const e = n(r);
432
432
  if (e) {
433
- const i = T(e.series);
433
+ const i = x(e.series);
434
434
  if ((i === u.BarAndLineFromFields || i === u.PieFromFields) && e.orderOptions?.data === void 0 && e.orderOptions?.orderByFields !== void 0) {
435
435
  const t = P(e);
436
436
  t !== void 0 && (e.orderOptions ??= {}, e.orderOptions.data = t, delete e.orderOptions.orderByFields);
@@ -512,7 +512,7 @@ function w(r) {
512
512
  }
513
513
  function A(r) {
514
514
  let e = n(r);
515
- return e = Te(e), e;
515
+ return e = xe(e), e;
516
516
  }
517
517
  function D(r) {
518
518
  let e = n(r);
@@ -520,7 +520,7 @@ function D(r) {
520
520
  }
521
521
  function M(r) {
522
522
  let e = n(r);
523
- return e = xe(e), e;
523
+ return e = Te(e), e;
524
524
  }
525
525
  function I(r) {
526
526
  let e = n(r);
@@ -678,10 +678,10 @@ const Mt = {
678
678
  adjustAxes: ce,
679
679
  adjustSeries: ue,
680
680
  matchChartFieldsToLayerFields: fe,
681
- resetLegendMaxHeight: Se,
682
- moveSeriesQueryExtent: Te,
681
+ resetLegendMaxHeight: ge,
682
+ moveSeriesQueryExtent: xe,
683
683
  moveSeriesRotatedPropToChart: U,
684
- renameDataSourceProperties: xe,
684
+ renameDataSourceProperties: Te,
685
685
  copyDataSourceFilterToConfig: Oe,
686
686
  adjustPieFromFieldsDefaultNameAndValue: be,
687
687
  removeSpacingPropertyFromGauge: Fe,
@@ -690,7 +690,7 @@ const Mt = {
690
690
  getProBoxPlotSortDataOption: ye,
691
691
  isBoxPlotConfigWithMeanLinesFromPro: me,
692
692
  preventDuplicatedIds: Be,
693
- adjustBoxPlotConfig: ge,
693
+ adjustBoxPlotConfig: Se,
694
694
  convertSortSeriesByToObject: we,
695
695
  moveBoxPlotSortDataByProp: De,
696
696
  handleColorMatchChanges: Ae,
@@ -15,6 +15,7 @@ export interface DataMinMax {
15
15
  export interface DataInfo {
16
16
  valid: boolean;
17
17
  invalidType?: DataWarningKeywords;
18
+ seriesCount?: number;
18
19
  count?: number;
19
20
  data?: WebChartDataTypes;
20
21
  queryConfig?: WebChartQuery;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/charts-components",
3
- "version": "5.2.0-next.124",
3
+ "version": "5.2.0-next.125",
4
4
  "description": "Reusable ArcGIS charting Web Components.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -30,8 +30,8 @@
30
30
  "dependencies": {
31
31
  "@amcharts/amcharts4": "^4.10.31",
32
32
  "@amcharts/amcharts5": "~5.20.8",
33
- "@arcgis/lumina": "5.2.0-next.124",
34
- "@arcgis/toolkit": "5.2.0-next.124",
33
+ "@arcgis/lumina": "5.2.0-next.125",
34
+ "@arcgis/toolkit": "5.2.0-next.125",
35
35
  "@esri/arcgis-html-sanitizer": "~4.1.0",
36
36
  "@lit/task": "^1.0.3",
37
37
  "@zumer/snapdom": "^2.24.1",
@@ -45,7 +45,7 @@
45
45
  "tslib": "^2.8.1"
46
46
  },
47
47
  "peerDependencies": {
48
- "@arcgis/core": "5.2.0-next.124",
48
+ "@arcgis/core": "5.2.0-next.125",
49
49
  "@esri/calcite-components": "^5.2.0-next.80"
50
50
  },
51
51
  "css.customData": [
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import y from"./C6YIO7EV.js";import{a as R,b as z,c as U,d as j}from"./3LEJV2CC.js";import w from"./BF2U4V7S.js";import v from"./XOTHROVZ.js";import u from"./ZRYPRUVT.js";import t from"./H3JLQ2R3.js";import s from"./V4N4EY2E.js";import r from"./6H6ZTNGY.js";import q from"./V4VQT6A6.js";import o from"./OO4U6KKQ.js";import n from"./O7NFMOTE.js";import"./RPUEIRTH.js";import l from"./FK7MIBNE.js";import k from"./W7HVSUF2.js";import i from"./TV3FXQVK.js";import h from"./HH5B6KCV.js";import e from"./6CPDF77P.js";import c from"./KZBUDNHW.js";import a from"./LBX6U6EK.js";import"./4GHJREG3.js";import"./WOGALV3T.js";import{B as b,Ga as m,fa as O,i as x,m as f,ma as D,n as p,p as d}from"./ZTVR6KBG.js";import"./KX7KGXKQ.js";import"./NGXRBJKL.js";import"./5SYHQWPP.js";import{l as g}from"./225VUGML.js";import"./P3AYFJRV.js";import{b as W}from"./QP5UAIC6.js";import"./QYRHZJH3.js";import{a as M}from"./PWJBGZPW.js";import"./BYSUABOV.js";export default $arcgis.t(([{nc:P,pa:l},{p:E,q:N,r:V,s:A},,{e:t},,,ge,{b:we,d:Ie,f:Ce},{b:Fe,d:Be,f:Le},{d:ye,e:ue},,{b:ve},{a:fe,b:pe,c:de,d:me},{a:Se,b:_e},,{b:Me},{A:ae,B:w,C:I,D:C,E:he,F:le,G:ce,a:k,b:T,c:q,d:y,e:G,f:Y,g:u,h:S,i:H,j:J,k:K,l:Q,m:X,n:Z,o:$,p:_,q:ee,r:se,s:ie,t:F,u:te,v:oe,w:re,x:B,y:L,z:ne}])=>{var De=Object.defineProperty,Pe=Object.getOwnPropertyDescriptor,r=(c,e,s,a)=>{for(var o=Pe(e,s),n=c.length-1,h;n>=0;n--)(h=c[n])&&(o=h(e,s,o)||o);return o&&De(e,s,o),o},i=class extends ge{constructor(){super(...arguments),this._chartType=M.BoxPlotSeries,this._category=d,this._splitByField="",this._numericFields=[]}async setup(e){await this.loadConfigFromLayer(e),this.setupLocalProps(),e.config!==void 0&&await this.rebuildSeries(),typeof this.resolveSetup=="function"&&this.resolveSetup()}get category(){return this._category}set category(e){let s=e.trim()==="";this._category=s?d:e,this.processSeriesRebuild("category")}get numericFields(){return this._numericFields}set numericFields(e){let{layerFieldsInfo:s}=this.layerInfo;typeof e=="string"&&(e=[e]),V(s,e)?(this._numericFields=e,le(this._category,this._numericFields)&&(this._splitByField=""),this.processSeriesRebuild("numericFields")):g("error","box-plot-model","Invalid `numericFields`")}get splitByField(){return this._splitByField}set splitByField(e){N(this.layerInfo.layerFieldsInfo,e)?(this._splitByField=e,this.processSeriesRebuild("splitByField")):g("error","box-plot-model","Invalid `splitByField`")}get showOutliers(){return te(this._config)}set showOutliers(e){oe({newShowOutliers:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get standardizeValues(){return ee(this._config)}set standardizeValues(e){re({newStandardizeValues:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}getSortOrder(){return B(this._config)}setSortOrder(e,s){L(e,this._config,s)}async getCustomSortValues(){return await C({config:this._config,layerInfo:this.layerInfo,errorStrings:this.commonStrings.errorStrings})}async setDataFilters(e){super.setDataFilters(e);let s=B(this._config);if(s===W.customSort){this.startAsyncUpdate();let a=await C({config:this._config,layerInfo:this.layerInfo,errorStrings:this.commonStrings.errorStrings});L(s,this._config,a),this.finishAsyncUpdate()}this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get orderByList(){return w(this._config)}set orderByList(e){I(e,this._config)}async updateSeriesFromLayerFilter(){await this.processSeriesRebuild("updateSeriesFromLayerFilter")}async rebuildSeries(){await this.processSeriesRebuild("rebuildSeries")}get showMeanLines(){return ne(this._config)}set showMeanLines(e){let{previousMeanLinesBoxColor:s}=ae({newShowMeanLines:e,config:this._config,commonStrings:this.commonStrings,previousMeanLinesBoxColor:this.previousMeanLinesBoxColor});this.previousMeanLinesBoxColor=s}get meanLinesBoxColor(){return Y(this._config)}set meanLinesBoxColor(e){u(e,this._config)}setupLocalProps(){this._category=X(this._config),this._splitByField=Z(this._config),this._numericFields=$(this._config)}generateDefaultConfig(){let e=D(this.commonStrings);return e.series=[O(this.commonStrings)],e}resetConfig(){let e=this._config.id;this._config=this.generateDefaultConfig(),this._config.id=e,this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}usingSplitBy(){return ce(this.category,this.numericFields,this.splitByField)}async processSeriesRebuild(e){this.usingSplitBy()?(this.startAsyncUpdate(),await this.fetchSplitByFieldInfos(),_(this.getBuildNewSeriesProps()),this.finishAsyncUpdate()):_(this.getBuildNewSeriesProps()),this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")),this.emitConfigUpdate(e)}async fetchSplitByFieldInfos(){let{fetchNullValues:e}=P(this._config)?.query??{};return this.splitByFieldInfos=await E({config:this._config,layer:this.layerInfo.layer,layerFieldsInfo:this.layerInfo.layerFieldsInfo,xAxisField:he(this._category)?void 0:this._category,aggregationFields:this.numericFields,splitByField:this._splitByField,fetchNullValues:e,errorStrings:this.commonStrings?.errorStrings}),this.splitByFieldInfos}getBuildNewSeriesProps(){return{category:this.category,splitByField:this.splitByField,numericFields:this.numericFields,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,splitByFieldInfos:this.splitByFieldInfos}}getSeriesName(e){return q(e,this._config)}setSeriesName(e,s){y(e,s,this._config)}getSeriesColor(e){return G(e,this._config)}setSeriesColor(e,s){S(e,s,this._config)}getSeriesLineStyle(e){let s=this._config.series[e];if(this.showMeanLines===!0&&l(s))return R(s)}setSeriesLineStyle(e,s){this.showMeanLines===!0&&k({style:e,seriesIndex:s,config:this._config})}getSeriesLineWidth(e){let s=this._config.series[e];if(this.showMeanLines===!0&&l(s))return U(s)}setSeriesLineWidth(e,s){this.showMeanLines===!0&&T({width:e,seriesIndex:s,config:this._config})}get orderOfSeries(){return H(this._config)}set orderOfSeries(e){J(e,this._config)}moveSeries(e,s){K(e,s,this._config)}get boxPlotSeriesIndexWhenMeanLinesShown(){return Q(this._config)}moveCustomSortValuesInOrderByList(e,s){let a=w(this._config),[o]=a.splice(e,1);a.splice(s,0,o),I(a,this._config)}generateChartTitle(){return ie(this._config,this.layerInfo,this.commonStrings)}generateYAxisTitle(){return se(this._config,this.layerInfo,this.commonStrings)}resetSeriesStyling(){for(let e=this.showMeanLines===!0?1:0;e<this.seriesLength;e+=1){let s=this.getSeriesId(e),a=b({colorIndex:e,opacity:x}),o=this._config.series[e];S(a,e,this._config);let n=F({series:o,splitByField:this._splitByField,layerInfo:this.layerInfo,commonStrings:this.commonStrings});y(n??s,e,this._config),this.showMeanLines===!0&&l(o)&&(z(f,o),j(p,o))}this.showMeanLines===!0&&u(m,this._config),this._config.colorMatch=!0}resetAvailable(){let e=!this.colorMatch,s=this.showMeanLines===!0&&this.meanLinesBoxColor!==m,a=!1,o=!1;if(!e)for(let n=this.showMeanLines===!0?1:0;n<this.seriesLength;n+=1){let h=this._config.series[n],v=F({series:h,splitByField:this._splitByField,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),xe=this.getSeriesName(n);if(v!==void 0&&v!==xe){a=!0;break}if(this.showMeanLines===!0&&l(h)){let be=this.getSeriesLineStyle(n),Oe=this.getSeriesLineWidth(n);if(be!==f||Oe!==p){o=!0;break}}}return e||s||a||o}};r([t],i.prototype,"showOutliers");r([t],i.prototype,"standardizeValues");r([t],i.prototype,"setSortOrder");r([t],i.prototype,"setDataFilters");r([t],i.prototype,"orderByList");r([t],i.prototype,"showMeanLines");r([t],i.prototype,"meanLinesBoxColor");r([t],i.prototype,"resetConfig");r([t],i.prototype,"setSeriesName");r([t],i.prototype,"setSeriesColor");r([t],i.prototype,"setSeriesLineStyle");r([t],i.prototype,"setSeriesLineWidth");r([t],i.prototype,"orderOfSeries");r([t],i.prototype,"moveSeries");r([t],i.prototype,"moveCustomSortValuesInOrderByList");r([t],i.prototype,"resetSeriesStyling");var We=[Se,fe,pe,de,Me,me,ve,_e,we,ye,Ie,ue,Fe,Be,Le,Ce];A(i,We);return i},a,c,e,h,i,k,l,n,o,q,r,s,t,u,v,w,y)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import r from"./ZP4T262N.js";import q from"./BF2U4V7S.js";import p from"./XOTHROVZ.js";import o from"./ZRYPRUVT.js";import n from"./H3JLQ2R3.js";import l from"./V4N4EY2E.js";import j from"./6H6ZTNGY.js";import i from"./STFT35NP.js";import h from"./V4VQT6A6.js";import g from"./OO4U6KKQ.js";import e from"./O7NFMOTE.js";import d from"./FK7MIBNE.js";import c from"./HH5B6KCV.js";import b from"./KZBUDNHW.js";import a from"./LBX6U6EK.js";import{L as w,N as P,U as D,Z as V,da as E}from"./ZTVR6KBG.js";import{b as k}from"./NGXRBJKL.js";import{a as L}from"./QP5UAIC6.js";import{c as _}from"./QYRHZJH3.js";import{a as f,b as m,f as S}from"./PWJBGZPW.js";export default $arcgis.t(([{I:p,Qb:N,pa:x,ra:F},{c:M,d:I,f:T,p:U,q:j,r:W,s:R},{e:o},O,{b:xe,d:Fe,f:Ie},{b:ue,d:Se,f:_e},{d:me,e:fe},de,{d:Y},{b:Te},{a:le,b:ge,c:ce,d:he},{a:pe,b:ye},{d:B,e:C,f:z},{b:Be},{a:q,b:X,c:G,d:H,e:J,f:K,g:Q,h:Z,i:$,j:ee,k:ie,m:te,ma:se,na:y,oa:re,pa:d,qa:A,ra:oe,sa:u,ua:v,va:b,wa:ne,xa:ae}])=>{var Ce=(s,e)=>e.series?.[s].assignToSecondValueAxis??!1,Ae=s=>{let{assign:e,seriesIndex:i,config:t,commonStrings:r}=s;e&&t.axes!==void 0&&!t.axes?.[2]&&(t.axes[2]=V(r,f.BarSeries)[1]),t.series&&t.series.forEach((a,c)=>{c===i?a.assignToSecondValueAxis=e:c!==i&&a?.assignToSecondValueAxis!==!0&&(a.assignToSecondValueAxis=!1)}),t.axes?.[2]&&!t.series.some(a=>a.assignToSecondValueAxis)&&t.axes.splice(2,1)},ve=(s,e)=>e.series?.[s]?.name,be=(s,e,i)=>{i.series?.[e]&&(i.series[e].name=s)},Oe=(s,e)=>{let i=e.series?.[s],t;return F(i)?t=i.fillSymbol?.color:x(i)&&(t=i.lineSymbol?.color),t},ke=(s,e,i)=>{let t=i.series?.[e];t&&(F(t)?t.fillSymbol={...E(e),...t.fillSymbol,color:s}:x(t)&&(t.lineSymbol={...D(e),...t.lineSymbol,color:s}))},we=s=>s.series.map(e=>e.id),Pe=(s,e)=>{e.series?.sort((i,t)=>s.findIndex(r=>i.id===r)-s.findIndex(r=>t.id===r))},De=s=>s.stackedType??S.Side,Ve=s=>{let{newStackedType:e,config:i,layerInfo:t,commonStrings:r}=s;if(i.stackedType=e,t!==void 0){let a=I({config:i,layerInfo:t,commonStrings:r,numericFields:d(i),aggregationType:y(i)});M(i,1,a)}i.axes?.[1]&&(e===S.Stacked100?i.axes[1].valueFormat=P():i.axes[1].valueFormat=w()),T({config:i,value:null,axisIndex:1,isMax:!1}),T({config:i,value:null,axisIndex:1,isMax:!0})},Ee=s=>{let e={};return s.series.forEach(i=>{_(i)&&"nullCategory"in i&&i.nullCategory!==void 0&&(e.text??=i.nullCategory.text,i.type===f.BarSeries?e.fillSymbol??=i.nullCategory.fillSymbol:e.markerSymbol??=i.nullCategory.markerSymbol)}),e.text||e.fillSymbol||e.markerSymbol?e:void 0},Ne=(s,e)=>{s.series.forEach(i=>{_(i)&&(e?i.type===f.BarSeries?i.nullCategory={text:e?.text,fillSymbol:e?.fillSymbol}:i.nullCategory={text:e?.text,markerSymbol:e?.markerSymbol}:i.nullCategory=void 0)})},Le=Object.defineProperty,Me=Object.getOwnPropertyDescriptor,h=(s,e,i,t)=>{for(var r=Me(e,i),a=s.length-1,c;a>=0;a--)(c=s[a])&&(r=c(e,i,r)||r);return r&&Le(e,i,r),r},g=class extends O{get temporalBinningSize(){return q(this._config)}set temporalBinningSize(e){K(e,this._config)}get temporalBinningUnit(){return X(this._config)}set temporalBinningUnit(e){Z(e,this._config)}get timeAggregationType(){return G(this._config)}set timeAggregationType(e){$(e,this._config)}get trimIncompleteTimeInterval(){return H(this._config)}set trimIncompleteTimeInterval(e){ee(e,this._config)}get nullPolicy(){return J(this._config)}set nullPolicy(e){Q(e,this._config)}resetTimeInterval(){ie(this._config)}};h([o],g.prototype,"temporalBinningSize");h([o],g.prototype,"temporalBinningUnit");h([o],g.prototype,"timeAggregationType");h([o],g.prototype,"trimIncompleteTimeInterval");h([o],g.prototype,"nullPolicy");h([o],g.prototype,"resetTimeInterval");var Ue=Object.defineProperty,je=Object.getOwnPropertyDescriptor,l=(s,e,i,t)=>{for(var r=je(e,i),a=s.length-1,c;a>=0;a--)(c=s[a])&&(r=c(e,i,r)||r);return r&&Ue(e,i,r),r},n=class extends O{constructor(){super(...arguments),this._xAxisField="",this._aggregationType=m.Count,this._splitByField="",this._numericFields=[]}get xAxisField(){return this._xAxisField}set xAxisField(e){if(this._xAxisField=e,e.trim()===""||e===p){let i=this.numericFields;this.resetConfig(),this.numericFields=i}this.processSeriesRebuild("xAxisField")}get aggregationType(){return this._aggregationType}set aggregationType(e){this._aggregationType=e,oe({aggregationType:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}get splitByField(){return this._splitByField}set splitByField(e){this.layerInfo?.layerFieldsInfo&&j(this.layerInfo?.layerFieldsInfo,e)&&(this._splitByField=e,this.processSeriesRebuild("splitByField"))}get numericFields(){return this._numericFields}set numericFields(e){typeof e=="string"&&(e=[e]);let i=W(this.layerInfo?.layerFieldsInfo??[],e),t=(this.xAxisField===""||this.xAxisField===p)&&e.length===0;if(i&&!t){let r=N(this.layerInfo.layer).idField;e.length===0&&r!==void 0?(e=[r],this._aggregationType=m.Count):this._aggregationType===m.Count&&e.length>=1&&r!==void 0&&!e.includes(r)&&(this._aggregationType=m.Sum),this._numericFields=e,this.numericFields.length>1&&(this._splitByField=""),this.processSeriesRebuild("numericFields")}else t&&this.resetConfig()}getAssignToSecondValueAxis(e){return Ce(e,this._config)}setAssignToSecondValueAxis(e,i){Ae({assign:e,seriesIndex:i,config:this._config,commonStrings:this.commonStrings})}getSeriesToSecondaryYAxis(e){return Ce(e,this._config)}setSeriesToSecondaryYAxis(e,i){Ae({assign:e,seriesIndex:i,config:this._config,commonStrings:this.commonStrings})}getSortOrder(){return A(this._config)[0]}setSortOrder(e,i){C(e,this._config,i)}async getCustomSortValues(){return await b({config:this._config,layerInfo:this.layerInfo,errorStrings:this.commonStrings?.errorStrings})}async setDataFilters(e){super.setDataFilters(e);let i=A(this._config)[0];if(i===L.customSort){this.startAsyncUpdate();let t=await b({config:this._config,layerInfo:this.layerInfo,errorStrings:this.commonStrings?.errorStrings});C(i,this._config,t),this.finishAsyncUpdate()}this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get orderByList(){return B(this._config)}set orderByList(e){!Y(this._config)&&v(e,this._config)}updateSeriesFromLayerFilter(){this.layerInfo!==void 0&&u(this.getBuildNewSeriesProps())}async rebuildSeries(){await this.processSeriesRebuild("rebuildSeries")}get binTemporalData(){return ne(this._config)}set binTemporalData(e){ae(e,this._config)}getSeriesName(e){return ve(e,this._config)}setSeriesName(e,i){be(e,i,this._config)}getSeriesColor(e){return Oe(e,this._config)}setSeriesColor(e,i){ke(e,i,this._config)}getOrderOfSeries(){return we(this._config)}setOrderOfSeries(e){Pe(e,this._config)}get stackedType(){return De(this._config)}set stackedType(e){Ve({newStackedType:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}moveSeries(e,i){let t=this.getOrderOfSeries(),[r]=t.splice(e,1);t.splice(i,0,r),this.setOrderOfSeries(t)}moveCustomSortValuesInOrderByList(e,i){let t=B(this._config),[r]=t.splice(e,1);t.splice(i,0,r),v(t,this._config)}get nullCategory(){return Ee(this._config)}set nullCategory(e){let i=this.nullCategory;k(i,e)||Ne(this._config,e)}setupLocalProps(){this._xAxisField=z(this._config),this._aggregationType=y(this._config),this._splitByField=re(this._config),this._numericFields=d(this._config)}resetConfig(){let e=this._config.id;this._config=this.generateDefaultConfig(),this._config.id=e,this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}usingSplitBy(){return this.splitByField!==""&&this.numericFields.length<=1}async processSeriesRebuild(e){this.usingSplitBy()?(this.startAsyncUpdate(),await this.fetchSplitByFieldInfos(),u(this.getBuildNewSeriesProps()),this.finishAsyncUpdate()):u(this.getBuildNewSeriesProps()),this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")),this.emitConfigUpdate(e)}async fetchSplitByFieldInfos(){return this.splitByFieldInfos=await U({config:this._config,layer:this.layerInfo.layer,layerFieldsInfo:this.layerInfo.layerFieldsInfo,xAxisField:this._xAxisField!==p?this._xAxisField:void 0,splitByField:this._splitByField,fetchNullValues:this._config?.series?.[0]?.query?.fetchNullValues,errorStrings:this.commonStrings?.errorStrings}),this.splitByFieldInfos}getBuildNewSeriesProps(){return{xAxisFieldName:this._xAxisField,splitByField:this._splitByField,numericFields:this._numericFields,aggregationType:this._aggregationType,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,splitByFieldInfos:this.splitByFieldInfos}}generateChartTitle(){return this.layerInfo!==void 0?se(this._config,this.layerInfo,this.commonStrings):""}generateYAxisTitle(){return this.layerInfo!==void 0?I({config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,numericFields:d(this._config),aggregationType:y(this._config)}):""}};l([o],n.prototype,"aggregationType");l([o],n.prototype,"setAssignToSecondValueAxis");l([o],n.prototype,"setSeriesToSecondaryYAxis");l([o],n.prototype,"setSortOrder");l([o],n.prototype,"setDataFilters");l([o],n.prototype,"orderByList");l([o],n.prototype,"binTemporalData");l([o],n.prototype,"setSeriesName");l([o],n.prototype,"setSeriesColor");l([o],n.prototype,"setOrderOfSeries");l([o],n.prototype,"stackedType");l([o],n.prototype,"moveSeries");l([o],n.prototype,"moveCustomSortValuesInOrderByList");l([o],n.prototype,"nullCategory");l([o],n.prototype,"resetConfig");var We=[pe,le,ge,ce,Be,he,Te,de,ye,g,xe,me,Fe,fe,ue,Se,_e,Ie,te];R(n,We);return{a:ve,b:be,c:ke,d:Ne,e:n}},a,b,c,d,e,g,h,i,j,l,n,o,p,q,r)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as i,b as n,c}from"./P3AYFJRV.js";import{k as r}from"./QP5UAIC6.js";async function d(t){let a="config"in t?n(t.config):t.chartType,o;if(!("layer"in t)&&!("iLayer"in t)&&"config"in t&&t.config.iLayer===void 0)throw new Error("The source is missing. You can provide it to createModel through either `iLayer`, `layer`, or by setting the `config.iLayer` property.");switch(a){case r.LineChart:{let{LineChartModel:e}=await import("./CQORXOQS.js").then(m=>m.default.then(e=>({LineChartModel:e})));o=new e;break}case r.ComboBarLineChart:{let{ComboBarLineChartModel:e}=await import("./H4UKMJ3M.js").then(m=>m.default.then(e=>({ComboBarLineChartModel:e})));o=new e;break}case r.PieChart:{let{PieChartModel:e}=await import("./KRNF2XCU.js").then(m=>m.default.then(e=>({PieChartModel:e})));o=new e;break}case r.Histogram:{let{HistogramModel:e}=await import("./GCPA466R.js").then(m=>m.default.then(e=>({HistogramModel:e})));o=new e;break}case r.Scatterplot:{let{ScatterplotModel:e}=await import("./CB3BW4H5.js").then(m=>m.default.then(e=>({ScatterplotModel:e})));o=new e;break}case r.BoxPlot:{let{BoxPlotModel:e}=await import("./2TV4NKY2.js").then(m=>m.default.then(e=>({BoxPlotModel:e})));o=new e;break}case r.Gauge:{let{GaugeModel:e}=await import("./MFJINTU5.js").then(m=>m.default.then(e=>({GaugeModel:e})));o=new e;break}case r.RadarChart:{let{RadarChartModel:e}=await import("./O34ACKBX.js").then(m=>m.default.then(e=>({RadarChartModel:e})));o=new e;break}case r.HeatChart:{let{HeatChartModel:e}=await import("./IJKFUMKC.js").then(m=>m.default.then(e=>({HeatChartModel:e})));o=new e;break}case r.BarChart:default:{let{BarChartModel:e}=await import("./353KIT3L.js").then(m=>m.default.then(e=>({BarChartModel:e})));o=new e;break}}if(await o?.setup({layer:"layer"in t?t.layer:void 0,iLayer:"iLayer"in t?t.iLayer:void 0,config:"config"in t?t.config:void 0,commonStrings:"commonStrings"in t?t.commonStrings:void 0}),a!==void 0&&c(o,a))return o;{let e=i(o.chartType);throw new Error(`Please check the arguments provided to \`createModel\`. The generated model's type (\`${e}\`) does not match the type specified by either the \`chartType\` or the \`config\` argument (\`${a}\`).`)}}export{d as a};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import b from"./6CPDF77P.js";import a from"./LBX6U6EK.js";import{d as p,r as D,z as F}from"./4GHJREG3.js";import{e as K}from"./WOGALV3T.js";import{Ba as Q,O as $,a as W,ka as Y,o as V,p as z}from"./ZTVR6KBG.js";import{f as H}from"./KX7KGXKQ.js";import{d as n,q as h}from"./NGXRBJKL.js";import{d as A,h as R}from"./5SYHQWPP.js";import{I as N}from"./225VUGML.js";import{a as S,c as J}from"./QYRHZJH3.js";import{a as u,b as x,d as j,h as v,k as B,p as w,q as M,v as y}from"./PWJBGZPW.js";export default $arcgis.t(([{B:ee,G:L,Mb:C,Ob:se,Qb:ne,S:U,T:q,_a:oe,_b:T,a:X,ac:I,cc:ae,ha:te,ia:ie,kc:_,lc:le,mc:ce,na:re,pc:de,qc:ue,sc:b,v:Z,wc:pe},{a:ye,e:fe,f:me,h:ge}])=>{var E=(i=>(i.NONE="none",i.ROTATE="rotate",i.STAGGER="stagger",i.WRAP="wrap",i))(E||{});function ze(i){let{configToUpdate:e,chartContainer:r,layer:t}=i,o=n(e);if(t?.capabilities?.queryAttributeBins?.supportsFirstDayOfWeek===!0&&(!("firstDayOfWeek"in e)||e.firstDayOfWeek===void 0||e.firstDayOfWeek===null)){let{lang:s}=A(r??document.documentElement);try{o.firstDayOfWeek=X.local().setLocale(s.replaceAll("_","-")).startOf("week",{useLocaleWeeks:!0}).weekday}catch{}}return o}function $e(i){let e=n(i);if(U(e)){let r=e.series[0],t=e.chartRenderer?.classBreakInfos;if(t?.length&&r?.classBreaksRules){r.classBreaksRules.colorRampInfo=r.classBreaksRules.colorRampInfo??{};let{name:o,flipped:s}=r.classBreaksRules.colorRampInfo,a=fe(t,ge.esriColorRamps);if(!o&&a?.name&&(r.classBreaksRules.colorRampInfo.name=a.name),s===void 0&&a){let c=ye({numberOfClassBreaks:t.length,selectedColorRamp:a});c.length===t.length&&(r.classBreaksRules.colorRampInfo.flipped=me(c,t))}}}return e}function Ye(i){let e=n(i);return h(i.axes)||(e.axes=i.axes?.map(r=>{let t=r;return delete t.calculateAutomaticMaximum,delete t.calculateAutomaticMinimum,t.title?.content.font?.style!==void 0&&(t.title.content.font.style=t.title.content.font.style.toLowerCase()),t})),e}function Qe(i){let e=n(i);return h(i.series)||(e.series=i.series.map((r,t)=>{let o=r;r.id===void 0&&(o.id=`Series ${Date.now()}-${t}`);let s=S(i.series,t);return(s===u.BarSeries||s===u.LineSeries||s===u.RadarSeries)&&o.query?.outStatistics?.[0]?.statisticType==="median"&&(o.query.outStatistics[0].statisticType=x.ContinuousPercentile),s===u.BarSeries&&o.multipleBarType!==void 0&&(o.stackedType=o.multipleBarType,delete o.multipleBarType),s===u.PieSeries&&o.sliceGrouping!==void 0&&(o.sliceGrouping.sliceId=V.defaultGroupOfSlicesId,o.sliceGrouping.groupName!==void 0&&(o.sliceGrouping={...o.sliceGrouping,label:o.sliceGrouping.groupName},delete o.sliceGrouping.groupName),o.sliceGrouping.groupSliceSymbol!==void 0&&(o.sliceGrouping={...o.sliceGrouping,fillSymbol:o.sliceGrouping.groupSliceSymbol},delete o.sliceGrouping.groupSliceSymbol)),o})),e}function ve(i,e){let r=[];return i.forEach(t=>{if(!D(t)){let o=F(t,!1);if(o.fieldToSort!==void 0){let s=T({queryObject:e,fieldToMatch:o.fieldToSort});s!==void 0&&r.push(o.orderBy===void 0?s:`${s} ${o.orderBy}`)}}}),r}async function Je(i){let{configToUpdate:e,layer:r,abortSignal:t}=i,o={...e},s=r;if(!s){let a=re(e)?e.iLayer:e.dataSource?.layer;a&&(s=await C(a,t))}if(s){let a=b(o.series),c=S(o.series),O=o.series&&o.series.length>0&&o.series[0].x.trim()===""||c===u.GaugeSeries&&!oe(e)||a===p.PieFromFields||a===p.BarAndLineFromFields||a===p.BoxPlotC1MonoField||a===p.BoxPlotC5MonoFieldAndSplitBy||a===p.BoxPlotC2MultiFields||a===p.BoxPlotC6MultiFieldsAndSplitBy,Ve=c===u.ScatterSeries||c===u.HeatSeries||a===p.BarAndLineNoAggregation||a===p.BarAndLineSplitByNoAggregation||a===p.BoxPlotC1MonoField||a===p.BoxPlotC5MonoFieldAndSplitBy||a===p.BoxPlotC3MonoFieldAndCategory||a===p.BoxPlotC7MonoFieldAndCategoryAndSplitBy||a===p.PieNoAggregation;if(o.series=e.series.map(d=>{let l={...d};if(O||(l.x=T({queryObject:s,fieldToMatch:d.x})),"y"in l&&Ve){let f=l.y;if(Array.isArray(f)){let m=I({fieldsList:f,queryObject:s});m!==void 0&&"y"in l&&(l.y=m)}else"y"in l&&typeof f=="string"&&(l.y=T({queryObject:s,fieldToMatch:f}))}if(d.query!==void 0){let{where:f,groupByFieldsForStatistics:m,outStatistics:g}=d.query;if(m=I({fieldsList:m,queryObject:s}),g!==void 0&&(g=g.map(P=>{let k={...P};return k.onStatisticField=T({queryObject:s,fieldToMatch:P.onStatisticField}),k})),f!==void 0&&a===p.BarAndLineSplitBy){let P=de(d.query?.where),k=ue({where:d.query?.where,normalize:!1,escape:!1});f=`${T({queryObject:s,fieldToMatch:P})}=${k}`}l.query!==void 0&&(f!==void 0&&(l.query.where=f),m!==void 0&&(l.query.groupByFieldsForStatistics=m),g!==void 0&&(l.query.outStatistics=g))}return l}),o.series[0]?.query!==void 0){let d=o.series[0].query,{orderByFields:l}=d;l!==void 0&&l.length>0&&(l=ve(l,s),l.length>0&&d.orderByFields!==void 0&&(o.series[0].query.orderByFields=l))}if(o.orderOptions?.orderByFields!==void 0){let{orderByFields:d}=o.orderOptions;d!==void 0&&d.length>0&&(d=ve(d,s),d.length>0&&(o.orderOptions.orderByFields=d))}if(c===u.GaugeSeries&&e.axes?.[0]!==void 0){let{minimumFromField:d,maximumFromField:l}=e.axes[0];if(d!==void 0){let f=typeof d=="string"?d:d.onStatisticField,m=T({queryObject:s,fieldToMatch:f}),g=d;typeof e.axes[0].minimumFromField=="string"?g=m:typeof d=="object"&&(g={...d,onStatisticField:m}),e.axes[0].minimumFromField=g}if(l!==void 0){let f=typeof l=="string"?l:l.onStatisticField,m=T({queryObject:s,fieldToMatch:f}),g=l;typeof e.axes[0].maximumFromField=="string"?g=m:typeof l=="object"&&(g={...l,onStatisticField:m}),e.axes[0].maximumFromField=g}}}return o}function Ke(i){let e=n(i);if(!h(i.series)&&S(i.series)===u.BoxPlotSeries){let r=e.series[0];r&&(r.showOutliers!==void 0&&(i.showOutliers===void 0&&(e.showOutliers=r.showOutliers),delete r.showOutliers),r.standardizeValues!==void 0&&(i.standardizeValues===void 0&&(e.standardizeValues=r.standardizeValues),delete r.standardizeValues),r.showMean!==void 0&&(i.showMean===void 0&&(e.showMean=r.showMean),delete r.showMean))}return e}function Xe(i){let e={orderType:y.Category,orderBy:v.Ascending},r=i.query?.orderByFields?.[0];if(r!==void 0){let{outStatisticFieldName:t,statisticType:o}=i.query?.outStatistics?.[0]??{},s=F(r);t!==void 0&&s.fieldToSort===t&&o!==void 0&&(o===x.Average||o==="mean"?e.orderType=y.Mean:o===x.ContinuousPercentile&&(e.orderType=y.Median)),e.orderBy=s.orderBy??v.Ascending}return e}function Ze(i){let e=!1,r=Array.from(new Set(i.series.map(t=>t.type)));return r.length===2&&r.includes(u.BoxPlotSeries)&&r.includes(u.LineSeries)&&(e=i.series.find(t=>t.type===u.LineSeries)?.query?.outStatistics?.[0]!==void 0),e}function et(i){let e=n(i);if(!h(e.series)&&S(i.series)===u.BoxPlotSeries){let r=b(i.series);if(e.orderOptions?.data===void 0&&r!==p.BoxPlotC2MultiFields&&r!==p.BoxPlotC1MonoField){let t=Xe(i.series[0]);t.orderType!==void 0&&(e.orderOptions??={},e.orderOptions.data={orderType:t.orderType,orderBy:t.orderBy})}if(e.series=i.series.map(t=>{let o=t;return h(o.x?.trim())&&(o.x=z),delete o.query?.orderByFields,o}),Ze(e)){e.showMean=!0;let t=e.series.find(o=>o.type===u.BoxPlotSeries);e.series.forEach(o=>{o.type===u.LineSeries&&(delete o.query?.groupByFieldsForStatistics,delete o.query?.outStatistics,delete o.query?.orderByFields,t&&(o.y=t.y))})}e.series=i.series.map(t=>{let o=t;return delete o.query?.outStatistics,o})}return e}function tt(i){let e=n(i);return e.legend!==void 0&&!Number.isFinite(e.legend.maxHeight)&&(e.legend.maxHeight=void 0),e}function it(i){let e=n(i);return"dataSource"in e&&e.dataSource.layer&&(e.iLayer=e.dataSource.layer,delete e.dataSource),e}function rt(i){let e=n(i),r=new Set,t=e.id??"";return r.add(t),e.series.forEach(o=>{let s=o.id;r.has(s)&&(s=`${s}_${Date.now()}`,o.id=s),r.add(s)}),e}async function ot(i){let{configToUpdate:e,layer:r,chartContainer:t,abortSignal:o}=i,s=n(e);if(s=Ye(s),s=Qe(s),s=await Je({configToUpdate:s,layer:r,abortSignal:o}),q(s)){let a=Ke(s);s=et(a)}return s=tt(s),s=rt(s),U(s)&&!K(r)&&(s=ze({configToUpdate:s,chartContainer:t,layer:r})),s}function st(i){let e=n(i),r=e.series[0];if(J(r)&&r.nullCategory?.symbol){let t=r.nullCategory.symbol,o=t.type;e.series?.forEach(s=>{"nullCategory"in s&&s.nullCategory&&o===H.SFS&&(s.nullCategory.fillSymbol=t)}),delete r.nullCategory.symbol}return e}function nt(i){let e=n(i);return e?.orderOptions?.orderByFields!==void 0&&b(i.series)===p.PieFromFields&&(e.orderOptions.orderByFields=i?.orderOptions?.orderByFields?.map(r=>{let t=n(r);return r!==void 0&&r.includes("arcgis_charts_pie_category_from_fields_name")&&(t=r.replace("arcgis_charts_pie_category_from_fields_name",L)),t})),e}function at(i){let e=n(i);if(!h(i.series)&&e.axes?.[0]!==void 0&&S(i.series)===u.GaugeSeries&&i.axes?.[0]!==void 0){let r=i.axes[0];r.ticks!==void 0&&Object.hasOwn(r.ticks,"spacing")&&delete r.ticks.spacing,e.axes[0]=r}return e}function lt(i){let e=n(i),{extent:r}=e.series[0]?.query??{};return r!==void 0&&(e.dataFilters={...e.dataFilters,geometry:r},e.series.forEach(t=>{"query"in t&&"extent"in t.query&&delete t.query.extent})),e}function Ne(i){let e=n(i);return h(i.series)||(te(i)&&i.rotated===void 0&&(e.rotated=i.series[0].rotated??Y()),e.series.forEach(r=>{r.rotated!==void 0&&delete r.rotated})),e}function ct(i){let e=n(i),r=i.dataSource;return"dataSource"in e&&!h(r)&&(r.type==="featureLayer"&&e.dataSource!==void 0&&(e.dataSource.type="layer"),"featureLayer"in r&&(e.dataSource.layer=r.featureLayer,delete e.dataSource.featureLayer)),e}function dt(i){let e=n(i);if("dataSource"in i){let r=i.dataSource;if(r.filter!==void 0&&r.filter.trim()!==""){let t=ee([r.filter,e.dataFilters?.where]);e.dataFilters={...e.dataFilters,where:t},delete e.dataSource.filter}}return e}function ut(i){return i!=="originalValue"}function Re(i){let e;switch(i){case"mean":e=y.Mean;break;case"median":e=y.Median;break;case"category":e=y.Category;break}return e}function pt(i){let e=n(i);if(!h(i.series)&&S(i.series)===u.PieSeries){let r=e.series[0];if(r){if(r.sortLabelsBy==="originalValue")e.sortLabelsBy=r.sortLabelsBy;else if(r.sortLabelsBy!==void 0&&e.orderOptions?.data===void 0){let t=G(e);t!==void 0&&(e.orderOptions??={},e.orderOptions.data=t)}r.sortLabelsBy&&delete r.sortLabelsBy}}return e}function yt(i){let e=n(i);return h(i.series)||(ie(i)&&i.stackedType===void 0&&(e.stackedType=i.series[0].stackedType??Q()),e.series.forEach(r=>{"stackedType"in r&&delete r.stackedType})),e}function ft(i){let e=n(i),r=i.sortOptions?.sortSeriesBy;return e.orderOptions===void 0&&typeof r=="string"&&(e.orderOptions??={},e.orderOptions.series={orderBy:r==="DESC"?v.Descending:v.Ascending}),e}function mt(i){let e=n(i);return e.colorMatch===void 0&&e.series[0]?.colorType!==void 0&&(e.colorMatch=e.series[0]?.colorType===j.Match),e.series.forEach(r=>{r.colorType!==void 0&&delete r.colorType}),e}function gt(i){let e=n(i);if(e.sortDataBy!==void 0){if(e.orderOptions?.data===void 0){let r=i.sortDataBy,t=Re(r?.sortType);t&&t!==y.MultiAxes&&(e.orderOptions??={},e.orderOptions.data={orderType:t,orderBy:r?.sortOrder??v.Ascending})}delete e.sortDataBy}return e}function vt(i){let e=n(i);return e.axes?.forEach(r=>{r!==void 0&&r.scrollbarVisible!==void 0&&r.scrollbar?.visible===void 0&&(r.scrollbar={...r.scrollbar,visible:r.scrollbarVisible},delete r.scrollbarVisible)}),e}function ht(i){let e=n(i),r=e.series[0]?.query?.orderByFields;if(r!==void 0&&r.length>0&&e.orderOptions?.orderByFields===void 0){e.orderOptions??={};let t=!0;if(r.length===1){let{fieldToSort:o,orderBy:s}=F(r[0]),a;o===i.series[0].x||o===L?a=y.Category:"y"in i.series[0]&&o===i.series[0].y&&(a=y.YValue),a&&a!==y.MultiAxes&&(t=!1,e.orderOptions.data===void 0&&(e.orderOptions.data={orderType:a,orderBy:s?.toUpperCase()==="DESC"?v.Descending:v.Ascending}))}t&&(e.orderOptions.orderByFields=r)}return e.series.forEach(t=>{delete t.query?.orderByFields}),e}function G(i){let e,r=i.orderOptions?.orderByFields?.[0];if(i.series?.length>0){let t=S(i.series),o=b(i.series);if(t!==u.PieSeries&&o!==p.BarAndLineFromFields&&o!==p.BoxPlotC2MultiFields&&(r=r??i.series[0].x),r&&!D(r)){let{fieldToSort:s,orderBy:a}=F(r),c;s===i.series[0].x||s===L?c=y.Category:"y"in i.series[0]&&s===i.series[0].y&&(c=y.YValue),c&&c!==y.MultiAxes&&(e={orderType:c,orderBy:a?.toUpperCase()==="DESC"?v.Descending:v.Ascending})}}return e}function St(i){let e=n(i),r=i,t=i,o=i,s=i,a=i;if(e){if(e.orderOptions?.series===void 0&&r.sortOptions?.sortSeriesBy!==void 0&&(e.orderOptions??={},e.orderOptions.series={preferLabel:ut(t.sortLabelsBy??r.sortOptions.sortSeriesBy.sortType),orderBy:r.sortOptions.sortSeriesBy.sortOrder??v.Ascending}),t.sortLabelsBy==="originalValue"||s.orderOptions?.data?.preferDataLabel===!1||a.orderOptions?.data?.preferLabel===!1)e.orderOptions?.data&&delete e.orderOptions.data;else if(e.orderOptions?.data===void 0)if(S(e.series)===u.BoxPlotSeries){if(t.sortLabelsBy||o.sortOptions?.sortDataBy!==void 0){let c=Re(o.sortOptions?.sortDataBy?.sortType);c&&c!==y.MultiAxes&&(e.orderOptions??={},e.orderOptions.data={orderType:c,orderBy:o.sortOptions?.sortDataBy?.sortOrder??v.Ascending})}}else{let c=G(e);c!==void 0&&(e.orderOptions??={},e.orderOptions.data=c)}"sortLabelsBy"in e&&delete e.sortLabelsBy,"sortOptions"in e&&delete e.sortOptions}return e}function Bt(i){let e=n(i);if(e){let r=b(e.series);if((r===p.BarAndLineFromFields||r===p.PieFromFields)&&e.orderOptions?.data===void 0&&e.orderOptions?.orderByFields!==void 0){let t=G(e);t!==void 0&&(e.orderOptions??={},e.orderOptions.data=t,delete e.orderOptions.orderByFields)}}return e}function Tt(i){let e=n(i);return e.horizontalAxisLabelsBehavior===E.NONE&&(e.horizontalAxisLabelsBehavior=w.Hide),e.verticalAxisLabelsBehavior===E.NONE&&(e.verticalAxisLabelsBehavior=w.Hide),e}function xt(i){let e=n(i),r=e.series[0];if(r&&!r.temporalBinning&&pe(e.series[0])&&("timeIntervalSize"in r||"timeIntervalUnits"in r||"timeAggregationType"in r||"trimIncompleteTimeInterval"in r||"nullPolicy"in r)){if(r.temporalBinning={},r.timeIntervalSize!==void 0&&(r.temporalBinning.size=r.timeIntervalSize,delete r.timeIntervalSize),r.timeIntervalUnits){let t;switch(r.timeIntervalUnits){case"esriTimeUnitsSeconds":t=B.Second;break;case"esriTimeUnitsMinutes":t=B.Minute;break;case"esriTimeUnitsHours":t=B.Hour;break;case"esriTimeUnitsDays":t=B.Day;break;case"esriTimeUnitsWeeks":t=B.Week;break;case"esriTimeUnitsMonths":t=B.Month;break;case"esriTimeUnitsYears":t=B.Year;break}t!==void 0&&(r.temporalBinning.unit=t),delete r.timeIntervalUnits}r.timeAggregationType&&(r.temporalBinning.timeAggregationType=r.timeAggregationType,delete r.timeAggregationType),r.trimIncompleteTimeInterval!==void 0&&(r.temporalBinning.trimIncompleteTimeInterval=r.trimIncompleteTimeInterval,delete r.trimIncompleteTimeInterval),r.nullPolicy&&(r.temporalBinning.nullPolicy=r.nullPolicy,delete r.nullPolicy)}return e}function bt(i){let e=n(i);return e.series.forEach(r=>{r.query?.outStatistics?.forEach(t=>{t.statisticType==="percentile_cont"?t.statisticType=x.ContinuousPercentile:t.statisticType==="percentile_disc"&&(t.statisticType=x.DiscretePercentile)})}),e}function Ot(i){let e=n(i);return e.subtitle===void 0&&e.subTitle&&(e.subtitle=e.subTitle),delete e.subTitle,e}function Ft(i){let e=n(i),r=e.series[0];return r?.temporalBinning&&delete r.temporalBinning?.type,e}function Ct(i){let e=n(i),r=e.series[0],t=i;return t.series[0]?.xTemporalBinning&&(r.xTemporalBinning={...t.series[0]?.xTemporalBinning,type:u.CalendarDateParts}),t.series[0]?.yTemporalBinning&&(r.yTemporalBinning={...t.series[0]?.yTemporalBinning,type:u.CalendarDateParts}),e}function Pt(i){let e=n(i);return e=nt(e),e}function he(i){let e=n(i);return e=at(e),e}function Se(i){let e=n(i);return e=lt(e),e}function Be(i){let e=n(i);return e=Ne(e),e}function Te(i){let e=n(i);return e=ct(e),e}function xe(i){let e=n(i);return e=dt(e),e}function be(i){let e=n(i);return e=pt(e),e}function Oe(i){let e=n(i);return e=ft(e),e}function Fe(i){let e=n(i);return e=mt(e),e}function Ce(i){return vt(i)}function Pe(i){let e=n(i);return q(e)&&(e=gt(e)),e}function ke(i){return yt(i)}function Ae(i){return St(i)}function Le(i){return it(i)}function we(i){return Bt(i)}function Me(i){return Tt(i)}function De(i){return xt(i)}function Ue(i){return bt(i)}function qe(i){let e=n(i);return e=Ne(e),Ot(e)}function Ie(i){let e=n(i);return e=Ft(e),e}function _e(i){let e=n(i);return e=Ct(e),e}function Ee(i){let e=n(i);return e=$e(e),e}function Ge(i){let e=n(i);return S(e.series)===u.BarSeries&&(e=st(e)),e}function kt(i){let{versionsToConvert:e,configToUpdate:r}=i,t=n(r);return e.length>0&&t!==void 0&&(t=ht(t),e.includes(_)||e.includes(le)?(t=Pt(t),t=he(t),t=Se(t),t=Be(t),t=Te(t),t=xe(t),t=be(t),t=Oe(t),t=Fe(t),t=Ce(t),t=Pe(t),t=ke(t),t=Ae(t),t=Le(t),t=we(t),t=Me(t),t=De(t),t=Ue(t),t=qe(t),t=Ie(t),t=_e(t),t=Ee(t),t=Ge(t)):e.forEach(o=>{if(t!==void 0)switch(o){case"1.0.1":t=he(t);break;case"3.4.0":t=Se(t);break;case"4.0.0":t=Be(t);break;case"4.0.1":t=Te(t);break;case"6.4.0":t=xe(t);break;case"7.5.1":t=be(t);break;case"8.0.0":t=Oe(t);break;case"9.2.0":t=Fe(t);break;case"9.7.0":t=Ce(t);break;case"10.0.0":t=Pe(t);break;case"11.0.0":t=ke(t);break;case"14.0.1":t=Ae(t);break;case"16.0.0":t=Le(t);break;case"16.1.0":t=we(t);break;case"18.1.3":t=Me(t);break;case"20.1.0":t=De(t);break;case"21.0.0":t=Ue(t);break;case"23.2.0":t=qe(t);break;case"24.7.0":t=Ie(t);break;case"24.8.0":t=_e(t);break;case"25.0.0":t=Ee(t);break;case"25.1.0":t=Ge(t);break}}),t.version=W),t}async function je(i,e,r,t){let o=i;if(i){let s=Z(e);await s?.load({signal:t}),o=await ot({configToUpdate:i,layer:s,chartContainer:r,abortSignal:t});let a=i.version??_,{versionStatus:c,versions:O}=ce(a);(c===M.Older||c===M.Unrecognized)&&(o=kt({versionsToConvert:O,configToUpdate:o}))}return o}var We=30;function At(i,e,r,t){let o=We-1,s=Math.max(i-o,0);if(t===void 0&&(t=i-1),!(t<s||t>i))return t===i?e:r[t-s]}var He=class extends EventTarget{constructor(...e){super(),this.dirtyAsyncSetters=[],this.asyncConfigUpdateInProgress=!1,this.pendingUpdates=0,this._revision=0,this._configHistory=[void 0],this.dataStore={},this.asyncUpdatesPromise=new Promise(r=>{this.resolveSetup=r}),this.emitConfigUpdate=r=>{this._revision+=1,this._configHistory.push(n(this._config)),this._configHistory.length>We&&this._configHistory.shift(),this.dispatchEvent(new CustomEvent("arcgisChartsModelConfigChange",{detail:{config:this._config,setterName:r}}))},this.guardSetterFromAsyncOverwrite=async r=>{r(),this.asyncConfigUpdateInProgress&&(await this.asyncUpdatesPromise,r())}}get chartType(){return this._chartType}get revision(){return this._revision}recall(e){return At(this._revision,this._config,this._configHistory,e)}isSameChartAs(e){let r=e?.layer;return r!==void 0&&this._config.id===e?.chartId&&this.layerInfo?.layer.id===r.id}async update(){await this.asyncUpdatesPromise}async loadConfigFromLayer(e){let{layer:r,iLayer:t,config:o,commonStrings:s}=e;this.commonStrings=s??await R(A(document.documentElement).t9nLocale,N("./assets/common/t9n"),"messages.");let a=r;if(!a&&t?a=await C(t):!a&&o?.iLayer&&(a=await C(o.iLayer)),a){await ae(a);let c=se(a,!0),O=ne(a).idField;this.layerInfo={layer:a,layerFieldsInfo:c,objectIdField:O}}this._config=o?await je(o):this.generateDefaultConfig(),this._config.legend!==void 0&&this._config.legend?.title===void 0&&(this._config.legend.title=$().title),t&&(this._config.iLayer=t)}startAsyncUpdate(){this.pendingUpdates===0&&(this.asyncConfigUpdateInProgress=!0,this.asyncUpdatesPromise=new Promise(e=>{this.resolveSetup=e})),this.pendingUpdates+=1}finishAsyncUpdate(){this.pendingUpdates-=1,this.pendingUpdates===0&&(this.asyncConfigUpdateInProgress=!1,this.resolveSetup?.())}};function Qt(i,e,r){let t=r.set,o=r.value;return t&&(r.set=function(s){this.guardSetterFromAsyncOverwrite(()=>{t.call(this,s),this.emitConfigUpdate(e)})}),o&&(r.value=function(...s){this.guardSetterFromAsyncOverwrite(()=>{o.apply(this,s),this.emitConfigUpdate(e)})}),r}return{a:je,b:We,c:At,d:He,e:Qt}},a,b)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import a from"./LBX6U6EK.js";import{C as E,j as T,n as F,r as $}from"./4GHJREG3.js";import{e as b}from"./WOGALV3T.js";import{F as q,H as B,J as k,Z as V,c as j,za as C}from"./ZTVR6KBG.js";import{a as M}from"./QYRHZJH3.js";import{a as g,b as y,f as A,h as w}from"./PWJBGZPW.js";export default $arcgis.t(([{substitute:H},{B:h,Qb:O,Xb:P,Yb:L,ea:I,ga:N,qc:U,xa:S}])=>{var ie=t=>{let{config:e,axisIndex:i,callback:a}=t;[i!==void 0?e.axes?.[i]:e.axes].flat().forEach((s,r)=>{s!==void 0&&a(s,i!==void 0?i:r)})},te=t=>{let{config:e,axisIndex:i,callback:a}=t;[i!==void 0?e.axes?.[i]:e.axes].flat().forEach(s=>{s!==void 0&&S(s.valueFormat)&&a(s)})};function se(t,e,i){let a=t?.axes?.[e];a?.title!==void 0?a.title.content.text=i:a!==void 0&&(a.title=B({text:i,visible:!0,font:q(j.AxisTitle)}))}function re(t){let{config:e,layerInfo:i,commonStrings:a,numericFields:s,aggregationType:r}=t,o="";if(e)if(T(e)===A.Stacked100)o=a.utilsStrings.statistics.percent;else{let n=C(r,a);if(e.series[0]?.type===g.HeatSeries)o=F(i.layerFieldsInfo,e.series[0].y);else if(s.length===1){let f=F(i.layerFieldsInfo,s[0]),u=O(i.layer).idField;r===y.NoAggregation?o=f:r===y.Count&&u!==void 0&&s[0]===u?o=a.utilsStrings.statistics.count:o=H(a.axisLabels.aggregationOfFieldName,{aggregation:n,fieldName:f})}else s.length>1&&(r===y.NoAggregation?o=a.axisLabels.values:o=H(a.axisLabels.aggregationOfValues,{aggregation:n}))}return o}var X=(t,e,i)=>t.axes?.[e]??V(i,t.type)[e],G=t=>{let{config:e,axis:i,axisIndex:a}=t;e.axes!==void 0&&(e.axes[a]=i)},oe=t=>{let{config:e,axisIndex:i,isMax:a}=t,s=Number.NaN;return a?s=e.axes?.[i]?.maximum:s=e.axes?.[i]?.minimum,s??Number.NaN},D=t=>{let{config:e,value:i,axisIndex:a,isMax:s}=t,r=e?.axes?.[a];r!==void 0&&(s?r.maximum=i:r.minimum=i)},ne=t=>t.axes?.[0]?.valueFormat??k(),le=(t,e,i)=>{let a=X(t,0,e);if(a!==void 0&&i!==void 0){let s={...a,valueFormat:i};G({config:t,axis:s,axisIndex:0})}},ce=(t,e,i)=>{let a=t.axes?.[e];a!==void 0&&(a.integerOnlyValues=i)},R=t=>{let e=M(t.series);return e===g.BarSeries||e===g.ComboLineAndBarSeries||e===g.LineSeries},W=t=>{let{axisIndex:e,config:i,isMultiAxis:a}=t,s=!1;return e===0||e===1&&a?s=!0:e===2&&(s=R(i)),s},ge=t=>{let{axisIndex:e,func:i,config:a}=t;return W({axisIndex:e,config:a,isMultiAxis:!0})?i(e):void 0},K=(t,e)=>{let i,a=e.axes?.[t]?.valueFormat;return(t===0||t>=1&&S(a))&&(i=a),i},fe=t=>{let{config:e,commonStrings:i,valueFormat:a,axisIndex:s=0}=t,r=X(e,s,i);if(r!==void 0&&a!==void 0){let o={...r,valueFormat:a};G({config:e,axis:o,axisIndex:s})}},ue=(t,e)=>t.axes?.[e]?.isLogarithmic??!1,xe=t=>{let{config:e,isLogarithmic:i,axisIndex:a}=t,s=e.axes?.[a];s&&(s.isLogarithmic=i,D({config:e,value:null,axisIndex:a,isMax:!0}),D({config:e,value:null,axisIndex:a,isMax:!1}))},de=t=>{let{config:e,scrollbar:i,axisIndex:a}=t;e.axes?.[a]!==void 0&&(e.axes[a].scrollbar=i)};async function me(t){let{config:e,layer:i,xAxisField:a,splitByField:s,layerFieldsInfo:r,aggregationFields:o,fetchNullValues:n,errorStrings:f}=t,u=r.filter(v=>v.name===s)[0]?.type,x=n!==!0?`${s} IS NOT NULL`:"",d=a&&n!==!0?`${a} IS NOT NULL`:"",{where:l}=e?.dataFilters??{},Q={where:h([l,x,d]),orderByFields:$(s)?[]:[`${s} ${w.Ascending}`],geometry:e?.dataFilters?.geometry},p="";o?.length===0?p=O(i).idField:o&&([p]=o);let m=i?b(i)?await N({layer:i,category:e?.series[0].x??"",splitByField:s}):await I({queryObject:i,category:e?.series[0].x??"",splitByField:s,queryConfig:Q,errorStrings:f}):[];if(m=m.slice(0,500),e){let v=e?.series.map(c=>U({where:c.query?.where})?.toString()??"").filter(c=>c!==void 0&&c!=="");m=E({arrayA:m,arrayB:v,getKey:c=>c===null?null:c?.toString()})}return{categoriesArray:m,splitByFieldType:u,numericalField:p}}function ye(t,e){let i=e==="";for(let a of t)if(e===a.name){i=!0;break}return i}function pe(t,e){let i=P(t),a=e.length===0,s=0;for(let r of e){for(let o of i)if(r===o&&(s+=1),s===e.length){a=!0;break}if(a)break}return a}function ve(t,e){e.forEach(i=>{Object.getOwnPropertyNames(i.prototype).forEach(a=>{Object.defineProperty(t.prototype,a,Object.getOwnPropertyDescriptor(i.prototype,a)||Object.create(null))})})}async function Fe(t){let{layerInfo:e,config:i,category:a,errorStrings:s}=t,{layer:r}=e,{where:o}=i?.dataFilters??{},{fetchNullValues:n}=i?.series?.[0]?.query??{},f=n!==!0?`${a} IS NOT NULL`:"",u={where:h([o,f]),orderByFields:[],geometry:i?.dataFilters?.geometry},x;return b(r)?x=(await N({layer:r,category:a,fetchNullValues:n})).map(d=>{let l=String(d);return L({queryObject:e.layer,fieldName:a,fieldValue:l})??l}):x=(await I({queryObject:r,category:a,queryConfig:u,errorStrings:s})).map(d=>{let l=String(d);return L({queryObject:e.layer,fieldName:a,fieldValue:l})??l}),x}function be(t){return t!==void 0&&K(0,t)?.type===g.CategoryAxisFormat&&K(1,t)?.type===g.CategoryAxisFormat}return{a:ie,b:te,c:se,d:re,e:oe,f:D,g:ne,h:le,i:ce,j:ge,k:K,l:fe,m:ue,n:xe,o:de,p:me,q:ye,r:pe,s:ve,t:Fe,u:be}},"intl",a)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{n as t}from"./RPUEIRTH.js";import{j as s}from"./QP5UAIC6.js";var g={addGuide:"add-guide",noMessages:"no-messages"};function i(o,n,e){let d=t(e)?e.getXGuidesLength()??0:0;return n===s.X?o:d+o}export{g as a,i as b};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import b from"./LBX6U6EK.js";import{d as $}from"./4GHJREG3.js";import{e as B}from"./WOGALV3T.js";import{p as C}from"./ZTVR6KBG.js";import{r as g}from"./NGXRBJKL.js";import{a,c as f,e as I}from"./QP5UAIC6.js";import{a as O}from"./QYRHZJH3.js";import{a as n,b as m,h as c,v as d}from"./PWJBGZPW.js";export default $arcgis.t(([{$b:S,G:L,H:T,Hb:b,I:D,J:N,Qb:h,S:_,sc:v,v:F}])=>{function k(e,s){let r;return s===d.Category&&Array.isArray(e)?r=a.customSort:s===d.Category?r=e===c.Ascending?a.xAxisAsc:a.xAxisDesc:e===c.Ascending?r=a.yAxisAsc:r=a.yAxisDesc,r}function Z(e,s){let r;return s===d.Category&&Array.isArray(e)?r=f.customSort:r=e===c.Ascending?f.Asc:f.Desc,r}var E=e=>{let s=e.orderOptions?.data&&"orderBy"in e.orderOptions.data?e.orderOptions.data.orderBy:c.Ascending;return k(s,e.orderOptions?.data?.orderType??d.Category)},R=e=>{let s=O(e.series),r=!1;return(s===n.BarSeries||s===n.LineSeries)&&(r=E(e)===a.customSort),r},ee=e=>{let s=[],r=e.orderOptions?.data?.orderType;return R(e)&&r===d.Category&&(s=e.orderOptions?.data?.orderBy),s},se=(e,s,r,i)=>{let t=O(s.series),A=_(s);s.orderOptions??={};let o=A?[""]:c.Ascending;if(A)e===f.customSort&&r!==void 0?o=[...r]:o=e===f.Desc?c.Descending:c.Ascending,i?s.orderOptions.data={...s.orderOptions.data,orderByY:o,orderType:d.MultiAxes}:s.orderOptions.data={...s.orderOptions.data,orderByX:o,orderType:d.MultiAxes};else if(t===n.BarSeries||t===n.LineSeries){let l=d.Category;e===a.customSort&&r!==void 0?(o=[...r],s.orderOptions.data={orderType:l,orderBy:o}):(l=e===a.xAxisAsc||e===a.xAxisDesc?d.Category:d.YValue,o=e===a.xAxisAsc||e===a.yAxisAsc?c.Ascending:c.Descending,s.orderOptions.data={orderType:l,orderBy:o})}},re=e=>e?.series?.[0]?.x??"",ie=e=>{let{config:s,xAxisField:r,numericFields:i,aggregationType:t,mode:A,layer:o,numericFieldIndex:l,seriesIndex:U,splitByField:w="",fieldList:H}=e,M=O(s.series),P=v(s.series),u;if(B(o)){let y=b(o);u=i.length===1&&i[0]===y}else{let{idField:y,isTraditionalTypeOID:Y}=h(F(o));u=Y&&i.length===1&&i[0]===y}let p="y",x="y";switch(M){case n.PieSeries:{t!==m.NoAggregation?A===I.Category?(p=`${t}_${i[0]}_0`.toUpperCase(),x=u?g(m.Count):g(`${t} of ${i[0]}`)):p=T:p=i[0];break}case n.BarSeries:case n.LineSeries:case n.ComboLineAndBarSeries:case n.RadarSeries:case n.HeatSeries:{if(w===""||i.length>1)j({fieldName:r,numericFields:i,fieldList:H??[]})||P===$.BarAndLineFromFields?p=N:(p=t!==m.NoAggregation?`${t}_${i[l??0]}_${l??0}`.toUpperCase():i[l??0],x=u?g(m.Count):g(`${t} of ${i[l??0]}`));else{let y=i[0];p=t!==m.NoAggregation?`${t}_${y}_${U??0}`.toUpperCase():y,x=u?g(m.Count):g(`${t} of ${y}`)}break}}return{name:p,description:x}};function V(e){let{fieldName:s,fieldList:r}=e,i=S(r??[],s);return s===D||s===L||s===C||s===void 0||s.trim()===""||i===void 0}function j(e){let{fieldName:s,fieldList:r,numericFields:i}=e,t=i.filter(A=>S(r??[],A)?.type!=="esriFieldTypeOID");return V({fieldName:s,fieldList:r})&&(t?.length??0)>0}return{a:k,b:Z,c:E,d:ee,e:se,f:re,g:ie,h:V,i:j}},b)
File without changes