@arcgis/charts-components 5.2.0-next.1 → 5.2.0-next.11

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 (294) hide show
  1. package/dist/cdn/{6PAONFHB.js → 24AOJE7B.js} +1 -1
  2. package/dist/cdn/{VOTZAPI3.js → 3KRPCKJZ.js} +1 -1
  3. package/dist/cdn/{Z7EBST4A.js → 3TBK72EK.js} +1 -1
  4. package/dist/cdn/{P3RM2ACY.js → 425PZ2QJ.js} +1 -1
  5. package/dist/cdn/{KC6CFXB7.js → 4PHYDOBF.js} +1 -1
  6. package/dist/cdn/{5MVNVHYG.js → 567CLBG4.js} +1 -1
  7. package/dist/cdn/{RKN64EJQ.js → 5IIF22XN.js} +1 -1
  8. package/dist/cdn/{5HQ2CJEQ.js → 5IN5WK2R.js} +1 -1
  9. package/dist/cdn/5LXX2PUM.js +2 -0
  10. package/dist/cdn/5NTIKQP4.js +2 -0
  11. package/dist/cdn/{UNUPCA4W.js → 5YEADAVZ.js} +1 -1
  12. package/dist/cdn/{7IV6GMF7.js → 6R7VSDDU.js} +1 -1
  13. package/dist/cdn/{FCXI523J.js → 76MOP26H.js} +1 -1
  14. package/dist/cdn/77A4T4FJ.js +2 -0
  15. package/dist/cdn/{CUJHGXNK.js → 7JIHGRTB.js} +1 -1
  16. package/dist/cdn/{CHQDKVVQ.js → 7YXTWBT4.js} +1 -1
  17. package/dist/cdn/{TZ4GOE2Q.js → AHYYQWKY.js} +1 -1
  18. package/dist/cdn/{FAQDMSUC.js → ASI7RDYV.js} +1 -1
  19. package/dist/cdn/{X6WA2KXK.js → AXS3UMQJ.js} +1 -1
  20. package/dist/cdn/BHUFE4DA.js +2 -0
  21. package/dist/cdn/{DYC3Q36R.js → CEWH3LQO.js} +1 -1
  22. package/dist/cdn/{B7DM7VT6.js → CTBQ5Y4Z.js} +1 -1
  23. package/dist/cdn/CVK7KFEC.js +2 -0
  24. package/dist/cdn/{BZCVDNC4.js → DFKVPDMJ.js} +16 -16
  25. package/dist/cdn/DJGEQ42V.js +2 -0
  26. package/dist/cdn/DL43NPDO.js +2 -0
  27. package/dist/cdn/{4OZZXXZF.js → E2DO2HQ6.js} +1 -1
  28. package/dist/cdn/E4LJWBRC.js +2 -0
  29. package/dist/cdn/EDSF5KGV.js +233 -0
  30. package/dist/cdn/EE3KEIAT.js +2 -0
  31. package/dist/cdn/EJCGZPIV.js +2 -0
  32. package/dist/cdn/{XMQCH4QI.js → ETSB7KD3.js} +1 -1
  33. package/dist/cdn/{P6SC5DD2.js → F6QRLYSF.js} +1 -1
  34. package/dist/cdn/{PTFRQF65.js → FBMA7FW4.js} +1 -1
  35. package/dist/cdn/{EUOPRFMU.js → FEKSPYHM.js} +1 -1
  36. package/dist/cdn/FUAA6IFR.js +4 -0
  37. package/dist/cdn/FWRMJQXY.js +2 -0
  38. package/dist/cdn/{7SNOZDAD.js → G5FULTB5.js} +1 -1
  39. package/dist/cdn/{45JPWIBI.js → GISGGO3Z.js} +1 -1
  40. package/dist/cdn/{CPPT5HUK.js → GQPOEX7B.js} +26 -26
  41. package/dist/cdn/{PKMZ6N6M.js → GYXK3DV7.js} +1 -1
  42. package/dist/cdn/{AT2NWWBG.js → H45LPCQ2.js} +1 -1
  43. package/dist/cdn/HW6MJJSX.js +2 -0
  44. package/dist/cdn/{RG3I5ORH.js → HZFHTWL6.js} +1 -1
  45. package/dist/cdn/{GWQJXXP3.js → I2EERAZ3.js} +1 -1
  46. package/dist/cdn/{MRTKZZTF.js → I5T7JUDH.js} +1 -1
  47. package/dist/cdn/IE3GLZJZ.js +2 -0
  48. package/dist/cdn/{V7MBHG4F.js → IL2FG26D.js} +1 -1
  49. package/dist/cdn/{YVVQVAJZ.js → JBPYGZPJ.js} +1 -1
  50. package/dist/cdn/JEOBO5JM.js +2 -0
  51. package/dist/cdn/{FJPGZEGK.js → KPWHYSA5.js} +1 -1
  52. package/dist/cdn/{JILAM6NH.js → KXUQJ6GE.js} +1 -1
  53. package/dist/cdn/{V76PIVCF.js → KZQFX7LH.js} +1 -1
  54. package/dist/cdn/{G6OHBBUT.js → L5DROI2A.js} +1 -1
  55. package/dist/cdn/LL7NH3VV.js +2 -0
  56. package/dist/cdn/{I2M6YAUU.js → LUMOL7ZP.js} +1 -1
  57. package/dist/cdn/{H6NH46AS.js → LYJFZA2M.js} +1 -1
  58. package/dist/cdn/{3FTJIVFE.js → MBSMC77K.js} +1 -1
  59. package/dist/cdn/{A5GIBV5W.js → MVGAATR7.js} +1 -1
  60. package/dist/cdn/NNZCIR7W.js +2 -0
  61. package/dist/cdn/NZXQ5BWP.js +2 -0
  62. package/dist/cdn/{UT4TYXFO.js → O4HUYRYL.js} +1 -1
  63. package/dist/cdn/{V2XJSJH4.js → O4LKWTBY.js} +1 -1
  64. package/dist/cdn/{KKWXEF5W.js → OW2DLJGU.js} +1 -1
  65. package/dist/cdn/{WASEMNYV.js → P2F2O6MH.js} +1 -1
  66. package/dist/cdn/P4UJJCPG.js +2 -0
  67. package/dist/cdn/{BBURKBKE.js → P56ROGSK.js} +1 -1
  68. package/dist/cdn/{RWEUTQWS.js → PMIWXHTG.js} +1 -1
  69. package/dist/cdn/PXIAM4CZ.js +2 -0
  70. package/dist/cdn/QPSJ6XOX.js +2 -0
  71. package/dist/cdn/R7HW5WVG.js +2 -0
  72. package/dist/cdn/{S6PJHEJ7.js → RJCJ3F5C.js} +1 -1
  73. package/dist/cdn/RKB6QZNW.js +2 -0
  74. package/dist/cdn/{EQVQRZHJ.js → S6LH7YS6.js} +1 -1
  75. package/dist/cdn/S74GCXXK.js +3 -0
  76. package/dist/cdn/{JNNB2DIA.js → SA22QZNW.js} +1 -1
  77. package/dist/cdn/{ZQCUJ7VE.js → SJVVFOAX.js} +1 -1
  78. package/dist/cdn/{M75ENKIU.js → SOKKWGPA.js} +1 -1
  79. package/dist/cdn/SQYOFBS6.js +2 -0
  80. package/dist/cdn/{MKQAQDRM.js → SVGAVKBQ.js} +1 -1
  81. package/dist/cdn/SX6SDBU7.js +2 -0
  82. package/dist/cdn/TTBRUBXY.js +2 -0
  83. package/dist/cdn/{7BEC5WZB.js → U5IM4KAQ.js} +1 -1
  84. package/dist/cdn/{UQPFMDJB.js → UE5VX2RL.js} +1 -1
  85. package/dist/cdn/{GCSGY6GL.js → UIRKQREJ.js} +1 -1
  86. package/dist/cdn/{URYNG6OA.js → UIY2PSG4.js} +1 -1
  87. package/dist/cdn/UNTIPIBS.js +2 -0
  88. package/dist/cdn/{DNMVB3A2.js → VIY3BCJZ.js} +1 -1
  89. package/dist/cdn/{XFZX5ULX.js → WHJU66P4.js} +1 -1
  90. package/dist/cdn/{F5Q73CFW.js → WJ2VDT6B.js} +1 -1
  91. package/dist/cdn/{LKY2A3U6.js → WPPMMVD5.js} +1 -1
  92. package/dist/cdn/WU3C7BQU.js +2 -0
  93. package/dist/cdn/WWO326JE.js +2 -0
  94. package/dist/cdn/{6JGLHOFY.js → XNWSVHA3.js} +1 -1
  95. package/dist/cdn/{O4M33ZPK.js → XOM6LSIW.js} +1 -1
  96. package/dist/cdn/{YZQ54BRI.js → XP4S2M7F.js} +1 -1
  97. package/dist/cdn/YALB4GSA.js +2 -0
  98. package/dist/cdn/YUF4ZSA5.js +2 -0
  99. package/dist/cdn/ZJHV3UVG.js +2 -0
  100. package/dist/cdn/{TORIY3OE.js → ZQ2WG55W.js} +1 -1
  101. package/dist/cdn/assets/common/t9n/messages.en.json +1 -1
  102. package/dist/cdn/index.js +1 -1
  103. package/dist/cdn/model/shared/setup-utils.js +2 -0
  104. package/dist/chart-rendering/common/data/utils/summarize-data/interfaces.d.ts +5 -1
  105. package/dist/chart-rendering/common/interfaces.d.ts +8 -8
  106. package/dist/chunks/axis-lines-symbol.js +4 -4
  107. package/dist/chunks/bar-chart-model.js +13 -13
  108. package/dist/chunks/bar-chart-series.js +1 -1
  109. package/dist/chunks/box-plot-data.js +5 -5
  110. package/dist/chunks/box-plot-model.js +18 -18
  111. package/dist/chunks/chart-model.js +170 -138
  112. package/dist/chunks/chart-ui-utils2.js +13 -13
  113. package/dist/chunks/class-breaks.js +21 -21
  114. package/dist/chunks/combo-bar-line-chart-model.js +2 -2
  115. package/dist/chunks/data.js +63 -63
  116. package/dist/chunks/gauge-model.js +14 -14
  117. package/dist/chunks/generate-x-axis-title.js +4 -4
  118. package/dist/chunks/heat-chart-model.js +19 -19
  119. package/dist/chunks/histogram-data.js +2 -2
  120. package/dist/chunks/histogram-model.js +11 -11
  121. package/dist/chunks/index2.js +1663 -1654
  122. package/dist/chunks/index3.js +39 -36
  123. package/dist/chunks/index4.js +10812 -680
  124. package/dist/chunks/index5.js +87 -10782
  125. package/dist/chunks/index6.js +63 -100
  126. package/dist/chunks/interfaces.js +3 -3
  127. package/dist/chunks/line-chart-model.js +2 -2
  128. package/dist/chunks/model-setter.js +11 -11
  129. package/dist/chunks/model-with-x-guides.js +6 -6
  130. package/dist/chunks/model-with-y-guides.js +2 -2
  131. package/dist/chunks/negative-values-stacked-to-baseline.js +2 -2
  132. package/dist/chunks/pie-chart-data.js +2 -2
  133. package/dist/chunks/pie-chart-model.js +2 -2
  134. package/dist/chunks/radar-chart-model.js +2 -2
  135. package/dist/chunks/rotated-state.js +1 -1
  136. package/dist/chunks/scatterplot-model.js +19 -19
  137. package/dist/chunks/serial-chart-data.js +564 -548
  138. package/dist/chunks/serial-chart-model.js +44 -44
  139. package/dist/chunks/series-length.js +2 -2
  140. package/dist/chunks/series.js +2 -2
  141. package/dist/chunks/store.js +5 -5
  142. package/dist/chunks/time-zone.js +1 -1
  143. package/dist/chunks/type-guards3.js +4 -4
  144. package/dist/chunks/utils.js +14 -14
  145. package/dist/chunks/web-component-utils.js +601 -491
  146. package/dist/chunks/x-bounds.js +4 -4
  147. package/dist/components/arcgis-chart/customElement.d.ts +48 -41
  148. package/dist/components/arcgis-chart/customElement.js +5081 -5123
  149. package/dist/components/arcgis-charts-action-bar/customElement.d.ts +4 -0
  150. package/dist/components/arcgis-charts-action-bar/customElement.js +19 -19
  151. package/dist/components/arcgis-charts-config-axis/customElement.js +2 -2
  152. package/dist/components/arcgis-charts-config-bar-chart/customElement.js +2 -2
  153. package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +6 -6
  154. package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +35 -37
  155. package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +29 -29
  156. package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +5 -8
  157. package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
  158. package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +4 -4
  159. package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +35 -36
  160. package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +2 -2
  161. package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +14 -17
  162. package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +14 -16
  163. package/dist/components/arcgis-charts-config-colors/customElement.js +1 -1
  164. package/dist/components/arcgis-charts-config-create-flow/customElement.js +21 -21
  165. package/dist/components/arcgis-charts-config-format/customElement.js +28 -28
  166. package/dist/components/arcgis-charts-config-format-popover/customElement.js +7 -10
  167. package/dist/components/arcgis-charts-config-general/customElement.js +2 -2
  168. package/dist/components/arcgis-charts-config-guide/customElement.js +13 -13
  169. package/dist/components/arcgis-charts-config-guide-popover/customElement.js +8 -11
  170. package/dist/components/arcgis-charts-config-heat-chart/customElement.js +1 -1
  171. package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +5 -5
  172. package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +15 -16
  173. package/dist/components/arcgis-charts-config-histogram/customElement.js +2 -2
  174. package/dist/components/arcgis-charts-config-histogram-data/customElement.js +7 -7
  175. package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +26 -27
  176. package/dist/components/arcgis-charts-config-line-chart/customElement.js +2 -2
  177. package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +3 -3
  178. package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +29 -31
  179. package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +7 -7
  180. package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +4 -5
  181. package/dist/components/arcgis-charts-config-pie-chart/customElement.js +1 -1
  182. package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +35 -35
  183. package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +38 -40
  184. package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +7 -7
  185. package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +5 -8
  186. package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +2 -2
  187. package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +75 -75
  188. package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +13 -14
  189. package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +8 -10
  190. package/dist/docs/api.json +1 -1
  191. package/dist/docs/docs.json +1 -1
  192. package/dist/docs/vscode.html-custom-data.json +1 -1
  193. package/dist/docs/web-types.json +1 -1
  194. package/dist/index.d.ts +70 -62
  195. package/dist/index.js +476 -471
  196. package/dist/json-schema/index.d.ts +59 -2
  197. package/dist/model/chart-model/chart-model.d.ts +2 -1
  198. package/dist/model/interfaces/common.d.ts +0 -2
  199. package/dist/model/properties/data-tooltip-font-size.d.ts +20 -0
  200. package/dist/model/properties/rotated-state.d.ts +1 -1
  201. package/dist/{model.js → model/shared/setup-utils.js} +12 -12
  202. package/dist/spec/rest-js-object-literals.d.ts +2 -2
  203. package/dist/spec/rest-js-types.d.ts +22 -8
  204. package/dist/spec/web-chart.d.ts +8 -2
  205. package/dist/utils/chart-config/converter/index.js +723 -0
  206. package/dist/utils/chart-config/utils/index.d.ts +31 -0
  207. package/dist/utils/chart-config/validator/index.d.ts +1 -0
  208. package/dist/utils/chart-config/validator/interfaces.d.ts +3 -3
  209. package/dist/utils/defaults/index.d.ts +1 -2
  210. package/dist/utils/errors/index.d.ts +1 -1
  211. package/dist/utils/layer/index.d.ts +3 -3
  212. package/dist/utils/layer/inline-conversion/interfaces.d.ts +0 -2
  213. package/dist/utils/layer/query-parser/index.d.ts +3 -3
  214. package/dist/utils/localization/interfaces.d.ts +4 -0
  215. package/dist/utils/misc/index.d.ts +2 -3
  216. package/dist/utils/types/index.d.ts +1 -5
  217. package/package.json +8 -6
  218. package/dist/cdn/45PJ5TQL.js +0 -2
  219. package/dist/cdn/47HHRDX4.js +0 -2
  220. package/dist/cdn/6LQYOBAL.js +0 -2
  221. package/dist/cdn/6SRISPQN.js +0 -3
  222. package/dist/cdn/74JAZF7U.js +0 -2
  223. package/dist/cdn/7YBKGD3V.js +0 -2
  224. package/dist/cdn/ATIARKAU.js +0 -2
  225. package/dist/cdn/CAJVNPHZ.js +0 -2
  226. package/dist/cdn/CXQOEN77.js +0 -2
  227. package/dist/cdn/D23GGWFM.js +0 -2
  228. package/dist/cdn/EXTKNE2L.js +0 -2
  229. package/dist/cdn/FT2K3J7O.js +0 -2
  230. package/dist/cdn/GUH6CQE6.js +0 -2
  231. package/dist/cdn/HJHMEVMB.js +0 -2
  232. package/dist/cdn/HUCSTT64.js +0 -2
  233. package/dist/cdn/HX4236ZL.js +0 -2
  234. package/dist/cdn/IWVS6SKP.js +0 -2
  235. package/dist/cdn/KV4ZPVWQ.js +0 -2
  236. package/dist/cdn/MOMKSNIZ.js +0 -2
  237. package/dist/cdn/NS3THLCD.js +0 -2
  238. package/dist/cdn/NS7OCROO.js +0 -2
  239. package/dist/cdn/NZR4L5AA.js +0 -2
  240. package/dist/cdn/OVM5QF7Q.js +0 -2
  241. package/dist/cdn/OY6UOUYX.js +0 -2
  242. package/dist/cdn/P74SXC5B.js +0 -2
  243. package/dist/cdn/PEZCCXQ7.js +0 -2
  244. package/dist/cdn/PYKHO4QI.js +0 -2
  245. package/dist/cdn/RKKWMNWU.js +0 -2
  246. package/dist/cdn/S3BC57BJ.js +0 -4
  247. package/dist/cdn/TTDZKISK.js +0 -2
  248. package/dist/cdn/TXSWWAOF.js +0 -2
  249. package/dist/cdn/YKGZVYK2.js +0 -2
  250. package/dist/cdn/YYK7SPXC.js +0 -2
  251. package/dist/chunks/index7.js +0 -66
  252. /package/dist/cdn/{ABIVSH72.js → 2OHFSVV5.js} +0 -0
  253. /package/dist/cdn/{TSI3C3OV.js → 2XXW3WF3.js} +0 -0
  254. /package/dist/cdn/{XWKBJDZT.js → 3JYZJUOM.js} +0 -0
  255. /package/dist/cdn/{NHDVOYQ2.js → 3TZEMBXR.js} +0 -0
  256. /package/dist/cdn/{UAZ34KDJ.js → 4OH4NSIW.js} +0 -0
  257. /package/dist/cdn/{XIJ5VLER.js → 5SIAOUPO.js} +0 -0
  258. /package/dist/cdn/{75P3QRL4.js → 7QXRWMUN.js} +0 -0
  259. /package/dist/cdn/{4QQVKRJ5.js → AASL4RKT.js} +0 -0
  260. /package/dist/cdn/{PH6UOHRS.js → ANN3O54W.js} +0 -0
  261. /package/dist/cdn/{N6OT5IBC.js → BDGHBTPU.js} +0 -0
  262. /package/dist/cdn/{ZFM5RGWD.js → FFS73X36.js} +0 -0
  263. /package/dist/cdn/{5AOYADA3.js → FOYOG3G7.js} +0 -0
  264. /package/dist/cdn/{53FG76LL.js → FWAXKDYV.js} +0 -0
  265. /package/dist/cdn/{B4KT2HUE.js → H3EXGCE7.js} +0 -0
  266. /package/dist/cdn/{FLO3N6JD.js → I6UPUSLQ.js} +0 -0
  267. /package/dist/cdn/{WVRBLV5L.js → IVLVCLDE.js} +0 -0
  268. /package/dist/cdn/{NG2IHVZ4.js → IYA7HQMS.js} +0 -0
  269. /package/dist/cdn/{I5VHQW7B.js → L47EGLUH.js} +0 -0
  270. /package/dist/cdn/{OYHKUGS6.js → LROW4Y6O.js} +0 -0
  271. /package/dist/cdn/{DIKQ7BPQ.js → MK5ZYSOD.js} +0 -0
  272. /package/dist/cdn/{RDTBZUT7.js → N4L5KE23.js} +0 -0
  273. /package/dist/cdn/{4JQ2RRLY.js → N5ZUO6F3.js} +0 -0
  274. /package/dist/cdn/{2HGBRW4I.js → OFWEHJDH.js} +0 -0
  275. /package/dist/cdn/{M4AQLWZU.js → OXYJKZEP.js} +0 -0
  276. /package/dist/cdn/{O6SNP6QE.js → QR2OOC4D.js} +0 -0
  277. /package/dist/cdn/{4E7C5QPS.js → RSNZMJ6I.js} +0 -0
  278. /package/dist/cdn/{CODAXMWM.js → S3ZSZXYG.js} +0 -0
  279. /package/dist/cdn/{I36OAVW3.js → SERX6V5M.js} +0 -0
  280. /package/dist/cdn/{AJBEE7WE.js → SSQ3VCZ2.js} +0 -0
  281. /package/dist/cdn/{3V4HRXIT.js → TFPQDMER.js} +0 -0
  282. /package/dist/cdn/{2X75KJPF.js → ULWJ57VT.js} +0 -0
  283. /package/dist/cdn/{LNF44ZGQ.js → UYXCGSXU.js} +0 -0
  284. /package/dist/cdn/{OA7FHTCA.js → VDKFC44J.js} +0 -0
  285. /package/dist/cdn/{YIIPYKTL.js → VRZ2SY6M.js} +0 -0
  286. /package/dist/cdn/{VFM2EV3M.js → WAINRCCJ.js} +0 -0
  287. /package/dist/cdn/{MHG42BA5.js → WNKDEOFZ.js} +0 -0
  288. /package/dist/cdn/{DD4QUBOF.js → X2LW7GTR.js} +0 -0
  289. /package/dist/cdn/{N3VOUI25.js → XDMGH7YU.js} +0 -0
  290. /package/dist/cdn/{7ILH7ZG2.js → XY4TRZCG.js} +0 -0
  291. /package/dist/cdn/{66KSEDOR.js → XYKXBWIT.js} +0 -0
  292. /package/dist/cdn/{O2ERVMSN.js → Y6ZCTPJW.js} +0 -0
  293. /package/dist/cdn/{NFDXH5B3.js → YKDW7ZW3.js} +0 -0
  294. /package/dist/cdn/{SGOYJFLO.js → ZBIVDGNH.js} +0 -0
@@ -1,174 +1,174 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
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, d as Fe, e as qe, f as Ve, j as ce } from "./utils.js";
6
- import { w as R, bW as Ne, bl as Re, x as ke, Y, c4 as Oe, c7 as De, p as we, aH as le, c0 as Pe, d as Ee, aG as Me, I as $e, a7 as We, bj as Ye, W as Xe, e as je, bm as He, c8 as Ke, v as Ue, c9 as de, bK as Qe, ca as ze, bG as Ge, B as _e, c5 as Ze, an as X, a6 as he, c3 as ne, b9 as Je, k as ee, bo as et, bs as ye, ba as H, bg as me } from "./index2.js";
7
- import { a as M, c as Te, g as Q, e as ge, f 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 { a as rt } from "./index4.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 "./index6.js";
13
- import { c as se, e as ot } from "./type-guards.js";
3
+ import { cloneDeep as re, isEmpty as qe, memoize as Ve } from "lodash-es";
4
+ import { S as ee } from "./common.js";
5
+ import { s as N, u as E, g as le, a as he, b as Ne, c as ke, d as de } from "./utils.js";
6
+ import { w as k, bY as Re, bm as Oe, x as De, Y as K, cr as we, cq as Pe, p as Ee, aH as ne, c2 as Me, d as $e, aG as Ye, I as We, a7 as Xe, bk as He, W as je, e as Ue, bo as Ke, c_ as Qe, v as ze, d5 as ye, bM as _e, d6 as Ge, bI as Ze, B as Je, d2 as et, an as X, a6 as xe, cS as oe, b9 as tt, ba as ue, k as te, bq as st, bu as me, bb as j, bh as ge } from "./index2.js";
7
+ import { a as $, s as Te, g as Q, b as pe, c as it } from "./data.js";
8
+ import { u as v, r as L, k as at, n as V, m as U, p as rt, t as lt, s as se } from "./chart-object-literals.js";
9
+ import { i as nt, R as ot } from "./rest-js-object-literals.js";
10
+ import { i as z } from "./index4.js";
14
11
  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 { b as ft, a 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 "./index5.js";
19
- const ts = (t) => {
12
+ import { C as w, F as M, d as D } from "./index3.js";
13
+ import { h as Be, i as O, j as ft, n as St, g as b, m as A, e as Fe } from "./index5.js";
14
+ import { convertChartSpec as Ft } from "../utils/chart-config/converter/index.js";
15
+ import { c as ie, e as ht } from "./type-guards.js";
16
+ import { g as Ce } from "./series-types.js";
17
+ import { g as ce } from "./utils2.js";
18
+ import { a as xt, b as Tt } 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;
23
- }, Tt = (t) => {
22
+ return k(s) && (e = s.temporalBinning?.size), e;
23
+ }, Bt = (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) => {
38
+ return k(s) && (e = s.temporalBinning?.nullPolicy), e;
39
+ }, Ct = (t, e) => {
40
40
  e?.series?.forEach((s) => {
41
- R(s) && (s.temporalBinning ??= {}, s.temporalBinning.size = t);
41
+ k(s) && (s.temporalBinning ??= {}, s.temporalBinning.size = t);
42
42
  }), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
43
- }, Bt = (t, e) => {
43
+ }, bt = (t, e) => {
44
44
  e?.series?.forEach((s) => {
45
- R(s) && (s.temporalBinning ??= {}, s.temporalBinning.nullPolicy = t);
45
+ k(s) && (s.temporalBinning ??= {}, s.temporalBinning.nullPolicy = t);
46
46
  }), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
47
- }, rs = (t, e) => {
47
+ }, ns = (t, e) => {
48
48
  e.series?.forEach((s) => {
49
- R(s) && (s.temporalBinning ??= {}, s.temporalBinning.unit = t);
49
+ k(s) && (s.temporalBinning ??= {}, s.temporalBinning.unit = t);
50
50
  }), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
51
- }, ls = (t, e) => {
51
+ }, os = (t, e) => {
52
52
  e.series?.forEach((s) => {
53
- R(s) && (s.temporalBinning ??= {}, s.temporalBinning.timeAggregationType = t);
53
+ k(s) && (s.temporalBinning ??= {}, s.temporalBinning.timeAggregationType = t);
54
54
  }), N({ config: e, value: null, axisIndex: 1, isMax: !1 }), N({ config: e, value: null, axisIndex: 1, isMax: !0 });
55
- }, ns = (t, e) => {
55
+ }, us = (t, e) => {
56
56
  e.series?.forEach((s) => {
57
- R(s) && (s.temporalBinning ??= {}, s.temporalBinning.trimIncompleteTimeInterval = t);
57
+ k(s) && (s.temporalBinning ??= {}, s.temporalBinning.trimIncompleteTimeInterval = t);
58
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
+ }, cs = (t) => {
60
+ Ct(0, t);
61
61
  };
62
- function us(t, e) {
62
+ function ds(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 ys(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 ms(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) {
78
+ function gs(t, e) {
79
79
  return e != null || Be(t);
80
80
  }
81
- async function ms(t) {
81
+ async function ps(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) || ht(e) ? e && ie(s) && (a = await Oe({ config: e, layer: s, abortSignal: r })) : a = !0, a;
85
85
  }
86
- async function bt(t) {
86
+ async function vt(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,
93
+ runtimeDataFilters: l,
94
+ ignoreViewExtent: n,
95
+ setTimeBinningInfoWhenNotProvided: y,
96
+ returnFeaturesExtent: g,
97
97
  chartLimits: F
98
98
  } = t;
99
- let l = [], g;
100
- const d = ae(s), y = d.series[0], u = je({
99
+ let o = [], c;
100
+ const m = re(s), d = m.series[0], u = Ue({
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) && He({
107
- xAxisValueFormatType: Ke(d),
108
- setTimeBinningInfoWhenNotProvided: c,
109
- seriesConfig: y,
106
+ if (u.outStatistics?.[0]?.outStatisticFieldName && (u.outStatistics[0].outStatisticFieldName = ut.outStatistics.outStatisticFieldName), k(d) && Ke({
107
+ xAxisValueFormatType: Qe(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
+ }) && ze(r, e)) {
112
+ const { temporalBinning: p, x: T } = d, { uniqueQuery: C } = ye({
113
+ chartConfig: m,
114
114
  queryConfig: u,
115
115
  queryObject: e,
116
- setTimeBinningInfoWhenNotProvided: c,
117
- returnFeaturesExtent: m,
116
+ setTimeBinningInfoWhenNotProvided: y,
117
+ returnFeaturesExtent: g,
118
118
  chartLimits: F
119
119
  }), h = s.axes?.[0].valueFormat.type === v.DateAxisFormat ? s.axes[0].valueFormat.intlOptions.timeZone : void 0;
120
- g = await Qe({
120
+ c = await _e({
121
121
  queryObject: e,
122
- dateField: B,
122
+ dateField: T,
123
123
  splitByField: r,
124
124
  queryConfig: C,
125
125
  axisTimeZone: h,
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((S) => S[r]).filter((S) => S !== void 0)), x;
135
135
  })
136
136
  ).values()
137
137
  );
138
138
  } else {
139
- const { uniqueQuery: p } = de({
140
- chartConfig: d,
139
+ const { uniqueQuery: p } = ye({
140
+ chartConfig: m,
141
141
  queryObject: e,
142
142
  queryConfig: u,
143
- setTimeBinningInfoWhenNotProvided: c,
144
- returnFeaturesExtent: m,
143
+ setTimeBinningInfoWhenNotProvided: y,
144
+ returnFeaturesExtent: g,
145
145
  chartLimits: F
146
- }), { elementCount: B } = await ze({
147
- chartConfig: d,
146
+ }), { elementCount: T } = await Ge({
147
+ chartConfig: m,
148
148
  queryObject: e,
149
149
  queryConfig: u,
150
150
  behaviorAfterLimit: F?.behaviorAfterLimit,
151
151
  numberMaxOfFeaturesToFetch: p.num,
152
152
  abortSignal: i
153
153
  });
154
- g = await Ge({
154
+ c = await Ze({
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 It(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 = Ce([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 qt(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 = M.nullValue : s === "" ? i.id = M.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 Vt(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,
222
+ runtimeDataFilters: l,
223
+ ignoreViewExtent: n,
224
+ setTimeBinningInfoWhenNotProvided: y,
225
+ returnFeaturesExtent: g,
226
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 = Y(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 = We(u, p), C = B ? Ye(B) : !1, h = await bt({
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 === w.BoxPlotMonoFieldAndSplitBy || d === w.BoxPlotMultiFieldsAndSplitBy || d === w.BoxPlotMonoFieldAndCategoryAndSplitBy || d === w.BarAndLineSplitBy || d === w.BarAndLineSplitByNoAggregation) {
234
+ const u = Ye(s.series[0]?.query?.where), p = We(r), T = Xe(u, p), C = T ? He(T) : !1, h = await vt({
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,
239
+ runtimeDataFilters: l,
240
+ ignoreViewExtent: n,
241
+ setTimeBinningInfoWhenNotProvided: y,
242
+ returnFeaturesExtent: g,
243
243
  chartLimits: F,
244
244
  errorStrings: a
245
245
  }), { allValues: f } = h;
246
- if ({ preFetchedQueryResponse: g } = h, f.length > 0) {
247
- const k = At(s, C), T = vt({
246
+ if ({ preFetchedQueryResponse: c } = h, f.length > 0) {
247
+ const R = It(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((S) => {
253
+ (x.get(S) ?? []).forEach((q) => {
254
254
  s.series.push(
255
- It({
255
+ qt({
256
256
  chartConfig: s,
257
- seriesTemplate: l,
258
- missingValue: L,
257
+ seriesTemplate: o,
258
+ missingValue: q,
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
- function qt(t, e) {
270
- e && !Be(e) && (e = Ee({ chartConfig: e, queryObject: t }));
269
+ function Nt(t, e) {
270
+ e && !Be(e) && (e = $e({ chartConfig: e, queryObject: t }));
271
271
  }
272
- async function gs(t) {
272
+ async function fs(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,
279
+ queryObject: l,
280
+ abortSignal: n,
281
+ runtimeDataFilters: y,
282
+ ignoreViewExtent: g,
283
283
  setTimeBinningInfoWhenNotProvided: F,
284
- returnFeaturesExtent: l,
285
- chartLimits: g,
286
- errorStrings: d
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 && (Nt(s, d), d = await Ft(d, s, void 0, n), r && l && (u = await Vt({
290
290
  updateSplitBySeries: a,
291
- config: y,
292
- queryObject: n,
293
- errorStrings: d,
294
- abortSignal: o,
295
- runtimeDataFilters: c,
296
- ignoreViewExtent: m,
291
+ config: d,
292
+ queryObject: l,
293
+ errorStrings: m,
294
+ abortSignal: n,
295
+ runtimeDataFilters: y,
296
+ ignoreViewExtent: g,
297
297
  setTimeBinningInfoWhenNotProvided: F,
298
- returnFeaturesExtent: l,
299
- chartLimits: g
300
- })), y = Ne(y, i)), { alteredConfig: y, preFetchedQueryResponse: u };
298
+ returnFeaturesExtent: o,
299
+ chartLimits: c
300
+ })), d = Re(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 = je({ key: Je.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 Ss(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 = Y(s?.series), F = /* @__PURE__ */ new Set();
315
- switch (c) {
314
+ const n = De(e), y = Ce(s?.series), g = K(s?.series), F = /* @__PURE__ */ new Set();
315
+ switch (y) {
316
316
  case v.ComboLineAndBarSeries:
317
317
  case v.BarSeries:
318
318
  case v.RadarSeries:
319
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({
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 === w.BarAndLineSplitByNoAggregation && (m = `${m}_${ne({ where: c.query?.where, keepSurroundingQuotes: !1, escape: !1 })}`), n.some(
324
+ (u) => Me({
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
+ ) && F.add(c));
331
331
  }
332
332
  });
333
333
  break;
334
334
  }
335
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({
336
+ if (we(s)) {
337
+ const c = Pe(s);
338
+ s.series.forEach((m) => {
339
+ let d, u;
340
+ m.type === v.BoxPlotSeries ? (d = e.dataItems, u = d?.some(
341
+ (p) => Ee({
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 === v.LineSeries && (d = e.meanLines, u = d?.some(
347
+ (p) => kt(p, m.query?.where)
348
+ )), u && F.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(F.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 Fs = (t) => t.hideEmptyRowsAndColumns, hs = (t, e) => {
360
360
  t.hideEmptyRowsAndColumns = e;
361
- }, Fs = (t, e) => {
361
+ }, xs = (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
+ }, Ts = (t) => t.series[0].heatRulesType, Bs = (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
+ }, Cs = (t) => t.series[0].gradientRules, bs = (t) => {
368
+ const { yField: e, config: s, layerInfo: r } = t, { layerFieldsInfo: a } = r, i = ce(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 ?? "", As = (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
+ }, vs = (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
+ }, Ls = (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" ? V.Category : V.YValue, r = ae(e)[0], a = e.axes?.[1]?.valueFormat?.type === "category" ? V.Category : V.YValue, i = ae(e)[1], l = {
388
388
  ...e.orderOptions.data ?? {},
389
389
  orderType: V.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 === V.Category && (l.orderByX = [...t]), i === ee.customSort && a === V.Category && (l.orderByY = [...t]), Object.keys(l).length > 1 && (e.orderOptions.data = l);
392
+ }, qs = (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
+ }, ks = (t) => t.series[0].gridLine?.color, Rs = (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
+ }, Os = (t) => t.legend?.position ?? at.Bottom, Ds = (t) => t.series[0].query?.outStatistics?.[0]?.onStatisticField, ws = (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: `${L.Count}_${e}`,
408
+ statisticType: L.Count
409
409
  }
410
410
  ]
411
- }, n && s.title && (s.title.content.text = j(s, r, a));
412
- }, Ds = (t) => t.series[0].query?.outStatistics?.[0].statisticType ?? q.Count, ws = (t) => {
413
- const { aggregationType: e, config: s, layerInfo: r, commonStrings: a } = t, i = s.series[0]?.query?.outStatistics?.[0], n = _(s, r, a);
414
- i && e !== q.NoAggregation && (i.statisticType = e, i.outStatisticFieldName = `${e}_${i.onStatisticField}`), (e === q.Count || e === q.Sum) && kt(K.Zero, s), n && s.title && (s.title.content.text = j(s, r, a));
415
- }, Ps = (t) => t.nullPolicy, kt = (t, e) => {
411
+ }, l && s.title && (s.title.content.text = H(s, r, a));
412
+ }, Ps = (t) => t.series[0].query?.outStatistics?.[0].statisticType ?? L.Count, Es = (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 !== L.NoAggregation && (i.statisticType = e, i.outStatisticFieldName = `${e}_${i.onStatisticField}`), (e === L.Count || e === L.Sum) && Dt(U.Zero, s), l && s.title && (s.title.content.text = H(s, r, a));
415
+ }, Ms = (t) => t.nullPolicy, Dt = (t, e) => {
416
416
  e.nullPolicy = t;
417
- }, Es = (t) => t.series[0].emptyCells, Ms = (t, e) => {
417
+ }, $s = (t) => t.series[0].emptyCells, Ys = (t, e) => {
418
418
  e.series[0].emptyCells = t;
419
- }, $s = (t) => t.series[0].emptyCells?.text, Ws = (t, e) => {
419
+ }, Ws = (t) => t.series[0].emptyCells?.text, Xs = (t, e) => {
420
420
  e.series[0].emptyCells ? e.series[0].emptyCells.text = t : e.series[0].emptyCells = { text: t };
421
- }, Ys = (t) => t.includeLeapDay, Xs = (t, e) => {
421
+ }, Hs = (t) => t.includeLeapDay, js = (t, e) => {
422
422
  e.includeLeapDay = t;
423
- }, js = (t) => t.series[0].emptyCells?.symbol, Hs = (t, e) => {
423
+ }, Us = (t) => t.series[0].emptyCells?.symbol, Ks = (t, e) => {
424
424
  e.series[0].emptyCells ? e.series[0].emptyCells.symbol = t : e.series[0].emptyCells = { symbol: t };
425
425
  };
426
- function Ks(t) {
426
+ function Qs(t) {
427
427
  return t.viewType;
428
428
  }
429
- function Us(t, e) {
430
- Ze(e) || (e.viewType = t);
429
+ function zs(t, e) {
430
+ et(e) || (e.viewType = t);
431
431
  }
432
- function Qs(t) {
433
- return t.series[0].classBreaksRules?.breaksCount ?? U.classBreaks.breaksCount;
432
+ function _s(t) {
433
+ return t.series[0].classBreaksRules?.breaksCount ?? M.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 Gs(t, e) {
436
+ e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.breaksCount = t ?? M.classBreaks.breaksCount : e.series[0].classBreaksRules = {
437
+ breaksCount: t ?? M.classBreaks.breaksCount
438
438
  };
439
439
  }
440
- function Gs(t) {
440
+ function Zs(t) {
441
441
  return t.series[0].classBreaksRules?.classificationMethod;
442
442
  }
443
- function _s(t, e) {
443
+ function Js(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 ?? M.classBreaks.breaksCount;
447
447
  }
448
- function Zs(t, e) {
448
+ function ei(t, e) {
449
449
  e.firstDayOfWeek = t;
450
450
  }
451
- function Js(t) {
451
+ function ti(t) {
452
452
  return t.firstDayOfWeek;
453
453
  }
454
- function ei(t) {
454
+ function si(t) {
455
455
  return t.series[0].classBreaksRules?.colorRampInfo?.name;
456
456
  }
457
- function ti(t, e) {
457
+ function ii(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 ai(t) {
469
469
  return t.series[0].classBreaksRules?.colorRampInfo?.flipped ?? !1;
470
470
  }
471
- function ii(t, e) {
471
+ function ri(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 Y(t) {
482
+ const { seriesIndex: e, xAxisField: s, aggregationType: r, config: a, layerInfo: i, commonStrings: l } = t, n = X(i?.layer).idField;
483
+ let y;
484
+ const g = a.series[e ?? 0];
485
+ let F = !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
+ F = u.slice(0, e).every((p) => b(p)), o = u.slice(0, e).every((p) => A(p)), c = u.slice(0, e).every((p) => Fe(p));
489
489
  } else
490
- F = b(m), l = A(m), g = pe(m);
491
- F ? c = dt({
492
- commonStrings: n,
490
+ F = b(g), o = A(g), c = Fe(g);
491
+ F ? y = dt({
492
+ commonStrings: l,
493
493
  seriesIndex: e,
494
- objectIDField: o
495
- }) : l ? c = yt({
496
- commonStrings: n,
494
+ objectIDField: n
495
+ }) : o ? y = yt({
496
+ commonStrings: l,
497
497
  seriesIndex: e,
498
- objectIDField: o
499
- }) : g ? c = mt(n, o) : c = gt({
498
+ objectIDField: n
499
+ }) : c ? y = mt(l, n) : y = gt({
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 ?? v.Text,
511
+ content: { ...y.dataLabels?.content, ...m?.content, type: nt.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 !== L.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 = Y(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) && ue({ chartConfig: a })) {
528
+ let u = Bt(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 j(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 H(t, e, s) {
537
+ const { layerFieldsInfo: r } = e, { idField: a, isTraditionalTypeOID: i } = X(e.layer), l = $(t), n = G(t), y = Ae(t), g = _(t), F = i && (n.length === 0 || n.includes(a)), o = ct(y, s), c = F ? "" : n.map((h) => D(r ?? [], h)).join(", "), m = D(r ?? [], l), d = D(r ?? [], g), u = t.series.some((h) => O(h)), p = u ? "category" : "xAxisField", T = m;
541
538
  let C = "";
542
539
  if (Te({
543
- fieldName: n,
544
- numericFields: o,
540
+ fieldName: l,
541
+ numericFields: n,
545
542
  fieldList: r
546
543
  }))
547
544
  C = P(s.titleLabels.aggrTypeOfAggrFields, {
548
- aggregationType: l,
549
- aggregationFields: g
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 === L.NoAggregation) {
549
+ const h = F ? a : c;
550
+ if (g === "") {
554
551
  const f = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
555
552
  C = P(s.titleLabels[f], {
556
553
  aggregationType: h,
557
- [p]: B
554
+ [p]: T
558
555
  });
559
556
  } else {
560
557
  const f = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
561
558
  C = P(s.titleLabels[f], {
562
559
  aggregationType: h,
563
- [p]: B,
564
- splitByField: y
560
+ [p]: T,
561
+ splitByField: d
565
562
  });
566
563
  }
567
- } else if (c === q.Count)
568
- if (m === "") {
564
+ } else if (y === L.Count)
565
+ if (g === "") {
569
566
  const h = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
570
567
  C = P(s.titleLabels[h], {
571
- aggregationType: l,
572
- [p]: B
568
+ aggregationType: o,
569
+ [p]: T
573
570
  });
574
571
  } else {
575
572
  const h = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
576
573
  C = P(s.titleLabels[h], {
577
- aggregationType: l,
578
- [p]: B,
579
- splitByField: y
574
+ aggregationType: o,
575
+ [p]: T,
576
+ splitByField: d
580
577
  });
581
578
  }
582
- else if (m !== "") {
579
+ else if (g !== "") {
583
580
  const h = u ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
584
581
  C = P(s.titleLabels[h], {
585
- aggregationType: l,
586
- aggregationField: g,
587
- [p]: B,
588
- splitByField: y
582
+ aggregationType: o,
583
+ aggregationField: c,
584
+ [p]: T,
585
+ splitByField: d
589
586
  });
590
- } else if (o.length > 0) {
587
+ } else if (n.length > 0) {
591
588
  const h = u ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
592
589
  C = P(s.titleLabels[h], {
593
- aggregationType: l,
594
- aggregationFields: g,
595
- [p]: B
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 be = (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
+ }) ?? "", Ae = (t) => t?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? L.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 tt(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,83 +617,87 @@ const Ce = (t) => le({
620
617
  }
621
618
  return e.filter((s) => s !== "");
622
619
  };
623
- function Ot(t) {
620
+ function ve(t) {
621
+ const { splitByField: e, numericFields: s, layer: r, seriesIndex: a } = t, i = X(r).idField ?? "";
622
+ return e === "" ? s[a] ?? i : s[0] ?? i;
623
+ }
624
+ function wt(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;
629
- })), 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);
627
+ s === L.Count ? i = !0 : s === L.NoAggregation && (i = e.every((y) => {
628
+ const g = a.layerFieldsInfo.find((F) => F.name === y);
629
+ return g !== void 0 ? ge(g) : !1;
630
+ })), de(r, 1, i);
631
+ const l = r.series.some((y) => b(y)), n = r.series.some((y) => A(y));
632
+ if (l || n) {
633
+ const y = $(r), g = a.layerFieldsInfo.find((o) => o.name === y), F = g !== void 0 && ge(g);
634
+ de(r, 0, F);
634
635
  }
635
636
  }
636
- const ie = (t) => {
637
+ const ae = (t) => {
637
638
  let e;
638
- if (ne(t)) {
639
+ if (oe(t)) {
639
640
  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)];
641
+ e = [pe(s, a), pe(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 ?? V.Category, r = t.orderOptions?.data && "orderBy" in t.orderOptions.data ? t.orderOptions.data.orderBy : rt.Ascending;
644
+ e = [it(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 Pt(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 = Y({
651
652
  config: a,
652
653
  xAxisField: e,
653
654
  aggregationType: r,
654
655
  layerInfo: i,
655
656
  seriesIndex: 0,
656
- commonStrings: n
657
+ commonStrings: l
657
658
  }), F = 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,
668
+ name: l.axisLabels.values,
669
+ x: te,
669
670
  y: F
670
- }, g = [];
671
- for (const y of s)
672
- g.push({
673
- onStatisticField: y,
674
- outStatisticFieldName: `${y}_0`.toUpperCase(),
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)) && W(l, d), a.colorMatch || (O(d) && O(l) ? l.fillSymbol = d.fillSymbol : (b(l) && b(d) || A(l) && A(d)) && (l.lineSymbol = d.lineSymbol, l.markerSymbol = d.markerSymbol), c = !0), l.id = d.id, d.name !== m.name && (l.name = d.name)), a.series.length === 1 && ((b(l) || A(l)) && W(l, a.series[0]), a.colorMatch || (O(l) ? l.fillSymbol = a.series[0].fillSymbol : (b(l) || A(l)) && (l.lineSymbol = a.series[0].lineSymbol, l.markerSymbol = a.series[0].markerSymbol), c = !0)), a.colorMatch = !c, [l];
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)) && W(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)) && W(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 = [];
682
+ function Ie(t) {
683
+ const { xAxisField: e, numericFields: s, aggregationType: r, config: a, layerInfo: i, commonStrings: l } = t, { layerFieldsInfo: n } = i, y = X(i.layer).idField, g = [];
683
684
  let F = !1;
684
685
  for (let u = 0; u < s.length; u += 1) {
685
- const p = $({
686
+ const p = Y({
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((S) => S.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
+ fieldList: n
700
701
  }).name, h = s[u];
701
702
  let f = {
702
703
  ...p,
@@ -704,370 +705,385 @@ function Ae(t) {
704
705
  ...p.query
705
706
  }
706
707
  };
707
- s && h !== c && (f = {
708
+ s && h !== y && (f = {
708
709
  ...f,
709
710
  id: h,
710
- name: w(o, h)
711
+ name: D(n, h)
711
712
  });
712
- let k = h;
713
- f.query !== void 0 && (r !== q.NoAggregation ? (k = C, f.query.outStatistics = [
713
+ let R = h;
714
+ f.query !== void 0 && (r !== L.NoAggregation ? (R = C, f.query.outStatistics = [
714
715
  {
715
716
  ...p.query?.outStatistics?.[0] ?? {},
716
717
  onStatisticField: h,
717
718
  outStatisticFieldName: C,
718
719
  statisticType: r
719
720
  }
720
- ]) : delete f.query.outStatistics), f.y = k;
721
- const T = a.series.find(
721
+ ]) : delete f.query.outStatistics), f.y = R;
722
+ const x = a.series.find(
722
723
  (S) => S.query?.outStatistics?.[0]?.onStatisticField === h && S.query.where === void 0 || S.query?.outStatistics === void 0 && (S.y === h || S.x === h)
723
724
  );
724
- if (T !== void 0 && typeof T.y == "string" && T.y.trim() !== "") {
725
- (b(f) && b(T) || A(f) && A(T)) && W(f, T), a.colorMatch || (O(f) && O(T) ? f.fillSymbol = T.fillSymbol : (b(f) && b(T) || A(f) && A(T)) && (f.lineSymbol = T.lineSymbol, f.markerSymbol = T.markerSymbol), F = !0);
726
- const S = $({
725
+ if (x !== void 0 && typeof x.y == "string" && x.y.trim() !== "") {
726
+ (b(f) && b(x) || A(f) && A(x)) && W(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), F = !0);
727
+ const S = Y({
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 !== S.id && x.name !== S.name && (f.id = x.id, f.name = x.name), f.assignToSecondValueAxis = x.assignToSecondValueAxis, f.type === v.HeatSeries && x.type === v.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])) && W(g[0], y[0]), a.colorMatch || ((b(y[0]) && b(g[0]) || A(y[0]) && A(g[0])) && (g[0].lineSymbol = y[0].lineSymbol, g[0].markerSymbol = y[0].markerSymbol), F = !0)), a.colorMatch = !F, m;
744
+ return m.length === 1 && o.length === 1 && !a.colorMatch && (O(m[0]) && O(o[0]) && (o[0].fillSymbol = m[0].fillSymbol), F = !0), d.length === 1 && c.length === 1 && ((b(d[0]) && b(c[0]) || A(d[0]) && A(c[0])) && W(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), F = !0)), a.colorMatch = !F, 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 li(t) {
747
+ const { aggregationType: e, config: s, layerInfo: r, commonStrings: a } = t, { layerFieldsInfo: i, layer: l } = r, n = $(s), y = G(s), g = _(s), F = Z(s, r, a), o = Le(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: [
761
- {
762
- ...l.query?.outStatistics?.[0],
763
- outStatisticFieldName: d,
764
- statisticType: e,
765
- onStatisticField: l.query?.outStatistics?.[0]?.onStatisticField ?? c[g]
766
- }
767
- ]
768
- }) : (delete l.query?.outStatistics, l.y = c[g]);
769
- }), m && s.title && (s.title.content.text = j(s, r, a)), F && s.series[0].type !== v.HeatSeries) {
770
- const l = re({
760
+ if (c.y = d, e !== L.NoAggregation) {
761
+ const u = ve({
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: [
770
+ {
771
+ ...c.query?.outStatistics?.[0],
772
+ outStatisticFieldName: d,
773
+ statisticType: e,
774
+ onStatisticField: p
775
+ }
776
+ ]
777
+ };
778
+ } else
779
+ delete c.query?.outStatistics, !ue({ chartConfig: s }) && c.type === v.LineSeries && c.temporalBinning !== void 0 && delete c.temporalBinning;
780
+ }), F && s.title && (s.title.content.text = H(s, r, a)), o && s.series[0].type !== v.HeatSeries) {
781
+ const c = le({
771
782
  config: s,
772
783
  layerInfo: r,
773
784
  commonStrings: a,
774
- numericFields: c,
785
+ numericFields: y,
775
786
  aggregationType: e
776
787
  });
777
- E(s, 1, l);
788
+ E(s, 1, c);
778
789
  }
779
790
  }
780
- function wt(t) {
791
+ function Et(t) {
781
792
  const {
782
793
  splitByField: e,
783
794
  xAxisField: s,
784
795
  numericFields: r,
785
796
  aggregationType: a,
786
797
  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({
798
+ layerInfo: l,
799
+ commonStrings: n,
800
+ splitByFieldInfos: y
801
+ } = t, { layer: g, layerFieldsInfo: F } = l, { categoriesArray: o, splitByFieldType: c } = y, m = ve({
802
+ splitByField: e,
803
+ numericFields: r,
804
+ layer: g,
805
+ seriesIndex: 0
806
+ });
807
+ let d = [], u = !1;
808
+ if (o.length === 0) {
809
+ d = Ie({
794
810
  xAxisField: s,
795
811
  numericFields: r,
796
812
  aggregationType: a,
797
813
  config: i,
798
- layerInfo: n,
799
- commonStrings: o
814
+ layerInfo: l,
815
+ commonStrings: n
800
816
  });
801
- for (const p of y)
817
+ for (const p of d)
802
818
  p.query && (p.query.where = `${e}=''`);
803
819
  } else
804
- for (let p = 0; p < l.length; p += 1) {
805
- const B = l[p], C = Q({
820
+ for (let p = 0; p < o.length; p += 1) {
821
+ const T = o[p], C = Q({
806
822
  config: i,
807
823
  xAxisField: s,
808
824
  numericFields: r,
809
825
  aggregationType: a,
810
- layer: n.layer,
826
+ layer: l.layer,
811
827
  seriesIndex: p,
812
828
  splitByField: e,
813
829
  fieldList: F
814
- }).name, h = $({
830
+ }).name, h = Y({
815
831
  config: i,
816
832
  xAxisField: s,
817
833
  aggregationType: a,
818
- layerInfo: n,
834
+ layerInfo: l,
819
835
  seriesIndex: p,
820
- commonStrings: o
821
- }), f = he({
822
- queryObject: n.layer,
836
+ commonStrings: n
837
+ }), f = xe({
838
+ queryObject: l.layer,
823
839
  fieldName: e,
824
- fieldValue: B ?? ""
825
- }), k = `${B}`, S = {
840
+ fieldValue: T ?? ""
841
+ }), R = `${T}`, S = {
826
842
  ...h,
827
- id: k,
828
- name: f ?? k,
843
+ id: R,
844
+ name: f ?? R,
829
845
  y: C,
830
846
  query: {
831
847
  ...h.query,
832
- where: `${e}=${g === ht.String && B !== null ? `'${B}'` : B}`,
833
- outStatistics: a !== q.NoAggregation ? [
848
+ where: `${e}=${c === ot.String && T !== null ? `'${T}'` : T}`,
849
+ outStatistics: a !== L.NoAggregation ? [
834
850
  {
835
851
  ...h.query?.outStatistics?.[0] ?? {},
836
- onStatisticField: d,
852
+ onStatisticField: m,
837
853
  outStatisticFieldName: C,
838
854
  statisticType: a
839
855
  }
840
856
  ] : void 0
841
857
  }
842
858
  };
843
- a === q.NoAggregation && (S.query !== void 0 && (delete S.query.outStatistics, delete S.query.groupByFieldsForStatistics), S.y = d);
859
+ a === L.NoAggregation && (S.query !== void 0 && (delete S.query.outStatistics, delete S.query.groupByFieldsForStatistics), S.y = m);
844
860
  const I = i.series.find(
845
- (L) => String(Ce(L)).trim().replace(/'/gu, "") === k
861
+ (q) => String(be(q)).trim().replace(/'/gu, "") === R
846
862
  );
847
- I !== void 0 && ((b(S) && b(I) || A(S) && A(I)) && W(S, I), i.colorMatch || (O(S) && O(I) ? S.fillSymbol = I.fillSymbol : (b(S) && b(I) || A(S) && A(I)) && (S.lineSymbol = I.lineSymbol, S.markerSymbol = I.markerSymbol), u = !0), S.id = I.id, S.name = I.name, S.assignToSecondValueAxis = I.assignToSecondValueAxis), S.query && (S.query.fetchNullValues = i.series.some((L) => L.query?.fetchNullValues)), y.push(S);
863
+ I !== void 0 && ((b(S) && b(I) || A(S) && A(I)) && W(S, I), i.colorMatch || (O(S) && O(I) ? S.fillSymbol = I.fillSymbol : (b(S) && b(I) || A(S) && A(I)) && (S.lineSymbol = I.lineSymbol, S.markerSymbol = I.markerSymbol), u = !0), S.id = I.id, S.name = I.name, S.assignToSecondValueAxis = I.assignToSecondValueAxis), S.query && (S.query.fetchNullValues = i.series.some((q) => q.query?.fetchNullValues)), d.push(S);
848
864
  }
849
- return i.colorMatch = !u, y;
865
+ return i.colorMatch = !u, d;
850
866
  }
851
- const ri = (t) => {
867
+ const ni = (t) => {
852
868
  const {
853
869
  xAxisFieldName: e,
854
870
  splitByField: s,
855
871
  numericFields: r,
856
872
  aggregationType: a,
857
873
  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);
862
- 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() : !H(g) && H(p) ? (f = Se(), Z = !0) : H(g) && !H(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]);
874
+ layerInfo: l,
875
+ commonStrings: n,
876
+ splitByFieldInfos: y
877
+ } = t, { layerFieldsInfo: g } = l ?? {}, F = xt(i), o = $(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 = Le(i, l, n), h = Mt(i, l);
878
+ let f = he(i);
879
+ const R = i.series.some((B) => O(B)), x = ft(i.series), S = St(i.series), I = oe(i), q = {};
880
+ I && (q.classBreaksRules = i.series[0]?.classBreaksRules, q.xTemporalBinning = i.series[0]?.xTemporalBinning, q.yTemporalBinning = i.series[0]?.yTemporalBinning, q.emptyCells = i.series[0]?.emptyCells, q.nullPolicy = i.nullPolicy);
881
+ let J = !1;
882
+ if (st(p) ? f = fe() : !me(c) && me(p) ? f = Se() : !j(c) && j(p) ? (f = Se(), J = !0) : j(c) && !j(p) && (R ? f = fe() : f = pt(), J = !0), f !== void 0 && ke(i, n, f), F === 0 && (i.series = [
883
+ Y({ config: i, xAxisField: e, aggregationType: a, layerInfo: l, commonStrings: n })
884
+ ]), i.series.forEach((B) => {
885
+ B.x = e, B.query !== void 0 && (B.query.groupByFieldsForStatistics = [e]);
870
886
  }), s === "" || r.length > 1 ? Te({
871
887
  fieldName: e,
872
888
  numericFields: r,
873
- fieldList: m
874
- }) ? i.series = Dt({
889
+ fieldList: g
890
+ }) ? i.series = Pt({
875
891
  config: i,
876
- layerInfo: n,
892
+ layerInfo: l,
877
893
  xAxisField: e,
878
894
  numericFields: r,
879
895
  aggregationType: a,
880
- commonStrings: o
881
- }) : i.series = Ae({
896
+ commonStrings: n
897
+ }) : i.series = Ie({
882
898
  config: i,
883
- layerInfo: n,
899
+ layerInfo: l,
884
900
  xAxisField: e,
885
901
  numericFields: r,
886
902
  aggregationType: a,
887
- commonStrings: o
888
- }) : c && (i.series = wt({
903
+ commonStrings: n
904
+ }) : y && (i.series = Et({
889
905
  config: i,
890
- layerInfo: n,
906
+ layerInfo: l,
891
907
  splitByField: s,
892
908
  xAxisField: e,
893
909
  numericFields: r,
894
910
  aggregationType: a,
895
- commonStrings: o,
896
- splitByFieldInfos: c
911
+ commonStrings: n,
912
+ splitByFieldInfos: y
897
913
  })), h && i.series[0].type !== v.HeatSeries) {
898
- const x = w(m, e);
899
- E(i, 0, x);
914
+ const B = D(g, e);
915
+ E(i, 0, B);
900
916
  }
901
917
  if (C && i.series[0].type !== v.HeatSeries) {
902
- const x = re({
918
+ const B = le({
903
919
  config: i,
904
- layerInfo: n,
905
- commonStrings: o,
920
+ layerInfo: l,
921
+ commonStrings: n,
906
922
  numericFields: r,
907
923
  aggregationType: a
908
924
  });
909
- E(i, 1, x);
925
+ E(i, 1, B);
910
926
  }
911
- if (B && i.title && (i.title.content.text = j(i, n, o)), N({ config: i, value: null, axisIndex: 1, isMax: !1 }), N({ config: i, value: null, axisIndex: 1, isMax: !0 }), Ot({ numericFields: r, aggregationType: a, config: i, layerInfo: n }), (T || S) && (N({ config: i, value: null, axisIndex: 0, isMax: !1 }), N({ config: i, value: null, axisIndex: 0, isMax: !0 }), Z)) {
912
- const x = f?.type === v.DateAxisFormat ? K.Null : K.Interpolate;
913
- Bt(x, i);
927
+ if (T && i.title && (i.title.content.text = H(i, l, n)), N({ config: i, value: null, axisIndex: 1, isMax: !1 }), N({ config: i, value: null, axisIndex: 1, isMax: !0 }), wt({ numericFields: r, aggregationType: a, config: i, layerInfo: l }), (x || S) && (N({ config: i, value: null, axisIndex: 0, isMax: !1 }), N({ config: i, value: null, axisIndex: 0, isMax: !0 }), J && a !== L.NoAggregation)) {
928
+ const B = f?.type === v.DateAxisFormat ? U.Null : U.Interpolate;
929
+ bt(B, i);
914
930
  }
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);
931
+ I && (i.series[0].classBreaksRules = q.classBreaksRules, i.series[0].xTemporalBinning = q.xTemporalBinning, i.series[0].yTemporalBinning = q.yTemporalBinning, i.series[0].emptyCells = q.emptyCells, i.nullPolicy = q.nullPolicy), u ? i.series.forEach((B) => {
932
+ delete B.query;
933
+ }) : m && i.series.forEach((B) => {
934
+ B.query && (B.query.fetchNullValues = m);
935
+ }), d && i.series.forEach((B) => {
936
+ (B.type === v.BarSeries || B.type === v.LineSeries || B.type === v.RadarSeries) && (B.nullCategory = d);
921
937
  });
922
938
  }, W = (t, e) => {
923
939
  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
940
  ...e.markerSymbol,
925
941
  color: t.markerSymbol?.color
926
942
  });
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 (Y(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));
943
+ }, oi = (t) => {
944
+ const { config: e, seriesIndex: s, layerInfo: r, commonStrings: a } = t, i = e.series?.[s], l = _(e);
945
+ let n;
946
+ if (K(e.series) === w.BarAndLineFromFields)
947
+ n = a.axisLabels.values;
948
+ else if (qe(l)) {
949
+ const g = i.query?.outStatistics?.[0]?.onStatisticField;
950
+ g !== void 0 && g !== X(r.layer).idField && (n = D(r.layerFieldsInfo, g));
935
951
  } else {
936
- const m = String(Ce(i)).trim().replace(/'/gu, "");
937
- o = he({
952
+ const g = String(be(i)).trim().replace(/'/gu, "");
953
+ n = xe({
938
954
  queryObject: r.layer,
939
- fieldName: n,
940
- fieldValue: m ?? ""
941
- }) ?? m;
955
+ fieldName: l,
956
+ fieldValue: g ?? ""
957
+ }) ?? g;
942
958
  }
943
- return o ?? i.id;
944
- }, ni = (t, e) => {
945
- if (ne(e))
946
- Rt(t, e);
959
+ return n ?? i.id;
960
+ }, ui = (t, e) => {
961
+ if (oe(e))
962
+ Ot(t, e);
947
963
  else {
948
964
  e.orderOptions ??= {};
949
965
  const s = e.orderOptions?.data?.orderType;
950
- ie(e)[0] === J.customSort && s === V.Category && (e.orderOptions.data = {
966
+ ae(e)[0] === ee.customSort && s === V.Category && (e.orderOptions.data = {
951
967
  orderType: V.Category,
952
968
  orderBy: [...t]
953
969
  });
954
970
  }
955
- }, oi = async (t) => {
956
- const { config: e, layerInfo: s, errorStrings: r } = t, a = M(e), i = Fe(e)?.type, n = G(e), o = Y(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({
971
+ }, ci = async (t) => {
972
+ const { config: e, layerInfo: s, errorStrings: r } = t, a = $(e), i = he(e)?.type, l = G(e), n = K(e.series);
973
+ let y = [];
974
+ return i === v.CategoryAxisFormat && (n === w.BarAndLineFromFields || a === te ? y = l.map((g) => D(s?.layerFieldsInfo, g)) : a.trim() !== "" && a !== te && s !== void 0 && (y = await Ne({
959
975
  layerInfo: s,
960
976
  config: e,
961
977
  category: a,
962
978
  errorStrings: r
963
- }))), c;
979
+ }))), y;
964
980
  };
965
- function _(t, e, s) {
966
- const r = j(t, e, s), a = St(t), i = z(t);
981
+ function Z(t, e, s) {
982
+ const r = H(t, e, s), a = Tt(t), i = z(t);
967
983
  return r === a || i;
968
984
  }
969
- function ve(t, e, s) {
970
- const r = re({
985
+ function Le(t, e, s) {
986
+ const r = le({
971
987
  config: t,
972
988
  layerInfo: e,
973
989
  commonStrings: s,
974
990
  numericFields: G(t),
975
- aggregationType: be(t)
976
- }), a = oe(1, t), i = z(t);
991
+ aggregationType: Ae(t)
992
+ }), a = ce(1, t), i = z(t);
977
993
  return r === a || i;
978
994
  }
979
- function Pt(t, e) {
980
- const s = w(e.layerFieldsInfo, M(t)), r = oe(0, t), a = z(t);
995
+ function Mt(t, e) {
996
+ const s = D(e.layerFieldsInfo, $(t)), r = ce(0, t), a = z(t);
981
997
  return s === r || a;
982
998
  }
983
- function ui(t) {
984
- return R(t.series[0]) ? t.series[0].binTemporalData ?? !0 : !1;
999
+ function di(t) {
1000
+ return k(t.series[0]) ? t.series[0].binTemporalData ?? !0 : !1;
985
1001
  }
986
- function ci(t, e) {
987
- e?.series.forEach((s) => {
1002
+ function yi(t, e) {
1003
+ ue({ chartConfig: e }) && e?.series.forEach((s) => {
988
1004
  (s?.type === v.BarSeries || s?.type === v.LineSeries) && (s.binTemporalData = t, t ? s.temporalBinning = {
989
- unit: te.Day,
1005
+ unit: se.Day,
990
1006
  size: 0,
991
- timeAggregationType: at.Start,
1007
+ timeAggregationType: lt.Start,
992
1008
  trimIncompleteTimeInterval: !0,
993
- nullPolicy: K.Null
1009
+ nullPolicy: U.Null
994
1010
  } : delete s.temporalBinning);
995
1011
  });
996
1012
  }
997
1013
  export {
998
- rs as $,
999
- qs as A,
1000
- hs as B,
1001
- Fs as C,
1002
- xs as D,
1003
- Ts as E,
1004
- ks as F,
1005
- Os as G,
1006
- Ds as H,
1007
- ws as I,
1008
- Rs as J,
1009
- Ns as K,
1010
- Ps as L,
1011
- kt as M,
1012
- Es as N,
1013
- Ms as O,
1014
- ie as P,
1015
- $s as Q,
1016
- Ws as R,
1017
- Ys as S,
1018
- Xs as T,
1019
- Js as U,
1020
- Zs as V,
1021
- js as W,
1022
- Hs as X,
1023
- ts as Y,
1024
- xt as Z,
1025
- Tt as _,
1026
- G as a,
1027
- ss as a0,
1028
- ls as a1,
1029
- is as a2,
1030
- ns as a3,
1031
- as as a4,
1032
- Bt as a5,
1033
- os as a6,
1034
- ai as a7,
1035
- oi as a8,
1036
- ni as a9,
1037
- ri as aa,
1038
- ui as ab,
1039
- ci as ac,
1040
- gs as ad,
1041
- ms as ae,
1042
- ys as af,
1043
- ds as ag,
1044
- us as ah,
1045
- cs as ai,
1046
- Ct as aj,
1047
- ps as ak,
1048
- ue as b,
1049
- li as c,
1050
- j as d,
1051
- Nt as e,
1052
- Ks as f,
1053
- be as g,
1054
- Us as h,
1055
- bs as i,
1056
- Cs as j,
1057
- vs as k,
1058
- As as l,
1059
- Qs as m,
1060
- zs as n,
1061
- Gs as o,
1062
- _s as p,
1063
- ei as q,
1064
- ti as r,
1065
- Bs as s,
1066
- si as t,
1067
- ii as u,
1068
- fs as v,
1069
- Ss as w,
1070
- Ls as x,
1071
- Is as y,
1072
- Vs as z
1014
+ Ts as $,
1015
+ ui as A,
1016
+ ni as B,
1017
+ di as C,
1018
+ yi as D,
1019
+ H as E,
1020
+ Rt as F,
1021
+ bs as G,
1022
+ Qs as H,
1023
+ zs as I,
1024
+ vs as J,
1025
+ As as K,
1026
+ Ls as L,
1027
+ Is as M,
1028
+ _s as N,
1029
+ Gs as O,
1030
+ Zs as P,
1031
+ Js as Q,
1032
+ si as R,
1033
+ ii as S,
1034
+ ai as T,
1035
+ ri as U,
1036
+ Fs as V,
1037
+ hs as W,
1038
+ Vs as X,
1039
+ qs as Y,
1040
+ ks as Z,
1041
+ Ns as _,
1042
+ gs as a,
1043
+ xs as a0,
1044
+ Cs as a1,
1045
+ Bs as a2,
1046
+ Ds as a3,
1047
+ ws as a4,
1048
+ Ps as a5,
1049
+ Es as a6,
1050
+ Os as a7,
1051
+ Rs as a8,
1052
+ Ms as a9,
1053
+ Dt as aa,
1054
+ $s as ab,
1055
+ Ys as ac,
1056
+ Ws as ad,
1057
+ Xs as ae,
1058
+ Hs as af,
1059
+ js as ag,
1060
+ ti as ah,
1061
+ ei as ai,
1062
+ Us as aj,
1063
+ Ks as ak,
1064
+ ds as b,
1065
+ ys as c,
1066
+ G as d,
1067
+ _ as e,
1068
+ Ss as f,
1069
+ Ae as g,
1070
+ oi as h,
1071
+ ps as i,
1072
+ is as j,
1073
+ Bt as k,
1074
+ ns as l,
1075
+ as as m,
1076
+ os as n,
1077
+ rs as o,
1078
+ fs as p,
1079
+ us as q,
1080
+ At as r,
1081
+ Ct as s,
1082
+ ls as t,
1083
+ ms as u,
1084
+ bt as v,
1085
+ cs as w,
1086
+ li as x,
1087
+ ae as y,
1088
+ ci as z
1073
1089
  };