@arcgis/charts-components 5.1.0-next.98 → 5.1.0

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 (498) hide show
  1. package/README.md +2 -2
  2. package/dist/cdn/2JFIUU3X.js +2 -0
  3. package/dist/cdn/2JUO3GP2.js +2 -0
  4. package/dist/cdn/{GDFOZNYR.js → 2WDUA6L4.js} +2 -2
  5. package/dist/cdn/334U2KAR.js +2 -0
  6. package/dist/cdn/3A5542IZ.js +2 -0
  7. package/dist/cdn/3DYFAIW2.js +2 -0
  8. package/dist/cdn/43P4WOC4.js +2 -0
  9. package/dist/cdn/4LA6DRGM.js +2 -0
  10. package/dist/cdn/4P6NLXDP.js +2 -0
  11. package/dist/cdn/4XSIB5AA.js +2 -0
  12. package/dist/cdn/{OEZ2XTZE.js → 64HPM724.js} +1 -1
  13. package/dist/cdn/6BJXOUW2.js +2 -0
  14. package/dist/cdn/6IL4JEXA.js +2 -0
  15. package/dist/cdn/6JI4NDJ6.js +2 -0
  16. package/dist/cdn/6KA24PEA.js +2 -0
  17. package/dist/cdn/6TV5E5JT.js +2 -0
  18. package/dist/cdn/75Y43JLP.js +2 -0
  19. package/dist/cdn/777EBGS5.js +2 -0
  20. package/dist/cdn/7HZFPSKD.js +2 -0
  21. package/dist/cdn/7MKAC33Z.js +2 -0
  22. package/dist/cdn/7X2HKQS7.js +2 -0
  23. package/dist/cdn/AHPLTCSH.js +2 -0
  24. package/dist/cdn/AVVOHZH7.js +2 -0
  25. package/dist/cdn/AZEQVTDQ.js +2 -0
  26. package/dist/cdn/AZIX3IFP.js +2 -0
  27. package/dist/cdn/BNTRLKLG.js +2 -0
  28. package/dist/cdn/BSFUPCQF.js +2 -0
  29. package/dist/cdn/C2TRAWJB.js +2 -0
  30. package/dist/cdn/CH3BYORW.js +2 -0
  31. package/dist/cdn/CPYOPFIS.js +2 -0
  32. package/dist/cdn/CPYPTGTK.js +2 -0
  33. package/dist/cdn/CSV6Q3VU.js +2 -0
  34. package/dist/cdn/CWJZT5NA.js +2 -0
  35. package/dist/cdn/D64RR3BQ.js +2 -0
  36. package/dist/cdn/E6ICXDNS.js +2 -0
  37. package/dist/cdn/EBN6GWGZ.js +2 -0
  38. package/dist/cdn/EX7VWKWX.js +2 -0
  39. package/dist/cdn/EXTC334W.js +2 -0
  40. package/dist/cdn/F6NHEUXC.js +2 -0
  41. package/dist/cdn/F7KMJXGD.js +2 -0
  42. package/dist/cdn/FCBTMNYR.js +2 -0
  43. package/dist/cdn/FIMXZMTB.js +2 -0
  44. package/dist/cdn/FNHDDK6Y.js +2 -0
  45. package/dist/cdn/GFLYSDHX.js +2 -0
  46. package/dist/cdn/H2F4EMEO.js +2 -0
  47. package/dist/cdn/HBEEYG5R.js +2 -0
  48. package/dist/cdn/HCEKAYF5.js +2 -0
  49. package/dist/cdn/HCIVARDS.js +2 -0
  50. package/dist/cdn/HIVZ4CAD.js +2 -0
  51. package/dist/cdn/HXLQEUPH.js +2 -0
  52. package/dist/cdn/{7LOXDMX3.js → JBWK3DSH.js} +1 -1
  53. package/dist/cdn/JW6KFBCT.js +2 -0
  54. package/dist/cdn/K6N5BBOM.js +2 -0
  55. package/dist/cdn/K7IQIF6X.js +2 -0
  56. package/dist/cdn/KGNYAMFB.js +2 -0
  57. package/dist/cdn/{4QCCCXMK.js → KUEF5L2Y.js} +1 -1
  58. package/dist/cdn/LHHRGNPI.js +2 -0
  59. package/dist/cdn/LM3RWOCL.js +2 -0
  60. package/dist/cdn/LSOS2REF.js +2 -0
  61. package/dist/cdn/{6ES4YKXX.js → LY7A6MST.js} +1 -1
  62. package/dist/cdn/{MRTH2CHN.js → M23H264O.js} +1 -1
  63. package/dist/cdn/MEQCCHAT.js +2 -0
  64. package/dist/cdn/MFOZISZU.js +2 -0
  65. package/dist/cdn/{FPDW4F45.js → MZ2UZAFW.js} +1 -1
  66. package/dist/cdn/NNH6F2PX.js +2 -0
  67. package/dist/cdn/NQAPPISU.js +2 -0
  68. package/dist/cdn/OH3XEKCB.js +2 -0
  69. package/dist/cdn/OR5W4LAU.js +2 -0
  70. package/dist/cdn/OTJX7BJS.js +2 -0
  71. package/dist/cdn/P5XJTTU3.js +3 -0
  72. package/dist/cdn/PDBL2LVQ.js +2 -0
  73. package/dist/cdn/PUWB3ZW4.js +2 -0
  74. package/dist/cdn/PXEQJDTP.js +2 -0
  75. package/dist/cdn/QLAAJ4TP.js +2 -0
  76. package/dist/cdn/QMOXGUU6.js +2 -0
  77. package/dist/cdn/QQY7FC2J.js +2 -0
  78. package/dist/cdn/QV7ZOLEX.js +2 -0
  79. package/dist/cdn/QY4I5GS2.js +4 -0
  80. package/dist/cdn/R7NIN2IP.js +2 -0
  81. package/dist/cdn/RV3ILDL6.js +2 -0
  82. package/dist/cdn/RXOISEOG.js +2 -0
  83. package/dist/cdn/SBS4J65N.js +2 -0
  84. package/dist/cdn/SPI2NEGA.js +2 -0
  85. package/dist/cdn/SPXLWSUF.js +2 -0
  86. package/dist/cdn/SS5KCPTA.js +2 -0
  87. package/dist/cdn/SSLS3BOB.js +2 -0
  88. package/dist/cdn/SU5G6JQD.js +2 -0
  89. package/dist/cdn/{XSMRKVR2.js → TJQGGNGV.js} +1 -1
  90. package/dist/cdn/{HX4RTI3G.js → TLS7SEFF.js} +1 -1
  91. package/dist/cdn/TOO3T62Y.js +2 -0
  92. package/dist/cdn/TTSQHXH3.js +2 -0
  93. package/dist/cdn/TWUQ2ILR.js +102 -0
  94. package/dist/cdn/U2LFGV2U.js +2 -0
  95. package/dist/cdn/UFYGFN2M.js +2 -0
  96. package/dist/cdn/UM6YK4R4.js +2 -0
  97. package/dist/cdn/USBY2OTE.js +233 -0
  98. package/dist/cdn/UUNBOK5Y.js +2 -0
  99. package/dist/cdn/V6NWTBC4.js +58 -0
  100. package/dist/cdn/VANTG2HX.js +2 -0
  101. package/dist/cdn/VESCHQRS.js +2 -0
  102. package/dist/cdn/VKY6S62L.js +2 -0
  103. package/dist/cdn/VPURXMI6.js +2 -0
  104. package/dist/cdn/VUZ4QNET.js +2 -0
  105. package/dist/cdn/WC4T47OL.js +2 -0
  106. package/dist/cdn/WEGNK77V.js +2 -0
  107. package/dist/cdn/WND4PQ7O.js +2 -0
  108. package/dist/cdn/XI3H6GMK.js +2 -0
  109. package/dist/cdn/XOB365BI.js +2 -0
  110. package/dist/cdn/XVU4S23S.js +2 -0
  111. package/dist/cdn/YK5PPTDT.js +2 -0
  112. package/dist/cdn/YKGXUFVU.js +2 -0
  113. package/dist/cdn/YUO2G7OX.js +3 -0
  114. package/dist/cdn/YX7I5VFP.js +2 -0
  115. package/dist/cdn/ZPNW6LWT.js +2 -0
  116. package/dist/cdn/{FKZETVX5.js → ZWFVKTLC.js} +1 -1
  117. package/dist/cdn/assets/charts-config-line-style/t9n/messages.ar.json +1 -1
  118. package/dist/cdn/assets/charts-config-line-style/t9n/messages.bg.json +1 -1
  119. package/dist/cdn/assets/charts-config-line-style/t9n/messages.bs.json +1 -1
  120. package/dist/cdn/assets/charts-config-line-style/t9n/messages.ca.json +1 -1
  121. package/dist/cdn/assets/charts-config-line-style/t9n/messages.cs.json +1 -1
  122. package/dist/cdn/assets/charts-config-line-style/t9n/messages.da.json +1 -1
  123. package/dist/cdn/assets/charts-config-line-style/t9n/messages.de.json +1 -1
  124. package/dist/cdn/assets/charts-config-line-style/t9n/messages.el.json +1 -1
  125. package/dist/cdn/assets/charts-config-line-style/t9n/messages.es.json +1 -1
  126. package/dist/cdn/assets/charts-config-line-style/t9n/messages.et.json +1 -1
  127. package/dist/cdn/assets/charts-config-line-style/t9n/messages.fi.json +1 -1
  128. package/dist/cdn/assets/charts-config-line-style/t9n/messages.fr.json +1 -1
  129. package/dist/cdn/assets/charts-config-line-style/t9n/messages.he.json +1 -1
  130. package/dist/cdn/assets/charts-config-line-style/t9n/messages.hr.json +1 -1
  131. package/dist/cdn/assets/charts-config-line-style/t9n/messages.hu.json +1 -1
  132. package/dist/cdn/assets/charts-config-line-style/t9n/messages.id.json +1 -1
  133. package/dist/cdn/assets/charts-config-line-style/t9n/messages.it.json +1 -1
  134. package/dist/cdn/assets/charts-config-line-style/t9n/messages.ja.json +1 -1
  135. package/dist/cdn/assets/charts-config-line-style/t9n/messages.ko.json +1 -1
  136. package/dist/cdn/assets/charts-config-line-style/t9n/messages.lt.json +1 -1
  137. package/dist/cdn/assets/charts-config-line-style/t9n/messages.lv.json +1 -1
  138. package/dist/cdn/assets/charts-config-line-style/t9n/messages.nl.json +1 -1
  139. package/dist/cdn/assets/charts-config-line-style/t9n/messages.no.json +1 -1
  140. package/dist/cdn/assets/charts-config-line-style/t9n/messages.pl.json +1 -1
  141. package/dist/cdn/assets/charts-config-line-style/t9n/messages.pt-BR.json +1 -1
  142. package/dist/cdn/assets/charts-config-line-style/t9n/messages.pt-PT.json +1 -1
  143. package/dist/cdn/assets/charts-config-line-style/t9n/messages.ro.json +1 -1
  144. package/dist/cdn/assets/charts-config-line-style/t9n/messages.ru.json +1 -1
  145. package/dist/cdn/assets/charts-config-line-style/t9n/messages.sk.json +1 -1
  146. package/dist/cdn/assets/charts-config-line-style/t9n/messages.sl.json +1 -1
  147. package/dist/cdn/assets/charts-config-line-style/t9n/messages.sr.json +1 -1
  148. package/dist/cdn/assets/charts-config-line-style/t9n/messages.sv.json +1 -1
  149. package/dist/cdn/assets/charts-config-line-style/t9n/messages.th.json +1 -1
  150. package/dist/cdn/assets/charts-config-line-style/t9n/messages.tr.json +1 -1
  151. package/dist/cdn/assets/charts-config-line-style/t9n/messages.uk.json +1 -1
  152. package/dist/cdn/assets/charts-config-line-style/t9n/messages.vi.json +1 -1
  153. package/dist/cdn/assets/charts-config-line-style/t9n/messages.zh-CN.json +1 -1
  154. package/dist/cdn/assets/charts-config-line-style/t9n/messages.zh-HK.json +1 -1
  155. package/dist/cdn/assets/charts-config-line-style/t9n/messages.zh-TW.json +1 -1
  156. package/dist/cdn/assets/common/t9n/messages.ar.json +1 -1
  157. package/dist/cdn/assets/common/t9n/messages.bg.json +1 -1
  158. package/dist/cdn/assets/common/t9n/messages.bs.json +1 -1
  159. package/dist/cdn/assets/common/t9n/messages.ca.json +1 -1
  160. package/dist/cdn/assets/common/t9n/messages.cs.json +1 -1
  161. package/dist/cdn/assets/common/t9n/messages.da.json +1 -1
  162. package/dist/cdn/assets/common/t9n/messages.de.json +1 -1
  163. package/dist/cdn/assets/common/t9n/messages.el.json +1 -1
  164. package/dist/cdn/assets/common/t9n/messages.en.json +1 -1
  165. package/dist/cdn/assets/common/t9n/messages.es.json +1 -1
  166. package/dist/cdn/assets/common/t9n/messages.et.json +1 -1
  167. package/dist/cdn/assets/common/t9n/messages.fi.json +1 -1
  168. package/dist/cdn/assets/common/t9n/messages.fr.json +1 -1
  169. package/dist/cdn/assets/common/t9n/messages.he.json +1 -1
  170. package/dist/cdn/assets/common/t9n/messages.hr.json +1 -1
  171. package/dist/cdn/assets/common/t9n/messages.hu.json +1 -1
  172. package/dist/cdn/assets/common/t9n/messages.id.json +1 -1
  173. package/dist/cdn/assets/common/t9n/messages.it.json +1 -1
  174. package/dist/cdn/assets/common/t9n/messages.ja.json +1 -1
  175. package/dist/cdn/assets/common/t9n/messages.ko.json +1 -1
  176. package/dist/cdn/assets/common/t9n/messages.lt.json +1 -1
  177. package/dist/cdn/assets/common/t9n/messages.lv.json +1 -1
  178. package/dist/cdn/assets/common/t9n/messages.nl.json +1 -1
  179. package/dist/cdn/assets/common/t9n/messages.no.json +1 -1
  180. package/dist/cdn/assets/common/t9n/messages.pl.json +1 -1
  181. package/dist/cdn/assets/common/t9n/messages.pt-BR.json +1 -1
  182. package/dist/cdn/assets/common/t9n/messages.pt-PT.json +1 -1
  183. package/dist/cdn/assets/common/t9n/messages.ro.json +1 -1
  184. package/dist/cdn/assets/common/t9n/messages.ru.json +1 -1
  185. package/dist/cdn/assets/common/t9n/messages.sk.json +1 -1
  186. package/dist/cdn/assets/common/t9n/messages.sl.json +1 -1
  187. package/dist/cdn/assets/common/t9n/messages.sr.json +1 -1
  188. package/dist/cdn/assets/common/t9n/messages.sv.json +1 -1
  189. package/dist/cdn/assets/common/t9n/messages.th.json +1 -1
  190. package/dist/cdn/assets/common/t9n/messages.tr.json +1 -1
  191. package/dist/cdn/assets/common/t9n/messages.uk.json +1 -1
  192. package/dist/cdn/assets/common/t9n/messages.vi.json +1 -1
  193. package/dist/cdn/assets/common/t9n/messages.zh-CN.json +1 -1
  194. package/dist/cdn/assets/common/t9n/messages.zh-HK.json +1 -1
  195. package/dist/cdn/assets/common/t9n/messages.zh-TW.json +1 -1
  196. package/dist/cdn/index.js +1 -1
  197. package/dist/cdn/model/shared/setup-utils.js +2 -0
  198. package/dist/chart-rendering/common/data/utils/summarize-data/interfaces.d.ts +5 -1
  199. package/dist/chart-rendering/common/interfaces.d.ts +11 -10
  200. package/dist/chunks/axis-lines-symbol.js +13 -13
  201. package/dist/chunks/bar-chart-model.js +25 -52
  202. package/dist/chunks/bar-chart-series.js +10 -40
  203. package/dist/chunks/box-plot-data.js +149 -170
  204. package/dist/chunks/box-plot-model.js +118 -110
  205. package/dist/chunks/chart-model.js +184 -179
  206. package/dist/chunks/chart-object-literals.js +189 -0
  207. package/dist/chunks/chart-ui-utils.js +17 -16
  208. package/dist/chunks/chart-ui-utils2.js +91 -117
  209. package/dist/chunks/class-breaks.js +375 -196
  210. package/dist/chunks/combo-bar-line-chart-model.js +11 -10
  211. package/dist/chunks/data-labels-symbol.js +1 -1
  212. package/dist/chunks/data-labels-visibility.js +56 -84
  213. package/dist/chunks/data.js +76 -99
  214. package/dist/chunks/default.js +6 -7
  215. package/dist/chunks/gauge-model.js +206 -191
  216. package/dist/chunks/generate-x-axis-title.js +40 -67
  217. package/dist/chunks/heat-chart-model.js +184 -184
  218. package/dist/chunks/histogram-data.js +56 -80
  219. package/dist/chunks/histogram-model.js +30 -30
  220. package/dist/chunks/index.js +568 -20527
  221. package/dist/chunks/index2.js +8756 -596
  222. package/dist/chunks/index3.js +876 -160
  223. package/dist/chunks/index4.js +10840 -82
  224. package/dist/chunks/index5.js +100 -63
  225. package/dist/chunks/index6.js +66 -0
  226. package/dist/chunks/interfaces.js +31 -32
  227. package/dist/chunks/line-chart-model.js +25 -24
  228. package/dist/chunks/model-setter.js +41 -37
  229. package/dist/chunks/model-types.js +43 -0
  230. package/dist/chunks/model-with-x-guides.js +6 -6
  231. package/dist/chunks/model-with-y-guides.js +90 -117
  232. package/dist/chunks/negative-values-stacked-to-baseline.js +50 -79
  233. package/dist/chunks/pie-chart-data.js +88 -110
  234. package/dist/chunks/pie-chart-model.js +63 -86
  235. package/dist/chunks/radar-chart-model.js +36 -63
  236. package/dist/chunks/resource.js +8 -10
  237. package/dist/chunks/rotated-state.js +31 -46
  238. package/dist/chunks/runtime.js +3 -3
  239. package/dist/chunks/scatterplot-model.js +59 -81
  240. package/dist/chunks/serial-chart-data.js +795 -704
  241. package/dist/chunks/serial-chart-model.js +204 -220
  242. package/dist/chunks/series-length.js +26 -54
  243. package/dist/chunks/series-types.js +21 -205
  244. package/dist/chunks/series.js +9 -38
  245. package/dist/chunks/store.js +5 -5
  246. package/dist/chunks/time-zone.js +22 -23
  247. package/dist/chunks/type-guards.js +23 -132
  248. package/dist/chunks/type-guards2.js +100 -191
  249. package/dist/chunks/type-guards3.js +173 -0
  250. package/dist/chunks/utils.js +120 -128
  251. package/dist/chunks/utils2.js +34 -63
  252. package/dist/chunks/web-component-utils.js +660 -396
  253. package/dist/chunks/x-bounds.js +74 -100
  254. package/dist/components/arcgis-chart/customElement.d.ts +95 -52
  255. package/dist/components/arcgis-chart/customElement.js +8114 -8143
  256. package/dist/components/arcgis-charts-action-bar/customElement.d.ts +18 -0
  257. package/dist/components/arcgis-charts-action-bar/customElement.js +26 -27
  258. package/dist/components/arcgis-charts-config-axis/customElement.js +12 -13
  259. package/dist/components/arcgis-charts-config-bar-chart/customElement.js +36 -63
  260. package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +49 -72
  261. package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +33 -54
  262. package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +37 -64
  263. package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +15 -43
  264. package/dist/components/arcgis-charts-config-box-plot/customElement.js +12 -39
  265. package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +87 -111
  266. package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +41 -65
  267. package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +14 -41
  268. package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +22 -49
  269. package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +17 -45
  270. package/dist/components/arcgis-charts-config-colors/customElement.js +1 -1
  271. package/dist/components/arcgis-charts-config-create-flow/customElement.js +47 -67
  272. package/dist/components/arcgis-charts-config-font-style/customElement.js +21 -48
  273. package/dist/components/arcgis-charts-config-format/customElement.js +58 -85
  274. package/dist/components/arcgis-charts-config-format-popover/customElement.js +12 -44
  275. package/dist/components/arcgis-charts-config-general/customElement.js +29 -55
  276. package/dist/components/arcgis-charts-config-guide/customElement.js +40 -64
  277. package/dist/components/arcgis-charts-config-guide-popover/customElement.js +22 -54
  278. package/dist/components/arcgis-charts-config-guides/customElement.js +1 -3
  279. package/dist/components/arcgis-charts-config-guides-type-popover/customElement.js +10 -39
  280. package/dist/components/arcgis-charts-config-heat-chart/customElement.js +29 -56
  281. package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +152 -174
  282. package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +51 -74
  283. package/dist/components/arcgis-charts-config-histogram/customElement.js +33 -55
  284. package/dist/components/arcgis-charts-config-histogram-data/customElement.js +63 -86
  285. package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +33 -57
  286. package/dist/components/arcgis-charts-config-line-chart/customElement.js +27 -54
  287. package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +25 -48
  288. package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +46 -69
  289. package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +33 -61
  290. package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +14 -42
  291. package/dist/components/arcgis-charts-config-line-style/customElement.js +9 -11
  292. package/dist/components/arcgis-charts-config-pie-chart/customElement.js +28 -55
  293. package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +24 -49
  294. package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +43 -67
  295. package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +40 -67
  296. package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +15 -43
  297. package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +33 -55
  298. package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +73 -96
  299. package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +16 -42
  300. package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +10 -38
  301. package/dist/components/arcgis-charts-config-view-charts/customElement.js +21 -50
  302. package/dist/components/arcgis-charts-info-modal/customElement.js +24 -49
  303. package/dist/docs/api.json +1 -1
  304. package/dist/docs/docs.json +1 -1
  305. package/dist/docs/vscode.html-custom-data.json +1 -1
  306. package/dist/docs/web-types.json +1 -1
  307. package/dist/index.d.ts +65 -3
  308. package/dist/index.js +476 -461
  309. package/dist/json-schema/index.d.ts +4834 -4729
  310. package/dist/loader.js +2 -2
  311. package/dist/model/box-plot-model/box-plot-model.d.ts +12 -12
  312. package/dist/model/chart-model/chart-model-base.d.ts +2 -2
  313. package/dist/model/chart-model/chart-model.d.ts +2 -1
  314. package/dist/model/gauge-model/gauge-model.d.ts +25 -7
  315. package/dist/model/heat-chart-model/heat-chart-model.d.ts +9 -2
  316. package/dist/model/interfaces/chart-interfaces.d.ts +5 -2
  317. package/dist/model/interfaces/common.d.ts +0 -2
  318. package/dist/model/line-chart-model/line-chart-model.d.ts +3 -3
  319. package/dist/model/pie-chart-model/pie-chart-model.d.ts +6 -6
  320. package/dist/model/properties/axes/x-axis/x-bounds.d.ts +2 -3
  321. package/dist/model/properties/data-tooltip-font-size.d.ts +20 -0
  322. package/dist/model/properties/rotated-state.d.ts +6 -0
  323. package/dist/model/properties/time-zone.d.ts +1 -11
  324. package/dist/model/shared/setup-utils.d.ts +5 -2
  325. package/dist/model/shared/setup-utils.js +80 -0
  326. package/dist/spec/chart-object-literals.d.ts +1 -0
  327. package/dist/spec/rest-js-object-literals.d.ts +2 -2
  328. package/dist/spec/rest-js-types.d.ts +22 -8
  329. package/dist/spec/web-chart.d.ts +54 -3
  330. package/dist/types/lumina.d.ts +1 -1
  331. package/dist/types/preact.d.ts +1 -1
  332. package/dist/types/react.d.ts +1 -1
  333. package/dist/types/stencil.d.ts +1 -1
  334. package/dist/utils/chart-config/converter/index.d.ts +2 -1
  335. package/dist/utils/chart-config/converter/index.js +723 -0
  336. package/dist/utils/chart-config/utils/index.d.ts +49 -9
  337. package/dist/utils/chart-config/validator/index.d.ts +1 -0
  338. package/dist/utils/chart-config/validator/interfaces.d.ts +4 -4
  339. package/dist/utils/components/themes.d.ts +8 -0
  340. package/dist/utils/data/categorical-data/index.d.ts +4 -1
  341. package/dist/utils/data/index.d.ts +26 -19
  342. package/dist/utils/defaults/index.d.ts +23 -4
  343. package/dist/utils/errors/index.d.ts +1 -1
  344. package/dist/utils/layer/index.d.ts +32 -11
  345. package/dist/utils/layer/inline-conversion/interfaces.d.ts +0 -2
  346. package/dist/utils/layer/query-features/index.d.ts +20 -3
  347. package/dist/utils/layer/query-parser/index.d.ts +7 -5
  348. package/dist/utils/layer/utils/index.d.ts +21 -8
  349. package/dist/utils/localization/interfaces.d.ts +18 -0
  350. package/dist/utils/misc/index.d.ts +2 -3
  351. package/dist/utils/type-guards/index.d.ts +9 -1
  352. package/dist/utils/types/index.d.ts +1 -5
  353. package/package.json +12 -9
  354. package/dist/cdn/2L4KRFAO.js +0 -2
  355. package/dist/cdn/2WMGX4LG.js +0 -2
  356. package/dist/cdn/3LHIBPWU.js +0 -2
  357. package/dist/cdn/3NHSJC2V.js +0 -2
  358. package/dist/cdn/3TYKSX6S.js +0 -2
  359. package/dist/cdn/4A46GMQH.js +0 -2
  360. package/dist/cdn/4AP7OF2H.js +0 -2
  361. package/dist/cdn/4F4XNNGS.js +0 -58
  362. package/dist/cdn/4MGAAHBF.js +0 -2
  363. package/dist/cdn/533OIYHT.js +0 -2
  364. package/dist/cdn/54JMGDNM.js +0 -2
  365. package/dist/cdn/6WQO34EX.js +0 -2
  366. package/dist/cdn/7BIC7WRS.js +0 -2
  367. package/dist/cdn/7JYYEL7C.js +0 -2
  368. package/dist/cdn/ABRBND33.js +0 -2
  369. package/dist/cdn/AKNI6ZDM.js +0 -2
  370. package/dist/cdn/B5DED64I.js +0 -2
  371. package/dist/cdn/BDROQPZY.js +0 -2
  372. package/dist/cdn/BGHKBRAY.js +0 -2
  373. package/dist/cdn/BIBH7Z6B.js +0 -2
  374. package/dist/cdn/BYMLWT4F.js +0 -2
  375. package/dist/cdn/C6VFUQYR.js +0 -2
  376. package/dist/cdn/CBAUBDVW.js +0 -2
  377. package/dist/cdn/CJPYRPNG.js +0 -2
  378. package/dist/cdn/DOKKZWPP.js +0 -2
  379. package/dist/cdn/DQOPCAYH.js +0 -2
  380. package/dist/cdn/ETKEDYJI.js +0 -2
  381. package/dist/cdn/ETLJKITO.js +0 -2
  382. package/dist/cdn/FPOY54UW.js +0 -2
  383. package/dist/cdn/FSPMT24F.js +0 -2
  384. package/dist/cdn/FTTFIYT7.js +0 -2
  385. package/dist/cdn/FXE7IJTK.js +0 -2
  386. package/dist/cdn/FXXKMSX7.js +0 -2
  387. package/dist/cdn/GCLBISUU.js +0 -2
  388. package/dist/cdn/GG4V6IWC.js +0 -2
  389. package/dist/cdn/GN55TJMJ.js +0 -2
  390. package/dist/cdn/GOCPXSNF.js +0 -2
  391. package/dist/cdn/GR2MDXNR.js +0 -2
  392. package/dist/cdn/GSIQ3AM5.js +0 -100
  393. package/dist/cdn/HAPHXGDG.js +0 -2
  394. package/dist/cdn/HRWT2MVN.js +0 -2
  395. package/dist/cdn/HZLHE35F.js +0 -2
  396. package/dist/cdn/IYAA5JNA.js +0 -2
  397. package/dist/cdn/J34XNLVV.js +0 -2
  398. package/dist/cdn/JII3X6GD.js +0 -2
  399. package/dist/cdn/JIJTDQNZ.js +0 -2
  400. package/dist/cdn/JP5QECNE.js +0 -2
  401. package/dist/cdn/JQAYCBRF.js +0 -2
  402. package/dist/cdn/JUTIXOZ7.js +0 -2
  403. package/dist/cdn/JXUQXIWS.js +0 -2
  404. package/dist/cdn/KDU3ISRJ.js +0 -2
  405. package/dist/cdn/KHK4ESCR.js +0 -2
  406. package/dist/cdn/KYO65OVO.js +0 -2
  407. package/dist/cdn/KZQPT32K.js +0 -2
  408. package/dist/cdn/L5ESAQAD.js +0 -2
  409. package/dist/cdn/LRLFI235.js +0 -2
  410. package/dist/cdn/LTPICGE4.js +0 -2
  411. package/dist/cdn/M6AWZ4GQ.js +0 -2
  412. package/dist/cdn/N3QESBWD.js +0 -2
  413. package/dist/cdn/N72JHWOW.js +0 -2
  414. package/dist/cdn/NJOCWENE.js +0 -2
  415. package/dist/cdn/NLPIWZ6O.js +0 -2
  416. package/dist/cdn/OG6XNLNH.js +0 -2
  417. package/dist/cdn/OGYHFMDK.js +0 -2
  418. package/dist/cdn/OM2N4R7B.js +0 -2
  419. package/dist/cdn/OSLQS2GQ.js +0 -2
  420. package/dist/cdn/OXOPYUOS.js +0 -2
  421. package/dist/cdn/PDXLVDA2.js +0 -2
  422. package/dist/cdn/PE5WVBYF.js +0 -2
  423. package/dist/cdn/PECU6KQ5.js +0 -2
  424. package/dist/cdn/PHSAVE6E.js +0 -2
  425. package/dist/cdn/PMSMMLY4.js +0 -2
  426. package/dist/cdn/PSDHB4WG.js +0 -2
  427. package/dist/cdn/PZAAA62R.js +0 -2
  428. package/dist/cdn/QCLX4TIM.js +0 -2
  429. package/dist/cdn/QCNYOXG2.js +0 -2
  430. package/dist/cdn/QNEGICXV.js +0 -2
  431. package/dist/cdn/QQNMK2QL.js +0 -2
  432. package/dist/cdn/RK3BAJOA.js +0 -2
  433. package/dist/cdn/SCVQSDX5.js +0 -2
  434. package/dist/cdn/T5RPAQYI.js +0 -2
  435. package/dist/cdn/TCJ5YAK5.js +0 -2
  436. package/dist/cdn/TNXVGUYE.js +0 -2
  437. package/dist/cdn/TQG6RDX5.js +0 -2
  438. package/dist/cdn/URBTZGXF.js +0 -2
  439. package/dist/cdn/URX6VCYJ.js +0 -2
  440. package/dist/cdn/VFNQXIXU.js +0 -2
  441. package/dist/cdn/VFULMUE5.js +0 -2
  442. package/dist/cdn/VRCCFTGJ.js +0 -2
  443. package/dist/cdn/W553UCBH.js +0 -4
  444. package/dist/cdn/WMLNHOVN.js +0 -2
  445. package/dist/cdn/WTPRSRPB.js +0 -2
  446. package/dist/cdn/XEDWXXF3.js +0 -2
  447. package/dist/cdn/Y4DORYPQ.js +0 -2
  448. package/dist/cdn/YEOSKZ4Q.js +0 -2
  449. package/dist/cdn/ZAKAJKUI.js +0 -2
  450. package/dist/cdn/ZNOJBKUZ.js +0 -2
  451. package/dist/chunks/setup-utils.js +0 -79
  452. package/dist/model/index.d.ts +0 -19
  453. package/dist/model.js +0 -42
  454. package/dist/spec/index.d.ts +0 -8
  455. package/dist/utils/index.d.ts +0 -33
  456. /package/dist/cdn/{SOIF6AMX.js → 27Y4YBZ7.js} +0 -0
  457. /package/dist/cdn/{BQOMKKBK.js → 2W64WSBS.js} +0 -0
  458. /package/dist/cdn/{NGLXQHZ2.js → 3S33OYZS.js} +0 -0
  459. /package/dist/cdn/{ALRIN5E5.js → 47SEEPGM.js} +0 -0
  460. /package/dist/cdn/{EVHJVY4I.js → 4CEOP4CL.js} +0 -0
  461. /package/dist/cdn/{ZL5EGDOW.js → 4NXQY2SY.js} +0 -0
  462. /package/dist/cdn/{I3BNBZ4D.js → 4RZOR2GZ.js} +0 -0
  463. /package/dist/cdn/{COQ55XOW.js → 5S37PAVK.js} +0 -0
  464. /package/dist/cdn/{TX2SYGTH.js → 5VCKTFEN.js} +0 -0
  465. /package/dist/cdn/{NPVXLEZW.js → 6SLYYVAM.js} +0 -0
  466. /package/dist/cdn/{MS6EYP4R.js → 75WJAOD5.js} +0 -0
  467. /package/dist/cdn/{3OGKV4KZ.js → 76OQVFII.js} +0 -0
  468. /package/dist/cdn/{LOX7MXL4.js → 7GXB5ABV.js} +0 -0
  469. /package/dist/cdn/{AVU2CHAB.js → 7S4C7DMD.js} +0 -0
  470. /package/dist/cdn/{WRNEDEFZ.js → A4O5PTH7.js} +0 -0
  471. /package/dist/cdn/{YQJLA77R.js → A52S6LGL.js} +0 -0
  472. /package/dist/cdn/{DNSUOJXJ.js → BR7YHHRO.js} +0 -0
  473. /package/dist/cdn/{X7ENJ4HH.js → BXOAEW3W.js} +0 -0
  474. /package/dist/cdn/{KCILWIMQ.js → CS6SBRT6.js} +0 -0
  475. /package/dist/cdn/{BY77PBZ2.js → D63ZM4I6.js} +0 -0
  476. /package/dist/cdn/{G2L5FYWK.js → DGYDZT63.js} +0 -0
  477. /package/dist/cdn/{FSNQ3YXX.js → DTU5F26A.js} +0 -0
  478. /package/dist/cdn/{F57IRWBF.js → FCE53PT5.js} +0 -0
  479. /package/dist/cdn/{EIIQ2CSC.js → G626QVCR.js} +0 -0
  480. /package/dist/cdn/{GR4BZF3L.js → GBLD6EF5.js} +0 -0
  481. /package/dist/cdn/{B4ULOSFG.js → HM7TTHYN.js} +0 -0
  482. /package/dist/cdn/{3VMIFF7C.js → JHXWK5HY.js} +0 -0
  483. /package/dist/cdn/{JM6E3U5J.js → JUUAJRZL.js} +0 -0
  484. /package/dist/cdn/{HJW6UNEH.js → LZTVRB5K.js} +0 -0
  485. /package/dist/cdn/{FLSUJTUZ.js → N4ZIPC6C.js} +0 -0
  486. /package/dist/cdn/{GWPFABGL.js → NF4ADSMI.js} +0 -0
  487. /package/dist/cdn/{SXJYUHC3.js → OPJ6LPA2.js} +0 -0
  488. /package/dist/cdn/{S5OM65RV.js → PDWS67CW.js} +0 -0
  489. /package/dist/cdn/{47EOUNYO.js → QSAYNOYT.js} +0 -0
  490. /package/dist/cdn/{THJTENN5.js → SEV3K4MK.js} +0 -0
  491. /package/dist/cdn/{KBDOBMB5.js → TWPDFIMS.js} +0 -0
  492. /package/dist/cdn/{BUCYRXMT.js → U6BD2QQW.js} +0 -0
  493. /package/dist/cdn/{6HUDF5Q2.js → WXLU5XAQ.js} +0 -0
  494. /package/dist/cdn/{HLSO5KDC.js → XLHC66GD.js} +0 -0
  495. /package/dist/cdn/{NSRIVIOH.js → XQL5X2VK.js} +0 -0
  496. /package/dist/cdn/{S5EI7T2D.js → Y4YDLI6O.js} +0 -0
  497. /package/dist/cdn/{RHGKKMJG.js → YIK7I32W.js} +0 -0
  498. /package/dist/cdn/{5TOYNVTW.js → ZYBUK2GC.js} +0 -0
@@ -1,131 +1,174 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import { substitute as R } from "@arcgis/core/intl.js";
3
- import { cloneDeep as ie, isEmpty as Ae, memoize as ve } from "lodash-es";
4
- import "@arcgis/toolkit/type";
5
- import { w as fe, u as A, r as I, k as Ie, n as L, m as K, p as Le, t as qe, s as G } from "./series-types.js";
6
- import { i as Ve, R as Ne } from "./rest-js-object-literals.js";
7
- import { da as Z, dc as Oe, d0 as ke, dY as De, a1 as we, aq as Y, ea as Re, ed as Pe, R as Me, C as D, c8 as se, e4 as Ee, h as $e, c7 as Ye, a8 as Xe, br as We, cX as He, an as Ke, l as Ue, dI as je, $ as V, d2 as Qe, ee as _e, _ as ze, ef as oe, dG as Ge, eg as Ze, dC as Je, B as et, cY as j, bn as w, eb as tt, e8 as U, bK as X, bq as Se, ay as it, e9 as ae, cH as st, x as J, d5 as at, dd as ue, cK as H, a_ as rt, b9 as nt, bw as lt, aC as ot, cT as ce, aH as de, aM as ye, b1 as ut } from "./index.js";
8
- import "@arcgis/toolkit/intl";
9
- import "luxon";
10
- import "@arcgis/core/Graphic.js";
11
- import "@arcgis/core/renderers/support/jsonUtils.js";
12
- import "@arcgis/core/symbols/support/symbolUtils.js";
13
- import "@arcgis/core/layers/support/FeatureFilter.js";
14
- import "@arcgis/core/smartMapping/statistics/histogram.js";
15
- import "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
16
- import "@arcgis/core/AttributeBinsGraphic.js";
17
- import "@arcgis/core/layers/support/CodedValueDomain.js";
18
- import "simple-statistics";
19
- import "@arcgis/core/request.js";
20
- import "@arcgis/core/core/sql.js";
21
- import "@arcgis/core/geometry/support/jsonUtils.js";
22
- import "@arcgis/core/rest/support/AttributeBinsQuery.js";
23
- import "@arcgis/core/rest/support/Query.js";
24
- import "@arcgis/core/rest/support/StatisticDefinition.js";
25
- import "@arcgis/core/time/TimeExtent.js";
26
- import "@arcgis/core/core/promiseUtils.js";
27
- import "./runtime.js";
28
- import { h as Fe, i as N, j as ct, m as dt, g as B, l as C, e as me } from "./index4.js";
29
- import "@arcgis/core/applications/Components/imageryUtils.js";
30
- import "@arcgis/core/geometry/Extent.js";
31
- import "@arcgis/core/geometry/Point.js";
32
- import "@arcgis/toolkit/dom";
33
- import { s as q, u as P, g as re, d as he, e as yt, f as mt, j as ge } from "./utils.js";
2
+ import { substitute as w } from "@arcgis/core/intl.js";
3
+ import { cloneDeep as re, isEmpty as Le, memoize as Ve } from "lodash-es";
34
4
  import { S as ee } from "./common.js";
35
- import "@esri/arcgis-html-sanitizer";
36
- import { g as M, c as Te, a as Q, e as pe, f as gt } from "./data.js";
37
- import { a as pt } from "./index2.js";
38
- import { g as ne } from "./utils2.js";
39
- import { b as ft, a as St } from "./series-length.js";
40
- function Ti(t, e) {
41
- let i;
42
- return e !== void 0 && (i = { ...e }, i.legend !== void 0 && (i.legend.position = t)), i;
43
- }
44
- function xi(t, e) {
45
- let i;
46
- return e !== void 0 && (i = { ...e }, i.legend !== void 0 && (i.legend.visible = t)), i;
47
- }
48
- function Bi(t, e) {
49
- let i;
50
- return e !== void 0 && (i = { ...e, rotated: t }), i;
51
- }
52
- function Ft(t) {
5
+ import { s as q, u as E, g as le, a as Fe, b as Ne, c as qe, d as ce } from "./utils.js";
6
+ import { w as k, bY as ke, bm as Re, x as Oe, Y as K, cr as De, cq as Pe, p as we, aH as ne, c2 as Ee, d as Me, aG as $e, I as Ye, a7 as We, bk as Xe, W as He, e as je, bo as Ue, c_ as Ke, v as Qe, d5 as de, bM as ze, d6 as _e, bI as Ge, B as Ze, d2 as Je, an as H, a6 as he, cS as oe, b9 as et, k as te, bq as tt, bu as ye, bb as U, bh as me } from "./index2.js";
7
+ import { a as Y, s as xe, g as Q, b as ge, c as st } from "./data.js";
8
+ import { u as I, r as v, k as it, n as N, m as M, p as at, t as rt, s as se } from "./chart-object-literals.js";
9
+ import { i as lt, R as nt } from "./rest-js-object-literals.js";
10
+ import { i as z } from "./index4.js";
11
+ import { az as ot, t as ut, Y as ct, a9 as dt, al as yt, x as mt, C as pe, H as fe, $ as gt } from "./index.js";
12
+ import { C as P, F as $, d as D } from "./index3.js";
13
+ import { h as Te, i as O, j as pt, n as ft, g as b, m as A, e as Se } from "./index5.js";
14
+ import { convertChartSpec as St } from "../utils/chart-config/converter/index.js";
15
+ import { c as ie, e as Ft } from "./type-guards.js";
16
+ import { g as Be } from "./series-types.js";
17
+ import { g as ue } from "./utils2.js";
18
+ import { a as ht, b as xt } from "./series-length.js";
19
+ const is = (t) => {
20
+ let e;
21
+ const s = t.series[0];
22
+ return k(s) && (e = s.temporalBinning?.size), e;
23
+ }, Tt = (t) => {
24
+ let e;
25
+ const s = t.series[0];
26
+ return k(s) && (e = s.temporalBinning?.unit), e;
27
+ }, as = (t) => {
28
+ let e;
29
+ const s = t.series[0];
30
+ return k(s) && (e = s.temporalBinning?.timeAggregationType), e;
31
+ }, rs = (t) => {
32
+ let e;
33
+ const s = t.series[0];
34
+ return k(s) && (e = s.temporalBinning?.trimIncompleteTimeInterval), e;
35
+ }, ls = (t) => {
36
+ let e;
37
+ const s = t.series[0];
38
+ return k(s) && (e = s.temporalBinning?.nullPolicy), e;
39
+ }, Bt = (t, e) => {
40
+ e?.series?.forEach((s) => {
41
+ k(s) && (s.temporalBinning ??= {}, s.temporalBinning.size = t);
42
+ }), q({ config: e, value: null, axisIndex: 1, isMax: !1 }), q({ config: e, value: null, axisIndex: 1, isMax: !0 });
43
+ }, Ct = (t, e) => {
44
+ e?.series?.forEach((s) => {
45
+ k(s) && (s.temporalBinning ??= {}, s.temporalBinning.nullPolicy = t);
46
+ }), q({ config: e, value: null, axisIndex: 1, isMax: !1 }), q({ config: e, value: null, axisIndex: 1, isMax: !0 });
47
+ }, ns = (t, e) => {
48
+ e.series?.forEach((s) => {
49
+ k(s) && (s.temporalBinning ??= {}, s.temporalBinning.unit = t);
50
+ }), q({ config: e, value: null, axisIndex: 1, isMax: !1 }), q({ config: e, value: null, axisIndex: 1, isMax: !0 });
51
+ }, os = (t, e) => {
52
+ e.series?.forEach((s) => {
53
+ k(s) && (s.temporalBinning ??= {}, s.temporalBinning.timeAggregationType = t);
54
+ }), q({ config: e, value: null, axisIndex: 1, isMax: !1 }), q({ config: e, value: null, axisIndex: 1, isMax: !0 });
55
+ }, us = (t, e) => {
56
+ e.series?.forEach((s) => {
57
+ k(s) && (s.temporalBinning ??= {}, s.temporalBinning.trimIncompleteTimeInterval = t);
58
+ }), q({ config: e, value: null, axisIndex: 1, isMax: !1 }), q({ config: e, value: null, axisIndex: 1, isMax: !0 });
59
+ }, bt = (t) => {
60
+ Bt(0, t);
61
+ };
62
+ function cs(t, e) {
63
+ let s;
64
+ return e !== void 0 && (s = { ...e }, s.legend !== void 0 && (s.legend.position = t)), s;
65
+ }
66
+ function ds(t, e) {
67
+ let s;
68
+ return e !== void 0 && (s = { ...e }, s.legend !== void 0 && (s.legend.visible = t)), s;
69
+ }
70
+ function ys(t, e) {
71
+ let s;
72
+ return e !== void 0 && (s = { ...e, rotated: t }), s;
73
+ }
74
+ function At(t) {
53
75
  let e;
54
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;
55
77
  }
56
- function Ci(t, e) {
57
- return e != null || Fe(t);
78
+ function ms(t, e) {
79
+ return e != null || Te(t);
58
80
  }
59
- async function bi(t, e) {
60
- let i = !1;
61
- return Z(e) || Oe(t) ? t && Z(e) && (i = await ke(t, e)) : i = !0, i;
81
+ async function gs(t) {
82
+ const { config: e, layer: s, abortSignal: r } = t;
83
+ let a = !1;
84
+ return ie(s) || Ft(e) ? e && ie(s) && (a = await Re({ config: e, layer: s, abortSignal: r })) : a = !0, a;
62
85
  }
63
- async function ht(t) {
64
- const { queryObject: e, chartConfig: i, options: r, splitByField: a } = t;
65
- let s = [], n;
66
- const l = ie(i), u = l.series[0], c = Ue({
86
+ async function It(t) {
87
+ const {
88
+ queryObject: e,
89
+ chartConfig: s,
90
+ splitByField: r,
91
+ errorStrings: a,
92
+ abortSignal: i,
93
+ runtimeDataFilters: l,
94
+ ignoreViewExtent: n,
95
+ setTimeBinningInfoWhenNotProvided: y,
96
+ returnFeaturesExtent: g,
97
+ chartLimits: S
98
+ } = t;
99
+ let o = [], c;
100
+ const m = re(s), d = m.series[0], u = je({
67
101
  queryObject: e,
68
- chartConfig: l,
69
- runtimeDataFilters: r?.runtimeDataFilters,
70
- ignoreViewExtent: r?.ignoreViewExtent
102
+ chartConfig: m,
103
+ runtimeDataFilters: l,
104
+ ignoreViewExtent: n
71
105
  });
72
- if (c.outStatistics?.[0]?.outStatisticFieldName && (c.outStatistics[0].outStatisticFieldName = je.outStatistics.outStatisticFieldName), V(u) && Qe({
73
- xAxisValueFormatType: _e(l),
74
- setTimeBinningInfoWhenNotProvided: r?.setTimeBinningInfoWhenNotProvided,
75
- seriesConfig: u,
106
+ if (u.outStatistics?.[0]?.outStatisticFieldName && (u.outStatistics[0].outStatisticFieldName = ot.outStatistics.outStatisticFieldName), k(d) && Ue({
107
+ xAxisValueFormatType: Ke(m),
108
+ setTimeBinningInfoWhenNotProvided: y,
109
+ seriesConfig: d,
76
110
  queryObject: e
77
- }) && ze(a, e)) {
78
- const { temporalBinning: S, x: o } = u, { uniqueQuery: y } = oe({
79
- chartConfig: l,
80
- queryConfig: c,
111
+ }) && Qe(r, e)) {
112
+ const { temporalBinning: p, x: T } = d, { uniqueQuery: C } = de({
113
+ chartConfig: m,
114
+ queryConfig: u,
81
115
  queryObject: e,
82
- options: r
83
- }), m = i.axes?.[0].valueFormat.type === A.DateAxisFormat ? i.axes[0].valueFormat.intlOptions.timeZone : void 0;
84
- n = await Ge({
116
+ setTimeBinningInfoWhenNotProvided: y,
117
+ returnFeaturesExtent: g,
118
+ chartLimits: S
119
+ }), F = s.axes?.[0].valueFormat.type === I.DateAxisFormat ? s.axes[0].valueFormat.intlOptions.timeZone : void 0;
120
+ c = await ze({
85
121
  queryObject: e,
86
- dateField: o,
87
- splitByField: a,
88
- queryConfig: y,
89
- axisTimeZone: m,
90
- temporalBinning: S
91
- }), s = Array.from(
122
+ dateField: T,
123
+ splitByField: r,
124
+ queryConfig: C,
125
+ axisTimeZone: F,
126
+ temporalBinning: p,
127
+ errorStrings: a,
128
+ abortSignal: i
129
+ }), o = Array.from(
92
130
  new Set(
93
- n.flatMap((p) => {
94
- const { stackedAttributes: d } = p;
95
- let f = [];
96
- return d && (f = d.map((x) => x[a]).filter((x) => x !== void 0)), f;
131
+ c.flatMap((f) => {
132
+ const { stackedAttributes: R } = f;
133
+ let x = [];
134
+ return R && (x = R.map((h) => h[r]).filter((h) => h !== void 0)), x;
97
135
  })
98
136
  ).values()
99
137
  );
100
138
  } else {
101
- const { uniqueQuery: S } = oe({
102
- chartConfig: l,
139
+ const { uniqueQuery: p } = de({
140
+ chartConfig: m,
103
141
  queryObject: e,
104
- queryConfig: c,
105
- options: r
106
- }), { elementCount: o } = await Ze({
107
- chartConfig: l,
142
+ queryConfig: u,
143
+ setTimeBinningInfoWhenNotProvided: y,
144
+ returnFeaturesExtent: g,
145
+ chartLimits: S
146
+ }), { elementCount: T } = await _e({
147
+ chartConfig: m,
108
148
  queryObject: e,
109
- queryConfig: c,
110
- behaviorAfterLimit: r?.chartLimits?.behaviorAfterLimit,
111
- numberMaxOfFeaturesToFetch: S.num
149
+ queryConfig: u,
150
+ behaviorAfterLimit: S?.behaviorAfterLimit,
151
+ numberMaxOfFeaturesToFetch: p.num,
152
+ abortSignal: i
112
153
  });
113
- n = await Je({
154
+ c = await Ge({
114
155
  queryObject: e,
115
- queryConfig: S,
116
- featureCount: o
117
- }), s = Array.from(
156
+ queryConfig: p,
157
+ featureCount: T,
158
+ errorStrings: a,
159
+ abortSignal: i
160
+ }), o = Array.from(
118
161
  new Set(
119
- n.map((y) => y.attributes[a]).filter((y) => y !== void 0)
162
+ c.map((C) => C.attributes[r]).filter((C) => C !== void 0)
120
163
  ).values()
121
164
  );
122
165
  }
123
- return { allValues: s, preFetchedQueryResponse: n };
166
+ return { allValues: o, preFetchedQueryResponse: c };
124
167
  }
125
- function Tt(t, e) {
126
- const i = /* @__PURE__ */ new Map();
168
+ function vt(t, e) {
169
+ const s = /* @__PURE__ */ new Map();
127
170
  return t.series.forEach((r) => {
128
- let a = se({
171
+ let a = ne({
129
172
  where: r.query?.where,
130
173
  // normalize the value so it matches what we get from getAllValues()
131
174
  // Refer to https://devtopia.esri.com/WebGIS/arcgis-charts/issues/8127
@@ -135,860 +178,908 @@ function Tt(t, e) {
135
178
  escape: !1
136
179
  });
137
180
  e && a !== null && (a = Number(a));
138
- const s = fe([r]);
139
- s !== void 0 && i.set(s, [
140
- ...i.get(s) ?? [],
181
+ const i = Be([r]);
182
+ i !== void 0 && s.set(i, [
183
+ ...s.get(i) ?? [],
141
184
  a
142
185
  ]);
143
- }), i;
144
- }
145
- function xt(t) {
146
- const { allValues: e, configUniqueValuesPerSeriesType: i, initialConfigWasEmpty: r } = t, a = /* @__PURE__ */ new Map();
147
- return Array.from(i.keys()).forEach((s) => {
148
- const n = i.get(s) ?? [];
149
- let l = [];
150
- r ? l = e : e.forEach((u) => {
151
- n.includes(u) || l.push(u);
152
- }), a.set(s, l);
186
+ }), s;
187
+ }
188
+ function Lt(t) {
189
+ const { allValues: e, configUniqueValuesPerSeriesType: s, initialConfigWasEmpty: r } = t, a = /* @__PURE__ */ new Map();
190
+ return Array.from(s.keys()).forEach((i) => {
191
+ const l = s.get(i) ?? [];
192
+ let n = [];
193
+ r ? n = e : e.forEach((y) => {
194
+ l.includes(y) || n.push(y);
195
+ }), a.set(i, n);
153
196
  }), a;
154
197
  }
155
- function Bt(t) {
156
- const { chartConfig: e, missingValue: i, splitByField: r, seriesTemplate: a } = t, s = JSON.parse(
198
+ function Vt(t) {
199
+ const { chartConfig: e, missingValue: s, splitByField: r, seriesTemplate: a } = t, i = JSON.parse(
157
200
  JSON.stringify({
158
201
  ...e.series[0],
159
202
  ...a
160
203
  })
161
204
  );
162
- if (s.query) {
163
- if (s.id = `${i}-${e.series.length}-${Date.now()}`, s.name = `${i}`, s.query.outStatistics?.[0] !== void 0) {
164
- const l = s.id;
165
- s.query.outStatistics[0].outStatisticFieldName = l, "y" in s && (s.y = l);
205
+ if (i.query) {
206
+ if (s === null ? i.id = $.nullValue : s === "" ? i.id = $.emptyStringValue : i.id = `${s}`, i.name = `${s}`, i.query.outStatistics?.[0] !== void 0) {
207
+ const n = i.id;
208
+ i.query.outStatistics[0].outStatisticFieldName = n, "y" in i && (i.y = n);
166
209
  }
167
- const n = typeof i == "number" || i === null ? i : `'${i}'`;
168
- s.query.where = `${r}=${n}`;
210
+ const l = typeof s == "number" || s === null ? s : `'${s}'`;
211
+ i.query.where = `${r}=${l}`;
169
212
  }
170
- return s;
213
+ return i;
171
214
  }
172
- async function Ct(t) {
173
- const { updateSplitBySeries: e, config: i, options: r, queryObject: a } = t, { seriesTemplate: s } = e ?? {};
174
- let n;
175
- if (a && !Z(a) && e !== void 0 && i !== void 0 && (i.series.length > 0 || s !== void 0) && e.addMissingSeries) {
176
- const l = i.series.length === 0;
177
- i.series.length === 0 && s !== void 0 && i.series.push(s);
178
- const u = Y(i.series);
179
- if (u === D.BoxPlotMonoFieldAndSplitBy || u === D.BoxPlotMultiFieldsAndSplitBy || u === D.BoxPlotMonoFieldAndCategoryAndSplitBy || u === D.BarAndLineSplitBy || u === D.BarAndLineSplitByNoAggregation) {
180
- const c = Ye(i.series[0]?.query?.where), S = Xe(a), o = We(c, S), y = o ? He(o) : !1, m = await ht({
181
- queryObject: a,
182
- chartConfig: i,
183
- splitByField: c,
184
- options: r
185
- }), { allValues: p } = m;
186
- if ({ preFetchedQueryResponse: n } = m, p.length > 0) {
187
- const d = Tt(i, y), f = xt({
188
- allValues: p,
189
- configUniqueValuesPerSeriesType: d,
190
- initialConfigWasEmpty: l
215
+ async function Nt(t) {
216
+ const {
217
+ updateSplitBySeries: e,
218
+ config: s,
219
+ queryObject: r,
220
+ errorStrings: a,
221
+ abortSignal: i,
222
+ runtimeDataFilters: l,
223
+ ignoreViewExtent: n,
224
+ setTimeBinningInfoWhenNotProvided: y,
225
+ returnFeaturesExtent: g,
226
+ chartLimits: S
227
+ } = t, { seriesTemplate: o } = e ?? {};
228
+ let c;
229
+ if (r && !ie(r) && e !== void 0 && s !== void 0 && (s.series.length > 0 || o !== void 0) && e.addMissingSeries) {
230
+ const m = s.series.length === 0;
231
+ s.series.length === 0 && o !== void 0 && s.series.push(o);
232
+ const d = K(s.series);
233
+ if (d === P.BoxPlotMonoFieldAndSplitBy || d === P.BoxPlotMultiFieldsAndSplitBy || d === P.BoxPlotMonoFieldAndCategoryAndSplitBy || d === P.BarAndLineSplitBy || d === P.BarAndLineSplitByNoAggregation) {
234
+ const u = $e(s.series[0]?.query?.where), p = Ye(r), T = We(u, p), C = T ? Xe(T) : !1, F = await It({
235
+ queryObject: r,
236
+ chartConfig: s,
237
+ splitByField: u,
238
+ abortSignal: i,
239
+ runtimeDataFilters: l,
240
+ ignoreViewExtent: n,
241
+ setTimeBinningInfoWhenNotProvided: y,
242
+ returnFeaturesExtent: g,
243
+ chartLimits: S,
244
+ errorStrings: a
245
+ }), { allValues: f } = F;
246
+ if ({ preFetchedQueryResponse: c } = F, f.length > 0) {
247
+ const R = vt(s, C), x = Lt({
248
+ allValues: f,
249
+ configUniqueValuesPerSeriesType: R,
250
+ initialConfigWasEmpty: m
191
251
  });
192
- Array.from(f.keys()).forEach((x) => {
193
- (f.get(x) ?? []).forEach((g) => {
194
- i.series.push(
195
- Bt({
196
- chartConfig: i,
197
- seriesTemplate: s,
198
- missingValue: g,
199
- splitByField: c
252
+ Array.from(x.keys()).forEach((h) => {
253
+ (x.get(h) ?? []).forEach((V) => {
254
+ s.series.push(
255
+ Vt({
256
+ chartConfig: s,
257
+ seriesTemplate: o,
258
+ missingValue: V,
259
+ splitByField: u
200
260
  })
201
261
  );
202
- }), l && i.series.shift();
262
+ }), m && s.series.shift();
203
263
  });
204
264
  }
205
265
  }
206
266
  }
207
- return n;
267
+ return c;
208
268
  }
209
- function bt(t, e) {
210
- e && !Fe(e) && (e = $e({ chartConfig: e, queryObject: t }));
269
+ function qt(t, e) {
270
+ e && !Te(e) && (e = Me({ chartConfig: e, queryObject: t }));
211
271
  }
212
- async function Ai(t) {
213
- const { configToAlter: e, layer: i, addMissingSeries: r, updateSplitBySeries: a, chartContainer: s, queryObject: n, options: l } = t;
214
- let u = e, c;
215
- return u && (bt(i, u), u = await pt(u, i), r && (c = await Ct({
272
+ async function ps(t) {
273
+ const {
274
+ configToAlter: e,
275
+ layer: s,
276
+ addMissingSeries: r,
277
+ updateSplitBySeries: a,
278
+ chartContainer: i,
279
+ queryObject: l,
280
+ abortSignal: n,
281
+ runtimeDataFilters: y,
282
+ ignoreViewExtent: g,
283
+ setTimeBinningInfoWhenNotProvided: S,
284
+ returnFeaturesExtent: o,
285
+ chartLimits: c,
286
+ errorStrings: m
287
+ } = t;
288
+ let d = e, u;
289
+ return d && (qt(s, d), d = await St(d, s, void 0, n), r && l && (u = await Nt({
216
290
  updateSplitBySeries: a,
217
- config: u,
218
- options: l,
219
- queryObject: n
220
- })), u = De(u, s)), { alteredConfig: u, preFetchedQueryResponse: c };
291
+ config: d,
292
+ queryObject: l,
293
+ errorStrings: m,
294
+ abortSignal: n,
295
+ runtimeDataFilters: y,
296
+ ignoreViewExtent: g,
297
+ setTimeBinningInfoWhenNotProvided: S,
298
+ returnFeaturesExtent: o,
299
+ chartLimits: c
300
+ })), d = ke(d, i)), { alteredConfig: d, preFetchedQueryResponse: u };
221
301
  }
222
- function At(t, e) {
223
- let i = !1;
302
+ function kt(t, e) {
303
+ let s = !1;
224
304
  if (e !== void 0) {
225
- const r = Ke({ key: et.Average, splitBy: e });
226
- i = Number.isFinite(t[r]);
305
+ const r = He({ key: Ze.Average, splitBy: e });
306
+ s = Number.isFinite(t[r]);
227
307
  }
228
- return i;
308
+ return s;
229
309
  }
230
- function vi(t) {
231
- const { data: e, config: i, showEmptySeries: r } = t, a = i.series.length, s = ie(i);
232
- let n = !1;
310
+ function fs(t) {
311
+ const { data: e, config: s, showEmptySeries: r } = t, a = s.series.length, i = re(s);
312
+ let l = !1;
233
313
  if (!r && a > 1 && e) {
234
- const l = we(e), u = fe(i?.series), c = Y(i?.series), S = /* @__PURE__ */ new Set();
235
- switch (u) {
236
- case A.ComboLineAndBarSeries:
237
- case A.BarSeries:
238
- case A.RadarSeries:
239
- case A.LineSeries: {
240
- s.series.forEach((y) => {
241
- if (Array.isArray(l)) {
314
+ const n = Oe(e), y = Be(s?.series), g = K(s?.series), S = /* @__PURE__ */ new Set();
315
+ switch (y) {
316
+ case I.ComboLineAndBarSeries:
317
+ case I.BarSeries:
318
+ case I.RadarSeries:
319
+ case I.LineSeries: {
320
+ i.series.forEach((c) => {
321
+ if (Array.isArray(n)) {
242
322
  let m = "";
243
- "y" in y && (m = Array.isArray(y.y) ? y.y[0] : y.y, c === D.BarAndLineSplitByNoAggregation && (m = `${m}_${se({ where: y.query?.where, keepSurroundingQuotes: !1, escape: !1 })}`), l.some(
244
- (d) => Ee({ dataItem: d, x: y.x, y: m })
245
- ) && S.add(y));
323
+ "y" in c && (m = Array.isArray(c.y) ? c.y[0] : c.y, g === P.BarAndLineSplitByNoAggregation && (m = `${m}_${ne({ where: c.query?.where, keepSurroundingQuotes: !1, escape: !1 })}`), n.some(
324
+ (u) => Ee({
325
+ dataItem: u,
326
+ x: c.x,
327
+ y: m,
328
+ aggregationType: s.series[0].query?.outStatistics?.[0]?.statisticType
329
+ })
330
+ ) && S.add(c));
246
331
  }
247
332
  });
248
333
  break;
249
334
  }
250
- case A.BoxPlotSeries: {
251
- if (Re(i)) {
252
- const y = Pe(i);
253
- i.series.forEach((m) => {
254
- let p, d;
255
- m.type === A.BoxPlotSeries ? (p = e.dataItems, d = p?.some(
256
- (f) => Me({
257
- dataItem: f,
335
+ case I.BoxPlotSeries: {
336
+ if (De(s)) {
337
+ const c = Pe(s);
338
+ s.series.forEach((m) => {
339
+ let d, u;
340
+ m.type === I.BoxPlotSeries ? (d = e.dataItems, u = d?.some(
341
+ (p) => we({
342
+ dataItem: p,
258
343
  splitBy: m.query?.where,
259
- showOutliers: y
344
+ showOutliers: c
260
345
  })
261
- )) : m.type === A.LineSeries && (p = e.meanLines, d = p?.some(
262
- (f) => At(f, m.query?.where)
263
- )), d && S.add(m);
346
+ )) : m.type === I.LineSeries && (d = e.meanLines, u = d?.some(
347
+ (p) => kt(p, m.query?.where)
348
+ )), u && S.add(m);
264
349
  });
265
350
  }
266
351
  break;
267
352
  }
268
353
  }
269
354
  const o = Array.from(S.values());
270
- n = o.length > 0 && o.length < a, n && (s.series = o);
355
+ l = o.length > 0 && o.length < a, l && (i.series = o);
271
356
  }
272
- return { seriesFilteredOut: n, filteredConfig: s };
357
+ return { seriesFilteredOut: l, filteredConfig: i };
273
358
  }
274
- const Ii = (t) => {
275
- let e;
276
- const i = t.series[0];
277
- return V(i) && (e = i.temporalBinning?.size), e;
278
- }, vt = (t) => {
279
- let e;
280
- const i = t.series[0];
281
- return V(i) && (e = i.temporalBinning?.unit), e;
282
- }, Li = (t) => {
283
- let e;
284
- const i = t.series[0];
285
- return V(i) && (e = i.temporalBinning?.timeAggregationType), e;
286
- }, qi = (t) => {
287
- let e;
288
- const i = t.series[0];
289
- return V(i) && (e = i.temporalBinning?.trimIncompleteTimeInterval), e;
290
- }, Vi = (t) => {
291
- let e;
292
- const i = t.series[0];
293
- return V(i) && (e = i.temporalBinning?.nullPolicy), e;
294
- }, It = (t, e) => {
295
- e?.series?.forEach((i) => {
296
- V(i) && (i.temporalBinning ??= {}, i.temporalBinning.size = t);
297
- }), q({ config: e, value: null, axisIndex: 1, isMax: !1 }), q({ config: e, value: null, axisIndex: 1, isMax: !0 });
298
- }, Lt = (t, e) => {
299
- e?.series?.forEach((i) => {
300
- V(i) && (i.temporalBinning ??= {}, i.temporalBinning.nullPolicy = t);
301
- }), q({ config: e, value: null, axisIndex: 1, isMax: !1 }), q({ config: e, value: null, axisIndex: 1, isMax: !0 });
302
- }, Ni = (t, e) => {
303
- e.series?.forEach((i) => {
304
- V(i) && (i.temporalBinning ??= {}, i.temporalBinning.unit = t);
305
- }), q({ config: e, value: null, axisIndex: 1, isMax: !1 }), q({ config: e, value: null, axisIndex: 1, isMax: !0 });
306
- }, Oi = (t, e) => {
307
- e.series?.forEach((i) => {
308
- V(i) && (i.temporalBinning ??= {}, i.temporalBinning.timeAggregationType = t);
309
- }), q({ config: e, value: null, axisIndex: 1, isMax: !1 }), q({ config: e, value: null, axisIndex: 1, isMax: !0 });
310
- }, ki = (t, e) => {
311
- e.series?.forEach((i) => {
312
- V(i) && (i.temporalBinning ??= {}, i.temporalBinning.trimIncompleteTimeInterval = t);
313
- }), q({ config: e, value: null, axisIndex: 1, isMax: !1 }), q({ config: e, value: null, axisIndex: 1, isMax: !0 });
314
- }, Di = (t) => {
315
- It(0, t);
316
- }, wi = (t) => t.hideEmptyRowsAndColumns, Ri = (t, e) => {
359
+ const Ss = (t) => t.hideEmptyRowsAndColumns, Fs = (t, e) => {
317
360
  t.hideEmptyRowsAndColumns = e;
318
- }, Pi = (t, e) => {
319
- const i = t.series[0];
320
- i.heatRulesType = e;
321
- }, Mi = (t) => t.series[0].heatRulesType, Ei = (t, e) => {
322
- const i = t.series[0];
323
- i.gradientRules = e;
324
- }, $i = (t) => t.series[0].gradientRules, Yi = (t) => {
325
- const { yField: e, config: i, layerInfo: r } = t, { layerFieldsInfo: a } = r, s = ne(1, i), n = qt(i), l = j(i), u = i.series[0];
326
- if (typeof e == "string" && n !== e && u && (u.y = e, Ft(i), n === s || l)) {
327
- const c = w(a, e);
328
- P(i, 1, c);
361
+ }, hs = (t, e) => {
362
+ const s = t.series[0];
363
+ s.heatRulesType = e;
364
+ }, xs = (t) => t.series[0].heatRulesType, Ts = (t, e) => {
365
+ const s = t.series[0];
366
+ s.gradientRules = e;
367
+ }, Bs = (t) => t.series[0].gradientRules, Cs = (t) => {
368
+ const { yField: e, config: s, layerInfo: r } = t, { layerFieldsInfo: a } = r, i = ue(1, s), l = Rt(s), n = z(s), y = s.series[0];
369
+ if (typeof e == "string" && l !== e && y && (y.y = e, At(s), l === i || n)) {
370
+ const g = D(a, e);
371
+ E(s, 1, g);
329
372
  }
330
- }, qt = (t) => t.series[0].y ?? "", Xi = (t) => {
331
- const { binning: e, config: i, commonStrings: r } = t, a = i.series[0];
373
+ }, Rt = (t) => t.series[0].y ?? "", bs = (t) => {
374
+ const { binning: e, config: s, commonStrings: r } = t, a = s.series[0];
332
375
  if (a.xTemporalBinning = e, e?.unit !== void 0 && e.unit in r.utilsStrings.heatChartCalendarDatePartsUnits) {
333
- const s = r.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
334
- P(i, 0, s);
376
+ const i = r.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
377
+ E(s, 0, i);
335
378
  }
336
- }, Wi = (t) => t.series[0].xTemporalBinning, Hi = (t) => {
337
- const { binning: e, config: i, commonStrings: r } = t, a = i.series[0];
379
+ }, As = (t) => t.series[0].xTemporalBinning, Is = (t) => {
380
+ const { binning: e, config: s, commonStrings: r } = t, a = s.series[0];
338
381
  if (a.yTemporalBinning = e, e?.unit !== void 0 && e.unit in r.utilsStrings.heatChartCalendarDatePartsUnits) {
339
- const s = r.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
340
- P(i, 1, s);
382
+ const i = r.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
383
+ E(s, 1, i);
341
384
  }
342
- }, Ki = (t) => t.series[0].yTemporalBinning, Vt = (t, e) => {
385
+ }, vs = (t) => t.series[0].yTemporalBinning, Ot = (t, e) => {
343
386
  e.orderOptions ??= {};
344
- const i = e.axes?.[0]?.valueFormat?.type === "category" ? L.Category : L.YValue, r = te(e)[0], a = e.axes?.[1]?.valueFormat?.type === "category" ? L.Category : L.YValue, s = te(e)[1], n = {
387
+ const s = e.axes?.[0]?.valueFormat?.type === "category" ? N.Category : N.YValue, r = ae(e)[0], a = e.axes?.[1]?.valueFormat?.type === "category" ? N.Category : N.YValue, i = ae(e)[1], l = {
345
388
  ...e.orderOptions.data ?? {},
346
- orderType: L.MultiAxes
389
+ orderType: N.MultiAxes
347
390
  };
348
- r === ee.customSort && i === L.Category && (n.orderByX = [...t]), s === ee.customSort && a === L.Category && (n.orderByY = [...t]), Object.keys(n).length > 1 && (e.orderOptions.data = n);
349
- }, Ui = (t, e) => {
350
- const i = e.series[0];
351
- i.gridLine && (i.gridLine.width = t);
352
- }, ji = (t) => t.series[0].gridLine?.width, Qi = (t, e) => {
353
- const i = e.series[0], r = t?.length === 4 && t.every((a) => typeof a == "number");
354
- i.gridLine && r && (i.gridLine.color = t);
355
- }, _i = (t) => t.series[0].gridLine?.color, zi = (t, e) => {
356
- const i = e.legend;
357
- i && (i.position = t);
358
- }, Gi = (t) => t.legend?.position ?? Ie.Bottom, Zi = (t) => t.series[0].query?.outStatistics?.[0]?.onStatisticField, Ji = (t) => {
359
- const { field: e, config: i, layerInfo: r, commonStrings: a } = t, s = i.series[0].query?.outStatistics?.[0], n = z(i, r, a);
360
- s ? (s.onStatisticField = e, s.outStatisticFieldName = `${s.statisticType}_${e}`) : i.series[0].query = {
391
+ r === ee.customSort && s === N.Category && (l.orderByX = [...t]), i === ee.customSort && a === N.Category && (l.orderByY = [...t]), Object.keys(l).length > 1 && (e.orderOptions.data = l);
392
+ }, Ls = (t, e) => {
393
+ const s = e.series[0];
394
+ s.gridLine && (s.gridLine.width = t);
395
+ }, Vs = (t) => t.series[0].gridLine?.width, Ns = (t, e) => {
396
+ const s = e.series[0], r = t?.length === 4 && t.every((a) => typeof a == "number");
397
+ s.gridLine && r && (s.gridLine.color = t);
398
+ }, qs = (t) => t.series[0].gridLine?.color, ks = (t, e) => {
399
+ const s = e.legend;
400
+ s && (s.position = t);
401
+ }, Rs = (t) => t.legend?.position ?? it.Bottom, Os = (t) => t.series[0].query?.outStatistics?.[0]?.onStatisticField, Ds = (t) => {
402
+ const { field: e, config: s, layerInfo: r, commonStrings: a } = t, i = s.series[0].query?.outStatistics?.[0], l = Z(s, r, a);
403
+ i ? (i.onStatisticField = e, i.outStatisticFieldName = `${i.statisticType}_${e}`) : s.series[0].query = {
361
404
  outStatistics: [
362
405
  {
363
406
  onStatisticField: e,
364
- outStatisticFieldName: `${I.Count}_${e}`,
365
- statisticType: I.Count
407
+ outStatisticFieldName: `${v.Count}_${e}`,
408
+ statisticType: v.Count
366
409
  }
367
410
  ]
368
- }, n && i.title && (i.title.content.text = W(i, r, a));
369
- }, es = (t) => t.series[0].query?.outStatistics?.[0].statisticType ?? I.Count, ts = (t) => {
370
- const { aggregationType: e, config: i, layerInfo: r, commonStrings: a } = t, s = i.series[0]?.query?.outStatistics?.[0], n = z(i, r, a);
371
- s && e !== I.NoAggregation && (s.statisticType = e, s.outStatisticFieldName = `${e}_${s.onStatisticField}`), (e === I.Count || e === I.Sum) && Nt(K.Zero, i), n && i.title && (i.title.content.text = W(i, r, a));
372
- }, is = (t) => t.nullPolicy, Nt = (t, e) => {
411
+ }, l && s.title && (s.title.content.text = j(s, r, a));
412
+ }, Ps = (t) => t.series[0].query?.outStatistics?.[0].statisticType ?? v.Count, ws = (t) => {
413
+ const { aggregationType: e, config: s, layerInfo: r, commonStrings: a } = t, i = s.series[0]?.query?.outStatistics?.[0], l = Z(s, r, a);
414
+ i && e !== v.NoAggregation && (i.statisticType = e, i.outStatisticFieldName = `${e}_${i.onStatisticField}`), (e === v.Count || e === v.Sum) && Dt(M.Zero, s), l && s.title && (s.title.content.text = j(s, r, a));
415
+ }, Es = (t) => t.nullPolicy, Dt = (t, e) => {
373
416
  e.nullPolicy = t;
374
- }, ss = (t) => t.series[0].emptyCells, as = (t, e) => {
417
+ }, Ms = (t) => t.series[0].emptyCells, $s = (t, e) => {
375
418
  e.series[0].emptyCells = t;
376
- }, rs = (t) => t.series[0].emptyCells?.text, ns = (t, e) => {
419
+ }, Ys = (t) => t.series[0].emptyCells?.text, Ws = (t, e) => {
377
420
  e.series[0].emptyCells ? e.series[0].emptyCells.text = t : e.series[0].emptyCells = { text: t };
378
- }, ls = (t) => t.includeLeapDay, os = (t, e) => {
421
+ }, Xs = (t) => t.includeLeapDay, Hs = (t, e) => {
379
422
  e.includeLeapDay = t;
380
- }, us = (t) => t.series[0].emptyCells?.symbol, cs = (t, e) => {
423
+ }, js = (t) => t.series[0].emptyCells?.symbol, Us = (t, e) => {
381
424
  e.series[0].emptyCells ? e.series[0].emptyCells.symbol = t : e.series[0].emptyCells = { symbol: t };
382
425
  };
383
- function ds(t) {
426
+ function Ks(t) {
384
427
  return t.viewType;
385
428
  }
386
- function ys(t, e) {
387
- tt(e) || (e.viewType = t);
429
+ function Qs(t, e) {
430
+ Je(e) || (e.viewType = t);
388
431
  }
389
- function ms(t) {
390
- return t.series[0].classBreaksRules?.breaksCount ?? U.classBreaks.breaksCount;
432
+ function zs(t) {
433
+ return t.series[0].classBreaksRules?.breaksCount ?? $.classBreaks.breaksCount;
391
434
  }
392
- function gs(t, e) {
393
- e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.breaksCount = t ?? U.classBreaks.breaksCount : e.series[0].classBreaksRules = {
394
- breaksCount: t ?? U.classBreaks.breaksCount
435
+ function _s(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
395
438
  };
396
439
  }
397
- function ps(t) {
440
+ function Gs(t) {
398
441
  return t.series[0].classBreaksRules?.classificationMethod;
399
442
  }
400
- function fs(t, e) {
443
+ function Zs(t, e) {
401
444
  e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.classificationMethod = t : e.series[0].classBreaksRules = {
402
445
  classificationMethod: t
403
- }, e.series[0].classBreaksRules.breaksCount = e.series[0].classBreaksRules.breaksCount ?? U.classBreaks.breaksCount;
446
+ }, e.series[0].classBreaksRules.breaksCount = e.series[0].classBreaksRules.breaksCount ?? $.classBreaks.breaksCount;
404
447
  }
405
- function Ss(t, e) {
448
+ function Js(t, e) {
406
449
  e.firstDayOfWeek = t;
407
450
  }
408
- function Fs(t) {
451
+ function ei(t) {
409
452
  return t.firstDayOfWeek;
410
453
  }
411
- function E(t) {
412
- const { seriesIndex: e, xAxisField: i, aggregationType: r, config: a, layerInfo: s, commonStrings: n } = t, l = X(s?.layer).idField;
413
- let u;
414
- const c = a.series[e ?? 0];
415
- let S = !1, o = !1, y = !1;
416
- if (c === void 0) {
417
- const d = a.series;
418
- S = d.slice(0, e).every((f) => B(f)), o = d.slice(0, e).every((f) => C(f)), y = d.slice(0, e).every((f) => me(f));
454
+ function ti(t) {
455
+ return t.series[0].classBreaksRules?.colorRampInfo?.name;
456
+ }
457
+ function si(t, e) {
458
+ e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.colorRampInfo = {
459
+ ...e.series[0].classBreaksRules.colorRampInfo,
460
+ name: t
461
+ } : e.series[0].classBreaksRules = {
462
+ colorRampInfo: {
463
+ name: t,
464
+ flipped: !1
465
+ }
466
+ };
467
+ }
468
+ function ii(t) {
469
+ return t.series[0].classBreaksRules?.colorRampInfo?.flipped ?? !1;
470
+ }
471
+ function ai(t, e) {
472
+ e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.colorRampInfo = {
473
+ ...e.series[0].classBreaksRules.colorRampInfo,
474
+ flipped: t
475
+ } : e.series[0].classBreaksRules = {
476
+ colorRampInfo: {
477
+ flipped: t
478
+ }
479
+ };
480
+ }
481
+ function W(t) {
482
+ const { seriesIndex: e, xAxisField: s, aggregationType: r, config: a, layerInfo: i, commonStrings: l } = t, n = H(i?.layer).idField;
483
+ let y;
484
+ const g = a.series[e ?? 0];
485
+ let S = !1, o = !1, c = !1;
486
+ if (g === void 0) {
487
+ const u = a.series;
488
+ S = u.slice(0, e).every((p) => b(p)), o = u.slice(0, e).every((p) => A(p)), c = u.slice(0, e).every((p) => Se(p));
419
489
  } else
420
- S = B(c), o = C(c), y = me(c);
421
- S ? u = rt({
422
- commonStrings: n,
490
+ S = b(g), o = A(g), c = Se(g);
491
+ S ? y = ct({
492
+ commonStrings: l,
423
493
  seriesIndex: e,
424
- objectIDField: l
425
- }) : o ? u = nt({
426
- commonStrings: n,
494
+ objectIDField: n
495
+ }) : o ? y = dt({
496
+ commonStrings: l,
427
497
  seriesIndex: e,
428
- objectIDField: l
429
- }) : y ? u = lt(n, l) : u = ot({
498
+ objectIDField: n
499
+ }) : c ? y = yt(l, n) : y = mt({
430
500
  seriesIndex: e,
431
- objectIDField: l,
432
- commonStrings: n
501
+ objectIDField: n,
502
+ commonStrings: l
433
503
  });
434
- const m = a.series[0]?.dataLabels, p = {
435
- ...u,
436
- x: i,
504
+ const m = a.series[0]?.dataLabels, d = {
505
+ ...y,
506
+ x: s,
437
507
  y: "",
438
508
  dataLabels: {
439
- ...u.dataLabels,
440
- type: u.dataLabels?.type ?? A.Text,
441
- content: { ...u.dataLabels?.content, ...m?.content, type: Ve.TS },
509
+ ...y.dataLabels,
510
+ type: y.dataLabels?.type ?? I.Text,
511
+ content: { ...y.dataLabels?.content, ...m?.content, type: lt.TS },
442
512
  visible: m?.visible ?? !1
443
513
  }
444
514
  };
445
- if (p.query = {
446
- groupByFieldsForStatistics: [i]
447
- }, r !== I.NoAggregation && l !== void 0) {
448
- const d = `${r}_${l}_0`.toUpperCase();
449
- p.y = d, p.query.outStatistics = [
515
+ if (d.query = {
516
+ groupByFieldsForStatistics: [s]
517
+ }, r !== v.NoAggregation && n !== void 0) {
518
+ const u = `${r}_${n}_0`.toUpperCase();
519
+ d.y = u, d.query.outStatistics = [
450
520
  {
451
521
  statisticType: r,
452
- onStatisticField: l,
453
- outStatisticFieldName: d
522
+ onStatisticField: n,
523
+ outStatisticFieldName: u
454
524
  }
455
525
  ];
456
526
  }
457
- if (V(a.series[0]) && V(p)) {
458
- let d;
459
- if (a?.series?.[0] !== void 0 && (d = Y(a.series)), d !== D.BarAndLineNoAggregation && d !== D.BarAndLineSplitByNoAggregation) {
460
- let f = vt(a);
461
- f === G.Quarter && (f = G.Month), p.temporalBinning = {
462
- ...a.series[0]?.temporalBinning,
463
- unit: f
464
- };
465
- }
527
+ if (k(a.series[0]) && k(d)) {
528
+ let u = Tt(a);
529
+ u === se.Quarter && (u = se.Month), d.temporalBinning = {
530
+ ...a.series[0]?.temporalBinning,
531
+ unit: u
532
+ };
466
533
  }
467
- return ie(p);
468
- }
469
- function W(t, e, i) {
470
- const { layerFieldsInfo: r } = e, { idField: a, isTraditionalTypeOID: s } = X(e.layer), n = M(t), l = _(t), u = Be(t), c = le(t), S = s && (l.length === 0 || l.includes(a)), o = it(u, i), y = S ? "" : l.map((g) => w(r ?? [], g)).join(", "), m = w(r ?? [], n), p = w(r ?? [], c), d = t.series.some((g) => N(g)), f = d ? "category" : "xAxisField", x = m;
471
- let F = "";
472
- if (Te({
473
- fieldName: n,
474
- numericFields: l,
534
+ return re(d);
535
+ }
536
+ function j(t, e, s) {
537
+ const { layerFieldsInfo: r } = e, { idField: a, isTraditionalTypeOID: i } = H(e.layer), l = Y(t), n = G(t), y = be(t), g = _(t), S = i && (n.length === 0 || n.includes(a)), o = ut(y, s), c = S ? "" : n.map((F) => D(r ?? [], F)).join(", "), m = D(r ?? [], l), d = D(r ?? [], g), u = t.series.some((F) => O(F)), p = u ? "category" : "xAxisField", T = m;
538
+ let C = "";
539
+ if (xe({
540
+ fieldName: l,
541
+ numericFields: n,
475
542
  fieldList: r
476
543
  }))
477
- F = R(i.titleLabels.aggrTypeOfAggrFields, {
544
+ C = w(s.titleLabels.aggrTypeOfAggrFields, {
478
545
  aggregationType: o,
479
- aggregationFields: y
546
+ aggregationFields: c
480
547
  });
481
- else if (u === I.NoAggregation) {
482
- const g = S ? a : y;
483
- if (c === "") {
484
- const k = d ? "aggrTypeCategory" : "aggrTypeXAxisField";
485
- F = R(i.titleLabels[k], {
486
- aggregationType: g,
487
- [f]: x
548
+ else if (y === v.NoAggregation) {
549
+ const F = S ? a : c;
550
+ if (g === "") {
551
+ const f = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
552
+ C = w(s.titleLabels[f], {
553
+ aggregationType: F,
554
+ [p]: T
488
555
  });
489
556
  } else {
490
- const k = d ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
491
- F = R(i.titleLabels[k], {
492
- aggregationType: g,
493
- [f]: x,
494
- splitByField: p
557
+ const f = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
558
+ C = w(s.titleLabels[f], {
559
+ aggregationType: F,
560
+ [p]: T,
561
+ splitByField: d
495
562
  });
496
563
  }
497
- } else if (u === I.Count)
498
- if (c === "") {
499
- const g = d ? "aggrTypeCategory" : "aggrTypeXAxisField";
500
- F = R(i.titleLabels[g], {
564
+ } else if (y === v.Count)
565
+ if (g === "") {
566
+ const F = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
567
+ C = w(s.titleLabels[F], {
501
568
  aggregationType: o,
502
- [f]: x
569
+ [p]: T
503
570
  });
504
571
  } else {
505
- const g = d ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
506
- F = R(i.titleLabels[g], {
572
+ const F = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
573
+ C = w(s.titleLabels[F], {
507
574
  aggregationType: o,
508
- [f]: x,
509
- splitByField: p
575
+ [p]: T,
576
+ splitByField: d
510
577
  });
511
578
  }
512
- else if (c !== "") {
513
- const g = d ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
514
- F = R(i.titleLabels[g], {
579
+ else if (g !== "") {
580
+ const F = u ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
581
+ C = w(s.titleLabels[F], {
515
582
  aggregationType: o,
516
- aggregationField: y,
517
- [f]: x,
518
- splitByField: p
583
+ aggregationField: c,
584
+ [p]: T,
585
+ splitByField: d
519
586
  });
520
- } else if (l.length > 0) {
521
- const g = d ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
522
- F = R(i.titleLabels[g], {
587
+ } else if (n.length > 0) {
588
+ const F = u ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
589
+ C = w(s.titleLabels[F], {
523
590
  aggregationType: o,
524
- aggregationFields: y,
525
- [f]: x
591
+ aggregationFields: c,
592
+ [p]: T
526
593
  });
527
594
  }
528
- return F;
595
+ return C;
529
596
  }
530
- const xe = (t) => se({
597
+ const Ce = (t) => ne({
531
598
  where: t.query?.where,
532
599
  normalize: !1,
533
600
  escape: !1
534
- }) ?? "", Be = (t) => t?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? I.NoAggregation, le = ve(
601
+ }) ?? "", be = (t) => t?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? v.NoAggregation, _ = Ve(
535
602
  (t) => {
536
603
  const e = t?.series?.[0]?.query?.where?.split("=")[0].trim() ?? "";
537
- return st(t?.series?.[0]?.query?.where) ? "" : e;
604
+ return et(t?.series?.[0]?.query?.where) ? "" : e;
538
605
  },
539
606
  (t) => t?.series?.[0]?.query?.where
540
- ), _ = (t) => {
607
+ ), G = (t) => {
541
608
  let e = [];
542
- if (le(t) === "")
543
- e = t?.series.map((i) => {
544
- const r = i.query?.outStatistics?.map((a) => a.onStatisticField) ?? [];
545
- return r?.length > 0 ? r : i.y;
609
+ if (_(t) === "")
610
+ e = t?.series.map((s) => {
611
+ const r = s.query?.outStatistics?.map((a) => a.onStatisticField) ?? [];
612
+ return r?.length > 0 ? r : s.y;
546
613
  }).flat() ?? [];
547
614
  else {
548
- const i = t?.series?.[0], r = i?.query?.outStatistics?.[0]?.onStatisticField ?? [i?.y].flat()[0];
615
+ const s = t?.series?.[0], r = s?.query?.outStatistics?.[0]?.onStatisticField ?? [s?.y].flat()[0];
549
616
  e = r !== void 0 ? [r] : [];
550
617
  }
551
- return e.filter((i) => i !== "");
618
+ return e.filter((s) => s !== "");
552
619
  };
553
- function Ot(t) {
554
- const { numericFields: e, aggregationType: i, config: r, layerInfo: a } = t;
555
- let s = !1;
556
- i === I.Count ? s = !0 : i === I.NoAggregation && (s = e.every((u) => {
557
- const c = a.layerFieldsInfo.find((S) => S.name === u);
558
- return c !== void 0 ? ce(c) : !1;
559
- })), ge(r, 1, s);
560
- const n = r.series.some((u) => B(u)), l = r.series.some((u) => C(u));
561
- if (n || l) {
562
- const u = M(r), c = a.layerFieldsInfo.find((o) => o.name === u), S = c !== void 0 && ce(c);
563
- ge(r, 0, S);
620
+ function Ae(t) {
621
+ const { splitByField: e, numericFields: s, layer: r, seriesIndex: a } = t, i = H(r).idField ?? "";
622
+ return e === "" ? s[a] ?? i : s[0] ?? i;
623
+ }
624
+ function Pt(t) {
625
+ const { numericFields: e, aggregationType: s, config: r, layerInfo: a } = t;
626
+ let i = !1;
627
+ s === v.Count ? i = !0 : s === v.NoAggregation && (i = e.every((y) => {
628
+ const g = a.layerFieldsInfo.find((S) => S.name === y);
629
+ return g !== void 0 ? me(g) : !1;
630
+ })), ce(r, 1, i);
631
+ const l = r.series.some((y) => b(y)), n = r.series.some((y) => A(y));
632
+ if (l || n) {
633
+ const y = Y(r), g = a.layerFieldsInfo.find((o) => o.name === y), S = g !== void 0 && me(g);
634
+ ce(r, 0, S);
564
635
  }
565
636
  }
566
- const te = (t) => {
637
+ const ae = (t) => {
567
638
  let e;
568
- if (ae(t)) {
569
- const i = t.orderOptions?.data?.orderByX ?? [""], r = t.orderOptions?.data?.orderByY ?? [""], a = t.axes?.[0]?.valueFormat?.type === "category" ? L.Category : L.YValue, s = t.axes?.[1]?.valueFormat?.type === "category" ? L.Category : L.YValue;
570
- e = [pe(i, a), pe(r, s)];
639
+ if (oe(t)) {
640
+ const s = t.orderOptions?.data?.orderByX ?? [""], r = t.orderOptions?.data?.orderByY ?? [""], a = t.axes?.[0]?.valueFormat?.type === "category" ? N.Category : N.YValue, i = t.axes?.[1]?.valueFormat?.type === "category" ? N.Category : N.YValue;
641
+ e = [ge(s, a), ge(r, i)];
571
642
  } else {
572
- const i = t.orderOptions?.data?.orderType ?? L.Category, r = t.orderOptions?.data && "orderBy" in t.orderOptions.data ? t.orderOptions.data.orderBy : Le.Ascending;
573
- e = [gt(r, i)];
643
+ const s = t.orderOptions?.data?.orderType ?? N.Category, r = t.orderOptions?.data && "orderBy" in t.orderOptions.data ? t.orderOptions.data.orderBy : at.Ascending;
644
+ e = [st(r, s)];
574
645
  }
575
646
  return e;
576
647
  };
577
- function kt(t) {
578
- const { xAxisField: e, numericFields: i, aggregationType: r, config: a, layerInfo: s, commonStrings: n } = t, { layerFieldsInfo: l } = s;
579
- let u = !1;
580
- const c = E({
648
+ function wt(t) {
649
+ const { xAxisField: e, numericFields: s, aggregationType: r, config: a, layerInfo: i, commonStrings: l } = t, { layerFieldsInfo: n } = i;
650
+ let y = !1;
651
+ const g = W({
581
652
  config: a,
582
653
  xAxisField: e,
583
654
  aggregationType: r,
584
- layerInfo: s,
655
+ layerInfo: i,
585
656
  seriesIndex: 0,
586
- commonStrings: n
657
+ commonStrings: l
587
658
  }), S = Q({
588
659
  config: a,
589
660
  xAxisField: e,
590
- numericFields: i,
661
+ numericFields: s,
591
662
  aggregationType: r,
592
- layer: s.layer,
593
- fieldList: l
663
+ layer: i.layer,
664
+ fieldList: n
594
665
  }).name, o = {
595
- ...c,
666
+ ...g,
596
667
  id: `series_${Date.now()}`,
597
- name: n.axisLabels.values,
598
- x: J,
668
+ name: l.axisLabels.values,
669
+ x: te,
599
670
  y: S
600
- }, y = [];
601
- for (const p of i)
602
- y.push({
603
- onStatisticField: p,
604
- outStatisticFieldName: `${p}_0`.toUpperCase(),
671
+ }, c = [];
672
+ for (const d of s)
673
+ c.push({
674
+ onStatisticField: d,
675
+ outStatisticFieldName: `${d}_0`.toUpperCase(),
605
676
  statisticType: r
606
677
  });
607
- o.query = { outStatistics: y };
678
+ o.query = { outStatistics: c };
608
679
  const m = a.series[0];
609
- return m !== void 0 && (o.id = m.id, (B(o) && B(m) || C(o) && C(m)) && $(o, m), a.colorMatch || (N(m) && N(o) ? o.fillSymbol = m.fillSymbol : (B(o) && B(m) || C(o) && C(m)) && (o.lineSymbol = m.lineSymbol, o.markerSymbol = m.markerSymbol), u = !0), o.id = m.id, m.name !== c.name && (o.name = m.name)), a.series.length === 1 && ((B(o) || C(o)) && $(o, a.series[0]), a.colorMatch || (N(o) ? o.fillSymbol = a.series[0].fillSymbol : (B(o) || C(o)) && (o.lineSymbol = a.series[0].lineSymbol, o.markerSymbol = a.series[0].markerSymbol), u = !0)), a.colorMatch = !u, [o];
680
+ return m !== void 0 && (o.id = m.id, (b(o) && b(m) || A(o) && A(m)) && X(o, m), a.colorMatch || (O(m) && O(o) ? o.fillSymbol = m.fillSymbol : (b(o) && b(m) || A(o) && A(m)) && (o.lineSymbol = m.lineSymbol, o.markerSymbol = m.markerSymbol), y = !0), o.id = m.id, m.name !== g.name && (o.name = m.name)), a.series.length === 1 && ((b(o) || A(o)) && X(o, a.series[0]), a.colorMatch || (O(o) ? o.fillSymbol = a.series[0].fillSymbol : (b(o) || A(o)) && (o.lineSymbol = a.series[0].lineSymbol, o.markerSymbol = a.series[0].markerSymbol), y = !0)), a.colorMatch = !y, [o];
610
681
  }
611
- function Ce(t) {
612
- const { xAxisField: e, numericFields: i, aggregationType: r, config: a, layerInfo: s, commonStrings: n } = t, { layerFieldsInfo: l } = s, u = X(s.layer).idField, c = [];
682
+ function Ie(t) {
683
+ const { xAxisField: e, numericFields: s, aggregationType: r, config: a, layerInfo: i, commonStrings: l } = t, { layerFieldsInfo: n } = i, y = H(i.layer).idField, g = [];
613
684
  let S = !1;
614
- for (let d = 0; d < i.length; d += 1) {
615
- const f = E({
685
+ for (let u = 0; u < s.length; u += 1) {
686
+ const p = W({
616
687
  config: a,
617
688
  xAxisField: e,
618
689
  aggregationType: r,
619
- layerInfo: s,
620
- seriesIndex: d,
621
- commonStrings: n
622
- }), x = Q({
690
+ layerInfo: i,
691
+ seriesIndex: u,
692
+ commonStrings: l
693
+ }), T = a.series[u]?.y, C = typeof T == "string" && T.trim() !== "" && !n.find((h) => h.name === T) ? T : Q({
623
694
  config: a,
624
695
  xAxisField: e,
625
- numericFields: i,
696
+ numericFields: s,
626
697
  aggregationType: r,
627
- layer: s.layer,
628
- numericFieldIndex: d,
629
- fieldList: l
630
- }).name, F = i[d];
631
- let g = {
632
- ...f,
698
+ layer: i.layer,
699
+ numericFieldIndex: u,
700
+ fieldList: n
701
+ }).name, F = s[u];
702
+ let f = {
703
+ ...p,
633
704
  query: {
634
- ...f.query
705
+ ...p.query
635
706
  }
636
707
  };
637
- i && F !== u && (g = {
638
- ...g,
708
+ s && F !== y && (f = {
709
+ ...f,
639
710
  id: F,
640
- name: w(l, F)
711
+ name: D(n, F)
641
712
  });
642
- let k = F;
643
- g.query !== void 0 && (r !== I.NoAggregation ? (k = x, g.query.outStatistics = [
713
+ let R = F;
714
+ f.query !== void 0 && (r !== v.NoAggregation ? (R = C, f.query.outStatistics = [
644
715
  {
645
- ...f.query?.outStatistics?.[0] ?? {},
716
+ ...p.query?.outStatistics?.[0] ?? {},
646
717
  onStatisticField: F,
647
- outStatisticFieldName: x,
718
+ outStatisticFieldName: C,
648
719
  statisticType: r
649
720
  }
650
- ]) : delete g.query.outStatistics), g.y = k;
651
- const T = a.series.find(
652
- (O) => O.query?.outStatistics?.[0]?.onStatisticField === F && O.query.where === void 0 || O.query?.outStatistics === void 0 && (O.y === F || O.x === F)
721
+ ]) : delete f.query.outStatistics), f.y = R;
722
+ const x = a.series.find(
723
+ (h) => h.query?.outStatistics?.[0]?.onStatisticField === F && h.query.where === void 0 || h.query?.outStatistics === void 0 && (h.y === F || h.x === F)
653
724
  );
654
- if (T !== void 0 && typeof T.y == "string" && T.y.trim() !== "") {
655
- (B(g) && B(T) || C(g) && C(T)) && $(g, T), a.colorMatch || (N(g) && N(T) ? g.fillSymbol = T.fillSymbol : (B(g) && B(T) || C(g) && C(T)) && (g.lineSymbol = T.lineSymbol, g.markerSymbol = T.markerSymbol), S = !0);
656
- const O = E({
725
+ if (x !== void 0 && typeof x.y == "string" && x.y.trim() !== "") {
726
+ (b(f) && b(x) || A(f) && A(x)) && X(f, x), a.colorMatch || (O(f) && O(x) ? f.fillSymbol = x.fillSymbol : (b(f) && b(x) || A(f) && A(x)) && (f.lineSymbol = x.lineSymbol, f.markerSymbol = x.markerSymbol), S = !0);
727
+ const h = W({
657
728
  config: a,
658
729
  xAxisField: e,
659
730
  aggregationType: r,
660
- layerInfo: s,
661
- seriesIndex: d,
662
- commonStrings: n
731
+ layerInfo: i,
732
+ seriesIndex: u,
733
+ commonStrings: l
663
734
  });
664
- g.id = T.id, T.id !== O.id && T.name !== O.name && (g.id = T.id, g.name = T.name), g.assignToSecondValueAxis = T.assignToSecondValueAxis, g.type === A.HeatSeries && T.type === A.HeatSeries && (g.y = T.y, g.heatRulesType = T.heatRulesType);
735
+ f.id = x.id, x.id !== h.id && x.name !== h.name && (f.id = x.id, f.name = x.name), f.assignToSecondValueAxis = x.assignToSecondValueAxis, f.type === I.HeatSeries && x.type === I.HeatSeries && (f.y = x.y, f.heatRulesType = x.heatRulesType);
665
736
  }
666
- c.push(g);
737
+ g.push(f);
667
738
  }
668
- const o = c.filter((d) => N(d)), y = c.filter(
669
- (d) => B(d) || C(d)
670
- ), m = a.series.filter((d) => N(d)), p = a.series.filter(
671
- (d) => B(d) || C(d)
739
+ const o = g.filter((u) => O(u)), c = g.filter(
740
+ (u) => b(u) || A(u)
741
+ ), m = a.series.filter((u) => O(u)), d = a.series.filter(
742
+ (u) => b(u) || A(u)
672
743
  );
673
- return m.length === 1 && o.length === 1 && !a.colorMatch && (N(m[0]) && N(o[0]) && (o[0].fillSymbol = m[0].fillSymbol), S = !0), p.length === 1 && y.length === 1 && ((B(p[0]) && B(y[0]) || C(p[0]) && C(y[0])) && $(y[0], p[0]), a.colorMatch || ((B(p[0]) && B(y[0]) || C(p[0]) && C(y[0])) && (y[0].lineSymbol = p[0].lineSymbol, y[0].markerSymbol = p[0].markerSymbol), S = !0)), a.colorMatch = !S, c;
744
+ return m.length === 1 && o.length === 1 && !a.colorMatch && (O(m[0]) && O(o[0]) && (o[0].fillSymbol = m[0].fillSymbol), S = !0), d.length === 1 && c.length === 1 && ((b(d[0]) && b(c[0]) || A(d[0]) && A(c[0])) && X(c[0], d[0]), a.colorMatch || ((b(d[0]) && b(c[0]) || A(d[0]) && A(c[0])) && (c[0].lineSymbol = d[0].lineSymbol, c[0].markerSymbol = d[0].markerSymbol), S = !0)), a.colorMatch = !S, g;
674
745
  }
675
- function hs(t) {
676
- const { aggregationType: e, config: i, layerInfo: r, commonStrings: a } = t, { layerFieldsInfo: s, layer: n } = r, l = M(i), u = _(i), c = z(i, r, a), S = be(i, r, a);
677
- if (i.series.forEach((o, y) => {
678
- const m = Q({
679
- config: i,
680
- xAxisField: l,
681
- numericFields: u,
746
+ function ri(t) {
747
+ const { aggregationType: e, config: s, layerInfo: r, commonStrings: a } = t, { layerFieldsInfo: i, layer: l } = r, n = Y(s), y = G(s), g = _(s), S = Z(s, r, a), o = ve(s, r, a);
748
+ if (s.series.forEach((c, m) => {
749
+ const d = Q({
750
+ config: s,
751
+ xAxisField: n,
752
+ numericFields: y,
682
753
  aggregationType: e,
683
- layer: n,
684
- seriesIndex: y,
685
- numericFieldIndex: y,
686
- fieldList: s
754
+ splitByField: g,
755
+ layer: l,
756
+ seriesIndex: m,
757
+ numericFieldIndex: m,
758
+ fieldList: i
687
759
  }).name;
688
- e !== I.NoAggregation ? (o.y = m, o.query = {
689
- ...o.query,
690
- outStatistics: [
760
+ c.y = d;
761
+ const u = Ae({
762
+ splitByField: g,
763
+ numericFields: y,
764
+ layer: l,
765
+ seriesIndex: m
766
+ }), p = c.query?.outStatistics?.[0]?.onStatisticField ?? u;
767
+ c.query = {
768
+ ...c.query,
769
+ outStatistics: e === v.NoAggregation ? void 0 : [
691
770
  {
692
- ...o.query?.outStatistics?.[0],
693
- outStatisticFieldName: m,
771
+ ...c.query?.outStatistics?.[0],
772
+ outStatisticFieldName: d,
694
773
  statisticType: e,
695
- onStatisticField: o.query?.outStatistics?.[0]?.onStatisticField ?? u[y]
774
+ onStatisticField: p
696
775
  }
697
776
  ]
698
- }) : (delete o.query?.outStatistics, o.y = u[y]);
699
- }), c && i.title && (i.title.content.text = W(i, r, a)), S && i.series[0].type !== A.HeatSeries) {
700
- const o = re({
701
- config: i,
777
+ }, "temporalBinning" in c && c.temporalBinning !== void 0 && (c.temporalBinning.nullPolicy = e === v.NoAggregation ? M.Interpolate : M.Null), e === v.NoAggregation && bt(s);
778
+ }), S && s.title && (s.title.content.text = j(s, r, a)), o && s.series[0].type !== I.HeatSeries) {
779
+ const c = le({
780
+ config: s,
702
781
  layerInfo: r,
703
782
  commonStrings: a,
704
- numericFields: u,
783
+ numericFields: y,
705
784
  aggregationType: e
706
785
  });
707
- P(i, 1, o);
786
+ E(s, 1, c);
708
787
  }
709
788
  }
710
- function Dt(t) {
789
+ function Et(t) {
711
790
  const {
712
791
  splitByField: e,
713
- xAxisField: i,
792
+ xAxisField: s,
714
793
  numericFields: r,
715
794
  aggregationType: a,
716
- config: s,
717
- layerInfo: n,
718
- commonStrings: l,
719
- splitByFieldInfos: u
720
- } = t, { layer: c, layerFieldsInfo: S } = n, { categoriesArray: o, splitByFieldType: y } = u, m = r.length === 0 ? X(c).idField : r[0];
721
- let p = [], d = !1;
795
+ config: i,
796
+ layerInfo: l,
797
+ commonStrings: n,
798
+ splitByFieldInfos: y
799
+ } = t, { layer: g, layerFieldsInfo: S } = l, { categoriesArray: o, splitByFieldType: c } = y, m = Ae({
800
+ splitByField: e,
801
+ numericFields: r,
802
+ layer: g,
803
+ seriesIndex: 0
804
+ });
805
+ let d = [], u = !1;
722
806
  if (o.length === 0) {
723
- p = Ce({
724
- xAxisField: i,
807
+ d = Ie({
808
+ xAxisField: s,
725
809
  numericFields: r,
726
810
  aggregationType: a,
727
- config: s,
728
- layerInfo: n,
729
- commonStrings: l
811
+ config: i,
812
+ layerInfo: l,
813
+ commonStrings: n
730
814
  });
731
- for (const f of p)
732
- f.query && (f.query.where = `${e}=''`);
815
+ for (const p of d)
816
+ p.query && (p.query.where = `${e}=''`);
733
817
  } else
734
- for (let f = 0; f < o.length; f += 1) {
735
- const x = o[f], F = Q({
736
- config: s,
737
- xAxisField: i,
818
+ for (let p = 0; p < o.length; p += 1) {
819
+ const T = o[p], C = Q({
820
+ config: i,
821
+ xAxisField: s,
738
822
  numericFields: r,
739
823
  aggregationType: a,
740
- layer: n.layer,
741
- seriesIndex: f,
824
+ layer: l.layer,
825
+ seriesIndex: p,
742
826
  splitByField: e,
743
827
  fieldList: S
744
- }).name, g = E({
745
- config: s,
746
- xAxisField: i,
828
+ }).name, F = W({
829
+ config: i,
830
+ xAxisField: s,
747
831
  aggregationType: a,
748
- layerInfo: n,
749
- seriesIndex: f,
750
- commonStrings: l
751
- }), k = Se({
752
- queryObject: n.layer,
832
+ layerInfo: l,
833
+ seriesIndex: p,
834
+ commonStrings: n
835
+ }), f = he({
836
+ queryObject: l.layer,
753
837
  fieldName: e,
754
- fieldValue: x ?? ""
755
- }), T = `${x}`, h = {
756
- ...g,
757
- id: T,
758
- name: k ?? T,
759
- y: F,
838
+ fieldValue: T ?? ""
839
+ }), R = `${T}`, h = {
840
+ ...F,
841
+ id: R,
842
+ name: f ?? R,
843
+ y: C,
760
844
  query: {
761
- ...g.query,
762
- where: `${e}=${y === Ne.String && x !== null ? `'${x}'` : x}`,
763
- outStatistics: a !== I.NoAggregation ? [
845
+ ...F.query,
846
+ where: `${e}=${c === nt.String && T !== null ? `'${T}'` : T}`,
847
+ outStatistics: a !== v.NoAggregation ? [
764
848
  {
765
- ...g.query?.outStatistics?.[0] ?? {},
849
+ ...F.query?.outStatistics?.[0] ?? {},
766
850
  onStatisticField: m,
767
- outStatisticFieldName: F,
851
+ outStatisticFieldName: C,
768
852
  statisticType: a
769
853
  }
770
854
  ] : void 0
771
855
  }
772
- };
773
- a === I.NoAggregation && (h.query !== void 0 && (delete h.query.outStatistics, delete h.query.groupByFieldsForStatistics), h.y = m);
774
- const v = s.series.find(
775
- (b) => String(xe(b)).trim().replace(/'/gu, "") === T
856
+ }, L = i.series.find(
857
+ (V) => String(Ce(V)).trim().replace(/'/gu, "") === R
776
858
  );
777
- v !== void 0 && ((B(h) && B(v) || C(h) && C(v)) && $(h, v), s.colorMatch || (N(h) && N(v) ? h.fillSymbol = v.fillSymbol : (B(h) && B(v) || C(h) && C(v)) && (h.lineSymbol = v.lineSymbol, h.markerSymbol = v.markerSymbol), d = !0), h.id = v.id, h.name = v.name, h.assignToSecondValueAxis = v.assignToSecondValueAxis), h.query && (h.query.fetchNullValues = s.series.some((b) => b.query?.fetchNullValues)), p.push(h);
859
+ L !== void 0 && ((b(h) && b(L) || A(h) && A(L)) && X(h, L), i.colorMatch || (O(h) && O(L) ? h.fillSymbol = L.fillSymbol : (b(h) && b(L) || A(h) && A(L)) && (h.lineSymbol = L.lineSymbol, h.markerSymbol = L.markerSymbol), u = !0), h.id = L.id, h.name = L.name, h.assignToSecondValueAxis = L.assignToSecondValueAxis), h.query && (h.query.fetchNullValues = i.series.some((V) => V.query?.fetchNullValues)), d.push(h);
778
860
  }
779
- return s.colorMatch = !d, p;
861
+ return i.colorMatch = !u, d;
780
862
  }
781
- const Ts = (t) => {
863
+ const li = (t) => {
782
864
  const {
783
865
  xAxisFieldName: e,
784
- splitByField: i,
866
+ splitByField: s,
785
867
  numericFields: r,
786
868
  aggregationType: a,
787
- config: s,
788
- layerInfo: n,
789
- commonStrings: l,
790
- splitByFieldInfos: u
791
- } = t, { layerFieldsInfo: c } = n ?? {}, S = ft(s), o = M(s), y = c.find((b) => b.name === o), m = s.series[0]?.query === void 0, p = c.find((b) => b.name === e), d = z(s, n, l), f = be(s, n, l), x = wt(s, n);
792
- let F = he(s);
793
- const g = s.series.some((b) => N(b)), k = ct(s.series), T = dt(s.series), O = ae(s), h = {};
794
- O && (h.classBreaksRules = s.series[0]?.classBreaksRules, h.xTemporalBinning = s.series[0]?.xTemporalBinning, h.yTemporalBinning = s.series[0]?.yTemporalBinning, h.emptyCells = s.series[0]?.emptyCells, h.nullPolicy = s.nullPolicy);
795
- let v = !1;
796
- if (at(p) ? F = de() : !ue(y) && ue(p) ? F = ye() : !H(y) && H(p) ? (F = ye(), v = !0) : H(y) && !H(p) && (g ? F = de() : F = ut(), v = !0), F !== void 0 && mt(s, l, F), S === 0 && (s.series = [
797
- E({ config: s, xAxisField: e, aggregationType: a, layerInfo: n, commonStrings: l })
798
- ]), s.series.forEach((b) => {
799
- b.x = e, b.query !== void 0 && (b.query.groupByFieldsForStatistics = [e]);
800
- }), i === "" || r.length > 1 ? Te({
869
+ config: i,
870
+ layerInfo: l,
871
+ commonStrings: n,
872
+ splitByFieldInfos: y
873
+ } = t, { layerFieldsInfo: g } = l ?? {}, S = ht(i), o = Y(i), c = g.find((B) => B.name === o), m = i.series[0].query?.fetchNullValues, d = "nullCategory" in i.series?.[0] ? i.series[0].nullCategory : void 0, u = i.series[0]?.query === void 0, p = g.find((B) => B.name === e), T = Z(i, l, n), C = ve(i, l, n), F = Mt(i, l);
874
+ let f = Fe(i);
875
+ const R = i.series.some((B) => O(B)), x = pt(i.series), h = ft(i.series), L = oe(i), V = {};
876
+ L && (V.classBreaksRules = i.series[0]?.classBreaksRules, V.xTemporalBinning = i.series[0]?.xTemporalBinning, V.yTemporalBinning = i.series[0]?.yTemporalBinning, V.emptyCells = i.series[0]?.emptyCells, V.nullPolicy = i.nullPolicy);
877
+ let J = !1;
878
+ if (tt(p) ? f = pe() : !ye(c) && ye(p) ? f = fe() : !U(c) && U(p) ? (f = fe(), J = !0) : U(c) && !U(p) && (R ? f = pe() : f = gt(), J = !0), f !== void 0 && qe(i, n, f), S === 0 && (i.series = [
879
+ W({ config: i, xAxisField: e, aggregationType: a, layerInfo: l, commonStrings: n })
880
+ ]), i.series.forEach((B) => {
881
+ B.x = e, B.query !== void 0 && (B.query.groupByFieldsForStatistics = [e]);
882
+ }), s === "" || r.length > 1 ? xe({
801
883
  fieldName: e,
802
884
  numericFields: r,
803
- fieldList: c
804
- }) ? s.series = kt({
805
- config: s,
806
- layerInfo: n,
885
+ fieldList: g
886
+ }) ? i.series = wt({
887
+ config: i,
888
+ layerInfo: l,
807
889
  xAxisField: e,
808
890
  numericFields: r,
809
891
  aggregationType: a,
810
- commonStrings: l
811
- }) : s.series = Ce({
812
- config: s,
813
- layerInfo: n,
892
+ commonStrings: n
893
+ }) : i.series = Ie({
894
+ config: i,
895
+ layerInfo: l,
814
896
  xAxisField: e,
815
897
  numericFields: r,
816
898
  aggregationType: a,
817
- commonStrings: l
818
- }) : u && (s.series = Dt({
819
- config: s,
820
- layerInfo: n,
821
- splitByField: i,
899
+ commonStrings: n
900
+ }) : y && (i.series = Et({
901
+ config: i,
902
+ layerInfo: l,
903
+ splitByField: s,
822
904
  xAxisField: e,
823
905
  numericFields: r,
824
906
  aggregationType: a,
825
- commonStrings: l,
826
- splitByFieldInfos: u
827
- })), x && s.series[0].type !== A.HeatSeries) {
828
- const b = w(c, e);
829
- P(s, 0, b);
907
+ commonStrings: n,
908
+ splitByFieldInfos: y
909
+ })), F && i.series[0].type !== I.HeatSeries) {
910
+ const B = D(g, e);
911
+ E(i, 0, B);
830
912
  }
831
- if (f && s.series[0].type !== A.HeatSeries) {
832
- const b = re({
833
- config: s,
834
- layerInfo: n,
835
- commonStrings: l,
913
+ if (C && i.series[0].type !== I.HeatSeries) {
914
+ const B = le({
915
+ config: i,
916
+ layerInfo: l,
917
+ commonStrings: n,
836
918
  numericFields: r,
837
919
  aggregationType: a
838
920
  });
839
- P(s, 1, b);
921
+ E(i, 1, B);
840
922
  }
841
- if (d && s.title && (s.title.content.text = W(s, n, l)), q({ config: s, value: null, axisIndex: 1, isMax: !1 }), q({ config: s, value: null, axisIndex: 1, isMax: !0 }), Ot({ numericFields: r, aggregationType: a, config: s, layerInfo: n }), (k || T) && (q({ config: s, value: null, axisIndex: 0, isMax: !1 }), q({ config: s, value: null, axisIndex: 0, isMax: !0 }), v)) {
842
- const b = F?.type === A.DateAxisFormat ? K.Null : K.Interpolate;
843
- Lt(b, s);
923
+ if (T && i.title && (i.title.content.text = j(i, l, n)), q({ config: i, value: null, axisIndex: 1, isMax: !1 }), q({ config: i, value: null, axisIndex: 1, isMax: !0 }), Pt({ numericFields: r, aggregationType: a, config: i, layerInfo: l }), (x || h) && (q({ config: i, value: null, axisIndex: 0, isMax: !1 }), q({ config: i, value: null, axisIndex: 0, isMax: !0 }), J && a !== v.NoAggregation)) {
924
+ const B = f?.type === I.DateAxisFormat ? M.Null : M.Interpolate;
925
+ Ct(B, i);
844
926
  }
845
- O && (s.series[0].classBreaksRules = h.classBreaksRules, s.series[0].xTemporalBinning = h.xTemporalBinning, s.series[0].yTemporalBinning = h.yTemporalBinning, s.series[0].emptyCells = h.emptyCells, s.nullPolicy = h.nullPolicy), m && s.series.forEach((b) => {
846
- delete b.query;
927
+ L && (i.series[0].classBreaksRules = V.classBreaksRules, i.series[0].xTemporalBinning = V.xTemporalBinning, i.series[0].yTemporalBinning = V.yTemporalBinning, i.series[0].emptyCells = V.emptyCells, i.nullPolicy = V.nullPolicy), u ? i.series.forEach((B) => {
928
+ delete B.query;
929
+ }) : m && i.series.forEach((B) => {
930
+ B.query && (B.query.fetchNullValues = m);
931
+ }), d && i.series.forEach((B) => {
932
+ (B.type === I.BarSeries || B.type === I.LineSeries || B.type === I.RadarSeries) && (B.nullCategory = d);
847
933
  });
848
- }, $ = (t, e) => {
934
+ }, X = (t, e) => {
849
935
  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 = {
850
936
  ...e.markerSymbol,
851
937
  color: t.markerSymbol?.color
852
938
  });
853
- }, xs = (t) => {
854
- const { config: e, seriesIndex: i, layerInfo: r, commonStrings: a } = t, s = e.series?.[i], n = le(e);
855
- let l;
856
- if (Y(e.series) === D.BarAndLineFromFields)
857
- l = a.axisLabels.values;
858
- else if (Ae(n)) {
859
- const c = s.query?.outStatistics?.[0]?.onStatisticField;
860
- c !== void 0 && c !== X(r.layer).idField && (l = w(r.layerFieldsInfo, c));
939
+ }, ni = (t) => {
940
+ const { config: e, seriesIndex: s, layerInfo: r, commonStrings: a } = t, i = e.series?.[s], l = _(e);
941
+ let n;
942
+ if (K(e.series) === P.BarAndLineFromFields)
943
+ n = a.axisLabels.values;
944
+ else if (Le(l)) {
945
+ const g = i.query?.outStatistics?.[0]?.onStatisticField;
946
+ g !== void 0 && g !== H(r.layer).idField && (n = D(r.layerFieldsInfo, g));
861
947
  } else {
862
- const c = String(xe(s)).trim().replace(/'/gu, "");
863
- l = Se({
948
+ const g = String(Ce(i)).trim().replace(/'/gu, "");
949
+ n = he({
864
950
  queryObject: r.layer,
865
- fieldName: n,
866
- fieldValue: c ?? ""
867
- }) ?? c;
951
+ fieldName: l,
952
+ fieldValue: g ?? ""
953
+ }) ?? g;
868
954
  }
869
- return l ?? s.id;
870
- }, Bs = (t, e) => {
871
- if (ae(e))
872
- Vt(t, e);
955
+ return n ?? i.id;
956
+ }, oi = (t, e) => {
957
+ if (oe(e))
958
+ Ot(t, e);
873
959
  else {
874
960
  e.orderOptions ??= {};
875
- const i = e.orderOptions?.data?.orderType;
876
- te(e)[0] === ee.customSort && i === L.Category && (e.orderOptions.data = {
877
- orderType: L.Category,
961
+ const s = e.orderOptions?.data?.orderType;
962
+ ae(e)[0] === ee.customSort && s === N.Category && (e.orderOptions.data = {
963
+ orderType: N.Category,
878
964
  orderBy: [...t]
879
965
  });
880
966
  }
881
- }, Cs = async (t, e) => {
882
- const i = M(t), r = he(t)?.type, a = _(t), s = Y(t.series);
883
- let n = [];
884
- return r === A.CategoryAxisFormat && (s === D.BarAndLineFromFields || i === J ? n = a.map((l) => w(e?.layerFieldsInfo, l)) : i.trim() !== "" && i !== J && e !== void 0 && (n = await yt({
885
- layerInfo: e,
886
- config: t,
887
- category: i
888
- }))), n;
967
+ }, ui = async (t) => {
968
+ const { config: e, layerInfo: s, errorStrings: r } = t, a = Y(e), i = Fe(e)?.type, l = G(e), n = K(e.series);
969
+ let y = [];
970
+ return i === I.CategoryAxisFormat && (n === P.BarAndLineFromFields || a === te ? y = l.map((g) => D(s?.layerFieldsInfo, g)) : a.trim() !== "" && a !== te && s !== void 0 && (y = await Ne({
971
+ layerInfo: s,
972
+ config: e,
973
+ category: a,
974
+ errorStrings: r
975
+ }))), y;
889
976
  };
890
- function z(t, e, i) {
891
- const r = W(t, e, i), a = St(t), s = j(t);
892
- return r === a || s;
977
+ function Z(t, e, s) {
978
+ const r = j(t, e, s), a = xt(t), i = z(t);
979
+ return r === a || i;
893
980
  }
894
- function be(t, e, i) {
895
- const r = re({
981
+ function ve(t, e, s) {
982
+ const r = le({
896
983
  config: t,
897
984
  layerInfo: e,
898
- commonStrings: i,
899
- numericFields: _(t),
900
- aggregationType: Be(t)
901
- }), a = ne(1, t), s = j(t);
902
- return r === a || s;
903
- }
904
- function wt(t, e) {
905
- const i = w(e.layerFieldsInfo, M(t)), r = ne(0, t), a = j(t);
906
- return i === r || a;
907
- }
908
- function bs(t) {
909
- return V(t.series[0]) ? t.series[0].binTemporalData ?? !0 : !1;
910
- }
911
- function As(t, e) {
912
- e?.series.forEach((i) => {
913
- (i?.type === A.BarSeries || i?.type === A.LineSeries) && (i.binTemporalData = t, t ? i.temporalBinning = {
914
- unit: G.Day,
985
+ commonStrings: s,
986
+ numericFields: G(t),
987
+ aggregationType: be(t)
988
+ }), a = ue(1, t), i = z(t);
989
+ return r === a || i;
990
+ }
991
+ function Mt(t, e) {
992
+ const s = D(e.layerFieldsInfo, Y(t)), r = ue(0, t), a = z(t);
993
+ return s === r || a;
994
+ }
995
+ function ci(t) {
996
+ return k(t.series[0]) ? t.series[0].binTemporalData ?? !0 : !1;
997
+ }
998
+ function di(t, e) {
999
+ e?.series.forEach((s) => {
1000
+ (s?.type === I.BarSeries || s?.type === I.LineSeries) && (s.binTemporalData = t, t ? s.temporalBinning = {
1001
+ unit: se.Day,
915
1002
  size: 0,
916
- timeAggregationType: qe.Start,
1003
+ timeAggregationType: rt.Start,
917
1004
  trimIncompleteTimeInterval: !0,
918
- nullPolicy: K.Null
919
- } : delete i.temporalBinning);
1005
+ nullPolicy: M.Null
1006
+ } : delete s.temporalBinning);
920
1007
  });
921
1008
  }
922
1009
  export {
923
- ki as $,
924
- Ei as A,
925
- Zi as B,
926
- Ji as C,
927
- es as D,
928
- ts as E,
929
- Gi as F,
930
- zi as G,
931
- is as H,
932
- Nt as I,
933
- ss as J,
934
- as as K,
935
- te as L,
936
- rs as M,
937
- ns as N,
938
- ls as O,
939
- os as P,
940
- Fs as Q,
941
- Ss as R,
942
- us as S,
943
- cs as T,
944
- Ii as U,
945
- It as V,
946
- vt as W,
947
- Ni as X,
948
- Li as Y,
949
- Oi as Z,
950
- qi as _,
951
- _ as a,
952
- Vi as a0,
953
- Lt as a1,
954
- Di as a2,
955
- hs as a3,
956
- Cs as a4,
957
- Bs as a5,
958
- Ts as a6,
959
- bs as a7,
960
- As as a8,
961
- Ci as a9,
962
- bi as aa,
963
- Bi as ab,
964
- Ti as ac,
965
- xi as ad,
966
- Ft as ae,
967
- Ai as af,
968
- vi as ag,
969
- le as b,
970
- xs as c,
971
- W as d,
972
- qt as e,
973
- ds as f,
974
- Be as g,
975
- ys as h,
976
- Wi as i,
977
- Xi as j,
978
- Ki as k,
979
- Hi as l,
980
- ms as m,
981
- gs as n,
982
- ps as o,
983
- fs as p,
984
- wi as q,
985
- Ri as r,
986
- Yi as s,
987
- ji as t,
988
- Ui as u,
989
- _i as v,
990
- Qi as w,
991
- Mi as x,
992
- Pi as y,
993
- $i as z
1010
+ xs as $,
1011
+ oi as A,
1012
+ li as B,
1013
+ ci as C,
1014
+ di as D,
1015
+ j as E,
1016
+ Rt as F,
1017
+ Cs as G,
1018
+ Ks as H,
1019
+ Qs as I,
1020
+ As as J,
1021
+ bs as K,
1022
+ vs as L,
1023
+ Is as M,
1024
+ zs as N,
1025
+ _s as O,
1026
+ Gs as P,
1027
+ Zs as Q,
1028
+ ti as R,
1029
+ si as S,
1030
+ ii as T,
1031
+ ai as U,
1032
+ Ss as V,
1033
+ Fs as W,
1034
+ Vs as X,
1035
+ Ls as Y,
1036
+ qs as Z,
1037
+ Ns as _,
1038
+ ms as a,
1039
+ hs as a0,
1040
+ Bs as a1,
1041
+ Ts as a2,
1042
+ Os as a3,
1043
+ Ds as a4,
1044
+ Ps as a5,
1045
+ ws as a6,
1046
+ Rs as a7,
1047
+ ks as a8,
1048
+ Es as a9,
1049
+ Dt as aa,
1050
+ Ms as ab,
1051
+ $s as ac,
1052
+ Ys as ad,
1053
+ Ws as ae,
1054
+ Xs as af,
1055
+ Hs as ag,
1056
+ ei as ah,
1057
+ Js as ai,
1058
+ js as aj,
1059
+ Us as ak,
1060
+ cs as b,
1061
+ ds as c,
1062
+ G as d,
1063
+ _ as e,
1064
+ fs as f,
1065
+ be as g,
1066
+ ni as h,
1067
+ gs as i,
1068
+ is as j,
1069
+ Tt as k,
1070
+ ns as l,
1071
+ as as m,
1072
+ os as n,
1073
+ rs as o,
1074
+ ps as p,
1075
+ us as q,
1076
+ At as r,
1077
+ Bt as s,
1078
+ ls as t,
1079
+ ys as u,
1080
+ Ct as v,
1081
+ bt as w,
1082
+ ri as x,
1083
+ ae as y,
1084
+ ui as z
994
1085
  };