@arcgis/charts-components 5.2.0-next.9 → 5.2.0-next.90

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 (482) hide show
  1. package/LICENSE.md +4 -2
  2. package/README.md +2 -2
  3. package/dist/cdn/{YJ6TRXMU.js → 24MSASQQ.js} +1 -1
  4. package/dist/cdn/2B4DKL3R.js +2 -0
  5. package/dist/cdn/{4USHOYLT.js → 2BE3GYK4.js} +1 -1
  6. package/dist/cdn/{VY3KBD6N.js → 2YDNWOWT.js} +1 -1
  7. package/dist/cdn/3HG6OEAW.js +2 -0
  8. package/dist/cdn/3K7H52Y5.js +2 -0
  9. package/dist/cdn/{Y7HBWU3M.js → 3ZKNY2GI.js} +1 -1
  10. package/dist/cdn/{IYA7HQMS.js → 3ZNZH5XV.js} +1 -1
  11. package/dist/cdn/44ICH2UX.js +2 -0
  12. package/dist/cdn/4A42J7HF.js +2 -0
  13. package/dist/cdn/{CHLE2QGU.js → 4DXGXATO.js} +1 -1
  14. package/dist/cdn/{3TZEMBXR.js → 4EWMZYXM.js} +1 -1
  15. package/dist/cdn/{TFPQDMER.js → 4JBUJYUG.js} +1 -1
  16. package/dist/cdn/4JMHK7HK.js +2 -0
  17. package/dist/cdn/{WASEMNYV.js → 4JWNKQ22.js} +1 -1
  18. package/dist/cdn/4O4L6CM3.js +2 -0
  19. package/dist/cdn/4QQRIMTI.js +2 -0
  20. package/dist/cdn/4VW736DF.js +2 -0
  21. package/dist/cdn/54LUEUIT.js +2 -0
  22. package/dist/cdn/57PMXO2G.js +2 -0
  23. package/dist/cdn/{H2A5GZ55.js → 5D2QRMC6.js} +1 -1
  24. package/dist/cdn/{XY4TRZCG.js → 5JV6PU34.js} +1 -1
  25. package/dist/cdn/{LUSFGRHV.js → 5WIR3JWC.js} +1 -1
  26. package/dist/cdn/5YBMIR4F.js +2 -0
  27. package/dist/cdn/62GSQDTE.js +2 -0
  28. package/dist/cdn/{VT4WJZN6.js → 64B7ILJI.js} +1 -1
  29. package/dist/cdn/65HVRSR6.js +2 -0
  30. package/dist/cdn/6K6Z6CQE.js +2 -0
  31. package/dist/cdn/{7LYAWWOE.js → 6WKTHJQK.js} +1 -1
  32. package/dist/cdn/73DFT5MR.js +2 -0
  33. package/dist/cdn/{II2ZPEUZ.js → 7C2LVFNV.js} +1 -1
  34. package/dist/cdn/{4Z23HWDH.js → 7COM5REK.js} +1 -1
  35. package/dist/cdn/7HANUCEA.js +2 -0
  36. package/dist/cdn/{OJ5X6I3H.js → ADI63OO7.js} +1 -1
  37. package/dist/cdn/{5SIAOUPO.js → AI2WUG3K.js} +1 -1
  38. package/dist/cdn/{XYKXBWIT.js → AKEVK6VK.js} +1 -1
  39. package/dist/cdn/{TXB2I2U5.js → B2SUC7VR.js} +1 -1
  40. package/dist/cdn/{AASL4RKT.js → B4HOQOHS.js} +1 -1
  41. package/dist/cdn/{TACQVUBU.js → BDEDEGCZ.js} +1 -1
  42. package/dist/cdn/{MK5ZYSOD.js → BG4CYK7C.js} +1 -1
  43. package/dist/cdn/BHJHX65O.js +2 -0
  44. package/dist/cdn/{CNFBNAPJ.js → BK7DHYA7.js} +1 -1
  45. package/dist/cdn/BYSUABOV.js +2 -0
  46. package/dist/cdn/BZEYWH2F.js +2 -0
  47. package/dist/cdn/BZIGQJAH.js +2 -0
  48. package/dist/cdn/{S3ZSZXYG.js → C6UUBWI2.js} +1 -1
  49. package/dist/cdn/CDWFPVYG.js +2 -0
  50. package/dist/cdn/{FWAXKDYV.js → CHHARRJP.js} +1 -1
  51. package/dist/cdn/{2GJX5OO6.js → CKRZTUGB.js} +1 -1
  52. package/dist/cdn/COSE26XR.js +2 -0
  53. package/dist/cdn/CPDE3ZSY.js +2 -0
  54. package/dist/cdn/{ZFJFTDJF.js → CYGMXV56.js} +1 -1
  55. package/dist/cdn/{FOYOG3G7.js → D3ZXHZRV.js} +1 -1
  56. package/dist/cdn/D5O2M65G.js +2 -0
  57. package/dist/cdn/D7LBGWWL.js +2 -0
  58. package/dist/cdn/{ULWJ57VT.js → DF2SKHUD.js} +1 -1
  59. package/dist/cdn/DLCJMSYG.js +2 -0
  60. package/dist/cdn/DOE5S7EP.js +2 -0
  61. package/dist/cdn/{WAINRCCJ.js → E45CPXW6.js} +1 -1
  62. package/dist/cdn/EFXNPF4V.js +2 -0
  63. package/dist/cdn/ELNZ7PTF.js +2 -0
  64. package/dist/cdn/{J5NHXQLA.js → EQZBQP5A.js} +1 -1
  65. package/dist/cdn/{N5ZUO6F3.js → ESBQKSZF.js} +1 -1
  66. package/dist/cdn/F66W272X.js +2 -0
  67. package/dist/cdn/F6VXAPTT.js +2 -0
  68. package/dist/cdn/{3JYZJUOM.js → FPM6WDQ4.js} +1 -1
  69. package/dist/cdn/{SSQ3VCZ2.js → FXBSBXWY.js} +1 -1
  70. package/dist/cdn/{H3EXGCE7.js → G7W2RL4I.js} +1 -1
  71. package/dist/cdn/GK6IJBRW.js +2 -0
  72. package/dist/cdn/GUMN6KPP.js +2 -0
  73. package/dist/cdn/{73BVFUAA.js → GUWBPR2H.js} +1 -1
  74. package/dist/cdn/GVJF3VFV.js +2 -0
  75. package/dist/cdn/{CHQDKVVQ.js → H2NVXIPH.js} +2 -2
  76. package/dist/cdn/H4R2P2BO.js +2 -0
  77. package/dist/cdn/HIVJRWLF.js +2 -0
  78. package/dist/cdn/{UYXCGSXU.js → HPNWQANQ.js} +1 -1
  79. package/dist/cdn/{UT4TYXFO.js → HSIYQNVK.js} +1 -1
  80. package/dist/cdn/{ANN3O54W.js → HVWOLFLT.js} +1 -1
  81. package/dist/cdn/HZEGDF6W.js +2 -0
  82. package/dist/cdn/{AZOBLYAP.js → I2BM5KSH.js} +1 -1
  83. package/dist/cdn/{7QXRWMUN.js → IBLGAXGT.js} +1 -1
  84. package/dist/cdn/{LROW4Y6O.js → IC7XUYKD.js} +1 -1
  85. package/dist/cdn/{JQKRGUBU.js → IDAOLPMA.js} +1 -1
  86. package/dist/cdn/IGE2Z7GO.js +2 -0
  87. package/dist/cdn/IHDWXIBS.js +3 -0
  88. package/dist/cdn/IIV6X3KV.js +2 -0
  89. package/dist/cdn/{RSNZMJ6I.js → IUZFB3JE.js} +1 -1
  90. package/dist/cdn/JSPNXGH3.js +2 -0
  91. package/dist/cdn/JXAPOWHG.js +2 -0
  92. package/dist/cdn/{RCK5VONL.js → KAUOH4F3.js} +1 -1
  93. package/dist/cdn/KHC2DMSU.js +2 -0
  94. package/dist/cdn/{PRFJNHPS.js → KHWZ54IX.js} +1 -1
  95. package/dist/cdn/{N4L5KE23.js → KIIS7OLN.js} +1 -1
  96. package/dist/cdn/KJAMXKR3.js +2 -0
  97. package/dist/cdn/{D3CFPMAR.js → KOY5DWSR.js} +1 -1
  98. package/dist/cdn/KPEBWOLJ.js +2 -0
  99. package/dist/cdn/KQUI4CT6.js +2 -0
  100. package/dist/cdn/KVWM73YN.js +2 -0
  101. package/dist/cdn/KYCNUCTQ.js +2 -0
  102. package/dist/cdn/KZ4SCRQT.js +2 -0
  103. package/dist/cdn/KZSCAJDG.js +2 -0
  104. package/dist/cdn/L5JZ5COY.js +2 -0
  105. package/dist/cdn/L6IM34J7.js +2 -0
  106. package/dist/cdn/{AY6IOQ3H.js → LAEUROZM.js} +1 -1
  107. package/dist/cdn/LCJVASMQ.js +2 -0
  108. package/dist/cdn/{QR2OOC4D.js → LCRLYOX6.js} +1 -1
  109. package/dist/cdn/LJJPOUVA.js +2 -0
  110. package/dist/cdn/LKC6J4IQ.js +2 -0
  111. package/dist/cdn/LU7UO6PR.js +2 -0
  112. package/dist/cdn/LZ3ZRY2F.js +2 -0
  113. package/dist/cdn/{YKDW7ZW3.js → MCWIIGOW.js} +1 -1
  114. package/dist/cdn/MF2ZBHWI.js +2 -0
  115. package/dist/cdn/MTFWTSTG.js +2 -0
  116. package/dist/cdn/{BDGHBTPU.js → MW6VSJEF.js} +1 -1
  117. package/dist/cdn/{JRN2TZSV.js → N4XXKTCN.js} +1 -1
  118. package/dist/cdn/NGGJIQHT.js +2 -0
  119. package/dist/cdn/{XG2KN6YJ.js → NKPZCF5U.js} +1 -1
  120. package/dist/cdn/{VE3GFNNM.js → NRXCKYYY.js} +1 -1
  121. package/dist/cdn/{4C6KWLWN.js → NWLNHFHJ.js} +1 -1
  122. package/dist/cdn/NYR4K242.js +2 -0
  123. package/dist/cdn/OCT2KA4Q.js +2 -0
  124. package/dist/cdn/{NAXNRCMZ.js → OD2NWPCL.js} +1 -1
  125. package/dist/cdn/{4ZIZEJXS.js → OISERMTF.js} +1 -1
  126. package/dist/cdn/{ETOGNYFU.js → OKAZOAYZ.js} +1 -1
  127. package/dist/cdn/OPMACXLA.js +2 -0
  128. package/dist/cdn/{VRZ2SY6M.js → OQFM5DBD.js} +1 -1
  129. package/dist/cdn/OQQIDPDH.js +2 -0
  130. package/dist/cdn/{C5K6XOCR.js → P37JASN4.js} +1 -1
  131. package/dist/cdn/{KDJ5RVHA.js → P3AYFJRV.js} +1 -1
  132. package/dist/cdn/{244ZX2UP.js → P5I5RQTN.js} +1 -1
  133. package/dist/cdn/{BJ7Q7LCT.js → PIZPF2BH.js} +1 -1
  134. package/dist/cdn/{4OH4NSIW.js → PSQDO4QK.js} +1 -1
  135. package/dist/cdn/PWJBGZPW.js +2 -0
  136. package/dist/cdn/{2OHFSVV5.js → PWSEK3XV.js} +1 -1
  137. package/dist/cdn/QBBUOEKF.js +4 -0
  138. package/dist/cdn/QFXCVZYG.js +2 -0
  139. package/dist/cdn/QIBUTVUN.js +2 -0
  140. package/dist/cdn/{7UQHB6KY.js → QIG5H6WA.js} +1 -1
  141. package/dist/cdn/{XMPLEHTW.js → QKZK6MTN.js} +1 -1
  142. package/dist/cdn/{X2LW7GTR.js → QOQ5QNZV.js} +1 -1
  143. package/dist/cdn/QVLDIB2N.js +2 -0
  144. package/dist/cdn/QYRHZJH3.js +2 -0
  145. package/dist/cdn/RAJO727X.js +2 -0
  146. package/dist/cdn/RCAJJ24P.js +2 -0
  147. package/dist/cdn/RPUEIRTH.js +2 -0
  148. package/dist/cdn/SBJGOYJL.js +2 -0
  149. package/dist/cdn/SBZKGQBV.js +2 -0
  150. package/dist/cdn/SJBJ2N5C.js +104 -0
  151. package/dist/cdn/{OXYJKZEP.js → SLQPIX6X.js} +1 -1
  152. package/dist/cdn/SMTDJE55.js +2 -0
  153. package/dist/cdn/SOR4DYKA.js +2 -0
  154. package/dist/cdn/SQHEWY2J.js +2 -0
  155. package/dist/cdn/{DNTLH5RT.js → SSOL6PCL.js} +1 -1
  156. package/dist/cdn/SZNZAD56.js +2 -0
  157. package/dist/cdn/{ZBIVDGNH.js → SZXVQMQV.js} +1 -1
  158. package/dist/cdn/{ZYOWZCR7.js → TB7JE5XK.js} +1 -1
  159. package/dist/cdn/{AK7X7SGI.js → TENIFMA5.js} +1 -1
  160. package/dist/cdn/{WMPWOPRZ.js → TRAVRA3M.js} +1 -1
  161. package/dist/cdn/{VDKFC44J.js → TVKP2GAI.js} +1 -1
  162. package/dist/cdn/{P5AO3V3M.js → UD724V36.js} +1 -1
  163. package/dist/cdn/ULF3LG3W.js +2 -0
  164. package/dist/cdn/{DSIFL2DF.js → UQSD6YZM.js} +1 -1
  165. package/dist/cdn/{Q7J7EKQW.js → UUVJGPFG.js} +1 -1
  166. package/dist/cdn/UZHQF5CV.js +2 -0
  167. package/dist/cdn/VBDLVCPP.js +2 -0
  168. package/dist/cdn/VCBFPEET.js +2 -0
  169. package/dist/cdn/{ZQDADGLQ.js → VLCUXTLC.js} +1 -1
  170. package/dist/cdn/{I6UPUSLQ.js → VQLXOQMY.js} +1 -1
  171. package/dist/cdn/VQU2TVX7.js +3 -0
  172. package/dist/cdn/VVOQ4Q2X.js +2 -0
  173. package/dist/cdn/{Y6ZCTPJW.js → WJY4AWHX.js} +1 -1
  174. package/dist/cdn/{L47EGLUH.js → WNDLNCF7.js} +1 -1
  175. package/dist/cdn/WOGALV3T.js +2 -0
  176. package/dist/cdn/{ZAHVBXAQ.js → WPLJ5BXE.js} +1 -1
  177. package/dist/cdn/WTABMFFY.js +2 -0
  178. package/dist/cdn/{6B7JCDQC.js → WTF2PFHV.js} +1 -1
  179. package/dist/cdn/XW5I2M45.js +2 -0
  180. package/dist/cdn/XYJJ2PIL.js +2 -0
  181. package/dist/cdn/{BXYNEUQY.js → YCQLYXH4.js} +1 -1
  182. package/dist/cdn/{SERX6V5M.js → YNED6356.js} +1 -1
  183. package/dist/cdn/YOUTTWJN.js +2 -0
  184. package/dist/cdn/YQL5A2WS.js +2 -0
  185. package/dist/cdn/YX7WAUQZ.js +2 -0
  186. package/dist/cdn/{XDMGH7YU.js → YZCWFNPW.js} +1 -1
  187. package/dist/cdn/Z4ZXC4GO.js +45 -0
  188. package/dist/cdn/{2XXW3WF3.js → ZEQF2W7Y.js} +1 -1
  189. package/dist/cdn/ZFHU5I2O.js +2 -0
  190. package/dist/cdn/{5ZGALYWZ.js → ZLCRTIQH.js} +1 -1
  191. package/dist/cdn/{GQ3TDTO5.js → ZO4GRLG6.js} +1 -1
  192. package/dist/cdn/{OFWEHJDH.js → ZYK4DWCN.js} +1 -1
  193. package/dist/cdn/{TYUVXRBO.js → ZZHKDFTA.js} +1 -1
  194. package/dist/cdn/assets/charts-config-view-charts/t9n/messages.en.json +1 -1
  195. package/dist/cdn/assets/common/t9n/messages.en.json +1 -1
  196. package/dist/cdn/index.js +1 -1
  197. package/dist/cdn/main.css +1 -1
  198. package/dist/cdn/model/shared/setup-utils.js +1 -1
  199. package/dist/chart-rendering/common/interfaces.d.ts +46 -20
  200. package/dist/chunks/{type-guards3.js → action-bar-utils.js} +37 -45
  201. package/dist/chunks/axis-lines-symbol.js +7 -7
  202. package/dist/chunks/bar-chart-model.js +46 -38
  203. package/dist/chunks/box-plot-data.js +291 -274
  204. package/dist/chunks/box-plot-model.js +143 -130
  205. package/dist/chunks/chart-model.js +194 -153
  206. package/dist/chunks/chart-object-literals.js +26 -25
  207. package/dist/chunks/chart-ui-utils.js +148 -66
  208. package/dist/chunks/chart-ui-utils2.js +68 -149
  209. package/dist/chunks/class-breaks.js +30 -30
  210. package/dist/chunks/combo-bar-line-chart-model.js +122 -101
  211. package/dist/chunks/data-labels-symbol.js +39 -24
  212. package/dist/chunks/data-labels-visibility.js +8 -8
  213. package/dist/chunks/data.js +68 -68
  214. package/dist/chunks/default.js +6 -6
  215. package/dist/chunks/gauge-model.js +61 -61
  216. package/dist/chunks/generate-x-axis-title.js +15 -15
  217. package/dist/chunks/heat-chart-model.js +95 -66
  218. package/dist/chunks/histogram-data.js +23 -23
  219. package/dist/chunks/histogram-model.js +9 -9
  220. package/dist/chunks/index.js +9401 -1079
  221. package/dist/chunks/index2.js +851 -8751
  222. package/dist/chunks/index3.js +1169 -847
  223. package/dist/chunks/index4.js +467 -250
  224. package/dist/chunks/index5.js +63 -100
  225. package/dist/chunks/interfaces.js +9 -9
  226. package/dist/chunks/line-chart-model.js +40 -24
  227. package/dist/chunks/model-setter.js +59 -64
  228. package/dist/chunks/model-types.js +1 -1
  229. package/dist/chunks/model-with-line-marker-styling.js +72 -47
  230. package/dist/chunks/model-with-y-guides.js +52 -67
  231. package/dist/chunks/negative-values-stacked-to-baseline.js +122 -71
  232. package/dist/chunks/pie-chart-data.js +175 -193
  233. package/dist/chunks/pie-chart-model.js +388 -320
  234. package/dist/chunks/radar-chart-model.js +413 -46
  235. package/dist/chunks/resource.js +1 -1
  236. package/dist/chunks/rest-js-object-literals.js +10 -10
  237. package/dist/chunks/rotated-state.js +1 -1
  238. package/dist/chunks/rounded-corners.js +90 -0
  239. package/dist/chunks/scatterplot-model.js +12 -12
  240. package/dist/chunks/serial-chart-data.js +869 -746
  241. package/dist/chunks/serial-chart-model.js +145 -123
  242. package/dist/chunks/series-length.js +17 -17
  243. package/dist/chunks/series-types.js +22 -18
  244. package/dist/chunks/series.js +1 -1
  245. package/dist/chunks/type-guards.js +49 -23
  246. package/dist/chunks/type-guards2.js +61 -52
  247. package/dist/chunks/utils.js +101 -91
  248. package/dist/chunks/utils2.js +9 -9
  249. package/dist/chunks/web-component-utils.js +591 -540
  250. package/dist/chunks/x-bounds.js +98 -97
  251. package/dist/components/arcgis-chart/customElement.d.ts +611 -234
  252. package/dist/components/arcgis-chart/customElement.js +10450 -10103
  253. package/dist/components/arcgis-charts-action-bar/customElement.d.ts +8 -0
  254. package/dist/components/arcgis-charts-action-bar/customElement.js +34 -31
  255. package/dist/components/arcgis-charts-config-axis/customElement.js +70 -64
  256. package/dist/components/arcgis-charts-config-bar-chart/customElement.js +39 -33
  257. package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +29 -29
  258. package/dist/components/arcgis-charts-config-bar-chart-data/index.js +1 -1
  259. package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +35 -37
  260. package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +44 -43
  261. package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +13 -15
  262. package/dist/components/arcgis-charts-config-box-plot/customElement.js +31 -39
  263. package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +16 -16
  264. package/dist/components/arcgis-charts-config-box-plot-data/index.js +1 -1
  265. package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +26 -28
  266. package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +4 -4
  267. package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +14 -17
  268. package/dist/components/arcgis-charts-config-category-format/customElement.js +1 -1
  269. package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +18 -20
  270. package/dist/components/arcgis-charts-config-color-style/customElement.js +1 -1
  271. package/dist/components/arcgis-charts-config-colors/customElement.js +1 -1
  272. package/dist/components/arcgis-charts-config-create-flow/customElement.js +243 -229
  273. package/dist/components/arcgis-charts-config-field-picker/customElement.js +30 -0
  274. package/dist/components/arcgis-charts-config-font-style/customElement.js +4 -4
  275. package/dist/components/arcgis-charts-config-format/customElement.js +94 -87
  276. package/dist/components/arcgis-charts-config-format-popover/customElement.js +8 -11
  277. package/dist/components/arcgis-charts-config-general/customElement.js +3 -3
  278. package/dist/components/arcgis-charts-config-guide/customElement.js +23 -24
  279. package/dist/components/arcgis-charts-config-guide-popover/customElement.js +10 -13
  280. package/dist/components/arcgis-charts-config-guides/customElement.js +1 -1
  281. package/dist/components/arcgis-charts-config-heat-chart/customElement.js +12 -13
  282. package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +65 -77
  283. package/dist/components/arcgis-charts-config-heat-chart-data/index.js +1 -1
  284. package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +57 -58
  285. package/dist/components/arcgis-charts-config-histogram/customElement.js +27 -23
  286. package/dist/components/arcgis-charts-config-histogram-data/customElement.js +28 -28
  287. package/dist/components/arcgis-charts-config-histogram-data/index.js +1 -1
  288. package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +35 -36
  289. package/dist/components/arcgis-charts-config-invalid-input-message/customElement.js +1 -1
  290. package/dist/components/arcgis-charts-config-line-chart/customElement.js +5 -6
  291. package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +19 -19
  292. package/dist/components/arcgis-charts-config-line-chart-data/index.js +1 -1
  293. package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +42 -44
  294. package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +8 -8
  295. package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +7 -8
  296. package/dist/components/arcgis-charts-config-line-style/customElement.js +2 -2
  297. package/dist/components/arcgis-charts-config-number-format/customElement.js +1 -1
  298. package/dist/components/arcgis-charts-config-pie-chart/customElement.js +5 -6
  299. package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +41 -48
  300. package/dist/components/arcgis-charts-config-pie-chart-data/index.js +1 -1
  301. package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +56 -57
  302. package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +66 -67
  303. package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +7 -10
  304. package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +27 -23
  305. package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +15 -15
  306. package/dist/components/arcgis-charts-config-scatter-plot-data/index.js +1 -1
  307. package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +18 -19
  308. package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +9 -11
  309. package/dist/components/arcgis-charts-config-view-charts/customElement.js +57 -26
  310. package/dist/components/arcgis-charts-info-modal/customElement.js +7 -7
  311. package/dist/docs/api.json +1 -1
  312. package/dist/docs/docs.json +1 -1
  313. package/dist/docs/vscode.html-custom-data.json +1 -1
  314. package/dist/docs/web-types.json +1 -1
  315. package/dist/index.d.ts +1 -1
  316. package/dist/index.js +488 -466
  317. package/dist/interfaces.d.ts +57 -14
  318. package/dist/json-schema/index.d.ts +211 -6
  319. package/dist/loader.js +2 -2
  320. package/dist/model/bar-chart-model/bar-chart-model.d.ts +6 -4
  321. package/dist/model/box-plot-model/box-plot-model.d.ts +11 -5
  322. package/dist/model/chart-model/chart-model-base.d.ts +10 -0
  323. package/dist/model/chart-model/chart-model-wrapper.d.ts +24 -0
  324. package/dist/model/chart-model/chart-model.d.ts +2 -1
  325. package/dist/model/combo-bar-line-chart-model/combo-bar-line-chart-model.d.ts +33 -21
  326. package/dist/model/heat-chart-model/heat-chart-model.d.ts +41 -8
  327. package/dist/model/interfaces/chart-interfaces.d.ts +2 -2
  328. package/dist/model/interfaces/common.d.ts +0 -2
  329. package/dist/model/mixins/model-with-guides.d.ts +1 -1
  330. package/dist/model/mixins/model-with-line-marker-styling.d.ts +28 -19
  331. package/dist/model/mixins/model-with-multi-axes.d.ts +62 -99
  332. package/dist/model/pie-chart-model/pie-chart-legend-model.d.ts +7 -55
  333. package/dist/model/pie-chart-model/pie-chart-model.d.ts +61 -2
  334. package/dist/model/properties/data-labels/data-labels-symbol.d.ts +26 -0
  335. package/dist/model/properties/data-tooltip-font-size.d.ts +20 -0
  336. package/dist/model/properties/rounded-corners.d.ts +18 -0
  337. package/dist/model/radar-chart-model/radar-chart-model.d.ts +190 -0
  338. package/dist/model/serial-chart-model/serial-chart-model.d.ts +27 -1
  339. package/dist/model/shared/setup-utils.d.ts +3 -3
  340. package/dist/model/shared/type-guards.d.ts +38 -22
  341. package/dist/spec/chart-object-literals.d.ts +1 -0
  342. package/dist/spec/data-source.d.ts +17 -3
  343. package/dist/spec/rest-js-types.d.ts +22 -8
  344. package/dist/spec/web-chart.d.ts +42 -6
  345. package/dist/types/lumina.d.ts +1 -1
  346. package/dist/types/preact.d.ts +1 -1
  347. package/dist/types/react.d.ts +1 -1
  348. package/dist/types/stencil.d.ts +3 -3
  349. package/dist/utils/chart-config/converter/index.js +210 -191
  350. package/dist/utils/chart-config/utils/index.d.ts +30 -9
  351. package/dist/utils/chart-config/validator/index.d.ts +2 -0
  352. package/dist/utils/chart-config/validator/interfaces.d.ts +4 -3
  353. package/dist/utils/components/interfaces.d.ts +2 -0
  354. package/dist/utils/cursor/interfaces.d.ts +21 -0
  355. package/dist/utils/data/categorical-data/index.d.ts +1 -1
  356. package/dist/utils/data/index.d.ts +28 -22
  357. package/dist/utils/data/interfaces.d.ts +4 -3
  358. package/dist/utils/defaults/index.d.ts +31 -5
  359. package/dist/utils/defaults/interfaces.d.ts +73 -4
  360. package/dist/utils/errors/index.d.ts +1 -1
  361. package/dist/utils/layer/index.d.ts +26 -8
  362. package/dist/utils/layer/inline-conversion/index.d.ts +0 -3
  363. package/dist/utils/layer/inline-conversion/interfaces.d.ts +0 -2
  364. package/dist/utils/layer/interfaces.d.ts +0 -12
  365. package/dist/utils/layer/query-features/index.d.ts +8 -3
  366. package/dist/utils/layer/query-parser/index.d.ts +13 -9
  367. package/dist/utils/layer/utils/index.d.ts +22 -5
  368. package/dist/utils/localization/interfaces.d.ts +8 -0
  369. package/dist/utils/misc/index.d.ts +2 -3
  370. package/dist/utils/misc/interfaces.d.ts +1 -0
  371. package/dist/utils/type-guards/chart-types.d.ts +10 -0
  372. package/dist/utils/type-guards/series-types.d.ts +9 -2
  373. package/dist/utils/types/index.d.ts +1 -5
  374. package/package.json +8 -9
  375. package/dist/cdn/2B4S6PH2.js +0 -2
  376. package/dist/cdn/3EIVHDDK.js +0 -2
  377. package/dist/cdn/3X5JIVJJ.js +0 -3
  378. package/dist/cdn/44GWFKSR.js +0 -2
  379. package/dist/cdn/4LLOMGO7.js +0 -2
  380. package/dist/cdn/4P7S3KIY.js +0 -2
  381. package/dist/cdn/547RDEMV.js +0 -2
  382. package/dist/cdn/55UVN4AF.js +0 -4
  383. package/dist/cdn/5F54SB3S.js +0 -2
  384. package/dist/cdn/667DYS3D.js +0 -2
  385. package/dist/cdn/7DD3FFI5.js +0 -2
  386. package/dist/cdn/7LXWQH6J.js +0 -2
  387. package/dist/cdn/7TRRNFTL.js +0 -2
  388. package/dist/cdn/7XLZ42N6.js +0 -2
  389. package/dist/cdn/A5GIBV5W.js +0 -2
  390. package/dist/cdn/ADGMA3ST.js +0 -3
  391. package/dist/cdn/BBURKBKE.js +0 -2
  392. package/dist/cdn/BSP7U5YN.js +0 -58
  393. package/dist/cdn/CAGJKKOW.js +0 -2
  394. package/dist/cdn/CG6PLENK.js +0 -2
  395. package/dist/cdn/CKRMYU2S.js +0 -2
  396. package/dist/cdn/CQTLTJ52.js +0 -2
  397. package/dist/cdn/CY7GY33F.js +0 -2
  398. package/dist/cdn/CZ5XRXCE.js +0 -2
  399. package/dist/cdn/D57ESYPO.js +0 -2
  400. package/dist/cdn/DJACBOFO.js +0 -2
  401. package/dist/cdn/DKXRIXFG.js +0 -2
  402. package/dist/cdn/EDSF5KGV.js +0 -233
  403. package/dist/cdn/EPUNY3VI.js +0 -2
  404. package/dist/cdn/EZD3FBJU.js +0 -2
  405. package/dist/cdn/EZV7JSQJ.js +0 -2
  406. package/dist/cdn/FATECLIQ.js +0 -2
  407. package/dist/cdn/FFS73X36.js +0 -142
  408. package/dist/cdn/FGNRWY57.js +0 -2
  409. package/dist/cdn/FJ4UGRMY.js +0 -2
  410. package/dist/cdn/G7YZE67F.js +0 -2
  411. package/dist/cdn/GGHRYV36.js +0 -2
  412. package/dist/cdn/GOP2GNGE.js +0 -2
  413. package/dist/cdn/H2DP7HXE.js +0 -2
  414. package/dist/cdn/H42V247N.js +0 -2
  415. package/dist/cdn/H7TZ42RW.js +0 -2
  416. package/dist/cdn/HZR4NSZV.js +0 -2
  417. package/dist/cdn/I5B6REVT.js +0 -2
  418. package/dist/cdn/IXKYQBM7.js +0 -2
  419. package/dist/cdn/J7XXIAQJ.js +0 -2
  420. package/dist/cdn/JNNB2DIA.js +0 -2
  421. package/dist/cdn/JRUIUNQA.js +0 -2
  422. package/dist/cdn/KI2YCXW6.js +0 -2
  423. package/dist/cdn/KPPNRDOP.js +0 -2
  424. package/dist/cdn/LB6EF2UN.js +0 -2
  425. package/dist/cdn/M7QVV7WC.js +0 -2
  426. package/dist/cdn/MICVGPGC.js +0 -2
  427. package/dist/cdn/MRTKZZTF.js +0 -2
  428. package/dist/cdn/MZHOWTY3.js +0 -2
  429. package/dist/cdn/NALKWY43.js +0 -2
  430. package/dist/cdn/NZR4L5AA.js +0 -2
  431. package/dist/cdn/OCE4FAJ4.js +0 -2
  432. package/dist/cdn/P4HSSZRL.js +0 -2
  433. package/dist/cdn/PAIRUVLU.js +0 -2
  434. package/dist/cdn/PQHVQQSI.js +0 -2
  435. package/dist/cdn/QJC3FDWG.js +0 -2
  436. package/dist/cdn/QNUCPXBU.js +0 -2
  437. package/dist/cdn/QW5KML7L.js +0 -2
  438. package/dist/cdn/QXUR76TF.js +0 -2
  439. package/dist/cdn/RJW2DOIR.js +0 -102
  440. package/dist/cdn/RR63Q3C2.js +0 -2
  441. package/dist/cdn/RRC5ESYH.js +0 -2
  442. package/dist/cdn/SS42OW45.js +0 -2
  443. package/dist/cdn/STM26XZG.js +0 -2
  444. package/dist/cdn/THTYR6IL.js +0 -2
  445. package/dist/cdn/TX43YOVC.js +0 -2
  446. package/dist/cdn/TYAN5HWQ.js +0 -2
  447. package/dist/cdn/U67P6YAZ.js +0 -2
  448. package/dist/cdn/UAGGYOZB.js +0 -2
  449. package/dist/cdn/UDKG7LGN.js +0 -2
  450. package/dist/cdn/UHQGJR3U.js +0 -2
  451. package/dist/cdn/UYOCWLLG.js +0 -2
  452. package/dist/cdn/UYTPOUP7.js +0 -2
  453. package/dist/cdn/VKYQGU2R.js +0 -2
  454. package/dist/cdn/VOSE67U2.js +0 -2
  455. package/dist/cdn/VOTZAPI3.js +0 -2
  456. package/dist/cdn/W3OA4MKU.js +0 -2
  457. package/dist/cdn/W6KE6F3T.js +0 -2
  458. package/dist/cdn/W7X6L2OB.js +0 -127
  459. package/dist/cdn/WCJ5W5TE.js +0 -2
  460. package/dist/cdn/WHYRYWPW.js +0 -2
  461. package/dist/cdn/WNKDEOFZ.js +0 -2
  462. package/dist/cdn/WOJQ6BTB.js +0 -2
  463. package/dist/cdn/WPPMMVD5.js +0 -2
  464. package/dist/cdn/XJFVSX2E.js +0 -2
  465. package/dist/cdn/XP6RGZ2N.js +0 -2
  466. package/dist/cdn/XRUOXTHH.js +0 -2
  467. package/dist/cdn/XTNDUDWE.js +0 -2
  468. package/dist/cdn/XUERYUEG.js +0 -2
  469. package/dist/cdn/Y3CXVO2M.js +0 -2
  470. package/dist/cdn/YAR2TF55.js +0 -2
  471. package/dist/cdn/YEZL5KRS.js +0 -2
  472. package/dist/cdn/YRFSWIDQ.js +0 -2
  473. package/dist/cdn/YYK7SPXC.js +0 -2
  474. package/dist/cdn/ZG7SUAGR.js +0 -2
  475. package/dist/cdn/ZTX2ULE6.js +0 -2
  476. package/dist/cdn/ZY44M3QZ.js +0 -2
  477. package/dist/chunks/bar-chart-series.js +0 -15
  478. package/dist/chunks/index6.js +0 -66
  479. package/dist/chunks/time-zone.js +0 -38
  480. package/dist/components/arcgis-charts-config-field-select/customElement.js +0 -30
  481. /package/dist/cdn/{IVLVCLDE.js → 7NWEE7T2.js} +0 -0
  482. /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 Le, memoize as qe } 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 Ve, c as Ne, d as de } from "./utils.js";
6
- import { w as R, bY as Re, bm as ke, x as Oe, Y as K, cq as De, cp as we, p as Pe, aH as le, c2 as Ee, d as Me, aG as Ye, I as $e, a7 as We, bk as Xe, W as He, e as Ue, bo as je, cY as Ke, v as Qe, d2 as ye, bM as ze, d3 as _e, bI as Ge, B as Ze, d0 as Je, an as X, a6 as Te, cR as ne, b9 as et, ba as oe, k as ee, bq as tt, bu as me, bb as U, bh as ge } from "./index2.js";
7
- import { a as M, s as xe, g as Q, b as pe, c as st } from "./data.js";
8
- import { u as v, r as L, k as it, n as V, m as j, p as at, t as rt, s as te } from "./chart-object-literals.js";
9
- import { i as lt, R as nt } from "./rest-js-object-literals.js";
10
- import { i as z } from "./index4.js";
11
- import { az as ot, t as ut, Y as ct, a9 as dt, al as yt, x as mt, C as fe, H as Se, $ as gt } from "./index.js";
12
- import { C as w, F as Y, d as D } from "./index3.js";
13
- import { h as Be, i as O, j as pt, n as ft, g as b, m as A, e as he } from "./index5.js";
14
- import { convertChartSpec as St } from "../utils/chart-config/converter/index.js";
15
- import { c as se, e as ht } from "./type-guards.js";
16
- import { g as Ce } from "./series-types.js";
17
- import { g as ue } from "./utils2.js";
18
- import { a as Ft, b as Tt } from "./series-length.js";
19
- const ss = (t) => {
2
+ import { substitute as E } from "@arcgis/core/intl.js";
3
+ import { cloneDeep as J, memoize as Ye, isEmpty as $e } from "lodash-es";
4
+ import { S as oe } from "./common.js";
5
+ import { s as N, u as W, a as Ie, g as ye, b as Le, c as Xe, d as He, e as pe } from "./utils.js";
6
+ import { Y as I, aN as Y, bj as Ue, bN as je, bO as Ze, bC as Ne, f as Ke, p as ee, W as _e, V as Qe, bP as ze, O as me, aX as Ge, bQ as Je, N as et, t as tt, bR as st, aO as it, Q as at, bS as rt, _ as nt, bv as ot, bT as lt, bU as fe, bV as ct, bW as ut, bX as dt, P as yt, bY as Se, bZ as _, bE as mt, aP as R, aW as Q, M as gt, r as j, a1 as Oe, b_ as M, bA as U, b$ as pt, c0 as ft, c1 as D, c2 as V, c3 as Fe, bB as xe } from "./index.js";
7
+ import { a as w, s as ge, g as te, b as he, c as St } from "./data.js";
8
+ import { a as T, d as v, f as Ft, l as k, t as L, h as $, g as xt, b as ht, e as le } from "./chart-object-literals.js";
9
+ import { d as De, b as Tt } from "./rest-js-object-literals.js";
10
+ import { i as se } from "./index4.js";
11
+ import { q as Bt, W as z, X as ce, H as Ct, Y as bt, Z as At, _ as vt, $ as It, j as Lt } from "./index3.js";
12
+ import { a as P, C as X, b as q } from "./index2.js";
13
+ import { g as Ve, s as Nt } from "./series-types.js";
14
+ import { C as Ot, m as Dt } from "./model-setter.js";
15
+ import { convertChartSpec as Vt } from "../utils/chart-config/converter/index.js";
16
+ import { i as ue, h as kt } from "./type-guards.js";
17
+ import { g as ie } from "./utils2.js";
18
+ import { b as qt, g as Rt } from "./series-length.js";
19
+ const Ns = (s) => {
20
20
  let e;
21
- const s = t.series[0];
22
- return R(s) && (e = s.temporalBinning?.size), e;
23
- }, xt = (t) => {
21
+ const t = s.series[0];
22
+ return I(t) && (e = t.temporalBinning?.size), e;
23
+ }, Pt = (s) => {
24
24
  let e;
25
- const s = t.series[0];
26
- return R(s) && (e = s.temporalBinning?.unit), e;
27
- }, is = (t) => {
25
+ const t = s.series[0];
26
+ return I(t) && (e = t.temporalBinning?.unit), e;
27
+ }, Os = (s) => {
28
28
  let e;
29
- const s = t.series[0];
30
- return R(s) && (e = s.temporalBinning?.timeAggregationType), e;
31
- }, as = (t) => {
29
+ const t = s.series[0];
30
+ return I(t) && (e = t.temporalBinning?.timeAggregationType), e;
31
+ }, Ds = (s) => {
32
32
  let e;
33
- const s = t.series[0];
34
- return R(s) && (e = s.temporalBinning?.trimIncompleteTimeInterval), e;
35
- }, rs = (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
- }, Bt = (t, e) => {
40
- e?.series?.forEach((s) => {
41
- R(s) && (s.temporalBinning ??= {}, s.temporalBinning.size = t);
37
+ const t = s.series[0];
38
+ return I(t) && (e = t.temporalBinning?.nullPolicy), e;
39
+ }, wt = (s, e) => {
40
+ e?.series?.forEach((t) => {
41
+ I(t) && (t.temporalBinning ??= {}, t.temporalBinning.size = s);
42
42
  }), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
43
- }, Ct = (t, e) => {
44
- e?.series?.forEach((s) => {
45
- R(s) && (s.temporalBinning ??= {}, s.temporalBinning.nullPolicy = t);
43
+ }, Et = (s, e) => {
44
+ e?.series?.forEach((t) => {
45
+ I(t) && (t.temporalBinning ??= {}, t.temporalBinning.nullPolicy = s);
46
46
  }), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
47
- }, ls = (t, e) => {
48
- e.series?.forEach((s) => {
49
- R(s) && (s.temporalBinning ??= {}, s.temporalBinning.unit = t);
47
+ }, ks = (s, e) => {
48
+ e.series?.forEach((t) => {
49
+ I(t) && (t.temporalBinning ??= {}, t.temporalBinning.unit = s);
50
50
  }), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
51
- }, ns = (t, e) => {
52
- e.series?.forEach((s) => {
53
- R(s) && (s.temporalBinning ??= {}, s.temporalBinning.timeAggregationType = t);
51
+ }, qs = (s, e) => {
52
+ e.series?.forEach((t) => {
53
+ I(t) && (t.temporalBinning ??= {}, t.temporalBinning.timeAggregationType = s);
54
54
  }), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
55
- }, os = (t, e) => {
56
- e.series?.forEach((s) => {
57
- R(s) && (s.temporalBinning ??= {}, s.temporalBinning.trimIncompleteTimeInterval = t);
55
+ }, Rs = (s, e) => {
56
+ e.series?.forEach((t) => {
57
+ I(t) && (t.temporalBinning ??= {}, t.temporalBinning.trimIncompleteTimeInterval = s);
58
58
  }), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
59
- }, us = (t) => {
60
- Bt(0, t);
59
+ }, Mt = (s) => {
60
+ wt(0, s);
61
61
  };
62
- function cs(t, e) {
63
- let s;
64
- return e !== void 0 && (s = { ...e }, s.legend !== void 0 && (s.legend.position = t)), s;
62
+ var Wt = Object.defineProperty, Yt = Object.getOwnPropertyDescriptor, $t = (s, e, t, r) => {
63
+ for (var i = Yt(e, t), a = s.length - 1, n; a >= 0; a--)
64
+ (n = s[a]) && (i = n(e, t, i) || i);
65
+ return i && Wt(e, t, i), i;
66
+ };
67
+ const Xt = (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 Ht extends Ot {
79
+ /**
80
+ * Gets the time zone for the chart.
81
+ */
82
+ get timeZone() {
83
+ return Xt(this._config);
84
+ }
85
+ set timeZone(e) {
86
+ ke(e, this._config), this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"));
87
+ }
88
+ }
89
+ $t([
90
+ Dt
91
+ ], Ht.prototype, "timeZone");
92
+ function Ps(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 ds(t, e) {
67
- let s;
68
- return e !== void 0 && (s = { ...e }, s.legend !== void 0 && (s.legend.visible = t)), s;
96
+ function ws(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 ys(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 bt(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 ms(t, e) {
79
- return e != null || Be(t);
108
+ function Ms(s, e) {
109
+ return e != null || Ne(s);
80
110
  }
81
- async function gs(t) {
82
- const { config: e, layer: s, abortSignal: r } = t;
83
- let a = !1;
84
- return se(s) || ht(e) ? e && se(s) && (a = await ke({ config: e, layer: s, abortSignal: r })) : a = !0, a;
111
+ async function Ws(s) {
112
+ const { config: e, layer: t, abortSignal: r } = s;
113
+ let i = !1;
114
+ return ue(t) || kt(e) ? e && ue(t) && (i = await Ze({ config: e, layer: t, abortSignal: r })) : i = !0, i;
85
115
  }
86
- async function At(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: h
98
- } = t;
99
- let l = [], g;
100
- const d = ae(s), y = d.series[0], u = Ue({
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 = ot.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
- }) && Qe(r, e)) {
112
- const { temporalBinning: f, x } = y, { uniqueQuery: C } = ye({
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: h
119
- }), F = s.axes?.[0].valueFormat.type === v.DateAxisFormat ? s.axes[0].valueFormat.intlOptions.timeZone : void 0;
120
- g = await ze({
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: F,
126
- temporalBinning: f,
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((p) => {
132
- const { stackedAttributes: k } = p;
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: f } = ye({
171
+ const { uniqueQuery: F } = fe({
140
172
  chartConfig: d,
141
173
  queryObject: e,
142
- queryConfig: u,
143
- setTimeBinningInfoWhenNotProvided: c,
144
- returnFeaturesExtent: m,
145
- chartLimits: h
146
- }), { elementCount: x } = await _e({
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: h?.behaviorAfterLimit,
151
- numberMaxOfFeaturesToFetch: f.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: f,
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 vt(t, e) {
169
- const s = /* @__PURE__ */ new Map();
170
- return t.series.forEach((r) => {
171
- let a = le({
201
+ function Zt(s, e) {
202
+ const t = /* @__PURE__ */ new Map();
203
+ return s.series.forEach((r) => {
204
+ let i = me({
172
205
  where: r.query?.where,
173
206
  // normalize the value so it matches what we get from getAllValues()
174
207
  // Refer to https://devtopia.esri.com/WebGIS/arcgis-charts/issues/8127
@@ -177,894 +210,984 @@ function vt(t, e) {
177
210
  // Refer to https://devtopia.esri.com/WebGIS/arcgis-charts/issues/8078
178
211
  escape: !1
179
212
  });
180
- e && a !== null && (a = Number(a));
181
- const i = Ce([r]);
182
- i !== void 0 && s.set(i, [
183
- ...s.get(i) ?? [],
184
- a
213
+ e && i !== null && (i = Number(i));
214
+ const a = Ve([r]);
215
+ a !== void 0 && t.set(a, [
216
+ ...t.get(a) ?? [],
217
+ i
185
218
  ]);
186
- }), s;
219
+ }), t;
187
220
  }
188
- function It(t) {
189
- const { allValues: e, configUniqueValuesPerSeriesType: s, initialConfigWasEmpty: r } = t, a = /* @__PURE__ */ new Map();
190
- return Array.from(s.keys()).forEach((i) => {
191
- const n = s.get(i) ?? [];
221
+ function Kt(s) {
222
+ const { allValues: e, configUniqueValuesPerSeriesType: t, initialConfigWasEmpty: r } = s, i = /* @__PURE__ */ new Map();
223
+ return Array.from(t.keys()).forEach((a) => {
224
+ const n = t.get(a) ?? [];
192
225
  let o = [];
193
- r ? o = e : e.forEach((c) => {
194
- n.includes(c) || o.push(c);
195
- }), a.set(i, o);
196
- }), a;
226
+ r ? o = e : e.forEach((l) => {
227
+ n.includes(l) || o.push(l);
228
+ }), i.set(a, o);
229
+ }), i;
197
230
  }
198
- function Lt(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 ? Y.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 = X.nullValue : t === "" ? a.id = X.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 qt(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: h
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 = K(s.series);
233
- if (y === w.BoxPlotMonoFieldAndSplitBy || y === w.BoxPlotMultiFieldsAndSplitBy || y === w.BoxPlotMonoFieldAndCategoryAndSplitBy || y === w.BarAndLineSplitBy || y === w.BarAndLineSplitByNoAggregation) {
234
- const u = Ye(s.series[0]?.query?.where), f = $e(r), x = We(u, f), C = x ? Xe(x) : !1, F = await At({
257
+ setTimeBinningInfoWhenNotProvided: l,
258
+ returnFeaturesExtent: c,
259
+ returnStatisticsAggregatedIds: p,
260
+ chartLimits: f
261
+ } = s, { seriesTemplate: u } = e ?? {};
262
+ let m;
263
+ if (r && !ue(r) && e !== void 0 && t !== void 0 && (t.series.length > 0 || u !== void 0) && e.addMissingSeries) {
264
+ const d = t.series.length === 0;
265
+ t.series.length === 0 && u !== void 0 && t.series.push(u);
266
+ const y = ee(t.series);
267
+ if (y === P.BoxPlotMonoFieldAndSplitBy || y === P.BoxPlotMultiFieldsAndSplitBy || y === P.BoxPlotMonoFieldAndCategoryAndSplitBy || y === P.BarAndLineSplitBy || y === P.BarAndLineSplitByNoAggregation) {
268
+ const g = et(t.series[0]?.query?.where), F = tt(r), 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: h,
244
- errorStrings: a
245
- }), { allValues: p } = F;
246
- if ({ preFetchedQueryResponse: g } = F, p.length > 0) {
247
- const k = vt(s, C), T = It({
248
- allValues: p,
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 = Zt(t, S), A = Kt({
283
+ allValues: C,
284
+ configUniqueValuesPerSeriesType: B,
250
285
  initialConfigWasEmpty: d
251
286
  });
252
- Array.from(T.keys()).forEach((S) => {
253
- (T.get(S) ?? []).forEach((q) => {
254
- s.series.push(
255
- Lt({
256
- chartConfig: s,
257
- seriesTemplate: l,
258
- missingValue: q,
259
- splitByField: u
287
+ Array.from(A.keys()).forEach((x) => {
288
+ (A.get(x) ?? []).forEach((O) => {
289
+ t.series.push(
290
+ _t({
291
+ chartConfig: t,
292
+ seriesTemplate: u,
293
+ missingValue: O,
294
+ splitByField: g
260
295
  })
261
296
  );
262
- }), d && s.series.shift();
297
+ }), d && t.series.shift();
263
298
  });
264
299
  }
265
300
  }
266
301
  }
267
- return g;
302
+ return m;
268
303
  }
269
- function Vt(t, e) {
270
- e && !Be(e) && (e = Me({ chartConfig: e, queryObject: t }));
304
+ function zt(s, e) {
305
+ e && !Ne(e) && (e = Je({ chartConfig: e, queryObject: s }));
271
306
  }
272
- async function ps(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: h,
284
- returnFeaturesExtent: l,
285
- chartLimits: g,
286
- errorStrings: d
287
- } = t;
288
- let y = e, u;
289
- return y && (Vt(s, y), y = await St(y, s, void 0, o), r && n && (u = await qt({
290
- updateSplitBySeries: a,
291
- config: y,
316
+ runtimeDataFilters: l,
317
+ ignoreViewExtent: c,
318
+ setTimeBinningInfoWhenNotProvided: p,
319
+ returnFeaturesExtent: f,
320
+ returnStatisticsAggregatedIds: u,
321
+ chartLimits: m,
322
+ timeZone: d,
323
+ errorStrings: y
324
+ } = s;
325
+ let g = e, F;
326
+ return g && (zt(t, g), g = await Vt(g, t, void 0, o), r && n && (F = await Qt({
327
+ updateSplitBySeries: i,
328
+ config: g,
292
329
  queryObject: n,
293
- errorStrings: d,
330
+ errorStrings: y,
294
331
  abortSignal: o,
295
- runtimeDataFilters: c,
296
- ignoreViewExtent: m,
297
- setTimeBinningInfoWhenNotProvided: h,
298
- returnFeaturesExtent: l,
299
- chartLimits: g
300
- })), y = Re(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 Nt(t, e) {
303
- let s = !1;
340
+ function Gt(s, e) {
341
+ let t = !1;
304
342
  if (e !== void 0) {
305
- const r = He({ key: Ze.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 fs(t) {
311
- const { data: e, config: s, showEmptySeries: r } = t, a = s.series.length, i = ae(s);
348
+ function $s(s) {
349
+ const { data: e, config: t, showEmptySeries: r } = s, i = t.series.length, a = J(t);
312
350
  let n = !1;
313
- if (!r && a > 1 && e) {
314
- const o = Oe(e), c = Ce(s?.series), m = K(s?.series), h = /* @__PURE__ */ new Set();
315
- switch (c) {
316
- case v.ComboLineAndBarSeries:
317
- case v.BarSeries:
318
- case v.RadarSeries:
319
- case v.LineSeries: {
320
- i.series.forEach((g) => {
351
+ if (!r && i > 1 && e) {
352
+ const o = Ke(e), l = Ve(t?.series), c = ee(t?.series), p = /* @__PURE__ */ new Set();
353
+ switch (l) {
354
+ case T.ComboLineAndBarSeries:
355
+ case T.BarSeries:
356
+ case T.RadarSeries:
357
+ case T.LineSeries: {
358
+ a.series.forEach((u) => {
321
359
  if (Array.isArray(o)) {
322
- let d = "";
323
- "y" in g && (d = Array.isArray(g.y) ? g.y[0] : g.y, m === w.BarAndLineSplitByNoAggregation && (d = `${d}_${le({ where: g.query?.where, keepSurroundingQuotes: !1, escape: !1 })}`), o.some(
324
- (u) => Ee({
325
- dataItem: u,
326
- x: g.x,
327
- y: d,
328
- aggregationType: s.series[0].query?.outStatistics?.[0]?.statisticType
360
+ let m = "";
361
+ "y" in u && (m = Array.isArray(u.y) ? u.y[0] : u.y, c === P.BarAndLineSplitByNoAggregation && (m = `${m}_${me({ where: u.query?.where, keepSurroundingQuotes: !1, escape: !1 })}`), o.some(
362
+ (y) => Ge({
363
+ dataItem: y,
364
+ x: u.x,
365
+ y: m,
366
+ aggregationType: t.series[0].query?.outStatistics?.[0]?.statisticType
329
367
  })
330
- ) && h.add(g));
368
+ ) && p.add(u));
331
369
  }
332
370
  });
333
371
  break;
334
372
  }
335
- case v.BoxPlotSeries: {
336
- if (De(s)) {
337
- const g = we(s);
338
- s.series.forEach((d) => {
339
- let y, u;
340
- d.type === v.BoxPlotSeries ? (y = e.dataItems, u = y?.some(
341
- (f) => Pe({
342
- dataItem: f,
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
- (f) => Nt(f, d.query?.where)
348
- )), u && h.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(h.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 Ss = (t) => t.hideEmptyRowsAndColumns, hs = (t, e) => {
360
- t.hideEmptyRowsAndColumns = e;
361
- }, Fs = (t, e) => {
362
- const s = t.series[0];
363
- s.heatRulesType = e;
364
- }, Ts = (t) => t.series[0].heatRulesType, xs = (t, e) => {
365
- const s = t.series[0];
366
- s.gradientRules = e;
367
- }, Bs = (t) => t.series[0].gradientRules, Cs = (t) => {
368
- const { yField: e, config: s, layerInfo: r } = t, { layerFieldsInfo: a } = r, i = ue(1, s), n = Rt(s), o = z(s), c = s.series[0];
369
- if (typeof e == "string" && n !== e && c && (c.y = e, bt(s), n === i || o)) {
370
- const m = D(a, e);
371
- E(s, 1, m);
397
+ const Xs = (s) => s.hideEmptyRowsAndColumns, Hs = (s, e) => {
398
+ s.hideEmptyRowsAndColumns = e;
399
+ }, Us = (s, e) => {
400
+ const t = s.series[0];
401
+ t.heatRulesType = e;
402
+ }, js = (s) => s.series[0].heatRulesType, Zs = (s, e) => {
403
+ const t = s.series[0];
404
+ t.gradientRules = e;
405
+ }, Ks = (s) => s.series[0].gradientRules, _s = (s) => {
406
+ const { yField: e, config: t, layerInfo: r, commonStrings: i } = s, { layerFieldsInfo: a } = r, n = ie(1, t), o = Jt(t), l = se(t), c = t.series[0];
407
+ if (typeof e == "string" && o !== e && c) {
408
+ if (c.y = e, Ut(t), o === n || l) {
409
+ const p = q(a, e);
410
+ W(t, 1, p);
411
+ }
412
+ qe({ commonStrings: i, config: t, layerInfo: r });
372
413
  }
373
- }, Rt = (t) => t.series[0].y ?? "", bs = (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
+ W(t, 0, a);
378
419
  }
379
- }, As = (t) => t.series[0].xTemporalBinning, vs = (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
+ W(t, 1, a);
384
426
  }
385
- }, Is = (t) => t.series[0].yTemporalBinning, kt = (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
- }, Ls = (t, e) => {
393
- const s = e.series[0];
394
- s.gridLine && (s.gridLine.width = t);
395
- }, qs = (t) => t.series[0].gridLine?.width, Vs = (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
- }, Ns = (t) => t.series[0].gridLine?.color, Rs = (t, e) => {
399
- const s = e.legend;
400
- s && (s.position = t);
401
- }, ks = (t) => t.legend?.position ?? it.Bottom, Os = (t) => t.series[0].query?.outStatistics?.[0]?.onStatisticField, Ds = (t) => {
402
- const { field: e, config: s, layerInfo: r, commonStrings: a } = t, i = s.series[0].query?.outStatistics?.[0], n = G(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: `${L.Count}_${e}`,
408
- statisticType: L.Count
450
+ outStatisticFieldName: `${v.Count}_${e}`,
451
+ statisticType: v.Count
409
452
  }
410
453
  ]
411
- }, n && s.title && (s.title.content.text = H(s, r, a));
412
- }, ws = (t) => t.series[0].query?.outStatistics?.[0].statisticType ?? L.Count, Ps = (t) => {
413
- const { aggregationType: e, config: s, layerInfo: r, commonStrings: a } = t, i = s.series[0]?.query?.outStatistics?.[0], n = G(s, r, a);
414
- i && e !== L.NoAggregation && (i.statisticType = e, i.outStatisticFieldName = `${e}_${i.onStatisticField}`), (e === L.Count || e === L.Sum) && Ot(j.Zero, s), n && s.title && (s.title.content.text = H(s, r, a));
415
- }, Es = (t) => t.nullPolicy, Ot = (t, e) => {
416
- e.nullPolicy = t;
417
- }, Ms = (t) => t.series[0].emptyCells, Ys = (t, e) => {
418
- e.series[0].emptyCells = t;
419
- }, $s = (t) => t.series[0].emptyCells?.text, Ws = (t, e) => {
420
- e.series[0].emptyCells ? e.series[0].emptyCells.text = t : e.series[0].emptyCells = { text: t };
421
- }, Xs = (t) => t.includeLeapDay, Hs = (t, e) => {
422
- e.includeLeapDay = t;
423
- }, Us = (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 = Z(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($.Zero, t), n && t.title && (t.title.content.text = Z(t, r, i));
458
+ }, li = (s) => s.nullPolicy, is = (s, e) => {
459
+ e.nullPolicy = s;
460
+ }, ci = (s) => s.series[0].emptyCells, ui = (s, e) => {
461
+ e.series[0].emptyCells = s;
462
+ }, di = (s) => s.series[0].emptyCells?.text, yi = (s, e) => {
463
+ e.series[0].emptyCells ? e.series[0].emptyCells.text = s : e.series[0].emptyCells = { text: s };
464
+ }, mi = (s) => s.includeLeapDay, gi = (s, e) => {
465
+ e.includeLeapDay = s;
466
+ }, pi = (s) => s.series[0].emptyCells?.symbol, fi = (s, e) => {
467
+ e.series[0].emptyCells ? e.series[0].emptyCells.symbol = s : e.series[0].emptyCells = { symbol: s };
425
468
  };
426
- function Ks(t) {
427
- return t.viewType;
469
+ function Si(s) {
470
+ return s.viewType;
428
471
  }
429
- function Qs(t, e) {
430
- Je(e) || (e.viewType = t);
472
+ function Fi(s, e) {
473
+ mt(e) || (e.viewType = s);
431
474
  }
432
- function zs(t) {
433
- return t.series[0].classBreaksRules?.breaksCount ?? Y.classBreaks.breaksCount;
475
+ function xi(s) {
476
+ return s.series[0].classBreaksRules?.breaksCount ?? X.classBreaks.breaksCount;
434
477
  }
435
- function _s(t, e) {
436
- e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.breaksCount = t ?? Y.classBreaks.breaksCount : e.series[0].classBreaksRules = {
437
- breaksCount: t ?? Y.classBreaks.breaksCount
478
+ function hi(s, e) {
479
+ e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.breaksCount = s ?? X.classBreaks.breaksCount : e.series[0].classBreaksRules = {
480
+ breaksCount: s ?? X.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 Zs(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 ?? Y.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 ?? X.classBreaks.breaksCount;
447
490
  }
448
- function Js(t, e) {
449
- e.firstDayOfWeek = t;
491
+ function Ci(s, e) {
492
+ e.firstDayOfWeek = s;
450
493
  }
451
- function ei(t) {
452
- return t.firstDayOfWeek;
494
+ function bi(s) {
495
+ return s.firstDayOfWeek;
453
496
  }
454
- function ti(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 si(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 ii(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 ai(t, e) {
514
+ function Li(s, e) {
472
515
  e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.colorRampInfo = {
473
516
  ...e.series[0].classBreaksRules.colorRampInfo,
474
- flipped: t
517
+ flipped: s
475
518
  } : e.series[0].classBreaksRules = {
476
519
  colorRampInfo: {
477
- flipped: t
520
+ flipped: s
478
521
  }
479
522
  };
480
523
  }
481
- function $(t) {
482
- const { seriesIndex: e, xAxisField: s, aggregationType: r, config: a, layerInfo: i, commonStrings: n } = t, o = X(i?.layer).idField;
483
- let c;
484
- const m = a.series[e ?? 0];
485
- let h = !1, l = !1, g = !1;
486
- if (m === void 0) {
487
- const u = a.series;
488
- h = u.slice(0, e).every((f) => b(f)), l = u.slice(0, e).every((f) => A(f)), g = u.slice(0, e).every((f) => he(f));
524
+ const as = [
525
+ k.DayOfMonth,
526
+ k.MonthOfYear
527
+ ], Te = (s) => {
528
+ let e;
529
+ return _(s) ? e = ce() : (R(s) || Q(s)) && (e = z()), e;
530
+ }, Be = (s) => R(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 = q(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) && W(i, e, be(r, t.unit));
568
+ }, G = (s) => {
569
+ const { axisIndex: e, commonStrings: t, config: r } = s, i = rs(r, e), a = i ? ns(i) : void 0;
570
+ Ie({ config: r, commonStrings: t, valueFormat: a, axisIndex: e });
571
+ }, qe = (s) => {
572
+ const { commonStrings: e, config: t, layerInfo: r } = s, i = t.series[0]?.x ?? "", a = t.series[0]?.y ?? "", n = Se(r.layerFieldsInfo, i), o = Se(r.layerFieldsInfo, a), l = Te(n), c = Te(o), p = Be(n) && Be(o), f = _(n) && _(o);
573
+ if (Ce({ axisIndex: 0, commonStrings: e, config: t, valueFormat: l }), Ce({ axisIndex: 1, commonStrings: e, config: t, valueFormat: c }), p) {
574
+ const u = es(t) === void 0, m = ts(t) === void 0;
575
+ u && (ve({
576
+ axisIndex: 0,
577
+ binning: Ae(0, t.series[0].yTemporalBinning),
578
+ commonStrings: e,
579
+ config: t,
580
+ fieldName: i,
581
+ layerInfo: r
582
+ }), G({
583
+ axisIndex: 0,
584
+ commonStrings: e,
585
+ config: t
586
+ })), m && (ve({
587
+ axisIndex: 1,
588
+ binning: Ae(1, t.series[0].xTemporalBinning),
589
+ commonStrings: e,
590
+ config: t,
591
+ fieldName: a,
592
+ layerInfo: r
593
+ }), G({
594
+ axisIndex: 1,
595
+ commonStrings: e,
596
+ config: t
597
+ }));
598
+ }
599
+ f && (t.series[0].xTemporalBinning = void 0, t.series[0].yTemporalBinning = void 0);
600
+ };
601
+ function os(s) {
602
+ const e = {};
603
+ return s.series.forEach((t) => {
604
+ Nt(t) && "nullCategory" in t && t.nullCategory !== void 0 && (e.text ??= t.nullCategory.text, t.type === T.BarSeries ? e.fillSymbol ??= t.nullCategory.fillSymbol : e.markerSymbol ??= t.nullCategory.markerSymbol);
605
+ }), e.text || e.fillSymbol || e.markerSymbol ? e : void 0;
606
+ }
607
+ function ae(s) {
608
+ const { seriesIndex: e, xAxisField: t, aggregationType: r, config: i, layerInfo: a, commonStrings: n } = s, o = j(a?.layer).idField;
609
+ let l;
610
+ const c = i.series[e ?? 0];
611
+ let p = !1, f = !1, u = !1;
612
+ if (c === void 0) {
613
+ const B = i.series;
614
+ p = B.slice(0, e).every((A) => D(A)), f = B.slice(0, e).every((A) => V(A)), u = B.slice(0, e).every((A) => Fe(A));
489
615
  } else
490
- h = b(m), l = A(m), g = he(m);
491
- h ? c = ct({
616
+ p = D(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 = dt({
621
+ }) : f ? l = At({
496
622
  commonStrings: n,
497
623
  seriesIndex: e,
498
624
  objectIDField: o
499
- }) : g ? c = yt(n, o) : c = mt({
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: lt.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 !== L.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) && oe({ chartConfig: a })) {
528
- let u = xt(a);
529
- u === te.Quarter && (u = te.Month), y.temporalBinning = {
530
- ...a.series[0]?.temporalBinning,
531
- unit: u
660
+ if (I(i.series[0]) && I(C)) {
661
+ let B = Pt(i);
662
+ B === le.Quarter && (B = le.Month), C.temporalBinning = {
663
+ ...i.series[0]?.temporalBinning,
664
+ unit: B
532
665
  };
533
666
  }
534
- return ae(y);
667
+ return J(C);
535
668
  }
536
- function H(t, e, s) {
537
- const { layerFieldsInfo: r } = e, { idField: a, isTraditionalTypeOID: i } = X(e.layer), n = M(t), o = _(t), c = Ae(t), m = ce(t), h = i && (o.length === 0 || o.includes(a)), l = ut(c, s), g = h ? "" : o.map((F) => D(r ?? [], F)).join(", "), d = D(r ?? [], n), y = D(r ?? [], m), u = t.series.some((F) => O(F)), f = u ? "category" : "xAxisField", x = d;
538
- let C = "";
539
- if (xe({
669
+ function Z(s, e, t) {
670
+ const { layerFieldsInfo: r } = e, { idField: i, isTraditionalTypeOID: a } = j(e.layer), n = w(s), o = K(s), l = Pe(s), c = re(s), p = a && (o.length === 0 || o.includes(i)), f = Ct(l, t), u = p ? "" : o.map((S) => q(r ?? [], S)).join(", "), m = q(r ?? [], n), d = q(r ?? [], c), y = s.series.some((S) => M(S)), g = y ? "category" : "xAxisField", F = m;
671
+ let h = "";
672
+ if (ge({
540
673
  fieldName: n,
541
674
  numericFields: o,
542
675
  fieldList: r
543
676
  }))
544
- C = P(s.titleLabels.aggrTypeOfAggrFields, {
545
- aggregationType: l,
546
- aggregationFields: g
677
+ h = E(t.titleLabels.aggrTypeOfAggrFields, {
678
+ aggregationType: f,
679
+ aggregationFields: u
547
680
  });
548
- else if (c === L.NoAggregation) {
549
- const F = h ? a : g;
550
- if (m === "") {
551
- const p = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
552
- C = P(s.titleLabels[p], {
553
- aggregationType: F,
554
- [f]: 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
555
688
  });
556
689
  } else {
557
- const p = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
558
- C = P(s.titleLabels[p], {
559
- aggregationType: F,
560
- [f]: x,
561
- splitByField: y
690
+ const b = y ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
691
+ h = E(t.titleLabels[b], {
692
+ aggregationType: S,
693
+ [g]: F,
694
+ splitByField: d
562
695
  });
563
696
  }
564
- } else if (c === L.Count)
565
- if (m === "") {
566
- const F = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
567
- C = P(s.titleLabels[F], {
568
- aggregationType: l,
569
- [f]: 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
570
703
  });
571
704
  } else {
572
- const F = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
573
- C = P(s.titleLabels[F], {
574
- aggregationType: l,
575
- [f]: x,
576
- splitByField: y
705
+ const S = y ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
706
+ h = E(t.titleLabels[S], {
707
+ aggregationType: f,
708
+ [g]: F,
709
+ splitByField: d
577
710
  });
578
711
  }
579
- else if (m !== "") {
580
- const F = u ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
581
- C = P(s.titleLabels[F], {
582
- aggregationType: l,
583
- aggregationField: g,
584
- [f]: x,
585
- 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
586
719
  });
587
720
  } else if (o.length > 0) {
588
- const F = u ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
589
- C = P(s.titleLabels[F], {
590
- aggregationType: l,
591
- aggregationFields: g,
592
- [f]: x
721
+ const S = y ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
722
+ h = E(t.titleLabels[S], {
723
+ aggregationType: f,
724
+ aggregationFields: u,
725
+ [g]: F
593
726
  });
594
727
  }
595
- return C;
728
+ return h;
596
729
  }
597
- const be = (t) => le({
598
- where: t.query?.where,
730
+ const Re = (s) => me({
731
+ where: s.query?.where,
599
732
  normalize: !1,
600
733
  escape: !1
601
- }) ?? "", Ae = (t) => t?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? L.NoAggregation, ce = qe(
602
- (t) => {
603
- const e = t?.series?.[0]?.query?.where?.split("=")[0].trim() ?? "";
604
- return et(t?.series?.[0]?.query?.where) ? "" : e;
734
+ }) ?? "", Pe = (s) => s?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? v.NoAggregation, re = Ye(
735
+ (s) => {
736
+ const e = s?.series?.[0]?.query?.where?.split("=")[0].trim() ?? "";
737
+ return gt(s?.series?.[0]?.query?.where) ? "" : e;
605
738
  },
606
- (t) => t?.series?.[0]?.query?.where
607
- ), _ = (t) => {
739
+ (s) => s?.series?.[0]?.query?.where
740
+ ), K = (s) => {
608
741
  let e = [];
609
- if (ce(t) === "")
610
- e = t?.series.map((s) => {
611
- const r = s.query?.outStatistics?.map((a) => a.onStatisticField) ?? [];
612
- return r?.length > 0 ? r : s.y;
742
+ if (re(s) === "")
743
+ e = s?.series.map((t) => {
744
+ const r = t.query?.outStatistics?.map((i) => i.onStatisticField) ?? [];
745
+ return r?.length > 0 ? r : t.y;
613
746
  }).flat() ?? [];
614
747
  else {
615
- const s = t?.series?.[0], r = s?.query?.outStatistics?.[0]?.onStatisticField ?? [s?.y].flat()[0];
748
+ const t = s?.series?.[0], r = t?.query?.outStatistics?.[0]?.onStatisticField ?? [t?.y].flat()[0];
616
749
  e = r !== void 0 ? [r] : [];
617
750
  }
618
- return e.filter((s) => s !== "");
751
+ return e.filter((t) => t !== "");
619
752
  };
620
- function Dt(t) {
621
- const { numericFields: e, aggregationType: s, config: r, layerInfo: a } = t;
622
- let i = !1;
623
- s === L.Count ? i = !0 : s === L.NoAggregation && (i = e.every((c) => {
624
- const m = a.layerFieldsInfo.find((h) => h.name === c);
625
- return m !== void 0 ? ge(m) : !1;
626
- })), de(r, 1, i);
627
- const n = r.series.some((c) => b(c)), o = r.series.some((c) => A(c));
753
+ function we(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) => D(l)), o = r.series.some((l) => V(l));
628
765
  if (n || o) {
629
- const c = M(r), m = a.layerFieldsInfo.find((l) => l.name === c), h = m !== void 0 && ge(m);
630
- de(r, 0, h);
766
+ const l = w(r), c = i.layerFieldsInfo.find((f) => f.name === l), p = c !== void 0 && xe(c);
767
+ pe(r, 0, p);
631
768
  }
632
769
  }
633
- const ie = (t) => {
770
+ const de = (s) => {
634
771
  let e;
635
- if (ne(t)) {
636
- 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;
637
- e = [pe(s, a), pe(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)];
638
775
  } else {
639
- const s = t.orderOptions?.data?.orderType ?? V.Category, r = t.orderOptions?.data && "orderBy" in t.orderOptions.data ? t.orderOptions.data.orderBy : at.Ascending;
640
- e = [st(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)];
641
778
  }
642
779
  return e;
643
780
  };
644
- function wt(t) {
645
- const { xAxisField: e, numericFields: s, aggregationType: r, config: a, layerInfo: i, commonStrings: n } = t, { layerFieldsInfo: o } = i;
646
- let c = !1;
647
- const m = $({
648
- 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,
649
784
  xAxisField: e,
650
785
  aggregationType: r,
651
- layerInfo: i,
786
+ layerInfo: a,
652
787
  seriesIndex: 0,
653
788
  commonStrings: n
654
- }), h = Q({
655
- config: a,
789
+ }), c = te({
790
+ config: i,
656
791
  xAxisField: e,
657
- numericFields: s,
792
+ numericFields: t,
658
793
  aggregationType: r,
659
- layer: i.layer,
794
+ layer: a.layer,
795
+ fieldList: o
796
+ }).name, p = w(i), f = K(i), u = ge({
797
+ fieldName: p,
798
+ numericFields: f,
660
799
  fieldList: o
661
- }).name, l = {
662
- ...m,
663
- id: `series_${Date.now()}`,
664
- name: n.axisLabels.values,
665
- x: ee,
666
- y: h
667
- }, g = [];
668
- for (const y of s)
669
- g.push({
670
- onStatisticField: y,
671
- 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(),
672
811
  statisticType: r
673
812
  });
674
- l.query = { outStatistics: g };
675
- const d = a.series[0];
676
- 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 && ((D(F) || V(F)) && Me(F, i.series[0]), M(F) ? F.fillSymbol = i.series[0].fillSymbol : (D(F) || V(F)) && (F.lineSymbol = i.series[0].lineSymbol, F.markerSymbol = i.series[0].markerSymbol)), [F];
677
814
  }
678
- function ve(t) {
679
- const { xAxisField: e, numericFields: s, aggregationType: r, config: a, layerInfo: i, commonStrings: n } = t, { layerFieldsInfo: o } = i, c = X(i.layer).idField, m = [];
680
- let h = !1;
681
- for (let u = 0; u < s.length; u += 1) {
682
- const f = $({
683
- 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,
684
820
  xAxisField: e,
685
821
  aggregationType: r,
686
- layerInfo: i,
687
- seriesIndex: u,
822
+ layerInfo: a,
823
+ seriesIndex: d,
688
824
  commonStrings: n
689
- }), x = a.series[u]?.y, C = typeof x == "string" && x.trim() !== "" ? x : Q({
690
- config: a,
825
+ }), g = i.series[d]?.y, F = typeof g == "string" && g.trim() !== "" && !o.find((O) => O.name === g) ? g : te({
826
+ config: i,
691
827
  xAxisField: e,
692
- numericFields: s,
828
+ numericFields: t,
693
829
  aggregationType: r,
694
- layer: i.layer,
695
- numericFieldIndex: u,
830
+ layer: a.layer,
831
+ numericFieldIndex: d,
696
832
  fieldList: o
697
- }).name, F = s[u];
698
- let p = {
699
- ...f,
700
- query: {
701
- ...f.query
702
- }
833
+ }).name, h = t[d], S = i.series.find(
834
+ (O) => O.query?.where === void 0 && (O.query?.outStatistics?.length === 1 && O.query?.outStatistics?.[0]?.onStatisticField === h || O.query?.outStatistics === void 0 && (O.y === h || O.x === h))
835
+ ), b = h !== l ? h : y.id, C = S?.id ?? b, B = S?.name ?? q(o, h) ?? C, A = S ?? y, x = {
836
+ ...A,
837
+ id: C,
838
+ name: B
703
839
  };
704
- s && F !== c && (p = {
705
- ...p,
706
- id: F,
707
- name: D(o, F)
708
- });
709
- let k = F;
710
- p.query !== void 0 && (r !== L.NoAggregation ? (k = C, p.query.outStatistics = [
840
+ let H = h;
841
+ x.query !== void 0 && (r !== v.NoAggregation ? (H = x.type === T.HeatSeries && S?.type === T.HeatSeries ? h : F, x.query.outStatistics = [
711
842
  {
712
- ...f.query?.outStatistics?.[0] ?? {},
713
- onStatisticField: F,
714
- outStatisticFieldName: C,
843
+ ...A.query?.outStatistics?.[0] ?? {},
844
+ onStatisticField: h,
845
+ outStatisticFieldName: F,
715
846
  statisticType: r
716
847
  }
717
- ]) : delete p.query.outStatistics), p.y = k;
718
- const T = a.series.find(
719
- (S) => S.query?.outStatistics?.[0]?.onStatisticField === F && S.query.where === void 0 || S.query?.outStatistics === void 0 && (S.y === F || S.x === F)
720
- );
721
- if (T !== void 0 && typeof T.y == "string" && T.y.trim() !== "") {
722
- (b(p) && b(T) || A(p) && A(T)) && W(p, T), a.colorMatch || (O(p) && O(T) ? p.fillSymbol = T.fillSymbol : (b(p) && b(T) || A(p) && A(T)) && (p.lineSymbol = T.lineSymbol, p.markerSymbol = T.markerSymbol), h = !0);
723
- const S = $({
724
- config: a,
725
- xAxisField: e,
726
- aggregationType: r,
727
- layerInfo: i,
728
- seriesIndex: u,
729
- commonStrings: n
730
- });
731
- p.id = T.id, T.id !== S.id && T.name !== S.name && (p.id = T.id, p.name = T.name), p.assignToSecondValueAxis = T.assignToSecondValueAxis, p.type === v.HeatSeries && T.type === v.HeatSeries && (p.y = T.y, p.heatRulesType = T.heatRulesType);
732
- }
733
- m.push(p);
848
+ ]) : delete x.query.outStatistics), x.y = H, c.push(x);
734
849
  }
735
- const l = m.filter((u) => O(u)), g = m.filter(
736
- (u) => b(u) || A(u)
737
- ), d = a.series.filter((u) => O(u)), y = a.series.filter(
738
- (u) => b(u) || A(u)
850
+ const p = c.filter((d) => M(d)), f = c.filter(
851
+ (d) => D(d) || V(d)
852
+ ), u = i.series.filter((d) => M(d)), m = i.series.filter(
853
+ (d) => D(d) || V(d)
739
854
  );
740
- return d.length === 1 && l.length === 1 && !a.colorMatch && (O(d[0]) && O(l[0]) && (l[0].fillSymbol = d[0].fillSymbol), h = !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), h = !0)), a.colorMatch = !h, 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 && ((D(m[0]) && D(f[0]) || V(m[0]) && V(f[0])) && Me(f[0], m[0]), (D(m[0]) && D(f[0]) || V(m[0]) && V(f[0])) && (f[0].lineSymbol = m[0].lineSymbol, f[0].markerSymbol = m[0].markerSymbol)), c;
741
856
  }
742
- function ri(t) {
743
- const { aggregationType: e, config: s, layerInfo: r, commonStrings: a } = t, { layerFieldsInfo: i, layer: n } = r, o = M(s), c = _(s), m = G(s, r, a), h = Ie(s, r, a);
744
- if (s.series.forEach((l, g) => {
745
- const d = Q({
746
- config: s,
857
+ function Ni(s) {
858
+ const { aggregationType: e, config: t, layerInfo: r, commonStrings: i } = s, { layerFieldsInfo: a, layer: n } = r, o = w(t), l = K(t), c = re(t), p = ne(t, r, i), f = We(t, r, i);
859
+ if (t.series.forEach((u, m) => {
860
+ const d = te({
861
+ config: t,
747
862
  xAxisField: o,
748
- numericFields: c,
863
+ numericFields: l,
749
864
  aggregationType: e,
865
+ splitByField: c,
750
866
  layer: n,
751
- seriesIndex: g,
752
- numericFieldIndex: g,
753
- fieldList: i
867
+ seriesIndex: m,
868
+ numericFieldIndex: m,
869
+ fieldList: a
754
870
  }).name;
755
- e !== L.NoAggregation ? (l.y = d, l.query = {
756
- ...l.query,
757
- outStatistics: [
871
+ u.y = d;
872
+ const y = we({
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 : [
758
881
  {
759
- ...l.query?.outStatistics?.[0],
882
+ ...u.query?.outStatistics?.[0],
760
883
  outStatisticFieldName: d,
761
884
  statisticType: e,
762
- onStatisticField: l.query?.outStatistics?.[0]?.onStatisticField ?? c[g]
885
+ onStatisticField: g
763
886
  }
764
887
  ]
765
- }) : (delete l.query?.outStatistics, l.y = c[g], !oe({ chartConfig: s }) && l.type === v.LineSeries && l.temporalBinning !== void 0 && delete l.temporalBinning);
766
- }), m && s.title && (s.title.content.text = H(s, r, a)), h && s.series[0].type !== v.HeatSeries) {
767
- const l = re({
768
- config: s,
888
+ }, "temporalBinning" in u && u.temporalBinning !== void 0 && (u.temporalBinning.nullPolicy = e === v.NoAggregation ? $.Interpolate : $.Null), e === v.NoAggregation && Mt(t);
889
+ }), p && t.title && (t.title.content.text = Z(t, r, i)), f && t.series[0].type !== T.HeatSeries) {
890
+ const u = ye({
891
+ config: t,
769
892
  layerInfo: r,
770
- commonStrings: a,
771
- numericFields: c,
893
+ commonStrings: i,
894
+ numericFields: l,
772
895
  aggregationType: e
773
896
  });
774
- E(s, 1, l);
897
+ W(t, 1, u);
775
898
  }
776
899
  }
777
- function Pt(t) {
900
+ function us(s) {
778
901
  const {
779
902
  splitByField: e,
780
- xAxisField: s,
903
+ xAxisField: t,
781
904
  numericFields: r,
782
- aggregationType: a,
783
- config: i,
905
+ aggregationType: i,
906
+ config: a,
784
907
  layerInfo: n,
785
908
  commonStrings: o,
786
- splitByFieldInfos: c
787
- } = t, { layer: m, layerFieldsInfo: h } = n, { categoriesArray: l, splitByFieldType: g } = c, d = r.length === 0 ? X(m).idField : r[0];
788
- let y = [], u = !1;
789
- if (l.length === 0) {
790
- y = ve({
791
- xAxisField: s,
909
+ splitByFieldInfos: l
910
+ } = s, { layer: c, layerFieldsInfo: p } = n, { categoriesArray: f, splitByFieldType: u } = l, m = we({
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,
792
920
  numericFields: r,
793
- aggregationType: a,
794
- config: i,
921
+ aggregationType: i,
922
+ config: a,
795
923
  layerInfo: n,
796
924
  commonStrings: o
797
925
  });
798
- for (const f of y)
799
- f.query && (f.query.where = `${e}=''`);
926
+ for (const y of d)
927
+ y.query && (y.query.where = `${e}=''`);
800
928
  } else
801
- for (let f = 0; f < l.length; f += 1) {
802
- const x = l[f], C = Q({
803
- config: i,
804
- 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,
805
933
  numericFields: r,
806
- aggregationType: a,
934
+ aggregationType: i,
807
935
  layer: n.layer,
808
- seriesIndex: f,
936
+ seriesIndex: y,
809
937
  splitByField: e,
810
- fieldList: h
811
- }).name, F = $({
812
- config: i,
813
- xAxisField: s,
814
- aggregationType: a,
938
+ fieldList: p
939
+ }).name, h = ae({
940
+ config: a,
941
+ xAxisField: t,
942
+ aggregationType: i,
815
943
  layerInfo: n,
816
- seriesIndex: f,
944
+ seriesIndex: y,
817
945
  commonStrings: o
818
- }), p = Te({
946
+ }), S = Oe({
819
947
  queryObject: n.layer,
820
948
  fieldName: e,
821
- fieldValue: x ?? ""
822
- }), k = `${x}`, S = {
823
- ...F,
824
- id: k,
825
- name: p ?? k,
826
- y: C,
949
+ fieldValue: g ?? ""
950
+ }), b = `${g}`, C = a.series.find(
951
+ (O) => String(Re(O)).trim().replace(/'/gu, "") === b
952
+ ), B = C?.id ?? b, A = C?.name ?? S ?? B, x = C ?? h, H = {
953
+ ...x,
954
+ id: B,
955
+ name: A,
956
+ y: F,
827
957
  query: {
828
- ...F.query,
829
- where: `${e}=${g === nt.String && x !== null ? `'${x}'` : x}`,
830
- outStatistics: a !== L.NoAggregation ? [
958
+ ...x.query,
959
+ where: `${e}=${u === De.String && g !== null ? `'${g}'` : g}`,
960
+ outStatistics: i !== v.NoAggregation ? [
831
961
  {
832
- ...F.query?.outStatistics?.[0] ?? {},
833
- onStatisticField: d,
834
- outStatisticFieldName: C,
835
- statisticType: a
962
+ ...x.query?.outStatistics?.[0] ?? {},
963
+ onStatisticField: m,
964
+ outStatisticFieldName: F,
965
+ statisticType: i
836
966
  }
837
967
  ] : void 0
838
968
  }
839
969
  };
840
- a === L.NoAggregation && (S.query !== void 0 && (delete S.query.outStatistics, delete S.query.groupByFieldsForStatistics), S.y = d);
841
- const I = i.series.find(
842
- (q) => String(be(q)).trim().replace(/'/gu, "") === k
843
- );
844
- I !== void 0 && ((b(S) && b(I) || A(S) && A(I)) && W(S, I), i.colorMatch || (O(S) && O(I) ? S.fillSymbol = I.fillSymbol : (b(S) && b(I) || A(S) && A(I)) && (S.lineSymbol = I.lineSymbol, S.markerSymbol = I.markerSymbol), u = !0), S.id = I.id, S.name = I.name, S.assignToSecondValueAxis = I.assignToSecondValueAxis), S.query && (S.query.fetchNullValues = i.series.some((q) => q.query?.fetchNullValues)), y.push(S);
970
+ d.push(H);
845
971
  }
846
- return i.colorMatch = !u, y;
972
+ return d;
847
973
  }
848
- const li = (t) => {
974
+ const Oi = (s) => {
849
975
  const {
850
976
  xAxisFieldName: e,
851
- splitByField: s,
977
+ splitByField: t,
852
978
  numericFields: r,
853
- aggregationType: a,
854
- config: i,
979
+ aggregationType: i,
980
+ config: a,
855
981
  layerInfo: n,
856
982
  commonStrings: o,
857
- splitByFieldInfos: c
858
- } = t, { layerFieldsInfo: m } = n ?? {}, h = 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, f = m.find((B) => B.name === e), x = G(i, n, o), C = Ie(i, n, o), F = Et(i, n);
859
- let p = Fe(i);
860
- const k = i.series.some((B) => O(B)), T = pt(i.series), S = ft(i.series), I = ne(i), q = {};
861
- I && (q.classBreaksRules = i.series[0]?.classBreaksRules, q.xTemporalBinning = i.series[0]?.xTemporalBinning, q.yTemporalBinning = i.series[0]?.yTemporalBinning, q.emptyCells = i.series[0]?.emptyCells, q.nullPolicy = i.nullPolicy);
862
- let Z = !1;
863
- if (tt(f) ? p = fe() : !me(g) && me(f) ? p = Se() : !U(g) && U(f) ? (p = Se(), Z = !0) : U(g) && !U(f) && (k ? p = fe() : p = gt(), Z = !0), p !== void 0 && Ne(i, o, p), h === 0 && (i.series = [
864
- $({ config: i, xAxisField: e, aggregationType: a, layerInfo: n, commonStrings: o })
865
- ]), i.series.forEach((B) => {
866
- B.x = e, B.query !== void 0 && (B.query.groupByFieldsForStatistics = [e]);
867
- }), s === "" || r.length > 1 ? xe({
983
+ splitByFieldInfos: l
984
+ } = s, { layerFieldsInfo: c } = n ?? {}, p = J(a), f = qt(a), u = w(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 = We(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 = R(m) || R(y);
987
+ if (_(y) ? S = ce() : !Q(m) && Q(y) ? S = z() : !R(m) && R(y) ? S = z() : R(m) && !R(y) && (b ? S = ce() : S = Lt()), S !== void 0 && He(a, o, S), f === 0 && (a.series = [
988
+ ae({ config: a, xAxisField: e, aggregationType: i, layerInfo: n, commonStrings: o })
989
+ ]), a.series.forEach((x) => {
990
+ x.x = e, x.query !== void 0 && (x.query.groupByFieldsForStatistics = [e]);
991
+ }), t === "" || r.length > 1 ? ge({
868
992
  fieldName: e,
869
993
  numericFields: r,
870
- fieldList: m
871
- }) ? i.series = wt({
872
- config: i,
994
+ fieldList: c
995
+ }) ? a.series = cs({
996
+ config: a,
873
997
  layerInfo: n,
874
998
  xAxisField: e,
875
999
  numericFields: r,
876
- aggregationType: a,
1000
+ aggregationType: i,
877
1001
  commonStrings: o
878
- }) : i.series = ve({
879
- config: i,
1002
+ }) : a.series = Ee({
1003
+ config: a,
880
1004
  layerInfo: n,
881
1005
  xAxisField: e,
882
1006
  numericFields: r,
883
- aggregationType: a,
1007
+ aggregationType: i,
884
1008
  commonStrings: o
885
- }) : c && (i.series = Pt({
886
- config: i,
1009
+ }) : l && (a.series = us({
1010
+ config: a,
887
1011
  layerInfo: n,
888
- splitByField: s,
1012
+ splitByField: t,
889
1013
  xAxisField: e,
890
1014
  numericFields: r,
891
- aggregationType: a,
1015
+ aggregationType: i,
892
1016
  commonStrings: o,
893
- splitByFieldInfos: c
894
- })), F && i.series[0].type !== v.HeatSeries) {
895
- const B = D(m, e);
896
- E(i, 0, B);
1017
+ splitByFieldInfos: l
1018
+ })), h && e !== U && a.series[0].type !== T.HeatSeries) {
1019
+ const x = q(c, e);
1020
+ W(a, 0, x);
897
1021
  }
898
- if (C && i.series[0].type !== v.HeatSeries) {
899
- const B = re({
900
- config: i,
1022
+ if (F && a.series[0].type !== T.HeatSeries) {
1023
+ const x = ye({
1024
+ config: a,
901
1025
  layerInfo: n,
902
1026
  commonStrings: o,
903
1027
  numericFields: r,
904
- aggregationType: a
1028
+ aggregationType: i
905
1029
  });
906
- E(i, 1, B);
1030
+ W(a, 1, x);
907
1031
  }
908
- if (x && i.title && (i.title.content.text = H(i, n, o)), N({ config: i, value: null, axisIndex: 1, isMax: !1 }), N({ config: i, value: null, axisIndex: 1, isMax: !0 }), Dt({ 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 && a !== L.NoAggregation)) {
909
- const B = p?.type === v.DateAxisFormat ? j.Null : j.Interpolate;
910
- Ct(B, i);
1032
+ if (g && a.title && (a.title.content.text = Z(a, n, o)), N({ config: a, value: null, axisIndex: 1, isMax: !1 }), N({ config: a, value: null, axisIndex: 1, isMax: !0 }), ls({ numericFields: r, aggregationType: i, config: a, layerInfo: n }), (C || B) && (N({ config: a, value: null, axisIndex: 0, isMax: !1 }), N({ config: a, value: null, axisIndex: 0, isMax: !0 }), A && i !== v.NoAggregation && !Y(p))) {
1033
+ const x = R(y) ? $.Null : $.Interpolate;
1034
+ Et(x, a);
911
1035
  }
912
- I && (i.series[0].classBreaksRules = q.classBreaksRules, i.series[0].xTemporalBinning = q.xTemporalBinning, i.series[0].yTemporalBinning = q.yTemporalBinning, i.series[0].emptyCells = q.emptyCells, i.nullPolicy = q.nullPolicy), u ? i.series.forEach((B) => {
913
- delete B.query;
914
- }) : d && i.series.forEach((B) => {
915
- B.query && (B.query.fetchNullValues = d);
916
- }), y && i.series.forEach((B) => {
917
- (B.type === v.BarSeries || B.type === v.LineSeries || B.type === v.RadarSeries) && (B.nullCategory = y);
1036
+ Y(a) && qe({ commonStrings: o, config: a, layerInfo: n }), a.series.forEach((x) => {
1037
+ d && delete x.query, I(x) && x.binTemporalData === void 0 && y?.type === De.TimeOnly && (x.binTemporalData = !1);
918
1038
  });
919
- }, W = (t, e) => {
920
- 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 = {
921
1041
  ...e.markerSymbol,
922
- color: t.markerSymbol?.color
1042
+ color: s.markerSymbol?.color
923
1043
  });
924
- }, ni = (t) => {
925
- const { config: e, seriesIndex: s, layerInfo: r, commonStrings: a } = t, i = e.series?.[s], n = ce(e);
1044
+ }, Di = (s) => {
1045
+ const { config: e, seriesIndex: t, layerInfo: r, commonStrings: i } = s, a = e.series?.[t], n = re(e);
926
1046
  let o;
927
- if (K(e.series) === w.BarAndLineFromFields)
928
- o = a.axisLabels.values;
929
- else if (Le(n)) {
930
- const m = i.query?.outStatistics?.[0]?.onStatisticField;
931
- m !== void 0 && m !== X(r.layer).idField && (o = D(r.layerFieldsInfo, m));
1047
+ if (ee(e.series) === P.BarAndLineFromFields)
1048
+ o = i.axisLabels.values;
1049
+ else if ($e(n)) {
1050
+ const c = a.query?.outStatistics?.[0]?.onStatisticField;
1051
+ c !== void 0 && c !== j(r.layer).idField && (o = q(r.layerFieldsInfo, c));
932
1052
  } else {
933
- const m = String(be(i)).trim().replace(/'/gu, "");
934
- o = Te({
1053
+ const c = String(Re(a)).trim().replace(/'/gu, "");
1054
+ o = Oe({
935
1055
  queryObject: r.layer,
936
1056
  fieldName: n,
937
- fieldValue: m ?? ""
938
- }) ?? m;
1057
+ fieldValue: c ?? ""
1058
+ }) ?? c;
939
1059
  }
940
- return o ?? i.id;
941
- }, oi = (t, e) => {
942
- if (ne(e))
943
- kt(t, e);
1060
+ return o ?? a.id;
1061
+ }, Vi = (s, e) => {
1062
+ if (Y(e))
1063
+ ss(s, e);
944
1064
  else {
945
1065
  e.orderOptions ??= {};
946
- const s = e.orderOptions?.data?.orderType;
947
- ie(e)[0] === J.customSort && s === V.Category && (e.orderOptions.data = {
948
- orderType: V.Category,
949
- 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]
950
1070
  });
951
1071
  }
952
- }, ui = async (t) => {
953
- const { config: e, layerInfo: s, errorStrings: r } = t, a = M(e), i = Fe(e)?.type, n = _(e), o = K(e.series);
954
- let c = [];
955
- return i === v.CategoryAxisFormat && (o === w.BarAndLineFromFields || a === ee ? c = n.map((m) => D(s?.layerFieldsInfo, m)) : a.trim() !== "" && a !== ee && s !== void 0 && (c = await Ve({
956
- layerInfo: s,
1072
+ }, ki = async (s) => {
1073
+ const { config: e, layerInfo: t, errorStrings: r } = s, i = w(e), a = Le(e)?.type, n = K(e), o = ee(e.series);
1074
+ let l = [];
1075
+ return a === T.CategoryAxisFormat && (o === P.BarAndLineFromFields || i === U ? l = n.map((c) => q(t?.layerFieldsInfo, c)) : i.trim() !== "" && i !== U && t !== void 0 && (l = await Xe({
1076
+ layerInfo: t,
957
1077
  config: e,
958
- category: a,
1078
+ category: i,
959
1079
  errorStrings: r
960
- }))), c;
1080
+ }))), l;
961
1081
  };
962
- function G(t, e, s) {
963
- const r = H(t, e, s), a = Tt(t), i = z(t);
964
- return r === a || i;
1082
+ function ne(s, e, t) {
1083
+ const r = Z(s, e, t), i = Rt(s), a = se(s);
1084
+ return r === i || a;
965
1085
  }
966
- function Ie(t, e, s) {
967
- const r = re({
968
- config: t,
1086
+ function We(s, e, t) {
1087
+ const r = ye({
1088
+ config: s,
969
1089
  layerInfo: e,
970
- commonStrings: s,
971
- numericFields: _(t),
972
- aggregationType: Ae(t)
973
- }), a = ue(1, t), i = z(t);
974
- return r === a || i;
1090
+ commonStrings: t,
1091
+ numericFields: K(s),
1092
+ aggregationType: Pe(s)
1093
+ }), i = ie(1, s), a = se(s);
1094
+ return r === i || a;
975
1095
  }
976
- function Et(t, e) {
977
- const s = D(e.layerFieldsInfo, M(t)), r = ue(0, t), a = z(t);
978
- return s === r || a;
1096
+ function ds(s) {
1097
+ const { config: e, layerInfo: t, commonStrings: r } = s, i = q(t.layerFieldsInfo, w(e)), a = ie(0, e), n = se(e), o = w(e) === U && (a === "" || a === r.xAxis);
1098
+ return i === a || n || o;
979
1099
  }
980
- function ci(t) {
981
- return R(t.series[0]) ? t.series[0].binTemporalData ?? !0 : !1;
1100
+ function qi(s) {
1101
+ return I(s.series[0]) ? s.series[0].binTemporalData ?? !0 : !1;
982
1102
  }
983
- function di(t, e) {
984
- oe({ chartConfig: e }) && e?.series.forEach((s) => {
985
- (s?.type === v.BarSeries || s?.type === v.LineSeries) && (s.binTemporalData = t, t ? s.temporalBinning = {
986
- unit: te.Day,
1103
+ function Ri(s, e) {
1104
+ e?.series.forEach((t) => {
1105
+ I(t) && (t.binTemporalData = s, s ? t.temporalBinning = {
1106
+ unit: le.Day,
987
1107
  size: 0,
988
- timeAggregationType: rt.Start,
1108
+ timeAggregationType: ht.Start,
989
1109
  trimIncompleteTimeInterval: !0,
990
- nullPolicy: j.Null
991
- } : delete s.temporalBinning);
1110
+ nullPolicy: $.Null
1111
+ } : delete t.temporalBinning);
992
1112
  });
993
1113
  }
994
1114
  export {
995
- Ts as $,
996
- oi as A,
997
- li as B,
998
- ci as C,
999
- di as D,
1000
- H as E,
1001
- Rt as F,
1002
- Cs as G,
1003
- Ks as H,
1004
- Qs as I,
1005
- As as J,
1006
- bs as K,
1007
- Is as L,
1008
- vs as M,
1009
- zs as N,
1010
- _s as O,
1011
- Gs as P,
1012
- Zs as Q,
1013
- ti as R,
1014
- si as S,
1015
- ii as T,
1016
- ai as U,
1017
- Ss as V,
1018
- hs as W,
1019
- qs as X,
1020
- Ls as Y,
1021
- Ns as Z,
1022
- Vs as _,
1023
- ms as a,
1024
- Fs as a0,
1025
- Bs as a1,
1026
- xs as a2,
1027
- Os as a3,
1028
- Ds as a4,
1029
- ws as a5,
1030
- Ps as a6,
1031
- ks as a7,
1032
- Rs as a8,
1033
- Es as a9,
1034
- Ot as aa,
1035
- Ms as ab,
1036
- Ys as ac,
1037
- $s as ad,
1038
- Ws as ae,
1039
- Xs as af,
1040
- Hs as ag,
1041
- ei as ah,
1042
- Js as ai,
1043
- Us as aj,
1044
- js as ak,
1045
- cs as b,
1046
- ds as c,
1047
- _ as d,
1048
- ce as e,
1049
- fs as f,
1050
- Ae as g,
1051
- ni as h,
1052
- gs as i,
1053
- ss as j,
1054
- xt as k,
1055
- ls as l,
1056
- is as m,
1057
- ns as n,
1058
- as as o,
1059
- ps as p,
1060
- os as q,
1061
- bt as r,
1062
- Bt as s,
1063
- rs as t,
1064
- ys as u,
1065
- Ct as v,
1066
- us as w,
1067
- ri as x,
1068
- ie as y,
1069
- ui as z
1115
+ Gs as $,
1116
+ ki as A,
1117
+ Vi as B,
1118
+ Oi as C,
1119
+ qi as D,
1120
+ Ri as E,
1121
+ Z as F,
1122
+ qe 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,
1130
+ zs as O,
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
+ Ht as W,
1139
+ Li as X,
1140
+ Xs as Y,
1141
+ Hs 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
+ Ks as a4,
1149
+ Zs 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
+ Ps as b,
1169
+ ws as c,
1170
+ K as d,
1171
+ re as e,
1172
+ $s as f,
1173
+ Pe as g,
1174
+ Di as h,
1175
+ Ws as i,
1176
+ Ns as j,
1177
+ wt as k,
1178
+ Pt as l,
1179
+ ks as m,
1180
+ Os as n,
1181
+ qs as o,
1182
+ Ys as p,
1183
+ Ds as q,
1184
+ Ut as r,
1185
+ ke as s,
1186
+ Rs as t,
1187
+ Es as u,
1188
+ Vs as v,
1189
+ Et as w,
1190
+ Mt as x,
1191
+ Ni as y,
1192
+ de as z
1070
1193
  };