@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,407 +1,480 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { isEqual as re, capitalize as F, isNumber as j, zip as J } from "lodash-es";
3
- import { b as E } from "./interfaces.js";
4
- import { g as ne, a as W, b as ee, c as _ } from "./box-plot-data.js";
5
- import { g as le } from "./histogram-data.js";
6
- import { g as se, a as ue, b as ce } from "./pie-chart-data.js";
7
- import { g as te } from "./series-length.js";
8
- import { g as ae, a as oe, b as fe } from "./serial-chart-data.js";
9
- import { g as H, a as me } from "./data.js";
10
- import { Y as I, an as de, af as ye, aK as N, B as v, ba as ge } from "./index2.js";
11
- import { j as U, av as O, g as k, ap as be, b as xe, a as z } from "./index.js";
12
- import { q as w, C as m, F as L } from "./index3.js";
13
- import { g as pe } from "./series-types.js";
14
- import { V as Fe } from "./index7.js";
15
- import { P as Q } from "./common.js";
16
- import { R as Se } from "./rest-js-object-literals.js";
17
- import { u as V, d as B } from "./chart-object-literals.js";
18
- function De(n) {
19
- const { hour: e, minute: t = 0, format: i, locale: r = "en-US" } = n, o = i && Object.keys(i).length > 0 ? i : {
2
+ import { capitalize as v, isNumber as H, zip as ae, isEqual as ue } from "lodash-es";
3
+ import { H as W } from "./interfaces.js";
4
+ import { g as ce, a as q, b as oe, c as _ } from "./box-plot-data.js";
5
+ import { g as fe } from "./histogram-data.js";
6
+ import { g as me, a as de, b as ye } from "./pie-chart-data.js";
7
+ import { a as ie } from "./series-length.js";
8
+ import { g as re, d as le, e as ge } from "./serial-chart-data.js";
9
+ import { g as z, a as pe } from "./data.js";
10
+ import { p as U, r as be, q as xe, U as E, H as Fe, P as V, a1 as De, aO as Se, bI as ve } from "./index.js";
11
+ import { i as Y, J as $, l as I, K as Be, L as he, M as Q } from "./index3.js";
12
+ import { i as K, a as g, C as A } from "./index2.js";
13
+ import { g as Pe } from "./series-types.js";
14
+ import { V as Ve } from "./index5.js";
15
+ import { DateTime as ne } from "luxon";
16
+ import { P as X } from "./common.js";
17
+ import { a as k, l as L } from "./chart-object-literals.js";
18
+ import { d as Ce } from "./rest-js-object-literals.js";
19
+ function Le(l) {
20
+ const { hour: e, minute: t = 0, format: a, locale: o = "en-US" } = l, i = a && Object.keys(a).length > 0 ? a : {
20
21
  hour: "numeric",
21
22
  minute: "2-digit",
22
23
  hour12: !1
23
24
  };
24
- let a = e.toString();
25
+ let r = e.toString();
25
26
  if (Number.isInteger(e) && e >= 0 && e <= 23 && Number.isInteger(t) && t >= 0 && t <= 59) {
26
- const u = new Date(2e3, 0, 1, e, t);
27
- a = new Intl.DateTimeFormat(r, o).format(u), a.includes(":") || a.startsWith("0") && (a = a.slice(1));
27
+ const n = new Date(2e3, 0, 1, e, t);
28
+ r = new Intl.DateTimeFormat(o, i).format(n), r.includes(":") || r.startsWith("0") && (r = r.slice(1));
28
29
  }
29
- return a;
30
+ return r;
30
31
  }
31
- function he(n) {
32
- const { weekdayNumber: e, format: t, locale: i = "en-US", firstDayOfWeek: r = 7 } = n, o = t && Object.keys(t).length > 0 ? t : { weekday: "long" };
33
- let a = e.toString();
34
- if (Number.isInteger(e) && e > 0 && e <= 7 && Number.isInteger(r) && r > 0 && r <= 7) {
35
- const u = (e + r - 1) % 7, c = new Date(2e3, 0, 2 + u);
36
- a = new Intl.DateTimeFormat(i, o).format(c);
32
+ function Ae(l) {
33
+ const { weekdayNumber: e, format: t, locale: a = "en-US", firstDayOfWeek: o = 7 } = l, i = t && Object.keys(t).length > 0 ? t : { weekday: "long" };
34
+ let r = e.toString();
35
+ if (Number.isInteger(e) && e > 0 && e <= 7 && Number.isInteger(o) && o > 0 && o <= 7) {
36
+ const n = (e + o - 1) % 7, s = new Date(2e3, 0, 2 + n);
37
+ r = new Intl.DateTimeFormat(a, i).format(s);
37
38
  }
38
- return a;
39
+ return r;
39
40
  }
40
- function Pe(n) {
41
- const { monthNumber: e, format: t, locale: i = "en-US" } = n, r = t && Object.keys(t).length > 0 ? t : { month: "long" };
42
- let o = e.toString();
41
+ function Oe(l) {
42
+ const { monthNumber: e, format: t, locale: a = "en-US" } = l, o = t && Object.keys(t).length > 0 ? t : { month: "long" };
43
+ let i = e.toString();
43
44
  if (Number.isInteger(e) && e > 0 && e <= 12) {
44
- const a = new Date(2e3, e - 1);
45
- o = new Intl.DateTimeFormat(i, r).format(a);
45
+ const r = new Date(2e3, e - 1);
46
+ i = new Intl.DateTimeFormat(a, o).format(r);
46
47
  }
47
- return o;
48
+ return i;
48
49
  }
49
- function Z(n) {
50
- const { value: e, formatLocale: t, unit: i, config: r, utilsStrings: o } = n;
51
- let a = { label: "", value: e.toString() };
52
- switch (i) {
53
- case B.DayOfWeek:
54
- a = {
55
- label: o.heatChartCalendarDatePartsUnits.dayOfWeek,
56
- value: he({
50
+ function J(l) {
51
+ const { value: e, formatLocale: t, unit: a, config: o, utilsStrings: i } = l;
52
+ let r = { label: "", value: e.toString() };
53
+ switch (a) {
54
+ case L.DayOfWeek:
55
+ r = {
56
+ label: i.heatChartCalendarDatePartsUnits.dayOfWeek,
57
+ value: Ae({
57
58
  weekdayNumber: e,
58
- firstDayOfWeek: "firstDayOfWeek" in r ? r.firstDayOfWeek : be,
59
+ firstDayOfWeek: "firstDayOfWeek" in o ? o.firstDayOfWeek : Be,
59
60
  locale: t
60
61
  })
61
62
  };
62
63
  break;
63
- case B.MonthOfYear:
64
- a = {
65
- label: o.heatChartCalendarDatePartsUnits.monthOfYear,
66
- value: Pe({
64
+ case L.MonthOfYear:
65
+ r = {
66
+ label: i.heatChartCalendarDatePartsUnits.monthOfYear,
67
+ value: Oe({
67
68
  monthNumber: e,
68
69
  locale: t
69
70
  })
70
71
  };
71
72
  break;
72
- case B.HourOfDay:
73
- a = {
74
- label: o.heatChartCalendarDatePartsUnits.hourOfDay,
75
- value: De({
73
+ case L.HourOfDay:
74
+ r = {
75
+ label: i.heatChartCalendarDatePartsUnits.hourOfDay,
76
+ value: Le({
76
77
  hour: e,
77
78
  format: { hour: "numeric", hour12: !1 },
78
79
  locale: t
79
80
  })
80
81
  };
81
82
  break;
82
- case B.DayOfMonth:
83
- a = {
84
- label: o.heatChartCalendarDatePartsUnits.dayOfMonth,
83
+ case L.DayOfMonth:
84
+ r = {
85
+ label: i.heatChartCalendarDatePartsUnits.dayOfMonth,
85
86
  value: typeof e == "string" ? e : e?.toString() ?? ""
86
87
  };
87
88
  break;
88
- case B.DayOfYear:
89
- a = {
90
- label: o.heatChartCalendarDatePartsUnits.dayOfYear,
89
+ case L.DayOfYear:
90
+ r = {
91
+ label: i.heatChartCalendarDatePartsUnits.dayOfYear,
91
92
  value: typeof e == "string" ? e : e?.toString() ?? ""
92
93
  };
93
94
  break;
94
- case B.MinuteOfDay:
95
- a = {
96
- label: o.heatChartCalendarDatePartsUnits.minuteOfDay,
95
+ case L.MinuteOfDay:
96
+ r = {
97
+ label: i.heatChartCalendarDatePartsUnits.minuteOfDay,
97
98
  value: typeof e == "string" ? e : e?.toString() ?? ""
98
99
  };
99
100
  break;
100
- case B.WeekOfYear:
101
- a = {
102
- label: o.heatChartCalendarDatePartsUnits.weekOfYear,
101
+ case L.WeekOfYear:
102
+ r = {
103
+ label: i.heatChartCalendarDatePartsUnits.weekOfYear,
103
104
  value: typeof e == "string" ? e : e?.toString() ?? ""
104
105
  };
105
106
  break;
106
- case B.QuarterOfYear:
107
- a = {
108
- label: o.heatChartCalendarDatePartsUnits.quarterOfYear,
107
+ case L.QuarterOfYear:
108
+ r = {
109
+ label: i.heatChartCalendarDatePartsUnits.quarterOfYear,
109
110
  value: typeof e == "string" ? e : e?.toString() ?? ""
110
111
  };
111
112
  break;
112
113
  }
113
- return a;
114
+ return r;
114
115
  }
115
- function ve(n, e) {
116
- return !re(n, e);
116
+ function Me(l, e) {
117
+ return !ue(l, e);
117
118
  }
118
- function Ge(n, e) {
119
- return ve(n, e) || n !== e;
119
+ function ut(l, e) {
120
+ return Me(l, e) || l !== e;
120
121
  }
121
- function Ae(n) {
122
- return (new Intl.NumberFormat(n, {
122
+ function we(l) {
123
+ return (new Intl.NumberFormat(l, {
123
124
  minimumFractionDigits: 1,
124
125
  maximumFractionDigits: 1
125
- }).formatToParts(1.1).find((i) => i.type === "decimal")?.value ?? ".") === "." ? "," : ";";
126
+ }).formatToParts(1.1).find((a) => a.type === "decimal")?.value ?? ".") === "." ? "," : ";";
126
127
  }
127
- function Be(n) {
128
- return new Intl.NumberFormat(n, {
128
+ function ke(l) {
129
+ return new Intl.NumberFormat(l, {
129
130
  minimumFractionDigits: 1,
130
131
  maximumFractionDigits: 1
131
132
  }).formatToParts(1.1).find((t) => t.type === "decimal")?.value ?? ".";
132
133
  }
133
- const X = (n) => {
134
- const { value: e, quoteAll: t = !1, locale: i, roundDecimals: r } = n;
135
- let o = e == null ? "" : String(e);
134
+ const G = (l) => {
135
+ const { value: e, quoteAll: t = !1, locale: a, roundDecimals: o } = l;
136
+ let i = e == null ? "" : String(e);
136
137
  if (e === null)
137
- o = "null";
138
+ i = "null";
138
139
  else if (e === void 0)
139
- o = "";
140
- else if (typeof e == "number" && Number.isFinite(e) && i !== void 0) {
141
- const u = Be(i), c = r ?? o.split(u)[1]?.length ?? 2;
142
- o = new Intl.NumberFormat(i, {
143
- maximumFractionDigits: c
140
+ i = "";
141
+ else if (typeof e == "number" && Number.isFinite(e) && a !== void 0) {
142
+ const n = ke(a), s = o ?? i.split(n)[1]?.length ?? 2;
143
+ i = new Intl.NumberFormat(a, {
144
+ maximumFractionDigits: s
144
145
  }).format(e).replace(/\u202F/gu, " ");
145
146
  }
146
- return (t || /[",\r\n]/u.test(o)) && (o = `"${o.replace(/"/gu, '""')}"`), o;
147
+ return (t || /[",\r\n]/u.test(i)) && (i = `"${i.replace(/"/gu, '""')}"`), i;
147
148
  };
148
- function Je(n, e = {}) {
149
- const { columns: t, delimiter: i, includeHeader: r = !0, quoteAll: o = !1, locale: a, roundDecimals: u } = e, c = n.length === 0;
150
- let l = "";
151
- if (!c) {
152
- const S = t ?? Object.keys(n[0]), p = [], x = i ?? Ae(a ?? "en");
153
- if (a !== void 0 && x !== "," && (l += `sep=${x}\r
154
- `), r) {
155
- const y = S.map((s) => X({ value: s, quoteAll: o, locale: a, roundDecimals: u }));
156
- p.push(y.join(x));
149
+ function ct(l, e = {}) {
150
+ const { columns: t, delimiter: a, includeHeader: o = !0, quoteAll: i = !1, locale: r, roundDecimals: n } = e, s = l.length === 0;
151
+ let c = "";
152
+ if (!s) {
153
+ const f = t ?? Object.keys(l[0]), u = [], p = a ?? we(r ?? "en");
154
+ if (r !== void 0 && p !== "," && (c += `sep=${p}\r
155
+ `), o) {
156
+ const B = f.map((b) => G({ value: b, quoteAll: i, locale: r, roundDecimals: n }));
157
+ u.push(B.join(p));
157
158
  }
158
- n.forEach((y) => {
159
- const s = S.map((f) => X({ value: y[f], quoteAll: o, locale: a, roundDecimals: u }));
160
- p.push(s.join(x));
161
- }), l += p.join(`\r
159
+ l.forEach((B) => {
160
+ const b = f.map((x) => G({ value: B[x], quoteAll: i, locale: r, roundDecimals: n }));
161
+ u.push(b.join(p));
162
+ }), c += u.join(`\r
162
163
  `);
163
164
  }
164
- return l;
165
+ return c;
165
166
  }
166
- function et(n) {
167
- const { rawData: e, config: t, layer: i, fieldList: r, formatters: o, formatLocale: a, utilsStrings: u } = n;
168
- let c = [];
167
+ function ft(l) {
168
+ const { rawData: e, config: t, layer: a, fieldList: o, formatters: i, useRendererLabel: r, timeZone: n, formatLocale: s, utilsStrings: c } = l;
169
+ let f = [];
169
170
  if (t !== void 0 && Array.isArray(e) && e.length > 0) {
170
- const l = pe(t?.series);
171
- l === V.HistogramSeries ? c = Ve(
171
+ const u = Pe(t?.series);
172
+ u === k.HistogramSeries ? f = Ie(
172
173
  t,
173
174
  e,
174
- o
175
- ) : l === V.HeatSeries ? c = Le({
175
+ i
176
+ ) : u === k.HeatSeries ? f = Te({
176
177
  config: t,
177
178
  rows: e,
178
- layer: i,
179
- fieldList: r,
180
- formatLocale: a,
181
- utilsStrings: u
182
- }) : l === V.BarSeries || l === V.LineSeries || l === V.ComboLineAndBarSeries ? c = Me({
179
+ layer: a,
180
+ fieldList: o,
181
+ formatLocale: s,
182
+ utilsStrings: c
183
+ }) : u === k.BarSeries || u === k.LineSeries || u === k.ComboLineAndBarSeries ? f = Ke({
183
184
  config: t,
184
185
  rows: e,
185
- layer: i,
186
- fieldList: r,
187
- formatters: o
188
- }) : l === V.PieSeries ? c = $e({
186
+ layer: a,
187
+ fieldList: o,
188
+ formatters: i,
189
+ useRendererLabel: r,
190
+ timeZone: n
191
+ }) : u === k.PieSeries ? f = Ee({
189
192
  config: t,
190
193
  rows: e,
191
- layer: i,
192
- fieldList: r,
193
- formatters: o
194
- }) : l === V.BoxPlotSeries && (c = Te({
194
+ layer: a,
195
+ fieldList: o,
196
+ formatters: i,
197
+ useRendererLabel: r,
198
+ timeZone: n
199
+ }) : u === k.BoxPlotSeries && (f = Ze({
195
200
  config: t,
196
201
  rows: e,
197
- fieldList: r,
198
- formatters: o
202
+ layer: a,
203
+ fieldList: o,
204
+ formatters: i,
205
+ useRendererLabel: r,
206
+ timeZone: n
199
207
  }));
200
208
  }
201
- return c;
209
+ return f;
202
210
  }
203
- function P(n) {
204
- const { value: e, originalValue: t, formatter: i } = n;
205
- let r = e;
206
- return i !== void 0 && (e === null || e instanceof Date || typeof e == "number" || typeof e == "string") && (r = i(e, t)), r;
211
+ function h(l) {
212
+ const { value: e, originalValue: t, formatter: a } = l;
213
+ let o = e;
214
+ return a !== void 0 && (e === null || e instanceof Date || typeof e == "number" || typeof e == "string") && (o = a(e, t)), o;
207
215
  }
208
- function C(n) {
209
- const { field: e, row: t, fieldList: i, formatter: r } = n, o = Object.keys(t).find((c) => c.toLocaleLowerCase() === e.toLocaleLowerCase()), a = t[o ?? e];
210
- let u;
211
- return a == null || typeof a == "boolean" || Array.isArray(a) ? u = a : typeof a == "string" || typeof a == "number" || a instanceof Date ? u = ie({
212
- field: e,
213
- value: a,
214
- fieldList: i
215
- }) : u = a, P({
216
- value: u,
217
- originalValue: a,
216
+ function M(l) {
217
+ const { field: e, value: t, dataContext: a, layer: o, fieldList: i, formatter: r, timeZone: n } = l;
218
+ let s;
219
+ if (t == null || typeof t == "boolean" || Array.isArray(t))
220
+ s = t;
221
+ else if (typeof t == "string" || typeof t == "number" || t instanceof Date) {
222
+ const f = Ne({
223
+ fieldName: e,
224
+ dataContext: a
225
+ }) ?? (o !== void 0 && (typeof t == "string" || typeof t == "number") ? De({
226
+ queryObject: o,
227
+ fieldName: e,
228
+ fieldValue: t
229
+ }) : void 0);
230
+ s = se({
231
+ field: e,
232
+ value: f ?? t,
233
+ fieldList: i,
234
+ timeZone: n
235
+ });
236
+ } else
237
+ s = t;
238
+ return h({
239
+ value: s,
240
+ originalValue: t,
218
241
  formatter: r
219
242
  });
220
243
  }
221
- function Y(n) {
222
- const { config: e, seriesIndex: t, formatters: i } = n;
223
- return e.series?.[t]?.assignToSecondValueAxis === !0 ? i?.secondaryYAxisLabelFormatter : i?.yAxisLabelFormatter;
244
+ function O(l) {
245
+ const { field: e, row: t, layer: a, fieldList: o, formatter: i, useRendererLabel: r = !1, timeZone: n } = l, s = Object.keys(t).find((u) => u.toLocaleLowerCase() === e.toLocaleLowerCase()), c = t[s ?? e], f = Fe({
246
+ value: c,
247
+ dataContext: t,
248
+ useRendererLabel: r
249
+ });
250
+ return M({
251
+ field: e,
252
+ value: f,
253
+ dataContext: t,
254
+ layer: a,
255
+ fieldList: o,
256
+ formatter: i,
257
+ timeZone: n
258
+ });
259
+ }
260
+ function $e(l, e) {
261
+ let t = !1;
262
+ if (l === e)
263
+ t = !0;
264
+ else if (l != null && e != null) {
265
+ const a = String(l), o = String(e);
266
+ t = a === o || !Number.isNaN(Number(a)) && !Number.isNaN(Number(o)) && Number(a) === Number(o);
267
+ }
268
+ return t;
224
269
  }
225
- function Ce(n) {
226
- const { config: e, splitValueIndex: t, formatters: i } = n;
227
- return e?.series?.[t]?.assignToSecondValueAxis === !0 ? i?.secondaryYAxisLabelFormatter : i?.yAxisLabelFormatter;
270
+ function Ne(l) {
271
+ const { fieldName: e, dataContext: t } = l, a = A.rendererSymbolField;
272
+ return e === a && t !== void 0 ? ve(t) : void 0;
228
273
  }
229
- function Le(n) {
230
- const { config: e, rows: t, layer: i, fieldList: r, formatLocale: o, utilsStrings: a } = n, [u] = e.series, c = u.x, l = ae(e), S = oe(e), p = H({
231
- config: e,
232
- xAxisField: c,
233
- numericFields: S,
234
- aggregationType: l,
274
+ function ee(l) {
275
+ const { config: e, splitByField: t, splitByValue: a, splitByValueIndex: o, layer: i, fieldList: r, timeZone: n } = l;
276
+ let s;
277
+ const c = e.series[o ?? -1]?.name;
278
+ return c !== void 0 ? s = c : s = M({
279
+ field: t,
280
+ value: a,
235
281
  layer: i,
236
- fieldList: r
282
+ fieldList: r,
283
+ timeZone: n
284
+ }), s;
285
+ }
286
+ function Te(l) {
287
+ const { config: e, rows: t, layer: a, fieldList: o, formatLocale: i, utilsStrings: r } = l, [n] = e.series, s = n.x, c = re(e), f = le(e), u = z({
288
+ config: e,
289
+ xAxisField: s,
290
+ numericFields: f,
291
+ aggregationType: c,
292
+ layer: a,
293
+ fieldList: o
237
294
  });
238
- return t.map((x) => {
239
- const y = x[U.xField], s = x[U.yField], f = x[U.valueField], d = typeof f == "number" && Number.isFinite(f) ? f.toFixed(2) : f;
240
- let g = { label: u.x, value: y }, b = { label: u.y, value: s };
241
- if (u.xTemporalBinning !== void 0) {
242
- const { label: D, value: h } = Z({
243
- value: Number(y),
295
+ return t.map((p) => {
296
+ const B = p[Y.xField], b = p[Y.yField], x = p[Y.valueField], D = typeof x == "number" && Number.isFinite(x) ? x.toFixed(2) : x;
297
+ let m = { label: n.x, value: B }, d = { label: n.y, value: b };
298
+ if (n.xTemporalBinning !== void 0) {
299
+ const { label: F, value: S } = J({
300
+ value: Number(B),
244
301
  config: e,
245
- formatLocale: o,
246
- unit: u.xTemporalBinning.unit,
247
- utilsStrings: a
302
+ formatLocale: i,
303
+ unit: n.xTemporalBinning.unit,
304
+ utilsStrings: r
248
305
  });
249
- !w(D) && !w(h) && (g = { label: D, value: h });
306
+ !K(F) && !K(S) && (m = { label: F, value: S });
250
307
  }
251
- if (u.yTemporalBinning !== void 0) {
252
- const { label: D, value: h } = Z({
253
- value: Number(s),
308
+ if (n.yTemporalBinning !== void 0) {
309
+ const { label: F, value: S } = J({
310
+ value: Number(b),
254
311
  config: e,
255
- formatLocale: o,
256
- unit: u.yTemporalBinning.unit,
257
- utilsStrings: a
312
+ formatLocale: i,
313
+ unit: n.yTemporalBinning.unit,
314
+ utilsStrings: r
258
315
  });
259
- !w(D) && !w(h) && (b = { label: D, value: h });
316
+ !K(F) && !K(S) && (d = { label: F, value: S });
260
317
  }
261
318
  return {
262
- [g.label]: g.value,
263
- [b.label]: b.value,
264
- [p.description]: d
319
+ [m.label]: m.value,
320
+ [d.label]: d.value,
321
+ [u.description]: D
265
322
  };
266
323
  });
267
324
  }
268
- function Ve(n, e, t) {
269
- const i = le(n), r = `${F(E.Min)} of ${i}`, o = `${F(E.Max)} of ${i}`, a = `${F(E.Count)} of ${i}`;
270
- return e.map((u) => {
271
- const { minValue: c, maxValue: l, count: S } = u, p = j(c), x = j(l), y = j(S), s = {};
272
- if (p && (s[r] = P({
325
+ function Ie(l, e, t) {
326
+ const a = fe(l), o = `${v(W.Min)} of ${a}`, i = `${v(W.Max)} of ${a}`, r = `${v(W.Count)} of ${a}`;
327
+ return e.map((n) => {
328
+ const { minValue: s, maxValue: c, count: f } = n, u = H(s), p = H(c), B = H(f), b = {};
329
+ if (u && (b[o] = h({
330
+ value: s,
331
+ originalValue: s,
332
+ formatter: t?.xAxisLabelFormatter
333
+ })), p && (b[i] = h({
273
334
  value: c,
274
335
  originalValue: c,
275
336
  formatter: t?.xAxisLabelFormatter
276
- })), x && (s[o] = P({
277
- value: l,
278
- originalValue: l,
279
- formatter: t?.xAxisLabelFormatter
280
- })), p && x) {
281
- const f = P({
337
+ })), u && p) {
338
+ const x = h({
339
+ value: s,
340
+ originalValue: s,
341
+ formatter: t?.xAxisLabelFormatter
342
+ }), D = h({
282
343
  value: c,
283
344
  originalValue: c,
284
345
  formatter: t?.xAxisLabelFormatter
285
- }), d = P({
286
- value: l,
287
- originalValue: l,
288
- formatter: t?.xAxisLabelFormatter
289
346
  });
290
- s.Label = `${String(f ?? "")} - ${String(d ?? "")}`;
347
+ b.Label = `${String(x ?? "")} - ${String(D ?? "")}`;
291
348
  }
292
- return y && (s[a] = P({
293
- value: S,
294
- originalValue: S,
295
- formatter: t?.yAxisLabelFormatter
296
- })), s;
349
+ return B && (b[r] = f), b;
297
350
  });
298
351
  }
299
- function Oe(n, e, t) {
300
- const i = Object.keys(n);
301
- let r = [];
302
- return t ? r = t.map((o) => i.find((a) => a.toLowerCase().includes(o.toLowerCase())) || "") : r = i.filter((a) => a.toLowerCase().includes(e.toLowerCase())), r.filter((o) => o.trim() !== "");
352
+ function Re(l, e, t) {
353
+ const a = Object.keys(l);
354
+ let o = [];
355
+ return t ? o = t.map((i) => a.find((r) => r.toLowerCase().includes(i.toLowerCase())) || "") : o = a.filter((r) => r.toLowerCase().includes(e.toLowerCase())), o.filter((i) => i.trim() !== "");
303
356
  }
304
- function Me(n) {
305
- const { config: e, rows: t, layer: i, fieldList: r, formatters: o } = n, a = me(e), u = ae(e), c = F(u), l = oe(e), S = I(e.series), p = te(e), x = fe(e), { idField: y, isTraditionalTypeOID: s } = de(ye(i)), f = s && l.length === 1 && l[0] === y;
357
+ function Ke(l) {
358
+ const { config: e, rows: t, layer: a, fieldList: o, formatters: i, useRendererLabel: r = !1, timeZone: n } = l, s = pe(e), c = re(e), f = v(c), u = le(e), p = U(e.series), B = ie(e), b = ge(e), { idField: x, isTraditionalTypeOID: D } = be(xe(a)), m = D && u.length === 1 && u[0] === x;
306
359
  let d;
307
- switch (S) {
308
- case m.BarAndLineNoAggregation:
309
- d = t.map((g) => {
310
- const b = C({
311
- field: a,
312
- row: g,
313
- fieldList: r,
314
- formatter: o?.xAxisLabelFormatter
315
- }), D = { [a]: b };
360
+ switch (p) {
361
+ case g.BarAndLineNoAggregation:
362
+ d = t.map((y) => {
363
+ const F = O({
364
+ field: s,
365
+ row: y,
366
+ layer: a,
367
+ fieldList: o,
368
+ formatter: i?.xAxisLabelFormatter,
369
+ useRendererLabel: r,
370
+ timeZone: n
371
+ }), S = { [s]: F };
316
372
  return Object.assign(
317
- D,
318
- ...l.map((h, A) => ({
319
- [h]: P({
320
- value: g[h],
321
- originalValue: g[h],
322
- formatter: Y({ config: e, seriesIndex: A, formatters: o })
373
+ S,
374
+ ...u.map((P) => ({
375
+ [P]: h({
376
+ value: y[P],
377
+ originalValue: y[P]
323
378
  })
324
379
  }))
325
- ), D;
380
+ ), S;
326
381
  });
327
382
  break;
328
- case m.BarAndLineFromFields:
329
- d = J(l, t).map(([g, b]) => {
330
- const D = N(e.series)[0], h = {};
331
- return b !== void 0 && g !== void 0 && (h.Field = P({
332
- value: b[a],
333
- originalValue: b[a],
334
- formatter: o?.xAxisLabelFormatter
335
- }), h.Value = P({
336
- value: b[D],
337
- originalValue: b[D],
338
- formatter: Y({ config: e, seriesIndex: 0, formatters: o })
339
- })), h;
383
+ case g.BarAndLineFromFields:
384
+ d = ae(u, t).map(([y, F]) => {
385
+ const S = E(e.series)[0], P = {};
386
+ return F !== void 0 && y !== void 0 && (P.Field = h({
387
+ value: F[s],
388
+ originalValue: F[s],
389
+ formatter: i?.xAxisLabelFormatter
390
+ }), P.Value = h({
391
+ value: F[S],
392
+ originalValue: F[S]
393
+ })), P;
340
394
  });
341
395
  break;
342
- case m.BarAndLineMonoField:
343
- case m.BarAndLineMultiFields:
344
- d = t.map((g) => {
345
- const b = C({
346
- field: a,
347
- row: g,
348
- fieldList: r,
349
- formatter: o?.xAxisLabelFormatter
350
- }), D = { [a]: b };
351
- return l.forEach((h, A) => {
352
- const $ = H({
396
+ case g.BarAndLineMonoField:
397
+ case g.BarAndLineMultiFields:
398
+ d = t.map((y) => {
399
+ const F = O({
400
+ field: s,
401
+ row: y,
402
+ layer: a,
403
+ fieldList: o,
404
+ formatter: i?.xAxisLabelFormatter,
405
+ useRendererLabel: r,
406
+ timeZone: n
407
+ }), S = { [s]: F };
408
+ return u.forEach((P, C) => {
409
+ const w = z({
353
410
  config: e,
354
- xAxisField: a,
355
- numericFields: l,
356
- aggregationType: u,
357
- layer: i,
358
- numericFieldIndex: A,
359
- fieldList: r
360
- }), R = N(e.series)[A];
361
- let q = R, K = R;
362
- R.toLowerCase() === $.name.toLowerCase() && (q = $.description, K = $.name), D[q] = P({
363
- value: g[K],
364
- originalValue: g[K],
365
- formatter: Y({ config: e, seriesIndex: A, formatters: o })
411
+ xAxisField: s,
412
+ numericFields: u,
413
+ aggregationType: c,
414
+ layer: a,
415
+ numericFieldIndex: C,
416
+ fieldList: o
417
+ }), N = E(e.series)[C];
418
+ let R = N, Z = N;
419
+ N.toLowerCase() === w.name.toLowerCase() && (R = w.description, Z = w.name), S[R] = h({
420
+ value: y[Z],
421
+ originalValue: y[Z]
366
422
  });
367
- }), D;
423
+ }), S;
368
424
  });
369
425
  break;
370
- case m.BarAndLineSplitBy:
371
- d = t.flatMap((g) => {
372
- const b = N(e.series), D = C({
373
- field: a,
374
- row: g,
375
- fieldList: r,
376
- formatter: o?.xAxisLabelFormatter
426
+ case g.BarAndLineSplitBy:
427
+ d = t.flatMap((y) => {
428
+ const F = E(e.series), S = O({
429
+ field: s,
430
+ row: y,
431
+ layer: a,
432
+ fieldList: o,
433
+ formatter: i?.xAxisLabelFormatter,
434
+ useRendererLabel: r,
435
+ timeZone: n
436
+ });
437
+ return B.map((P, C) => {
438
+ const w = ee({
439
+ config: e,
440
+ splitByField: b,
441
+ splitByValue: P,
442
+ splitByValueIndex: C,
443
+ layer: a,
444
+ fieldList: o,
445
+ timeZone: n
446
+ });
447
+ return {
448
+ [s]: S,
449
+ [b]: w,
450
+ [m ? f : `${f} of ${u[0]}`]: y[F[C]]
451
+ };
377
452
  });
378
- return p.map((h, A) => ({
379
- [a]: D,
380
- [x]: h,
381
- [f ? c : `${c} of ${l[0]}`]: P({
382
- value: g[b[A]],
383
- originalValue: g[b[A]],
384
- formatter: Ce({ config: e, splitValueIndex: A, formatters: o })
385
- })
386
- }));
387
453
  });
388
454
  break;
389
- case m.BarAndLineSplitByNoAggregation:
390
- d = t.map((g) => {
391
- const b = C({
392
- field: a,
393
- row: g,
394
- fieldList: r,
395
- formatter: o?.xAxisLabelFormatter
396
- }), D = Oe(g, l[0], p);
455
+ case g.BarAndLineSplitByNoAggregation:
456
+ d = t.map((y) => {
457
+ const F = O({
458
+ field: s,
459
+ row: y,
460
+ layer: a,
461
+ fieldList: o,
462
+ formatter: i?.xAxisLabelFormatter,
463
+ useRendererLabel: r,
464
+ timeZone: n
465
+ }), S = Re(y, u[0], B), P = y[b], C = B.findIndex((R) => $e(R, P)), w = ee({
466
+ config: e,
467
+ splitByField: b,
468
+ splitByValue: P,
469
+ splitByValueIndex: C >= 0 ? C : void 0,
470
+ layer: a,
471
+ fieldList: o,
472
+ timeZone: n
473
+ });
397
474
  return {
398
- [a]: b,
399
- [x]: g[x],
400
- [l[0]]: P({
401
- value: g[D[0]],
402
- originalValue: g[D[0]],
403
- formatter: o?.yAxisLabelFormatter
404
- })
475
+ [s]: F,
476
+ [b]: w,
477
+ [u[0]]: y[S[0]]
405
478
  };
406
479
  });
407
480
  break;
@@ -410,289 +483,356 @@ function Me(n) {
410
483
  }
411
484
  return d;
412
485
  }
413
- function ke(n) {
414
- if (n.length === 0)
486
+ function je(l) {
487
+ if (l.length === 0)
415
488
  return [];
416
- const e = n.reduce((t, i) => {
417
- for (const [r, o] of Object.entries(i))
418
- typeof o == "number" && Number.isFinite(o) && (t[r] = (t[r] ?? 0) + o);
489
+ const e = l.reduce((t, a) => {
490
+ for (const [o, i] of Object.entries(a))
491
+ typeof i == "number" && Number.isFinite(i) && (t[o] = (t[o] ?? 0) + i);
419
492
  return t;
420
493
  }, {});
421
- return n.map((t) => {
422
- const i = { ...t };
423
- for (const [r, o] of Object.entries(t))
424
- if (typeof o == "number" && e[r] > 0) {
425
- const a = o / e[r];
426
- i[`${r}${O}`] = a.toPrecision(2);
494
+ return l.map((t) => {
495
+ const a = { ...t };
496
+ for (const [o, i] of Object.entries(t))
497
+ if (typeof i == "number" && e[o] > 0) {
498
+ const r = i / e[o];
499
+ a[`${o}${$}`] = r.toPrecision(2);
427
500
  }
428
- return i;
501
+ return a;
429
502
  });
430
503
  }
431
- function $e(n) {
432
- const { config: e, rows: t, layer: i, fieldList: r, formatters: o } = n, a = se(e), u = I(e.series);
433
- let c = ke(t);
434
- const l = ue(e), S = u !== m.PieFromFields ? Q.Category : Q.Fields, p = ce(e, S), x = H({
504
+ function Ee(l) {
505
+ const { config: e, rows: t, layer: a, fieldList: o, formatters: i, useRendererLabel: r = !1, timeZone: n } = l, s = me(e), c = U(e.series);
506
+ let f = je(t);
507
+ const u = de(e), p = c !== g.PieFromFields ? X.Category : X.Fields, B = ye(e, p), b = z({
435
508
  config: e,
436
- xAxisField: a,
437
- numericFields: l,
438
- aggregationType: p,
439
- mode: S,
440
- layer: i,
441
- fieldList: r
442
- }), y = N(e.series)[0];
443
- return u === m.PieFromCategory || u === m.PieNoAggregation ? c = c.map((s) => {
444
- const f = C({
445
- field: a,
446
- row: s,
447
- fieldList: r,
448
- formatter: o?.xAxisLabelFormatter
449
- }), d = { [a]: f };
450
- let g = y, b = y;
451
- return u === m.PieFromCategory && y.toLowerCase() === x.name.toLowerCase() && (g = x.description, b = x.name), d[g] = P({
452
- value: s[b],
453
- originalValue: s[b],
454
- formatter: o?.yAxisLabelFormatter
455
- }), d[F(O.trim())] = P({
456
- value: s[`${b}${O}`],
457
- originalValue: s[`${b}${O}`],
458
- formatter: o?.yAxisLabelFormatter
509
+ xAxisField: s,
510
+ numericFields: u,
511
+ aggregationType: B,
512
+ mode: p,
513
+ layer: a,
514
+ fieldList: o
515
+ }), x = E(e.series)[0];
516
+ return c === g.PieFromCategory || c === g.PieNoAggregation ? f = f.map((D) => {
517
+ const m = O({
518
+ field: s,
519
+ row: D,
520
+ layer: a,
521
+ fieldList: o,
522
+ formatter: i?.xAxisLabelFormatter,
523
+ useRendererLabel: r,
524
+ timeZone: n
525
+ }), d = { [s]: m };
526
+ let y = x, F = x;
527
+ return c === g.PieFromCategory && x.toLowerCase() === b.name.toLowerCase() && (y = b.description, F = b.name), d[y] = h({
528
+ value: D[F],
529
+ originalValue: D[F]
530
+ }), d[v($.trim())] = h({
531
+ value: D[`${F}${$}`],
532
+ originalValue: D[`${F}${$}`]
459
533
  }), d;
460
- }) : u === m.PieFromFields && (c = J(l, c).map(([s, f]) => {
534
+ }) : c === g.PieFromFields && (f = ae(u, f).map(([D, m]) => {
461
535
  const d = {};
462
- return f !== void 0 && s !== void 0 && (d.Field = P({
463
- value: f[a],
464
- originalValue: f[a],
465
- formatter: o?.xAxisLabelFormatter
466
- }), d.Value = P({
467
- value: f[y],
468
- originalValue: f[y],
469
- formatter: o?.yAxisLabelFormatter
470
- }), d[F(O.trim())] = P({
471
- value: f[`${y}${O}`],
472
- originalValue: f[`${y}${O}`],
473
- formatter: o?.yAxisLabelFormatter
536
+ return m !== void 0 && D !== void 0 && (d.Field = h({
537
+ value: m[s],
538
+ originalValue: m[s],
539
+ formatter: i?.xAxisLabelFormatter
540
+ }), d.Value = h({
541
+ value: m[x],
542
+ originalValue: m[x]
543
+ }), d[v($.trim())] = h({
544
+ value: m[`${x}${$}`],
545
+ originalValue: m[`${x}${$}`]
474
546
  })), d;
475
- })), c;
547
+ })), f;
476
548
  }
477
- function T(n) {
478
- const { rawData: e, keyBase: t = "", outRow: i } = n;
479
- for (const [r, o] of Object.entries(v)) {
480
- const a = e[t + o];
481
- a !== void 0 && (i[r] = a);
482
- const u = e[t + o + xe];
483
- u !== void 0 && (i[`${r} Outlier`] = u);
484
- const c = e[t + o + z];
485
- c !== void 0 && (i[`${r} Z-Score`] = c);
549
+ function j(l) {
550
+ const { rawData: e, keyBase: t = "", outRow: a } = l;
551
+ for (const [o, i] of Object.entries(V)) {
552
+ const r = e[t + i];
553
+ r !== void 0 && (a[o] = r);
554
+ const n = e[t + i + he];
555
+ n !== void 0 && (a[`${o} Outlier`] = n);
556
+ const s = e[t + i + Q];
557
+ s !== void 0 && (a[`${o} Z-Score`] = s);
486
558
  }
487
559
  }
488
- function M(n) {
489
- const { rawData: e, outRow: t, config: i, boxPlotSubType: r, fieldList: o } = n, a = W(i), u = ee(i), c = _(i);
490
- let l = v.Outlier;
491
- const S = k;
492
- switch (r) {
493
- case m.BoxPlotMonoFieldAndCategory: {
494
- const y = ie({
495
- field: a,
496
- value: e[a],
497
- fieldList: o
560
+ function T(l) {
561
+ const { rawData: e, outRow: t, config: a, boxPlotSubType: o, layer: i, fieldList: r, timeZone: n } = l, s = q(a), c = oe(a), f = _(a);
562
+ let u = V.Outlier;
563
+ const p = I;
564
+ switch (o) {
565
+ case g.BoxPlotMonoFieldAndCategory: {
566
+ const x = se({
567
+ field: s,
568
+ value: e[s],
569
+ fieldList: r,
570
+ timeZone: n
498
571
  });
499
- t[a] = y, t[F(v.Outlier)] = e[l];
572
+ t[s] = x, t[v(V.Outlier)] = e[u];
500
573
  break;
501
574
  }
502
- case m.BoxPlotMultiFieldsAndCategory: {
503
- t[F(a)] = e[a], l = `${u.find(
504
- (s) => Object.keys(e).some((f) => f.toLowerCase().includes(s.toLowerCase()))
505
- ) ?? ""}_${l}`, t[F(v.Outlier)] = e[l];
575
+ case g.BoxPlotMultiFieldsAndCategory: {
576
+ t[v(s)] = e[s], u = `${c.find(
577
+ (D) => Object.keys(e).some((m) => m.toLowerCase().includes(D.toLowerCase()))
578
+ ) ?? ""}_${u}`, t[v(V.Outlier)] = e[u];
506
579
  break;
507
580
  }
508
- case m.BoxPlotMonoFieldAndSplitBy:
509
- case m.BoxPlotMultiFieldsAndSplitBy: {
510
- const y = String(e[c]);
511
- l = `${y}_${l}`, t.Field = e[S], t[F(c)] = y, t[F(v.Outlier)] = e[l];
581
+ case g.BoxPlotMonoFieldAndSplitBy:
582
+ case g.BoxPlotMultiFieldsAndSplitBy: {
583
+ const x = String(e[f]), D = M({
584
+ field: f,
585
+ value: x,
586
+ layer: i,
587
+ fieldList: r,
588
+ timeZone: n
589
+ });
590
+ u = `${x}_${u}`, t.Field = e[p], t[v(f)] = D, t[v(V.Outlier)] = e[u];
512
591
  break;
513
592
  }
514
- case m.BoxPlotMonoFieldAndCategoryAndSplitBy: {
515
- const y = String(e[c]);
516
- l = `${y}_${l}`, t[F(a)] = e[a], t[F(c)] = y, t[F(v.Outlier)] = e[l];
593
+ case g.BoxPlotMonoFieldAndCategoryAndSplitBy: {
594
+ const x = String(e[f]), D = M({
595
+ field: f,
596
+ value: x,
597
+ layer: i,
598
+ fieldList: r,
599
+ timeZone: n
600
+ });
601
+ u = `${x}_${u}`, t[v(s)] = e[s], t[v(f)] = D, t[v(V.Outlier)] = e[u];
517
602
  break;
518
603
  }
519
- case m.BoxPlotMonoField:
520
- case m.BoxPlotMultiFields:
604
+ case g.BoxPlotMonoField:
605
+ case g.BoxPlotMultiFields:
521
606
  default: {
522
- t.Field = e[S], t[F(v.Outlier)] = e[l];
607
+ t.Field = e[p], t[v(V.Outlier)] = e[u];
523
608
  break;
524
609
  }
525
610
  }
526
- const p = `${l}${z}`, x = e[p];
527
- x !== void 0 && (t[`${F(v.Outlier)} Z-Score`] = x);
611
+ const B = `${u}${Q}`, b = e[B];
612
+ b !== void 0 && (t[`${v(V.Outlier)} Z-Score`] = b);
528
613
  }
529
- function we(n) {
530
- const { rawData: e, outRow: t, config: i, splitByValue: r } = n, o = I(i.series), a = e[`${r}_${v.Average}`], u = _(i), c = W(i);
531
- let l = "";
532
- switch (o) {
533
- case m.BoxPlotMonoFieldAndSplitBy: {
534
- l = `${r}_${u}`, t.Field = e[k], t[F(u)] = e[l];
614
+ function Ue(l) {
615
+ const { rawData: e, outRow: t, config: a, splitByValue: o, layer: i, fieldList: r, timeZone: n } = l, s = U(a.series), c = e[`${o}_${V.Average}`], f = _(a), u = q(a);
616
+ let p = "";
617
+ switch (s) {
618
+ case g.BoxPlotMonoFieldAndSplitBy: {
619
+ p = `${o}_${f}`, t.Field = e[I], t[v(f)] = M({
620
+ field: f,
621
+ value: e[p],
622
+ layer: i,
623
+ fieldList: r,
624
+ timeZone: n
625
+ });
535
626
  break;
536
627
  }
537
- case m.BoxPlotMultiFieldsAndSplitBy: {
538
- l = `${r}_${v.Average}`, t.Field = e[k], t[F(u)] = e[l];
628
+ case g.BoxPlotMultiFieldsAndSplitBy: {
629
+ p = `${o}_${V.Average}`, t.Field = e[I], t[v(f)] = M({
630
+ field: f,
631
+ value: e[p],
632
+ layer: i,
633
+ fieldList: r,
634
+ timeZone: n
635
+ });
539
636
  break;
540
637
  }
541
- case m.BoxPlotMonoFieldAndCategoryAndSplitBy: {
542
- l = `${r}_${v.Average}`, t[c] = e[c], t[F(u)] = r;
638
+ case g.BoxPlotMonoFieldAndCategoryAndSplitBy: {
639
+ p = `${o}_${V.Average}`, t[u] = e[u], t[v(f)] = M({
640
+ field: f,
641
+ value: o,
642
+ layer: i,
643
+ fieldList: r,
644
+ timeZone: n
645
+ });
543
646
  break;
544
647
  }
545
648
  }
546
- t[F(v.Average)] = a;
547
- const S = `${String(a)}${z}`, p = e[S];
548
- p !== void 0 && (t[`${F(v.Average)} Z-Score`] = p);
649
+ t[v(V.Average)] = c;
650
+ const B = `${String(c)}${Q}`, b = e[B];
651
+ b !== void 0 && (t[`${v(V.Average)} Z-Score`] = b);
549
652
  }
550
- function Te(n) {
551
- const { config: e, rows: t, fieldList: i, formatters: r } = n, o = I(e.series);
552
- let a = o;
553
- const u = ne(e), c = Array.isArray(t) && t.length > 0 && t.every((s) => s[L.boxPlot.boxPlotMeanLineMarkerId] !== void 0);
554
- u && !c && (o === m.BoxPlotMonoFieldAndSplitBy ? a = m.BoxPlotMonoField : o === m.BoxPlotMultiFieldsAndSplitBy ? a = m.BoxPlotMultiFields : o === m.BoxPlotMonoFieldAndCategoryAndSplitBy && (a = m.BoxPlotMonoFieldAndCategory));
555
- const l = W(e), S = ee(e), p = te(e), x = _(e);
556
- let y;
557
- switch (a) {
558
- case m.BoxPlotMonoField:
559
- case m.BoxPlotMonoFieldAndCategory: {
560
- y = t.map((s) => {
561
- const f = {};
562
- if (s[L.boxPlot.boxPlotOutlierId])
563
- M({ rawData: s, outRow: f, config: e, boxPlotSubType: a });
653
+ function Ze(l) {
654
+ const { config: e, rows: t, layer: a, fieldList: o, formatters: i, useRendererLabel: r = !1, timeZone: n } = l, s = U(e.series);
655
+ let c = s;
656
+ const f = ce(e), u = Array.isArray(t) && t.length > 0 && t.every((m) => m[A.boxPlot.boxPlotMeanLineMarkerId] !== void 0);
657
+ f && !u && (s === g.BoxPlotMonoFieldAndSplitBy ? c = g.BoxPlotMonoField : s === g.BoxPlotMultiFieldsAndSplitBy ? c = g.BoxPlotMultiFields : s === g.BoxPlotMonoFieldAndCategoryAndSplitBy && (c = g.BoxPlotMonoFieldAndCategory));
658
+ const p = q(e), B = oe(e), b = ie(e), x = _(e);
659
+ let D;
660
+ switch (c) {
661
+ case g.BoxPlotMonoField:
662
+ case g.BoxPlotMonoFieldAndCategory: {
663
+ D = t.map((m) => {
664
+ const d = {};
665
+ if (m[A.boxPlot.boxPlotOutlierId])
666
+ T({
667
+ rawData: m,
668
+ outRow: d,
669
+ config: e,
670
+ boxPlotSubType: c,
671
+ layer: a,
672
+ fieldList: o,
673
+ timeZone: n
674
+ });
564
675
  else {
565
- if (a === m.BoxPlotMonoFieldAndCategory) {
566
- const d = C({
567
- field: l,
568
- row: s,
569
- fieldList: i,
570
- formatter: r?.xAxisLabelFormatter
676
+ if (c === g.BoxPlotMonoFieldAndCategory) {
677
+ const y = O({
678
+ field: p,
679
+ row: m,
680
+ layer: a,
681
+ fieldList: o,
682
+ formatter: i?.xAxisLabelFormatter,
683
+ useRendererLabel: r,
684
+ timeZone: n
571
685
  });
572
- f[l] = d;
573
- } else a === m.BoxPlotMonoField && (f.Field = s[k]);
574
- T({ rawData: s, outRow: f });
686
+ d[p] = y;
687
+ } else c === g.BoxPlotMonoField && (d.Field = m[I]);
688
+ j({ rawData: m, outRow: d });
575
689
  }
576
- return f;
690
+ return d;
577
691
  });
578
692
  break;
579
693
  }
580
- case m.BoxPlotMultiFields: {
581
- y = t.flatMap((s) => {
582
- const f = {};
583
- return s[L.boxPlot.boxPlotOutlierId] ? M({
584
- rawData: s,
585
- outRow: f,
694
+ case g.BoxPlotMultiFields: {
695
+ D = t.flatMap((m) => {
696
+ const d = {};
697
+ return m[A.boxPlot.boxPlotOutlierId] ? T({
698
+ rawData: m,
699
+ outRow: d,
586
700
  config: e,
587
- boxPlotSubType: a
588
- }) : (f.Field = s[k], T({ rawData: s, outRow: f })), [f];
701
+ boxPlotSubType: c,
702
+ layer: a,
703
+ fieldList: o,
704
+ timeZone: n
705
+ }) : (d.Field = m[I], j({ rawData: m, outRow: d })), [d];
589
706
  });
590
707
  break;
591
708
  }
592
- case m.BoxPlotMultiFieldsAndCategory: {
593
- y = t.flatMap(
594
- (s) => S.map((f) => {
595
- const d = {};
596
- let g = "";
597
- if (d.Field = f, s[L.boxPlot.boxPlotOutlierId])
598
- M({
599
- rawData: s,
600
- outRow: d,
709
+ case g.BoxPlotMultiFieldsAndCategory: {
710
+ D = t.flatMap(
711
+ (m) => B.map((d) => {
712
+ const y = {};
713
+ let F = "";
714
+ if (y.Field = d, m[A.boxPlot.boxPlotOutlierId])
715
+ T({
716
+ rawData: m,
717
+ outRow: y,
601
718
  config: e,
602
- boxPlotSubType: a
719
+ boxPlotSubType: c,
720
+ layer: a,
721
+ fieldList: o,
722
+ timeZone: n
603
723
  });
604
724
  else {
605
- if (a === m.BoxPlotMultiFieldsAndCategory) {
606
- const b = C({
607
- field: l,
608
- row: s,
609
- fieldList: i,
610
- formatter: r?.xAxisLabelFormatter
725
+ if (c === g.BoxPlotMultiFieldsAndCategory) {
726
+ const S = O({
727
+ field: p,
728
+ row: m,
729
+ layer: a,
730
+ fieldList: o,
731
+ formatter: i?.xAxisLabelFormatter,
732
+ useRendererLabel: r,
733
+ timeZone: n
611
734
  });
612
- d[l] = b, g = `${f}_`;
735
+ y[p] = S, F = `${d}_`;
613
736
  }
614
- T({ rawData: s, outRow: d, keyBase: g });
737
+ j({ rawData: m, outRow: y, keyBase: F });
615
738
  }
616
- return d;
739
+ return y;
617
740
  })
618
741
  );
619
742
  break;
620
743
  }
621
- case m.BoxPlotMonoFieldAndSplitBy:
622
- case m.BoxPlotMultiFieldsAndSplitBy:
623
- case m.BoxPlotMonoFieldAndCategoryAndSplitBy: {
624
- y = t.flatMap((s) => {
625
- if (s[L.boxPlot.boxPlotOutlierId]) {
626
- const f = {};
627
- return M({
628
- rawData: s,
629
- outRow: f,
630
- config: e,
631
- boxPlotSubType: a
632
- }), [f];
633
- } else return s[L.boxPlot.boxPlotMeanLineMarkerId] ? p?.map((f) => {
744
+ case g.BoxPlotMonoFieldAndSplitBy:
745
+ case g.BoxPlotMultiFieldsAndSplitBy:
746
+ case g.BoxPlotMonoFieldAndCategoryAndSplitBy: {
747
+ D = t.flatMap((m) => {
748
+ if (m[A.boxPlot.boxPlotOutlierId]) {
634
749
  const d = {};
635
- return we({
636
- rawData: s,
750
+ return T({
751
+ rawData: m,
637
752
  outRow: d,
638
- splitByValue: f,
639
- config: e
640
- }), d;
641
- }) : p.map((f) => {
642
- const d = {};
643
- if (a === m.BoxPlotMonoFieldAndCategoryAndSplitBy) {
644
- const g = C({
645
- field: l,
646
- row: s,
647
- fieldList: i,
648
- formatter: r?.xAxisLabelFormatter
753
+ config: e,
754
+ boxPlotSubType: c,
755
+ layer: a,
756
+ fieldList: o,
757
+ timeZone: n
758
+ }), [d];
759
+ } else return m[A.boxPlot.boxPlotMeanLineMarkerId] ? b?.map((d) => {
760
+ const y = {};
761
+ return Ue({
762
+ rawData: m,
763
+ outRow: y,
764
+ splitByValue: d,
765
+ config: e,
766
+ layer: a,
767
+ fieldList: o,
768
+ timeZone: n
769
+ }), y;
770
+ }) : b.map((d) => {
771
+ const y = {}, F = M({
772
+ field: x,
773
+ value: d,
774
+ layer: a,
775
+ fieldList: o
776
+ });
777
+ if (c === g.BoxPlotMonoFieldAndCategoryAndSplitBy) {
778
+ const S = O({
779
+ field: p,
780
+ row: m,
781
+ layer: a,
782
+ fieldList: o,
783
+ formatter: i?.xAxisLabelFormatter,
784
+ useRendererLabel: r,
785
+ timeZone: n
649
786
  });
650
- d[l] = g;
787
+ y[p] = S;
651
788
  }
652
- return s[L.boxPlot.boxPlotOutlierId] ? M({
653
- rawData: s,
654
- outRow: d,
789
+ return m[A.boxPlot.boxPlotOutlierId] ? T({
790
+ rawData: m,
791
+ outRow: y,
655
792
  config: e,
656
- boxPlotSubType: a
657
- }) : (d[x] = f, T({ rawData: s, outRow: d, keyBase: `${f}_` })), d;
793
+ boxPlotSubType: c,
794
+ layer: a,
795
+ fieldList: o,
796
+ timeZone: n
797
+ }) : (y[x] = F, j({ rawData: m, outRow: y, keyBase: `${d}_` })), y;
658
798
  });
659
799
  });
660
800
  break;
661
801
  }
662
802
  default:
663
- y = t;
803
+ D = t;
664
804
  }
665
- return y;
805
+ return D;
666
806
  }
667
- const G = (n) => {
807
+ const te = (l) => {
668
808
  let e = !1;
669
- return (typeof n == "string" || typeof n == "number") && (e = !Number.isNaN(new Date(n).getTime())), e;
670
- }, ie = (n) => {
671
- const { field: e, value: t, fieldList: i } = n;
672
- let r = t;
673
- const o = i?.find((a) => a.name === e);
674
- if (o) {
675
- const a = o.type === Se.DateOnly;
676
- ge(o) && !a ? r = G(t) ? new Date(t).toISOString() : t : a && typeof t != "string" && (r = G(t) ? new Date(t).toISOString().split("T")[0] : t);
809
+ return (typeof l == "string" || typeof l == "number") && (e = !Number.isNaN(new Date(l).getTime())), e;
810
+ }, He = (l, e) => ne.fromJSDate(l, { zone: e ?? "local" }).toFormat("yyyy-LL-dd"), We = (l, e) => ne.fromJSDate(l, { zone: e ?? "local" }).toFormat("yyyy-LL-dd'T'HH:mm:ss"), se = (l) => {
811
+ const { field: e, value: t, fieldList: a, timeZone: o } = l;
812
+ let i = t;
813
+ const r = a?.find((n) => n.name === e);
814
+ if (r) {
815
+ const n = r.type === Ce.DateOnly;
816
+ Se(r) && !n ? i = te(t) ? We(new Date(t), o) : t : n && typeof t != "string" && (i = te(t) ? He(new Date(t), o) : t);
677
817
  }
678
- return r;
818
+ return i;
679
819
  };
680
- function tt(n) {
681
- const { runtimeDataFilters: e, view: t, viewTimeExtentChangePolicy: i, syncViewTimeExtent: r } = n;
682
- let o = e;
683
- return t && (i === Fe.Refresh || r) && t.timeExtent?.start != null && t.timeExtent?.end != null && (o = {
820
+ function mt(l) {
821
+ const { runtimeDataFilters: e, view: t, viewTimeExtentChangePolicy: a, syncViewTimeExtent: o } = l;
822
+ let i = e;
823
+ return t && (a === Ve.Refresh || o) && t.timeExtent?.start != null && t.timeExtent?.end != null && (i = {
684
824
  ...e,
685
825
  timeExtent: [t.timeExtent.start.valueOf(), t.timeExtent.end.valueOf()]
686
- }), o;
826
+ }), i;
687
827
  }
688
828
  export {
689
- ve as a,
690
- De as b,
691
- Pe as c,
692
- he as d,
693
- tt as e,
694
- Je as f,
695
- Z as g,
696
- Ge as h,
697
- et as t
829
+ Le as a,
830
+ Oe as b,
831
+ Ae as c,
832
+ mt as d,
833
+ ct as e,
834
+ Me as f,
835
+ J as g,
836
+ ut as h,
837
+ ft as t
698
838
  };