@mui/x-data-grid-premium 6.10.2 → 6.11.1

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,6 +3,160 @@
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
+ ## 6.11.1
7
+
8
+ _Aug 11, 2023_
9
+
10
+ We'd like to offer a big thanks to the 8 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 💫 Add theme augmentation to `@mui/x-tree-view`
13
+ - 📈 Enable charts customization using `slot` and `slotProps` props
14
+ - 🌍 Improve Finnish (fi-FI) and Icelandic (is-IS) locales on the pickers
15
+ - 🐞 Bugfixes
16
+ - 📚 Documentation improvements
17
+
18
+ ### Data Grid
19
+
20
+ #### `@mui/x-data-grid@6.11.1`
21
+
22
+ - [DataGrid] `getCellAggregationResult`: Handle `null` `rowNode` case (#9915) @romgrk
23
+
24
+ #### `@mui/x-data-grid-pro@6.11.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link)
25
+
26
+ Same changes as in `@mui/x-data-grid@6.11.1`.
27
+
28
+ #### `@mui/x-data-grid-premium@6.11.1` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link)
29
+
30
+ Same changes as in `@mui/x-data-grid-pro@6.11.1`.
31
+
32
+ ### Date Pickers
33
+
34
+ #### `@mui/x-date-pickers@6.11.1`
35
+
36
+ - [fields] Use `numeric` `inputmode` instead of `tel` (#9918) @LukasTy
37
+ - [pickers] Always respect locale when formatting meridiem (#9979) @flaviendelangle
38
+ - [pickers] Call `onChange` when selecting a shortcut with `changeImportance="set"` (#9974) @flaviendelangle
39
+ - [pickers] Refactor `themeAugmentation` `styleOverrides` (#9978) @LukasTy
40
+ - [l10n] Improve Finnish (fi-FI) locale (#9795) @kurkle
41
+ - [l10n] Improve Icelandic (is-IS) locale (#9639) @magnimarels
42
+
43
+ #### `@mui/x-date-pickers-pro@6.11.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link)
44
+
45
+ Same changes as in `@mui/x-date-pickers@6.11.1`.
46
+
47
+ ### Charts / `@mui/x-charts@v6.0.0-alpha.7`
48
+
49
+ - [charts] Fix label and tick alignment (#9952) @LukasTy
50
+ - [charts] Remove not functional component `styleOverrides` (#9996) @LukasTy
51
+ - [charts] Set custom ticks number (#9922) @alexfauquette
52
+ - [charts] Use `slot`/`slotProps` for customization (#9744) @alexfauquette
53
+ - [charts] Extend cheerful fiesta palette (#9980) @noraleonte
54
+
55
+ ### Tree View / `@mui/x-tree-view@v6.0.0-alpha.1`
56
+
57
+ - [TreeView] Add theme augmentation (#9967) @flaviendelangle
58
+
59
+ ### Docs
60
+
61
+ - [docs] Clarify the `shouldDisableClock` migration code options (#9920) @LukasTy
62
+
63
+ ### Core
64
+
65
+ - [core] Port GitHub workflow for ensuring triage label is present (#9924) @DanailH
66
+ - [docs-infra] Fix the import samples in Api pages (#9898) @alexfauquette
67
+
68
+ ## 6.11.0
69
+
70
+ _Aug 4, 2023_
71
+
72
+ We'd like to offer a big thanks to the 12 contributors who made this release possible. Here are some highlights ✨:
73
+
74
+ - ⌚️ Move the tree view component from `@mui/lab` package
75
+
76
+ The `<TreeView />` component has been moved to the MUI X repository.
77
+ It is now accessible from its own package: `@mui/x-tree-view`.
78
+
79
+ - 🌍 Improve Hebrew (he-IL), Finnish (fi-FI), and Italian (it-IT) locales on the data grid
80
+ - 🐞 Bugfixes
81
+ - 📚 Documentation improvements
82
+
83
+ ### Data Grid
84
+
85
+ #### `@mui/x-data-grid@v6.11.0`
86
+
87
+ - [DataGrid] Add `ariaV7` experimental flag (#9496) @cherniavskii
88
+ - [DataGrid] Fix cell size when column width is set to `undefined` (#9871) @gitstart
89
+ - [l10n] Improve Hebrew (he-IL) locale (#9820) @itayG98
90
+ - [l10n] Improve Finnish (fi-FI) locale (#9848) @sambbaahh
91
+ - [l10n] Improve Italian (it-IT) locale (#9627) @fabio-rizzello-omnia
92
+
93
+ #### `@mui/x-data-grid-pro@v6.11.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link)
94
+
95
+ Same changes as in `@mui/x-data-grid@v6.11.0`.
96
+
97
+ #### `@mui/x-data-grid-premium@v6.11.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link)
98
+
99
+ Same changes as in `@mui/x-data-grid-pro@v6.11.0`.
100
+
101
+ ### Date Pickers
102
+
103
+ #### `@mui/x-date-pickers@v6.11.0`
104
+
105
+ - [fields] Correctly handle events with a complete value insertion (#9896) @LukasTy
106
+ - [fields] Fix hours editing on dayjs with timezone and DST (#9901) @flaviendelangle
107
+ - [fields] Fix section clearing with timezone (#9819) @flaviendelangle
108
+ - [pickers] Add `CalendarHeader` slot (#7784) @flaviendelangle
109
+ - [pickers] Allow to override the `InputProps` of the `TextField` using the `slotProps` (#9849) @flaviendelangle
110
+ - [pickers] Allow to override the opening aria text using the `localeText` prop on the pickers (#9870) @flaviendelangle
111
+ - [pickers] Fix `sx` and `className` props on `MobileDateRangePicker` (#9853) @flaviendelangle
112
+ - [pickers] Fix default descriptions (#9887) @LukasTy
113
+ - [pickers] Fix offset management on dayjs adapter (#9884) @flaviendelangle
114
+ - [pickers] Use device motion reduction preference (#9823) @LukasTy
115
+
116
+ #### `@mui/x-date-pickers-pro@v6.11.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link)
117
+
118
+ Same changes as in `@mui/x-date-pickers@v6.11.0`.
119
+
120
+ ### Charts / `@mui/x-charts@v6.0.0-alpha.6`
121
+
122
+ - [charts] Add TS definition to the exported elements (#9885) @alexfauquette
123
+ - [charts] Add sparkline (#9662) @alexfauquette
124
+ - [charts] Fix missing configuration types (#9886) @alexfauquette
125
+ - [charts] Introduce dataset to simplify plot of data from API (#9774) @alexfauquette
126
+
127
+ ### Tree View / `@mui/x-tree-view@v6.0.0-alpha.0`
128
+
129
+ - [TreeView] Add missing exported types (#9862) @flaviendelangle
130
+ - [TreeView] Add tree view to changelog generator script (#9903) @MBilalShafi
131
+ - [TreeView] Create the package on the X repository (#9798) @flaviendelangle
132
+ - [TreeView] Improve props typing (#9855) @flaviendelangle
133
+
134
+ ### Docs
135
+
136
+ - [docs] Add Tree View doc (#9825) @flaviendelangle
137
+ - [docs] Add charts nav item (#9821) @LukasTy
138
+ - [docs] Add charts to MUI X introduction pages (#9704) @joserodolfofreitas
139
+ - [docs] Add example for avoiding picker views layout shift (#9781) @noraleonte
140
+ - [docs] Consistency of Next.js App Router @oliviertassinari
141
+ - [docs] Fix API page regression: bring back slots section (#9866) @alexfauquette
142
+ - [docs] Fix demo using Pro while it's MIT (#9842) @oliviertassinari
143
+ - [docs] Get ready for next docs-infra change @oliviertassinari
144
+ - [docs] Improve the slots documentation `Recommended usage` section (#9892) @flaviendelangle
145
+
146
+ ### Core
147
+
148
+ - [core] Fix font loading issue dev-mode (#9843) @oliviertassinari
149
+ - [core] Fix pipeline (#9894) @LukasTy
150
+ - [core] Fix the link-check script on Windows (#9888) @alexfauquette
151
+ - [core] Fix v7 capitalization (#9878) @oliviertassinari
152
+ - [core] Regen doc (#9902) @flaviendelangle
153
+ - [core] Remove benchmark package (#9413) @LukasTy
154
+ - [core] Stop using the deprecated `JSX` global namespace (#9854) @flaviendelangle
155
+ - [core] Update monorepo (#9846) @flaviendelangle
156
+ - [core] Update tree data API docs (#9827) @cherniavskii
157
+ - [test] Add pickers e2e tests (#9747) @LukasTy
158
+ - [test] Data grid e2e tests follow-up (#9822) @cherniavskii
159
+
6
160
  ## 6.10.2
7
161
 
8
162
  _Jul 27, 2023_
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  import { GridValidRowModel } from '@mui/x-data-grid-pro';
3
3
  import { DataGridPremiumProps } from '../models/dataGridPremiumProps';
4
4
  interface DataGridPremiumComponent {
5
- <R extends GridValidRowModel = any>(props: DataGridPremiumProps<R> & React.RefAttributes<HTMLDivElement>): JSX.Element;
5
+ <R extends GridValidRowModel = any>(props: DataGridPremiumProps<R> & React.RefAttributes<HTMLDivElement>): React.JSX.Element;
6
6
  propTypes?: any;
7
7
  }
8
8
  export declare const DataGridPremium: DataGridPremiumComponent;
@@ -258,6 +258,7 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
258
258
  * For each feature, if the flag is not explicitly set to `true`, then the feature is fully disabled, and neither property nor method calls will have any effect.
259
259
  */
260
260
  experimentalFeatures: PropTypes.shape({
261
+ ariaV7: PropTypes.bool,
261
262
  clipboardPaste: PropTypes.bool,
262
263
  columnGrouping: PropTypes.bool,
263
264
  lazyLoading: PropTypes.bool,
@@ -310,7 +311,7 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
310
311
  /**
311
312
  * Function that returns the element to render in row detail.
312
313
  * @param {GridRowParams} params With all properties from [[GridRowParams]].
313
- * @returns {JSX.Element} The row detail element.
314
+ * @returns {React.JSX.Element} The row detail element.
314
315
  */
315
316
  getDetailPanelContent: PropTypes.func,
316
317
  /**
@@ -152,6 +152,9 @@ export const wrapColumnWithAggregationValue = ({
152
152
  var _rowNode$parent, _gridAggregationLooku;
153
153
  let cellAggregationPosition = null;
154
154
  const rowNode = apiRef.current.getRowNode(id);
155
+ if (!rowNode) {
156
+ return null;
157
+ }
155
158
  if (rowNode.type === 'group') {
156
159
  cellAggregationPosition = 'inline';
157
160
  } else if (id.toString().startsWith('auto-generated-group-footer-')) {
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-premium v6.10.2
2
+ * @mui/x-data-grid-premium v6.11.1
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -258,6 +258,7 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
258
258
  * For each feature, if the flag is not explicitly set to `true`, then the feature is fully disabled, and neither property nor method calls will have any effect.
259
259
  */
260
260
  experimentalFeatures: PropTypes.shape({
261
+ ariaV7: PropTypes.bool,
261
262
  clipboardPaste: PropTypes.bool,
262
263
  columnGrouping: PropTypes.bool,
263
264
  lazyLoading: PropTypes.bool,
@@ -310,7 +311,7 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
310
311
  /**
311
312
  * Function that returns the element to render in row detail.
312
313
  * @param {GridRowParams} params With all properties from [[GridRowParams]].
313
- * @returns {JSX.Element} The row detail element.
314
+ * @returns {React.JSX.Element} The row detail element.
314
315
  */
315
316
  getDetailPanelContent: PropTypes.func,
316
317
  /**
@@ -148,6 +148,9 @@ export var wrapColumnWithAggregationValue = function wrapColumnWithAggregationVa
148
148
  var _rowNode$parent, _gridAggregationLooku;
149
149
  var cellAggregationPosition = null;
150
150
  var rowNode = apiRef.current.getRowNode(id);
151
+ if (!rowNode) {
152
+ return null;
153
+ }
151
154
  if (rowNode.type === 'group') {
152
155
  cellAggregationPosition = 'inline';
153
156
  } else if (id.toString().startsWith('auto-generated-group-footer-')) {
package/legacy/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-premium v6.10.2
2
+ * @mui/x-data-grid-premium v6.11.1
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export var getReleaseInfo = function getReleaseInfo() {
3
- var releaseInfo = "MTY5MDQwODgwMDAwMA==";
3
+ var releaseInfo = "MTY5MTcwMTIwMDAwMA==";
4
4
  if (process.env.NODE_ENV !== 'production') {
5
5
  // A simple hack to set the value in the test environment (has no build step).
6
6
  // eslint-disable-next-line no-useless-concat
@@ -258,6 +258,7 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
258
258
  * For each feature, if the flag is not explicitly set to `true`, then the feature is fully disabled, and neither property nor method calls will have any effect.
259
259
  */
260
260
  experimentalFeatures: PropTypes.shape({
261
+ ariaV7: PropTypes.bool,
261
262
  clipboardPaste: PropTypes.bool,
262
263
  columnGrouping: PropTypes.bool,
263
264
  lazyLoading: PropTypes.bool,
@@ -310,7 +311,7 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
310
311
  /**
311
312
  * Function that returns the element to render in row detail.
312
313
  * @param {GridRowParams} params With all properties from [[GridRowParams]].
313
- * @returns {JSX.Element} The row detail element.
314
+ * @returns {React.JSX.Element} The row detail element.
314
315
  */
315
316
  getDetailPanelContent: PropTypes.func,
316
317
  /**
@@ -149,6 +149,9 @@ export const wrapColumnWithAggregationValue = ({
149
149
  const getCellAggregationResult = (id, field) => {
150
150
  let cellAggregationPosition = null;
151
151
  const rowNode = apiRef.current.getRowNode(id);
152
+ if (!rowNode) {
153
+ return null;
154
+ }
152
155
  if (rowNode.type === 'group') {
153
156
  cellAggregationPosition = 'inline';
154
157
  } else if (id.toString().startsWith('auto-generated-group-footer-')) {
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-premium v6.10.2
2
+ * @mui/x-data-grid-premium v6.11.1
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTY5MDQwODgwMDAwMA==";
3
+ const releaseInfo = "MTY5MTcwMTIwMDAwMA==";
4
4
  if (process.env.NODE_ENV !== 'production') {
5
5
  // A simple hack to set the value in the test environment (has no build step).
6
6
  // eslint-disable-next-line no-useless-concat
@@ -267,6 +267,7 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
267
267
  * For each feature, if the flag is not explicitly set to `true`, then the feature is fully disabled, and neither property nor method calls will have any effect.
268
268
  */
269
269
  experimentalFeatures: _propTypes.default.shape({
270
+ ariaV7: _propTypes.default.bool,
270
271
  clipboardPaste: _propTypes.default.bool,
271
272
  columnGrouping: _propTypes.default.bool,
272
273
  lazyLoading: _propTypes.default.bool,
@@ -319,7 +320,7 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
319
320
  /**
320
321
  * Function that returns the element to render in row detail.
321
322
  * @param {GridRowParams} params With all properties from [[GridRowParams]].
322
- * @returns {JSX.Element} The row detail element.
323
+ * @returns {React.JSX.Element} The row detail element.
323
324
  */
324
325
  getDetailPanelContent: _propTypes.default.func,
325
326
  /**
@@ -158,6 +158,9 @@ const wrapColumnWithAggregationValue = ({
158
158
  const getCellAggregationResult = (id, field) => {
159
159
  let cellAggregationPosition = null;
160
160
  const rowNode = apiRef.current.getRowNode(id);
161
+ if (!rowNode) {
162
+ return null;
163
+ }
161
164
  if (rowNode.type === 'group') {
162
165
  cellAggregationPosition = 'inline';
163
166
  } else if (id.toString().startsWith('auto-generated-group-footer-')) {
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-premium v6.10.2
2
+ * @mui/x-data-grid-premium v6.11.1
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.getReleaseInfo = void 0;
7
7
  var _utils = require("@mui/utils");
8
8
  const getReleaseInfo = () => {
9
- const releaseInfo = "MTY5MDQwODgwMDAwMA==";
9
+ const releaseInfo = "MTY5MTcwMTIwMDAwMA==";
10
10
  if (process.env.NODE_ENV !== 'production') {
11
11
  // A simple hack to set the value in the test environment (has no build step).
12
12
  // eslint-disable-next-line no-useless-concat
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-data-grid-premium",
3
- "version": "6.10.2",
3
+ "version": "6.11.1",
4
4
  "description": "The Premium plan edition of the data grid component (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./node/index.js",
@@ -32,12 +32,12 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@babel/runtime": "^7.22.6",
35
- "@mui/utils": "^5.13.7",
36
- "@mui/x-data-grid": "6.10.2",
37
- "@mui/x-data-grid-pro": "6.10.2",
35
+ "@mui/utils": "^5.14.3",
36
+ "@mui/x-data-grid": "6.11.1",
37
+ "@mui/x-data-grid-pro": "6.11.1",
38
38
  "@mui/x-license-pro": "6.10.2",
39
39
  "@types/format-util": "^1.0.2",
40
- "clsx": "^1.2.1",
40
+ "clsx": "^2.0.0",
41
41
  "exceljs": "^4.3.0",
42
42
  "prop-types": "^15.8.1",
43
43
  "reselect": "^4.1.8"
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTY5MDQwODgwMDAwMA==";
3
+ const releaseInfo = "MTY5MTcwMTIwMDAwMA==";
4
4
  if (process.env.NODE_ENV !== 'production') {
5
5
  // A simple hack to set the value in the test environment (has no build step).
6
6
  // eslint-disable-next-line no-useless-concat