@mui/x-charts 6.19.4 → 6.19.8

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/CHANGELOG.md CHANGED
@@ -3,7 +3,157 @@
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
- ## v6.19.4
6
+ ## 6.19.8
7
+
8
+ _Mar 20, 2024_
9
+
10
+ We'd like to offer a big thanks to the 3 contributors who made this release possible.
11
+
12
+ ### Data Grid
13
+
14
+ #### `@mui/x-data-grid@6.19.8`
15
+
16
+ - [DataGrid] Fix `ElementType` usage (#12505) @cherniavskii
17
+ - [DataGrid] Fix cell value formatting on copy (#12483) @sai6855
18
+ - [DataGrid] Fix checkbox selection when filtering (#12485) @g1mishra
19
+
20
+ #### `@mui/x-data-grid-pro@6.19.8` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
21
+
22
+ Same changes as in `@mui/x-data-grid@6.19.8`.
23
+
24
+ #### `@mui/x-data-grid-premium@6.19.8` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
25
+
26
+ Same changes as in `@mui/x-data-grid-pro@6.19.8`, plus:
27
+
28
+ - [DataGridPremium] Add support for confirmation before clipboard paste (#12466) @cherniavskii
29
+
30
+ ### Docs
31
+
32
+ - [docs] Update links to v7 (#12495) @cherniavskii
33
+
34
+ ## 6.19.7
35
+
36
+ _Mar 14, 2024_
37
+
38
+ We'd like to offer a big thanks to @LukasTy who made this release possible.
39
+
40
+ ### Date Pickers
41
+
42
+ #### `@mui/x-date-pickers@6.19.7`
43
+
44
+ - [pickers] Keep the existing time when looking for closest enabled date (#12410) @LukasTy
45
+
46
+ #### `@mui/x-date-pickers-pro@6.19.7` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
47
+
48
+ Same changes as in `@mui/x-date-pickers@6.19.7`.
49
+
50
+ ### Docs
51
+
52
+ - [docs] Add Pickers custom start of week section (#12425) @LukasTy
53
+
54
+ ## 6.19.6
55
+
56
+ _Mar 1, 2024_
57
+
58
+ We'd like to offer a big thanks to the 4 contributors who made this release possible. Here are some highlights ✨:
59
+
60
+ - 🌍 Improve Korean (ko-KR) and Chinese (zh-CN) locales on the Pickers
61
+ - 🐞 Bugfixes
62
+ - 📚 Documentation improvements
63
+
64
+ ### Data Grid
65
+
66
+ #### `@mui/x-data-grid@6.19.6`
67
+
68
+ - [DataGrid] Fix error when existing rows are passed to `replaceRows` (@martijn-basesoft)
69
+
70
+ #### `@mui/x-data-grid-pro@6.19.6` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
71
+
72
+ Same changes as in `@mui/x-data-grid@6.19.6`.
73
+
74
+ #### `@mui/x-data-grid-premium@6.19.6` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
75
+
76
+ Same changes as in `@mui/x-data-grid-pro@6.19.6`, plus:
77
+
78
+ - [DataGridPremium] Make clipboard copy respect the sorting during cell selection (#12255) @MBilalShafi
79
+
80
+ ### Date Pickers
81
+
82
+ #### `@mui/x-date-pickers@6.19.6`
83
+
84
+ - [l10n] Improve Chinese (zh-CN) locale (#12250) @headironc
85
+ - [l10n] Improve Korean (ko-KR) locale (#12186) @Luzi
86
+
87
+ #### `@mui/x-date-pickers-pro@6.19.6` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
88
+
89
+ Same changes as in `@mui/x-date-pickers@6.19.6`.
90
+
91
+ ### Docs
92
+
93
+ - [docs] Update lazy loading demo to show skeleton rows during initial rows fetch (#12062) @cherniavskii
94
+
95
+ ## 6.19.5
96
+
97
+ _Feb 23, 2024_
98
+
99
+ We'd like to offer a big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
100
+
101
+ - 🐞 Bugfixes
102
+ - 📚 Documentation improvements
103
+
104
+ ### Data Grid
105
+
106
+ #### `@mui/x-data-grid@6.19.5`
107
+
108
+ - [DataGrid] Fix styling grid filter input single select (#12079) @FreakDroid
109
+
110
+ #### `@mui/x-data-grid-pro@6.19.5` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
111
+
112
+ Same changes as in `@mui/x-data-grid@6.19.5`.
113
+
114
+ #### `@mui/x-data-grid-premium@6.19.5` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
115
+
116
+ Same changes as in `@mui/x-data-grid-pro@6.19.5`.
117
+
118
+ ### Date Pickers
119
+
120
+ #### `@mui/x-date-pickers@6.19.5`
121
+
122
+ - [pickers] Fix `referenceDate` day calendar focus (#12136) @LukasTy
123
+ - [pickers] Fix styling props propagation to `DateTimePickerTabs` (#12131) @LukasTy
124
+
125
+ #### `@mui/x-date-pickers-pro@6.19.5` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
126
+
127
+ Same changes as in `@mui/x-date-pickers@6.19.5`.
128
+
129
+ ### Charts / `@mui/x-charts@6.19.5`
130
+
131
+ - [charts] Allow to skip animation on sparkline bar (#12160) @alexfauquette
132
+
133
+ ### Docs
134
+
135
+ - [docs] Clarify Pickers 'Component composition' section (#12147) @LukasTy
136
+ - [docs] Fix 301 redirection to StackBlitz @oliviertassinari
137
+ - [docs] Fix 301 to Material UI @oliviertassinari
138
+ - [docs] Fix 301 to Material UI @oliviertassinari
139
+ - [docs] Fix 404 links to translation source @oliviertassinari
140
+ - [docs] Fix dead link to translations @oliviertassinari
141
+ - [docs] Fix the Treemap illustration (#12189) @danilo-leal
142
+ - [docs] Fix typo for `AdapterDateFnsV3` (#12037) @flaviendelangle
143
+ - [docs] Improve performance on Charts entry point @oliviertassinari
144
+ - [docs] Move Heatmap to pro (#12170) @alexfauquette
145
+ - [docs] Remove Charts installation next tag call-out (#12133) @LukasTy
146
+ - [docs] Removed `focused` prop from demo (#12126) @michelengelen
147
+ - [docs] Add missing Heatmap pro icon @oliviertassinari
148
+ - [docs] Add more illustrations to the Overview page (#12041) @danilo-leal
149
+ - [docs] Avoid use of shorthand (#12009) @oliviertassinari
150
+
151
+ ### Core
152
+
153
+ - [core] Fix CI @oliviertassinari
154
+ - [core] Fix docs link check (#12137) @LukasTy
155
+
156
+ ## 6.19.4
7
157
 
8
158
  _Feb 9, 2024_
9
159
 
@@ -15,7 +165,7 @@ We'd like to offer a big thanks to the 10 contributors who made this release pos
15
165
 
16
166
  ### Data Grid
17
167
 
18
- #### `@mui/x-data-grid@v6.19.4`
168
+ #### `@mui/x-data-grid@6.19.4`
19
169
 
20
170
  - [DataGrid] Add support for dialogs in menu actions (#11937) @cherniavskii
21
171
  - [DataGrid] Allow passing readonly arrays to `pageSizeOptions` prop (#11992) @pcorpet
@@ -23,28 +173,28 @@ We'd like to offer a big thanks to the 10 contributors who made this release pos
23
173
  - [DataGrid] Replace `eval` with `new Function` (#11962) @cherniavskii
24
174
  - [l10n] Improve Danish (da-DK) locale (#11972) @ShahrazH
25
175
 
26
- #### `@mui/x-data-grid-pro@v6.19.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
176
+ #### `@mui/x-data-grid-pro@6.19.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
27
177
 
28
- Same changes as in `@mui/x-data-grid@v6.19.4`.
178
+ Same changes as in `@mui/x-data-grid@6.19.4`.
29
179
 
30
- #### `@mui/x-data-grid-premium@v6.19.4` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
180
+ #### `@mui/x-data-grid-premium@6.19.4` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
31
181
 
32
- Same changes as in `@mui/x-data-grid-pro@v6.19.4`, plus:
182
+ Same changes as in `@mui/x-data-grid-pro@6.19.4`, plus:
33
183
 
34
184
  - [DataGridPremium] Fix autosize grouping cell (#11990) @romgrk
35
185
  - [DataGridPremium] Fix error after closing print export (#11889) @cherniavskii
36
186
 
37
187
  ### Date Pickers
38
188
 
39
- #### `@mui/x-date-pickers@v6.19.4`
189
+ #### `@mui/x-date-pickers@6.19.4`
40
190
 
41
191
  - [pickers] Avoid relying on locale in Luxon `isWithinRange` method (#11940) @LukasTy
42
192
 
43
- #### `@mui/x-date-pickers-pro@v6.19.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
193
+ #### `@mui/x-date-pickers-pro@6.19.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
44
194
 
45
- Same changes as in `@mui/x-date-pickers@v6.19.4`.
195
+ Same changes as in `@mui/x-date-pickers@6.19.4`.
46
196
 
47
- ### Charts / `@mui/x-charts@v6.19.4`
197
+ ### Charts / `@mui/x-charts@6.19.4`
48
198
 
49
199
  - [charts] Add `reverse` property to axes (#11959) @alexfauquette
50
200
  - [charts] Allow series ids to be numbers (#11960) @alexfauquette
@@ -36,7 +36,7 @@ export interface SparkLineChartProps extends Omit<ResponsiveChartContainerProps,
36
36
  * Formatter used by the tooltip.
37
37
  * @param {number} value The value to format.
38
38
  * @returns {string} the formatted value.
39
- * @default (v: number) => v.toString()
39
+ * @default (value: number | null) => (value === null ? '' : value.toString())
40
40
  */
41
41
  valueFormatter?: (value: number) => string;
42
42
  /**
@@ -73,6 +73,12 @@ export interface SparkLineChartProps extends Omit<ResponsiveChartContainerProps,
73
73
  * }
74
74
  */
75
75
  margin?: Partial<CardinalDirections<number>>;
76
+ /**
77
+ * If `true`, bar animations are skiped.
78
+ * @deprecated In v7 animations are skipped for sparkline.
79
+ * @default false
80
+ */
81
+ skipAnimation?: boolean;
76
82
  /**
77
83
  * Overridable component slots.
78
84
  * @default {}
@@ -50,9 +50,10 @@ const SparkLineChart = exports.SparkLineChart = /*#__PURE__*/React.forwardRef(fu
50
50
  slotProps,
51
51
  data,
52
52
  plotType = 'line',
53
- valueFormatter = v => v.toString(),
53
+ valueFormatter = value => value === null ? '' : value.toString(),
54
54
  area,
55
- curve = 'linear'
55
+ curve = 'linear',
56
+ skipAnimation = false
56
57
  } = props;
57
58
  const defaultXHighlight = showHighlight && plotType === 'bar' ? {
58
59
  x: 'band'
@@ -86,6 +87,7 @@ const SparkLineChart = exports.SparkLineChart = /*#__PURE__*/React.forwardRef(fu
86
87
  sx: sx,
87
88
  disableAxisListener: (!showTooltip || tooltip?.trigger !== 'axis') && axisHighlight?.x === 'none' && axisHighlight?.y === 'none',
88
89
  children: [plotType === 'bar' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_BarChart.BarPlot, {
90
+ skipAnimation: skipAnimation,
89
91
  slots: slots,
90
92
  slotProps: slotProps,
91
93
  sx: {
@@ -188,6 +190,12 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
188
190
  * @default false
189
191
  */
190
192
  showTooltip: _propTypes.default.bool,
193
+ /**
194
+ * If `true`, bar animations are skiped.
195
+ * @deprecated In v7 animations are skipped for sparkline.
196
+ * @default false
197
+ */
198
+ skipAnimation: _propTypes.default.bool,
191
199
  /**
192
200
  * The props used for each component slot.
193
201
  * @default {}
@@ -212,7 +220,7 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
212
220
  * Formatter used by the tooltip.
213
221
  * @param {number} value The value to format.
214
222
  * @returns {string} the formatted value.
215
- * @default (v: number) => v.toString()
223
+ * @default (value: number | null) => (value === null ? '' : value.toString())
216
224
  */
217
225
  valueFormatter: _propTypes.default.func,
218
226
  viewBox: _propTypes.default.shape({
@@ -42,9 +42,10 @@ const SparkLineChart = /*#__PURE__*/React.forwardRef(function SparkLineChart(pro
42
42
  slotProps,
43
43
  data,
44
44
  plotType = 'line',
45
- valueFormatter = v => v.toString(),
45
+ valueFormatter = value => value === null ? '' : value.toString(),
46
46
  area,
47
- curve = 'linear'
47
+ curve = 'linear',
48
+ skipAnimation = false
48
49
  } = props;
49
50
  const defaultXHighlight = showHighlight && plotType === 'bar' ? {
50
51
  x: 'band'
@@ -78,6 +79,7 @@ const SparkLineChart = /*#__PURE__*/React.forwardRef(function SparkLineChart(pro
78
79
  sx: sx,
79
80
  disableAxisListener: (!showTooltip || (tooltip == null ? void 0 : tooltip.trigger) !== 'axis') && (axisHighlight == null ? void 0 : axisHighlight.x) === 'none' && (axisHighlight == null ? void 0 : axisHighlight.y) === 'none',
80
81
  children: [plotType === 'bar' && /*#__PURE__*/_jsx(BarPlot, {
82
+ skipAnimation: skipAnimation,
81
83
  slots: slots,
82
84
  slotProps: slotProps,
83
85
  sx: {
@@ -180,6 +182,12 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
180
182
  * @default false
181
183
  */
182
184
  showTooltip: PropTypes.bool,
185
+ /**
186
+ * If `true`, bar animations are skiped.
187
+ * @deprecated In v7 animations are skipped for sparkline.
188
+ * @default false
189
+ */
190
+ skipAnimation: PropTypes.bool,
183
191
  /**
184
192
  * The props used for each component slot.
185
193
  * @default {}
@@ -204,7 +212,7 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
204
212
  * Formatter used by the tooltip.
205
213
  * @param {number} value The value to format.
206
214
  * @returns {string} the formatted value.
207
- * @default (v: number) => v.toString()
215
+ * @default (value: number | null) => (value === null ? '' : value.toString())
208
216
  */
209
217
  valueFormatter: PropTypes.func,
210
218
  viewBox: PropTypes.shape({
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-charts v6.19.4
2
+ * @mui/x-charts v6.19.8
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -44,12 +44,14 @@ var SparkLineChart = /*#__PURE__*/React.forwardRef(function SparkLineChart(props
44
44
  _props$plotType = props.plotType,
45
45
  plotType = _props$plotType === void 0 ? 'line' : _props$plotType,
46
46
  _props$valueFormatter = props.valueFormatter,
47
- valueFormatter = _props$valueFormatter === void 0 ? function (v) {
48
- return v.toString();
47
+ valueFormatter = _props$valueFormatter === void 0 ? function (value) {
48
+ return value === null ? '' : value.toString();
49
49
  } : _props$valueFormatter,
50
50
  area = props.area,
51
51
  _props$curve = props.curve,
52
- curve = _props$curve === void 0 ? 'linear' : _props$curve;
52
+ curve = _props$curve === void 0 ? 'linear' : _props$curve,
53
+ _props$skipAnimation = props.skipAnimation,
54
+ skipAnimation = _props$skipAnimation === void 0 ? false : _props$skipAnimation;
53
55
  var defaultXHighlight = showHighlight && plotType === 'bar' ? {
54
56
  x: 'band'
55
57
  } : {
@@ -84,6 +86,7 @@ var SparkLineChart = /*#__PURE__*/React.forwardRef(function SparkLineChart(props
84
86
  sx: sx,
85
87
  disableAxisListener: (!showTooltip || (tooltip == null ? void 0 : tooltip.trigger) !== 'axis') && (axisHighlight == null ? void 0 : axisHighlight.x) === 'none' && (axisHighlight == null ? void 0 : axisHighlight.y) === 'none',
86
88
  children: [plotType === 'bar' && /*#__PURE__*/_jsx(BarPlot, {
89
+ skipAnimation: skipAnimation,
87
90
  slots: slots,
88
91
  slotProps: slotProps,
89
92
  sx: {
@@ -186,6 +189,12 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
186
189
  * @default false
187
190
  */
188
191
  showTooltip: PropTypes.bool,
192
+ /**
193
+ * If `true`, bar animations are skiped.
194
+ * @deprecated In v7 animations are skipped for sparkline.
195
+ * @default false
196
+ */
197
+ skipAnimation: PropTypes.bool,
189
198
  /**
190
199
  * The props used for each component slot.
191
200
  * @default {}
@@ -210,7 +219,7 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
210
219
  * Formatter used by the tooltip.
211
220
  * @param {number} value The value to format.
212
221
  * @returns {string} the formatted value.
213
- * @default (v: number) => v.toString()
222
+ * @default (value: number | null) => (value === null ? '' : value.toString())
214
223
  */
215
224
  valueFormatter: PropTypes.func,
216
225
  viewBox: PropTypes.shape({
package/legacy/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-charts v6.19.4
2
+ * @mui/x-charts v6.19.8
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -42,9 +42,10 @@ const SparkLineChart = /*#__PURE__*/React.forwardRef(function SparkLineChart(pro
42
42
  slotProps,
43
43
  data,
44
44
  plotType = 'line',
45
- valueFormatter = v => v.toString(),
45
+ valueFormatter = value => value === null ? '' : value.toString(),
46
46
  area,
47
- curve = 'linear'
47
+ curve = 'linear',
48
+ skipAnimation = false
48
49
  } = props;
49
50
  const defaultXHighlight = showHighlight && plotType === 'bar' ? {
50
51
  x: 'band'
@@ -78,6 +79,7 @@ const SparkLineChart = /*#__PURE__*/React.forwardRef(function SparkLineChart(pro
78
79
  sx: sx,
79
80
  disableAxisListener: (!showTooltip || tooltip?.trigger !== 'axis') && axisHighlight?.x === 'none' && axisHighlight?.y === 'none',
80
81
  children: [plotType === 'bar' && /*#__PURE__*/_jsx(BarPlot, {
82
+ skipAnimation: skipAnimation,
81
83
  slots: slots,
82
84
  slotProps: slotProps,
83
85
  sx: {
@@ -180,6 +182,12 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
180
182
  * @default false
181
183
  */
182
184
  showTooltip: PropTypes.bool,
185
+ /**
186
+ * If `true`, bar animations are skiped.
187
+ * @deprecated In v7 animations are skipped for sparkline.
188
+ * @default false
189
+ */
190
+ skipAnimation: PropTypes.bool,
183
191
  /**
184
192
  * The props used for each component slot.
185
193
  * @default {}
@@ -204,7 +212,7 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
204
212
  * Formatter used by the tooltip.
205
213
  * @param {number} value The value to format.
206
214
  * @returns {string} the formatted value.
207
- * @default (v: number) => v.toString()
215
+ * @default (value: number | null) => (value === null ? '' : value.toString())
208
216
  */
209
217
  valueFormatter: PropTypes.func,
210
218
  viewBox: PropTypes.shape({
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-charts v6.19.4
2
+ * @mui/x-charts v6.19.8
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-charts",
3
- "version": "6.19.4",
3
+ "version": "6.19.8",
4
4
  "description": "The community edition of the charts components (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./index.js",