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

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