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

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 (294) hide show
  1. package/dist/cdn/{6PAONFHB.js → 24AOJE7B.js} +1 -1
  2. package/dist/cdn/{VOTZAPI3.js → 3KRPCKJZ.js} +1 -1
  3. package/dist/cdn/{Z7EBST4A.js → 3TBK72EK.js} +1 -1
  4. package/dist/cdn/{P3RM2ACY.js → 425PZ2QJ.js} +1 -1
  5. package/dist/cdn/{KC6CFXB7.js → 4PHYDOBF.js} +1 -1
  6. package/dist/cdn/{5MVNVHYG.js → 567CLBG4.js} +1 -1
  7. package/dist/cdn/{RKN64EJQ.js → 5IIF22XN.js} +1 -1
  8. package/dist/cdn/{5HQ2CJEQ.js → 5IN5WK2R.js} +1 -1
  9. package/dist/cdn/5LXX2PUM.js +2 -0
  10. package/dist/cdn/5NTIKQP4.js +2 -0
  11. package/dist/cdn/{UNUPCA4W.js → 5YEADAVZ.js} +1 -1
  12. package/dist/cdn/{7IV6GMF7.js → 6R7VSDDU.js} +1 -1
  13. package/dist/cdn/{FCXI523J.js → 76MOP26H.js} +1 -1
  14. package/dist/cdn/77A4T4FJ.js +2 -0
  15. package/dist/cdn/{CUJHGXNK.js → 7JIHGRTB.js} +1 -1
  16. package/dist/cdn/{CHQDKVVQ.js → 7YXTWBT4.js} +1 -1
  17. package/dist/cdn/{TZ4GOE2Q.js → AHYYQWKY.js} +1 -1
  18. package/dist/cdn/{FAQDMSUC.js → ASI7RDYV.js} +1 -1
  19. package/dist/cdn/{X6WA2KXK.js → AXS3UMQJ.js} +1 -1
  20. package/dist/cdn/BHUFE4DA.js +2 -0
  21. package/dist/cdn/{DYC3Q36R.js → CEWH3LQO.js} +1 -1
  22. package/dist/cdn/{B7DM7VT6.js → CTBQ5Y4Z.js} +1 -1
  23. package/dist/cdn/CVK7KFEC.js +2 -0
  24. package/dist/cdn/{BZCVDNC4.js → DFKVPDMJ.js} +16 -16
  25. package/dist/cdn/DJGEQ42V.js +2 -0
  26. package/dist/cdn/DL43NPDO.js +2 -0
  27. package/dist/cdn/{4OZZXXZF.js → E2DO2HQ6.js} +1 -1
  28. package/dist/cdn/E4LJWBRC.js +2 -0
  29. package/dist/cdn/EDSF5KGV.js +233 -0
  30. package/dist/cdn/EE3KEIAT.js +2 -0
  31. package/dist/cdn/EJCGZPIV.js +2 -0
  32. package/dist/cdn/{XMQCH4QI.js → ETSB7KD3.js} +1 -1
  33. package/dist/cdn/{P6SC5DD2.js → F6QRLYSF.js} +1 -1
  34. package/dist/cdn/{PTFRQF65.js → FBMA7FW4.js} +1 -1
  35. package/dist/cdn/{EUOPRFMU.js → FEKSPYHM.js} +1 -1
  36. package/dist/cdn/FUAA6IFR.js +4 -0
  37. package/dist/cdn/FWRMJQXY.js +2 -0
  38. package/dist/cdn/{7SNOZDAD.js → G5FULTB5.js} +1 -1
  39. package/dist/cdn/{45JPWIBI.js → GISGGO3Z.js} +1 -1
  40. package/dist/cdn/{CPPT5HUK.js → GQPOEX7B.js} +26 -26
  41. package/dist/cdn/{PKMZ6N6M.js → GYXK3DV7.js} +1 -1
  42. package/dist/cdn/{AT2NWWBG.js → H45LPCQ2.js} +1 -1
  43. package/dist/cdn/HW6MJJSX.js +2 -0
  44. package/dist/cdn/{RG3I5ORH.js → HZFHTWL6.js} +1 -1
  45. package/dist/cdn/{GWQJXXP3.js → I2EERAZ3.js} +1 -1
  46. package/dist/cdn/{MRTKZZTF.js → I5T7JUDH.js} +1 -1
  47. package/dist/cdn/IE3GLZJZ.js +2 -0
  48. package/dist/cdn/{V7MBHG4F.js → IL2FG26D.js} +1 -1
  49. package/dist/cdn/{YVVQVAJZ.js → JBPYGZPJ.js} +1 -1
  50. package/dist/cdn/JEOBO5JM.js +2 -0
  51. package/dist/cdn/{FJPGZEGK.js → KPWHYSA5.js} +1 -1
  52. package/dist/cdn/{JILAM6NH.js → KXUQJ6GE.js} +1 -1
  53. package/dist/cdn/{V76PIVCF.js → KZQFX7LH.js} +1 -1
  54. package/dist/cdn/{G6OHBBUT.js → L5DROI2A.js} +1 -1
  55. package/dist/cdn/LL7NH3VV.js +2 -0
  56. package/dist/cdn/{I2M6YAUU.js → LUMOL7ZP.js} +1 -1
  57. package/dist/cdn/{H6NH46AS.js → LYJFZA2M.js} +1 -1
  58. package/dist/cdn/{3FTJIVFE.js → MBSMC77K.js} +1 -1
  59. package/dist/cdn/{A5GIBV5W.js → MVGAATR7.js} +1 -1
  60. package/dist/cdn/NNZCIR7W.js +2 -0
  61. package/dist/cdn/NZXQ5BWP.js +2 -0
  62. package/dist/cdn/{UT4TYXFO.js → O4HUYRYL.js} +1 -1
  63. package/dist/cdn/{V2XJSJH4.js → O4LKWTBY.js} +1 -1
  64. package/dist/cdn/{KKWXEF5W.js → OW2DLJGU.js} +1 -1
  65. package/dist/cdn/{WASEMNYV.js → P2F2O6MH.js} +1 -1
  66. package/dist/cdn/P4UJJCPG.js +2 -0
  67. package/dist/cdn/{BBURKBKE.js → P56ROGSK.js} +1 -1
  68. package/dist/cdn/{RWEUTQWS.js → PMIWXHTG.js} +1 -1
  69. package/dist/cdn/PXIAM4CZ.js +2 -0
  70. package/dist/cdn/QPSJ6XOX.js +2 -0
  71. package/dist/cdn/R7HW5WVG.js +2 -0
  72. package/dist/cdn/{S6PJHEJ7.js → RJCJ3F5C.js} +1 -1
  73. package/dist/cdn/RKB6QZNW.js +2 -0
  74. package/dist/cdn/{EQVQRZHJ.js → S6LH7YS6.js} +1 -1
  75. package/dist/cdn/S74GCXXK.js +3 -0
  76. package/dist/cdn/{JNNB2DIA.js → SA22QZNW.js} +1 -1
  77. package/dist/cdn/{ZQCUJ7VE.js → SJVVFOAX.js} +1 -1
  78. package/dist/cdn/{M75ENKIU.js → SOKKWGPA.js} +1 -1
  79. package/dist/cdn/SQYOFBS6.js +2 -0
  80. package/dist/cdn/{MKQAQDRM.js → SVGAVKBQ.js} +1 -1
  81. package/dist/cdn/SX6SDBU7.js +2 -0
  82. package/dist/cdn/TTBRUBXY.js +2 -0
  83. package/dist/cdn/{7BEC5WZB.js → U5IM4KAQ.js} +1 -1
  84. package/dist/cdn/{UQPFMDJB.js → UE5VX2RL.js} +1 -1
  85. package/dist/cdn/{GCSGY6GL.js → UIRKQREJ.js} +1 -1
  86. package/dist/cdn/{URYNG6OA.js → UIY2PSG4.js} +1 -1
  87. package/dist/cdn/UNTIPIBS.js +2 -0
  88. package/dist/cdn/{DNMVB3A2.js → VIY3BCJZ.js} +1 -1
  89. package/dist/cdn/{XFZX5ULX.js → WHJU66P4.js} +1 -1
  90. package/dist/cdn/{F5Q73CFW.js → WJ2VDT6B.js} +1 -1
  91. package/dist/cdn/{LKY2A3U6.js → WPPMMVD5.js} +1 -1
  92. package/dist/cdn/WU3C7BQU.js +2 -0
  93. package/dist/cdn/WWO326JE.js +2 -0
  94. package/dist/cdn/{6JGLHOFY.js → XNWSVHA3.js} +1 -1
  95. package/dist/cdn/{O4M33ZPK.js → XOM6LSIW.js} +1 -1
  96. package/dist/cdn/{YZQ54BRI.js → XP4S2M7F.js} +1 -1
  97. package/dist/cdn/YALB4GSA.js +2 -0
  98. package/dist/cdn/YUF4ZSA5.js +2 -0
  99. package/dist/cdn/ZJHV3UVG.js +2 -0
  100. package/dist/cdn/{TORIY3OE.js → ZQ2WG55W.js} +1 -1
  101. package/dist/cdn/assets/common/t9n/messages.en.json +1 -1
  102. package/dist/cdn/index.js +1 -1
  103. package/dist/cdn/model/shared/setup-utils.js +2 -0
  104. package/dist/chart-rendering/common/data/utils/summarize-data/interfaces.d.ts +5 -1
  105. package/dist/chart-rendering/common/interfaces.d.ts +8 -8
  106. package/dist/chunks/axis-lines-symbol.js +4 -4
  107. package/dist/chunks/bar-chart-model.js +13 -13
  108. package/dist/chunks/bar-chart-series.js +1 -1
  109. package/dist/chunks/box-plot-data.js +5 -5
  110. package/dist/chunks/box-plot-model.js +18 -18
  111. package/dist/chunks/chart-model.js +170 -138
  112. package/dist/chunks/chart-ui-utils2.js +13 -13
  113. package/dist/chunks/class-breaks.js +21 -21
  114. package/dist/chunks/combo-bar-line-chart-model.js +2 -2
  115. package/dist/chunks/data.js +63 -63
  116. package/dist/chunks/gauge-model.js +14 -14
  117. package/dist/chunks/generate-x-axis-title.js +4 -4
  118. package/dist/chunks/heat-chart-model.js +19 -19
  119. package/dist/chunks/histogram-data.js +2 -2
  120. package/dist/chunks/histogram-model.js +11 -11
  121. package/dist/chunks/index2.js +1663 -1654
  122. package/dist/chunks/index3.js +39 -36
  123. package/dist/chunks/index4.js +10812 -680
  124. package/dist/chunks/index5.js +87 -10782
  125. package/dist/chunks/index6.js +63 -100
  126. package/dist/chunks/interfaces.js +3 -3
  127. package/dist/chunks/line-chart-model.js +2 -2
  128. package/dist/chunks/model-setter.js +11 -11
  129. package/dist/chunks/model-with-x-guides.js +6 -6
  130. package/dist/chunks/model-with-y-guides.js +2 -2
  131. package/dist/chunks/negative-values-stacked-to-baseline.js +2 -2
  132. package/dist/chunks/pie-chart-data.js +2 -2
  133. package/dist/chunks/pie-chart-model.js +2 -2
  134. package/dist/chunks/radar-chart-model.js +2 -2
  135. package/dist/chunks/rotated-state.js +1 -1
  136. package/dist/chunks/scatterplot-model.js +19 -19
  137. package/dist/chunks/serial-chart-data.js +564 -548
  138. package/dist/chunks/serial-chart-model.js +44 -44
  139. package/dist/chunks/series-length.js +2 -2
  140. package/dist/chunks/series.js +2 -2
  141. package/dist/chunks/store.js +5 -5
  142. package/dist/chunks/time-zone.js +1 -1
  143. package/dist/chunks/type-guards3.js +4 -4
  144. package/dist/chunks/utils.js +14 -14
  145. package/dist/chunks/web-component-utils.js +601 -491
  146. package/dist/chunks/x-bounds.js +4 -4
  147. package/dist/components/arcgis-chart/customElement.d.ts +48 -41
  148. package/dist/components/arcgis-chart/customElement.js +5081 -5123
  149. package/dist/components/arcgis-charts-action-bar/customElement.d.ts +4 -0
  150. package/dist/components/arcgis-charts-action-bar/customElement.js +19 -19
  151. package/dist/components/arcgis-charts-config-axis/customElement.js +2 -2
  152. package/dist/components/arcgis-charts-config-bar-chart/customElement.js +2 -2
  153. package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +6 -6
  154. package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +35 -37
  155. package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +29 -29
  156. package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +5 -8
  157. package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
  158. package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +4 -4
  159. package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +35 -36
  160. package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +2 -2
  161. package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +14 -17
  162. package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +14 -16
  163. package/dist/components/arcgis-charts-config-colors/customElement.js +1 -1
  164. package/dist/components/arcgis-charts-config-create-flow/customElement.js +21 -21
  165. package/dist/components/arcgis-charts-config-format/customElement.js +28 -28
  166. package/dist/components/arcgis-charts-config-format-popover/customElement.js +7 -10
  167. package/dist/components/arcgis-charts-config-general/customElement.js +2 -2
  168. package/dist/components/arcgis-charts-config-guide/customElement.js +13 -13
  169. package/dist/components/arcgis-charts-config-guide-popover/customElement.js +8 -11
  170. package/dist/components/arcgis-charts-config-heat-chart/customElement.js +1 -1
  171. package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +5 -5
  172. package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +15 -16
  173. package/dist/components/arcgis-charts-config-histogram/customElement.js +2 -2
  174. package/dist/components/arcgis-charts-config-histogram-data/customElement.js +7 -7
  175. package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +26 -27
  176. package/dist/components/arcgis-charts-config-line-chart/customElement.js +2 -2
  177. package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +3 -3
  178. package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +29 -31
  179. package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +7 -7
  180. package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +4 -5
  181. package/dist/components/arcgis-charts-config-pie-chart/customElement.js +1 -1
  182. package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +35 -35
  183. package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +38 -40
  184. package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +7 -7
  185. package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +5 -8
  186. package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +2 -2
  187. package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +75 -75
  188. package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +13 -14
  189. package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +8 -10
  190. package/dist/docs/api.json +1 -1
  191. package/dist/docs/docs.json +1 -1
  192. package/dist/docs/vscode.html-custom-data.json +1 -1
  193. package/dist/docs/web-types.json +1 -1
  194. package/dist/index.d.ts +70 -62
  195. package/dist/index.js +476 -471
  196. package/dist/json-schema/index.d.ts +59 -2
  197. package/dist/model/chart-model/chart-model.d.ts +2 -1
  198. package/dist/model/interfaces/common.d.ts +0 -2
  199. package/dist/model/properties/data-tooltip-font-size.d.ts +20 -0
  200. package/dist/model/properties/rotated-state.d.ts +1 -1
  201. package/dist/{model.js → model/shared/setup-utils.js} +12 -12
  202. package/dist/spec/rest-js-object-literals.d.ts +2 -2
  203. package/dist/spec/rest-js-types.d.ts +22 -8
  204. package/dist/spec/web-chart.d.ts +8 -2
  205. package/dist/utils/chart-config/converter/index.js +723 -0
  206. package/dist/utils/chart-config/utils/index.d.ts +31 -0
  207. package/dist/utils/chart-config/validator/index.d.ts +1 -0
  208. package/dist/utils/chart-config/validator/interfaces.d.ts +3 -3
  209. package/dist/utils/defaults/index.d.ts +1 -2
  210. package/dist/utils/errors/index.d.ts +1 -1
  211. package/dist/utils/layer/index.d.ts +3 -3
  212. package/dist/utils/layer/inline-conversion/interfaces.d.ts +0 -2
  213. package/dist/utils/layer/query-parser/index.d.ts +3 -3
  214. package/dist/utils/localization/interfaces.d.ts +4 -0
  215. package/dist/utils/misc/index.d.ts +2 -3
  216. package/dist/utils/types/index.d.ts +1 -5
  217. package/package.json +8 -6
  218. package/dist/cdn/45PJ5TQL.js +0 -2
  219. package/dist/cdn/47HHRDX4.js +0 -2
  220. package/dist/cdn/6LQYOBAL.js +0 -2
  221. package/dist/cdn/6SRISPQN.js +0 -3
  222. package/dist/cdn/74JAZF7U.js +0 -2
  223. package/dist/cdn/7YBKGD3V.js +0 -2
  224. package/dist/cdn/ATIARKAU.js +0 -2
  225. package/dist/cdn/CAJVNPHZ.js +0 -2
  226. package/dist/cdn/CXQOEN77.js +0 -2
  227. package/dist/cdn/D23GGWFM.js +0 -2
  228. package/dist/cdn/EXTKNE2L.js +0 -2
  229. package/dist/cdn/FT2K3J7O.js +0 -2
  230. package/dist/cdn/GUH6CQE6.js +0 -2
  231. package/dist/cdn/HJHMEVMB.js +0 -2
  232. package/dist/cdn/HUCSTT64.js +0 -2
  233. package/dist/cdn/HX4236ZL.js +0 -2
  234. package/dist/cdn/IWVS6SKP.js +0 -2
  235. package/dist/cdn/KV4ZPVWQ.js +0 -2
  236. package/dist/cdn/MOMKSNIZ.js +0 -2
  237. package/dist/cdn/NS3THLCD.js +0 -2
  238. package/dist/cdn/NS7OCROO.js +0 -2
  239. package/dist/cdn/NZR4L5AA.js +0 -2
  240. package/dist/cdn/OVM5QF7Q.js +0 -2
  241. package/dist/cdn/OY6UOUYX.js +0 -2
  242. package/dist/cdn/P74SXC5B.js +0 -2
  243. package/dist/cdn/PEZCCXQ7.js +0 -2
  244. package/dist/cdn/PYKHO4QI.js +0 -2
  245. package/dist/cdn/RKKWMNWU.js +0 -2
  246. package/dist/cdn/S3BC57BJ.js +0 -4
  247. package/dist/cdn/TTDZKISK.js +0 -2
  248. package/dist/cdn/TXSWWAOF.js +0 -2
  249. package/dist/cdn/YKGZVYK2.js +0 -2
  250. package/dist/cdn/YYK7SPXC.js +0 -2
  251. package/dist/chunks/index7.js +0 -66
  252. /package/dist/cdn/{ABIVSH72.js → 2OHFSVV5.js} +0 -0
  253. /package/dist/cdn/{TSI3C3OV.js → 2XXW3WF3.js} +0 -0
  254. /package/dist/cdn/{XWKBJDZT.js → 3JYZJUOM.js} +0 -0
  255. /package/dist/cdn/{NHDVOYQ2.js → 3TZEMBXR.js} +0 -0
  256. /package/dist/cdn/{UAZ34KDJ.js → 4OH4NSIW.js} +0 -0
  257. /package/dist/cdn/{XIJ5VLER.js → 5SIAOUPO.js} +0 -0
  258. /package/dist/cdn/{75P3QRL4.js → 7QXRWMUN.js} +0 -0
  259. /package/dist/cdn/{4QQVKRJ5.js → AASL4RKT.js} +0 -0
  260. /package/dist/cdn/{PH6UOHRS.js → ANN3O54W.js} +0 -0
  261. /package/dist/cdn/{N6OT5IBC.js → BDGHBTPU.js} +0 -0
  262. /package/dist/cdn/{ZFM5RGWD.js → FFS73X36.js} +0 -0
  263. /package/dist/cdn/{5AOYADA3.js → FOYOG3G7.js} +0 -0
  264. /package/dist/cdn/{53FG76LL.js → FWAXKDYV.js} +0 -0
  265. /package/dist/cdn/{B4KT2HUE.js → H3EXGCE7.js} +0 -0
  266. /package/dist/cdn/{FLO3N6JD.js → I6UPUSLQ.js} +0 -0
  267. /package/dist/cdn/{WVRBLV5L.js → IVLVCLDE.js} +0 -0
  268. /package/dist/cdn/{NG2IHVZ4.js → IYA7HQMS.js} +0 -0
  269. /package/dist/cdn/{I5VHQW7B.js → L47EGLUH.js} +0 -0
  270. /package/dist/cdn/{OYHKUGS6.js → LROW4Y6O.js} +0 -0
  271. /package/dist/cdn/{DIKQ7BPQ.js → MK5ZYSOD.js} +0 -0
  272. /package/dist/cdn/{RDTBZUT7.js → N4L5KE23.js} +0 -0
  273. /package/dist/cdn/{4JQ2RRLY.js → N5ZUO6F3.js} +0 -0
  274. /package/dist/cdn/{2HGBRW4I.js → OFWEHJDH.js} +0 -0
  275. /package/dist/cdn/{M4AQLWZU.js → OXYJKZEP.js} +0 -0
  276. /package/dist/cdn/{O6SNP6QE.js → QR2OOC4D.js} +0 -0
  277. /package/dist/cdn/{4E7C5QPS.js → RSNZMJ6I.js} +0 -0
  278. /package/dist/cdn/{CODAXMWM.js → S3ZSZXYG.js} +0 -0
  279. /package/dist/cdn/{I36OAVW3.js → SERX6V5M.js} +0 -0
  280. /package/dist/cdn/{AJBEE7WE.js → SSQ3VCZ2.js} +0 -0
  281. /package/dist/cdn/{3V4HRXIT.js → TFPQDMER.js} +0 -0
  282. /package/dist/cdn/{2X75KJPF.js → ULWJ57VT.js} +0 -0
  283. /package/dist/cdn/{LNF44ZGQ.js → UYXCGSXU.js} +0 -0
  284. /package/dist/cdn/{OA7FHTCA.js → VDKFC44J.js} +0 -0
  285. /package/dist/cdn/{YIIPYKTL.js → VRZ2SY6M.js} +0 -0
  286. /package/dist/cdn/{VFM2EV3M.js → WAINRCCJ.js} +0 -0
  287. /package/dist/cdn/{MHG42BA5.js → WNKDEOFZ.js} +0 -0
  288. /package/dist/cdn/{DD4QUBOF.js → X2LW7GTR.js} +0 -0
  289. /package/dist/cdn/{N3VOUI25.js → XDMGH7YU.js} +0 -0
  290. /package/dist/cdn/{7ILH7ZG2.js → XY4TRZCG.js} +0 -0
  291. /package/dist/cdn/{66KSEDOR.js → XYKXBWIT.js} +0 -0
  292. /package/dist/cdn/{O2ERVMSN.js → Y6ZCTPJW.js} +0 -0
  293. /package/dist/cdn/{NFDXH5B3.js → YKDW7ZW3.js} +0 -0
  294. /package/dist/cdn/{SGOYJFLO.js → ZBIVDGNH.js} +0 -0
@@ -0,0 +1,723 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import { getElementLocale as ze } from "@arcgis/toolkit/intl";
3
+ import { cloneDeep as n, isEmpty as h } from "lodash-es";
4
+ import { DateTime as He } from "luxon";
5
+ import { af as $e, Q as oe, Z as Qe, cr as se, cS as ne, c1 as Ye, ac as Ke, Y as O, bg as Xe, O as b, bE as ee, aG as Ze, aH as Je, m as Z, h as Ue, w as er } from "../../../chunks/index2.js";
6
+ import { W as rr, ax as tr, g as ir, D as or, ad as sr } from "../../../chunks/index.js";
7
+ import { c as nr } from "../../../chunks/type-guards.js";
8
+ import { C as f, h as k, q as ae } from "../../../chunks/index3.js";
9
+ import { h as ar, o as dr, s as lr } from "../../../chunks/index5.js";
10
+ import { g as B } from "../../../chunks/series-types.js";
11
+ import { v as re, u as c, r as F, n as p, p as v, f as cr, j as te, s as C } from "../../../chunks/chart-object-literals.js";
12
+ import { p as ur, e as fr, f as pr, h as yr } from "../../../chunks/class-breaks.js";
13
+ var L = /* @__PURE__ */ ((t) => (t.NONE = "none", t.ROTATE = "rotate", t.STAGGER = "stagger", t.WRAP = "wrap", t))(L || {});
14
+ function de(t) {
15
+ const { configToUpdate: e, chartContainer: i, layer: r } = t, o = n(e);
16
+ if (r?.capabilities?.queryAttributeBins?.supportsFirstDayOfWeek === !0 && (!("firstDayOfWeek" in e) || e.firstDayOfWeek === void 0 || e.firstDayOfWeek === null)) {
17
+ const { lang: s } = ze(i ?? document.documentElement);
18
+ try {
19
+ o.firstDayOfWeek = He.local().setLocale(s.replaceAll("_", "-")).startOf("week", { useLocaleWeeks: !0 }).weekday;
20
+ } catch {
21
+ }
22
+ }
23
+ return o;
24
+ }
25
+ function mr(t) {
26
+ const e = n(t);
27
+ if (ne(e)) {
28
+ const r = e.series[0], o = e.chartRenderer?.classBreakInfos;
29
+ if (o?.length && r?.classBreaksRules) {
30
+ r.classBreaksRules.colorRampInfo = r.classBreaksRules.colorRampInfo ?? {};
31
+ const { name: s, flipped: a } = r.classBreaksRules.colorRampInfo, u = ur(o, fr.esriColorRamps);
32
+ if (!s && u?.name && (r.classBreaksRules.colorRampInfo.name = u.name), a === void 0 && u) {
33
+ const y = pr({
34
+ numberOfClassBreaks: o.length,
35
+ selectedColorRamp: u
36
+ });
37
+ y.length === o.length && (r.classBreaksRules.colorRampInfo.flipped = yr(y, o));
38
+ }
39
+ }
40
+ }
41
+ return e;
42
+ }
43
+ function le(t) {
44
+ const e = n(t);
45
+ return h(t.axes) || (e.axes = t.axes?.map((i) => {
46
+ const r = i;
47
+ return delete r.calculateAutomaticMaximum, delete r.calculateAutomaticMinimum, r.title?.content.font?.style !== void 0 && (r.title.content.font.style = r.title.content.font.style.toLowerCase()), r;
48
+ })), e;
49
+ }
50
+ function ce(t) {
51
+ const e = n(t);
52
+ return h(t.series) || (e.series = t.series.map((i, r) => {
53
+ const o = i;
54
+ i.id === void 0 && (o.id = `Series ${Date.now()}-${r}`);
55
+ const s = B(t.series, r);
56
+ return (s === c.BarSeries || s === c.LineSeries || s === c.RadarSeries) && o.query?.outStatistics?.[0]?.statisticType === "median" && (o.query.outStatistics[0].statisticType = F.ContinuousPercentile), s === c.BarSeries && o.multipleBarType !== void 0 && (o.stackedType = o.multipleBarType, delete o.multipleBarType), s === c.PieSeries && o.sliceGrouping !== void 0 && (o.sliceGrouping.sliceId = tr.defaultGroupOfSlicesId, o.sliceGrouping.groupName !== void 0 && (o.sliceGrouping = {
57
+ ...o.sliceGrouping,
58
+ label: o.sliceGrouping.groupName
59
+ }, delete o.sliceGrouping.groupName), o.sliceGrouping.groupSliceSymbol !== void 0 && (o.sliceGrouping = {
60
+ ...o.sliceGrouping,
61
+ fillSymbol: o.sliceGrouping.groupSliceSymbol
62
+ }, delete o.sliceGrouping.groupSliceSymbol)), o;
63
+ })), e;
64
+ }
65
+ function ie(t, e) {
66
+ const i = [];
67
+ return t.forEach((r) => {
68
+ if (!ae(r)) {
69
+ const o = k(r, !1);
70
+ if (o.fieldToSort !== void 0) {
71
+ const s = b({
72
+ queryObject: e,
73
+ fieldToMatch: o.fieldToSort
74
+ });
75
+ s !== void 0 && i.push(
76
+ o.orderBy === void 0 ? s : `${s} ${o.orderBy}`
77
+ );
78
+ }
79
+ }
80
+ }), i;
81
+ }
82
+ async function ue(t) {
83
+ const { configToUpdate: e, layer: i, abortSignal: r } = t, o = { ...e };
84
+ let s = i;
85
+ if (!s) {
86
+ const a = ar(e) ? e.iLayer : e.dataSource?.layer;
87
+ a && (s = await Ke(a, r));
88
+ }
89
+ if (s) {
90
+ const a = O(o.series), u = B(o.series), y = o.series && o.series.length > 0 && o.series[0].x.trim() === "" || u === c.GaugeSeries && !Xe(e) || a === f.PieFromFields || a === f.BarAndLineFromFields || a === f.BoxPlotMonoField || a === f.BoxPlotMonoFieldAndSplitBy || a === f.BoxPlotMultiFields || a === f.BoxPlotMultiFieldsAndSplitBy, je = u === c.ScatterSeries || u === c.HeatSeries || a === f.BarAndLineNoAggregation || a === f.BarAndLineSplitByNoAggregation || a === f.BoxPlotMonoField || a === f.BoxPlotMonoFieldAndSplitBy || a === f.BoxPlotMonoFieldAndCategory || a === f.BoxPlotMonoFieldAndCategoryAndSplitBy || a === f.PieNoAggregation;
91
+ if (o.series = e.series.map((l) => {
92
+ const d = { ...l };
93
+ if (y || (d.x = b({ queryObject: s, fieldToMatch: l.x })), "y" in d && je) {
94
+ const m = d.y;
95
+ if (Array.isArray(m)) {
96
+ const S = ee({
97
+ fieldsList: m,
98
+ queryObject: s
99
+ });
100
+ S !== void 0 && "y" in d && (d.y = S);
101
+ } else "y" in d && typeof m == "string" && (d.y = b({ queryObject: s, fieldToMatch: m }));
102
+ }
103
+ if (l.query !== void 0) {
104
+ let { where: m, groupByFieldsForStatistics: S, outStatistics: g } = l.query;
105
+ if (S = ee({ fieldsList: S, queryObject: s }), g !== void 0 && (g = g.map((T) => {
106
+ const x = { ...T };
107
+ return x.onStatisticField = b({
108
+ queryObject: s,
109
+ fieldToMatch: T.onStatisticField
110
+ }), x;
111
+ })), m !== void 0 && a === f.BarAndLineSplitBy) {
112
+ const T = Ze(l.query?.where), x = Je({
113
+ where: l.query?.where,
114
+ normalize: !1,
115
+ escape: !1
116
+ });
117
+ m = `${b({ queryObject: s, fieldToMatch: T })}=${x}`;
118
+ }
119
+ d.query !== void 0 && (m !== void 0 && (d.query.where = m), S !== void 0 && (d.query.groupByFieldsForStatistics = S), g !== void 0 && (d.query.outStatistics = g));
120
+ }
121
+ return d;
122
+ }), o.series[0]?.query !== void 0) {
123
+ const l = o.series[0].query;
124
+ let { orderByFields: d } = l;
125
+ d !== void 0 && d.length > 0 && (d = ie(d, s), d.length > 0 && l.orderByFields !== void 0 && (o.series[0].query.orderByFields = d));
126
+ }
127
+ if (o.orderOptions?.orderByFields !== void 0) {
128
+ let { orderByFields: l } = o.orderOptions;
129
+ l !== void 0 && l.length > 0 && (l = ie(l, s), l.length > 0 && (o.orderOptions.orderByFields = l));
130
+ }
131
+ if (u === c.GaugeSeries && e.axes?.[0] !== void 0) {
132
+ const { minimumFromField: l, maximumFromField: d } = e.axes[0];
133
+ if (l !== void 0) {
134
+ const m = typeof l == "string" ? l : l.onStatisticField, S = b({ queryObject: s, fieldToMatch: m });
135
+ let g = l;
136
+ typeof e.axes[0].minimumFromField == "string" ? g = S : typeof l == "object" && (g = {
137
+ ...l,
138
+ onStatisticField: S
139
+ }), e.axes[0].minimumFromField = g;
140
+ }
141
+ if (d !== void 0) {
142
+ const m = typeof d == "string" ? d : d.onStatisticField, S = b({ queryObject: s, fieldToMatch: m });
143
+ let g = d;
144
+ typeof e.axes[0].maximumFromField == "string" ? g = S : typeof d == "object" && (g = {
145
+ ...d,
146
+ onStatisticField: S
147
+ }), e.axes[0].maximumFromField = g;
148
+ }
149
+ }
150
+ }
151
+ return o;
152
+ }
153
+ function fe(t) {
154
+ const e = n(t);
155
+ if (!h(t.series) && B(t.series) === c.BoxPlotSeries) {
156
+ const r = e.series[0];
157
+ r && (r.showOutliers !== void 0 && (t.showOutliers === void 0 && (e.showOutliers = r.showOutliers), delete r.showOutliers), r.standardizeValues !== void 0 && (t.standardizeValues === void 0 && (e.standardizeValues = r.standardizeValues), delete r.standardizeValues), r.showMean !== void 0 && (t.showMean === void 0 && (e.showMean = r.showMean), delete r.showMean));
158
+ }
159
+ return e;
160
+ }
161
+ function pe(t) {
162
+ const e = {
163
+ orderType: p.Category,
164
+ orderBy: v.Ascending
165
+ }, i = t.query?.orderByFields?.[0];
166
+ if (i !== void 0) {
167
+ const { outStatisticFieldName: r, statisticType: o } = t.query?.outStatistics?.[0] ?? {}, s = k(i);
168
+ r !== void 0 && s.fieldToSort === r && o !== void 0 && (o === F.Average || o === "mean" ? e.orderType = p.Mean : o === F.ContinuousPercentile && (e.orderType = p.Median)), e.orderBy = s.orderBy ?? v.Ascending;
169
+ }
170
+ return e;
171
+ }
172
+ function ye(t) {
173
+ let e = !1;
174
+ const i = Array.from(new Set(t.series.map((r) => r.type)));
175
+ return i.length === 2 && i.includes(c.BoxPlotSeries) && i.includes(c.LineSeries) && (e = t.series.find((o) => o.type === c.LineSeries)?.query?.outStatistics?.[0] !== void 0), e;
176
+ }
177
+ function me(t) {
178
+ const e = n(t);
179
+ if (!h(e.series) && B(t.series) === c.BoxPlotSeries) {
180
+ if (e.orderOptions?.data === void 0) {
181
+ const r = pe(t.series[0]);
182
+ r.orderType !== void 0 && (e.orderOptions ??= {}, e.orderOptions.data = {
183
+ orderType: r.orderType,
184
+ orderBy: r.orderBy
185
+ });
186
+ }
187
+ if (e.series = t.series.map((r) => {
188
+ const o = r;
189
+ return h(o.x?.trim()) && (o.x = ir), delete o.query?.orderByFields, o;
190
+ }), ye(e)) {
191
+ e.showMean = !0;
192
+ const r = e.series.find(
193
+ (o) => o.type === c.BoxPlotSeries
194
+ );
195
+ e.series.forEach((o) => {
196
+ o.type === c.LineSeries && (delete o.query?.groupByFieldsForStatistics, delete o.query?.outStatistics, delete o.query?.orderByFields, r && (o.y = r.y));
197
+ });
198
+ }
199
+ e.series = t.series.map((r) => {
200
+ const o = r;
201
+ return delete o.query?.outStatistics, o;
202
+ });
203
+ }
204
+ return e;
205
+ }
206
+ function Se(t) {
207
+ const e = n(t);
208
+ return e.legend !== void 0 && !Number.isFinite(e.legend.maxHeight) && (e.legend.maxHeight = void 0), e;
209
+ }
210
+ function ge(t) {
211
+ const e = n(t);
212
+ return "dataSource" in e && e.dataSource.layer && (e.iLayer = e.dataSource.layer, delete e.dataSource), e;
213
+ }
214
+ function ve(t) {
215
+ const e = n(t), i = /* @__PURE__ */ new Set(), r = e.id ?? "";
216
+ return i.add(r), e.series.forEach((o) => {
217
+ let s = o.id;
218
+ i.has(s) && (s = `${s}_${Date.now()}`, o.id = s), i.add(s);
219
+ }), e;
220
+ }
221
+ async function he(t) {
222
+ const { configToUpdate: e, layer: i, chartContainer: r, abortSignal: o } = t;
223
+ let s = n(e);
224
+ if (s = le(s), s = ce(s), s = await ue({ configToUpdate: s, layer: i, abortSignal: o }), se(s)) {
225
+ const a = fe(s);
226
+ s = me(a);
227
+ }
228
+ return s = Se(s), s = ve(s), ne(s) && !nr(i) && (s = de({ configToUpdate: s, chartContainer: r, layer: i })), s;
229
+ }
230
+ function Be(t) {
231
+ const e = n(t);
232
+ return e?.orderOptions?.orderByFields !== void 0 && O(t.series) === f.PieFromFields && (e.orderOptions.orderByFields = t?.orderOptions?.orderByFields?.map(
233
+ (i) => {
234
+ let r = n(i);
235
+ return i !== void 0 && i.includes("arcgis_charts_pie_category_from_fields_name") && (r = i.replace(
236
+ "arcgis_charts_pie_category_from_fields_name",
237
+ Z
238
+ )), r;
239
+ }
240
+ )), e;
241
+ }
242
+ function Ce(t) {
243
+ const e = n(t);
244
+ if (!h(t.series) && e.axes?.[0] !== void 0 && B(t.series) === c.GaugeSeries && t.axes?.[0] !== void 0) {
245
+ const r = t.axes[0];
246
+ r.ticks !== void 0 && Object.hasOwn(r.ticks, "spacing") && delete r.ticks.spacing, e.axes[0] = r;
247
+ }
248
+ return e;
249
+ }
250
+ function be(t) {
251
+ const e = n(t), { extent: i } = e.series[0]?.query ?? {};
252
+ return i !== void 0 && (e.dataFilters = {
253
+ ...e.dataFilters,
254
+ geometry: i
255
+ }, e.series.forEach((r) => {
256
+ "query" in r && "extent" in r.query && delete r.query.extent;
257
+ })), e;
258
+ }
259
+ function J(t) {
260
+ const e = n(t);
261
+ return h(t.series) || (dr(t) && t.rotated === void 0 && (e.rotated = t.series[0].rotated ?? or()), e.series.forEach((i) => {
262
+ i.rotated !== void 0 && delete i.rotated;
263
+ })), e;
264
+ }
265
+ function Fe(t) {
266
+ const e = n(t), i = t.dataSource;
267
+ return "dataSource" in e && !h(i) && (i.type === "featureLayer" && e.dataSource !== void 0 && (e.dataSource.type = "layer"), "featureLayer" in i && (e.dataSource.layer = i.featureLayer, delete e.dataSource.featureLayer)), e;
268
+ }
269
+ function Te(t) {
270
+ const e = n(t);
271
+ if ("dataSource" in t) {
272
+ const i = t.dataSource;
273
+ if (i.filter !== void 0 && i.filter.trim() !== "") {
274
+ const r = Ue([i.filter, e.dataFilters?.where]);
275
+ e.dataFilters = {
276
+ ...e.dataFilters,
277
+ where: r
278
+ }, delete e.dataSource.filter;
279
+ }
280
+ }
281
+ return e;
282
+ }
283
+ function xe(t) {
284
+ return t !== "originalValue";
285
+ }
286
+ function U(t) {
287
+ let e;
288
+ switch (t) {
289
+ case "mean":
290
+ e = p.Mean;
291
+ break;
292
+ case "median":
293
+ e = p.Median;
294
+ break;
295
+ case "category":
296
+ e = p.Category;
297
+ break;
298
+ }
299
+ return e;
300
+ }
301
+ function Oe(t) {
302
+ const e = n(t);
303
+ if (!h(t.series) && B(t.series) === c.PieSeries) {
304
+ const r = e.series[0];
305
+ if (r) {
306
+ if (r.sortLabelsBy === "originalValue")
307
+ e.sortLabelsBy = r.sortLabelsBy;
308
+ else if (r.sortLabelsBy !== void 0 && e.orderOptions?.data === void 0) {
309
+ const o = P(e);
310
+ o !== void 0 && (e.orderOptions ??= {}, e.orderOptions.data = o);
311
+ }
312
+ r.sortLabelsBy && delete r.sortLabelsBy;
313
+ }
314
+ }
315
+ return e;
316
+ }
317
+ function ke(t) {
318
+ const e = n(t);
319
+ return h(t.series) || (lr(t) && t.stackedType === void 0 && (e.stackedType = t.series[0].stackedType ?? sr()), e.series.forEach((i) => {
320
+ "stackedType" in i && delete i.stackedType;
321
+ })), e;
322
+ }
323
+ function Pe(t) {
324
+ const e = n(t), i = t.sortOptions?.sortSeriesBy;
325
+ return e.orderOptions === void 0 && typeof i == "string" && (e.orderOptions ??= {}, e.orderOptions.series = {
326
+ orderBy: i === "DESC" ? v.Descending : v.Ascending
327
+ }), e;
328
+ }
329
+ function Le(t) {
330
+ const e = n(t);
331
+ return e.colorMatch === void 0 && e.series[0]?.colorType !== void 0 && (e.colorMatch = e.series[0]?.colorType === cr.Match), e.series.forEach((i) => {
332
+ i.colorType !== void 0 && delete i.colorType;
333
+ }), e;
334
+ }
335
+ function we(t) {
336
+ const e = n(t);
337
+ if (e.sortDataBy !== void 0) {
338
+ if (e.orderOptions?.data === void 0) {
339
+ const i = t.sortDataBy, r = U(i?.sortType);
340
+ r && r !== p.MultiAxes && (e.orderOptions ??= {}, e.orderOptions.data = {
341
+ orderType: r,
342
+ orderBy: i?.sortOrder ?? v.Ascending
343
+ });
344
+ }
345
+ delete e.sortDataBy;
346
+ }
347
+ return e;
348
+ }
349
+ function Ae(t) {
350
+ const e = n(t);
351
+ return e.axes?.forEach((i) => {
352
+ i !== void 0 && i.scrollbarVisible !== void 0 && i.scrollbar?.visible === void 0 && (i.scrollbar = {
353
+ ...i.scrollbar,
354
+ visible: i.scrollbarVisible
355
+ }, delete i.scrollbarVisible);
356
+ }), e;
357
+ }
358
+ function De(t) {
359
+ const e = n(t), i = e.series[0]?.query?.orderByFields;
360
+ if (i !== void 0 && i.length > 0 && e.orderOptions?.orderByFields === void 0) {
361
+ e.orderOptions ??= {};
362
+ let r = !0;
363
+ if (i.length === 1) {
364
+ const { fieldToSort: o, orderBy: s } = k(i[0]);
365
+ let a;
366
+ o === t.series[0].x || o === Z ? a = p.Category : "y" in t.series[0] && o === t.series[0].y && (a = p.YValue), a && a !== p.MultiAxes && (r = !1, e.orderOptions.data === void 0 && (e.orderOptions.data = {
367
+ orderType: a,
368
+ orderBy: s?.toUpperCase() === "DESC" ? v.Descending : v.Ascending
369
+ }));
370
+ }
371
+ r && (e.orderOptions.orderByFields = i);
372
+ }
373
+ return e.series.forEach((r) => {
374
+ delete r.query?.orderByFields;
375
+ }), e;
376
+ }
377
+ function P(t) {
378
+ let e, i = t.orderOptions?.orderByFields?.[0];
379
+ if (t.series?.length > 0) {
380
+ const r = B(t.series), o = O(t.series);
381
+ if (r !== c.PieSeries && o !== f.BarAndLineFromFields && (i = i ?? t.series[0].x), i && !ae(i)) {
382
+ const { fieldToSort: s, orderBy: a } = k(i);
383
+ let u;
384
+ s === t.series[0].x || s === Z ? u = p.Category : "y" in t.series[0] && s === t.series[0].y && (u = p.YValue), u && u !== p.MultiAxes && (e = {
385
+ orderType: u,
386
+ orderBy: a?.toUpperCase() === "DESC" ? v.Descending : v.Ascending
387
+ });
388
+ }
389
+ }
390
+ return e;
391
+ }
392
+ function Me(t) {
393
+ const e = n(t), i = t, r = t, o = t, s = t, a = t;
394
+ if (e) {
395
+ if (e.orderOptions?.series === void 0 && i.sortOptions?.sortSeriesBy !== void 0 && (e.orderOptions ??= {}, e.orderOptions.series = {
396
+ preferLabel: xe(
397
+ r.sortLabelsBy ?? i.sortOptions.sortSeriesBy.sortType
398
+ ),
399
+ orderBy: i.sortOptions.sortSeriesBy.sortOrder ?? v.Ascending
400
+ }), r.sortLabelsBy === "originalValue" || s.orderOptions?.data?.preferDataLabel === !1 || a.orderOptions?.data?.preferLabel === !1)
401
+ e.orderOptions?.data && delete e.orderOptions.data;
402
+ else if (e.orderOptions?.data === void 0)
403
+ if (B(e.series) === c.BoxPlotSeries) {
404
+ if (r.sortLabelsBy || o.sortOptions?.sortDataBy !== void 0) {
405
+ const y = U(o.sortOptions?.sortDataBy?.sortType);
406
+ y && y !== p.MultiAxes && (e.orderOptions ??= {}, e.orderOptions.data = {
407
+ orderType: y,
408
+ orderBy: o.sortOptions?.sortDataBy?.sortOrder ?? v.Ascending
409
+ });
410
+ }
411
+ } else {
412
+ const y = P(e);
413
+ y !== void 0 && (e.orderOptions ??= {}, e.orderOptions.data = y);
414
+ }
415
+ "sortLabelsBy" in e && delete e.sortLabelsBy, "sortOptions" in e && delete e.sortOptions;
416
+ }
417
+ return e;
418
+ }
419
+ function Ie(t) {
420
+ const e = n(t);
421
+ if (e) {
422
+ const i = O(e.series);
423
+ if ((i === f.BarAndLineFromFields || i === f.PieFromFields) && e.orderOptions?.data === void 0 && e.orderOptions?.orderByFields !== void 0) {
424
+ const r = P(e);
425
+ r !== void 0 && (e.orderOptions ??= {}, e.orderOptions.data = r, delete e.orderOptions.orderByFields);
426
+ }
427
+ }
428
+ return e;
429
+ }
430
+ function We(t) {
431
+ const e = n(t);
432
+ return e.horizontalAxisLabelsBehavior === L.NONE && (e.horizontalAxisLabelsBehavior = te.Hide), e.verticalAxisLabelsBehavior === L.NONE && (e.verticalAxisLabelsBehavior = te.Hide), e;
433
+ }
434
+ function qe(t) {
435
+ const e = n(t), i = e.series[0];
436
+ if (i && !i.temporalBinning && er(e.series[0]) && ("timeIntervalSize" in i || "timeIntervalUnits" in i || "timeAggregationType" in i || "trimIncompleteTimeInterval" in i || "nullPolicy" in i)) {
437
+ if (i.temporalBinning = {}, i.timeIntervalSize !== void 0 && (i.temporalBinning.size = i.timeIntervalSize, delete i.timeIntervalSize), i.timeIntervalUnits) {
438
+ let r;
439
+ switch (i.timeIntervalUnits) {
440
+ case "esriTimeUnitsSeconds":
441
+ r = C.Second;
442
+ break;
443
+ case "esriTimeUnitsMinutes":
444
+ r = C.Minute;
445
+ break;
446
+ case "esriTimeUnitsHours":
447
+ r = C.Hour;
448
+ break;
449
+ case "esriTimeUnitsDays":
450
+ r = C.Day;
451
+ break;
452
+ case "esriTimeUnitsWeeks":
453
+ r = C.Week;
454
+ break;
455
+ case "esriTimeUnitsMonths":
456
+ r = C.Month;
457
+ break;
458
+ case "esriTimeUnitsYears":
459
+ r = C.Year;
460
+ break;
461
+ }
462
+ r !== void 0 && (i.temporalBinning.unit = r), delete i.timeIntervalUnits;
463
+ }
464
+ i.timeAggregationType && (i.temporalBinning.timeAggregationType = i.timeAggregationType, delete i.timeAggregationType), i.trimIncompleteTimeInterval !== void 0 && (i.temporalBinning.trimIncompleteTimeInterval = i.trimIncompleteTimeInterval, delete i.trimIncompleteTimeInterval), i.nullPolicy && (i.temporalBinning.nullPolicy = i.nullPolicy, delete i.nullPolicy);
465
+ }
466
+ return e;
467
+ }
468
+ function Re(t) {
469
+ const e = n(t);
470
+ return e.series.forEach((i) => {
471
+ i.query?.outStatistics?.forEach((r) => {
472
+ r.statisticType === "percentile_cont" ? r.statisticType = F.ContinuousPercentile : r.statisticType === "percentile_disc" && (r.statisticType = F.DiscretePercentile);
473
+ });
474
+ }), e;
475
+ }
476
+ function Ee(t) {
477
+ const e = n(t);
478
+ return e.subtitle === void 0 && e.subTitle && (e.subtitle = e.subTitle), delete e.subTitle, e;
479
+ }
480
+ function Ne(t) {
481
+ const e = n(t), i = e.series[0];
482
+ return i?.temporalBinning && delete i.temporalBinning?.type, e;
483
+ }
484
+ function Ve(t) {
485
+ const e = n(t), i = e.series[0], r = t;
486
+ return r.series[0]?.xTemporalBinning && (i.xTemporalBinning = {
487
+ ...r.series[0]?.xTemporalBinning,
488
+ type: c.CalendarDateParts
489
+ }), r.series[0]?.yTemporalBinning && (i.yTemporalBinning = {
490
+ ...r.series[0]?.yTemporalBinning,
491
+ type: c.CalendarDateParts
492
+ }), e;
493
+ }
494
+ function Ge(t) {
495
+ let e = n(t);
496
+ return e = Be(e), e;
497
+ }
498
+ function w(t) {
499
+ let e = n(t);
500
+ return e = Ce(e), e;
501
+ }
502
+ function A(t) {
503
+ let e = n(t);
504
+ return e = be(e), e;
505
+ }
506
+ function D(t) {
507
+ let e = n(t);
508
+ return e = J(e), e;
509
+ }
510
+ function M(t) {
511
+ let e = n(t);
512
+ return e = Fe(e), e;
513
+ }
514
+ function I(t) {
515
+ let e = n(t);
516
+ return e = Te(e), e;
517
+ }
518
+ function W(t) {
519
+ let e = n(t);
520
+ return e = Oe(e), e;
521
+ }
522
+ function q(t) {
523
+ let e = n(t);
524
+ return e = Pe(e), e;
525
+ }
526
+ function R(t) {
527
+ let e = n(t);
528
+ return e = Le(e), e;
529
+ }
530
+ function E(t) {
531
+ return Ae(t);
532
+ }
533
+ function N(t) {
534
+ let e = n(t);
535
+ return se(e) && (e = we(e)), e;
536
+ }
537
+ function V(t) {
538
+ return ke(t);
539
+ }
540
+ function G(t) {
541
+ return Me(t);
542
+ }
543
+ function _(t) {
544
+ return ge(t);
545
+ }
546
+ function j(t) {
547
+ return Ie(t);
548
+ }
549
+ function z(t) {
550
+ return We(t);
551
+ }
552
+ function H(t) {
553
+ return qe(t);
554
+ }
555
+ function $(t) {
556
+ return Re(t);
557
+ }
558
+ function Q(t) {
559
+ let e = n(t);
560
+ return e = J(e), Ee(e);
561
+ }
562
+ function Y(t) {
563
+ let e = n(t);
564
+ return e = Ne(e), e;
565
+ }
566
+ function K(t) {
567
+ let e = n(t);
568
+ return e = Ve(e), e;
569
+ }
570
+ function X(t) {
571
+ let e = n(t);
572
+ return e = mr(e), e;
573
+ }
574
+ function _e(t) {
575
+ const { versionsToConvert: e, configToUpdate: i } = t;
576
+ let r = n(i);
577
+ return e.length > 0 && r !== void 0 && (r = De(r), e.includes(oe) || e.includes(Ye) ? (r = Ge(r), r = w(r), r = A(r), r = D(r), r = M(r), r = I(r), r = W(r), r = q(r), r = R(r), r = E(r), r = N(r), r = V(r), r = G(r), r = _(r), r = j(r), r = z(r), r = H(r), r = $(r), r = Q(r), r = Y(r), r = K(r), r = X(r)) : e.forEach((o) => {
578
+ if (r !== void 0)
579
+ switch (o) {
580
+ case "1.0.1":
581
+ r = w(r);
582
+ break;
583
+ case "3.4.0":
584
+ r = A(r);
585
+ break;
586
+ case "4.0.0":
587
+ r = D(r);
588
+ break;
589
+ case "4.0.1":
590
+ r = M(r);
591
+ break;
592
+ case "6.4.0":
593
+ r = I(r);
594
+ break;
595
+ case "7.5.1":
596
+ r = W(r);
597
+ break;
598
+ case "8.0.0":
599
+ r = q(r);
600
+ break;
601
+ case "9.2.0":
602
+ r = R(r);
603
+ break;
604
+ case "9.7.0":
605
+ r = E(r);
606
+ break;
607
+ case "10.0.0":
608
+ r = N(r);
609
+ break;
610
+ case "11.0.0":
611
+ r = V(r);
612
+ break;
613
+ case "14.0.1":
614
+ r = G(r);
615
+ break;
616
+ case "16.0.0":
617
+ r = _(r);
618
+ break;
619
+ case "16.1.0":
620
+ r = j(r);
621
+ break;
622
+ case "18.1.3":
623
+ r = z(r);
624
+ break;
625
+ case "20.1.0":
626
+ r = H(r);
627
+ break;
628
+ case "21.0.0":
629
+ r = $(r);
630
+ break;
631
+ case "23.2.0":
632
+ r = Q(r);
633
+ break;
634
+ case "24.7.0":
635
+ r = Y(r);
636
+ break;
637
+ case "24.8.0":
638
+ r = K(r);
639
+ break;
640
+ case "25.0.0":
641
+ r = X(r);
642
+ break;
643
+ }
644
+ }), r.version = rr), r;
645
+ }
646
+ async function Pr(t, e, i, r) {
647
+ let o = t;
648
+ if (t) {
649
+ const s = $e(e);
650
+ await s?.load({ signal: r }), o = await he({ configToUpdate: t, layer: s, chartContainer: i, abortSignal: r });
651
+ const a = t.version ?? oe, { versionStatus: u, versions: y } = Qe(a);
652
+ (u === re.Older || u === re.Unrecognized) && (o = _e({
653
+ versionsToConvert: y,
654
+ configToUpdate: o
655
+ }));
656
+ }
657
+ return o;
658
+ }
659
+ const Lr = {
660
+ adjustAxes: le,
661
+ adjustSeries: ce,
662
+ matchChartFieldsToLayerFields: ue,
663
+ resetLegendMaxHeight: Se,
664
+ moveSeriesQueryExtent: be,
665
+ moveSeriesRotatedPropToChart: J,
666
+ renameDataSourceProperties: Fe,
667
+ copyDataSourceFilterToConfig: Te,
668
+ adjustPieFromFieldsDefaultNameAndValue: Be,
669
+ removeSpacingPropertyFromGauge: Ce,
670
+ moveBoxPlotSeriesPropsToChart: fe,
671
+ movePieSeriesSortLabelsPropToChart: Oe,
672
+ getProBoxPlotSortDataOption: pe,
673
+ isBoxPlotConfigWithMeanLinesFromPro: ye,
674
+ preventDuplicatedIds: ve,
675
+ adjustBoxPlotConfig: me,
676
+ convertSortSeriesByToObject: Pe,
677
+ moveBoxPlotSortDataByProp: we,
678
+ handleColorMatchChanges: Le,
679
+ moveScrollbarVisible: Ae,
680
+ moveSeriesStackedTypePropToChart: ke,
681
+ convertBoxplotOldToNewDataSortType: U,
682
+ getDataOrderFromOrderByFields: P,
683
+ convertWebChartDataValueTypes: xe,
684
+ moveOrConvertSeriesOrderByFieldsToChartOrderOptions: De,
685
+ convertWebChartLabelBehaviorNoneToHide: We,
686
+ handleOrderOptionsChanges: Me,
687
+ applyDataOrderInstructionForFromFieldsCharts: Ie,
688
+ convertTemporalBinningProps: qe,
689
+ convertRESTStatisticTypeToWebChartStatisticType: Re,
690
+ renameChartSubtitle: Ee,
691
+ applyMandatoryConversions: he,
692
+ convertTo1x0x1: Ge,
693
+ convertTo2x0x0: w,
694
+ convertTo3x5x0: A,
695
+ convertTo4x0x1: D,
696
+ convertTo5x0x0: M,
697
+ convertTo7x0x0: I,
698
+ convertTo7x6x0: W,
699
+ convertTo8x0x1: q,
700
+ convertTo9x3x0: R,
701
+ convertTo10x0x0: E,
702
+ convertTo11x0x0: N,
703
+ convertTo12x0x0: V,
704
+ convertTo15x0x0: G,
705
+ convertTo16x1x0: _,
706
+ convertTo16x1x1: j,
707
+ convertTo19x0x0: z,
708
+ convertTo20x2x0: H,
709
+ convertTo21x1x0: $,
710
+ convertTo23x3x0: Q,
711
+ convertTo24x8x0: Y,
712
+ convertTo25x0x0: K,
713
+ convertTo25x1x0: X,
714
+ convertTemporalBinningProps2: Ne,
715
+ transformPropsInHeatChart: Ve,
716
+ applyConversions: _e,
717
+ convertDataSourceToILayer: ge,
718
+ applyDefaultFirstDayOfWeek: de
719
+ };
720
+ export {
721
+ Lr as chartConfigConverterPrivateFunctions,
722
+ Pr as convertChartSpec
723
+ };