@arcgis/charts-components 5.2.0-next.5 → 5.2.0-next.50

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 (404) hide show
  1. package/dist/cdn/{YJ6TRXMU.js → 24MSASQQ.js} +1 -1
  2. package/dist/cdn/{4USHOYLT.js → 2BE3GYK4.js} +1 -1
  3. package/dist/cdn/2EEGLP4N.js +2 -0
  4. package/dist/cdn/{2HUAW34Q.js → 2R5BXKVB.js} +1 -1
  5. package/dist/cdn/{5QO32XSX.js → 2UMW7TY6.js} +1 -1
  6. package/dist/cdn/356JWED3.js +2 -0
  7. package/dist/cdn/{Y7HBWU3M.js → 3GAUDUOD.js} +1 -1
  8. package/dist/cdn/{SBYD2EKR.js → 3UDKG6TV.js} +1 -1
  9. package/dist/cdn/{DCZWZOPF.js → 4ASVJDBN.js} +1 -1
  10. package/dist/cdn/4C3N36J3.js +2 -0
  11. package/dist/cdn/{CHLE2QGU.js → 4DXGXATO.js} +1 -1
  12. package/dist/cdn/{Y3CXVO2M.js → 4MSUALRF.js} +1 -1
  13. package/dist/cdn/4PEJNBSG.js +2 -0
  14. package/dist/cdn/53HYBRJO.js +2 -0
  15. package/dist/cdn/{L4G6FO7A.js → 57VIC2YX.js} +1 -1
  16. package/dist/cdn/5CIY3LRQ.js +2 -0
  17. package/dist/cdn/{H2A5GZ55.js → 5D2QRMC6.js} +1 -1
  18. package/dist/cdn/{CHQDKVVQ.js → 5DUKB563.js} +1 -1
  19. package/dist/cdn/{23YH7MTF.js → 5E27ED2B.js} +1 -1
  20. package/dist/cdn/5IOIRPSB.js +2 -0
  21. package/dist/cdn/5JY7HY6L.js +2 -0
  22. package/dist/cdn/{LUSFGRHV.js → 5WIR3JWC.js} +1 -1
  23. package/dist/cdn/5XW2VK3A.js +2 -0
  24. package/dist/cdn/{VT4WJZN6.js → 64B7ILJI.js} +1 -1
  25. package/dist/cdn/67P25QZA.js +2 -0
  26. package/dist/cdn/6HU62XEQ.js +2 -0
  27. package/dist/cdn/{BJDRJUEJ.js → 6RG6AF7N.js} +1 -1
  28. package/dist/cdn/{HCMD362H.js → 6RPBMFL2.js} +1 -1
  29. package/dist/cdn/{7LYAWWOE.js → 6WKTHJQK.js} +1 -1
  30. package/dist/cdn/77A4IT5I.js +2 -0
  31. package/dist/cdn/{II2ZPEUZ.js → 7C2LVFNV.js} +1 -1
  32. package/dist/cdn/{JJIGLOJA.js → 7CGAXWPM.js} +1 -1
  33. package/dist/cdn/{4Z23HWDH.js → 7COM5REK.js} +1 -1
  34. package/dist/cdn/7FSMC2TG.js +2 -0
  35. package/dist/cdn/{N6AOFBBX.js → 7MEYUIY2.js} +1 -1
  36. package/dist/cdn/{TNB3MBXR.js → A67PKDYM.js} +1 -1
  37. package/dist/cdn/AALLRICA.js +2 -0
  38. package/dist/cdn/{OJ5X6I3H.js → ADI63OO7.js} +1 -1
  39. package/dist/cdn/{5MEQANMY.js → AFE4UMQE.js} +1 -1
  40. package/dist/cdn/{CJ4POAPM.js → AJ4RZPOJ.js} +1 -1
  41. package/dist/cdn/AM27TYIA.js +102 -0
  42. package/dist/cdn/{VEA5ZR5D.js → APATJCOK.js} +1 -1
  43. package/dist/cdn/AZHBGLOD.js +2 -0
  44. package/dist/cdn/{TXB2I2U5.js → B2SUC7VR.js} +1 -1
  45. package/dist/cdn/{TYMKFCF4.js → B6BI3FPN.js} +1 -1
  46. package/dist/cdn/{HVO4LIXR.js → BAPR67OA.js} +1 -1
  47. package/dist/cdn/{5JML3JUR.js → BBMN3YU4.js} +1 -1
  48. package/dist/cdn/{TACQVUBU.js → BDEDEGCZ.js} +1 -1
  49. package/dist/cdn/BGOWDCTO.js +2 -0
  50. package/dist/cdn/{CNFBNAPJ.js → BK7DHYA7.js} +1 -1
  51. package/dist/cdn/BYPSLSFP.js +2 -0
  52. package/dist/cdn/BYSUABOV.js +2 -0
  53. package/dist/cdn/BYU72SMZ.js +2 -0
  54. package/dist/cdn/{ZFZ5AEUQ.js → C4O77AVT.js} +1 -1
  55. package/dist/cdn/CHZMNR2R.js +2 -0
  56. package/dist/cdn/CK2HC7UZ.js +4 -0
  57. package/dist/cdn/{64ZMYZ2S.js → CO2YXCVJ.js} +1 -1
  58. package/dist/cdn/CRUHZMGY.js +2 -0
  59. package/dist/cdn/{KLC6NTPC.js → CUPAZHZI.js} +1 -1
  60. package/dist/cdn/{ZFJFTDJF.js → CYGMXV56.js} +1 -1
  61. package/dist/cdn/{DEGBVJ76.js → DGJATKEL.js} +1 -1
  62. package/dist/cdn/DGU55EVX.js +2 -0
  63. package/dist/cdn/DT5VZTKL.js +2 -0
  64. package/dist/cdn/DWWFJ4K4.js +2 -0
  65. package/dist/cdn/{RAQZUMC6.js → E7YVOSTR.js} +1 -1
  66. package/dist/cdn/{A5GIBV5W.js → EDYALXKT.js} +1 -1
  67. package/dist/cdn/EKHD7EQL.js +2 -0
  68. package/dist/cdn/{J5NHXQLA.js → EQZBQP5A.js} +1 -1
  69. package/dist/cdn/{A4GEWIPY.js → F7IPTEHX.js} +1 -1
  70. package/dist/cdn/{WASEMNYV.js → FHKRXY7E.js} +1 -1
  71. package/dist/cdn/{R45FWF7D.js → G6XSNG2U.js} +1 -1
  72. package/dist/cdn/{LFQGH44F.js → GEHO65XE.js} +1 -1
  73. package/dist/cdn/{RFQBUWOW.js → GT6KWFXM.js} +1 -1
  74. package/dist/cdn/{TF7TE7K5.js → GZZJATH3.js} +1 -1
  75. package/dist/cdn/HGG2Y5XW.js +2 -0
  76. package/dist/cdn/HMBXRL4X.js +2 -0
  77. package/dist/cdn/HQHYGZW7.js +2 -0
  78. package/dist/cdn/{FF4DUQDZ.js → HRUQXEFI.js} +1 -1
  79. package/dist/cdn/{ZXOO3X5P.js → HWHKCIYW.js} +1 -1
  80. package/dist/cdn/{AZOBLYAP.js → I2BM5KSH.js} +1 -1
  81. package/dist/cdn/{3DK6M5E7.js → IB6KNSJY.js} +1 -1
  82. package/dist/cdn/{JQKRGUBU.js → IDAOLPMA.js} +1 -1
  83. package/dist/cdn/{PSO5AURI.js → INECCYD7.js} +1 -1
  84. package/dist/cdn/{P4HSSZRL.js → IONJLIQQ.js} +1 -1
  85. package/dist/cdn/{PVJEBBA7.js → ISY2BKFT.js} +1 -1
  86. package/dist/cdn/J64IDIEG.js +2 -0
  87. package/dist/cdn/J6YHKP6I.js +2 -0
  88. package/dist/cdn/JDAJB45A.js +2 -0
  89. package/dist/cdn/{YOT6DVSU.js → JEW6MSOC.js} +1 -1
  90. package/dist/cdn/{KZ7LPNX3.js → JNFMKAES.js} +1 -1
  91. package/dist/cdn/JPGRB2JX.js +2 -0
  92. package/dist/cdn/JRJXFHCK.js +2 -0
  93. package/dist/cdn/{AK7X7SGI.js → JYC77MVD.js} +1 -1
  94. package/dist/cdn/{JBHGSSHS.js → K25GJKPH.js} +1 -1
  95. package/dist/cdn/K4APZJ2O.js +2 -0
  96. package/dist/cdn/K5FLBEYI.js +2 -0
  97. package/dist/cdn/KITNG4RO.js +2 -0
  98. package/dist/cdn/{D3CFPMAR.js → KOY5DWSR.js} +1 -1
  99. package/dist/cdn/{7FZC3RZK.js → L5J4TYCU.js} +1 -1
  100. package/dist/cdn/{AY6IOQ3H.js → LAEUROZM.js} +1 -1
  101. package/dist/cdn/LGTEA66L.js +2 -0
  102. package/dist/cdn/LQMU7V5C.js +2 -0
  103. package/dist/cdn/LSWWNXP3.js +2 -0
  104. package/dist/cdn/M22IUUVK.js +2 -0
  105. package/dist/cdn/{MRTKZZTF.js → MBL6ZAKF.js} +1 -1
  106. package/dist/cdn/{K3GNHGEW.js → MDPDU2BA.js} +1 -1
  107. package/dist/cdn/MIJTHCPZ.js +2 -0
  108. package/dist/cdn/NEOAI7Q7.js +3 -0
  109. package/dist/cdn/{XG2KN6YJ.js → NKPZCF5U.js} +1 -1
  110. package/dist/cdn/{VVKV5KKN.js → NMITBWC4.js} +1 -1
  111. package/dist/cdn/NPRV25FK.js +2 -0
  112. package/dist/cdn/{VE3GFNNM.js → NRXCKYYY.js} +1 -1
  113. package/dist/cdn/{4C6KWLWN.js → NWLNHFHJ.js} +1 -1
  114. package/dist/cdn/{KDJ5RVHA.js → NYFHPR6N.js} +1 -1
  115. package/dist/cdn/{AJWYIBGC.js → O25MQAZU.js} +1 -1
  116. package/dist/cdn/{LONASKGH.js → OAFJADKA.js} +1 -1
  117. package/dist/cdn/{NAXNRCMZ.js → OD2NWPCL.js} +1 -1
  118. package/dist/cdn/{4ZIZEJXS.js → OISERMTF.js} +1 -1
  119. package/dist/cdn/{ETOGNYFU.js → OKAZOAYZ.js} +1 -1
  120. package/dist/cdn/{XUERYUEG.js → OQFM5DBD.js} +1 -1
  121. package/dist/cdn/{LDPHZHSF.js → OWLVHHFH.js} +1 -1
  122. package/dist/cdn/{E7OAEGSE.js → OZSAA5YQ.js} +1 -1
  123. package/dist/cdn/{C5K6XOCR.js → P37JASN4.js} +1 -1
  124. package/dist/cdn/{244ZX2UP.js → P5I5RQTN.js} +1 -1
  125. package/dist/cdn/{WEQBZOH7.js → PDPZBGTU.js} +1 -1
  126. package/dist/cdn/PFR6MB2U.js +2 -0
  127. package/dist/cdn/{BJ7Q7LCT.js → PIZPF2BH.js} +1 -1
  128. package/dist/cdn/PO2S3EAI.js +2 -0
  129. package/dist/cdn/{VDG54AIC.js → PTS74ZAY.js} +1 -1
  130. package/dist/cdn/{VY3KBD6N.js → PV2PO4IS.js} +1 -1
  131. package/dist/cdn/{ETKPMU7Z.js → Q3ZQR5JF.js} +1 -1
  132. package/dist/cdn/{QMSINFQX.js → Q5E66RNY.js} +1 -1
  133. package/dist/cdn/{7UQHB6KY.js → QIG5H6WA.js} +1 -1
  134. package/dist/cdn/{XJFVSX2E.js → QJMUS3VS.js} +1 -1
  135. package/dist/cdn/{XMPLEHTW.js → QKZK6MTN.js} +1 -1
  136. package/dist/cdn/QLJQK4ET.js +2 -0
  137. package/dist/cdn/{THTYR6IL.js → QYNNPEED.js} +1 -1
  138. package/dist/cdn/R53ISOLY.js +2 -0
  139. package/dist/cdn/{GV3TT7L5.js → R6T7WJQJ.js} +1 -1
  140. package/dist/cdn/{KUZR6CGB.js → R6XIGSQS.js} +1 -1
  141. package/dist/cdn/{7ABIELGZ.js → RFXODD7V.js} +1 -1
  142. package/dist/cdn/{5XTQQOTT.js → RLCLIRL6.js} +1 -1
  143. package/dist/cdn/RREO2RVL.js +2 -0
  144. package/dist/cdn/{AM2TOTX6.js → RTVU7ANC.js} +1 -1
  145. package/dist/cdn/RXFVSKL4.js +2 -0
  146. package/dist/cdn/{DNTLH5RT.js → SSOL6PCL.js} +1 -1
  147. package/dist/cdn/{DKAHZ7IX.js → SWEIMWH2.js} +1 -1
  148. package/dist/cdn/T5QBJ7O3.js +2 -0
  149. package/dist/cdn/{ZYOWZCR7.js → TB7JE5XK.js} +1 -1
  150. package/dist/cdn/TGGLZGJB.js +2 -0
  151. package/dist/cdn/THYUOV7H.js +45 -0
  152. package/dist/cdn/TIRQ7FKE.js +2 -0
  153. package/dist/cdn/{KOBNV5AQ.js → TJZPVPM6.js} +1 -1
  154. package/dist/cdn/{A5YDJIMZ.js → TNNXIIY2.js} +1 -1
  155. package/dist/cdn/{KFONSKQF.js → TQLMPVI5.js} +1 -1
  156. package/dist/cdn/{WMPWOPRZ.js → TRAVRA3M.js} +1 -1
  157. package/dist/cdn/{UT4TYXFO.js → TW4RXJ35.js} +1 -1
  158. package/dist/cdn/{U2LJZ4ML.js → TWULSSGK.js} +1 -1
  159. package/dist/cdn/TXQMUOMN.js +2 -0
  160. package/dist/cdn/{PC7IKOIB.js → TZBDO2TG.js} +1 -1
  161. package/dist/cdn/{5G7DSKI7.js → UBG7XLVS.js} +1 -1
  162. package/dist/cdn/{NQQW4GKA.js → UBZEWFXF.js} +1 -1
  163. package/dist/cdn/{P5AO3V3M.js → UD724V36.js} +1 -1
  164. package/dist/cdn/{LZYN55O4.js → UDDRI2Q2.js} +1 -1
  165. package/dist/cdn/{DSIFL2DF.js → UQSD6YZM.js} +1 -1
  166. package/dist/cdn/{Q7J7EKQW.js → UUVJGPFG.js} +1 -1
  167. package/dist/cdn/{A5AECJXP.js → VEXNULZX.js} +1 -1
  168. package/dist/cdn/{ZQDADGLQ.js → VLCUXTLC.js} +1 -1
  169. package/dist/cdn/VMJSBE4T.js +2 -0
  170. package/dist/cdn/{U4XLNCOU.js → VQJKVJS7.js} +1 -1
  171. package/dist/cdn/{3YT44D4Z.js → VX6SWJJ6.js} +1 -1
  172. package/dist/cdn/VZNG7PQX.js +2 -0
  173. package/dist/cdn/W2QTMTLL.js +2 -0
  174. package/dist/cdn/{6B7JCDQC.js → WTF2PFHV.js} +1 -1
  175. package/dist/cdn/{AWF4R7WL.js → WWIRRYDD.js} +1 -1
  176. package/dist/cdn/{XW4PBQNW.js → X6QMN2HV.js} +1 -1
  177. package/dist/cdn/XKOKJQQD.js +2 -0
  178. package/dist/cdn/{LRNADJJG.js → XMV5A2VE.js} +2 -2
  179. package/dist/cdn/XUL3AOTB.js +2 -0
  180. package/dist/cdn/{IPM2XKST.js → XVK4ONRA.js} +1 -1
  181. package/dist/cdn/{QOOBNATX.js → XWLP2CHH.js} +1 -1
  182. package/dist/cdn/Y6KFUUWA.js +2 -0
  183. package/dist/cdn/{BXYNEUQY.js → YCQLYXH4.js} +1 -1
  184. package/dist/cdn/YEGRLOUM.js +2 -0
  185. package/dist/cdn/{PAIRUVLU.js → YEK7BIRE.js} +1 -1
  186. package/dist/cdn/{XE3FKQFA.js → YS73YUW5.js} +1 -1
  187. package/dist/cdn/{WNKDEOFZ.js → ZALJA7E5.js} +1 -1
  188. package/dist/cdn/{6XTKJ7DO.js → ZCAHK6VZ.js} +1 -1
  189. package/dist/cdn/{5ZGALYWZ.js → ZLCRTIQH.js} +1 -1
  190. package/dist/cdn/{FDXE5JLT.js → ZUIZRQUG.js} +1 -1
  191. package/dist/cdn/{CLXVAIQX.js → ZYK5XBZK.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 +2 -0
  197. package/dist/chart-rendering/common/data/utils/summarize-data/interfaces.d.ts +5 -1
  198. package/dist/chart-rendering/common/interfaces.d.ts +8 -8
  199. package/dist/chunks/axis-lines-symbol.js +7 -7
  200. package/dist/chunks/bar-chart-model.js +39 -36
  201. package/dist/chunks/box-plot-data.js +37 -37
  202. package/dist/chunks/box-plot-model.js +10 -10
  203. package/dist/chunks/chart-model.js +173 -141
  204. package/dist/chunks/chart-object-literals.js +2 -1
  205. package/dist/chunks/chart-ui-utils.js +24 -23
  206. package/dist/chunks/class-breaks.js +12 -12
  207. package/dist/chunks/combo-bar-line-chart-model.js +27 -27
  208. package/dist/chunks/data-labels-symbol.js +39 -24
  209. package/dist/chunks/data-labels-visibility.js +22 -22
  210. package/dist/chunks/data.js +68 -68
  211. package/dist/chunks/gauge-model.js +16 -16
  212. package/dist/chunks/generate-x-axis-title.js +9 -9
  213. package/dist/chunks/heat-chart-model.js +76 -47
  214. package/dist/chunks/histogram-data.js +15 -15
  215. package/dist/chunks/histogram-model.js +5 -5
  216. package/dist/chunks/index.js +85 -84
  217. package/dist/chunks/index2.js +5926 -5735
  218. package/dist/chunks/index3.js +32 -29
  219. package/dist/chunks/index4.js +252 -75
  220. package/dist/chunks/line-chart-model.js +2 -2
  221. package/dist/chunks/model-setter.js +15 -14
  222. package/dist/chunks/model-with-line-marker-styling.js +2 -3
  223. package/dist/chunks/model-with-x-guides.js +5 -5
  224. package/dist/chunks/model-with-y-guides.js +20 -20
  225. package/dist/chunks/negative-values-stacked-to-baseline.js +3 -3
  226. package/dist/chunks/pie-chart-data.js +48 -42
  227. package/dist/chunks/pie-chart-model.js +171 -158
  228. package/dist/chunks/radar-chart-model.js +2 -2
  229. package/dist/chunks/resource.js +1 -1
  230. package/dist/chunks/rotated-state.js +1 -1
  231. package/dist/chunks/rounded-corners.js +73 -0
  232. package/dist/chunks/scatterplot-model.js +15 -15
  233. package/dist/chunks/serial-chart-data.js +891 -756
  234. package/dist/chunks/serial-chart-model.js +107 -93
  235. package/dist/chunks/series-length.js +1 -1
  236. package/dist/chunks/series.js +1 -1
  237. package/dist/chunks/type-guards.js +17 -13
  238. package/dist/chunks/type-guards2.js +24 -20
  239. package/dist/chunks/type-guards3.js +1 -1
  240. package/dist/chunks/utils.js +79 -68
  241. package/dist/chunks/utils2.js +1 -1
  242. package/dist/chunks/web-component-utils.js +632 -492
  243. package/dist/chunks/x-bounds.js +17 -17
  244. package/dist/components/arcgis-chart/customElement.d.ts +178 -148
  245. package/dist/components/arcgis-chart/customElement.js +8259 -8184
  246. package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
  247. package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +15 -15
  248. package/dist/components/arcgis-charts-config-bar-chart-data/index.js +1 -1
  249. package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +35 -37
  250. package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +28 -28
  251. package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +6 -9
  252. package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +8 -8
  253. package/dist/components/arcgis-charts-config-box-plot-data/index.js +1 -1
  254. package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +23 -25
  255. package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +1 -1
  256. package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +14 -17
  257. package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +14 -16
  258. package/dist/components/arcgis-charts-config-create-flow/customElement.js +16 -16
  259. package/dist/components/arcgis-charts-config-field-picker/customElement.js +30 -0
  260. package/dist/components/arcgis-charts-config-font-style/customElement.js +1 -1
  261. package/dist/components/arcgis-charts-config-format/customElement.js +25 -25
  262. package/dist/components/arcgis-charts-config-format-popover/customElement.js +7 -10
  263. package/dist/components/arcgis-charts-config-guide/customElement.js +6 -6
  264. package/dist/components/arcgis-charts-config-guide-popover/customElement.js +8 -11
  265. package/dist/components/arcgis-charts-config-guides/customElement.js +1 -1
  266. package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +63 -75
  267. package/dist/components/arcgis-charts-config-heat-chart-data/index.js +1 -1
  268. package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +53 -54
  269. package/dist/components/arcgis-charts-config-histogram/customElement.js +28 -23
  270. package/dist/components/arcgis-charts-config-histogram-data/customElement.js +19 -19
  271. package/dist/components/arcgis-charts-config-histogram-data/index.js +1 -1
  272. package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +33 -34
  273. package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
  274. package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +12 -12
  275. package/dist/components/arcgis-charts-config-line-chart-data/index.js +1 -1
  276. package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +36 -38
  277. package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +6 -6
  278. package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +5 -6
  279. package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +41 -48
  280. package/dist/components/arcgis-charts-config-pie-chart-data/index.js +1 -1
  281. package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +55 -56
  282. package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +9 -9
  283. package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +8 -11
  284. package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +27 -22
  285. package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +79 -79
  286. package/dist/components/arcgis-charts-config-scatter-plot-data/index.js +1 -1
  287. package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +18 -19
  288. package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +9 -11
  289. package/dist/components/arcgis-charts-config-view-charts/customElement.js +57 -26
  290. package/dist/components/arcgis-charts-info-modal/customElement.js +1 -1
  291. package/dist/docs/api.json +1 -1
  292. package/dist/docs/docs.json +1 -1
  293. package/dist/docs/vscode.html-custom-data.json +1 -1
  294. package/dist/docs/web-types.json +1 -1
  295. package/dist/index.d.ts +66 -70
  296. package/dist/index.js +457 -450
  297. package/dist/json-schema/index.d.ts +162 -2
  298. package/dist/loader.js +2 -2
  299. package/dist/model/bar-chart-model/bar-chart-model.d.ts +4 -2
  300. package/dist/model/chart-model/chart-model.d.ts +2 -1
  301. package/dist/model/combo-bar-line-chart-model/combo-bar-line-chart-model.d.ts +8 -5
  302. package/dist/model/heat-chart-model/heat-chart-model.d.ts +24 -2
  303. package/dist/model/interfaces/common.d.ts +0 -2
  304. package/dist/model/mixins/model-with-line-marker-styling.d.ts +6 -5
  305. package/dist/model/mixins/model-with-multi-axes.d.ts +22 -22
  306. package/dist/model/pie-chart-model/pie-chart-model.d.ts +2 -0
  307. package/dist/model/properties/data-labels/data-labels-symbol.d.ts +26 -0
  308. package/dist/model/properties/data-tooltip-font-size.d.ts +20 -0
  309. package/dist/model/properties/rotated-state.d.ts +1 -1
  310. package/dist/model/properties/rounded-corners.d.ts +18 -0
  311. package/dist/model/serial-chart-model/serial-chart-model.d.ts +15 -0
  312. package/dist/model/shared/type-guards.d.ts +7 -0
  313. package/dist/spec/chart-object-literals.d.ts +1 -0
  314. package/dist/spec/data-source.d.ts +6 -1
  315. package/dist/spec/rest-js-object-literals.d.ts +2 -2
  316. package/dist/spec/rest-js-types.d.ts +22 -8
  317. package/dist/spec/web-chart.d.ts +16 -2
  318. package/dist/utils/chart-config/converter/index.js +17 -17
  319. package/dist/utils/chart-config/utils/index.d.ts +35 -0
  320. package/dist/utils/chart-config/validator/index.d.ts +1 -0
  321. package/dist/utils/chart-config/validator/interfaces.d.ts +3 -3
  322. package/dist/utils/data/index.d.ts +14 -10
  323. package/dist/utils/defaults/index.d.ts +5 -3
  324. package/dist/utils/defaults/interfaces.d.ts +1 -1
  325. package/dist/utils/errors/index.d.ts +1 -1
  326. package/dist/utils/layer/index.d.ts +5 -3
  327. package/dist/utils/layer/inline-conversion/interfaces.d.ts +0 -2
  328. package/dist/utils/layer/interfaces.d.ts +2 -1
  329. package/dist/utils/layer/query-features/index.d.ts +17 -1
  330. package/dist/utils/layer/query-parser/index.d.ts +4 -3
  331. package/dist/utils/misc/index.d.ts +2 -3
  332. package/dist/utils/types/index.d.ts +1 -5
  333. package/package.json +7 -8
  334. package/dist/cdn/26FWESH3.js +0 -102
  335. package/dist/cdn/2K4ODNJ4.js +0 -2
  336. package/dist/cdn/3XHZ677O.js +0 -2
  337. package/dist/cdn/547RDEMV.js +0 -2
  338. package/dist/cdn/5FMEOIBS.js +0 -3
  339. package/dist/cdn/5XTB2INB.js +0 -2
  340. package/dist/cdn/5YJNENER.js +0 -2
  341. package/dist/cdn/74JAZF7U.js +0 -2
  342. package/dist/cdn/7CN6J33C.js +0 -2
  343. package/dist/cdn/7HIZH35G.js +0 -2
  344. package/dist/cdn/BBURKBKE.js +0 -2
  345. package/dist/cdn/CCR46UHB.js +0 -2
  346. package/dist/cdn/CJPEW4LJ.js +0 -142
  347. package/dist/cdn/CRFJ2GGS.js +0 -2
  348. package/dist/cdn/CXQOEN77.js +0 -2
  349. package/dist/cdn/DYC3Q36R.js +0 -2
  350. package/dist/cdn/E43KEVHT.js +0 -2
  351. package/dist/cdn/EXTKNE2L.js +0 -2
  352. package/dist/cdn/EZV7JSQJ.js +0 -2
  353. package/dist/cdn/F7Y6EWWB.js +0 -2
  354. package/dist/cdn/G5HVFOIO.js +0 -2
  355. package/dist/cdn/G7TRU7JI.js +0 -2
  356. package/dist/cdn/GL3IXVRN.js +0 -2
  357. package/dist/cdn/GLJWUZHK.js +0 -2
  358. package/dist/cdn/HCV34H6X.js +0 -2
  359. package/dist/cdn/IUFXFWXH.js +0 -2
  360. package/dist/cdn/JHYH555K.js +0 -2
  361. package/dist/cdn/JNNB2DIA.js +0 -2
  362. package/dist/cdn/JVHJMPFE.js +0 -2
  363. package/dist/cdn/K5MXTTSL.js +0 -2
  364. package/dist/cdn/KI4HS3AM.js +0 -2
  365. package/dist/cdn/KVGEY3IQ.js +0 -2
  366. package/dist/cdn/LWODMEOP.js +0 -2
  367. package/dist/cdn/LYZGRYQV.js +0 -2
  368. package/dist/cdn/MF3FGXHI.js +0 -2
  369. package/dist/cdn/MUPHTV55.js +0 -2
  370. package/dist/cdn/N5ERJZPG.js +0 -2
  371. package/dist/cdn/NGPMU4T3.js +0 -2
  372. package/dist/cdn/NJCZ6UTM.js +0 -2
  373. package/dist/cdn/NMB6TWC2.js +0 -2
  374. package/dist/cdn/NNNTZU5J.js +0 -2
  375. package/dist/cdn/NPXBPNXE.js +0 -2
  376. package/dist/cdn/NS3THLCD.js +0 -2
  377. package/dist/cdn/NZR4L5AA.js +0 -2
  378. package/dist/cdn/OLV642SY.js +0 -4
  379. package/dist/cdn/P2NPQAJ3.js +0 -2
  380. package/dist/cdn/PJUAU42S.js +0 -2
  381. package/dist/cdn/PK5XIIZY.js +0 -2
  382. package/dist/cdn/PY5Q3V6E.js +0 -2
  383. package/dist/cdn/PZGIXDMC.js +0 -2
  384. package/dist/cdn/RMYZGOBM.js +0 -2
  385. package/dist/cdn/SVLEJ3HK.js +0 -2
  386. package/dist/cdn/TAI4RIWT.js +0 -2
  387. package/dist/cdn/TXSWWAOF.js +0 -2
  388. package/dist/cdn/TZB57XD4.js +0 -2
  389. package/dist/cdn/U67P6YAZ.js +0 -2
  390. package/dist/cdn/UAJGYF4S.js +0 -2
  391. package/dist/cdn/UT6G7RV7.js +0 -2
  392. package/dist/cdn/VOTZAPI3.js +0 -2
  393. package/dist/cdn/W7X6L2OB.js +0 -127
  394. package/dist/cdn/WPPMMVD5.js +0 -2
  395. package/dist/cdn/YF7MNTCU.js +0 -58
  396. package/dist/cdn/YRBE7MBU.js +0 -2
  397. package/dist/cdn/YRFZPSCC.js +0 -2
  398. package/dist/cdn/YYK7SPXC.js +0 -2
  399. package/dist/cdn/Z2CVF7CH.js +0 -2
  400. package/dist/cdn/ZRZEKOEF.js +0 -2
  401. package/dist/chunks/bar-chart-series.js +0 -15
  402. package/dist/chunks/time-zone.js +0 -38
  403. package/dist/components/arcgis-charts-config-field-select/customElement.js +0 -30
  404. /package/dist/components/{arcgis-charts-config-field-select → arcgis-charts-config-field-picker}/index.js +0 -0
@@ -1,175 +1,207 @@
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 M } from "@arcgis/core/intl.js";
3
+ import { cloneDeep as ee, isEmpty as Xe, memoize as Ue } from "lodash-es";
4
+ import { S as oe } from "./common.js";
5
+ import { s as k, u as E, a as Ve, g as pe, b as Le, c as je, d as Ke, e as fe } from "./utils.js";
6
+ import { w as D, i as Ze, cU as Y, b_ as _e, bm as Qe, x as ze, Y as te, cs as Ge, cr as Je, p as et, aH as ge, c4 as tt, d as it, aG as st, I as at, a7 as rt, bk as nt, W as lt, e as ot, bo as ut, c$ as ct, v as dt, d6 as Se, bN as yt, d7 as mt, bJ as pt, B as gt, N as Fe, bq as Q, d3 as ft, bb as W, bu as z, an as K, a6 as Ne, b9 as St, k as ue, bh as he } from "./index2.js";
7
+ import { a as X, s as De, g as ie, b as xe, c as Ft } from "./data.js";
8
+ import { u as C, r as V, k as ht, d as R, n as O, m as $, p as xt, t as Tt, s as ce } from "./chart-object-literals.js";
9
+ import { R as Oe, i as Bt } from "./rest-js-object-literals.js";
10
+ import { i as se } from "./index4.js";
11
+ import { aA as Ct, I as G, D as de, u as bt, Z as At, aa as vt, am as It, y as Vt, a0 as Lt } from "./index.js";
12
+ import { C as w, F as H, d as P } from "./index3.js";
13
+ import { h as ke, i as q, j as Nt, n as Dt, g as A, m as v, e as Te } from "./index5.js";
14
+ import { convertChartSpec as Ot } from "../utils/chart-config/converter/index.js";
15
+ import { d as ye, f as kt } from "./type-guards.js";
16
+ import { g as qe } from "./series-types.js";
17
+ import { C as qt, m as Rt } from "./model-setter.js";
18
+ import { g as ae } from "./utils2.js";
19
+ import { a as Pt, b as wt } from "./series-length.js";
20
+ const Di = (t) => {
20
21
  let e;
21
- const s = t.series[0];
22
- return R(s) && (e = s.temporalBinning?.size), e;
23
- }, Tt = (t) => {
22
+ const i = t.series[0];
23
+ return D(i) && (e = i.temporalBinning?.size), e;
24
+ }, Mt = (t) => {
24
25
  let e;
25
- const s = t.series[0];
26
- return R(s) && (e = s.temporalBinning?.unit), e;
27
- }, ss = (t) => {
26
+ const i = t.series[0];
27
+ return D(i) && (e = i.temporalBinning?.unit), e;
28
+ }, Oi = (t) => {
28
29
  let e;
29
- const s = t.series[0];
30
- return R(s) && (e = s.temporalBinning?.timeAggregationType), e;
31
- }, is = (t) => {
30
+ const i = t.series[0];
31
+ return D(i) && (e = i.temporalBinning?.timeAggregationType), e;
32
+ }, ki = (t) => {
32
33
  let e;
33
- const s = t.series[0];
34
- return R(s) && (e = s.temporalBinning?.trimIncompleteTimeInterval), e;
35
- }, as = (t) => {
34
+ const i = t.series[0];
35
+ return D(i) && (e = i.temporalBinning?.trimIncompleteTimeInterval), e;
36
+ }, qi = (t) => {
36
37
  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);
38
+ const i = t.series[0];
39
+ return D(i) && (e = i.temporalBinning?.nullPolicy), e;
40
+ }, Et = (t, e) => {
41
+ e?.series?.forEach((i) => {
42
+ D(i) && (i.temporalBinning ??= {}, i.temporalBinning.size = t);
43
+ }), k({ config: e, value: null, axisIndex: 1, isMax: !1 }), k({ config: e, value: null, axisIndex: 1, isMax: !0 });
44
+ }, Wt = (t, e) => {
45
+ e?.series?.forEach((i) => {
46
+ D(i) && (i.temporalBinning ??= {}, i.temporalBinning.nullPolicy = t);
47
+ }), k({ config: e, value: null, axisIndex: 1, isMax: !1 }), k({ config: e, value: null, axisIndex: 1, isMax: !0 });
48
+ }, Ri = (t, e) => {
49
+ e.series?.forEach((i) => {
50
+ D(i) && (i.temporalBinning ??= {}, i.temporalBinning.unit = t);
51
+ }), k({ config: e, value: null, axisIndex: 1, isMax: !1 }), k({ config: e, value: null, axisIndex: 1, isMax: !0 });
52
+ }, Pi = (t, e) => {
53
+ e.series?.forEach((i) => {
54
+ D(i) && (i.temporalBinning ??= {}, i.temporalBinning.timeAggregationType = t);
55
+ }), k({ config: e, value: null, axisIndex: 1, isMax: !1 }), k({ config: e, value: null, axisIndex: 1, isMax: !0 });
56
+ }, wi = (t, e) => {
57
+ e.series?.forEach((i) => {
58
+ D(i) && (i.temporalBinning ??= {}, i.temporalBinning.trimIncompleteTimeInterval = t);
59
+ }), k({ config: e, value: null, axisIndex: 1, isMax: !1 }), k({ config: e, value: null, axisIndex: 1, isMax: !0 });
60
+ }, Yt = (t) => {
61
+ Et(0, t);
61
62
  };
62
- function us(t, e) {
63
- let s;
64
- return e !== void 0 && (s = { ...e }, s.legend !== void 0 && (s.legend.position = t)), s;
63
+ var $t = Object.defineProperty, Ht = Object.getOwnPropertyDescriptor, Xt = (t, e, i, a) => {
64
+ for (var r = Ht(e, i), s = t.length - 1, n; s >= 0; s--)
65
+ (n = t[s]) && (r = n(e, i, r) || r);
66
+ return r && $t(e, i, r), r;
67
+ };
68
+ const Ut = (t) => {
69
+ let e;
70
+ return Y(t) ? e = t.outTimeZone : t?.series.forEach((i) => {
71
+ (i.type === C.BarSeries || i.type === C.RadarSeries || i.type === C.LineSeries) && i.temporalBinning && (e = i.temporalBinning.outTimeZone);
72
+ }), e || (e = t?.axes?.[0]?.valueFormat.type === C.DateAxisFormat ? t.axes[0].valueFormat.intlOptions.timeZone : void 0), e;
73
+ }, Re = (t, e) => {
74
+ const i = Ze(t);
75
+ Y(e) ? t ? e.outTimeZone = i : delete e.outTimeZone : e?.series.forEach((a) => {
76
+ (a.type === C.BarSeries || a.type === C.RadarSeries || a.type === C.LineSeries) && (t ? (a.temporalBinning ??= {}, a.temporalBinning.outTimeZone = i) : a.temporalBinning && delete a.temporalBinning.outTimeZone);
77
+ }), e?.axes?.[0]?.valueFormat.type === C.DateAxisFormat && (t ? e.axes[0].valueFormat.intlOptions.timeZone = i : delete e.axes[0].valueFormat.intlOptions.timeZone);
78
+ };
79
+ class jt extends qt {
80
+ /**
81
+ * Gets the time zone for the chart.
82
+ */
83
+ get timeZone() {
84
+ return Ut(this._config);
85
+ }
86
+ set timeZone(e) {
87
+ Re(e, this._config), this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"));
88
+ }
89
+ }
90
+ Xt([
91
+ Rt
92
+ ], jt.prototype, "timeZone");
93
+ function Mi(t, e) {
94
+ let i;
95
+ return e !== void 0 && (i = { ...e }, i.legend !== void 0 && (i.legend.position = t)), i;
65
96
  }
66
- function cs(t, e) {
67
- let s;
68
- return e !== void 0 && (s = { ...e }, s.legend !== void 0 && (s.legend.visible = t)), s;
97
+ function Ei(t, e) {
98
+ let i;
99
+ return e !== void 0 && (i = { ...e }, i.legend !== void 0 && (i.legend.visible = t)), i;
69
100
  }
70
- function ds(t, e) {
71
- let s;
72
- return e !== void 0 && (s = { ...e, rotated: t }), s;
101
+ function Wi(t, e) {
102
+ let i;
103
+ return e !== void 0 && (i = { ...e, rotated: t }), i;
73
104
  }
74
- function Ct(t) {
105
+ function Kt(t) {
75
106
  let e;
76
107
  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;
77
108
  }
78
- function ys(t, e) {
79
- return e != null || xe(t);
109
+ function Yi(t, e) {
110
+ return e != null || ke(t);
80
111
  }
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;
112
+ async function $i(t) {
113
+ const { config: e, layer: i, abortSignal: a } = t;
114
+ let r = !1;
115
+ return ye(i) || kt(e) ? e && ye(i) && (r = await Qe({ config: e, layer: i, abortSignal: a })) : r = !0, r;
85
116
  }
86
- async function bt(t) {
117
+ async function Zt(t) {
87
118
  const {
88
119
  queryObject: e,
89
- chartConfig: s,
90
- splitByField: r,
91
- errorStrings: a,
92
- abortSignal: i,
120
+ chartConfig: i,
121
+ splitByField: a,
122
+ errorStrings: r,
123
+ abortSignal: s,
93
124
  runtimeDataFilters: n,
94
- ignoreViewExtent: o,
125
+ ignoreViewExtent: l,
95
126
  setTimeBinningInfoWhenNotProvided: c,
96
- returnFeaturesExtent: m,
97
- chartLimits: F
127
+ returnFeaturesExtent: d,
128
+ chartLimits: p
98
129
  } = t;
99
- let l = [], g;
100
- const d = ae(s), y = d.series[0], u = He({
130
+ let u = [], y;
131
+ const m = ee(i), g = m.series[0], o = ot({
101
132
  queryObject: e,
102
- chartConfig: d,
133
+ chartConfig: m,
103
134
  runtimeDataFilters: n,
104
- ignoreViewExtent: o
135
+ ignoreViewExtent: l
105
136
  });
106
- if (u.outStatistics?.[0]?.outStatisticFieldName && (u.outStatistics[0].outStatisticFieldName = lt.outStatistics.outStatisticFieldName), R(y) && je({
107
- xAxisValueFormatType: Ke(d),
137
+ if (o.outStatistics?.[0]?.outStatisticFieldName && (o.outStatistics[0].outStatisticFieldName = Ct.outStatistics.outStatisticFieldName), D(g) && ut({
138
+ xAxisValueFormatType: ct(m),
108
139
  setTimeBinningInfoWhenNotProvided: c,
109
- seriesConfig: y,
140
+ seriesConfig: g,
110
141
  queryObject: e
111
- }) && Ue(r, e)) {
112
- const { temporalBinning: p, x } = y, { uniqueQuery: C } = de({
113
- chartConfig: d,
114
- queryConfig: u,
142
+ }) && dt(a, e)) {
143
+ const { temporalBinning: f, x: T } = g, { uniqueQuery: b } = Se({
144
+ chartConfig: m,
145
+ queryConfig: o,
115
146
  queryObject: e,
116
147
  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({
148
+ returnFeaturesExtent: d,
149
+ chartLimits: p
150
+ }), F = i.axes?.[0].valueFormat.type === C.DateAxisFormat ? i.axes[0].valueFormat.intlOptions.timeZone : void 0;
151
+ y = await yt({
121
152
  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(
153
+ dateField: T,
154
+ splitByField: a,
155
+ queryConfig: b,
156
+ axisTimeZone: F,
157
+ temporalBinning: f,
158
+ errorStrings: r,
159
+ abortSignal: s
160
+ }), u = Array.from(
130
161
  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;
162
+ y.flatMap((S) => {
163
+ const { stackedAttributes: I } = S;
164
+ let B = [];
165
+ return I && (B = I.map((h) => h[a]).filter((h) => h !== void 0)), B;
135
166
  })
136
167
  ).values()
137
168
  );
138
169
  } else {
139
- const { uniqueQuery: p } = de({
140
- chartConfig: d,
170
+ const { uniqueQuery: f } = Se({
171
+ chartConfig: m,
141
172
  queryObject: e,
142
- queryConfig: u,
173
+ queryConfig: o,
143
174
  setTimeBinningInfoWhenNotProvided: c,
144
- returnFeaturesExtent: m,
145
- chartLimits: F
146
- }), { elementCount: x } = await ze({
147
- chartConfig: d,
175
+ returnFeaturesExtent: d,
176
+ chartLimits: p
177
+ }), { elementCount: T } = await mt({
178
+ chartConfig: m,
148
179
  queryObject: e,
149
- queryConfig: u,
150
- behaviorAfterLimit: F?.behaviorAfterLimit,
151
- numberMaxOfFeaturesToFetch: p.num,
152
- abortSignal: i
180
+ queryConfig: o,
181
+ behaviorAfterLimit: p?.behaviorAfterLimit,
182
+ numberMaxOfFeaturesToFetch: f.num,
183
+ abortSignal: s
153
184
  });
154
- g = await Ge({
185
+ y = await pt({
155
186
  queryObject: e,
156
- queryConfig: p,
157
- featureCount: x,
158
- errorStrings: a,
159
- abortSignal: i
160
- }), l = Array.from(
187
+ queryConfig: f,
188
+ featureCount: T,
189
+ returnStatisticsAggregatedIds: !0,
190
+ errorStrings: r,
191
+ abortSignal: s
192
+ }), u = Array.from(
161
193
  new Set(
162
- g.map((C) => C.attributes[r]).filter((C) => C !== void 0)
194
+ y.map((b) => b.attributes[a]).filter((b) => b !== void 0)
163
195
  ).values()
164
196
  );
165
197
  }
166
- return { allValues: l, preFetchedQueryResponse: g };
198
+ return { allValues: u, preFetchedQueryResponse: y };
167
199
  }
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,
200
+ function _t(t, e) {
201
+ const i = /* @__PURE__ */ new Map();
202
+ return t.series.forEach((a) => {
203
+ let r = ge({
204
+ where: a.query?.where,
173
205
  // normalize the value so it matches what we get from getAllValues()
174
206
  // Refer to https://devtopia.esri.com/WebGIS/arcgis-charts/issues/8127
175
207
  normalize: !0,
@@ -177,284 +209,290 @@ function At(t, e) {
177
209
  // Refer to https://devtopia.esri.com/WebGIS/arcgis-charts/issues/8078
178
210
  escape: !1
179
211
  });
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
212
+ e && r !== null && (r = Number(r));
213
+ const s = qe([a]);
214
+ s !== void 0 && i.set(s, [
215
+ ...i.get(s) ?? [],
216
+ r
185
217
  ]);
186
- }), s;
218
+ }), i;
187
219
  }
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) ?? [];
192
- let o = [];
193
- r ? o = e : e.forEach((c) => {
194
- n.includes(c) || o.push(c);
195
- }), a.set(i, o);
196
- }), a;
220
+ function Qt(t) {
221
+ const { allValues: e, configUniqueValuesPerSeriesType: i, initialConfigWasEmpty: a } = t, r = /* @__PURE__ */ new Map();
222
+ return Array.from(i.keys()).forEach((s) => {
223
+ const n = i.get(s) ?? [];
224
+ let l = [];
225
+ a ? l = e : e.forEach((c) => {
226
+ n.includes(c) || l.push(c);
227
+ }), r.set(s, l);
228
+ }), r;
197
229
  }
198
- function It(t) {
199
- const { chartConfig: e, missingValue: s, splitByField: r, seriesTemplate: a } = t, i = JSON.parse(
230
+ function zt(t) {
231
+ const { chartConfig: e, missingValue: i, splitByField: a, seriesTemplate: r } = t, s = JSON.parse(
200
232
  JSON.stringify({
201
233
  ...e.series[0],
202
- ...a
234
+ ...r
203
235
  })
204
236
  );
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);
237
+ if (s.query) {
238
+ if (i === null ? s.id = H.nullValue : i === "" ? s.id = H.emptyStringValue : s.id = `${i}`, s.name = `${i}`, s.query.outStatistics?.[0] !== void 0) {
239
+ const l = s.id;
240
+ s.query.outStatistics[0].outStatisticFieldName = l, "y" in s && (s.y = l);
209
241
  }
210
- const n = typeof s == "number" || s === null ? s : `'${s}'`;
211
- i.query.where = `${r}=${n}`;
242
+ const n = typeof i == "number" || i === null ? i : `'${i}'`;
243
+ s.query.where = `${a}=${n}`;
212
244
  }
213
- return i;
245
+ return s;
214
246
  }
215
- async function Lt(t) {
247
+ async function Gt(t) {
216
248
  const {
217
249
  updateSplitBySeries: e,
218
- config: s,
219
- queryObject: r,
220
- errorStrings: a,
221
- abortSignal: i,
250
+ config: i,
251
+ queryObject: a,
252
+ errorStrings: r,
253
+ abortSignal: s,
222
254
  runtimeDataFilters: n,
223
- ignoreViewExtent: o,
255
+ ignoreViewExtent: l,
224
256
  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,
237
- splitByField: u,
238
- abortSignal: i,
257
+ returnFeaturesExtent: d,
258
+ chartLimits: p
259
+ } = t, { seriesTemplate: u } = e ?? {};
260
+ let y;
261
+ if (a && !ye(a) && e !== void 0 && i !== void 0 && (i.series.length > 0 || u !== void 0) && e.addMissingSeries) {
262
+ const m = i.series.length === 0;
263
+ i.series.length === 0 && u !== void 0 && i.series.push(u);
264
+ const g = te(i.series);
265
+ if (g === w.BoxPlotMonoFieldAndSplitBy || g === w.BoxPlotMultiFieldsAndSplitBy || g === w.BoxPlotMonoFieldAndCategoryAndSplitBy || g === w.BarAndLineSplitBy || g === w.BarAndLineSplitByNoAggregation) {
266
+ const o = st(i.series[0]?.query?.where), f = at(a), T = rt(o, f), b = T ? nt(T) : !1, F = await Zt({
267
+ queryObject: a,
268
+ chartConfig: i,
269
+ splitByField: o,
270
+ abortSignal: s,
239
271
  runtimeDataFilters: n,
240
- ignoreViewExtent: o,
272
+ ignoreViewExtent: l,
241
273
  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
274
+ returnFeaturesExtent: d,
275
+ chartLimits: p,
276
+ errorStrings: r
277
+ }), { allValues: S } = F;
278
+ if ({ preFetchedQueryResponse: y } = F, S.length > 0) {
279
+ const I = _t(i, b), B = Qt({
280
+ allValues: S,
281
+ configUniqueValuesPerSeriesType: I,
282
+ initialConfigWasEmpty: m
251
283
  });
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,
259
- splitByField: u
284
+ Array.from(B.keys()).forEach((h) => {
285
+ (B.get(h) ?? []).forEach((N) => {
286
+ i.series.push(
287
+ zt({
288
+ chartConfig: i,
289
+ seriesTemplate: u,
290
+ missingValue: N,
291
+ splitByField: o
260
292
  })
261
293
  );
262
- }), d && s.series.shift();
294
+ }), m && i.series.shift();
263
295
  });
264
296
  }
265
297
  }
266
298
  }
267
- return g;
299
+ return y;
268
300
  }
269
- function qt(t, e) {
270
- e && !xe(e) && (e = Ee({ chartConfig: e, queryObject: t }));
301
+ function Jt(t, e) {
302
+ e && !ke(e) && (e = it({ chartConfig: e, queryObject: t }));
271
303
  }
272
- async function gs(t) {
304
+ async function Hi(t) {
273
305
  const {
274
306
  configToAlter: e,
275
- layer: s,
276
- addMissingSeries: r,
277
- updateSplitBySeries: a,
278
- chartContainer: i,
307
+ layer: i,
308
+ addMissingSeries: a,
309
+ updateSplitBySeries: r,
310
+ chartContainer: s,
279
311
  queryObject: n,
280
- abortSignal: o,
312
+ abortSignal: l,
281
313
  runtimeDataFilters: c,
282
- ignoreViewExtent: m,
283
- setTimeBinningInfoWhenNotProvided: F,
284
- returnFeaturesExtent: l,
285
- chartLimits: g,
286
- errorStrings: d
314
+ ignoreViewExtent: d,
315
+ setTimeBinningInfoWhenNotProvided: p,
316
+ returnFeaturesExtent: u,
317
+ chartLimits: y,
318
+ timeZone: m,
319
+ errorStrings: g
287
320
  } = 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,
321
+ let o = e, f;
322
+ return o && (Jt(i, o), o = await Ot(o, i, void 0, l), a && n && (f = await Gt({
323
+ updateSplitBySeries: r,
324
+ config: o,
292
325
  queryObject: n,
293
- errorStrings: d,
294
- abortSignal: o,
326
+ errorStrings: g,
327
+ abortSignal: l,
295
328
  runtimeDataFilters: c,
296
- ignoreViewExtent: m,
297
- setTimeBinningInfoWhenNotProvided: F,
298
- returnFeaturesExtent: l,
299
- chartLimits: g
300
- })), y = Ne(y, i)), { alteredConfig: y, preFetchedQueryResponse: u };
329
+ ignoreViewExtent: d,
330
+ setTimeBinningInfoWhenNotProvided: p,
331
+ returnFeaturesExtent: u,
332
+ chartLimits: y
333
+ })), o = _e(o, s), Re(m, o)), { alteredConfig: o, preFetchedQueryResponse: f };
301
334
  }
302
- function Vt(t, e) {
303
- let s = !1;
335
+ function ei(t, e) {
336
+ let i = !1;
304
337
  if (e !== void 0) {
305
- const r = Xe({ key: _e.Average, splitBy: e });
306
- s = Number.isFinite(t[r]);
338
+ const a = lt({ key: gt.Average, splitBy: e });
339
+ i = Number.isFinite(t[a]);
307
340
  }
308
- return s;
341
+ return i;
309
342
  }
310
- function ps(t) {
311
- const { data: e, config: s, showEmptySeries: r } = t, a = s.series.length, i = ae(s);
343
+ function Xi(t) {
344
+ const { data: e, config: i, showEmptySeries: a } = t, r = i.series.length, s = ee(i);
312
345
  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();
346
+ if (!a && r > 1 && e) {
347
+ const l = ze(e), c = qe(i?.series), d = te(i?.series), p = /* @__PURE__ */ new Set();
315
348
  switch (c) {
316
- case v.ComboLineAndBarSeries:
317
- case v.BarSeries:
318
- case v.RadarSeries:
319
- case v.LineSeries: {
320
- i.series.forEach((g) => {
321
- 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({
325
- dataItem: u,
326
- x: g.x,
327
- y: d,
328
- aggregationType: s.series[0].query?.outStatistics?.[0]?.statisticType
349
+ case C.ComboLineAndBarSeries:
350
+ case C.BarSeries:
351
+ case C.RadarSeries:
352
+ case C.LineSeries: {
353
+ s.series.forEach((y) => {
354
+ if (Array.isArray(l)) {
355
+ let m = "";
356
+ "y" in y && (m = Array.isArray(y.y) ? y.y[0] : y.y, d === w.BarAndLineSplitByNoAggregation && (m = `${m}_${ge({ where: y.query?.where, keepSurroundingQuotes: !1, escape: !1 })}`), l.some(
357
+ (o) => tt({
358
+ dataItem: o,
359
+ x: y.x,
360
+ y: m,
361
+ aggregationType: i.series[0].query?.outStatistics?.[0]?.statisticType
329
362
  })
330
- ) && F.add(g));
363
+ ) && p.add(y));
331
364
  }
332
365
  });
333
366
  break;
334
367
  }
335
- case v.BoxPlotSeries: {
336
- if (Oe(s)) {
337
- const g = De(s);
338
- s.series.forEach((d) => {
339
- 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
368
+ case C.BoxPlotSeries: {
369
+ if (Ge(i)) {
370
+ const y = Je(i);
371
+ i.series.forEach((m) => {
372
+ let g, o;
373
+ m.type === C.BoxPlotSeries ? (g = e.dataItems, o = g?.some(
374
+ (f) => et({
375
+ dataItem: f,
376
+ splitBy: m.query?.where,
377
+ showOutliers: y
345
378
  })
346
- )) : d.type === v.LineSeries && (y = e.meanLines, u = y?.some(
347
- (p) => Vt(p, d.query?.where)
348
- )), u && F.add(d);
379
+ )) : m.type === C.LineSeries && (g = e.meanLines, o = g?.some(
380
+ (f) => ei(f, m.query?.where)
381
+ )), o && p.add(m);
349
382
  });
350
383
  }
351
384
  break;
352
385
  }
353
386
  }
354
- const l = Array.from(F.values());
355
- n = l.length > 0 && l.length < a, n && (i.series = l);
387
+ const u = Array.from(p.values());
388
+ n = u.length > 0 && u.length < r, n && (s.series = u);
356
389
  }
357
- return { seriesFilteredOut: n, filteredConfig: i };
390
+ return { seriesFilteredOut: n, filteredConfig: s };
358
391
  }
359
- const fs = (t) => t.hideEmptyRowsAndColumns, Ss = (t, e) => {
392
+ const Ui = (t) => t.hideEmptyRowsAndColumns, ji = (t, e) => {
360
393
  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);
394
+ }, Ki = (t, e) => {
395
+ const i = t.series[0];
396
+ i.heatRulesType = e;
397
+ }, Zi = (t) => t.series[0].heatRulesType, _i = (t, e) => {
398
+ const i = t.series[0];
399
+ i.gradientRules = e;
400
+ }, Qi = (t) => t.series[0].gradientRules, zi = (t) => {
401
+ const { yField: e, config: i, layerInfo: a, commonStrings: r } = t, { layerFieldsInfo: s } = a, n = ae(1, i), l = ti(i), c = se(i), d = i.series[0];
402
+ if (typeof e == "string" && l !== e && d) {
403
+ if (d.y = e, Kt(i), l === n || c) {
404
+ const p = P(s, e);
405
+ E(i, 1, p);
406
+ }
407
+ Pe({ commonStrings: r, config: i, layerInfo: a });
372
408
  }
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);
409
+ }, ti = (t) => t.series[0].y ?? "", Gi = (t) => {
410
+ const { binning: e, config: i, commonStrings: a } = t, r = i.series[0];
411
+ if (r.xTemporalBinning = e, e?.unit !== void 0 && e.unit in a.utilsStrings.heatChartCalendarDatePartsUnits) {
412
+ const s = a.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
413
+ E(i, 0, s);
378
414
  }
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);
415
+ J({ axisIndex: 0, commonStrings: a, config: i });
416
+ }, ii = (t) => t.series[0].xTemporalBinning, Ji = (t) => {
417
+ const { binning: e, config: i, commonStrings: a } = t, r = i.series[0];
418
+ if (r.yTemporalBinning = e, e?.unit !== void 0 && e.unit in a.utilsStrings.heatChartCalendarDatePartsUnits) {
419
+ const s = a.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
420
+ E(i, 1, s);
384
421
  }
385
- }, vs = (t) => t.series[0].yTemporalBinning, Rt = (t, e) => {
422
+ J({ axisIndex: 1, commonStrings: a, config: i });
423
+ }, si = (t) => t.series[0].yTemporalBinning, ai = (t, e) => {
386
424
  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 = {
425
+ const i = e.axes?.[0]?.valueFormat?.type === "category" ? O.Category : O.YValue, a = me(e)[0], r = e.axes?.[1]?.valueFormat?.type === "category" ? O.Category : O.YValue, s = me(e)[1], n = {
388
426
  ...e.orderOptions.data ?? {},
389
- orderType: V.MultiAxes
427
+ orderType: O.MultiAxes
390
428
  };
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 = {
429
+ a === oe.customSort && i === O.Category && (n.orderByX = [...t]), s === oe.customSort && r === O.Category && (n.orderByY = [...t]), Object.keys(n).length > 1 && (e.orderOptions.data = n);
430
+ }, es = (t, e) => {
431
+ const i = e.series[0];
432
+ i.gridLine && (i.gridLine.width = t);
433
+ }, ts = (t) => t.series[0].gridLine?.width, is = (t, e) => {
434
+ const i = e.series[0], a = t?.length === 4 && t.every((r) => typeof r == "number");
435
+ i.gridLine && a && (i.gridLine.color = t);
436
+ }, ss = (t) => t.series[0].gridLine?.color, as = (t, e) => {
437
+ const i = e.legend;
438
+ i && (i.position = t);
439
+ }, rs = (t) => t.legend?.position ?? ht.Bottom, ns = (t) => t.series[0].query?.outStatistics?.[0]?.onStatisticField, ls = (t) => {
440
+ const { field: e, config: i, layerInfo: a, commonStrings: r } = t, s = i.series[0].query?.outStatistics?.[0], n = le(i, a, r);
441
+ s ? (s.onStatisticField = e, s.outStatisticFieldName = `${s.statisticType}_${e}`) : i.series[0].query = {
404
442
  outStatistics: [
405
443
  {
406
444
  onStatisticField: e,
407
- outStatisticFieldName: `${q.Count}_${e}`,
408
- statisticType: q.Count
445
+ outStatisticFieldName: `${V.Count}_${e}`,
446
+ statisticType: V.Count
409
447
  }
410
448
  ]
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) => {
449
+ }, n && i.title && (i.title.content.text = Z(i, a, r));
450
+ }, os = (t) => t.series[0].query?.outStatistics?.[0].statisticType ?? V.Count, us = (t) => {
451
+ const { aggregationType: e, config: i, layerInfo: a, commonStrings: r } = t, s = i.series[0]?.query?.outStatistics?.[0], n = le(i, a, r);
452
+ s && e !== V.NoAggregation && (s.statisticType = e, s.outStatisticFieldName = `${e}_${s.onStatisticField}`), (e === V.Count || e === V.Sum) && ri($.Zero, i), n && i.title && (i.title.content.text = Z(i, a, r));
453
+ }, cs = (t) => t.nullPolicy, ri = (t, e) => {
416
454
  e.nullPolicy = t;
417
- }, Es = (t) => t.series[0].emptyCells, Ms = (t, e) => {
455
+ }, ds = (t) => t.series[0].emptyCells, ys = (t, e) => {
418
456
  e.series[0].emptyCells = t;
419
- }, $s = (t) => t.series[0].emptyCells?.text, Ys = (t, e) => {
457
+ }, ms = (t) => t.series[0].emptyCells?.text, ps = (t, e) => {
420
458
  e.series[0].emptyCells ? e.series[0].emptyCells.text = t : e.series[0].emptyCells = { text: t };
421
- }, Ws = (t) => t.includeLeapDay, Xs = (t, e) => {
459
+ }, gs = (t) => t.includeLeapDay, fs = (t, e) => {
422
460
  e.includeLeapDay = t;
423
- }, Hs = (t) => t.series[0].emptyCells?.symbol, js = (t, e) => {
461
+ }, Ss = (t) => t.series[0].emptyCells?.symbol, Fs = (t, e) => {
424
462
  e.series[0].emptyCells ? e.series[0].emptyCells.symbol = t : e.series[0].emptyCells = { symbol: t };
425
463
  };
426
- function Ks(t) {
464
+ function hs(t) {
427
465
  return t.viewType;
428
466
  }
429
- function Us(t, e) {
430
- Ze(e) || (e.viewType = t);
467
+ function xs(t, e) {
468
+ ft(e) || (e.viewType = t);
431
469
  }
432
- function Qs(t) {
433
- return t.series[0].classBreaksRules?.breaksCount ?? $.classBreaks.breaksCount;
470
+ function Ts(t) {
471
+ return t.series[0].classBreaksRules?.breaksCount ?? H.classBreaks.breaksCount;
434
472
  }
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
473
+ function Bs(t, e) {
474
+ e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.breaksCount = t ?? H.classBreaks.breaksCount : e.series[0].classBreaksRules = {
475
+ breaksCount: t ?? H.classBreaks.breaksCount
438
476
  };
439
477
  }
440
- function Gs(t) {
478
+ function Cs(t) {
441
479
  return t.series[0].classBreaksRules?.classificationMethod;
442
480
  }
443
- function _s(t, e) {
481
+ function bs(t, e) {
444
482
  e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.classificationMethod = t : e.series[0].classBreaksRules = {
445
483
  classificationMethod: t
446
- }, e.series[0].classBreaksRules.breaksCount = e.series[0].classBreaksRules.breaksCount ?? $.classBreaks.breaksCount;
484
+ }, e.series[0].classBreaksRules.breaksCount = e.series[0].classBreaksRules.breaksCount ?? H.classBreaks.breaksCount;
447
485
  }
448
- function Zs(t, e) {
486
+ function As(t, e) {
449
487
  e.firstDayOfWeek = t;
450
488
  }
451
- function Js(t) {
489
+ function vs(t) {
452
490
  return t.firstDayOfWeek;
453
491
  }
454
- function ei(t) {
492
+ function Is(t) {
455
493
  return t.series[0].classBreaksRules?.colorRampInfo?.name;
456
494
  }
457
- function ti(t, e) {
495
+ function Vs(t, e) {
458
496
  e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.colorRampInfo = {
459
497
  ...e.series[0].classBreaksRules.colorRampInfo,
460
498
  name: t
@@ -465,10 +503,10 @@ function ti(t, e) {
465
503
  }
466
504
  };
467
505
  }
468
- function si(t) {
506
+ function Ls(t) {
469
507
  return t.series[0].classBreaksRules?.colorRampInfo?.flipped ?? !1;
470
508
  }
471
- function ii(t, e) {
509
+ function Ns(t, e) {
472
510
  e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.colorRampInfo = {
473
511
  ...e.series[0].classBreaksRules.colorRampInfo,
474
512
  flipped: t
@@ -478,596 +516,693 @@ function ii(t, e) {
478
516
  }
479
517
  };
480
518
  }
481
- function Y(t) {
482
- const { seriesIndex: e, xAxisField: s, aggregationType: r, config: a, layerInfo: i, commonStrings: n } = t, o = H(i?.layer).idField;
519
+ const ni = [
520
+ R.DayOfMonth,
521
+ R.MonthOfYear
522
+ ], Be = (t) => {
523
+ let e;
524
+ return Q(t) ? e = de() : (W(t) || z(t)) && (e = G()), e;
525
+ }, Ce = (t) => W(t) || z(t), be = (t) => {
526
+ const { axisIndex: e, commonStrings: i, config: a, valueFormat: r } = t, s = a.axes?.[e]?.valueFormat;
527
+ r !== void 0 && s?.type !== r.type && Ve({ config: a, commonStrings: i, valueFormat: r, axisIndex: e });
528
+ }, li = (t, e) => {
529
+ let i;
530
+ return e === 0 ? i = t.series[0]?.xTemporalBinning : e === 1 && (i = t.series[0]?.yTemporalBinning), i;
531
+ }, Ae = (t, e) => t.utilsStrings.heatChartCalendarDatePartsUnits[e] ?? "", ve = (t, e) => {
532
+ let i = ni[t];
533
+ return t === 0 && e?.unit === R.DayOfWeek ? i = R.HourOfDay : t === 1 && e?.unit === R.HourOfDay && (i = R.DayOfWeek), {
534
+ type: C.CalendarDateParts,
535
+ unit: i
536
+ };
537
+ }, oi = (t) => {
538
+ let e = {};
539
+ switch (t.unit) {
540
+ case R.DayOfMonth:
541
+ e = { day: "2-digit" };
542
+ break;
543
+ case R.DayOfWeek:
544
+ e = { weekday: "short" };
545
+ break;
546
+ case R.HourOfDay:
547
+ e = { hour: "numeric", hour12: !1 };
548
+ break;
549
+ case R.MonthOfYear:
550
+ e = { month: "short" };
551
+ break;
552
+ default:
553
+ e = G().intlOptions;
554
+ break;
555
+ }
556
+ return {
557
+ type: C.DateAxisFormat,
558
+ intlOptions: e
559
+ };
560
+ }, Ie = (t) => {
561
+ const { axisIndex: e, binning: i, commonStrings: a, config: r, fieldName: s, layerInfo: n } = t, l = r.series[0], c = ae(e, r), d = P(n.layerFieldsInfo, s);
562
+ e === 0 ? l.xTemporalBinning = i : e === 1 && (l.yTemporalBinning = i), i !== void 0 && (c === "" || c === d || c === Ae(a, i.unit)) && E(r, e, Ae(a, i.unit));
563
+ }, J = (t) => {
564
+ const { axisIndex: e, commonStrings: i, config: a } = t, r = li(a, e), s = r ? oi(r) : void 0;
565
+ Ve({ config: a, commonStrings: i, valueFormat: s, axisIndex: e });
566
+ }, Pe = (t) => {
567
+ const { commonStrings: e, config: i, layerInfo: a } = t, r = i.series[0]?.x ?? "", s = i.series[0]?.y ?? "", n = Fe(a.layerFieldsInfo, r), l = Fe(a.layerFieldsInfo, s), c = Be(n), d = Be(l), p = Ce(n) && Ce(l), u = Q(n) && Q(l);
568
+ if (be({ axisIndex: 0, commonStrings: e, config: i, valueFormat: c }), be({ axisIndex: 1, commonStrings: e, config: i, valueFormat: d }), p) {
569
+ const y = ii(i) === void 0, m = si(i) === void 0;
570
+ y && (Ie({
571
+ axisIndex: 0,
572
+ binning: ve(0, i.series[0].yTemporalBinning),
573
+ commonStrings: e,
574
+ config: i,
575
+ fieldName: r,
576
+ layerInfo: a
577
+ }), J({
578
+ axisIndex: 0,
579
+ commonStrings: e,
580
+ config: i
581
+ })), m && (Ie({
582
+ axisIndex: 1,
583
+ binning: ve(1, i.series[0].xTemporalBinning),
584
+ commonStrings: e,
585
+ config: i,
586
+ fieldName: s,
587
+ layerInfo: a
588
+ }), J({
589
+ axisIndex: 1,
590
+ commonStrings: e,
591
+ config: i
592
+ }));
593
+ }
594
+ u && (i.series[0].xTemporalBinning = void 0, i.series[0].yTemporalBinning = void 0);
595
+ };
596
+ function U(t) {
597
+ const { seriesIndex: e, xAxisField: i, aggregationType: a, config: r, layerInfo: s, commonStrings: n } = t, l = K(s?.layer).idField;
483
598
  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));
599
+ const d = r.series[e ?? 0];
600
+ let p = !1, u = !1, y = !1;
601
+ if (d === void 0) {
602
+ const o = r.series;
603
+ p = o.slice(0, e).every((f) => A(f)), u = o.slice(0, e).every((f) => v(f)), y = o.slice(0, e).every((f) => Te(f));
489
604
  } else
490
- F = b(m), l = A(m), g = Se(m);
491
- F ? c = ot({
605
+ p = A(d), u = v(d), y = Te(d);
606
+ p ? c = At({
492
607
  commonStrings: n,
493
608
  seriesIndex: e,
494
- objectIDField: o
495
- }) : l ? c = ut({
609
+ objectIDField: l
610
+ }) : u ? c = vt({
496
611
  commonStrings: n,
497
612
  seriesIndex: e,
498
- objectIDField: o
499
- }) : g ? c = ct(n, o) : c = dt({
613
+ objectIDField: l
614
+ }) : y ? c = It(n, l) : c = Vt({
500
615
  seriesIndex: e,
501
- objectIDField: o,
616
+ objectIDField: l,
502
617
  commonStrings: n
503
618
  });
504
- const d = a.series[0]?.dataLabels, y = {
619
+ const m = r.series[0]?.dataLabels, g = {
505
620
  ...c,
506
- x: s,
621
+ x: i,
507
622
  y: "",
508
623
  dataLabels: {
509
624
  ...c.dataLabels,
510
- type: c.dataLabels?.type ?? v.Text,
511
- content: { ...c.dataLabels?.content, ...d?.content, type: Ft.TS },
512
- visible: d?.visible ?? !1
625
+ type: c.dataLabels?.type ?? C.Text,
626
+ content: { ...c.dataLabels?.content, ...m?.content, type: Bt.TS },
627
+ visible: m?.visible ?? !1
513
628
  }
514
629
  };
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 = [
630
+ if (g.query = {
631
+ groupByFieldsForStatistics: [i]
632
+ }, a !== V.NoAggregation && l !== void 0) {
633
+ const o = `${a}_${l}_0`.toUpperCase();
634
+ g.y = o, g.query.outStatistics = [
520
635
  {
521
- statisticType: r,
522
- onStatisticField: o,
523
- outStatisticFieldName: u
636
+ statisticType: a,
637
+ onStatisticField: l,
638
+ outStatisticFieldName: o
524
639
  }
525
640
  ];
526
641
  }
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
- }
642
+ if (D(r.series[0]) && D(g)) {
643
+ let o = Mt(r);
644
+ o === ce.Quarter && (o = ce.Month), g.temporalBinning = {
645
+ ...r.series[0]?.temporalBinning,
646
+ unit: o
647
+ };
536
648
  }
537
- return ae(y);
649
+ return ee(g);
538
650
  }
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({
651
+ function Z(t, e, i) {
652
+ const { layerFieldsInfo: a } = e, { idField: r, isTraditionalTypeOID: s } = K(e.layer), n = X(t), l = ne(t), c = Me(t), d = re(t), p = s && (l.length === 0 || l.includes(r)), u = bt(c, i), y = p ? "" : l.map((F) => P(a ?? [], F)).join(", "), m = P(a ?? [], n), g = P(a ?? [], d), o = t.series.some((F) => q(F)), f = o ? "category" : "xAxisField", T = m;
653
+ let b = "";
654
+ if (De({
543
655
  fieldName: n,
544
- numericFields: o,
545
- fieldList: r
656
+ numericFields: l,
657
+ fieldList: a
546
658
  }))
547
- C = P(s.titleLabels.aggrTypeOfAggrFields, {
548
- aggregationType: l,
549
- aggregationFields: g
659
+ b = M(i.titleLabels.aggrTypeOfAggrFields, {
660
+ aggregationType: u,
661
+ aggregationFields: y
550
662
  });
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
663
+ else if (c === V.NoAggregation) {
664
+ const F = p ? r : y;
665
+ if (d === "") {
666
+ const S = o ? "aggrTypeCategory" : "aggrTypeXAxisField";
667
+ b = M(i.titleLabels[S], {
668
+ aggregationType: F,
669
+ [f]: T
558
670
  });
559
671
  } else {
560
- const f = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
561
- C = P(s.titleLabels[f], {
562
- aggregationType: h,
563
- [p]: x,
564
- splitByField: y
672
+ const S = o ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
673
+ b = M(i.titleLabels[S], {
674
+ aggregationType: F,
675
+ [f]: T,
676
+ splitByField: g
565
677
  });
566
678
  }
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
679
+ } else if (c === V.Count)
680
+ if (d === "") {
681
+ const F = o ? "aggrTypeCategory" : "aggrTypeXAxisField";
682
+ b = M(i.titleLabels[F], {
683
+ aggregationType: u,
684
+ [f]: T
573
685
  });
574
686
  } else {
575
- const h = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
576
- C = P(s.titleLabels[h], {
577
- aggregationType: l,
578
- [p]: x,
579
- splitByField: y
687
+ const F = o ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
688
+ b = M(i.titleLabels[F], {
689
+ aggregationType: u,
690
+ [f]: T,
691
+ splitByField: g
580
692
  });
581
693
  }
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,
588
- splitByField: y
694
+ else if (d !== "") {
695
+ const F = o ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
696
+ b = M(i.titleLabels[F], {
697
+ aggregationType: u,
698
+ aggregationField: y,
699
+ [f]: T,
700
+ splitByField: g
589
701
  });
590
- } 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
702
+ } else if (l.length > 0) {
703
+ const F = o ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
704
+ b = M(i.titleLabels[F], {
705
+ aggregationType: u,
706
+ aggregationFields: y,
707
+ [f]: T
596
708
  });
597
709
  }
598
- return C;
710
+ return b;
599
711
  }
600
- const Ce = (t) => le({
712
+ const we = (t) => ge({
601
713
  where: t.query?.where,
602
714
  normalize: !1,
603
715
  escape: !1
604
- }) ?? "", be = (t) => t?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? q.NoAggregation, ue = Le(
716
+ }) ?? "", Me = (t) => t?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? V.NoAggregation, re = Ue(
605
717
  (t) => {
606
718
  const e = t?.series?.[0]?.query?.where?.split("=")[0].trim() ?? "";
607
- return Je(t?.series?.[0]?.query?.where) ? "" : e;
719
+ return St(t?.series?.[0]?.query?.where) ? "" : e;
608
720
  },
609
721
  (t) => t?.series?.[0]?.query?.where
610
- ), G = (t) => {
722
+ ), ne = (t) => {
611
723
  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;
724
+ if (re(t) === "")
725
+ e = t?.series.map((i) => {
726
+ const a = i.query?.outStatistics?.map((r) => r.onStatisticField) ?? [];
727
+ return a?.length > 0 ? a : i.y;
616
728
  }).flat() ?? [];
617
729
  else {
618
- const s = t?.series?.[0], r = s?.query?.outStatistics?.[0]?.onStatisticField ?? [s?.y].flat()[0];
619
- e = r !== void 0 ? [r] : [];
730
+ const i = t?.series?.[0], a = i?.query?.outStatistics?.[0]?.onStatisticField ?? [i?.y].flat()[0];
731
+ e = a !== void 0 ? [a] : [];
620
732
  }
621
- return e.filter((s) => s !== "");
733
+ return e.filter((i) => i !== "");
622
734
  };
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));
631
- 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);
735
+ function Ee(t) {
736
+ const { splitByField: e, numericFields: i, layer: a, seriesIndex: r } = t, s = K(a).idField ?? "";
737
+ return e === "" ? i[r] ?? s : i[0] ?? s;
738
+ }
739
+ function ui(t) {
740
+ const { numericFields: e, aggregationType: i, config: a, layerInfo: r } = t;
741
+ let s = !1;
742
+ i === V.Count ? s = !0 : i === V.NoAggregation && (s = e.every((c) => {
743
+ const d = r.layerFieldsInfo.find((p) => p.name === c);
744
+ return d !== void 0 ? he(d) : !1;
745
+ })), fe(a, 1, s);
746
+ const n = a.series.some((c) => A(c)), l = a.series.some((c) => v(c));
747
+ if (n || l) {
748
+ const c = X(a), d = r.layerFieldsInfo.find((u) => u.name === c), p = d !== void 0 && he(d);
749
+ fe(a, 0, p);
634
750
  }
635
751
  }
636
- const ie = (t) => {
752
+ const me = (t) => {
637
753
  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)];
754
+ if (Y(t)) {
755
+ const i = t.orderOptions?.data?.orderByX ?? [""], a = t.orderOptions?.data?.orderByY ?? [""], r = t.axes?.[0]?.valueFormat?.type === "category" ? O.Category : O.YValue, s = t.axes?.[1]?.valueFormat?.type === "category" ? O.Category : O.YValue;
756
+ e = [xe(i, r), xe(a, s)];
641
757
  } 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)];
758
+ const i = t.orderOptions?.data?.orderType ?? O.Category, a = t.orderOptions?.data && "orderBy" in t.orderOptions.data ? t.orderOptions.data.orderBy : xt.Ascending;
759
+ e = [Ft(a, i)];
644
760
  }
645
761
  return e;
646
762
  };
647
- function Dt(t) {
648
- const { xAxisField: e, numericFields: s, aggregationType: r, config: a, layerInfo: i, commonStrings: n } = t, { layerFieldsInfo: o } = i;
763
+ function ci(t) {
764
+ const { xAxisField: e, numericFields: i, aggregationType: a, config: r, layerInfo: s, commonStrings: n } = t, { layerFieldsInfo: l } = s;
649
765
  let c = !1;
650
- const m = Y({
651
- config: a,
766
+ const d = U({
767
+ config: r,
652
768
  xAxisField: e,
653
- aggregationType: r,
654
- layerInfo: i,
769
+ aggregationType: a,
770
+ layerInfo: s,
655
771
  seriesIndex: 0,
656
772
  commonStrings: n
657
- }), F = Q({
658
- config: a,
773
+ }), p = ie({
774
+ config: r,
659
775
  xAxisField: e,
660
- numericFields: s,
661
- aggregationType: r,
662
- layer: i.layer,
663
- fieldList: o
664
- }).name, l = {
665
- ...m,
776
+ numericFields: i,
777
+ aggregationType: a,
778
+ layer: s.layer,
779
+ fieldList: l
780
+ }).name, u = {
781
+ ...d,
666
782
  id: `series_${Date.now()}`,
667
783
  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
784
+ x: ue,
785
+ y: p
786
+ }, y = [];
787
+ for (const g of i)
788
+ y.push({
789
+ onStatisticField: g,
790
+ outStatisticFieldName: `${g}_0`.toUpperCase(),
791
+ statisticType: a
676
792
  });
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];
793
+ u.query = { outStatistics: y };
794
+ const m = r.series[0];
795
+ return m !== void 0 && (u.id = m.id, (A(u) && A(m) || v(u) && v(m)) && j(u, m), r.colorMatch || (q(m) && q(u) ? u.fillSymbol = m.fillSymbol : (A(u) && A(m) || v(u) && v(m)) && (u.lineSymbol = m.lineSymbol, u.markerSymbol = m.markerSymbol), c = !0), u.id = m.id, m.name !== d.name && (u.name = m.name)), r.series.length === 1 && ((A(u) || v(u)) && j(u, r.series[0]), r.colorMatch || (q(u) ? u.fillSymbol = r.series[0].fillSymbol : (A(u) || v(u)) && (u.lineSymbol = r.series[0].lineSymbol, u.markerSymbol = r.series[0].markerSymbol), c = !0)), r.colorMatch = !c, [u];
680
796
  }
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,
797
+ function We(t) {
798
+ const { xAxisField: e, numericFields: i, aggregationType: a, config: r, layerInfo: s, commonStrings: n } = t, { layerFieldsInfo: l } = s, c = K(s.layer).idField, d = [];
799
+ let p = !1;
800
+ for (let o = 0; o < i.length; o += 1) {
801
+ const f = U({
802
+ config: r,
687
803
  xAxisField: e,
688
- aggregationType: r,
689
- layerInfo: i,
690
- seriesIndex: u,
804
+ aggregationType: a,
805
+ layerInfo: s,
806
+ seriesIndex: o,
691
807
  commonStrings: n
692
- }), x = a.series[u]?.y, C = typeof x == "string" && x.trim() !== "" ? x : Q({
693
- config: a,
808
+ }), T = r.series[o]?.y, b = typeof T == "string" && T.trim() !== "" && !l.find((h) => h.name === T) ? T : ie({
809
+ config: r,
694
810
  xAxisField: e,
695
- numericFields: s,
696
- aggregationType: r,
697
- layer: i.layer,
698
- numericFieldIndex: u,
699
- fieldList: o
700
- }).name, h = s[u];
701
- let f = {
702
- ...p,
811
+ numericFields: i,
812
+ aggregationType: a,
813
+ layer: s.layer,
814
+ numericFieldIndex: o,
815
+ fieldList: l
816
+ }).name, F = i[o];
817
+ let S = {
818
+ ...f,
703
819
  query: {
704
- ...p.query
820
+ ...f.query
705
821
  }
706
822
  };
707
- s && h !== c && (f = {
708
- ...f,
709
- id: h,
710
- name: w(o, h)
823
+ i && F !== c && (S = {
824
+ ...S,
825
+ id: F,
826
+ name: P(l, F)
711
827
  });
712
- let k = h;
713
- f.query !== void 0 && (r !== q.NoAggregation ? (k = C, f.query.outStatistics = [
828
+ let I = F;
829
+ S.query !== void 0 && (a !== V.NoAggregation ? (I = b, S.query.outStatistics = [
714
830
  {
715
- ...p.query?.outStatistics?.[0] ?? {},
716
- onStatisticField: h,
717
- outStatisticFieldName: C,
718
- statisticType: r
831
+ ...f.query?.outStatistics?.[0] ?? {},
832
+ onStatisticField: F,
833
+ outStatisticFieldName: b,
834
+ statisticType: a
719
835
  }
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)
836
+ ]) : delete S.query.outStatistics), S.y = I;
837
+ const B = r.series.find(
838
+ (h) => h.query?.outStatistics?.[0]?.onStatisticField === F && h.query.where === void 0 || h.query?.outStatistics === void 0 && (h.y === F || h.x === F)
723
839
  );
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,
840
+ if (B !== void 0 && typeof B.y == "string" && B.y.trim() !== "") {
841
+ (A(S) && A(B) || v(S) && v(B)) && j(S, B), r.colorMatch || (q(S) && q(B) ? S.fillSymbol = B.fillSymbol : (A(S) && A(B) || v(S) && v(B)) && (S.lineSymbol = B.lineSymbol, S.markerSymbol = B.markerSymbol), p = !0);
842
+ const h = U({
843
+ config: r,
728
844
  xAxisField: e,
729
- aggregationType: r,
730
- layerInfo: i,
731
- seriesIndex: u,
845
+ aggregationType: a,
846
+ layerInfo: s,
847
+ seriesIndex: o,
732
848
  commonStrings: n
733
849
  });
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);
850
+ S.id = B.id, B.id !== h.id && B.name !== h.name && (S.id = B.id, S.name = B.name), S.assignToSecondValueAxis = B.assignToSecondValueAxis, S.type === C.HeatSeries && B.type === C.HeatSeries && (S.y = B.y, S.heatRulesType = B.heatRulesType);
735
851
  }
736
- m.push(f);
852
+ d.push(S);
737
853
  }
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)
854
+ const u = d.filter((o) => q(o)), y = d.filter(
855
+ (o) => A(o) || v(o)
856
+ ), m = r.series.filter((o) => q(o)), g = r.series.filter(
857
+ (o) => A(o) || v(o)
742
858
  );
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;
859
+ return m.length === 1 && u.length === 1 && !r.colorMatch && (q(m[0]) && q(u[0]) && (u[0].fillSymbol = m[0].fillSymbol), p = !0), g.length === 1 && y.length === 1 && ((A(g[0]) && A(y[0]) || v(g[0]) && v(y[0])) && j(y[0], g[0]), r.colorMatch || ((A(g[0]) && A(y[0]) || v(g[0]) && v(y[0])) && (y[0].lineSymbol = g[0].lineSymbol, y[0].markerSymbol = g[0].markerSymbol), p = !0)), r.colorMatch = !p, d;
744
860
  }
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,
750
- xAxisField: o,
861
+ function Ds(t) {
862
+ const { aggregationType: e, config: i, layerInfo: a, commonStrings: r } = t, { layerFieldsInfo: s, layer: n } = a, l = X(i), c = ne(i), d = re(i), p = le(i, a, r), u = Ye(i, a, r);
863
+ if (i.series.forEach((y, m) => {
864
+ const g = ie({
865
+ config: i,
866
+ xAxisField: l,
751
867
  numericFields: c,
752
868
  aggregationType: e,
869
+ splitByField: d,
753
870
  layer: n,
754
- seriesIndex: g,
755
- numericFieldIndex: g,
756
- fieldList: i
871
+ seriesIndex: m,
872
+ numericFieldIndex: m,
873
+ fieldList: s
757
874
  }).name;
758
- e !== q.NoAggregation ? (l.y = d, l.query = {
759
- ...l.query,
760
- outStatistics: [
875
+ y.y = g;
876
+ const o = Ee({
877
+ splitByField: d,
878
+ numericFields: c,
879
+ layer: n,
880
+ seriesIndex: m
881
+ }), f = y.query?.outStatistics?.[0]?.onStatisticField ?? o;
882
+ y.query = {
883
+ ...y.query,
884
+ outStatistics: e === V.NoAggregation ? void 0 : [
761
885
  {
762
- ...l.query?.outStatistics?.[0],
763
- outStatisticFieldName: d,
886
+ ...y.query?.outStatistics?.[0],
887
+ outStatisticFieldName: g,
764
888
  statisticType: e,
765
- onStatisticField: l.query?.outStatistics?.[0]?.onStatisticField ?? c[g]
889
+ onStatisticField: f
766
890
  }
767
891
  ]
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,
892
+ }, "temporalBinning" in y && y.temporalBinning !== void 0 && (y.temporalBinning.nullPolicy = e === V.NoAggregation ? $.Interpolate : $.Null), e === V.NoAggregation && Yt(i);
893
+ }), p && i.title && (i.title.content.text = Z(i, a, r)), u && i.series[0].type !== C.HeatSeries) {
894
+ const y = pe({
895
+ config: i,
896
+ layerInfo: a,
897
+ commonStrings: r,
774
898
  numericFields: c,
775
899
  aggregationType: e
776
900
  });
777
- E(s, 1, l);
901
+ E(i, 1, y);
778
902
  }
779
903
  }
780
- function wt(t) {
904
+ function di(t) {
781
905
  const {
782
906
  splitByField: e,
783
- xAxisField: s,
784
- numericFields: r,
785
- aggregationType: a,
786
- config: i,
907
+ xAxisField: i,
908
+ numericFields: a,
909
+ aggregationType: r,
910
+ config: s,
787
911
  layerInfo: n,
788
- commonStrings: o,
912
+ commonStrings: l,
789
913
  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,
914
+ } = t, { layer: d, layerFieldsInfo: p } = n, { categoriesArray: u, splitByFieldType: y } = c, m = Ee({
915
+ splitByField: e,
916
+ numericFields: a,
917
+ layer: d,
918
+ seriesIndex: 0
919
+ });
920
+ let g = [], o = !1;
921
+ if (u.length === 0) {
922
+ g = We({
923
+ xAxisField: i,
924
+ numericFields: a,
925
+ aggregationType: r,
926
+ config: s,
798
927
  layerInfo: n,
799
- commonStrings: o
928
+ commonStrings: l
800
929
  });
801
- for (const p of y)
802
- p.query && (p.query.where = `${e}=''`);
930
+ for (const f of g)
931
+ f.query && (f.query.where = `${e}=''`);
803
932
  } 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,
933
+ for (let f = 0; f < u.length; f += 1) {
934
+ const T = u[f], b = ie({
935
+ config: s,
936
+ xAxisField: i,
937
+ numericFields: a,
938
+ aggregationType: r,
810
939
  layer: n.layer,
811
- seriesIndex: p,
940
+ seriesIndex: f,
812
941
  splitByField: e,
813
- fieldList: F
814
- }).name, h = Y({
815
- config: i,
816
- xAxisField: s,
817
- aggregationType: a,
942
+ fieldList: p
943
+ }).name, F = U({
944
+ config: s,
945
+ xAxisField: i,
946
+ aggregationType: r,
818
947
  layerInfo: n,
819
- seriesIndex: p,
820
- commonStrings: o
821
- }), f = he({
948
+ seriesIndex: f,
949
+ commonStrings: l
950
+ }), S = Ne({
822
951
  queryObject: n.layer,
823
952
  fieldName: e,
824
- fieldValue: x ?? ""
825
- }), k = `${x}`, S = {
826
- ...h,
827
- id: k,
828
- name: f ?? k,
829
- y: C,
953
+ fieldValue: T ?? ""
954
+ }), I = `${T}`, h = {
955
+ ...F,
956
+ id: I,
957
+ name: S ?? I,
958
+ y: b,
830
959
  query: {
831
- ...h.query,
832
- where: `${e}=${g === ht.String && x !== null ? `'${x}'` : x}`,
833
- outStatistics: a !== q.NoAggregation ? [
960
+ ...F.query,
961
+ where: `${e}=${y === Oe.String && T !== null ? `'${T}'` : T}`,
962
+ outStatistics: r !== V.NoAggregation ? [
834
963
  {
835
- ...h.query?.outStatistics?.[0] ?? {},
836
- onStatisticField: d,
837
- outStatisticFieldName: C,
838
- statisticType: a
964
+ ...F.query?.outStatistics?.[0] ?? {},
965
+ onStatisticField: m,
966
+ outStatisticFieldName: b,
967
+ statisticType: r
839
968
  }
840
969
  ] : void 0
841
970
  }
842
- };
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
971
+ }, L = s.series.find(
972
+ (N) => String(we(N)).trim().replace(/'/gu, "") === I
846
973
  );
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);
974
+ L !== void 0 && ((A(h) && A(L) || v(h) && v(L)) && j(h, L), s.colorMatch || (q(h) && q(L) ? h.fillSymbol = L.fillSymbol : (A(h) && A(L) || v(h) && v(L)) && (h.lineSymbol = L.lineSymbol, h.markerSymbol = L.markerSymbol), o = !0), h.id = L.id, h.name = L.name, h.assignToSecondValueAxis = L.assignToSecondValueAxis), h.query && (h.query.fetchNullValues = s.series.some((N) => N.query?.fetchNullValues)), g.push(h);
848
975
  }
849
- return i.colorMatch = !u, y;
976
+ return s.colorMatch = !o, g;
850
977
  }
851
- const ri = (t) => {
978
+ const Os = (t) => {
852
979
  const {
853
980
  xAxisFieldName: e,
854
- splitByField: s,
855
- numericFields: r,
856
- aggregationType: a,
857
- config: i,
981
+ splitByField: i,
982
+ numericFields: a,
983
+ aggregationType: r,
984
+ config: s,
858
985
  layerInfo: n,
859
- commonStrings: o,
986
+ commonStrings: l,
860
987
  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({
988
+ } = t, { layerFieldsInfo: d } = n ?? {}, p = ee(s), u = Pt(s), y = X(p), m = d.find((x) => x.name === y), g = p.series[0].query?.fetchNullValues, o = "nullCategory" in p.series?.[0] ? p.series[0].nullCategory : void 0, f = p.series[0]?.query === void 0, T = d.find((x) => x.name === e), b = le(p, n, l), F = Ye(p, n, l), S = yi(p, n);
989
+ let I = Le(s);
990
+ const B = p.series.some((x) => q(x)), h = Nt(p.series), L = Dt(p.series), N = {};
991
+ Y(p) && (N.classBreaksRules = p.series[0]?.classBreaksRules, N.xTemporalBinning = p.series[0]?.xTemporalBinning, N.yTemporalBinning = p.series[0]?.yTemporalBinning, N.emptyCells = p.series[0]?.emptyCells, N.nullPolicy = p.nullPolicy);
992
+ let _ = !1;
993
+ if (Q(T) ? I = de() : !z(m) && z(T) ? (I = G(), _ = !0) : !W(m) && W(T) ? (I = G(), _ = !0) : W(m) && !W(T) && (B ? I = de() : I = Lt(), _ = !0), I !== void 0 && Ke(s, l, I), u === 0 && (s.series = [
994
+ U({ config: s, xAxisField: e, aggregationType: r, layerInfo: n, commonStrings: l })
995
+ ]), s.series.forEach((x) => {
996
+ x.x = e, x.query !== void 0 && (x.query.groupByFieldsForStatistics = [e]);
997
+ }), i === "" || a.length > 1 ? De({
871
998
  fieldName: e,
872
- numericFields: r,
873
- fieldList: m
874
- }) ? i.series = Dt({
875
- config: i,
999
+ numericFields: a,
1000
+ fieldList: d
1001
+ }) ? s.series = ci({
1002
+ config: s,
876
1003
  layerInfo: n,
877
1004
  xAxisField: e,
878
- numericFields: r,
879
- aggregationType: a,
880
- commonStrings: o
881
- }) : i.series = Ae({
882
- config: i,
1005
+ numericFields: a,
1006
+ aggregationType: r,
1007
+ commonStrings: l
1008
+ }) : s.series = We({
1009
+ config: s,
883
1010
  layerInfo: n,
884
1011
  xAxisField: e,
885
- numericFields: r,
886
- aggregationType: a,
887
- commonStrings: o
888
- }) : c && (i.series = wt({
889
- config: i,
1012
+ numericFields: a,
1013
+ aggregationType: r,
1014
+ commonStrings: l
1015
+ }) : c && (s.series = di({
1016
+ config: s,
890
1017
  layerInfo: n,
891
- splitByField: s,
1018
+ splitByField: i,
892
1019
  xAxisField: e,
893
- numericFields: r,
894
- aggregationType: a,
895
- commonStrings: o,
1020
+ numericFields: a,
1021
+ aggregationType: r,
1022
+ commonStrings: l,
896
1023
  splitByFieldInfos: c
897
- })), h && i.series[0].type !== v.HeatSeries) {
898
- const B = w(m, e);
899
- E(i, 0, B);
1024
+ })), S && s.series[0].type !== C.HeatSeries) {
1025
+ const x = P(d, e);
1026
+ E(s, 0, x);
900
1027
  }
901
- if (C && i.series[0].type !== v.HeatSeries) {
902
- const B = re({
903
- config: i,
1028
+ if (F && s.series[0].type !== C.HeatSeries) {
1029
+ const x = pe({
1030
+ config: s,
904
1031
  layerInfo: n,
905
- commonStrings: o,
906
- numericFields: r,
907
- aggregationType: a
1032
+ commonStrings: l,
1033
+ numericFields: a,
1034
+ aggregationType: r
908
1035
  });
909
- E(i, 1, B);
1036
+ E(s, 1, x);
910
1037
  }
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);
1038
+ if (b && s.title && (s.title.content.text = Z(s, n, l)), k({ config: s, value: null, axisIndex: 1, isMax: !1 }), k({ config: s, value: null, axisIndex: 1, isMax: !0 }), ui({ numericFields: a, aggregationType: r, config: s, layerInfo: n }), (h || L) && (k({ config: s, value: null, axisIndex: 0, isMax: !1 }), k({ config: s, value: null, axisIndex: 0, isMax: !0 }), _ && r !== V.NoAggregation)) {
1039
+ const x = I?.type === C.DateAxisFormat ? $.Null : $.Interpolate;
1040
+ Wt(x, s);
914
1041
  }
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);
1042
+ Y(s) && (s.series[0].classBreaksRules = N.classBreaksRules, s.series[0].xTemporalBinning = N.xTemporalBinning, s.series[0].yTemporalBinning = N.yTemporalBinning, s.series[0].emptyCells = N.emptyCells, s.nullPolicy = N.nullPolicy, Pe({ commonStrings: l, config: s, layerInfo: n })), f ? s.series.forEach((x) => {
1043
+ delete x.query;
1044
+ }) : g && s.series.forEach((x) => {
1045
+ x.query && (x.query.fetchNullValues = g);
1046
+ }), o && s.series.forEach((x) => {
1047
+ (x.type === C.BarSeries || x.type === C.LineSeries || x.type === C.RadarSeries) && (x.nullCategory = o);
1048
+ }), s.series.forEach((x) => {
1049
+ D(x) && x.binTemporalData === void 0 && T?.type === Oe.TimeOnly && (x.binTemporalData = !1);
1050
+ }), s.series.forEach((x) => {
1051
+ const $e = p.series.find((He) => He.id === x.id)?.visible;
1052
+ x.visible = $e;
921
1053
  });
922
- }, W = (t, e) => {
1054
+ }, j = (t, e) => {
923
1055
  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 = {
924
1056
  ...e.markerSymbol,
925
1057
  color: t.markerSymbol?.color
926
1058
  });
927
- }, li = (t) => {
928
- const { config: e, seriesIndex: s, layerInfo: r, commonStrings: a } = t, i = e.series?.[s], n = ue(e);
929
- 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));
1059
+ }, ks = (t) => {
1060
+ const { config: e, seriesIndex: i, layerInfo: a, commonStrings: r } = t, s = e.series?.[i], n = re(e);
1061
+ let l;
1062
+ if (te(e.series) === w.BarAndLineFromFields)
1063
+ l = r.axisLabels.values;
1064
+ else if (Xe(n)) {
1065
+ const d = s.query?.outStatistics?.[0]?.onStatisticField;
1066
+ d !== void 0 && d !== K(a.layer).idField && (l = P(a.layerFieldsInfo, d));
935
1067
  } else {
936
- const m = String(Ce(i)).trim().replace(/'/gu, "");
937
- o = he({
938
- queryObject: r.layer,
1068
+ const d = String(we(s)).trim().replace(/'/gu, "");
1069
+ l = Ne({
1070
+ queryObject: a.layer,
939
1071
  fieldName: n,
940
- fieldValue: m ?? ""
941
- }) ?? m;
1072
+ fieldValue: d ?? ""
1073
+ }) ?? d;
942
1074
  }
943
- return o ?? i.id;
944
- }, ni = (t, e) => {
945
- if (ne(e))
946
- Rt(t, e);
1075
+ return l ?? s.id;
1076
+ }, qs = (t, e) => {
1077
+ if (Y(e))
1078
+ ai(t, e);
947
1079
  else {
948
1080
  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,
1081
+ const i = e.orderOptions?.data?.orderType;
1082
+ me(e)[0] === oe.customSort && i === O.Category && (e.orderOptions.data = {
1083
+ orderType: O.Category,
952
1084
  orderBy: [...t]
953
1085
  });
954
1086
  }
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);
1087
+ }, Rs = async (t) => {
1088
+ const { config: e, layerInfo: i, errorStrings: a } = t, r = X(e), s = Le(e)?.type, n = ne(e), l = te(e.series);
957
1089
  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,
1090
+ return s === C.CategoryAxisFormat && (l === w.BarAndLineFromFields || r === ue ? c = n.map((d) => P(i?.layerFieldsInfo, d)) : r.trim() !== "" && r !== ue && i !== void 0 && (c = await je({
1091
+ layerInfo: i,
960
1092
  config: e,
961
- category: a,
962
- errorStrings: r
1093
+ category: r,
1094
+ errorStrings: a
963
1095
  }))), c;
964
1096
  };
965
- function _(t, e, s) {
966
- const r = j(t, e, s), a = St(t), i = z(t);
967
- return r === a || i;
1097
+ function le(t, e, i) {
1098
+ const a = Z(t, e, i), r = wt(t), s = se(t);
1099
+ return a === r || s;
968
1100
  }
969
- function ve(t, e, s) {
970
- const r = re({
1101
+ function Ye(t, e, i) {
1102
+ const a = pe({
971
1103
  config: t,
972
1104
  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;
1105
+ commonStrings: i,
1106
+ numericFields: ne(t),
1107
+ aggregationType: Me(t)
1108
+ }), r = ae(1, t), s = se(t);
1109
+ return a === r || s;
978
1110
  }
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;
1111
+ function yi(t, e) {
1112
+ const i = P(e.layerFieldsInfo, X(t)), a = ae(0, t), r = se(t);
1113
+ return i === a || r;
982
1114
  }
983
- function ui(t) {
984
- return R(t.series[0]) ? t.series[0].binTemporalData ?? !0 : !1;
1115
+ function Ps(t) {
1116
+ return D(t.series[0]) ? t.series[0].binTemporalData ?? !0 : !1;
985
1117
  }
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,
1118
+ function ws(t, e) {
1119
+ e?.series.forEach((i) => {
1120
+ D(i) && (i.binTemporalData = t, t ? i.temporalBinning = {
1121
+ unit: ce.Day,
990
1122
  size: 0,
991
- timeAggregationType: at.Start,
1123
+ timeAggregationType: Tt.Start,
992
1124
  trimIncompleteTimeInterval: !0,
993
- nullPolicy: U.Null
994
- } : delete s.temporalBinning);
1125
+ nullPolicy: $.Null
1126
+ } : delete i.temporalBinning);
995
1127
  });
996
1128
  }
997
1129
  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,
1013
- 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
1130
+ es as $,
1131
+ Rs as A,
1132
+ qs as B,
1133
+ Os as C,
1134
+ Ps as D,
1135
+ ws as E,
1136
+ Z as F,
1137
+ Pe as G,
1138
+ ti as H,
1139
+ zi as I,
1140
+ hs as J,
1141
+ xs as K,
1142
+ ii as L,
1143
+ Gi as M,
1144
+ si as N,
1145
+ Ji as O,
1146
+ Ts as P,
1147
+ Bs as Q,
1148
+ Cs as R,
1149
+ bs as S,
1150
+ Is as T,
1151
+ Vs as U,
1152
+ Ls as V,
1153
+ jt as W,
1154
+ Ns as X,
1155
+ Ui as Y,
1156
+ ji as Z,
1157
+ ts as _,
1158
+ Yi as a,
1159
+ ss as a0,
1160
+ is as a1,
1161
+ Zi as a2,
1162
+ Ki as a3,
1163
+ Qi as a4,
1164
+ _i as a5,
1165
+ ns as a6,
1166
+ ls as a7,
1167
+ os as a8,
1168
+ us as a9,
1169
+ rs as aa,
1170
+ as as ab,
1171
+ cs as ac,
1172
+ ri as ad,
1173
+ ds as ae,
1174
+ ys as af,
1175
+ ms as ag,
1176
+ ps as ah,
1177
+ gs as ai,
1178
+ fs as aj,
1179
+ vs as ak,
1180
+ As as al,
1181
+ Ss as am,
1182
+ Fs as an,
1183
+ Mi as b,
1184
+ Ei as c,
1185
+ ne as d,
1186
+ re as e,
1187
+ Xi as f,
1188
+ Me as g,
1189
+ ks as h,
1190
+ $i as i,
1191
+ Di as j,
1192
+ Et as k,
1193
+ Mt as l,
1194
+ Ri as m,
1195
+ Oi as n,
1196
+ Pi as o,
1197
+ Hi as p,
1198
+ ki as q,
1199
+ Kt as r,
1200
+ Re as s,
1201
+ wi as t,
1202
+ Wi as u,
1203
+ qi as v,
1204
+ Wt as w,
1205
+ Yt as x,
1206
+ Ds as y,
1207
+ me as z
1073
1208
  };