@mui/x-data-grid 5.0.0-beta.6 → 5.0.0-beta.7
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 +80 -7
- package/LICENSE +1 -1
- package/data-grid.d.ts +1106 -194
- package/index-cjs.js +2 -2
- package/index-esm.js +2 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,79 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 5.0.0-beta.7
|
|
7
|
+
|
|
8
|
+
_Nov 4, 2021_
|
|
9
|
+
|
|
10
|
+
- 💅 Reduce styles specificity to make simpler to override (#3012) @DanailH
|
|
11
|
+
- 🌍 Add Hebrew (heIL) locale (#3028) @ColdAtNight
|
|
12
|
+
- 📚 Documentation improvements
|
|
13
|
+
- 🐞 Bugfixes
|
|
14
|
+
|
|
15
|
+
### `@mui/x-data-grid@v5.0.0-beta.7` / `@mui/x-data-grid-pro@v5.0.0-beta.7`
|
|
16
|
+
|
|
17
|
+
#### Breaking changes
|
|
18
|
+
|
|
19
|
+
- [core] Prefix selectors from `useGridContainerProps` with `unsafe` (#3002) @flaviendelangle
|
|
20
|
+
|
|
21
|
+
The dimension API is being temporarily made private to allow to clean it in future minor releases. The current approach causes useless re-renders.
|
|
22
|
+
If you relay on any of these selectors, open an issue explaining the use case so that will be taken into account when refactoring them.
|
|
23
|
+
|
|
24
|
+
The following selectors were prefixed by `unstable_`. Use the provided alternatives.
|
|
25
|
+
|
|
26
|
+
1. `gridContainerSizesSelector` was renamed to `unstable_gridContainerSizesSelector`
|
|
27
|
+
2. `gridViewportSizesSelector` was renamed to `unstable_gridViewportSizesSelector`
|
|
28
|
+
3. `gridScrollBarSizeSelector` was renamed to `unstable_gridScrollBarSizeSelector`
|
|
29
|
+
|
|
30
|
+
The following selectors were removed. You can hard-code their logic in your application if you really need them.
|
|
31
|
+
|
|
32
|
+
1. `gridDataContainerSizesSelector`
|
|
33
|
+
|
|
34
|
+
```ts
|
|
35
|
+
const dataContainerSizes = gridContainerSizesSelector(state)?.dataContainerSizes ?? null;
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
2. `gridDataContainerHeightSelector`
|
|
39
|
+
|
|
40
|
+
```ts
|
|
41
|
+
const dataContainerHeight = gridContainerSizesSelector(state)?.dataContainerSizes.height ?? null;
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
The selector `gridViewportSizeStateSelector` was a duplicate and has been removed, you can use the selector `unstable_gridViewportSizesSelector` instead.
|
|
45
|
+
|
|
46
|
+
#### Changes
|
|
47
|
+
|
|
48
|
+
- [DataGrid] Add Hebrew (heIL) locale (#3028) @ColdAtNight
|
|
49
|
+
- [DataGrid] Move virtualization logic to hook (#3079) @m4theushw
|
|
50
|
+
- [DataGrid] Revert year change in the MIT license (#3059) @oliviertassinari
|
|
51
|
+
- [DataGrid] Fix filtering of nullish numeric cells (#3070) @flaviendelangle
|
|
52
|
+
- [DataGrid] Improve performance when selecting 100k rows (#3077) @m4theushw
|
|
53
|
+
- [DataGrid] Fix `GridEditDateCell` to handle timezone correctly (#2918) @flaviendelangle
|
|
54
|
+
- [DataGrid] Fix keyboard navigation on page > 0 (#3074) @flaviendelangle
|
|
55
|
+
- [DataGrid] Prevents bubbling in menu header (#3000) @alexfauquette
|
|
56
|
+
- [DataGrid] Fix wrong params provided to `cellModeChange` when `setCellMode` is called (#3025) @flaviendelangle
|
|
57
|
+
|
|
58
|
+
### Core
|
|
59
|
+
|
|
60
|
+
- [core] Adapt `useDemoData` for Tree Data (#2978) @flaviendelangle
|
|
61
|
+
- [core] Group update of MUI Core (#3055) @oliviertassinari
|
|
62
|
+
- [core] Ignore `*.tsbuildinfo` files (#3068) @m4theushw
|
|
63
|
+
- [core] Implement tree-based row management (#2996) @flaviendelangle
|
|
64
|
+
- [core] Invert Codesandbox examples on README (#3073) @flaviendelangle
|
|
65
|
+
- [core] Prefix selectors from `useGridContainerProps` with `unsafe` (#3002) @flaviendelangle
|
|
66
|
+
- [core] Reduce `setGridState` and `applyFilters` call when updating `filterModel` (#3023) @flaviendelangle
|
|
67
|
+
- [core] Reduce styles complexity (#3012) @DanailH
|
|
68
|
+
- [core] Upgrade monorepo (#3067) @m4theushw
|
|
69
|
+
- [core] Use official MUI repo as monorepo (#3084) @m4theushw
|
|
70
|
+
- [test] Retry each expect until success (#3027) @m4theushw
|
|
71
|
+
- [core] Adapt changelog script to new GitHub DOM (#3087) @alexfauquette
|
|
72
|
+
|
|
73
|
+
### Docs
|
|
74
|
+
|
|
75
|
+
- [docs] Explain how to use `valueGetter` to transform type (#3003) @alexfauquette
|
|
76
|
+
- [docs] Fix the outdated demo of the docs (#3058) @oliviertassinari
|
|
77
|
+
- [docs] Fix inline previews #3081) @DanailH
|
|
78
|
+
|
|
6
79
|
## 5.0.0-beta.6
|
|
7
80
|
|
|
8
81
|
_Oct 29, 2021_
|
|
@@ -44,9 +117,9 @@ A big thanks to the 7 contributors who made this release possible. Here are some
|
|
|
44
117
|
4. `visibleSortedGridRowIdsSelector` was renamed to `gridVisibleSortedRowIdsSelector`
|
|
45
118
|
5. `visibleGridRowCountSelector` was renamed to `gridVisibleRowCountSelector`
|
|
46
119
|
6. `filterGridColumnLookupSelector` was renamed to `gridFilterActiveItemsSelector`
|
|
47
|
-
|
|
120
|
+
|
|
48
121
|
- [DataGridPro] The `sortedGridRowsSelector` was renamed to `gridSortedRowEntriesSelector` (#2942) @flaviendelangle
|
|
49
|
-
|
|
122
|
+
|
|
50
123
|
The return value was also changed as below:
|
|
51
124
|
|
|
52
125
|
```diff
|
|
@@ -57,7 +130,7 @@ A big thanks to the 7 contributors who made this release possible. Here are some
|
|
|
57
130
|
```
|
|
58
131
|
|
|
59
132
|
- [DataGridPro] The `visibleSortedGridRowsSelector` was replaced with `gridVisibleSortedRowEntriesSelector` (#2942) @flaviendelangle
|
|
60
|
-
|
|
133
|
+
|
|
61
134
|
The return value was also changed as below:
|
|
62
135
|
|
|
63
136
|
```diff
|
|
@@ -68,7 +141,7 @@ A big thanks to the 7 contributors who made this release possible. Here are some
|
|
|
68
141
|
```
|
|
69
142
|
|
|
70
143
|
- [DataGridPro] The `visibleSortedGridRowsAsArraySelector` was replaced with `gridVisibleSortedRowEntriesSelector` (#2942) @flaviendelangle
|
|
71
|
-
|
|
144
|
+
|
|
72
145
|
The return value was also changed as below:
|
|
73
146
|
|
|
74
147
|
```diff
|
|
@@ -193,7 +266,7 @@ A big thanks to the 5 contributors who made this release possible. Here are some
|
|
|
193
266
|
const prevRenderContext = React.useRef(null);
|
|
194
267
|
|
|
195
268
|
React.useEffect(() => {
|
|
196
|
-
return apiRef.current.subscribeEvent(
|
|
269
|
+
return apiRef.current.subscribeEvent('rowsScroll', ({ renderContext }) => {
|
|
197
270
|
if (
|
|
198
271
|
!prevRenderContext.current ||
|
|
199
272
|
renderContext.firstRowIdx !== prevRenderContext.current.firstRowIndex ||
|
|
@@ -202,13 +275,13 @@ A big thanks to the 5 contributors who made this release possible. Here are some
|
|
|
202
275
|
prevRenderContext.current = renderContext;
|
|
203
276
|
const params = {
|
|
204
277
|
firstRowIndex: renderContext.firstRowIndex,
|
|
205
|
-
lastRowIndex: renderContext.lastRowIndex
|
|
278
|
+
lastRowIndex: renderContext.lastRowIndex,
|
|
206
279
|
};
|
|
207
280
|
}
|
|
208
281
|
});
|
|
209
282
|
}, [apiRef]);
|
|
210
283
|
|
|
211
|
-
<DataGridPro apiRef={apiRef}
|
|
284
|
+
<DataGridPro apiRef={apiRef} />;
|
|
212
285
|
```
|
|
213
286
|
|
|
214
287
|
#### Changes
|
package/LICENSE
CHANGED