@arcgis/charts-components 5.2.0-next.4 → 5.2.0-next.41

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