@arcgis/charts-components 5.2.0-next.6 → 5.2.0-next.61

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 (447) hide show
  1. package/README.md +2 -2
  2. package/dist/cdn/{FF4DUQDZ.js → 22WGB4CQ.js} +1 -1
  3. package/dist/cdn/{YJ6TRXMU.js → 24MSASQQ.js} +1 -1
  4. package/dist/cdn/{4USHOYLT.js → 2BE3GYK4.js} +1 -1
  5. package/dist/cdn/2G65P262.js +2 -0
  6. package/dist/cdn/2RYKKN36.js +2 -0
  7. package/dist/cdn/3AYXOX4U.js +2 -0
  8. package/dist/cdn/{ZFZ5AEUQ.js → 3CGAUDYD.js} +1 -1
  9. package/dist/cdn/{JBHGSSHS.js → 3FZCVKWJ.js} +1 -1
  10. package/dist/cdn/{DCZWZOPF.js → 3GVTYZ2I.js} +1 -1
  11. package/dist/cdn/3YCGBAQY.js +2 -0
  12. package/dist/cdn/3ZGG7Q5M.js +2 -0
  13. package/dist/cdn/46PXO7ZC.js +4 -0
  14. package/dist/cdn/4COV22K4.js +2 -0
  15. package/dist/cdn/{CHLE2QGU.js → 4DXGXATO.js} +1 -1
  16. package/dist/cdn/{AM2TOTX6.js → 4EBMUPEV.js} +1 -1
  17. package/dist/cdn/4ITNOJXC.js +2 -0
  18. package/dist/cdn/{E7OAEGSE.js → 4VL2SBHK.js} +1 -1
  19. package/dist/cdn/54W4C75M.js +2 -0
  20. package/dist/cdn/{H2A5GZ55.js → 5D2QRMC6.js} +1 -1
  21. package/dist/cdn/{GDQBQQUP.js → 5JXEO4VE.js} +1 -1
  22. package/dist/cdn/{LUSFGRHV.js → 5WIR3JWC.js} +1 -1
  23. package/dist/cdn/5YP7P6S3.js +2 -0
  24. package/dist/cdn/{VT4WJZN6.js → 64B7ILJI.js} +1 -1
  25. package/dist/cdn/67QYTLMM.js +2 -0
  26. package/dist/cdn/6AI3ZXL5.js +2 -0
  27. package/dist/cdn/6MNV7FJC.js +2 -0
  28. package/dist/cdn/{7LYAWWOE.js → 6WKTHJQK.js} +1 -1
  29. package/dist/cdn/{II2ZPEUZ.js → 7C2LVFNV.js} +1 -1
  30. package/dist/cdn/{4Z23HWDH.js → 7COM5REK.js} +1 -1
  31. package/dist/cdn/{JRHMUFED.js → 7DIQIFKR.js} +1 -1
  32. package/dist/cdn/{ETKPMU7Z.js → 7WVTY3XI.js} +1 -1
  33. package/dist/cdn/{A5AECJXP.js → A2NFOGT2.js} +1 -1
  34. package/dist/cdn/{OJ5X6I3H.js → ADI63OO7.js} +1 -1
  35. package/dist/cdn/ANHW36VW.js +2 -0
  36. package/dist/cdn/{DKAHZ7IX.js → ASZ6YFIL.js} +1 -1
  37. package/dist/cdn/{VY3KBD6N.js → AYQ4HHL6.js} +1 -1
  38. package/dist/cdn/AYUYEY5H.js +2 -0
  39. package/dist/cdn/{JJIGLOJA.js → AZKX3FMB.js} +1 -1
  40. package/dist/cdn/{AJWYIBGC.js → AZMQPJO3.js} +1 -1
  41. package/dist/cdn/{TXB2I2U5.js → B2SUC7VR.js} +1 -1
  42. package/dist/cdn/{TACQVUBU.js → BDEDEGCZ.js} +1 -1
  43. package/dist/cdn/BDTKAMUN.js +2 -0
  44. package/dist/cdn/BGOWDCTO.js +2 -0
  45. package/dist/cdn/BHGOAHMJ.js +2 -0
  46. package/dist/cdn/{CNFBNAPJ.js → BK7DHYA7.js} +1 -1
  47. package/dist/cdn/BKK57XHL.js +2 -0
  48. package/dist/cdn/BLZLMGO6.js +2 -0
  49. package/dist/cdn/BYSUABOV.js +2 -0
  50. package/dist/cdn/{BJDRJUEJ.js → CDJRYMBP.js} +1 -1
  51. package/dist/cdn/{6XTKJ7DO.js → CHMLTTRN.js} +1 -1
  52. package/dist/cdn/{HVO4LIXR.js → CL5G6D6W.js} +1 -1
  53. package/dist/cdn/{AWF4R7WL.js → CMGCZ4MF.js} +1 -1
  54. package/dist/cdn/{QMSINFQX.js → CVJSVWF3.js} +1 -1
  55. package/dist/cdn/{ZFJFTDJF.js → CYGMXV56.js} +1 -1
  56. package/dist/cdn/{K3GNHGEW.js → D3KIBJKD.js} +1 -1
  57. package/dist/cdn/{KDJ5RVHA.js → DAFNQT4C.js} +1 -1
  58. package/dist/cdn/DBAM7MH7.js +2 -0
  59. package/dist/cdn/DGV6S2W3.js +2 -0
  60. package/dist/cdn/{TF7TE7K5.js → DJPMW6UC.js} +1 -1
  61. package/dist/cdn/DPTA2AET.js +2 -0
  62. package/dist/cdn/DQXO7PWX.js +2 -0
  63. package/dist/cdn/EAV3KAS7.js +2 -0
  64. package/dist/cdn/EMBMJCFZ.js +2 -0
  65. package/dist/cdn/EOHKNJSJ.js +2 -0
  66. package/dist/cdn/{J5NHXQLA.js → EQZBQP5A.js} +1 -1
  67. package/dist/cdn/EUOJG5H6.js +2 -0
  68. package/dist/cdn/{2HUAW34Q.js → EXS2KOEA.js} +1 -1
  69. package/dist/cdn/FHBCVW5T.js +2 -0
  70. package/dist/cdn/FJGG2VVZ.js +2 -0
  71. package/dist/cdn/FQLRMWNL.js +2 -0
  72. package/dist/cdn/{QFEZPP3R.js → GARBFC7Q.js} +1 -1
  73. package/dist/cdn/{CLXVAIQX.js → GP3LPIRJ.js} +1 -1
  74. package/dist/cdn/GRL5SM6K.js +2 -0
  75. package/dist/cdn/{ADGMA3ST.js → H57XAQPI.js} +2 -2
  76. package/dist/cdn/{L4G6FO7A.js → HBOYEK6P.js} +1 -1
  77. package/dist/cdn/{MVHQR4FJ.js → HOIPLQXD.js} +1 -1
  78. package/dist/cdn/{LFQGH44F.js → HQMOMCWF.js} +1 -1
  79. package/dist/cdn/{N6AOFBBX.js → HSQ32NUA.js} +1 -1
  80. package/dist/cdn/{7HGVEE7A.js → HUNN3ERX.js} +1 -1
  81. package/dist/cdn/{AZOBLYAP.js → I2BM5KSH.js} +1 -1
  82. package/dist/cdn/I3XBTQKJ.js +2 -0
  83. package/dist/cdn/{JQKRGUBU.js → IDAOLPMA.js} +1 -1
  84. package/dist/cdn/INISFVAK.js +2 -0
  85. package/dist/cdn/{P4HSSZRL.js → IONJLIQQ.js} +1 -1
  86. package/dist/cdn/{KCMZSNBL.js → ISK4QVLY.js} +1 -1
  87. package/dist/cdn/{DEGBVJ76.js → IUOORM26.js} +1 -1
  88. package/dist/cdn/J3CL6KB6.js +2 -0
  89. package/dist/cdn/JGESKW6S.js +2 -0
  90. package/dist/cdn/JH3NSZUT.js +2 -0
  91. package/dist/cdn/{ML3A3MYV.js → JS6A5QAV.js} +1 -1
  92. package/dist/cdn/{4LPXOEML.js → JUON3AJY.js} +1 -1
  93. package/dist/cdn/{AK7X7SGI.js → JYC77MVD.js} +1 -1
  94. package/dist/cdn/JYITKARU.js +104 -0
  95. package/dist/cdn/{KUZR6CGB.js → JZ5HUNM5.js} +1 -1
  96. package/dist/cdn/K4APZJ2O.js +2 -0
  97. package/dist/cdn/KCES2YBJ.js +2 -0
  98. package/dist/cdn/KDCZQ6UT.js +2 -0
  99. package/dist/cdn/KJZTU3DV.js +2 -0
  100. package/dist/cdn/KLKI4XNW.js +2 -0
  101. package/dist/cdn/{5XTQQOTT.js → KOCZJFY6.js} +1 -1
  102. package/dist/cdn/{D3CFPMAR.js → KOY5DWSR.js} +1 -1
  103. package/dist/cdn/KWA7OWHO.js +2 -0
  104. package/dist/cdn/L7TUV2MY.js +2 -0
  105. package/dist/cdn/{AY6IOQ3H.js → LAEUROZM.js} +1 -1
  106. package/dist/cdn/LGTXQIF7.js +2 -0
  107. package/dist/cdn/{IPM2XKST.js → LHDBHPXR.js} +1 -1
  108. package/dist/cdn/LIBE4XVH.js +2 -0
  109. package/dist/cdn/M744CFJ2.js +2 -0
  110. package/dist/cdn/{CHQDKVVQ.js → MARXRC6B.js} +1 -1
  111. package/dist/cdn/MI6AKTXQ.js +2 -0
  112. package/dist/cdn/MJTWR33N.js +2 -0
  113. package/dist/cdn/MPGHOXLW.js +2 -0
  114. package/dist/cdn/MU6ZYADT.js +2 -0
  115. package/dist/cdn/{XE3FKQFA.js → MVCB4RM7.js} +1 -1
  116. package/dist/cdn/MXE4VPZS.js +2 -0
  117. package/dist/cdn/{KFONSKQF.js → MZ2RZ62O.js} +1 -1
  118. package/dist/cdn/NK66D65H.js +2 -0
  119. package/dist/cdn/{XG2KN6YJ.js → NKPZCF5U.js} +1 -1
  120. package/dist/cdn/{VE3GFNNM.js → NRXCKYYY.js} +1 -1
  121. package/dist/cdn/{4C6KWLWN.js → NWLNHFHJ.js} +1 -1
  122. package/dist/cdn/NZ2C5DJB.js +2 -0
  123. package/dist/cdn/O3VKOV2W.js +2 -0
  124. package/dist/cdn/{THTYR6IL.js → OAXHS4LE.js} +1 -1
  125. package/dist/cdn/{NAXNRCMZ.js → OD2NWPCL.js} +1 -1
  126. package/dist/cdn/OFFKJPQH.js +2 -0
  127. package/dist/cdn/{4ZIZEJXS.js → OISERMTF.js} +1 -1
  128. package/dist/cdn/{ETOGNYFU.js → OKAZOAYZ.js} +1 -1
  129. package/dist/cdn/ONKEO3Z2.js +2 -0
  130. package/dist/cdn/{XUERYUEG.js → OQFM5DBD.js} +1 -1
  131. package/dist/cdn/{A4GEWIPY.js → OSUM4CWA.js} +1 -1
  132. package/dist/cdn/OT7PLFBK.js +2 -0
  133. package/dist/cdn/OWWQ5SYW.js +2 -0
  134. package/dist/cdn/{C5K6XOCR.js → P37JASN4.js} +1 -1
  135. package/dist/cdn/{244ZX2UP.js → P5I5RQTN.js} +1 -1
  136. package/dist/cdn/P5QEJOJS.js +2 -0
  137. package/dist/cdn/{5MEQANMY.js → PAQGR4DD.js} +1 -1
  138. package/dist/cdn/PBO5VH6A.js +2 -0
  139. package/dist/cdn/{ZXOO3X5P.js → PEEVY5UG.js} +1 -1
  140. package/dist/cdn/{BJ7Q7LCT.js → PIZPF2BH.js} +1 -1
  141. package/dist/cdn/PLEC3GNT.js +2 -0
  142. package/dist/cdn/Q5OFF4FE.js +45 -0
  143. package/dist/cdn/{7UQHB6KY.js → QIG5H6WA.js} +1 -1
  144. package/dist/cdn/{XMPLEHTW.js → QKZK6MTN.js} +1 -1
  145. package/dist/cdn/QZCTLQBM.js +2 -0
  146. package/dist/cdn/RICA7GJM.js +2 -0
  147. package/dist/cdn/S5GVUYBL.js +2 -0
  148. package/dist/cdn/SCU3SBSN.js +2 -0
  149. package/dist/cdn/SQIKFO32.js +2 -0
  150. package/dist/cdn/{DNTLH5RT.js → SSOL6PCL.js} +1 -1
  151. package/dist/cdn/SUNHJPBW.js +2 -0
  152. package/dist/cdn/SYVPFDIW.js +2 -0
  153. package/dist/cdn/T62EETHJ.js +2 -0
  154. package/dist/cdn/{ZYOWZCR7.js → TB7JE5XK.js} +1 -1
  155. package/dist/cdn/TEWEPSIO.js +2 -0
  156. package/dist/cdn/{QOOBNATX.js → TGEHTOWR.js} +1 -1
  157. package/dist/cdn/{DAB5R2BN.js → TQYJM66E.js} +1 -1
  158. package/dist/cdn/{WMPWOPRZ.js → TRAVRA3M.js} +1 -1
  159. package/dist/cdn/{SBYD2EKR.js → TSSN2OW3.js} +1 -1
  160. package/dist/cdn/TU3LYEK3.js +2 -0
  161. package/dist/cdn/TVG7KD3H.js +2 -0
  162. package/dist/cdn/{MRTKZZTF.js → U43KANH5.js} +1 -1
  163. package/dist/cdn/{7FZC3RZK.js → UB36FUCN.js} +1 -1
  164. package/dist/cdn/{P5AO3V3M.js → UD724V36.js} +1 -1
  165. package/dist/cdn/UM7RIOCE.js +2 -0
  166. package/dist/cdn/{DSIFL2DF.js → UQSD6YZM.js} +1 -1
  167. package/dist/cdn/{Q7J7EKQW.js → UUVJGPFG.js} +1 -1
  168. package/dist/cdn/V6LKZUEZ.js +3 -0
  169. package/dist/cdn/{YOT6DVSU.js → V7AEHY25.js} +1 -1
  170. package/dist/cdn/VA6KJZ2Y.js +2 -0
  171. package/dist/cdn/{ZQDADGLQ.js → VLCUXTLC.js} +1 -1
  172. package/dist/cdn/VM4XLVMS.js +2 -0
  173. package/dist/cdn/{KZ7LPNX3.js → VNNTABNO.js} +1 -1
  174. package/dist/cdn/VPYL3RVN.js +2 -0
  175. package/dist/cdn/{XW4PBQNW.js → VT6X6QMA.js} +1 -1
  176. package/dist/cdn/WFW6BNDT.js +2 -0
  177. package/dist/cdn/{GV3TT7L5.js → WKQB6Z7Z.js} +1 -1
  178. package/dist/cdn/{Y7HBWU3M.js → WMUPNT4Q.js} +1 -1
  179. package/dist/cdn/WSL76GA5.js +2 -0
  180. package/dist/cdn/{6B7JCDQC.js → WTF2PFHV.js} +1 -1
  181. package/dist/cdn/WTJ2NJ76.js +2 -0
  182. package/dist/cdn/WZOHQJFB.js +2 -0
  183. package/dist/cdn/X3S4M6JL.js +2 -0
  184. package/dist/cdn/XV4LD73L.js +2 -0
  185. package/dist/cdn/Y5ZH7VS4.js +2 -0
  186. package/dist/cdn/{WASEMNYV.js → YC4WZNPI.js} +1 -1
  187. package/dist/cdn/{BXYNEUQY.js → YCQLYXH4.js} +1 -1
  188. package/dist/cdn/ZGBULDPL.js +2 -0
  189. package/dist/cdn/{5ZGALYWZ.js → ZLCRTIQH.js} +1 -1
  190. package/dist/cdn/{UT4TYXFO.js → ZRX4BEOX.js} +1 -1
  191. package/dist/cdn/{S5UDCCRH.js → ZWIF7LHW.js} +1 -1
  192. package/dist/cdn/{TYUVXRBO.js → ZZHKDFTA.js} +1 -1
  193. package/dist/cdn/assets/charts-config-view-charts/t9n/messages.en.json +1 -1
  194. package/dist/cdn/index.js +1 -1
  195. package/dist/cdn/main.css +1 -1
  196. package/dist/cdn/model/shared/setup-utils.js +1 -1
  197. package/dist/chart-rendering/common/data/utils/summarize-data/interfaces.d.ts +5 -1
  198. package/dist/chart-rendering/common/interfaces.d.ts +19 -21
  199. package/dist/chunks/{type-guards3.js → action-bar-utils.js} +27 -35
  200. package/dist/chunks/axis-lines-symbol.js +7 -7
  201. package/dist/chunks/bar-chart-model.js +39 -36
  202. package/dist/chunks/box-plot-data.js +273 -282
  203. package/dist/chunks/box-plot-model.js +159 -144
  204. package/dist/chunks/chart-model.js +177 -145
  205. package/dist/chunks/chart-object-literals.js +2 -1
  206. package/dist/chunks/chart-ui-utils.js +24 -23
  207. package/dist/chunks/class-breaks.js +12 -12
  208. package/dist/chunks/combo-bar-line-chart-model.js +25 -26
  209. package/dist/chunks/data-labels-symbol.js +39 -24
  210. package/dist/chunks/data-labels-visibility.js +24 -24
  211. package/dist/chunks/data.js +69 -69
  212. package/dist/chunks/gauge-model.js +18 -18
  213. package/dist/chunks/generate-x-axis-title.js +12 -12
  214. package/dist/chunks/heat-chart-model.js +93 -64
  215. package/dist/chunks/histogram-data.js +22 -22
  216. package/dist/chunks/histogram-model.js +10 -10
  217. package/dist/chunks/index.js +190 -179
  218. package/dist/chunks/index2.js +6069 -5721
  219. package/dist/chunks/index3.js +96 -86
  220. package/dist/chunks/index4.js +312 -87
  221. package/dist/chunks/index5.js +63 -100
  222. package/dist/chunks/line-chart-model.js +12 -12
  223. package/dist/chunks/model-setter.js +16 -15
  224. package/dist/chunks/model-with-line-marker-styling.js +2 -3
  225. package/dist/chunks/model-with-y-guides.js +59 -74
  226. package/dist/chunks/negative-values-stacked-to-baseline.js +18 -18
  227. package/dist/chunks/pie-chart-data.js +174 -192
  228. package/dist/chunks/pie-chart-model.js +161 -148
  229. package/dist/chunks/radar-chart-model.js +397 -46
  230. package/dist/chunks/resource.js +5 -5
  231. package/dist/chunks/rotated-state.js +1 -1
  232. package/dist/chunks/rounded-corners.js +73 -0
  233. package/dist/chunks/scatterplot-model.js +3 -3
  234. package/dist/chunks/serial-chart-data.js +889 -774
  235. package/dist/chunks/serial-chart-model.js +145 -124
  236. package/dist/chunks/series-length.js +2 -2
  237. package/dist/chunks/series-types.js +22 -18
  238. package/dist/chunks/series.js +1 -1
  239. package/dist/chunks/type-guards.js +17 -13
  240. package/dist/chunks/type-guards2.js +41 -33
  241. package/dist/chunks/utils.js +108 -96
  242. package/dist/chunks/utils2.js +1 -1
  243. package/dist/chunks/web-component-utils.js +632 -492
  244. package/dist/chunks/x-bounds.js +41 -42
  245. package/dist/components/arcgis-chart/customElement.d.ts +277 -164
  246. package/dist/components/arcgis-chart/customElement.js +10323 -10325
  247. package/dist/components/arcgis-charts-action-bar/customElement.js +33 -30
  248. package/dist/components/arcgis-charts-config-axis/customElement.js +70 -64
  249. package/dist/components/arcgis-charts-config-bar-chart/customElement.js +6 -7
  250. package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +19 -19
  251. package/dist/components/arcgis-charts-config-bar-chart-data/index.js +1 -1
  252. package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +35 -37
  253. package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +44 -43
  254. package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +13 -15
  255. package/dist/components/arcgis-charts-config-box-plot/customElement.js +10 -11
  256. package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +8 -8
  257. package/dist/components/arcgis-charts-config-box-plot-data/index.js +1 -1
  258. package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +23 -25
  259. package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +1 -1
  260. package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +15 -18
  261. package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +18 -20
  262. package/dist/components/arcgis-charts-config-color-style/customElement.js +1 -1
  263. package/dist/components/arcgis-charts-config-create-flow/customElement.js +138 -136
  264. package/dist/components/arcgis-charts-config-field-picker/customElement.js +30 -0
  265. package/dist/components/arcgis-charts-config-font-style/customElement.js +2 -2
  266. package/dist/components/arcgis-charts-config-format/customElement.js +93 -86
  267. package/dist/components/arcgis-charts-config-format-popover/customElement.js +7 -10
  268. package/dist/components/arcgis-charts-config-guide/customElement.js +17 -18
  269. package/dist/components/arcgis-charts-config-guide-popover/customElement.js +8 -11
  270. package/dist/components/arcgis-charts-config-guides/customElement.js +1 -1
  271. package/dist/components/arcgis-charts-config-heat-chart/customElement.js +12 -13
  272. package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +64 -76
  273. package/dist/components/arcgis-charts-config-heat-chart-data/index.js +1 -1
  274. package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +53 -54
  275. package/dist/components/arcgis-charts-config-histogram/customElement.js +27 -23
  276. package/dist/components/arcgis-charts-config-histogram-data/customElement.js +19 -19
  277. package/dist/components/arcgis-charts-config-histogram-data/index.js +1 -1
  278. package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +33 -34
  279. package/dist/components/arcgis-charts-config-line-chart/customElement.js +5 -6
  280. package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +12 -12
  281. package/dist/components/arcgis-charts-config-line-chart-data/index.js +1 -1
  282. package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +35 -37
  283. package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +6 -6
  284. package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +6 -7
  285. package/dist/components/arcgis-charts-config-pie-chart/customElement.js +4 -5
  286. package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +41 -48
  287. package/dist/components/arcgis-charts-config-pie-chart-data/index.js +1 -1
  288. package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +55 -56
  289. package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +65 -66
  290. package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +7 -10
  291. package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +27 -23
  292. package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +79 -79
  293. package/dist/components/arcgis-charts-config-scatter-plot-data/index.js +1 -1
  294. package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +18 -19
  295. package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +9 -11
  296. package/dist/components/arcgis-charts-config-view-charts/customElement.js +57 -26
  297. package/dist/components/arcgis-charts-info-modal/customElement.js +6 -6
  298. package/dist/docs/api.json +1 -1
  299. package/dist/docs/docs.json +1 -1
  300. package/dist/docs/vscode.html-custom-data.json +1 -1
  301. package/dist/docs/web-types.json +1 -1
  302. package/dist/index.d.ts +62 -67
  303. package/dist/index.js +471 -458
  304. package/dist/json-schema/index.d.ts +207 -6
  305. package/dist/loader.js +2 -2
  306. package/dist/model/bar-chart-model/bar-chart-model.d.ts +4 -2
  307. package/dist/model/box-plot-model/box-plot-model.d.ts +7 -1
  308. package/dist/model/chart-model/chart-model.d.ts +2 -1
  309. package/dist/model/combo-bar-line-chart-model/combo-bar-line-chart-model.d.ts +8 -5
  310. package/dist/model/heat-chart-model/heat-chart-model.d.ts +44 -2
  311. package/dist/model/interfaces/common.d.ts +0 -2
  312. package/dist/model/mixins/model-with-line-marker-styling.d.ts +6 -5
  313. package/dist/model/mixins/model-with-multi-axes.d.ts +62 -99
  314. package/dist/model/pie-chart-model/pie-chart-model.d.ts +2 -0
  315. package/dist/model/properties/data-labels/data-labels-symbol.d.ts +26 -0
  316. package/dist/model/properties/data-tooltip-font-size.d.ts +20 -0
  317. package/dist/model/properties/rotated-state.d.ts +1 -1
  318. package/dist/model/properties/rounded-corners.d.ts +18 -0
  319. package/dist/model/radar-chart-model/radar-chart-model.d.ts +190 -0
  320. package/dist/model/serial-chart-model/serial-chart-model.d.ts +27 -1
  321. package/dist/model/shared/type-guards.d.ts +16 -2
  322. package/dist/spec/chart-object-literals.d.ts +1 -0
  323. package/dist/spec/data-source.d.ts +15 -3
  324. package/dist/spec/rest-js-object-literals.d.ts +2 -2
  325. package/dist/spec/rest-js-types.d.ts +22 -8
  326. package/dist/spec/web-chart.d.ts +42 -6
  327. package/dist/utils/chart-config/converter/index.js +198 -179
  328. package/dist/utils/chart-config/utils/index.d.ts +54 -4
  329. package/dist/utils/chart-config/validator/index.d.ts +1 -0
  330. package/dist/utils/chart-config/validator/interfaces.d.ts +3 -3
  331. package/dist/utils/cursor/interfaces.d.ts +21 -0
  332. package/dist/utils/data/categorical-data/index.d.ts +2 -2
  333. package/dist/utils/data/index.d.ts +14 -10
  334. package/dist/utils/data/interfaces.d.ts +4 -3
  335. package/dist/utils/defaults/index.d.ts +16 -4
  336. package/dist/utils/defaults/interfaces.d.ts +7 -2
  337. package/dist/utils/errors/index.d.ts +1 -1
  338. package/dist/utils/layer/index.d.ts +5 -3
  339. package/dist/utils/layer/inline-conversion/interfaces.d.ts +0 -2
  340. package/dist/utils/layer/interfaces.d.ts +2 -1
  341. package/dist/utils/layer/query-features/index.d.ts +18 -1
  342. package/dist/utils/layer/query-parser/index.d.ts +5 -3
  343. package/dist/utils/misc/index.d.ts +2 -3
  344. package/dist/utils/type-guards/chart-types.d.ts +10 -0
  345. package/dist/utils/type-guards/series-types.d.ts +9 -2
  346. package/dist/utils/types/index.d.ts +1 -5
  347. package/package.json +7 -8
  348. package/dist/cdn/24RLLXS6.js +0 -2
  349. package/dist/cdn/2N4MK6FQ.js +0 -2
  350. package/dist/cdn/32FR66QO.js +0 -2
  351. package/dist/cdn/3EIVHDDK.js +0 -2
  352. package/dist/cdn/3NUNWPAR.js +0 -2
  353. package/dist/cdn/43ZHPVBB.js +0 -2
  354. package/dist/cdn/547RDEMV.js +0 -2
  355. package/dist/cdn/5YJNENER.js +0 -2
  356. package/dist/cdn/6AF2OTL6.js +0 -2
  357. package/dist/cdn/6CFIKYKR.js +0 -2
  358. package/dist/cdn/6GLTSMOR.js +0 -2
  359. package/dist/cdn/7EMCHGGV.js +0 -2
  360. package/dist/cdn/7OF2IANH.js +0 -2
  361. package/dist/cdn/7VN3A7S2.js +0 -2
  362. package/dist/cdn/7YWZG3ZS.js +0 -2
  363. package/dist/cdn/A5GIBV5W.js +0 -2
  364. package/dist/cdn/ADPDJISV.js +0 -2
  365. package/dist/cdn/B4KAJRUJ.js +0 -2
  366. package/dist/cdn/BBUPTHPL.js +0 -2
  367. package/dist/cdn/BBURKBKE.js +0 -2
  368. package/dist/cdn/BLZODYE2.js +0 -4
  369. package/dist/cdn/BO62KSB5.js +0 -2
  370. package/dist/cdn/C2FOUUEM.js +0 -2
  371. package/dist/cdn/CJPEW4LJ.js +0 -142
  372. package/dist/cdn/CVU3UPPF.js +0 -2
  373. package/dist/cdn/CZ5XRXCE.js +0 -2
  374. package/dist/cdn/D73VV2AZ.js +0 -2
  375. package/dist/cdn/DJACBOFO.js +0 -2
  376. package/dist/cdn/DPNTYHTH.js +0 -2
  377. package/dist/cdn/DZ72EIRH.js +0 -2
  378. package/dist/cdn/EGISZTGB.js +0 -2
  379. package/dist/cdn/EP34TF4L.js +0 -2
  380. package/dist/cdn/EZD3FBJU.js +0 -2
  381. package/dist/cdn/EZV7JSQJ.js +0 -2
  382. package/dist/cdn/FQT7V7QG.js +0 -2
  383. package/dist/cdn/G72TNKCS.js +0 -2
  384. package/dist/cdn/GQ5QBLRO.js +0 -2
  385. package/dist/cdn/HWJGWDU3.js +0 -2
  386. package/dist/cdn/HZR4NSZV.js +0 -2
  387. package/dist/cdn/ICFKKJWQ.js +0 -2
  388. package/dist/cdn/IWX5L226.js +0 -2
  389. package/dist/cdn/JNG6V7XC.js +0 -2
  390. package/dist/cdn/JNNB2DIA.js +0 -2
  391. package/dist/cdn/JS2KOBA2.js +0 -2
  392. package/dist/cdn/JTTJ455Y.js +0 -2
  393. package/dist/cdn/JWO5WVTZ.js +0 -2
  394. package/dist/cdn/K4WI2SGM.js +0 -2
  395. package/dist/cdn/KLHZFPYK.js +0 -2
  396. package/dist/cdn/KO7HQLGV.js +0 -2
  397. package/dist/cdn/L5AQ4I5T.js +0 -2
  398. package/dist/cdn/LC6CY2HW.js +0 -2
  399. package/dist/cdn/MBVTB42G.js +0 -2
  400. package/dist/cdn/MGEW6X3Y.js +0 -102
  401. package/dist/cdn/NSOZIR5F.js +0 -2
  402. package/dist/cdn/NTSTL3FK.js +0 -2
  403. package/dist/cdn/NZR4L5AA.js +0 -2
  404. package/dist/cdn/O5A25X5K.js +0 -2
  405. package/dist/cdn/OAAJ6CIN.js +0 -2
  406. package/dist/cdn/OGYY2Y22.js +0 -2
  407. package/dist/cdn/PAIRUVLU.js +0 -2
  408. package/dist/cdn/PRGFNLY7.js +0 -2
  409. package/dist/cdn/PROSIXIF.js +0 -2
  410. package/dist/cdn/Q5JDSPJA.js +0 -2
  411. package/dist/cdn/QJC3FDWG.js +0 -2
  412. package/dist/cdn/QRLILSSI.js +0 -2
  413. package/dist/cdn/QY53LXP2.js +0 -2
  414. package/dist/cdn/R75MHIRF.js +0 -2
  415. package/dist/cdn/RDA5NV6M.js +0 -2
  416. package/dist/cdn/RG3DO2OE.js +0 -2
  417. package/dist/cdn/RPNZL6AC.js +0 -2
  418. package/dist/cdn/S32NLOJ5.js +0 -2
  419. package/dist/cdn/SCAZDS2G.js +0 -2
  420. package/dist/cdn/SJGYHEMZ.js +0 -2
  421. package/dist/cdn/STU55UIS.js +0 -58
  422. package/dist/cdn/TCTQ4LMU.js +0 -2
  423. package/dist/cdn/TDHHWIIC.js +0 -2
  424. package/dist/cdn/TJMPLGQI.js +0 -2
  425. package/dist/cdn/TJMTF45U.js +0 -3
  426. package/dist/cdn/TW5DX7YP.js +0 -2
  427. package/dist/cdn/U67P6YAZ.js +0 -2
  428. package/dist/cdn/UZEMSOA2.js +0 -2
  429. package/dist/cdn/VBHQFV2H.js +0 -2
  430. package/dist/cdn/VFREVEVA.js +0 -2
  431. package/dist/cdn/VOTZAPI3.js +0 -2
  432. package/dist/cdn/VZTLODMQ.js +0 -2
  433. package/dist/cdn/W7X6L2OB.js +0 -127
  434. package/dist/cdn/WNKDEOFZ.js +0 -2
  435. package/dist/cdn/WPPMMVD5.js +0 -2
  436. package/dist/cdn/XCUXUZXY.js +0 -2
  437. package/dist/cdn/XG3WW5GG.js +0 -2
  438. package/dist/cdn/XJFVSX2E.js +0 -2
  439. package/dist/cdn/Y3CXVO2M.js +0 -2
  440. package/dist/cdn/YEZL5KRS.js +0 -2
  441. package/dist/cdn/YYK7SPXC.js +0 -2
  442. package/dist/chunks/bar-chart-series.js +0 -15
  443. package/dist/chunks/index6.js +0 -66
  444. package/dist/chunks/time-zone.js +0 -38
  445. package/dist/components/arcgis-charts-config-field-select/customElement.js +0 -30
  446. /package/dist/cdn/{IVLVCLDE.js → 7NWEE7T2.js} +0 -0
  447. /package/dist/components/{arcgis-charts-config-field-select → arcgis-charts-config-field-picker}/index.js +0 -0
@@ -1,175 +1,206 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { substitute as P } from "@arcgis/core/intl.js";
3
- import { cloneDeep as ae, isEmpty as Ie, memoize as Le } from "lodash-es";
4
- import { S as J } from "./common.js";
5
- import { s as N, u as E, g as re, a as Fe, b as qe, c as Ve, d as ce } from "./utils.js";
6
- import { w as R, bW as Ne, bl as Re, x as ke, Y as X, cq as Oe, cp as De, p as we, aH as le, c0 as Pe, d as Ee, aG as Me, I as $e, a7 as Ye, bj as We, W as Xe, e as He, bm as je, cY as Ke, v as Ue, d2 as de, bK as Qe, d3 as ze, bG as Ge, B as _e, d0 as Ze, an as H, a6 as he, cR as ne, b9 as Je, k as ee, bo as et, bs as ye, ba as K, bg as me } from "./index2.js";
7
- import { a as M, s as Te, g as Q, b as ge, c as tt } from "./data.js";
8
- import { C as D, F as $, d as w } from "./index3.js";
9
- import { u as v, r as q, k as st, n as V, m as U, p as it, t as at, s as te } from "./chart-object-literals.js";
10
- import { convertChartSpec as rt } from "../utils/chart-config/converter/index.js";
11
- import { az as lt, t as nt, Y as ot, a9 as ut, al as ct, x as dt, C as pe, H as fe, $ as yt } from "./index.js";
12
- import { c as se, e as mt } from "./type-guards.js";
13
- import { h as xe, i as O, j as gt, n as pt, g as b, m as A, e as Se } from "./index5.js";
14
- import { g as Be } from "./series-types.js";
15
- import { g as oe } from "./utils2.js";
16
- import { a as ft, b as St } from "./series-length.js";
17
- import { i as Ft, R as ht } from "./rest-js-object-literals.js";
18
- import { i as z } from "./index4.js";
19
- const ts = (t) => {
2
+ import { substitute as w } from "@arcgis/core/intl.js";
3
+ import { cloneDeep as G, isEmpty as Ye, memoize as We } from "lodash-es";
4
+ import { S as ne } from "./common.js";
5
+ import { s as D, u as E, a as Ie, g as ye, b as Le, c as He, d as Xe, e as pe } from "./utils.js";
6
+ import { w as I, i as Ue, dg as W, co as je, bC as Ke, a$ as De, x as Ze, Y as J, cS as _e, cR as Qe, p as ze, aJ as me, cu as Ge, d as Je, aI as et, I as tt, a7 as st, bx as it, W as at, e as rt, bI as nt, dq as ot, v as lt, dw as fe, cb as ut, dx as ct, c7 as dt, B as yt, N as Se, bL as Z, dt as mt, bj as Y, bP as _, ap as U, a6 as Ne, bd as P, bc as gt, k as oe, bt as pt, bB as ft, bs as O, bA as V, bp as Fe, br as xe } from "./index2.js";
7
+ import { a as M, s as ge, g as ee, b as he, c as St } from "./data.js";
8
+ import { u as T, r as v, k as Ft, d as k, n as L, m as H, p as xt, t as ht, s as le } from "./chart-object-literals.js";
9
+ import { R as Oe, i as Tt } from "./rest-js-object-literals.js";
10
+ import { i as te } from "./index4.js";
11
+ import { aD as Bt, K as Q, F as ue, w as Ct, $ as bt, ac as At, ao as vt, A as It, a2 as Lt } from "./index.js";
12
+ import { C as q, F as X, d as R } from "./index3.js";
13
+ import { g as Ve, s as Dt } from "./series-types.js";
14
+ import { convertChartSpec as Nt } from "../utils/chart-config/converter/index.js";
15
+ import { d as ce, f as Ot } from "./type-guards.js";
16
+ import { C as Vt, m as kt } from "./model-setter.js";
17
+ import { g as se } from "./utils2.js";
18
+ import { a as Rt, b as qt } from "./series-length.js";
19
+ const Ds = (s) => {
20
20
  let e;
21
- const s = t.series[0];
22
- return R(s) && (e = s.temporalBinning?.size), e;
23
- }, Tt = (t) => {
21
+ const t = s.series[0];
22
+ return I(t) && (e = t.temporalBinning?.size), e;
23
+ }, wt = (s) => {
24
24
  let e;
25
- const s = t.series[0];
26
- return R(s) && (e = s.temporalBinning?.unit), e;
27
- }, ss = (t) => {
25
+ const t = s.series[0];
26
+ return I(t) && (e = t.temporalBinning?.unit), e;
27
+ }, Ns = (s) => {
28
28
  let e;
29
- const s = t.series[0];
30
- return R(s) && (e = s.temporalBinning?.timeAggregationType), e;
31
- }, is = (t) => {
29
+ const t = s.series[0];
30
+ return I(t) && (e = t.temporalBinning?.timeAggregationType), e;
31
+ }, Os = (s) => {
32
32
  let e;
33
- const s = t.series[0];
34
- return R(s) && (e = s.temporalBinning?.trimIncompleteTimeInterval), e;
35
- }, as = (t) => {
33
+ const t = s.series[0];
34
+ return I(t) && (e = t.temporalBinning?.trimIncompleteTimeInterval), e;
35
+ }, Vs = (s) => {
36
36
  let e;
37
- const s = t.series[0];
38
- return R(s) && (e = s.temporalBinning?.nullPolicy), e;
39
- }, xt = (t, e) => {
40
- e?.series?.forEach((s) => {
41
- R(s) && (s.temporalBinning ??= {}, s.temporalBinning.size = t);
42
- }), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
43
- }, Bt = (t, e) => {
44
- e?.series?.forEach((s) => {
45
- R(s) && (s.temporalBinning ??= {}, s.temporalBinning.nullPolicy = t);
46
- }), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
47
- }, rs = (t, e) => {
48
- e.series?.forEach((s) => {
49
- R(s) && (s.temporalBinning ??= {}, s.temporalBinning.unit = t);
50
- }), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
51
- }, ls = (t, e) => {
52
- e.series?.forEach((s) => {
53
- R(s) && (s.temporalBinning ??= {}, s.temporalBinning.timeAggregationType = t);
54
- }), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
55
- }, ns = (t, e) => {
56
- e.series?.forEach((s) => {
57
- R(s) && (s.temporalBinning ??= {}, s.temporalBinning.trimIncompleteTimeInterval = t);
58
- }), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
59
- }, os = (t) => {
60
- xt(0, t);
37
+ const t = s.series[0];
38
+ return I(t) && (e = t.temporalBinning?.nullPolicy), e;
39
+ }, Pt = (s, e) => {
40
+ e?.series?.forEach((t) => {
41
+ I(t) && (t.temporalBinning ??= {}, t.temporalBinning.size = s);
42
+ }), D({ config: e, value: null, axisIndex: 1, isMax: !1 }), D({ config: e, value: null, axisIndex: 1, isMax: !0 });
43
+ }, Et = (s, e) => {
44
+ e?.series?.forEach((t) => {
45
+ I(t) && (t.temporalBinning ??= {}, t.temporalBinning.nullPolicy = s);
46
+ }), D({ config: e, value: null, axisIndex: 1, isMax: !1 }), D({ config: e, value: null, axisIndex: 1, isMax: !0 });
47
+ }, ks = (s, e) => {
48
+ e.series?.forEach((t) => {
49
+ I(t) && (t.temporalBinning ??= {}, t.temporalBinning.unit = s);
50
+ }), D({ config: e, value: null, axisIndex: 1, isMax: !1 }), D({ config: e, value: null, axisIndex: 1, isMax: !0 });
51
+ }, Rs = (s, e) => {
52
+ e.series?.forEach((t) => {
53
+ I(t) && (t.temporalBinning ??= {}, t.temporalBinning.timeAggregationType = s);
54
+ }), D({ config: e, value: null, axisIndex: 1, isMax: !1 }), D({ config: e, value: null, axisIndex: 1, isMax: !0 });
55
+ }, qs = (s, e) => {
56
+ e.series?.forEach((t) => {
57
+ I(t) && (t.temporalBinning ??= {}, t.temporalBinning.trimIncompleteTimeInterval = s);
58
+ }), D({ config: e, value: null, axisIndex: 1, isMax: !1 }), D({ config: e, value: null, axisIndex: 1, isMax: !0 });
59
+ }, Mt = (s) => {
60
+ Pt(0, s);
61
61
  };
62
- function us(t, e) {
63
- let s;
64
- return e !== void 0 && (s = { ...e }, s.legend !== void 0 && (s.legend.position = t)), s;
62
+ var $t = Object.defineProperty, Yt = Object.getOwnPropertyDescriptor, Wt = (s, e, t, a) => {
63
+ for (var i = Yt(e, t), r = s.length - 1, n; r >= 0; r--)
64
+ (n = s[r]) && (i = n(e, t, i) || i);
65
+ return i && $t(e, t, i), i;
66
+ };
67
+ const Ht = (s) => {
68
+ let e;
69
+ return W(s) ? e = s.outTimeZone : s?.series.forEach((t) => {
70
+ (t.type === T.BarSeries || t.type === T.RadarSeries || t.type === T.LineSeries) && t.temporalBinning && (e = t.temporalBinning.outTimeZone);
71
+ }), e || (e = s?.axes?.[0]?.valueFormat.type === T.DateAxisFormat ? s.axes[0].valueFormat.intlOptions.timeZone : void 0), e;
72
+ }, ke = (s, e) => {
73
+ const t = Ue(s);
74
+ W(e) ? s ? e.outTimeZone = t : delete e.outTimeZone : e?.series.forEach((a) => {
75
+ (a.type === T.BarSeries || a.type === T.RadarSeries || a.type === T.LineSeries) && (s ? (a.temporalBinning ??= {}, a.temporalBinning.outTimeZone = t) : a.temporalBinning && delete a.temporalBinning.outTimeZone);
76
+ }), e?.axes?.[0]?.valueFormat.type === T.DateAxisFormat && (s ? e.axes[0].valueFormat.intlOptions.timeZone = t : delete e.axes[0].valueFormat.intlOptions.timeZone);
77
+ };
78
+ class Xt extends Vt {
79
+ /**
80
+ * Gets the time zone for the chart.
81
+ */
82
+ get timeZone() {
83
+ return Ht(this._config);
84
+ }
85
+ set timeZone(e) {
86
+ ke(e, this._config), this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"));
87
+ }
88
+ }
89
+ Wt([
90
+ kt
91
+ ], Xt.prototype, "timeZone");
92
+ function ws(s, e) {
93
+ let t;
94
+ return e !== void 0 && (t = { ...e }, t.legend !== void 0 && (t.legend.position = s)), t;
65
95
  }
66
- function cs(t, e) {
67
- let s;
68
- return e !== void 0 && (s = { ...e }, s.legend !== void 0 && (s.legend.visible = t)), s;
96
+ function Ps(s, e) {
97
+ let t;
98
+ return e !== void 0 && (t = { ...e }, t.legend !== void 0 && (t.legend.visible = s)), t;
69
99
  }
70
- function ds(t, e) {
71
- let s;
72
- return e !== void 0 && (s = { ...e, rotated: t }), s;
100
+ function Es(s, e) {
101
+ let t;
102
+ return e !== void 0 && (t = { ...e, rotated: s }), t;
73
103
  }
74
- function Ct(t) {
104
+ function Ut(s) {
75
105
  let e;
76
- return t !== void 0 && (e = { ...t }, delete e.axes?.[0]?.minimum, delete e.axes?.[0]?.maximum, delete e.axes?.[1]?.minimum, delete e.axes?.[1]?.maximum), e;
106
+ return s !== void 0 && (e = { ...s }, delete e.axes?.[0]?.minimum, delete e.axes?.[0]?.maximum, delete e.axes?.[1]?.minimum, delete e.axes?.[1]?.maximum), e;
77
107
  }
78
- function ys(t, e) {
79
- return e != null || xe(t);
108
+ function Ms(s, e) {
109
+ return e != null || De(s);
80
110
  }
81
- async function ms(t) {
82
- const { config: e, layer: s, abortSignal: r } = t;
83
- let a = !1;
84
- return se(s) || mt(e) ? e && se(s) && (a = await Re({ config: e, layer: s, abortSignal: r })) : a = !0, a;
111
+ async function $s(s) {
112
+ const { config: e, layer: t, abortSignal: a } = s;
113
+ let i = !1;
114
+ return ce(t) || Ot(e) ? e && ce(t) && (i = await Ke({ config: e, layer: t, abortSignal: a })) : i = !0, i;
85
115
  }
86
- async function bt(t) {
116
+ async function jt(s) {
87
117
  const {
88
118
  queryObject: e,
89
- chartConfig: s,
90
- splitByField: r,
91
- errorStrings: a,
92
- abortSignal: i,
119
+ chartConfig: t,
120
+ splitByField: a,
121
+ errorStrings: i,
122
+ abortSignal: r,
93
123
  runtimeDataFilters: n,
94
124
  ignoreViewExtent: o,
95
- setTimeBinningInfoWhenNotProvided: c,
96
- returnFeaturesExtent: m,
97
- chartLimits: F
98
- } = t;
99
- let l = [], g;
100
- const d = ae(s), y = d.series[0], u = He({
125
+ setTimeBinningInfoWhenNotProvided: l,
126
+ returnFeaturesExtent: c,
127
+ chartLimits: p
128
+ } = s;
129
+ let g = [], d;
130
+ const m = G(t), y = m.series[0], u = rt({
101
131
  queryObject: e,
102
- chartConfig: d,
132
+ chartConfig: m,
103
133
  runtimeDataFilters: n,
104
134
  ignoreViewExtent: o
105
135
  });
106
- if (u.outStatistics?.[0]?.outStatisticFieldName && (u.outStatistics[0].outStatisticFieldName = lt.outStatistics.outStatisticFieldName), R(y) && je({
107
- xAxisValueFormatType: Ke(d),
108
- setTimeBinningInfoWhenNotProvided: c,
136
+ if (u.outStatistics?.[0]?.outStatisticFieldName && (u.outStatistics[0].outStatisticFieldName = Bt.outStatistics.outStatisticFieldName), I(y) && nt({
137
+ xAxisValueFormatType: ot(m),
138
+ setTimeBinningInfoWhenNotProvided: l,
109
139
  seriesConfig: y,
110
140
  queryObject: e
111
- }) && Ue(r, e)) {
112
- const { temporalBinning: p, x } = y, { uniqueQuery: C } = de({
113
- chartConfig: d,
141
+ }) && lt(a, e)) {
142
+ const { temporalBinning: S, x: F } = y, { uniqueQuery: x } = fe({
143
+ chartConfig: m,
114
144
  queryConfig: u,
115
145
  queryObject: e,
116
- setTimeBinningInfoWhenNotProvided: c,
117
- returnFeaturesExtent: m,
118
- chartLimits: F
119
- }), h = s.axes?.[0].valueFormat.type === v.DateAxisFormat ? s.axes[0].valueFormat.intlOptions.timeZone : void 0;
120
- g = await Qe({
146
+ setTimeBinningInfoWhenNotProvided: l,
147
+ returnFeaturesExtent: c,
148
+ chartLimits: p
149
+ }), f = t.axes?.[0].valueFormat.type === T.DateAxisFormat ? t.axes[0].valueFormat.intlOptions.timeZone : void 0;
150
+ d = await ut({
121
151
  queryObject: e,
122
- dateField: x,
123
- splitByField: r,
124
- queryConfig: C,
125
- axisTimeZone: h,
126
- temporalBinning: p,
127
- errorStrings: a,
128
- abortSignal: i
129
- }), l = Array.from(
152
+ dateField: F,
153
+ splitByField: a,
154
+ queryConfig: x,
155
+ axisTimeZone: f,
156
+ temporalBinning: S,
157
+ errorStrings: i,
158
+ abortSignal: r
159
+ }), g = Array.from(
130
160
  new Set(
131
- g.flatMap((f) => {
132
- const { stackedAttributes: k } = f;
133
- let T = [];
134
- return k && (T = k.map((S) => S[r]).filter((S) => S !== void 0)), T;
161
+ d.flatMap((A) => {
162
+ const { stackedAttributes: b } = A;
163
+ let B = [];
164
+ return b && (B = b.map((C) => C[a]).filter((C) => C !== void 0)), B;
135
165
  })
136
166
  ).values()
137
167
  );
138
168
  } else {
139
- const { uniqueQuery: p } = de({
140
- chartConfig: d,
169
+ const { uniqueQuery: S } = fe({
170
+ chartConfig: m,
141
171
  queryObject: e,
142
172
  queryConfig: u,
143
- setTimeBinningInfoWhenNotProvided: c,
144
- returnFeaturesExtent: m,
145
- chartLimits: F
146
- }), { elementCount: x } = await ze({
147
- chartConfig: d,
173
+ setTimeBinningInfoWhenNotProvided: l,
174
+ returnFeaturesExtent: c,
175
+ chartLimits: p
176
+ }), { elementCount: F } = await ct({
177
+ chartConfig: m,
148
178
  queryObject: e,
149
179
  queryConfig: u,
150
- behaviorAfterLimit: F?.behaviorAfterLimit,
151
- numberMaxOfFeaturesToFetch: p.num,
152
- abortSignal: i
180
+ behaviorAfterLimit: p?.behaviorAfterLimit,
181
+ numberMaxOfFeaturesToFetch: S.num,
182
+ abortSignal: r
153
183
  });
154
- g = await Ge({
184
+ d = await dt({
155
185
  queryObject: e,
156
- queryConfig: p,
157
- featureCount: x,
158
- errorStrings: a,
159
- abortSignal: i
160
- }), l = Array.from(
186
+ queryConfig: S,
187
+ featureCount: F,
188
+ returnStatisticsAggregatedIds: !0,
189
+ errorStrings: i,
190
+ abortSignal: r
191
+ }), g = Array.from(
161
192
  new Set(
162
- g.map((C) => C.attributes[r]).filter((C) => C !== void 0)
193
+ d.map((x) => x.attributes[a]).filter((x) => x !== void 0)
163
194
  ).values()
164
195
  );
165
196
  }
166
- return { allValues: l, preFetchedQueryResponse: g };
197
+ return { allValues: g, preFetchedQueryResponse: d };
167
198
  }
168
- function At(t, e) {
169
- const s = /* @__PURE__ */ new Map();
170
- return t.series.forEach((r) => {
171
- let a = le({
172
- where: r.query?.where,
199
+ function Kt(s, e) {
200
+ const t = /* @__PURE__ */ new Map();
201
+ return s.series.forEach((a) => {
202
+ let i = me({
203
+ where: a.query?.where,
173
204
  // normalize the value so it matches what we get from getAllValues()
174
205
  // Refer to https://devtopia.esri.com/WebGIS/arcgis-charts/issues/8127
175
206
  normalize: !0,
@@ -177,897 +208,981 @@ function At(t, e) {
177
208
  // Refer to https://devtopia.esri.com/WebGIS/arcgis-charts/issues/8078
178
209
  escape: !1
179
210
  });
180
- e && a !== null && (a = Number(a));
181
- const i = Be([r]);
182
- i !== void 0 && s.set(i, [
183
- ...s.get(i) ?? [],
184
- a
211
+ e && i !== null && (i = Number(i));
212
+ const r = Ve([a]);
213
+ r !== void 0 && t.set(r, [
214
+ ...t.get(r) ?? [],
215
+ i
185
216
  ]);
186
- }), s;
217
+ }), t;
187
218
  }
188
- function vt(t) {
189
- const { allValues: e, configUniqueValuesPerSeriesType: s, initialConfigWasEmpty: r } = t, a = /* @__PURE__ */ new Map();
190
- return Array.from(s.keys()).forEach((i) => {
191
- const n = s.get(i) ?? [];
219
+ function Zt(s) {
220
+ const { allValues: e, configUniqueValuesPerSeriesType: t, initialConfigWasEmpty: a } = s, i = /* @__PURE__ */ new Map();
221
+ return Array.from(t.keys()).forEach((r) => {
222
+ const n = t.get(r) ?? [];
192
223
  let o = [];
193
- r ? o = e : e.forEach((c) => {
194
- n.includes(c) || o.push(c);
195
- }), a.set(i, o);
196
- }), a;
224
+ a ? o = e : e.forEach((l) => {
225
+ n.includes(l) || o.push(l);
226
+ }), i.set(r, o);
227
+ }), i;
197
228
  }
198
- function It(t) {
199
- const { chartConfig: e, missingValue: s, splitByField: r, seriesTemplate: a } = t, i = JSON.parse(
229
+ function _t(s) {
230
+ const { chartConfig: e, missingValue: t, splitByField: a, seriesTemplate: i } = s, r = JSON.parse(
200
231
  JSON.stringify({
201
232
  ...e.series[0],
202
- ...a
233
+ ...i
203
234
  })
204
235
  );
205
- if (i.query) {
206
- if (i.id = s === null ? $.nullValue : `${s}`, i.name = `${s}`, i.query.outStatistics?.[0] !== void 0) {
207
- const o = i.id;
208
- i.query.outStatistics[0].outStatisticFieldName = o, "y" in i && (i.y = o);
236
+ if (r.query) {
237
+ if (t === null ? r.id = X.nullValue : t === "" ? r.id = X.emptyStringValue : r.id = `${t}`, r.name = `${t}`, r.query.outStatistics?.[0] !== void 0) {
238
+ const o = r.id;
239
+ r.query.outStatistics[0].outStatisticFieldName = o, "y" in r && (r.y = o);
209
240
  }
210
- const n = typeof s == "number" || s === null ? s : `'${s}'`;
211
- i.query.where = `${r}=${n}`;
241
+ const n = typeof t == "number" || t === null ? t : `'${t}'`;
242
+ r.query.where = `${a}=${n}`;
212
243
  }
213
- return i;
244
+ return r;
214
245
  }
215
- async function Lt(t) {
246
+ async function Qt(s) {
216
247
  const {
217
248
  updateSplitBySeries: e,
218
- config: s,
219
- queryObject: r,
220
- errorStrings: a,
221
- abortSignal: i,
249
+ config: t,
250
+ queryObject: a,
251
+ errorStrings: i,
252
+ abortSignal: r,
222
253
  runtimeDataFilters: n,
223
254
  ignoreViewExtent: o,
224
- setTimeBinningInfoWhenNotProvided: c,
225
- returnFeaturesExtent: m,
226
- chartLimits: F
227
- } = t, { seriesTemplate: l } = e ?? {};
228
- let g;
229
- if (r && !se(r) && e !== void 0 && s !== void 0 && (s.series.length > 0 || l !== void 0) && e.addMissingSeries) {
230
- const d = s.series.length === 0;
231
- s.series.length === 0 && l !== void 0 && s.series.push(l);
232
- const y = X(s.series);
233
- if (y === D.BoxPlotMonoFieldAndSplitBy || y === D.BoxPlotMultiFieldsAndSplitBy || y === D.BoxPlotMonoFieldAndCategoryAndSplitBy || y === D.BarAndLineSplitBy || y === D.BarAndLineSplitByNoAggregation) {
234
- const u = Me(s.series[0]?.query?.where), p = $e(r), x = Ye(u, p), C = x ? We(x) : !1, h = await bt({
235
- queryObject: r,
236
- chartConfig: s,
255
+ setTimeBinningInfoWhenNotProvided: l,
256
+ returnFeaturesExtent: c,
257
+ chartLimits: p
258
+ } = s, { seriesTemplate: g } = e ?? {};
259
+ let d;
260
+ if (a && !ce(a) && e !== void 0 && t !== void 0 && (t.series.length > 0 || g !== void 0) && e.addMissingSeries) {
261
+ const m = t.series.length === 0;
262
+ t.series.length === 0 && g !== void 0 && t.series.push(g);
263
+ const y = J(t.series);
264
+ if (y === q.BoxPlotMonoFieldAndSplitBy || y === q.BoxPlotMultiFieldsAndSplitBy || y === q.BoxPlotMonoFieldAndCategoryAndSplitBy || y === q.BarAndLineSplitBy || y === q.BarAndLineSplitByNoAggregation) {
265
+ const u = et(t.series[0]?.query?.where), S = tt(a), F = st(u, S), x = F ? it(F) : !1, f = await jt({
266
+ queryObject: a,
267
+ chartConfig: t,
237
268
  splitByField: u,
238
- abortSignal: i,
269
+ abortSignal: r,
239
270
  runtimeDataFilters: n,
240
271
  ignoreViewExtent: o,
241
- setTimeBinningInfoWhenNotProvided: c,
242
- returnFeaturesExtent: m,
243
- chartLimits: F,
244
- errorStrings: a
245
- }), { allValues: f } = h;
246
- if ({ preFetchedQueryResponse: g } = h, f.length > 0) {
247
- const k = At(s, C), T = vt({
248
- allValues: f,
249
- configUniqueValuesPerSeriesType: k,
250
- initialConfigWasEmpty: d
272
+ setTimeBinningInfoWhenNotProvided: l,
273
+ returnFeaturesExtent: c,
274
+ chartLimits: p,
275
+ errorStrings: i
276
+ }), { allValues: A } = f;
277
+ if ({ preFetchedQueryResponse: d } = f, A.length > 0) {
278
+ const b = Kt(t, x), B = Zt({
279
+ allValues: A,
280
+ configUniqueValuesPerSeriesType: b,
281
+ initialConfigWasEmpty: m
251
282
  });
252
- Array.from(T.keys()).forEach((S) => {
253
- (T.get(S) ?? []).forEach((L) => {
254
- s.series.push(
255
- It({
256
- chartConfig: s,
257
- seriesTemplate: l,
258
- missingValue: L,
283
+ Array.from(B.keys()).forEach((C) => {
284
+ (B.get(C) ?? []).forEach(($) => {
285
+ t.series.push(
286
+ _t({
287
+ chartConfig: t,
288
+ seriesTemplate: g,
289
+ missingValue: $,
259
290
  splitByField: u
260
291
  })
261
292
  );
262
- }), d && s.series.shift();
293
+ }), m && t.series.shift();
263
294
  });
264
295
  }
265
296
  }
266
297
  }
267
- return g;
298
+ return d;
268
299
  }
269
- function qt(t, e) {
270
- e && !xe(e) && (e = Ee({ chartConfig: e, queryObject: t }));
300
+ function zt(s, e) {
301
+ e && !De(e) && (e = Je({ chartConfig: e, queryObject: s }));
271
302
  }
272
- async function gs(t) {
303
+ async function Ys(s) {
273
304
  const {
274
305
  configToAlter: e,
275
- layer: s,
276
- addMissingSeries: r,
277
- updateSplitBySeries: a,
278
- chartContainer: i,
306
+ layer: t,
307
+ addMissingSeries: a,
308
+ updateSplitBySeries: i,
309
+ chartContainer: r,
279
310
  queryObject: n,
280
311
  abortSignal: o,
281
- runtimeDataFilters: c,
282
- ignoreViewExtent: m,
283
- setTimeBinningInfoWhenNotProvided: F,
284
- returnFeaturesExtent: l,
285
- chartLimits: g,
286
- errorStrings: d
287
- } = t;
288
- let y = e, u;
289
- return y && (qt(s, y), y = await rt(y, s, void 0, o), r && n && (u = await Lt({
290
- updateSplitBySeries: a,
291
- config: y,
312
+ runtimeDataFilters: l,
313
+ ignoreViewExtent: c,
314
+ setTimeBinningInfoWhenNotProvided: p,
315
+ returnFeaturesExtent: g,
316
+ chartLimits: d,
317
+ timeZone: m,
318
+ errorStrings: y
319
+ } = s;
320
+ let u = e, S;
321
+ return u && (zt(t, u), u = await Nt(u, t, void 0, o), a && n && (S = await Qt({
322
+ updateSplitBySeries: i,
323
+ config: u,
292
324
  queryObject: n,
293
- errorStrings: d,
325
+ errorStrings: y,
294
326
  abortSignal: o,
295
- runtimeDataFilters: c,
296
- ignoreViewExtent: m,
297
- setTimeBinningInfoWhenNotProvided: F,
298
- returnFeaturesExtent: l,
299
- chartLimits: g
300
- })), y = Ne(y, i)), { alteredConfig: y, preFetchedQueryResponse: u };
327
+ runtimeDataFilters: l,
328
+ ignoreViewExtent: c,
329
+ setTimeBinningInfoWhenNotProvided: p,
330
+ returnFeaturesExtent: g,
331
+ chartLimits: d
332
+ })), u = je(u, r), ke(m, u)), { alteredConfig: u, preFetchedQueryResponse: S };
301
333
  }
302
- function Vt(t, e) {
303
- let s = !1;
334
+ function Gt(s, e) {
335
+ let t = !1;
304
336
  if (e !== void 0) {
305
- const r = Xe({ key: _e.Average, splitBy: e });
306
- s = Number.isFinite(t[r]);
337
+ const a = at({ key: yt.Average, splitBy: e });
338
+ t = Number.isFinite(s[a]);
307
339
  }
308
- return s;
340
+ return t;
309
341
  }
310
- function ps(t) {
311
- const { data: e, config: s, showEmptySeries: r } = t, a = s.series.length, i = ae(s);
342
+ function Ws(s) {
343
+ const { data: e, config: t, showEmptySeries: a } = s, i = t.series.length, r = G(t);
312
344
  let n = !1;
313
- if (!r && a > 1 && e) {
314
- const o = ke(e), c = Be(s?.series), m = X(s?.series), F = /* @__PURE__ */ new Set();
315
- switch (c) {
316
- case v.ComboLineAndBarSeries:
317
- case v.BarSeries:
318
- case v.RadarSeries:
319
- case v.LineSeries: {
320
- i.series.forEach((g) => {
345
+ if (!a && i > 1 && e) {
346
+ const o = Ze(e), l = Ve(t?.series), c = J(t?.series), p = /* @__PURE__ */ new Set();
347
+ switch (l) {
348
+ case T.ComboLineAndBarSeries:
349
+ case T.BarSeries:
350
+ case T.RadarSeries:
351
+ case T.LineSeries: {
352
+ r.series.forEach((d) => {
321
353
  if (Array.isArray(o)) {
322
- let d = "";
323
- "y" in g && (d = Array.isArray(g.y) ? g.y[0] : g.y, m === D.BarAndLineSplitByNoAggregation && (d = `${d}_${le({ where: g.query?.where, keepSurroundingQuotes: !1, escape: !1 })}`), o.some(
324
- (u) => Pe({
354
+ let m = "";
355
+ "y" in d && (m = Array.isArray(d.y) ? d.y[0] : d.y, c === q.BarAndLineSplitByNoAggregation && (m = `${m}_${me({ where: d.query?.where, keepSurroundingQuotes: !1, escape: !1 })}`), o.some(
356
+ (u) => Ge({
325
357
  dataItem: u,
326
- x: g.x,
327
- y: d,
328
- aggregationType: s.series[0].query?.outStatistics?.[0]?.statisticType
358
+ x: d.x,
359
+ y: m,
360
+ aggregationType: t.series[0].query?.outStatistics?.[0]?.statisticType
329
361
  })
330
- ) && F.add(g));
362
+ ) && p.add(d));
331
363
  }
332
364
  });
333
365
  break;
334
366
  }
335
- case v.BoxPlotSeries: {
336
- if (Oe(s)) {
337
- const g = De(s);
338
- s.series.forEach((d) => {
367
+ case T.BoxPlotSeries: {
368
+ if (_e(t)) {
369
+ const d = Qe(t);
370
+ t.series.forEach((m) => {
339
371
  let y, u;
340
- d.type === v.BoxPlotSeries ? (y = e.dataItems, u = y?.some(
341
- (p) => we({
342
- dataItem: p,
343
- splitBy: d.query?.where,
344
- showOutliers: g
372
+ m.type === T.BoxPlotSeries ? (y = e.dataItems, u = y?.some(
373
+ (S) => ze({
374
+ dataItem: S,
375
+ splitBy: m.query?.where,
376
+ showOutliers: d
345
377
  })
346
- )) : d.type === v.LineSeries && (y = e.meanLines, u = y?.some(
347
- (p) => Vt(p, d.query?.where)
348
- )), u && F.add(d);
378
+ )) : m.type === T.LineSeries && (y = e.meanLines, u = y?.some(
379
+ (S) => Gt(S, m.query?.where)
380
+ )), u && p.add(m);
349
381
  });
350
382
  }
351
383
  break;
352
384
  }
353
385
  }
354
- const l = Array.from(F.values());
355
- n = l.length > 0 && l.length < a, n && (i.series = l);
386
+ const g = Array.from(p.values());
387
+ n = g.length > 0 && g.length < i, n && (r.series = g);
356
388
  }
357
- return { seriesFilteredOut: n, filteredConfig: i };
389
+ return { seriesFilteredOut: n, filteredConfig: r };
358
390
  }
359
- const fs = (t) => t.hideEmptyRowsAndColumns, Ss = (t, e) => {
360
- t.hideEmptyRowsAndColumns = e;
361
- }, Fs = (t, e) => {
362
- const s = t.series[0];
363
- s.heatRulesType = e;
364
- }, hs = (t) => t.series[0].heatRulesType, Ts = (t, e) => {
365
- const s = t.series[0];
366
- s.gradientRules = e;
367
- }, xs = (t) => t.series[0].gradientRules, Bs = (t) => {
368
- const { yField: e, config: s, layerInfo: r } = t, { layerFieldsInfo: a } = r, i = oe(1, s), n = Nt(s), o = z(s), c = s.series[0];
369
- if (typeof e == "string" && n !== e && c && (c.y = e, Ct(s), n === i || o)) {
370
- const m = w(a, e);
371
- E(s, 1, m);
391
+ const Hs = (s) => s.hideEmptyRowsAndColumns, Xs = (s, e) => {
392
+ s.hideEmptyRowsAndColumns = e;
393
+ }, Us = (s, e) => {
394
+ const t = s.series[0];
395
+ t.heatRulesType = e;
396
+ }, js = (s) => s.series[0].heatRulesType, Ks = (s, e) => {
397
+ const t = s.series[0];
398
+ t.gradientRules = e;
399
+ }, Zs = (s) => s.series[0].gradientRules, _s = (s) => {
400
+ const { yField: e, config: t, layerInfo: a, commonStrings: i } = s, { layerFieldsInfo: r } = a, n = se(1, t), o = Jt(t), l = te(t), c = t.series[0];
401
+ if (typeof e == "string" && o !== e && c) {
402
+ if (c.y = e, Ut(t), o === n || l) {
403
+ const p = R(r, e);
404
+ E(t, 1, p);
405
+ }
406
+ Re({ commonStrings: i, config: t, layerInfo: a });
372
407
  }
373
- }, Nt = (t) => t.series[0].y ?? "", Cs = (t) => {
374
- const { binning: e, config: s, commonStrings: r } = t, a = s.series[0];
375
- if (a.xTemporalBinning = e, e?.unit !== void 0 && e.unit in r.utilsStrings.heatChartCalendarDatePartsUnits) {
376
- const i = r.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
377
- E(s, 0, i);
408
+ }, Jt = (s) => s.series[0].y ?? "", Qs = (s) => {
409
+ const { binning: e, config: t, commonStrings: a } = s, i = t.series[0];
410
+ if (i.xTemporalBinning = e, e?.unit !== void 0 && e.unit in a.utilsStrings.heatChartCalendarDatePartsUnits) {
411
+ const r = a.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
412
+ E(t, 0, r);
378
413
  }
379
- }, bs = (t) => t.series[0].xTemporalBinning, As = (t) => {
380
- const { binning: e, config: s, commonStrings: r } = t, a = s.series[0];
381
- if (a.yTemporalBinning = e, e?.unit !== void 0 && e.unit in r.utilsStrings.heatChartCalendarDatePartsUnits) {
382
- const i = r.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
383
- E(s, 1, i);
414
+ z({ axisIndex: 0, commonStrings: a, config: t });
415
+ }, es = (s) => s.series[0].xTemporalBinning, zs = (s) => {
416
+ const { binning: e, config: t, commonStrings: a } = s, i = t.series[0];
417
+ if (i.yTemporalBinning = e, e?.unit !== void 0 && e.unit in a.utilsStrings.heatChartCalendarDatePartsUnits) {
418
+ const r = a.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
419
+ E(t, 1, r);
384
420
  }
385
- }, vs = (t) => t.series[0].yTemporalBinning, Rt = (t, e) => {
421
+ z({ axisIndex: 1, commonStrings: a, config: t });
422
+ }, ts = (s) => s.series[0].yTemporalBinning, ss = (s, e) => {
386
423
  e.orderOptions ??= {};
387
- const s = e.axes?.[0]?.valueFormat?.type === "category" ? V.Category : V.YValue, r = ie(e)[0], a = e.axes?.[1]?.valueFormat?.type === "category" ? V.Category : V.YValue, i = ie(e)[1], n = {
424
+ const t = e.axes?.[0]?.valueFormat?.type === "category" ? L.Category : L.YValue, a = de(e)[0], i = e.axes?.[1]?.valueFormat?.type === "category" ? L.Category : L.YValue, r = de(e)[1], n = {
388
425
  ...e.orderOptions.data ?? {},
389
- orderType: V.MultiAxes
426
+ orderType: L.MultiAxes
390
427
  };
391
- r === J.customSort && s === V.Category && (n.orderByX = [...t]), i === J.customSort && a === V.Category && (n.orderByY = [...t]), Object.keys(n).length > 1 && (e.orderOptions.data = n);
392
- }, Is = (t, e) => {
393
- const s = e.series[0];
394
- s.gridLine && (s.gridLine.width = t);
395
- }, Ls = (t) => t.series[0].gridLine?.width, qs = (t, e) => {
396
- const s = e.series[0], r = t?.length === 4 && t.every((a) => typeof a == "number");
397
- s.gridLine && r && (s.gridLine.color = t);
398
- }, Vs = (t) => t.series[0].gridLine?.color, Ns = (t, e) => {
399
- const s = e.legend;
400
- s && (s.position = t);
401
- }, Rs = (t) => t.legend?.position ?? st.Bottom, ks = (t) => t.series[0].query?.outStatistics?.[0]?.onStatisticField, Os = (t) => {
402
- const { field: e, config: s, layerInfo: r, commonStrings: a } = t, i = s.series[0].query?.outStatistics?.[0], n = _(s, r, a);
403
- i ? (i.onStatisticField = e, i.outStatisticFieldName = `${i.statisticType}_${e}`) : s.series[0].query = {
428
+ a === ne.customSort && t === L.Category && (n.orderByX = [...s]), r === ne.customSort && i === L.Category && (n.orderByY = [...s]), Object.keys(n).length > 1 && (e.orderOptions.data = n);
429
+ }, Gs = (s, e) => {
430
+ const t = e.series[0];
431
+ t.gridLine && (t.gridLine.width = s);
432
+ }, Js = (s) => s.series[0].gridLine?.width, ei = (s, e) => {
433
+ const t = e.series[0], a = s?.length === 4 && s.every((i) => typeof i == "number");
434
+ t.gridLine && a && (t.gridLine.color = s);
435
+ }, ti = (s) => s.series[0].gridLine?.color, si = (s, e) => {
436
+ const t = e.legend;
437
+ t && (t.position = s);
438
+ }, ii = (s) => s.legend?.position ?? Ft.Bottom, ai = (s) => s.series[0].query?.outStatistics?.[0]?.onStatisticField, ri = (s) => {
439
+ const { field: e, config: t, layerInfo: a, commonStrings: i } = s, r = t.series[0].query?.outStatistics?.[0], n = re(t, a, i);
440
+ r ? (r.onStatisticField = e, r.outStatisticFieldName = `${r.statisticType}_${e}`) : t.series[0].query = {
404
441
  outStatistics: [
405
442
  {
406
443
  onStatisticField: e,
407
- outStatisticFieldName: `${q.Count}_${e}`,
408
- statisticType: q.Count
444
+ outStatisticFieldName: `${v.Count}_${e}`,
445
+ statisticType: v.Count
409
446
  }
410
447
  ]
411
- }, n && s.title && (s.title.content.text = j(s, r, a));
412
- }, Ds = (t) => t.series[0].query?.outStatistics?.[0].statisticType ?? q.Count, ws = (t) => {
413
- const { aggregationType: e, config: s, layerInfo: r, commonStrings: a } = t, i = s.series[0]?.query?.outStatistics?.[0], n = _(s, r, a);
414
- i && e !== q.NoAggregation && (i.statisticType = e, i.outStatisticFieldName = `${e}_${i.onStatisticField}`), (e === q.Count || e === q.Sum) && kt(U.Zero, s), n && s.title && (s.title.content.text = j(s, r, a));
415
- }, Ps = (t) => t.nullPolicy, kt = (t, e) => {
416
- e.nullPolicy = t;
417
- }, Es = (t) => t.series[0].emptyCells, Ms = (t, e) => {
418
- e.series[0].emptyCells = t;
419
- }, $s = (t) => t.series[0].emptyCells?.text, Ys = (t, e) => {
420
- e.series[0].emptyCells ? e.series[0].emptyCells.text = t : e.series[0].emptyCells = { text: t };
421
- }, Ws = (t) => t.includeLeapDay, Xs = (t, e) => {
422
- e.includeLeapDay = t;
423
- }, Hs = (t) => t.series[0].emptyCells?.symbol, js = (t, e) => {
424
- e.series[0].emptyCells ? e.series[0].emptyCells.symbol = t : e.series[0].emptyCells = { symbol: t };
448
+ }, n && t.title && (t.title.content.text = j(t, a, i));
449
+ }, ni = (s) => s.series[0].query?.outStatistics?.[0].statisticType ?? v.Count, oi = (s) => {
450
+ const { aggregationType: e, config: t, layerInfo: a, commonStrings: i } = s, r = t.series[0]?.query?.outStatistics?.[0], n = re(t, a, i);
451
+ r && e !== v.NoAggregation && (r.statisticType = e, r.outStatisticFieldName = `${e}_${r.onStatisticField}`), (e === v.Count || e === v.Sum) && is(H.Zero, t), n && t.title && (t.title.content.text = j(t, a, i));
452
+ }, li = (s) => s.nullPolicy, is = (s, e) => {
453
+ e.nullPolicy = s;
454
+ }, ui = (s) => s.series[0].emptyCells, ci = (s, e) => {
455
+ e.series[0].emptyCells = s;
456
+ }, di = (s) => s.series[0].emptyCells?.text, yi = (s, e) => {
457
+ e.series[0].emptyCells ? e.series[0].emptyCells.text = s : e.series[0].emptyCells = { text: s };
458
+ }, mi = (s) => s.includeLeapDay, gi = (s, e) => {
459
+ e.includeLeapDay = s;
460
+ }, pi = (s) => s.series[0].emptyCells?.symbol, fi = (s, e) => {
461
+ e.series[0].emptyCells ? e.series[0].emptyCells.symbol = s : e.series[0].emptyCells = { symbol: s };
425
462
  };
426
- function Ks(t) {
427
- return t.viewType;
463
+ function Si(s) {
464
+ return s.viewType;
428
465
  }
429
- function Us(t, e) {
430
- Ze(e) || (e.viewType = t);
466
+ function Fi(s, e) {
467
+ mt(e) || (e.viewType = s);
431
468
  }
432
- function Qs(t) {
433
- return t.series[0].classBreaksRules?.breaksCount ?? $.classBreaks.breaksCount;
469
+ function xi(s) {
470
+ return s.series[0].classBreaksRules?.breaksCount ?? X.classBreaks.breaksCount;
434
471
  }
435
- function zs(t, e) {
436
- e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.breaksCount = t ?? $.classBreaks.breaksCount : e.series[0].classBreaksRules = {
437
- breaksCount: t ?? $.classBreaks.breaksCount
472
+ function hi(s, e) {
473
+ e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.breaksCount = s ?? X.classBreaks.breaksCount : e.series[0].classBreaksRules = {
474
+ breaksCount: s ?? X.classBreaks.breaksCount
438
475
  };
439
476
  }
440
- function Gs(t) {
441
- return t.series[0].classBreaksRules?.classificationMethod;
477
+ function Ti(s) {
478
+ return s.series[0].classBreaksRules?.classificationMethod;
442
479
  }
443
- function _s(t, e) {
444
- e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.classificationMethod = t : e.series[0].classBreaksRules = {
445
- classificationMethod: t
446
- }, e.series[0].classBreaksRules.breaksCount = e.series[0].classBreaksRules.breaksCount ?? $.classBreaks.breaksCount;
480
+ function Bi(s, e) {
481
+ e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.classificationMethod = s : e.series[0].classBreaksRules = {
482
+ classificationMethod: s
483
+ }, e.series[0].classBreaksRules.breaksCount = e.series[0].classBreaksRules.breaksCount ?? X.classBreaks.breaksCount;
447
484
  }
448
- function Zs(t, e) {
449
- e.firstDayOfWeek = t;
485
+ function Ci(s, e) {
486
+ e.firstDayOfWeek = s;
450
487
  }
451
- function Js(t) {
452
- return t.firstDayOfWeek;
488
+ function bi(s) {
489
+ return s.firstDayOfWeek;
453
490
  }
454
- function ei(t) {
455
- return t.series[0].classBreaksRules?.colorRampInfo?.name;
491
+ function Ai(s) {
492
+ return s.series[0].classBreaksRules?.colorRampInfo?.name;
456
493
  }
457
- function ti(t, e) {
494
+ function vi(s, e) {
458
495
  e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.colorRampInfo = {
459
496
  ...e.series[0].classBreaksRules.colorRampInfo,
460
- name: t
497
+ name: s
461
498
  } : e.series[0].classBreaksRules = {
462
499
  colorRampInfo: {
463
- name: t,
500
+ name: s,
464
501
  flipped: !1
465
502
  }
466
503
  };
467
504
  }
468
- function si(t) {
469
- return t.series[0].classBreaksRules?.colorRampInfo?.flipped ?? !1;
505
+ function Ii(s) {
506
+ return s.series[0].classBreaksRules?.colorRampInfo?.flipped ?? !1;
470
507
  }
471
- function ii(t, e) {
508
+ function Li(s, e) {
472
509
  e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.colorRampInfo = {
473
510
  ...e.series[0].classBreaksRules.colorRampInfo,
474
- flipped: t
511
+ flipped: s
475
512
  } : e.series[0].classBreaksRules = {
476
513
  colorRampInfo: {
477
- flipped: t
514
+ flipped: s
478
515
  }
479
516
  };
480
517
  }
481
- function Y(t) {
482
- const { seriesIndex: e, xAxisField: s, aggregationType: r, config: a, layerInfo: i, commonStrings: n } = t, o = H(i?.layer).idField;
483
- let c;
484
- const m = a.series[e ?? 0];
485
- let F = !1, l = !1, g = !1;
486
- if (m === void 0) {
487
- const u = a.series;
488
- F = u.slice(0, e).every((p) => b(p)), l = u.slice(0, e).every((p) => A(p)), g = u.slice(0, e).every((p) => Se(p));
518
+ const as = [
519
+ k.DayOfMonth,
520
+ k.MonthOfYear
521
+ ], Te = (s) => {
522
+ let e;
523
+ return Z(s) ? e = ue() : (Y(s) || _(s)) && (e = Q()), e;
524
+ }, Be = (s) => Y(s) || _(s), Ce = (s) => {
525
+ const { axisIndex: e, commonStrings: t, config: a, valueFormat: i } = s, r = a.axes?.[e]?.valueFormat;
526
+ i !== void 0 && r?.type !== i.type && Ie({ config: a, commonStrings: t, valueFormat: i, axisIndex: e });
527
+ }, rs = (s, e) => {
528
+ let t;
529
+ return e === 0 ? t = s.series[0]?.xTemporalBinning : e === 1 && (t = s.series[0]?.yTemporalBinning), t;
530
+ }, be = (s, e) => s.utilsStrings.heatChartCalendarDatePartsUnits[e] ?? "", Ae = (s, e) => {
531
+ let t = as[s];
532
+ return s === 0 && e?.unit === k.DayOfWeek ? t = k.HourOfDay : s === 1 && e?.unit === k.HourOfDay && (t = k.DayOfWeek), {
533
+ type: T.CalendarDateParts,
534
+ unit: t
535
+ };
536
+ }, ns = (s) => {
537
+ let e = {};
538
+ switch (s.unit) {
539
+ case k.DayOfMonth:
540
+ e = { day: "2-digit" };
541
+ break;
542
+ case k.DayOfWeek:
543
+ e = { weekday: "short" };
544
+ break;
545
+ case k.HourOfDay:
546
+ e = { hour: "numeric", hour12: !1 };
547
+ break;
548
+ case k.MonthOfYear:
549
+ e = { month: "short" };
550
+ break;
551
+ default:
552
+ e = Q().intlOptions;
553
+ break;
554
+ }
555
+ return {
556
+ type: T.DateAxisFormat,
557
+ intlOptions: e
558
+ };
559
+ }, ve = (s) => {
560
+ const { axisIndex: e, binning: t, commonStrings: a, config: i, fieldName: r, layerInfo: n } = s, o = i.series[0], l = se(e, i), c = R(n.layerFieldsInfo, r);
561
+ e === 0 ? o.xTemporalBinning = t : e === 1 && (o.yTemporalBinning = t), t !== void 0 && (l === "" || l === c || l === be(a, t.unit) || l === a.xAxis) && E(i, e, be(a, t.unit));
562
+ }, z = (s) => {
563
+ const { axisIndex: e, commonStrings: t, config: a } = s, i = rs(a, e), r = i ? ns(i) : void 0;
564
+ Ie({ config: a, commonStrings: t, valueFormat: r, axisIndex: e });
565
+ }, Re = (s) => {
566
+ const { commonStrings: e, config: t, layerInfo: a } = s, i = t.series[0]?.x ?? "", r = t.series[0]?.y ?? "", n = Se(a.layerFieldsInfo, i), o = Se(a.layerFieldsInfo, r), l = Te(n), c = Te(o), p = Be(n) && Be(o), g = Z(n) && Z(o);
567
+ if (Ce({ axisIndex: 0, commonStrings: e, config: t, valueFormat: l }), Ce({ axisIndex: 1, commonStrings: e, config: t, valueFormat: c }), p) {
568
+ const d = es(t) === void 0, m = ts(t) === void 0;
569
+ d && (ve({
570
+ axisIndex: 0,
571
+ binning: Ae(0, t.series[0].yTemporalBinning),
572
+ commonStrings: e,
573
+ config: t,
574
+ fieldName: i,
575
+ layerInfo: a
576
+ }), z({
577
+ axisIndex: 0,
578
+ commonStrings: e,
579
+ config: t
580
+ })), m && (ve({
581
+ axisIndex: 1,
582
+ binning: Ae(1, t.series[0].xTemporalBinning),
583
+ commonStrings: e,
584
+ config: t,
585
+ fieldName: r,
586
+ layerInfo: a
587
+ }), z({
588
+ axisIndex: 1,
589
+ commonStrings: e,
590
+ config: t
591
+ }));
592
+ }
593
+ g && (t.series[0].xTemporalBinning = void 0, t.series[0].yTemporalBinning = void 0);
594
+ };
595
+ function os(s) {
596
+ const e = {};
597
+ return s.series.forEach((t) => {
598
+ Dt(t) && "nullCategory" in t && t.nullCategory !== void 0 && (e.text ??= t.nullCategory.text, t.type === T.BarSeries ? e.fillSymbol ??= t.nullCategory.fillSymbol : e.markerSymbol ??= t.nullCategory.markerSymbol);
599
+ }), e.text || e.fillSymbol || e.markerSymbol ? e : void 0;
600
+ }
601
+ function ie(s) {
602
+ const { seriesIndex: e, xAxisField: t, aggregationType: a, config: i, layerInfo: r, commonStrings: n } = s, o = U(r?.layer).idField;
603
+ let l;
604
+ const c = i.series[e ?? 0];
605
+ let p = !1, g = !1, d = !1;
606
+ if (c === void 0) {
607
+ const B = i.series;
608
+ p = B.slice(0, e).every((C) => O(C)), g = B.slice(0, e).every((C) => V(C)), d = B.slice(0, e).every((C) => Fe(C));
489
609
  } else
490
- F = b(m), l = A(m), g = Se(m);
491
- F ? c = ot({
610
+ p = O(c), g = V(c), d = Fe(c);
611
+ p ? l = bt({
492
612
  commonStrings: n,
493
613
  seriesIndex: e,
494
614
  objectIDField: o
495
- }) : l ? c = ut({
615
+ }) : g ? l = At({
496
616
  commonStrings: n,
497
617
  seriesIndex: e,
498
618
  objectIDField: o
499
- }) : g ? c = ct(n, o) : c = dt({
619
+ }) : d ? l = vt(n, o) : l = It({
500
620
  seriesIndex: e,
501
621
  objectIDField: o,
502
622
  commonStrings: n
503
623
  });
504
- const d = a.series[0]?.dataLabels, y = {
505
- ...c,
506
- x: s,
624
+ const m = i.series[0]?.dataLabels, y = "nullCategory" in i.series[0] ? os(i) : void 0, u = "binTemporalData" in i.series[0] ? i.series[0].binTemporalData : void 0, S = "classBreakRules" in i.series[0] ? i.series[0].classBreakRules : void 0, F = "xTemporalBinning" in i.series[0] ? i.series[0].xTemporalBinning : void 0, x = "yTemporalBinning" in i.series[0] ? i.series[0].yTemporalBinning : void 0, f = "emptyCells" in i.series[0] ? i.series[0].emptyCells : void 0, A = i.series[0].query && "fetchNullValues" in i.series[0].query ? i.series[0].query?.fetchNullValues : void 0, b = {
625
+ ...l,
626
+ x: t,
507
627
  y: "",
508
628
  dataLabels: {
509
- ...c.dataLabels,
510
- type: c.dataLabels?.type ?? v.Text,
511
- content: { ...c.dataLabels?.content, ...d?.content, type: Ft.TS },
512
- visible: d?.visible ?? !1
513
- }
629
+ ...l.dataLabels,
630
+ type: l.dataLabels?.type ?? T.Text,
631
+ content: { ...l.dataLabels?.content, ...m?.content, type: Tt.TS },
632
+ visible: m?.visible ?? !1
633
+ },
634
+ ...y !== void 0 ? { nullCategory: y } : {},
635
+ ...u !== void 0 ? { binTemporalData: u } : {},
636
+ ...S !== void 0 ? { classBreakRules: S } : {},
637
+ ...F !== void 0 ? { xTemporalBinning: F } : {},
638
+ ...x !== void 0 ? { yTemporalBinning: x } : {},
639
+ ...f !== void 0 ? { emptyCells: f } : {}
514
640
  };
515
- if (y.query = {
516
- groupByFieldsForStatistics: [s]
517
- }, r !== q.NoAggregation && o !== void 0) {
518
- const u = `${r}_${o}_0`.toUpperCase();
519
- y.y = u, y.query.outStatistics = [
641
+ if (b.query = {
642
+ groupByFieldsForStatistics: [t],
643
+ ...A !== void 0 ? { fetchNullValues: A } : {}
644
+ }, a !== v.NoAggregation && o !== void 0) {
645
+ const B = `${a}_${o}_0`.toUpperCase();
646
+ b.y = B, b.query.outStatistics = [
520
647
  {
521
- statisticType: r,
648
+ statisticType: a,
522
649
  onStatisticField: o,
523
- outStatisticFieldName: u
650
+ outStatisticFieldName: B
524
651
  }
525
652
  ];
526
653
  }
527
- if (R(a.series[0]) && R(y)) {
528
- let u;
529
- if (a?.series?.[0] !== void 0 && (u = X(a.series)), u !== D.BarAndLineNoAggregation && u !== D.BarAndLineSplitByNoAggregation) {
530
- let p = Tt(a);
531
- p === te.Quarter && (p = te.Month), y.temporalBinning = {
532
- ...a.series[0]?.temporalBinning,
533
- unit: p
534
- };
535
- }
654
+ if (I(i.series[0]) && I(b)) {
655
+ let B = wt(i);
656
+ B === le.Quarter && (B = le.Month), b.temporalBinning = {
657
+ ...i.series[0]?.temporalBinning,
658
+ unit: B
659
+ };
536
660
  }
537
- return ae(y);
661
+ return G(b);
538
662
  }
539
- function j(t, e, s) {
540
- const { layerFieldsInfo: r } = e, { idField: a, isTraditionalTypeOID: i } = H(e.layer), n = M(t), o = G(t), c = be(t), m = ue(t), F = i && (o.length === 0 || o.includes(a)), l = nt(c, s), g = F ? "" : o.map((h) => w(r ?? [], h)).join(", "), d = w(r ?? [], n), y = w(r ?? [], m), u = t.series.some((h) => O(h)), p = u ? "category" : "xAxisField", x = d;
541
- let C = "";
542
- if (Te({
663
+ function j(s, e, t) {
664
+ const { layerFieldsInfo: a } = e, { idField: i, isTraditionalTypeOID: r } = U(e.layer), n = M(s), o = K(s), l = we(s), c = ae(s), p = r && (o.length === 0 || o.includes(i)), g = Ct(l, t), d = p ? "" : o.map((f) => R(a ?? [], f)).join(", "), m = R(a ?? [], n), y = R(a ?? [], c), u = s.series.some((f) => P(f)), S = u ? "category" : "xAxisField", F = m;
665
+ let x = "";
666
+ if (ge({
543
667
  fieldName: n,
544
668
  numericFields: o,
545
- fieldList: r
669
+ fieldList: a
546
670
  }))
547
- C = P(s.titleLabels.aggrTypeOfAggrFields, {
548
- aggregationType: l,
549
- aggregationFields: g
671
+ x = w(t.titleLabels.aggrTypeOfAggrFields, {
672
+ aggregationType: g,
673
+ aggregationFields: d
550
674
  });
551
- else if (c === q.NoAggregation) {
552
- const h = F ? a : g;
553
- if (m === "") {
554
- const f = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
555
- C = P(s.titleLabels[f], {
556
- aggregationType: h,
557
- [p]: x
675
+ else if (l === v.NoAggregation) {
676
+ const f = p ? i : d;
677
+ if (c === "") {
678
+ const A = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
679
+ x = w(t.titleLabels[A], {
680
+ aggregationType: f,
681
+ [S]: F
558
682
  });
559
683
  } else {
560
- const f = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
561
- C = P(s.titleLabels[f], {
562
- aggregationType: h,
563
- [p]: x,
684
+ const A = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
685
+ x = w(t.titleLabels[A], {
686
+ aggregationType: f,
687
+ [S]: F,
564
688
  splitByField: y
565
689
  });
566
690
  }
567
- } else if (c === q.Count)
568
- if (m === "") {
569
- const h = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
570
- C = P(s.titleLabels[h], {
571
- aggregationType: l,
572
- [p]: x
691
+ } else if (l === v.Count)
692
+ if (c === "") {
693
+ const f = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
694
+ x = w(t.titleLabels[f], {
695
+ aggregationType: g,
696
+ [S]: F
573
697
  });
574
698
  } else {
575
- const h = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
576
- C = P(s.titleLabels[h], {
577
- aggregationType: l,
578
- [p]: x,
699
+ const f = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
700
+ x = w(t.titleLabels[f], {
701
+ aggregationType: g,
702
+ [S]: F,
579
703
  splitByField: y
580
704
  });
581
705
  }
582
- else if (m !== "") {
583
- const h = u ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
584
- C = P(s.titleLabels[h], {
585
- aggregationType: l,
586
- aggregationField: g,
587
- [p]: x,
706
+ else if (c !== "") {
707
+ const f = u ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
708
+ x = w(t.titleLabels[f], {
709
+ aggregationType: g,
710
+ aggregationField: d,
711
+ [S]: F,
588
712
  splitByField: y
589
713
  });
590
714
  } else if (o.length > 0) {
591
- const h = u ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
592
- C = P(s.titleLabels[h], {
593
- aggregationType: l,
594
- aggregationFields: g,
595
- [p]: x
715
+ const f = u ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
716
+ x = w(t.titleLabels[f], {
717
+ aggregationType: g,
718
+ aggregationFields: d,
719
+ [S]: F
596
720
  });
597
721
  }
598
- return C;
722
+ return x;
599
723
  }
600
- const Ce = (t) => le({
601
- where: t.query?.where,
724
+ const qe = (s) => me({
725
+ where: s.query?.where,
602
726
  normalize: !1,
603
727
  escape: !1
604
- }) ?? "", be = (t) => t?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? q.NoAggregation, ue = Le(
605
- (t) => {
606
- const e = t?.series?.[0]?.query?.where?.split("=")[0].trim() ?? "";
607
- return Je(t?.series?.[0]?.query?.where) ? "" : e;
728
+ }) ?? "", we = (s) => s?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? v.NoAggregation, ae = We(
729
+ (s) => {
730
+ const e = s?.series?.[0]?.query?.where?.split("=")[0].trim() ?? "";
731
+ return gt(s?.series?.[0]?.query?.where) ? "" : e;
608
732
  },
609
- (t) => t?.series?.[0]?.query?.where
610
- ), G = (t) => {
733
+ (s) => s?.series?.[0]?.query?.where
734
+ ), K = (s) => {
611
735
  let e = [];
612
- if (ue(t) === "")
613
- e = t?.series.map((s) => {
614
- const r = s.query?.outStatistics?.map((a) => a.onStatisticField) ?? [];
615
- return r?.length > 0 ? r : s.y;
736
+ if (ae(s) === "")
737
+ e = s?.series.map((t) => {
738
+ const a = t.query?.outStatistics?.map((i) => i.onStatisticField) ?? [];
739
+ return a?.length > 0 ? a : t.y;
616
740
  }).flat() ?? [];
617
741
  else {
618
- const s = t?.series?.[0], r = s?.query?.outStatistics?.[0]?.onStatisticField ?? [s?.y].flat()[0];
619
- e = r !== void 0 ? [r] : [];
742
+ const t = s?.series?.[0], a = t?.query?.outStatistics?.[0]?.onStatisticField ?? [t?.y].flat()[0];
743
+ e = a !== void 0 ? [a] : [];
620
744
  }
621
- return e.filter((s) => s !== "");
745
+ return e.filter((t) => t !== "");
622
746
  };
623
- function Ot(t) {
624
- const { numericFields: e, aggregationType: s, config: r, layerInfo: a } = t;
625
- let i = !1;
626
- s === q.Count ? i = !0 : s === q.NoAggregation && (i = e.every((c) => {
627
- const m = a.layerFieldsInfo.find((F) => F.name === c);
628
- return m !== void 0 ? me(m) : !1;
629
- })), ce(r, 1, i);
630
- const n = r.series.some((c) => b(c)), o = r.series.some((c) => A(c));
747
+ function Pe(s) {
748
+ const { splitByField: e, numericFields: t, layer: a, seriesIndex: i } = s, r = U(a).idField ?? "";
749
+ return e === "" ? t[i] ?? r : t[0] ?? r;
750
+ }
751
+ function ls(s) {
752
+ const { numericFields: e, aggregationType: t, config: a, layerInfo: i } = s;
753
+ let r = !1;
754
+ t === v.Count ? r = !0 : t === v.NoAggregation && (r = e.every((l) => {
755
+ const c = i.layerFieldsInfo.find((p) => p.name === l);
756
+ return c !== void 0 ? xe(c) : !1;
757
+ })), pe(a, 1, r);
758
+ const n = a.series.some((l) => O(l)), o = a.series.some((l) => V(l));
631
759
  if (n || o) {
632
- const c = M(r), m = a.layerFieldsInfo.find((l) => l.name === c), F = m !== void 0 && me(m);
633
- ce(r, 0, F);
760
+ const l = M(a), c = i.layerFieldsInfo.find((g) => g.name === l), p = c !== void 0 && xe(c);
761
+ pe(a, 0, p);
634
762
  }
635
763
  }
636
- const ie = (t) => {
764
+ const de = (s) => {
637
765
  let e;
638
- if (ne(t)) {
639
- const s = t.orderOptions?.data?.orderByX ?? [""], r = t.orderOptions?.data?.orderByY ?? [""], a = t.axes?.[0]?.valueFormat?.type === "category" ? V.Category : V.YValue, i = t.axes?.[1]?.valueFormat?.type === "category" ? V.Category : V.YValue;
640
- e = [ge(s, a), ge(r, i)];
766
+ if (W(s)) {
767
+ const t = s.orderOptions?.data?.orderByX ?? [""], a = s.orderOptions?.data?.orderByY ?? [""], i = s.axes?.[0]?.valueFormat?.type === "category" ? L.Category : L.YValue, r = s.axes?.[1]?.valueFormat?.type === "category" ? L.Category : L.YValue;
768
+ e = [he(t, i), he(a, r)];
641
769
  } else {
642
- const s = t.orderOptions?.data?.orderType ?? V.Category, r = t.orderOptions?.data && "orderBy" in t.orderOptions.data ? t.orderOptions.data.orderBy : it.Ascending;
643
- e = [tt(r, s)];
770
+ const t = s.orderOptions?.data?.orderType ?? L.Category, a = s.orderOptions?.data && "orderBy" in s.orderOptions.data ? s.orderOptions.data.orderBy : xt.Ascending;
771
+ e = [St(a, t)];
644
772
  }
645
773
  return e;
646
774
  };
647
- function Dt(t) {
648
- const { xAxisField: e, numericFields: s, aggregationType: r, config: a, layerInfo: i, commonStrings: n } = t, { layerFieldsInfo: o } = i;
649
- let c = !1;
650
- const m = Y({
651
- config: a,
775
+ function us(s) {
776
+ const { xAxisField: e, numericFields: t, aggregationType: a, config: i, layerInfo: r, commonStrings: n } = s, { layerFieldsInfo: o } = r, l = ie({
777
+ config: i,
652
778
  xAxisField: e,
653
- aggregationType: r,
654
- layerInfo: i,
779
+ aggregationType: a,
780
+ layerInfo: r,
655
781
  seriesIndex: 0,
656
782
  commonStrings: n
657
- }), F = Q({
658
- config: a,
783
+ }), c = ee({
784
+ config: i,
659
785
  xAxisField: e,
660
- numericFields: s,
661
- aggregationType: r,
662
- layer: i.layer,
786
+ numericFields: t,
787
+ aggregationType: a,
788
+ layer: r.layer,
789
+ fieldList: o
790
+ }).name, p = M(i), g = K(i), d = ge({
791
+ fieldName: p,
792
+ numericFields: g,
663
793
  fieldList: o
664
- }).name, l = {
665
- ...m,
666
- id: `series_${Date.now()}`,
667
- name: n.axisLabels.values,
668
- x: ee,
669
- y: F
670
- }, g = [];
671
- for (const y of s)
672
- g.push({
673
- onStatisticField: y,
674
- outStatisticFieldName: `${y}_0`.toUpperCase(),
675
- statisticType: r
794
+ }) ? i.series[0] : void 0, m = `series_${Date.now()}`, y = d?.id ?? m, u = d?.name ?? n.axisLabels.values, F = {
795
+ ...d ?? l,
796
+ id: y,
797
+ name: u,
798
+ x: oe,
799
+ y: c
800
+ }, x = [];
801
+ for (const f of t)
802
+ x.push({
803
+ onStatisticField: f,
804
+ outStatisticFieldName: `${f}_0`.toUpperCase(),
805
+ statisticType: a
676
806
  });
677
- l.query = { outStatistics: g };
678
- const d = a.series[0];
679
- return d !== void 0 && (l.id = d.id, (b(l) && b(d) || A(l) && A(d)) && W(l, d), a.colorMatch || (O(d) && O(l) ? l.fillSymbol = d.fillSymbol : (b(l) && b(d) || A(l) && A(d)) && (l.lineSymbol = d.lineSymbol, l.markerSymbol = d.markerSymbol), c = !0), l.id = d.id, d.name !== m.name && (l.name = d.name)), a.series.length === 1 && ((b(l) || A(l)) && W(l, a.series[0]), a.colorMatch || (O(l) ? l.fillSymbol = a.series[0].fillSymbol : (b(l) || A(l)) && (l.lineSymbol = a.series[0].lineSymbol, l.markerSymbol = a.series[0].markerSymbol), c = !0)), a.colorMatch = !c, [l];
807
+ return F.query = { outStatistics: x }, i.series.length === 1 && ((O(F) || V(F)) && Me(F, i.series[0]), P(F) ? F.fillSymbol = i.series[0].fillSymbol : (O(F) || V(F)) && (F.lineSymbol = i.series[0].lineSymbol, F.markerSymbol = i.series[0].markerSymbol)), [F];
680
808
  }
681
- function Ae(t) {
682
- const { xAxisField: e, numericFields: s, aggregationType: r, config: a, layerInfo: i, commonStrings: n } = t, { layerFieldsInfo: o } = i, c = H(i.layer).idField, m = [];
683
- let F = !1;
684
- for (let u = 0; u < s.length; u += 1) {
685
- const p = Y({
686
- config: a,
809
+ function Ee(s) {
810
+ const { xAxisField: e, numericFields: t, aggregationType: a, config: i, layerInfo: r, commonStrings: n } = s, { layerFieldsInfo: o } = r, l = U(r.layer).idField, c = [];
811
+ for (let y = 0; y < t.length; y += 1) {
812
+ const u = ie({
813
+ config: i,
687
814
  xAxisField: e,
688
- aggregationType: r,
689
- layerInfo: i,
690
- seriesIndex: u,
815
+ aggregationType: a,
816
+ layerInfo: r,
817
+ seriesIndex: y,
691
818
  commonStrings: n
692
- }), x = a.series[u]?.y, C = typeof x == "string" && x.trim() !== "" ? x : Q({
693
- config: a,
819
+ }), S = i.series[y]?.y, F = typeof S == "string" && S.trim() !== "" && !o.find((N) => N.name === S) ? S : ee({
820
+ config: i,
694
821
  xAxisField: e,
695
- numericFields: s,
696
- aggregationType: r,
697
- layer: i.layer,
698
- numericFieldIndex: u,
822
+ numericFields: t,
823
+ aggregationType: a,
824
+ layer: r.layer,
825
+ numericFieldIndex: y,
699
826
  fieldList: o
700
- }).name, h = s[u];
701
- let f = {
702
- ...p,
703
- query: {
704
- ...p.query
705
- }
827
+ }).name, x = t[y], f = i.series.find(
828
+ (N) => N.query?.where === void 0 && (N.query?.outStatistics?.length === 1 && N.query?.outStatistics?.[0]?.onStatisticField === x || N.query?.outStatistics === void 0 && (N.y === x || N.x === x))
829
+ ), A = x !== l ? x : u.id, b = f?.id ?? A, B = f?.name ?? R(o, x) ?? b, C = f ?? u, h = {
830
+ ...C,
831
+ id: b,
832
+ name: B
706
833
  };
707
- s && h !== c && (f = {
708
- ...f,
709
- id: h,
710
- name: w(o, h)
711
- });
712
- let k = h;
713
- f.query !== void 0 && (r !== q.NoAggregation ? (k = C, f.query.outStatistics = [
834
+ let $ = x;
835
+ h.query !== void 0 && (a !== v.NoAggregation ? ($ = h.type === T.HeatSeries && f?.type === T.HeatSeries ? x : F, h.query.outStatistics = [
714
836
  {
715
- ...p.query?.outStatistics?.[0] ?? {},
716
- onStatisticField: h,
717
- outStatisticFieldName: C,
718
- statisticType: r
837
+ ...C.query?.outStatistics?.[0] ?? {},
838
+ onStatisticField: x,
839
+ outStatisticFieldName: F,
840
+ statisticType: a
719
841
  }
720
- ]) : delete f.query.outStatistics), f.y = k;
721
- const T = a.series.find(
722
- (S) => S.query?.outStatistics?.[0]?.onStatisticField === h && S.query.where === void 0 || S.query?.outStatistics === void 0 && (S.y === h || S.x === h)
723
- );
724
- if (T !== void 0 && typeof T.y == "string" && T.y.trim() !== "") {
725
- (b(f) && b(T) || A(f) && A(T)) && W(f, T), a.colorMatch || (O(f) && O(T) ? f.fillSymbol = T.fillSymbol : (b(f) && b(T) || A(f) && A(T)) && (f.lineSymbol = T.lineSymbol, f.markerSymbol = T.markerSymbol), F = !0);
726
- const S = Y({
727
- config: a,
728
- xAxisField: e,
729
- aggregationType: r,
730
- layerInfo: i,
731
- seriesIndex: u,
732
- commonStrings: n
733
- });
734
- f.id = T.id, T.id !== S.id && T.name !== S.name && (f.id = T.id, f.name = T.name), f.assignToSecondValueAxis = T.assignToSecondValueAxis, f.type === v.HeatSeries && T.type === v.HeatSeries && (f.y = T.y, f.heatRulesType = T.heatRulesType);
735
- }
736
- m.push(f);
842
+ ]) : delete h.query.outStatistics), h.y = $, c.push(h);
737
843
  }
738
- const l = m.filter((u) => O(u)), g = m.filter(
739
- (u) => b(u) || A(u)
740
- ), d = a.series.filter((u) => O(u)), y = a.series.filter(
741
- (u) => b(u) || A(u)
844
+ const p = c.filter((y) => P(y)), g = c.filter(
845
+ (y) => O(y) || V(y)
846
+ ), d = i.series.filter((y) => P(y)), m = i.series.filter(
847
+ (y) => O(y) || V(y)
742
848
  );
743
- return d.length === 1 && l.length === 1 && !a.colorMatch && (O(d[0]) && O(l[0]) && (l[0].fillSymbol = d[0].fillSymbol), F = !0), y.length === 1 && g.length === 1 && ((b(y[0]) && b(g[0]) || A(y[0]) && A(g[0])) && W(g[0], y[0]), a.colorMatch || ((b(y[0]) && b(g[0]) || A(y[0]) && A(g[0])) && (g[0].lineSymbol = y[0].lineSymbol, g[0].markerSymbol = y[0].markerSymbol), F = !0)), a.colorMatch = !F, m;
849
+ return d.length === 1 && p.length === 1 && P(d[0]) && P(p[0]) && (p[0].fillSymbol = d[0].fillSymbol), m.length === 1 && g.length === 1 && ((O(m[0]) && O(g[0]) || V(m[0]) && V(g[0])) && Me(g[0], m[0]), (O(m[0]) && O(g[0]) || V(m[0]) && V(g[0])) && (g[0].lineSymbol = m[0].lineSymbol, g[0].markerSymbol = m[0].markerSymbol)), c;
744
850
  }
745
- function ai(t) {
746
- const { aggregationType: e, config: s, layerInfo: r, commonStrings: a } = t, { layerFieldsInfo: i, layer: n } = r, o = M(s), c = G(s), m = _(s, r, a), F = ve(s, r, a);
747
- if (s.series.forEach((l, g) => {
748
- const d = Q({
749
- config: s,
851
+ function Di(s) {
852
+ const { aggregationType: e, config: t, layerInfo: a, commonStrings: i } = s, { layerFieldsInfo: r, layer: n } = a, o = M(t), l = K(t), c = ae(t), p = re(t, a, i), g = $e(t, a, i);
853
+ if (t.series.forEach((d, m) => {
854
+ const y = ee({
855
+ config: t,
750
856
  xAxisField: o,
751
- numericFields: c,
857
+ numericFields: l,
752
858
  aggregationType: e,
859
+ splitByField: c,
753
860
  layer: n,
754
- seriesIndex: g,
755
- numericFieldIndex: g,
756
- fieldList: i
861
+ seriesIndex: m,
862
+ numericFieldIndex: m,
863
+ fieldList: r
757
864
  }).name;
758
- e !== q.NoAggregation ? (l.y = d, l.query = {
759
- ...l.query,
760
- outStatistics: [
865
+ d.y = y;
866
+ const u = Pe({
867
+ splitByField: c,
868
+ numericFields: l,
869
+ layer: n,
870
+ seriesIndex: m
871
+ }), S = d.query?.outStatistics?.[0]?.onStatisticField ?? u;
872
+ d.query = {
873
+ ...d.query,
874
+ outStatistics: e === v.NoAggregation ? void 0 : [
761
875
  {
762
- ...l.query?.outStatistics?.[0],
763
- outStatisticFieldName: d,
876
+ ...d.query?.outStatistics?.[0],
877
+ outStatisticFieldName: y,
764
878
  statisticType: e,
765
- onStatisticField: l.query?.outStatistics?.[0]?.onStatisticField ?? c[g]
879
+ onStatisticField: S
766
880
  }
767
881
  ]
768
- }) : (delete l.query?.outStatistics, l.y = c[g]);
769
- }), m && s.title && (s.title.content.text = j(s, r, a)), F && s.series[0].type !== v.HeatSeries) {
770
- const l = re({
771
- config: s,
772
- layerInfo: r,
773
- commonStrings: a,
774
- numericFields: c,
882
+ }, "temporalBinning" in d && d.temporalBinning !== void 0 && (d.temporalBinning.nullPolicy = e === v.NoAggregation ? H.Interpolate : H.Null), e === v.NoAggregation && Mt(t);
883
+ }), p && t.title && (t.title.content.text = j(t, a, i)), g && t.series[0].type !== T.HeatSeries) {
884
+ const d = ye({
885
+ config: t,
886
+ layerInfo: a,
887
+ commonStrings: i,
888
+ numericFields: l,
775
889
  aggregationType: e
776
890
  });
777
- E(s, 1, l);
891
+ E(t, 1, d);
778
892
  }
779
893
  }
780
- function wt(t) {
894
+ function cs(s) {
781
895
  const {
782
896
  splitByField: e,
783
- xAxisField: s,
784
- numericFields: r,
785
- aggregationType: a,
786
- config: i,
897
+ xAxisField: t,
898
+ numericFields: a,
899
+ aggregationType: i,
900
+ config: r,
787
901
  layerInfo: n,
788
902
  commonStrings: o,
789
- splitByFieldInfos: c
790
- } = t, { layer: m, layerFieldsInfo: F } = n, { categoriesArray: l, splitByFieldType: g } = c, d = r.length === 0 ? H(m).idField : r[0];
791
- let y = [], u = !1;
792
- if (l.length === 0) {
793
- y = Ae({
794
- xAxisField: s,
795
- numericFields: r,
796
- aggregationType: a,
797
- config: i,
903
+ splitByFieldInfos: l
904
+ } = s, { layer: c, layerFieldsInfo: p } = n, { categoriesArray: g, splitByFieldType: d } = l, m = Pe({
905
+ splitByField: e,
906
+ numericFields: a,
907
+ layer: c,
908
+ seriesIndex: 0
909
+ });
910
+ let y = [];
911
+ if (g.length === 0) {
912
+ y = Ee({
913
+ xAxisField: t,
914
+ numericFields: a,
915
+ aggregationType: i,
916
+ config: r,
798
917
  layerInfo: n,
799
918
  commonStrings: o
800
919
  });
801
- for (const p of y)
802
- p.query && (p.query.where = `${e}=''`);
920
+ for (const u of y)
921
+ u.query && (u.query.where = `${e}=''`);
803
922
  } else
804
- for (let p = 0; p < l.length; p += 1) {
805
- const x = l[p], C = Q({
806
- config: i,
807
- xAxisField: s,
808
- numericFields: r,
809
- aggregationType: a,
923
+ for (let u = 0; u < g.length; u += 1) {
924
+ const S = g[u], F = ee({
925
+ config: r,
926
+ xAxisField: t,
927
+ numericFields: a,
928
+ aggregationType: i,
810
929
  layer: n.layer,
811
- seriesIndex: p,
930
+ seriesIndex: u,
812
931
  splitByField: e,
813
- fieldList: F
814
- }).name, h = Y({
815
- config: i,
816
- xAxisField: s,
817
- aggregationType: a,
932
+ fieldList: p
933
+ }).name, x = ie({
934
+ config: r,
935
+ xAxisField: t,
936
+ aggregationType: i,
818
937
  layerInfo: n,
819
- seriesIndex: p,
938
+ seriesIndex: u,
820
939
  commonStrings: o
821
- }), f = he({
940
+ }), f = Ne({
822
941
  queryObject: n.layer,
823
942
  fieldName: e,
824
- fieldValue: x ?? ""
825
- }), k = `${x}`, S = {
943
+ fieldValue: S ?? ""
944
+ }), A = `${S}`, b = r.series.find(
945
+ (N) => String(qe(N)).trim().replace(/'/gu, "") === A
946
+ ), B = b?.id ?? A, C = b?.name ?? f ?? B, h = b ?? x, $ = {
826
947
  ...h,
827
- id: k,
828
- name: f ?? k,
829
- y: C,
948
+ id: B,
949
+ name: C,
950
+ y: F,
830
951
  query: {
831
952
  ...h.query,
832
- where: `${e}=${g === ht.String && x !== null ? `'${x}'` : x}`,
833
- outStatistics: a !== q.NoAggregation ? [
953
+ where: `${e}=${d === Oe.String && S !== null ? `'${S}'` : S}`,
954
+ outStatistics: i !== v.NoAggregation ? [
834
955
  {
835
956
  ...h.query?.outStatistics?.[0] ?? {},
836
- onStatisticField: d,
837
- outStatisticFieldName: C,
838
- statisticType: a
957
+ onStatisticField: m,
958
+ outStatisticFieldName: F,
959
+ statisticType: i
839
960
  }
840
961
  ] : void 0
841
962
  }
842
963
  };
843
- a === q.NoAggregation && (S.query !== void 0 && (delete S.query.outStatistics, delete S.query.groupByFieldsForStatistics), S.y = d);
844
- const I = i.series.find(
845
- (L) => String(Ce(L)).trim().replace(/'/gu, "") === k
846
- );
847
- I !== void 0 && ((b(S) && b(I) || A(S) && A(I)) && W(S, I), i.colorMatch || (O(S) && O(I) ? S.fillSymbol = I.fillSymbol : (b(S) && b(I) || A(S) && A(I)) && (S.lineSymbol = I.lineSymbol, S.markerSymbol = I.markerSymbol), u = !0), S.id = I.id, S.name = I.name, S.assignToSecondValueAxis = I.assignToSecondValueAxis), S.query && (S.query.fetchNullValues = i.series.some((L) => L.query?.fetchNullValues)), y.push(S);
964
+ y.push($);
848
965
  }
849
- return i.colorMatch = !u, y;
966
+ return y;
850
967
  }
851
- const ri = (t) => {
968
+ const Ni = (s) => {
852
969
  const {
853
970
  xAxisFieldName: e,
854
- splitByField: s,
855
- numericFields: r,
856
- aggregationType: a,
857
- config: i,
971
+ splitByField: t,
972
+ numericFields: a,
973
+ aggregationType: i,
974
+ config: r,
858
975
  layerInfo: n,
859
976
  commonStrings: o,
860
- splitByFieldInfos: c
861
- } = t, { layerFieldsInfo: m } = n ?? {}, F = ft(i), l = M(i), g = m.find((B) => B.name === l), d = i.series[0].query?.fetchNullValues, y = "nullCategory" in i.series?.[0] ? i.series[0].nullCategory : void 0, u = i.series[0]?.query === void 0, p = m.find((B) => B.name === e), x = _(i, n, o), C = ve(i, n, o), h = Pt(i, n);
862
- let f = Fe(i);
863
- const k = i.series.some((B) => O(B)), T = gt(i.series), S = pt(i.series), I = ne(i), L = {};
864
- I && (L.classBreaksRules = i.series[0]?.classBreaksRules, L.xTemporalBinning = i.series[0]?.xTemporalBinning, L.yTemporalBinning = i.series[0]?.yTemporalBinning, L.emptyCells = i.series[0]?.emptyCells, L.nullPolicy = i.nullPolicy);
865
- let Z = !1;
866
- if (et(p) ? f = pe() : !ye(g) && ye(p) ? f = fe() : !K(g) && K(p) ? (f = fe(), Z = !0) : K(g) && !K(p) && (k ? f = pe() : f = yt(), Z = !0), f !== void 0 && Ve(i, o, f), F === 0 && (i.series = [
867
- Y({ config: i, xAxisField: e, aggregationType: a, layerInfo: n, commonStrings: o })
868
- ]), i.series.forEach((B) => {
869
- B.x = e, B.query !== void 0 && (B.query.groupByFieldsForStatistics = [e]);
870
- }), s === "" || r.length > 1 ? Te({
977
+ splitByFieldInfos: l
978
+ } = s, { layerFieldsInfo: c } = n ?? {}, p = G(r), g = Rt(r), d = M(p), m = c.find((h) => h.name === d), y = r.series[0]?.query === void 0, u = c.find((h) => h.name === e), S = re(p, n, o), F = $e(p, n, o), x = ds(p, n);
979
+ let f = Le(r);
980
+ const A = p.series.some((h) => P(h)), b = pt(p.series), B = ft(p.series);
981
+ let C = !1;
982
+ if (Z(u) ? f = ue() : !_(m) && _(u) ? (f = Q(), C = !0) : !Y(m) && Y(u) ? (f = Q(), C = !0) : Y(m) && !Y(u) && (A ? f = ue() : f = Lt(), C = !0), f !== void 0 && Xe(r, o, f), g === 0 && (r.series = [
983
+ ie({ config: r, xAxisField: e, aggregationType: i, layerInfo: n, commonStrings: o })
984
+ ]), r.series.forEach((h) => {
985
+ h.x = e, h.query !== void 0 && (h.query.groupByFieldsForStatistics = [e]);
986
+ }), t === "" || a.length > 1 ? ge({
871
987
  fieldName: e,
872
- numericFields: r,
873
- fieldList: m
874
- }) ? i.series = Dt({
875
- config: i,
988
+ numericFields: a,
989
+ fieldList: c
990
+ }) ? r.series = us({
991
+ config: r,
876
992
  layerInfo: n,
877
993
  xAxisField: e,
878
- numericFields: r,
879
- aggregationType: a,
994
+ numericFields: a,
995
+ aggregationType: i,
880
996
  commonStrings: o
881
- }) : i.series = Ae({
882
- config: i,
997
+ }) : r.series = Ee({
998
+ config: r,
883
999
  layerInfo: n,
884
1000
  xAxisField: e,
885
- numericFields: r,
886
- aggregationType: a,
1001
+ numericFields: a,
1002
+ aggregationType: i,
887
1003
  commonStrings: o
888
- }) : c && (i.series = wt({
889
- config: i,
1004
+ }) : l && (r.series = cs({
1005
+ config: r,
890
1006
  layerInfo: n,
891
- splitByField: s,
1007
+ splitByField: t,
892
1008
  xAxisField: e,
893
- numericFields: r,
894
- aggregationType: a,
1009
+ numericFields: a,
1010
+ aggregationType: i,
895
1011
  commonStrings: o,
896
- splitByFieldInfos: c
897
- })), h && i.series[0].type !== v.HeatSeries) {
898
- const B = w(m, e);
899
- E(i, 0, B);
1012
+ splitByFieldInfos: l
1013
+ })), x && r.series[0].type !== T.HeatSeries) {
1014
+ const h = R(c, e);
1015
+ E(r, 0, h);
900
1016
  }
901
- if (C && i.series[0].type !== v.HeatSeries) {
902
- const B = re({
903
- config: i,
1017
+ if (F && r.series[0].type !== T.HeatSeries) {
1018
+ const h = ye({
1019
+ config: r,
904
1020
  layerInfo: n,
905
1021
  commonStrings: o,
906
- numericFields: r,
907
- aggregationType: a
1022
+ numericFields: a,
1023
+ aggregationType: i
908
1024
  });
909
- E(i, 1, B);
1025
+ E(r, 1, h);
910
1026
  }
911
- if (x && i.title && (i.title.content.text = j(i, n, o)), N({ config: i, value: null, axisIndex: 1, isMax: !1 }), N({ config: i, value: null, axisIndex: 1, isMax: !0 }), Ot({ numericFields: r, aggregationType: a, config: i, layerInfo: n }), (T || S) && (N({ config: i, value: null, axisIndex: 0, isMax: !1 }), N({ config: i, value: null, axisIndex: 0, isMax: !0 }), Z)) {
912
- const B = f?.type === v.DateAxisFormat ? U.Null : U.Interpolate;
913
- Bt(B, i);
1027
+ if (S && r.title && (r.title.content.text = j(r, n, o)), D({ config: r, value: null, axisIndex: 1, isMax: !1 }), D({ config: r, value: null, axisIndex: 1, isMax: !0 }), ls({ numericFields: a, aggregationType: i, config: r, layerInfo: n }), (b || B) && (D({ config: r, value: null, axisIndex: 0, isMax: !1 }), D({ config: r, value: null, axisIndex: 0, isMax: !0 }), C && i !== v.NoAggregation && !W(p))) {
1028
+ const h = f?.type === T.DateAxisFormat ? H.Null : H.Interpolate;
1029
+ Et(h, r);
914
1030
  }
915
- I && (i.series[0].classBreaksRules = L.classBreaksRules, i.series[0].xTemporalBinning = L.xTemporalBinning, i.series[0].yTemporalBinning = L.yTemporalBinning, i.series[0].emptyCells = L.emptyCells, i.nullPolicy = L.nullPolicy), u ? i.series.forEach((B) => {
916
- delete B.query;
917
- }) : d && i.series.forEach((B) => {
918
- B.query && (B.query.fetchNullValues = d);
919
- }), y && i.series.forEach((B) => {
920
- (B.type === v.BarSeries || B.type === v.LineSeries || B.type === v.RadarSeries) && (B.nullCategory = y);
1031
+ W(r) && Re({ commonStrings: o, config: r, layerInfo: n }), r.series.forEach((h) => {
1032
+ y && delete h.query, I(h) && h.binTemporalData === void 0 && u?.type === Oe.TimeOnly && (h.binTemporalData = !1);
921
1033
  });
922
- }, W = (t, e) => {
923
- t.markerVisible = e.markerVisible, t.lineSmoothed = e.lineSmoothed, t.showArea = e.showArea, t.areaColor = e.areaColor, t.stackNegativeValuesToBaseline = e.stackNegativeValuesToBaseline, e.lineSymbol && (t.lineSymbol = { ...e.lineSymbol, color: t.lineSymbol?.color }), e.markerSymbol && (t.markerSymbol = {
1034
+ }, Me = (s, e) => {
1035
+ s.markerVisible = e.markerVisible, s.lineSmoothed = e.lineSmoothed, s.showArea = e.showArea, s.areaColor = e.areaColor, s.stackNegativeValuesToBaseline = e.stackNegativeValuesToBaseline, e.lineSymbol && (s.lineSymbol = { ...e.lineSymbol, color: s.lineSymbol?.color }), e.markerSymbol && (s.markerSymbol = {
924
1036
  ...e.markerSymbol,
925
- color: t.markerSymbol?.color
1037
+ color: s.markerSymbol?.color
926
1038
  });
927
- }, li = (t) => {
928
- const { config: e, seriesIndex: s, layerInfo: r, commonStrings: a } = t, i = e.series?.[s], n = ue(e);
1039
+ }, Oi = (s) => {
1040
+ const { config: e, seriesIndex: t, layerInfo: a, commonStrings: i } = s, r = e.series?.[t], n = ae(e);
929
1041
  let o;
930
- if (X(e.series) === D.BarAndLineFromFields)
931
- o = a.axisLabels.values;
932
- else if (Ie(n)) {
933
- const m = i.query?.outStatistics?.[0]?.onStatisticField;
934
- m !== void 0 && m !== H(r.layer).idField && (o = w(r.layerFieldsInfo, m));
1042
+ if (J(e.series) === q.BarAndLineFromFields)
1043
+ o = i.axisLabels.values;
1044
+ else if (Ye(n)) {
1045
+ const c = r.query?.outStatistics?.[0]?.onStatisticField;
1046
+ c !== void 0 && c !== U(a.layer).idField && (o = R(a.layerFieldsInfo, c));
935
1047
  } else {
936
- const m = String(Ce(i)).trim().replace(/'/gu, "");
937
- o = he({
938
- queryObject: r.layer,
1048
+ const c = String(qe(r)).trim().replace(/'/gu, "");
1049
+ o = Ne({
1050
+ queryObject: a.layer,
939
1051
  fieldName: n,
940
- fieldValue: m ?? ""
941
- }) ?? m;
1052
+ fieldValue: c ?? ""
1053
+ }) ?? c;
942
1054
  }
943
- return o ?? i.id;
944
- }, ni = (t, e) => {
945
- if (ne(e))
946
- Rt(t, e);
1055
+ return o ?? r.id;
1056
+ }, Vi = (s, e) => {
1057
+ if (W(e))
1058
+ ss(s, e);
947
1059
  else {
948
1060
  e.orderOptions ??= {};
949
- const s = e.orderOptions?.data?.orderType;
950
- ie(e)[0] === J.customSort && s === V.Category && (e.orderOptions.data = {
951
- orderType: V.Category,
952
- orderBy: [...t]
1061
+ const t = e.orderOptions?.data?.orderType;
1062
+ de(e)[0] === ne.customSort && t === L.Category && (e.orderOptions.data = {
1063
+ orderType: L.Category,
1064
+ orderBy: [...s]
953
1065
  });
954
1066
  }
955
- }, oi = async (t) => {
956
- const { config: e, layerInfo: s, errorStrings: r } = t, a = M(e), i = Fe(e)?.type, n = G(e), o = X(e.series);
957
- let c = [];
958
- return i === v.CategoryAxisFormat && (o === D.BarAndLineFromFields || a === ee ? c = n.map((m) => w(s?.layerFieldsInfo, m)) : a.trim() !== "" && a !== ee && s !== void 0 && (c = await qe({
959
- layerInfo: s,
1067
+ }, ki = async (s) => {
1068
+ const { config: e, layerInfo: t, errorStrings: a } = s, i = M(e), r = Le(e)?.type, n = K(e), o = J(e.series);
1069
+ let l = [];
1070
+ return r === T.CategoryAxisFormat && (o === q.BarAndLineFromFields || i === oe ? l = n.map((c) => R(t?.layerFieldsInfo, c)) : i.trim() !== "" && i !== oe && t !== void 0 && (l = await He({
1071
+ layerInfo: t,
960
1072
  config: e,
961
- category: a,
962
- errorStrings: r
963
- }))), c;
1073
+ category: i,
1074
+ errorStrings: a
1075
+ }))), l;
964
1076
  };
965
- function _(t, e, s) {
966
- const r = j(t, e, s), a = St(t), i = z(t);
967
- return r === a || i;
1077
+ function re(s, e, t) {
1078
+ const a = j(s, e, t), i = qt(s), r = te(s);
1079
+ return a === i || r;
968
1080
  }
969
- function ve(t, e, s) {
970
- const r = re({
971
- config: t,
1081
+ function $e(s, e, t) {
1082
+ const a = ye({
1083
+ config: s,
972
1084
  layerInfo: e,
973
- commonStrings: s,
974
- numericFields: G(t),
975
- aggregationType: be(t)
976
- }), a = oe(1, t), i = z(t);
977
- return r === a || i;
1085
+ commonStrings: t,
1086
+ numericFields: K(s),
1087
+ aggregationType: we(s)
1088
+ }), i = se(1, s), r = te(s);
1089
+ return a === i || r;
978
1090
  }
979
- function Pt(t, e) {
980
- const s = w(e.layerFieldsInfo, M(t)), r = oe(0, t), a = z(t);
981
- return s === r || a;
1091
+ function ds(s, e) {
1092
+ const t = R(e.layerFieldsInfo, M(s)), a = se(0, s), i = te(s);
1093
+ return t === a || i;
982
1094
  }
983
- function ui(t) {
984
- return R(t.series[0]) ? t.series[0].binTemporalData ?? !0 : !1;
1095
+ function Ri(s) {
1096
+ return I(s.series[0]) ? s.series[0].binTemporalData ?? !0 : !1;
985
1097
  }
986
- function ci(t, e) {
987
- e?.series.forEach((s) => {
988
- (s?.type === v.BarSeries || s?.type === v.LineSeries) && (s.binTemporalData = t, t ? s.temporalBinning = {
989
- unit: te.Day,
1098
+ function qi(s, e) {
1099
+ e?.series.forEach((t) => {
1100
+ I(t) && (t.binTemporalData = s, s ? t.temporalBinning = {
1101
+ unit: le.Day,
990
1102
  size: 0,
991
- timeAggregationType: at.Start,
1103
+ timeAggregationType: ht.Start,
992
1104
  trimIncompleteTimeInterval: !0,
993
- nullPolicy: U.Null
994
- } : delete s.temporalBinning);
1105
+ nullPolicy: H.Null
1106
+ } : delete t.temporalBinning);
995
1107
  });
996
1108
  }
997
1109
  export {
998
- hs as $,
999
- ni as A,
1000
- ri as B,
1001
- ui as C,
1002
- ci as D,
1003
- j as E,
1004
- Nt as F,
1005
- Bs as G,
1006
- Ks as H,
1007
- Us as I,
1008
- bs as J,
1009
- Cs as K,
1010
- vs as L,
1011
- As as M,
1012
- Qs as N,
1110
+ Gs as $,
1111
+ ki as A,
1112
+ Vi as B,
1113
+ Ni as C,
1114
+ Ri as D,
1115
+ qi as E,
1116
+ j as F,
1117
+ Re as G,
1118
+ Jt as H,
1119
+ _s as I,
1120
+ Si as J,
1121
+ Fi as K,
1122
+ es as L,
1123
+ Qs as M,
1124
+ ts as N,
1013
1125
  zs as O,
1014
- Gs as P,
1015
- _s as Q,
1016
- ei as R,
1017
- ti as S,
1018
- si as T,
1019
- ii as U,
1020
- fs as V,
1021
- Ss as W,
1022
- Ls as X,
1023
- Is as Y,
1024
- Vs as Z,
1025
- qs as _,
1026
- ys as a,
1027
- Fs as a0,
1028
- xs as a1,
1029
- Ts as a2,
1030
- ks as a3,
1031
- Os as a4,
1032
- Ds as a5,
1033
- ws as a6,
1034
- Rs as a7,
1035
- Ns as a8,
1036
- Ps as a9,
1037
- kt as aa,
1038
- Es as ab,
1039
- Ms as ac,
1040
- $s as ad,
1041
- Ys as ae,
1042
- Ws as af,
1043
- Xs as ag,
1044
- Js as ah,
1045
- Zs as ai,
1046
- Hs as aj,
1047
- js as ak,
1048
- us as b,
1049
- cs as c,
1050
- G as d,
1051
- ue as e,
1052
- ps as f,
1053
- be as g,
1054
- li as h,
1055
- ms as i,
1056
- ts as j,
1057
- Tt as k,
1058
- rs as l,
1059
- ss as m,
1060
- ls as n,
1061
- is as o,
1062
- gs as p,
1063
- ns as q,
1064
- Ct as r,
1065
- xt as s,
1066
- as as t,
1067
- ds as u,
1068
- Bt as v,
1069
- os as w,
1070
- ai as x,
1071
- ie as y,
1072
- oi as z
1126
+ xi as P,
1127
+ hi as Q,
1128
+ Ti as R,
1129
+ Bi as S,
1130
+ Ai as T,
1131
+ vi as U,
1132
+ Ii as V,
1133
+ Xt as W,
1134
+ Li as X,
1135
+ Hs as Y,
1136
+ Xs as Z,
1137
+ Js as _,
1138
+ Ms as a,
1139
+ ti as a0,
1140
+ ei as a1,
1141
+ js as a2,
1142
+ Us as a3,
1143
+ Zs as a4,
1144
+ Ks as a5,
1145
+ ai as a6,
1146
+ ri as a7,
1147
+ ni as a8,
1148
+ oi as a9,
1149
+ ii as aa,
1150
+ si as ab,
1151
+ li as ac,
1152
+ is as ad,
1153
+ ui as ae,
1154
+ ci as af,
1155
+ di as ag,
1156
+ yi as ah,
1157
+ mi as ai,
1158
+ gi as aj,
1159
+ bi as ak,
1160
+ Ci as al,
1161
+ pi as am,
1162
+ fi as an,
1163
+ ws as b,
1164
+ Ps as c,
1165
+ K as d,
1166
+ ae as e,
1167
+ Ws as f,
1168
+ we as g,
1169
+ Oi as h,
1170
+ $s as i,
1171
+ Ds as j,
1172
+ Pt as k,
1173
+ wt as l,
1174
+ ks as m,
1175
+ Ns as n,
1176
+ Rs as o,
1177
+ Ys as p,
1178
+ Os as q,
1179
+ Ut as r,
1180
+ ke as s,
1181
+ qs as t,
1182
+ Es as u,
1183
+ Vs as v,
1184
+ Et as w,
1185
+ Mt as x,
1186
+ Di as y,
1187
+ de as z
1073
1188
  };