@arcgis/charts-components 4.34.0-next.143 → 4.34.0-next.145

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 (371) hide show
  1. package/dist/cdn/{Z6WUUF2T.js → 23P7FJNG.js} +2 -2
  2. package/dist/cdn/{GGJMORSZ.js → 2QJKR4T2.js} +1 -1
  3. package/dist/cdn/{UVEEOGJE.js → 2WGAY4SY.js} +2 -2
  4. package/dist/cdn/2XVHZGIX.js +4 -0
  5. package/dist/cdn/{WRQILX2B.js → 2YG4S5B4.js} +2 -2
  6. package/dist/cdn/{LLP5LLYH.js → 33LR6AGX.js} +2 -2
  7. package/dist/cdn/{HBSUFJH5.js → 3QXSYOL5.js} +2 -2
  8. package/dist/cdn/3U7H3BQH.js +4 -0
  9. package/dist/cdn/{VXSFM4K2.js → 4CBD6FBB.js} +2 -2
  10. package/dist/cdn/4EA36PWG.js +4 -0
  11. package/dist/cdn/{VOY4SECC.js → 4P5PBUD5.js} +2 -2
  12. package/dist/cdn/{DDN6BJZK.js → 4QLEVCHU.js} +2 -2
  13. package/dist/cdn/{423V5C4B.js → 4REBZHI5.js} +2 -2
  14. package/dist/cdn/{YATDLDWB.js → 4U7KYXFF.js} +2 -2
  15. package/dist/cdn/4VIUPVDR.js +4 -0
  16. package/dist/cdn/{TE3X665C.js → 4XP5VKHG.js} +2 -2
  17. package/dist/cdn/{B2PRCF3G.js → 53X53NXI.js} +2 -2
  18. package/dist/cdn/{M2NBNGYI.js → 55NWKHVS.js} +2 -2
  19. package/dist/cdn/5CC5IW25.js +4 -0
  20. package/dist/cdn/5LHUWJXV.js +4 -0
  21. package/dist/cdn/{VDH7KNTF.js → 5NFPOZV4.js} +2 -2
  22. package/dist/cdn/{M7SQOAZH.js → 5NGIQDTE.js} +2 -2
  23. package/dist/cdn/{OXIM4H35.js → 5WVT5RTO.js} +2 -2
  24. package/dist/cdn/5YKKGXCO.js +4 -0
  25. package/dist/cdn/{NMNYQLQR.js → 62IQVXUN.js} +2 -2
  26. package/dist/cdn/{47UT4ZJL.js → 63GZN535.js} +2 -2
  27. package/dist/cdn/{6A7Q3TQQ.js → 6J3HMQHI.js} +2 -2
  28. package/dist/cdn/{AC564Y7N.js → 6PEEQML6.js} +2 -2
  29. package/dist/cdn/6UHYVGUF.js +4 -0
  30. package/dist/cdn/{6RBT7U7F.js → 6Y2OOKIX.js} +2 -2
  31. package/dist/cdn/{UTYZK53H.js → 6YDC2P35.js} +2 -2
  32. package/dist/cdn/{OXK2XXFX.js → 73756U46.js} +2 -2
  33. package/dist/cdn/7HIO5KPB.js +4 -0
  34. package/dist/cdn/{PWHN33GS.js → 7PN3QUOU.js} +2 -2
  35. package/dist/cdn/{F4PNSY5G.js → 7UO5YSTA.js} +2 -2
  36. package/dist/cdn/A46CLGZN.js +4 -0
  37. package/dist/cdn/{664ABRXE.js → A4PAY3K3.js} +2 -2
  38. package/dist/cdn/{RL3UM6MF.js → A6VZEFSW.js} +2 -2
  39. package/dist/cdn/{FXJ6IIU7.js → AKXCBVFQ.js} +2 -2
  40. package/dist/cdn/{C722DGNP.js → AUHYYTFV.js} +2 -2
  41. package/dist/cdn/{VSWXAAOC.js → AX6UXUVU.js} +2 -2
  42. package/dist/cdn/{ZTOG5M7S.js → AXJD6UDA.js} +2 -2
  43. package/dist/cdn/{H65DVXBA.js → B6RYJ43K.js} +2 -2
  44. package/dist/cdn/{HHVXGICB.js → B7Q5NLP5.js} +2 -2
  45. package/dist/cdn/{UGS4NW57.js → BAL46UOA.js} +1 -1
  46. package/dist/cdn/{SA44ZUJK.js → BE3DFY7M.js} +2 -2
  47. package/dist/cdn/{HXX354OX.js → BFXSEIT6.js} +2 -2
  48. package/dist/cdn/{KTN3MTLN.js → BG7UG3U4.js} +2 -2
  49. package/dist/cdn/{SMDXISGW.js → BMVII32X.js} +2 -2
  50. package/dist/cdn/{QH3YQHCO.js → C2FRNUW6.js} +2 -2
  51. package/dist/cdn/CK7JI5Q3.js +4 -0
  52. package/dist/cdn/{T4ODWNN3.js → CPKR7QH2.js} +2 -2
  53. package/dist/cdn/{TX73U2FV.js → CPVTPW5Y.js} +2 -2
  54. package/dist/cdn/{YPP3POBW.js → CRL43VYJ.js} +2 -2
  55. package/dist/cdn/CXXZJZFD.js +4 -0
  56. package/dist/cdn/{2GXMFXNQ.js → D4OD66KX.js} +2 -2
  57. package/dist/cdn/{GTOLCUY3.js → D5ELH67W.js} +2 -2
  58. package/dist/cdn/{V2QONJ63.js → DCI2B2FD.js} +2 -2
  59. package/dist/cdn/{TEXZSQQM.js → DIU7E2ZK.js} +2 -2
  60. package/dist/cdn/{YJDUWPXE.js → DLUA5WT4.js} +2 -2
  61. package/dist/cdn/DWLAH5TR.js +4 -0
  62. package/dist/cdn/{27DPRRIO.js → ECKAPDVE.js} +2 -2
  63. package/dist/cdn/{BHCBPBD5.js → EDBWT6QD.js} +2 -2
  64. package/dist/cdn/{ENJOMNYR.js → EEKSQTWG.js} +2 -2
  65. package/dist/cdn/{BPU7FXWG.js → EG5MJKN4.js} +2 -2
  66. package/dist/cdn/{6BUORERH.js → EH7E3OSG.js} +2 -2
  67. package/dist/cdn/{YZL2UVIR.js → EJ5RAYJB.js} +2 -2
  68. package/dist/cdn/FB3YEJWZ.js +4 -0
  69. package/dist/cdn/{2MSHYKLY.js → G22BLGT4.js} +1 -1
  70. package/dist/cdn/{SDTEUWGA.js → G3FYI3Y4.js} +2 -2
  71. package/dist/cdn/{ZEVGYTNS.js → GCC7ZKIX.js} +1 -1
  72. package/dist/cdn/{7Y37RVXF.js → GCQQURBI.js} +2 -2
  73. package/dist/cdn/{SRARQZI7.js → GIF5B6DE.js} +2 -2
  74. package/dist/cdn/{GNVGY7HC.js → GSTGW2PC.js} +2 -2
  75. package/dist/cdn/{U4KW5WEC.js → GVZABZLI.js} +2 -2
  76. package/dist/cdn/{6NO3CTQ7.js → H73IYKQM.js} +2 -2
  77. package/dist/cdn/HQZKJCXX.js +4 -0
  78. package/dist/cdn/HYQRVUL3.js +4 -0
  79. package/dist/cdn/{LA3WXX6S.js → I2D6OCZS.js} +2 -2
  80. package/dist/cdn/I4FTJGSJ.js +4 -0
  81. package/dist/cdn/{E2NEJIIA.js → IHSY5ZJ4.js} +2 -2
  82. package/dist/cdn/IMRXRS4Q.js +4 -0
  83. package/dist/cdn/{NX27XK5S.js → IO7B7D5J.js} +2 -2
  84. package/dist/cdn/IVRMQB3J.js +4 -0
  85. package/dist/cdn/{3VOZA7FO.js → JFCOEDBZ.js} +2 -2
  86. package/dist/cdn/JODMMRMN.js +4 -0
  87. package/dist/cdn/{L4NKYMCI.js → K5RSVLLM.js} +2 -2
  88. package/dist/cdn/{OYNA3N5F.js → K6UHJ4G4.js} +2 -2
  89. package/dist/cdn/{S7PS3LSG.js → KG7QKKXQ.js} +2 -2
  90. package/dist/cdn/{WZWKVPCZ.js → KJAZIG7E.js} +2 -2
  91. package/dist/cdn/KLI4E7P6.js +4 -0
  92. package/dist/cdn/{ZS3AU56P.js → KQDF35SP.js} +2 -2
  93. package/dist/cdn/{2T3TZHDL.js → KVFLG6MZ.js} +2 -2
  94. package/dist/cdn/L2NEDME7.js +4 -0
  95. package/dist/cdn/LFVMRWWO.js +4 -0
  96. package/dist/cdn/LGZ4FYYO.js +4 -0
  97. package/dist/cdn/{U4NFJDZB.js → LIGQFHOO.js} +1 -1
  98. package/dist/cdn/LM7ZRKZD.js +4 -0
  99. package/dist/cdn/{ECPH3ETO.js → LN3CNBZI.js} +2 -2
  100. package/dist/cdn/{UR5SKTGT.js → LS5PEZ7I.js} +2 -2
  101. package/dist/cdn/LXZR2MAM.js +4 -0
  102. package/dist/cdn/{L6QNURLG.js → M5UXQELY.js} +2 -2
  103. package/dist/cdn/{V3MBA5JM.js → MB5R5GNN.js} +2 -2
  104. package/dist/cdn/{Y3F4QRXD.js → MN3GLIC7.js} +2 -2
  105. package/dist/cdn/{7PGKNQGM.js → MQ5VCBLF.js} +2 -2
  106. package/dist/cdn/MXRAVGDT.js +4 -0
  107. package/dist/cdn/N5JCBSYA.js +4 -0
  108. package/dist/cdn/NAUUD4HP.js +6 -0
  109. package/dist/cdn/NCFTABLQ.js +4 -0
  110. package/dist/cdn/{6HZURVW6.js → NNB36MNN.js} +2 -2
  111. package/dist/cdn/{NX4QKBZH.js → NORYMRRJ.js} +2 -2
  112. package/dist/cdn/{5I5TZFA5.js → NRFEFYNI.js} +2 -2
  113. package/dist/cdn/{5MDT56DS.js → NX33GLUF.js} +2 -2
  114. package/dist/cdn/{4TMOYJA4.js → O5ZIEG47.js} +2 -2
  115. package/dist/cdn/OIR4CUNN.js +4 -0
  116. package/dist/cdn/{UEDILFWW.js → ONSBYMAL.js} +2 -2
  117. package/dist/cdn/{HR444NEK.js → P2OMQBJX.js} +2 -2
  118. package/dist/cdn/{7EOCM732.js → P4RYISHS.js} +2 -2
  119. package/dist/cdn/{Q4MJCFNM.js → PE3C2VVT.js} +2 -2
  120. package/dist/cdn/{KK6BQ2CP.js → PJVEJ4VJ.js} +2 -2
  121. package/dist/cdn/PWWH3PJU.js +4 -0
  122. package/dist/cdn/{5N7T7RYN.js → QJP7W42F.js} +2 -2
  123. package/dist/cdn/{HYJWUK62.js → QLC6UQNO.js} +2 -2
  124. package/dist/cdn/{CS2LS2C4.js → QUX4W2R2.js} +2 -2
  125. package/dist/cdn/{FB7DN3DT.js → QYXR2DKG.js} +1 -1
  126. package/dist/cdn/{SYX4WHDL.js → REPR7JOJ.js} +2 -2
  127. package/dist/cdn/{PRV2MZWR.js → RGYUVBOX.js} +2 -2
  128. package/dist/cdn/RH34DBKZ.js +4 -0
  129. package/dist/cdn/{BHLQIXDL.js → RIKJVCXX.js} +2 -2
  130. package/dist/cdn/{LDV74QGM.js → RJVMVB3C.js} +2 -2
  131. package/dist/cdn/{3OUS7FTI.js → RNGWWQUB.js} +2 -2
  132. package/dist/cdn/{CTVURQ42.js → ROVK6J6N.js} +2 -2
  133. package/dist/cdn/SIBTLGYX.js +4 -0
  134. package/dist/cdn/{VBHUU653.js → SIE4BMOS.js} +2 -2
  135. package/dist/cdn/{O27CE2NW.js → SM6TRUZ4.js} +2 -2
  136. package/dist/cdn/SPTHDOS3.js +4 -0
  137. package/dist/cdn/{BYR7CBJJ.js → SRPZXNZA.js} +2 -2
  138. package/dist/cdn/{YMTBJTUG.js → STXFMN35.js} +2 -2
  139. package/dist/cdn/{4EDWTAFI.js → SUHGMJJ7.js} +2 -2
  140. package/dist/cdn/SW7REDKS.js +4 -0
  141. package/dist/cdn/{V2HKJ2XS.js → TA2Q3PNN.js} +2 -2
  142. package/dist/cdn/TCH32BGW.js +4 -0
  143. package/dist/cdn/{SIC5XWJJ.js → TDMAQDJF.js} +2 -2
  144. package/dist/cdn/{CCOKMCJT.js → TVHLL6WS.js} +1 -1
  145. package/dist/cdn/{ZEL3FQZS.js → TXKAX274.js} +2 -2
  146. package/dist/cdn/{GRIZMI32.js → UOVRTFR5.js} +2 -2
  147. package/dist/cdn/{2Y3VDB4A.js → V2VGH4SP.js} +2 -2
  148. package/dist/cdn/V4B4RG5R.js +4 -0
  149. package/dist/cdn/V4TG4F5T.js +4 -0
  150. package/dist/cdn/{GWOE3PWJ.js → V6JIQSND.js} +4 -4
  151. package/dist/cdn/V7JAB22X.js +4 -0
  152. package/dist/cdn/{CZJLDAUL.js → V7QVXIGY.js} +2 -2
  153. package/dist/cdn/VEDM662L.js +4 -0
  154. package/dist/cdn/{P4XTDT5I.js → VIM2QXPE.js} +2 -2
  155. package/dist/cdn/VY5WE4BN.js +4 -0
  156. package/dist/cdn/{U65RDXQB.js → W2DTIGXT.js} +2 -2
  157. package/dist/cdn/{OKMUSD5P.js → WCYK6P67.js} +2 -2
  158. package/dist/cdn/WL7GYTZN.js +4 -0
  159. package/dist/cdn/{HVU3PQF7.js → WM7GYBOC.js} +2 -2
  160. package/dist/cdn/{QWT35GC3.js → WN7FLYG7.js} +2 -2
  161. package/dist/cdn/{MDE477I7.js → WNFXV3QJ.js} +2 -2
  162. package/dist/cdn/{FTSITU6D.js → WWBXRNBF.js} +2 -2
  163. package/dist/cdn/{ARSMTOVV.js → XLYIJM3W.js} +2 -2
  164. package/dist/cdn/{LK353QED.js → Y2BMYWIB.js} +1 -1
  165. package/dist/cdn/{WCN5BTZK.js → Y5ZDWE52.js} +1 -1
  166. package/dist/cdn/{7LXUT7LH.js → YJOVR2R5.js} +2 -2
  167. package/dist/cdn/YK7BTVT6.js +4 -0
  168. package/dist/cdn/YL5KFG3J.js +4 -0
  169. package/dist/cdn/YMVUVTOJ.js +4 -0
  170. package/dist/cdn/{KGGAJF4P.js → YSDQ7QCE.js} +2 -2
  171. package/dist/cdn/{Z3J5IOTX.js → Z4QQHCZI.js} +2 -2
  172. package/dist/cdn/{4HULC2CI.js → Z7OF6WDB.js} +2 -2
  173. package/dist/cdn/{DZ2QWGES.js → ZDKAHVZJ.js} +2 -2
  174. package/dist/cdn/{L46ACBCL.js → ZK45PZ7Q.js} +2 -2
  175. package/dist/cdn/{FZ2FCD6T.js → ZKZX2IGF.js} +2 -2
  176. package/dist/cdn/{CLKJKT6J.js → ZMGFFXDZ.js} +2 -2
  177. package/dist/cdn/{DBFWRZDJ.js → ZNUEW42P.js} +2 -2
  178. package/dist/cdn/{FJRBRN6U.js → ZP73TTQD.js} +2 -2
  179. package/dist/cdn/{ZK4WKR7K.js → ZWQXKU3W.js} +16 -16
  180. package/dist/cdn/index.js +2 -2
  181. package/dist/chunks/action-bar-utils.js +1 -1
  182. package/dist/chunks/axis-model-wrapper.js +1 -1
  183. package/dist/chunks/bar-chart-model.js +53 -53
  184. package/dist/chunks/bar-chart-series.js +1 -1
  185. package/dist/chunks/baseline-stacking.js +1 -1
  186. package/dist/chunks/bg_BG.js +1 -1
  187. package/dist/chunks/bg_BG2.js +1 -1
  188. package/dist/chunks/box-plot-data.js +306 -348
  189. package/dist/chunks/box-plot-model.js +239 -203
  190. package/dist/chunks/chart-ui-utils.js +1 -1
  191. package/dist/chunks/chart-ui-utils2.js +1 -1
  192. package/dist/chunks/combo-bar-line-chart-model.js +128 -98
  193. package/dist/chunks/common.js +1 -1
  194. package/dist/chunks/data.js +705 -739
  195. package/dist/chunks/default.js +1 -1
  196. package/dist/chunks/gauge-model.js +195 -232
  197. package/dist/chunks/histogram-data.js +64 -68
  198. package/dist/chunks/histogram-model.js +106 -141
  199. package/dist/chunks/index.js +1 -1
  200. package/dist/chunks/index2.js +1 -1
  201. package/dist/chunks/index3.js +1 -1
  202. package/dist/chunks/index4.js +1 -1
  203. package/dist/chunks/index5.js +1 -1
  204. package/dist/chunks/interfaces.js +240 -279
  205. package/dist/chunks/interfaces2.js +1 -1
  206. package/dist/chunks/interfaces3.js +1 -1
  207. package/dist/chunks/interfaces4.js +1 -1
  208. package/dist/chunks/line-chart-model.js +51 -54
  209. package/dist/chunks/model-with-baseline-stacking.js +77 -57
  210. package/dist/chunks/model-with-data-labels.js +111 -167
  211. package/dist/chunks/model-with-multi-axes.js +672 -766
  212. package/dist/chunks/model-with-rotation.js +9 -12
  213. package/dist/chunks/pie-chart-data.js +162 -160
  214. package/dist/chunks/pie-chart-model.js +364 -449
  215. package/dist/chunks/popover-ui-utils.js +7 -7
  216. package/dist/chunks/radar-chart-model.js +51 -54
  217. package/dist/chunks/resource.js +1 -1
  218. package/dist/chunks/rest-js-object-literals.js +1 -1
  219. package/dist/chunks/runtime.js +1 -1
  220. package/dist/chunks/scatterplot-model.js +138 -168
  221. package/dist/chunks/serial-chart-model.js +281 -272
  222. package/dist/chunks/series-types.js +1 -1
  223. package/dist/chunks/series.js +1 -1
  224. package/dist/chunks/sk_SK.js +1 -1
  225. package/dist/chunks/store.js +1 -1
  226. package/dist/chunks/type-guards.js +49 -49
  227. package/dist/chunks/useT9n.js +1 -1
  228. package/dist/chunks/web-component-utils.js +20 -18
  229. package/dist/components/arcgis-chart/customElement.js +955 -955
  230. package/dist/components/arcgis-charts-action-bar/customElement.js +1 -1
  231. package/dist/components/arcgis-charts-config-axes/customElement.js +1 -1
  232. package/dist/components/arcgis-charts-config-axis/customElement.js +2 -2
  233. package/dist/components/arcgis-charts-config-bar-chart/customElement.js +27 -27
  234. package/dist/components/arcgis-charts-config-bar-chart-data/customElement.d.ts +10 -0
  235. package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +61 -61
  236. package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +20 -20
  237. package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +34 -34
  238. package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +1 -1
  239. package/dist/components/arcgis-charts-config-box-plot/customElement.js +9 -9
  240. package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +60 -60
  241. package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +1 -1
  242. package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +23 -23
  243. package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +1 -1
  244. package/dist/components/arcgis-charts-config-category-format/customElement.js +1 -1
  245. package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +1 -1
  246. package/dist/components/arcgis-charts-config-color-style/customElement.js +1 -1
  247. package/dist/components/arcgis-charts-config-colors/customElement.js +1 -1
  248. package/dist/components/arcgis-charts-config-create-flow/customElement.js +94 -96
  249. package/dist/components/arcgis-charts-config-field-select/customElement.js +1 -1
  250. package/dist/components/arcgis-charts-config-font-style/customElement.js +1 -1
  251. package/dist/components/arcgis-charts-config-format/customElement.js +50 -50
  252. package/dist/components/arcgis-charts-config-format-popover/customElement.js +1 -1
  253. package/dist/components/arcgis-charts-config-general/customElement.js +28 -28
  254. package/dist/components/arcgis-charts-config-guide/customElement.js +1 -1
  255. package/dist/components/arcgis-charts-config-guide-popover/customElement.js +1 -1
  256. package/dist/components/arcgis-charts-config-guides/customElement.js +1 -1
  257. package/dist/components/arcgis-charts-config-guides-type-popover/customElement.js +1 -1
  258. package/dist/components/arcgis-charts-config-histogram/customElement.js +5 -5
  259. package/dist/components/arcgis-charts-config-histogram-data/customElement.js +48 -48
  260. package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +2 -2
  261. package/dist/components/arcgis-charts-config-invalid-input-message/customElement.js +1 -1
  262. package/dist/components/arcgis-charts-config-line-chart/customElement.js +5 -5
  263. package/dist/components/arcgis-charts-config-line-chart-data/customElement.d.ts +20 -0
  264. package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +68 -68
  265. package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +30 -30
  266. package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +4 -4
  267. package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +1 -1
  268. package/dist/components/arcgis-charts-config-line-style/customElement.js +1 -1
  269. package/dist/components/arcgis-charts-config-number-format/customElement.js +1 -1
  270. package/dist/components/arcgis-charts-config-pie-chart/customElement.js +23 -23
  271. package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +37 -37
  272. package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.d.ts +10 -0
  273. package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +32 -32
  274. package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +39 -39
  275. package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +1 -1
  276. package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +3 -3
  277. package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +76 -75
  278. package/dist/components/arcgis-charts-config-scatter-plot-data/resource.d.ts +1 -0
  279. package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +1 -1
  280. package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +1 -1
  281. package/dist/components/arcgis-charts-config-view-charts/customElement.js +12 -8
  282. package/dist/docs/api.json +2 -2
  283. package/dist/docs/docs.json +2 -2
  284. package/dist/docs/web-types.json +1 -1
  285. package/dist/index.js +1 -1
  286. package/dist/json-schema/index.d.ts +3 -0
  287. package/dist/loader.js +1 -1
  288. package/dist/model/bar-chart-model/bar-chart-model.d.ts +1 -6
  289. package/dist/model/box-plot-model/box-plot-model.d.ts +70 -93
  290. package/dist/model/box-plot-model/utils/box-plot-data.d.ts +33 -27
  291. package/dist/model/chart-model/chart-model.d.ts +81 -189
  292. package/dist/model/chart-model/utils/types.d.ts +2 -2
  293. package/dist/model/combo-bar-line-chart-model/combo-bar-line-chart-model.d.ts +4 -4
  294. package/dist/model/gauge-model/gauge-model.d.ts +61 -153
  295. package/dist/model/gauge-model/utils/gauge-data.d.ts +24 -10
  296. package/dist/model/gauge-model/utils/gauge-series.d.ts +12 -6
  297. package/dist/model/histogram-model/histogram-model.d.ts +41 -106
  298. package/dist/model/histogram-model/utils/histogram-data.d.ts +11 -4
  299. package/dist/model/line-chart-model/line-chart-model.d.ts +2 -7
  300. package/dist/model/mixins/model-with-basic-x-axis.d.ts +23 -68
  301. package/dist/model/mixins/model-with-color-match.d.ts +3 -14
  302. package/dist/model/mixins/model-with-data-labels.d.ts +7 -26
  303. package/dist/model/mixins/model-with-guides.d.ts +3 -7
  304. package/dist/model/mixins/model-with-legend.d.ts +24 -76
  305. package/dist/model/mixins/model-with-multi-axes.d.ts +14 -40
  306. package/dist/model/mixins/model-with-rotation.d.ts +3 -8
  307. package/dist/model/mixins/model-with-temporal-binning.d.ts +15 -48
  308. package/dist/model/pie-chart-model/pie-chart-model.d.ts +88 -248
  309. package/dist/model/pie-chart-model/utils/pie-chart-data.d.ts +10 -5
  310. package/dist/model/pie-chart-model/utils/pie-chart-series.d.ts +10 -10
  311. package/dist/model/radar-chart-model/radar-chart-model.d.ts +2 -7
  312. package/dist/model/scatterplot-model/scatterplot-model.d.ts +26 -70
  313. package/dist/model/scatterplot-model/utils/scatterplot-data.d.ts +17 -5
  314. package/dist/model/serial-chart-model/serial-chart-model.d.ts +75 -85
  315. package/dist/model/serial-chart-model/utils/serial-chart-data.d.ts +32 -36
  316. package/dist/model/serial-chart-model/utils/serial-chart-series.d.ts +14 -6
  317. package/dist/model/shared/axes.d.ts +9 -6
  318. package/dist/model/shared/data.d.ts +6 -0
  319. package/dist/model/shared/utils.d.ts +0 -1
  320. package/dist/model.js +5 -5
  321. package/dist/spec/data-source.d.ts +1 -0
  322. package/dist/spec/events.d.ts +1 -1
  323. package/dist/utils/defaults/index.d.ts +24 -23
  324. package/dist/utils/ui/popover-ui-utils.d.ts +1 -1
  325. package/package.json +4 -4
  326. package/dist/cdn/2I45E4HX.js +0 -4
  327. package/dist/cdn/2KA57ESL.js +0 -4
  328. package/dist/cdn/2KJ6DUBU.js +0 -4
  329. package/dist/cdn/33MZG54V.js +0 -4
  330. package/dist/cdn/3YPORNCM.js +0 -4
  331. package/dist/cdn/4VI6KX2G.js +0 -4
  332. package/dist/cdn/5ELXT6PR.js +0 -4
  333. package/dist/cdn/5SG67GSY.js +0 -4
  334. package/dist/cdn/5SJLW2TE.js +0 -4
  335. package/dist/cdn/6F46JHJD.js +0 -4
  336. package/dist/cdn/7HZIBDBN.js +0 -4
  337. package/dist/cdn/7UNGWO45.js +0 -4
  338. package/dist/cdn/A7F4LHVM.js +0 -4
  339. package/dist/cdn/AIHQHM4V.js +0 -4
  340. package/dist/cdn/BRFPPI6O.js +0 -6
  341. package/dist/cdn/CDCPDQP7.js +0 -4
  342. package/dist/cdn/D5534GMU.js +0 -4
  343. package/dist/cdn/EJUGL4QY.js +0 -4
  344. package/dist/cdn/FDGLYVMO.js +0 -4
  345. package/dist/cdn/FFOLYKDF.js +0 -4
  346. package/dist/cdn/FOOSRTYP.js +0 -4
  347. package/dist/cdn/GVWQ2O6V.js +0 -4
  348. package/dist/cdn/JLWIFYPQ.js +0 -4
  349. package/dist/cdn/JTBNI6SM.js +0 -4
  350. package/dist/cdn/KOMDBSMS.js +0 -4
  351. package/dist/cdn/KQQ7FWII.js +0 -4
  352. package/dist/cdn/LDLGWCT5.js +0 -4
  353. package/dist/cdn/MLCW5RKR.js +0 -4
  354. package/dist/cdn/N4MLKZVD.js +0 -4
  355. package/dist/cdn/N6TQQBVF.js +0 -4
  356. package/dist/cdn/NHEJYFBE.js +0 -4
  357. package/dist/cdn/NOKTLBNB.js +0 -4
  358. package/dist/cdn/P6VORUPJ.js +0 -4
  359. package/dist/cdn/QUW3APXX.js +0 -4
  360. package/dist/cdn/QYBP46E3.js +0 -4
  361. package/dist/cdn/RDDHCGUT.js +0 -4
  362. package/dist/cdn/RFTRBMMB.js +0 -4
  363. package/dist/cdn/RKIFKKFA.js +0 -4
  364. package/dist/cdn/S3STODPH.js +0 -4
  365. package/dist/cdn/UDDG2EO4.js +0 -4
  366. package/dist/cdn/VUORQAFM.js +0 -4
  367. package/dist/cdn/WU4NBI26.js +0 -4
  368. package/dist/cdn/X25LJUWS.js +0 -4
  369. package/dist/cdn/YCIOSELY.js +0 -4
  370. package/dist/cdn/YG76ZVWF.js +0 -4
  371. package/dist/cdn/YHX5XN4Y.js +0 -4
@@ -1,9 +1,9 @@
1
- import { substitute as k } from "@arcgis/core/intl.js";
2
- import { cloneDeep as G, capitalize as U, memoize as fe, isEmpty as we } from "lodash-es";
3
- import { e as Ne, a as b, u as Q, W as h, g as O, t as w, m as te, n as Ve, i as se } from "./series-types.js";
4
- import { a as Se, R as De } from "./rest-js-object-literals.js";
5
- import { ad as ie, c9 as Oe, aU as be, cd as j, au as qe, ab as V, a9 as D, b2 as L, ac as Me, p as W, c2 as $e, b as R, cx as P, c as ke, a as je, r as M, be as Ee, bF as Fe, bf as ae, bg as re, ch as Pe, l as le, cv as Ue, m as Re, bd as Ke, x as oe, ax as We, ay as ze, aA as Xe, bc as ge, ae as _e, af as Ye } from "./interfaces.js";
6
- import { fetchT9nStringsBundle as ne, getElementLocale as ce } from "@arcgis/toolkit/intl";
1
+ import { substitute as w } from "@arcgis/core/intl.js";
2
+ import { cloneDeep as W, capitalize as k, memoize as ce, isEmpty as Be } from "lodash-es";
3
+ import { e as Ie, a as T, u as z, W as h, g as O, t as V, m as Z, n as Ce, i as G } from "./series-types.js";
4
+ import { a as de, R as Le } from "./rest-js-object-literals.js";
5
+ import { ad as Q, c9 as Ve, aU as ue, cd as $, ab as N, a9 as D, b2 as C, au as Ne, ac as De, p as E, c2 as Oe, cx as j, b as U, c as qe, a as Me, r as q, be as we, bF as ye, bf as H, bg as J, ch as $e, l as ee, cv as ke, m as je, bd as Ue, x as te, ax as Pe, ay as Ee, aA as Re, bc as le, ae as Xe, af as Ke } from "./interfaces.js";
6
+ import "@arcgis/toolkit/intl";
7
7
  import "d3-array";
8
8
  import "@arcgis/core/geometry/support/jsonUtils.js";
9
9
  import "@arcgis/core/rest/support/AttributeBinsQuery.js";
@@ -12,983 +12,949 @@ import "@arcgis/core/rest/support/StatisticDefinition.js";
12
12
  import "@arcgis/core/time/TimeExtent.js";
13
13
  import "@arcgis/core/core/promiseUtils.js";
14
14
  import "@arcgis/core/request.js";
15
- import { g as de } from "./runtime.js";
16
- import { q as Ze, l as I, n as Ge, o as Qe, j as B, k as C } from "./index4.js";
15
+ import "./runtime.js";
16
+ import { q as We, l as L, n as ze, o as _e, j as B, k as I } from "./index4.js";
17
17
  import "@arcgis/toolkit/dom";
18
- import { a as He, S } from "./common.js";
19
- import { u as Te } from "./index2.js";
18
+ import { a as Ye, S as b } from "./common.js";
19
+ import { u as ge } from "./index2.js";
20
20
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
21
21
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
22
- v4.34.0-next.143 */
23
- function X(t, e, s) {
24
- const i = t?.axes?.[e];
25
- i?.title !== void 0 ? i.title.content.text = s : i !== void 0 && (i.title = V({
26
- text: s,
22
+ v4.34.0-next.145 */
23
+ function oe(t, e, i) {
24
+ const s = t?.axes?.[e];
25
+ s?.title !== void 0 ? s.title.content.text = i : s !== void 0 && (s.title = N({
26
+ text: i,
27
27
  visible: !0,
28
- font: D(L.AxisTitle)
28
+ font: D(C.AxisTitle)
29
29
  }));
30
30
  }
31
- async function Y(t) {
32
- const { config: e, layerInfo: s, numericFields: i, aggregationType: a } = t;
33
- let r = "";
34
- if (e) {
35
- const c = Oe(e) === Ne.Stacked100, o = await ne(
36
- ce(document.documentElement).t9nLocale,
37
- de("./assets/common/t9n"),
38
- "messages."
39
- );
40
- if (c)
41
- r = o.utilsStrings.statistics.percent;
31
+ function fe(t) {
32
+ const { config: e, layerInfo: i, commonStrings: s, numericFields: a, aggregationType: r } = t;
33
+ let l = "";
34
+ if (e)
35
+ if (Ve(e) === Ie.Stacked100)
36
+ l = s.utilsStrings.statistics.percent;
42
37
  else {
43
- const y = await be(a);
44
- if (i.length === 1) {
45
- const l = j(s.layerFieldsInfo, i[0]);
46
- a === b.NoAggregation ? r = l : a === b.Count && i[0] === s.objectIdField ? r = o.utilsStrings.statistics.count : r = k(o.axisLabels.aggregationOfFieldName, {
47
- aggregation: y,
48
- fieldName: l
38
+ const u = ue(r, s);
39
+ if (a.length === 1) {
40
+ const d = $(i.layerFieldsInfo, a[0]);
41
+ r === T.NoAggregation ? l = d : r === T.Count && a[0] === i.objectIdField ? l = s.utilsStrings.statistics.count : l = w(s.axisLabels.aggregationOfFieldName, {
42
+ aggregation: u,
43
+ fieldName: d
49
44
  });
50
- } else i.length > 1 && (a === b.NoAggregation ? r = o.axisLabels.values : r = k(o.axisLabels.aggregationOfValues, {
51
- aggregation: y
45
+ } else a.length > 1 && (r === T.NoAggregation ? l = s.axisLabels.values : l = w(s.axisLabels.aggregationOfValues, {
46
+ aggregation: u
52
47
  }));
53
48
  }
54
- }
55
- return r;
49
+ return l;
56
50
  }
57
- const Ae = async (t, e) => t.axes?.[e] ?? (await qe(t.type))[e], he = (t) => {
58
- const { config: e, axis: s, axisIndex: i } = t;
59
- e.axes !== void 0 && (e.axes[i] = s);
60
- }, Pt = (t) => {
61
- const { config: e, axisIndex: s, isMax: i } = t;
51
+ const me = (t, e, i) => t.axes?.[e] ?? Ne(i, t.type)[e], xe = (t) => {
52
+ const { config: e, axis: i, axisIndex: s } = t;
53
+ e.axes !== void 0 && (e.axes[s] = i);
54
+ }, jt = (t) => {
55
+ const { config: e, axisIndex: i, isMax: s } = t;
62
56
  let a = Number.NaN;
63
- return i ? a = e.axes?.[s]?.maximum : a = e.axes?.[s]?.minimum, a ?? Number.NaN;
64
- }, f = (t) => {
65
- const { config: e, value: s, axisIndex: i, isMax: a } = t, r = e?.axes?.[i];
66
- r !== void 0 && (a ? r.maximum = s : r.minimum = s);
57
+ return s ? a = e.axes?.[i]?.maximum : a = e.axes?.[i]?.minimum, a ?? Number.NaN;
58
+ }, A = (t) => {
59
+ const { config: e, value: i, axisIndex: s, isMax: a } = t, r = e?.axes?.[s];
60
+ r !== void 0 && (a ? r.maximum = i : r.minimum = i);
67
61
  }, Ut = (t, e) => {
68
- f({ config: t, value: e, axisIndex: 0, isMax: !1 });
69
- }, Je = (t) => t.axes?.[0]?.valueFormat ?? ie(), et = async (t, e) => {
70
- const s = await Ae(t, 0);
71
- if (s !== void 0 && e !== void 0) {
72
- const i = {
62
+ A({ config: t, value: e, axisIndex: 0, isMax: !1 });
63
+ }, pe = (t) => t.axes?.[0]?.valueFormat ?? Q(), Ze = (t, e, i) => {
64
+ const s = me(t, 0, e);
65
+ if (s !== void 0 && i !== void 0) {
66
+ const a = {
73
67
  ...s,
74
- valueFormat: e
68
+ valueFormat: i
75
69
  };
76
- he({ config: t, axis: i, axisIndex: 0 });
70
+ xe({ config: t, axis: a, axisIndex: 0 });
77
71
  }
78
- }, pe = (t, e, s) => {
79
- const i = t.axes?.[e];
80
- i !== void 0 && (i.integerOnlyValues = s);
81
- }, tt = (t) => {
82
- const e = Q(t.series);
72
+ }, ne = (t, e, i) => {
73
+ const s = t.axes?.[e];
74
+ s !== void 0 && (s.integerOnlyValues = i);
75
+ }, Ge = (t) => {
76
+ const e = z(t.series);
83
77
  return e === h.BarSeries || e === h.ComboLineAndBarSeries || e === h.LineSeries;
84
- }, st = (t) => {
85
- const { axisIndex: e, config: s, isMultiAxis: i } = t;
78
+ }, Qe = (t) => {
79
+ const { axisIndex: e, config: i, isMultiAxis: s } = t;
86
80
  let a = !1;
87
- return e === 0 || e === 1 && i ? a = !0 : e === 2 && (a = tt(s)), a;
81
+ return e === 0 || e === 1 && s ? a = !0 : e === 2 && (a = Ge(i)), a;
82
+ }, Pt = (t) => {
83
+ const { axisIndex: e, func: i, config: s } = t;
84
+ return Qe({ axisIndex: e, config: s, isMultiAxis: !0 }) ? i(e) : void 0;
85
+ }, Et = (t, e) => {
86
+ let i;
87
+ const s = e.axes?.[t]?.valueFormat;
88
+ return (t === 0 || t >= 1 && We(s)) && (i = s), i;
88
89
  }, Rt = (t) => {
89
- const { axisIndex: e, func: s, config: i } = t;
90
- return st({ axisIndex: e, config: i, isMultiAxis: !0 }) ? s(e) : void 0;
91
- }, Kt = (t, e) => {
92
- let s;
93
- const i = e.axes?.[t]?.valueFormat;
94
- return (t === 0 || t >= 1 && Ze(i)) && (s = i), s;
95
- }, Wt = async (t) => {
96
- const { config: e, valueFormat: s, axisIndex: i = 0 } = t, a = await Ae(e, i);
97
- if (a !== void 0 && s !== void 0) {
98
- const r = {
99
- ...a,
90
+ const { config: e, commonStrings: i, valueFormat: s, axisIndex: a = 0 } = t, r = me(e, a, i);
91
+ if (r !== void 0 && s !== void 0) {
92
+ const l = {
93
+ ...r,
100
94
  valueFormat: s
101
95
  };
102
- he({
96
+ xe({
103
97
  config: e,
104
- axis: r,
105
- axisIndex: i
98
+ axis: l,
99
+ axisIndex: a
106
100
  });
107
101
  }
108
- }, zt = (t, e) => t.axes?.[e]?.isLogarithmic ?? !1, Xt = (t) => {
109
- const { config: e, isLogarithmic: s, axisIndex: i } = t, a = e.axes?.[i];
110
- a && (a.isLogarithmic = s, f({ config: e, value: null, axisIndex: i, isMax: !0 }), f({ config: e, value: null, axisIndex: i, isMax: !1 }));
111
- }, _t = (t) => {
112
- const { config: e, scrollbar: s, axisIndex: i } = t;
113
- e.axes?.[i] !== void 0 && (e.axes[i].scrollbar = s);
114
- }, it = (t) => t.title?.content.text ?? "", Yt = (t, e) => {
115
- e.title !== void 0 ? e.title.content.text = t : e.title === void 0 && t !== void 0 && (e.title = V({
102
+ }, Xt = (t, e) => t.axes?.[e]?.isLogarithmic ?? !1, Kt = (t) => {
103
+ const { config: e, isLogarithmic: i, axisIndex: s } = t, a = e.axes?.[s];
104
+ a && (a.isLogarithmic = i, A({ config: e, value: null, axisIndex: s, isMax: !0 }), A({ config: e, value: null, axisIndex: s, isMax: !1 }));
105
+ }, Wt = (t) => {
106
+ const { config: e, scrollbar: i, axisIndex: s } = t;
107
+ e.axes?.[s] !== void 0 && (e.axes[s].scrollbar = i);
108
+ }, zt = (t) => t.version, He = (t) => t.title?.content.text ?? "", _t = (t, e) => {
109
+ e.title !== void 0 ? e.title.content.text = t : e.title === void 0 && t !== void 0 && (e.title = N({
116
110
  text: t,
117
111
  visible: !0,
118
- font: D(L.ChartTitle)
112
+ font: D(C.ChartTitle)
119
113
  }));
120
- }, Zt = (t) => t.subtitle?.content.text ?? "", Gt = (t, e) => {
121
- e.subtitle !== void 0 ? e.subtitle.content.text = t : e.subtitle === void 0 && t !== void 0 && (e.subtitle = V({
114
+ }, Yt = (t) => t.subtitle?.content.text ?? "", Zt = (t, e) => {
115
+ e.subtitle !== void 0 ? e.subtitle.content.text = t : e.subtitle === void 0 && t !== void 0 && (e.subtitle = N({
122
116
  text: t,
123
117
  visible: !0,
124
- font: D(L.ChartSubtitle)
118
+ font: D(C.ChartSubtitle)
125
119
  }));
126
- }, Qt = (t) => t.footer?.content.text ?? "", Ht = (t, e) => {
127
- e.footer !== void 0 ? e.footer.content.text = t : e.footer === void 0 && t !== void 0 && (e.footer = V({
120
+ }, Gt = (t) => t.footer?.content.text ?? "", Qt = (t, e) => {
121
+ e.footer !== void 0 ? e.footer.content.text = t : e.footer === void 0 && t !== void 0 && (e.footer = N({
128
122
  text: t,
129
123
  visible: !0,
130
- font: D(L.DescriptionText)
124
+ font: D(C.DescriptionText)
131
125
  }));
132
- }, Jt = (t) => t.title ? t.title.visible ?? !0 : !1, es = (t, e) => {
133
- e.title !== void 0 ? e.title.visible = t : e.title === void 0 && (e.title = V({
126
+ }, Ht = (t) => t.title ? t.title.visible ?? !0 : !1, Jt = (t, e) => {
127
+ e.title !== void 0 ? e.title.visible = t : e.title === void 0 && (e.title = N({
134
128
  text: "",
135
129
  visible: t,
136
- font: D(L.ChartTitle)
130
+ font: D(C.ChartTitle)
137
131
  }));
138
- }, ts = (t) => t.subtitle ? t.subtitle.visible ?? !0 : !1, ss = (t, e) => {
139
- e.subtitle !== void 0 ? e.subtitle.visible = t : e.subtitle === void 0 && (e.subtitle = V({
132
+ }, ei = (t) => t.subtitle ? t.subtitle.visible ?? !0 : !1, ti = (t, e) => {
133
+ e.subtitle !== void 0 ? e.subtitle.visible = t : e.subtitle === void 0 && (e.subtitle = N({
140
134
  text: "",
141
135
  visible: t,
142
- font: D(L.ChartSubtitle)
136
+ font: D(C.ChartSubtitle)
143
137
  }));
144
- }, at = (t) => t.footer?.visible ?? !1, is = (t, e) => {
145
- e.footer !== void 0 ? e.footer.visible = t : e.footer === void 0 && t !== at(e) && (e.footer = V({
138
+ }, Je = (t) => t.footer?.visible ?? !1, ii = (t, e) => {
139
+ e.footer !== void 0 ? e.footer.visible = t : e.footer === void 0 && t !== Je(e) && (e.footer = N({
146
140
  text: "",
147
141
  visible: !0,
148
- font: D(L.DescriptionText)
142
+ font: D(C.DescriptionText)
149
143
  }));
150
- }, as = (t) => t.chartRenderer, rs = (t, e) => {
144
+ }, si = (t) => t.chartRenderer, ai = (t, e) => {
151
145
  e.chartRenderer = t;
152
- }, ls = (t, e) => t.axes?.[e]?.title?.content, os = (t) => {
153
- const { config: e, axisIndex: s, symbol: i } = t, a = e.axes?.[s];
146
+ }, ri = (t, e) => t.axes?.[e]?.title?.content, li = (t) => {
147
+ const { config: e, axisIndex: i, symbol: s } = t, a = e.axes?.[i];
154
148
  if (a !== void 0) {
155
149
  const r = a.title?.content.text;
156
- (a.title === void 0 || i === void 0) && (a.title = V({
150
+ (a.title === void 0 || s === void 0) && (a.title = N({
157
151
  text: "",
158
152
  visible: !0,
159
- font: D(L.AxisTitle),
160
- type: L.AxisTitle
161
- })), i !== void 0 && (a.title.content = i), a.title.content.text = r;
153
+ font: D(C.AxisTitle),
154
+ type: C.AxisTitle
155
+ })), s !== void 0 && (a.title.content = s), a.title.content.text = r;
162
156
  }
163
- }, ns = (t) => {
157
+ }, oi = (t) => {
164
158
  for (const e of t.axes ?? [])
165
159
  if (e?.labels !== void 0)
166
160
  return e.labels.content;
167
- }, cs = (t, e) => {
168
- for (const s of e.axes ?? [])
169
- if (s !== void 0) {
170
- const i = s.labels?.content.text;
171
- t === void 0 ? s.labels = V({
161
+ }, ni = (t, e) => {
162
+ for (const i of e.axes ?? [])
163
+ if (i !== void 0) {
164
+ const s = i.labels?.content.text;
165
+ t === void 0 ? i.labels = N({
172
166
  text: "",
173
167
  visible: !0,
174
- font: D(L.AxisLabels),
175
- type: L.AxisLabels
176
- }) : s.labels.content = G(t), s.labels.content.text = i;
168
+ font: D(C.AxisLabels),
169
+ type: C.AxisLabels
170
+ }) : i.labels.content = W(t), i.labels.content.text = s;
177
171
  }
178
- }, ds = (t) => {
172
+ }, ci = (t) => {
179
173
  for (const e of t.axes ?? [])
180
174
  if (e?.lineSymbol !== void 0)
181
175
  return e.lineSymbol;
182
- }, us = (t, e) => {
183
- for (const s of e.axes ?? [])
184
- s !== void 0 && (s.lineSymbol = G(t) ?? Me());
185
- }, ys = (t) => {
176
+ }, di = (t, e) => {
177
+ for (const i of e.axes ?? [])
178
+ i !== void 0 && (i.lineSymbol = W(t) ?? De());
179
+ }, ui = (t) => {
186
180
  for (const e of t.axes ?? [])
187
181
  if (e?.grid !== void 0)
188
182
  return e.grid;
189
- }, ms = (t, e, s) => {
190
- const i = e.axes;
191
- s.forEach((a) => {
192
- i?.[a] !== void 0 && (i[a].grid = G(t));
183
+ }, yi = (t, e, i) => {
184
+ const s = e.axes;
185
+ i.forEach((a) => {
186
+ s?.[a] !== void 0 && (s[a].grid = W(t));
193
187
  });
194
- }, ue = (t, e) => e.axes?.[t]?.title?.content.text ?? "", xs = (t, e, s) => {
195
- const i = s.axes?.[e];
196
- i?.title !== void 0 ? i.title.content.text = t : i !== void 0 && i?.title === void 0 && (i.title = V({
188
+ }, ie = (t, e) => e.axes?.[t]?.title?.content.text ?? "", gi = (t, e, i) => {
189
+ const s = i.axes?.[e];
190
+ s?.title !== void 0 ? s.title.content.text = t : s !== void 0 && s?.title === void 0 && (s.title = N({
197
191
  text: t,
198
192
  visible: !0,
199
- font: D(L.AxisTitle)
193
+ font: D(C.AxisTitle)
200
194
  }));
201
- }, gs = (t, e) => e.axes?.[t]?.title?.visible ?? !1, ps = (t, e, s) => {
202
- const i = s.axes?.[e];
203
- i?.title !== void 0 ? i.title.visible = t : i !== void 0 && i?.title === void 0 && (i.title = V({
204
- text: ue(e, s),
195
+ }, fi = (t, e) => e.axes?.[t]?.title?.visible ?? !1, mi = (t, e, i) => {
196
+ const s = i.axes?.[e];
197
+ s?.title !== void 0 ? s.title.visible = t : s !== void 0 && s?.title === void 0 && (s.title = N({
198
+ text: ie(e, i),
205
199
  visible: t,
206
- font: D(L.AxisTitle)
200
+ font: D(C.AxisTitle)
207
201
  }));
208
- }, fs = (t, e) => t.axes?.[e]?.displayZeroLine ?? !1, Ss = (t, e, s) => {
209
- t.axes?.[s] !== void 0 && (t.axes[s].displayZeroLine = e);
210
- }, bs = (t, e) => t.axes?.[e]?.displayCursorTooltip ?? !1, Fs = (t) => {
211
- const { config: e, displayCursorTooltip: s, axisIndex: i } = t;
212
- e.axes?.[i] !== void 0 && (e.axes[i].displayCursorTooltip = s);
213
- }, Ts = (t, e) => t.axes?.[e]?.buffer ?? !1, As = (t) => {
214
- const { config: e, buffer: s, axisIndex: i } = t, a = e.axes?.[i];
215
- a !== void 0 && (a.buffer = s);
216
- }, hs = (t, e) => t.axes?.[e]?.tickSpacing, vs = (t) => {
217
- const { config: e, tickSpacing: s, axisIndex: i } = t;
218
- e.axes?.[i] !== void 0 && (e.axes[i].tickSpacing = s);
219
- }, Bs = (t, e) => t.axes?.[e]?.integerOnlyValues ?? !1, Cs = (t) => {
220
- const { config: e, integerOnlyValues: s, axisIndex: i } = t;
221
- e.axes?.[i] !== void 0 && (e.axes[i].integerOnlyValues = s);
222
- }, rt = (t) => {
223
- let e = S.xAxisAsc;
224
- const s = t.orderOptions?.data?.orderType ?? w.Category, i = t.orderOptions?.data?.orderBy ?? O.Ascending;
225
- return s === w.Category && Array.isArray(i) ? e = S.customSort : s === w.Category ? i === O.Ascending ? e = S.xAxisAsc : e = S.xAxisDesc : i === O.Ascending ? e = S.yAxisAsc : e = S.yAxisDesc, e;
226
- }, lt = (t) => {
227
- const e = Q(t.series);
228
- let s = !1;
229
- return (e === h.BarSeries || e === h.LineSeries) && (s = rt(t) === S.customSort), s;
230
- }, Ls = (t) => {
202
+ }, xi = (t, e) => t.axes?.[e]?.displayZeroLine ?? !1, pi = (t, e, i) => {
203
+ t.axes?.[i] !== void 0 && (t.axes[i].displayZeroLine = e);
204
+ }, Si = (t, e) => t.axes?.[e]?.displayCursorTooltip ?? !1, Fi = (t) => {
205
+ const { config: e, displayCursorTooltip: i, axisIndex: s } = t;
206
+ e.axes?.[s] !== void 0 && (e.axes[s].displayCursorTooltip = i);
207
+ }, bi = (t, e) => t.axes?.[e]?.buffer ?? !1, Ai = (t) => {
208
+ const { config: e, buffer: i, axisIndex: s } = t, a = e.axes?.[s];
209
+ a !== void 0 && (a.buffer = i);
210
+ }, Ti = (t, e) => t.axes?.[e]?.tickSpacing, hi = (t) => {
211
+ const { config: e, tickSpacing: i, axisIndex: s } = t;
212
+ e.axes?.[s] !== void 0 && (e.axes[s].tickSpacing = i);
213
+ }, vi = (t, e) => t.axes?.[e]?.integerOnlyValues ?? !1, Bi = (t) => {
214
+ const { config: e, integerOnlyValues: i, axisIndex: s } = t;
215
+ e.axes?.[s] !== void 0 && (e.axes[s].integerOnlyValues = i);
216
+ }, et = (t) => {
217
+ let e = b.xAxisAsc;
218
+ const i = t.orderOptions?.data?.orderType ?? V.Category, s = t.orderOptions?.data?.orderBy ?? O.Ascending;
219
+ return i === V.Category && Array.isArray(s) ? e = b.customSort : i === V.Category ? s === O.Ascending ? e = b.xAxisAsc : e = b.xAxisDesc : s === O.Ascending ? e = b.yAxisAsc : e = b.yAxisDesc, e;
220
+ }, tt = (t) => {
221
+ const e = z(t.series);
222
+ let i = !1;
223
+ return (e === h.BarSeries || e === h.LineSeries) && (i = et(t) === b.customSort), i;
224
+ }, Ii = (t) => {
231
225
  let e = [];
232
- const s = t.orderOptions?.data?.orderType;
233
- return lt(t) && s === w.Category && (e = t.orderOptions?.data?.orderBy), e;
234
- }, Is = (t, e, s) => {
235
- let i = w.Category, a = O.Ascending;
236
- const r = Q(e.series);
237
- e.orderOptions ??= {}, t === S.customSort && s !== void 0 ? (a = [...s], e.orderOptions.data = {
238
- orderType: i,
226
+ const i = t.orderOptions?.data?.orderType;
227
+ return tt(t) && i === V.Category && (e = t.orderOptions?.data?.orderBy), e;
228
+ }, Ci = (t, e, i) => {
229
+ let s = V.Category, a = O.Ascending;
230
+ const r = z(e.series);
231
+ e.orderOptions ??= {}, t === b.customSort && i !== void 0 ? (a = [...i], e.orderOptions.data = {
232
+ orderType: s,
239
233
  orderBy: a
240
- }) : (r === h.BarSeries || r === h.LineSeries) && (i = t === S.xAxisAsc || t === S.xAxisDesc ? w.Category : w.YValue, a = t === S.xAxisAsc || t === S.yAxisAsc ? O.Ascending : O.Descending, e.orderOptions.data = {
241
- orderType: i,
234
+ }) : (r === h.BarSeries || r === h.LineSeries) && (s = t === b.xAxisAsc || t === b.xAxisDesc ? V.Category : V.YValue, a = t === b.xAxisAsc || t === b.yAxisAsc ? O.Ascending : O.Descending, e.orderOptions.data = {
235
+ orderType: s,
242
236
  orderBy: a
243
237
  });
244
- }, E = (t) => t?.series?.[0]?.x ?? "", ye = (t) => {
238
+ }, R = (t) => t?.series?.[0]?.x ?? "", se = (t) => {
245
239
  const {
246
240
  config: e,
241
+ xAxisField: i,
247
242
  numericFields: s,
248
- aggregationType: i,
249
- mode: a,
250
- layer: r,
251
- numericFieldIndex: c,
252
- seriesIndex: o,
253
- splitByField: y = ""
254
- } = t, l = Q(e.series), p = W(e.series), d = r ? $e(r).objectIdField : "FID", x = E(e), n = s.length === 1 && s[0] === d;
255
- let u = "y", m = "y";
256
- switch (l) {
243
+ aggregationType: a,
244
+ mode: r,
245
+ layer: l,
246
+ numericFieldIndex: n,
247
+ seriesIndex: u,
248
+ splitByField: d = ""
249
+ } = t, c = z(e.series), x = E(e.series), m = l ? Oe(l).objectIdField : "FID", p = s.length === 1 && s[0] === m;
250
+ let y = "y", o = "y";
251
+ switch (c) {
257
252
  case h.PieSeries: {
258
- i !== b.NoAggregation ? a === He.Category ? (u = `${i}_${s[0]}_0`.toUpperCase(), m = n ? U(b.Count) : U(`${i} of ${s[0]}`)) : u = je : u = s[0];
253
+ a !== T.NoAggregation ? r === Ye.Category ? (y = `${a}_${s[0]}_0`.toUpperCase(), o = p ? k(T.Count) : k(`${a} of ${s[0]}`)) : y = Me : y = s[0];
259
254
  break;
260
255
  }
261
256
  case h.BarSeries:
262
257
  case h.LineSeries:
263
258
  case h.ComboLineAndBarSeries:
264
259
  case h.RadarSeries: {
265
- if (y === "" || s.length > 1)
266
- x === R || x === void 0 || x.trim() === "" || p === P.BarAndLineFromFields ? u = ke : (u = `${i}_${s[c ?? 0]}_${c ?? 0}`.toUpperCase(), m = n ? U(b.Count) : U(`${i} of ${s[c ?? 0]}`));
260
+ if (d === "" || s.length > 1)
261
+ ae(i, s) || x === j.BarAndLineFromFields ? y = qe : (y = `${a}_${s[n ?? 0]}_${n ?? 0}`.toUpperCase(), o = p ? k(T.Count) : k(`${a} of ${s[n ?? 0]}`));
267
262
  else {
268
- const g = s[0];
269
- u = `${i}_${g}_${o ?? 0}`.toUpperCase(), m = n ? U(b.Count) : U(`${i} of ${g}`);
263
+ const F = s[0];
264
+ y = `${a}_${F}_${u ?? 0}`.toUpperCase(), o = p ? k(T.Count) : k(`${a} of ${F}`);
270
265
  }
271
266
  break;
272
267
  }
273
268
  }
274
269
  return {
275
- name: u,
276
- description: m
270
+ name: y,
271
+ description: o
277
272
  };
278
- }, ot = (t) => {
273
+ };
274
+ function ae(t, e) {
275
+ return (t === U || t === void 0 || t.trim() === "") && (e?.length ?? 0) >= 0;
276
+ }
277
+ const it = (t) => {
279
278
  let e;
280
- const s = t.series[0];
281
- return M(s) && (e = s.temporalBinning?.size), e;
282
- }, nt = (t) => {
279
+ const i = t.series[0];
280
+ return q(i) && (e = i.temporalBinning?.size), e;
281
+ }, st = (t) => {
283
282
  let e;
284
- const s = t.series[0];
285
- return M(s) && (e = s.temporalBinning?.unit), e;
286
- }, ct = (t) => {
283
+ const i = t.series[0];
284
+ return q(i) && (e = i.temporalBinning?.unit), e;
285
+ }, at = (t) => {
287
286
  let e;
288
- const s = t.series[0];
289
- return M(s) && (e = s.temporalBinning?.timeAggregationType), e;
290
- }, dt = (t) => {
287
+ const i = t.series[0];
288
+ return q(i) && (e = i.temporalBinning?.timeAggregationType), e;
289
+ }, rt = (t) => {
291
290
  let e;
292
- const s = t.series[0];
293
- return M(s) && (e = s.temporalBinning?.trimIncompleteTimeInterval), e;
294
- }, ut = (t) => {
291
+ const i = t.series[0];
292
+ return q(i) && (e = i.temporalBinning?.trimIncompleteTimeInterval), e;
293
+ }, lt = (t) => {
295
294
  let e;
296
- const s = t.series[0];
297
- return M(s) && (e = s.temporalBinning?.nullPolicy), e;
298
- }, ve = (t, e) => {
299
- e?.series?.forEach((s) => {
300
- M(s) && (s.temporalBinning ??= {}, s.temporalBinning.size = t);
301
- }), f({ config: e, value: null, axisIndex: 1, isMax: !1 }), f({ config: e, value: null, axisIndex: 1, isMax: !0 });
302
- }, yt = (t, e) => {
303
- e?.series?.forEach((s) => {
304
- M(s) && (s.temporalBinning ??= {}, s.temporalBinning.nullPolicy = t);
305
- }), f({ config: e, value: null, axisIndex: 1, isMax: !1 }), f({ config: e, value: null, axisIndex: 1, isMax: !0 });
306
- }, ws = (t, e) => {
307
- e.series?.forEach((s) => {
308
- M(s) && (s.temporalBinning ??= {}, s.temporalBinning.unit = t);
309
- }), f({ config: e, value: null, axisIndex: 1, isMax: !1 }), f({ config: e, value: null, axisIndex: 1, isMax: !0 });
310
- }, Ns = (t, e) => {
311
- e.series?.forEach((s) => {
312
- M(s) && (s.temporalBinning ??= {}, s.temporalBinning.timeAggregationType = t);
313
- }), f({ config: e, value: null, axisIndex: 1, isMax: !1 }), f({ config: e, value: null, axisIndex: 1, isMax: !0 });
314
- }, Vs = (t, e) => {
315
- e.series?.forEach((s) => {
316
- M(s) && (s.temporalBinning ??= {}, s.temporalBinning.trimIncompleteTimeInterval = t);
317
- }), f({ config: e, value: null, axisIndex: 1, isMax: !1 }), f({ config: e, value: null, axisIndex: 1, isMax: !0 });
318
- }, Ds = (t) => {
319
- ve(0, t);
295
+ const i = t.series[0];
296
+ return q(i) && (e = i.temporalBinning?.nullPolicy), e;
297
+ }, Se = (t, e) => {
298
+ e?.series?.forEach((i) => {
299
+ q(i) && (i.temporalBinning ??= {}, i.temporalBinning.size = t);
300
+ }), A({ config: e, value: null, axisIndex: 1, isMax: !1 }), A({ config: e, value: null, axisIndex: 1, isMax: !0 });
301
+ }, ot = (t, e) => {
302
+ e?.series?.forEach((i) => {
303
+ q(i) && (i.temporalBinning ??= {}, i.temporalBinning.nullPolicy = t);
304
+ }), A({ config: e, value: null, axisIndex: 1, isMax: !1 }), A({ config: e, value: null, axisIndex: 1, isMax: !0 });
305
+ }, Li = (t, e) => {
306
+ e.series?.forEach((i) => {
307
+ q(i) && (i.temporalBinning ??= {}, i.temporalBinning.unit = t);
308
+ }), A({ config: e, value: null, axisIndex: 1, isMax: !1 }), A({ config: e, value: null, axisIndex: 1, isMax: !0 });
309
+ }, Vi = (t, e) => {
310
+ e.series?.forEach((i) => {
311
+ q(i) && (i.temporalBinning ??= {}, i.temporalBinning.timeAggregationType = t);
312
+ }), A({ config: e, value: null, axisIndex: 1, isMax: !1 }), A({ config: e, value: null, axisIndex: 1, isMax: !0 });
313
+ }, Ni = (t, e) => {
314
+ e.series?.forEach((i) => {
315
+ q(i) && (i.temporalBinning ??= {}, i.temporalBinning.trimIncompleteTimeInterval = t);
316
+ }), A({ config: e, value: null, axisIndex: 1, isMax: !1 }), A({ config: e, value: null, axisIndex: 1, isMax: !0 });
317
+ }, Di = (t) => {
318
+ Se(0, t);
320
319
  };
321
- async function mt(t) {
322
- const { config: e, layer: s, xAxisField: i, splitByField: a, layerFieldsInfo: r, aggregationFields: c, fetchNullValues: o } = t, l = r.filter((F) => F.name === a)[0]?.type, p = o !== !0 ? `${a} IS NOT NULL` : "", d = i && o !== !0 ? `${i} IS NOT NULL` : "", { where: x } = e?.dataFilters ?? {}, n = {
323
- where: Fe([x, p, d]),
320
+ async function nt(t) {
321
+ const { config: e, layer: i, xAxisField: s, splitByField: a, layerFieldsInfo: r, aggregationFields: l, fetchNullValues: n } = t, d = r.filter((g) => g.name === a)[0]?.type, c = n !== !0 ? `${a} IS NOT NULL` : "", x = s && n !== !0 ? `${s} IS NOT NULL` : "", { where: m } = e?.dataFilters ?? {}, p = {
322
+ where: ye([m, c, x]),
324
323
  // excluding the null values from the list
325
- orderByFields: Pe(a) ? [] : [`${a} ${O.Ascending}`],
324
+ orderByFields: $e(a) ? [] : [`${a} ${O.Ascending}`],
326
325
  // default sorting ascending for split-by field
327
326
  geometry: e?.dataFilters?.geometry
328
- }, u = s;
329
- let m = "";
330
- c.length === 0 ? m = u?.objectIdField ?? "" : [m] = c;
331
- let g = await Te({
332
- queryObject: u,
327
+ }, y = i;
328
+ let o = "";
329
+ l.length === 0 ? o = y?.objectIdField ?? "" : [o] = l;
330
+ let F = await ge({
331
+ queryObject: y,
333
332
  category: e?.series[0].x ?? "",
334
333
  splitByField: a,
335
- queryConfig: n
334
+ queryConfig: p
336
335
  });
337
336
  if (e) {
338
- const F = e?.series.map((T) => le({ where: T.query?.where })?.toString() ?? "").filter((T) => T !== void 0 && T !== "");
339
- g = Ue({
340
- arrayA: g,
341
- arrayB: F,
342
- getKey: (T) => T === null ? null : T?.toString()
337
+ const g = e?.series.map((f) => ee({ where: f.query?.where })?.toString() ?? "").filter((f) => f !== void 0 && f !== "");
338
+ F = ke({
339
+ arrayA: F,
340
+ arrayB: g,
341
+ getKey: (f) => f === null ? null : f?.toString()
343
342
  });
344
343
  }
345
- return { categoriesArray: g, splitByFieldType: l, numericalField: m };
344
+ return { categoriesArray: F, splitByFieldType: d, numericalField: o };
346
345
  }
347
- function Os(t, e) {
348
- let s = e === "";
349
- for (const i of t)
350
- if (e === i.name) {
351
- s = !0;
346
+ function Oi(t, e) {
347
+ let i = e === "";
348
+ for (const s of t)
349
+ if (e === s.name) {
350
+ i = !0;
352
351
  break;
353
352
  }
354
- return s;
353
+ return i;
355
354
  }
356
- function qs(t, e) {
357
- const s = Ee(t);
358
- let i = e.length === 0, a = 0;
355
+ function qi(t, e) {
356
+ const i = we(t);
357
+ let s = e.length === 0, a = 0;
359
358
  for (const r of e) {
360
- for (const c of s)
361
- if (r === c && (a += 1), a === e.length) {
362
- i = !0;
359
+ for (const l of i)
360
+ if (r === l && (a += 1), a === e.length) {
361
+ s = !0;
363
362
  break;
364
363
  }
365
- if (i)
364
+ if (s)
366
365
  break;
367
366
  }
368
- return i;
367
+ return s;
369
368
  }
370
- function Ms(t, e) {
371
- e.forEach((s) => {
372
- Object.getOwnPropertyNames(s.prototype).forEach((i) => {
369
+ function Mi(t, e) {
370
+ e.forEach((i) => {
371
+ Object.getOwnPropertyNames(i.prototype).forEach((s) => {
373
372
  Object.defineProperty(
374
373
  t.prototype,
375
- i,
376
- Object.getOwnPropertyDescriptor(s.prototype, i) || /* @__PURE__ */ Object.create(null)
374
+ s,
375
+ Object.getOwnPropertyDescriptor(i.prototype, s) || /* @__PURE__ */ Object.create(null)
377
376
  );
378
377
  });
379
378
  });
380
379
  }
381
- async function xt(t) {
382
- const { layerInfo: e, config: s, category: i } = t, { layer: a } = e, { where: r } = s?.dataFilters ?? {}, { fetchNullValues: c } = s?.series?.[0]?.query ?? {}, o = c !== !0 ? `${i} IS NOT NULL` : "", y = {
383
- where: Fe([r, o]),
380
+ async function ct(t) {
381
+ const { layerInfo: e, config: i, category: s } = t, { layer: a } = e, { where: r } = i?.dataFilters ?? {}, { fetchNullValues: l } = i?.series?.[0]?.query ?? {}, n = l !== !0 ? `${s} IS NOT NULL` : "", u = {
382
+ where: ye([r, n]),
384
383
  // excluding the null values from the list
385
384
  orderByFields: [],
386
- geometry: s?.dataFilters?.geometry
387
- }, l = ae(a);
385
+ geometry: i?.dataFilters?.geometry
386
+ }, d = H(a);
388
387
  return (
389
388
  // fetch unique category values asynchronously
390
- (await Te({ queryObject: a, category: i, queryConfig: y })).map((d) => {
391
- const x = String(d);
392
- return re({
393
- fieldName: i,
394
- fieldValueToMatch: x,
395
- subtypeInfo: l,
389
+ (await ge({ queryObject: a, category: s, queryConfig: u })).map((x) => {
390
+ const m = String(x);
391
+ return J({
392
+ fieldName: s,
393
+ fieldValueToMatch: m,
394
+ subtypeInfo: d,
396
395
  // use the retrieved subtype information
397
396
  fieldList: e.layerFieldsInfo
398
397
  // list of field information from the layer
399
- }) ?? x;
398
+ }) ?? m;
400
399
  })
401
400
  );
402
401
  }
403
- async function _(t) {
404
- const { seriesIndex: e, config: s, layerInfo: i } = t, { objectIdField: a } = i ?? {};
405
- let r;
406
- const c = s.series[e ?? 0];
407
- let o = !1, y = !1;
408
- if (c === void 0) {
409
- const n = s.series;
410
- o = n.slice(0, e).every((u) => B(u)), y = n.slice(0, e).every((u) => C(u));
402
+ const wi = (t, e) => e.series[t]?.id, $i = (t, e) => e.series.findIndex((i) => i.id === t), dt = (t) => t.series.length ?? 0, ki = (t, e) => e.series[t].visible ?? !0;
403
+ function ji(t, e) {
404
+ let i;
405
+ return t.length !== 0 && e < t.length && (i = t[e].dataTooltipValueFormat), i;
406
+ }
407
+ function Ui(t) {
408
+ const { series: e, seriesIndex: i, valueFormat: s } = t;
409
+ e.length !== 0 && i < e.length && (e[i].dataTooltipValueFormat = s);
410
+ }
411
+ function P(t) {
412
+ const { seriesIndex: e, xAxisField: i, aggregationType: s, config: a, layerInfo: r, commonStrings: l } = t, { objectIdField: n } = r ?? {};
413
+ let u;
414
+ const d = a.series[e ?? 0];
415
+ let c = !1, x = !1;
416
+ if (d === void 0) {
417
+ const y = a.series;
418
+ c = y.slice(0, e).every((o) => B(o)), x = y.slice(0, e).every((o) => I(o));
411
419
  } else
412
- o = B(c), y = C(c);
413
- o ? r = await We({
420
+ c = B(d), x = I(d);
421
+ c ? u = Pe({
422
+ commonStrings: l,
414
423
  seriesIndex: e,
415
- objectIDField: a
416
- }) : y ? r = await ze({
424
+ objectIDField: n
425
+ }) : x ? u = Ee({
426
+ commonStrings: l,
417
427
  seriesIndex: e,
418
- objectIDField: a
419
- }) : r = await Xe({
428
+ objectIDField: n
429
+ }) : u = Re({
420
430
  seriesIndex: e,
421
- objectIDField: a
431
+ objectIDField: n,
432
+ commonStrings: l
422
433
  });
423
- const l = E(s), p = s.series[0]?.dataLabels?.visible ?? !1, d = {
424
- ...r,
425
- x: l,
434
+ const m = a.series[0]?.dataLabels?.visible ?? !1, p = {
435
+ ...u,
436
+ x: i,
426
437
  y: "",
427
438
  dataLabels: {
428
- ...r.dataLabels,
429
- type: r.dataLabels?.type ?? h.Text,
430
- content: r.dataLabels?.content ?? { type: De.TS },
431
- visible: p
439
+ ...u.dataLabels,
440
+ type: u.dataLabels?.type ?? h.Text,
441
+ content: u.dataLabels?.content ?? { type: Le.TS },
442
+ visible: m
432
443
  }
433
- }, x = q(s);
434
- if (d.query = {
435
- groupByFieldsForStatistics: [l]
436
- }, x !== b.NoAggregation && a !== void 0) {
437
- const n = `${x}_${a}_0`.toUpperCase();
438
- d.y = n, d.query.outStatistics = [
444
+ };
445
+ if (p.query = {
446
+ groupByFieldsForStatistics: [i]
447
+ }, s !== T.NoAggregation && n !== void 0) {
448
+ const y = `${s}_${n}_0`.toUpperCase();
449
+ p.y = y, p.query.outStatistics = [
439
450
  {
440
- statisticType: x,
441
- onStatisticField: a,
442
- outStatisticFieldName: n
451
+ statisticType: s,
452
+ onStatisticField: n,
453
+ outStatisticFieldName: y
443
454
  }
444
455
  ];
445
456
  }
446
- if (B(d) || C(d) || I(d) && s.series[0]?.binTemporalData) {
447
- let n;
448
- if (s?.series?.[0] !== void 0 && (n = W(s.series)), n !== P.BarAndLineNoAggregation && n !== P.BarAndLineSplitByNoAggregation) {
449
- let u = nt(s);
450
- u === se.Quarter && (u = se.Month), d.temporalBinning = {
451
- size: ot(s),
452
- unit: u,
453
- timeAggregationType: ct(s),
454
- trimIncompleteTimeInterval: dt(s),
455
- nullPolicy: ut(s)
457
+ if (B(p) || I(p) || L(p) && a.series[0]?.binTemporalData) {
458
+ let y;
459
+ if (a?.series?.[0] !== void 0 && (y = E(a.series)), y !== j.BarAndLineNoAggregation && y !== j.BarAndLineSplitByNoAggregation) {
460
+ let o = st(a);
461
+ o === G.Quarter && (o = G.Month), p.temporalBinning = {
462
+ size: it(a),
463
+ unit: o,
464
+ timeAggregationType: at(a),
465
+ trimIncompleteTimeInterval: rt(a),
466
+ nullPolicy: lt(a)
456
467
  };
457
468
  }
458
469
  }
459
- return G(d);
470
+ return W(p);
460
471
  }
461
- async function Z(t, e) {
462
- const { layerFieldsInfo: s, objectIdField: i } = e, a = E(t), r = W(t.series), c = N(t), o = q(t), y = K(t), l = c.length === 0 || c.includes(i), p = await be(o), d = l ? "" : c.map((A) => j(s ?? [], A)).join(", "), x = j(s ?? [], a), n = j(s ?? [], y), u = t.series.some((A) => I(A)), m = u ? "category" : "xAxisField", g = x;
463
- let F = "";
464
- const T = await ne(
465
- ce(document.documentElement).t9nLocale,
466
- de("./assets/common/t9n"),
467
- "messages."
468
- );
469
- if (r === P.BarAndLineFromFields)
470
- F = k(T.titleLabels.aggrTypeOfAggrFields, {
471
- aggregationType: p,
472
- aggregationFields: d
472
+ function Fe(t, e, i) {
473
+ const { layerFieldsInfo: s, objectIdField: a } = e, r = R(t), l = re(t), n = Ae(t), u = K(t), d = l.length === 0 || l.includes(a), c = ue(n, i), x = d ? "" : l.map((f) => $(s ?? [], f)).join(", "), m = $(s ?? [], r), p = $(s ?? [], u), y = t.series.some((f) => L(f)), o = y ? "category" : "xAxisField", F = m;
474
+ let g = "";
475
+ if (ae(r, l))
476
+ g = w(i.titleLabels.aggrTypeOfAggrFields, {
477
+ aggregationType: c,
478
+ aggregationFields: x
473
479
  });
474
- else if (o === b.NoAggregation) {
475
- const A = l ? i : d;
476
- if (y === "") {
477
- const z = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
478
- F = k(T.titleLabels[z], {
479
- aggregationType: A,
480
- [m]: g
480
+ else if (n === T.NoAggregation) {
481
+ const f = d ? a : x;
482
+ if (u === "") {
483
+ const S = y ? "aggrTypeCategory" : "aggrTypeXAxisField";
484
+ g = w(i.titleLabels[S], {
485
+ aggregationType: f,
486
+ [o]: F
481
487
  });
482
488
  } else {
483
- const z = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
484
- F = k(T.titleLabels[z], {
485
- aggregationType: A,
486
- [m]: g,
487
- splitByField: n
489
+ const S = y ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
490
+ g = w(i.titleLabels[S], {
491
+ aggregationType: f,
492
+ [o]: F,
493
+ splitByField: p
488
494
  });
489
495
  }
490
- } else if (o === b.Count)
491
- if (y === "") {
492
- const A = u ? "aggrTypeCategory" : "aggrTypeXAxisField";
493
- F = k(T.titleLabels[A], {
494
- aggregationType: p,
495
- [m]: g
496
+ } else if (n === T.Count)
497
+ if (u === "") {
498
+ const f = y ? "aggrTypeCategory" : "aggrTypeXAxisField";
499
+ g = w(i.titleLabels[f], {
500
+ aggregationType: c,
501
+ [o]: F
496
502
  });
497
503
  } else {
498
- const A = u ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
499
- F = k(T.titleLabels[A], {
500
- aggregationType: p,
501
- [m]: g,
502
- splitByField: n
504
+ const f = y ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
505
+ g = w(i.titleLabels[f], {
506
+ aggregationType: c,
507
+ [o]: F,
508
+ splitByField: p
503
509
  });
504
510
  }
505
- else if (y !== "") {
506
- const A = u ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
507
- F = k(T.titleLabels[A], {
508
- aggregationType: p,
509
- aggregationField: d,
510
- [m]: g,
511
- splitByField: n
511
+ else if (u !== "") {
512
+ const f = y ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
513
+ g = w(i.titleLabels[f], {
514
+ aggregationType: c,
515
+ aggregationField: x,
516
+ [o]: F,
517
+ splitByField: p
512
518
  });
513
- } else if (c.length > 0) {
514
- const A = u ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
515
- F = k(T.titleLabels[A], {
516
- aggregationType: p,
517
- aggregationFields: d,
518
- [m]: g
519
+ } else if (l.length > 0) {
520
+ const f = y ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
521
+ g = w(i.titleLabels[f], {
522
+ aggregationType: c,
523
+ aggregationFields: x,
524
+ [o]: F
519
525
  });
520
526
  }
521
- return F;
527
+ return g;
522
528
  }
523
- const Be = (t) => le({
529
+ const be = (t) => ee({
524
530
  where: t.query?.where,
525
531
  normalize: !1,
526
532
  escape: !1
527
- }) ?? "", q = (t) => t?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? b.NoAggregation, $s = async (t, e, s) => {
528
- const i = N(e), a = K(e), r = await H(e, s), c = await J(e, s);
529
- if (await xe({
530
- splitByField: a,
531
- numericFields: i,
532
- aggregationType: t,
533
- config: e,
534
- layerInfo: s
535
- }), c) {
536
- const o = await Y({
537
- config: e,
538
- layerInfo: s,
539
- numericFields: N(e),
540
- aggregationType: q(e)
541
- });
542
- X(e, 1, o);
543
- }
544
- e.title && r && (e.title.content.text = await Z(e, s)), f({ config: e, value: null, axisIndex: 1, isMax: !1 }), f({ config: e, value: null, axisIndex: 1, isMax: !0 }), me(e, s);
545
- }, K = fe(
533
+ }) ?? "", Ae = (t) => t?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? T.NoAggregation, K = ce(
546
534
  (t) => {
547
535
  const e = t?.series?.[0]?.query?.where?.split("=")[0].trim() ?? "";
548
- return Re(t?.series?.[0]?.query?.where) ? "" : e;
536
+ return je(t?.series?.[0]?.query?.where) ? "" : e;
549
537
  },
550
538
  (t) => t?.series?.[0]?.query?.where
551
- ), ks = async (t, e, s) => {
552
- const i = N(e), a = q(e), r = await H(e, s), c = await J(e, s);
553
- if (await xe({
554
- splitByField: t,
555
- numericFields: i,
556
- aggregationType: a,
557
- config: e,
558
- layerInfo: s
559
- }), c) {
560
- const o = await Y({
561
- config: e,
562
- layerInfo: s,
563
- numericFields: N(e),
564
- aggregationType: q(e)
565
- });
566
- X(e, 1, o);
567
- }
568
- e.title && r && (e.title.content.text = await Z(e, s)), f({ config: e, value: null, axisIndex: 1, isMax: !1 }), f({ config: e, value: null, axisIndex: 1, isMax: !0 });
569
- }, N = fe(
539
+ ), re = ce(
570
540
  // without memoizing, the worst case efficiency is O(series.length), best case is O(1)
571
541
  // with memoizing, the worst case efficiency for repeated calls becomes O(1)
572
542
  (t) => {
573
543
  let e = [];
574
544
  if (K(t) === "")
575
- e = t?.series.map((s) => {
576
- const i = s.query?.outStatistics?.map((a) => a.onStatisticField) ?? [];
577
- return i?.length > 0 ? i : s.y;
545
+ e = t?.series.map((i) => {
546
+ const s = i.query?.outStatistics?.map((a) => a.onStatisticField) ?? [];
547
+ return s?.length > 0 ? s : i.y;
578
548
  }).flat() ?? [];
579
549
  else {
580
- const s = t?.series?.[0], i = s?.query?.outStatistics?.[0]?.onStatisticField ?? [s?.y].flat()[0];
581
- e = i !== void 0 ? [i] : [];
550
+ const i = t?.series?.[0], s = i?.query?.outStatistics?.[0]?.onStatisticField ?? [i?.y].flat()[0];
551
+ e = s !== void 0 ? [s] : [];
582
552
  }
583
- return [...new Set(e.filter((s) => s !== ""))];
553
+ return [...new Set(e.filter((i) => i !== ""))];
584
554
  },
585
555
  // using series array address as key, since a change to the numeric fields will always rebuild a fresh series array
586
556
  (t) => t?.series
587
- ), gt = async (t, e, s) => {
588
- const { objectIdField: i } = s;
589
- let a = q(e);
590
- const r = await H(e, s), c = await J(e, s);
591
- t.length === 0 ? (t.push(i), a = b.Count) : a === b.Count && t.length >= 1 && !t.includes(i) && (a = b.Sum);
592
- const o = K(e);
593
- if (await xe({
594
- splitByField: o,
595
- numericFields: t,
596
- aggregationType: a,
597
- config: e,
598
- layerInfo: s
599
- }), c) {
600
- const y = await Y({
601
- config: e,
602
- layerInfo: s,
603
- numericFields: N(e),
604
- aggregationType: q(e)
605
- });
606
- X(e, 1, y);
607
- }
608
- e.title && r && (e.title.content.text = await Z(e, s)), f({ config: e, value: null, axisIndex: 1, isMax: !1 }), f({ config: e, value: null, axisIndex: 1, isMax: !0 }), me(e, s);
609
- }, js = async (t, e, s) => {
610
- const { layerFieldsInfo: i } = s ?? {}, a = e?.series?.length ?? 0, r = E(e), c = await H(e, s), o = await J(e, s), y = await bt(e, s);
611
- let l;
612
- const p = e.series.some((n) => I(n)), d = Ge(e.series), x = Qe(e.series);
613
- if (i !== void 0) {
614
- const n = Ke(i);
615
- !n.includes(r) && n.includes(t) ? l = _e() : n.includes(r) && !n.includes(t) && (p ? l = ie() : l = Ye()), i.find((m) => m.name === t)?.type === Se.String && (l = ie()), l !== void 0 && await et(e, l);
616
- }
617
- if (a === 0 && (e.series = [await _({ config: e, layerInfo: s })]), e.series.forEach((n) => {
618
- n.x = t, n.query !== void 0 && (n.query.groupByFieldsForStatistics = [t]);
619
- }), y) {
620
- const n = j(i, t);
621
- X(e, 0, n);
622
- }
623
- if (s !== void 0) {
624
- if (o) {
625
- const u = await Y({
626
- config: e,
627
- layerInfo: s,
628
- numericFields: N(e),
629
- aggregationType: q(e)
630
- });
631
- X(e, 1, u);
632
- }
633
- e.title && c && (e.title.content.text = await Z(e, s)), me(e, s);
634
- const n = N(e);
635
- await gt(n, e, s);
636
- }
637
- if (f({ config: e, value: null, axisIndex: 1, isMax: !1 }), f({ config: e, value: null, axisIndex: 1, isMax: !0 }), d || x) {
638
- f({ config: e, value: null, axisIndex: 0, isMax: !1 }), f({ config: e, value: null, axisIndex: 0, isMax: !0 }), ve(0, e);
639
- const n = l?.type === h.DateAxisFormat ? te.Null : te.Interpolate;
640
- yt(n, e);
641
- }
642
- };
643
- function me(t, e) {
644
- let s = !1;
645
- const i = q(t), a = N(t);
646
- i === b.Count ? s = !0 : i === b.NoAggregation && (s = a.every((o) => {
647
- const y = e.layerFieldsInfo.find((l) => l.name === o);
648
- return y !== void 0 ? ge(y) : !1;
649
- })), pe(t, 1, s);
650
- const r = t.series.some((o) => B(o)), c = t.series.some((o) => C(o));
651
- if (r || c) {
652
- const o = E(t), y = e.layerFieldsInfo.find((p) => p.name === o), l = y !== void 0 && ge(y);
653
- pe(t, 0, l);
557
+ );
558
+ function ut(t) {
559
+ const { numericFields: e, aggregationType: i, config: s, layerInfo: a } = t;
560
+ let r = !1;
561
+ i === T.Count ? r = !0 : i === T.NoAggregation && (r = e.every((u) => {
562
+ const d = a.layerFieldsInfo.find((c) => c.name === u);
563
+ return d !== void 0 ? le(d) : !1;
564
+ })), ne(s, 1, r);
565
+ const l = s.series.some((u) => B(u)), n = s.series.some((u) => I(u));
566
+ if (l || n) {
567
+ const u = R(s), d = a.layerFieldsInfo.find((x) => x.name === u), c = d !== void 0 && le(d);
568
+ ne(s, 0, c);
654
569
  }
655
570
  }
656
- const pt = (t) => {
657
- let e = S.xAxisAsc;
658
- const s = t.orderOptions?.data?.orderType ?? w.Category, i = t.orderOptions?.data?.orderBy ?? O.Ascending;
659
- return s === w.Category && Array.isArray(i) ? e = S.customSort : s === w.Category ? i === O.Ascending ? e = S.xAxisAsc : e = S.xAxisDesc : i === O.Ascending ? e = S.yAxisAsc : e = S.yAxisDesc, e;
571
+ const yt = (t) => {
572
+ let e = b.xAxisAsc;
573
+ const i = t.orderOptions?.data?.orderType ?? V.Category, s = t.orderOptions?.data?.orderBy ?? O.Ascending;
574
+ return i === V.Category && Array.isArray(s) ? e = b.customSort : i === V.Category ? s === O.Ascending ? e = b.xAxisAsc : e = b.xAxisDesc : s === O.Ascending ? e = b.yAxisAsc : e = b.yAxisDesc, e;
660
575
  };
661
- async function ft(t) {
662
- const { numericFields: e, aggregationType: s, config: i, layerInfo: a } = t;
663
- let r = !1;
664
- const c = await _({
665
- config: i,
666
- layerInfo: a,
667
- seriesIndex: 0
668
- }), o = await ne(
669
- ce(document.documentElement).t9nLocale,
670
- de("./assets/common/t9n"),
671
- "messages."
672
- ), y = ye({
673
- config: i,
674
- numericFields: e,
576
+ function gt(t) {
577
+ const { xAxisField: e, numericFields: i, aggregationType: s, config: a, layerInfo: r, commonStrings: l } = t;
578
+ let n = !1;
579
+ const u = P({
580
+ config: a,
581
+ xAxisField: e,
675
582
  aggregationType: s,
676
- layer: a.layer
677
- }).name, l = {
678
- ...c,
583
+ layerInfo: r,
584
+ seriesIndex: 0,
585
+ commonStrings: l
586
+ }), d = se({
587
+ config: a,
588
+ xAxisField: e,
589
+ numericFields: i,
590
+ aggregationType: s,
591
+ layer: r.layer
592
+ }).name, c = {
593
+ ...u,
679
594
  id: `series_${Date.now()}`,
680
- name: o.axisLabels.values,
681
- x: R,
682
- y
683
- }, p = [];
684
- for (const x of e)
685
- p.push({
686
- onStatisticField: x,
687
- outStatisticFieldName: `${x}_0`.toUpperCase(),
595
+ name: l.axisLabels.values,
596
+ x: U,
597
+ y: d
598
+ }, x = [];
599
+ for (const p of i)
600
+ x.push({
601
+ onStatisticField: p,
602
+ outStatisticFieldName: `${p}_0`.toUpperCase(),
688
603
  statisticType: s
689
604
  });
690
- l.query = { outStatistics: p };
691
- const d = i.series[0];
692
- return d !== void 0 && (l.id = d.id, i.colorMatch || (I(d) && I(l) ? l.fillSymbol = d.fillSymbol : (B(l) && B(d) || C(l) && C(d)) && (l.lineSymbol = d.lineSymbol, l.markerSymbol = d.markerSymbol), r = !0), l.id = d.id, d.name !== c.name && (l.name = d.name)), i.series.length === 1 && !i.colorMatch && (I(l) ? l.fillSymbol = i.series[0].fillSymbol : (B(l) || C(l)) && (l.lineSymbol = i.series[0].lineSymbol, l.markerSymbol = i.series[0].markerSymbol), r = !0), i.colorMatch = !r, [l];
605
+ c.query = { outStatistics: x };
606
+ const m = a.series[0];
607
+ return m !== void 0 && (c.id = m.id, a.colorMatch || (L(m) && L(c) ? c.fillSymbol = m.fillSymbol : (B(c) && B(m) || I(c) && I(m)) && (c.lineSymbol = m.lineSymbol, c.markerSymbol = m.markerSymbol), n = !0), c.id = m.id, m.name !== u.name && (c.name = m.name)), a.series.length === 1 && !a.colorMatch && (L(c) ? c.fillSymbol = a.series[0].fillSymbol : (B(c) || I(c)) && (c.lineSymbol = a.series[0].lineSymbol, c.markerSymbol = a.series[0].markerSymbol), n = !0), a.colorMatch = !n, [c];
693
608
  }
694
- async function Ce(t) {
695
- const { numericFields: e, aggregationType: s, config: i, layerInfo: a } = t, { layerFieldsInfo: r, objectIdField: c } = a, o = [];
696
- let y = !1;
697
- for (let l = 0; l < e.length; l += 1) {
698
- const p = await _({
699
- config: i,
700
- layerInfo: a,
701
- seriesIndex: l
702
- }), d = ye({
703
- config: i,
704
- numericFields: e,
609
+ function Te(t) {
610
+ const { xAxisField: e, numericFields: i, aggregationType: s, config: a, layerInfo: r, commonStrings: l } = t, { layerFieldsInfo: n, objectIdField: u } = r, d = [];
611
+ let c = !1;
612
+ for (let x = 0; x < i.length; x += 1) {
613
+ const m = P({
614
+ config: a,
615
+ xAxisField: e,
616
+ aggregationType: s,
617
+ layerInfo: r,
618
+ seriesIndex: x,
619
+ commonStrings: l
620
+ }), p = se({
621
+ config: a,
622
+ xAxisField: e,
623
+ numericFields: i,
705
624
  aggregationType: s,
706
- layer: a.layer,
707
- numericFieldIndex: l
708
- }).name, x = e[l];
709
- let n = {
710
- ...p,
625
+ layer: r.layer,
626
+ numericFieldIndex: x
627
+ }).name, y = i[x];
628
+ let o = {
629
+ ...m,
711
630
  query: {
712
- ...p.query
631
+ ...m.query
713
632
  }
714
633
  };
715
- x !== c && (n = {
716
- ...n,
717
- id: x,
718
- name: j(r, x)
634
+ y !== u && (o = {
635
+ ...o,
636
+ id: y,
637
+ name: $(n, y)
719
638
  });
720
- let u = x;
721
- n.query !== void 0 && (s !== b.NoAggregation ? (u = d, n.query.outStatistics = [
639
+ let F = y;
640
+ o.query !== void 0 && (s !== T.NoAggregation ? (F = p, o.query.outStatistics = [
722
641
  {
723
- ...p.query?.outStatistics?.[0] ?? {},
724
- onStatisticField: x,
725
- outStatisticFieldName: d,
642
+ ...m.query?.outStatistics?.[0] ?? {},
643
+ onStatisticField: y,
644
+ outStatisticFieldName: p,
726
645
  statisticType: s
727
646
  }
728
- ]) : delete n.query.outStatistics), n.y = u;
729
- const m = i.series.find(
730
- (g) => g.query?.outStatistics?.[0]?.onStatisticField === x && g.query.where === void 0
647
+ ]) : delete o.query.outStatistics), o.y = F;
648
+ const g = a.series.find(
649
+ (f) => f.query?.outStatistics?.[0]?.onStatisticField === y && f.query.where === void 0
731
650
  );
732
- if (m !== void 0 && typeof m.y == "string" && m.y.trim() !== "") {
733
- i.colorMatch || (I(n) && I(m) ? n.fillSymbol = m.fillSymbol : (B(n) && B(m) || C(n) && C(m)) && (n.lineSymbol = m.lineSymbol, n.markerSymbol = m.markerSymbol), y = !0);
734
- const g = await _({
735
- config: i,
736
- layerInfo: a,
737
- seriesIndex: l
651
+ if (g !== void 0 && typeof g.y == "string" && g.y.trim() !== "") {
652
+ a.colorMatch || (L(o) && L(g) ? o.fillSymbol = g.fillSymbol : (B(o) && B(g) || I(o) && I(g)) && (o.lineSymbol = g.lineSymbol, o.markerSymbol = g.markerSymbol), c = !0);
653
+ const f = P({
654
+ config: a,
655
+ xAxisField: e,
656
+ aggregationType: s,
657
+ layerInfo: r,
658
+ seriesIndex: x,
659
+ commonStrings: l
738
660
  });
739
- n.id = m.id, m.id !== g.id && m.name !== g.name && (n.id = m.id, n.name = m.name);
661
+ o.id = g.id, g.id !== f.id && g.name !== f.name && (o.id = g.id, o.name = g.name);
740
662
  }
741
- o.push(n);
663
+ d.push(o);
742
664
  }
743
- return i.series.length === 1 && o.length === 1 && !i.colorMatch && (I(i.series[0]) && I(o[0]) ? o[0].fillSymbol = i.series[0].fillSymbol : (B(i.series[0]) && B(o[0]) || C(i.series[0]) && C(o[0])) && (o[0].lineSymbol = i.series[0].lineSymbol, o[0].markerSymbol = i.series[0].markerSymbol), y = !0), i.colorMatch = !y, o;
665
+ return a.series.length === 1 && d.length === 1 && !a.colorMatch && (L(a.series[0]) && L(d[0]) ? d[0].fillSymbol = a.series[0].fillSymbol : (B(a.series[0]) && B(d[0]) || I(a.series[0]) && I(d[0])) && (d[0].lineSymbol = a.series[0].lineSymbol, d[0].markerSymbol = a.series[0].markerSymbol), c = !0), a.colorMatch = !c, d;
744
666
  }
745
- async function St(t) {
746
- const { splitByField: e, numericFields: s, aggregationType: i, config: a, layerInfo: r } = t, { layer: c, layerFieldsInfo: o } = r, { fetchNullValues: y } = a?.series?.[0]?.query ?? {}, l = E(a), p = l !== R ? l : void 0, { categoriesArray: d, splitByFieldType: x, numericalField: n } = await mt({
747
- config: a,
748
- layer: c,
749
- layerFieldsInfo: o,
750
- xAxisField: p,
667
+ async function ft(t) {
668
+ const { splitByField: e, xAxisField: i, numericFields: s, aggregationType: a, config: r, layerInfo: l, commonStrings: n } = t, { layer: u, layerFieldsInfo: d } = l, { fetchNullValues: c } = r?.series?.[0]?.query ?? {}, x = i !== U ? i : void 0, { categoriesArray: m, splitByFieldType: p, numericalField: y } = await nt({
669
+ config: r,
670
+ layer: u,
671
+ layerFieldsInfo: d,
672
+ xAxisField: x,
751
673
  aggregationFields: s,
752
674
  splitByField: e,
753
- fetchNullValues: y
675
+ fetchNullValues: c
754
676
  });
755
- let u = [], m = !1;
756
- if (d.length === 0) {
757
- u = await Ce({
677
+ let o = [], F = !1;
678
+ if (m.length === 0) {
679
+ o = Te({
680
+ xAxisField: i,
758
681
  numericFields: s,
759
- aggregationType: i,
760
- config: a,
761
- layerInfo: r
682
+ aggregationType: a,
683
+ config: r,
684
+ layerInfo: l,
685
+ commonStrings: n
762
686
  });
763
- for (const g of u)
687
+ for (const g of o)
764
688
  g.query && (g.query.where = `${e}=''`);
765
689
  } else
766
- for (let g = 0; g < d.length; g += 1) {
767
- const F = d[g], T = ye({
768
- config: a,
690
+ for (let g = 0; g < m.length; g += 1) {
691
+ const f = m[g], S = se({
692
+ config: r,
693
+ xAxisField: i,
769
694
  numericFields: s,
770
- aggregationType: i,
771
- layer: r.layer,
695
+ aggregationType: a,
696
+ layer: l.layer,
772
697
  seriesIndex: g,
773
698
  splitByField: e
774
- }).name, A = await _({
775
- config: a,
776
- layerInfo: r,
777
- seriesIndex: g
778
- }), z = {
699
+ }).name, X = P({
700
+ config: r,
701
+ xAxisField: i,
702
+ aggregationType: a,
703
+ layerInfo: l,
704
+ seriesIndex: g,
705
+ commonStrings: n
706
+ }), _ = {
779
707
  fieldName: e,
780
- fieldValueToMatch: F ?? "",
781
- subtypeInfo: ae(r.layer),
782
- fieldList: r.layerFieldsInfo
783
- }, Le = re(z), ee = `${F}`, v = {
784
- ...A,
785
- id: ee,
786
- name: Le ?? ee,
787
- y: T,
708
+ fieldValueToMatch: f ?? "",
709
+ subtypeInfo: H(l.layer),
710
+ fieldList: l.layerFieldsInfo
711
+ }, he = J(_), Y = `${f}`, v = {
712
+ ...X,
713
+ id: Y,
714
+ name: he ?? Y,
715
+ y: S,
788
716
  query: {
789
- ...A.query,
790
- where: `${e}=${x === Se.String && F !== null ? `'${F}'` : F}`,
791
- outStatistics: i !== b.NoAggregation ? [
717
+ ...X.query,
718
+ where: `${e}=${p === de.String && f !== null ? `'${f}'` : f}`,
719
+ outStatistics: a !== T.NoAggregation ? [
792
720
  {
793
- ...A.query?.outStatistics?.[0] ?? {},
794
- onStatisticField: n,
795
- outStatisticFieldName: T,
796
- statisticType: i
721
+ ...X.query?.outStatistics?.[0] ?? {},
722
+ onStatisticField: y,
723
+ outStatisticFieldName: S,
724
+ statisticType: a
797
725
  }
798
726
  ] : void 0
799
727
  }
800
728
  };
801
- i === b.NoAggregation && (v.query !== void 0 && (delete v.query.outStatistics, delete v.query.groupByFieldsForStatistics), v.y = n);
802
- const $ = a.series.find(
803
- (Ie) => String(Be(Ie)).trim().replace(/'/gu, "") === ee
729
+ a === T.NoAggregation && (v.query !== void 0 && (delete v.query.outStatistics, delete v.query.groupByFieldsForStatistics), v.y = y);
730
+ const M = r.series.find(
731
+ (ve) => String(be(ve)).trim().replace(/'/gu, "") === Y
804
732
  );
805
- $ !== void 0 && (a.colorMatch || (I(v) && I($) ? v.fillSymbol = $.fillSymbol : (B(v) && B($) || C(v) && C($)) && (v.lineSymbol = $.lineSymbol, v.markerSymbol = $.markerSymbol), m = !0), v.id = $.id, v.name = $.name), u.push(v);
733
+ M !== void 0 && (r.colorMatch || (L(v) && L(M) ? v.fillSymbol = M.fillSymbol : (B(v) && B(M) || I(v) && I(M)) && (v.lineSymbol = M.lineSymbol, v.markerSymbol = M.markerSymbol), F = !0), v.id = M.id, v.name = M.name), o.push(v);
806
734
  }
807
- return a.colorMatch = !m, u;
735
+ return r.colorMatch = !F, o;
808
736
  }
809
- const xe = async (t) => {
810
- const { splitByField: e, numericFields: s, aggregationType: i, config: a, layerInfo: r } = t, { x: c } = a.series[0], o = W(a.series);
811
- e === "" || s.length > 1 ? c === R || c === void 0 || c.trim() === "" || o === P.BarAndLineFromFields ? a.series = await ft({
812
- config: a,
813
- layerInfo: r,
737
+ const Pi = async (t) => {
738
+ const { xAxisField: e, splitByField: i, numericFields: s, aggregationType: a, config: r, layerInfo: l, commonStrings: n } = t, { layerFieldsInfo: u } = l ?? {}, d = dt(r), c = R(r), x = E(r.series), m = mt(r, l, n), p = xt(r, l, n), y = pt(r, l);
739
+ let o = pe(r);
740
+ const F = r.series.some((S) => L(S)), g = ze(r.series), f = _e(r.series);
741
+ if (u !== void 0) {
742
+ const S = Ue(u);
743
+ !S.includes(c) && S.includes(e) ? o = Xe() : S.includes(c) && !S.includes(e) && (F ? o = Q() : o = Ke()), u.find((_) => _.name === e)?.type === de.String && (o = Q()), o !== void 0 && Ze(r, n, o);
744
+ }
745
+ if (d === 0 && (r.series = [
746
+ P({ config: r, xAxisField: e, aggregationType: a, layerInfo: l, commonStrings: n })
747
+ ]), r.series.forEach((S) => {
748
+ S.x = e, S.query !== void 0 && (S.query.groupByFieldsForStatistics = [e]);
749
+ }), i === "" || s.length > 1 ? ae(e, s) || x === j.BarAndLineFromFields ? r.series = gt({
750
+ config: r,
751
+ layerInfo: l,
752
+ xAxisField: e,
814
753
  numericFields: s,
815
- aggregationType: i
816
- }) : a.series = await Ce({
817
- config: a,
818
- layerInfo: r,
754
+ aggregationType: a,
755
+ commonStrings: n
756
+ }) : r.series = Te({
757
+ config: r,
758
+ layerInfo: l,
759
+ xAxisField: e,
819
760
  numericFields: s,
820
- aggregationType: i
821
- }) : a.series = await St({
822
- config: a,
823
- layerInfo: r,
824
- splitByField: e,
761
+ aggregationType: a,
762
+ commonStrings: n
763
+ }) : (await Promise.resolve(), r.series = await ft({
764
+ config: r,
765
+ layerInfo: l,
766
+ splitByField: i,
767
+ xAxisField: e,
825
768
  numericFields: s,
826
- aggregationType: i
827
- });
828
- }, Es = (t) => {
829
- const { config: e, seriesIndex: s, layerInfo: i, commonStrings: a } = t, r = e.series?.[s], c = K(e);
830
- let o;
831
- if (W(e.series) === P.BarAndLineFromFields)
832
- o = a.axisLabels.values;
833
- else if (we(c)) {
834
- const l = r.query?.outStatistics?.[0]?.onStatisticField;
835
- l !== void 0 && l !== i.objectIdField && (o = j(i.layerFieldsInfo, l));
769
+ aggregationType: a,
770
+ commonStrings: n
771
+ })), y) {
772
+ const S = $(u, e);
773
+ oe(r, 0, S);
774
+ }
775
+ if (p) {
776
+ const S = fe({
777
+ config: r,
778
+ layerInfo: l,
779
+ commonStrings: n,
780
+ numericFields: s,
781
+ aggregationType: a
782
+ });
783
+ oe(r, 1, S);
784
+ }
785
+ if (r.title && m && (r.title.content.text = Fe(r, l, n)), A({ config: r, value: null, axisIndex: 1, isMax: !1 }), A({ config: r, value: null, axisIndex: 1, isMax: !0 }), ut({ numericFields: s, aggregationType: a, config: r, layerInfo: l }), g || f) {
786
+ A({ config: r, value: null, axisIndex: 0, isMax: !1 }), A({ config: r, value: null, axisIndex: 0, isMax: !0 }), Se(0, r);
787
+ const S = o?.type === h.DateAxisFormat ? Z.Null : Z.Interpolate;
788
+ ot(S, r);
789
+ }
790
+ }, Ei = (t) => {
791
+ const { config: e, seriesIndex: i, layerInfo: s, commonStrings: a } = t, r = e.series?.[i], l = K(e);
792
+ let n;
793
+ if (E(e.series) === j.BarAndLineFromFields)
794
+ n = a.axisLabels.values;
795
+ else if (Be(l)) {
796
+ const d = r.query?.outStatistics?.[0]?.onStatisticField;
797
+ d !== void 0 && d !== s.objectIdField && (n = $(s.layerFieldsInfo, d));
836
798
  } else {
837
- const l = String(Be(r)).trim().replace(/'/gu, ""), p = {
799
+ const d = String(be(r)).trim().replace(/'/gu, ""), c = {
838
800
  fieldName: K(e),
839
- fieldValueToMatch: l ?? "",
840
- subtypeInfo: ae(i.layer),
841
- fieldList: i.layerFieldsInfo
801
+ fieldValueToMatch: d ?? "",
802
+ subtypeInfo: H(s.layer),
803
+ fieldList: s.layerFieldsInfo
842
804
  };
843
- o = re(p) ?? l;
805
+ n = J(c) ?? d;
844
806
  }
845
- return o ?? r.id;
846
- }, Ps = (t, e) => {
807
+ return n ?? r.id;
808
+ }, Ri = (t, e) => {
847
809
  e.orderOptions ??= {};
848
- const s = e.orderOptions?.data?.orderType;
849
- pt(e) === S.customSort && s === w.Category && (e.orderOptions.data = {
850
- orderType: w.Category,
810
+ const i = e.orderOptions?.data?.orderType;
811
+ yt(e) === b.customSort && i === V.Category && (e.orderOptions.data = {
812
+ orderType: V.Category,
851
813
  orderBy: [...t]
852
814
  });
853
- }, Us = async (t, e) => {
854
- const s = E(t), i = Je(t)?.type, a = N(t), r = W(t.series);
855
- let c = [];
856
- return i === h.CategoryAxisFormat && (r === P.BarAndLineFromFields || s === R ? c = a.map((o) => j(e?.layerFieldsInfo, o)) : s.trim() !== "" && s !== R && e !== void 0 && (c = await xt({
815
+ }, Xi = async (t, e) => {
816
+ const i = R(t), s = pe(t)?.type, a = re(t), r = E(t.series);
817
+ let l = [];
818
+ return s === h.CategoryAxisFormat && (r === j.BarAndLineFromFields || i === U ? l = a.map((n) => $(e?.layerFieldsInfo, n)) : i.trim() !== "" && i !== U && e !== void 0 && (l = await ct({
857
819
  layerInfo: e,
858
820
  config: t,
859
- category: s
860
- }))), c;
821
+ category: i
822
+ }))), l;
861
823
  };
862
- async function H(t, e) {
863
- const s = await Z(t, e), i = it(t), a = oe(t);
864
- return s === i || a;
824
+ function mt(t, e, i) {
825
+ const s = Fe(t, e, i), a = He(t), r = te(t);
826
+ return s === a || r;
865
827
  }
866
- async function J(t, e) {
867
- const s = await Y({
828
+ function xt(t, e, i) {
829
+ const s = fe({
868
830
  config: t,
869
831
  layerInfo: e,
870
- numericFields: N(t),
871
- aggregationType: q(t)
872
- }), i = ue(1, t), a = oe(t);
873
- return s === i || a;
832
+ commonStrings: i,
833
+ numericFields: re(t),
834
+ aggregationType: Ae(t)
835
+ }), a = ie(1, t), r = te(t);
836
+ return s === a || r;
874
837
  }
875
- async function bt(t, e) {
876
- const s = j(e.layerFieldsInfo, E(t)), i = ue(0, t), a = oe(t);
877
- return s === i || a;
838
+ function pt(t, e) {
839
+ const i = $(e.layerFieldsInfo, R(t)), s = ie(0, t), a = te(t);
840
+ return i === s || a;
878
841
  }
879
- function Rs(t) {
842
+ function Ki(t) {
880
843
  return t?.series?.[0]?.binTemporalData ?? !1;
881
844
  }
882
- function Ks(t, e) {
883
- e?.series.forEach((s) => {
884
- s.binTemporalData = t, t ? s.temporalBinning = {
885
- unit: se.Day,
845
+ function Wi(t, e) {
846
+ e?.series.forEach((i) => {
847
+ i.binTemporalData = t, t ? i.temporalBinning = {
848
+ unit: G.Day,
886
849
  size: 0,
887
- timeAggregationType: Ve.Start,
850
+ timeAggregationType: Ce.Start,
888
851
  trimIncompleteTimeInterval: !0,
889
- nullPolicy: te.Null
890
- } : delete s.temporalBinning;
852
+ nullPolicy: Z.Null
853
+ } : delete i.temporalBinning;
891
854
  });
892
855
  }
893
- const Ws = (t, e) => {
894
- e.series.forEach((s) => {
895
- s.query && (s.query.fetchNullValues = t);
856
+ const zi = (t, e) => {
857
+ e.series.forEach((i) => {
858
+ i.query && (i.query.fetchNullValues = t);
896
859
  });
897
- }, zs = (t) => t.series.some((e) => e.query?.fetchNullValues), Xs = (t) => (
860
+ }, _i = (t) => t.series.some((e) => e.query?.fetchNullValues), Yi = (t) => (
898
861
  // TODO: Look into split-by values gotchas cases once done
899
- t.series.map((e) => String(le({ where: e.query?.where }))).filter((e) => e !== void 0 && e.trim() !== "")
900
- ), _s = (t) => t.dataFilters, Ys = (t, e) => {
862
+ t.series.map((e) => String(ee({ where: e.query?.where }))).filter((e) => e !== void 0 && e.trim() !== "")
863
+ ), Zi = (t) => t.dataFilters, Gi = (t, e) => {
901
864
  t !== void 0 ? e.dataFilters = t : delete e.dataFilters;
902
865
  };
903
866
  export {
904
- at as $,
905
- dt as A,
906
- Vs as B,
907
- ut as C,
908
- yt as D,
909
- Ds as E,
910
- js as F,
911
- gt as G,
912
- $s as H,
913
- ks as I,
914
- pt as J,
915
- Is as K,
916
- Us as L,
917
- Ls as M,
918
- Ps as N,
919
- xe as O,
920
- Rs as P,
921
- Ks as Q,
922
- Z as R,
923
- Qt as S,
924
- Yt as T,
925
- Zt as U,
926
- Gt as V,
927
- Ht as W,
928
- Jt as X,
929
- es as Y,
930
- ts as Z,
931
- ss as _,
932
- ue as a,
933
- is as a0,
934
- as as a1,
935
- rs as a2,
936
- Ws as a3,
937
- zs as a4,
938
- _s as a5,
939
- Ys as a6,
940
- xs as a7,
941
- gs as a8,
942
- ps as a9,
943
- Pt as aa,
944
- Ut as ab,
945
- ls as ac,
946
- os as ad,
947
- ns as ae,
948
- cs as af,
949
- ds as ag,
950
- us as ah,
951
- Rt as ai,
952
- ys as aj,
953
- ms as ak,
954
- hs as al,
955
- Kt as am,
956
- Wt as an,
957
- zt as ao,
958
- Xt as ap,
959
- _t as aq,
960
- fs as ar,
961
- Ss as as,
962
- bs as at,
963
- Fs as au,
964
- Ts as av,
965
- As as aw,
966
- vs as ax,
967
- Bs as ay,
968
- Cs as az,
969
- Y as b,
970
- ye as c,
971
- Es as d,
972
- Ms as e,
973
- Os as f,
974
- it as g,
975
- E as h,
976
- qs as i,
977
- q as j,
978
- N as k,
979
- Xs as l,
867
+ ai as $,
868
+ rt as A,
869
+ Ni as B,
870
+ lt as C,
871
+ ot as D,
872
+ Di as E,
873
+ yt as F,
874
+ Ci as G,
875
+ Xi as H,
876
+ Ii as I,
877
+ Ri as J,
878
+ Ki as K,
879
+ Wi as L,
880
+ Pi as M,
881
+ Fe as N,
882
+ Gt as O,
883
+ zt as P,
884
+ _t as Q,
885
+ Yt as R,
886
+ Zt as S,
887
+ Qt as T,
888
+ Ht as U,
889
+ Jt as V,
890
+ ei as W,
891
+ ti as X,
892
+ Je as Y,
893
+ ii as Z,
894
+ si as _,
895
+ ie as a,
896
+ ki as a0,
897
+ wi as a1,
898
+ $i as a2,
899
+ dt as a3,
900
+ ji as a4,
901
+ Ui as a5,
902
+ _i as a6,
903
+ zi as a7,
904
+ Zi as a8,
905
+ Gi as a9,
906
+ hi as aA,
907
+ vi as aB,
908
+ Bi as aC,
909
+ gi as aa,
910
+ fi as ab,
911
+ mi as ac,
912
+ jt as ad,
913
+ Ut as ae,
914
+ ri as af,
915
+ li as ag,
916
+ oi as ah,
917
+ ni as ai,
918
+ ci as aj,
919
+ di as ak,
920
+ Pt as al,
921
+ ui as am,
922
+ yi as an,
923
+ Ti as ao,
924
+ Et as ap,
925
+ Rt as aq,
926
+ Xt as ar,
927
+ Kt as as,
928
+ Wt as at,
929
+ xi as au,
930
+ pi as av,
931
+ Si as aw,
932
+ Fi as ax,
933
+ bi as ay,
934
+ Ai as az,
935
+ fe as b,
936
+ se as c,
937
+ Ei as d,
938
+ Mi as e,
939
+ Oi as f,
940
+ He as g,
941
+ R as h,
942
+ qi as i,
943
+ Ae as j,
944
+ re as k,
945
+ Yi as l,
980
946
  K as m,
981
- et as n,
982
- Je as o,
983
- xt as p,
984
- mt as q,
985
- pe as r,
986
- f as s,
987
- ot as t,
988
- X as u,
989
- ve as v,
990
- nt as w,
991
- ws as x,
992
- ct as y,
993
- Ns as z
947
+ pe as n,
948
+ ct as o,
949
+ Ze as p,
950
+ nt as q,
951
+ ne as r,
952
+ A as s,
953
+ it as t,
954
+ oe as u,
955
+ Se as v,
956
+ st as w,
957
+ Li as x,
958
+ at as y,
959
+ Vi as z
994
960
  };