@arcgis/charts-components 5.2.0-next.2 → 5.2.0-next.20

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 (267) hide show
  1. package/dist/cdn/{ZRFHAQL6.js → 2OXJ5CIC.js} +1 -1
  2. package/dist/cdn/2YRBTD5E.js +2 -0
  3. package/dist/cdn/{VVKV5KKN.js → 3CRUKP7D.js} +1 -1
  4. package/dist/cdn/3MKY6UCO.js +2 -0
  5. package/dist/cdn/3SBYV6BW.js +2 -0
  6. package/dist/cdn/{LRNADJJG.js → 3TBK72EK.js} +1 -1
  7. package/dist/cdn/4MBX554Q.js +2 -0
  8. package/dist/cdn/4ZGGMYAW.js +2 -0
  9. package/dist/cdn/{HCMD362H.js → 54CA4NEA.js} +1 -1
  10. package/dist/cdn/5B7SUFIW.js +2 -0
  11. package/dist/cdn/{VDG54AIC.js → 62ECX35C.js} +1 -1
  12. package/dist/cdn/{HCV34H6X.js → 6ECU76VK.js} +1 -1
  13. package/dist/cdn/7473JWME.js +2 -0
  14. package/dist/cdn/74UHJFPH.js +2 -0
  15. package/dist/cdn/{PVJEBBA7.js → 7532DIDI.js} +1 -1
  16. package/dist/cdn/{JVHJMPFE.js → 7C6E54U5.js} +1 -1
  17. package/dist/cdn/7X5P6K2W.js +2 -0
  18. package/dist/cdn/A636YSNA.js +2 -0
  19. package/dist/cdn/{TNB3MBXR.js → ABAERFCU.js} +1 -1
  20. package/dist/cdn/AH2UFHXP.js +2 -0
  21. package/dist/cdn/AHTGZ4MH.js +2 -0
  22. package/dist/cdn/AQIB3VEP.js +2 -0
  23. package/dist/cdn/{BBURKBKE.js → AZY72Q7D.js} +1 -1
  24. package/dist/cdn/{KOBNV5AQ.js → B34ZX3IO.js} +1 -1
  25. package/dist/cdn/BMAAWO5F.js +2 -0
  26. package/dist/cdn/CG6MYXFY.js +2 -0
  27. package/dist/cdn/{LONASKGH.js → CPT6BODA.js} +1 -1
  28. package/dist/cdn/CRCAJAFA.js +2 -0
  29. package/dist/cdn/DG2OI6R3.js +3 -0
  30. package/dist/cdn/DKENYDHS.js +233 -0
  31. package/dist/cdn/{YRBE7MBU.js → DSHN2EGI.js} +1 -1
  32. package/dist/cdn/E44C5J3E.js +2 -0
  33. package/dist/cdn/{LZYN55O4.js → EHMSOPGV.js} +1 -1
  34. package/dist/cdn/{KLC6NTPC.js → ETXHDKUU.js} +1 -1
  35. package/dist/cdn/{GL3IXVRN.js → F4WIDKYH.js} +1 -1
  36. package/dist/cdn/{TZB57XD4.js → FGRHILPJ.js} +1 -1
  37. package/dist/cdn/FYDWWQCT.js +2 -0
  38. package/dist/cdn/GIBMAXXC.js +2 -0
  39. package/dist/cdn/{24LTTBTF.js → HJIWACZ5.js} +1 -1
  40. package/dist/cdn/HKF4PBPJ.js +58 -0
  41. package/dist/cdn/{WEQBZOH7.js → HNHNP7BI.js} +1 -1
  42. package/dist/cdn/{TYMKFCF4.js → HXR7LXG4.js} +1 -1
  43. package/dist/cdn/I4MM4T5T.js +2 -0
  44. package/dist/cdn/IHHPUKGG.js +2 -0
  45. package/dist/cdn/{R45FWF7D.js → IJNPEW4W.js} +1 -1
  46. package/dist/cdn/{OE3UFORR.js → ILMYZIWD.js} +1 -1
  47. package/dist/cdn/{U4XLNCOU.js → IQ3T72TK.js} +1 -1
  48. package/dist/cdn/{3YT44D4Z.js → IRJ2YA3P.js} +1 -1
  49. package/dist/cdn/{A5GIBV5W.js → J2HYDDIW.js} +1 -1
  50. package/dist/cdn/{MRTKZZTF.js → JHANH4UG.js} +1 -1
  51. package/dist/cdn/JMLS3OCC.js +2 -0
  52. package/dist/cdn/JQ7KK2TT.js +2 -0
  53. package/dist/cdn/K5AZMQ5Q.js +2 -0
  54. package/dist/cdn/KNYJJN7R.js +2 -0
  55. package/dist/cdn/{FDXE5JLT.js → L3XXFSDJ.js} +1 -1
  56. package/dist/cdn/L52YJC6U.js +2 -0
  57. package/dist/cdn/{GES3HRXE.js → LKAKZYML.js} +1 -1
  58. package/dist/cdn/{CJ4POAPM.js → LNRU4KNE.js} +1 -1
  59. package/dist/cdn/{UT4TYXFO.js → LU5S2VRK.js} +1 -1
  60. package/dist/cdn/{RAQZUMC6.js → LYRIOMLM.js} +1 -1
  61. package/dist/cdn/{RFQBUWOW.js → NI4KTOCF.js} +1 -1
  62. package/dist/cdn/O533LNDP.js +2 -0
  63. package/dist/cdn/{UKDTXHZT.js → OKMRX4U5.js} +1 -1
  64. package/dist/cdn/{LDPHZHSF.js → OYQK2TIQ.js} +1 -1
  65. package/dist/cdn/{NQQW4GKA.js → PKCOYJHN.js} +1 -1
  66. package/dist/cdn/{PK5XIIZY.js → POIIR3QR.js} +1 -1
  67. package/dist/cdn/PSUB3KL5.js +4 -0
  68. package/dist/cdn/{KI4HS3AM.js → PWNFUWUN.js} +1 -1
  69. package/dist/cdn/Q5J2S3DE.js +2 -0
  70. package/dist/cdn/{5JML3JUR.js → QEC5EZ6Q.js} +1 -1
  71. package/dist/cdn/QID7XRNR.js +2 -0
  72. package/dist/cdn/QKL4PXPG.js +2 -0
  73. package/dist/cdn/{2K4ODNJ4.js → QN7MXGGV.js} +1 -1
  74. package/dist/cdn/{WASEMNYV.js → QNT6HTFC.js} +1 -1
  75. package/dist/cdn/R7QGZ7QJ.js +2 -0
  76. package/dist/cdn/RGFQCA4L.js +102 -0
  77. package/dist/cdn/{CHQDKVVQ.js → RIM4HLHN.js} +1 -1
  78. package/dist/cdn/RQN3DHRN.js +2 -0
  79. package/dist/cdn/{N524VXQ2.js → RY3TJU7J.js} +1 -1
  80. package/dist/cdn/{7ABIELGZ.js → RZGDZC44.js} +1 -1
  81. package/dist/cdn/S7Z4HRW7.js +2 -0
  82. package/dist/cdn/SCX3TUEG.js +2 -0
  83. package/dist/cdn/STTG3UAJ.js +2 -0
  84. package/dist/cdn/{VEA5ZR5D.js → SZOAGNYC.js} +1 -1
  85. package/dist/cdn/{PZGIXDMC.js → T5KLEUNC.js} +1 -1
  86. package/dist/cdn/{23YH7MTF.js → TCS4HOSG.js} +1 -1
  87. package/dist/cdn/{PC7IKOIB.js → TH2F4GPI.js} +1 -1
  88. package/dist/cdn/{TU3UF32Y.js → U555MUVU.js} +1 -1
  89. package/dist/cdn/V2H2UI2W.js +2 -0
  90. package/dist/cdn/{RX3RNE7F.js → V6UMDO6X.js} +1 -1
  91. package/dist/cdn/{3DK6M5E7.js → VK4OJOVV.js} +1 -1
  92. package/dist/cdn/{5QO32XSX.js → VM6CF4WH.js} +1 -1
  93. package/dist/cdn/{TAI4RIWT.js → WE2J37H5.js} +1 -1
  94. package/dist/cdn/{5G7DSKI7.js → XAO2DW32.js} +1 -1
  95. package/dist/cdn/XRLVJJBT.js +2 -0
  96. package/dist/cdn/{U2LJZ4ML.js → XVW5DABR.js} +1 -1
  97. package/dist/cdn/YVOKQFAW.js +2 -0
  98. package/dist/cdn/{PSO5AURI.js → Z2Z3DPFE.js} +1 -1
  99. package/dist/cdn/ZW4PF3UK.js +2 -0
  100. package/dist/cdn/assets/common/t9n/messages.en.json +1 -1
  101. package/dist/cdn/index.js +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 +68 -68
  108. package/dist/chunks/index2.js +2259 -2226
  109. package/dist/chunks/index3.js +32 -29
  110. package/dist/chunks/index4.js +107 -49
  111. package/dist/chunks/model-setter.js +1 -1
  112. package/dist/chunks/pie-chart-data.js +42 -36
  113. package/dist/chunks/pie-chart-model.js +175 -162
  114. package/dist/chunks/rotated-state.js +1 -1
  115. package/dist/chunks/scatterplot-model.js +1 -1
  116. package/dist/chunks/serial-chart-data.js +591 -579
  117. package/dist/chunks/time-zone.js +1 -1
  118. package/dist/chunks/utils.js +67 -56
  119. package/dist/chunks/web-component-utils.js +601 -491
  120. package/dist/components/arcgis-chart/customElement.d.ts +145 -138
  121. package/dist/components/arcgis-chart/customElement.js +6352 -6352
  122. package/dist/components/arcgis-charts-action-bar/customElement.d.ts +4 -0
  123. package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
  124. package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +3 -3
  125. package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +34 -36
  126. package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +28 -28
  127. package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +5 -8
  128. package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +1 -1
  129. package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +35 -36
  130. package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +1 -1
  131. package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +14 -17
  132. package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +14 -16
  133. package/dist/components/arcgis-charts-config-create-flow/customElement.js +15 -15
  134. package/dist/components/arcgis-charts-config-format/customElement.js +25 -25
  135. package/dist/components/arcgis-charts-config-format-popover/customElement.js +7 -10
  136. package/dist/components/arcgis-charts-config-guide-popover/customElement.js +8 -11
  137. package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +1 -1
  138. package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +15 -16
  139. package/dist/components/arcgis-charts-config-histogram/customElement.js +28 -23
  140. package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +26 -27
  141. package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
  142. package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +2 -2
  143. package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +29 -31
  144. package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +6 -6
  145. package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +4 -5
  146. package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +49 -56
  147. package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +38 -40
  148. package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +6 -6
  149. package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +5 -8
  150. package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +27 -22
  151. package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +75 -75
  152. package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +12 -13
  153. package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +8 -10
  154. package/dist/docs/api.json +1 -1
  155. package/dist/docs/docs.json +1 -1
  156. package/dist/docs/vscode.html-custom-data.json +1 -1
  157. package/dist/docs/web-types.json +1 -1
  158. package/dist/index.d.ts +66 -70
  159. package/dist/index.js +212 -210
  160. package/dist/json-schema/index.d.ts +59 -2
  161. package/dist/loader.js +1 -1
  162. package/dist/model/chart-model/chart-model.d.ts +2 -1
  163. package/dist/model/interfaces/common.d.ts +0 -2
  164. package/dist/model/pie-chart-model/pie-chart-model.d.ts +2 -0
  165. package/dist/model/properties/data-tooltip-font-size.d.ts +20 -0
  166. package/dist/model/properties/rotated-state.d.ts +1 -1
  167. package/dist/spec/rest-js-object-literals.d.ts +2 -2
  168. package/dist/spec/rest-js-types.d.ts +22 -8
  169. package/dist/spec/web-chart.d.ts +8 -2
  170. package/dist/utils/chart-config/converter/index.js +264 -264
  171. package/dist/utils/chart-config/utils/index.d.ts +36 -0
  172. package/dist/utils/chart-config/validator/index.d.ts +1 -0
  173. package/dist/utils/chart-config/validator/interfaces.d.ts +3 -3
  174. package/dist/utils/data/index.d.ts +8 -11
  175. package/dist/utils/defaults/index.d.ts +1 -2
  176. package/dist/utils/errors/index.d.ts +1 -1
  177. package/dist/utils/layer/index.d.ts +5 -3
  178. package/dist/utils/layer/inline-conversion/interfaces.d.ts +0 -2
  179. package/dist/utils/layer/query-parser/index.d.ts +3 -3
  180. package/dist/utils/localization/interfaces.d.ts +4 -0
  181. package/dist/utils/misc/index.d.ts +2 -3
  182. package/dist/utils/types/index.d.ts +1 -5
  183. package/package.json +6 -6
  184. package/dist/cdn/26FWESH3.js +0 -102
  185. package/dist/cdn/3XHZ677O.js +0 -2
  186. package/dist/cdn/5FMEOIBS.js +0 -3
  187. package/dist/cdn/74JAZF7U.js +0 -2
  188. package/dist/cdn/7HIZH35G.js +0 -2
  189. package/dist/cdn/CCR46UHB.js +0 -2
  190. package/dist/cdn/CRFJ2GGS.js +0 -2
  191. package/dist/cdn/CXQOEN77.js +0 -2
  192. package/dist/cdn/DYC3Q36R.js +0 -2
  193. package/dist/cdn/E2N2S7BH.js +0 -2
  194. package/dist/cdn/E43KEVHT.js +0 -2
  195. package/dist/cdn/EXTKNE2L.js +0 -2
  196. package/dist/cdn/F7Y6EWWB.js +0 -2
  197. package/dist/cdn/G5HVFOIO.js +0 -2
  198. package/dist/cdn/G7TRU7JI.js +0 -2
  199. package/dist/cdn/IHQ7R6L4.js +0 -4
  200. package/dist/cdn/IUFXFWXH.js +0 -2
  201. package/dist/cdn/JHYH555K.js +0 -2
  202. package/dist/cdn/JNNB2DIA.js +0 -2
  203. package/dist/cdn/KVGEY3IQ.js +0 -2
  204. package/dist/cdn/KXNZEPLT.js +0 -58
  205. package/dist/cdn/LWODMEOP.js +0 -2
  206. package/dist/cdn/LYZGRYQV.js +0 -2
  207. package/dist/cdn/MF3FGXHI.js +0 -2
  208. package/dist/cdn/MUPHTV55.js +0 -2
  209. package/dist/cdn/N5ERJZPG.js +0 -2
  210. package/dist/cdn/NGPMU4T3.js +0 -2
  211. package/dist/cdn/NJCZ6UTM.js +0 -2
  212. package/dist/cdn/NMB6TWC2.js +0 -2
  213. package/dist/cdn/NNNTZU5J.js +0 -2
  214. package/dist/cdn/NS3THLCD.js +0 -2
  215. package/dist/cdn/NZR4L5AA.js +0 -2
  216. package/dist/cdn/P2NPQAJ3.js +0 -2
  217. package/dist/cdn/PJUAU42S.js +0 -2
  218. package/dist/cdn/PY5Q3V6E.js +0 -2
  219. package/dist/cdn/RMYZGOBM.js +0 -2
  220. package/dist/cdn/TXSWWAOF.js +0 -2
  221. package/dist/cdn/UAJGYF4S.js +0 -2
  222. package/dist/cdn/UT6G7RV7.js +0 -2
  223. package/dist/cdn/VOTZAPI3.js +0 -2
  224. package/dist/cdn/WO6JBNMU.js +0 -2
  225. package/dist/cdn/YYK7SPXC.js +0 -2
  226. package/dist/cdn/ZRZEKOEF.js +0 -2
  227. /package/dist/cdn/{2HGBRW4I.js → 3HAB3JR6.js} +0 -0
  228. /package/dist/cdn/{AJBEE7WE.js → 3YOOX2CV.js} +0 -0
  229. /package/dist/cdn/{53FG76LL.js → 4DSO7LUF.js} +0 -0
  230. /package/dist/cdn/{2X75KJPF.js → 5HRLHWQ5.js} +0 -0
  231. /package/dist/cdn/{I36OAVW3.js → 732EZ6WJ.js} +0 -0
  232. /package/dist/cdn/{3V4HRXIT.js → 7IS6QE6S.js} +0 -0
  233. /package/dist/cdn/{VFM2EV3M.js → 7XZZ5OZL.js} +0 -0
  234. /package/dist/cdn/{4E7C5QPS.js → AN2NRYQV.js} +0 -0
  235. /package/dist/cdn/{O2ERVMSN.js → ASUGYCJ6.js} +0 -0
  236. /package/dist/cdn/{TSI3C3OV.js → BICQEJYZ.js} +0 -0
  237. /package/dist/cdn/{66KSEDOR.js → C2I4WPWM.js} +0 -0
  238. /package/dist/cdn/{NFDXH5B3.js → C47AIJTI.js} +0 -0
  239. /package/dist/cdn/{B4KT2HUE.js → C5YJ7J3A.js} +0 -0
  240. /package/dist/cdn/{4QQVKRJ5.js → DPV2ZJLF.js} +0 -0
  241. /package/dist/cdn/{ZFM5RGWD.js → E4535ZTP.js} +0 -0
  242. /package/dist/cdn/{M4AQLWZU.js → FJNRPAMO.js} +0 -0
  243. /package/dist/cdn/{PH6UOHRS.js → GI54JT4O.js} +0 -0
  244. /package/dist/cdn/{YIIPYKTL.js → GYTYFBNU.js} +0 -0
  245. /package/dist/cdn/{RDTBZUT7.js → J5QUGI2J.js} +0 -0
  246. /package/dist/cdn/{XIJ5VLER.js → JPEN5TFK.js} +0 -0
  247. /package/dist/cdn/{DD4QUBOF.js → KBQM3DLQ.js} +0 -0
  248. /package/dist/cdn/{75P3QRL4.js → LEMJA72W.js} +0 -0
  249. /package/dist/cdn/{NHDVOYQ2.js → MMO2QPOA.js} +0 -0
  250. /package/dist/cdn/{NG2IHVZ4.js → PS7IL5JZ.js} +0 -0
  251. /package/dist/cdn/{5AOYADA3.js → R2RRMPOC.js} +0 -0
  252. /package/dist/cdn/{ABIVSH72.js → RV6E7KKQ.js} +0 -0
  253. /package/dist/cdn/{OA7FHTCA.js → RYLXJPKL.js} +0 -0
  254. /package/dist/cdn/{I5VHQW7B.js → S2R72ISR.js} +0 -0
  255. /package/dist/cdn/{N3VOUI25.js → T4NEEFOY.js} +0 -0
  256. /package/dist/cdn/{4JQ2RRLY.js → TEERYUCS.js} +0 -0
  257. /package/dist/cdn/{XWKBJDZT.js → V454JYTQ.js} +0 -0
  258. /package/dist/cdn/{LNF44ZGQ.js → V7JF5I5M.js} +0 -0
  259. /package/dist/cdn/{N6OT5IBC.js → VIZWWEG5.js} +0 -0
  260. /package/dist/cdn/{SGOYJFLO.js → W5SPX6WM.js} +0 -0
  261. /package/dist/cdn/{OYHKUGS6.js → X2IOJECM.js} +0 -0
  262. /package/dist/cdn/{O6SNP6QE.js → X33RIIGI.js} +0 -0
  263. /package/dist/cdn/{UAZ34KDJ.js → YBTVIOHQ.js} +0 -0
  264. /package/dist/cdn/{7ILH7ZG2.js → YFQHZWLO.js} +0 -0
  265. /package/dist/cdn/{FLO3N6JD.js → YX4EVVJM.js} +0 -0
  266. /package/dist/cdn/{CODAXMWM.js → YXH22GJ6.js} +0 -0
  267. /package/dist/cdn/{DIKQ7BPQ.js → ZMQTYGGT.js} +0 -0
@@ -1,174 +1,174 @@
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";
2
+ import { substitute as w } from "@arcgis/core/intl.js";
3
+ import { cloneDeep as re, isEmpty as Le, memoize as Ve } from "lodash-es";
4
+ import { S as ee } from "./common.js";
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";
18
10
  import { i as z } from "./index4.js";
19
- const ts = (t) => {
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
20
  let e;
21
21
  const s = t.series[0];
22
- return R(s) && (e = s.temporalBinning?.size), e;
22
+ return k(s) && (e = s.temporalBinning?.size), e;
23
23
  }, Tt = (t) => {
24
24
  let e;
25
25
  const s = t.series[0];
26
- return R(s) && (e = s.temporalBinning?.unit), e;
27
- }, ss = (t) => {
26
+ return k(s) && (e = s.temporalBinning?.unit), e;
27
+ }, as = (t) => {
28
28
  let e;
29
29
  const s = t.series[0];
30
- return R(s) && (e = s.temporalBinning?.timeAggregationType), e;
31
- }, is = (t) => {
30
+ return k(s) && (e = s.temporalBinning?.timeAggregationType), e;
31
+ }, rs = (t) => {
32
32
  let e;
33
33
  const s = t.series[0];
34
- return R(s) && (e = s.temporalBinning?.trimIncompleteTimeInterval), e;
35
- }, as = (t) => {
34
+ return k(s) && (e = s.temporalBinning?.trimIncompleteTimeInterval), e;
35
+ }, ls = (t) => {
36
36
  let e;
37
37
  const s = t.series[0];
38
- return R(s) && (e = s.temporalBinning?.nullPolicy), e;
39
- }, xt = (t, e) => {
40
- e?.series?.forEach((s) => {
41
- R(s) && (s.temporalBinning ??= {}, s.temporalBinning.size = t);
42
- }), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
38
+ return k(s) && (e = s.temporalBinning?.nullPolicy), e;
43
39
  }, Bt = (t, e) => {
44
40
  e?.series?.forEach((s) => {
45
- R(s) && (s.temporalBinning ??= {}, s.temporalBinning.nullPolicy = t);
46
- }), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
47
- }, rs = (t, e) => {
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
48
  e.series?.forEach((s) => {
49
- R(s) && (s.temporalBinning ??= {}, s.temporalBinning.unit = t);
50
- }), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
51
- }, ls = (t, e) => {
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
52
  e.series?.forEach((s) => {
53
- R(s) && (s.temporalBinning ??= {}, s.temporalBinning.timeAggregationType = t);
54
- }), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
55
- }, ns = (t, e) => {
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
56
  e.series?.forEach((s) => {
57
- R(s) && (s.temporalBinning ??= {}, s.temporalBinning.trimIncompleteTimeInterval = t);
58
- }), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
59
- }, os = (t) => {
60
- xt(0, t);
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
61
  };
62
- function us(t, e) {
62
+ function cs(t, e) {
63
63
  let s;
64
64
  return e !== void 0 && (s = { ...e }, s.legend !== void 0 && (s.legend.position = t)), s;
65
65
  }
66
- function cs(t, e) {
66
+ function ds(t, e) {
67
67
  let s;
68
68
  return e !== void 0 && (s = { ...e }, s.legend !== void 0 && (s.legend.visible = t)), s;
69
69
  }
70
- function ds(t, e) {
70
+ function ys(t, e) {
71
71
  let s;
72
72
  return e !== void 0 && (s = { ...e, rotated: t }), s;
73
73
  }
74
- function Ct(t) {
74
+ function At(t) {
75
75
  let e;
76
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;
77
77
  }
78
- function ys(t, e) {
79
- return e != null || Be(t);
78
+ function ms(t, e) {
79
+ return e != null || Te(t);
80
80
  }
81
- async function ms(t) {
81
+ async function gs(t) {
82
82
  const { config: e, layer: s, abortSignal: r } = t;
83
83
  let a = !1;
84
- return se(s) || ot(e) ? e && se(s) && (a = await Re({ config: e, layer: s, abortSignal: r })) : a = !0, a;
84
+ return ie(s) || Ft(e) ? e && ie(s) && (a = await Re({ config: e, layer: s, abortSignal: r })) : a = !0, a;
85
85
  }
86
- async function bt(t) {
86
+ async function It(t) {
87
87
  const {
88
88
  queryObject: e,
89
89
  chartConfig: s,
90
90
  splitByField: r,
91
91
  errorStrings: a,
92
92
  abortSignal: i,
93
- runtimeDataFilters: n,
94
- ignoreViewExtent: o,
95
- setTimeBinningInfoWhenNotProvided: c,
96
- returnFeaturesExtent: m,
97
- chartLimits: F
93
+ runtimeDataFilters: l,
94
+ ignoreViewExtent: n,
95
+ setTimeBinningInfoWhenNotProvided: y,
96
+ returnFeaturesExtent: g,
97
+ chartLimits: S
98
98
  } = t;
99
- let l = [], g;
100
- const d = ae(s), y = d.series[0], u = He({
99
+ let o = [], c;
100
+ const m = re(s), d = m.series[0], u = je({
101
101
  queryObject: e,
102
- chartConfig: d,
103
- runtimeDataFilters: n,
104
- ignoreViewExtent: o
102
+ chartConfig: m,
103
+ runtimeDataFilters: l,
104
+ ignoreViewExtent: n
105
105
  });
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,
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,
110
110
  queryObject: e
111
- }) && Ue(r, e)) {
112
- const { temporalBinning: p, x: B } = y, { uniqueQuery: C } = de({
113
- chartConfig: d,
111
+ }) && Qe(r, e)) {
112
+ const { temporalBinning: p, x: T } = d, { uniqueQuery: C } = de({
113
+ chartConfig: m,
114
114
  queryConfig: u,
115
115
  queryObject: e,
116
- setTimeBinningInfoWhenNotProvided: c,
117
- returnFeaturesExtent: m,
118
- chartLimits: F
119
- }), h = s.axes?.[0].valueFormat.type === v.DateAxisFormat ? s.axes[0].valueFormat.intlOptions.timeZone : void 0;
120
- g = await Qe({
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({
121
121
  queryObject: e,
122
- dateField: B,
122
+ dateField: T,
123
123
  splitByField: r,
124
124
  queryConfig: C,
125
- axisTimeZone: h,
125
+ axisTimeZone: F,
126
126
  temporalBinning: p,
127
127
  errorStrings: a,
128
128
  abortSignal: i
129
- }), l = Array.from(
129
+ }), o = Array.from(
130
130
  new Set(
131
- g.flatMap((f) => {
132
- const { stackedAttributes: k } = f;
133
- let T = [];
134
- return k && (T = k.map((S) => S[r]).filter((S) => S !== void 0)), T;
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;
135
135
  })
136
136
  ).values()
137
137
  );
138
138
  } else {
139
139
  const { uniqueQuery: p } = de({
140
- chartConfig: d,
140
+ chartConfig: m,
141
141
  queryObject: e,
142
142
  queryConfig: u,
143
- setTimeBinningInfoWhenNotProvided: c,
144
- returnFeaturesExtent: m,
145
- chartLimits: F
146
- }), { elementCount: B } = await ze({
147
- chartConfig: d,
143
+ setTimeBinningInfoWhenNotProvided: y,
144
+ returnFeaturesExtent: g,
145
+ chartLimits: S
146
+ }), { elementCount: T } = await _e({
147
+ chartConfig: m,
148
148
  queryObject: e,
149
149
  queryConfig: u,
150
- behaviorAfterLimit: F?.behaviorAfterLimit,
150
+ behaviorAfterLimit: S?.behaviorAfterLimit,
151
151
  numberMaxOfFeaturesToFetch: p.num,
152
152
  abortSignal: i
153
153
  });
154
- g = await Ge({
154
+ c = await Ge({
155
155
  queryObject: e,
156
156
  queryConfig: p,
157
- featureCount: B,
157
+ featureCount: T,
158
158
  errorStrings: a,
159
159
  abortSignal: i
160
- }), l = Array.from(
160
+ }), o = Array.from(
161
161
  new Set(
162
- g.map((C) => C.attributes[r]).filter((C) => C !== void 0)
162
+ c.map((C) => C.attributes[r]).filter((C) => C !== void 0)
163
163
  ).values()
164
164
  );
165
165
  }
166
- return { allValues: l, preFetchedQueryResponse: g };
166
+ return { allValues: o, preFetchedQueryResponse: c };
167
167
  }
168
- function At(t, e) {
168
+ function vt(t, e) {
169
169
  const s = /* @__PURE__ */ new Map();
170
170
  return t.series.forEach((r) => {
171
- let a = le({
171
+ let a = ne({
172
172
  where: r.query?.where,
173
173
  // normalize the value so it matches what we get from getAllValues()
174
174
  // Refer to https://devtopia.esri.com/WebGIS/arcgis-charts/issues/8127
@@ -178,24 +178,24 @@ function At(t, e) {
178
178
  escape: !1
179
179
  });
180
180
  e && a !== null && (a = Number(a));
181
- const i = xe([r]);
181
+ const i = Be([r]);
182
182
  i !== void 0 && s.set(i, [
183
183
  ...s.get(i) ?? [],
184
184
  a
185
185
  ]);
186
186
  }), s;
187
187
  }
188
- function vt(t) {
188
+ function Lt(t) {
189
189
  const { allValues: e, configUniqueValuesPerSeriesType: s, initialConfigWasEmpty: r } = t, a = /* @__PURE__ */ new Map();
190
190
  return Array.from(s.keys()).forEach((i) => {
191
- const n = s.get(i) ?? [];
192
- let o = [];
193
- r ? o = e : e.forEach((c) => {
194
- n.includes(c) || o.push(c);
195
- }), a.set(i, o);
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);
196
196
  }), a;
197
197
  }
198
- function It(t) {
198
+ function Vt(t) {
199
199
  const { chartConfig: e, missingValue: s, splitByField: r, seriesTemplate: a } = t, i = JSON.parse(
200
200
  JSON.stringify({
201
201
  ...e.series[0],
@@ -203,258 +203,258 @@ function It(t) {
203
203
  })
204
204
  );
205
205
  if (i.query) {
206
- if (i.id = `${s}-${e.series.length}-${Date.now()}`, i.name = `${s}`, i.query.outStatistics?.[0] !== void 0) {
207
- const o = i.id;
208
- i.query.outStatistics[0].outStatisticFieldName = o, "y" in i && (i.y = o);
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);
209
209
  }
210
- const n = typeof s == "number" || s === null ? s : `'${s}'`;
211
- i.query.where = `${r}=${n}`;
210
+ const l = typeof s == "number" || s === null ? s : `'${s}'`;
211
+ i.query.where = `${r}=${l}`;
212
212
  }
213
213
  return i;
214
214
  }
215
- async function Lt(t) {
215
+ async function Nt(t) {
216
216
  const {
217
217
  updateSplitBySeries: e,
218
218
  config: s,
219
219
  queryObject: r,
220
220
  errorStrings: a,
221
221
  abortSignal: i,
222
- runtimeDataFilters: n,
223
- ignoreViewExtent: o,
224
- setTimeBinningInfoWhenNotProvided: c,
225
- returnFeaturesExtent: m,
226
- chartLimits: F
227
- } = t, { seriesTemplate: l } = e ?? {};
228
- let g;
229
- if (r && !se(r) && e !== void 0 && s !== void 0 && (s.series.length > 0 || l !== void 0) && e.addMissingSeries) {
230
- const d = s.series.length === 0;
231
- s.series.length === 0 && l !== void 0 && s.series.push(l);
232
- const y = 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({
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
235
  queryObject: r,
236
236
  chartConfig: s,
237
237
  splitByField: u,
238
238
  abortSignal: i,
239
- runtimeDataFilters: n,
240
- ignoreViewExtent: o,
241
- setTimeBinningInfoWhenNotProvided: c,
242
- returnFeaturesExtent: m,
243
- chartLimits: F,
239
+ runtimeDataFilters: l,
240
+ ignoreViewExtent: n,
241
+ setTimeBinningInfoWhenNotProvided: y,
242
+ returnFeaturesExtent: g,
243
+ chartLimits: S,
244
244
  errorStrings: a
245
- }), { allValues: f } = h;
246
- if ({ preFetchedQueryResponse: g } = h, f.length > 0) {
247
- const k = At(s, C), T = vt({
245
+ }), { allValues: f } = F;
246
+ if ({ preFetchedQueryResponse: c } = F, f.length > 0) {
247
+ const R = vt(s, C), x = Lt({
248
248
  allValues: f,
249
- configUniqueValuesPerSeriesType: k,
250
- initialConfigWasEmpty: d
249
+ configUniqueValuesPerSeriesType: R,
250
+ initialConfigWasEmpty: m
251
251
  });
252
- Array.from(T.keys()).forEach((S) => {
253
- (T.get(S) ?? []).forEach((L) => {
252
+ Array.from(x.keys()).forEach((h) => {
253
+ (x.get(h) ?? []).forEach((V) => {
254
254
  s.series.push(
255
- It({
255
+ Vt({
256
256
  chartConfig: s,
257
- seriesTemplate: l,
258
- missingValue: L,
257
+ seriesTemplate: o,
258
+ missingValue: V,
259
259
  splitByField: u
260
260
  })
261
261
  );
262
- }), d && s.series.shift();
262
+ }), m && s.series.shift();
263
263
  });
264
264
  }
265
265
  }
266
266
  }
267
- return g;
267
+ return c;
268
268
  }
269
269
  function qt(t, e) {
270
- e && !Be(e) && (e = Ee({ chartConfig: e, queryObject: t }));
270
+ e && !Te(e) && (e = Me({ chartConfig: e, queryObject: t }));
271
271
  }
272
- async function gs(t) {
272
+ async function ps(t) {
273
273
  const {
274
274
  configToAlter: e,
275
275
  layer: s,
276
276
  addMissingSeries: r,
277
277
  updateSplitBySeries: a,
278
278
  chartContainer: i,
279
- queryObject: n,
280
- abortSignal: o,
281
- runtimeDataFilters: c,
282
- ignoreViewExtent: m,
283
- setTimeBinningInfoWhenNotProvided: F,
284
- returnFeaturesExtent: l,
285
- chartLimits: g,
286
- errorStrings: d
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
287
  } = t;
288
- let y = e, u;
289
- return y && (qt(s, y), y = await rt(y, s, void 0, o), r && n && (u = await Lt({
288
+ let d = e, u;
289
+ return d && (qt(s, d), d = await St(d, s, void 0, n), r && l && (u = await Nt({
290
290
  updateSplitBySeries: a,
291
- config: y,
292
- queryObject: n,
293
- errorStrings: d,
294
- abortSignal: o,
295
- runtimeDataFilters: c,
296
- ignoreViewExtent: m,
297
- setTimeBinningInfoWhenNotProvided: F,
298
- returnFeaturesExtent: l,
299
- chartLimits: g
300
- })), y = Ne(y, i)), { alteredConfig: y, preFetchedQueryResponse: u };
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 };
301
301
  }
302
- function Vt(t, e) {
302
+ function kt(t, e) {
303
303
  let s = !1;
304
304
  if (e !== void 0) {
305
- const r = Xe({ key: _e.Average, splitBy: e });
305
+ const r = He({ key: Ze.Average, splitBy: e });
306
306
  s = Number.isFinite(t[r]);
307
307
  }
308
308
  return s;
309
309
  }
310
- function ps(t) {
311
- const { data: e, config: s, showEmptySeries: r } = t, a = s.series.length, i = ae(s);
312
- 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;
313
313
  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) => {
321
- 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({
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)) {
322
+ let m = "";
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
325
  dataItem: u,
326
- x: g.x,
327
- y: d,
326
+ x: c.x,
327
+ y: m,
328
328
  aggregationType: s.series[0].query?.outStatistics?.[0]?.statisticType
329
329
  })
330
- ) && F.add(g));
330
+ ) && S.add(c));
331
331
  }
332
332
  });
333
333
  break;
334
334
  }
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(
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
341
  (p) => we({
342
342
  dataItem: p,
343
- splitBy: d.query?.where,
344
- showOutliers: g
343
+ splitBy: m.query?.where,
344
+ showOutliers: c
345
345
  })
346
- )) : d.type === v.LineSeries && (y = e.meanLines, u = y?.some(
347
- (p) => Vt(p, d.query?.where)
348
- )), u && F.add(d);
346
+ )) : m.type === I.LineSeries && (d = e.meanLines, u = d?.some(
347
+ (p) => kt(p, m.query?.where)
348
+ )), u && S.add(m);
349
349
  });
350
350
  }
351
351
  break;
352
352
  }
353
353
  }
354
- const l = Array.from(F.values());
355
- n = l.length > 0 && l.length < a, n && (i.series = l);
354
+ const o = Array.from(S.values());
355
+ l = o.length > 0 && o.length < a, l && (i.series = o);
356
356
  }
357
- return { seriesFilteredOut: n, filteredConfig: i };
357
+ return { seriesFilteredOut: l, filteredConfig: i };
358
358
  }
359
- const fs = (t) => t.hideEmptyRowsAndColumns, Ss = (t, e) => {
359
+ const Ss = (t) => t.hideEmptyRowsAndColumns, Fs = (t, e) => {
360
360
  t.hideEmptyRowsAndColumns = e;
361
- }, Fs = (t, e) => {
361
+ }, hs = (t, e) => {
362
362
  const s = t.series[0];
363
363
  s.heatRulesType = e;
364
- }, hs = (t) => t.series[0].heatRulesType, Ts = (t, e) => {
364
+ }, xs = (t) => t.series[0].heatRulesType, Ts = (t, e) => {
365
365
  const s = t.series[0];
366
366
  s.gradientRules = e;
367
- }, xs = (t) => t.series[0].gradientRules, Bs = (t) => {
368
- const { yField: e, config: s, layerInfo: r } = t, { layerFieldsInfo: a } = r, i = oe(1, s), n = Nt(s), o = z(s), c = s.series[0];
369
- if (typeof e == "string" && n !== e && c && (c.y = e, Ct(s), n === i || o)) {
370
- const m = w(a, e);
371
- E(s, 1, m);
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);
372
372
  }
373
- }, Nt = (t) => t.series[0].y ?? "", Cs = (t) => {
373
+ }, Rt = (t) => t.series[0].y ?? "", bs = (t) => {
374
374
  const { binning: e, config: s, commonStrings: r } = t, a = s.series[0];
375
375
  if (a.xTemporalBinning = e, e?.unit !== void 0 && e.unit in r.utilsStrings.heatChartCalendarDatePartsUnits) {
376
376
  const i = r.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
377
377
  E(s, 0, i);
378
378
  }
379
- }, bs = (t) => t.series[0].xTemporalBinning, As = (t) => {
379
+ }, As = (t) => t.series[0].xTemporalBinning, Is = (t) => {
380
380
  const { binning: e, config: s, commonStrings: r } = t, a = s.series[0];
381
381
  if (a.yTemporalBinning = e, e?.unit !== void 0 && e.unit in r.utilsStrings.heatChartCalendarDatePartsUnits) {
382
382
  const i = r.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
383
383
  E(s, 1, i);
384
384
  }
385
- }, vs = (t) => t.series[0].yTemporalBinning, Rt = (t, e) => {
385
+ }, vs = (t) => t.series[0].yTemporalBinning, Ot = (t, e) => {
386
386
  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 = {
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 = {
388
388
  ...e.orderOptions.data ?? {},
389
- orderType: V.MultiAxes
389
+ orderType: N.MultiAxes
390
390
  };
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) => {
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
393
  const s = e.series[0];
394
394
  s.gridLine && (s.gridLine.width = t);
395
- }, Ls = (t) => t.series[0].gridLine?.width, qs = (t, e) => {
395
+ }, Vs = (t) => t.series[0].gridLine?.width, Ns = (t, e) => {
396
396
  const s = e.series[0], r = t?.length === 4 && t.every((a) => typeof a == "number");
397
397
  s.gridLine && r && (s.gridLine.color = t);
398
- }, Vs = (t) => t.series[0].gridLine?.color, Ns = (t, e) => {
398
+ }, qs = (t) => t.series[0].gridLine?.color, ks = (t, e) => {
399
399
  const s = e.legend;
400
400
  s && (s.position = t);
401
- }, Rs = (t) => t.legend?.position ?? st.Bottom, ks = (t) => t.series[0].query?.outStatistics?.[0]?.onStatisticField, Os = (t) => {
402
- const { field: e, config: s, layerInfo: r, commonStrings: a } = t, i = s.series[0].query?.outStatistics?.[0], n = _(s, r, a);
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
403
  i ? (i.onStatisticField = e, i.outStatisticFieldName = `${i.statisticType}_${e}`) : s.series[0].query = {
404
404
  outStatistics: [
405
405
  {
406
406
  onStatisticField: e,
407
- outStatisticFieldName: `${q.Count}_${e}`,
408
- statisticType: q.Count
407
+ outStatisticFieldName: `${v.Count}_${e}`,
408
+ statisticType: v.Count
409
409
  }
410
410
  ]
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) => {
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) => {
416
416
  e.nullPolicy = t;
417
- }, Es = (t) => t.series[0].emptyCells, Ms = (t, e) => {
417
+ }, Ms = (t) => t.series[0].emptyCells, $s = (t, e) => {
418
418
  e.series[0].emptyCells = t;
419
- }, $s = (t) => t.series[0].emptyCells?.text, Ys = (t, e) => {
419
+ }, Ys = (t) => t.series[0].emptyCells?.text, Ws = (t, e) => {
420
420
  e.series[0].emptyCells ? e.series[0].emptyCells.text = t : e.series[0].emptyCells = { text: t };
421
- }, Ws = (t) => t.includeLeapDay, Xs = (t, e) => {
421
+ }, Xs = (t) => t.includeLeapDay, Hs = (t, e) => {
422
422
  e.includeLeapDay = t;
423
- }, Hs = (t) => t.series[0].emptyCells?.symbol, js = (t, e) => {
423
+ }, js = (t) => t.series[0].emptyCells?.symbol, Us = (t, e) => {
424
424
  e.series[0].emptyCells ? e.series[0].emptyCells.symbol = t : e.series[0].emptyCells = { symbol: t };
425
425
  };
426
426
  function Ks(t) {
427
427
  return t.viewType;
428
428
  }
429
- function Us(t, e) {
430
- Ze(e) || (e.viewType = t);
429
+ function Qs(t, e) {
430
+ Je(e) || (e.viewType = t);
431
431
  }
432
- function Qs(t) {
433
- return t.series[0].classBreaksRules?.breaksCount ?? U.classBreaks.breaksCount;
432
+ function zs(t) {
433
+ return t.series[0].classBreaksRules?.breaksCount ?? $.classBreaks.breaksCount;
434
434
  }
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
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
438
438
  };
439
439
  }
440
440
  function Gs(t) {
441
441
  return t.series[0].classBreaksRules?.classificationMethod;
442
442
  }
443
- function _s(t, e) {
443
+ function Zs(t, e) {
444
444
  e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.classificationMethod = t : e.series[0].classBreaksRules = {
445
445
  classificationMethod: t
446
- }, 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;
447
447
  }
448
- function Zs(t, e) {
448
+ function Js(t, e) {
449
449
  e.firstDayOfWeek = t;
450
450
  }
451
- function Js(t) {
451
+ function ei(t) {
452
452
  return t.firstDayOfWeek;
453
453
  }
454
- function ei(t) {
454
+ function ti(t) {
455
455
  return t.series[0].classBreaksRules?.colorRampInfo?.name;
456
456
  }
457
- function ti(t, e) {
457
+ function si(t, e) {
458
458
  e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.colorRampInfo = {
459
459
  ...e.series[0].classBreaksRules.colorRampInfo,
460
460
  name: t
@@ -465,10 +465,10 @@ function ti(t, e) {
465
465
  }
466
466
  };
467
467
  }
468
- function si(t) {
468
+ function ii(t) {
469
469
  return t.series[0].classBreaksRules?.colorRampInfo?.flipped ?? !1;
470
470
  }
471
- function ii(t, e) {
471
+ function ai(t, e) {
472
472
  e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.colorRampInfo = {
473
473
  ...e.series[0].classBreaksRules.colorRampInfo,
474
474
  flipped: t
@@ -478,138 +478,135 @@ function ii(t, e) {
478
478
  }
479
479
  };
480
480
  }
481
- function $(t) {
482
- const { seriesIndex: e, xAxisField: s, aggregationType: r, config: a, layerInfo: i, commonStrings: n } = t, o = X(i?.layer).idField;
483
- let c;
484
- const m = a.series[e ?? 0];
485
- let F = !1, l = !1, g = !1;
486
- if (m === void 0) {
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
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));
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));
489
489
  } else
490
- F = b(m), l = A(m), g = pe(m);
491
- F ? c = dt({
492
- commonStrings: n,
490
+ S = b(g), o = A(g), c = Se(g);
491
+ S ? y = ct({
492
+ commonStrings: l,
493
493
  seriesIndex: e,
494
- objectIDField: o
495
- }) : l ? c = yt({
496
- commonStrings: n,
494
+ objectIDField: n
495
+ }) : o ? y = dt({
496
+ commonStrings: l,
497
497
  seriesIndex: e,
498
- objectIDField: o
499
- }) : g ? c = mt(n, o) : c = gt({
498
+ objectIDField: n
499
+ }) : c ? y = yt(l, n) : y = mt({
500
500
  seriesIndex: e,
501
- objectIDField: o,
502
- commonStrings: n
501
+ objectIDField: n,
502
+ commonStrings: l
503
503
  });
504
- const d = a.series[0]?.dataLabels, y = {
505
- ...c,
504
+ const m = a.series[0]?.dataLabels, d = {
505
+ ...y,
506
506
  x: s,
507
507
  y: "",
508
508
  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
509
+ ...y.dataLabels,
510
+ type: y.dataLabels?.type ?? I.Text,
511
+ content: { ...y.dataLabels?.content, ...m?.content, type: lt.TS },
512
+ visible: m?.visible ?? !1
513
513
  }
514
514
  };
515
- if (y.query = {
515
+ if (d.query = {
516
516
  groupByFieldsForStatistics: [s]
517
- }, r !== q.NoAggregation && o !== void 0) {
518
- const u = `${r}_${o}_0`.toUpperCase();
519
- y.y = u, y.query.outStatistics = [
517
+ }, r !== v.NoAggregation && n !== void 0) {
518
+ const u = `${r}_${n}_0`.toUpperCase();
519
+ d.y = u, d.query.outStatistics = [
520
520
  {
521
521
  statisticType: r,
522
- onStatisticField: o,
522
+ onStatisticField: n,
523
523
  outStatisticFieldName: u
524
524
  }
525
525
  ];
526
526
  }
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
- }
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
+ };
536
533
  }
537
- return ae(y);
534
+ return re(d);
538
535
  }
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;
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;
541
538
  let C = "";
542
- if (Te({
543
- fieldName: n,
544
- numericFields: o,
539
+ if (xe({
540
+ fieldName: l,
541
+ numericFields: n,
545
542
  fieldList: r
546
543
  }))
547
- C = P(s.titleLabels.aggrTypeOfAggrFields, {
548
- aggregationType: l,
549
- aggregationFields: g
544
+ C = w(s.titleLabels.aggrTypeOfAggrFields, {
545
+ aggregationType: o,
546
+ aggregationFields: c
550
547
  });
551
- else if (c === q.NoAggregation) {
552
- const h = F ? a : g;
553
- if (m === "") {
548
+ else if (y === v.NoAggregation) {
549
+ const F = S ? a : c;
550
+ if (g === "") {
554
551
  const f = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
555
- C = P(s.titleLabels[f], {
556
- aggregationType: h,
557
- [p]: B
552
+ C = w(s.titleLabels[f], {
553
+ aggregationType: F,
554
+ [p]: T
558
555
  });
559
556
  } else {
560
557
  const f = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
561
- C = P(s.titleLabels[f], {
562
- aggregationType: h,
563
- [p]: B,
564
- splitByField: y
558
+ C = w(s.titleLabels[f], {
559
+ aggregationType: F,
560
+ [p]: T,
561
+ splitByField: d
565
562
  });
566
563
  }
567
- } else if (c === q.Count)
568
- if (m === "") {
569
- const h = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
570
- C = P(s.titleLabels[h], {
571
- aggregationType: l,
572
- [p]: B
564
+ } else if (y === v.Count)
565
+ if (g === "") {
566
+ const F = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
567
+ C = w(s.titleLabels[F], {
568
+ aggregationType: o,
569
+ [p]: T
573
570
  });
574
571
  } else {
575
- const h = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
576
- C = P(s.titleLabels[h], {
577
- aggregationType: l,
578
- [p]: B,
579
- splitByField: y
572
+ const F = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
573
+ C = w(s.titleLabels[F], {
574
+ aggregationType: o,
575
+ [p]: T,
576
+ splitByField: d
580
577
  });
581
578
  }
582
- 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
579
+ else if (g !== "") {
580
+ const F = u ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
581
+ C = w(s.titleLabels[F], {
582
+ aggregationType: o,
583
+ aggregationField: c,
584
+ [p]: T,
585
+ splitByField: d
589
586
  });
590
- } 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
587
+ } else if (n.length > 0) {
588
+ const F = u ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
589
+ C = w(s.titleLabels[F], {
590
+ aggregationType: o,
591
+ aggregationFields: c,
592
+ [p]: T
596
593
  });
597
594
  }
598
595
  return C;
599
596
  }
600
- const Ce = (t) => le({
597
+ const Ce = (t) => ne({
601
598
  where: t.query?.where,
602
599
  normalize: !1,
603
600
  escape: !1
604
- }) ?? "", be = (t) => t?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? q.NoAggregation, ue = Le(
601
+ }) ?? "", be = (t) => t?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? v.NoAggregation, _ = Ve(
605
602
  (t) => {
606
603
  const e = t?.series?.[0]?.query?.where?.split("=")[0].trim() ?? "";
607
- return Je(t?.series?.[0]?.query?.where) ? "" : e;
604
+ return et(t?.series?.[0]?.query?.where) ? "" : e;
608
605
  },
609
606
  (t) => t?.series?.[0]?.query?.where
610
607
  ), G = (t) => {
611
608
  let e = [];
612
- if (ue(t) === "")
609
+ if (_(t) === "")
613
610
  e = t?.series.map((s) => {
614
611
  const r = s.query?.outStatistics?.map((a) => a.onStatisticField) ?? [];
615
612
  return r?.length > 0 ? r : s.y;
@@ -620,454 +617,469 @@ const Ce = (t) => le({
620
617
  }
621
618
  return e.filter((s) => s !== "");
622
619
  };
623
- function Ot(t) {
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) {
624
625
  const { numericFields: e, aggregationType: s, config: r, layerInfo: a } = t;
625
626
  let i = !1;
626
- s === q.Count ? i = !0 : s === q.NoAggregation && (i = e.every((c) => {
627
- const m = a.layerFieldsInfo.find((F) => F.name === c);
628
- return m !== void 0 ? me(m) : !1;
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;
629
630
  })), ce(r, 1, i);
630
- const n = r.series.some((c) => b(c)), o = r.series.some((c) => A(c));
631
- 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);
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);
634
635
  }
635
636
  }
636
- const ie = (t) => {
637
+ const ae = (t) => {
637
638
  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;
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;
640
641
  e = [ge(s, a), ge(r, i)];
641
642
  } 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)];
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)];
644
645
  }
645
646
  return e;
646
647
  };
647
- function Dt(t) {
648
- const { xAxisField: e, numericFields: s, aggregationType: r, config: a, layerInfo: i, commonStrings: n } = t, { layerFieldsInfo: o } = i;
649
- let c = !1;
650
- const m = $({
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({
651
652
  config: a,
652
653
  xAxisField: e,
653
654
  aggregationType: r,
654
655
  layerInfo: i,
655
656
  seriesIndex: 0,
656
- commonStrings: n
657
- }), F = Q({
657
+ commonStrings: l
658
+ }), S = Q({
658
659
  config: a,
659
660
  xAxisField: e,
660
661
  numericFields: s,
661
662
  aggregationType: r,
662
663
  layer: i.layer,
663
- fieldList: o
664
- }).name, l = {
665
- ...m,
664
+ fieldList: n
665
+ }).name, o = {
666
+ ...g,
666
667
  id: `series_${Date.now()}`,
667
- name: n.axisLabels.values,
668
- x: ee,
669
- y: F
670
- }, g = [];
671
- for (const y of s)
672
- g.push({
673
- onStatisticField: y,
674
- outStatisticFieldName: `${y}_0`.toUpperCase(),
668
+ name: l.axisLabels.values,
669
+ x: te,
670
+ y: S
671
+ }, c = [];
672
+ for (const d of s)
673
+ c.push({
674
+ onStatisticField: d,
675
+ outStatisticFieldName: `${d}_0`.toUpperCase(),
675
676
  statisticType: r
676
677
  });
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];
678
+ o.query = { outStatistics: c };
679
+ const m = a.series[0];
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];
680
681
  }
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;
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 = [];
684
+ let S = !1;
684
685
  for (let u = 0; u < s.length; u += 1) {
685
- const p = $({
686
+ const p = W({
686
687
  config: a,
687
688
  xAxisField: e,
688
689
  aggregationType: r,
689
690
  layerInfo: i,
690
691
  seriesIndex: u,
691
- commonStrings: n
692
- }), B = a.series[u]?.y, C = typeof B == "string" ? B : Q({
692
+ commonStrings: l
693
+ }), T = a.series[u]?.y, C = typeof T == "string" && T.trim() !== "" && !n.find((h) => h.name === T) ? T : Q({
693
694
  config: a,
694
695
  xAxisField: e,
695
696
  numericFields: s,
696
697
  aggregationType: r,
697
698
  layer: i.layer,
698
699
  numericFieldIndex: u,
699
- fieldList: o
700
- }).name, h = s[u];
700
+ fieldList: n
701
+ }).name, F = s[u];
701
702
  let f = {
702
703
  ...p,
703
704
  query: {
704
705
  ...p.query
705
706
  }
706
707
  };
707
- s && h !== c && (f = {
708
+ s && F !== y && (f = {
708
709
  ...f,
709
- id: h,
710
- name: w(o, h)
710
+ id: F,
711
+ name: D(n, F)
711
712
  });
712
- let k = h;
713
- f.query !== void 0 && (r !== q.NoAggregation ? (k = C, f.query.outStatistics = [
713
+ let R = F;
714
+ f.query !== void 0 && (r !== v.NoAggregation ? (R = C, f.query.outStatistics = [
714
715
  {
715
716
  ...p.query?.outStatistics?.[0] ?? {},
716
- onStatisticField: h,
717
+ onStatisticField: F,
717
718
  outStatisticFieldName: C,
718
719
  statisticType: r
719
720
  }
720
- ]) : delete f.query.outStatistics), f.y = k;
721
- const T = a.series.find(
722
- (S) => S.query?.outStatistics?.[0]?.onStatisticField === h && S.query.where === void 0 || S.query?.outStatistics === void 0 && (S.y === h || S.x === h)
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)
723
724
  );
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 = $({
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({
727
728
  config: a,
728
729
  xAxisField: e,
729
730
  aggregationType: r,
730
731
  layerInfo: i,
731
732
  seriesIndex: u,
732
- commonStrings: n
733
+ commonStrings: l
733
734
  });
734
- f.id = T.id, T.id !== S.id && T.name !== S.name && (f.id = T.id, f.name = T.name), f.assignToSecondValueAxis = T.assignToSecondValueAxis, f.type === v.HeatSeries && T.type === v.HeatSeries && (f.y = T.y, f.heatRulesType = T.heatRulesType);
735
+ 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);
735
736
  }
736
- m.push(f);
737
+ g.push(f);
737
738
  }
738
- const l = m.filter((u) => O(u)), g = m.filter(
739
+ const o = g.filter((u) => O(u)), c = g.filter(
739
740
  (u) => b(u) || A(u)
740
- ), d = a.series.filter((u) => O(u)), y = a.series.filter(
741
+ ), m = a.series.filter((u) => O(u)), d = a.series.filter(
741
742
  (u) => b(u) || A(u)
742
743
  );
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;
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;
744
745
  }
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) => {
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) => {
748
749
  const d = Q({
749
750
  config: s,
750
- xAxisField: o,
751
- numericFields: c,
751
+ xAxisField: n,
752
+ numericFields: y,
752
753
  aggregationType: e,
753
- layer: n,
754
- seriesIndex: g,
755
- numericFieldIndex: g,
754
+ splitByField: g,
755
+ layer: l,
756
+ seriesIndex: m,
757
+ numericFieldIndex: m,
756
758
  fieldList: i
757
759
  }).name;
758
- e !== q.NoAggregation ? (l.y = d, l.query = {
759
- ...l.query,
760
- 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 : [
761
770
  {
762
- ...l.query?.outStatistics?.[0],
771
+ ...c.query?.outStatistics?.[0],
763
772
  outStatisticFieldName: d,
764
773
  statisticType: e,
765
- onStatisticField: l.query?.outStatistics?.[0]?.onStatisticField ?? c[g]
774
+ onStatisticField: p
766
775
  }
767
776
  ]
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({
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({
771
780
  config: s,
772
781
  layerInfo: r,
773
782
  commonStrings: a,
774
- numericFields: c,
783
+ numericFields: y,
775
784
  aggregationType: e
776
785
  });
777
- E(s, 1, l);
786
+ E(s, 1, c);
778
787
  }
779
788
  }
780
- function wt(t) {
789
+ function Et(t) {
781
790
  const {
782
791
  splitByField: e,
783
792
  xAxisField: s,
784
793
  numericFields: r,
785
794
  aggregationType: a,
786
795
  config: i,
787
- layerInfo: n,
788
- 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({
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;
806
+ if (o.length === 0) {
807
+ d = Ie({
794
808
  xAxisField: s,
795
809
  numericFields: r,
796
810
  aggregationType: a,
797
811
  config: i,
798
- layerInfo: n,
799
- commonStrings: o
812
+ layerInfo: l,
813
+ commonStrings: n
800
814
  });
801
- for (const p of y)
815
+ for (const p of d)
802
816
  p.query && (p.query.where = `${e}=''`);
803
817
  } else
804
- for (let p = 0; p < l.length; p += 1) {
805
- const B = l[p], C = Q({
818
+ for (let p = 0; p < o.length; p += 1) {
819
+ const T = o[p], C = Q({
806
820
  config: i,
807
821
  xAxisField: s,
808
822
  numericFields: r,
809
823
  aggregationType: a,
810
- layer: n.layer,
824
+ layer: l.layer,
811
825
  seriesIndex: p,
812
826
  splitByField: e,
813
- fieldList: F
814
- }).name, h = $({
827
+ fieldList: S
828
+ }).name, F = W({
815
829
  config: i,
816
830
  xAxisField: s,
817
831
  aggregationType: a,
818
- layerInfo: n,
832
+ layerInfo: l,
819
833
  seriesIndex: p,
820
- commonStrings: o
834
+ commonStrings: n
821
835
  }), f = he({
822
- queryObject: n.layer,
836
+ queryObject: l.layer,
823
837
  fieldName: e,
824
- fieldValue: B ?? ""
825
- }), k = `${B}`, S = {
826
- ...h,
827
- id: k,
828
- name: f ?? k,
838
+ fieldValue: T ?? ""
839
+ }), R = `${T}`, h = {
840
+ ...F,
841
+ id: R,
842
+ name: f ?? R,
829
843
  y: C,
830
844
  query: {
831
- ...h.query,
832
- where: `${e}=${g === ht.String && B !== null ? `'${B}'` : B}`,
833
- outStatistics: a !== q.NoAggregation ? [
845
+ ...F.query,
846
+ where: `${e}=${c === nt.String && T !== null ? `'${T}'` : T}`,
847
+ outStatistics: a !== v.NoAggregation ? [
834
848
  {
835
- ...h.query?.outStatistics?.[0] ?? {},
836
- onStatisticField: d,
849
+ ...F.query?.outStatistics?.[0] ?? {},
850
+ onStatisticField: m,
837
851
  outStatisticFieldName: C,
838
852
  statisticType: a
839
853
  }
840
854
  ] : void 0
841
855
  }
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
856
+ }, L = i.series.find(
857
+ (V) => String(Ce(V)).trim().replace(/'/gu, "") === R
846
858
  );
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);
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);
848
860
  }
849
- return i.colorMatch = !u, y;
861
+ return i.colorMatch = !u, d;
850
862
  }
851
- const ri = (t) => {
863
+ const li = (t) => {
852
864
  const {
853
865
  xAxisFieldName: e,
854
866
  splitByField: s,
855
867
  numericFields: r,
856
868
  aggregationType: a,
857
869
  config: i,
858
- layerInfo: n,
859
- 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);
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);
862
874
  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({
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({
871
883
  fieldName: e,
872
884
  numericFields: r,
873
- fieldList: m
874
- }) ? i.series = Dt({
885
+ fieldList: g
886
+ }) ? i.series = wt({
875
887
  config: i,
876
- layerInfo: n,
888
+ layerInfo: l,
877
889
  xAxisField: e,
878
890
  numericFields: r,
879
891
  aggregationType: a,
880
- commonStrings: o
881
- }) : i.series = Ae({
892
+ commonStrings: n
893
+ }) : i.series = Ie({
882
894
  config: i,
883
- layerInfo: n,
895
+ layerInfo: l,
884
896
  xAxisField: e,
885
897
  numericFields: r,
886
898
  aggregationType: a,
887
- commonStrings: o
888
- }) : c && (i.series = wt({
899
+ commonStrings: n
900
+ }) : y && (i.series = Et({
889
901
  config: i,
890
- layerInfo: n,
902
+ layerInfo: l,
891
903
  splitByField: s,
892
904
  xAxisField: e,
893
905
  numericFields: r,
894
906
  aggregationType: a,
895
- commonStrings: o,
896
- splitByFieldInfos: c
897
- })), h && i.series[0].type !== v.HeatSeries) {
898
- const x = w(m, e);
899
- E(i, 0, x);
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);
900
912
  }
901
- if (C && i.series[0].type !== v.HeatSeries) {
902
- const x = re({
913
+ if (C && i.series[0].type !== I.HeatSeries) {
914
+ const B = le({
903
915
  config: i,
904
- layerInfo: n,
905
- commonStrings: o,
916
+ layerInfo: l,
917
+ commonStrings: n,
906
918
  numericFields: r,
907
919
  aggregationType: a
908
920
  });
909
- E(i, 1, x);
921
+ E(i, 1, B);
910
922
  }
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);
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);
914
926
  }
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);
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);
921
933
  });
922
- }, Y = (t, e) => {
934
+ }, X = (t, e) => {
923
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 = {
924
936
  ...e.markerSymbol,
925
937
  color: t.markerSymbol?.color
926
938
  });
927
- }, li = (t) => {
928
- const { config: e, seriesIndex: s, layerInfo: r, commonStrings: a } = t, i = e.series?.[s], n = ue(e);
929
- let o;
930
- if (W(e.series) === D.BarAndLineFromFields)
931
- o = a.axisLabels.values;
932
- else if (Ie(n)) {
933
- const m = i.query?.outStatistics?.[0]?.onStatisticField;
934
- m !== void 0 && m !== X(r.layer).idField && (o = w(r.layerFieldsInfo, m));
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));
935
947
  } else {
936
- const m = String(Ce(i)).trim().replace(/'/gu, "");
937
- o = he({
948
+ const g = String(Ce(i)).trim().replace(/'/gu, "");
949
+ n = he({
938
950
  queryObject: r.layer,
939
- fieldName: n,
940
- fieldValue: m ?? ""
941
- }) ?? m;
951
+ fieldName: l,
952
+ fieldValue: g ?? ""
953
+ }) ?? g;
942
954
  }
943
- return o ?? i.id;
944
- }, ni = (t, e) => {
945
- if (ne(e))
946
- Rt(t, e);
955
+ return n ?? i.id;
956
+ }, oi = (t, e) => {
957
+ if (oe(e))
958
+ Ot(t, e);
947
959
  else {
948
960
  e.orderOptions ??= {};
949
961
  const s = e.orderOptions?.data?.orderType;
950
- ie(e)[0] === J.customSort && s === V.Category && (e.orderOptions.data = {
951
- orderType: V.Category,
962
+ ae(e)[0] === ee.customSort && s === N.Category && (e.orderOptions.data = {
963
+ orderType: N.Category,
952
964
  orderBy: [...t]
953
965
  });
954
966
  }
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({
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({
959
971
  layerInfo: s,
960
972
  config: e,
961
973
  category: a,
962
974
  errorStrings: r
963
- }))), c;
975
+ }))), y;
964
976
  };
965
- function _(t, e, s) {
966
- const r = H(t, e, s), a = St(t), i = z(t);
977
+ function Z(t, e, s) {
978
+ const r = j(t, e, s), a = xt(t), i = z(t);
967
979
  return r === a || i;
968
980
  }
969
981
  function ve(t, e, s) {
970
- const r = re({
982
+ const r = le({
971
983
  config: t,
972
984
  layerInfo: e,
973
985
  commonStrings: s,
974
986
  numericFields: G(t),
975
987
  aggregationType: be(t)
976
- }), a = oe(1, t), i = z(t);
988
+ }), a = ue(1, t), i = z(t);
977
989
  return r === a || i;
978
990
  }
979
- function Pt(t, e) {
980
- const s = w(e.layerFieldsInfo, M(t)), r = oe(0, t), a = z(t);
991
+ function Mt(t, e) {
992
+ const s = D(e.layerFieldsInfo, Y(t)), r = ue(0, t), a = z(t);
981
993
  return s === r || a;
982
994
  }
983
- function ui(t) {
984
- return R(t.series[0]) ? t.series[0].binTemporalData ?? !0 : !1;
995
+ function ci(t) {
996
+ return k(t.series[0]) ? t.series[0].binTemporalData ?? !0 : !1;
985
997
  }
986
- function ci(t, e) {
998
+ function di(t, e) {
987
999
  e?.series.forEach((s) => {
988
- (s?.type === v.BarSeries || s?.type === v.LineSeries) && (s.binTemporalData = t, t ? s.temporalBinning = {
989
- unit: te.Day,
1000
+ (s?.type === I.BarSeries || s?.type === I.LineSeries) && (s.binTemporalData = t, t ? s.temporalBinning = {
1001
+ unit: se.Day,
990
1002
  size: 0,
991
- timeAggregationType: at.Start,
1003
+ timeAggregationType: rt.Start,
992
1004
  trimIncompleteTimeInterval: !0,
993
- nullPolicy: K.Null
1005
+ nullPolicy: M.Null
994
1006
  } : delete s.temporalBinning);
995
1007
  });
996
1008
  }
997
1009
  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,
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,
1006
1018
  Ks as H,
1007
- Us as I,
1008
- bs as J,
1009
- Cs as K,
1019
+ Qs as I,
1020
+ As as J,
1021
+ bs as K,
1010
1022
  vs as L,
1011
- As as M,
1012
- Qs as N,
1013
- zs as O,
1023
+ Is as M,
1024
+ zs as N,
1025
+ _s as O,
1014
1026
  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,
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,
1029
1041
  Ts as a2,
1030
- ks as a3,
1031
- Os as a4,
1032
- Ds as a5,
1042
+ Os as a3,
1043
+ Ds as a4,
1044
+ Ps as a5,
1033
1045
  ws as a6,
1034
1046
  Rs as a7,
1035
- Ns as a8,
1036
- Ps as a9,
1037
- kt as aa,
1038
- Es as ab,
1039
- Ms as ac,
1040
- $s as ad,
1041
- Ys as ae,
1042
- Ws as af,
1043
- Xs as ag,
1044
- Js as ah,
1045
- Zs as ai,
1046
- Hs as aj,
1047
- js as ak,
1048
- us as b,
1049
- cs as c,
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,
1050
1062
  G as d,
1051
- ue as e,
1052
- ps as f,
1063
+ _ as e,
1064
+ fs as f,
1053
1065
  be as g,
1054
- li as h,
1055
- ms as i,
1056
- ts as j,
1066
+ ni as h,
1067
+ gs as i,
1068
+ is as j,
1057
1069
  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
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
1073
1085
  };