@mui/x-charts-pro 8.0.0-alpha.11 → 8.0.0-alpha.12

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 (318) hide show
  1. package/BarChartPro/BarChartPro.d.ts +3 -4
  2. package/BarChartPro/BarChartPro.js +227 -221
  3. package/BarChartPro/BarChartPro.plugins.d.ts +3 -9
  4. package/BarChartPro/BarChartPro.plugins.js +9 -3
  5. package/BarChartPro/index.d.ts +1 -1
  6. package/BarChartPro/index.js +16 -1
  7. package/CHANGELOG.md +161 -1
  8. package/ChartContainerPro/ChartContainerPro.d.ts +4 -4
  9. package/ChartContainerPro/ChartContainerPro.js +178 -172
  10. package/ChartContainerPro/index.d.ts +2 -1
  11. package/ChartContainerPro/index.js +17 -1
  12. package/ChartContainerPro/useChartContainerProProps.d.ts +3 -3
  13. package/ChartContainerPro/useChartContainerProProps.js +17 -10
  14. package/ChartDataProviderPro/ChartDataProviderPro.d.ts +3 -3
  15. package/ChartDataProviderPro/ChartDataProviderPro.js +34 -28
  16. package/ChartDataProviderPro/index.d.ts +2 -1
  17. package/ChartDataProviderPro/index.js +17 -1
  18. package/ChartDataProviderPro/useChartDataProviderProProps.d.ts +4 -4
  19. package/ChartDataProviderPro/useChartDataProviderProProps.js +10 -4
  20. package/Heatmap/Heatmap.d.ts +43 -43
  21. package/Heatmap/Heatmap.js +210 -204
  22. package/Heatmap/Heatmap.plugins.d.ts +2 -7
  23. package/Heatmap/Heatmap.plugins.js +8 -2
  24. package/Heatmap/HeatmapItem.d.ts +33 -33
  25. package/Heatmap/HeatmapItem.js +39 -32
  26. package/Heatmap/HeatmapPlot.d.ts +4 -5
  27. package/Heatmap/HeatmapPlot.js +22 -16
  28. package/Heatmap/HeatmapTooltip.d.ts +3 -4
  29. package/Heatmap/HeatmapTooltip.js +97 -89
  30. package/Heatmap/heatmapClasses.d.ts +7 -7
  31. package/Heatmap/heatmapClasses.js +15 -7
  32. package/Heatmap/index.d.ts +4 -4
  33. package/Heatmap/index.js +47 -4
  34. package/Heatmap/{extremums.d.ts → seriesConfig/extremums.d.ts} +1 -1
  35. package/Heatmap/{getColor.d.ts → seriesConfig/getColor.d.ts} +1 -1
  36. package/Heatmap/seriesConfig/index.d.ts +2 -0
  37. package/{node/Heatmap/plugin.js → Heatmap/seriesConfig/index.js} +4 -4
  38. package/Heatmap/seriesConfig/seriesProcessor.d.ts +3 -0
  39. package/{node/Heatmap/formatter.js → Heatmap/seriesConfig/seriesProcessor.js} +2 -2
  40. package/Heatmap/{tooltip.d.ts → seriesConfig/tooltip.d.ts} +1 -1
  41. package/LineChartPro/LineChartPro.d.ts +3 -4
  42. package/LineChartPro/LineChartPro.js +239 -233
  43. package/LineChartPro/LineChartPro.plugins.d.ts +3 -9
  44. package/LineChartPro/LineChartPro.plugins.js +9 -3
  45. package/LineChartPro/index.d.ts +1 -1
  46. package/LineChartPro/index.js +16 -1
  47. package/ScatterChartPro/ScatterChartPro.d.ts +4 -4
  48. package/ScatterChartPro/ScatterChartPro.js +216 -212
  49. package/ScatterChartPro/ScatterChartPro.plugins.d.ts +4 -10
  50. package/ScatterChartPro/ScatterChartPro.plugins.js +9 -3
  51. package/ScatterChartPro/index.d.ts +1 -1
  52. package/ScatterChartPro/index.js +16 -1
  53. package/esm/BarChartPro/BarChartPro.d.ts +17 -0
  54. package/esm/BarChartPro/BarChartPro.js +455 -0
  55. package/esm/BarChartPro/BarChartPro.plugins.d.ts +4 -0
  56. package/esm/BarChartPro/BarChartPro.plugins.js +3 -0
  57. package/esm/BarChartPro/index.d.ts +1 -0
  58. package/esm/BarChartPro/index.js +1 -0
  59. package/esm/ChartContainerPro/ChartContainerPro.d.ts +35 -0
  60. package/esm/ChartContainerPro/ChartContainerPro.js +290 -0
  61. package/esm/ChartContainerPro/index.d.ts +2 -0
  62. package/esm/ChartContainerPro/index.js +2 -0
  63. package/esm/ChartContainerPro/useChartContainerProProps.d.ts +9 -0
  64. package/esm/ChartContainerPro/useChartContainerProProps.js +33 -0
  65. package/esm/ChartDataProviderPro/ChartDataProviderPro.d.ts +37 -0
  66. package/{node → esm}/ChartDataProviderPro/ChartDataProviderPro.js +28 -34
  67. package/esm/ChartDataProviderPro/index.d.ts +2 -0
  68. package/esm/ChartDataProviderPro/index.js +2 -0
  69. package/esm/ChartDataProviderPro/useChartDataProviderProProps.d.ts +8 -0
  70. package/esm/ChartDataProviderPro/useChartDataProviderProProps.js +15 -0
  71. package/esm/Heatmap/Heatmap.d.ts +56 -0
  72. package/esm/Heatmap/Heatmap.js +402 -0
  73. package/esm/Heatmap/Heatmap.plugins.d.ts +3 -0
  74. package/esm/Heatmap/Heatmap.plugins.js +2 -0
  75. package/esm/Heatmap/HeatmapItem.d.ts +49 -0
  76. package/esm/Heatmap/HeatmapItem.js +106 -0
  77. package/esm/Heatmap/HeatmapPlot.d.ts +8 -0
  78. package/{node → esm}/Heatmap/HeatmapPlot.js +16 -22
  79. package/esm/Heatmap/HeatmapTooltip.d.ts +8 -0
  80. package/esm/Heatmap/HeatmapTooltip.js +276 -0
  81. package/esm/Heatmap/heatmapClasses.d.ts +11 -0
  82. package/esm/Heatmap/heatmapClasses.js +14 -0
  83. package/esm/Heatmap/index.d.ts +4 -0
  84. package/esm/Heatmap/index.js +4 -0
  85. package/esm/Heatmap/seriesConfig/extremums.d.ts +2 -0
  86. package/esm/Heatmap/seriesConfig/getColor.d.ts +3 -0
  87. package/esm/Heatmap/seriesConfig/index.d.ts +2 -0
  88. package/{Heatmap/plugin.js → esm/Heatmap/seriesConfig/index.js} +3 -3
  89. package/esm/Heatmap/seriesConfig/seriesProcessor.d.ts +3 -0
  90. package/{Heatmap/formatter.js → esm/Heatmap/seriesConfig/seriesProcessor.js} +2 -2
  91. package/esm/Heatmap/seriesConfig/tooltip.d.ts +3 -0
  92. package/esm/LineChartPro/LineChartPro.d.ts +16 -0
  93. package/esm/LineChartPro/LineChartPro.js +506 -0
  94. package/esm/LineChartPro/LineChartPro.plugins.d.ts +4 -0
  95. package/esm/LineChartPro/LineChartPro.plugins.js +3 -0
  96. package/esm/LineChartPro/index.d.ts +1 -0
  97. package/esm/LineChartPro/index.js +1 -0
  98. package/esm/ScatterChartPro/ScatterChartPro.d.ts +17 -0
  99. package/esm/ScatterChartPro/ScatterChartPro.js +400 -0
  100. package/esm/ScatterChartPro/ScatterChartPro.plugins.d.ts +4 -0
  101. package/esm/ScatterChartPro/ScatterChartPro.plugins.js +3 -0
  102. package/esm/ScatterChartPro/index.d.ts +1 -0
  103. package/esm/ScatterChartPro/index.js +1 -0
  104. package/esm/hooks/index.d.ts +2 -0
  105. package/esm/hooks/index.js +2 -0
  106. package/esm/hooks/useHeatmapSeries.d.ts +33 -0
  107. package/esm/hooks/useHeatmapSeries.js +42 -0
  108. package/esm/hooks/zoom/index.d.ts +1 -0
  109. package/esm/hooks/zoom/index.js +1 -0
  110. package/esm/hooks/zoom/useIsZoomInteracting.d.ts +6 -0
  111. package/esm/hooks/zoom/useIsZoomInteracting.js +14 -0
  112. package/esm/index.d.ts +32 -0
  113. package/esm/index.js +43 -0
  114. package/esm/internals/plugins/allPlugins.d.ts +5 -0
  115. package/esm/internals/plugins/allPlugins.js +5 -0
  116. package/esm/internals/plugins/useChartProZoom/index.d.ts +3 -0
  117. package/esm/internals/plugins/useChartProZoom/index.js +3 -0
  118. package/esm/internals/plugins/useChartProZoom/useChartProZoom.d.ts +3 -0
  119. package/{node → esm}/internals/plugins/useChartProZoom/useChartProZoom.js +33 -44
  120. package/esm/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +201 -0
  121. package/esm/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +4 -0
  122. package/esm/internals/plugins/useChartProZoom/useChartProZoom.types.d.ts +44 -0
  123. package/esm/internals/plugins/useChartProZoom/useChartProZoom.utils.d.ts +45 -0
  124. package/{node → esm}/internals/plugins/useChartProZoom/useChartProZoom.utils.js +8 -22
  125. package/esm/internals/utils/releaseInfo.d.ts +1 -0
  126. package/esm/internals/utils/releaseInfo.js +13 -0
  127. package/esm/models/index.d.ts +2 -0
  128. package/esm/models/index.js +2 -0
  129. package/esm/models/seriesType/heatmap.d.ts +28 -0
  130. package/esm/models/seriesType/index.d.ts +1 -0
  131. package/esm/models/seriesType/index.js +1 -0
  132. package/esm/package.json +1 -0
  133. package/esm/themeAugmentation/components.d.ts +23 -0
  134. package/esm/themeAugmentation/index.d.ts +4 -0
  135. package/esm/themeAugmentation/index.js +0 -0
  136. package/esm/themeAugmentation/overrides.d.ts +11 -0
  137. package/esm/themeAugmentation/props.d.ts +20 -0
  138. package/esm/typeOverloads/index.d.ts +1 -0
  139. package/esm/typeOverloads/index.js +1 -0
  140. package/esm/typeOverloads/modules.d.ts +22 -0
  141. package/esm/typeOverloads/modules.js +1 -0
  142. package/hooks/index.d.ts +2 -2
  143. package/hooks/index.js +27 -2
  144. package/hooks/useHeatmapSeries.d.ts +33 -0
  145. package/hooks/useHeatmapSeries.js +48 -0
  146. package/hooks/zoom/index.d.ts +1 -1
  147. package/hooks/zoom/index.js +16 -1
  148. package/hooks/zoom/useIsZoomInteracting.d.ts +1 -1
  149. package/hooks/zoom/useIsZoomInteracting.js +10 -5
  150. package/index.d.ts +8 -7
  151. package/index.js +347 -36
  152. package/internals/plugins/allPlugins.d.ts +3 -9
  153. package/internals/plugins/allPlugins.js +9 -3
  154. package/internals/plugins/useChartProZoom/index.d.ts +3 -3
  155. package/internals/plugins/useChartProZoom/index.js +38 -3
  156. package/internals/plugins/useChartProZoom/useChartProZoom.d.ts +2 -2
  157. package/internals/plugins/useChartProZoom/useChartProZoom.js +40 -37
  158. package/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +149 -325
  159. package/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +11 -10
  160. package/internals/plugins/useChartProZoom/useChartProZoom.types.d.ts +35 -41
  161. package/internals/plugins/useChartProZoom/useChartProZoom.types.js +5 -1
  162. package/internals/plugins/useChartProZoom/useChartProZoom.utils.d.ts +13 -13
  163. package/internals/plugins/useChartProZoom/useChartProZoom.utils.js +22 -8
  164. package/internals/utils/releaseInfo.d.ts +1 -1
  165. package/internals/utils/releaseInfo.js +13 -5
  166. package/models/index.d.ts +1 -1
  167. package/models/index.js +16 -2
  168. package/models/seriesType/heatmap.d.ts +17 -18
  169. package/models/seriesType/heatmap.js +5 -1
  170. package/models/seriesType/index.d.ts +1 -1
  171. package/models/seriesType/index.js +16 -1
  172. package/modern/BarChartPro/BarChartPro.d.ts +17 -0
  173. package/modern/BarChartPro/BarChartPro.plugins.d.ts +4 -0
  174. package/modern/BarChartPro/index.d.ts +1 -0
  175. package/modern/ChartContainerPro/ChartContainerPro.d.ts +35 -0
  176. package/modern/ChartContainerPro/index.d.ts +2 -0
  177. package/modern/ChartContainerPro/index.js +1 -0
  178. package/modern/ChartContainerPro/useChartContainerProProps.d.ts +9 -0
  179. package/modern/ChartDataProviderPro/ChartDataProviderPro.d.ts +37 -0
  180. package/modern/ChartDataProviderPro/index.d.ts +2 -0
  181. package/modern/ChartDataProviderPro/index.js +1 -0
  182. package/modern/ChartDataProviderPro/useChartDataProviderProProps.d.ts +8 -0
  183. package/modern/Heatmap/Heatmap.d.ts +56 -0
  184. package/modern/Heatmap/Heatmap.js +2 -2
  185. package/modern/Heatmap/Heatmap.plugins.d.ts +3 -0
  186. package/modern/Heatmap/HeatmapItem.d.ts +49 -0
  187. package/modern/Heatmap/HeatmapPlot.d.ts +8 -0
  188. package/modern/Heatmap/HeatmapPlot.js +2 -2
  189. package/modern/Heatmap/HeatmapTooltip.d.ts +8 -0
  190. package/modern/Heatmap/HeatmapTooltip.js +6 -4
  191. package/modern/Heatmap/heatmapClasses.d.ts +11 -0
  192. package/modern/Heatmap/index.d.ts +4 -0
  193. package/modern/Heatmap/seriesConfig/extremums.d.ts +2 -0
  194. package/modern/Heatmap/seriesConfig/getColor.d.ts +3 -0
  195. package/modern/Heatmap/seriesConfig/index.d.ts +2 -0
  196. package/modern/Heatmap/{plugin.js → seriesConfig/index.js} +3 -3
  197. package/modern/Heatmap/seriesConfig/seriesProcessor.d.ts +3 -0
  198. package/modern/Heatmap/{formatter.js → seriesConfig/seriesProcessor.js} +2 -2
  199. package/modern/Heatmap/seriesConfig/tooltip.d.ts +3 -0
  200. package/modern/LineChartPro/LineChartPro.d.ts +16 -0
  201. package/modern/LineChartPro/LineChartPro.plugins.d.ts +4 -0
  202. package/modern/LineChartPro/index.d.ts +1 -0
  203. package/modern/ScatterChartPro/ScatterChartPro.d.ts +17 -0
  204. package/modern/ScatterChartPro/ScatterChartPro.js +1 -3
  205. package/modern/ScatterChartPro/ScatterChartPro.plugins.d.ts +4 -0
  206. package/modern/ScatterChartPro/ScatterChartPro.plugins.js +2 -2
  207. package/modern/ScatterChartPro/index.d.ts +1 -0
  208. package/modern/hooks/index.d.ts +2 -0
  209. package/modern/hooks/index.js +1 -1
  210. package/modern/hooks/useHeatmapSeries.d.ts +33 -0
  211. package/modern/hooks/useHeatmapSeries.js +42 -0
  212. package/modern/hooks/zoom/index.d.ts +1 -0
  213. package/modern/hooks/zoom/useIsZoomInteracting.d.ts +6 -0
  214. package/modern/index.d.ts +32 -0
  215. package/modern/index.js +2 -2
  216. package/modern/internals/plugins/allPlugins.d.ts +5 -0
  217. package/modern/internals/plugins/useChartProZoom/index.d.ts +3 -0
  218. package/modern/internals/plugins/useChartProZoom/useChartProZoom.d.ts +3 -0
  219. package/modern/internals/plugins/useChartProZoom/useChartProZoom.js +4 -8
  220. package/modern/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +201 -0
  221. package/modern/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +1 -7
  222. package/modern/internals/plugins/useChartProZoom/useChartProZoom.types.d.ts +44 -0
  223. package/modern/internals/plugins/useChartProZoom/useChartProZoom.utils.d.ts +45 -0
  224. package/modern/internals/utils/releaseInfo.d.ts +1 -0
  225. package/modern/internals/utils/releaseInfo.js +1 -1
  226. package/modern/models/index.d.ts +2 -0
  227. package/modern/models/seriesType/heatmap.d.ts +28 -0
  228. package/modern/models/seriesType/index.d.ts +1 -0
  229. package/modern/package.json +1 -0
  230. package/modern/themeAugmentation/components.d.ts +23 -0
  231. package/modern/themeAugmentation/index.d.ts +4 -0
  232. package/modern/themeAugmentation/overrides.d.ts +11 -0
  233. package/modern/themeAugmentation/props.d.ts +20 -0
  234. package/modern/typeOverloads/index.d.ts +1 -0
  235. package/modern/typeOverloads/modules.d.ts +22 -0
  236. package/package.json +41 -11
  237. package/themeAugmentation/components.d.ts +1 -3
  238. package/themeAugmentation/index.d.ts +1 -1
  239. package/themeAugmentation/index.js +1 -0
  240. package/themeAugmentation/overrides.d.ts +2 -4
  241. package/themeAugmentation/props.d.ts +5 -7
  242. package/tsconfig.build.tsbuildinfo +1 -0
  243. package/typeOverloads/index.d.ts +1 -1
  244. package/typeOverloads/index.js +6 -1
  245. package/typeOverloads/modules.d.ts +20 -23
  246. package/typeOverloads/modules.js +5 -1
  247. package/BarChartPro/package.json +0 -6
  248. package/ChartContainerPro/package.json +0 -6
  249. package/ChartDataProviderPro/package.json +0 -6
  250. package/Heatmap/formatter.d.ts +0 -3
  251. package/Heatmap/package.json +0 -6
  252. package/Heatmap/plugin.d.ts +0 -2
  253. package/LineChartPro/package.json +0 -6
  254. package/ScatterChartPro/package.json +0 -6
  255. package/hooks/package.json +0 -6
  256. package/hooks/useSeries.d.ts +0 -9
  257. package/hooks/useSeries.js +0 -16
  258. package/internals/plugins/useChartProZoom/creatZoomLookup.d.ts +0 -3
  259. package/internals/plugins/useChartProZoom/creatZoomLookup.js +0 -12
  260. package/internals/plugins/useChartProZoom/defaultizeZoom.d.ts +0 -2
  261. package/internals/plugins/useChartProZoom/defaultizeZoom.js +0 -25
  262. package/internals/plugins/useChartProZoom/zoom.types.d.ts +0 -53
  263. package/models/package.json +0 -6
  264. package/modern/hooks/useSeries.js +0 -16
  265. package/modern/internals/plugins/useChartProZoom/creatZoomLookup.js +0 -12
  266. package/modern/internals/plugins/useChartProZoom/defaultizeZoom.js +0 -25
  267. package/node/BarChartPro/BarChartPro.js +0 -461
  268. package/node/BarChartPro/BarChartPro.plugins.js +0 -9
  269. package/node/BarChartPro/index.js +0 -16
  270. package/node/ChartContainerPro/ChartContainerPro.js +0 -296
  271. package/node/ChartContainerPro/index.js +0 -16
  272. package/node/ChartContainerPro/useChartContainerProProps.js +0 -40
  273. package/node/ChartDataProviderPro/index.js +0 -16
  274. package/node/ChartDataProviderPro/useChartDataProviderProProps.js +0 -21
  275. package/node/Heatmap/Heatmap.js +0 -408
  276. package/node/Heatmap/Heatmap.plugins.js +0 -8
  277. package/node/Heatmap/HeatmapItem.js +0 -113
  278. package/node/Heatmap/HeatmapTooltip.js +0 -280
  279. package/node/Heatmap/heatmapClasses.js +0 -22
  280. package/node/Heatmap/index.js +0 -47
  281. package/node/LineChartPro/LineChartPro.js +0 -512
  282. package/node/LineChartPro/LineChartPro.plugins.js +0 -9
  283. package/node/LineChartPro/index.js +0 -16
  284. package/node/ScatterChartPro/ScatterChartPro.js +0 -408
  285. package/node/ScatterChartPro/ScatterChartPro.plugins.js +0 -9
  286. package/node/ScatterChartPro/index.js +0 -16
  287. package/node/hooks/index.js +0 -27
  288. package/node/hooks/useSeries.js +0 -21
  289. package/node/hooks/zoom/index.js +0 -16
  290. package/node/hooks/zoom/useIsZoomInteracting.js +0 -19
  291. package/node/index.js +0 -354
  292. package/node/internals/plugins/allPlugins.js +0 -11
  293. package/node/internals/plugins/useChartProZoom/creatZoomLookup.js +0 -19
  294. package/node/internals/plugins/useChartProZoom/defaultizeZoom.js +0 -33
  295. package/node/internals/plugins/useChartProZoom/index.js +0 -38
  296. package/node/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +0 -18
  297. package/node/internals/plugins/useChartProZoom/useChartProZoom.types.js +0 -5
  298. package/node/internals/plugins/useChartProZoom/zoom.types.js +0 -5
  299. package/node/internals/utils/releaseInfo.js +0 -21
  300. package/node/models/index.js +0 -16
  301. package/node/models/seriesType/heatmap.js +0 -5
  302. package/node/models/seriesType/index.js +0 -16
  303. package/node/themeAugmentation/index.js +0 -1
  304. package/node/typeOverloads/index.js +0 -6
  305. package/node/typeOverloads/modules.js +0 -5
  306. package/themeAugmentation/package.json +0 -6
  307. package/typeOverloads/package.json +0 -6
  308. /package/{node/Heatmap → Heatmap/seriesConfig}/extremums.js +0 -0
  309. /package/{node/Heatmap → Heatmap/seriesConfig}/getColor.js +0 -0
  310. /package/{node/Heatmap → Heatmap/seriesConfig}/tooltip.js +0 -0
  311. /package/{Heatmap → esm/Heatmap/seriesConfig}/extremums.js +0 -0
  312. /package/{Heatmap → esm/Heatmap/seriesConfig}/getColor.js +0 -0
  313. /package/{Heatmap → esm/Heatmap/seriesConfig}/tooltip.js +0 -0
  314. /package/{internals/plugins/useChartProZoom/zoom.types.js → esm/internals/plugins/useChartProZoom/useChartProZoom.types.js} +0 -0
  315. /package/{modern/internals/plugins/useChartProZoom/zoom.types.js → esm/models/seriesType/heatmap.js} +0 -0
  316. /package/modern/Heatmap/{extremums.js → seriesConfig/extremums.js} +0 -0
  317. /package/modern/Heatmap/{getColor.js → seriesConfig/getColor.js} +0 -0
  318. /package/modern/Heatmap/{tooltip.js → seriesConfig/tooltip.js} +0 -0
@@ -0,0 +1,201 @@
1
+ import { ChartRootSelector } from '@mui/x-charts/internals';
2
+ import { UseChartProZoomSignature } from "./useChartProZoom.types.js";
3
+ export declare const selectorChartZoomState: ChartRootSelector<UseChartProZoomSignature>;
4
+ export declare const selectorChartZoomIsInteracting: ((state: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("./useChartProZoom.types").UseChartProZoomState & Partial<{}> & {
5
+ cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
6
+ }) => boolean) & {
7
+ clearCache: () => void;
8
+ resultsCount: () => number;
9
+ resetResultsCount: () => void;
10
+ } & {
11
+ resultFunc: (resultFuncArgs_0: {
12
+ isInteracting: boolean;
13
+ zoomData: import("@mui/x-charts/internals").ZoomData[];
14
+ }) => boolean;
15
+ memoizedResultFunc: ((resultFuncArgs_0: {
16
+ isInteracting: boolean;
17
+ zoomData: import("@mui/x-charts/internals").ZoomData[];
18
+ }) => boolean) & {
19
+ clearCache: () => void;
20
+ resultsCount: () => number;
21
+ resetResultsCount: () => void;
22
+ };
23
+ lastResult: () => boolean;
24
+ dependencies: [ChartRootSelector<UseChartProZoomSignature>];
25
+ recomputations: () => number;
26
+ resetRecomputations: () => void;
27
+ dependencyRecomputations: () => number;
28
+ resetDependencyRecomputations: () => void;
29
+ } & {
30
+ argsMemoize: typeof import("reselect").weakMapMemoize;
31
+ memoize: typeof import("reselect").weakMapMemoize;
32
+ };
33
+ export declare const selectorChartZoomIsEnabled: ((state: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals").UseChartCartesianAxisState & Partial<{}> & {
34
+ cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
35
+ }) => boolean) & {
36
+ clearCache: () => void;
37
+ resultsCount: () => number;
38
+ resetResultsCount: () => void;
39
+ } & {
40
+ resultFunc: (resultFuncArgs_0: {
41
+ [x: string]: import("@mui/x-charts/internals").DefaultizedZoomOptions;
42
+ [x: number]: import("@mui/x-charts/internals").DefaultizedZoomOptions;
43
+ }) => boolean;
44
+ memoizedResultFunc: ((resultFuncArgs_0: {
45
+ [x: string]: import("@mui/x-charts/internals").DefaultizedZoomOptions;
46
+ [x: number]: import("@mui/x-charts/internals").DefaultizedZoomOptions;
47
+ }) => boolean) & {
48
+ clearCache: () => void;
49
+ resultsCount: () => number;
50
+ resetResultsCount: () => void;
51
+ };
52
+ lastResult: () => boolean;
53
+ dependencies: [((state: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals").UseChartCartesianAxisState & Partial<{}> & {
54
+ cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
55
+ }) => {
56
+ [x: string]: import("@mui/x-charts/internals").DefaultizedZoomOptions;
57
+ [x: number]: import("@mui/x-charts/internals").DefaultizedZoomOptions;
58
+ }) & {
59
+ clearCache: () => void;
60
+ resultsCount: () => number;
61
+ resetResultsCount: () => void;
62
+ } & {
63
+ resultFunc: (resultFuncArgs_0: Record<import("@mui/x-charts/internals").AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>, resultFuncArgs_1: Record<import("@mui/x-charts/internals").AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>) => {
64
+ [x: string]: import("@mui/x-charts/internals").DefaultizedZoomOptions;
65
+ [x: number]: import("@mui/x-charts/internals").DefaultizedZoomOptions;
66
+ };
67
+ memoizedResultFunc: ((resultFuncArgs_0: Record<import("@mui/x-charts/internals").AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>, resultFuncArgs_1: Record<import("@mui/x-charts/internals").AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>) => {
68
+ [x: string]: import("@mui/x-charts/internals").DefaultizedZoomOptions;
69
+ [x: number]: import("@mui/x-charts/internals").DefaultizedZoomOptions;
70
+ }) & {
71
+ clearCache: () => void;
72
+ resultsCount: () => number;
73
+ resetResultsCount: () => void;
74
+ };
75
+ lastResult: () => {
76
+ [x: string]: import("@mui/x-charts/internals").DefaultizedZoomOptions;
77
+ [x: number]: import("@mui/x-charts/internals").DefaultizedZoomOptions;
78
+ };
79
+ dependencies: [((state: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals").UseChartCartesianAxisState & Partial<{}> & {
80
+ cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
81
+ }) => Record<import("@mui/x-charts/internals").AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>) & {
82
+ clearCache: () => void;
83
+ resultsCount: () => number;
84
+ resetResultsCount: () => void;
85
+ } & {
86
+ resultFunc: (resultFuncArgs_0: import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsXAxisProps>[]) => Record<import("@mui/x-charts/internals").AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>;
87
+ memoizedResultFunc: ((resultFuncArgs_0: import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsXAxisProps>[]) => Record<import("@mui/x-charts/internals").AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>) & {
88
+ clearCache: () => void;
89
+ resultsCount: () => number;
90
+ resetResultsCount: () => void;
91
+ };
92
+ lastResult: () => Record<import("@mui/x-charts/internals").AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>;
93
+ dependencies: [((state: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals").UseChartCartesianAxisState & Partial<{}> & {
94
+ cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
95
+ }) => import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsXAxisProps>[]) & {
96
+ clearCache: () => void;
97
+ resultsCount: () => number;
98
+ resetResultsCount: () => void;
99
+ } & {
100
+ resultFunc: (resultFuncArgs_0: {
101
+ x: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsXAxisProps>[];
102
+ y: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsYAxisProps>[];
103
+ }) => import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsXAxisProps>[];
104
+ memoizedResultFunc: ((resultFuncArgs_0: {
105
+ x: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsXAxisProps>[];
106
+ y: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsYAxisProps>[];
107
+ }) => import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsXAxisProps>[]) & {
108
+ clearCache: () => void;
109
+ resultsCount: () => number;
110
+ resetResultsCount: () => void;
111
+ };
112
+ lastResult: () => import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsXAxisProps>[];
113
+ dependencies: [(state: import("@mui/x-charts/internals").ChartState<[import("@mui/x-charts/internals").UseChartCartesianAxisSignature]>) => {
114
+ x: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsXAxisProps>[];
115
+ y: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsYAxisProps>[];
116
+ }];
117
+ recomputations: () => number;
118
+ resetRecomputations: () => void;
119
+ dependencyRecomputations: () => number;
120
+ resetDependencyRecomputations: () => void;
121
+ } & {
122
+ memoize: typeof import("reselect").weakMapMemoize;
123
+ argsMemoize: typeof import("reselect").weakMapMemoize;
124
+ }];
125
+ recomputations: () => number;
126
+ resetRecomputations: () => void;
127
+ dependencyRecomputations: () => number;
128
+ resetDependencyRecomputations: () => void;
129
+ } & {
130
+ memoize: typeof import("reselect").weakMapMemoize;
131
+ argsMemoize: typeof import("reselect").weakMapMemoize;
132
+ }, ((state: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals").UseChartCartesianAxisState & Partial<{}> & {
133
+ cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
134
+ }) => Record<import("@mui/x-charts/internals").AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>) & {
135
+ clearCache: () => void;
136
+ resultsCount: () => number;
137
+ resetResultsCount: () => void;
138
+ } & {
139
+ resultFunc: (resultFuncArgs_0: import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsYAxisProps>[]) => Record<import("@mui/x-charts/internals").AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>;
140
+ memoizedResultFunc: ((resultFuncArgs_0: import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsYAxisProps>[]) => Record<import("@mui/x-charts/internals").AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>) & {
141
+ clearCache: () => void;
142
+ resultsCount: () => number;
143
+ resetResultsCount: () => void;
144
+ };
145
+ lastResult: () => Record<import("@mui/x-charts/internals").AxisId, import("@mui/x-charts/internals").DefaultizedZoomOptions>;
146
+ dependencies: [((state: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals").UseChartCartesianAxisState & Partial<{}> & {
147
+ cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
148
+ }) => import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsYAxisProps>[]) & {
149
+ clearCache: () => void;
150
+ resultsCount: () => number;
151
+ resetResultsCount: () => void;
152
+ } & {
153
+ resultFunc: (resultFuncArgs_0: {
154
+ x: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsXAxisProps>[];
155
+ y: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsYAxisProps>[];
156
+ }) => import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsYAxisProps>[];
157
+ memoizedResultFunc: ((resultFuncArgs_0: {
158
+ x: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsXAxisProps>[];
159
+ y: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsYAxisProps>[];
160
+ }) => import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsYAxisProps>[]) & {
161
+ clearCache: () => void;
162
+ resultsCount: () => number;
163
+ resetResultsCount: () => void;
164
+ };
165
+ lastResult: () => import("@mui/x-charts").AxisConfig<keyof import("@mui/x-charts/internals").AxisScaleConfig, any, import("@mui/x-charts").ChartsYAxisProps>[];
166
+ dependencies: [(state: import("@mui/x-charts/internals").ChartState<[import("@mui/x-charts/internals").UseChartCartesianAxisSignature]>) => {
167
+ x: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsXAxisProps>[];
168
+ y: import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsYAxisProps>[];
169
+ }];
170
+ recomputations: () => number;
171
+ resetRecomputations: () => void;
172
+ dependencyRecomputations: () => number;
173
+ resetDependencyRecomputations: () => void;
174
+ } & {
175
+ memoize: typeof import("reselect").weakMapMemoize;
176
+ argsMemoize: typeof import("reselect").weakMapMemoize;
177
+ }];
178
+ recomputations: () => number;
179
+ resetRecomputations: () => void;
180
+ dependencyRecomputations: () => number;
181
+ resetDependencyRecomputations: () => void;
182
+ } & {
183
+ memoize: typeof import("reselect").weakMapMemoize;
184
+ argsMemoize: typeof import("reselect").weakMapMemoize;
185
+ }];
186
+ recomputations: () => number;
187
+ resetRecomputations: () => void;
188
+ dependencyRecomputations: () => number;
189
+ resetDependencyRecomputations: () => void;
190
+ } & {
191
+ memoize: typeof import("reselect").weakMapMemoize;
192
+ argsMemoize: typeof import("reselect").weakMapMemoize;
193
+ }];
194
+ recomputations: () => number;
195
+ resetRecomputations: () => void;
196
+ dependencyRecomputations: () => number;
197
+ resetDependencyRecomputations: () => void;
198
+ } & {
199
+ argsMemoize: typeof import("reselect").weakMapMemoize;
200
+ memoize: typeof import("reselect").weakMapMemoize;
201
+ };
@@ -1,10 +1,4 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
- import { createSelector, selectorChartRawXAxis, selectorChartRawYAxis } from '@mui/x-charts/internals';
3
- import { creatZoomLookup } from "./creatZoomLookup.js";
1
+ import { createSelector, selectorChartZoomOptionsLookup } from '@mui/x-charts/internals';
4
2
  export const selectorChartZoomState = state => state.zoom;
5
- const selectorChartXZoomOptionsLookup = createSelector(selectorChartRawXAxis, creatZoomLookup('x'));
6
- const selectorChartYZoomOptionsLookup = createSelector(selectorChartRawYAxis, creatZoomLookup('y'));
7
- export const selectorChartZoomOptionsLookup = createSelector([selectorChartXZoomOptionsLookup, selectorChartYZoomOptionsLookup], (xLookup, yLookup) => _extends({}, xLookup, yLookup));
8
- export const selectorChartZoomData = createSelector(selectorChartZoomState, zoom => zoom.zoomData);
9
3
  export const selectorChartZoomIsInteracting = createSelector(selectorChartZoomState, zoom => zoom.isInteracting);
10
4
  export const selectorChartZoomIsEnabled = createSelector(selectorChartZoomOptionsLookup, optionsLookup => Object.keys(optionsLookup).length > 0);
@@ -0,0 +1,44 @@
1
+ import { UseChartSeriesSignature, ChartPluginSignature, UseChartCartesianAxisSignature, UseChartCartesianAxisDefaultizedParameters, ZoomData } from '@mui/x-charts/internals';
2
+ export interface UseChartProZoomParameters {
3
+ /**
4
+ * The list of zoom data related to each axis.
5
+ */
6
+ initialZoom?: ZoomData[];
7
+ /**
8
+ * Callback fired when the zoom has changed.
9
+ *
10
+ * @param {ZoomData[]} zoomData Updated zoom data.
11
+ */
12
+ onZoomChange?: (zoomData: ZoomData[] | ((zoomData: ZoomData[]) => ZoomData[])) => void;
13
+ }
14
+ export type UseChartProZoomDefaultizedParameters = UseChartProZoomParameters & UseChartCartesianAxisDefaultizedParameters;
15
+ export interface UseChartProZoomState {
16
+ zoom: {
17
+ /**
18
+ * Whether the user is currently interacting with the chart.
19
+ * This is useful to disable animations while the user is interacting.
20
+ */
21
+ isInteracting: boolean;
22
+ /**
23
+ * Mapping of axis id to the zoom data.
24
+ */
25
+ zoomData: ZoomData[];
26
+ };
27
+ }
28
+ export interface UseChartProZoomPublicApi {
29
+ /**
30
+ * Set the zoom data state.
31
+ * @param {ZoomData[] | ((prev: ZoomData[]) => ZoomData[])} value The new value. Can either be the new zoom data, or an updater function.
32
+ * @returns {void}
33
+ */
34
+ setZoomData: (value: ZoomData[] | ((prev: ZoomData[]) => ZoomData[])) => void;
35
+ }
36
+ export interface UseChartProZoomInstance extends UseChartProZoomPublicApi {}
37
+ export type UseChartProZoomSignature = ChartPluginSignature<{
38
+ params: UseChartProZoomParameters;
39
+ defaultizedParams: UseChartProZoomDefaultizedParameters;
40
+ state: UseChartProZoomState;
41
+ publicAPI: UseChartProZoomPublicApi;
42
+ instance: UseChartProZoomInstance;
43
+ dependencies: [UseChartSeriesSignature, UseChartCartesianAxisSignature];
44
+ }>;
@@ -0,0 +1,45 @@
1
+ import { DefaultizedZoomOptions, ZoomData } from '@mui/x-charts/internals';
2
+ /**
3
+ * Helper to get the range (in percents of a reference range) corresponding to a given scale.
4
+ * @param centerRatio {number} The ratio of the point that should not move between the previous and next range.
5
+ * @param scaleRatio {number} The target scale ratio.
6
+ * @returns The range to display.
7
+ */
8
+ export declare const zoomAtPoint: (centerRatio: number, scaleRatio: number, currentZoomData: ZoomData, options: DefaultizedZoomOptions) => number[];
9
+ /**
10
+ * Checks if the new span is valid.
11
+ */
12
+ export declare function isSpanValid(minRange: number, maxRange: number, isZoomIn: boolean, option: DefaultizedZoomOptions): boolean;
13
+ /**
14
+ * Get the scale ratio and if it's a zoom in or out from a wheel event.
15
+ */
16
+ export declare function getWheelScaleRatio(event: WheelEvent, step: number): {
17
+ scaleRatio: number;
18
+ isZoomIn: boolean;
19
+ };
20
+ /**
21
+ * Get the scale ratio and if it's a zoom in or out from a pinch gesture.
22
+ */
23
+ export declare function getPinchScaleRatio(curDiff: number, prevDiff: number, step: number): {
24
+ scaleRatio: number;
25
+ isZoomIn: boolean;
26
+ };
27
+ export declare function getDiff(eventCache: PointerEvent[]): number;
28
+ /**
29
+ * Get the ratio of the point in the horizontal center of the area.
30
+ */
31
+ export declare function getHorizontalCenterRatio(point: {
32
+ x: number;
33
+ y: number;
34
+ }, area: {
35
+ left: number;
36
+ width: number;
37
+ }): number;
38
+ export declare function preventDefault(event: TouchEvent): void;
39
+ export declare function getVerticalCenterRatio(point: {
40
+ x: number;
41
+ y: number;
42
+ }, area: {
43
+ top: number;
44
+ height: number;
45
+ }): number;
@@ -0,0 +1 @@
1
+ export declare const getReleaseInfo: () => any;
@@ -1,6 +1,6 @@
1
1
  import ponyfillGlobal from '@mui/utils/ponyfillGlobal';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTczODg4MjgwMDAwMA==";
3
+ const releaseInfo = "MTczOTc0NjgwMDAwMA==";
4
4
  if (process.env.NODE_ENV !== 'production') {
5
5
  // A simple hack to set the value in the test environment (has no build step).
6
6
  // eslint-disable-next-line no-useless-concat
@@ -0,0 +1,2 @@
1
+ export type { ZoomData } from '@mui/x-charts/internals';
2
+ export * from "./seriesType/index.js";
@@ -0,0 +1,28 @@
1
+ import { DefaultizedProps } from '@mui/x-internals/types';
2
+ import { CommonDefaultizedProps, CommonSeriesType, CartesianSeriesType } from '@mui/x-charts/internals';
3
+ export type HeatmapValueType = [number, number, number];
4
+ export interface HeatmapSeriesType extends Omit<CommonSeriesType<HeatmapValueType>, 'color'>, CartesianSeriesType {
5
+ type: 'heatmap';
6
+ /**
7
+ * Data associated to each bar.
8
+ */
9
+ data?: HeatmapValueType[];
10
+ /**
11
+ * The key used to retrieve data from the dataset.
12
+ */
13
+ dataKey?: string;
14
+ /**
15
+ * The label to display on the tooltip or the legend. It can be a string or a function.
16
+ */
17
+ label?: string | ((location: 'tooltip' | 'legend') => string);
18
+ }
19
+ /**
20
+ * An object that allows to identify a single bar.
21
+ * Used for item interaction
22
+ */
23
+ export type HeatmapItemIdentifier = {
24
+ type: 'heatmap';
25
+ seriesId: DefaultizedHeatmapSeriesType['id'];
26
+ dataIndex: number;
27
+ };
28
+ export interface DefaultizedHeatmapSeriesType extends DefaultizedProps<HeatmapSeriesType, CommonDefaultizedProps> {}
@@ -0,0 +1 @@
1
+ export * from "./heatmap.js";
@@ -0,0 +1 @@
1
+ {"type":"module","sideEffects":false}
@@ -0,0 +1,23 @@
1
+ import { ComponentsProps, ComponentsOverrides } from '@mui/material/styles';
2
+ export interface ChartsProComponents<Theme = unknown> {
3
+ // BarChartPro components
4
+ MuiBarChartPro?: {
5
+ defaultProps?: ComponentsProps['MuiBarChartPro'];
6
+ };
7
+ // LineChartPro components
8
+ MuiLineChartPro?: {
9
+ defaultProps?: ComponentsProps['MuiLineChartPro'];
10
+ };
11
+ // Heatmap components
12
+ MuiHeatmap?: {
13
+ defaultProps?: ComponentsProps['MuiHeatmap'];
14
+ styleOverrides?: ComponentsOverrides<Theme>['MuiHeatmap'];
15
+ };
16
+ // ScatterChartPro components
17
+ MuiScatterChartPro?: {
18
+ defaultProps?: ComponentsProps['MuiScatterChartPro'];
19
+ };
20
+ }
21
+ declare module '@mui/material/styles' {
22
+ interface Components<Theme = unknown> extends ChartsProComponents<Theme> {}
23
+ }
@@ -0,0 +1,4 @@
1
+ export type * from '@mui/x-charts/themeAugmentation';
2
+ export type * from './overrides';
3
+ export type * from './props';
4
+ export type * from './components';
@@ -0,0 +1,11 @@
1
+ import { HeatmapClassKey } from "../Heatmap/index.js";
2
+ export interface ChartsProComponentNameToClassKey {
3
+ // Heatmap components
4
+ MuiHeatmap: HeatmapClassKey;
5
+ }
6
+ declare module '@mui/material/styles' {
7
+ interface ComponentNameToClassKey extends ChartsProComponentNameToClassKey {}
8
+ }
9
+
10
+ // disable automatic export
11
+ export {};
@@ -0,0 +1,20 @@
1
+ import { ScatterChartProProps } from "../ScatterChartPro/index.js";
2
+ import { BarChartProProps } from "../BarChartPro/index.js";
3
+ import { HeatmapProps } from "../Heatmap/Heatmap.js";
4
+ import { LineChartProProps } from "../LineChartPro/index.js";
5
+ export interface ChartsProComponentsPropsList {
6
+ // BarChartPro components
7
+ MuiBarChartPro: BarChartProProps;
8
+ // LineChartPro components
9
+ MuiLineChartPro: LineChartProProps;
10
+ // Heatmap components
11
+ MuiHeatmap: HeatmapProps;
12
+ // ScatterChartPro components
13
+ MuiScatterChartPro: ScatterChartProProps;
14
+ }
15
+ declare module '@mui/material/styles' {
16
+ interface ComponentsPropsList extends ChartsProComponentsPropsList {}
17
+ }
18
+
19
+ // disable automatic export
20
+ export {};
@@ -0,0 +1 @@
1
+ export {} from "./modules.js";
@@ -0,0 +1,22 @@
1
+ import { DefaultizedProps } from '@mui/x-internals/types';
2
+ import { AxisId, ZoomOptions } from '@mui/x-charts/internals';
3
+ import { HeatmapItemIdentifier, HeatmapSeriesType, DefaultizedHeatmapSeriesType, HeatmapValueType } from "../models/seriesType/heatmap.js";
4
+ declare module '@mui/x-charts/internals' {
5
+ interface ChartsSeriesConfig {
6
+ heatmap: {
7
+ seriesInput: DefaultizedProps<HeatmapSeriesType, 'id'>;
8
+ series: DefaultizedHeatmapSeriesType;
9
+ seriesProp: HeatmapSeriesType;
10
+ itemIdentifier: HeatmapItemIdentifier;
11
+ valueType: HeatmapValueType;
12
+ cartesian: true;
13
+ };
14
+ }
15
+ interface DefaultizedZoomOptions extends Required<ZoomOptions> {
16
+ axisId: AxisId;
17
+ axisDirection: 'x' | 'y';
18
+ }
19
+ interface AxisConfigExtension {
20
+ zoom?: boolean | ZoomOptions;
21
+ }
22
+ }
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@mui/x-charts-pro",
3
- "version": "8.0.0-alpha.11",
3
+ "version": "8.0.0-alpha.12",
4
4
  "description": "The Pro plan edition of the Charts components (MUI X).",
5
5
  "author": "MUI Team",
6
- "main": "./node/index.js",
6
+ "main": "./index.js",
7
7
  "license": "SEE LICENSE IN LICENSE",
8
8
  "bugs": {
9
9
  "url": "https://github.com/mui/mui-x/issues"
@@ -29,22 +29,22 @@
29
29
  "directory": "packages/x-charts-pro"
30
30
  },
31
31
  "dependencies": {
32
- "@babel/runtime": "^7.26.7",
33
- "@mui/utils": "^5.16.6 || ^6.0.0",
32
+ "@babel/runtime": "^7.26.9",
33
+ "@mui/utils": "^5.16.6 || ^6.0.0 || ^7.0.0-alpha",
34
34
  "@react-spring/rafz": "^9.7.5",
35
35
  "@react-spring/web": "^9.7.5",
36
36
  "clsx": "^2.1.1",
37
37
  "prop-types": "^15.8.1",
38
- "@mui/x-charts": "8.0.0-alpha.11",
39
- "@mui/x-charts-vendor": "8.0.0-alpha.10",
40
- "@mui/x-internals": "8.0.0-alpha.11",
41
- "@mui/x-license": "8.0.0-alpha.11"
38
+ "@mui/x-charts": "8.0.0-alpha.12",
39
+ "@mui/x-internals": "8.0.0-alpha.12",
40
+ "@mui/x-license": "8.0.0-alpha.12",
41
+ "@mui/x-charts-vendor": "8.0.0-alpha.10"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "@emotion/react": "^11.9.0",
45
45
  "@emotion/styled": "^11.8.1",
46
- "@mui/material": "^5.15.14 || ^6.0.0",
47
- "@mui/system": "^5.15.14 || ^6.0.0",
46
+ "@mui/material": "^5.15.14 || ^6.0.0 || ^7.0.0-alpha",
47
+ "@mui/system": "^5.15.14 || ^6.0.0 || ^7.0.0-alpha",
48
48
  "react": "^17.0.0 || ^18.0.0 || ^19.0.0",
49
49
  "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
50
50
  },
@@ -60,6 +60,36 @@
60
60
  "node": ">=14.0.0"
61
61
  },
62
62
  "private": false,
63
- "module": "./index.js",
63
+ "module": "./esm/index.js",
64
+ "exports": {
65
+ ".": {
66
+ "require": {
67
+ "types": "./index.d.ts",
68
+ "default": "./index.js"
69
+ },
70
+ "import": {
71
+ "types": "./esm/index.d.ts",
72
+ "default": "./esm/index.js"
73
+ },
74
+ "mui-modern": {
75
+ "types": "./modern/index.d.ts",
76
+ "default": "./modern/index.js"
77
+ }
78
+ },
79
+ "./*": {
80
+ "require": {
81
+ "types": "./*/index.d.ts",
82
+ "default": "./*/index.js"
83
+ },
84
+ "import": {
85
+ "types": "./esm/*/index.d.ts",
86
+ "default": "./esm/*/index.js"
87
+ },
88
+ "mui-modern": {
89
+ "types": "./modern/*/index.d.ts",
90
+ "default": "./modern/*/index.js"
91
+ }
92
+ }
93
+ },
64
94
  "types": "./index.d.ts"
65
95
  }
@@ -1,5 +1,4 @@
1
1
  import { ComponentsProps, ComponentsOverrides } from '@mui/material/styles';
2
-
3
2
  export interface ChartsProComponents<Theme = unknown> {
4
3
  // BarChartPro components
5
4
  MuiBarChartPro?: {
@@ -19,7 +18,6 @@ export interface ChartsProComponents<Theme = unknown> {
19
18
  defaultProps?: ComponentsProps['MuiScatterChartPro'];
20
19
  };
21
20
  }
22
-
23
21
  declare module '@mui/material/styles' {
24
22
  interface Components<Theme = unknown> extends ChartsProComponents<Theme> {}
25
- }
23
+ }
@@ -1,4 +1,4 @@
1
1
  export type * from '@mui/x-charts/themeAugmentation';
2
2
  export type * from './overrides';
3
3
  export type * from './props';
4
- export type * from './components';
4
+ export type * from './components';
@@ -0,0 +1 @@
1
+ "use strict";
@@ -1,13 +1,11 @@
1
- import { HeatmapClassKey } from '../Heatmap';
2
-
1
+ import { HeatmapClassKey } from "../Heatmap/index.js";
3
2
  export interface ChartsProComponentNameToClassKey {
4
3
  // Heatmap components
5
4
  MuiHeatmap: HeatmapClassKey;
6
5
  }
7
-
8
6
  declare module '@mui/material/styles' {
9
7
  interface ComponentNameToClassKey extends ChartsProComponentNameToClassKey {}
10
8
  }
11
9
 
12
10
  // disable automatic export
13
- export {};
11
+ export {};
@@ -1,8 +1,7 @@
1
- import { ScatterChartProProps } from '../ScatterChartPro';
2
- import { BarChartProProps } from '../BarChartPro';
3
- import { HeatmapProps } from '../Heatmap/Heatmap';
4
- import { LineChartProProps } from '../LineChartPro';
5
-
1
+ import { ScatterChartProProps } from "../ScatterChartPro/index.js";
2
+ import { BarChartProProps } from "../BarChartPro/index.js";
3
+ import { HeatmapProps } from "../Heatmap/Heatmap.js";
4
+ import { LineChartProProps } from "../LineChartPro/index.js";
6
5
  export interface ChartsProComponentsPropsList {
7
6
  // BarChartPro components
8
7
  MuiBarChartPro: BarChartProProps;
@@ -13,10 +12,9 @@ export interface ChartsProComponentsPropsList {
13
12
  // ScatterChartPro components
14
13
  MuiScatterChartPro: ScatterChartProProps;
15
14
  }
16
-
17
15
  declare module '@mui/material/styles' {
18
16
  interface ComponentsPropsList extends ChartsProComponentsPropsList {}
19
17
  }
20
18
 
21
19
  // disable automatic export
22
- export {};
20
+ export {};