@arcgis/charts-components 5.1.0-next.112 → 5.1.0-next.113

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 (153) hide show
  1. package/dist/cdn/{D64TYM3R.js → 24TOMTMP.js} +1 -1
  2. package/dist/cdn/{KGUWJXNX.js → 2EPXIQFD.js} +1 -1
  3. package/dist/cdn/2SVBUT3V.js +2 -0
  4. package/dist/cdn/{KBFIWSF2.js → 2XTQT6TW.js} +1 -1
  5. package/dist/cdn/{PIQLTGQV.js → 2YI4HWFY.js} +36 -36
  6. package/dist/cdn/{VA7A24CW.js → 34WNZMJY.js} +1 -1
  7. package/dist/cdn/{MT2SXIFX.js → 4G5JOLEP.js} +1 -1
  8. package/dist/cdn/{D5HBIRFV.js → 4MZJZQDO.js} +1 -1
  9. package/dist/cdn/{2XZHEQOM.js → 52QMEXI6.js} +1 -1
  10. package/dist/cdn/{XL2LODIA.js → 5I75UYWD.js} +1 -1
  11. package/dist/cdn/{ABLXR4MB.js → 5M72DGYL.js} +1 -1
  12. package/dist/cdn/{I3AEOP2Z.js → 5PG6PXDG.js} +1 -1
  13. package/dist/cdn/6FGRLBTA.js +2 -0
  14. package/dist/cdn/6JNHTWDQ.js +2 -0
  15. package/dist/cdn/{BRQAPAQK.js → 6YSH3ROL.js} +1 -1
  16. package/dist/cdn/{D3BGIANC.js → 7AVVBDQS.js} +1 -1
  17. package/dist/cdn/{U4MRHS76.js → 7EDHTVVK.js} +1 -1
  18. package/dist/cdn/{NF2XLTBQ.js → 7MHEEH5F.js} +1 -1
  19. package/dist/cdn/{H2KJXNFC.js → 7Y76VKGS.js} +1 -1
  20. package/dist/cdn/AC2XSIOU.js +2 -0
  21. package/dist/cdn/{GFNVUB7K.js → AEESEH6N.js} +1 -1
  22. package/dist/cdn/{YINMQ55E.js → AYY2C4BW.js} +1 -1
  23. package/dist/cdn/{GWMDQQIJ.js → BH7WDRGU.js} +1 -1
  24. package/dist/cdn/CMPHBGKB.js +2 -0
  25. package/dist/cdn/{IBM2BU72.js → DDA7NVBX.js} +1 -1
  26. package/dist/cdn/{JGJIYKDB.js → DMDXALHQ.js} +1 -1
  27. package/dist/cdn/{JVHLFBSS.js → DX5LK7LS.js} +1 -1
  28. package/dist/cdn/{3FXHEHMZ.js → ERUYMQOC.js} +1 -1
  29. package/dist/cdn/{E6KDF7I4.js → ESUMWLYT.js} +1 -1
  30. package/dist/cdn/{P2QKEA6M.js → EULFJ5JL.js} +1 -1
  31. package/dist/cdn/{S5AL63QJ.js → EX27CNDS.js} +1 -1
  32. package/dist/cdn/FYI7J2KF.js +2 -0
  33. package/dist/cdn/{6KZXKGN5.js → GGZNH26O.js} +1 -1
  34. package/dist/cdn/{XWRRNCXX.js → HIQSXKPT.js} +1 -1
  35. package/dist/cdn/{RD6ECNGH.js → HS2WQJEO.js} +1 -1
  36. package/dist/cdn/{6MJZVFHH.js → IBCUXQZ4.js} +1 -1
  37. package/dist/cdn/{KKRB2MKQ.js → IC4OZCXG.js} +1 -1
  38. package/dist/cdn/{Y7XBFA23.js → JGD2M47O.js} +1 -1
  39. package/dist/cdn/KGOERXN5.js +2 -0
  40. package/dist/cdn/{ODQFJ4LV.js → KPXH2MNB.js} +1 -1
  41. package/dist/cdn/KSBWHMXE.js +2 -0
  42. package/dist/cdn/{CM6SMNRV.js → L3ULFQN3.js} +1 -1
  43. package/dist/cdn/{AHJ3Z5VK.js → LKHNZDEC.js} +1 -1
  44. package/dist/cdn/{UMYKMOTP.js → LXVLBS7T.js} +1 -1
  45. package/dist/cdn/{FBAOV5K3.js → M5E3NFDP.js} +1 -1
  46. package/dist/cdn/{EXMOSLLD.js → MKEUDI3M.js} +1 -1
  47. package/dist/cdn/{CM3VU2OY.js → MKQPW6B4.js} +1 -1
  48. package/dist/cdn/MVAMHZ3Q.js +2 -0
  49. package/dist/cdn/{5HINM2VQ.js → N265ZHHU.js} +1 -1
  50. package/dist/cdn/{R7CJ4O3L.js → N2S6YV3I.js} +1 -1
  51. package/dist/cdn/N3EATDXE.js +2 -0
  52. package/dist/cdn/{X67CUQNM.js → NR3BCOHU.js} +1 -1
  53. package/dist/cdn/{67KR6LRC.js → O2JEDVIA.js} +1 -1
  54. package/dist/cdn/{LOCJNU5K.js → OB7IDW6S.js} +1 -1
  55. package/dist/cdn/{AEUYFUBD.js → OBPCKG62.js} +1 -1
  56. package/dist/cdn/{PJNQHWV6.js → OCERCT4I.js} +1 -1
  57. package/dist/cdn/{5LC3XI7H.js → OFN7ED75.js} +1 -1
  58. package/dist/cdn/{KMEU5ARZ.js → OQSFVGUL.js} +1 -1
  59. package/dist/cdn/{DQCPY5W2.js → PA3PSUQ3.js} +1 -1
  60. package/dist/cdn/PYFMKPMO.js +2 -0
  61. package/dist/cdn/QRZ32JMG.js +2 -0
  62. package/dist/cdn/{3HD6QKW5.js → R3GNKVFS.js} +1 -1
  63. package/dist/cdn/R3Y2F64T.js +2 -0
  64. package/dist/cdn/{PBODMDBX.js → RBVV7JGY.js} +9 -9
  65. package/dist/cdn/{ESYVOEM3.js → S32VCEG7.js} +1 -1
  66. package/dist/cdn/{OML6Q2NW.js → S7ASARWB.js} +1 -1
  67. package/dist/cdn/{WXICRF7E.js → SVMC3JP5.js} +1 -1
  68. package/dist/cdn/SYXU6NZX.js +2 -0
  69. package/dist/cdn/{JUZN32FE.js → T3CSQ5DU.js} +1 -1
  70. package/dist/cdn/T3NJTAF3.js +2 -0
  71. package/dist/cdn/{LJRBB6FP.js → T53WJZQN.js} +1 -1
  72. package/dist/cdn/TES5ZESK.js +2 -0
  73. package/dist/cdn/U5ZB4YD6.js +2 -0
  74. package/dist/cdn/{3AXJHQ2G.js → UNDCO72C.js} +1 -1
  75. package/dist/cdn/{S76F4PYC.js → UR537UXK.js} +1 -1
  76. package/dist/cdn/{XJNMW7WT.js → VMAOMKFN.js} +1 -1
  77. package/dist/cdn/{KZPT7DNZ.js → VV7JMGHL.js} +1 -1
  78. package/dist/cdn/{5HA57VEM.js → W6CIWZSM.js} +1 -1
  79. package/dist/cdn/{SZZ4H4ZK.js → WA5XK3HC.js} +1 -1
  80. package/dist/cdn/{6TTUH24U.js → WD4QY4YU.js} +1 -1
  81. package/dist/cdn/{W7FIZJJV.js → WESXMGHU.js} +1 -1
  82. package/dist/cdn/{SJN44JLK.js → WFDVEHVL.js} +1 -1
  83. package/dist/cdn/{JSLCGSQY.js → WI3CE5TT.js} +1 -1
  84. package/dist/cdn/{FEYXO2GF.js → WNZ2PSFZ.js} +1 -1
  85. package/dist/cdn/{WURCLA4B.js → XLJSZ42M.js} +1 -1
  86. package/dist/cdn/{JQ46RTG7.js → XM6GBBOL.js} +1 -1
  87. package/dist/cdn/{QLSZLTAV.js → YE5ASSSN.js} +1 -1
  88. package/dist/cdn/{P6S4F5LJ.js → ZBLRD77K.js} +1 -1
  89. package/dist/cdn/ZZRH7LXO.js +2 -0
  90. package/dist/cdn/index.js +1 -1
  91. package/dist/chunks/bar-chart-series.js +1 -1
  92. package/dist/chunks/box-plot-data.js +1 -1
  93. package/dist/chunks/box-plot-model.js +1 -1
  94. package/dist/chunks/class-breaks.js +375 -196
  95. package/dist/chunks/combo-bar-line-chart-model.js +1 -1
  96. package/dist/chunks/heat-chart-model.js +80 -55
  97. package/dist/chunks/index.js +1 -1
  98. package/dist/chunks/index2.js +2 -1
  99. package/dist/chunks/index4.js +395 -368
  100. package/dist/chunks/index5.js +30 -16
  101. package/dist/chunks/index6.js +95 -180
  102. package/dist/chunks/index7.js +63 -96
  103. package/dist/chunks/model-setter.js +5 -4
  104. package/dist/chunks/negative-values-stacked-to-baseline.js +1 -1
  105. package/dist/chunks/serial-chart-data.js +459 -428
  106. package/dist/chunks/serial-chart-model.js +21 -21
  107. package/dist/chunks/type-guards3.js +1 -1
  108. package/dist/chunks/utils.js +1 -1
  109. package/dist/chunks/web-component-utils.js +1 -1
  110. package/dist/chunks/x-bounds.js +1 -1
  111. package/dist/components/arcgis-chart/customElement.js +1874 -1852
  112. package/dist/components/arcgis-charts-action-bar/customElement.js +1 -1
  113. package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
  114. package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
  115. package/dist/components/arcgis-charts-config-create-flow/customElement.js +1 -1
  116. package/dist/components/arcgis-charts-config-format/customElement.js +1 -1
  117. package/dist/components/arcgis-charts-config-guide/customElement.js +1 -1
  118. package/dist/components/arcgis-charts-config-heat-chart/customElement.js +1 -1
  119. package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +113 -115
  120. package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +1 -1
  121. package/dist/components/arcgis-charts-config-histogram/customElement.js +1 -1
  122. package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
  123. package/dist/components/arcgis-charts-config-pie-chart/customElement.js +1 -1
  124. package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
  125. package/dist/docs/api.json +1 -1
  126. package/dist/docs/docs.json +1 -1
  127. package/dist/docs/web-types.json +1 -1
  128. package/dist/index.js +3 -3
  129. package/dist/json-schema/index.d.ts +16 -2
  130. package/dist/model/heat-chart-model/heat-chart-model.d.ts +7 -0
  131. package/dist/spec/web-chart.d.ts +5 -1
  132. package/package.json +3 -3
  133. package/dist/cdn/263JBBGM.js +0 -2
  134. package/dist/cdn/35KB444X.js +0 -2
  135. package/dist/cdn/4HY2RXSW.js +0 -2
  136. package/dist/cdn/66KACO5S.js +0 -2
  137. package/dist/cdn/AG3TVVQ2.js +0 -2
  138. package/dist/cdn/ALLLIA7C.js +0 -2
  139. package/dist/cdn/CDQ7GWYX.js +0 -2
  140. package/dist/cdn/CSP5QTAR.js +0 -2
  141. package/dist/cdn/DK6HSROT.js +0 -2
  142. package/dist/cdn/EZWN2KJB.js +0 -2
  143. package/dist/cdn/FYM7POP4.js +0 -2
  144. package/dist/cdn/IYGAISDT.js +0 -2
  145. package/dist/cdn/J33CC7V4.js +0 -2
  146. package/dist/cdn/KNQ5BIHK.js +0 -2
  147. package/dist/cdn/KXB6IFTK.js +0 -2
  148. package/dist/cdn/SH6SDXJC.js +0 -2
  149. package/dist/cdn/SYUVV7NT.js +0 -2
  150. package/dist/cdn/XGNWXJ66.js +0 -2
  151. package/dist/chunks/index8.js +0 -66
  152. /package/dist/cdn/{AUFWCLGL.js → COYWSD6X.js} +0 -0
  153. /package/dist/cdn/{BVUORLWQ.js → Y2AULE2F.js} +0 -0
@@ -1,40 +1,59 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import { getElementLocale as je } from "@arcgis/toolkit/intl";
3
- import { cloneDeep as n, isEmpty as h } from "lodash-es";
4
- import { DateTime as ze } from "luxon";
5
- import { af as He, Q as ie, Z as Re, c4 as oe, c3 as $e, b$ as Qe, ac as Ye, Y as C, bf as Ke, O as F, bC as U, aG as Xe, aH as Ze, m as X, h as Je, w as Ue } from "./index2.js";
6
- import { W as et, ax as tt, g as rt, D as it, ad as ot } from "./index.js";
7
- import { c as st } from "./type-guards.js";
8
- import { C as u, h as P, q as se } from "./index3.js";
9
- import { h as nt, n as at, r as dt } from "./index7.js";
10
- import { g as B } from "./series-types.js";
11
- import { v as ee, u as c, r as T, n as p, p as v, f as lt, j as te, s as b } from "./chart-object-literals.js";
12
- var k = /* @__PURE__ */ ((r) => (r.NONE = "none", r.ROTATE = "rotate", r.STAGGER = "stagger", r.WRAP = "wrap", r))(k || {});
13
- function ne(r) {
14
- const { configToUpdate: e, chartContainer: i, layer: t } = r, o = n(e);
15
- if (t?.capabilities?.queryAttributeBins?.supportsFirstDayOfWeek === !0 && (!("firstDayOfWeek" in e) || e.firstDayOfWeek === void 0 || e.firstDayOfWeek === null)) {
16
- const { lang: s } = je(i ?? document.documentElement);
2
+ import { getElementLocale as ze } from "@arcgis/toolkit/intl";
3
+ import { cloneDeep as n, isEmpty as B } from "lodash-es";
4
+ import { DateTime as He } from "luxon";
5
+ import { af as $e, Q as oe, Z as Qe, c4 as se, c3 as ne, b$ as Ye, ac as Ke, Y as O, bf as Xe, O as b, bC as ee, aG as Ze, aH as Je, m as Z, h as Ue, w as er } from "./index2.js";
6
+ import { W as rr, ax as tr, g as ir, D as or, ad as sr } from "./index.js";
7
+ import { c as nr } from "./type-guards.js";
8
+ import { C as f, h as k, q as ae } from "./index3.js";
9
+ import { h as ar, n as dr, r as lr } from "./index6.js";
10
+ import { g as h } from "./series-types.js";
11
+ import { v as re, u as c, r as F, n as p, p as v, f as cr, j as te, s as C } from "./chart-object-literals.js";
12
+ import { p as ur, d as fr, g as pr, e as yr } from "./class-breaks.js";
13
+ var L = /* @__PURE__ */ ((t) => (t.NONE = "none", t.ROTATE = "rotate", t.STAGGER = "stagger", t.WRAP = "wrap", t))(L || {});
14
+ function de(t) {
15
+ const { configToUpdate: e, chartContainer: i, layer: r } = t, o = n(e);
16
+ if (r?.capabilities?.queryAttributeBins?.supportsFirstDayOfWeek === !0 && (!("firstDayOfWeek" in e) || e.firstDayOfWeek === void 0 || e.firstDayOfWeek === null)) {
17
+ const { lang: s } = ze(i ?? document.documentElement);
17
18
  try {
18
- o.firstDayOfWeek = ze.local().setLocale(s.replaceAll("_", "-")).startOf("week", { useLocaleWeeks: !0 }).weekday;
19
+ o.firstDayOfWeek = He.local().setLocale(s.replaceAll("_", "-")).startOf("week", { useLocaleWeeks: !0 }).weekday;
19
20
  } catch {
20
21
  }
21
22
  }
22
23
  return o;
23
24
  }
24
- function ae(r) {
25
- const e = n(r);
26
- return h(r.axes) || (e.axes = r.axes?.map((i) => {
27
- const t = i;
28
- 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;
25
+ function mr(t) {
26
+ const e = n(t);
27
+ if (ne(e)) {
28
+ const r = e.series[0], o = e.chartRenderer?.classBreakInfos;
29
+ if (o?.length && r?.classBreaksRules) {
30
+ r.classBreaksRules.colorRampInfo = r.classBreaksRules.colorRampInfo ?? {};
31
+ const { name: s, flipped: a } = r.classBreaksRules.colorRampInfo, u = ur(o, fr.esriColorRamps);
32
+ if (!s && u?.name && (r.classBreaksRules.colorRampInfo.name = u.name), a === void 0 && u) {
33
+ const y = pr({
34
+ numberOfClassBreaks: o.length,
35
+ selectedColorRamp: u
36
+ });
37
+ y.length === o.length && (r.classBreaksRules.colorRampInfo.flipped = yr(y, o));
38
+ }
39
+ }
40
+ }
41
+ return e;
42
+ }
43
+ function le(t) {
44
+ const e = n(t);
45
+ return B(t.axes) || (e.axes = t.axes?.map((i) => {
46
+ const r = i;
47
+ return delete r.calculateAutomaticMaximum, delete r.calculateAutomaticMinimum, r.title?.content.font?.style !== void 0 && (r.title.content.font.style = r.title.content.font.style.toLowerCase()), r;
29
48
  })), e;
30
49
  }
31
- function de(r) {
32
- const e = n(r);
33
- return h(r.series) || (e.series = r.series.map((i, t) => {
50
+ function ce(t) {
51
+ const e = n(t);
52
+ return B(t.series) || (e.series = t.series.map((i, r) => {
34
53
  const o = i;
35
- i.id === void 0 && (o.id = `Series ${Date.now()}-${t}`);
36
- const s = B(r.series, t);
37
- return (s === c.BarSeries || s === c.LineSeries || s === c.RadarSeries) && o.query?.outStatistics?.[0]?.statisticType === "median" && (o.query.outStatistics[0].statisticType = T.ContinuousPercentile), s === c.BarSeries && o.multipleBarType !== void 0 && (o.stackedType = o.multipleBarType, delete o.multipleBarType), s === c.PieSeries && o.sliceGrouping !== void 0 && (o.sliceGrouping.sliceId = tt.defaultGroupOfSlicesId, o.sliceGrouping.groupName !== void 0 && (o.sliceGrouping = {
54
+ i.id === void 0 && (o.id = `Series ${Date.now()}-${r}`);
55
+ const s = h(t.series, r);
56
+ return (s === c.BarSeries || s === c.LineSeries || s === c.RadarSeries) && o.query?.outStatistics?.[0]?.statisticType === "median" && (o.query.outStatistics[0].statisticType = F.ContinuousPercentile), s === c.BarSeries && o.multipleBarType !== void 0 && (o.stackedType = o.multipleBarType, delete o.multipleBarType), s === c.PieSeries && o.sliceGrouping !== void 0 && (o.sliceGrouping.sliceId = tr.defaultGroupOfSlicesId, o.sliceGrouping.groupName !== void 0 && (o.sliceGrouping = {
38
57
  ...o.sliceGrouping,
39
58
  label: o.sliceGrouping.groupName
40
59
  }, delete o.sliceGrouping.groupName), o.sliceGrouping.groupSliceSymbol !== void 0 && (o.sliceGrouping = {
@@ -43,13 +62,13 @@ function de(r) {
43
62
  }, delete o.sliceGrouping.groupSliceSymbol)), o;
44
63
  })), e;
45
64
  }
46
- function re(r, e) {
65
+ function ie(t, e) {
47
66
  const i = [];
48
- return r.forEach((t) => {
49
- if (!se(t)) {
50
- const o = P(t, !1);
67
+ return t.forEach((r) => {
68
+ if (!ae(r)) {
69
+ const o = k(r, !1);
51
70
  if (o.fieldToSort !== void 0) {
52
- const s = F({
71
+ const s = b({
53
72
  queryObject: e,
54
73
  fieldToMatch: o.fieldToSort
55
74
  });
@@ -60,213 +79,213 @@ function re(r, e) {
60
79
  }
61
80
  }), i;
62
81
  }
63
- async function le(r) {
64
- const { configToUpdate: e, layer: i, abortSignal: t } = r, o = { ...e };
82
+ async function ue(t) {
83
+ const { configToUpdate: e, layer: i, abortSignal: r } = t, o = { ...e };
65
84
  let s = i;
66
85
  if (!s) {
67
- const a = nt(e) ? e.iLayer : e.dataSource?.layer;
68
- a && (s = await Ye(a, t));
86
+ const a = ar(e) ? e.iLayer : e.dataSource?.layer;
87
+ a && (s = await Ke(a, r));
69
88
  }
70
89
  if (s) {
71
- const a = C(o.series), f = B(o.series), g = o.series && o.series.length > 0 && o.series[0].x.trim() === "" || f === c.GaugeSeries && !Ke(e) || a === u.PieFromFields || a === u.BarAndLineFromFields || a === u.BoxPlotMonoField || a === u.BoxPlotMonoFieldAndSplitBy || a === u.BoxPlotMultiFields || a === u.BoxPlotMultiFieldsAndSplitBy, _e = f === c.ScatterSeries || f === c.HeatSeries || a === u.BarAndLineNoAggregation || a === u.BarAndLineSplitByNoAggregation || a === u.BoxPlotMonoField || a === u.BoxPlotMonoFieldAndSplitBy || a === u.BoxPlotMonoFieldAndCategory || a === u.BoxPlotMonoFieldAndCategoryAndSplitBy || a === u.PieNoAggregation;
90
+ const a = O(o.series), u = h(o.series), y = o.series && o.series.length > 0 && o.series[0].x.trim() === "" || u === c.GaugeSeries && !Xe(e) || a === f.PieFromFields || a === f.BarAndLineFromFields || a === f.BoxPlotMonoField || a === f.BoxPlotMonoFieldAndSplitBy || a === f.BoxPlotMultiFields || a === f.BoxPlotMultiFieldsAndSplitBy, je = u === c.ScatterSeries || u === c.HeatSeries || a === f.BarAndLineNoAggregation || a === f.BarAndLineSplitByNoAggregation || a === f.BoxPlotMonoField || a === f.BoxPlotMonoFieldAndSplitBy || a === f.BoxPlotMonoFieldAndCategory || a === f.BoxPlotMonoFieldAndCategoryAndSplitBy || a === f.PieNoAggregation;
72
91
  if (o.series = e.series.map((l) => {
73
92
  const d = { ...l };
74
- if (g || (d.x = F({ queryObject: s, fieldToMatch: l.x })), "y" in d && _e) {
75
- const y = d.y;
76
- if (Array.isArray(y)) {
77
- const m = U({
78
- fieldsList: y,
93
+ if (y || (d.x = b({ queryObject: s, fieldToMatch: l.x })), "y" in d && je) {
94
+ const m = d.y;
95
+ if (Array.isArray(m)) {
96
+ const S = ee({
97
+ fieldsList: m,
79
98
  queryObject: s
80
99
  });
81
- m !== void 0 && "y" in d && (d.y = m);
82
- } else "y" in d && typeof y == "string" && (d.y = F({ queryObject: s, fieldToMatch: y }));
100
+ S !== void 0 && "y" in d && (d.y = S);
101
+ } else "y" in d && typeof m == "string" && (d.y = b({ queryObject: s, fieldToMatch: m }));
83
102
  }
84
103
  if (l.query !== void 0) {
85
- let { where: y, groupByFieldsForStatistics: m, outStatistics: S } = l.query;
86
- if (m = U({ fieldsList: m, queryObject: s }), S !== void 0 && (S = S.map((x) => {
87
- const O = { ...x };
88
- return O.onStatisticField = F({
104
+ let { where: m, groupByFieldsForStatistics: S, outStatistics: g } = l.query;
105
+ if (S = ee({ fieldsList: S, queryObject: s }), g !== void 0 && (g = g.map((T) => {
106
+ const x = { ...T };
107
+ return x.onStatisticField = b({
89
108
  queryObject: s,
90
- fieldToMatch: x.onStatisticField
91
- }), O;
92
- })), y !== void 0 && a === u.BarAndLineSplitBy) {
93
- const x = Xe(l.query?.where), O = Ze({
109
+ fieldToMatch: T.onStatisticField
110
+ }), x;
111
+ })), m !== void 0 && a === f.BarAndLineSplitBy) {
112
+ const T = Ze(l.query?.where), x = Je({
94
113
  where: l.query?.where,
95
114
  normalize: !1,
96
115
  escape: !1
97
116
  });
98
- y = `${F({ queryObject: s, fieldToMatch: x })}=${O}`;
117
+ m = `${b({ queryObject: s, fieldToMatch: T })}=${x}`;
99
118
  }
100
- d.query !== void 0 && (y !== void 0 && (d.query.where = y), m !== void 0 && (d.query.groupByFieldsForStatistics = m), S !== void 0 && (d.query.outStatistics = S));
119
+ d.query !== void 0 && (m !== void 0 && (d.query.where = m), S !== void 0 && (d.query.groupByFieldsForStatistics = S), g !== void 0 && (d.query.outStatistics = g));
101
120
  }
102
121
  return d;
103
122
  }), o.series[0]?.query !== void 0) {
104
123
  const l = o.series[0].query;
105
124
  let { orderByFields: d } = l;
106
- d !== void 0 && d.length > 0 && (d = re(d, s), d.length > 0 && l.orderByFields !== void 0 && (o.series[0].query.orderByFields = d));
125
+ d !== void 0 && d.length > 0 && (d = ie(d, s), d.length > 0 && l.orderByFields !== void 0 && (o.series[0].query.orderByFields = d));
107
126
  }
108
127
  if (o.orderOptions?.orderByFields !== void 0) {
109
128
  let { orderByFields: l } = o.orderOptions;
110
- l !== void 0 && l.length > 0 && (l = re(l, s), l.length > 0 && (o.orderOptions.orderByFields = l));
129
+ l !== void 0 && l.length > 0 && (l = ie(l, s), l.length > 0 && (o.orderOptions.orderByFields = l));
111
130
  }
112
- if (f === c.GaugeSeries && e.axes?.[0] !== void 0) {
131
+ if (u === c.GaugeSeries && e.axes?.[0] !== void 0) {
113
132
  const { minimumFromField: l, maximumFromField: d } = e.axes[0];
114
133
  if (l !== void 0) {
115
- const y = typeof l == "string" ? l : l.onStatisticField, m = F({ queryObject: s, fieldToMatch: y });
116
- let S = l;
117
- typeof e.axes[0].minimumFromField == "string" ? S = m : typeof l == "object" && (S = {
134
+ const m = typeof l == "string" ? l : l.onStatisticField, S = b({ queryObject: s, fieldToMatch: m });
135
+ let g = l;
136
+ typeof e.axes[0].minimumFromField == "string" ? g = S : typeof l == "object" && (g = {
118
137
  ...l,
119
- onStatisticField: m
120
- }), e.axes[0].minimumFromField = S;
138
+ onStatisticField: S
139
+ }), e.axes[0].minimumFromField = g;
121
140
  }
122
141
  if (d !== void 0) {
123
- const y = typeof d == "string" ? d : d.onStatisticField, m = F({ queryObject: s, fieldToMatch: y });
124
- let S = d;
125
- typeof e.axes[0].maximumFromField == "string" ? S = m : typeof d == "object" && (S = {
142
+ const m = typeof d == "string" ? d : d.onStatisticField, S = b({ queryObject: s, fieldToMatch: m });
143
+ let g = d;
144
+ typeof e.axes[0].maximumFromField == "string" ? g = S : typeof d == "object" && (g = {
126
145
  ...d,
127
- onStatisticField: m
128
- }), e.axes[0].maximumFromField = S;
146
+ onStatisticField: S
147
+ }), e.axes[0].maximumFromField = g;
129
148
  }
130
149
  }
131
150
  }
132
151
  return o;
133
152
  }
134
- function ce(r) {
135
- const e = n(r);
136
- if (!h(r.series) && B(r.series) === c.BoxPlotSeries) {
137
- const t = e.series[0];
138
- t && (t.showOutliers !== void 0 && (r.showOutliers === void 0 && (e.showOutliers = t.showOutliers), delete t.showOutliers), t.standardizeValues !== void 0 && (r.standardizeValues === void 0 && (e.standardizeValues = t.standardizeValues), delete t.standardizeValues), t.showMean !== void 0 && (r.showMean === void 0 && (e.showMean = t.showMean), delete t.showMean));
153
+ function fe(t) {
154
+ const e = n(t);
155
+ if (!B(t.series) && h(t.series) === c.BoxPlotSeries) {
156
+ const r = e.series[0];
157
+ r && (r.showOutliers !== void 0 && (t.showOutliers === void 0 && (e.showOutliers = r.showOutliers), delete r.showOutliers), r.standardizeValues !== void 0 && (t.standardizeValues === void 0 && (e.standardizeValues = r.standardizeValues), delete r.standardizeValues), r.showMean !== void 0 && (t.showMean === void 0 && (e.showMean = r.showMean), delete r.showMean));
139
158
  }
140
159
  return e;
141
160
  }
142
- function ue(r) {
161
+ function pe(t) {
143
162
  const e = {
144
163
  orderType: p.Category,
145
164
  orderBy: v.Ascending
146
- }, i = r.query?.orderByFields?.[0];
165
+ }, i = t.query?.orderByFields?.[0];
147
166
  if (i !== void 0) {
148
- const { outStatisticFieldName: t, statisticType: o } = r.query?.outStatistics?.[0] ?? {}, s = P(i);
149
- t !== void 0 && s.fieldToSort === t && o !== void 0 && (o === T.Average || o === "mean" ? e.orderType = p.Mean : o === T.ContinuousPercentile && (e.orderType = p.Median)), e.orderBy = s.orderBy ?? v.Ascending;
167
+ const { outStatisticFieldName: r, statisticType: o } = t.query?.outStatistics?.[0] ?? {}, s = k(i);
168
+ r !== void 0 && s.fieldToSort === r && o !== void 0 && (o === F.Average || o === "mean" ? e.orderType = p.Mean : o === F.ContinuousPercentile && (e.orderType = p.Median)), e.orderBy = s.orderBy ?? v.Ascending;
150
169
  }
151
170
  return e;
152
171
  }
153
- function fe(r) {
172
+ function ye(t) {
154
173
  let e = !1;
155
- const i = Array.from(new Set(r.series.map((t) => t.type)));
156
- 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;
174
+ const i = Array.from(new Set(t.series.map((r) => r.type)));
175
+ return i.length === 2 && i.includes(c.BoxPlotSeries) && i.includes(c.LineSeries) && (e = t.series.find((o) => o.type === c.LineSeries)?.query?.outStatistics?.[0] !== void 0), e;
157
176
  }
158
- function pe(r) {
159
- const e = n(r);
160
- if (!h(e.series) && B(r.series) === c.BoxPlotSeries) {
177
+ function me(t) {
178
+ const e = n(t);
179
+ if (!B(e.series) && h(t.series) === c.BoxPlotSeries) {
161
180
  if (e.orderOptions?.data === void 0) {
162
- const t = ue(r.series[0]);
163
- t.orderType !== void 0 && (e.orderOptions ??= {}, e.orderOptions.data = {
164
- orderType: t.orderType,
165
- orderBy: t.orderBy
181
+ const r = pe(t.series[0]);
182
+ r.orderType !== void 0 && (e.orderOptions ??= {}, e.orderOptions.data = {
183
+ orderType: r.orderType,
184
+ orderBy: r.orderBy
166
185
  });
167
186
  }
168
- if (e.series = r.series.map((t) => {
169
- const o = t;
170
- return h(o.x?.trim()) && (o.x = rt), delete o.query?.orderByFields, o;
171
- }), fe(e)) {
187
+ if (e.series = t.series.map((r) => {
188
+ const o = r;
189
+ return B(o.x?.trim()) && (o.x = ir), delete o.query?.orderByFields, o;
190
+ }), ye(e)) {
172
191
  e.showMean = !0;
173
- const t = e.series.find(
192
+ const r = e.series.find(
174
193
  (o) => o.type === c.BoxPlotSeries
175
194
  );
176
195
  e.series.forEach((o) => {
177
- o.type === c.LineSeries && (delete o.query?.groupByFieldsForStatistics, delete o.query?.outStatistics, delete o.query?.orderByFields, t && (o.y = t.y));
196
+ o.type === c.LineSeries && (delete o.query?.groupByFieldsForStatistics, delete o.query?.outStatistics, delete o.query?.orderByFields, r && (o.y = r.y));
178
197
  });
179
198
  }
180
- e.series = r.series.map((t) => {
181
- const o = t;
199
+ e.series = t.series.map((r) => {
200
+ const o = r;
182
201
  return delete o.query?.outStatistics, o;
183
202
  });
184
203
  }
185
204
  return e;
186
205
  }
187
- function ye(r) {
188
- const e = n(r);
206
+ function Se(t) {
207
+ const e = n(t);
189
208
  return e.legend !== void 0 && !Number.isFinite(e.legend.maxHeight) && (e.legend.maxHeight = void 0), e;
190
209
  }
191
- function me(r) {
192
- const e = n(r);
210
+ function ge(t) {
211
+ const e = n(t);
193
212
  return "dataSource" in e && e.dataSource.layer && (e.iLayer = e.dataSource.layer, delete e.dataSource), e;
194
213
  }
195
- function Se(r) {
196
- const e = n(r), i = /* @__PURE__ */ new Set(), t = e.id ?? "";
197
- return i.add(t), e.series.forEach((o) => {
214
+ function ve(t) {
215
+ const e = n(t), i = /* @__PURE__ */ new Set(), r = e.id ?? "";
216
+ return i.add(r), e.series.forEach((o) => {
198
217
  let s = o.id;
199
218
  i.has(s) && (s = `${s}_${Date.now()}`, o.id = s), i.add(s);
200
219
  }), e;
201
220
  }
202
- async function ve(r) {
203
- const { configToUpdate: e, layer: i, chartContainer: t, abortSignal: o } = r;
221
+ async function Be(t) {
222
+ const { configToUpdate: e, layer: i, chartContainer: r, abortSignal: o } = t;
204
223
  let s = n(e);
205
- if (s = ae(s), s = de(s), s = await le({ configToUpdate: s, layer: i, abortSignal: o }), oe(s)) {
206
- const a = ce(s);
207
- s = pe(a);
224
+ if (s = le(s), s = ce(s), s = await ue({ configToUpdate: s, layer: i, abortSignal: o }), se(s)) {
225
+ const a = fe(s);
226
+ s = me(a);
208
227
  }
209
- return s = ye(s), s = Se(s), $e(s) && !st(i) && (s = ne({ configToUpdate: s, chartContainer: t, layer: i })), s;
228
+ return s = Se(s), s = ve(s), ne(s) && !nr(i) && (s = de({ configToUpdate: s, chartContainer: r, layer: i })), s;
210
229
  }
211
- function ge(r) {
212
- const e = n(r);
213
- return e?.orderOptions?.orderByFields !== void 0 && C(r.series) === u.PieFromFields && (e.orderOptions.orderByFields = r?.orderOptions?.orderByFields?.map(
230
+ function he(t) {
231
+ const e = n(t);
232
+ return e?.orderOptions?.orderByFields !== void 0 && O(t.series) === f.PieFromFields && (e.orderOptions.orderByFields = t?.orderOptions?.orderByFields?.map(
214
233
  (i) => {
215
- let t = n(i);
216
- return i !== void 0 && i.includes("arcgis_charts_pie_category_from_fields_name") && (t = i.replace(
234
+ let r = n(i);
235
+ return i !== void 0 && i.includes("arcgis_charts_pie_category_from_fields_name") && (r = i.replace(
217
236
  "arcgis_charts_pie_category_from_fields_name",
218
- X
219
- )), t;
237
+ Z
238
+ )), r;
220
239
  }
221
240
  )), e;
222
241
  }
223
- function he(r) {
224
- const e = n(r);
225
- if (!h(r.series) && e.axes?.[0] !== void 0 && B(r.series) === c.GaugeSeries && r.axes?.[0] !== void 0) {
226
- const t = r.axes[0];
227
- t.ticks !== void 0 && Object.hasOwn(t.ticks, "spacing") && delete t.ticks.spacing, e.axes[0] = t;
242
+ function Ce(t) {
243
+ const e = n(t);
244
+ if (!B(t.series) && e.axes?.[0] !== void 0 && h(t.series) === c.GaugeSeries && t.axes?.[0] !== void 0) {
245
+ const r = t.axes[0];
246
+ r.ticks !== void 0 && Object.hasOwn(r.ticks, "spacing") && delete r.ticks.spacing, e.axes[0] = r;
228
247
  }
229
248
  return e;
230
249
  }
231
- function Be(r) {
232
- const e = n(r), { extent: i } = e.series[0]?.query ?? {};
250
+ function be(t) {
251
+ const e = n(t), { extent: i } = e.series[0]?.query ?? {};
233
252
  return i !== void 0 && (e.dataFilters = {
234
253
  ...e.dataFilters,
235
254
  geometry: i
236
- }, e.series.forEach((t) => {
237
- "query" in t && "extent" in t.query && delete t.query.extent;
255
+ }, e.series.forEach((r) => {
256
+ "query" in r && "extent" in r.query && delete r.query.extent;
238
257
  })), e;
239
258
  }
240
- function Z(r) {
241
- const e = n(r);
242
- return h(r.series) || (at(r) && r.rotated === void 0 && (e.rotated = r.series[0].rotated ?? it()), e.series.forEach((i) => {
259
+ function J(t) {
260
+ const e = n(t);
261
+ return B(t.series) || (dr(t) && t.rotated === void 0 && (e.rotated = t.series[0].rotated ?? or()), e.series.forEach((i) => {
243
262
  i.rotated !== void 0 && delete i.rotated;
244
263
  })), e;
245
264
  }
246
- function be(r) {
247
- const e = n(r), i = r.dataSource;
248
- return "dataSource" in e && !h(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;
265
+ function Fe(t) {
266
+ const e = n(t), i = t.dataSource;
267
+ 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;
249
268
  }
250
- function Fe(r) {
251
- const e = n(r);
252
- if ("dataSource" in r) {
253
- const i = r.dataSource;
269
+ function Te(t) {
270
+ const e = n(t);
271
+ if ("dataSource" in t) {
272
+ const i = t.dataSource;
254
273
  if (i.filter !== void 0 && i.filter.trim() !== "") {
255
- const t = Je([i.filter, e.dataFilters?.where]);
274
+ const r = Ue([i.filter, e.dataFilters?.where]);
256
275
  e.dataFilters = {
257
276
  ...e.dataFilters,
258
- where: t
277
+ where: r
259
278
  }, delete e.dataSource.filter;
260
279
  }
261
280
  }
262
281
  return e;
263
282
  }
264
- function Te(r) {
265
- return r !== "originalValue";
283
+ function xe(t) {
284
+ return t !== "originalValue";
266
285
  }
267
- function J(r) {
286
+ function U(t) {
268
287
  let e;
269
- switch (r) {
288
+ switch (t) {
270
289
  case "mean":
271
290
  e = p.Mean;
272
291
  break;
@@ -279,47 +298,47 @@ function J(r) {
279
298
  }
280
299
  return e;
281
300
  }
282
- function xe(r) {
283
- const e = n(r);
284
- if (!h(r.series) && B(r.series) === c.PieSeries) {
285
- const t = e.series[0];
286
- if (t) {
287
- if (t.sortLabelsBy === "originalValue")
288
- e.sortLabelsBy = t.sortLabelsBy;
289
- else if (t.sortLabelsBy !== void 0 && e.orderOptions?.data === void 0) {
290
- const o = L(e);
301
+ function Oe(t) {
302
+ const e = n(t);
303
+ if (!B(t.series) && h(t.series) === c.PieSeries) {
304
+ const r = e.series[0];
305
+ if (r) {
306
+ if (r.sortLabelsBy === "originalValue")
307
+ e.sortLabelsBy = r.sortLabelsBy;
308
+ else if (r.sortLabelsBy !== void 0 && e.orderOptions?.data === void 0) {
309
+ const o = P(e);
291
310
  o !== void 0 && (e.orderOptions ??= {}, e.orderOptions.data = o);
292
311
  }
293
- t.sortLabelsBy && delete t.sortLabelsBy;
312
+ r.sortLabelsBy && delete r.sortLabelsBy;
294
313
  }
295
314
  }
296
315
  return e;
297
316
  }
298
- function Oe(r) {
299
- const e = n(r);
300
- return h(r.series) || (dt(r) && r.stackedType === void 0 && (e.stackedType = r.series[0].stackedType ?? ot()), e.series.forEach((i) => {
317
+ function ke(t) {
318
+ const e = n(t);
319
+ return B(t.series) || (lr(t) && t.stackedType === void 0 && (e.stackedType = t.series[0].stackedType ?? sr()), e.series.forEach((i) => {
301
320
  "stackedType" in i && delete i.stackedType;
302
321
  })), e;
303
322
  }
304
- function Ce(r) {
305
- const e = n(r), i = r.sortOptions?.sortSeriesBy;
323
+ function Pe(t) {
324
+ const e = n(t), i = t.sortOptions?.sortSeriesBy;
306
325
  return e.orderOptions === void 0 && typeof i == "string" && (e.orderOptions ??= {}, e.orderOptions.series = {
307
326
  orderBy: i === "DESC" ? v.Descending : v.Ascending
308
327
  }), e;
309
328
  }
310
- function Pe(r) {
311
- const e = n(r);
312
- return e.colorMatch === void 0 && e.series[0]?.colorType !== void 0 && (e.colorMatch = e.series[0]?.colorType === lt.Match), e.series.forEach((i) => {
329
+ function Le(t) {
330
+ const e = n(t);
331
+ return e.colorMatch === void 0 && e.series[0]?.colorType !== void 0 && (e.colorMatch = e.series[0]?.colorType === cr.Match), e.series.forEach((i) => {
313
332
  i.colorType !== void 0 && delete i.colorType;
314
333
  }), e;
315
334
  }
316
- function Le(r) {
317
- const e = n(r);
335
+ function we(t) {
336
+ const e = n(t);
318
337
  if (e.sortDataBy !== void 0) {
319
338
  if (e.orderOptions?.data === void 0) {
320
- const i = r.sortDataBy, t = J(i?.sortType);
321
- t && t !== p.MultiAxes && (e.orderOptions ??= {}, e.orderOptions.data = {
322
- orderType: t,
339
+ const i = t.sortDataBy, r = U(i?.sortType);
340
+ r && r !== p.MultiAxes && (e.orderOptions ??= {}, e.orderOptions.data = {
341
+ orderType: r,
323
342
  orderBy: i?.sortOrder ?? v.Ascending
324
343
  });
325
344
  }
@@ -327,8 +346,8 @@ function Le(r) {
327
346
  }
328
347
  return e;
329
348
  }
330
- function ke(r) {
331
- const e = n(r);
349
+ function Ae(t) {
350
+ const e = n(t);
332
351
  return e.axes?.forEach((i) => {
333
352
  i !== void 0 && i.scrollbarVisible !== void 0 && i.scrollbar?.visible === void 0 && (i.scrollbar = {
334
353
  ...i.scrollbar,
@@ -336,361 +355,369 @@ function ke(r) {
336
355
  }, delete i.scrollbarVisible);
337
356
  }), e;
338
357
  }
339
- function we(r) {
340
- const e = n(r), i = e.series[0]?.query?.orderByFields;
358
+ function De(t) {
359
+ const e = n(t), i = e.series[0]?.query?.orderByFields;
341
360
  if (i !== void 0 && i.length > 0 && e.orderOptions?.orderByFields === void 0) {
342
361
  e.orderOptions ??= {};
343
- let t = !0;
362
+ let r = !0;
344
363
  if (i.length === 1) {
345
- const { fieldToSort: o, orderBy: s } = P(i[0]);
364
+ const { fieldToSort: o, orderBy: s } = k(i[0]);
346
365
  let a;
347
- o === r.series[0].x || o === X ? a = p.Category : "y" in r.series[0] && o === r.series[0].y && (a = p.YValue), a && a !== p.MultiAxes && (t = !1, e.orderOptions.data === void 0 && (e.orderOptions.data = {
366
+ o === t.series[0].x || o === Z ? a = p.Category : "y" in t.series[0] && o === t.series[0].y && (a = p.YValue), a && a !== p.MultiAxes && (r = !1, e.orderOptions.data === void 0 && (e.orderOptions.data = {
348
367
  orderType: a,
349
368
  orderBy: s?.toUpperCase() === "DESC" ? v.Descending : v.Ascending
350
369
  }));
351
370
  }
352
- t && (e.orderOptions.orderByFields = i);
371
+ r && (e.orderOptions.orderByFields = i);
353
372
  }
354
- return e.series.forEach((t) => {
355
- delete t.query?.orderByFields;
373
+ return e.series.forEach((r) => {
374
+ delete r.query?.orderByFields;
356
375
  }), e;
357
376
  }
358
- function L(r) {
359
- let e, i = r.orderOptions?.orderByFields?.[0];
360
- if (r.series?.length > 0) {
361
- const t = B(r.series), o = C(r.series);
362
- if (t !== c.PieSeries && o !== u.BarAndLineFromFields && (i = i ?? r.series[0].x), i && !se(i)) {
363
- const { fieldToSort: s, orderBy: a } = P(i);
364
- let f;
365
- s === r.series[0].x || s === X ? f = p.Category : "y" in r.series[0] && s === r.series[0].y && (f = p.YValue), f && f !== p.MultiAxes && (e = {
366
- orderType: f,
377
+ function P(t) {
378
+ let e, i = t.orderOptions?.orderByFields?.[0];
379
+ if (t.series?.length > 0) {
380
+ const r = h(t.series), o = O(t.series);
381
+ if (r !== c.PieSeries && o !== f.BarAndLineFromFields && (i = i ?? t.series[0].x), i && !ae(i)) {
382
+ const { fieldToSort: s, orderBy: a } = k(i);
383
+ let u;
384
+ s === t.series[0].x || s === Z ? u = p.Category : "y" in t.series[0] && s === t.series[0].y && (u = p.YValue), u && u !== p.MultiAxes && (e = {
385
+ orderType: u,
367
386
  orderBy: a?.toUpperCase() === "DESC" ? v.Descending : v.Ascending
368
387
  });
369
388
  }
370
389
  }
371
390
  return e;
372
391
  }
373
- function Ae(r) {
374
- const e = n(r), i = r, t = r, o = r, s = r, a = r;
392
+ function Me(t) {
393
+ const e = n(t), i = t, r = t, o = t, s = t, a = t;
375
394
  if (e) {
376
395
  if (e.orderOptions?.series === void 0 && i.sortOptions?.sortSeriesBy !== void 0 && (e.orderOptions ??= {}, e.orderOptions.series = {
377
- preferLabel: Te(
378
- t.sortLabelsBy ?? i.sortOptions.sortSeriesBy.sortType
396
+ preferLabel: xe(
397
+ r.sortLabelsBy ?? i.sortOptions.sortSeriesBy.sortType
379
398
  ),
380
399
  orderBy: i.sortOptions.sortSeriesBy.sortOrder ?? v.Ascending
381
- }), t.sortLabelsBy === "originalValue" || s.orderOptions?.data?.preferDataLabel === !1 || a.orderOptions?.data?.preferLabel === !1)
400
+ }), r.sortLabelsBy === "originalValue" || s.orderOptions?.data?.preferDataLabel === !1 || a.orderOptions?.data?.preferLabel === !1)
382
401
  e.orderOptions?.data && delete e.orderOptions.data;
383
402
  else if (e.orderOptions?.data === void 0)
384
- if (B(e.series) === c.BoxPlotSeries) {
385
- if (t.sortLabelsBy || o.sortOptions?.sortDataBy !== void 0) {
386
- const g = J(o.sortOptions?.sortDataBy?.sortType);
387
- g && g !== p.MultiAxes && (e.orderOptions ??= {}, e.orderOptions.data = {
388
- orderType: g,
403
+ if (h(e.series) === c.BoxPlotSeries) {
404
+ if (r.sortLabelsBy || o.sortOptions?.sortDataBy !== void 0) {
405
+ const y = U(o.sortOptions?.sortDataBy?.sortType);
406
+ y && y !== p.MultiAxes && (e.orderOptions ??= {}, e.orderOptions.data = {
407
+ orderType: y,
389
408
  orderBy: o.sortOptions?.sortDataBy?.sortOrder ?? v.Ascending
390
409
  });
391
410
  }
392
411
  } else {
393
- const g = L(e);
394
- g !== void 0 && (e.orderOptions ??= {}, e.orderOptions.data = g);
412
+ const y = P(e);
413
+ y !== void 0 && (e.orderOptions ??= {}, e.orderOptions.data = y);
395
414
  }
396
415
  "sortLabelsBy" in e && delete e.sortLabelsBy, "sortOptions" in e && delete e.sortOptions;
397
416
  }
398
417
  return e;
399
418
  }
400
- function De(r) {
401
- const e = n(r);
419
+ function Ie(t) {
420
+ const e = n(t);
402
421
  if (e) {
403
- const i = C(e.series);
404
- if ((i === u.BarAndLineFromFields || i === u.PieFromFields) && e.orderOptions?.data === void 0 && e.orderOptions?.orderByFields !== void 0) {
405
- const t = L(e);
406
- t !== void 0 && (e.orderOptions ??= {}, e.orderOptions.data = t, delete e.orderOptions.orderByFields);
422
+ const i = O(e.series);
423
+ if ((i === f.BarAndLineFromFields || i === f.PieFromFields) && e.orderOptions?.data === void 0 && e.orderOptions?.orderByFields !== void 0) {
424
+ const r = P(e);
425
+ r !== void 0 && (e.orderOptions ??= {}, e.orderOptions.data = r, delete e.orderOptions.orderByFields);
407
426
  }
408
427
  }
409
428
  return e;
410
429
  }
411
- function Me(r) {
412
- const e = n(r);
413
- return e.horizontalAxisLabelsBehavior === k.NONE && (e.horizontalAxisLabelsBehavior = te.Hide), e.verticalAxisLabelsBehavior === k.NONE && (e.verticalAxisLabelsBehavior = te.Hide), e;
430
+ function We(t) {
431
+ const e = n(t);
432
+ return e.horizontalAxisLabelsBehavior === L.NONE && (e.horizontalAxisLabelsBehavior = te.Hide), e.verticalAxisLabelsBehavior === L.NONE && (e.verticalAxisLabelsBehavior = te.Hide), e;
414
433
  }
415
- function We(r) {
416
- const e = n(r), i = e.series[0];
417
- if (i && !i.temporalBinning && Ue(e.series[0]) && ("timeIntervalSize" in i || "timeIntervalUnits" in i || "timeAggregationType" in i || "trimIncompleteTimeInterval" in i || "nullPolicy" in i)) {
434
+ function qe(t) {
435
+ const e = n(t), i = e.series[0];
436
+ if (i && !i.temporalBinning && er(e.series[0]) && ("timeIntervalSize" in i || "timeIntervalUnits" in i || "timeAggregationType" in i || "trimIncompleteTimeInterval" in i || "nullPolicy" in i)) {
418
437
  if (i.temporalBinning = {}, i.timeIntervalSize !== void 0 && (i.temporalBinning.size = i.timeIntervalSize, delete i.timeIntervalSize), i.timeIntervalUnits) {
419
- let t;
438
+ let r;
420
439
  switch (i.timeIntervalUnits) {
421
440
  case "esriTimeUnitsSeconds":
422
- t = b.Second;
441
+ r = C.Second;
423
442
  break;
424
443
  case "esriTimeUnitsMinutes":
425
- t = b.Minute;
444
+ r = C.Minute;
426
445
  break;
427
446
  case "esriTimeUnitsHours":
428
- t = b.Hour;
447
+ r = C.Hour;
429
448
  break;
430
449
  case "esriTimeUnitsDays":
431
- t = b.Day;
450
+ r = C.Day;
432
451
  break;
433
452
  case "esriTimeUnitsWeeks":
434
- t = b.Week;
453
+ r = C.Week;
435
454
  break;
436
455
  case "esriTimeUnitsMonths":
437
- t = b.Month;
456
+ r = C.Month;
438
457
  break;
439
458
  case "esriTimeUnitsYears":
440
- t = b.Year;
459
+ r = C.Year;
441
460
  break;
442
461
  }
443
- t !== void 0 && (i.temporalBinning.unit = t), delete i.timeIntervalUnits;
462
+ r !== void 0 && (i.temporalBinning.unit = r), delete i.timeIntervalUnits;
444
463
  }
445
464
  i.timeAggregationType && (i.temporalBinning.timeAggregationType = i.timeAggregationType, delete i.timeAggregationType), i.trimIncompleteTimeInterval !== void 0 && (i.temporalBinning.trimIncompleteTimeInterval = i.trimIncompleteTimeInterval, delete i.trimIncompleteTimeInterval), i.nullPolicy && (i.temporalBinning.nullPolicy = i.nullPolicy, delete i.nullPolicy);
446
465
  }
447
466
  return e;
448
467
  }
449
- function qe(r) {
450
- const e = n(r);
468
+ function Re(t) {
469
+ const e = n(t);
451
470
  return e.series.forEach((i) => {
452
- i.query?.outStatistics?.forEach((t) => {
453
- t.statisticType === "percentile_cont" ? t.statisticType = T.ContinuousPercentile : t.statisticType === "percentile_disc" && (t.statisticType = T.DiscretePercentile);
471
+ i.query?.outStatistics?.forEach((r) => {
472
+ r.statisticType === "percentile_cont" ? r.statisticType = F.ContinuousPercentile : r.statisticType === "percentile_disc" && (r.statisticType = F.DiscretePercentile);
454
473
  });
455
474
  }), e;
456
475
  }
457
- function Ie(r) {
458
- const e = n(r);
476
+ function Ee(t) {
477
+ const e = n(t);
459
478
  return e.subtitle === void 0 && e.subTitle && (e.subtitle = e.subTitle), delete e.subTitle, e;
460
479
  }
461
- function Ee(r) {
462
- const e = n(r), i = e.series[0];
480
+ function Ne(t) {
481
+ const e = n(t), i = e.series[0];
463
482
  return i?.temporalBinning && delete i.temporalBinning?.type, e;
464
483
  }
465
- function Ne(r) {
466
- const e = n(r), i = e.series[0], t = r;
467
- return t.series[0]?.xTemporalBinning && (i.xTemporalBinning = {
468
- ...t.series[0]?.xTemporalBinning,
484
+ function Ve(t) {
485
+ const e = n(t), i = e.series[0], r = t;
486
+ return r.series[0]?.xTemporalBinning && (i.xTemporalBinning = {
487
+ ...r.series[0]?.xTemporalBinning,
469
488
  type: c.CalendarDateParts
470
- }), t.series[0]?.yTemporalBinning && (i.yTemporalBinning = {
471
- ...t.series[0]?.yTemporalBinning,
489
+ }), r.series[0]?.yTemporalBinning && (i.yTemporalBinning = {
490
+ ...r.series[0]?.yTemporalBinning,
472
491
  type: c.CalendarDateParts
473
492
  }), e;
474
493
  }
475
- function Ve(r) {
476
- let e = n(r);
477
- return e = ge(e), e;
478
- }
479
- function w(r) {
480
- let e = n(r);
494
+ function Ge(t) {
495
+ let e = n(t);
481
496
  return e = he(e), e;
482
497
  }
483
- function A(r) {
484
- let e = n(r);
485
- return e = Be(e), e;
486
- }
487
- function D(r) {
488
- let e = n(r);
489
- return e = Z(e), e;
498
+ function w(t) {
499
+ let e = n(t);
500
+ return e = Ce(e), e;
490
501
  }
491
- function M(r) {
492
- let e = n(r);
502
+ function A(t) {
503
+ let e = n(t);
493
504
  return e = be(e), e;
494
505
  }
495
- function W(r) {
496
- let e = n(r);
506
+ function D(t) {
507
+ let e = n(t);
508
+ return e = J(e), e;
509
+ }
510
+ function M(t) {
511
+ let e = n(t);
497
512
  return e = Fe(e), e;
498
513
  }
499
- function q(r) {
500
- let e = n(r);
501
- return e = xe(e), e;
514
+ function I(t) {
515
+ let e = n(t);
516
+ return e = Te(e), e;
502
517
  }
503
- function I(r) {
504
- let e = n(r);
505
- return e = Ce(e), e;
518
+ function W(t) {
519
+ let e = n(t);
520
+ return e = Oe(e), e;
506
521
  }
507
- function E(r) {
508
- let e = n(r);
522
+ function q(t) {
523
+ let e = n(t);
509
524
  return e = Pe(e), e;
510
525
  }
511
- function N(r) {
512
- return ke(r);
526
+ function R(t) {
527
+ let e = n(t);
528
+ return e = Le(e), e;
513
529
  }
514
- function V(r) {
515
- let e = n(r);
516
- return oe(e) && (e = Le(e)), e;
530
+ function E(t) {
531
+ return Ae(t);
517
532
  }
518
- function G(r) {
519
- return Oe(r);
533
+ function N(t) {
534
+ let e = n(t);
535
+ return se(e) && (e = we(e)), e;
520
536
  }
521
- function _(r) {
522
- return Ae(r);
537
+ function V(t) {
538
+ return ke(t);
523
539
  }
524
- function j(r) {
525
- return me(r);
540
+ function G(t) {
541
+ return Me(t);
526
542
  }
527
- function z(r) {
528
- return De(r);
543
+ function _(t) {
544
+ return ge(t);
529
545
  }
530
- function H(r) {
531
- return Me(r);
546
+ function j(t) {
547
+ return Ie(t);
532
548
  }
533
- function R(r) {
534
- return We(r);
549
+ function z(t) {
550
+ return We(t);
535
551
  }
536
- function $(r) {
537
- return qe(r);
552
+ function H(t) {
553
+ return qe(t);
538
554
  }
539
- function Q(r) {
540
- let e = n(r);
541
- return e = Z(e), Ie(e);
555
+ function $(t) {
556
+ return Re(t);
542
557
  }
543
- function Y(r) {
544
- let e = n(r);
545
- return e = Ee(e), e;
558
+ function Q(t) {
559
+ let e = n(t);
560
+ return e = J(e), Ee(e);
546
561
  }
547
- function K(r) {
548
- let e = n(r);
562
+ function Y(t) {
563
+ let e = n(t);
549
564
  return e = Ne(e), e;
550
565
  }
551
- function Ge(r) {
552
- const { versionsToConvert: e = [], configToUpdate: i } = r;
553
- let t = n(i);
554
- return e.length > 0 && t !== void 0 && (t = we(t), e.includes(ie) || e.includes(Qe) ? (t = Ve(t), t = w(t), t = A(t), t = D(t), t = M(t), t = W(t), t = q(t), t = I(t), t = E(t), t = N(t), t = V(t), t = G(t), t = _(t), t = j(t), t = z(t), t = H(t), t = R(t), t = $(t), t = Q(t), t = Y(t), t = K(t)) : e.forEach((o) => {
555
- if (t !== void 0)
566
+ function K(t) {
567
+ let e = n(t);
568
+ return e = Ve(e), e;
569
+ }
570
+ function X(t) {
571
+ let e = n(t);
572
+ return e = mr(e), e;
573
+ }
574
+ function _e(t) {
575
+ const { versionsToConvert: e, configToUpdate: i } = t;
576
+ let r = n(i);
577
+ return e.length > 0 && r !== void 0 && (r = De(r), e.includes(oe) || e.includes(Ye) ? (r = Ge(r), r = w(r), r = A(r), r = D(r), r = M(r), r = I(r), r = W(r), r = q(r), r = R(r), r = E(r), r = N(r), r = V(r), r = G(r), r = _(r), r = j(r), r = z(r), r = H(r), r = $(r), r = Q(r), r = Y(r), r = K(r), r = X(r)) : e.forEach((o) => {
578
+ if (r !== void 0)
556
579
  switch (o) {
557
580
  case "1.0.1":
558
- t = w(t);
581
+ r = w(r);
559
582
  break;
560
583
  case "3.4.0":
561
- t = A(t);
584
+ r = A(r);
562
585
  break;
563
586
  case "4.0.0":
564
- t = D(t);
587
+ r = D(r);
565
588
  break;
566
589
  case "4.0.1":
567
- t = M(t);
590
+ r = M(r);
568
591
  break;
569
592
  case "6.4.0":
570
- t = W(t);
593
+ r = I(r);
571
594
  break;
572
595
  case "7.5.1":
573
- t = q(t);
596
+ r = W(r);
574
597
  break;
575
598
  case "8.0.0":
576
- t = I(t);
599
+ r = q(r);
577
600
  break;
578
601
  case "9.2.0":
579
- t = E(t);
602
+ r = R(r);
580
603
  break;
581
604
  case "9.7.0":
582
- t = N(t);
605
+ r = E(r);
583
606
  break;
584
607
  case "10.0.0":
585
- t = V(t);
608
+ r = N(r);
586
609
  break;
587
610
  case "11.0.0":
588
- t = G(t);
611
+ r = V(r);
589
612
  break;
590
613
  case "14.0.1":
591
- t = _(t);
614
+ r = G(r);
592
615
  break;
593
616
  case "16.0.0":
594
- t = j(t);
617
+ r = _(r);
595
618
  break;
596
619
  case "16.1.0":
597
- t = z(t);
620
+ r = j(r);
598
621
  break;
599
622
  case "18.1.3":
600
- t = H(t);
623
+ r = z(r);
601
624
  break;
602
625
  case "20.1.0":
603
- t = R(t);
626
+ r = H(r);
604
627
  break;
605
628
  case "21.0.0":
606
- t = $(t);
629
+ r = $(r);
607
630
  break;
608
631
  case "23.2.0":
609
- t = Q(t);
632
+ r = Q(r);
610
633
  break;
611
634
  case "24.7.0":
612
- t = Y(t);
635
+ r = Y(r);
613
636
  break;
614
637
  case "24.8.0":
615
- t = K(t);
638
+ r = K(r);
639
+ break;
640
+ case "25.0.0":
641
+ r = X(r);
616
642
  break;
617
643
  }
618
- }), t.version = et), t;
619
- }
620
- async function bt(r, e, i, t) {
621
- let o = r;
622
- if (r) {
623
- const s = He(e);
624
- await s?.load({ signal: t }), o = await ve({ configToUpdate: r, layer: s, chartContainer: i, abortSignal: t });
625
- const a = r.version ?? ie, { versionStatus: f, versions: g } = Re(a);
626
- (f === ee.Older || f === ee.Unrecognized) && (o = Ge({
627
- versionsToConvert: g,
644
+ }), r.version = rr), r;
645
+ }
646
+ async function Pr(t, e, i, r) {
647
+ let o = t;
648
+ if (t) {
649
+ const s = $e(e);
650
+ await s?.load({ signal: r }), o = await Be({ configToUpdate: t, layer: s, chartContainer: i, abortSignal: r });
651
+ const a = t.version ?? oe, { versionStatus: u, versions: y } = Qe(a);
652
+ (u === re.Older || u === re.Unrecognized) && (o = _e({
653
+ versionsToConvert: y,
628
654
  configToUpdate: o
629
655
  }));
630
656
  }
631
657
  return o;
632
658
  }
633
- const Ft = {
634
- adjustAxes: ae,
635
- adjustSeries: de,
636
- matchChartFieldsToLayerFields: le,
637
- resetLegendMaxHeight: ye,
638
- moveSeriesQueryExtent: Be,
639
- moveSeriesRotatedPropToChart: Z,
640
- renameDataSourceProperties: be,
641
- copyDataSourceFilterToConfig: Fe,
642
- adjustPieFromFieldsDefaultNameAndValue: ge,
643
- removeSpacingPropertyFromGauge: he,
644
- moveBoxPlotSeriesPropsToChart: ce,
645
- movePieSeriesSortLabelsPropToChart: xe,
646
- getProBoxPlotSortDataOption: ue,
647
- isBoxPlotConfigWithMeanLinesFromPro: fe,
648
- preventDuplicatedIds: Se,
649
- adjustBoxPlotConfig: pe,
650
- convertSortSeriesByToObject: Ce,
651
- moveBoxPlotSortDataByProp: Le,
652
- handleColorMatchChanges: Pe,
653
- moveScrollbarVisible: ke,
654
- moveSeriesStackedTypePropToChart: Oe,
655
- convertBoxplotOldToNewDataSortType: J,
656
- getDataOrderFromOrderByFields: L,
657
- convertWebChartDataValueTypes: Te,
658
- moveOrConvertSeriesOrderByFieldsToChartOrderOptions: we,
659
- convertWebChartLabelBehaviorNoneToHide: Me,
660
- handleOrderOptionsChanges: Ae,
661
- applyDataOrderInstructionForFromFieldsCharts: De,
662
- convertTemporalBinningProps: We,
663
- convertRESTStatisticTypeToWebChartStatisticType: qe,
664
- renameChartSubtitle: Ie,
665
- applyMandatoryConversions: ve,
666
- convertTo1x0x1: Ve,
659
+ const Lr = {
660
+ adjustAxes: le,
661
+ adjustSeries: ce,
662
+ matchChartFieldsToLayerFields: ue,
663
+ resetLegendMaxHeight: Se,
664
+ moveSeriesQueryExtent: be,
665
+ moveSeriesRotatedPropToChart: J,
666
+ renameDataSourceProperties: Fe,
667
+ copyDataSourceFilterToConfig: Te,
668
+ adjustPieFromFieldsDefaultNameAndValue: he,
669
+ removeSpacingPropertyFromGauge: Ce,
670
+ moveBoxPlotSeriesPropsToChart: fe,
671
+ movePieSeriesSortLabelsPropToChart: Oe,
672
+ getProBoxPlotSortDataOption: pe,
673
+ isBoxPlotConfigWithMeanLinesFromPro: ye,
674
+ preventDuplicatedIds: ve,
675
+ adjustBoxPlotConfig: me,
676
+ convertSortSeriesByToObject: Pe,
677
+ moveBoxPlotSortDataByProp: we,
678
+ handleColorMatchChanges: Le,
679
+ moveScrollbarVisible: Ae,
680
+ moveSeriesStackedTypePropToChart: ke,
681
+ convertBoxplotOldToNewDataSortType: U,
682
+ getDataOrderFromOrderByFields: P,
683
+ convertWebChartDataValueTypes: xe,
684
+ moveOrConvertSeriesOrderByFieldsToChartOrderOptions: De,
685
+ convertWebChartLabelBehaviorNoneToHide: We,
686
+ handleOrderOptionsChanges: Me,
687
+ applyDataOrderInstructionForFromFieldsCharts: Ie,
688
+ convertTemporalBinningProps: qe,
689
+ convertRESTStatisticTypeToWebChartStatisticType: Re,
690
+ renameChartSubtitle: Ee,
691
+ applyMandatoryConversions: Be,
692
+ convertTo1x0x1: Ge,
667
693
  convertTo2x0x0: w,
668
694
  convertTo3x5x0: A,
669
695
  convertTo4x0x1: D,
670
696
  convertTo5x0x0: M,
671
- convertTo7x0x0: W,
672
- convertTo7x6x0: q,
673
- convertTo8x0x1: I,
674
- convertTo9x3x0: E,
675
- convertTo10x0x0: N,
676
- convertTo11x0x0: V,
677
- convertTo12x0x0: G,
678
- convertTo15x0x0: _,
679
- convertTo16x1x0: j,
680
- convertTo16x1x1: z,
681
- convertTo19x0x0: H,
682
- convertTo20x2x0: R,
697
+ convertTo7x0x0: I,
698
+ convertTo7x6x0: W,
699
+ convertTo8x0x1: q,
700
+ convertTo9x3x0: R,
701
+ convertTo10x0x0: E,
702
+ convertTo11x0x0: N,
703
+ convertTo12x0x0: V,
704
+ convertTo15x0x0: G,
705
+ convertTo16x1x0: _,
706
+ convertTo16x1x1: j,
707
+ convertTo19x0x0: z,
708
+ convertTo20x2x0: H,
683
709
  convertTo21x1x0: $,
684
710
  convertTo23x3x0: Q,
685
711
  convertTo24x8x0: Y,
686
712
  convertTo25x0x0: K,
687
- convertTemporalBinningProps2: Ee,
688
- transformPropsInHeatChart: Ne,
689
- applyConversions: Ge,
690
- convertDataSourceToILayer: me,
691
- applyDefaultFirstDayOfWeek: ne
713
+ convertTo25x1x0: X,
714
+ convertTemporalBinningProps2: Ne,
715
+ transformPropsInHeatChart: Ve,
716
+ applyConversions: _e,
717
+ convertDataSourceToILayer: ge,
718
+ applyDefaultFirstDayOfWeek: de
692
719
  };
693
720
  export {
694
- bt as a,
695
- Ft as c
721
+ Pr as a,
722
+ Lr as c
696
723
  };