@arcgis/charts-components 5.2.0-next.60 → 5.2.0-next.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. package/dist/cdn/{BXBY6D2F.js → 3IUZSUBJ.js} +1 -1
  2. package/dist/cdn/{DPTA2AET.js → 4DXQ255M.js} +1 -1
  3. package/dist/cdn/{67QYTLMM.js → 4F2MTKVF.js} +1 -1
  4. package/dist/cdn/4HNA5BEL.js +2 -0
  5. package/dist/cdn/{PLEC3GNT.js → 4II4V3R4.js} +1 -1
  6. package/dist/cdn/{ZWIF7LHW.js → 4SV3ARJE.js} +1 -1
  7. package/dist/cdn/{WTJ2NJ76.js → 5K4LYQAP.js} +1 -1
  8. package/dist/cdn/{2RYKKN36.js → 65QZ37RL.js} +1 -1
  9. package/dist/cdn/{O3VKOV2W.js → 6T37GQMM.js} +1 -1
  10. package/dist/cdn/{4COV22K4.js → 6ZJ4DH7D.js} +1 -1
  11. package/dist/cdn/{LGTXQIF7.js → 7H7MFSEY.js} +1 -1
  12. package/dist/cdn/{3YCGBAQY.js → 7JW7BKCY.js} +1 -1
  13. package/dist/cdn/{GARBFC7Q.js → 7Q5SYLKV.js} +1 -1
  14. package/dist/cdn/{BLZLMGO6.js → AJAOQCPS.js} +1 -1
  15. package/dist/cdn/{3AYXOX4U.js → AMM6O6DA.js} +1 -1
  16. package/dist/cdn/{JBFVGQSP.js → BIABAOQA.js} +1 -1
  17. package/dist/cdn/{Y5ZH7VS4.js → BP3IZMZQ.js} +1 -1
  18. package/dist/cdn/{WFW6BNDT.js → CNIDLTWS.js} +1 -1
  19. package/dist/cdn/{DGV6S2W3.js → CUW7EDSM.js} +1 -1
  20. package/dist/cdn/{QZCTLQBM.js → D5IKYXWS.js} +1 -1
  21. package/dist/cdn/DA4QOTYN.js +2 -0
  22. package/dist/cdn/{XM2GVJT3.js → DQXO7PWX.js} +1 -1
  23. package/dist/cdn/{6MNV7FJC.js → DT4C4JZW.js} +1 -1
  24. package/dist/cdn/{SYVPFDIW.js → EEF2GZWF.js} +1 -1
  25. package/dist/cdn/ELRXL4GL.js +2 -0
  26. package/dist/cdn/{6DOANSRL.js → FLA3PJ5I.js} +18 -18
  27. package/dist/cdn/{EUOJG5H6.js → FZOZWZSG.js} +1 -1
  28. package/dist/cdn/{AYUYEY5H.js → G3I2WY7S.js} +1 -1
  29. package/dist/cdn/{MJTWR33N.js → GK3ESMF2.js} +1 -1
  30. package/dist/cdn/{I3XBTQKJ.js → GQKDPSP6.js} +1 -1
  31. package/dist/cdn/{Z3LGGHZN.js → GRIVRWCF.js} +1 -1
  32. package/dist/cdn/{OWWQ5SYW.js → HHZSG3K6.js} +1 -1
  33. package/dist/cdn/{ZGBULDPL.js → IB5R6XBE.js} +1 -1
  34. package/dist/cdn/{EOHKNJSJ.js → INSAYWFB.js} +1 -1
  35. package/dist/cdn/{ZLXYBOM3.js → IP7NR32G.js} +1 -1
  36. package/dist/cdn/IPMFDZBI.js +2 -0
  37. package/dist/cdn/{JGESKW6S.js → JBO56HPJ.js} +1 -1
  38. package/dist/cdn/{RICA7GJM.js → JE4ZLQEX.js} +1 -1
  39. package/dist/cdn/JT2CHRVO.js +2 -0
  40. package/dist/cdn/JYS5HVHP.js +2 -0
  41. package/dist/cdn/{HOIPLQXD.js → KBMGQ3H6.js} +1 -1
  42. package/dist/cdn/{EAV3KAS7.js → KO6XLCKT.js} +1 -1
  43. package/dist/cdn/LK7Y2TPS.js +2 -0
  44. package/dist/cdn/{5YP7P6S3.js → LNMXGS7N.js} +1 -1
  45. package/dist/cdn/{HUNN3ERX.js → LYLK7H23.js} +1 -1
  46. package/dist/cdn/{2G65P262.js → MIL4ALAU.js} +1 -1
  47. package/dist/cdn/{NK66D65H.js → MIMPZBTK.js} +1 -1
  48. package/dist/cdn/{EMBMJCFZ.js → MN5LEOFQ.js} +1 -1
  49. package/dist/cdn/{5EYVH3PA.js → MRA3XRKD.js} +1 -1
  50. package/dist/cdn/{MXE4VPZS.js → MYAMCWA2.js} +1 -1
  51. package/dist/cdn/{TEWEPSIO.js → N2BF3AIP.js} +1 -1
  52. package/dist/cdn/{SUNHJPBW.js → NQYCZQ27.js} +1 -1
  53. package/dist/cdn/{UM7RIOCE.js → NSS4WWO7.js} +1 -1
  54. package/dist/cdn/{Y2WHHAAA.js → P7VFYZRI.js} +1 -1
  55. package/dist/cdn/{T62EETHJ.js → PZFM3BRK.js} +1 -1
  56. package/dist/cdn/PZUVU7CC.js +3 -0
  57. package/dist/cdn/{SQIKFO32.js → Q376XO5C.js} +1 -1
  58. package/dist/cdn/{VA6KJZ2Y.js → QGKWF4LR.js} +1 -1
  59. package/dist/cdn/QS6QHTAG.js +2 -0
  60. package/dist/cdn/{A36KQ6YP.js → QSFEGKYQ.js} +1 -1
  61. package/dist/cdn/{M744CFJ2.js → QXN2LIUA.js} +1 -1
  62. package/dist/cdn/{QTSF2LK7.js → R7VPFCG2.js} +1 -1
  63. package/dist/cdn/{BKK57XHL.js → S3YPXZ3Y.js} +1 -1
  64. package/dist/cdn/{J3CL6KB6.js → S7B57I24.js} +1 -1
  65. package/dist/cdn/{ANHW36VW.js → SSYHOPL2.js} +1 -1
  66. package/dist/cdn/{DBAM7MH7.js → SYU55EDE.js} +1 -1
  67. package/dist/cdn/{BHGOAHMJ.js → TGABTYRZ.js} +1 -1
  68. package/dist/cdn/{WZOHQJFB.js → TGXTKIAA.js} +1 -1
  69. package/dist/cdn/{JS6A5QAV.js → TRXKI7AQ.js} +1 -1
  70. package/dist/cdn/{KDCZQ6UT.js → V2POH2WS.js} +1 -1
  71. package/dist/cdn/{ISK4QVLY.js → VZPJL27P.js} +1 -1
  72. package/dist/cdn/WOE4UHYG.js +2 -0
  73. package/dist/cdn/WUUBA4AY.js +2 -0
  74. package/dist/cdn/{P5QEJOJS.js → X3B7R2CE.js} +1 -1
  75. package/dist/cdn/{JYITKARU.js → X4RUTR6U.js} +1 -1
  76. package/dist/cdn/{5MPXETTU.js → X7BEP5KL.js} +1 -1
  77. package/dist/cdn/{INISFVAK.js → XM6OTYSW.js} +1 -1
  78. package/dist/cdn/XS5G7ML2.js +2 -0
  79. package/dist/cdn/{KWA7OWHO.js → YN4QD76O.js} +1 -1
  80. package/dist/cdn/YQJBJRP7.js +2 -0
  81. package/dist/cdn/{L7TUV2MY.js → YWJTHRQP.js} +1 -1
  82. package/dist/cdn/{7DIQIFKR.js → ZOZ72K4S.js} +1 -1
  83. package/dist/cdn/index.js +1 -1
  84. package/dist/cdn/model/shared/setup-utils.js +1 -1
  85. package/dist/chunks/bar-chart-model.js +10 -10
  86. package/dist/chunks/box-plot-data.js +271 -279
  87. package/dist/chunks/box-plot-model.js +161 -146
  88. package/dist/chunks/chart-model.js +1 -1
  89. package/dist/chunks/class-breaks.js +66 -66
  90. package/dist/chunks/combo-bar-line-chart-model.js +12 -12
  91. package/dist/chunks/data.js +1 -1
  92. package/dist/chunks/gauge-model.js +1 -1
  93. package/dist/chunks/heat-chart-model.js +25 -25
  94. package/dist/chunks/histogram-model.js +1 -1
  95. package/dist/chunks/index2.js +2026 -2088
  96. package/dist/chunks/index4.js +1 -1
  97. package/dist/chunks/line-chart-model.js +11 -11
  98. package/dist/chunks/model-with-x-guides.js +5 -5
  99. package/dist/chunks/model-with-y-guides.js +33 -48
  100. package/dist/chunks/pie-chart-data.js +165 -189
  101. package/dist/chunks/pie-chart-model.js +9 -9
  102. package/dist/chunks/radar-chart-model.js +7 -7
  103. package/dist/chunks/scatterplot-model.js +1 -1
  104. package/dist/chunks/serial-chart-data.js +745 -770
  105. package/dist/chunks/serial-chart-model.js +19 -11
  106. package/dist/chunks/utils.js +36 -38
  107. package/dist/chunks/web-component-utils.js +38 -38
  108. package/dist/chunks/x-bounds.js +1 -1
  109. package/dist/components/arcgis-chart/customElement.d.ts +53 -11
  110. package/dist/components/arcgis-chart/customElement.js +2226 -2210
  111. package/dist/components/arcgis-charts-config-create-flow/customElement.js +1 -1
  112. package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +67 -68
  113. package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +5 -5
  114. package/dist/docs/api.json +1 -1
  115. package/dist/docs/docs.json +1 -1
  116. package/dist/docs/vscode.html-custom-data.json +1 -1
  117. package/dist/docs/web-types.json +1 -1
  118. package/dist/index.js +171 -172
  119. package/dist/model/box-plot-model/box-plot-model.d.ts +7 -1
  120. package/dist/model/heat-chart-model/heat-chart-model.d.ts +20 -0
  121. package/dist/model/mixins/model-with-multi-axes.d.ts +61 -98
  122. package/dist/model/serial-chart-model/serial-chart-model.d.ts +12 -1
  123. package/dist/utils/chart-config/converter/index.js +26 -26
  124. package/dist/utils/data/categorical-data/index.d.ts +1 -1
  125. package/dist/utils/data/index.d.ts +1 -2
  126. package/dist/utils/layer/query-features/index.d.ts +2 -18
  127. package/dist/utils/layer/query-parser/index.d.ts +1 -2
  128. package/package.json +3 -3
  129. package/dist/cdn/3UHXOKCR.js +0 -2
  130. package/dist/cdn/54W4C75M.js +0 -2
  131. package/dist/cdn/6PIQ2O5S.js +0 -2
  132. package/dist/cdn/7CMQGTU6.js +0 -2
  133. package/dist/cdn/EBSQRCQQ.js +0 -2
  134. package/dist/cdn/EDVN42ME.js +0 -2
  135. package/dist/cdn/H2EMIJME.js +0 -2
  136. package/dist/cdn/JEVWE6ER.js +0 -2
  137. package/dist/cdn/O3DJD5IR.js +0 -2
  138. package/dist/cdn/V5W5LNFT.js +0 -2
  139. package/dist/cdn/V6LKZUEZ.js +0 -3
  140. package/dist/cdn/XKZ44LA2.js +0 -2
  141. package/dist/cdn/YVSZN6IH.js +0 -2
@@ -1,271 +1,247 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { substitute as O } from "@arcgis/core/intl.js";
3
- import { memoize as W, isEmpty as $, isNull as M, cloneDeep as R } from "lodash-es";
3
+ import { isEmpty as E, isNull as M, cloneDeep as U } from "lodash-es";
4
4
  import { P as g, a as y } from "./common.js";
5
- import { g as A, u as q } from "./utils.js";
6
- import { g as U } from "./data.js";
5
+ import { g as x, u as L } from "./utils.js";
6
+ import { g as W } from "./data.js";
7
7
  import { b as k } from "./series-length.js";
8
- import { g as z } from "./utils2.js";
9
- import { X as G, w as _, a6 as X } from "./index.js";
8
+ import { g as _ } from "./utils2.js";
9
+ import { X, w as z, a6 as G } from "./index.js";
10
10
  import { d as P } from "./index3.js";
11
- import { m as h, ap as L, n as V } from "./index2.js";
12
- import { i as w } from "./index4.js";
13
- import { r as m, p as b, n as F, u as H } from "./chart-object-literals.js";
14
- import { i as J } from "./rest-js-object-literals.js";
15
- function v(r) {
16
- const { config: t, layerInfo: e, mode: i, commonStrings: s } = r, a = e !== void 0 ? D({ config: t, layerInfo: e, commonStrings: s, mode: i }) : "", l = k(t), d = w(t);
17
- return a === l || d;
11
+ import { m as A, ap as B, n as w } from "./index2.js";
12
+ import { i as K } from "./index4.js";
13
+ import { r as p, p as C, n as f } from "./chart-object-literals.js";
14
+ function v(s) {
15
+ const { config: t, layerInfo: e, mode: i, commonStrings: r } = s, o = e !== void 0 ? D({ config: t, layerInfo: e, commonStrings: r, mode: i }) : "", d = k(t), l = K(t);
16
+ return o === d || l;
18
17
  }
19
- function B(r) {
20
- const { config: t, layerInfo: e, mode: i, commonStrings: s } = r, a = e !== void 0 ? A({
18
+ function I(s) {
19
+ const { config: t, layerInfo: e, mode: i, commonStrings: r } = s, o = e !== void 0 ? x({
21
20
  config: t,
22
21
  layerInfo: e,
23
- commonStrings: s,
24
- numericFields: f(t),
25
- aggregationType: T(t, i)
26
- }) : "", l = z(1, t), d = w(t);
27
- return a === l || d;
22
+ commonStrings: r,
23
+ numericFields: m(t),
24
+ aggregationType: F(t, i)
25
+ }) : "", d = _(1, t), l = K(t);
26
+ return o === d || l;
28
27
  }
29
- const I = (r) => r.series?.[0]?.x ?? "";
30
- function Q(r, t) {
31
- const e = r.series?.[0];
32
- return [`${t === g.Category ? e.y : V} ${b.Descending}`];
28
+ const b = (s) => s.series?.[0]?.x ?? "";
29
+ function H(s, t) {
30
+ const e = s.series?.[0];
31
+ return [`${t === g.Category ? e.y : w} ${C.Descending}`];
33
32
  }
34
- const K = (r, t) => {
33
+ const Y = (s, t) => {
35
34
  let e = y.valueDesc;
36
- const i = r.orderOptions?.data?.orderType ?? Q(r, t), s = r.orderOptions?.data && "orderBy" in r.orderOptions.data ? r.orderOptions.data.orderBy : b.Descending;
37
- return i === F.Category && Array.isArray(s) ? e = y.customSort : i === F.Category ? s === b.Ascending ? e = y.labelAsc : e = y.labelDesc : s === b.Ascending ? e = y.valueAsc : e = y.valueDesc, e;
38
- }, f = W(
39
- // without memoizing, the worst case efficiency is O(series.length), best case is O(1)
40
- // with memoizing, the worst case efficiency for repeated calls becomes O(1)
41
- (r) => {
42
- let t = [];
43
- return t = r.series?.[0]?.query?.outStatistics?.map(
44
- (e) => e.onStatisticField
45
- ) ?? [r.series?.[0]?.y ?? ""], t.filter((e) => e !== "");
46
- },
47
- // using series array address as key, since a change to the numeric fields will always rebuild a fresh series array
48
- (r) => r.series
49
- ), T = (r, t) => {
50
- const e = f(r);
35
+ const i = s.orderOptions?.data?.orderType ?? H(s, t), r = s.orderOptions?.data && "orderBy" in s.orderOptions.data ? s.orderOptions.data.orderBy : C.Descending;
36
+ return i === f.Category && Array.isArray(r) ? e = y.customSort : i === f.Category ? r === C.Ascending ? e = y.labelAsc : e = y.labelDesc : r === C.Ascending ? e = y.valueAsc : e = y.valueDesc, e;
37
+ }, m = (s) => {
38
+ let t = [];
39
+ return t = s.series?.[0]?.query?.outStatistics?.map(
40
+ (e) => e.onStatisticField
41
+ ) ?? [s.series?.[0]?.y ?? ""], t.filter((e) => e !== "");
42
+ }, F = (s, t) => {
43
+ const e = m(s);
51
44
  let i;
52
- return t === g.Fields && e.length === 0 ? i = m.Sum : i = r.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? m.NoAggregation, i;
45
+ return t === g.Fields && e.length === 0 ? i = p.Sum : i = s.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? p.NoAggregation, i;
53
46
  };
54
- function Y(r) {
55
- const { config: t, layerInfo: e, mode: i, commonStrings: s } = r, a = L(e?.layer).idField, l = X(s, a), d = I(t), c = t.series[0]?.dataLabels, o = {
56
- ...l,
57
- x: i === g.Category ? d : h,
58
- slices: t.series?.[0]?.slices,
59
- dataLabels: {
60
- ...l.dataLabels,
61
- type: l.dataLabels?.type ?? H.Text,
62
- content: { ...l.dataLabels?.content, ...c?.content, type: J.TS },
63
- visible: c?.visible ?? !1
64
- },
65
- innerRadiusSize: t.series?.[0]?.innerRadius,
66
- sliceGrouping: t.series?.[0]?.sliceGrouping,
67
- dataLabelsCharacterLimit: t.series?.[0]?.dataLabelsCharacterLimit,
68
- numericValueFormat: t.series?.[0]?.numericValueFormat,
69
- percentValueFormat: t.series?.[0]?.percentValueFormat,
70
- displayCategoryOnDataLabel: t.series?.[0]?.displayCategoryOnDataLabel,
71
- displayNumericValueOnDataLabel: t.series?.[0]?.displayNumericValueOnDataLabel,
72
- displayPercentageOnDataLabel: t.series?.[0]?.displayPercentageOnDataLabel
73
- }, n = T(t, i);
74
- if (n !== m.NoAggregation && a !== void 0) {
75
- const u = `${n}_${a}_0`.toUpperCase();
76
- o.y = i === g.Category ? u : V, o.query = {
47
+ function j(s) {
48
+ const { config: t, layerInfo: e, mode: i, commonStrings: r } = s, o = B(e?.layer).idField, d = t.series[0] ?? G(r, o), l = b(t), c = {
49
+ ...d,
50
+ x: i === g.Category ? l : A
51
+ }, a = F(t, i);
52
+ if (a !== p.NoAggregation && o !== void 0) {
53
+ const n = `${a}_${o}_0`.toUpperCase();
54
+ c.y = i === g.Category ? n : w, c.query = {
77
55
  outStatistics: i === g.Category ? [
78
56
  {
79
- statisticType: n,
80
- onStatisticField: a,
81
- outStatisticFieldName: u
57
+ statisticType: a,
58
+ onStatisticField: o,
59
+ outStatisticFieldName: n
82
60
  }
83
61
  ] : []
84
62
  };
85
63
  }
86
- return i === g.Category && o.query !== void 0 ? o.query.groupByFieldsForStatistics = [d] : delete o.query?.groupByFieldsForStatistics, R(o);
64
+ return i === g.Category && c.query !== void 0 ? c.query.groupByFieldsForStatistics = [l] : delete c.query?.groupByFieldsForStatistics, U(c);
87
65
  }
88
- function D(r) {
89
- const { config: t, layerInfo: e, mode: i, commonStrings: s } = r, { layerFieldsInfo: a } = e, { idField: l, isTraditionalTypeOID: d } = L(e.layer), c = I(t), o = f(t), n = T(t, i), u = d && (o.length === 0 || o.includes(l)), p = _(n, s), x = u ? "" : o.map((E) => P(a ?? [], E)).join(", "), C = P(a ?? [], c);
66
+ function D(s) {
67
+ const { config: t, layerInfo: e, mode: i, commonStrings: r } = s, { layerFieldsInfo: o } = e, { idField: d, isTraditionalTypeOID: l } = B(e.layer), c = b(t), a = m(t), n = F(t, i), u = l && (a.length === 0 || a.includes(d)), h = z(n, r), q = u ? "" : a.map(($) => P(o ?? [], $)).join(", "), T = P(o ?? [], c);
90
68
  let S = "", N;
91
- return i === g.Fields ? N = o.length === 0 : N = c === "", N ? S = s.utilsStrings.chartType.pieChart : n === m.NoAggregation ? S = O(s.titleLabels.aggrFieldsByCategory, {
92
- aggregationFields: u ? l : x,
93
- category: C
94
- }) : n === m.Count ? S = O(s.titleLabels.aggrTypeCategory, {
95
- aggregationType: p,
96
- category: C
97
- }) : o.length > 0 && (C === h || $(C) || M(C) ? S = O(s.titleLabels.aggrTypeOfAggrFields, {
98
- aggregationType: p,
99
- aggregationFields: x
100
- }) : S = O(s.titleLabels.aggrTypeOfAggrFieldsByCategory, {
101
- aggregationType: p,
102
- aggregationFields: x,
103
- category: C
69
+ return i === g.Fields ? N = a.length === 0 : N = c === "", N ? S = r.utilsStrings.chartType.pieChart : n === p.NoAggregation ? S = O(r.titleLabels.aggrFieldsByCategory, {
70
+ aggregationFields: u ? d : q,
71
+ category: T
72
+ }) : n === p.Count ? S = O(r.titleLabels.aggrTypeCategory, {
73
+ aggregationType: h,
74
+ category: T
75
+ }) : a.length > 0 && (T === A || E(T) || M(T) ? S = O(r.titleLabels.aggrTypeOfAggrFields, {
76
+ aggregationType: h,
77
+ aggregationFields: q
78
+ }) : S = O(r.titleLabels.aggrTypeOfAggrFieldsByCategory, {
79
+ aggregationType: h,
80
+ aggregationFields: q,
81
+ category: T
104
82
  })), S;
105
83
  }
106
- const ue = (r) => {
107
- const { newSortOrderKind: t, config: e, orderByList: i } = r;
84
+ const de = (s) => {
85
+ const { newSortOrderKind: t, config: e, orderByList: i } = s;
108
86
  e.orderOptions ??= {}, t === y.customSort && i !== void 0 ? e.orderOptions.data = {
109
- orderType: F.Category,
87
+ orderType: f.Category,
110
88
  orderBy: [...i]
111
89
  } : e.orderOptions.data = {
112
- orderType: t === y.labelAsc || t === y.labelDesc ? F.Category : F.YValue,
113
- orderBy: t === y.labelAsc || t === y.valueAsc ? b.Ascending : b.Descending
90
+ orderType: t === y.labelAsc || t === y.labelDesc ? f.Category : f.YValue,
91
+ orderBy: t === y.labelAsc || t === y.valueAsc ? C.Ascending : C.Descending
114
92
  };
115
- }, pe = (r) => {
116
- const { newCategory: t, config: e, layerInfo: i, mode: s, commonStrings: a } = r, l = e.series?.length ?? 0, d = v({ config: e, layerInfo: i, commonStrings: a, mode: s }), c = B({ config: e, layerInfo: i, commonStrings: a, mode: s });
117
- if (e.series.forEach((o) => {
118
- o.x = s === g.Category ? t : h, o.query !== void 0 && t !== h ? o.query.groupByFieldsForStatistics = [t] : delete o.query?.groupByFieldsForStatistics;
119
- }), l === 0) {
120
- const o = [Y({ config: e, layerInfo: i, mode: s, commonStrings: a })];
121
- e.series = o;
93
+ }, ce = (s) => {
94
+ const { newCategory: t, config: e, layerInfo: i, mode: r, commonStrings: o } = s, d = e.series?.length ?? 0, l = v({ config: e, layerInfo: i, commonStrings: o, mode: r }), c = I({ config: e, layerInfo: i, commonStrings: o, mode: r });
95
+ if (e.series.forEach((a) => {
96
+ a.x = r === g.Category ? t : A, a.query !== void 0 && t !== A ? a.query.groupByFieldsForStatistics = [t] : delete a.query?.groupByFieldsForStatistics;
97
+ }), d === 0) {
98
+ const a = [j({ config: e, layerInfo: i, mode: r, commonStrings: o })];
99
+ e.series = a;
122
100
  }
123
101
  if (i !== void 0) {
124
102
  if (c) {
125
- const n = A({
103
+ const n = x({
126
104
  config: e,
127
105
  layerInfo: i,
128
- numericFields: f(e),
129
- aggregationType: T(e, s),
130
- commonStrings: a
106
+ numericFields: m(e),
107
+ aggregationType: F(e, r),
108
+ commonStrings: o
131
109
  });
132
- q(e, 1, n);
110
+ L(e, 1, n);
133
111
  }
134
- e.title && d && (e.title.content.text = D({ config: e, layerInfo: i, commonStrings: a, mode: s }));
135
- const o = s === g.Fields ? f(e).filter((n) => n !== L(i.layer).idField) : f(e);
136
- Z({ newNumericFields: o, config: e, layerInfo: i, mode: s, commonStrings: a });
112
+ e.title && l && (e.title.content.text = D({ config: e, layerInfo: i, commonStrings: o, mode: r }));
113
+ const a = r === g.Fields ? m(e).filter((n) => n !== B(i.layer).idField) : m(e);
114
+ J({ newNumericFields: a, config: e, layerInfo: i, mode: r, commonStrings: o });
137
115
  }
138
116
  };
139
- function j(r) {
140
- const { numericFields: t, aggregationType: e, config: i, layerInfo: s, mode: a, commonStrings: l } = r, { layerFieldsInfo: d } = s, c = [], o = Y({
117
+ function V(s) {
118
+ const { numericFields: t, aggregationType: e, config: i, layerInfo: r, mode: o, commonStrings: d } = s, { layerFieldsInfo: l } = r, c = [], a = j({
141
119
  config: i,
142
- layerInfo: s,
143
- mode: a,
144
- commonStrings: l
145
- }), n = {
146
- ...o,
147
- query: {
148
- ...o.query
149
- }
150
- };
151
- t.length <= 1 ? n.query.where = o.query?.where : delete n.query.where;
152
- const u = U({
120
+ layerInfo: r,
121
+ mode: o,
122
+ commonStrings: d
123
+ });
124
+ a.query || (a.query = {}), t.length > 1 && delete a.query?.where;
125
+ const n = W({
153
126
  config: i,
154
- xAxisField: I(i),
127
+ xAxisField: b(i),
155
128
  numericFields: t,
156
129
  aggregationType: e,
157
- mode: a,
158
- layer: s.layer,
159
- fieldList: d
130
+ mode: o,
131
+ layer: r.layer,
132
+ fieldList: l
160
133
  }).name;
161
- if (e !== m.NoAggregation)
162
- if (a === g.Category) {
134
+ if (e !== p.NoAggregation)
135
+ if (o === g.Category) {
163
136
  if (t.length > 0) {
164
- const p = t[0];
165
- n.query.outStatistics = [
137
+ const u = t[0];
138
+ a.query.outStatistics = [
166
139
  {
167
- ...o.query?.outStatistics?.[0] ?? {},
168
- onStatisticField: p,
169
- outStatisticFieldName: u,
140
+ ...a.query?.outStatistics?.[0] ?? {},
141
+ onStatisticField: u,
142
+ outStatisticFieldName: n,
170
143
  statisticType: e
171
144
  }
172
- ];
145
+ ], a.query.groupByFieldsForStatistics = [b(i)];
173
146
  }
174
- } else
175
- for (const p of t)
176
- n.query.outStatistics?.push({
177
- onStatisticField: p,
178
- outStatisticFieldName: p,
147
+ } else {
148
+ a.query.outStatistics = [];
149
+ for (const u of t)
150
+ a.query.outStatistics?.push({
151
+ onStatisticField: u,
152
+ outStatisticFieldName: u,
179
153
  statisticType: e
180
154
  });
155
+ delete a.query.groupByFieldsForStatistics;
156
+ }
181
157
  else
182
- n.query = {};
183
- n.y = u, c.push(n), i.series = c;
158
+ a.query = {};
159
+ a.y = n, c.push(a), i.series = c;
184
160
  }
185
- const me = (r) => {
186
- const { newAggregationType: t, config: e, layerInfo: i, mode: s, commonStrings: a } = r, l = f(e), d = v({ config: e, layerInfo: i, commonStrings: a, mode: s }), c = B({ config: e, layerInfo: i, commonStrings: a, mode: s });
187
- if (j({
161
+ const ge = (s) => {
162
+ const { newAggregationType: t, config: e, layerInfo: i, mode: r, commonStrings: o } = s, d = m(e), l = v({ config: e, layerInfo: i, commonStrings: o, mode: r }), c = I({ config: e, layerInfo: i, commonStrings: o, mode: r });
163
+ if (V({
188
164
  config: e,
189
165
  layerInfo: i,
190
- numericFields: l,
166
+ numericFields: d,
191
167
  aggregationType: t,
192
- commonStrings: a,
193
- mode: s
168
+ commonStrings: o,
169
+ mode: r
194
170
  }), c) {
195
- const p = A({
171
+ const h = x({
196
172
  config: e,
197
173
  layerInfo: i,
198
- commonStrings: a,
199
- numericFields: f(e),
200
- aggregationType: T(e, s)
174
+ commonStrings: o,
175
+ numericFields: m(e),
176
+ aggregationType: F(e, r)
201
177
  });
202
- q(e, 1, p);
178
+ L(e, 1, h);
203
179
  }
204
- e.title && d && (e.title.content.text = D({ config: e, layerInfo: i, commonStrings: a, mode: s }));
205
- const o = e.series?.[0]?.displayCategoryOnDataLabel, n = e.series?.[0]?.displayNumericValueOnDataLabel, u = e.series?.[0]?.displayPercentageOnDataLabel;
180
+ e.title && l && (e.title.content.text = D({ config: e, layerInfo: i, commonStrings: o, mode: r }));
181
+ const a = e.series?.[0]?.displayCategoryOnDataLabel, n = e.series?.[0]?.displayNumericValueOnDataLabel, u = e.series?.[0]?.displayPercentageOnDataLabel;
206
182
  e.legend = {
207
- ...e.legend ?? G(),
183
+ ...e.legend ?? X(),
208
184
  displayNumericValue: n,
209
185
  displayPercentage: u,
210
- displayCategory: o
186
+ displayCategory: a
211
187
  };
212
- }, Z = (r) => {
213
- let { newNumericFields: t } = r;
214
- const { config: e, layerInfo: i, mode: s, commonStrings: a } = r, l = L(i?.layer).idField;
215
- let d = T(e, s);
216
- const c = v({ config: e, layerInfo: i, commonStrings: a, mode: s }), o = B({ config: e, layerInfo: i, commonStrings: a, mode: s });
217
- if (t = t === "" ? [] : t, t = typeof t == "string" ? [t] : t, l !== void 0 && (t.length === 0 && s === g.Category ? (t.push(l), d = m.Count) : d === m.Count && t.length >= 1 && !t.includes(l) && (d = m.Sum)), i !== void 0) {
218
- if (j({
188
+ }, J = (s) => {
189
+ let { newNumericFields: t } = s;
190
+ const { config: e, layerInfo: i, mode: r, commonStrings: o } = s, d = B(i?.layer).idField;
191
+ let l = F(e, r);
192
+ const c = v({ config: e, layerInfo: i, commonStrings: o, mode: r }), a = I({ config: e, layerInfo: i, commonStrings: o, mode: r });
193
+ if (t = t === "" ? [] : t, t = typeof t == "string" ? [t] : t, d !== void 0 && (t.length === 0 && r === g.Category ? (t.push(d), l = p.Count) : l === p.Count && t.length >= 1 && !t.includes(d) && (l = p.Sum)), i !== void 0) {
194
+ if (V({
219
195
  config: e,
220
196
  layerInfo: i,
221
- commonStrings: a,
197
+ commonStrings: o,
222
198
  numericFields: t,
223
- aggregationType: d,
224
- mode: s
225
- }), o) {
226
- const n = A({
199
+ aggregationType: l,
200
+ mode: r
201
+ }), a) {
202
+ const n = x({
227
203
  config: e,
228
204
  layerInfo: i,
229
- commonStrings: a,
230
- numericFields: f(e),
231
- aggregationType: T(e, s)
205
+ commonStrings: o,
206
+ numericFields: m(e),
207
+ aggregationType: F(e, r)
232
208
  });
233
- q(e, 1, n);
209
+ L(e, 1, n);
234
210
  }
235
- e.title && c && (e.title.content.text = D({ config: e, layerInfo: i, commonStrings: a, mode: s }));
211
+ e.title && c && (e.title.content.text = D({ config: e, layerInfo: i, commonStrings: o, mode: r }));
236
212
  } else
237
213
  e.series.forEach((n) => {
238
214
  delete n.query, n.y = t[0];
239
215
  });
240
- }, fe = (r, t) => {
216
+ }, ye = (s, t) => {
241
217
  let e = [];
242
- const i = r.orderOptions?.data?.orderType, s = K(r, t), a = r.orderOptions?.data && "orderBy" in r.orderOptions.data ? r.orderOptions.data.orderBy : void 0;
243
- return s === y.customSort && i === F.Category && Array.isArray(a) && (e = a), e;
244
- }, Fe = (r) => {
245
- const { values: t, config: e, mode: i } = r;
218
+ const i = s.orderOptions?.data?.orderType, r = Y(s, t), o = s.orderOptions?.data && "orderBy" in s.orderOptions.data ? s.orderOptions.data.orderBy : void 0;
219
+ return r === y.customSort && i === f.Category && Array.isArray(o) && (e = o), e;
220
+ }, ue = (s) => {
221
+ const { values: t, config: e, mode: i } = s;
246
222
  e.orderOptions ??= {};
247
- const s = e.orderOptions?.data?.orderType;
248
- K(e, i) === y.customSort && s === F.Category && (e.orderOptions.data = {
249
- orderType: F.Category,
223
+ const r = e.orderOptions?.data?.orderType;
224
+ Y(e, i) === y.customSort && r === f.Category && (e.orderOptions.data = {
225
+ orderType: f.Category,
250
226
  orderBy: [...t]
251
227
  });
252
228
  };
253
- function Te(r) {
254
- const { category: t = "", numericFields: e = [], fallbackMode: i = g.Category } = r, s = t.trim() !== "" && t !== h;
255
- let a = i;
256
- return e.length > 1 ? a = g.Fields : s && e.length <= 1 && (a = g.Category), a;
229
+ function pe(s) {
230
+ const { category: t = "", numericFields: e = [], fallbackMode: i = g.Category } = s, r = t.trim() !== "" && t !== A;
231
+ let o = i;
232
+ return e.length > 1 ? o = g.Fields : r && e.length <= 1 && (o = g.Category), o;
257
233
  }
258
234
  export {
259
- f as a,
260
- T as b,
261
- Z as c,
262
- me as d,
263
- K as e,
264
- ue as f,
265
- I as g,
266
- fe as h,
267
- Te as i,
268
- Fe as j,
235
+ m as a,
236
+ F as b,
237
+ J as c,
238
+ ge as d,
239
+ Y as e,
240
+ de as f,
241
+ b as g,
242
+ ye as h,
243
+ pe as i,
244
+ ue as j,
269
245
  D as k,
270
- pe as s
246
+ ce as s
271
247
  };
@@ -1,8 +1,8 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { log as W } from "@arcgis/toolkit/log";
3
3
  import { u as p } from "./chart-object-literals.js";
4
- import { Y as L, ap as k } from "./index2.js";
5
- import { i as A } from "./index4.js";
4
+ import { Y as L, ap as A } from "./index2.js";
5
+ import { i as k } from "./index4.js";
6
6
  import { X as d, a8 as T, a2 as O, aB as V, a5 as w, a6 as G } from "./index.js";
7
7
  import { C as h } from "./index3.js";
8
8
  import { C as z } from "./chart-model.js";
@@ -10,7 +10,7 @@ import { m as s } from "./model-setter.js";
10
10
  import { b as g, P as y } from "./common.js";
11
11
  import { M as x, a as B, W as E, b as R } from "./data-labels-visibility.js";
12
12
  import { W as j } from "./data-labels-symbol.js";
13
- import { h as I, k as U, c as K } from "./utils.js";
13
+ import { f as I, j as U, c as K } from "./utils.js";
14
14
  import { i as m, a as _, g as f, s as $, c as X, b as Y, d as q, e as H, f as J, h as D, j as C, k as Q } from "./pie-chart-data.js";
15
15
  import { cloneDeep as Z } from "lodash-es";
16
16
  import { i as S } from "./rest-js-object-literals.js";
@@ -117,14 +117,14 @@ const ue = (t) => t.series?.[0]?.innerRadius, fe = (t, e) => {
117
117
  let e;
118
118
  const i = t.series?.[0];
119
119
  return i?.displayNumericValueOnDataLabel === !0 && i?.displayPercentageOnDataLabel === !0 ? e = g.Both : i?.displayNumericValueOnDataLabel === !0 ? e = g.Value : e = g.Percentage, e;
120
- }, ke = (t, e) => {
120
+ }, Ae = (t, e) => {
121
121
  const i = t === g.Value || t === g.Both, o = t === g.Percentage || t === g.Both;
122
122
  e.series?.[0] && (e.series[0].displayNumericValueOnDataLabel = i, e.series[0].displayPercentageOnDataLabel = o), e.legend && (e.legend = {
123
123
  ...e.legend,
124
124
  displayNumericValue: i,
125
125
  displayPercentage: o
126
126
  });
127
- }, Ae = (t) => t.series?.[0]?.alignDataLabels ?? !1, we = (t, e) => {
127
+ }, ke = (t) => t.series?.[0]?.alignDataLabels ?? !1, we = (t, e) => {
128
128
  e.series[0] && (e.series[0].alignDataLabels = t);
129
129
  }, Ge = (t) => t.series?.[0]?.dataLabelsInside ?? !1, ze = (t, e) => {
130
130
  e.series[0] && (e.series[0].dataLabelsInside = t);
@@ -201,7 +201,7 @@ class r extends z {
201
201
  return f(this._config);
202
202
  }
203
203
  set category(e) {
204
- (!A(this._config) || e.trim() !== "") && (this._mode = m({
204
+ (!k(this._config) || e.trim() !== "") && (this._mode = m({
205
205
  category: e,
206
206
  numericFields: _(this._config),
207
207
  fallbackMode: this._mode
@@ -397,7 +397,7 @@ class r extends z {
397
397
  return We(this._config);
398
398
  }
399
399
  set displayType(e) {
400
- ke(e, this._config);
400
+ Ae(e, this._config);
401
401
  }
402
402
  // ---------------------------------------------------------------------------------------------
403
403
  // #region Protected methods
@@ -405,7 +405,7 @@ class r extends z {
405
405
  /** @private */
406
406
  generateDefaultConfig() {
407
407
  const e = w(this.commonStrings);
408
- return e.series = [G(this.commonStrings, k(this.layerInfo.layer).idField)], e;
408
+ return e.series = [G(this.commonStrings, A(this.layerInfo.layer).idField)], e;
409
409
  }
410
410
  // ---------------------------------------------------------------------------------------------
411
411
  // #region Series Methods
@@ -643,7 +643,7 @@ class r extends z {
643
643
  * Align the data labels on the left or right side of the chart instead of the default position around the chart.
644
644
  */
645
645
  get alignDataLabels() {
646
- return Ae(this._config);
646
+ return ke(this._config);
647
647
  }
648
648
  set alignDataLabels(e) {
649
649
  we(e, this._config);
@@ -1,24 +1,24 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { S as c, s as m, a as y } from "./serial-chart-model.js";
3
- import { s as b, a as g, b as f, c as A, d as S, W as p } from "./negative-values-stacked-to-baseline.js";
3
+ import { s as b, a as f, b as g, c as A, d as S, W as p } from "./negative-values-stacked-to-baseline.js";
4
4
  import { h as u } from "./serial-chart-data.js";
5
- import { h as T } from "./utils.js";
5
+ import { f as T } from "./utils.js";
6
6
  import { m as d } from "./model-setter.js";
7
7
  import { u as L, o as C } from "./chart-object-literals.js";
8
8
  import { M as V } from "./model-with-line-marker-styling.js";
9
9
  import { ab as v, ac as x, ap as B, aF as X } from "./index.js";
10
10
  import { ap as a } from "./index2.js";
11
- var F = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, h = (l, i, e, t) => {
12
- for (var s = _(i, e), r = l.length - 1, n; r >= 0; r--)
11
+ var _ = Object.defineProperty, F = Object.getOwnPropertyDescriptor, h = (l, i, e, t) => {
12
+ for (var s = F(i, e), r = l.length - 1, n; r >= 0; r--)
13
13
  (n = l[r]) && (s = n(i, e, s) || s);
14
- return s && F(i, e, s), s;
14
+ return s && _(i, e, s), s;
15
15
  };
16
16
  class o extends c {
17
17
  constructor() {
18
18
  super(...arguments), this._chartType = L.RadarSeries;
19
19
  }
20
20
  async setup(i) {
21
- await this.loadConfigFromLayer(i), this.setupLocalProps(), i.config !== void 0 && this.updateSeriesFromLayerFilter(), this.initDefaultSeries(), typeof this.resolveSetup == "function" && this.resolveSetup();
21
+ await this.loadConfigFromLayer(i), this.setupLocalProps(), i.config !== void 0 && await this.rebuildSeries(), this.initDefaultSeries(), typeof this.resolveSetup == "function" && this.resolveSetup();
22
22
  }
23
23
  // ---------------------------------------------------------------------------------------------
24
24
  // Circular and radial axis aliases
@@ -406,7 +406,7 @@ class o extends c {
406
406
  });
407
407
  s !== a(this.layerInfo.layer).idField && y(s ?? t, i, this._config);
408
408
  }
409
- g(this.defaultSeries?.lineSymbol?.style, i, this._config), f(this.defaultSeries?.lineSymbol?.width, i, this._config), A(this.defaultSeries?.markerSymbol?.style, i, this._config), S(this.defaultSeries?.markerSymbol?.size, i, this._config);
409
+ f(this.defaultSeries?.lineSymbol?.style, i, this._config), g(this.defaultSeries?.lineSymbol?.width, i, this._config), A(this.defaultSeries?.markerSymbol?.style, i, this._config), S(this.defaultSeries?.markerSymbol?.size, i, this._config);
410
410
  }
411
411
  this._config.colorMatch = !0;
412
412
  }
@@ -1,5 +1,5 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { s as p, u as v, e as X, h as O } from "./utils.js";
2
+ import { s as p, u as v, e as X, f as O } from "./utils.js";
3
3
  import { substitute as Y } from "@arcgis/core/intl.js";
4
4
  import { isEmpty as f, isEqual as D } from "lodash-es";
5
5
  import { b as w } from "./series-length.js";