@arcgis/charts-components 5.0.0-next.98 → 5.0.0-next.99

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 (307) hide show
  1. package/dist/cdn/{WYCVFM65.js → 2BGDY2BP.js} +2 -2
  2. package/dist/cdn/{UAHGUBQ7.js → 2LOMVNFV.js} +2 -2
  3. package/dist/cdn/{UWIBS6DA.js → 2QQ44PPJ.js} +2 -2
  4. package/dist/cdn/{CDENO5CM.js → 2TPRQ4Y4.js} +2 -2
  5. package/dist/cdn/{DRIPFIJ7.js → 2WYVYSML.js} +2 -2
  6. package/dist/cdn/{CN7MSIQ6.js → 33JGOTKR.js} +2 -2
  7. package/dist/cdn/{ZWQOT4GG.js → 34SMUC5O.js} +2 -2
  8. package/dist/cdn/{ER6AZU6Z.js → 37KZXVO7.js} +2 -2
  9. package/dist/cdn/{365DC6KO.js → 3QBZTXAE.js} +2 -2
  10. package/dist/cdn/{BH7YV4BR.js → 3QEXDYKP.js} +2 -2
  11. package/dist/cdn/{RHNPSTQM.js → 3WEGNPAQ.js} +2 -2
  12. package/dist/cdn/{JYONIUGL.js → 43QA2EYJ.js} +2 -2
  13. package/dist/cdn/{ARC3OJQR.js → 46AEV2LQ.js} +2 -2
  14. package/dist/cdn/{IW4IV5EI.js → 4DRGCNUY.js} +2 -2
  15. package/dist/cdn/{E5TC6FLA.js → 4TP7CPB7.js} +2 -2
  16. package/dist/cdn/{U2RXBAEZ.js → 4WBXL7T5.js} +2 -2
  17. package/dist/cdn/{DY3FPT4W.js → 4Y2LTMB2.js} +2 -2
  18. package/dist/cdn/{FI465PWV.js → 4ZLTJOQO.js} +2 -2
  19. package/dist/cdn/{ME3ALNAS.js → 53DNLVAJ.js} +2 -2
  20. package/dist/cdn/{TN5O52SO.js → 5KO3EVQC.js} +3 -3
  21. package/dist/cdn/{YERKIQCC.js → 5QTSPRYU.js} +2 -2
  22. package/dist/cdn/{PKFGHLQG.js → 5TJRQBVJ.js} +2 -2
  23. package/dist/cdn/{ROGWYFJT.js → 5XKBPV2P.js} +2 -2
  24. package/dist/cdn/{M7XVLDWP.js → 6CWOFX2O.js} +2 -2
  25. package/dist/cdn/{MXAHP4KO.js → 6J2INGC2.js} +2 -2
  26. package/dist/cdn/{XVPSNHIK.js → 6JR4JUIG.js} +1 -1
  27. package/dist/cdn/{Q2YCXMO3.js → 6RXUXMQA.js} +2 -2
  28. package/dist/cdn/{HVIFP5EA.js → 6TA3BCNE.js} +2 -2
  29. package/dist/cdn/{GZ65TLSM.js → 75LUCO6I.js} +2 -2
  30. package/dist/cdn/{JS4F6M3J.js → 7DWP66OE.js} +2 -2
  31. package/dist/cdn/{CXEMHQUK.js → 7FMOMBK4.js} +2 -2
  32. package/dist/cdn/{WCU4XH27.js → 7KDZQKAU.js} +2 -2
  33. package/dist/cdn/{ZJETFSXD.js → 7KLS6YH4.js} +1 -1
  34. package/dist/cdn/{2B2Q6JJI.js → A4QKO7TA.js} +2 -2
  35. package/dist/cdn/{BVHYIWIR.js → ALGXVJEW.js} +2 -2
  36. package/dist/cdn/{NOKCF5RF.js → ALNDVQR4.js} +2 -2
  37. package/dist/cdn/{W6PFOV5G.js → AP7EOJUY.js} +2 -2
  38. package/dist/cdn/{5MGTDZN6.js → AQFUJFFL.js} +2 -2
  39. package/dist/cdn/{PZ6FDCD7.js → AR66HLLQ.js} +2 -2
  40. package/dist/cdn/{AWLOO5KK.js → ATOOMCCV.js} +2 -2
  41. package/dist/cdn/{GW6RQSHH.js → AYFWDJYK.js} +2 -2
  42. package/dist/cdn/{FZMANCO3.js → AYZIHXY2.js} +2 -2
  43. package/dist/cdn/{6323UGPC.js → BDJ6VTQU.js} +2 -2
  44. package/dist/cdn/{ETJ53GCF.js → BHQBCR7H.js} +2 -2
  45. package/dist/cdn/{HZRWUHFN.js → BLB6XJO6.js} +2 -2
  46. package/dist/cdn/{WBOZP6KG.js → BQ36ONIW.js} +2 -2
  47. package/dist/cdn/{PHFBKLGC.js → BY4LN7X3.js} +2 -2
  48. package/dist/cdn/{BW4FSQM7.js → CFQO3L2K.js} +2 -2
  49. package/dist/cdn/{JNM6QMBO.js → CGJPCV5J.js} +2 -2
  50. package/dist/cdn/{PAKBJRQN.js → CW4Z6GF6.js} +2 -2
  51. package/dist/cdn/{XT7LLS5S.js → CZGIB6GH.js} +2 -2
  52. package/dist/cdn/{GTGIY32G.js → DHY4IF2Q.js} +2 -2
  53. package/dist/cdn/{UW4POM7H.js → DL246FN4.js} +1 -1
  54. package/dist/cdn/{WSOXK3SW.js → DNMTF7HF.js} +2 -2
  55. package/dist/cdn/{VJE72VIF.js → DRK7BZ4T.js} +1 -1
  56. package/dist/cdn/{RUFVQ4YZ.js → DS5KEMAX.js} +2 -2
  57. package/dist/cdn/{FAMNW7KH.js → DZXJX4QS.js} +2 -2
  58. package/dist/cdn/{CZNFTLU5.js → E73EL3SK.js} +2 -2
  59. package/dist/cdn/{ADPIJAR2.js → ECTA522C.js} +2 -2
  60. package/dist/cdn/{3FPK66HO.js → EDJUZAUA.js} +1 -1
  61. package/dist/cdn/{SDQHTMQ4.js → EEBRTIA2.js} +2 -2
  62. package/dist/cdn/{HW662YNE.js → EO7ZVOY6.js} +2 -2
  63. package/dist/cdn/{TRRU36NC.js → ER24ETEV.js} +2 -2
  64. package/dist/cdn/{TTWHPWIY.js → F4MV2YNZ.js} +2 -2
  65. package/dist/cdn/{AFIDDZ3Z.js → FPXOYPBG.js} +2 -2
  66. package/dist/cdn/{C6RHL5Z2.js → G3AFAAPX.js} +2 -2
  67. package/dist/cdn/{FI4UA6EV.js → G3DZJCAM.js} +2 -2
  68. package/dist/cdn/{5UKL3T2R.js → G3ULH2V5.js} +2 -2
  69. package/dist/cdn/{E2RUSK2O.js → GABDCSHB.js} +2 -2
  70. package/dist/cdn/GP6RF56M.js +4 -0
  71. package/dist/cdn/{WSDFPJHT.js → H6PJMZK3.js} +2 -2
  72. package/dist/cdn/{WC6OPDLD.js → HFMT6PYX.js} +2 -2
  73. package/dist/cdn/{NJYTYM6E.js → HGVSDU2D.js} +2 -2
  74. package/dist/cdn/{R2QIHPHK.js → HJDZIHNN.js} +2 -2
  75. package/dist/cdn/{IJVCGB5E.js → HRCHB533.js} +2 -2
  76. package/dist/cdn/{SOYTTYEB.js → I32MXWCS.js} +2 -2
  77. package/dist/cdn/{MAMGOPXU.js → I5E6LJM5.js} +2 -2
  78. package/dist/cdn/{RVXBSTHN.js → IBQ6A35Z.js} +2 -2
  79. package/dist/cdn/{3HNOHZBS.js → IEC2JOS5.js} +2 -2
  80. package/dist/cdn/{ZPASTUHX.js → IEHJ5YJY.js} +2 -2
  81. package/dist/cdn/{LQMDFZXE.js → IU2AZ55F.js} +2 -2
  82. package/dist/cdn/{46HT2X5N.js → IXYT2QK4.js} +2 -2
  83. package/dist/cdn/{YDKNPBSG.js → J3J6SW7Q.js} +2 -2
  84. package/dist/cdn/{D4PQ244Q.js → J555BCJJ.js} +2 -2
  85. package/dist/cdn/{NYEOWL2A.js → J7T472VE.js} +2 -2
  86. package/dist/cdn/{2QGIVB7T.js → JG3KRIVV.js} +2 -2
  87. package/dist/cdn/{YIQON2Y2.js → JKPKSDJF.js} +2 -2
  88. package/dist/cdn/{LSWLOK73.js → JTWMVAWH.js} +2 -2
  89. package/dist/cdn/{4DGFTJNT.js → JWENQBIR.js} +2 -2
  90. package/dist/cdn/{PEU3WKFJ.js → JYUPIPQC.js} +2 -2
  91. package/dist/cdn/{PZ3WUIAI.js → K2PH4MPJ.js} +2 -2
  92. package/dist/cdn/{KNT5FFQM.js → KIRKWHUO.js} +2 -2
  93. package/dist/cdn/{VDOWTD4C.js → LGEVYBRS.js} +2 -2
  94. package/dist/cdn/{VRM5H5T4.js → LMUORJXF.js} +2 -2
  95. package/dist/cdn/LTF2V6RM.js +4 -0
  96. package/dist/cdn/{INUMAGAS.js → LXQKXIWJ.js} +2 -2
  97. package/dist/cdn/{3WPTZFZP.js → MA2SCZF6.js} +2 -2
  98. package/dist/cdn/{MWHJPZZ3.js → MAOJTCRH.js} +2 -2
  99. package/dist/cdn/{BQE6ZOVI.js → MNCSDUNT.js} +2 -2
  100. package/dist/cdn/{XP4SAXMG.js → MUW6SIAC.js} +2 -2
  101. package/dist/cdn/{ZYZP7VDZ.js → NUQ7NCAB.js} +2 -2
  102. package/dist/cdn/{3RZXYVV6.js → NWRYASUP.js} +1 -1
  103. package/dist/cdn/{GSQX6P7N.js → O6JIMU2Y.js} +2 -2
  104. package/dist/cdn/{DUJAIVPN.js → O6Y7RD73.js} +2 -2
  105. package/dist/cdn/{DMTFXYHR.js → OGICGI24.js} +2 -2
  106. package/dist/cdn/{E42FOFT6.js → OLFDCIYQ.js} +2 -2
  107. package/dist/cdn/{5QUSM2UY.js → ONWD6RTE.js} +2 -2
  108. package/dist/cdn/{XEVAKQUU.js → OTWUNJV6.js} +2 -2
  109. package/dist/cdn/{J3JMCISO.js → P5GNWDXN.js} +2 -2
  110. package/dist/cdn/{G43QIRRT.js → PCHLY7T6.js} +2 -2
  111. package/dist/cdn/{Q2JJJJ7N.js → PFH2WVUP.js} +2 -2
  112. package/dist/cdn/{OSQA7WER.js → PGN27UPE.js} +2 -2
  113. package/dist/cdn/{XZE5IQZX.js → Q5E2FHDY.js} +2 -2
  114. package/dist/cdn/{C7IUSW2V.js → QC76AIDX.js} +2 -2
  115. package/dist/cdn/{7RQJXAWF.js → QH273PKJ.js} +2 -2
  116. package/dist/cdn/{KL45ZQ6Z.js → QQUWF6FC.js} +2 -2
  117. package/dist/cdn/{PZABWOS3.js → QS463Q3Q.js} +2 -2
  118. package/dist/cdn/{JYVGC27D.js → QTIPHURA.js} +2 -2
  119. package/dist/cdn/{Q3CF6R7R.js → R2YLG2DH.js} +2 -2
  120. package/dist/cdn/{46WHHO7J.js → R42MRBJ7.js} +2 -2
  121. package/dist/cdn/{TQNRRCK3.js → RC4F6BGE.js} +2 -2
  122. package/dist/cdn/{EBTPXSP2.js → RM6DFXLP.js} +2 -2
  123. package/dist/cdn/{RRELAUGK.js → ROMO2YML.js} +2 -2
  124. package/dist/cdn/{DZLOBIYZ.js → RQJ4RKDK.js} +2 -2
  125. package/dist/cdn/{EIBLFSMZ.js → S2LFPDF5.js} +2 -2
  126. package/dist/cdn/{3C4TQQA7.js → S3YCKLEN.js} +2 -2
  127. package/dist/cdn/{SPMIK757.js → S5IQO6VL.js} +2 -2
  128. package/dist/cdn/{YCFIYIS5.js → SC2SKMEN.js} +2 -2
  129. package/dist/cdn/{T6KSIAGE.js → SGLVWLMU.js} +2 -2
  130. package/dist/cdn/{IYA74XW4.js → SIJBNXZR.js} +2 -2
  131. package/dist/cdn/SR2RYIK7.js +4 -0
  132. package/dist/cdn/{QDJHUZMP.js → SUSCV4LK.js} +2 -2
  133. package/dist/cdn/{NXLL54WT.js → T2SN5ZTL.js} +2 -2
  134. package/dist/cdn/{7A6SEQUK.js → T3XNTJM3.js} +2 -2
  135. package/dist/cdn/{HXRYI2VT.js → TF6OUOOR.js} +2 -2
  136. package/dist/cdn/{EQCVXHBF.js → TTD3BDTM.js} +2 -2
  137. package/dist/cdn/{FHJ2TWZU.js → U4NGRUWQ.js} +2 -2
  138. package/dist/cdn/{5IM6DOZH.js → U4VGN3VL.js} +2 -2
  139. package/dist/cdn/{J6K6TSNF.js → U545PRCC.js} +2 -2
  140. package/dist/cdn/{HQPAXAYQ.js → UVHDLZTZ.js} +2 -2
  141. package/dist/cdn/{5W4MQBMH.js → UW3P3B2G.js} +2 -2
  142. package/dist/cdn/{EBP64TFC.js → V5LQLGJL.js} +2 -2
  143. package/dist/cdn/{DEN6PIUN.js → VATDFANL.js} +2 -2
  144. package/dist/cdn/{VBVQHEHH.js → VN52A6A4.js} +2 -2
  145. package/dist/cdn/{ZGRSFCOI.js → VUJJOYF6.js} +2 -2
  146. package/dist/cdn/{LY4AOSA5.js → W6UFQN4U.js} +2 -2
  147. package/dist/cdn/{4ZSZR5OK.js → WIQDGBQ3.js} +2 -2
  148. package/dist/cdn/{QEEJ2UIU.js → WPBJ6RI3.js} +2 -2
  149. package/dist/cdn/{A24IDTVK.js → WPHD2L76.js} +2 -2
  150. package/dist/cdn/{K3F75UGQ.js → WQ2ZAL4H.js} +2 -2
  151. package/dist/cdn/{QQPJETQS.js → WRQVFQS4.js} +2 -2
  152. package/dist/cdn/{VOAONVRO.js → WVJZQYM2.js} +1 -1
  153. package/dist/cdn/{RCVZ4V2M.js → X322N7ZG.js} +7 -7
  154. package/dist/cdn/{YVS3FQIJ.js → X5JW2PHY.js} +2 -2
  155. package/dist/cdn/{ORVKY6HR.js → XIEB3EPZ.js} +2 -2
  156. package/dist/cdn/{BGT6MRGW.js → XILGAVNL.js} +2 -2
  157. package/dist/cdn/{2UZUZBJW.js → XTB66PUT.js} +2 -2
  158. package/dist/cdn/Y2RUVTF5.js +4 -0
  159. package/dist/cdn/{3OXMO5BN.js → YDL2MYNV.js} +2 -2
  160. package/dist/cdn/{47674F4C.js → YEZ2QFF6.js} +2 -2
  161. package/dist/cdn/{4QN62WQF.js → YGDZWIF4.js} +2 -2
  162. package/dist/cdn/{AZR2ZNLJ.js → YLMMHPDT.js} +2 -2
  163. package/dist/cdn/{ZTNM4WH5.js → YU5GZWT7.js} +2 -2
  164. package/dist/cdn/{DMESIMXG.js → YUNAOJ5W.js} +2 -2
  165. package/dist/cdn/{MUKPP66Y.js → YWQGVASZ.js} +2 -2
  166. package/dist/cdn/{HDT23WIY.js → Z2RRTYDA.js} +2 -2
  167. package/dist/cdn/{PAZRNCRX.js → ZC4XYKME.js} +2 -2
  168. package/dist/cdn/{56S3JBPY.js → ZDJ6XXAZ.js} +1 -1
  169. package/dist/cdn/{HNJ6DUUN.js → ZGKAHBLD.js} +2 -2
  170. package/dist/cdn/{XXASN7W3.js → ZLP35BLL.js} +2 -2
  171. package/dist/cdn/{G42JXGOO.js → ZOESFFYV.js} +2 -2
  172. package/dist/cdn/{T3C67EVM.js → ZOFGYG6R.js} +2 -2
  173. package/dist/cdn/{DVMSSV25.js → ZPRJFD3K.js} +2 -2
  174. package/dist/cdn/index.js +2 -2
  175. package/dist/chunks/action-bar-utils.js +1 -1
  176. package/dist/chunks/axis-model-wrapper.js +1 -1
  177. package/dist/chunks/bar-chart-model.js +7 -7
  178. package/dist/chunks/bar-chart-series.js +1 -1
  179. package/dist/chunks/bg_BG.js +1 -1
  180. package/dist/chunks/bg_BG2.js +1 -1
  181. package/dist/chunks/box-plot-data.js +8 -8
  182. package/dist/chunks/box-plot-model.js +13 -13
  183. package/dist/chunks/chart-ui-utils.js +1 -1
  184. package/dist/chunks/chart-ui-utils2.js +1 -1
  185. package/dist/chunks/combo-bar-line-chart-model.js +3 -2
  186. package/dist/chunks/common.js +1 -1
  187. package/dist/chunks/data.js +1 -1
  188. package/dist/chunks/default.js +1 -1
  189. package/dist/chunks/gauge-model.js +15 -15
  190. package/dist/chunks/heat-chart-model.js +38 -38
  191. package/dist/chunks/histogram-data.js +1 -1
  192. package/dist/chunks/histogram-model.js +27 -27
  193. package/dist/chunks/index.js +1 -1
  194. package/dist/chunks/index2.js +1 -1
  195. package/dist/chunks/index3.js +1 -1
  196. package/dist/chunks/index4.js +1 -1
  197. package/dist/chunks/interfaces.js +1 -1
  198. package/dist/chunks/line-chart-model.js +7 -7
  199. package/dist/chunks/model-with-multi-axes.js +1120 -1030
  200. package/dist/chunks/pie-chart-data.js +1 -1
  201. package/dist/chunks/pie-chart-model.js +32 -32
  202. package/dist/chunks/popover-ui-utils.js +1 -1
  203. package/dist/chunks/radar-chart-model.js +5 -5
  204. package/dist/chunks/resource.js +1 -1
  205. package/dist/chunks/rest-js-object-literals.js +1 -1
  206. package/dist/chunks/runtime.js +1 -1
  207. package/dist/chunks/scatterplot-model.js +9 -9
  208. package/dist/chunks/serial-chart-data.js +587 -532
  209. package/dist/chunks/serial-chart-model.js +5 -5
  210. package/dist/chunks/series-types.js +1 -1
  211. package/dist/chunks/sk_SK.js +1 -1
  212. package/dist/chunks/store.js +1 -1
  213. package/dist/chunks/type-guards.js +1 -1
  214. package/dist/chunks/useT9n.js +1 -1
  215. package/dist/chunks/web-component-utils.js +7 -7
  216. package/dist/components/arcgis-chart/customElement.js +2 -2
  217. package/dist/components/arcgis-charts-action-bar/customElement.js +1 -1
  218. package/dist/components/arcgis-charts-config-axes/customElement.js +1 -1
  219. package/dist/components/arcgis-charts-config-axis/customElement.js +1 -1
  220. package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
  221. package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +1 -1
  222. package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +1 -1
  223. package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +1 -1
  224. package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +1 -1
  225. package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
  226. package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +1 -1
  227. package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +1 -1
  228. package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +1 -1
  229. package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +1 -1
  230. package/dist/components/arcgis-charts-config-category-format/customElement.js +1 -1
  231. package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +1 -1
  232. package/dist/components/arcgis-charts-config-color-style/customElement.js +1 -1
  233. package/dist/components/arcgis-charts-config-colors/customElement.js +1 -1
  234. package/dist/components/arcgis-charts-config-create-flow/customElement.js +1 -1
  235. package/dist/components/arcgis-charts-config-field-select/customElement.js +1 -1
  236. package/dist/components/arcgis-charts-config-font-style/customElement.js +1 -1
  237. package/dist/components/arcgis-charts-config-format/customElement.js +1 -1
  238. package/dist/components/arcgis-charts-config-format-popover/customElement.js +1 -1
  239. package/dist/components/arcgis-charts-config-general/customElement.js +1 -1
  240. package/dist/components/arcgis-charts-config-guide/customElement.js +1 -1
  241. package/dist/components/arcgis-charts-config-guide-popover/customElement.js +1 -1
  242. package/dist/components/arcgis-charts-config-guides/customElement.js +1 -1
  243. package/dist/components/arcgis-charts-config-guides-type-popover/customElement.js +1 -1
  244. package/dist/components/arcgis-charts-config-histogram/customElement.js +1 -1
  245. package/dist/components/arcgis-charts-config-histogram-data/customElement.js +1 -1
  246. package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +1 -1
  247. package/dist/components/arcgis-charts-config-invalid-input-message/customElement.js +1 -1
  248. package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
  249. package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +1 -1
  250. package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +1 -1
  251. package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +1 -1
  252. package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +1 -1
  253. package/dist/components/arcgis-charts-config-line-style/customElement.js +1 -1
  254. package/dist/components/arcgis-charts-config-number-format/customElement.js +1 -1
  255. package/dist/components/arcgis-charts-config-pie-chart/customElement.js +1 -1
  256. package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +1 -1
  257. package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +1 -1
  258. package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +1 -1
  259. package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +1 -1
  260. package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
  261. package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +1 -1
  262. package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +1 -1
  263. package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +1 -1
  264. package/dist/components/arcgis-charts-config-view-charts/customElement.js +1 -1
  265. package/dist/docs/api.json +2 -2
  266. package/dist/docs/docs.json +2 -2
  267. package/dist/docs/web-types.json +1 -1
  268. package/dist/index.js +1 -1
  269. package/dist/loader.js +1 -1
  270. package/dist/model/chart-model/chart-model-base.d.ts +100 -0
  271. package/dist/model/chart-model/chart-model.d.ts +29 -254
  272. package/dist/model/decorators/model-setter.d.ts +2 -2
  273. package/dist/model/properties/background-color.d.ts +21 -0
  274. package/dist/model/properties/chart-id.d.ts +20 -0
  275. package/dist/model/properties/chart-renderer.d.ts +21 -0
  276. package/dist/model/properties/chart-sub-type.d.ts +15 -0
  277. package/dist/model/properties/chart-type.d.ts +10 -0
  278. package/dist/model/properties/config.d.ts +12 -0
  279. package/dist/model/properties/data-filters.d.ts +26 -0
  280. package/dist/model/properties/data-tooltip-value-format.d.ts +34 -0
  281. package/dist/model/properties/description/description-symbol.d.ts +21 -0
  282. package/dist/model/properties/description/description-text.d.ts +17 -0
  283. package/dist/model/properties/description/description-visibility.d.ts +26 -0
  284. package/dist/model/properties/fetch-null-values.d.ts +20 -0
  285. package/dist/model/properties/layer.d.ts +11 -0
  286. package/dist/model/properties/series/series-id.d.ts +19 -0
  287. package/dist/model/properties/series/series-index.d.ts +19 -0
  288. package/dist/model/properties/series/series-length.d.ts +15 -0
  289. package/dist/model/properties/series/series-visibility.d.ts +28 -0
  290. package/dist/model/properties/split-by-values.d.ts +15 -0
  291. package/dist/model/properties/subtitle/subtitle-symbol.d.ts +21 -0
  292. package/dist/model/properties/subtitle/subtitle-text.d.ts +20 -0
  293. package/dist/model/properties/subtitle/subtitle-visibility.d.ts +26 -0
  294. package/dist/model/properties/title/title-symbol.d.ts +21 -0
  295. package/dist/model/properties/title/title-text.d.ts +20 -0
  296. package/dist/model/properties/title/title-visibility.d.ts +26 -0
  297. package/dist/model/properties/version.d.ts +15 -0
  298. package/dist/model.js +1 -1
  299. package/package.json +3 -3
  300. package/dist/cdn/423EUZVS.js +0 -4
  301. package/dist/cdn/DVXJOYGR.js +0 -4
  302. package/dist/cdn/O4W5ASGJ.js +0 -4
  303. package/dist/cdn/OSZKXW7H.js +0 -4
  304. package/dist/model/chart-model/utils/data.d.ts +0 -37
  305. package/dist/model/chart-model/utils/format.d.ts +0 -46
  306. package/dist/model/chart-model/utils/general.d.ts +0 -95
  307. package/dist/model/chart-model/utils/series.d.ts +0 -37
@@ -1,8 +1,8 @@
1
- import "@arcgis/toolkit/intl";
2
- import { cloneDeep as $, memoize as ne, isEmpty as qe } from "lodash-es";
3
- import { g as ce, e as Oe, a as v, u as de, W as P, d as we, t as h, m as z, n as De, i as H } from "./series-types.js";
1
+ import { fetchT9nStringsBundle as De, getElementLocale as Me } from "@arcgis/toolkit/intl";
2
+ import { cloneDeep as $, memoize as ce, isEmpty as Ue } from "lodash-es";
3
+ import { g as de, e as Ee, a as T, u as ue, W as P, d as $e, t as b, m as Q, n as ke, i as z } from "./series-types.js";
4
4
  import "d3-array";
5
- import { bO as Me, cf as ue, bP as ee, ah as ye, bQ as te, c$ as Pe, bJ as E, l as Y, dc as Ee, aK as _, cT as Re, br as ge, cX as N, aI as I, aG as V, bB as T, b0 as $e, aJ as ke, r as q, U as Xe, V as Ue, cG as je, p as G, de as M, k as We, cE as Ke, bK as Ye, bW as Ge, an as Qe, q as ze, dk as He, cA as _e, dl as ae, cb as Je, c7 as Ze, _ as k, dg as fe, m as et, b as j, bN as tt, b3 as it, b4 as st, b6 as at, bM as re, aL as rt, aM as lt } from "./index.js";
5
+ import { bO as Re, cf as ye, bP as ee, ah as ge, bQ as te, c$ as Xe, bJ as D, l as K, dc as je, aK as H, cT as We, br as fe, cX as I, aI as M, aG as U, bB as N, b0 as _e, g as Ke, bG as Ye, aQ as Ge, aJ as Qe, r as L, U as ze, V as He, cG as Je, p as Y, de as q, k as Ze, cE as et, bK as tt, bW as it, an as st, q as at, dk as rt, cA as nt, dl as re, cb as ot, c7 as lt, _ as k, dg as pe, m as ct, b as j, bN as dt, b3 as ut, b4 as yt, b6 as gt, bM as ne, aL as ft, aM as pt } from "./index.js";
6
6
  import "@arcgis/core/geometry/support/jsonUtils.js";
7
7
  import "@arcgis/core/rest/support/AttributeBinsQuery.js";
8
8
  import "@arcgis/core/rest/support/Query.js";
@@ -10,11 +10,11 @@ import "@arcgis/core/rest/support/StatisticDefinition.js";
10
10
  import "@arcgis/core/time/TimeExtent.js";
11
11
  import "@arcgis/core/core/promiseUtils.js";
12
12
  import "@arcgis/core/request.js";
13
- import "./runtime.js";
13
+ import { g as mt } from "./runtime.js";
14
14
  import "@arcgis/toolkit/dom";
15
- import { substitute as D } from "@arcgis/core/intl.js";
16
- import { a as pe, R as ot } from "./rest-js-object-literals.js";
17
- import { q as nt, h as me, l as L, n as ct, o as dt, j as B, k as C } from "./index3.js";
15
+ import { substitute as w } from "@arcgis/core/intl.js";
16
+ import { a as me, R as xt } from "./rest-js-object-literals.js";
17
+ import { q as St, h as xe, l as C, n as ht, o as Ft, j as v, k as B } from "./index3.js";
18
18
  import { S as J } from "./common.js";
19
19
  import "@arcgis/core/Graphic.js";
20
20
  import "@arcgis/core/renderers/support/jsonUtils.js";
@@ -24,38 +24,38 @@ import "@arcgis/core/smartMapping/statistics/histogram.js";
24
24
  import "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
25
25
  import "simple-statistics";
26
26
  import "@arcgis/core/AttributeBinsGraphic.js";
27
- import { b as X, d as xe, g as ie, e as le, f as ut } from "./data.js";
28
- import { c as yt } from "./index2.js";
27
+ import { b as R, d as Se, g as ie, e as oe, f as bt } from "./data.js";
28
+ import { c as he } from "./index2.js";
29
29
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
30
30
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
31
- v5.0.0-next.98 */
32
- async function gt(t) {
33
- const { config: e, layer: i, xAxisField: s, splitByField: a, layerFieldsInfo: r, aggregationFields: l, fetchNullValues: o } = t, n = r.filter((p) => p.name === a)[0]?.type, g = o !== !0 ? `${a} IS NOT NULL` : "", d = s && o !== !0 ? `${s} IS NOT NULL` : "", { where: x } = e?.dataFilters ?? {}, m = {
34
- where: ue([x, g, d]),
31
+ v5.0.0-next.99 */
32
+ async function Tt(t) {
33
+ const { config: e, layer: i, xAxisField: s, splitByField: a, layerFieldsInfo: r, aggregationFields: n, fetchNullValues: o } = t, l = r.filter((p) => p.name === a)[0]?.type, g = o !== !0 ? `${a} IS NOT NULL` : "", d = s && o !== !0 ? `${s} IS NOT NULL` : "", { where: x } = e?.dataFilters ?? {}, m = {
34
+ where: ye([x, g, d]),
35
35
  // excluding the null values from the list
36
- orderByFields: Pe(a) ? [] : [`${a} ${ce.Ascending}`],
36
+ orderByFields: Xe(a) ? [] : [`${a} ${de.Ascending}`],
37
37
  // default sorting ascending for split-by field
38
38
  geometry: e?.dataFilters?.geometry
39
39
  }, f = i;
40
40
  let u = "";
41
- l.length === 0 ? u = E(f).idField : [u] = l;
42
- let S = await ye({
41
+ n.length === 0 ? u = D(f).idField : [u] = n;
42
+ let S = await ge({
43
43
  queryObject: f,
44
44
  category: e?.series[0].x ?? "",
45
45
  splitByField: a,
46
46
  queryConfig: m
47
47
  });
48
48
  if (e) {
49
- const p = e?.series.map((y) => Y({ where: y.query?.where })?.toString() ?? "").filter((y) => y !== void 0 && y !== "");
50
- S = Ee({
49
+ const p = e?.series.map((y) => K({ where: y.query?.where })?.toString() ?? "").filter((y) => y !== void 0 && y !== "");
50
+ S = je({
51
51
  arrayA: S,
52
52
  arrayB: p,
53
53
  getKey: (y) => y === null ? null : y?.toString()
54
54
  });
55
55
  }
56
- return { categoriesArray: S, splitByFieldType: n, numericalField: u };
56
+ return { categoriesArray: S, splitByFieldType: l, numericalField: u };
57
57
  }
58
- function xi(t, e) {
58
+ function Vi(t, e) {
59
59
  let i = e === "";
60
60
  for (const s of t)
61
61
  if (e === s.name) {
@@ -64,12 +64,12 @@ function xi(t, e) {
64
64
  }
65
65
  return i;
66
66
  }
67
- function Si(t, e) {
68
- const i = Me(t);
67
+ function Oi(t, e) {
68
+ const i = Re(t);
69
69
  let s = e.length === 0, a = 0;
70
70
  for (const r of e) {
71
- for (const l of i)
72
- if (r === l && (a += 1), a === e.length) {
71
+ for (const n of i)
72
+ if (r === n && (a += 1), a === e.length) {
73
73
  s = !0;
74
74
  break;
75
75
  }
@@ -78,7 +78,7 @@ function Si(t, e) {
78
78
  }
79
79
  return s;
80
80
  }
81
- function bi(t, e) {
81
+ function wi(t, e) {
82
82
  e.forEach((i) => {
83
83
  Object.getOwnPropertyNames(i.prototype).forEach((s) => {
84
84
  Object.defineProperty(
@@ -89,21 +89,21 @@ function bi(t, e) {
89
89
  });
90
90
  });
91
91
  }
92
- async function ft(t) {
93
- const { layerInfo: e, config: i, category: s } = t, { layer: a } = e, { where: r } = i?.dataFilters ?? {}, { fetchNullValues: l } = i?.series?.[0]?.query ?? {}, o = l !== !0 ? `${s} IS NOT NULL` : "", c = {
94
- where: ue([r, o]),
92
+ async function At(t) {
93
+ const { layerInfo: e, config: i, category: s } = t, { layer: a } = e, { where: r } = i?.dataFilters ?? {}, { fetchNullValues: n } = i?.series?.[0]?.query ?? {}, o = n !== !0 ? `${s} IS NOT NULL` : "", c = {
94
+ where: ye([r, o]),
95
95
  // excluding the null values from the list
96
96
  orderByFields: [],
97
97
  geometry: i?.dataFilters?.geometry
98
- }, n = ee(a);
98
+ }, l = ee(a);
99
99
  return (
100
100
  // fetch unique category values asynchronously
101
- (await ye({ queryObject: a, category: s, queryConfig: c })).map((d) => {
101
+ (await ge({ queryObject: a, category: s, queryConfig: c })).map((d) => {
102
102
  const x = String(d);
103
103
  return te({
104
104
  fieldName: s,
105
105
  fieldValueToMatch: x,
106
- subtypeInfo: n,
106
+ subtypeInfo: l,
107
107
  // use the retrieved subtype information
108
108
  fieldList: e.layerFieldsInfo
109
109
  // list of field information from the layer
@@ -113,136 +113,208 @@ async function ft(t) {
113
113
  }
114
114
  function W(t, e, i) {
115
115
  const s = t?.axes?.[e];
116
- s?.title !== void 0 ? s.title.content.text = i : s !== void 0 && (s.title = I({
116
+ s?.title !== void 0 ? s.title.content.text = i : s !== void 0 && (s.title = M({
117
117
  text: i,
118
118
  visible: !0,
119
- font: V(T.AxisTitle)
119
+ font: U(N.AxisTitle)
120
120
  }));
121
121
  }
122
- function Se(t) {
122
+ function Fe(t) {
123
123
  const { config: e, layerInfo: i, commonStrings: s, numericFields: a, aggregationType: r } = t;
124
- let l = "";
124
+ let n = "";
125
125
  if (e)
126
- if (Re(e) === Oe.Stacked100)
127
- l = s.utilsStrings.statistics.percent;
126
+ if (We(e) === Ee.Stacked100)
127
+ n = s.utilsStrings.statistics.percent;
128
128
  else {
129
- const c = ge(r, s);
129
+ const c = fe(r, s);
130
130
  if (a.length === 1) {
131
- const n = N(i.layerFieldsInfo, a[0]), g = E(i.layer).idField;
132
- r === v.NoAggregation ? l = n : r === v.Count && g !== void 0 && a[0] === g ? l = s.utilsStrings.statistics.count : l = D(s.axisLabels.aggregationOfFieldName, {
131
+ const l = I(i.layerFieldsInfo, a[0]), g = D(i.layer).idField;
132
+ r === T.NoAggregation ? n = l : r === T.Count && g !== void 0 && a[0] === g ? n = s.utilsStrings.statistics.count : n = w(s.axisLabels.aggregationOfFieldName, {
133
133
  aggregation: c,
134
- fieldName: n
134
+ fieldName: l
135
135
  });
136
- } else a.length > 1 && (r === v.NoAggregation ? l = s.axisLabels.values : l = D(s.axisLabels.aggregationOfValues, {
136
+ } else a.length > 1 && (r === T.NoAggregation ? n = s.axisLabels.values : n = w(s.axisLabels.aggregationOfValues, {
137
137
  aggregation: c
138
138
  }));
139
139
  }
140
- return l;
140
+ return n;
141
141
  }
142
- const be = (t, e, i) => t.axes?.[e] ?? $e(i, t.type)[e], Fe = (t) => {
142
+ const be = (t, e, i) => t.axes?.[e] ?? _e(i, t.type)[e], Te = (t) => {
143
143
  const { config: e, axis: i, axisIndex: s } = t;
144
144
  e.axes !== void 0 && (e.axes[s] = i);
145
- }, Fi = (t) => {
145
+ }, qi = (t) => {
146
146
  const { config: e, axisIndex: i, isMax: s } = t;
147
147
  let a = Number.NaN;
148
148
  return s ? a = e.axes?.[i]?.maximum : a = e.axes?.[i]?.minimum, a ?? Number.NaN;
149
149
  }, F = (t) => {
150
150
  const { config: e, value: i, axisIndex: s, isMax: a } = t, r = e?.axes?.[s];
151
151
  r !== void 0 && (a ? r.maximum = i : r.minimum = i);
152
- }, Ti = (t, e) => {
152
+ }, Pi = (t, e) => {
153
153
  F({ config: t, value: e, axisIndex: 0, isMax: !1 });
154
- }, Te = (t) => t.axes?.[0]?.valueFormat ?? _(), pt = (t, e, i) => {
154
+ }, Ae = (t) => t.axes?.[0]?.valueFormat ?? H(), vt = (t, e, i) => {
155
155
  const s = be(t, 0, e);
156
156
  if (s !== void 0 && i !== void 0) {
157
157
  const a = {
158
158
  ...s,
159
159
  valueFormat: i
160
160
  };
161
- Fe({ config: t, axis: a, axisIndex: 0 });
161
+ Te({ config: t, axis: a, axisIndex: 0 });
162
162
  }
163
- }, oe = (t, e, i) => {
163
+ }, le = (t, e, i) => {
164
164
  const s = t.axes?.[e];
165
165
  s !== void 0 && (s.integerOnlyValues = i);
166
- }, mt = (t) => {
167
- const e = de(t.series);
166
+ }, Bt = (t) => {
167
+ const e = ue(t.series);
168
168
  return e === P.BarSeries || e === P.ComboLineAndBarSeries || e === P.LineSeries;
169
- }, xt = (t) => {
169
+ }, Ct = (t) => {
170
170
  const { axisIndex: e, config: i, isMultiAxis: s } = t;
171
171
  let a = !1;
172
- return e === 0 || e === 1 && s ? a = !0 : e === 2 && (a = mt(i)), a;
173
- }, hi = (t) => {
172
+ return e === 0 || e === 1 && s ? a = !0 : e === 2 && (a = Bt(i)), a;
173
+ }, Di = (t) => {
174
174
  const { axisIndex: e, func: i, config: s } = t;
175
- return xt({ axisIndex: e, config: s, isMultiAxis: !0 }) ? i(e) : void 0;
176
- }, vi = (t, e) => {
175
+ return Ct({ axisIndex: e, config: s, isMultiAxis: !0 }) ? i(e) : void 0;
176
+ }, Mi = (t, e) => {
177
177
  let i;
178
178
  const s = e.axes?.[t]?.valueFormat;
179
- return (t === 0 || t >= 1 && nt(s)) && (i = s), i;
180
- }, Ai = (t) => {
179
+ return (t === 0 || t >= 1 && St(s)) && (i = s), i;
180
+ }, Ui = (t) => {
181
181
  const { config: e, commonStrings: i, valueFormat: s, axisIndex: a = 0 } = t, r = be(e, a, i);
182
182
  if (r !== void 0 && s !== void 0) {
183
- const l = {
183
+ const n = {
184
184
  ...r,
185
185
  valueFormat: s
186
186
  };
187
- Fe({
187
+ Te({
188
188
  config: e,
189
- axis: l,
189
+ axis: n,
190
190
  axisIndex: a
191
191
  });
192
192
  }
193
- }, Bi = (t, e) => t.axes?.[e]?.isLogarithmic ?? !1, Ci = (t) => {
193
+ }, Ei = (t, e) => t.axes?.[e]?.isLogarithmic ?? !1, $i = (t) => {
194
194
  const { config: e, isLogarithmic: i, axisIndex: s } = t, a = e.axes?.[s];
195
195
  a && (a.isLogarithmic = i, F({ config: e, value: null, axisIndex: s, isMax: !0 }), F({ config: e, value: null, axisIndex: s, isMax: !1 }));
196
- }, Li = (t) => {
196
+ }, ki = (t) => {
197
197
  const { config: e, scrollbar: i, axisIndex: s } = t;
198
198
  e.axes?.[s] !== void 0 && (e.axes[s].scrollbar = i);
199
- }, Ii = (t) => t.version, St = (t) => t.title?.content.text ?? "", Vi = (t, e) => {
200
- e.title !== void 0 ? e.title.content.text = t : e.title === void 0 && t !== void 0 && (e.title = I({
201
- text: t,
202
- visible: !0,
203
- font: V(T.ChartTitle)
204
- }));
205
- }, Ni = (t) => t.subtitle?.content.text ?? "", qi = (t, e) => {
206
- e.subtitle !== void 0 ? e.subtitle.content.text = t : e.subtitle === void 0 && t !== void 0 && (e.subtitle = I({
207
- text: t,
208
- visible: !0,
209
- font: V(T.ChartSubtitle)
210
- }));
211
- }, Oi = (t) => t.footer?.content.text ?? "", wi = (t, e) => {
212
- e.footer !== void 0 ? e.footer.content.text = t : e.footer === void 0 && t !== void 0 && (e.footer = I({
199
+ };
200
+ class se extends EventTarget {
201
+ constructor() {
202
+ super(...arguments), this.dirtyAsyncSetters = [], this.asyncConfigUpdateInProgress = !1, this.pendingUpdates = 0, this.dataStore = {}, this.asyncUpdatesPromise = new Promise((e) => {
203
+ this.resolveSetup = e;
204
+ }), this.emitConfigUpdate = (e) => {
205
+ this.dispatchEvent(
206
+ new CustomEvent("arcgisChartsModelConfigChange", {
207
+ detail: { config: this._config, setterName: e }
208
+ })
209
+ );
210
+ }, this.guardSetterFromAsyncOverwrite = async (e) => {
211
+ e(), this.asyncConfigUpdateInProgress && (await this.asyncUpdatesPromise, e());
212
+ };
213
+ }
214
+ /**
215
+ * Checks if the current chart model is for the same chart as another chart model.
216
+ *
217
+ * @param otherModel - The other chart model to compare to.
218
+ */
219
+ isSameChartAs(e) {
220
+ const i = e?.layer;
221
+ return i !== void 0 && this._config.id === e?.chartId && this.layerInfo?.layer.id === i.id;
222
+ }
223
+ /**
224
+ * Can be awaited to allow any pending async updates to complete.
225
+ * @public
226
+ */
227
+ async update() {
228
+ await this.asyncUpdatesPromise;
229
+ }
230
+ /**
231
+ * A function that loads the config based on the provided props.
232
+ *
233
+ * @param params.layer - The layer to be used as the data source for the chart.
234
+ * @param params.iLayer - The layer description to use if the layer is not provided.
235
+ * @param params.config - The config object to be loaded.
236
+ */
237
+ async loadConfigFromLayer(e) {
238
+ const { layer: i, iLayer: s, config: a } = e;
239
+ this.commonStrings = await De(
240
+ Me(document.documentElement).t9nLocale,
241
+ mt("./assets/common/t9n"),
242
+ "messages."
243
+ );
244
+ let r = i;
245
+ if (!r && s && (r = await Ke(s)), r) {
246
+ const n = await Ye(r, !0), o = D(r).idField;
247
+ this.layerInfo = {
248
+ layer: r,
249
+ layerFieldsInfo: n,
250
+ objectIdField: o
251
+ };
252
+ }
253
+ this._config = a ? await he(a) : this.generateDefaultConfig(), this._config.legend !== void 0 && this._config.legend?.title === void 0 && (this._config.legend.title = Ge().title), s && (this._config.iLayer = s);
254
+ }
255
+ /**
256
+ * Manually block the async guard to queue up config updates until unblocked.
257
+ */
258
+ startAsyncUpdate() {
259
+ this.pendingUpdates === 0 && (this.asyncConfigUpdateInProgress = !0, this.asyncUpdatesPromise = new Promise((e) => {
260
+ this.resolveSetup = e;
261
+ })), this.pendingUpdates += 1;
262
+ }
263
+ /**
264
+ * Manually unblock the async guard to allow queued config updates to proceed.
265
+ */
266
+ finishAsyncUpdate() {
267
+ this.pendingUpdates -= 1, this.pendingUpdates === 0 && (this.asyncConfigUpdateInProgress = !1, this.resolveSetup?.());
268
+ }
269
+ // #endregion
270
+ }
271
+ function It(t, e, i) {
272
+ const s = i.set, a = i.value;
273
+ return s && (i.set = function(r) {
274
+ this.guardSetterFromAsyncOverwrite(() => {
275
+ s.call(this, r), this.emitConfigUpdate(e);
276
+ });
277
+ }), a && (i.value = function(...r) {
278
+ this.guardSetterFromAsyncOverwrite(() => {
279
+ a.apply(this, r), this.emitConfigUpdate(e);
280
+ });
281
+ }), i;
282
+ }
283
+ var Lt = Object.defineProperty, Nt = Object.getOwnPropertyDescriptor, Vt = (t, e, i, s) => {
284
+ for (var a = Nt(e, i), r = t.length - 1, n; r >= 0; r--)
285
+ (n = t[r]) && (a = n(e, i, a) || a);
286
+ return a && Lt(e, i, a), a;
287
+ };
288
+ const ve = (t) => t.title?.content.text ?? "", Ot = (t, e) => {
289
+ e.title !== void 0 ? e.title.content.text = t : e.title === void 0 && t !== void 0 && (e.title = M({
213
290
  text: t,
214
291
  visible: !0,
215
- font: V(T.DescriptionText)
216
- }));
217
- }, Di = (t) => t.title ? t.title.visible ?? !0 : !1, Mi = (t, e) => {
218
- e.title !== void 0 ? e.title.visible = t : e.title === void 0 && (e.title = I({
219
- text: "",
220
- visible: t,
221
- font: V(T.ChartTitle)
222
- }));
223
- }, Pi = (t) => t.subtitle ? t.subtitle.visible ?? !0 : !1, Ei = (t, e) => {
224
- e.subtitle !== void 0 ? e.subtitle.visible = t : e.subtitle === void 0 && (e.subtitle = I({
225
- text: "",
226
- visible: t,
227
- font: V(T.ChartSubtitle)
228
- }));
229
- }, bt = (t) => t.footer?.visible ?? !1, Ri = (t, e) => {
230
- e.footer !== void 0 ? e.footer.visible = t : e.footer === void 0 && t !== bt(e) && (e.footer = I({
231
- text: "",
232
- visible: !0,
233
- font: V(T.DescriptionText)
292
+ font: U(N.ChartTitle)
234
293
  }));
235
- }, $i = (t) => t.chartRenderer, ki = (t, e) => {
236
- e.chartRenderer = t;
237
- }, Xi = (t, e) => t.axes?.[e]?.title?.content, Ui = (t) => {
294
+ };
295
+ class wt extends se {
296
+ /**
297
+ * The chart title text.
298
+ */
299
+ get titleText() {
300
+ return ve(this._config);
301
+ }
302
+ set titleText(e) {
303
+ Ot(e, this._config);
304
+ }
305
+ }
306
+ Vt([
307
+ It
308
+ ], wt.prototype, "titleText");
309
+ const Ri = (t, e) => t.axes?.[e]?.title?.content, Xi = (t) => {
238
310
  const { config: e, axisIndex: i, symbol: s } = t, a = e.axes?.[i];
239
311
  if (a !== void 0) {
240
312
  const r = a.title?.content.text;
241
- (a.title === void 0 || s === void 0) && (a.title = I({
313
+ (a.title === void 0 || s === void 0) && (a.title = M({
242
314
  text: "",
243
315
  visible: !0,
244
- font: V(T.AxisTitle),
245
- type: T.AxisTitle
316
+ font: U(N.AxisTitle),
317
+ type: N.AxisTitle
246
318
  })), s !== void 0 && (a.title.content = s), a.title.content.text = r;
247
319
  }
248
320
  }, ji = (t) => {
@@ -253,168 +325,168 @@ const be = (t, e, i) => t.axes?.[e] ?? $e(i, t.type)[e], Fe = (t) => {
253
325
  for (const i of e.axes ?? [])
254
326
  if (i !== void 0) {
255
327
  const s = i.labels?.content.text;
256
- t === void 0 ? i.labels = I({
328
+ t === void 0 ? i.labels = M({
257
329
  text: "",
258
330
  visible: !0,
259
- font: V(T.AxisLabels),
260
- type: T.AxisLabels
331
+ font: U(N.AxisLabels),
332
+ type: N.AxisLabels
261
333
  }) : i.labels.content = $(t), i.labels.content.text = s;
262
334
  }
263
- }, Ki = (t) => {
335
+ }, _i = (t) => {
264
336
  for (const e of t.axes ?? [])
265
337
  if (e?.lineSymbol !== void 0)
266
338
  return e.lineSymbol;
267
- }, Yi = (t, e) => {
339
+ }, Ki = (t, e) => {
268
340
  for (const i of e.axes ?? [])
269
- i !== void 0 && (i.lineSymbol = $(t) ?? ke());
270
- }, Gi = (t) => {
341
+ i !== void 0 && (i.lineSymbol = $(t) ?? Qe());
342
+ }, Yi = (t) => {
271
343
  for (const e of t.axes ?? [])
272
344
  if (e?.grid !== void 0)
273
345
  return e.grid;
274
- }, Qi = (t, e, i) => {
346
+ }, Gi = (t, e, i) => {
275
347
  const s = e.axes;
276
348
  i.forEach((a) => {
277
349
  s?.[a] !== void 0 && (s[a].grid = $(t));
278
350
  });
279
- }, U = (t, e) => e.axes?.[t]?.title?.content.text ?? "", zi = (t, e, i) => {
351
+ }, X = (t, e) => e.axes?.[t]?.title?.content.text ?? "", Qi = (t, e, i) => {
280
352
  const s = i.axes?.[e];
281
- s?.title !== void 0 ? s.title.content.text = t : s !== void 0 && s?.title === void 0 && (s.title = I({
353
+ s?.title !== void 0 ? s.title.content.text = t : s !== void 0 && s?.title === void 0 && (s.title = M({
282
354
  text: t,
283
355
  visible: !0,
284
- font: V(T.AxisTitle)
356
+ font: U(N.AxisTitle)
285
357
  }));
286
- }, Hi = (t, e) => e.axes?.[t]?.visible ?? !0, _i = (t, e, i) => {
358
+ }, zi = (t, e) => e.axes?.[t]?.visible ?? !0, Hi = (t, e, i) => {
287
359
  const s = i.axes?.[e];
288
360
  s !== void 0 && (s.visible = t);
289
361
  }, Ji = (t, e) => e.axes?.[t]?.labels?.visible ?? !0, Zi = (t, e, i) => {
290
362
  const s = i.axes?.[e];
291
- s?.labels !== void 0 ? s.labels.visible = t : s !== void 0 && s?.labels === void 0 && (s.labels = I({
363
+ s?.labels !== void 0 ? s.labels.visible = t : s !== void 0 && s?.labels === void 0 && (s.labels = M({
292
364
  text: "",
293
365
  visible: t,
294
- font: V(T.AxisLabels),
295
- type: T.AxisLabels
366
+ font: U(N.AxisLabels),
367
+ type: N.AxisLabels
296
368
  }));
297
369
  }, es = (t, e) => e.axes?.[t]?.title?.visible ?? !1, ts = (t, e, i) => {
298
370
  const s = i.axes?.[e];
299
- s?.title !== void 0 ? s.title.visible = t : s !== void 0 && s?.title === void 0 && (s.title = I({
300
- text: U(e, i),
371
+ s?.title !== void 0 ? s.title.visible = t : s !== void 0 && s?.title === void 0 && (s.title = M({
372
+ text: X(e, i),
301
373
  visible: t,
302
- font: V(T.AxisTitle)
374
+ font: U(N.AxisTitle)
303
375
  }));
304
376
  }, is = (t, e) => t.axes?.[e]?.displayZeroLine ?? !1, ss = (t, e, i) => {
305
377
  t.axes?.[i] !== void 0 && (t.axes[i].displayZeroLine = e);
306
378
  }, as = (t, e) => t.axes?.[e]?.displayCursorTooltip ?? !1, rs = (t) => {
307
379
  const { config: e, displayCursorTooltip: i, axisIndex: s } = t;
308
380
  e.axes?.[s] !== void 0 && (e.axes[s].displayCursorTooltip = i);
309
- }, ls = (t, e) => t.axes?.[e]?.buffer ?? !1, os = (t) => {
381
+ }, ns = (t, e) => t.axes?.[e]?.buffer ?? !1, os = (t) => {
310
382
  const { config: e, buffer: i, axisIndex: s } = t, a = e.axes?.[s];
311
383
  a !== void 0 && (a.buffer = i);
312
- }, ns = (t, e) => t.axes?.[e]?.tickSpacing, cs = (t) => {
384
+ }, ls = (t, e) => t.axes?.[e]?.tickSpacing, cs = (t) => {
313
385
  const { config: e, tickSpacing: i, axisIndex: s } = t;
314
386
  e.axes?.[s] !== void 0 && (e.axes[s].tickSpacing = i);
315
387
  }, ds = (t, e) => t.axes?.[e]?.integerOnlyValues ?? !1, us = (t) => {
316
388
  const { config: e, integerOnlyValues: i, axisIndex: s } = t;
317
389
  e.axes?.[s] !== void 0 && (e.axes[s].integerOnlyValues = i);
318
- }, ys = (t, e) => {
319
- e.series.forEach((i) => {
320
- i.query && (i.query.fetchNullValues = t);
321
- });
322
- }, gs = (t) => t.series.some((e) => e.query?.fetchNullValues), fs = (t) => (
323
- // TODO: Look into split-by values gotchas cases once done
324
- t.series.map((e) => String(Y({ where: e.query?.where }))).filter((e) => e !== void 0 && e.trim() !== "")
325
- ), ps = (t) => t.dataFilters, ms = (t, e) => {
326
- t !== void 0 ? e.dataFilters = t : delete e.dataFilters;
327
- }, Ft = (t) => {
390
+ }, qt = (t) => t.series.map((e) => String(K({ where: e.query?.where }))).filter((e) => e !== void 0 && e.trim() !== "");
391
+ class ys extends se {
392
+ /**
393
+ * The split-by values for the chart.
394
+ */
395
+ get splitByValues() {
396
+ return qt(this._config);
397
+ }
398
+ }
399
+ const Pt = (t) => {
328
400
  let e;
329
401
  const i = t.series[0];
330
- return q(i) && (e = i.temporalBinning?.size), e;
331
- }, Tt = (t) => {
402
+ return L(i) && (e = i.temporalBinning?.size), e;
403
+ }, Dt = (t) => {
332
404
  let e;
333
405
  const i = t.series[0];
334
- return q(i) && (e = i.temporalBinning?.unit), e;
335
- }, ht = (t) => {
406
+ return L(i) && (e = i.temporalBinning?.unit), e;
407
+ }, Mt = (t) => {
336
408
  let e;
337
409
  const i = t.series[0];
338
- return q(i) && (e = i.temporalBinning?.timeAggregationType), e;
339
- }, vt = (t) => {
410
+ return L(i) && (e = i.temporalBinning?.timeAggregationType), e;
411
+ }, Ut = (t) => {
340
412
  let e;
341
413
  const i = t.series[0];
342
- return q(i) && (e = i.temporalBinning?.trimIncompleteTimeInterval), e;
343
- }, At = (t) => {
414
+ return L(i) && (e = i.temporalBinning?.trimIncompleteTimeInterval), e;
415
+ }, Et = (t) => {
344
416
  let e;
345
417
  const i = t.series[0];
346
- return q(i) && (e = i.temporalBinning?.nullPolicy), e;
347
- }, he = (t, e) => {
418
+ return L(i) && (e = i.temporalBinning?.nullPolicy), e;
419
+ }, Be = (t, e) => {
348
420
  e?.series?.forEach((i) => {
349
- q(i) && (i.temporalBinning ??= {}, i.temporalBinning.size = t);
421
+ L(i) && (i.temporalBinning ??= {}, i.temporalBinning.size = t);
350
422
  }), F({ config: e, value: null, axisIndex: 1, isMax: !1 }), F({ config: e, value: null, axisIndex: 1, isMax: !0 });
351
- }, Bt = (t, e) => {
423
+ }, $t = (t, e) => {
352
424
  e?.series?.forEach((i) => {
353
- q(i) && (i.temporalBinning ??= {}, i.temporalBinning.nullPolicy = t);
425
+ L(i) && (i.temporalBinning ??= {}, i.temporalBinning.nullPolicy = t);
354
426
  }), F({ config: e, value: null, axisIndex: 1, isMax: !1 }), F({ config: e, value: null, axisIndex: 1, isMax: !0 });
355
- }, xs = (t, e) => {
427
+ }, gs = (t, e) => {
356
428
  e.series?.forEach((i) => {
357
- q(i) && (i.temporalBinning ??= {}, i.temporalBinning.unit = t);
429
+ L(i) && (i.temporalBinning ??= {}, i.temporalBinning.unit = t);
358
430
  }), F({ config: e, value: null, axisIndex: 1, isMax: !1 }), F({ config: e, value: null, axisIndex: 1, isMax: !0 });
359
- }, Ss = (t, e) => {
431
+ }, fs = (t, e) => {
360
432
  e.series?.forEach((i) => {
361
- q(i) && (i.temporalBinning ??= {}, i.temporalBinning.timeAggregationType = t);
433
+ L(i) && (i.temporalBinning ??= {}, i.temporalBinning.timeAggregationType = t);
362
434
  }), F({ config: e, value: null, axisIndex: 1, isMax: !1 }), F({ config: e, value: null, axisIndex: 1, isMax: !0 });
363
- }, bs = (t, e) => {
435
+ }, ps = (t, e) => {
364
436
  e.series?.forEach((i) => {
365
- q(i) && (i.temporalBinning ??= {}, i.temporalBinning.trimIncompleteTimeInterval = t);
437
+ L(i) && (i.temporalBinning ??= {}, i.temporalBinning.trimIncompleteTimeInterval = t);
366
438
  }), F({ config: e, value: null, axisIndex: 1, isMax: !1 }), F({ config: e, value: null, axisIndex: 1, isMax: !0 });
367
- }, Fs = (t) => {
368
- he(0, t);
369
- }, Ct = (t) => t.series.length ?? 0, Ts = (t, e) => e.series[t].visible ?? !0;
370
- function hs(t, e) {
371
- let i;
372
- return t.length !== 0 && e < t.length && (i = t[e].dataTooltipValueFormat), i;
373
- }
374
- function vs(t) {
375
- const { series: e, seriesIndex: i, valueFormat: s } = t;
376
- e.length !== 0 && i < e.length && (e[i].dataTooltipValueFormat = s);
439
+ }, ms = (t) => {
440
+ Be(0, t);
441
+ }, Ce = (t) => t.series.length ?? 0;
442
+ class xs extends se {
443
+ /**
444
+ * The length of the series array.
445
+ */
446
+ get seriesLength() {
447
+ return Ce(this._config);
448
+ }
377
449
  }
378
- function As(t, e) {
450
+ function Ss(t, e) {
379
451
  let i;
380
452
  return e !== void 0 && (i = { ...e }, i.legend !== void 0 && (i.legend.position = t)), i;
381
453
  }
382
- function Bs(t, e) {
454
+ function hs(t, e) {
383
455
  let i;
384
456
  return e !== void 0 && (i = { ...e }, i.legend !== void 0 && (i.legend.visible = t)), i;
385
457
  }
386
- function Cs(t, e) {
458
+ function Fs(t, e) {
387
459
  let i;
388
460
  return e !== void 0 && (i = { ...e, rotated: t }), i;
389
461
  }
390
- function ve(t) {
462
+ function Ie(t) {
391
463
  let e;
392
464
  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;
393
465
  }
394
- function Ls(t, e) {
395
- return e != null || me(t);
466
+ function bs(t, e) {
467
+ return e != null || xe(t);
396
468
  }
397
- async function Lt(t) {
469
+ async function kt(t) {
398
470
  const { queryObject: e, chartConfig: i, options: s, splitByField: a } = t;
399
- let r = [], l;
400
- const o = $(i), c = o.series[0], n = Ge({
471
+ let r = [], n;
472
+ const o = $(i), c = o.series[0], l = it({
401
473
  queryObject: e,
402
474
  chartConfig: o,
403
475
  runtimeDataFilters: s?.runtimeDataFilters,
404
476
  ignoreViewExtent: s?.ignoreViewExtent
405
477
  });
406
- if (n.outStatistics?.[0]?.outStatisticFieldName && (n.outStatistics[0].outStatisticFieldName = Qe.outStatistics.outStatisticFieldName), q(c) && ze({
407
- xAxisValueFormatType: He(o),
478
+ if (l.outStatistics?.[0]?.outStatisticFieldName && (l.outStatistics[0].outStatisticFieldName = st.outStatistics.outStatisticFieldName), L(c) && at({
479
+ xAxisValueFormatType: rt(o),
408
480
  setTimeBinningInfoWhenNotProvided: s?.setTimeBinningInfoWhenNotProvided,
409
481
  seriesConfig: c
410
- }) && _e(e)) {
411
- const { temporalBinning: g, x: d } = c, { uniqueQuery: x } = await ae({
482
+ }) && nt(e)) {
483
+ const { temporalBinning: g, x: d } = c, { uniqueQuery: x } = await re({
412
484
  chartConfig: o,
413
- queryConfig: n,
485
+ queryConfig: l,
414
486
  queryObject: e,
415
487
  options: s
416
488
  });
417
- l = await Je({
489
+ n = await ot({
418
490
  queryObject: e,
419
491
  dateField: d,
420
492
  splitByField: a,
@@ -422,7 +494,7 @@ async function Lt(t) {
422
494
  temporalBinning: g
423
495
  }), r = Array.from(
424
496
  new Set(
425
- l.flatMap((m) => {
497
+ n.flatMap((m) => {
426
498
  const { stackedAttributes: f } = m;
427
499
  let u = [];
428
500
  return f && (u = f.map((S) => S[a]).filter((S) => S !== void 0)), u;
@@ -430,28 +502,28 @@ async function Lt(t) {
430
502
  ).values()
431
503
  );
432
504
  } else {
433
- const { uniqueQuery: g } = await ae({
505
+ const { uniqueQuery: g } = await re({
434
506
  chartConfig: o,
435
507
  queryObject: e,
436
- queryConfig: n,
508
+ queryConfig: l,
437
509
  options: s
438
510
  });
439
- l = await Ze({
511
+ n = await lt({
440
512
  queryObject: e,
441
513
  queryConfig: g,
442
514
  featureCount: 1
443
515
  }), r = Array.from(
444
516
  new Set(
445
- l.map((d) => d.attributes[a]).filter((d) => d !== void 0)
517
+ n.map((d) => d.attributes[a]).filter((d) => d !== void 0)
446
518
  ).values()
447
519
  );
448
520
  }
449
- return { allValues: r, preFetchedQueryResponse: l };
521
+ return { allValues: r, preFetchedQueryResponse: n };
450
522
  }
451
- function It(t, e) {
523
+ function Rt(t, e) {
452
524
  const i = /* @__PURE__ */ new Map();
453
525
  return t.series.forEach((s) => {
454
- let a = Y({
526
+ let a = K({
455
527
  where: s.query?.where,
456
528
  // normalize the value so it matches what we get from getAllValues()
457
529
  // Refer to https://devtopia.esri.com/WebGIS/arcgis-charts/issues/8127
@@ -461,24 +533,24 @@ function It(t, e) {
461
533
  escape: !1
462
534
  });
463
535
  e && a !== null && (a = Number(a));
464
- const r = de([s]);
536
+ const r = ue([s]);
465
537
  r !== void 0 && i.set(r, [
466
538
  ...i.get(r) ?? [],
467
539
  a
468
540
  ]);
469
541
  }), i;
470
542
  }
471
- function Vt(t) {
543
+ function Xt(t) {
472
544
  const { allValues: e, configUniqueValuesPerSeriesType: i, initialConfigWasEmpty: s } = t, a = /* @__PURE__ */ new Map();
473
545
  return Array.from(i.keys()).forEach((r) => {
474
- const l = i.get(r) ?? [];
546
+ const n = i.get(r) ?? [];
475
547
  let o = [];
476
548
  s ? o = e : e.forEach((c) => {
477
- l.includes(c) || o.push(c);
549
+ n.includes(c) || o.push(c);
478
550
  }), a.set(r, o);
479
551
  }), a;
480
552
  }
481
- function Nt(t) {
553
+ function jt(t) {
482
554
  const { chartConfig: e, missingValue: i, splitByField: s, seriesTemplate: a } = t, r = JSON.parse(
483
555
  JSON.stringify({
484
556
  ...e.series[0],
@@ -490,41 +562,41 @@ function Nt(t) {
490
562
  const o = r.id;
491
563
  r.query.outStatistics[0].outStatisticFieldName = o, "y" in r && (r.y = o);
492
564
  }
493
- const l = typeof i == "number" || i === null ? i : `'${i}'`;
494
- r.query.where = `${s}=${l}`;
565
+ const n = typeof i == "number" || i === null ? i : `'${i}'`;
566
+ r.query.where = `${s}=${n}`;
495
567
  }
496
568
  return r;
497
569
  }
498
- async function qt(t) {
570
+ async function Wt(t) {
499
571
  const { updateSplitBySeries: e, config: i, options: s, queryObject: a } = t, { seriesTemplate: r } = e ?? {};
500
- let l;
572
+ let n;
501
573
  if (e !== void 0 && i !== void 0 && (i.series.length > 0 || r !== void 0) && e.addMissingSeries) {
502
574
  const o = i.series.length === 0;
503
575
  i.series.length === 0 && r !== void 0 && i.series.push(r);
504
- const c = G(i.series);
505
- if ((c === M.BoxPlotMonoFieldAndSplitBy || c === M.BoxPlotMultiFieldsAndSplitBy || c === M.BoxPlotMonoFieldAndCategoryAndSplitBy || c === M.BarAndLineSplitBy || c === M.BarAndLineSplitByNoAggregation) && a !== void 0) {
506
- const n = We(i.series[0]?.query?.where), g = Ke(a);
576
+ const c = Y(i.series);
577
+ if ((c === q.BoxPlotMonoFieldAndSplitBy || c === q.BoxPlotMultiFieldsAndSplitBy || c === q.BoxPlotMonoFieldAndCategoryAndSplitBy || c === q.BarAndLineSplitBy || c === q.BarAndLineSplitByNoAggregation) && a !== void 0) {
578
+ const l = Ze(i.series[0]?.query?.where), g = et(a);
507
579
  await g.load();
508
- const d = g.getField(n)?.toJSON(), x = Ye(d), m = await Lt({
580
+ const d = g.getField(l)?.toJSON(), x = tt(d), m = await kt({
509
581
  queryObject: a,
510
582
  chartConfig: i,
511
- splitByField: n,
583
+ splitByField: l,
512
584
  options: s
513
585
  }), { allValues: f } = m;
514
- if ({ preFetchedQueryResponse: l } = m, f.length > 0) {
515
- const u = It(i, x), S = Vt({
586
+ if ({ preFetchedQueryResponse: n } = m, f.length > 0) {
587
+ const u = Rt(i, x), S = Xt({
516
588
  allValues: f,
517
589
  configUniqueValuesPerSeriesType: u,
518
590
  initialConfigWasEmpty: o
519
591
  });
520
592
  Array.from(S.keys()).forEach((p) => {
521
- (S.get(p) ?? []).forEach((b) => {
593
+ (S.get(p) ?? []).forEach((h) => {
522
594
  i.series.push(
523
- Nt({
595
+ jt({
524
596
  chartConfig: i,
525
597
  seriesTemplate: r,
526
- missingValue: b,
527
- splitByField: n
598
+ missingValue: h,
599
+ splitByField: l
528
600
  })
529
601
  );
530
602
  }), o && i.series.shift();
@@ -532,108 +604,108 @@ async function qt(t) {
532
604
  }
533
605
  }
534
606
  }
535
- return l;
607
+ return n;
536
608
  }
537
- function Ot(t, e) {
538
- e && !me(e) && (e = je({ chartConfig: e, queryObject: t }));
609
+ function _t(t, e) {
610
+ e && !xe(e) && (e = Je({ chartConfig: e, queryObject: t }));
539
611
  }
540
- async function Is(t) {
612
+ async function Ts(t) {
541
613
  const {
542
614
  configToAlter: e,
543
615
  layer: i,
544
616
  addMissingSeries: s,
545
617
  updateSplitBySeries: a,
546
618
  chartContainer: r,
547
- creation: l,
619
+ creation: n,
548
620
  queryObject: o,
549
621
  options: c,
550
- previousConfig: n
622
+ previousConfig: l
551
623
  } = t;
552
624
  let g = e, d;
553
- return Ot(i, g), g = await yt(g, i), s && (d = await qt({
625
+ return _t(i, g), g = await he(g, i), s && (d = await Wt({
554
626
  updateSplitBySeries: a,
555
627
  config: g,
556
628
  options: c,
557
629
  queryObject: o
558
- })), (l || n && Xe(n, g)) && (g = Ue(g, r)), { alteredConfig: g, preFetchedQueryResponse: d };
630
+ })), (n || l && ze(l, g)) && (g = He(g, r)), { alteredConfig: g, preFetchedQueryResponse: d };
559
631
  }
560
- const Vs = (t) => {
561
- const { xField: e, config: i, layerInfo: s } = t, { layerFieldsInfo: a } = s, r = U(0, i), l = wt(i), o = k(i), c = i.series[0];
562
- if (typeof e == "string" && l !== e && c && (c.x = e, ve(i), l === r || o)) {
563
- const n = N(a, e);
564
- W(i, 0, n);
632
+ const As = (t) => {
633
+ const { xField: e, config: i, layerInfo: s } = t, { layerFieldsInfo: a } = s, r = X(0, i), n = Kt(i), o = k(i), c = i.series[0];
634
+ if (typeof e == "string" && n !== e && c && (c.x = e, Ie(i), n === r || o)) {
635
+ const l = I(a, e);
636
+ W(i, 0, l);
565
637
  }
566
- }, wt = (t) => t.series[0].x ?? "", Ns = (t) => t.hideEmptyRowsAndColumns, qs = (t, e) => {
638
+ }, Kt = (t) => t.series[0].x ?? "", vs = (t) => t.hideEmptyRowsAndColumns, Bs = (t, e) => {
567
639
  t.hideEmptyRowsAndColumns = e;
568
- }, Os = (t, e) => {
640
+ }, Cs = (t, e) => {
569
641
  const i = t.series[0];
570
642
  i.heatRulesType = e;
571
- }, ws = (t) => t.series[0].heatRulesType, Ds = (t, e) => {
643
+ }, Is = (t) => t.series[0].heatRulesType, Ls = (t, e) => {
572
644
  const i = t.series[0];
573
645
  i.gradientRules = e;
574
- }, Ms = (t) => t.series[0].gradientRules, Ps = (t) => {
575
- const { yField: e, config: i, layerInfo: s } = t, { layerFieldsInfo: a } = s, r = U(1, i), l = Dt(i), o = k(i), c = i.series[0];
576
- if (typeof e == "string" && l !== e && c && (c.y = e, ve(i), l === r || o)) {
577
- const n = N(a, e);
578
- W(i, 1, n);
646
+ }, Ns = (t) => t.series[0].gradientRules, Vs = (t) => {
647
+ const { yField: e, config: i, layerInfo: s } = t, { layerFieldsInfo: a } = s, r = X(1, i), n = Yt(i), o = k(i), c = i.series[0];
648
+ if (typeof e == "string" && n !== e && c && (c.y = e, Ie(i), n === r || o)) {
649
+ const l = I(a, e);
650
+ W(i, 1, l);
579
651
  }
580
- }, Dt = (t) => t.series[0].y ?? "", Es = (t, e) => {
652
+ }, Yt = (t) => t.series[0].y ?? "", Os = (t, e) => {
581
653
  const i = e.series[0];
582
654
  i.xTemporalBinning = t;
583
- }, Rs = (t) => t.series[0].xTemporalBinning, $s = (t, e) => {
655
+ }, ws = (t) => t.series[0].xTemporalBinning, qs = (t, e) => {
584
656
  const i = e.series[0];
585
657
  i.yTemporalBinning = t;
586
- }, ks = (t) => t.series[0].yTemporalBinning, Mt = (t, e) => {
658
+ }, Ps = (t) => t.series[0].yTemporalBinning, Gt = (t, e) => {
587
659
  e.orderOptions ??= {};
588
- const i = e.axes?.[0]?.valueFormat?.type === "category" ? h.Category : h.YValue, s = Z(e)[0], a = e.axes?.[1]?.valueFormat?.type === "category" ? h.Category : h.YValue, r = Z(e)[1], l = {
660
+ const i = e.axes?.[0]?.valueFormat?.type === "category" ? b.Category : b.YValue, s = Z(e)[0], a = e.axes?.[1]?.valueFormat?.type === "category" ? b.Category : b.YValue, r = Z(e)[1], n = {
589
661
  ...e.orderOptions.data ?? {},
590
- orderType: h.MultiAxes
662
+ orderType: b.MultiAxes
591
663
  };
592
- s === J.customSort && i === h.Category && (l.orderByX = [...t]), r === J.customSort && a === h.Category && (l.orderByY = [...t]), Object.keys(l).length > 1 && (e.orderOptions.data = l);
593
- }, Xs = (t, e) => {
664
+ s === J.customSort && i === b.Category && (n.orderByX = [...t]), r === J.customSort && a === b.Category && (n.orderByY = [...t]), Object.keys(n).length > 1 && (e.orderOptions.data = n);
665
+ }, Ds = (t, e) => {
594
666
  const i = e.series[0];
595
667
  i.gridLine && (i.gridLine.width = t);
596
- }, Us = (t) => t.series[0].gridLine?.width, js = (t, e) => {
668
+ }, Ms = (t) => t.series[0].gridLine?.width, Us = (t, e) => {
597
669
  const i = e.series[0], s = t?.length === 4 && t.every((a) => typeof a == "number");
598
670
  i.gridLine && s && (i.gridLine.color = t);
599
- }, Ws = (t) => t.series[0].gridLine?.color, Ks = (t, e) => {
671
+ }, Es = (t) => t.series[0].gridLine?.color, $s = (t, e) => {
600
672
  const i = e.legend;
601
673
  i && (i.position = t);
602
- }, Ys = (t) => t.legend?.position ?? we.Bottom, Gs = (t) => t.series[0].query?.outStatistics?.[0]?.onStatisticField, Qs = (t, e) => {
674
+ }, ks = (t) => t.legend?.position ?? $e.Bottom, Rs = (t) => t.series[0].query?.outStatistics?.[0]?.onStatisticField, Xs = (t, e) => {
603
675
  const i = e.series[0].query?.outStatistics?.[0];
604
676
  i && (i.onStatisticField = t, i.outStatisticFieldName = `${i.statisticType}_${t}`);
605
- }, zs = (t) => t.series[0].query?.outStatistics?.[0].statisticType ?? v.Count, Hs = (t, e) => {
677
+ }, js = (t) => t.series[0].query?.outStatistics?.[0].statisticType ?? T.Count, Ws = (t, e) => {
606
678
  const i = e.series[0]?.query?.outStatistics?.[0];
607
- i && t !== v.NoAggregation && (i.statisticType = t, i.outStatisticFieldName = `${t}_${i.onStatisticField}`);
608
- }, _s = (t) => t.nullPolicy, Js = (t, e) => {
679
+ i && t !== T.NoAggregation && (i.statisticType = t, i.outStatisticFieldName = `${t}_${i.onStatisticField}`);
680
+ }, _s = (t) => t.nullPolicy, Ks = (t, e) => {
609
681
  e.nullPolicy = t;
610
- }, Zs = (t) => t.series[0].emptyCells?.text, ea = (t, e) => {
682
+ }, Ys = (t) => t.series[0].emptyCells?.text, Gs = (t, e) => {
611
683
  e.series[0].emptyCells ? e.series[0].emptyCells.text = t : e.series[0].emptyCells = { text: t };
612
- }, ta = (t) => t.series[0].emptyCells?.symbol, ia = (t, e) => {
684
+ }, Qs = (t) => t.series[0].emptyCells?.symbol, zs = (t, e) => {
613
685
  e.series[0].emptyCells ? e.series[0].emptyCells.symbol = t : e.series[0].emptyCells = { symbol: t };
614
686
  };
615
- function R(t) {
616
- const { seriesIndex: e, xAxisField: i, aggregationType: s, config: a, layerInfo: r, commonStrings: l } = t, o = E(r?.layer).idField;
687
+ function E(t) {
688
+ const { seriesIndex: e, xAxisField: i, aggregationType: s, config: a, layerInfo: r, commonStrings: n } = t, o = D(r?.layer).idField;
617
689
  let c;
618
- const n = a.series[e ?? 0];
690
+ const l = a.series[e ?? 0];
619
691
  let g = !1, d = !1;
620
- if (n === void 0) {
692
+ if (l === void 0) {
621
693
  const f = a.series;
622
- g = f.slice(0, e).every((u) => B(u)), d = f.slice(0, e).every((u) => C(u));
694
+ g = f.slice(0, e).every((u) => v(u)), d = f.slice(0, e).every((u) => B(u));
623
695
  } else
624
- g = B(n), d = C(n);
625
- g ? c = it({
626
- commonStrings: l,
696
+ g = v(l), d = B(l);
697
+ g ? c = ut({
698
+ commonStrings: n,
627
699
  seriesIndex: e,
628
700
  objectIDField: o
629
- }) : d ? c = st({
630
- commonStrings: l,
701
+ }) : d ? c = yt({
702
+ commonStrings: n,
631
703
  seriesIndex: e,
632
704
  objectIDField: o
633
- }) : c = at({
705
+ }) : c = gt({
634
706
  seriesIndex: e,
635
707
  objectIDField: o,
636
- commonStrings: l
708
+ commonStrings: n
637
709
  });
638
710
  const x = a.series[0]?.dataLabels, m = {
639
711
  ...c,
@@ -642,13 +714,13 @@ function R(t) {
642
714
  dataLabels: {
643
715
  ...c.dataLabels,
644
716
  type: c.dataLabels?.type ?? P.Text,
645
- content: { ...c.dataLabels?.content, ...x?.content, type: ot.TS },
717
+ content: { ...c.dataLabels?.content, ...x?.content, type: xt.TS },
646
718
  visible: x?.visible ?? !1
647
719
  }
648
720
  };
649
721
  if (m.query = {
650
722
  groupByFieldsForStatistics: [i]
651
- }, s !== v.NoAggregation && o !== void 0) {
723
+ }, s !== T.NoAggregation && o !== void 0) {
652
724
  const f = `${s}_${o}_0`.toUpperCase();
653
725
  m.y = f, m.query.outStatistics = [
654
726
  {
@@ -658,75 +730,75 @@ function R(t) {
658
730
  }
659
731
  ];
660
732
  }
661
- if (B(m) || C(m) || L(m) && a.series[0]?.binTemporalData) {
733
+ if (v(m) || B(m) || C(m) && a.series[0]?.binTemporalData) {
662
734
  let f;
663
- if (a?.series?.[0] !== void 0 && (f = G(a.series)), f !== M.BarAndLineNoAggregation && f !== M.BarAndLineSplitByNoAggregation) {
664
- let u = Tt(a);
665
- u === H.Quarter && (u = H.Month), m.temporalBinning = {
666
- size: Ft(a),
735
+ if (a?.series?.[0] !== void 0 && (f = Y(a.series)), f !== q.BarAndLineNoAggregation && f !== q.BarAndLineSplitByNoAggregation) {
736
+ let u = Dt(a);
737
+ u === z.Quarter && (u = z.Month), m.temporalBinning = {
738
+ size: Pt(a),
667
739
  unit: u,
668
- timeAggregationType: ht(a),
669
- trimIncompleteTimeInterval: vt(a),
670
- nullPolicy: At(a)
740
+ timeAggregationType: Mt(a),
741
+ trimIncompleteTimeInterval: Ut(a),
742
+ nullPolicy: Et(a)
671
743
  };
672
744
  }
673
745
  }
674
746
  return $(m);
675
747
  }
676
- function Ae(t, e, i) {
677
- const { layerFieldsInfo: s } = e, { idField: a, isTraditionalTypeOID: r } = E(e.layer), l = X(t), o = se(t), c = Ce(t), n = K(t), g = r && (o.length === 0 || o.includes(a)), d = ge(c, i), x = g ? "" : o.map((b) => N(s ?? [], b)).join(", "), m = N(s ?? [], l), f = N(s ?? [], n), u = t.series.some((b) => L(b)), S = u ? "category" : "xAxisField", p = m;
748
+ function Le(t, e, i) {
749
+ const { layerFieldsInfo: s } = e, { idField: a, isTraditionalTypeOID: r } = D(e.layer), n = R(t), o = ae(t), c = Ve(t), l = _(t), g = r && (o.length === 0 || o.includes(a)), d = fe(c, i), x = g ? "" : o.map((h) => I(s ?? [], h)).join(", "), m = I(s ?? [], n), f = I(s ?? [], l), u = t.series.some((h) => C(h)), S = u ? "category" : "xAxisField", p = m;
678
750
  let y = "";
679
- if (xe({
680
- fieldName: l,
751
+ if (Se({
752
+ fieldName: n,
681
753
  numericFields: o,
682
754
  fieldList: s
683
755
  }))
684
- y = D(i.titleLabels.aggrTypeOfAggrFields, {
756
+ y = w(i.titleLabels.aggrTypeOfAggrFields, {
685
757
  aggregationType: d,
686
758
  aggregationFields: x
687
759
  });
688
- else if (c === v.NoAggregation) {
689
- const b = g ? a : x;
690
- if (n === "") {
691
- const O = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
692
- y = D(i.titleLabels[O], {
693
- aggregationType: b,
760
+ else if (c === T.NoAggregation) {
761
+ const h = g ? a : x;
762
+ if (l === "") {
763
+ const V = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
764
+ y = w(i.titleLabels[V], {
765
+ aggregationType: h,
694
766
  [S]: p
695
767
  });
696
768
  } else {
697
- const O = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
698
- y = D(i.titleLabels[O], {
699
- aggregationType: b,
769
+ const V = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
770
+ y = w(i.titleLabels[V], {
771
+ aggregationType: h,
700
772
  [S]: p,
701
773
  splitByField: f
702
774
  });
703
775
  }
704
- } else if (c === v.Count)
705
- if (n === "") {
706
- const b = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
707
- y = D(i.titleLabels[b], {
776
+ } else if (c === T.Count)
777
+ if (l === "") {
778
+ const h = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
779
+ y = w(i.titleLabels[h], {
708
780
  aggregationType: d,
709
781
  [S]: p
710
782
  });
711
783
  } else {
712
- const b = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
713
- y = D(i.titleLabels[b], {
784
+ const h = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
785
+ y = w(i.titleLabels[h], {
714
786
  aggregationType: d,
715
787
  [S]: p,
716
788
  splitByField: f
717
789
  });
718
790
  }
719
- else if (n !== "") {
720
- const b = u ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
721
- y = D(i.titleLabels[b], {
791
+ else if (l !== "") {
792
+ const h = u ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
793
+ y = w(i.titleLabels[h], {
722
794
  aggregationType: d,
723
795
  aggregationField: x,
724
796
  [S]: p,
725
797
  splitByField: f
726
798
  });
727
799
  } else if (o.length > 0) {
728
- const b = u ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
729
- y = D(i.titleLabels[b], {
800
+ const h = u ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
801
+ y = w(i.titleLabels[h], {
730
802
  aggregationType: d,
731
803
  aggregationFields: x,
732
804
  [S]: p
@@ -734,22 +806,22 @@ function Ae(t, e, i) {
734
806
  }
735
807
  return y;
736
808
  }
737
- const Be = (t) => Y({
809
+ const Ne = (t) => K({
738
810
  where: t.query?.where,
739
811
  normalize: !1,
740
812
  escape: !1
741
- }) ?? "", Ce = (t) => t?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? v.NoAggregation, K = ne(
813
+ }) ?? "", Ve = (t) => t?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? T.NoAggregation, _ = ce(
742
814
  (t) => {
743
815
  const e = t?.series?.[0]?.query?.where?.split("=")[0].trim() ?? "";
744
- return et(t?.series?.[0]?.query?.where) ? "" : e;
816
+ return ct(t?.series?.[0]?.query?.where) ? "" : e;
745
817
  },
746
818
  (t) => t?.series?.[0]?.query?.where
747
- ), se = ne(
819
+ ), ae = ce(
748
820
  // without memoizing, the worst case efficiency is O(series.length), best case is O(1)
749
821
  // with memoizing, the worst case efficiency for repeated calls becomes O(1)
750
822
  (t) => {
751
823
  let e = [];
752
- if (K(t) === "")
824
+ if (_(t) === "")
753
825
  e = t?.series.map((i) => {
754
826
  const s = i.query?.outStatistics?.map((a) => a.onStatisticField) ?? [];
755
827
  return s?.length > 0 ? s : i.y;
@@ -763,40 +835,40 @@ const Be = (t) => Y({
763
835
  // using series array address as key, since a change to the numeric fields will always rebuild a fresh series array
764
836
  (t) => t?.series
765
837
  );
766
- function Pt(t) {
838
+ function Qt(t) {
767
839
  const { numericFields: e, aggregationType: i, config: s, layerInfo: a } = t;
768
840
  let r = !1;
769
- i === v.Count ? r = !0 : i === v.NoAggregation && (r = e.every((c) => {
770
- const n = a.layerFieldsInfo.find((g) => g.name === c);
771
- return n !== void 0 ? re(n) : !1;
772
- })), oe(s, 1, r);
773
- const l = s.series.some((c) => B(c)), o = s.series.some((c) => C(c));
774
- if (l || o) {
775
- const c = X(s), n = a.layerFieldsInfo.find((d) => d.name === c), g = n !== void 0 && re(n);
776
- oe(s, 0, g);
841
+ i === T.Count ? r = !0 : i === T.NoAggregation && (r = e.every((c) => {
842
+ const l = a.layerFieldsInfo.find((g) => g.name === c);
843
+ return l !== void 0 ? ne(l) : !1;
844
+ })), le(s, 1, r);
845
+ const n = s.series.some((c) => v(c)), o = s.series.some((c) => B(c));
846
+ if (n || o) {
847
+ const c = R(s), l = a.layerFieldsInfo.find((d) => d.name === c), g = l !== void 0 && ne(l);
848
+ le(s, 0, g);
777
849
  }
778
850
  }
779
851
  const Z = (t) => {
780
852
  let e;
781
- if (fe(t)) {
782
- const i = t.orderOptions?.data?.orderByX ?? [""], s = t.orderOptions?.data?.orderByY ?? [""], a = t.axes?.[0]?.valueFormat?.type === "category" ? h.Category : h.YValue, r = t.axes?.[1]?.valueFormat?.type === "category" ? h.Category : h.YValue;
783
- e = [le(i, a), le(s, r)];
853
+ if (pe(t)) {
854
+ const i = t.orderOptions?.data?.orderByX ?? [""], s = t.orderOptions?.data?.orderByY ?? [""], a = t.axes?.[0]?.valueFormat?.type === "category" ? b.Category : b.YValue, r = t.axes?.[1]?.valueFormat?.type === "category" ? b.Category : b.YValue;
855
+ e = [oe(i, a), oe(s, r)];
784
856
  } else {
785
- const i = t.orderOptions?.data?.orderType ?? h.Category, s = t.orderOptions?.data && "orderBy" in t.orderOptions.data ? t.orderOptions.data.orderBy : ce.Ascending;
786
- e = [ut(s, i)];
857
+ const i = t.orderOptions?.data?.orderType ?? b.Category, s = t.orderOptions?.data && "orderBy" in t.orderOptions.data ? t.orderOptions.data.orderBy : de.Ascending;
858
+ e = [bt(s, i)];
787
859
  }
788
860
  return e;
789
861
  };
790
- function Et(t) {
791
- const { xAxisField: e, numericFields: i, aggregationType: s, config: a, layerInfo: r, commonStrings: l } = t, { layerFieldsInfo: o } = r;
862
+ function zt(t) {
863
+ const { xAxisField: e, numericFields: i, aggregationType: s, config: a, layerInfo: r, commonStrings: n } = t, { layerFieldsInfo: o } = r;
792
864
  let c = !1;
793
- const n = R({
865
+ const l = E({
794
866
  config: a,
795
867
  xAxisField: e,
796
868
  aggregationType: s,
797
869
  layerInfo: r,
798
870
  seriesIndex: 0,
799
- commonStrings: l
871
+ commonStrings: n
800
872
  }), g = ie({
801
873
  config: a,
802
874
  xAxisField: e,
@@ -805,9 +877,9 @@ function Et(t) {
805
877
  layer: r.layer,
806
878
  fieldList: o
807
879
  }).name, d = {
808
- ...n,
880
+ ...l,
809
881
  id: `series_${Date.now()}`,
810
- name: l.axisLabels.values,
882
+ name: n.axisLabels.values,
811
883
  x: j,
812
884
  y: g
813
885
  }, x = [];
@@ -819,19 +891,19 @@ function Et(t) {
819
891
  });
820
892
  d.query = { outStatistics: x };
821
893
  const m = a.series[0];
822
- return m !== void 0 && (d.id = m.id, a.colorMatch || (L(m) && L(d) ? d.fillSymbol = m.fillSymbol : (B(d) && B(m) || C(d) && C(m)) && (d.lineSymbol = m.lineSymbol, d.markerSymbol = m.markerSymbol), c = !0), d.id = m.id, m.name !== n.name && (d.name = m.name)), a.series.length === 1 && !a.colorMatch && (L(d) ? d.fillSymbol = a.series[0].fillSymbol : (B(d) || C(d)) && (d.lineSymbol = a.series[0].lineSymbol, d.markerSymbol = a.series[0].markerSymbol), c = !0), a.colorMatch = !c, [d];
894
+ return m !== void 0 && (d.id = m.id, a.colorMatch || (C(m) && C(d) ? d.fillSymbol = m.fillSymbol : (v(d) && v(m) || B(d) && B(m)) && (d.lineSymbol = m.lineSymbol, d.markerSymbol = m.markerSymbol), c = !0), d.id = m.id, m.name !== l.name && (d.name = m.name)), a.series.length === 1 && !a.colorMatch && (C(d) ? d.fillSymbol = a.series[0].fillSymbol : (v(d) || B(d)) && (d.lineSymbol = a.series[0].lineSymbol, d.markerSymbol = a.series[0].markerSymbol), c = !0), a.colorMatch = !c, [d];
823
895
  }
824
- function Le(t) {
825
- const { xAxisField: e, numericFields: i, aggregationType: s, config: a, layerInfo: r, commonStrings: l } = t, { layerFieldsInfo: o } = r, c = E(r.layer).idField, n = [];
896
+ function Oe(t) {
897
+ const { xAxisField: e, numericFields: i, aggregationType: s, config: a, layerInfo: r, commonStrings: n } = t, { layerFieldsInfo: o } = r, c = D(r.layer).idField, l = [];
826
898
  let g = !1;
827
899
  for (let d = 0; d < i.length; d += 1) {
828
- const x = R({
900
+ const x = E({
829
901
  config: a,
830
902
  xAxisField: e,
831
903
  aggregationType: s,
832
904
  layerInfo: r,
833
905
  seriesIndex: d,
834
- commonStrings: l
906
+ commonStrings: n
835
907
  }), m = ie({
836
908
  config: a,
837
909
  xAxisField: e,
@@ -850,10 +922,10 @@ function Le(t) {
850
922
  i && f !== c && (u = {
851
923
  ...u,
852
924
  id: f,
853
- name: N(o, f)
925
+ name: I(o, f)
854
926
  });
855
927
  let S = f;
856
- u.query !== void 0 && (s !== v.NoAggregation ? (S = m, u.query.outStatistics = [
928
+ u.query !== void 0 && (s !== T.NoAggregation ? (S = m, u.query.outStatistics = [
857
929
  {
858
930
  ...x.query?.outStatistics?.[0] ?? {},
859
931
  onStatisticField: f,
@@ -865,26 +937,26 @@ function Le(t) {
865
937
  (y) => y.query?.outStatistics?.[0]?.onStatisticField === f && y.query.where === void 0
866
938
  );
867
939
  if (p !== void 0 && typeof p.y == "string" && p.y.trim() !== "") {
868
- a.colorMatch || (L(u) && L(p) ? u.fillSymbol = p.fillSymbol : (B(u) && B(p) || C(u) && C(p)) && (u.lineSymbol = p.lineSymbol, u.markerSymbol = p.markerSymbol), g = !0);
869
- const y = R({
940
+ a.colorMatch || (C(u) && C(p) ? u.fillSymbol = p.fillSymbol : (v(u) && v(p) || B(u) && B(p)) && (u.lineSymbol = p.lineSymbol, u.markerSymbol = p.markerSymbol), g = !0);
941
+ const y = E({
870
942
  config: a,
871
943
  xAxisField: e,
872
944
  aggregationType: s,
873
945
  layerInfo: r,
874
946
  seriesIndex: d,
875
- commonStrings: l
947
+ commonStrings: n
876
948
  });
877
949
  u.id = p.id, p.id !== y.id && p.name !== y.name && (u.id = p.id, u.name = p.name);
878
950
  }
879
- n.push(u);
951
+ l.push(u);
880
952
  }
881
- return a.series.length === 1 && n.length === 1 && !a.colorMatch && (L(a.series[0]) && L(n[0]) ? n[0].fillSymbol = a.series[0].fillSymbol : (B(a.series[0]) && B(n[0]) || C(a.series[0]) && C(n[0])) && (n[0].lineSymbol = a.series[0].lineSymbol, n[0].markerSymbol = a.series[0].markerSymbol), g = !0), a.colorMatch = !g, n;
953
+ return a.series.length === 1 && l.length === 1 && !a.colorMatch && (C(a.series[0]) && C(l[0]) ? l[0].fillSymbol = a.series[0].fillSymbol : (v(a.series[0]) && v(l[0]) || B(a.series[0]) && B(l[0])) && (l[0].lineSymbol = a.series[0].lineSymbol, l[0].markerSymbol = a.series[0].markerSymbol), g = !0), a.colorMatch = !g, l;
882
954
  }
883
- async function Rt(t) {
884
- const { splitByField: e, xAxisField: i, numericFields: s, aggregationType: a, config: r, layerInfo: l, commonStrings: o } = t, { layer: c, layerFieldsInfo: n } = l, { fetchNullValues: g } = r?.series?.[0]?.query ?? {}, d = i !== j ? i : void 0, { categoriesArray: x, splitByFieldType: m, numericalField: f } = await gt({
955
+ async function Ht(t) {
956
+ const { splitByField: e, xAxisField: i, numericFields: s, aggregationType: a, config: r, layerInfo: n, commonStrings: o } = t, { layer: c, layerFieldsInfo: l } = n, { fetchNullValues: g } = r?.series?.[0]?.query ?? {}, d = i !== j ? i : void 0, { categoriesArray: x, splitByFieldType: m, numericalField: f } = await Tt({
885
957
  config: r,
886
958
  layer: c,
887
- layerFieldsInfo: n,
959
+ layerFieldsInfo: l,
888
960
  xAxisField: d,
889
961
  aggregationFields: s,
890
962
  splitByField: e,
@@ -892,318 +964,301 @@ async function Rt(t) {
892
964
  });
893
965
  let u = [], S = !1;
894
966
  if (x.length === 0) {
895
- u = Le({
967
+ u = Oe({
896
968
  xAxisField: i,
897
969
  numericFields: s,
898
970
  aggregationType: a,
899
971
  config: r,
900
- layerInfo: l,
972
+ layerInfo: n,
901
973
  commonStrings: o
902
974
  });
903
975
  for (const p of u)
904
976
  p.query && (p.query.where = `${e}=''`);
905
977
  } else
906
978
  for (let p = 0; p < x.length; p += 1) {
907
- const y = x[p], b = ie({
979
+ const y = x[p], h = ie({
908
980
  config: r,
909
981
  xAxisField: i,
910
982
  numericFields: s,
911
983
  aggregationType: a,
912
- layer: l.layer,
984
+ layer: n.layer,
913
985
  seriesIndex: p,
914
986
  splitByField: e,
915
- fieldList: n
916
- }).name, O = R({
987
+ fieldList: l
988
+ }).name, V = E({
917
989
  config: r,
918
990
  xAxisField: i,
919
991
  aggregationType: a,
920
- layerInfo: l,
992
+ layerInfo: n,
921
993
  seriesIndex: p,
922
994
  commonStrings: o
923
- }), Ie = {
995
+ }), we = {
924
996
  fieldName: e,
925
997
  fieldValueToMatch: y ?? "",
926
- subtypeInfo: ee(l.layer),
927
- fieldList: l.layerFieldsInfo
928
- }, Ve = te(Ie), Q = `${y}`, A = {
929
- ...O,
930
- id: Q,
931
- name: Ve ?? Q,
932
- y: b,
998
+ subtypeInfo: ee(n.layer),
999
+ fieldList: n.layerFieldsInfo
1000
+ }, qe = te(we), G = `${y}`, A = {
1001
+ ...V,
1002
+ id: G,
1003
+ name: qe ?? G,
1004
+ y: h,
933
1005
  query: {
934
- ...O.query,
935
- where: `${e}=${m === pe.String && y !== null ? `'${y}'` : y}`,
936
- outStatistics: a !== v.NoAggregation ? [
1006
+ ...V.query,
1007
+ where: `${e}=${m === me.String && y !== null ? `'${y}'` : y}`,
1008
+ outStatistics: a !== T.NoAggregation ? [
937
1009
  {
938
- ...O.query?.outStatistics?.[0] ?? {},
1010
+ ...V.query?.outStatistics?.[0] ?? {},
939
1011
  onStatisticField: f,
940
- outStatisticFieldName: b,
1012
+ outStatisticFieldName: h,
941
1013
  statisticType: a
942
1014
  }
943
1015
  ] : void 0
944
1016
  }
945
1017
  };
946
- a === v.NoAggregation && (A.query !== void 0 && (delete A.query.outStatistics, delete A.query.groupByFieldsForStatistics), A.y = f);
947
- const w = r.series.find(
948
- (Ne) => String(Be(Ne)).trim().replace(/'/gu, "") === Q
1018
+ a === T.NoAggregation && (A.query !== void 0 && (delete A.query.outStatistics, delete A.query.groupByFieldsForStatistics), A.y = f);
1019
+ const O = r.series.find(
1020
+ (Pe) => String(Ne(Pe)).trim().replace(/'/gu, "") === G
949
1021
  );
950
- w !== void 0 && (r.colorMatch || (L(A) && L(w) ? A.fillSymbol = w.fillSymbol : (B(A) && B(w) || C(A) && C(w)) && (A.lineSymbol = w.lineSymbol, A.markerSymbol = w.markerSymbol), S = !0), A.id = w.id, A.name = w.name), u.push(A);
1022
+ O !== void 0 && (r.colorMatch || (C(A) && C(O) ? A.fillSymbol = O.fillSymbol : (v(A) && v(O) || B(A) && B(O)) && (A.lineSymbol = O.lineSymbol, A.markerSymbol = O.markerSymbol), S = !0), A.id = O.id, A.name = O.name), u.push(A);
951
1023
  }
952
1024
  return r.colorMatch = !S, u;
953
1025
  }
954
- const sa = async (t) => {
955
- const { xAxisField: e, splitByField: i, numericFields: s, aggregationType: a, config: r, layerInfo: l, commonStrings: o } = t, { layerFieldsInfo: c } = l ?? {}, n = Ct(r), g = X(r), d = $t(r, l, o), x = kt(r, l, o), m = Xt(r, l);
956
- let f = Te(r);
957
- const u = r.series.some((y) => L(y)), S = ct(r.series), p = dt(r.series);
1026
+ const Hs = async (t) => {
1027
+ const { xAxisField: e, splitByField: i, numericFields: s, aggregationType: a, config: r, layerInfo: n, commonStrings: o } = t, { layerFieldsInfo: c } = n ?? {}, l = Ce(r), g = R(r), d = Jt(r, n, o), x = Zt(r, n, o), m = ei(r, n);
1028
+ let f = Ae(r);
1029
+ const u = r.series.some((y) => C(y)), S = ht(r.series), p = Ft(r.series);
958
1030
  if (c !== void 0) {
959
- const y = tt(c);
960
- !y.includes(g) && y.includes(e) ? f = rt() : y.includes(g) && !y.includes(e) && (u ? f = _() : f = lt()), c.find((O) => O.name === e)?.type === pe.String && (f = _()), f !== void 0 && pt(r, o, f);
1031
+ const y = dt(c);
1032
+ !y.includes(g) && y.includes(e) ? f = ft() : y.includes(g) && !y.includes(e) && (u ? f = H() : f = pt()), c.find((V) => V.name === e)?.type === me.String && (f = H()), f !== void 0 && vt(r, o, f);
961
1033
  }
962
- if (n === 0 && (r.series = [
963
- R({ config: r, xAxisField: e, aggregationType: a, layerInfo: l, commonStrings: o })
1034
+ if (l === 0 && (r.series = [
1035
+ E({ config: r, xAxisField: e, aggregationType: a, layerInfo: n, commonStrings: o })
964
1036
  ]), r.series.forEach((y) => {
965
1037
  y.x = e, y.query !== void 0 && (y.query.groupByFieldsForStatistics = [e]);
966
- }), i === "" || s.length > 1 ? xe({
1038
+ }), i === "" || s.length > 1 ? Se({
967
1039
  fieldName: e,
968
1040
  numericFields: s,
969
1041
  fieldList: c
970
- }) ? r.series = Et({
1042
+ }) ? r.series = zt({
971
1043
  config: r,
972
- layerInfo: l,
1044
+ layerInfo: n,
973
1045
  xAxisField: e,
974
1046
  numericFields: s,
975
1047
  aggregationType: a,
976
1048
  commonStrings: o
977
- }) : r.series = Le({
1049
+ }) : r.series = Oe({
978
1050
  config: r,
979
- layerInfo: l,
1051
+ layerInfo: n,
980
1052
  xAxisField: e,
981
1053
  numericFields: s,
982
1054
  aggregationType: a,
983
1055
  commonStrings: o
984
- }) : (await Promise.resolve(), r.series = await Rt({
1056
+ }) : (await Promise.resolve(), r.series = await Ht({
985
1057
  config: r,
986
- layerInfo: l,
1058
+ layerInfo: n,
987
1059
  splitByField: i,
988
1060
  xAxisField: e,
989
1061
  numericFields: s,
990
1062
  aggregationType: a,
991
1063
  commonStrings: o
992
1064
  })), m) {
993
- const y = N(c, e);
1065
+ const y = I(c, e);
994
1066
  W(r, 0, y);
995
1067
  }
996
1068
  if (x) {
997
- const y = Se({
1069
+ const y = Fe({
998
1070
  config: r,
999
- layerInfo: l,
1071
+ layerInfo: n,
1000
1072
  commonStrings: o,
1001
1073
  numericFields: s,
1002
1074
  aggregationType: a
1003
1075
  });
1004
1076
  W(r, 1, y);
1005
1077
  }
1006
- if (r.title && d && (r.title.content.text = Ae(r, l, o)), F({ config: r, value: null, axisIndex: 1, isMax: !1 }), F({ config: r, value: null, axisIndex: 1, isMax: !0 }), Pt({ numericFields: s, aggregationType: a, config: r, layerInfo: l }), S || p) {
1007
- F({ config: r, value: null, axisIndex: 0, isMax: !1 }), F({ config: r, value: null, axisIndex: 0, isMax: !0 }), he(0, r);
1008
- const y = f?.type === P.DateAxisFormat ? z.Null : z.Interpolate;
1009
- Bt(y, r);
1078
+ if (r.title && d && (r.title.content.text = Le(r, n, o)), F({ config: r, value: null, axisIndex: 1, isMax: !1 }), F({ config: r, value: null, axisIndex: 1, isMax: !0 }), Qt({ numericFields: s, aggregationType: a, config: r, layerInfo: n }), S || p) {
1079
+ F({ config: r, value: null, axisIndex: 0, isMax: !1 }), F({ config: r, value: null, axisIndex: 0, isMax: !0 }), Be(0, r);
1080
+ const y = f?.type === P.DateAxisFormat ? Q.Null : Q.Interpolate;
1081
+ $t(y, r);
1010
1082
  }
1011
- }, aa = (t) => {
1012
- const { config: e, seriesIndex: i, layerInfo: s, commonStrings: a } = t, r = e.series?.[i], l = K(e);
1083
+ }, Js = (t) => {
1084
+ const { config: e, seriesIndex: i, layerInfo: s, commonStrings: a } = t, r = e.series?.[i], n = _(e);
1013
1085
  let o;
1014
- if (G(e.series) === M.BarAndLineFromFields)
1086
+ if (Y(e.series) === q.BarAndLineFromFields)
1015
1087
  o = a.axisLabels.values;
1016
- else if (qe(l)) {
1017
- const n = r.query?.outStatistics?.[0]?.onStatisticField;
1018
- n !== void 0 && n !== E(s.layer).idField && (o = N(s.layerFieldsInfo, n));
1088
+ else if (Ue(n)) {
1089
+ const l = r.query?.outStatistics?.[0]?.onStatisticField;
1090
+ l !== void 0 && l !== D(s.layer).idField && (o = I(s.layerFieldsInfo, l));
1019
1091
  } else {
1020
- const n = String(Be(r)).trim().replace(/'/gu, ""), g = {
1021
- fieldName: K(e),
1022
- fieldValueToMatch: n ?? "",
1092
+ const l = String(Ne(r)).trim().replace(/'/gu, ""), g = {
1093
+ fieldName: _(e),
1094
+ fieldValueToMatch: l ?? "",
1023
1095
  subtypeInfo: ee(s.layer),
1024
1096
  fieldList: s.layerFieldsInfo
1025
1097
  };
1026
- o = te(g) ?? n;
1098
+ o = te(g) ?? l;
1027
1099
  }
1028
1100
  return o ?? r.id;
1029
- }, ra = (t, e) => {
1030
- if (fe(e))
1031
- Mt(t, e);
1101
+ }, Zs = (t, e) => {
1102
+ if (pe(e))
1103
+ Gt(t, e);
1032
1104
  else {
1033
1105
  e.orderOptions ??= {};
1034
1106
  const i = e.orderOptions?.data?.orderType;
1035
- Z(e)[0] === J.customSort && i === h.Category && (e.orderOptions.data = {
1036
- orderType: h.Category,
1107
+ Z(e)[0] === J.customSort && i === b.Category && (e.orderOptions.data = {
1108
+ orderType: b.Category,
1037
1109
  orderBy: [...t]
1038
1110
  });
1039
1111
  }
1040
- }, la = async (t, e) => {
1041
- const i = X(t), s = Te(t)?.type, a = se(t), r = G(t.series);
1042
- let l = [];
1043
- return s === P.CategoryAxisFormat && (r === M.BarAndLineFromFields || i === j ? l = a.map((o) => N(e?.layerFieldsInfo, o)) : i.trim() !== "" && i !== j && e !== void 0 && (l = await ft({
1112
+ }, ea = async (t, e) => {
1113
+ const i = R(t), s = Ae(t)?.type, a = ae(t), r = Y(t.series);
1114
+ let n = [];
1115
+ return s === P.CategoryAxisFormat && (r === q.BarAndLineFromFields || i === j ? n = a.map((o) => I(e?.layerFieldsInfo, o)) : i.trim() !== "" && i !== j && e !== void 0 && (n = await At({
1044
1116
  layerInfo: e,
1045
1117
  config: t,
1046
1118
  category: i
1047
- }))), l;
1119
+ }))), n;
1048
1120
  };
1049
- function $t(t, e, i) {
1050
- const s = Ae(t, e, i), a = St(t), r = k(t);
1121
+ function Jt(t, e, i) {
1122
+ const s = Le(t, e, i), a = ve(t), r = k(t);
1051
1123
  return s === a || r;
1052
1124
  }
1053
- function kt(t, e, i) {
1054
- const s = Se({
1125
+ function Zt(t, e, i) {
1126
+ const s = Fe({
1055
1127
  config: t,
1056
1128
  layerInfo: e,
1057
1129
  commonStrings: i,
1058
- numericFields: se(t),
1059
- aggregationType: Ce(t)
1060
- }), a = U(1, t), r = k(t);
1130
+ numericFields: ae(t),
1131
+ aggregationType: Ve(t)
1132
+ }), a = X(1, t), r = k(t);
1061
1133
  return s === a || r;
1062
1134
  }
1063
- function Xt(t, e) {
1064
- const i = N(e.layerFieldsInfo, X(t)), s = U(0, t), a = k(t);
1135
+ function ei(t, e) {
1136
+ const i = I(e.layerFieldsInfo, R(t)), s = X(0, t), a = k(t);
1065
1137
  return i === s || a;
1066
1138
  }
1067
- function oa(t) {
1139
+ function ta(t) {
1068
1140
  return t.series[0]?.binTemporalData ?? !1;
1069
1141
  }
1070
- function na(t, e) {
1142
+ function ia(t, e) {
1071
1143
  e?.series.forEach((i) => {
1072
1144
  (i?.type === P.BarSeries || i?.type === P.LineSeries) && (i.binTemporalData = t, t ? i.temporalBinning = {
1073
- unit: H.Day,
1145
+ unit: z.Day,
1074
1146
  size: 0,
1075
- timeAggregationType: De.Start,
1147
+ timeAggregationType: ke.Start,
1076
1148
  trimIncompleteTimeInterval: !0,
1077
- nullPolicy: z.Null
1149
+ nullPolicy: Q.Null
1078
1150
  } : delete i.temporalBinning);
1079
1151
  });
1080
1152
  }
1081
1153
  export {
1082
- gt as $,
1083
- $s as A,
1084
- Ns as B,
1085
- qs as C,
1086
- Us as D,
1087
- Xs as E,
1088
- Ws as F,
1089
- js as G,
1090
- ws as H,
1091
- Os as I,
1092
- Ms as J,
1093
- Ds as K,
1094
- Gs as L,
1095
- Qs as M,
1096
- zs as N,
1097
- Hs as O,
1098
- Ys as P,
1099
- Ks as Q,
1100
- _s as R,
1101
- Js as S,
1102
- Zs as T,
1103
- ea as U,
1104
- ta as V,
1105
- ia as W,
1106
- fs as X,
1107
- Te as Y,
1108
- ft as Z,
1109
- pt as _,
1110
- U as a,
1111
- os as a$,
1112
- oe as a0,
1113
- Oi as a1,
1114
- Ii as a2,
1115
- Vi as a3,
1116
- Ni as a4,
1117
- qi as a5,
1118
- wi as a6,
1119
- Di as a7,
1120
- Mi as a8,
1121
- Pi as a9,
1122
- Ft as aA,
1123
- he as aB,
1124
- Tt as aC,
1125
- xs as aD,
1126
- ht as aE,
1127
- Ss as aF,
1128
- vt as aG,
1129
- bs as aH,
1130
- At as aI,
1131
- Bt as aJ,
1132
- Fs as aK,
1133
- hi as aL,
1134
- Gi as aM,
1135
- Qi as aN,
1136
- ns as aO,
1137
- Hi as aP,
1138
- _i as aQ,
1139
- vi as aR,
1140
- Ai as aS,
1141
- Bi as aT,
1142
- Ci as aU,
1143
- Li as aV,
1144
- is as aW,
1145
- ss as aX,
1146
- as as aY,
1147
- rs as aZ,
1148
- ls as a_,
1149
- Ei as aa,
1150
- bt as ab,
1151
- Ri as ac,
1152
- $i as ad,
1153
- ki as ae,
1154
- Ts as af,
1155
- Ct as ag,
1156
- hs as ah,
1157
- vs as ai,
1158
- gs as aj,
1159
- ys as ak,
1160
- ps as al,
1161
- ms as am,
1162
- zi as an,
1163
- Ji as ao,
1164
- Zi as ap,
1165
- es as aq,
1166
- ts as ar,
1167
- Fi as as,
1168
- Ti as at,
1169
- Xi as au,
1170
- Ui as av,
1171
- ji as aw,
1172
- Wi as ax,
1173
- Ki as ay,
1174
- Yi as az,
1175
- Se as b,
1176
- cs as b0,
1177
- ds as b1,
1178
- us as b2,
1179
- Is as b3,
1180
- Ls as b4,
1181
- Cs as b5,
1182
- As as b6,
1183
- Bs as b7,
1184
- ve as b8,
1185
- aa as c,
1186
- bi as d,
1187
- Si as e,
1154
+ vt as $,
1155
+ Ps as A,
1156
+ qs as B,
1157
+ vs as C,
1158
+ Bs as D,
1159
+ Ms as E,
1160
+ Ds as F,
1161
+ Es as G,
1162
+ Us as H,
1163
+ Is as I,
1164
+ Cs as J,
1165
+ Ns as K,
1166
+ Ls as L,
1167
+ Rs as M,
1168
+ Xs as N,
1169
+ js as O,
1170
+ Ws as P,
1171
+ ks as Q,
1172
+ $s as R,
1173
+ _s as S,
1174
+ Ks as T,
1175
+ Ys as U,
1176
+ Gs as V,
1177
+ Qs as W,
1178
+ zs as X,
1179
+ qt as Y,
1180
+ Ae as Z,
1181
+ At as _,
1182
+ X as a,
1183
+ Tt as a0,
1184
+ le as a1,
1185
+ se as a2,
1186
+ wt as a3,
1187
+ xs as a4,
1188
+ ys as a5,
1189
+ Qi as a6,
1190
+ Ji as a7,
1191
+ Zi as a8,
1192
+ es as a9,
1193
+ Mi as aA,
1194
+ Ui as aB,
1195
+ Ei as aC,
1196
+ $i as aD,
1197
+ ki as aE,
1198
+ is as aF,
1199
+ ss as aG,
1200
+ as as aH,
1201
+ rs as aI,
1202
+ ns as aJ,
1203
+ os as aK,
1204
+ cs as aL,
1205
+ ds as aM,
1206
+ us as aN,
1207
+ Ts as aO,
1208
+ bs as aP,
1209
+ Fs as aQ,
1210
+ Ss as aR,
1211
+ hs as aS,
1212
+ Ie as aT,
1213
+ ts as aa,
1214
+ qi as ab,
1215
+ Pi as ac,
1216
+ Ri as ad,
1217
+ Xi as ae,
1218
+ ji as af,
1219
+ Wi as ag,
1220
+ _i as ah,
1221
+ Ki as ai,
1222
+ Pt as aj,
1223
+ Be as ak,
1224
+ Dt as al,
1225
+ gs as am,
1226
+ Mt as an,
1227
+ fs as ao,
1228
+ Ut as ap,
1229
+ ps as aq,
1230
+ Et as ar,
1231
+ $t as as,
1232
+ ms as at,
1233
+ Di as au,
1234
+ Yi as av,
1235
+ Gi as aw,
1236
+ ls as ax,
1237
+ zi as ay,
1238
+ Hi as az,
1239
+ Fe as b,
1240
+ Js as c,
1241
+ wi as d,
1242
+ Oi as e,
1188
1243
  Z as f,
1189
- St as g,
1190
- la as h,
1191
- xi as i,
1192
- ra as j,
1193
- oa as k,
1194
- na as l,
1195
- Ce as m,
1196
- K as n,
1197
- se as o,
1198
- sa as p,
1199
- Ae as q,
1200
- wt as r,
1244
+ ve as g,
1245
+ ea as h,
1246
+ Vi as i,
1247
+ Zs as j,
1248
+ ta as k,
1249
+ ia as l,
1250
+ It as m,
1251
+ Ve as n,
1252
+ _ as o,
1253
+ ae as p,
1254
+ Hs as q,
1255
+ Le as r,
1201
1256
  F as s,
1202
- Vs as t,
1257
+ Kt as t,
1203
1258
  W as u,
1204
- Dt as v,
1205
- Ps as w,
1206
- Rs as x,
1207
- Es as y,
1208
- ks as z
1259
+ As as v,
1260
+ Yt as w,
1261
+ Vs as x,
1262
+ ws as y,
1263
+ Os as z
1209
1264
  };