@mui/x-data-grid-premium 6.19.3 → 6.19.5
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 +117 -0
- package/DataGridPremium/DataGridPremium.js +1 -1
- package/hooks/features/cellSelection/useGridCellSelection.js +4 -1
- package/index.js +1 -1
- package/legacy/DataGridPremium/DataGridPremium.js +1 -1
- package/legacy/hooks/features/cellSelection/useGridCellSelection.js +4 -1
- package/legacy/index.js +1 -1
- package/legacy/utils/releaseInfo.js +1 -1
- package/modern/DataGridPremium/DataGridPremium.js +1 -1
- package/modern/hooks/features/cellSelection/useGridCellSelection.js +4 -1
- package/modern/index.js +1 -1
- package/modern/utils/releaseInfo.js +1 -1
- package/node/DataGridPremium/DataGridPremium.js +1 -1
- package/node/hooks/features/cellSelection/useGridCellSelection.js +3 -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,123 @@
|
|
|
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.19.5
|
|
7
|
+
|
|
8
|
+
_Feb 23, 2024_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🐞 Bugfixes
|
|
13
|
+
- 📚 Documentation improvements
|
|
14
|
+
|
|
15
|
+
### Data Grid
|
|
16
|
+
|
|
17
|
+
#### `@mui/x-data-grid@6.19.5`
|
|
18
|
+
|
|
19
|
+
- [DataGrid] Fix styling grid filter input single select (#12079) @FreakDroid
|
|
20
|
+
|
|
21
|
+
#### `@mui/x-data-grid-pro@6.19.5` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
22
|
+
|
|
23
|
+
Same changes as in `@mui/x-data-grid@6.19.5`.
|
|
24
|
+
|
|
25
|
+
#### `@mui/x-data-grid-premium@6.19.5` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
26
|
+
|
|
27
|
+
Same changes as in `@mui/x-data-grid-pro@6.19.5`.
|
|
28
|
+
|
|
29
|
+
### Date Pickers
|
|
30
|
+
|
|
31
|
+
#### `@mui/x-date-pickers@6.19.5`
|
|
32
|
+
|
|
33
|
+
- [pickers] Fix `referenceDate` day calendar focus (#12136) @LukasTy
|
|
34
|
+
- [pickers] Fix styling props propagation to `DateTimePickerTabs` (#12131) @LukasTy
|
|
35
|
+
|
|
36
|
+
#### `@mui/x-date-pickers-pro@6.19.5` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
37
|
+
|
|
38
|
+
Same changes as in `@mui/x-date-pickers@6.19.5`.
|
|
39
|
+
|
|
40
|
+
### Charts / `@mui/x-charts@6.19.5`
|
|
41
|
+
|
|
42
|
+
- [charts] Allow to skip animation on sparkline bar (#12160) @alexfauquette
|
|
43
|
+
|
|
44
|
+
### Docs
|
|
45
|
+
|
|
46
|
+
- [docs] Clarify Pickers 'Component composition' section (#12147) @LukasTy
|
|
47
|
+
- [docs] Fix 301 redirection to StackBlitz @oliviertassinari
|
|
48
|
+
- [docs] Fix 301 to Material UI @oliviertassinari
|
|
49
|
+
- [docs] Fix 301 to Material UI @oliviertassinari
|
|
50
|
+
- [docs] Fix 404 links to translation source @oliviertassinari
|
|
51
|
+
- [docs] Fix dead link to translations @oliviertassinari
|
|
52
|
+
- [docs] Fix the Treemap illustration (#12189) @danilo-leal
|
|
53
|
+
- [docs] Fix typo for `AdapterDateFnsV3` (#12037) @flaviendelangle
|
|
54
|
+
- [docs] Improve performance on Charts entry point @oliviertassinari
|
|
55
|
+
- [docs] Move Heatmap to pro (#12170) @alexfauquette
|
|
56
|
+
- [docs] Remove Charts installation next tag call-out (#12133) @LukasTy
|
|
57
|
+
- [docs] Removed `focused` prop from demo (#12126) @michelengelen
|
|
58
|
+
- [docs] Add missing Heatmap pro icon @oliviertassinari
|
|
59
|
+
- [docs] Add more illustrations to the Overview page (#12041) @danilo-leal
|
|
60
|
+
- [docs] Avoid use of shorthand (#12009) @oliviertassinari
|
|
61
|
+
|
|
62
|
+
### Core
|
|
63
|
+
|
|
64
|
+
- [core] Fix CI @oliviertassinari
|
|
65
|
+
- [core] Fix docs link check (#12137) @LukasTy
|
|
66
|
+
|
|
67
|
+
## 6.19.4
|
|
68
|
+
|
|
69
|
+
_Feb 9, 2024_
|
|
70
|
+
|
|
71
|
+
We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
|
|
72
|
+
|
|
73
|
+
- 🌍 Improve Danish (da-DK) locale on the Data Grid (#11972) @ShahrazH
|
|
74
|
+
- 🐞 Bugfixes
|
|
75
|
+
- 📚 Documentation improvements
|
|
76
|
+
|
|
77
|
+
### Data Grid
|
|
78
|
+
|
|
79
|
+
#### `@mui/x-data-grid@6.19.4`
|
|
80
|
+
|
|
81
|
+
- [DataGrid] Add support for dialogs in menu actions (#11937) @cherniavskii
|
|
82
|
+
- [DataGrid] Allow passing readonly arrays to `pageSizeOptions` prop (#11992) @pcorpet
|
|
83
|
+
- [DataGrid] Fix row reorder with cell selection (#11878) @PEsteves8
|
|
84
|
+
- [DataGrid] Replace `eval` with `new Function` (#11962) @cherniavskii
|
|
85
|
+
- [l10n] Improve Danish (da-DK) locale (#11972) @ShahrazH
|
|
86
|
+
|
|
87
|
+
#### `@mui/x-data-grid-pro@6.19.4` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
88
|
+
|
|
89
|
+
Same changes as in `@mui/x-data-grid@6.19.4`.
|
|
90
|
+
|
|
91
|
+
#### `@mui/x-data-grid-premium@6.19.4` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
92
|
+
|
|
93
|
+
Same changes as in `@mui/x-data-grid-pro@6.19.4`, plus:
|
|
94
|
+
|
|
95
|
+
- [DataGridPremium] Fix autosize grouping cell (#11990) @romgrk
|
|
96
|
+
- [DataGridPremium] Fix error after closing print export (#11889) @cherniavskii
|
|
97
|
+
|
|
98
|
+
### Date Pickers
|
|
99
|
+
|
|
100
|
+
#### `@mui/x-date-pickers@6.19.4`
|
|
101
|
+
|
|
102
|
+
- [pickers] Avoid relying on locale in Luxon `isWithinRange` method (#11940) @LukasTy
|
|
103
|
+
|
|
104
|
+
#### `@mui/x-date-pickers-pro@6.19.4` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
105
|
+
|
|
106
|
+
Same changes as in `@mui/x-date-pickers@6.19.4`.
|
|
107
|
+
|
|
108
|
+
### Charts / `@mui/x-charts@6.19.4`
|
|
109
|
+
|
|
110
|
+
- [charts] Add `reverse` property to axes (#11959) @alexfauquette
|
|
111
|
+
- [charts] Allow series ids to be numbers (#11960) @alexfauquette
|
|
112
|
+
- [charts] Fix Proptypes error by supporting string values for axes (#11953) @alexfauquette
|
|
113
|
+
|
|
114
|
+
### Docs
|
|
115
|
+
|
|
116
|
+
- [docs] Add a note about `AdapterDateFnsV3` on the Getting Started page (#11987) @flaviendelangle
|
|
117
|
+
- [docs] Avoid the use of MUI Core @oliviertassinari
|
|
118
|
+
- [docs] Fix API links (#11930) @alexfauquette
|
|
119
|
+
- [docs] Fix `ChartsTooltip` typo (#11967) @thisisharsh7
|
|
120
|
+
- [docs] Refactor `Localization` documentation sections (#11997) @LukasTy
|
|
121
|
+
- [code] Simplify bug reproduction (#11932) @alexfauquette
|
|
122
|
+
|
|
6
123
|
## 6.19.3
|
|
7
124
|
|
|
8
125
|
_Feb 1, 2024_
|
|
@@ -461,7 +461,7 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
461
461
|
loading: PropTypes.bool,
|
|
462
462
|
/**
|
|
463
463
|
* Set the locale text of the Data Grid.
|
|
464
|
-
* You can find all the translation keys supported in [the source](https://github.com/mui/mui-x/blob/
|
|
464
|
+
* You can find all the translation keys supported in [the source](https://github.com/mui/mui-x/blob/v6.19.4/packages/grid/x-data-grid/src/constants/localeTextConstants.ts) in the GitHub repository.
|
|
465
465
|
*/
|
|
466
466
|
localeText: PropTypes.object,
|
|
467
467
|
/**
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { ownerDocument, useEventCallback } from '@mui/material/utils';
|
|
4
4
|
import { isNavigationKey, serializeCellValue, useGridRegisterPipeProcessor, useGridVisibleRows } from '@mui/x-data-grid-pro/internals';
|
|
5
|
-
import { useGridApiEventHandler, useGridApiMethod, GRID_ACTIONS_COLUMN_TYPE, GRID_CHECKBOX_SELECTION_COL_DEF, GRID_DETAIL_PANEL_TOGGLE_FIELD, gridRowsDataRowIdToIdLookupSelector, gridClasses, gridFocusCellSelector } from '@mui/x-data-grid-pro';
|
|
5
|
+
import { useGridApiEventHandler, useGridApiMethod, GRID_ACTIONS_COLUMN_TYPE, GRID_CHECKBOX_SELECTION_COL_DEF, GRID_DETAIL_PANEL_TOGGLE_FIELD, gridRowsDataRowIdToIdLookupSelector, gridClasses, gridFocusCellSelector, GRID_REORDER_COL_DEF } from '@mui/x-data-grid-pro';
|
|
6
6
|
import { gridCellSelectionStateSelector } from './gridCellSelectionSelector';
|
|
7
7
|
export const cellSelectionStateInitializer = (state, props) => {
|
|
8
8
|
var _props$unstable_cellS, _props$initialState;
|
|
@@ -134,6 +134,9 @@ export const useGridCellSelection = (apiRef, props) => {
|
|
|
134
134
|
if (event.button !== 0 || event.ctrlKey && isMacOs) {
|
|
135
135
|
return;
|
|
136
136
|
}
|
|
137
|
+
if (params.field === GRID_REORDER_COL_DEF.field) {
|
|
138
|
+
return;
|
|
139
|
+
}
|
|
137
140
|
const focusedCell = gridFocusCellSelector(apiRef);
|
|
138
141
|
if (hasClickedValidCellForRangeSelection(params) && event.shiftKey && focusedCell) {
|
|
139
142
|
event.preventDefault();
|
package/index.js
CHANGED
|
@@ -461,7 +461,7 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
461
461
|
loading: PropTypes.bool,
|
|
462
462
|
/**
|
|
463
463
|
* Set the locale text of the Data Grid.
|
|
464
|
-
* You can find all the translation keys supported in [the source](https://github.com/mui/mui-x/blob/
|
|
464
|
+
* You can find all the translation keys supported in [the source](https://github.com/mui/mui-x/blob/v6.19.4/packages/grid/x-data-grid/src/constants/localeTextConstants.ts) in the GitHub repository.
|
|
465
465
|
*/
|
|
466
466
|
localeText: PropTypes.object,
|
|
467
467
|
/**
|
|
@@ -6,7 +6,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import { ownerDocument, useEventCallback } from '@mui/material/utils';
|
|
8
8
|
import { isNavigationKey, serializeCellValue, useGridRegisterPipeProcessor, useGridVisibleRows } from '@mui/x-data-grid-pro/internals';
|
|
9
|
-
import { useGridApiEventHandler, useGridApiMethod, GRID_ACTIONS_COLUMN_TYPE, GRID_CHECKBOX_SELECTION_COL_DEF, GRID_DETAIL_PANEL_TOGGLE_FIELD, gridRowsDataRowIdToIdLookupSelector, gridClasses, gridFocusCellSelector } from '@mui/x-data-grid-pro';
|
|
9
|
+
import { useGridApiEventHandler, useGridApiMethod, GRID_ACTIONS_COLUMN_TYPE, GRID_CHECKBOX_SELECTION_COL_DEF, GRID_DETAIL_PANEL_TOGGLE_FIELD, gridRowsDataRowIdToIdLookupSelector, gridClasses, gridFocusCellSelector, GRID_REORDER_COL_DEF } from '@mui/x-data-grid-pro';
|
|
10
10
|
import { gridCellSelectionStateSelector } from './gridCellSelectionSelector';
|
|
11
11
|
export var cellSelectionStateInitializer = function cellSelectionStateInitializer(state, props) {
|
|
12
12
|
var _props$unstable_cellS, _props$initialState;
|
|
@@ -151,6 +151,9 @@ export var useGridCellSelection = function useGridCellSelection(apiRef, props) {
|
|
|
151
151
|
if (event.button !== 0 || event.ctrlKey && isMacOs) {
|
|
152
152
|
return;
|
|
153
153
|
}
|
|
154
|
+
if (params.field === GRID_REORDER_COL_DEF.field) {
|
|
155
|
+
return;
|
|
156
|
+
}
|
|
154
157
|
var focusedCell = gridFocusCellSelector(apiRef);
|
|
155
158
|
if (hasClickedValidCellForRangeSelection(params) && event.shiftKey && focusedCell) {
|
|
156
159
|
event.preventDefault();
|
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 = "MTcwODYyODQwMDAwMA==";
|
|
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
|
|
@@ -461,7 +461,7 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
461
461
|
loading: PropTypes.bool,
|
|
462
462
|
/**
|
|
463
463
|
* Set the locale text of the Data Grid.
|
|
464
|
-
* You can find all the translation keys supported in [the source](https://github.com/mui/mui-x/blob/
|
|
464
|
+
* You can find all the translation keys supported in [the source](https://github.com/mui/mui-x/blob/v6.19.4/packages/grid/x-data-grid/src/constants/localeTextConstants.ts) in the GitHub repository.
|
|
465
465
|
*/
|
|
466
466
|
localeText: PropTypes.object,
|
|
467
467
|
/**
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { ownerDocument, useEventCallback } from '@mui/material/utils';
|
|
4
4
|
import { isNavigationKey, serializeCellValue, useGridRegisterPipeProcessor, useGridVisibleRows } from '@mui/x-data-grid-pro/internals';
|
|
5
|
-
import { useGridApiEventHandler, useGridApiMethod, GRID_ACTIONS_COLUMN_TYPE, GRID_CHECKBOX_SELECTION_COL_DEF, GRID_DETAIL_PANEL_TOGGLE_FIELD, gridRowsDataRowIdToIdLookupSelector, gridClasses, gridFocusCellSelector } from '@mui/x-data-grid-pro';
|
|
5
|
+
import { useGridApiEventHandler, useGridApiMethod, GRID_ACTIONS_COLUMN_TYPE, GRID_CHECKBOX_SELECTION_COL_DEF, GRID_DETAIL_PANEL_TOGGLE_FIELD, gridRowsDataRowIdToIdLookupSelector, gridClasses, gridFocusCellSelector, GRID_REORDER_COL_DEF } from '@mui/x-data-grid-pro';
|
|
6
6
|
import { gridCellSelectionStateSelector } from './gridCellSelectionSelector';
|
|
7
7
|
export const cellSelectionStateInitializer = (state, props) => _extends({}, state, {
|
|
8
8
|
cellSelection: _extends({}, props.unstable_cellSelectionModel ?? props.initialState?.cellSelection)
|
|
@@ -129,6 +129,9 @@ export const useGridCellSelection = (apiRef, props) => {
|
|
|
129
129
|
if (event.button !== 0 || event.ctrlKey && isMacOs) {
|
|
130
130
|
return;
|
|
131
131
|
}
|
|
132
|
+
if (params.field === GRID_REORDER_COL_DEF.field) {
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
132
135
|
const focusedCell = gridFocusCellSelector(apiRef);
|
|
133
136
|
if (hasClickedValidCellForRangeSelection(params) && event.shiftKey && focusedCell) {
|
|
134
137
|
event.preventDefault();
|
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 = "MTcwODYyODQwMDAwMA==";
|
|
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
|
|
@@ -469,7 +469,7 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
469
469
|
loading: _propTypes.default.bool,
|
|
470
470
|
/**
|
|
471
471
|
* Set the locale text of the Data Grid.
|
|
472
|
-
* You can find all the translation keys supported in [the source](https://github.com/mui/mui-x/blob/
|
|
472
|
+
* You can find all the translation keys supported in [the source](https://github.com/mui/mui-x/blob/v6.19.4/packages/grid/x-data-grid/src/constants/localeTextConstants.ts) in the GitHub repository.
|
|
473
473
|
*/
|
|
474
474
|
localeText: _propTypes.default.object,
|
|
475
475
|
/**
|
|
@@ -139,6 +139,9 @@ const useGridCellSelection = (apiRef, props) => {
|
|
|
139
139
|
if (event.button !== 0 || event.ctrlKey && isMacOs) {
|
|
140
140
|
return;
|
|
141
141
|
}
|
|
142
|
+
if (params.field === _xDataGridPro.GRID_REORDER_COL_DEF.field) {
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
142
145
|
const focusedCell = (0, _xDataGridPro.gridFocusCellSelector)(apiRef);
|
|
143
146
|
if (hasClickedValidCellForRangeSelection(params) && event.shiftKey && focusedCell) {
|
|
144
147
|
event.preventDefault();
|
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 = "MTcwODYyODQwMDAwMA==";
|
|
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.19.
|
|
3
|
+
"version": "6.19.5",
|
|
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.23.2",
|
|
35
35
|
"@mui/utils": "^5.14.16",
|
|
36
|
-
"@mui/x-data-grid": "6.19.
|
|
37
|
-
"@mui/x-data-grid-pro": "6.19.
|
|
36
|
+
"@mui/x-data-grid": "6.19.5",
|
|
37
|
+
"@mui/x-data-grid-pro": "6.19.5",
|
|
38
38
|
"@mui/x-license-pro": "6.10.2",
|
|
39
39
|
"@types/format-util": "^1.0.3",
|
|
40
40
|
"clsx": "^2.0.0",
|
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 = "MTcwODYyODQwMDAwMA==";
|
|
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
|