@arcgis/charts-components 5.2.0-next.1 → 5.2.0-next.100

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 (489) hide show
  1. package/LICENSE.md +4 -2
  2. package/README.md +2 -2
  3. package/dist/cdn/225VUGML.js +4 -0
  4. package/dist/cdn/22V4YZLT.js +2 -0
  5. package/dist/cdn/{YJ6TRXMU.js → 24MSASQQ.js} +1 -1
  6. package/dist/cdn/{4USHOYLT.js → 2BE3GYK4.js} +1 -1
  7. package/dist/cdn/{G6OHBBUT.js → 2INZEFXR.js} +1 -1
  8. package/dist/cdn/{I5VHQW7B.js → 2OAB6VMZ.js} +1 -1
  9. package/dist/cdn/2RSKVWTZ.js +2 -0
  10. package/dist/cdn/{NFDXH5B3.js → 2TNZTI5Q.js} +1 -1
  11. package/dist/cdn/{VY3KBD6N.js → 2YDNWOWT.js} +1 -1
  12. package/dist/cdn/{TSI3C3OV.js → 3DGX6WFJ.js} +1 -1
  13. package/dist/cdn/3NLKE6ZN.js +2 -0
  14. package/dist/cdn/{CODAXMWM.js → 3W64DBHG.js} +1 -1
  15. package/dist/cdn/3XSL5VPN.js +2 -0
  16. package/dist/cdn/{Y7HBWU3M.js → 3ZKNY2GI.js} +1 -1
  17. package/dist/cdn/42FKRE56.js +2 -0
  18. package/dist/cdn/42PLGMOG.js +2 -0
  19. package/dist/cdn/455LSMAU.js +2 -0
  20. package/dist/cdn/4A4EW5Z5.js +2 -0
  21. package/dist/cdn/4DR6JUR7.js +104 -0
  22. package/dist/cdn/{CHLE2QGU.js → 4DXGXATO.js} +1 -1
  23. package/dist/cdn/4U63XRSZ.js +2 -0
  24. package/dist/cdn/{O6SNP6QE.js → 4YKB2PME.js} +1 -1
  25. package/dist/cdn/{3V4HRXIT.js → 5BZCHVPD.js} +1 -1
  26. package/dist/cdn/{H2A5GZ55.js → 5D2QRMC6.js} +1 -1
  27. package/dist/cdn/5GDVKAX5.js +2 -0
  28. package/dist/cdn/5SYHQWPP.js +2 -0
  29. package/dist/cdn/{2X75KJPF.js → 5V2YHARQ.js} +1 -1
  30. package/dist/cdn/{7ILH7ZG2.js → 5VHWJWWP.js} +1 -1
  31. package/dist/cdn/{LUSFGRHV.js → 5WIR3JWC.js} +1 -1
  32. package/dist/cdn/62GSQDTE.js +2 -0
  33. package/dist/cdn/{VT4WJZN6.js → 64B7ILJI.js} +1 -1
  34. package/dist/cdn/{DIKQ7BPQ.js → 65WMT7WD.js} +1 -1
  35. package/dist/cdn/6DYDDJKB.js +2 -0
  36. package/dist/cdn/6H6SZO4Y.js +2 -0
  37. package/dist/cdn/{B4KT2HUE.js → 6MALKAJY.js} +1 -1
  38. package/dist/cdn/6VIPQGM6.js +2 -0
  39. package/dist/cdn/{7LYAWWOE.js → 6WKTHJQK.js} +1 -1
  40. package/dist/cdn/{II2ZPEUZ.js → 7C2LVFNV.js} +1 -1
  41. package/dist/cdn/{4Z23HWDH.js → 7COM5REK.js} +1 -1
  42. package/dist/cdn/7FPQDD3C.js +2 -0
  43. package/dist/cdn/7GTZX5NP.js +2 -0
  44. package/dist/cdn/7NGEMDYM.js +2 -0
  45. package/dist/cdn/7TM4LYGN.js +2 -0
  46. package/dist/cdn/{NHDVOYQ2.js → 7TTQNVC5.js} +1 -1
  47. package/dist/cdn/AA456L7Q.js +2 -0
  48. package/dist/cdn/{OA7FHTCA.js → AAHQPRYK.js} +1 -1
  49. package/dist/cdn/{OJ5X6I3H.js → ADI63OO7.js} +1 -1
  50. package/dist/cdn/AIQU35U3.js +2 -0
  51. package/dist/cdn/AMIDKZA2.js +2 -0
  52. package/dist/cdn/AOVXHBJK.js +2 -0
  53. package/dist/cdn/{SGOYJFLO.js → ATWR3DSK.js} +1 -1
  54. package/dist/cdn/AYCQHDDV.js +2 -0
  55. package/dist/cdn/AZYYQMCD.js +2 -0
  56. package/dist/cdn/{TXB2I2U5.js → B2SUC7VR.js} +1 -1
  57. package/dist/cdn/{UQPFMDJB.js → B46RQ2MZ.js} +1 -1
  58. package/dist/cdn/{TACQVUBU.js → BDEDEGCZ.js} +1 -1
  59. package/dist/cdn/{4JQ2RRLY.js → BK2QOEX2.js} +1 -1
  60. package/dist/cdn/{CNFBNAPJ.js → BK7DHYA7.js} +1 -1
  61. package/dist/cdn/BWLRC2U5.js +2 -0
  62. package/dist/cdn/BYSUABOV.js +2 -0
  63. package/dist/cdn/{WASEMNYV.js → CHBL4DXX.js} +1 -1
  64. package/dist/cdn/{I36OAVW3.js → CTMOMBBM.js} +1 -1
  65. package/dist/cdn/{ZFJFTDJF.js → CYGMXV56.js} +1 -1
  66. package/dist/cdn/D5DOFLCS.js +2 -0
  67. package/dist/cdn/{CUJHGXNK.js → DLMRATCW.js} +1 -1
  68. package/dist/cdn/{N3VOUI25.js → DWO7GMVE.js} +1 -1
  69. package/dist/cdn/E6E2KLJ2.js +2 -0
  70. package/dist/cdn/E6JK3JRJ.js +2 -0
  71. package/dist/cdn/EB4CM3YK.js +2 -0
  72. package/dist/cdn/EJW2UHAB.js +2 -0
  73. package/dist/cdn/{J5NHXQLA.js → EQZBQP5A.js} +1 -1
  74. package/dist/cdn/EWIMT2AS.js +2 -0
  75. package/dist/cdn/FBS4RBSA.js +2 -0
  76. package/dist/cdn/{75P3QRL4.js → FLUZSJXH.js} +1 -1
  77. package/dist/cdn/{UAZ34KDJ.js → FSEQQXRO.js} +1 -1
  78. package/dist/cdn/G3KO465U.js +4 -0
  79. package/dist/cdn/GVJ5WCQD.js +2 -0
  80. package/dist/cdn/H2ECCBL7.js +2 -0
  81. package/dist/cdn/H2R62NYZ.js +2 -0
  82. package/dist/cdn/{66KSEDOR.js → H7Z3QWIW.js} +1 -1
  83. package/dist/cdn/{ABIVSH72.js → HJSR7M2A.js} +1 -1
  84. package/dist/cdn/{RKN64EJQ.js → HUMEIOOQ.js} +1 -1
  85. package/dist/cdn/{N6OT5IBC.js → HZUBDLNR.js} +1 -1
  86. package/dist/cdn/{AZOBLYAP.js → I2BM5KSH.js} +1 -1
  87. package/dist/cdn/IBMPLHXH.js +2 -0
  88. package/dist/cdn/{JQKRGUBU.js → IDAOLPMA.js} +1 -1
  89. package/dist/cdn/{UT4TYXFO.js → IGOJGDYE.js} +1 -1
  90. package/dist/cdn/{4QQVKRJ5.js → IRIGTY65.js} +1 -1
  91. package/dist/cdn/JCCCT72R.js +2 -0
  92. package/dist/cdn/{AJBEE7WE.js → JMR2NH33.js} +1 -1
  93. package/dist/cdn/JSVAA6N4.js +2 -0
  94. package/dist/cdn/JVHMHWIM.js +2 -0
  95. package/dist/cdn/JZMYBU7B.js +2 -0
  96. package/dist/cdn/KKE5EKYC.js +2 -0
  97. package/dist/cdn/KODMEY56.js +2 -0
  98. package/dist/cdn/{D3CFPMAR.js → KOY5DWSR.js} +1 -1
  99. package/dist/cdn/KYESCAI2.js +2 -0
  100. package/dist/cdn/KYOCE6FA.js +2 -0
  101. package/dist/cdn/KZSCAJDG.js +2 -0
  102. package/dist/cdn/L5JZ5COY.js +2 -0
  103. package/dist/cdn/{AY6IOQ3H.js → LAEUROZM.js} +1 -1
  104. package/dist/cdn/LZ7SW2R3.js +2 -0
  105. package/dist/cdn/M4G6TGMS.js +2 -0
  106. package/dist/cdn/{LNF44ZGQ.js → MJVTTSEV.js} +1 -1
  107. package/dist/cdn/MMUAG4IX.js +2 -0
  108. package/dist/cdn/MQI4ZLAS.js +2 -0
  109. package/dist/cdn/{DD4QUBOF.js → N7VRRNQD.js} +1 -1
  110. package/dist/cdn/{RWEUTQWS.js → NJF5UIYM.js} +1 -1
  111. package/dist/cdn/{XG2KN6YJ.js → NKPZCF5U.js} +1 -1
  112. package/dist/cdn/{VE3GFNNM.js → NRXCKYYY.js} +1 -1
  113. package/dist/cdn/{4C6KWLWN.js → NWLNHFHJ.js} +1 -1
  114. package/dist/cdn/{4E7C5QPS.js → NWYSPTLF.js} +1 -1
  115. package/dist/cdn/O4DFT4N4.js +2 -0
  116. package/dist/cdn/{NAXNRCMZ.js → OD2NWPCL.js} +1 -1
  117. package/dist/cdn/OGH6DSQR.js +2 -0
  118. package/dist/cdn/{53FG76LL.js → OH3X6QIK.js} +1 -1
  119. package/dist/cdn/{4ZIZEJXS.js → OISERMTF.js} +1 -1
  120. package/dist/cdn/OIWZXO7H.js +2 -0
  121. package/dist/cdn/{ETOGNYFU.js → OKAZOAYZ.js} +1 -1
  122. package/dist/cdn/OKKEWHMB.js +2 -0
  123. package/dist/cdn/{XUERYUEG.js → OQFM5DBD.js} +1 -1
  124. package/dist/cdn/OURE3TA5.js +2 -0
  125. package/dist/cdn/{C5K6XOCR.js → P37JASN4.js} +1 -1
  126. package/dist/cdn/{KDJ5RVHA.js → P3AYFJRV.js} +1 -1
  127. package/dist/cdn/{244ZX2UP.js → P5I5RQTN.js} +1 -1
  128. package/dist/cdn/{RDTBZUT7.js → PAPE3NIS.js} +1 -1
  129. package/dist/cdn/{BJ7Q7LCT.js → PIZPF2BH.js} +1 -1
  130. package/dist/cdn/{XWKBJDZT.js → PMFGLOZL.js} +1 -1
  131. package/dist/cdn/PT2OG4W2.js +2 -0
  132. package/dist/cdn/PWJBGZPW.js +2 -0
  133. package/dist/cdn/Q366CY3F.js +45 -0
  134. package/dist/cdn/{OYHKUGS6.js → QHJSE3P3.js} +1 -1
  135. package/dist/cdn/{7UQHB6KY.js → QIG5H6WA.js} +1 -1
  136. package/dist/cdn/QKUFLZC3.js +2 -0
  137. package/dist/cdn/{XMPLEHTW.js → QKZK6MTN.js} +1 -1
  138. package/dist/cdn/QO2RH3XB.js +3 -0
  139. package/dist/cdn/QPX4FNCB.js +2 -0
  140. package/dist/cdn/{XIJ5VLER.js → QTAETIIH.js} +1 -1
  141. package/dist/cdn/QYRHZJH3.js +2 -0
  142. package/dist/cdn/{FLO3N6JD.js → QZIF3GED.js} +1 -1
  143. package/dist/cdn/RD7TKIQS.js +2 -0
  144. package/dist/cdn/RGIL6ZEZ.js +2 -0
  145. package/dist/cdn/RNGQEQRO.js +2 -0
  146. package/dist/cdn/RPUEIRTH.js +2 -0
  147. package/dist/cdn/{VFM2EV3M.js → S6CNTZIE.js} +1 -1
  148. package/dist/cdn/S6RBDFHP.js +2 -0
  149. package/dist/cdn/SIHW3QVG.js +2 -0
  150. package/dist/cdn/SS7GYFUD.js +2 -0
  151. package/dist/cdn/{DNTLH5RT.js → SSOL6PCL.js} +1 -1
  152. package/dist/cdn/SXT66JGI.js +2 -0
  153. package/dist/cdn/SZSTCHLY.js +2 -0
  154. package/dist/cdn/SZYIWW3C.js +2 -0
  155. package/dist/cdn/T75QDGXB.js +2 -0
  156. package/dist/cdn/{ZYOWZCR7.js → TB7JE5XK.js} +1 -1
  157. package/dist/cdn/{AK7X7SGI.js → TENIFMA5.js} +1 -1
  158. package/dist/cdn/{M4AQLWZU.js → TNUZFQGZ.js} +1 -1
  159. package/dist/cdn/{WMPWOPRZ.js → TRAVRA3M.js} +1 -1
  160. package/dist/cdn/{O2ERVMSN.js → U25H6VUE.js} +1 -1
  161. package/dist/cdn/UCHQXTEC.js +2 -0
  162. package/dist/cdn/{P5AO3V3M.js → UD724V36.js} +1 -1
  163. package/dist/cdn/ULQSD4KK.js +2 -0
  164. package/dist/cdn/{DSIFL2DF.js → UQSD6YZM.js} +1 -1
  165. package/dist/cdn/{Q7J7EKQW.js → UUVJGPFG.js} +1 -1
  166. package/dist/cdn/UVESG7TY.js +2 -0
  167. package/dist/cdn/{PH6UOHRS.js → V4NEFGS3.js} +1 -1
  168. package/dist/cdn/{NG2IHVZ4.js → V54RTUAV.js} +1 -1
  169. package/dist/cdn/{ZQDADGLQ.js → VLCUXTLC.js} +1 -1
  170. package/dist/cdn/VMHDTE3U.js +2 -0
  171. package/dist/cdn/VQMG3F5Z.js +2 -0
  172. package/dist/cdn/VQU2TVX7.js +3 -0
  173. package/dist/cdn/VWUW3HFU.js +2 -0
  174. package/dist/cdn/W66Q5TB6.js +2 -0
  175. package/dist/cdn/{5AOYADA3.js → WKRD4TIL.js} +1 -1
  176. package/dist/cdn/WMYNPECY.js +2 -0
  177. package/dist/cdn/WOGALV3T.js +2 -0
  178. package/dist/cdn/{6B7JCDQC.js → WTF2PFHV.js} +1 -1
  179. package/dist/cdn/WTMEWLUJ.js +2 -0
  180. package/dist/cdn/WTOK3YQI.js +2 -0
  181. package/dist/cdn/WVOXFKFO.js +2 -0
  182. package/dist/cdn/X2FMGJRP.js +2 -0
  183. package/dist/cdn/X733UM32.js +2 -0
  184. package/dist/cdn/XGWHDERD.js +2 -0
  185. package/dist/cdn/{2HGBRW4I.js → XOB6RSOR.js} +1 -1
  186. package/dist/cdn/{BXYNEUQY.js → YCQLYXH4.js} +1 -1
  187. package/dist/cdn/YFMHKHFE.js +2 -0
  188. package/dist/cdn/YHC6WRNQ.js +2 -0
  189. package/dist/cdn/ZDKUHFRX.js +2 -0
  190. package/dist/cdn/ZK72BJCQ.js +2 -0
  191. package/dist/cdn/{EUOPRFMU.js → ZLARROJV.js} +1 -1
  192. package/dist/cdn/{5ZGALYWZ.js → ZLCRTIQH.js} +1 -1
  193. package/dist/cdn/{TYUVXRBO.js → ZZHKDFTA.js} +1 -1
  194. package/dist/cdn/assets/charts-config-view-charts/t9n/messages.en.json +1 -1
  195. package/dist/cdn/assets/common/t9n/messages.en.json +1 -1
  196. package/dist/cdn/index.js +1 -1
  197. package/dist/cdn/main.css +1 -1
  198. package/dist/cdn/model/shared/setup-utils.js +2 -0
  199. package/dist/chart-rendering/common/data/utils/summarize-data/interfaces.d.ts +5 -1
  200. package/dist/chart-rendering/common/interfaces.d.ts +111 -73
  201. package/dist/chunks/{type-guards3.js → action-bar-utils.js} +38 -46
  202. package/dist/chunks/axis-lines-symbol.js +9 -9
  203. package/dist/chunks/bar-chart-model.js +49 -41
  204. package/dist/chunks/box-plot-data.js +291 -274
  205. package/dist/chunks/box-plot-model.js +143 -130
  206. package/dist/chunks/chart-model.js +194 -153
  207. package/dist/chunks/chart-object-literals.js +26 -25
  208. package/dist/chunks/chart-ui-utils.js +148 -66
  209. package/dist/chunks/chart-ui-utils2.js +68 -149
  210. package/dist/chunks/class-breaks.js +270 -238
  211. package/dist/chunks/combo-bar-line-chart-model.js +122 -101
  212. package/dist/chunks/data-labels-symbol.js +39 -24
  213. package/dist/chunks/data-labels-visibility.js +8 -8
  214. package/dist/chunks/data.js +70 -70
  215. package/dist/chunks/default.js +6 -6
  216. package/dist/chunks/gauge-model.js +71 -71
  217. package/dist/chunks/generate-x-axis-title.js +19 -19
  218. package/dist/chunks/heat-chart-model.js +98 -69
  219. package/dist/chunks/histogram-data.js +24 -24
  220. package/dist/chunks/histogram-model.js +11 -11
  221. package/dist/chunks/index.js +9353 -1079
  222. package/dist/chunks/index2.js +851 -8748
  223. package/dist/chunks/index3.js +1169 -846
  224. package/dist/chunks/index4.js +10969 -677
  225. package/dist/chunks/index5.js +62 -10794
  226. package/dist/chunks/interfaces.js +9 -9
  227. package/dist/chunks/line-chart-model.js +41 -25
  228. package/dist/chunks/model-setter.js +59 -64
  229. package/dist/chunks/model-types.js +1 -1
  230. package/dist/chunks/model-with-line-marker-styling.js +72 -47
  231. package/dist/chunks/model-with-x-guides.js +6 -6
  232. package/dist/chunks/model-with-y-guides.js +52 -67
  233. package/dist/chunks/negative-values-stacked-to-baseline.js +122 -71
  234. package/dist/chunks/pie-chart-data.js +175 -193
  235. package/dist/chunks/pie-chart-model.js +388 -320
  236. package/dist/chunks/radar-chart-model.js +413 -46
  237. package/dist/chunks/resource.js +1 -1
  238. package/dist/chunks/rest-js-object-literals.js +10 -10
  239. package/dist/chunks/rotated-state.js +2 -2
  240. package/dist/chunks/rounded-corners.js +90 -0
  241. package/dist/chunks/scatterplot-model.js +27 -27
  242. package/dist/chunks/serial-chart-data.js +887 -755
  243. package/dist/chunks/serial-chart-model.js +151 -129
  244. package/dist/chunks/series-length.js +18 -18
  245. package/dist/chunks/series-types.js +22 -18
  246. package/dist/chunks/series.js +3 -3
  247. package/dist/chunks/store.js +5 -5
  248. package/dist/chunks/type-guards.js +49 -23
  249. package/dist/chunks/type-guards2.js +61 -52
  250. package/dist/chunks/utils.js +99 -89
  251. package/dist/chunks/utils2.js +9 -9
  252. package/dist/chunks/web-component-utils.js +632 -492
  253. package/dist/chunks/x-bounds.js +98 -97
  254. package/dist/components/arcgis-chart/customElement.d.ts +791 -277
  255. package/dist/components/arcgis-chart/customElement.js +11155 -10958
  256. package/dist/components/arcgis-charts-action-bar/customElement.d.ts +12 -0
  257. package/dist/components/arcgis-charts-action-bar/customElement.js +40 -37
  258. package/dist/components/arcgis-charts-config-axis/customElement.js +70 -64
  259. package/dist/components/arcgis-charts-config-bar-chart/customElement.js +39 -33
  260. package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +30 -30
  261. package/dist/components/arcgis-charts-config-bar-chart-data/index.js +1 -1
  262. package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +35 -37
  263. package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +44 -43
  264. package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +13 -15
  265. package/dist/components/arcgis-charts-config-box-plot/customElement.js +31 -39
  266. package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +17 -17
  267. package/dist/components/arcgis-charts-config-box-plot-data/index.js +1 -1
  268. package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +26 -28
  269. package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +4 -4
  270. package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +14 -17
  271. package/dist/components/arcgis-charts-config-category-format/customElement.js +1 -1
  272. package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +18 -20
  273. package/dist/components/arcgis-charts-config-color-style/customElement.js +1 -1
  274. package/dist/components/arcgis-charts-config-colors/customElement.js +1 -1
  275. package/dist/components/arcgis-charts-config-create-flow/customElement.js +243 -229
  276. package/dist/components/arcgis-charts-config-field-picker/customElement.js +30 -0
  277. package/dist/components/arcgis-charts-config-font-style/customElement.js +4 -4
  278. package/dist/components/arcgis-charts-config-format/customElement.js +94 -87
  279. package/dist/components/arcgis-charts-config-format-popover/customElement.js +8 -11
  280. package/dist/components/arcgis-charts-config-general/customElement.js +5 -5
  281. package/dist/components/arcgis-charts-config-guide/customElement.js +26 -27
  282. package/dist/components/arcgis-charts-config-guide-popover/customElement.js +10 -13
  283. package/dist/components/arcgis-charts-config-guides/customElement.js +1 -1
  284. package/dist/components/arcgis-charts-config-heat-chart/customElement.js +12 -13
  285. package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +66 -78
  286. package/dist/components/arcgis-charts-config-heat-chart-data/index.js +1 -1
  287. package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +58 -59
  288. package/dist/components/arcgis-charts-config-histogram/customElement.js +27 -23
  289. package/dist/components/arcgis-charts-config-histogram-data/customElement.js +27 -27
  290. package/dist/components/arcgis-charts-config-histogram-data/index.js +1 -1
  291. package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +35 -36
  292. package/dist/components/arcgis-charts-config-invalid-input-message/customElement.js +1 -1
  293. package/dist/components/arcgis-charts-config-line-chart/customElement.js +5 -6
  294. package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +19 -19
  295. package/dist/components/arcgis-charts-config-line-chart-data/index.js +1 -1
  296. package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +42 -44
  297. package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +8 -8
  298. package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +7 -8
  299. package/dist/components/arcgis-charts-config-line-style/customElement.js +2 -2
  300. package/dist/components/arcgis-charts-config-number-format/customElement.js +1 -1
  301. package/dist/components/arcgis-charts-config-pie-chart/customElement.js +5 -6
  302. package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +57 -64
  303. package/dist/components/arcgis-charts-config-pie-chart-data/index.js +1 -1
  304. package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +56 -57
  305. package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +66 -67
  306. package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +7 -10
  307. package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +27 -23
  308. package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +80 -80
  309. package/dist/components/arcgis-charts-config-scatter-plot-data/index.js +1 -1
  310. package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +18 -19
  311. package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +9 -11
  312. package/dist/components/arcgis-charts-config-view-charts/customElement.js +57 -26
  313. package/dist/components/arcgis-charts-info-modal/customElement.js +7 -7
  314. package/dist/docs/api.json +1 -1
  315. package/dist/docs/docs.json +1 -1
  316. package/dist/docs/vscode.html-custom-data.json +1 -1
  317. package/dist/docs/web-types.json +1 -1
  318. package/dist/index.d.ts +70 -62
  319. package/dist/index.js +500 -471
  320. package/dist/interfaces.d.ts +57 -14
  321. package/dist/json-schema/index.d.ts +211 -6
  322. package/dist/loader.js +2 -2
  323. package/dist/model/bar-chart-model/bar-chart-model.d.ts +6 -4
  324. package/dist/model/box-plot-model/box-plot-model.d.ts +11 -5
  325. package/dist/model/chart-model/chart-model-base.d.ts +10 -0
  326. package/dist/model/chart-model/chart-model-wrapper.d.ts +24 -0
  327. package/dist/model/chart-model/chart-model.d.ts +2 -1
  328. package/dist/model/combo-bar-line-chart-model/combo-bar-line-chart-model.d.ts +33 -21
  329. package/dist/model/heat-chart-model/heat-chart-model.d.ts +41 -8
  330. package/dist/model/interfaces/chart-interfaces.d.ts +2 -2
  331. package/dist/model/interfaces/common.d.ts +0 -2
  332. package/dist/model/mixins/model-with-guides.d.ts +1 -1
  333. package/dist/model/mixins/model-with-line-marker-styling.d.ts +28 -19
  334. package/dist/model/mixins/model-with-multi-axes.d.ts +62 -99
  335. package/dist/model/pie-chart-model/pie-chart-legend-model.d.ts +7 -55
  336. package/dist/model/pie-chart-model/pie-chart-model.d.ts +61 -2
  337. package/dist/model/properties/data-labels/data-labels-symbol.d.ts +26 -0
  338. package/dist/model/properties/data-tooltip-font-size.d.ts +20 -0
  339. package/dist/model/properties/rotated-state.d.ts +1 -1
  340. package/dist/model/properties/rounded-corners.d.ts +18 -0
  341. package/dist/model/radar-chart-model/radar-chart-model.d.ts +190 -0
  342. package/dist/model/serial-chart-model/serial-chart-model.d.ts +27 -1
  343. package/dist/model/shared/setup-utils.d.ts +3 -3
  344. package/dist/{model.js → model/shared/setup-utils.js} +12 -12
  345. package/dist/model/shared/type-guards.d.ts +38 -22
  346. package/dist/spec/chart-object-literals.d.ts +4 -3
  347. package/dist/spec/data-source.d.ts +17 -3
  348. package/dist/spec/rest-js-object-literals.d.ts +2 -2
  349. package/dist/spec/rest-js-types.d.ts +22 -8
  350. package/dist/spec/web-chart.d.ts +42 -6
  351. package/dist/types/lumina.d.ts +1 -1
  352. package/dist/types/preact.d.ts +1 -1
  353. package/dist/types/react.d.ts +1 -1
  354. package/dist/types/stencil.d.ts +3 -3
  355. package/dist/utils/chart-config/converter/index.js +742 -0
  356. package/dist/utils/chart-config/utils/index.d.ts +58 -9
  357. package/dist/utils/chart-config/validator/index.d.ts +2 -0
  358. package/dist/utils/chart-config/validator/interfaces.d.ts +4 -3
  359. package/dist/utils/components/interfaces.d.ts +2 -0
  360. package/dist/utils/cursor/interfaces.d.ts +21 -0
  361. package/dist/utils/data/categorical-data/index.d.ts +18 -2
  362. package/dist/utils/data/index.d.ts +28 -22
  363. package/dist/utils/data/interfaces.d.ts +4 -3
  364. package/dist/utils/defaults/index.d.ts +31 -6
  365. package/dist/utils/defaults/interfaces.d.ts +73 -4
  366. package/dist/utils/errors/index.d.ts +1 -1
  367. package/dist/utils/layer/index.d.ts +26 -8
  368. package/dist/utils/layer/inline-conversion/interfaces.d.ts +0 -2
  369. package/dist/utils/layer/interfaces.d.ts +0 -12
  370. package/dist/utils/layer/query-features/index.d.ts +8 -3
  371. package/dist/utils/layer/query-parser/index.d.ts +13 -9
  372. package/dist/utils/layer/utils/index.d.ts +22 -5
  373. package/dist/utils/localization/interfaces.d.ts +13 -1
  374. package/dist/utils/misc/index.d.ts +2 -3
  375. package/dist/utils/misc/interfaces.d.ts +1 -0
  376. package/dist/utils/type-guards/chart-types.d.ts +10 -0
  377. package/dist/utils/type-guards/series-types.d.ts +9 -2
  378. package/dist/utils/types/index.d.ts +1 -5
  379. package/package.json +10 -9
  380. package/dist/cdn/3FTJIVFE.js +0 -2
  381. package/dist/cdn/45JPWIBI.js +0 -2
  382. package/dist/cdn/45PJ5TQL.js +0 -2
  383. package/dist/cdn/47HHRDX4.js +0 -2
  384. package/dist/cdn/4OZZXXZF.js +0 -2
  385. package/dist/cdn/547RDEMV.js +0 -2
  386. package/dist/cdn/5HQ2CJEQ.js +0 -2
  387. package/dist/cdn/5MVNVHYG.js +0 -2
  388. package/dist/cdn/6JGLHOFY.js +0 -2
  389. package/dist/cdn/6LQYOBAL.js +0 -2
  390. package/dist/cdn/6PAONFHB.js +0 -2
  391. package/dist/cdn/6SRISPQN.js +0 -3
  392. package/dist/cdn/74JAZF7U.js +0 -2
  393. package/dist/cdn/7BEC5WZB.js +0 -2
  394. package/dist/cdn/7IV6GMF7.js +0 -2
  395. package/dist/cdn/7SNOZDAD.js +0 -2
  396. package/dist/cdn/7YBKGD3V.js +0 -2
  397. package/dist/cdn/A5GIBV5W.js +0 -2
  398. package/dist/cdn/AT2NWWBG.js +0 -2
  399. package/dist/cdn/ATIARKAU.js +0 -2
  400. package/dist/cdn/B7DM7VT6.js +0 -2
  401. package/dist/cdn/BBURKBKE.js +0 -2
  402. package/dist/cdn/BZCVDNC4.js +0 -102
  403. package/dist/cdn/CAJVNPHZ.js +0 -2
  404. package/dist/cdn/CHQDKVVQ.js +0 -4
  405. package/dist/cdn/CPPT5HUK.js +0 -58
  406. package/dist/cdn/CXQOEN77.js +0 -2
  407. package/dist/cdn/D23GGWFM.js +0 -2
  408. package/dist/cdn/DNMVB3A2.js +0 -2
  409. package/dist/cdn/DYC3Q36R.js +0 -2
  410. package/dist/cdn/EQVQRZHJ.js +0 -2
  411. package/dist/cdn/EXTKNE2L.js +0 -2
  412. package/dist/cdn/EZV7JSQJ.js +0 -2
  413. package/dist/cdn/F5Q73CFW.js +0 -2
  414. package/dist/cdn/FAQDMSUC.js +0 -2
  415. package/dist/cdn/FCXI523J.js +0 -2
  416. package/dist/cdn/FJPGZEGK.js +0 -2
  417. package/dist/cdn/FT2K3J7O.js +0 -2
  418. package/dist/cdn/GCSGY6GL.js +0 -2
  419. package/dist/cdn/GUH6CQE6.js +0 -2
  420. package/dist/cdn/GWQJXXP3.js +0 -2
  421. package/dist/cdn/H6NH46AS.js +0 -2
  422. package/dist/cdn/HJHMEVMB.js +0 -2
  423. package/dist/cdn/HUCSTT64.js +0 -2
  424. package/dist/cdn/HX4236ZL.js +0 -2
  425. package/dist/cdn/I2M6YAUU.js +0 -2
  426. package/dist/cdn/IWVS6SKP.js +0 -2
  427. package/dist/cdn/JILAM6NH.js +0 -2
  428. package/dist/cdn/JNNB2DIA.js +0 -2
  429. package/dist/cdn/KC6CFXB7.js +0 -2
  430. package/dist/cdn/KKWXEF5W.js +0 -2
  431. package/dist/cdn/KV4ZPVWQ.js +0 -2
  432. package/dist/cdn/LKY2A3U6.js +0 -2
  433. package/dist/cdn/M75ENKIU.js +0 -2
  434. package/dist/cdn/MHG42BA5.js +0 -2
  435. package/dist/cdn/MKQAQDRM.js +0 -2
  436. package/dist/cdn/MOMKSNIZ.js +0 -2
  437. package/dist/cdn/MRTKZZTF.js +0 -2
  438. package/dist/cdn/NS3THLCD.js +0 -2
  439. package/dist/cdn/NS7OCROO.js +0 -2
  440. package/dist/cdn/NZR4L5AA.js +0 -2
  441. package/dist/cdn/O4M33ZPK.js +0 -2
  442. package/dist/cdn/OVM5QF7Q.js +0 -2
  443. package/dist/cdn/OY6UOUYX.js +0 -2
  444. package/dist/cdn/P3RM2ACY.js +0 -2
  445. package/dist/cdn/P4HSSZRL.js +0 -2
  446. package/dist/cdn/P6SC5DD2.js +0 -2
  447. package/dist/cdn/P74SXC5B.js +0 -2
  448. package/dist/cdn/PAIRUVLU.js +0 -2
  449. package/dist/cdn/PEZCCXQ7.js +0 -2
  450. package/dist/cdn/PKMZ6N6M.js +0 -2
  451. package/dist/cdn/PTFRQF65.js +0 -2
  452. package/dist/cdn/PYKHO4QI.js +0 -2
  453. package/dist/cdn/RG3I5ORH.js +0 -2
  454. package/dist/cdn/RKKWMNWU.js +0 -2
  455. package/dist/cdn/S3BC57BJ.js +0 -4
  456. package/dist/cdn/S6PJHEJ7.js +0 -2
  457. package/dist/cdn/THTYR6IL.js +0 -2
  458. package/dist/cdn/TORIY3OE.js +0 -2
  459. package/dist/cdn/TTDZKISK.js +0 -2
  460. package/dist/cdn/TXSWWAOF.js +0 -2
  461. package/dist/cdn/TZ4GOE2Q.js +0 -2
  462. package/dist/cdn/U67P6YAZ.js +0 -2
  463. package/dist/cdn/UNUPCA4W.js +0 -2
  464. package/dist/cdn/URYNG6OA.js +0 -2
  465. package/dist/cdn/V2XJSJH4.js +0 -2
  466. package/dist/cdn/V76PIVCF.js +0 -2
  467. package/dist/cdn/V7MBHG4F.js +0 -2
  468. package/dist/cdn/VOTZAPI3.js +0 -2
  469. package/dist/cdn/W7X6L2OB.js +0 -127
  470. package/dist/cdn/X6WA2KXK.js +0 -2
  471. package/dist/cdn/XFZX5ULX.js +0 -2
  472. package/dist/cdn/XJFVSX2E.js +0 -2
  473. package/dist/cdn/XMQCH4QI.js +0 -2
  474. package/dist/cdn/Y3CXVO2M.js +0 -2
  475. package/dist/cdn/YIIPYKTL.js +0 -2
  476. package/dist/cdn/YKGZVYK2.js +0 -2
  477. package/dist/cdn/YVVQVAJZ.js +0 -2
  478. package/dist/cdn/YYK7SPXC.js +0 -2
  479. package/dist/cdn/YZQ54BRI.js +0 -2
  480. package/dist/cdn/Z7EBST4A.js +0 -3
  481. package/dist/cdn/ZFM5RGWD.js +0 -142
  482. package/dist/cdn/ZQCUJ7VE.js +0 -2
  483. package/dist/chunks/bar-chart-series.js +0 -15
  484. package/dist/chunks/index6.js +0 -103
  485. package/dist/chunks/index7.js +0 -66
  486. package/dist/chunks/time-zone.js +0 -38
  487. package/dist/components/arcgis-charts-config-field-select/customElement.js +0 -30
  488. /package/dist/cdn/{WVRBLV5L.js → 7NWEE7T2.js} +0 -0
  489. /package/dist/components/{arcgis-charts-config-field-select → arcgis-charts-config-field-picker}/index.js +0 -0
@@ -1,174 +1,207 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { substitute as P } from "@arcgis/core/intl.js";
3
- import { cloneDeep as ae, isEmpty as Ie, memoize as Le } from "lodash-es";
4
- import { S as J } from "./common.js";
5
- import { s as N, u as E, g as re, d as Fe, e as qe, f as Ve, j as ce } from "./utils.js";
6
- import { w as R, bW as Ne, bl as Re, x as ke, Y, c4 as Oe, c7 as De, p as we, aH as le, c0 as Pe, d as Ee, aG as Me, I as $e, a7 as We, bj as Ye, W as Xe, e as je, bm as He, c8 as Ke, v as Ue, c9 as de, bK as Qe, ca as ze, bG as Ge, B as _e, c5 as Ze, an as X, a6 as he, c3 as ne, b9 as Je, k as ee, bo as et, bs as ye, ba as H, bg as me } from "./index2.js";
7
- import { a as M, c as Te, g as Q, e as ge, f 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 { a as rt } from "./index4.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 "./index6.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 { b as ft, a as St } from "./series-length.js";
17
- import { i as Ft, R as ht } from "./rest-js-object-literals.js";
18
- import { i as z } from "./index5.js";
19
- const ts = (t) => {
2
+ import { substitute as M } from "@arcgis/core/intl.js";
3
+ import { cloneDeep as J, memoize as Ye, isEmpty as $e } from "lodash-es";
4
+ import { S as oe } from "./common.js";
5
+ import { s as D, u as Y, a as Ie, g as ye, b as Le, c as Xe, d as He, e as pe } from "./utils.js";
6
+ import { Y as L, aM as $, bi as Ue, bN as je, bO as Ze, bC as Ne, f as Ke, p as ee, W as _e, V as Qe, bP as ze, O as me, aW as Ge, bQ as Je, N as et, t as tt, bR as st, aN as it, Q as at, bS as rt, _ as nt, bw as ot, bT as lt, bU as fe, bV as ct, bW as ut, bX as dt, P as yt, bY as Se, bZ as _, bE as mt, aO as w, aV as Q, M as gt, r as j, a1 as Oe, b_ as W, bA as U, b$ as pt, c0 as ft, c1 as V, c2 as k, c3 as Fe, bB as xe } from "./index.js";
7
+ import { a as E, s as ge, g as te, b as he, c as St } from "./data.js";
8
+ import { a as T, d as I, f as Ft, l as q, t as N, h as X, g as xt, b as ht, e as le } from "./chart-object-literals.js";
9
+ import { d as De, b as Tt } from "./rest-js-object-literals.js";
10
+ import { i as se } from "./index4.js";
11
+ import { q as Bt, W as z, X as ce, H as Ct, Y as bt, Z as At, _ as vt, $ as It, j as Lt } from "./index3.js";
12
+ import { a as P, C as H, b as R } from "./index2.js";
13
+ import { g as Ve, s as Nt } from "./series-types.js";
14
+ import { C as Ot, m as Dt } from "./model-setter.js";
15
+ import { convertChartSpec as Vt } from "../utils/chart-config/converter/index.js";
16
+ import { i as ue, h as kt } from "./type-guards.js";
17
+ import { g as ie } from "./utils2.js";
18
+ import { b as qt, g as Rt } from "./series-length.js";
19
+ const Ns = (s) => {
20
20
  let e;
21
- const s = t.series[0];
22
- return R(s) && (e = s.temporalBinning?.size), e;
23
- }, Tt = (t) => {
21
+ const t = s.series[0];
22
+ return L(t) && (e = t.temporalBinning?.size), e;
23
+ }, wt = (s) => {
24
24
  let e;
25
- const s = t.series[0];
26
- return R(s) && (e = s.temporalBinning?.unit), e;
27
- }, ss = (t) => {
25
+ const t = s.series[0];
26
+ return L(t) && (e = t.temporalBinning?.unit), e;
27
+ }, Os = (s) => {
28
28
  let e;
29
- const s = t.series[0];
30
- return R(s) && (e = s.temporalBinning?.timeAggregationType), e;
31
- }, is = (t) => {
29
+ const t = s.series[0];
30
+ return L(t) && (e = t.temporalBinning?.timeAggregationType), e;
31
+ }, Ds = (s) => {
32
32
  let e;
33
- const s = t.series[0];
34
- return R(s) && (e = s.temporalBinning?.trimIncompleteTimeInterval), e;
35
- }, as = (t) => {
33
+ const t = s.series[0];
34
+ return L(t) && (e = t.temporalBinning?.trimIncompleteTimeInterval), e;
35
+ }, Vs = (s) => {
36
36
  let e;
37
- const s = t.series[0];
38
- return R(s) && (e = s.temporalBinning?.nullPolicy), e;
39
- }, xt = (t, e) => {
40
- e?.series?.forEach((s) => {
41
- R(s) && (s.temporalBinning ??= {}, s.temporalBinning.size = t);
42
- }), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
43
- }, Bt = (t, e) => {
44
- e?.series?.forEach((s) => {
45
- R(s) && (s.temporalBinning ??= {}, s.temporalBinning.nullPolicy = t);
46
- }), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
47
- }, rs = (t, e) => {
48
- e.series?.forEach((s) => {
49
- R(s) && (s.temporalBinning ??= {}, s.temporalBinning.unit = t);
50
- }), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
51
- }, ls = (t, e) => {
52
- e.series?.forEach((s) => {
53
- R(s) && (s.temporalBinning ??= {}, s.temporalBinning.timeAggregationType = t);
54
- }), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
55
- }, ns = (t, e) => {
56
- e.series?.forEach((s) => {
57
- R(s) && (s.temporalBinning ??= {}, s.temporalBinning.trimIncompleteTimeInterval = t);
58
- }), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
59
- }, os = (t) => {
60
- xt(0, t);
37
+ const t = s.series[0];
38
+ return L(t) && (e = t.temporalBinning?.nullPolicy), e;
39
+ }, Pt = (s, e) => {
40
+ e?.series?.forEach((t) => {
41
+ L(t) && (t.temporalBinning ??= {}, t.temporalBinning.size = s);
42
+ });
43
+ }, Et = (s, e) => {
44
+ e?.series?.forEach((t) => {
45
+ L(t) && (t.temporalBinning ??= {}, t.temporalBinning.nullPolicy = s);
46
+ }), D({ config: e, value: null, axisIndex: 1, isMax: !1 }), D({ config: e, value: null, axisIndex: 1, isMax: !0 });
47
+ }, ks = (s, e) => {
48
+ e.series?.forEach((t) => {
49
+ L(t) && (t.temporalBinning ??= {}, t.temporalBinning.unit = s);
50
+ }), D({ config: e, value: null, axisIndex: 1, isMax: !1 }), D({ config: e, value: null, axisIndex: 1, isMax: !0 });
51
+ }, qs = (s, e) => {
52
+ e.series?.forEach((t) => {
53
+ L(t) && (t.temporalBinning ??= {}, t.temporalBinning.timeAggregationType = s);
54
+ }), D({ config: e, value: null, axisIndex: 1, isMax: !1 }), D({ config: e, value: null, axisIndex: 1, isMax: !0 });
55
+ }, Rs = (s, e) => {
56
+ e.series?.forEach((t) => {
57
+ L(t) && (t.temporalBinning ??= {}, t.temporalBinning.trimIncompleteTimeInterval = s);
58
+ }), D({ config: e, value: null, axisIndex: 1, isMax: !1 }), D({ config: e, value: null, axisIndex: 1, isMax: !0 });
59
+ }, Mt = (s) => {
60
+ Pt(0, s);
61
+ };
62
+ var Wt = Object.defineProperty, Yt = Object.getOwnPropertyDescriptor, $t = (s, e, t, r) => {
63
+ for (var i = Yt(e, t), a = s.length - 1, n; a >= 0; a--)
64
+ (n = s[a]) && (i = n(e, t, i) || i);
65
+ return i && Wt(e, t, i), i;
61
66
  };
62
- function us(t, e) {
63
- let s;
64
- return e !== void 0 && (s = { ...e }, s.legend !== void 0 && (s.legend.position = t)), s;
67
+ const Xt = (s) => {
68
+ let e;
69
+ return $(s) ? e = s.outTimeZone : s?.series.forEach((t) => {
70
+ (t.type === T.BarSeries || t.type === T.RadarSeries || t.type === T.LineSeries) && t.temporalBinning && (e = t.temporalBinning.outTimeZone);
71
+ }), e || (e = s?.axes?.[0]?.valueFormat.type === T.DateAxisFormat ? s.axes[0].valueFormat.intlOptions.timeZone : void 0), e;
72
+ }, ke = (s, e) => {
73
+ const t = Ue(s);
74
+ $(e) ? s ? e.outTimeZone = t : delete e.outTimeZone : e?.series.forEach((r) => {
75
+ (r.type === T.BarSeries || r.type === T.RadarSeries || r.type === T.LineSeries) && (s ? (r.temporalBinning ??= {}, r.temporalBinning.outTimeZone = t) : r.temporalBinning && delete r.temporalBinning.outTimeZone);
76
+ }), e?.axes?.[0]?.valueFormat.type === T.DateAxisFormat && (s ? e.axes[0].valueFormat.intlOptions.timeZone = t : delete e.axes[0].valueFormat.intlOptions.timeZone);
77
+ };
78
+ class Ht extends Ot {
79
+ /**
80
+ * Gets the time zone for the chart.
81
+ */
82
+ get timeZone() {
83
+ return Xt(this._config);
84
+ }
85
+ set timeZone(e) {
86
+ ke(e, this._config), this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"));
87
+ }
88
+ }
89
+ $t([
90
+ Dt
91
+ ], Ht.prototype, "timeZone");
92
+ function ws(s, e) {
93
+ let t;
94
+ return e !== void 0 && (t = { ...e }, t.legend !== void 0 && (t.legend.position = s)), t;
65
95
  }
66
- function cs(t, e) {
67
- let s;
68
- return e !== void 0 && (s = { ...e }, s.legend !== void 0 && (s.legend.visible = t)), s;
96
+ function Ps(s, e) {
97
+ let t;
98
+ return e !== void 0 && (t = { ...e }, t.legend !== void 0 && (t.legend.visible = s)), t;
69
99
  }
70
- function ds(t, e) {
71
- let s;
72
- return e !== void 0 && (s = { ...e, rotated: t }), s;
100
+ function Es(s, e) {
101
+ let t;
102
+ return e !== void 0 && (t = { ...e, rotated: s }), t;
73
103
  }
74
- function Ct(t) {
104
+ function Ut(s) {
75
105
  let e;
76
- return t !== void 0 && (e = { ...t }, delete e.axes?.[0]?.minimum, delete e.axes?.[0]?.maximum, delete e.axes?.[1]?.minimum, delete e.axes?.[1]?.maximum), e;
106
+ return s !== void 0 && (e = { ...s }, delete e.axes?.[0]?.minimum, delete e.axes?.[0]?.maximum, delete e.axes?.[1]?.minimum, delete e.axes?.[1]?.maximum), e;
77
107
  }
78
- function ys(t, e) {
79
- return e != null || Be(t);
108
+ function Ms(s, e) {
109
+ return e != null || Ne(s);
80
110
  }
81
- async function ms(t) {
82
- const { config: e, layer: s, abortSignal: r } = t;
83
- let a = !1;
84
- return se(s) || ot(e) ? e && se(s) && (a = await Re({ config: e, layer: s, abortSignal: r })) : a = !0, a;
111
+ async function Ws(s) {
112
+ const { config: e, layer: t, abortSignal: r } = s;
113
+ let i = !1;
114
+ return ue(t) || kt(e) ? e && ue(t) && (i = await Ze({ config: e, layer: t, abortSignal: r })) : i = !0, i;
85
115
  }
86
- async function bt(t) {
116
+ async function jt(s) {
87
117
  const {
88
118
  queryObject: e,
89
- chartConfig: s,
119
+ chartConfig: t,
90
120
  splitByField: r,
91
- errorStrings: a,
92
- abortSignal: i,
121
+ errorStrings: i,
122
+ abortSignal: a,
93
123
  runtimeDataFilters: n,
94
124
  ignoreViewExtent: o,
95
- setTimeBinningInfoWhenNotProvided: c,
96
- returnFeaturesExtent: m,
97
- chartLimits: F
98
- } = t;
99
- let l = [], g;
100
- const d = ae(s), y = d.series[0], u = je({
125
+ setTimeBinningInfoWhenNotProvided: l,
126
+ returnFeaturesExtent: c,
127
+ returnStatisticsAggregatedIds: p,
128
+ chartLimits: f
129
+ } = s;
130
+ let u = [], m;
131
+ const d = J(t), y = d.series[0], g = rt({
101
132
  queryObject: e,
102
133
  chartConfig: d,
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) && He({
107
- xAxisValueFormatType: Ke(d),
108
- setTimeBinningInfoWhenNotProvided: c,
137
+ if (g.outStatistics?.[0]?.outStatisticFieldName && (g.outStatistics[0].outStatisticFieldName = Bt.outStatistics.outStatisticFieldName), L(y) && nt({
138
+ xAxisValueFormatType: ot(d),
139
+ setTimeBinningInfoWhenNotProvided: l,
109
140
  seriesConfig: y,
110
141
  queryObject: e
111
- }) && Ue(r, e)) {
112
- const { temporalBinning: p, x: B } = y, { uniqueQuery: C } = de({
142
+ }) && lt(r, e)) {
143
+ const { temporalBinning: F, x } = y, { uniqueQuery: S } = fe({
113
144
  chartConfig: d,
114
- queryConfig: u,
145
+ queryConfig: g,
115
146
  queryObject: e,
116
- setTimeBinningInfoWhenNotProvided: c,
117
- returnFeaturesExtent: m,
118
- chartLimits: F
119
- }), h = s.axes?.[0].valueFormat.type === v.DateAxisFormat ? s.axes[0].valueFormat.intlOptions.timeZone : void 0;
120
- g = await Qe({
147
+ setTimeBinningInfoWhenNotProvided: l,
148
+ returnFeaturesExtent: c,
149
+ chartLimits: f
150
+ }), A = t.axes?.[0].valueFormat.type === T.DateAxisFormat ? t.axes[0].valueFormat.intlOptions.timeZone : void 0;
151
+ m = await ct({
121
152
  queryObject: e,
122
- dateField: B,
153
+ dateField: x,
123
154
  splitByField: r,
124
- queryConfig: C,
125
- axisTimeZone: h,
126
- temporalBinning: p,
127
- errorStrings: a,
128
- abortSignal: i
129
- }), l = Array.from(
155
+ queryConfig: S,
156
+ axisTimeZone: A,
157
+ temporalBinning: F,
158
+ returnStatisticsAggregatedIds: p,
159
+ errorStrings: i,
160
+ abortSignal: a
161
+ }), u = Array.from(
130
162
  new Set(
131
- g.flatMap((f) => {
132
- const { stackedAttributes: k } = f;
133
- let T = [];
134
- return k && (T = k.map((S) => S[r]).filter((S) => S !== void 0)), T;
163
+ m.flatMap((C) => {
164
+ const { stackedAttributes: B } = C;
165
+ let v = [];
166
+ return B && (v = B.map((b) => b[r]).filter((b) => b !== void 0)), v;
135
167
  })
136
168
  ).values()
137
169
  );
138
170
  } else {
139
- const { uniqueQuery: p } = de({
171
+ const { uniqueQuery: F } = fe({
140
172
  chartConfig: d,
141
173
  queryObject: e,
142
- queryConfig: u,
143
- setTimeBinningInfoWhenNotProvided: c,
144
- returnFeaturesExtent: m,
145
- chartLimits: F
146
- }), { elementCount: B } = await ze({
174
+ queryConfig: g,
175
+ setTimeBinningInfoWhenNotProvided: l,
176
+ returnFeaturesExtent: c,
177
+ chartLimits: f
178
+ }), { elementCount: x } = await ut({
147
179
  chartConfig: d,
148
180
  queryObject: e,
149
- queryConfig: u,
150
- behaviorAfterLimit: F?.behaviorAfterLimit,
151
- numberMaxOfFeaturesToFetch: p.num,
152
- abortSignal: i
181
+ queryConfig: g,
182
+ behaviorAfterLimit: f?.behaviorAfterLimit,
183
+ numberMaxOfFeaturesToFetch: F.num,
184
+ abortSignal: a
153
185
  });
154
- g = await Ge({
186
+ m = await dt({
155
187
  queryObject: e,
156
- queryConfig: p,
157
- featureCount: B,
158
- errorStrings: a,
159
- abortSignal: i
160
- }), l = Array.from(
188
+ queryConfig: F,
189
+ featureCount: x,
190
+ returnStatisticsAggregatedIds: p,
191
+ errorStrings: i,
192
+ abortSignal: a
193
+ }), u = Array.from(
161
194
  new Set(
162
- g.map((C) => C.attributes[r]).filter((C) => C !== void 0)
195
+ m.map((S) => S.attributes[r]).filter((S) => S !== void 0)
163
196
  ).values()
164
197
  );
165
198
  }
166
- return { allValues: l, preFetchedQueryResponse: g };
199
+ return { allValues: u, preFetchedQueryResponse: m };
167
200
  }
168
- function At(t, e) {
169
- const s = /* @__PURE__ */ new Map();
170
- return t.series.forEach((r) => {
171
- let a = le({
201
+ function Zt(s, e) {
202
+ const t = /* @__PURE__ */ new Map();
203
+ return s.series.forEach((r) => {
204
+ let i = me({
172
205
  where: r.query?.where,
173
206
  // normalize the value so it matches what we get from getAllValues()
174
207
  // Refer to https://devtopia.esri.com/WebGIS/arcgis-charts/issues/8127
@@ -177,897 +210,996 @@ function At(t, e) {
177
210
  // Refer to https://devtopia.esri.com/WebGIS/arcgis-charts/issues/8078
178
211
  escape: !1
179
212
  });
180
- e && a !== null && (a = Number(a));
181
- const i = xe([r]);
182
- i !== void 0 && s.set(i, [
183
- ...s.get(i) ?? [],
184
- a
213
+ e && i !== null && (i = Number(i));
214
+ const a = Ve([r]);
215
+ a !== void 0 && t.set(a, [
216
+ ...t.get(a) ?? [],
217
+ i
185
218
  ]);
186
- }), s;
219
+ }), t;
187
220
  }
188
- function vt(t) {
189
- const { allValues: e, configUniqueValuesPerSeriesType: s, initialConfigWasEmpty: r } = t, a = /* @__PURE__ */ new Map();
190
- return Array.from(s.keys()).forEach((i) => {
191
- const n = s.get(i) ?? [];
221
+ function Kt(s) {
222
+ const { allValues: e, configUniqueValuesPerSeriesType: t, initialConfigWasEmpty: r } = s, i = /* @__PURE__ */ new Map();
223
+ return Array.from(t.keys()).forEach((a) => {
224
+ const n = t.get(a) ?? [];
192
225
  let o = [];
193
- r ? o = e : e.forEach((c) => {
194
- n.includes(c) || o.push(c);
195
- }), a.set(i, o);
196
- }), a;
226
+ r ? o = e : e.forEach((l) => {
227
+ n.includes(l) || o.push(l);
228
+ }), i.set(a, o);
229
+ }), i;
197
230
  }
198
- function It(t) {
199
- const { chartConfig: e, missingValue: s, splitByField: r, seriesTemplate: a } = t, i = JSON.parse(
231
+ function _t(s) {
232
+ const { chartConfig: e, missingValue: t, splitByField: r, seriesTemplate: i } = s, a = JSON.parse(
200
233
  JSON.stringify({
201
234
  ...e.series[0],
202
- ...a
235
+ ...i
203
236
  })
204
237
  );
205
- if (i.query) {
206
- if (i.id = `${s}-${e.series.length}-${Date.now()}`, i.name = `${s}`, i.query.outStatistics?.[0] !== void 0) {
207
- const o = i.id;
208
- i.query.outStatistics[0].outStatisticFieldName = o, "y" in i && (i.y = o);
238
+ if (a.query) {
239
+ if (t === null ? a.id = H.nullValue : t === "" ? a.id = H.emptyStringValue : a.id = `${t}`, a.name = `${t}`, a.query.outStatistics?.[0] !== void 0) {
240
+ const o = a.id;
241
+ a.query.outStatistics[0].outStatisticFieldName = o, "y" in a && (a.y = o);
209
242
  }
210
- const n = typeof s == "number" || s === null ? s : `'${s}'`;
211
- i.query.where = `${r}=${n}`;
243
+ const n = typeof t == "number" || t === null ? t : `'${t}'`;
244
+ a.query.where = `${r}=${n}`;
212
245
  }
213
- return i;
246
+ return a;
214
247
  }
215
- async function Lt(t) {
248
+ async function Qt(s) {
216
249
  const {
217
250
  updateSplitBySeries: e,
218
- config: s,
251
+ config: t,
219
252
  queryObject: r,
220
- errorStrings: a,
221
- abortSignal: i,
253
+ errorStrings: i,
254
+ abortSignal: a,
222
255
  runtimeDataFilters: n,
223
256
  ignoreViewExtent: o,
224
- setTimeBinningInfoWhenNotProvided: c,
225
- returnFeaturesExtent: m,
226
- chartLimits: F
227
- } = t, { seriesTemplate: l } = e ?? {};
228
- let g;
229
- if (r && !se(r) && e !== void 0 && s !== void 0 && (s.series.length > 0 || l !== void 0) && e.addMissingSeries) {
230
- const d = s.series.length === 0;
231
- s.series.length === 0 && l !== void 0 && s.series.push(l);
232
- const y = Y(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 = We(u, p), C = B ? Ye(B) : !1, h = await bt({
257
+ setTimeBinningInfoWhenNotProvided: l,
258
+ returnFeaturesExtent: c,
259
+ returnStatisticsAggregatedIds: p,
260
+ chartLimits: f
261
+ } = s, { seriesTemplate: u } = e ?? {};
262
+ let m;
263
+ if (r && !ue(r) && e !== void 0 && t !== void 0 && (t.series.length > 0 || u !== void 0) && e.addMissingSeries) {
264
+ const d = t.series.length === 0;
265
+ t.series.length === 0 && u !== void 0 && t.series.push(u);
266
+ const y = ee(t.series);
267
+ if (y === P.BoxPlotMonoFieldAndSplitBy || y === P.BoxPlotMultiFieldsAndSplitBy || y === P.BoxPlotMonoFieldAndCategoryAndSplitBy || y === P.BarAndLineSplitBy || y === P.BarAndLineSplitByNoAggregation) {
268
+ const g = et(t.series[0]?.query?.where), F = tt(r), x = st(g, F), S = x ? it(x) : !1, A = await jt({
235
269
  queryObject: r,
236
- chartConfig: s,
237
- splitByField: u,
238
- abortSignal: i,
270
+ chartConfig: t,
271
+ splitByField: g,
272
+ abortSignal: a,
239
273
  runtimeDataFilters: n,
240
274
  ignoreViewExtent: o,
241
- setTimeBinningInfoWhenNotProvided: c,
242
- returnFeaturesExtent: m,
243
- chartLimits: F,
244
- errorStrings: a
245
- }), { allValues: f } = h;
246
- if ({ preFetchedQueryResponse: g } = h, f.length > 0) {
247
- const k = At(s, C), T = vt({
248
- allValues: f,
249
- configUniqueValuesPerSeriesType: k,
275
+ setTimeBinningInfoWhenNotProvided: l,
276
+ returnFeaturesExtent: c,
277
+ returnStatisticsAggregatedIds: p,
278
+ chartLimits: f,
279
+ errorStrings: i
280
+ }), { allValues: C } = A;
281
+ if ({ preFetchedQueryResponse: m } = A, C.length > 0) {
282
+ const B = Zt(t, S), v = Kt({
283
+ allValues: C,
284
+ configUniqueValuesPerSeriesType: B,
250
285
  initialConfigWasEmpty: d
251
286
  });
252
- Array.from(T.keys()).forEach((S) => {
253
- (T.get(S) ?? []).forEach((L) => {
254
- s.series.push(
255
- It({
256
- chartConfig: s,
257
- seriesTemplate: l,
258
- missingValue: L,
259
- splitByField: u
287
+ Array.from(v.keys()).forEach((b) => {
288
+ (v.get(b) ?? []).forEach((O) => {
289
+ t.series.push(
290
+ _t({
291
+ chartConfig: t,
292
+ seriesTemplate: u,
293
+ missingValue: O,
294
+ splitByField: g
260
295
  })
261
296
  );
262
- }), d && s.series.shift();
297
+ }), d && t.series.shift();
263
298
  });
264
299
  }
265
300
  }
266
301
  }
267
- return g;
302
+ return m;
268
303
  }
269
- function qt(t, e) {
270
- e && !Be(e) && (e = Ee({ chartConfig: e, queryObject: t }));
304
+ function zt(s, e) {
305
+ e && !Ne(e) && (e = Je({ chartConfig: e, queryObject: s }));
271
306
  }
272
- async function gs(t) {
307
+ async function Ys(s) {
273
308
  const {
274
309
  configToAlter: e,
275
- layer: s,
310
+ layer: t,
276
311
  addMissingSeries: r,
277
- updateSplitBySeries: a,
278
- chartContainer: i,
312
+ updateSplitBySeries: i,
313
+ chartContainer: a,
279
314
  queryObject: n,
280
315
  abortSignal: o,
281
- runtimeDataFilters: c,
282
- ignoreViewExtent: m,
283
- setTimeBinningInfoWhenNotProvided: F,
284
- returnFeaturesExtent: l,
285
- chartLimits: g,
286
- errorStrings: d
287
- } = t;
288
- let y = e, u;
289
- return y && (qt(s, y), y = await rt(y, s, void 0, o), r && n && (u = await Lt({
290
- updateSplitBySeries: a,
291
- config: y,
316
+ runtimeDataFilters: l,
317
+ ignoreViewExtent: c,
318
+ setTimeBinningInfoWhenNotProvided: p,
319
+ returnFeaturesExtent: f,
320
+ returnStatisticsAggregatedIds: u,
321
+ chartLimits: m,
322
+ timeZone: d,
323
+ errorStrings: y
324
+ } = s;
325
+ let g = e, F;
326
+ return g && (zt(t, g), g = await Vt(g, t, void 0, o), r && n && (F = await Qt({
327
+ updateSplitBySeries: i,
328
+ config: g,
292
329
  queryObject: n,
293
- errorStrings: d,
330
+ errorStrings: y,
294
331
  abortSignal: o,
295
- runtimeDataFilters: c,
296
- ignoreViewExtent: m,
297
- setTimeBinningInfoWhenNotProvided: F,
298
- returnFeaturesExtent: l,
299
- chartLimits: g
300
- })), y = Ne(y, i)), { alteredConfig: y, preFetchedQueryResponse: u };
332
+ runtimeDataFilters: l,
333
+ ignoreViewExtent: c,
334
+ setTimeBinningInfoWhenNotProvided: p,
335
+ returnFeaturesExtent: f,
336
+ returnStatisticsAggregatedIds: u,
337
+ chartLimits: m
338
+ })), g = je(g, a), ke(d, g)), { alteredConfig: g, preFetchedQueryResponse: F };
301
339
  }
302
- function Vt(t, e) {
303
- let s = !1;
340
+ function Gt(s, e) {
341
+ let t = !1;
304
342
  if (e !== void 0) {
305
- const r = Xe({ key: _e.Average, splitBy: e });
306
- s = Number.isFinite(t[r]);
343
+ const r = at({ key: yt.Average, splitBy: e });
344
+ t = Number.isFinite(s[r]);
307
345
  }
308
- return s;
346
+ return t;
309
347
  }
310
- function ps(t) {
311
- const { data: e, config: s, showEmptySeries: r } = t, a = s.series.length, i = ae(s);
348
+ function $s(s) {
349
+ const { data: e, config: t, showEmptySeries: r } = s, i = t.series.length, a = J(t);
312
350
  let n = !1;
313
- if (!r && a > 1 && e) {
314
- const o = ke(e), c = xe(s?.series), m = Y(s?.series), F = /* @__PURE__ */ new Set();
315
- switch (c) {
316
- case v.ComboLineAndBarSeries:
317
- case v.BarSeries:
318
- case v.RadarSeries:
319
- case v.LineSeries: {
320
- i.series.forEach((g) => {
351
+ if (!r && i > 1 && e) {
352
+ const o = Ke(e), l = Ve(t?.series), c = ee(t?.series), p = /* @__PURE__ */ new Set();
353
+ switch (l) {
354
+ case T.ComboLineAndBarSeries:
355
+ case T.BarSeries:
356
+ case T.RadarSeries:
357
+ case T.LineSeries: {
358
+ a.series.forEach((u) => {
321
359
  if (Array.isArray(o)) {
322
- let d = "";
323
- "y" in g && (d = Array.isArray(g.y) ? g.y[0] : g.y, m === D.BarAndLineSplitByNoAggregation && (d = `${d}_${le({ where: g.query?.where, keepSurroundingQuotes: !1, escape: !1 })}`), o.some(
324
- (u) => Pe({
325
- dataItem: u,
326
- x: g.x,
327
- y: d,
328
- aggregationType: s.series[0].query?.outStatistics?.[0]?.statisticType
360
+ let m = "";
361
+ "y" in u && (m = Array.isArray(u.y) ? u.y[0] : u.y, c === P.BarAndLineSplitByNoAggregation && (m = `${m}_${me({ where: u.query?.where, keepSurroundingQuotes: !1, escape: !1 })}`), o.some(
362
+ (y) => Ge({
363
+ dataItem: y,
364
+ x: u.x,
365
+ y: m,
366
+ aggregationType: t.series[0].query?.outStatistics?.[0]?.statisticType
329
367
  })
330
- ) && F.add(g));
368
+ ) && p.add(u));
331
369
  }
332
370
  });
333
371
  break;
334
372
  }
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
373
+ case T.BoxPlotSeries: {
374
+ if (_e(t)) {
375
+ const u = Qe(t);
376
+ t.series.forEach((m) => {
377
+ let d, y;
378
+ m.type === T.BoxPlotSeries ? (d = e.dataItems, y = d?.some(
379
+ (g) => ze({
380
+ dataItem: g,
381
+ splitBy: m.query?.where,
382
+ showOutliers: u
345
383
  })
346
- )) : d.type === v.LineSeries && (y = e.meanLines, u = y?.some(
347
- (p) => Vt(p, d.query?.where)
348
- )), u && F.add(d);
384
+ )) : m.type === T.LineSeries && (d = e.meanLines, y = d?.some(
385
+ (g) => Gt(g, m.query?.where)
386
+ )), y && p.add(m);
349
387
  });
350
388
  }
351
389
  break;
352
390
  }
353
391
  }
354
- const l = Array.from(F.values());
355
- n = l.length > 0 && l.length < a, n && (i.series = l);
392
+ const f = Array.from(p.values());
393
+ n = f.length > 0 && f.length < i, n && (a.series = f);
356
394
  }
357
- return { seriesFilteredOut: n, filteredConfig: i };
395
+ return { seriesFilteredOut: n, filteredConfig: a };
358
396
  }
359
- const fs = (t) => t.hideEmptyRowsAndColumns, Ss = (t, e) => {
360
- t.hideEmptyRowsAndColumns = e;
361
- }, Fs = (t, e) => {
362
- const s = t.series[0];
363
- s.heatRulesType = e;
364
- }, hs = (t) => t.series[0].heatRulesType, Ts = (t, e) => {
365
- const s = t.series[0];
366
- s.gradientRules = e;
367
- }, xs = (t) => t.series[0].gradientRules, Bs = (t) => {
368
- const { yField: e, config: s, layerInfo: r } = t, { layerFieldsInfo: a } = r, i = oe(1, s), n = Nt(s), o = z(s), c = s.series[0];
369
- if (typeof e == "string" && n !== e && c && (c.y = e, Ct(s), n === i || o)) {
370
- const m = w(a, e);
371
- E(s, 1, m);
397
+ const Xs = (s) => s.hideEmptyRowsAndColumns, Hs = (s, e) => {
398
+ s.hideEmptyRowsAndColumns = e;
399
+ }, Us = (s, e) => {
400
+ const t = s.series[0];
401
+ t.heatRulesType = e;
402
+ }, js = (s) => s.series[0].heatRulesType, Zs = (s, e) => {
403
+ const t = s.series[0];
404
+ t.gradientRules = e;
405
+ }, Ks = (s) => s.series[0].gradientRules, _s = (s) => {
406
+ const { yField: e, config: t, layerInfo: r, commonStrings: i } = s, { layerFieldsInfo: a } = r, n = ie(1, t), o = Jt(t), l = se(t), c = t.series[0];
407
+ if (typeof e == "string" && o !== e && c) {
408
+ if (c.y = e, Ut(t), o === n || l) {
409
+ const p = R(a, e);
410
+ Y(t, 1, p);
411
+ }
412
+ qe({ commonStrings: i, config: t, layerInfo: r });
372
413
  }
373
- }, Nt = (t) => t.series[0].y ?? "", Cs = (t) => {
374
- const { binning: e, config: s, commonStrings: r } = t, a = s.series[0];
375
- if (a.xTemporalBinning = e, e?.unit !== void 0 && e.unit in r.utilsStrings.heatChartCalendarDatePartsUnits) {
376
- const i = r.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
377
- E(s, 0, i);
414
+ }, Jt = (s) => s.series[0].y ?? "", Qs = (s) => {
415
+ const { binning: e, config: t, commonStrings: r } = s, i = t.series[0];
416
+ if (i.xTemporalBinning = e, e?.unit !== void 0 && e.unit in r.utilsStrings.heatChartCalendarDatePartsUnits) {
417
+ const a = r.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
418
+ Y(t, 0, a);
378
419
  }
379
- }, bs = (t) => t.series[0].xTemporalBinning, As = (t) => {
380
- const { binning: e, config: s, commonStrings: r } = t, a = s.series[0];
381
- if (a.yTemporalBinning = e, e?.unit !== void 0 && e.unit in r.utilsStrings.heatChartCalendarDatePartsUnits) {
382
- const i = r.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
383
- E(s, 1, i);
420
+ G({ axisIndex: 0, commonStrings: r, config: t });
421
+ }, es = (s) => s.series[0].xTemporalBinning, zs = (s) => {
422
+ const { binning: e, config: t, commonStrings: r } = s, i = t.series[0];
423
+ if (i.yTemporalBinning = e, e?.unit !== void 0 && e.unit in r.utilsStrings.heatChartCalendarDatePartsUnits) {
424
+ const a = r.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
425
+ Y(t, 1, a);
384
426
  }
385
- }, vs = (t) => t.series[0].yTemporalBinning, Rt = (t, e) => {
427
+ G({ axisIndex: 1, commonStrings: r, config: t });
428
+ }, ts = (s) => s.series[0].yTemporalBinning, ss = (s, e) => {
386
429
  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 = {
430
+ const t = e.axes?.[0]?.valueFormat?.type === "category" ? N.Category : N.YValue, r = de(e)[0], i = e.axes?.[1]?.valueFormat?.type === "category" ? N.Category : N.YValue, a = de(e)[1], n = {
388
431
  ...e.orderOptions.data ?? {},
389
- orderType: V.MultiAxes
432
+ orderType: N.MultiAxes
390
433
  };
391
- r === J.customSort && s === V.Category && (n.orderByX = [...t]), i === J.customSort && a === V.Category && (n.orderByY = [...t]), Object.keys(n).length > 1 && (e.orderOptions.data = n);
392
- }, Is = (t, e) => {
393
- const s = e.series[0];
394
- s.gridLine && (s.gridLine.width = t);
395
- }, Ls = (t) => t.series[0].gridLine?.width, qs = (t, e) => {
396
- const s = e.series[0], r = t?.length === 4 && t.every((a) => typeof a == "number");
397
- s.gridLine && r && (s.gridLine.color = t);
398
- }, Vs = (t) => t.series[0].gridLine?.color, Ns = (t, e) => {
399
- const s = e.legend;
400
- s && (s.position = t);
401
- }, Rs = (t) => t.legend?.position ?? st.Bottom, ks = (t) => t.series[0].query?.outStatistics?.[0]?.onStatisticField, Os = (t) => {
402
- const { field: e, config: s, layerInfo: r, commonStrings: a } = t, i = s.series[0].query?.outStatistics?.[0], n = _(s, r, a);
403
- i ? (i.onStatisticField = e, i.outStatisticFieldName = `${i.statisticType}_${e}`) : s.series[0].query = {
434
+ r === oe.customSort && t === N.Category && (n.orderByX = [...s]), a === oe.customSort && i === N.Category && (n.orderByY = [...s]), Object.keys(n).length > 1 && (e.orderOptions.data = n);
435
+ }, Gs = (s, e) => {
436
+ const t = e.series[0];
437
+ t.gridLine && (t.gridLine.width = s);
438
+ }, Js = (s) => s.series[0].gridLine?.width, ei = (s, e) => {
439
+ const t = e.series[0], r = s?.length === 4 && s.every((i) => typeof i == "number");
440
+ t.gridLine && r && (t.gridLine.color = s);
441
+ }, ti = (s) => s.series[0].gridLine?.color, si = (s, e) => {
442
+ const t = e.legend;
443
+ t && (t.position = s);
444
+ }, ii = (s) => s.legend?.position ?? Ft.Bottom, ai = (s) => s.series[0].query?.outStatistics?.[0]?.onStatisticField, ri = (s) => {
445
+ const { field: e, config: t, layerInfo: r, commonStrings: i } = s, a = t.series[0].query?.outStatistics?.[0], n = ne(t, r, i);
446
+ a ? (a.onStatisticField = e, a.outStatisticFieldName = `${a.statisticType}_${e}`) : t.series[0].query = {
404
447
  outStatistics: [
405
448
  {
406
449
  onStatisticField: e,
407
- outStatisticFieldName: `${q.Count}_${e}`,
408
- statisticType: q.Count
450
+ outStatisticFieldName: `${I.Count}_${e}`,
451
+ statisticType: I.Count
409
452
  }
410
453
  ]
411
- }, n && s.title && (s.title.content.text = j(s, r, a));
412
- }, Ds = (t) => t.series[0].query?.outStatistics?.[0].statisticType ?? q.Count, ws = (t) => {
413
- const { aggregationType: e, config: s, layerInfo: r, commonStrings: a } = t, i = s.series[0]?.query?.outStatistics?.[0], n = _(s, r, a);
414
- i && e !== q.NoAggregation && (i.statisticType = e, i.outStatisticFieldName = `${e}_${i.onStatisticField}`), (e === q.Count || e === q.Sum) && kt(K.Zero, s), n && s.title && (s.title.content.text = j(s, r, a));
415
- }, Ps = (t) => t.nullPolicy, kt = (t, e) => {
416
- e.nullPolicy = t;
417
- }, Es = (t) => t.series[0].emptyCells, Ms = (t, e) => {
418
- e.series[0].emptyCells = t;
419
- }, $s = (t) => t.series[0].emptyCells?.text, Ws = (t, e) => {
420
- e.series[0].emptyCells ? e.series[0].emptyCells.text = t : e.series[0].emptyCells = { text: t };
421
- }, Ys = (t) => t.includeLeapDay, Xs = (t, e) => {
422
- e.includeLeapDay = t;
423
- }, js = (t) => t.series[0].emptyCells?.symbol, Hs = (t, e) => {
424
- e.series[0].emptyCells ? e.series[0].emptyCells.symbol = t : e.series[0].emptyCells = { symbol: t };
454
+ }, n && t.title && (t.title.content.text = Z(t, r, i));
455
+ }, ni = (s) => s.series[0].query?.outStatistics?.[0].statisticType ?? I.Count, oi = (s) => {
456
+ const { aggregationType: e, config: t, layerInfo: r, commonStrings: i } = s, a = t.series[0]?.query?.outStatistics?.[0], n = ne(t, r, i);
457
+ a && e !== I.NoAggregation && (a.statisticType = e, a.outStatisticFieldName = `${e}_${a.onStatisticField}`), (e === I.Count || e === I.Sum) && is(X.Zero, t), n && t.title && (t.title.content.text = Z(t, r, i));
458
+ }, li = (s) => s.nullPolicy, is = (s, e) => {
459
+ e.nullPolicy = s;
460
+ }, ci = (s) => s.series[0].emptyCells, ui = (s, e) => {
461
+ e.series[0].emptyCells = s;
462
+ }, di = (s) => s.series[0].emptyCells?.text, yi = (s, e) => {
463
+ e.series[0].emptyCells ? e.series[0].emptyCells.text = s : e.series[0].emptyCells = { text: s };
464
+ }, mi = (s) => s.includeLeapDay, gi = (s, e) => {
465
+ e.includeLeapDay = s;
466
+ }, pi = (s) => s.series[0].emptyCells?.symbol, fi = (s, e) => {
467
+ e.series[0].emptyCells ? e.series[0].emptyCells.symbol = s : e.series[0].emptyCells = { symbol: s };
425
468
  };
426
- function Ks(t) {
427
- return t.viewType;
469
+ function Si(s) {
470
+ return s.viewType;
428
471
  }
429
- function Us(t, e) {
430
- Ze(e) || (e.viewType = t);
472
+ function Fi(s, e) {
473
+ mt(e) || (e.viewType = s);
431
474
  }
432
- function Qs(t) {
433
- return t.series[0].classBreaksRules?.breaksCount ?? U.classBreaks.breaksCount;
475
+ function xi(s) {
476
+ return s.series[0].classBreaksRules?.breaksCount ?? H.classBreaks.breaksCount;
434
477
  }
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
478
+ function hi(s, e) {
479
+ e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.breaksCount = s ?? H.classBreaks.breaksCount : e.series[0].classBreaksRules = {
480
+ breaksCount: s ?? H.classBreaks.breaksCount
438
481
  };
439
482
  }
440
- function Gs(t) {
441
- return t.series[0].classBreaksRules?.classificationMethod;
483
+ function Ti(s) {
484
+ return s.series[0].classBreaksRules?.classificationMethod;
442
485
  }
443
- function _s(t, e) {
444
- e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.classificationMethod = t : e.series[0].classBreaksRules = {
445
- classificationMethod: t
446
- }, e.series[0].classBreaksRules.breaksCount = e.series[0].classBreaksRules.breaksCount ?? U.classBreaks.breaksCount;
486
+ function Bi(s, e) {
487
+ e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.classificationMethod = s : e.series[0].classBreaksRules = {
488
+ classificationMethod: s
489
+ }, e.series[0].classBreaksRules.breaksCount = e.series[0].classBreaksRules.breaksCount ?? H.classBreaks.breaksCount;
447
490
  }
448
- function Zs(t, e) {
449
- e.firstDayOfWeek = t;
491
+ function Ci(s, e) {
492
+ e.firstDayOfWeek = s;
450
493
  }
451
- function Js(t) {
452
- return t.firstDayOfWeek;
494
+ function bi(s) {
495
+ return s.firstDayOfWeek;
453
496
  }
454
- function ei(t) {
455
- return t.series[0].classBreaksRules?.colorRampInfo?.name;
497
+ function Ai(s) {
498
+ return s.series[0].classBreaksRules?.colorRampInfo?.name;
456
499
  }
457
- function ti(t, e) {
500
+ function vi(s, e) {
458
501
  e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.colorRampInfo = {
459
502
  ...e.series[0].classBreaksRules.colorRampInfo,
460
- name: t
503
+ name: s
461
504
  } : e.series[0].classBreaksRules = {
462
505
  colorRampInfo: {
463
- name: t,
506
+ name: s,
464
507
  flipped: !1
465
508
  }
466
509
  };
467
510
  }
468
- function si(t) {
469
- return t.series[0].classBreaksRules?.colorRampInfo?.flipped ?? !1;
511
+ function Ii(s) {
512
+ return s.series[0].classBreaksRules?.colorRampInfo?.flipped ?? !1;
470
513
  }
471
- function ii(t, e) {
514
+ function Li(s, e) {
472
515
  e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.colorRampInfo = {
473
516
  ...e.series[0].classBreaksRules.colorRampInfo,
474
- flipped: t
517
+ flipped: s
475
518
  } : e.series[0].classBreaksRules = {
476
519
  colorRampInfo: {
477
- flipped: t
520
+ flipped: s
478
521
  }
479
522
  };
480
523
  }
481
- function $(t) {
482
- const { seriesIndex: e, xAxisField: s, aggregationType: r, config: a, layerInfo: i, commonStrings: n } = t, o = X(i?.layer).idField;
483
- let c;
484
- const m = a.series[e ?? 0];
485
- let F = !1, l = !1, g = !1;
486
- if (m === void 0) {
487
- const u = a.series;
488
- F = u.slice(0, e).every((p) => b(p)), l = u.slice(0, e).every((p) => A(p)), g = u.slice(0, e).every((p) => pe(p));
524
+ const as = [
525
+ q.DayOfMonth,
526
+ q.MonthOfYear
527
+ ], Te = (s) => {
528
+ let e;
529
+ return _(s) ? e = ce() : (w(s) || Q(s)) && (e = z()), e;
530
+ }, Be = (s) => w(s) || Q(s), Ce = (s) => {
531
+ const { axisIndex: e, commonStrings: t, config: r, valueFormat: i } = s, a = r.axes?.[e]?.valueFormat;
532
+ i !== void 0 && a?.type !== i.type && Ie({ config: r, commonStrings: t, valueFormat: i, axisIndex: e });
533
+ }, rs = (s, e) => {
534
+ let t;
535
+ return e === 0 ? t = s.series[0]?.xTemporalBinning : e === 1 && (t = s.series[0]?.yTemporalBinning), t;
536
+ }, be = (s, e) => s.utilsStrings.heatChartCalendarDatePartsUnits[e] ?? "", Ae = (s, e) => {
537
+ let t = as[s];
538
+ return s === 0 && e?.unit === q.DayOfWeek ? t = q.HourOfDay : s === 1 && e?.unit === q.HourOfDay && (t = q.DayOfWeek), {
539
+ type: T.CalendarDateParts,
540
+ unit: t
541
+ };
542
+ }, ns = (s) => {
543
+ let e = {};
544
+ switch (s.unit) {
545
+ case q.DayOfMonth:
546
+ e = { day: "2-digit" };
547
+ break;
548
+ case q.DayOfWeek:
549
+ e = { weekday: "short" };
550
+ break;
551
+ case q.HourOfDay:
552
+ e = { hour: "numeric", hour12: !1 };
553
+ break;
554
+ case q.MonthOfYear:
555
+ e = { month: "short" };
556
+ break;
557
+ default:
558
+ e = z().intlOptions;
559
+ break;
560
+ }
561
+ return {
562
+ type: T.DateAxisFormat,
563
+ intlOptions: e
564
+ };
565
+ }, ve = (s) => {
566
+ const { axisIndex: e, binning: t, commonStrings: r, config: i, fieldName: a, layerInfo: n } = s, o = i.series[0], l = ie(e, i), c = R(n.layerFieldsInfo, a);
567
+ e === 0 ? o.xTemporalBinning = t : e === 1 && (o.yTemporalBinning = t), t !== void 0 && (l === "" || l === c || l === be(r, t.unit) || l === r.xAxis) && Y(i, e, be(r, t.unit));
568
+ }, G = (s) => {
569
+ const { axisIndex: e, commonStrings: t, config: r } = s, i = rs(r, e), a = i ? ns(i) : void 0;
570
+ Ie({ config: r, commonStrings: t, valueFormat: a, axisIndex: e });
571
+ }, qe = (s) => {
572
+ const { commonStrings: e, config: t, layerInfo: r } = s, i = t.series[0]?.x ?? "", a = t.series[0]?.y ?? "", n = Se(r.layerFieldsInfo, i), o = Se(r.layerFieldsInfo, a), l = Te(n), c = Te(o), p = Be(n) && Be(o), f = _(n) && _(o);
573
+ if (Ce({ axisIndex: 0, commonStrings: e, config: t, valueFormat: l }), Ce({ axisIndex: 1, commonStrings: e, config: t, valueFormat: c }), p) {
574
+ const u = es(t) === void 0, m = ts(t) === void 0;
575
+ u && (ve({
576
+ axisIndex: 0,
577
+ binning: Ae(0, t.series[0].yTemporalBinning),
578
+ commonStrings: e,
579
+ config: t,
580
+ fieldName: i,
581
+ layerInfo: r
582
+ }), G({
583
+ axisIndex: 0,
584
+ commonStrings: e,
585
+ config: t
586
+ })), m && (ve({
587
+ axisIndex: 1,
588
+ binning: Ae(1, t.series[0].xTemporalBinning),
589
+ commonStrings: e,
590
+ config: t,
591
+ fieldName: a,
592
+ layerInfo: r
593
+ }), G({
594
+ axisIndex: 1,
595
+ commonStrings: e,
596
+ config: t
597
+ }));
598
+ }
599
+ f && (t.series[0].xTemporalBinning = void 0, t.series[0].yTemporalBinning = void 0);
600
+ };
601
+ function os(s) {
602
+ const e = {};
603
+ return s.series.forEach((t) => {
604
+ Nt(t) && "nullCategory" in t && t.nullCategory !== void 0 && (e.text ??= t.nullCategory.text, t.type === T.BarSeries ? e.fillSymbol ??= t.nullCategory.fillSymbol : e.markerSymbol ??= t.nullCategory.markerSymbol);
605
+ }), e.text || e.fillSymbol || e.markerSymbol ? e : void 0;
606
+ }
607
+ function ae(s) {
608
+ const { seriesIndex: e, xAxisField: t, aggregationType: r, config: i, layerInfo: a, commonStrings: n } = s, o = j(a?.layer).idField;
609
+ let l;
610
+ const c = i.series[e ?? 0];
611
+ let p = !1, f = !1, u = !1;
612
+ if (c === void 0) {
613
+ const B = i.series;
614
+ p = B.slice(0, e).every((v) => V(v)), f = B.slice(0, e).every((v) => k(v)), u = B.slice(0, e).every((v) => Fe(v));
489
615
  } else
490
- F = b(m), l = A(m), g = pe(m);
491
- F ? c = dt({
616
+ p = V(c), f = k(c), u = Fe(c);
617
+ p ? l = bt({
492
618
  commonStrings: n,
493
619
  seriesIndex: e,
494
620
  objectIDField: o
495
- }) : l ? c = yt({
621
+ }) : f ? l = At({
496
622
  commonStrings: n,
497
623
  seriesIndex: e,
498
624
  objectIDField: o
499
- }) : g ? c = mt(n, o) : c = gt({
625
+ }) : u ? l = vt(n, o) : l = It({
500
626
  seriesIndex: e,
501
627
  objectIDField: o,
502
628
  commonStrings: n
503
629
  });
504
- const d = a.series[0]?.dataLabels, y = {
505
- ...c,
506
- x: s,
630
+ const m = i.series[0]?.dataLabels, d = "nullCategory" in i.series[0] ? os(i) : void 0, y = "binTemporalData" in i.series[0] ? i.series[0].binTemporalData : void 0, g = "classBreakRules" in i.series[0] ? i.series[0].classBreakRules : void 0, F = "xTemporalBinning" in i.series[0] ? i.series[0].xTemporalBinning : void 0, x = "yTemporalBinning" in i.series[0] ? i.series[0].yTemporalBinning : void 0, S = "emptyCells" in i.series[0] ? i.series[0].emptyCells : void 0, A = i.series[0].query && "fetchNullValues" in i.series[0].query ? i.series[0].query?.fetchNullValues : void 0, C = {
631
+ ...l,
632
+ x: t,
507
633
  y: "",
508
634
  dataLabels: {
509
- ...c.dataLabels,
510
- type: c.dataLabels?.type ?? v.Text,
511
- content: { ...c.dataLabels?.content, ...d?.content, type: Ft.TS },
512
- visible: d?.visible ?? !1
513
- }
635
+ ...l.dataLabels,
636
+ type: l.dataLabels?.type ?? T.Text,
637
+ content: { ...l.dataLabels?.content, ...m?.content, type: Tt.TS },
638
+ visible: m?.visible ?? !1
639
+ },
640
+ ...d !== void 0 ? { nullCategory: d } : {},
641
+ ...y !== void 0 ? { binTemporalData: y } : {},
642
+ ...g !== void 0 ? { classBreakRules: g } : {},
643
+ ...F !== void 0 ? { xTemporalBinning: F } : {},
644
+ ...x !== void 0 ? { yTemporalBinning: x } : {},
645
+ ...S !== void 0 ? { emptyCells: S } : {}
514
646
  };
515
- if (y.query = {
516
- groupByFieldsForStatistics: [s]
517
- }, r !== q.NoAggregation && o !== void 0) {
518
- const u = `${r}_${o}_0`.toUpperCase();
519
- y.y = u, y.query.outStatistics = [
647
+ if (C.query = {
648
+ groupByFieldsForStatistics: [t],
649
+ ...A !== void 0 ? { fetchNullValues: A } : {}
650
+ }, r !== I.NoAggregation && o !== void 0) {
651
+ const B = `${r}_${o}_0`.toUpperCase();
652
+ C.y = B, C.query.outStatistics = [
520
653
  {
521
654
  statisticType: r,
522
655
  onStatisticField: o,
523
- outStatisticFieldName: u
656
+ outStatisticFieldName: B
524
657
  }
525
658
  ];
526
659
  }
527
- if (R(a.series[0]) && R(y)) {
528
- let u;
529
- if (a?.series?.[0] !== void 0 && (u = Y(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
- }
660
+ if (L(i.series[0]) && L(C)) {
661
+ let B = wt(i);
662
+ B === le.Quarter && (B = le.Month), C.temporalBinning = {
663
+ ...i.series[0]?.temporalBinning,
664
+ unit: B
665
+ };
536
666
  }
537
- return ae(y);
667
+ return J(C);
538
668
  }
539
- function j(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 = "";
542
- if (Te({
669
+ function Z(s, e, t) {
670
+ const { layerFieldsInfo: r } = e, { idField: i, isTraditionalTypeOID: a } = j(e.layer), n = E(s), o = K(s), l = we(s), c = re(s), p = a && (o.length === 0 || o.includes(i)), f = Ct(l, t), u = p ? "" : o.map((S) => R(r ?? [], S)).join(", "), m = R(r ?? [], n), d = R(r ?? [], c), y = s.series.some((S) => W(S)), g = y ? "category" : "xAxisField", F = m;
671
+ let x = "";
672
+ if (ge({
543
673
  fieldName: n,
544
674
  numericFields: o,
545
675
  fieldList: r
546
676
  }))
547
- C = P(s.titleLabels.aggrTypeOfAggrFields, {
548
- aggregationType: l,
549
- aggregationFields: g
677
+ x = M(t.titleLabels.aggrTypeOfAggrFields, {
678
+ aggregationType: f,
679
+ aggregationFields: u
550
680
  });
551
- else if (c === q.NoAggregation) {
552
- const h = F ? a : g;
553
- if (m === "") {
554
- const f = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
555
- C = P(s.titleLabels[f], {
556
- aggregationType: h,
557
- [p]: B
681
+ else if (l === I.NoAggregation) {
682
+ const S = p ? i : u;
683
+ if (c === "") {
684
+ const A = y ? "aggrTypeCategory" : "aggrTypeXAxisField";
685
+ x = M(t.titleLabels[A], {
686
+ aggregationType: S,
687
+ [g]: F
558
688
  });
559
689
  } else {
560
- const f = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
561
- C = P(s.titleLabels[f], {
562
- aggregationType: h,
563
- [p]: B,
564
- splitByField: y
690
+ const A = y ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
691
+ x = M(t.titleLabels[A], {
692
+ aggregationType: S,
693
+ [g]: F,
694
+ splitByField: d
565
695
  });
566
696
  }
567
- } else if (c === q.Count)
568
- if (m === "") {
569
- const h = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
570
- C = P(s.titleLabels[h], {
571
- aggregationType: l,
572
- [p]: B
697
+ } else if (l === I.Count)
698
+ if (c === "") {
699
+ const S = y ? "aggrTypeCategory" : "aggrTypeXAxisField";
700
+ x = M(t.titleLabels[S], {
701
+ aggregationType: f,
702
+ [g]: F
573
703
  });
574
704
  } else {
575
- const h = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
576
- C = P(s.titleLabels[h], {
577
- aggregationType: l,
578
- [p]: B,
579
- splitByField: y
705
+ const S = y ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
706
+ x = M(t.titleLabels[S], {
707
+ aggregationType: f,
708
+ [g]: F,
709
+ splitByField: d
580
710
  });
581
711
  }
582
- 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
712
+ else if (c !== "") {
713
+ const S = y ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
714
+ x = M(t.titleLabels[S], {
715
+ aggregationType: f,
716
+ aggregationField: u,
717
+ [g]: F,
718
+ splitByField: d
589
719
  });
590
720
  } 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
721
+ const S = y ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
722
+ x = M(t.titleLabels[S], {
723
+ aggregationType: f,
724
+ aggregationFields: u,
725
+ [g]: F
596
726
  });
597
727
  }
598
- return C;
728
+ return x;
599
729
  }
600
- const Ce = (t) => le({
601
- where: t.query?.where,
730
+ const Re = (s) => me({
731
+ where: s.query?.where,
602
732
  normalize: !1,
603
733
  escape: !1
604
- }) ?? "", be = (t) => t?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? q.NoAggregation, ue = Le(
605
- (t) => {
606
- const e = t?.series?.[0]?.query?.where?.split("=")[0].trim() ?? "";
607
- return Je(t?.series?.[0]?.query?.where) ? "" : e;
734
+ }) ?? "", we = (s) => s?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? I.NoAggregation, re = Ye(
735
+ (s) => {
736
+ const e = s?.series?.[0]?.query?.where?.split("=")[0].trim() ?? "";
737
+ return gt(s?.series?.[0]?.query?.where) ? "" : e;
608
738
  },
609
- (t) => t?.series?.[0]?.query?.where
610
- ), G = (t) => {
739
+ (s) => s?.series?.[0]?.query?.where
740
+ ), K = (s) => {
611
741
  let e = [];
612
- if (ue(t) === "")
613
- e = t?.series.map((s) => {
614
- const r = s.query?.outStatistics?.map((a) => a.onStatisticField) ?? [];
615
- return r?.length > 0 ? r : s.y;
742
+ if (re(s) === "")
743
+ e = s?.series.map((t) => {
744
+ const r = t.query?.outStatistics?.map((i) => i.onStatisticField) ?? [];
745
+ return r?.length > 0 ? r : t.y;
616
746
  }).flat() ?? [];
617
747
  else {
618
- const s = t?.series?.[0], r = s?.query?.outStatistics?.[0]?.onStatisticField ?? [s?.y].flat()[0];
748
+ const t = s?.series?.[0], r = t?.query?.outStatistics?.[0]?.onStatisticField ?? [t?.y].flat()[0];
619
749
  e = r !== void 0 ? [r] : [];
620
750
  }
621
- return e.filter((s) => s !== "");
751
+ return e.filter((t) => t !== "");
622
752
  };
623
- function Ot(t) {
624
- const { numericFields: e, aggregationType: s, config: r, layerInfo: a } = t;
625
- let i = !1;
626
- s === q.Count ? i = !0 : s === q.NoAggregation && (i = e.every((c) => {
627
- const m = a.layerFieldsInfo.find((F) => F.name === c);
628
- return m !== void 0 ? me(m) : !1;
629
- })), ce(r, 1, i);
630
- const n = r.series.some((c) => b(c)), o = r.series.some((c) => A(c));
753
+ function Pe(s) {
754
+ const { splitByField: e, numericFields: t, layer: r, seriesIndex: i } = s, a = j(r).idField ?? "";
755
+ return e === "" ? t[i] ?? a : t[0] ?? a;
756
+ }
757
+ function ls(s) {
758
+ const { numericFields: e, aggregationType: t, config: r, layerInfo: i } = s;
759
+ let a = !1;
760
+ t === I.Count ? a = !0 : t === I.NoAggregation && (a = e.every((l) => {
761
+ const c = i.layerFieldsInfo.find((p) => p.name === l);
762
+ return c !== void 0 ? xe(c) : !1;
763
+ })), pe(r, 1, a);
764
+ const n = r.series.some((l) => V(l)), o = r.series.some((l) => k(l));
631
765
  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);
766
+ const l = E(r), c = i.layerFieldsInfo.find((f) => f.name === l), p = c !== void 0 && xe(c);
767
+ pe(r, 0, p);
634
768
  }
635
769
  }
636
- const ie = (t) => {
770
+ const de = (s) => {
637
771
  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)];
772
+ if ($(s)) {
773
+ const t = s.orderOptions?.data?.orderByX ?? [""], r = s.orderOptions?.data?.orderByY ?? [""], i = s.axes?.[0]?.valueFormat?.type === "category" ? N.Category : N.YValue, a = s.axes?.[1]?.valueFormat?.type === "category" ? N.Category : N.YValue;
774
+ e = [he(t, i), he(r, a)];
641
775
  } 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)];
776
+ const t = s.orderOptions?.data?.orderType ?? N.Category, r = s.orderOptions?.data && "orderBy" in s.orderOptions.data ? s.orderOptions.data.orderBy : xt.Ascending;
777
+ e = [St(r, t)];
644
778
  }
645
779
  return e;
646
780
  };
647
- function Dt(t) {
648
- const { xAxisField: e, numericFields: s, aggregationType: r, config: a, layerInfo: i, commonStrings: n } = t, { layerFieldsInfo: o } = i;
649
- let c = !1;
650
- const m = $({
651
- config: a,
781
+ function cs(s) {
782
+ const { xAxisField: e, numericFields: t, aggregationType: r, config: i, layerInfo: a, commonStrings: n } = s, { layerFieldsInfo: o } = a, l = ae({
783
+ config: i,
652
784
  xAxisField: e,
653
785
  aggregationType: r,
654
- layerInfo: i,
786
+ layerInfo: a,
655
787
  seriesIndex: 0,
656
788
  commonStrings: n
657
- }), F = Q({
658
- config: a,
789
+ }), c = te({
790
+ config: i,
659
791
  xAxisField: e,
660
- numericFields: s,
792
+ numericFields: t,
661
793
  aggregationType: r,
662
- layer: i.layer,
794
+ layer: a.layer,
795
+ fieldList: o
796
+ }).name, p = E(i), f = K(i), u = ge({
797
+ fieldName: p,
798
+ numericFields: f,
663
799
  fieldList: o
664
- }).name, l = {
665
- ...m,
666
- id: `series_${Date.now()}`,
667
- name: n.axisLabels.values,
668
- x: ee,
669
- y: F
670
- }, g = [];
671
- for (const y of s)
672
- g.push({
673
- onStatisticField: y,
674
- outStatisticFieldName: `${y}_0`.toUpperCase(),
800
+ }) ? i.series[0] : void 0, m = `series_${Date.now()}`, d = u?.id ?? m, y = u?.name ?? n.axisLabels.values, F = {
801
+ ...u ?? l,
802
+ id: d,
803
+ name: y,
804
+ x: U,
805
+ y: c
806
+ }, x = [];
807
+ for (const S of t)
808
+ x.push({
809
+ onStatisticField: S,
810
+ outStatisticFieldName: `${S}_0`.toUpperCase(),
675
811
  statisticType: r
676
812
  });
677
- l.query = { outStatistics: g };
678
- const d = a.series[0];
679
- return d !== void 0 && (l.id = d.id, (b(l) && b(d) || A(l) && A(d)) && W(l, d), a.colorMatch || (O(d) && O(l) ? l.fillSymbol = d.fillSymbol : (b(l) && b(d) || A(l) && A(d)) && (l.lineSymbol = d.lineSymbol, l.markerSymbol = d.markerSymbol), c = !0), l.id = d.id, d.name !== m.name && (l.name = d.name)), a.series.length === 1 && ((b(l) || A(l)) && W(l, a.series[0]), a.colorMatch || (O(l) ? l.fillSymbol = a.series[0].fillSymbol : (b(l) || A(l)) && (l.lineSymbol = a.series[0].lineSymbol, l.markerSymbol = a.series[0].markerSymbol), c = !0)), a.colorMatch = !c, [l];
813
+ return F.query = { outStatistics: x }, i.series.length === 1 && ((V(F) || k(F)) && Me(F, i.series[0]), W(F) ? F.fillSymbol = i.series[0].fillSymbol : (V(F) || k(F)) && (F.lineSymbol = i.series[0].lineSymbol, F.markerSymbol = i.series[0].markerSymbol)), [F];
680
814
  }
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 = $({
686
- config: a,
815
+ function Ee(s) {
816
+ const { xAxisField: e, numericFields: t, aggregationType: r, config: i, layerInfo: a, commonStrings: n } = s, { layerFieldsInfo: o } = a, l = j(a.layer).idField, c = [];
817
+ for (let d = 0; d < t.length; d += 1) {
818
+ const y = ae({
819
+ config: i,
687
820
  xAxisField: e,
688
821
  aggregationType: r,
689
- layerInfo: i,
690
- seriesIndex: u,
822
+ layerInfo: a,
823
+ seriesIndex: d,
691
824
  commonStrings: n
692
- }), B = a.series[u]?.y, C = typeof B == "string" ? B : Q({
693
- config: a,
825
+ }), g = i.series[d]?.y, F = typeof g == "string" && g.trim() !== "" && !o.find((O) => O.name === g) ? g : te({
826
+ config: i,
694
827
  xAxisField: e,
695
- numericFields: s,
828
+ numericFields: t,
696
829
  aggregationType: r,
697
- layer: i.layer,
698
- numericFieldIndex: u,
830
+ layer: a.layer,
831
+ numericFieldIndex: d,
699
832
  fieldList: o
700
- }).name, h = s[u];
701
- let f = {
702
- ...p,
703
- query: {
704
- ...p.query
705
- }
833
+ }).name, x = t[d], S = i.series.find(
834
+ (O) => O.query?.where === void 0 && (O.query?.outStatistics?.length === 1 && O.query?.outStatistics?.[0]?.onStatisticField === x || O.query?.outStatistics === void 0 && (O.y === x || O.x === x))
835
+ ), A = x !== l ? x : y.id, C = S?.id ?? A, B = S?.name ?? R(o, x) ?? C, v = S ?? y, b = {
836
+ ...v,
837
+ id: C,
838
+ name: B
706
839
  };
707
- s && h !== c && (f = {
708
- ...f,
709
- id: h,
710
- name: w(o, h)
711
- });
712
- let k = h;
713
- f.query !== void 0 && (r !== q.NoAggregation ? (k = C, f.query.outStatistics = [
840
+ let h = x;
841
+ b.query !== void 0 && (r !== I.NoAggregation ? (h = b.type === T.HeatSeries && S?.type === T.HeatSeries ? x : F, b.query.outStatistics = [
714
842
  {
715
- ...p.query?.outStatistics?.[0] ?? {},
716
- onStatisticField: h,
717
- outStatisticFieldName: C,
843
+ ...v.query?.outStatistics?.[0] ?? {},
844
+ onStatisticField: x,
845
+ outStatisticFieldName: F,
718
846
  statisticType: r
719
847
  }
720
- ]) : delete f.query.outStatistics), f.y = k;
721
- const T = a.series.find(
722
- (S) => S.query?.outStatistics?.[0]?.onStatisticField === h && S.query.where === void 0 || S.query?.outStatistics === void 0 && (S.y === h || S.x === h)
723
- );
724
- if (T !== void 0 && typeof T.y == "string" && T.y.trim() !== "") {
725
- (b(f) && b(T) || A(f) && A(T)) && W(f, T), a.colorMatch || (O(f) && O(T) ? f.fillSymbol = T.fillSymbol : (b(f) && b(T) || A(f) && A(T)) && (f.lineSymbol = T.lineSymbol, f.markerSymbol = T.markerSymbol), F = !0);
726
- const S = $({
727
- config: a,
728
- xAxisField: e,
729
- aggregationType: r,
730
- layerInfo: i,
731
- seriesIndex: u,
732
- commonStrings: n
733
- });
734
- f.id = T.id, T.id !== S.id && T.name !== S.name && (f.id = T.id, f.name = T.name), f.assignToSecondValueAxis = T.assignToSecondValueAxis, f.type === v.HeatSeries && T.type === v.HeatSeries && (f.y = T.y, f.heatRulesType = T.heatRulesType);
735
- }
736
- m.push(f);
848
+ ]) : delete b.query.outStatistics), b.y = h, c.push(b);
737
849
  }
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)
850
+ const p = c.filter((d) => W(d)), f = c.filter(
851
+ (d) => V(d) || k(d)
852
+ ), u = i.series.filter((d) => W(d)), m = i.series.filter(
853
+ (d) => V(d) || k(d)
742
854
  );
743
- return d.length === 1 && l.length === 1 && !a.colorMatch && (O(d[0]) && O(l[0]) && (l[0].fillSymbol = d[0].fillSymbol), F = !0), y.length === 1 && g.length === 1 && ((b(y[0]) && b(g[0]) || A(y[0]) && A(g[0])) && W(g[0], y[0]), a.colorMatch || ((b(y[0]) && b(g[0]) || A(y[0]) && A(g[0])) && (g[0].lineSymbol = y[0].lineSymbol, g[0].markerSymbol = y[0].markerSymbol), F = !0)), a.colorMatch = !F, m;
855
+ return u.length === 1 && p.length === 1 && W(u[0]) && W(p[0]) && (p[0].fillSymbol = u[0].fillSymbol), m.length === 1 && f.length === 1 && ((V(m[0]) && V(f[0]) || k(m[0]) && k(f[0])) && Me(f[0], m[0]), (V(m[0]) && V(f[0]) || k(m[0]) && k(f[0])) && (f[0].lineSymbol = m[0].lineSymbol, f[0].markerSymbol = m[0].markerSymbol)), c;
744
856
  }
745
- function ai(t) {
746
- const { aggregationType: e, config: s, layerInfo: r, commonStrings: a } = t, { layerFieldsInfo: i, layer: n } = r, o = M(s), c = G(s), m = _(s, r, a), F = ve(s, r, a);
747
- if (s.series.forEach((l, g) => {
748
- const d = Q({
749
- config: s,
857
+ function Ni(s) {
858
+ const { aggregationType: e, config: t, layerInfo: r, commonStrings: i } = s, { layerFieldsInfo: a, layer: n } = r, o = E(t), l = K(t), c = re(t), p = ne(t, r, i), f = We(t, r, i);
859
+ if (t.series.forEach((u, m) => {
860
+ const d = te({
861
+ config: t,
750
862
  xAxisField: o,
751
- numericFields: c,
863
+ numericFields: l,
752
864
  aggregationType: e,
865
+ splitByField: c,
753
866
  layer: n,
754
- seriesIndex: g,
755
- numericFieldIndex: g,
756
- fieldList: i
867
+ seriesIndex: m,
868
+ numericFieldIndex: m,
869
+ fieldList: a
757
870
  }).name;
758
- e !== q.NoAggregation ? (l.y = d, l.query = {
759
- ...l.query,
760
- outStatistics: [
871
+ u.y = d;
872
+ const y = Pe({
873
+ splitByField: c,
874
+ numericFields: l,
875
+ layer: n,
876
+ seriesIndex: m
877
+ }), g = u.query?.outStatistics?.[0]?.onStatisticField ?? y;
878
+ u.query = {
879
+ ...u.query,
880
+ outStatistics: e === I.NoAggregation ? void 0 : [
761
881
  {
762
- ...l.query?.outStatistics?.[0],
882
+ ...u.query?.outStatistics?.[0],
763
883
  outStatisticFieldName: d,
764
884
  statisticType: e,
765
- onStatisticField: l.query?.outStatistics?.[0]?.onStatisticField ?? c[g]
885
+ onStatisticField: g
766
886
  }
767
887
  ]
768
- }) : (delete l.query?.outStatistics, l.y = c[g]);
769
- }), m && s.title && (s.title.content.text = j(s, r, a)), F && s.series[0].type !== v.HeatSeries) {
770
- const l = re({
771
- config: s,
888
+ }, "temporalBinning" in u && u.temporalBinning !== void 0 && (u.temporalBinning.nullPolicy = e === I.NoAggregation ? X.Interpolate : X.Null), e === I.NoAggregation && Mt(t);
889
+ }), p && t.title && (t.title.content.text = Z(t, r, i)), f && t.series[0].type !== T.HeatSeries) {
890
+ const u = ye({
891
+ config: t,
772
892
  layerInfo: r,
773
- commonStrings: a,
774
- numericFields: c,
893
+ commonStrings: i,
894
+ numericFields: l,
775
895
  aggregationType: e
776
896
  });
777
- E(s, 1, l);
897
+ Y(t, 1, u);
778
898
  }
779
899
  }
780
- function wt(t) {
900
+ function us(s) {
781
901
  const {
782
902
  splitByField: e,
783
- xAxisField: s,
903
+ xAxisField: t,
784
904
  numericFields: r,
785
- aggregationType: a,
786
- config: i,
905
+ aggregationType: i,
906
+ config: a,
787
907
  layerInfo: n,
788
908
  commonStrings: o,
789
- 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({
794
- xAxisField: s,
909
+ splitByFieldInfos: l
910
+ } = s, { layer: c, layerFieldsInfo: p } = n, { categoriesArray: f, splitByFieldType: u } = l, m = Pe({
911
+ splitByField: e,
912
+ numericFields: r,
913
+ layer: c,
914
+ seriesIndex: 0
915
+ });
916
+ let d = [];
917
+ if (f.length === 0) {
918
+ d = Ee({
919
+ xAxisField: t,
795
920
  numericFields: r,
796
- aggregationType: a,
797
- config: i,
921
+ aggregationType: i,
922
+ config: a,
798
923
  layerInfo: n,
799
924
  commonStrings: o
800
925
  });
801
- for (const p of y)
802
- p.query && (p.query.where = `${e}=''`);
926
+ for (const y of d)
927
+ y.query && (y.query.where = `${e}=''`);
803
928
  } else
804
- for (let p = 0; p < l.length; p += 1) {
805
- const B = l[p], C = Q({
806
- config: i,
807
- xAxisField: s,
929
+ for (let y = 0; y < f.length; y += 1) {
930
+ const g = f[y], F = te({
931
+ config: a,
932
+ xAxisField: t,
808
933
  numericFields: r,
809
- aggregationType: a,
934
+ aggregationType: i,
810
935
  layer: n.layer,
811
- seriesIndex: p,
936
+ seriesIndex: y,
812
937
  splitByField: e,
813
- fieldList: F
814
- }).name, h = $({
815
- config: i,
816
- xAxisField: s,
817
- aggregationType: a,
938
+ fieldList: p
939
+ }).name, x = ae({
940
+ config: a,
941
+ xAxisField: t,
942
+ aggregationType: i,
818
943
  layerInfo: n,
819
- seriesIndex: p,
944
+ seriesIndex: y,
820
945
  commonStrings: o
821
- }), f = he({
946
+ }), S = Oe({
822
947
  queryObject: n.layer,
823
948
  fieldName: e,
824
- fieldValue: B ?? ""
825
- }), k = `${B}`, S = {
826
- ...h,
827
- id: k,
828
- name: f ?? k,
829
- y: C,
949
+ fieldValue: g ?? ""
950
+ }), A = `${g}`, C = a.series.find(
951
+ (O) => String(Re(O)).trim().replace(/'/gu, "") === A
952
+ ), B = C?.id ?? A, v = C?.name ?? S ?? B, b = C ?? x, h = {
953
+ ...b,
954
+ id: B,
955
+ name: v,
956
+ y: F,
830
957
  query: {
831
- ...h.query,
832
- where: `${e}=${g === ht.String && B !== null ? `'${B}'` : B}`,
833
- outStatistics: a !== q.NoAggregation ? [
958
+ ...b.query,
959
+ where: `${e}=${u === De.String && g !== null ? `'${g}'` : g}`,
960
+ outStatistics: i !== I.NoAggregation ? [
834
961
  {
835
- ...h.query?.outStatistics?.[0] ?? {},
836
- onStatisticField: d,
837
- outStatisticFieldName: C,
838
- statisticType: a
962
+ ...b.query?.outStatistics?.[0] ?? {},
963
+ onStatisticField: m,
964
+ outStatisticFieldName: F,
965
+ statisticType: i
839
966
  }
840
967
  ] : void 0
841
968
  }
842
969
  };
843
- a === q.NoAggregation && (S.query !== void 0 && (delete S.query.outStatistics, delete S.query.groupByFieldsForStatistics), S.y = d);
844
- const I = i.series.find(
845
- (L) => String(Ce(L)).trim().replace(/'/gu, "") === k
846
- );
847
- I !== void 0 && ((b(S) && b(I) || A(S) && A(I)) && W(S, I), i.colorMatch || (O(S) && O(I) ? S.fillSymbol = I.fillSymbol : (b(S) && b(I) || A(S) && A(I)) && (S.lineSymbol = I.lineSymbol, S.markerSymbol = I.markerSymbol), u = !0), S.id = I.id, S.name = I.name, S.assignToSecondValueAxis = I.assignToSecondValueAxis), S.query && (S.query.fetchNullValues = i.series.some((L) => L.query?.fetchNullValues)), y.push(S);
970
+ d.push(h);
848
971
  }
849
- return i.colorMatch = !u, y;
972
+ return d;
850
973
  }
851
- const ri = (t) => {
974
+ const Oi = (s) => {
852
975
  const {
853
976
  xAxisFieldName: e,
854
- splitByField: s,
977
+ splitByField: t,
855
978
  numericFields: r,
856
- aggregationType: a,
857
- config: i,
979
+ aggregationType: i,
980
+ config: a,
858
981
  layerInfo: n,
859
982
  commonStrings: o,
860
- 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() : !H(g) && H(p) ? (f = Se(), Z = !0) : H(g) && !H(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]);
870
- }), s === "" || r.length > 1 ? Te({
983
+ splitByFieldInfos: l
984
+ } = s, { layerFieldsInfo: c } = n ?? {}, p = J(a), f = qt(a), u = E(p), m = c.find((h) => h.name === u), d = a.series[0]?.query === void 0, y = c.find((h) => h.name === e), g = ne(p, n, o), F = We(p, n, o), x = ds({ config: p, layerInfo: n, commonStrings: o });
985
+ let S = Le(a);
986
+ const A = p.series.some((h) => W(h)), C = pt(p.series), B = ft(p.series), v = w(m) || w(y);
987
+ if (_(y) ? S = ce() : !Q(m) && Q(y) ? S = z() : !w(m) && w(y) ? S = z() : w(m) && !w(y) && (A ? S = ce() : S = Lt()), S !== void 0 && He(a, o, S), f === 0 && (a.series = [
988
+ ae({ config: a, xAxisField: e, aggregationType: i, layerInfo: n, commonStrings: o })
989
+ ]), a.series.forEach((h) => {
990
+ h.x = e, h.query !== void 0 && (h.query.groupByFieldsForStatistics = [e]);
991
+ }), t === "" || r.length > 1 ? ge({
871
992
  fieldName: e,
872
993
  numericFields: r,
873
- fieldList: m
874
- }) ? i.series = Dt({
875
- config: i,
994
+ fieldList: c
995
+ }) ? a.series = cs({
996
+ config: a,
876
997
  layerInfo: n,
877
998
  xAxisField: e,
878
999
  numericFields: r,
879
- aggregationType: a,
1000
+ aggregationType: i,
880
1001
  commonStrings: o
881
- }) : i.series = Ae({
882
- config: i,
1002
+ }) : a.series = Ee({
1003
+ config: a,
883
1004
  layerInfo: n,
884
1005
  xAxisField: e,
885
1006
  numericFields: r,
886
- aggregationType: a,
1007
+ aggregationType: i,
887
1008
  commonStrings: o
888
- }) : c && (i.series = wt({
889
- config: i,
1009
+ }) : l && (a.series = us({
1010
+ config: a,
890
1011
  layerInfo: n,
891
- splitByField: s,
1012
+ splitByField: t,
892
1013
  xAxisField: e,
893
1014
  numericFields: r,
894
- aggregationType: a,
1015
+ aggregationType: i,
895
1016
  commonStrings: o,
896
- splitByFieldInfos: c
897
- })), h && i.series[0].type !== v.HeatSeries) {
898
- const x = w(m, e);
899
- E(i, 0, x);
1017
+ splitByFieldInfos: l
1018
+ })), x && e !== U && a.series[0].type !== T.HeatSeries) {
1019
+ const h = R(c, e);
1020
+ Y(a, 0, h);
900
1021
  }
901
- if (C && i.series[0].type !== v.HeatSeries) {
902
- const x = re({
903
- config: i,
1022
+ if (F && a.series[0].type !== T.HeatSeries) {
1023
+ const h = ye({
1024
+ config: a,
904
1025
  layerInfo: n,
905
1026
  commonStrings: o,
906
1027
  numericFields: r,
907
- aggregationType: a
1028
+ aggregationType: i
908
1029
  });
909
- E(i, 1, x);
1030
+ Y(a, 1, h);
910
1031
  }
911
- if (B && i.title && (i.title.content.text = j(i, n, o)), N({ config: i, value: null, axisIndex: 1, isMax: !1 }), N({ config: i, value: null, axisIndex: 1, isMax: !0 }), Ot({ numericFields: r, aggregationType: a, config: i, layerInfo: n }), (T || S) && (N({ config: i, value: null, axisIndex: 0, isMax: !1 }), N({ config: i, value: null, axisIndex: 0, isMax: !0 }), Z)) {
912
- const x = f?.type === v.DateAxisFormat ? K.Null : K.Interpolate;
913
- Bt(x, i);
1032
+ g && a.title && (a.title.content.text = Z(a, n, o));
1033
+ const b = u === e;
1034
+ if (D({
1035
+ config: a,
1036
+ value: b ? a.axes?.[1]?.minimum ?? null : null,
1037
+ axisIndex: 1,
1038
+ isMax: !1
1039
+ }), D({
1040
+ config: a,
1041
+ value: b ? a.axes?.[1]?.maximum ?? null : null,
1042
+ axisIndex: 1,
1043
+ isMax: !0
1044
+ }), ls({ numericFields: r, aggregationType: i, config: a, layerInfo: n }), (C || B) && (D({ config: a, value: null, axisIndex: 0, isMax: !1 }), D({ config: a, value: null, axisIndex: 0, isMax: !0 }), v && i !== I.NoAggregation && !$(p))) {
1045
+ const h = w(y) ? X.Null : X.Interpolate;
1046
+ Et(h, a);
914
1047
  }
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);
1048
+ $(a) && qe({ commonStrings: o, config: a, layerInfo: n }), a.series.forEach((h) => {
1049
+ d && delete h.query, L(h) && h.binTemporalData === void 0 && y?.type === De.TimeOnly && (h.binTemporalData = !1);
921
1050
  });
922
- }, W = (t, e) => {
923
- t.markerVisible = e.markerVisible, t.lineSmoothed = e.lineSmoothed, t.showArea = e.showArea, t.areaColor = e.areaColor, t.stackNegativeValuesToBaseline = e.stackNegativeValuesToBaseline, e.lineSymbol && (t.lineSymbol = { ...e.lineSymbol, color: t.lineSymbol?.color }), e.markerSymbol && (t.markerSymbol = {
1051
+ }, Me = (s, e) => {
1052
+ s.markerVisible = e.markerVisible, s.lineSmoothed = e.lineSmoothed, s.showArea = e.showArea, s.areaColor = e.areaColor, s.stackNegativeValuesToBaseline = e.stackNegativeValuesToBaseline, e.lineSymbol && (s.lineSymbol = { ...e.lineSymbol, color: s.lineSymbol?.color }), e.markerSymbol && (s.markerSymbol = {
924
1053
  ...e.markerSymbol,
925
- color: t.markerSymbol?.color
1054
+ color: s.markerSymbol?.color
926
1055
  });
927
- }, li = (t) => {
928
- const { config: e, seriesIndex: s, layerInfo: r, commonStrings: a } = t, i = e.series?.[s], n = ue(e);
1056
+ }, Di = (s) => {
1057
+ const { config: e, seriesIndex: t, layerInfo: r, commonStrings: i } = s, a = e.series?.[t], n = re(e);
929
1058
  let o;
930
- if (Y(e.series) === D.BarAndLineFromFields)
931
- o = a.axisLabels.values;
932
- else if (Ie(n)) {
933
- const m = i.query?.outStatistics?.[0]?.onStatisticField;
934
- m !== void 0 && m !== X(r.layer).idField && (o = w(r.layerFieldsInfo, m));
1059
+ if (ee(e.series) === P.BarAndLineFromFields)
1060
+ o = i.axisLabels.values;
1061
+ else if ($e(n)) {
1062
+ const c = a.query?.outStatistics?.[0]?.onStatisticField;
1063
+ c !== void 0 && c !== j(r.layer).idField && (o = R(r.layerFieldsInfo, c));
935
1064
  } else {
936
- const m = String(Ce(i)).trim().replace(/'/gu, "");
937
- o = he({
1065
+ const c = String(Re(a)).trim().replace(/'/gu, "");
1066
+ o = Oe({
938
1067
  queryObject: r.layer,
939
1068
  fieldName: n,
940
- fieldValue: m ?? ""
941
- }) ?? m;
1069
+ fieldValue: c ?? ""
1070
+ }) ?? c;
942
1071
  }
943
- return o ?? i.id;
944
- }, ni = (t, e) => {
945
- if (ne(e))
946
- Rt(t, e);
1072
+ return o ?? a.id;
1073
+ }, Vi = (s, e) => {
1074
+ if ($(e))
1075
+ ss(s, e);
947
1076
  else {
948
1077
  e.orderOptions ??= {};
949
- const s = e.orderOptions?.data?.orderType;
950
- ie(e)[0] === J.customSort && s === V.Category && (e.orderOptions.data = {
951
- orderType: V.Category,
952
- orderBy: [...t]
1078
+ const t = e.orderOptions?.data?.orderType;
1079
+ de(e)[0] === oe.customSort && t === N.Category && (e.orderOptions.data = {
1080
+ orderType: N.Category,
1081
+ orderBy: [...s]
953
1082
  });
954
1083
  }
955
- }, oi = async (t) => {
956
- const { config: e, layerInfo: s, errorStrings: r } = t, a = M(e), i = Fe(e)?.type, n = G(e), o = Y(e.series);
957
- let c = [];
958
- return i === v.CategoryAxisFormat && (o === D.BarAndLineFromFields || a === ee ? c = n.map((m) => w(s?.layerFieldsInfo, m)) : a.trim() !== "" && a !== ee && s !== void 0 && (c = await qe({
959
- layerInfo: s,
1084
+ }, ki = async (s) => {
1085
+ const { config: e, layerInfo: t, errorStrings: r } = s, i = E(e), a = Le(e)?.type, n = K(e), o = ee(e.series);
1086
+ let l = [];
1087
+ return a === T.CategoryAxisFormat && (o === P.BarAndLineFromFields || i === U ? l = n.map((c) => R(t?.layerFieldsInfo, c)) : i.trim() !== "" && i !== U && t !== void 0 && (l = await Xe({
1088
+ layerInfo: t,
960
1089
  config: e,
961
- category: a,
1090
+ category: i,
962
1091
  errorStrings: r
963
- }))), c;
1092
+ }))), l;
964
1093
  };
965
- function _(t, e, s) {
966
- const r = j(t, e, s), a = St(t), i = z(t);
967
- return r === a || i;
1094
+ function ne(s, e, t) {
1095
+ const r = Z(s, e, t), i = Rt(s), a = se(s);
1096
+ return r === i || a;
968
1097
  }
969
- function ve(t, e, s) {
970
- const r = re({
971
- config: t,
1098
+ function We(s, e, t) {
1099
+ const r = ye({
1100
+ config: s,
972
1101
  layerInfo: e,
973
- commonStrings: s,
974
- numericFields: G(t),
975
- aggregationType: be(t)
976
- }), a = oe(1, t), i = z(t);
977
- return r === a || i;
1102
+ commonStrings: t,
1103
+ numericFields: K(s),
1104
+ aggregationType: we(s)
1105
+ }), i = ie(1, s), a = se(s);
1106
+ return r === i || a;
978
1107
  }
979
- function Pt(t, e) {
980
- const s = w(e.layerFieldsInfo, M(t)), r = oe(0, t), a = z(t);
981
- return s === r || a;
1108
+ function ds(s) {
1109
+ const { config: e, layerInfo: t, commonStrings: r } = s, i = R(t.layerFieldsInfo, E(e)), a = ie(0, e), n = se(e), o = E(e) === U && (a === "" || a === r.xAxis);
1110
+ return i === a || n || o;
982
1111
  }
983
- function ui(t) {
984
- return R(t.series[0]) ? t.series[0].binTemporalData ?? !0 : !1;
1112
+ function qi(s) {
1113
+ return L(s.series[0]) ? s.series[0].binTemporalData ?? !0 : !1;
985
1114
  }
986
- function ci(t, e) {
987
- e?.series.forEach((s) => {
988
- (s?.type === v.BarSeries || s?.type === v.LineSeries) && (s.binTemporalData = t, t ? s.temporalBinning = {
989
- unit: te.Day,
1115
+ function Ri(s, e) {
1116
+ e?.series.forEach((t) => {
1117
+ L(t) && (t.binTemporalData = s, s ? t.temporalBinning = {
1118
+ unit: le.Day,
990
1119
  size: 0,
991
- timeAggregationType: at.Start,
1120
+ timeAggregationType: ht.Start,
992
1121
  trimIncompleteTimeInterval: !0,
993
- nullPolicy: K.Null
994
- } : delete s.temporalBinning);
1122
+ nullPolicy: X.Null
1123
+ } : delete t.temporalBinning);
995
1124
  });
996
1125
  }
997
1126
  export {
998
- rs as $,
999
- qs as A,
1000
- hs as B,
1001
- Fs as C,
1002
- xs as D,
1003
- Ts as E,
1004
- ks as F,
1005
- Os as G,
1006
- Ds as H,
1007
- ws as I,
1008
- Rs as J,
1009
- Ns as K,
1010
- Ps as L,
1011
- kt as M,
1012
- Es as N,
1013
- Ms as O,
1014
- ie as P,
1015
- $s as Q,
1016
- Ws as R,
1017
- Ys as S,
1018
- Xs as T,
1019
- Js as U,
1020
- Zs as V,
1021
- js as W,
1022
- Hs as X,
1023
- ts as Y,
1024
- xt as Z,
1025
- Tt as _,
1026
- G as a,
1027
- ss as a0,
1028
- ls as a1,
1029
- is as a2,
1030
- ns as a3,
1031
- as as a4,
1032
- Bt as a5,
1033
- os as a6,
1034
- ai as a7,
1035
- oi as a8,
1036
- ni as a9,
1037
- ri as aa,
1038
- ui as ab,
1039
- ci as ac,
1040
- gs as ad,
1041
- ms as ae,
1042
- ys as af,
1043
- ds as ag,
1044
- us as ah,
1045
- cs as ai,
1046
- Ct as aj,
1047
- ps as ak,
1048
- ue as b,
1049
- li as c,
1050
- j as d,
1051
- Nt as e,
1052
- Ks as f,
1053
- be as g,
1054
- Us as h,
1055
- bs as i,
1056
- Cs as j,
1057
- vs as k,
1058
- As as l,
1059
- Qs as m,
1060
- zs as n,
1061
- Gs as o,
1062
- _s as p,
1063
- ei as q,
1064
- ti as r,
1065
- Bs as s,
1066
- si as t,
1067
- ii as u,
1068
- fs as v,
1069
- Ss as w,
1070
- Ls as x,
1071
- Is as y,
1072
- Vs as z
1127
+ Gs as $,
1128
+ ki as A,
1129
+ Vi as B,
1130
+ Oi as C,
1131
+ qi as D,
1132
+ Ri as E,
1133
+ Z as F,
1134
+ qe as G,
1135
+ Jt as H,
1136
+ _s as I,
1137
+ Si as J,
1138
+ Fi as K,
1139
+ es as L,
1140
+ Qs as M,
1141
+ ts as N,
1142
+ zs as O,
1143
+ xi as P,
1144
+ hi as Q,
1145
+ Ti as R,
1146
+ Bi as S,
1147
+ Ai as T,
1148
+ vi as U,
1149
+ Ii as V,
1150
+ Ht as W,
1151
+ Li as X,
1152
+ Xs as Y,
1153
+ Hs as Z,
1154
+ Js as _,
1155
+ Ms as a,
1156
+ ti as a0,
1157
+ ei as a1,
1158
+ js as a2,
1159
+ Us as a3,
1160
+ Ks as a4,
1161
+ Zs as a5,
1162
+ ai as a6,
1163
+ ri as a7,
1164
+ ni as a8,
1165
+ oi as a9,
1166
+ ii as aa,
1167
+ si as ab,
1168
+ li as ac,
1169
+ is as ad,
1170
+ ci as ae,
1171
+ ui as af,
1172
+ di as ag,
1173
+ yi as ah,
1174
+ mi as ai,
1175
+ gi as aj,
1176
+ bi as ak,
1177
+ Ci as al,
1178
+ pi as am,
1179
+ fi as an,
1180
+ ws as b,
1181
+ Ps as c,
1182
+ K as d,
1183
+ re as e,
1184
+ $s as f,
1185
+ we as g,
1186
+ Di as h,
1187
+ Ws as i,
1188
+ Ns as j,
1189
+ Pt as k,
1190
+ wt as l,
1191
+ ks as m,
1192
+ Os as n,
1193
+ qs as o,
1194
+ Ys as p,
1195
+ Ds as q,
1196
+ Ut as r,
1197
+ ke as s,
1198
+ Rs as t,
1199
+ Es as u,
1200
+ Vs as v,
1201
+ Et as w,
1202
+ Mt as x,
1203
+ Ni as y,
1204
+ de as z
1073
1205
  };