@arcgis/charts-components 5.0.0-next.114 → 5.0.0-next.116

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 (420) hide show
  1. package/dist/cdn/2AT47FOV.js +4 -0
  2. package/dist/cdn/{RQT2MN42.js → 2FBA5PUG.js} +2 -2
  3. package/dist/cdn/{GMQUAAO2.js → 2GMN5SDI.js} +2 -2
  4. package/dist/cdn/{6W4YRK74.js → 2QS5TJQ5.js} +2 -2
  5. package/dist/cdn/{3QGTKNQ6.js → 2UFPDUIM.js} +2 -2
  6. package/dist/cdn/{53VJWULL.js → 2VJZAFQ5.js} +2 -2
  7. package/dist/cdn/{3MUVNXGI.js → 2VTJEBKD.js} +2 -2
  8. package/dist/cdn/32Z3ILDE.js +4 -0
  9. package/dist/cdn/332VMES2.js +4 -0
  10. package/dist/cdn/3EIELKWA.js +4 -0
  11. package/dist/cdn/{TGB5KU2R.js → 3G326OQZ.js} +2 -2
  12. package/dist/cdn/{5DJXTCA4.js → 3KMT633V.js} +2 -2
  13. package/dist/cdn/{WQYWISKC.js → 3QIAN4NS.js} +2 -2
  14. package/dist/cdn/{AM5VHYYJ.js → 3QQW7LHD.js} +2 -2
  15. package/dist/cdn/3RFGO2LD.js +4 -0
  16. package/dist/cdn/{CDBECKFD.js → 3RLZ3DW3.js} +2 -2
  17. package/dist/cdn/{GXJBV5UC.js → 45QWWJD3.js} +2 -2
  18. package/dist/cdn/{I4ZMBVX7.js → 4J4KBZY3.js} +2 -2
  19. package/dist/cdn/{7HCPPTUF.js → 4LBJNKKZ.js} +2 -2
  20. package/dist/cdn/{CU6T4VVL.js → 4OGHM3VZ.js} +2 -2
  21. package/dist/cdn/{N3QUHG2D.js → 4QFEW5TW.js} +2 -2
  22. package/dist/cdn/{7TK3JICU.js → 4RMNH5HJ.js} +2 -2
  23. package/dist/cdn/{Q5YT7SCP.js → 55MXXTNW.js} +2 -2
  24. package/dist/cdn/{YBWCF4IP.js → 57E24OM4.js} +2 -2
  25. package/dist/cdn/{R36SCSY2.js → 5DW2ZJAO.js} +2 -2
  26. package/dist/cdn/{WMPSIJNV.js → 5EWHPJJ5.js} +2 -2
  27. package/dist/cdn/{NVUJTAXL.js → 5I5JN5D4.js} +2 -2
  28. package/dist/cdn/65N2W4PE.js +34 -0
  29. package/dist/cdn/{HGCY5B3V.js → 6EJUU3SQ.js} +2 -2
  30. package/dist/cdn/6TJC4ARR.js +4 -0
  31. package/dist/cdn/{QYN5OFQK.js → 6VN7W4Z2.js} +1 -1
  32. package/dist/cdn/6YNW5VCL.js +4 -0
  33. package/dist/cdn/7AUAR63V.js +4 -0
  34. package/dist/cdn/{4SMSSHLX.js → 7GUP5FX5.js} +2 -2
  35. package/dist/cdn/{3MM3XJPI.js → 7KNKL7YD.js} +2 -2
  36. package/dist/cdn/{2GULATCF.js → 7LIDKM3N.js} +2 -2
  37. package/dist/cdn/{P3EOBFDT.js → A4QJGZYT.js} +2 -2
  38. package/dist/cdn/A4ZWPSMP.js +4 -0
  39. package/dist/cdn/{55RWZ5NT.js → AHMMJX3X.js} +2 -2
  40. package/dist/cdn/APSLVZEW.js +4 -0
  41. package/dist/cdn/{DEFPCI6M.js → AQQXXPQZ.js} +2 -2
  42. package/dist/cdn/AUWJJX2Y.js +4 -0
  43. package/dist/cdn/{CW423CUZ.js → AXHOHEHC.js} +1 -1
  44. package/dist/cdn/{LT2ATX5N.js → BP5JW4TO.js} +2 -2
  45. package/dist/cdn/{R5Y7ZMDF.js → BQF3ODZK.js} +2 -2
  46. package/dist/cdn/{U7XLUM43.js → BWHBVBRT.js} +2 -2
  47. package/dist/cdn/C47CFB4O.js +4 -0
  48. package/dist/cdn/{T467NUGF.js → CBVYZRGJ.js} +2 -2
  49. package/dist/cdn/{DH7D2MGT.js → CCFDRTZG.js} +29 -29
  50. package/dist/cdn/CGR4BWQJ.js +4 -0
  51. package/dist/cdn/CGXE3LSR.js +4 -0
  52. package/dist/cdn/{52233W4X.js → CVA2R34Y.js} +2 -2
  53. package/dist/cdn/CXA7LQDC.js +6 -0
  54. package/dist/cdn/{YYEUYKQA.js → CZSHY7VL.js} +2 -2
  55. package/dist/cdn/{JC4ID4OZ.js → D2TJTRO3.js} +2 -2
  56. package/dist/cdn/{LFAVERZK.js → D6FUQNYT.js} +2 -2
  57. package/dist/cdn/DEBFITLZ.js +4 -0
  58. package/dist/cdn/{EHONVPL7.js → DPP5JBQ6.js} +1 -1
  59. package/dist/cdn/DSBEXXSM.js +4 -0
  60. package/dist/cdn/{NXA7ZUX6.js → E3YRBMHV.js} +2 -2
  61. package/dist/cdn/{C46PS4TX.js → EAS3QCTO.js} +2 -2
  62. package/dist/cdn/{TSFTZUSI.js → F23KF5EO.js} +2 -2
  63. package/dist/cdn/{3BF4AQED.js → F5R34OKI.js} +2 -2
  64. package/dist/cdn/{IIIH67B3.js → F6MBWAXU.js} +2 -2
  65. package/dist/cdn/{3PO4B2K3.js → FV6A53GU.js} +2 -2
  66. package/dist/cdn/FVRR32JS.js +4 -0
  67. package/dist/cdn/{2HA2PZQ6.js → G365JBMZ.js} +1 -1
  68. package/dist/cdn/{WCY2L442.js → GEUAPKKO.js} +2 -2
  69. package/dist/cdn/GFEH2RHW.js +4 -0
  70. package/dist/cdn/GFZKNEVQ.js +4 -0
  71. package/dist/cdn/GVJLDDWJ.js +4 -0
  72. package/dist/cdn/GWUK3GRV.js +4 -0
  73. package/dist/cdn/{EF7JCBMS.js → GZLY6HQP.js} +1 -1
  74. package/dist/cdn/{WYBZLFF7.js → H2AO665N.js} +2 -2
  75. package/dist/cdn/{3LQWIMRQ.js → HD2ZXNGB.js} +2 -2
  76. package/dist/cdn/{H7GIIEPS.js → HMSCED6P.js} +2 -2
  77. package/dist/cdn/HOCGYEJY.js +4 -0
  78. package/dist/cdn/HT6LU5EY.js +4 -0
  79. package/dist/cdn/I7HHGT5I.js +4 -0
  80. package/dist/cdn/{2CX7YXG7.js → IAAJMNRU.js} +2 -2
  81. package/dist/cdn/{LDBJBLWQ.js → IBAAGUE6.js} +2 -2
  82. package/dist/cdn/{SNF5E6SM.js → ICDQXJJL.js} +2 -2
  83. package/dist/cdn/IGJEGPQG.js +4 -0
  84. package/dist/cdn/{IJJZGPAW.js → IGPDOFMJ.js} +2 -2
  85. package/dist/cdn/{QIZBGZEE.js → IJL3YCYM.js} +2 -2
  86. package/dist/cdn/ILR2ZA54.js +4 -0
  87. package/dist/cdn/IWRMT56Y.js +4 -0
  88. package/dist/cdn/JBCIMXER.js +4 -0
  89. package/dist/cdn/{6PDHQMNK.js → JCNLCLEG.js} +2 -2
  90. package/dist/cdn/{QQYH3KUL.js → JFH3QUYT.js} +2 -2
  91. package/dist/cdn/JHQ2UAPI.js +4 -0
  92. package/dist/cdn/JHYUP7LW.js +4 -0
  93. package/dist/cdn/{SDRKL7IH.js → JMTVC3GN.js} +2 -2
  94. package/dist/cdn/{47ZJXZXD.js → JQ7YFFRL.js} +2 -2
  95. package/dist/cdn/JQJIXGU3.js +4 -0
  96. package/dist/cdn/JV3PG2AD.js +4 -0
  97. package/dist/cdn/{JGMU7WBA.js → KCSYVBWF.js} +2 -2
  98. package/dist/cdn/KO5OGIH7.js +4 -0
  99. package/dist/cdn/KQJAG7ZS.js +4 -0
  100. package/dist/cdn/{E5FDRUDI.js → L2TWIH5Z.js} +2 -2
  101. package/dist/cdn/{B3WTAI62.js → L2ZJMBZB.js} +2 -2
  102. package/dist/cdn/{IW5MVKLI.js → L3VZ5IHX.js} +2 -2
  103. package/dist/cdn/{4REOTHYM.js → L4OFBY5Y.js} +2 -2
  104. package/dist/cdn/{BABUC4LE.js → L6QEAS33.js} +2 -2
  105. package/dist/cdn/{7RC54OTC.js → LATBVT72.js} +2 -2
  106. package/dist/cdn/{HU3C6O2V.js → LG6SJISO.js} +2 -2
  107. package/dist/cdn/LHMOTHQN.js +4 -0
  108. package/dist/cdn/{QY7X4QJI.js → LKT35O5Z.js} +2 -2
  109. package/dist/cdn/{GQ6Y7I3V.js → LNY7VO77.js} +2 -2
  110. package/dist/cdn/{NTOILAAX.js → LOMSWOGR.js} +2 -2
  111. package/dist/cdn/LQRES7J3.js +4 -0
  112. package/dist/cdn/LVVIF2B4.js +4 -0
  113. package/dist/cdn/{FT6UC3JB.js → M4V2KEMZ.js} +2 -2
  114. package/dist/cdn/M6S5OWHP.js +4 -0
  115. package/dist/cdn/MIIKHSMB.js +4 -0
  116. package/dist/cdn/{WNORUDAL.js → MVYX2MFL.js} +2 -2
  117. package/dist/cdn/MZQWX4ZT.js +4 -0
  118. package/dist/cdn/NI33RNQT.js +4 -0
  119. package/dist/cdn/NMQALZXT.js +4 -0
  120. package/dist/cdn/NMT7YR35.js +4 -0
  121. package/dist/cdn/NSZAL7FV.js +4 -0
  122. package/dist/cdn/{IOOOPEEX.js → ODOWMT3R.js} +2 -2
  123. package/dist/cdn/OG6S5Q4T.js +4 -0
  124. package/dist/cdn/ON4QNUDJ.js +4 -0
  125. package/dist/cdn/{2DE4F35V.js → OOYEE27X.js} +2 -2
  126. package/dist/cdn/{ORQ5VVLY.js → OU76SIMR.js} +2 -2
  127. package/dist/cdn/OXI4STZW.js +4 -0
  128. package/dist/cdn/{SAQPXQUQ.js → P6RNC2LG.js} +2 -2
  129. package/dist/cdn/{KHFHQYLZ.js → PNWK6NJT.js} +2 -2
  130. package/dist/cdn/{GZNIWD74.js → PYSV3QLB.js} +2 -2
  131. package/dist/cdn/PYYXSBKR.js +4 -0
  132. package/dist/cdn/QBW7NI3U.js +4 -0
  133. package/dist/cdn/{DNCJUVXO.js → QC2RKL3B.js} +1 -1
  134. package/dist/cdn/{QGWKXEI4.js → QXQQWDEZ.js} +2 -2
  135. package/dist/cdn/{LSSXR6K3.js → R53DVOJE.js} +2 -2
  136. package/dist/cdn/ROIWM7BI.js +4 -0
  137. package/dist/cdn/RTAXTMOR.js +4 -0
  138. package/dist/cdn/S3KVJXFW.js +4 -0
  139. package/dist/cdn/SAANFMWQ.js +4 -0
  140. package/dist/cdn/{YNS4GIGO.js → SG2AXP3X.js} +2 -2
  141. package/dist/cdn/SJZHFPQY.js +4 -0
  142. package/dist/cdn/STFWYSRQ.js +4 -0
  143. package/dist/cdn/{72L2KGU3.js → SY2XGQFQ.js} +2 -2
  144. package/dist/cdn/TBMQYFV3.js +4 -0
  145. package/dist/cdn/{3CUNETBW.js → THYCR5MP.js} +2 -2
  146. package/dist/cdn/TOKTXF46.js +4 -0
  147. package/dist/cdn/TVO6I7Z4.js +4 -0
  148. package/dist/cdn/{M6XXJ7ZT.js → U5YU25AX.js} +2 -2
  149. package/dist/cdn/{XYMVLEUO.js → UEUW4SDT.js} +2 -2
  150. package/dist/cdn/UGPTGIHT.js +4 -0
  151. package/dist/cdn/{4ACBZIPL.js → UINIKLYT.js} +2 -2
  152. package/dist/cdn/{4IDW3R33.js → UQUSUIJZ.js} +2 -2
  153. package/dist/cdn/{A5GRUROJ.js → UWA76BGM.js} +2 -2
  154. package/dist/cdn/{OUIHKS23.js → UZLKNIS6.js} +2 -2
  155. package/dist/cdn/{LOURBPI7.js → VAQBU5UZ.js} +2 -2
  156. package/dist/cdn/{GFJJJNG4.js → VFKVM3NN.js} +2 -2
  157. package/dist/cdn/{PRUWOI4T.js → VIQWFB6N.js} +2 -2
  158. package/dist/cdn/{YMTOWVGR.js → VRNNMWD4.js} +2 -2
  159. package/dist/cdn/{ZIJI7X2J.js → VVU6BIVW.js} +2 -2
  160. package/dist/cdn/{JYK7MOKB.js → VZ7TPZSI.js} +2 -2
  161. package/dist/cdn/{AYJ2DAHD.js → VZJHCJ6S.js} +2 -2
  162. package/dist/cdn/{QVNIWF7Y.js → W24IPQ7R.js} +2 -2
  163. package/dist/cdn/{F252MJWW.js → W55AMOTU.js} +2 -2
  164. package/dist/cdn/{7ZCCKCDI.js → WHKYXSL2.js} +2 -2
  165. package/dist/cdn/WINJFIVF.js +4 -0
  166. package/dist/cdn/{LWN2GJKZ.js → WJIAB5OJ.js} +2 -2
  167. package/dist/cdn/{CXNYGDEG.js → WKDKHX46.js} +2 -2
  168. package/dist/cdn/{NLRPWCMA.js → WQW55OS7.js} +2 -2
  169. package/dist/cdn/WY7Y5NGU.js +4 -0
  170. package/dist/cdn/XGH4RVKQ.js +4 -0
  171. package/dist/cdn/XGOB736F.js +4 -0
  172. package/dist/cdn/{Y4EIVXNU.js → XGZ3RDUR.js} +2 -2
  173. package/dist/cdn/XTN72LYW.js +4 -0
  174. package/dist/cdn/{YW6BKERZ.js → XUGPAMZX.js} +2 -2
  175. package/dist/cdn/YBRYODCY.js +4 -0
  176. package/dist/cdn/YEW5KZW7.js +4 -0
  177. package/dist/cdn/YKWORUIJ.js +4 -0
  178. package/dist/cdn/{VP6SIJ6W.js → YOZZWZZ2.js} +2 -2
  179. package/dist/cdn/{AKAY7UUY.js → YTODIPYA.js} +2 -2
  180. package/dist/cdn/{JZXOZPKS.js → Z5TZMPWH.js} +2 -2
  181. package/dist/cdn/{KAWA7DCI.js → Z6MC3U6Z.js} +2 -2
  182. package/dist/cdn/{433XUGGB.js → ZIY3JLY2.js} +2 -2
  183. package/dist/cdn/{F6HH6GPD.js → ZURYTGOH.js} +2 -2
  184. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.en.json +1 -0
  185. package/dist/cdn/assets/charts-config-heat-chart-popover/t9n/messages.en.json +1 -0
  186. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.en.json +1 -1
  187. package/dist/cdn/assets/common/t9n/messages.en.json +1 -1
  188. package/dist/cdn/index.js +2 -2
  189. package/dist/chart-rendering/common/config-utils/index.d.ts +1 -1
  190. package/dist/chart-rendering/common/defaults/interfaces.d.ts +3 -0
  191. package/dist/chart-rendering/next/chart-library-elements/legend/heat-legend/index.d.ts +8 -9
  192. package/dist/chart-rendering/next/chart-library-elements/legend/index.d.ts +2 -2
  193. package/dist/chart-rendering/next/chart-library-elements/series/heat-chart/index.d.ts +2 -0
  194. package/dist/chart-rendering/next/defaults/index.d.ts +3 -0
  195. package/dist/chunks/action-bar-utils.js +20 -19
  196. package/dist/chunks/axis-model-wrapper.js +1 -1
  197. package/dist/chunks/bar-chart-model.js +6 -5
  198. package/dist/chunks/bar-chart-series.js +2 -2
  199. package/dist/chunks/bg_BG.js +1 -1
  200. package/dist/chunks/bg_BG2.js +1 -1
  201. package/dist/chunks/box-plot-data.js +71 -70
  202. package/dist/chunks/box-plot-model.js +52 -47
  203. package/dist/chunks/chart-ui-utils.js +26 -22
  204. package/dist/chunks/chart-ui-utils2.js +84 -77
  205. package/dist/chunks/class-breaks.js +126 -0
  206. package/dist/chunks/combo-bar-line-chart-model.js +48 -49
  207. package/dist/chunks/common.js +1 -1
  208. package/dist/chunks/data-labels-symbol.js +66 -0
  209. package/dist/chunks/data-labels-visibility.js +87 -0
  210. package/dist/chunks/data.js +41 -40
  211. package/dist/chunks/default.js +4 -4
  212. package/dist/chunks/gauge-model.js +30 -28
  213. package/dist/chunks/heat-chart-model.js +174 -128
  214. package/dist/chunks/histogram-data.js +42 -41
  215. package/dist/chunks/histogram-model.js +43 -39
  216. package/dist/chunks/index.js +1711 -1649
  217. package/dist/chunks/index2.js +180 -161
  218. package/dist/chunks/index3.js +184 -91
  219. package/dist/chunks/index4.js +96 -63
  220. package/dist/chunks/index5.js +67 -0
  221. package/dist/chunks/interfaces.js +26 -12
  222. package/dist/chunks/line-chart-model.js +11 -8
  223. package/dist/chunks/model-setter.js +114 -0
  224. package/dist/chunks/model-with-multi-axes.js +636 -711
  225. package/dist/chunks/negative-values-stacked-to-baseline.js +3 -3
  226. package/dist/chunks/pie-chart-data.js +39 -38
  227. package/dist/chunks/pie-chart-model.js +128 -118
  228. package/dist/chunks/popover-ui-utils.js +1 -1
  229. package/dist/chunks/radar-chart-model.js +9 -6
  230. package/dist/chunks/resource.js +2 -2
  231. package/dist/chunks/rest-js-object-literals.js +8 -8
  232. package/dist/chunks/rotated-state.js +56 -0
  233. package/dist/chunks/runtime.js +1 -1
  234. package/dist/chunks/scatterplot-model.js +69 -64
  235. package/dist/chunks/serial-chart-data.js +705 -949
  236. package/dist/chunks/serial-chart-model.js +34 -28
  237. package/dist/chunks/series-types.js +56 -40
  238. package/dist/chunks/sk_SK.js +1 -1
  239. package/dist/chunks/store.js +1 -1
  240. package/dist/chunks/type-guards.js +49 -56
  241. package/dist/chunks/useT9n.js +1 -1
  242. package/dist/chunks/utils.js +222 -0
  243. package/dist/chunks/web-component-utils.js +37 -37
  244. package/dist/components/arcgis-chart/customElement.d.ts +2 -0
  245. package/dist/components/arcgis-chart/customElement.js +5219 -4999
  246. package/dist/components/arcgis-charts-action-bar/customElement.js +6 -5
  247. package/dist/components/arcgis-charts-config-axes/customElement.js +1 -1
  248. package/dist/components/arcgis-charts-config-axis/customElement.js +1 -1
  249. package/dist/components/arcgis-charts-config-bar-chart/customElement.js +3 -3
  250. package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +33 -34
  251. package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +51 -51
  252. package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +2 -2
  253. package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +2 -2
  254. package/dist/components/arcgis-charts-config-box-plot/customElement.js +3 -3
  255. package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +6 -6
  256. package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +9 -9
  257. package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +2 -2
  258. package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +7 -7
  259. package/dist/components/arcgis-charts-config-category-format/customElement.js +1 -1
  260. package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +1 -1
  261. package/dist/components/arcgis-charts-config-color-style/customElement.js +1 -1
  262. package/dist/components/arcgis-charts-config-colors/customElement.js +2 -2
  263. package/dist/components/arcgis-charts-config-create-flow/customElement.js +183 -173
  264. package/dist/components/arcgis-charts-config-create-flow/index.d.ts +1 -0
  265. package/dist/components/arcgis-charts-config-create-flow/index.js +1 -0
  266. package/dist/components/arcgis-charts-config-field-select/customElement.js +2 -2
  267. package/dist/components/arcgis-charts-config-font-style/customElement.js +3 -3
  268. package/dist/components/arcgis-charts-config-format/customElement.js +22 -20
  269. package/dist/components/arcgis-charts-config-format-popover/customElement.js +2 -2
  270. package/dist/components/arcgis-charts-config-general/customElement.js +3 -3
  271. package/dist/components/arcgis-charts-config-guide/customElement.js +24 -24
  272. package/dist/components/arcgis-charts-config-guide-popover/customElement.js +2 -2
  273. package/dist/components/arcgis-charts-config-guides/customElement.js +2 -2
  274. package/dist/components/arcgis-charts-config-guides-type-popover/customElement.js +1 -1
  275. package/dist/components/arcgis-charts-config-heat-chart/customElement.d.ts +41 -0
  276. package/dist/components/arcgis-charts-config-heat-chart/customElement.js +87 -0
  277. package/dist/components/arcgis-charts-config-heat-chart/index.d.ts +4 -0
  278. package/dist/components/arcgis-charts-config-heat-chart/index.js +4 -0
  279. package/dist/components/arcgis-charts-config-heat-chart-data/customElement.d.ts +46 -0
  280. package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +370 -0
  281. package/dist/components/arcgis-charts-config-heat-chart-data/index.d.ts +15 -0
  282. package/dist/components/arcgis-charts-config-heat-chart-data/index.js +15 -0
  283. package/dist/components/arcgis-charts-config-heat-chart-data/resources.d.ts +7 -0
  284. package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.d.ts +103 -0
  285. package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +288 -0
  286. package/dist/components/arcgis-charts-config-heat-chart-popover/index.d.ts +12 -0
  287. package/dist/components/arcgis-charts-config-heat-chart-popover/index.js +12 -0
  288. package/dist/components/arcgis-charts-config-heat-chart-popover/resources.d.ts +18 -0
  289. package/dist/components/arcgis-charts-config-histogram/customElement.js +3 -3
  290. package/dist/components/arcgis-charts-config-histogram-data/customElement.js +6 -6
  291. package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +3 -3
  292. package/dist/components/arcgis-charts-config-invalid-input-message/customElement.js +1 -1
  293. package/dist/components/arcgis-charts-config-line-chart/customElement.js +3 -3
  294. package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +63 -64
  295. package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +33 -33
  296. package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +2 -2
  297. package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +3 -3
  298. package/dist/components/arcgis-charts-config-line-style/customElement.js +2 -2
  299. package/dist/components/arcgis-charts-config-number-format/customElement.js +1 -1
  300. package/dist/components/arcgis-charts-config-pie-chart/customElement.js +4 -4
  301. package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +2 -2
  302. package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +3 -3
  303. package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +6 -6
  304. package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +2 -2
  305. package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +3 -3
  306. package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +10 -10
  307. package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +3 -3
  308. package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.d.ts +1 -1
  309. package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +6 -6
  310. package/dist/components/arcgis-charts-config-view-charts/customElement.js +1 -1
  311. package/dist/docs/api.json +2 -2
  312. package/dist/docs/docs.json +2 -2
  313. package/dist/docs/web-types.json +1 -1
  314. package/dist/index.js +407 -583
  315. package/dist/interfaces.d.ts +19 -0
  316. package/dist/json-schema/index.d.ts +60 -14
  317. package/dist/loader.js +4 -1
  318. package/dist/model/box-plot-model/box-plot-model.d.ts +8 -2
  319. package/dist/model/chart-model/chart-model.d.ts +4 -1
  320. package/dist/model/combo-bar-line-chart-model/combo-bar-line-chart-model.d.ts +4 -2
  321. package/dist/model/gauge-model/gauge-model.d.ts +4 -1
  322. package/dist/model/heat-chart-model/heat-chart-model.d.ts +42 -13
  323. package/dist/model/heat-chart-model/utils/heat-chart-data.d.ts +55 -18
  324. package/dist/model/histogram-model/histogram-model.d.ts +7 -2
  325. package/dist/model/line-chart-model/line-chart-model.d.ts +4 -1
  326. package/dist/model/mixins/index.d.ts +0 -2
  327. package/dist/model/mixins/model-with-multi-axes.d.ts +5 -0
  328. package/dist/model/mixins/model-with-x-guides.d.ts +5 -0
  329. package/dist/model/mixins/model-with-y-guides.d.ts +5 -0
  330. package/dist/model/pie-chart-model/pie-chart-legend-model.d.ts +4 -1
  331. package/dist/model/pie-chart-model/pie-chart-model.d.ts +7 -2
  332. package/dist/model/properties/data-labels/data-labels-symbol.d.ts +25 -0
  333. package/dist/model/properties/data-labels/data-labels-visibility.d.ts +25 -0
  334. package/dist/model/properties/rotated-state.d.ts +24 -0
  335. package/dist/model/radar-chart-model/radar-chart-model.d.ts +4 -1
  336. package/dist/model/scatterplot-model/scatterplot-model.d.ts +7 -2
  337. package/dist/model/serial-chart-model/serial-chart-model.d.ts +8 -2
  338. package/dist/model/shared/axes.d.ts +0 -7
  339. package/dist/model/shared/type-guards.d.ts +18 -17
  340. package/dist/model/shared/utils.d.ts +19 -3
  341. package/dist/model.js +15 -17
  342. package/dist/spec/chart-object-literals.d.ts +27 -0
  343. package/dist/spec/web-chart.d.ts +50 -16
  344. package/dist/utils/chart-config/converter/index.d.ts +15 -0
  345. package/dist/utils/chart-config/converter/interfaces.d.ts +13 -1
  346. package/dist/utils/chart-config/utils/class-breaks/index.d.ts +16 -0
  347. package/dist/utils/chart-config/utils/index.d.ts +0 -18
  348. package/dist/utils/components/chart-ui-utils.d.ts +8 -1
  349. package/dist/utils/components/config-update.d.ts +6 -3
  350. package/dist/utils/data/stats/class-breaks.d.ts +91 -0
  351. package/dist/utils/defaults/index.d.ts +3 -3
  352. package/dist/utils/localization/interfaces.d.ts +2 -0
  353. package/dist/utils/type-guards/index.d.ts +12 -1
  354. package/dist/utils/types/index.d.ts +4 -0
  355. package/package.json +3 -3
  356. package/dist/cdn/2HK5DP4Z.js +0 -4
  357. package/dist/cdn/2J6B67VX.js +0 -4
  358. package/dist/cdn/2KGX6D5F.js +0 -4
  359. package/dist/cdn/2ZTCBM34.js +0 -4
  360. package/dist/cdn/3AC3WNOD.js +0 -4
  361. package/dist/cdn/3EFUHQNT.js +0 -4
  362. package/dist/cdn/3IBBMA2A.js +0 -4
  363. package/dist/cdn/3KTEORBN.js +0 -4
  364. package/dist/cdn/3OAQQDYR.js +0 -4
  365. package/dist/cdn/55XCO5XY.js +0 -4
  366. package/dist/cdn/5ZR4T5HT.js +0 -4
  367. package/dist/cdn/7A5FF3AI.js +0 -4
  368. package/dist/cdn/7BHIWXSS.js +0 -4
  369. package/dist/cdn/7DJBZYIA.js +0 -4
  370. package/dist/cdn/7IQ2I4LF.js +0 -4
  371. package/dist/cdn/7NXQKEG4.js +0 -6
  372. package/dist/cdn/AKL57XN5.js +0 -4
  373. package/dist/cdn/AW47UABM.js +0 -4
  374. package/dist/cdn/BBKG2HUU.js +0 -4
  375. package/dist/cdn/CR4PATFF.js +0 -4
  376. package/dist/cdn/E7NHJGIP.js +0 -4
  377. package/dist/cdn/EBYCFLZ7.js +0 -4
  378. package/dist/cdn/EGC3AWWB.js +0 -4
  379. package/dist/cdn/EHBSW7CZ.js +0 -4
  380. package/dist/cdn/FIOJ6UCT.js +0 -4
  381. package/dist/cdn/GBZWXF7H.js +0 -4
  382. package/dist/cdn/GEXUZYQM.js +0 -4
  383. package/dist/cdn/H5BAMOUO.js +0 -4
  384. package/dist/cdn/HEZL6MN5.js +0 -4
  385. package/dist/cdn/HJJ3F5RK.js +0 -4
  386. package/dist/cdn/IA5F2RAW.js +0 -4
  387. package/dist/cdn/ICJBM7FW.js +0 -4
  388. package/dist/cdn/IYMPXWG4.js +0 -4
  389. package/dist/cdn/J3SNSKNC.js +0 -4
  390. package/dist/cdn/JM6DKNYQ.js +0 -4
  391. package/dist/cdn/JXVQVJ5E.js +0 -4
  392. package/dist/cdn/K2XDV2FA.js +0 -4
  393. package/dist/cdn/K7RWT3Y5.js +0 -4
  394. package/dist/cdn/KD7WPGSJ.js +0 -4
  395. package/dist/cdn/LKHZVZT7.js +0 -4
  396. package/dist/cdn/LZSRP7IC.js +0 -4
  397. package/dist/cdn/MTCTTNXE.js +0 -4
  398. package/dist/cdn/N7EHANM3.js +0 -4
  399. package/dist/cdn/NSKCRQ46.js +0 -4
  400. package/dist/cdn/ONY47WL2.js +0 -4
  401. package/dist/cdn/PNXW5DDT.js +0 -4
  402. package/dist/cdn/Q5RT2IAQ.js +0 -4
  403. package/dist/cdn/QDHZGFHC.js +0 -4
  404. package/dist/cdn/QYI2QSH5.js +0 -4
  405. package/dist/cdn/SCGMS5AE.js +0 -32
  406. package/dist/cdn/TQTZG3W5.js +0 -4
  407. package/dist/cdn/U6QB64XJ.js +0 -4
  408. package/dist/cdn/USUNUI2C.js +0 -4
  409. package/dist/cdn/UZF3L4UK.js +0 -4
  410. package/dist/cdn/VMNCZHNP.js +0 -4
  411. package/dist/cdn/VSO43DDC.js +0 -4
  412. package/dist/cdn/VYH4PEFA.js +0 -4
  413. package/dist/cdn/W4X6BXLW.js +0 -4
  414. package/dist/cdn/Y6BHMVAI.js +0 -4
  415. package/dist/cdn/Y7FV66TU.js +0 -4
  416. package/dist/cdn/YOJ4K4LQ.js +0 -4
  417. package/dist/chunks/color-match.js +0 -33
  418. package/dist/model/mixins/model-with-data-labels.d.ts +0 -15
  419. package/dist/model/mixins/model-with-rotation.d.ts +0 -8
  420. package/dist/model/mixins/utils/data-labels.d.ts +0 -24
@@ -1,8 +1,9 @@
1
- import { fetchT9nStringsBundle as Me, getElementLocale as Ue } from "@arcgis/toolkit/intl";
2
- import { cloneDeep as R, memoize as de, isEmpty as Ee } from "lodash-es";
3
- import { g as ue, e as Re, a as T, u as ye, W as P, d as $e, t as b, m as z, n as Xe, i as H } from "./series-types.js";
1
+ import { m as Ie, C as J } from "./model-setter.js";
2
+ import "@arcgis/toolkit/intl";
3
+ import { cloneDeep as R, memoize as de, isEmpty as Ve } from "lodash-es";
4
+ import { w as qe, a as A, d as Ne, t as F, g as we, W as M, m as H, n as Oe, i as z } from "./series-types.js";
4
5
  import "d3-array";
5
- import { bP as ke, cg as ge, bQ as ee, ai as fe, bR as te, d0 as je, bK as D, l as Y, dd as We, aL as G, cU as _e, bs as pe, cY as L, aJ as M, aH as U, bC as N, b1 as Ye, g as re, bH as Ke, aR as Qe, aK as ze, r as I, V as He, X as Ge, cH as Je, p as K, df as q, k as Ze, cF as et, bL as tt, bX as it, ao as st, q as at, dl as rt, cB as nt, dm as ne, cc as ot, c8 as lt, $, dh as me, m as ct, b as j, bO as dt, b4 as ut, b5 as yt, b7 as gt, bN as oe, aM as ft, aN as pt } from "./index.js";
6
+ import { aH as D, aF as k, bA as w, aI as De, k as ee, q as L, U as ke, cG as Me, o as j, de as q, j as Pe, cE as Re, bK as Ee, bW as $e, am as We, p as Xe, dm as je, cA as Ye, dn as ie, cb as Ke, c7 as Ue, aS as _e, Z as Y, cX as N, dl as He, dj as $, bJ as K, bP as ce, bQ as ue, dg as ye, l as ze, b as W, bN as Qe, bq as Ge, b2 as Ze, b3 as Je, aZ as et, b5 as tt, bM as ae, aK as st, aJ as re, aL as it } from "./index.js";
6
7
  import "@arcgis/core/geometry/support/jsonUtils.js";
7
8
  import "@arcgis/core/rest/support/AttributeBinsQuery.js";
8
9
  import "@arcgis/core/rest/support/Query.js";
@@ -10,12 +11,14 @@ import "@arcgis/core/rest/support/StatisticDefinition.js";
10
11
  import "@arcgis/core/time/TimeExtent.js";
11
12
  import "@arcgis/core/core/promiseUtils.js";
12
13
  import "@arcgis/core/request.js";
13
- import { g as mt } from "./runtime.js";
14
+ import "./runtime.js";
14
15
  import "@arcgis/toolkit/dom";
15
- import { substitute as w } from "@arcgis/core/intl.js";
16
- import { a as xe, R as xt } from "./rest-js-object-literals.js";
17
- import { q as St, h as Se, l as C, n as ht, o as Ft, j as v, k as B } from "./index3.js";
18
- import { S as J } from "./common.js";
16
+ import { substitute as O } from "@arcgis/core/intl.js";
17
+ import { R as ge, f as at } from "./rest-js-object-literals.js";
18
+ import { h as pe, l as v, o as rt, p as lt, j as C, k as B, m as le } from "./index4.js";
19
+ import { S as Q } from "./common.js";
20
+ import { s as b, u as G, d as me, e as nt, f as ot, g as fe, h as dt, j as ne } from "./utils.js";
21
+ import { b as E, d as xe, g as te, e as oe, f as ct } from "./data.js";
19
22
  import "@arcgis/core/Graphic.js";
20
23
  import "@arcgis/core/renderers/support/jsonUtils.js";
21
24
  import "@arcgis/core/symbols/support/symbolUtils.js";
@@ -24,507 +27,255 @@ import "@arcgis/core/smartMapping/statistics/histogram.js";
24
27
  import "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
25
28
  import "simple-statistics";
26
29
  import "@arcgis/core/AttributeBinsGraphic.js";
27
- import { b as X, d as he, g as ie, e as le, f as bt } from "./data.js";
28
- import { c as Fe } from "./index2.js";
30
+ import { c as ut } from "./index2.js";
29
31
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
30
32
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
31
- v5.0.0-next.114 */
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, y = o !== !0 ? `${a} IS NOT NULL` : "", d = s && o !== !0 ? `${s} IS NOT NULL` : "", { where: x } = e?.dataFilters ?? {}, m = {
34
- where: ge([x, y, d]),
35
- // excluding the null values from the list
36
- orderByFields: je(a) ? [] : [`${a} ${ue.Ascending}`],
37
- // default sorting ascending for split-by field
38
- geometry: e?.dataFilters?.geometry
39
- }, f = i;
40
- let u = "";
41
- n.length === 0 ? u = D(f).idField : [u] = n;
42
- let S = await fe({
43
- queryObject: f,
44
- category: e?.series[0].x ?? "",
45
- splitByField: a,
46
- queryConfig: m
47
- });
48
- if (e) {
49
- const p = e?.series.map((g) => Y({ where: g.query?.where })?.toString() ?? "").filter((g) => g !== void 0 && g !== "");
50
- S = We({
51
- arrayA: S,
52
- arrayB: p,
53
- getKey: (g) => g === null ? null : g?.toString()
54
- });
55
- }
56
- return { categoriesArray: S, splitByFieldType: l, numericalField: u };
57
- }
58
- function Vi(t, e) {
59
- let i = e === "";
60
- for (const s of t)
61
- if (e === s.name) {
62
- i = !0;
63
- break;
64
- }
65
- return i;
66
- }
67
- function Oi(t, e) {
68
- const i = ke(t);
69
- let s = e.length === 0, a = 0;
70
- for (const r of e) {
71
- for (const n of i)
72
- if (r === n && (a += 1), a === e.length) {
73
- s = !0;
74
- break;
75
- }
76
- if (s)
77
- break;
78
- }
79
- return s;
80
- }
81
- function wi(t, e) {
82
- e.forEach((i) => {
83
- Object.getOwnPropertyNames(i.prototype).forEach((s) => {
84
- Object.defineProperty(
85
- t.prototype,
86
- s,
87
- Object.getOwnPropertyDescriptor(i.prototype, s) || /* @__PURE__ */ Object.create(null)
88
- );
89
- });
90
- });
91
- }
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: ge([r, o]),
95
- // excluding the null values from the list
96
- orderByFields: [],
97
- geometry: i?.dataFilters?.geometry
98
- }, l = ee(a);
99
- return (
100
- // fetch unique category values asynchronously
101
- (await fe({ queryObject: a, category: s, queryConfig: c })).map((d) => {
102
- const x = String(d);
103
- return te({
104
- fieldName: s,
105
- fieldValueToMatch: x,
106
- subtypeInfo: l,
107
- // use the retrieved subtype information
108
- fieldList: e.layerFieldsInfo
109
- // list of field information from the layer
110
- }) ?? x;
111
- })
112
- );
113
- }
114
- function W(t, e, i) {
115
- const s = t?.axes?.[e];
116
- s?.title !== void 0 ? s.title.content.text = i : s !== void 0 && (s.title = M({
117
- text: i,
118
- visible: !0,
119
- font: U(N.AxisTitle)
120
- }));
121
- }
122
- function be(t) {
123
- const { config: e, layerInfo: i, commonStrings: s, numericFields: a, aggregationType: r } = t;
124
- let n = "";
125
- if (e)
126
- if (_e(e) === Re.Stacked100)
127
- n = s.utilsStrings.statistics.percent;
128
- else {
129
- const c = pe(r, s);
130
- if (a.length === 1) {
131
- const l = L(i.layerFieldsInfo, a[0]), y = D(i.layer).idField;
132
- r === T.NoAggregation ? n = l : r === T.Count && y !== void 0 && a[0] === y ? n = s.utilsStrings.statistics.count : n = w(s.axisLabels.aggregationOfFieldName, {
133
- aggregation: c,
134
- fieldName: l
135
- });
136
- } else a.length > 1 && (r === T.NoAggregation ? n = s.axisLabels.values : n = w(s.axisLabels.aggregationOfValues, {
137
- aggregation: c
138
- }));
139
- }
140
- return n;
141
- }
142
- const Te = (t, e, i) => t.axes?.[e] ?? Ye(i, t.type)[e], Ae = (t) => {
143
- const { config: e, axis: i, axisIndex: s } = t;
144
- e.axes !== void 0 && (e.axes[s] = i);
145
- }, qi = (t) => {
146
- const { config: e, axisIndex: i, isMax: s } = t;
147
- let a = Number.NaN;
148
- return s ? a = e.axes?.[i]?.maximum : a = e.axes?.[i]?.minimum, a ?? Number.NaN;
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
- }, Pi = (t, e) => {
153
- F({ config: t, value: e, axisIndex: 0, isMax: !1 });
154
- }, ve = (t) => t.axes?.[0]?.valueFormat ?? G(), vt = (t, e, i) => {
155
- const s = Te(t, 0, e);
156
- if (s !== void 0 && i !== void 0) {
157
- const a = {
158
- ...s,
159
- valueFormat: i
160
- };
161
- Ae({ config: t, axis: a, axisIndex: 0 });
162
- }
163
- }, ce = (t, e, i) => {
164
- const s = t.axes?.[e];
165
- s !== void 0 && (s.integerOnlyValues = i);
166
- }, Bt = (t) => {
167
- const e = ye(t.series);
168
- return e === P.BarSeries || e === P.ComboLineAndBarSeries || e === P.LineSeries;
169
- }, Ct = (t) => {
170
- const { axisIndex: e, config: i, isMultiAxis: s } = t;
171
- let a = !1;
172
- return e === 0 || e === 1 && s ? a = !0 : e === 2 && (a = Bt(i)), a;
173
- }, Di = (t) => {
174
- const { axisIndex: e, func: i, config: s } = t;
175
- return Ct({ axisIndex: e, config: s, isMultiAxis: !0 }) ? i(e) : void 0;
176
- }, Mi = (t, e) => {
177
- let i;
178
- const s = e.axes?.[t]?.valueFormat;
179
- return (t === 0 || t >= 1 && St(s)) && (i = s), i;
180
- }, Ui = (t) => {
181
- const { config: e, commonStrings: i, valueFormat: s, axisIndex: a = 0 } = t, r = Te(e, a, i);
182
- if (r !== void 0 && s !== void 0) {
183
- const n = {
184
- ...r,
185
- valueFormat: s
186
- };
187
- Ae({
188
- config: e,
189
- axis: n,
190
- axisIndex: a
191
- });
192
- }
193
- }, Ei = (t, e) => t.axes?.[e]?.isLogarithmic ?? !1, Ri = (t) => {
194
- const { config: e, isLogarithmic: i, axisIndex: s } = t, a = e.axes?.[s];
195
- a && (a.isLogarithmic = i, F({ config: e, value: null, axisIndex: s, isMax: !0 }), F({ config: e, value: null, axisIndex: s, isMax: !1 }));
196
- }, $i = (t) => {
197
- const { config: e, scrollbar: i, axisIndex: s } = t;
198
- e.axes?.[s] !== void 0 && (e.axes[s].scrollbar = i);
33
+ v5.0.0-next.116 */
34
+ var yt = Object.defineProperty, gt = Object.getOwnPropertyDescriptor, pt = (t, e, s, i) => {
35
+ for (var a = gt(e, s), r = t.length - 1, l; r >= 0; r--)
36
+ (l = t[r]) && (a = l(e, s, a) || a);
37
+ return a && yt(e, s, a), a;
199
38
  };
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 Me(
240
- Ue(document.documentElement).t9nLocale,
241
- mt("./assets/common/t9n"),
242
- "messages."
243
- );
244
- let r = i;
245
- if (!r && s ? r = await re(s) : !r && a?.iLayer && (r = await re(a.iLayer)), r) {
246
- const n = await Ke(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 Fe(a) : this.generateDefaultConfig(), this._config.legend !== void 0 && this._config.legend?.title === void 0 && (this._config.legend.title = Qe().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 Lt(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 It = 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 && It(e, i, a), a;
287
- };
288
- const Be = (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({
39
+ const Se = (t) => t.title?.content.text ?? "", mt = (t, e) => {
40
+ e.title !== void 0 ? e.title.content.text = t : e.title === void 0 && t !== void 0 && (e.title = D({
290
41
  text: t,
291
42
  visible: !0,
292
- font: U(N.ChartTitle)
43
+ font: k(w.ChartTitle)
293
44
  }));
294
45
  };
295
- class wt extends se {
46
+ class ft extends J {
296
47
  /**
297
48
  * The chart title text.
298
49
  */
299
50
  get titleText() {
300
- return Be(this._config);
51
+ return Se(this._config);
301
52
  }
302
53
  set titleText(e) {
303
- Ot(e, this._config);
54
+ mt(e, this._config);
304
55
  }
305
56
  }
306
- Vt([
307
- Lt
308
- ], wt.prototype, "titleText");
309
- const Xi = (t, e) => t.axes?.[e]?.title?.content, ki = (t) => {
310
- const { config: e, axisIndex: i, symbol: s } = t, a = e.axes?.[i];
57
+ pt([
58
+ Ie
59
+ ], ft.prototype, "titleText");
60
+ const fs = (t, e) => t.axes?.[e]?.title?.content, xs = (t) => {
61
+ const { config: e, axisIndex: s, symbol: i } = t, a = e.axes?.[s];
311
62
  if (a !== void 0) {
312
63
  const r = a.title?.content.text;
313
- (a.title === void 0 || s === void 0) && (a.title = M({
64
+ (a.title === void 0 || i === void 0) && (a.title = D({
314
65
  text: "",
315
66
  visible: !0,
316
- font: U(N.AxisTitle),
317
- type: N.AxisTitle
318
- })), s !== void 0 && (a.title.content = s), a.title.content.text = r;
67
+ font: k(w.AxisTitle),
68
+ type: w.AxisTitle
69
+ })), i !== void 0 && (a.title.content = i), a.title.content.text = r;
319
70
  }
320
- }, ji = (t) => {
71
+ }, Ss = (t) => {
321
72
  for (const e of t.axes ?? [])
322
73
  if (e?.labels !== void 0)
323
74
  return e.labels.content;
324
- }, Wi = (t, e) => {
325
- for (const i of e.axes ?? [])
326
- if (i !== void 0) {
327
- const s = i.labels?.content.text;
328
- t === void 0 ? i.labels = M({
75
+ }, Ts = (t, e) => {
76
+ for (const s of e.axes ?? [])
77
+ if (s !== void 0) {
78
+ const i = s.labels?.content.text;
79
+ t === void 0 ? s.labels = D({
329
80
  text: "",
330
81
  visible: !0,
331
- font: U(N.AxisLabels),
332
- type: N.AxisLabels
333
- }) : i.labels.content = R(t), i.labels.content.text = s;
82
+ font: k(w.AxisLabels),
83
+ type: w.AxisLabels
84
+ }) : s.labels.content = R(t), s.labels.content.text = i;
334
85
  }
335
- }, _i = (t) => {
86
+ }, Fs = (t) => {
336
87
  for (const e of t.axes ?? [])
337
88
  if (e?.lineSymbol !== void 0)
338
89
  return e.lineSymbol;
339
- }, Yi = (t, e) => {
340
- for (const i of e.axes ?? [])
341
- i !== void 0 && (i.lineSymbol = R(t) ?? ze());
342
- }, Ki = (t) => {
90
+ }, bs = (t, e) => {
91
+ for (const s of e.axes ?? [])
92
+ s !== void 0 && (s.lineSymbol = R(t) ?? De());
93
+ }, hs = (t) => {
343
94
  for (const e of t.axes ?? [])
344
95
  if (e?.grid !== void 0)
345
96
  return e.grid;
346
- }, Qi = (t, e, i) => {
347
- const s = e.axes;
348
- i.forEach((a) => {
349
- s?.[a] !== void 0 && (s[a].grid = R(t));
97
+ }, Cs = (t, e, s) => {
98
+ const i = e.axes;
99
+ s.forEach((a) => {
100
+ i?.[a] !== void 0 && (i[a].grid = R(t));
350
101
  });
351
- }, k = (t, e) => e.axes?.[t]?.title?.content.text ?? "", zi = (t, e, i) => {
352
- const s = i.axes?.[e];
353
- s?.title !== void 0 ? s.title.content.text = t : s !== void 0 && s?.title === void 0 && (s.title = M({
102
+ }, U = (t, e) => e.axes?.[t]?.title?.content.text ?? "", Bs = (t, e, s) => {
103
+ const i = s.axes?.[e];
104
+ i?.title !== void 0 ? i.title.content.text = t : i !== void 0 && i?.title === void 0 && (i.title = D({
354
105
  text: t,
355
106
  visible: !0,
356
- font: U(N.AxisTitle)
107
+ font: k(w.AxisTitle)
357
108
  }));
358
- }, Hi = (t, e) => e.axes?.[t]?.visible ?? !0, Gi = (t, e, i) => {
359
- const s = i.axes?.[e];
360
- s !== void 0 && (s.visible = t);
361
- }, Ji = (t, e) => e.axes?.[t]?.labels?.visible ?? !0, Zi = (t, e, i) => {
362
- const s = i.axes?.[e];
363
- s?.labels !== void 0 ? s.labels.visible = t : s !== void 0 && s?.labels === void 0 && (s.labels = M({
109
+ }, As = (t, e) => e.axes?.[t]?.visible ?? !0, vs = (t, e, s) => {
110
+ const i = s.axes?.[e];
111
+ i !== void 0 && (i.visible = t);
112
+ }, Ls = (t, e) => e.axes?.[t]?.labels?.visible ?? !0, Is = (t, e, s) => {
113
+ const i = s.axes?.[e];
114
+ i?.labels !== void 0 ? i.labels.visible = t : i !== void 0 && i?.labels === void 0 && (i.labels = D({
364
115
  text: "",
365
116
  visible: t,
366
- font: U(N.AxisLabels),
367
- type: N.AxisLabels
117
+ font: k(w.AxisLabels),
118
+ type: w.AxisLabels
368
119
  }));
369
- }, es = (t, e) => e.axes?.[t]?.title?.visible ?? !1, ts = (t, e, i) => {
370
- const s = i.axes?.[e];
371
- s?.title !== void 0 ? s.title.visible = t : s !== void 0 && s?.title === void 0 && (s.title = M({
372
- text: k(e, i),
120
+ }, Vs = (t, e) => e.axes?.[t]?.title?.visible ?? !1, qs = (t, e, s) => {
121
+ const i = s.axes?.[e];
122
+ i?.title !== void 0 ? i.title.visible = t : i !== void 0 && i?.title === void 0 && (i.title = D({
123
+ text: U(e, s),
373
124
  visible: t,
374
- font: U(N.AxisTitle)
125
+ font: k(w.AxisTitle)
375
126
  }));
376
- }, is = (t, e) => t.axes?.[e]?.displayZeroLine ?? !1, ss = (t, e, i) => {
377
- t.axes?.[i] !== void 0 && (t.axes[i].displayZeroLine = e);
378
- }, as = (t, e) => t.axes?.[e]?.displayCursorTooltip ?? !1, rs = (t) => {
379
- const { config: e, displayCursorTooltip: i, axisIndex: s } = t;
380
- e.axes?.[s] !== void 0 && (e.axes[s].displayCursorTooltip = i);
381
- }, ns = (t, e) => t.axes?.[e]?.buffer ?? !1, os = (t) => {
382
- const { config: e, buffer: i, axisIndex: s } = t, a = e.axes?.[s];
383
- a !== void 0 && (a.buffer = i);
384
- }, ls = (t, e) => t.axes?.[e]?.tickSpacing, cs = (t) => {
385
- const { config: e, tickSpacing: i, axisIndex: s } = t;
386
- e.axes?.[s] !== void 0 && (e.axes[s].tickSpacing = i);
387
- }, ds = (t, e) => t.axes?.[e]?.integerOnlyValues ?? !1, us = (t) => {
388
- const { config: e, integerOnlyValues: i, axisIndex: s } = t;
389
- e.axes?.[s] !== void 0 && (e.axes[s].integerOnlyValues = i);
390
- }, qt = (t) => t.series.map((e) => String(Y({ where: e.query?.where }))).filter((e) => e !== void 0 && e.trim() !== "");
391
- class ys extends se {
127
+ }, Ns = (t, e) => t.axes?.[e]?.displayZeroLine ?? !1, ws = (t, e, s) => {
128
+ t.axes?.[s] !== void 0 && (t.axes[s].displayZeroLine = e);
129
+ }, Os = (t, e) => t.axes?.[e]?.displayCursorTooltip ?? !1, Ds = (t) => {
130
+ const { config: e, displayCursorTooltip: s, axisIndex: i } = t;
131
+ e.axes?.[i] !== void 0 && (e.axes[i].displayCursorTooltip = s);
132
+ }, ks = (t, e) => t.axes?.[e]?.buffer ?? !1, Ms = (t) => {
133
+ const { config: e, buffer: s, axisIndex: i } = t, a = e.axes?.[i];
134
+ a !== void 0 && (a.buffer = s);
135
+ }, Ps = (t, e) => t.axes?.[e]?.tickSpacing, Rs = (t) => {
136
+ const { config: e, tickSpacing: s, axisIndex: i } = t;
137
+ e.axes?.[i] !== void 0 && (e.axes[i].tickSpacing = s);
138
+ }, Es = (t, e) => t.axes?.[e]?.integerOnlyValues ?? !1, $s = (t) => {
139
+ const { config: e, integerOnlyValues: s, axisIndex: i } = t;
140
+ e.axes?.[i] !== void 0 && (e.axes[i].integerOnlyValues = s);
141
+ }, xt = (t) => t.series.map((e) => String(ee({ where: e.query?.where }))).filter((e) => e !== void 0 && e.trim() !== "");
142
+ class Ws extends J {
392
143
  /**
393
144
  * The split-by values for the chart.
394
145
  */
395
146
  get splitByValues() {
396
- return qt(this._config);
147
+ return xt(this._config);
397
148
  }
398
149
  }
399
- const Pt = (t) => {
150
+ const St = (t) => {
400
151
  let e;
401
- const i = t.series[0];
402
- return I(i) && (e = i.temporalBinning?.size), e;
403
- }, Dt = (t) => {
152
+ const s = t.series[0];
153
+ return L(s) && (e = s.temporalBinning?.size), e;
154
+ }, Tt = (t) => {
404
155
  let e;
405
- const i = t.series[0];
406
- return I(i) && (e = i.temporalBinning?.unit), e;
407
- }, Mt = (t) => {
156
+ const s = t.series[0];
157
+ return L(s) && (e = s.temporalBinning?.unit), e;
158
+ }, Ft = (t) => {
408
159
  let e;
409
- const i = t.series[0];
410
- return I(i) && (e = i.temporalBinning?.timeAggregationType), e;
411
- }, Ut = (t) => {
160
+ const s = t.series[0];
161
+ return L(s) && (e = s.temporalBinning?.timeAggregationType), e;
162
+ }, bt = (t) => {
412
163
  let e;
413
- const i = t.series[0];
414
- return I(i) && (e = i.temporalBinning?.trimIncompleteTimeInterval), e;
415
- }, Et = (t) => {
164
+ const s = t.series[0];
165
+ return L(s) && (e = s.temporalBinning?.trimIncompleteTimeInterval), e;
166
+ }, ht = (t) => {
416
167
  let e;
417
- const i = t.series[0];
418
- return I(i) && (e = i.temporalBinning?.nullPolicy), e;
419
- }, Ce = (t, e) => {
420
- e?.series?.forEach((i) => {
421
- I(i) && (i.temporalBinning ??= {}, i.temporalBinning.size = t);
422
- }), F({ config: e, value: null, axisIndex: 1, isMax: !1 }), F({ config: e, value: null, axisIndex: 1, isMax: !0 });
423
- }, Rt = (t, e) => {
424
- e?.series?.forEach((i) => {
425
- I(i) && (i.temporalBinning ??= {}, i.temporalBinning.nullPolicy = t);
426
- }), F({ config: e, value: null, axisIndex: 1, isMax: !1 }), F({ config: e, value: null, axisIndex: 1, isMax: !0 });
427
- }, gs = (t, e) => {
428
- e.series?.forEach((i) => {
429
- I(i) && (i.temporalBinning ??= {}, i.temporalBinning.unit = t);
430
- }), F({ config: e, value: null, axisIndex: 1, isMax: !1 }), F({ config: e, value: null, axisIndex: 1, isMax: !0 });
431
- }, fs = (t, e) => {
432
- e.series?.forEach((i) => {
433
- I(i) && (i.temporalBinning ??= {}, i.temporalBinning.timeAggregationType = t);
434
- }), F({ config: e, value: null, axisIndex: 1, isMax: !1 }), F({ config: e, value: null, axisIndex: 1, isMax: !0 });
435
- }, ps = (t, e) => {
436
- e.series?.forEach((i) => {
437
- I(i) && (i.temporalBinning ??= {}, i.temporalBinning.trimIncompleteTimeInterval = t);
438
- }), F({ config: e, value: null, axisIndex: 1, isMax: !1 }), F({ config: e, value: null, axisIndex: 1, isMax: !0 });
439
- }, ms = (t) => {
440
- Ce(0, t);
441
- }, Le = (t) => t.series.length ?? 0;
442
- class xs extends se {
168
+ const s = t.series[0];
169
+ return L(s) && (e = s.temporalBinning?.nullPolicy), e;
170
+ }, Te = (t, e) => {
171
+ e?.series?.forEach((s) => {
172
+ L(s) && (s.temporalBinning ??= {}, s.temporalBinning.size = t);
173
+ }), b({ config: e, value: null, axisIndex: 1, isMax: !1 }), b({ config: e, value: null, axisIndex: 1, isMax: !0 });
174
+ }, Ct = (t, e) => {
175
+ e?.series?.forEach((s) => {
176
+ L(s) && (s.temporalBinning ??= {}, s.temporalBinning.nullPolicy = t);
177
+ }), b({ config: e, value: null, axisIndex: 1, isMax: !1 }), b({ config: e, value: null, axisIndex: 1, isMax: !0 });
178
+ }, Xs = (t, e) => {
179
+ e.series?.forEach((s) => {
180
+ L(s) && (s.temporalBinning ??= {}, s.temporalBinning.unit = t);
181
+ }), b({ config: e, value: null, axisIndex: 1, isMax: !1 }), b({ config: e, value: null, axisIndex: 1, isMax: !0 });
182
+ }, js = (t, e) => {
183
+ e.series?.forEach((s) => {
184
+ L(s) && (s.temporalBinning ??= {}, s.temporalBinning.timeAggregationType = t);
185
+ }), b({ config: e, value: null, axisIndex: 1, isMax: !1 }), b({ config: e, value: null, axisIndex: 1, isMax: !0 });
186
+ }, Ys = (t, e) => {
187
+ e.series?.forEach((s) => {
188
+ L(s) && (s.temporalBinning ??= {}, s.temporalBinning.trimIncompleteTimeInterval = t);
189
+ }), b({ config: e, value: null, axisIndex: 1, isMax: !1 }), b({ config: e, value: null, axisIndex: 1, isMax: !0 });
190
+ }, Ks = (t) => {
191
+ Te(0, t);
192
+ }, Fe = (t) => t.series.length ?? 0;
193
+ class Us extends J {
443
194
  /**
444
195
  * The length of the series array.
445
196
  */
446
197
  get seriesLength() {
447
- return Le(this._config);
198
+ return Fe(this._config);
448
199
  }
449
200
  }
450
- function Ss(t, e) {
451
- let i;
452
- return e !== void 0 && (i = { ...e }, i.legend !== void 0 && (i.legend.position = t)), i;
201
+ function _s(t, e) {
202
+ let s;
203
+ return e !== void 0 && (s = { ...e }, s.legend !== void 0 && (s.legend.position = t)), s;
453
204
  }
454
- function hs(t, e) {
455
- let i;
456
- return e !== void 0 && (i = { ...e }, i.legend !== void 0 && (i.legend.visible = t)), i;
205
+ function Hs(t, e) {
206
+ let s;
207
+ return e !== void 0 && (s = { ...e }, s.legend !== void 0 && (s.legend.visible = t)), s;
457
208
  }
458
- function Fs(t, e) {
459
- let i;
460
- return e !== void 0 && (i = { ...e, rotated: t }), i;
209
+ function zs(t, e) {
210
+ let s;
211
+ return e !== void 0 && (s = { ...e, rotated: t }), s;
461
212
  }
462
- function Ie(t) {
213
+ function Bt(t) {
463
214
  let e;
464
215
  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;
465
216
  }
466
- function bs(t, e) {
467
- return e != null || Se(t);
217
+ function Qs(t, e) {
218
+ return e != null || pe(t);
468
219
  }
469
- async function $t(t) {
470
- const { queryObject: e, chartConfig: i, options: s, splitByField: a } = t;
471
- let r = [], n;
472
- const o = R(i), c = o.series[0], l = it({
220
+ async function At(t) {
221
+ const { queryObject: e, chartConfig: s, options: i, splitByField: a } = t;
222
+ let r = [], l;
223
+ const n = R(s), o = n.series[0], d = $e({
473
224
  queryObject: e,
474
- chartConfig: o,
475
- runtimeDataFilters: s?.runtimeDataFilters,
476
- ignoreViewExtent: s?.ignoreViewExtent
225
+ chartConfig: n,
226
+ runtimeDataFilters: i?.runtimeDataFilters,
227
+ ignoreViewExtent: i?.ignoreViewExtent
477
228
  });
478
- if (l.outStatistics?.[0]?.outStatisticFieldName && (l.outStatistics[0].outStatisticFieldName = st.outStatistics.outStatisticFieldName), I(c) && at({
479
- xAxisValueFormatType: rt(o),
480
- setTimeBinningInfoWhenNotProvided: s?.setTimeBinningInfoWhenNotProvided,
481
- seriesConfig: c
482
- }) && nt(e)) {
483
- const { temporalBinning: y, x: d } = c, { uniqueQuery: x } = await ne({
484
- chartConfig: o,
485
- queryConfig: l,
229
+ if (d.outStatistics?.[0]?.outStatisticFieldName && (d.outStatistics[0].outStatisticFieldName = We.outStatistics.outStatisticFieldName), L(o) && Xe({
230
+ xAxisValueFormatType: je(n),
231
+ setTimeBinningInfoWhenNotProvided: i?.setTimeBinningInfoWhenNotProvided,
232
+ seriesConfig: o
233
+ }) && Ye(e)) {
234
+ const { temporalBinning: f, x: c } = o, { uniqueQuery: S } = await ie({
235
+ chartConfig: n,
236
+ queryConfig: d,
486
237
  queryObject: e,
487
- options: s
238
+ options: i
488
239
  });
489
- n = await ot({
240
+ l = await Ke({
490
241
  queryObject: e,
491
- dateField: d,
242
+ dateField: c,
492
243
  splitByField: a,
493
- queryConfig: x,
494
- temporalBinning: y
244
+ queryConfig: S,
245
+ temporalBinning: f
495
246
  }), r = Array.from(
496
247
  new Set(
497
- n.flatMap((m) => {
498
- const { stackedAttributes: f } = m;
248
+ l.flatMap((x) => {
249
+ const { stackedAttributes: y } = x;
499
250
  let u = [];
500
- return f && (u = f.map((S) => S[a]).filter((S) => S !== void 0)), u;
251
+ return y && (u = y.map((m) => m[a]).filter((m) => m !== void 0)), u;
501
252
  })
502
253
  ).values()
503
254
  );
504
255
  } else {
505
- const { uniqueQuery: y } = await ne({
506
- chartConfig: o,
256
+ const { uniqueQuery: f } = await ie({
257
+ chartConfig: n,
507
258
  queryObject: e,
508
- queryConfig: l,
509
- options: s
259
+ queryConfig: d,
260
+ options: i
510
261
  });
511
- n = await lt({
262
+ l = await Ue({
512
263
  queryObject: e,
513
- queryConfig: y,
264
+ queryConfig: f,
514
265
  featureCount: 1
515
266
  }), r = Array.from(
516
267
  new Set(
517
- n.map((d) => d.attributes[a]).filter((d) => d !== void 0)
268
+ l.map((c) => c.attributes[a]).filter((c) => c !== void 0)
518
269
  ).values()
519
270
  );
520
271
  }
521
- return { allValues: r, preFetchedQueryResponse: n };
272
+ return { allValues: r, preFetchedQueryResponse: l };
522
273
  }
523
- function Xt(t, e) {
524
- const i = /* @__PURE__ */ new Map();
525
- return t.series.forEach((s) => {
526
- let a = Y({
527
- where: s.query?.where,
274
+ function vt(t, e) {
275
+ const s = /* @__PURE__ */ new Map();
276
+ return t.series.forEach((i) => {
277
+ let a = ee({
278
+ where: i.query?.where,
528
279
  // normalize the value so it matches what we get from getAllValues()
529
280
  // Refer to https://devtopia.esri.com/WebGIS/arcgis-charts/issues/8127
530
281
  normalize: !0,
@@ -533,736 +284,741 @@ function Xt(t, e) {
533
284
  escape: !1
534
285
  });
535
286
  e && a !== null && (a = Number(a));
536
- const r = ye([s]);
537
- r !== void 0 && i.set(r, [
538
- ...i.get(r) ?? [],
287
+ const r = qe([i]);
288
+ r !== void 0 && s.set(r, [
289
+ ...s.get(r) ?? [],
539
290
  a
540
291
  ]);
541
- }), i;
292
+ }), s;
542
293
  }
543
- function kt(t) {
544
- const { allValues: e, configUniqueValuesPerSeriesType: i, initialConfigWasEmpty: s } = t, a = /* @__PURE__ */ new Map();
545
- return Array.from(i.keys()).forEach((r) => {
546
- const n = i.get(r) ?? [];
547
- let o = [];
548
- s ? o = e : e.forEach((c) => {
549
- n.includes(c) || o.push(c);
550
- }), a.set(r, o);
294
+ function Lt(t) {
295
+ const { allValues: e, configUniqueValuesPerSeriesType: s, initialConfigWasEmpty: i } = t, a = /* @__PURE__ */ new Map();
296
+ return Array.from(s.keys()).forEach((r) => {
297
+ const l = s.get(r) ?? [];
298
+ let n = [];
299
+ i ? n = e : e.forEach((o) => {
300
+ l.includes(o) || n.push(o);
301
+ }), a.set(r, n);
551
302
  }), a;
552
303
  }
553
- function jt(t) {
554
- const { chartConfig: e, missingValue: i, splitByField: s, seriesTemplate: a } = t, r = JSON.parse(
304
+ function It(t) {
305
+ const { chartConfig: e, missingValue: s, splitByField: i, seriesTemplate: a } = t, r = JSON.parse(
555
306
  JSON.stringify({
556
307
  ...e.series[0],
557
308
  ...a
558
309
  })
559
310
  );
560
311
  if (r.query) {
561
- if (r.id = `${i}-${e.series.length}-${Date.now()}`, r.name = `${i}`, r.query.outStatistics?.[0] !== void 0) {
562
- const o = r.id;
563
- r.query.outStatistics[0].outStatisticFieldName = o, "y" in r && (r.y = o);
312
+ if (r.id = `${s}-${e.series.length}-${Date.now()}`, r.name = `${s}`, r.query.outStatistics?.[0] !== void 0) {
313
+ const n = r.id;
314
+ r.query.outStatistics[0].outStatisticFieldName = n, "y" in r && (r.y = n);
564
315
  }
565
- const n = typeof i == "number" || i === null ? i : `'${i}'`;
566
- r.query.where = `${s}=${n}`;
316
+ const l = typeof s == "number" || s === null ? s : `'${s}'`;
317
+ r.query.where = `${i}=${l}`;
567
318
  }
568
319
  return r;
569
320
  }
570
- async function Wt(t) {
571
- const { updateSplitBySeries: e, config: i, options: s, queryObject: a } = t, { seriesTemplate: r } = e ?? {};
572
- let n;
573
- if (e !== void 0 && i !== void 0 && (i.series.length > 0 || r !== void 0) && e.addMissingSeries) {
574
- const o = i.series.length === 0;
575
- i.series.length === 0 && r !== void 0 && i.series.push(r);
576
- const c = K(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), y = et(a);
579
- await y.load();
580
- const d = y.getField(l)?.toJSON(), x = tt(d), m = await $t({
321
+ async function Vt(t) {
322
+ const { updateSplitBySeries: e, config: s, options: i, queryObject: a } = t, { seriesTemplate: r } = e ?? {};
323
+ let l;
324
+ if (e !== void 0 && s !== void 0 && (s.series.length > 0 || r !== void 0) && e.addMissingSeries) {
325
+ const n = s.series.length === 0;
326
+ s.series.length === 0 && r !== void 0 && s.series.push(r);
327
+ const o = j(s.series);
328
+ if ((o === q.BoxPlotMonoFieldAndSplitBy || o === q.BoxPlotMultiFieldsAndSplitBy || o === q.BoxPlotMonoFieldAndCategoryAndSplitBy || o === q.BarAndLineSplitBy || o === q.BarAndLineSplitByNoAggregation) && a !== void 0) {
329
+ const d = Pe(s.series[0]?.query?.where), f = Re(a);
330
+ await f.load();
331
+ const c = f.getField(d)?.toJSON(), S = Ee(c), x = await At({
581
332
  queryObject: a,
582
- chartConfig: i,
583
- splitByField: l,
584
- options: s
585
- }), { allValues: f } = m;
586
- if ({ preFetchedQueryResponse: n } = m, f.length > 0) {
587
- const u = Xt(i, x), S = kt({
588
- allValues: f,
333
+ chartConfig: s,
334
+ splitByField: d,
335
+ options: i
336
+ }), { allValues: y } = x;
337
+ if ({ preFetchedQueryResponse: l } = x, y.length > 0) {
338
+ const u = vt(s, S), m = Lt({
339
+ allValues: y,
589
340
  configUniqueValuesPerSeriesType: u,
590
- initialConfigWasEmpty: o
341
+ initialConfigWasEmpty: n
591
342
  });
592
- Array.from(S.keys()).forEach((p) => {
593
- (S.get(p) ?? []).forEach((h) => {
594
- i.series.push(
595
- jt({
596
- chartConfig: i,
343
+ Array.from(m.keys()).forEach((p) => {
344
+ (m.get(p) ?? []).forEach((T) => {
345
+ s.series.push(
346
+ It({
347
+ chartConfig: s,
597
348
  seriesTemplate: r,
598
- missingValue: h,
599
- splitByField: l
349
+ missingValue: T,
350
+ splitByField: d
600
351
  })
601
352
  );
602
- }), o && i.series.shift();
353
+ }), n && s.series.shift();
603
354
  });
604
355
  }
605
356
  }
606
357
  }
607
- return n;
358
+ return l;
608
359
  }
609
- function _t(t, e) {
610
- e && !Se(e) && (e = Je({ chartConfig: e, queryObject: t }));
360
+ function qt(t, e) {
361
+ e && !pe(e) && (e = Me({ chartConfig: e, queryObject: t }));
611
362
  }
612
- async function Ts(t) {
613
- const {
614
- configToAlter: e,
615
- layer: i,
616
- addMissingSeries: s,
363
+ async function Gs(t) {
364
+ const { configToAlter: e, layer: s, addMissingSeries: i, updateSplitBySeries: a, chartContainer: r, queryObject: l, options: n } = t;
365
+ let o = e, d;
366
+ return o && (qt(s, o), o = await ut(o, s), i && (d = await Vt({
617
367
  updateSplitBySeries: a,
618
- chartContainer: r,
619
- creation: n,
620
- queryObject: o,
621
- options: c,
622
- previousConfig: l
623
- } = t;
624
- let y = e, d;
625
- return y && (_t(i, y), y = await Fe(y, i), s && (d = await Wt({
626
- updateSplitBySeries: a,
627
- config: y,
628
- options: c,
629
- queryObject: o
630
- })), (n || l && He(l, y)) && (y = Ge(y, r))), { alteredConfig: y, preFetchedQueryResponse: d };
368
+ config: o,
369
+ options: n,
370
+ queryObject: l
371
+ })), o = ke(o, r)), { alteredConfig: o, preFetchedQueryResponse: d };
631
372
  }
632
- const As = (t) => {
633
- const { xField: e, config: i, layerInfo: s } = t, { layerFieldsInfo: a } = s, r = k(0, i), n = Yt(i), o = $(i), c = i.series[0];
634
- if (typeof e == "string" && n !== e && c && (c.x = e, Ie(i), n === r || o)) {
635
- const l = L(a, e);
636
- W(i, 0, l);
637
- }
638
- }, Yt = (t) => t.series[0].x ?? "", vs = (t) => t.hideEmptyRowsAndColumns, Bs = (t, e) => {
373
+ const Zs = (t) => t.hideEmptyRowsAndColumns, Js = (t, e) => {
639
374
  t.hideEmptyRowsAndColumns = e;
640
- }, Cs = (t, e) => {
641
- const i = t.series[0];
642
- i.heatRulesType = e;
643
- }, Ls = (t) => t.series[0].heatRulesType, Is = (t, e) => {
644
- const i = t.series[0];
645
- i.gradientRules = e;
646
- }, Ns = (t) => t.series[0].gradientRules, Vs = (t) => {
647
- const { yField: e, config: i, layerInfo: s } = t, { layerFieldsInfo: a } = s, r = k(1, i), n = Kt(i), o = $(i), c = i.series[0];
648
- if (typeof e == "string" && n !== e && c && (c.y = e, Ie(i), n === r || o)) {
649
- const l = L(a, e);
650
- W(i, 1, l);
375
+ }, ei = (t, e) => {
376
+ const s = t.series[0];
377
+ s.heatRulesType = e;
378
+ }, ti = (t) => t.series[0].heatRulesType, si = (t, e) => {
379
+ const s = t.series[0];
380
+ s.gradientRules = e;
381
+ }, ii = (t) => t.series[0].gradientRules, ai = (t) => {
382
+ const { yField: e, config: s, layerInfo: i } = t, { layerFieldsInfo: a } = i, r = U(1, s), l = Nt(s), n = Y(s), o = s.series[0];
383
+ if (typeof e == "string" && l !== e && o && (o.y = e, Bt(s), l === r || n)) {
384
+ const d = N(a, e);
385
+ G(s, 1, d);
651
386
  }
652
- }, Kt = (t) => t.series[0].y ?? "", Os = (t, e) => {
653
- const i = e.series[0];
654
- i.xTemporalBinning = t;
655
- }, ws = (t) => t.series[0].xTemporalBinning, qs = (t, e) => {
656
- const i = e.series[0];
657
- i.yTemporalBinning = t;
658
- }, Ps = (t) => t.series[0].yTemporalBinning, Qt = (t, e) => {
387
+ }, Nt = (t) => t.series[0].y ?? "", ri = (t, e) => {
388
+ const s = e.series[0];
389
+ s.xTemporalBinning = t;
390
+ }, li = (t) => t.series[0].xTemporalBinning, ni = (t, e) => {
391
+ const s = e.series[0];
392
+ s.yTemporalBinning = t;
393
+ }, oi = (t) => t.series[0].yTemporalBinning, wt = (t, e) => {
659
394
  e.orderOptions ??= {};
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 = {
395
+ const s = e.axes?.[0]?.valueFormat?.type === "category" ? F.Category : F.YValue, i = Z(e)[0], a = e.axes?.[1]?.valueFormat?.type === "category" ? F.Category : F.YValue, r = Z(e)[1], l = {
661
396
  ...e.orderOptions.data ?? {},
662
- orderType: b.MultiAxes
397
+ orderType: F.MultiAxes
398
+ };
399
+ i === Q.customSort && s === F.Category && (l.orderByX = [...t]), r === Q.customSort && a === F.Category && (l.orderByY = [...t]), Object.keys(l).length > 1 && (e.orderOptions.data = l);
400
+ }, di = (t, e) => {
401
+ const s = e.series[0];
402
+ s.gridLine && (s.gridLine.width = t);
403
+ }, ci = (t) => t.series[0].gridLine?.width, ui = (t, e) => {
404
+ const s = e.series[0], i = t?.length === 4 && t.every((a) => typeof a == "number");
405
+ s.gridLine && i && (s.gridLine.color = t);
406
+ }, yi = (t) => t.series[0].gridLine?.color, gi = (t, e) => {
407
+ const s = e.legend;
408
+ s && (s.position = t);
409
+ }, pi = (t) => t.legend?.position ?? Ne.Bottom, mi = (t) => t.series[0].query?.outStatistics?.[0]?.onStatisticField, fi = (t, e) => {
410
+ const s = e.series[0].query?.outStatistics?.[0];
411
+ s ? (s.onStatisticField = t, s.outStatisticFieldName = `${s.statisticType}_${t}`) : e.series[0].query = {
412
+ outStatistics: [
413
+ {
414
+ onStatisticField: t,
415
+ outStatisticFieldName: `${A.Count}_${t}`,
416
+ statisticType: A.Count
417
+ }
418
+ ]
663
419
  };
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) => {
666
- const i = e.series[0];
667
- i.gridLine && (i.gridLine.width = t);
668
- }, Ms = (t) => t.series[0].gridLine?.width, Us = (t, e) => {
669
- const i = e.series[0], s = t?.length === 4 && t.every((a) => typeof a == "number");
670
- i.gridLine && s && (i.gridLine.color = t);
671
- }, Es = (t) => t.series[0].gridLine?.color, Rs = (t, e) => {
672
- const i = e.legend;
673
- i && (i.position = t);
674
- }, $s = (t) => t.legend?.position ?? $e.Bottom, Xs = (t) => t.series[0].query?.outStatistics?.[0]?.onStatisticField, ks = (t, e) => {
675
- const i = e.series[0].query?.outStatistics?.[0];
676
- i && (i.onStatisticField = t, i.outStatisticFieldName = `${i.statisticType}_${t}`);
677
- }, js = (t) => t.series[0].query?.outStatistics?.[0].statisticType ?? T.Count, Ws = (t, e) => {
678
- const i = e.series[0]?.query?.outStatistics?.[0];
679
- i && t !== T.NoAggregation && (i.statisticType = t, i.outStatisticFieldName = `${t}_${i.onStatisticField}`);
680
- }, _s = (t) => t.nullPolicy, Ys = (t, e) => {
420
+ }, xi = (t) => t.series[0].query?.outStatistics?.[0].statisticType ?? A.Count, Si = (t, e) => {
421
+ const s = e.series[0]?.query?.outStatistics?.[0];
422
+ s && t !== A.NoAggregation && (s.statisticType = t, s.outStatisticFieldName = `${t}_${s.onStatisticField}`);
423
+ }, Ti = (t) => t.nullPolicy, Fi = (t, e) => {
681
424
  e.nullPolicy = t;
682
- }, Ks = (t) => t.series[0].emptyCells?.text, Qs = (t, e) => {
425
+ }, bi = (t) => t.series[0].emptyCells, hi = (t, e) => {
426
+ e.series[0].emptyCells = t;
427
+ }, Ci = (t) => t.series[0].emptyCells?.text, Bi = (t, e) => {
683
428
  e.series[0].emptyCells ? e.series[0].emptyCells.text = t : e.series[0].emptyCells = { text: t };
684
- }, zs = (t) => t.includeLeapDay, Hs = (t, e) => {
429
+ }, Ai = (t) => t.includeLeapDay, vi = (t, e) => {
685
430
  e.includeLeapDay = t;
686
- }, Gs = (t) => t.series[0].emptyCells?.symbol, Js = (t, e) => {
431
+ }, Li = (t) => t.series[0].emptyCells?.symbol, Ii = (t, e) => {
687
432
  e.series[0].emptyCells ? e.series[0].emptyCells.symbol = t : e.series[0].emptyCells = { symbol: t };
688
433
  };
689
- function E(t) {
690
- const { seriesIndex: e, xAxisField: i, aggregationType: s, config: a, layerInfo: r, commonStrings: n } = t, o = D(r?.layer).idField;
691
- let c;
692
- const l = a.series[e ?? 0];
693
- let y = !1, d = !1;
694
- if (l === void 0) {
695
- const f = a.series;
696
- y = f.slice(0, e).every((u) => v(u)), d = f.slice(0, e).every((u) => B(u));
434
+ function Vi(t) {
435
+ return _e(t);
436
+ }
437
+ function qi(t) {
438
+ return t.viewType;
439
+ }
440
+ function Ni(t, e) {
441
+ He(e) || (e.viewType = t);
442
+ }
443
+ function wi(t) {
444
+ return t.series[0].classBreaksRules?.breaksCount ?? $.classBreaks.breaksCount;
445
+ }
446
+ function Oi(t, e) {
447
+ e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.breaksCount = t ?? $.classBreaks.breaksCount : e.series[0].classBreaksRules = {
448
+ breaksCount: t ?? $.classBreaks.breaksCount
449
+ };
450
+ }
451
+ function Di(t) {
452
+ return t.series[0].classBreaksRules?.classificationMethod;
453
+ }
454
+ function ki(t, e) {
455
+ e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.classificationMethod = t : e.series[0].classBreaksRules = {
456
+ classificationMethod: t
457
+ }, e.series[0].classBreaksRules.breaksCount = e.series[0].classBreaksRules.breaksCount ?? $.classBreaks.breaksCount;
458
+ }
459
+ function P(t) {
460
+ const { seriesIndex: e, xAxisField: s, aggregationType: i, config: a, layerInfo: r, commonStrings: l } = t, n = K(r?.layer).idField;
461
+ let o;
462
+ const d = a.series[e ?? 0];
463
+ let f = !1, c = !1, S = !1;
464
+ if (d === void 0) {
465
+ const u = a.series;
466
+ f = u.slice(0, e).every((m) => C(m)), c = u.slice(0, e).every((m) => B(m)), S = u.slice(0, e).every((m) => le(m));
697
467
  } else
698
- y = v(l), d = B(l);
699
- y ? c = ut({
700
- commonStrings: n,
468
+ f = C(d), c = B(d), S = le(d);
469
+ f ? o = Ze({
470
+ commonStrings: l,
701
471
  seriesIndex: e,
702
- objectIDField: o
703
- }) : d ? c = yt({
704
- commonStrings: n,
472
+ objectIDField: n
473
+ }) : c ? o = Je({
474
+ commonStrings: l,
705
475
  seriesIndex: e,
706
- objectIDField: o
707
- }) : c = gt({
476
+ objectIDField: n
477
+ }) : S ? o = et(l, n) : o = tt({
708
478
  seriesIndex: e,
709
- objectIDField: o,
710
- commonStrings: n
479
+ objectIDField: n,
480
+ commonStrings: l
711
481
  });
712
- const x = a.series[0]?.dataLabels, m = {
713
- ...c,
714
- x: i,
482
+ const x = a.series[0]?.dataLabels, y = {
483
+ ...o,
484
+ x: s,
715
485
  y: "",
716
486
  dataLabels: {
717
- ...c.dataLabels,
718
- type: c.dataLabels?.type ?? P.Text,
719
- content: { ...c.dataLabels?.content, ...x?.content, type: xt.TS },
487
+ ...o.dataLabels,
488
+ type: o.dataLabels?.type ?? M.Text,
489
+ content: { ...o.dataLabels?.content, ...x?.content, type: at.TS },
720
490
  visible: x?.visible ?? !1
721
491
  }
722
492
  };
723
- if (m.query = {
724
- groupByFieldsForStatistics: [i]
725
- }, s !== T.NoAggregation && o !== void 0) {
726
- const f = `${s}_${o}_0`.toUpperCase();
727
- m.y = f, m.query.outStatistics = [
493
+ if (y.query = {
494
+ groupByFieldsForStatistics: [s]
495
+ }, i !== A.NoAggregation && n !== void 0) {
496
+ const u = `${i}_${n}_0`.toUpperCase();
497
+ y.y = u, y.query.outStatistics = [
728
498
  {
729
- statisticType: s,
730
- onStatisticField: o,
731
- outStatisticFieldName: f
499
+ statisticType: i,
500
+ onStatisticField: n,
501
+ outStatisticFieldName: u
732
502
  }
733
503
  ];
734
504
  }
735
- if (v(m) || B(m) || C(m) && a.series[0]?.binTemporalData) {
736
- let f;
737
- if (a?.series?.[0] !== void 0 && (f = K(a.series)), f !== q.BarAndLineNoAggregation && f !== q.BarAndLineSplitByNoAggregation) {
738
- let u = Dt(a);
739
- u === H.Quarter && (u = H.Month), m.temporalBinning = {
740
- size: Pt(a),
741
- unit: u,
742
- timeAggregationType: Mt(a),
743
- trimIncompleteTimeInterval: Ut(a),
744
- nullPolicy: Et(a)
505
+ if (C(y) || B(y) || v(y) && a.series[0]?.binTemporalData) {
506
+ let u;
507
+ if (a?.series?.[0] !== void 0 && (u = j(a.series)), u !== q.BarAndLineNoAggregation && u !== q.BarAndLineSplitByNoAggregation) {
508
+ let m = Tt(a);
509
+ m === z.Quarter && (m = z.Month), y.temporalBinning = {
510
+ size: St(a),
511
+ unit: m,
512
+ timeAggregationType: Ft(a),
513
+ trimIncompleteTimeInterval: bt(a),
514
+ nullPolicy: ht(a)
745
515
  };
746
516
  }
747
517
  }
748
- return R(m);
518
+ return R(y);
749
519
  }
750
- function Ne(t, e, i) {
751
- const { layerFieldsInfo: s } = e, { idField: a, isTraditionalTypeOID: r } = D(e.layer), n = X(t), o = ae(t), c = Oe(t), l = _(t), y = r && (o.length === 0 || o.includes(a)), d = pe(c, i), x = y ? "" : o.map((h) => L(s ?? [], h)).join(", "), m = L(s ?? [], n), f = L(s ?? [], l), u = t.series.some((h) => C(h)), S = u ? "category" : "xAxisField", p = m;
520
+ function be(t, e, s) {
521
+ const { layerFieldsInfo: i } = e, { idField: a, isTraditionalTypeOID: r } = K(e.layer), l = E(t), n = se(t), o = Ce(t), d = X(t), f = r && (n.length === 0 || n.includes(a)), c = Ge(o, s), S = f ? "" : n.map((T) => N(i ?? [], T)).join(", "), x = N(i ?? [], l), y = N(i ?? [], d), u = t.series.some((T) => v(T)), m = u ? "category" : "xAxisField", p = x;
752
522
  let g = "";
753
- if (he({
754
- fieldName: n,
755
- numericFields: o,
756
- fieldList: s
523
+ if (xe({
524
+ fieldName: l,
525
+ numericFields: n,
526
+ fieldList: i
757
527
  }))
758
- g = w(i.titleLabels.aggrTypeOfAggrFields, {
759
- aggregationType: d,
760
- aggregationFields: x
528
+ g = O(s.titleLabels.aggrTypeOfAggrFields, {
529
+ aggregationType: c,
530
+ aggregationFields: S
761
531
  });
762
- else if (c === T.NoAggregation) {
763
- const h = y ? a : x;
764
- if (l === "") {
765
- const V = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
766
- g = w(i.titleLabels[V], {
767
- aggregationType: h,
768
- [S]: p
532
+ else if (o === A.NoAggregation) {
533
+ const T = f ? a : S;
534
+ if (d === "") {
535
+ const I = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
536
+ g = O(s.titleLabels[I], {
537
+ aggregationType: T,
538
+ [m]: p
769
539
  });
770
540
  } else {
771
- const V = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
772
- g = w(i.titleLabels[V], {
773
- aggregationType: h,
774
- [S]: p,
775
- splitByField: f
541
+ const I = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
542
+ g = O(s.titleLabels[I], {
543
+ aggregationType: T,
544
+ [m]: p,
545
+ splitByField: y
776
546
  });
777
547
  }
778
- } else if (c === T.Count)
779
- if (l === "") {
780
- const h = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
781
- g = w(i.titleLabels[h], {
782
- aggregationType: d,
783
- [S]: p
548
+ } else if (o === A.Count)
549
+ if (d === "") {
550
+ const T = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
551
+ g = O(s.titleLabels[T], {
552
+ aggregationType: c,
553
+ [m]: p
784
554
  });
785
555
  } else {
786
- const h = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
787
- g = w(i.titleLabels[h], {
788
- aggregationType: d,
789
- [S]: p,
790
- splitByField: f
556
+ const T = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
557
+ g = O(s.titleLabels[T], {
558
+ aggregationType: c,
559
+ [m]: p,
560
+ splitByField: y
791
561
  });
792
562
  }
793
- else if (l !== "") {
794
- const h = u ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
795
- g = w(i.titleLabels[h], {
796
- aggregationType: d,
797
- aggregationField: x,
798
- [S]: p,
799
- splitByField: f
563
+ else if (d !== "") {
564
+ const T = u ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
565
+ g = O(s.titleLabels[T], {
566
+ aggregationType: c,
567
+ aggregationField: S,
568
+ [m]: p,
569
+ splitByField: y
800
570
  });
801
- } else if (o.length > 0) {
802
- const h = u ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
803
- g = w(i.titleLabels[h], {
804
- aggregationType: d,
805
- aggregationFields: x,
806
- [S]: p
571
+ } else if (n.length > 0) {
572
+ const T = u ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
573
+ g = O(s.titleLabels[T], {
574
+ aggregationType: c,
575
+ aggregationFields: S,
576
+ [m]: p
807
577
  });
808
578
  }
809
579
  return g;
810
580
  }
811
- const Ve = (t) => Y({
581
+ const he = (t) => ee({
812
582
  where: t.query?.where,
813
583
  normalize: !1,
814
584
  escape: !1
815
- }) ?? "", Oe = (t) => t?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? T.NoAggregation, _ = de(
585
+ }) ?? "", Ce = (t) => t?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? A.NoAggregation, X = de(
816
586
  (t) => {
817
587
  const e = t?.series?.[0]?.query?.where?.split("=")[0].trim() ?? "";
818
- return ct(t?.series?.[0]?.query?.where) ? "" : e;
588
+ return ze(t?.series?.[0]?.query?.where) ? "" : e;
819
589
  },
820
590
  (t) => t?.series?.[0]?.query?.where
821
- ), ae = de(
591
+ ), se = de(
822
592
  // without memoizing, the worst case efficiency is O(series.length), best case is O(1)
823
593
  // with memoizing, the worst case efficiency for repeated calls becomes O(1)
824
594
  (t) => {
825
595
  let e = [];
826
- if (_(t) === "")
827
- e = t?.series.map((i) => {
828
- const s = i.query?.outStatistics?.map((a) => a.onStatisticField) ?? [];
829
- return s?.length > 0 ? s : i.y;
596
+ if (X(t) === "")
597
+ e = t?.series.map((s) => {
598
+ const i = s.query?.outStatistics?.map((a) => a.onStatisticField) ?? [];
599
+ return i?.length > 0 ? i : s.y;
830
600
  }).flat() ?? [];
831
601
  else {
832
- const i = t?.series?.[0], s = i?.query?.outStatistics?.[0]?.onStatisticField ?? [i?.y].flat()[0];
833
- e = s !== void 0 ? [s] : [];
602
+ const s = t?.series?.[0], i = s?.query?.outStatistics?.[0]?.onStatisticField ?? [s?.y].flat()[0];
603
+ e = i !== void 0 ? [i] : [];
834
604
  }
835
- return [...new Set(e.filter((i) => i !== ""))];
605
+ return [...new Set(e.filter((s) => s !== ""))];
836
606
  },
837
607
  // using series array address as key, since a change to the numeric fields will always rebuild a fresh series array
838
608
  (t) => t?.series
839
609
  );
840
- function zt(t) {
841
- const { numericFields: e, aggregationType: i, config: s, layerInfo: a } = t;
610
+ function Ot(t) {
611
+ const { numericFields: e, aggregationType: s, config: i, layerInfo: a } = t;
842
612
  let r = !1;
843
- i === T.Count ? r = !0 : i === T.NoAggregation && (r = e.every((c) => {
844
- const l = a.layerFieldsInfo.find((y) => y.name === c);
845
- return l !== void 0 ? oe(l) : !1;
846
- })), ce(s, 1, r);
847
- const n = s.series.some((c) => v(c)), o = s.series.some((c) => B(c));
848
- if (n || o) {
849
- const c = X(s), l = a.layerFieldsInfo.find((d) => d.name === c), y = l !== void 0 && oe(l);
850
- ce(s, 0, y);
613
+ s === A.Count ? r = !0 : s === A.NoAggregation && (r = e.every((o) => {
614
+ const d = a.layerFieldsInfo.find((f) => f.name === o);
615
+ return d !== void 0 ? ae(d) : !1;
616
+ })), ne(i, 1, r);
617
+ const l = i.series.some((o) => C(o)), n = i.series.some((o) => B(o));
618
+ if (l || n) {
619
+ const o = E(i), d = a.layerFieldsInfo.find((c) => c.name === o), f = d !== void 0 && ae(d);
620
+ ne(i, 0, f);
851
621
  }
852
622
  }
853
623
  const Z = (t) => {
854
624
  let e;
855
- if (me(t)) {
856
- 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;
857
- e = [le(i, a), le(s, r)];
625
+ if (ye(t)) {
626
+ const s = t.orderOptions?.data?.orderByX ?? [""], i = t.orderOptions?.data?.orderByY ?? [""], a = t.axes?.[0]?.valueFormat?.type === "category" ? F.Category : F.YValue, r = t.axes?.[1]?.valueFormat?.type === "category" ? F.Category : F.YValue;
627
+ e = [oe(s, a), oe(i, r)];
858
628
  } else {
859
- const i = t.orderOptions?.data?.orderType ?? b.Category, s = t.orderOptions?.data && "orderBy" in t.orderOptions.data ? t.orderOptions.data.orderBy : ue.Ascending;
860
- e = [bt(s, i)];
629
+ const s = t.orderOptions?.data?.orderType ?? F.Category, i = t.orderOptions?.data && "orderBy" in t.orderOptions.data ? t.orderOptions.data.orderBy : we.Ascending;
630
+ e = [ct(i, s)];
861
631
  }
862
632
  return e;
863
633
  };
864
- function Ht(t) {
865
- const { xAxisField: e, numericFields: i, aggregationType: s, config: a, layerInfo: r, commonStrings: n } = t, { layerFieldsInfo: o } = r;
866
- let c = !1;
867
- const l = E({
634
+ function Dt(t) {
635
+ const { xAxisField: e, numericFields: s, aggregationType: i, config: a, layerInfo: r, commonStrings: l } = t, { layerFieldsInfo: n } = r;
636
+ let o = !1;
637
+ const d = P({
868
638
  config: a,
869
639
  xAxisField: e,
870
- aggregationType: s,
640
+ aggregationType: i,
871
641
  layerInfo: r,
872
642
  seriesIndex: 0,
873
- commonStrings: n
874
- }), y = ie({
643
+ commonStrings: l
644
+ }), f = te({
875
645
  config: a,
876
646
  xAxisField: e,
877
- numericFields: i,
878
- aggregationType: s,
647
+ numericFields: s,
648
+ aggregationType: i,
879
649
  layer: r.layer,
880
- fieldList: o
881
- }).name, d = {
882
- ...l,
650
+ fieldList: n
651
+ }).name, c = {
652
+ ...d,
883
653
  id: `series_${Date.now()}`,
884
- name: n.axisLabels.values,
885
- x: j,
886
- y
887
- }, x = [];
888
- for (const f of i)
889
- x.push({
890
- onStatisticField: f,
891
- outStatisticFieldName: `${f}_0`.toUpperCase(),
892
- statisticType: s
654
+ name: l.axisLabels.values,
655
+ x: W,
656
+ y: f
657
+ }, S = [];
658
+ for (const y of s)
659
+ S.push({
660
+ onStatisticField: y,
661
+ outStatisticFieldName: `${y}_0`.toUpperCase(),
662
+ statisticType: i
893
663
  });
894
- d.query = { outStatistics: x };
895
- const m = a.series[0];
896
- 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];
664
+ c.query = { outStatistics: S };
665
+ const x = a.series[0];
666
+ return x !== void 0 && (c.id = x.id, a.colorMatch || (v(x) && v(c) ? c.fillSymbol = x.fillSymbol : (C(c) && C(x) || B(c) && B(x)) && (c.lineSymbol = x.lineSymbol, c.markerSymbol = x.markerSymbol), o = !0), c.id = x.id, x.name !== d.name && (c.name = x.name)), a.series.length === 1 && !a.colorMatch && (v(c) ? c.fillSymbol = a.series[0].fillSymbol : (C(c) || B(c)) && (c.lineSymbol = a.series[0].lineSymbol, c.markerSymbol = a.series[0].markerSymbol), o = !0), a.colorMatch = !o, [c];
897
667
  }
898
- function we(t) {
899
- const { xAxisField: e, numericFields: i, aggregationType: s, config: a, layerInfo: r, commonStrings: n } = t, { layerFieldsInfo: o } = r, c = D(r.layer).idField, l = [];
900
- let y = !1;
901
- for (let d = 0; d < i.length; d += 1) {
902
- const x = E({
668
+ function Be(t) {
669
+ const { xAxisField: e, numericFields: s, aggregationType: i, config: a, layerInfo: r, commonStrings: l } = t, { layerFieldsInfo: n } = r, o = K(r.layer).idField, d = [];
670
+ let f = !1;
671
+ for (let c = 0; c < s.length; c += 1) {
672
+ const S = P({
903
673
  config: a,
904
674
  xAxisField: e,
905
- aggregationType: s,
675
+ aggregationType: i,
906
676
  layerInfo: r,
907
- seriesIndex: d,
908
- commonStrings: n
909
- }), m = ie({
677
+ seriesIndex: c,
678
+ commonStrings: l
679
+ }), x = te({
910
680
  config: a,
911
681
  xAxisField: e,
912
- numericFields: i,
913
- aggregationType: s,
682
+ numericFields: s,
683
+ aggregationType: i,
914
684
  layer: r.layer,
915
- numericFieldIndex: d,
916
- fieldList: o
917
- }).name, f = i[d];
685
+ numericFieldIndex: c,
686
+ fieldList: n
687
+ }).name, y = s[c];
918
688
  let u = {
919
- ...x,
689
+ ...S,
920
690
  query: {
921
- ...x.query
691
+ ...S.query
922
692
  }
923
693
  };
924
- i && f !== c && (u = {
694
+ s && y !== o && (u = {
925
695
  ...u,
926
- id: f,
927
- name: L(o, f)
696
+ id: y,
697
+ name: N(n, y)
928
698
  });
929
- let S = f;
930
- u.query !== void 0 && (s !== T.NoAggregation ? (S = m, u.query.outStatistics = [
699
+ let m = y;
700
+ u.query !== void 0 && (i !== A.NoAggregation ? (m = x, u.query.outStatistics = [
931
701
  {
932
- ...x.query?.outStatistics?.[0] ?? {},
933
- onStatisticField: f,
934
- outStatisticFieldName: m,
935
- statisticType: s
702
+ ...S.query?.outStatistics?.[0] ?? {},
703
+ onStatisticField: y,
704
+ outStatisticFieldName: x,
705
+ statisticType: i
936
706
  }
937
- ]) : delete u.query.outStatistics), u.y = S;
707
+ ]) : delete u.query.outStatistics), u.y = m;
938
708
  const p = a.series.find(
939
- (g) => g.query?.outStatistics?.[0]?.onStatisticField === f && g.query.where === void 0
709
+ (g) => g.query?.outStatistics?.[0]?.onStatisticField === y && g.query.where === void 0
940
710
  );
941
711
  if (p !== void 0 && typeof p.y == "string" && p.y.trim() !== "") {
942
- 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), y = !0);
943
- const g = E({
712
+ a.colorMatch || (v(u) && v(p) ? u.fillSymbol = p.fillSymbol : (C(u) && C(p) || B(u) && B(p)) && (u.lineSymbol = p.lineSymbol, u.markerSymbol = p.markerSymbol), f = !0);
713
+ const g = P({
944
714
  config: a,
945
715
  xAxisField: e,
946
- aggregationType: s,
716
+ aggregationType: i,
947
717
  layerInfo: r,
948
- seriesIndex: d,
949
- commonStrings: n
718
+ seriesIndex: c,
719
+ commonStrings: l
950
720
  });
951
721
  u.id = p.id, p.id !== g.id && p.name !== g.name && (u.id = p.id, u.name = p.name);
952
722
  }
953
- l.push(u);
723
+ d.push(u);
954
724
  }
955
- 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), y = !0), a.colorMatch = !y, l;
725
+ return a.series.length === 1 && d.length === 1 && !a.colorMatch && (v(a.series[0]) && v(d[0]) ? d[0].fillSymbol = a.series[0].fillSymbol : (C(a.series[0]) && C(d[0]) || B(a.series[0]) && B(d[0])) && (d[0].lineSymbol = a.series[0].lineSymbol, d[0].markerSymbol = a.series[0].markerSymbol), f = !0), a.colorMatch = !f, d;
956
726
  }
957
- async function Gt(t) {
958
- const { splitByField: e, xAxisField: i, numericFields: s, aggregationType: a, config: r, layerInfo: n, commonStrings: o } = t, { layer: c, layerFieldsInfo: l } = n, { fetchNullValues: y } = r?.series?.[0]?.query ?? {}, d = i !== j ? i : void 0, { categoriesArray: x, splitByFieldType: m, numericalField: f } = await Tt({
727
+ async function kt(t) {
728
+ const { splitByField: e, xAxisField: s, numericFields: i, aggregationType: a, config: r, layerInfo: l, commonStrings: n } = t, { layer: o, layerFieldsInfo: d } = l, { fetchNullValues: f } = r?.series?.[0]?.query ?? {}, c = s !== W ? s : void 0, { categoriesArray: S, splitByFieldType: x, numericalField: y } = await dt({
959
729
  config: r,
960
- layer: c,
961
- layerFieldsInfo: l,
962
- xAxisField: d,
963
- aggregationFields: s,
730
+ layer: o,
731
+ layerFieldsInfo: d,
732
+ xAxisField: c,
733
+ aggregationFields: i,
964
734
  splitByField: e,
965
- fetchNullValues: y
735
+ fetchNullValues: f
966
736
  });
967
- let u = [], S = !1;
968
- if (x.length === 0) {
969
- u = we({
970
- xAxisField: i,
971
- numericFields: s,
737
+ let u = [], m = !1;
738
+ if (S.length === 0) {
739
+ u = Be({
740
+ xAxisField: s,
741
+ numericFields: i,
972
742
  aggregationType: a,
973
743
  config: r,
974
- layerInfo: n,
975
- commonStrings: o
744
+ layerInfo: l,
745
+ commonStrings: n
976
746
  });
977
747
  for (const p of u)
978
748
  p.query && (p.query.where = `${e}=''`);
979
749
  } else
980
- for (let p = 0; p < x.length; p += 1) {
981
- const g = x[p], h = ie({
750
+ for (let p = 0; p < S.length; p += 1) {
751
+ const g = S[p], T = te({
982
752
  config: r,
983
- xAxisField: i,
984
- numericFields: s,
753
+ xAxisField: s,
754
+ numericFields: i,
985
755
  aggregationType: a,
986
- layer: n.layer,
756
+ layer: l.layer,
987
757
  seriesIndex: p,
988
758
  splitByField: e,
989
- fieldList: l
990
- }).name, V = E({
759
+ fieldList: d
760
+ }).name, I = P({
991
761
  config: r,
992
- xAxisField: i,
762
+ xAxisField: s,
993
763
  aggregationType: a,
994
- layerInfo: n,
764
+ layerInfo: l,
995
765
  seriesIndex: p,
996
- commonStrings: o
997
- }), qe = {
766
+ commonStrings: n
767
+ }), Ae = {
998
768
  fieldName: e,
999
769
  fieldValueToMatch: g ?? "",
1000
- subtypeInfo: ee(n.layer),
1001
- fieldList: n.layerFieldsInfo
1002
- }, Pe = te(qe), Q = `${g}`, A = {
1003
- ...V,
1004
- id: Q,
1005
- name: Pe ?? Q,
1006
- y: h,
770
+ subtypeInfo: ce(l.layer),
771
+ fieldList: l.layerFieldsInfo
772
+ }, ve = ue(Ae), _ = `${g}`, h = {
773
+ ...I,
774
+ id: _,
775
+ name: ve ?? _,
776
+ y: T,
1007
777
  query: {
1008
- ...V.query,
1009
- where: `${e}=${m === xe.String && g !== null ? `'${g}'` : g}`,
1010
- outStatistics: a !== T.NoAggregation ? [
778
+ ...I.query,
779
+ where: `${e}=${x === ge.String && g !== null ? `'${g}'` : g}`,
780
+ outStatistics: a !== A.NoAggregation ? [
1011
781
  {
1012
- ...V.query?.outStatistics?.[0] ?? {},
1013
- onStatisticField: f,
1014
- outStatisticFieldName: h,
782
+ ...I.query?.outStatistics?.[0] ?? {},
783
+ onStatisticField: y,
784
+ outStatisticFieldName: T,
1015
785
  statisticType: a
1016
786
  }
1017
787
  ] : void 0
1018
788
  }
1019
789
  };
1020
- a === T.NoAggregation && (A.query !== void 0 && (delete A.query.outStatistics, delete A.query.groupByFieldsForStatistics), A.y = f);
1021
- const O = r.series.find(
1022
- (De) => String(Ve(De)).trim().replace(/'/gu, "") === Q
790
+ a === A.NoAggregation && (h.query !== void 0 && (delete h.query.outStatistics, delete h.query.groupByFieldsForStatistics), h.y = y);
791
+ const V = r.series.find(
792
+ (Le) => String(he(Le)).trim().replace(/'/gu, "") === _
1023
793
  );
1024
- 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);
794
+ V !== void 0 && (r.colorMatch || (v(h) && v(V) ? h.fillSymbol = V.fillSymbol : (C(h) && C(V) || B(h) && B(V)) && (h.lineSymbol = V.lineSymbol, h.markerSymbol = V.markerSymbol), m = !0), h.id = V.id, h.name = V.name), u.push(h);
1025
795
  }
1026
- return r.colorMatch = !S, u;
796
+ return r.colorMatch = !m, u;
1027
797
  }
1028
- const Zs = async (t) => {
1029
- const { xAxisField: e, splitByField: i, numericFields: s, aggregationType: a, config: r, layerInfo: n, commonStrings: o } = t, { layerFieldsInfo: c } = n ?? {}, l = Le(r), y = X(r), d = Jt(r, n, o), x = Zt(r, n, o), m = ei(r, n);
1030
- let f = ve(r);
1031
- const u = r.series.some((g) => C(g)), S = ht(r.series), p = Ft(r.series);
1032
- if (c !== void 0) {
1033
- const g = dt(c);
1034
- !g.includes(y) && g.includes(e) ? f = ft() : g.includes(y) && !g.includes(e) && (u ? f = G() : f = pt()), c.find((V) => V.name === e)?.type === xe.String && (f = G()), f !== void 0 && vt(r, o, f);
798
+ const Mi = async (t) => {
799
+ const { xAxisField: e, splitByField: s, numericFields: i, aggregationType: a, config: r, layerInfo: l, commonStrings: n } = t, { layerFieldsInfo: o } = l ?? {}, d = Fe(r), f = E(r), c = Mt(r, l, n), S = Pt(r, l, n), x = Rt(r, l);
800
+ let y = me(r);
801
+ const u = r.series.some((g) => v(g)), m = rt(r.series), p = lt(r.series);
802
+ if (o !== void 0) {
803
+ const g = Qe(o);
804
+ !g.includes(f) && g.includes(e) ? y = st() : g.includes(f) && !g.includes(e) && (u ? y = re() : y = it()), o.find((I) => I.name === e)?.type === ge.String && (y = re()), y !== void 0 && ot(r, n, y);
1035
805
  }
1036
- if (l === 0 && (r.series = [
1037
- E({ config: r, xAxisField: e, aggregationType: a, layerInfo: n, commonStrings: o })
806
+ if (d === 0 && (r.series = [
807
+ P({ config: r, xAxisField: e, aggregationType: a, layerInfo: l, commonStrings: n })
1038
808
  ]), r.series.forEach((g) => {
1039
809
  g.x = e, g.query !== void 0 && (g.query.groupByFieldsForStatistics = [e]);
1040
- }), i === "" || s.length > 1 ? he({
810
+ }), s === "" || i.length > 1 ? xe({
1041
811
  fieldName: e,
1042
- numericFields: s,
1043
- fieldList: c
1044
- }) ? r.series = Ht({
812
+ numericFields: i,
813
+ fieldList: o
814
+ }) ? r.series = Dt({
1045
815
  config: r,
1046
- layerInfo: n,
816
+ layerInfo: l,
1047
817
  xAxisField: e,
1048
- numericFields: s,
818
+ numericFields: i,
1049
819
  aggregationType: a,
1050
- commonStrings: o
1051
- }) : r.series = we({
820
+ commonStrings: n
821
+ }) : r.series = Be({
1052
822
  config: r,
1053
- layerInfo: n,
823
+ layerInfo: l,
1054
824
  xAxisField: e,
1055
- numericFields: s,
825
+ numericFields: i,
1056
826
  aggregationType: a,
1057
- commonStrings: o
1058
- }) : (await Promise.resolve(), r.series = await Gt({
827
+ commonStrings: n
828
+ }) : (await Promise.resolve(), r.series = await kt({
1059
829
  config: r,
1060
- layerInfo: n,
1061
- splitByField: i,
830
+ layerInfo: l,
831
+ splitByField: s,
1062
832
  xAxisField: e,
1063
- numericFields: s,
833
+ numericFields: i,
1064
834
  aggregationType: a,
1065
- commonStrings: o
1066
- })), m) {
1067
- const g = L(c, e);
1068
- W(r, 0, g);
835
+ commonStrings: n
836
+ })), x) {
837
+ const g = N(o, e);
838
+ G(r, 0, g);
1069
839
  }
1070
- if (x) {
1071
- const g = be({
840
+ if (S) {
841
+ const g = fe({
1072
842
  config: r,
1073
- layerInfo: n,
1074
- commonStrings: o,
1075
- numericFields: s,
843
+ layerInfo: l,
844
+ commonStrings: n,
845
+ numericFields: i,
1076
846
  aggregationType: a
1077
847
  });
1078
- W(r, 1, g);
848
+ G(r, 1, g);
1079
849
  }
1080
- if (r.title && d && (r.title.content.text = Ne(r, n, o)), F({ config: r, value: null, axisIndex: 1, isMax: !1 }), F({ config: r, value: null, axisIndex: 1, isMax: !0 }), zt({ numericFields: s, aggregationType: a, config: r, layerInfo: n }), S || p) {
1081
- F({ config: r, value: null, axisIndex: 0, isMax: !1 }), F({ config: r, value: null, axisIndex: 0, isMax: !0 }), Ce(0, r);
1082
- const g = f?.type === P.DateAxisFormat ? z.Null : z.Interpolate;
1083
- Rt(g, r);
850
+ if (r.title && c && (r.title.content.text = be(r, l, n)), b({ config: r, value: null, axisIndex: 1, isMax: !1 }), b({ config: r, value: null, axisIndex: 1, isMax: !0 }), Ot({ numericFields: i, aggregationType: a, config: r, layerInfo: l }), m || p) {
851
+ b({ config: r, value: null, axisIndex: 0, isMax: !1 }), b({ config: r, value: null, axisIndex: 0, isMax: !0 }), Te(0, r);
852
+ const g = y?.type === M.DateAxisFormat ? H.Null : H.Interpolate;
853
+ Ct(g, r);
1084
854
  }
1085
- }, ea = (t) => {
1086
- const { config: e, seriesIndex: i, layerInfo: s, commonStrings: a } = t, r = e.series?.[i], n = _(e);
1087
- let o;
1088
- if (K(e.series) === q.BarAndLineFromFields)
1089
- o = a.axisLabels.values;
1090
- else if (Ee(n)) {
1091
- const l = r.query?.outStatistics?.[0]?.onStatisticField;
1092
- l !== void 0 && l !== D(s.layer).idField && (o = L(s.layerFieldsInfo, l));
855
+ }, Pi = (t) => {
856
+ const { config: e, seriesIndex: s, layerInfo: i, commonStrings: a } = t, r = e.series?.[s], l = X(e);
857
+ let n;
858
+ if (j(e.series) === q.BarAndLineFromFields)
859
+ n = a.axisLabels.values;
860
+ else if (Ve(l)) {
861
+ const d = r.query?.outStatistics?.[0]?.onStatisticField;
862
+ d !== void 0 && d !== K(i.layer).idField && (n = N(i.layerFieldsInfo, d));
1093
863
  } else {
1094
- const l = String(Ve(r)).trim().replace(/'/gu, ""), y = {
1095
- fieldName: _(e),
1096
- fieldValueToMatch: l ?? "",
1097
- subtypeInfo: ee(s.layer),
1098
- fieldList: s.layerFieldsInfo
864
+ const d = String(he(r)).trim().replace(/'/gu, ""), f = {
865
+ fieldName: X(e),
866
+ fieldValueToMatch: d ?? "",
867
+ subtypeInfo: ce(i.layer),
868
+ fieldList: i.layerFieldsInfo
1099
869
  };
1100
- o = te(y) ?? l;
870
+ n = ue(f) ?? d;
1101
871
  }
1102
- return o ?? r.id;
1103
- }, ta = (t, e) => {
1104
- if (me(e))
1105
- Qt(t, e);
872
+ return n ?? r.id;
873
+ }, Ri = (t, e) => {
874
+ if (ye(e))
875
+ wt(t, e);
1106
876
  else {
1107
877
  e.orderOptions ??= {};
1108
- const i = e.orderOptions?.data?.orderType;
1109
- Z(e)[0] === J.customSort && i === b.Category && (e.orderOptions.data = {
1110
- orderType: b.Category,
878
+ const s = e.orderOptions?.data?.orderType;
879
+ Z(e)[0] === Q.customSort && s === F.Category && (e.orderOptions.data = {
880
+ orderType: F.Category,
1111
881
  orderBy: [...t]
1112
882
  });
1113
883
  }
1114
- }, ia = async (t, e) => {
1115
- const i = X(t), s = ve(t)?.type, a = ae(t), r = K(t.series);
1116
- let n = [];
1117
- return s === P.CategoryAxisFormat && (r === q.BarAndLineFromFields || i === j ? n = a.map((o) => L(e?.layerFieldsInfo, o)) : i.trim() !== "" && i !== j && e !== void 0 && (n = await At({
884
+ }, Ei = async (t, e) => {
885
+ const s = E(t), i = me(t)?.type, a = se(t), r = j(t.series);
886
+ let l = [];
887
+ return i === M.CategoryAxisFormat && (r === q.BarAndLineFromFields || s === W ? l = a.map((n) => N(e?.layerFieldsInfo, n)) : s.trim() !== "" && s !== W && e !== void 0 && (l = await nt({
1118
888
  layerInfo: e,
1119
889
  config: t,
1120
- category: i
1121
- }))), n;
890
+ category: s
891
+ }))), l;
1122
892
  };
1123
- function Jt(t, e, i) {
1124
- const s = Ne(t, e, i), a = Be(t), r = $(t);
1125
- return s === a || r;
893
+ function Mt(t, e, s) {
894
+ const i = be(t, e, s), a = Se(t), r = Y(t);
895
+ return i === a || r;
1126
896
  }
1127
- function Zt(t, e, i) {
1128
- const s = be({
897
+ function Pt(t, e, s) {
898
+ const i = fe({
1129
899
  config: t,
1130
900
  layerInfo: e,
1131
- commonStrings: i,
1132
- numericFields: ae(t),
1133
- aggregationType: Oe(t)
1134
- }), a = k(1, t), r = $(t);
1135
- return s === a || r;
901
+ commonStrings: s,
902
+ numericFields: se(t),
903
+ aggregationType: Ce(t)
904
+ }), a = U(1, t), r = Y(t);
905
+ return i === a || r;
1136
906
  }
1137
- function ei(t, e) {
1138
- const i = L(e.layerFieldsInfo, X(t)), s = k(0, t), a = $(t);
1139
- return i === s || a;
907
+ function Rt(t, e) {
908
+ const s = N(e.layerFieldsInfo, E(t)), i = U(0, t), a = Y(t);
909
+ return s === i || a;
1140
910
  }
1141
- function sa(t) {
911
+ function $i(t) {
1142
912
  return t.series[0]?.binTemporalData ?? !1;
1143
913
  }
1144
- function aa(t, e) {
1145
- e?.series.forEach((i) => {
1146
- (i?.type === P.BarSeries || i?.type === P.LineSeries) && (i.binTemporalData = t, t ? i.temporalBinning = {
1147
- unit: H.Day,
914
+ function Wi(t, e) {
915
+ e?.series.forEach((s) => {
916
+ (s?.type === M.BarSeries || s?.type === M.LineSeries) && (s.binTemporalData = t, t ? s.temporalBinning = {
917
+ unit: z.Day,
1148
918
  size: 0,
1149
- timeAggregationType: Xe.Start,
919
+ timeAggregationType: Oe.Start,
1150
920
  trimIncompleteTimeInterval: !0,
1151
- nullPolicy: z.Null
1152
- } : delete i.temporalBinning);
921
+ nullPolicy: H.Null
922
+ } : delete s.temporalBinning);
1153
923
  });
1154
924
  }
1155
925
  export {
1156
- qt as $,
1157
- Ps as A,
1158
- qs as B,
1159
- se as C,
1160
- vs as D,
1161
- Bs as E,
1162
- Ms as F,
1163
- Ds as G,
1164
- Es as H,
1165
- Us as I,
1166
- Ls as J,
1167
- Cs as K,
1168
- Ns as L,
1169
- Is as M,
1170
- Xs as N,
1171
- ks as O,
1172
- js as P,
1173
- Ws as Q,
1174
- $s as R,
1175
- Rs as S,
1176
- _s as T,
1177
- Ys as U,
1178
- Ks as V,
1179
- Qs as W,
1180
- zs as X,
1181
- Hs as Y,
1182
- Gs as Z,
1183
- Js as _,
1184
- k as a,
1185
- ve as a0,
1186
- At as a1,
1187
- vt as a2,
1188
- Tt as a3,
1189
- ce as a4,
1190
- wt as a5,
1191
- xs as a6,
1192
- ys as a7,
1193
- zi as a8,
1194
- Ji as a9,
1195
- Hi as aA,
1196
- Gi as aB,
1197
- Mi as aC,
1198
- Ui as aD,
1199
- Ei as aE,
1200
- Ri as aF,
1201
- $i as aG,
1202
- is as aH,
1203
- ss as aI,
1204
- as as aJ,
1205
- rs as aK,
1206
- ns as aL,
1207
- os as aM,
1208
- cs as aN,
1209
- ds as aO,
1210
- us as aP,
1211
- Ts as aQ,
1212
- bs as aR,
1213
- Fs as aS,
1214
- Ss as aT,
1215
- hs as aU,
1216
- Ie as aV,
1217
- Zi as aa,
1218
- es as ab,
1219
- ts as ac,
1220
- qi as ad,
1221
- Pi as ae,
1222
- Xi as af,
1223
- ki as ag,
1224
- ji as ah,
1225
- Wi as ai,
1226
- _i as aj,
1227
- Yi as ak,
1228
- Pt as al,
1229
- Ce as am,
1230
- Dt as an,
1231
- gs as ao,
1232
- Mt as ap,
1233
- fs as aq,
1234
- Ut as ar,
1235
- ps as as,
1236
- Et as at,
1237
- Rt as au,
1238
- ms as av,
1239
- Di as aw,
1240
- Ki as ax,
1241
- Qi as ay,
1242
- ls as az,
1243
- be as b,
1244
- ea as c,
1245
- wi as d,
1246
- Oi as e,
1247
- Z as f,
1248
- Be as g,
1249
- ia as h,
1250
- Vi as i,
1251
- ta as j,
1252
- sa as k,
1253
- aa as l,
1254
- Lt as m,
1255
- Oe as n,
1256
- _ as o,
1257
- ae as p,
1258
- Zs as q,
1259
- Ne as r,
1260
- F as s,
1261
- Yt as t,
1262
- W as u,
1263
- As as v,
1264
- Kt as w,
1265
- Vs as x,
1266
- ws as y,
1267
- Os as z
926
+ ft as $,
927
+ Zs as A,
928
+ Js as B,
929
+ ci as C,
930
+ di as D,
931
+ yi as E,
932
+ ui as F,
933
+ ti as G,
934
+ ei as H,
935
+ ii as I,
936
+ si as J,
937
+ mi as K,
938
+ fi as L,
939
+ xi as M,
940
+ Si as N,
941
+ pi as O,
942
+ gi as P,
943
+ Ti as Q,
944
+ Fi as R,
945
+ bi as S,
946
+ hi as T,
947
+ Ci as U,
948
+ Bi as V,
949
+ Ai as W,
950
+ vi as X,
951
+ Li as Y,
952
+ Ii as Z,
953
+ xt as _,
954
+ U as a,
955
+ Us as a0,
956
+ Ws as a1,
957
+ Bs as a2,
958
+ Ls as a3,
959
+ Is as a4,
960
+ Vs as a5,
961
+ qs as a6,
962
+ fs as a7,
963
+ xs as a8,
964
+ Ss as a9,
965
+ Es as aA,
966
+ $s as aB,
967
+ Gs as aC,
968
+ Qs as aD,
969
+ zs as aE,
970
+ _s as aF,
971
+ Hs as aG,
972
+ Bt as aH,
973
+ Ts as aa,
974
+ Fs as ab,
975
+ bs as ac,
976
+ St as ad,
977
+ Te as ae,
978
+ Tt as af,
979
+ Xs as ag,
980
+ Ft as ah,
981
+ js as ai,
982
+ bt as aj,
983
+ Ys as ak,
984
+ ht as al,
985
+ Ct as am,
986
+ Ks as an,
987
+ hs as ao,
988
+ Cs as ap,
989
+ Ps as aq,
990
+ As as ar,
991
+ vs as as,
992
+ Ns as at,
993
+ ws as au,
994
+ Os as av,
995
+ Ds as aw,
996
+ ks as ax,
997
+ Ms as ay,
998
+ Rs as az,
999
+ Pi as b,
1000
+ Z as c,
1001
+ Ei as d,
1002
+ $i as e,
1003
+ Wi as f,
1004
+ Se as g,
1005
+ Ce as h,
1006
+ X as i,
1007
+ se as j,
1008
+ Mi as k,
1009
+ be as l,
1010
+ Vi as m,
1011
+ Nt as n,
1012
+ ai as o,
1013
+ qi as p,
1014
+ Ni as q,
1015
+ li as r,
1016
+ Ri as s,
1017
+ ri as t,
1018
+ oi as u,
1019
+ ni as v,
1020
+ wi as w,
1021
+ Oi as x,
1022
+ Di as y,
1023
+ ki as z
1268
1024
  };