@arcgis/charts-components 5.2.0-next.11 → 5.2.0-next.111

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 (473) hide show
  1. package/LICENSE.md +4 -2
  2. package/README.md +2 -2
  3. package/dist/cdn/{7YXTWBT4.js → 225VUGML.js} +3 -3
  4. package/dist/cdn/{SERX6V5M.js → 22DIZM2P.js} +1 -1
  5. package/dist/cdn/{YJ6TRXMU.js → 24MSASQQ.js} +1 -1
  6. package/dist/cdn/{4USHOYLT.js → 2BE3GYK4.js} +1 -1
  7. package/dist/cdn/{N5ZUO6F3.js → 2O2ZA6UO.js} +1 -1
  8. package/dist/cdn/2PWEWSG6.js +2 -0
  9. package/dist/cdn/{VY3KBD6N.js → 2YDNWOWT.js} +1 -1
  10. package/dist/cdn/3A6N7WAM.js +2 -0
  11. package/dist/cdn/3CIO2C6J.js +2 -0
  12. package/dist/cdn/3ECXJYBU.js +2 -0
  13. package/dist/cdn/3NXCG3O2.js +2 -0
  14. package/dist/cdn/3S6ZGK3H.js +2 -0
  15. package/dist/cdn/{CHLE2QGU.js → 4DXGXATO.js} +1 -1
  16. package/dist/cdn/{TFPQDMER.js → 4MZSVX5W.js} +1 -1
  17. package/dist/cdn/4NIKYLE5.js +2 -0
  18. package/dist/cdn/56242OEE.js +2 -0
  19. package/dist/cdn/{H2A5GZ55.js → 5D2QRMC6.js} +1 -1
  20. package/dist/cdn/5HJSLXLN.js +2 -0
  21. package/dist/cdn/{UYXCGSXU.js → 5KJE3IGJ.js} +1 -1
  22. package/dist/cdn/{H3EXGCE7.js → 5N2TLPKQ.js} +1 -1
  23. package/dist/cdn/5O2Y7SWC.js +2 -0
  24. package/dist/cdn/5QBKM6NC.js +2 -0
  25. package/dist/cdn/5SXFY4KT.js +2 -0
  26. package/dist/cdn/5SYHQWPP.js +2 -0
  27. package/dist/cdn/{LUSFGRHV.js → 5WIR3JWC.js} +1 -1
  28. package/dist/cdn/62GSQDTE.js +2 -0
  29. package/dist/cdn/{VT4WJZN6.js → 64B7ILJI.js} +1 -1
  30. package/dist/cdn/{ZBIVDGNH.js → 6JQTSYII.js} +1 -1
  31. package/dist/cdn/{I6UPUSLQ.js → 6M2ZNCH6.js} +1 -1
  32. package/dist/cdn/{XY4TRZCG.js → 6OBSUHMH.js} +1 -1
  33. package/dist/cdn/{7LYAWWOE.js → 6WKTHJQK.js} +1 -1
  34. package/dist/cdn/724I3SBO.js +2 -0
  35. package/dist/cdn/73R5I52R.js +2 -0
  36. package/dist/cdn/{II2ZPEUZ.js → 7C2LVFNV.js} +1 -1
  37. package/dist/cdn/{4Z23HWDH.js → 7COM5REK.js} +1 -1
  38. package/dist/cdn/7CP5MYX6.js +2 -0
  39. package/dist/cdn/{VDKFC44J.js → 7QCDHUXE.js} +1 -1
  40. package/dist/cdn/7TM4LYGN.js +2 -0
  41. package/dist/cdn/7UUCZOKN.js +2 -0
  42. package/dist/cdn/{2XXW3WF3.js → A55ZLPZQ.js} +1 -1
  43. package/dist/cdn/{BDGHBTPU.js → A6K5NPU6.js} +1 -1
  44. package/dist/cdn/{OJ5X6I3H.js → ADI63OO7.js} +1 -1
  45. package/dist/cdn/ADKPM4DW.js +2 -0
  46. package/dist/cdn/AEC7S556.js +2 -0
  47. package/dist/cdn/{Y6ZCTPJW.js → AEJ4OWWK.js} +1 -1
  48. package/dist/cdn/AHOCGFB7.js +2 -0
  49. package/dist/cdn/{SX6SDBU7.js → AOVXHBJK.js} +1 -1
  50. package/dist/cdn/AYCQHDDV.js +2 -0
  51. package/dist/cdn/{TXB2I2U5.js → B2SUC7VR.js} +1 -1
  52. package/dist/cdn/{7QXRWMUN.js → B3KKBK7R.js} +1 -1
  53. package/dist/cdn/{TACQVUBU.js → BDEDEGCZ.js} +1 -1
  54. package/dist/cdn/{ANN3O54W.js → BK52OYAM.js} +1 -1
  55. package/dist/cdn/{CNFBNAPJ.js → BK7DHYA7.js} +1 -1
  56. package/dist/cdn/BYSUABOV.js +2 -0
  57. package/dist/cdn/{P2F2O6MH.js → CHBL4DXX.js} +1 -1
  58. package/dist/cdn/CLL7X6DF.js +2 -0
  59. package/dist/cdn/CREJLRJS.js +2 -0
  60. package/dist/cdn/{ZFJFTDJF.js → CYGMXV56.js} +1 -1
  61. package/dist/cdn/D5DOFLCS.js +2 -0
  62. package/dist/cdn/DAQT4YNQ.js +2 -0
  63. package/dist/cdn/{S3ZSZXYG.js → DWWJB3RS.js} +1 -1
  64. package/dist/cdn/E2YQ7BBF.js +2 -0
  65. package/dist/cdn/EEKAD6DT.js +2 -0
  66. package/dist/cdn/EHUV23QJ.js +2 -0
  67. package/dist/cdn/{DFKVPDMJ.js → EMOJZ4XR.js} +15 -13
  68. package/dist/cdn/{J5NHXQLA.js → EQZBQP5A.js} +1 -1
  69. package/dist/cdn/{MK5ZYSOD.js → EVKBZUDE.js} +1 -1
  70. package/dist/cdn/EWNXVZMV.js +2 -0
  71. package/dist/cdn/EWPEPYH7.js +2 -0
  72. package/dist/cdn/EY3OIDVL.js +2 -0
  73. package/dist/cdn/{LROW4Y6O.js → F65OW2NU.js} +1 -1
  74. package/dist/cdn/FBS4RBSA.js +2 -0
  75. package/dist/cdn/{FWAXKDYV.js → FCFAN63J.js} +1 -1
  76. package/dist/cdn/FCWOV4NW.js +2 -0
  77. package/dist/cdn/FTVVGZ4Z.js +4 -0
  78. package/dist/cdn/FY7T4YLN.js +2 -0
  79. package/dist/cdn/FZHZIZUN.js +2 -0
  80. package/dist/cdn/{7JIHGRTB.js → G22GCRXH.js} +1 -1
  81. package/dist/cdn/GQLSM5Q7.js +2 -0
  82. package/dist/cdn/{N4L5KE23.js → GRRD6G34.js} +1 -1
  83. package/dist/cdn/GU4EQDNJ.js +2 -0
  84. package/dist/cdn/H7K6D57Z.js +2 -0
  85. package/dist/cdn/HW7O5QZ4.js +2 -0
  86. package/dist/cdn/{AZOBLYAP.js → I2BM5KSH.js} +1 -1
  87. package/dist/cdn/I4RZDDUM.js +2 -0
  88. package/dist/cdn/IBUI4UOV.js +2 -0
  89. package/dist/cdn/{JQKRGUBU.js → IDAOLPMA.js} +1 -1
  90. package/dist/cdn/{O4HUYRYL.js → IGOJGDYE.js} +1 -1
  91. package/dist/cdn/IHOTDAKI.js +2 -0
  92. package/dist/cdn/J5JKYZZW.js +2 -0
  93. package/dist/cdn/JJJRAQMT.js +2 -0
  94. package/dist/cdn/JTP6IREK.js +2 -0
  95. package/dist/cdn/{FEKSPYHM.js → JV4CEAY2.js} +1 -1
  96. package/dist/cdn/{OFWEHJDH.js → K6V7ODNF.js} +1 -1
  97. package/dist/cdn/{5SIAOUPO.js → K7OYAJNO.js} +1 -1
  98. package/dist/cdn/{D3CFPMAR.js → KOY5DWSR.js} +1 -1
  99. package/dist/cdn/{ULWJ57VT.js → KYEVNAYY.js} +1 -1
  100. package/dist/cdn/KYVBQUIS.js +2 -0
  101. package/dist/cdn/KZSCAJDG.js +2 -0
  102. package/dist/cdn/L5JZ5COY.js +2 -0
  103. package/dist/cdn/L76QTUHW.js +2 -0
  104. package/dist/cdn/{AY6IOQ3H.js → LAEUROZM.js} +1 -1
  105. package/dist/cdn/{IYA7HQMS.js → LAPLSGZY.js} +1 -1
  106. package/dist/cdn/LMXFW6NW.js +2 -0
  107. package/dist/cdn/{L47EGLUH.js → LNR2Y4AV.js} +1 -1
  108. package/dist/cdn/{AASL4RKT.js → LXTENPD7.js} +1 -1
  109. package/dist/cdn/{XDMGH7YU.js → LYKD4O7U.js} +1 -1
  110. package/dist/cdn/M624HH3K.js +2 -0
  111. package/dist/cdn/M7NERHZY.js +2 -0
  112. package/dist/cdn/MIA4DLUH.js +3 -0
  113. package/dist/cdn/MQI4ZLAS.js +2 -0
  114. package/dist/cdn/MQYMM7JO.js +2 -0
  115. package/dist/cdn/MRSEZPVC.js +2 -0
  116. package/dist/cdn/MSU36MJR.js +2 -0
  117. package/dist/cdn/N2Y3TMUH.js +2 -0
  118. package/dist/cdn/NITHPHM6.js +2 -0
  119. package/dist/cdn/{XG2KN6YJ.js → NKPZCF5U.js} +1 -1
  120. package/dist/cdn/{YKDW7ZW3.js → NLFZ76DJ.js} +1 -1
  121. package/dist/cdn/{VE3GFNNM.js → NRXCKYYY.js} +1 -1
  122. package/dist/cdn/NT7D3WEH.js +2 -0
  123. package/dist/cdn/{4C6KWLWN.js → NWLNHFHJ.js} +1 -1
  124. package/dist/cdn/{NAXNRCMZ.js → OD2NWPCL.js} +1 -1
  125. package/dist/cdn/OIBX62RU.js +2 -0
  126. package/dist/cdn/OIQ76HQC.js +2 -0
  127. package/dist/cdn/{4ZIZEJXS.js → OISERMTF.js} +1 -1
  128. package/dist/cdn/{ETOGNYFU.js → OKAZOAYZ.js} +1 -1
  129. package/dist/cdn/OKKEWHMB.js +2 -0
  130. package/dist/cdn/{VRZ2SY6M.js → OQFM5DBD.js} +1 -1
  131. package/dist/cdn/{XYKXBWIT.js → OZPCANBC.js} +1 -1
  132. package/dist/cdn/{C5K6XOCR.js → P37JASN4.js} +1 -1
  133. package/dist/cdn/{KDJ5RVHA.js → P3AYFJRV.js} +1 -1
  134. package/dist/cdn/{244ZX2UP.js → P5I5RQTN.js} +1 -1
  135. package/dist/cdn/PDDYOVQM.js +2 -0
  136. package/dist/cdn/{BJ7Q7LCT.js → PIZPF2BH.js} +1 -1
  137. package/dist/cdn/{QR2OOC4D.js → PVRAR67F.js} +1 -1
  138. package/dist/cdn/PWJBGZPW.js +2 -0
  139. package/dist/cdn/{7UQHB6KY.js → QIG5H6WA.js} +1 -1
  140. package/dist/cdn/QKUFLZC3.js +2 -0
  141. package/dist/cdn/{XMPLEHTW.js → QKZK6MTN.js} +1 -1
  142. package/dist/cdn/QXLY4SFY.js +2 -0
  143. package/dist/cdn/QYRHZJH3.js +2 -0
  144. package/dist/cdn/{4OH4NSIW.js → R3END4O2.js} +1 -1
  145. package/dist/cdn/{FOYOG3G7.js → RBQG2UIF.js} +1 -1
  146. package/dist/cdn/RPUEIRTH.js +2 -0
  147. package/dist/cdn/RZJQJ43Y.js +2 -0
  148. package/dist/cdn/{RSNZMJ6I.js → SIZ6M6MJ.js} +1 -1
  149. package/dist/cdn/{DNTLH5RT.js → SSOL6PCL.js} +1 -1
  150. package/dist/cdn/{3JYZJUOM.js → SWBYVQVE.js} +1 -1
  151. package/dist/cdn/{I5T7JUDH.js → SZYIWW3C.js} +1 -1
  152. package/dist/cdn/T7Z4DZ7V.js +2 -0
  153. package/dist/cdn/{ZYOWZCR7.js → TB7JE5XK.js} +1 -1
  154. package/dist/cdn/{AK7X7SGI.js → TENIFMA5.js} +1 -1
  155. package/dist/cdn/{PMIWXHTG.js → TK4E37D6.js} +1 -1
  156. package/dist/cdn/{WMPWOPRZ.js → TRAVRA3M.js} +1 -1
  157. package/dist/cdn/U7NEGO4Z.js +2 -0
  158. package/dist/cdn/{OXYJKZEP.js → UBGDVDOX.js} +1 -1
  159. package/dist/cdn/{P5AO3V3M.js → UD724V36.js} +1 -1
  160. package/dist/cdn/UNRHPYXW.js +45 -0
  161. package/dist/cdn/{DSIFL2DF.js → UQSD6YZM.js} +1 -1
  162. package/dist/cdn/{Q7J7EKQW.js → UUVJGPFG.js} +1 -1
  163. package/dist/cdn/UVLCXTG4.js +2 -0
  164. package/dist/cdn/{ZQDADGLQ.js → VLCUXTLC.js} +1 -1
  165. package/dist/cdn/{77A4T4FJ.js → VMHDTE3U.js} +1 -1
  166. package/dist/cdn/VQHPI3CU.js +2 -0
  167. package/dist/cdn/VQRSXCKD.js +2 -0
  168. package/dist/cdn/VQU2TVX7.js +3 -0
  169. package/dist/cdn/{WAINRCCJ.js → VSBDAO7G.js} +1 -1
  170. package/dist/cdn/VSN5E7Y4.js +2 -0
  171. package/dist/cdn/{L5DROI2A.js → VYD2S5WA.js} +1 -1
  172. package/dist/cdn/VZ7OCBNK.js +2 -0
  173. package/dist/cdn/WDDGKBBJ.js +2 -0
  174. package/dist/cdn/{X2LW7GTR.js → WE5T6HME.js} +1 -1
  175. package/dist/cdn/WJQHEITU.js +2 -0
  176. package/dist/cdn/WOGALV3T.js +2 -0
  177. package/dist/cdn/{6B7JCDQC.js → WTF2PFHV.js} +1 -1
  178. package/dist/cdn/WTMEWLUJ.js +2 -0
  179. package/dist/cdn/WVOXFKFO.js +2 -0
  180. package/dist/cdn/{2OHFSVV5.js → X4BQWX3B.js} +1 -1
  181. package/dist/cdn/{SSQ3VCZ2.js → XDBVOUI2.js} +1 -1
  182. package/dist/cdn/XIBI3WA6.js +2 -0
  183. package/dist/cdn/{UE5VX2RL.js → XZVJMTU2.js} +1 -1
  184. package/dist/cdn/{BXYNEUQY.js → YCQLYXH4.js} +1 -1
  185. package/dist/cdn/YFU2NPYA.js +2 -0
  186. package/dist/cdn/YHON6N45.js +2 -0
  187. package/dist/cdn/YJURFFSP.js +2 -0
  188. package/dist/cdn/YK5VKE7I.js +2 -0
  189. package/dist/cdn/ZHFQTE2B.js +2 -0
  190. package/dist/cdn/{5ZGALYWZ.js → ZLCRTIQH.js} +1 -1
  191. package/dist/cdn/{3TZEMBXR.js → ZOC5OCZL.js} +1 -1
  192. package/dist/cdn/ZYHMZQ7E.js +2 -0
  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 +1 -1
  199. package/dist/chart-rendering/common/interfaces.d.ts +104 -66
  200. package/dist/chunks/{type-guards3.js → action-bar-utils.js} +37 -45
  201. package/dist/chunks/axis-lines-symbol.js +7 -7
  202. package/dist/chunks/bar-chart-model.js +46 -38
  203. package/dist/chunks/box-plot-data.js +291 -274
  204. package/dist/chunks/box-plot-model.js +143 -130
  205. package/dist/chunks/chart-model.js +65 -56
  206. package/dist/chunks/chart-object-literals.js +26 -25
  207. package/dist/chunks/chart-ui-utils.js +148 -66
  208. package/dist/chunks/chart-ui-utils2.js +68 -149
  209. package/dist/chunks/class-breaks.js +270 -238
  210. package/dist/chunks/combo-bar-line-chart-model.js +122 -101
  211. package/dist/chunks/data-labels-symbol.js +39 -24
  212. package/dist/chunks/data-labels-visibility.js +8 -8
  213. package/dist/chunks/data.js +41 -41
  214. package/dist/chunks/default.js +6 -6
  215. package/dist/chunks/gauge-model.js +61 -61
  216. package/dist/chunks/generate-x-axis-title.js +19 -15
  217. package/dist/chunks/heat-chart-model.js +95 -66
  218. package/dist/chunks/histogram-data.js +23 -23
  219. package/dist/chunks/histogram-model.js +10 -10
  220. package/dist/chunks/index.js +9348 -1079
  221. package/dist/chunks/index2.js +851 -8757
  222. package/dist/chunks/index3.js +1169 -849
  223. package/dist/chunks/index4.js +411 -251
  224. package/dist/chunks/index5.js +66 -100
  225. package/dist/chunks/interfaces.js +9 -9
  226. package/dist/chunks/line-chart-model.js +40 -24
  227. package/dist/chunks/model-setter.js +59 -64
  228. package/dist/chunks/model-types.js +1 -1
  229. package/dist/chunks/model-with-line-marker-styling.js +72 -47
  230. package/dist/chunks/model-with-x-guides.js +5 -5
  231. package/dist/chunks/model-with-y-guides.js +251 -271
  232. package/dist/chunks/negative-values-stacked-to-baseline.js +122 -71
  233. package/dist/chunks/pie-chart-data.js +175 -193
  234. package/dist/chunks/pie-chart-model.js +388 -320
  235. package/dist/chunks/radar-chart-model.js +413 -46
  236. package/dist/chunks/resource.js +1 -1
  237. package/dist/chunks/rest-js-object-literals.js +10 -10
  238. package/dist/chunks/rotated-state.js +1 -1
  239. package/dist/chunks/rounded-corners.js +90 -0
  240. package/dist/chunks/scatterplot-model.js +22 -22
  241. package/dist/chunks/serial-chart-data.js +934 -818
  242. package/dist/chunks/serial-chart-model.js +145 -123
  243. package/dist/chunks/series-length.js +17 -17
  244. package/dist/chunks/series-types.js +22 -18
  245. package/dist/chunks/series.js +1 -1
  246. package/dist/chunks/type-guards.js +49 -23
  247. package/dist/chunks/type-guards2.js +61 -52
  248. package/dist/chunks/utils.js +110 -87
  249. package/dist/chunks/utils2.js +54 -37
  250. package/dist/chunks/web-component-utils.js +413 -383
  251. package/dist/chunks/x-bounds.js +103 -98
  252. package/dist/components/arcgis-chart/customElement.d.ts +728 -255
  253. package/dist/components/arcgis-chart/customElement.js +10870 -10606
  254. package/dist/components/arcgis-charts-action-bar/customElement.d.ts +8 -0
  255. package/dist/components/arcgis-charts-action-bar/customElement.js +34 -31
  256. package/dist/components/arcgis-charts-config-axis/customElement.js +70 -64
  257. package/dist/components/arcgis-charts-config-bar-chart/customElement.js +39 -33
  258. package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +27 -27
  259. package/dist/components/arcgis-charts-config-bar-chart-data/index.js +1 -1
  260. package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +43 -43
  261. package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +54 -53
  262. package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +13 -12
  263. package/dist/components/arcgis-charts-config-box-plot/customElement.js +31 -39
  264. package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +15 -15
  265. package/dist/components/arcgis-charts-config-box-plot-data/index.js +1 -1
  266. package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +48 -49
  267. package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +3 -3
  268. package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +10 -10
  269. package/dist/components/arcgis-charts-config-category-format/customElement.js +1 -1
  270. package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +5 -5
  271. package/dist/components/arcgis-charts-config-color-style/customElement.js +1 -1
  272. package/dist/components/arcgis-charts-config-colors/customElement.js +1 -1
  273. package/dist/components/arcgis-charts-config-create-flow/customElement.js +244 -230
  274. package/dist/components/arcgis-charts-config-field-picker/customElement.js +30 -0
  275. package/dist/components/arcgis-charts-config-font-style/customElement.js +4 -4
  276. package/dist/components/arcgis-charts-config-format/customElement.js +89 -82
  277. package/dist/components/arcgis-charts-config-format-popover/customElement.js +2 -2
  278. package/dist/components/arcgis-charts-config-general/customElement.js +3 -3
  279. package/dist/components/arcgis-charts-config-guide/customElement.js +21 -22
  280. package/dist/components/arcgis-charts-config-guide-popover/customElement.js +4 -4
  281. package/dist/components/arcgis-charts-config-guides/customElement.js +1 -1
  282. package/dist/components/arcgis-charts-config-heat-chart/customElement.js +12 -13
  283. package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +64 -76
  284. package/dist/components/arcgis-charts-config-heat-chart-data/index.js +1 -1
  285. package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +55 -55
  286. package/dist/components/arcgis-charts-config-histogram/customElement.js +27 -23
  287. package/dist/components/arcgis-charts-config-histogram-data/customElement.js +28 -28
  288. package/dist/components/arcgis-charts-config-histogram-data/index.js +1 -1
  289. package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +27 -27
  290. package/dist/components/arcgis-charts-config-invalid-input-message/customElement.js +1 -1
  291. package/dist/components/arcgis-charts-config-line-chart/customElement.js +5 -6
  292. package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +18 -18
  293. package/dist/components/arcgis-charts-config-line-chart-data/index.js +1 -1
  294. package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +38 -38
  295. package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +2 -2
  296. package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +4 -4
  297. package/dist/components/arcgis-charts-config-line-style/customElement.js +2 -2
  298. package/dist/components/arcgis-charts-config-number-format/customElement.js +1 -1
  299. package/dist/components/arcgis-charts-config-pie-chart/customElement.js +5 -6
  300. package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +56 -63
  301. package/dist/components/arcgis-charts-config-pie-chart-data/index.js +1 -1
  302. package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +54 -53
  303. package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +67 -68
  304. package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +3 -3
  305. package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +27 -23
  306. package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +15 -15
  307. package/dist/components/arcgis-charts-config-scatter-plot-data/index.js +1 -1
  308. package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +17 -17
  309. package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +1 -1
  310. package/dist/components/arcgis-charts-config-view-charts/customElement.js +57 -26
  311. package/dist/components/arcgis-charts-info-modal/customElement.js +7 -7
  312. package/dist/docs/api.json +1 -1
  313. package/dist/docs/docs.json +1 -1
  314. package/dist/docs/vscode.html-custom-data.json +1 -1
  315. package/dist/docs/web-types.json +1 -1
  316. package/dist/index.d.ts +1 -1
  317. package/dist/index.js +488 -464
  318. package/dist/interfaces.d.ts +57 -14
  319. package/dist/json-schema/index.d.ts +154 -6
  320. package/dist/loader.js +2 -2
  321. package/dist/model/bar-chart-model/bar-chart-model.d.ts +6 -4
  322. package/dist/model/box-plot-model/box-plot-model.d.ts +11 -5
  323. package/dist/model/chart-model/chart-model-base.d.ts +10 -0
  324. package/dist/model/chart-model/chart-model-wrapper.d.ts +24 -0
  325. package/dist/model/combo-bar-line-chart-model/combo-bar-line-chart-model.d.ts +33 -21
  326. package/dist/model/heat-chart-model/heat-chart-model.d.ts +41 -8
  327. package/dist/model/interfaces/chart-interfaces.d.ts +2 -2
  328. package/dist/model/mixins/model-with-guides.d.ts +1 -1
  329. package/dist/model/mixins/model-with-line-marker-styling.d.ts +28 -19
  330. package/dist/model/mixins/model-with-multi-axes.d.ts +69 -106
  331. package/dist/model/pie-chart-model/pie-chart-legend-model.d.ts +7 -55
  332. package/dist/model/pie-chart-model/pie-chart-model.d.ts +61 -2
  333. package/dist/model/properties/data-labels/data-labels-symbol.d.ts +26 -0
  334. package/dist/model/properties/rounded-corners.d.ts +18 -0
  335. package/dist/model/radar-chart-model/radar-chart-model.d.ts +190 -0
  336. package/dist/model/serial-chart-model/serial-chart-model.d.ts +27 -1
  337. package/dist/model/shared/setup-utils.d.ts +3 -3
  338. package/dist/model/shared/type-guards.d.ts +38 -22
  339. package/dist/spec/chart-object-literals.d.ts +4 -3
  340. package/dist/spec/data-source.d.ts +17 -3
  341. package/dist/spec/web-chart.d.ts +34 -4
  342. package/dist/types/lumina.d.ts +1 -1
  343. package/dist/types/preact.d.ts +1 -1
  344. package/dist/types/react.d.ts +1 -1
  345. package/dist/types/stencil.d.ts +3 -3
  346. package/dist/utils/chart-config/converter/index.js +368 -349
  347. package/dist/utils/chart-config/utils/index.d.ts +28 -10
  348. package/dist/utils/chart-config/validator/index.d.ts +1 -0
  349. package/dist/utils/chart-config/validator/interfaces.d.ts +1 -0
  350. package/dist/utils/components/interfaces.d.ts +2 -0
  351. package/dist/utils/cursor/interfaces.d.ts +21 -0
  352. package/dist/utils/data/categorical-data/index.d.ts +18 -2
  353. package/dist/utils/data/index.d.ts +28 -22
  354. package/dist/utils/data/interfaces.d.ts +4 -3
  355. package/dist/utils/defaults/index.d.ts +30 -4
  356. package/dist/utils/defaults/interfaces.d.ts +73 -4
  357. package/dist/utils/layer/index.d.ts +23 -5
  358. package/dist/utils/layer/interfaces.d.ts +0 -12
  359. package/dist/utils/layer/query-features/index.d.ts +8 -3
  360. package/dist/utils/layer/query-parser/index.d.ts +10 -6
  361. package/dist/utils/layer/utils/index.d.ts +22 -5
  362. package/dist/utils/localization/interfaces.d.ts +9 -1
  363. package/dist/utils/misc/interfaces.d.ts +1 -0
  364. package/dist/utils/type-guards/chart-types.d.ts +10 -0
  365. package/dist/utils/type-guards/series-types.d.ts +9 -2
  366. package/package.json +8 -9
  367. package/dist/cdn/24AOJE7B.js +0 -2
  368. package/dist/cdn/3KRPCKJZ.js +0 -2
  369. package/dist/cdn/3TBK72EK.js +0 -3
  370. package/dist/cdn/425PZ2QJ.js +0 -2
  371. package/dist/cdn/4PHYDOBF.js +0 -2
  372. package/dist/cdn/547RDEMV.js +0 -2
  373. package/dist/cdn/567CLBG4.js +0 -2
  374. package/dist/cdn/5IIF22XN.js +0 -2
  375. package/dist/cdn/5IN5WK2R.js +0 -2
  376. package/dist/cdn/5LXX2PUM.js +0 -2
  377. package/dist/cdn/5NTIKQP4.js +0 -2
  378. package/dist/cdn/5YEADAVZ.js +0 -2
  379. package/dist/cdn/6R7VSDDU.js +0 -2
  380. package/dist/cdn/76MOP26H.js +0 -2
  381. package/dist/cdn/AHYYQWKY.js +0 -2
  382. package/dist/cdn/ASI7RDYV.js +0 -2
  383. package/dist/cdn/AXS3UMQJ.js +0 -2
  384. package/dist/cdn/BHUFE4DA.js +0 -2
  385. package/dist/cdn/CEWH3LQO.js +0 -2
  386. package/dist/cdn/CTBQ5Y4Z.js +0 -2
  387. package/dist/cdn/CVK7KFEC.js +0 -2
  388. package/dist/cdn/DJGEQ42V.js +0 -2
  389. package/dist/cdn/DL43NPDO.js +0 -2
  390. package/dist/cdn/E2DO2HQ6.js +0 -2
  391. package/dist/cdn/E4LJWBRC.js +0 -2
  392. package/dist/cdn/EDSF5KGV.js +0 -233
  393. package/dist/cdn/EE3KEIAT.js +0 -2
  394. package/dist/cdn/EJCGZPIV.js +0 -2
  395. package/dist/cdn/ETSB7KD3.js +0 -2
  396. package/dist/cdn/EZV7JSQJ.js +0 -2
  397. package/dist/cdn/F6QRLYSF.js +0 -2
  398. package/dist/cdn/FBMA7FW4.js +0 -2
  399. package/dist/cdn/FFS73X36.js +0 -142
  400. package/dist/cdn/FUAA6IFR.js +0 -4
  401. package/dist/cdn/FWRMJQXY.js +0 -2
  402. package/dist/cdn/G5FULTB5.js +0 -2
  403. package/dist/cdn/GISGGO3Z.js +0 -2
  404. package/dist/cdn/GQPOEX7B.js +0 -58
  405. package/dist/cdn/GYXK3DV7.js +0 -2
  406. package/dist/cdn/H45LPCQ2.js +0 -2
  407. package/dist/cdn/HW6MJJSX.js +0 -2
  408. package/dist/cdn/HZFHTWL6.js +0 -2
  409. package/dist/cdn/I2EERAZ3.js +0 -2
  410. package/dist/cdn/IE3GLZJZ.js +0 -2
  411. package/dist/cdn/IL2FG26D.js +0 -2
  412. package/dist/cdn/JBPYGZPJ.js +0 -2
  413. package/dist/cdn/JEOBO5JM.js +0 -2
  414. package/dist/cdn/KPWHYSA5.js +0 -2
  415. package/dist/cdn/KXUQJ6GE.js +0 -2
  416. package/dist/cdn/KZQFX7LH.js +0 -2
  417. package/dist/cdn/LL7NH3VV.js +0 -2
  418. package/dist/cdn/LUMOL7ZP.js +0 -2
  419. package/dist/cdn/LYJFZA2M.js +0 -2
  420. package/dist/cdn/MBSMC77K.js +0 -2
  421. package/dist/cdn/MVGAATR7.js +0 -2
  422. package/dist/cdn/NNZCIR7W.js +0 -2
  423. package/dist/cdn/NZXQ5BWP.js +0 -2
  424. package/dist/cdn/O4LKWTBY.js +0 -2
  425. package/dist/cdn/OW2DLJGU.js +0 -2
  426. package/dist/cdn/P4HSSZRL.js +0 -2
  427. package/dist/cdn/P4UJJCPG.js +0 -2
  428. package/dist/cdn/P56ROGSK.js +0 -2
  429. package/dist/cdn/PAIRUVLU.js +0 -2
  430. package/dist/cdn/PXIAM4CZ.js +0 -2
  431. package/dist/cdn/QPSJ6XOX.js +0 -2
  432. package/dist/cdn/R7HW5WVG.js +0 -2
  433. package/dist/cdn/RJCJ3F5C.js +0 -2
  434. package/dist/cdn/RKB6QZNW.js +0 -2
  435. package/dist/cdn/S6LH7YS6.js +0 -2
  436. package/dist/cdn/S74GCXXK.js +0 -3
  437. package/dist/cdn/SA22QZNW.js +0 -2
  438. package/dist/cdn/SJVVFOAX.js +0 -2
  439. package/dist/cdn/SOKKWGPA.js +0 -2
  440. package/dist/cdn/SQYOFBS6.js +0 -2
  441. package/dist/cdn/SVGAVKBQ.js +0 -2
  442. package/dist/cdn/THTYR6IL.js +0 -2
  443. package/dist/cdn/TTBRUBXY.js +0 -2
  444. package/dist/cdn/U5IM4KAQ.js +0 -2
  445. package/dist/cdn/U67P6YAZ.js +0 -2
  446. package/dist/cdn/UIRKQREJ.js +0 -2
  447. package/dist/cdn/UIY2PSG4.js +0 -2
  448. package/dist/cdn/UNTIPIBS.js +0 -2
  449. package/dist/cdn/VIY3BCJZ.js +0 -2
  450. package/dist/cdn/W7X6L2OB.js +0 -127
  451. package/dist/cdn/WHJU66P4.js +0 -2
  452. package/dist/cdn/WJ2VDT6B.js +0 -2
  453. package/dist/cdn/WNKDEOFZ.js +0 -2
  454. package/dist/cdn/WPPMMVD5.js +0 -2
  455. package/dist/cdn/WU3C7BQU.js +0 -2
  456. package/dist/cdn/WWO326JE.js +0 -2
  457. package/dist/cdn/XJFVSX2E.js +0 -2
  458. package/dist/cdn/XNWSVHA3.js +0 -2
  459. package/dist/cdn/XOM6LSIW.js +0 -2
  460. package/dist/cdn/XP4S2M7F.js +0 -2
  461. package/dist/cdn/XUERYUEG.js +0 -2
  462. package/dist/cdn/Y3CXVO2M.js +0 -2
  463. package/dist/cdn/Y7HBWU3M.js +0 -2
  464. package/dist/cdn/YALB4GSA.js +0 -2
  465. package/dist/cdn/YUF4ZSA5.js +0 -2
  466. package/dist/cdn/ZJHV3UVG.js +0 -2
  467. package/dist/cdn/ZQ2WG55W.js +0 -2
  468. package/dist/chunks/bar-chart-series.js +0 -15
  469. package/dist/chunks/index6.js +0 -66
  470. package/dist/chunks/time-zone.js +0 -38
  471. package/dist/components/arcgis-charts-config-field-select/customElement.js +0 -30
  472. /package/dist/cdn/{IVLVCLDE.js → 7NWEE7T2.js} +0 -0
  473. /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 re, isEmpty as qe, memoize as Ve } from "lodash-es";
4
- import { S as ee } from "./common.js";
5
- import { s as N, u as E, g as le, a as he, b as Ne, c as ke, d as de } from "./utils.js";
6
- import { w as k, bY as Re, bm as Oe, x as De, Y as K, cr as we, cq as Pe, p as Ee, aH as ne, c2 as Me, d as $e, aG as Ye, I as We, a7 as Xe, bk as He, W as je, e as Ue, bo as Ke, c_ as Qe, v as ze, d5 as ye, bM as _e, d6 as Ge, bI as Ze, B as Je, d2 as et, an as X, a6 as xe, cS as oe, b9 as tt, ba as ue, k as te, bq as st, bu as me, bb as j, bh as ge } from "./index2.js";
7
- import { a as $, s as Te, g as Q, b as pe, c as it } from "./data.js";
8
- import { u as v, r as L, k as at, n as V, m as U, p as rt, t as lt, s as se } from "./chart-object-literals.js";
9
- import { i as nt, R as ot } from "./rest-js-object-literals.js";
10
- import { i as z } from "./index4.js";
11
- 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";
12
- import { C as w, F as M, d as D } from "./index3.js";
13
- import { h as Be, i as O, j as ft, n as St, g as b, m as A, e as Fe } from "./index5.js";
14
- import { convertChartSpec as Ft } from "../utils/chart-config/converter/index.js";
15
- import { c as ie, e as ht } from "./type-guards.js";
16
- import { g as Ce } from "./series-types.js";
17
- import { g as ce } from "./utils2.js";
18
- import { a as xt, b as Tt } from "./series-length.js";
19
- const is = (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 q, 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 R, 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 w } 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 k(s) && (e = s.temporalBinning?.size), e;
23
- }, Bt = (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 k(s) && (e = s.temporalBinning?.unit), e;
27
- }, as = (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 k(s) && (e = s.temporalBinning?.timeAggregationType), e;
31
- }, rs = (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 k(s) && (e = s.temporalBinning?.trimIncompleteTimeInterval), e;
35
- }, ls = (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 k(s) && (e = s.temporalBinning?.nullPolicy), e;
39
- }, Ct = (t, e) => {
40
- e?.series?.forEach((s) => {
41
- k(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
- k(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
- }, ns = (t, e) => {
48
- e.series?.forEach((s) => {
49
- k(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
- }, os = (t, e) => {
52
- e.series?.forEach((s) => {
53
- k(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
- }, us = (t, e) => {
56
- e.series?.forEach((s) => {
57
- k(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
- }, cs = (t) => {
60
- Ct(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 ds(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 ys(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 ms(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 At(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 gs(t, e) {
79
- return e != null || Be(t);
108
+ function Ms(s, e) {
109
+ return e != null || Ne(s);
80
110
  }
81
- async function ps(t) {
82
- const { config: e, layer: s, abortSignal: r } = t;
83
- let a = !1;
84
- return ie(s) || ht(e) ? e && ie(s) && (a = await Oe({ 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 vt(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,
93
- runtimeDataFilters: l,
94
- ignoreViewExtent: n,
95
- setTimeBinningInfoWhenNotProvided: y,
96
- returnFeaturesExtent: g,
97
- chartLimits: F
98
- } = t;
99
- let o = [], c;
100
- const m = re(s), d = m.series[0], u = Ue({
121
+ errorStrings: i,
122
+ abortSignal: a,
123
+ runtimeDataFilters: n,
124
+ ignoreViewExtent: o,
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
- chartConfig: m,
103
- runtimeDataFilters: l,
104
- ignoreViewExtent: n
133
+ chartConfig: d,
134
+ runtimeDataFilters: n,
135
+ ignoreViewExtent: o
105
136
  });
106
- if (u.outStatistics?.[0]?.outStatisticFieldName && (u.outStatistics[0].outStatisticFieldName = ut.outStatistics.outStatisticFieldName), k(d) && Ke({
107
- xAxisValueFormatType: Qe(m),
108
- setTimeBinningInfoWhenNotProvided: y,
109
- seriesConfig: d,
137
+ if (g.outStatistics?.[0]?.outStatisticFieldName && (g.outStatistics[0].outStatisticFieldName = Bt.outStatistics.outStatisticFieldName), L(y) && nt({
138
+ xAxisValueFormatType: ot(d),
139
+ setTimeBinningInfoWhenNotProvided: l,
140
+ seriesConfig: y,
110
141
  queryObject: e
111
- }) && ze(r, e)) {
112
- const { temporalBinning: p, x: T } = d, { uniqueQuery: C } = ye({
113
- chartConfig: m,
114
- queryConfig: u,
142
+ }) && lt(r, e)) {
143
+ const { temporalBinning: F, x } = y, { uniqueQuery: S } = fe({
144
+ chartConfig: d,
145
+ queryConfig: g,
115
146
  queryObject: e,
116
- setTimeBinningInfoWhenNotProvided: y,
117
- returnFeaturesExtent: g,
118
- chartLimits: F
119
- }), h = s.axes?.[0].valueFormat.type === v.DateAxisFormat ? s.axes[0].valueFormat.intlOptions.timeZone : void 0;
120
- c = await _e({
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: T,
153
+ dateField: x,
123
154
  splitByField: r,
124
- queryConfig: C,
125
- axisTimeZone: h,
126
- temporalBinning: p,
127
- errorStrings: a,
128
- abortSignal: i
129
- }), o = 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
- c.flatMap((f) => {
132
- const { stackedAttributes: R } = f;
133
- let x = [];
134
- return R && (x = R.map((S) => S[r]).filter((S) => S !== void 0)), x;
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 } = ye({
140
- chartConfig: m,
171
+ const { uniqueQuery: F } = fe({
172
+ chartConfig: d,
141
173
  queryObject: e,
142
- queryConfig: u,
143
- setTimeBinningInfoWhenNotProvided: y,
144
- returnFeaturesExtent: g,
145
- chartLimits: F
146
- }), { elementCount: T } = await Ge({
147
- chartConfig: m,
174
+ queryConfig: g,
175
+ setTimeBinningInfoWhenNotProvided: l,
176
+ returnFeaturesExtent: c,
177
+ chartLimits: f
178
+ }), { elementCount: x } = await ut({
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
- c = await Ze({
186
+ m = await dt({
155
187
  queryObject: e,
156
- queryConfig: p,
157
- featureCount: T,
158
- errorStrings: a,
159
- abortSignal: i
160
- }), o = 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
- c.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: o, preFetchedQueryResponse: c };
199
+ return { allValues: u, preFetchedQueryResponse: m };
167
200
  }
168
- function It(t, e) {
169
- const s = /* @__PURE__ */ new Map();
170
- return t.series.forEach((r) => {
171
- let a = ne({
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,913 +210,996 @@ function It(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 = Ce([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 Lt(t) {
189
- const { allValues: e, configUniqueValuesPerSeriesType: s, initialConfigWasEmpty: r } = t, a = /* @__PURE__ */ new Map();
190
- return Array.from(s.keys()).forEach((i) => {
191
- const l = s.get(i) ?? [];
192
- let n = [];
193
- r ? n = e : e.forEach((y) => {
194
- l.includes(y) || n.push(y);
195
- }), a.set(i, n);
196
- }), a;
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) ?? [];
225
+ let o = [];
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 qt(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 (s === null ? i.id = M.nullValue : s === "" ? i.id = M.emptyStringValue : i.id = `${s}`, i.name = `${s}`, i.query.outStatistics?.[0] !== void 0) {
207
- const n = i.id;
208
- i.query.outStatistics[0].outStatisticFieldName = n, "y" in i && (i.y = n);
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 l = typeof s == "number" || s === null ? s : `'${s}'`;
211
- i.query.where = `${r}=${l}`;
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 Vt(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,
222
- runtimeDataFilters: l,
223
- ignoreViewExtent: n,
224
- setTimeBinningInfoWhenNotProvided: y,
225
- returnFeaturesExtent: g,
226
- chartLimits: F
227
- } = t, { seriesTemplate: o } = e ?? {};
228
- let c;
229
- if (r && !ie(r) && e !== void 0 && s !== void 0 && (s.series.length > 0 || o !== void 0) && e.addMissingSeries) {
230
- const m = s.series.length === 0;
231
- s.series.length === 0 && o !== void 0 && s.series.push(o);
232
- const d = K(s.series);
233
- if (d === w.BoxPlotMonoFieldAndSplitBy || d === w.BoxPlotMultiFieldsAndSplitBy || d === w.BoxPlotMonoFieldAndCategoryAndSplitBy || d === w.BarAndLineSplitBy || d === w.BarAndLineSplitByNoAggregation) {
234
- const u = Ye(s.series[0]?.query?.where), p = We(r), T = Xe(u, p), C = T ? He(T) : !1, h = await vt({
253
+ errorStrings: i,
254
+ abortSignal: a,
255
+ runtimeDataFilters: n,
256
+ ignoreViewExtent: o,
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,
239
- runtimeDataFilters: l,
240
- ignoreViewExtent: n,
241
- setTimeBinningInfoWhenNotProvided: y,
242
- returnFeaturesExtent: g,
243
- chartLimits: F,
244
- errorStrings: a
245
- }), { allValues: f } = h;
246
- if ({ preFetchedQueryResponse: c } = h, f.length > 0) {
247
- const R = It(s, C), x = Lt({
248
- allValues: f,
249
- configUniqueValuesPerSeriesType: R,
250
- initialConfigWasEmpty: m
270
+ chartConfig: t,
271
+ splitByField: g,
272
+ abortSignal: a,
273
+ runtimeDataFilters: n,
274
+ ignoreViewExtent: o,
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,
285
+ initialConfigWasEmpty: d
251
286
  });
252
- Array.from(x.keys()).forEach((S) => {
253
- (x.get(S) ?? []).forEach((q) => {
254
- s.series.push(
255
- qt({
256
- chartConfig: s,
257
- seriesTemplate: o,
258
- missingValue: q,
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
- }), m && s.series.shift();
297
+ }), d && t.series.shift();
263
298
  });
264
299
  }
265
300
  }
266
301
  }
267
- return c;
302
+ return m;
268
303
  }
269
- function Nt(t, e) {
270
- e && !Be(e) && (e = $e({ chartConfig: e, queryObject: t }));
304
+ function zt(s, e) {
305
+ e && !Ne(e) && (e = Je({ chartConfig: e, queryObject: s }));
271
306
  }
272
- async function fs(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,
279
- queryObject: l,
280
- abortSignal: n,
281
- runtimeDataFilters: y,
282
- ignoreViewExtent: g,
283
- setTimeBinningInfoWhenNotProvided: F,
284
- returnFeaturesExtent: o,
285
- chartLimits: c,
286
- errorStrings: m
287
- } = t;
288
- let d = e, u;
289
- return d && (Nt(s, d), d = await Ft(d, s, void 0, n), r && l && (u = await Vt({
290
- updateSplitBySeries: a,
291
- config: d,
292
- queryObject: l,
293
- errorStrings: m,
294
- abortSignal: n,
295
- runtimeDataFilters: y,
296
- ignoreViewExtent: g,
297
- setTimeBinningInfoWhenNotProvided: F,
298
- returnFeaturesExtent: o,
299
- chartLimits: c
300
- })), d = Re(d, i)), { alteredConfig: d, preFetchedQueryResponse: u };
312
+ updateSplitBySeries: i,
313
+ chartContainer: a,
314
+ queryObject: n,
315
+ abortSignal: o,
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,
329
+ queryObject: n,
330
+ errorStrings: y,
331
+ abortSignal: o,
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 kt(t, e) {
303
- let s = !1;
340
+ function Gt(s, e) {
341
+ let t = !1;
304
342
  if (e !== void 0) {
305
- const r = je({ key: Je.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 Ss(t) {
311
- const { data: e, config: s, showEmptySeries: r } = t, a = s.series.length, i = re(s);
312
- let l = !1;
313
- if (!r && a > 1 && e) {
314
- const n = De(e), y = Ce(s?.series), g = K(s?.series), F = /* @__PURE__ */ new Set();
315
- switch (y) {
316
- case v.ComboLineAndBarSeries:
317
- case v.BarSeries:
318
- case v.RadarSeries:
319
- case v.LineSeries: {
320
- i.series.forEach((c) => {
321
- if (Array.isArray(n)) {
348
+ function $s(s) {
349
+ const { data: e, config: t, showEmptySeries: r } = s, i = t.series.length, a = J(t);
350
+ let n = !1;
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) => {
359
+ if (Array.isArray(o)) {
322
360
  let m = "";
323
- "y" in c && (m = Array.isArray(c.y) ? c.y[0] : c.y, g === w.BarAndLineSplitByNoAggregation && (m = `${m}_${ne({ where: c.query?.where, keepSurroundingQuotes: !1, escape: !1 })}`), n.some(
324
- (u) => Me({
325
- dataItem: u,
326
- x: c.x,
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,
327
365
  y: m,
328
- aggregationType: s.series[0].query?.outStatistics?.[0]?.statisticType
366
+ aggregationType: t.series[0].query?.outStatistics?.[0]?.statisticType
329
367
  })
330
- ) && F.add(c));
368
+ ) && p.add(u));
331
369
  }
332
370
  });
333
371
  break;
334
372
  }
335
- case v.BoxPlotSeries: {
336
- if (we(s)) {
337
- const c = Pe(s);
338
- s.series.forEach((m) => {
339
- let d, u;
340
- m.type === v.BoxPlotSeries ? (d = e.dataItems, u = d?.some(
341
- (p) => Ee({
342
- dataItem: p,
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,
343
381
  splitBy: m.query?.where,
344
- showOutliers: c
382
+ showOutliers: u
345
383
  })
346
- )) : m.type === v.LineSeries && (d = e.meanLines, u = d?.some(
347
- (p) => kt(p, m.query?.where)
348
- )), u && F.add(m);
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 o = Array.from(F.values());
355
- l = o.length > 0 && o.length < a, l && (i.series = o);
392
+ const f = Array.from(p.values());
393
+ n = f.length > 0 && f.length < i, n && (a.series = f);
356
394
  }
357
- return { seriesFilteredOut: l, filteredConfig: i };
395
+ return { seriesFilteredOut: n, filteredConfig: a };
358
396
  }
359
- const Fs = (t) => t.hideEmptyRowsAndColumns, hs = (t, e) => {
360
- t.hideEmptyRowsAndColumns = e;
361
- }, xs = (t, e) => {
362
- const s = t.series[0];
363
- s.heatRulesType = e;
364
- }, Ts = (t) => t.series[0].heatRulesType, Bs = (t, e) => {
365
- const s = t.series[0];
366
- s.gradientRules = e;
367
- }, Cs = (t) => t.series[0].gradientRules, bs = (t) => {
368
- const { yField: e, config: s, layerInfo: r } = t, { layerFieldsInfo: a } = r, i = ce(1, s), l = Rt(s), n = z(s), y = s.series[0];
369
- if (typeof e == "string" && l !== e && y && (y.y = e, At(s), l === i || n)) {
370
- const g = D(a, e);
371
- E(s, 1, g);
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 = w(a, e);
410
+ Y(t, 1, p);
411
+ }
412
+ qe({ commonStrings: i, config: t, layerInfo: r });
372
413
  }
373
- }, Rt = (t) => t.series[0].y ?? "", As = (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
- }, vs = (t) => t.series[0].xTemporalBinning, Is = (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
- }, Ls = (t) => t.series[0].yTemporalBinning, Ot = (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 = ae(e)[0], a = e.axes?.[1]?.valueFormat?.type === "category" ? V.Category : V.YValue, i = ae(e)[1], l = {
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 === ee.customSort && s === V.Category && (l.orderByX = [...t]), i === ee.customSort && a === V.Category && (l.orderByY = [...t]), Object.keys(l).length > 1 && (e.orderOptions.data = l);
392
- }, qs = (t, e) => {
393
- const s = e.series[0];
394
- s.gridLine && (s.gridLine.width = t);
395
- }, Vs = (t) => t.series[0].gridLine?.width, Ns = (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
- }, ks = (t) => t.series[0].gridLine?.color, Rs = (t, e) => {
399
- const s = e.legend;
400
- s && (s.position = t);
401
- }, Os = (t) => t.legend?.position ?? at.Bottom, Ds = (t) => t.series[0].query?.outStatistics?.[0]?.onStatisticField, ws = (t) => {
402
- const { field: e, config: s, layerInfo: r, commonStrings: a } = t, i = s.series[0].query?.outStatistics?.[0], l = Z(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: `${L.Count}_${e}`,
408
- statisticType: L.Count
450
+ outStatisticFieldName: `${I.Count}_${e}`,
451
+ statisticType: I.Count
409
452
  }
410
453
  ]
411
- }, l && s.title && (s.title.content.text = H(s, r, a));
412
- }, Ps = (t) => t.series[0].query?.outStatistics?.[0].statisticType ?? L.Count, Es = (t) => {
413
- const { aggregationType: e, config: s, layerInfo: r, commonStrings: a } = t, i = s.series[0]?.query?.outStatistics?.[0], l = Z(s, r, a);
414
- i && e !== L.NoAggregation && (i.statisticType = e, i.outStatisticFieldName = `${e}_${i.onStatisticField}`), (e === L.Count || e === L.Sum) && Dt(U.Zero, s), l && s.title && (s.title.content.text = H(s, r, a));
415
- }, Ms = (t) => t.nullPolicy, Dt = (t, e) => {
416
- e.nullPolicy = t;
417
- }, $s = (t) => t.series[0].emptyCells, Ys = (t, e) => {
418
- e.series[0].emptyCells = t;
419
- }, Ws = (t) => t.series[0].emptyCells?.text, Xs = (t, e) => {
420
- e.series[0].emptyCells ? e.series[0].emptyCells.text = t : e.series[0].emptyCells = { text: t };
421
- }, Hs = (t) => t.includeLeapDay, js = (t, e) => {
422
- e.includeLeapDay = t;
423
- }, Us = (t) => t.series[0].emptyCells?.symbol, Ks = (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 Qs(t) {
427
- return t.viewType;
469
+ function Si(s) {
470
+ return s.viewType;
428
471
  }
429
- function zs(t, e) {
430
- et(e) || (e.viewType = t);
472
+ function Fi(s, e) {
473
+ mt(e) || (e.viewType = s);
431
474
  }
432
- function _s(t) {
433
- return t.series[0].classBreaksRules?.breaksCount ?? M.classBreaks.breaksCount;
475
+ function xi(s) {
476
+ return s.series[0].classBreaksRules?.breaksCount ?? H.classBreaks.breaksCount;
434
477
  }
435
- function Gs(t, e) {
436
- e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.breaksCount = t ?? M.classBreaks.breaksCount : e.series[0].classBreaksRules = {
437
- breaksCount: t ?? M.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 Zs(t) {
441
- return t.series[0].classBreaksRules?.classificationMethod;
483
+ function Ti(s) {
484
+ return s.series[0].classBreaksRules?.classificationMethod;
442
485
  }
443
- function Js(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 ?? M.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 ei(t, e) {
449
- e.firstDayOfWeek = t;
491
+ function Ci(s, e) {
492
+ e.firstDayOfWeek = s;
450
493
  }
451
- function ti(t) {
452
- return t.firstDayOfWeek;
494
+ function bi(s) {
495
+ return s.firstDayOfWeek;
453
496
  }
454
- function si(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 ii(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 ai(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 ri(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 Y(t) {
482
- const { seriesIndex: e, xAxisField: s, aggregationType: r, config: a, layerInfo: i, commonStrings: l } = t, n = X(i?.layer).idField;
483
- let y;
484
- const g = a.series[e ?? 0];
485
- let F = !1, o = !1, c = !1;
486
- if (g === void 0) {
487
- const u = a.series;
488
- F = u.slice(0, e).every((p) => b(p)), o = u.slice(0, e).every((p) => A(p)), c = u.slice(0, e).every((p) => Fe(p));
524
+ const as = [
525
+ R.DayOfMonth,
526
+ R.MonthOfYear
527
+ ], Te = (s) => {
528
+ let e;
529
+ return _(s) ? e = ce() : (q(s) || Q(s)) && (e = z()), e;
530
+ }, Be = (s) => q(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 === R.DayOfWeek ? t = R.HourOfDay : s === 1 && e?.unit === R.HourOfDay && (t = R.DayOfWeek), {
539
+ type: T.CalendarDateParts,
540
+ unit: t
541
+ };
542
+ }, ns = (s) => {
543
+ let e = {};
544
+ switch (s.unit) {
545
+ case R.DayOfMonth:
546
+ e = { day: "2-digit" };
547
+ break;
548
+ case R.DayOfWeek:
549
+ e = { weekday: "short" };
550
+ break;
551
+ case R.HourOfDay:
552
+ e = { hour: "numeric", hour12: !1 };
553
+ break;
554
+ case R.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 = w(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(g), o = A(g), c = Fe(g);
491
- F ? y = dt({
492
- commonStrings: l,
616
+ p = V(c), f = k(c), u = Fe(c);
617
+ p ? l = bt({
618
+ commonStrings: n,
493
619
  seriesIndex: e,
494
- objectIDField: n
495
- }) : o ? y = yt({
496
- commonStrings: l,
620
+ objectIDField: o
621
+ }) : f ? l = At({
622
+ commonStrings: n,
497
623
  seriesIndex: e,
498
- objectIDField: n
499
- }) : c ? y = mt(l, n) : y = gt({
624
+ objectIDField: o
625
+ }) : u ? l = vt(n, o) : l = It({
500
626
  seriesIndex: e,
501
- objectIDField: n,
502
- commonStrings: l
627
+ objectIDField: o,
628
+ commonStrings: n
503
629
  });
504
- const m = a.series[0]?.dataLabels, d = {
505
- ...y,
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
- ...y.dataLabels,
510
- type: y.dataLabels?.type ?? v.Text,
511
- content: { ...y.dataLabels?.content, ...m?.content, type: nt.TS },
635
+ ...l.dataLabels,
636
+ type: l.dataLabels?.type ?? T.Text,
637
+ content: { ...l.dataLabels?.content, ...m?.content, type: Tt.TS },
512
638
  visible: m?.visible ?? !1
513
- }
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 (d.query = {
516
- groupByFieldsForStatistics: [s]
517
- }, r !== L.NoAggregation && n !== void 0) {
518
- const u = `${r}_${n}_0`.toUpperCase();
519
- d.y = u, d.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
- onStatisticField: n,
523
- outStatisticFieldName: u
655
+ onStatisticField: o,
656
+ outStatisticFieldName: B
524
657
  }
525
658
  ];
526
659
  }
527
- if (k(a.series[0]) && k(d) && ue({ chartConfig: a })) {
528
- let u = Bt(a);
529
- u === se.Quarter && (u = se.Month), d.temporalBinning = {
530
- ...a.series[0]?.temporalBinning,
531
- unit: u
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
532
665
  };
533
666
  }
534
- return re(d);
667
+ return J(C);
535
668
  }
536
- function H(t, e, s) {
537
- const { layerFieldsInfo: r } = e, { idField: a, isTraditionalTypeOID: i } = X(e.layer), l = $(t), n = G(t), y = Ae(t), g = _(t), F = i && (n.length === 0 || n.includes(a)), o = ct(y, s), c = F ? "" : n.map((h) => D(r ?? [], h)).join(", "), m = D(r ?? [], l), d = D(r ?? [], g), u = t.series.some((h) => O(h)), p = u ? "category" : "xAxisField", T = m;
538
- let C = "";
539
- if (Te({
540
- fieldName: l,
541
- numericFields: n,
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) => w(r ?? [], S)).join(", "), m = w(r ?? [], n), d = w(r ?? [], c), y = s.series.some((S) => W(S)), g = y ? "category" : "xAxisField", F = m;
671
+ let x = "";
672
+ if (ge({
673
+ fieldName: n,
674
+ numericFields: o,
542
675
  fieldList: r
543
676
  }))
544
- C = P(s.titleLabels.aggrTypeOfAggrFields, {
545
- aggregationType: o,
546
- aggregationFields: c
677
+ x = M(t.titleLabels.aggrTypeOfAggrFields, {
678
+ aggregationType: f,
679
+ aggregationFields: u
547
680
  });
548
- else if (y === L.NoAggregation) {
549
- const h = F ? a : c;
550
- if (g === "") {
551
- const f = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
552
- C = P(s.titleLabels[f], {
553
- aggregationType: h,
554
- [p]: T
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
555
688
  });
556
689
  } else {
557
- const f = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
558
- C = P(s.titleLabels[f], {
559
- aggregationType: h,
560
- [p]: T,
690
+ const A = y ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
691
+ x = M(t.titleLabels[A], {
692
+ aggregationType: S,
693
+ [g]: F,
561
694
  splitByField: d
562
695
  });
563
696
  }
564
- } else if (y === L.Count)
565
- if (g === "") {
566
- const h = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
567
- C = P(s.titleLabels[h], {
568
- aggregationType: o,
569
- [p]: T
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
570
703
  });
571
704
  } else {
572
- const h = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
573
- C = P(s.titleLabels[h], {
574
- aggregationType: o,
575
- [p]: T,
705
+ const S = y ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
706
+ x = M(t.titleLabels[S], {
707
+ aggregationType: f,
708
+ [g]: F,
576
709
  splitByField: d
577
710
  });
578
711
  }
579
- else if (g !== "") {
580
- const h = u ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
581
- C = P(s.titleLabels[h], {
582
- aggregationType: o,
583
- aggregationField: c,
584
- [p]: T,
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,
585
718
  splitByField: d
586
719
  });
587
- } else if (n.length > 0) {
588
- const h = u ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
589
- C = P(s.titleLabels[h], {
590
- aggregationType: o,
591
- aggregationFields: c,
592
- [p]: T
720
+ } else if (o.length > 0) {
721
+ const S = y ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
722
+ x = M(t.titleLabels[S], {
723
+ aggregationType: f,
724
+ aggregationFields: u,
725
+ [g]: F
593
726
  });
594
727
  }
595
- return C;
728
+ return x;
596
729
  }
597
- const be = (t) => ne({
598
- where: t.query?.where,
730
+ const Re = (s) => me({
731
+ where: s.query?.where,
599
732
  normalize: !1,
600
733
  escape: !1
601
- }) ?? "", Ae = (t) => t?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? L.NoAggregation, _ = Ve(
602
- (t) => {
603
- const e = t?.series?.[0]?.query?.where?.split("=")[0].trim() ?? "";
604
- return tt(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;
605
738
  },
606
- (t) => t?.series?.[0]?.query?.where
607
- ), G = (t) => {
739
+ (s) => s?.series?.[0]?.query?.where
740
+ ), K = (s) => {
608
741
  let e = [];
609
- if (_(t) === "")
610
- e = t?.series.map((s) => {
611
- const r = s.query?.outStatistics?.map((a) => a.onStatisticField) ?? [];
612
- 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;
613
746
  }).flat() ?? [];
614
747
  else {
615
- 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];
616
749
  e = r !== void 0 ? [r] : [];
617
750
  }
618
- return e.filter((s) => s !== "");
751
+ return e.filter((t) => t !== "");
619
752
  };
620
- function ve(t) {
621
- const { splitByField: e, numericFields: s, layer: r, seriesIndex: a } = t, i = X(r).idField ?? "";
622
- return e === "" ? s[a] ?? i : s[0] ?? i;
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;
623
756
  }
624
- function wt(t) {
625
- const { numericFields: e, aggregationType: s, config: r, layerInfo: a } = t;
626
- let i = !1;
627
- s === L.Count ? i = !0 : s === L.NoAggregation && (i = e.every((y) => {
628
- const g = a.layerFieldsInfo.find((F) => F.name === y);
629
- return g !== void 0 ? ge(g) : !1;
630
- })), de(r, 1, i);
631
- const l = r.series.some((y) => b(y)), n = r.series.some((y) => A(y));
632
- if (l || n) {
633
- const y = $(r), g = a.layerFieldsInfo.find((o) => o.name === y), F = g !== void 0 && ge(g);
634
- de(r, 0, F);
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));
765
+ if (n || o) {
766
+ const l = E(r), c = i.layerFieldsInfo.find((f) => f.name === l), p = c !== void 0 && xe(c);
767
+ pe(r, 0, p);
635
768
  }
636
769
  }
637
- const ae = (t) => {
770
+ const de = (s) => {
638
771
  let e;
639
- if (oe(t)) {
640
- 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;
641
- e = [pe(s, a), pe(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)];
642
775
  } else {
643
- const s = t.orderOptions?.data?.orderType ?? V.Category, r = t.orderOptions?.data && "orderBy" in t.orderOptions.data ? t.orderOptions.data.orderBy : rt.Ascending;
644
- e = [it(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)];
645
778
  }
646
779
  return e;
647
780
  };
648
- function Pt(t) {
649
- const { xAxisField: e, numericFields: s, aggregationType: r, config: a, layerInfo: i, commonStrings: l } = t, { layerFieldsInfo: n } = i;
650
- let y = !1;
651
- const g = Y({
652
- 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,
653
784
  xAxisField: e,
654
785
  aggregationType: r,
655
- layerInfo: i,
786
+ layerInfo: a,
656
787
  seriesIndex: 0,
657
- commonStrings: l
658
- }), F = Q({
659
- config: a,
788
+ commonStrings: n
789
+ }), c = te({
790
+ config: i,
660
791
  xAxisField: e,
661
- numericFields: s,
792
+ numericFields: t,
662
793
  aggregationType: r,
663
- layer: i.layer,
664
- fieldList: n
665
- }).name, o = {
666
- ...g,
667
- id: `series_${Date.now()}`,
668
- name: l.axisLabels.values,
669
- x: te,
670
- y: F
671
- }, c = [];
672
- for (const d of s)
673
- c.push({
674
- onStatisticField: d,
675
- outStatisticFieldName: `${d}_0`.toUpperCase(),
794
+ layer: a.layer,
795
+ fieldList: o
796
+ }).name, p = E(i), f = K(i), u = ge({
797
+ fieldName: p,
798
+ numericFields: f,
799
+ fieldList: o
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(),
676
811
  statisticType: r
677
812
  });
678
- o.query = { outStatistics: c };
679
- const m = a.series[0];
680
- return m !== void 0 && (o.id = m.id, (b(o) && b(m) || A(o) && A(m)) && W(o, m), a.colorMatch || (O(m) && O(o) ? o.fillSymbol = m.fillSymbol : (b(o) && b(m) || A(o) && A(m)) && (o.lineSymbol = m.lineSymbol, o.markerSymbol = m.markerSymbol), y = !0), o.id = m.id, m.name !== g.name && (o.name = m.name)), a.series.length === 1 && ((b(o) || A(o)) && W(o, a.series[0]), a.colorMatch || (O(o) ? o.fillSymbol = a.series[0].fillSymbol : (b(o) || A(o)) && (o.lineSymbol = a.series[0].lineSymbol, o.markerSymbol = a.series[0].markerSymbol), y = !0)), a.colorMatch = !y, [o];
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];
681
814
  }
682
- function Ie(t) {
683
- const { xAxisField: e, numericFields: s, aggregationType: r, config: a, layerInfo: i, commonStrings: l } = t, { layerFieldsInfo: n } = i, y = X(i.layer).idField, g = [];
684
- let F = !1;
685
- for (let u = 0; u < s.length; u += 1) {
686
- const p = Y({
687
- 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,
688
820
  xAxisField: e,
689
821
  aggregationType: r,
690
- layerInfo: i,
691
- seriesIndex: u,
692
- commonStrings: l
693
- }), T = a.series[u]?.y, C = typeof T == "string" && T.trim() !== "" && !n.find((S) => S.name === T) ? T : Q({
694
- config: a,
822
+ layerInfo: a,
823
+ seriesIndex: d,
824
+ commonStrings: n
825
+ }), g = i.series[d]?.y, F = typeof g == "string" && g.trim() !== "" && !o.find((O) => O.name === g) ? g : te({
826
+ config: i,
695
827
  xAxisField: e,
696
- numericFields: s,
828
+ numericFields: t,
697
829
  aggregationType: r,
698
- layer: i.layer,
699
- numericFieldIndex: u,
700
- fieldList: n
701
- }).name, h = s[u];
702
- let f = {
703
- ...p,
704
- query: {
705
- ...p.query
706
- }
830
+ layer: a.layer,
831
+ numericFieldIndex: d,
832
+ fieldList: o
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 ?? w(o, x) ?? C, v = S ?? y, b = {
836
+ ...v,
837
+ id: C,
838
+ name: B
707
839
  };
708
- s && h !== y && (f = {
709
- ...f,
710
- id: h,
711
- name: D(n, h)
712
- });
713
- let R = h;
714
- f.query !== void 0 && (r !== L.NoAggregation ? (R = 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 = [
715
842
  {
716
- ...p.query?.outStatistics?.[0] ?? {},
717
- onStatisticField: h,
718
- outStatisticFieldName: C,
843
+ ...v.query?.outStatistics?.[0] ?? {},
844
+ onStatisticField: x,
845
+ outStatisticFieldName: F,
719
846
  statisticType: r
720
847
  }
721
- ]) : delete f.query.outStatistics), f.y = R;
722
- const x = a.series.find(
723
- (S) => S.query?.outStatistics?.[0]?.onStatisticField === h && S.query.where === void 0 || S.query?.outStatistics === void 0 && (S.y === h || S.x === h)
724
- );
725
- if (x !== void 0 && typeof x.y == "string" && x.y.trim() !== "") {
726
- (b(f) && b(x) || A(f) && A(x)) && W(f, x), a.colorMatch || (O(f) && O(x) ? f.fillSymbol = x.fillSymbol : (b(f) && b(x) || A(f) && A(x)) && (f.lineSymbol = x.lineSymbol, f.markerSymbol = x.markerSymbol), F = !0);
727
- const S = Y({
728
- config: a,
729
- xAxisField: e,
730
- aggregationType: r,
731
- layerInfo: i,
732
- seriesIndex: u,
733
- commonStrings: l
734
- });
735
- f.id = x.id, x.id !== S.id && x.name !== S.name && (f.id = x.id, f.name = x.name), f.assignToSecondValueAxis = x.assignToSecondValueAxis, f.type === v.HeatSeries && x.type === v.HeatSeries && (f.y = x.y, f.heatRulesType = x.heatRulesType);
736
- }
737
- g.push(f);
848
+ ]) : delete b.query.outStatistics), b.y = h, c.push(b);
738
849
  }
739
- const o = g.filter((u) => O(u)), c = g.filter(
740
- (u) => b(u) || A(u)
741
- ), m = a.series.filter((u) => O(u)), d = a.series.filter(
742
- (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)
743
854
  );
744
- return m.length === 1 && o.length === 1 && !a.colorMatch && (O(m[0]) && O(o[0]) && (o[0].fillSymbol = m[0].fillSymbol), F = !0), d.length === 1 && c.length === 1 && ((b(d[0]) && b(c[0]) || A(d[0]) && A(c[0])) && W(c[0], d[0]), a.colorMatch || ((b(d[0]) && b(c[0]) || A(d[0]) && A(c[0])) && (c[0].lineSymbol = d[0].lineSymbol, c[0].markerSymbol = d[0].markerSymbol), F = !0)), a.colorMatch = !F, g;
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;
745
856
  }
746
- function li(t) {
747
- const { aggregationType: e, config: s, layerInfo: r, commonStrings: a } = t, { layerFieldsInfo: i, layer: l } = r, n = $(s), y = G(s), g = _(s), F = Z(s, r, a), o = Le(s, r, a);
748
- if (s.series.forEach((c, m) => {
749
- const d = Q({
750
- config: s,
751
- xAxisField: n,
752
- numericFields: y,
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,
862
+ xAxisField: o,
863
+ numericFields: l,
753
864
  aggregationType: e,
754
- splitByField: g,
755
- layer: l,
865
+ splitByField: c,
866
+ layer: n,
756
867
  seriesIndex: m,
757
868
  numericFieldIndex: m,
758
- fieldList: i
869
+ fieldList: a
759
870
  }).name;
760
- if (c.y = d, e !== L.NoAggregation) {
761
- const u = ve({
762
- splitByField: g,
763
- numericFields: y,
764
- layer: l,
765
- seriesIndex: m
766
- }), p = c.query?.outStatistics?.[0]?.onStatisticField ?? u;
767
- c.query = {
768
- ...c.query,
769
- outStatistics: [
770
- {
771
- ...c.query?.outStatistics?.[0],
772
- outStatisticFieldName: d,
773
- statisticType: e,
774
- onStatisticField: p
775
- }
776
- ]
777
- };
778
- } else
779
- delete c.query?.outStatistics, !ue({ chartConfig: s }) && c.type === v.LineSeries && c.temporalBinning !== void 0 && delete c.temporalBinning;
780
- }), F && s.title && (s.title.content.text = H(s, r, a)), o && s.series[0].type !== v.HeatSeries) {
781
- const c = le({
782
- config: s,
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 : [
881
+ {
882
+ ...u.query?.outStatistics?.[0],
883
+ outStatisticFieldName: d,
884
+ statisticType: e,
885
+ onStatisticField: g
886
+ }
887
+ ]
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,
783
892
  layerInfo: r,
784
- commonStrings: a,
785
- numericFields: y,
893
+ commonStrings: i,
894
+ numericFields: l,
786
895
  aggregationType: e
787
896
  });
788
- E(s, 1, c);
897
+ Y(t, 1, u);
789
898
  }
790
899
  }
791
- function Et(t) {
900
+ function us(s) {
792
901
  const {
793
902
  splitByField: e,
794
- xAxisField: s,
903
+ xAxisField: t,
795
904
  numericFields: r,
796
- aggregationType: a,
797
- config: i,
798
- layerInfo: l,
799
- commonStrings: n,
800
- splitByFieldInfos: y
801
- } = t, { layer: g, layerFieldsInfo: F } = l, { categoriesArray: o, splitByFieldType: c } = y, m = ve({
905
+ aggregationType: i,
906
+ config: a,
907
+ layerInfo: n,
908
+ commonStrings: o,
909
+ splitByFieldInfos: l
910
+ } = s, { layer: c, layerFieldsInfo: p } = n, { categoriesArray: f, splitByFieldType: u } = l, m = Pe({
802
911
  splitByField: e,
803
912
  numericFields: r,
804
- layer: g,
913
+ layer: c,
805
914
  seriesIndex: 0
806
915
  });
807
- let d = [], u = !1;
808
- if (o.length === 0) {
809
- d = Ie({
810
- xAxisField: s,
916
+ let d = [];
917
+ if (f.length === 0) {
918
+ d = Ee({
919
+ xAxisField: t,
811
920
  numericFields: r,
812
- aggregationType: a,
813
- config: i,
814
- layerInfo: l,
815
- commonStrings: n
921
+ aggregationType: i,
922
+ config: a,
923
+ layerInfo: n,
924
+ commonStrings: o
816
925
  });
817
- for (const p of d)
818
- p.query && (p.query.where = `${e}=''`);
926
+ for (const y of d)
927
+ y.query && (y.query.where = `${e}=''`);
819
928
  } else
820
- for (let p = 0; p < o.length; p += 1) {
821
- const T = o[p], C = Q({
822
- config: i,
823
- 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,
824
933
  numericFields: r,
825
- aggregationType: a,
826
- layer: l.layer,
827
- seriesIndex: p,
934
+ aggregationType: i,
935
+ layer: n.layer,
936
+ seriesIndex: y,
828
937
  splitByField: e,
829
- fieldList: F
830
- }).name, h = Y({
831
- config: i,
832
- xAxisField: s,
833
- aggregationType: a,
834
- layerInfo: l,
835
- seriesIndex: p,
836
- commonStrings: n
837
- }), f = xe({
838
- queryObject: l.layer,
938
+ fieldList: p
939
+ }).name, x = ae({
940
+ config: a,
941
+ xAxisField: t,
942
+ aggregationType: i,
943
+ layerInfo: n,
944
+ seriesIndex: y,
945
+ commonStrings: o
946
+ }), S = Oe({
947
+ queryObject: n.layer,
839
948
  fieldName: e,
840
- fieldValue: T ?? ""
841
- }), R = `${T}`, S = {
842
- ...h,
843
- id: R,
844
- name: f ?? R,
845
- 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,
846
957
  query: {
847
- ...h.query,
848
- where: `${e}=${c === ot.String && T !== null ? `'${T}'` : T}`,
849
- outStatistics: a !== L.NoAggregation ? [
958
+ ...b.query,
959
+ where: `${e}=${u === De.String && g !== null ? `'${g}'` : g}`,
960
+ outStatistics: i !== I.NoAggregation ? [
850
961
  {
851
- ...h.query?.outStatistics?.[0] ?? {},
962
+ ...b.query?.outStatistics?.[0] ?? {},
852
963
  onStatisticField: m,
853
- outStatisticFieldName: C,
854
- statisticType: a
964
+ outStatisticFieldName: F,
965
+ statisticType: i
855
966
  }
856
967
  ] : void 0
857
968
  }
858
969
  };
859
- a === L.NoAggregation && (S.query !== void 0 && (delete S.query.outStatistics, delete S.query.groupByFieldsForStatistics), S.y = m);
860
- const I = i.series.find(
861
- (q) => String(be(q)).trim().replace(/'/gu, "") === R
862
- );
863
- 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((q) => q.query?.fetchNullValues)), d.push(S);
970
+ d.push(h);
864
971
  }
865
- return i.colorMatch = !u, d;
972
+ return d;
866
973
  }
867
- const ni = (t) => {
974
+ const Oi = (s) => {
868
975
  const {
869
976
  xAxisFieldName: e,
870
- splitByField: s,
977
+ splitByField: t,
871
978
  numericFields: r,
872
- aggregationType: a,
873
- config: i,
874
- layerInfo: l,
875
- commonStrings: n,
876
- splitByFieldInfos: y
877
- } = t, { layerFieldsInfo: g } = l ?? {}, F = xt(i), o = $(i), c = g.find((B) => B.name === o), m = i.series[0].query?.fetchNullValues, d = "nullCategory" in i.series?.[0] ? i.series[0].nullCategory : void 0, u = i.series[0]?.query === void 0, p = g.find((B) => B.name === e), T = Z(i, l, n), C = Le(i, l, n), h = Mt(i, l);
878
- let f = he(i);
879
- const R = i.series.some((B) => O(B)), x = ft(i.series), S = St(i.series), I = oe(i), q = {};
880
- I && (q.classBreaksRules = i.series[0]?.classBreaksRules, q.xTemporalBinning = i.series[0]?.xTemporalBinning, q.yTemporalBinning = i.series[0]?.yTemporalBinning, q.emptyCells = i.series[0]?.emptyCells, q.nullPolicy = i.nullPolicy);
881
- let J = !1;
882
- if (st(p) ? f = fe() : !me(c) && me(p) ? f = Se() : !j(c) && j(p) ? (f = Se(), J = !0) : j(c) && !j(p) && (R ? f = fe() : f = pt(), J = !0), f !== void 0 && ke(i, n, f), F === 0 && (i.series = [
883
- Y({ config: i, xAxisField: e, aggregationType: a, layerInfo: l, commonStrings: n })
884
- ]), i.series.forEach((B) => {
885
- B.x = e, B.query !== void 0 && (B.query.groupByFieldsForStatistics = [e]);
886
- }), s === "" || r.length > 1 ? Te({
979
+ aggregationType: i,
980
+ config: a,
981
+ layerInfo: n,
982
+ commonStrings: o,
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 = q(m) || q(y);
987
+ if (_(y) ? S = ce() : !Q(m) && Q(y) ? S = z() : !q(m) && q(y) ? S = z() : q(m) && !q(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({
887
992
  fieldName: e,
888
993
  numericFields: r,
889
- fieldList: g
890
- }) ? i.series = Pt({
891
- config: i,
892
- layerInfo: l,
994
+ fieldList: c
995
+ }) ? a.series = cs({
996
+ config: a,
997
+ layerInfo: n,
893
998
  xAxisField: e,
894
999
  numericFields: r,
895
- aggregationType: a,
896
- commonStrings: n
897
- }) : i.series = Ie({
898
- config: i,
899
- layerInfo: l,
1000
+ aggregationType: i,
1001
+ commonStrings: o
1002
+ }) : a.series = Ee({
1003
+ config: a,
1004
+ layerInfo: n,
900
1005
  xAxisField: e,
901
1006
  numericFields: r,
902
- aggregationType: a,
903
- commonStrings: n
904
- }) : y && (i.series = Et({
905
- config: i,
906
- layerInfo: l,
907
- splitByField: s,
1007
+ aggregationType: i,
1008
+ commonStrings: o
1009
+ }) : l && (a.series = us({
1010
+ config: a,
1011
+ layerInfo: n,
1012
+ splitByField: t,
908
1013
  xAxisField: e,
909
1014
  numericFields: r,
910
- aggregationType: a,
911
- commonStrings: n,
912
- splitByFieldInfos: y
913
- })), h && i.series[0].type !== v.HeatSeries) {
914
- const B = D(g, e);
915
- E(i, 0, B);
1015
+ aggregationType: i,
1016
+ commonStrings: o,
1017
+ splitByFieldInfos: l
1018
+ })), x && e !== U && a.series[0].type !== T.HeatSeries) {
1019
+ const h = w(c, e);
1020
+ Y(a, 0, h);
916
1021
  }
917
- if (C && i.series[0].type !== v.HeatSeries) {
918
- const B = le({
919
- config: i,
920
- layerInfo: l,
921
- commonStrings: n,
1022
+ if (F && a.series[0].type !== T.HeatSeries) {
1023
+ const h = ye({
1024
+ config: a,
1025
+ layerInfo: n,
1026
+ commonStrings: o,
922
1027
  numericFields: r,
923
- aggregationType: a
1028
+ aggregationType: i
924
1029
  });
925
- E(i, 1, B);
1030
+ Y(a, 1, h);
926
1031
  }
927
- if (T && i.title && (i.title.content.text = H(i, l, n)), N({ config: i, value: null, axisIndex: 1, isMax: !1 }), N({ config: i, value: null, axisIndex: 1, isMax: !0 }), wt({ numericFields: r, aggregationType: a, config: i, layerInfo: l }), (x || S) && (N({ config: i, value: null, axisIndex: 0, isMax: !1 }), N({ config: i, value: null, axisIndex: 0, isMax: !0 }), J && a !== L.NoAggregation)) {
928
- const B = f?.type === v.DateAxisFormat ? U.Null : U.Interpolate;
929
- bt(B, 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 = q(y) ? X.Null : X.Interpolate;
1046
+ Et(h, a);
930
1047
  }
931
- I && (i.series[0].classBreaksRules = q.classBreaksRules, i.series[0].xTemporalBinning = q.xTemporalBinning, i.series[0].yTemporalBinning = q.yTemporalBinning, i.series[0].emptyCells = q.emptyCells, i.nullPolicy = q.nullPolicy), u ? i.series.forEach((B) => {
932
- delete B.query;
933
- }) : m && i.series.forEach((B) => {
934
- B.query && (B.query.fetchNullValues = m);
935
- }), d && i.series.forEach((B) => {
936
- (B.type === v.BarSeries || B.type === v.LineSeries || B.type === v.RadarSeries) && (B.nullCategory = d);
1048
+ $(a) && qe({ commonStrings: o, config: a, layerInfo: n }), a.series.forEach((h) => {
1049
+ d && delete h.query, u !== e && L(h) && (y?.type === De.TimeOnly ? h.binTemporalData = !1 : h.binTemporalData = h.type === T.LineSeries && q(y));
937
1050
  });
938
- }, W = (t, e) => {
939
- 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 = {
940
1053
  ...e.markerSymbol,
941
- color: t.markerSymbol?.color
1054
+ color: s.markerSymbol?.color
942
1055
  });
943
- }, oi = (t) => {
944
- const { config: e, seriesIndex: s, layerInfo: r, commonStrings: a } = t, i = e.series?.[s], l = _(e);
945
- let n;
946
- if (K(e.series) === w.BarAndLineFromFields)
947
- n = a.axisLabels.values;
948
- else if (qe(l)) {
949
- const g = i.query?.outStatistics?.[0]?.onStatisticField;
950
- g !== void 0 && g !== X(r.layer).idField && (n = D(r.layerFieldsInfo, g));
1056
+ }, Di = (s) => {
1057
+ const { config: e, seriesIndex: t, layerInfo: r, commonStrings: i } = s, a = e.series?.[t], n = re(e);
1058
+ let o;
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 = w(r.layerFieldsInfo, c));
951
1064
  } else {
952
- const g = String(be(i)).trim().replace(/'/gu, "");
953
- n = xe({
1065
+ const c = String(Re(a)).trim().replace(/'/gu, "");
1066
+ o = Oe({
954
1067
  queryObject: r.layer,
955
- fieldName: l,
956
- fieldValue: g ?? ""
957
- }) ?? g;
1068
+ fieldName: n,
1069
+ fieldValue: c ?? ""
1070
+ }) ?? c;
958
1071
  }
959
- return n ?? i.id;
960
- }, ui = (t, e) => {
961
- if (oe(e))
962
- Ot(t, e);
1072
+ return o ?? a.id;
1073
+ }, Vi = (s, e) => {
1074
+ if ($(e))
1075
+ ss(s, e);
963
1076
  else {
964
1077
  e.orderOptions ??= {};
965
- const s = e.orderOptions?.data?.orderType;
966
- ae(e)[0] === ee.customSort && s === V.Category && (e.orderOptions.data = {
967
- orderType: V.Category,
968
- 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]
969
1082
  });
970
1083
  }
971
- }, ci = async (t) => {
972
- const { config: e, layerInfo: s, errorStrings: r } = t, a = $(e), i = he(e)?.type, l = G(e), n = K(e.series);
973
- let y = [];
974
- return i === v.CategoryAxisFormat && (n === w.BarAndLineFromFields || a === te ? y = l.map((g) => D(s?.layerFieldsInfo, g)) : a.trim() !== "" && a !== te && s !== void 0 && (y = await Ne({
975
- 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) => w(t?.layerFieldsInfo, c)) : i.trim() !== "" && i !== U && t !== void 0 && (l = await Xe({
1088
+ layerInfo: t,
976
1089
  config: e,
977
- category: a,
1090
+ category: i,
978
1091
  errorStrings: r
979
- }))), y;
1092
+ }))), l;
980
1093
  };
981
- function Z(t, e, s) {
982
- const r = H(t, e, s), a = Tt(t), i = z(t);
983
- 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;
984
1097
  }
985
- function Le(t, e, s) {
986
- const r = le({
987
- config: t,
1098
+ function We(s, e, t) {
1099
+ const r = ye({
1100
+ config: s,
988
1101
  layerInfo: e,
989
- commonStrings: s,
990
- numericFields: G(t),
991
- aggregationType: Ae(t)
992
- }), a = ce(1, t), i = z(t);
993
- 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;
994
1107
  }
995
- function Mt(t, e) {
996
- const s = D(e.layerFieldsInfo, $(t)), r = ce(0, t), a = z(t);
997
- return s === r || a;
1108
+ function ds(s) {
1109
+ const { config: e, layerInfo: t, commonStrings: r } = s, i = w(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;
998
1111
  }
999
- function di(t) {
1000
- return k(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;
1001
1114
  }
1002
- function yi(t, e) {
1003
- ue({ chartConfig: e }) && e?.series.forEach((s) => {
1004
- (s?.type === v.BarSeries || s?.type === v.LineSeries) && (s.binTemporalData = t, t ? s.temporalBinning = {
1005
- unit: se.Day,
1115
+ function Ri(s, e) {
1116
+ e?.series.forEach((t) => {
1117
+ L(t) && (t.binTemporalData = s, s ? t.temporalBinning = {
1118
+ unit: le.Day,
1006
1119
  size: 0,
1007
- timeAggregationType: lt.Start,
1120
+ timeAggregationType: ht.Start,
1008
1121
  trimIncompleteTimeInterval: !0,
1009
- nullPolicy: U.Null
1010
- } : delete s.temporalBinning);
1122
+ nullPolicy: X.Null
1123
+ } : delete t.temporalBinning);
1011
1124
  });
1012
1125
  }
1013
1126
  export {
1014
- Ts as $,
1015
- ui as A,
1016
- ni as B,
1017
- di as C,
1018
- yi as D,
1019
- H as E,
1020
- Rt as F,
1021
- bs as G,
1022
- Qs as H,
1023
- zs as I,
1024
- vs as J,
1025
- As as K,
1026
- Ls as L,
1027
- Is as M,
1028
- _s as N,
1029
- Gs as O,
1030
- Zs as P,
1031
- Js as Q,
1032
- si as R,
1033
- ii as S,
1034
- ai as T,
1035
- ri as U,
1036
- Fs as V,
1037
- hs as W,
1038
- Vs as X,
1039
- qs as Y,
1040
- ks as Z,
1041
- Ns as _,
1042
- gs as a,
1043
- xs as a0,
1044
- Cs as a1,
1045
- Bs as a2,
1046
- Ds as a3,
1047
- ws as a4,
1048
- Ps as a5,
1049
- Es as a6,
1050
- Os as a7,
1051
- Rs as a8,
1052
- Ms as a9,
1053
- Dt as aa,
1054
- $s as ab,
1055
- Ys as ac,
1056
- Ws as ad,
1057
- Xs as ae,
1058
- Hs as af,
1059
- js as ag,
1060
- ti as ah,
1061
- ei as ai,
1062
- Us as aj,
1063
- Ks as ak,
1064
- ds as b,
1065
- ys as c,
1066
- G as d,
1067
- _ as e,
1068
- Ss as f,
1069
- Ae as g,
1070
- oi as h,
1071
- ps as i,
1072
- is as j,
1073
- Bt as k,
1074
- ns as l,
1075
- as as m,
1076
- os as n,
1077
- rs as o,
1078
- fs as p,
1079
- us as q,
1080
- At as r,
1081
- Ct as s,
1082
- ls as t,
1083
- ms as u,
1084
- bt as v,
1085
- cs as w,
1086
- li as x,
1087
- ae as y,
1088
- ci 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
1089
1205
  };