@mui/x-data-grid 5.17.5 → 5.17.6
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 +30 -0
- package/hooks/features/editRows/useGridCellEditing.new.js +4 -0
- package/hooks/features/editRows/useGridRowEditing.new.js +4 -0
- package/index.js +1 -1
- package/legacy/hooks/features/editRows/useGridCellEditing.new.js +4 -0
- package/legacy/hooks/features/editRows/useGridRowEditing.new.js +4 -0
- package/legacy/index.js +1 -1
- package/modern/hooks/features/editRows/useGridCellEditing.new.js +4 -0
- package/modern/hooks/features/editRows/useGridRowEditing.new.js +4 -0
- package/modern/index.js +1 -1
- package/node/hooks/features/editRows/useGridCellEditing.new.js +4 -0
- package/node/hooks/features/editRows/useGridRowEditing.new.js +4 -0
- package/node/index.js +1 -1
- package/package.json +1 -1
- package/themeAugmentation/props.d.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,36 @@
|
|
|
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.6
|
|
7
|
+
|
|
8
|
+
_Oct 6, 2022_
|
|
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 Japanese (ja-JP) locale to pickers (#6365) @sho918
|
|
13
|
+
- 🎁 Improve support for theme augmentation in the DataGrid (#6406) @cherniavskii
|
|
14
|
+
- 🐞 Bugfixes
|
|
15
|
+
|
|
16
|
+
### `@mui/x-data-grid@v5.17.6` / `@mui/x-data-grid-pro@v5.17.6` / `@mui/x-data-grid-premium@v5.17.6`
|
|
17
|
+
|
|
18
|
+
#### Changes
|
|
19
|
+
|
|
20
|
+
- [DataGrid] Add missing `valueOptions` (#6400) @DanailH
|
|
21
|
+
- [DataGrid] Don't start edit mode when pressing <kbd>Shift</kbd> + <kbd>Space</kbd> (#6380) @m4theushw
|
|
22
|
+
- [DataGrid] Pass generics to the components in the theme augmentation (#6406) @cherniavskii
|
|
23
|
+
|
|
24
|
+
### `@mui/x-date-pickers@v5.0.4` / `@mui/x-date-pickers-pro@v5.0.4`
|
|
25
|
+
|
|
26
|
+
#### Changes
|
|
27
|
+
|
|
28
|
+
- [l10n] Add Japanese (ja-JP) locale to pickers (#6365) (#6382) @sho918
|
|
29
|
+
- [pickers] Prevent `CalendarPicker` getting focus when `autoFocus=false` (#6304) (#6362) @alexfauquette
|
|
30
|
+
- [pickers] Fix git repository location @oliviertassinari
|
|
31
|
+
|
|
32
|
+
### Docs
|
|
33
|
+
|
|
34
|
+
- [docs] Fix customized day rendering demo style (#6342) @Ambrish-git
|
|
35
|
+
|
|
6
36
|
## 5.17.5
|
|
7
37
|
|
|
8
38
|
_Sep 29, 2022_
|
|
@@ -104,6 +104,10 @@ export const useGridCellEditing = (apiRef, props) => {
|
|
|
104
104
|
} else if (params.isEditable) {
|
|
105
105
|
let reason;
|
|
106
106
|
|
|
107
|
+
if (event.key === ' ' && event.shiftKey) {
|
|
108
|
+
return; // Shift + Space is used to select the row
|
|
109
|
+
}
|
|
110
|
+
|
|
107
111
|
if (isPrintableKey(event)) {
|
|
108
112
|
reason = GridCellEditStartReasons.printableKeyDown;
|
|
109
113
|
} else if ((event.ctrlKey || event.metaKey) && event.key === 'v') {
|
|
@@ -161,6 +161,10 @@ export const useGridRowEditing = (apiRef, props) => {
|
|
|
161
161
|
} else if (params.isEditable) {
|
|
162
162
|
let reason;
|
|
163
163
|
|
|
164
|
+
if (event.key === ' ' && event.shiftKey) {
|
|
165
|
+
return; // Shift + Space is used to select the row
|
|
166
|
+
}
|
|
167
|
+
|
|
164
168
|
if (isPrintableKey(event)) {
|
|
165
169
|
reason = GridRowEditStartReasons.printableKeyDown;
|
|
166
170
|
} else if ((event.ctrlKey || event.metaKey) && event.key === 'v') {
|
package/index.js
CHANGED
|
@@ -112,6 +112,10 @@ export var useGridCellEditing = function useGridCellEditing(apiRef, props) {
|
|
|
112
112
|
} else if (params.isEditable) {
|
|
113
113
|
var _reason;
|
|
114
114
|
|
|
115
|
+
if (event.key === ' ' && event.shiftKey) {
|
|
116
|
+
return; // Shift + Space is used to select the row
|
|
117
|
+
}
|
|
118
|
+
|
|
115
119
|
if (isPrintableKey(event)) {
|
|
116
120
|
_reason = GridCellEditStartReasons.printableKeyDown;
|
|
117
121
|
} else if ((event.ctrlKey || event.metaKey) && event.key === 'v') {
|
|
@@ -169,6 +169,10 @@ export var useGridRowEditing = function useGridRowEditing(apiRef, props) {
|
|
|
169
169
|
} else if (params.isEditable) {
|
|
170
170
|
var _reason;
|
|
171
171
|
|
|
172
|
+
if (event.key === ' ' && event.shiftKey) {
|
|
173
|
+
return; // Shift + Space is used to select the row
|
|
174
|
+
}
|
|
175
|
+
|
|
172
176
|
if (isPrintableKey(event)) {
|
|
173
177
|
_reason = GridRowEditStartReasons.printableKeyDown;
|
|
174
178
|
} else if ((event.ctrlKey || event.metaKey) && event.key === 'v') {
|
package/legacy/index.js
CHANGED
|
@@ -104,6 +104,10 @@ export const useGridCellEditing = (apiRef, props) => {
|
|
|
104
104
|
} else if (params.isEditable) {
|
|
105
105
|
let reason;
|
|
106
106
|
|
|
107
|
+
if (event.key === ' ' && event.shiftKey) {
|
|
108
|
+
return; // Shift + Space is used to select the row
|
|
109
|
+
}
|
|
110
|
+
|
|
107
111
|
if (isPrintableKey(event)) {
|
|
108
112
|
reason = GridCellEditStartReasons.printableKeyDown;
|
|
109
113
|
} else if ((event.ctrlKey || event.metaKey) && event.key === 'v') {
|
|
@@ -159,6 +159,10 @@ export const useGridRowEditing = (apiRef, props) => {
|
|
|
159
159
|
} else if (params.isEditable) {
|
|
160
160
|
let reason;
|
|
161
161
|
|
|
162
|
+
if (event.key === ' ' && event.shiftKey) {
|
|
163
|
+
return; // Shift + Space is used to select the row
|
|
164
|
+
}
|
|
165
|
+
|
|
162
166
|
if (isPrintableKey(event)) {
|
|
163
167
|
reason = GridRowEditStartReasons.printableKeyDown;
|
|
164
168
|
} else if ((event.ctrlKey || event.metaKey) && event.key === 'v') {
|
package/modern/index.js
CHANGED
|
@@ -130,6 +130,10 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
130
130
|
} else if (params.isEditable) {
|
|
131
131
|
let reason;
|
|
132
132
|
|
|
133
|
+
if (event.key === ' ' && event.shiftKey) {
|
|
134
|
+
return; // Shift + Space is used to select the row
|
|
135
|
+
}
|
|
136
|
+
|
|
133
137
|
if ((0, _keyboardUtils.isPrintableKey)(event)) {
|
|
134
138
|
reason = _gridEditCellParams.GridCellEditStartReasons.printableKeyDown;
|
|
135
139
|
} else if ((event.ctrlKey || event.metaKey) && event.key === 'v') {
|
|
@@ -185,6 +185,10 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
185
185
|
} else if (params.isEditable) {
|
|
186
186
|
let reason;
|
|
187
187
|
|
|
188
|
+
if (event.key === ' ' && event.shiftKey) {
|
|
189
|
+
return; // Shift + Space is used to select the row
|
|
190
|
+
}
|
|
191
|
+
|
|
188
192
|
if ((0, _keyboardUtils.isPrintableKey)(event)) {
|
|
189
193
|
reason = _gridRowParams.GridRowEditStartReasons.printableKeyDown;
|
|
190
194
|
} else if ((event.ctrlKey || event.metaKey) && event.key === 'v') {
|
package/node/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentsOverrides, ComponentsProps } from '@mui/material/styles';
|
|
1
|
+
import { ComponentsOverrides, ComponentsProps, Theme } from '@mui/material/styles';
|
|
2
2
|
import { DataGridProps } from '../models/props/DataGridProps';
|
|
3
3
|
export interface DataGridComponentsPropsList {
|
|
4
4
|
MuiDataGrid: DataGridProps;
|
|
@@ -6,7 +6,7 @@ export interface DataGridComponentsPropsList {
|
|
|
6
6
|
export interface DataGridComponents {
|
|
7
7
|
MuiDataGrid?: {
|
|
8
8
|
defaultProps?: ComponentsProps['MuiDataGrid'];
|
|
9
|
-
styleOverrides?: ComponentsOverrides['MuiDataGrid'];
|
|
9
|
+
styleOverrides?: ComponentsOverrides<Theme>['MuiDataGrid'];
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
12
|
declare module '@mui/material/styles' {
|