@mui/x-charts-pro 9.0.0-alpha.0 → 9.0.0-alpha.2

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 (988) hide show
  1. package/BarChartPro/BarChartPro.d.mts +33 -0
  2. package/BarChartPro/BarChartPro.d.ts +1 -1
  3. package/BarChartPro/BarChartPro.js +47 -15
  4. package/BarChartPro/BarChartPro.mjs +1634 -0
  5. package/BarChartPro/BarChartPro.plugins.d.mts +5 -0
  6. package/BarChartPro/BarChartPro.plugins.d.ts +1 -1
  7. package/BarChartPro/BarChartPro.plugins.mjs +4 -0
  8. package/BarChartPro/index.d.mts +2 -0
  9. package/BarChartPro/index.mjs +2 -0
  10. package/CHANGELOG.md +236 -0
  11. package/ChartContainerPro/ChartContainerPro.d.mts +21 -0
  12. package/ChartContainerPro/ChartContainerPro.mjs +20 -0
  13. package/ChartContainerPro/index.d.mts +9 -0
  14. package/ChartContainerPro/index.mjs +6 -0
  15. package/ChartContainerPro/useChartContainerProProps.d.mts +12 -0
  16. package/ChartContainerPro/useChartContainerProProps.d.ts +1 -2
  17. package/ChartContainerPro/useChartContainerProProps.js +2 -2
  18. package/ChartContainerPro/useChartContainerProProps.mjs +14 -0
  19. package/ChartDataProviderPro/ChartDataProviderPro.d.mts +20 -0
  20. package/ChartDataProviderPro/ChartDataProviderPro.d.ts +17 -46
  21. package/ChartDataProviderPro/ChartDataProviderPro.js +21 -141
  22. package/ChartDataProviderPro/ChartDataProviderPro.mjs +21 -0
  23. package/ChartDataProviderPro/index.d.mts +2 -0
  24. package/ChartDataProviderPro/index.mjs +2 -0
  25. package/ChartDataProviderPro/useChartDataProviderProProps.d.mts +10 -0
  26. package/ChartDataProviderPro/useChartDataProviderProProps.d.ts +7 -7
  27. package/ChartDataProviderPro/useChartDataProviderProProps.js +5 -18
  28. package/ChartDataProviderPro/useChartDataProviderProProps.mjs +8 -0
  29. package/ChartZoomSlider/index.d.mts +29 -0
  30. package/ChartZoomSlider/index.d.ts +29 -3
  31. package/ChartZoomSlider/index.js +33 -30
  32. package/ChartZoomSlider/index.mjs +34 -0
  33. package/ChartsContainerPro/ChartsContainerPro.d.mts +37 -0
  34. package/ChartsContainerPro/ChartsContainerPro.d.ts +3 -3
  35. package/ChartsContainerPro/ChartsContainerPro.js +5 -4
  36. package/ChartsContainerPro/ChartsContainerPro.mjs +182 -0
  37. package/ChartsContainerPro/index.d.mts +9 -0
  38. package/ChartsContainerPro/index.mjs +6 -0
  39. package/ChartsContainerPro/useChartsContainerProProps.d.mts +8 -0
  40. package/ChartsContainerPro/useChartsContainerProProps.d.ts +1 -2
  41. package/ChartsContainerPro/useChartsContainerProProps.js +2 -2
  42. package/ChartsContainerPro/useChartsContainerProProps.mjs +37 -0
  43. package/ChartsDataProvider/index.d.mts +1 -0
  44. package/ChartsDataProvider/index.d.ts +1 -0
  45. package/ChartsDataProvider/index.js +16 -0
  46. package/ChartsDataProvider/index.mjs +2 -0
  47. package/ChartsDataProviderPro/ChartsDataProviderPro.d.mts +49 -0
  48. package/ChartsDataProviderPro/ChartsDataProviderPro.d.ts +49 -0
  49. package/ChartsDataProviderPro/ChartsDataProviderPro.js +149 -0
  50. package/ChartsDataProviderPro/ChartsDataProviderPro.mjs +143 -0
  51. package/ChartsDataProviderPro/index.d.mts +2 -0
  52. package/ChartsDataProviderPro/index.d.ts +2 -0
  53. package/ChartsDataProviderPro/index.js +19 -0
  54. package/ChartsDataProviderPro/index.mjs +2 -0
  55. package/ChartsDataProviderPro/useChartsDataProviderProProps.d.mts +10 -0
  56. package/ChartsDataProviderPro/useChartsDataProviderProProps.d.ts +10 -0
  57. package/ChartsDataProviderPro/useChartsDataProviderProProps.js +25 -0
  58. package/ChartsDataProviderPro/useChartsDataProviderProProps.mjs +19 -0
  59. package/ChartsLayerContainer/index.d.mts +1 -0
  60. package/ChartsLayerContainer/index.d.ts +1 -0
  61. package/ChartsLayerContainer/index.js +16 -0
  62. package/ChartsLayerContainer/index.mjs +2 -0
  63. package/ChartsSvgLayer/index.d.mts +1 -0
  64. package/ChartsSvgLayer/index.d.ts +1 -0
  65. package/ChartsSvgLayer/index.js +16 -0
  66. package/ChartsSvgLayer/index.mjs +2 -0
  67. package/ChartsToolbarPro/ChartsToolbarImageExportTrigger.d.mts +27 -0
  68. package/ChartsToolbarPro/ChartsToolbarImageExportTrigger.mjs +73 -0
  69. package/ChartsToolbarPro/ChartsToolbarPrintExportTrigger.d.mts +33 -0
  70. package/ChartsToolbarPro/ChartsToolbarPrintExportTrigger.mjs +71 -0
  71. package/ChartsToolbarPro/ChartsToolbarPro.d.mts +19 -0
  72. package/ChartsToolbarPro/ChartsToolbarPro.mjs +166 -0
  73. package/ChartsToolbarPro/ChartsToolbarZoomInTrigger.mjs +51 -0
  74. package/ChartsToolbarPro/ChartsToolbarZoomOutTrigger.mjs +51 -0
  75. package/ChartsToolbarPro/Toolbar.types.d.mts +15 -0
  76. package/ChartsToolbarPro/index.d.mts +5 -0
  77. package/ChartsToolbarPro/index.mjs +5 -0
  78. package/ChartsToolbarPro/internals/ChartsMenu.d.mts +14 -0
  79. package/ChartsToolbarPro/internals/ChartsToolbarDivider.d.mts +5 -0
  80. package/ChartsZoomSlider/ChartsZoomSlider.d.mts +4 -0
  81. package/ChartsZoomSlider/ChartsZoomSlider.d.ts +4 -0
  82. package/ChartsZoomSlider/ChartsZoomSlider.js +47 -0
  83. package/ChartsZoomSlider/ChartsZoomSlider.mjs +41 -0
  84. package/ChartsZoomSlider/index.d.mts +3 -0
  85. package/ChartsZoomSlider/index.d.ts +3 -0
  86. package/ChartsZoomSlider/index.js +26 -0
  87. package/ChartsZoomSlider/index.mjs +3 -0
  88. package/ChartsZoomSlider/internals/ChartsAxisZoomSlider.d.mts +20 -0
  89. package/ChartsZoomSlider/internals/ChartsAxisZoomSlider.d.ts +20 -0
  90. package/ChartsZoomSlider/internals/ChartsAxisZoomSlider.js +111 -0
  91. package/ChartsZoomSlider/internals/ChartsAxisZoomSlider.mjs +105 -0
  92. package/ChartsZoomSlider/internals/ChartsAxisZoomSliderActiveTrack.d.mts +25 -0
  93. package/ChartsZoomSlider/internals/ChartsAxisZoomSliderActiveTrack.d.ts +25 -0
  94. package/ChartsZoomSlider/internals/ChartsAxisZoomSliderActiveTrack.js +303 -0
  95. package/ChartsZoomSlider/internals/ChartsAxisZoomSliderActiveTrack.mjs +296 -0
  96. package/ChartsZoomSlider/internals/ChartsAxisZoomSliderPreview.d.mts +17 -0
  97. package/ChartsZoomSlider/internals/ChartsAxisZoomSliderPreview.d.ts +17 -0
  98. package/ChartsZoomSlider/internals/ChartsAxisZoomSliderPreview.js +105 -0
  99. package/ChartsZoomSlider/internals/ChartsAxisZoomSliderPreview.mjs +97 -0
  100. package/ChartsZoomSlider/internals/ChartsAxisZoomSliderPreviewContent.d.mts +9 -0
  101. package/ChartsZoomSlider/internals/ChartsAxisZoomSliderPreviewContent.d.ts +9 -0
  102. package/ChartsZoomSlider/internals/ChartsAxisZoomSliderPreviewContent.js +46 -0
  103. package/ChartsZoomSlider/internals/ChartsAxisZoomSliderPreviewContent.mjs +38 -0
  104. package/ChartsZoomSlider/internals/ChartsAxisZoomSliderThumb.d.mts +12 -0
  105. package/ChartsZoomSlider/internals/ChartsAxisZoomSliderThumb.d.ts +12 -0
  106. package/ChartsZoomSlider/internals/ChartsAxisZoomSliderThumb.js +112 -0
  107. package/ChartsZoomSlider/internals/ChartsAxisZoomSliderThumb.mjs +105 -0
  108. package/ChartsZoomSlider/internals/ChartsAxisZoomSliderTrack.d.mts +18 -0
  109. package/ChartsZoomSlider/internals/ChartsAxisZoomSliderTrack.d.ts +18 -0
  110. package/ChartsZoomSlider/internals/ChartsAxisZoomSliderTrack.js +145 -0
  111. package/ChartsZoomSlider/internals/ChartsAxisZoomSliderTrack.mjs +138 -0
  112. package/ChartsZoomSlider/internals/chartsAxisZoomSliderThumbClasses.d.mts +17 -0
  113. package/ChartsZoomSlider/internals/chartsAxisZoomSliderThumbClasses.d.ts +17 -0
  114. package/ChartsZoomSlider/internals/chartsAxisZoomSliderThumbClasses.js +27 -0
  115. package/ChartsZoomSlider/internals/chartsAxisZoomSliderThumbClasses.mjs +17 -0
  116. package/ChartsZoomSlider/internals/chartsAxisZoomSliderTrackClasses.d.mts +15 -0
  117. package/ChartsZoomSlider/internals/chartsAxisZoomSliderTrackClasses.d.ts +15 -0
  118. package/ChartsZoomSlider/internals/chartsAxisZoomSliderTrackClasses.js +31 -0
  119. package/ChartsZoomSlider/internals/chartsAxisZoomSliderTrackClasses.mjs +21 -0
  120. package/ChartsZoomSlider/internals/previews/AreaPreviewPlot.d.mts +14 -0
  121. package/ChartsZoomSlider/internals/previews/BarPreviewPlot.d.mts +9 -0
  122. package/ChartsZoomSlider/internals/previews/LineAreaPreviewPlot.d.mts +4 -0
  123. package/ChartsZoomSlider/internals/previews/LineAreaPreviewPlot.mjs +15 -0
  124. package/ChartsZoomSlider/internals/previews/LinePreviewPlot.d.mts +14 -0
  125. package/ChartsZoomSlider/internals/previews/ScatterPreviewPlot.d.mts +15 -0
  126. package/ChartsZoomSlider/internals/seriesPreviewPlotMap.d.mts +3 -0
  127. package/ChartsZoomSlider/internals/seriesPreviewPlotMap.mjs +4 -0
  128. package/FunnelChart/FocusedFunnelSection.mjs +64 -0
  129. package/FunnelChart/FunnelChart.d.mts +39 -0
  130. package/FunnelChart/FunnelChart.d.ts +1 -1
  131. package/FunnelChart/FunnelChart.js +29 -13
  132. package/FunnelChart/FunnelChart.mjs +362 -0
  133. package/FunnelChart/FunnelChart.plugins.d.mts +5 -0
  134. package/FunnelChart/FunnelChart.plugins.d.ts +1 -1
  135. package/FunnelChart/FunnelChart.plugins.mjs +4 -0
  136. package/FunnelChart/FunnelPlot.d.mts +16 -0
  137. package/FunnelChart/FunnelPlot.mjs +182 -0
  138. package/FunnelChart/FunnelSection.d.mts +16 -0
  139. package/FunnelChart/FunnelSection.js +4 -6
  140. package/FunnelChart/FunnelSection.mjs +65 -0
  141. package/FunnelChart/FunnelSectionLabel.d.mts +21 -0
  142. package/FunnelChart/FunnelSectionLabel.mjs +46 -0
  143. package/FunnelChart/coordinateMapper.d.mts +3 -0
  144. package/FunnelChart/curves/borderRadiusPolygon.d.mts +8 -0
  145. package/FunnelChart/curves/bump.d.mts +31 -0
  146. package/FunnelChart/curves/getFunnelCurve.d.mts +8 -0
  147. package/FunnelChart/curves/getFunnelCurve.mjs +26 -0
  148. package/FunnelChart/curves/index.d.mts +2 -0
  149. package/FunnelChart/curves/index.mjs +2 -0
  150. package/FunnelChart/curves/linear.d.mts +40 -0
  151. package/FunnelChart/curves/linear.mjs +164 -0
  152. package/FunnelChart/curves/pyramid.d.mts +36 -0
  153. package/FunnelChart/curves/pyramid.mjs +146 -0
  154. package/FunnelChart/curves/step-pyramid.d.mts +39 -0
  155. package/FunnelChart/curves/step-pyramid.mjs +174 -0
  156. package/FunnelChart/curves/step.d.mts +36 -0
  157. package/FunnelChart/curves/step.mjs +85 -0
  158. package/FunnelChart/funnel.types.d.mts +158 -0
  159. package/FunnelChart/funnelAxisPlugin/computeAxisValue.js +2 -1
  160. package/FunnelChart/funnelAxisPlugin/computeAxisValue.mjs +113 -0
  161. package/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.d.mts +3 -0
  162. package/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.js +5 -5
  163. package/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.mjs +178 -0
  164. package/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.types.d.mts +28 -0
  165. package/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.types.d.ts +1 -1
  166. package/FunnelChart/funnelAxisPlugin/useChartFunnelAxisRendering.selectors.d.mts +18 -0
  167. package/FunnelChart/funnelAxisPlugin/useChartFunnelAxisRendering.selectors.mjs +21 -0
  168. package/FunnelChart/funnelPlotSlots.types.d.mts +31 -0
  169. package/FunnelChart/funnelSectionClasses.d.mts +30 -0
  170. package/FunnelChart/funnelSectionClasses.d.ts +8 -2
  171. package/FunnelChart/funnelSlots.types.d.mts +20 -0
  172. package/FunnelChart/funnelSlots.types.d.ts +3 -9
  173. package/FunnelChart/get2DExtrema.d.mts +3 -0
  174. package/FunnelChart/index.d.mts +18 -0
  175. package/FunnelChart/index.d.ts +1 -1
  176. package/FunnelChart/index.mjs +17 -0
  177. package/FunnelChart/labelUtils.d.mts +37 -0
  178. package/FunnelChart/seriesConfig/index.js +3 -1
  179. package/FunnelChart/seriesConfig/index.mjs +24 -0
  180. package/FunnelChart/seriesConfig/keyboardFocusHandler.js +1 -14
  181. package/FunnelChart/seriesConfig/keyboardFocusHandler.mjs +4 -0
  182. package/FunnelChart/seriesConfig/tooltipPosition.mjs +56 -0
  183. package/FunnelChart/useFunnelChartProps.d.mts +26 -0
  184. package/FunnelChart/useFunnelChartProps.js +1 -1
  185. package/FunnelChart/useFunnelChartProps.mjs +154 -0
  186. package/Heatmap/FocusedHeatmapCell.mjs +29 -0
  187. package/Heatmap/Heatmap.d.mts +88 -0
  188. package/Heatmap/Heatmap.d.ts +1 -1
  189. package/Heatmap/Heatmap.js +45 -15
  190. package/Heatmap/Heatmap.mjs +496 -0
  191. package/Heatmap/Heatmap.plugins.d.mts +5 -0
  192. package/Heatmap/Heatmap.plugins.d.ts +1 -1
  193. package/Heatmap/Heatmap.plugins.mjs +4 -0
  194. package/Heatmap/Heatmap.types.d.mts +19 -0
  195. package/Heatmap/HeatmapItem.d.mts +56 -0
  196. package/Heatmap/HeatmapItem.js +3 -1
  197. package/Heatmap/HeatmapItem.mjs +104 -0
  198. package/Heatmap/HeatmapPlot.d.mts +11 -0
  199. package/Heatmap/HeatmapPlot.mjs +39 -0
  200. package/Heatmap/HeatmapSVGPlot.d.mts +2 -0
  201. package/Heatmap/HeatmapSVGPlot.js +3 -1
  202. package/Heatmap/HeatmapSVGPlot.mjs +66 -0
  203. package/Heatmap/HeatmapTooltip/HeatmapTooltip.classes.d.mts +2 -0
  204. package/Heatmap/HeatmapTooltip/HeatmapTooltip.d.mts +6 -0
  205. package/Heatmap/HeatmapTooltip/HeatmapTooltip.js +3 -2
  206. package/Heatmap/HeatmapTooltip/HeatmapTooltip.mjs +195 -0
  207. package/Heatmap/HeatmapTooltip/HeatmapTooltip.types.d.mts +26 -0
  208. package/Heatmap/HeatmapTooltip/HeatmapTooltip.types.d.ts +16 -4
  209. package/Heatmap/HeatmapTooltip/HeatmapTooltipContent.d.mts +6 -0
  210. package/Heatmap/HeatmapTooltip/HeatmapTooltipContent.mjs +88 -0
  211. package/Heatmap/HeatmapTooltip/index.d.mts +3 -0
  212. package/Heatmap/HeatmapTooltip/index.mjs +3 -0
  213. package/Heatmap/heatmapClasses.d.mts +22 -0
  214. package/Heatmap/heatmapClasses.d.ts +8 -2
  215. package/Heatmap/index.d.mts +9 -0
  216. package/Heatmap/index.mjs +6 -0
  217. package/Heatmap/internals/HeatmapCell.d.mts +21 -0
  218. package/Heatmap/seriesConfig/getItemAtPosition.d.mts +6 -0
  219. package/Heatmap/seriesConfig/getItemAtPosition.d.ts +2 -2
  220. package/Heatmap/seriesConfig/highlight.d.mts +10 -0
  221. package/Heatmap/seriesConfig/highlight.d.ts +10 -0
  222. package/Heatmap/seriesConfig/highlight.js +52 -0
  223. package/Heatmap/seriesConfig/highlight.mjs +45 -0
  224. package/Heatmap/seriesConfig/index.js +4 -1
  225. package/Heatmap/seriesConfig/index.mjs +27 -0
  226. package/Heatmap/shouldRegisterPointerInteractionsGlobally.d.mts +2 -0
  227. package/Heatmap/shouldRegisterPointerInteractionsGlobally.mjs +13 -0
  228. package/Heatmap/useHeatmapProps.d.mts +24 -0
  229. package/Heatmap/useHeatmapProps.mjs +151 -0
  230. package/LineChartPro/LineChartPro.d.mts +32 -0
  231. package/LineChartPro/LineChartPro.d.ts +1 -1
  232. package/LineChartPro/LineChartPro.js +47 -15
  233. package/LineChartPro/LineChartPro.mjs +1627 -0
  234. package/LineChartPro/LineChartPro.plugins.d.mts +5 -0
  235. package/LineChartPro/LineChartPro.plugins.d.ts +1 -1
  236. package/LineChartPro/LineChartPro.plugins.mjs +4 -0
  237. package/LineChartPro/index.d.mts +2 -0
  238. package/LineChartPro/index.mjs +2 -0
  239. package/PieChartPro/PieChartPro.d.mts +22 -0
  240. package/PieChartPro/PieChartPro.d.ts +1 -1
  241. package/PieChartPro/PieChartPro.js +29 -13
  242. package/PieChartPro/PieChartPro.mjs +287 -0
  243. package/PieChartPro/PieChartPro.plugins.d.mts +4 -0
  244. package/PieChartPro/PieChartPro.plugins.d.ts +1 -1
  245. package/PieChartPro/PieChartPro.plugins.mjs +3 -0
  246. package/PieChartPro/index.d.mts +2 -0
  247. package/PieChartPro/index.mjs +2 -0
  248. package/RadarChartPro/RadarChartPro.d.mts +30 -0
  249. package/RadarChartPro/RadarChartPro.d.ts +1 -1
  250. package/RadarChartPro/RadarChartPro.js +28 -13
  251. package/RadarChartPro/RadarChartPro.mjs +304 -0
  252. package/RadarChartPro/RadarChartPro.plugins.d.mts +4 -0
  253. package/RadarChartPro/RadarChartPro.plugins.d.ts +1 -1
  254. package/RadarChartPro/RadarChartPro.plugins.mjs +3 -0
  255. package/RadarChartPro/index.d.mts +2 -0
  256. package/RadarChartPro/index.mjs +2 -0
  257. package/SankeyChart/FocusedSankeyLink.mjs +27 -0
  258. package/SankeyChart/FocusedSankeyNode.mjs +33 -0
  259. package/SankeyChart/SankeyChart.d.mts +32 -0
  260. package/SankeyChart/SankeyChart.d.ts +1 -1
  261. package/SankeyChart/SankeyChart.js +37 -2
  262. package/SankeyChart/SankeyChart.mjs +257 -0
  263. package/SankeyChart/SankeyChart.plugins.d.mts +4 -0
  264. package/SankeyChart/SankeyChart.plugins.d.ts +2 -3
  265. package/SankeyChart/SankeyChart.plugins.js +1 -2
  266. package/SankeyChart/SankeyChart.plugins.mjs +3 -0
  267. package/SankeyChart/SankeyDataProvider.d.mts +19 -0
  268. package/SankeyChart/SankeyDataProvider.mjs +27 -0
  269. package/SankeyChart/SankeyLinkElement.d.mts +27 -0
  270. package/SankeyChart/SankeyLinkElement.js +2 -4
  271. package/SankeyChart/SankeyLinkElement.mjs +57 -0
  272. package/SankeyChart/SankeyLinkLabel.d.mts +12 -0
  273. package/SankeyChart/SankeyLinkLabel.mjs +62 -0
  274. package/SankeyChart/SankeyLinkLabelPlot.d.mts +9 -0
  275. package/SankeyChart/SankeyLinkLabelPlot.js +3 -1
  276. package/SankeyChart/SankeyLinkLabelPlot.mjs +35 -0
  277. package/SankeyChart/SankeyLinkPlot.d.mts +17 -0
  278. package/SankeyChart/SankeyLinkPlot.js +3 -1
  279. package/SankeyChart/SankeyLinkPlot.mjs +50 -0
  280. package/SankeyChart/SankeyNodeElement.d.mts +23 -0
  281. package/SankeyChart/SankeyNodeElement.js +2 -4
  282. package/SankeyChart/SankeyNodeElement.mjs +63 -0
  283. package/SankeyChart/SankeyNodeLabel.d.mts +17 -0
  284. package/SankeyChart/SankeyNodeLabel.d.ts +5 -0
  285. package/SankeyChart/SankeyNodeLabel.js +8 -2
  286. package/SankeyChart/SankeyNodeLabel.mjs +58 -0
  287. package/SankeyChart/SankeyNodeLabelPlot.d.mts +9 -0
  288. package/SankeyChart/SankeyNodeLabelPlot.js +4 -1
  289. package/SankeyChart/SankeyNodeLabelPlot.mjs +37 -0
  290. package/SankeyChart/SankeyNodePlot.d.mts +17 -0
  291. package/SankeyChart/SankeyNodePlot.js +3 -1
  292. package/SankeyChart/SankeyNodePlot.mjs +49 -0
  293. package/SankeyChart/SankeyPlot.d.mts +29 -0
  294. package/SankeyChart/SankeyPlot.js +3 -2
  295. package/SankeyChart/SankeyPlot.mjs +83 -0
  296. package/SankeyChart/SankeyTooltip/SankeyTooltip.classes.d.mts +2 -0
  297. package/SankeyChart/SankeyTooltip/SankeyTooltip.d.mts +6 -0
  298. package/SankeyChart/SankeyTooltip/SankeyTooltip.js +6 -5
  299. package/SankeyChart/SankeyTooltip/SankeyTooltip.mjs +211 -0
  300. package/SankeyChart/SankeyTooltip/SankeyTooltipContent.d.mts +6 -0
  301. package/SankeyChart/SankeyTooltip/SankeyTooltipContent.mjs +58 -0
  302. package/SankeyChart/SankeyTooltip/index.d.mts +3 -0
  303. package/SankeyChart/SankeyTooltip/index.mjs +3 -0
  304. package/SankeyChart/calculateSankeyLayout.d.mts +12 -0
  305. package/SankeyChart/calculateSankeyLayout.js +2 -1
  306. package/SankeyChart/calculateSankeyLayout.mjs +131 -0
  307. package/SankeyChart/d3Sankey/align.d.mts +33 -0
  308. package/SankeyChart/d3Sankey/index.d.mts +4 -0
  309. package/SankeyChart/d3Sankey/index.mjs +4 -0
  310. package/SankeyChart/d3Sankey/sankey.d.mts +42 -0
  311. package/SankeyChart/d3Sankey/sankey.js +5 -3
  312. package/SankeyChart/d3Sankey/sankey.mjs +453 -0
  313. package/SankeyChart/d3Sankey/sankeyLinkHorizontal.d.mts +22 -0
  314. package/SankeyChart/index.d.mts +21 -0
  315. package/SankeyChart/index.d.ts +5 -1
  316. package/SankeyChart/index.js +14 -7
  317. package/SankeyChart/index.mjs +21 -0
  318. package/SankeyChart/sankey.types.d.mts +300 -0
  319. package/SankeyChart/sankeyHighlightHooks.d.mts +3 -0
  320. package/SankeyChart/sankeyHighlightHooks.d.ts +3 -3
  321. package/SankeyChart/sankeyHighlightHooks.js +6 -7
  322. package/SankeyChart/sankeyHighlightHooks.mjs +17 -0
  323. package/SankeyChart/sankeySlots.types.d.mts +18 -0
  324. package/SankeyChart/sankeySlots.types.d.ts +3 -9
  325. package/SankeyChart/seriesConfig/createIsFaded.d.mts +3 -0
  326. package/SankeyChart/seriesConfig/createIsFaded.d.ts +3 -0
  327. package/SankeyChart/seriesConfig/createIsFaded.js +29 -0
  328. package/SankeyChart/seriesConfig/createIsFaded.mjs +23 -0
  329. package/SankeyChart/seriesConfig/createIsHighlighted.d.mts +4 -0
  330. package/SankeyChart/seriesConfig/createIsHighlighted.d.ts +4 -0
  331. package/SankeyChart/seriesConfig/createIsHighlighted.js +89 -0
  332. package/SankeyChart/seriesConfig/createIsHighlighted.mjs +83 -0
  333. package/SankeyChart/seriesConfig/getSeriesWithDefaultValues.js +2 -1
  334. package/SankeyChart/seriesConfig/getSeriesWithDefaultValues.mjs +111 -0
  335. package/SankeyChart/seriesConfig/index.js +5 -1
  336. package/SankeyChart/seriesConfig/index.mjs +38 -0
  337. package/SankeyChart/useSankeyChartProps.d.mts +22 -0
  338. package/SankeyChart/useSankeyChartProps.js +2 -2
  339. package/SankeyChart/useSankeyChartProps.mjs +71 -0
  340. package/SankeyChart/utils.d.mts +3 -0
  341. package/SankeyChart/utils.mjs +14 -0
  342. package/ScatterChartPro/ScatterChartPro.d.mts +39 -0
  343. package/ScatterChartPro/ScatterChartPro.d.ts +1 -1
  344. package/ScatterChartPro/ScatterChartPro.js +47 -15
  345. package/ScatterChartPro/ScatterChartPro.mjs +1609 -0
  346. package/ScatterChartPro/ScatterChartPro.plugins.d.mts +5 -0
  347. package/ScatterChartPro/ScatterChartPro.plugins.d.ts +1 -1
  348. package/ScatterChartPro/ScatterChartPro.plugins.mjs +4 -0
  349. package/ScatterChartPro/index.d.mts +2 -0
  350. package/ScatterChartPro/index.mjs +2 -0
  351. package/context/ChartProApi.d.mts +29 -0
  352. package/context/index.d.mts +3 -0
  353. package/context/index.mjs +5 -0
  354. package/context/useChartProApiContext.d.mts +9 -0
  355. package/hooks/index.d.mts +5 -0
  356. package/hooks/index.mjs +7 -0
  357. package/hooks/useChartProApiRef.d.mts +23 -0
  358. package/hooks/useSankeySeries.d.mts +40 -0
  359. package/hooks/zoom/index.d.mts +1 -0
  360. package/hooks/zoom/index.mjs +1 -0
  361. package/hooks/zoom/useIsZoomInteracting.mjs +14 -0
  362. package/index.d.mts +49 -0
  363. package/index.d.ts +3 -0
  364. package/index.js +37 -1
  365. package/index.mjs +61 -0
  366. package/internals/ChartsWatermark.d.mts +6 -0
  367. package/internals/ChartsWatermark.d.ts +6 -0
  368. package/internals/ChartsWatermark.js +27 -0
  369. package/internals/ChartsWatermark.mjs +21 -0
  370. package/internals/index.d.mts +14 -0
  371. package/internals/index.d.ts +5 -4
  372. package/internals/index.js +16 -4
  373. package/internals/index.mjs +9 -0
  374. package/internals/material/components/BaseMenuItem.d.mts +2 -0
  375. package/internals/material/components/BasePopper.d.mts +2 -0
  376. package/internals/material/index.d.mts +6 -0
  377. package/internals/material/index.mjs +21 -0
  378. package/internals/plugins/allPlugins.d.mts +9 -0
  379. package/internals/plugins/allPlugins.d.ts +4 -4
  380. package/internals/plugins/allPlugins.mjs +7 -0
  381. package/internals/plugins/useChartProExport/exportImage.d.mts +3 -0
  382. package/internals/plugins/useChartProExport/exportImage.d.ts +1 -1
  383. package/internals/plugins/useChartProExport/exportImage.js +5 -4
  384. package/internals/plugins/useChartProExport/exportImage.mjs +110 -0
  385. package/internals/plugins/useChartProExport/index.d.mts +2 -0
  386. package/internals/plugins/useChartProExport/index.mjs +2 -0
  387. package/internals/plugins/useChartProExport/print.d.mts +7 -0
  388. package/internals/plugins/useChartProExport/print.mjs +35 -0
  389. package/internals/plugins/useChartProExport/useChartProExport.d.mts +3 -0
  390. package/internals/plugins/useChartProExport/useChartProExport.js +2 -2
  391. package/internals/plugins/useChartProExport/useChartProExport.mjs +69 -0
  392. package/internals/plugins/useChartProZoom/ZoomInteractionConfig.selectors.d.mts +25 -0
  393. package/internals/plugins/useChartProZoom/ZoomInteractionConfig.selectors.mjs +6 -0
  394. package/internals/plugins/useChartProZoom/gestureHooks/usePanOnDrag.d.mts +7 -0
  395. package/internals/plugins/useChartProZoom/gestureHooks/usePanOnDrag.js +3 -3
  396. package/internals/plugins/useChartProZoom/gestureHooks/usePanOnDrag.mjs +83 -0
  397. package/internals/plugins/useChartProZoom/gestureHooks/usePanOnPressAndDrag.d.mts +7 -0
  398. package/internals/plugins/useChartProZoom/gestureHooks/usePanOnPressAndDrag.js +3 -3
  399. package/internals/plugins/useChartProZoom/gestureHooks/usePanOnPressAndDrag.mjs +87 -0
  400. package/internals/plugins/useChartProZoom/gestureHooks/usePanOnWheel.d.mts +7 -0
  401. package/internals/plugins/useChartProZoom/gestureHooks/usePanOnWheel.js +3 -3
  402. package/internals/plugins/useChartProZoom/gestureHooks/usePanOnWheel.mjs +100 -0
  403. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.d.mts +7 -0
  404. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.js +3 -3
  405. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.mjs +102 -0
  406. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnDoubleTapReset.d.mts +7 -0
  407. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnDoubleTapReset.js +3 -3
  408. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnDoubleTapReset.mjs +59 -0
  409. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnPinch.d.mts +7 -0
  410. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnPinch.js +3 -3
  411. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnPinch.mjs +70 -0
  412. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnTapAndDrag.d.mts +7 -0
  413. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnTapAndDrag.js +3 -3
  414. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnTapAndDrag.mjs +75 -0
  415. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnWheel.d.mts +7 -0
  416. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnWheel.js +3 -3
  417. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnWheel.mjs +91 -0
  418. package/internals/plugins/useChartProZoom/index.d.mts +3 -0
  419. package/internals/plugins/useChartProZoom/index.mjs +3 -0
  420. package/internals/plugins/useChartProZoom/initializeZoomInteractionConfig.d.mts +3 -0
  421. package/internals/plugins/useChartProZoom/useChartProZoom.d.mts +3 -0
  422. package/internals/plugins/useChartProZoom/useChartProZoom.mjs +176 -0
  423. package/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.mts +18 -0
  424. package/internals/plugins/useChartProZoom/useChartProZoom.types.d.mts +84 -0
  425. package/internals/slots/chartsBaseSlots.d.mts +10 -0
  426. package/models/index.d.mts +4 -0
  427. package/models/index.mjs +6 -0
  428. package/models/seriesType/index.d.mts +1 -0
  429. package/models/seriesType/index.mjs +1 -0
  430. package/package.json +794 -17
  431. package/plugins/index.d.mts +3 -0
  432. package/plugins/index.mjs +3 -0
  433. package/plugins/selectors/useChartHeatmapPosition.selectors.d.mts +4 -0
  434. package/themeAugmentation/index.d.mts +4 -0
  435. package/themeAugmentation/overrides.d.mts +8 -0
  436. package/themeAugmentation/props.d.mts +14 -0
  437. package/typeOverloads/index.d.mts +1 -0
  438. package/typeOverloads/index.mjs +1 -0
  439. package/typeOverloads/modules.d.mts +65 -0
  440. package/typeOverloads/modules.d.ts +13 -1
  441. package/ChartZoomSlider/ChartZoomSlider.d.ts +0 -4
  442. package/ChartZoomSlider/ChartZoomSlider.js +0 -47
  443. package/ChartZoomSlider/internals/ChartAxisZoomSlider.d.ts +0 -20
  444. package/ChartZoomSlider/internals/ChartAxisZoomSlider.js +0 -111
  445. package/ChartZoomSlider/internals/ChartAxisZoomSliderActiveTrack.d.ts +0 -25
  446. package/ChartZoomSlider/internals/ChartAxisZoomSliderActiveTrack.js +0 -303
  447. package/ChartZoomSlider/internals/ChartAxisZoomSliderPreview.d.ts +0 -17
  448. package/ChartZoomSlider/internals/ChartAxisZoomSliderPreview.js +0 -105
  449. package/ChartZoomSlider/internals/ChartAxisZoomSliderPreviewContent.d.ts +0 -9
  450. package/ChartZoomSlider/internals/ChartAxisZoomSliderPreviewContent.js +0 -46
  451. package/ChartZoomSlider/internals/ChartAxisZoomSliderThumb.d.ts +0 -12
  452. package/ChartZoomSlider/internals/ChartAxisZoomSliderThumb.js +0 -112
  453. package/ChartZoomSlider/internals/ChartAxisZoomSliderTrack.d.ts +0 -18
  454. package/ChartZoomSlider/internals/ChartAxisZoomSliderTrack.js +0 -145
  455. package/ChartZoomSlider/internals/chartAxisZoomSliderThumbClasses.d.ts +0 -17
  456. package/ChartZoomSlider/internals/chartAxisZoomSliderThumbClasses.js +0 -27
  457. package/ChartZoomSlider/internals/chartAxisZoomSliderTrackClasses.d.ts +0 -15
  458. package/ChartZoomSlider/internals/chartAxisZoomSliderTrackClasses.js +0 -31
  459. package/SankeyChart/plugins/index.d.ts +0 -3
  460. package/SankeyChart/plugins/index.js +0 -49
  461. package/SankeyChart/plugins/useSankeyHighlight.d.ts +0 -7
  462. package/SankeyChart/plugins/useSankeyHighlight.js +0 -72
  463. package/SankeyChart/plugins/useSankeyHighlight.selectors.d.ts +0 -64
  464. package/SankeyChart/plugins/useSankeyHighlight.selectors.js +0 -126
  465. package/SankeyChart/plugins/useSankeyHighlight.types.d.ts +0 -55
  466. package/SankeyChart/plugins/useSankeyHighlight.types.js +0 -5
  467. package/esm/BarChartPro/BarChartPro.d.ts +0 -33
  468. package/esm/BarChartPro/BarChartPro.js +0 -1602
  469. package/esm/BarChartPro/BarChartPro.plugins.d.ts +0 -5
  470. package/esm/BarChartPro/BarChartPro.plugins.js +0 -4
  471. package/esm/BarChartPro/index.d.ts +0 -2
  472. package/esm/BarChartPro/index.js +0 -2
  473. package/esm/ChartContainerPro/ChartContainerPro.d.ts +0 -21
  474. package/esm/ChartContainerPro/ChartContainerPro.js +0 -20
  475. package/esm/ChartContainerPro/index.d.ts +0 -9
  476. package/esm/ChartContainerPro/index.js +0 -6
  477. package/esm/ChartContainerPro/useChartContainerProProps.d.ts +0 -13
  478. package/esm/ChartContainerPro/useChartContainerProProps.js +0 -14
  479. package/esm/ChartDataProviderPro/ChartDataProviderPro.d.ts +0 -49
  480. package/esm/ChartDataProviderPro/ChartDataProviderPro.js +0 -144
  481. package/esm/ChartDataProviderPro/index.d.ts +0 -2
  482. package/esm/ChartDataProviderPro/index.js +0 -2
  483. package/esm/ChartDataProviderPro/useChartDataProviderProProps.d.ts +0 -10
  484. package/esm/ChartDataProviderPro/useChartDataProviderProProps.js +0 -19
  485. package/esm/ChartZoomSlider/ChartZoomSlider.d.ts +0 -4
  486. package/esm/ChartZoomSlider/ChartZoomSlider.js +0 -41
  487. package/esm/ChartZoomSlider/index.d.ts +0 -3
  488. package/esm/ChartZoomSlider/index.js +0 -3
  489. package/esm/ChartZoomSlider/internals/ChartAxisZoomSlider.d.ts +0 -20
  490. package/esm/ChartZoomSlider/internals/ChartAxisZoomSlider.js +0 -105
  491. package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderActiveTrack.d.ts +0 -25
  492. package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderActiveTrack.js +0 -296
  493. package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderPreview.d.ts +0 -17
  494. package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderPreview.js +0 -97
  495. package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderPreviewContent.d.ts +0 -9
  496. package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderPreviewContent.js +0 -38
  497. package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderThumb.d.ts +0 -12
  498. package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderThumb.js +0 -105
  499. package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderTrack.d.ts +0 -18
  500. package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderTrack.js +0 -138
  501. package/esm/ChartZoomSlider/internals/chartAxisZoomSliderThumbClasses.d.ts +0 -17
  502. package/esm/ChartZoomSlider/internals/chartAxisZoomSliderThumbClasses.js +0 -17
  503. package/esm/ChartZoomSlider/internals/chartAxisZoomSliderTrackClasses.d.ts +0 -15
  504. package/esm/ChartZoomSlider/internals/chartAxisZoomSliderTrackClasses.js +0 -21
  505. package/esm/ChartZoomSlider/internals/previews/AreaPreviewPlot.d.ts +0 -14
  506. package/esm/ChartZoomSlider/internals/previews/BarPreviewPlot.d.ts +0 -9
  507. package/esm/ChartZoomSlider/internals/previews/LineAreaPreviewPlot.d.ts +0 -4
  508. package/esm/ChartZoomSlider/internals/previews/LineAreaPreviewPlot.js +0 -15
  509. package/esm/ChartZoomSlider/internals/previews/LinePreviewPlot.d.ts +0 -14
  510. package/esm/ChartZoomSlider/internals/previews/ScatterPreviewPlot.d.ts +0 -15
  511. package/esm/ChartZoomSlider/internals/seriesPreviewPlotMap.d.ts +0 -3
  512. package/esm/ChartZoomSlider/internals/seriesPreviewPlotMap.js +0 -4
  513. package/esm/ChartsContainerPro/ChartsContainerPro.d.ts +0 -37
  514. package/esm/ChartsContainerPro/ChartsContainerPro.js +0 -181
  515. package/esm/ChartsContainerPro/index.d.ts +0 -9
  516. package/esm/ChartsContainerPro/index.js +0 -6
  517. package/esm/ChartsContainerPro/useChartsContainerProProps.d.ts +0 -9
  518. package/esm/ChartsContainerPro/useChartsContainerProProps.js +0 -37
  519. package/esm/ChartsToolbarPro/ChartsToolbarImageExportTrigger.d.ts +0 -27
  520. package/esm/ChartsToolbarPro/ChartsToolbarImageExportTrigger.js +0 -73
  521. package/esm/ChartsToolbarPro/ChartsToolbarPrintExportTrigger.d.ts +0 -33
  522. package/esm/ChartsToolbarPro/ChartsToolbarPrintExportTrigger.js +0 -71
  523. package/esm/ChartsToolbarPro/ChartsToolbarPro.d.ts +0 -19
  524. package/esm/ChartsToolbarPro/ChartsToolbarPro.js +0 -166
  525. package/esm/ChartsToolbarPro/ChartsToolbarZoomInTrigger.js +0 -51
  526. package/esm/ChartsToolbarPro/ChartsToolbarZoomOutTrigger.js +0 -51
  527. package/esm/ChartsToolbarPro/Toolbar.types.d.ts +0 -15
  528. package/esm/ChartsToolbarPro/index.d.ts +0 -5
  529. package/esm/ChartsToolbarPro/index.js +0 -5
  530. package/esm/ChartsToolbarPro/internals/ChartsMenu.d.ts +0 -14
  531. package/esm/ChartsToolbarPro/internals/ChartsToolbarDivider.d.ts +0 -5
  532. package/esm/FunnelChart/FocusedFunnelSection.js +0 -64
  533. package/esm/FunnelChart/FunnelChart.d.ts +0 -39
  534. package/esm/FunnelChart/FunnelChart.js +0 -346
  535. package/esm/FunnelChart/FunnelChart.plugins.d.ts +0 -5
  536. package/esm/FunnelChart/FunnelChart.plugins.js +0 -4
  537. package/esm/FunnelChart/FunnelPlot.d.ts +0 -16
  538. package/esm/FunnelChart/FunnelPlot.js +0 -182
  539. package/esm/FunnelChart/FunnelSection.d.ts +0 -16
  540. package/esm/FunnelChart/FunnelSection.js +0 -67
  541. package/esm/FunnelChart/FunnelSectionLabel.d.ts +0 -21
  542. package/esm/FunnelChart/FunnelSectionLabel.js +0 -46
  543. package/esm/FunnelChart/coordinateMapper.d.ts +0 -3
  544. package/esm/FunnelChart/curves/borderRadiusPolygon.d.ts +0 -8
  545. package/esm/FunnelChart/curves/bump.d.ts +0 -31
  546. package/esm/FunnelChart/curves/getFunnelCurve.d.ts +0 -8
  547. package/esm/FunnelChart/curves/getFunnelCurve.js +0 -26
  548. package/esm/FunnelChart/curves/index.d.ts +0 -2
  549. package/esm/FunnelChart/curves/index.js +0 -2
  550. package/esm/FunnelChart/curves/linear.d.ts +0 -40
  551. package/esm/FunnelChart/curves/linear.js +0 -164
  552. package/esm/FunnelChart/curves/pyramid.d.ts +0 -36
  553. package/esm/FunnelChart/curves/pyramid.js +0 -146
  554. package/esm/FunnelChart/curves/step-pyramid.d.ts +0 -39
  555. package/esm/FunnelChart/curves/step-pyramid.js +0 -174
  556. package/esm/FunnelChart/curves/step.d.ts +0 -36
  557. package/esm/FunnelChart/curves/step.js +0 -85
  558. package/esm/FunnelChart/funnel.types.d.ts +0 -158
  559. package/esm/FunnelChart/funnelAxisPlugin/computeAxisValue.js +0 -112
  560. package/esm/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.d.ts +0 -3
  561. package/esm/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.js +0 -178
  562. package/esm/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.types.d.ts +0 -28
  563. package/esm/FunnelChart/funnelAxisPlugin/useChartFunnelAxisRendering.selectors.d.ts +0 -18
  564. package/esm/FunnelChart/funnelAxisPlugin/useChartFunnelAxisRendering.selectors.js +0 -21
  565. package/esm/FunnelChart/funnelPlotSlots.types.d.ts +0 -31
  566. package/esm/FunnelChart/funnelSectionClasses.d.ts +0 -24
  567. package/esm/FunnelChart/funnelSlots.types.d.ts +0 -26
  568. package/esm/FunnelChart/get2DExtrema.d.ts +0 -3
  569. package/esm/FunnelChart/index.d.ts +0 -18
  570. package/esm/FunnelChart/index.js +0 -17
  571. package/esm/FunnelChart/labelUtils.d.ts +0 -37
  572. package/esm/FunnelChart/seriesConfig/index.js +0 -22
  573. package/esm/FunnelChart/seriesConfig/keyboardFocusHandler.js +0 -17
  574. package/esm/FunnelChart/seriesConfig/tooltipPosition.js +0 -56
  575. package/esm/FunnelChart/useFunnelChartProps.d.ts +0 -26
  576. package/esm/FunnelChart/useFunnelChartProps.js +0 -154
  577. package/esm/Heatmap/FocusedHeatmapCell.js +0 -29
  578. package/esm/Heatmap/Heatmap.d.ts +0 -88
  579. package/esm/Heatmap/Heatmap.js +0 -466
  580. package/esm/Heatmap/Heatmap.plugins.d.ts +0 -5
  581. package/esm/Heatmap/Heatmap.plugins.js +0 -4
  582. package/esm/Heatmap/Heatmap.types.d.ts +0 -19
  583. package/esm/Heatmap/HeatmapItem.d.ts +0 -56
  584. package/esm/Heatmap/HeatmapItem.js +0 -102
  585. package/esm/Heatmap/HeatmapPlot.d.ts +0 -11
  586. package/esm/Heatmap/HeatmapPlot.js +0 -39
  587. package/esm/Heatmap/HeatmapSVGPlot.d.ts +0 -2
  588. package/esm/Heatmap/HeatmapSVGPlot.js +0 -64
  589. package/esm/Heatmap/HeatmapTooltip/HeatmapTooltip.classes.d.ts +0 -2
  590. package/esm/Heatmap/HeatmapTooltip/HeatmapTooltip.d.ts +0 -6
  591. package/esm/Heatmap/HeatmapTooltip/HeatmapTooltip.js +0 -194
  592. package/esm/Heatmap/HeatmapTooltip/HeatmapTooltip.types.d.ts +0 -14
  593. package/esm/Heatmap/HeatmapTooltip/HeatmapTooltipContent.d.ts +0 -6
  594. package/esm/Heatmap/HeatmapTooltip/HeatmapTooltipContent.js +0 -88
  595. package/esm/Heatmap/HeatmapTooltip/index.d.ts +0 -3
  596. package/esm/Heatmap/HeatmapTooltip/index.js +0 -3
  597. package/esm/Heatmap/heatmapClasses.d.ts +0 -16
  598. package/esm/Heatmap/index.d.ts +0 -9
  599. package/esm/Heatmap/index.js +0 -6
  600. package/esm/Heatmap/internals/HeatmapCell.d.ts +0 -21
  601. package/esm/Heatmap/seriesConfig/getItemAtPosition.d.ts +0 -6
  602. package/esm/Heatmap/seriesConfig/index.js +0 -24
  603. package/esm/Heatmap/shouldRegisterPointerInteractionsGlobally.d.ts +0 -2
  604. package/esm/Heatmap/shouldRegisterPointerInteractionsGlobally.js +0 -13
  605. package/esm/Heatmap/useHeatmapProps.d.ts +0 -24
  606. package/esm/Heatmap/useHeatmapProps.js +0 -151
  607. package/esm/LineChartPro/LineChartPro.d.ts +0 -32
  608. package/esm/LineChartPro/LineChartPro.js +0 -1595
  609. package/esm/LineChartPro/LineChartPro.plugins.d.ts +0 -5
  610. package/esm/LineChartPro/LineChartPro.plugins.js +0 -4
  611. package/esm/LineChartPro/index.d.ts +0 -2
  612. package/esm/LineChartPro/index.js +0 -2
  613. package/esm/PieChartPro/PieChartPro.d.ts +0 -22
  614. package/esm/PieChartPro/PieChartPro.js +0 -271
  615. package/esm/PieChartPro/PieChartPro.plugins.d.ts +0 -4
  616. package/esm/PieChartPro/PieChartPro.plugins.js +0 -3
  617. package/esm/PieChartPro/index.d.ts +0 -2
  618. package/esm/PieChartPro/index.js +0 -2
  619. package/esm/RadarChartPro/RadarChartPro.d.ts +0 -30
  620. package/esm/RadarChartPro/RadarChartPro.js +0 -289
  621. package/esm/RadarChartPro/RadarChartPro.plugins.d.ts +0 -4
  622. package/esm/RadarChartPro/RadarChartPro.plugins.js +0 -3
  623. package/esm/RadarChartPro/index.d.ts +0 -2
  624. package/esm/RadarChartPro/index.js +0 -2
  625. package/esm/SankeyChart/FocusedSankeyLink.js +0 -27
  626. package/esm/SankeyChart/FocusedSankeyNode.js +0 -33
  627. package/esm/SankeyChart/SankeyChart.d.ts +0 -32
  628. package/esm/SankeyChart/SankeyChart.js +0 -222
  629. package/esm/SankeyChart/SankeyChart.plugins.d.ts +0 -5
  630. package/esm/SankeyChart/SankeyChart.plugins.js +0 -4
  631. package/esm/SankeyChart/SankeyDataProvider.d.ts +0 -19
  632. package/esm/SankeyChart/SankeyDataProvider.js +0 -27
  633. package/esm/SankeyChart/SankeyLinkElement.d.ts +0 -27
  634. package/esm/SankeyChart/SankeyLinkElement.js +0 -59
  635. package/esm/SankeyChart/SankeyLinkLabel.d.ts +0 -12
  636. package/esm/SankeyChart/SankeyLinkLabel.js +0 -62
  637. package/esm/SankeyChart/SankeyLinkLabelPlot.d.ts +0 -9
  638. package/esm/SankeyChart/SankeyLinkLabelPlot.js +0 -34
  639. package/esm/SankeyChart/SankeyLinkPlot.d.ts +0 -17
  640. package/esm/SankeyChart/SankeyLinkPlot.js +0 -49
  641. package/esm/SankeyChart/SankeyNodeElement.d.ts +0 -23
  642. package/esm/SankeyChart/SankeyNodeElement.js +0 -65
  643. package/esm/SankeyChart/SankeyNodeLabel.d.ts +0 -12
  644. package/esm/SankeyChart/SankeyNodeLabel.js +0 -52
  645. package/esm/SankeyChart/SankeyNodeLabelPlot.d.ts +0 -9
  646. package/esm/SankeyChart/SankeyNodeLabelPlot.js +0 -35
  647. package/esm/SankeyChart/SankeyNodePlot.d.ts +0 -17
  648. package/esm/SankeyChart/SankeyNodePlot.js +0 -48
  649. package/esm/SankeyChart/SankeyPlot.d.ts +0 -29
  650. package/esm/SankeyChart/SankeyPlot.js +0 -82
  651. package/esm/SankeyChart/SankeyTooltip/SankeyTooltip.classes.d.ts +0 -2
  652. package/esm/SankeyChart/SankeyTooltip/SankeyTooltip.d.ts +0 -6
  653. package/esm/SankeyChart/SankeyTooltip/SankeyTooltip.js +0 -210
  654. package/esm/SankeyChart/SankeyTooltip/SankeyTooltipContent.d.ts +0 -6
  655. package/esm/SankeyChart/SankeyTooltip/SankeyTooltipContent.js +0 -58
  656. package/esm/SankeyChart/SankeyTooltip/index.d.ts +0 -3
  657. package/esm/SankeyChart/SankeyTooltip/index.js +0 -3
  658. package/esm/SankeyChart/calculateSankeyLayout.d.ts +0 -12
  659. package/esm/SankeyChart/calculateSankeyLayout.js +0 -130
  660. package/esm/SankeyChart/d3Sankey/align.d.ts +0 -33
  661. package/esm/SankeyChart/d3Sankey/index.d.ts +0 -4
  662. package/esm/SankeyChart/d3Sankey/index.js +0 -4
  663. package/esm/SankeyChart/d3Sankey/sankey.d.ts +0 -42
  664. package/esm/SankeyChart/d3Sankey/sankey.js +0 -452
  665. package/esm/SankeyChart/d3Sankey/sankeyLinkHorizontal.d.ts +0 -22
  666. package/esm/SankeyChart/index.d.ts +0 -17
  667. package/esm/SankeyChart/index.js +0 -15
  668. package/esm/SankeyChart/plugins/index.d.ts +0 -3
  669. package/esm/SankeyChart/plugins/index.js +0 -3
  670. package/esm/SankeyChart/plugins/useSankeyHighlight.d.ts +0 -7
  671. package/esm/SankeyChart/plugins/useSankeyHighlight.js +0 -64
  672. package/esm/SankeyChart/plugins/useSankeyHighlight.selectors.d.ts +0 -64
  673. package/esm/SankeyChart/plugins/useSankeyHighlight.selectors.js +0 -120
  674. package/esm/SankeyChart/plugins/useSankeyHighlight.types.d.ts +0 -55
  675. package/esm/SankeyChart/sankey.types.d.ts +0 -300
  676. package/esm/SankeyChart/sankeyHighlightHooks.d.ts +0 -3
  677. package/esm/SankeyChart/sankeyHighlightHooks.js +0 -18
  678. package/esm/SankeyChart/sankeySlots.types.d.ts +0 -24
  679. package/esm/SankeyChart/seriesConfig/getSeriesWithDefaultValues.js +0 -110
  680. package/esm/SankeyChart/seriesConfig/index.js +0 -34
  681. package/esm/SankeyChart/useSankeyChartProps.d.ts +0 -22
  682. package/esm/SankeyChart/useSankeyChartProps.js +0 -71
  683. package/esm/SankeyChart/utils.d.ts +0 -3
  684. package/esm/SankeyChart/utils.js +0 -14
  685. package/esm/ScatterChartPro/ScatterChartPro.d.ts +0 -39
  686. package/esm/ScatterChartPro/ScatterChartPro.js +0 -1577
  687. package/esm/ScatterChartPro/ScatterChartPro.plugins.d.ts +0 -5
  688. package/esm/ScatterChartPro/ScatterChartPro.plugins.js +0 -4
  689. package/esm/ScatterChartPro/index.d.ts +0 -2
  690. package/esm/ScatterChartPro/index.js +0 -2
  691. package/esm/context/ChartProApi.d.ts +0 -29
  692. package/esm/context/index.d.ts +0 -3
  693. package/esm/context/index.js +0 -5
  694. package/esm/context/useChartProApiContext.d.ts +0 -9
  695. package/esm/hooks/index.d.ts +0 -5
  696. package/esm/hooks/index.js +0 -7
  697. package/esm/hooks/useChartProApiRef.d.ts +0 -23
  698. package/esm/hooks/useSankeySeries.d.ts +0 -40
  699. package/esm/hooks/zoom/index.d.ts +0 -1
  700. package/esm/hooks/zoom/index.js +0 -1
  701. package/esm/hooks/zoom/useIsZoomInteracting.js +0 -14
  702. package/esm/index.d.ts +0 -46
  703. package/esm/index.js +0 -58
  704. package/esm/internals/index.d.ts +0 -13
  705. package/esm/internals/index.js +0 -8
  706. package/esm/internals/material/components/BaseMenuItem.d.ts +0 -2
  707. package/esm/internals/material/components/BasePopper.d.ts +0 -2
  708. package/esm/internals/material/index.d.ts +0 -6
  709. package/esm/internals/material/index.js +0 -21
  710. package/esm/internals/plugins/allPlugins.d.ts +0 -9
  711. package/esm/internals/plugins/allPlugins.js +0 -7
  712. package/esm/internals/plugins/useChartProExport/exportImage.d.ts +0 -3
  713. package/esm/internals/plugins/useChartProExport/exportImage.js +0 -109
  714. package/esm/internals/plugins/useChartProExport/index.d.ts +0 -2
  715. package/esm/internals/plugins/useChartProExport/index.js +0 -2
  716. package/esm/internals/plugins/useChartProExport/print.d.ts +0 -7
  717. package/esm/internals/plugins/useChartProExport/print.js +0 -35
  718. package/esm/internals/plugins/useChartProExport/useChartProExport.d.ts +0 -3
  719. package/esm/internals/plugins/useChartProExport/useChartProExport.js +0 -69
  720. package/esm/internals/plugins/useChartProZoom/ZoomInteractionConfig.selectors.d.ts +0 -25
  721. package/esm/internals/plugins/useChartProZoom/ZoomInteractionConfig.selectors.js +0 -6
  722. package/esm/internals/plugins/useChartProZoom/gestureHooks/usePanOnDrag.d.ts +0 -7
  723. package/esm/internals/plugins/useChartProZoom/gestureHooks/usePanOnDrag.js +0 -83
  724. package/esm/internals/plugins/useChartProZoom/gestureHooks/usePanOnPressAndDrag.d.ts +0 -7
  725. package/esm/internals/plugins/useChartProZoom/gestureHooks/usePanOnPressAndDrag.js +0 -87
  726. package/esm/internals/plugins/useChartProZoom/gestureHooks/usePanOnWheel.d.ts +0 -7
  727. package/esm/internals/plugins/useChartProZoom/gestureHooks/usePanOnWheel.js +0 -100
  728. package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.d.ts +0 -7
  729. package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.js +0 -102
  730. package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnDoubleTapReset.d.ts +0 -7
  731. package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnDoubleTapReset.js +0 -59
  732. package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnPinch.d.ts +0 -7
  733. package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnPinch.js +0 -70
  734. package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnTapAndDrag.d.ts +0 -7
  735. package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnTapAndDrag.js +0 -75
  736. package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnWheel.d.ts +0 -7
  737. package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnWheel.js +0 -91
  738. package/esm/internals/plugins/useChartProZoom/index.d.ts +0 -3
  739. package/esm/internals/plugins/useChartProZoom/index.js +0 -3
  740. package/esm/internals/plugins/useChartProZoom/initializeZoomInteractionConfig.d.ts +0 -3
  741. package/esm/internals/plugins/useChartProZoom/useChartProZoom.d.ts +0 -3
  742. package/esm/internals/plugins/useChartProZoom/useChartProZoom.js +0 -176
  743. package/esm/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +0 -18
  744. package/esm/internals/plugins/useChartProZoom/useChartProZoom.types.d.ts +0 -84
  745. package/esm/internals/slots/chartsBaseSlots.d.ts +0 -10
  746. package/esm/models/index.d.ts +0 -4
  747. package/esm/models/index.js +0 -6
  748. package/esm/models/seriesType/index.d.ts +0 -1
  749. package/esm/models/seriesType/index.js +0 -1
  750. package/esm/package.json +0 -1
  751. package/esm/plugins/index.d.ts +0 -3
  752. package/esm/plugins/index.js +0 -3
  753. package/esm/plugins/selectors/useChartHeatmapPosition.selectors.d.ts +0 -4
  754. package/esm/themeAugmentation/index.d.ts +0 -4
  755. package/esm/themeAugmentation/overrides.d.ts +0 -8
  756. package/esm/themeAugmentation/props.d.ts +0 -14
  757. package/esm/typeOverloads/index.d.ts +0 -1
  758. package/esm/typeOverloads/index.js +0 -1
  759. package/esm/typeOverloads/modules.d.ts +0 -53
  760. package/esm/typeOverloads/modules.js +0 -1
  761. /package/{esm/BarChart/index.d.ts → BarChart/index.d.mts} +0 -0
  762. /package/{esm/BarChart/index.js → BarChart/index.mjs} +0 -0
  763. /package/{esm/ChartContainer/index.d.ts → ChartContainer/index.d.mts} +0 -0
  764. /package/{esm/ChartContainer/index.js → ChartContainer/index.mjs} +0 -0
  765. /package/{esm/ChartDataProvider/index.d.ts → ChartDataProvider/index.d.mts} +0 -0
  766. /package/{esm/ChartDataProvider/index.js → ChartDataProvider/index.mjs} +0 -0
  767. /package/{esm/ChartsAxis/index.d.ts → ChartsAxis/index.d.mts} +0 -0
  768. /package/{esm/ChartsAxis/index.js → ChartsAxis/index.mjs} +0 -0
  769. /package/{esm/ChartsAxisHighlight/index.d.ts → ChartsAxisHighlight/index.d.mts} +0 -0
  770. /package/{esm/ChartsAxisHighlight/index.js → ChartsAxisHighlight/index.mjs} +0 -0
  771. /package/{esm/ChartsBrushOverlay/index.d.ts → ChartsBrushOverlay/index.d.mts} +0 -0
  772. /package/{esm/ChartsBrushOverlay/index.js → ChartsBrushOverlay/index.mjs} +0 -0
  773. /package/{esm/ChartsClipPath/index.d.ts → ChartsClipPath/index.d.mts} +0 -0
  774. /package/{esm/ChartsClipPath/index.js → ChartsClipPath/index.mjs} +0 -0
  775. /package/{esm/ChartsContainer/index.d.ts → ChartsContainer/index.d.mts} +0 -0
  776. /package/{esm/ChartsContainer/index.js → ChartsContainer/index.mjs} +0 -0
  777. /package/{esm/ChartsGrid/index.d.ts → ChartsGrid/index.d.mts} +0 -0
  778. /package/{esm/ChartsGrid/index.js → ChartsGrid/index.mjs} +0 -0
  779. /package/{esm/ChartsLabel/index.d.ts → ChartsLabel/index.d.mts} +0 -0
  780. /package/{esm/ChartsLabel/index.js → ChartsLabel/index.mjs} +0 -0
  781. /package/{esm/ChartsLegend/index.d.ts → ChartsLegend/index.d.mts} +0 -0
  782. /package/{esm/ChartsLegend/index.js → ChartsLegend/index.mjs} +0 -0
  783. /package/{esm/ChartsLocalizationProvider/index.d.ts → ChartsLocalizationProvider/index.d.mts} +0 -0
  784. /package/{esm/ChartsLocalizationProvider/index.js → ChartsLocalizationProvider/index.mjs} +0 -0
  785. /package/{esm/ChartsOverlay/index.d.ts → ChartsOverlay/index.d.mts} +0 -0
  786. /package/{esm/ChartsOverlay/index.js → ChartsOverlay/index.mjs} +0 -0
  787. /package/{esm/ChartsReferenceLine/index.d.ts → ChartsReferenceLine/index.d.mts} +0 -0
  788. /package/{esm/ChartsReferenceLine/index.js → ChartsReferenceLine/index.mjs} +0 -0
  789. /package/{esm/ChartsSurface/index.d.ts → ChartsSurface/index.d.mts} +0 -0
  790. /package/{esm/ChartsSurface/index.js → ChartsSurface/index.mjs} +0 -0
  791. /package/{esm/ChartsText/index.d.ts → ChartsText/index.d.mts} +0 -0
  792. /package/{esm/ChartsText/index.js → ChartsText/index.mjs} +0 -0
  793. /package/{esm/ChartsToolbarPro/ChartsToolbarZoomInTrigger.d.ts → ChartsToolbarPro/ChartsToolbarZoomInTrigger.d.mts} +0 -0
  794. /package/{esm/ChartsToolbarPro/ChartsToolbarZoomOutTrigger.d.ts → ChartsToolbarPro/ChartsToolbarZoomOutTrigger.d.mts} +0 -0
  795. /package/{esm/ChartZoomSlider/internals/previews/PreviewPlot.types.js → ChartsToolbarPro/Toolbar.types.mjs} +0 -0
  796. /package/{esm/ChartsToolbarPro/internals/ChartsMenu.js → ChartsToolbarPro/internals/ChartsMenu.mjs} +0 -0
  797. /package/{esm/ChartsToolbarPro/internals/ChartsToolbarDivider.js → ChartsToolbarPro/internals/ChartsToolbarDivider.mjs} +0 -0
  798. /package/{esm/ChartsTooltip/index.d.ts → ChartsTooltip/index.d.mts} +0 -0
  799. /package/{esm/ChartsTooltip/index.js → ChartsTooltip/index.mjs} +0 -0
  800. /package/{esm/ChartsWrapper/index.d.ts → ChartsWrapper/index.d.mts} +0 -0
  801. /package/{esm/ChartsWrapper/index.js → ChartsWrapper/index.mjs} +0 -0
  802. /package/{esm/ChartsXAxis/index.d.ts → ChartsXAxis/index.d.mts} +0 -0
  803. /package/{esm/ChartsXAxis/index.js → ChartsXAxis/index.mjs} +0 -0
  804. /package/{esm/ChartsYAxis/index.d.ts → ChartsYAxis/index.d.mts} +0 -0
  805. /package/{esm/ChartsYAxis/index.js → ChartsYAxis/index.mjs} +0 -0
  806. /package/{ChartZoomSlider/internals/ChartsTooltipZoomSliderValue.d.ts → ChartsZoomSlider/internals/ChartsTooltipZoomSliderValue.d.mts} +0 -0
  807. /package/{esm/ChartZoomSlider → ChartsZoomSlider}/internals/ChartsTooltipZoomSliderValue.d.ts +0 -0
  808. /package/{ChartZoomSlider → ChartsZoomSlider}/internals/ChartsTooltipZoomSliderValue.js +0 -0
  809. /package/{esm/ChartZoomSlider/internals/ChartsTooltipZoomSliderValue.js → ChartsZoomSlider/internals/ChartsTooltipZoomSliderValue.mjs} +0 -0
  810. /package/{ChartZoomSlider/internals/constants.d.ts → ChartsZoomSlider/internals/constants.d.mts} +0 -0
  811. /package/{esm/ChartZoomSlider → ChartsZoomSlider}/internals/constants.d.ts +0 -0
  812. /package/{ChartZoomSlider → ChartsZoomSlider}/internals/constants.js +0 -0
  813. /package/{esm/ChartZoomSlider/internals/constants.js → ChartsZoomSlider/internals/constants.mjs} +0 -0
  814. /package/{ChartZoomSlider → ChartsZoomSlider}/internals/previews/AreaPreviewPlot.d.ts +0 -0
  815. /package/{ChartZoomSlider → ChartsZoomSlider}/internals/previews/AreaPreviewPlot.js +0 -0
  816. /package/{esm/ChartZoomSlider/internals/previews/AreaPreviewPlot.js → ChartsZoomSlider/internals/previews/AreaPreviewPlot.mjs} +0 -0
  817. /package/{ChartZoomSlider → ChartsZoomSlider}/internals/previews/BarPreviewPlot.d.ts +0 -0
  818. /package/{ChartZoomSlider → ChartsZoomSlider}/internals/previews/BarPreviewPlot.js +0 -0
  819. /package/{esm/ChartZoomSlider/internals/previews/BarPreviewPlot.js → ChartsZoomSlider/internals/previews/BarPreviewPlot.mjs} +0 -0
  820. /package/{ChartZoomSlider → ChartsZoomSlider}/internals/previews/LineAreaPreviewPlot.d.ts +0 -0
  821. /package/{ChartZoomSlider → ChartsZoomSlider}/internals/previews/LineAreaPreviewPlot.js +0 -0
  822. /package/{ChartZoomSlider → ChartsZoomSlider}/internals/previews/LinePreviewPlot.d.ts +0 -0
  823. /package/{ChartZoomSlider → ChartsZoomSlider}/internals/previews/LinePreviewPlot.js +0 -0
  824. /package/{esm/ChartZoomSlider/internals/previews/LinePreviewPlot.js → ChartsZoomSlider/internals/previews/LinePreviewPlot.mjs} +0 -0
  825. /package/{ChartZoomSlider/internals/previews/PreviewPlot.types.d.ts → ChartsZoomSlider/internals/previews/PreviewPlot.types.d.mts} +0 -0
  826. /package/{esm/ChartZoomSlider → ChartsZoomSlider}/internals/previews/PreviewPlot.types.d.ts +0 -0
  827. /package/{ChartZoomSlider → ChartsZoomSlider}/internals/previews/PreviewPlot.types.js +0 -0
  828. /package/{esm/ChartsToolbarPro/Toolbar.types.js → ChartsZoomSlider/internals/previews/PreviewPlot.types.mjs} +0 -0
  829. /package/{ChartZoomSlider → ChartsZoomSlider}/internals/previews/ScatterPreviewPlot.d.ts +0 -0
  830. /package/{ChartZoomSlider → ChartsZoomSlider}/internals/previews/ScatterPreviewPlot.js +0 -0
  831. /package/{esm/ChartZoomSlider/internals/previews/ScatterPreviewPlot.js → ChartsZoomSlider/internals/previews/ScatterPreviewPlot.mjs} +0 -0
  832. /package/{ChartZoomSlider → ChartsZoomSlider}/internals/seriesPreviewPlotMap.d.ts +0 -0
  833. /package/{ChartZoomSlider → ChartsZoomSlider}/internals/seriesPreviewPlotMap.js +0 -0
  834. /package/{ChartZoomSlider/internals/zoom-utils.d.ts → ChartsZoomSlider/internals/zoom-utils.d.mts} +0 -0
  835. /package/{esm/ChartZoomSlider → ChartsZoomSlider}/internals/zoom-utils.d.ts +0 -0
  836. /package/{ChartZoomSlider → ChartsZoomSlider}/internals/zoom-utils.js +0 -0
  837. /package/{esm/ChartZoomSlider/internals/zoom-utils.js → ChartsZoomSlider/internals/zoom-utils.mjs} +0 -0
  838. /package/{esm/FunnelChart/FocusedFunnelSection.d.ts → FunnelChart/FocusedFunnelSection.d.mts} +0 -0
  839. /package/{esm/FunnelChart/categoryAxis.types.d.ts → FunnelChart/categoryAxis.types.d.mts} +0 -0
  840. /package/{esm/FunnelChart/categoryAxis.types.js → FunnelChart/categoryAxis.types.mjs} +0 -0
  841. /package/{esm/FunnelChart/coordinateMapper.js → FunnelChart/coordinateMapper.mjs} +0 -0
  842. /package/{esm/FunnelChart/curves/borderRadiusPolygon.js → FunnelChart/curves/borderRadiusPolygon.mjs} +0 -0
  843. /package/{esm/FunnelChart/curves/bump.js → FunnelChart/curves/bump.mjs} +0 -0
  844. /package/{esm/FunnelChart/curves/curve.types.d.ts → FunnelChart/curves/curve.types.d.mts} +0 -0
  845. /package/{esm/FunnelChart/curves/curve.types.js → FunnelChart/curves/curve.types.mjs} +0 -0
  846. /package/{esm/FunnelChart/curves/utils.d.ts → FunnelChart/curves/utils.d.mts} +0 -0
  847. /package/{esm/FunnelChart/curves/utils.js → FunnelChart/curves/utils.mjs} +0 -0
  848. /package/{esm/FunnelChart/funnel.types.js → FunnelChart/funnel.types.mjs} +0 -0
  849. /package/{esm/FunnelChart/funnelAxisPlugin/computeAxisValue.d.ts → FunnelChart/funnelAxisPlugin/computeAxisValue.d.mts} +0 -0
  850. /package/{esm/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.types.js → FunnelChart/funnelAxisPlugin/useChartFunnelAxis.types.mjs} +0 -0
  851. /package/{esm/FunnelChart/funnelPlotSlots.types.js → FunnelChart/funnelPlotSlots.types.mjs} +0 -0
  852. /package/{esm/FunnelChart/funnelSectionClasses.js → FunnelChart/funnelSectionClasses.mjs} +0 -0
  853. /package/{esm/FunnelChart/funnelSlots.types.js → FunnelChart/funnelSlots.types.mjs} +0 -0
  854. /package/{esm/FunnelChart/get2DExtrema.js → FunnelChart/get2DExtrema.mjs} +0 -0
  855. /package/{esm/FunnelChart/labelUtils.js → FunnelChart/labelUtils.mjs} +0 -0
  856. /package/{esm/FunnelChart/seriesConfig/extremums.d.ts → FunnelChart/seriesConfig/extremums.d.mts} +0 -0
  857. /package/{esm/FunnelChart/seriesConfig/extremums.js → FunnelChart/seriesConfig/extremums.mjs} +0 -0
  858. /package/{esm/FunnelChart/seriesConfig/getColor.d.ts → FunnelChart/seriesConfig/getColor.d.mts} +0 -0
  859. /package/{esm/FunnelChart/seriesConfig/getColor.js → FunnelChart/seriesConfig/getColor.mjs} +0 -0
  860. /package/{esm/FunnelChart/seriesConfig/getSeriesWithDefaultValues.d.ts → FunnelChart/seriesConfig/getSeriesWithDefaultValues.d.mts} +0 -0
  861. /package/{esm/FunnelChart/seriesConfig/getSeriesWithDefaultValues.js → FunnelChart/seriesConfig/getSeriesWithDefaultValues.mjs} +0 -0
  862. /package/{esm/FunnelChart/seriesConfig/index.d.ts → FunnelChart/seriesConfig/index.d.mts} +0 -0
  863. /package/{esm/FunnelChart/seriesConfig/keyboardFocusHandler.d.ts → FunnelChart/seriesConfig/keyboardFocusHandler.d.mts} +0 -0
  864. /package/{esm/FunnelChart/seriesConfig/legend.d.ts → FunnelChart/seriesConfig/legend.d.mts} +0 -0
  865. /package/{esm/FunnelChart/seriesConfig/legend.js → FunnelChart/seriesConfig/legend.mjs} +0 -0
  866. /package/{esm/FunnelChart/seriesConfig/seriesProcessor.d.ts → FunnelChart/seriesConfig/seriesProcessor.d.mts} +0 -0
  867. /package/{esm/FunnelChart/seriesConfig/seriesProcessor.js → FunnelChart/seriesConfig/seriesProcessor.mjs} +0 -0
  868. /package/{esm/FunnelChart/seriesConfig/tooltip.d.ts → FunnelChart/seriesConfig/tooltip.d.mts} +0 -0
  869. /package/{esm/FunnelChart/seriesConfig/tooltip.js → FunnelChart/seriesConfig/tooltip.mjs} +0 -0
  870. /package/{esm/FunnelChart/seriesConfig/tooltipPosition.d.ts → FunnelChart/seriesConfig/tooltipPosition.d.mts} +0 -0
  871. /package/{esm/Gauge/index.d.ts → Gauge/index.d.mts} +0 -0
  872. /package/{esm/Gauge/index.js → Gauge/index.mjs} +0 -0
  873. /package/{esm/Heatmap/FocusedHeatmapCell.d.ts → Heatmap/FocusedHeatmapCell.d.mts} +0 -0
  874. /package/{esm/Heatmap/Heatmap.types.js → Heatmap/Heatmap.types.mjs} +0 -0
  875. /package/{esm/Heatmap/HeatmapTooltip/HeatmapTooltip.classes.js → Heatmap/HeatmapTooltip/HeatmapTooltip.classes.mjs} +0 -0
  876. /package/{esm/Heatmap/HeatmapTooltip/HeatmapTooltip.types.js → Heatmap/HeatmapTooltip/HeatmapTooltip.types.mjs} +0 -0
  877. /package/{esm/Heatmap/HeatmapTooltip/HeatmapTooltipAxesValue.d.ts → Heatmap/HeatmapTooltip/HeatmapTooltipAxesValue.d.mts} +0 -0
  878. /package/{esm/Heatmap/HeatmapTooltip/HeatmapTooltipAxesValue.js → Heatmap/HeatmapTooltip/HeatmapTooltipAxesValue.mjs} +0 -0
  879. /package/{esm/Heatmap/heatmapClasses.js → Heatmap/heatmapClasses.mjs} +0 -0
  880. /package/{esm/Heatmap/internals/HeatmapCell.js → Heatmap/internals/HeatmapCell.mjs} +0 -0
  881. /package/{esm/Heatmap/seriesConfig/extremums.d.ts → Heatmap/seriesConfig/extremums.d.mts} +0 -0
  882. /package/{esm/Heatmap/seriesConfig/extremums.js → Heatmap/seriesConfig/extremums.mjs} +0 -0
  883. /package/{esm/Heatmap/seriesConfig/getColor.d.ts → Heatmap/seriesConfig/getColor.d.mts} +0 -0
  884. /package/{esm/Heatmap/seriesConfig/getColor.js → Heatmap/seriesConfig/getColor.mjs} +0 -0
  885. /package/{esm/Heatmap/seriesConfig/getItemAtPosition.js → Heatmap/seriesConfig/getItemAtPosition.mjs} +0 -0
  886. /package/{esm/Heatmap/seriesConfig/getSeriesWithDefaultValues.d.ts → Heatmap/seriesConfig/getSeriesWithDefaultValues.d.mts} +0 -0
  887. /package/{esm/Heatmap/seriesConfig/getSeriesWithDefaultValues.js → Heatmap/seriesConfig/getSeriesWithDefaultValues.mjs} +0 -0
  888. /package/{esm/Heatmap/seriesConfig/index.d.ts → Heatmap/seriesConfig/index.d.mts} +0 -0
  889. /package/{esm/Heatmap/seriesConfig/keyboardFocusHandler.d.ts → Heatmap/seriesConfig/keyboardFocusHandler.d.mts} +0 -0
  890. /package/{esm/Heatmap/seriesConfig/keyboardFocusHandler.js → Heatmap/seriesConfig/keyboardFocusHandler.mjs} +0 -0
  891. /package/{esm/Heatmap/seriesConfig/seriesProcessor.d.ts → Heatmap/seriesConfig/seriesProcessor.d.mts} +0 -0
  892. /package/{esm/Heatmap/seriesConfig/seriesProcessor.js → Heatmap/seriesConfig/seriesProcessor.mjs} +0 -0
  893. /package/{esm/Heatmap/seriesConfig/tooltip.d.ts → Heatmap/seriesConfig/tooltip.d.mts} +0 -0
  894. /package/{esm/Heatmap/seriesConfig/tooltip.js → Heatmap/seriesConfig/tooltip.mjs} +0 -0
  895. /package/{esm/Heatmap/seriesConfig/tooltipPosition.d.ts → Heatmap/seriesConfig/tooltipPosition.d.mts} +0 -0
  896. /package/{esm/Heatmap/seriesConfig/tooltipPosition.js → Heatmap/seriesConfig/tooltipPosition.mjs} +0 -0
  897. /package/{esm/LineChart/index.d.ts → LineChart/index.d.mts} +0 -0
  898. /package/{esm/LineChart/index.js → LineChart/index.mjs} +0 -0
  899. /package/{esm/PieChart/index.d.ts → PieChart/index.d.mts} +0 -0
  900. /package/{esm/PieChart/index.js → PieChart/index.mjs} +0 -0
  901. /package/{esm/RadarChart/index.d.ts → RadarChart/index.d.mts} +0 -0
  902. /package/{esm/RadarChart/index.js → RadarChart/index.mjs} +0 -0
  903. /package/{esm/SankeyChart/FocusedSankeyLink.d.ts → SankeyChart/FocusedSankeyLink.d.mts} +0 -0
  904. /package/{esm/SankeyChart/FocusedSankeyNode.d.ts → SankeyChart/FocusedSankeyNode.d.mts} +0 -0
  905. /package/{esm/SankeyChart/SankeyTooltip/SankeyTooltip.classes.js → SankeyChart/SankeyTooltip/SankeyTooltip.classes.mjs} +0 -0
  906. /package/{esm/SankeyChart/SankeyTooltip/SankeyTooltip.types.d.ts → SankeyChart/SankeyTooltip/SankeyTooltip.types.d.mts} +0 -0
  907. /package/{esm/SankeyChart/SankeyTooltip/SankeyTooltip.types.js → SankeyChart/SankeyTooltip/SankeyTooltip.types.mjs} +0 -0
  908. /package/{esm/SankeyChart/d3Sankey/align.js → SankeyChart/d3Sankey/align.mjs} +0 -0
  909. /package/{esm/SankeyChart/d3Sankey/sankey.types.d.ts → SankeyChart/d3Sankey/sankey.types.d.mts} +0 -0
  910. /package/{esm/SankeyChart/d3Sankey/sankey.types.js → SankeyChart/d3Sankey/sankey.types.mjs} +0 -0
  911. /package/{esm/SankeyChart/d3Sankey/sankeyLinkHorizontal.js → SankeyChart/d3Sankey/sankeyLinkHorizontal.mjs} +0 -0
  912. /package/{esm/SankeyChart/sankey.highlight.types.d.ts → SankeyChart/sankey.highlight.types.d.mts} +0 -0
  913. /package/{esm/SankeyChart/sankey.highlight.types.js → SankeyChart/sankey.highlight.types.mjs} +0 -0
  914. /package/{esm/SankeyChart/sankey.types.js → SankeyChart/sankey.types.mjs} +0 -0
  915. /package/{esm/SankeyChart/sankeyClasses.d.ts → SankeyChart/sankeyClasses.d.mts} +0 -0
  916. /package/{esm/SankeyChart/sankeyClasses.js → SankeyChart/sankeyClasses.mjs} +0 -0
  917. /package/{esm/SankeyChart/plugins/useSankeyHighlight.types.js → SankeyChart/sankeySlots.types.mjs} +0 -0
  918. /package/{esm/SankeyChart/seriesConfig/getSeriesWithDefaultValues.d.ts → SankeyChart/seriesConfig/getSeriesWithDefaultValues.d.mts} +0 -0
  919. /package/{esm/SankeyChart/seriesConfig/identifierCleaner.d.ts → SankeyChart/seriesConfig/identifierCleaner.d.mts} +0 -0
  920. /package/{esm/SankeyChart/seriesConfig/identifierCleaner.js → SankeyChart/seriesConfig/identifierCleaner.mjs} +0 -0
  921. /package/{esm/SankeyChart/seriesConfig/identifierSerializer.d.ts → SankeyChart/seriesConfig/identifierSerializer.d.mts} +0 -0
  922. /package/{esm/SankeyChart/seriesConfig/identifierSerializer.js → SankeyChart/seriesConfig/identifierSerializer.mjs} +0 -0
  923. /package/{esm/SankeyChart/seriesConfig/index.d.ts → SankeyChart/seriesConfig/index.d.mts} +0 -0
  924. /package/{esm/SankeyChart/seriesConfig/keyboardFocusHandler.d.ts → SankeyChart/seriesConfig/keyboardFocusHandler.d.mts} +0 -0
  925. /package/{esm/SankeyChart/seriesConfig/keyboardFocusHandler.js → SankeyChart/seriesConfig/keyboardFocusHandler.mjs} +0 -0
  926. /package/{esm/SankeyChart/seriesConfig/tooltipGetter.d.ts → SankeyChart/seriesConfig/tooltipGetter.d.mts} +0 -0
  927. /package/{esm/SankeyChart/seriesConfig/tooltipGetter.js → SankeyChart/seriesConfig/tooltipGetter.mjs} +0 -0
  928. /package/{esm/SankeyChart/seriesConfig/tooltipPosition.d.ts → SankeyChart/seriesConfig/tooltipPosition.d.mts} +0 -0
  929. /package/{esm/SankeyChart/seriesConfig/tooltipPosition.js → SankeyChart/seriesConfig/tooltipPosition.mjs} +0 -0
  930. /package/{esm/ScatterChart/index.d.ts → ScatterChart/index.d.mts} +0 -0
  931. /package/{esm/ScatterChart/index.js → ScatterChart/index.mjs} +0 -0
  932. /package/{esm/SparkLineChart/index.d.ts → SparkLineChart/index.d.mts} +0 -0
  933. /package/{esm/SparkLineChart/index.js → SparkLineChart/index.mjs} +0 -0
  934. /package/{esm/Toolbar/index.d.ts → Toolbar/index.d.mts} +0 -0
  935. /package/{esm/Toolbar/index.js → Toolbar/index.mjs} +0 -0
  936. /package/{esm/colorPalettes/index.d.ts → colorPalettes/index.d.mts} +0 -0
  937. /package/{esm/colorPalettes/index.js → colorPalettes/index.mjs} +0 -0
  938. /package/{esm/constants/index.d.ts → constants/index.d.mts} +0 -0
  939. /package/{esm/constants/index.js → constants/index.mjs} +0 -0
  940. /package/{esm/SankeyChart/sankeySlots.types.js → context/ChartProApi.mjs} +0 -0
  941. /package/{esm/context/useChartProApiContext.js → context/useChartProApiContext.mjs} +0 -0
  942. /package/{esm/hooks/useChartProApiRef.js → hooks/useChartProApiRef.mjs} +0 -0
  943. /package/{esm/hooks/useFunnelSeries.d.ts → hooks/useFunnelSeries.d.mts} +0 -0
  944. /package/{esm/hooks/useFunnelSeries.js → hooks/useFunnelSeries.mjs} +0 -0
  945. /package/{esm/hooks/useHeatmapSeries.d.ts → hooks/useHeatmapSeries.d.mts} +0 -0
  946. /package/{esm/hooks/useHeatmapSeries.js → hooks/useHeatmapSeries.mjs} +0 -0
  947. /package/{esm/hooks/useSankeySeries.js → hooks/useSankeySeries.mjs} +0 -0
  948. /package/{esm/hooks/zoom/useIsZoomInteracting.d.ts → hooks/zoom/useIsZoomInteracting.d.mts} +0 -0
  949. /package/{esm/internals/material/components/BaseMenuItem.js → internals/material/components/BaseMenuItem.mjs} +0 -0
  950. /package/{esm/internals/material/components/BasePopper.js → internals/material/components/BasePopper.mjs} +0 -0
  951. /package/{esm/internals/material/icons.d.ts → internals/material/icons.d.mts} +0 -0
  952. /package/{esm/internals/material/icons.js → internals/material/icons.mjs} +0 -0
  953. /package/{esm/internals/plugins/useChartProExport/common.d.ts → internals/plugins/useChartProExport/common.d.mts} +0 -0
  954. /package/{esm/internals/plugins/useChartProExport/common.js → internals/plugins/useChartProExport/common.mjs} +0 -0
  955. /package/{esm/internals/plugins/useChartProExport/defaults.d.ts → internals/plugins/useChartProExport/defaults.d.mts} +0 -0
  956. /package/{esm/internals/plugins/useChartProExport/defaults.js → internals/plugins/useChartProExport/defaults.mjs} +0 -0
  957. /package/{esm/internals/plugins/useChartProExport/useChartProExport.types.d.ts → internals/plugins/useChartProExport/useChartProExport.types.d.mts} +0 -0
  958. /package/{esm/context/ChartProApi.js → internals/plugins/useChartProExport/useChartProExport.types.mjs} +0 -0
  959. /package/{esm/internals/plugins/useChartProZoom/ZoomInteractionConfig.types.d.ts → internals/plugins/useChartProZoom/ZoomInteractionConfig.types.d.mts} +0 -0
  960. /package/{esm/internals/plugins/useChartProExport/useChartProExport.types.js → internals/plugins/useChartProZoom/ZoomInteractionConfig.types.mjs} +0 -0
  961. /package/{esm/internals/plugins/useChartProZoom/calculateZoom.d.ts → internals/plugins/useChartProZoom/calculateZoom.d.mts} +0 -0
  962. /package/{esm/internals/plugins/useChartProZoom/calculateZoom.js → internals/plugins/useChartProZoom/calculateZoom.mjs} +0 -0
  963. /package/{esm/internals/plugins/useChartProZoom/gestureHooks/useZoom.utils.d.ts → internals/plugins/useChartProZoom/gestureHooks/useZoom.utils.d.mts} +0 -0
  964. /package/{esm/internals/plugins/useChartProZoom/gestureHooks/useZoom.utils.js → internals/plugins/useChartProZoom/gestureHooks/useZoom.utils.mjs} +0 -0
  965. /package/{esm/internals/plugins/useChartProZoom/initializeZoomData.d.ts → internals/plugins/useChartProZoom/initializeZoomData.d.mts} +0 -0
  966. /package/{esm/internals/plugins/useChartProZoom/initializeZoomData.js → internals/plugins/useChartProZoom/initializeZoomData.mjs} +0 -0
  967. /package/{esm/internals/plugins/useChartProZoom/initializeZoomInteractionConfig.js → internals/plugins/useChartProZoom/initializeZoomInteractionConfig.mjs} +0 -0
  968. /package/{esm/internals/plugins/useChartProZoom/useChartProZoom.selectors.js → internals/plugins/useChartProZoom/useChartProZoom.selectors.mjs} +0 -0
  969. /package/{esm/internals/plugins/useChartProZoom/ZoomInteractionConfig.types.js → internals/plugins/useChartProZoom/useChartProZoom.types.mjs} +0 -0
  970. /package/{esm/internals/slots/chartBaseSlotProps.d.ts → internals/slots/chartBaseSlotProps.d.mts} +0 -0
  971. /package/{esm/internals/plugins/useChartProZoom/useChartProZoom.types.js → internals/slots/chartBaseSlotProps.mjs} +0 -0
  972. /package/{esm/internals/slots/chartBaseSlotProps.js → internals/slots/chartsBaseSlots.mjs} +0 -0
  973. /package/{esm/internals/slots/chartsIconSlots.d.ts → internals/slots/chartsIconSlots.d.mts} +0 -0
  974. /package/{esm/internals/slots/chartsBaseSlots.js → internals/slots/chartsIconSlots.mjs} +0 -0
  975. /package/{esm/locales/index.d.ts → locales/index.d.mts} +0 -0
  976. /package/{esm/locales/index.js → locales/index.mjs} +0 -0
  977. /package/{esm/models/seriesType/heatmap.d.ts → models/seriesType/heatmap.d.mts} +0 -0
  978. /package/{esm/internals/slots/chartsIconSlots.js → models/seriesType/heatmap.mjs} +0 -0
  979. /package/{esm/plugins/selectors/useChartHeatmapPosition.selectors.js → plugins/selectors/useChartHeatmapPosition.selectors.mjs} +0 -0
  980. /package/{esm/tests/constants.js → tests/constants.mjs} +0 -0
  981. /package/{esm/themeAugmentation/components.d.ts → themeAugmentation/components.d.mts} +0 -0
  982. /package/{esm/models/seriesType/heatmap.js → themeAugmentation/components.mjs} +0 -0
  983. /package/{esm/themeAugmentation/index.js → themeAugmentation/index.mjs} +0 -0
  984. /package/{esm/themeAugmentation/overrides.js → themeAugmentation/overrides.mjs} +0 -0
  985. /package/{esm/themeAugmentation/props.js → themeAugmentation/props.mjs} +0 -0
  986. /package/{esm/themeAugmentation/components.js → typeOverloads/modules.mjs} +0 -0
  987. /package/{esm/utils/index.d.ts → utils/index.d.mts} +0 -0
  988. /package/{esm/utils/index.js → utils/index.mjs} +0 -0
@@ -0,0 +1,300 @@
1
+ import type { SeriesId } from '@mui/x-charts/internals';
2
+ import type { DefaultizedProps, MakeRequired } from '@mui/x-internals/types';
3
+ import type { SankeyLink as D3SankeyLink, SankeyNode as D3SankeyNode } from "./d3Sankey/index.mjs";
4
+ import type { SankeyHighlightScope, SankeyLinkHighlightScope, SankeyNodeHighlightScope } from "./sankey.highlight.types.mjs";
5
+ export type SankeyNodeId = string | number;
6
+ export interface SankeyNode {
7
+ /**
8
+ * Unique identifier for the node
9
+ */
10
+ id: SankeyNodeId;
11
+ /**
12
+ * The node label to display
13
+ */
14
+ label?: string;
15
+ /**
16
+ * Optional custom data for the node
17
+ */
18
+ data?: any;
19
+ /**
20
+ * Optional color override for the node
21
+ */
22
+ color?: string;
23
+ }
24
+ export interface SankeyLink {
25
+ /**
26
+ * Source node ID
27
+ */
28
+ source: SankeyNodeId;
29
+ /**
30
+ * Target node ID
31
+ */
32
+ target: SankeyNodeId;
33
+ /**
34
+ * The value/weight of the link (affects width)
35
+ */
36
+ value: number;
37
+ /**
38
+ * Optional custom data for the link
39
+ */
40
+ data?: any;
41
+ /**
42
+ * Optional color override for the link.
43
+ * Can be a color string, or a keyword:
44
+ * - 'source': Use the color of the source node
45
+ * - 'target': Use the color of the target node
46
+ * @default 'source'
47
+ */
48
+ color?: string | 'source' | 'target';
49
+ }
50
+ export type SankeyNodeOptions = {
51
+ /**
52
+ * Default color for nodes without specified colors
53
+ */
54
+ color?: string;
55
+ /**
56
+ * Width of the nodes in pixels
57
+ */
58
+ width?: number;
59
+ /**
60
+ * Padding between nodes in pixels
61
+ */
62
+ padding?: number;
63
+ /**
64
+ * Node alignment strategy
65
+ * - 'justify': Nodes are evenly distributed across the width.
66
+ * - 'left': Nodes are aligned to the left.
67
+ * - 'right': Nodes are aligned to the right.
68
+ * - 'center': Nodes are centered.
69
+ * @default 'justify'
70
+ */
71
+ align?: 'justify' | 'left' | 'right' | 'center';
72
+ /**
73
+ * Whether to show node labels
74
+ */
75
+ showLabels?: boolean;
76
+ /**
77
+ * Custom sort mode for nodes
78
+ *
79
+ * - 'auto': Automatic sorting behavior (default)
80
+ * - 'fixed': Preserve the order from the nodes array (disables automatic sorting)
81
+ * - or a custom function
82
+ *
83
+ * @param {SankeyLayoutNode} a - First node to compare
84
+ * @param {SankeyLayoutNode} b - Second node to compare
85
+ * @returns {number} Comparison result
86
+ *
87
+ * @default 'auto'
88
+ */
89
+ sort?: 'auto' | 'fixed' | ((a: SankeyLayoutNode<true>, b: SankeyLayoutNode<true>) => number);
90
+ } & SankeyNodeHighlightScope;
91
+ export type SankeyLinkOptions = {
92
+ /**
93
+ * Default color for links without specified colors.
94
+ * Can be a color string, or a keyword:
95
+ * - 'source': Use the color of the source node
96
+ * - 'target': Use the color of the target node
97
+ * @default 'source'
98
+ */
99
+ color?: string | 'source' | 'target';
100
+ /**
101
+ * Opacity of the links (0-1)
102
+ */
103
+ opacity?: number;
104
+ /**
105
+ * Whether to show link values
106
+ */
107
+ showValues?: boolean;
108
+ /**
109
+ * Custom sort mode for links
110
+ *
111
+ * - 'auto': Automatic sorting behavior (default)
112
+ * - 'fixed': Preserve the order from the links array (disables automatic sorting)
113
+ * - or a custom function
114
+ *
115
+ * @param {SankeyLayoutLink} a - First link to compare
116
+ * @param {SankeyLayoutLink} b - Second link to compare
117
+ * @returns {number} Comparison result
118
+ * @default 'auto'
119
+ */
120
+ sort?: 'auto' | 'fixed' | ((a: SankeyLayoutLink<true>, b: SankeyLayoutLink<true>) => number);
121
+ /**
122
+ * Applies the given number to the X dimension of the control points of the link's curve function.
123
+ * This can create better looking links between nodes, but is dependent on the graph layout.
124
+ * It is specially impacted by the chart height.
125
+ * @default 10
126
+ */
127
+ curveCorrection?: number;
128
+ } & SankeyLinkHighlightScope;
129
+ export interface SankeyData {
130
+ /**
131
+ * An array of node configs for the Sankey diagram
132
+ *
133
+ * This is optional, but can be used to provide custom labels or styles for nodes.
134
+ */
135
+ nodes?: readonly SankeyNode[];
136
+ /**
137
+ * Array of links between nodes.
138
+ *
139
+ * The node ids will be used as the labels. If you want to provide custom labels, use the `nodes` property.
140
+ *
141
+ * Each link should have a `source`, `target`, and `value` property.
142
+ */
143
+ links: readonly SankeyLink[];
144
+ }
145
+ export interface SankeySeriesType {
146
+ /**
147
+ * Unique identifier for the series
148
+ */
149
+ id?: SeriesId;
150
+ /**
151
+ * Type identifier for Sankey series
152
+ */
153
+ type: 'sankey';
154
+ /**
155
+ * The data for the Sankey diagram
156
+ */
157
+ data: SankeyData;
158
+ /**
159
+ * Optional configuration for the nodes style, layout, and behavior
160
+ */
161
+ nodeOptions?: SankeyNodeOptions;
162
+ /**
163
+ * Optional configuration for the links style, layout, and behavior
164
+ */
165
+ linkOptions?: SankeyLinkOptions;
166
+ /**
167
+ * Number of iterations for the layout algorithm
168
+ * @default 6
169
+ */
170
+ iterations?: number;
171
+ /**
172
+ * Formatter used to render values in tooltip or other data display.
173
+ * @param {number} value The value to render.
174
+ * @param {SankeyValueFormatterContext} context The rendering context of the value.
175
+ * @param {'node' | 'link'} context.type The type of element being formatted.
176
+ * @param {SankeyNodeId} [context.nodeId] For nodes: the node ID. For links: undefined.
177
+ * @param {SankeyNodeId} [context.sourceId] For links: the source node ID. For nodes: undefined.
178
+ * @param {SankeyNodeId} [context.targetId] For links: the target node ID. For nodes: undefined.
179
+ * @returns {string | null} The formatted value to display.
180
+ */
181
+ valueFormatter?: (value: number, context: SankeyValueFormatterContext) => string | null;
182
+ }
183
+ export interface SankeyLayoutNodeWithoutPosition extends D3SankeyNode<false, MakeRequired<SankeyNode, 'label' | 'color'>, SankeyLayoutLinkWithoutPosition> {
184
+ targetLinks: SankeyLayoutLinkWithoutPosition[];
185
+ sourceLinks: SankeyLayoutLinkWithoutPosition[];
186
+ value: number;
187
+ }
188
+ export interface SankeyLayoutLinkWithoutPosition extends D3SankeyLink<false, SankeyLayoutNodeWithoutPosition, Omit<MakeRequired<SankeyLink, 'color'>, 'source' | 'target'>> {
189
+ source: SankeyLayoutNodeWithoutPosition;
190
+ target: SankeyLayoutNodeWithoutPosition;
191
+ }
192
+ export interface SankeyLayoutNodeWithPosition extends D3SankeyNode<true, MakeRequired<SankeyNode, 'label' | 'color'>, SankeyLayoutLinkWithPosition> {
193
+ targetLinks: SankeyLayoutLinkWithPosition[];
194
+ sourceLinks: SankeyLayoutLinkWithPosition[];
195
+ value: number;
196
+ }
197
+ export interface SankeyLayoutLinkWithPosition extends D3SankeyLink<true, SankeyLayoutNodeWithPosition, Omit<MakeRequired<SankeyLink, 'color'>, 'source' | 'target'>> {
198
+ path?: string | null;
199
+ source: SankeyLayoutNodeWithPosition;
200
+ target: SankeyLayoutNodeWithPosition;
201
+ }
202
+ /**
203
+ * Represents the calculated positions and dimensions for a node in the Sankey diagram
204
+ */
205
+ export type SankeyLayoutNode<WithPosition extends boolean = true> = WithPosition extends true ? SankeyLayoutNodeWithPosition : SankeyLayoutNodeWithoutPosition;
206
+ /**
207
+ * Represents the calculated positions and paths for a link in the Sankey diagram
208
+ */
209
+ export type SankeyLayoutLink<WithPosition extends boolean = true> = WithPosition extends true ? SankeyLayoutLinkWithPosition : SankeyLayoutLinkWithoutPosition;
210
+ /**
211
+ * Calculated layout for the Sankey diagram
212
+ */
213
+ export interface SankeyLayout<WithPosition extends boolean = true> {
214
+ nodes: readonly SankeyLayoutNode<WithPosition>[];
215
+ links: readonly SankeyLayoutLink<WithPosition>[];
216
+ }
217
+ export interface DefaultizedSankeySeriesType extends DefaultizedProps<Omit<SankeySeriesType, 'data'>, 'id' | 'valueFormatter'> {
218
+ data: SankeyLayout<false>;
219
+ /**
220
+ * Highlight scope for the series derived from nodeOptions and linksOptions
221
+ */
222
+ highlightScope: SankeyHighlightScope;
223
+ }
224
+ type SankeyNodeIdentifierBase = {
225
+ type: 'sankey';
226
+ /**
227
+ * Unique identifier for the series
228
+ */
229
+ seriesId: SeriesId;
230
+ };
231
+ export type SankeyNodeIdentifier = SankeyNodeIdentifierBase & {
232
+ /**
233
+ * Subtype to differentiate between node and link
234
+ */
235
+ subType: 'node';
236
+ /**
237
+ * The id of the node
238
+ */
239
+ nodeId: SankeyNodeId;
240
+ };
241
+ export type SankeyNodeIdentifierWithData<WithPosition extends boolean = true> = SankeyNodeIdentifier & {
242
+ /**
243
+ * The node object with all the calculated properties
244
+ */
245
+ node: SankeyLayoutNode<WithPosition>;
246
+ };
247
+ export type SankeyLinkIdentifier = SankeyNodeIdentifierBase & {
248
+ /**
249
+ * Subtype to differentiate between node and link
250
+ */
251
+ subType: 'link';
252
+ /**
253
+ * The id of the source node
254
+ */
255
+ sourceId: SankeyNodeId;
256
+ /**
257
+ * The id of the target node
258
+ */
259
+ targetId: SankeyNodeId;
260
+ };
261
+ export type SankeyLinkIdentifierWithData<WithPosition extends boolean = true> = SankeyLinkIdentifier & {
262
+ /**
263
+ * The link object with all the calculated properties
264
+ */
265
+ link: SankeyLayoutLink<WithPosition>;
266
+ };
267
+ export type SankeyItemIdentifier = SankeyNodeIdentifier | SankeyLinkIdentifier;
268
+ export type SankeyItemIdentifierWithData<WithPosition extends boolean = true> = SankeyNodeIdentifierWithData<WithPosition> | SankeyLinkIdentifierWithData<WithPosition>;
269
+ export type SankeyValueFormatterContext = {
270
+ /**
271
+ * Where the value will be displayed
272
+ */
273
+ location: 'tooltip' | 'label';
274
+ /**
275
+ * Can be 'node' or 'link'
276
+ */
277
+ type: 'node';
278
+ /**
279
+ * The id of the node
280
+ */
281
+ nodeId: SankeyNodeId;
282
+ } | {
283
+ /**
284
+ * Where the value will be displayed
285
+ */
286
+ location: 'tooltip' | 'label';
287
+ /**
288
+ * Can be 'node' or 'link'
289
+ */
290
+ type: 'link';
291
+ /**
292
+ * The id of the source node
293
+ */
294
+ sourceId: SankeyNodeId;
295
+ /**
296
+ * The id of the target node
297
+ */
298
+ targetId: SankeyNodeId;
299
+ };
300
+ export {};
@@ -0,0 +1,3 @@
1
+ import type { SankeyLinkIdentifier, SankeyNodeIdentifier } from "./sankey.types.mjs";
2
+ export declare function useSankeyNodeHighlightState(nodeIdentifier: SankeyNodeIdentifier): "none" | "highlighted" | "faded";
3
+ export declare function useSankeyLinkHighlightState(linkIdentifier: SankeyLinkIdentifier): "none" | "highlighted" | "faded";
@@ -1,3 +1,3 @@
1
- import type { SankeyLayoutLink, SankeyNodeId } from "./sankey.types.js";
2
- export declare function useSankeyNodeHighlightState(nodeId: SankeyNodeId): "none" | "highlighted" | "faded";
3
- export declare function useSankeyLinkHighlightState(link: SankeyLayoutLink): "none" | "highlighted" | "faded";
1
+ import type { SankeyLinkIdentifier, SankeyNodeIdentifier } from "./sankey.types.js";
2
+ export declare function useSankeyNodeHighlightState(nodeIdentifier: SankeyNodeIdentifier): "none" | "highlighted" | "faded";
3
+ export declare function useSankeyLinkHighlightState(linkIdentifier: SankeyLinkIdentifier): "none" | "highlighted" | "faded";
@@ -6,19 +6,18 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.useSankeyLinkHighlightState = useSankeyLinkHighlightState;
7
7
  exports.useSankeyNodeHighlightState = useSankeyNodeHighlightState;
8
8
  var _internals = require("@mui/x-charts/internals");
9
- var _useSankeyHighlight = require("./plugins/useSankeyHighlight.selectors");
10
- function useSankeyNodeHighlightState(nodeId) {
9
+ function useSankeyNodeHighlightState(nodeIdentifier) {
11
10
  const store = (0, _internals.useStore)();
12
- const isHighlighted = store.use(_useSankeyHighlight.selectorIsNodeHighlighted, nodeId);
13
- const isFaded = store.use(_useSankeyHighlight.selectorIsSankeyItemFaded, isHighlighted);
11
+ const isHighlighted = store.use(_internals.selectorChartsIsHighlighted, nodeIdentifier);
12
+ const isFaded = store.use(_internals.selectorChartsIsFaded, nodeIdentifier);
14
13
 
15
14
  // eslint-disable-next-line no-nested-ternary
16
15
  return isHighlighted ? 'highlighted' : isFaded ? 'faded' : 'none';
17
16
  }
18
- function useSankeyLinkHighlightState(link) {
17
+ function useSankeyLinkHighlightState(linkIdentifier) {
19
18
  const store = (0, _internals.useStore)();
20
- const isHighlighted = store.use(_useSankeyHighlight.selectorIsLinkHighlighted, link);
21
- const isFaded = store.use(_useSankeyHighlight.selectorIsSankeyItemFaded, isHighlighted);
19
+ const isHighlighted = store.use(_internals.selectorChartsIsHighlighted, linkIdentifier);
20
+ const isFaded = store.use(_internals.selectorChartsIsFaded, linkIdentifier);
22
21
 
23
22
  // eslint-disable-next-line no-nested-ternary
24
23
  return isHighlighted ? 'highlighted' : isFaded ? 'faded' : 'none';
@@ -0,0 +1,17 @@
1
+ import { selectorChartsIsFaded, selectorChartsIsHighlighted, useStore } from '@mui/x-charts/internals';
2
+ export function useSankeyNodeHighlightState(nodeIdentifier) {
3
+ const store = useStore();
4
+ const isHighlighted = store.use(selectorChartsIsHighlighted, nodeIdentifier);
5
+ const isFaded = store.use(selectorChartsIsFaded, nodeIdentifier);
6
+
7
+ // eslint-disable-next-line no-nested-ternary
8
+ return isHighlighted ? 'highlighted' : isFaded ? 'faded' : 'none';
9
+ }
10
+ export function useSankeyLinkHighlightState(linkIdentifier) {
11
+ const store = useStore();
12
+ const isHighlighted = store.use(selectorChartsIsHighlighted, linkIdentifier);
13
+ const isFaded = store.use(selectorChartsIsFaded, linkIdentifier);
14
+
15
+ // eslint-disable-next-line no-nested-ternary
16
+ return isHighlighted ? 'highlighted' : isFaded ? 'faded' : 'none';
17
+ }
@@ -0,0 +1,18 @@
1
+ import { type ChartsOverlaySlotProps, type ChartsOverlaySlots } from '@mui/x-charts/ChartsOverlay';
2
+ import { type ChartsTooltipSlotProps, type ChartsTooltipSlots } from '@mui/x-charts/ChartsTooltip';
3
+ import { type ChartsSlotProps, type ChartsSlots } from '@mui/x-charts/internals';
4
+ import { type ChartsToolbarSlotProps, type ChartsToolbarSlots } from '@mui/x-charts/Toolbar';
5
+ export interface SankeyChartSlots extends ChartsTooltipSlots<'item' | 'none'>, ChartsOverlaySlots, ChartsToolbarSlots, Partial<ChartsSlots> {}
6
+ export interface SankeyChartSlotProps extends ChartsTooltipSlotProps<'item' | 'none'>, ChartsOverlaySlotProps, ChartsToolbarSlotProps, Partial<ChartsSlotProps> {}
7
+ export interface SankeyChartSlotExtension {
8
+ /**
9
+ * Overridable component slots.
10
+ * @default {}
11
+ */
12
+ slots?: SankeyChartSlots;
13
+ /**
14
+ * The props used for each component slot.
15
+ * @default {}
16
+ */
17
+ slotProps?: SankeyChartSlotProps;
18
+ }
@@ -1,15 +1,9 @@
1
1
  import { type ChartsOverlaySlotProps, type ChartsOverlaySlots } from '@mui/x-charts/ChartsOverlay';
2
- import { type ChartsTooltipProps, type ChartsTooltipSlotProps, type ChartsTooltipSlots } from '@mui/x-charts/ChartsTooltip';
2
+ import { type ChartsTooltipSlotProps, type ChartsTooltipSlots } from '@mui/x-charts/ChartsTooltip';
3
3
  import { type ChartsSlotProps, type ChartsSlots } from '@mui/x-charts/internals';
4
4
  import { type ChartsToolbarSlotProps, type ChartsToolbarSlots } from '@mui/x-charts/Toolbar';
5
- export interface SankeyChartSlots extends ChartsTooltipSlots, ChartsOverlaySlots, ChartsToolbarSlots, Partial<ChartsSlots> {}
6
- export interface SankeyChartSlotProps extends Omit<ChartsTooltipSlotProps, 'tooltip'>, ChartsOverlaySlotProps, ChartsToolbarSlotProps, Partial<ChartsSlotProps> {
7
- /**
8
- * Slot props for the tooltip component.
9
- * @default {}
10
- */
11
- tooltip?: Partial<ChartsTooltipProps<'item' | 'none'>>;
12
- }
5
+ export interface SankeyChartSlots extends ChartsTooltipSlots<'item' | 'none'>, ChartsOverlaySlots, ChartsToolbarSlots, Partial<ChartsSlots> {}
6
+ export interface SankeyChartSlotProps extends ChartsTooltipSlotProps<'item' | 'none'>, ChartsOverlaySlotProps, ChartsToolbarSlotProps, Partial<ChartsSlotProps> {}
13
7
  export interface SankeyChartSlotExtension {
14
8
  /**
15
9
  * Overridable component slots.
@@ -0,0 +1,3 @@
1
+ import type { HighlightItemIdentifierWithType } from '@mui/x-charts/models';
2
+ import type { SankeyHighlightScope } from "../sankey.highlight.types.mjs";
3
+ export declare function createSankeyIsFaded(highlightScope: SankeyHighlightScope | null | undefined, highlightedItem: HighlightItemIdentifierWithType<'sankey'> | null): (item: HighlightItemIdentifierWithType<"sankey"> | null) => boolean;
@@ -0,0 +1,3 @@
1
+ import type { HighlightItemIdentifierWithType } from '@mui/x-charts/models';
2
+ import type { SankeyHighlightScope } from "../sankey.highlight.types.js";
3
+ export declare function createSankeyIsFaded(highlightScope: SankeyHighlightScope | null | undefined, highlightedItem: HighlightItemIdentifierWithType<'sankey'> | null): (item: HighlightItemIdentifierWithType<"sankey"> | null) => boolean;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.createSankeyIsFaded = createSankeyIsFaded;
7
+ var _createIsHighlighted = require("./createIsHighlighted");
8
+ const DEFAULT_FADE = 'none';
9
+ function alwaysFalse() {
10
+ return false;
11
+ }
12
+ function createSankeyIsFaded(highlightScope, highlightedItem) {
13
+ if (!highlightedItem) {
14
+ return alwaysFalse;
15
+ }
16
+ const nodeFade = highlightScope?.nodes?.fade ?? DEFAULT_FADE;
17
+ const linkFade = highlightScope?.links?.fade ?? DEFAULT_FADE;
18
+ const isHighlighted = (0, _createIsHighlighted.createSankeyIsHighlighted)(highlightScope, highlightedItem);
19
+ return function isFaded(item) {
20
+ if (!item || item.type !== 'sankey') {
21
+ return false;
22
+ }
23
+ if (isHighlighted(item)) {
24
+ return false;
25
+ }
26
+ const fadeMode = highlightedItem.subType === 'node' ? nodeFade : linkFade;
27
+ return fadeMode === 'global';
28
+ };
29
+ }
@@ -0,0 +1,23 @@
1
+ import { createSankeyIsHighlighted } from "./createIsHighlighted.mjs";
2
+ const DEFAULT_FADE = 'none';
3
+ function alwaysFalse() {
4
+ return false;
5
+ }
6
+ export function createSankeyIsFaded(highlightScope, highlightedItem) {
7
+ if (!highlightedItem) {
8
+ return alwaysFalse;
9
+ }
10
+ const nodeFade = highlightScope?.nodes?.fade ?? DEFAULT_FADE;
11
+ const linkFade = highlightScope?.links?.fade ?? DEFAULT_FADE;
12
+ const isHighlighted = createSankeyIsHighlighted(highlightScope, highlightedItem);
13
+ return function isFaded(item) {
14
+ if (!item || item.type !== 'sankey') {
15
+ return false;
16
+ }
17
+ if (isHighlighted(item)) {
18
+ return false;
19
+ }
20
+ const fadeMode = highlightedItem.subType === 'node' ? nodeFade : linkFade;
21
+ return fadeMode === 'global';
22
+ };
23
+ }
@@ -0,0 +1,4 @@
1
+ import type { ChartSeriesType } from '@mui/x-charts/internals';
2
+ import type { HighlightItemIdentifierWithType } from '@mui/x-charts/models';
3
+ import type { SankeyHighlightScope } from "../sankey.highlight.types.mjs";
4
+ export declare function createSankeyIsHighlighted(highlightScope: SankeyHighlightScope | null | undefined, highlightedItem: HighlightItemIdentifierWithType<'sankey'> | null): (item: HighlightItemIdentifierWithType<ChartSeriesType> | null) => boolean;
@@ -0,0 +1,4 @@
1
+ import type { ChartSeriesType } from '@mui/x-charts/internals';
2
+ import type { HighlightItemIdentifierWithType } from '@mui/x-charts/models';
3
+ import type { SankeyHighlightScope } from "../sankey.highlight.types.js";
4
+ export declare function createSankeyIsHighlighted(highlightScope: SankeyHighlightScope | null | undefined, highlightedItem: HighlightItemIdentifierWithType<'sankey'> | null): (item: HighlightItemIdentifierWithType<ChartSeriesType> | null) => boolean;
@@ -0,0 +1,89 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.createSankeyIsHighlighted = createSankeyIsHighlighted;
7
+ const DEFAULT_NODE_HIGHLIGHT = 'links';
8
+ const DEFAULT_LINK_HIGHLIGHT = 'links';
9
+ function alwaysFalse() {
10
+ return false;
11
+ }
12
+ function isNodeHighlighted(highlightedItem, nodeHighlight, linkHighlight, item) {
13
+ if (item.subType !== 'node') {
14
+ return false;
15
+ }
16
+ const nodeId = item.nodeId;
17
+ if (highlightedItem.subType === 'node' && highlightedItem.nodeId === nodeId) {
18
+ return nodeHighlight !== 'none';
19
+ }
20
+ if (highlightedItem.subType === 'link') {
21
+ if (!linkHighlight || linkHighlight === 'none' || linkHighlight === 'links') {
22
+ return false;
23
+ }
24
+ const {
25
+ sourceId,
26
+ targetId
27
+ } = highlightedItem;
28
+ switch (linkHighlight) {
29
+ case 'nodes':
30
+ return nodeId === sourceId || nodeId === targetId;
31
+ case 'source':
32
+ return nodeId === sourceId;
33
+ case 'target':
34
+ return nodeId === targetId;
35
+ default:
36
+ return false;
37
+ }
38
+ }
39
+ return false;
40
+ }
41
+ function isLinkHighlighted(highlightedItem, nodeHighlight, linkHighlight, item) {
42
+ if (item.subType !== 'link') {
43
+ return false;
44
+ }
45
+ const {
46
+ sourceId,
47
+ targetId
48
+ } = item;
49
+ if (highlightedItem.subType === 'link' && highlightedItem.sourceId === sourceId && highlightedItem.targetId === targetId) {
50
+ return linkHighlight !== 'none';
51
+ }
52
+ if (highlightedItem.subType === 'node') {
53
+ if (!nodeHighlight || nodeHighlight === 'none' || nodeHighlight === 'nodes') {
54
+ return false;
55
+ }
56
+ const highlightedNodeId = highlightedItem.nodeId;
57
+ switch (nodeHighlight) {
58
+ case 'links':
59
+ return sourceId === highlightedNodeId || targetId === highlightedNodeId;
60
+ case 'incoming':
61
+ return targetId === highlightedNodeId;
62
+ case 'outgoing':
63
+ return sourceId === highlightedNodeId;
64
+ default:
65
+ return false;
66
+ }
67
+ }
68
+ return false;
69
+ }
70
+ function createSankeyIsHighlighted(highlightScope, highlightedItem) {
71
+ if (!highlightedItem) {
72
+ return alwaysFalse;
73
+ }
74
+ const nodeHighlight = highlightScope?.nodes?.highlight ?? DEFAULT_NODE_HIGHLIGHT;
75
+ const linkHighlight = highlightScope?.links?.highlight ?? DEFAULT_LINK_HIGHLIGHT;
76
+ return function isHighlighted(item) {
77
+ if (!item || item.type !== 'sankey') {
78
+ return false;
79
+ }
80
+ const sankeyItem = item;
81
+ if (sankeyItem.subType === 'node') {
82
+ return isNodeHighlighted(highlightedItem, nodeHighlight, linkHighlight, sankeyItem);
83
+ }
84
+ if (sankeyItem.subType === 'link') {
85
+ return isLinkHighlighted(highlightedItem, nodeHighlight, linkHighlight, sankeyItem);
86
+ }
87
+ return false;
88
+ };
89
+ }
@@ -0,0 +1,83 @@
1
+ const DEFAULT_NODE_HIGHLIGHT = 'links';
2
+ const DEFAULT_LINK_HIGHLIGHT = 'links';
3
+ function alwaysFalse() {
4
+ return false;
5
+ }
6
+ function isNodeHighlighted(highlightedItem, nodeHighlight, linkHighlight, item) {
7
+ if (item.subType !== 'node') {
8
+ return false;
9
+ }
10
+ const nodeId = item.nodeId;
11
+ if (highlightedItem.subType === 'node' && highlightedItem.nodeId === nodeId) {
12
+ return nodeHighlight !== 'none';
13
+ }
14
+ if (highlightedItem.subType === 'link') {
15
+ if (!linkHighlight || linkHighlight === 'none' || linkHighlight === 'links') {
16
+ return false;
17
+ }
18
+ const {
19
+ sourceId,
20
+ targetId
21
+ } = highlightedItem;
22
+ switch (linkHighlight) {
23
+ case 'nodes':
24
+ return nodeId === sourceId || nodeId === targetId;
25
+ case 'source':
26
+ return nodeId === sourceId;
27
+ case 'target':
28
+ return nodeId === targetId;
29
+ default:
30
+ return false;
31
+ }
32
+ }
33
+ return false;
34
+ }
35
+ function isLinkHighlighted(highlightedItem, nodeHighlight, linkHighlight, item) {
36
+ if (item.subType !== 'link') {
37
+ return false;
38
+ }
39
+ const {
40
+ sourceId,
41
+ targetId
42
+ } = item;
43
+ if (highlightedItem.subType === 'link' && highlightedItem.sourceId === sourceId && highlightedItem.targetId === targetId) {
44
+ return linkHighlight !== 'none';
45
+ }
46
+ if (highlightedItem.subType === 'node') {
47
+ if (!nodeHighlight || nodeHighlight === 'none' || nodeHighlight === 'nodes') {
48
+ return false;
49
+ }
50
+ const highlightedNodeId = highlightedItem.nodeId;
51
+ switch (nodeHighlight) {
52
+ case 'links':
53
+ return sourceId === highlightedNodeId || targetId === highlightedNodeId;
54
+ case 'incoming':
55
+ return targetId === highlightedNodeId;
56
+ case 'outgoing':
57
+ return sourceId === highlightedNodeId;
58
+ default:
59
+ return false;
60
+ }
61
+ }
62
+ return false;
63
+ }
64
+ export function createSankeyIsHighlighted(highlightScope, highlightedItem) {
65
+ if (!highlightedItem) {
66
+ return alwaysFalse;
67
+ }
68
+ const nodeHighlight = highlightScope?.nodes?.highlight ?? DEFAULT_NODE_HIGHLIGHT;
69
+ const linkHighlight = highlightScope?.links?.highlight ?? DEFAULT_LINK_HIGHLIGHT;
70
+ return function isHighlighted(item) {
71
+ if (!item || item.type !== 'sankey') {
72
+ return false;
73
+ }
74
+ const sankeyItem = item;
75
+ if (sankeyItem.subType === 'node') {
76
+ return isNodeHighlighted(highlightedItem, nodeHighlight, linkHighlight, sankeyItem);
77
+ }
78
+ if (sankeyItem.subType === 'link') {
79
+ return isLinkHighlighted(highlightedItem, nodeHighlight, linkHighlight, sankeyItem);
80
+ }
81
+ return false;
82
+ };
83
+ }
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.getSeriesWithDefaultValues = void 0;
8
+ var _formatErrorMessage2 = _interopRequireDefault(require("@mui/x-internals/formatErrorMessage"));
8
9
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
10
  var _d3Sankey = require("../d3Sankey");
10
11
  var _utils = require("../utils");
@@ -103,7 +104,7 @@ const getSeriesWithDefaultValues = (seriesData, seriesIndex, colors) => {
103
104
  // 2. If there are missing source/target nodes, d3-sankey will throw an error.
104
105
  // We handle the second case by building a map of nodes ourselves, so they are always present.
105
106
  if (error instanceof Error && error.message === 'circular link') {
106
- throw new Error('MUI X Charts: Sankey diagram contains circular references.');
107
+ throw new Error(process.env.NODE_ENV !== "production" ? 'MUI X Charts: Sankey diagram contains circular references.' : (0, _formatErrorMessage2.default)(47));
107
108
  }
108
109
  throw error;
109
110
  }