@geoscene/charts-components 5.0.19

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 (547) hide show
  1. package/LICENSE.md +18 -0
  2. package/README.md +15 -0
  3. package/dist/cdn/27RSUS44.js +499 -0
  4. package/dist/cdn/2ABIWUBP.js +168 -0
  5. package/dist/cdn/2FLUZ2DU.js +44 -0
  6. package/dist/cdn/2H7DJUUG.js +217 -0
  7. package/dist/cdn/2UIJDI4B.js +110 -0
  8. package/dist/cdn/2WSVTAF5.js +155 -0
  9. package/dist/cdn/2ZYMR3QH.js +469 -0
  10. package/dist/cdn/346SLSRB.js +117 -0
  11. package/dist/cdn/34GIQYIH.js +1000 -0
  12. package/dist/cdn/3DEMDCI6.js +176 -0
  13. package/dist/cdn/3PHU76K7.js +162 -0
  14. package/dist/cdn/3RSCQLEZ.js +376 -0
  15. package/dist/cdn/3SM7FV35.js +217 -0
  16. package/dist/cdn/3SYE47CU.js +157 -0
  17. package/dist/cdn/42A4L2UB.js +209 -0
  18. package/dist/cdn/43OZVJ43.js +10 -0
  19. package/dist/cdn/45AJBAFE.js +480 -0
  20. package/dist/cdn/4B3QBH5T.js +2440 -0
  21. package/dist/cdn/4HJDWMQ2.js +255 -0
  22. package/dist/cdn/4UCPYNHM.js +217 -0
  23. package/dist/cdn/4ZN5TLRY.js +206 -0
  24. package/dist/cdn/53MWUIM5.js +208 -0
  25. package/dist/cdn/5752NFTR.js +228 -0
  26. package/dist/cdn/5AWSZZXY.js +165 -0
  27. package/dist/cdn/5FBGXF7O.js +508 -0
  28. package/dist/cdn/5FW4PWIO.js +217 -0
  29. package/dist/cdn/5RNNVK4R.js +161 -0
  30. package/dist/cdn/6NZDPYGF.js +187 -0
  31. package/dist/cdn/6PBHDFIO.js +209 -0
  32. package/dist/cdn/7I5Y5NSS.js +82 -0
  33. package/dist/cdn/7IUSVOKT.js +119 -0
  34. package/dist/cdn/7XITED6J.js +216 -0
  35. package/dist/cdn/A6QBN7CC.js +45 -0
  36. package/dist/cdn/A7YNU2NS.js +34090 -0
  37. package/dist/cdn/AENRD2JF.js +174 -0
  38. package/dist/cdn/AHWBG4EN.js +170 -0
  39. package/dist/cdn/AQMOKQMS.js +97 -0
  40. package/dist/cdn/AULQDYOE.js +286 -0
  41. package/dist/cdn/BB25YSSU.js +273 -0
  42. package/dist/cdn/BBHUZEFF.js +217 -0
  43. package/dist/cdn/BY6OCNJ5.js +203 -0
  44. package/dist/cdn/BZA7GDEH.js +281 -0
  45. package/dist/cdn/CCRQK5DN.js +377 -0
  46. package/dist/cdn/CFQFRB3N.js +154 -0
  47. package/dist/cdn/CUT7ZZEN.js +211 -0
  48. package/dist/cdn/D24YASGK.js +241 -0
  49. package/dist/cdn/D4XT7ZCD.js +78 -0
  50. package/dist/cdn/D57WSEYW.js +65954 -0
  51. package/dist/cdn/D7VH5WCI.js +97 -0
  52. package/dist/cdn/DKENL7TV.js +72 -0
  53. package/dist/cdn/DP4BNWU2.js +442 -0
  54. package/dist/cdn/DPJE33GY.js +111 -0
  55. package/dist/cdn/DPXJFQDJ.js +34 -0
  56. package/dist/cdn/DVTRF3NE.js +498 -0
  57. package/dist/cdn/ED7V65WK.js +471 -0
  58. package/dist/cdn/EEARIV73.js +211 -0
  59. package/dist/cdn/EI4BBWXF.js +365 -0
  60. package/dist/cdn/EKW43NKP.js +211 -0
  61. package/dist/cdn/EKZC6UDI.js +219 -0
  62. package/dist/cdn/EQYSD2NX.js +217 -0
  63. package/dist/cdn/F335AJAZ.js +220 -0
  64. package/dist/cdn/FEJD2JHY.js +15 -0
  65. package/dist/cdn/FHOCRXYD.js +116 -0
  66. package/dist/cdn/FKGSMYFL.js +414 -0
  67. package/dist/cdn/FL37YOHH.js +217 -0
  68. package/dist/cdn/FPSTP5OC.js +392 -0
  69. package/dist/cdn/FVY5LUI2.js +157 -0
  70. package/dist/cdn/FWWJZ3MJ.js +209 -0
  71. package/dist/cdn/FZD6CNIZ.js +399 -0
  72. package/dist/cdn/G4MCRK6N.js +162 -0
  73. package/dist/cdn/GTW3ZY2Z.js +159 -0
  74. package/dist/cdn/GWOR7UVC.js +124624 -0
  75. package/dist/cdn/HAGP76HP.js +16 -0
  76. package/dist/cdn/HB4IRXAE.js +72 -0
  77. package/dist/cdn/HM3YITGN.js +217 -0
  78. package/dist/cdn/HOC24MW7.js +151 -0
  79. package/dist/cdn/HZC3QJTN.js +105 -0
  80. package/dist/cdn/IARNAL5N.js +14375 -0
  81. package/dist/cdn/IER7B77G.js +209 -0
  82. package/dist/cdn/IHRGRUHQ.js +130 -0
  83. package/dist/cdn/IJKPLGK6.js +141 -0
  84. package/dist/cdn/IJUDK7C2.js +209 -0
  85. package/dist/cdn/IMTYQFPL.js +36 -0
  86. package/dist/cdn/ISWZQ6CS.js +1163 -0
  87. package/dist/cdn/IUTE24ZY.js +13 -0
  88. package/dist/cdn/IYO5SQDL.js +99 -0
  89. package/dist/cdn/J436GCGB.js +217 -0
  90. package/dist/cdn/J7TZPMJS.js +55 -0
  91. package/dist/cdn/JADN2A6V.js +209 -0
  92. package/dist/cdn/JGALBLLO.js +30326 -0
  93. package/dist/cdn/JP64Q3GB.js +209 -0
  94. package/dist/cdn/JRIDQN35.js +215 -0
  95. package/dist/cdn/JRXMYWDW.js +135 -0
  96. package/dist/cdn/JS32MHPQ.js +217 -0
  97. package/dist/cdn/K3EUYISB.js +217 -0
  98. package/dist/cdn/K7DZU3S3.js +209 -0
  99. package/dist/cdn/KB7UF3HK.js +89 -0
  100. package/dist/cdn/KJHME2ZX.js +31 -0
  101. package/dist/cdn/KM2WGERQ.js +625 -0
  102. package/dist/cdn/KP4ZXQIA.js +104 -0
  103. package/dist/cdn/KPQTJ2HD.js +642 -0
  104. package/dist/cdn/KPZUTGHH.js +630 -0
  105. package/dist/cdn/KRZ433BT.js +2106 -0
  106. package/dist/cdn/KUVOINJC.js +81 -0
  107. package/dist/cdn/KYALHV7T.js +209 -0
  108. package/dist/cdn/KZCTMPJT.js +209 -0
  109. package/dist/cdn/L2JT5DRD.js +706 -0
  110. package/dist/cdn/LCDVPNSE.js +13 -0
  111. package/dist/cdn/LMCXUA7Q.js +10 -0
  112. package/dist/cdn/LN5565XO.js +52 -0
  113. package/dist/cdn/LZPEOYIX.js +98 -0
  114. package/dist/cdn/ML4GGRP6.js +570 -0
  115. package/dist/cdn/MMTB6DEH.js +209 -0
  116. package/dist/cdn/MSXA6BCJ.js +207 -0
  117. package/dist/cdn/NII7T2C6.js +179 -0
  118. package/dist/cdn/NKG4FLLR.js +165 -0
  119. package/dist/cdn/NSSG3EFV.js +48 -0
  120. package/dist/cdn/OBMBMKLH.js +327 -0
  121. package/dist/cdn/OIKTWYMH.js +157 -0
  122. package/dist/cdn/OR4HXHSY.js +41 -0
  123. package/dist/cdn/P4UNBBUE.js +82 -0
  124. package/dist/cdn/P5SSZWMH.js +309 -0
  125. package/dist/cdn/P6IDPIZS.js +211 -0
  126. package/dist/cdn/P7VOZE67.js +296 -0
  127. package/dist/cdn/PJRXBEGZ.js +178 -0
  128. package/dist/cdn/PNEIQAP5.js +217 -0
  129. package/dist/cdn/PWVXLHJ5.js +217 -0
  130. package/dist/cdn/QB7LODVK.js +684 -0
  131. package/dist/cdn/QEF5BUC3.js +10 -0
  132. package/dist/cdn/QFD6CUH6.js +30326 -0
  133. package/dist/cdn/QH6BI7FG.js +217 -0
  134. package/dist/cdn/QOI7NT7O.js +219 -0
  135. package/dist/cdn/QWWC6FN5.js +536 -0
  136. package/dist/cdn/QXU67LZR.js +155 -0
  137. package/dist/cdn/QYYAUYYC.js +112 -0
  138. package/dist/cdn/R6TDL23L.js +209 -0
  139. package/dist/cdn/RF5DZ4IV.js +191 -0
  140. package/dist/cdn/S4AW3T6V.js +224 -0
  141. package/dist/cdn/S565TLQY.js +196 -0
  142. package/dist/cdn/SMF5WZQN.js +209 -0
  143. package/dist/cdn/SON2ID5T.js +219 -0
  144. package/dist/cdn/SQV437VB.js +215 -0
  145. package/dist/cdn/T27VVYVB.js +157 -0
  146. package/dist/cdn/TAAITYOS.js +198 -0
  147. package/dist/cdn/TABYE4TB.js +217 -0
  148. package/dist/cdn/TB7WEW23.js +209 -0
  149. package/dist/cdn/TJ5UK25V.js +9 -0
  150. package/dist/cdn/TJ65PNGP.js +165 -0
  151. package/dist/cdn/TMANAKTG.js +591 -0
  152. package/dist/cdn/U4PUZ7GN.js +162 -0
  153. package/dist/cdn/U7SAWP3S.js +209 -0
  154. package/dist/cdn/UCCVQZDR.js +9 -0
  155. package/dist/cdn/UG7LOBJE.js +85 -0
  156. package/dist/cdn/UKOVO7VE.js +186 -0
  157. package/dist/cdn/ULFF36NB.js +178 -0
  158. package/dist/cdn/UNHONDOG.js +31 -0
  159. package/dist/cdn/UPIJ2RYA.js +219 -0
  160. package/dist/cdn/UTRIB3ZD.js +162 -0
  161. package/dist/cdn/V2OPADQU.js +696 -0
  162. package/dist/cdn/V3CSEWPF.js +487 -0
  163. package/dist/cdn/VAB3BCTX.js +133 -0
  164. package/dist/cdn/VE5YTXK3.js +226 -0
  165. package/dist/cdn/VGRQ5KGN.js +13 -0
  166. package/dist/cdn/VGRXIFGH.js +473 -0
  167. package/dist/cdn/VPNOON73.js +6242 -0
  168. package/dist/cdn/VQMZEOOE.js +711 -0
  169. package/dist/cdn/VTOYBMVV.js +230 -0
  170. package/dist/cdn/W2ZT3M5X.js +477 -0
  171. package/dist/cdn/WKARMQOX.js +416 -0
  172. package/dist/cdn/WSH74NNB.js +184 -0
  173. package/dist/cdn/X2UNNQPA.js +209 -0
  174. package/dist/cdn/X5VZ6AC5.js +209 -0
  175. package/dist/cdn/XFRW44O2.js +209 -0
  176. package/dist/cdn/XLDY6CTA.js +142 -0
  177. package/dist/cdn/XNEK46GJ.js +230 -0
  178. package/dist/cdn/XOBTD5MM.js +371 -0
  179. package/dist/cdn/XQXY7DRO.js +268 -0
  180. package/dist/cdn/XZG6TRNQ.js +163 -0
  181. package/dist/cdn/XZQIXM6A.js +157 -0
  182. package/dist/cdn/Y56PEINI.js +217 -0
  183. package/dist/cdn/Y5VXYUPT.js +217 -0
  184. package/dist/cdn/YEXVZE6D.js +173 -0
  185. package/dist/cdn/YIZBXVJZ.js +493 -0
  186. package/dist/cdn/YOQQ22ZG.js +209 -0
  187. package/dist/cdn/YYJQDF23.js +35 -0
  188. package/dist/cdn/Z7HL2BUP.js +283 -0
  189. package/dist/cdn/ZAGKTJNS.js +209 -0
  190. package/dist/cdn/ZBU6PQPJ.js +340 -0
  191. package/dist/cdn/ZEG4LDOE.js +198 -0
  192. package/dist/cdn/ZEPS5UGU.js +238 -0
  193. package/dist/cdn/ZLQXY2BV.js +35 -0
  194. package/dist/cdn/ZLRKGGOO.js +1414 -0
  195. package/dist/cdn/ZQY74JM4.js +135 -0
  196. package/dist/cdn/ZTNIHU2P.js +137 -0
  197. package/dist/cdn/assets/chart/t9n/messages.zh-CN.json +1 -0
  198. package/dist/cdn/assets/charts-action-bar/t9n/messages.zh-CN.json +1 -0
  199. package/dist/cdn/assets/charts-config-axes/t9n/messages.zh-CN.json +1 -0
  200. package/dist/cdn/assets/charts-config-axis/t9n/messages.zh-CN.json +1 -0
  201. package/dist/cdn/assets/charts-config-bar-chart-data/t9n/messages.zh-CN.json +1 -0
  202. package/dist/cdn/assets/charts-config-bar-chart-popover/t9n/messages.zh-CN.json +1 -0
  203. package/dist/cdn/assets/charts-config-bar-chart-series/t9n/messages.zh-CN.json +1 -0
  204. package/dist/cdn/assets/charts-config-bar-chart-series-popover/t9n/messages.zh-CN.json +1 -0
  205. package/dist/cdn/assets/charts-config-box-plot-data/t9n/messages.zh-CN.json +1 -0
  206. package/dist/cdn/assets/charts-config-box-plot-popover/t9n/messages.zh-CN.json +1 -0
  207. package/dist/cdn/assets/charts-config-box-plot-series/t9n/messages.zh-CN.json +1 -0
  208. package/dist/cdn/assets/charts-config-box-plot-series-popover/t9n/messages.zh-CN.json +1 -0
  209. package/dist/cdn/assets/charts-config-category-format/t9n/messages.zh-CN.json +1 -0
  210. package/dist/cdn/assets/charts-config-chart-rename-popover/t9n/messages.zh-CN.json +1 -0
  211. package/dist/cdn/assets/charts-config-color-style/t9n/messages.zh-CN.json +1 -0
  212. package/dist/cdn/assets/charts-config-colors/t9n/messages.zh-CN.json +1 -0
  213. package/dist/cdn/assets/charts-config-create-flow/t9n/messages.zh-CN.json +1 -0
  214. package/dist/cdn/assets/charts-config-font-style/t9n/messages.zh-CN.json +1 -0
  215. package/dist/cdn/assets/charts-config-format/t9n/messages.zh-CN.json +1 -0
  216. package/dist/cdn/assets/charts-config-format-popover/t9n/messages.zh-CN.json +1 -0
  217. package/dist/cdn/assets/charts-config-general/t9n/messages.zh-CN.json +1 -0
  218. package/dist/cdn/assets/charts-config-guide/t9n/messages.zh-CN.json +1 -0
  219. package/dist/cdn/assets/charts-config-guide-popover/t9n/messages.zh-CN.json +1 -0
  220. package/dist/cdn/assets/charts-config-guides/t9n/messages.zh-CN.json +1 -0
  221. package/dist/cdn/assets/charts-config-guides-type-popover/t9n/messages.zh-CN.json +1 -0
  222. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.zh-CN.json +1 -0
  223. package/dist/cdn/assets/charts-config-heat-chart-popover/t9n/messages.zh-CN.json +1 -0
  224. package/dist/cdn/assets/charts-config-histogram-data/t9n/messages.zh-CN.json +1 -0
  225. package/dist/cdn/assets/charts-config-histogram-popover/t9n/messages.zh-CN.json +1 -0
  226. package/dist/cdn/assets/charts-config-line-chart-data/t9n/messages.zh-CN.json +1 -0
  227. package/dist/cdn/assets/charts-config-line-chart-popover/t9n/messages.zh-CN.json +1 -0
  228. package/dist/cdn/assets/charts-config-line-chart-series/t9n/messages.zh-CN.json +1 -0
  229. package/dist/cdn/assets/charts-config-line-chart-series-popover/t9n/messages.zh-CN.json +1 -0
  230. package/dist/cdn/assets/charts-config-line-style/t9n/messages.zh-CN.json +1 -0
  231. package/dist/cdn/assets/charts-config-number-format/t9n/messages.zh-CN.json +1 -0
  232. package/dist/cdn/assets/charts-config-pie-chart-data/t9n/messages.zh-CN.json +1 -0
  233. package/dist/cdn/assets/charts-config-pie-chart-popover/t9n/messages.zh-CN.json +1 -0
  234. package/dist/cdn/assets/charts-config-pie-chart-slices/t9n/messages.zh-CN.json +1 -0
  235. package/dist/cdn/assets/charts-config-pie-chart-slices-popover/t9n/messages.zh-CN.json +1 -0
  236. package/dist/cdn/assets/charts-config-scatter-plot-data/t9n/messages.zh-CN.json +1 -0
  237. package/dist/cdn/assets/charts-config-scatter-plot-popover/t9n/messages.zh-CN.json +1 -0
  238. package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.zh-CN.json +1 -0
  239. package/dist/cdn/assets/charts-config-view-charts/t9n/messages.zh-CN.json +1 -0
  240. package/dist/cdn/assets/common/t9n/messages.zh-CN.json +1 -0
  241. package/dist/cdn/assets/styles/_common.scss +257 -0
  242. package/dist/cdn/assets/styles/_layout.scss +10 -0
  243. package/dist/cdn/assets/styles/resources.ts +7 -0
  244. package/dist/cdn/assets/styles/variables.scss +41 -0
  245. package/dist/cdn/index.js +256 -0
  246. package/dist/cdn/main.css +1 -0
  247. package/dist/chart-rendering/common/interfaces.d.ts +367 -0
  248. package/dist/chunks/action-bar-utils.js +206 -0
  249. package/dist/chunks/axis-lines-symbol.js +98 -0
  250. package/dist/chunks/axis-model-wrapper.js +37 -0
  251. package/dist/chunks/bar-chart-model.js +150 -0
  252. package/dist/chunks/bar-chart-series.js +41 -0
  253. package/dist/chunks/bg_BG.js +8 -0
  254. package/dist/chunks/bg_BG2.js +8 -0
  255. package/dist/chunks/box-plot-data.js +757 -0
  256. package/dist/chunks/box-plot-model.js +473 -0
  257. package/dist/chunks/chart-model.js +595 -0
  258. package/dist/chunks/chart-ui-utils.js +93 -0
  259. package/dist/chunks/chart-ui-utils2.js +232 -0
  260. package/dist/chunks/class-breaks.js +370 -0
  261. package/dist/chunks/combo-bar-line-chart-model.js +299 -0
  262. package/dist/chunks/common.js +106 -0
  263. package/dist/chunks/data-labels-symbol.js +42 -0
  264. package/dist/chunks/data.js +195 -0
  265. package/dist/chunks/default.js +16 -0
  266. package/dist/chunks/gauge-model.js +489 -0
  267. package/dist/chunks/generate-x-axis-title.js +98 -0
  268. package/dist/chunks/heat-chart-model.js +483 -0
  269. package/dist/chunks/histogram-data.js +196 -0
  270. package/dist/chunks/histogram-model.js +228 -0
  271. package/dist/chunks/index.js +23574 -0
  272. package/dist/chunks/index2.js +1099 -0
  273. package/dist/chunks/index3.js +279 -0
  274. package/dist/chunks/index4.js +98 -0
  275. package/dist/chunks/index5.js +76 -0
  276. package/dist/chunks/interfaces.js +123 -0
  277. package/dist/chunks/line-chart-model.js +134 -0
  278. package/dist/chunks/model-setter.js +162 -0
  279. package/dist/chunks/model-with-guides.js +330 -0
  280. package/dist/chunks/model-with-line-marker-styling.js +178 -0
  281. package/dist/chunks/model-with-tooltips.js +318 -0
  282. package/dist/chunks/model-with-x-guides.js +45 -0
  283. package/dist/chunks/model-with-y-guides.js +656 -0
  284. package/dist/chunks/negative-values-stacked-to-baseline.js +157 -0
  285. package/dist/chunks/pie-chart-data.js +473 -0
  286. package/dist/chunks/pie-chart-model.js +884 -0
  287. package/dist/chunks/popover-ui-utils.js +15 -0
  288. package/dist/chunks/radar-chart-model.js +157 -0
  289. package/dist/chunks/resource.js +14 -0
  290. package/dist/chunks/resources.js +13 -0
  291. package/dist/chunks/rest-js-object-literals.js +112 -0
  292. package/dist/chunks/rotated-state.js +54 -0
  293. package/dist/chunks/runtime.js +19 -0
  294. package/dist/chunks/scatterplot-model.js +350 -0
  295. package/dist/chunks/serial-chart-data.js +1446 -0
  296. package/dist/chunks/serial-chart-model.js +587 -0
  297. package/dist/chunks/series-length.js +81 -0
  298. package/dist/chunks/series-types.js +249 -0
  299. package/dist/chunks/series.js +36 -0
  300. package/dist/chunks/setup-utils.js +87 -0
  301. package/dist/chunks/sk_SK.js +8 -0
  302. package/dist/chunks/store.js +35 -0
  303. package/dist/chunks/type-guards.js +156 -0
  304. package/dist/chunks/useT9n.js +5 -0
  305. package/dist/chunks/utils.js +308 -0
  306. package/dist/chunks/utils2.js +85 -0
  307. package/dist/chunks/web-component-utils.js +634 -0
  308. package/dist/components/geoscene-chart/customElement.d.ts +1551 -0
  309. package/dist/components/geoscene-chart/customElement.js +27412 -0
  310. package/dist/components/geoscene-chart/index.d.ts +1 -0
  311. package/dist/components/geoscene-chart/index.js +3 -0
  312. package/dist/components/geoscene-charts-action-bar/customElement.d.ts +813 -0
  313. package/dist/components/geoscene-charts-action-bar/customElement.js +500 -0
  314. package/dist/components/geoscene-charts-action-bar/index.d.ts +1 -0
  315. package/dist/components/geoscene-charts-action-bar/index.js +7 -0
  316. package/dist/components/geoscene-charts-config-axes/customElement.js +72 -0
  317. package/dist/components/geoscene-charts-config-axes/index.js +2 -0
  318. package/dist/components/geoscene-charts-config-axis/customElement.js +382 -0
  319. package/dist/components/geoscene-charts-config-axis/index.js +9 -0
  320. package/dist/components/geoscene-charts-config-bar-chart/customElement.js +165 -0
  321. package/dist/components/geoscene-charts-config-bar-chart/index.js +7 -0
  322. package/dist/components/geoscene-charts-config-bar-chart-data/customElement.js +644 -0
  323. package/dist/components/geoscene-charts-config-bar-chart-data/index.js +12 -0
  324. package/dist/components/geoscene-charts-config-bar-chart-popover/customElement.js +454 -0
  325. package/dist/components/geoscene-charts-config-bar-chart-popover/index.js +13 -0
  326. package/dist/components/geoscene-charts-config-bar-chart-series/customElement.js +341 -0
  327. package/dist/components/geoscene-charts-config-bar-chart-series/index.js +7 -0
  328. package/dist/components/geoscene-charts-config-bar-chart-series-popover/customElement.js +125 -0
  329. package/dist/components/geoscene-charts-config-bar-chart-series-popover/index.js +6 -0
  330. package/dist/components/geoscene-charts-config-box-plot/customElement.js +160 -0
  331. package/dist/components/geoscene-charts-config-box-plot/index.js +7 -0
  332. package/dist/components/geoscene-charts-config-box-plot-data/customElement.js +456 -0
  333. package/dist/components/geoscene-charts-config-box-plot-data/index.js +10 -0
  334. package/dist/components/geoscene-charts-config-box-plot-popover/customElement.js +343 -0
  335. package/dist/components/geoscene-charts-config-box-plot-popover/index.js +8 -0
  336. package/dist/components/geoscene-charts-config-box-plot-series/customElement.js +394 -0
  337. package/dist/components/geoscene-charts-config-box-plot-series/index.js +7 -0
  338. package/dist/components/geoscene-charts-config-box-plot-series-popover/customElement.js +163 -0
  339. package/dist/components/geoscene-charts-config-box-plot-series-popover/index.js +7 -0
  340. package/dist/components/geoscene-charts-config-category-format/customElement.js +87 -0
  341. package/dist/components/geoscene-charts-config-category-format/index.js +3 -0
  342. package/dist/components/geoscene-charts-config-chart-rename-popover/customElement.js +143 -0
  343. package/dist/components/geoscene-charts-config-chart-rename-popover/index.js +7 -0
  344. package/dist/components/geoscene-charts-config-color-style/customElement.js +58 -0
  345. package/dist/components/geoscene-charts-config-color-style/index.js +3 -0
  346. package/dist/components/geoscene-charts-config-colors/customElement.js +73 -0
  347. package/dist/components/geoscene-charts-config-colors/index.js +3 -0
  348. package/dist/components/geoscene-charts-config-create-flow/customElement.js +929 -0
  349. package/dist/components/geoscene-charts-config-create-flow/index.js +15 -0
  350. package/dist/components/geoscene-charts-config-field-select/customElement.js +37 -0
  351. package/dist/components/geoscene-charts-config-field-select/index.js +2 -0
  352. package/dist/components/geoscene-charts-config-font-style/customElement.js +226 -0
  353. package/dist/components/geoscene-charts-config-font-style/index.js +9 -0
  354. package/dist/components/geoscene-charts-config-font-style/resource.d.ts +15 -0
  355. package/dist/components/geoscene-charts-config-format/customElement.js +485 -0
  356. package/dist/components/geoscene-charts-config-format/index.js +5 -0
  357. package/dist/components/geoscene-charts-config-format-popover/customElement.js +113 -0
  358. package/dist/components/geoscene-charts-config-format-popover/index.js +5 -0
  359. package/dist/components/geoscene-charts-config-general/customElement.js +328 -0
  360. package/dist/components/geoscene-charts-config-general/index.js +9 -0
  361. package/dist/components/geoscene-charts-config-guide/customElement.js +487 -0
  362. package/dist/components/geoscene-charts-config-guide/index.js +14 -0
  363. package/dist/components/geoscene-charts-config-guide/resource.d.ts +15 -0
  364. package/dist/components/geoscene-charts-config-guide-popover/customElement.js +111 -0
  365. package/dist/components/geoscene-charts-config-guide-popover/index.js +4 -0
  366. package/dist/components/geoscene-charts-config-guides/customElement.js +194 -0
  367. package/dist/components/geoscene-charts-config-guides/index.js +4 -0
  368. package/dist/components/geoscene-charts-config-guides-type-popover/customElement.js +100 -0
  369. package/dist/components/geoscene-charts-config-guides-type-popover/index.js +4 -0
  370. package/dist/components/geoscene-charts-config-heat-chart/customElement.js +114 -0
  371. package/dist/components/geoscene-charts-config-heat-chart/index.js +4 -0
  372. package/dist/components/geoscene-charts-config-heat-chart-data/customElement.js +701 -0
  373. package/dist/components/geoscene-charts-config-heat-chart-data/index.js +18 -0
  374. package/dist/components/geoscene-charts-config-heat-chart-popover/customElement.js +499 -0
  375. package/dist/components/geoscene-charts-config-heat-chart-popover/index.js +12 -0
  376. package/dist/components/geoscene-charts-config-histogram/customElement.js +137 -0
  377. package/dist/components/geoscene-charts-config-histogram/index.js +6 -0
  378. package/dist/components/geoscene-charts-config-histogram-data/customElement.js +612 -0
  379. package/dist/components/geoscene-charts-config-histogram-data/index.js +11 -0
  380. package/dist/components/geoscene-charts-config-histogram-popover/customElement.js +255 -0
  381. package/dist/components/geoscene-charts-config-histogram-popover/index.js +7 -0
  382. package/dist/components/geoscene-charts-config-invalid-input-message/customElement.js +31 -0
  383. package/dist/components/geoscene-charts-config-invalid-input-message/index.js +2 -0
  384. package/dist/components/geoscene-charts-config-line-chart/customElement.js +169 -0
  385. package/dist/components/geoscene-charts-config-line-chart/index.js +7 -0
  386. package/dist/components/geoscene-charts-config-line-chart-data/customElement.js +444 -0
  387. package/dist/components/geoscene-charts-config-line-chart-data/index.js +12 -0
  388. package/dist/components/geoscene-charts-config-line-chart-popover/customElement.js +357 -0
  389. package/dist/components/geoscene-charts-config-line-chart-popover/index.js +11 -0
  390. package/dist/components/geoscene-charts-config-line-chart-series/customElement.js +245 -0
  391. package/dist/components/geoscene-charts-config-line-chart-series/index.js +7 -0
  392. package/dist/components/geoscene-charts-config-line-chart-series-popover/customElement.js +216 -0
  393. package/dist/components/geoscene-charts-config-line-chart-series-popover/index.js +10 -0
  394. package/dist/components/geoscene-charts-config-line-style/customElement.js +159 -0
  395. package/dist/components/geoscene-charts-config-line-style/index.js +9 -0
  396. package/dist/components/geoscene-charts-config-number-format/customElement.js +102 -0
  397. package/dist/components/geoscene-charts-config-number-format/index.js +4 -0
  398. package/dist/components/geoscene-charts-config-pie-chart/customElement.js +164 -0
  399. package/dist/components/geoscene-charts-config-pie-chart/index.js +5 -0
  400. package/dist/components/geoscene-charts-config-pie-chart-data/customElement.js +258 -0
  401. package/dist/components/geoscene-charts-config-pie-chart-data/index.js +8 -0
  402. package/dist/components/geoscene-charts-config-pie-chart-popover/customElement.js +300 -0
  403. package/dist/components/geoscene-charts-config-pie-chart-popover/index.js +7 -0
  404. package/dist/components/geoscene-charts-config-pie-chart-slices/customElement.js +454 -0
  405. package/dist/components/geoscene-charts-config-pie-chart-slices/index.js +12 -0
  406. package/dist/components/geoscene-charts-config-pie-chart-slices-popover/customElement.js +126 -0
  407. package/dist/components/geoscene-charts-config-pie-chart-slices-popover/index.js +6 -0
  408. package/dist/components/geoscene-charts-config-scatter-plot/customElement.js +132 -0
  409. package/dist/components/geoscene-charts-config-scatter-plot/index.js +6 -0
  410. package/dist/components/geoscene-charts-config-scatter-plot-data/customElement.js +616 -0
  411. package/dist/components/geoscene-charts-config-scatter-plot-data/index.js +12 -0
  412. package/dist/components/geoscene-charts-config-scatter-plot-popover/customElement.js +198 -0
  413. package/dist/components/geoscene-charts-config-scatter-plot-popover/index.js +7 -0
  414. package/dist/components/geoscene-charts-config-select-chart-type-popover/customElement.js +148 -0
  415. package/dist/components/geoscene-charts-config-select-chart-type-popover/index.js +6 -0
  416. package/dist/components/geoscene-charts-config-view-charts/customElement.js +289 -0
  417. package/dist/components/geoscene-charts-config-view-charts/index.js +10 -0
  418. package/dist/components/geoscene-charts-info-modal/customElement.js +101 -0
  419. package/dist/components/geoscene-charts-info-modal/index.js +2 -0
  420. package/dist/docs/api.json +87068 -0
  421. package/dist/docs/docs.json +3082 -0
  422. package/dist/docs/vscode.css-custom-data.json +1 -0
  423. package/dist/docs/vscode.html-custom-data.json +519 -0
  424. package/dist/docs/web-types.json +1282 -0
  425. package/dist/index.d.ts +92 -0
  426. package/dist/index.js +812 -0
  427. package/dist/interfaces.d.ts +203 -0
  428. package/dist/json-schema/index.d.ts +8488 -0
  429. package/dist/loader.d.ts +2 -0
  430. package/dist/loader.js +332 -0
  431. package/dist/model/bar-chart-model/bar-chart-model.d.ts +51 -0
  432. package/dist/model/box-plot-model/box-plot-model.d.ts +177 -0
  433. package/dist/model/chart-model/chart-model-base.d.ts +34 -0
  434. package/dist/model/chart-model/chart-model.d.ts +28 -0
  435. package/dist/model/chart-model/utils/types.d.ts +10 -0
  436. package/dist/model/combo-bar-line-chart-model/combo-bar-line-chart-model.d.ts +189 -0
  437. package/dist/model/gauge-model/gauge-model.d.ts +103 -0
  438. package/dist/model/heat-chart-model/heat-chart-model.d.ts +224 -0
  439. package/dist/model/histogram-model/histogram-model.d.ts +75 -0
  440. package/dist/model/index.d.ts +18 -0
  441. package/dist/model/interfaces/chart-interfaces.d.ts +21 -0
  442. package/dist/model/interfaces/common.d.ts +172 -0
  443. package/dist/model/line-chart-model/line-chart-model.d.ts +20 -0
  444. package/dist/model/mixins/model-with-guides.d.ts +140 -0
  445. package/dist/model/mixins/model-with-legend.d.ts +22 -0
  446. package/dist/model/mixins/model-with-line-marker-styling.d.ts +139 -0
  447. package/dist/model/mixins/model-with-multi-axes.d.ts +307 -0
  448. package/dist/model/mixins/model-with-temporal-binning.d.ts +25 -0
  449. package/dist/model/mixins/model-with-tooltips.d.ts +36 -0
  450. package/dist/model/mixins/model-with-x-guides.d.ts +24 -0
  451. package/dist/model/mixins/model-with-y-guides.d.ts +24 -0
  452. package/dist/model/pie-chart-model/pie-chart-legend-model.d.ts +56 -0
  453. package/dist/model/pie-chart-model/pie-chart-model.d.ts +199 -0
  454. package/dist/model/properties/axes/axis-labels-symbol.d.ts +8 -0
  455. package/dist/model/properties/axes/axis-lines-symbol.d.ts +8 -0
  456. package/dist/model/properties/axes/x-axis/generate-x-axis-title.d.ts +7 -0
  457. package/dist/model/properties/axes/x-axis/max-x-bound.d.ts +11 -0
  458. package/dist/model/properties/axes/x-axis/min-x-bound.d.ts +11 -0
  459. package/dist/model/properties/axes/x-axis/x-axis-labels-visibility.d.ts +7 -0
  460. package/dist/model/properties/axes/x-axis/x-axis-title-symbol.d.ts +8 -0
  461. package/dist/model/properties/axes/x-axis/x-axis-title-text.d.ts +7 -0
  462. package/dist/model/properties/axes/x-axis/x-axis-title-visibility.d.ts +11 -0
  463. package/dist/model/properties/axes/x-axis/x-bounds.d.ts +8 -0
  464. package/dist/model/properties/background-color.d.ts +8 -0
  465. package/dist/model/properties/chart-id.d.ts +7 -0
  466. package/dist/model/properties/chart-renderer.d.ts +52 -0
  467. package/dist/model/properties/chart-sub-type.d.ts +8 -0
  468. package/dist/model/properties/color-match.d.ts +12 -0
  469. package/dist/model/properties/config.d.ts +8 -0
  470. package/dist/model/properties/data-filters.d.ts +14 -0
  471. package/dist/model/properties/data-labels/data-labels-symbol.d.ts +8 -0
  472. package/dist/model/properties/data-labels/data-labels-visibility.d.ts +7 -0
  473. package/dist/model/properties/data-tooltip-value-format.d.ts +21 -0
  474. package/dist/model/properties/description/description-symbol.d.ts +8 -0
  475. package/dist/model/properties/description/description-text.d.ts +6 -0
  476. package/dist/model/properties/description/description-visibility.d.ts +11 -0
  477. package/dist/model/properties/fetch-null-values.d.ts +7 -0
  478. package/dist/model/properties/layer.d.ts +8 -0
  479. package/dist/model/properties/rotated-state.d.ts +7 -0
  480. package/dist/model/properties/series/negative-values-stacked-to-baseline.d.ts +22 -0
  481. package/dist/model/properties/series/series-id.d.ts +12 -0
  482. package/dist/model/properties/series/series-index.d.ts +12 -0
  483. package/dist/model/properties/series/series-length.d.ts +7 -0
  484. package/dist/model/properties/series/series-visibility.d.ts +18 -0
  485. package/dist/model/properties/split-by-values.d.ts +7 -0
  486. package/dist/model/properties/subtitle/subtitle-symbol.d.ts +8 -0
  487. package/dist/model/properties/subtitle/subtitle-text.d.ts +7 -0
  488. package/dist/model/properties/subtitle/subtitle-visibility.d.ts +11 -0
  489. package/dist/model/properties/title/title-symbol.d.ts +8 -0
  490. package/dist/model/properties/title/title-text.d.ts +7 -0
  491. package/dist/model/properties/title/title-visibility.d.ts +11 -0
  492. package/dist/model/properties/version.d.ts +7 -0
  493. package/dist/model/radar-chart-model/radar-chart-model.d.ts +20 -0
  494. package/dist/model/scatterplot-model/scatterplot-model.d.ts +57 -0
  495. package/dist/model/serial-chart-model/serial-chart-model.d.ts +145 -0
  496. package/dist/model/shared/setup-utils.d.ts +74 -0
  497. package/dist/model/shared/type-guards.d.ts +172 -0
  498. package/dist/model.js +77 -0
  499. package/dist/spec/chart-object-literals.d.ts +364 -0
  500. package/dist/spec/config-defaults.d.ts +11 -0
  501. package/dist/spec/data-source.d.ts +104 -0
  502. package/dist/spec/events.d.ts +34 -0
  503. package/dist/spec/index.d.ts +8 -0
  504. package/dist/spec/rest-js-object-literals.d.ts +132 -0
  505. package/dist/spec/rest-js-types.d.ts +1923 -0
  506. package/dist/spec/web-chart.d.ts +1539 -0
  507. package/dist/types/components.d.ts +2 -0
  508. package/dist/types/lumina.d.ts +187 -0
  509. package/dist/types/preact.d.ts +194 -0
  510. package/dist/types/react.d.ts +204 -0
  511. package/dist/types/stencil.d.ts +194 -0
  512. package/dist/utils/chart-config/converter/index.d.ts +21 -0
  513. package/dist/utils/chart-config/interfaces.d.ts +8 -0
  514. package/dist/utils/chart-config/utils/index.d.ts +520 -0
  515. package/dist/utils/chart-config/utils/interfaces.d.ts +8 -0
  516. package/dist/utils/chart-config/validator/index.d.ts +27 -0
  517. package/dist/utils/chart-config/validator/interfaces.d.ts +105 -0
  518. package/dist/utils/components/event-payloads.d.ts +82 -0
  519. package/dist/utils/components/interfaces.d.ts +14 -0
  520. package/dist/utils/cursor/interfaces.d.ts +17 -0
  521. package/dist/utils/data/categorical-data/index.d.ts +27 -0
  522. package/dist/utils/data/index.d.ts +149 -0
  523. package/dist/utils/data/interfaces.d.ts +75 -0
  524. package/dist/utils/data/time-binning/interfaces.d.ts +38 -0
  525. package/dist/utils/defaults/index.d.ts +638 -0
  526. package/dist/utils/defaults/interfaces.d.ts +81 -0
  527. package/dist/utils/errors/index.d.ts +17 -0
  528. package/dist/utils/errors/interfaces.d.ts +9 -0
  529. package/dist/utils/index.d.ts +33 -0
  530. package/dist/utils/layer/index.d.ts +313 -0
  531. package/dist/utils/layer/inline-conversion/index.d.ts +46 -0
  532. package/dist/utils/layer/inline-conversion/interfaces.d.ts +21 -0
  533. package/dist/utils/layer/interfaces.d.ts +73 -0
  534. package/dist/utils/layer/query-features/index.d.ts +192 -0
  535. package/dist/utils/layer/query-features/interfaces.d.ts +10 -0
  536. package/dist/utils/layer/query-parser/index.d.ts +183 -0
  537. package/dist/utils/layer/utils/index.d.ts +202 -0
  538. package/dist/utils/localization/index.d.ts +87 -0
  539. package/dist/utils/localization/interfaces.d.ts +617 -0
  540. package/dist/utils/misc/index.d.ts +347 -0
  541. package/dist/utils/misc/interfaces.d.ts +116 -0
  542. package/dist/utils/type-guards/index.d.ts +229 -0
  543. package/dist/utils/type-guards/series-types.d.ts +38 -0
  544. package/dist/utils/types/index.d.ts +227 -0
  545. package/dist/utils/ui/chart-ui-utils.d.ts +34 -0
  546. package/dist/utils/ui/popover-ui-utils.d.ts +35 -0
  547. package/package.json +59 -0
@@ -0,0 +1,1446 @@
1
+ /* COPYRIGHT - https://js.geoscene.cn/5.0/LICENSE.txt */
2
+ import { substitute as D } from "@geoscene/core/intl.js";
3
+ import { cloneDeep as de, memoize as xe, isEmpty as Be } from "lodash-es";
4
+ import "@geoscene/toolkit/type";
5
+ import {
6
+ w as be,
7
+ a as b,
8
+ d as Ae,
9
+ t as v,
10
+ m as X,
11
+ g as ve,
12
+ W as O,
13
+ n as Ie,
14
+ i as _,
15
+ } from "./series-types.js";
16
+ import { R as ce, f as Le } from "./rest-js-object-literals.js";
17
+ import {
18
+ V as Ve,
19
+ cO as qe,
20
+ o as j,
21
+ dp as k,
22
+ j as Ne,
23
+ cM as ke,
24
+ bS as Oe,
25
+ c2 as we,
26
+ ao as De,
27
+ q as L,
28
+ p as Re,
29
+ dv as Pe,
30
+ cI as Me,
31
+ dw as ae,
32
+ cj as Ee,
33
+ dx as $e,
34
+ cf as Xe,
35
+ k as ye,
36
+ _ as H,
37
+ d3 as w,
38
+ du as Ue,
39
+ ds as U,
40
+ bR as K,
41
+ bX as ge,
42
+ bY as me,
43
+ by as We,
44
+ dr as Z,
45
+ l as Ye,
46
+ b as W,
47
+ bV as je,
48
+ ba as He,
49
+ bb as Ke,
50
+ b5 as Qe,
51
+ bd as ze,
52
+ bU as re,
53
+ aS as _e,
54
+ aR as le,
55
+ aT as Ge,
56
+ } from "./index.js";
57
+ import "@geoscene/toolkit/intl";
58
+ import "luxon";
59
+ import "d3-array";
60
+ import "@geoscene/core/geometry/support/jsonUtils.js";
61
+ import "@geoscene/core/rest/support/AttributeBinsQuery.js";
62
+ import "@geoscene/core/rest/support/StatisticDefinition.js";
63
+ import "@geoscene/core/time/TimeExtent.js";
64
+ import "@geoscene/core/core/promiseUtils.js";
65
+ import "@geoscene/core/request.js";
66
+ import "./runtime.js";
67
+ import {
68
+ h as pe,
69
+ l as V,
70
+ o as Je,
71
+ p as Ze,
72
+ j as h,
73
+ k as C,
74
+ m as ne,
75
+ } from "./index4.js";
76
+ import "@geoscene/toolkit/dom";
77
+ import {
78
+ s as I,
79
+ u as P,
80
+ d as fe,
81
+ e as et,
82
+ f as tt,
83
+ g as Se,
84
+ h as it,
85
+ j as oe,
86
+ } from "./utils.js";
87
+ import { S as G } from "./common.js";
88
+ import "@geoscene/geoscene-html-sanitizer";
89
+ import { b as $, c as Fe, g as ee, e as ue, f as st } from "./data.js";
90
+ import { b as at, g as rt } from "./series-length.js";
91
+ import { g as te } from "./utils2.js";
92
+ import "@geoscene/core/Graphic.js";
93
+ import "@geoscene/core/renderers/support/jsonUtils.js";
94
+ import "@geoscene/core/symbols/support/symbolUtils.js";
95
+ import "@geoscene/core/layers/support/FeatureFilter.js";
96
+ import "@geoscene/core/smartMapping/statistics/histogram.js";
97
+ import "@geoscene/core/smartMapping/statistics/summaryStatistics.js";
98
+ import "simple-statistics";
99
+ import "@geoscene/core/core/sql.js";
100
+ import "@geoscene/core/AttributeBinsGraphic.js";
101
+ import { c as lt } from "./index2.js";
102
+ function li(t, e) {
103
+ let i;
104
+ return (
105
+ e !== void 0 &&
106
+ ((i = { ...e }), i.legend !== void 0 && (i.legend.position = t)),
107
+ i
108
+ );
109
+ }
110
+ function ni(t, e) {
111
+ let i;
112
+ return (
113
+ e !== void 0 &&
114
+ ((i = { ...e }), i.legend !== void 0 && (i.legend.visible = t)),
115
+ i
116
+ );
117
+ }
118
+ function oi(t, e) {
119
+ let i;
120
+ return e !== void 0 && (i = { ...e, rotated: t }), i;
121
+ }
122
+ function nt(t) {
123
+ let e;
124
+ return (
125
+ t !== void 0 &&
126
+ ((e = { ...t }),
127
+ delete e.axes?.[0]?.minimum,
128
+ delete e.axes?.[0]?.maximum,
129
+ delete e.axes?.[1]?.minimum,
130
+ delete e.axes?.[1]?.maximum),
131
+ e
132
+ );
133
+ }
134
+ function ui(t, e) {
135
+ return e != null || pe(t);
136
+ }
137
+ async function ot(t) {
138
+ const { queryObject: e, chartConfig: i, options: r, splitByField: a } = t;
139
+ let s = [],
140
+ l;
141
+ const n = de(i),
142
+ o = n.series[0],
143
+ d = we({
144
+ queryObject: e,
145
+ chartConfig: n,
146
+ runtimeDataFilters: r?.runtimeDataFilters,
147
+ ignoreViewExtent: r?.ignoreViewExtent,
148
+ });
149
+ if (
150
+ (d.outStatistics?.[0]?.outStatisticFieldName &&
151
+ (d.outStatistics[0].outStatisticFieldName =
152
+ De.outStatistics.outStatisticFieldName),
153
+ L(o) &&
154
+ Re({
155
+ xAxisValueFormatType: Pe(n),
156
+ setTimeBinningInfoWhenNotProvided: r?.setTimeBinningInfoWhenNotProvided,
157
+ seriesConfig: o,
158
+ }) &&
159
+ Me(e))
160
+ ) {
161
+ const { temporalBinning: f, x: c } = o,
162
+ { uniqueQuery: p } = await ae({
163
+ chartConfig: n,
164
+ queryConfig: d,
165
+ queryObject: e,
166
+ options: r,
167
+ });
168
+ (l = await Ee({
169
+ queryObject: e,
170
+ dateField: c,
171
+ splitByField: a,
172
+ queryConfig: p,
173
+ temporalBinning: f,
174
+ })),
175
+ (s = Array.from(
176
+ new Set(
177
+ l.flatMap((S) => {
178
+ const { stackedAttributes: g } = S;
179
+ let y = [];
180
+ return g && (y = g.map((F) => F[a]).filter((F) => F !== void 0)), y;
181
+ })
182
+ ).values()
183
+ ));
184
+ } else {
185
+ const { uniqueQuery: f } = await ae({
186
+ chartConfig: n,
187
+ queryObject: e,
188
+ queryConfig: d,
189
+ options: r,
190
+ }),
191
+ { elementCount: c } = await $e({
192
+ chartConfig: n,
193
+ queryObject: e,
194
+ queryConfig: d,
195
+ behaviorAfterLimit: r?.chartLimits?.behaviorAfterLimit,
196
+ numberMaxOfFeaturesToFetch: f.num,
197
+ });
198
+ (l = await Xe({
199
+ queryObject: e,
200
+ queryConfig: f,
201
+ featureCount: c,
202
+ })),
203
+ (s = Array.from(
204
+ new Set(
205
+ l.map((p) => p.attributes[a]).filter((p) => p !== void 0)
206
+ ).values()
207
+ ));
208
+ }
209
+ return { allValues: s, preFetchedQueryResponse: l };
210
+ }
211
+ function ut(t, e) {
212
+ const i = /* @__PURE__ */ new Map();
213
+ return (
214
+ t.series.forEach((r) => {
215
+ let a = ye({
216
+ where: r.query?.where,
217
+ // normalize the value so it matches what we get from getAllValues()
218
+ // Refer to https://devtopia.geoscene.cn/WebGIS/geoscene-charts/issues/8127
219
+ normalize: !0,
220
+ // we do not escape the characters so they match what we get from getAllValues()
221
+ // Refer to https://devtopia.geoscene.cn/WebGIS/geoscene-charts/issues/8078
222
+ escape: !1,
223
+ });
224
+ e && a !== null && (a = Number(a));
225
+ const s = be([r]);
226
+ s !== void 0 && i.set(s, [...(i.get(s) ?? []), a]);
227
+ }),
228
+ i
229
+ );
230
+ }
231
+ function dt(t) {
232
+ const {
233
+ allValues: e,
234
+ configUniqueValuesPerSeriesType: i,
235
+ initialConfigWasEmpty: r,
236
+ } = t,
237
+ a = /* @__PURE__ */ new Map();
238
+ return (
239
+ Array.from(i.keys()).forEach((s) => {
240
+ const l = i.get(s) ?? [];
241
+ let n = [];
242
+ r
243
+ ? (n = e)
244
+ : e.forEach((o) => {
245
+ l.includes(o) || n.push(o);
246
+ }),
247
+ a.set(s, n);
248
+ }),
249
+ a
250
+ );
251
+ }
252
+ function ct(t) {
253
+ const {
254
+ chartConfig: e,
255
+ missingValue: i,
256
+ splitByField: r,
257
+ seriesTemplate: a,
258
+ } = t,
259
+ s = JSON.parse(
260
+ JSON.stringify({
261
+ ...e.series[0],
262
+ ...a,
263
+ })
264
+ );
265
+ if (s.query) {
266
+ if (
267
+ ((s.id = `${i}-${e.series.length}-${Date.now()}`),
268
+ (s.name = `${i}`),
269
+ s.query.outStatistics?.[0] !== void 0)
270
+ ) {
271
+ const n = s.id;
272
+ (s.query.outStatistics[0].outStatisticFieldName = n),
273
+ "y" in s && (s.y = n);
274
+ }
275
+ const l = typeof i == "number" || i === null ? i : `'${i}'`;
276
+ s.query.where = `${r}=${l}`;
277
+ }
278
+ return s;
279
+ }
280
+ async function yt(t) {
281
+ const { updateSplitBySeries: e, config: i, options: r, queryObject: a } = t,
282
+ { seriesTemplate: s } = e ?? {};
283
+ let l;
284
+ if (
285
+ a &&
286
+ e !== void 0 &&
287
+ i !== void 0 &&
288
+ (i.series.length > 0 || s !== void 0) &&
289
+ e.addMissingSeries
290
+ ) {
291
+ const n = i.series.length === 0;
292
+ i.series.length === 0 && s !== void 0 && i.series.push(s);
293
+ const o = j(i.series);
294
+ if (
295
+ o === k.BoxPlotMonoFieldAndSplitBy ||
296
+ o === k.BoxPlotMultiFieldsAndSplitBy ||
297
+ o === k.BoxPlotMonoFieldAndCategoryAndSplitBy ||
298
+ o === k.BarAndLineSplitBy ||
299
+ o === k.BarAndLineSplitByNoAggregation
300
+ ) {
301
+ const d = Ne(i.series[0]?.query?.where),
302
+ f = ke(a);
303
+ await f.load();
304
+ const c = f.getField(d)?.toJSON(),
305
+ p = Oe(c),
306
+ S = await ot({
307
+ queryObject: a,
308
+ chartConfig: i,
309
+ splitByField: d,
310
+ options: r,
311
+ }),
312
+ { allValues: g } = S;
313
+ if ((({ preFetchedQueryResponse: l } = S), g.length > 0)) {
314
+ const y = ut(i, p),
315
+ F = dt({
316
+ allValues: g,
317
+ configUniqueValuesPerSeriesType: y,
318
+ initialConfigWasEmpty: n,
319
+ });
320
+ Array.from(F.keys()).forEach((x) => {
321
+ (F.get(x) ?? []).forEach((u) => {
322
+ i.series.push(
323
+ ct({
324
+ chartConfig: i,
325
+ seriesTemplate: s,
326
+ missingValue: u,
327
+ splitByField: d,
328
+ })
329
+ );
330
+ }),
331
+ n && i.series.shift();
332
+ });
333
+ }
334
+ }
335
+ }
336
+ return l;
337
+ }
338
+ function gt(t, e) {
339
+ e && !pe(e) && (e = qe({ chartConfig: e, queryObject: t }));
340
+ }
341
+ async function di(t) {
342
+ const {
343
+ configToAlter: e,
344
+ layer: i,
345
+ addMissingSeries: r,
346
+ updateSplitBySeries: a,
347
+ chartContainer: s,
348
+ queryObject: l,
349
+ options: n,
350
+ } = t;
351
+ let o = e,
352
+ d;
353
+ return (
354
+ o &&
355
+ (gt(i, o),
356
+ (o = await lt(o, i)),
357
+ r &&
358
+ (d = await yt({
359
+ updateSplitBySeries: a,
360
+ config: o,
361
+ options: n,
362
+ queryObject: l,
363
+ })),
364
+ (o = Ve(o, s))),
365
+ { alteredConfig: o, preFetchedQueryResponse: d }
366
+ );
367
+ }
368
+ const ci = (t) => {
369
+ let e;
370
+ const i = t.series[0];
371
+ return L(i) && (e = i.temporalBinning?.size), e;
372
+ },
373
+ mt = (t) => {
374
+ let e;
375
+ const i = t.series[0];
376
+ return L(i) && (e = i.temporalBinning?.unit), e;
377
+ },
378
+ yi = (t) => {
379
+ let e;
380
+ const i = t.series[0];
381
+ return L(i) && (e = i.temporalBinning?.timeAggregationType), e;
382
+ },
383
+ gi = (t) => {
384
+ let e;
385
+ const i = t.series[0];
386
+ return L(i) && (e = i.temporalBinning?.trimIncompleteTimeInterval), e;
387
+ },
388
+ mi = (t) => {
389
+ let e;
390
+ const i = t.series[0];
391
+ return L(i) && (e = i.temporalBinning?.nullPolicy), e;
392
+ },
393
+ pt = (t, e) => {
394
+ e?.series?.forEach((i) => {
395
+ L(i) && ((i.temporalBinning ??= {}), (i.temporalBinning.size = t));
396
+ }),
397
+ I({ config: e, value: null, axisIndex: 1, isMax: !1 }),
398
+ I({ config: e, value: null, axisIndex: 1, isMax: !0 });
399
+ },
400
+ ft = (t, e) => {
401
+ e?.series?.forEach((i) => {
402
+ L(i) && ((i.temporalBinning ??= {}), (i.temporalBinning.nullPolicy = t));
403
+ }),
404
+ I({ config: e, value: null, axisIndex: 1, isMax: !1 }),
405
+ I({ config: e, value: null, axisIndex: 1, isMax: !0 });
406
+ },
407
+ pi = (t, e) => {
408
+ e.series?.forEach((i) => {
409
+ L(i) && ((i.temporalBinning ??= {}), (i.temporalBinning.unit = t));
410
+ }),
411
+ I({ config: e, value: null, axisIndex: 1, isMax: !1 }),
412
+ I({ config: e, value: null, axisIndex: 1, isMax: !0 });
413
+ },
414
+ fi = (t, e) => {
415
+ e.series?.forEach((i) => {
416
+ L(i) &&
417
+ ((i.temporalBinning ??= {}),
418
+ (i.temporalBinning.timeAggregationType = t));
419
+ }),
420
+ I({ config: e, value: null, axisIndex: 1, isMax: !1 }),
421
+ I({ config: e, value: null, axisIndex: 1, isMax: !0 });
422
+ },
423
+ Si = (t, e) => {
424
+ e.series?.forEach((i) => {
425
+ L(i) &&
426
+ ((i.temporalBinning ??= {}),
427
+ (i.temporalBinning.trimIncompleteTimeInterval = t));
428
+ }),
429
+ I({ config: e, value: null, axisIndex: 1, isMax: !1 }),
430
+ I({ config: e, value: null, axisIndex: 1, isMax: !0 });
431
+ },
432
+ Fi = (t) => {
433
+ pt(0, t);
434
+ },
435
+ Ti = (t) => t.hideEmptyRowsAndColumns,
436
+ hi = (t, e) => {
437
+ t.hideEmptyRowsAndColumns = e;
438
+ },
439
+ Ci = (t, e) => {
440
+ const i = t.series[0];
441
+ i.heatRulesType = e;
442
+ },
443
+ xi = (t) => t.series[0].heatRulesType,
444
+ Bi = (t, e) => {
445
+ const i = t.series[0];
446
+ i.gradientRules = e;
447
+ },
448
+ bi = (t) => t.series[0].gradientRules,
449
+ Ai = (t) => {
450
+ const { yField: e, config: i, layerInfo: r } = t,
451
+ { layerFieldsInfo: a } = r,
452
+ s = te(1, i),
453
+ l = St(i),
454
+ n = H(i),
455
+ o = i.series[0];
456
+ if (
457
+ typeof e == "string" &&
458
+ l !== e &&
459
+ o &&
460
+ ((o.y = e), nt(i), l === s || n)
461
+ ) {
462
+ const d = w(a, e);
463
+ P(i, 1, d);
464
+ }
465
+ },
466
+ St = (t) => t.series[0].y ?? "",
467
+ vi = (t) => {
468
+ const { binning: e, config: i, commonStrings: r } = t,
469
+ a = i.series[0];
470
+ if (
471
+ ((a.xTemporalBinning = e),
472
+ e?.unit !== void 0 &&
473
+ e.unit in r.utilsStrings.heatChartCalendarDatePartsUnits)
474
+ ) {
475
+ const s = r.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
476
+ P(i, 0, s);
477
+ }
478
+ },
479
+ Ii = (t) => t.series[0].xTemporalBinning,
480
+ Li = (t) => {
481
+ const { binning: e, config: i, commonStrings: r } = t,
482
+ a = i.series[0];
483
+ if (
484
+ ((a.yTemporalBinning = e),
485
+ e?.unit !== void 0 &&
486
+ e.unit in r.utilsStrings.heatChartCalendarDatePartsUnits)
487
+ ) {
488
+ const s = r.utilsStrings.heatChartCalendarDatePartsUnits[e.unit];
489
+ P(i, 1, s);
490
+ }
491
+ },
492
+ Vi = (t) => t.series[0].yTemporalBinning,
493
+ Ft = (t, e) => {
494
+ e.orderOptions ??= {};
495
+ const i =
496
+ e.axes?.[0]?.valueFormat?.type === "category" ? v.Category : v.YValue,
497
+ r = J(e)[0],
498
+ a = e.axes?.[1]?.valueFormat?.type === "category" ? v.Category : v.YValue,
499
+ s = J(e)[1],
500
+ l = {
501
+ ...(e.orderOptions.data ?? {}),
502
+ orderType: v.MultiAxes,
503
+ };
504
+ r === G.customSort && i === v.Category && (l.orderByX = [...t]),
505
+ s === G.customSort && a === v.Category && (l.orderByY = [...t]),
506
+ Object.keys(l).length > 1 && (e.orderOptions.data = l);
507
+ },
508
+ qi = (t, e) => {
509
+ const i = e.series[0];
510
+ i.gridLine && (i.gridLine.width = t);
511
+ },
512
+ Ni = (t) => t.series[0].gridLine?.width,
513
+ ki = (t, e) => {
514
+ const i = e.series[0],
515
+ r = t?.length === 4 && t.every((a) => typeof a == "number");
516
+ i.gridLine && r && (i.gridLine.color = t);
517
+ },
518
+ Oi = (t) => t.series[0].gridLine?.color,
519
+ wi = (t, e) => {
520
+ const i = e.legend;
521
+ i && (i.position = t);
522
+ },
523
+ Di = (t) => t.legend?.position ?? Ae.Bottom,
524
+ Ri = (t) => t.series[0].query?.outStatistics?.[0]?.onStatisticField,
525
+ Pi = (t) => {
526
+ const { field: e, config: i, layerInfo: r, commonStrings: a } = t,
527
+ s = i.series[0].query?.outStatistics?.[0],
528
+ l = se(i, r, a);
529
+ s
530
+ ? ((s.onStatisticField = e),
531
+ (s.outStatisticFieldName = `${s.statisticType}_${e}`))
532
+ : (i.series[0].query = {
533
+ outStatistics: [
534
+ {
535
+ onStatisticField: e,
536
+ outStatisticFieldName: `${b.Count}_${e}`,
537
+ statisticType: b.Count,
538
+ },
539
+ ],
540
+ }),
541
+ i.title && l && (i.title.content.text = Q(i, r, a));
542
+ },
543
+ Mi = (t) => t.series[0].query?.outStatistics?.[0].statisticType ?? b.Count,
544
+ Ei = (t) => {
545
+ const { aggregationType: e, config: i, layerInfo: r, commonStrings: a } = t,
546
+ s = i.series[0]?.query?.outStatistics?.[0],
547
+ l = se(i, r, a);
548
+ s &&
549
+ e !== b.NoAggregation &&
550
+ ((s.statisticType = e),
551
+ (s.outStatisticFieldName = `${e}_${s.onStatisticField}`)),
552
+ (e === b.Count || e === b.Sum) && Tt(X.Zero, i),
553
+ i.title && l && (i.title.content.text = Q(i, r, a));
554
+ },
555
+ $i = (t) => t.nullPolicy,
556
+ Tt = (t, e) => {
557
+ e.nullPolicy = t;
558
+ },
559
+ Xi = (t) => t.series[0].emptyCells,
560
+ Ui = (t, e) => {
561
+ e.series[0].emptyCells = t;
562
+ },
563
+ Wi = (t) => t.series[0].emptyCells?.text,
564
+ Yi = (t, e) => {
565
+ e.series[0].emptyCells
566
+ ? (e.series[0].emptyCells.text = t)
567
+ : (e.series[0].emptyCells = { text: t });
568
+ },
569
+ ji = (t) => t.includeLeapDay,
570
+ Hi = (t, e) => {
571
+ e.includeLeapDay = t;
572
+ },
573
+ Ki = (t) => t.series[0].emptyCells?.symbol,
574
+ Qi = (t, e) => {
575
+ e.series[0].emptyCells
576
+ ? (e.series[0].emptyCells.symbol = t)
577
+ : (e.series[0].emptyCells = { symbol: t });
578
+ };
579
+ function zi(t) {
580
+ return t.viewType;
581
+ }
582
+ function _i(t, e) {
583
+ Ue(e) || (e.viewType = t);
584
+ }
585
+ function Gi(t) {
586
+ return t.series[0].classBreaksRules?.breaksCount ?? U.classBreaks.breaksCount;
587
+ }
588
+ function Ji(t, e) {
589
+ e.series[0].classBreaksRules !== void 0
590
+ ? (e.series[0].classBreaksRules.breaksCount =
591
+ t ?? U.classBreaks.breaksCount)
592
+ : (e.series[0].classBreaksRules = {
593
+ breaksCount: t ?? U.classBreaks.breaksCount,
594
+ });
595
+ }
596
+ function Zi(t) {
597
+ return t.series[0].classBreaksRules?.classificationMethod;
598
+ }
599
+ function es(t, e) {
600
+ e.series[0].classBreaksRules !== void 0
601
+ ? (e.series[0].classBreaksRules.classificationMethod = t)
602
+ : (e.series[0].classBreaksRules = {
603
+ classificationMethod: t,
604
+ }),
605
+ (e.series[0].classBreaksRules.breaksCount =
606
+ e.series[0].classBreaksRules.breaksCount ?? U.classBreaks.breaksCount);
607
+ }
608
+ function ts(t, e) {
609
+ e.firstDayOfWeek = t;
610
+ }
611
+ function is(t) {
612
+ return t.firstDayOfWeek;
613
+ }
614
+ function M(t) {
615
+ const {
616
+ seriesIndex: e,
617
+ xAxisField: i,
618
+ aggregationType: r,
619
+ config: a,
620
+ layerInfo: s,
621
+ commonStrings: l,
622
+ } = t,
623
+ n = K(s?.layer).idField;
624
+ let o;
625
+ const d = a.series[e ?? 0];
626
+ let f = !1,
627
+ c = !1,
628
+ p = !1;
629
+ if (d === void 0) {
630
+ const y = a.series;
631
+ (f = y.slice(0, e).every((F) => h(F))),
632
+ (c = y.slice(0, e).every((F) => C(F))),
633
+ (p = y.slice(0, e).every((F) => ne(F)));
634
+ } else (f = h(d)), (c = C(d)), (p = ne(d));
635
+ f
636
+ ? (o = He({
637
+ commonStrings: l,
638
+ seriesIndex: e,
639
+ objectIDField: n,
640
+ }))
641
+ : c
642
+ ? (o = Ke({
643
+ commonStrings: l,
644
+ seriesIndex: e,
645
+ objectIDField: n,
646
+ }))
647
+ : p
648
+ ? (o = Qe(l, n))
649
+ : (o = ze({
650
+ seriesIndex: e,
651
+ objectIDField: n,
652
+ commonStrings: l,
653
+ }));
654
+ const S = a.series[0]?.dataLabels,
655
+ g = {
656
+ ...o,
657
+ x: i,
658
+ y: "",
659
+ dataLabels: {
660
+ ...o.dataLabels,
661
+ type: o.dataLabels?.type ?? O.Text,
662
+ content: { ...o.dataLabels?.content, ...S?.content, type: Le.TS },
663
+ visible: S?.visible ?? !1,
664
+ },
665
+ };
666
+ if (
667
+ ((g.query = {
668
+ groupByFieldsForStatistics: [i],
669
+ }),
670
+ r !== b.NoAggregation && n !== void 0)
671
+ ) {
672
+ const y = `${r}_${n}_0`.toUpperCase();
673
+ (g.y = y),
674
+ (g.query.outStatistics = [
675
+ {
676
+ statisticType: r,
677
+ onStatisticField: n,
678
+ outStatisticFieldName: y,
679
+ },
680
+ ]);
681
+ }
682
+ if (L(a.series[0]) && L(g)) {
683
+ let y;
684
+ if (
685
+ (a?.series?.[0] !== void 0 && (y = j(a.series)),
686
+ y !== k.BarAndLineNoAggregation && y !== k.BarAndLineSplitByNoAggregation)
687
+ ) {
688
+ let F = mt(a);
689
+ F === _.Quarter && (F = _.Month),
690
+ (g.temporalBinning = {
691
+ ...a.series[0]?.temporalBinning,
692
+ unit: F,
693
+ });
694
+ }
695
+ }
696
+ return de(g);
697
+ }
698
+ function Q(t, e, i) {
699
+ const { layerFieldsInfo: r } = e,
700
+ { idField: a, isTraditionalTypeOID: s } = K(e.layer),
701
+ l = $(t),
702
+ n = ie(t),
703
+ o = he(t),
704
+ d = Y(t),
705
+ f = s && (n.length === 0 || n.includes(a)),
706
+ c = We(o, i),
707
+ p = f ? "" : n.map((u) => w(r ?? [], u)).join(", "),
708
+ S = w(r ?? [], l),
709
+ g = w(r ?? [], d),
710
+ y = t.series.some((u) => V(u)),
711
+ F = y ? "category" : "xAxisField",
712
+ x = S;
713
+ let T = "";
714
+ if (
715
+ Fe({
716
+ fieldName: l,
717
+ numericFields: n,
718
+ fieldList: r,
719
+ })
720
+ )
721
+ T = D(i.titleLabels.aggrTypeOfAggrFields, {
722
+ aggregationType: c,
723
+ aggregationFields: p,
724
+ });
725
+ else if (o === b.NoAggregation) {
726
+ const u = f ? a : p;
727
+ if (d === "") {
728
+ const A = y ? "aggrTypeCategory" : "aggrTypeXAxisField";
729
+ T = D(i.titleLabels[A], {
730
+ aggregationType: u,
731
+ [F]: x,
732
+ });
733
+ } else {
734
+ const A = y ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
735
+ T = D(i.titleLabels[A], {
736
+ aggregationType: u,
737
+ [F]: x,
738
+ splitByField: g,
739
+ });
740
+ }
741
+ } else if (o === b.Count)
742
+ if (d === "") {
743
+ const u = y ? "aggrTypeCategory" : "aggrTypeXAxisField";
744
+ T = D(i.titleLabels[u], {
745
+ aggregationType: c,
746
+ [F]: x,
747
+ });
748
+ } else {
749
+ const u = y ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
750
+ T = D(i.titleLabels[u], {
751
+ aggregationType: c,
752
+ [F]: x,
753
+ splitByField: g,
754
+ });
755
+ }
756
+ else if (d !== "") {
757
+ const u = y
758
+ ? "aggrTypeOfAggrFieldByCategoryBySplitByField"
759
+ : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
760
+ T = D(i.titleLabels[u], {
761
+ aggregationType: c,
762
+ aggregationField: p,
763
+ [F]: x,
764
+ splitByField: g,
765
+ });
766
+ } else if (n.length > 0) {
767
+ const u = y
768
+ ? "aggrTypeOfAggrFieldsByCategory"
769
+ : "aggrTypeOfAggrFieldsByXAxisField";
770
+ T = D(i.titleLabels[u], {
771
+ aggregationType: c,
772
+ aggregationFields: p,
773
+ [F]: x,
774
+ });
775
+ }
776
+ return T;
777
+ }
778
+ const Te = (t) =>
779
+ ye({
780
+ where: t.query?.where,
781
+ normalize: !1,
782
+ escape: !1,
783
+ }) ?? "",
784
+ he = (t) =>
785
+ t?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? b.NoAggregation,
786
+ Y = xe(
787
+ (t) => {
788
+ const e = t?.series?.[0]?.query?.where?.split("=")[0].trim() ?? "";
789
+ return Ye(t?.series?.[0]?.query?.where) ? "" : e;
790
+ },
791
+ (t) => t?.series?.[0]?.query?.where
792
+ ),
793
+ ie = (t) => {
794
+ let e = [];
795
+ if (Y(t) === "")
796
+ e =
797
+ t?.series
798
+ .map((i) => {
799
+ const r =
800
+ i.query?.outStatistics?.map((a) => a.onStatisticField) ?? [];
801
+ return r?.length > 0 ? r : i.y;
802
+ })
803
+ .flat() ?? [];
804
+ else {
805
+ const i = t?.series?.[0],
806
+ r = i?.query?.outStatistics?.[0]?.onStatisticField ?? [i?.y].flat()[0];
807
+ e = r !== void 0 ? [r] : [];
808
+ }
809
+ return [...new Set(e.filter((i) => i !== ""))];
810
+ };
811
+ function ht(t) {
812
+ const { numericFields: e, aggregationType: i, config: r, layerInfo: a } = t;
813
+ let s = !1;
814
+ i === b.Count
815
+ ? (s = !0)
816
+ : i === b.NoAggregation &&
817
+ (s = e.every((o) => {
818
+ const d = a.layerFieldsInfo.find((f) => f.name === o);
819
+ return d !== void 0 ? re(d) : !1;
820
+ })),
821
+ oe(r, 1, s);
822
+ const l = r.series.some((o) => h(o)),
823
+ n = r.series.some((o) => C(o));
824
+ if (l || n) {
825
+ const o = $(r),
826
+ d = a.layerFieldsInfo.find((c) => c.name === o),
827
+ f = d !== void 0 && re(d);
828
+ oe(r, 0, f);
829
+ }
830
+ }
831
+ const J = (t) => {
832
+ let e;
833
+ if (Z(t)) {
834
+ const i = t.orderOptions?.data?.orderByX ?? [""],
835
+ r = t.orderOptions?.data?.orderByY ?? [""],
836
+ a = t.axes?.[0]?.valueFormat?.type === "category" ? v.Category : v.YValue,
837
+ s = t.axes?.[1]?.valueFormat?.type === "category" ? v.Category : v.YValue;
838
+ e = [ue(i, a), ue(r, s)];
839
+ } else {
840
+ const i = t.orderOptions?.data?.orderType ?? v.Category,
841
+ r =
842
+ t.orderOptions?.data && "orderBy" in t.orderOptions.data
843
+ ? t.orderOptions.data.orderBy
844
+ : ve.Ascending;
845
+ e = [st(r, i)];
846
+ }
847
+ return e;
848
+ };
849
+ function Ct(t) {
850
+ const {
851
+ xAxisField: e,
852
+ numericFields: i,
853
+ aggregationType: r,
854
+ config: a,
855
+ layerInfo: s,
856
+ commonStrings: l,
857
+ } = t,
858
+ { layerFieldsInfo: n } = s;
859
+ let o = !1;
860
+ const d = M({
861
+ config: a,
862
+ xAxisField: e,
863
+ aggregationType: r,
864
+ layerInfo: s,
865
+ seriesIndex: 0,
866
+ commonStrings: l,
867
+ }),
868
+ f = ee({
869
+ config: a,
870
+ xAxisField: e,
871
+ numericFields: i,
872
+ aggregationType: r,
873
+ layer: s.layer,
874
+ fieldList: n,
875
+ }).name,
876
+ c = {
877
+ ...d,
878
+ id: `series_${Date.now()}`,
879
+ name: l.axisLabels.values,
880
+ x: W,
881
+ y: f,
882
+ },
883
+ p = [];
884
+ for (const g of i)
885
+ p.push({
886
+ onStatisticField: g,
887
+ outStatisticFieldName: `${g}_0`.toUpperCase(),
888
+ statisticType: r,
889
+ });
890
+ c.query = { outStatistics: p };
891
+ const S = a.series[0];
892
+ return (
893
+ S !== void 0 &&
894
+ ((c.id = S.id),
895
+ ((h(c) && h(S)) || (C(c) && C(S))) && E(c, S),
896
+ a.colorMatch ||
897
+ (V(S) && V(c)
898
+ ? (c.fillSymbol = S.fillSymbol)
899
+ : ((h(c) && h(S)) || (C(c) && C(S))) &&
900
+ ((c.lineSymbol = S.lineSymbol), (c.markerSymbol = S.markerSymbol)),
901
+ (o = !0)),
902
+ (c.id = S.id),
903
+ S.name !== d.name && (c.name = S.name)),
904
+ a.series.length === 1 &&
905
+ ((h(c) || C(c)) && E(c, a.series[0]),
906
+ a.colorMatch ||
907
+ (V(c)
908
+ ? (c.fillSymbol = a.series[0].fillSymbol)
909
+ : (h(c) || C(c)) &&
910
+ ((c.lineSymbol = a.series[0].lineSymbol),
911
+ (c.markerSymbol = a.series[0].markerSymbol)),
912
+ (o = !0))),
913
+ (a.colorMatch = !o),
914
+ [c]
915
+ );
916
+ }
917
+ function Ce(t) {
918
+ const {
919
+ xAxisField: e,
920
+ numericFields: i,
921
+ aggregationType: r,
922
+ config: a,
923
+ layerInfo: s,
924
+ commonStrings: l,
925
+ } = t,
926
+ { layerFieldsInfo: n } = s,
927
+ o = K(s.layer).idField,
928
+ d = [];
929
+ let f = !1;
930
+ for (let y = 0; y < i.length; y += 1) {
931
+ const F = M({
932
+ config: a,
933
+ xAxisField: e,
934
+ aggregationType: r,
935
+ layerInfo: s,
936
+ seriesIndex: y,
937
+ commonStrings: l,
938
+ }),
939
+ x = ee({
940
+ config: a,
941
+ xAxisField: e,
942
+ numericFields: i,
943
+ aggregationType: r,
944
+ layer: s.layer,
945
+ numericFieldIndex: y,
946
+ fieldList: n,
947
+ }).name,
948
+ T = i[y];
949
+ let u = {
950
+ ...F,
951
+ query: {
952
+ ...F.query,
953
+ },
954
+ };
955
+ i &&
956
+ T !== o &&
957
+ (u = {
958
+ ...u,
959
+ id: T,
960
+ name: w(n, T),
961
+ });
962
+ let A = T;
963
+ u.query !== void 0 &&
964
+ (r !== b.NoAggregation
965
+ ? ((A = x),
966
+ (u.query.outStatistics = [
967
+ {
968
+ ...(F.query?.outStatistics?.[0] ?? {}),
969
+ onStatisticField: T,
970
+ outStatisticFieldName: x,
971
+ statisticType: r,
972
+ },
973
+ ]))
974
+ : delete u.query.outStatistics),
975
+ (u.y = A);
976
+ const m = a.series.find(
977
+ (N) =>
978
+ (N.query?.outStatistics?.[0]?.onStatisticField === T &&
979
+ N.query.where === void 0) ||
980
+ (N.query?.outStatistics === void 0 && (N.y === T || N.x === T))
981
+ );
982
+ if (m !== void 0 && typeof m.y == "string" && m.y.trim() !== "") {
983
+ ((h(u) && h(m)) || (C(u) && C(m))) && E(u, m),
984
+ a.colorMatch ||
985
+ (V(u) && V(m)
986
+ ? (u.fillSymbol = m.fillSymbol)
987
+ : ((h(u) && h(m)) || (C(u) && C(m))) &&
988
+ ((u.lineSymbol = m.lineSymbol),
989
+ (u.markerSymbol = m.markerSymbol)),
990
+ (f = !0));
991
+ const N = M({
992
+ config: a,
993
+ xAxisField: e,
994
+ aggregationType: r,
995
+ layerInfo: s,
996
+ seriesIndex: y,
997
+ commonStrings: l,
998
+ });
999
+ (u.id = m.id),
1000
+ m.id !== N.id &&
1001
+ m.name !== N.name &&
1002
+ ((u.id = m.id), (u.name = m.name)),
1003
+ u.type === O.HeatSeries &&
1004
+ m.type === O.HeatSeries &&
1005
+ ((u.y = m.y), (u.heatRulesType = m.heatRulesType));
1006
+ }
1007
+ d.push(u);
1008
+ }
1009
+ const c = d.filter((y) => V(y)),
1010
+ p = d.filter((y) => h(y) || C(y)),
1011
+ S = a.series.filter((y) => V(y)),
1012
+ g = a.series.filter((y) => h(y) || C(y));
1013
+ return (
1014
+ S.length === 1 &&
1015
+ c.length === 1 &&
1016
+ !a.colorMatch &&
1017
+ (V(S[0]) && V(c[0]) && (c[0].fillSymbol = S[0].fillSymbol), (f = !0)),
1018
+ g.length === 1 &&
1019
+ p.length === 1 &&
1020
+ (((h(g[0]) && h(p[0])) || (C(g[0]) && C(p[0]))) && E(p[0], g[0]),
1021
+ a.colorMatch ||
1022
+ (((h(g[0]) && h(p[0])) || (C(g[0]) && C(p[0]))) &&
1023
+ ((p[0].lineSymbol = g[0].lineSymbol),
1024
+ (p[0].markerSymbol = g[0].markerSymbol)),
1025
+ (f = !0))),
1026
+ (a.colorMatch = !f),
1027
+ d
1028
+ );
1029
+ }
1030
+ async function xt(t) {
1031
+ const {
1032
+ splitByField: e,
1033
+ xAxisField: i,
1034
+ numericFields: r,
1035
+ aggregationType: a,
1036
+ config: s,
1037
+ layerInfo: l,
1038
+ commonStrings: n,
1039
+ } = t,
1040
+ { layer: o, layerFieldsInfo: d } = l,
1041
+ { fetchNullValues: f } = s?.series?.[0]?.query ?? {},
1042
+ c = i !== W ? i : void 0,
1043
+ {
1044
+ categoriesArray: p,
1045
+ splitByFieldType: S,
1046
+ numericalField: g,
1047
+ } = await it({
1048
+ config: s,
1049
+ layer: o,
1050
+ layerFieldsInfo: d,
1051
+ xAxisField: c,
1052
+ aggregationFields: r,
1053
+ splitByField: e,
1054
+ fetchNullValues: f,
1055
+ });
1056
+ let y = [],
1057
+ F = !1;
1058
+ if (p.length === 0) {
1059
+ y = Ce({
1060
+ xAxisField: i,
1061
+ numericFields: r,
1062
+ aggregationType: a,
1063
+ config: s,
1064
+ layerInfo: l,
1065
+ commonStrings: n,
1066
+ });
1067
+ for (const x of y) x.query && (x.query.where = `${e}=''`);
1068
+ } else
1069
+ for (let x = 0; x < p.length; x += 1) {
1070
+ const T = p[x],
1071
+ u = ee({
1072
+ config: s,
1073
+ xAxisField: i,
1074
+ numericFields: r,
1075
+ aggregationType: a,
1076
+ layer: l.layer,
1077
+ seriesIndex: x,
1078
+ splitByField: e,
1079
+ fieldList: d,
1080
+ }).name,
1081
+ A = M({
1082
+ config: s,
1083
+ xAxisField: i,
1084
+ aggregationType: a,
1085
+ layerInfo: l,
1086
+ seriesIndex: x,
1087
+ commonStrings: n,
1088
+ }),
1089
+ m = {
1090
+ fieldName: e,
1091
+ fieldValueToMatch: T ?? "",
1092
+ subtypeInfo: ge(l.layer),
1093
+ fieldList: l.layerFieldsInfo,
1094
+ },
1095
+ N = me(m),
1096
+ R = `${T}`,
1097
+ B = {
1098
+ ...A,
1099
+ id: R,
1100
+ name: N ?? R,
1101
+ y: u,
1102
+ query: {
1103
+ ...A.query,
1104
+ where: `${e}=${S === ce.String && T !== null ? `'${T}'` : T}`,
1105
+ outStatistics:
1106
+ a !== b.NoAggregation
1107
+ ? [
1108
+ {
1109
+ ...(A.query?.outStatistics?.[0] ?? {}),
1110
+ onStatisticField: g,
1111
+ outStatisticFieldName: u,
1112
+ statisticType: a,
1113
+ },
1114
+ ]
1115
+ : void 0,
1116
+ },
1117
+ };
1118
+ a === b.NoAggregation &&
1119
+ (B.query !== void 0 &&
1120
+ (delete B.query.outStatistics,
1121
+ delete B.query.groupByFieldsForStatistics),
1122
+ (B.y = g));
1123
+ const q = s.series.find(
1124
+ (z) => String(Te(z)).trim().replace(/'/gu, "") === R
1125
+ );
1126
+ q !== void 0 &&
1127
+ (((h(B) && h(q)) || (C(B) && C(q))) && E(B, q),
1128
+ s.colorMatch ||
1129
+ (V(B) && V(q)
1130
+ ? (B.fillSymbol = q.fillSymbol)
1131
+ : ((h(B) && h(q)) || (C(B) && C(q))) &&
1132
+ ((B.lineSymbol = q.lineSymbol),
1133
+ (B.markerSymbol = q.markerSymbol)),
1134
+ (F = !0)),
1135
+ (B.id = q.id),
1136
+ (B.name = q.name)),
1137
+ B.query &&
1138
+ (B.query.fetchNullValues = s.series.some(
1139
+ (z) => z.query?.fetchNullValues
1140
+ )),
1141
+ y.push(B);
1142
+ }
1143
+ return (s.colorMatch = !F), y;
1144
+ }
1145
+ const ss = async (t) => {
1146
+ const {
1147
+ xAxisField: e,
1148
+ splitByField: i,
1149
+ numericFields: r,
1150
+ aggregationType: a,
1151
+ config: s,
1152
+ layerInfo: l,
1153
+ commonStrings: n,
1154
+ } = t,
1155
+ { layerFieldsInfo: o } = l ?? {},
1156
+ d = at(s),
1157
+ f = $(s),
1158
+ c = se(s, l, n),
1159
+ p = Bt(s, l, n),
1160
+ S = bt(s, l);
1161
+ let g = fe(s);
1162
+ const y = s.series.some((m) => V(m)),
1163
+ F = Je(s.series),
1164
+ x = Ze(s.series),
1165
+ T = Z(s),
1166
+ u = {};
1167
+ T &&
1168
+ ((u.classBreaksRules = s.series[0]?.classBreaksRules),
1169
+ (u.xTemporalBinning = s.series[0]?.xTemporalBinning),
1170
+ (u.yTemporalBinning = s.series[0]?.yTemporalBinning),
1171
+ (u.emptyCells = s.series[0]?.emptyCells),
1172
+ (u.nullPolicy = s.nullPolicy));
1173
+ let A = !1;
1174
+ if (o !== void 0) {
1175
+ const m = je(o);
1176
+ !m.includes(f) && m.includes(e)
1177
+ ? ((g = _e()), (A = !0))
1178
+ : m.includes(f) &&
1179
+ !m.includes(e) &&
1180
+ (y ? (g = le()) : (g = Ge()), (A = !0)),
1181
+ o.find((R) => R.name === e)?.type === ce.String && (g = le()),
1182
+ g !== void 0 && tt(s, n, g);
1183
+ }
1184
+ if (
1185
+ (d === 0 &&
1186
+ (s.series = [
1187
+ M({
1188
+ config: s,
1189
+ xAxisField: e,
1190
+ aggregationType: a,
1191
+ layerInfo: l,
1192
+ commonStrings: n,
1193
+ }),
1194
+ ]),
1195
+ s.series.forEach((m) => {
1196
+ (m.x = e),
1197
+ m.query !== void 0 && (m.query.groupByFieldsForStatistics = [e]);
1198
+ }),
1199
+ i === "" || r.length > 1
1200
+ ? Fe({
1201
+ fieldName: e,
1202
+ numericFields: r,
1203
+ fieldList: o,
1204
+ })
1205
+ ? (s.series = Ct({
1206
+ config: s,
1207
+ layerInfo: l,
1208
+ xAxisField: e,
1209
+ numericFields: r,
1210
+ aggregationType: a,
1211
+ commonStrings: n,
1212
+ }))
1213
+ : (s.series = Ce({
1214
+ config: s,
1215
+ layerInfo: l,
1216
+ xAxisField: e,
1217
+ numericFields: r,
1218
+ aggregationType: a,
1219
+ commonStrings: n,
1220
+ }))
1221
+ : (await Promise.resolve(),
1222
+ (s.series = await xt({
1223
+ config: s,
1224
+ layerInfo: l,
1225
+ splitByField: i,
1226
+ xAxisField: e,
1227
+ numericFields: r,
1228
+ aggregationType: a,
1229
+ commonStrings: n,
1230
+ }))),
1231
+ S && s.series[0].type !== O.HeatSeries)
1232
+ ) {
1233
+ const m = w(o, e);
1234
+ P(s, 0, m);
1235
+ }
1236
+ if (p && s.series[0].type !== O.HeatSeries) {
1237
+ const m = Se({
1238
+ config: s,
1239
+ layerInfo: l,
1240
+ commonStrings: n,
1241
+ numericFields: r,
1242
+ aggregationType: a,
1243
+ });
1244
+ P(s, 1, m);
1245
+ }
1246
+ if (
1247
+ (s.title && c && (s.title.content.text = Q(s, l, n)),
1248
+ I({ config: s, value: null, axisIndex: 1, isMax: !1 }),
1249
+ I({ config: s, value: null, axisIndex: 1, isMax: !0 }),
1250
+ ht({ numericFields: r, aggregationType: a, config: s, layerInfo: l }),
1251
+ (F || x) &&
1252
+ (I({ config: s, value: null, axisIndex: 0, isMax: !1 }),
1253
+ I({ config: s, value: null, axisIndex: 0, isMax: !0 }),
1254
+ A))
1255
+ ) {
1256
+ const m = g?.type === O.DateAxisFormat ? X.Null : X.Interpolate;
1257
+ ft(m, s);
1258
+ }
1259
+ T &&
1260
+ ((s.series[0].classBreaksRules = u.classBreaksRules),
1261
+ (s.series[0].xTemporalBinning = u.xTemporalBinning),
1262
+ (s.series[0].yTemporalBinning = u.yTemporalBinning),
1263
+ (s.series[0].emptyCells = u.emptyCells),
1264
+ (s.nullPolicy = u.nullPolicy));
1265
+ },
1266
+ E = (t, e) => {
1267
+ (t.markerVisible = e.markerVisible),
1268
+ (t.lineSmoothed = e.lineSmoothed),
1269
+ (t.showArea = e.showArea),
1270
+ (t.areaColor = e.areaColor),
1271
+ (t.stackNegativeValuesToBaseline = e.stackNegativeValuesToBaseline),
1272
+ e.lineSymbol &&
1273
+ (t.lineSymbol = { ...e.lineSymbol, color: t.lineSymbol?.color }),
1274
+ e.markerSymbol &&
1275
+ (t.markerSymbol = {
1276
+ ...e.markerSymbol,
1277
+ color: t.markerSymbol?.color,
1278
+ });
1279
+ },
1280
+ as = (t) => {
1281
+ const { config: e, seriesIndex: i, layerInfo: r, commonStrings: a } = t,
1282
+ s = e.series?.[i],
1283
+ l = Y(e);
1284
+ let n;
1285
+ if (j(e.series) === k.BarAndLineFromFields) n = a.axisLabels.values;
1286
+ else if (Be(l)) {
1287
+ const d = s.query?.outStatistics?.[0]?.onStatisticField;
1288
+ d !== void 0 && d !== K(r.layer).idField && (n = w(r.layerFieldsInfo, d));
1289
+ } else {
1290
+ const d = String(Te(s)).trim().replace(/'/gu, ""),
1291
+ f = {
1292
+ fieldName: Y(e),
1293
+ fieldValueToMatch: d ?? "",
1294
+ subtypeInfo: ge(r.layer),
1295
+ fieldList: r.layerFieldsInfo,
1296
+ };
1297
+ n = me(f) ?? d;
1298
+ }
1299
+ return n ?? s.id;
1300
+ },
1301
+ rs = (t, e) => {
1302
+ if (Z(e)) Ft(t, e);
1303
+ else {
1304
+ e.orderOptions ??= {};
1305
+ const i = e.orderOptions?.data?.orderType;
1306
+ J(e)[0] === G.customSort &&
1307
+ i === v.Category &&
1308
+ (e.orderOptions.data = {
1309
+ orderType: v.Category,
1310
+ orderBy: [...t],
1311
+ });
1312
+ }
1313
+ },
1314
+ ls = async (t, e) => {
1315
+ const i = $(t),
1316
+ r = fe(t)?.type,
1317
+ a = ie(t),
1318
+ s = j(t.series);
1319
+ let l = [];
1320
+ return (
1321
+ r === O.CategoryAxisFormat &&
1322
+ (s === k.BarAndLineFromFields || i === W
1323
+ ? (l = a.map((n) => w(e?.layerFieldsInfo, n)))
1324
+ : i.trim() !== "" &&
1325
+ i !== W &&
1326
+ e !== void 0 &&
1327
+ (l = await et({
1328
+ layerInfo: e,
1329
+ config: t,
1330
+ category: i,
1331
+ }))),
1332
+ l
1333
+ );
1334
+ };
1335
+ function se(t, e, i) {
1336
+ const r = Q(t, e, i),
1337
+ a = rt(t),
1338
+ s = H(t);
1339
+ return r === a || s;
1340
+ }
1341
+ function Bt(t, e, i) {
1342
+ const r = Se({
1343
+ config: t,
1344
+ layerInfo: e,
1345
+ commonStrings: i,
1346
+ numericFields: ie(t),
1347
+ aggregationType: he(t),
1348
+ }),
1349
+ a = te(1, t),
1350
+ s = H(t);
1351
+ return r === a || s;
1352
+ }
1353
+ function bt(t, e) {
1354
+ const i = w(e.layerFieldsInfo, $(t)),
1355
+ r = te(0, t),
1356
+ a = H(t);
1357
+ return i === r || a;
1358
+ }
1359
+ function ns(t) {
1360
+ return L(t.series[0]) ? t.series[0].binTemporalData ?? !0 : !1;
1361
+ }
1362
+ function os(t, e) {
1363
+ e?.series.forEach((i) => {
1364
+ (i?.type === O.BarSeries || i?.type === O.LineSeries) &&
1365
+ ((i.binTemporalData = t),
1366
+ t
1367
+ ? (i.temporalBinning = {
1368
+ unit: _.Day,
1369
+ size: 0,
1370
+ timeAggregationType: Ie.Start,
1371
+ trimIncompleteTimeInterval: !0,
1372
+ nullPolicy: X.Null,
1373
+ })
1374
+ : delete i.temporalBinning);
1375
+ });
1376
+ }
1377
+ export {
1378
+ Si as $,
1379
+ Mi as A,
1380
+ Ei as B,
1381
+ Di as C,
1382
+ wi as D,
1383
+ $i as E,
1384
+ Tt as F,
1385
+ Xi as G,
1386
+ Ui as H,
1387
+ J as I,
1388
+ Wi as J,
1389
+ Yi as K,
1390
+ ji as L,
1391
+ Hi as M,
1392
+ is as N,
1393
+ ts as O,
1394
+ Ki as P,
1395
+ Qi as Q,
1396
+ he as R,
1397
+ ie as S,
1398
+ Y as T,
1399
+ ci as U,
1400
+ pt as V,
1401
+ mt as W,
1402
+ pi as X,
1403
+ yi as Y,
1404
+ fi as Z,
1405
+ gi as _,
1406
+ Q as a,
1407
+ mi as a0,
1408
+ ft as a1,
1409
+ Fi as a2,
1410
+ ls as a3,
1411
+ rs as a4,
1412
+ ns as a5,
1413
+ os as a6,
1414
+ ss as a7,
1415
+ di as a8,
1416
+ ui as a9,
1417
+ oi as aa,
1418
+ li as ab,
1419
+ ni as ac,
1420
+ nt as ad,
1421
+ St as b,
1422
+ zi as c,
1423
+ _i as d,
1424
+ Ii as e,
1425
+ vi as f,
1426
+ as as g,
1427
+ Vi as h,
1428
+ Li as i,
1429
+ Gi as j,
1430
+ Ji as k,
1431
+ Zi as l,
1432
+ es as m,
1433
+ Ti as n,
1434
+ hi as o,
1435
+ Ni as p,
1436
+ qi as q,
1437
+ Oi as r,
1438
+ Ai as s,
1439
+ ki as t,
1440
+ xi as u,
1441
+ Ci as v,
1442
+ bi as w,
1443
+ Bi as x,
1444
+ Ri as y,
1445
+ Pi as z,
1446
+ };