@arcgis/charts-components 5.0.0-next.149 → 5.0.0-next.150

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 (326) hide show
  1. package/README.md +2 -4
  2. package/dist/cdn/2ATTYJG6.js +2 -0
  3. package/dist/cdn/2CTKBS47.js +2 -0
  4. package/dist/cdn/2TUSY77N.js +2 -0
  5. package/dist/cdn/3C4HBCTV.js +2 -0
  6. package/dist/cdn/3MXDGSBY.js +2 -0
  7. package/dist/cdn/3NIVTPH5.js +2 -0
  8. package/dist/cdn/3Q2BMY2L.js +2 -0
  9. package/dist/cdn/4DH3GZII.js +2 -0
  10. package/dist/cdn/{Z255YC4E.js → 4KZSOP76.js} +1 -1
  11. package/dist/cdn/4UDVEHW7.js +2 -0
  12. package/dist/cdn/4ZDZD6FW.js +2 -0
  13. package/dist/cdn/5L3VUKGY.js +2 -0
  14. package/dist/cdn/{NPTAS3PB.js → 6B7P3OWP.js} +1 -1
  15. package/dist/cdn/6G6VPJ6K.js +2 -0
  16. package/dist/cdn/6L2NFOQY.js +2 -0
  17. package/dist/cdn/6UGQKSVS.js +2 -0
  18. package/dist/cdn/6VS2BUNX.js +2 -0
  19. package/dist/cdn/72ILHP4O.js +2 -0
  20. package/dist/cdn/7AXTHOAU.js +2 -0
  21. package/dist/cdn/{FPVMDAVP.js → 7K4VZYMF.js} +1 -1
  22. package/dist/cdn/{E7NSRJS7.js → 7KL2S53W.js} +1 -1
  23. package/dist/cdn/7QTZ5O4B.js +2 -0
  24. package/dist/cdn/7YWK5AX4.js +2 -0
  25. package/dist/cdn/ASYHUBK5.js +2 -0
  26. package/dist/cdn/{CB2EYCDF.js → AUSXHSLY.js} +1 -1
  27. package/dist/cdn/AZYWNZ5K.js +2 -0
  28. package/dist/cdn/BQQLJHIU.js +2 -0
  29. package/dist/cdn/BRLZ2A7F.js +2 -0
  30. package/dist/cdn/BZYRPXHD.js +2 -0
  31. package/dist/cdn/C6RJHADU.js +2 -0
  32. package/dist/cdn/CEVAPOOF.js +2 -0
  33. package/dist/cdn/{OHBHUABJ.js → CHYRXR3K.js} +1 -1
  34. package/dist/cdn/CRNVPN6B.js +2 -0
  35. package/dist/cdn/CSV2VTSA.js +2 -0
  36. package/dist/cdn/{W66EH66K.js → CZ3Y6FRM.js} +1 -1
  37. package/dist/cdn/DJLJ5P4N.js +2 -0
  38. package/dist/cdn/DKJ7FFOL.js +2 -0
  39. package/dist/cdn/{BVAXFPTE.js → DPJE33GY.js} +1 -1
  40. package/dist/cdn/{Z4XTLHV3.js → EGHGISFS.js} +1 -1
  41. package/dist/cdn/F6PKNIKI.js +2 -0
  42. package/dist/cdn/FTZVIGVW.js +2 -0
  43. package/dist/cdn/GJWPFACV.js +2 -0
  44. package/dist/cdn/H2ABG252.js +2 -0
  45. package/dist/cdn/{IBPSHNO6.js → H4ULSC2D.js} +1 -1
  46. package/dist/cdn/HEN5PMZU.js +2 -0
  47. package/dist/cdn/HPG3LCZN.js +2 -0
  48. package/dist/cdn/HT5B7AY6.js +2 -0
  49. package/dist/cdn/IARNAL5N.js +9 -0
  50. package/dist/cdn/IBKDU34P.js +2 -0
  51. package/dist/cdn/{737LK3MK.js → IR2XD6P6.js} +3 -3
  52. package/dist/cdn/{UF2PXUST.js → IXYFMAZY.js} +1 -1
  53. package/dist/cdn/JO6AAGBV.js +2 -0
  54. package/dist/cdn/{5Z2N5G2K.js → JTDP2THJ.js} +1 -1
  55. package/dist/cdn/KA4BSBVA.js +2 -0
  56. package/dist/cdn/KBKA3QP3.js +2 -0
  57. package/dist/cdn/KDYJOJ2S.js +2 -0
  58. package/dist/cdn/KISYVPQA.js +2 -0
  59. package/dist/cdn/{2NWN5I6T.js → KTHE5IC6.js} +1 -1
  60. package/dist/cdn/{ZAIDOCYY.js → LHEOE5LN.js} +1 -1
  61. package/dist/cdn/MAUJ4HUQ.js +2 -0
  62. package/dist/cdn/MGJN25XS.js +2 -0
  63. package/dist/cdn/MQRY2EYZ.js +2 -0
  64. package/dist/cdn/MR5ORMVY.js +2 -0
  65. package/dist/cdn/MZSNIA3C.js +2 -0
  66. package/dist/cdn/NA4ZFNCV.js +2 -0
  67. package/dist/cdn/NMLR7I33.js +2 -0
  68. package/dist/cdn/{NDRUBDOF.js → NNS7M7OW.js} +1 -1
  69. package/dist/cdn/{QUWXB6XH.js → NOGZZTAP.js} +1 -1
  70. package/dist/cdn/NZZFA6F6.js +2 -0
  71. package/dist/cdn/{OF3VUOXY.js → O4D2KFXK.js} +1 -1
  72. package/dist/cdn/O4NETRGZ.js +2 -0
  73. package/dist/cdn/OQNPUVUK.js +2 -0
  74. package/dist/cdn/PPJ4YIYD.js +2 -0
  75. package/dist/cdn/PT44XBUL.js +2 -0
  76. package/dist/cdn/QFHFFY63.js +32 -0
  77. package/dist/cdn/QSS4DLDZ.js +2 -0
  78. package/dist/cdn/REHRP6LK.js +2 -0
  79. package/dist/cdn/SK3SXWIS.js +2 -0
  80. package/dist/cdn/SUK2EU7N.js +2 -0
  81. package/dist/cdn/SWNLXRQP.js +2 -0
  82. package/dist/cdn/TAHOH5D6.js +2 -0
  83. package/dist/cdn/TJFJHDEJ.js +2 -0
  84. package/dist/cdn/TKGRT45N.js +2 -0
  85. package/dist/cdn/{CLEHXDRG.js → TKUAPKCR.js} +1 -1
  86. package/dist/cdn/{YJ5B4PNE.js → TTLM6X2H.js} +1 -1
  87. package/dist/cdn/TVTAA4IC.js +2 -0
  88. package/dist/cdn/UIOMTO3X.js +2 -0
  89. package/dist/cdn/{3YZMWGH2.js → UNK6HRSC.js} +1 -1
  90. package/dist/cdn/VPR47IMP.js +2 -0
  91. package/dist/cdn/{MB3EVMIM.js → W26BDESX.js} +1 -1
  92. package/dist/cdn/{LBO2EK4A.js → WUYK6PKY.js} +1 -1
  93. package/dist/cdn/X2HDENND.js +2 -0
  94. package/dist/cdn/Y6GE3FLR.js +2 -0
  95. package/dist/cdn/ZALZRTR5.js +2 -0
  96. package/dist/cdn/{YGNXHR5T.js → ZJG2TJC6.js} +1 -1
  97. package/dist/cdn/{TXSCRECL.js → ZL3FVX4B.js} +2 -2
  98. package/dist/cdn/{IYCVQI4V.js → ZMA6K5G6.js} +1 -1
  99. package/dist/cdn/ZUI6QY5V.js +2 -0
  100. package/dist/cdn/ZYBAYHZU.js +2 -0
  101. package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.en.json +1 -1
  102. package/dist/cdn/assets/charts-config-heat-chart-popover/t9n/messages.en.json +1 -1
  103. package/dist/cdn/assets/common/t9n/messages.en.json +1 -1
  104. package/dist/cdn/index.js +1 -1
  105. package/dist/chunks/action-bar-utils.js +1 -1
  106. package/dist/chunks/bar-chart-model.js +15 -16
  107. package/dist/chunks/bar-chart-series.js +1 -1
  108. package/dist/chunks/box-plot-data.js +3 -3
  109. package/dist/chunks/box-plot-model.js +69 -67
  110. package/dist/chunks/chart-model.js +527 -0
  111. package/dist/chunks/chart-ui-utils2.js +1 -1
  112. package/dist/chunks/class-breaks.js +13 -12
  113. package/dist/chunks/combo-bar-line-chart-model.js +40 -41
  114. package/dist/chunks/data.js +4 -4
  115. package/dist/chunks/default.js +5 -4
  116. package/dist/chunks/gauge-model.js +19 -18
  117. package/dist/chunks/generate-x-axis-title.js +1 -1
  118. package/dist/chunks/heat-chart-model.js +42 -43
  119. package/dist/chunks/histogram-data.js +2 -2
  120. package/dist/chunks/histogram-model.js +43 -42
  121. package/dist/chunks/index.js +1128 -1195
  122. package/dist/chunks/interfaces.js +31 -30
  123. package/dist/chunks/line-chart-model.js +15 -15
  124. package/dist/chunks/model-setter.js +23 -18
  125. package/dist/chunks/model-with-guides.js +317 -0
  126. package/dist/chunks/model-with-line-marker-styling.js +177 -0
  127. package/dist/chunks/model-with-tooltips.js +315 -0
  128. package/dist/chunks/model-with-x-guides.js +49 -0
  129. package/dist/chunks/model-with-y-guides.js +629 -0
  130. package/dist/chunks/negative-values-stacked-to-baseline.js +77 -19
  131. package/dist/chunks/pie-chart-data.js +2 -2
  132. package/dist/chunks/pie-chart-model.js +18 -18
  133. package/dist/chunks/radar-chart-model.js +8 -8
  134. package/dist/chunks/resource.js +5 -4
  135. package/dist/chunks/rotated-state.js +1 -1
  136. package/dist/chunks/scatterplot-model.js +54 -52
  137. package/dist/chunks/serial-chart-data.js +322 -371
  138. package/dist/chunks/serial-chart-model.js +295 -138
  139. package/dist/chunks/series-length.js +79 -0
  140. package/dist/chunks/series.js +37 -0
  141. package/dist/chunks/setup-utils.js +79 -0
  142. package/dist/chunks/type-guards.js +45 -44
  143. package/dist/chunks/utils.js +3 -3
  144. package/dist/chunks/utils2.js +1 -1
  145. package/dist/chunks/web-component-utils.js +63 -61
  146. package/dist/components/arcgis-chart/customElement.d.ts +9 -0
  147. package/dist/components/arcgis-chart/customElement.js +4 -4
  148. package/dist/components/arcgis-charts-action-bar/customElement.d.ts +6 -0
  149. package/dist/components/arcgis-charts-action-bar/customElement.js +1 -0
  150. package/dist/components/arcgis-charts-config-axis/customElement.js +1 -0
  151. package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
  152. package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +1 -1
  153. package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +1 -1
  154. package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +1 -1
  155. package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +1 -1
  156. package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
  157. package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +1 -1
  158. package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +1 -1
  159. package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +1 -1
  160. package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +1 -1
  161. package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +1 -1
  162. package/dist/components/arcgis-charts-config-create-flow/customElement.js +2 -2
  163. package/dist/components/arcgis-charts-config-font-style/customElement.js +1 -1
  164. package/dist/components/arcgis-charts-config-font-style/resource.d.ts +9 -0
  165. package/dist/components/arcgis-charts-config-format/customElement.js +1 -1
  166. package/dist/components/arcgis-charts-config-format-popover/customElement.js +1 -1
  167. package/dist/components/arcgis-charts-config-general/customElement.js +1 -1
  168. package/dist/components/arcgis-charts-config-guide/customElement.js +1 -1
  169. package/dist/components/arcgis-charts-config-guide/resource.d.ts +8 -0
  170. package/dist/components/arcgis-charts-config-guide-popover/customElement.js +1 -1
  171. package/dist/components/arcgis-charts-config-guides/customElement.js +1 -0
  172. package/dist/components/arcgis-charts-config-guides-type-popover/customElement.js +1 -1
  173. package/dist/components/arcgis-charts-config-heat-chart/customElement.js +1 -1
  174. package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +9 -9
  175. package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +4 -4
  176. package/dist/components/arcgis-charts-config-histogram/customElement.js +1 -1
  177. package/dist/components/arcgis-charts-config-histogram-data/customElement.js +1 -1
  178. package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +1 -1
  179. package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
  180. package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +1 -1
  181. package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +1 -1
  182. package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +1 -1
  183. package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +1 -1
  184. package/dist/components/arcgis-charts-config-line-style/customElement.js +1 -0
  185. package/dist/components/arcgis-charts-config-pie-chart/customElement.js +1 -1
  186. package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +1 -1
  187. package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +1 -1
  188. package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +1 -1
  189. package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +1 -1
  190. package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
  191. package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +1 -1
  192. package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +1 -1
  193. package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +1 -1
  194. package/dist/components/arcgis-charts-config-view-charts/customElement.js +1 -1
  195. package/dist/docs/api.json +1 -1
  196. package/dist/docs/docs.json +1 -1
  197. package/dist/docs/vscode.html-custom-data.json +1 -1
  198. package/dist/docs/web-types.json +1 -1
  199. package/dist/index.js +1 -1
  200. package/dist/interfaces.d.ts +77 -0
  201. package/dist/json-schema/index.d.ts +8498 -0
  202. package/dist/model/bar-chart-model/bar-chart-model.d.ts +9 -1
  203. package/dist/model/box-plot-model/box-plot-model.d.ts +14 -28
  204. package/dist/model/chart-model/chart-model-base.d.ts +1 -0
  205. package/dist/model/chart-model/chart-model.d.ts +2 -31
  206. package/dist/model/combo-bar-line-chart-model/combo-bar-line-chart-model.d.ts +11 -9
  207. package/dist/model/gauge-model/gauge-model.d.ts +12 -18
  208. package/dist/model/heat-chart-model/heat-chart-model.d.ts +17 -2
  209. package/dist/model/histogram-model/histogram-model.d.ts +15 -27
  210. package/dist/model/line-chart-model/line-chart-model.d.ts +12 -11
  211. package/dist/model/mixins/model-with-line-marker-styling.d.ts +1 -0
  212. package/dist/model/mixins/model-with-multi-axes.d.ts +1 -0
  213. package/dist/model/mixins/model-with-x-guides.d.ts +2 -8
  214. package/dist/model/mixins/model-with-y-guides.d.ts +2 -8
  215. package/dist/model/pie-chart-model/pie-chart-legend-model.d.ts +2 -8
  216. package/dist/model/pie-chart-model/pie-chart-model.d.ts +12 -14
  217. package/dist/model/radar-chart-model/radar-chart-model.d.ts +12 -11
  218. package/dist/model/scatterplot-model/scatterplot-model.d.ts +16 -29
  219. package/dist/model/serial-chart-model/serial-chart-model.d.ts +9 -31
  220. package/dist/model.js +38 -112
  221. package/dist/spec/config-defaults.d.ts +4 -0
  222. package/dist/spec/rest-js-types.d.ts +89 -224
  223. package/dist/spec/web-chart.d.ts +1 -2
  224. package/dist/utils/chart-config/interfaces.d.ts +3 -0
  225. package/dist/utils/chart-config/utils/index.d.ts +39 -1
  226. package/dist/utils/chart-config/utils/interfaces.d.ts +2 -0
  227. package/dist/utils/chart-config/validator/index.d.ts +1 -0
  228. package/dist/utils/chart-config/validator/interfaces.d.ts +19 -7
  229. package/dist/utils/components/event-payloads.d.ts +9 -0
  230. package/dist/utils/data/categorical-data/index.d.ts +1 -0
  231. package/dist/utils/data/index.d.ts +12 -0
  232. package/dist/utils/data/interfaces.d.ts +6 -0
  233. package/dist/utils/data/time-binning/interfaces.d.ts +6 -0
  234. package/dist/utils/defaults/index.d.ts +135 -15
  235. package/dist/utils/defaults/interfaces.d.ts +4 -0
  236. package/dist/utils/layer/index.d.ts +40 -0
  237. package/dist/utils/layer/inline-conversion/interfaces.d.ts +2 -0
  238. package/dist/utils/layer/interfaces.d.ts +15 -2
  239. package/dist/utils/layer/query-features/index.d.ts +26 -1
  240. package/dist/utils/layer/query-features/interfaces.d.ts +3 -0
  241. package/dist/utils/layer/query-parser/index.d.ts +15 -1
  242. package/dist/utils/layer/utils/index.d.ts +16 -0
  243. package/dist/utils/localization/index.d.ts +10 -0
  244. package/dist/utils/localization/interfaces.d.ts +11 -0
  245. package/dist/utils/misc/index.d.ts +29 -0
  246. package/dist/utils/type-guards/index.d.ts +38 -3
  247. package/dist/utils/type-guards/series-types.d.ts +18 -0
  248. package/dist/utils/types/index.d.ts +31 -6
  249. package/dist/utils/ui/chart-ui-utils.d.ts +6 -1
  250. package/dist/utils/ui/popover-ui-utils.d.ts +3 -0
  251. package/package.json +3 -3
  252. package/dist/cdn/3IFN5UNC.js +0 -2
  253. package/dist/cdn/3NE6BHA7.js +0 -2
  254. package/dist/cdn/3T66I3AV.js +0 -2
  255. package/dist/cdn/4G3CMZYX.js +0 -2
  256. package/dist/cdn/5NFDDXIZ.js +0 -2
  257. package/dist/cdn/5ZDTPYVX.js +0 -2
  258. package/dist/cdn/73DP7O6V.js +0 -2
  259. package/dist/cdn/7BYBNK4D.js +0 -2
  260. package/dist/cdn/7J55VBBP.js +0 -2
  261. package/dist/cdn/7JHAQ55T.js +0 -2
  262. package/dist/cdn/7MK2A5CN.js +0 -2
  263. package/dist/cdn/7QAEPVLP.js +0 -2
  264. package/dist/cdn/AZXSIAD5.js +0 -2
  265. package/dist/cdn/B4ONKX76.js +0 -2
  266. package/dist/cdn/BGRFXQBF.js +0 -2
  267. package/dist/cdn/BRSFMI7W.js +0 -2
  268. package/dist/cdn/BZBPPMPO.js +0 -2
  269. package/dist/cdn/CCE73L6Y.js +0 -2
  270. package/dist/cdn/CN4JJBQD.js +0 -2
  271. package/dist/cdn/CSGEEI34.js +0 -2
  272. package/dist/cdn/E7HMRRLS.js +0 -2
  273. package/dist/cdn/EJUACEYV.js +0 -2
  274. package/dist/cdn/F2EEAM7D.js +0 -2
  275. package/dist/cdn/F32ALQAF.js +0 -2
  276. package/dist/cdn/FDMFAAYD.js +0 -32
  277. package/dist/cdn/GXU3KAZJ.js +0 -2
  278. package/dist/cdn/HBBVQMKS.js +0 -2
  279. package/dist/cdn/HKS7OKQ2.js +0 -2
  280. package/dist/cdn/IDUT4PPZ.js +0 -2
  281. package/dist/cdn/ITOFPGYG.js +0 -2
  282. package/dist/cdn/K35SAKH6.js +0 -2
  283. package/dist/cdn/K7PHN6CK.js +0 -2
  284. package/dist/cdn/KFJDBWIX.js +0 -2
  285. package/dist/cdn/KJZSK5YZ.js +0 -2
  286. package/dist/cdn/KTAVV3VX.js +0 -2
  287. package/dist/cdn/KTLKB6B4.js +0 -2
  288. package/dist/cdn/KVD56MDM.js +0 -2
  289. package/dist/cdn/L53UCZR6.js +0 -2
  290. package/dist/cdn/L7C7MUW3.js +0 -2
  291. package/dist/cdn/LWCWU4HZ.js +0 -2
  292. package/dist/cdn/MJMTX7G3.js +0 -2
  293. package/dist/cdn/MKUWP4YO.js +0 -2
  294. package/dist/cdn/OLWAY6BU.js +0 -2
  295. package/dist/cdn/P4IJGBEM.js +0 -2
  296. package/dist/cdn/PHOC6W4U.js +0 -2
  297. package/dist/cdn/PTHMEJ4M.js +0 -2
  298. package/dist/cdn/Q4XRMPTN.js +0 -2
  299. package/dist/cdn/Q65AFAC2.js +0 -2
  300. package/dist/cdn/QEUQO5PH.js +0 -2
  301. package/dist/cdn/QJ7AL2JA.js +0 -2
  302. package/dist/cdn/QR6LWJA6.js +0 -2
  303. package/dist/cdn/QRNC5B3Q.js +0 -2
  304. package/dist/cdn/QZQBEPBF.js +0 -2
  305. package/dist/cdn/R23O2O7W.js +0 -2
  306. package/dist/cdn/TTDJJ46R.js +0 -2
  307. package/dist/cdn/TZ6AFED4.js +0 -2
  308. package/dist/cdn/UMDCLTNE.js +0 -2
  309. package/dist/cdn/VPVSYP2L.js +0 -2
  310. package/dist/cdn/VZR5LOQW.js +0 -2
  311. package/dist/cdn/W7MNTZT7.js +0 -2
  312. package/dist/cdn/XRRVOQJ3.js +0 -2
  313. package/dist/cdn/XSDOT2VC.js +0 -2
  314. package/dist/cdn/YJC6B2JE.js +0 -2
  315. package/dist/cdn/YMO37QWY.js +0 -9
  316. package/dist/cdn/Z2RUBKU7.js +0 -2
  317. package/dist/cdn/ZEKY74JE.js +0 -2
  318. package/dist/cdn/ZWPLVA7G.js +0 -2
  319. package/dist/cdn/ZXRU5IEE.js +0 -2
  320. package/dist/chunks/data-labels-visibility.js +0 -87
  321. package/dist/chunks/model-with-multi-axes.js +0 -1995
  322. package/dist/chunks/x-axis-labels-visibility.js +0 -68
  323. package/dist/model/shared/utils.d.ts +0 -4
  324. /package/dist/cdn/{CF5YAZDQ.js → 2BRTKEX6.js} +0 -0
  325. /package/dist/cdn/{S24EVUYE.js → F4KKUFSS.js} +0 -0
  326. /package/dist/cdn/{OJHML5IU.js → Z5QOLHIZ.js} +0 -0
@@ -0,0 +1,527 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
+ import { a as w } from "./utils.js";
3
+ import { g as j, W, c as F, d as I } from "./series-length.js";
4
+ import "@arcgis/toolkit/intl";
5
+ import "lodash-es";
6
+ import "luxon";
7
+ import "d3-array";
8
+ import "@arcgis/toolkit/type";
9
+ import "./series-types.js";
10
+ import { aI as p, bB as c, aG as f, d5 as L, o as N } from "./index.js";
11
+ import "@arcgis/core/Graphic.js";
12
+ import "@arcgis/core/renderers/support/jsonUtils.js";
13
+ import "@arcgis/core/symbols/support/symbolUtils.js";
14
+ import "@esri/arcgis-html-sanitizer";
15
+ import "@arcgis/core/intl.js";
16
+ import "@arcgis/core/layers/support/FeatureFilter.js";
17
+ import "@arcgis/core/smartMapping/statistics/histogram.js";
18
+ import "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
19
+ import "simple-statistics";
20
+ import "@arcgis/core/request.js";
21
+ import "@arcgis/core/AttributeBinsGraphic.js";
22
+ import "@arcgis/core/geometry/support/jsonUtils.js";
23
+ import "@arcgis/core/rest/support/AttributeBinsQuery.js";
24
+ import "@arcgis/core/rest/support/StatisticDefinition.js";
25
+ import "@arcgis/core/time/TimeExtent.js";
26
+ import "@arcgis/core/core/promiseUtils.js";
27
+ import "./runtime.js";
28
+ import "@arcgis/toolkit/dom";
29
+ import { m as a, C as n } from "./model-setter.js";
30
+ var R = Object.defineProperty, B = Object.getOwnPropertyDescriptor, M = (e, t, r, l) => {
31
+ for (var i = B(t, r), s = e.length - 1, o; s >= 0; s--)
32
+ (o = e[s]) && (i = o(t, r, i) || i);
33
+ return i && R(t, r, i), i;
34
+ };
35
+ const U = (e) => e.title?.content, E = (e, t) => {
36
+ if (e) {
37
+ const r = j(t);
38
+ t.title === void 0 && (t.title = p({
39
+ text: "",
40
+ visible: !0,
41
+ font: f(c.ChartTitle),
42
+ type: c.ChartTitle
43
+ })), t.title.content = e, t.title.content.text = r;
44
+ }
45
+ };
46
+ class u extends n {
47
+ /**
48
+ * The title text symbol. Contains styling information such as font, color, and symbol style.
49
+ */
50
+ get titleSymbol() {
51
+ return U(this._config);
52
+ }
53
+ set titleSymbol(t) {
54
+ E(t, this._config);
55
+ }
56
+ }
57
+ M([
58
+ a
59
+ ], u.prototype, "titleSymbol");
60
+ var q = Object.defineProperty, G = Object.getOwnPropertyDescriptor, z = (e, t, r, l) => {
61
+ for (var i = G(t, r), s = e.length - 1, o; s >= 0; s--)
62
+ (o = e[s]) && (i = o(t, r, i) || i);
63
+ return i && q(t, r, i), i;
64
+ };
65
+ class h extends n {
66
+ /**
67
+ * The current chart configuration object.
68
+ */
69
+ get config() {
70
+ return this._config;
71
+ }
72
+ set config(t) {
73
+ this._config = t;
74
+ }
75
+ }
76
+ z([
77
+ a
78
+ ], h.prototype, "config");
79
+ class A extends n {
80
+ /**
81
+ * The chart model's layer.
82
+ */
83
+ get layer() {
84
+ return this.layerInfo?.layer;
85
+ }
86
+ }
87
+ const H = (e) => e.id, J = (e, t) => {
88
+ t.id = e;
89
+ };
90
+ class K extends n {
91
+ /**
92
+ * The chart ID.
93
+ */
94
+ get chartId() {
95
+ return H(this._config);
96
+ }
97
+ set chartId(t) {
98
+ J(t, this._config);
99
+ }
100
+ }
101
+ const Q = (e) => e.version;
102
+ class X extends n {
103
+ /**
104
+ * The version of the chart configuration.
105
+ */
106
+ get version() {
107
+ return Q(this._config);
108
+ }
109
+ }
110
+ var Y = Object.defineProperty, Z = Object.getOwnPropertyDescriptor, k = (e, t, r, l) => {
111
+ for (var i = Z(t, r), s = e.length - 1, o; s >= 0; s--)
112
+ (o = e[s]) && (i = o(t, r, i) || i);
113
+ return i && Y(t, r, i), i;
114
+ };
115
+ const b = (e) => e.subtitle?.content.text ?? "", tt = (e, t) => {
116
+ t.subtitle !== void 0 ? t.subtitle.content.text = e : e !== void 0 && (t.subtitle = p({
117
+ text: e,
118
+ visible: !0,
119
+ font: f(c.ChartSubtitle)
120
+ }));
121
+ };
122
+ class _ extends n {
123
+ /**
124
+ * The chart subtitle text.
125
+ */
126
+ get subtitleText() {
127
+ return b(this._config);
128
+ }
129
+ set subtitleText(t) {
130
+ tt(t, this._config);
131
+ }
132
+ }
133
+ k([
134
+ a
135
+ ], _.prototype, "subtitleText");
136
+ var et = Object.defineProperty, it = Object.getOwnPropertyDescriptor, rt = (e, t, r, l) => {
137
+ for (var i = it(t, r), s = e.length - 1, o; s >= 0; s--)
138
+ (o = e[s]) && (i = o(t, r, i) || i);
139
+ return i && et(t, r, i), i;
140
+ };
141
+ const st = (e) => e.subtitle?.content, ot = (e, t) => {
142
+ if (e) {
143
+ const r = b(t);
144
+ t.subtitle === void 0 && (t.subtitle = p({
145
+ text: "",
146
+ visible: !0,
147
+ font: f(c.ChartSubtitle),
148
+ type: c.ChartSubtitle
149
+ })), t.subtitle.content = e, t.subtitle.content.text = r;
150
+ }
151
+ };
152
+ class d extends n {
153
+ /**
154
+ * The subtitle text symbol. Contains styling information such as font, color, and symbol style.
155
+ */
156
+ get subtitleSymbol() {
157
+ return st(this._config);
158
+ }
159
+ set subtitleSymbol(t) {
160
+ ot(t, this._config);
161
+ }
162
+ }
163
+ rt([
164
+ a
165
+ ], d.prototype, "subtitleSymbol");
166
+ var nt = Object.defineProperty, lt = Object.getOwnPropertyDescriptor, at = (e, t, r, l) => {
167
+ for (var i = lt(t, r), s = e.length - 1, o; s >= 0; s--)
168
+ (o = e[s]) && (i = o(t, r, i) || i);
169
+ return i && nt(t, r, i), i;
170
+ };
171
+ const v = (e) => e.footer?.content.text ?? "", ct = (e, t) => {
172
+ t.footer !== void 0 ? t.footer.content.text = e : e !== void 0 && (t.footer = p({
173
+ text: e,
174
+ visible: !0,
175
+ font: f(c.DescriptionText)
176
+ }));
177
+ };
178
+ class g extends n {
179
+ get descriptionText() {
180
+ return v(this._config);
181
+ }
182
+ set descriptionText(t) {
183
+ ct(t, this._config);
184
+ }
185
+ }
186
+ at([
187
+ a
188
+ ], g.prototype, "descriptionText");
189
+ var pt = Object.defineProperty, ft = Object.getOwnPropertyDescriptor, ut = (e, t, r, l) => {
190
+ for (var i = ft(t, r), s = e.length - 1, o; s >= 0; s--)
191
+ (o = e[s]) && (i = o(t, r, i) || i);
192
+ return i && pt(t, r, i), i;
193
+ };
194
+ const ht = (e) => e.footer?.content, bt = (e, t) => {
195
+ if (e) {
196
+ const r = v(t);
197
+ t.footer === void 0 && (t.footer = p({
198
+ text: "",
199
+ visible: !0,
200
+ font: f(c.DescriptionText),
201
+ type: c.DescriptionText
202
+ })), t.footer.content = e, t.footer.content.text = r;
203
+ }
204
+ };
205
+ class y extends n {
206
+ /**
207
+ * The description text symbol. Contains styling information such as font, color, and symbol style.
208
+ */
209
+ get descriptionSymbol() {
210
+ return ht(this._config);
211
+ }
212
+ set descriptionSymbol(t) {
213
+ bt(t, this._config);
214
+ }
215
+ }
216
+ ut([
217
+ a
218
+ ], y.prototype, "descriptionSymbol");
219
+ var _t = Object.defineProperty, dt = Object.getOwnPropertyDescriptor, vt = (e, t, r, l) => {
220
+ for (var i = dt(t, r), s = e.length - 1, o; s >= 0; s--)
221
+ (o = e[s]) && (i = o(t, r, i) || i);
222
+ return i && _t(t, r, i), i;
223
+ };
224
+ const gt = (e) => e.title ? e.title.visible ?? !0 : !1, yt = (e, t) => {
225
+ t.title !== void 0 ? t.title.visible = e : t.title = p({
226
+ text: "",
227
+ visible: e,
228
+ font: f(c.ChartTitle)
229
+ });
230
+ };
231
+ class m extends n {
232
+ /**
233
+ * Whether or not the chart title is visible.
234
+ *
235
+ * `true`: Chart title is visible.
236
+ *
237
+ * `false`: Chart title is hidden.
238
+ *
239
+ * **Note:** Even if the title is visible, it may not be displayed if the title text is empty.
240
+ */
241
+ get chartTitleVisibility() {
242
+ return gt(this._config);
243
+ }
244
+ set chartTitleVisibility(t) {
245
+ yt(t, this._config);
246
+ }
247
+ }
248
+ vt([
249
+ a
250
+ ], m.prototype, "chartTitleVisibility");
251
+ var mt = Object.defineProperty, xt = Object.getOwnPropertyDescriptor, Ot = (e, t, r, l) => {
252
+ for (var i = xt(t, r), s = e.length - 1, o; s >= 0; s--)
253
+ (o = e[s]) && (i = o(t, r, i) || i);
254
+ return i && mt(t, r, i), i;
255
+ };
256
+ const Pt = (e) => e.subtitle ? e.subtitle.visible ?? !0 : !1, Dt = (e, t) => {
257
+ t.subtitle !== void 0 ? t.subtitle.visible = e : t.subtitle = p({
258
+ text: "",
259
+ visible: e,
260
+ font: f(c.ChartSubtitle)
261
+ });
262
+ };
263
+ class x extends n {
264
+ /**
265
+ * Whether or not the chart subtitle is visible.
266
+ *
267
+ * `true`: Chart subtitle is visible.
268
+ *
269
+ * `false`: Chart subtitle is hidden.
270
+ *
271
+ * **Note:** Even if the subtitle is visible, it may not be displayed if the subtitle text is empty.
272
+ */
273
+ get chartSubtitleVisibility() {
274
+ return Pt(this._config);
275
+ }
276
+ set chartSubtitleVisibility(t) {
277
+ Dt(t, this._config);
278
+ }
279
+ }
280
+ Ot([
281
+ a
282
+ ], x.prototype, "chartSubtitleVisibility");
283
+ var St = Object.defineProperty, Ct = Object.getOwnPropertyDescriptor, Tt = (e, t, r, l) => {
284
+ for (var i = Ct(t, r), s = e.length - 1, o; s >= 0; s--)
285
+ (o = e[s]) && (i = o(t, r, i) || i);
286
+ return i && St(t, r, i), i;
287
+ };
288
+ const O = (e) => e.footer?.visible ?? !1, Vt = (e, t) => {
289
+ t.footer !== void 0 ? t.footer.visible = e : e !== O(t) && (t.footer = p({
290
+ text: "",
291
+ visible: !0,
292
+ font: f(c.DescriptionText)
293
+ }));
294
+ };
295
+ class P extends n {
296
+ /**
297
+ * Whether or not the chart description is visible.
298
+ *
299
+ * `true`: Description is visible.
300
+ *
301
+ * `false`: Description is hidden.
302
+ *
303
+ * **Note:** Even if the description is visible, it may not be displayed if the description text is empty.
304
+ */
305
+ get descriptionVisibility() {
306
+ return O(this._config);
307
+ }
308
+ set descriptionVisibility(t) {
309
+ Vt(t, this._config);
310
+ }
311
+ }
312
+ Tt([
313
+ a
314
+ ], P.prototype, "descriptionVisibility");
315
+ var $t = Object.defineProperty, wt = Object.getOwnPropertyDescriptor, jt = (e, t, r, l) => {
316
+ for (var i = wt(t, r), s = e.length - 1, o; s >= 0; s--)
317
+ (o = e[s]) && (i = o(t, r, i) || i);
318
+ return i && $t(t, r, i), i;
319
+ };
320
+ const Wt = (e) => e.chartRenderer, Ft = (e, t) => {
321
+ t.chartRenderer = e;
322
+ };
323
+ class D extends n {
324
+ /**
325
+ * The chart renderer.
326
+ */
327
+ get chartRenderer() {
328
+ return Wt(this._config);
329
+ }
330
+ set chartRenderer(t) {
331
+ Ft(t, this._config);
332
+ }
333
+ }
334
+ jt([
335
+ a
336
+ ], D.prototype, "chartRenderer");
337
+ var It = Object.defineProperty, Lt = Object.getOwnPropertyDescriptor, Nt = (e, t, r, l) => {
338
+ for (var i = Lt(t, r), s = e.length - 1, o; s >= 0; s--)
339
+ (o = e[s]) && (i = o(t, r, i) || i);
340
+ return i && It(t, r, i), i;
341
+ };
342
+ const Rt = (e) => e.background, Bt = (e, t) => {
343
+ t.background = e;
344
+ };
345
+ class S extends n {
346
+ /**
347
+ * The background color of the chart.
348
+ */
349
+ get backgroundColor() {
350
+ return Rt(this._config);
351
+ }
352
+ set backgroundColor(t) {
353
+ Bt(t, this._config);
354
+ }
355
+ }
356
+ Nt([
357
+ a
358
+ ], S.prototype, "backgroundColor");
359
+ var Mt = Object.defineProperty, Ut = Object.getOwnPropertyDescriptor, Et = (e, t, r, l) => {
360
+ for (var i = Ut(t, r), s = e.length - 1, o; s >= 0; s--)
361
+ (o = e[s]) && (i = o(t, r, i) || i);
362
+ return i && Mt(t, r, i), i;
363
+ };
364
+ const qt = (e, t) => t.series[e].visible ?? !0, Gt = (e, t) => {
365
+ L({ detail: e }, t);
366
+ };
367
+ class C extends n {
368
+ /**
369
+ * Gets the visibility of a series.
370
+ *
371
+ * @param seriesIndex The series index
372
+ */
373
+ getSeriesVisibility(t) {
374
+ return qt(t, this._config);
375
+ }
376
+ setSeriesVisibility(t) {
377
+ Gt(t, this._config);
378
+ }
379
+ }
380
+ Et([
381
+ a
382
+ ], C.prototype, "setSeriesVisibility");
383
+ const zt = (e, t) => t.series[e]?.id;
384
+ class At extends n {
385
+ /**
386
+ * Gets the series ID for a given series index.
387
+ * If the series index is out of bounds, this function will return `undefined`.
388
+ *
389
+ * @param seriesIndex - The index of the series.
390
+ */
391
+ getSeriesId(t) {
392
+ return zt(t, this._config);
393
+ }
394
+ }
395
+ const Ht = (e, t) => t.series.findIndex((r) => r.id === e);
396
+ class Jt extends n {
397
+ /**
398
+ * Gets the series index for a given series ID.
399
+ * If the series ID is not found, this function will return `undefined`.
400
+ *
401
+ * @param seriesId - The ID of the series.
402
+ */
403
+ getSeriesIndex(t) {
404
+ return Ht(t, this._config);
405
+ }
406
+ }
407
+ const Kt = (e) => N(e.series);
408
+ class Qt extends n {
409
+ /**
410
+ * The chart sub type of the series.
411
+ */
412
+ get chartSubType() {
413
+ return Kt(this._config);
414
+ }
415
+ }
416
+ var Xt = Object.defineProperty, Yt = Object.getOwnPropertyDescriptor, Zt = (e, t, r, l) => {
417
+ for (var i = Yt(t, r), s = e.length - 1, o; s >= 0; s--)
418
+ (o = e[s]) && (i = o(t, r, i) || i);
419
+ return i && Xt(t, r, i), i;
420
+ };
421
+ const kt = (e, t) => {
422
+ let r;
423
+ return e.length !== 0 && t < e.length && (r = e[t].dataTooltipValueFormat), r;
424
+ }, te = (e) => {
425
+ const { series: t, seriesIndex: r, valueFormat: l } = e;
426
+ t.length !== 0 && r < t.length && (t[r].dataTooltipValueFormat = l);
427
+ };
428
+ class T extends n {
429
+ /**
430
+ * Gets the data tooltip value format for a series.
431
+ *
432
+ * If the series index is out of bounds or the series list is empty, this function will return `undefined`.
433
+ *
434
+ * @param seriesIndex - The index of the series to retrieve the value format for.
435
+ */
436
+ getDataTooltipValueFormat(t) {
437
+ return kt(this._config.series, t);
438
+ }
439
+ setDataTooltipValueFormat(t, r) {
440
+ te({
441
+ series: this._config.series,
442
+ seriesIndex: t,
443
+ valueFormat: r
444
+ });
445
+ }
446
+ }
447
+ Zt([
448
+ a
449
+ ], T.prototype, "setDataTooltipValueFormat");
450
+ var ee = Object.defineProperty, ie = Object.getOwnPropertyDescriptor, re = (e, t, r, l) => {
451
+ for (var i = ie(t, r), s = e.length - 1, o; s >= 0; s--)
452
+ (o = e[s]) && (i = o(t, r, i) || i);
453
+ return i && ee(t, r, i), i;
454
+ };
455
+ const se = (e, t) => {
456
+ t.series.forEach((r) => {
457
+ r.query && (r.query.fetchNullValues = e);
458
+ });
459
+ }, oe = (e) => e.series.some((t) => t.query?.fetchNullValues);
460
+ class V extends n {
461
+ /**
462
+ * Whether to fetch `null` values for them to be counted or displayed as categories on the chart.
463
+ */
464
+ get fetchNULLValues() {
465
+ return oe(this._config);
466
+ }
467
+ set fetchNULLValues(t) {
468
+ se(t, this._config);
469
+ }
470
+ }
471
+ re([
472
+ a
473
+ ], V.prototype, "fetchNULLValues");
474
+ var ne = Object.defineProperty, le = Object.getOwnPropertyDescriptor, ae = (e, t, r, l) => {
475
+ for (var i = le(t, r), s = e.length - 1, o; s >= 0; s--)
476
+ (o = e[s]) && (i = o(t, r, i) || i);
477
+ return i && ne(t, r, i), i;
478
+ };
479
+ const ce = (e) => e.dataFilters, pe = (e, t) => {
480
+ e !== void 0 ? t.dataFilters = e : delete t.dataFilters;
481
+ };
482
+ class $ extends n {
483
+ /**
484
+ * Gets the data filter for the bar chart.
485
+ */
486
+ getDataFilters() {
487
+ return ce(this._config);
488
+ }
489
+ async setDataFilters(t) {
490
+ pe(t, this._config), this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"));
491
+ }
492
+ }
493
+ ae([
494
+ a
495
+ ], $.prototype, "setDataFilters");
496
+ class fe extends n {
497
+ }
498
+ const ue = [
499
+ h,
500
+ A,
501
+ K,
502
+ W,
503
+ u,
504
+ X,
505
+ _,
506
+ d,
507
+ g,
508
+ y,
509
+ m,
510
+ x,
511
+ P,
512
+ D,
513
+ S,
514
+ C,
515
+ At,
516
+ Jt,
517
+ F,
518
+ Qt,
519
+ T,
520
+ V,
521
+ I,
522
+ $
523
+ ];
524
+ w(fe, ue);
525
+ export {
526
+ fe as C
527
+ };
@@ -1,4 +1,5 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
+ import "@arcgis/toolkit/type";
2
3
  import { a as s, j as o } from "./series-types.js";
3
4
  import { a as u } from "./rest-js-object-literals.js";
4
5
  import { cN as p, d7 as f, b } from "./index.js";
@@ -18,7 +19,6 @@ import "@arcgis/core/request.js";
18
19
  import "@arcgis/core/AttributeBinsGraphic.js";
19
20
  import "@arcgis/core/geometry/support/jsonUtils.js";
20
21
  import "@arcgis/core/rest/support/AttributeBinsQuery.js";
21
- import "@arcgis/core/rest/support/Query.js";
22
22
  import "@arcgis/core/rest/support/StatisticDefinition.js";
23
23
  import "@arcgis/core/time/TimeExtent.js";
24
24
  import "@arcgis/core/core/promiseUtils.js";
@@ -1,4 +1,5 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
+ import "@arcgis/toolkit/type";
2
3
  import "./series-types.js";
3
4
  import { a as b, c as x, f as S } from "./rest-js-object-literals.js";
4
5
  function f(e) {
@@ -30,7 +31,7 @@ function k(e) {
30
31
  const o = t.colors || [];
31
32
  if (o.length > 0) {
32
33
  for (let s = 0; s < r; s++) {
33
- const i = r > 1 ? s / (r - 1) : 0, u = Math.floor(i * (o.length - 1)), m = Math.min(u + 1, o.length - 1), h = i * (o.length - 1) - u, d = f(o[u]), p = f(o[m]), M = g(d, p, h);
34
+ const i = r > 1 ? s / (r - 1) : 0, u = Math.floor(i * (o.length - 1)), m = Math.min(u + 1, o.length - 1), h = i * (o.length - 1) - u, p = f(o[u]), d = f(o[m]), M = g(p, d, h);
34
35
  c.push(M);
35
36
  }
36
37
  a = c;
@@ -63,7 +64,7 @@ function y(e, t = 2) {
63
64
  return l % 1 === 0 ? c = l.toString() : c = l.toFixed(t), c;
64
65
  })(e)}`;
65
66
  }
66
- function D(e) {
67
+ function T(e) {
67
68
  const { classBreaksRendererResult: t, numberOfClassBreaks: r, selectedColorRamp: l, colorRamp: c, isFlipped: a } = e, n = [], o = t.classBreaksResult.classBreakInfos;
68
69
  if (o && o.length > 0) {
69
70
  const s = C({
@@ -73,11 +74,11 @@ function D(e) {
73
74
  isFlipped: a
74
75
  }), i = F(o.flatMap((u) => [u.maxValue]));
75
76
  o.forEach((u, m) => {
76
- const { maxValue: h, minValue: d } = u, p = y(h, i);
77
+ const { maxValue: h, minValue: p } = u, d = y(h, i);
77
78
  n.push({
78
- classMinValue: d,
79
+ classMinValue: p,
79
80
  classMaxValue: h,
80
- label: p,
81
+ label: d,
81
82
  symbol: {
82
83
  type: S.SFS,
83
84
  style: x.Solid,
@@ -93,7 +94,7 @@ function D(e) {
93
94
  }
94
95
  return n;
95
96
  }
96
- function T(e) {
97
+ function w(e) {
97
98
  let t = "#000000";
98
99
  if (e && Array.isArray(e) && e.length >= 3) {
99
100
  const r = Math.max(0, Math.min(255, Math.round(e[0] || 0))), l = Math.max(0, Math.min(255, Math.round(e[1] || 0))), c = Math.max(0, Math.min(255, Math.round(e[2] || 0))), a = r.toString(16).padStart(2, "0"), n = l.toString(16).padStart(2, "0"), o = c.toString(16).padStart(2, "0");
@@ -101,7 +102,7 @@ function T(e) {
101
102
  }
102
103
  return t;
103
104
  }
104
- const w = {
105
+ const E = {
105
106
  all: ["*"],
106
107
  light: ["light"],
107
108
  dark: ["dark"],
@@ -114,7 +115,7 @@ const w = {
114
115
  bright: ["bright"],
115
116
  subdued: ["subdued"],
116
117
  colorblindFriendly: ["colorblind-friendly"]
117
- }, E = {
118
+ }, I = {
118
119
  all: "all"
119
120
  }, F = (e) => {
120
121
  let t = 0;
@@ -135,9 +136,9 @@ const w = {
135
136
  return Math.min(t, a);
136
137
  };
137
138
  export {
138
- E as C,
139
- w as a,
140
- T as c,
141
- D as e,
139
+ I as C,
140
+ E as a,
141
+ w as c,
142
+ T as e,
142
143
  C as g
143
144
  };