@arcgis/charts-components 5.0.0-next.162 → 5.0.0-next.164

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 (199) hide show
  1. package/dist/cdn/{TQRAYSWN.js → 2ZSCSQKE.js} +1 -1
  2. package/dist/cdn/{SW6ENGEK.js → 3ETPKJLH.js} +1 -1
  3. package/dist/cdn/3FJBR2FR.js +2 -0
  4. package/dist/cdn/3HSM4YOY.js +4 -0
  5. package/dist/cdn/{EYXP4YQW.js → 3IU5PLYH.js} +1 -1
  6. package/dist/cdn/{VMSL4CWI.js → 43YS2I72.js} +1 -1
  7. package/dist/cdn/45NODT2J.js +2 -0
  8. package/dist/cdn/{62OZB7FK.js → 4CICGGRX.js} +1 -1
  9. package/dist/cdn/{37TWMIC2.js → 4R2UOKDR.js} +1 -1
  10. package/dist/cdn/{UHB77RAE.js → 4TFNYB6N.js} +1 -1
  11. package/dist/cdn/{BYAYB5LF.js → 4WOGY3WA.js} +1 -1
  12. package/dist/cdn/{CTDG3FOZ.js → 4Z3XHMLM.js} +1 -1
  13. package/dist/cdn/{TUTT6I7D.js → 55KRKYFS.js} +1 -1
  14. package/dist/cdn/567U5TC6.js +2 -0
  15. package/dist/cdn/{7WZV7AE3.js → 5FIT7FHW.js} +1 -1
  16. package/dist/cdn/{PQRPDV2N.js → 5MM7SODQ.js} +1 -1
  17. package/dist/cdn/{7XUX4ZTI.js → 5R6MQSUY.js} +1 -1
  18. package/dist/cdn/{B5LXWQRU.js → 62V455IN.js} +1 -1
  19. package/dist/cdn/{UUZWRA5G.js → 6ERZOPDO.js} +1 -1
  20. package/dist/cdn/{DB3UL5LX.js → 735B4X34.js} +1 -1
  21. package/dist/cdn/{4L3ESTCL.js → 7SZ3MTAV.js} +1 -1
  22. package/dist/cdn/{XQAUA2KI.js → A6NRPBTW.js} +1 -1
  23. package/dist/cdn/{KLOSKKEF.js → A7BXN5EL.js} +1 -1
  24. package/dist/cdn/{OMR6RCJW.js → AAHVSFKB.js} +1 -1
  25. package/dist/cdn/AGJFBRLT.js +2 -0
  26. package/dist/cdn/{HAAT4GZV.js → AI3L7T2E.js} +1 -1
  27. package/dist/cdn/{RKJFJ3VI.js → AJHQESHE.js} +1 -1
  28. package/dist/cdn/{JBHDZEVD.js → ATTQBQ5G.js} +1 -1
  29. package/dist/cdn/{P3XTRZL3.js → B2MBGCT2.js} +1 -1
  30. package/dist/cdn/{KOC7VWEQ.js → BELVV3ZC.js} +1 -1
  31. package/dist/cdn/{MMVZJQGM.js → CDCU3GES.js} +1 -1
  32. package/dist/cdn/{MSNUKDFY.js → CJFTBI6B.js} +1 -1
  33. package/dist/cdn/{TBYLHPGX.js → CNCVZK7E.js} +1 -1
  34. package/dist/cdn/{TCKDCNZ6.js → COJU472P.js} +1 -1
  35. package/dist/cdn/CQUCOSCR.js +2 -0
  36. package/dist/cdn/{277KZ5EH.js → DUDOTKJA.js} +1 -1
  37. package/dist/cdn/{JASXULGK.js → E4D75GTQ.js} +1 -1
  38. package/dist/cdn/{7KAPOFBN.js → F2HVMZZK.js} +1 -1
  39. package/dist/cdn/{SW62HLGO.js → FU2EQLXU.js} +1 -1
  40. package/dist/cdn/{64DXX3FX.js → G7VC2XBZ.js} +1 -1
  41. package/dist/cdn/{GKUTVRCP.js → GS3GRA2H.js} +1 -1
  42. package/dist/cdn/GSVN46KN.js +2 -0
  43. package/dist/cdn/{DACWGPLL.js → GTHSVE2K.js} +1 -1
  44. package/dist/cdn/{WCBXBXTZ.js → GTSIEQM5.js} +1 -1
  45. package/dist/cdn/{KF4ILYWV.js → HHJIYADP.js} +1 -1
  46. package/dist/cdn/{GB223HFN.js → HZDRSBX2.js} +1 -1
  47. package/dist/cdn/{D2HQHUZF.js → I457NPW3.js} +1 -1
  48. package/dist/cdn/{IDMPL6T7.js → IP4VBE6Z.js} +1 -1
  49. package/dist/cdn/{WTZ23CRY.js → IYXHOL5D.js} +1 -1
  50. package/dist/cdn/{SZ2BB7ZG.js → J5JH47IU.js} +1 -1
  51. package/dist/cdn/{7HDTPUIY.js → K3LNGUQX.js} +1 -1
  52. package/dist/cdn/{6AP262U4.js → K4YRNWYA.js} +1 -1
  53. package/dist/cdn/{YHIJMVJQ.js → KKYRF4QI.js} +1 -1
  54. package/dist/cdn/{GRUDYKUK.js → KQHMG4PC.js} +1 -1
  55. package/dist/cdn/{S3MAP4NY.js → L6HK4PG5.js} +1 -1
  56. package/dist/cdn/{IBMHE4HG.js → LHJS2B4G.js} +1 -1
  57. package/dist/cdn/{KHPBPGZW.js → LN5HOZFK.js} +1 -1
  58. package/dist/cdn/{CBTHS6I5.js → M4XXCCFI.js} +1 -1
  59. package/dist/cdn/{Y7OQUVXC.js → M5OKIJH6.js} +1 -1
  60. package/dist/cdn/{IL22JCIC.js → M6KGYVL2.js} +1 -1
  61. package/dist/cdn/{PUO6TAT3.js → N673HFEJ.js} +1 -1
  62. package/dist/cdn/{DLT5ZL25.js → NYBZPU4F.js} +1 -1
  63. package/dist/cdn/{PZ5VL76M.js → OI76MVPM.js} +1 -1
  64. package/dist/cdn/{G7UITT5F.js → OJXN4Y6A.js} +1 -1
  65. package/dist/cdn/{OWTDESPZ.js → OQZBAWVC.js} +1 -1
  66. package/dist/cdn/{35FGLAKV.js → P4ZZY7IW.js} +1 -1
  67. package/dist/cdn/{7LRO7RMI.js → PFRK5465.js} +11 -5
  68. package/dist/cdn/{NNTJCO7Q.js → PO4LLHQE.js} +1 -1
  69. package/dist/cdn/{53QDB3IL.js → QJGDTSOH.js} +1 -1
  70. package/dist/cdn/{IYGUWGB6.js → QNI5OMGX.js} +1 -1
  71. package/dist/cdn/RICBVTMN.js +2 -0
  72. package/dist/cdn/{YHVWLHT7.js → ROH4QPZI.js} +1 -1
  73. package/dist/cdn/{R7TVVBB7.js → TLIZYLM2.js} +1 -1
  74. package/dist/cdn/{NLNJYC2E.js → TZEMRMGW.js} +1 -1
  75. package/dist/cdn/{IBDFXE7F.js → UZWDIHM7.js} +1 -1
  76. package/dist/cdn/{ISB65KPT.js → VBHRSNOL.js} +1 -1
  77. package/dist/cdn/{7HCS3J2W.js → VMTV5CBU.js} +1 -1
  78. package/dist/cdn/{CAXYDF5R.js → WEMAQZCY.js} +1 -1
  79. package/dist/cdn/{DHBBU7AG.js → WN37QN4E.js} +1 -1
  80. package/dist/cdn/{KDGGKNBV.js → XJ7KF4OJ.js} +1 -1
  81. package/dist/cdn/{3TCYZ5OB.js → XLJBOHXR.js} +10 -10
  82. package/dist/cdn/{OR2MF4BU.js → XQ4KCPRX.js} +1 -1
  83. package/dist/cdn/{FGMU7G6T.js → YHGIRUKH.js} +1 -1
  84. package/dist/cdn/YLV6SOAM.js +2 -0
  85. package/dist/cdn/{C72B5RSG.js → YVYDVSXP.js} +1 -1
  86. package/dist/cdn/{WORQWDJQ.js → Z5O5KIH5.js} +1 -1
  87. package/dist/cdn/{SAKNSC4M.js → ZOPR2Y4S.js} +1 -1
  88. package/dist/cdn/{XIFLK5EG.js → ZWD6ENTH.js} +1 -1
  89. package/dist/cdn/assets/common/t9n/messages.fr.json +1 -1
  90. package/dist/cdn/index.js +1 -1
  91. package/dist/chart-rendering/common/interfaces.d.ts +65 -73
  92. package/dist/chunks/action-bar-utils.js +1 -1
  93. package/dist/chunks/axis-lines-symbol.js +20 -20
  94. package/dist/chunks/bar-chart-model.js +8 -8
  95. package/dist/chunks/box-plot-data.js +60 -60
  96. package/dist/chunks/box-plot-model.js +20 -20
  97. package/dist/chunks/chart-model.js +37 -37
  98. package/dist/chunks/chart-ui-utils2.js +1 -1
  99. package/dist/chunks/class-breaks.js +120 -122
  100. package/dist/chunks/combo-bar-line-chart-model.js +4 -4
  101. package/dist/chunks/data-labels-symbol.js +1 -1
  102. package/dist/chunks/data.js +11 -11
  103. package/dist/chunks/gauge-model.js +17 -17
  104. package/dist/chunks/generate-x-axis-title.js +4 -4
  105. package/dist/chunks/heat-chart-model.js +32 -20
  106. package/dist/chunks/histogram-data.js +7 -7
  107. package/dist/chunks/histogram-model.js +8 -8
  108. package/dist/chunks/index.js +336 -360
  109. package/dist/chunks/index2.js +49 -49
  110. package/dist/chunks/index3.js +3 -3
  111. package/dist/chunks/line-chart-model.js +6 -6
  112. package/dist/chunks/model-setter.js +3 -3
  113. package/dist/chunks/model-with-guides.js +15 -15
  114. package/dist/chunks/model-with-tooltips.js +8 -8
  115. package/dist/chunks/model-with-y-guides.js +12 -12
  116. package/dist/chunks/negative-values-stacked-to-baseline.js +1 -1
  117. package/dist/chunks/pie-chart-data.js +26 -26
  118. package/dist/chunks/pie-chart-model.js +22 -22
  119. package/dist/chunks/radar-chart-model.js +7 -7
  120. package/dist/chunks/rotated-state.js +1 -1
  121. package/dist/chunks/scatterplot-model.js +15 -15
  122. package/dist/chunks/serial-chart-data.js +162 -165
  123. package/dist/chunks/serial-chart-model.js +17 -17
  124. package/dist/chunks/series-length.js +1 -1
  125. package/dist/chunks/series.js +3 -3
  126. package/dist/chunks/utils.js +43 -43
  127. package/dist/chunks/utils2.js +5 -5
  128. package/dist/chunks/web-component-utils.js +175 -169
  129. package/dist/components/arcgis-chart/customElement.d.ts +4 -4
  130. package/dist/components/arcgis-chart/customElement.js +864 -847
  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 +4 -4
  133. package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +8 -8
  134. package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +1 -1
  135. package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +1 -1
  136. package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
  137. package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +1 -1
  138. package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +10 -10
  139. package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +1 -1
  140. package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +1 -1
  141. package/dist/components/arcgis-charts-config-create-flow/customElement.js +1 -1
  142. package/dist/components/arcgis-charts-config-font-style/customElement.js +1 -1
  143. package/dist/components/arcgis-charts-config-format/customElement.js +42 -39
  144. package/dist/components/arcgis-charts-config-guide/customElement.js +8 -8
  145. package/dist/components/arcgis-charts-config-heat-chart/customElement.js +1 -1
  146. package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +18 -18
  147. package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +4 -4
  148. package/dist/components/arcgis-charts-config-histogram/customElement.js +1 -1
  149. package/dist/components/arcgis-charts-config-histogram-data/customElement.js +1 -1
  150. package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +1 -1
  151. package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
  152. package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +5 -5
  153. package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +1 -1
  154. package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +1 -1
  155. package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +1 -1
  156. package/dist/components/arcgis-charts-config-pie-chart/customElement.js +1 -1
  157. package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +4 -4
  158. package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +3 -3
  159. package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +4 -4
  160. package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +1 -1
  161. package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
  162. package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +7 -7
  163. package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +1 -1
  164. package/dist/components/arcgis-charts-info-modal/customElement.js +1 -1
  165. package/dist/docs/api.json +1 -1
  166. package/dist/docs/docs.json +1 -1
  167. package/dist/docs/web-types.json +1 -1
  168. package/dist/index.js +154 -153
  169. package/dist/interfaces.d.ts +6 -5
  170. package/dist/json-schema/index.d.ts +12 -20
  171. package/dist/model/heat-chart-model/heat-chart-model.d.ts +9 -1
  172. package/dist/spec/data-source.d.ts +26 -18
  173. package/dist/spec/events.d.ts +2 -5
  174. package/dist/spec/rest-js-types.d.ts +27 -9
  175. package/dist/utils/chart-config/converter/index.d.ts +7 -7
  176. package/dist/utils/chart-config/validator/index.d.ts +6 -4
  177. package/dist/utils/components/event-payloads.d.ts +3 -3
  178. package/dist/utils/data/index.d.ts +10 -1
  179. package/dist/utils/errors/index.d.ts +5 -5
  180. package/dist/utils/layer/index.d.ts +2 -2
  181. package/dist/utils/layer/inline-conversion/index.d.ts +7 -8
  182. package/dist/utils/layer/interfaces.d.ts +3 -3
  183. package/dist/utils/layer/query-features/interfaces.d.ts +1 -1
  184. package/dist/utils/layer/query-parser/index.d.ts +1 -1
  185. package/dist/utils/layer/utils/index.d.ts +11 -5
  186. package/dist/utils/localization/index.d.ts +1 -1
  187. package/dist/utils/misc/index.d.ts +3 -3
  188. package/dist/utils/misc/interfaces.d.ts +7 -6
  189. package/dist/utils/types/index.d.ts +17 -17
  190. package/package.json +3 -3
  191. package/dist/cdn/3UBEHDWK.js +0 -2
  192. package/dist/cdn/CIW6WMFK.js +0 -4
  193. package/dist/cdn/DKC6E3QZ.js +0 -2
  194. package/dist/cdn/HTKSTR36.js +0 -2
  195. package/dist/cdn/KPBKHH3V.js +0 -2
  196. package/dist/cdn/LRATJMH3.js +0 -2
  197. package/dist/cdn/V65HT7NA.js +0 -2
  198. package/dist/cdn/WNZXN6Y2.js +0 -2
  199. package/dist/cdn/XNTLXVQF.js +0 -2
@@ -1,126 +1,127 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import { W as B, w as Q } from "./series-types.js";
3
- import { isEqual as U, capitalize as F, isNumber as C, zip as H } from "lodash-es";
4
- import { o as V, bL as X, cG as Y, dh as c, ab as O, bA as h, dk as M, ax as v, bP as W, ai as P, bx as J, by as K } from "./index.js";
2
+ import { W as P, w as U } from "./series-types.js";
3
+ import { isEqual as Y, capitalize as F, isNumber as A, zip as G } from "lodash-es";
4
+ import { o as T, bM as W, cH as X, di as c, ab as O, bB as h, dl as C, ay as w, bO as J, aj as B, by as ee, bz as K } from "./index.js";
5
5
  import { b as R } from "./interfaces.js";
6
6
  import { a as z } from "./common.js";
7
7
  import "@arcgis/toolkit/type";
8
- import { j as ee, n as N, p as E, o as I } from "./box-plot-data.js";
9
- import { a as Z } from "./series-length.js";
10
- import { g as te } from "./histogram-data.js";
11
- import { g as oe, a as ie, b as ae } from "./pie-chart-data.js";
12
- import { R as se, S as ne, T as re } from "./serial-chart-data.js";
13
- import { b as le, g as q } from "./data.js";
14
- const Oe = [
15
- B.BarSeries,
16
- B.BoxPlotSeries,
17
- B.LineSeries,
18
- B.PieSeries,
19
- B.HistogramSeries,
20
- B.ScatterSeries
21
- ], Ve = 1, ke = { PNG: "png" };
22
- function ce(n, e) {
23
- return !U(n, e);
8
+ import { R as te } from "./rest-js-object-literals.js";
9
+ import { j as oe, n as N, p as Z, o as I } from "./box-plot-data.js";
10
+ import { a as q } from "./series-length.js";
11
+ import { g as ie } from "./histogram-data.js";
12
+ import { g as ae, a as se, b as ne } from "./pie-chart-data.js";
13
+ import { R as re, S as le, T as ce } from "./serial-chart-data.js";
14
+ import { b as ue, g as Q } from "./data.js";
15
+ const Ve = [
16
+ P.BarSeries,
17
+ P.BoxPlotSeries,
18
+ P.LineSeries,
19
+ P.PieSeries,
20
+ P.HistogramSeries,
21
+ P.ScatterSeries
22
+ ], ke = 1, Re = { PNG: "png" };
23
+ function de(n, e) {
24
+ return !Y(n, e);
24
25
  }
25
- function Te(n, e) {
26
- return ce(n, e) || n !== e;
26
+ function Ke(n, e) {
27
+ return de(n, e) || n !== e;
27
28
  }
28
- function ue(n) {
29
+ function fe(n) {
29
30
  return (new Intl.NumberFormat(n, {
30
31
  minimumFractionDigits: 1,
31
32
  maximumFractionDigits: 1
32
33
  }).formatToParts(1.1).find((r) => r.type === "decimal")?.value ?? ".") === "." ? "," : ";";
33
34
  }
34
- function de(n) {
35
+ function me(n) {
35
36
  return new Intl.NumberFormat(n, {
36
37
  minimumFractionDigits: 1,
37
38
  maximumFractionDigits: 1
38
39
  }).formatToParts(1.1).find((t) => t.type === "decimal")?.value ?? ".";
39
40
  }
40
- const G = (n) => {
41
+ const H = (n) => {
41
42
  const { value: e, quoteAll: t = !1, locale: r } = n;
42
- let a = e == null ? "" : String(e);
43
+ let i = e == null ? "" : String(e);
43
44
  if (e === null)
44
- a = "null";
45
+ i = "null";
45
46
  else if (e === void 0)
46
- a = "";
47
+ i = "";
47
48
  else if (typeof e == "number" && Number.isFinite(e) && r !== void 0) {
48
- const i = de(r), m = a.split(i)[1]?.length ?? 3;
49
- a = new Intl.NumberFormat(r, {
50
- maximumFractionDigits: m
49
+ const a = me(r), f = i.split(a)[1]?.length ?? 3;
50
+ i = new Intl.NumberFormat(r, {
51
+ maximumFractionDigits: f
51
52
  }).format(e).replace(/\u202F/gu, " ");
52
53
  }
53
- return (t || /[",\r\n]/u.test(a)) && (a = `"${a.replace(/"/gu, '""')}"`), a;
54
+ return (t || /[",\r\n]/u.test(i)) && (i = `"${i.replace(/"/gu, '""')}"`), i;
54
55
  };
55
- function Re(n, e = {}) {
56
- const { columns: t, delimiter: r, includeHeader: a = !0, quoteAll: o = !1, locale: i } = e, m = n.length === 0;
56
+ function Ne(n, e = {}) {
57
+ const { columns: t, delimiter: r, includeHeader: i = !0, quoteAll: o = !1, locale: a } = e, f = n.length === 0;
57
58
  let l = "";
58
- if (!m) {
59
- const f = t ?? Object.keys(n[0]), x = [], g = r ?? ue(i ?? "en");
60
- if (i !== void 0 && g !== "," && (l += `sep=${g}\r
61
- `), a) {
62
- const y = f.map((s) => G({ value: s, quoteAll: o, locale: i }));
59
+ if (!f) {
60
+ const m = t ?? Object.keys(n[0]), x = [], g = r ?? fe(a ?? "en");
61
+ if (a !== void 0 && g !== "," && (l += `sep=${g}\r
62
+ `), i) {
63
+ const y = m.map((s) => H({ value: s, quoteAll: o, locale: a }));
63
64
  x.push(y.join(g));
64
65
  }
65
66
  n.forEach((y) => {
66
- const s = f.map((d) => G({ value: y[d], quoteAll: o, locale: i }));
67
+ const s = m.map((d) => H({ value: y[d], quoteAll: o, locale: a }));
67
68
  x.push(s.join(g));
68
69
  }), l += x.join(`\r
69
70
  `);
70
71
  }
71
72
  return l;
72
73
  }
73
- function Ke(n) {
74
- const { rawData: e, config: t, layer: r, fieldList: a } = n;
74
+ function Ie(n) {
75
+ const { rawData: e, config: t, layer: r, fieldList: i } = n;
75
76
  let o = e;
76
77
  if (t !== void 0 && Array.isArray(e) && e.length > 0) {
77
- const i = Q(t?.series);
78
- i === B.HistogramSeries ? o = me(t, e) : i === B.BarSeries || i === B.LineSeries || i === B.ComboLineAndBarSeries ? o = ye({
78
+ const a = U(t?.series);
79
+ a === P.HistogramSeries ? o = ye(t, e) : a === P.BarSeries || a === P.LineSeries || a === P.ComboLineAndBarSeries ? o = pe({
79
80
  config: t,
80
81
  rows: e,
81
82
  layer: r,
82
- fieldList: a
83
- }) : i === B.PieSeries ? o = pe({
83
+ fieldList: i
84
+ }) : a === P.PieSeries ? o = xe({
84
85
  config: t,
85
86
  rows: e,
86
87
  layer: r,
87
- fieldList: a
88
- }) : i === B.BoxPlotSeries && (o = xe({
88
+ fieldList: i
89
+ }) : a === P.BoxPlotSeries && (o = Be({
89
90
  config: t,
90
91
  rows: e,
91
- fieldList: a
92
+ fieldList: i
92
93
  }));
93
94
  }
94
95
  return o;
95
96
  }
96
- function me(n, e) {
97
- const t = te(n), r = `${F(R.Min)} of ${t}`, a = `${F(R.Max)} of ${t}`, o = `${F(R.Count)} of ${t}`;
98
- return e.map((i) => {
99
- const { minValue: m, maxValue: l, count: f } = i, x = C(m), g = C(l), y = C(f), s = {};
100
- return x && (s[r] = m.toFixed(2)), g && (s[a] = l.toFixed(2)), x && g && (s.Label = `${m.toFixed(2)} - ${l.toFixed(2)}`), y && (s[o] = f), s;
97
+ function ye(n, e) {
98
+ const t = ie(n), r = `${F(R.Min)} of ${t}`, i = `${F(R.Max)} of ${t}`, o = `${F(R.Count)} of ${t}`;
99
+ return e.map((a) => {
100
+ const { minValue: f, maxValue: l, count: m } = a, x = A(f), g = A(l), y = A(m), s = {};
101
+ return x && (s[r] = f.toFixed(2)), g && (s[i] = l.toFixed(2)), x && g && (s.Label = `${f.toFixed(2)} - ${l.toFixed(2)}`), y && (s[o] = m), s;
101
102
  });
102
103
  }
103
- function fe(n, e, t) {
104
+ function ge(n, e, t) {
104
105
  const r = Object.keys(n);
105
- let a = [];
106
- return t ? a = t.map((o) => r.find((i) => i.toLowerCase().includes(o.toLowerCase())) || "") : a = r.filter((i) => i.toLowerCase().includes(e.toLowerCase())), a.filter((o) => o.trim() !== "");
106
+ let i = [];
107
+ return t ? i = t.map((o) => r.find((a) => a.toLowerCase().includes(o.toLowerCase())) || "") : i = r.filter((a) => a.toLowerCase().includes(e.toLowerCase())), i.filter((o) => o.trim() !== "");
107
108
  }
108
- function ye(n) {
109
- const { config: e, rows: t, layer: r, fieldList: a } = n, o = le(e), i = se(e), m = F(i), l = ne(e), f = V(e.series), x = Z(e), g = re(e), { idField: y, isTraditionalTypeOID: s } = X(Y(r)), d = s && l.length === 1 && l[0] === y;
109
+ function pe(n) {
110
+ const { config: e, rows: t, layer: r, fieldList: i } = n, o = ue(e), a = re(e), f = F(a), l = le(e), m = T(e.series), x = q(e), g = ce(e), { idField: y, isTraditionalTypeOID: s } = W(X(r)), d = s && l.length === 1 && l[0] === y;
110
111
  let u;
111
- switch (f) {
112
+ switch (m) {
112
113
  case c.BarAndLineNoAggregation:
113
114
  u = t.map((p) => {
114
- const b = A({
115
+ const b = D({
115
116
  field: o,
116
117
  value: p[o],
117
- fieldList: a
118
+ fieldList: i
118
119
  }), S = { [o]: b };
119
120
  return Object.assign(S, ...l.map(($) => ({ [$]: p[$] }))), S;
120
121
  });
121
122
  break;
122
123
  case c.BarAndLineFromFields:
123
- u = H(l, t).map(([p, b]) => {
124
+ u = G(l, t).map(([p, b]) => {
124
125
  const S = O(e.series)[0], $ = {};
125
126
  return b !== void 0 && p !== void 0 && ($.Field = b[o], $.Value = b[S]), $;
126
127
  });
@@ -128,49 +129,49 @@ function ye(n) {
128
129
  case c.BarAndLineMonoField:
129
130
  case c.BarAndLineMultiFields:
130
131
  u = t.map((p) => {
131
- const b = A({
132
+ const b = D({
132
133
  field: o,
133
134
  value: p[o],
134
- fieldList: a
135
+ fieldList: i
135
136
  }), S = { [o]: b };
136
- return l.forEach(($, w) => {
137
- const k = q({
137
+ return l.forEach(($, v) => {
138
+ const V = Q({
138
139
  config: e,
139
140
  xAxisField: o,
140
141
  numericFields: l,
141
- aggregationType: i,
142
+ aggregationType: a,
142
143
  layer: r,
143
- numericFieldIndex: w,
144
- fieldList: a
145
- }), T = O(e.series)[w];
146
- let j = T, _ = T;
147
- T.toLowerCase() === k.name.toLowerCase() && (j = k.description, _ = k.name), S[j] = p[_];
144
+ numericFieldIndex: v,
145
+ fieldList: i
146
+ }), k = O(e.series)[v];
147
+ let j = k, _ = k;
148
+ k.toLowerCase() === V.name.toLowerCase() && (j = V.description, _ = V.name), S[j] = p[_];
148
149
  }), S;
149
150
  });
150
151
  break;
151
152
  case c.BarAndLineSplitBy:
152
153
  u = t.flatMap((p) => {
153
- const b = O(e.series), S = A({
154
+ const b = O(e.series), S = D({
154
155
  field: o,
155
156
  value: p[o],
156
- fieldList: a
157
+ fieldList: i
157
158
  });
158
159
  return x.map(
159
- ($, w) => ({
160
+ ($, v) => ({
160
161
  [o]: S,
161
162
  [g]: $,
162
- [d ? m : `${m} of ${l[0]}`]: p[b[w]]
163
+ [d ? f : `${f} of ${l[0]}`]: p[b[v]]
163
164
  })
164
165
  );
165
166
  });
166
167
  break;
167
168
  case c.BarAndLineSplitByNoAggregation:
168
169
  u = t.map((p) => {
169
- const b = A({
170
+ const b = D({
170
171
  field: o,
171
172
  value: p[o],
172
- fieldList: a
173
- }), S = fe(p, l[0], x);
173
+ fieldList: i
174
+ }), S = ge(p, l[0], x);
174
175
  return {
175
176
  [o]: b,
176
177
  [g]: p[g],
@@ -183,145 +184,145 @@ function ye(n) {
183
184
  }
184
185
  return u;
185
186
  }
186
- function ge(n, e = 2) {
187
+ function Fe(n) {
187
188
  if (n.length === 0)
188
189
  return [];
189
- const t = n.reduce((r, a) => {
190
- for (const [o, i] of Object.entries(a))
191
- typeof i == "number" && Number.isFinite(i) && (r[o] = (r[o] ?? 0) + i);
192
- return r;
190
+ const e = n.reduce((t, r) => {
191
+ for (const [i, o] of Object.entries(r))
192
+ typeof o == "number" && Number.isFinite(o) && (t[i] = (t[i] ?? 0) + o);
193
+ return t;
193
194
  }, {});
194
- return n.map((r) => {
195
- const a = { ...r };
196
- for (const [o, i] of Object.entries(r))
197
- if (typeof i == "number" && t[o] > 0) {
198
- const m = i / t[o] * 100;
199
- a[`${o}${h}`] = `${m.toFixed(e)}%`;
195
+ return n.map((t) => {
196
+ const r = { ...t };
197
+ for (const [i, o] of Object.entries(t))
198
+ if (typeof o == "number" && e[i] > 0) {
199
+ const a = o / e[i];
200
+ r[`${i}${h}`] = a.toPrecision(2);
200
201
  }
201
- return a;
202
+ return r;
202
203
  });
203
204
  }
204
- function pe(n) {
205
- const { config: e, rows: t, layer: r, fieldList: a } = n, o = oe(e), i = V(e.series);
206
- let m = ge(t, 2);
207
- const l = ie(e), f = i !== c.PieFromFields ? z.Category : z.Fields, x = ae(e, f), g = q({
205
+ function xe(n) {
206
+ const { config: e, rows: t, layer: r, fieldList: i } = n, o = ae(e), a = T(e.series);
207
+ let f = Fe(t);
208
+ const l = se(e), m = a !== c.PieFromFields ? z.Category : z.Fields, x = ne(e, m), g = Q({
208
209
  config: e,
209
210
  xAxisField: o,
210
211
  numericFields: l,
211
212
  aggregationType: x,
212
- mode: f,
213
+ mode: m,
213
214
  layer: r,
214
- fieldList: a
215
+ fieldList: i
215
216
  }), y = O(e.series)[0];
216
- return i === c.PieFromCategory || i === c.PieNoAggregation ? m = m.map((s) => {
217
- const d = A({
217
+ return a === c.PieFromCategory || a === c.PieNoAggregation ? f = f.map((s) => {
218
+ const d = D({
218
219
  field: o,
219
220
  value: s[o],
220
- fieldList: a
221
+ fieldList: i
221
222
  }), u = { [o]: d };
222
223
  let p = y, b = y;
223
- return i === c.PieFromCategory && y.toLowerCase() === g.name.toLowerCase() && (p = g.description, b = g.name), u[p] = s[b], u[F(h.trim())] = s[`${b}${h}`], u;
224
- }) : i === c.PieFromFields && (m = H(l, m).map(([s, d]) => {
224
+ return a === c.PieFromCategory && y.toLowerCase() === g.name.toLowerCase() && (p = g.description, b = g.name), u[p] = s[b], u[F(h.trim())] = s[`${b}${h}`], u;
225
+ }) : a === c.PieFromFields && (f = G(l, f).map(([s, d]) => {
225
226
  const u = {};
226
227
  return d !== void 0 && s !== void 0 && (u.Field = d[o], u.Value = d[y], u[F(h.trim())] = d[`${y}${h}`]), u;
227
- })), m;
228
+ })), f;
228
229
  }
229
230
  function L(n) {
230
231
  const { rawData: e, keyBase: t = "", outRow: r } = n;
231
- for (const [a, o] of Object.entries(P)) {
232
- const i = e[t + o];
233
- i !== void 0 && (r[a] = C(i) ? i.toFixed(2) : i);
234
- const m = e[t + o + J];
235
- m !== void 0 && (r[`${a} Outlier`] = C(m) ? m.toFixed(2) : m);
232
+ for (const [i, o] of Object.entries(B)) {
233
+ const a = e[t + o];
234
+ a !== void 0 && (r[i] = A(a) ? a.toFixed(2) : a);
235
+ const f = e[t + o + ee];
236
+ f !== void 0 && (r[`${i} Outlier`] = A(f) ? f.toFixed(2) : f);
236
237
  const l = e[t + o + K];
237
- l !== void 0 && (r[`${a} Z-Score`] = C(l) ? l.toFixed(2) : l);
238
+ l !== void 0 && (r[`${i} Z-Score`] = A(l) ? l.toFixed(2) : l);
238
239
  }
239
240
  }
240
- function D(n) {
241
- const { rawData: e, outRow: t, config: r, boxPlotSubType: a, fieldList: o } = n, i = N(r), m = E(r), l = I(r);
242
- let f = P.Outlier;
243
- const x = v;
244
- switch (a) {
241
+ function M(n) {
242
+ const { rawData: e, outRow: t, config: r, boxPlotSubType: i, fieldList: o } = n, a = N(r), f = Z(r), l = I(r);
243
+ let m = B.Outlier;
244
+ const x = w;
245
+ switch (i) {
245
246
  case c.BoxPlotMonoFieldAndCategory: {
246
- const s = A({
247
- field: i,
248
- value: e[i],
247
+ const s = D({
248
+ field: a,
249
+ value: e[a],
249
250
  fieldList: o
250
251
  });
251
- t[i] = s, t[F(P.Outlier)] = e[f];
252
+ t[a] = s, t[F(B.Outlier)] = e[m];
252
253
  break;
253
254
  }
254
255
  case c.BoxPlotMultiFieldsAndCategory: {
255
- t[F(i)] = e[i], f = `${m.find(
256
+ t[F(a)] = e[a], m = `${f.find(
256
257
  (d) => Object.keys(e).some((u) => u.toLowerCase().includes(d.toLowerCase()))
257
- ) ?? ""}_${f}`, t[F(P.Outlier)] = e[f];
258
+ ) ?? ""}_${m}`, t[F(B.Outlier)] = e[m];
258
259
  break;
259
260
  }
260
261
  case c.BoxPlotMonoFieldAndSplitBy:
261
262
  case c.BoxPlotMultiFieldsAndSplitBy: {
262
263
  const s = e[l];
263
- f = `${s}_${f}`, t.Field = e[x], t[F(l)] = s, t[F(P.Outlier)] = e[f];
264
+ m = `${s}_${m}`, t.Field = e[x], t[F(l)] = s, t[F(B.Outlier)] = e[m];
264
265
  break;
265
266
  }
266
267
  case c.BoxPlotMonoFieldAndCategoryAndSplitBy: {
267
268
  const s = e[l];
268
- f = `${s}_${f}`, t[F(i)] = e[i], t[F(l)] = s, t[F(P.Outlier)] = e[f];
269
+ m = `${s}_${m}`, t[F(a)] = e[a], t[F(l)] = s, t[F(B.Outlier)] = e[m];
269
270
  break;
270
271
  }
271
272
  case c.BoxPlotMonoField:
272
273
  case c.BoxPlotMultiFields:
273
274
  default: {
274
- t.Field = e[x], t[F(P.Outlier)] = e[f];
275
+ t.Field = e[x], t[F(B.Outlier)] = e[m];
275
276
  break;
276
277
  }
277
278
  }
278
- const g = `${f}${K}`, y = e[g];
279
- y !== void 0 && (t[`${F(P.Outlier)} Z-Score`] = C(y) ? y.toFixed(2) : y);
279
+ const g = `${m}${K}`, y = e[g];
280
+ y !== void 0 && (t[`${F(B.Outlier)} Z-Score`] = A(y) ? y.toFixed(2) : y);
280
281
  }
281
- function Fe(n) {
282
- const { rawData: e, outRow: t, config: r, splitByValue: a } = n, o = V(r.series), i = e[`${a}_${P.Average}`], m = I(r), l = N(r);
283
- let f = "";
282
+ function be(n) {
283
+ const { rawData: e, outRow: t, config: r, splitByValue: i } = n, o = T(r.series), a = e[`${i}_${B.Average}`], f = I(r), l = N(r);
284
+ let m = "";
284
285
  switch (o) {
285
286
  case c.BoxPlotMonoFieldAndSplitBy: {
286
- f = `${a}_${m}`, t.Field = e[v], t[F(m)] = e[f];
287
+ m = `${i}_${f}`, t.Field = e[w], t[F(f)] = e[m];
287
288
  break;
288
289
  }
289
290
  case c.BoxPlotMultiFieldsAndSplitBy: {
290
- f = `${a}_${P.Average}`, t.Field = e[v], t[F(m)] = e[f];
291
+ m = `${i}_${B.Average}`, t.Field = e[w], t[F(f)] = e[m];
291
292
  break;
292
293
  }
293
294
  case c.BoxPlotMonoFieldAndCategoryAndSplitBy: {
294
- f = `${a}_${P.Average}`, t[l] = e[l], t[F(m)] = a;
295
+ m = `${i}_${B.Average}`, t[l] = e[l], t[F(f)] = i;
295
296
  break;
296
297
  }
297
298
  }
298
- t[F(P.Average)] = C(i) ? i.toFixed(2) : i;
299
- const x = `${i}${K}`, g = e[x];
300
- g !== void 0 && (t[`${F(P.Average)} Z-Score`] = C(g) ? g.toFixed(2) : g);
299
+ t[F(B.Average)] = A(a) ? a.toFixed(2) : a;
300
+ const x = `${a}${K}`, g = e[x];
301
+ g !== void 0 && (t[`${F(B.Average)} Z-Score`] = A(g) ? g.toFixed(2) : g);
301
302
  }
302
- function xe(n) {
303
- const { config: e, rows: t, fieldList: r } = n, a = V(e.series);
304
- let o = a;
305
- const i = ee(e), m = Array.isArray(t) && t.length > 0 && t.every((s) => s[M.boxPlot.boxPlotMeanLineMarkerId] !== void 0);
306
- i && !m && (a === c.BoxPlotMonoFieldAndSplitBy ? o = c.BoxPlotMonoField : a === c.BoxPlotMultiFieldsAndSplitBy ? o = c.BoxPlotMultiFields : a === c.BoxPlotMonoFieldAndCategoryAndSplitBy && (o = c.BoxPlotMonoFieldAndCategory));
307
- const l = N(e), f = E(e), x = Z(e), g = I(e);
303
+ function Be(n) {
304
+ const { config: e, rows: t, fieldList: r } = n, i = T(e.series);
305
+ let o = i;
306
+ const a = oe(e), f = Array.isArray(t) && t.length > 0 && t.every((s) => s[C.boxPlot.boxPlotMeanLineMarkerId] !== void 0);
307
+ a && !f && (i === c.BoxPlotMonoFieldAndSplitBy ? o = c.BoxPlotMonoField : i === c.BoxPlotMultiFieldsAndSplitBy ? o = c.BoxPlotMultiFields : i === c.BoxPlotMonoFieldAndCategoryAndSplitBy && (o = c.BoxPlotMonoFieldAndCategory));
308
+ const l = N(e), m = Z(e), x = q(e), g = I(e);
308
309
  let y;
309
310
  switch (o) {
310
311
  case c.BoxPlotMonoField:
311
312
  case c.BoxPlotMonoFieldAndCategory: {
312
313
  y = t.map((s) => {
313
314
  const d = {};
314
- if (s[M.boxPlot.boxPlotOutlierId])
315
- D({ rawData: s, outRow: d, config: e, boxPlotSubType: o });
315
+ if (s[C.boxPlot.boxPlotOutlierId])
316
+ M({ rawData: s, outRow: d, config: e, boxPlotSubType: o });
316
317
  else {
317
318
  if (o === c.BoxPlotMonoFieldAndCategory) {
318
- const u = A({
319
+ const u = D({
319
320
  field: l,
320
321
  value: s[l],
321
322
  fieldList: r
322
323
  });
323
324
  d[l] = u;
324
- } else o === c.BoxPlotMonoField && (d.Field = s[v]);
325
+ } else o === c.BoxPlotMonoField && (d.Field = s[w]);
325
326
  L({ rawData: s, outRow: d });
326
327
  }
327
328
  return d;
@@ -331,22 +332,22 @@ function xe(n) {
331
332
  case c.BoxPlotMultiFields: {
332
333
  y = t.flatMap((s) => {
333
334
  const d = {};
334
- return s[M.boxPlot.boxPlotOutlierId] ? D({
335
+ return s[C.boxPlot.boxPlotOutlierId] ? M({
335
336
  rawData: s,
336
337
  outRow: d,
337
338
  config: e,
338
339
  boxPlotSubType: o
339
- }) : (d.Field = s[v], L({ rawData: s, outRow: d })), [d];
340
+ }) : (d.Field = s[w], L({ rawData: s, outRow: d })), [d];
340
341
  });
341
342
  break;
342
343
  }
343
344
  case c.BoxPlotMultiFieldsAndCategory: {
344
345
  y = t.flatMap(
345
- (s) => f.map((d) => {
346
+ (s) => m.map((d) => {
346
347
  const u = {};
347
348
  let p = "";
348
- if (u.Field = d, s[M.boxPlot.boxPlotOutlierId])
349
- D({
349
+ if (u.Field = d, s[C.boxPlot.boxPlotOutlierId])
350
+ M({
350
351
  rawData: s,
351
352
  outRow: u,
352
353
  config: e,
@@ -354,7 +355,7 @@ function xe(n) {
354
355
  });
355
356
  else {
356
357
  if (o === c.BoxPlotMultiFieldsAndCategory) {
357
- const b = A({
358
+ const b = D({
358
359
  field: l,
359
360
  value: s[l],
360
361
  fieldList: r
@@ -372,17 +373,17 @@ function xe(n) {
372
373
  case c.BoxPlotMultiFieldsAndSplitBy:
373
374
  case c.BoxPlotMonoFieldAndCategoryAndSplitBy: {
374
375
  y = t.flatMap((s) => {
375
- if (s[M.boxPlot.boxPlotOutlierId]) {
376
+ if (s[C.boxPlot.boxPlotOutlierId]) {
376
377
  const d = {};
377
- return D({
378
+ return M({
378
379
  rawData: s,
379
380
  outRow: d,
380
381
  config: e,
381
382
  boxPlotSubType: o
382
383
  }), [d];
383
- } else return s[M.boxPlot.boxPlotMeanLineMarkerId] ? x?.map((d) => {
384
+ } else return s[C.boxPlot.boxPlotMeanLineMarkerId] ? x?.map((d) => {
384
385
  const u = {};
385
- return Fe({
386
+ return be({
386
387
  rawData: s,
387
388
  outRow: u,
388
389
  splitByValue: d,
@@ -391,14 +392,14 @@ function xe(n) {
391
392
  }) : x.map((d) => {
392
393
  const u = {};
393
394
  if (o === c.BoxPlotMonoFieldAndCategoryAndSplitBy) {
394
- const p = A({
395
+ const p = D({
395
396
  field: l,
396
397
  value: s[l],
397
398
  fieldList: r
398
399
  });
399
400
  u[l] = p;
400
401
  }
401
- return s[M.boxPlot.boxPlotOutlierId] ? D({
402
+ return s[C.boxPlot.boxPlotOutlierId] ? M({
402
403
  rawData: s,
403
404
  outRow: u,
404
405
  config: e,
@@ -413,25 +414,30 @@ function xe(n) {
413
414
  }
414
415
  return y;
415
416
  }
416
- const be = (n) => {
417
+ const E = (n) => {
417
418
  let e = !1;
418
419
  return (typeof n == "string" || typeof n == "number") && (e = !Number.isNaN(new Date(n).getTime())), e;
419
- }, A = (n) => {
420
+ }, D = (n) => {
420
421
  const { field: e, value: t, fieldList: r } = n;
421
- let a = !1;
422
- return r !== void 0 && r.length > 0 && (a = W(r).some((i) => i === e)), be(t) && a ? new Date(t).toISOString() : t;
422
+ let i = t;
423
+ const o = r?.find((a) => a.name === e);
424
+ if (o) {
425
+ const a = o.type === te.DateOnly;
426
+ J(o) && !a ? i = E(t) ? new Date(t).toISOString() : t : a && typeof t != "string" && (i = E(t) ? new Date(t).toISOString().split("T")[0] : t);
427
+ }
428
+ return i;
423
429
  };
424
- function Ne() {
430
+ function je() {
425
431
  const n = () => ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
426
432
  return `${n() + n()}-${n()}-${n()}-${n()}-${n()}${n()}${n()}`;
427
433
  }
428
434
  export {
429
- ke as D,
430
- ce as a,
431
- Re as b,
432
- Ne as g,
433
- Te as h,
434
- Ve as m,
435
- Oe as s,
436
- Ke as t
435
+ Re as D,
436
+ de as a,
437
+ Ne as b,
438
+ je as g,
439
+ Ke as h,
440
+ ke as m,
441
+ Ve as s,
442
+ Ie as t
437
443
  };
@@ -1,8 +1,8 @@
1
1
  /// <reference path="../../index.d.ts" />
2
- import type MapView from "@arcgis/core/views/MapView";
3
- import type SceneView from "@arcgis/core/views/SceneView";
4
- import type FeatureLayerView from "@arcgis/core/views/layers/FeatureLayerView";
5
- import type { DOMContainerAria } from "@arcgis/core/views/DOMContainer";
2
+ import type MapView from "@arcgis/core/views/MapView.js";
3
+ import type SceneView from "@arcgis/core/views/SceneView.js";
4
+ import type FeatureLayerView from "@arcgis/core/views/layers/FeatureLayerView.js";
5
+ import type { DOMContainerAria } from "@arcgis/core/views/DOMContainer.js";
6
6
  import type { PublicLitElement as LitElement } from "@arcgis/lumina";
7
7
  import type { AxisLabelFormatCallback, ChartOptions, GaugeInnerLabelFormatCallback, GuideTooltipFormatCallback, PieChartLegendValueLabelFormatCallback, PreRenderCallback } from "../../chart-rendering/common/interfaces.js";
8
8
  import type { CSVOptions, SupportedLayer } from "../../interfaces.js";