@arcgis/charts-components 5.2.0-next.3 → 5.2.0-next.31

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 (279) hide show
  1. package/dist/cdn/2ODYZG66.js +2 -0
  2. package/dist/cdn/{TAI4RIWT.js → 2SPGX6AF.js} +1 -1
  3. package/dist/cdn/35NSJ3NJ.js +2 -0
  4. package/dist/cdn/3MKY6UCO.js +2 -0
  5. package/dist/cdn/3NKDMMC2.js +2 -0
  6. package/dist/cdn/3QO6REDF.js +102 -0
  7. package/dist/cdn/3SBYV6BW.js +2 -0
  8. package/dist/cdn/{LRNADJJG.js → 3TBK72EK.js} +1 -1
  9. package/dist/cdn/{PC7IKOIB.js → 3UTF2CB3.js} +1 -1
  10. package/dist/cdn/3YN4EKSJ.js +2 -0
  11. package/dist/cdn/4BEGCEGA.js +4 -0
  12. package/dist/cdn/{TZB57XD4.js → 4P7URPRQ.js} +1 -1
  13. package/dist/cdn/4TRUG37X.js +2 -0
  14. package/dist/cdn/5UO6L27Q.js +2 -0
  15. package/dist/cdn/{PVJEBBA7.js → 5XCU5SR2.js} +1 -1
  16. package/dist/cdn/{YRBE7MBU.js → 6ANVHVX4.js} +1 -1
  17. package/dist/cdn/{VDG54AIC.js → 6CB5R4QQ.js} +1 -1
  18. package/dist/cdn/{U4XLNCOU.js → 6GV2QPKV.js} +1 -1
  19. package/dist/cdn/{JVHJMPFE.js → 6OCDFMFB.js} +1 -1
  20. package/dist/cdn/6VK54DG5.js +2 -0
  21. package/dist/cdn/{3YT44D4Z.js → 6XIDALQU.js} +1 -1
  22. package/dist/cdn/7VQXBQMZ.js +2 -0
  23. package/dist/cdn/{GL3IXVRN.js → 7Z7NOIH2.js} +1 -1
  24. package/dist/cdn/A636YSNA.js +2 -0
  25. package/dist/cdn/{5G7DSKI7.js → ADYDCO3M.js} +1 -1
  26. package/dist/cdn/{NQQW4GKA.js → AICTKGE3.js} +1 -1
  27. package/dist/cdn/AQIB3VEP.js +2 -0
  28. package/dist/cdn/AZR6HVRW.js +2 -0
  29. package/dist/cdn/{BBURKBKE.js → AZY72Q7D.js} +1 -1
  30. package/dist/cdn/BI54CNMR.js +2 -0
  31. package/dist/cdn/BJBNELDD.js +3 -0
  32. package/dist/cdn/BKU72IQC.js +2 -0
  33. package/dist/cdn/{N5ERJZPG.js → BQXXD2HU.js} +1 -1
  34. package/dist/cdn/BZFGE4LO.js +2 -0
  35. package/dist/cdn/C4TQOUPO.js +2 -0
  36. package/dist/cdn/{UKDTXHZT.js → CLN32L2L.js} +1 -1
  37. package/dist/cdn/CRCAJAFA.js +2 -0
  38. package/dist/cdn/DAF2U7TN.js +2 -0
  39. package/dist/cdn/DKENYDHS.js +233 -0
  40. package/dist/cdn/{5JML3JUR.js → DRFJC64L.js} +1 -1
  41. package/dist/cdn/{PK5XIIZY.js → G5EGTXMY.js} +1 -1
  42. package/dist/cdn/{KLC6NTPC.js → GCRQHIGQ.js} +1 -1
  43. package/dist/cdn/{HCMD362H.js → HBS6O3P3.js} +1 -1
  44. package/dist/cdn/{5QO32XSX.js → HIW5WRHR.js} +1 -1
  45. package/dist/cdn/IHHPUKGG.js +2 -0
  46. package/dist/cdn/IPALCXFF.js +2 -0
  47. package/dist/cdn/IWMWJN7M.js +2 -0
  48. package/dist/cdn/{A5GIBV5W.js → J2HYDDIW.js} +1 -1
  49. package/dist/cdn/JBR6IJMK.js +2 -0
  50. package/dist/cdn/{MRTKZZTF.js → JHANH4UG.js} +1 -1
  51. package/dist/cdn/JIV6BQKG.js +2 -0
  52. package/dist/cdn/{RFQBUWOW.js → K27GKXGP.js} +1 -1
  53. package/dist/cdn/{VVKV5KKN.js → KFPJI52X.js} +1 -1
  54. package/dist/cdn/KQLAAGKI.js +2 -0
  55. package/dist/cdn/{FDXE5JLT.js → LFXRCL7K.js} +1 -1
  56. package/dist/cdn/{UT4TYXFO.js → LU5S2VRK.js} +1 -1
  57. package/dist/cdn/{7ABIELGZ.js → M4ZJRIYM.js} +1 -1
  58. package/dist/cdn/M7QZTQSD.js +2 -0
  59. package/dist/cdn/{LZYN55O4.js → MBPFBE3E.js} +1 -1
  60. package/dist/cdn/MEA74C44.js +2 -0
  61. package/dist/cdn/{U2LJZ4ML.js → MVUIKY5Y.js} +1 -1
  62. package/dist/cdn/{3DK6M5E7.js → N673JFHK.js} +1 -1
  63. package/dist/cdn/NKVZYKL5.js +2 -0
  64. package/dist/cdn/O533LNDP.js +2 -0
  65. package/dist/cdn/O5NKLK7V.js +2 -0
  66. package/dist/cdn/PEYVSFSE.js +58 -0
  67. package/dist/cdn/{KOBNV5AQ.js → PKQOLKTW.js} +1 -1
  68. package/dist/cdn/{TNB3MBXR.js → Q2GW5LB7.js} +1 -1
  69. package/dist/cdn/QGEFY4ND.js +2 -0
  70. package/dist/cdn/{WASEMNYV.js → QNT6HTFC.js} +1 -1
  71. package/dist/cdn/{R45FWF7D.js → QV3NMKKZ.js} +1 -1
  72. package/dist/cdn/REZ2QR42.js +2 -0
  73. package/dist/cdn/{CHQDKVVQ.js → RIM4HLHN.js} +1 -1
  74. package/dist/cdn/{PZGIXDMC.js → RKG6CXUU.js} +1 -1
  75. package/dist/cdn/S7Z4HRW7.js +2 -0
  76. package/dist/cdn/SAYLTYWY.js +2 -0
  77. package/dist/cdn/SOGVYNPI.js +2 -0
  78. package/dist/cdn/SSKHF7PO.js +2 -0
  79. package/dist/cdn/{RAQZUMC6.js → T5TFLMQL.js} +1 -1
  80. package/dist/cdn/{23YH7MTF.js → TCS4HOSG.js} +1 -1
  81. package/dist/cdn/{LDPHZHSF.js → TOFVWGTG.js} +1 -1
  82. package/dist/cdn/TSA7UMSZ.js +2 -0
  83. package/dist/cdn/{KI4HS3AM.js → U3MRRFML.js} +1 -1
  84. package/dist/cdn/VWTJHXHI.js +2 -0
  85. package/dist/cdn/{PSO5AURI.js → WHVW3P3O.js} +1 -1
  86. package/dist/cdn/{WEQBZOH7.js → WJHIJTWS.js} +1 -1
  87. package/dist/cdn/{CJ4POAPM.js → WU62O2AU.js} +1 -1
  88. package/dist/cdn/X7YEBHBF.js +2 -0
  89. package/dist/cdn/X7Z4LEZH.js +2 -0
  90. package/dist/cdn/XRLVJJBT.js +2 -0
  91. package/dist/cdn/XRP6IFM4.js +2 -0
  92. package/dist/cdn/{TYMKFCF4.js → Y6CFEFZM.js} +1 -1
  93. package/dist/cdn/{LONASKGH.js → YFHB2EFH.js} +1 -1
  94. package/dist/cdn/YQIFZJTZ.js +2 -0
  95. package/dist/cdn/{2K4ODNJ4.js → YWCIV7ZZ.js} +1 -1
  96. package/dist/cdn/{VEA5ZR5D.js → YWKPGNHB.js} +1 -1
  97. package/dist/cdn/{ZRFHAQL6.js → Z43DVT6G.js} +1 -1
  98. package/dist/cdn/ZW4PF3UK.js +2 -0
  99. package/dist/cdn/assets/common/t9n/messages.en.json +1 -1
  100. package/dist/cdn/index.js +1 -1
  101. package/dist/cdn/main.css +1 -1
  102. package/dist/cdn/model/shared/setup-utils.js +2 -0
  103. package/dist/chart-rendering/common/data/utils/summarize-data/interfaces.d.ts +5 -1
  104. package/dist/chart-rendering/common/interfaces.d.ts +8 -8
  105. package/dist/chunks/chart-model.js +170 -138
  106. package/dist/chunks/class-breaks.js +18 -18
  107. package/dist/chunks/data.js +57 -57
  108. package/dist/chunks/heat-chart-model.js +46 -26
  109. package/dist/chunks/index2.js +2319 -2284
  110. package/dist/chunks/index3.js +32 -29
  111. package/dist/chunks/index4.js +107 -49
  112. package/dist/chunks/model-setter.js +1 -1
  113. package/dist/chunks/model-with-y-guides.js +6 -6
  114. package/dist/chunks/pie-chart-data.js +42 -36
  115. package/dist/chunks/pie-chart-model.js +175 -162
  116. package/dist/chunks/rotated-state.js +1 -1
  117. package/dist/chunks/scatterplot-model.js +1 -1
  118. package/dist/chunks/serial-chart-data.js +572 -526
  119. package/dist/chunks/serial-chart-model.js +107 -93
  120. package/dist/chunks/utils.js +67 -56
  121. package/dist/chunks/web-component-utils.js +632 -492
  122. package/dist/components/arcgis-chart/customElement.d.ts +145 -138
  123. package/dist/components/arcgis-chart/customElement.js +7178 -7164
  124. package/dist/components/arcgis-charts-action-bar/customElement.d.ts +4 -0
  125. package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
  126. package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +3 -3
  127. package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +34 -36
  128. package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +28 -28
  129. package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +5 -8
  130. package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +1 -1
  131. package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +23 -25
  132. package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +1 -1
  133. package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +14 -17
  134. package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +14 -16
  135. package/dist/components/arcgis-charts-config-create-flow/customElement.js +15 -15
  136. package/dist/components/arcgis-charts-config-format/customElement.js +25 -25
  137. package/dist/components/arcgis-charts-config-format-popover/customElement.js +7 -10
  138. package/dist/components/arcgis-charts-config-guide-popover/customElement.js +8 -11
  139. package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +1 -1
  140. package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +50 -51
  141. package/dist/components/arcgis-charts-config-histogram/customElement.js +28 -23
  142. package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +33 -34
  143. package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
  144. package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +2 -2
  145. package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +35 -37
  146. package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +6 -6
  147. package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +4 -5
  148. package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +49 -56
  149. package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +54 -55
  150. package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +6 -6
  151. package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +5 -8
  152. package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +27 -22
  153. package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +75 -75
  154. package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +18 -19
  155. package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +8 -10
  156. package/dist/docs/api.json +1 -1
  157. package/dist/docs/docs.json +1 -1
  158. package/dist/docs/vscode.html-custom-data.json +1 -1
  159. package/dist/docs/web-types.json +1 -1
  160. package/dist/index.d.ts +66 -70
  161. package/dist/index.js +212 -210
  162. package/dist/json-schema/index.d.ts +59 -2
  163. package/dist/loader.js +1 -1
  164. package/dist/model/chart-model/chart-model.d.ts +2 -1
  165. package/dist/model/heat-chart-model/heat-chart-model.d.ts +22 -0
  166. package/dist/model/interfaces/common.d.ts +0 -2
  167. package/dist/model/mixins/model-with-multi-axes.d.ts +22 -22
  168. package/dist/model/pie-chart-model/pie-chart-model.d.ts +2 -0
  169. package/dist/model/properties/data-tooltip-font-size.d.ts +20 -0
  170. package/dist/model/properties/rotated-state.d.ts +1 -1
  171. package/dist/model/serial-chart-model/serial-chart-model.d.ts +15 -0
  172. package/dist/spec/rest-js-object-literals.d.ts +2 -2
  173. package/dist/spec/rest-js-types.d.ts +22 -8
  174. package/dist/spec/web-chart.d.ts +8 -2
  175. package/dist/utils/chart-config/converter/index.js +1 -1
  176. package/dist/utils/chart-config/utils/index.d.ts +35 -0
  177. package/dist/utils/chart-config/validator/index.d.ts +1 -0
  178. package/dist/utils/chart-config/validator/interfaces.d.ts +3 -3
  179. package/dist/utils/data/index.d.ts +9 -12
  180. package/dist/utils/defaults/index.d.ts +1 -2
  181. package/dist/utils/errors/index.d.ts +1 -1
  182. package/dist/utils/layer/index.d.ts +5 -3
  183. package/dist/utils/layer/inline-conversion/interfaces.d.ts +0 -2
  184. package/dist/utils/layer/query-parser/index.d.ts +3 -3
  185. package/dist/utils/localization/interfaces.d.ts +4 -0
  186. package/dist/utils/misc/index.d.ts +2 -3
  187. package/dist/utils/types/index.d.ts +1 -5
  188. package/package.json +6 -6
  189. package/dist/cdn/24LTTBTF.js +0 -2
  190. package/dist/cdn/26FWESH3.js +0 -102
  191. package/dist/cdn/3XHZ677O.js +0 -2
  192. package/dist/cdn/5FMEOIBS.js +0 -3
  193. package/dist/cdn/74JAZF7U.js +0 -2
  194. package/dist/cdn/7HIZH35G.js +0 -2
  195. package/dist/cdn/CCR46UHB.js +0 -2
  196. package/dist/cdn/CRFJ2GGS.js +0 -2
  197. package/dist/cdn/CXQOEN77.js +0 -2
  198. package/dist/cdn/DYC3Q36R.js +0 -2
  199. package/dist/cdn/E2N2S7BH.js +0 -2
  200. package/dist/cdn/E43KEVHT.js +0 -2
  201. package/dist/cdn/EXTKNE2L.js +0 -2
  202. package/dist/cdn/F7Y6EWWB.js +0 -2
  203. package/dist/cdn/G5HVFOIO.js +0 -2
  204. package/dist/cdn/G7TRU7JI.js +0 -2
  205. package/dist/cdn/GES3HRXE.js +0 -2
  206. package/dist/cdn/HCV34H6X.js +0 -2
  207. package/dist/cdn/IHQ7R6L4.js +0 -4
  208. package/dist/cdn/IUFXFWXH.js +0 -2
  209. package/dist/cdn/JHYH555K.js +0 -2
  210. package/dist/cdn/JNNB2DIA.js +0 -2
  211. package/dist/cdn/JRRFLDWX.js +0 -58
  212. package/dist/cdn/KVGEY3IQ.js +0 -2
  213. package/dist/cdn/LWODMEOP.js +0 -2
  214. package/dist/cdn/LYZGRYQV.js +0 -2
  215. package/dist/cdn/MF3FGXHI.js +0 -2
  216. package/dist/cdn/MUPHTV55.js +0 -2
  217. package/dist/cdn/N524VXQ2.js +0 -2
  218. package/dist/cdn/NGPMU4T3.js +0 -2
  219. package/dist/cdn/NJCZ6UTM.js +0 -2
  220. package/dist/cdn/NMB6TWC2.js +0 -2
  221. package/dist/cdn/NNNTZU5J.js +0 -2
  222. package/dist/cdn/NS3THLCD.js +0 -2
  223. package/dist/cdn/NZR4L5AA.js +0 -2
  224. package/dist/cdn/OE3UFORR.js +0 -2
  225. package/dist/cdn/P2NPQAJ3.js +0 -2
  226. package/dist/cdn/PJUAU42S.js +0 -2
  227. package/dist/cdn/PY5Q3V6E.js +0 -2
  228. package/dist/cdn/RMYZGOBM.js +0 -2
  229. package/dist/cdn/RX3RNE7F.js +0 -2
  230. package/dist/cdn/TU3UF32Y.js +0 -2
  231. package/dist/cdn/TXSWWAOF.js +0 -2
  232. package/dist/cdn/UAJGYF4S.js +0 -2
  233. package/dist/cdn/UT6G7RV7.js +0 -2
  234. package/dist/cdn/VOTZAPI3.js +0 -2
  235. package/dist/cdn/WO6JBNMU.js +0 -2
  236. package/dist/cdn/YYK7SPXC.js +0 -2
  237. package/dist/cdn/ZRZEKOEF.js +0 -2
  238. package/dist/chunks/time-zone.js +0 -38
  239. /package/dist/cdn/{XE3FKQFA.js → 3HAB3JR6.js} +0 -0
  240. /package/dist/cdn/{DCZWZOPF.js → 3YOOX2CV.js} +0 -0
  241. /package/dist/cdn/{IPM2XKST.js → 4DSO7LUF.js} +0 -0
  242. /package/dist/cdn/{FF4DUQDZ.js → 5HRLHWQ5.js} +0 -0
  243. /package/dist/cdn/{ETKPMU7Z.js → 732EZ6WJ.js} +0 -0
  244. /package/dist/cdn/{AWF4R7WL.js → 7IS6QE6S.js} +0 -0
  245. /package/dist/cdn/{HVO4LIXR.js → 7XZZ5OZL.js} +0 -0
  246. /package/dist/cdn/{5MEQANMY.js → AN2NRYQV.js} +0 -0
  247. /package/dist/cdn/{L4G6FO7A.js → ASUGYCJ6.js} +0 -0
  248. /package/dist/cdn/{AM2TOTX6.js → BICQEJYZ.js} +0 -0
  249. /package/dist/cdn/{5XTQQOTT.js → C2I4WPWM.js} +0 -0
  250. /package/dist/cdn/{CLXVAIQX.js → C47AIJTI.js} +0 -0
  251. /package/dist/cdn/{N6AOFBBX.js → C5YJ7J3A.js} +0 -0
  252. /package/dist/cdn/{QOOBNATX.js → DPV2ZJLF.js} +0 -0
  253. /package/dist/cdn/{CJPEW4LJ.js → E4535ZTP.js} +0 -0
  254. /package/dist/cdn/{XW4PBQNW.js → FJNRPAMO.js} +0 -0
  255. /package/dist/cdn/{JBHGSSHS.js → GI54JT4O.js} +0 -0
  256. /package/dist/cdn/{5YJNENER.js → GYTYFBNU.js} +0 -0
  257. /package/dist/cdn/{AJWYIBGC.js → J5QUGI2J.js} +0 -0
  258. /package/dist/cdn/{TF7TE7K5.js → JPEN5TFK.js} +0 -0
  259. /package/dist/cdn/{SBYD2EKR.js → KBQM3DLQ.js} +0 -0
  260. /package/dist/cdn/{7FZC3RZK.js → LEMJA72W.js} +0 -0
  261. /package/dist/cdn/{6XTKJ7DO.js → MMO2QPOA.js} +0 -0
  262. /package/dist/cdn/{BJDRJUEJ.js → PS7IL5JZ.js} +0 -0
  263. /package/dist/cdn/{E7OAEGSE.js → R2RRMPOC.js} +0 -0
  264. /package/dist/cdn/{YOT6DVSU.js → RV6E7KKQ.js} +0 -0
  265. /package/dist/cdn/{GV3TT7L5.js → RYLXJPKL.js} +0 -0
  266. /package/dist/cdn/{LFQGH44F.js → S2R72ISR.js} +0 -0
  267. /package/dist/cdn/{2HUAW34Q.js → T4NEEFOY.js} +0 -0
  268. /package/dist/cdn/{K3GNHGEW.js → TEERYUCS.js} +0 -0
  269. /package/dist/cdn/{A4GEWIPY.js → V454JYTQ.js} +0 -0
  270. /package/dist/cdn/{ZFZ5AEUQ.js → V7JF5I5M.js} +0 -0
  271. /package/dist/cdn/{KFONSKQF.js → VIZWWEG5.js} +0 -0
  272. /package/dist/cdn/{KZ7LPNX3.js → W5SPX6WM.js} +0 -0
  273. /package/dist/cdn/{JJIGLOJA.js → X2IOJECM.js} +0 -0
  274. /package/dist/cdn/{QMSINFQX.js → X33RIIGI.js} +0 -0
  275. /package/dist/cdn/{ZXOO3X5P.js → YBTVIOHQ.js} +0 -0
  276. /package/dist/cdn/{KUZR6CGB.js → YFQHZWLO.js} +0 -0
  277. /package/dist/cdn/{DKAHZ7IX.js → YX4EVVJM.js} +0 -0
  278. /package/dist/cdn/{DEGBVJ76.js → YXH22GJ6.js} +0 -0
  279. /package/dist/cdn/{A5AECJXP.js → ZMQTYGGT.js} +0 -0
@@ -1,89 +1,120 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { substitute as P } from "@arcgis/core/intl.js";
3
- import { cloneDeep as ae, isEmpty as Ie, memoize as Le } from "lodash-es";
4
- import { S as J } from "./common.js";
5
- import { s as N, u as E, g as re, a as Fe, b as qe, c as Ve, d as ce } from "./utils.js";
6
- import { w as R, bW as Ne, bl as Re, x as ke, Y as W, cq as Oe, cp as De, p as we, aH as le, c0 as Pe, d as Ee, aG as Me, I as $e, a7 as Ye, bj as We, W as Xe, e as He, bm as je, cY as Ke, v as Ue, d2 as de, bK as Qe, d3 as ze, bG as Ge, B as _e, d0 as Ze, an as X, a6 as he, cR as ne, b9 as Je, k as ee, bo as et, bs as ye, ba as j, bg as me } from "./index2.js";
7
- import { a as M, s as Te, g as Q, b as ge, c as tt } from "./data.js";
8
- import { g as xe } from "./series-types.js";
9
- import { u as v, r as q, k as st, n as V, m as K, p as it, t as at, s as te } from "./chart-object-literals.js";
10
- import { C as D, d as w, F as U } from "./index3.js";
11
- import { convertChartSpec as rt } from "../utils/chart-config/converter/index.js";
12
- import { h as Be, i as O, j as lt, n as nt, g as b, m as A, e as pe } from "./index5.js";
13
- import { c as se, e as ot } from "./type-guards.js";
14
- import { az as ut, t as ct, Y as dt, a9 as yt, al as mt, x as gt, C as fe, H as Se, $ as pt } from "./index.js";
15
- import { g as oe } from "./utils2.js";
16
- import { a as ft, b as St } from "./series-length.js";
17
- import { i as Ft, R as ht } from "./rest-js-object-literals.js";
18
- import { i as z } from "./index4.js";
19
- const ts = (t) => {
2
+ import { substitute as w } from "@arcgis/core/intl.js";
3
+ import { cloneDeep as ne, isEmpty as Ve, memoize as Ne } from "lodash-es";
4
+ import { S as te } from "./common.js";
5
+ import { s as q, u as E, g as le, a as Fe, b as qe, c as Re, d as ce } from "./utils.js";
6
+ import { w as R, i as ke, cR as j, bY as Oe, bm as De, x as Pe, Y as Z, cq as we, cp as Ee, p as Me, aH as oe, c2 as $e, d as Ye, aG as We, I as Xe, a7 as je, bk as He, W as Ue, e as Ke, bo as Ze, cZ as _e, v as Qe, d4 as de, bM as ze, d5 as Ge, bI as Je, B as et, d1 as tt, an as H, a6 as he, b9 as st, k as se, bq as it, bu as ye, bb as K, bh as me } from "./index2.js";
7
+ import { a as Y, s as xe, g as _, b as pe, c as at } from "./data.js";
8
+ import { u as T, r as I, k as rt, n as N, m as M, p as nt, t as lt, s as ie } from "./chart-object-literals.js";
9
+ import { i as ot, R as ut } from "./rest-js-object-literals.js";
10
+ import { i as Q } from "./index4.js";
11
+ import { az as ct, t as dt, Y as yt, a9 as mt, al as pt, x as gt, C as ge, H as fe, $ as ft } 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 St, n as Ft, g as A, m as v, e as Se } from "./index5.js";
14
+ import { convertChartSpec as ht } from "../utils/chart-config/converter/index.js";
15
+ import { c as ae, e as xt } from "./type-guards.js";
16
+ import { g as Be } from "./series-types.js";
17
+ import { C as Tt, m as Bt } from "./model-setter.js";
18
+ import { g as ue } from "./utils2.js";
19
+ import { a as Ct, b as bt } from "./series-length.js";
20
+ const ms = (t) => {
20
21
  let e;
21
22
  const s = t.series[0];
22
23
  return R(s) && (e = s.temporalBinning?.size), e;
23
- }, Tt = (t) => {
24
+ }, At = (t) => {
24
25
  let e;
25
26
  const s = t.series[0];
26
27
  return R(s) && (e = s.temporalBinning?.unit), e;
27
- }, ss = (t) => {
28
+ }, ps = (t) => {
28
29
  let e;
29
30
  const s = t.series[0];
30
31
  return R(s) && (e = s.temporalBinning?.timeAggregationType), e;
31
- }, is = (t) => {
32
+ }, gs = (t) => {
32
33
  let e;
33
34
  const s = t.series[0];
34
35
  return R(s) && (e = s.temporalBinning?.trimIncompleteTimeInterval), e;
35
- }, as = (t) => {
36
+ }, fs = (t) => {
36
37
  let e;
37
38
  const s = t.series[0];
38
39
  return R(s) && (e = s.temporalBinning?.nullPolicy), e;
39
- }, xt = (t, e) => {
40
+ }, vt = (t, e) => {
40
41
  e?.series?.forEach((s) => {
41
42
  R(s) && (s.temporalBinning ??= {}, s.temporalBinning.size = t);
42
- }), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
43
- }, Bt = (t, e) => {
43
+ }), q({ config: e, value: null, axisIndex: 1, isMax: !1 }), q({ config: e, value: null, axisIndex: 1, isMax: !0 });
44
+ }, It = (t, e) => {
44
45
  e?.series?.forEach((s) => {
45
46
  R(s) && (s.temporalBinning ??= {}, s.temporalBinning.nullPolicy = t);
46
- }), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
47
- }, rs = (t, e) => {
47
+ }), q({ config: e, value: null, axisIndex: 1, isMax: !1 }), q({ config: e, value: null, axisIndex: 1, isMax: !0 });
48
+ }, Ss = (t, e) => {
48
49
  e.series?.forEach((s) => {
49
50
  R(s) && (s.temporalBinning ??= {}, s.temporalBinning.unit = t);
50
- }), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
51
- }, ls = (t, e) => {
51
+ }), q({ config: e, value: null, axisIndex: 1, isMax: !1 }), q({ config: e, value: null, axisIndex: 1, isMax: !0 });
52
+ }, Fs = (t, e) => {
52
53
  e.series?.forEach((s) => {
53
54
  R(s) && (s.temporalBinning ??= {}, s.temporalBinning.timeAggregationType = t);
54
- }), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
55
- }, ns = (t, e) => {
55
+ }), q({ config: e, value: null, axisIndex: 1, isMax: !1 }), q({ config: e, value: null, axisIndex: 1, isMax: !0 });
56
+ }, hs = (t, e) => {
56
57
  e.series?.forEach((s) => {
57
58
  R(s) && (s.temporalBinning ??= {}, s.temporalBinning.trimIncompleteTimeInterval = t);
58
- }), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
59
- }, os = (t) => {
60
- xt(0, t);
59
+ }), q({ config: e, value: null, axisIndex: 1, isMax: !1 }), q({ config: e, value: null, axisIndex: 1, isMax: !0 });
60
+ }, Lt = (t) => {
61
+ vt(0, t);
62
+ };
63
+ var Vt = Object.defineProperty, Nt = Object.getOwnPropertyDescriptor, qt = (t, e, s, r) => {
64
+ for (var a = Nt(e, s), i = t.length - 1, n; i >= 0; i--)
65
+ (n = t[i]) && (a = n(e, s, a) || a);
66
+ return a && Vt(e, s, a), a;
67
+ };
68
+ const Rt = (t) => {
69
+ let e;
70
+ return j(t) ? e = t.outTimeZone : t?.series.forEach((s) => {
71
+ (s.type === T.BarSeries || s.type === T.RadarSeries || s.type === T.LineSeries) && s.temporalBinning && (e = s.temporalBinning.outTimeZone);
72
+ }), e || (e = t?.axes?.[0]?.valueFormat.type === T.DateAxisFormat ? t.axes[0].valueFormat.intlOptions.timeZone : void 0), e;
73
+ }, Ce = (t, e) => {
74
+ const s = ke(t);
75
+ j(e) ? t ? e.outTimeZone = s : delete e.outTimeZone : e?.series.forEach((r) => {
76
+ (r.type === T.BarSeries || r.type === T.RadarSeries || r.type === T.LineSeries) && (t ? (r.temporalBinning ??= {}, r.temporalBinning.outTimeZone = s) : r.temporalBinning && delete r.temporalBinning.outTimeZone);
77
+ }), e?.axes?.[0]?.valueFormat.type === T.DateAxisFormat && (t ? e.axes[0].valueFormat.intlOptions.timeZone = s : delete e.axes[0].valueFormat.intlOptions.timeZone);
61
78
  };
62
- function us(t, e) {
79
+ class kt extends Tt {
80
+ /**
81
+ * Gets the time zone for the chart.
82
+ */
83
+ get timeZone() {
84
+ return Rt(this._config);
85
+ }
86
+ set timeZone(e) {
87
+ Ce(e, this._config), this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"));
88
+ }
89
+ }
90
+ qt([
91
+ Bt
92
+ ], kt.prototype, "timeZone");
93
+ function xs(t, e) {
63
94
  let s;
64
95
  return e !== void 0 && (s = { ...e }, s.legend !== void 0 && (s.legend.position = t)), s;
65
96
  }
66
- function cs(t, e) {
97
+ function Ts(t, e) {
67
98
  let s;
68
99
  return e !== void 0 && (s = { ...e }, s.legend !== void 0 && (s.legend.visible = t)), s;
69
100
  }
70
- function ds(t, e) {
101
+ function Bs(t, e) {
71
102
  let s;
72
103
  return e !== void 0 && (s = { ...e, rotated: t }), s;
73
104
  }
74
- function Ct(t) {
105
+ function Ot(t) {
75
106
  let e;
76
107
  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;
77
108
  }
78
- function ys(t, e) {
79
- return e != null || Be(t);
109
+ function Cs(t, e) {
110
+ return e != null || Te(t);
80
111
  }
81
- async function ms(t) {
112
+ async function bs(t) {
82
113
  const { config: e, layer: s, abortSignal: r } = t;
83
114
  let a = !1;
84
- return se(s) || ot(e) ? e && se(s) && (a = await Re({ config: e, layer: s, abortSignal: r })) : a = !0, a;
115
+ return ae(s) || xt(e) ? e && ae(s) && (a = await De({ config: e, layer: s, abortSignal: r })) : a = !0, a;
85
116
  }
86
- async function bt(t) {
117
+ async function Dt(t) {
87
118
  const {
88
119
  queryObject: e,
89
120
  chartConfig: s,
@@ -92,83 +123,83 @@ async function bt(t) {
92
123
  abortSignal: i,
93
124
  runtimeDataFilters: n,
94
125
  ignoreViewExtent: o,
95
- setTimeBinningInfoWhenNotProvided: c,
126
+ setTimeBinningInfoWhenNotProvided: d,
96
127
  returnFeaturesExtent: m,
97
- chartLimits: F
128
+ chartLimits: S
98
129
  } = t;
99
- let l = [], g;
100
- const d = ae(s), y = d.series[0], u = He({
130
+ let u = [], c;
131
+ const y = ne(s), p = y.series[0], l = Ke({
101
132
  queryObject: e,
102
- chartConfig: d,
133
+ chartConfig: y,
103
134
  runtimeDataFilters: n,
104
135
  ignoreViewExtent: o
105
136
  });
106
- if (u.outStatistics?.[0]?.outStatisticFieldName && (u.outStatistics[0].outStatisticFieldName = ut.outStatistics.outStatisticFieldName), R(y) && je({
107
- xAxisValueFormatType: Ke(d),
108
- setTimeBinningInfoWhenNotProvided: c,
109
- seriesConfig: y,
137
+ if (l.outStatistics?.[0]?.outStatisticFieldName && (l.outStatistics[0].outStatisticFieldName = ct.outStatistics.outStatisticFieldName), R(p) && Ze({
138
+ xAxisValueFormatType: _e(y),
139
+ setTimeBinningInfoWhenNotProvided: d,
140
+ seriesConfig: p,
110
141
  queryObject: e
111
- }) && Ue(r, e)) {
112
- const { temporalBinning: p, x: B } = y, { uniqueQuery: C } = de({
113
- chartConfig: d,
114
- queryConfig: u,
142
+ }) && Qe(r, e)) {
143
+ const { temporalBinning: g, x: B } = p, { uniqueQuery: b } = de({
144
+ chartConfig: y,
145
+ queryConfig: l,
115
146
  queryObject: e,
116
- setTimeBinningInfoWhenNotProvided: c,
147
+ setTimeBinningInfoWhenNotProvided: d,
117
148
  returnFeaturesExtent: m,
118
- chartLimits: F
119
- }), h = s.axes?.[0].valueFormat.type === v.DateAxisFormat ? s.axes[0].valueFormat.intlOptions.timeZone : void 0;
120
- g = await Qe({
149
+ chartLimits: S
150
+ }), F = s.axes?.[0].valueFormat.type === T.DateAxisFormat ? s.axes[0].valueFormat.intlOptions.timeZone : void 0;
151
+ c = await ze({
121
152
  queryObject: e,
122
153
  dateField: B,
123
154
  splitByField: r,
124
- queryConfig: C,
125
- axisTimeZone: h,
126
- temporalBinning: p,
155
+ queryConfig: b,
156
+ axisTimeZone: F,
157
+ temporalBinning: g,
127
158
  errorStrings: a,
128
159
  abortSignal: i
129
- }), l = Array.from(
160
+ }), u = Array.from(
130
161
  new Set(
131
- g.flatMap((f) => {
162
+ c.flatMap((f) => {
132
163
  const { stackedAttributes: k } = f;
133
- let T = [];
134
- return k && (T = k.map((S) => S[r]).filter((S) => S !== void 0)), T;
164
+ let x = [];
165
+ return k && (x = k.map((h) => h[r]).filter((h) => h !== void 0)), x;
135
166
  })
136
167
  ).values()
137
168
  );
138
169
  } else {
139
- const { uniqueQuery: p } = de({
140
- chartConfig: d,
170
+ const { uniqueQuery: g } = de({
171
+ chartConfig: y,
141
172
  queryObject: e,
142
- queryConfig: u,
143
- setTimeBinningInfoWhenNotProvided: c,
173
+ queryConfig: l,
174
+ setTimeBinningInfoWhenNotProvided: d,
144
175
  returnFeaturesExtent: m,
145
- chartLimits: F
146
- }), { elementCount: B } = await ze({
147
- chartConfig: d,
176
+ chartLimits: S
177
+ }), { elementCount: B } = await Ge({
178
+ chartConfig: y,
148
179
  queryObject: e,
149
- queryConfig: u,
150
- behaviorAfterLimit: F?.behaviorAfterLimit,
151
- numberMaxOfFeaturesToFetch: p.num,
180
+ queryConfig: l,
181
+ behaviorAfterLimit: S?.behaviorAfterLimit,
182
+ numberMaxOfFeaturesToFetch: g.num,
152
183
  abortSignal: i
153
184
  });
154
- g = await Ge({
185
+ c = await Je({
155
186
  queryObject: e,
156
- queryConfig: p,
187
+ queryConfig: g,
157
188
  featureCount: B,
158
189
  errorStrings: a,
159
190
  abortSignal: i
160
- }), l = Array.from(
191
+ }), u = Array.from(
161
192
  new Set(
162
- g.map((C) => C.attributes[r]).filter((C) => C !== void 0)
193
+ c.map((b) => b.attributes[r]).filter((b) => b !== void 0)
163
194
  ).values()
164
195
  );
165
196
  }
166
- return { allValues: l, preFetchedQueryResponse: g };
197
+ return { allValues: u, preFetchedQueryResponse: c };
167
198
  }
168
- function At(t, e) {
199
+ function Pt(t, e) {
169
200
  const s = /* @__PURE__ */ new Map();
170
201
  return t.series.forEach((r) => {
171
- let a = le({
202
+ let a = oe({
172
203
  where: r.query?.where,
173
204
  // normalize the value so it matches what we get from getAllValues()
174
205
  // Refer to https://devtopia.esri.com/WebGIS/arcgis-charts/issues/8127
@@ -178,24 +209,24 @@ function At(t, e) {
178
209
  escape: !1
179
210
  });
180
211
  e && a !== null && (a = Number(a));
181
- const i = xe([r]);
212
+ const i = Be([r]);
182
213
  i !== void 0 && s.set(i, [
183
214
  ...s.get(i) ?? [],
184
215
  a
185
216
  ]);
186
217
  }), s;
187
218
  }
188
- function vt(t) {
219
+ function wt(t) {
189
220
  const { allValues: e, configUniqueValuesPerSeriesType: s, initialConfigWasEmpty: r } = t, a = /* @__PURE__ */ new Map();
190
221
  return Array.from(s.keys()).forEach((i) => {
191
222
  const n = s.get(i) ?? [];
192
223
  let o = [];
193
- r ? o = e : e.forEach((c) => {
194
- n.includes(c) || o.push(c);
224
+ r ? o = e : e.forEach((d) => {
225
+ n.includes(d) || o.push(d);
195
226
  }), a.set(i, o);
196
227
  }), a;
197
228
  }
198
- function It(t) {
229
+ function Et(t) {
199
230
  const { chartConfig: e, missingValue: s, splitByField: r, seriesTemplate: a } = t, i = JSON.parse(
200
231
  JSON.stringify({
201
232
  ...e.series[0],
@@ -203,7 +234,7 @@ function It(t) {
203
234
  })
204
235
  );
205
236
  if (i.query) {
206
- if (i.id = `${s}-${e.series.length}-${Date.now()}`, i.name = `${s}`, i.query.outStatistics?.[0] !== void 0) {
237
+ if (s === null ? i.id = $.nullValue : s === "" ? i.id = $.emptyStringValue : i.id = `${s}`, i.name = `${s}`, i.query.outStatistics?.[0] !== void 0) {
207
238
  const o = i.id;
208
239
  i.query.outStatistics[0].outStatisticFieldName = o, "y" in i && (i.y = o);
209
240
  }
@@ -212,7 +243,7 @@ function It(t) {
212
243
  }
213
244
  return i;
214
245
  }
215
- async function Lt(t) {
246
+ async function Mt(t) {
216
247
  const {
217
248
  updateSplitBySeries: e,
218
249
  config: s,
@@ -221,55 +252,55 @@ async function Lt(t) {
221
252
  abortSignal: i,
222
253
  runtimeDataFilters: n,
223
254
  ignoreViewExtent: o,
224
- setTimeBinningInfoWhenNotProvided: c,
255
+ setTimeBinningInfoWhenNotProvided: d,
225
256
  returnFeaturesExtent: m,
226
- chartLimits: F
227
- } = t, { seriesTemplate: l } = e ?? {};
228
- let g;
229
- if (r && !se(r) && e !== void 0 && s !== void 0 && (s.series.length > 0 || l !== void 0) && e.addMissingSeries) {
230
- const d = s.series.length === 0;
231
- s.series.length === 0 && l !== void 0 && s.series.push(l);
232
- const y = W(s.series);
233
- if (y === D.BoxPlotMonoFieldAndSplitBy || y === D.BoxPlotMultiFieldsAndSplitBy || y === D.BoxPlotMonoFieldAndCategoryAndSplitBy || y === D.BarAndLineSplitBy || y === D.BarAndLineSplitByNoAggregation) {
234
- const u = Me(s.series[0]?.query?.where), p = $e(r), B = Ye(u, p), C = B ? We(B) : !1, h = await bt({
257
+ chartLimits: S
258
+ } = t, { seriesTemplate: u } = e ?? {};
259
+ let c;
260
+ if (r && !ae(r) && e !== void 0 && s !== void 0 && (s.series.length > 0 || u !== void 0) && e.addMissingSeries) {
261
+ const y = s.series.length === 0;
262
+ s.series.length === 0 && u !== void 0 && s.series.push(u);
263
+ const p = Z(s.series);
264
+ if (p === P.BoxPlotMonoFieldAndSplitBy || p === P.BoxPlotMultiFieldsAndSplitBy || p === P.BoxPlotMonoFieldAndCategoryAndSplitBy || p === P.BarAndLineSplitBy || p === P.BarAndLineSplitByNoAggregation) {
265
+ const l = We(s.series[0]?.query?.where), g = Xe(r), B = je(l, g), b = B ? He(B) : !1, F = await Dt({
235
266
  queryObject: r,
236
267
  chartConfig: s,
237
- splitByField: u,
268
+ splitByField: l,
238
269
  abortSignal: i,
239
270
  runtimeDataFilters: n,
240
271
  ignoreViewExtent: o,
241
- setTimeBinningInfoWhenNotProvided: c,
272
+ setTimeBinningInfoWhenNotProvided: d,
242
273
  returnFeaturesExtent: m,
243
- chartLimits: F,
274
+ chartLimits: S,
244
275
  errorStrings: a
245
- }), { allValues: f } = h;
246
- if ({ preFetchedQueryResponse: g } = h, f.length > 0) {
247
- const k = At(s, C), T = vt({
276
+ }), { allValues: f } = F;
277
+ if ({ preFetchedQueryResponse: c } = F, f.length > 0) {
278
+ const k = Pt(s, b), x = wt({
248
279
  allValues: f,
249
280
  configUniqueValuesPerSeriesType: k,
250
- initialConfigWasEmpty: d
281
+ initialConfigWasEmpty: y
251
282
  });
252
- Array.from(T.keys()).forEach((S) => {
253
- (T.get(S) ?? []).forEach((L) => {
283
+ Array.from(x.keys()).forEach((h) => {
284
+ (x.get(h) ?? []).forEach((V) => {
254
285
  s.series.push(
255
- It({
286
+ Et({
256
287
  chartConfig: s,
257
- seriesTemplate: l,
258
- missingValue: L,
259
- splitByField: u
288
+ seriesTemplate: u,
289
+ missingValue: V,
290
+ splitByField: l
260
291
  })
261
292
  );
262
- }), d && s.series.shift();
293
+ }), y && s.series.shift();
263
294
  });
264
295
  }
265
296
  }
266
297
  }
267
- return g;
298
+ return c;
268
299
  }
269
- function qt(t, e) {
270
- e && !Be(e) && (e = Ee({ chartConfig: e, queryObject: t }));
300
+ function $t(t, e) {
301
+ e && !Te(e) && (e = Ye({ chartConfig: e, queryObject: t }));
271
302
  }
272
- async function gs(t) {
303
+ async function As(t) {
273
304
  const {
274
305
  configToAlter: e,
275
306
  layer: s,
@@ -278,183 +309,184 @@ async function gs(t) {
278
309
  chartContainer: i,
279
310
  queryObject: n,
280
311
  abortSignal: o,
281
- runtimeDataFilters: c,
312
+ runtimeDataFilters: d,
282
313
  ignoreViewExtent: m,
283
- setTimeBinningInfoWhenNotProvided: F,
284
- returnFeaturesExtent: l,
285
- chartLimits: g,
286
- errorStrings: d
314
+ setTimeBinningInfoWhenNotProvided: S,
315
+ returnFeaturesExtent: u,
316
+ chartLimits: c,
317
+ timeZone: y,
318
+ errorStrings: p
287
319
  } = t;
288
- let y = e, u;
289
- return y && (qt(s, y), y = await rt(y, s, void 0, o), r && n && (u = await Lt({
320
+ let l = e, g;
321
+ return l && ($t(s, l), l = await ht(l, s, void 0, o), r && n && (g = await Mt({
290
322
  updateSplitBySeries: a,
291
- config: y,
323
+ config: l,
292
324
  queryObject: n,
293
- errorStrings: d,
325
+ errorStrings: p,
294
326
  abortSignal: o,
295
- runtimeDataFilters: c,
327
+ runtimeDataFilters: d,
296
328
  ignoreViewExtent: m,
297
- setTimeBinningInfoWhenNotProvided: F,
298
- returnFeaturesExtent: l,
299
- chartLimits: g
300
- })), y = Ne(y, i)), { alteredConfig: y, preFetchedQueryResponse: u };
329
+ setTimeBinningInfoWhenNotProvided: S,
330
+ returnFeaturesExtent: u,
331
+ chartLimits: c
332
+ })), l = Oe(l, i), Ce(y, l)), { alteredConfig: l, preFetchedQueryResponse: g };
301
333
  }
302
- function Vt(t, e) {
334
+ function Yt(t, e) {
303
335
  let s = !1;
304
336
  if (e !== void 0) {
305
- const r = Xe({ key: _e.Average, splitBy: e });
337
+ const r = Ue({ key: et.Average, splitBy: e });
306
338
  s = Number.isFinite(t[r]);
307
339
  }
308
340
  return s;
309
341
  }
310
- function ps(t) {
311
- const { data: e, config: s, showEmptySeries: r } = t, a = s.series.length, i = ae(s);
342
+ function vs(t) {
343
+ const { data: e, config: s, showEmptySeries: r } = t, a = s.series.length, i = ne(s);
312
344
  let n = !1;
313
345
  if (!r && a > 1 && e) {
314
- const o = ke(e), c = xe(s?.series), m = W(s?.series), F = /* @__PURE__ */ new Set();
315
- switch (c) {
316
- case v.ComboLineAndBarSeries:
317
- case v.BarSeries:
318
- case v.RadarSeries:
319
- case v.LineSeries: {
320
- i.series.forEach((g) => {
346
+ const o = Pe(e), d = Be(s?.series), m = Z(s?.series), S = /* @__PURE__ */ new Set();
347
+ switch (d) {
348
+ case T.ComboLineAndBarSeries:
349
+ case T.BarSeries:
350
+ case T.RadarSeries:
351
+ case T.LineSeries: {
352
+ i.series.forEach((c) => {
321
353
  if (Array.isArray(o)) {
322
- let d = "";
323
- "y" in g && (d = Array.isArray(g.y) ? g.y[0] : g.y, m === D.BarAndLineSplitByNoAggregation && (d = `${d}_${le({ where: g.query?.where, keepSurroundingQuotes: !1, escape: !1 })}`), o.some(
324
- (u) => Pe({
325
- dataItem: u,
326
- x: g.x,
327
- y: d,
354
+ let y = "";
355
+ "y" in c && (y = Array.isArray(c.y) ? c.y[0] : c.y, m === P.BarAndLineSplitByNoAggregation && (y = `${y}_${oe({ where: c.query?.where, keepSurroundingQuotes: !1, escape: !1 })}`), o.some(
356
+ (l) => $e({
357
+ dataItem: l,
358
+ x: c.x,
359
+ y,
328
360
  aggregationType: s.series[0].query?.outStatistics?.[0]?.statisticType
329
361
  })
330
- ) && F.add(g));
362
+ ) && S.add(c));
331
363
  }
332
364
  });
333
365
  break;
334
366
  }
335
- case v.BoxPlotSeries: {
336
- if (Oe(s)) {
337
- const g = De(s);
338
- s.series.forEach((d) => {
339
- let y, u;
340
- d.type === v.BoxPlotSeries ? (y = e.dataItems, u = y?.some(
341
- (p) => we({
342
- dataItem: p,
343
- splitBy: d.query?.where,
344
- showOutliers: g
367
+ case T.BoxPlotSeries: {
368
+ if (we(s)) {
369
+ const c = Ee(s);
370
+ s.series.forEach((y) => {
371
+ let p, l;
372
+ y.type === T.BoxPlotSeries ? (p = e.dataItems, l = p?.some(
373
+ (g) => Me({
374
+ dataItem: g,
375
+ splitBy: y.query?.where,
376
+ showOutliers: c
345
377
  })
346
- )) : d.type === v.LineSeries && (y = e.meanLines, u = y?.some(
347
- (p) => Vt(p, d.query?.where)
348
- )), u && F.add(d);
378
+ )) : y.type === T.LineSeries && (p = e.meanLines, l = p?.some(
379
+ (g) => Yt(g, y.query?.where)
380
+ )), l && S.add(y);
349
381
  });
350
382
  }
351
383
  break;
352
384
  }
353
385
  }
354
- const l = Array.from(F.values());
355
- n = l.length > 0 && l.length < a, n && (i.series = l);
386
+ const u = Array.from(S.values());
387
+ n = u.length > 0 && u.length < a, n && (i.series = u);
356
388
  }
357
389
  return { seriesFilteredOut: n, filteredConfig: i };
358
390
  }
359
- const fs = (t) => t.hideEmptyRowsAndColumns, Ss = (t, e) => {
391
+ const Is = (t) => t.hideEmptyRowsAndColumns, Ls = (t, e) => {
360
392
  t.hideEmptyRowsAndColumns = e;
361
- }, Fs = (t, e) => {
393
+ }, Vs = (t, e) => {
362
394
  const s = t.series[0];
363
395
  s.heatRulesType = e;
364
- }, hs = (t) => t.series[0].heatRulesType, Ts = (t, e) => {
396
+ }, Ns = (t) => t.series[0].heatRulesType, qs = (t, e) => {
365
397
  const s = t.series[0];
366
398
  s.gradientRules = e;
367
- }, xs = (t) => t.series[0].gradientRules, Bs = (t) => {
368
- const { yField: e, config: s, layerInfo: r } = t, { layerFieldsInfo: a } = r, i = oe(1, s), n = Nt(s), o = z(s), c = s.series[0];
369
- if (typeof e == "string" && n !== e && c && (c.y = e, Ct(s), n === i || o)) {
370
- const m = w(a, e);
399
+ }, Rs = (t) => t.series[0].gradientRules, ks = (t) => {
400
+ const { yField: e, config: s, layerInfo: r } = t, { layerFieldsInfo: a } = r, i = ue(1, s), n = Wt(s), o = Q(s), d = s.series[0];
401
+ if (typeof e == "string" && n !== e && d && (d.y = e, Ot(s), n === i || o)) {
402
+ const m = D(a, e);
371
403
  E(s, 1, m);
372
404
  }
373
- }, Nt = (t) => t.series[0].y ?? "", Cs = (t) => {
405
+ }, Wt = (t) => t.series[0].y ?? "", Os = (t) => {
374
406
  const { binning: e, config: s, commonStrings: r } = t, a = s.series[0];
375
407
  if (a.xTemporalBinning = e, e?.unit !== void 0 && e.unit in r.utilsStrings.heatChartCalendarDatePartsUnits) {
376
408
  const i = r.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
377
409
  E(s, 0, i);
378
410
  }
379
- }, bs = (t) => t.series[0].xTemporalBinning, As = (t) => {
411
+ }, Ds = (t) => t.series[0].xTemporalBinning, Ps = (t) => {
380
412
  const { binning: e, config: s, commonStrings: r } = t, a = s.series[0];
381
413
  if (a.yTemporalBinning = e, e?.unit !== void 0 && e.unit in r.utilsStrings.heatChartCalendarDatePartsUnits) {
382
414
  const i = r.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
383
415
  E(s, 1, i);
384
416
  }
385
- }, vs = (t) => t.series[0].yTemporalBinning, Rt = (t, e) => {
417
+ }, ws = (t) => t.series[0].yTemporalBinning, Xt = (t, e) => {
386
418
  e.orderOptions ??= {};
387
- const s = e.axes?.[0]?.valueFormat?.type === "category" ? V.Category : V.YValue, r = ie(e)[0], a = e.axes?.[1]?.valueFormat?.type === "category" ? V.Category : V.YValue, i = ie(e)[1], n = {
419
+ const s = e.axes?.[0]?.valueFormat?.type === "category" ? N.Category : N.YValue, r = re(e)[0], a = e.axes?.[1]?.valueFormat?.type === "category" ? N.Category : N.YValue, i = re(e)[1], n = {
388
420
  ...e.orderOptions.data ?? {},
389
- orderType: V.MultiAxes
421
+ orderType: N.MultiAxes
390
422
  };
391
- r === J.customSort && s === V.Category && (n.orderByX = [...t]), i === J.customSort && a === V.Category && (n.orderByY = [...t]), Object.keys(n).length > 1 && (e.orderOptions.data = n);
392
- }, Is = (t, e) => {
423
+ r === te.customSort && s === N.Category && (n.orderByX = [...t]), i === te.customSort && a === N.Category && (n.orderByY = [...t]), Object.keys(n).length > 1 && (e.orderOptions.data = n);
424
+ }, Es = (t, e) => {
393
425
  const s = e.series[0];
394
426
  s.gridLine && (s.gridLine.width = t);
395
- }, Ls = (t) => t.series[0].gridLine?.width, qs = (t, e) => {
427
+ }, Ms = (t) => t.series[0].gridLine?.width, $s = (t, e) => {
396
428
  const s = e.series[0], r = t?.length === 4 && t.every((a) => typeof a == "number");
397
429
  s.gridLine && r && (s.gridLine.color = t);
398
- }, Vs = (t) => t.series[0].gridLine?.color, Ns = (t, e) => {
430
+ }, Ys = (t) => t.series[0].gridLine?.color, Ws = (t, e) => {
399
431
  const s = e.legend;
400
432
  s && (s.position = t);
401
- }, Rs = (t) => t.legend?.position ?? st.Bottom, ks = (t) => t.series[0].query?.outStatistics?.[0]?.onStatisticField, Os = (t) => {
402
- const { field: e, config: s, layerInfo: r, commonStrings: a } = t, i = s.series[0].query?.outStatistics?.[0], n = _(s, r, a);
433
+ }, Xs = (t) => t.legend?.position ?? rt.Bottom, js = (t) => t.series[0].query?.outStatistics?.[0]?.onStatisticField, Hs = (t) => {
434
+ const { field: e, config: s, layerInfo: r, commonStrings: a } = t, i = s.series[0].query?.outStatistics?.[0], n = J(s, r, a);
403
435
  i ? (i.onStatisticField = e, i.outStatisticFieldName = `${i.statisticType}_${e}`) : s.series[0].query = {
404
436
  outStatistics: [
405
437
  {
406
438
  onStatisticField: e,
407
- outStatisticFieldName: `${q.Count}_${e}`,
408
- statisticType: q.Count
439
+ outStatisticFieldName: `${I.Count}_${e}`,
440
+ statisticType: I.Count
409
441
  }
410
442
  ]
411
- }, n && s.title && (s.title.content.text = H(s, r, a));
412
- }, Ds = (t) => t.series[0].query?.outStatistics?.[0].statisticType ?? q.Count, ws = (t) => {
413
- const { aggregationType: e, config: s, layerInfo: r, commonStrings: a } = t, i = s.series[0]?.query?.outStatistics?.[0], n = _(s, r, a);
414
- i && e !== q.NoAggregation && (i.statisticType = e, i.outStatisticFieldName = `${e}_${i.onStatisticField}`), (e === q.Count || e === q.Sum) && kt(K.Zero, s), n && s.title && (s.title.content.text = H(s, r, a));
415
- }, Ps = (t) => t.nullPolicy, kt = (t, e) => {
443
+ }, n && s.title && (s.title.content.text = U(s, r, a));
444
+ }, Us = (t) => t.series[0].query?.outStatistics?.[0].statisticType ?? I.Count, Ks = (t) => {
445
+ const { aggregationType: e, config: s, layerInfo: r, commonStrings: a } = t, i = s.series[0]?.query?.outStatistics?.[0], n = J(s, r, a);
446
+ i && e !== I.NoAggregation && (i.statisticType = e, i.outStatisticFieldName = `${e}_${i.onStatisticField}`), (e === I.Count || e === I.Sum) && jt(M.Zero, s), n && s.title && (s.title.content.text = U(s, r, a));
447
+ }, Zs = (t) => t.nullPolicy, jt = (t, e) => {
416
448
  e.nullPolicy = t;
417
- }, Es = (t) => t.series[0].emptyCells, Ms = (t, e) => {
449
+ }, _s = (t) => t.series[0].emptyCells, Qs = (t, e) => {
418
450
  e.series[0].emptyCells = t;
419
- }, $s = (t) => t.series[0].emptyCells?.text, Ys = (t, e) => {
451
+ }, zs = (t) => t.series[0].emptyCells?.text, Gs = (t, e) => {
420
452
  e.series[0].emptyCells ? e.series[0].emptyCells.text = t : e.series[0].emptyCells = { text: t };
421
- }, Ws = (t) => t.includeLeapDay, Xs = (t, e) => {
453
+ }, Js = (t) => t.includeLeapDay, ei = (t, e) => {
422
454
  e.includeLeapDay = t;
423
- }, Hs = (t) => t.series[0].emptyCells?.symbol, js = (t, e) => {
455
+ }, ti = (t) => t.series[0].emptyCells?.symbol, si = (t, e) => {
424
456
  e.series[0].emptyCells ? e.series[0].emptyCells.symbol = t : e.series[0].emptyCells = { symbol: t };
425
457
  };
426
- function Ks(t) {
458
+ function ii(t) {
427
459
  return t.viewType;
428
460
  }
429
- function Us(t, e) {
430
- Ze(e) || (e.viewType = t);
461
+ function ai(t, e) {
462
+ tt(e) || (e.viewType = t);
431
463
  }
432
- function Qs(t) {
433
- return t.series[0].classBreaksRules?.breaksCount ?? U.classBreaks.breaksCount;
464
+ function ri(t) {
465
+ return t.series[0].classBreaksRules?.breaksCount ?? $.classBreaks.breaksCount;
434
466
  }
435
- function zs(t, e) {
436
- e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.breaksCount = t ?? U.classBreaks.breaksCount : e.series[0].classBreaksRules = {
437
- breaksCount: t ?? U.classBreaks.breaksCount
467
+ function ni(t, e) {
468
+ e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.breaksCount = t ?? $.classBreaks.breaksCount : e.series[0].classBreaksRules = {
469
+ breaksCount: t ?? $.classBreaks.breaksCount
438
470
  };
439
471
  }
440
- function Gs(t) {
472
+ function li(t) {
441
473
  return t.series[0].classBreaksRules?.classificationMethod;
442
474
  }
443
- function _s(t, e) {
475
+ function oi(t, e) {
444
476
  e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.classificationMethod = t : e.series[0].classBreaksRules = {
445
477
  classificationMethod: t
446
- }, e.series[0].classBreaksRules.breaksCount = e.series[0].classBreaksRules.breaksCount ?? U.classBreaks.breaksCount;
478
+ }, e.series[0].classBreaksRules.breaksCount = e.series[0].classBreaksRules.breaksCount ?? $.classBreaks.breaksCount;
447
479
  }
448
- function Zs(t, e) {
480
+ function ui(t, e) {
449
481
  e.firstDayOfWeek = t;
450
482
  }
451
- function Js(t) {
483
+ function ci(t) {
452
484
  return t.firstDayOfWeek;
453
485
  }
454
- function ei(t) {
486
+ function di(t) {
455
487
  return t.series[0].classBreaksRules?.colorRampInfo?.name;
456
488
  }
457
- function ti(t, e) {
489
+ function yi(t, e) {
458
490
  e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.colorRampInfo = {
459
491
  ...e.series[0].classBreaksRules.colorRampInfo,
460
492
  name: t
@@ -465,10 +497,10 @@ function ti(t, e) {
465
497
  }
466
498
  };
467
499
  }
468
- function si(t) {
500
+ function mi(t) {
469
501
  return t.series[0].classBreaksRules?.colorRampInfo?.flipped ?? !1;
470
502
  }
471
- function ii(t, e) {
503
+ function pi(t, e) {
472
504
  e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.colorRampInfo = {
473
505
  ...e.series[0].classBreaksRules.colorRampInfo,
474
506
  flipped: t
@@ -478,138 +510,135 @@ function ii(t, e) {
478
510
  }
479
511
  };
480
512
  }
481
- function $(t) {
482
- const { seriesIndex: e, xAxisField: s, aggregationType: r, config: a, layerInfo: i, commonStrings: n } = t, o = X(i?.layer).idField;
483
- let c;
513
+ function W(t) {
514
+ const { seriesIndex: e, xAxisField: s, aggregationType: r, config: a, layerInfo: i, commonStrings: n } = t, o = H(i?.layer).idField;
515
+ let d;
484
516
  const m = a.series[e ?? 0];
485
- let F = !1, l = !1, g = !1;
517
+ let S = !1, u = !1, c = !1;
486
518
  if (m === void 0) {
487
- const u = a.series;
488
- F = u.slice(0, e).every((p) => b(p)), l = u.slice(0, e).every((p) => A(p)), g = u.slice(0, e).every((p) => pe(p));
519
+ const l = a.series;
520
+ S = l.slice(0, e).every((g) => A(g)), u = l.slice(0, e).every((g) => v(g)), c = l.slice(0, e).every((g) => Se(g));
489
521
  } else
490
- F = b(m), l = A(m), g = pe(m);
491
- F ? c = dt({
522
+ S = A(m), u = v(m), c = Se(m);
523
+ S ? d = yt({
492
524
  commonStrings: n,
493
525
  seriesIndex: e,
494
526
  objectIDField: o
495
- }) : l ? c = yt({
527
+ }) : u ? d = mt({
496
528
  commonStrings: n,
497
529
  seriesIndex: e,
498
530
  objectIDField: o
499
- }) : g ? c = mt(n, o) : c = gt({
531
+ }) : c ? d = pt(n, o) : d = gt({
500
532
  seriesIndex: e,
501
533
  objectIDField: o,
502
534
  commonStrings: n
503
535
  });
504
- const d = a.series[0]?.dataLabels, y = {
505
- ...c,
536
+ const y = a.series[0]?.dataLabels, p = {
537
+ ...d,
506
538
  x: s,
507
539
  y: "",
508
540
  dataLabels: {
509
- ...c.dataLabels,
510
- type: c.dataLabels?.type ?? v.Text,
511
- content: { ...c.dataLabels?.content, ...d?.content, type: Ft.TS },
512
- visible: d?.visible ?? !1
541
+ ...d.dataLabels,
542
+ type: d.dataLabels?.type ?? T.Text,
543
+ content: { ...d.dataLabels?.content, ...y?.content, type: ot.TS },
544
+ visible: y?.visible ?? !1
513
545
  }
514
546
  };
515
- if (y.query = {
547
+ if (p.query = {
516
548
  groupByFieldsForStatistics: [s]
517
- }, r !== q.NoAggregation && o !== void 0) {
518
- const u = `${r}_${o}_0`.toUpperCase();
519
- y.y = u, y.query.outStatistics = [
549
+ }, r !== I.NoAggregation && o !== void 0) {
550
+ const l = `${r}_${o}_0`.toUpperCase();
551
+ p.y = l, p.query.outStatistics = [
520
552
  {
521
553
  statisticType: r,
522
554
  onStatisticField: o,
523
- outStatisticFieldName: u
555
+ outStatisticFieldName: l
524
556
  }
525
557
  ];
526
558
  }
527
- if (R(a.series[0]) && R(y)) {
528
- let u;
529
- if (a?.series?.[0] !== void 0 && (u = W(a.series)), u !== D.BarAndLineNoAggregation && u !== D.BarAndLineSplitByNoAggregation) {
530
- let p = Tt(a);
531
- p === te.Quarter && (p = te.Month), y.temporalBinning = {
532
- ...a.series[0]?.temporalBinning,
533
- unit: p
534
- };
535
- }
559
+ if (R(a.series[0]) && R(p)) {
560
+ let l = At(a);
561
+ l === ie.Quarter && (l = ie.Month), p.temporalBinning = {
562
+ ...a.series[0]?.temporalBinning,
563
+ unit: l
564
+ };
536
565
  }
537
- return ae(y);
566
+ return ne(p);
538
567
  }
539
- function H(t, e, s) {
540
- const { layerFieldsInfo: r } = e, { idField: a, isTraditionalTypeOID: i } = X(e.layer), n = M(t), o = G(t), c = be(t), m = ue(t), F = i && (o.length === 0 || o.includes(a)), l = ct(c, s), g = F ? "" : o.map((h) => w(r ?? [], h)).join(", "), d = w(r ?? [], n), y = w(r ?? [], m), u = t.series.some((h) => O(h)), p = u ? "category" : "xAxisField", B = d;
541
- let C = "";
542
- if (Te({
568
+ function U(t, e, s) {
569
+ const { layerFieldsInfo: r } = e, { idField: a, isTraditionalTypeOID: i } = H(e.layer), n = Y(t), o = G(t), d = Ae(t), m = z(t), S = i && (o.length === 0 || o.includes(a)), u = dt(d, s), c = S ? "" : o.map((F) => D(r ?? [], F)).join(", "), y = D(r ?? [], n), p = D(r ?? [], m), l = t.series.some((F) => O(F)), g = l ? "category" : "xAxisField", B = y;
570
+ let b = "";
571
+ if (xe({
543
572
  fieldName: n,
544
573
  numericFields: o,
545
574
  fieldList: r
546
575
  }))
547
- C = P(s.titleLabels.aggrTypeOfAggrFields, {
548
- aggregationType: l,
549
- aggregationFields: g
576
+ b = w(s.titleLabels.aggrTypeOfAggrFields, {
577
+ aggregationType: u,
578
+ aggregationFields: c
550
579
  });
551
- else if (c === q.NoAggregation) {
552
- const h = F ? a : g;
580
+ else if (d === I.NoAggregation) {
581
+ const F = S ? a : c;
553
582
  if (m === "") {
554
- const f = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
555
- C = P(s.titleLabels[f], {
556
- aggregationType: h,
557
- [p]: B
583
+ const f = l ? "aggrTypeCategory" : "aggrTypeXAxisField";
584
+ b = w(s.titleLabels[f], {
585
+ aggregationType: F,
586
+ [g]: B
558
587
  });
559
588
  } else {
560
- const f = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
561
- C = P(s.titleLabels[f], {
562
- aggregationType: h,
563
- [p]: B,
564
- splitByField: y
589
+ const f = l ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
590
+ b = w(s.titleLabels[f], {
591
+ aggregationType: F,
592
+ [g]: B,
593
+ splitByField: p
565
594
  });
566
595
  }
567
- } else if (c === q.Count)
596
+ } else if (d === I.Count)
568
597
  if (m === "") {
569
- const h = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
570
- C = P(s.titleLabels[h], {
571
- aggregationType: l,
572
- [p]: B
598
+ const F = l ? "aggrTypeCategory" : "aggrTypeXAxisField";
599
+ b = w(s.titleLabels[F], {
600
+ aggregationType: u,
601
+ [g]: B
573
602
  });
574
603
  } else {
575
- const h = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
576
- C = P(s.titleLabels[h], {
577
- aggregationType: l,
578
- [p]: B,
579
- splitByField: y
604
+ const F = l ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
605
+ b = w(s.titleLabels[F], {
606
+ aggregationType: u,
607
+ [g]: B,
608
+ splitByField: p
580
609
  });
581
610
  }
582
611
  else if (m !== "") {
583
- const h = u ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
584
- C = P(s.titleLabels[h], {
585
- aggregationType: l,
586
- aggregationField: g,
587
- [p]: B,
588
- splitByField: y
612
+ const F = l ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
613
+ b = w(s.titleLabels[F], {
614
+ aggregationType: u,
615
+ aggregationField: c,
616
+ [g]: B,
617
+ splitByField: p
589
618
  });
590
619
  } else if (o.length > 0) {
591
- const h = u ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
592
- C = P(s.titleLabels[h], {
593
- aggregationType: l,
594
- aggregationFields: g,
595
- [p]: B
620
+ const F = l ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
621
+ b = w(s.titleLabels[F], {
622
+ aggregationType: u,
623
+ aggregationFields: c,
624
+ [g]: B
596
625
  });
597
626
  }
598
- return C;
627
+ return b;
599
628
  }
600
- const Ce = (t) => le({
629
+ const be = (t) => oe({
601
630
  where: t.query?.where,
602
631
  normalize: !1,
603
632
  escape: !1
604
- }) ?? "", be = (t) => t?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? q.NoAggregation, ue = Le(
633
+ }) ?? "", Ae = (t) => t?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? I.NoAggregation, z = Ne(
605
634
  (t) => {
606
635
  const e = t?.series?.[0]?.query?.where?.split("=")[0].trim() ?? "";
607
- return Je(t?.series?.[0]?.query?.where) ? "" : e;
636
+ return st(t?.series?.[0]?.query?.where) ? "" : e;
608
637
  },
609
638
  (t) => t?.series?.[0]?.query?.where
610
639
  ), G = (t) => {
611
640
  let e = [];
612
- if (ue(t) === "")
641
+ if (z(t) === "")
613
642
  e = t?.series.map((s) => {
614
643
  const r = s.query?.outStatistics?.map((a) => a.onStatisticField) ?? [];
615
644
  return r?.length > 0 ? r : s.y;
@@ -620,164 +649,176 @@ const Ce = (t) => le({
620
649
  }
621
650
  return e.filter((s) => s !== "");
622
651
  };
623
- function Ot(t) {
652
+ function ve(t) {
653
+ const { splitByField: e, numericFields: s, layer: r, seriesIndex: a } = t, i = H(r).idField ?? "";
654
+ return e === "" ? s[a] ?? i : s[0] ?? i;
655
+ }
656
+ function Ht(t) {
624
657
  const { numericFields: e, aggregationType: s, config: r, layerInfo: a } = t;
625
658
  let i = !1;
626
- s === q.Count ? i = !0 : s === q.NoAggregation && (i = e.every((c) => {
627
- const m = a.layerFieldsInfo.find((F) => F.name === c);
659
+ s === I.Count ? i = !0 : s === I.NoAggregation && (i = e.every((d) => {
660
+ const m = a.layerFieldsInfo.find((S) => S.name === d);
628
661
  return m !== void 0 ? me(m) : !1;
629
662
  })), ce(r, 1, i);
630
- const n = r.series.some((c) => b(c)), o = r.series.some((c) => A(c));
663
+ const n = r.series.some((d) => A(d)), o = r.series.some((d) => v(d));
631
664
  if (n || o) {
632
- const c = M(r), m = a.layerFieldsInfo.find((l) => l.name === c), F = m !== void 0 && me(m);
633
- ce(r, 0, F);
665
+ const d = Y(r), m = a.layerFieldsInfo.find((u) => u.name === d), S = m !== void 0 && me(m);
666
+ ce(r, 0, S);
634
667
  }
635
668
  }
636
- const ie = (t) => {
669
+ const re = (t) => {
637
670
  let e;
638
- if (ne(t)) {
639
- const s = t.orderOptions?.data?.orderByX ?? [""], r = t.orderOptions?.data?.orderByY ?? [""], a = t.axes?.[0]?.valueFormat?.type === "category" ? V.Category : V.YValue, i = t.axes?.[1]?.valueFormat?.type === "category" ? V.Category : V.YValue;
640
- e = [ge(s, a), ge(r, i)];
671
+ if (j(t)) {
672
+ 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;
673
+ e = [pe(s, a), pe(r, i)];
641
674
  } else {
642
- const s = t.orderOptions?.data?.orderType ?? V.Category, r = t.orderOptions?.data && "orderBy" in t.orderOptions.data ? t.orderOptions.data.orderBy : it.Ascending;
643
- e = [tt(r, s)];
675
+ const s = t.orderOptions?.data?.orderType ?? N.Category, r = t.orderOptions?.data && "orderBy" in t.orderOptions.data ? t.orderOptions.data.orderBy : nt.Ascending;
676
+ e = [at(r, s)];
644
677
  }
645
678
  return e;
646
679
  };
647
- function Dt(t) {
680
+ function Ut(t) {
648
681
  const { xAxisField: e, numericFields: s, aggregationType: r, config: a, layerInfo: i, commonStrings: n } = t, { layerFieldsInfo: o } = i;
649
- let c = !1;
650
- const m = $({
682
+ let d = !1;
683
+ const m = W({
651
684
  config: a,
652
685
  xAxisField: e,
653
686
  aggregationType: r,
654
687
  layerInfo: i,
655
688
  seriesIndex: 0,
656
689
  commonStrings: n
657
- }), F = Q({
690
+ }), S = _({
658
691
  config: a,
659
692
  xAxisField: e,
660
693
  numericFields: s,
661
694
  aggregationType: r,
662
695
  layer: i.layer,
663
696
  fieldList: o
664
- }).name, l = {
697
+ }).name, u = {
665
698
  ...m,
666
699
  id: `series_${Date.now()}`,
667
700
  name: n.axisLabels.values,
668
- x: ee,
669
- y: F
670
- }, g = [];
671
- for (const y of s)
672
- g.push({
673
- onStatisticField: y,
674
- outStatisticFieldName: `${y}_0`.toUpperCase(),
701
+ x: se,
702
+ y: S
703
+ }, c = [];
704
+ for (const p of s)
705
+ c.push({
706
+ onStatisticField: p,
707
+ outStatisticFieldName: `${p}_0`.toUpperCase(),
675
708
  statisticType: r
676
709
  });
677
- l.query = { outStatistics: g };
678
- const d = a.series[0];
679
- return d !== void 0 && (l.id = d.id, (b(l) && b(d) || A(l) && A(d)) && Y(l, d), a.colorMatch || (O(d) && O(l) ? l.fillSymbol = d.fillSymbol : (b(l) && b(d) || A(l) && A(d)) && (l.lineSymbol = d.lineSymbol, l.markerSymbol = d.markerSymbol), c = !0), l.id = d.id, d.name !== m.name && (l.name = d.name)), a.series.length === 1 && ((b(l) || A(l)) && Y(l, a.series[0]), a.colorMatch || (O(l) ? l.fillSymbol = a.series[0].fillSymbol : (b(l) || A(l)) && (l.lineSymbol = a.series[0].lineSymbol, l.markerSymbol = a.series[0].markerSymbol), c = !0)), a.colorMatch = !c, [l];
710
+ u.query = { outStatistics: c };
711
+ const y = a.series[0];
712
+ return y !== void 0 && (u.id = y.id, (A(u) && A(y) || v(u) && v(y)) && X(u, y), a.colorMatch || (O(y) && O(u) ? u.fillSymbol = y.fillSymbol : (A(u) && A(y) || v(u) && v(y)) && (u.lineSymbol = y.lineSymbol, u.markerSymbol = y.markerSymbol), d = !0), u.id = y.id, y.name !== m.name && (u.name = y.name)), a.series.length === 1 && ((A(u) || v(u)) && X(u, a.series[0]), a.colorMatch || (O(u) ? u.fillSymbol = a.series[0].fillSymbol : (A(u) || v(u)) && (u.lineSymbol = a.series[0].lineSymbol, u.markerSymbol = a.series[0].markerSymbol), d = !0)), a.colorMatch = !d, [u];
680
713
  }
681
- function Ae(t) {
682
- const { xAxisField: e, numericFields: s, aggregationType: r, config: a, layerInfo: i, commonStrings: n } = t, { layerFieldsInfo: o } = i, c = X(i.layer).idField, m = [];
683
- let F = !1;
684
- for (let u = 0; u < s.length; u += 1) {
685
- const p = $({
714
+ function Ie(t) {
715
+ const { xAxisField: e, numericFields: s, aggregationType: r, config: a, layerInfo: i, commonStrings: n } = t, { layerFieldsInfo: o } = i, d = H(i.layer).idField, m = [];
716
+ let S = !1;
717
+ for (let l = 0; l < s.length; l += 1) {
718
+ const g = W({
686
719
  config: a,
687
720
  xAxisField: e,
688
721
  aggregationType: r,
689
722
  layerInfo: i,
690
- seriesIndex: u,
723
+ seriesIndex: l,
691
724
  commonStrings: n
692
- }), B = a.series[u]?.y, C = typeof B == "string" ? B : Q({
725
+ }), B = a.series[l]?.y, b = typeof B == "string" && B.trim() !== "" && !o.find((h) => h.name === B) ? B : _({
693
726
  config: a,
694
727
  xAxisField: e,
695
728
  numericFields: s,
696
729
  aggregationType: r,
697
730
  layer: i.layer,
698
- numericFieldIndex: u,
731
+ numericFieldIndex: l,
699
732
  fieldList: o
700
- }).name, h = s[u];
733
+ }).name, F = s[l];
701
734
  let f = {
702
- ...p,
735
+ ...g,
703
736
  query: {
704
- ...p.query
737
+ ...g.query
705
738
  }
706
739
  };
707
- s && h !== c && (f = {
740
+ s && F !== d && (f = {
708
741
  ...f,
709
- id: h,
710
- name: w(o, h)
742
+ id: F,
743
+ name: D(o, F)
711
744
  });
712
- let k = h;
713
- f.query !== void 0 && (r !== q.NoAggregation ? (k = C, f.query.outStatistics = [
745
+ let k = F;
746
+ f.query !== void 0 && (r !== I.NoAggregation ? (k = b, f.query.outStatistics = [
714
747
  {
715
- ...p.query?.outStatistics?.[0] ?? {},
716
- onStatisticField: h,
717
- outStatisticFieldName: C,
748
+ ...g.query?.outStatistics?.[0] ?? {},
749
+ onStatisticField: F,
750
+ outStatisticFieldName: b,
718
751
  statisticType: r
719
752
  }
720
753
  ]) : delete f.query.outStatistics), f.y = k;
721
- const T = a.series.find(
722
- (S) => S.query?.outStatistics?.[0]?.onStatisticField === h && S.query.where === void 0 || S.query?.outStatistics === void 0 && (S.y === h || S.x === h)
754
+ const x = a.series.find(
755
+ (h) => h.query?.outStatistics?.[0]?.onStatisticField === F && h.query.where === void 0 || h.query?.outStatistics === void 0 && (h.y === F || h.x === F)
723
756
  );
724
- if (T !== void 0 && typeof T.y == "string" && T.y.trim() !== "") {
725
- (b(f) && b(T) || A(f) && A(T)) && Y(f, T), a.colorMatch || (O(f) && O(T) ? f.fillSymbol = T.fillSymbol : (b(f) && b(T) || A(f) && A(T)) && (f.lineSymbol = T.lineSymbol, f.markerSymbol = T.markerSymbol), F = !0);
726
- const S = $({
757
+ if (x !== void 0 && typeof x.y == "string" && x.y.trim() !== "") {
758
+ (A(f) && A(x) || v(f) && v(x)) && X(f, x), a.colorMatch || (O(f) && O(x) ? f.fillSymbol = x.fillSymbol : (A(f) && A(x) || v(f) && v(x)) && (f.lineSymbol = x.lineSymbol, f.markerSymbol = x.markerSymbol), S = !0);
759
+ const h = W({
727
760
  config: a,
728
761
  xAxisField: e,
729
762
  aggregationType: r,
730
763
  layerInfo: i,
731
- seriesIndex: u,
764
+ seriesIndex: l,
732
765
  commonStrings: n
733
766
  });
734
- f.id = T.id, T.id !== S.id && T.name !== S.name && (f.id = T.id, f.name = T.name), f.assignToSecondValueAxis = T.assignToSecondValueAxis, f.type === v.HeatSeries && T.type === v.HeatSeries && (f.y = T.y, f.heatRulesType = T.heatRulesType);
767
+ 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 === T.HeatSeries && x.type === T.HeatSeries && (f.y = x.y, f.heatRulesType = x.heatRulesType);
735
768
  }
736
769
  m.push(f);
737
770
  }
738
- const l = m.filter((u) => O(u)), g = m.filter(
739
- (u) => b(u) || A(u)
740
- ), d = a.series.filter((u) => O(u)), y = a.series.filter(
741
- (u) => b(u) || A(u)
771
+ const u = m.filter((l) => O(l)), c = m.filter(
772
+ (l) => A(l) || v(l)
773
+ ), y = a.series.filter((l) => O(l)), p = a.series.filter(
774
+ (l) => A(l) || v(l)
742
775
  );
743
- return d.length === 1 && l.length === 1 && !a.colorMatch && (O(d[0]) && O(l[0]) && (l[0].fillSymbol = d[0].fillSymbol), F = !0), y.length === 1 && g.length === 1 && ((b(y[0]) && b(g[0]) || A(y[0]) && A(g[0])) && Y(g[0], y[0]), a.colorMatch || ((b(y[0]) && b(g[0]) || A(y[0]) && A(g[0])) && (g[0].lineSymbol = y[0].lineSymbol, g[0].markerSymbol = y[0].markerSymbol), F = !0)), a.colorMatch = !F, m;
776
+ return y.length === 1 && u.length === 1 && !a.colorMatch && (O(y[0]) && O(u[0]) && (u[0].fillSymbol = y[0].fillSymbol), S = !0), p.length === 1 && c.length === 1 && ((A(p[0]) && A(c[0]) || v(p[0]) && v(c[0])) && X(c[0], p[0]), a.colorMatch || ((A(p[0]) && A(c[0]) || v(p[0]) && v(c[0])) && (c[0].lineSymbol = p[0].lineSymbol, c[0].markerSymbol = p[0].markerSymbol), S = !0)), a.colorMatch = !S, m;
744
777
  }
745
- function ai(t) {
746
- const { aggregationType: e, config: s, layerInfo: r, commonStrings: a } = t, { layerFieldsInfo: i, layer: n } = r, o = M(s), c = G(s), m = _(s, r, a), F = ve(s, r, a);
747
- if (s.series.forEach((l, g) => {
748
- const d = Q({
778
+ function gi(t) {
779
+ const { aggregationType: e, config: s, layerInfo: r, commonStrings: a } = t, { layerFieldsInfo: i, layer: n } = r, o = Y(s), d = G(s), m = z(s), S = J(s, r, a), u = Le(s, r, a);
780
+ if (s.series.forEach((c, y) => {
781
+ const p = _({
749
782
  config: s,
750
783
  xAxisField: o,
751
- numericFields: c,
784
+ numericFields: d,
752
785
  aggregationType: e,
786
+ splitByField: m,
753
787
  layer: n,
754
- seriesIndex: g,
755
- numericFieldIndex: g,
788
+ seriesIndex: y,
789
+ numericFieldIndex: y,
756
790
  fieldList: i
757
791
  }).name;
758
- e !== q.NoAggregation ? (l.y = d, l.query = {
759
- ...l.query,
760
- outStatistics: [
792
+ c.y = p;
793
+ const l = ve({
794
+ splitByField: m,
795
+ numericFields: d,
796
+ layer: n,
797
+ seriesIndex: y
798
+ }), g = c.query?.outStatistics?.[0]?.onStatisticField ?? l;
799
+ c.query = {
800
+ ...c.query,
801
+ outStatistics: e === I.NoAggregation ? void 0 : [
761
802
  {
762
- ...l.query?.outStatistics?.[0],
763
- outStatisticFieldName: d,
803
+ ...c.query?.outStatistics?.[0],
804
+ outStatisticFieldName: p,
764
805
  statisticType: e,
765
- onStatisticField: l.query?.outStatistics?.[0]?.onStatisticField ?? c[g]
806
+ onStatisticField: g
766
807
  }
767
808
  ]
768
- }) : (delete l.query?.outStatistics, l.y = c[g]);
769
- }), m && s.title && (s.title.content.text = H(s, r, a)), F && s.series[0].type !== v.HeatSeries) {
770
- const l = re({
809
+ }, "temporalBinning" in c && c.temporalBinning !== void 0 && (c.temporalBinning.nullPolicy = e === I.NoAggregation ? M.Interpolate : M.Null), e === I.NoAggregation && Lt(s);
810
+ }), S && s.title && (s.title.content.text = U(s, r, a)), u && s.series[0].type !== T.HeatSeries) {
811
+ const c = le({
771
812
  config: s,
772
813
  layerInfo: r,
773
814
  commonStrings: a,
774
- numericFields: c,
815
+ numericFields: d,
775
816
  aggregationType: e
776
817
  });
777
- E(s, 1, l);
818
+ E(s, 1, c);
778
819
  }
779
820
  }
780
- function wt(t) {
821
+ function Kt(t) {
781
822
  const {
782
823
  splitByField: e,
783
824
  xAxisField: s,
@@ -786,11 +827,16 @@ function wt(t) {
786
827
  config: i,
787
828
  layerInfo: n,
788
829
  commonStrings: o,
789
- splitByFieldInfos: c
790
- } = t, { layer: m, layerFieldsInfo: F } = n, { categoriesArray: l, splitByFieldType: g } = c, d = r.length === 0 ? X(m).idField : r[0];
791
- let y = [], u = !1;
792
- if (l.length === 0) {
793
- y = Ae({
830
+ splitByFieldInfos: d
831
+ } = t, { layer: m, layerFieldsInfo: S } = n, { categoriesArray: u, splitByFieldType: c } = d, y = ve({
832
+ splitByField: e,
833
+ numericFields: r,
834
+ layer: m,
835
+ seriesIndex: 0
836
+ });
837
+ let p = [], l = !1;
838
+ if (u.length === 0) {
839
+ p = Ie({
794
840
  xAxisField: s,
795
841
  numericFields: r,
796
842
  aggregationType: a,
@@ -798,57 +844,55 @@ function wt(t) {
798
844
  layerInfo: n,
799
845
  commonStrings: o
800
846
  });
801
- for (const p of y)
802
- p.query && (p.query.where = `${e}=''`);
847
+ for (const g of p)
848
+ g.query && (g.query.where = `${e}=''`);
803
849
  } else
804
- for (let p = 0; p < l.length; p += 1) {
805
- const B = l[p], C = Q({
850
+ for (let g = 0; g < u.length; g += 1) {
851
+ const B = u[g], b = _({
806
852
  config: i,
807
853
  xAxisField: s,
808
854
  numericFields: r,
809
855
  aggregationType: a,
810
856
  layer: n.layer,
811
- seriesIndex: p,
857
+ seriesIndex: g,
812
858
  splitByField: e,
813
- fieldList: F
814
- }).name, h = $({
859
+ fieldList: S
860
+ }).name, F = W({
815
861
  config: i,
816
862
  xAxisField: s,
817
863
  aggregationType: a,
818
864
  layerInfo: n,
819
- seriesIndex: p,
865
+ seriesIndex: g,
820
866
  commonStrings: o
821
867
  }), f = he({
822
868
  queryObject: n.layer,
823
869
  fieldName: e,
824
870
  fieldValue: B ?? ""
825
- }), k = `${B}`, S = {
826
- ...h,
871
+ }), k = `${B}`, h = {
872
+ ...F,
827
873
  id: k,
828
874
  name: f ?? k,
829
- y: C,
875
+ y: b,
830
876
  query: {
831
- ...h.query,
832
- where: `${e}=${g === ht.String && B !== null ? `'${B}'` : B}`,
833
- outStatistics: a !== q.NoAggregation ? [
877
+ ...F.query,
878
+ where: `${e}=${c === ut.String && B !== null ? `'${B}'` : B}`,
879
+ outStatistics: a !== I.NoAggregation ? [
834
880
  {
835
- ...h.query?.outStatistics?.[0] ?? {},
836
- onStatisticField: d,
837
- outStatisticFieldName: C,
881
+ ...F.query?.outStatistics?.[0] ?? {},
882
+ onStatisticField: y,
883
+ outStatisticFieldName: b,
838
884
  statisticType: a
839
885
  }
840
886
  ] : void 0
841
887
  }
842
- };
843
- a === q.NoAggregation && (S.query !== void 0 && (delete S.query.outStatistics, delete S.query.groupByFieldsForStatistics), S.y = d);
844
- const I = i.series.find(
845
- (L) => String(Ce(L)).trim().replace(/'/gu, "") === k
888
+ }, L = i.series.find(
889
+ (V) => String(be(V)).trim().replace(/'/gu, "") === k
846
890
  );
847
- I !== void 0 && ((b(S) && b(I) || A(S) && A(I)) && Y(S, I), i.colorMatch || (O(S) && O(I) ? S.fillSymbol = I.fillSymbol : (b(S) && b(I) || A(S) && A(I)) && (S.lineSymbol = I.lineSymbol, S.markerSymbol = I.markerSymbol), u = !0), S.id = I.id, S.name = I.name, S.assignToSecondValueAxis = I.assignToSecondValueAxis), S.query && (S.query.fetchNullValues = i.series.some((L) => L.query?.fetchNullValues)), y.push(S);
891
+ L !== void 0 && ((A(h) && A(L) || v(h) && v(L)) && X(h, L), i.colorMatch || (O(h) && O(L) ? h.fillSymbol = L.fillSymbol : (A(h) && A(L) || v(h) && v(L)) && (h.lineSymbol = L.lineSymbol, h.markerSymbol = L.markerSymbol), l = !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)), p.push(h);
848
892
  }
849
- return i.colorMatch = !u, y;
893
+ return i.colorMatch = !l, p;
850
894
  }
851
- const ri = (t) => {
895
+ const fi = (t) => {
852
896
  const {
853
897
  xAxisFieldName: e,
854
898
  splitByField: s,
@@ -857,35 +901,35 @@ const ri = (t) => {
857
901
  config: i,
858
902
  layerInfo: n,
859
903
  commonStrings: o,
860
- splitByFieldInfos: c
861
- } = t, { layerFieldsInfo: m } = n ?? {}, F = ft(i), l = M(i), g = m.find((x) => x.name === l), d = i.series[0].query?.fetchNullValues, y = "nullCategory" in i.series?.[0] ? i.series[0].nullCategory : void 0, u = i.series[0]?.query === void 0, p = m.find((x) => x.name === e), B = _(i, n, o), C = ve(i, n, o), h = Pt(i, n);
904
+ splitByFieldInfos: d
905
+ } = t, { layerFieldsInfo: m } = n ?? {}, S = Ct(i), u = Y(i), c = m.find((C) => C.name === u), y = i.series[0].query?.fetchNullValues, p = "nullCategory" in i.series?.[0] ? i.series[0].nullCategory : void 0, l = i.series[0]?.query === void 0, g = m.find((C) => C.name === e), B = J(i, n, o), b = Le(i, n, o), F = Zt(i, n);
862
906
  let f = Fe(i);
863
- const k = i.series.some((x) => O(x)), T = lt(i.series), S = nt(i.series), I = ne(i), L = {};
864
- I && (L.classBreaksRules = i.series[0]?.classBreaksRules, L.xTemporalBinning = i.series[0]?.xTemporalBinning, L.yTemporalBinning = i.series[0]?.yTemporalBinning, L.emptyCells = i.series[0]?.emptyCells, L.nullPolicy = i.nullPolicy);
865
- let Z = !1;
866
- if (et(p) ? f = fe() : !ye(g) && ye(p) ? f = Se() : !j(g) && j(p) ? (f = Se(), Z = !0) : j(g) && !j(p) && (k ? f = fe() : f = pt(), Z = !0), f !== void 0 && Ve(i, o, f), F === 0 && (i.series = [
867
- $({ config: i, xAxisField: e, aggregationType: a, layerInfo: n, commonStrings: o })
868
- ]), i.series.forEach((x) => {
869
- x.x = e, x.query !== void 0 && (x.query.groupByFieldsForStatistics = [e]);
870
- }), s === "" || r.length > 1 ? Te({
907
+ const k = i.series.some((C) => O(C)), x = St(i.series), h = Ft(i.series), L = j(i), V = {};
908
+ 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);
909
+ let ee = !1;
910
+ if (it(g) ? f = ge() : !ye(c) && ye(g) ? f = fe() : !K(c) && K(g) ? (f = fe(), ee = !0) : K(c) && !K(g) && (k ? f = ge() : f = ft(), ee = !0), f !== void 0 && Re(i, o, f), S === 0 && (i.series = [
911
+ W({ config: i, xAxisField: e, aggregationType: a, layerInfo: n, commonStrings: o })
912
+ ]), i.series.forEach((C) => {
913
+ C.x = e, C.query !== void 0 && (C.query.groupByFieldsForStatistics = [e]);
914
+ }), s === "" || r.length > 1 ? xe({
871
915
  fieldName: e,
872
916
  numericFields: r,
873
917
  fieldList: m
874
- }) ? i.series = Dt({
918
+ }) ? i.series = Ut({
875
919
  config: i,
876
920
  layerInfo: n,
877
921
  xAxisField: e,
878
922
  numericFields: r,
879
923
  aggregationType: a,
880
924
  commonStrings: o
881
- }) : i.series = Ae({
925
+ }) : i.series = Ie({
882
926
  config: i,
883
927
  layerInfo: n,
884
928
  xAxisField: e,
885
929
  numericFields: r,
886
930
  aggregationType: a,
887
931
  commonStrings: o
888
- }) : c && (i.series = wt({
932
+ }) : d && (i.series = Kt({
889
933
  config: i,
890
934
  layerInfo: n,
891
935
  splitByField: s,
@@ -893,47 +937,47 @@ const ri = (t) => {
893
937
  numericFields: r,
894
938
  aggregationType: a,
895
939
  commonStrings: o,
896
- splitByFieldInfos: c
897
- })), h && i.series[0].type !== v.HeatSeries) {
898
- const x = w(m, e);
899
- E(i, 0, x);
940
+ splitByFieldInfos: d
941
+ })), F && i.series[0].type !== T.HeatSeries) {
942
+ const C = D(m, e);
943
+ E(i, 0, C);
900
944
  }
901
- if (C && i.series[0].type !== v.HeatSeries) {
902
- const x = re({
945
+ if (b && i.series[0].type !== T.HeatSeries) {
946
+ const C = le({
903
947
  config: i,
904
948
  layerInfo: n,
905
949
  commonStrings: o,
906
950
  numericFields: r,
907
951
  aggregationType: a
908
952
  });
909
- E(i, 1, x);
953
+ E(i, 1, C);
910
954
  }
911
- if (B && i.title && (i.title.content.text = H(i, n, o)), N({ config: i, value: null, axisIndex: 1, isMax: !1 }), N({ config: i, value: null, axisIndex: 1, isMax: !0 }), Ot({ numericFields: r, aggregationType: a, config: i, layerInfo: n }), (T || S) && (N({ config: i, value: null, axisIndex: 0, isMax: !1 }), N({ config: i, value: null, axisIndex: 0, isMax: !0 }), Z)) {
912
- const x = f?.type === v.DateAxisFormat ? K.Null : K.Interpolate;
913
- Bt(x, i);
955
+ if (B && i.title && (i.title.content.text = U(i, n, o)), q({ config: i, value: null, axisIndex: 1, isMax: !1 }), q({ config: i, value: null, axisIndex: 1, isMax: !0 }), Ht({ numericFields: r, aggregationType: a, config: i, layerInfo: n }), (x || h) && (q({ config: i, value: null, axisIndex: 0, isMax: !1 }), q({ config: i, value: null, axisIndex: 0, isMax: !0 }), ee && a !== I.NoAggregation)) {
956
+ const C = f?.type === T.DateAxisFormat ? M.Null : M.Interpolate;
957
+ It(C, i);
914
958
  }
915
- I && (i.series[0].classBreaksRules = L.classBreaksRules, i.series[0].xTemporalBinning = L.xTemporalBinning, i.series[0].yTemporalBinning = L.yTemporalBinning, i.series[0].emptyCells = L.emptyCells, i.nullPolicy = L.nullPolicy), u ? i.series.forEach((x) => {
916
- delete x.query;
917
- }) : d && i.series.forEach((x) => {
918
- x.query && (x.query.fetchNullValues = d);
919
- }), y && i.series.forEach((x) => {
920
- (x.type === v.BarSeries || x.type === v.LineSeries || x.type === v.RadarSeries) && (x.nullCategory = y);
959
+ 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), l ? i.series.forEach((C) => {
960
+ delete C.query;
961
+ }) : y && i.series.forEach((C) => {
962
+ C.query && (C.query.fetchNullValues = y);
963
+ }), p && i.series.forEach((C) => {
964
+ (C.type === T.BarSeries || C.type === T.LineSeries || C.type === T.RadarSeries) && (C.nullCategory = p);
921
965
  });
922
- }, Y = (t, e) => {
966
+ }, X = (t, e) => {
923
967
  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 = {
924
968
  ...e.markerSymbol,
925
969
  color: t.markerSymbol?.color
926
970
  });
927
- }, li = (t) => {
928
- const { config: e, seriesIndex: s, layerInfo: r, commonStrings: a } = t, i = e.series?.[s], n = ue(e);
971
+ }, Si = (t) => {
972
+ const { config: e, seriesIndex: s, layerInfo: r, commonStrings: a } = t, i = e.series?.[s], n = z(e);
929
973
  let o;
930
- if (W(e.series) === D.BarAndLineFromFields)
974
+ if (Z(e.series) === P.BarAndLineFromFields)
931
975
  o = a.axisLabels.values;
932
- else if (Ie(n)) {
976
+ else if (Ve(n)) {
933
977
  const m = i.query?.outStatistics?.[0]?.onStatisticField;
934
- m !== void 0 && m !== X(r.layer).idField && (o = w(r.layerFieldsInfo, m));
978
+ m !== void 0 && m !== H(r.layer).idField && (o = D(r.layerFieldsInfo, m));
935
979
  } else {
936
- const m = String(Ce(i)).trim().replace(/'/gu, "");
980
+ const m = String(be(i)).trim().replace(/'/gu, "");
937
981
  o = he({
938
982
  queryObject: r.layer,
939
983
  fieldName: n,
@@ -941,133 +985,135 @@ const ri = (t) => {
941
985
  }) ?? m;
942
986
  }
943
987
  return o ?? i.id;
944
- }, ni = (t, e) => {
945
- if (ne(e))
946
- Rt(t, e);
988
+ }, Fi = (t, e) => {
989
+ if (j(e))
990
+ Xt(t, e);
947
991
  else {
948
992
  e.orderOptions ??= {};
949
993
  const s = e.orderOptions?.data?.orderType;
950
- ie(e)[0] === J.customSort && s === V.Category && (e.orderOptions.data = {
951
- orderType: V.Category,
994
+ re(e)[0] === te.customSort && s === N.Category && (e.orderOptions.data = {
995
+ orderType: N.Category,
952
996
  orderBy: [...t]
953
997
  });
954
998
  }
955
- }, oi = async (t) => {
956
- const { config: e, layerInfo: s, errorStrings: r } = t, a = M(e), i = Fe(e)?.type, n = G(e), o = W(e.series);
957
- let c = [];
958
- return i === v.CategoryAxisFormat && (o === D.BarAndLineFromFields || a === ee ? c = n.map((m) => w(s?.layerFieldsInfo, m)) : a.trim() !== "" && a !== ee && s !== void 0 && (c = await qe({
999
+ }, hi = async (t) => {
1000
+ const { config: e, layerInfo: s, errorStrings: r } = t, a = Y(e), i = Fe(e)?.type, n = G(e), o = Z(e.series);
1001
+ let d = [];
1002
+ return i === T.CategoryAxisFormat && (o === P.BarAndLineFromFields || a === se ? d = n.map((m) => D(s?.layerFieldsInfo, m)) : a.trim() !== "" && a !== se && s !== void 0 && (d = await qe({
959
1003
  layerInfo: s,
960
1004
  config: e,
961
1005
  category: a,
962
1006
  errorStrings: r
963
- }))), c;
1007
+ }))), d;
964
1008
  };
965
- function _(t, e, s) {
966
- const r = H(t, e, s), a = St(t), i = z(t);
1009
+ function J(t, e, s) {
1010
+ const r = U(t, e, s), a = bt(t), i = Q(t);
967
1011
  return r === a || i;
968
1012
  }
969
- function ve(t, e, s) {
970
- const r = re({
1013
+ function Le(t, e, s) {
1014
+ const r = le({
971
1015
  config: t,
972
1016
  layerInfo: e,
973
1017
  commonStrings: s,
974
1018
  numericFields: G(t),
975
- aggregationType: be(t)
976
- }), a = oe(1, t), i = z(t);
1019
+ aggregationType: Ae(t)
1020
+ }), a = ue(1, t), i = Q(t);
977
1021
  return r === a || i;
978
1022
  }
979
- function Pt(t, e) {
980
- const s = w(e.layerFieldsInfo, M(t)), r = oe(0, t), a = z(t);
1023
+ function Zt(t, e) {
1024
+ const s = D(e.layerFieldsInfo, Y(t)), r = ue(0, t), a = Q(t);
981
1025
  return s === r || a;
982
1026
  }
983
- function ui(t) {
1027
+ function xi(t) {
984
1028
  return R(t.series[0]) ? t.series[0].binTemporalData ?? !0 : !1;
985
1029
  }
986
- function ci(t, e) {
1030
+ function Ti(t, e) {
987
1031
  e?.series.forEach((s) => {
988
- (s?.type === v.BarSeries || s?.type === v.LineSeries) && (s.binTemporalData = t, t ? s.temporalBinning = {
989
- unit: te.Day,
1032
+ (s?.type === T.BarSeries || s?.type === T.LineSeries) && (s.binTemporalData = t, t ? s.temporalBinning = {
1033
+ unit: ie.Day,
990
1034
  size: 0,
991
- timeAggregationType: at.Start,
1035
+ timeAggregationType: lt.Start,
992
1036
  trimIncompleteTimeInterval: !0,
993
- nullPolicy: K.Null
1037
+ nullPolicy: M.Null
994
1038
  } : delete s.temporalBinning);
995
1039
  });
996
1040
  }
997
1041
  export {
998
- hs as $,
999
- ni as A,
1000
- ri as B,
1001
- ui as C,
1002
- ci as D,
1003
- H as E,
1004
- Nt as F,
1005
- Bs as G,
1006
- Ks as H,
1007
- Us as I,
1008
- bs as J,
1009
- Cs as K,
1010
- vs as L,
1011
- As as M,
1012
- Qs as N,
1013
- zs as O,
1014
- Gs as P,
1015
- _s as Q,
1016
- ei as R,
1017
- ti as S,
1018
- si as T,
1019
- ii as U,
1020
- fs as V,
1021
- Ss as W,
1022
- Ls as X,
1023
- Is as Y,
1024
- Vs as Z,
1025
- qs as _,
1026
- ys as a,
1027
- Fs as a0,
1028
- xs as a1,
1029
- Ts as a2,
1030
- ks as a3,
1031
- Os as a4,
1032
- Ds as a5,
1033
- ws as a6,
1034
- Rs as a7,
1035
- Ns as a8,
1036
- Ps as a9,
1037
- kt as aa,
1038
- Es as ab,
1039
- Ms as ac,
1040
- $s as ad,
1041
- Ys as ae,
1042
- Ws as af,
1043
- Xs as ag,
1042
+ Ys as $,
1043
+ hi as A,
1044
+ Fi as B,
1045
+ fi as C,
1046
+ xi as D,
1047
+ Ti as E,
1048
+ U as F,
1049
+ Wt as G,
1050
+ ks as H,
1051
+ ii as I,
1052
+ ai as J,
1053
+ Ds as K,
1054
+ Os as L,
1055
+ ws as M,
1056
+ Ps as N,
1057
+ ri as O,
1058
+ ni as P,
1059
+ li as Q,
1060
+ oi as R,
1061
+ di as S,
1062
+ yi as T,
1063
+ mi as U,
1064
+ pi as V,
1065
+ kt as W,
1066
+ Is as X,
1067
+ Ls as Y,
1068
+ Ms as Z,
1069
+ Es as _,
1070
+ Cs as a,
1071
+ $s as a0,
1072
+ Ns as a1,
1073
+ Vs as a2,
1074
+ Rs as a3,
1075
+ qs as a4,
1076
+ js as a5,
1077
+ Hs as a6,
1078
+ Us as a7,
1079
+ Ks as a8,
1080
+ Xs as a9,
1081
+ Ws as aa,
1082
+ Zs as ab,
1083
+ jt as ac,
1084
+ _s as ad,
1085
+ Qs as ae,
1086
+ zs as af,
1087
+ Gs as ag,
1044
1088
  Js as ah,
1045
- Zs as ai,
1046
- Hs as aj,
1047
- js as ak,
1048
- us as b,
1049
- cs as c,
1089
+ ei as ai,
1090
+ ci as aj,
1091
+ ui as ak,
1092
+ ti as al,
1093
+ si as am,
1094
+ xs as b,
1095
+ Ts as c,
1050
1096
  G as d,
1051
- ue as e,
1052
- ps as f,
1053
- be as g,
1054
- li as h,
1055
- ms as i,
1056
- ts as j,
1057
- Tt as k,
1058
- rs as l,
1059
- ss as m,
1060
- ls as n,
1061
- is as o,
1062
- gs as p,
1063
- ns as q,
1064
- Ct as r,
1065
- xt as s,
1066
- as as t,
1067
- ds as u,
1068
- Bt as v,
1069
- os as w,
1070
- ai as x,
1071
- ie as y,
1072
- oi as z
1097
+ z as e,
1098
+ vs as f,
1099
+ Ae as g,
1100
+ Si as h,
1101
+ bs as i,
1102
+ ms as j,
1103
+ vt as k,
1104
+ At as l,
1105
+ Ss as m,
1106
+ ps as n,
1107
+ Fs as o,
1108
+ As as p,
1109
+ gs as q,
1110
+ Ot as r,
1111
+ Ce as s,
1112
+ hs as t,
1113
+ Bs as u,
1114
+ fs as v,
1115
+ It as w,
1116
+ Lt as x,
1117
+ gi as y,
1118
+ re as z
1073
1119
  };