@mui/x-charts 8.15.0 → 8.17.0

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 (581) hide show
  1. package/BarChart/AnimatedBarElement.d.ts +1 -1
  2. package/BarChart/BarChart.js +1 -0
  3. package/BarChart/BarChart.plugins.d.ts +1 -1
  4. package/BarChart/BarChart.plugins.js +1 -1
  5. package/BarChart/BarClipPath.d.ts +1 -1
  6. package/BarChart/BarElement.d.ts +1 -1
  7. package/BarChart/BarElement.js +6 -8
  8. package/BarChart/BarLabel/BarLabel.d.ts +1 -1
  9. package/BarChart/BarLabel/BarLabelItem.d.ts +1 -1
  10. package/BarChart/BarLabel/BarLabelPlot.d.ts +2 -3
  11. package/BarChart/BarLabel/BarLabelPlot.js +41 -36
  12. package/BarChart/BarPlot.d.ts +13 -3
  13. package/BarChart/BarPlot.js +3 -3
  14. package/BarChart/seriesConfig/{extremums.d.ts → bar/extremums.d.ts} +1 -1
  15. package/BarChart/seriesConfig/{extremums.js → bar/extremums.js} +1 -1
  16. package/BarChart/seriesConfig/bar/getColor.d.ts +3 -0
  17. package/BarChart/seriesConfig/{getColor.js → bar/getColor.js} +28 -5
  18. package/BarChart/seriesConfig/bar/getSeriesWithDefaultValues.d.ts +3 -0
  19. package/BarChart/seriesConfig/{getSeriesWithDefaultValues.js → bar/getSeriesWithDefaultValues.js} +3 -3
  20. package/BarChart/seriesConfig/bar/legend.d.ts +3 -0
  21. package/BarChart/seriesConfig/{legend.js → bar/legend.js} +1 -1
  22. package/BarChart/seriesConfig/bar/seriesProcessor.d.ts +3 -0
  23. package/BarChart/seriesConfig/{seriesProcessor.js → bar/seriesProcessor.js} +1 -1
  24. package/BarChart/seriesConfig/bar/tooltip.d.ts +4 -0
  25. package/BarChart/seriesConfig/{tooltip.js → bar/tooltip.js} +1 -1
  26. package/BarChart/seriesConfig/bar/tooltipPosition.d.ts +3 -0
  27. package/BarChart/seriesConfig/bar/tooltipPosition.js +67 -0
  28. package/BarChart/seriesConfig/index.d.ts +1 -1
  29. package/BarChart/seriesConfig/index.js +10 -8
  30. package/BarChart/types.d.ts +1 -0
  31. package/BarChart/useBarPlotData.d.ts +17 -2
  32. package/BarChart/useBarPlotData.js +61 -35
  33. package/CHANGELOG.md +207 -0
  34. package/ChartDataProvider/ChartDataProvider.d.ts +1 -1
  35. package/ChartsAxis/ChartsAxis.d.ts +1 -2
  36. package/ChartsAxisHighlight/ChartsAxisHighlight.d.ts +1 -2
  37. package/ChartsAxisHighlight/ChartsXAxisHighlight.d.ts +1 -2
  38. package/ChartsAxisHighlight/ChartsXAxisHighlight.js +2 -1
  39. package/ChartsAxisHighlight/ChartsYAxisHighlight.d.ts +1 -2
  40. package/ChartsAxisHighlight/ChartsYAxisHighlight.js +2 -1
  41. package/ChartsBrushOverlay/ChartsBrushOverlay.d.ts +1 -2
  42. package/ChartsClipPath/ChartsClipPath.d.ts +1 -2
  43. package/ChartsClipPath/ChartsClipPath.js +0 -2
  44. package/ChartsGrid/ChartsGrid.d.ts +1 -2
  45. package/ChartsGrid/ChartsGrid.js +0 -2
  46. package/ChartsGrid/ChartsHorizontalGrid.d.ts +1 -2
  47. package/ChartsGrid/ChartsVerticalGrid.d.ts +1 -2
  48. package/ChartsLegend/continuousColorLegendClasses.d.ts +1 -1
  49. package/ChartsLocalizationProvider/ChartsLocalizationProvider.d.ts +1 -1
  50. package/ChartsOverlay/ChartsLoadingOverlay.d.ts +1 -2
  51. package/ChartsOverlay/ChartsLoadingOverlay.js +0 -2
  52. package/ChartsOverlay/ChartsNoDataOverlay.d.ts +1 -2
  53. package/ChartsOverlay/ChartsNoDataOverlay.js +0 -2
  54. package/ChartsOverlay/ChartsOverlay.d.ts +1 -1
  55. package/ChartsReferenceLine/ChartsReferenceLine.d.ts +1 -2
  56. package/ChartsReferenceLine/ChartsReferenceLine.js +0 -2
  57. package/ChartsReferenceLine/ChartsXReferenceLine.d.ts +1 -2
  58. package/ChartsReferenceLine/ChartsXReferenceLine.js +0 -2
  59. package/ChartsReferenceLine/ChartsYReferenceLine.d.ts +1 -2
  60. package/ChartsReferenceLine/ChartsYReferenceLine.js +0 -2
  61. package/ChartsSurface/ChartsSurface.js +8 -9
  62. package/ChartsSurface/chartsSurfaceClasses.d.ts +6 -0
  63. package/ChartsSurface/chartsSurfaceClasses.js +21 -0
  64. package/ChartsSurface/index.d.ts +2 -1
  65. package/ChartsSurface/index.js +12 -1
  66. package/ChartsText/ChartsText.d.ts +1 -1
  67. package/ChartsTooltip/ChartsAxisTooltipContent.d.ts +1 -2
  68. package/ChartsTooltip/ChartsAxisTooltipContent.js +0 -2
  69. package/ChartsTooltip/ChartsItemTooltipContent.d.ts +1 -2
  70. package/ChartsTooltip/ChartsItemTooltipContent.js +0 -2
  71. package/ChartsTooltip/ChartsTooltip.d.ts +1 -2
  72. package/ChartsTooltip/ChartsTooltip.js +9 -2
  73. package/ChartsTooltip/ChartsTooltipContainer.d.ts +10 -1
  74. package/ChartsTooltip/ChartsTooltipContainer.js +61 -36
  75. package/ChartsTooltip/ChartsTooltipTable.d.ts +1 -1
  76. package/ChartsTooltip/useItemTooltip.js +7 -14
  77. package/ChartsWrapper/ChartsWrapper.d.ts +1 -1
  78. package/ChartsWrapper/ChartsWrapper.js +5 -6
  79. package/ChartsXAxis/ChartsGroupedXAxisTicks.d.ts +1 -2
  80. package/ChartsXAxis/ChartsSingleXAxisTicks.d.ts +1 -2
  81. package/ChartsXAxis/ChartsXAxis.d.ts +1 -2
  82. package/ChartsXAxis/ChartsXAxis.js +0 -2
  83. package/ChartsXAxis/ChartsXAxisImpl.d.ts +1 -2
  84. package/ChartsXAxis/useAxisTicksProps.d.ts +113 -113
  85. package/ChartsYAxis/ChartsGroupedYAxisTicks.d.ts +1 -2
  86. package/ChartsYAxis/ChartsSingleYAxisTicks.d.ts +1 -2
  87. package/ChartsYAxis/ChartsYAxis.d.ts +1 -2
  88. package/ChartsYAxis/ChartsYAxis.js +0 -2
  89. package/ChartsYAxis/ChartsYAxisImpl.d.ts +1 -2
  90. package/ChartsYAxis/useAxisTicksProps.d.ts +113 -113
  91. package/Gauge/GaugeProvider.d.ts +1 -1
  92. package/Gauge/GaugeReferenceArc.d.ts +1 -1
  93. package/Gauge/GaugeValueArc.d.ts +1 -1
  94. package/Gauge/GaugeValueText.d.ts +1 -2
  95. package/Gauge/GaugeValueText.js +0 -2
  96. package/LineChart/AnimatedArea.d.ts +1 -1
  97. package/LineChart/AppearingMask.d.ts +1 -1
  98. package/LineChart/AreaElement.d.ts +1 -1
  99. package/LineChart/AreaPlot.d.ts +1 -1
  100. package/LineChart/CircleMarkElement.d.ts +1 -1
  101. package/LineChart/FocusedMark.d.ts +1 -2
  102. package/LineChart/FocusedMark.js +0 -2
  103. package/LineChart/LineChart.plugins.d.ts +1 -1
  104. package/LineChart/LineChart.plugins.js +1 -1
  105. package/LineChart/LineElement.d.ts +1 -1
  106. package/LineChart/LineHighlightElement.d.ts +1 -1
  107. package/LineChart/LineHighlightPlot.d.ts +1 -1
  108. package/LineChart/LinePlot.d.ts +1 -1
  109. package/LineChart/MarkElement.d.ts +1 -1
  110. package/LineChart/MarkPlot.d.ts +1 -1
  111. package/LineChart/seriesConfig/getColor.js +28 -5
  112. package/LineChart/seriesConfig/getSeriesWithDefaultValues.js +3 -3
  113. package/LineChart/seriesConfig/index.d.ts +1 -1
  114. package/LineChart/seriesConfig/index.js +4 -2
  115. package/LineChart/seriesConfig/tooltipPosition.d.ts +3 -0
  116. package/LineChart/seriesConfig/tooltipPosition.js +33 -0
  117. package/PieChart/PieArcLabelPlot.d.ts +1 -1
  118. package/PieChart/PieArcPlot.d.ts +1 -1
  119. package/PieChart/PiePlot.d.ts +1 -2
  120. package/PieChart/PiePlot.js +0 -2
  121. package/PieChart/seriesConfig/getSeriesWithDefaultValues.js +5 -6
  122. package/PieChart/seriesConfig/index.d.ts +1 -1
  123. package/PieChart/seriesConfig/index.js +4 -2
  124. package/PieChart/seriesConfig/seriesProcessor.js +2 -1
  125. package/PieChart/seriesConfig/tooltipPosition.d.ts +3 -0
  126. package/PieChart/seriesConfig/tooltipPosition.js +75 -0
  127. package/RadarChart/RadarAxis/RadarAxis.d.ts +1 -1
  128. package/RadarChart/RadarAxis/RadarAxis.utils.d.ts +2 -2
  129. package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.d.ts +1 -2
  130. package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.js +7 -3
  131. package/RadarChart/RadarChart.plugins.d.ts +2 -2
  132. package/RadarChart/RadarChart.plugins.js +1 -1
  133. package/RadarChart/RadarDataProvider/RadarDataProvider.d.ts +1 -2
  134. package/RadarChart/RadarGrid/CircularRadarGrid.d.ts +1 -2
  135. package/RadarChart/RadarGrid/CircularRadarStripes.d.ts +1 -2
  136. package/RadarChart/RadarGrid/RadarGrid.d.ts +1 -2
  137. package/RadarChart/RadarGrid/SharpRadarGrid.d.ts +1 -2
  138. package/RadarChart/RadarGrid/SharpRadarStripes.d.ts +1 -2
  139. package/RadarChart/RadarMetricLabels/RadarMetricLabels.d.ts +1 -2
  140. package/RadarChart/RadarSeriesPlot/RadarSeriesArea.d.ts +1 -1
  141. package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.d.ts +1 -1
  142. package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.js +1 -2
  143. package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.d.ts +1 -2
  144. package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.js +1 -3
  145. package/RadarChart/RadarSeriesPlot/useRadarSeriesData.d.ts +4 -1
  146. package/RadarChart/RadarSeriesPlot/useRadarSeriesData.js +8 -1
  147. package/RadarChart/seriesConfig/getColor.js +12 -1
  148. package/RadarChart/seriesConfig/getSeriesWithDefaultValues.js +3 -3
  149. package/ScatterChart/BatchScatter.d.ts +1 -2
  150. package/ScatterChart/BatchScatter.js +4 -4
  151. package/ScatterChart/Scatter.d.ts +7 -2
  152. package/ScatterChart/Scatter.js +7 -3
  153. package/ScatterChart/ScatterChart.plugins.d.ts +1 -1
  154. package/ScatterChart/ScatterChart.plugins.js +1 -1
  155. package/ScatterChart/ScatterMarker.d.ts +1 -1
  156. package/ScatterChart/ScatterPlot.d.ts +1 -1
  157. package/ScatterChart/ScatterPlot.js +1 -1
  158. package/ScatterChart/seriesConfig/getColor.js +36 -7
  159. package/ScatterChart/seriesConfig/getSeriesWithDefaultValues.js +3 -3
  160. package/ScatterChart/seriesConfig/index.d.ts +1 -1
  161. package/ScatterChart/seriesConfig/index.js +4 -2
  162. package/ScatterChart/seriesConfig/tooltipPosition.d.ts +3 -0
  163. package/ScatterChart/seriesConfig/tooltipPosition.js +33 -0
  164. package/context/ChartProvider/ChartProvider.d.ts +1 -1
  165. package/context/ChartProvider/ChartProvider.js +5 -5
  166. package/context/ChartProvider/ChartProvider.types.d.ts +3 -3
  167. package/context/ChartsSlotsContext.d.ts +1 -1
  168. package/esm/BarChart/AnimatedBarElement.d.ts +1 -1
  169. package/esm/BarChart/BarChart.js +1 -0
  170. package/esm/BarChart/BarChart.plugins.d.ts +1 -1
  171. package/esm/BarChart/BarChart.plugins.js +1 -1
  172. package/esm/BarChart/BarClipPath.d.ts +1 -1
  173. package/esm/BarChart/BarElement.d.ts +1 -1
  174. package/esm/BarChart/BarElement.js +6 -8
  175. package/esm/BarChart/BarLabel/BarLabel.d.ts +1 -1
  176. package/esm/BarChart/BarLabel/BarLabelItem.d.ts +1 -1
  177. package/esm/BarChart/BarLabel/BarLabelPlot.d.ts +2 -3
  178. package/esm/BarChart/BarLabel/BarLabelPlot.js +41 -36
  179. package/esm/BarChart/BarPlot.d.ts +13 -3
  180. package/esm/BarChart/BarPlot.js +3 -3
  181. package/esm/BarChart/seriesConfig/{extremums.d.ts → bar/extremums.d.ts} +1 -1
  182. package/esm/BarChart/seriesConfig/{extremums.js → bar/extremums.js} +1 -1
  183. package/esm/BarChart/seriesConfig/bar/getColor.d.ts +3 -0
  184. package/esm/BarChart/seriesConfig/{getColor.js → bar/getColor.js} +28 -5
  185. package/esm/BarChart/seriesConfig/bar/getSeriesWithDefaultValues.d.ts +3 -0
  186. package/esm/BarChart/seriesConfig/{getSeriesWithDefaultValues.js → bar/getSeriesWithDefaultValues.js} +3 -3
  187. package/esm/BarChart/seriesConfig/bar/legend.d.ts +3 -0
  188. package/esm/BarChart/seriesConfig/{legend.js → bar/legend.js} +1 -1
  189. package/esm/BarChart/seriesConfig/bar/seriesProcessor.d.ts +3 -0
  190. package/esm/BarChart/seriesConfig/{seriesProcessor.js → bar/seriesProcessor.js} +1 -1
  191. package/esm/BarChart/seriesConfig/bar/tooltip.d.ts +4 -0
  192. package/esm/BarChart/seriesConfig/{tooltip.js → bar/tooltip.js} +1 -1
  193. package/esm/BarChart/seriesConfig/bar/tooltipPosition.d.ts +3 -0
  194. package/esm/BarChart/seriesConfig/bar/tooltipPosition.js +61 -0
  195. package/esm/BarChart/seriesConfig/index.d.ts +1 -1
  196. package/esm/BarChart/seriesConfig/index.js +9 -7
  197. package/esm/BarChart/types.d.ts +1 -0
  198. package/esm/BarChart/useBarPlotData.d.ts +17 -2
  199. package/esm/BarChart/useBarPlotData.js +60 -35
  200. package/esm/ChartDataProvider/ChartDataProvider.d.ts +1 -1
  201. package/esm/ChartsAxis/ChartsAxis.d.ts +1 -2
  202. package/esm/ChartsAxisHighlight/ChartsAxisHighlight.d.ts +1 -2
  203. package/esm/ChartsAxisHighlight/ChartsXAxisHighlight.d.ts +1 -2
  204. package/esm/ChartsAxisHighlight/ChartsXAxisHighlight.js +1 -2
  205. package/esm/ChartsAxisHighlight/ChartsYAxisHighlight.d.ts +1 -2
  206. package/esm/ChartsAxisHighlight/ChartsYAxisHighlight.js +1 -2
  207. package/esm/ChartsBrushOverlay/ChartsBrushOverlay.d.ts +1 -2
  208. package/esm/ChartsClipPath/ChartsClipPath.d.ts +1 -2
  209. package/esm/ChartsClipPath/ChartsClipPath.js +0 -1
  210. package/esm/ChartsGrid/ChartsGrid.d.ts +1 -2
  211. package/esm/ChartsGrid/ChartsGrid.js +0 -1
  212. package/esm/ChartsGrid/ChartsHorizontalGrid.d.ts +1 -2
  213. package/esm/ChartsGrid/ChartsVerticalGrid.d.ts +1 -2
  214. package/esm/ChartsLegend/continuousColorLegendClasses.d.ts +1 -1
  215. package/esm/ChartsLocalizationProvider/ChartsLocalizationProvider.d.ts +1 -1
  216. package/esm/ChartsOverlay/ChartsLoadingOverlay.d.ts +1 -2
  217. package/esm/ChartsOverlay/ChartsLoadingOverlay.js +0 -1
  218. package/esm/ChartsOverlay/ChartsNoDataOverlay.d.ts +1 -2
  219. package/esm/ChartsOverlay/ChartsNoDataOverlay.js +0 -1
  220. package/esm/ChartsOverlay/ChartsOverlay.d.ts +1 -1
  221. package/esm/ChartsReferenceLine/ChartsReferenceLine.d.ts +1 -2
  222. package/esm/ChartsReferenceLine/ChartsReferenceLine.js +0 -1
  223. package/esm/ChartsReferenceLine/ChartsXReferenceLine.d.ts +1 -2
  224. package/esm/ChartsReferenceLine/ChartsXReferenceLine.js +0 -1
  225. package/esm/ChartsReferenceLine/ChartsYReferenceLine.d.ts +1 -2
  226. package/esm/ChartsReferenceLine/ChartsYReferenceLine.js +0 -1
  227. package/esm/ChartsSurface/ChartsSurface.js +9 -10
  228. package/esm/ChartsSurface/chartsSurfaceClasses.d.ts +6 -0
  229. package/esm/ChartsSurface/chartsSurfaceClasses.js +13 -0
  230. package/esm/ChartsSurface/index.d.ts +2 -1
  231. package/esm/ChartsSurface/index.js +2 -1
  232. package/esm/ChartsText/ChartsText.d.ts +1 -1
  233. package/esm/ChartsTooltip/ChartsAxisTooltipContent.d.ts +1 -2
  234. package/esm/ChartsTooltip/ChartsAxisTooltipContent.js +0 -1
  235. package/esm/ChartsTooltip/ChartsItemTooltipContent.d.ts +1 -2
  236. package/esm/ChartsTooltip/ChartsItemTooltipContent.js +0 -1
  237. package/esm/ChartsTooltip/ChartsTooltip.d.ts +1 -2
  238. package/esm/ChartsTooltip/ChartsTooltip.js +9 -1
  239. package/esm/ChartsTooltip/ChartsTooltipContainer.d.ts +10 -1
  240. package/esm/ChartsTooltip/ChartsTooltipContainer.js +62 -37
  241. package/esm/ChartsTooltip/ChartsTooltipTable.d.ts +1 -1
  242. package/esm/ChartsTooltip/useItemTooltip.js +9 -16
  243. package/esm/ChartsWrapper/ChartsWrapper.d.ts +1 -1
  244. package/esm/ChartsWrapper/ChartsWrapper.js +6 -7
  245. package/esm/ChartsXAxis/ChartsGroupedXAxisTicks.d.ts +1 -2
  246. package/esm/ChartsXAxis/ChartsSingleXAxisTicks.d.ts +1 -2
  247. package/esm/ChartsXAxis/ChartsXAxis.d.ts +1 -2
  248. package/esm/ChartsXAxis/ChartsXAxis.js +0 -1
  249. package/esm/ChartsXAxis/ChartsXAxisImpl.d.ts +1 -2
  250. package/esm/ChartsXAxis/useAxisTicksProps.d.ts +113 -113
  251. package/esm/ChartsYAxis/ChartsGroupedYAxisTicks.d.ts +1 -2
  252. package/esm/ChartsYAxis/ChartsSingleYAxisTicks.d.ts +1 -2
  253. package/esm/ChartsYAxis/ChartsYAxis.d.ts +1 -2
  254. package/esm/ChartsYAxis/ChartsYAxis.js +0 -1
  255. package/esm/ChartsYAxis/ChartsYAxisImpl.d.ts +1 -2
  256. package/esm/ChartsYAxis/useAxisTicksProps.d.ts +113 -113
  257. package/esm/Gauge/GaugeProvider.d.ts +1 -1
  258. package/esm/Gauge/GaugeReferenceArc.d.ts +1 -1
  259. package/esm/Gauge/GaugeValueArc.d.ts +1 -1
  260. package/esm/Gauge/GaugeValueText.d.ts +1 -2
  261. package/esm/Gauge/GaugeValueText.js +0 -1
  262. package/esm/LineChart/AnimatedArea.d.ts +1 -1
  263. package/esm/LineChart/AppearingMask.d.ts +1 -1
  264. package/esm/LineChart/AreaElement.d.ts +1 -1
  265. package/esm/LineChart/AreaPlot.d.ts +1 -1
  266. package/esm/LineChart/CircleMarkElement.d.ts +1 -1
  267. package/esm/LineChart/FocusedMark.d.ts +1 -2
  268. package/esm/LineChart/FocusedMark.js +0 -1
  269. package/esm/LineChart/LineChart.plugins.d.ts +1 -1
  270. package/esm/LineChart/LineChart.plugins.js +1 -1
  271. package/esm/LineChart/LineElement.d.ts +1 -1
  272. package/esm/LineChart/LineHighlightElement.d.ts +1 -1
  273. package/esm/LineChart/LineHighlightPlot.d.ts +1 -1
  274. package/esm/LineChart/LinePlot.d.ts +1 -1
  275. package/esm/LineChart/MarkElement.d.ts +1 -1
  276. package/esm/LineChart/MarkPlot.d.ts +1 -1
  277. package/esm/LineChart/seriesConfig/getColor.js +28 -5
  278. package/esm/LineChart/seriesConfig/getSeriesWithDefaultValues.js +3 -3
  279. package/esm/LineChart/seriesConfig/index.d.ts +1 -1
  280. package/esm/LineChart/seriesConfig/index.js +3 -1
  281. package/esm/LineChart/seriesConfig/tooltipPosition.d.ts +3 -0
  282. package/esm/LineChart/seriesConfig/tooltipPosition.js +27 -0
  283. package/esm/PieChart/PieArcLabelPlot.d.ts +1 -1
  284. package/esm/PieChart/PieArcPlot.d.ts +1 -1
  285. package/esm/PieChart/PiePlot.d.ts +1 -2
  286. package/esm/PieChart/PiePlot.js +0 -1
  287. package/esm/PieChart/seriesConfig/getSeriesWithDefaultValues.js +5 -6
  288. package/esm/PieChart/seriesConfig/index.d.ts +1 -1
  289. package/esm/PieChart/seriesConfig/index.js +3 -1
  290. package/esm/PieChart/seriesConfig/seriesProcessor.js +2 -1
  291. package/esm/PieChart/seriesConfig/tooltipPosition.d.ts +3 -0
  292. package/esm/PieChart/seriesConfig/tooltipPosition.js +69 -0
  293. package/esm/RadarChart/RadarAxis/RadarAxis.d.ts +1 -1
  294. package/esm/RadarChart/RadarAxis/RadarAxis.utils.d.ts +2 -2
  295. package/esm/RadarChart/RadarAxisHighlight/RadarAxisHighlight.d.ts +1 -2
  296. package/esm/RadarChart/RadarAxisHighlight/RadarAxisHighlight.js +7 -2
  297. package/esm/RadarChart/RadarChart.plugins.d.ts +2 -2
  298. package/esm/RadarChart/RadarChart.plugins.js +1 -1
  299. package/esm/RadarChart/RadarDataProvider/RadarDataProvider.d.ts +1 -2
  300. package/esm/RadarChart/RadarGrid/CircularRadarGrid.d.ts +1 -2
  301. package/esm/RadarChart/RadarGrid/CircularRadarStripes.d.ts +1 -2
  302. package/esm/RadarChart/RadarGrid/RadarGrid.d.ts +1 -2
  303. package/esm/RadarChart/RadarGrid/SharpRadarGrid.d.ts +1 -2
  304. package/esm/RadarChart/RadarGrid/SharpRadarStripes.d.ts +1 -2
  305. package/esm/RadarChart/RadarMetricLabels/RadarMetricLabels.d.ts +1 -2
  306. package/esm/RadarChart/RadarSeriesPlot/RadarSeriesArea.d.ts +1 -1
  307. package/esm/RadarChart/RadarSeriesPlot/RadarSeriesMarks.d.ts +1 -1
  308. package/esm/RadarChart/RadarSeriesPlot/RadarSeriesMarks.js +1 -2
  309. package/esm/RadarChart/RadarSeriesPlot/RadarSeriesPlot.d.ts +1 -2
  310. package/esm/RadarChart/RadarSeriesPlot/RadarSeriesPlot.js +1 -2
  311. package/esm/RadarChart/RadarSeriesPlot/useRadarSeriesData.d.ts +4 -1
  312. package/esm/RadarChart/RadarSeriesPlot/useRadarSeriesData.js +8 -1
  313. package/esm/RadarChart/seriesConfig/getColor.js +12 -1
  314. package/esm/RadarChart/seriesConfig/getSeriesWithDefaultValues.js +3 -3
  315. package/esm/ScatterChart/BatchScatter.d.ts +1 -2
  316. package/esm/ScatterChart/BatchScatter.js +4 -4
  317. package/esm/ScatterChart/Scatter.d.ts +7 -2
  318. package/esm/ScatterChart/Scatter.js +7 -3
  319. package/esm/ScatterChart/ScatterChart.plugins.d.ts +1 -1
  320. package/esm/ScatterChart/ScatterChart.plugins.js +1 -1
  321. package/esm/ScatterChart/ScatterMarker.d.ts +1 -1
  322. package/esm/ScatterChart/ScatterPlot.d.ts +1 -1
  323. package/esm/ScatterChart/ScatterPlot.js +1 -1
  324. package/esm/ScatterChart/seriesConfig/getColor.js +36 -7
  325. package/esm/ScatterChart/seriesConfig/getSeriesWithDefaultValues.js +3 -3
  326. package/esm/ScatterChart/seriesConfig/index.d.ts +1 -1
  327. package/esm/ScatterChart/seriesConfig/index.js +3 -1
  328. package/esm/ScatterChart/seriesConfig/tooltipPosition.d.ts +3 -0
  329. package/esm/ScatterChart/seriesConfig/tooltipPosition.js +27 -0
  330. package/esm/context/ChartProvider/ChartProvider.d.ts +1 -1
  331. package/esm/context/ChartProvider/ChartProvider.js +5 -5
  332. package/esm/context/ChartProvider/ChartProvider.types.d.ts +3 -3
  333. package/esm/context/ChartsSlotsContext.d.ts +1 -1
  334. package/esm/hooks/index.d.ts +1 -0
  335. package/esm/hooks/index.js +1 -0
  336. package/esm/hooks/useDataset.d.ts +6 -0
  337. package/esm/hooks/useDataset.js +13 -0
  338. package/esm/hooks/useFocusedItem.d.ts +1 -1
  339. package/esm/hooks/useInteractionItemProps.js +8 -7
  340. package/esm/hooks/useIsItemFocused.js +5 -3
  341. package/esm/hooks/useItemHighlighted.js +2 -2
  342. package/esm/hooks/useItemHighlightedGetter.js +0 -1
  343. package/esm/index.js +1 -1
  344. package/esm/internals/colorScale.d.ts +1 -1
  345. package/esm/internals/components/ChartsAxesGradients/ChartsAxesGradients.d.ts +1 -2
  346. package/esm/internals/components/ChartsAxesGradients/ChartsContinuousGradient.d.ts +1 -2
  347. package/esm/internals/components/ChartsAxesGradients/ChartsContinuousGradient.js +0 -1
  348. package/esm/internals/components/ChartsAxesGradients/ChartsContinuousGradientObjectBound.d.ts +1 -2
  349. package/esm/internals/components/ChartsAxesGradients/ChartsContinuousGradientObjectBound.js +0 -1
  350. package/esm/internals/components/ChartsAxesGradients/ChartsPiecewiseGradient.d.ts +1 -2
  351. package/esm/internals/configInit.d.ts +1 -1
  352. package/esm/internals/createSeriesSelectorOfType.js +5 -3
  353. package/esm/internals/getScale.js +1 -1
  354. package/esm/internals/getSeriesColorFn.d.ts +5 -0
  355. package/esm/internals/getSeriesColorFn.js +3 -0
  356. package/esm/internals/index.d.ts +3 -2
  357. package/esm/internals/index.js +3 -2
  358. package/esm/internals/isCartesian.d.ts +3 -2
  359. package/esm/internals/isCartesian.js +3 -0
  360. package/esm/internals/plugins/allPlugins.d.ts +2 -2
  361. package/esm/internals/plugins/allPlugins.js +1 -1
  362. package/esm/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.js +7 -15
  363. package/esm/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.selectors.d.ts +2 -4
  364. package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.js +28 -36
  365. package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.d.ts +11 -17
  366. package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.js +27 -21
  367. package/esm/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.js +1 -6
  368. package/esm/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.d.ts +2 -4
  369. package/esm/internals/plugins/corePlugins/useChartId/useChartId.js +6 -10
  370. package/esm/internals/plugins/corePlugins/useChartId/useChartId.selectors.d.ts +2 -4
  371. package/esm/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.js +5 -4
  372. package/esm/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.types.d.ts +5 -3
  373. package/esm/internals/plugins/corePlugins/useChartSeries/useChartSeries.js +10 -10
  374. package/esm/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +11 -7
  375. package/esm/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.js +8 -1
  376. package/esm/internals/plugins/corePlugins/useChartSeries/useChartSeries.types.d.ts +1 -0
  377. package/esm/internals/plugins/featurePlugins/useChartBrush/useChartBrush.js +29 -28
  378. package/esm/internals/plugins/featurePlugins/useChartBrush/useChartBrush.selectors.d.ts +29 -57
  379. package/esm/internals/plugins/featurePlugins/useChartBrush/useChartBrush.selectors.js +5 -5
  380. package/esm/internals/plugins/featurePlugins/useChartBrush/useChartBrush.types.d.ts +11 -2
  381. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisScale.js +1 -1
  382. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.d.ts +15 -15
  383. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.js +21 -5
  384. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.js +11 -17
  385. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPreview.selectors.d.ts +12 -4
  386. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPreview.selectors.js +15 -9
  387. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +62 -86
  388. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.js +69 -45
  389. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.d.ts +14 -26
  390. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.js +3 -2
  391. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.ts +17 -33
  392. package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.js +23 -22
  393. package/esm/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.js +11 -15
  394. package/esm/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.selectors.d.ts +2 -4
  395. package/esm/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.js +12 -16
  396. package/esm/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.ts +23 -21
  397. package/esm/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.js +8 -7
  398. package/esm/internals/plugins/featurePlugins/useChartInteraction/index.d.ts +1 -0
  399. package/esm/internals/plugins/featurePlugins/useChartInteraction/index.js +2 -1
  400. package/esm/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.js +30 -43
  401. package/esm/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.d.ts +14 -28
  402. package/esm/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.types.d.ts +5 -1
  403. package/esm/internals/plugins/featurePlugins/useChartInteraction/useChartTooltip.selectors.d.ts +12 -0
  404. package/esm/internals/plugins/featurePlugins/useChartInteraction/useChartTooltip.selectors.js +40 -0
  405. package/esm/internals/plugins/featurePlugins/useChartKeyboardNavigation/isFocusableSeriesType.d.ts +3 -0
  406. package/esm/internals/plugins/featurePlugins/useChartKeyboardNavigation/isFocusableSeriesType.js +4 -0
  407. package/esm/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.helpers.d.ts +5 -4
  408. package/esm/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.helpers.js +8 -4
  409. package/esm/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.js +47 -53
  410. package/esm/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.d.ts +37 -33
  411. package/esm/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.js +16 -6
  412. package/esm/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.types.d.ts +4 -3
  413. package/esm/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.js +1 -1
  414. package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.js +3 -5
  415. package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.d.ts +11 -21
  416. package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.d.ts +14 -26
  417. package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.js +11 -10
  418. package/esm/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.js +1 -3
  419. package/esm/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.selectors.d.ts +3 -5
  420. package/esm/internals/plugins/models/plugin.d.ts +3 -2
  421. package/esm/internals/plugins/models/seriesConfig/index.d.ts +1 -0
  422. package/esm/internals/plugins/models/seriesConfig/index.js +1 -0
  423. package/esm/internals/plugins/models/seriesConfig/seriesConfig.types.d.ts +2 -0
  424. package/esm/internals/plugins/models/seriesConfig/tooltipItemPositionGetter.types.d.ts +24 -0
  425. package/esm/internals/plugins/models/seriesConfig/tooltipItemPositionGetter.types.js +1 -0
  426. package/esm/internals/plugins/utils/selectors.d.ts +13 -17
  427. package/esm/internals/plugins/utils/selectors.js +3 -35
  428. package/esm/internals/plugins/utils/useLazySelectorEffect.d.ts +2 -2
  429. package/esm/internals/plugins/utils/useLazySelectorEffect.js +2 -2
  430. package/esm/internals/scales/index.d.ts +3 -0
  431. package/esm/internals/scales/index.js +3 -0
  432. package/esm/internals/scales/scaleBand.d.ts +25 -0
  433. package/esm/internals/scales/scaleBand.js +159 -0
  434. package/esm/internals/scales/scalePoint.d.ts +25 -0
  435. package/esm/internals/scales/scalePoint.js +41 -0
  436. package/esm/internals/scales/scaleSymlog.d.ts +38 -0
  437. package/esm/internals/{symlogScale.js → scales/scaleSymlog.js} +40 -2
  438. package/esm/internals/store/useCharts.d.ts +3 -4
  439. package/esm/internals/store/useCharts.js +2 -2
  440. package/esm/internals/store/useSelector.d.ts +2 -4
  441. package/esm/internals/store/useSelector.js +2 -8
  442. package/esm/internals/store/useStore.d.ts +3 -5
  443. package/esm/locales/index.d.ts +2 -1
  444. package/esm/locales/index.js +1 -0
  445. package/esm/locales/nbNO.d.ts +115 -0
  446. package/esm/locales/nbNO.js +113 -0
  447. package/esm/models/seriesType/bar.d.ts +9 -0
  448. package/esm/models/seriesType/common.d.ts +25 -8
  449. package/esm/models/seriesType/config.d.ts +7 -16
  450. package/hooks/index.d.ts +1 -0
  451. package/hooks/index.js +12 -0
  452. package/hooks/useDataset.d.ts +6 -0
  453. package/hooks/useDataset.js +18 -0
  454. package/hooks/useFocusedItem.d.ts +1 -1
  455. package/hooks/useInteractionItemProps.js +8 -7
  456. package/hooks/useIsItemFocused.js +5 -3
  457. package/hooks/useItemHighlighted.js +2 -2
  458. package/index.js +1 -1
  459. package/internals/colorScale.d.ts +1 -1
  460. package/internals/components/ChartsAxesGradients/ChartsAxesGradients.d.ts +1 -2
  461. package/internals/components/ChartsAxesGradients/ChartsContinuousGradient.d.ts +1 -2
  462. package/internals/components/ChartsAxesGradients/ChartsContinuousGradient.js +0 -2
  463. package/internals/components/ChartsAxesGradients/ChartsContinuousGradientObjectBound.d.ts +1 -2
  464. package/internals/components/ChartsAxesGradients/ChartsContinuousGradientObjectBound.js +0 -2
  465. package/internals/components/ChartsAxesGradients/ChartsPiecewiseGradient.d.ts +1 -2
  466. package/internals/configInit.d.ts +1 -1
  467. package/internals/createSeriesSelectorOfType.js +6 -3
  468. package/internals/getScale.js +2 -2
  469. package/internals/getSeriesColorFn.d.ts +5 -0
  470. package/internals/getSeriesColorFn.js +9 -0
  471. package/internals/index.d.ts +3 -2
  472. package/internals/index.js +13 -1
  473. package/internals/isCartesian.d.ts +3 -2
  474. package/internals/isCartesian.js +4 -0
  475. package/internals/plugins/allPlugins.d.ts +2 -2
  476. package/internals/plugins/allPlugins.js +1 -1
  477. package/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.js +7 -15
  478. package/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.selectors.d.ts +2 -4
  479. package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.js +28 -36
  480. package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.d.ts +11 -17
  481. package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.js +27 -21
  482. package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.js +1 -6
  483. package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.d.ts +2 -4
  484. package/internals/plugins/corePlugins/useChartId/useChartId.js +6 -10
  485. package/internals/plugins/corePlugins/useChartId/useChartId.selectors.d.ts +2 -4
  486. package/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.js +5 -4
  487. package/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.types.d.ts +5 -3
  488. package/internals/plugins/corePlugins/useChartSeries/useChartSeries.js +10 -10
  489. package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +11 -7
  490. package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.js +9 -2
  491. package/internals/plugins/corePlugins/useChartSeries/useChartSeries.types.d.ts +1 -0
  492. package/internals/plugins/featurePlugins/useChartBrush/useChartBrush.js +29 -28
  493. package/internals/plugins/featurePlugins/useChartBrush/useChartBrush.selectors.d.ts +29 -57
  494. package/internals/plugins/featurePlugins/useChartBrush/useChartBrush.selectors.js +5 -5
  495. package/internals/plugins/featurePlugins/useChartBrush/useChartBrush.types.d.ts +11 -2
  496. package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisScale.js +3 -3
  497. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.d.ts +15 -15
  498. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.js +22 -6
  499. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.js +11 -17
  500. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPreview.selectors.d.ts +12 -4
  501. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPreview.selectors.js +14 -8
  502. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +62 -86
  503. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.js +70 -46
  504. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.d.ts +14 -26
  505. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.js +3 -2
  506. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.ts +17 -33
  507. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.js +23 -23
  508. package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.js +11 -15
  509. package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.selectors.d.ts +2 -4
  510. package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.js +12 -16
  511. package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.ts +23 -21
  512. package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.js +8 -7
  513. package/internals/plugins/featurePlugins/useChartInteraction/index.d.ts +1 -0
  514. package/internals/plugins/featurePlugins/useChartInteraction/index.js +12 -0
  515. package/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.js +30 -43
  516. package/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.d.ts +14 -28
  517. package/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.types.d.ts +5 -1
  518. package/internals/plugins/featurePlugins/useChartInteraction/useChartTooltip.selectors.d.ts +12 -0
  519. package/internals/plugins/featurePlugins/useChartInteraction/useChartTooltip.selectors.js +46 -0
  520. package/internals/plugins/featurePlugins/useChartKeyboardNavigation/isFocusableSeriesType.d.ts +3 -0
  521. package/internals/plugins/featurePlugins/useChartKeyboardNavigation/isFocusableSeriesType.js +10 -0
  522. package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.helpers.d.ts +5 -4
  523. package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.helpers.js +7 -4
  524. package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.js +47 -53
  525. package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.d.ts +37 -33
  526. package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.js +17 -7
  527. package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.types.d.ts +4 -3
  528. package/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.js +3 -3
  529. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.js +3 -5
  530. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.d.ts +11 -21
  531. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.d.ts +14 -26
  532. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.js +12 -10
  533. package/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.js +1 -3
  534. package/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.selectors.d.ts +3 -5
  535. package/internals/plugins/models/plugin.d.ts +3 -2
  536. package/internals/plugins/models/seriesConfig/index.d.ts +1 -0
  537. package/internals/plugins/models/seriesConfig/index.js +11 -0
  538. package/internals/plugins/models/seriesConfig/seriesConfig.types.d.ts +2 -0
  539. package/internals/plugins/models/seriesConfig/tooltipItemPositionGetter.types.d.ts +24 -0
  540. package/internals/plugins/models/seriesConfig/tooltipItemPositionGetter.types.js +5 -0
  541. package/internals/plugins/utils/selectors.d.ts +13 -17
  542. package/internals/plugins/utils/selectors.js +3 -35
  543. package/internals/plugins/utils/useLazySelectorEffect.d.ts +2 -2
  544. package/internals/plugins/utils/useLazySelectorEffect.js +2 -2
  545. package/internals/scales/index.d.ts +3 -0
  546. package/internals/scales/index.js +38 -0
  547. package/internals/scales/scaleBand.d.ts +25 -0
  548. package/internals/scales/scaleBand.js +167 -0
  549. package/internals/scales/scalePoint.d.ts +25 -0
  550. package/internals/scales/scalePoint.js +46 -0
  551. package/internals/scales/scaleSymlog.d.ts +38 -0
  552. package/internals/{symlogScale.js → scales/scaleSymlog.js} +39 -2
  553. package/internals/store/useCharts.d.ts +3 -4
  554. package/internals/store/useCharts.js +2 -2
  555. package/internals/store/useSelector.d.ts +2 -4
  556. package/internals/store/useSelector.js +2 -10
  557. package/internals/store/useStore.d.ts +3 -5
  558. package/locales/index.d.ts +2 -1
  559. package/locales/index.js +11 -0
  560. package/locales/nbNO.d.ts +115 -0
  561. package/locales/nbNO.js +119 -0
  562. package/models/seriesType/bar.d.ts +9 -0
  563. package/models/seriesType/common.d.ts +25 -8
  564. package/models/seriesType/config.d.ts +7 -16
  565. package/package.json +2 -2
  566. package/BarChart/seriesConfig/getColor.d.ts +0 -3
  567. package/BarChart/seriesConfig/getSeriesWithDefaultValues.d.ts +0 -3
  568. package/BarChart/seriesConfig/legend.d.ts +0 -3
  569. package/BarChart/seriesConfig/seriesProcessor.d.ts +0 -3
  570. package/BarChart/seriesConfig/tooltip.d.ts +0 -4
  571. package/esm/BarChart/seriesConfig/getColor.d.ts +0 -3
  572. package/esm/BarChart/seriesConfig/getSeriesWithDefaultValues.d.ts +0 -3
  573. package/esm/BarChart/seriesConfig/legend.d.ts +0 -3
  574. package/esm/BarChart/seriesConfig/seriesProcessor.d.ts +0 -3
  575. package/esm/BarChart/seriesConfig/tooltip.d.ts +0 -4
  576. package/esm/internals/plugins/utils/ChartStore.d.ts +0 -13
  577. package/esm/internals/plugins/utils/ChartStore.js +0 -22
  578. package/esm/internals/symlogScale.d.ts +0 -2
  579. package/internals/plugins/utils/ChartStore.d.ts +0 -13
  580. package/internals/plugins/utils/ChartStore.js +0 -29
  581. package/internals/symlogScale.d.ts +0 -2
@@ -1,19 +1,13 @@
1
1
  import { AxisItemIdentifier, ChartsAxisProps } from "../../../../models/axis.js";
2
- export declare const selectorChartsHighlightXAxisIndex: import("reselect").Selector<import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("../useChartInteraction/useChartInteraction.types.js").UseChartInteractionState> & {
2
+ export declare const selectorChartsHighlightXAxisIndex: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("../useChartInteraction/useChartInteraction.types.js").UseChartInteractionState> & {
3
3
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
4
- } & {
4
+ }) => AxisItemIdentifier[];
5
+ export declare const selectorChartsHighlightYAxisIndex: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("../useChartInteraction/useChartInteraction.types.js").UseChartInteractionState> & {
5
6
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
6
- } & Partial<import("./useChartCartesianAxis.types.js").UseChartCartesianAxisState> & Partial<{}> & Partial<import("../useChartBrush/index.js").UseChartBrushState>, AxisItemIdentifier[], [id?: import("../../../index.js").AxisId | undefined]>;
7
- export declare const selectorChartsHighlightYAxisIndex: import("reselect").Selector<import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("../useChartInteraction/useChartInteraction.types.js").UseChartInteractionState> & {
7
+ }) => AxisItemIdentifier[];
8
+ export declare const selectorChartsHighlightXAxisValue: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("../useChartInteraction/useChartInteraction.types.js").UseChartInteractionState> & {
8
9
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
9
- } & {
10
- cacheKey: import("../../models/index.js").ChartStateCacheKey;
11
- } & Partial<import("./useChartCartesianAxis.types.js").UseChartCartesianAxisState> & Partial<{}> & Partial<import("../useChartBrush/index.js").UseChartBrushState>, AxisItemIdentifier[], [id?: import("../../../index.js").AxisId | undefined]>;
12
- export declare const selectorChartsHighlightXAxisValue: import("reselect").Selector<import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("../useChartInteraction/useChartInteraction.types.js").UseChartInteractionState> & {
13
- cacheKey: import("../../models/index.js").ChartStateCacheKey;
14
- } & {
15
- cacheKey: import("../../models/index.js").ChartStateCacheKey;
16
- } & Partial<import("./useChartCartesianAxis.types.js").UseChartCartesianAxisState> & Partial<{}> & Partial<import("../useChartKeyboardNavigation/useChartKeyboardNavigation.types.js").UseChartKeyboardNavigationState> & Partial<import("../useChartBrush/index.js").UseChartBrushState>, {
10
+ }) => {
17
11
  value: any;
18
12
  axisId: import("../../../index.js").AxisId;
19
13
  dataIndex: number;
@@ -21,12 +15,10 @@ export declare const selectorChartsHighlightXAxisValue: import("reselect").Selec
21
15
  axisId: import("../../../index.js").AxisId;
22
16
  dataIndex: number | null;
23
17
  value: number | Date;
24
- }[], [id?: import("../../../index.js").AxisId | undefined]>;
25
- export declare const selectorChartsHighlightYAxisValue: import("reselect").Selector<import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("../useChartInteraction/useChartInteraction.types.js").UseChartInteractionState> & {
18
+ }[];
19
+ export declare const selectorChartsHighlightYAxisValue: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("../useChartInteraction/useChartInteraction.types.js").UseChartInteractionState> & {
26
20
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
27
- } & {
28
- cacheKey: import("../../models/index.js").ChartStateCacheKey;
29
- } & Partial<import("./useChartCartesianAxis.types.js").UseChartCartesianAxisState> & Partial<{}> & Partial<import("../useChartKeyboardNavigation/useChartKeyboardNavigation.types.js").UseChartKeyboardNavigationState> & Partial<import("../useChartBrush/index.js").UseChartBrushState>, {
21
+ }) => {
30
22
  value: any;
31
23
  axisId: import("../../../index.js").AxisId;
32
24
  dataIndex: number;
@@ -34,14 +26,10 @@ export declare const selectorChartsHighlightYAxisValue: import("reselect").Selec
34
26
  axisId: import("../../../index.js").AxisId;
35
27
  dataIndex: number | null;
36
28
  value: number | Date;
37
- }[], [id?: import("../../../index.js").AxisId | undefined]>;
38
- export declare const selectorChartsHighlightXAxis: import("reselect").Selector<import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("./useChartCartesianAxis.types.js").UseChartCartesianAxisState> & {
39
- cacheKey: import("../../models/index.js").ChartStateCacheKey;
40
- } & Partial<{}> & {
41
- cacheKey: import("../../models/index.js").ChartStateCacheKey;
42
- }, import("../../../index.js").ComputedAxis<keyof import("../../../index.js").AxisScaleConfig, any, ChartsAxisProps>[], []>;
43
- export declare const selectorChartsHighlightYAxis: import("reselect").Selector<import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("./useChartCartesianAxis.types.js").UseChartCartesianAxisState> & {
29
+ }[];
30
+ export declare const selectorChartsHighlightXAxis: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("./useChartCartesianAxis.types.js").UseChartCartesianAxisState> & {
44
31
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
45
- } & Partial<{}> & {
32
+ }) => import("../../../index.js").ComputedAxis<keyof import("../../../index.js").AxisScaleConfig, any, ChartsAxisProps>[];
33
+ export declare const selectorChartsHighlightYAxis: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("./useChartCartesianAxis.types.js").UseChartCartesianAxisState> & {
46
34
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
47
- }, import("../../../index.js").ComputedAxis<keyof import("../../../index.js").AxisScaleConfig, any, ChartsAxisProps>[], []>;
35
+ }) => import("../../../index.js").ComputedAxis<keyof import("../../../index.js").AxisScaleConfig, any, ChartsAxisProps>[];
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.selectorChartsHighlightYAxisValue = exports.selectorChartsHighlightYAxisIndex = exports.selectorChartsHighlightYAxis = exports.selectorChartsHighlightXAxisValue = exports.selectorChartsHighlightXAxisIndex = exports.selectorChartsHighlightXAxis = void 0;
8
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
+ var _store = require("@mui/x-internals/store");
9
10
  var _selectors = require("../../utils/selectors");
10
11
  var _useChartCartesianAxisRendering = require("./useChartCartesianAxisRendering.selectors");
11
12
  var _useChartCartesianInteraction = require("./useChartCartesianInteraction.selectors");
@@ -25,8 +26,8 @@ const selectAxisHighlight = (computedIndex, axis, axisItems, isBrushSelectionAct
25
26
  dataIndex: computedIndex
26
27
  }];
27
28
  };
28
- const selectorChartsHighlightXAxisIndex = exports.selectorChartsHighlightXAxisIndex = (0, _selectors.createSelector)([_useChartCartesianInteraction.selectorChartsInteractionXAxisIndex, _useChartCartesianAxisRendering.selectorChartXAxis, selectorChartControlledCartesianAxisHighlight, _useChartBrush.selectorBrushShouldPreventAxisHighlight], selectAxisHighlight);
29
- const selectorChartsHighlightYAxisIndex = exports.selectorChartsHighlightYAxisIndex = (0, _selectors.createSelector)([_useChartCartesianInteraction.selectorChartsInteractionYAxisIndex, _useChartCartesianAxisRendering.selectorChartYAxis, selectorChartControlledCartesianAxisHighlight, _useChartBrush.selectorBrushShouldPreventAxisHighlight], selectAxisHighlight);
29
+ const selectorChartsHighlightXAxisIndex = exports.selectorChartsHighlightXAxisIndex = (0, _store.createSelectorMemoized)(_useChartCartesianInteraction.selectorChartsInteractionXAxisIndex, _useChartCartesianAxisRendering.selectorChartXAxis, selectorChartControlledCartesianAxisHighlight, _useChartBrush.selectorBrushShouldPreventAxisHighlight, selectAxisHighlight);
30
+ const selectorChartsHighlightYAxisIndex = exports.selectorChartsHighlightYAxisIndex = (0, _store.createSelectorMemoized)(_useChartCartesianInteraction.selectorChartsInteractionYAxisIndex, _useChartCartesianAxisRendering.selectorChartYAxis, selectorChartControlledCartesianAxisHighlight, _useChartBrush.selectorBrushShouldPreventAxisHighlight, selectAxisHighlight);
30
31
  const selectAxisHighlightWithValue = (computedIndex, computedValue, axis, controlledAxisItems, keyboardAxisItem, lastInteractionUpdate, isBrushSelectionActive) => {
31
32
  if (isBrushSelectionActive) {
32
33
  return [];
@@ -1,60 +1,44 @@
1
1
  import { AxisId, AxisItemIdentifier, ChartsAxisProps } from "../../../../models/axis.js";
2
2
  import { ComputeResult } from "./computeAxisValue.js";
3
3
  export declare const selectChartsInteractionAxisIndex: (value: number | null, axes: ComputeResult<ChartsAxisProps>, id?: AxisId) => number | null;
4
- export declare const selectorChartsInteractionXAxisIndex: import("reselect").Selector<import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("../useChartInteraction/useChartInteraction.types.js").UseChartInteractionState> & {
4
+ export declare const selectorChartsInteractionXAxisIndex: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("../useChartInteraction/useChartInteraction.types.js").UseChartInteractionState> & {
5
5
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
6
- } & {
6
+ }, id?: AxisId | undefined) => number | null;
7
+ export declare const selectorChartsInteractionYAxisIndex: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("../useChartInteraction/useChartInteraction.types.js").UseChartInteractionState> & {
7
8
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
8
- } & Partial<import("./useChartCartesianAxis.types.js").UseChartCartesianAxisState> & Partial<{}>, number | null, [id?: AxisId | undefined]>;
9
- export declare const selectorChartsInteractionYAxisIndex: import("reselect").Selector<import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("../useChartInteraction/useChartInteraction.types.js").UseChartInteractionState> & {
9
+ }, id?: AxisId | undefined) => number | null;
10
+ export declare const selectorChartAxisInteraction: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("../useChartInteraction/useChartInteraction.types.js").UseChartInteractionState> & {
10
11
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
11
- } & {
12
- cacheKey: import("../../models/index.js").ChartStateCacheKey;
13
- } & Partial<import("./useChartCartesianAxis.types.js").UseChartCartesianAxisState> & Partial<{}>, number | null, [id?: AxisId | undefined]>;
14
- export declare const selectorChartAxisInteraction: import("reselect").Selector<import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("../useChartInteraction/useChartInteraction.types.js").UseChartInteractionState> & {
15
- cacheKey: import("../../models/index.js").ChartStateCacheKey;
16
- } & {
17
- cacheKey: import("../../models/index.js").ChartStateCacheKey;
18
- } & Partial<import("./useChartCartesianAxis.types.js").UseChartCartesianAxisState> & Partial<{}>, {
12
+ }) => {
19
13
  axisId: AxisId;
20
14
  dataIndex: number;
21
- }[], any[]>;
15
+ }[];
22
16
  /**
23
17
  * Get interaction values
24
18
  */
25
19
  type Value = number | Date | null;
26
- export declare const selectorChartsInteractionXAxisValue: import("reselect").Selector<import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("../useChartInteraction/useChartInteraction.types.js").UseChartInteractionState> & {
27
- cacheKey: import("../../models/index.js").ChartStateCacheKey;
28
- } & {
20
+ export declare const selectorChartsInteractionXAxisValue: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("../useChartInteraction/useChartInteraction.types.js").UseChartInteractionState> & {
29
21
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
30
- } & Partial<import("./useChartCartesianAxis.types.js").UseChartCartesianAxisState> & Partial<{}>, Value, [id?: AxisId | undefined]>;
31
- export declare const selectorChartsInteractionYAxisValue: import("reselect").Selector<import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("../useChartInteraction/useChartInteraction.types.js").UseChartInteractionState> & {
22
+ }, id?: AxisId | undefined) => Value;
23
+ export declare const selectorChartsInteractionYAxisValue: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("../useChartInteraction/useChartInteraction.types.js").UseChartInteractionState> & {
32
24
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
33
- } & {
34
- cacheKey: import("../../models/index.js").ChartStateCacheKey;
35
- } & Partial<import("./useChartCartesianAxis.types.js").UseChartCartesianAxisState> & Partial<{}>, Value, [id?: AxisId | undefined]>;
25
+ }, id?: AxisId | undefined) => Value;
36
26
  /**
37
27
  * Get x-axis ids and corresponding data index that should be display in the tooltip.
38
28
  */
39
- export declare const selectorChartsInteractionTooltipXAxes: import("reselect").Selector<import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("../useChartInteraction/useChartInteraction.types.js").UseChartInteractionState> & {
40
- cacheKey: import("../../models/index.js").ChartStateCacheKey;
41
- } & {
29
+ export declare const selectorChartsInteractionTooltipXAxes: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("../useChartInteraction/useChartInteraction.types.js").UseChartInteractionState> & {
42
30
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
43
- } & Partial<import("./useChartCartesianAxis.types.js").UseChartCartesianAxisState> & Partial<{}>, AxisItemIdentifier[], any[]>;
31
+ }) => AxisItemIdentifier[];
44
32
  /**
45
33
  * Get y-axis ids and corresponding data index that should be display in the tooltip.
46
34
  */
47
- export declare const selectorChartsInteractionTooltipYAxes: import("reselect").Selector<import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("../useChartInteraction/useChartInteraction.types.js").UseChartInteractionState> & {
35
+ export declare const selectorChartsInteractionTooltipYAxes: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("../useChartInteraction/useChartInteraction.types.js").UseChartInteractionState> & {
48
36
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
49
- } & {
50
- cacheKey: import("../../models/index.js").ChartStateCacheKey;
51
- } & Partial<import("./useChartCartesianAxis.types.js").UseChartCartesianAxisState> & Partial<{}>, AxisItemIdentifier[], any[]>;
37
+ }) => AxisItemIdentifier[];
52
38
  /**
53
39
  * Return `true` if the axis tooltip has something to display.
54
40
  */
55
- export declare const selectorChartsInteractionAxisTooltip: import("reselect").Selector<import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("../useChartInteraction/useChartInteraction.types.js").UseChartInteractionState> & {
56
- cacheKey: import("../../models/index.js").ChartStateCacheKey;
57
- } & {
41
+ export declare const selectorChartsInteractionAxisTooltip: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("../useChartInteraction/useChartInteraction.types.js").UseChartInteractionState> & {
58
42
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
59
- } & Partial<import("./useChartCartesianAxis.types.js").UseChartCartesianAxisState> & Partial<{}>, boolean, any[]>;
43
+ }) => boolean;
60
44
  export {};
@@ -5,12 +5,11 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.selectorChartsInteractionYAxisValue = exports.selectorChartsInteractionYAxisIndex = exports.selectorChartsInteractionXAxisValue = exports.selectorChartsInteractionXAxisIndex = exports.selectorChartsInteractionTooltipYAxes = exports.selectorChartsInteractionTooltipXAxes = exports.selectorChartsInteractionAxisTooltip = exports.selectorChartAxisInteraction = exports.selectChartsInteractionAxisIndex = void 0;
7
7
  var _isDeepEqual = require("@mui/x-internals/isDeepEqual");
8
+ var _store = require("@mui/x-internals/store");
8
9
  var _selectors = require("../../utils/selectors");
9
10
  var _useChartInteraction = require("../useChartInteraction/useChartInteraction.selectors");
10
11
  var _getAxisValue = require("./getAxisValue");
11
12
  var _useChartCartesianAxisRendering = require("./useChartCartesianAxisRendering.selectors");
12
- const optionalGetAxisId = (_, id) => id;
13
-
14
13
  /**
15
14
  * Get interaction indexes
16
15
  */
@@ -26,8 +25,8 @@ const selectChartsInteractionAxisIndex = (value, axes, id) => {
26
25
  return index === -1 ? null : index;
27
26
  };
28
27
  exports.selectChartsInteractionAxisIndex = selectChartsInteractionAxisIndex;
29
- const selectorChartsInteractionXAxisIndex = exports.selectorChartsInteractionXAxisIndex = (0, _selectors.createSelector)([_useChartInteraction.selectorChartsInteractionPointerX, _useChartCartesianAxisRendering.selectorChartXAxis, optionalGetAxisId], selectChartsInteractionAxisIndex);
30
- const selectorChartsInteractionYAxisIndex = exports.selectorChartsInteractionYAxisIndex = (0, _selectors.createSelector)([_useChartInteraction.selectorChartsInteractionPointerY, _useChartCartesianAxisRendering.selectorChartYAxis, optionalGetAxisId], selectChartsInteractionAxisIndex);
28
+ const selectorChartsInteractionXAxisIndex = exports.selectorChartsInteractionXAxisIndex = (0, _selectors.createSelector)([_useChartInteraction.selectorChartsInteractionPointerX, _useChartCartesianAxisRendering.selectorChartXAxis], selectChartsInteractionAxisIndex);
29
+ const selectorChartsInteractionYAxisIndex = exports.selectorChartsInteractionYAxisIndex = (0, _selectors.createSelector)([_useChartInteraction.selectorChartsInteractionPointerY, _useChartCartesianAxisRendering.selectorChartYAxis], selectChartsInteractionAxisIndex);
31
30
  const selectorChartAxisInteraction = exports.selectorChartAxisInteraction = (0, _selectors.createSelector)([_useChartInteraction.selectorChartsInteractionPointerX, _useChartInteraction.selectorChartsInteractionPointerY, _useChartCartesianAxisRendering.selectorChartXAxis, _useChartCartesianAxisRendering.selectorChartYAxis], (x, y, xAxis, yAxis) => [...(x === null ? [] : xAxis.axisIds.map(axisId => ({
32
31
  axisId,
33
32
  dataIndex: indexGetter(x, xAxis, axisId)
@@ -46,25 +45,33 @@ function valueGetter(value, axes, indexes, ids = axes.axisIds[0]) {
46
45
  return (0, _getAxisValue.getAxisValue)(axis.scale, axis.data, value, indexes[axisIndex]);
47
46
  }) : (0, _getAxisValue.getAxisValue)(axes.axis[ids].scale, axes.axis[ids].data, value, indexes);
48
47
  }
49
- const selectorChartsInteractionXAxisValue = exports.selectorChartsInteractionXAxisValue = (0, _selectors.createSelector)([_useChartInteraction.selectorChartsInteractionPointerX, _useChartCartesianAxisRendering.selectorChartXAxis, selectorChartsInteractionXAxisIndex, optionalGetAxisId], (x, xAxes, xIndex, id) => {
48
+ const selectorChartsInteractionXAxisValue = exports.selectorChartsInteractionXAxisValue = (0, _selectors.createSelector)([_useChartInteraction.selectorChartsInteractionPointerX, _useChartCartesianAxisRendering.selectorChartXAxis, selectorChartsInteractionXAxisIndex], (x, xAxes, xIndex, id) => {
50
49
  if (x === null || xAxes.axisIds.length === 0) {
51
50
  return null;
52
51
  }
53
52
  return valueGetter(x, xAxes, xIndex, id);
54
53
  });
55
- const selectorChartsInteractionYAxisValue = exports.selectorChartsInteractionYAxisValue = (0, _selectors.createSelector)([_useChartInteraction.selectorChartsInteractionPointerY, _useChartCartesianAxisRendering.selectorChartYAxis, selectorChartsInteractionYAxisIndex, optionalGetAxisId], (y, yAxes, yIndex, id) => {
54
+ const selectorChartsInteractionYAxisValue = exports.selectorChartsInteractionYAxisValue = (0, _selectors.createSelector)([_useChartInteraction.selectorChartsInteractionPointerY, _useChartCartesianAxisRendering.selectorChartYAxis, selectorChartsInteractionYAxisIndex], (y, yAxes, yIndex, id) => {
56
55
  if (y === null || yAxes.axisIds.length === 0) {
57
56
  return null;
58
57
  }
59
58
  return valueGetter(y, yAxes, yIndex, id);
60
59
  });
60
+ const EMPTY_ARRAY = [];
61
61
 
62
62
  /**
63
63
  * Get x-axis ids and corresponding data index that should be display in the tooltip.
64
64
  */
65
- const selectorChartsInteractionTooltipXAxes = exports.selectorChartsInteractionTooltipXAxes = (0, _selectors.createSelector)([_useChartInteraction.selectorChartsInteractionPointerX, _useChartCartesianAxisRendering.selectorChartXAxis], (value, axes) => {
65
+ const selectorChartsInteractionTooltipXAxes = exports.selectorChartsInteractionTooltipXAxes = (0, _store.createSelectorMemoizedWithOptions)({
66
+ memoizeOptions: {
67
+ // Keep the same reference if array content is the same.
68
+ // If possible, avoid this pattern by creating selectors that
69
+ // uses string/number as arguments.
70
+ resultEqualityCheck: _isDeepEqual.isDeepEqual
71
+ }
72
+ })(_useChartInteraction.selectorChartsInteractionPointerX, _useChartCartesianAxisRendering.selectorChartXAxis, (value, axes) => {
66
73
  if (value === null) {
67
- return [];
74
+ return EMPTY_ARRAY;
68
75
  }
69
76
  return axes.axisIds.filter(id => axes.axis[id].triggerTooltip).map(axisId => ({
70
77
  axisId,
@@ -72,21 +79,21 @@ const selectorChartsInteractionTooltipXAxes = exports.selectorChartsInteractionT
72
79
  })).filter(({
73
80
  dataIndex
74
81
  }) => dataIndex >= 0);
75
- }, {
82
+ });
83
+
84
+ /**
85
+ * Get y-axis ids and corresponding data index that should be display in the tooltip.
86
+ */
87
+ const selectorChartsInteractionTooltipYAxes = exports.selectorChartsInteractionTooltipYAxes = (0, _store.createSelectorMemoizedWithOptions)({
76
88
  memoizeOptions: {
77
89
  // Keep the same reference if array content is the same.
78
90
  // If possible, avoid this pattern by creating selectors that
79
91
  // uses string/number as arguments.
80
92
  resultEqualityCheck: _isDeepEqual.isDeepEqual
81
93
  }
82
- });
83
-
84
- /**
85
- * Get y-axis ids and corresponding data index that should be display in the tooltip.
86
- */
87
- const selectorChartsInteractionTooltipYAxes = exports.selectorChartsInteractionTooltipYAxes = (0, _selectors.createSelector)([_useChartInteraction.selectorChartsInteractionPointerY, _useChartCartesianAxisRendering.selectorChartYAxis], (value, axes) => {
94
+ })(_useChartInteraction.selectorChartsInteractionPointerY, _useChartCartesianAxisRendering.selectorChartYAxis, (value, axes) => {
88
95
  if (value === null) {
89
- return [];
96
+ return EMPTY_ARRAY;
90
97
  }
91
98
  return axes.axisIds.filter(id => axes.axis[id].triggerTooltip).map(axisId => ({
92
99
  axisId,
@@ -94,13 +101,6 @@ const selectorChartsInteractionTooltipYAxes = exports.selectorChartsInteractionT
94
101
  })).filter(({
95
102
  dataIndex
96
103
  }) => dataIndex >= 0);
97
- }, {
98
- memoizeOptions: {
99
- // Keep the same reference if array content is the same.
100
- // If possible, avoid this pattern by creating selectors that
101
- // uses string/number as arguments.
102
- resultEqualityCheck: _isDeepEqual.isDeepEqual
103
- }
104
104
  });
105
105
 
106
106
  /**
@@ -46,11 +46,9 @@ const useChartClosestPoint = ({
46
46
  const defaultXAxisId = xAxisIds[0];
47
47
  const defaultYAxisId = yAxisIds[0];
48
48
  (0, _useEnhancedEffect.default)(() => {
49
- store.update(prev => prev.voronoi.isVoronoiEnabled === !disableVoronoi ? prev : (0, _extends2.default)({}, prev, {
50
- voronoi: {
51
- isVoronoiEnabled: !disableVoronoi
52
- }
53
- }));
49
+ store.set('voronoi', {
50
+ isVoronoiEnabled: !disableVoronoi
51
+ });
54
52
  }, [store, disableVoronoi]);
55
53
  React.useEffect(() => {
56
54
  if (svgRef.current === null || disableVoronoi) {
@@ -145,6 +143,8 @@ const useChartClosestPoint = ({
145
143
  type: 'scatter',
146
144
  seriesId,
147
145
  dataIndex
146
+ }, {
147
+ interaction: 'pointer'
148
148
  });
149
149
  instance.setHighlight?.({
150
150
  seriesId,
@@ -181,18 +181,14 @@ const useChartClosestPoint = ({
181
181
 
182
182
  // Instance implementation
183
183
  const enableVoronoiCallback = (0, _useEventCallback.default)(() => {
184
- store.update(prev => (0, _extends2.default)({}, prev, {
185
- voronoi: (0, _extends2.default)({}, prev.voronoi, {
186
- isVoronoiEnabled: true
187
- })
188
- }));
184
+ store.set('voronoi', {
185
+ isVoronoiEnabled: true
186
+ });
189
187
  });
190
188
  const disableVoronoiCallback = (0, _useEventCallback.default)(() => {
191
- store.update(prev => (0, _extends2.default)({}, prev, {
192
- voronoi: (0, _extends2.default)({}, prev.voronoi, {
193
- isVoronoiEnabled: false
194
- })
195
- }));
189
+ store.set('voronoi', {
190
+ isVoronoiEnabled: false
191
+ });
196
192
  });
197
193
  return {
198
194
  instance: {
@@ -1,5 +1,3 @@
1
- export declare const selectorChartsIsVoronoiEnabled: import("reselect").Selector<import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & import("./useChartClosestPoint.types.js").UseChartVoronoiState & Partial<{}> & {
1
+ export declare const selectorChartsIsVoronoiEnabled: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & import("./useChartClosestPoint.types.js").UseChartVoronoiState & Partial<{}> & {
2
2
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
3
- } & {
4
- cacheKey: import("../../models/index.js").ChartStateCacheKey;
5
- }, boolean | undefined, any[]>;
3
+ }) => boolean | undefined;
@@ -22,11 +22,11 @@ const useChartHighlight = ({
22
22
  defaultValue: null
23
23
  });
24
24
  (0, _useEnhancedEffect.default)(() => {
25
- store.update(prevState => prevState.highlight.item === params.highlightedItem ? prevState : (0, _extends2.default)({}, prevState, {
26
- highlight: (0, _extends2.default)({}, prevState.highlight, {
25
+ if (store.state.highlight.item !== params.highlightedItem) {
26
+ store.set('highlight', (0, _extends2.default)({}, store.state.highlight, {
27
27
  item: params.highlightedItem
28
- })
29
- }));
28
+ }));
29
+ }
30
30
  }, [store, params.highlightedItem]);
31
31
  const clearHighlight = (0, _useEventCallback.default)(() => {
32
32
  params.onHighlightChange?.(null);
@@ -34,12 +34,10 @@ const useChartHighlight = ({
34
34
  if (prevItem === null) {
35
35
  return;
36
36
  }
37
- store.update(prev => (0, _extends2.default)({}, prev, {
38
- highlight: {
39
- item: null,
40
- lastUpdate: 'pointer'
41
- }
42
- }));
37
+ store.set('highlight', {
38
+ item: null,
39
+ lastUpdate: 'pointer'
40
+ });
43
41
  });
44
42
  const setHighlight = (0, _useEventCallback.default)(newItem => {
45
43
  const prevItem = store.getSnapshot().highlight.item;
@@ -47,12 +45,10 @@ const useChartHighlight = ({
47
45
  return;
48
46
  }
49
47
  params.onHighlightChange?.(newItem);
50
- store.update(prev => (0, _extends2.default)({}, prev, {
51
- highlight: {
52
- item: newItem,
53
- lastUpdate: 'pointer'
54
- }
55
- }));
48
+ store.set('highlight', {
49
+ item: newItem,
50
+ lastUpdate: 'pointer'
51
+ });
56
52
  });
57
53
  return {
58
54
  instance: {
@@ -1,34 +1,36 @@
1
1
  import { SeriesId } from "../../../../models/seriesType/common.js";
2
2
  import { HighlightItemData } from "./useChartHighlight.types.js";
3
3
  import { HighlightScope } from "./highlightConfig.types.js";
4
- export declare const selectorChartsHighlightScopePerSeriesId: import("reselect").Selector<import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<{}> & {
4
+ export declare const selectorChartsHighlightScopePerSeriesId: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<{}> & {
5
5
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
6
- } & {
6
+ }) => Map<SeriesId, Partial<HighlightScope> | undefined>;
7
+ export declare const selectorChartsHighlightedItem: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & import("./useChartHighlight.types.js").UseChartHighlightState & Partial<{}> & {
7
8
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
8
- }, Map<SeriesId, Partial<HighlightScope> | undefined>, any[]>;
9
- export declare const selectorChartsHighlightedItem: import("reselect").Selector<import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & import("./useChartHighlight.types.js").UseChartHighlightState & Partial<{}> & {
9
+ }) => HighlightItemData | null;
10
+ export declare const selectorChartsHighlightScope: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & import("./useChartHighlight.types.js").UseChartHighlightState & Partial<{}> & {
10
11
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
11
- } & Partial<import("../useChartKeyboardNavigation/useChartKeyboardNavigation.types.js").UseChartKeyboardNavigationState> & {
12
+ }) => Partial<HighlightScope> | null;
13
+ export declare const selectorChartsIsHighlightedCallback: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & import("./useChartHighlight.types.js").UseChartHighlightState & Partial<{}> & {
12
14
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
13
- }, HighlightItemData | null, any[]>;
14
- export declare const selectorChartsHighlightScope: import("reselect").Selector<import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<{}> & {
15
+ }) => (item: HighlightItemData | null) => boolean;
16
+ export declare const selectorChartsIsFadedCallback: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & import("./useChartHighlight.types.js").UseChartHighlightState & Partial<{}> & {
15
17
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
16
- } & {
18
+ }) => (item: HighlightItemData | null) => boolean;
19
+ export declare const selectorChartsIsHighlighted: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & import("./useChartHighlight.types.js").UseChartHighlightState & Partial<{}> & {
17
20
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
18
- } & import("./useChartHighlight.types.js").UseChartHighlightState & Partial<import("../useChartKeyboardNavigation/useChartKeyboardNavigation.types.js").UseChartKeyboardNavigationState>, Partial<HighlightScope> | null, any[]>;
19
- export declare const selectorChartsIsHighlightedCallback: import("reselect").Selector<import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<{}> & {
21
+ }, item: HighlightItemData | null) => boolean;
22
+ export declare const selectorChartIsSeriesHighlighted: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & import("./useChartHighlight.types.js").UseChartHighlightState & Partial<{}> & {
20
23
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
21
- } & {
24
+ }, seriesId: SeriesId) => boolean;
25
+ export declare const selectorChartIsSeriesFaded: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & import("./useChartHighlight.types.js").UseChartHighlightState & Partial<{}> & {
22
26
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
23
- } & import("./useChartHighlight.types.js").UseChartHighlightState & Partial<import("../useChartKeyboardNavigation/useChartKeyboardNavigation.types.js").UseChartKeyboardNavigationState>, (item: HighlightItemData | null) => boolean, any[]>;
24
- export declare const selectorChartsIsFadedCallback: import("reselect").Selector<import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<{}> & {
27
+ }, seriesId: SeriesId) => boolean;
28
+ export declare const selectorChartSeriesUnfadedItem: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & import("./useChartHighlight.types.js").UseChartHighlightState & Partial<{}> & {
25
29
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
26
- } & {
30
+ }, seriesId: SeriesId) => number | null | undefined;
31
+ export declare const selectorChartSeriesHighlightedItem: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & import("./useChartHighlight.types.js").UseChartHighlightState & Partial<{}> & {
27
32
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
28
- } & import("./useChartHighlight.types.js").UseChartHighlightState & Partial<import("../useChartKeyboardNavigation/useChartKeyboardNavigation.types.js").UseChartKeyboardNavigationState>, (item: HighlightItemData | null) => boolean, any[]>;
29
- export declare const selectorChartsIsHighlighted: import("reselect").Selector<any, boolean, [item: HighlightItemData | null]>;
30
- export declare const selectorChartIsSeriesHighlighted: import("reselect").Selector<any, boolean, [seriesId: SeriesId]>;
31
- export declare const selectorChartIsSeriesFaded: import("reselect").Selector<any, boolean, [seriesId: SeriesId]>;
32
- export declare const selectorChartSeriesUnfadedItem: import("reselect").Selector<any, number | null | undefined, [seriesId: SeriesId]>;
33
- export declare const selectorChartSeriesHighlightedItem: import("reselect").Selector<any, number | null | undefined, [seriesId: SeriesId]>;
34
- export declare const selectorChartsIsFaded: import("reselect").Selector<any, boolean, [item: HighlightItemData | null]>;
33
+ }, seriesId: SeriesId) => number | null | undefined;
34
+ export declare const selectorChartsIsFaded: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & import("./useChartHighlight.types.js").UseChartHighlightState & Partial<{}> & {
35
+ cacheKey: import("../../models/index.js").ChartStateCacheKey;
36
+ }, item: HighlightItemData | null) => boolean;
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.selectorChartsIsHighlightedCallback = exports.selectorChartsIsHighlighted = exports.selectorChartsIsFadedCallback = exports.selectorChartsIsFaded = exports.selectorChartsHighlightedItem = exports.selectorChartsHighlightScopePerSeriesId = exports.selectorChartsHighlightScope = exports.selectorChartSeriesUnfadedItem = exports.selectorChartSeriesHighlightedItem = exports.selectorChartIsSeriesHighlighted = exports.selectorChartIsSeriesFaded = void 0;
7
+ var _store = require("@mui/x-internals/store");
7
8
  var _selectors = require("../../utils/selectors");
8
9
  var _createIsHighlighted = require("./createIsHighlighted");
9
10
  var _createIsFaded = require("./createIsFaded");
@@ -22,7 +23,7 @@ const selectorChartsHighlightScopePerSeriesId = exports.selectorChartsHighlightS
22
23
  });
23
24
  return map;
24
25
  });
25
- const selectorChartsHighlightedItem = exports.selectorChartsHighlightedItem = (0, _selectors.createSelector)([selectHighlight, _useChartKeyboardNavigation.selectorChartsKeyboardItem], function selectorChartsHighlightedItem(highlight, keyboardItem) {
26
+ const selectorChartsHighlightedItem = exports.selectorChartsHighlightedItem = (0, _store.createSelectorMemoized)(selectHighlight, _useChartKeyboardNavigation.selectorChartsKeyboardItem, function selectorChartsHighlightedItem(highlight, keyboardItem) {
26
27
  return highlight.lastUpdate === 'pointer' ? highlight.item : keyboardItem;
27
28
  });
28
29
  const selectorChartsHighlightScope = exports.selectorChartsHighlightScope = (0, _selectors.createSelector)([selectorChartsHighlightScopePerSeriesId, selectorChartsHighlightedItem], function selectorChartsHighlightScope(seriesIdToHighlightScope, highlightedItem) {
@@ -37,13 +38,13 @@ const selectorChartsHighlightScope = exports.selectorChartsHighlightScope = (0,
37
38
  });
38
39
  const selectorChartsIsHighlightedCallback = exports.selectorChartsIsHighlightedCallback = (0, _selectors.createSelector)([selectorChartsHighlightScope, selectorChartsHighlightedItem], _createIsHighlighted.createIsHighlighted);
39
40
  const selectorChartsIsFadedCallback = exports.selectorChartsIsFadedCallback = (0, _selectors.createSelector)([selectorChartsHighlightScope, selectorChartsHighlightedItem], _createIsFaded.createIsFaded);
40
- const selectorChartsIsHighlighted = exports.selectorChartsIsHighlighted = (0, _selectors.createSelector)([selectorChartsHighlightScope, selectorChartsHighlightedItem, (_, item) => item], function selectorChartsIsHighlighted(highlightScope, highlightedItem, item) {
41
+ const selectorChartsIsHighlighted = exports.selectorChartsIsHighlighted = (0, _selectors.createSelector)([selectorChartsHighlightScope, selectorChartsHighlightedItem], function selectorChartsIsHighlighted(highlightScope, highlightedItem, item) {
41
42
  return (0, _createIsHighlighted.createIsHighlighted)(highlightScope, highlightedItem)(item);
42
43
  });
43
- const selectorChartIsSeriesHighlighted = exports.selectorChartIsSeriesHighlighted = (0, _selectors.createSelector)([selectorChartsHighlightScope, selectorChartsHighlightedItem, (_, seriesId) => seriesId], _highlightStates.isSeriesHighlighted);
44
- const selectorChartIsSeriesFaded = exports.selectorChartIsSeriesFaded = (0, _selectors.createSelector)([selectorChartsHighlightScope, selectorChartsHighlightedItem, (_, seriesId) => seriesId], _highlightStates.isSeriesFaded);
45
- const selectorChartSeriesUnfadedItem = exports.selectorChartSeriesUnfadedItem = (0, _selectors.createSelector)([selectorChartsHighlightScope, selectorChartsHighlightedItem, (_, seriesId) => seriesId], _highlightStates.getSeriesUnfadedItem);
46
- const selectorChartSeriesHighlightedItem = exports.selectorChartSeriesHighlightedItem = (0, _selectors.createSelector)([selectorChartsHighlightScope, selectorChartsHighlightedItem, (_, seriesId) => seriesId], _highlightStates.getSeriesHighlightedItem);
47
- const selectorChartsIsFaded = exports.selectorChartsIsFaded = (0, _selectors.createSelector)([selectorChartsHighlightScope, selectorChartsHighlightedItem, (_, item) => item], function selectorChartsIsFaded(highlightScope, highlightedItem, item) {
44
+ const selectorChartIsSeriesHighlighted = exports.selectorChartIsSeriesHighlighted = (0, _selectors.createSelector)([selectorChartsHighlightScope, selectorChartsHighlightedItem], _highlightStates.isSeriesHighlighted);
45
+ const selectorChartIsSeriesFaded = exports.selectorChartIsSeriesFaded = (0, _selectors.createSelector)([selectorChartsHighlightScope, selectorChartsHighlightedItem], _highlightStates.isSeriesFaded);
46
+ const selectorChartSeriesUnfadedItem = exports.selectorChartSeriesUnfadedItem = (0, _selectors.createSelector)([selectorChartsHighlightScope, selectorChartsHighlightedItem], _highlightStates.getSeriesUnfadedItem);
47
+ const selectorChartSeriesHighlightedItem = exports.selectorChartSeriesHighlightedItem = (0, _selectors.createSelector)([selectorChartsHighlightScope, selectorChartsHighlightedItem], _highlightStates.getSeriesHighlightedItem);
48
+ const selectorChartsIsFaded = exports.selectorChartsIsFaded = (0, _selectors.createSelector)([selectorChartsHighlightScope, selectorChartsHighlightedItem], function selectorChartsIsFaded(highlightScope, highlightedItem, item) {
48
49
  return (0, _createIsFaded.createIsFaded)(highlightScope, highlightedItem)(item);
49
50
  });
@@ -1,3 +1,4 @@
1
1
  export { useChartInteraction } from "./useChartInteraction.js";
2
2
  export * from "./useChartInteraction.selectors.js";
3
+ export * from "./useChartTooltip.selectors.js";
3
4
  export type { UseChartInteractionSignature } from "./useChartInteraction.types.js";
@@ -24,4 +24,16 @@ Object.keys(_useChartInteraction2).forEach(function (key) {
24
24
  return _useChartInteraction2[key];
25
25
  }
26
26
  });
27
+ });
28
+ var _useChartTooltip = require("./useChartTooltip.selectors");
29
+ Object.keys(_useChartTooltip).forEach(function (key) {
30
+ if (key === "default" || key === "__esModule") return;
31
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
32
+ if (key in exports && exports[key] === _useChartTooltip[key]) return;
33
+ Object.defineProperty(exports, key, {
34
+ enumerable: true,
35
+ get: function () {
36
+ return _useChartTooltip[key];
37
+ }
38
+ });
27
39
  });