@mui/x-data-grid-premium 7.13.0 → 7.14.0
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 +82 -2
- package/components/GridGroupingColumnLeafCell.js +7 -2
- package/components/GridGroupingCriteriaCell.js +7 -2
- package/esm/components/GridGroupingColumnLeafCell.js +7 -2
- package/esm/components/GridGroupingCriteriaCell.js +7 -2
- package/esm/hooks/features/cellSelection/useGridCellSelection.js +1 -1
- package/esm/hooks/features/clipboard/useGridClipboardImport.js +7 -4
- package/esm/utils/releaseInfo.js +1 -1
- package/hooks/features/cellSelection/useGridCellSelection.js +1 -1
- package/hooks/features/clipboard/useGridClipboardImport.js +7 -4
- package/index.js +1 -1
- package/modern/components/GridGroupingColumnLeafCell.js +7 -2
- package/modern/components/GridGroupingCriteriaCell.js +7 -2
- package/modern/hooks/features/cellSelection/useGridCellSelection.js +1 -1
- package/modern/hooks/features/clipboard/useGridClipboardImport.js +7 -4
- package/modern/index.js +1 -1
- package/modern/utils/releaseInfo.js +1 -1
- package/package.json +7 -7
- package/utils/releaseInfo.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,86 @@
|
|
|
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.14.0
|
|
7
|
+
|
|
8
|
+
_Aug 23, 2024_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 14 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 💫 Allow [filtering the axis on zoom](https://mui.com/x/react-charts/zoom-and-pan/#zoom-filtering), making the axis adapt by removing values outside the view.
|
|
13
|
+
|
|
14
|
+
<img width="600" src="https://github.com/user-attachments/assets/e65bbd00-d2a8-4136-81cd-3598f1373c16" alt="filtering the axis on zoom" />
|
|
15
|
+
|
|
16
|
+
- 📊 Improve bar chart performances
|
|
17
|
+
- 🌍 Improve Czech (cs-CZ) and Hebrew (he-IL) locales on the Data Grid
|
|
18
|
+
- 🌍 Improve Chinese (zh-HK), Hebrew (he-IL), and Vietnamese (vi-VN) locales on the Date and Time Pickers
|
|
19
|
+
- 🐞 Bugfixes
|
|
20
|
+
|
|
21
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
22
|
+
|
|
23
|
+
### Data Grid
|
|
24
|
+
|
|
25
|
+
#### `@mui/x-data-grid@7.14.0`
|
|
26
|
+
|
|
27
|
+
- [DataGrid] Use readonly array result for `getTreeDataPath` (#11743) @pcorpet
|
|
28
|
+
- [DataGrid] Use `event.key` for `Tab` and `Escape` keys (#14170) @k-rajat19
|
|
29
|
+
- [DataGrid] Introduce selectors with arguments (#14236) @MBilalShafi
|
|
30
|
+
- [DataGrid] include `api` in `gridCellParams` interface (#14201) @k-rajat19
|
|
31
|
+
- [l10n] Improve Czech (cs-CZ) locale (#14135) @chirimiri22
|
|
32
|
+
- [l10n] Improve Hebrew (he-IL) locale (#14287) @rotembarsela
|
|
33
|
+
|
|
34
|
+
#### `@mui/x-data-grid-pro@7.14.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
35
|
+
|
|
36
|
+
Same changes as in `@mui/x-data-grid@7.14.0`.
|
|
37
|
+
|
|
38
|
+
#### `@mui/x-data-grid-premium@7.14.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
39
|
+
|
|
40
|
+
Same changes as in `@mui/x-data-grid-pro@7.14.0`, plus:
|
|
41
|
+
|
|
42
|
+
- [DataGridPremium] Fix clipboard paste not working for a single cell on non-first page (#14261) @arminmeh
|
|
43
|
+
- [DataGridPremium] Fix `onCellSelectionModelChange` not triggered when additional cell range is selected (#14199) @arminmeh
|
|
44
|
+
|
|
45
|
+
### Date and Time Pickers
|
|
46
|
+
|
|
47
|
+
#### `@mui/x-date-pickers@7.14.0`
|
|
48
|
+
|
|
49
|
+
- [l10n] Improve Chinese (zh-HK) locale (#13289) @yeeharn
|
|
50
|
+
- [l10n] Improve Hebrew (he-IL) locale (#14287) @rotembarsela
|
|
51
|
+
- [l10n] Improve Vietnamese (vi-VN) locale (#14238) @locnbk2002
|
|
52
|
+
- [TimePicker] Handle `Space` and `Enter` on the `TimeClock` component @arthurbalduini
|
|
53
|
+
|
|
54
|
+
#### `@mui/x-date-pickers-pro@7.14.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
55
|
+
|
|
56
|
+
Same changes as in `@mui/x-date-pickers@7.14.0`.
|
|
57
|
+
|
|
58
|
+
### Charts
|
|
59
|
+
|
|
60
|
+
#### `@mui/x-charts@7.14.0`
|
|
61
|
+
|
|
62
|
+
- [charts] Fix grid overflow with zooming (#14280) @alexfauquette
|
|
63
|
+
- [charts] Improve bar chart performances (#14278) @alexfauquette
|
|
64
|
+
- [charts] Test pointer events (#14042) @alexfauquette
|
|
65
|
+
- [charts] Use `isPointInside` function for both graphs and axis (#14222) @JCQuintas
|
|
66
|
+
|
|
67
|
+
#### `@mui/x-charts-pro@7.0.0-alpha.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
68
|
+
|
|
69
|
+
Same changes as in `@mui/x-charts@7.14.0`, plus:
|
|
70
|
+
|
|
71
|
+
- [charts-pro] Zoom axis filtering (#14121) @JCQuintas
|
|
72
|
+
|
|
73
|
+
### Docs
|
|
74
|
+
|
|
75
|
+
- [docs] Consistent use of UTC and timezones (#14250) @oliviertassinari
|
|
76
|
+
- [docs] Fix missing leading slashes in URLs (#14249) @oliviertassinari
|
|
77
|
+
- [docs] Dash usage revision on pickers pages (#14260) @arthurbalduini
|
|
78
|
+
|
|
79
|
+
### Core
|
|
80
|
+
|
|
81
|
+
- [core] Follow JSDocs convention @oliviertassinari
|
|
82
|
+
- [core] Prepare for material v6 (#14143) @LukasTy
|
|
83
|
+
- [code-infra] Set up `eslint-plugin-testing-library` (#14232) @LukasTy
|
|
84
|
+
- [infra] Updated mui-x roadmap links with new project URL (#14271) @michelengelen
|
|
85
|
+
|
|
6
86
|
## 7.13.0
|
|
7
87
|
|
|
8
88
|
_Aug 16, 2024_
|
|
@@ -58,7 +138,7 @@ Same changes as in `@mui/x-date-pickers@7.13.0`.
|
|
|
58
138
|
- [charts] Rename `CartesianContextProvider` to `CartesianProvider` (#14102) @JCQuintas
|
|
59
139
|
- [charts] Support axis with the same value for all data points (#14191) @alexfauquette
|
|
60
140
|
|
|
61
|
-
#### `@mui/x-
|
|
141
|
+
#### `@mui/x-charts-pro@7.0.0-alpha.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
62
142
|
|
|
63
143
|
Same changes as in `@mui/x-charts@7.13.0`.
|
|
64
144
|
|
|
@@ -132,7 +212,7 @@ Same changes as in `@mui/x-date-pickers@7.12.1`.
|
|
|
132
212
|
- [charts] Fix charts vendor publish config (#14073) @JCQuintas
|
|
133
213
|
- [charts] Move `plugins` to `PluginProvider` (#14056) @JCQuintas
|
|
134
214
|
|
|
135
|
-
#### `@mui/x-
|
|
215
|
+
#### `@mui/x-charts-pro@7.0.0-alpha.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
136
216
|
|
|
137
217
|
Same changes as in `@mui/x-charts@7.12.1`, plus:
|
|
138
218
|
|
|
@@ -17,8 +17,13 @@ function GridGroupingColumnLeafCell(props) {
|
|
|
17
17
|
} = props;
|
|
18
18
|
const rootProps = (0, _useGridRootProps.useGridRootProps)();
|
|
19
19
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Box.default, {
|
|
20
|
-
sx: {
|
|
21
|
-
ml:
|
|
20
|
+
sx: [rootProps.rowGroupingColumnMode === 'multiple' ? {
|
|
21
|
+
ml: 1
|
|
22
|
+
} : theme => ({
|
|
23
|
+
ml: `calc(var(--DataGrid-cellOffsetMultiplier) * var(--depth) * ${theme.spacing(1)})`
|
|
24
|
+
})],
|
|
25
|
+
style: {
|
|
26
|
+
'--depth': rowNode.depth
|
|
22
27
|
},
|
|
23
28
|
children: props.formattedValue ?? props.value
|
|
24
29
|
});
|
|
@@ -70,8 +70,13 @@ function GridGroupingCriteriaCell(props) {
|
|
|
70
70
|
}
|
|
71
71
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Box.default, {
|
|
72
72
|
className: classes.root,
|
|
73
|
-
sx: {
|
|
74
|
-
ml:
|
|
73
|
+
sx: [rootProps.rowGroupingColumnMode === 'multiple' ? {
|
|
74
|
+
ml: 0
|
|
75
|
+
} : theme => ({
|
|
76
|
+
ml: `calc(var(--DataGrid-cellOffsetMultiplier) * var(--depth) * ${theme.spacing(1)})`
|
|
77
|
+
})],
|
|
78
|
+
style: {
|
|
79
|
+
'--depth': rowNode.depth
|
|
75
80
|
},
|
|
76
81
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
77
82
|
className: classes.toggle,
|
|
@@ -8,8 +8,13 @@ function GridGroupingColumnLeafCell(props) {
|
|
|
8
8
|
} = props;
|
|
9
9
|
const rootProps = useGridRootProps();
|
|
10
10
|
return /*#__PURE__*/_jsx(Box, {
|
|
11
|
-
sx: {
|
|
12
|
-
ml:
|
|
11
|
+
sx: [rootProps.rowGroupingColumnMode === 'multiple' ? {
|
|
12
|
+
ml: 1
|
|
13
|
+
} : theme => ({
|
|
14
|
+
ml: `calc(var(--DataGrid-cellOffsetMultiplier) * var(--depth) * ${theme.spacing(1)})`
|
|
15
|
+
})],
|
|
16
|
+
style: {
|
|
17
|
+
'--depth': rowNode.depth
|
|
13
18
|
},
|
|
14
19
|
children: props.formattedValue ?? props.value
|
|
15
20
|
});
|
|
@@ -61,8 +61,13 @@ export function GridGroupingCriteriaCell(props) {
|
|
|
61
61
|
}
|
|
62
62
|
return /*#__PURE__*/_jsxs(Box, {
|
|
63
63
|
className: classes.root,
|
|
64
|
-
sx: {
|
|
65
|
-
ml:
|
|
64
|
+
sx: [rootProps.rowGroupingColumnMode === 'multiple' ? {
|
|
65
|
+
ml: 0
|
|
66
|
+
} : theme => ({
|
|
67
|
+
ml: `calc(var(--DataGrid-cellOffsetMultiplier) * var(--depth) * ${theme.spacing(1)})`
|
|
68
|
+
})],
|
|
69
|
+
style: {
|
|
70
|
+
'--depth': rowNode.depth
|
|
66
71
|
},
|
|
67
72
|
children: [/*#__PURE__*/_jsx("div", {
|
|
68
73
|
className: classes.toggle,
|
|
@@ -76,7 +76,7 @@ export const useGridCellSelection = (apiRef, props) => {
|
|
|
76
76
|
const visibleColumns = apiRef.current.getVisibleColumns();
|
|
77
77
|
const rowsInRange = visibleRows.rows.slice(finalStartRowIndex, finalEndRowIndex + 1);
|
|
78
78
|
const columnsInRange = visibleColumns.slice(finalStartColumnIndex, finalEndColumnIndex + 1);
|
|
79
|
-
const newModel = keepOtherSelected ? apiRef.current.getCellSelectionModel() : {};
|
|
79
|
+
const newModel = keepOtherSelected ? _extends({}, apiRef.current.getCellSelectionModel()) : {};
|
|
80
80
|
rowsInRange.forEach(row => {
|
|
81
81
|
if (!newModel[row.id]) {
|
|
82
82
|
newModel[row.id] = {};
|
|
@@ -151,7 +151,8 @@ function defaultPasteResolver({
|
|
|
151
151
|
pastedData,
|
|
152
152
|
apiRef,
|
|
153
153
|
updateCell,
|
|
154
|
-
pagination
|
|
154
|
+
pagination,
|
|
155
|
+
paginationMode
|
|
155
156
|
}) {
|
|
156
157
|
const isSingleValuePasted = pastedData.length === 1 && pastedData[0].length === 1;
|
|
157
158
|
const cellSelectionModel = apiRef.current.getCellSelectionModel();
|
|
@@ -228,7 +229,7 @@ function defaultPasteResolver({
|
|
|
228
229
|
}
|
|
229
230
|
const selectedRowId = selectedCell.id;
|
|
230
231
|
const selectedRowIndex = apiRef.current.getRowIndexRelativeToVisibleRows(selectedRowId);
|
|
231
|
-
const visibleRowIds = pagination ? gridPaginatedVisibleSortedGridRowIdsSelector(apiRef) : gridExpandedSortedRowIdsSelector(apiRef);
|
|
232
|
+
const visibleRowIds = pagination && paginationMode === 'client' ? gridPaginatedVisibleSortedGridRowIdsSelector(apiRef) : gridExpandedSortedRowIdsSelector(apiRef);
|
|
232
233
|
const selectedFieldIndex = visibleColumnFields.indexOf(selectedCell.field);
|
|
233
234
|
pastedData.forEach((rowData, index) => {
|
|
234
235
|
const rowId = visibleRowIds[selectedRowIndex + index];
|
|
@@ -256,6 +257,7 @@ export const useGridClipboardImport = (apiRef, props) => {
|
|
|
256
257
|
const splitClipboardPastedText = props.splitClipboardPastedText;
|
|
257
258
|
const {
|
|
258
259
|
pagination,
|
|
260
|
+
paginationMode,
|
|
259
261
|
onBeforeClipboardPasteStart
|
|
260
262
|
} = props;
|
|
261
263
|
const handlePaste = React.useCallback(async (params, event) => {
|
|
@@ -309,10 +311,11 @@ export const useGridClipboardImport = (apiRef, props) => {
|
|
|
309
311
|
updateCell: (...args) => {
|
|
310
312
|
cellUpdater.updateCell(...args);
|
|
311
313
|
},
|
|
312
|
-
pagination
|
|
314
|
+
pagination,
|
|
315
|
+
paginationMode
|
|
313
316
|
});
|
|
314
317
|
cellUpdater.applyUpdates();
|
|
315
|
-
}, [apiRef, processRowUpdate, onProcessRowUpdateError, getRowId, enableClipboardPaste, rootEl, splitClipboardPastedText, pagination, onBeforeClipboardPasteStart, logger]);
|
|
318
|
+
}, [apiRef, processRowUpdate, onProcessRowUpdateError, getRowId, enableClipboardPaste, rootEl, splitClipboardPastedText, pagination, paginationMode, onBeforeClipboardPasteStart, logger]);
|
|
316
319
|
const checkIfCanStartEditing = React.useCallback((initialValue, {
|
|
317
320
|
event
|
|
318
321
|
}) => {
|
package/esm/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 = "MTcyNDM2MDQwMDAwMA==";
|
|
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
|
|
@@ -86,7 +86,7 @@ const useGridCellSelection = (apiRef, props) => {
|
|
|
86
86
|
const visibleColumns = apiRef.current.getVisibleColumns();
|
|
87
87
|
const rowsInRange = visibleRows.rows.slice(finalStartRowIndex, finalEndRowIndex + 1);
|
|
88
88
|
const columnsInRange = visibleColumns.slice(finalStartColumnIndex, finalEndColumnIndex + 1);
|
|
89
|
-
const newModel = keepOtherSelected ? apiRef.current.getCellSelectionModel() : {};
|
|
89
|
+
const newModel = keepOtherSelected ? (0, _extends2.default)({}, apiRef.current.getCellSelectionModel()) : {};
|
|
90
90
|
rowsInRange.forEach(row => {
|
|
91
91
|
if (!newModel[row.id]) {
|
|
92
92
|
newModel[row.id] = {};
|
|
@@ -160,7 +160,8 @@ function defaultPasteResolver({
|
|
|
160
160
|
pastedData,
|
|
161
161
|
apiRef,
|
|
162
162
|
updateCell,
|
|
163
|
-
pagination
|
|
163
|
+
pagination,
|
|
164
|
+
paginationMode
|
|
164
165
|
}) {
|
|
165
166
|
const isSingleValuePasted = pastedData.length === 1 && pastedData[0].length === 1;
|
|
166
167
|
const cellSelectionModel = apiRef.current.getCellSelectionModel();
|
|
@@ -237,7 +238,7 @@ function defaultPasteResolver({
|
|
|
237
238
|
}
|
|
238
239
|
const selectedRowId = selectedCell.id;
|
|
239
240
|
const selectedRowIndex = apiRef.current.getRowIndexRelativeToVisibleRows(selectedRowId);
|
|
240
|
-
const visibleRowIds = pagination ? (0, _xDataGrid.gridPaginatedVisibleSortedGridRowIdsSelector)(apiRef) : (0, _xDataGrid.gridExpandedSortedRowIdsSelector)(apiRef);
|
|
241
|
+
const visibleRowIds = pagination && paginationMode === 'client' ? (0, _xDataGrid.gridPaginatedVisibleSortedGridRowIdsSelector)(apiRef) : (0, _xDataGrid.gridExpandedSortedRowIdsSelector)(apiRef);
|
|
241
242
|
const selectedFieldIndex = visibleColumnFields.indexOf(selectedCell.field);
|
|
242
243
|
pastedData.forEach((rowData, index) => {
|
|
243
244
|
const rowId = visibleRowIds[selectedRowIndex + index];
|
|
@@ -265,6 +266,7 @@ const useGridClipboardImport = (apiRef, props) => {
|
|
|
265
266
|
const splitClipboardPastedText = props.splitClipboardPastedText;
|
|
266
267
|
const {
|
|
267
268
|
pagination,
|
|
269
|
+
paginationMode,
|
|
268
270
|
onBeforeClipboardPasteStart
|
|
269
271
|
} = props;
|
|
270
272
|
const handlePaste = React.useCallback(async (params, event) => {
|
|
@@ -318,10 +320,11 @@ const useGridClipboardImport = (apiRef, props) => {
|
|
|
318
320
|
updateCell: (...args) => {
|
|
319
321
|
cellUpdater.updateCell(...args);
|
|
320
322
|
},
|
|
321
|
-
pagination
|
|
323
|
+
pagination,
|
|
324
|
+
paginationMode
|
|
322
325
|
});
|
|
323
326
|
cellUpdater.applyUpdates();
|
|
324
|
-
}, [apiRef, processRowUpdate, onProcessRowUpdateError, getRowId, enableClipboardPaste, rootEl, splitClipboardPastedText, pagination, onBeforeClipboardPasteStart, logger]);
|
|
327
|
+
}, [apiRef, processRowUpdate, onProcessRowUpdateError, getRowId, enableClipboardPaste, rootEl, splitClipboardPastedText, pagination, paginationMode, onBeforeClipboardPasteStart, logger]);
|
|
325
328
|
const checkIfCanStartEditing = React.useCallback((initialValue, {
|
|
326
329
|
event
|
|
327
330
|
}) => {
|
package/index.js
CHANGED
|
@@ -8,8 +8,13 @@ function GridGroupingColumnLeafCell(props) {
|
|
|
8
8
|
} = props;
|
|
9
9
|
const rootProps = useGridRootProps();
|
|
10
10
|
return /*#__PURE__*/_jsx(Box, {
|
|
11
|
-
sx: {
|
|
12
|
-
ml:
|
|
11
|
+
sx: [rootProps.rowGroupingColumnMode === 'multiple' ? {
|
|
12
|
+
ml: 1
|
|
13
|
+
} : theme => ({
|
|
14
|
+
ml: `calc(var(--DataGrid-cellOffsetMultiplier) * var(--depth) * ${theme.spacing(1)})`
|
|
15
|
+
})],
|
|
16
|
+
style: {
|
|
17
|
+
'--depth': rowNode.depth
|
|
13
18
|
},
|
|
14
19
|
children: props.formattedValue ?? props.value
|
|
15
20
|
});
|
|
@@ -61,8 +61,13 @@ export function GridGroupingCriteriaCell(props) {
|
|
|
61
61
|
}
|
|
62
62
|
return /*#__PURE__*/_jsxs(Box, {
|
|
63
63
|
className: classes.root,
|
|
64
|
-
sx: {
|
|
65
|
-
ml:
|
|
64
|
+
sx: [rootProps.rowGroupingColumnMode === 'multiple' ? {
|
|
65
|
+
ml: 0
|
|
66
|
+
} : theme => ({
|
|
67
|
+
ml: `calc(var(--DataGrid-cellOffsetMultiplier) * var(--depth) * ${theme.spacing(1)})`
|
|
68
|
+
})],
|
|
69
|
+
style: {
|
|
70
|
+
'--depth': rowNode.depth
|
|
66
71
|
},
|
|
67
72
|
children: [/*#__PURE__*/_jsx("div", {
|
|
68
73
|
className: classes.toggle,
|
|
@@ -76,7 +76,7 @@ export const useGridCellSelection = (apiRef, props) => {
|
|
|
76
76
|
const visibleColumns = apiRef.current.getVisibleColumns();
|
|
77
77
|
const rowsInRange = visibleRows.rows.slice(finalStartRowIndex, finalEndRowIndex + 1);
|
|
78
78
|
const columnsInRange = visibleColumns.slice(finalStartColumnIndex, finalEndColumnIndex + 1);
|
|
79
|
-
const newModel = keepOtherSelected ? apiRef.current.getCellSelectionModel() : {};
|
|
79
|
+
const newModel = keepOtherSelected ? _extends({}, apiRef.current.getCellSelectionModel()) : {};
|
|
80
80
|
rowsInRange.forEach(row => {
|
|
81
81
|
if (!newModel[row.id]) {
|
|
82
82
|
newModel[row.id] = {};
|
|
@@ -151,7 +151,8 @@ function defaultPasteResolver({
|
|
|
151
151
|
pastedData,
|
|
152
152
|
apiRef,
|
|
153
153
|
updateCell,
|
|
154
|
-
pagination
|
|
154
|
+
pagination,
|
|
155
|
+
paginationMode
|
|
155
156
|
}) {
|
|
156
157
|
const isSingleValuePasted = pastedData.length === 1 && pastedData[0].length === 1;
|
|
157
158
|
const cellSelectionModel = apiRef.current.getCellSelectionModel();
|
|
@@ -228,7 +229,7 @@ function defaultPasteResolver({
|
|
|
228
229
|
}
|
|
229
230
|
const selectedRowId = selectedCell.id;
|
|
230
231
|
const selectedRowIndex = apiRef.current.getRowIndexRelativeToVisibleRows(selectedRowId);
|
|
231
|
-
const visibleRowIds = pagination ? gridPaginatedVisibleSortedGridRowIdsSelector(apiRef) : gridExpandedSortedRowIdsSelector(apiRef);
|
|
232
|
+
const visibleRowIds = pagination && paginationMode === 'client' ? gridPaginatedVisibleSortedGridRowIdsSelector(apiRef) : gridExpandedSortedRowIdsSelector(apiRef);
|
|
232
233
|
const selectedFieldIndex = visibleColumnFields.indexOf(selectedCell.field);
|
|
233
234
|
pastedData.forEach((rowData, index) => {
|
|
234
235
|
const rowId = visibleRowIds[selectedRowIndex + index];
|
|
@@ -256,6 +257,7 @@ export const useGridClipboardImport = (apiRef, props) => {
|
|
|
256
257
|
const splitClipboardPastedText = props.splitClipboardPastedText;
|
|
257
258
|
const {
|
|
258
259
|
pagination,
|
|
260
|
+
paginationMode,
|
|
259
261
|
onBeforeClipboardPasteStart
|
|
260
262
|
} = props;
|
|
261
263
|
const handlePaste = React.useCallback(async (params, event) => {
|
|
@@ -309,10 +311,11 @@ export const useGridClipboardImport = (apiRef, props) => {
|
|
|
309
311
|
updateCell: (...args) => {
|
|
310
312
|
cellUpdater.updateCell(...args);
|
|
311
313
|
},
|
|
312
|
-
pagination
|
|
314
|
+
pagination,
|
|
315
|
+
paginationMode
|
|
313
316
|
});
|
|
314
317
|
cellUpdater.applyUpdates();
|
|
315
|
-
}, [apiRef, processRowUpdate, onProcessRowUpdateError, getRowId, enableClipboardPaste, rootEl, splitClipboardPastedText, pagination, onBeforeClipboardPasteStart, logger]);
|
|
318
|
+
}, [apiRef, processRowUpdate, onProcessRowUpdateError, getRowId, enableClipboardPaste, rootEl, splitClipboardPastedText, pagination, paginationMode, onBeforeClipboardPasteStart, logger]);
|
|
316
319
|
const checkIfCanStartEditing = React.useCallback((initialValue, {
|
|
317
320
|
event
|
|
318
321
|
}) => {
|
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 = "MTcyNDM2MDQwMDAwMA==";
|
|
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.
|
|
3
|
+
"version": "7.14.0",
|
|
4
4
|
"description": "The Premium plan edition of the Data Grid Components (MUI X).",
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -34,17 +34,17 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@babel/runtime": "^7.25.0",
|
|
37
|
-
"@mui/system": "^5.16.
|
|
38
|
-
"@mui/utils": "^5.16.
|
|
37
|
+
"@mui/system": "^5.16.7",
|
|
38
|
+
"@mui/utils": "^5.16.6",
|
|
39
39
|
"@types/format-util": "^1.0.4",
|
|
40
40
|
"clsx": "^2.1.1",
|
|
41
41
|
"exceljs": "^4.4.0",
|
|
42
42
|
"prop-types": "^15.8.1",
|
|
43
43
|
"reselect": "^4.1.8",
|
|
44
|
-
"@mui/x-data-grid": "7.
|
|
45
|
-
"@mui/x-data-grid-pro": "7.
|
|
46
|
-
"@mui/x-
|
|
47
|
-
"@mui/x-
|
|
44
|
+
"@mui/x-data-grid": "7.14.0",
|
|
45
|
+
"@mui/x-data-grid-pro": "7.14.0",
|
|
46
|
+
"@mui/x-internals": "7.14.0",
|
|
47
|
+
"@mui/x-license": "7.14.0"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"@emotion/react": "^11.9.0",
|
package/utils/releaseInfo.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 = "MTcyNDM2MDQwMDAwMA==";
|
|
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
|