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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (316) hide show
  1. package/README.md +2 -2
  2. package/dist/cdn/24TOMTMP.js +2 -0
  3. package/dist/cdn/2EPXIQFD.js +2 -0
  4. package/dist/cdn/2JUO3GP2.js +2 -0
  5. package/dist/cdn/2SVBUT3V.js +2 -0
  6. package/dist/cdn/2XTQT6TW.js +2 -0
  7. package/dist/cdn/{ANMNNZTA.js → 2YI4HWFY.js} +39 -39
  8. package/dist/cdn/34WNZMJY.js +2 -0
  9. package/dist/cdn/43P4WOC4.js +2 -0
  10. package/dist/cdn/4G5JOLEP.js +2 -0
  11. package/dist/cdn/4MZJZQDO.js +2 -0
  12. package/dist/cdn/52QMEXI6.js +2 -0
  13. package/dist/cdn/5I75UYWD.js +2 -0
  14. package/dist/cdn/5M72DGYL.js +2 -0
  15. package/dist/cdn/5PG6PXDG.js +2 -0
  16. package/dist/cdn/6FGRLBTA.js +2 -0
  17. package/dist/cdn/6JNHTWDQ.js +2 -0
  18. package/dist/cdn/6YSH3ROL.js +2 -0
  19. package/dist/cdn/75Y43JLP.js +2 -0
  20. package/dist/cdn/777EBGS5.js +2 -0
  21. package/dist/cdn/7AVVBDQS.js +4 -0
  22. package/dist/cdn/7EDHTVVK.js +2 -0
  23. package/dist/cdn/7MHEEH5F.js +2 -0
  24. package/dist/cdn/7MKAC33Z.js +2 -0
  25. package/dist/cdn/7Y76VKGS.js +2 -0
  26. package/dist/cdn/AC2XSIOU.js +2 -0
  27. package/dist/cdn/AEESEH6N.js +2 -0
  28. package/dist/cdn/AYY2C4BW.js +2 -0
  29. package/dist/cdn/BH7WDRGU.js +2 -0
  30. package/dist/cdn/BZUQTY3A.js +2 -0
  31. package/dist/cdn/CMPHBGKB.js +2 -0
  32. package/dist/cdn/DDA7NVBX.js +2 -0
  33. package/dist/cdn/DMDXALHQ.js +2 -0
  34. package/dist/cdn/DX5LK7LS.js +2 -0
  35. package/dist/cdn/ERUYMQOC.js +2 -0
  36. package/dist/cdn/{CSNF7XRL.js → ESUMWLYT.js} +1 -1
  37. package/dist/cdn/EULFJ5JL.js +2 -0
  38. package/dist/cdn/EX27CNDS.js +2 -0
  39. package/dist/cdn/FIMXZMTB.js +2 -0
  40. package/dist/cdn/FYI7J2KF.js +2 -0
  41. package/dist/cdn/G42X3FFH.js +2 -0
  42. package/dist/cdn/GGZNH26O.js +2 -0
  43. package/dist/cdn/HIQSXKPT.js +3 -0
  44. package/dist/cdn/HS2WQJEO.js +2 -0
  45. package/dist/cdn/IBCUXQZ4.js +2 -0
  46. package/dist/cdn/IC4OZCXG.js +2 -0
  47. package/dist/cdn/JGD2M47O.js +2 -0
  48. package/dist/cdn/KGOERXN5.js +2 -0
  49. package/dist/cdn/{JEQDHNEJ.js → KPXH2MNB.js} +1 -1
  50. package/dist/cdn/KSBWHMXE.js +2 -0
  51. package/dist/cdn/{6KFD2LHE.js → L3ULFQN3.js} +1 -1
  52. package/dist/cdn/LKHNZDEC.js +2 -0
  53. package/dist/cdn/LXVLBS7T.js +2 -0
  54. package/dist/cdn/M5E3NFDP.js +2 -0
  55. package/dist/cdn/MKEUDI3M.js +2 -0
  56. package/dist/cdn/MKQPW6B4.js +2 -0
  57. package/dist/cdn/MVAMHZ3Q.js +2 -0
  58. package/dist/cdn/{VTJXTTAB.js → MZ2UZAFW.js} +1 -1
  59. package/dist/cdn/N265ZHHU.js +2 -0
  60. package/dist/cdn/N2S6YV3I.js +2 -0
  61. package/dist/cdn/N3EATDXE.js +2 -0
  62. package/dist/cdn/NLWP2JOG.js +2 -0
  63. package/dist/cdn/NR3BCOHU.js +3 -0
  64. package/dist/cdn/O2JEDVIA.js +2 -0
  65. package/dist/cdn/OB7IDW6S.js +2 -0
  66. package/dist/cdn/OBPCKG62.js +2 -0
  67. package/dist/cdn/OCERCT4I.js +2 -0
  68. package/dist/cdn/OFN7ED75.js +2 -0
  69. package/dist/cdn/OQSFVGUL.js +2 -0
  70. package/dist/cdn/PA3PSUQ3.js +2 -0
  71. package/dist/cdn/PYFMKPMO.js +2 -0
  72. package/dist/cdn/QRZ32JMG.js +2 -0
  73. package/dist/cdn/R3GNKVFS.js +2 -0
  74. package/dist/cdn/R3Y2F64T.js +2 -0
  75. package/dist/cdn/RBVV7JGY.js +102 -0
  76. package/dist/cdn/RSXO7AZM.js +2 -0
  77. package/dist/cdn/S32VCEG7.js +2 -0
  78. package/dist/cdn/S7ASARWB.js +2 -0
  79. package/dist/cdn/SBS4J65N.js +2 -0
  80. package/dist/cdn/SVMC3JP5.js +2 -0
  81. package/dist/cdn/SYXU6NZX.js +2 -0
  82. package/dist/cdn/T3CSQ5DU.js +2 -0
  83. package/dist/cdn/T3NJTAF3.js +2 -0
  84. package/dist/cdn/T53WJZQN.js +2 -0
  85. package/dist/cdn/TES5ZESK.js +2 -0
  86. package/dist/cdn/{XSMRKVR2.js → TJQGGNGV.js} +1 -1
  87. package/dist/cdn/TOO3T62Y.js +2 -0
  88. package/dist/cdn/U5ZB4YD6.js +2 -0
  89. package/dist/cdn/UK2A3DRS.js +2 -0
  90. package/dist/cdn/UNDCO72C.js +2 -0
  91. package/dist/cdn/UR537UXK.js +2 -0
  92. package/dist/cdn/VMAOMKFN.js +2 -0
  93. package/dist/cdn/VV7JMGHL.js +2 -0
  94. package/dist/cdn/W6CIWZSM.js +2 -0
  95. package/dist/cdn/WA5XK3HC.js +2 -0
  96. package/dist/cdn/WD4QY4YU.js +2 -0
  97. package/dist/cdn/WESXMGHU.js +2 -0
  98. package/dist/cdn/WFDVEHVL.js +2 -0
  99. package/dist/cdn/WI3CE5TT.js +2 -0
  100. package/dist/cdn/WNZ2PSFZ.js +2 -0
  101. package/dist/cdn/XLJSZ42M.js +2 -0
  102. package/dist/cdn/XM6GBBOL.js +2 -0
  103. package/dist/cdn/XOB365BI.js +2 -0
  104. package/dist/cdn/Y2AULE2F.js +2 -0
  105. package/dist/cdn/YE5ASSSN.js +2 -0
  106. package/dist/cdn/ZBLRD77K.js +2 -0
  107. package/dist/cdn/{5RMUCBSG.js → ZZRH7LXO.js} +1 -1
  108. package/dist/cdn/index.js +1 -1
  109. package/dist/chunks/axis-lines-symbol.js +12 -12
  110. package/dist/chunks/bar-chart-model.js +20 -47
  111. package/dist/chunks/bar-chart-series.js +10 -40
  112. package/dist/chunks/box-plot-data.js +132 -155
  113. package/dist/chunks/box-plot-model.js +18 -18
  114. package/dist/chunks/chart-model.js +76 -103
  115. package/dist/chunks/chart-object-literals.js +189 -0
  116. package/dist/chunks/chart-ui-utils.js +17 -16
  117. package/dist/chunks/chart-ui-utils2.js +91 -116
  118. package/dist/chunks/class-breaks.js +375 -196
  119. package/dist/chunks/combo-bar-line-chart-model.js +19 -18
  120. package/dist/chunks/data-labels-symbol.js +1 -1
  121. package/dist/chunks/data-labels-visibility.js +56 -84
  122. package/dist/chunks/data.js +82 -105
  123. package/dist/chunks/default.js +6 -7
  124. package/dist/chunks/gauge-model.js +42 -69
  125. package/dist/chunks/generate-x-axis-title.js +39 -66
  126. package/dist/chunks/heat-chart-model.js +183 -183
  127. package/dist/chunks/histogram-data.js +56 -80
  128. package/dist/chunks/histogram-model.js +24 -24
  129. package/dist/chunks/index.js +560 -21042
  130. package/dist/chunks/index2.js +8706 -596
  131. package/dist/chunks/index3.js +873 -160
  132. package/dist/chunks/index4.js +701 -76
  133. package/dist/chunks/index5.js +10794 -62
  134. package/dist/chunks/index6.js +99 -0
  135. package/dist/chunks/index7.js +66 -0
  136. package/dist/chunks/interfaces.js +31 -32
  137. package/dist/chunks/line-chart-model.js +12 -11
  138. package/dist/chunks/model-setter.js +44 -41
  139. package/dist/chunks/model-types.js +43 -0
  140. package/dist/chunks/model-with-y-guides.js +89 -116
  141. package/dist/chunks/negative-values-stacked-to-baseline.js +50 -79
  142. package/dist/chunks/pie-chart-data.js +89 -111
  143. package/dist/chunks/pie-chart-model.js +46 -70
  144. package/dist/chunks/radar-chart-model.js +35 -62
  145. package/dist/chunks/resource.js +8 -10
  146. package/dist/chunks/rotated-state.js +24 -52
  147. package/dist/chunks/scatterplot-model.js +90 -112
  148. package/dist/chunks/serial-chart-data.js +540 -530
  149. package/dist/chunks/serial-chart-model.js +90 -115
  150. package/dist/chunks/series-length.js +25 -53
  151. package/dist/chunks/series-types.js +21 -206
  152. package/dist/chunks/series.js +9 -38
  153. package/dist/chunks/time-zone.js +14 -15
  154. package/dist/chunks/type-guards.js +23 -132
  155. package/dist/chunks/type-guards2.js +100 -192
  156. package/dist/chunks/type-guards3.js +173 -0
  157. package/dist/chunks/utils.js +75 -97
  158. package/dist/chunks/utils2.js +34 -63
  159. package/dist/chunks/web-component-utils.js +85 -83
  160. package/dist/chunks/x-bounds.js +69 -95
  161. package/dist/components/arcgis-chart/customElement.js +3670 -3637
  162. package/dist/components/arcgis-charts-action-bar/customElement.js +8 -9
  163. package/dist/components/arcgis-charts-config-axis/customElement.js +10 -11
  164. package/dist/components/arcgis-charts-config-bar-chart/customElement.js +33 -60
  165. package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +47 -70
  166. package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +33 -54
  167. package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +37 -64
  168. package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +15 -43
  169. package/dist/components/arcgis-charts-config-box-plot/customElement.js +12 -39
  170. package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +87 -111
  171. package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +41 -65
  172. package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +13 -40
  173. package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +18 -45
  174. package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +17 -45
  175. package/dist/components/arcgis-charts-config-create-flow/customElement.js +47 -68
  176. package/dist/components/arcgis-charts-config-font-style/customElement.js +21 -48
  177. package/dist/components/arcgis-charts-config-format/customElement.js +55 -82
  178. package/dist/components/arcgis-charts-config-format-popover/customElement.js +12 -41
  179. package/dist/components/arcgis-charts-config-general/customElement.js +29 -55
  180. package/dist/components/arcgis-charts-config-guide/customElement.js +44 -68
  181. package/dist/components/arcgis-charts-config-guide-popover/customElement.js +14 -43
  182. package/dist/components/arcgis-charts-config-guides/customElement.js +1 -3
  183. package/dist/components/arcgis-charts-config-guides-type-popover/customElement.js +10 -39
  184. package/dist/components/arcgis-charts-config-heat-chart/customElement.js +29 -56
  185. package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +153 -175
  186. package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +56 -79
  187. package/dist/components/arcgis-charts-config-histogram/customElement.js +28 -55
  188. package/dist/components/arcgis-charts-config-histogram-data/customElement.js +39 -62
  189. package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +26 -50
  190. package/dist/components/arcgis-charts-config-line-chart/customElement.js +27 -54
  191. package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +23 -46
  192. package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +46 -69
  193. package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +33 -61
  194. package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +14 -42
  195. package/dist/components/arcgis-charts-config-line-style/customElement.js +9 -11
  196. package/dist/components/arcgis-charts-config-pie-chart/customElement.js +28 -55
  197. package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +24 -49
  198. package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +42 -66
  199. package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +38 -65
  200. package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +15 -43
  201. package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +31 -58
  202. package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +31 -55
  203. package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +16 -42
  204. package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +10 -38
  205. package/dist/components/arcgis-charts-config-view-charts/customElement.js +21 -50
  206. package/dist/components/arcgis-charts-info-modal/customElement.js +17 -43
  207. package/dist/docs/api.json +1 -1
  208. package/dist/docs/docs.json +1 -1
  209. package/dist/docs/vscode.html-custom-data.json +1 -1
  210. package/dist/docs/web-types.json +1 -1
  211. package/dist/index.d.ts +57 -3
  212. package/dist/index.js +464 -459
  213. package/dist/json-schema/index.d.ts +4839 -4825
  214. package/dist/model/heat-chart-model/heat-chart-model.d.ts +7 -0
  215. package/dist/model.js +77 -39
  216. package/dist/spec/web-chart.d.ts +5 -1
  217. package/dist/utils/layer/index.d.ts +3 -1
  218. package/dist/utils/layer/utils/index.d.ts +16 -4
  219. package/package.json +3 -3
  220. package/dist/cdn/2NCZCQJQ.js +0 -2
  221. package/dist/cdn/2QWN4KMQ.js +0 -2
  222. package/dist/cdn/3HHF7GDV.js +0 -2
  223. package/dist/cdn/43EPRNLY.js +0 -2
  224. package/dist/cdn/53YROF54.js +0 -2
  225. package/dist/cdn/57M5BGHO.js +0 -2
  226. package/dist/cdn/5Y2AIQMX.js +0 -2
  227. package/dist/cdn/6CGECXEP.js +0 -2
  228. package/dist/cdn/6MDEAZCW.js +0 -2
  229. package/dist/cdn/6YLXJOBN.js +0 -2
  230. package/dist/cdn/7LE76H3V.js +0 -2
  231. package/dist/cdn/7OK6DOOJ.js +0 -2
  232. package/dist/cdn/7QJ77UCB.js +0 -2
  233. package/dist/cdn/7XCTW7TF.js +0 -2
  234. package/dist/cdn/ABPBMLW4.js +0 -4
  235. package/dist/cdn/ACBNPWST.js +0 -2
  236. package/dist/cdn/AU5NU5OU.js +0 -2
  237. package/dist/cdn/AUKWLONZ.js +0 -2
  238. package/dist/cdn/B3TAQSVG.js +0 -2
  239. package/dist/cdn/B7BDZS5Q.js +0 -2
  240. package/dist/cdn/B7OT7NHE.js +0 -2
  241. package/dist/cdn/BIW46U2E.js +0 -2
  242. package/dist/cdn/BNMVFWWL.js +0 -2
  243. package/dist/cdn/BUPTELGR.js +0 -2
  244. package/dist/cdn/C3EG6JVL.js +0 -2
  245. package/dist/cdn/CEML6AMG.js +0 -2
  246. package/dist/cdn/CSISDIV5.js +0 -2
  247. package/dist/cdn/CXSBPI44.js +0 -2
  248. package/dist/cdn/DEWZASZK.js +0 -2
  249. package/dist/cdn/FJFVBE6K.js +0 -2
  250. package/dist/cdn/FLBXUDIS.js +0 -2
  251. package/dist/cdn/FQKOG42T.js +0 -2
  252. package/dist/cdn/FTXNBE44.js +0 -2
  253. package/dist/cdn/FU6JT3UD.js +0 -2
  254. package/dist/cdn/H7SXQSDY.js +0 -2
  255. package/dist/cdn/HFHPPFTL.js +0 -2
  256. package/dist/cdn/IQ5ZYJIB.js +0 -2
  257. package/dist/cdn/IVSSNIVI.js +0 -2
  258. package/dist/cdn/J27JNN6U.js +0 -2
  259. package/dist/cdn/J5O4KJG3.js +0 -2
  260. package/dist/cdn/KJHX7M5S.js +0 -2
  261. package/dist/cdn/KKDZFW5O.js +0 -2
  262. package/dist/cdn/KRZLTTVV.js +0 -2
  263. package/dist/cdn/KUOSDD5D.js +0 -2
  264. package/dist/cdn/L767SIJD.js +0 -2
  265. package/dist/cdn/LSF52M7M.js +0 -2
  266. package/dist/cdn/LW3BORFM.js +0 -2
  267. package/dist/cdn/M3ATYECI.js +0 -2
  268. package/dist/cdn/M6BMA2X5.js +0 -2
  269. package/dist/cdn/MCSGNGSS.js +0 -2
  270. package/dist/cdn/MJEMDC6S.js +0 -2
  271. package/dist/cdn/MY2TTPFJ.js +0 -2
  272. package/dist/cdn/MZQHYO73.js +0 -2
  273. package/dist/cdn/N6ZYLQ35.js +0 -2
  274. package/dist/cdn/ODM6XDHJ.js +0 -2
  275. package/dist/cdn/PAPWPFW4.js +0 -2
  276. package/dist/cdn/PDDEFX6K.js +0 -2
  277. package/dist/cdn/PNQ6VVJK.js +0 -2
  278. package/dist/cdn/QCO44WFX.js +0 -2
  279. package/dist/cdn/QCZO6SPY.js +0 -2
  280. package/dist/cdn/QJQCXQZQ.js +0 -2
  281. package/dist/cdn/QLBJVTC3.js +0 -2
  282. package/dist/cdn/QLRYZVYC.js +0 -2
  283. package/dist/cdn/QRJS3CVV.js +0 -2
  284. package/dist/cdn/QWCMSPHD.js +0 -2
  285. package/dist/cdn/RCS3DD7Z.js +0 -104
  286. package/dist/cdn/S52W7JS7.js +0 -2
  287. package/dist/cdn/SDWC5FQU.js +0 -2
  288. package/dist/cdn/SLGQSOZB.js +0 -2
  289. package/dist/cdn/SNQFOXQP.js +0 -2
  290. package/dist/cdn/STPMMRCH.js +0 -2
  291. package/dist/cdn/SUYBENSN.js +0 -2
  292. package/dist/cdn/TAW7DR2R.js +0 -2
  293. package/dist/cdn/TUM7FWOK.js +0 -2
  294. package/dist/cdn/UFCW5HCY.js +0 -2
  295. package/dist/cdn/URPIV4FP.js +0 -2
  296. package/dist/cdn/URX6VCYJ.js +0 -2
  297. package/dist/cdn/V2LSSOBU.js +0 -2
  298. package/dist/cdn/V7JH3U65.js +0 -2
  299. package/dist/cdn/VFOLCHS4.js +0 -2
  300. package/dist/cdn/VFZ5WZJL.js +0 -2
  301. package/dist/cdn/WEAUUIMY.js +0 -2
  302. package/dist/cdn/WHL3PAOM.js +0 -2
  303. package/dist/cdn/WQRH2BWD.js +0 -2
  304. package/dist/cdn/WQRXJQDO.js +0 -2
  305. package/dist/cdn/WTIY4H4L.js +0 -2
  306. package/dist/cdn/WXEJ47F6.js +0 -2
  307. package/dist/cdn/XUAJWZRU.js +0 -2
  308. package/dist/cdn/XYTCID73.js +0 -2
  309. package/dist/cdn/Z7L63G6V.js +0 -2
  310. package/dist/cdn/ZJOBVONS.js +0 -2
  311. package/dist/cdn/ZZQFMONS.js +0 -2
  312. package/dist/chunks/setup-utils.js +0 -80
  313. package/dist/model/index.d.ts +0 -19
  314. package/dist/spec/index.d.ts +0 -8
  315. package/dist/utils/index.d.ts +0 -33
  316. /package/dist/cdn/{S5OM65RV.js → COYWSD6X.js} +0 -0
@@ -1,184 +1,897 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import { cloneDeep as w } from "lodash-es";
3
- import { bo as V } from "./index.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
- ]);
16
- break;
2
+ import K from "@esri/arcgis-html-sanitizer";
3
+ import { isEmpty as U, isEqual as x } from "lodash-es";
4
+ import { ao as C, ax as q, aw as X, aB as $, ad as Y, D as L, L as Q, r as Z, o as j, ay as J } from "./index.js";
5
+ import { g as S } from "./series-types.js";
6
+ import { p as b, q as ee, l as te, k as ie, s as p, u as n, g as ae } from "./chart-object-literals.js";
7
+ import { g as T, i as y, h as re } from "./rest-js-object-literals.js";
8
+ const c = {
9
+ Mean: "Mean",
10
+ Median: "Median",
11
+ StdDev: "Standard Deviation",
12
+ Normal: "Normal Distribution",
13
+ Trendline: "Trendline"
14
+ }, ne = {
15
+ MonoSelection: "monoSelection",
16
+ MultiSelection: "multiSelection",
17
+ MultiSelectionWithCtrlKey: "multiSelectionWithCtrlKey",
18
+ Zoom: "zoom",
19
+ None: "none"
20
+ }, ye = {
21
+ MultiAxes: "multi-axes",
22
+ XAxis: "x-axis",
23
+ YAxis: "y-axis"
24
+ }, oe = {
25
+ aria: {
26
+ defaultChartItemRole: "figure"
27
+ },
28
+ title: {
29
+ marginBottom: 8,
30
+ wrap: !0
31
+ },
32
+ subtitle: {
33
+ marginBottom: 10,
34
+ wrap: !0
35
+ },
36
+ rotated: !1,
37
+ legendProperties: {
38
+ legendLabels: {
39
+ marginLeft: 5,
40
+ marginRight: 5,
41
+ truncate: !1,
42
+ applyOnClones: !0,
43
+ wrap: !0,
44
+ maxWidth: 200
45
+ },
46
+ valueLabels: {
47
+ wrap: !0,
48
+ maxWidth: 200
49
+ },
50
+ legendTitle: {
51
+ wrap: !0,
52
+ maxWidth: 220,
53
+ marginLeft: 10,
54
+ marginRight: 10,
55
+ marginTop: 10
56
+ },
57
+ legendMarkersSize: 14,
58
+ legendLabelReducedOpacity: 0.5,
59
+ // 50% of original opacity
60
+ rectangleMarkerRadius: 3,
61
+ // for rounded rectangles
62
+ roundedMarkerRadius: 12,
63
+ // for circles
64
+ legendPaddingRightWithScrollbarVisible: 10,
65
+ maxHeight: 100,
66
+ marginTop: 2,
67
+ marginBottom: 2,
68
+ marginLeft: 0,
69
+ marginRight: 0,
70
+ paddingTop: 0,
71
+ paddingBottom: 0,
72
+ paddingLeft: 0,
73
+ paddingRight: 0,
74
+ position: ie.Right
75
+ },
76
+ footer: {
77
+ wrap: !0,
78
+ horizontalCenter: "center",
79
+ verticalCenter: "middle",
80
+ align: "center"
81
+ },
82
+ axisLabel: {
83
+ rotation: 0,
84
+ align: "center",
85
+ horizontalCenter: "center",
86
+ verticalCenter: "top",
87
+ dy: 5,
88
+ paddingTop: 5,
89
+ paddingRight: 5,
90
+ paddingLeft: 5,
91
+ maxWidth: Number.NaN
92
+ },
93
+ axisTickLength: 5,
94
+ rotatedAxisLabel: {
95
+ rotation: -45,
96
+ horizontalCenter: "left",
97
+ verticalCenter: "bottom",
98
+ dy: 6,
99
+ paddingTop: 5,
100
+ paddingLeft: 0,
101
+ paddingRight: 5
102
+ },
103
+ histogramAxisLabel: {
104
+ rotation: 0,
105
+ horizontalCenter: "center",
106
+ verticalCenter: "middle",
107
+ dy: 0,
108
+ dx: 0,
109
+ paddingLeft: 3,
110
+ paddingRight: 3
111
+ },
112
+ xAxisTitleLabel: {
113
+ align: "center",
114
+ valign: "middle",
115
+ rotation: 0,
116
+ fontSize: 10,
117
+ wrap: !0
118
+ },
119
+ yAxisTitleLabel: {
120
+ align: "center",
121
+ valign: "middle",
122
+ rotation: 270,
123
+ wrap: !0
124
+ },
125
+ titleLabel: {
126
+ align: "center",
127
+ wrap: !0
128
+ },
129
+ subtitleLabel: {
130
+ align: "center",
131
+ wrap: !0
132
+ },
133
+ horizontalSurfaceGuideLabels: {
134
+ horizontalCenter: "right",
135
+ align: "right",
136
+ verticalCenter: "middle",
137
+ wrap: !0
138
+ },
139
+ horizontalLineGuideLabels: {
140
+ horizontalCenter: "right",
141
+ align: "right",
142
+ verticalCenter: "top",
143
+ wrap: !0
144
+ },
145
+ verticalSurfaceGuideLabels: {
146
+ horizontalCenter: "center",
147
+ verticalCenter: "top",
148
+ valign: "top"
149
+ },
150
+ verticalLineGuideLabels: {
151
+ horizontalCenter: "right",
152
+ verticalCenter: "bottom",
153
+ valign: "top",
154
+ wrap: !0,
155
+ rotation: 90
156
+ },
157
+ guideAbove: !1,
158
+ cursorCrosshair: {
159
+ style: {
160
+ type: y.SLS,
161
+ style: T.Dash,
162
+ color: [0, 0, 0, 102],
163
+ width: 1
164
+ },
165
+ horizontalLineVisible: !1,
166
+ verticalLineVisible: !1
167
+ },
168
+ gauge: {
169
+ innerRadius: 80,
170
+ radius: 80,
171
+ startAngle: -180,
172
+ endAngle: 180,
173
+ innerLabelToInnerChartRatio: 0.5,
174
+ // 50% of the chart's size, considering the inner radius
175
+ axisLabelToInnerChartRatio: 0.13,
176
+ // ~= 40 / 300: font size 40 for a 300px gauge
177
+ innerLabelAutoMinFontSize: 14,
178
+ innerLabelAutoMaxFontSize: 100,
179
+ axisLabelAutoMinFontSize: 14,
180
+ axisLabelAutoMaxFontSize: 40,
181
+ gaugeMinGridDistance: 1,
182
+ axisMinimum: 0,
183
+ axisMaximum: 100,
184
+ numberOfLabelIntervals: 5,
185
+ numberOfTicksBetweenTwoLabels: 4,
186
+ maximumNumberOfLabelIntervals: 24,
187
+ // result in 25 maximum number of axis labels
188
+ paddingTop: 10,
189
+ paddingBottom: 10,
190
+ paddingRight: 5,
191
+ paddingLeft: 5
192
+ },
193
+ gaugeTicksLength: 7,
194
+ gaugeInnerLabel: {
195
+ horizontalCenter: "center",
196
+ verticalCenter: "middle"
197
+ },
198
+ gaugeNeedle: {
199
+ startWidth: 10,
200
+ endWidth: 1,
201
+ innerRadius: 25,
202
+ displayPin: !1
203
+ },
204
+ gaugeFirstLabelId: "arcgis_charts_gauge_first_label",
205
+ gaugeLastLabelId: "arcgis_charts_gauge_last_label",
206
+ // containers
207
+ headerContainer: {
208
+ layout: "vertical",
209
+ width: "100%",
210
+ paddingBottom: 5
211
+ },
212
+ footerContainer: {
213
+ layout: "vertical",
214
+ width: "100%",
215
+ paddingTop: 5,
216
+ paddingBottom: 15
217
+ },
218
+ paddingMinSize: 0,
219
+ marginMinSize: 0,
220
+ chartPaddingMinSize: 7,
221
+ chartPaddingRightWhenLegendNotOnRight: 15,
222
+ chartAndLegendContainer: {
223
+ paddingTop: 0
224
+ },
225
+ chartContainer: {
226
+ paddingBottom: 0,
227
+ paddingTop: 15
228
+ },
229
+ chartContainerPaddingTopWhenRotated: 5,
230
+ dataLabelInitialize: {
231
+ strokeWidth: 0,
232
+ applyOnClones: !0
233
+ },
234
+ dataLabel: {
235
+ align: "center",
236
+ horizontalCenter: "center",
237
+ valign: "bottom",
238
+ verticalCenter: "top",
239
+ dy: -3
240
+ },
241
+ dataLabelRotated: {
242
+ align: "right",
243
+ horizontalCenter: "right",
244
+ valign: "middle",
245
+ verticalCenter: "middle",
246
+ dx: 2
247
+ },
248
+ dataLabelStackedRotated: {
249
+ align: "center",
250
+ horizontalCenter: "center",
251
+ valign: "middle",
252
+ verticalCenter: "middle"
253
+ },
254
+ dataLabelStackedNonRotated: {
255
+ align: "center",
256
+ horizontalCenter: "center",
257
+ valign: "middle",
258
+ verticalCenter: "middle"
259
+ },
260
+ dataLabelNegative: {
261
+ paddingTop: 5,
262
+ paddingRight: 5
263
+ },
264
+ rotatedChartPadding: {
265
+ paddingTop: 2,
266
+ paddingRight: 2
267
+ },
268
+ scatterplotSeries: {
269
+ strokeOpacity: 0,
270
+ r2: Number.NaN,
271
+ trendLinePoints: [{}, {}]
272
+ },
273
+ histogramSeries: {
274
+ normalDistribNumberOfPoints: 100
275
+ },
276
+ lineSeries: {
277
+ strokeWidth: 2,
278
+ lineSmoothed: !1,
279
+ lineSmoothedKind: te.Bezier,
280
+ showArea: !1,
281
+ areaOpacity: 0.25,
282
+ markerVisible: !0,
283
+ rotated: !1,
284
+ stackedType: ee.Side,
285
+ stackNegativeValuesToBaseline: !0,
286
+ marker: {
287
+ markerBigSize: 7,
288
+ markerSizeThresholdForTooltipDisplay: 9,
289
+ markerStyle: re.Circle
17
290
  }
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;
291
+ },
292
+ buffer: !1,
293
+ treatZeroValueAs: 1e-4,
294
+ // zero values could mess up logarithmic calculations, so we use this alternative number to prevent critical failures
295
+ elementLimitForSmoothRendering: 1e3,
296
+ // for line and scatter-plot
297
+ pieChart: {
298
+ dataLabels: { maxWidth: 100, wrap: !1 },
299
+ dataLabelsOffset: 10,
300
+ dataLabelsInside: !1,
301
+ chartRadius: 80,
302
+ chartOptimizedRadius: 70,
303
+ innerRadius: X,
304
+ min: -90,
305
+ max: 270,
306
+ displayCategoryOnLegend: !0,
307
+ displayCategoryOnTooltip: !0,
308
+ displayCategoryOnDataLabel: !0,
309
+ displayNumericValueOnLegend: !1,
310
+ displayNumericValueOnDataLabel: !0,
311
+ displayNumericValueOnTooltip: !0,
312
+ displayPercentageOnLegend: !1,
313
+ displayPercentageOnDataLabel: !1,
314
+ displayPercentageOnTooltip: !0,
315
+ sliceGrouping: {
316
+ sliceId: q.defaultGroupOfSlicesId,
317
+ percentageThreshold: 0,
318
+ // 0 means no grouping
319
+ fillSymbol: {
320
+ type: y.SFS,
321
+ color: [210, 210, 210, 255 * $]
322
+ // light grey, 70% opacity
323
+ }
324
+ },
325
+ defaultPadding: 0,
326
+ alignDataLabels: !1,
327
+ ticksOpacity: 1,
328
+ minimumSize: 20,
329
+ technicalFieldSliceId: "arcgis_charts_slice_id",
330
+ technicalFieldSlicePercent: "arcgis_charts_slice_percent",
331
+ technicalFieldGroupedSlices: "arcgis_charts_grouped_slices"
332
+ },
333
+ pieSliceCustomLabelName: "customLabel",
334
+ yAxisLabelMaxWidth: 100,
335
+ xAxisLabelMaxWidth: 75,
336
+ axisLabelPadding: 1.5,
337
+ categoryAxisLabelPadding: 3,
338
+ seriesSort: b.Ascending,
339
+ technicalSortingFieldBySum: "arcgis_charts_category_sum",
340
+ technicalSortingFieldByPercent: "arcgis_charts_category_first_series_percent",
341
+ technicalFieldSplitByField: "arcgis_charts_split_by_field",
342
+ color: [0, 0, 0, 255],
343
+ chartEllipsis: "...",
344
+ backgroundColor: [255, 255, 255, 255],
345
+ grayColor: C,
346
+ // medium gray
347
+ xAxisMinGridDistance: 120,
348
+ xCategoryAxisMinGridDistance: 40,
349
+ yAxisMinGridDistance: 40,
350
+ yCategoryAxisMinGridDistance: 20,
351
+ secondRotatedValueAxisMinGridDistance: 80,
352
+ staggerMinGridDistance: 40,
353
+ shortestMinGridDistance: 20,
354
+ maxNumberOfXAxisLabelsInWrapModeForDateAxis: 15,
355
+ maxNumberOfXAxisLabelsInWrapMode: 20,
356
+ lineWidth: 1,
357
+ loaderRotationSpeed: 400,
358
+ loaderIntervalTimeout: 400,
359
+ loaderLabelFontSize: 20,
360
+ selectionTheme: {
361
+ selectedElementsTheme: {
362
+ elementOutlineColor: [0, 255, 255, 255],
363
+ elementOutlineWidth: 5
27
364
  }
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;
365
+ },
366
+ columnTooltipPosition: "pointer",
367
+ guideTooltipPosition: "pointer",
368
+ markerTooltipPosition: "fixed",
369
+ sliceTooltipPosition: "fixed",
370
+ patternLineProperties: {
371
+ width: 5,
372
+ height: 5,
373
+ strokeWidth: 1,
374
+ tileSize: 50,
375
+ diagonalTileSize: 1200
376
+ },
377
+ patternRectProperties: {
378
+ rectWidth: 9,
379
+ rectHeight: 9,
380
+ width: 10,
381
+ height: 10,
382
+ strokeWidth: 0.3,
383
+ fillOpacity: 0
384
+ },
385
+ originalCategoryValue: "arcgis_charts_original_category_value",
386
+ originalYCategoryValue: "arcgis_charts_original_category_y_value",
387
+ originalDateValue: "arcgis_charts_original_date_value",
388
+ dateBinningRange: "arcgis_charts_bin_range",
389
+ originalServerBinningRange: "arcgis_charts_server_bin_range",
390
+ dateBinModel: "arcgis_charts_bin_model",
391
+ xAxisField: "arcgis_charts_axis_field",
392
+ nullValue: "arcgis_charts_null",
393
+ queryMaxFloatPrecision: 10,
394
+ dateFormatUTC: {
395
+ timeZone: "UTC",
396
+ year: "numeric",
397
+ month: "numeric",
398
+ day: "numeric",
399
+ hour: "numeric",
400
+ minute: "numeric",
401
+ second: "numeric",
402
+ hour12: !1
403
+ },
404
+ dayDefaultFormat: {
405
+ day: "numeric",
406
+ month: "short"
407
+ },
408
+ weekDefaultFormat: {
409
+ day: "numeric",
410
+ month: "short"
411
+ },
412
+ rendererOtherValue: "arcgisChartsrendererOtherValue",
413
+ rendererSymbolField: "arcgis_charts_renderer_symbol",
414
+ rendererSymbolFieldForHistogram: "symbol",
415
+ scatterplotAggregationFields: {
416
+ dataContextXMinField: "arcgis_charts_xmin",
417
+ dataContextXMaxField: "arcgis_charts_xmax",
418
+ dataContextYMinField: "arcgis_charts_ymin",
419
+ dataContextYMaxField: "arcgis_charts_ymax",
420
+ dataContextCountDistinctX: "distinctX",
421
+ dataContextCountDistinctY: "distinctY",
422
+ queryNumberOfFeatures: "numberOfFeatures",
423
+ queryNumberOfAggregatedFeatures: "numberOfAggregatedFeatures",
424
+ xStep: "xStep",
425
+ yStep: "yStep",
426
+ rowCount: "rowCount",
427
+ columnCount: "columnCount",
428
+ realGridSize: "realGridSize"
429
+ },
430
+ dataTooltipVisible: !0,
431
+ dataTooltipStyle: {
432
+ outline: {
433
+ type: y.SLS,
434
+ color: [255, 255, 255, 255],
435
+ width: 1
37
436
  }
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;
437
+ },
438
+ dataTooltipStyleReversed: {
439
+ color: [255, 255, 255, 255],
440
+ outline: {
441
+ type: y.SLS,
442
+ width: 3
47
443
  }
444
+ },
445
+ tooltipWidth: 300,
446
+ axisLabelOveredOpacity: 0.5,
447
+ // 50% of original opacity
448
+ generalFontSize: 10,
449
+ actionMode: ne.MultiSelectionWithCtrlKey,
450
+ debounceTime: 100,
451
+ // 100 ms
452
+ chartDefaultPaddingRight: 0,
453
+ // 0 px default chart's plotting area right padding
454
+ htmlEmptyContent: "<p></p>",
455
+ boxPlot: {
456
+ boxPlotCategory: "arcgis_charts_box_plot_category",
457
+ boxPlotOutliersSuffix: "_arcgis_charts_outliers",
458
+ boxPlotOutliersVisibility: !1,
459
+ boxPlotStandardizeValuesVisibility: !1,
460
+ boxPlotOutliersSize: 4,
461
+ boxPlotLineWidth: 2,
462
+ boxPlotOutlierId: "is_arcgis_charts_outlier",
463
+ boxPlotMeanLineMarkerId: "is_arcgis_charts_mean_marker",
464
+ boxPlotWhiskersColor: [153, 153, 153, 178.5],
465
+ boxPlotTooltipLabelWidth: 250
466
+ },
467
+ binTemporalData: !0,
468
+ lastTemporalBin: "is_arcgis_charts_last_bin",
469
+ options: {
470
+ hideEmptySeries: !0,
471
+ showEmptySeries: !1,
472
+ replaceNoValueCategoryWithZero: !0,
473
+ hideZeroCountCategories: !1,
474
+ autoInverseDataLabelTextColor: !1
475
+ },
476
+ nullCategory: {
477
+ text: "null",
478
+ symbol: {
479
+ type: y.SFS,
480
+ color: C,
481
+ outline: {
482
+ type: y.SLS,
483
+ style: T.Solid,
484
+ color: C,
485
+ width: 1
486
+ }
487
+ }
488
+ },
489
+ classBreaks: {
490
+ breaksCount: 5
48
491
  }
49
- return r;
492
+ }, h = {
493
+ // chart with no specific subtype
494
+ NonSpecific: "nonSpecific",
495
+ // non aggregated bar/line chart
496
+ BarAndLineNoAggregation: "barAndLineNoAggregation",
497
+ // mono-series bar/line chart with one numeric field and a category
498
+ BarAndLineMonoField: "barAndLineMonoField",
499
+ // multi-series bar/line chart with numeric fields and a category
500
+ BarAndLineMultiFields: "barAndLineMultiFields",
501
+ // mono-series bar/line chart from numeric fields, no category
502
+ BarAndLineFromFields: "barAndLineFromFields",
503
+ // bar/line chart with split-by field and a category
504
+ BarAndLineSplitBy: "barAndLineSplitBy",
505
+ // non aggregated bar/line chart with split-by field and a category
506
+ BarAndLineSplitByNoAggregation: "barAndLineSplitByNoAggregation",
507
+ // non aggregated pie chart
508
+ PieNoAggregation: "pieNoAggregation",
509
+ // pie chart with a category
510
+ PieFromCategory: "pieFromCategory",
511
+ // pie chart from numeric fields
512
+ PieFromFields: "pieFromFields",
513
+ // box plot with a numeric field, no category
514
+ BoxPlotMonoField: "boxPlotMonoField",
515
+ // box plot with multiple numeric fields, no category
516
+ BoxPlotMultiFields: "boxPlotMultiFields",
517
+ // box plot with a numeric field and a category
518
+ BoxPlotMonoFieldAndCategory: "boxPlotMonoFieldAndCategory",
519
+ // box plot with multiple numeric fields and a category
520
+ BoxPlotMultiFieldsAndCategory: "boxPlotMultiFieldsAndCategory",
521
+ // box plot with a numeric field and a split-by field
522
+ BoxPlotMonoFieldAndSplitBy: "boxPlotMonoFieldAndSplitBy",
523
+ // box plot with multiple numeric fields and a split-by field
524
+ BoxPlotMultiFieldsAndSplitBy: "boxPlotMultiFieldsAndSplitBy",
525
+ // box plot with a numeric field, a category and a split-by field
526
+ BoxPlotMonoFieldAndCategoryAndSplitBy: "boxPlotMonoFieldAndCategoryAndSplitBy"
527
+ }, be = {
528
+ SelectionByClick: "SelectionByClick",
529
+ SelectionByRange: "SelectionByRange",
530
+ ProgrammaticSelection: "ProgrammaticSelection",
531
+ ClearSelection: "ClearSelection"
532
+ };
533
+ function fe(t) {
534
+ return t?.colorMatch ?? !1;
50
535
  }
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;
536
+ function Ce(t) {
537
+ let e = L();
538
+ if (t !== void 0) {
539
+ const i = S(t.series);
540
+ (i === n.BarSeries || i === n.LineSeries || i === n.ComboLineAndBarSeries || i === n.BoxPlotSeries) && (e = t.rotated ?? L());
541
+ }
542
+ return e;
543
+ }
544
+ function xe(t) {
545
+ return t?.map((e) => e.type) ?? [];
546
+ }
547
+ function Le(t) {
548
+ let e = t?.stackedType;
549
+ if (e === void 0 && t !== void 0) {
550
+ const i = S(t.series);
551
+ (i === n.BarSeries || i === n.LineSeries || i === n.ComboLineAndBarSeries || i === n.RadarSeries) && (e = Y());
552
+ }
553
+ return e;
554
+ }
555
+ function se(t) {
556
+ let e = t;
557
+ return e = e.replace(/'/gu, "''"), e = e.replace(/[/\\"|[\]\\]/gu, "\\$&"), e;
558
+ }
559
+ function le(t) {
560
+ let e = !1;
561
+ if (typeof t != "number") {
562
+ const i = new Intl.Segmenter();
563
+ e = Array.from(i.segment(t), (a) => a.segment).some((a) => a.charCodeAt(0) > 255);
564
+ }
565
+ return e;
566
+ }
567
+ function Te(t) {
568
+ let e = t, i = "";
569
+ t.startsWith("'") && t.endsWith("'") && (e = t.slice(1, -1), i = "'"), e = e.replace(/'/gu, "''");
570
+ let r = "";
571
+ return le(e) && (r = "N"), `${r}${i}${e}${i}`;
572
+ }
573
+ function Be(t) {
574
+ const { value: e, keepSurroundingQuotes: i, escape: r } = t;
575
+ let a = e?.trim();
576
+ if (!P(a)) {
577
+ let s = "";
578
+ a.startsWith("'") && a.endsWith("'") && (a = a.slice(1, -1), i && (s = "'")), r && (a = se(a)), a = `${s}${a}${s}`;
579
+ }
580
+ return a;
58
581
  }
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: t, inlineData: s } = i;
67
- let u = {};
68
- return t && Object.keys(t).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 n = { value: a };
76
- e.forEach((o) => {
77
- const c = N(l[`${t.fillColor}_${o}`]), b = l[`${t.fillOpacity}_${o}`], S = l[`${t.fillStyle}_${o}`], m = l[`${t.markerSize}_${o}`], D = N(l[`${t.outlineColor}_${o}`]), O = l[`${t.outlineOpacity}_${o}`], h = l[`${t.outlineWidth}_${o}`], k = l[`${t.outlineStyle}_${o}`], F = N(l[`${t.lineColor}_${o}`]), v = l[`${t.lineOpacity}_${o}`], d = l[`${t.lineWidth}_${o}`], _ = l[`${t.lineStyle}_${o}`], C = l[`${t.displayLabel}_${o}`];
78
- if (typeof C == "string" && (n = {
79
- ...n,
80
- label: C
81
- }), m != null) {
82
- const f = { type: g.SMS };
83
- m && typeof m == "number" && (f.size = m), n.symbol = f;
582
+ function Ae(t) {
583
+ const { count: e, seriesCount: i, chartType: r, chartLimits: a } = t, { behaviorAfterLimit: s } = a ?? {};
584
+ let o = !0;
585
+ if (s !== Q.RenderUpToTheLimit) {
586
+ const {
587
+ maxBarChartSeriesCount: u,
588
+ maxBarUniqueSeriesCountTotal: l,
589
+ maxBarTwoSeriesCountPerSeries: d,
590
+ maxBarTwoSeriesCountTotal: m,
591
+ maxBarThreePlusSeriesCountPerSeries: f,
592
+ maxBarThreePlusSeriesCountTotal: F,
593
+ maxLineChartSeriesCount: v,
594
+ maxLineUniqueSeriesCountTotal: M,
595
+ maxLineTwoSeriesCountPerSeries: k,
596
+ maxLineTwoSeriesCountTotal: O,
597
+ maxLineThreePlusSeriesCountPerSeries: R,
598
+ maxLineThreePlusSeriesCountTotal: w,
599
+ maxPieChartSliceCountTotal: N,
600
+ maxGaugeByFeaturesLimit: z,
601
+ maxBoxPlotSeriesCount: I,
602
+ maxBoxUniqueSeriesCountTotal: D,
603
+ maxBoxTwoSeriesCountTotal: W,
604
+ maxBoxTwoSeriesCountPerSeries: V,
605
+ maxBoxThreePlusSeriesCountTotal: E,
606
+ maxBoxThreePlusSeriesCountPerSeries: G,
607
+ maxHeatChartCellLimit: H
608
+ } = Z(a);
609
+ switch (r) {
610
+ case n.BarSeries:
611
+ case n.ComboLineAndBarSeries:
612
+ {
613
+ const g = e / i;
614
+ i <= u ? i === 0 ? o = !0 : i === 1 ? o = e <= l : i === 2 ? o = e <= m && g <= d : i > 2 && (o = e <= F && g <= f) : o = !1;
84
615
  }
85
- if (c || R(S)) {
86
- const f = n.symbol?.type === g.SMS ? n.symbol : {
87
- type: g.SFS
88
- };
89
- if (c && (b && typeof b == "number" && (c[3] = b), f.color = c), R(S) && (f.style = S), n.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), n.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), n.symbol = f;
616
+ break;
617
+ case n.LineSeries:
618
+ case n.RadarSeries:
619
+ {
620
+ const g = e / i;
621
+ i <= v ? i === 0 ? o = !0 : i === 1 ? o = e <= M : i === 2 ? o = e <= O && g <= k : i > 2 && (o = e <= w && g <= R) : o = !1;
96
622
  }
97
- }), (n.label || n.symbol) && u.uniqueValueInfos.push(n);
623
+ break;
624
+ case n.PieSeries:
625
+ o = e <= N;
626
+ break;
627
+ case n.BoxPlotSeries:
628
+ {
629
+ const g = e / i;
630
+ i <= I ? i === 0 ? o = !0 : i === 1 ? o = e <= D : i === 2 ? o = e <= W && g <= V : i > 2 && (o = e <= E && g <= G) : o = !1;
631
+ }
632
+ break;
633
+ case n.HeatSeries:
634
+ o = e <= H;
635
+ break;
636
+ case n.GaugeSeries:
637
+ o = e <= z;
638
+ break;
639
+ }
640
+ }
641
+ return o;
642
+ }
643
+ function _e(t = [], e) {
644
+ const i = t.find((r) => r.name === e)?.alias;
645
+ return i !== "" ? i ?? e : e;
646
+ }
647
+ function Pe(t = [], e) {
648
+ const i = t.find((r) => r.alias === e)?.name;
649
+ return i !== "" ? i ?? e : e;
650
+ }
651
+ function Fe(t) {
652
+ let e = !1;
653
+ switch (S(t)) {
654
+ case n.HeatSeries:
655
+ case n.PieSeries:
656
+ e = !0;
657
+ break;
658
+ case n.BarSeries:
659
+ case n.LineSeries:
660
+ case n.RadarSeries:
661
+ case n.ComboLineAndBarSeries:
662
+ case n.BoxPlotSeries:
663
+ e = t.length > 1;
664
+ break;
665
+ case n.HistogramSeries:
666
+ case n.ScatterSeries: {
667
+ const r = t[0];
668
+ e = r.overlays !== void 0 && Object.values(r.overlays).some((a) => a.created === !0);
669
+ break;
670
+ }
671
+ }
672
+ return e;
673
+ }
674
+ function B(t) {
675
+ let e = !0;
676
+ return S(t.series) === n.ScatterSeries && (e = t.series.length === 1), e;
677
+ }
678
+ function A(t) {
679
+ let e = !0;
680
+ return S(t.series) === n.HistogramSeries && (e = t.series.length <= 1 && t.series[0].type === n.HistogramSeries && (!("dataTransformationType" in t.series[0]) || t.series[0].dataTransformationType !== void 0 && Object.values(ae).includes(t.series[0].dataTransformationType))), e;
681
+ }
682
+ function _(t) {
683
+ let e = !0;
684
+ return S(t.series) === n.PieSeries && (e = t.series.length <= 1), e;
685
+ }
686
+ function ve(t, e) {
687
+ const i = S(e?.series);
688
+ let r = i !== void 0 && t.includes(i);
689
+ if (r && e !== void 0)
690
+ switch (i) {
691
+ case n.HistogramSeries:
692
+ r = A(e);
693
+ break;
694
+ case n.ScatterSeries:
695
+ r = B(e);
696
+ break;
697
+ case n.PieSeries:
698
+ r = _(e);
699
+ break;
98
700
  }
99
- })), u;
100
- }
101
- function E(i) {
102
- const { numericFields: r, configFields: e, inlineData: t } = i, s = t;
103
- return "dataItems" in t && Object.entries(e).forEach(([u, l]) => {
104
- r.forEach((a) => {
105
- const n = `${l}_${a}`;
106
- t.dataItems.forEach((o) => {
107
- n in o && delete o[n];
108
- });
109
- });
110
- }), s;
111
- }
112
- function j(i) {
113
- const { categoryField: r, categoryType: e, numericFields: t, inlineData: s } = i;
114
- let u;
115
- if ("dataItems" in s) {
116
- const { dataItems: l } = s, a = [];
117
- let n = "OBJECTID";
118
- const o = l.map((b, S) => {
119
- const m = { ...b };
120
- return "FID" in b ? n = "FID" : "ObjectId" in b && (n = "ObjectId"), m[n] || (m[n] = S), { attributes: m };
121
- });
122
- a.push({ type: "esriFieldTypeOID", name: n });
123
- let c;
124
- switch (e) {
125
- case "dateOnly":
126
- c = $.DateOnly;
701
+ return r;
702
+ }
703
+ function P(t) {
704
+ return t == null || typeof t == "string" && t.trim() === "";
705
+ }
706
+ function de(t, e) {
707
+ const i = e.find((a) => a in t);
708
+ return { isInItem: i !== void 0, expr: i };
709
+ }
710
+ function Me(t) {
711
+ return de(t, J);
712
+ }
713
+ function ke(t, e) {
714
+ let i;
715
+ switch (t) {
716
+ case p.Second:
717
+ i = e.seconds ?? "";
718
+ break;
719
+ case p.Minute:
720
+ i = e.minutes ?? "";
721
+ break;
722
+ case p.Hour:
723
+ i = e.hours ?? "";
724
+ break;
725
+ case p.Day:
726
+ i = e.days ?? "";
727
+ break;
728
+ case p.Week:
729
+ i = e.weeks ?? "";
730
+ break;
731
+ case p.Month:
732
+ i = e.months ?? "";
733
+ break;
734
+ case p.Year:
735
+ i = e.years ?? "";
736
+ break;
737
+ default:
738
+ i = "";
739
+ break;
740
+ }
741
+ return i;
742
+ }
743
+ function Oe(t) {
744
+ let e;
745
+ switch (t) {
746
+ case c.Mean:
747
+ e = 1;
748
+ break;
749
+ case c.Median:
750
+ e = 2;
751
+ break;
752
+ case c.StdDev:
753
+ e = 3;
754
+ break;
755
+ case c.Normal:
756
+ default:
757
+ e = 0;
758
+ break;
759
+ }
760
+ return e;
761
+ }
762
+ function Re(t, e) {
763
+ if (e !== void 0) {
764
+ const { seriesId: i, overlayType: r, visible: a } = t.detail;
765
+ let s;
766
+ switch (r) {
767
+ case c.Mean:
768
+ e.series[0].type === n.HistogramSeries && (s = e.series[0].overlays?.mean);
127
769
  break;
128
- case "timeStampOffset":
129
- c = $.TimestampOffset;
770
+ case c.Median:
771
+ e.series[0].type === n.HistogramSeries && (s = e.series[0].overlays?.median);
130
772
  break;
131
- case "date":
132
- c = $.Date;
773
+ case c.StdDev:
774
+ e.series[0].type === n.HistogramSeries && (s = e.series[0].overlays?.standardDeviation);
133
775
  break;
134
- case "number":
135
- c = $.Double;
776
+ case c.Normal:
777
+ e.series[0].type === n.HistogramSeries && (s = e.series[0].overlays?.comparisonDistribution);
778
+ break;
779
+ case c.Trendline:
780
+ e.series[0].type === n.ScatterSeries && (s = e.series[0].overlays?.trendLine);
136
781
  break;
137
782
  default:
138
- c = $.String;
783
+ s = e.series.find((o) => o.id === i);
139
784
  break;
140
785
  }
141
- a.push({ type: c, name: r }), t.forEach((b) => {
142
- a.push({ type: $.Double, name: b });
143
- }), u = {
144
- id: "",
145
- layerType: "ArcGISFeatureLayer",
146
- featureCollection: {
147
- layers: [{ layerDefinition: { fields: a }, featureSet: { features: o } }]
148
- }
149
- };
786
+ s !== void 0 && (s.visible = a);
787
+ }
788
+ }
789
+ function we(t) {
790
+ return new K().sanitize(t);
791
+ }
792
+ function Ne(t) {
793
+ return t != null && !Number.isNaN(t) && Number.isFinite(t);
794
+ }
795
+ function ce(t, e) {
796
+ let i = { fieldToSort: "" };
797
+ if (!P(t)) {
798
+ const r = t.trim(), s = r.split(" ").at(-1)?.toUpperCase();
799
+ s === b.Ascending || s === b.Descending ? i = { fieldToSort: r.substring(0, r.lastIndexOf(" ")), orderBy: s } : (i = { fieldToSort: r }, e !== !1 && (i.orderBy = b.Ascending));
150
800
  }
151
- return u;
152
- }
153
- async function B(i) {
154
- const { categoryField: r, categoryType: e, numericFields: t, configFields: s, inlineData: u } = i;
155
- let l, a, n = w(u);
156
- s && (l = W({
157
- categoryField: r,
158
- numericFields: t,
159
- configFields: s,
160
- inlineData: n
161
- }), n = E({
162
- numericFields: t,
163
- configFields: s,
164
- inlineData: n
165
- }));
166
- const o = j({
167
- categoryField: r,
168
- categoryType: e,
169
- numericFields: t,
170
- inlineData: n
801
+ return i;
802
+ }
803
+ function ze(t) {
804
+ return t.orderOptions?.orderByFields?.map((e) => ce(e).fieldToSort) ?? [];
805
+ }
806
+ function Ie(t) {
807
+ return t === h.BarAndLineSplitBy || t === h.BarAndLineSplitByNoAggregation || t === h.BoxPlotMonoFieldAndSplitBy || t === h.BoxPlotMultiFieldsAndSplitBy || t === h.BoxPlotMonoFieldAndCategoryAndSplitBy;
808
+ }
809
+ function De(t, e) {
810
+ let { selectionItems: i } = t ?? {};
811
+ const { selectionOIDs: r } = t ?? {};
812
+ let { selectionItems: a } = e ?? {};
813
+ const { selectionOIDs: s } = e ?? {}, o = (d) => ({
814
+ ...d,
815
+ [j]: void 0
816
+ });
817
+ i !== void 0 && (i = i.map(o)), a !== void 0 && (a = a.map(o));
818
+ const u = !x(i, a), l = !x(r, s);
819
+ return u || l;
820
+ }
821
+ function We(t) {
822
+ return t?.selectionPixelTarget ? U(t.selectionPixelTarget.pixelRanges) : t?.selectionOIDs === void 0 || t.selectionOIDs.length === 0;
823
+ }
824
+ function Ve(t = {
825
+ arrayA: [],
826
+ arrayB: [],
827
+ getKey: (e) => e
828
+ }) {
829
+ const { arrayA: e, arrayB: i, getKey: r } = t;
830
+ if (i.length === 0 || e.length === 0)
831
+ return e;
832
+ const a = /* @__PURE__ */ new Map();
833
+ i.forEach((l, d) => {
834
+ const m = r(l);
835
+ a.set(m, d);
836
+ });
837
+ const s = [], o = [];
838
+ e.forEach((l, d) => {
839
+ const m = r(l);
840
+ a.has(m) && (s.push(d), o.push(l));
841
+ }), o.sort((l, d) => {
842
+ const m = r(l), f = r(d);
843
+ return a.get(m) - a.get(f);
171
844
  });
172
- return o && (a = await V(o)), { chartRenderer: l, iLayer: o, layer: a };
845
+ const u = [...e];
846
+ return s.forEach((l, d) => {
847
+ u[l] = o[d];
848
+ }), u;
849
+ }
850
+ function Ee(t, e) {
851
+ return (t === h.BarAndLineNoAggregation || t === h.BarAndLineSplitByNoAggregation) && e !== void 0 ? e.x : oe.xAxisField;
852
+ }
853
+ function Ge(t) {
854
+ const { r: e, g: i, b: r, a = 1 } = t, s = Math.round((1 - a) * 255 + a * e), o = Math.round((1 - a) * 255 + a * i), u = Math.round((1 - a) * 255 + a * r);
855
+ return 0.299 * s + 0.587 * o + 0.114 * u > 128;
173
856
  }
174
- const M = {
175
- hexToRGB: L,
176
- convertColor: N,
177
- removeConfigFieldsFromData: E
857
+ const He = {
858
+ isSupportedHistogram: A,
859
+ isSupportedPieChart: _,
860
+ isSupportedScatterplot: B
178
861
  };
179
862
  export {
180
- B as a,
181
- j as b,
182
- W as c,
183
- M as i
863
+ ne as A,
864
+ we as B,
865
+ h as C,
866
+ Ve as D,
867
+ Re as E,
868
+ oe as F,
869
+ c as O,
870
+ be as S,
871
+ ye as a,
872
+ Ee as b,
873
+ Fe as c,
874
+ _e as d,
875
+ Te as e,
876
+ Pe as f,
877
+ fe as g,
878
+ ce as h,
879
+ ze as i,
880
+ Oe as j,
881
+ xe as k,
882
+ Le as l,
883
+ ke as m,
884
+ De as n,
885
+ Ce as o,
886
+ Ge as p,
887
+ P as q,
888
+ Ae as r,
889
+ de as s,
890
+ Me as t,
891
+ We as u,
892
+ Ie as v,
893
+ ve as w,
894
+ Ne as x,
895
+ He as y,
896
+ Be as z
184
897
  };