@mui/x-charts 7.0.0-beta.0 → 7.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BarChart/BarChart.d.ts +2 -1
- package/BarChart/BarChart.js +33 -12
- package/BarChart/BarElement.d.ts +20 -13
- package/BarChart/BarElement.js +7 -3
- package/BarChart/BarPlot.d.ts +11 -6
- package/BarChart/BarPlot.js +28 -15
- package/BarChart/formatter.js +1 -1
- package/CHANGELOG.md +406 -1
- package/ChartContainer/ChartContainer.js +6 -4
- package/ChartsAxis/ChartsAxis.js +4 -4
- package/ChartsLegend/ChartsLegend.d.ts +5 -54
- package/ChartsLegend/ChartsLegend.js +2 -307
- package/ChartsLegend/DefaultChartsLegend.d.ts +60 -0
- package/ChartsLegend/DefaultChartsLegend.js +294 -0
- package/ChartsLegend/index.d.ts +1 -0
- package/ChartsLegend/index.js +11 -0
- package/ChartsOnAxisClickHandler/ChartsOnAxisClickHandler.d.ts +20 -0
- package/ChartsOnAxisClickHandler/ChartsOnAxisClickHandler.js +83 -0
- package/ChartsOnAxisClickHandler/index.d.ts +1 -0
- package/ChartsOnAxisClickHandler/index.js +16 -0
- package/ChartsOnAxisClickHandler/package.json +6 -0
- package/ChartsReferenceLine/ChartsReferenceLine.js +2 -2
- package/ChartsReferenceLine/ChartsXReferenceLine.js +1 -1
- package/ChartsReferenceLine/ChartsYReferenceLine.js +1 -1
- package/ChartsReferenceLine/common.d.ts +2 -1
- package/ChartsTooltip/ChartsAxisTooltipContent.js +6 -5
- package/ChartsTooltip/ChartsItemTooltipContent.js +2 -2
- package/ChartsTooltip/DefaultChartsAxisTooltipContent.js +7 -5
- package/ChartsTooltip/DefaultChartsItemTooltipContent.js +1 -1
- package/ChartsTooltip/utils.d.ts +4 -1
- package/ChartsTooltip/utils.js +15 -0
- package/ChartsVoronoiHandler/ChartsVoronoiHandler.d.ts +7 -0
- package/ChartsVoronoiHandler/ChartsVoronoiHandler.js +92 -44
- package/ChartsXAxis/ChartsXAxis.js +13 -9
- package/ChartsYAxis/ChartsYAxis.js +1 -1
- package/LineChart/AnimatedArea.d.ts +1361 -0
- package/LineChart/AnimatedArea.js +111 -0
- package/LineChart/AnimatedLine.d.ts +1361 -0
- package/LineChart/AnimatedLine.js +113 -0
- package/LineChart/AreaElement.d.ts +19 -18
- package/LineChart/AreaElement.js +17 -34
- package/LineChart/AreaPlot.d.ts +12 -7
- package/LineChart/AreaPlot.js +91 -58
- package/LineChart/LineChart.d.ts +13 -4
- package/LineChart/LineChart.js +45 -14
- package/LineChart/LineElement.d.ts +19 -18
- package/LineChart/LineElement.js +16 -36
- package/LineChart/LineHighlightElement.d.ts +3 -2
- package/LineChart/LineHighlightElement.js +5 -3
- package/LineChart/LinePlot.d.ts +12 -7
- package/LineChart/LinePlot.js +89 -56
- package/LineChart/MarkElement.d.ts +8 -4
- package/LineChart/MarkElement.js +27 -13
- package/LineChart/MarkPlot.d.ts +8 -1
- package/LineChart/MarkPlot.js +80 -51
- package/LineChart/formatter.js +1 -1
- package/LineChart/index.d.ts +2 -0
- package/LineChart/index.js +22 -0
- package/PieChart/PieArc.d.ts +3 -2
- package/PieChart/PieArc.js +1 -0
- package/PieChart/PieArcLabel.d.ts +3 -2
- package/PieChart/PieArcLabel.js +1 -0
- package/PieChart/PieArcLabelPlot.d.ts +1 -1
- package/PieChart/PieArcLabelPlot.js +2 -2
- package/PieChart/PieArcPlot.d.ts +2 -2
- package/PieChart/PieArcPlot.js +7 -7
- package/PieChart/PieChart.d.ts +1 -1
- package/PieChart/PieChart.js +14 -12
- package/PieChart/PiePlot.d.ts +1 -1
- package/PieChart/PiePlot.js +4 -4
- package/ResponsiveChartContainer/ResponsiveChartContainer.js +6 -4
- package/ScatterChart/Scatter.d.ts +7 -1
- package/ScatterChart/Scatter.js +17 -3
- package/ScatterChart/ScatterChart.d.ts +8 -2
- package/ScatterChart/ScatterChart.js +21 -10
- package/ScatterChart/ScatterPlot.d.ts +1 -1
- package/ScatterChart/ScatterPlot.js +10 -2
- package/SparkLineChart/SparkLineChart.d.ts +1 -1
- package/SparkLineChart/SparkLineChart.js +7 -4
- package/context/CartesianContextProvider.js +8 -6
- package/context/DrawingProvider.d.ts +6 -1
- package/context/DrawingProvider.js +9 -2
- package/context/InteractionProvider.d.ts +3 -3
- package/esm/BarChart/BarChart.js +33 -12
- package/esm/BarChart/BarElement.js +7 -3
- package/esm/BarChart/BarPlot.js +27 -15
- package/esm/BarChart/formatter.js +1 -1
- package/esm/ChartContainer/ChartContainer.js +6 -4
- package/esm/ChartsAxis/ChartsAxis.js +4 -4
- package/esm/ChartsLegend/ChartsLegend.js +2 -307
- package/esm/ChartsLegend/DefaultChartsLegend.js +286 -0
- package/esm/ChartsLegend/index.js +1 -0
- package/esm/ChartsOnAxisClickHandler/ChartsOnAxisClickHandler.js +77 -0
- package/esm/ChartsOnAxisClickHandler/index.js +1 -0
- package/esm/ChartsReferenceLine/ChartsReferenceLine.js +2 -2
- package/esm/ChartsReferenceLine/ChartsXReferenceLine.js +1 -1
- package/esm/ChartsReferenceLine/ChartsYReferenceLine.js +1 -1
- package/esm/ChartsTooltip/ChartsAxisTooltipContent.js +6 -5
- package/esm/ChartsTooltip/ChartsItemTooltipContent.js +2 -2
- package/esm/ChartsTooltip/DefaultChartsAxisTooltipContent.js +8 -5
- package/esm/ChartsTooltip/DefaultChartsItemTooltipContent.js +1 -1
- package/esm/ChartsTooltip/utils.js +12 -0
- package/esm/ChartsVoronoiHandler/ChartsVoronoiHandler.js +92 -44
- package/esm/ChartsXAxis/ChartsXAxis.js +13 -9
- package/esm/ChartsYAxis/ChartsYAxis.js +1 -1
- package/esm/LineChart/AnimatedArea.js +103 -0
- package/esm/LineChart/AnimatedLine.js +105 -0
- package/esm/LineChart/AreaElement.js +16 -33
- package/esm/LineChart/AreaPlot.js +92 -59
- package/esm/LineChart/LineChart.js +45 -14
- package/esm/LineChart/LineElement.js +16 -35
- package/esm/LineChart/LineHighlightElement.js +5 -3
- package/esm/LineChart/LinePlot.js +90 -57
- package/esm/LineChart/MarkElement.js +27 -13
- package/esm/LineChart/MarkPlot.js +80 -51
- package/esm/LineChart/formatter.js +1 -1
- package/esm/LineChart/index.js +2 -0
- package/esm/PieChart/PieArc.js +1 -0
- package/esm/PieChart/PieArcLabel.js +1 -0
- package/esm/PieChart/PieArcLabelPlot.js +2 -2
- package/esm/PieChart/PieArcPlot.js +7 -7
- package/esm/PieChart/PieChart.js +14 -12
- package/esm/PieChart/PiePlot.js +4 -4
- package/esm/ResponsiveChartContainer/ResponsiveChartContainer.js +6 -4
- package/esm/ScatterChart/Scatter.js +17 -3
- package/esm/ScatterChart/ScatterChart.js +21 -10
- package/esm/ScatterChart/ScatterPlot.js +10 -2
- package/esm/SparkLineChart/SparkLineChart.js +7 -4
- package/esm/context/CartesianContextProvider.js +8 -6
- package/esm/context/DrawingProvider.js +9 -2
- package/esm/hooks/useDrawingArea.js +7 -3
- package/esm/index.js +1 -0
- package/esm/internals/geometry.js +1 -1
- package/esm/internals/useAnimatedPath.js +29 -0
- package/esm/internals/utils.js +7 -0
- package/hooks/useDrawingArea.d.ts +2 -0
- package/hooks/useDrawingArea.js +7 -3
- package/index.d.ts +1 -0
- package/index.js +12 -1
- package/internals/defaultizeColor.d.ts +16 -16
- package/internals/defaultizeValueFormatter.d.ts +4 -7
- package/internals/geometry.js +1 -1
- package/internals/stackSeries.d.ts +4 -7
- package/internals/useAnimatedPath.d.ts +1 -0
- package/internals/useAnimatedPath.js +38 -0
- package/internals/utils.d.ts +4 -0
- package/internals/utils.js +8 -0
- package/legacy/BarChart/BarChart.js +33 -12
- package/legacy/BarChart/BarElement.js +6 -2
- package/legacy/BarChart/BarPlot.js +28 -14
- package/legacy/BarChart/formatter.js +1 -1
- package/legacy/ChartContainer/ChartContainer.js +6 -4
- package/legacy/ChartsAxis/ChartsAxis.js +4 -4
- package/legacy/ChartsLegend/ChartsLegend.js +2 -323
- package/legacy/ChartsLegend/DefaultChartsLegend.js +302 -0
- package/legacy/ChartsLegend/index.js +1 -0
- package/legacy/ChartsOnAxisClickHandler/ChartsOnAxisClickHandler.js +75 -0
- package/legacy/ChartsOnAxisClickHandler/index.js +1 -0
- package/legacy/ChartsReferenceLine/ChartsReferenceLine.js +2 -2
- package/legacy/ChartsReferenceLine/ChartsXReferenceLine.js +1 -1
- package/legacy/ChartsReferenceLine/ChartsYReferenceLine.js +1 -1
- package/legacy/ChartsTooltip/ChartsAxisTooltipContent.js +6 -7
- package/legacy/ChartsTooltip/ChartsItemTooltipContent.js +2 -2
- package/legacy/ChartsTooltip/DefaultChartsAxisTooltipContent.js +8 -5
- package/legacy/ChartsTooltip/DefaultChartsItemTooltipContent.js +1 -1
- package/legacy/ChartsTooltip/utils.js +12 -0
- package/legacy/ChartsVoronoiHandler/ChartsVoronoiHandler.js +88 -44
- package/legacy/ChartsXAxis/ChartsXAxis.js +12 -8
- package/legacy/ChartsYAxis/ChartsYAxis.js +1 -1
- package/legacy/LineChart/AnimatedArea.js +102 -0
- package/legacy/LineChart/AnimatedLine.js +104 -0
- package/legacy/LineChart/AreaElement.js +15 -35
- package/legacy/LineChart/AreaPlot.js +102 -66
- package/legacy/LineChart/LineChart.js +45 -14
- package/legacy/LineChart/LineElement.js +15 -37
- package/legacy/LineChart/LineHighlightElement.js +5 -3
- package/legacy/LineChart/LinePlot.js +97 -63
- package/legacy/LineChart/MarkElement.js +30 -12
- package/legacy/LineChart/MarkPlot.js +83 -53
- package/legacy/LineChart/formatter.js +1 -1
- package/legacy/LineChart/index.js +2 -0
- package/legacy/PieChart/PieArc.js +1 -0
- package/legacy/PieChart/PieArcLabel.js +1 -0
- package/legacy/PieChart/PieArcLabelPlot.js +2 -2
- package/legacy/PieChart/PieArcPlot.js +7 -7
- package/legacy/PieChart/PieChart.js +14 -12
- package/legacy/PieChart/PiePlot.js +4 -4
- package/legacy/ResponsiveChartContainer/ResponsiveChartContainer.js +6 -4
- package/legacy/ScatterChart/Scatter.js +19 -3
- package/legacy/ScatterChart/ScatterChart.js +21 -10
- package/legacy/ScatterChart/ScatterPlot.js +10 -2
- package/legacy/SparkLineChart/SparkLineChart.js +8 -5
- package/legacy/context/CartesianContextProvider.js +8 -6
- package/legacy/context/DrawingProvider.js +11 -2
- package/legacy/hooks/useDrawingArea.js +7 -3
- package/legacy/index.js +2 -1
- package/legacy/internals/geometry.js +1 -1
- package/legacy/internals/useAnimatedPath.js +32 -0
- package/legacy/internals/utils.js +7 -0
- package/models/axis.d.ts +7 -2
- package/models/seriesType/common.d.ts +2 -1
- package/models/seriesType/config.d.ts +7 -12
- package/models/seriesType/line.d.ts +2 -2
- package/models/seriesType/pie.d.ts +7 -3
- package/models/seriesType/scatter.d.ts +5 -2
- package/modern/BarChart/BarChart.js +33 -12
- package/modern/BarChart/BarElement.js +7 -3
- package/modern/BarChart/BarPlot.js +27 -15
- package/modern/BarChart/formatter.js +1 -1
- package/modern/ChartContainer/ChartContainer.js +6 -4
- package/modern/ChartsAxis/ChartsAxis.js +4 -4
- package/modern/ChartsLegend/ChartsLegend.js +2 -307
- package/modern/ChartsLegend/DefaultChartsLegend.js +286 -0
- package/modern/ChartsLegend/index.js +1 -0
- package/modern/ChartsOnAxisClickHandler/ChartsOnAxisClickHandler.js +75 -0
- package/modern/ChartsOnAxisClickHandler/index.js +1 -0
- package/modern/ChartsReferenceLine/ChartsReferenceLine.js +2 -2
- package/modern/ChartsReferenceLine/ChartsXReferenceLine.js +1 -1
- package/modern/ChartsReferenceLine/ChartsYReferenceLine.js +1 -1
- package/modern/ChartsTooltip/ChartsAxisTooltipContent.js +6 -5
- package/modern/ChartsTooltip/ChartsItemTooltipContent.js +2 -2
- package/modern/ChartsTooltip/DefaultChartsAxisTooltipContent.js +7 -5
- package/modern/ChartsTooltip/DefaultChartsItemTooltipContent.js +1 -1
- package/modern/ChartsTooltip/utils.js +12 -0
- package/modern/ChartsVoronoiHandler/ChartsVoronoiHandler.js +92 -44
- package/modern/ChartsXAxis/ChartsXAxis.js +13 -9
- package/modern/ChartsYAxis/ChartsYAxis.js +1 -1
- package/modern/LineChart/AnimatedArea.js +103 -0
- package/modern/LineChart/AnimatedLine.js +105 -0
- package/modern/LineChart/AreaElement.js +16 -33
- package/modern/LineChart/AreaPlot.js +91 -58
- package/modern/LineChart/LineChart.js +45 -14
- package/modern/LineChart/LineElement.js +16 -35
- package/modern/LineChart/LineHighlightElement.js +5 -3
- package/modern/LineChart/LinePlot.js +89 -56
- package/modern/LineChart/MarkElement.js +27 -13
- package/modern/LineChart/MarkPlot.js +80 -51
- package/modern/LineChart/formatter.js +1 -1
- package/modern/LineChart/index.js +2 -0
- package/modern/PieChart/PieArc.js +1 -0
- package/modern/PieChart/PieArcLabel.js +1 -0
- package/modern/PieChart/PieArcLabelPlot.js +2 -2
- package/modern/PieChart/PieArcPlot.js +7 -7
- package/modern/PieChart/PieChart.js +14 -12
- package/modern/PieChart/PiePlot.js +4 -4
- package/modern/ResponsiveChartContainer/ResponsiveChartContainer.js +6 -4
- package/modern/ScatterChart/Scatter.js +17 -3
- package/modern/ScatterChart/ScatterChart.js +21 -10
- package/modern/ScatterChart/ScatterPlot.js +10 -2
- package/modern/SparkLineChart/SparkLineChart.js +7 -4
- package/modern/context/CartesianContextProvider.js +8 -6
- package/modern/context/DrawingProvider.js +9 -2
- package/modern/hooks/useDrawingArea.js +7 -3
- package/modern/index.js +2 -1
- package/modern/internals/geometry.js +1 -1
- package/modern/internals/useAnimatedPath.js +29 -0
- package/modern/internals/utils.js +7 -0
- package/package.json +6 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,271 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## v7.0.0-beta.2
|
|
7
|
+
|
|
8
|
+
_Feb 9, 2024_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 15 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🚀 Add slot typings on the Data Grid components (#11795) @romgrk
|
|
13
|
+
- 🎁 Support UTC date formatting in Charts tooltip (#11943) @shaharyar-shamshi
|
|
14
|
+
- 🌍 Improve Danish (da-DK) locale Data Grid (#11877) @ShahrazH
|
|
15
|
+
- 🐞 Bugfixes
|
|
16
|
+
- 📚 Documentation improvements
|
|
17
|
+
|
|
18
|
+
### Data Grid
|
|
19
|
+
|
|
20
|
+
#### `@mui/x-data-grid@v7.0.0-beta.2`
|
|
21
|
+
|
|
22
|
+
- [DataGrid] Add `removeAllFilterItems` as a reason of `onFilterModelChange` callback (#11911) @shaharyar-shamshi
|
|
23
|
+
- [DataGrid] Add slot typings (#11795) @romgrk
|
|
24
|
+
- [DataGrid] Add support for dialogs in menu actions (#11909) @cherniavskii
|
|
25
|
+
- [DataGrid] Allow passing readonly arrays to `pageSizeOptions` prop (#11609) @pcorpet
|
|
26
|
+
- [DataGrid] Fix incorrect computation of `lastPage` in `GridPagination` (#11958) @MBilalShafi
|
|
27
|
+
- [DataGrid] Improve vertical scrolling performance (#11924) @romgrk
|
|
28
|
+
- [l10n] Improve Danish (da-DK) locale (#11877) @ShahrazH
|
|
29
|
+
|
|
30
|
+
#### `@mui/x-data-grid-pro@v7.0.0-beta.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
31
|
+
|
|
32
|
+
Same changes as in `@mui/x-data-grid@v7.0.0-beta.2`.
|
|
33
|
+
|
|
34
|
+
#### `@mui/x-data-grid-premium@v7.0.0-beta.2` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
35
|
+
|
|
36
|
+
Same changes as in `@mui/x-data-grid-pro@v7.0.0-beta.2`, plus:
|
|
37
|
+
|
|
38
|
+
- [DataGridPremium] Fix autosize grouping cell (#11870) @romgrk
|
|
39
|
+
- [DataGridPremium] Fix clipboard paste not working with Caps Lock enabled (#11965) @shaharyar-shamshi
|
|
40
|
+
|
|
41
|
+
### Date Pickers
|
|
42
|
+
|
|
43
|
+
#### `@mui/x-date-pickers@v7.0.0-beta.2`
|
|
44
|
+
|
|
45
|
+
- [pickers] Avoid relying on locale in Luxon `isWithinRange` method (#11936) @LukasTy
|
|
46
|
+
- [pickers] Limit the valid values of `TDate` (#11791) @flaviendelangle
|
|
47
|
+
|
|
48
|
+
#### `@mui/x-date-pickers-pro@v7.0.0-beta.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
49
|
+
|
|
50
|
+
Same changes as in `@mui/x-date-pickers@v7.0.0-beta.2`.
|
|
51
|
+
|
|
52
|
+
### Charts / `@mui/x-charts@v7.0.0-beta.2`
|
|
53
|
+
|
|
54
|
+
- [charts] Add `reverse` property to axes (#11899) @alexfauquette
|
|
55
|
+
- [charts] Allow series ids to be numbers (#11941) @alexfauquette
|
|
56
|
+
- [charts] Support UTC date formatting in tooltip (#11943) @shaharyar-shamshi
|
|
57
|
+
|
|
58
|
+
### Tree View / `@mui/x-tree-view@v7.0.0-beta.2`
|
|
59
|
+
|
|
60
|
+
- [TreeView] Correctly detect if an item is expandable (#11963) @swalker326
|
|
61
|
+
- [TreeView] Polish the default design & revise the simple version pages (#11529) @danilo-leal
|
|
62
|
+
|
|
63
|
+
### License
|
|
64
|
+
|
|
65
|
+
#### Breaking changes
|
|
66
|
+
|
|
67
|
+
- If you're using the [commercial license](https://next.mui.com/x/introduction/licensing), you need to update the import path:
|
|
68
|
+
|
|
69
|
+
```diff
|
|
70
|
+
-import { LicenseInfo } from '@mui/x-license-pro';
|
|
71
|
+
+import { LicenseInfo } from '@mui/x-license';
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
`@mui/x-license@v7.0.0-beta.2`
|
|
75
|
+
|
|
76
|
+
- [license] Rename `@mui/x-license-pro` to `@mui/x-license` (#11938) @cherniavskii
|
|
77
|
+
|
|
78
|
+
### Docs
|
|
79
|
+
|
|
80
|
+
- [docs] Add a note about `AdapterDateFnsV3` on the Getting Started page (#11985) @flaviendelangle
|
|
81
|
+
- [docs] Add missing `Charts` breaking change steps (#11971) @alexfauquette
|
|
82
|
+
- [docs] Fix `ChartsTooltip` typo (#11961) @thisisharsh7
|
|
83
|
+
- [docs] Refactor `Localization` documentation sections (#11989) @LukasTy
|
|
84
|
+
- [docs] Use "cannot" instead of "can't" or "can not" (#11986) @flaviendelangle
|
|
85
|
+
- [docs] Add quick fixes to the migration guide (#11806) @danilo-leal
|
|
86
|
+
- [docs] Avoid use of shorthand (#12000) @oliviertassinari
|
|
87
|
+
- [docs] Avoid the use of MUI Core @oliviertassinari
|
|
88
|
+
- [docs] Fix image size and dark mode @oliviertassinari
|
|
89
|
+
- [docs] Follow blank line convention with use client @oliviertassinari
|
|
90
|
+
- [docs] Stable layout between light and dark mode @oliviertassinari
|
|
91
|
+
|
|
92
|
+
### Core
|
|
93
|
+
|
|
94
|
+
- [core] Add `docs:serve` script (#11935) @cherniavskii
|
|
95
|
+
- [core] Bump monorepo (#12001) @cherniavskii
|
|
96
|
+
- [core] Deprecate `LicenseInfo` re-exports (#11956) @cherniavskii
|
|
97
|
+
- [core] Fix `test_types` failing on the `next` branch (#11944) @cherniavskii
|
|
98
|
+
- [core] Fix failing `test_static` on the next branch (#11977) @cherniavskii
|
|
99
|
+
- [core] Flatten grid packages folder (#11946) @cherniavskii
|
|
100
|
+
- [core] Improve license info deprecation message (#11974) @cherniavskii
|
|
101
|
+
- [core] Integrate changes from Core #40842 PR (#11801) @michaldudak
|
|
102
|
+
- [core] Move next config to ESM (#11882) @Janpot
|
|
103
|
+
- [core] Add auto-message on closed issues (#11805) @michelengelen
|
|
104
|
+
- [core] Simplify bug reproduction (#11849) @oliviertassinari
|
|
105
|
+
- [core] Fix npm reference @oliviertassinari
|
|
106
|
+
- [core] Normalize issue template @oliviertassinari
|
|
107
|
+
|
|
108
|
+
## 7.0.0-beta.1
|
|
109
|
+
|
|
110
|
+
_Feb 1, 2024_
|
|
111
|
+
|
|
112
|
+
We'd like to offer a big thanks to the 12 contributors who made this release possible. Here are some highlights ✨:
|
|
113
|
+
|
|
114
|
+
- 🏃 Improve the filtering performance of the Data Grid by changing the `GridColDef` methods signatures (#11573) @cherniavskii
|
|
115
|
+
- 🎁 The Line Chart component now has animation by default (#11620) @alexfauquette
|
|
116
|
+
- 🚀 All charts have click handlers (#11411) @alexfauquette
|
|
117
|
+
Test their respective documentation demonstrations to know more about the data format:
|
|
118
|
+
|
|
119
|
+
- [Scatter Chart](https://next.mui.com/x/react-charts/scatter/#click-event)
|
|
120
|
+
- [Line Chart](https://next.mui.com/x/react-charts/lines/#click-event)
|
|
121
|
+
- [Bar Chart](https://next.mui.com/x/react-charts/bars/#click-event)
|
|
122
|
+
- [Pie Chart](https://next.mui.com/x/react-charts/pie/#click-event)
|
|
123
|
+
|
|
124
|
+
Big thanks to @giladappsforce and @yaredtsy for their contribution on exploring this feature.
|
|
125
|
+
|
|
126
|
+
### Data Grid
|
|
127
|
+
|
|
128
|
+
### Breaking changes
|
|
129
|
+
|
|
130
|
+
- The signature of `GridColDef['valueGetter']` has been changed for performance reasons:
|
|
131
|
+
|
|
132
|
+
```diff
|
|
133
|
+
- valueGetter: ({ value, row }) => value,
|
|
134
|
+
+ valueGetter: (value, row, column, apiRef) => value,
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
The `GridValueGetterParams` interface has been removed:
|
|
138
|
+
|
|
139
|
+
```diff
|
|
140
|
+
- const customValueGetter = (params: GridValueGetterParams) => params.row.budget;
|
|
141
|
+
+ const customValueGetter: GridValueGetterFn = (value, row) => row.budget;
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
- The signature of `GridColDef['valueFormatter']` has been changed for performance reasons:
|
|
145
|
+
|
|
146
|
+
```diff
|
|
147
|
+
- valueFormatter: ({ value }) => value,
|
|
148
|
+
+ valueFormatter: (value, row, column, apiRef) => value,
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
The `GridValueFormatterParams` interface has been removed:
|
|
152
|
+
|
|
153
|
+
```diff
|
|
154
|
+
- const gridDateFormatter = ({ value, field, id }: GridValueFormatterParams<Date>) => value.toLocaleDateString();
|
|
155
|
+
+ const gridDateFormatter: GridValueFormatter = (value: Date) => value.toLocaleDateString();
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
- The signature of `GridColDef['valueSetter']` has been changed for performance reasons:
|
|
159
|
+
|
|
160
|
+
```diff
|
|
161
|
+
- valueSetter: (params) => {
|
|
162
|
+
- const [firstName, lastName] = params.value!.toString().split(' ');
|
|
163
|
+
- return { ...params.row, firstName, lastName };
|
|
164
|
+
- }
|
|
165
|
+
+ valueSetter: (value, row) => {
|
|
166
|
+
+ const [firstName, lastName] = value!.toString().split(' ');
|
|
167
|
+
+ return { ...row, firstName, lastName };
|
|
168
|
+
+}
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
The `GridValueSetterParams` interface has been removed:
|
|
172
|
+
|
|
173
|
+
```diff
|
|
174
|
+
- const setFullName = (params: GridValueSetterParams) => {
|
|
175
|
+
- const [firstName, lastName] = params.value!.toString().split(' ');
|
|
176
|
+
- return { ...params.row, firstName, lastName };
|
|
177
|
+
- };
|
|
178
|
+
+ const setFullName: GridValueSetter<Row> = (value, row) => {
|
|
179
|
+
+ const [firstName, lastName] = value!.toString().split(' ');
|
|
180
|
+
+ return { ...row, firstName, lastName };
|
|
181
|
+
+ }
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
- The signature of `GridColDef['valueParser']` has been changed for performance reasons:
|
|
185
|
+
|
|
186
|
+
```diff
|
|
187
|
+
- valueParser: (value, params: GridCellParams) => value.toLowerCase(),
|
|
188
|
+
+ valueParser: (value, row, column, apiRef) => value.toLowerCase(),
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
- The signature of `GridColDef['colSpan']` has been changed for performance reasons:
|
|
192
|
+
|
|
193
|
+
```diff
|
|
194
|
+
- colSpan: ({ row, field, value }: GridCellParams) => (row.id === 'total' ? 2 : 1),
|
|
195
|
+
+ colSpan: (value, row, column, apiRef) => (row.id === 'total' ? 2 : 1),
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
- The signature of `GridColDef['pastedValueParser']` has been changed for performance reasons:
|
|
199
|
+
|
|
200
|
+
```diff
|
|
201
|
+
- pastedValueParser: (value, params) => new Date(value),
|
|
202
|
+
+ pastedValueParser: (value, row, column, apiRef) => new Date(value),
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
- The signature of `GridColDef['groupingValueGetter']` has been changed for performance reasons:
|
|
206
|
+
|
|
207
|
+
```diff
|
|
208
|
+
- groupingValueGetter: (params) => params.value.name,
|
|
209
|
+
+ groupingValueGetter: (value: { name: string }) => value.name,
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
#### `@mui/x-data-grid@7.0.0-beta.1`
|
|
213
|
+
|
|
214
|
+
- [DataGrid] Add `toggleAllMode` prop to the `columnsManagement` slot (#10794) @H999
|
|
215
|
+
- [DataGrid] Change `GridColDef` methods signatures (#11573) @cherniavskii
|
|
216
|
+
- [DataGrid] Fix row reorder with cell selection (#11783) @PEsteves8
|
|
217
|
+
- [DataGrid] Make columns management' casing consistent (#11858) @MBilalShafi
|
|
218
|
+
- [l10n] Improve Hebrew (he-IL) locale (#11788) @danielmishan85
|
|
219
|
+
|
|
220
|
+
#### `@mui/x-data-grid-pro@7.0.0-beta.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
221
|
+
|
|
222
|
+
Same changes as in `@mui/x-data-grid@7.0.0-beta.1`.
|
|
223
|
+
|
|
224
|
+
#### `@mui/x-data-grid-premium@7.0.0-beta.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
225
|
+
|
|
226
|
+
Same changes as in `@mui/x-data-grid-pro@7.0.0-beta.1`.
|
|
227
|
+
|
|
228
|
+
### Date Pickers
|
|
229
|
+
|
|
230
|
+
#### `@mui/x-date-pickers@7.0.0-beta.1`
|
|
231
|
+
|
|
232
|
+
- [TimePicker] Add missing toolbar classes descriptions (#11856) @LukasTy
|
|
233
|
+
|
|
234
|
+
#### `@mui/x-date-pickers-pro@7.0.0-beta.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
235
|
+
|
|
236
|
+
Same changes as in `@mui/x-date-pickers@7.0.0-beta.1`.
|
|
237
|
+
|
|
238
|
+
### Charts
|
|
239
|
+
|
|
240
|
+
#### Breaking changes
|
|
241
|
+
|
|
242
|
+
- The line chart now have animation by default.
|
|
243
|
+
You can disable it with `skipAnimation` prop.
|
|
244
|
+
See [animation documentation](next.mui.com/x/react-charts/lines/#animation) for more information.
|
|
245
|
+
|
|
246
|
+
- Pie charts `onClick` get renamed `onItemClick` for consistency with other charts click callback.
|
|
247
|
+
|
|
248
|
+
`@mui/x-charts@7.0.0-beta.1`
|
|
249
|
+
|
|
250
|
+
- [charts] Add `onClick` support (#11411) @alexfauquette
|
|
251
|
+
- [charts] Add line animation (#11620) @alexfauquette
|
|
252
|
+
- [charts] Document how to modify color according to values (#11824) @alexfauquette
|
|
253
|
+
- [charts] Fix Tooltip crash with out of range lines (#11898) @alexfauquette
|
|
254
|
+
|
|
255
|
+
### Docs
|
|
256
|
+
|
|
257
|
+
- [docs] Add a general uplift to the changelog page (#11396) @danilo-leal
|
|
258
|
+
- [docs] Do not reference the Tree View overview page in the API pages (#11826) @flaviendelangle
|
|
259
|
+
- [docs] Fix charts API links (#11832) @alexfauquette
|
|
260
|
+
- [docs] Improve Support page (#11556) @oliviertassinari
|
|
261
|
+
- [docs] Improve column visibility documentation (#11857) @MBilalShafi
|
|
262
|
+
- [docs] Polish header @oliviertassinari
|
|
263
|
+
- [docs] Sync support page with core @oliviertassinari
|
|
264
|
+
- [docs] Update whats new page with "v7 Beta blogpost" content (#11879) @joserodolfofreitas
|
|
265
|
+
|
|
266
|
+
### Core
|
|
267
|
+
|
|
268
|
+
- [core] Rely on immutable ref when possible (#11847) @oliviertassinari
|
|
269
|
+
- [core] Bump monorepo (#11897) @alexfauquette
|
|
270
|
+
|
|
6
271
|
## 7.0.0-beta.0
|
|
7
272
|
|
|
8
273
|
_Jan 26, 2024_
|
|
@@ -1873,6 +2138,146 @@ Here is an example of the renaming for the `<ChartsTooltip />` component.
|
|
|
1873
2138
|
- [core] Update release instructions as per v7 configuration (#10962) @MBilalShafi
|
|
1874
2139
|
- [license] Correctly throw errors (#10924) @oliviertassinari
|
|
1875
2140
|
|
|
2141
|
+
## v6.19.4
|
|
2142
|
+
|
|
2143
|
+
_Feb 9, 2024_
|
|
2144
|
+
|
|
2145
|
+
We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
|
|
2146
|
+
|
|
2147
|
+
- 🌍 Improve Danish (da-DK) locale on the Data Grid (#11972) @ShahrazH
|
|
2148
|
+
- 🐞 Bugfixes
|
|
2149
|
+
- 📚 Documentation improvements
|
|
2150
|
+
|
|
2151
|
+
### Data Grid
|
|
2152
|
+
|
|
2153
|
+
#### `@mui/x-data-grid@v6.19.4`
|
|
2154
|
+
|
|
2155
|
+
- [DataGrid] Add support for dialogs in menu actions (#11937) @cherniavskii
|
|
2156
|
+
- [DataGrid] Allow passing readonly arrays to `pageSizeOptions` prop (#11992) @pcorpet
|
|
2157
|
+
- [DataGrid] Fix row reorder with cell selection (#11878) @PEsteves8
|
|
2158
|
+
- [DataGrid] Replace `eval` with `new Function` (#11962) @cherniavskii
|
|
2159
|
+
- [l10n] Improve Danish (da-DK) locale (#11972) @ShahrazH
|
|
2160
|
+
|
|
2161
|
+
#### `@mui/x-data-grid-pro@v6.19.4` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
2162
|
+
|
|
2163
|
+
Same changes as in `@mui/x-data-grid@v6.19.4`.
|
|
2164
|
+
|
|
2165
|
+
#### `@mui/x-data-grid-premium@v6.19.4` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
2166
|
+
|
|
2167
|
+
Same changes as in `@mui/x-data-grid-pro@v6.19.4`, plus:
|
|
2168
|
+
|
|
2169
|
+
- [DataGridPremium] Fix autosize grouping cell (#11990) @romgrk
|
|
2170
|
+
- [DataGridPremium] Fix error after closing print export (#11889) @cherniavskii
|
|
2171
|
+
|
|
2172
|
+
### Date Pickers
|
|
2173
|
+
|
|
2174
|
+
#### `@mui/x-date-pickers@v6.19.4`
|
|
2175
|
+
|
|
2176
|
+
- [pickers] Avoid relying on locale in Luxon `isWithinRange` method (#11940) @LukasTy
|
|
2177
|
+
|
|
2178
|
+
#### `@mui/x-date-pickers-pro@v6.19.4` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
2179
|
+
|
|
2180
|
+
Same changes as in `@mui/x-date-pickers@v6.19.4`.
|
|
2181
|
+
|
|
2182
|
+
### Charts / `@mui/x-charts@v6.19.4`
|
|
2183
|
+
|
|
2184
|
+
- [charts] Add `reverse` property to axes (#11959) @alexfauquette
|
|
2185
|
+
- [charts] Allow series ids to be numbers (#11960) @alexfauquette
|
|
2186
|
+
- [charts] Fix Proptypes error by supporting string values for axes (#11953) @alexfauquette
|
|
2187
|
+
|
|
2188
|
+
### Docs
|
|
2189
|
+
|
|
2190
|
+
- [docs] Add a note about `AdapterDateFnsV3` on the Getting Started page (#11987) @flaviendelangle
|
|
2191
|
+
- [docs] Avoid the use of MUI Core @oliviertassinari
|
|
2192
|
+
- [docs] Fix API links (#11930) @alexfauquette
|
|
2193
|
+
- [docs] Fix `ChartsTooltip` typo (#11967) @thisisharsh7
|
|
2194
|
+
- [docs] Refactor `Localization` documentation sections (#11997) @LukasTy
|
|
2195
|
+
- [code] Simplify bug reproduction (#11932) @alexfauquette
|
|
2196
|
+
|
|
2197
|
+
## 6.19.3
|
|
2198
|
+
|
|
2199
|
+
_Feb 1, 2024_
|
|
2200
|
+
|
|
2201
|
+
We'd like to offer a big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
|
|
2202
|
+
|
|
2203
|
+
- 🌍 Improve Hebrew (he-IL) locale (#11831) @danielmishan85
|
|
2204
|
+
- 🐞 Bugfixes
|
|
2205
|
+
- 📚 Documentation improvements
|
|
2206
|
+
|
|
2207
|
+
### Data Grid
|
|
2208
|
+
|
|
2209
|
+
#### `@mui/x-data-grid@6.19.3`
|
|
2210
|
+
|
|
2211
|
+
- [l10n] Improve Hebrew (he-IL) locale (@danielmishan85) (#11831)
|
|
2212
|
+
|
|
2213
|
+
#### `@mui/x-data-grid-pro@6.19.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
2214
|
+
|
|
2215
|
+
Same changes as in `@mui/x-data-grid@6.19.3`.
|
|
2216
|
+
|
|
2217
|
+
#### `@mui/x-data-grid-premium@6.19.3` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
2218
|
+
|
|
2219
|
+
Same changes as in `@mui/x-data-grid-pro@6.19.3`.
|
|
2220
|
+
|
|
2221
|
+
### Date Pickers
|
|
2222
|
+
|
|
2223
|
+
#### `@mui/x-date-pickers@6.19.3`
|
|
2224
|
+
|
|
2225
|
+
- [TimePicker] Add missing toolbar classes descriptions (#11862) @LukasTy
|
|
2226
|
+
|
|
2227
|
+
#### `@mui/x-date-pickers-pro@6.19.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
2228
|
+
|
|
2229
|
+
Same changes as in `@mui/x-date-pickers@6.19.3`.
|
|
2230
|
+
|
|
2231
|
+
### Charts / `@mui/x-charts@6.19.3`
|
|
2232
|
+
|
|
2233
|
+
- [charts] Document how to modify color according to values (#11854) @alexfauquette
|
|
2234
|
+
|
|
2235
|
+
### Docs
|
|
2236
|
+
|
|
2237
|
+
- [docs] Add a general uplift to the whats new page (#11883) @danilo-leal
|
|
2238
|
+
- [docs] Fix 404 (#11852) @alexfauquette
|
|
2239
|
+
- [docs] Fix <title> generation (#11825) @alexfauquette
|
|
2240
|
+
- [docs] Fix docs:api when typo in slots typing (#11861) @alexfauquette
|
|
2241
|
+
- [docs] Improve Support page (#11556) @oliviertassinari
|
|
2242
|
+
- [docs] Sync support page with core @oliviertassinari
|
|
2243
|
+
- [docs] These API don't exist in MUI X v6 @oliviertassinari
|
|
2244
|
+
- [docs] Update whats new page with v7 Beta blogpost content (#11886) @joserodolfofreitas
|
|
2245
|
+
|
|
2246
|
+
## 6.19.2
|
|
2247
|
+
|
|
2248
|
+
_Jan 25, 2024_
|
|
2249
|
+
|
|
2250
|
+
We'd like to offer a big thanks to the 2 contributors who made this release possible. Here are some highlights ✨:
|
|
2251
|
+
|
|
2252
|
+
- 🚀 Apply the `layout.tabs` class to `Tabs` slot (@LukasTy) (#11782)
|
|
2253
|
+
- 🐞 Bugfixes
|
|
2254
|
+
|
|
2255
|
+
### Date Pickers
|
|
2256
|
+
|
|
2257
|
+
#### `@mui/x-date-pickers@6.19.2`
|
|
2258
|
+
|
|
2259
|
+
- [pickers] Apply the `layout.tabs` class to `Tabs` slot (@LukasTy) (#11782)
|
|
2260
|
+
|
|
2261
|
+
#### `@mui/x-date-pickers-pro@6.19.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
2262
|
+
|
|
2263
|
+
Same changes as in `@mui/x-date-pickers@6.19.2`, plus:
|
|
2264
|
+
|
|
2265
|
+
- [DateRangePicker] Remove `calendars` prop on `Mobile` (@LukasTy) (#11771)
|
|
2266
|
+
|
|
2267
|
+
### Data Grid
|
|
2268
|
+
|
|
2269
|
+
#### `@mui/x-data-grid@6.19.2`
|
|
2270
|
+
|
|
2271
|
+
- [DataGrid] Fix support for tree with more than 50,000 children (@zenazn) (#11808)
|
|
2272
|
+
|
|
2273
|
+
#### `@mui/x-data-grid-pro@6.19.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
2274
|
+
|
|
2275
|
+
Same changes as in `@mui/x-data-grid@6.19.2`.
|
|
2276
|
+
|
|
2277
|
+
#### `@mui/x-data-grid-premium@6.19.2` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
2278
|
+
|
|
2279
|
+
Same changes as in `@mui/x-data-grid-pro@6.19.2`.
|
|
2280
|
+
|
|
1876
2281
|
## 6.19.1
|
|
1877
2282
|
|
|
1878
2283
|
_Jan 19, 2024_
|
|
@@ -6876,7 +7281,7 @@ You can find more information about the new api, including how to set those tran
|
|
|
6876
7281
|
- [core] Add link to the security page on the `README` (#6073) @oliviertassinari
|
|
6877
7282
|
- [core] Fix scroll restoration in the docs (#5938) @oliviertassinari
|
|
6878
7283
|
- [core] Remove the Storybook (#6099) @flaviendelangle
|
|
6879
|
-
- [core] Tag release as `next` in
|
|
7284
|
+
- [core] Tag release as `next` in npm (#6256) @m4theushw
|
|
6880
7285
|
- [core] Update monorepo (#6180) @flaviendelangle
|
|
6881
7286
|
- [core] Use the `next` branch for Prettier (#6097) @flaviendelangle
|
|
6882
7287
|
- [core] Use the official repository for `@mui/monorepo` instead of a fork (#6189) @oliviertassinari
|
|
@@ -131,7 +131,7 @@ process.env.NODE_ENV !== "production" ? ChartContainer.propTypes = {
|
|
|
131
131
|
* If not provided, a default axis config is used with id set to `DEFAULT_X_AXIS_KEY`.
|
|
132
132
|
*/
|
|
133
133
|
xAxis: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
134
|
-
axisId: _propTypes.default.string,
|
|
134
|
+
axisId: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
135
135
|
classes: _propTypes.default.object,
|
|
136
136
|
data: _propTypes.default.array,
|
|
137
137
|
dataKey: _propTypes.default.string,
|
|
@@ -139,13 +139,14 @@ process.env.NODE_ENV !== "production" ? ChartContainer.propTypes = {
|
|
|
139
139
|
disableTicks: _propTypes.default.bool,
|
|
140
140
|
fill: _propTypes.default.string,
|
|
141
141
|
hideTooltip: _propTypes.default.bool,
|
|
142
|
-
id: _propTypes.default.string,
|
|
142
|
+
id: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
143
143
|
label: _propTypes.default.string,
|
|
144
144
|
labelFontSize: _propTypes.default.number,
|
|
145
145
|
labelStyle: _propTypes.default.object,
|
|
146
146
|
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
147
147
|
min: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
148
148
|
position: _propTypes.default.oneOf(['bottom', 'left', 'right', 'top']),
|
|
149
|
+
reverse: _propTypes.default.bool,
|
|
149
150
|
scaleType: _propTypes.default.oneOf(['band', 'linear', 'log', 'point', 'pow', 'sqrt', 'time', 'utc']),
|
|
150
151
|
slotProps: _propTypes.default.object,
|
|
151
152
|
slots: _propTypes.default.object,
|
|
@@ -165,7 +166,7 @@ process.env.NODE_ENV !== "production" ? ChartContainer.propTypes = {
|
|
|
165
166
|
* If not provided, a default axis config is used with id set to `DEFAULT_Y_AXIS_KEY`.
|
|
166
167
|
*/
|
|
167
168
|
yAxis: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
168
|
-
axisId: _propTypes.default.string,
|
|
169
|
+
axisId: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
169
170
|
classes: _propTypes.default.object,
|
|
170
171
|
data: _propTypes.default.array,
|
|
171
172
|
dataKey: _propTypes.default.string,
|
|
@@ -173,13 +174,14 @@ process.env.NODE_ENV !== "production" ? ChartContainer.propTypes = {
|
|
|
173
174
|
disableTicks: _propTypes.default.bool,
|
|
174
175
|
fill: _propTypes.default.string,
|
|
175
176
|
hideTooltip: _propTypes.default.bool,
|
|
176
|
-
id: _propTypes.default.string,
|
|
177
|
+
id: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
177
178
|
label: _propTypes.default.string,
|
|
178
179
|
labelFontSize: _propTypes.default.number,
|
|
179
180
|
labelStyle: _propTypes.default.object,
|
|
180
181
|
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
181
182
|
min: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
182
183
|
position: _propTypes.default.oneOf(['bottom', 'left', 'right', 'top']),
|
|
184
|
+
reverse: _propTypes.default.bool,
|
|
183
185
|
scaleType: _propTypes.default.oneOf(['band', 'linear', 'log', 'point', 'pow', 'sqrt', 'time', 'utc']),
|
|
184
186
|
slotProps: _propTypes.default.object,
|
|
185
187
|
slots: _propTypes.default.object,
|
package/ChartsAxis/ChartsAxis.js
CHANGED
|
@@ -108,7 +108,7 @@ process.env.NODE_ENV !== "production" ? ChartsAxis.propTypes = {
|
|
|
108
108
|
* @default xAxisIds[0] The id of the first provided axis
|
|
109
109
|
*/
|
|
110
110
|
bottomAxis: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
111
|
-
axisId: _propTypes.default.string,
|
|
111
|
+
axisId: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
112
112
|
classes: _propTypes.default.object,
|
|
113
113
|
disableLine: _propTypes.default.bool,
|
|
114
114
|
disableTicks: _propTypes.default.bool,
|
|
@@ -135,7 +135,7 @@ process.env.NODE_ENV !== "production" ? ChartsAxis.propTypes = {
|
|
|
135
135
|
* @default yAxisIds[0] The id of the first provided axis
|
|
136
136
|
*/
|
|
137
137
|
leftAxis: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
138
|
-
axisId: _propTypes.default.string,
|
|
138
|
+
axisId: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
139
139
|
classes: _propTypes.default.object,
|
|
140
140
|
disableLine: _propTypes.default.bool,
|
|
141
141
|
disableTicks: _propTypes.default.bool,
|
|
@@ -162,7 +162,7 @@ process.env.NODE_ENV !== "production" ? ChartsAxis.propTypes = {
|
|
|
162
162
|
* @default null
|
|
163
163
|
*/
|
|
164
164
|
rightAxis: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
165
|
-
axisId: _propTypes.default.string,
|
|
165
|
+
axisId: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
166
166
|
classes: _propTypes.default.object,
|
|
167
167
|
disableLine: _propTypes.default.bool,
|
|
168
168
|
disableTicks: _propTypes.default.bool,
|
|
@@ -199,7 +199,7 @@ process.env.NODE_ENV !== "production" ? ChartsAxis.propTypes = {
|
|
|
199
199
|
* @default null
|
|
200
200
|
*/
|
|
201
201
|
topAxis: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
202
|
-
axisId: _propTypes.default.string,
|
|
202
|
+
axisId: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
203
203
|
classes: _propTypes.default.object,
|
|
204
204
|
disableLine: _propTypes.default.bool,
|
|
205
205
|
disableTicks: _propTypes.default.bool,
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { Theme } from '@mui/material/styles';
|
|
3
|
-
import { DrawingArea } from '../context/DrawingProvider';
|
|
4
2
|
import { AnchorPosition, Direction } from './utils';
|
|
5
|
-
import { FormattedSeries } from '../context/SeriesContextProvider';
|
|
6
3
|
import { ChartsLegendClasses } from './chartsLegendClasses';
|
|
7
|
-
import {
|
|
8
|
-
import { LegendParams } from '../models/seriesType/config';
|
|
9
|
-
import { ChartsTextStyle } from '../ChartsText';
|
|
10
|
-
import { CardinalDirections } from '../models/layout';
|
|
4
|
+
import { LegendRendererProps } from './DefaultChartsLegend';
|
|
11
5
|
export interface ChartsLegendSlots {
|
|
6
|
+
/**
|
|
7
|
+
* Custom rendering of the legend.
|
|
8
|
+
* @default DefaultChartsLegend
|
|
9
|
+
*/
|
|
12
10
|
legend?: React.JSXElementConstructor<LegendRendererProps>;
|
|
13
11
|
}
|
|
14
12
|
export interface ChartsLegendSlotProps {
|
|
@@ -41,53 +39,6 @@ export type ChartsLegendProps = {
|
|
|
41
39
|
*/
|
|
42
40
|
slotProps?: ChartsLegendSlotProps;
|
|
43
41
|
};
|
|
44
|
-
type DefaultizedChartsLegendProps = DefaultizedProps<ChartsLegendProps, 'direction' | 'position'>;
|
|
45
|
-
export type ChartsLegendRootOwnerState = {
|
|
46
|
-
position: AnchorPosition;
|
|
47
|
-
direction: Direction;
|
|
48
|
-
drawingArea: DrawingArea;
|
|
49
|
-
offsetX?: number;
|
|
50
|
-
offsetY?: number;
|
|
51
|
-
seriesNumber: number;
|
|
52
|
-
};
|
|
53
|
-
export declare const ChartsLegendRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<Theme>, Pick<React.SVGProps<SVGGElement>, keyof React.SVGProps<SVGGElement>>, {}>;
|
|
54
|
-
export interface LegendRendererProps extends Omit<DefaultizedChartsLegendProps, 'slots' | 'slotProps'> {
|
|
55
|
-
series: FormattedSeries;
|
|
56
|
-
seriesToDisplay: LegendParams[];
|
|
57
|
-
drawingArea: DrawingArea;
|
|
58
|
-
classes: Record<'mark' | 'series' | 'root', string>;
|
|
59
|
-
/**
|
|
60
|
-
* Style applied to legend labels.
|
|
61
|
-
* @default theme.typography.subtitle1
|
|
62
|
-
*/
|
|
63
|
-
labelStyle?: ChartsTextStyle;
|
|
64
|
-
/**
|
|
65
|
-
* Width of the item mark (in px).
|
|
66
|
-
* @default 20
|
|
67
|
-
*/
|
|
68
|
-
itemMarkWidth?: number;
|
|
69
|
-
/**
|
|
70
|
-
* Height of the item mark (in px).
|
|
71
|
-
* @default 20
|
|
72
|
-
*/
|
|
73
|
-
itemMarkHeight?: number;
|
|
74
|
-
/**
|
|
75
|
-
* Space between the mark and the label (in px).
|
|
76
|
-
* @default 5
|
|
77
|
-
*/
|
|
78
|
-
markGap?: number;
|
|
79
|
-
/**
|
|
80
|
-
* Space between two legend items (in px).
|
|
81
|
-
* @default 10
|
|
82
|
-
*/
|
|
83
|
-
itemGap?: number;
|
|
84
|
-
/**
|
|
85
|
-
* Legend padding (in px).
|
|
86
|
-
* Can either be a single number, or an object with top, left, bottom, right properties.
|
|
87
|
-
* @default 0
|
|
88
|
-
*/
|
|
89
|
-
padding?: number | Partial<CardinalDirections<number>>;
|
|
90
|
-
}
|
|
91
42
|
declare function ChartsLegend(inProps: ChartsLegendProps): React.JSX.Element;
|
|
92
43
|
declare namespace ChartsLegend {
|
|
93
44
|
var propTypes: any;
|