@mui/x-data-grid 6.0.0-beta.5 → 6.0.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 +130 -29
- package/DataGrid/DataGrid.js +0 -2
- package/components/GridColumnHeaders.d.ts +7 -0
- package/components/GridColumnHeaders.js +108 -0
- package/components/GridFooter.d.ts +1 -1
- package/components/GridLoadingOverlay.d.ts +1 -1
- package/components/GridNoResultsOverlay.d.ts +1 -1
- package/components/GridNoRowsOverlay.d.ts +1 -1
- package/components/GridRow.d.ts +13 -7
- package/components/GridRow.js +48 -30
- package/components/GridRowCount.d.ts +1 -1
- package/components/GridRowCount.js +1 -1
- package/components/GridScrollArea.js +1 -1
- package/components/GridSelectedRowCount.d.ts +1 -1
- package/components/GridSelectedRowCount.js +1 -1
- package/components/base/GridBody.d.ts +1 -4
- package/components/base/GridBody.js +43 -5
- package/components/base/GridOverlays.js +1 -1
- package/components/cell/GridCell.d.ts +2 -5
- package/components/cell/GridCell.js +14 -12
- package/components/cell/GridEditInputCell.js +1 -2
- package/components/cell/GridEditSingleSelectCell.js +7 -6
- package/components/columnHeaders/GridBaseColumnHeaders.d.ts +7 -0
- package/{modern/components/columnHeaders/GridColumnHeaders.js → components/columnHeaders/GridBaseColumnHeaders.js} +11 -15
- package/components/columnHeaders/GridColumnHeaderTitle.js +4 -6
- package/components/columnHeaders/GridColumnHeadersInner.d.ts +1 -1
- package/components/columnHeaders/GridColumnHeadersInner.js +1 -1
- package/components/columnHeaders/GridIconButtonContainer.js +1 -1
- package/components/containers/GridFooterContainer.d.ts +1 -1
- package/components/containers/GridFooterContainer.js +7 -10
- package/components/containers/GridMainContainer.js +1 -1
- package/components/containers/GridOverlay.d.ts +1 -2
- package/components/containers/GridOverlay.js +4 -6
- package/components/containers/GridRootStyles.js +7 -3
- package/components/containers/GridToolbarContainer.d.ts +1 -1
- package/components/containers/GridToolbarContainer.js +1 -1
- package/components/index.d.ts +1 -1
- package/components/index.js +1 -1
- package/components/panel/GridColumnsPanel.js +1 -2
- package/components/panel/GridPanel.d.ts +1 -1
- package/components/panel/GridPanelContent.d.ts +1 -1
- package/components/panel/GridPanelContent.js +1 -1
- package/components/panel/GridPanelFooter.d.ts +1 -1
- package/components/panel/GridPanelFooter.js +1 -1
- package/components/panel/GridPanelHeader.d.ts +1 -1
- package/components/panel/GridPanelHeader.js +1 -1
- package/components/panel/filterPanel/GridFilterForm.js +32 -30
- package/components/panel/filterPanel/GridFilterInputBoolean.js +12 -9
- package/components/panel/filterPanel/GridFilterInputDate.js +1 -2
- package/components/panel/filterPanel/GridFilterInputSingleSelect.js +30 -13
- package/components/panel/filterPanel/GridFilterInputValue.js +1 -2
- package/components/panel/filterPanel/GridFilterPanel.d.ts +3 -3
- package/components/panel/filterPanel/GridFilterPanel.js +8 -1
- package/components/virtualization/GridVirtualScroller.d.ts +1 -1
- package/components/virtualization/GridVirtualScroller.js +1 -1
- package/components/virtualization/GridVirtualScrollerContent.d.ts +1 -1
- package/components/virtualization/GridVirtualScrollerContent.js +1 -1
- package/components/virtualization/GridVirtualScrollerRenderZone.d.ts +1 -1
- package/components/virtualization/GridVirtualScrollerRenderZone.js +1 -1
- package/constants/defaultGridSlotsComponents.js +5 -56
- package/hooks/core/useGridLocaleText.js +2 -4
- package/hooks/features/columnHeaders/useGridColumnHeaders.d.ts +22 -1
- package/hooks/features/columnHeaders/useGridColumnHeaders.js +17 -26
- package/hooks/features/statePersistence/gridStatePersistenceInterface.d.ts +2 -0
- package/hooks/features/virtualization/useGridVirtualScroller.js +35 -18
- package/index.d.ts +3 -0
- package/index.js +5 -1
- package/internals/index.d.ts +2 -1
- package/internals/index.js +1 -1
- package/legacy/DataGrid/DataGrid.js +0 -2
- package/legacy/components/GridColumnHeaders.js +106 -0
- package/legacy/components/GridRow.js +46 -30
- package/legacy/components/GridRowCount.js +1 -1
- package/legacy/components/GridScrollArea.js +1 -1
- package/legacy/components/GridSelectedRowCount.js +1 -1
- package/legacy/components/base/GridBody.js +43 -5
- package/legacy/components/base/GridOverlays.js +1 -1
- package/legacy/components/cell/GridCell.js +14 -12
- package/legacy/components/cell/GridEditInputCell.js +1 -2
- package/legacy/components/cell/GridEditSingleSelectCell.js +7 -6
- package/legacy/components/columnHeaders/{GridColumnHeaders.js → GridBaseColumnHeaders.js} +11 -14
- package/legacy/components/columnHeaders/GridColumnHeaderTitle.js +6 -9
- package/legacy/components/columnHeaders/GridColumnHeadersInner.js +1 -1
- package/legacy/components/columnHeaders/GridIconButtonContainer.js +1 -1
- package/legacy/components/containers/GridFooterContainer.js +7 -10
- package/legacy/components/containers/GridMainContainer.js +1 -1
- package/legacy/components/containers/GridOverlay.js +9 -12
- package/legacy/components/containers/GridRootStyles.js +7 -3
- package/legacy/components/containers/GridToolbarContainer.js +1 -1
- package/legacy/components/index.js +1 -1
- package/legacy/components/panel/GridColumnsPanel.js +1 -2
- package/legacy/components/panel/GridPanelContent.js +1 -1
- package/legacy/components/panel/GridPanelFooter.js +1 -1
- package/legacy/components/panel/GridPanelHeader.js +1 -1
- package/legacy/components/panel/filterPanel/GridFilterForm.js +32 -30
- package/legacy/components/panel/filterPanel/GridFilterInputBoolean.js +12 -9
- package/legacy/components/panel/filterPanel/GridFilterInputDate.js +1 -2
- package/legacy/components/panel/filterPanel/GridFilterInputSingleSelect.js +29 -13
- package/legacy/components/panel/filterPanel/GridFilterInputValue.js +1 -2
- package/legacy/components/panel/filterPanel/GridFilterPanel.js +8 -1
- package/legacy/components/virtualization/GridVirtualScroller.js +1 -1
- package/legacy/components/virtualization/GridVirtualScrollerContent.js +1 -1
- package/legacy/components/virtualization/GridVirtualScrollerRenderZone.js +1 -1
- package/legacy/constants/defaultGridSlotsComponents.js +5 -56
- package/legacy/hooks/core/useGridLocaleText.js +2 -4
- package/legacy/hooks/features/columnHeaders/useGridColumnHeaders.js +17 -26
- package/legacy/hooks/features/virtualization/useGridVirtualScroller.js +33 -16
- package/legacy/index.js +5 -1
- package/legacy/internals/index.js +1 -1
- package/legacy/locales/arSD.js +14 -19
- package/legacy/locales/csCZ.js +25 -33
- package/legacy/locales/esES.js +1 -1
- package/legacy/material/components/MUISelectOption.js +14 -0
- package/legacy/material/index.js +65 -0
- package/legacy/models/gridFilterItem.js +2 -0
- package/legacy/models/params/gridRowParams.js +4 -0
- package/locales/arSD.js +14 -19
- package/locales/csCZ.js +24 -32
- package/locales/esES.js +1 -1
- package/material/components/MUISelectOption.d.ts +3 -0
- package/material/components/MUISelectOption.js +16 -0
- package/material/index.d.ts +57 -0
- package/material/index.js +65 -0
- package/material/package.json +6 -0
- package/models/colDef/gridColDef.d.ts +6 -0
- package/models/gridExport.d.ts +4 -0
- package/models/gridFilterItem.d.ts +2 -0
- package/models/gridFilterItem.js +2 -0
- package/models/gridFilterModel.d.ts +2 -0
- package/models/gridFilterOperator.d.ts +2 -0
- package/models/gridIconSlotsComponent.d.ts +10 -0
- package/models/gridSlotsComponent.d.ts +15 -0
- package/models/gridSlotsComponentsProps.d.ts +103 -23
- package/models/params/gridRowParams.d.ts +6 -0
- package/models/params/gridRowParams.js +4 -0
- package/modern/DataGrid/DataGrid.js +0 -2
- package/modern/components/GridColumnHeaders.js +108 -0
- package/modern/components/GridRow.js +48 -27
- package/modern/components/GridRowCount.js +1 -1
- package/modern/components/GridScrollArea.js +1 -1
- package/modern/components/GridSelectedRowCount.js +1 -1
- package/modern/components/base/GridBody.js +43 -5
- package/modern/components/base/GridOverlays.js +1 -1
- package/modern/components/cell/GridCell.js +14 -12
- package/modern/components/cell/GridEditInputCell.js +1 -2
- package/modern/components/cell/GridEditSingleSelectCell.js +6 -6
- package/{components/columnHeaders/GridColumnHeaders.js → modern/components/columnHeaders/GridBaseColumnHeaders.js} +11 -15
- package/modern/components/columnHeaders/GridColumnHeaderTitle.js +4 -6
- package/modern/components/columnHeaders/GridColumnHeadersInner.js +1 -1
- package/modern/components/columnHeaders/GridIconButtonContainer.js +1 -1
- package/modern/components/containers/GridFooterContainer.js +7 -10
- package/modern/components/containers/GridMainContainer.js +1 -1
- package/modern/components/containers/GridOverlay.js +4 -6
- package/modern/components/containers/GridRootStyles.js +7 -3
- package/modern/components/containers/GridToolbarContainer.js +1 -1
- package/modern/components/index.js +1 -1
- package/modern/components/panel/GridColumnsPanel.js +1 -2
- package/modern/components/panel/GridPanelContent.js +1 -1
- package/modern/components/panel/GridPanelFooter.js +1 -1
- package/modern/components/panel/GridPanelHeader.js +1 -1
- package/modern/components/panel/filterPanel/GridFilterForm.js +27 -25
- package/modern/components/panel/filterPanel/GridFilterInputBoolean.js +9 -6
- package/modern/components/panel/filterPanel/GridFilterInputDate.js +1 -2
- package/modern/components/panel/filterPanel/GridFilterInputSingleSelect.js +27 -10
- package/modern/components/panel/filterPanel/GridFilterInputValue.js +1 -2
- package/modern/components/panel/filterPanel/GridFilterPanel.js +8 -1
- package/modern/components/virtualization/GridVirtualScroller.js +1 -1
- package/modern/components/virtualization/GridVirtualScrollerContent.js +1 -1
- package/modern/components/virtualization/GridVirtualScrollerRenderZone.js +1 -1
- package/modern/constants/defaultGridSlotsComponents.js +5 -56
- package/modern/hooks/core/useGridLocaleText.js +2 -4
- package/modern/hooks/features/columnHeaders/useGridColumnHeaders.js +17 -26
- package/modern/hooks/features/virtualization/useGridVirtualScroller.js +33 -17
- package/modern/index.js +5 -1
- package/modern/internals/index.js +1 -1
- package/modern/locales/arSD.js +14 -19
- package/modern/locales/csCZ.js +24 -32
- package/modern/locales/esES.js +1 -1
- package/modern/material/components/MUISelectOption.js +16 -0
- package/modern/material/index.js +65 -0
- package/modern/models/gridFilterItem.js +2 -0
- package/modern/models/params/gridRowParams.js +4 -0
- package/node/DataGrid/DataGrid.js +0 -2
- package/node/components/GridColumnHeaders.js +116 -0
- package/node/components/GridRow.js +48 -27
- package/node/components/GridRowCount.js +2 -2
- package/node/components/GridScrollArea.js +2 -2
- package/node/components/GridSelectedRowCount.js +2 -2
- package/node/components/base/GridBody.js +43 -5
- package/node/components/base/GridOverlays.js +3 -3
- package/node/components/cell/GridCell.js +14 -11
- package/node/components/cell/GridEditInputCell.js +1 -2
- package/node/components/cell/GridEditSingleSelectCell.js +5 -6
- package/node/components/columnHeaders/{GridColumnHeaders.js → GridBaseColumnHeaders.js} +14 -18
- package/node/components/columnHeaders/GridColumnHeaderTitle.js +5 -7
- package/node/components/columnHeaders/GridColumnHeadersInner.js +2 -2
- package/node/components/columnHeaders/GridIconButtonContainer.js +2 -2
- package/node/components/containers/GridFooterContainer.js +8 -11
- package/node/components/containers/GridMainContainer.js +2 -2
- package/node/components/containers/GridOverlay.js +5 -7
- package/node/components/containers/GridRootStyles.js +7 -3
- package/node/components/containers/GridToolbarContainer.js +2 -2
- package/node/components/index.js +1 -1
- package/node/components/panel/GridColumnsPanel.js +1 -2
- package/node/components/panel/GridPanelContent.js +2 -2
- package/node/components/panel/GridPanelFooter.js +2 -2
- package/node/components/panel/GridPanelHeader.js +2 -2
- package/node/components/panel/filterPanel/GridFilterForm.js +26 -25
- package/node/components/panel/filterPanel/GridFilterInputBoolean.js +9 -6
- package/node/components/panel/filterPanel/GridFilterInputDate.js +1 -2
- package/node/components/panel/filterPanel/GridFilterInputSingleSelect.js +26 -10
- package/node/components/panel/filterPanel/GridFilterInputValue.js +1 -2
- package/node/components/panel/filterPanel/GridFilterPanel.js +8 -1
- package/node/components/virtualization/GridVirtualScroller.js +2 -2
- package/node/components/virtualization/GridVirtualScrollerContent.js +2 -2
- package/node/components/virtualization/GridVirtualScrollerRenderZone.js +2 -2
- package/node/constants/defaultGridSlotsComponents.js +4 -55
- package/node/hooks/core/useGridLocaleText.js +2 -4
- package/node/hooks/features/columnHeaders/useGridColumnHeaders.js +19 -28
- package/node/hooks/features/virtualization/useGridVirtualScroller.js +32 -15
- package/node/index.js +9 -1
- package/node/internals/index.js +4 -4
- package/node/locales/arSD.js +14 -19
- package/node/locales/csCZ.js +24 -32
- package/node/locales/esES.js +1 -1
- package/node/{components/DataGridColumnHeaders.js → material/components/MUISelectOption.js} +13 -35
- package/node/material/index.js +73 -0
- package/node/models/gridFilterItem.js +2 -0
- package/node/models/params/gridRowParams.js +4 -0
- package/package.json +1 -1
- package/components/DataGridColumnHeaders.d.ts +0 -6
- package/components/DataGridColumnHeaders.js +0 -38
- package/components/columnHeaders/GridColumnHeaders.d.ts +0 -7
- package/legacy/components/DataGridColumnHeaders.js +0 -36
- package/modern/components/DataGridColumnHeaders.js +0 -38
- /package/legacy/{components/columnHeaders → material/icons}/GridColumnUnsortedIcon.js +0 -0
- /package/legacy/{components → material}/icons/index.js +0 -0
- /package/{components/columnHeaders → material/icons}/GridColumnUnsortedIcon.d.ts +0 -0
- /package/{components/columnHeaders → material/icons}/GridColumnUnsortedIcon.js +0 -0
- /package/{components → material}/icons/index.d.ts +0 -0
- /package/{components → material}/icons/index.js +0 -0
- /package/modern/{components/columnHeaders → material/icons}/GridColumnUnsortedIcon.js +0 -0
- /package/modern/{components → material}/icons/index.js +0 -0
- /package/node/{components/columnHeaders → material/icons}/GridColumnUnsortedIcon.js +0 -0
- /package/node/{components → material}/icons/index.js +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,107 @@
|
|
|
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.0.0
|
|
7
|
+
|
|
8
|
+
_Mar 3, 2023_
|
|
9
|
+
|
|
10
|
+
We're happy to announce the first v6 stable release! 🎉🚀
|
|
11
|
+
|
|
12
|
+
This is now the officially supported major version, where we'll keep rolling out new features, bug fixes, and improvements.
|
|
13
|
+
Head over to the [what's new](https://mui.com/x/whats-new/) page to check the highlighted new features.
|
|
14
|
+
|
|
15
|
+
Migration guides are available with a complete list of the breaking changes:
|
|
16
|
+
|
|
17
|
+
- [Data Grid](https://mui.com/x/migration/migration-data-grid-v5/)
|
|
18
|
+
- [Date Pickers](https://mui.com/x/migration/migration-pickers-v5/)
|
|
19
|
+
|
|
20
|
+
We'd like to offer a big thanks to the 12 contributors who made this release possible. Here are some highlights ✨:
|
|
21
|
+
|
|
22
|
+
- 🎁 The row pinning is no longer experimental (#8055) @MBilalShafi
|
|
23
|
+
|
|
24
|
+
You can now use the row pinning without the `experimentalFeatures.rowPinning` flag enabled.
|
|
25
|
+
|
|
26
|
+
```diff
|
|
27
|
+
<DataGridPro
|
|
28
|
+
- experimentalFeatures={{ rowPinning: true }}
|
|
29
|
+
/>
|
|
30
|
+
```
|
|
31
|
+
- ⚡️ Improved grid performance by rows and cells memoization (#7846) @m4theushw
|
|
32
|
+
- ✨ Fields have a distinct visual state when empty (#8069) @LukasTy
|
|
33
|
+
- 🌍 Improve Czech (cs-CZ) locale (#8113) @BlastyCZ
|
|
34
|
+
- 🌍 Improve Arabic (ar-SD) locale (#8100) @atf98
|
|
35
|
+
- 📚 Documentation improvements
|
|
36
|
+
- 🐞 Bugfixes
|
|
37
|
+
|
|
38
|
+
### `@mui/x-data-grid@v6.0.0` / `@mui/x-data-grid-pro@v6.0.0` / `@mui/x-data-grid-premium@v6.0.0`
|
|
39
|
+
|
|
40
|
+
#### Breaking changes
|
|
41
|
+
|
|
42
|
+
- The `componentsProps` and `slotProps` props are now typed for better DX
|
|
43
|
+
- The `cellFocus`, `cellTabIndex` and `editRowsState` props are not passed to the component used in the row slot. You can use the new `focusedCell` and `tabbableCell` props instead. For the editing state, use the API methods.
|
|
44
|
+
The flag `experimentalFeatures.rowPinning` is no longer needed.
|
|
45
|
+
|
|
46
|
+
#### Changes
|
|
47
|
+
|
|
48
|
+
- [DataGrid] Add typing for `componentsProps` (#7968) @MBilalShafi
|
|
49
|
+
- [DataGrid] Allow multiple modules' augmentation (#8098) @MBilalShafi
|
|
50
|
+
- [DataGrid] Extract `BaseInputLabel` slot (#8068) @cherniavskii
|
|
51
|
+
- [DataGrid] Extract `BaseSelectOption` slot (#8072) @cherniavskii
|
|
52
|
+
- [DataGrid] Make possible to memoize rows and cells (#7846) @m4theushw
|
|
53
|
+
- [DataGrid] Register `getLocaleText` synchronously (#8029) @m4theushw
|
|
54
|
+
- [DataGrid] Start extracting material slots to a separate directory (#8004) @cherniavskii
|
|
55
|
+
- [DataGrid] Use `styled` from system (#8032) @siriwatknp
|
|
56
|
+
- [DataGridPro] Improve typing for `getColumnForNewFilter` method (#8043) @MBilalShafi
|
|
57
|
+
- [DataGridPro] Remove row pinning from experimental features (#8055) @MBilalShafi
|
|
58
|
+
- [l10n] Improve Czech (cs-CZ) locale (#8113) @BlastyCZ
|
|
59
|
+
- [l10n] Improve Arabic (ar-SD) locale (#8100) @atf98
|
|
60
|
+
|
|
61
|
+
### `@mui/x-date-pickers@v6.0.0` / `@mui/x-date-pickers-pro@v6.0.0`
|
|
62
|
+
|
|
63
|
+
#### Breaking changes
|
|
64
|
+
|
|
65
|
+
On desktop, `DateTimePicker` shows the am/pm controls in the toolbar instead of the clock by default.
|
|
66
|
+
It can be overridden by specifying `ampmInClock` prop.
|
|
67
|
+
|
|
68
|
+
#### Changes
|
|
69
|
+
|
|
70
|
+
- [DateRangePicker] Generalize the highlight between months (#8079) @alexfauquette
|
|
71
|
+
- [fields] Clean the order of the tokens in the `formatTokenMap` of each adapter (#8112) @flaviendelangle
|
|
72
|
+
- [fields] Implement empty visual state (#8069) @LukasTy
|
|
73
|
+
- [fields] Replace `sectionOrder` state with a memoized variable (#8090) @flaviendelangle
|
|
74
|
+
- [pickers] Add support for UTC on `moment` adapter (#8031) @flaviendelangle
|
|
75
|
+
- [pickers] Document and deprecate `onClose` callback on static pickers (#8021) @LukasTy
|
|
76
|
+
- [pickers] Fix am/pm buttons position and responsiveness (#5149) @alexfauquette
|
|
77
|
+
- [pickers] Fix layout `sx` propagation (#8064) @alexfauquette
|
|
78
|
+
- [pickers] Increase `moment` peer dependency minimum version (#8046) @oliviertassinari
|
|
79
|
+
- [pickers] Remove `WrapperVariantContext` (#8088) @LukasTy
|
|
80
|
+
- [pickers] Stop using `WrapperVariantContext` in `Clock` (#8083) @LukasTy
|
|
81
|
+
|
|
82
|
+
### Docs
|
|
83
|
+
|
|
84
|
+
- [docs] Add `aggregation` experimental flag removal to the migration guide (#8056) @MBilalShafi
|
|
85
|
+
- [docs] Add expansion state behavioral change to v6 migration guide (#8108) @MBilalShafi
|
|
86
|
+
- [docs] Change default date from 4th of April to 17th of April for readability (#8089) @flaviendelangle
|
|
87
|
+
- [docs] Clarify the MIT license restriction for grid pagination (#8045) @arunkp
|
|
88
|
+
- [docs] Fix typo replacing "bellow" by "below" (#8080) @TheBox193
|
|
89
|
+
- [docs] Link `API object` in the `apiRef` sections (#8106) @MBilalShafi
|
|
90
|
+
- [docs] Link to demonstrations in the interfaces API docs (#8028) @cherniavskii
|
|
91
|
+
- [docs] Remove the `@next` tag from installation instructions (#8102) @cherniavskii
|
|
92
|
+
- [docs] Start enforcing consistency in documentation vocabulary (#6871) @alexfauquette
|
|
93
|
+
- [docs] Update accessibility guidelines (#7970) @oliviertassinari
|
|
94
|
+
- [docs] Update the DataGrid demo to leverage the latest features (#7863) @joserodolfofreitas
|
|
95
|
+
- [docs] Update migration guide for stable release (#8092) @joserodolfofreitas
|
|
96
|
+
|
|
97
|
+
### Core
|
|
98
|
+
|
|
99
|
+
- [core] Add modified docs page links in the PR (#7848) @alexfauquette
|
|
100
|
+
- [core] Add test on value timezone (#7867) @alexfauquette
|
|
101
|
+
- [core] Bump monorepo (#8006) @LukasTy
|
|
102
|
+
- [core] Change default branch back to `master` (#8081) @m4theushw
|
|
103
|
+
- [core] Upgrade monorepo (#8115) @MBilalShafi
|
|
104
|
+
- [core] Mention the use of Support key as an alternative to the OrderID (#6968) @joserodolfofreitas
|
|
105
|
+
- [test] Fix flaky tests (#8097) @cherniavskii
|
|
106
|
+
|
|
6
107
|
## 6.0.0-beta.5
|
|
7
108
|
|
|
8
109
|
_Feb 23, 2023_
|
|
@@ -290,17 +391,17 @@ We encourage you to try out this version, packed with improvements, bug fixes, a
|
|
|
290
391
|
|
|
291
392
|
**Data Grid**
|
|
292
393
|
|
|
293
|
-
- [Access to the API Object in the community version](https://
|
|
294
|
-
- [Improved column menu](https://
|
|
295
|
-
- [Cell selection range](https://
|
|
394
|
+
- [Access to the API Object in the community version](https://mui.com/x/react-data-grid/api-object/)
|
|
395
|
+
- [Improved column menu](https://mui.com/x/react-data-grid/column-menu/)
|
|
396
|
+
- [Cell selection range](https://mui.com/x/react-data-grid/cell-selection/) (Premium)
|
|
296
397
|
|
|
297
398
|
**Date and Time pickers**
|
|
298
399
|
|
|
299
|
-
- [Fields: the new default input for pickers](https://
|
|
300
|
-
- [Improved layout customization](https://
|
|
301
|
-
- [Edit date ranges with drag and drop](https://
|
|
400
|
+
- [Fields: the new default input for pickers](https://mui.com/x/react-date-pickers/fields/).
|
|
401
|
+
- [Improved layout customization](https://mui.com/x/react-date-pickers/custom-layout/)
|
|
402
|
+
- [Edit date ranges with drag and drop](https://mui.com/x/react-date-pickers/date-range-calendar/) (Pro)
|
|
302
403
|
|
|
303
|
-
You can check the migration guides for the [Data Grid](https://
|
|
404
|
+
You can check the migration guides for the [Data Grid](https://mui.com/x/migration/migration-data-grid-v5/) and [Date Pickers](https://mui.com/x/migration/migration-pickers-v5/) in the documentation.
|
|
304
405
|
|
|
305
406
|
We'd like to offer a big thanks to the 10 contributors who made this release possible.
|
|
306
407
|
|
|
@@ -447,7 +548,7 @@ We'd like to offer a big thanks to the 10 contributors who made this release pos
|
|
|
447
548
|
// Same for all the other pickers with an `Unstable_` prefix
|
|
448
549
|
```
|
|
449
550
|
|
|
450
|
-
If you were still using the legacy picker (`DatePicker`, `DesktopDatePicker`, ...), please take a look at our [migration guide](https://
|
|
551
|
+
If you were still using the legacy picker (`DatePicker`, `DesktopDatePicker`, ...), please take a look at our [migration guide](https://mui.com/x/migration/migration-pickers-v5/#picker-components) for detailed explanations on how to start using the new ones.
|
|
451
552
|
|
|
452
553
|
- The fields components are no longer unstable
|
|
453
554
|
|
|
@@ -878,7 +979,7 @@ We'd like to offer a big thanks to the 6 contributors who made this release poss
|
|
|
878
979
|
return <DataGrid apiRef={apiRef} {...other} />;
|
|
879
980
|
```
|
|
880
981
|
|
|
881
|
-
See [the documentation](https://
|
|
982
|
+
See [the documentation](https://mui.com/x/react-data-grid/api-object/) for more information.
|
|
882
983
|
|
|
883
984
|
- 🎁 The `DataGridPremium` now supports cell selection:
|
|
884
985
|
|
|
@@ -886,7 +987,7 @@ We'd like to offer a big thanks to the 6 contributors who made this release poss
|
|
|
886
987
|
<DataGridPremium unstable_cellSelection />
|
|
887
988
|
```
|
|
888
989
|
|
|
889
|
-
See [the documentation](https://
|
|
990
|
+
See [the documentation](https://mui.com/x/react-data-grid/selection/#cell-selection) for more information
|
|
890
991
|
|
|
891
992
|
- 🌍 Support the Right To Left orientation on the fields components
|
|
892
993
|
- 📚 Documentation improvements
|
|
@@ -1147,7 +1248,7 @@ _Nov 24, 2022_
|
|
|
1147
1248
|
|
|
1148
1249
|
We'd like to offer a big thanks to the 14 contributors who made this release possible. Here are some highlights ✨:
|
|
1149
1250
|
|
|
1150
|
-
- 🎁 Introduce the v6 pickers, built on top of the field components [DatePicker](https://
|
|
1251
|
+
- 🎁 Introduce the v6 pickers, built on top of the field components [DatePicker](https://mui.com/x/react-date-pickers/date-picker/), [TimePicker](https://mui.com/x/react-date-pickers/time-picker/), [DateTimePicker](https://mui.com/x/react-date-pickers/date-time-picker/), [DateRangePicker](https://mui.com/x/react-date-pickers/date-range-picker/).
|
|
1151
1252
|
|
|
1152
1253
|
The old (legacy) components will be removed at the end of the v6 beta.
|
|
1153
1254
|
|
|
@@ -1518,7 +1619,7 @@ We'd like to offer a big thanks to the 9 contributors who made this release poss
|
|
|
1518
1619
|
The renamed props are the following:
|
|
1519
1620
|
|
|
1520
1621
|
| Old name | New name |
|
|
1521
|
-
|
|
|
1622
|
+
| :------------------------- | :---------------------------- |
|
|
1522
1623
|
| `selectionModel` | `rowSelectionModel` |
|
|
1523
1624
|
| `onSelectionModelChange` | `onRowSelectionModelChange` |
|
|
1524
1625
|
| `disableSelectionOnClick` | `disableRowSelectionOnClick` |
|
|
@@ -1637,20 +1738,20 @@ _Oct 13, 2022_
|
|
|
1637
1738
|
We'd like to offer a big thanks to the 8 contributors who made this release possible. Here are some highlights ✨:
|
|
1638
1739
|
|
|
1639
1740
|
- ⌚️ New components to edit date and time with <kbd>keyboard</kbd>—without using any modal or dropdown UI.
|
|
1640
|
-
Please check out our [documentation](https://
|
|
1741
|
+
Please check out our [documentation](https://mui.com/x/react-date-pickers/fields/) to discover those new components.
|
|
1641
1742
|
|
|
1642
|
-
- [`DateField`](https://
|
|
1643
|
-
- [`TimeField`](https://
|
|
1644
|
-
- [`DateTimeField`](https://
|
|
1645
|
-
- [`MultiInputDateRangeField` / `SingleInputDateRangeField`](https://
|
|
1646
|
-
- [`MultiInputTimeRangeField`](https://
|
|
1647
|
-
- [`MultiInputDateTimeRangeField`](https://
|
|
1743
|
+
- [`DateField`](https://mui.com/x/react-date-pickers/date-field/) to edit date
|
|
1744
|
+
- [`TimeField`](https://mui.com/x/react-date-pickers/time-field/) to edit time
|
|
1745
|
+
- [`DateTimeField`](https://mui.com/x/react-date-pickers/date-time-field/) to edit date and time
|
|
1746
|
+
- [`MultiInputDateRangeField` / `SingleInputDateRangeField`](https://mui.com/x/react-date-pickers/date-range-field/) to edit date range
|
|
1747
|
+
- [`MultiInputTimeRangeField`](https://mui.com/x/react-date-pickers/time-range-field/) to edit time range with two inputs
|
|
1748
|
+
- [`MultiInputDateTimeRangeField`](https://mui.com/x/react-date-pickers/date-time-range-field/) to edit date and time range with two inputs
|
|
1648
1749
|
|
|
1649
1750
|
⚠️ These components are unstable.
|
|
1650
1751
|
They might receive breaking changes on their props to have the best components possible by the time of the stable release.
|
|
1651
1752
|
|
|
1652
1753
|
- 📝 Allow to limit to one filter per column for `DataGridPro` and `DataGridPremium` (#6333) @MBilalShafi
|
|
1653
|
-
- 📚 New [page describing the validation props on each picker](https://
|
|
1754
|
+
- 📚 New [page describing the validation props on each picker](https://mui.com/x/react-date-pickers/validation/) (#6064) @flaviendelangle
|
|
1654
1755
|
- 📚 Documentation improvements
|
|
1655
1756
|
- 🐞 Bugfixes
|
|
1656
1757
|
|
|
@@ -1671,14 +1772,14 @@ We'd like to offer a big thanks to the 8 contributors who made this release poss
|
|
|
1671
1772
|
For users that didn't migrate to the new editing API in v5, additional work may be needed because the new API is not equivalent to the legacy API. Although, some migration steps are available to help in this task.
|
|
1672
1773
|
|
|
1673
1774
|
- The `editCellPropsChange` event was removed. If you still need it please file a new issue so we can propose an alternative.
|
|
1674
|
-
- The `cellEditCommit` event was removed and the `processRowUpdate` prop can be used in place. More information, check the [docs](https://
|
|
1675
|
-
- The `editRowsModel` and `onEditRowsModelChange` props were removed. The [`cellModesModel`](https://
|
|
1775
|
+
- The `cellEditCommit` event was removed and the `processRowUpdate` prop can be used in place. More information, check the [docs](https://mui.com/x/react-data-grid/editing/#persistence) section about the topic.
|
|
1776
|
+
- The `editRowsModel` and `onEditRowsModelChange` props were removed. The [`cellModesModel`](https://mui.com/x/react-data-grid/editing/#controlled-mode) or [`rowModesModel`](https://mui.com/x/react-data-grid/editing/#controlled-mode) props can be used to achieve the same goal.
|
|
1676
1777
|
- The following API methods were removed:
|
|
1677
1778
|
- Use `apiRef.current.stopCellEditMode` to replace `apiRef.current.commitCellChange`
|
|
1678
1779
|
- Use `apiRef.current.startCellEditMode` to replace `apiRef.current.setCellMode(id, field, 'edit')`
|
|
1679
1780
|
- Use `apiRef.current.stopRowEditMode` to replace `apiRef.current.commitRowChange`
|
|
1680
1781
|
- Use `apiRef.current.startRowMode` to replace `apiRef.current.setRowMode(id, 'edit')`
|
|
1681
|
-
- Use the [`cellModesModel`](https://
|
|
1782
|
+
- Use the [`cellModesModel`](https://mui.com/x/react-data-grid/editing/#controlled-mode) or [`rowModesModel`](https://mui.com/x/react-data-grid/editing/#controlled-mode) props to replace `apiRef.current.setEditRowsModel`
|
|
1682
1783
|
|
|
1683
1784
|
#### Changes
|
|
1684
1785
|
|
|
@@ -2079,7 +2180,7 @@ We'd like to offer a big thanks to the 12 contributors who made this release pos
|
|
|
2079
2180
|
/>
|
|
2080
2181
|
```
|
|
2081
2182
|
|
|
2082
|
-
You can find more information about this new API on our [documentation](https://
|
|
2183
|
+
You can find more information about this new API on our [documentation](https://mui.com/x/react-data-grid/column-visibility/).
|
|
2083
2184
|
|
|
2084
2185
|
- The `GridEvents` enum is now a TypeScript type.
|
|
2085
2186
|
|
|
@@ -2105,7 +2206,7 @@ We'd like to offer a big thanks to the 12 contributors who made this release pos
|
|
|
2105
2206
|
You can now use the `localText` prop available on all picker components:
|
|
2106
2207
|
|
|
2107
2208
|
| Removed prop | Property in the new `localText` prop |
|
|
2108
|
-
|
|
|
2209
|
+
| :--------------------------- | :-------------------------------------------------------------------------------- |
|
|
2109
2210
|
| `endText` | `end` |
|
|
2110
2211
|
| `getClockLabelText` | `clockLabelText` |
|
|
2111
2212
|
| `getHoursClockNumberText` | `hoursClockNumberText` |
|
|
@@ -2129,7 +2230,7 @@ We'd like to offer a big thanks to the 12 contributors who made this release pos
|
|
|
2129
2230
|
/>
|
|
2130
2231
|
```
|
|
2131
2232
|
|
|
2132
|
-
You can find more information about the new api, including how to set those translations on all your components at once in the [documentation](https://
|
|
2233
|
+
You can find more information about the new api, including how to set those translations on all your components at once in the [documentation](https://mui.com/x/react-date-pickers/localization/)
|
|
2133
2234
|
|
|
2134
2235
|
- The deprecated `locale` prop of the `LocalizationProvider` component have been renamed `adapterLocale`:
|
|
2135
2236
|
|
|
@@ -2728,7 +2829,7 @@ We'd like to offer a big thanks to the 5 contributors who made this release poss
|
|
|
2728
2829
|
|
|
2729
2830
|
- [CalendarPicker] Don't move to closest enabled date when `props.date` contains a disabled date (#6537) @flaviendelangle
|
|
2730
2831
|
- [DateRangePicker] Fix calendar day outside of month layout shifting on hover (pick #6448) (#6538) @alexfauquette
|
|
2731
|
-
- [pickers] Fix
|
|
2832
|
+
- [pickers] Fix Typescript issues (#6510) @flaviendelangle
|
|
2732
2833
|
|
|
2733
2834
|
### Docs
|
|
2734
2835
|
|
|
@@ -2874,7 +2975,7 @@ We'd like to offer a big thanks to the 6 contributors who made this release poss
|
|
|
2874
2975
|
|
|
2875
2976
|
### Core
|
|
2876
2977
|
|
|
2877
|
-
- [core] Update to
|
|
2978
|
+
- [core] Update to Typescript 4.8.3 (#6136) @flaviendelangle
|
|
2878
2979
|
- [core] Update RFC template (#6100) @bytasv
|
|
2879
2980
|
|
|
2880
2981
|
## 5.17.2
|
|
@@ -4190,7 +4291,7 @@ We'd like to offer a big thanks to the 15 contributors who made this release pos
|
|
|
4190
4291
|
Here are the new names and the modifications needed to get the same information with the new selectors.
|
|
4191
4292
|
|
|
4192
4293
|
| Old name | New name |
|
|
4193
|
-
|
|
|
4294
|
+
| :------------------------------ | :---------------------------------------- |
|
|
4194
4295
|
| `allGridColumnsFieldsSelector` | `gridColumnFieldsSelector` |
|
|
4195
4296
|
| `allGridColumnsSelector` | `gridColumnDefinitionsSelector` |
|
|
4196
4297
|
| `visibleGridColumnsSelector` | `gridVisibleColumnDefinitionsSelector` |
|
package/DataGrid/DataGrid.js
CHANGED
|
@@ -6,7 +6,6 @@ import { GridContextProvider } from '../context/GridContextProvider';
|
|
|
6
6
|
import { useDataGridComponent } from './useDataGridComponent';
|
|
7
7
|
import { useDataGridProps } from './useDataGridProps';
|
|
8
8
|
import { DataGridVirtualScroller } from '../components/DataGridVirtualScroller';
|
|
9
|
-
import { DataGridColumnHeaders } from '../components/DataGridColumnHeaders';
|
|
10
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
10
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
11
|
const DataGridRaw = /*#__PURE__*/React.forwardRef(function DataGrid(inProps, ref) {
|
|
@@ -21,7 +20,6 @@ const DataGridRaw = /*#__PURE__*/React.forwardRef(function DataGrid(inProps, ref
|
|
|
21
20
|
sx: props.sx,
|
|
22
21
|
ref: ref,
|
|
23
22
|
children: [/*#__PURE__*/_jsx(GridHeader, {}), /*#__PURE__*/_jsx(GridBody, {
|
|
24
|
-
ColumnHeadersComponent: DataGridColumnHeaders,
|
|
25
23
|
VirtualScrollerComponent: DataGridVirtualScroller
|
|
26
24
|
}), /*#__PURE__*/_jsx(GridFooterPlaceholder, {})]
|
|
27
25
|
})
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { UseGridColumnHeadersProps } from '../hooks/features/columnHeaders/useGridColumnHeaders';
|
|
3
|
+
interface GridColumnHeadersProps extends React.HTMLAttributes<HTMLDivElement>, Omit<UseGridColumnHeadersProps, 'innerRef'> {
|
|
4
|
+
innerRef?: React.Ref<HTMLDivElement>;
|
|
5
|
+
}
|
|
6
|
+
declare const GridColumnHeaders: React.ForwardRefExoticComponent<GridColumnHeadersProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
export { GridColumnHeaders };
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
|
+
const _excluded = ["innerRef", "className", "visibleColumns", "sortColumnLookup", "filterColumnLookup", "columnPositions", "columnHeaderTabIndexState", "columnGroupHeaderTabIndexState", "columnHeaderFocus", "columnGroupHeaderFocus", "densityFactor", "headerGroupingMaxDepth", "columnMenuState", "columnVisibility", "columnGroupsHeaderStructure", "hasOtherElementInTabSequence"];
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import PropTypes from 'prop-types';
|
|
6
|
+
import { useGridColumnHeaders } from '../hooks/features/columnHeaders/useGridColumnHeaders';
|
|
7
|
+
import { GridScrollArea } from './GridScrollArea';
|
|
8
|
+
import { GridBaseColumnHeaders } from './columnHeaders/GridBaseColumnHeaders';
|
|
9
|
+
import { GridColumnHeadersInner } from './columnHeaders/GridColumnHeadersInner';
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
+
const GridColumnHeaders = /*#__PURE__*/React.forwardRef(function GridColumnsHeaders(props, ref) {
|
|
13
|
+
const {
|
|
14
|
+
innerRef,
|
|
15
|
+
visibleColumns,
|
|
16
|
+
sortColumnLookup,
|
|
17
|
+
filterColumnLookup,
|
|
18
|
+
columnPositions,
|
|
19
|
+
columnHeaderTabIndexState,
|
|
20
|
+
columnGroupHeaderTabIndexState,
|
|
21
|
+
columnHeaderFocus,
|
|
22
|
+
columnGroupHeaderFocus,
|
|
23
|
+
densityFactor,
|
|
24
|
+
headerGroupingMaxDepth,
|
|
25
|
+
columnMenuState,
|
|
26
|
+
columnVisibility,
|
|
27
|
+
columnGroupsHeaderStructure,
|
|
28
|
+
hasOtherElementInTabSequence
|
|
29
|
+
} = props,
|
|
30
|
+
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
31
|
+
const {
|
|
32
|
+
isDragging,
|
|
33
|
+
getRootProps,
|
|
34
|
+
getInnerProps,
|
|
35
|
+
getColumnHeaders,
|
|
36
|
+
getColumnGroupHeaders
|
|
37
|
+
} = useGridColumnHeaders({
|
|
38
|
+
innerRef,
|
|
39
|
+
visibleColumns,
|
|
40
|
+
sortColumnLookup,
|
|
41
|
+
filterColumnLookup,
|
|
42
|
+
columnPositions,
|
|
43
|
+
columnHeaderTabIndexState,
|
|
44
|
+
columnGroupHeaderTabIndexState,
|
|
45
|
+
columnHeaderFocus,
|
|
46
|
+
columnGroupHeaderFocus,
|
|
47
|
+
densityFactor,
|
|
48
|
+
headerGroupingMaxDepth,
|
|
49
|
+
columnMenuState,
|
|
50
|
+
columnVisibility,
|
|
51
|
+
columnGroupsHeaderStructure,
|
|
52
|
+
hasOtherElementInTabSequence
|
|
53
|
+
});
|
|
54
|
+
return /*#__PURE__*/_jsxs(GridBaseColumnHeaders, _extends({
|
|
55
|
+
ref: ref
|
|
56
|
+
}, getRootProps(other), {
|
|
57
|
+
children: [/*#__PURE__*/_jsx(GridScrollArea, {
|
|
58
|
+
scrollDirection: "left"
|
|
59
|
+
}), /*#__PURE__*/_jsxs(GridColumnHeadersInner, _extends({
|
|
60
|
+
isDragging: isDragging
|
|
61
|
+
}, getInnerProps(), {
|
|
62
|
+
children: [getColumnGroupHeaders(), getColumnHeaders()]
|
|
63
|
+
})), /*#__PURE__*/_jsx(GridScrollArea, {
|
|
64
|
+
scrollDirection: "right"
|
|
65
|
+
})]
|
|
66
|
+
}));
|
|
67
|
+
});
|
|
68
|
+
process.env.NODE_ENV !== "production" ? GridColumnHeaders.propTypes = {
|
|
69
|
+
// ----------------------------- Warning --------------------------------
|
|
70
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
71
|
+
// | To update them edit the TypeScript types and run "yarn proptypes" |
|
|
72
|
+
// ----------------------------------------------------------------------
|
|
73
|
+
columnGroupHeaderFocus: PropTypes.shape({
|
|
74
|
+
depth: PropTypes.number.isRequired,
|
|
75
|
+
field: PropTypes.string.isRequired
|
|
76
|
+
}),
|
|
77
|
+
columnGroupHeaderTabIndexState: PropTypes.shape({
|
|
78
|
+
depth: PropTypes.number.isRequired,
|
|
79
|
+
field: PropTypes.string.isRequired
|
|
80
|
+
}),
|
|
81
|
+
columnGroupsHeaderStructure: PropTypes.arrayOf(PropTypes.arrayOf(PropTypes.shape({
|
|
82
|
+
columnFields: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
83
|
+
groupId: PropTypes.string
|
|
84
|
+
}))).isRequired,
|
|
85
|
+
columnHeaderFocus: PropTypes.shape({
|
|
86
|
+
field: PropTypes.string.isRequired
|
|
87
|
+
}),
|
|
88
|
+
columnHeaderTabIndexState: PropTypes.shape({
|
|
89
|
+
field: PropTypes.string.isRequired
|
|
90
|
+
}),
|
|
91
|
+
columnMenuState: PropTypes.shape({
|
|
92
|
+
field: PropTypes.string,
|
|
93
|
+
open: PropTypes.bool.isRequired
|
|
94
|
+
}).isRequired,
|
|
95
|
+
columnPositions: PropTypes.arrayOf(PropTypes.number).isRequired,
|
|
96
|
+
columnVisibility: PropTypes.object.isRequired,
|
|
97
|
+
densityFactor: PropTypes.number.isRequired,
|
|
98
|
+
filterColumnLookup: PropTypes.object.isRequired,
|
|
99
|
+
hasOtherElementInTabSequence: PropTypes.bool.isRequired,
|
|
100
|
+
headerGroupingMaxDepth: PropTypes.number.isRequired,
|
|
101
|
+
innerRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
|
|
102
|
+
current: PropTypes.object
|
|
103
|
+
})]),
|
|
104
|
+
minColumnIndex: PropTypes.number,
|
|
105
|
+
sortColumnLookup: PropTypes.object.isRequired,
|
|
106
|
+
visibleColumns: PropTypes.arrayOf(PropTypes.object).isRequired
|
|
107
|
+
} : void 0;
|
|
108
|
+
export { GridColumnHeaders };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
declare const GridFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
3
|
-
sx?: import("@mui/system").SxProps<import("@mui/
|
|
3
|
+
sx?: import("@mui/system").SxProps<import("@mui/system").Theme> | undefined;
|
|
4
4
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export { GridFooter };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
declare const GridLoadingOverlay: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
3
|
-
sx?: import("@mui/system").SxProps<import("@mui/
|
|
3
|
+
sx?: import("@mui/system").SxProps<import("@mui/system").Theme> | undefined;
|
|
4
4
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export { GridLoadingOverlay };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
export declare const GridNoResultsOverlay: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
3
|
-
sx?: import("@mui/system").SxProps<import("@mui/
|
|
3
|
+
sx?: import("@mui/system").SxProps<import("@mui/system").Theme> | undefined;
|
|
4
4
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
declare const GridNoRowsOverlay: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
3
|
-
sx?: import("@mui/system").SxProps<import("@mui/
|
|
3
|
+
sx?: import("@mui/system").SxProps<import("@mui/system").Theme> | undefined;
|
|
4
4
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export { GridNoRowsOverlay };
|
package/components/GridRow.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { GridRowId, GridRowModel } from '../models/gridRows';
|
|
3
|
-
import { GridEditingState } from '../models/gridEditRowModel';
|
|
4
3
|
import { GridStateColDef } from '../models/colDef/gridColDef';
|
|
5
|
-
|
|
6
|
-
export interface GridRowProps {
|
|
4
|
+
export interface GridRowProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
7
5
|
rowId: GridRowId;
|
|
8
6
|
selected: boolean;
|
|
9
7
|
/**
|
|
@@ -17,16 +15,24 @@ export interface GridRowProps {
|
|
|
17
15
|
lastColumnToRender: number;
|
|
18
16
|
visibleColumns: GridStateColDef[];
|
|
19
17
|
renderedColumns: GridStateColDef[];
|
|
20
|
-
cellFocus: GridCellCoordinates | null;
|
|
21
|
-
cellTabIndex: GridCellCoordinates | null;
|
|
22
|
-
editRowsState: GridEditingState;
|
|
23
18
|
position: 'left' | 'center' | 'right';
|
|
19
|
+
/**
|
|
20
|
+
* Determines which cell has focus.
|
|
21
|
+
* If `null`, no cell in this row has focus.
|
|
22
|
+
*/
|
|
23
|
+
focusedCell: string | null;
|
|
24
|
+
/**
|
|
25
|
+
* Determines which cell should be tabbable by having tabIndex=0.
|
|
26
|
+
* If `null`, no cell in this row is in the tab sequence.
|
|
27
|
+
*/
|
|
28
|
+
tabbableCell: string | null;
|
|
24
29
|
row?: GridRowModel;
|
|
25
30
|
isLastVisible?: boolean;
|
|
26
31
|
onClick?: React.MouseEventHandler<HTMLDivElement>;
|
|
27
32
|
onDoubleClick?: React.MouseEventHandler<HTMLDivElement>;
|
|
28
33
|
onMouseEnter?: React.MouseEventHandler<HTMLDivElement>;
|
|
29
34
|
onMouseLeave?: React.MouseEventHandler<HTMLDivElement>;
|
|
35
|
+
[x: string]: any;
|
|
30
36
|
}
|
|
31
|
-
declare const GridRow: React.ForwardRefExoticComponent<
|
|
37
|
+
declare const GridRow: React.ForwardRefExoticComponent<Omit<GridRowProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
32
38
|
export { GridRow };
|