@mui/x-data-grid-premium 5.17.23 → 5.17.25

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,50 @@
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
+ ## 5.17.25
7
+
8
+ _Feb 23, 2023_
9
+
10
+ We'd like to offer a big thanks to the 2 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🐞 Bugfixes
13
+
14
+ ### `@mui/x-data-grid@v5.17.25` / `@mui/x-data-grid-pro@v5.17.25` / `@mui/x-data-grid-premium@v5.17.25`
15
+
16
+ #### Changes
17
+
18
+ - [DataGrid] Fix `ownerState` being `undefined` in theme style overrides (#7757) @lolaignatova
19
+
20
+ ### `@mui/x-date-pickers@v5.0.20` / `@mui/x-date-pickers-pro@v5.0.20`
21
+
22
+ #### Changes
23
+
24
+ - [DateTimePicker] Ensure toolbar `viewType` is correctly updated (#7942) @LukasTy
25
+
26
+ ## 5.17.24
27
+
28
+ _Feb 16, 2023_
29
+
30
+ We'd like to offer a big thanks to the 5 contributors who made this release possible. Here are some highlights ✨:
31
+
32
+ - 🌍 Add Hungarian (hu-HU) locale
33
+ - 🐞 Bugfixes
34
+
35
+ ### `@mui/x-data-grid@v5.17.24` / `@mui/x-data-grid-pro@v5.17.24` / `@mui/x-data-grid-premium@v5.17.24`
36
+
37
+ #### Changes
38
+
39
+ - [DataGrid] Allow to pass props to the `TrapFocus` inside the panel wrapper (#7897) @Vivek-Prajapatii
40
+ - [DataGrid] Avoid unnecessary rerenders after `updateRows` (#7945) @cherniavskii
41
+ - [DataGridPro] Change cursor when dragging a column (#7878) @sai6855
42
+ - [DataGridPremium] Fix `leafField` to have correct focus value (#7959) @MBilalShafi
43
+
44
+ ### `@mui/x-date-pickers@v5.0.19` / `@mui/x-date-pickers-pro@v5.0.19`
45
+
46
+ #### Changes
47
+
48
+ - [l10n] Add Hungarian (hu-HU) locale (#7796) @noherczeg
49
+
6
50
  ## 5.17.23
7
51
 
8
52
  _Feb 9, 2023_
@@ -1,3 +1,4 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
1
2
  import * as React from 'react';
2
3
  import { unstable_composeClasses as composeClasses } from '@mui/material';
3
4
  import Box from '@mui/material/Box';
@@ -61,11 +62,12 @@ const GridAggregationHeader = props => {
61
62
  const apiRef = useGridApiContext();
62
63
  const rootProps = useGridRootProps();
63
64
  const headerHeight = useGridSelector(apiRef, gridDensityHeaderHeightSelector);
64
- const ownerState = {
65
- classes: rootProps.classes,
65
+
66
+ const ownerState = _extends({}, rootProps, {
66
67
  headerHeight,
67
68
  colDef
68
- };
69
+ });
70
+
69
71
  const classes = useUtilityClasses(ownerState);
70
72
 
71
73
  if (!aggregation) {
@@ -36,9 +36,7 @@ const GridFooterCell = props => {
36
36
  other = _objectWithoutPropertiesLoose(props, _excluded);
37
37
 
38
38
  const rootProps = useGridRootProps();
39
- const ownerState = {
40
- classes: rootProps.classes
41
- };
39
+ const ownerState = rootProps;
42
40
  const classes = useUtilityClasses(ownerState);
43
41
  return /*#__PURE__*/_jsx(GridFooterCellRoot, _extends({
44
42
  ownerState: ownerState,
@@ -154,7 +154,8 @@ export const createGroupingColDefForOneGroupingCriteria = ({
154
154
  if (params.rowNode.groupingField == null) {
155
155
  if (leafColDef) {
156
156
  const leafParams = _extends({}, params.api.getCellParams(params.id, leafField), {
157
- api: params.api
157
+ api: params.api,
158
+ hasFocus: params.hasFocus
158
159
  });
159
160
 
160
161
  if (leafColDef.renderCell) {
@@ -260,7 +261,8 @@ export const createGroupingColDefForAllGroupingCriteria = ({
260
261
  if (params.rowNode.groupingField == null) {
261
262
  if (leafColDef) {
262
263
  const leafParams = _extends({}, params.api.getCellParams(params.id, leafField), {
263
- api: params.api
264
+ api: params.api,
265
+ hasFocus: params.hasFocus
264
266
  });
265
267
 
266
268
  if (leafColDef.renderCell) {
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI X v5.17.23
1
+ /** @license MUI X v5.17.25
2
2
  *
3
3
  * This source code is licensed under the commercial license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -1,3 +1,4 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
1
2
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
3
 
3
4
  var _styled;
@@ -62,11 +63,12 @@ var GridAggregationHeader = function GridAggregationHeader(props) {
62
63
  var apiRef = useGridApiContext();
63
64
  var rootProps = useGridRootProps();
64
65
  var headerHeight = useGridSelector(apiRef, gridDensityHeaderHeightSelector);
65
- var ownerState = {
66
- classes: rootProps.classes,
66
+
67
+ var ownerState = _extends({}, rootProps, {
67
68
  headerHeight: headerHeight,
68
69
  colDef: colDef
69
- };
70
+ });
71
+
70
72
  var classes = useUtilityClasses(ownerState);
71
73
 
72
74
  if (!aggregation) {
@@ -48,9 +48,7 @@ var GridFooterCell = function GridFooterCell(props) {
48
48
  other = _objectWithoutProperties(props, _excluded);
49
49
 
50
50
  var rootProps = useGridRootProps();
51
- var ownerState = {
52
- classes: rootProps.classes
53
- };
51
+ var ownerState = rootProps;
54
52
  var classes = useUtilityClasses(ownerState);
55
53
  return /*#__PURE__*/_jsx(GridFooterCellRoot, _extends({
56
54
  ownerState: ownerState,
@@ -157,7 +157,8 @@ export var createGroupingColDefForOneGroupingCriteria = function createGroupingC
157
157
  if (params.rowNode.groupingField == null) {
158
158
  if (leafColDef) {
159
159
  var leafParams = _extends({}, params.api.getCellParams(params.id, leafField), {
160
- api: params.api
160
+ api: params.api,
161
+ hasFocus: params.hasFocus
161
162
  });
162
163
 
163
164
  if (leafColDef.renderCell) {
@@ -261,7 +262,8 @@ export var createGroupingColDefForAllGroupingCriteria = function createGroupingC
261
262
  if (params.rowNode.groupingField == null) {
262
263
  if (leafColDef) {
263
264
  var leafParams = _extends({}, params.api.getCellParams(params.id, leafField), {
264
- api: params.api
265
+ api: params.api,
266
+ hasFocus: params.hasFocus
265
267
  });
266
268
 
267
269
  if (leafColDef.renderCell) {
package/legacy/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI X v5.17.23
1
+ /** @license MUI X v5.17.25
2
2
  *
3
3
  * This source code is licensed under the commercial license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export var getReleaseInfo = function getReleaseInfo() {
3
- var releaseInfo = "MTY3NTg5NzIwMDAwMA==";
3
+ var releaseInfo = "MTY3NzEwNjgwMDAwMA==";
4
4
 
5
5
  if (process.env.NODE_ENV !== 'production') {
6
6
  // A simple hack to set the value in the test environment (has no build step).
@@ -1,3 +1,4 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
1
2
  import * as React from 'react';
2
3
  import { unstable_composeClasses as composeClasses } from '@mui/material';
3
4
  import Box from '@mui/material/Box';
@@ -59,11 +60,12 @@ const GridAggregationHeader = props => {
59
60
  const apiRef = useGridApiContext();
60
61
  const rootProps = useGridRootProps();
61
62
  const headerHeight = useGridSelector(apiRef, gridDensityHeaderHeightSelector);
62
- const ownerState = {
63
- classes: rootProps.classes,
63
+
64
+ const ownerState = _extends({}, rootProps, {
64
65
  headerHeight,
65
66
  colDef
66
- };
67
+ });
68
+
67
69
  const classes = useUtilityClasses(ownerState);
68
70
 
69
71
  if (!aggregation) {
@@ -36,9 +36,7 @@ const GridFooterCell = props => {
36
36
  other = _objectWithoutPropertiesLoose(props, _excluded);
37
37
 
38
38
  const rootProps = useGridRootProps();
39
- const ownerState = {
40
- classes: rootProps.classes
41
- };
39
+ const ownerState = rootProps;
42
40
  const classes = useUtilityClasses(ownerState);
43
41
  return /*#__PURE__*/_jsx(GridFooterCellRoot, _extends({
44
42
  ownerState: ownerState,
@@ -144,7 +144,8 @@ export const createGroupingColDefForOneGroupingCriteria = ({
144
144
  if (params.rowNode.groupingField == null) {
145
145
  if (leafColDef) {
146
146
  const leafParams = _extends({}, params.api.getCellParams(params.id, leafField), {
147
- api: params.api
147
+ api: params.api,
148
+ hasFocus: params.hasFocus
148
149
  });
149
150
 
150
151
  if (leafColDef.renderCell) {
@@ -244,7 +245,8 @@ export const createGroupingColDefForAllGroupingCriteria = ({
244
245
  if (params.rowNode.groupingField == null) {
245
246
  if (leafColDef) {
246
247
  const leafParams = _extends({}, params.api.getCellParams(params.id, leafField), {
247
- api: params.api
248
+ api: params.api,
249
+ hasFocus: params.hasFocus
248
250
  });
249
251
 
250
252
  if (leafColDef.renderCell) {
package/modern/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI X v5.17.23
1
+ /** @license MUI X v5.17.25
2
2
  *
3
3
  * This source code is licensed under the commercial license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTY3NTg5NzIwMDAwMA==";
3
+ const releaseInfo = "MTY3NzEwNjgwMDAwMA==";
4
4
 
5
5
  if (process.env.NODE_ENV !== 'production') {
6
6
  // A simple hack to set the value in the test environment (has no build step).
@@ -7,6 +7,8 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.GridAggregationHeader = void 0;
9
9
 
10
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
+
10
12
  var React = _interopRequireWildcard(require("react"));
11
13
 
12
14
  var _material = require("@mui/material");
@@ -82,11 +84,10 @@ const GridAggregationHeader = props => {
82
84
  const apiRef = (0, _useGridApiContext.useGridApiContext)();
83
85
  const rootProps = (0, _useGridRootProps.useGridRootProps)();
84
86
  const headerHeight = (0, _xDataGrid.useGridSelector)(apiRef, _xDataGrid.gridDensityHeaderHeightSelector);
85
- const ownerState = {
86
- classes: rootProps.classes,
87
+ const ownerState = (0, _extends2.default)({}, rootProps, {
87
88
  headerHeight,
88
89
  colDef
89
- };
90
+ });
90
91
  const classes = useUtilityClasses(ownerState);
91
92
 
92
93
  if (!aggregation) {
@@ -58,9 +58,7 @@ const GridFooterCell = props => {
58
58
  } = props,
59
59
  other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
60
60
  const rootProps = (0, _useGridRootProps.useGridRootProps)();
61
- const ownerState = {
62
- classes: rootProps.classes
63
- };
61
+ const ownerState = rootProps;
64
62
  const classes = useUtilityClasses(ownerState);
65
63
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(GridFooterCellRoot, (0, _extends2.default)({
66
64
  ownerState: ownerState,
@@ -176,7 +176,8 @@ const createGroupingColDefForOneGroupingCriteria = ({
176
176
  if (params.rowNode.groupingField == null) {
177
177
  if (leafColDef) {
178
178
  const leafParams = (0, _extends2.default)({}, params.api.getCellParams(params.id, leafField), {
179
- api: params.api
179
+ api: params.api,
180
+ hasFocus: params.hasFocus
180
181
  });
181
182
 
182
183
  if (leafColDef.renderCell) {
@@ -283,7 +284,8 @@ const createGroupingColDefForAllGroupingCriteria = ({
283
284
  if (params.rowNode.groupingField == null) {
284
285
  if (leafColDef) {
285
286
  const leafParams = (0, _extends2.default)({}, params.api.getCellParams(params.id, leafField), {
286
- api: params.api
287
+ api: params.api,
288
+ hasFocus: params.hasFocus
287
289
  });
288
290
 
289
291
  if (leafColDef.renderCell) {
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI X v5.17.23
1
+ /** @license MUI X v5.17.25
2
2
  *
3
3
  * This source code is licensed under the commercial license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -8,7 +8,7 @@ exports.getReleaseInfo = void 0;
8
8
  var _utils = require("@mui/utils");
9
9
 
10
10
  const getReleaseInfo = () => {
11
- const releaseInfo = "MTY3NTg5NzIwMDAwMA==";
11
+ const releaseInfo = "MTY3NzEwNjgwMDAwMA==";
12
12
 
13
13
  if (process.env.NODE_ENV !== 'production') {
14
14
  // A simple hack to set the value in the test environment (has no build step).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-data-grid-premium",
3
- "version": "5.17.23",
3
+ "version": "5.17.25",
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",
@@ -33,8 +33,8 @@
33
33
  "dependencies": {
34
34
  "@babel/runtime": "^7.18.9",
35
35
  "@mui/utils": "^5.10.3",
36
- "@mui/x-data-grid": "5.17.23",
37
- "@mui/x-data-grid-pro": "5.17.23",
36
+ "@mui/x-data-grid": "5.17.25",
37
+ "@mui/x-data-grid-pro": "5.17.25",
38
38
  "@mui/x-license-pro": "5.17.12",
39
39
  "@types/format-util": "^1.0.2",
40
40
  "clsx": "^1.2.1",
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTY3NTg5NzIwMDAwMA==";
3
+ const releaseInfo = "MTY3NzEwNjgwMDAwMA==";
4
4
 
5
5
  if (process.env.NODE_ENV !== 'production') {
6
6
  // A simple hack to set the value in the test environment (has no build step).