@arcgis/charts-components 5.2.0-next.6 → 5.2.0-next.60

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