@mui/x-data-grid-pro 6.10.1 → 6.10.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 +64 -0
- package/hooks/features/rowPinning/useGridRowPinningPreProcessors.d.ts +1 -1
- package/hooks/features/rowReorder/useGridRowReorder.js +2 -0
- package/index.js +1 -1
- package/legacy/hooks/features/rowReorder/useGridRowReorder.js +2 -0
- package/legacy/index.js +1 -1
- package/legacy/utils/releaseInfo.js +1 -1
- package/modern/hooks/features/rowReorder/useGridRowReorder.js +2 -0
- package/modern/index.js +1 -1
- package/modern/utils/releaseInfo.js +1 -1
- package/node/hooks/features/rowReorder/useGridRowReorder.js +2 -0
- package/node/index.js +1 -1
- package/node/utils/releaseInfo.js +1 -1
- package/package.json +3 -3
- package/utils/releaseInfo.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,70 @@
|
|
|
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.10.2
|
|
7
|
+
|
|
8
|
+
_Jul 27, 2023_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 13 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🚀 Improve scatter charts performance
|
|
13
|
+
- 📚 Redesigned component API documentation and side navigation
|
|
14
|
+
- 🐞 Bugfixes
|
|
15
|
+
|
|
16
|
+
### Data Grid
|
|
17
|
+
|
|
18
|
+
#### `@mui/x-data-grid@v6.10.2`
|
|
19
|
+
|
|
20
|
+
- [DataGrid] Fix quick filter & aggregation error (#9729) @romgrk
|
|
21
|
+
- [DataGrid] Fix row click propagation causing error in nested grid (#9741) @cherniavskii
|
|
22
|
+
- [DataGrid] Keep focused cell in the DOM (#7357) @yaredtsy
|
|
23
|
+
- [l10n] Improve Finnish (fi-FI) locale (#9746) @sambbaahh
|
|
24
|
+
|
|
25
|
+
#### `@mui/x-data-grid-pro@v6.10.2` [](https://mui.com/r/x-pro-svg-link)
|
|
26
|
+
|
|
27
|
+
Same changes as in `@mui/x-data-grid@v6.10.2`.
|
|
28
|
+
|
|
29
|
+
#### `@mui/x-data-grid-premium@v6.10.2` [](https://mui.com/r/x-premium-svg-link)
|
|
30
|
+
|
|
31
|
+
Same changes as in `@mui/x-data-grid-pro@v6.10.2`, plus:
|
|
32
|
+
|
|
33
|
+
- [DataGridPremium] Allow to customize grouping cell offset (#9417) @cherniavskii
|
|
34
|
+
|
|
35
|
+
### Date Pickers
|
|
36
|
+
|
|
37
|
+
#### `@mui/x-date-pickers@v6.10.2`
|
|
38
|
+
|
|
39
|
+
- [pickers] Remove the `endOfDate` from `DigitalClock` timeOptions (#9800) @noraleonte
|
|
40
|
+
|
|
41
|
+
#### `@mui/x-date-pickers-pro@v6.10.2` [](https://mui.com/r/x-pro-svg-link)
|
|
42
|
+
|
|
43
|
+
Same changes as in `@mui/x-date-pickers@v6.10.2`.
|
|
44
|
+
|
|
45
|
+
### Charts / `@mui/x-charts@v6.0.0-alpha.5`
|
|
46
|
+
|
|
47
|
+
- [charts] Improve JSDoc for axis-related props (#9779) @flaviendelangle
|
|
48
|
+
- [charts] Improve performances of Scatter component (#9527) @flaviendelangle
|
|
49
|
+
|
|
50
|
+
### Docs
|
|
51
|
+
|
|
52
|
+
- [docs] Add `pnpm` in more places @oliviertassinari
|
|
53
|
+
- [docs] Add `pnpm` installation instructions for MUI X (#9707) @richbustos
|
|
54
|
+
- [docs] Align pickers "uncontrolled vs controlled" sections (#9772) @LukasTy
|
|
55
|
+
- [docs] Apply style guide to the data grid Layout page (#9673) @richbustos
|
|
56
|
+
- [docs] Differentiate between packages in `slotProps` docs (#9668) @cherniavskii
|
|
57
|
+
- [docs] Fix charts width in axis pages (#9801) @alexfauquette
|
|
58
|
+
- [docs] Fix wrong prop name in the Editing page (#9753) @m4theushw
|
|
59
|
+
- [docs] New component API page and side nav design (#9187) @alexfauquette
|
|
60
|
+
- [docs] Update overview page with up to date information about the plans (#9512) @joserodolfofreitas
|
|
61
|
+
|
|
62
|
+
### Core
|
|
63
|
+
|
|
64
|
+
- [core] Use PR charts version in preview (#9787) @alexfauquette
|
|
65
|
+
- [license] Allow overriding the license on specific parts of the page (#9717) @Janpot
|
|
66
|
+
- [license] Throw in dev mode after 30 days (#9701) @oliviertassinari
|
|
67
|
+
- [license] Only throw in dev mode (#9803) @oliviertassinari
|
|
68
|
+
- [test] Fail the CI when new unexpected files are created (#9728) @oliviertassinari
|
|
69
|
+
|
|
6
70
|
## 6.10.1
|
|
7
71
|
|
|
8
72
|
_Jul 20, 2023_
|
|
@@ -6,7 +6,7 @@ import { GridPinnedRowsProp } from './gridRowPinningInterface';
|
|
|
6
6
|
type GridPinnedRowPosition = keyof GridPinnedRowsProp;
|
|
7
7
|
export declare function addPinnedRow({ groupingParams, rowModel, rowId, position, apiRef, isAutoGenerated, }: {
|
|
8
8
|
groupingParams: GridHydrateRowsValue;
|
|
9
|
-
rowModel: GridRowModel
|
|
9
|
+
rowModel: GridRowModel;
|
|
10
10
|
rowId: GridRowId;
|
|
11
11
|
position: GridPinnedRowPosition;
|
|
12
12
|
apiRef: React.MutableRefObject<GridPrivateApiPro>;
|
|
@@ -2,6 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { unstable_composeClasses as composeClasses } from '@mui/utils';
|
|
3
3
|
import { useGridLogger, useGridApiEventHandler, getDataGridUtilityClass, useGridSelector, gridSortModelSelector, gridRowMaximumTreeDepthSelector, useGridApiOptionHandler } from '@mui/x-data-grid';
|
|
4
4
|
import { gridEditRowsStateSelector } from '@mui/x-data-grid/internals';
|
|
5
|
+
import { GRID_REORDER_COL_DEF } from './gridRowReorderColDef';
|
|
5
6
|
var Direction = /*#__PURE__*/function (Direction) {
|
|
6
7
|
Direction[Direction["UP"] = 0] = "UP";
|
|
7
8
|
Direction[Direction["DOWN"] = 1] = "DOWN";
|
|
@@ -66,6 +67,7 @@ export const useGridRowReorder = (apiRef, props) => {
|
|
|
66
67
|
dragRowNode.current.classList.remove(classes.rowDragging);
|
|
67
68
|
});
|
|
68
69
|
originRowIndex.current = apiRef.current.getRowIndexRelativeToVisibleRows(params.id);
|
|
70
|
+
apiRef.current.setCellFocus(params.id, GRID_REORDER_COL_DEF.field);
|
|
69
71
|
}, [isRowReorderDisabled, classes.rowDragging, logger, apiRef]);
|
|
70
72
|
const handleDragOver = React.useCallback((params, event) => {
|
|
71
73
|
if (dragRowId === '') {
|
package/index.js
CHANGED
|
@@ -3,6 +3,7 @@ import * as React from 'react';
|
|
|
3
3
|
import { unstable_composeClasses as composeClasses } from '@mui/utils';
|
|
4
4
|
import { useGridLogger, useGridApiEventHandler, getDataGridUtilityClass, useGridSelector, gridSortModelSelector, gridRowMaximumTreeDepthSelector, useGridApiOptionHandler } from '@mui/x-data-grid';
|
|
5
5
|
import { gridEditRowsStateSelector } from '@mui/x-data-grid/internals';
|
|
6
|
+
import { GRID_REORDER_COL_DEF } from './gridRowReorderColDef';
|
|
6
7
|
var Direction = /*#__PURE__*/function (Direction) {
|
|
7
8
|
Direction[Direction["UP"] = 0] = "UP";
|
|
8
9
|
Direction[Direction["DOWN"] = 1] = "DOWN";
|
|
@@ -68,6 +69,7 @@ export var useGridRowReorder = function useGridRowReorder(apiRef, props) {
|
|
|
68
69
|
dragRowNode.current.classList.remove(classes.rowDragging);
|
|
69
70
|
});
|
|
70
71
|
originRowIndex.current = apiRef.current.getRowIndexRelativeToVisibleRows(params.id);
|
|
72
|
+
apiRef.current.setCellFocus(params.id, GRID_REORDER_COL_DEF.field);
|
|
71
73
|
}, [isRowReorderDisabled, classes.rowDragging, logger, apiRef]);
|
|
72
74
|
var handleDragOver = React.useCallback(function (params, event) {
|
|
73
75
|
if (dragRowId === '') {
|
package/legacy/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export var getReleaseInfo = function getReleaseInfo() {
|
|
3
|
-
var releaseInfo = "
|
|
3
|
+
var releaseInfo = "MTY5MDQwODgwMDAwMA==";
|
|
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
|
|
@@ -2,6 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { unstable_composeClasses as composeClasses } from '@mui/utils';
|
|
3
3
|
import { useGridLogger, useGridApiEventHandler, getDataGridUtilityClass, useGridSelector, gridSortModelSelector, gridRowMaximumTreeDepthSelector, useGridApiOptionHandler } from '@mui/x-data-grid';
|
|
4
4
|
import { gridEditRowsStateSelector } from '@mui/x-data-grid/internals';
|
|
5
|
+
import { GRID_REORDER_COL_DEF } from './gridRowReorderColDef';
|
|
5
6
|
var Direction = /*#__PURE__*/function (Direction) {
|
|
6
7
|
Direction[Direction["UP"] = 0] = "UP";
|
|
7
8
|
Direction[Direction["DOWN"] = 1] = "DOWN";
|
|
@@ -66,6 +67,7 @@ export const useGridRowReorder = (apiRef, props) => {
|
|
|
66
67
|
dragRowNode.current.classList.remove(classes.rowDragging);
|
|
67
68
|
});
|
|
68
69
|
originRowIndex.current = apiRef.current.getRowIndexRelativeToVisibleRows(params.id);
|
|
70
|
+
apiRef.current.setCellFocus(params.id, GRID_REORDER_COL_DEF.field);
|
|
69
71
|
}, [isRowReorderDisabled, classes.rowDragging, logger, apiRef]);
|
|
70
72
|
const handleDragOver = React.useCallback((params, event) => {
|
|
71
73
|
if (dragRowId === '') {
|
package/modern/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export const getReleaseInfo = () => {
|
|
3
|
-
const releaseInfo = "
|
|
3
|
+
const releaseInfo = "MTY5MDQwODgwMDAwMA==";
|
|
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
|
|
@@ -8,6 +8,7 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
8
8
|
var _utils = require("@mui/utils");
|
|
9
9
|
var _xDataGrid = require("@mui/x-data-grid");
|
|
10
10
|
var _internals = require("@mui/x-data-grid/internals");
|
|
11
|
+
var _gridRowReorderColDef = require("./gridRowReorderColDef");
|
|
11
12
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
12
13
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
13
14
|
var Direction = /*#__PURE__*/function (Direction) {
|
|
@@ -74,6 +75,7 @@ const useGridRowReorder = (apiRef, props) => {
|
|
|
74
75
|
dragRowNode.current.classList.remove(classes.rowDragging);
|
|
75
76
|
});
|
|
76
77
|
originRowIndex.current = apiRef.current.getRowIndexRelativeToVisibleRows(params.id);
|
|
78
|
+
apiRef.current.setCellFocus(params.id, _gridRowReorderColDef.GRID_REORDER_COL_DEF.field);
|
|
77
79
|
}, [isRowReorderDisabled, classes.rowDragging, logger, apiRef]);
|
|
78
80
|
const handleDragOver = React.useCallback((params, event) => {
|
|
79
81
|
if (dragRowId === '') {
|
package/node/index.js
CHANGED
|
@@ -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 = "
|
|
9
|
+
const releaseInfo = "MTY5MDQwODgwMDAwMA==";
|
|
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-pro",
|
|
3
|
-
"version": "6.10.
|
|
3
|
+
"version": "6.10.2",
|
|
4
4
|
"description": "The Pro 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.22.6",
|
|
35
35
|
"@mui/utils": "^5.13.7",
|
|
36
|
-
"@mui/x-data-grid": "6.10.
|
|
37
|
-
"@mui/x-license-pro": "6.10.
|
|
36
|
+
"@mui/x-data-grid": "6.10.2",
|
|
37
|
+
"@mui/x-license-pro": "6.10.2",
|
|
38
38
|
"@types/format-util": "^1.0.2",
|
|
39
39
|
"clsx": "^1.2.1",
|
|
40
40
|
"prop-types": "^15.8.1",
|
package/utils/releaseInfo.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export const getReleaseInfo = () => {
|
|
3
|
-
const releaseInfo = "
|
|
3
|
+
const releaseInfo = "MTY5MDQwODgwMDAwMA==";
|
|
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
|