@arcgis/charts-components 5.2.0-next.7 → 5.2.0-next.71

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 (448) hide show
  1. package/README.md +2 -2
  2. package/dist/cdn/{YJ6TRXMU.js → 24MSASQQ.js} +1 -1
  3. package/dist/cdn/25MA553Z.js +2 -0
  4. package/dist/cdn/{2HUAW34Q.js → 274L47ID.js} +1 -1
  5. package/dist/cdn/27RKQQPS.js +2 -0
  6. package/dist/cdn/{4USHOYLT.js → 2BE3GYK4.js} +1 -1
  7. package/dist/cdn/2K4MIK4T.js +2 -0
  8. package/dist/cdn/2QGFLRRI.js +2 -0
  9. package/dist/cdn/{S5UDCCRH.js → 2SLJKRSD.js} +1 -1
  10. package/dist/cdn/33JR3GH6.js +2 -0
  11. package/dist/cdn/3B6QE7OV.js +2 -0
  12. package/dist/cdn/3FM3YR57.js +2 -0
  13. package/dist/cdn/3PDVKKKZ.js +2 -0
  14. package/dist/cdn/{CLXVAIQX.js → 3QPQ3RE5.js} +1 -1
  15. package/dist/cdn/3U6ESLPG.js +2 -0
  16. package/dist/cdn/3V4ZETXH.js +2 -0
  17. package/dist/cdn/3WOYVXSZ.js +2 -0
  18. package/dist/cdn/3XB2RWHK.js +2 -0
  19. package/dist/cdn/{A5AECJXP.js → 47E3TKSH.js} +1 -1
  20. package/dist/cdn/{JBHGSSHS.js → 4BQ22DKZ.js} +1 -1
  21. package/dist/cdn/4DC4ARHU.js +2 -0
  22. package/dist/cdn/{CHLE2QGU.js → 4DXGXATO.js} +1 -1
  23. package/dist/cdn/4IO3VF3L.js +2 -0
  24. package/dist/cdn/4JUR3VIE.js +2 -0
  25. package/dist/cdn/4JWIBRGO.js +2 -0
  26. package/dist/cdn/4M4SAEH4.js +2 -0
  27. package/dist/cdn/4ODTQZJK.js +2 -0
  28. package/dist/cdn/54VUGIAU.js +2 -0
  29. package/dist/cdn/{H2A5GZ55.js → 5D2QRMC6.js} +1 -1
  30. package/dist/cdn/5GZDXWTQ.js +2 -0
  31. package/dist/cdn/{GDQBQQUP.js → 5NVOWYWZ.js} +1 -1
  32. package/dist/cdn/{LUSFGRHV.js → 5WIR3JWC.js} +1 -1
  33. package/dist/cdn/{VT4WJZN6.js → 64B7ILJI.js} +1 -1
  34. package/dist/cdn/{DEGBVJ76.js → 64F7QNUM.js} +1 -1
  35. package/dist/cdn/{HVO4LIXR.js → 6LACIKDG.js} +1 -1
  36. package/dist/cdn/{7FZC3RZK.js → 6PDO75JM.js} +1 -1
  37. package/dist/cdn/6TJIHHQF.js +2 -0
  38. package/dist/cdn/{SBYD2EKR.js → 6WJKLKEZ.js} +1 -1
  39. package/dist/cdn/{7LYAWWOE.js → 6WKTHJQK.js} +1 -1
  40. package/dist/cdn/{II2ZPEUZ.js → 7C2LVFNV.js} +1 -1
  41. package/dist/cdn/{4Z23HWDH.js → 7COM5REK.js} +1 -1
  42. package/dist/cdn/{7HGVEE7A.js → 7KNUJIOC.js} +1 -1
  43. package/dist/cdn/{TF7TE7K5.js → 7PC3VBMY.js} +1 -1
  44. package/dist/cdn/7REEJ3OW.js +2 -0
  45. package/dist/cdn/{CHQDKVVQ.js → 7SBVBD4E.js} +1 -1
  46. package/dist/cdn/{6XTKJ7DO.js → 7XHAJY6Q.js} +1 -1
  47. package/dist/cdn/7XWR4EVM.js +2 -0
  48. package/dist/cdn/{DKAHZ7IX.js → ACRMB7MU.js} +1 -1
  49. package/dist/cdn/{OJ5X6I3H.js → ADI63OO7.js} +1 -1
  50. package/dist/cdn/{VY3KBD6N.js → ASYRUV4T.js} +1 -1
  51. package/dist/cdn/AVE3KXWQ.js +2 -0
  52. package/dist/cdn/{TXB2I2U5.js → B2SUC7VR.js} +1 -1
  53. package/dist/cdn/{KFONSKQF.js → B4RCAP3J.js} +1 -1
  54. package/dist/cdn/BAFCVCT4.js +2 -0
  55. package/dist/cdn/{TACQVUBU.js → BDEDEGCZ.js} +1 -1
  56. package/dist/cdn/BGOWDCTO.js +2 -0
  57. package/dist/cdn/{LFQGH44F.js → BJC2AIS3.js} +1 -1
  58. package/dist/cdn/{CNFBNAPJ.js → BK7DHYA7.js} +1 -1
  59. package/dist/cdn/BNNBHYRP.js +2 -0
  60. package/dist/cdn/BQORJ3LU.js +2 -0
  61. package/dist/cdn/BYSUABOV.js +2 -0
  62. package/dist/cdn/BZ6FUIQF.js +2 -0
  63. package/dist/cdn/{K3GNHGEW.js → C3A3UXVR.js} +1 -1
  64. package/dist/cdn/{ZFZ5AEUQ.js → CKIF4L44.js} +1 -1
  65. package/dist/cdn/CNI32IL3.js +2 -0
  66. package/dist/cdn/{ADGMA3ST.js → CRNIOME2.js} +2 -2
  67. package/dist/cdn/CRQK4CKK.js +2 -0
  68. package/dist/cdn/CVFKL3S2.js +2 -0
  69. package/dist/cdn/{ZFJFTDJF.js → CYGMXV56.js} +1 -1
  70. package/dist/cdn/D3YWSIAT.js +2 -0
  71. package/dist/cdn/{KDJ5RVHA.js → DAFNQT4C.js} +1 -1
  72. package/dist/cdn/DB2GBCE3.js +2 -0
  73. package/dist/cdn/DGYLORDT.js +2 -0
  74. package/dist/cdn/{KCMZSNBL.js → DT5BOM5F.js} +1 -1
  75. package/dist/cdn/{DCZWZOPF.js → DWYBKGOM.js} +1 -1
  76. package/dist/cdn/E7QFC64H.js +2 -0
  77. package/dist/cdn/EJWHEBKW.js +2 -0
  78. package/dist/cdn/{ZXOO3X5P.js → EQD2B3I6.js} +1 -1
  79. package/dist/cdn/{J5NHXQLA.js → EQZBQP5A.js} +1 -1
  80. package/dist/cdn/F5AR3N3Z.js +2 -0
  81. package/dist/cdn/F7UO7P33.js +2 -0
  82. package/dist/cdn/{XW4PBQNW.js → FBLOPEXC.js} +1 -1
  83. package/dist/cdn/FJGG2VVZ.js +2 -0
  84. package/dist/cdn/{N6AOFBBX.js → GBOCN364.js} +1 -1
  85. package/dist/cdn/GIH3U7YP.js +2 -0
  86. package/dist/cdn/GKEW5JYD.js +2 -0
  87. package/dist/cdn/{L4G6FO7A.js → HDYL2BOC.js} +1 -1
  88. package/dist/cdn/{QMSINFQX.js → HP3GIDT5.js} +1 -1
  89. package/dist/cdn/{AZOBLYAP.js → I2BM5KSH.js} +1 -1
  90. package/dist/cdn/I5DMUUEL.js +2 -0
  91. package/dist/cdn/{JQKRGUBU.js → IDAOLPMA.js} +1 -1
  92. package/dist/cdn/IJWJOXQC.js +2 -0
  93. package/dist/cdn/{JRHMUFED.js → IK4FPUFJ.js} +1 -1
  94. package/dist/cdn/IO6A77U4.js +2 -0
  95. package/dist/cdn/IODRBLGT.js +2 -0
  96. package/dist/cdn/{P4HSSZRL.js → IONJLIQQ.js} +1 -1
  97. package/dist/cdn/IPEJCIHO.js +2 -0
  98. package/dist/cdn/{A4GEWIPY.js → IR2W7UQ3.js} +1 -1
  99. package/dist/cdn/{QOOBNATX.js → J3VAMS5Z.js} +1 -1
  100. package/dist/cdn/{QFEZPP3R.js → JAQYU6KP.js} +1 -1
  101. package/dist/cdn/{IPM2XKST.js → JWEGCP5P.js} +1 -1
  102. package/dist/cdn/{AK7X7SGI.js → JYC77MVD.js} +1 -1
  103. package/dist/cdn/JYLEN3VQ.js +2 -0
  104. package/dist/cdn/{YOT6DVSU.js → K2PVLPOV.js} +1 -1
  105. package/dist/cdn/K4APZJ2O.js +2 -0
  106. package/dist/cdn/{MVHQR4FJ.js → K6F2LRKI.js} +1 -1
  107. package/dist/cdn/KJZTU3DV.js +2 -0
  108. package/dist/cdn/{D3CFPMAR.js → KOY5DWSR.js} +1 -1
  109. package/dist/cdn/L6DFXTSQ.js +104 -0
  110. package/dist/cdn/{AY6IOQ3H.js → LAEUROZM.js} +1 -1
  111. package/dist/cdn/LAPBDR32.js +2 -0
  112. package/dist/cdn/{AJWYIBGC.js → LC4YFJSM.js} +1 -1
  113. package/dist/cdn/LIDWAYQH.js +45 -0
  114. package/dist/cdn/LJTJTGIW.js +2 -0
  115. package/dist/cdn/LPYRKK25.js +2 -0
  116. package/dist/cdn/MAC4MPUA.js +2 -0
  117. package/dist/cdn/{KZ7LPNX3.js → MGAMMXJW.js} +1 -1
  118. package/dist/cdn/MOG5ZVLX.js +2 -0
  119. package/dist/cdn/{ETKPMU7Z.js → MSB6J66X.js} +1 -1
  120. package/dist/cdn/NAGOJPIX.js +3 -0
  121. package/dist/cdn/NF4EBNLN.js +2 -0
  122. package/dist/cdn/{XG2KN6YJ.js → NKPZCF5U.js} +1 -1
  123. package/dist/cdn/NP24UZGI.js +2 -0
  124. package/dist/cdn/{VE3GFNNM.js → NRXCKYYY.js} +1 -1
  125. package/dist/cdn/NUHPR7BM.js +2 -0
  126. package/dist/cdn/{BJDRJUEJ.js → NWHLFMAD.js} +1 -1
  127. package/dist/cdn/{4C6KWLWN.js → NWLNHFHJ.js} +1 -1
  128. package/dist/cdn/O2BQ374Y.js +2 -0
  129. package/dist/cdn/{UT4TYXFO.js → O7LPETXX.js} +1 -1
  130. package/dist/cdn/{THTYR6IL.js → OAXHS4LE.js} +1 -1
  131. package/dist/cdn/{NAXNRCMZ.js → OD2NWPCL.js} +1 -1
  132. package/dist/cdn/OE7FIKPS.js +2 -0
  133. package/dist/cdn/OE7Q4MG5.js +2 -0
  134. package/dist/cdn/{4ZIZEJXS.js → OISERMTF.js} +1 -1
  135. package/dist/cdn/{ETOGNYFU.js → OKAZOAYZ.js} +1 -1
  136. package/dist/cdn/{XUERYUEG.js → OQFM5DBD.js} +1 -1
  137. package/dist/cdn/{4LPXOEML.js → OTFA727N.js} +1 -1
  138. package/dist/cdn/{C5K6XOCR.js → P37JASN4.js} +1 -1
  139. package/dist/cdn/{244ZX2UP.js → P5I5RQTN.js} +1 -1
  140. package/dist/cdn/P6DBPQZO.js +2 -0
  141. package/dist/cdn/{DAB5R2BN.js → PIEX577B.js} +1 -1
  142. package/dist/cdn/{BJ7Q7LCT.js → PIZPF2BH.js} +1 -1
  143. package/dist/cdn/{FF4DUQDZ.js → PMAHEVYY.js} +1 -1
  144. package/dist/cdn/{AM2TOTX6.js → PQVUA4T4.js} +1 -1
  145. package/dist/cdn/PTUMQCFF.js +2 -0
  146. package/dist/cdn/{5XTQQOTT.js → Q2OIHROC.js} +1 -1
  147. package/dist/cdn/{E7OAEGSE.js → Q2WDEGUQ.js} +1 -1
  148. package/dist/cdn/QAXXYD6N.js +2 -0
  149. package/dist/cdn/QC3FMJKL.js +2 -0
  150. package/dist/cdn/{7UQHB6KY.js → QIG5H6WA.js} +1 -1
  151. package/dist/cdn/{XMPLEHTW.js → QKZK6MTN.js} +1 -1
  152. package/dist/cdn/QSGJ3MAT.js +2 -0
  153. package/dist/cdn/QT64PB4L.js +2 -0
  154. package/dist/cdn/QWCNHH6G.js +2 -0
  155. package/dist/cdn/RCLHFY6O.js +2 -0
  156. package/dist/cdn/RCZLTGQI.js +2 -0
  157. package/dist/cdn/ROG3HFDT.js +2 -0
  158. package/dist/cdn/RQ5RKGH5.js +2 -0
  159. package/dist/cdn/SL7NRRSJ.js +2 -0
  160. package/dist/cdn/{MRTKZZTF.js → SN4KBI42.js} +1 -1
  161. package/dist/cdn/{DNTLH5RT.js → SSOL6PCL.js} +1 -1
  162. package/dist/cdn/SSQPRUUN.js +2 -0
  163. package/dist/cdn/{ZYOWZCR7.js → TB7JE5XK.js} +1 -1
  164. package/dist/cdn/TMGMKM5F.js +2 -0
  165. package/dist/cdn/{WMPWOPRZ.js → TRAVRA3M.js} +1 -1
  166. package/dist/cdn/{WASEMNYV.js → TS7M5QXS.js} +1 -1
  167. package/dist/cdn/{P5AO3V3M.js → UD724V36.js} +1 -1
  168. package/dist/cdn/{DSIFL2DF.js → UQSD6YZM.js} +1 -1
  169. package/dist/cdn/USNJZCHH.js +2 -0
  170. package/dist/cdn/{Q7J7EKQW.js → UUVJGPFG.js} +1 -1
  171. package/dist/cdn/V2FHLWYC.js +2 -0
  172. package/dist/cdn/VAF3UIVA.js +2 -0
  173. package/dist/cdn/VHW4OAKG.js +4 -0
  174. package/dist/cdn/{ZQDADGLQ.js → VLCUXTLC.js} +1 -1
  175. package/dist/cdn/VNYRZDY5.js +2 -0
  176. package/dist/cdn/VUHFYOLC.js +2 -0
  177. package/dist/cdn/{Y7HBWU3M.js → WDMYVS4F.js} +1 -1
  178. package/dist/cdn/WDUTZ6EO.js +2 -0
  179. package/dist/cdn/WM6SCZHN.js +2 -0
  180. package/dist/cdn/WPLHZAZ3.js +2 -0
  181. package/dist/cdn/{6B7JCDQC.js → WTF2PFHV.js} +1 -1
  182. package/dist/cdn/{GV3TT7L5.js → XDNGNOOK.js} +1 -1
  183. package/dist/cdn/XH57C72H.js +2 -0
  184. package/dist/cdn/{JJIGLOJA.js → XJVFIGWI.js} +1 -1
  185. package/dist/cdn/{5MEQANMY.js → Y2NESTSK.js} +1 -1
  186. package/dist/cdn/{BXYNEUQY.js → YCQLYXH4.js} +1 -1
  187. package/dist/cdn/{XE3FKQFA.js → YFHCD7R2.js} +1 -1
  188. package/dist/cdn/{AWF4R7WL.js → YW6IZCRW.js} +1 -1
  189. package/dist/cdn/{KUZR6CGB.js → ZK2KMZEI.js} +1 -1
  190. package/dist/cdn/ZK5Z6BOX.js +2 -0
  191. package/dist/cdn/{5ZGALYWZ.js → ZLCRTIQH.js} +1 -1
  192. package/dist/cdn/{TYUVXRBO.js → ZZHKDFTA.js} +1 -1
  193. package/dist/cdn/assets/charts-config-view-charts/t9n/messages.en.json +1 -1
  194. package/dist/cdn/index.js +1 -1
  195. package/dist/cdn/main.css +1 -1
  196. package/dist/cdn/model/shared/setup-utils.js +1 -1
  197. package/dist/chart-rendering/common/data/utils/summarize-data/interfaces.d.ts +5 -1
  198. package/dist/chart-rendering/common/interfaces.d.ts +19 -21
  199. package/dist/chunks/{type-guards3.js → action-bar-utils.js} +27 -35
  200. package/dist/chunks/axis-lines-symbol.js +7 -7
  201. package/dist/chunks/bar-chart-model.js +42 -38
  202. package/dist/chunks/box-plot-data.js +273 -282
  203. package/dist/chunks/box-plot-model.js +137 -122
  204. package/dist/chunks/chart-model.js +177 -145
  205. package/dist/chunks/chart-object-literals.js +2 -1
  206. package/dist/chunks/chart-ui-utils.js +24 -23
  207. package/dist/chunks/class-breaks.js +76 -76
  208. package/dist/chunks/combo-bar-line-chart-model.js +25 -26
  209. package/dist/chunks/data-labels-symbol.js +39 -24
  210. package/dist/chunks/data-labels-visibility.js +24 -24
  211. package/dist/chunks/data.js +69 -69
  212. package/dist/chunks/gauge-model.js +18 -18
  213. package/dist/chunks/generate-x-axis-title.js +12 -12
  214. package/dist/chunks/heat-chart-model.js +93 -64
  215. package/dist/chunks/histogram-data.js +22 -22
  216. package/dist/chunks/histogram-model.js +10 -10
  217. package/dist/chunks/index.js +191 -180
  218. package/dist/chunks/index2.js +6422 -6009
  219. package/dist/chunks/index3.js +97 -86
  220. package/dist/chunks/index4.js +316 -87
  221. package/dist/chunks/index5.js +63 -100
  222. package/dist/chunks/line-chart-model.js +12 -12
  223. package/dist/chunks/model-setter.js +16 -15
  224. package/dist/chunks/model-with-line-marker-styling.js +2 -3
  225. package/dist/chunks/model-with-y-guides.js +59 -74
  226. package/dist/chunks/negative-values-stacked-to-baseline.js +18 -18
  227. package/dist/chunks/pie-chart-data.js +174 -192
  228. package/dist/chunks/pie-chart-model.js +267 -250
  229. package/dist/chunks/radar-chart-model.js +397 -46
  230. package/dist/chunks/resource.js +5 -5
  231. package/dist/chunks/rotated-state.js +1 -1
  232. package/dist/chunks/rounded-corners.js +73 -0
  233. package/dist/chunks/scatterplot-model.js +3 -3
  234. package/dist/chunks/serial-chart-data.js +873 -753
  235. package/dist/chunks/serial-chart-model.js +146 -124
  236. package/dist/chunks/series-length.js +2 -2
  237. package/dist/chunks/series-types.js +22 -18
  238. package/dist/chunks/series.js +1 -1
  239. package/dist/chunks/type-guards.js +17 -13
  240. package/dist/chunks/type-guards2.js +41 -33
  241. package/dist/chunks/utils.js +104 -94
  242. package/dist/chunks/utils2.js +1 -1
  243. package/dist/chunks/web-component-utils.js +592 -541
  244. package/dist/chunks/x-bounds.js +41 -42
  245. package/dist/components/arcgis-chart/customElement.d.ts +547 -224
  246. package/dist/components/arcgis-chart/customElement.js +10300 -10278
  247. package/dist/components/arcgis-charts-action-bar/customElement.js +33 -30
  248. package/dist/components/arcgis-charts-config-axis/customElement.js +70 -64
  249. package/dist/components/arcgis-charts-config-bar-chart/customElement.js +40 -27
  250. package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +19 -19
  251. package/dist/components/arcgis-charts-config-bar-chart-data/index.js +1 -1
  252. package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +35 -37
  253. package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +44 -43
  254. package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +13 -15
  255. package/dist/components/arcgis-charts-config-box-plot/customElement.js +10 -11
  256. package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +8 -8
  257. package/dist/components/arcgis-charts-config-box-plot-data/index.js +1 -1
  258. package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +23 -25
  259. package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +1 -1
  260. package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +15 -18
  261. package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +18 -20
  262. package/dist/components/arcgis-charts-config-color-style/customElement.js +1 -1
  263. package/dist/components/arcgis-charts-config-create-flow/customElement.js +243 -229
  264. package/dist/components/arcgis-charts-config-field-picker/customElement.js +30 -0
  265. package/dist/components/arcgis-charts-config-font-style/customElement.js +2 -2
  266. package/dist/components/arcgis-charts-config-format/customElement.js +93 -86
  267. package/dist/components/arcgis-charts-config-format-popover/customElement.js +7 -10
  268. package/dist/components/arcgis-charts-config-guide/customElement.js +17 -18
  269. package/dist/components/arcgis-charts-config-guide-popover/customElement.js +10 -13
  270. package/dist/components/arcgis-charts-config-guides/customElement.js +1 -1
  271. package/dist/components/arcgis-charts-config-heat-chart/customElement.js +12 -13
  272. package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +64 -76
  273. package/dist/components/arcgis-charts-config-heat-chart-data/index.js +1 -1
  274. package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +53 -54
  275. package/dist/components/arcgis-charts-config-histogram/customElement.js +27 -23
  276. package/dist/components/arcgis-charts-config-histogram-data/customElement.js +19 -19
  277. package/dist/components/arcgis-charts-config-histogram-data/index.js +1 -1
  278. package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +33 -34
  279. package/dist/components/arcgis-charts-config-line-chart/customElement.js +5 -6
  280. package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +12 -12
  281. package/dist/components/arcgis-charts-config-line-chart-data/index.js +1 -1
  282. package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +35 -37
  283. package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +6 -6
  284. package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +6 -7
  285. package/dist/components/arcgis-charts-config-pie-chart/customElement.js +4 -5
  286. package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +41 -48
  287. package/dist/components/arcgis-charts-config-pie-chart-data/index.js +1 -1
  288. package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +55 -56
  289. package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +65 -66
  290. package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +7 -10
  291. package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +27 -23
  292. package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +79 -79
  293. package/dist/components/arcgis-charts-config-scatter-plot-data/index.js +1 -1
  294. package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +16 -17
  295. package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +9 -11
  296. package/dist/components/arcgis-charts-config-view-charts/customElement.js +57 -26
  297. package/dist/components/arcgis-charts-info-modal/customElement.js +6 -6
  298. package/dist/docs/api.json +1 -1
  299. package/dist/docs/docs.json +1 -1
  300. package/dist/docs/vscode.html-custom-data.json +1 -1
  301. package/dist/docs/web-types.json +1 -1
  302. package/dist/index.d.ts +62 -67
  303. package/dist/index.js +470 -458
  304. package/dist/json-schema/index.d.ts +211 -6
  305. package/dist/loader.js +2 -2
  306. package/dist/model/bar-chart-model/bar-chart-model.d.ts +4 -2
  307. package/dist/model/box-plot-model/box-plot-model.d.ts +7 -1
  308. package/dist/model/chart-model/chart-model.d.ts +2 -1
  309. package/dist/model/combo-bar-line-chart-model/combo-bar-line-chart-model.d.ts +8 -5
  310. package/dist/model/heat-chart-model/heat-chart-model.d.ts +44 -2
  311. package/dist/model/interfaces/common.d.ts +0 -2
  312. package/dist/model/mixins/model-with-line-marker-styling.d.ts +6 -5
  313. package/dist/model/mixins/model-with-multi-axes.d.ts +62 -99
  314. package/dist/model/pie-chart-model/pie-chart-model.d.ts +2 -0
  315. package/dist/model/properties/data-labels/data-labels-symbol.d.ts +26 -0
  316. package/dist/model/properties/data-tooltip-font-size.d.ts +20 -0
  317. package/dist/model/properties/rotated-state.d.ts +1 -1
  318. package/dist/model/properties/rounded-corners.d.ts +18 -0
  319. package/dist/model/radar-chart-model/radar-chart-model.d.ts +190 -0
  320. package/dist/model/serial-chart-model/serial-chart-model.d.ts +27 -1
  321. package/dist/model/shared/type-guards.d.ts +16 -2
  322. package/dist/spec/chart-object-literals.d.ts +1 -0
  323. package/dist/spec/data-source.d.ts +17 -3
  324. package/dist/spec/rest-js-object-literals.d.ts +2 -2
  325. package/dist/spec/rest-js-types.d.ts +22 -8
  326. package/dist/spec/web-chart.d.ts +42 -6
  327. package/dist/utils/chart-config/converter/index.js +198 -179
  328. package/dist/utils/chart-config/utils/index.d.ts +56 -6
  329. package/dist/utils/chart-config/validator/index.d.ts +1 -0
  330. package/dist/utils/chart-config/validator/interfaces.d.ts +3 -3
  331. package/dist/utils/cursor/interfaces.d.ts +21 -0
  332. package/dist/utils/data/categorical-data/index.d.ts +1 -1
  333. package/dist/utils/data/index.d.ts +22 -19
  334. package/dist/utils/data/interfaces.d.ts +4 -3
  335. package/dist/utils/defaults/index.d.ts +16 -4
  336. package/dist/utils/defaults/interfaces.d.ts +7 -2
  337. package/dist/utils/errors/index.d.ts +1 -1
  338. package/dist/utils/layer/index.d.ts +5 -3
  339. package/dist/utils/layer/inline-conversion/interfaces.d.ts +0 -2
  340. package/dist/utils/layer/interfaces.d.ts +2 -1
  341. package/dist/utils/layer/query-features/index.d.ts +8 -3
  342. package/dist/utils/layer/query-parser/index.d.ts +9 -5
  343. package/dist/utils/misc/index.d.ts +2 -3
  344. package/dist/utils/type-guards/chart-types.d.ts +10 -0
  345. package/dist/utils/type-guards/series-types.d.ts +9 -2
  346. package/dist/utils/types/index.d.ts +1 -5
  347. package/package.json +6 -7
  348. package/dist/cdn/24RLLXS6.js +0 -2
  349. package/dist/cdn/2N4MK6FQ.js +0 -2
  350. package/dist/cdn/32FR66QO.js +0 -2
  351. package/dist/cdn/3EIVHDDK.js +0 -2
  352. package/dist/cdn/3NUNWPAR.js +0 -2
  353. package/dist/cdn/43ZHPVBB.js +0 -2
  354. package/dist/cdn/547RDEMV.js +0 -2
  355. package/dist/cdn/5YJNENER.js +0 -2
  356. package/dist/cdn/6AF2OTL6.js +0 -2
  357. package/dist/cdn/6CFIKYKR.js +0 -2
  358. package/dist/cdn/6GLTSMOR.js +0 -2
  359. package/dist/cdn/7EMCHGGV.js +0 -2
  360. package/dist/cdn/7OF2IANH.js +0 -2
  361. package/dist/cdn/7VN3A7S2.js +0 -2
  362. package/dist/cdn/7YWZG3ZS.js +0 -2
  363. package/dist/cdn/A5GIBV5W.js +0 -2
  364. package/dist/cdn/ADPDJISV.js +0 -2
  365. package/dist/cdn/B4KAJRUJ.js +0 -2
  366. package/dist/cdn/BBUPTHPL.js +0 -2
  367. package/dist/cdn/BBURKBKE.js +0 -2
  368. package/dist/cdn/BO62KSB5.js +0 -2
  369. package/dist/cdn/C2FOUUEM.js +0 -2
  370. package/dist/cdn/CJPEW4LJ.js +0 -142
  371. package/dist/cdn/CVU3UPPF.js +0 -2
  372. package/dist/cdn/CZ5XRXCE.js +0 -2
  373. package/dist/cdn/D73VV2AZ.js +0 -2
  374. package/dist/cdn/DJACBOFO.js +0 -2
  375. package/dist/cdn/DPNTYHTH.js +0 -2
  376. package/dist/cdn/DZ72EIRH.js +0 -2
  377. package/dist/cdn/EGISZTGB.js +0 -2
  378. package/dist/cdn/EP34TF4L.js +0 -2
  379. package/dist/cdn/EZD3FBJU.js +0 -2
  380. package/dist/cdn/EZV7JSQJ.js +0 -2
  381. package/dist/cdn/G72TNKCS.js +0 -2
  382. package/dist/cdn/GQ5QBLRO.js +0 -2
  383. package/dist/cdn/HWJGWDU3.js +0 -2
  384. package/dist/cdn/HZR4NSZV.js +0 -2
  385. package/dist/cdn/ICFKKJWQ.js +0 -2
  386. package/dist/cdn/IWX5L226.js +0 -2
  387. package/dist/cdn/J6WQX4UD.js +0 -58
  388. package/dist/cdn/JNG6V7XC.js +0 -2
  389. package/dist/cdn/JNNB2DIA.js +0 -2
  390. package/dist/cdn/JS2KOBA2.js +0 -2
  391. package/dist/cdn/JTTJ455Y.js +0 -2
  392. package/dist/cdn/JWO5WVTZ.js +0 -2
  393. package/dist/cdn/K4WI2SGM.js +0 -2
  394. package/dist/cdn/KLHZFPYK.js +0 -2
  395. package/dist/cdn/KO7HQLGV.js +0 -2
  396. package/dist/cdn/L5AQ4I5T.js +0 -2
  397. package/dist/cdn/LC6CY2HW.js +0 -2
  398. package/dist/cdn/MBVTB42G.js +0 -2
  399. package/dist/cdn/MGEW6X3Y.js +0 -102
  400. package/dist/cdn/ML3A3MYV.js +0 -2
  401. package/dist/cdn/NSOZIR5F.js +0 -2
  402. package/dist/cdn/NTSTL3FK.js +0 -2
  403. package/dist/cdn/NZR4L5AA.js +0 -2
  404. package/dist/cdn/O5A25X5K.js +0 -2
  405. package/dist/cdn/OAAJ6CIN.js +0 -2
  406. package/dist/cdn/OGYY2Y22.js +0 -2
  407. package/dist/cdn/OHF3AEWY.js +0 -2
  408. package/dist/cdn/PAIRUVLU.js +0 -2
  409. package/dist/cdn/PRGFNLY7.js +0 -2
  410. package/dist/cdn/PROSIXIF.js +0 -2
  411. package/dist/cdn/Q5JDSPJA.js +0 -2
  412. package/dist/cdn/QJC3FDWG.js +0 -2
  413. package/dist/cdn/QRLILSSI.js +0 -2
  414. package/dist/cdn/QY53LXP2.js +0 -2
  415. package/dist/cdn/R75MHIRF.js +0 -2
  416. package/dist/cdn/RDA5NV6M.js +0 -2
  417. package/dist/cdn/RG3DO2OE.js +0 -2
  418. package/dist/cdn/RPNZL6AC.js +0 -2
  419. package/dist/cdn/S32NLOJ5.js +0 -2
  420. package/dist/cdn/SCAZDS2G.js +0 -2
  421. package/dist/cdn/SJGYHEMZ.js +0 -2
  422. package/dist/cdn/TCTQ4LMU.js +0 -2
  423. package/dist/cdn/TDHHWIIC.js +0 -2
  424. package/dist/cdn/TJMPLGQI.js +0 -2
  425. package/dist/cdn/TJMTF45U.js +0 -3
  426. package/dist/cdn/TW5DX7YP.js +0 -2
  427. package/dist/cdn/U67P6YAZ.js +0 -2
  428. package/dist/cdn/UZEMSOA2.js +0 -2
  429. package/dist/cdn/VBHQFV2H.js +0 -2
  430. package/dist/cdn/VFREVEVA.js +0 -2
  431. package/dist/cdn/VOTZAPI3.js +0 -2
  432. package/dist/cdn/VZTLODMQ.js +0 -2
  433. package/dist/cdn/W7X6L2OB.js +0 -127
  434. package/dist/cdn/WGYJBMRM.js +0 -4
  435. package/dist/cdn/WNKDEOFZ.js +0 -2
  436. package/dist/cdn/WPPMMVD5.js +0 -2
  437. package/dist/cdn/XCUXUZXY.js +0 -2
  438. package/dist/cdn/XG3WW5GG.js +0 -2
  439. package/dist/cdn/XJFVSX2E.js +0 -2
  440. package/dist/cdn/Y3CXVO2M.js +0 -2
  441. package/dist/cdn/YEZL5KRS.js +0 -2
  442. package/dist/cdn/YYK7SPXC.js +0 -2
  443. package/dist/chunks/bar-chart-series.js +0 -15
  444. package/dist/chunks/index6.js +0 -66
  445. package/dist/chunks/time-zone.js +0 -38
  446. package/dist/components/arcgis-charts-config-field-select/customElement.js +0 -30
  447. /package/dist/cdn/{IVLVCLDE.js → 7NWEE7T2.js} +0 -0
  448. /package/dist/components/{arcgis-charts-config-field-select → arcgis-charts-config-field-picker}/index.js +0 -0
@@ -1,174 +1,207 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { substitute as P } from "@arcgis/core/intl.js";
3
- import { cloneDeep as ae, isEmpty as Ie, memoize as Le } from "lodash-es";
4
- import { S as J } from "./common.js";
5
- import { s as N, u as E, g as re, a as Fe, b as qe, c as Ve, d as ce } from "./utils.js";
6
- import { w as R, bW as Ne, bl as Re, x as ke, Y as X, cq as Oe, cp as De, p as we, aH as le, c0 as Pe, d as Ee, aG as Me, I as $e, a7 as Ye, bj as We, W as Xe, e as He, bm as je, cY as Ke, v as Ue, d2 as de, bK as Qe, d3 as ze, bG as Ge, B as _e, d0 as Ze, an as H, a6 as he, cR as ne, b9 as Je, k as ee, bo as et, bs as ye, ba as K, bg as me } from "./index2.js";
7
- import { a as M, s as Te, g as Q, b as ge, c as tt } from "./data.js";
8
- import { C as D, F as $, d as w } from "./index3.js";
9
- import { u as v, r as q, k as st, n as V, m as U, p as it, t as at, s as te } from "./chart-object-literals.js";
10
- import { convertChartSpec as rt } from "../utils/chart-config/converter/index.js";
11
- import { az as lt, t as nt, Y as ot, a9 as ut, al as ct, x as dt, C as pe, H as fe, $ as yt } from "./index.js";
12
- import { c as se, e as mt } from "./type-guards.js";
13
- import { h as xe, i as O, j as gt, n as pt, g as b, m as A, e as Se } from "./index5.js";
14
- import { g as Be } from "./series-types.js";
15
- import { g as oe } from "./utils2.js";
16
- import { a as ft, b as St } from "./series-length.js";
17
- import { i as Ft, R as ht } from "./rest-js-object-literals.js";
18
- import { i as z } from "./index4.js";
19
- const ts = (t) => {
2
+ import { substitute as E } from "@arcgis/core/intl.js";
3
+ import { cloneDeep as J, isEmpty as Ye, memoize as We } from "lodash-es";
4
+ import { S as oe } from "./common.js";
5
+ import { s as D, u as $, a as Ie, g as ye, b as Le, c as He, d as Xe, e as pe } from "./utils.js";
6
+ import { w as I, i as Ue, di as Y, cn as je, bC as Ke, a$ as De, x as Ze, Y as ee, cS as _e, cR as Qe, p as ze, aJ as me, ct as Ge, d as Je, aI as et, I as tt, a7 as st, bx as it, W as at, e as rt, bI as nt, ds as ot, v as lt, dy as fe, cb as ct, dz as ut, c7 as dt, B as yt, N as Se, bL as _, dv as mt, bj as q, bP as Q, ap as j, a6 as Ne, bd as M, bc as gt, k as U, bt as pt, bB as ft, bs as O, bA as V, bp as Fe, br as xe } from "./index2.js";
7
+ import { a as P, s as ge, g as te, b as he, c as St } from "./data.js";
8
+ import { u as T, r as v, k as Ft, d as k, n as L, m as W, p as xt, t as ht, s as le } from "./chart-object-literals.js";
9
+ import { R as Oe, i as Tt } from "./rest-js-object-literals.js";
10
+ import { i as se } from "./index4.js";
11
+ import { aD as Bt, K as z, F as ce, w as Ct, $ as bt, ac as At, ao as vt, A as It, a2 as Lt } from "./index.js";
12
+ import { C as w, F as H, d as R } from "./index3.js";
13
+ import { g as Ve, s as Dt } from "./series-types.js";
14
+ import { convertChartSpec as Nt } from "../utils/chart-config/converter/index.js";
15
+ import { d as ue, f as Ot } from "./type-guards.js";
16
+ import { C as Vt, m as kt } from "./model-setter.js";
17
+ import { g as ie } from "./utils2.js";
18
+ import { a as Rt, b as qt } from "./series-length.js";
19
+ const Ds = (s) => {
20
20
  let e;
21
- const s = t.series[0];
22
- return R(s) && (e = s.temporalBinning?.size), e;
23
- }, Tt = (t) => {
21
+ const t = s.series[0];
22
+ return I(t) && (e = t.temporalBinning?.size), e;
23
+ }, wt = (s) => {
24
24
  let e;
25
- const s = t.series[0];
26
- return R(s) && (e = s.temporalBinning?.unit), e;
27
- }, ss = (t) => {
25
+ const t = s.series[0];
26
+ return I(t) && (e = t.temporalBinning?.unit), e;
27
+ }, Ns = (s) => {
28
28
  let e;
29
- const s = t.series[0];
30
- return R(s) && (e = s.temporalBinning?.timeAggregationType), e;
31
- }, is = (t) => {
29
+ const t = s.series[0];
30
+ return I(t) && (e = t.temporalBinning?.timeAggregationType), e;
31
+ }, Os = (s) => {
32
32
  let e;
33
- const s = t.series[0];
34
- return R(s) && (e = s.temporalBinning?.trimIncompleteTimeInterval), e;
35
- }, as = (t) => {
33
+ const t = s.series[0];
34
+ return I(t) && (e = t.temporalBinning?.trimIncompleteTimeInterval), e;
35
+ }, Vs = (s) => {
36
36
  let e;
37
- const s = t.series[0];
38
- return R(s) && (e = s.temporalBinning?.nullPolicy), e;
39
- }, xt = (t, e) => {
40
- e?.series?.forEach((s) => {
41
- R(s) && (s.temporalBinning ??= {}, s.temporalBinning.size = t);
42
- }), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
43
- }, Bt = (t, e) => {
44
- e?.series?.forEach((s) => {
45
- R(s) && (s.temporalBinning ??= {}, s.temporalBinning.nullPolicy = t);
46
- }), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
47
- }, rs = (t, e) => {
48
- e.series?.forEach((s) => {
49
- R(s) && (s.temporalBinning ??= {}, s.temporalBinning.unit = t);
50
- }), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
51
- }, ls = (t, e) => {
52
- e.series?.forEach((s) => {
53
- R(s) && (s.temporalBinning ??= {}, s.temporalBinning.timeAggregationType = t);
54
- }), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
55
- }, ns = (t, e) => {
56
- e.series?.forEach((s) => {
57
- R(s) && (s.temporalBinning ??= {}, s.temporalBinning.trimIncompleteTimeInterval = t);
58
- }), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
59
- }, os = (t) => {
60
- xt(0, t);
37
+ const t = s.series[0];
38
+ return I(t) && (e = t.temporalBinning?.nullPolicy), e;
39
+ }, Pt = (s, e) => {
40
+ e?.series?.forEach((t) => {
41
+ I(t) && (t.temporalBinning ??= {}, t.temporalBinning.size = s);
42
+ }), D({ config: e, value: null, axisIndex: 1, isMax: !1 }), D({ config: e, value: null, axisIndex: 1, isMax: !0 });
43
+ }, Et = (s, e) => {
44
+ e?.series?.forEach((t) => {
45
+ I(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
+ I(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
+ }, Rs = (s, e) => {
52
+ e.series?.forEach((t) => {
53
+ I(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
+ }, qs = (s, e) => {
56
+ e.series?.forEach((t) => {
57
+ I(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
61
  };
62
- function us(t, e) {
63
- let s;
64
- return e !== void 0 && (s = { ...e }, s.legend !== void 0 && (s.legend.position = t)), s;
62
+ var $t = Object.defineProperty, Yt = Object.getOwnPropertyDescriptor, Wt = (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 && $t(e, t, i), i;
66
+ };
67
+ const Ht = (s) => {
68
+ let e;
69
+ return Y(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
+ Y(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 Xt extends Vt {
79
+ /**
80
+ * Gets the time zone for the chart.
81
+ */
82
+ get timeZone() {
83
+ return Ht(this._config);
84
+ }
85
+ set timeZone(e) {
86
+ ke(e, this._config), this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"));
87
+ }
88
+ }
89
+ Wt([
90
+ kt
91
+ ], Xt.prototype, "timeZone");
92
+ function ws(s, e) {
93
+ let t;
94
+ return e !== void 0 && (t = { ...e }, t.legend !== void 0 && (t.legend.position = s)), t;
65
95
  }
66
- function cs(t, e) {
67
- let s;
68
- return e !== void 0 && (s = { ...e }, s.legend !== void 0 && (s.legend.visible = t)), s;
96
+ function Ps(s, e) {
97
+ let t;
98
+ return e !== void 0 && (t = { ...e }, t.legend !== void 0 && (t.legend.visible = s)), t;
69
99
  }
70
- function ds(t, e) {
71
- let s;
72
- return e !== void 0 && (s = { ...e, rotated: t }), s;
100
+ function Es(s, e) {
101
+ let t;
102
+ return e !== void 0 && (t = { ...e, rotated: s }), t;
73
103
  }
74
- function Ct(t) {
104
+ function Ut(s) {
75
105
  let e;
76
- return t !== void 0 && (e = { ...t }, delete e.axes?.[0]?.minimum, delete e.axes?.[0]?.maximum, delete e.axes?.[1]?.minimum, delete e.axes?.[1]?.maximum), e;
106
+ return s !== void 0 && (e = { ...s }, delete e.axes?.[0]?.minimum, delete e.axes?.[0]?.maximum, delete e.axes?.[1]?.minimum, delete e.axes?.[1]?.maximum), e;
77
107
  }
78
- function ys(t, e) {
79
- return e != null || xe(t);
108
+ function Ms(s, e) {
109
+ return e != null || De(s);
80
110
  }
81
- async function ms(t) {
82
- const { config: e, layer: s, abortSignal: r } = t;
83
- let a = !1;
84
- return se(s) || mt(e) ? e && se(s) && (a = await Re({ config: e, layer: s, abortSignal: r })) : a = !0, a;
111
+ async function $s(s) {
112
+ const { config: e, layer: t, abortSignal: r } = s;
113
+ let i = !1;
114
+ return ue(t) || Ot(e) ? e && ue(t) && (i = await Ke({ config: e, layer: t, abortSignal: r })) : i = !0, i;
85
115
  }
86
- async function bt(t) {
116
+ async function jt(s) {
87
117
  const {
88
118
  queryObject: e,
89
- chartConfig: s,
119
+ chartConfig: t,
90
120
  splitByField: r,
91
- errorStrings: a,
92
- abortSignal: i,
121
+ errorStrings: i,
122
+ abortSignal: a,
93
123
  runtimeDataFilters: n,
94
124
  ignoreViewExtent: o,
95
- setTimeBinningInfoWhenNotProvided: c,
96
- returnFeaturesExtent: m,
97
- chartLimits: F
98
- } = t;
99
- let l = [], g;
100
- const d = ae(s), y = d.series[0], u = He({
125
+ setTimeBinningInfoWhenNotProvided: l,
126
+ returnFeaturesExtent: c,
127
+ returnStatisticsAggregatedIds: p,
128
+ chartLimits: f
129
+ } = s;
130
+ let u = [], m;
131
+ const d = J(t), y = d.series[0], g = rt({
101
132
  queryObject: e,
102
133
  chartConfig: d,
103
134
  runtimeDataFilters: n,
104
135
  ignoreViewExtent: o
105
136
  });
106
- if (u.outStatistics?.[0]?.outStatisticFieldName && (u.outStatistics[0].outStatisticFieldName = lt.outStatistics.outStatisticFieldName), R(y) && je({
107
- xAxisValueFormatType: Ke(d),
108
- setTimeBinningInfoWhenNotProvided: c,
137
+ if (g.outStatistics?.[0]?.outStatisticFieldName && (g.outStatistics[0].outStatisticFieldName = Bt.outStatistics.outStatisticFieldName), I(y) && nt({
138
+ xAxisValueFormatType: ot(d),
139
+ setTimeBinningInfoWhenNotProvided: l,
109
140
  seriesConfig: y,
110
141
  queryObject: e
111
- }) && Ue(r, e)) {
112
- const { temporalBinning: p, x } = y, { uniqueQuery: C } = de({
142
+ }) && lt(r, e)) {
143
+ const { temporalBinning: F, x: h } = y, { uniqueQuery: S } = fe({
113
144
  chartConfig: d,
114
- queryConfig: u,
145
+ queryConfig: g,
115
146
  queryObject: e,
116
- setTimeBinningInfoWhenNotProvided: c,
117
- returnFeaturesExtent: m,
118
- chartLimits: F
119
- }), h = s.axes?.[0].valueFormat.type === v.DateAxisFormat ? s.axes[0].valueFormat.intlOptions.timeZone : void 0;
120
- g = await Qe({
147
+ setTimeBinningInfoWhenNotProvided: l,
148
+ returnFeaturesExtent: c,
149
+ chartLimits: f
150
+ }), b = 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: x,
153
+ dateField: h,
123
154
  splitByField: r,
124
- queryConfig: C,
125
- axisTimeZone: h,
126
- temporalBinning: p,
127
- errorStrings: a,
128
- abortSignal: i
129
- }), l = Array.from(
155
+ queryConfig: S,
156
+ axisTimeZone: b,
157
+ temporalBinning: F,
158
+ returnStatisticsAggregatedIds: p,
159
+ errorStrings: i,
160
+ abortSignal: a
161
+ }), u = Array.from(
130
162
  new Set(
131
- g.flatMap((f) => {
132
- const { stackedAttributes: k } = f;
133
- let T = [];
134
- return k && (T = k.map((S) => S[r]).filter((S) => S !== void 0)), T;
163
+ m.flatMap((C) => {
164
+ const { stackedAttributes: B } = C;
165
+ let A = [];
166
+ return B && (A = B.map((x) => x[r]).filter((x) => x !== void 0)), A;
135
167
  })
136
168
  ).values()
137
169
  );
138
170
  } else {
139
- const { uniqueQuery: p } = de({
171
+ const { uniqueQuery: F } = fe({
140
172
  chartConfig: d,
141
173
  queryObject: e,
142
- queryConfig: u,
143
- setTimeBinningInfoWhenNotProvided: c,
144
- returnFeaturesExtent: m,
145
- chartLimits: F
146
- }), { elementCount: x } = await ze({
174
+ queryConfig: g,
175
+ setTimeBinningInfoWhenNotProvided: l,
176
+ returnFeaturesExtent: c,
177
+ chartLimits: f
178
+ }), { elementCount: h } = await ut({
147
179
  chartConfig: d,
148
180
  queryObject: e,
149
- queryConfig: u,
150
- behaviorAfterLimit: F?.behaviorAfterLimit,
151
- numberMaxOfFeaturesToFetch: p.num,
152
- abortSignal: i
181
+ queryConfig: g,
182
+ behaviorAfterLimit: f?.behaviorAfterLimit,
183
+ numberMaxOfFeaturesToFetch: F.num,
184
+ abortSignal: a
153
185
  });
154
- g = await Ge({
186
+ m = await dt({
155
187
  queryObject: e,
156
- queryConfig: p,
157
- featureCount: x,
158
- errorStrings: a,
159
- abortSignal: i
160
- }), l = Array.from(
188
+ queryConfig: F,
189
+ featureCount: h,
190
+ returnStatisticsAggregatedIds: p,
191
+ errorStrings: i,
192
+ abortSignal: a
193
+ }), u = Array.from(
161
194
  new Set(
162
- g.map((C) => C.attributes[r]).filter((C) => C !== void 0)
195
+ m.map((S) => S.attributes[r]).filter((S) => S !== void 0)
163
196
  ).values()
164
197
  );
165
198
  }
166
- return { allValues: l, preFetchedQueryResponse: g };
199
+ return { allValues: u, preFetchedQueryResponse: m };
167
200
  }
168
- function At(t, e) {
169
- const s = /* @__PURE__ */ new Map();
170
- return t.series.forEach((r) => {
171
- let a = le({
201
+ function Kt(s, e) {
202
+ const t = /* @__PURE__ */ new Map();
203
+ return s.series.forEach((r) => {
204
+ let i = me({
172
205
  where: r.query?.where,
173
206
  // normalize the value so it matches what we get from getAllValues()
174
207
  // Refer to https://devtopia.esri.com/WebGIS/arcgis-charts/issues/8127
@@ -177,897 +210,984 @@ function At(t, e) {
177
210
  // Refer to https://devtopia.esri.com/WebGIS/arcgis-charts/issues/8078
178
211
  escape: !1
179
212
  });
180
- e && a !== null && (a = Number(a));
181
- const i = Be([r]);
182
- i !== void 0 && s.set(i, [
183
- ...s.get(i) ?? [],
184
- a
213
+ e && i !== null && (i = Number(i));
214
+ const a = Ve([r]);
215
+ a !== void 0 && t.set(a, [
216
+ ...t.get(a) ?? [],
217
+ i
185
218
  ]);
186
- }), s;
219
+ }), t;
187
220
  }
188
- function vt(t) {
189
- const { allValues: e, configUniqueValuesPerSeriesType: s, initialConfigWasEmpty: r } = t, a = /* @__PURE__ */ new Map();
190
- return Array.from(s.keys()).forEach((i) => {
191
- const n = s.get(i) ?? [];
221
+ function Zt(s) {
222
+ const { allValues: e, configUniqueValuesPerSeriesType: t, initialConfigWasEmpty: r } = s, i = /* @__PURE__ */ new Map();
223
+ return Array.from(t.keys()).forEach((a) => {
224
+ const n = t.get(a) ?? [];
192
225
  let o = [];
193
- r ? o = e : e.forEach((c) => {
194
- n.includes(c) || o.push(c);
195
- }), a.set(i, o);
196
- }), a;
226
+ r ? o = e : e.forEach((l) => {
227
+ n.includes(l) || o.push(l);
228
+ }), i.set(a, o);
229
+ }), i;
197
230
  }
198
- function It(t) {
199
- const { chartConfig: e, missingValue: s, splitByField: r, seriesTemplate: a } = t, i = JSON.parse(
231
+ function _t(s) {
232
+ const { chartConfig: e, missingValue: t, splitByField: r, seriesTemplate: i } = s, a = JSON.parse(
200
233
  JSON.stringify({
201
234
  ...e.series[0],
202
- ...a
235
+ ...i
203
236
  })
204
237
  );
205
- if (i.query) {
206
- if (i.id = s === null ? $.nullValue : `${s}`, i.name = `${s}`, i.query.outStatistics?.[0] !== void 0) {
207
- const o = i.id;
208
- i.query.outStatistics[0].outStatisticFieldName = o, "y" in i && (i.y = o);
238
+ if (a.query) {
239
+ if (t === null ? a.id = H.nullValue : t === "" ? a.id = H.emptyStringValue : a.id = `${t}`, a.name = `${t}`, a.query.outStatistics?.[0] !== void 0) {
240
+ const o = a.id;
241
+ a.query.outStatistics[0].outStatisticFieldName = o, "y" in a && (a.y = o);
209
242
  }
210
- const n = typeof s == "number" || s === null ? s : `'${s}'`;
211
- i.query.where = `${r}=${n}`;
243
+ const n = typeof t == "number" || t === null ? t : `'${t}'`;
244
+ a.query.where = `${r}=${n}`;
212
245
  }
213
- return i;
246
+ return a;
214
247
  }
215
- async function Lt(t) {
248
+ async function Qt(s) {
216
249
  const {
217
250
  updateSplitBySeries: e,
218
- config: s,
251
+ config: t,
219
252
  queryObject: r,
220
- errorStrings: a,
221
- abortSignal: i,
253
+ errorStrings: i,
254
+ abortSignal: a,
222
255
  runtimeDataFilters: n,
223
256
  ignoreViewExtent: o,
224
- setTimeBinningInfoWhenNotProvided: c,
225
- returnFeaturesExtent: m,
226
- chartLimits: F
227
- } = t, { seriesTemplate: l } = e ?? {};
228
- let g;
229
- if (r && !se(r) && e !== void 0 && s !== void 0 && (s.series.length > 0 || l !== void 0) && e.addMissingSeries) {
230
- const d = s.series.length === 0;
231
- s.series.length === 0 && l !== void 0 && s.series.push(l);
232
- const y = X(s.series);
233
- if (y === D.BoxPlotMonoFieldAndSplitBy || y === D.BoxPlotMultiFieldsAndSplitBy || y === D.BoxPlotMonoFieldAndCategoryAndSplitBy || y === D.BarAndLineSplitBy || y === D.BarAndLineSplitByNoAggregation) {
234
- const u = Me(s.series[0]?.query?.where), p = $e(r), x = Ye(u, p), C = x ? We(x) : !1, h = await bt({
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 === w.BoxPlotMonoFieldAndSplitBy || y === w.BoxPlotMultiFieldsAndSplitBy || y === w.BoxPlotMonoFieldAndCategoryAndSplitBy || y === w.BarAndLineSplitBy || y === w.BarAndLineSplitByNoAggregation) {
268
+ const g = et(t.series[0]?.query?.where), F = tt(r), h = st(g, F), S = h ? it(h) : !1, b = await jt({
235
269
  queryObject: r,
236
- chartConfig: s,
237
- splitByField: u,
238
- abortSignal: i,
270
+ chartConfig: t,
271
+ splitByField: g,
272
+ abortSignal: a,
239
273
  runtimeDataFilters: n,
240
274
  ignoreViewExtent: o,
241
- setTimeBinningInfoWhenNotProvided: c,
242
- returnFeaturesExtent: m,
243
- chartLimits: F,
244
- errorStrings: a
245
- }), { allValues: f } = h;
246
- if ({ preFetchedQueryResponse: g } = h, f.length > 0) {
247
- const k = At(s, C), T = vt({
248
- allValues: f,
249
- configUniqueValuesPerSeriesType: k,
275
+ setTimeBinningInfoWhenNotProvided: l,
276
+ returnFeaturesExtent: c,
277
+ returnStatisticsAggregatedIds: p,
278
+ chartLimits: f,
279
+ errorStrings: i
280
+ }), { allValues: C } = b;
281
+ if ({ preFetchedQueryResponse: m } = b, C.length > 0) {
282
+ const B = Kt(t, S), A = Zt({
283
+ allValues: C,
284
+ configUniqueValuesPerSeriesType: B,
250
285
  initialConfigWasEmpty: d
251
286
  });
252
- Array.from(T.keys()).forEach((S) => {
253
- (T.get(S) ?? []).forEach((L) => {
254
- s.series.push(
255
- It({
256
- chartConfig: s,
257
- seriesTemplate: l,
258
- missingValue: L,
259
- splitByField: u
287
+ Array.from(A.keys()).forEach((x) => {
288
+ (A.get(x) ?? []).forEach((N) => {
289
+ t.series.push(
290
+ _t({
291
+ chartConfig: t,
292
+ seriesTemplate: u,
293
+ missingValue: N,
294
+ splitByField: g
260
295
  })
261
296
  );
262
- }), d && s.series.shift();
297
+ }), d && t.series.shift();
263
298
  });
264
299
  }
265
300
  }
266
301
  }
267
- return g;
302
+ return m;
268
303
  }
269
- function qt(t, e) {
270
- e && !xe(e) && (e = Ee({ chartConfig: e, queryObject: t }));
304
+ function zt(s, e) {
305
+ e && !De(e) && (e = Je({ chartConfig: e, queryObject: s }));
271
306
  }
272
- async function gs(t) {
307
+ async function Ys(s) {
273
308
  const {
274
309
  configToAlter: e,
275
- layer: s,
310
+ layer: t,
276
311
  addMissingSeries: r,
277
- updateSplitBySeries: a,
278
- chartContainer: i,
312
+ updateSplitBySeries: i,
313
+ chartContainer: a,
279
314
  queryObject: n,
280
315
  abortSignal: o,
281
- runtimeDataFilters: c,
282
- ignoreViewExtent: m,
283
- setTimeBinningInfoWhenNotProvided: F,
284
- returnFeaturesExtent: l,
285
- chartLimits: g,
286
- errorStrings: d
287
- } = t;
288
- let y = e, u;
289
- return y && (qt(s, y), y = await rt(y, s, void 0, o), r && n && (u = await Lt({
290
- updateSplitBySeries: a,
291
- config: y,
316
+ runtimeDataFilters: l,
317
+ ignoreViewExtent: c,
318
+ setTimeBinningInfoWhenNotProvided: p,
319
+ returnFeaturesExtent: f,
320
+ returnStatisticsAggregatedIds: u,
321
+ chartLimits: m,
322
+ timeZone: d,
323
+ errorStrings: y
324
+ } = s;
325
+ let g = e, F;
326
+ return g && (zt(t, g), g = await Nt(g, t, void 0, o), r && n && (F = await Qt({
327
+ updateSplitBySeries: i,
328
+ config: g,
292
329
  queryObject: n,
293
- errorStrings: d,
330
+ errorStrings: y,
294
331
  abortSignal: o,
295
- runtimeDataFilters: c,
296
- ignoreViewExtent: m,
297
- setTimeBinningInfoWhenNotProvided: F,
298
- returnFeaturesExtent: l,
299
- chartLimits: g
300
- })), y = Ne(y, i)), { alteredConfig: y, preFetchedQueryResponse: u };
332
+ runtimeDataFilters: l,
333
+ ignoreViewExtent: c,
334
+ setTimeBinningInfoWhenNotProvided: p,
335
+ returnFeaturesExtent: f,
336
+ returnStatisticsAggregatedIds: u,
337
+ chartLimits: m
338
+ })), g = je(g, a), ke(d, g)), { alteredConfig: g, preFetchedQueryResponse: F };
301
339
  }
302
- function Vt(t, e) {
303
- let s = !1;
340
+ function Gt(s, e) {
341
+ let t = !1;
304
342
  if (e !== void 0) {
305
- const r = Xe({ key: _e.Average, splitBy: e });
306
- s = Number.isFinite(t[r]);
343
+ const r = at({ key: yt.Average, splitBy: e });
344
+ t = Number.isFinite(s[r]);
307
345
  }
308
- return s;
346
+ return t;
309
347
  }
310
- function ps(t) {
311
- const { data: e, config: s, showEmptySeries: r } = t, a = s.series.length, i = ae(s);
348
+ function Ws(s) {
349
+ const { data: e, config: t, showEmptySeries: r } = s, i = t.series.length, a = J(t);
312
350
  let n = !1;
313
- if (!r && a > 1 && e) {
314
- const o = ke(e), c = Be(s?.series), m = X(s?.series), F = /* @__PURE__ */ new Set();
315
- switch (c) {
316
- case v.ComboLineAndBarSeries:
317
- case v.BarSeries:
318
- case v.RadarSeries:
319
- case v.LineSeries: {
320
- i.series.forEach((g) => {
351
+ if (!r && i > 1 && e) {
352
+ const o = Ze(e), l = Ve(t?.series), c = ee(t?.series), p = /* @__PURE__ */ new Set();
353
+ switch (l) {
354
+ case T.ComboLineAndBarSeries:
355
+ case T.BarSeries:
356
+ case T.RadarSeries:
357
+ case T.LineSeries: {
358
+ a.series.forEach((u) => {
321
359
  if (Array.isArray(o)) {
322
- let d = "";
323
- "y" in g && (d = Array.isArray(g.y) ? g.y[0] : g.y, m === D.BarAndLineSplitByNoAggregation && (d = `${d}_${le({ where: g.query?.where, keepSurroundingQuotes: !1, escape: !1 })}`), o.some(
324
- (u) => Pe({
325
- dataItem: u,
326
- x: g.x,
327
- y: d,
328
- aggregationType: s.series[0].query?.outStatistics?.[0]?.statisticType
360
+ let m = "";
361
+ "y" in u && (m = Array.isArray(u.y) ? u.y[0] : u.y, c === w.BarAndLineSplitByNoAggregation && (m = `${m}_${me({ where: u.query?.where, keepSurroundingQuotes: !1, escape: !1 })}`), o.some(
362
+ (y) => Ge({
363
+ dataItem: y,
364
+ x: u.x,
365
+ y: m,
366
+ aggregationType: t.series[0].query?.outStatistics?.[0]?.statisticType
329
367
  })
330
- ) && F.add(g));
368
+ ) && p.add(u));
331
369
  }
332
370
  });
333
371
  break;
334
372
  }
335
- case v.BoxPlotSeries: {
336
- if (Oe(s)) {
337
- const g = De(s);
338
- s.series.forEach((d) => {
339
- let y, u;
340
- d.type === v.BoxPlotSeries ? (y = e.dataItems, u = y?.some(
341
- (p) => we({
342
- dataItem: p,
343
- splitBy: d.query?.where,
344
- showOutliers: g
373
+ case T.BoxPlotSeries: {
374
+ if (_e(t)) {
375
+ const u = Qe(t);
376
+ t.series.forEach((m) => {
377
+ let d, y;
378
+ m.type === T.BoxPlotSeries ? (d = e.dataItems, y = d?.some(
379
+ (g) => ze({
380
+ dataItem: g,
381
+ splitBy: m.query?.where,
382
+ showOutliers: u
345
383
  })
346
- )) : d.type === v.LineSeries && (y = e.meanLines, u = y?.some(
347
- (p) => Vt(p, d.query?.where)
348
- )), u && F.add(d);
384
+ )) : m.type === T.LineSeries && (d = e.meanLines, y = d?.some(
385
+ (g) => Gt(g, m.query?.where)
386
+ )), y && p.add(m);
349
387
  });
350
388
  }
351
389
  break;
352
390
  }
353
391
  }
354
- const l = Array.from(F.values());
355
- n = l.length > 0 && l.length < a, n && (i.series = l);
392
+ const f = Array.from(p.values());
393
+ n = f.length > 0 && f.length < i, n && (a.series = f);
356
394
  }
357
- return { seriesFilteredOut: n, filteredConfig: i };
395
+ return { seriesFilteredOut: n, filteredConfig: a };
358
396
  }
359
- const fs = (t) => t.hideEmptyRowsAndColumns, Ss = (t, e) => {
360
- t.hideEmptyRowsAndColumns = e;
361
- }, Fs = (t, e) => {
362
- const s = t.series[0];
363
- s.heatRulesType = e;
364
- }, hs = (t) => t.series[0].heatRulesType, Ts = (t, e) => {
365
- const s = t.series[0];
366
- s.gradientRules = e;
367
- }, xs = (t) => t.series[0].gradientRules, Bs = (t) => {
368
- const { yField: e, config: s, layerInfo: r } = t, { layerFieldsInfo: a } = r, i = oe(1, s), n = Nt(s), o = z(s), c = s.series[0];
369
- if (typeof e == "string" && n !== e && c && (c.y = e, Ct(s), n === i || o)) {
370
- const m = w(a, e);
371
- E(s, 1, m);
397
+ const Hs = (s) => s.hideEmptyRowsAndColumns, Xs = (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, Ks = (s, e) => {
403
+ const t = s.series[0];
404
+ t.gradientRules = e;
405
+ }, Zs = (s) => s.series[0].gradientRules, _s = (s) => {
406
+ const { yField: e, config: t, layerInfo: r, commonStrings: i } = s, { layerFieldsInfo: a } = r, n = ie(1, t), o = Jt(t), l = se(t), c = t.series[0];
407
+ if (typeof e == "string" && o !== e && c) {
408
+ if (c.y = e, Ut(t), o === n || l) {
409
+ const p = R(a, e);
410
+ $(t, 1, p);
411
+ }
412
+ Re({ commonStrings: i, config: t, layerInfo: r });
372
413
  }
373
- }, Nt = (t) => t.series[0].y ?? "", Cs = (t) => {
374
- const { binning: e, config: s, commonStrings: r } = t, a = s.series[0];
375
- if (a.xTemporalBinning = e, e?.unit !== void 0 && e.unit in r.utilsStrings.heatChartCalendarDatePartsUnits) {
376
- const i = r.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
377
- E(s, 0, i);
414
+ }, Jt = (s) => s.series[0].y ?? "", Qs = (s) => {
415
+ const { binning: e, config: t, commonStrings: r } = s, i = t.series[0];
416
+ if (i.xTemporalBinning = e, e?.unit !== void 0 && e.unit in r.utilsStrings.heatChartCalendarDatePartsUnits) {
417
+ const a = r.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
418
+ $(t, 0, a);
378
419
  }
379
- }, bs = (t) => t.series[0].xTemporalBinning, As = (t) => {
380
- const { binning: e, config: s, commonStrings: r } = t, a = s.series[0];
381
- if (a.yTemporalBinning = e, e?.unit !== void 0 && e.unit in r.utilsStrings.heatChartCalendarDatePartsUnits) {
382
- const i = r.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
383
- E(s, 1, i);
420
+ G({ axisIndex: 0, commonStrings: r, config: t });
421
+ }, es = (s) => s.series[0].xTemporalBinning, zs = (s) => {
422
+ const { binning: e, config: t, commonStrings: r } = s, i = t.series[0];
423
+ if (i.yTemporalBinning = e, e?.unit !== void 0 && e.unit in r.utilsStrings.heatChartCalendarDatePartsUnits) {
424
+ const a = r.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
425
+ $(t, 1, a);
384
426
  }
385
- }, vs = (t) => t.series[0].yTemporalBinning, Rt = (t, e) => {
427
+ G({ axisIndex: 1, commonStrings: r, config: t });
428
+ }, ts = (s) => s.series[0].yTemporalBinning, ss = (s, e) => {
386
429
  e.orderOptions ??= {};
387
- const s = e.axes?.[0]?.valueFormat?.type === "category" ? V.Category : V.YValue, r = ie(e)[0], a = e.axes?.[1]?.valueFormat?.type === "category" ? V.Category : V.YValue, i = ie(e)[1], n = {
430
+ const t = e.axes?.[0]?.valueFormat?.type === "category" ? L.Category : L.YValue, r = de(e)[0], i = e.axes?.[1]?.valueFormat?.type === "category" ? L.Category : L.YValue, a = de(e)[1], n = {
388
431
  ...e.orderOptions.data ?? {},
389
- orderType: V.MultiAxes
432
+ orderType: L.MultiAxes
390
433
  };
391
- r === J.customSort && s === V.Category && (n.orderByX = [...t]), i === J.customSort && a === V.Category && (n.orderByY = [...t]), Object.keys(n).length > 1 && (e.orderOptions.data = n);
392
- }, Is = (t, e) => {
393
- const s = e.series[0];
394
- s.gridLine && (s.gridLine.width = t);
395
- }, Ls = (t) => t.series[0].gridLine?.width, qs = (t, e) => {
396
- const s = e.series[0], r = t?.length === 4 && t.every((a) => typeof a == "number");
397
- s.gridLine && r && (s.gridLine.color = t);
398
- }, Vs = (t) => t.series[0].gridLine?.color, Ns = (t, e) => {
399
- const s = e.legend;
400
- s && (s.position = t);
401
- }, Rs = (t) => t.legend?.position ?? st.Bottom, ks = (t) => t.series[0].query?.outStatistics?.[0]?.onStatisticField, Os = (t) => {
402
- const { field: e, config: s, layerInfo: r, commonStrings: a } = t, i = s.series[0].query?.outStatistics?.[0], n = _(s, r, a);
403
- i ? (i.onStatisticField = e, i.outStatisticFieldName = `${i.statisticType}_${e}`) : s.series[0].query = {
434
+ r === oe.customSort && t === L.Category && (n.orderByX = [...s]), a === oe.customSort && i === L.Category && (n.orderByY = [...s]), Object.keys(n).length > 1 && (e.orderOptions.data = n);
435
+ }, Gs = (s, e) => {
436
+ const t = e.series[0];
437
+ t.gridLine && (t.gridLine.width = s);
438
+ }, Js = (s) => s.series[0].gridLine?.width, ei = (s, e) => {
439
+ const t = e.series[0], r = s?.length === 4 && s.every((i) => typeof i == "number");
440
+ t.gridLine && r && (t.gridLine.color = s);
441
+ }, ti = (s) => s.series[0].gridLine?.color, si = (s, e) => {
442
+ const t = e.legend;
443
+ t && (t.position = s);
444
+ }, ii = (s) => s.legend?.position ?? Ft.Bottom, ai = (s) => s.series[0].query?.outStatistics?.[0]?.onStatisticField, ri = (s) => {
445
+ const { field: e, config: t, layerInfo: r, commonStrings: i } = s, a = t.series[0].query?.outStatistics?.[0], n = ne(t, r, i);
446
+ a ? (a.onStatisticField = e, a.outStatisticFieldName = `${a.statisticType}_${e}`) : t.series[0].query = {
404
447
  outStatistics: [
405
448
  {
406
449
  onStatisticField: e,
407
- outStatisticFieldName: `${q.Count}_${e}`,
408
- statisticType: q.Count
450
+ outStatisticFieldName: `${v.Count}_${e}`,
451
+ statisticType: v.Count
409
452
  }
410
453
  ]
411
- }, n && s.title && (s.title.content.text = j(s, r, a));
412
- }, Ds = (t) => t.series[0].query?.outStatistics?.[0].statisticType ?? q.Count, ws = (t) => {
413
- const { aggregationType: e, config: s, layerInfo: r, commonStrings: a } = t, i = s.series[0]?.query?.outStatistics?.[0], n = _(s, r, a);
414
- i && e !== q.NoAggregation && (i.statisticType = e, i.outStatisticFieldName = `${e}_${i.onStatisticField}`), (e === q.Count || e === q.Sum) && kt(U.Zero, s), n && s.title && (s.title.content.text = j(s, r, a));
415
- }, Ps = (t) => t.nullPolicy, kt = (t, e) => {
416
- e.nullPolicy = t;
417
- }, Es = (t) => t.series[0].emptyCells, Ms = (t, e) => {
418
- e.series[0].emptyCells = t;
419
- }, $s = (t) => t.series[0].emptyCells?.text, Ys = (t, e) => {
420
- e.series[0].emptyCells ? e.series[0].emptyCells.text = t : e.series[0].emptyCells = { text: t };
421
- }, Ws = (t) => t.includeLeapDay, Xs = (t, e) => {
422
- e.includeLeapDay = t;
423
- }, Hs = (t) => t.series[0].emptyCells?.symbol, js = (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 = K(t, r, i));
455
+ }, ni = (s) => s.series[0].query?.outStatistics?.[0].statisticType ?? v.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 !== v.NoAggregation && (a.statisticType = e, a.outStatisticFieldName = `${e}_${a.onStatisticField}`), (e === v.Count || e === v.Sum) && is(W.Zero, t), n && t.title && (t.title.content.text = K(t, r, i));
458
+ }, li = (s) => s.nullPolicy, is = (s, e) => {
459
+ e.nullPolicy = s;
460
+ }, ci = (s) => s.series[0].emptyCells, ui = (s, e) => {
461
+ e.series[0].emptyCells = s;
462
+ }, di = (s) => s.series[0].emptyCells?.text, yi = (s, e) => {
463
+ e.series[0].emptyCells ? e.series[0].emptyCells.text = s : e.series[0].emptyCells = { text: s };
464
+ }, mi = (s) => s.includeLeapDay, gi = (s, e) => {
465
+ e.includeLeapDay = s;
466
+ }, pi = (s) => s.series[0].emptyCells?.symbol, fi = (s, e) => {
467
+ e.series[0].emptyCells ? e.series[0].emptyCells.symbol = s : e.series[0].emptyCells = { symbol: s };
425
468
  };
426
- function Ks(t) {
427
- return t.viewType;
469
+ function Si(s) {
470
+ return s.viewType;
428
471
  }
429
- function Us(t, e) {
430
- Ze(e) || (e.viewType = t);
472
+ function Fi(s, e) {
473
+ mt(e) || (e.viewType = s);
431
474
  }
432
- function Qs(t) {
433
- return t.series[0].classBreaksRules?.breaksCount ?? $.classBreaks.breaksCount;
475
+ function xi(s) {
476
+ return s.series[0].classBreaksRules?.breaksCount ?? H.classBreaks.breaksCount;
434
477
  }
435
- function zs(t, e) {
436
- e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.breaksCount = t ?? $.classBreaks.breaksCount : e.series[0].classBreaksRules = {
437
- breaksCount: t ?? $.classBreaks.breaksCount
478
+ function hi(s, e) {
479
+ e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.breaksCount = s ?? H.classBreaks.breaksCount : e.series[0].classBreaksRules = {
480
+ breaksCount: s ?? H.classBreaks.breaksCount
438
481
  };
439
482
  }
440
- function Gs(t) {
441
- return t.series[0].classBreaksRules?.classificationMethod;
483
+ function Ti(s) {
484
+ return s.series[0].classBreaksRules?.classificationMethod;
442
485
  }
443
- function _s(t, e) {
444
- e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.classificationMethod = t : e.series[0].classBreaksRules = {
445
- classificationMethod: t
446
- }, e.series[0].classBreaksRules.breaksCount = e.series[0].classBreaksRules.breaksCount ?? $.classBreaks.breaksCount;
486
+ function Bi(s, e) {
487
+ e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.classificationMethod = s : e.series[0].classBreaksRules = {
488
+ classificationMethod: s
489
+ }, e.series[0].classBreaksRules.breaksCount = e.series[0].classBreaksRules.breaksCount ?? H.classBreaks.breaksCount;
447
490
  }
448
- function Zs(t, e) {
449
- e.firstDayOfWeek = t;
491
+ function Ci(s, e) {
492
+ e.firstDayOfWeek = s;
450
493
  }
451
- function Js(t) {
452
- return t.firstDayOfWeek;
494
+ function bi(s) {
495
+ return s.firstDayOfWeek;
453
496
  }
454
- function ei(t) {
455
- return t.series[0].classBreaksRules?.colorRampInfo?.name;
497
+ function Ai(s) {
498
+ return s.series[0].classBreaksRules?.colorRampInfo?.name;
456
499
  }
457
- function ti(t, e) {
500
+ function vi(s, e) {
458
501
  e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.colorRampInfo = {
459
502
  ...e.series[0].classBreaksRules.colorRampInfo,
460
- name: t
503
+ name: s
461
504
  } : e.series[0].classBreaksRules = {
462
505
  colorRampInfo: {
463
- name: t,
506
+ name: s,
464
507
  flipped: !1
465
508
  }
466
509
  };
467
510
  }
468
- function si(t) {
469
- return t.series[0].classBreaksRules?.colorRampInfo?.flipped ?? !1;
511
+ function Ii(s) {
512
+ return s.series[0].classBreaksRules?.colorRampInfo?.flipped ?? !1;
470
513
  }
471
- function ii(t, e) {
514
+ function Li(s, e) {
472
515
  e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.colorRampInfo = {
473
516
  ...e.series[0].classBreaksRules.colorRampInfo,
474
- flipped: t
517
+ flipped: s
475
518
  } : e.series[0].classBreaksRules = {
476
519
  colorRampInfo: {
477
- flipped: t
520
+ flipped: s
478
521
  }
479
522
  };
480
523
  }
481
- function Y(t) {
482
- const { seriesIndex: e, xAxisField: s, aggregationType: r, config: a, layerInfo: i, commonStrings: n } = t, o = H(i?.layer).idField;
483
- let c;
484
- const m = a.series[e ?? 0];
485
- let F = !1, l = !1, g = !1;
486
- if (m === void 0) {
487
- const u = a.series;
488
- F = u.slice(0, e).every((p) => b(p)), l = u.slice(0, e).every((p) => A(p)), g = u.slice(0, e).every((p) => Se(p));
524
+ const as = [
525
+ k.DayOfMonth,
526
+ k.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 === k.DayOfWeek ? t = k.HourOfDay : s === 1 && e?.unit === k.HourOfDay && (t = k.DayOfWeek), {
539
+ type: T.CalendarDateParts,
540
+ unit: t
541
+ };
542
+ }, ns = (s) => {
543
+ let e = {};
544
+ switch (s.unit) {
545
+ case k.DayOfMonth:
546
+ e = { day: "2-digit" };
547
+ break;
548
+ case k.DayOfWeek:
549
+ e = { weekday: "short" };
550
+ break;
551
+ case k.HourOfDay:
552
+ e = { hour: "numeric", hour12: !1 };
553
+ break;
554
+ case k.MonthOfYear:
555
+ e = { month: "short" };
556
+ break;
557
+ default:
558
+ e = z().intlOptions;
559
+ break;
560
+ }
561
+ return {
562
+ type: T.DateAxisFormat,
563
+ intlOptions: e
564
+ };
565
+ }, ve = (s) => {
566
+ const { axisIndex: e, binning: t, commonStrings: r, config: i, fieldName: a, layerInfo: n } = s, o = i.series[0], l = ie(e, i), c = R(n.layerFieldsInfo, a);
567
+ e === 0 ? o.xTemporalBinning = t : e === 1 && (o.yTemporalBinning = t), t !== void 0 && (l === "" || l === c || l === be(r, t.unit) || l === r.xAxis) && $(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
+ }, Re = (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
+ Dt(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((A) => O(A)), f = B.slice(0, e).every((A) => V(A)), u = B.slice(0, e).every((A) => Fe(A));
489
615
  } else
490
- F = b(m), l = A(m), g = Se(m);
491
- F ? c = ot({
616
+ p = O(c), f = V(c), u = Fe(c);
617
+ p ? l = bt({
492
618
  commonStrings: n,
493
619
  seriesIndex: e,
494
620
  objectIDField: o
495
- }) : l ? c = ut({
621
+ }) : f ? l = At({
496
622
  commonStrings: n,
497
623
  seriesIndex: e,
498
624
  objectIDField: o
499
- }) : g ? c = ct(n, o) : c = dt({
625
+ }) : u ? l = vt(n, o) : l = It({
500
626
  seriesIndex: e,
501
627
  objectIDField: o,
502
628
  commonStrings: n
503
629
  });
504
- const d = a.series[0]?.dataLabels, y = {
505
- ...c,
506
- x: s,
630
+ const m = i.series[0]?.dataLabels, d = "nullCategory" in i.series[0] ? os(i) : void 0, y = "binTemporalData" in i.series[0] ? i.series[0].binTemporalData : void 0, g = "classBreakRules" in i.series[0] ? i.series[0].classBreakRules : void 0, F = "xTemporalBinning" in i.series[0] ? i.series[0].xTemporalBinning : void 0, h = "yTemporalBinning" in i.series[0] ? i.series[0].yTemporalBinning : void 0, S = "emptyCells" in i.series[0] ? i.series[0].emptyCells : void 0, b = i.series[0].query && "fetchNullValues" in i.series[0].query ? i.series[0].query?.fetchNullValues : void 0, C = {
631
+ ...l,
632
+ x: t,
507
633
  y: "",
508
634
  dataLabels: {
509
- ...c.dataLabels,
510
- type: c.dataLabels?.type ?? v.Text,
511
- content: { ...c.dataLabels?.content, ...d?.content, type: Ft.TS },
512
- visible: d?.visible ?? !1
513
- }
635
+ ...l.dataLabels,
636
+ type: l.dataLabels?.type ?? T.Text,
637
+ content: { ...l.dataLabels?.content, ...m?.content, type: Tt.TS },
638
+ visible: m?.visible ?? !1
639
+ },
640
+ ...d !== void 0 ? { nullCategory: d } : {},
641
+ ...y !== void 0 ? { binTemporalData: y } : {},
642
+ ...g !== void 0 ? { classBreakRules: g } : {},
643
+ ...F !== void 0 ? { xTemporalBinning: F } : {},
644
+ ...h !== void 0 ? { yTemporalBinning: h } : {},
645
+ ...S !== void 0 ? { emptyCells: S } : {}
514
646
  };
515
- if (y.query = {
516
- groupByFieldsForStatistics: [s]
517
- }, r !== q.NoAggregation && o !== void 0) {
518
- const u = `${r}_${o}_0`.toUpperCase();
519
- y.y = u, y.query.outStatistics = [
647
+ if (C.query = {
648
+ groupByFieldsForStatistics: [t],
649
+ ...b !== void 0 ? { fetchNullValues: b } : {}
650
+ }, r !== v.NoAggregation && o !== void 0) {
651
+ const B = `${r}_${o}_0`.toUpperCase();
652
+ C.y = B, C.query.outStatistics = [
520
653
  {
521
654
  statisticType: r,
522
655
  onStatisticField: o,
523
- outStatisticFieldName: u
656
+ outStatisticFieldName: B
524
657
  }
525
658
  ];
526
659
  }
527
- if (R(a.series[0]) && R(y)) {
528
- let u;
529
- if (a?.series?.[0] !== void 0 && (u = X(a.series)), u !== D.BarAndLineNoAggregation && u !== D.BarAndLineSplitByNoAggregation) {
530
- let p = Tt(a);
531
- p === te.Quarter && (p = te.Month), y.temporalBinning = {
532
- ...a.series[0]?.temporalBinning,
533
- unit: p
534
- };
535
- }
660
+ if (I(i.series[0]) && I(C)) {
661
+ let B = wt(i);
662
+ B === le.Quarter && (B = le.Month), C.temporalBinning = {
663
+ ...i.series[0]?.temporalBinning,
664
+ unit: B
665
+ };
536
666
  }
537
- return ae(y);
667
+ return J(C);
538
668
  }
539
- function j(t, e, s) {
540
- const { layerFieldsInfo: r } = e, { idField: a, isTraditionalTypeOID: i } = H(e.layer), n = M(t), o = G(t), c = be(t), m = ue(t), F = i && (o.length === 0 || o.includes(a)), l = nt(c, s), g = F ? "" : o.map((h) => w(r ?? [], h)).join(", "), d = w(r ?? [], n), y = w(r ?? [], m), u = t.series.some((h) => O(h)), p = u ? "category" : "xAxisField", x = d;
541
- let C = "";
542
- if (Te({
669
+ function K(s, e, t) {
670
+ const { layerFieldsInfo: r } = e, { idField: i, isTraditionalTypeOID: a } = j(e.layer), n = P(s), o = Z(s), l = we(s), c = re(s), p = a && (o.length === 0 || o.includes(i)), f = Ct(l, t), u = p ? "" : o.map((S) => R(r ?? [], S)).join(", "), m = R(r ?? [], n), d = R(r ?? [], c), y = s.series.some((S) => M(S)), g = y ? "category" : "xAxisField", F = m;
671
+ let h = "";
672
+ if (ge({
543
673
  fieldName: n,
544
674
  numericFields: o,
545
675
  fieldList: r
546
676
  }))
547
- C = P(s.titleLabels.aggrTypeOfAggrFields, {
548
- aggregationType: l,
549
- aggregationFields: g
677
+ h = E(t.titleLabels.aggrTypeOfAggrFields, {
678
+ aggregationType: f,
679
+ aggregationFields: u
550
680
  });
551
- else if (c === q.NoAggregation) {
552
- const h = F ? a : g;
553
- if (m === "") {
554
- const f = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
555
- C = P(s.titleLabels[f], {
556
- aggregationType: h,
557
- [p]: x
681
+ else if (l === v.NoAggregation) {
682
+ const S = p ? i : u;
683
+ if (c === "") {
684
+ const b = y ? "aggrTypeCategory" : "aggrTypeXAxisField";
685
+ h = E(t.titleLabels[b], {
686
+ aggregationType: S,
687
+ [g]: F
558
688
  });
559
689
  } else {
560
- const f = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
561
- C = P(s.titleLabels[f], {
562
- aggregationType: h,
563
- [p]: x,
564
- splitByField: y
690
+ const b = y ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
691
+ h = E(t.titleLabels[b], {
692
+ aggregationType: S,
693
+ [g]: F,
694
+ splitByField: d
565
695
  });
566
696
  }
567
- } else if (c === q.Count)
568
- if (m === "") {
569
- const h = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
570
- C = P(s.titleLabels[h], {
571
- aggregationType: l,
572
- [p]: x
697
+ } else if (l === v.Count)
698
+ if (c === "") {
699
+ const S = y ? "aggrTypeCategory" : "aggrTypeXAxisField";
700
+ h = E(t.titleLabels[S], {
701
+ aggregationType: f,
702
+ [g]: F
573
703
  });
574
704
  } else {
575
- const h = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
576
- C = P(s.titleLabels[h], {
577
- aggregationType: l,
578
- [p]: x,
579
- splitByField: y
705
+ const S = y ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
706
+ h = E(t.titleLabels[S], {
707
+ aggregationType: f,
708
+ [g]: F,
709
+ splitByField: d
580
710
  });
581
711
  }
582
- else if (m !== "") {
583
- const h = u ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
584
- C = P(s.titleLabels[h], {
585
- aggregationType: l,
586
- aggregationField: g,
587
- [p]: x,
588
- splitByField: y
712
+ else if (c !== "") {
713
+ const S = y ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
714
+ h = E(t.titleLabels[S], {
715
+ aggregationType: f,
716
+ aggregationField: u,
717
+ [g]: F,
718
+ splitByField: d
589
719
  });
590
720
  } else if (o.length > 0) {
591
- const h = u ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
592
- C = P(s.titleLabels[h], {
593
- aggregationType: l,
594
- aggregationFields: g,
595
- [p]: x
721
+ const S = y ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
722
+ h = E(t.titleLabels[S], {
723
+ aggregationType: f,
724
+ aggregationFields: u,
725
+ [g]: F
596
726
  });
597
727
  }
598
- return C;
728
+ return h;
599
729
  }
600
- const Ce = (t) => le({
601
- where: t.query?.where,
730
+ const qe = (s) => me({
731
+ where: s.query?.where,
602
732
  normalize: !1,
603
733
  escape: !1
604
- }) ?? "", be = (t) => t?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? q.NoAggregation, ue = Le(
605
- (t) => {
606
- const e = t?.series?.[0]?.query?.where?.split("=")[0].trim() ?? "";
607
- return Je(t?.series?.[0]?.query?.where) ? "" : e;
734
+ }) ?? "", we = (s) => s?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? v.NoAggregation, re = We(
735
+ (s) => {
736
+ const e = s?.series?.[0]?.query?.where?.split("=")[0].trim() ?? "";
737
+ return gt(s?.series?.[0]?.query?.where) ? "" : e;
608
738
  },
609
- (t) => t?.series?.[0]?.query?.where
610
- ), G = (t) => {
739
+ (s) => s?.series?.[0]?.query?.where
740
+ ), Z = (s) => {
611
741
  let e = [];
612
- if (ue(t) === "")
613
- e = t?.series.map((s) => {
614
- const r = s.query?.outStatistics?.map((a) => a.onStatisticField) ?? [];
615
- return r?.length > 0 ? r : s.y;
742
+ if (re(s) === "")
743
+ e = s?.series.map((t) => {
744
+ const r = t.query?.outStatistics?.map((i) => i.onStatisticField) ?? [];
745
+ return r?.length > 0 ? r : t.y;
616
746
  }).flat() ?? [];
617
747
  else {
618
- const s = t?.series?.[0], r = s?.query?.outStatistics?.[0]?.onStatisticField ?? [s?.y].flat()[0];
748
+ const t = s?.series?.[0], r = t?.query?.outStatistics?.[0]?.onStatisticField ?? [t?.y].flat()[0];
619
749
  e = r !== void 0 ? [r] : [];
620
750
  }
621
- return e.filter((s) => s !== "");
751
+ return e.filter((t) => t !== "");
622
752
  };
623
- function Ot(t) {
624
- const { numericFields: e, aggregationType: s, config: r, layerInfo: a } = t;
625
- let i = !1;
626
- s === q.Count ? i = !0 : s === q.NoAggregation && (i = e.every((c) => {
627
- const m = a.layerFieldsInfo.find((F) => F.name === c);
628
- return m !== void 0 ? me(m) : !1;
629
- })), ce(r, 1, i);
630
- const n = r.series.some((c) => b(c)), o = r.series.some((c) => A(c));
753
+ function Pe(s) {
754
+ const { splitByField: e, numericFields: t, layer: r, seriesIndex: i } = s, a = j(r).idField ?? "";
755
+ return e === "" ? t[i] ?? a : t[0] ?? a;
756
+ }
757
+ function ls(s) {
758
+ const { numericFields: e, aggregationType: t, config: r, layerInfo: i } = s;
759
+ let a = !1;
760
+ t === v.Count ? a = !0 : t === v.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) => O(l)), o = r.series.some((l) => V(l));
631
765
  if (n || o) {
632
- const c = M(r), m = a.layerFieldsInfo.find((l) => l.name === c), F = m !== void 0 && me(m);
633
- ce(r, 0, F);
766
+ const l = P(r), c = i.layerFieldsInfo.find((f) => f.name === l), p = c !== void 0 && xe(c);
767
+ pe(r, 0, p);
634
768
  }
635
769
  }
636
- const ie = (t) => {
770
+ const de = (s) => {
637
771
  let e;
638
- if (ne(t)) {
639
- const s = t.orderOptions?.data?.orderByX ?? [""], r = t.orderOptions?.data?.orderByY ?? [""], a = t.axes?.[0]?.valueFormat?.type === "category" ? V.Category : V.YValue, i = t.axes?.[1]?.valueFormat?.type === "category" ? V.Category : V.YValue;
640
- e = [ge(s, a), ge(r, i)];
772
+ if (Y(s)) {
773
+ const t = s.orderOptions?.data?.orderByX ?? [""], r = s.orderOptions?.data?.orderByY ?? [""], i = s.axes?.[0]?.valueFormat?.type === "category" ? L.Category : L.YValue, a = s.axes?.[1]?.valueFormat?.type === "category" ? L.Category : L.YValue;
774
+ e = [he(t, i), he(r, a)];
641
775
  } else {
642
- const s = t.orderOptions?.data?.orderType ?? V.Category, r = t.orderOptions?.data && "orderBy" in t.orderOptions.data ? t.orderOptions.data.orderBy : it.Ascending;
643
- e = [tt(r, s)];
776
+ const t = s.orderOptions?.data?.orderType ?? L.Category, r = s.orderOptions?.data && "orderBy" in s.orderOptions.data ? s.orderOptions.data.orderBy : xt.Ascending;
777
+ e = [St(r, t)];
644
778
  }
645
779
  return e;
646
780
  };
647
- function Dt(t) {
648
- const { xAxisField: e, numericFields: s, aggregationType: r, config: a, layerInfo: i, commonStrings: n } = t, { layerFieldsInfo: o } = i;
649
- let c = !1;
650
- const m = Y({
651
- config: a,
781
+ function cs(s) {
782
+ const { xAxisField: e, numericFields: t, aggregationType: r, config: i, layerInfo: a, commonStrings: n } = s, { layerFieldsInfo: o } = a, l = ae({
783
+ config: i,
652
784
  xAxisField: e,
653
785
  aggregationType: r,
654
- layerInfo: i,
786
+ layerInfo: a,
655
787
  seriesIndex: 0,
656
788
  commonStrings: n
657
- }), F = Q({
658
- config: a,
789
+ }), c = te({
790
+ config: i,
659
791
  xAxisField: e,
660
- numericFields: s,
792
+ numericFields: t,
661
793
  aggregationType: r,
662
- layer: i.layer,
794
+ layer: a.layer,
795
+ fieldList: o
796
+ }).name, p = P(i), f = Z(i), u = ge({
797
+ fieldName: p,
798
+ numericFields: f,
663
799
  fieldList: o
664
- }).name, l = {
665
- ...m,
666
- id: `series_${Date.now()}`,
667
- name: n.axisLabels.values,
668
- x: ee,
669
- y: F
670
- }, g = [];
671
- for (const y of s)
672
- g.push({
673
- onStatisticField: y,
674
- outStatisticFieldName: `${y}_0`.toUpperCase(),
800
+ }) ? i.series[0] : void 0, m = `series_${Date.now()}`, d = u?.id ?? m, y = u?.name ?? n.axisLabels.values, F = {
801
+ ...u ?? l,
802
+ id: d,
803
+ name: y,
804
+ x: U,
805
+ y: c
806
+ }, h = [];
807
+ for (const S of t)
808
+ h.push({
809
+ onStatisticField: S,
810
+ outStatisticFieldName: `${S}_0`.toUpperCase(),
675
811
  statisticType: r
676
812
  });
677
- l.query = { outStatistics: g };
678
- const d = a.series[0];
679
- return d !== void 0 && (l.id = d.id, (b(l) && b(d) || A(l) && A(d)) && W(l, d), a.colorMatch || (O(d) && O(l) ? l.fillSymbol = d.fillSymbol : (b(l) && b(d) || A(l) && A(d)) && (l.lineSymbol = d.lineSymbol, l.markerSymbol = d.markerSymbol), c = !0), l.id = d.id, d.name !== m.name && (l.name = d.name)), a.series.length === 1 && ((b(l) || A(l)) && W(l, a.series[0]), a.colorMatch || (O(l) ? l.fillSymbol = a.series[0].fillSymbol : (b(l) || A(l)) && (l.lineSymbol = a.series[0].lineSymbol, l.markerSymbol = a.series[0].markerSymbol), c = !0)), a.colorMatch = !c, [l];
813
+ return F.query = { outStatistics: h }, i.series.length === 1 && ((O(F) || V(F)) && Me(F, i.series[0]), M(F) ? F.fillSymbol = i.series[0].fillSymbol : (O(F) || V(F)) && (F.lineSymbol = i.series[0].lineSymbol, F.markerSymbol = i.series[0].markerSymbol)), [F];
680
814
  }
681
- function Ae(t) {
682
- const { xAxisField: e, numericFields: s, aggregationType: r, config: a, layerInfo: i, commonStrings: n } = t, { layerFieldsInfo: o } = i, c = H(i.layer).idField, m = [];
683
- let F = !1;
684
- for (let u = 0; u < s.length; u += 1) {
685
- const p = Y({
686
- config: a,
815
+ function Ee(s) {
816
+ const { xAxisField: e, numericFields: t, aggregationType: r, config: i, layerInfo: a, commonStrings: n } = s, { layerFieldsInfo: o } = a, l = j(a.layer).idField, c = [];
817
+ for (let d = 0; d < t.length; d += 1) {
818
+ const y = ae({
819
+ config: i,
687
820
  xAxisField: e,
688
821
  aggregationType: r,
689
- layerInfo: i,
690
- seriesIndex: u,
822
+ layerInfo: a,
823
+ seriesIndex: d,
691
824
  commonStrings: n
692
- }), x = a.series[u]?.y, C = typeof x == "string" && x.trim() !== "" ? x : Q({
693
- config: a,
825
+ }), g = i.series[d]?.y, F = typeof g == "string" && g.trim() !== "" && !o.find((N) => N.name === g) ? g : te({
826
+ config: i,
694
827
  xAxisField: e,
695
- numericFields: s,
828
+ numericFields: t,
696
829
  aggregationType: r,
697
- layer: i.layer,
698
- numericFieldIndex: u,
830
+ layer: a.layer,
831
+ numericFieldIndex: d,
699
832
  fieldList: o
700
- }).name, h = s[u];
701
- let f = {
702
- ...p,
703
- query: {
704
- ...p.query
705
- }
833
+ }).name, h = t[d], S = i.series.find(
834
+ (N) => N.query?.where === void 0 && (N.query?.outStatistics?.length === 1 && N.query?.outStatistics?.[0]?.onStatisticField === h || N.query?.outStatistics === void 0 && (N.y === h || N.x === h))
835
+ ), b = h !== l ? h : y.id, C = S?.id ?? b, B = S?.name ?? R(o, h) ?? C, A = S ?? y, x = {
836
+ ...A,
837
+ id: C,
838
+ name: B
706
839
  };
707
- s && h !== c && (f = {
708
- ...f,
709
- id: h,
710
- name: w(o, h)
711
- });
712
- let k = h;
713
- f.query !== void 0 && (r !== q.NoAggregation ? (k = C, f.query.outStatistics = [
840
+ let X = h;
841
+ x.query !== void 0 && (r !== v.NoAggregation ? (X = x.type === T.HeatSeries && S?.type === T.HeatSeries ? h : F, x.query.outStatistics = [
714
842
  {
715
- ...p.query?.outStatistics?.[0] ?? {},
843
+ ...A.query?.outStatistics?.[0] ?? {},
716
844
  onStatisticField: h,
717
- outStatisticFieldName: C,
845
+ outStatisticFieldName: F,
718
846
  statisticType: r
719
847
  }
720
- ]) : delete f.query.outStatistics), f.y = k;
721
- const T = a.series.find(
722
- (S) => S.query?.outStatistics?.[0]?.onStatisticField === h && S.query.where === void 0 || S.query?.outStatistics === void 0 && (S.y === h || S.x === h)
723
- );
724
- if (T !== void 0 && typeof T.y == "string" && T.y.trim() !== "") {
725
- (b(f) && b(T) || A(f) && A(T)) && W(f, T), a.colorMatch || (O(f) && O(T) ? f.fillSymbol = T.fillSymbol : (b(f) && b(T) || A(f) && A(T)) && (f.lineSymbol = T.lineSymbol, f.markerSymbol = T.markerSymbol), F = !0);
726
- const S = Y({
727
- config: a,
728
- xAxisField: e,
729
- aggregationType: r,
730
- layerInfo: i,
731
- seriesIndex: u,
732
- commonStrings: n
733
- });
734
- f.id = T.id, T.id !== S.id && T.name !== S.name && (f.id = T.id, f.name = T.name), f.assignToSecondValueAxis = T.assignToSecondValueAxis, f.type === v.HeatSeries && T.type === v.HeatSeries && (f.y = T.y, f.heatRulesType = T.heatRulesType);
735
- }
736
- m.push(f);
848
+ ]) : delete x.query.outStatistics), x.y = X, c.push(x);
737
849
  }
738
- const l = m.filter((u) => O(u)), g = m.filter(
739
- (u) => b(u) || A(u)
740
- ), d = a.series.filter((u) => O(u)), y = a.series.filter(
741
- (u) => b(u) || A(u)
850
+ const p = c.filter((d) => M(d)), f = c.filter(
851
+ (d) => O(d) || V(d)
852
+ ), u = i.series.filter((d) => M(d)), m = i.series.filter(
853
+ (d) => O(d) || V(d)
742
854
  );
743
- return d.length === 1 && l.length === 1 && !a.colorMatch && (O(d[0]) && O(l[0]) && (l[0].fillSymbol = d[0].fillSymbol), F = !0), y.length === 1 && g.length === 1 && ((b(y[0]) && b(g[0]) || A(y[0]) && A(g[0])) && W(g[0], y[0]), a.colorMatch || ((b(y[0]) && b(g[0]) || A(y[0]) && A(g[0])) && (g[0].lineSymbol = y[0].lineSymbol, g[0].markerSymbol = y[0].markerSymbol), F = !0)), a.colorMatch = !F, m;
855
+ return u.length === 1 && p.length === 1 && M(u[0]) && M(p[0]) && (p[0].fillSymbol = u[0].fillSymbol), m.length === 1 && f.length === 1 && ((O(m[0]) && O(f[0]) || V(m[0]) && V(f[0])) && Me(f[0], m[0]), (O(m[0]) && O(f[0]) || V(m[0]) && V(f[0])) && (f[0].lineSymbol = m[0].lineSymbol, f[0].markerSymbol = m[0].markerSymbol)), c;
744
856
  }
745
- function ai(t) {
746
- const { aggregationType: e, config: s, layerInfo: r, commonStrings: a } = t, { layerFieldsInfo: i, layer: n } = r, o = M(s), c = G(s), m = _(s, r, a), F = ve(s, r, a);
747
- if (s.series.forEach((l, g) => {
748
- const d = Q({
749
- config: s,
857
+ function Di(s) {
858
+ const { aggregationType: e, config: t, layerInfo: r, commonStrings: i } = s, { layerFieldsInfo: a, layer: n } = r, o = P(t), l = Z(t), c = re(t), p = ne(t, r, i), f = $e(t, r, i);
859
+ if (t.series.forEach((u, m) => {
860
+ const d = te({
861
+ config: t,
750
862
  xAxisField: o,
751
- numericFields: c,
863
+ numericFields: l,
752
864
  aggregationType: e,
865
+ splitByField: c,
753
866
  layer: n,
754
- seriesIndex: g,
755
- numericFieldIndex: g,
756
- fieldList: i
867
+ seriesIndex: m,
868
+ numericFieldIndex: m,
869
+ fieldList: a
757
870
  }).name;
758
- e !== q.NoAggregation ? (l.y = d, l.query = {
759
- ...l.query,
760
- outStatistics: [
871
+ u.y = d;
872
+ const y = Pe({
873
+ splitByField: c,
874
+ numericFields: l,
875
+ layer: n,
876
+ seriesIndex: m
877
+ }), g = u.query?.outStatistics?.[0]?.onStatisticField ?? y;
878
+ u.query = {
879
+ ...u.query,
880
+ outStatistics: e === v.NoAggregation ? void 0 : [
761
881
  {
762
- ...l.query?.outStatistics?.[0],
882
+ ...u.query?.outStatistics?.[0],
763
883
  outStatisticFieldName: d,
764
884
  statisticType: e,
765
- onStatisticField: l.query?.outStatistics?.[0]?.onStatisticField ?? c[g]
885
+ onStatisticField: g
766
886
  }
767
887
  ]
768
- }) : (delete l.query?.outStatistics, l.y = c[g]);
769
- }), m && s.title && (s.title.content.text = j(s, r, a)), F && s.series[0].type !== v.HeatSeries) {
770
- const l = re({
771
- config: s,
888
+ }, "temporalBinning" in u && u.temporalBinning !== void 0 && (u.temporalBinning.nullPolicy = e === v.NoAggregation ? W.Interpolate : W.Null), e === v.NoAggregation && Mt(t);
889
+ }), p && t.title && (t.title.content.text = K(t, r, i)), f && t.series[0].type !== T.HeatSeries) {
890
+ const u = ye({
891
+ config: t,
772
892
  layerInfo: r,
773
- commonStrings: a,
774
- numericFields: c,
893
+ commonStrings: i,
894
+ numericFields: l,
775
895
  aggregationType: e
776
896
  });
777
- E(s, 1, l);
897
+ $(t, 1, u);
778
898
  }
779
899
  }
780
- function wt(t) {
900
+ function us(s) {
781
901
  const {
782
902
  splitByField: e,
783
- xAxisField: s,
903
+ xAxisField: t,
784
904
  numericFields: r,
785
- aggregationType: a,
786
- config: i,
905
+ aggregationType: i,
906
+ config: a,
787
907
  layerInfo: n,
788
908
  commonStrings: o,
789
- splitByFieldInfos: c
790
- } = t, { layer: m, layerFieldsInfo: F } = n, { categoriesArray: l, splitByFieldType: g } = c, d = r.length === 0 ? H(m).idField : r[0];
791
- let y = [], u = !1;
792
- if (l.length === 0) {
793
- y = Ae({
794
- xAxisField: s,
909
+ splitByFieldInfos: l
910
+ } = s, { layer: c, layerFieldsInfo: p } = n, { categoriesArray: f, splitByFieldType: u } = l, m = Pe({
911
+ splitByField: e,
912
+ numericFields: r,
913
+ layer: c,
914
+ seriesIndex: 0
915
+ });
916
+ let d = [];
917
+ if (f.length === 0) {
918
+ d = Ee({
919
+ xAxisField: t,
795
920
  numericFields: r,
796
- aggregationType: a,
797
- config: i,
921
+ aggregationType: i,
922
+ config: a,
798
923
  layerInfo: n,
799
924
  commonStrings: o
800
925
  });
801
- for (const p of y)
802
- p.query && (p.query.where = `${e}=''`);
926
+ for (const y of d)
927
+ y.query && (y.query.where = `${e}=''`);
803
928
  } else
804
- for (let p = 0; p < l.length; p += 1) {
805
- const x = l[p], C = Q({
806
- config: i,
807
- xAxisField: s,
929
+ for (let y = 0; y < f.length; y += 1) {
930
+ const g = f[y], F = te({
931
+ config: a,
932
+ xAxisField: t,
808
933
  numericFields: r,
809
- aggregationType: a,
934
+ aggregationType: i,
810
935
  layer: n.layer,
811
- seriesIndex: p,
936
+ seriesIndex: y,
812
937
  splitByField: e,
813
- fieldList: F
814
- }).name, h = Y({
815
- config: i,
816
- xAxisField: s,
817
- aggregationType: a,
938
+ fieldList: p
939
+ }).name, h = ae({
940
+ config: a,
941
+ xAxisField: t,
942
+ aggregationType: i,
818
943
  layerInfo: n,
819
- seriesIndex: p,
944
+ seriesIndex: y,
820
945
  commonStrings: o
821
- }), f = he({
946
+ }), S = Ne({
822
947
  queryObject: n.layer,
823
948
  fieldName: e,
824
- fieldValue: x ?? ""
825
- }), k = `${x}`, S = {
826
- ...h,
827
- id: k,
828
- name: f ?? k,
829
- y: C,
949
+ fieldValue: g ?? ""
950
+ }), b = `${g}`, C = a.series.find(
951
+ (N) => String(qe(N)).trim().replace(/'/gu, "") === b
952
+ ), B = C?.id ?? b, A = C?.name ?? S ?? B, x = C ?? h, X = {
953
+ ...x,
954
+ id: B,
955
+ name: A,
956
+ y: F,
830
957
  query: {
831
- ...h.query,
832
- where: `${e}=${g === ht.String && x !== null ? `'${x}'` : x}`,
833
- outStatistics: a !== q.NoAggregation ? [
958
+ ...x.query,
959
+ where: `${e}=${u === Oe.String && g !== null ? `'${g}'` : g}`,
960
+ outStatistics: i !== v.NoAggregation ? [
834
961
  {
835
- ...h.query?.outStatistics?.[0] ?? {},
836
- onStatisticField: d,
837
- outStatisticFieldName: C,
838
- statisticType: a
962
+ ...x.query?.outStatistics?.[0] ?? {},
963
+ onStatisticField: m,
964
+ outStatisticFieldName: F,
965
+ statisticType: i
839
966
  }
840
967
  ] : void 0
841
968
  }
842
969
  };
843
- a === q.NoAggregation && (S.query !== void 0 && (delete S.query.outStatistics, delete S.query.groupByFieldsForStatistics), S.y = d);
844
- const I = i.series.find(
845
- (L) => String(Ce(L)).trim().replace(/'/gu, "") === k
846
- );
847
- I !== void 0 && ((b(S) && b(I) || A(S) && A(I)) && W(S, I), i.colorMatch || (O(S) && O(I) ? S.fillSymbol = I.fillSymbol : (b(S) && b(I) || A(S) && A(I)) && (S.lineSymbol = I.lineSymbol, S.markerSymbol = I.markerSymbol), u = !0), S.id = I.id, S.name = I.name, S.assignToSecondValueAxis = I.assignToSecondValueAxis), S.query && (S.query.fetchNullValues = i.series.some((L) => L.query?.fetchNullValues)), y.push(S);
970
+ d.push(X);
848
971
  }
849
- return i.colorMatch = !u, y;
972
+ return d;
850
973
  }
851
- const ri = (t) => {
974
+ const Ni = (s) => {
852
975
  const {
853
976
  xAxisFieldName: e,
854
- splitByField: s,
977
+ splitByField: t,
855
978
  numericFields: r,
856
- aggregationType: a,
857
- config: i,
979
+ aggregationType: i,
980
+ config: a,
858
981
  layerInfo: n,
859
982
  commonStrings: o,
860
- splitByFieldInfos: c
861
- } = t, { layerFieldsInfo: m } = n ?? {}, F = ft(i), l = M(i), g = m.find((B) => B.name === l), d = i.series[0].query?.fetchNullValues, y = "nullCategory" in i.series?.[0] ? i.series[0].nullCategory : void 0, u = i.series[0]?.query === void 0, p = m.find((B) => B.name === e), x = _(i, n, o), C = ve(i, n, o), h = Pt(i, n);
862
- let f = Fe(i);
863
- const k = i.series.some((B) => O(B)), T = gt(i.series), S = pt(i.series), I = ne(i), L = {};
864
- I && (L.classBreaksRules = i.series[0]?.classBreaksRules, L.xTemporalBinning = i.series[0]?.xTemporalBinning, L.yTemporalBinning = i.series[0]?.yTemporalBinning, L.emptyCells = i.series[0]?.emptyCells, L.nullPolicy = i.nullPolicy);
865
- let Z = !1;
866
- if (et(p) ? f = pe() : !ye(g) && ye(p) ? f = fe() : !K(g) && K(p) ? (f = fe(), Z = !0) : K(g) && !K(p) && (k ? f = pe() : f = yt(), Z = !0), f !== void 0 && Ve(i, o, f), F === 0 && (i.series = [
867
- Y({ config: i, xAxisField: e, aggregationType: a, layerInfo: n, commonStrings: o })
868
- ]), i.series.forEach((B) => {
869
- B.x = e, B.query !== void 0 && (B.query.groupByFieldsForStatistics = [e]);
870
- }), s === "" || r.length > 1 ? Te({
983
+ splitByFieldInfos: l
984
+ } = s, { layerFieldsInfo: c } = n ?? {}, p = J(a), f = Rt(a), u = P(p), m = c.find((x) => x.name === u), d = a.series[0]?.query === void 0, y = c.find((x) => x.name === e), g = ne(p, n, o), F = $e(p, n, o), h = ds({ config: p, layerInfo: n, commonStrings: o });
985
+ let S = Le(a);
986
+ const b = p.series.some((x) => M(x)), C = pt(p.series), B = ft(p.series), A = 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) && (b ? S = ce() : S = Lt()), S !== void 0 && Xe(a, o, S), f === 0 && (a.series = [
988
+ ae({ config: a, xAxisField: e, aggregationType: i, layerInfo: n, commonStrings: o })
989
+ ]), a.series.forEach((x) => {
990
+ x.x = e, x.query !== void 0 && (x.query.groupByFieldsForStatistics = [e]);
991
+ }), t === "" || r.length > 1 ? ge({
871
992
  fieldName: e,
872
993
  numericFields: r,
873
- fieldList: m
874
- }) ? i.series = Dt({
875
- config: i,
994
+ fieldList: c
995
+ }) ? a.series = cs({
996
+ config: a,
876
997
  layerInfo: n,
877
998
  xAxisField: e,
878
999
  numericFields: r,
879
- aggregationType: a,
1000
+ aggregationType: i,
880
1001
  commonStrings: o
881
- }) : i.series = Ae({
882
- config: i,
1002
+ }) : a.series = Ee({
1003
+ config: a,
883
1004
  layerInfo: n,
884
1005
  xAxisField: e,
885
1006
  numericFields: r,
886
- aggregationType: a,
1007
+ aggregationType: i,
887
1008
  commonStrings: o
888
- }) : c && (i.series = wt({
889
- config: i,
1009
+ }) : l && (a.series = us({
1010
+ config: a,
890
1011
  layerInfo: n,
891
- splitByField: s,
1012
+ splitByField: t,
892
1013
  xAxisField: e,
893
1014
  numericFields: r,
894
- aggregationType: a,
1015
+ aggregationType: i,
895
1016
  commonStrings: o,
896
- splitByFieldInfos: c
897
- })), h && i.series[0].type !== v.HeatSeries) {
898
- const B = w(m, e);
899
- E(i, 0, B);
1017
+ splitByFieldInfos: l
1018
+ })), h && e !== U && a.series[0].type !== T.HeatSeries) {
1019
+ const x = R(c, e);
1020
+ $(a, 0, x);
900
1021
  }
901
- if (C && i.series[0].type !== v.HeatSeries) {
902
- const B = re({
903
- config: i,
1022
+ if (F && a.series[0].type !== T.HeatSeries) {
1023
+ const x = ye({
1024
+ config: a,
904
1025
  layerInfo: n,
905
1026
  commonStrings: o,
906
1027
  numericFields: r,
907
- aggregationType: a
1028
+ aggregationType: i
908
1029
  });
909
- E(i, 1, B);
1030
+ $(a, 1, x);
910
1031
  }
911
- if (x && i.title && (i.title.content.text = j(i, n, o)), N({ config: i, value: null, axisIndex: 1, isMax: !1 }), N({ config: i, value: null, axisIndex: 1, isMax: !0 }), Ot({ numericFields: r, aggregationType: a, config: i, layerInfo: n }), (T || S) && (N({ config: i, value: null, axisIndex: 0, isMax: !1 }), N({ config: i, value: null, axisIndex: 0, isMax: !0 }), Z)) {
912
- const B = f?.type === v.DateAxisFormat ? U.Null : U.Interpolate;
913
- Bt(B, i);
1032
+ if (g && a.title && (a.title.content.text = K(a, n, o)), D({ config: a, value: null, axisIndex: 1, isMax: !1 }), D({ config: a, value: null, axisIndex: 1, isMax: !0 }), 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 }), A && i !== v.NoAggregation && !Y(p))) {
1033
+ const x = q(y) ? W.Null : W.Interpolate;
1034
+ Et(x, a);
914
1035
  }
915
- I && (i.series[0].classBreaksRules = L.classBreaksRules, i.series[0].xTemporalBinning = L.xTemporalBinning, i.series[0].yTemporalBinning = L.yTemporalBinning, i.series[0].emptyCells = L.emptyCells, i.nullPolicy = L.nullPolicy), u ? i.series.forEach((B) => {
916
- delete B.query;
917
- }) : d && i.series.forEach((B) => {
918
- B.query && (B.query.fetchNullValues = d);
919
- }), y && i.series.forEach((B) => {
920
- (B.type === v.BarSeries || B.type === v.LineSeries || B.type === v.RadarSeries) && (B.nullCategory = y);
1036
+ Y(a) && Re({ commonStrings: o, config: a, layerInfo: n }), a.series.forEach((x) => {
1037
+ d && delete x.query, I(x) && x.binTemporalData === void 0 && y?.type === Oe.TimeOnly && (x.binTemporalData = !1);
921
1038
  });
922
- }, W = (t, e) => {
923
- t.markerVisible = e.markerVisible, t.lineSmoothed = e.lineSmoothed, t.showArea = e.showArea, t.areaColor = e.areaColor, t.stackNegativeValuesToBaseline = e.stackNegativeValuesToBaseline, e.lineSymbol && (t.lineSymbol = { ...e.lineSymbol, color: t.lineSymbol?.color }), e.markerSymbol && (t.markerSymbol = {
1039
+ }, Me = (s, e) => {
1040
+ s.markerVisible = e.markerVisible, s.lineSmoothed = e.lineSmoothed, s.showArea = e.showArea, s.areaColor = e.areaColor, s.stackNegativeValuesToBaseline = e.stackNegativeValuesToBaseline, e.lineSymbol && (s.lineSymbol = { ...e.lineSymbol, color: s.lineSymbol?.color }), e.markerSymbol && (s.markerSymbol = {
924
1041
  ...e.markerSymbol,
925
- color: t.markerSymbol?.color
1042
+ color: s.markerSymbol?.color
926
1043
  });
927
- }, li = (t) => {
928
- const { config: e, seriesIndex: s, layerInfo: r, commonStrings: a } = t, i = e.series?.[s], n = ue(e);
1044
+ }, Oi = (s) => {
1045
+ const { config: e, seriesIndex: t, layerInfo: r, commonStrings: i } = s, a = e.series?.[t], n = re(e);
929
1046
  let o;
930
- if (X(e.series) === D.BarAndLineFromFields)
931
- o = a.axisLabels.values;
932
- else if (Ie(n)) {
933
- const m = i.query?.outStatistics?.[0]?.onStatisticField;
934
- m !== void 0 && m !== H(r.layer).idField && (o = w(r.layerFieldsInfo, m));
1047
+ if (ee(e.series) === w.BarAndLineFromFields)
1048
+ o = i.axisLabels.values;
1049
+ else if (Ye(n)) {
1050
+ const c = a.query?.outStatistics?.[0]?.onStatisticField;
1051
+ c !== void 0 && c !== j(r.layer).idField && (o = R(r.layerFieldsInfo, c));
935
1052
  } else {
936
- const m = String(Ce(i)).trim().replace(/'/gu, "");
937
- o = he({
1053
+ const c = String(qe(a)).trim().replace(/'/gu, "");
1054
+ o = Ne({
938
1055
  queryObject: r.layer,
939
1056
  fieldName: n,
940
- fieldValue: m ?? ""
941
- }) ?? m;
1057
+ fieldValue: c ?? ""
1058
+ }) ?? c;
942
1059
  }
943
- return o ?? i.id;
944
- }, ni = (t, e) => {
945
- if (ne(e))
946
- Rt(t, e);
1060
+ return o ?? a.id;
1061
+ }, Vi = (s, e) => {
1062
+ if (Y(e))
1063
+ ss(s, e);
947
1064
  else {
948
1065
  e.orderOptions ??= {};
949
- const s = e.orderOptions?.data?.orderType;
950
- ie(e)[0] === J.customSort && s === V.Category && (e.orderOptions.data = {
951
- orderType: V.Category,
952
- orderBy: [...t]
1066
+ const t = e.orderOptions?.data?.orderType;
1067
+ de(e)[0] === oe.customSort && t === L.Category && (e.orderOptions.data = {
1068
+ orderType: L.Category,
1069
+ orderBy: [...s]
953
1070
  });
954
1071
  }
955
- }, oi = async (t) => {
956
- const { config: e, layerInfo: s, errorStrings: r } = t, a = M(e), i = Fe(e)?.type, n = G(e), o = X(e.series);
957
- let c = [];
958
- return i === v.CategoryAxisFormat && (o === D.BarAndLineFromFields || a === ee ? c = n.map((m) => w(s?.layerFieldsInfo, m)) : a.trim() !== "" && a !== ee && s !== void 0 && (c = await qe({
959
- layerInfo: s,
1072
+ }, ki = async (s) => {
1073
+ const { config: e, layerInfo: t, errorStrings: r } = s, i = P(e), a = Le(e)?.type, n = Z(e), o = ee(e.series);
1074
+ let l = [];
1075
+ return a === T.CategoryAxisFormat && (o === w.BarAndLineFromFields || i === U ? l = n.map((c) => R(t?.layerFieldsInfo, c)) : i.trim() !== "" && i !== U && t !== void 0 && (l = await He({
1076
+ layerInfo: t,
960
1077
  config: e,
961
- category: a,
1078
+ category: i,
962
1079
  errorStrings: r
963
- }))), c;
1080
+ }))), l;
964
1081
  };
965
- function _(t, e, s) {
966
- const r = j(t, e, s), a = St(t), i = z(t);
967
- return r === a || i;
1082
+ function ne(s, e, t) {
1083
+ const r = K(s, e, t), i = qt(s), a = se(s);
1084
+ return r === i || a;
968
1085
  }
969
- function ve(t, e, s) {
970
- const r = re({
971
- config: t,
1086
+ function $e(s, e, t) {
1087
+ const r = ye({
1088
+ config: s,
972
1089
  layerInfo: e,
973
- commonStrings: s,
974
- numericFields: G(t),
975
- aggregationType: be(t)
976
- }), a = oe(1, t), i = z(t);
977
- return r === a || i;
1090
+ commonStrings: t,
1091
+ numericFields: Z(s),
1092
+ aggregationType: we(s)
1093
+ }), i = ie(1, s), a = se(s);
1094
+ return r === i || a;
978
1095
  }
979
- function Pt(t, e) {
980
- const s = w(e.layerFieldsInfo, M(t)), r = oe(0, t), a = z(t);
981
- return s === r || a;
1096
+ function ds(s) {
1097
+ const { config: e, layerInfo: t, commonStrings: r } = s, i = R(t.layerFieldsInfo, P(e)), a = ie(0, e), n = se(e), o = P(e) === U && (a === "" || a === r.xAxis);
1098
+ return i === a || n || o;
982
1099
  }
983
- function ui(t) {
984
- return R(t.series[0]) ? t.series[0].binTemporalData ?? !0 : !1;
1100
+ function Ri(s) {
1101
+ return I(s.series[0]) ? s.series[0].binTemporalData ?? !0 : !1;
985
1102
  }
986
- function ci(t, e) {
987
- e?.series.forEach((s) => {
988
- (s?.type === v.BarSeries || s?.type === v.LineSeries) && (s.binTemporalData = t, t ? s.temporalBinning = {
989
- unit: te.Day,
1103
+ function qi(s, e) {
1104
+ e?.series.forEach((t) => {
1105
+ I(t) && (t.binTemporalData = s, s ? t.temporalBinning = {
1106
+ unit: le.Day,
990
1107
  size: 0,
991
- timeAggregationType: at.Start,
1108
+ timeAggregationType: ht.Start,
992
1109
  trimIncompleteTimeInterval: !0,
993
- nullPolicy: U.Null
994
- } : delete s.temporalBinning);
1110
+ nullPolicy: W.Null
1111
+ } : delete t.temporalBinning);
995
1112
  });
996
1113
  }
997
1114
  export {
998
- hs as $,
999
- ni as A,
1000
- ri as B,
1001
- ui as C,
1002
- ci as D,
1003
- j as E,
1004
- Nt as F,
1005
- Bs as G,
1006
- Ks as H,
1007
- Us as I,
1008
- bs as J,
1009
- Cs as K,
1010
- vs as L,
1011
- As as M,
1012
- Qs as N,
1115
+ Gs as $,
1116
+ ki as A,
1117
+ Vi as B,
1118
+ Ni as C,
1119
+ Ri as D,
1120
+ qi as E,
1121
+ K as F,
1122
+ Re as G,
1123
+ Jt as H,
1124
+ _s as I,
1125
+ Si as J,
1126
+ Fi as K,
1127
+ es as L,
1128
+ Qs as M,
1129
+ ts as N,
1013
1130
  zs as O,
1014
- Gs as P,
1015
- _s as Q,
1016
- ei as R,
1017
- ti as S,
1018
- si as T,
1019
- ii as U,
1020
- fs as V,
1021
- Ss as W,
1022
- Ls as X,
1023
- Is as Y,
1024
- Vs as Z,
1025
- qs as _,
1026
- ys as a,
1027
- Fs as a0,
1028
- xs as a1,
1029
- Ts as a2,
1030
- ks as a3,
1031
- Os as a4,
1032
- Ds as a5,
1033
- ws as a6,
1034
- Rs as a7,
1035
- Ns as a8,
1036
- Ps as a9,
1037
- kt as aa,
1038
- Es as ab,
1039
- Ms as ac,
1040
- $s as ad,
1041
- Ys as ae,
1042
- Ws as af,
1043
- Xs as ag,
1044
- Js as ah,
1045
- Zs as ai,
1046
- Hs as aj,
1047
- js as ak,
1048
- us as b,
1049
- cs as c,
1050
- G as d,
1051
- ue as e,
1052
- ps as f,
1053
- be as g,
1054
- li as h,
1055
- ms as i,
1056
- ts as j,
1057
- Tt as k,
1058
- rs as l,
1059
- ss as m,
1060
- ls as n,
1061
- is as o,
1062
- gs as p,
1063
- ns as q,
1064
- Ct as r,
1065
- xt as s,
1066
- as as t,
1067
- ds as u,
1068
- Bt as v,
1069
- os as w,
1070
- ai as x,
1071
- ie as y,
1072
- oi as z
1131
+ xi as P,
1132
+ hi as Q,
1133
+ Ti as R,
1134
+ Bi as S,
1135
+ Ai as T,
1136
+ vi as U,
1137
+ Ii as V,
1138
+ Xt as W,
1139
+ Li as X,
1140
+ Hs as Y,
1141
+ Xs as Z,
1142
+ Js as _,
1143
+ Ms as a,
1144
+ ti as a0,
1145
+ ei as a1,
1146
+ js as a2,
1147
+ Us as a3,
1148
+ Zs as a4,
1149
+ Ks as a5,
1150
+ ai as a6,
1151
+ ri as a7,
1152
+ ni as a8,
1153
+ oi as a9,
1154
+ ii as aa,
1155
+ si as ab,
1156
+ li as ac,
1157
+ is as ad,
1158
+ ci as ae,
1159
+ ui as af,
1160
+ di as ag,
1161
+ yi as ah,
1162
+ mi as ai,
1163
+ gi as aj,
1164
+ bi as ak,
1165
+ Ci as al,
1166
+ pi as am,
1167
+ fi as an,
1168
+ ws as b,
1169
+ Ps as c,
1170
+ Z as d,
1171
+ re as e,
1172
+ Ws as f,
1173
+ we as g,
1174
+ Oi as h,
1175
+ $s as i,
1176
+ Ds as j,
1177
+ Pt as k,
1178
+ wt as l,
1179
+ ks as m,
1180
+ Ns as n,
1181
+ Rs as o,
1182
+ Ys as p,
1183
+ Os as q,
1184
+ Ut as r,
1185
+ ke as s,
1186
+ qs as t,
1187
+ Es as u,
1188
+ Vs as v,
1189
+ Et as w,
1190
+ Mt as x,
1191
+ Di as y,
1192
+ de as z
1073
1193
  };