@arcgis/charts-components 5.1.0-next.65 → 5.1.0-next.67

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 (264) hide show
  1. package/dist/cdn/2333HQZZ.js +2 -0
  2. package/dist/cdn/25LAV2UI.js +2 -0
  3. package/dist/cdn/{SMGWUDX3.js → 2J5IWBKU.js} +1 -1
  4. package/dist/cdn/2NIOPMWE.js +2 -0
  5. package/dist/cdn/32WPXK4K.js +2 -0
  6. package/dist/cdn/35NR6IHU.js +2 -0
  7. package/dist/cdn/4BDLJPIB.js +2 -0
  8. package/dist/cdn/4HRFZU2C.js +2 -0
  9. package/dist/cdn/4NYTLY62.js +2 -0
  10. package/dist/cdn/{66CPF67N.js → 5KOFW5BO.js} +1 -1
  11. package/dist/cdn/5PSQ7OKJ.js +2 -0
  12. package/dist/cdn/6GURKNO2.js +2 -0
  13. package/dist/cdn/{GLST76GV.js → 6GVGNQYH.js} +1 -1
  14. package/dist/cdn/6RKNXP6N.js +2 -0
  15. package/dist/cdn/{X6QQ322N.js → 6TKG7ZF7.js} +1 -1
  16. package/dist/cdn/{6VW6XPBH.js → 75FO5HPY.js} +1 -1
  17. package/dist/cdn/7HGCX3PA.js +2 -0
  18. package/dist/cdn/7Y5FTMNT.js +2 -0
  19. package/dist/cdn/{4YWBOW4N.js → 7YDVVZJU.js} +1 -1
  20. package/dist/cdn/AALOFAWG.js +2 -0
  21. package/dist/cdn/AMLWVAHN.js +2 -0
  22. package/dist/cdn/BVK4ULHH.js +2 -0
  23. package/dist/cdn/BXDRHDLV.js +2 -0
  24. package/dist/cdn/BXNLQMSP.js +2 -0
  25. package/dist/cdn/{3WMOCDMO.js → CCNHG4LT.js} +1 -1
  26. package/dist/cdn/CUAIY5DK.js +37 -0
  27. package/dist/cdn/DHCFSWRJ.js +2 -0
  28. package/dist/cdn/ECRW3QJF.js +2 -0
  29. package/dist/cdn/{DHZT5P3N.js → EF4GVHB2.js} +1 -1
  30. package/dist/cdn/EGHVQUKF.js +2 -0
  31. package/dist/cdn/EP5VVTAX.js +2 -0
  32. package/dist/cdn/EWLMYFSA.js +2 -0
  33. package/dist/cdn/{QFC7M2Y2.js → FFXTYOTF.js} +1 -1
  34. package/dist/cdn/FOSGOEWY.js +2 -0
  35. package/dist/cdn/G56RB2UI.js +2 -0
  36. package/dist/cdn/{HR62GM42.js → GKYHQ5OF.js} +1 -1
  37. package/dist/cdn/GXQDCOI4.js +99 -0
  38. package/dist/cdn/HW42VNOU.js +2 -0
  39. package/dist/cdn/I54YDLFZ.js +2 -0
  40. package/dist/cdn/I6IYDKWG.js +2 -0
  41. package/dist/cdn/IN3H6ULU.js +2 -0
  42. package/dist/cdn/ISNJYFT7.js +2 -0
  43. package/dist/cdn/ITB7EYBT.js +2 -0
  44. package/dist/cdn/JDQ6BNXO.js +2 -0
  45. package/dist/cdn/JMMW4Z5P.js +2 -0
  46. package/dist/cdn/JTL73F75.js +2 -0
  47. package/dist/cdn/KOLQWSYX.js +2 -0
  48. package/dist/cdn/KYFOP4WA.js +2 -0
  49. package/dist/cdn/L2NQ6Z3Z.js +2 -0
  50. package/dist/cdn/LGAAHH35.js +2 -0
  51. package/dist/cdn/LIXBROPH.js +2 -0
  52. package/dist/cdn/LRQVALTM.js +2 -0
  53. package/dist/cdn/LT62HS4S.js +2 -0
  54. package/dist/cdn/MUCSVAGN.js +2 -0
  55. package/dist/cdn/N4IITAR7.js +2 -0
  56. package/dist/cdn/NEEKPRM4.js +2 -0
  57. package/dist/cdn/NEFPCTH3.js +2 -0
  58. package/dist/cdn/NVV2EBVI.js +2 -0
  59. package/dist/cdn/O7ZCEGVR.js +2 -0
  60. package/dist/cdn/{WIP3X44L.js → OPDQRTZL.js} +3 -3
  61. package/dist/cdn/PG36SBDU.js +2 -0
  62. package/dist/cdn/PGJD4Q7S.js +2 -0
  63. package/dist/cdn/PGVNBWSU.js +23 -0
  64. package/dist/cdn/PL24HKI7.js +2 -0
  65. package/dist/cdn/PLBPOYRN.js +2 -0
  66. package/dist/cdn/QEPCR5IP.js +2 -0
  67. package/dist/cdn/QT24FAYQ.js +2 -0
  68. package/dist/cdn/R6XIAIZH.js +2 -0
  69. package/dist/cdn/RDBNRYTF.js +2 -0
  70. package/dist/cdn/RQLVJM4J.js +2 -0
  71. package/dist/cdn/RX6QOYCR.js +2 -0
  72. package/dist/cdn/SNZF4LXV.js +2 -0
  73. package/dist/cdn/{QRNEQ6OE.js → TJA5FMLP.js} +1 -1
  74. package/dist/cdn/TZJGC4RS.js +2 -0
  75. package/dist/cdn/{IIJZ52BJ.js → VRXVXPKS.js} +1 -1
  76. package/dist/cdn/VWCFL5P6.js +2 -0
  77. package/dist/cdn/W5VC5OCC.js +2 -0
  78. package/dist/cdn/W6T7TNP5.js +2 -0
  79. package/dist/cdn/WNEW6UZS.js +2 -0
  80. package/dist/cdn/XFXE7IY2.js +2 -0
  81. package/dist/cdn/XV7GLCBP.js +2 -0
  82. package/dist/cdn/Y3DU5EIT.js +2 -0
  83. package/dist/cdn/Y3NWCVUF.js +2 -0
  84. package/dist/cdn/YHUBOYF5.js +2 -0
  85. package/dist/cdn/YNRVU2AU.js +2 -0
  86. package/dist/cdn/YPSEQYTV.js +2 -0
  87. package/dist/cdn/YQTJQ5J7.js +2 -0
  88. package/dist/cdn/Z4GL4EF6.js +2 -0
  89. package/dist/cdn/ZIXBICPN.js +2 -0
  90. package/dist/cdn/ZRDVJBTQ.js +2 -0
  91. package/dist/cdn/index.js +1 -1
  92. package/dist/chart-rendering/common/data/utils/summarize-data/interfaces.d.ts +8 -0
  93. package/dist/chart-rendering/common/interfaces.d.ts +7 -0
  94. package/dist/chunks/action-bar-utils.js +22 -28
  95. package/dist/chunks/axis-lines-symbol.js +8 -8
  96. package/dist/chunks/bar-chart-model.js +19 -25
  97. package/dist/chunks/bar-chart-series.js +12 -18
  98. package/dist/chunks/box-plot-data.js +75 -81
  99. package/dist/chunks/box-plot-model.js +19 -19
  100. package/dist/chunks/chart-model.js +40 -46
  101. package/dist/chunks/chart-ui-utils2.js +47 -53
  102. package/dist/chunks/class-breaks.js +16 -16
  103. package/dist/chunks/combo-bar-line-chart-model.js +20 -20
  104. package/dist/chunks/data-labels-symbol.js +5 -5
  105. package/dist/chunks/data.js +53 -59
  106. package/dist/chunks/gauge-model.js +22 -28
  107. package/dist/chunks/generate-x-axis-title.js +30 -36
  108. package/dist/chunks/heat-chart-model.js +10 -16
  109. package/dist/chunks/histogram-data.js +53 -59
  110. package/dist/chunks/histogram-model.js +31 -31
  111. package/dist/chunks/index.js +608 -20565
  112. package/dist/chunks/index2.js +171 -678
  113. package/dist/chunks/index3.js +46 -181
  114. package/dist/chunks/interfaces.js +16443 -103
  115. package/dist/chunks/interfaces2.js +109 -0
  116. package/dist/chunks/line-chart-model.js +2 -2
  117. package/dist/chunks/model-setter.js +15 -21
  118. package/dist/chunks/model-with-guides.js +22 -28
  119. package/dist/chunks/model-with-tooltips.js +23 -29
  120. package/dist/chunks/model-with-x-guides.js +4 -4
  121. package/dist/chunks/model-with-y-guides.js +25 -31
  122. package/dist/chunks/negative-values-stacked-to-baseline.js +41 -47
  123. package/dist/chunks/pie-chart-data.js +33 -39
  124. package/dist/chunks/pie-chart-model.js +62 -68
  125. package/dist/chunks/radar-chart-model.js +8 -15
  126. package/dist/chunks/rotated-state.js +9 -15
  127. package/dist/chunks/scatterplot-model.js +84 -90
  128. package/dist/chunks/serial-chart-data.js +8178 -4195
  129. package/dist/chunks/serial-chart-model.js +32 -39
  130. package/dist/chunks/series-length.js +14 -20
  131. package/dist/chunks/series.js +10 -16
  132. package/dist/chunks/utils.js +337 -119
  133. package/dist/chunks/utils2.js +19 -25
  134. package/dist/chunks/web-component-utils.js +42 -42
  135. package/dist/components/arcgis-chart/customElement.js +5255 -5339
  136. package/dist/components/arcgis-charts-action-bar/customElement.js +2 -2
  137. package/dist/components/arcgis-charts-config-bar-chart/customElement.js +22 -28
  138. package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +4 -10
  139. package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +15 -20
  140. package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +9 -15
  141. package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +9 -15
  142. package/dist/components/arcgis-charts-config-box-plot/customElement.js +10 -16
  143. package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +5 -11
  144. package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +33 -38
  145. package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +4 -10
  146. package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +4 -10
  147. package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +7 -13
  148. package/dist/components/arcgis-charts-config-create-flow/customElement.js +14 -20
  149. package/dist/components/arcgis-charts-config-font-style/customElement.js +14 -20
  150. package/dist/components/arcgis-charts-config-format/customElement.js +4 -10
  151. package/dist/components/arcgis-charts-config-format-popover/customElement.js +10 -16
  152. package/dist/components/arcgis-charts-config-general/customElement.js +8 -14
  153. package/dist/components/arcgis-charts-config-guide/customElement.js +14 -19
  154. package/dist/components/arcgis-charts-config-guide-popover/customElement.js +13 -19
  155. package/dist/components/arcgis-charts-config-guides-type-popover/customElement.js +4 -10
  156. package/dist/components/arcgis-charts-config-heat-chart/customElement.js +20 -26
  157. package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +17 -24
  158. package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +15 -21
  159. package/dist/components/arcgis-charts-config-histogram/customElement.js +26 -32
  160. package/dist/components/arcgis-charts-config-histogram-data/customElement.js +26 -32
  161. package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +5 -11
  162. package/dist/components/arcgis-charts-config-line-chart/customElement.js +18 -24
  163. package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +12 -18
  164. package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +8 -14
  165. package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +4 -10
  166. package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +4 -10
  167. package/dist/components/arcgis-charts-config-pie-chart/customElement.js +5 -11
  168. package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +8 -14
  169. package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +18 -24
  170. package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +8 -14
  171. package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +4 -10
  172. package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +22 -28
  173. package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +9 -15
  174. package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +5 -11
  175. package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +4 -10
  176. package/dist/components/arcgis-charts-config-view-charts/customElement.js +12 -19
  177. package/dist/components/arcgis-charts-info-modal/customElement.js +4 -10
  178. package/dist/docs/api.json +1 -1
  179. package/dist/docs/docs.json +1 -1
  180. package/dist/docs/vscode.html-custom-data.json +1 -1
  181. package/dist/docs/web-types.json +1 -1
  182. package/dist/index.js +421 -412
  183. package/dist/utils/chart-config/utils/index.d.ts +22 -1
  184. package/dist/utils/chart-config/validator/index.d.ts +2 -2
  185. package/dist/utils/data/index.d.ts +48 -1
  186. package/dist/utils/data/pie-chart/index.d.ts +31 -0
  187. package/package.json +3 -3
  188. package/dist/cdn/2R7GVZ2K.js +0 -2
  189. package/dist/cdn/3LT2GKQ2.js +0 -2
  190. package/dist/cdn/4D7IL776.js +0 -23
  191. package/dist/cdn/4TUXERAH.js +0 -2
  192. package/dist/cdn/53BACKKK.js +0 -2
  193. package/dist/cdn/5TNV7JHC.js +0 -2
  194. package/dist/cdn/627BGNFG.js +0 -2
  195. package/dist/cdn/6LOKVOKI.js +0 -2
  196. package/dist/cdn/6NZ5UJML.js +0 -2
  197. package/dist/cdn/6WJVFMRO.js +0 -2
  198. package/dist/cdn/7GZN67ZQ.js +0 -2
  199. package/dist/cdn/7SSD7QVG.js +0 -2
  200. package/dist/cdn/7XRXZ5B3.js +0 -2
  201. package/dist/cdn/7Y57O4FJ.js +0 -2
  202. package/dist/cdn/7Y7YFJKK.js +0 -2
  203. package/dist/cdn/7YXQ6TZT.js +0 -2
  204. package/dist/cdn/A642VLJ3.js +0 -2
  205. package/dist/cdn/AVCKTWRB.js +0 -2
  206. package/dist/cdn/BCEUGCIB.js +0 -2
  207. package/dist/cdn/BP7HN7YH.js +0 -2
  208. package/dist/cdn/BPZNMCFA.js +0 -2
  209. package/dist/cdn/DRLAYMR6.js +0 -2
  210. package/dist/cdn/DXWMRZX7.js +0 -2
  211. package/dist/cdn/E7ZG5PMT.js +0 -2
  212. package/dist/cdn/EDBE2EVF.js +0 -2
  213. package/dist/cdn/EDCUOXXS.js +0 -2
  214. package/dist/cdn/EWCL54AQ.js +0 -2
  215. package/dist/cdn/FKR2N42T.js +0 -2
  216. package/dist/cdn/GT2GE37X.js +0 -2
  217. package/dist/cdn/HHMRHLFD.js +0 -2
  218. package/dist/cdn/HMYIPN7X.js +0 -2
  219. package/dist/cdn/HQZDYYW6.js +0 -2
  220. package/dist/cdn/HZDIYXNY.js +0 -2
  221. package/dist/cdn/I34GLJPW.js +0 -2
  222. package/dist/cdn/IGRLN5QE.js +0 -2
  223. package/dist/cdn/IJD3YDOE.js +0 -2
  224. package/dist/cdn/ITF5WJUH.js +0 -2
  225. package/dist/cdn/J73HEYK6.js +0 -2
  226. package/dist/cdn/JWTEQZTD.js +0 -2
  227. package/dist/cdn/KDLX6TGN.js +0 -2
  228. package/dist/cdn/LLNUWDC5.js +0 -2
  229. package/dist/cdn/LZ7LNUEI.js +0 -2
  230. package/dist/cdn/MAZJTJ64.js +0 -2
  231. package/dist/cdn/MB7BDR7H.js +0 -2
  232. package/dist/cdn/MTTVUHUH.js +0 -2
  233. package/dist/cdn/MVLJJ7VZ.js +0 -2
  234. package/dist/cdn/N373OIOT.js +0 -2
  235. package/dist/cdn/N4GBOPIU.js +0 -2
  236. package/dist/cdn/OG3JZ3LP.js +0 -37
  237. package/dist/cdn/PSYU6XTK.js +0 -2
  238. package/dist/cdn/PVTBEXFF.js +0 -2
  239. package/dist/cdn/PYLJO324.js +0 -2
  240. package/dist/cdn/QQ6DOFHZ.js +0 -99
  241. package/dist/cdn/RAJWBR34.js +0 -2
  242. package/dist/cdn/S7COU7MH.js +0 -2
  243. package/dist/cdn/SYY7UU2N.js +0 -2
  244. package/dist/cdn/TN45YUM2.js +0 -2
  245. package/dist/cdn/TODWZ6FZ.js +0 -2
  246. package/dist/cdn/TP7767ZV.js +0 -2
  247. package/dist/cdn/UFJOL4MK.js +0 -2
  248. package/dist/cdn/ULSVHCH4.js +0 -2
  249. package/dist/cdn/UVFPEIK2.js +0 -2
  250. package/dist/cdn/V3PU5TMU.js +0 -2
  251. package/dist/cdn/V3VVN7ST.js +0 -2
  252. package/dist/cdn/V5JXE6N4.js +0 -2
  253. package/dist/cdn/VPOAGMYE.js +0 -2
  254. package/dist/cdn/VXMMIOTJ.js +0 -2
  255. package/dist/cdn/WL2XRSAH.js +0 -2
  256. package/dist/cdn/WWARKOXR.js +0 -2
  257. package/dist/cdn/WWGW24FD.js +0 -2
  258. package/dist/cdn/XUHCS2SB.js +0 -2
  259. package/dist/cdn/YBAPI2UV.js +0 -2
  260. package/dist/cdn/YJDYXU2Q.js +0 -2
  261. package/dist/cdn/YUZ26Q2B.js +0 -2
  262. package/dist/cdn/ZRDKD2U3.js +0 -2
  263. package/dist/cdn/ZVOSWG36.js +0 -2
  264. /package/dist/cdn/{FPDW4F45.js → VCUC6CMW.js} +0 -0
@@ -1,692 +1,185 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import { getElementLocale as Ge } from "@arcgis/toolkit/intl";
3
- import { cloneDeep as s, isEmpty as B } from "lodash-es";
4
- import { DateTime as ze } from "luxon";
5
- import { bz as _e, af as re, ar as je, dY as ie, dX as He, d3 as Re, dP as $e, W as Ye, ds as Qe, bw as Ke, ap as C, cK as Xe, C as c, ad as b, dk as Z, c2 as Je, c3 as Ze, z as Ue, bJ as T, M as K, cG as oe, aG as et, q as tt, bb as rt, $ as it } from "./index.js";
6
- import { h as ot, n as st, r as nt } from "./index4.js";
7
- import { v as U, w as h, u as l, r as F, n as f, p as S, f as at, j as ee, s as g } from "./series-types.js";
8
- var L = /* @__PURE__ */ ((r) => (r.NONE = "none", r.ROTATE = "rotate", r.STAGGER = "stagger", r.WRAP = "wrap", r))(L || {});
9
- function se(r) {
10
- const { configToUpdate: e, chartContainer: i, layer: t } = r, o = s(e);
11
- if (t?.capabilities?.queryAttributeBins?.supportsFirstDayOfWeek === !0 && (!("firstDayOfWeek" in e) || e.firstDayOfWeek === void 0 || e.firstDayOfWeek === null)) {
12
- const { lang: n } = Ge(i ?? document.documentElement);
13
- try {
14
- o.firstDayOfWeek = ze.local().setLocale(n.replaceAll("_", "-")).startOf("week", { useLocaleWeeks: !0 }).weekday;
15
- } catch {
16
- }
17
- }
18
- return o;
19
- }
20
- function ne(r) {
21
- const e = s(r);
22
- return B(r.axes) || (e.axes = r.axes?.map((i) => {
23
- const t = i;
24
- 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
- })), e;
26
- }
27
- function ae(r) {
28
- const e = s(r);
29
- return B(r.series) || (e.series = r.series.map((i, t) => {
30
- const o = i;
31
- i.id === void 0 && (o.id = `Series ${Date.now()}-${t}`);
32
- const n = h(r.series, t);
33
- return (n === l.BarSeries || n === l.LineSeries || n === l.RadarSeries) && o.query?.outStatistics?.[0]?.statisticType === "median" && (o.query.outStatistics[0].statisticType = F.ContinuousPercentile), n === l.BarSeries && o.multipleBarType !== void 0 && (o.stackedType = o.multipleBarType, delete o.multipleBarType), n === l.PieSeries && o.sliceGrouping !== void 0 && (o.sliceGrouping.sliceId = Qe.defaultGroupOfSlicesId, o.sliceGrouping.groupName !== void 0 && (o.sliceGrouping = {
34
- ...o.sliceGrouping,
35
- label: o.sliceGrouping.groupName
36
- }, delete o.sliceGrouping.groupName), o.sliceGrouping.groupSliceSymbol !== void 0 && (o.sliceGrouping = {
37
- ...o.sliceGrouping,
38
- fillSymbol: o.sliceGrouping.groupSliceSymbol
39
- }, delete o.sliceGrouping.groupSliceSymbol)), o;
40
- })), e;
41
- }
42
- function te(r, e) {
43
- const i = [];
44
- return r.forEach((t) => {
45
- if (!oe(t)) {
46
- const o = T(t, !1);
47
- if (o.fieldToSort !== void 0) {
48
- const n = b({
49
- queryObject: e,
50
- fieldToMatch: o.fieldToSort
51
- });
52
- n !== void 0 && i.push(
53
- o.orderBy === void 0 ? n : `${n} ${o.orderBy}`
54
- );
55
- }
56
- }
57
- }), i;
58
- }
59
- async function de(r, e) {
60
- const i = { ...r };
61
- let t = e;
62
- if (!t) {
63
- const o = ot(r) ? r.iLayer : r.dataSource?.layer;
64
- o && (t = await Ke(o));
65
- }
66
- if (t) {
67
- const o = C(i.series), n = h(i.series), u = i.series && i.series.length > 0 && i.series[0].x.trim() === "" || n === l.GaugeSeries && !Xe(r) || o === c.PieFromFields || o === c.BarAndLineFromFields || o === c.BoxPlotMonoField || o === c.BoxPlotMonoFieldAndSplitBy || o === c.BoxPlotMultiFields || o === c.BoxPlotMultiFieldsAndSplitBy, v = n === l.ScatterSeries || n === l.HeatSeries || o === c.BarAndLineNoAggregation || o === c.BarAndLineSplitByNoAggregation || o === c.BoxPlotMonoField || o === c.BoxPlotMonoFieldAndSplitBy || o === c.BoxPlotMonoFieldAndCategory || o === c.BoxPlotMonoFieldAndCategoryAndSplitBy || o === c.PieNoAggregation;
68
- if (i.series = r.series.map((a) => {
69
- const d = { ...a };
70
- if (u || (d.x = b({ queryObject: t, fieldToMatch: a.x })), "y" in d && v) {
71
- const y = d.y;
72
- if (Array.isArray(y)) {
73
- const p = Z({
74
- fieldsList: y,
75
- queryObject: t
76
- });
77
- p !== void 0 && "y" in d && (d.y = p);
78
- } else "y" in d && typeof y == "string" && (d.y = b({ queryObject: t, fieldToMatch: y }));
79
- }
80
- if (a.query !== void 0) {
81
- let { where: y, groupByFieldsForStatistics: p, outStatistics: m } = a.query;
82
- if (p = Z({ fieldsList: p, queryObject: t }), m !== void 0 && (m = m.map((x) => {
83
- const O = { ...x };
84
- return O.onStatisticField = b({
85
- queryObject: t,
86
- fieldToMatch: x.onStatisticField
87
- }), O;
88
- })), y !== void 0 && o === c.BarAndLineSplitBy) {
89
- const x = Je(a.query?.where), O = Ze({
90
- where: a.query?.where,
91
- normalize: !1,
92
- escape: !1
93
- });
94
- y = `${b({ queryObject: t, fieldToMatch: x })}=${O}`;
95
- }
96
- d.query !== void 0 && (y !== void 0 && (d.query.where = y), p !== void 0 && (d.query.groupByFieldsForStatistics = p), m !== void 0 && (d.query.outStatistics = m));
97
- }
98
- return d;
99
- }), i.series[0]?.query !== void 0) {
100
- const a = i.series[0].query;
101
- let { orderByFields: d } = a;
102
- d !== void 0 && d.length > 0 && (d = te(d, t), d.length > 0 && a.orderByFields !== void 0 && (i.series[0].query.orderByFields = d));
103
- }
104
- if (i.orderOptions?.orderByFields !== void 0) {
105
- let { orderByFields: a } = i.orderOptions;
106
- a !== void 0 && a.length > 0 && (a = te(a, t), a.length > 0 && (i.orderOptions.orderByFields = a));
107
- }
108
- if (n === l.GaugeSeries && r.axes?.[0] !== void 0) {
109
- const { minimumFromField: a, maximumFromField: d } = r.axes[0];
110
- if (a !== void 0) {
111
- const y = typeof a == "string" ? a : a.onStatisticField, p = b({ queryObject: t, fieldToMatch: y });
112
- let m = a;
113
- typeof r.axes[0].minimumFromField == "string" ? m = p : typeof a == "object" && (m = {
114
- ...a,
115
- onStatisticField: p
116
- }), r.axes[0].minimumFromField = m;
117
- }
118
- if (d !== void 0) {
119
- const y = typeof d == "string" ? d : d.onStatisticField, p = b({ queryObject: t, fieldToMatch: y });
120
- let m = d;
121
- typeof r.axes[0].maximumFromField == "string" ? m = p : typeof d == "object" && (m = {
122
- ...d,
123
- onStatisticField: p
124
- }), r.axes[0].maximumFromField = m;
125
- }
126
- }
127
- }
128
- return i;
129
- }
130
- function le(r) {
131
- const e = s(r);
132
- if (!B(r.series) && h(r.series) === l.BoxPlotSeries) {
133
- const t = e.series[0];
134
- 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));
135
- }
136
- return e;
137
- }
138
- function ce(r) {
139
- const e = {
140
- orderType: f.Category,
141
- orderBy: S.Ascending
142
- }, i = r.query?.orderByFields?.[0];
143
- if (i !== void 0) {
144
- const { outStatisticFieldName: t, statisticType: o } = r.query?.outStatistics?.[0] ?? {}, n = T(i);
145
- t !== void 0 && n.fieldToSort === t && o !== void 0 && (o === F.Average || o === "mean" ? e.orderType = f.Mean : o === F.ContinuousPercentile && (e.orderType = f.Median)), e.orderBy = n.orderBy ?? S.Ascending;
146
- }
147
- return e;
148
- }
149
- function ue(r) {
150
- let e = !1;
151
- const i = Array.from(new Set(r.series.map((t) => t.type)));
152
- return i.length === 2 && i.includes(l.BoxPlotSeries) && i.includes(l.LineSeries) && (e = r.series.find((o) => o.type === l.LineSeries)?.query?.outStatistics?.[0] !== void 0), e;
153
- }
154
- function fe(r) {
155
- const e = s(r);
156
- if (!B(e.series) && h(r.series) === l.BoxPlotSeries) {
157
- if (e.orderOptions?.data === void 0) {
158
- const t = ce(r.series[0]);
159
- t.orderType !== void 0 && (e.orderOptions ??= {}, e.orderOptions.data = {
160
- orderType: t.orderType,
161
- orderBy: t.orderBy
162
- });
163
- }
164
- if (e.series = r.series.map((t) => {
165
- const o = t;
166
- return B(o.x?.trim()) && (o.x = Ue), delete o.query?.orderByFields, o;
167
- }), ue(e)) {
168
- e.showMean = !0;
169
- const t = e.series.find(
170
- (o) => o.type === l.BoxPlotSeries
171
- );
172
- e.series.forEach((o) => {
173
- o.type === l.LineSeries && (delete o.query?.groupByFieldsForStatistics, delete o.query?.outStatistics, delete o.query?.orderByFields, t && (o.y = t.y));
174
- });
175
- }
176
- e.series = r.series.map((t) => {
177
- const o = t;
178
- return delete o.query?.outStatistics, o;
179
- });
180
- }
181
- return e;
182
- }
183
- function ye(r) {
184
- const e = s(r);
185
- return e.legend !== void 0 && !Number.isFinite(e.legend.maxHeight) && (e.legend.maxHeight = void 0), e;
186
- }
187
- function pe(r) {
188
- const e = s(r);
189
- return "dataSource" in e && e.dataSource.layer && (e.iLayer = e.dataSource.layer, delete e.dataSource), e;
190
- }
191
- function me(r) {
192
- const e = s(r), i = /* @__PURE__ */ new Set(), t = e.id ?? "";
193
- return i.add(t), e.series.forEach((o) => {
194
- let n = o.id;
195
- i.has(n) && (n = `${n}_${Date.now()}`, o.id = n), i.add(n);
196
- }), e;
197
- }
198
- async function Se(r) {
199
- const { configToUpdate: e, layer: i, chartContainer: t } = r;
200
- let o = s(e);
201
- if (o = ne(o), o = ae(o), o = await de(o, i), ie(o)) {
202
- const n = le(o);
203
- o = fe(n);
204
- }
205
- return o = ye(o), o = me(o), He(o) && !Re(i) && (o = se({ configToUpdate: o, chartContainer: t, layer: i })), o;
206
- }
207
- function ve(r) {
208
- const e = s(r);
209
- return e?.orderOptions?.orderByFields !== void 0 && C(r.series) === c.PieFromFields && (e.orderOptions.orderByFields = r?.orderOptions?.orderByFields?.map(
210
- (i) => {
211
- let t = s(i);
212
- return i !== void 0 && i.includes("arcgis_charts_pie_category_from_fields_name") && (t = i.replace(
213
- "arcgis_charts_pie_category_from_fields_name",
214
- K
215
- )), t;
216
- }
217
- )), e;
218
- }
219
- function Be(r) {
220
- const e = s(r);
221
- if (!B(r.series) && e.axes?.[0] !== void 0 && h(r.series) === l.GaugeSeries && r.axes?.[0] !== void 0) {
222
- const t = r.axes[0];
223
- t.ticks !== void 0 && Object.hasOwn(t.ticks, "spacing") && delete t.ticks.spacing, e.axes[0] = t;
224
- }
225
- return e;
226
- }
227
- function he(r) {
228
- const e = s(r), { extent: i } = e.series[0]?.query ?? {};
229
- return i !== void 0 && (e.dataFilters = {
230
- ...e.dataFilters,
231
- geometry: i
232
- }, e.series.forEach((t) => {
233
- "query" in t && "extent" in t.query && delete t.query.extent;
234
- })), e;
235
- }
236
- function X(r) {
237
- const e = s(r);
238
- return B(r.series) || (st(r) && r.rotated === void 0 && (e.rotated = r.series[0].rotated ?? et()), e.series.forEach((i) => {
239
- i.rotated !== void 0 && delete i.rotated;
240
- })), e;
241
- }
242
- function ge(r) {
243
- const e = s(r), i = r.dataSource;
244
- 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;
245
- }
246
- function be(r) {
247
- const e = s(r);
248
- if ("dataSource" in r) {
249
- const i = r.dataSource;
250
- if (i.filter !== void 0 && i.filter.trim() !== "") {
251
- const t = tt([i.filter, e.dataFilters?.where]);
252
- e.dataFilters = {
253
- ...e.dataFilters,
254
- where: t
255
- }, delete e.dataSource.filter;
256
- }
257
- }
258
- return e;
259
- }
260
- function Fe(r) {
261
- return r !== "originalValue";
262
- }
263
- function J(r) {
264
- let e;
265
- switch (r) {
266
- case "mean":
267
- e = f.Mean;
268
- break;
269
- case "median":
270
- e = f.Median;
271
- break;
272
- case "category":
273
- e = f.Category;
2
+ import { cloneDeep as w } from "lodash-es";
3
+ import { bh as V } from "./interfaces.js";
4
+ import { i as g, f as y, g as p, R as $ } from "./rest-js-object-literals.js";
5
+ function L(i) {
6
+ let r;
7
+ switch (i.length) {
8
+ case 4: {
9
+ const e = i.match(/^#?([\da-f]{1})([\da-f]{1})([\da-f]{1})$/iu);
10
+ e && (r = [
11
+ Number.parseInt(`${e[1]}${e[1]}`, 16),
12
+ Number.parseInt(`${e[2]}${e[2]}`, 16),
13
+ Number.parseInt(`${e[3]}${e[3]}`, 16),
14
+ 255
15
+ ]);
274
16
  break;
275
- }
276
- return e;
277
- }
278
- function xe(r) {
279
- const e = s(r);
280
- if (!B(r.series) && h(r.series) === l.PieSeries) {
281
- const t = e.series[0];
282
- if (t) {
283
- if (t.sortLabelsBy === "originalValue")
284
- e.sortLabelsBy = t.sortLabelsBy;
285
- else if (t.sortLabelsBy !== void 0 && e.orderOptions?.data === void 0) {
286
- const o = P(e);
287
- o !== void 0 && (e.orderOptions ??= {}, e.orderOptions.data = o);
288
- }
289
- t.sortLabelsBy && delete t.sortLabelsBy;
290
17
  }
291
- }
292
- return e;
293
- }
294
- function Oe(r) {
295
- const e = s(r);
296
- return B(r.series) || (nt(r) && r.stackedType === void 0 && (e.stackedType = r.series[0].stackedType ?? rt()), e.series.forEach((i) => {
297
- "stackedType" in i && delete i.stackedType;
298
- })), e;
299
- }
300
- function Ce(r) {
301
- const e = s(r), i = r.sortOptions?.sortSeriesBy;
302
- return e.orderOptions === void 0 && typeof i == "string" && (e.orderOptions ??= {}, e.orderOptions.series = {
303
- orderBy: i === "DESC" ? S.Descending : S.Ascending
304
- }), e;
305
- }
306
- function Te(r) {
307
- const e = s(r);
308
- return e.colorMatch === void 0 && e.series[0]?.colorType !== void 0 && (e.colorMatch = e.series[0]?.colorType === at.Match), e.series.forEach((i) => {
309
- i.colorType !== void 0 && delete i.colorType;
310
- }), e;
311
- }
312
- function Pe(r) {
313
- const e = s(r);
314
- if (e.sortDataBy !== void 0) {
315
- if (e.orderOptions?.data === void 0) {
316
- const i = r.sortDataBy, t = J(i?.sortType);
317
- t && t !== f.MultiAxes && (e.orderOptions ??= {}, e.orderOptions.data = {
318
- orderType: t,
319
- orderBy: i?.sortOrder ?? S.Ascending
320
- });
18
+ case 5: {
19
+ const e = i.match(/^#?([\da-f]{1})([\da-f]{1})([\da-f]{1})([\da-f]{1})$/iu);
20
+ e && (r = [
21
+ Number.parseInt(`${e[1]}${e[1]}`, 16),
22
+ Number.parseInt(`${e[2]}${e[2]}`, 16),
23
+ Number.parseInt(`${e[3]}${e[3]}`, 16),
24
+ Number.parseInt(`${e[4]}${e[4]}`, 16)
25
+ ]);
26
+ break;
321
27
  }
322
- delete e.sortDataBy;
323
- }
324
- return e;
325
- }
326
- function Le(r) {
327
- const e = s(r);
328
- return e.axes?.forEach((i) => {
329
- i !== void 0 && i.scrollbarVisible !== void 0 && i.scrollbar?.visible === void 0 && (i.scrollbar = {
330
- ...i.scrollbar,
331
- visible: i.scrollbarVisible
332
- }, delete i.scrollbarVisible);
333
- }), e;
334
- }
335
- function ke(r) {
336
- const e = s(r), i = e.series[0]?.query?.orderByFields;
337
- if (i !== void 0 && i.length > 0 && e.orderOptions?.orderByFields === void 0) {
338
- e.orderOptions ??= {};
339
- let t = !0;
340
- if (i.length === 1) {
341
- const { fieldToSort: o, orderBy: n } = T(i[0]);
342
- let u;
343
- o === r.series[0].x || o === K ? u = f.Category : "y" in r.series[0] && o === r.series[0].y && (u = f.YValue), u && u !== f.MultiAxes && (t = !1, e.orderOptions.data === void 0 && (e.orderOptions.data = {
344
- orderType: u,
345
- orderBy: n?.toUpperCase() === "DESC" ? S.Descending : S.Ascending
346
- }));
28
+ case 7: {
29
+ const e = i.match(/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/iu);
30
+ e && (r = [
31
+ Number.parseInt(e[1], 16),
32
+ Number.parseInt(e[2], 16),
33
+ Number.parseInt(e[3], 16),
34
+ 255
35
+ ]);
36
+ break;
347
37
  }
348
- t && (e.orderOptions.orderByFields = i);
349
- }
350
- return e.series.forEach((t) => {
351
- delete t.query?.orderByFields;
352
- }), e;
353
- }
354
- function P(r) {
355
- let e, i = r.orderOptions?.orderByFields?.[0];
356
- if (r.series?.length > 0) {
357
- const t = h(r.series), o = C(r.series);
358
- if (t !== l.PieSeries && o !== c.BarAndLineFromFields && (i = i ?? r.series[0].x), i && !oe(i)) {
359
- const { fieldToSort: n, orderBy: u } = T(i);
360
- let v;
361
- n === r.series[0].x || n === K ? v = f.Category : "y" in r.series[0] && n === r.series[0].y && (v = f.YValue), v && v !== f.MultiAxes && (e = {
362
- orderType: v,
363
- orderBy: u?.toUpperCase() === "DESC" ? S.Descending : S.Ascending
364
- });
38
+ case 9: {
39
+ const e = i.match(/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})([\da-f]{2})$/iu);
40
+ e && (r = [
41
+ Number.parseInt(e[1], 16),
42
+ Number.parseInt(e[2], 16),
43
+ Number.parseInt(e[3], 16),
44
+ Number.parseInt(e[4], 16)
45
+ ]);
46
+ break;
365
47
  }
366
48
  }
367
- return e;
368
- }
369
- function we(r) {
370
- const e = s(r), i = r, t = r, o = r, n = r, u = r;
371
- if (e) {
372
- if (e.orderOptions?.series === void 0 && i.sortOptions?.sortSeriesBy !== void 0 && (e.orderOptions ??= {}, e.orderOptions.series = {
373
- preferLabel: Fe(
374
- t.sortLabelsBy ?? i.sortOptions.sortSeriesBy.sortType
375
- ),
376
- orderBy: i.sortOptions.sortSeriesBy.sortOrder ?? S.Ascending
377
- }), t.sortLabelsBy === "originalValue" || n.orderOptions?.data?.preferDataLabel === !1 || u.orderOptions?.data?.preferLabel === !1)
378
- e.orderOptions?.data && delete e.orderOptions.data;
379
- else if (e.orderOptions?.data === void 0)
380
- if (h(e.series) === l.BoxPlotSeries) {
381
- if (t.sortLabelsBy || o.sortOptions?.sortDataBy !== void 0) {
382
- const a = J(o.sortOptions?.sortDataBy?.sortType);
383
- a && a !== f.MultiAxes && (e.orderOptions ??= {}, e.orderOptions.data = {
384
- orderType: a,
385
- orderBy: o.sortOptions?.sortDataBy?.sortOrder ?? S.Ascending
386
- });
49
+ return r;
50
+ }
51
+ function N(i) {
52
+ let r;
53
+ if (typeof i == "string" && i.startsWith("#")) {
54
+ const e = L(i);
55
+ e && (r = e);
56
+ } else Array.isArray(i) && i.every((e) => typeof e == "number") && (i.length === 4 ? r = i : i.length === 3 && (r = [...i, 255]));
57
+ return r;
58
+ }
59
+ function R(i) {
60
+ return i === y.BackwardDiagonal || i === y.Cross || i === y.DiagonalCross || i === y.ForwardDiagonal || i === y.Horizontal || i === y.Null || i === y.Solid || i === y.Vertical;
61
+ }
62
+ function I(i) {
63
+ return i === p.Dash || i === p.DashDot || i === p.DashDotDot || i === p.Dot || i === p.Null || i === p.Solid;
64
+ }
65
+ function W(i) {
66
+ const { categoryField: r, numericFields: e, configFields: n, inlineData: s } = i;
67
+ let u = {};
68
+ return n && Object.keys(n).length > 0 && "dataItems" in s && (u = {
69
+ type: "uniqueValue",
70
+ field1: r,
71
+ uniqueValueInfos: []
72
+ }, s.dataItems.forEach((l) => {
73
+ const a = l[r];
74
+ if (a != null) {
75
+ let t = { value: a };
76
+ e.forEach((o) => {
77
+ const c = N(l[`${n.fillColor}_${o}`]), b = l[`${n.fillOpacity}_${o}`], S = l[`${n.fillStyle}_${o}`], m = l[`${n.markerSize}_${o}`], D = N(l[`${n.outlineColor}_${o}`]), O = l[`${n.outlineOpacity}_${o}`], h = l[`${n.outlineWidth}_${o}`], k = l[`${n.outlineStyle}_${o}`], F = N(l[`${n.lineColor}_${o}`]), v = l[`${n.lineOpacity}_${o}`], d = l[`${n.lineWidth}_${o}`], _ = l[`${n.lineStyle}_${o}`], C = l[`${n.displayLabel}_${o}`];
78
+ if (typeof C == "string" && (t = {
79
+ ...t,
80
+ label: C
81
+ }), m != null) {
82
+ const f = { type: g.SMS };
83
+ m && typeof m == "number" && (f.size = m), t.symbol = f;
387
84
  }
388
- } else {
389
- const a = P(e);
390
- a !== void 0 && (e.orderOptions ??= {}, e.orderOptions.data = a);
391
- }
392
- "sortLabelsBy" in e && delete e.sortLabelsBy, "sortOptions" in e && delete e.sortOptions;
393
- }
394
- return e;
395
- }
396
- function Ae(r) {
397
- const e = s(r);
398
- if (e) {
399
- const i = C(e.series);
400
- if ((i === c.BarAndLineFromFields || i === c.PieFromFields) && e.orderOptions?.data === void 0 && e.orderOptions?.orderByFields !== void 0) {
401
- const t = P(e);
402
- t !== void 0 && (e.orderOptions ??= {}, e.orderOptions.data = t, delete e.orderOptions.orderByFields);
403
- }
404
- }
405
- return e;
406
- }
407
- function De(r) {
408
- const e = s(r);
409
- return e.horizontalAxisLabelsBehavior === L.NONE && (e.horizontalAxisLabelsBehavior = ee.Hide), e.verticalAxisLabelsBehavior === L.NONE && (e.verticalAxisLabelsBehavior = ee.Hide), e;
410
- }
411
- function Me(r) {
412
- const e = s(r), i = e.series[0];
413
- if (i && !i.temporalBinning && it(e.series[0]) && ("timeIntervalSize" in i || "timeIntervalUnits" in i || "timeAggregationType" in i || "trimIncompleteTimeInterval" in i || "nullPolicy" in i)) {
414
- if (i.temporalBinning = {}, i.timeIntervalSize !== void 0 && (i.temporalBinning.size = i.timeIntervalSize, delete i.timeIntervalSize), i.timeIntervalUnits) {
415
- let t;
416
- switch (i.timeIntervalUnits) {
417
- case "esriTimeUnitsSeconds":
418
- t = g.Second;
419
- break;
420
- case "esriTimeUnitsMinutes":
421
- t = g.Minute;
422
- break;
423
- case "esriTimeUnitsHours":
424
- t = g.Hour;
425
- break;
426
- case "esriTimeUnitsDays":
427
- t = g.Day;
428
- break;
429
- case "esriTimeUnitsWeeks":
430
- t = g.Week;
431
- break;
432
- case "esriTimeUnitsMonths":
433
- t = g.Month;
434
- break;
435
- case "esriTimeUnitsYears":
436
- t = g.Year;
437
- break;
438
- }
439
- t !== void 0 && (i.temporalBinning.unit = t), delete i.timeIntervalUnits;
85
+ if (c || R(S)) {
86
+ const f = t.symbol && t.symbol.type === g.SMS ? t.symbol : {
87
+ type: g.SFS
88
+ };
89
+ if (c && (b && typeof b == "number" && (c[3] = b), f.color = c), R(S) && (f.style = S), t.symbol = f, D || h != null || I(k)) {
90
+ const T = { type: g.SLS };
91
+ D && (O && typeof O == "number" && (D[3] = O), T.color = D), I(k) && (T.style = k), h && typeof h == "number" && (T.width = h), t.symbol.outline = T;
92
+ }
93
+ } else if (F || d != null || I(_)) {
94
+ const f = { type: g.SLS };
95
+ F && (v && typeof v == "number" && (F[3] = v), f.color = F), I(_) && (f.style = _), d != null && typeof d == "number" && (f.width = d), t.symbol = f;
96
+ }
97
+ }), (t.label || t.symbol) && u.uniqueValueInfos.push(t);
440
98
  }
441
- 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);
442
- }
443
- return e;
444
- }
445
- function We(r) {
446
- const e = s(r);
447
- return e.series.forEach((i) => {
448
- i.query?.outStatistics?.forEach((t) => {
449
- t.statisticType === "percentile_cont" ? t.statisticType = F.ContinuousPercentile : t.statisticType === "percentile_disc" && (t.statisticType = F.DiscretePercentile);
99
+ })), u;
100
+ }
101
+ function E(i) {
102
+ const { numericFields: r, configFields: e, inlineData: n } = i, s = n;
103
+ return "dataItems" in n && Object.entries(e).forEach(([u, l]) => {
104
+ r.forEach((a) => {
105
+ const t = `${l}_${a}`;
106
+ n.dataItems.forEach((o) => {
107
+ t in o && delete o[t];
108
+ });
450
109
  });
451
- }), e;
452
- }
453
- function qe(r) {
454
- const e = s(r);
455
- return e.subtitle === void 0 && e.subTitle && (e.subtitle = e.subTitle), delete e.subTitle, e;
456
- }
457
- function Ie(r) {
458
- const e = s(r), i = e.series[0];
459
- return i?.temporalBinning && delete i.temporalBinning?.type, e;
460
- }
461
- function Ee(r) {
462
- const e = s(r), i = e.series[0], t = r;
463
- return t.series[0]?.xTemporalBinning && (i.xTemporalBinning = {
464
- ...t.series[0]?.xTemporalBinning,
465
- type: l.CalendarDateParts
466
- }), t.series[0]?.yTemporalBinning && (i.yTemporalBinning = {
467
- ...t.series[0]?.yTemporalBinning,
468
- type: l.CalendarDateParts
469
- }), e;
470
- }
471
- function Ne(r) {
472
- let e = s(r);
473
- return e = ve(e), e;
474
- }
475
- function k(r) {
476
- let e = s(r);
477
- return e = Be(e), e;
478
- }
479
- function w(r) {
480
- let e = s(r);
481
- return e = he(e), e;
482
- }
483
- function A(r) {
484
- let e = s(r);
485
- return e = X(e), e;
486
- }
487
- function D(r) {
488
- let e = s(r);
489
- return e = ge(e), e;
490
- }
491
- function M(r) {
492
- let e = s(r);
493
- return e = be(e), e;
494
- }
495
- function W(r) {
496
- let e = s(r);
497
- return e = xe(e), e;
498
- }
499
- function q(r) {
500
- let e = s(r);
501
- return e = Ce(e), e;
502
- }
503
- function I(r) {
504
- let e = s(r);
505
- return e = Te(e), e;
506
- }
507
- function E(r) {
508
- return Le(r);
509
- }
510
- function N(r) {
511
- let e = s(r);
512
- return ie(e) && (e = Pe(e)), e;
513
- }
514
- function V(r) {
515
- return Oe(r);
516
- }
517
- function G(r) {
518
- return we(r);
519
- }
520
- function z(r) {
521
- return pe(r);
522
- }
523
- function _(r) {
524
- return Ae(r);
525
- }
526
- function j(r) {
527
- return De(r);
528
- }
529
- function H(r) {
530
- return Me(r);
531
- }
532
- function R(r) {
533
- return We(r);
534
- }
535
- function $(r) {
536
- let e = s(r);
537
- return e = X(e), qe(e);
538
- }
539
- function Y(r) {
540
- let e = s(r);
541
- return e = Ie(e), e;
542
- }
543
- function Q(r) {
544
- let e = s(r);
545
- return e = Ee(e), e;
546
- }
547
- function Ve(r) {
548
- const { versionsToConvert: e = [], configToUpdate: i } = r;
549
- let t = s(i);
550
- return e.length > 0 && t !== void 0 && (t = ke(t), e.includes(re) || e.includes($e) ? (t = Ne(t), t = k(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 = z(t), t = _(t), t = j(t), t = H(t), t = R(t), t = $(t), t = Y(t), t = Q(t)) : e.forEach((o) => {
551
- if (t !== void 0)
552
- switch (o) {
553
- case "1.0.1":
554
- t = k(t);
555
- break;
556
- case "3.4.0":
557
- t = w(t);
558
- break;
559
- case "4.0.0":
560
- t = A(t);
561
- break;
562
- case "4.0.1":
563
- t = D(t);
564
- break;
565
- case "6.4.0":
566
- t = M(t);
567
- break;
568
- case "7.5.1":
569
- t = W(t);
570
- break;
571
- case "8.0.0":
572
- t = q(t);
573
- break;
574
- case "9.2.0":
575
- t = I(t);
576
- break;
577
- case "9.7.0":
578
- t = E(t);
579
- break;
580
- case "10.0.0":
581
- t = N(t);
582
- break;
583
- case "11.0.0":
584
- t = V(t);
585
- break;
586
- case "14.0.1":
587
- t = G(t);
588
- break;
589
- case "16.0.0":
590
- t = z(t);
591
- break;
592
- case "16.1.0":
593
- t = _(t);
594
- break;
595
- case "18.1.3":
596
- t = j(t);
597
- break;
598
- case "20.1.0":
599
- t = H(t);
600
- break;
601
- case "21.0.0":
602
- t = R(t);
603
- break;
604
- case "23.2.0":
605
- t = $(t);
606
- break;
607
- case "24.7.0":
608
- t = Y(t);
609
- break;
610
- case "24.8.0":
611
- t = Q(t);
612
- break;
110
+ }), s;
111
+ }
112
+ function j(i) {
113
+ const { categoryField: r, categoryType: e, numericFields: n, inlineData: s } = i;
114
+ let u;
115
+ if ("dataItems" in s) {
116
+ const { dataItems: l } = s, a = [];
117
+ let t = "OBJECTID";
118
+ const o = l.map((b, S) => {
119
+ const m = { ...b };
120
+ return "FID" in b ? t = "FID" : "ObjectId" in b && (t = "ObjectId"), m[t] || (m[t] = S), { attributes: m };
121
+ });
122
+ a.push({ type: "esriFieldTypeOID", name: t });
123
+ let c;
124
+ switch (e) {
125
+ case "dateOnly":
126
+ c = $.DateOnly;
127
+ break;
128
+ case "timeStampOffset":
129
+ c = $.TimestampOffset;
130
+ break;
131
+ case "date":
132
+ c = $.Date;
133
+ break;
134
+ case "number":
135
+ c = $.Double;
136
+ break;
137
+ case "string":
138
+ default:
139
+ c = $.String;
140
+ break;
141
+ }
142
+ a.push({ type: c, name: r }), n.forEach((b) => {
143
+ a.push({ type: $.Double, name: b });
144
+ }), u = {
145
+ id: "",
146
+ layerType: "ArcGISFeatureLayer",
147
+ featureCollection: {
148
+ layers: [{ layerDefinition: { fields: a }, featureSet: { features: o } }]
613
149
  }
614
- }), t.version = Ye), t;
615
- }
616
- async function mt(r, e, i) {
617
- let t = r;
618
- if (r) {
619
- const o = _e(e);
620
- await o?.load(), t = await Se({ configToUpdate: r, layer: o, chartContainer: i });
621
- const n = r.version ?? re, { versionStatus: u, versions: v } = je(n);
622
- (u === U.Older || u === U.Unrecognized) && (t = Ve({
623
- versionsToConvert: v,
624
- configToUpdate: t
625
- }));
626
- }
627
- return t;
628
- }
629
- const St = {
630
- adjustAxes: ne,
631
- adjustSeries: ae,
632
- matchChartFieldsToLayerFields: de,
633
- resetLegendMaxHeight: ye,
634
- moveSeriesQueryExtent: he,
635
- moveSeriesRotatedPropToChart: X,
636
- renameDataSourceProperties: ge,
637
- copyDataSourceFilterToConfig: be,
638
- adjustPieFromFieldsDefaultNameAndValue: ve,
639
- removeSpacingPropertyFromGauge: Be,
640
- moveBoxPlotSeriesPropsToChart: le,
641
- movePieSeriesSortLabelsPropToChart: xe,
642
- getProBoxPlotSortDataOption: ce,
643
- isBoxPlotConfigWithMeanLinesFromPro: ue,
644
- preventDuplicatedIds: me,
645
- adjustBoxPlotConfig: fe,
646
- convertSortSeriesByToObject: Ce,
647
- moveBoxPlotSortDataByProp: Pe,
648
- handleColorMatchChanges: Te,
649
- moveScrollbarVisible: Le,
650
- moveSeriesStackedTypePropToChart: Oe,
651
- convertBoxplotOldToNewDataSortType: J,
652
- getDataOrderFromOrderByFields: P,
653
- convertWebChartDataValueTypes: Fe,
654
- moveOrConvertSeriesOrderByFieldsToChartOrderOptions: ke,
655
- convertWebChartLabelBehaviorNoneToHide: De,
656
- handleOrderOptionsChanges: we,
657
- applyDataOrderInstructionForFromFieldsCharts: Ae,
658
- convertTemporalBinningProps: Me,
659
- convertRESTStatisticTypeToWebChartStatisticType: We,
660
- renameChartSubtitle: qe,
661
- applyMandatoryConversions: Se,
662
- convertTo1x0x1: Ne,
663
- convertTo2x0x0: k,
664
- convertTo3x5x0: w,
665
- convertTo4x0x1: A,
666
- convertTo5x0x0: D,
667
- convertTo7x0x0: M,
668
- convertTo7x6x0: W,
669
- convertTo8x0x1: q,
670
- convertTo9x3x0: I,
671
- convertTo10x0x0: E,
672
- convertTo11x0x0: N,
673
- convertTo12x0x0: V,
674
- convertTo15x0x0: G,
675
- convertTo16x1x0: z,
676
- convertTo16x1x1: _,
677
- convertTo19x0x0: j,
678
- convertTo20x2x0: H,
679
- convertTo21x1x0: R,
680
- convertTo23x3x0: $,
681
- convertTo24x8x0: Y,
682
- convertTo25x0x0: Q,
683
- convertTemporalBinningProps2: Ie,
684
- transformPropsInHeatChart: Ee,
685
- applyConversions: Ve,
686
- convertDataSourceToILayer: pe,
687
- applyDefaultFirstDayOfWeek: se
150
+ };
151
+ }
152
+ return u;
153
+ }
154
+ async function B(i) {
155
+ const { categoryField: r, categoryType: e, numericFields: n, configFields: s, inlineData: u } = i;
156
+ let l, a, t = w(u);
157
+ s && (l = W({
158
+ categoryField: r,
159
+ numericFields: n,
160
+ configFields: s,
161
+ inlineData: t
162
+ }), t = E({
163
+ numericFields: n,
164
+ configFields: s,
165
+ inlineData: t
166
+ }));
167
+ const o = j({
168
+ categoryField: r,
169
+ categoryType: e,
170
+ numericFields: n,
171
+ inlineData: t
172
+ });
173
+ return o && (a = await V(o)), { chartRenderer: l, iLayer: o, layer: a };
174
+ }
175
+ const M = {
176
+ hexToRGB: L,
177
+ convertColor: N,
178
+ removeConfigFieldsFromData: E
688
179
  };
689
180
  export {
690
- mt as a,
691
- St as c
181
+ B as a,
182
+ j as b,
183
+ W as c,
184
+ M as i
692
185
  };