@arcgis/charts-components 5.0.0-next.89 → 5.0.0-next.90

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 (323) hide show
  1. package/dist/cdn/{S5TMEBYP.js → 23765TIC.js} +2 -2
  2. package/dist/cdn/{JSOC3TXS.js → 257TCDZ6.js} +2 -2
  3. package/dist/cdn/{JHX7QEAJ.js → 2EPTKTTD.js} +2 -2
  4. package/dist/cdn/{RCLJDD6Q.js → 2JRE7VAX.js} +2 -2
  5. package/dist/cdn/2RFUINHU.js +4 -0
  6. package/dist/cdn/{ESNRZNVW.js → 362QSPV7.js} +2 -2
  7. package/dist/cdn/{OHZCCJJL.js → 3JPMYV6Q.js} +2 -2
  8. package/dist/cdn/{YU76SN7B.js → 3JV7CYG2.js} +2 -2
  9. package/dist/cdn/{HTGNBOLE.js → 3KOVYSRC.js} +2 -2
  10. package/dist/cdn/{HSSQ7BT6.js → 3WRAYY6S.js} +2 -2
  11. package/dist/cdn/{7NLZY2NB.js → 47QVWE7R.js} +2 -2
  12. package/dist/cdn/{JOXHQXSY.js → 4E756YIM.js} +2 -2
  13. package/dist/cdn/{3RVAM4I2.js → 4FSAXGDC.js} +2 -2
  14. package/dist/cdn/4JPDVGJW.js +4 -0
  15. package/dist/cdn/4LGHBCNI.js +4 -0
  16. package/dist/cdn/{D3CMD5FZ.js → 4TPYRUAT.js} +2 -2
  17. package/dist/cdn/{Y5NAVZXD.js → 4UXTR44P.js} +2 -2
  18. package/dist/cdn/{EHJ2UZ63.js → 4V5THG4A.js} +2 -2
  19. package/dist/cdn/{M3PT5WZ2.js → 562WZXUL.js} +2 -2
  20. package/dist/cdn/{UBJH35NR.js → 57OH7NFX.js} +2 -2
  21. package/dist/cdn/{3KREHQJZ.js → 5BZFS5ZE.js} +2 -2
  22. package/dist/cdn/5MIYEBXL.js +4 -0
  23. package/dist/cdn/{DYMUHXPX.js → 5QSEX72G.js} +2 -2
  24. package/dist/cdn/{5B73ODNL.js → 6ETMGS4C.js} +2 -2
  25. package/dist/cdn/{2LO3SPLJ.js → 6HR5THOC.js} +2 -2
  26. package/dist/cdn/{PZDMLIZH.js → 6IQP4YZ4.js} +7 -7
  27. package/dist/cdn/{3EIFLW5E.js → 6JOWPFI5.js} +2 -2
  28. package/dist/cdn/{VLXNSBH4.js → 6TRFXHB5.js} +2 -2
  29. package/dist/cdn/{S3CDMQEV.js → 7D4WUNGP.js} +2 -2
  30. package/dist/cdn/{QRCHWXWO.js → 7DNTKS35.js} +2 -2
  31. package/dist/cdn/{M2GXYB47.js → 7G62OKWM.js} +2 -2
  32. package/dist/cdn/{3RCQCCYR.js → A6NMN4CZ.js} +2 -2
  33. package/dist/cdn/{52YRLS2X.js → AM2KDKQS.js} +2 -2
  34. package/dist/cdn/{ITHHZQXT.js → ANE6SY3Y.js} +2 -2
  35. package/dist/cdn/{QCSGTHQR.js → AP2DUFEL.js} +2 -2
  36. package/dist/cdn/{JAMHYW6G.js → B2JYCH4X.js} +2 -2
  37. package/dist/cdn/BJTSHKJM.js +4 -0
  38. package/dist/cdn/{VTDOCN42.js → BLRYFQUU.js} +2 -2
  39. package/dist/cdn/{754FNOEV.js → BROG4MXL.js} +2 -2
  40. package/dist/cdn/BZMJVCNP.js +4 -0
  41. package/dist/cdn/{QZPWNOWZ.js → CD7ARQPS.js} +2 -2
  42. package/dist/cdn/{WTH4SVJ4.js → CO4J6YGP.js} +2 -2
  43. package/dist/cdn/{TBX2JXYI.js → CY7YWUJH.js} +2 -2
  44. package/dist/cdn/{LFWCDACG.js → DP2KBATF.js} +2 -2
  45. package/dist/cdn/DU3PAYQH.js +4 -0
  46. package/dist/cdn/{24CB5HJI.js → DXYEVOKV.js} +2 -2
  47. package/dist/cdn/{7ULBDN3D.js → E2GH3HH5.js} +2 -2
  48. package/dist/cdn/{BNSID2QB.js → EA4PHKM5.js} +2 -2
  49. package/dist/cdn/{3CG3PDD7.js → EE44YUBS.js} +2 -2
  50. package/dist/cdn/{3XP7DSY2.js → EIZ5OOQT.js} +2 -2
  51. package/dist/cdn/{L5AECO66.js → ELUYRJ2S.js} +2 -2
  52. package/dist/cdn/{3LTH4EH5.js → ERDUVXZS.js} +2 -2
  53. package/dist/cdn/{D6RZOSZZ.js → EW7EZU76.js} +2 -2
  54. package/dist/cdn/EYVK7DSP.js +6 -0
  55. package/dist/cdn/{QHMQJ4WY.js → EZAM645I.js} +2 -2
  56. package/dist/cdn/F5AUI7D6.js +4 -0
  57. package/dist/cdn/{PFZKK5AT.js → F6T7YJQ5.js} +2 -2
  58. package/dist/cdn/{G45BZ7CP.js → FCMOK7MS.js} +2 -2
  59. package/dist/cdn/{SXN2M735.js → FOM4PUXQ.js} +2 -2
  60. package/dist/cdn/{RZQSJ7UE.js → FQJZHLNT.js} +2 -2
  61. package/dist/cdn/{TPCM6JAV.js → GCWUWT7W.js} +2 -2
  62. package/dist/cdn/{W2R66CJX.js → GLC6RIAQ.js} +2 -2
  63. package/dist/cdn/{ZP5VIMD6.js → GN765KCZ.js} +2 -2
  64. package/dist/cdn/{WW5CGU7R.js → GZZQMAFJ.js} +2 -2
  65. package/dist/cdn/{7PAARU72.js → H5UXWSZD.js} +2 -2
  66. package/dist/cdn/{EUMXBJUK.js → HEH7FFYU.js} +2 -2
  67. package/dist/cdn/HMSXLO4U.js +4 -0
  68. package/dist/cdn/{AFYMGRYB.js → HYF4YDXV.js} +1 -1
  69. package/dist/cdn/{LWY4RY4Q.js → HZPMVUW3.js} +2 -2
  70. package/dist/cdn/{52OIVTUJ.js → IDJAOLEL.js} +2 -2
  71. package/dist/cdn/{3LN7WPHP.js → IFEBXN3L.js} +2 -2
  72. package/dist/cdn/{SCWKLBSP.js → IHMPF4N7.js} +2 -2
  73. package/dist/cdn/{VLCJRD56.js → IIOYOLV6.js} +2 -2
  74. package/dist/cdn/{QPOBNEUO.js → ILASY3QH.js} +2 -2
  75. package/dist/cdn/{AJ2VHTBF.js → IR75JEJ7.js} +2 -2
  76. package/dist/cdn/{JEFWXZAI.js → IVACYQIS.js} +2 -2
  77. package/dist/cdn/{SSZQEZOB.js → IXAEJNQA.js} +2 -2
  78. package/dist/cdn/{Q4DA6K4Z.js → JC36KDRB.js} +2 -2
  79. package/dist/cdn/{C2RP4HWG.js → JF5M6H6J.js} +2 -2
  80. package/dist/cdn/{OBRWPKW7.js → JGFWGNA3.js} +2 -2
  81. package/dist/cdn/{D72W3P23.js → JNAJTBVB.js} +2 -2
  82. package/dist/cdn/{DKRETPXT.js → JO55YZ2V.js} +2 -2
  83. package/dist/cdn/{26Y67K7N.js → JOHDMLMB.js} +2 -2
  84. package/dist/cdn/{CI4Q5WTV.js → K4SI5J3H.js} +1 -1
  85. package/dist/cdn/{6RKK7QJL.js → K6XGHJWF.js} +2 -2
  86. package/dist/cdn/{RFBV2Q6G.js → KPU4UIVH.js} +2 -2
  87. package/dist/cdn/{RHE4NYXD.js → KS2DEPBU.js} +2 -2
  88. package/dist/cdn/{5E7RK4WZ.js → KVKDNI6M.js} +2 -2
  89. package/dist/cdn/{FCOH5NVB.js → KWL7GU4O.js} +2 -2
  90. package/dist/cdn/KY7HZ5DK.js +4 -0
  91. package/dist/cdn/LFQB45AW.js +4 -0
  92. package/dist/cdn/{RNAVPXQV.js → LHLTXQQF.js} +1 -1
  93. package/dist/cdn/{6YDR4YHJ.js → LQL73OL7.js} +2 -2
  94. package/dist/cdn/{EXP64ASF.js → LUX45LEO.js} +2 -2
  95. package/dist/cdn/{JVNMVXGR.js → M3SECFDO.js} +2 -2
  96. package/dist/cdn/M4YTA2V3.js +4 -0
  97. package/dist/cdn/{ZMPZDC4W.js → MADPC4X6.js} +2 -2
  98. package/dist/cdn/{D62QZXU2.js → MGAYP4HG.js} +2 -2
  99. package/dist/cdn/{ATSLOOEO.js → MSMVXKXG.js} +2 -2
  100. package/dist/cdn/{EJG5VR6A.js → MTD3LRXG.js} +2 -2
  101. package/dist/cdn/{E5GRHDPV.js → MWGMB2AG.js} +2 -2
  102. package/dist/cdn/NQ644EGP.js +4 -0
  103. package/dist/cdn/{CXZUVPJ3.js → NQEBQY6B.js} +2 -2
  104. package/dist/cdn/{WT6UCBDJ.js → NZEGEBOS.js} +2 -2
  105. package/dist/cdn/{FZDVH2XF.js → ODAF3EL7.js} +1 -1
  106. package/dist/cdn/{TBGBWSA7.js → OLF65AJF.js} +2 -2
  107. package/dist/cdn/{G6DH6HDY.js → OTLEUN7R.js} +2 -2
  108. package/dist/cdn/{Z3C5I7MU.js → OVKVQG7B.js} +2 -2
  109. package/dist/cdn/{QLRIZYE6.js → P6OGWM6N.js} +2 -2
  110. package/dist/cdn/{NXTOYXIG.js → PB4TH7I7.js} +2 -2
  111. package/dist/cdn/{XKIPWSRD.js → PEGY3MOM.js} +2 -2
  112. package/dist/cdn/PJIOOAXF.js +4 -0
  113. package/dist/cdn/{MO4DCWPC.js → PL7UI2U2.js} +2 -2
  114. package/dist/cdn/{DIRVMRX5.js → PMLZTGGH.js} +2 -2
  115. package/dist/cdn/{TOCR2SLY.js → PNKL3ZRJ.js} +2 -2
  116. package/dist/cdn/{JLMDRYWA.js → Q23HJHXG.js} +2 -2
  117. package/dist/cdn/{4LURDMPG.js → QCOYQAJ4.js} +2 -2
  118. package/dist/cdn/{XGNUEXQ2.js → QHVXMPBV.js} +1 -1
  119. package/dist/cdn/{YKGPPPKC.js → QIRM2EFP.js} +2 -2
  120. package/dist/cdn/{TPWC66I3.js → QLUODWJ5.js} +2 -2
  121. package/dist/cdn/{RKOYT7SP.js → QTMNAG4U.js} +2 -2
  122. package/dist/cdn/{57TMPKZT.js → R3R27RSX.js} +2 -2
  123. package/dist/cdn/{KOAQMDIP.js → R7TBD6FD.js} +2 -2
  124. package/dist/cdn/{AOS6LXIH.js → RVLS4QSH.js} +2 -2
  125. package/dist/cdn/{CNSBS2XB.js → S3BLJFUS.js} +2 -2
  126. package/dist/cdn/{PEKLPIB4.js → SANS4RQ6.js} +2 -2
  127. package/dist/cdn/{OXIOXPML.js → SAZBAEXR.js} +2 -2
  128. package/dist/cdn/{NCBG6X62.js → SCGS54OI.js} +2 -2
  129. package/dist/cdn/{XCG2R5CJ.js → SS5FBHBV.js} +2 -2
  130. package/dist/cdn/{S5NW53R3.js → SWSYNAU4.js} +2 -2
  131. package/dist/cdn/{ETY4UW5B.js → SXYICABJ.js} +2 -2
  132. package/dist/cdn/{RQ7XHG3I.js → T577WQAR.js} +2 -2
  133. package/dist/cdn/{FCPZ66E3.js → TAFBXDTK.js} +2 -2
  134. package/dist/cdn/{J6MPR7B6.js → TAWAXKLI.js} +2 -2
  135. package/dist/cdn/{FRPTXIJJ.js → TEVFSQP3.js} +2 -2
  136. package/dist/cdn/{BMTM52MS.js → TFOL3L6W.js} +2 -2
  137. package/dist/cdn/{65DRX55E.js → TPQH2R2Y.js} +2 -2
  138. package/dist/cdn/{FVQJZVH7.js → TUR4BDNH.js} +2 -2
  139. package/dist/cdn/{Y45KZYDH.js → UGLX3RXV.js} +2 -2
  140. package/dist/cdn/{OMKHC26V.js → UGTB232K.js} +2 -2
  141. package/dist/cdn/{G62YCASO.js → UMO5SOVW.js} +2 -2
  142. package/dist/cdn/{UUO62QSX.js → UQGOJGFW.js} +2 -2
  143. package/dist/cdn/{N7V573Y4.js → UVFSLVZG.js} +2 -2
  144. package/dist/cdn/{6T7JJWGH.js → V3IOBOZR.js} +1 -1
  145. package/dist/cdn/{CUY3Y7MX.js → V4XWL5CS.js} +2 -2
  146. package/dist/cdn/{ALURV5DZ.js → V6F6EU3M.js} +2 -2
  147. package/dist/cdn/{DGIVZTKF.js → VHRHF6AW.js} +1 -1
  148. package/dist/cdn/{PECFPKUN.js → VUPINF37.js} +2 -2
  149. package/dist/cdn/{HTZEAE3M.js → VWV7MYWE.js} +2 -2
  150. package/dist/cdn/{ZNQCN6YP.js → W7CEAICR.js} +2 -2
  151. package/dist/cdn/{XFPIW4WB.js → W7WRCLWM.js} +2 -2
  152. package/dist/cdn/{V4SIQTSL.js → WL56JHWO.js} +2 -2
  153. package/dist/cdn/{42QB7JTL.js → WQGFCXD7.js} +2 -2
  154. package/dist/cdn/WUESNX5B.js +4 -0
  155. package/dist/cdn/{WQNN5VP6.js → WXMEAD7U.js} +2 -2
  156. package/dist/cdn/{ZOJGY4UO.js → XIIE5V2W.js} +2 -2
  157. package/dist/cdn/{HERC5JRL.js → XMMRPUMM.js} +2 -2
  158. package/dist/cdn/{6W7QLRM7.js → XNLYODQR.js} +2 -2
  159. package/dist/cdn/XPK2ZWCS.js +4 -0
  160. package/dist/cdn/{5KGHSUOR.js → XRSJR3RL.js} +2 -2
  161. package/dist/cdn/{SWZ626ED.js → XWEN7SKX.js} +2 -2
  162. package/dist/cdn/{INL6UXIX.js → Y6KSJ5H3.js} +2 -2
  163. package/dist/cdn/{XWLXWZ4C.js → YBCH7QZE.js} +2 -2
  164. package/dist/cdn/{HJPNWD6F.js → YGZHI6R2.js} +2 -2
  165. package/dist/cdn/{7RRXY3UK.js → YNA4L65F.js} +2 -2
  166. package/dist/cdn/{OZAKQJSB.js → YP24O2N7.js} +2 -2
  167. package/dist/cdn/{27DGP7FJ.js → YWF4GXHZ.js} +2 -2
  168. package/dist/cdn/{S76DSPGM.js → YZQMTYWN.js} +2 -2
  169. package/dist/cdn/Z23EZJR2.js +26 -0
  170. package/dist/cdn/{PZOZSM2Q.js → Z2BF3TPF.js} +2 -2
  171. package/dist/cdn/{L4ZU5IB7.js → ZJUXJANP.js} +2 -2
  172. package/dist/cdn/ZSNP5EUD.js +4 -0
  173. package/dist/cdn/{JVQ3YXWZ.js → ZSVPA2KK.js} +2 -2
  174. package/dist/cdn/index.js +2 -2
  175. package/dist/chart-rendering/common/config-utils/index.d.ts +12 -21
  176. package/dist/chart-rendering/common/data/utils/summarize-data/index.d.ts +35 -2
  177. package/dist/chart-rendering/common/data/utils/summarize-data/interfaces.d.ts +9 -1
  178. package/dist/chunks/action-bar-utils.js +1 -1
  179. package/dist/chunks/axis-model-wrapper.js +1 -1
  180. package/dist/chunks/bar-chart-model.js +56 -52
  181. package/dist/chunks/bar-chart-series.js +1 -1
  182. package/dist/chunks/bg_BG.js +1 -1
  183. package/dist/chunks/bg_BG2.js +1 -1
  184. package/dist/chunks/box-plot-data.js +49 -49
  185. package/dist/chunks/box-plot-model.js +166 -200
  186. package/dist/chunks/chart-ui-utils.js +1 -1
  187. package/dist/chunks/chart-ui-utils2.js +1 -1
  188. package/dist/chunks/combo-bar-line-chart-model.js +142 -207
  189. package/dist/chunks/common.js +23 -18
  190. package/dist/chunks/data.js +86 -59
  191. package/dist/chunks/default.js +1 -1
  192. package/dist/chunks/gauge-model.js +180 -159
  193. package/dist/chunks/heat-chart-model.js +169 -180
  194. package/dist/chunks/histogram-data.js +1 -1
  195. package/dist/chunks/histogram-model.js +94 -77
  196. package/dist/chunks/index.js +2713 -2608
  197. package/dist/chunks/index2.js +60 -60
  198. package/dist/chunks/index3.js +1 -1
  199. package/dist/chunks/index4.js +1 -1
  200. package/dist/chunks/interfaces.js +1 -1
  201. package/dist/chunks/line-chart-model.js +45 -45
  202. package/dist/chunks/model-with-multi-axes.js +1473 -811
  203. package/dist/chunks/pie-chart-data.js +79 -79
  204. package/dist/chunks/pie-chart-model.js +306 -294
  205. package/dist/chunks/popover-ui-utils.js +1 -1
  206. package/dist/chunks/radar-chart-model.js +42 -41
  207. package/dist/chunks/resource.js +1 -1
  208. package/dist/chunks/rest-js-object-literals.js +1 -1
  209. package/dist/chunks/runtime.js +1 -1
  210. package/dist/chunks/scatterplot-model.js +105 -93
  211. package/dist/chunks/serial-chart-data.js +812 -527
  212. package/dist/chunks/serial-chart-model.js +144 -293
  213. package/dist/chunks/series-types.js +7 -6
  214. package/dist/chunks/sk_SK.js +1 -1
  215. package/dist/chunks/store.js +1 -1
  216. package/dist/chunks/type-guards.js +1 -1
  217. package/dist/chunks/useT9n.js +1 -1
  218. package/dist/chunks/web-component-utils.js +13 -13
  219. package/dist/components/arcgis-chart/customElement.js +9 -9
  220. package/dist/components/arcgis-charts-action-bar/customElement.js +1 -1
  221. package/dist/components/arcgis-charts-config-axes/customElement.js +1 -1
  222. package/dist/components/arcgis-charts-config-axis/customElement.js +1 -1
  223. package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
  224. package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +2 -2
  225. package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +2 -2
  226. package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +3 -3
  227. package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +1 -1
  228. package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
  229. package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +1 -1
  230. package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +2 -2
  231. package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +1 -1
  232. package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +1 -1
  233. package/dist/components/arcgis-charts-config-category-format/customElement.js +1 -1
  234. package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +1 -1
  235. package/dist/components/arcgis-charts-config-color-style/customElement.js +1 -1
  236. package/dist/components/arcgis-charts-config-colors/customElement.js +1 -1
  237. package/dist/components/arcgis-charts-config-create-flow/customElement.js +2 -2
  238. package/dist/components/arcgis-charts-config-field-select/customElement.js +1 -1
  239. package/dist/components/arcgis-charts-config-font-style/customElement.js +1 -1
  240. package/dist/components/arcgis-charts-config-format/customElement.js +1 -1
  241. package/dist/components/arcgis-charts-config-format-popover/customElement.js +1 -1
  242. package/dist/components/arcgis-charts-config-general/customElement.js +5 -5
  243. package/dist/components/arcgis-charts-config-guide/customElement.js +1 -1
  244. package/dist/components/arcgis-charts-config-guide-popover/customElement.js +1 -1
  245. package/dist/components/arcgis-charts-config-guides/customElement.js +1 -1
  246. package/dist/components/arcgis-charts-config-guides-type-popover/customElement.js +1 -1
  247. package/dist/components/arcgis-charts-config-histogram/customElement.js +1 -1
  248. package/dist/components/arcgis-charts-config-histogram-data/customElement.js +1 -1
  249. package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +1 -1
  250. package/dist/components/arcgis-charts-config-invalid-input-message/customElement.js +1 -1
  251. package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
  252. package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +1 -1
  253. package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +2 -2
  254. package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +1 -1
  255. package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +1 -1
  256. package/dist/components/arcgis-charts-config-line-style/customElement.js +1 -1
  257. package/dist/components/arcgis-charts-config-number-format/customElement.js +1 -1
  258. package/dist/components/arcgis-charts-config-pie-chart/customElement.js +1 -1
  259. package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +1 -1
  260. package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +2 -2
  261. package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +1 -1
  262. package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +1 -1
  263. package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
  264. package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +1 -1
  265. package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +1 -1
  266. package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +1 -1
  267. package/dist/components/arcgis-charts-config-view-charts/customElement.js +1 -1
  268. package/dist/docs/api.json +3 -3
  269. package/dist/docs/docs.json +5 -5
  270. package/dist/docs/web-types.json +2 -2
  271. package/dist/index.js +43 -42
  272. package/dist/json-schema/index.d.ts +63 -15
  273. package/dist/loader.js +1 -1
  274. package/dist/model/bar-chart-model/bar-chart-model.d.ts +6 -1
  275. package/dist/model/box-plot-model/box-plot-model.d.ts +1 -1
  276. package/dist/model/chart-model/chart-model.d.ts +30 -22
  277. package/dist/model/decorators/model-setter.d.ts +7 -0
  278. package/dist/model/heat-chart-model/heat-chart-model.d.ts +39 -12
  279. package/dist/model/heat-chart-model/utils/heat-chart-data.d.ts +6 -0
  280. package/dist/model/interfaces/common.d.ts +6 -0
  281. package/dist/model/serial-chart-model/serial-chart-model.d.ts +5 -5
  282. package/dist/model/serial-chart-model/utils/serial-chart-data.d.ts +2 -2
  283. package/dist/model/shared/data.d.ts +19 -4
  284. package/dist/model.js +26 -25
  285. package/dist/spec/chart-object-literals.d.ts +29 -4
  286. package/dist/spec/web-chart.d.ts +15 -4
  287. package/dist/utils/chart-config/converter/index.d.ts +3 -3
  288. package/dist/utils/components/chart-ui-utils.d.ts +1 -1
  289. package/dist/utils/type-guards/chart-types.d.ts +7 -0
  290. package/dist/utils/ui/chart-ui-utils.d.ts +1 -1
  291. package/package.json +5 -5
  292. package/dist/cdn/2FPDE35U.js +0 -4
  293. package/dist/cdn/2MGDOOSL.js +0 -4
  294. package/dist/cdn/3GT7SI5M.js +0 -4
  295. package/dist/cdn/4IRJ3ZH5.js +0 -4
  296. package/dist/cdn/5A37OQGF.js +0 -4
  297. package/dist/cdn/5HOJCOJU.js +0 -4
  298. package/dist/cdn/C4U6ZLSK.js +0 -4
  299. package/dist/cdn/E3FQMXCV.js +0 -4
  300. package/dist/cdn/ETR3G32Z.js +0 -4
  301. package/dist/cdn/FK6WWS2O.js +0 -4
  302. package/dist/cdn/HO77HDLB.js +0 -6
  303. package/dist/cdn/HY4C6DEP.js +0 -4
  304. package/dist/cdn/IJUQRJFI.js +0 -4
  305. package/dist/cdn/JSD5IIH6.js +0 -4
  306. package/dist/cdn/JXGWYEJK.js +0 -4
  307. package/dist/cdn/KKNV3MPT.js +0 -4
  308. package/dist/cdn/LCSB3NQ5.js +0 -4
  309. package/dist/cdn/MISULAHN.js +0 -4
  310. package/dist/cdn/P2D5WICY.js +0 -4
  311. package/dist/cdn/PJQ27X42.js +0 -4
  312. package/dist/cdn/TDOUEZYL.js +0 -4
  313. package/dist/cdn/U2LF63KV.js +0 -22
  314. package/dist/cdn/WBEAP646.js +0 -4
  315. package/dist/cdn/XGB4TSSP.js +0 -4
  316. package/dist/cdn/XVUFERLV.js +0 -4
  317. package/dist/cdn/ZU4DL37U.js +0 -4
  318. package/dist/chunks/baseline-stacking.js +0 -92
  319. package/dist/chunks/config-update.js +0 -207
  320. package/dist/chunks/model-with-baseline-stacking.js +0 -246
  321. package/dist/chunks/model-with-data-labels.js +0 -325
  322. package/dist/chunks/model-with-rotation.js +0 -43
  323. package/dist/chunks/series.js +0 -37
@@ -1,8 +1,8 @@
1
1
  import "@arcgis/toolkit/intl";
2
- import { cloneDeep as R, memoize as le, isEmpty as he } from "lodash-es";
3
- import { g as P, e as ve, a as I, u as Ie, W as O, t as k, m as $, n as Be, i as z } from "./series-types.js";
2
+ import { cloneDeep as R, memoize as ce, isEmpty as Ne } from "lodash-es";
3
+ import { g as de, e as Oe, a as T, u as K, W as O, d as Q, t as b, m as G, n as qe, i as _ } from "./series-types.js";
4
4
  import "d3-array";
5
- import { bL as Le, cc as re, bM as _, ah as oe, bN as G, cY as Ce, l as Z, d9 as Ne, aI as Y, cQ as Ve, bp as ne, cU as D, aG as B, aE as L, bz as h, a_ as De, aH as Oe, r as C, p as J, db as E, m as qe, b as K, bK as Me, _ as Q, b1 as we, b2 as ke, b4 as je, bJ as ie, aJ as Ue, aK as Pe } from "./index.js";
5
+ import { bL as we, cc as ue, bM as te, ah as ye, bN as ie, cY as De, l as W, d9 as Me, aI as J, cQ as Pe, bp as ge, cU as I, aG as L, aE as V, bz as B, a_ as Ee, aH as Re, r as N, U as $e, V as ke, cD as Xe, p as H, db as M, k as Ue, cB as je, bH as Ye, bT as Ke, an as We, q as He, df as ze, cx as Qe, dg as re, c8 as Ge, c4 as _e, _ as $, m as Je, b as U, bK as Ze, b1 as et, b2 as tt, b4 as it, bJ as oe, aJ as st, aK as at } 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";
@@ -12,10 +12,10 @@ import "@arcgis/core/core/promiseUtils.js";
12
12
  import "@arcgis/core/request.js";
13
13
  import "./runtime.js";
14
14
  import "@arcgis/toolkit/dom";
15
- import { substitute as V } from "@arcgis/core/intl.js";
16
- import { a as ce, R as Ee } from "./rest-js-object-literals.js";
17
- import { q as Ke, l as v, n as Xe, o as Re, j as T, k as A } from "./index3.js";
18
- import { S as M } from "./common.js";
15
+ import { substitute as D } from "@arcgis/core/intl.js";
16
+ import { a as fe, R as rt } from "./rest-js-object-literals.js";
17
+ import { q as ot, h as pe, l as C, n as lt, o as nt, j as A, k as v } from "./index3.js";
18
+ import { S as Z } from "./common.js";
19
19
  import "@arcgis/core/Graphic.js";
20
20
  import "@arcgis/core/renderers/support/jsonUtils.js";
21
21
  import "@arcgis/core/symbols/support/symbolUtils.js";
@@ -24,37 +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 { a as U, s as de, g as H } from "./data.js";
27
+ import { b as k, d as me, g as se, e as le, f as ct } from "./data.js";
28
+ import { c as dt } from "./index2.js";
28
29
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
29
30
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
30
- v5.0.0-next.89 */
31
- async function We(t) {
32
- const { config: e, layer: i, xAxisField: s, splitByField: a, layerFieldsInfo: l, aggregationFields: r, fetchNullValues: c } = t, n = l.filter((f) => f.name === a)[0]?.type, x = c !== !0 ? `${a} IS NOT NULL` : "", d = s && c !== !0 ? `${s} IS NOT NULL` : "", { where: p } = e?.dataFilters ?? {}, m = {
33
- where: re([p, x, d]),
31
+ v5.0.0-next.90 */
32
+ async function ut(t) {
33
+ const { config: e, layer: i, xAxisField: s, splitByField: a, layerFieldsInfo: r, aggregationFields: o, fetchNullValues: l } = t, c = r.filter((p) => p.name === a)[0]?.type, f = l !== !0 ? `${a} IS NOT NULL` : "", d = s && l !== !0 ? `${s} IS NOT NULL` : "", { where: x } = e?.dataFilters ?? {}, m = {
34
+ where: ue([x, f, d]),
34
35
  // excluding the null values from the list
35
- orderByFields: Ce(a) ? [] : [`${a} ${P.Ascending}`],
36
+ orderByFields: De(a) ? [] : [`${a} ${de.Ascending}`],
36
37
  // default sorting ascending for split-by field
37
38
  geometry: e?.dataFilters?.geometry
38
- }, g = i;
39
- let u = "";
40
- r.length === 0 ? u = g?.objectIdField ?? "" : [u] = r;
41
- let S = await oe({
42
- queryObject: g,
39
+ }, y = i;
40
+ let g = "";
41
+ o.length === 0 ? g = y?.objectIdField ?? "" : [g] = o;
42
+ let S = await ye({
43
+ queryObject: y,
43
44
  category: e?.series[0].x ?? "",
44
45
  splitByField: a,
45
46
  queryConfig: m
46
47
  });
47
48
  if (e) {
48
- const f = e?.series.map((o) => Z({ where: o.query?.where })?.toString() ?? "").filter((o) => o !== void 0 && o !== "");
49
- S = Ne({
49
+ const p = e?.series.map((u) => W({ where: u.query?.where })?.toString() ?? "").filter((u) => u !== void 0 && u !== "");
50
+ S = Me({
50
51
  arrayA: S,
51
- arrayB: f,
52
- getKey: (o) => o === null ? null : o?.toString()
52
+ arrayB: p,
53
+ getKey: (u) => u === null ? null : u?.toString()
53
54
  });
54
55
  }
55
- return { categoriesArray: S, splitByFieldType: n, numericalField: u };
56
+ return { categoriesArray: S, splitByFieldType: c, numericalField: g };
56
57
  }
57
- function Pt(t, e) {
58
+ function mi(t, e) {
58
59
  let i = e === "";
59
60
  for (const s of t)
60
61
  if (e === s.name) {
@@ -63,12 +64,12 @@ function Pt(t, e) {
63
64
  }
64
65
  return i;
65
66
  }
66
- function Et(t, e) {
67
- const i = Le(t);
67
+ function xi(t, e) {
68
+ const i = we(t);
68
69
  let s = e.length === 0, a = 0;
69
- for (const l of e) {
70
- for (const r of i)
71
- if (l === r && (a += 1), a === e.length) {
70
+ for (const r of e) {
71
+ for (const o of i)
72
+ if (r === o && (a += 1), a === e.length) {
72
73
  s = !0;
73
74
  break;
74
75
  }
@@ -77,7 +78,7 @@ function Et(t, e) {
77
78
  }
78
79
  return s;
79
80
  }
80
- function Kt(t, e) {
81
+ function Si(t, e) {
81
82
  e.forEach((i) => {
82
83
  Object.getOwnPropertyNames(i.prototype).forEach((s) => {
83
84
  Object.defineProperty(
@@ -88,419 +89,659 @@ function Kt(t, e) {
88
89
  });
89
90
  });
90
91
  }
91
- async function $e(t) {
92
- const { layerInfo: e, config: i, category: s } = t, { layer: a } = e, { where: l } = i?.dataFilters ?? {}, { fetchNullValues: r } = i?.series?.[0]?.query ?? {}, c = r !== !0 ? `${s} IS NOT NULL` : "", y = {
93
- where: re([l, c]),
92
+ async function yt(t) {
93
+ const { layerInfo: e, config: i, category: s } = t, { layer: a } = e, { where: r } = i?.dataFilters ?? {}, { fetchNullValues: o } = i?.series?.[0]?.query ?? {}, l = o !== !0 ? `${s} IS NOT NULL` : "", n = {
94
+ where: ue([r, l]),
94
95
  // excluding the null values from the list
95
96
  orderByFields: [],
96
97
  geometry: i?.dataFilters?.geometry
97
- }, n = _(a);
98
+ }, c = te(a);
98
99
  return (
99
100
  // fetch unique category values asynchronously
100
- (await oe({ queryObject: a, category: s, queryConfig: y })).map((d) => {
101
- const p = String(d);
102
- return G({
101
+ (await ye({ queryObject: a, category: s, queryConfig: n })).map((d) => {
102
+ const x = String(d);
103
+ return ie({
103
104
  fieldName: s,
104
- fieldValueToMatch: p,
105
- subtypeInfo: n,
105
+ fieldValueToMatch: x,
106
+ subtypeInfo: c,
106
107
  // use the retrieved subtype information
107
108
  fieldList: e.layerFieldsInfo
108
109
  // list of field information from the layer
109
- }) ?? p;
110
+ }) ?? x;
110
111
  })
111
112
  );
112
113
  }
113
- function se(t, e, i) {
114
+ function j(t, e, i) {
114
115
  const s = t?.axes?.[e];
115
- s?.title !== void 0 ? s.title.content.text = i : s !== void 0 && (s.title = B({
116
+ s?.title !== void 0 ? s.title.content.text = i : s !== void 0 && (s.title = L({
116
117
  text: i,
117
118
  visible: !0,
118
- font: L(h.AxisTitle)
119
+ font: V(B.AxisTitle)
119
120
  }));
120
121
  }
121
- function ue(t) {
122
- const { config: e, layerInfo: i, commonStrings: s, numericFields: a, aggregationType: l } = t;
123
- let r = "";
122
+ function xe(t) {
123
+ const { config: e, layerInfo: i, commonStrings: s, numericFields: a, aggregationType: r } = t;
124
+ let o = "";
124
125
  if (e)
125
- if (Ve(e) === ve.Stacked100)
126
- r = s.utilsStrings.statistics.percent;
126
+ if (Pe(e) === Oe.Stacked100)
127
+ o = s.utilsStrings.statistics.percent;
127
128
  else {
128
- const y = ne(l, s);
129
+ const n = ge(r, s);
129
130
  if (a.length === 1) {
130
- const n = D(i.layerFieldsInfo, a[0]);
131
- l === I.NoAggregation ? r = n : l === I.Count && a[0] === i.objectIdField ? r = s.utilsStrings.statistics.count : r = V(s.axisLabels.aggregationOfFieldName, {
132
- aggregation: y,
133
- fieldName: n
131
+ const c = I(i.layerFieldsInfo, a[0]);
132
+ r === T.NoAggregation ? o = c : r === T.Count && a[0] === i.objectIdField ? o = s.utilsStrings.statistics.count : o = D(s.axisLabels.aggregationOfFieldName, {
133
+ aggregation: n,
134
+ fieldName: c
134
135
  });
135
- } else a.length > 1 && (l === I.NoAggregation ? r = s.axisLabels.values : r = V(s.axisLabels.aggregationOfValues, {
136
- aggregation: y
136
+ } else a.length > 1 && (r === T.NoAggregation ? o = s.axisLabels.values : o = D(s.axisLabels.aggregationOfValues, {
137
+ aggregation: n
137
138
  }));
138
139
  }
139
- return r;
140
+ return o;
140
141
  }
141
- const ye = (t, e, i) => t.axes?.[e] ?? De(i, t.type)[e], ge = (t) => {
142
+ const Se = (t, e, i) => t.axes?.[e] ?? Ee(i, t.type)[e], Fe = (t) => {
142
143
  const { config: e, axis: i, axisIndex: s } = t;
143
144
  e.axes !== void 0 && (e.axes[s] = i);
144
- }, Xt = (t) => {
145
+ }, Fi = (t) => {
145
146
  const { config: e, axisIndex: i, isMax: s } = t;
146
147
  let a = Number.NaN;
147
148
  return s ? a = e.axes?.[i]?.maximum : a = e.axes?.[i]?.minimum, a ?? Number.NaN;
148
- }, b = (t) => {
149
- const { config: e, value: i, axisIndex: s, isMax: a } = t, l = e?.axes?.[s];
150
- l !== void 0 && (a ? l.maximum = i : l.minimum = i);
151
- }, Rt = (t, e) => {
152
- b({ config: t, value: e, axisIndex: 0, isMax: !1 });
153
- }, fe = (t) => t.axes?.[0]?.valueFormat ?? Y(), ze = (t, e, i) => {
154
- const s = ye(t, 0, e);
149
+ }, F = (t) => {
150
+ const { config: e, value: i, axisIndex: s, isMax: a } = t, r = e?.axes?.[s];
151
+ r !== void 0 && (a ? r.maximum = i : r.minimum = i);
152
+ }, bi = (t, e) => {
153
+ F({ config: t, value: e, axisIndex: 0, isMax: !1 });
154
+ }, be = (t) => t.axes?.[0]?.valueFormat ?? J(), gt = (t, e, i) => {
155
+ const s = Se(t, 0, e);
155
156
  if (s !== void 0 && i !== void 0) {
156
157
  const a = {
157
158
  ...s,
158
159
  valueFormat: i
159
160
  };
160
- ge({ config: t, axis: a, axisIndex: 0 });
161
+ Fe({ config: t, axis: a, axisIndex: 0 });
161
162
  }
162
- }, ae = (t, e, i) => {
163
+ }, ne = (t, e, i) => {
163
164
  const s = t.axes?.[e];
164
165
  s !== void 0 && (s.integerOnlyValues = i);
165
- }, Ye = (t) => {
166
- const e = Ie(t.series);
166
+ }, ft = (t) => {
167
+ const e = K(t.series);
167
168
  return e === O.BarSeries || e === O.ComboLineAndBarSeries || e === O.LineSeries;
168
- }, _e = (t) => {
169
+ }, pt = (t) => {
169
170
  const { axisIndex: e, config: i, isMultiAxis: s } = t;
170
171
  let a = !1;
171
- return e === 0 || e === 1 && s ? a = !0 : e === 2 && (a = Ye(i)), a;
172
- }, Wt = (t) => {
172
+ return e === 0 || e === 1 && s ? a = !0 : e === 2 && (a = ft(i)), a;
173
+ }, Ti = (t) => {
173
174
  const { axisIndex: e, func: i, config: s } = t;
174
- return _e({ axisIndex: e, config: s, isMultiAxis: !0 }) ? i(e) : void 0;
175
- }, $t = (t, e) => {
175
+ return pt({ axisIndex: e, config: s, isMultiAxis: !0 }) ? i(e) : void 0;
176
+ }, hi = (t, e) => {
176
177
  let i;
177
178
  const s = e.axes?.[t]?.valueFormat;
178
- return (t === 0 || t >= 1 && Ke(s)) && (i = s), i;
179
- }, zt = (t) => {
180
- const { config: e, commonStrings: i, valueFormat: s, axisIndex: a = 0 } = t, l = ye(e, a, i);
181
- if (l !== void 0 && s !== void 0) {
182
- const r = {
183
- ...l,
179
+ return (t === 0 || t >= 1 && ot(s)) && (i = s), i;
180
+ }, Ai = (t) => {
181
+ const { config: e, commonStrings: i, valueFormat: s, axisIndex: a = 0 } = t, r = Se(e, a, i);
182
+ if (r !== void 0 && s !== void 0) {
183
+ const o = {
184
+ ...r,
184
185
  valueFormat: s
185
186
  };
186
- ge({
187
+ Fe({
187
188
  config: e,
188
- axis: r,
189
+ axis: o,
189
190
  axisIndex: a
190
191
  });
191
192
  }
192
- }, Yt = (t, e) => t.axes?.[e]?.isLogarithmic ?? !1, _t = (t) => {
193
+ }, vi = (t, e) => t.axes?.[e]?.isLogarithmic ?? !1, Bi = (t) => {
193
194
  const { config: e, isLogarithmic: i, axisIndex: s } = t, a = e.axes?.[s];
194
- a && (a.isLogarithmic = i, b({ config: e, value: null, axisIndex: s, isMax: !0 }), b({ config: e, value: null, axisIndex: s, isMax: !1 }));
195
- }, Gt = (t) => {
195
+ a && (a.isLogarithmic = i, F({ config: e, value: null, axisIndex: s, isMax: !0 }), F({ config: e, value: null, axisIndex: s, isMax: !1 }));
196
+ }, Ci = (t) => {
196
197
  const { config: e, scrollbar: i, axisIndex: s } = t;
197
198
  e.axes?.[s] !== void 0 && (e.axes[s].scrollbar = i);
198
- }, Zt = (t) => t.version, Ge = (t) => t.title?.content.text ?? "", Jt = (t, e) => {
199
- e.title !== void 0 ? e.title.content.text = t : e.title === void 0 && t !== void 0 && (e.title = B({
199
+ }, Ii = (t) => t.version, mt = (t) => t.title?.content.text ?? "", Li = (t, e) => {
200
+ e.title !== void 0 ? e.title.content.text = t : e.title === void 0 && t !== void 0 && (e.title = L({
200
201
  text: t,
201
202
  visible: !0,
202
- font: L(h.ChartTitle)
203
+ font: V(B.ChartTitle)
203
204
  }));
204
- }, Qt = (t) => t.subtitle?.content.text ?? "", Ht = (t, e) => {
205
- e.subtitle !== void 0 ? e.subtitle.content.text = t : e.subtitle === void 0 && t !== void 0 && (e.subtitle = B({
205
+ }, Vi = (t) => t.subtitle?.content.text ?? "", Ni = (t, e) => {
206
+ e.subtitle !== void 0 ? e.subtitle.content.text = t : e.subtitle === void 0 && t !== void 0 && (e.subtitle = L({
206
207
  text: t,
207
208
  visible: !0,
208
- font: L(h.ChartSubtitle)
209
+ font: V(B.ChartSubtitle)
209
210
  }));
210
- }, ei = (t) => t.footer?.content.text ?? "", ti = (t, e) => {
211
- e.footer !== void 0 ? e.footer.content.text = t : e.footer === void 0 && t !== void 0 && (e.footer = B({
211
+ }, Oi = (t) => t.footer?.content.text ?? "", qi = (t, e) => {
212
+ e.footer !== void 0 ? e.footer.content.text = t : e.footer === void 0 && t !== void 0 && (e.footer = L({
212
213
  text: t,
213
214
  visible: !0,
214
- font: L(h.DescriptionText)
215
+ font: V(B.DescriptionText)
215
216
  }));
216
- }, ii = (t) => t.title ? t.title.visible ?? !0 : !1, si = (t, e) => {
217
- e.title !== void 0 ? e.title.visible = t : e.title === void 0 && (e.title = B({
217
+ }, wi = (t) => t.title ? t.title.visible ?? !0 : !1, Di = (t, e) => {
218
+ e.title !== void 0 ? e.title.visible = t : e.title === void 0 && (e.title = L({
218
219
  text: "",
219
220
  visible: t,
220
- font: L(h.ChartTitle)
221
+ font: V(B.ChartTitle)
221
222
  }));
222
- }, ai = (t) => t.subtitle ? t.subtitle.visible ?? !0 : !1, li = (t, e) => {
223
- e.subtitle !== void 0 ? e.subtitle.visible = t : e.subtitle === void 0 && (e.subtitle = B({
223
+ }, Mi = (t) => t.subtitle ? t.subtitle.visible ?? !0 : !1, Pi = (t, e) => {
224
+ e.subtitle !== void 0 ? e.subtitle.visible = t : e.subtitle === void 0 && (e.subtitle = L({
224
225
  text: "",
225
226
  visible: t,
226
- font: L(h.ChartSubtitle)
227
+ font: V(B.ChartSubtitle)
227
228
  }));
228
- }, Ze = (t) => t.footer?.visible ?? !1, ri = (t, e) => {
229
- e.footer !== void 0 ? e.footer.visible = t : e.footer === void 0 && t !== Ze(e) && (e.footer = B({
229
+ }, xt = (t) => t.footer?.visible ?? !1, Ei = (t, e) => {
230
+ e.footer !== void 0 ? e.footer.visible = t : e.footer === void 0 && t !== xt(e) && (e.footer = L({
230
231
  text: "",
231
232
  visible: !0,
232
- font: L(h.DescriptionText)
233
+ font: V(B.DescriptionText)
233
234
  }));
234
- }, oi = (t) => t.chartRenderer, ni = (t, e) => {
235
+ }, Ri = (t) => t.chartRenderer, $i = (t, e) => {
235
236
  e.chartRenderer = t;
236
- }, ci = (t, e) => t.axes?.[e]?.title?.content, di = (t) => {
237
+ }, ki = (t, e) => t.axes?.[e]?.title?.content, Xi = (t) => {
237
238
  const { config: e, axisIndex: i, symbol: s } = t, a = e.axes?.[i];
238
239
  if (a !== void 0) {
239
- const l = a.title?.content.text;
240
- (a.title === void 0 || s === void 0) && (a.title = B({
240
+ const r = a.title?.content.text;
241
+ (a.title === void 0 || s === void 0) && (a.title = L({
241
242
  text: "",
242
243
  visible: !0,
243
- font: L(h.AxisTitle),
244
- type: h.AxisTitle
245
- })), s !== void 0 && (a.title.content = s), a.title.content.text = l;
244
+ font: V(B.AxisTitle),
245
+ type: B.AxisTitle
246
+ })), s !== void 0 && (a.title.content = s), a.title.content.text = r;
246
247
  }
247
- }, ui = (t) => {
248
+ }, Ui = (t) => {
248
249
  for (const e of t.axes ?? [])
249
250
  if (e?.labels !== void 0)
250
251
  return e.labels.content;
251
- }, yi = (t, e) => {
252
+ }, ji = (t, e) => {
252
253
  for (const i of e.axes ?? [])
253
254
  if (i !== void 0) {
254
255
  const s = i.labels?.content.text;
255
- t === void 0 ? i.labels = B({
256
+ t === void 0 ? i.labels = L({
256
257
  text: "",
257
258
  visible: !0,
258
- font: L(h.AxisLabels),
259
- type: h.AxisLabels
259
+ font: V(B.AxisLabels),
260
+ type: B.AxisLabels
260
261
  }) : i.labels.content = R(t), i.labels.content.text = s;
261
262
  }
262
- }, gi = (t) => {
263
+ }, Yi = (t) => {
263
264
  for (const e of t.axes ?? [])
264
265
  if (e?.lineSymbol !== void 0)
265
266
  return e.lineSymbol;
266
- }, fi = (t, e) => {
267
+ }, Ki = (t, e) => {
267
268
  for (const i of e.axes ?? [])
268
- i !== void 0 && (i.lineSymbol = R(t) ?? Oe());
269
- }, mi = (t) => {
269
+ i !== void 0 && (i.lineSymbol = R(t) ?? Re());
270
+ }, Wi = (t) => {
270
271
  for (const e of t.axes ?? [])
271
272
  if (e?.grid !== void 0)
272
273
  return e.grid;
273
- }, xi = (t, e, i) => {
274
+ }, Hi = (t, e, i) => {
274
275
  const s = e.axes;
275
276
  i.forEach((a) => {
276
277
  s?.[a] !== void 0 && (s[a].grid = R(t));
277
278
  });
278
- }, ee = (t, e) => e.axes?.[t]?.title?.content.text ?? "", pi = (t, e, i) => {
279
+ }, X = (t, e) => e.axes?.[t]?.title?.content.text ?? "", zi = (t, e, i) => {
279
280
  const s = i.axes?.[e];
280
- s?.title !== void 0 ? s.title.content.text = t : s !== void 0 && s?.title === void 0 && (s.title = B({
281
+ s?.title !== void 0 ? s.title.content.text = t : s !== void 0 && s?.title === void 0 && (s.title = L({
281
282
  text: t,
282
283
  visible: !0,
283
- font: L(h.AxisTitle)
284
+ font: V(B.AxisTitle)
284
285
  }));
285
- }, Si = (t, e) => e.axes?.[t]?.title?.visible ?? !1, bi = (t, e, i) => {
286
+ }, Qi = (t, e) => e.axes?.[t]?.title?.visible ?? !1, Gi = (t, e, i) => {
286
287
  const s = i.axes?.[e];
287
- s?.title !== void 0 ? s.title.visible = t : s !== void 0 && s?.title === void 0 && (s.title = B({
288
- text: ee(e, i),
288
+ s?.title !== void 0 ? s.title.visible = t : s !== void 0 && s?.title === void 0 && (s.title = L({
289
+ text: X(e, i),
289
290
  visible: t,
290
- font: L(h.AxisTitle)
291
+ font: V(B.AxisTitle)
291
292
  }));
292
- }, Fi = (t, e) => t.axes?.[e]?.displayZeroLine ?? !1, Ti = (t, e, i) => {
293
+ }, _i = (t, e) => t.axes?.[e]?.displayZeroLine ?? !1, Ji = (t, e, i) => {
293
294
  t.axes?.[i] !== void 0 && (t.axes[i].displayZeroLine = e);
294
- }, Ai = (t, e) => t.axes?.[e]?.displayCursorTooltip ?? !1, hi = (t) => {
295
+ }, Zi = (t, e) => t.axes?.[e]?.displayCursorTooltip ?? !1, es = (t) => {
295
296
  const { config: e, displayCursorTooltip: i, axisIndex: s } = t;
296
297
  e.axes?.[s] !== void 0 && (e.axes[s].displayCursorTooltip = i);
297
- }, vi = (t, e) => t.axes?.[e]?.buffer ?? !1, Ii = (t) => {
298
+ }, ts = (t, e) => t.axes?.[e]?.buffer ?? !1, is = (t) => {
298
299
  const { config: e, buffer: i, axisIndex: s } = t, a = e.axes?.[s];
299
300
  a !== void 0 && (a.buffer = i);
300
- }, Bi = (t, e) => t.axes?.[e]?.tickSpacing, Li = (t) => {
301
+ }, ss = (t, e) => t.axes?.[e]?.tickSpacing, as = (t) => {
301
302
  const { config: e, tickSpacing: i, axisIndex: s } = t;
302
303
  e.axes?.[s] !== void 0 && (e.axes[s].tickSpacing = i);
303
- }, Ci = (t, e) => t.axes?.[e]?.integerOnlyValues ?? !1, Ni = (t) => {
304
+ }, rs = (t, e) => t.axes?.[e]?.integerOnlyValues ?? !1, os = (t) => {
304
305
  const { config: e, integerOnlyValues: i, axisIndex: s } = t;
305
306
  e.axes?.[s] !== void 0 && (e.axes[s].integerOnlyValues = i);
306
- }, Vi = (t, e) => {
307
+ }, ls = (t, e) => {
307
308
  e.series.forEach((i) => {
308
309
  i.query && (i.query.fetchNullValues = t);
309
310
  });
310
- }, Di = (t) => t.series.some((e) => e.query?.fetchNullValues), Oi = (t) => (
311
+ }, ns = (t) => t.series.some((e) => e.query?.fetchNullValues), cs = (t) => (
311
312
  // TODO: Look into split-by values gotchas cases once done
312
- t.series.map((e) => String(Z({ where: e.query?.where }))).filter((e) => e !== void 0 && e.trim() !== "")
313
- ), qi = (t) => t.dataFilters, Mi = (t, e) => {
313
+ t.series.map((e) => String(W({ where: e.query?.where }))).filter((e) => e !== void 0 && e.trim() !== "")
314
+ ), ds = (t) => t.dataFilters, us = (t, e) => {
314
315
  t !== void 0 ? e.dataFilters = t : delete e.dataFilters;
315
- }, Je = (t) => {
316
+ }, St = (t) => {
316
317
  let e;
317
318
  const i = t.series[0];
318
- return C(i) && (e = i.temporalBinning?.size), e;
319
- }, Qe = (t) => {
319
+ return N(i) && (e = i.temporalBinning?.size), e;
320
+ }, Ft = (t) => {
320
321
  let e;
321
322
  const i = t.series[0];
322
- return C(i) && (e = i.temporalBinning?.unit), e;
323
- }, He = (t) => {
323
+ return N(i) && (e = i.temporalBinning?.unit), e;
324
+ }, bt = (t) => {
324
325
  let e;
325
326
  const i = t.series[0];
326
- return C(i) && (e = i.temporalBinning?.timeAggregationType), e;
327
- }, et = (t) => {
327
+ return N(i) && (e = i.temporalBinning?.timeAggregationType), e;
328
+ }, Tt = (t) => {
328
329
  let e;
329
330
  const i = t.series[0];
330
- return C(i) && (e = i.temporalBinning?.trimIncompleteTimeInterval), e;
331
- }, tt = (t) => {
331
+ return N(i) && (e = i.temporalBinning?.trimIncompleteTimeInterval), e;
332
+ }, ht = (t) => {
332
333
  let e;
333
334
  const i = t.series[0];
334
- return C(i) && (e = i.temporalBinning?.nullPolicy), e;
335
- }, me = (t, e) => {
335
+ return N(i) && (e = i.temporalBinning?.nullPolicy), e;
336
+ }, Te = (t, e) => {
336
337
  e?.series?.forEach((i) => {
337
- C(i) && (i.temporalBinning ??= {}, i.temporalBinning.size = t);
338
- }), b({ config: e, value: null, axisIndex: 1, isMax: !1 }), b({ config: e, value: null, axisIndex: 1, isMax: !0 });
339
- }, it = (t, e) => {
338
+ N(i) && (i.temporalBinning ??= {}, i.temporalBinning.size = t);
339
+ }), F({ config: e, value: null, axisIndex: 1, isMax: !1 }), F({ config: e, value: null, axisIndex: 1, isMax: !0 });
340
+ }, At = (t, e) => {
340
341
  e?.series?.forEach((i) => {
341
- C(i) && (i.temporalBinning ??= {}, i.temporalBinning.nullPolicy = t);
342
- }), b({ config: e, value: null, axisIndex: 1, isMax: !1 }), b({ config: e, value: null, axisIndex: 1, isMax: !0 });
343
- }, wi = (t, e) => {
342
+ N(i) && (i.temporalBinning ??= {}, i.temporalBinning.nullPolicy = t);
343
+ }), F({ config: e, value: null, axisIndex: 1, isMax: !1 }), F({ config: e, value: null, axisIndex: 1, isMax: !0 });
344
+ }, ys = (t, e) => {
344
345
  e.series?.forEach((i) => {
345
- C(i) && (i.temporalBinning ??= {}, i.temporalBinning.unit = t);
346
- }), b({ config: e, value: null, axisIndex: 1, isMax: !1 }), b({ config: e, value: null, axisIndex: 1, isMax: !0 });
347
- }, ki = (t, e) => {
346
+ N(i) && (i.temporalBinning ??= {}, i.temporalBinning.unit = t);
347
+ }), F({ config: e, value: null, axisIndex: 1, isMax: !1 }), F({ config: e, value: null, axisIndex: 1, isMax: !0 });
348
+ }, gs = (t, e) => {
348
349
  e.series?.forEach((i) => {
349
- C(i) && (i.temporalBinning ??= {}, i.temporalBinning.timeAggregationType = t);
350
- }), b({ config: e, value: null, axisIndex: 1, isMax: !1 }), b({ config: e, value: null, axisIndex: 1, isMax: !0 });
351
- }, ji = (t, e) => {
350
+ N(i) && (i.temporalBinning ??= {}, i.temporalBinning.timeAggregationType = t);
351
+ }), F({ config: e, value: null, axisIndex: 1, isMax: !1 }), F({ config: e, value: null, axisIndex: 1, isMax: !0 });
352
+ }, fs = (t, e) => {
352
353
  e.series?.forEach((i) => {
353
- C(i) && (i.temporalBinning ??= {}, i.temporalBinning.trimIncompleteTimeInterval = t);
354
- }), b({ config: e, value: null, axisIndex: 1, isMax: !1 }), b({ config: e, value: null, axisIndex: 1, isMax: !0 });
355
- }, Ui = (t) => {
356
- me(0, t);
357
- }, Pi = (t, e) => e.series[t]?.id, Ei = (t, e) => e.series.findIndex((i) => i.id === t), st = (t) => t.series.length ?? 0, Ki = (t, e) => e.series[t].visible ?? !0;
358
- function Xi(t, e) {
354
+ N(i) && (i.temporalBinning ??= {}, i.temporalBinning.trimIncompleteTimeInterval = t);
355
+ }), F({ config: e, value: null, axisIndex: 1, isMax: !1 }), F({ config: e, value: null, axisIndex: 1, isMax: !0 });
356
+ }, ps = (t) => {
357
+ Te(0, t);
358
+ }, vt = (t) => t.series.length ?? 0, ms = (t, e) => e.series[t].visible ?? !0;
359
+ function xs(t, e) {
359
360
  let i;
360
361
  return t.length !== 0 && e < t.length && (i = t[e].dataTooltipValueFormat), i;
361
362
  }
362
- function Ri(t) {
363
+ function Ss(t) {
363
364
  const { series: e, seriesIndex: i, valueFormat: s } = t;
364
365
  e.length !== 0 && i < e.length && (e[i].dataTooltipValueFormat = s);
365
366
  }
366
- function j(t) {
367
- const { seriesIndex: e, xAxisField: i, aggregationType: s, config: a, layerInfo: l, commonStrings: r } = t, { objectIdField: c } = l ?? {};
368
- let y;
369
- const n = a.series[e ?? 0];
370
- let x = !1, d = !1;
371
- if (n === void 0) {
372
- const g = a.series;
373
- x = g.slice(0, e).every((u) => T(u)), d = g.slice(0, e).every((u) => A(u));
367
+ function Fs(t, e) {
368
+ let i;
369
+ return e !== void 0 && (i = { ...e }, i.legend !== void 0 && (i.legend.position = t)), i;
370
+ }
371
+ function bs(t, e) {
372
+ let i;
373
+ return e !== void 0 && (i = { ...e }, i.legend !== void 0 && (i.legend.visible = t)), i;
374
+ }
375
+ function Ts(t, e) {
376
+ let i;
377
+ return e !== void 0 && (i = { ...e, rotated: t }), i;
378
+ }
379
+ function he(t) {
380
+ let e;
381
+ 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;
382
+ }
383
+ function hs(t, e) {
384
+ return e != null || pe(t);
385
+ }
386
+ async function Bt(t) {
387
+ const { queryObject: e, chartConfig: i, options: s, splitByField: a } = t;
388
+ let r = [], o;
389
+ const l = R(i), n = l.series[0], c = Ke({
390
+ queryObject: e,
391
+ chartConfig: l,
392
+ runtimeDataFilters: s?.runtimeDataFilters,
393
+ ignoreViewExtent: s?.ignoreViewExtent
394
+ });
395
+ if (c.outStatistics?.[0]?.outStatisticFieldName && (c.outStatistics[0].outStatisticFieldName = We.outStatistics.outStatisticFieldName), N(n) && He({
396
+ xAxisValueFormatType: ze(l),
397
+ setTimeBinningInfoWhenNotProvided: s?.setTimeBinningInfoWhenNotProvided,
398
+ seriesConfig: n
399
+ }) && Qe(e)) {
400
+ const { temporalBinning: f, x: d } = n, { uniqueQuery: x } = await re({
401
+ chartConfig: l,
402
+ queryConfig: c,
403
+ queryObject: e,
404
+ options: s
405
+ });
406
+ o = await Ge({
407
+ queryObject: e,
408
+ dateField: d,
409
+ splitByField: a,
410
+ queryConfig: x,
411
+ temporalBinning: f
412
+ }), r = Array.from(
413
+ new Set(
414
+ o.flatMap((m) => {
415
+ const { stackedAttributes: y } = m;
416
+ let g = [];
417
+ return y && (g = y.map((S) => S[a]).filter((S) => S !== void 0)), g;
418
+ })
419
+ ).values()
420
+ );
421
+ } else {
422
+ const { uniqueQuery: f } = await re({
423
+ chartConfig: l,
424
+ queryObject: e,
425
+ queryConfig: c,
426
+ options: s
427
+ });
428
+ o = await _e({
429
+ queryObject: e,
430
+ queryConfig: f,
431
+ featureCount: 1
432
+ }), r = Array.from(
433
+ new Set(
434
+ o.map((d) => d.attributes[a]).filter((d) => d !== void 0)
435
+ ).values()
436
+ );
437
+ }
438
+ return { allValues: r, preFetchedQueryResponse: o };
439
+ }
440
+ function Ct(t, e) {
441
+ const i = /* @__PURE__ */ new Map();
442
+ return t.series.forEach((s) => {
443
+ let a = W({
444
+ where: s.query?.where,
445
+ // normalize the value so it matches what we get from getAllValues()
446
+ // Refer to https://devtopia.esri.com/WebGIS/arcgis-charts/issues/8127
447
+ normalize: !0,
448
+ // we do not escape the characters so they match what we get from getAllValues()
449
+ // Refer to https://devtopia.esri.com/WebGIS/arcgis-charts/issues/8078
450
+ escape: !1
451
+ });
452
+ e && a !== null && (a = Number(a));
453
+ const r = K([s]);
454
+ r !== void 0 && i.set(r, [
455
+ ...i.get(r) ?? [],
456
+ a
457
+ ]);
458
+ }), i;
459
+ }
460
+ function It(t) {
461
+ const { allValues: e, configUniqueValuesPerSeriesType: i, initialConfigWasEmpty: s } = t, a = /* @__PURE__ */ new Map();
462
+ return Array.from(i.keys()).forEach((r) => {
463
+ const o = i.get(r) ?? [];
464
+ let l = [];
465
+ s ? l = e : e.forEach((n) => {
466
+ o.includes(n) || l.push(n);
467
+ }), a.set(r, l);
468
+ }), a;
469
+ }
470
+ function Lt(t) {
471
+ const { chartConfig: e, missingValue: i, splitByField: s, seriesTemplate: a } = t, r = JSON.parse(
472
+ JSON.stringify({
473
+ ...e.series[0],
474
+ ...a
475
+ })
476
+ );
477
+ if (r.query) {
478
+ if (r.id = `${i}-${e.series.length}-${Date.now()}`, r.name = `${i}`, r.query.outStatistics?.[0] !== void 0) {
479
+ const l = r.id;
480
+ r.query.outStatistics[0].outStatisticFieldName = l, "y" in r && (r.y = l);
481
+ }
482
+ const o = typeof i == "number" || i === null ? i : `'${i}'`;
483
+ r.query.where = `${s}=${o}`;
484
+ }
485
+ return r;
486
+ }
487
+ async function Vt(t) {
488
+ const { updateSplitBySeries: e, config: i, options: s, queryObject: a } = t, { seriesTemplate: r } = e ?? {};
489
+ let o;
490
+ if (e !== void 0 && i !== void 0 && (i.series.length > 0 || r !== void 0) && e.addMissingSeries) {
491
+ const l = i.series.length === 0;
492
+ i.series.length === 0 && r !== void 0 && i.series.push(r);
493
+ const n = H(i.series);
494
+ if ((n === M.BoxPlotMonoFieldAndSplitBy || n === M.BoxPlotMultiFieldsAndSplitBy || n === M.BoxPlotMonoFieldAndCategoryAndSplitBy || n === M.BarAndLineSplitBy || n === M.BarAndLineSplitByNoAggregation) && a !== void 0) {
495
+ const c = Ue(i.series[0]?.query?.where), f = je(a);
496
+ await f.load();
497
+ const d = f.getField(c)?.toJSON(), x = Ye(d), m = await Bt({
498
+ queryObject: a,
499
+ chartConfig: i,
500
+ splitByField: c,
501
+ options: s
502
+ }), { allValues: y } = m;
503
+ if ({ preFetchedQueryResponse: o } = m, y.length > 0) {
504
+ const g = Ct(i, x), S = It({
505
+ allValues: y,
506
+ configUniqueValuesPerSeriesType: g,
507
+ initialConfigWasEmpty: l
508
+ });
509
+ Array.from(S.keys()).forEach((p) => {
510
+ (S.get(p) ?? []).forEach((q) => {
511
+ i.series.push(
512
+ Lt({
513
+ chartConfig: i,
514
+ seriesTemplate: r,
515
+ missingValue: q,
516
+ splitByField: c
517
+ })
518
+ );
519
+ }), l && i.series.shift();
520
+ });
521
+ }
522
+ }
523
+ }
524
+ return o;
525
+ }
526
+ function Nt(t, e) {
527
+ e && !pe(e) && (e = Xe({ chartConfig: e, queryObject: t }));
528
+ }
529
+ async function As(t) {
530
+ const {
531
+ configToAlter: e,
532
+ layer: i,
533
+ addMissingSeries: s,
534
+ updateSplitBySeries: a,
535
+ chartContainer: r,
536
+ creation: o,
537
+ queryObject: l,
538
+ options: n,
539
+ previousConfig: c
540
+ } = t;
541
+ let f = e, d;
542
+ return Nt(i, f), f = await dt(f, i), s && (d = await Vt({
543
+ updateSplitBySeries: a,
544
+ config: f,
545
+ options: n,
546
+ queryObject: l
547
+ })), (o || c && $e(c, f)) && (f = ke(f, r)), { alteredConfig: f, preFetchedQueryResponse: d };
548
+ }
549
+ const vs = (t) => {
550
+ const { xField: e, config: i, layerInfo: s } = t, { layerFieldsInfo: a } = s, r = X(0, i), o = Ot(i), l = $(i), n = i.series[0];
551
+ if (typeof e == "string" && o !== e && n && (n.x = e, he(i), o === r || l)) {
552
+ const c = I(a, e);
553
+ j(i, 0, c);
554
+ }
555
+ }, Ot = (t) => t.series[0].x ?? "", Bs = (t) => t.hideEmptyRowsAndColumns, Cs = (t, e) => {
556
+ t.hideEmptyRowsAndColumns = e;
557
+ }, Is = (t, e) => {
558
+ const i = t.series[0];
559
+ i.heatRulesType = e;
560
+ }, Ls = (t) => t.series[0].heatRulesType, Vs = (t, e) => {
561
+ const i = t.series[0];
562
+ i.gradientRules = e;
563
+ }, Ns = (t) => t.series[0].gradientRules, Os = (t) => {
564
+ const { yField: e, config: i, layerInfo: s } = t, { layerFieldsInfo: a } = s, r = X(1, i), o = qt(i), l = $(i), n = i.series[0];
565
+ if (typeof e == "string" && o !== e && n && (n.y = e, he(i), o === r || l)) {
566
+ const c = I(a, e);
567
+ j(i, 1, c);
568
+ }
569
+ }, qt = (t) => t.series[0].y ?? "", qs = (t, e) => {
570
+ const i = e.series[0];
571
+ i.xTemporalBinning = t;
572
+ }, ws = (t) => t.series[0].xTemporalBinning, Ds = (t, e) => {
573
+ const i = e.series[0];
574
+ i.yTemporalBinning = t;
575
+ }, Ms = (t) => t.series[0].yTemporalBinning, wt = (t, e) => {
576
+ e.orderOptions ??= {};
577
+ const i = e.axes?.[0]?.valueFormat?.type === "category" ? b.Category : b.YValue, s = ee(e)[0], a = e.axes?.[1]?.valueFormat?.type === "category" ? b.Category : b.YValue, r = ee(e)[1], o = {
578
+ ...e.orderOptions.data ?? {},
579
+ orderType: b.MultiAxes
580
+ };
581
+ s === Z.customSort && i === b.Category && (o.orderByX = [...t]), r === Z.customSort && a === b.Category && (o.orderByY = [...t]), Object.keys(o).length > 1 && (e.orderOptions.data = o);
582
+ }, Ps = (t, e) => {
583
+ const i = e.series[0];
584
+ i.gridLine && (i.gridLine.width = t);
585
+ }, Es = (t) => t.series[0].gridLine?.width, Rs = (t, e) => {
586
+ const i = e.series[0], s = t?.length === 4 && t.every((a) => typeof a == "number");
587
+ i.gridLine && s && (i.gridLine.color = t);
588
+ }, $s = (t) => t.series[0].gridLine?.color, ks = (t, e) => {
589
+ const i = e.legend;
590
+ t === Q.Bottom && i && (i.position = Q.Bottom);
591
+ }, Xs = (t) => t.legend?.position ?? Q.Bottom, Us = (t) => t.series[0].query?.outStatistics?.[0]?.onStatisticField, js = (t, e) => {
592
+ const i = e.series[0].query?.outStatistics?.[0];
593
+ i && (i.onStatisticField = t, i.outStatisticFieldName = `${i.statisticType}_${t}`);
594
+ }, Ys = (t) => t.series[0].query?.outStatistics?.[0].statisticType ?? T.Count, Ks = (t, e) => {
595
+ const i = e.series[0]?.query?.outStatistics?.[0];
596
+ i && t !== T.NoAggregation && (i.statisticType = t, i.outStatisticFieldName = `${t}_${i.onStatisticField}`);
597
+ }, Ws = (t) => t.nullPolicy, Hs = (t, e) => {
598
+ e.nullPolicy = t;
599
+ }, zs = (t) => t.series[0].emptyCells?.text, Qs = (t, e) => {
600
+ e.series[0].emptyCells ? e.series[0].emptyCells.text = t : e.series[0].emptyCells = { text: t };
601
+ }, Gs = (t) => t.series[0].emptyCells?.symbol, _s = (t, e) => {
602
+ e.series[0].emptyCells ? e.series[0].emptyCells.symbol = t : e.series[0].emptyCells = { symbol: t };
603
+ };
604
+ function Dt(t) {
605
+ return K(t.series) === O.HeatSeries;
606
+ }
607
+ function E(t) {
608
+ const { seriesIndex: e, xAxisField: i, aggregationType: s, config: a, layerInfo: r, commonStrings: o } = t, { objectIdField: l } = r ?? {};
609
+ let n;
610
+ const c = a.series[e ?? 0];
611
+ let f = !1, d = !1;
612
+ if (c === void 0) {
613
+ const y = a.series;
614
+ f = y.slice(0, e).every((g) => A(g)), d = y.slice(0, e).every((g) => v(g));
374
615
  } else
375
- x = T(n), d = A(n);
376
- x ? y = we({
377
- commonStrings: r,
616
+ f = A(c), d = v(c);
617
+ f ? n = et({
618
+ commonStrings: o,
378
619
  seriesIndex: e,
379
- objectIDField: c
380
- }) : d ? y = ke({
381
- commonStrings: r,
620
+ objectIDField: l
621
+ }) : d ? n = tt({
622
+ commonStrings: o,
382
623
  seriesIndex: e,
383
- objectIDField: c
384
- }) : y = je({
624
+ objectIDField: l
625
+ }) : n = it({
385
626
  seriesIndex: e,
386
- objectIDField: c,
387
- commonStrings: r
627
+ objectIDField: l,
628
+ commonStrings: o
388
629
  });
389
- const p = a.series[0]?.dataLabels, m = {
390
- ...y,
630
+ const x = a.series[0]?.dataLabels, m = {
631
+ ...n,
391
632
  x: i,
392
633
  y: "",
393
634
  dataLabels: {
394
- ...y.dataLabels,
395
- type: y.dataLabels?.type ?? O.Text,
396
- content: { ...y.dataLabels?.content, ...p?.content, type: Ee.TS },
397
- visible: p?.visible ?? !1
635
+ ...n.dataLabels,
636
+ type: n.dataLabels?.type ?? O.Text,
637
+ content: { ...n.dataLabels?.content, ...x?.content, type: rt.TS },
638
+ visible: x?.visible ?? !1
398
639
  }
399
640
  };
400
641
  if (m.query = {
401
642
  groupByFieldsForStatistics: [i]
402
- }, s !== I.NoAggregation && c !== void 0) {
403
- const g = `${s}_${c}_0`.toUpperCase();
404
- m.y = g, m.query.outStatistics = [
643
+ }, s !== T.NoAggregation && l !== void 0) {
644
+ const y = `${s}_${l}_0`.toUpperCase();
645
+ m.y = y, m.query.outStatistics = [
405
646
  {
406
647
  statisticType: s,
407
- onStatisticField: c,
408
- outStatisticFieldName: g
648
+ onStatisticField: l,
649
+ outStatisticFieldName: y
409
650
  }
410
651
  ];
411
652
  }
412
- if (T(m) || A(m) || v(m) && a.series[0]?.binTemporalData) {
413
- let g;
414
- if (a?.series?.[0] !== void 0 && (g = J(a.series)), g !== E.BarAndLineNoAggregation && g !== E.BarAndLineSplitByNoAggregation) {
415
- let u = Qe(a);
416
- u === z.Quarter && (u = z.Month), m.temporalBinning = {
417
- size: Je(a),
418
- unit: u,
419
- timeAggregationType: He(a),
420
- trimIncompleteTimeInterval: et(a),
421
- nullPolicy: tt(a)
653
+ if (A(m) || v(m) || C(m) && a.series[0]?.binTemporalData) {
654
+ let y;
655
+ if (a?.series?.[0] !== void 0 && (y = H(a.series)), y !== M.BarAndLineNoAggregation && y !== M.BarAndLineSplitByNoAggregation) {
656
+ let g = Ft(a);
657
+ g === _.Quarter && (g = _.Month), m.temporalBinning = {
658
+ size: St(a),
659
+ unit: g,
660
+ timeAggregationType: bt(a),
661
+ trimIncompleteTimeInterval: Tt(a),
662
+ nullPolicy: ht(a)
422
663
  };
423
664
  }
424
665
  }
425
666
  return R(m);
426
667
  }
427
- function xe(t, e, i) {
428
- const { layerFieldsInfo: s, objectIdField: a } = e, l = U(t), r = te(t), c = Se(t), y = X(t), n = r.length === 0 || r.includes(a), x = ne(c, i), d = n ? "" : r.map((o) => D(s ?? [], o)).join(", "), p = D(s ?? [], l), m = D(s ?? [], y), g = t.series.some((o) => v(o)), u = g ? "category" : "xAxisField", S = p;
429
- let f = "";
430
- if (de({
431
- fieldName: l,
432
- numericFields: r,
668
+ function Ae(t, e, i) {
669
+ const { layerFieldsInfo: s, objectIdField: a } = e, r = k(t), o = ae(t), l = Be(t), n = Y(t), c = o.length === 0 || o.includes(a), f = ge(l, i), d = c ? "" : o.map((u) => I(s ?? [], u)).join(", "), x = I(s ?? [], r), m = I(s ?? [], n), y = t.series.some((u) => C(u)), g = y ? "category" : "xAxisField", S = x;
670
+ let p = "";
671
+ if (me({
672
+ fieldName: r,
673
+ numericFields: o,
433
674
  fieldList: s
434
675
  }))
435
- f = V(i.titleLabels.aggrTypeOfAggrFields, {
436
- aggregationType: x,
676
+ p = D(i.titleLabels.aggrTypeOfAggrFields, {
677
+ aggregationType: f,
437
678
  aggregationFields: d
438
679
  });
439
- else if (c === I.NoAggregation) {
440
- const o = n ? a : d;
441
- if (y === "") {
442
- const q = g ? "aggrTypeCategory" : "aggrTypeXAxisField";
443
- f = V(i.titleLabels[q], {
444
- aggregationType: o,
445
- [u]: S
680
+ else if (l === T.NoAggregation) {
681
+ const u = c ? a : d;
682
+ if (n === "") {
683
+ const q = y ? "aggrTypeCategory" : "aggrTypeXAxisField";
684
+ p = D(i.titleLabels[q], {
685
+ aggregationType: u,
686
+ [g]: S
446
687
  });
447
688
  } else {
448
- const q = g ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
449
- f = V(i.titleLabels[q], {
450
- aggregationType: o,
451
- [u]: S,
689
+ const q = y ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
690
+ p = D(i.titleLabels[q], {
691
+ aggregationType: u,
692
+ [g]: S,
452
693
  splitByField: m
453
694
  });
454
695
  }
455
- } else if (c === I.Count)
456
- if (y === "") {
457
- const o = g ? "aggrTypeCategory" : "aggrTypeXAxisField";
458
- f = V(i.titleLabels[o], {
459
- aggregationType: x,
460
- [u]: S
696
+ } else if (l === T.Count)
697
+ if (n === "") {
698
+ const u = y ? "aggrTypeCategory" : "aggrTypeXAxisField";
699
+ p = D(i.titleLabels[u], {
700
+ aggregationType: f,
701
+ [g]: S
461
702
  });
462
703
  } else {
463
- const o = g ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
464
- f = V(i.titleLabels[o], {
465
- aggregationType: x,
466
- [u]: S,
704
+ const u = y ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
705
+ p = D(i.titleLabels[u], {
706
+ aggregationType: f,
707
+ [g]: S,
467
708
  splitByField: m
468
709
  });
469
710
  }
470
- else if (y !== "") {
471
- const o = g ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
472
- f = V(i.titleLabels[o], {
473
- aggregationType: x,
711
+ else if (n !== "") {
712
+ const u = y ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
713
+ p = D(i.titleLabels[u], {
714
+ aggregationType: f,
474
715
  aggregationField: d,
475
- [u]: S,
716
+ [g]: S,
476
717
  splitByField: m
477
718
  });
478
- } else if (r.length > 0) {
479
- const o = g ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
480
- f = V(i.titleLabels[o], {
481
- aggregationType: x,
719
+ } else if (o.length > 0) {
720
+ const u = y ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
721
+ p = D(i.titleLabels[u], {
722
+ aggregationType: f,
482
723
  aggregationFields: d,
483
- [u]: S
724
+ [g]: S
484
725
  });
485
726
  }
486
- return f;
727
+ return p;
487
728
  }
488
- const pe = (t) => Z({
729
+ const ve = (t) => W({
489
730
  where: t.query?.where,
490
731
  normalize: !1,
491
732
  escape: !1
492
- }) ?? "", Se = (t) => t?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? I.NoAggregation, X = le(
733
+ }) ?? "", Be = (t) => t?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? T.NoAggregation, Y = ce(
493
734
  (t) => {
494
735
  const e = t?.series?.[0]?.query?.where?.split("=")[0].trim() ?? "";
495
- return qe(t?.series?.[0]?.query?.where) ? "" : e;
736
+ return Je(t?.series?.[0]?.query?.where) ? "" : e;
496
737
  },
497
738
  (t) => t?.series?.[0]?.query?.where
498
- ), te = le(
739
+ ), ae = ce(
499
740
  // without memoizing, the worst case efficiency is O(series.length), best case is O(1)
500
741
  // with memoizing, the worst case efficiency for repeated calls becomes O(1)
501
742
  (t) => {
502
743
  let e = [];
503
- if (X(t) === "")
744
+ if (Y(t) === "")
504
745
  e = t?.series.map((i) => {
505
746
  const s = i.query?.outStatistics?.map((a) => a.onStatisticField) ?? [];
506
747
  return s?.length > 0 ? s : i.y;
@@ -514,399 +755,443 @@ const pe = (t) => Z({
514
755
  // using series array address as key, since a change to the numeric fields will always rebuild a fresh series array
515
756
  (t) => t?.series
516
757
  );
517
- function at(t) {
758
+ function Mt(t) {
518
759
  const { numericFields: e, aggregationType: i, config: s, layerInfo: a } = t;
519
- let l = !1;
520
- i === I.Count ? l = !0 : i === I.NoAggregation && (l = e.every((y) => {
521
- const n = a.layerFieldsInfo.find((x) => x.name === y);
522
- return n !== void 0 ? ie(n) : !1;
523
- })), ae(s, 1, l);
524
- const r = s.series.some((y) => T(y)), c = s.series.some((y) => A(y));
525
- if (r || c) {
526
- const y = U(s), n = a.layerFieldsInfo.find((d) => d.name === y), x = n !== void 0 && ie(n);
527
- ae(s, 0, x);
760
+ let r = !1;
761
+ i === T.Count ? r = !0 : i === T.NoAggregation && (r = e.every((n) => {
762
+ const c = a.layerFieldsInfo.find((f) => f.name === n);
763
+ return c !== void 0 ? oe(c) : !1;
764
+ })), ne(s, 1, r);
765
+ const o = s.series.some((n) => A(n)), l = s.series.some((n) => v(n));
766
+ if (o || l) {
767
+ const n = k(s), c = a.layerFieldsInfo.find((d) => d.name === n), f = c !== void 0 && oe(c);
768
+ ne(s, 0, f);
528
769
  }
529
770
  }
530
- const lt = (t) => {
531
- let e = M.xAxisAsc;
532
- const i = t.orderOptions?.data?.orderType ?? k.Category, s = t.orderOptions?.data?.orderBy ?? P.Ascending;
533
- return i === k.Category && Array.isArray(s) ? e = M.customSort : i === k.Category ? s === P.Ascending ? e = M.xAxisAsc : e = M.xAxisDesc : s === P.Ascending ? e = M.yAxisAsc : e = M.yAxisDesc, e;
771
+ const ee = (t) => {
772
+ let e;
773
+ if (K(t.series) === O.HeatSeries) {
774
+ const s = t.orderOptions?.data && "orderByX" in t.orderOptions.data ? t.orderOptions.data.orderByX ?? [""] : [""], a = t.orderOptions?.data && "orderByY" in t.orderOptions.data ? t.orderOptions.data.orderByY ?? [""] : [""], r = t.axes?.[0]?.valueFormat?.type === "category" ? b.Category : b.YValue, o = t.axes?.[1]?.valueFormat?.type === "category" ? b.Category : b.YValue;
775
+ e = [le(s, r), le(a, o)];
776
+ } else {
777
+ const s = t.orderOptions?.data?.orderType ?? b.Category, a = t.orderOptions?.data && "orderBy" in t.orderOptions.data ? t.orderOptions.data.orderBy : de.Ascending;
778
+ e = [ct(a, s)];
779
+ }
780
+ return e;
534
781
  };
535
- function rt(t) {
536
- const { xAxisField: e, numericFields: i, aggregationType: s, config: a, layerInfo: l, commonStrings: r } = t, { layerFieldsInfo: c } = l;
537
- let y = !1;
538
- const n = j({
782
+ function Pt(t) {
783
+ const { xAxisField: e, numericFields: i, aggregationType: s, config: a, layerInfo: r, commonStrings: o } = t, { layerFieldsInfo: l } = r;
784
+ let n = !1;
785
+ const c = E({
539
786
  config: a,
540
787
  xAxisField: e,
541
788
  aggregationType: s,
542
- layerInfo: l,
789
+ layerInfo: r,
543
790
  seriesIndex: 0,
544
- commonStrings: r
545
- }), x = H({
791
+ commonStrings: o
792
+ }), f = se({
546
793
  config: a,
547
794
  xAxisField: e,
548
795
  numericFields: i,
549
796
  aggregationType: s,
550
- layer: l.layer,
551
- fieldList: c
797
+ layer: r.layer,
798
+ fieldList: l
552
799
  }).name, d = {
553
- ...n,
800
+ ...c,
554
801
  id: `series_${Date.now()}`,
555
- name: r.axisLabels.values,
556
- x: K,
557
- y: x
558
- }, p = [];
559
- for (const g of i)
560
- p.push({
561
- onStatisticField: g,
562
- outStatisticFieldName: `${g}_0`.toUpperCase(),
802
+ name: o.axisLabels.values,
803
+ x: U,
804
+ y: f
805
+ }, x = [];
806
+ for (const y of i)
807
+ x.push({
808
+ onStatisticField: y,
809
+ outStatisticFieldName: `${y}_0`.toUpperCase(),
563
810
  statisticType: s
564
811
  });
565
- d.query = { outStatistics: p };
812
+ d.query = { outStatistics: x };
566
813
  const m = a.series[0];
567
- return m !== void 0 && (d.id = m.id, a.colorMatch || (v(m) && v(d) ? d.fillSymbol = m.fillSymbol : (T(d) && T(m) || A(d) && A(m)) && (d.lineSymbol = m.lineSymbol, d.markerSymbol = m.markerSymbol), y = !0), d.id = m.id, m.name !== n.name && (d.name = m.name)), a.series.length === 1 && !a.colorMatch && (v(d) ? d.fillSymbol = a.series[0].fillSymbol : (T(d) || A(d)) && (d.lineSymbol = a.series[0].lineSymbol, d.markerSymbol = a.series[0].markerSymbol), y = !0), a.colorMatch = !y, [d];
814
+ return m !== void 0 && (d.id = m.id, a.colorMatch || (C(m) && C(d) ? d.fillSymbol = m.fillSymbol : (A(d) && A(m) || v(d) && v(m)) && (d.lineSymbol = m.lineSymbol, d.markerSymbol = m.markerSymbol), n = !0), d.id = m.id, m.name !== c.name && (d.name = m.name)), a.series.length === 1 && !a.colorMatch && (C(d) ? d.fillSymbol = a.series[0].fillSymbol : (A(d) || v(d)) && (d.lineSymbol = a.series[0].lineSymbol, d.markerSymbol = a.series[0].markerSymbol), n = !0), a.colorMatch = !n, [d];
568
815
  }
569
- function be(t) {
570
- const { xAxisField: e, numericFields: i, aggregationType: s, config: a, layerInfo: l, commonStrings: r } = t, { layerFieldsInfo: c, objectIdField: y } = l, n = [];
571
- let x = !1;
816
+ function Ce(t) {
817
+ const { xAxisField: e, numericFields: i, aggregationType: s, config: a, layerInfo: r, commonStrings: o } = t, { layerFieldsInfo: l, objectIdField: n } = r, c = [];
818
+ let f = !1;
572
819
  for (let d = 0; d < i.length; d += 1) {
573
- const p = j({
820
+ const x = E({
574
821
  config: a,
575
822
  xAxisField: e,
576
823
  aggregationType: s,
577
- layerInfo: l,
824
+ layerInfo: r,
578
825
  seriesIndex: d,
579
- commonStrings: r
580
- }), m = H({
826
+ commonStrings: o
827
+ }), m = se({
581
828
  config: a,
582
829
  xAxisField: e,
583
830
  numericFields: i,
584
831
  aggregationType: s,
585
- layer: l.layer,
832
+ layer: r.layer,
586
833
  numericFieldIndex: d,
587
- fieldList: c
588
- }).name, g = i[d];
589
- let u = {
590
- ...p,
834
+ fieldList: l
835
+ }).name, y = i[d];
836
+ let g = {
837
+ ...x,
591
838
  query: {
592
- ...p.query
839
+ ...x.query
593
840
  }
594
841
  };
595
- g !== y && (u = {
596
- ...u,
597
- id: g,
598
- name: D(c, g)
842
+ y !== n && (g = {
843
+ ...g,
844
+ id: y,
845
+ name: I(l, y)
599
846
  });
600
- let S = g;
601
- u.query !== void 0 && (s !== I.NoAggregation ? (S = m, u.query.outStatistics = [
847
+ let S = y;
848
+ g.query !== void 0 && (s !== T.NoAggregation ? (S = m, g.query.outStatistics = [
602
849
  {
603
- ...p.query?.outStatistics?.[0] ?? {},
604
- onStatisticField: g,
850
+ ...x.query?.outStatistics?.[0] ?? {},
851
+ onStatisticField: y,
605
852
  outStatisticFieldName: m,
606
853
  statisticType: s
607
854
  }
608
- ]) : delete u.query.outStatistics), u.y = S;
609
- const f = a.series.find(
610
- (o) => o.query?.outStatistics?.[0]?.onStatisticField === g && o.query.where === void 0
855
+ ]) : delete g.query.outStatistics), g.y = S;
856
+ const p = a.series.find(
857
+ (u) => u.query?.outStatistics?.[0]?.onStatisticField === y && u.query.where === void 0
611
858
  );
612
- if (f !== void 0 && typeof f.y == "string" && f.y.trim() !== "") {
613
- a.colorMatch || (v(u) && v(f) ? u.fillSymbol = f.fillSymbol : (T(u) && T(f) || A(u) && A(f)) && (u.lineSymbol = f.lineSymbol, u.markerSymbol = f.markerSymbol), x = !0);
614
- const o = j({
859
+ if (p !== void 0 && typeof p.y == "string" && p.y.trim() !== "") {
860
+ a.colorMatch || (C(g) && C(p) ? g.fillSymbol = p.fillSymbol : (A(g) && A(p) || v(g) && v(p)) && (g.lineSymbol = p.lineSymbol, g.markerSymbol = p.markerSymbol), f = !0);
861
+ const u = E({
615
862
  config: a,
616
863
  xAxisField: e,
617
864
  aggregationType: s,
618
- layerInfo: l,
865
+ layerInfo: r,
619
866
  seriesIndex: d,
620
- commonStrings: r
867
+ commonStrings: o
621
868
  });
622
- u.id = f.id, f.id !== o.id && f.name !== o.name && (u.id = f.id, u.name = f.name);
869
+ g.id = p.id, p.id !== u.id && p.name !== u.name && (g.id = p.id, g.name = p.name);
623
870
  }
624
- n.push(u);
871
+ c.push(g);
625
872
  }
626
- return a.series.length === 1 && n.length === 1 && !a.colorMatch && (v(a.series[0]) && v(n[0]) ? n[0].fillSymbol = a.series[0].fillSymbol : (T(a.series[0]) && T(n[0]) || A(a.series[0]) && A(n[0])) && (n[0].lineSymbol = a.series[0].lineSymbol, n[0].markerSymbol = a.series[0].markerSymbol), x = !0), a.colorMatch = !x, n;
873
+ return a.series.length === 1 && c.length === 1 && !a.colorMatch && (C(a.series[0]) && C(c[0]) ? c[0].fillSymbol = a.series[0].fillSymbol : (A(a.series[0]) && A(c[0]) || v(a.series[0]) && v(c[0])) && (c[0].lineSymbol = a.series[0].lineSymbol, c[0].markerSymbol = a.series[0].markerSymbol), f = !0), a.colorMatch = !f, c;
627
874
  }
628
- async function ot(t) {
629
- const { splitByField: e, xAxisField: i, numericFields: s, aggregationType: a, config: l, layerInfo: r, commonStrings: c } = t, { layer: y, layerFieldsInfo: n } = r, { fetchNullValues: x } = l?.series?.[0]?.query ?? {}, d = i !== K ? i : void 0, { categoriesArray: p, splitByFieldType: m, numericalField: g } = await We({
630
- config: l,
631
- layer: y,
632
- layerFieldsInfo: n,
875
+ async function Et(t) {
876
+ const { splitByField: e, xAxisField: i, numericFields: s, aggregationType: a, config: r, layerInfo: o, commonStrings: l } = t, { layer: n, layerFieldsInfo: c } = o, { fetchNullValues: f } = r?.series?.[0]?.query ?? {}, d = i !== U ? i : void 0, { categoriesArray: x, splitByFieldType: m, numericalField: y } = await ut({
877
+ config: r,
878
+ layer: n,
879
+ layerFieldsInfo: c,
633
880
  xAxisField: d,
634
881
  aggregationFields: s,
635
882
  splitByField: e,
636
- fetchNullValues: x
883
+ fetchNullValues: f
637
884
  });
638
- let u = [], S = !1;
639
- if (p.length === 0) {
640
- u = be({
885
+ let g = [], S = !1;
886
+ if (x.length === 0) {
887
+ g = Ce({
641
888
  xAxisField: i,
642
889
  numericFields: s,
643
890
  aggregationType: a,
644
- config: l,
645
- layerInfo: r,
646
- commonStrings: c
891
+ config: r,
892
+ layerInfo: o,
893
+ commonStrings: l
647
894
  });
648
- for (const f of u)
649
- f.query && (f.query.where = `${e}=''`);
895
+ for (const p of g)
896
+ p.query && (p.query.where = `${e}=''`);
650
897
  } else
651
- for (let f = 0; f < p.length; f += 1) {
652
- const o = p[f], q = H({
653
- config: l,
898
+ for (let p = 0; p < x.length; p += 1) {
899
+ const u = x[p], q = se({
900
+ config: r,
654
901
  xAxisField: i,
655
902
  numericFields: s,
656
903
  aggregationType: a,
657
- layer: r.layer,
658
- seriesIndex: f,
904
+ layer: o.layer,
905
+ seriesIndex: p,
659
906
  splitByField: e,
660
- fieldList: n
661
- }).name, w = j({
662
- config: l,
907
+ fieldList: c
908
+ }).name, P = E({
909
+ config: r,
663
910
  xAxisField: i,
664
911
  aggregationType: a,
665
- layerInfo: r,
666
- seriesIndex: f,
667
- commonStrings: c
668
- }), Fe = {
912
+ layerInfo: o,
913
+ seriesIndex: p,
914
+ commonStrings: l
915
+ }), Ie = {
669
916
  fieldName: e,
670
- fieldValueToMatch: o ?? "",
671
- subtypeInfo: _(r.layer),
672
- fieldList: r.layerFieldsInfo
673
- }, Te = G(Fe), W = `${o}`, F = {
674
- ...w,
675
- id: W,
676
- name: Te ?? W,
917
+ fieldValueToMatch: u ?? "",
918
+ subtypeInfo: te(o.layer),
919
+ fieldList: o.layerFieldsInfo
920
+ }, Le = ie(Ie), z = `${u}`, h = {
921
+ ...P,
922
+ id: z,
923
+ name: Le ?? z,
677
924
  y: q,
678
925
  query: {
679
- ...w.query,
680
- where: `${e}=${m === ce.String && o !== null ? `'${o}'` : o}`,
681
- outStatistics: a !== I.NoAggregation ? [
926
+ ...P.query,
927
+ where: `${e}=${m === fe.String && u !== null ? `'${u}'` : u}`,
928
+ outStatistics: a !== T.NoAggregation ? [
682
929
  {
683
- ...w.query?.outStatistics?.[0] ?? {},
684
- onStatisticField: g,
930
+ ...P.query?.outStatistics?.[0] ?? {},
931
+ onStatisticField: y,
685
932
  outStatisticFieldName: q,
686
933
  statisticType: a
687
934
  }
688
935
  ] : void 0
689
936
  }
690
937
  };
691
- a === I.NoAggregation && (F.query !== void 0 && (delete F.query.outStatistics, delete F.query.groupByFieldsForStatistics), F.y = g);
692
- const N = l.series.find(
693
- (Ae) => String(pe(Ae)).trim().replace(/'/gu, "") === W
938
+ a === T.NoAggregation && (h.query !== void 0 && (delete h.query.outStatistics, delete h.query.groupByFieldsForStatistics), h.y = y);
939
+ const w = r.series.find(
940
+ (Ve) => String(ve(Ve)).trim().replace(/'/gu, "") === z
694
941
  );
695
- N !== void 0 && (l.colorMatch || (v(F) && v(N) ? F.fillSymbol = N.fillSymbol : (T(F) && T(N) || A(F) && A(N)) && (F.lineSymbol = N.lineSymbol, F.markerSymbol = N.markerSymbol), S = !0), F.id = N.id, F.name = N.name), u.push(F);
942
+ w !== void 0 && (r.colorMatch || (C(h) && C(w) ? h.fillSymbol = w.fillSymbol : (A(h) && A(w) || v(h) && v(w)) && (h.lineSymbol = w.lineSymbol, h.markerSymbol = w.markerSymbol), S = !0), h.id = w.id, h.name = w.name), g.push(h);
696
943
  }
697
- return l.colorMatch = !S, u;
698
- }
699
- const Wi = async (t) => {
700
- const { xAxisField: e, splitByField: i, numericFields: s, aggregationType: a, config: l, layerInfo: r, commonStrings: c } = t, { layerFieldsInfo: y } = r ?? {}, n = st(l), x = U(l), d = nt(l, r, c), p = ct(l, r, c), m = dt(l, r);
701
- let g = fe(l);
702
- const u = l.series.some((o) => v(o)), S = Xe(l.series), f = Re(l.series);
703
- if (y !== void 0) {
704
- const o = Me(y);
705
- !o.includes(x) && o.includes(e) ? g = Ue() : o.includes(x) && !o.includes(e) && (u ? g = Y() : g = Pe()), y.find((w) => w.name === e)?.type === ce.String && (g = Y()), g !== void 0 && ze(l, c, g);
944
+ return r.colorMatch = !S, g;
945
+ }
946
+ const Js = async (t) => {
947
+ const { xAxisField: e, splitByField: i, numericFields: s, aggregationType: a, config: r, layerInfo: o, commonStrings: l } = t, { layerFieldsInfo: n } = o ?? {}, c = vt(r), f = k(r), d = Rt(r, o, l), x = $t(r, o, l), m = kt(r, o);
948
+ let y = be(r);
949
+ const g = r.series.some((u) => C(u)), S = lt(r.series), p = nt(r.series);
950
+ if (n !== void 0) {
951
+ const u = Ze(n);
952
+ !u.includes(f) && u.includes(e) ? y = st() : u.includes(f) && !u.includes(e) && (g ? y = J() : y = at()), n.find((P) => P.name === e)?.type === fe.String && (y = J()), y !== void 0 && gt(r, l, y);
706
953
  }
707
- if (n === 0 && (l.series = [
708
- j({ config: l, xAxisField: e, aggregationType: a, layerInfo: r, commonStrings: c })
709
- ]), l.series.forEach((o) => {
710
- o.x = e, o.query !== void 0 && (o.query.groupByFieldsForStatistics = [e]);
711
- }), i === "" || s.length > 1 ? de({
954
+ if (c === 0 && (r.series = [
955
+ E({ config: r, xAxisField: e, aggregationType: a, layerInfo: o, commonStrings: l })
956
+ ]), r.series.forEach((u) => {
957
+ u.x = e, u.query !== void 0 && (u.query.groupByFieldsForStatistics = [e]);
958
+ }), i === "" || s.length > 1 ? me({
712
959
  fieldName: e,
713
960
  numericFields: s,
714
- fieldList: y
715
- }) ? l.series = rt({
716
- config: l,
717
- layerInfo: r,
961
+ fieldList: n
962
+ }) ? r.series = Pt({
963
+ config: r,
964
+ layerInfo: o,
718
965
  xAxisField: e,
719
966
  numericFields: s,
720
967
  aggregationType: a,
721
- commonStrings: c
722
- }) : l.series = be({
723
- config: l,
724
- layerInfo: r,
968
+ commonStrings: l
969
+ }) : r.series = Ce({
970
+ config: r,
971
+ layerInfo: o,
725
972
  xAxisField: e,
726
973
  numericFields: s,
727
974
  aggregationType: a,
728
- commonStrings: c
729
- }) : (await Promise.resolve(), l.series = await ot({
730
- config: l,
731
- layerInfo: r,
975
+ commonStrings: l
976
+ }) : (await Promise.resolve(), r.series = await Et({
977
+ config: r,
978
+ layerInfo: o,
732
979
  splitByField: i,
733
980
  xAxisField: e,
734
981
  numericFields: s,
735
982
  aggregationType: a,
736
- commonStrings: c
983
+ commonStrings: l
737
984
  })), m) {
738
- const o = D(y, e);
739
- se(l, 0, o);
985
+ const u = I(n, e);
986
+ j(r, 0, u);
740
987
  }
741
- if (p) {
742
- const o = ue({
743
- config: l,
744
- layerInfo: r,
745
- commonStrings: c,
988
+ if (x) {
989
+ const u = xe({
990
+ config: r,
991
+ layerInfo: o,
992
+ commonStrings: l,
746
993
  numericFields: s,
747
994
  aggregationType: a
748
995
  });
749
- se(l, 1, o);
996
+ j(r, 1, u);
750
997
  }
751
- if (l.title && d && (l.title.content.text = xe(l, r, c)), b({ config: l, value: null, axisIndex: 1, isMax: !1 }), b({ config: l, value: null, axisIndex: 1, isMax: !0 }), at({ numericFields: s, aggregationType: a, config: l, layerInfo: r }), S || f) {
752
- b({ config: l, value: null, axisIndex: 0, isMax: !1 }), b({ config: l, value: null, axisIndex: 0, isMax: !0 }), me(0, l);
753
- const o = g?.type === O.DateAxisFormat ? $.Null : $.Interpolate;
754
- it(o, l);
998
+ if (r.title && d && (r.title.content.text = Ae(r, o, l)), F({ config: r, value: null, axisIndex: 1, isMax: !1 }), F({ config: r, value: null, axisIndex: 1, isMax: !0 }), Mt({ numericFields: s, aggregationType: a, config: r, layerInfo: o }), S || p) {
999
+ F({ config: r, value: null, axisIndex: 0, isMax: !1 }), F({ config: r, value: null, axisIndex: 0, isMax: !0 }), Te(0, r);
1000
+ const u = y?.type === O.DateAxisFormat ? G.Null : G.Interpolate;
1001
+ At(u, r);
755
1002
  }
756
- }, $i = (t) => {
757
- const { config: e, seriesIndex: i, layerInfo: s, commonStrings: a } = t, l = e.series?.[i], r = X(e);
758
- let c;
759
- if (J(e.series) === E.BarAndLineFromFields)
760
- c = a.axisLabels.values;
761
- else if (he(r)) {
762
- const n = l.query?.outStatistics?.[0]?.onStatisticField;
763
- n !== void 0 && n !== s.objectIdField && (c = D(s.layerFieldsInfo, n));
1003
+ }, Zs = (t) => {
1004
+ const { config: e, seriesIndex: i, layerInfo: s, commonStrings: a } = t, r = e.series?.[i], o = Y(e);
1005
+ let l;
1006
+ if (H(e.series) === M.BarAndLineFromFields)
1007
+ l = a.axisLabels.values;
1008
+ else if (Ne(o)) {
1009
+ const c = r.query?.outStatistics?.[0]?.onStatisticField;
1010
+ c !== void 0 && c !== s.objectIdField && (l = I(s.layerFieldsInfo, c));
764
1011
  } else {
765
- const n = String(pe(l)).trim().replace(/'/gu, ""), x = {
766
- fieldName: X(e),
767
- fieldValueToMatch: n ?? "",
768
- subtypeInfo: _(s.layer),
1012
+ const c = String(ve(r)).trim().replace(/'/gu, ""), f = {
1013
+ fieldName: Y(e),
1014
+ fieldValueToMatch: c ?? "",
1015
+ subtypeInfo: te(s.layer),
769
1016
  fieldList: s.layerFieldsInfo
770
1017
  };
771
- c = G(x) ?? n;
1018
+ l = ie(f) ?? c;
772
1019
  }
773
- return c ?? l.id;
774
- }, zi = (t, e) => {
775
- e.orderOptions ??= {};
776
- const i = e.orderOptions?.data?.orderType;
777
- lt(e) === M.customSort && i === k.Category && (e.orderOptions.data = {
778
- orderType: k.Category,
779
- orderBy: [...t]
780
- });
781
- }, Yi = async (t, e) => {
782
- const i = U(t), s = fe(t)?.type, a = te(t), l = J(t.series);
783
- let r = [];
784
- return s === O.CategoryAxisFormat && (l === E.BarAndLineFromFields || i === K ? r = a.map((c) => D(e?.layerFieldsInfo, c)) : i.trim() !== "" && i !== K && e !== void 0 && (r = await $e({
1020
+ return l ?? r.id;
1021
+ }, ea = (t, e) => {
1022
+ if (Dt(e))
1023
+ wt(t, e);
1024
+ else {
1025
+ e.orderOptions ??= {};
1026
+ const i = e.orderOptions?.data?.orderType;
1027
+ ee(e)[0] === Z.customSort && i === b.Category && (e.orderOptions.data = {
1028
+ orderType: b.Category,
1029
+ orderBy: [...t]
1030
+ });
1031
+ }
1032
+ }, ta = async (t, e) => {
1033
+ const i = k(t), s = be(t)?.type, a = ae(t), r = H(t.series);
1034
+ let o = [];
1035
+ return s === O.CategoryAxisFormat && (r === M.BarAndLineFromFields || i === U ? o = a.map((l) => I(e?.layerFieldsInfo, l)) : i.trim() !== "" && i !== U && e !== void 0 && (o = await yt({
785
1036
  layerInfo: e,
786
1037
  config: t,
787
1038
  category: i
788
- }))), r;
1039
+ }))), o;
789
1040
  };
790
- function nt(t, e, i) {
791
- const s = xe(t, e, i), a = Ge(t), l = Q(t);
792
- return s === a || l;
1041
+ function Rt(t, e, i) {
1042
+ const s = Ae(t, e, i), a = mt(t), r = $(t);
1043
+ return s === a || r;
793
1044
  }
794
- function ct(t, e, i) {
795
- const s = ue({
1045
+ function $t(t, e, i) {
1046
+ const s = xe({
796
1047
  config: t,
797
1048
  layerInfo: e,
798
1049
  commonStrings: i,
799
- numericFields: te(t),
800
- aggregationType: Se(t)
801
- }), a = ee(1, t), l = Q(t);
802
- return s === a || l;
1050
+ numericFields: ae(t),
1051
+ aggregationType: Be(t)
1052
+ }), a = X(1, t), r = $(t);
1053
+ return s === a || r;
803
1054
  }
804
- function dt(t, e) {
805
- const i = D(e.layerFieldsInfo, U(t)), s = ee(0, t), a = Q(t);
1055
+ function kt(t, e) {
1056
+ const i = I(e.layerFieldsInfo, k(t)), s = X(0, t), a = $(t);
806
1057
  return i === s || a;
807
1058
  }
808
- function _i(t) {
1059
+ function ia(t) {
809
1060
  return t.series[0]?.binTemporalData ?? !1;
810
1061
  }
811
- function Gi(t, e) {
1062
+ function sa(t, e) {
812
1063
  e?.series.forEach((i) => {
813
1064
  (i?.type === O.BarSeries || i?.type === O.LineSeries) && (i.binTemporalData = t, t ? i.temporalBinning = {
814
- unit: z.Day,
1065
+ unit: _.Day,
815
1066
  size: 0,
816
- timeAggregationType: Be.Start,
1067
+ timeAggregationType: qe.Start,
817
1068
  trimIncompleteTimeInterval: !0,
818
- nullPolicy: $.Null
1069
+ nullPolicy: G.Null
819
1070
  } : delete i.temporalBinning);
820
1071
  });
821
1072
  }
822
1073
  export {
823
- st as $,
824
- tt as A,
825
- it as B,
826
- Ui as C,
827
- lt as D,
828
- Yi as E,
829
- zi as F,
830
- _i as G,
831
- Gi as H,
832
- Wi as I,
833
- xe as J,
834
- ei as K,
835
- Zt as L,
836
- Jt as M,
837
- Qt as N,
838
- Ht as O,
839
- ti as P,
840
- ii as Q,
841
- si as R,
842
- ai as S,
843
- li as T,
844
- Ze as U,
845
- ri as V,
846
- oi as W,
847
- ni as X,
848
- Ki as Y,
849
- Pi as Z,
850
- Ei as _,
851
- ee as a,
852
- Xi as a0,
853
- Ri as a1,
854
- Di as a2,
855
- Vi as a3,
856
- qi as a4,
857
- Mi as a5,
858
- pi as a6,
859
- Si as a7,
860
- bi as a8,
861
- Xt as a9,
862
- Rt as aa,
863
- ci as ab,
864
- di as ac,
865
- ui as ad,
866
- yi as ae,
867
- gi as af,
868
- fi as ag,
869
- Wt as ah,
870
- mi as ai,
871
- xi as aj,
872
- Bi as ak,
873
- $t as al,
874
- zt as am,
875
- Yt as an,
876
- _t as ao,
877
- Gt as ap,
1074
+ ut as $,
1075
+ Ds as A,
1076
+ Bs as B,
1077
+ Cs as C,
1078
+ Es as D,
1079
+ Ps as E,
1080
+ $s as F,
1081
+ Rs as G,
1082
+ Ls as H,
1083
+ Is as I,
1084
+ Ns as J,
1085
+ Vs as K,
1086
+ Us as L,
1087
+ js as M,
1088
+ Ys as N,
1089
+ Ks as O,
1090
+ Xs as P,
1091
+ ks as Q,
1092
+ Ws as R,
1093
+ Hs as S,
1094
+ zs as T,
1095
+ Qs as U,
1096
+ Gs as V,
1097
+ _s as W,
1098
+ cs as X,
1099
+ be as Y,
1100
+ yt as Z,
1101
+ gt as _,
1102
+ X as a,
1103
+ As as a$,
1104
+ ne as a0,
1105
+ Oi as a1,
1106
+ Ii as a2,
1107
+ Li as a3,
1108
+ Vi as a4,
1109
+ Ni as a5,
1110
+ qi as a6,
1111
+ wi as a7,
1112
+ Di as a8,
1113
+ Mi as a9,
1114
+ Ft as aA,
1115
+ ys as aB,
1116
+ bt as aC,
1117
+ gs as aD,
1118
+ Tt as aE,
1119
+ fs as aF,
1120
+ ht as aG,
1121
+ At as aH,
1122
+ ps as aI,
1123
+ Ti as aJ,
1124
+ Wi as aK,
1125
+ Hi as aL,
1126
+ ss as aM,
1127
+ hi as aN,
1128
+ Ai as aO,
1129
+ vi as aP,
1130
+ Bi as aQ,
1131
+ Ci as aR,
1132
+ _i as aS,
1133
+ Ji as aT,
1134
+ Zi as aU,
1135
+ es as aV,
1136
+ ts as aW,
1137
+ is as aX,
1138
+ as as aY,
1139
+ rs as aZ,
1140
+ os as a_,
1141
+ Pi as aa,
1142
+ xt as ab,
1143
+ Ei as ac,
1144
+ Ri as ad,
1145
+ $i as ae,
1146
+ ms as af,
1147
+ vt as ag,
1148
+ xs as ah,
1149
+ Ss as ai,
1150
+ ns as aj,
1151
+ ls as ak,
1152
+ ds as al,
1153
+ us as am,
1154
+ zi as an,
1155
+ Qi as ao,
1156
+ Gi as ap,
878
1157
  Fi as aq,
879
- Ti as ar,
880
- Ai as as,
881
- hi as at,
882
- vi as au,
883
- Ii as av,
884
- Li as aw,
885
- Ci as ax,
886
- Ni as ay,
887
- ue as b,
888
- $i as c,
889
- Kt as d,
890
- Pt as e,
891
- Se as f,
892
- Ge as g,
893
- te as h,
894
- Et as i,
895
- Oi as j,
896
- X as k,
897
- fe as l,
898
- $e as m,
899
- ze as n,
900
- We as o,
901
- ae as p,
902
- Je as q,
903
- me as r,
904
- b as s,
905
- Qe as t,
906
- se as u,
907
- wi as v,
908
- He as w,
909
- ki as x,
910
- et as y,
911
- ji as z
1158
+ bi as ar,
1159
+ ki as as,
1160
+ Xi as at,
1161
+ Ui as au,
1162
+ ji as av,
1163
+ Yi as aw,
1164
+ Ki as ax,
1165
+ St as ay,
1166
+ Te as az,
1167
+ xe as b,
1168
+ hs as b0,
1169
+ Ts as b1,
1170
+ Fs as b2,
1171
+ bs as b3,
1172
+ he as b4,
1173
+ Zs as c,
1174
+ Si as d,
1175
+ xi as e,
1176
+ ee as f,
1177
+ mt as g,
1178
+ ta as h,
1179
+ mi as i,
1180
+ ea as j,
1181
+ ia as k,
1182
+ sa as l,
1183
+ Be as m,
1184
+ Y as n,
1185
+ ae as o,
1186
+ Js as p,
1187
+ Ae as q,
1188
+ Ot as r,
1189
+ F as s,
1190
+ vs as t,
1191
+ j as u,
1192
+ qt as v,
1193
+ Os as w,
1194
+ ws as x,
1195
+ qs as y,
1196
+ Ms as z
912
1197
  };