@mui/x-data-grid-pro 7.19.0 → 7.20.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 +105 -13
- package/DataGridPro/DataGrid.js +2 -2
- package/DataGridPro/DataGridPro.js +12 -5
- package/esm/DataGridPro/DataGrid.js +2 -2
- package/esm/DataGridPro/DataGridPro.js +12 -5
- package/esm/typeOverloads/reexports.js +2 -2
- package/esm/utils/releaseInfo.js +1 -1
- package/index.js +1 -1
- package/models/dataGridProProps.d.ts +2 -2
- package/models/gridApiPro.d.ts +1 -1
- package/models/gridStatePro.d.ts +2 -2
- package/modern/DataGridPro/DataGrid.js +2 -2
- package/modern/DataGridPro/DataGridPro.js +12 -5
- package/modern/index.js +1 -1
- package/modern/typeOverloads/reexports.js +2 -2
- package/modern/utils/releaseInfo.js +1 -1
- package/package.json +6 -6
- package/typeOverloads/reexports.d.ts +2 -2
- package/utils/releaseInfo.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,96 @@
|
|
|
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.20.0
|
|
7
|
+
|
|
8
|
+
_Oct 11, 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
|
+
- 📚 Updated ["What's new"](https://mui.com/x/whats-new/) page giving more detailed overview of the latest new features and other highlights
|
|
13
|
+
- 📚 New [collapsible column groups demo](https://mui.com/x/react-data-grid/column-groups/#collapsible-column-groups) for the Data Grid component
|
|
14
|
+
- 📚 New [Tree Item Customization](https://mui.com/x/react-tree-view/tree-item-customization/) documentation to learn how to use the new APIs to create custom Tree Items. The old APIs (`props.ContentComponent` and `props.ContentProps`) have been deprecated and will be removed in the new major version of the Tree View component.
|
|
15
|
+
- 🌍 Improve Japanese (ja-JP) locale on the Data Grid component
|
|
16
|
+
- 🐞 Bugfixes
|
|
17
|
+
- 📚 Other documentation improvements
|
|
18
|
+
|
|
19
|
+
Special thanks go out to the community contributors who have helped make this release possible:
|
|
20
|
+
@k-rajat19, @kalyan90, @uma-neko, @vfbiby.
|
|
21
|
+
Following are all team members who have contributed to this release: @alelthomas, @arminmeh, @arthurbalduini,
|
|
22
|
+
@cherniavskii, @flaviendelangle, @JCQuintas, @MBilalShafi, @noraleonte, @oliviertassinari, @samuelsycamore, @siriwatknp.
|
|
23
|
+
|
|
24
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
25
|
+
|
|
26
|
+
### Data Grid
|
|
27
|
+
|
|
28
|
+
#### `@mui/x-data-grid@7.20.0`
|
|
29
|
+
|
|
30
|
+
- [DataGrid] Add `onColumnHeaderContextMenu` event (#14734) @vfbiby
|
|
31
|
+
- [DataGrid] Avoid row spanning computation of outdated rows (#14902) @MBilalShafi
|
|
32
|
+
- [DataGrid] Fix scrollbar position not being updated after `scrollToIndexes` (#14888) @arminmeh
|
|
33
|
+
- [DataGrid] Pass `rowId` param to `processRowUpdate` (#14821) @k-rajat19
|
|
34
|
+
- [l10n] Improve Japanese (ja-JP) locale (#14870) @uma-neko
|
|
35
|
+
|
|
36
|
+
#### `@mui/x-data-grid-pro@7.20.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
37
|
+
|
|
38
|
+
Same changes as in `@mui/x-data-grid@7.20.0`, plus:
|
|
39
|
+
|
|
40
|
+
- [DataGridPro] Fix wording on the `rowSelectionPropagation` JSDoc and doc section (#14907) @flaviendelangle
|
|
41
|
+
|
|
42
|
+
#### `@mui/x-data-grid-premium@7.20.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
43
|
+
|
|
44
|
+
Same changes as in `@mui/x-data-grid-pro@7.20.0`.
|
|
45
|
+
|
|
46
|
+
### Date and Time Pickers
|
|
47
|
+
|
|
48
|
+
#### `@mui/x-date-pickers@7.20.0`
|
|
49
|
+
|
|
50
|
+
- [pickers] Add `PageUp` and `PageDown` support for time components (#14812) @arthurbalduini
|
|
51
|
+
- [pickers] Fix regression on `PickerValidDate` (#14896) @flaviendelangle
|
|
52
|
+
- [pickers] Move the `DateFieldInPickerProps` interface to the `DatePicker` folder and rename it `DatePickerFieldProps` (same for time and date time) (#14828) @flaviendelangle
|
|
53
|
+
|
|
54
|
+
#### `@mui/x-date-pickers-pro@7.20.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
55
|
+
|
|
56
|
+
Same changes as in `@mui/x-date-pickers@7.20.0`.
|
|
57
|
+
|
|
58
|
+
### Charts
|
|
59
|
+
|
|
60
|
+
#### `@mui/x-charts@7.20.0`
|
|
61
|
+
|
|
62
|
+
No changes since `@mui/x-charts@v7.19.0`.
|
|
63
|
+
|
|
64
|
+
#### `@mui/x-charts-pro@7.0.0-beta.4` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
65
|
+
|
|
66
|
+
Same changes as in `@mui/x-charts@7.20.0`.
|
|
67
|
+
|
|
68
|
+
### Tree View
|
|
69
|
+
|
|
70
|
+
#### `@mui/x-tree-view@7.20.0`
|
|
71
|
+
|
|
72
|
+
- [TreeItem] Deprecate the `ContentComponent` and `ContentProps` props (#14908) @flaviendelangle
|
|
73
|
+
- [TreeView] Rework how items are being rendered in Rich Tree View components (#14749) @flaviendelangle
|
|
74
|
+
|
|
75
|
+
### Docs
|
|
76
|
+
|
|
77
|
+
- [docs] Update "What's new" page (#14858) @cherniavskii
|
|
78
|
+
- [docs] Add collapsible column groups demo (#14818) @cherniavskii
|
|
79
|
+
- [docs] Add custom columns panel demo (#14825) @cherniavskii
|
|
80
|
+
- [docs] Capitalize all instances of "Data Grid" (#14884) @samuelsycamore
|
|
81
|
+
- [docs] Divide charts `tooltip` and `highlighting` pages (#14824) @JCQuintas
|
|
82
|
+
- [docs] Document the `TreeItem2` component and the `useTreeItem2` hook (#14551) @noraleonte
|
|
83
|
+
- [docs] Fix column pinning for "Disable detail panel content scroll" section (#14854 and #14885) @kalyan90
|
|
84
|
+
- [docs] Fix detail panel demo not working well with pinned columns (#14883) @cherniavskii
|
|
85
|
+
- [docs] New recipe of a read-only field (#14606) @flaviendelangle
|
|
86
|
+
- [docs] Change demo name example (#14822) @alelthomas
|
|
87
|
+
|
|
88
|
+
### Core
|
|
89
|
+
|
|
90
|
+
- [core] Support `@mui/utils` v6 (#14867) @siriwatknp
|
|
91
|
+
- [code-infra] Remove deprecated `data-mui-test` in favour of `data-testid` (#14882) @JCQuintas
|
|
92
|
+
- [code-infra] Update renovate config and add a `vitest` group (#14856) @JCQuintas
|
|
93
|
+
- [test] Replace `waitFor()` with `act()` (#14851) @oliviertassinari
|
|
94
|
+
- [test] Restore "pnpm tc" CLI (#14852) @oliviertassinari
|
|
95
|
+
|
|
6
96
|
## 7.19.0
|
|
7
97
|
|
|
8
98
|
_Oct 4, 2024_
|
|
@@ -90,13 +180,13 @@ Same changes as in `@mui/x-charts@7.19.0`.
|
|
|
90
180
|
|
|
91
181
|
- [TreeView] Apply experimental features in `getDefaultizedParams` instead of in the plugin render (#14661) @flaviendelangle
|
|
92
182
|
- [TreeView] Export `publicAPI` form `useTreeItem2Utils` (#14729) @noraleonte
|
|
93
|
-
- [TreeView] Fix cursor navigation interfering with browser shortcut keys
|
|
183
|
+
- [TreeView] Fix cursor navigation interfering with browser shortcut keys (#14798) @sai6855
|
|
94
184
|
- [TreeView] Fix invalid test for items reordering (#14665) @flaviendelangle
|
|
95
185
|
- [TreeView] Remove `instance.getTreeItemIdAttribute` (#14667) @flaviendelangle
|
|
96
186
|
|
|
97
187
|
### Docs
|
|
98
188
|
|
|
99
|
-
- [docs] Added warning callout for Firefox reordering bug
|
|
189
|
+
- [docs] Added warning callout for Firefox reordering bug (#14516) @michelengelen
|
|
100
190
|
- [docs] Copyedit `pages.ts` navigation (#14782) @samuelsycamore
|
|
101
191
|
- [docs] Fix typo in row spanning doc (#14770) @flaviendelangle
|
|
102
192
|
- [docs] Fix typo in the Tree View migration guide to v7 (#14727) @Sanderand
|
|
@@ -121,7 +211,7 @@ We'd like to offer a big thanks to the 14 contributors who made this release pos
|
|
|
121
211
|
|
|
122
212
|
- 💫 Support [Row spanning](https://mui.com/x/react-data-grid/row-spanning/) on the Data Grid that automatically merges the consecutive cells in a column based on the cell value
|
|
123
213
|
|
|
124
|
-
<img width="600" src="https://github.com/user-attachments/assets/d32ec936-d238-4c92-9e1a-af6788d74cdf" alt="
|
|
214
|
+
<img width="600" src="https://github.com/user-attachments/assets/d32ec936-d238-4c92-9e1a-af6788d74cdf" alt="Data Grid row spanning" />
|
|
125
215
|
|
|
126
216
|
- ⏰ Support `date-fns` v4 (#14673) @LukasTy
|
|
127
217
|
- 🎉 Add option for Pickers to change the order of displayed years (#11780) @thomasmoon
|
|
@@ -560,7 +650,7 @@ We'd like to offer a big thanks to the 12 contributors who made this release pos
|
|
|
560
650
|
#### `@mui/x-data-grid@7.13.0`
|
|
561
651
|
|
|
562
652
|
- [DataGrid] Fix CSV export for `null` and `undefined` values (#14166) @k-rajat19
|
|
563
|
-
- [DataGrid] Fix error logged during skeleton loading with nested
|
|
653
|
+
- [DataGrid] Fix error logged during skeleton loading with nested Data Grid (#14186) @KenanYusuf
|
|
564
654
|
- [DataGrid] Remove needless check in `useGridStateInitialization` (#14181) @k-rajat19
|
|
565
655
|
- [DataGrid] Add recipe for persisting filters in local storage (#14208) @cherniavskii
|
|
566
656
|
- [l10n] Improve Vietnamese (vi-VN) locale (#14216) @hungnd-casso
|
|
@@ -678,6 +768,8 @@ Same changes as in `@mui/x-charts@7.12.1`, plus:
|
|
|
678
768
|
|
|
679
769
|
#### `@mui/x-tree-view@7.12.1`
|
|
680
770
|
|
|
771
|
+
No changes since `@mui/x-tree-view@7.12.0`.
|
|
772
|
+
|
|
681
773
|
### Docs
|
|
682
774
|
|
|
683
775
|
- [docs] Add a warning to promote the usage of `updateRows` (#14027) @MBilalShafi
|
|
@@ -1528,7 +1620,7 @@ Same changes as in `@mui/x-date-pickers@7.6.0`.
|
|
|
1528
1620
|
- [docs] Fix a small typo in property comment (#13245) @Janpot
|
|
1529
1621
|
- [docs] Improve the Data Grid FAQ page (#13258) @MBilalShafi
|
|
1530
1622
|
- [docs] Removes unused lines in TreeItem2 styling (#13264) @arthurbalduini
|
|
1531
|
-
- [docs] Small improvements on accessibility
|
|
1623
|
+
- [docs] Small improvements on accessibility Data Grid doc (#13233) @arthurbalduini
|
|
1532
1624
|
- [docs] Update Pickers demo configurations (#13303) @LukasTy
|
|
1533
1625
|
|
|
1534
1626
|
### Core
|
|
@@ -1542,7 +1634,7 @@ Same changes as in `@mui/x-date-pickers@7.6.0`.
|
|
|
1542
1634
|
- [test] Use test-utils from npm (#12880) @michaldudak
|
|
1543
1635
|
- [typescript] Remove duplicate `DateRangePosition` type in favor of `RangePosition` (#13288) @LukasTy
|
|
1544
1636
|
|
|
1545
|
-
##
|
|
1637
|
+
## 7.5.1
|
|
1546
1638
|
|
|
1547
1639
|
_May 23, 2024_
|
|
1548
1640
|
|
|
@@ -1602,7 +1694,7 @@ Same changes as in `@mui/x-date-pickers@7.5.1`.
|
|
|
1602
1694
|
- [code-infra] Run corepack enable on all CI jobs (#13205) @Janpot
|
|
1603
1695
|
- [code-infra] Use `nx` for lerna tasks (#13166) @LukasTy
|
|
1604
1696
|
|
|
1605
|
-
##
|
|
1697
|
+
## 7.5.0
|
|
1606
1698
|
|
|
1607
1699
|
_May 17, 2024_
|
|
1608
1700
|
|
|
@@ -2127,7 +2219,7 @@ Same changes as in `@mui/x-date-pickers@7.1.1`, plus:
|
|
|
2127
2219
|
- [docs] Fix typo in `getItemId` prop description (#12637) @flaviendelangle
|
|
2128
2220
|
- [docs] Make the Charts `margin` usage more visible (#12591) @alexfauquette
|
|
2129
2221
|
- [docs] Match IE 11 spacing with Material UI @oliviertassinari
|
|
2130
|
-
- [docs] Move
|
|
2222
|
+
- [docs] Move Data Grid interfaces to standard API page layout (#12016) @alexfauquette
|
|
2131
2223
|
- [docs] Remove ` around @default values (#12158) @alexfauquette
|
|
2132
2224
|
- [docs] Remove `day` from the default `dayOfWeekFormatter` function params (#12644) @LukasTy
|
|
2133
2225
|
- [docs] Use `TreeItem2` for icon expansion example on `RichTreeView` (#12563) @flaviendelangle
|
|
@@ -3568,7 +3660,7 @@ Same changes as in `@mui/x-date-pickers@7.0.0-alpha.9`.
|
|
|
3568
3660
|
- [docs] Fix generated tree view API docs (#11737) @LukasTy
|
|
3569
3661
|
- [docs] Generate docs for Tree View slots (#11730) @flaviendelangle
|
|
3570
3662
|
- [docs] Improve codemod for v7 (#11650) @oliviertassinari
|
|
3571
|
-
- [docs] Improve
|
|
3663
|
+
- [docs] Improve Data Grid `pageSizeOptions` prop documentation (#11682) @oliviertassinari
|
|
3572
3664
|
- [docs] Parse markdown on API docs demo titles (#11728) @LukasTy
|
|
3573
3665
|
- [docs] Remove the description from the `className` prop (#11693) @oliviertassinari
|
|
3574
3666
|
- [docs] Uplift `SimpleTreeView` customization examples (#11424) @noraleonte
|
|
@@ -3656,8 +3748,8 @@ Same changes as in `@mui/x-date-pickers@7.0.0-alpha.8`.
|
|
|
3656
3748
|
- [docs] Fix parsing of `x-date-pickers-pro` demo adapter imports (#11628) @LukasTy
|
|
3657
3749
|
- [docs] Improve `git diff` format @oliviertassinari
|
|
3658
3750
|
- [docs] Push up the MUI X brand (#11533) @oliviertassinari
|
|
3659
|
-
- [docs] Remove old
|
|
3660
|
-
- [docs] Improve Server-side
|
|
3751
|
+
- [docs] Remove old Data Grid translation files (#11646) @cherniavskii
|
|
3752
|
+
- [docs] Improve Server-side Data Grid docs (#11589) @oliviertassinari
|
|
3661
3753
|
- [docs] Improve charts landing page (#11570) @oliviertassinari
|
|
3662
3754
|
|
|
3663
3755
|
### Core
|
|
@@ -4167,7 +4259,7 @@ We'd like to offer a big thanks to the 15 contributors who made this release pos
|
|
|
4167
4259
|
|
|
4168
4260
|
- The clipboard related exports `ignoreValueFormatterDuringExport` and `splitClipboardPastedText` are no longer prefixed with `unstable_`.
|
|
4169
4261
|
|
|
4170
|
-
- The deprecated constants `SUBMIT_FILTER_STROKE_TIME` and `SUBMIT_FILTER_DATE_STROKE_TIME` have been removed from the
|
|
4262
|
+
- The deprecated constants `SUBMIT_FILTER_STROKE_TIME` and `SUBMIT_FILTER_DATE_STROKE_TIME` have been removed from the Data Grid exports. Use the [`filterDebounceMs`](https://next.mui.com/x/api/data-grid/data-grid/#data-grid-prop-filterDebounceMs) prop to customize filter debounce time.
|
|
4171
4263
|
|
|
4172
4264
|
- The `slots.preferencesPanel` slot and the `slotProps.preferencesPanel` prop were removed. Use `slots.panel` and `slotProps.panel` instead.
|
|
4173
4265
|
|
|
@@ -4879,7 +4971,7 @@ A special shoutout to thank the 12 contributors who made this release possible.
|
|
|
4879
4971
|
- 🚀 First v7 alpha release
|
|
4880
4972
|
- ✨ Fix aggregation label not showing when `renderHeader` is used (#10961) @cherniavskii
|
|
4881
4973
|
- 📘 Server side data source [early documentation](https://mui.com/x/react-data-grid/server-side-data/)
|
|
4882
|
-
- 💫 New recipes added for the
|
|
4974
|
+
- 💫 New recipes added for the Data Grid
|
|
4883
4975
|
- 📈 `<ChartsReferenceLine />` component is now available
|
|
4884
4976
|
- 🌍 Add Basque (eu) locale, improve Czech (cs-CZ) and Spanish (es-ES) locales
|
|
4885
4977
|
- 🐞 Bugfixes
|
package/DataGridPro/DataGrid.js
CHANGED
|
@@ -12,7 +12,7 @@ function DataGrid() {
|
|
|
12
12
|
if (process.env.NODE_ENV === 'production') {
|
|
13
13
|
return null;
|
|
14
14
|
}
|
|
15
|
-
throw new Error(["You try to import
|
|
15
|
+
throw new Error(["You try to import Data Grid from @mui/x-data-grid-pro but this module isn't exported from this npm package.", '', "Instead, you can do `import { DataGridPro } from '@mui/x-data-grid-pro'`.", ''].join('\n'));
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
/**
|
|
@@ -22,5 +22,5 @@ function DataGridPremium() {
|
|
|
22
22
|
if (process.env.NODE_ENV === 'production') {
|
|
23
23
|
return null;
|
|
24
24
|
}
|
|
25
|
-
throw new Error(["You try to import
|
|
25
|
+
throw new Error(["You try to import Data Grid Premium from @mui/x-data-grid-pro but this module isn't exported from this npm package.", '', 'Instead, if you have a Premium plan license or want to try Premium, you can do this:', `import { DataGridPremium } from '@mui/x-data-grid-premium'`, '', "Otherwise, you can stay on the Pro plan: `import { DataGridPro } from '@mui/x-data-grid-pro'`.", ''].join('\n'));
|
|
26
26
|
}
|
|
@@ -542,6 +542,12 @@ DataGridProRaw.propTypes = {
|
|
|
542
542
|
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
543
543
|
*/
|
|
544
544
|
onColumnHeaderClick: _propTypes.default.func,
|
|
545
|
+
/**
|
|
546
|
+
* Callback fired when a contextmenu event comes from a column header element.
|
|
547
|
+
* @param {GridColumnHeaderParams} params With all properties from [[GridColumnHeaderParams]].
|
|
548
|
+
* @param {MuiEvent<React.MouseEvent>} event The event object.
|
|
549
|
+
*/
|
|
550
|
+
onColumnHeaderContextMenu: _propTypes.default.func,
|
|
545
551
|
/**
|
|
546
552
|
* Callback fired when a double click event comes from a column header element.
|
|
547
553
|
* @param {GridColumnHeaderParams} params With all properties from [[GridColumnHeaderParams]].
|
|
@@ -807,6 +813,7 @@ DataGridProRaw.propTypes = {
|
|
|
807
813
|
* @template R
|
|
808
814
|
* @param {R} newRow Row object with the new values.
|
|
809
815
|
* @param {R} oldRow Row object with the old values.
|
|
816
|
+
* @param {{ rowId: GridRowId }} params Additional parameters.
|
|
810
817
|
* @returns {Promise<R> | R} The final values to update the row.
|
|
811
818
|
*/
|
|
812
819
|
processRowUpdate: _propTypes.default.func,
|
|
@@ -863,12 +870,12 @@ DataGridProRaw.propTypes = {
|
|
|
863
870
|
rowSelectionModel: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]).isRequired), _propTypes.default.number, _propTypes.default.string]),
|
|
864
871
|
/**
|
|
865
872
|
* When `rowSelectionPropagation.descendants` is set to `true`.
|
|
866
|
-
* - Selecting a parent
|
|
867
|
-
* - Deselecting a parent
|
|
873
|
+
* - Selecting a parent selects all its filtered descendants automatically.
|
|
874
|
+
* - Deselecting a parent row deselects all its filtered descendants automatically.
|
|
868
875
|
*
|
|
869
|
-
* When `rowSelectionPropagation.parents
|
|
870
|
-
* - Selecting all descendants of a parent
|
|
871
|
-
* - Deselecting a descendant of a selected parent
|
|
876
|
+
* When `rowSelectionPropagation.parents` is set to `true`
|
|
877
|
+
* - Selecting all the filtered descendants of a parent selects the parent automatically.
|
|
878
|
+
* - Deselecting a descendant of a selected parent deselects the parent automatically.
|
|
872
879
|
*
|
|
873
880
|
* Works with tree data and row grouping on the client-side only.
|
|
874
881
|
* @default { parents: false, descendants: false }
|
|
@@ -5,7 +5,7 @@ export function DataGrid() {
|
|
|
5
5
|
if (process.env.NODE_ENV === 'production') {
|
|
6
6
|
return null;
|
|
7
7
|
}
|
|
8
|
-
throw new Error(["You try to import
|
|
8
|
+
throw new Error(["You try to import Data Grid from @mui/x-data-grid-pro but this module isn't exported from this npm package.", '', "Instead, you can do `import { DataGridPro } from '@mui/x-data-grid-pro'`.", ''].join('\n'));
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -15,5 +15,5 @@ export function DataGridPremium() {
|
|
|
15
15
|
if (process.env.NODE_ENV === 'production') {
|
|
16
16
|
return null;
|
|
17
17
|
}
|
|
18
|
-
throw new Error(["You try to import
|
|
18
|
+
throw new Error(["You try to import Data Grid Premium from @mui/x-data-grid-pro but this module isn't exported from this npm package.", '', 'Instead, if you have a Premium plan license or want to try Premium, you can do this:', `import { DataGridPremium } from '@mui/x-data-grid-premium'`, '', "Otherwise, you can stay on the Pro plan: `import { DataGridPro } from '@mui/x-data-grid-pro'`.", ''].join('\n'));
|
|
19
19
|
}
|
|
@@ -535,6 +535,12 @@ DataGridProRaw.propTypes = {
|
|
|
535
535
|
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
536
536
|
*/
|
|
537
537
|
onColumnHeaderClick: PropTypes.func,
|
|
538
|
+
/**
|
|
539
|
+
* Callback fired when a contextmenu event comes from a column header element.
|
|
540
|
+
* @param {GridColumnHeaderParams} params With all properties from [[GridColumnHeaderParams]].
|
|
541
|
+
* @param {MuiEvent<React.MouseEvent>} event The event object.
|
|
542
|
+
*/
|
|
543
|
+
onColumnHeaderContextMenu: PropTypes.func,
|
|
538
544
|
/**
|
|
539
545
|
* Callback fired when a double click event comes from a column header element.
|
|
540
546
|
* @param {GridColumnHeaderParams} params With all properties from [[GridColumnHeaderParams]].
|
|
@@ -800,6 +806,7 @@ DataGridProRaw.propTypes = {
|
|
|
800
806
|
* @template R
|
|
801
807
|
* @param {R} newRow Row object with the new values.
|
|
802
808
|
* @param {R} oldRow Row object with the old values.
|
|
809
|
+
* @param {{ rowId: GridRowId }} params Additional parameters.
|
|
803
810
|
* @returns {Promise<R> | R} The final values to update the row.
|
|
804
811
|
*/
|
|
805
812
|
processRowUpdate: PropTypes.func,
|
|
@@ -856,12 +863,12 @@ DataGridProRaw.propTypes = {
|
|
|
856
863
|
rowSelectionModel: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired), PropTypes.number, PropTypes.string]),
|
|
857
864
|
/**
|
|
858
865
|
* When `rowSelectionPropagation.descendants` is set to `true`.
|
|
859
|
-
* - Selecting a parent
|
|
860
|
-
* - Deselecting a parent
|
|
866
|
+
* - Selecting a parent selects all its filtered descendants automatically.
|
|
867
|
+
* - Deselecting a parent row deselects all its filtered descendants automatically.
|
|
861
868
|
*
|
|
862
|
-
* When `rowSelectionPropagation.parents
|
|
863
|
-
* - Selecting all descendants of a parent
|
|
864
|
-
* - Deselecting a descendant of a selected parent
|
|
869
|
+
* When `rowSelectionPropagation.parents` is set to `true`
|
|
870
|
+
* - Selecting all the filtered descendants of a parent selects the parent automatically.
|
|
871
|
+
* - Deselecting a descendant of a selected parent deselects the parent automatically.
|
|
865
872
|
*
|
|
866
873
|
* Works with tree data and row grouping on the client-side only.
|
|
867
874
|
* @default { parents: false, descendants: false }
|
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 = "MTcyODU5NzYwMDAwMA==";
|
|
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/index.js
CHANGED
|
@@ -24,13 +24,13 @@ interface DataGridProPropsWithComplexDefaultValueAfterProcessing extends Omit<Da
|
|
|
24
24
|
slots: GridProSlotsComponent;
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
|
-
* The props of the
|
|
27
|
+
* The props of the Data Grid Pro component after the pre-processing phase.
|
|
28
28
|
*/
|
|
29
29
|
export interface DataGridProProcessedProps<R extends GridValidRowModel = any> extends DataGridProPropsWithDefaultValue<R>, DataGridProPropsWithComplexDefaultValueAfterProcessing, Omit<DataGridProPropsWithoutDefaultValue<R>, 'componentsProps'> {
|
|
30
30
|
}
|
|
31
31
|
export type DataGridProForcedPropsKey = 'signature';
|
|
32
32
|
/**
|
|
33
|
-
* The
|
|
33
|
+
* The Data Grid Pro options with a default value overridable through props
|
|
34
34
|
* None of the entry of this interface should be optional, they all have default values and `DataGridProps` already applies a `Partial<DataGridSimpleOptions>` for the public interface
|
|
35
35
|
* The controlled model do not have a default value at the prop processing level, so they must be defined in `DataGridOtherProps`
|
|
36
36
|
*/
|
package/models/gridApiPro.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { GridInitialStatePro, GridStatePro } from './gridStatePro';
|
|
|
4
4
|
import type { GridColumnPinningApi, GridDetailPanelApi, GridRowPinningApi, GridDetailPanelPrivateApi, GridDataSourceApi, GridDataSourcePrivateApi } from '../hooks';
|
|
5
5
|
import type { DataGridProProcessedProps } from './dataGridProProps';
|
|
6
6
|
/**
|
|
7
|
-
* The api of
|
|
7
|
+
* The api of Data Grid Pro.
|
|
8
8
|
*/
|
|
9
9
|
export interface GridApiPro extends GridApiCommon<GridStatePro, GridInitialStatePro>, GridRowProApi, GridColumnPinningApi, GridDetailPanelApi, GridRowPinningApi, GridDataSourceApi, GridRowMultiSelectionApi, GridColumnReorderApi {
|
|
10
10
|
}
|
package/models/gridStatePro.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { GridInitialState as GridInitialStateCommunity, GridState as GridStateCo
|
|
|
2
2
|
import type { GridDetailPanelState, GridDetailPanelInitialState, GridColumnReorderState } from '../hooks';
|
|
3
3
|
import type { GridDataSourceState } from '../hooks/features/dataSource/interfaces';
|
|
4
4
|
/**
|
|
5
|
-
* The state of
|
|
5
|
+
* The state of Data Grid Pro.
|
|
6
6
|
*/
|
|
7
7
|
export interface GridStatePro extends GridStateCommunity {
|
|
8
8
|
columnReorder: GridColumnReorderState;
|
|
@@ -11,7 +11,7 @@ export interface GridStatePro extends GridStateCommunity {
|
|
|
11
11
|
dataSource: GridDataSourceState;
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
|
-
* The initial state of
|
|
14
|
+
* The initial state of Data Grid Pro.
|
|
15
15
|
*/
|
|
16
16
|
export interface GridInitialStatePro extends GridInitialStateCommunity {
|
|
17
17
|
pinnedColumns?: GridPinnedColumnFields;
|
|
@@ -5,7 +5,7 @@ export function DataGrid() {
|
|
|
5
5
|
if (process.env.NODE_ENV === 'production') {
|
|
6
6
|
return null;
|
|
7
7
|
}
|
|
8
|
-
throw new Error(["You try to import
|
|
8
|
+
throw new Error(["You try to import Data Grid from @mui/x-data-grid-pro but this module isn't exported from this npm package.", '', "Instead, you can do `import { DataGridPro } from '@mui/x-data-grid-pro'`.", ''].join('\n'));
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -15,5 +15,5 @@ export function DataGridPremium() {
|
|
|
15
15
|
if (process.env.NODE_ENV === 'production') {
|
|
16
16
|
return null;
|
|
17
17
|
}
|
|
18
|
-
throw new Error(["You try to import
|
|
18
|
+
throw new Error(["You try to import Data Grid Premium from @mui/x-data-grid-pro but this module isn't exported from this npm package.", '', 'Instead, if you have a Premium plan license or want to try Premium, you can do this:', `import { DataGridPremium } from '@mui/x-data-grid-premium'`, '', "Otherwise, you can stay on the Pro plan: `import { DataGridPro } from '@mui/x-data-grid-pro'`.", ''].join('\n'));
|
|
19
19
|
}
|
|
@@ -535,6 +535,12 @@ DataGridProRaw.propTypes = {
|
|
|
535
535
|
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
536
536
|
*/
|
|
537
537
|
onColumnHeaderClick: PropTypes.func,
|
|
538
|
+
/**
|
|
539
|
+
* Callback fired when a contextmenu event comes from a column header element.
|
|
540
|
+
* @param {GridColumnHeaderParams} params With all properties from [[GridColumnHeaderParams]].
|
|
541
|
+
* @param {MuiEvent<React.MouseEvent>} event The event object.
|
|
542
|
+
*/
|
|
543
|
+
onColumnHeaderContextMenu: PropTypes.func,
|
|
538
544
|
/**
|
|
539
545
|
* Callback fired when a double click event comes from a column header element.
|
|
540
546
|
* @param {GridColumnHeaderParams} params With all properties from [[GridColumnHeaderParams]].
|
|
@@ -800,6 +806,7 @@ DataGridProRaw.propTypes = {
|
|
|
800
806
|
* @template R
|
|
801
807
|
* @param {R} newRow Row object with the new values.
|
|
802
808
|
* @param {R} oldRow Row object with the old values.
|
|
809
|
+
* @param {{ rowId: GridRowId }} params Additional parameters.
|
|
803
810
|
* @returns {Promise<R> | R} The final values to update the row.
|
|
804
811
|
*/
|
|
805
812
|
processRowUpdate: PropTypes.func,
|
|
@@ -856,12 +863,12 @@ DataGridProRaw.propTypes = {
|
|
|
856
863
|
rowSelectionModel: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired), PropTypes.number, PropTypes.string]),
|
|
857
864
|
/**
|
|
858
865
|
* When `rowSelectionPropagation.descendants` is set to `true`.
|
|
859
|
-
* - Selecting a parent
|
|
860
|
-
* - Deselecting a parent
|
|
866
|
+
* - Selecting a parent selects all its filtered descendants automatically.
|
|
867
|
+
* - Deselecting a parent row deselects all its filtered descendants automatically.
|
|
861
868
|
*
|
|
862
|
-
* When `rowSelectionPropagation.parents
|
|
863
|
-
* - Selecting all descendants of a parent
|
|
864
|
-
* - Deselecting a descendant of a selected parent
|
|
869
|
+
* When `rowSelectionPropagation.parents` is set to `true`
|
|
870
|
+
* - Selecting all the filtered descendants of a parent selects the parent automatically.
|
|
871
|
+
* - Deselecting a descendant of a selected parent deselects the parent automatically.
|
|
865
872
|
*
|
|
866
873
|
* Works with tree data and row grouping on the client-side only.
|
|
867
874
|
* @default { parents: false, descendants: false }
|
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 = "MTcyODU5NzYwMDAwMA==";
|
|
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-pro",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.20.0",
|
|
4
4
|
"description": "The Pro plan edition of the Data Grid components (MUI X).",
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -33,15 +33,15 @@
|
|
|
33
33
|
"directory": "packages/x-data-grid-pro"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@babel/runtime": "^7.25.
|
|
37
|
-
"@mui/utils": "^5.16.6",
|
|
36
|
+
"@babel/runtime": "^7.25.7",
|
|
37
|
+
"@mui/utils": "^5.16.6 || ^6.0.0",
|
|
38
38
|
"@types/format-util": "^1.0.4",
|
|
39
39
|
"clsx": "^2.1.1",
|
|
40
40
|
"prop-types": "^15.8.1",
|
|
41
41
|
"reselect": "^5.1.1",
|
|
42
|
-
"@mui/x-data-grid": "7.
|
|
43
|
-
"@mui/x-internals": "7.
|
|
44
|
-
"@mui/x-license": "7.
|
|
42
|
+
"@mui/x-data-grid": "7.20.0",
|
|
43
|
+
"@mui/x-internals": "7.20.0",
|
|
44
|
+
"@mui/x-license": "7.20.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@emotion/react": "^11.9.0",
|
|
@@ -8,10 +8,10 @@ export { useGridRootProps } from '../hooks/utils/useGridRootProps';
|
|
|
8
8
|
*/
|
|
9
9
|
export type GridApi = GridApiPro;
|
|
10
10
|
/**
|
|
11
|
-
* The state of
|
|
11
|
+
* The state of Data Grid Pro.
|
|
12
12
|
*/
|
|
13
13
|
export type GridState = GridStatePro;
|
|
14
14
|
/**
|
|
15
|
-
* The initial state of
|
|
15
|
+
* The initial state of Data Grid Pro.
|
|
16
16
|
*/
|
|
17
17
|
export type GridInitialState = GridInitialStatePro;
|
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 = "MTcyODU5NzYwMDAwMA==";
|
|
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
|