@mui/x-data-grid-premium 7.29.0 → 7.29.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/CHANGELOG.md CHANGED
@@ -3,6 +3,137 @@
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
+ ## 7.29.2
7
+
8
+ _May 1, 2025_
9
+
10
+ We'd like to offer a big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🌍 Add Armenian (hy-AM) locale on the Data Grid
13
+ - 🌍 Improve Italian (it-IT) locale on the Date and Time Pickers
14
+ - 🐞 Bugfixes
15
+
16
+ Special thanks go out to the community contributors who have helped make this release possible:
17
+ @ArturAghakaryan, @federico-ntr.
18
+
19
+ Following are all team members who have contributed to this release:
20
+ @arminmeh, @JCQuintas, @KenanYusuf, @MBilalShafi, @oliviertassinari.
21
+
22
+ <!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
23
+
24
+ ### Data Grid
25
+
26
+ #### `@mui/x-data-grid@7.29.2`
27
+
28
+ - [DataGrid] Fix column title truncation on touch devices (#17497) @KenanYusuf
29
+ - [DataGrid] Fix theme `defaultProps` causing unwanted re-renders (#17530) @KenanYusuf
30
+ - [l10n] Add Armenian (hy-AM) locale (#17422) @ArturAghakaryan
31
+ - [l10n] Fix l10n export (#17526) @arminmeh
32
+
33
+ #### `@mui/x-data-grid-pro@7.29.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
34
+
35
+ Same changes as in `@mui/x-data-grid@7.29.2`.
36
+
37
+ #### `@mui/x-data-grid-premium@7.29.2` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
38
+
39
+ Same changes as in `@mui/x-data-grid-pro@7.29.2`.
40
+
41
+ ### Date and Time Pickers
42
+
43
+ #### `@mui/x-date-pickers@7.29.2`
44
+
45
+ - [l10n] Improve Italian (it-IT) locale (#17604) @federico-ntr
46
+
47
+ #### `@mui/x-date-pickers-pro@7.29.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
48
+
49
+ Same changes as in `@mui/x-date-pickers@7.29.2`.
50
+
51
+ ### Docs
52
+
53
+ - [docs] Fix MUI X v7 install instructions (#17537) @oliviertassinari
54
+ - [docs] Improve data grid export docs (#17553) @MBilalShafi
55
+
56
+ ### Core
57
+
58
+ - [core] Fix root package 7.29.1 (#17523) @JCQuintas
59
+
60
+ ## 7.29.1
61
+
62
+ _Apr 23, 2025_
63
+
64
+ We'd like to offer a big thanks to the 5 contributors who made this release possible. Here are some highlights ✨:
65
+
66
+ - 🐞 Bugfixes
67
+
68
+ Special thanks go out to the community contributors who have helped make this release possible:
69
+ @lhilgert9
70
+
71
+ Following are all team members who have contributed to this release:
72
+ @arminmeh, @cherniavskii, @flaviendelangle, @LukasTy, @romgrk.
73
+
74
+ <!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
75
+
76
+ ### Data Grid
77
+
78
+ #### `@mui/x-data-grid@7.29.1`
79
+
80
+ - [DataGrid] Prevent scrollbars from showing on top (#17410) @romgrk
81
+
82
+ #### `@mui/x-data-grid-pro@7.29.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
83
+
84
+ Same changes as in `@mui/x-data-grid@7.29.1`, plus:
85
+
86
+ - [DataGridPro] Avoid proptypes warnings with header filters in React 17 (#17492) @cherniavskii
87
+ - [DataGridPro] Fix expandable rows detail content height updates (#17509) @arminmeh
88
+ - [DataGridPro] Fix row virtualization not working in list view (#17404) @cherniavskii
89
+ - [DataGridPro] Move locales re-export to allow proper tree shaking (#17438) @lhilgert9
90
+
91
+ #### `@mui/x-data-grid-premium@7.29.1` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
92
+
93
+ Same changes as in `@mui/x-data-grid-pro@7.29.1`, plus:
94
+
95
+ - [DataGridPremium] Use `groupingValueGetter` for row grouping on the server (#17423) @cherniavskii
96
+
97
+ ### Date and Time Pickers
98
+
99
+ #### `@mui/x-date-pickers@7.29.1`
100
+
101
+ Internal changes.
102
+
103
+ #### `@mui/x-date-pickers-pro@7.29.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
104
+
105
+ Same changes as in `@mui/x-date-pickers@7.29.1`.
106
+
107
+ ### Charts
108
+
109
+ #### `@mui/x-charts@7.29.1`
110
+
111
+ Internal changes.
112
+
113
+ #### `@mui/x-charts-pro@7.29.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
114
+
115
+ Same changes as in `@mui/x-charts@7.29.1`.
116
+
117
+ ### Tree View
118
+
119
+ #### `@mui/x-tree-view@7.29.1`
120
+
121
+ Internal changes.
122
+
123
+ #### `@mui/x-tree-view-pro@7.29.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
124
+
125
+ Same changes as in `@mui/x-tree-view@7.29.1`, plus:
126
+
127
+ - [RichTreeViewPro] Fix drag and drop issue with label editing (#17415) @flaviendelangle
128
+
129
+ ### Docs
130
+
131
+ - [docs] Use MUI X v7 packages in CodeSandbox and StackBlitz (#17516) @cherniavskii
132
+
133
+ ### Core
134
+
135
+ - [core] Bump monorepo (#17437) @LukasTy
136
+
6
137
  ## 7.29.0
7
138
 
8
139
  _Apr 16, 2025_
@@ -9,6 +9,7 @@ exports.useDataGridPremiumProps = exports.DATA_GRID_PREMIUM_PROPS_DEFAULT_VALUES
9
9
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
10
10
  var React = _interopRequireWildcard(require("react"));
11
11
  var _styles = require("@mui/material/styles");
12
+ var _system = require("@mui/system");
12
13
  var _xDataGridPro = require("@mui/x-data-grid-pro");
13
14
  var _internals = require("@mui/x-data-grid-pro/internals");
14
15
  var _aggregation = require("../hooks/features/aggregation");
@@ -42,12 +43,12 @@ const DATA_GRID_PREMIUM_PROPS_DEFAULT_VALUES = exports.DATA_GRID_PREMIUM_PROPS_D
42
43
  });
43
44
  const defaultSlots = _dataGridPremiumDefaultSlotsComponents.DATA_GRID_PREMIUM_DEFAULT_SLOTS_COMPONENTS;
44
45
  const useDataGridPremiumProps = inProps => {
45
- const themedProps = (0, _internals.useProps)(
46
- // eslint-disable-next-line material-ui/mui-name-matches-component-name
47
- (0, _styles.useThemeProps)({
46
+ const theme = (0, _styles.useTheme)();
47
+ const themedProps = (0, _internals.useProps)(React.useMemo(() => (0, _system.getThemeProps)({
48
48
  props: inProps,
49
+ theme,
49
50
  name: 'MuiDataGrid'
50
- }));
51
+ }), [theme, inProps]));
51
52
  const localeText = React.useMemo(() => (0, _extends2.default)({}, _xDataGridPro.GRID_DEFAULT_LOCALE_TEXT, themedProps.localeText), [themedProps.localeText]);
52
53
  const slots = React.useMemo(() => (0, _internals.computeSlots)({
53
54
  defaultSlots,
@@ -1,6 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import * as React from 'react';
3
- import { useThemeProps } from '@mui/material/styles';
3
+ import { useTheme } from '@mui/material/styles';
4
+ import { getThemeProps } from '@mui/system';
4
5
  import { DATA_GRID_PRO_PROPS_DEFAULT_VALUES, GRID_DEFAULT_LOCALE_TEXT, GridSignature } from '@mui/x-data-grid-pro';
5
6
  import { computeSlots, useProps } from '@mui/x-data-grid-pro/internals';
6
7
  import { GRID_AGGREGATION_FUNCTIONS } from "../hooks/features/aggregation/index.js";
@@ -34,12 +35,12 @@ export const DATA_GRID_PREMIUM_PROPS_DEFAULT_VALUES = _extends({}, DATA_GRID_PRO
34
35
  });
35
36
  const defaultSlots = DATA_GRID_PREMIUM_DEFAULT_SLOTS_COMPONENTS;
36
37
  export const useDataGridPremiumProps = inProps => {
37
- const themedProps = useProps(
38
- // eslint-disable-next-line material-ui/mui-name-matches-component-name
39
- useThemeProps({
38
+ const theme = useTheme();
39
+ const themedProps = useProps(React.useMemo(() => getThemeProps({
40
40
  props: inProps,
41
+ theme,
41
42
  name: 'MuiDataGrid'
42
- }));
43
+ }), [theme, inProps]));
43
44
  const localeText = React.useMemo(() => _extends({}, GRID_DEFAULT_LOCALE_TEXT, themedProps.localeText), [themedProps.localeText]);
44
45
  const slots = React.useMemo(() => computeSlots({
45
46
  defaultSlots,
@@ -22,10 +22,7 @@ export const useGridDataSourceRowGroupingPreProcessors = (apiRef, props) => {
22
22
  apiRef.current.caches.rowGrouping.rulesOnLastRowTreeCreation = groupingRules;
23
23
  const getRowTreeBuilderNode = rowId => {
24
24
  const parentPath = params.updates.groupKeys ?? [];
25
- const row = params.dataRowIdToModelLookup[rowId];
26
- const groupingRule = groupingRules[parentPath.length];
27
- const groupingValueGetter = groupingRule?.groupingValueGetter;
28
- const leafKey = groupingValueGetter?.(row[groupingRule.field], row, columnsLookup[groupingRule.field], apiRef) ?? getGroupKey(params.dataRowIdToModelLookup[rowId]);
25
+ const leafKey = getGroupKey(params.dataRowIdToModelLookup[rowId]);
29
26
  return {
30
27
  id: rowId,
31
28
  path: [...parentPath, leafKey ?? rowId.toString()].map((key, i) => ({
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTc0NDc1NDQwMDAwMA==";
3
+ const releaseInfo = "MTc0NjA0NjgwMDAwMA==";
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
@@ -29,10 +29,7 @@ const useGridDataSourceRowGroupingPreProcessors = (apiRef, props) => {
29
29
  apiRef.current.caches.rowGrouping.rulesOnLastRowTreeCreation = groupingRules;
30
30
  const getRowTreeBuilderNode = rowId => {
31
31
  const parentPath = params.updates.groupKeys ?? [];
32
- const row = params.dataRowIdToModelLookup[rowId];
33
- const groupingRule = groupingRules[parentPath.length];
34
- const groupingValueGetter = groupingRule?.groupingValueGetter;
35
- const leafKey = groupingValueGetter?.(row[groupingRule.field], row, columnsLookup[groupingRule.field], apiRef) ?? getGroupKey(params.dataRowIdToModelLookup[rowId]);
32
+ const leafKey = getGroupKey(params.dataRowIdToModelLookup[rowId]);
36
33
  return {
37
34
  id: rowId,
38
35
  path: [...parentPath, leafKey ?? rowId.toString()].map((key, i) => ({
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-premium v7.29.0
2
+ * @mui/x-data-grid-premium v7.29.2
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -0,0 +1,6 @@
1
+ {
2
+ "sideEffects": false,
3
+ "module": "../esm/locales/index.js",
4
+ "main": "./index.js",
5
+ "types": "./index.d.ts"
6
+ }
@@ -1,6 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import * as React from 'react';
3
- import { useThemeProps } from '@mui/material/styles';
3
+ import { useTheme } from '@mui/material/styles';
4
+ import { getThemeProps } from '@mui/system';
4
5
  import { DATA_GRID_PRO_PROPS_DEFAULT_VALUES, GRID_DEFAULT_LOCALE_TEXT, GridSignature } from '@mui/x-data-grid-pro';
5
6
  import { computeSlots, useProps } from '@mui/x-data-grid-pro/internals';
6
7
  import { GRID_AGGREGATION_FUNCTIONS } from "../hooks/features/aggregation/index.js";
@@ -34,12 +35,12 @@ export const DATA_GRID_PREMIUM_PROPS_DEFAULT_VALUES = _extends({}, DATA_GRID_PRO
34
35
  });
35
36
  const defaultSlots = DATA_GRID_PREMIUM_DEFAULT_SLOTS_COMPONENTS;
36
37
  export const useDataGridPremiumProps = inProps => {
37
- const themedProps = useProps(
38
- // eslint-disable-next-line material-ui/mui-name-matches-component-name
39
- useThemeProps({
38
+ const theme = useTheme();
39
+ const themedProps = useProps(React.useMemo(() => getThemeProps({
40
40
  props: inProps,
41
+ theme,
41
42
  name: 'MuiDataGrid'
42
- }));
43
+ }), [theme, inProps]));
43
44
  const localeText = React.useMemo(() => _extends({}, GRID_DEFAULT_LOCALE_TEXT, themedProps.localeText), [themedProps.localeText]);
44
45
  const slots = React.useMemo(() => computeSlots({
45
46
  defaultSlots,
@@ -22,10 +22,7 @@ export const useGridDataSourceRowGroupingPreProcessors = (apiRef, props) => {
22
22
  apiRef.current.caches.rowGrouping.rulesOnLastRowTreeCreation = groupingRules;
23
23
  const getRowTreeBuilderNode = rowId => {
24
24
  const parentPath = params.updates.groupKeys ?? [];
25
- const row = params.dataRowIdToModelLookup[rowId];
26
- const groupingRule = groupingRules[parentPath.length];
27
- const groupingValueGetter = groupingRule?.groupingValueGetter;
28
- const leafKey = groupingValueGetter?.(row[groupingRule.field], row, columnsLookup[groupingRule.field], apiRef) ?? getGroupKey(params.dataRowIdToModelLookup[rowId]);
25
+ const leafKey = getGroupKey(params.dataRowIdToModelLookup[rowId]);
29
26
  return {
30
27
  id: rowId,
31
28
  path: [...parentPath, leafKey ?? rowId.toString()].map((key, i) => ({
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-premium v7.29.0
2
+ * @mui/x-data-grid-premium v7.29.2
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 = "MTc0NDc1NDQwMDAwMA==";
3
+ const releaseInfo = "MTc0NjA0NjgwMDAwMA==";
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-data-grid-premium",
3
- "version": "7.29.0",
3
+ "version": "7.29.2",
4
4
  "description": "The Premium plan edition of the Data Grid Components (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./index.js",
@@ -40,10 +40,10 @@
40
40
  "exceljs": "^4.4.0",
41
41
  "prop-types": "^15.8.1",
42
42
  "reselect": "^5.1.1",
43
- "@mui/x-license": "7.29.0",
44
- "@mui/x-data-grid-pro": "7.29.0",
43
+ "@mui/x-data-grid": "7.29.2",
44
+ "@mui/x-data-grid-pro": "7.29.2",
45
45
  "@mui/x-internals": "7.29.0",
46
- "@mui/x-data-grid": "7.29.0"
46
+ "@mui/x-license": "7.29.1"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "@emotion/react": "^11.9.0",
@@ -58,6 +58,7 @@ export interface GridColDefPremium<R extends GridValidRowModel = any, V = any, F
58
58
  availableAggregationFunctions?: string[];
59
59
  /**
60
60
  * Function that transforms a complex cell value into a key that be used for grouping the rows.
61
+ * Not supported with the server-side row grouping. Use `dataSource.getGroupKey()` instead.
61
62
  * @returns {GridKeyValue | null | undefined} The cell key.
62
63
  */
63
64
  groupingValueGetter?: GridGroupingValueGetter<R>;
@@ -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 = "MTc0NDc1NDQwMDAwMA==";
9
+ const releaseInfo = "MTc0NjA0NjgwMDAwMA==";
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
File without changes
File without changes
File without changes
File without changes