@arcgis/charts-components 5.2.0-next.1 → 5.2.0-next.100

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 (489) hide show
  1. package/LICENSE.md +4 -2
  2. package/README.md +2 -2
  3. package/dist/cdn/225VUGML.js +4 -0
  4. package/dist/cdn/22V4YZLT.js +2 -0
  5. package/dist/cdn/{YJ6TRXMU.js → 24MSASQQ.js} +1 -1
  6. package/dist/cdn/{4USHOYLT.js → 2BE3GYK4.js} +1 -1
  7. package/dist/cdn/{G6OHBBUT.js → 2INZEFXR.js} +1 -1
  8. package/dist/cdn/{I5VHQW7B.js → 2OAB6VMZ.js} +1 -1
  9. package/dist/cdn/2RSKVWTZ.js +2 -0
  10. package/dist/cdn/{NFDXH5B3.js → 2TNZTI5Q.js} +1 -1
  11. package/dist/cdn/{VY3KBD6N.js → 2YDNWOWT.js} +1 -1
  12. package/dist/cdn/{TSI3C3OV.js → 3DGX6WFJ.js} +1 -1
  13. package/dist/cdn/3NLKE6ZN.js +2 -0
  14. package/dist/cdn/{CODAXMWM.js → 3W64DBHG.js} +1 -1
  15. package/dist/cdn/3XSL5VPN.js +2 -0
  16. package/dist/cdn/{Y7HBWU3M.js → 3ZKNY2GI.js} +1 -1
  17. package/dist/cdn/42FKRE56.js +2 -0
  18. package/dist/cdn/42PLGMOG.js +2 -0
  19. package/dist/cdn/455LSMAU.js +2 -0
  20. package/dist/cdn/4A4EW5Z5.js +2 -0
  21. package/dist/cdn/4DR6JUR7.js +104 -0
  22. package/dist/cdn/{CHLE2QGU.js → 4DXGXATO.js} +1 -1
  23. package/dist/cdn/4U63XRSZ.js +2 -0
  24. package/dist/cdn/{O6SNP6QE.js → 4YKB2PME.js} +1 -1
  25. package/dist/cdn/{3V4HRXIT.js → 5BZCHVPD.js} +1 -1
  26. package/dist/cdn/{H2A5GZ55.js → 5D2QRMC6.js} +1 -1
  27. package/dist/cdn/5GDVKAX5.js +2 -0
  28. package/dist/cdn/5SYHQWPP.js +2 -0
  29. package/dist/cdn/{2X75KJPF.js → 5V2YHARQ.js} +1 -1
  30. package/dist/cdn/{7ILH7ZG2.js → 5VHWJWWP.js} +1 -1
  31. package/dist/cdn/{LUSFGRHV.js → 5WIR3JWC.js} +1 -1
  32. package/dist/cdn/62GSQDTE.js +2 -0
  33. package/dist/cdn/{VT4WJZN6.js → 64B7ILJI.js} +1 -1
  34. package/dist/cdn/{DIKQ7BPQ.js → 65WMT7WD.js} +1 -1
  35. package/dist/cdn/6DYDDJKB.js +2 -0
  36. package/dist/cdn/6H6SZO4Y.js +2 -0
  37. package/dist/cdn/{B4KT2HUE.js → 6MALKAJY.js} +1 -1
  38. package/dist/cdn/6VIPQGM6.js +2 -0
  39. package/dist/cdn/{7LYAWWOE.js → 6WKTHJQK.js} +1 -1
  40. package/dist/cdn/{II2ZPEUZ.js → 7C2LVFNV.js} +1 -1
  41. package/dist/cdn/{4Z23HWDH.js → 7COM5REK.js} +1 -1
  42. package/dist/cdn/7FPQDD3C.js +2 -0
  43. package/dist/cdn/7GTZX5NP.js +2 -0
  44. package/dist/cdn/7NGEMDYM.js +2 -0
  45. package/dist/cdn/7TM4LYGN.js +2 -0
  46. package/dist/cdn/{NHDVOYQ2.js → 7TTQNVC5.js} +1 -1
  47. package/dist/cdn/AA456L7Q.js +2 -0
  48. package/dist/cdn/{OA7FHTCA.js → AAHQPRYK.js} +1 -1
  49. package/dist/cdn/{OJ5X6I3H.js → ADI63OO7.js} +1 -1
  50. package/dist/cdn/AIQU35U3.js +2 -0
  51. package/dist/cdn/AMIDKZA2.js +2 -0
  52. package/dist/cdn/AOVXHBJK.js +2 -0
  53. package/dist/cdn/{SGOYJFLO.js → ATWR3DSK.js} +1 -1
  54. package/dist/cdn/AYCQHDDV.js +2 -0
  55. package/dist/cdn/AZYYQMCD.js +2 -0
  56. package/dist/cdn/{TXB2I2U5.js → B2SUC7VR.js} +1 -1
  57. package/dist/cdn/{UQPFMDJB.js → B46RQ2MZ.js} +1 -1
  58. package/dist/cdn/{TACQVUBU.js → BDEDEGCZ.js} +1 -1
  59. package/dist/cdn/{4JQ2RRLY.js → BK2QOEX2.js} +1 -1
  60. package/dist/cdn/{CNFBNAPJ.js → BK7DHYA7.js} +1 -1
  61. package/dist/cdn/BWLRC2U5.js +2 -0
  62. package/dist/cdn/BYSUABOV.js +2 -0
  63. package/dist/cdn/{WASEMNYV.js → CHBL4DXX.js} +1 -1
  64. package/dist/cdn/{I36OAVW3.js → CTMOMBBM.js} +1 -1
  65. package/dist/cdn/{ZFJFTDJF.js → CYGMXV56.js} +1 -1
  66. package/dist/cdn/D5DOFLCS.js +2 -0
  67. package/dist/cdn/{CUJHGXNK.js → DLMRATCW.js} +1 -1
  68. package/dist/cdn/{N3VOUI25.js → DWO7GMVE.js} +1 -1
  69. package/dist/cdn/E6E2KLJ2.js +2 -0
  70. package/dist/cdn/E6JK3JRJ.js +2 -0
  71. package/dist/cdn/EB4CM3YK.js +2 -0
  72. package/dist/cdn/EJW2UHAB.js +2 -0
  73. package/dist/cdn/{J5NHXQLA.js → EQZBQP5A.js} +1 -1
  74. package/dist/cdn/EWIMT2AS.js +2 -0
  75. package/dist/cdn/FBS4RBSA.js +2 -0
  76. package/dist/cdn/{75P3QRL4.js → FLUZSJXH.js} +1 -1
  77. package/dist/cdn/{UAZ34KDJ.js → FSEQQXRO.js} +1 -1
  78. package/dist/cdn/G3KO465U.js +4 -0
  79. package/dist/cdn/GVJ5WCQD.js +2 -0
  80. package/dist/cdn/H2ECCBL7.js +2 -0
  81. package/dist/cdn/H2R62NYZ.js +2 -0
  82. package/dist/cdn/{66KSEDOR.js → H7Z3QWIW.js} +1 -1
  83. package/dist/cdn/{ABIVSH72.js → HJSR7M2A.js} +1 -1
  84. package/dist/cdn/{RKN64EJQ.js → HUMEIOOQ.js} +1 -1
  85. package/dist/cdn/{N6OT5IBC.js → HZUBDLNR.js} +1 -1
  86. package/dist/cdn/{AZOBLYAP.js → I2BM5KSH.js} +1 -1
  87. package/dist/cdn/IBMPLHXH.js +2 -0
  88. package/dist/cdn/{JQKRGUBU.js → IDAOLPMA.js} +1 -1
  89. package/dist/cdn/{UT4TYXFO.js → IGOJGDYE.js} +1 -1
  90. package/dist/cdn/{4QQVKRJ5.js → IRIGTY65.js} +1 -1
  91. package/dist/cdn/JCCCT72R.js +2 -0
  92. package/dist/cdn/{AJBEE7WE.js → JMR2NH33.js} +1 -1
  93. package/dist/cdn/JSVAA6N4.js +2 -0
  94. package/dist/cdn/JVHMHWIM.js +2 -0
  95. package/dist/cdn/JZMYBU7B.js +2 -0
  96. package/dist/cdn/KKE5EKYC.js +2 -0
  97. package/dist/cdn/KODMEY56.js +2 -0
  98. package/dist/cdn/{D3CFPMAR.js → KOY5DWSR.js} +1 -1
  99. package/dist/cdn/KYESCAI2.js +2 -0
  100. package/dist/cdn/KYOCE6FA.js +2 -0
  101. package/dist/cdn/KZSCAJDG.js +2 -0
  102. package/dist/cdn/L5JZ5COY.js +2 -0
  103. package/dist/cdn/{AY6IOQ3H.js → LAEUROZM.js} +1 -1
  104. package/dist/cdn/LZ7SW2R3.js +2 -0
  105. package/dist/cdn/M4G6TGMS.js +2 -0
  106. package/dist/cdn/{LNF44ZGQ.js → MJVTTSEV.js} +1 -1
  107. package/dist/cdn/MMUAG4IX.js +2 -0
  108. package/dist/cdn/MQI4ZLAS.js +2 -0
  109. package/dist/cdn/{DD4QUBOF.js → N7VRRNQD.js} +1 -1
  110. package/dist/cdn/{RWEUTQWS.js → NJF5UIYM.js} +1 -1
  111. package/dist/cdn/{XG2KN6YJ.js → NKPZCF5U.js} +1 -1
  112. package/dist/cdn/{VE3GFNNM.js → NRXCKYYY.js} +1 -1
  113. package/dist/cdn/{4C6KWLWN.js → NWLNHFHJ.js} +1 -1
  114. package/dist/cdn/{4E7C5QPS.js → NWYSPTLF.js} +1 -1
  115. package/dist/cdn/O4DFT4N4.js +2 -0
  116. package/dist/cdn/{NAXNRCMZ.js → OD2NWPCL.js} +1 -1
  117. package/dist/cdn/OGH6DSQR.js +2 -0
  118. package/dist/cdn/{53FG76LL.js → OH3X6QIK.js} +1 -1
  119. package/dist/cdn/{4ZIZEJXS.js → OISERMTF.js} +1 -1
  120. package/dist/cdn/OIWZXO7H.js +2 -0
  121. package/dist/cdn/{ETOGNYFU.js → OKAZOAYZ.js} +1 -1
  122. package/dist/cdn/OKKEWHMB.js +2 -0
  123. package/dist/cdn/{XUERYUEG.js → OQFM5DBD.js} +1 -1
  124. package/dist/cdn/OURE3TA5.js +2 -0
  125. package/dist/cdn/{C5K6XOCR.js → P37JASN4.js} +1 -1
  126. package/dist/cdn/{KDJ5RVHA.js → P3AYFJRV.js} +1 -1
  127. package/dist/cdn/{244ZX2UP.js → P5I5RQTN.js} +1 -1
  128. package/dist/cdn/{RDTBZUT7.js → PAPE3NIS.js} +1 -1
  129. package/dist/cdn/{BJ7Q7LCT.js → PIZPF2BH.js} +1 -1
  130. package/dist/cdn/{XWKBJDZT.js → PMFGLOZL.js} +1 -1
  131. package/dist/cdn/PT2OG4W2.js +2 -0
  132. package/dist/cdn/PWJBGZPW.js +2 -0
  133. package/dist/cdn/Q366CY3F.js +45 -0
  134. package/dist/cdn/{OYHKUGS6.js → QHJSE3P3.js} +1 -1
  135. package/dist/cdn/{7UQHB6KY.js → QIG5H6WA.js} +1 -1
  136. package/dist/cdn/QKUFLZC3.js +2 -0
  137. package/dist/cdn/{XMPLEHTW.js → QKZK6MTN.js} +1 -1
  138. package/dist/cdn/QO2RH3XB.js +3 -0
  139. package/dist/cdn/QPX4FNCB.js +2 -0
  140. package/dist/cdn/{XIJ5VLER.js → QTAETIIH.js} +1 -1
  141. package/dist/cdn/QYRHZJH3.js +2 -0
  142. package/dist/cdn/{FLO3N6JD.js → QZIF3GED.js} +1 -1
  143. package/dist/cdn/RD7TKIQS.js +2 -0
  144. package/dist/cdn/RGIL6ZEZ.js +2 -0
  145. package/dist/cdn/RNGQEQRO.js +2 -0
  146. package/dist/cdn/RPUEIRTH.js +2 -0
  147. package/dist/cdn/{VFM2EV3M.js → S6CNTZIE.js} +1 -1
  148. package/dist/cdn/S6RBDFHP.js +2 -0
  149. package/dist/cdn/SIHW3QVG.js +2 -0
  150. package/dist/cdn/SS7GYFUD.js +2 -0
  151. package/dist/cdn/{DNTLH5RT.js → SSOL6PCL.js} +1 -1
  152. package/dist/cdn/SXT66JGI.js +2 -0
  153. package/dist/cdn/SZSTCHLY.js +2 -0
  154. package/dist/cdn/SZYIWW3C.js +2 -0
  155. package/dist/cdn/T75QDGXB.js +2 -0
  156. package/dist/cdn/{ZYOWZCR7.js → TB7JE5XK.js} +1 -1
  157. package/dist/cdn/{AK7X7SGI.js → TENIFMA5.js} +1 -1
  158. package/dist/cdn/{M4AQLWZU.js → TNUZFQGZ.js} +1 -1
  159. package/dist/cdn/{WMPWOPRZ.js → TRAVRA3M.js} +1 -1
  160. package/dist/cdn/{O2ERVMSN.js → U25H6VUE.js} +1 -1
  161. package/dist/cdn/UCHQXTEC.js +2 -0
  162. package/dist/cdn/{P5AO3V3M.js → UD724V36.js} +1 -1
  163. package/dist/cdn/ULQSD4KK.js +2 -0
  164. package/dist/cdn/{DSIFL2DF.js → UQSD6YZM.js} +1 -1
  165. package/dist/cdn/{Q7J7EKQW.js → UUVJGPFG.js} +1 -1
  166. package/dist/cdn/UVESG7TY.js +2 -0
  167. package/dist/cdn/{PH6UOHRS.js → V4NEFGS3.js} +1 -1
  168. package/dist/cdn/{NG2IHVZ4.js → V54RTUAV.js} +1 -1
  169. package/dist/cdn/{ZQDADGLQ.js → VLCUXTLC.js} +1 -1
  170. package/dist/cdn/VMHDTE3U.js +2 -0
  171. package/dist/cdn/VQMG3F5Z.js +2 -0
  172. package/dist/cdn/VQU2TVX7.js +3 -0
  173. package/dist/cdn/VWUW3HFU.js +2 -0
  174. package/dist/cdn/W66Q5TB6.js +2 -0
  175. package/dist/cdn/{5AOYADA3.js → WKRD4TIL.js} +1 -1
  176. package/dist/cdn/WMYNPECY.js +2 -0
  177. package/dist/cdn/WOGALV3T.js +2 -0
  178. package/dist/cdn/{6B7JCDQC.js → WTF2PFHV.js} +1 -1
  179. package/dist/cdn/WTMEWLUJ.js +2 -0
  180. package/dist/cdn/WTOK3YQI.js +2 -0
  181. package/dist/cdn/WVOXFKFO.js +2 -0
  182. package/dist/cdn/X2FMGJRP.js +2 -0
  183. package/dist/cdn/X733UM32.js +2 -0
  184. package/dist/cdn/XGWHDERD.js +2 -0
  185. package/dist/cdn/{2HGBRW4I.js → XOB6RSOR.js} +1 -1
  186. package/dist/cdn/{BXYNEUQY.js → YCQLYXH4.js} +1 -1
  187. package/dist/cdn/YFMHKHFE.js +2 -0
  188. package/dist/cdn/YHC6WRNQ.js +2 -0
  189. package/dist/cdn/ZDKUHFRX.js +2 -0
  190. package/dist/cdn/ZK72BJCQ.js +2 -0
  191. package/dist/cdn/{EUOPRFMU.js → ZLARROJV.js} +1 -1
  192. package/dist/cdn/{5ZGALYWZ.js → ZLCRTIQH.js} +1 -1
  193. package/dist/cdn/{TYUVXRBO.js → ZZHKDFTA.js} +1 -1
  194. package/dist/cdn/assets/charts-config-view-charts/t9n/messages.en.json +1 -1
  195. package/dist/cdn/assets/common/t9n/messages.en.json +1 -1
  196. package/dist/cdn/index.js +1 -1
  197. package/dist/cdn/main.css +1 -1
  198. package/dist/cdn/model/shared/setup-utils.js +2 -0
  199. package/dist/chart-rendering/common/data/utils/summarize-data/interfaces.d.ts +5 -1
  200. package/dist/chart-rendering/common/interfaces.d.ts +111 -73
  201. package/dist/chunks/{type-guards3.js → action-bar-utils.js} +38 -46
  202. package/dist/chunks/axis-lines-symbol.js +9 -9
  203. package/dist/chunks/bar-chart-model.js +49 -41
  204. package/dist/chunks/box-plot-data.js +291 -274
  205. package/dist/chunks/box-plot-model.js +143 -130
  206. package/dist/chunks/chart-model.js +194 -153
  207. package/dist/chunks/chart-object-literals.js +26 -25
  208. package/dist/chunks/chart-ui-utils.js +148 -66
  209. package/dist/chunks/chart-ui-utils2.js +68 -149
  210. package/dist/chunks/class-breaks.js +270 -238
  211. package/dist/chunks/combo-bar-line-chart-model.js +122 -101
  212. package/dist/chunks/data-labels-symbol.js +39 -24
  213. package/dist/chunks/data-labels-visibility.js +8 -8
  214. package/dist/chunks/data.js +70 -70
  215. package/dist/chunks/default.js +6 -6
  216. package/dist/chunks/gauge-model.js +71 -71
  217. package/dist/chunks/generate-x-axis-title.js +19 -19
  218. package/dist/chunks/heat-chart-model.js +98 -69
  219. package/dist/chunks/histogram-data.js +24 -24
  220. package/dist/chunks/histogram-model.js +11 -11
  221. package/dist/chunks/index.js +9353 -1079
  222. package/dist/chunks/index2.js +851 -8748
  223. package/dist/chunks/index3.js +1169 -846
  224. package/dist/chunks/index4.js +10969 -677
  225. package/dist/chunks/index5.js +62 -10794
  226. package/dist/chunks/interfaces.js +9 -9
  227. package/dist/chunks/line-chart-model.js +41 -25
  228. package/dist/chunks/model-setter.js +59 -64
  229. package/dist/chunks/model-types.js +1 -1
  230. package/dist/chunks/model-with-line-marker-styling.js +72 -47
  231. package/dist/chunks/model-with-x-guides.js +6 -6
  232. package/dist/chunks/model-with-y-guides.js +52 -67
  233. package/dist/chunks/negative-values-stacked-to-baseline.js +122 -71
  234. package/dist/chunks/pie-chart-data.js +175 -193
  235. package/dist/chunks/pie-chart-model.js +388 -320
  236. package/dist/chunks/radar-chart-model.js +413 -46
  237. package/dist/chunks/resource.js +1 -1
  238. package/dist/chunks/rest-js-object-literals.js +10 -10
  239. package/dist/chunks/rotated-state.js +2 -2
  240. package/dist/chunks/rounded-corners.js +90 -0
  241. package/dist/chunks/scatterplot-model.js +27 -27
  242. package/dist/chunks/serial-chart-data.js +887 -755
  243. package/dist/chunks/serial-chart-model.js +151 -129
  244. package/dist/chunks/series-length.js +18 -18
  245. package/dist/chunks/series-types.js +22 -18
  246. package/dist/chunks/series.js +3 -3
  247. package/dist/chunks/store.js +5 -5
  248. package/dist/chunks/type-guards.js +49 -23
  249. package/dist/chunks/type-guards2.js +61 -52
  250. package/dist/chunks/utils.js +99 -89
  251. package/dist/chunks/utils2.js +9 -9
  252. package/dist/chunks/web-component-utils.js +632 -492
  253. package/dist/chunks/x-bounds.js +98 -97
  254. package/dist/components/arcgis-chart/customElement.d.ts +791 -277
  255. package/dist/components/arcgis-chart/customElement.js +11155 -10958
  256. package/dist/components/arcgis-charts-action-bar/customElement.d.ts +12 -0
  257. package/dist/components/arcgis-charts-action-bar/customElement.js +40 -37
  258. package/dist/components/arcgis-charts-config-axis/customElement.js +70 -64
  259. package/dist/components/arcgis-charts-config-bar-chart/customElement.js +39 -33
  260. package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +30 -30
  261. package/dist/components/arcgis-charts-config-bar-chart-data/index.js +1 -1
  262. package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +35 -37
  263. package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +44 -43
  264. package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +13 -15
  265. package/dist/components/arcgis-charts-config-box-plot/customElement.js +31 -39
  266. package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +17 -17
  267. package/dist/components/arcgis-charts-config-box-plot-data/index.js +1 -1
  268. package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +26 -28
  269. package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +4 -4
  270. package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +14 -17
  271. package/dist/components/arcgis-charts-config-category-format/customElement.js +1 -1
  272. package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +18 -20
  273. package/dist/components/arcgis-charts-config-color-style/customElement.js +1 -1
  274. package/dist/components/arcgis-charts-config-colors/customElement.js +1 -1
  275. package/dist/components/arcgis-charts-config-create-flow/customElement.js +243 -229
  276. package/dist/components/arcgis-charts-config-field-picker/customElement.js +30 -0
  277. package/dist/components/arcgis-charts-config-font-style/customElement.js +4 -4
  278. package/dist/components/arcgis-charts-config-format/customElement.js +94 -87
  279. package/dist/components/arcgis-charts-config-format-popover/customElement.js +8 -11
  280. package/dist/components/arcgis-charts-config-general/customElement.js +5 -5
  281. package/dist/components/arcgis-charts-config-guide/customElement.js +26 -27
  282. package/dist/components/arcgis-charts-config-guide-popover/customElement.js +10 -13
  283. package/dist/components/arcgis-charts-config-guides/customElement.js +1 -1
  284. package/dist/components/arcgis-charts-config-heat-chart/customElement.js +12 -13
  285. package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +66 -78
  286. package/dist/components/arcgis-charts-config-heat-chart-data/index.js +1 -1
  287. package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +58 -59
  288. package/dist/components/arcgis-charts-config-histogram/customElement.js +27 -23
  289. package/dist/components/arcgis-charts-config-histogram-data/customElement.js +27 -27
  290. package/dist/components/arcgis-charts-config-histogram-data/index.js +1 -1
  291. package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +35 -36
  292. package/dist/components/arcgis-charts-config-invalid-input-message/customElement.js +1 -1
  293. package/dist/components/arcgis-charts-config-line-chart/customElement.js +5 -6
  294. package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +19 -19
  295. package/dist/components/arcgis-charts-config-line-chart-data/index.js +1 -1
  296. package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +42 -44
  297. package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +8 -8
  298. package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +7 -8
  299. package/dist/components/arcgis-charts-config-line-style/customElement.js +2 -2
  300. package/dist/components/arcgis-charts-config-number-format/customElement.js +1 -1
  301. package/dist/components/arcgis-charts-config-pie-chart/customElement.js +5 -6
  302. package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +57 -64
  303. package/dist/components/arcgis-charts-config-pie-chart-data/index.js +1 -1
  304. package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +56 -57
  305. package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +66 -67
  306. package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +7 -10
  307. package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +27 -23
  308. package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +80 -80
  309. package/dist/components/arcgis-charts-config-scatter-plot-data/index.js +1 -1
  310. package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +18 -19
  311. package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +9 -11
  312. package/dist/components/arcgis-charts-config-view-charts/customElement.js +57 -26
  313. package/dist/components/arcgis-charts-info-modal/customElement.js +7 -7
  314. package/dist/docs/api.json +1 -1
  315. package/dist/docs/docs.json +1 -1
  316. package/dist/docs/vscode.html-custom-data.json +1 -1
  317. package/dist/docs/web-types.json +1 -1
  318. package/dist/index.d.ts +70 -62
  319. package/dist/index.js +500 -471
  320. package/dist/interfaces.d.ts +57 -14
  321. package/dist/json-schema/index.d.ts +211 -6
  322. package/dist/loader.js +2 -2
  323. package/dist/model/bar-chart-model/bar-chart-model.d.ts +6 -4
  324. package/dist/model/box-plot-model/box-plot-model.d.ts +11 -5
  325. package/dist/model/chart-model/chart-model-base.d.ts +10 -0
  326. package/dist/model/chart-model/chart-model-wrapper.d.ts +24 -0
  327. package/dist/model/chart-model/chart-model.d.ts +2 -1
  328. package/dist/model/combo-bar-line-chart-model/combo-bar-line-chart-model.d.ts +33 -21
  329. package/dist/model/heat-chart-model/heat-chart-model.d.ts +41 -8
  330. package/dist/model/interfaces/chart-interfaces.d.ts +2 -2
  331. package/dist/model/interfaces/common.d.ts +0 -2
  332. package/dist/model/mixins/model-with-guides.d.ts +1 -1
  333. package/dist/model/mixins/model-with-line-marker-styling.d.ts +28 -19
  334. package/dist/model/mixins/model-with-multi-axes.d.ts +62 -99
  335. package/dist/model/pie-chart-model/pie-chart-legend-model.d.ts +7 -55
  336. package/dist/model/pie-chart-model/pie-chart-model.d.ts +61 -2
  337. package/dist/model/properties/data-labels/data-labels-symbol.d.ts +26 -0
  338. package/dist/model/properties/data-tooltip-font-size.d.ts +20 -0
  339. package/dist/model/properties/rotated-state.d.ts +1 -1
  340. package/dist/model/properties/rounded-corners.d.ts +18 -0
  341. package/dist/model/radar-chart-model/radar-chart-model.d.ts +190 -0
  342. package/dist/model/serial-chart-model/serial-chart-model.d.ts +27 -1
  343. package/dist/model/shared/setup-utils.d.ts +3 -3
  344. package/dist/{model.js → model/shared/setup-utils.js} +12 -12
  345. package/dist/model/shared/type-guards.d.ts +38 -22
  346. package/dist/spec/chart-object-literals.d.ts +4 -3
  347. package/dist/spec/data-source.d.ts +17 -3
  348. package/dist/spec/rest-js-object-literals.d.ts +2 -2
  349. package/dist/spec/rest-js-types.d.ts +22 -8
  350. package/dist/spec/web-chart.d.ts +42 -6
  351. package/dist/types/lumina.d.ts +1 -1
  352. package/dist/types/preact.d.ts +1 -1
  353. package/dist/types/react.d.ts +1 -1
  354. package/dist/types/stencil.d.ts +3 -3
  355. package/dist/utils/chart-config/converter/index.js +742 -0
  356. package/dist/utils/chart-config/utils/index.d.ts +58 -9
  357. package/dist/utils/chart-config/validator/index.d.ts +2 -0
  358. package/dist/utils/chart-config/validator/interfaces.d.ts +4 -3
  359. package/dist/utils/components/interfaces.d.ts +2 -0
  360. package/dist/utils/cursor/interfaces.d.ts +21 -0
  361. package/dist/utils/data/categorical-data/index.d.ts +18 -2
  362. package/dist/utils/data/index.d.ts +28 -22
  363. package/dist/utils/data/interfaces.d.ts +4 -3
  364. package/dist/utils/defaults/index.d.ts +31 -6
  365. package/dist/utils/defaults/interfaces.d.ts +73 -4
  366. package/dist/utils/errors/index.d.ts +1 -1
  367. package/dist/utils/layer/index.d.ts +26 -8
  368. package/dist/utils/layer/inline-conversion/interfaces.d.ts +0 -2
  369. package/dist/utils/layer/interfaces.d.ts +0 -12
  370. package/dist/utils/layer/query-features/index.d.ts +8 -3
  371. package/dist/utils/layer/query-parser/index.d.ts +13 -9
  372. package/dist/utils/layer/utils/index.d.ts +22 -5
  373. package/dist/utils/localization/interfaces.d.ts +13 -1
  374. package/dist/utils/misc/index.d.ts +2 -3
  375. package/dist/utils/misc/interfaces.d.ts +1 -0
  376. package/dist/utils/type-guards/chart-types.d.ts +10 -0
  377. package/dist/utils/type-guards/series-types.d.ts +9 -2
  378. package/dist/utils/types/index.d.ts +1 -5
  379. package/package.json +10 -9
  380. package/dist/cdn/3FTJIVFE.js +0 -2
  381. package/dist/cdn/45JPWIBI.js +0 -2
  382. package/dist/cdn/45PJ5TQL.js +0 -2
  383. package/dist/cdn/47HHRDX4.js +0 -2
  384. package/dist/cdn/4OZZXXZF.js +0 -2
  385. package/dist/cdn/547RDEMV.js +0 -2
  386. package/dist/cdn/5HQ2CJEQ.js +0 -2
  387. package/dist/cdn/5MVNVHYG.js +0 -2
  388. package/dist/cdn/6JGLHOFY.js +0 -2
  389. package/dist/cdn/6LQYOBAL.js +0 -2
  390. package/dist/cdn/6PAONFHB.js +0 -2
  391. package/dist/cdn/6SRISPQN.js +0 -3
  392. package/dist/cdn/74JAZF7U.js +0 -2
  393. package/dist/cdn/7BEC5WZB.js +0 -2
  394. package/dist/cdn/7IV6GMF7.js +0 -2
  395. package/dist/cdn/7SNOZDAD.js +0 -2
  396. package/dist/cdn/7YBKGD3V.js +0 -2
  397. package/dist/cdn/A5GIBV5W.js +0 -2
  398. package/dist/cdn/AT2NWWBG.js +0 -2
  399. package/dist/cdn/ATIARKAU.js +0 -2
  400. package/dist/cdn/B7DM7VT6.js +0 -2
  401. package/dist/cdn/BBURKBKE.js +0 -2
  402. package/dist/cdn/BZCVDNC4.js +0 -102
  403. package/dist/cdn/CAJVNPHZ.js +0 -2
  404. package/dist/cdn/CHQDKVVQ.js +0 -4
  405. package/dist/cdn/CPPT5HUK.js +0 -58
  406. package/dist/cdn/CXQOEN77.js +0 -2
  407. package/dist/cdn/D23GGWFM.js +0 -2
  408. package/dist/cdn/DNMVB3A2.js +0 -2
  409. package/dist/cdn/DYC3Q36R.js +0 -2
  410. package/dist/cdn/EQVQRZHJ.js +0 -2
  411. package/dist/cdn/EXTKNE2L.js +0 -2
  412. package/dist/cdn/EZV7JSQJ.js +0 -2
  413. package/dist/cdn/F5Q73CFW.js +0 -2
  414. package/dist/cdn/FAQDMSUC.js +0 -2
  415. package/dist/cdn/FCXI523J.js +0 -2
  416. package/dist/cdn/FJPGZEGK.js +0 -2
  417. package/dist/cdn/FT2K3J7O.js +0 -2
  418. package/dist/cdn/GCSGY6GL.js +0 -2
  419. package/dist/cdn/GUH6CQE6.js +0 -2
  420. package/dist/cdn/GWQJXXP3.js +0 -2
  421. package/dist/cdn/H6NH46AS.js +0 -2
  422. package/dist/cdn/HJHMEVMB.js +0 -2
  423. package/dist/cdn/HUCSTT64.js +0 -2
  424. package/dist/cdn/HX4236ZL.js +0 -2
  425. package/dist/cdn/I2M6YAUU.js +0 -2
  426. package/dist/cdn/IWVS6SKP.js +0 -2
  427. package/dist/cdn/JILAM6NH.js +0 -2
  428. package/dist/cdn/JNNB2DIA.js +0 -2
  429. package/dist/cdn/KC6CFXB7.js +0 -2
  430. package/dist/cdn/KKWXEF5W.js +0 -2
  431. package/dist/cdn/KV4ZPVWQ.js +0 -2
  432. package/dist/cdn/LKY2A3U6.js +0 -2
  433. package/dist/cdn/M75ENKIU.js +0 -2
  434. package/dist/cdn/MHG42BA5.js +0 -2
  435. package/dist/cdn/MKQAQDRM.js +0 -2
  436. package/dist/cdn/MOMKSNIZ.js +0 -2
  437. package/dist/cdn/MRTKZZTF.js +0 -2
  438. package/dist/cdn/NS3THLCD.js +0 -2
  439. package/dist/cdn/NS7OCROO.js +0 -2
  440. package/dist/cdn/NZR4L5AA.js +0 -2
  441. package/dist/cdn/O4M33ZPK.js +0 -2
  442. package/dist/cdn/OVM5QF7Q.js +0 -2
  443. package/dist/cdn/OY6UOUYX.js +0 -2
  444. package/dist/cdn/P3RM2ACY.js +0 -2
  445. package/dist/cdn/P4HSSZRL.js +0 -2
  446. package/dist/cdn/P6SC5DD2.js +0 -2
  447. package/dist/cdn/P74SXC5B.js +0 -2
  448. package/dist/cdn/PAIRUVLU.js +0 -2
  449. package/dist/cdn/PEZCCXQ7.js +0 -2
  450. package/dist/cdn/PKMZ6N6M.js +0 -2
  451. package/dist/cdn/PTFRQF65.js +0 -2
  452. package/dist/cdn/PYKHO4QI.js +0 -2
  453. package/dist/cdn/RG3I5ORH.js +0 -2
  454. package/dist/cdn/RKKWMNWU.js +0 -2
  455. package/dist/cdn/S3BC57BJ.js +0 -4
  456. package/dist/cdn/S6PJHEJ7.js +0 -2
  457. package/dist/cdn/THTYR6IL.js +0 -2
  458. package/dist/cdn/TORIY3OE.js +0 -2
  459. package/dist/cdn/TTDZKISK.js +0 -2
  460. package/dist/cdn/TXSWWAOF.js +0 -2
  461. package/dist/cdn/TZ4GOE2Q.js +0 -2
  462. package/dist/cdn/U67P6YAZ.js +0 -2
  463. package/dist/cdn/UNUPCA4W.js +0 -2
  464. package/dist/cdn/URYNG6OA.js +0 -2
  465. package/dist/cdn/V2XJSJH4.js +0 -2
  466. package/dist/cdn/V76PIVCF.js +0 -2
  467. package/dist/cdn/V7MBHG4F.js +0 -2
  468. package/dist/cdn/VOTZAPI3.js +0 -2
  469. package/dist/cdn/W7X6L2OB.js +0 -127
  470. package/dist/cdn/X6WA2KXK.js +0 -2
  471. package/dist/cdn/XFZX5ULX.js +0 -2
  472. package/dist/cdn/XJFVSX2E.js +0 -2
  473. package/dist/cdn/XMQCH4QI.js +0 -2
  474. package/dist/cdn/Y3CXVO2M.js +0 -2
  475. package/dist/cdn/YIIPYKTL.js +0 -2
  476. package/dist/cdn/YKGZVYK2.js +0 -2
  477. package/dist/cdn/YVVQVAJZ.js +0 -2
  478. package/dist/cdn/YYK7SPXC.js +0 -2
  479. package/dist/cdn/YZQ54BRI.js +0 -2
  480. package/dist/cdn/Z7EBST4A.js +0 -3
  481. package/dist/cdn/ZFM5RGWD.js +0 -142
  482. package/dist/cdn/ZQCUJ7VE.js +0 -2
  483. package/dist/chunks/bar-chart-series.js +0 -15
  484. package/dist/chunks/index6.js +0 -103
  485. package/dist/chunks/index7.js +0 -66
  486. package/dist/chunks/time-zone.js +0 -38
  487. package/dist/components/arcgis-charts-config-field-select/customElement.js +0 -30
  488. /package/dist/cdn/{WVRBLV5L.js → 7NWEE7T2.js} +0 -0
  489. /package/dist/components/{arcgis-charts-config-field-select → arcgis-charts-config-field-picker}/index.js +0 -0
@@ -1,265 +1,247 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { substitute as h } from "@arcgis/core/intl.js";
3
- import { memoize as W, isEmpty as $, isNull as R, cloneDeep as U } from "lodash-es";
4
- import { P as y, a as g } from "./common.js";
5
- import { g as A, u as q } from "./utils.js";
6
- import { g as z } from "./data.js";
7
- import { a as G } from "./series-length.js";
2
+ import { substitute as O } from "@arcgis/core/intl.js";
3
+ import { isEmpty as E, isNull as M, cloneDeep as U } from "lodash-es";
4
+ import { P as g, a as y } from "./common.js";
5
+ import { g as x, u as L } from "./utils.js";
6
+ import { g as W } from "./data.js";
7
+ import { g as k } from "./series-length.js";
8
8
  import { g as _ } from "./utils2.js";
9
- import { S as M, t as k, a3 as H } from "./index.js";
10
- import { d as P } from "./index3.js";
11
- import { m as O, an as L, n as V } from "./index2.js";
12
- import { i as w } from "./index5.js";
13
- import { r as m, p as b, n as F, u as J } from "./chart-object-literals.js";
14
- import { i as Q } from "./rest-js-object-literals.js";
15
- function v(r) {
16
- const { config: t, layerInfo: e, mode: i, commonStrings: s } = r, a = e !== void 0 ? D({ config: t, layerInfo: e, commonStrings: s, mode: i }) : "", l = G(t), d = w(t);
17
- return a === l || d;
9
+ import { a6 as H, H as z, af as G } from "./index3.js";
10
+ import { b as P } from "./index2.js";
11
+ import { w as A, r as B, y as w } from "./index.js";
12
+ import { i as K } from "./index4.js";
13
+ import { d as p, g as C, t as f } from "./chart-object-literals.js";
14
+ function v(s) {
15
+ const { config: t, layerInfo: e, mode: i, commonStrings: r } = s, o = e !== void 0 ? D({ config: t, layerInfo: e, commonStrings: r, mode: i }) : "", d = k(t), l = K(t);
16
+ return o === d || l;
18
17
  }
19
- function B(r) {
20
- const { config: t, layerInfo: e, mode: i, commonStrings: s } = r, a = e !== void 0 ? A({
18
+ function I(s) {
19
+ const { config: t, layerInfo: e, mode: i, commonStrings: r } = s, o = e !== void 0 ? x({
21
20
  config: t,
22
21
  layerInfo: e,
23
- commonStrings: s,
24
- numericFields: f(t),
25
- aggregationType: T(t, i)
26
- }) : "", l = _(1, t), d = w(t);
27
- return a === l || d;
22
+ commonStrings: r,
23
+ numericFields: m(t),
24
+ aggregationType: F(t, i)
25
+ }) : "", d = _(1, t), l = K(t);
26
+ return o === d || l;
28
27
  }
29
- const I = (r) => r.series?.[0]?.x ?? "";
30
- function X(r, t) {
31
- const e = r.series?.[0];
32
- return [`${t === y.Category ? e.y : V} ${b.Descending}`];
28
+ const b = (s) => s.series?.[0]?.x ?? "";
29
+ function J(s, t) {
30
+ const e = s.series?.[0];
31
+ return [`${t === g.Category ? e.y : w} ${C.Descending}`];
33
32
  }
34
- const K = (r, t) => {
35
- let e = g.valueDesc;
36
- const i = r.orderOptions?.data?.orderType ?? X(r, t), s = r.orderOptions?.data && "orderBy" in r.orderOptions.data ? r.orderOptions.data.orderBy : b.Descending;
37
- return i === F.Category && Array.isArray(s) ? e = g.customSort : i === F.Category ? s === b.Ascending ? e = g.labelAsc : e = g.labelDesc : s === b.Ascending ? e = g.valueAsc : e = g.valueDesc, e;
38
- }, f = W(
39
- // without memoizing, the worst case efficiency is O(series.length), best case is O(1)
40
- // with memoizing, the worst case efficiency for repeated calls becomes O(1)
41
- (r) => {
42
- let t = [];
43
- return t = r.series?.[0]?.query?.outStatistics?.map(
44
- (e) => e.onStatisticField
45
- ) ?? [r.series?.[0]?.y ?? ""], t.filter((e) => e !== "");
46
- },
47
- // using series array address as key, since a change to the numeric fields will always rebuild a fresh series array
48
- (r) => r.series
49
- ), T = (r, t) => {
50
- const e = f(r);
33
+ const Y = (s, t) => {
34
+ let e = y.valueDesc;
35
+ const i = s.orderOptions?.data?.orderType ?? J(s, t), r = s.orderOptions?.data && "orderBy" in s.orderOptions.data ? s.orderOptions.data.orderBy : C.Descending;
36
+ return i === f.Category && Array.isArray(r) ? e = y.customSort : i === f.Category ? r === C.Ascending ? e = y.labelAsc : e = y.labelDesc : r === C.Ascending ? e = y.valueAsc : e = y.valueDesc, e;
37
+ }, m = (s) => {
38
+ let t = [];
39
+ return t = s.series?.[0]?.query?.outStatistics?.map(
40
+ (e) => e.onStatisticField
41
+ ) ?? [s.series?.[0]?.y ?? ""], t.filter((e) => e !== "");
42
+ }, F = (s, t) => {
43
+ const e = m(s);
51
44
  let i;
52
- return t === y.Fields && e.length === 0 ? i = m.Sum : i = r.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? m.NoAggregation, i;
45
+ return t === g.Fields && e.length === 0 ? i = p.Sum : i = s.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? p.NoAggregation, i;
53
46
  };
54
- function Y(r) {
55
- const { config: t, layerInfo: e, mode: i, commonStrings: s } = r, a = L(e?.layer).idField, l = H(s, a), d = I(t), c = t.series[0]?.dataLabels, o = {
56
- ...l,
57
- x: i === y.Category ? d : O,
58
- slices: t.series?.[0]?.slices,
59
- dataLabels: {
60
- ...l.dataLabels,
61
- type: l.dataLabels?.type ?? J.Text,
62
- content: { ...l.dataLabels?.content, ...c?.content, type: Q.TS },
63
- visible: c?.visible ?? !1
64
- },
65
- innerRadiusSize: t.series?.[0]?.innerRadius,
66
- sliceGrouping: t.series?.[0]?.sliceGrouping,
67
- dataLabelsCharacterLimit: t.series?.[0]?.dataLabelsCharacterLimit,
68
- numericValueFormat: t.series?.[0]?.numericValueFormat,
69
- percentValueFormat: t.series?.[0]?.percentValueFormat,
70
- displayCategoryOnDataLabel: t.series?.[0]?.displayCategoryOnDataLabel,
71
- displayNumericValueOnDataLabel: t.series?.[0]?.displayNumericValueOnDataLabel,
72
- displayPercentageOnDataLabel: t.series?.[0]?.displayPercentageOnDataLabel
73
- }, n = T(t, i);
74
- if (n !== m.NoAggregation && a !== void 0) {
75
- const u = `${n}_${a}_0`.toUpperCase();
76
- o.y = i === y.Category ? u : V, o.query = {
77
- outStatistics: i === y.Category ? [
47
+ function j(s) {
48
+ const { config: t, layerInfo: e, mode: i, commonStrings: r } = s, o = B(e?.layer).idField, d = t.series[0] ?? G(r, o), l = b(t), c = {
49
+ ...d,
50
+ x: i === g.Category ? l : A
51
+ }, a = F(t, i);
52
+ if (a !== p.NoAggregation && o !== void 0) {
53
+ const n = `${a}_${o}_0`.toUpperCase();
54
+ c.y = i === g.Category ? n : w, c.query = {
55
+ outStatistics: i === g.Category ? [
78
56
  {
79
- statisticType: n,
80
- onStatisticField: a,
81
- outStatisticFieldName: u
57
+ statisticType: a,
58
+ onStatisticField: o,
59
+ outStatisticFieldName: n
82
60
  }
83
61
  ] : []
84
62
  };
85
63
  }
86
- return i === y.Category && o.query !== void 0 ? o.query.groupByFieldsForStatistics = [d] : delete o.query?.groupByFieldsForStatistics, U(o);
64
+ return i === g.Category && c.query !== void 0 ? c.query.groupByFieldsForStatistics = [l] : delete c.query?.groupByFieldsForStatistics, U(c);
87
65
  }
88
- function D(r) {
89
- const { config: t, layerInfo: e, mode: i, commonStrings: s } = r, { layerFieldsInfo: a } = e, { idField: l, isTraditionalTypeOID: d } = L(e.layer), c = I(t), o = f(t), n = T(t, i), u = d && (o.length === 0 || o.includes(l)), p = k(n, s), x = u ? "" : o.map((E) => P(a ?? [], E)).join(", "), S = P(a ?? [], c);
90
- let C = "", N;
91
- return i === y.Fields ? N = o.length === 0 : N = c === "", N ? C = s.utilsStrings.chartType.pieChart : n === m.NoAggregation ? C = h(s.titleLabels.aggrFieldsByCategory, {
92
- aggregationFields: u ? l : x,
93
- category: S
94
- }) : n === m.Count ? C = h(s.titleLabels.aggrTypeCategory, {
95
- aggregationType: p,
96
- category: S
97
- }) : o.length > 0 && (S === O || $(S) || R(S) ? C = h(s.titleLabels.aggrTypeOfAggrFields, {
98
- aggregationType: p,
99
- aggregationFields: x
100
- }) : C = h(s.titleLabels.aggrTypeOfAggrFieldsByCategory, {
101
- aggregationType: p,
102
- aggregationFields: x,
103
- category: S
104
- })), C;
66
+ function D(s) {
67
+ const { config: t, layerInfo: e, mode: i, commonStrings: r } = s, { layerFieldsInfo: o } = e, { idField: d, isTraditionalTypeOID: l } = B(e.layer), c = b(t), a = m(t), n = F(t, i), u = l && (a.length === 0 || a.includes(d)), h = z(n, r), q = u ? "" : a.map(($) => P(o ?? [], $)).join(", "), T = P(o ?? [], c);
68
+ let S = "", N;
69
+ return i === g.Fields ? N = a.length === 0 : N = c === "", N ? S = r.utilsStrings.chartType.pieChart : n === p.NoAggregation ? S = O(r.titleLabels.aggrFieldsByCategory, {
70
+ aggregationFields: u ? d : q,
71
+ category: T
72
+ }) : n === p.Count ? S = O(r.titleLabels.aggrTypeCategory, {
73
+ aggregationType: h,
74
+ category: T
75
+ }) : a.length > 0 && (T === A || E(T) || M(T) ? S = O(r.titleLabels.aggrTypeOfAggrFields, {
76
+ aggregationType: h,
77
+ aggregationFields: q
78
+ }) : S = O(r.titleLabels.aggrTypeOfAggrFieldsByCategory, {
79
+ aggregationType: h,
80
+ aggregationFields: q,
81
+ category: T
82
+ })), S;
105
83
  }
106
- const ue = (r) => {
107
- const { newSortOrderKind: t, config: e, orderByList: i } = r;
108
- e.orderOptions ??= {}, t === g.customSort && i !== void 0 ? e.orderOptions.data = {
109
- orderType: F.Category,
84
+ const de = (s) => {
85
+ const { newSortOrderKind: t, config: e, orderByList: i } = s;
86
+ e.orderOptions ??= {}, t === y.customSort && i !== void 0 ? e.orderOptions.data = {
87
+ orderType: f.Category,
110
88
  orderBy: [...i]
111
89
  } : e.orderOptions.data = {
112
- orderType: t === g.labelAsc || t === g.labelDesc ? F.Category : F.YValue,
113
- orderBy: t === g.labelAsc || t === g.valueAsc ? b.Ascending : b.Descending
90
+ orderType: t === y.labelAsc || t === y.labelDesc ? f.Category : f.YValue,
91
+ orderBy: t === y.labelAsc || t === y.valueAsc ? C.Ascending : C.Descending
114
92
  };
115
- }, pe = (r) => {
116
- const { newCategory: t, config: e, layerInfo: i, mode: s, commonStrings: a } = r, l = e.series?.length ?? 0, d = v({ config: e, layerInfo: i, commonStrings: a, mode: s }), c = B({ config: e, layerInfo: i, commonStrings: a, mode: s });
117
- if (e.series.forEach((o) => {
118
- o.x = s === y.Category ? t : O, o.query !== void 0 && t !== O ? o.query.groupByFieldsForStatistics = [t] : delete o.query?.groupByFieldsForStatistics;
119
- }), l === 0) {
120
- const o = [Y({ config: e, layerInfo: i, mode: s, commonStrings: a })];
121
- e.series = o;
93
+ }, ce = (s) => {
94
+ const { newCategory: t, config: e, layerInfo: i, mode: r, commonStrings: o } = s, d = e.series?.length ?? 0, l = v({ config: e, layerInfo: i, commonStrings: o, mode: r }), c = I({ config: e, layerInfo: i, commonStrings: o, mode: r });
95
+ if (e.series.forEach((a) => {
96
+ a.x = r === g.Category ? t : A, a.query !== void 0 && t !== A ? a.query.groupByFieldsForStatistics = [t] : delete a.query?.groupByFieldsForStatistics;
97
+ }), d === 0) {
98
+ const a = [j({ config: e, layerInfo: i, mode: r, commonStrings: o })];
99
+ e.series = a;
122
100
  }
123
101
  if (i !== void 0) {
124
102
  if (c) {
125
- const n = A({
103
+ const n = x({
126
104
  config: e,
127
105
  layerInfo: i,
128
- numericFields: f(e),
129
- aggregationType: T(e, s),
130
- commonStrings: a
106
+ numericFields: m(e),
107
+ aggregationType: F(e, r),
108
+ commonStrings: o
131
109
  });
132
- q(e, 1, n);
110
+ L(e, 1, n);
133
111
  }
134
- e.title && d && (e.title.content.text = D({ config: e, layerInfo: i, commonStrings: a, mode: s }));
135
- const o = s === y.Fields ? f(e).filter((n) => n !== L(i.layer).idField) : f(e);
136
- Z({ newNumericFields: o, config: e, layerInfo: i, mode: s, commonStrings: a });
112
+ e.title && l && (e.title.content.text = D({ config: e, layerInfo: i, commonStrings: o, mode: r }));
113
+ const a = r === g.Fields ? m(e).filter((n) => n !== B(i.layer).idField) : m(e);
114
+ Q({ newNumericFields: a, config: e, layerInfo: i, mode: r, commonStrings: o });
137
115
  }
138
116
  };
139
- function j(r) {
140
- const { numericFields: t, aggregationType: e, config: i, layerInfo: s, mode: a, commonStrings: l } = r, { layerFieldsInfo: d } = s, c = [], o = Y({
117
+ function V(s) {
118
+ const { numericFields: t, aggregationType: e, config: i, layerInfo: r, mode: o, commonStrings: d } = s, { layerFieldsInfo: l } = r, c = [], a = j({
141
119
  config: i,
142
- layerInfo: s,
143
- mode: a,
144
- commonStrings: l
145
- }), n = {
146
- ...o,
147
- query: {
148
- ...o.query
149
- }
150
- };
151
- t.length <= 1 ? n.query.where = o.query?.where : delete n.query.where;
152
- const u = z({
120
+ layerInfo: r,
121
+ mode: o,
122
+ commonStrings: d
123
+ });
124
+ a.query || (a.query = {}), t.length > 1 && delete a.query?.where;
125
+ const n = W({
153
126
  config: i,
154
- xAxisField: I(i),
127
+ xAxisField: b(i),
155
128
  numericFields: t,
156
129
  aggregationType: e,
157
- mode: a,
158
- layer: s.layer,
159
- fieldList: d
130
+ mode: o,
131
+ layer: r.layer,
132
+ fieldList: l
160
133
  }).name;
161
- if (e !== m.NoAggregation)
162
- if (a === y.Category) {
134
+ if (e !== p.NoAggregation)
135
+ if (o === g.Category) {
163
136
  if (t.length > 0) {
164
- const p = t[0];
165
- n.query.outStatistics = [
137
+ const u = t[0];
138
+ a.query.outStatistics = [
166
139
  {
167
- ...o.query?.outStatistics?.[0] ?? {},
168
- onStatisticField: p,
169
- outStatisticFieldName: u,
140
+ ...a.query?.outStatistics?.[0] ?? {},
141
+ onStatisticField: u,
142
+ outStatisticFieldName: n,
170
143
  statisticType: e
171
144
  }
172
- ];
145
+ ], a.query.groupByFieldsForStatistics = [b(i)];
173
146
  }
174
- } else
175
- for (const p of t)
176
- n.query.outStatistics?.push({
177
- onStatisticField: p,
178
- outStatisticFieldName: p,
147
+ } else {
148
+ a.query.outStatistics = [];
149
+ for (const u of t)
150
+ a.query.outStatistics?.push({
151
+ onStatisticField: u,
152
+ outStatisticFieldName: u,
179
153
  statisticType: e
180
154
  });
155
+ delete a.query.groupByFieldsForStatistics;
156
+ }
181
157
  else
182
- n.query = {};
183
- n.y = u, c.push(n), i.series = c;
158
+ a.query = {};
159
+ a.y = n, c.push(a), i.series = c;
184
160
  }
185
- const me = (r) => {
186
- const { newAggregationType: t, config: e, layerInfo: i, mode: s, commonStrings: a } = r, l = f(e), d = v({ config: e, layerInfo: i, commonStrings: a, mode: s }), c = B({ config: e, layerInfo: i, commonStrings: a, mode: s });
187
- if (j({
161
+ const ge = (s) => {
162
+ const { newAggregationType: t, config: e, layerInfo: i, mode: r, commonStrings: o } = s, d = m(e), l = v({ config: e, layerInfo: i, commonStrings: o, mode: r }), c = I({ config: e, layerInfo: i, commonStrings: o, mode: r });
163
+ if (V({
188
164
  config: e,
189
165
  layerInfo: i,
190
- numericFields: l,
166
+ numericFields: d,
191
167
  aggregationType: t,
192
- commonStrings: a,
193
- mode: s
168
+ commonStrings: o,
169
+ mode: r
194
170
  }), c) {
195
- const p = A({
171
+ const h = x({
196
172
  config: e,
197
173
  layerInfo: i,
198
- commonStrings: a,
199
- numericFields: f(e),
200
- aggregationType: T(e, s)
174
+ commonStrings: o,
175
+ numericFields: m(e),
176
+ aggregationType: F(e, r)
201
177
  });
202
- q(e, 1, p);
178
+ L(e, 1, h);
203
179
  }
204
- e.title && d && (e.title.content.text = D({ config: e, layerInfo: i, commonStrings: a, mode: s }));
205
- const o = e.series?.[0]?.displayCategoryOnDataLabel, n = e.series?.[0]?.displayNumericValueOnDataLabel, u = e.series?.[0]?.displayPercentageOnDataLabel;
180
+ e.title && l && (e.title.content.text = D({ config: e, layerInfo: i, commonStrings: o, mode: r }));
181
+ const a = e.series?.[0]?.displayCategoryOnDataLabel, n = e.series?.[0]?.displayNumericValueOnDataLabel, u = e.series?.[0]?.displayPercentageOnDataLabel;
206
182
  e.legend = {
207
- ...e.legend ?? M(),
183
+ ...e.legend ?? H(),
208
184
  displayNumericValue: n,
209
185
  displayPercentage: u,
210
- displayCategory: o
186
+ displayCategory: a
211
187
  };
212
- }, Z = (r) => {
213
- let { newNumericFields: t } = r;
214
- const { config: e, layerInfo: i, mode: s, commonStrings: a } = r, l = L(i?.layer).idField;
215
- let d = T(e, s);
216
- const c = v({ config: e, layerInfo: i, commonStrings: a, mode: s }), o = B({ config: e, layerInfo: i, commonStrings: a, mode: s });
217
- if (t = t === "" ? [] : t, t = typeof t == "string" ? [t] : t, l !== void 0 && (t.length === 0 && s === y.Category ? (t.push(l), d = m.Count) : d === m.Count && t.length >= 1 && !t.includes(l) && (d = m.Sum)), i !== void 0) {
218
- if (j({
188
+ }, Q = (s) => {
189
+ let { newNumericFields: t } = s;
190
+ const { config: e, layerInfo: i, mode: r, commonStrings: o } = s, d = B(i?.layer).idField;
191
+ let l = F(e, r);
192
+ const c = v({ config: e, layerInfo: i, commonStrings: o, mode: r }), a = I({ config: e, layerInfo: i, commonStrings: o, mode: r });
193
+ if (t = t === "" ? [] : t, t = typeof t == "string" ? [t] : t, d !== void 0 && (t.length === 0 && r === g.Category ? (t = [d], l = p.Count) : l === p.Count && t.length >= 1 && !t.includes(d) && (l = p.Sum)), i !== void 0) {
194
+ if (V({
219
195
  config: e,
220
196
  layerInfo: i,
221
- commonStrings: a,
197
+ commonStrings: o,
222
198
  numericFields: t,
223
- aggregationType: d,
224
- mode: s
225
- }), o) {
226
- const n = A({
199
+ aggregationType: l,
200
+ mode: r
201
+ }), a) {
202
+ const n = x({
227
203
  config: e,
228
204
  layerInfo: i,
229
- commonStrings: a,
230
- numericFields: f(e),
231
- aggregationType: T(e, s)
205
+ commonStrings: o,
206
+ numericFields: m(e),
207
+ aggregationType: F(e, r)
232
208
  });
233
- q(e, 1, n);
209
+ L(e, 1, n);
234
210
  }
235
- e.title && c && (e.title.content.text = D({ config: e, layerInfo: i, commonStrings: a, mode: s }));
211
+ e.title && c && (e.title.content.text = D({ config: e, layerInfo: i, commonStrings: o, mode: r }));
236
212
  } else
237
213
  e.series.forEach((n) => {
238
214
  delete n.query, n.y = t[0];
239
215
  });
240
- }, fe = (r, t) => {
216
+ }, ye = (s, t) => {
241
217
  let e = [];
242
- const i = r.orderOptions?.data?.orderType, s = K(r, t), a = r.orderOptions?.data && "orderBy" in r.orderOptions.data ? r.orderOptions.data.orderBy : void 0;
243
- return s === g.customSort && i === F.Category && Array.isArray(a) && (e = a), e;
244
- }, Fe = (r) => {
245
- const { values: t, config: e, mode: i } = r;
218
+ const i = s.orderOptions?.data?.orderType, r = Y(s, t), o = s.orderOptions?.data && "orderBy" in s.orderOptions.data ? s.orderOptions.data.orderBy : void 0;
219
+ return r === y.customSort && i === f.Category && Array.isArray(o) && (e = o), e;
220
+ }, ue = (s) => {
221
+ const { values: t, config: e, mode: i } = s;
246
222
  e.orderOptions ??= {};
247
- const s = e.orderOptions?.data?.orderType;
248
- K(e, i) === g.customSort && s === F.Category && (e.orderOptions.data = {
249
- orderType: F.Category,
223
+ const r = e.orderOptions?.data?.orderType;
224
+ Y(e, i) === y.customSort && r === f.Category && (e.orderOptions.data = {
225
+ orderType: f.Category,
250
226
  orderBy: [...t]
251
227
  });
252
228
  };
229
+ function pe(s) {
230
+ const { category: t = "", numericFields: e = [], fallbackMode: i = g.Category } = s, r = t.trim() !== "" && t !== A;
231
+ let o = i;
232
+ return e.length > 1 || !r && e.length > 0 ? o = g.Fields : r && e.length <= 1 && (o = g.Category), o;
233
+ }
253
234
  export {
254
- f as a,
255
- T as b,
256
- Z as c,
257
- me as d,
258
- K as e,
259
- ue as f,
260
- I as g,
261
- fe as h,
262
- Fe as i,
263
- D as j,
264
- pe as s
235
+ m as a,
236
+ F as b,
237
+ Q as c,
238
+ ge as d,
239
+ Y as e,
240
+ de as f,
241
+ b as g,
242
+ ye as h,
243
+ pe as i,
244
+ ue as j,
245
+ D as k,
246
+ ce as s
265
247
  };