@mui/x-data-grid-pro 8.5.3 → 8.7.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 +210 -0
- package/DataGridPro/DataGridPro.js +1 -1
- package/components/headerFiltering/GridHeaderFilterCell.js +1 -0
- package/components/headerFiltering/GridHeaderFilterMenu.js +0 -9
- package/esm/DataGridPro/DataGridPro.js +1 -1
- package/esm/components/headerFiltering/GridHeaderFilterCell.js +2 -0
- package/esm/components/headerFiltering/GridHeaderFilterMenu.js +0 -9
- package/esm/hooks/features/columnPinning/useGridColumnPinning.js +2 -0
- package/esm/hooks/features/columnReorder/useGridColumnReorder.js +2 -0
- package/esm/hooks/features/dataSource/index.d.ts +1 -0
- package/esm/hooks/features/dataSource/index.js +1 -0
- package/esm/hooks/features/dataSource/useGridDataSourceBasePro.js +2 -0
- package/esm/hooks/features/dataSource/useGridDataSourcePro.js +2 -0
- package/esm/hooks/features/detailPanel/useGridDetailPanel.js +2 -0
- package/esm/hooks/features/index.d.ts +1 -1
- package/esm/hooks/features/index.js +1 -1
- package/esm/hooks/features/rowPinning/useGridRowPinning.js +2 -0
- package/esm/hooks/features/rowReorder/useGridRowReorder.js +2 -0
- package/esm/hooks/features/serverSideLazyLoader/useGridDataSourceLazyLoader.js +4 -2
- package/esm/hooks/features/serverSideLazyLoader/useGridInfiniteLoadingIntersection.js +2 -0
- package/esm/hooks/features/serverSideTreeData/useGridDataSourceTreeDataPreProcessors.js +2 -0
- package/esm/hooks/features/treeData/useGridTreeDataPreProcessors.js +2 -0
- package/esm/index.js +1 -1
- package/esm/internals/index.d.ts +3 -0
- package/esm/internals/index.js +3 -2
- package/hooks/features/columnPinning/useGridColumnPinning.js +1 -0
- package/hooks/features/columnReorder/useGridColumnReorder.js +1 -0
- package/hooks/features/dataSource/index.d.ts +1 -0
- package/hooks/features/dataSource/index.js +5 -0
- package/hooks/features/dataSource/useGridDataSourceBasePro.js +1 -0
- package/hooks/features/dataSource/useGridDataSourcePro.js +1 -0
- package/hooks/features/detailPanel/useGridDetailPanel.js +1 -0
- package/hooks/features/index.d.ts +1 -1
- package/hooks/features/index.js +11 -0
- package/hooks/features/rowPinning/useGridRowPinning.js +1 -0
- package/hooks/features/rowReorder/useGridRowReorder.js +1 -0
- package/hooks/features/serverSideLazyLoader/useGridDataSourceLazyLoader.js +3 -2
- package/hooks/features/serverSideLazyLoader/useGridInfiniteLoadingIntersection.js +1 -0
- package/hooks/features/serverSideTreeData/useGridDataSourceTreeDataPreProcessors.js +1 -0
- package/hooks/features/treeData/useGridTreeDataPreProcessors.js +1 -0
- package/index.js +1 -1
- package/internals/index.d.ts +3 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,216 @@
|
|
|
5
5
|
All notable changes to this project will be documented in this file.
|
|
6
6
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
7
7
|
|
|
8
|
+
## 8.7.0
|
|
9
|
+
|
|
10
|
+
_Jul 4, 2025_
|
|
11
|
+
|
|
12
|
+
We'd like to extend a big thank you to the 15 contributors who made this release possible. Here are some highlights ✨:
|
|
13
|
+
|
|
14
|
+
- 📊 Add `useChartProApiRef` for easier access to the API
|
|
15
|
+
- 📆 Support different start and end `referenceDate` props on range components
|
|
16
|
+
- 📚 Documentation improvements
|
|
17
|
+
- 🐞 Bugfixes
|
|
18
|
+
- 🌎 Improve Greek (el-GR) translations on the Charts
|
|
19
|
+
- 🌎 Improve Danish (da-DK) locale on the Data Grid
|
|
20
|
+
|
|
21
|
+
Special thanks go out to the community members for their valuable contributions:
|
|
22
|
+
@ShahrazH, @vadimkuragkovskiy, @whythecode
|
|
23
|
+
|
|
24
|
+
The following are all team members who have contributed to this release:
|
|
25
|
+
@alexfauquette, @brijeshb42, @mapache-salvaje, @arminmeh, @bernardobelchior, @bharatkashyap, @Janpot, @JCQuintas, @KenanYusuf, @LukasTy, @michelengelen, @rita-codes
|
|
26
|
+
|
|
27
|
+
### Data Grid
|
|
28
|
+
|
|
29
|
+
#### `@mui/x-data-grid@8.7.0`
|
|
30
|
+
|
|
31
|
+
- [DataGrid] Fix column state restore with controlled column visibility model (#18567) @arminmeh
|
|
32
|
+
- [DataGrid] Fix styling virtualized column headers (#18603) @KenanYusuf
|
|
33
|
+
- [l10n] Improve Danish (da-DK) locale (#18537) @ShahrazH
|
|
34
|
+
|
|
35
|
+
#### `@mui/x-data-grid-pro@8.7.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
36
|
+
|
|
37
|
+
Same changes as in `@mui/x-data-grid@8.7.0`.
|
|
38
|
+
|
|
39
|
+
#### `@mui/x-data-grid-premium@8.7.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
40
|
+
|
|
41
|
+
Same changes as in `@mui/x-data-grid-pro@8.7.0`.
|
|
42
|
+
|
|
43
|
+
### Date and Time Pickers
|
|
44
|
+
|
|
45
|
+
#### `@mui/x-date-pickers@8.7.0`
|
|
46
|
+
|
|
47
|
+
- [pickers] Support different `start` and `end` `referenceDate` props on range components (#18549) @LukasTy
|
|
48
|
+
|
|
49
|
+
#### `@mui/x-date-pickers-pro@8.7.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
50
|
+
|
|
51
|
+
Same changes as in `@mui/x-date-pickers@8.7.0`.
|
|
52
|
+
|
|
53
|
+
### Charts
|
|
54
|
+
|
|
55
|
+
#### `@mui/x-charts@8.7.0`
|
|
56
|
+
|
|
57
|
+
- [charts] Export `ChartsReferenceLineProps` (#18598) @bernardobelchior
|
|
58
|
+
- [charts] Extract bar and line plot logic into reusable hooks (#18541) @bernardobelchior
|
|
59
|
+
- [charts] Extract plot logic into separate files for reuse (#18522) @bernardobelchior
|
|
60
|
+
- [charts] Profile charts benchmarks using chromium (#18528) @bernardobelchior
|
|
61
|
+
- [l10n] Add Greek (el-GR) locale to charts (#18548) @whythecode
|
|
62
|
+
|
|
63
|
+
#### `@mui/x-charts-pro@8.7.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
64
|
+
|
|
65
|
+
Same changes as in `@mui/x-charts@8.7.0`, plus:
|
|
66
|
+
|
|
67
|
+
- [charts-pro] Add `useChartProApiRef` for easier refs (#18013) @JCQuintas
|
|
68
|
+
- [charts-pro] Add tests and classes to zoom slider (#18660) @JCQuintas
|
|
69
|
+
- [charts-pro] Fix geometry not handling gestures in specific scenarios (#18651) @JCQuintas
|
|
70
|
+
- [charts-pro] Rename `useChartApiContext` to `useChartProApiContext` (#18565) @JCQuintas
|
|
71
|
+
- [charts-pro] Zoom pointer improvements (#17480) @JCQuintas
|
|
72
|
+
|
|
73
|
+
### Tree View
|
|
74
|
+
|
|
75
|
+
#### `@mui/x-tree-view@8.7.0`
|
|
76
|
+
|
|
77
|
+
Internal changes.
|
|
78
|
+
|
|
79
|
+
#### `@mui/x-tree-view-pro@8.7.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
80
|
+
|
|
81
|
+
Same changes as in `@mui/x-tree-view@8.7.0`, plus:
|
|
82
|
+
|
|
83
|
+
- [tree view pro] Add missing `dataSource` JSDoc (#18650) @LukasTy
|
|
84
|
+
|
|
85
|
+
### Docs
|
|
86
|
+
|
|
87
|
+
- [docs] Add MCP stub (#18204) @bharatkashyap
|
|
88
|
+
- [docs] Fix AI Assistant proxy rewrite prefix (#18661) @arminmeh
|
|
89
|
+
- [docs] Improve test README.MD (#18634) @LukasTy
|
|
90
|
+
- [docs] Provide workaround for pie chart composition (#18600) @alexfauquette
|
|
91
|
+
- [docs][charts] Add donut chart as a special case of a pie chart (#18652) @bernardobelchior
|
|
92
|
+
- [docs][charts] Centralize country and continent data (#18604) @bernardobelchior
|
|
93
|
+
- [docs][data grid] Audit and revise the Pro row docs (#17926) @mapache-salvaje
|
|
94
|
+
- [docs][pickers] Add mention of theme augmentation in relevant migration section (#18608) @LukasTy
|
|
95
|
+
|
|
96
|
+
### Core
|
|
97
|
+
|
|
98
|
+
- [core] Avoid stringifying `document` object (#18657) @vadimkuragkovskiy
|
|
99
|
+
|
|
100
|
+
### Miscellaneous
|
|
101
|
+
|
|
102
|
+
- [code-infra] Bump code-infra version and fix breaking changes (#18653) @brijeshb42
|
|
103
|
+
- [code-infra] Ensure `material-ui/disallow-react-api-in-server-components` ESLint rule is applied (#18570) @LukasTy
|
|
104
|
+
- [code-infra] Migrate to flat eslint config (#18562) @brijeshb42
|
|
105
|
+
- [code-infra] Refactor eslint config (#18643) @LukasTy
|
|
106
|
+
- [infra] Add renovatebot rule for latest infra packages (#18609) @Janpot
|
|
107
|
+
- [infra] Move pushArgos script to code-infra (#18667) @Janpot
|
|
108
|
+
- [infra] Updates release script to fetch latest major version from upstream (#18552) @michelengelen
|
|
109
|
+
- [release] Add missing contributor to changelog (#18561) @bernardobelchior
|
|
110
|
+
|
|
111
|
+
## 8.6.0
|
|
112
|
+
|
|
113
|
+
_Jun 27, 2025_
|
|
114
|
+
|
|
115
|
+
We'd like to extend a big thank you to the 12 contributors who made this release possible. Here are some highlights ✨:
|
|
116
|
+
|
|
117
|
+
- 📊 Add export menu to charts toolbar
|
|
118
|
+
- 📅 Add `usePickerAdapter` hook to access the date adapter.
|
|
119
|
+
|
|
120
|
+
You can use the adapter in your custom components if you need them to work with multiple date libraries — [Learn more](https://mui.com/x/react-date-pickers/custom-components/#access-date-adapter).
|
|
121
|
+
- 🌎 Improve Danish (da-DK) locale
|
|
122
|
+
- 🌎 Improve German (de-DE) locale
|
|
123
|
+
|
|
124
|
+
Special thanks go out to the community members for their valuable contributions:
|
|
125
|
+
@omalyutin, @ShahrazH, @vadimka123
|
|
126
|
+
|
|
127
|
+
The following are all team members who have contributed to this release:
|
|
128
|
+
@arminmeh, @bernardobelchior, @JCQuintas, @KenanYusuf, @LukasTy, @MBilalShafi, @michelengelen, @noraleonte, @rita-codes, @sai6855
|
|
129
|
+
|
|
130
|
+
### Data Grid
|
|
131
|
+
|
|
132
|
+
#### `@mui/x-data-grid@8.6.0`
|
|
133
|
+
|
|
134
|
+
- [DataGrid] Fix `label` type in `GridActionsCellItem` type (#18175) @sai6855
|
|
135
|
+
- [DataGrid] Fix grid menu not closing when pressing escape/tab (#18300) @KenanYusuf
|
|
136
|
+
- [l10n] Improve Danish (da-DK) locale (#18428) @ShahrazH
|
|
137
|
+
- [l10n] Improve German (de-DE) locale (#18388) @omalyutin
|
|
138
|
+
|
|
139
|
+
#### `@mui/x-data-grid-pro@8.6.0` [](https://mui.com/r/x-pro-svg-link "Pro plan")
|
|
140
|
+
|
|
141
|
+
Same changes as in `@mui/x-data-grid@8.6.0`, plus:
|
|
142
|
+
|
|
143
|
+
- [DataGridPro] Fix lazy loading params calculated from rendering context (#18460) @arminmeh
|
|
144
|
+
|
|
145
|
+
#### `@mui/x-data-grid-premium@8.6.0` [](https://mui.com/r/x-premium-svg-link "Premium plan")
|
|
146
|
+
|
|
147
|
+
Same changes as in `@mui/x-data-grid-pro@8.6.0`.
|
|
148
|
+
|
|
149
|
+
### Date and Time Pickers
|
|
150
|
+
|
|
151
|
+
#### `@mui/x-date-pickers@8.6.0`
|
|
152
|
+
|
|
153
|
+
- [pickers] Add `usePickerAdapter` hook (#18457) @LukasTy
|
|
154
|
+
- [pickers] Fix to use latest `value` when updating `lastCommittedValue` in internal state (#18518) @LukasTy
|
|
155
|
+
- [pickers] Use `usePickerAdapter` hook internally instead of `useUtils` (#18465) @LukasTy
|
|
156
|
+
|
|
157
|
+
#### `@mui/x-date-pickers-pro@8.6.0` [](https://mui.com/r/x-pro-svg-link "Pro plan")
|
|
158
|
+
|
|
159
|
+
Same changes as in `@mui/x-date-pickers@8.6.0`.
|
|
160
|
+
|
|
161
|
+
### Charts
|
|
162
|
+
|
|
163
|
+
#### `@mui/x-charts@8.6.0`
|
|
164
|
+
|
|
165
|
+
- [charts] Add `data-series` to charts legend item (#18414) @bernardobelchior
|
|
166
|
+
- [charts] Add `data-series` to bar charts (#18413) @bernardobelchior
|
|
167
|
+
- [charts] Add `data-series` to elements of line chart (#18409) @bernardobelchior
|
|
168
|
+
- [charts] Add `data-series` to pie charts (#18432) @bernardobelchior
|
|
169
|
+
- [charts] Fix missing key in bar plot (#18502) @bernardobelchior
|
|
170
|
+
- [charts] Split axis utils from main file (#18517) @JCQuintas
|
|
171
|
+
- [charts] Improve touch behavior for polar axis (#18531) @JCQuintas
|
|
172
|
+
- [charts] Add `isElementInside` helper (#18530) @JCQuintas
|
|
173
|
+
|
|
174
|
+
#### `@mui/x-charts-pro@8.6.0` [](https://mui.com/r/x-pro-svg-link "Pro plan")
|
|
175
|
+
|
|
176
|
+
Same changes as in `@mui/x-charts@8.6.0`, plus:
|
|
177
|
+
|
|
178
|
+
- [charts-pro] Add export menu to charts toolbar (#18210) @bernardobelchior
|
|
179
|
+
- [charts-pro] Fix export docs mentioning tooltip instead of toolbar (#18490) @bernardobelchior
|
|
180
|
+
- [charts-pro] Fix iframe not being removed after print export (#18500) @bernardobelchior
|
|
181
|
+
|
|
182
|
+
### Tree View
|
|
183
|
+
|
|
184
|
+
#### `@mui/x-tree-view@8.6.0`
|
|
185
|
+
|
|
186
|
+
Internal changes.
|
|
187
|
+
|
|
188
|
+
#### `@mui/x-tree-view-pro@8.6.0` [](https://mui.com/r/x-pro-svg-link "Pro plan")
|
|
189
|
+
|
|
190
|
+
Same changes as in `@mui/x-tree-view@8.6.0`, plus:
|
|
191
|
+
|
|
192
|
+
- [tree view pro] Fix theme augmentation (#18437) @LukasTy
|
|
193
|
+
|
|
194
|
+
### Codemod
|
|
195
|
+
|
|
196
|
+
#### `@mui/x-codemod@8.6.0`
|
|
197
|
+
|
|
198
|
+
Internal changes.
|
|
199
|
+
|
|
200
|
+
### Docs
|
|
201
|
+
|
|
202
|
+
- [docs] Document `GridRenderContext` (#18492) @arminmeh
|
|
203
|
+
- [docs] Prevent stale rows to appear on sort and filter change in the lazy loading demo (#18461) @arminmeh
|
|
204
|
+
- [docs][pickers] Update action bar demo to use the `nextOrAccept` action (#18505) @LukasTy
|
|
205
|
+
- [docs] Update indeterminate checkbox section in migration guide (#18229) @michelengelen
|
|
206
|
+
- [docs] Data source nested pagination recipe (#14777) @MBilalShafi
|
|
207
|
+
|
|
208
|
+
### Core
|
|
209
|
+
|
|
210
|
+
- [core] Avoid json stringify whole window object (#18512) @vadimka123
|
|
211
|
+
|
|
212
|
+
### Miscellaneous
|
|
213
|
+
|
|
214
|
+
- [code-infra] Dynamically get pickers adapters dependencies versions (#18446) @JCQuintas
|
|
215
|
+
- [infra] Adjust inquirer version and usage (#18495) @michelengelen
|
|
216
|
+
- [infra] Use `String.raw` for creating the remote regex (#18462) @michelengelen
|
|
217
|
+
|
|
8
218
|
## 8.5.3
|
|
9
219
|
|
|
10
220
|
_Jun 19, 2025_
|
|
@@ -29,7 +29,7 @@ const configuration = {
|
|
|
29
29
|
useCellAggregationResult: () => null
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
|
-
const releaseInfo = "
|
|
32
|
+
const releaseInfo = "MTc1MTU4MDAwMDAwMA==";
|
|
33
33
|
const watermark = /*#__PURE__*/(0, _jsxRuntime.jsx)(_xLicense.Watermark, {
|
|
34
34
|
packageName: "x-data-grid-pro",
|
|
35
35
|
releaseInfo: releaseInfo
|
|
@@ -30,14 +30,6 @@ function GridHeaderFilterMenu({
|
|
|
30
30
|
const hideMenu = React.useCallback(() => {
|
|
31
31
|
apiRef.current.hideHeaderFilterMenu();
|
|
32
32
|
}, [apiRef]);
|
|
33
|
-
const handleListKeyDown = React.useCallback(event => {
|
|
34
|
-
if (event.key === 'Tab') {
|
|
35
|
-
event.preventDefault();
|
|
36
|
-
}
|
|
37
|
-
if (event.key === 'Escape' || event.key === 'Tab') {
|
|
38
|
-
hideMenu();
|
|
39
|
-
}
|
|
40
|
-
}, [hideMenu]);
|
|
41
33
|
if (!target) {
|
|
42
34
|
return null;
|
|
43
35
|
}
|
|
@@ -49,7 +41,6 @@ function GridHeaderFilterMenu({
|
|
|
49
41
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(rootProps.slots.baseMenuList, {
|
|
50
42
|
"aria-labelledby": labelledBy,
|
|
51
43
|
id: id,
|
|
52
|
-
onKeyDown: handleListKeyDown,
|
|
53
44
|
children: [showClearItem && [/*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.baseMenuItem, {
|
|
54
45
|
iconStart: /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.columnMenuClearIcon, {
|
|
55
46
|
fontSize: "small"
|
|
@@ -22,7 +22,7 @@ const configuration = {
|
|
|
22
22
|
useCellAggregationResult: () => null
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
const releaseInfo = "
|
|
25
|
+
const releaseInfo = "MTc1MTU4MDAwMDAwMA==";
|
|
26
26
|
const watermark = /*#__PURE__*/_jsx(Watermark, {
|
|
27
27
|
packageName: "x-data-grid-pro",
|
|
28
28
|
releaseInfo: releaseInfo
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
1
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
4
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
5
|
const _excluded = ["colIndex", "height", "hasFocus", "width", "headerClassName", "colDef", "item", "headerFilterMenuRef", "InputComponentProps", "showClearIcon", "pinnedPosition", "pinnedOffset", "style", "showLeftBorder", "showRightBorder"];
|
|
@@ -22,14 +22,6 @@ function GridHeaderFilterMenu({
|
|
|
22
22
|
const hideMenu = React.useCallback(() => {
|
|
23
23
|
apiRef.current.hideHeaderFilterMenu();
|
|
24
24
|
}, [apiRef]);
|
|
25
|
-
const handleListKeyDown = React.useCallback(event => {
|
|
26
|
-
if (event.key === 'Tab') {
|
|
27
|
-
event.preventDefault();
|
|
28
|
-
}
|
|
29
|
-
if (event.key === 'Escape' || event.key === 'Tab') {
|
|
30
|
-
hideMenu();
|
|
31
|
-
}
|
|
32
|
-
}, [hideMenu]);
|
|
33
25
|
if (!target) {
|
|
34
26
|
return null;
|
|
35
27
|
}
|
|
@@ -41,7 +33,6 @@ function GridHeaderFilterMenu({
|
|
|
41
33
|
children: /*#__PURE__*/_jsxs(rootProps.slots.baseMenuList, {
|
|
42
34
|
"aria-labelledby": labelledBy,
|
|
43
35
|
id: id,
|
|
44
|
-
onKeyDown: handleListKeyDown,
|
|
45
36
|
children: [showClearItem && [/*#__PURE__*/_jsx(rootProps.slots.baseMenuItem, {
|
|
46
37
|
iconStart: /*#__PURE__*/_jsx(rootProps.slots.columnMenuClearIcon, {
|
|
47
38
|
fontSize: "small"
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
1
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
4
|
import * as React from 'react';
|
|
3
5
|
import { useGridSelector, gridVisibleColumnDefinitionsSelector, gridColumnsTotalWidthSelector, gridColumnPositionsSelector, useGridApiMethod, useGridEvent, GridPinnedColumnPosition, gridColumnFieldsSelector } from '@mui/x-data-grid';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type GridDataSourceState } from "./models.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
1
3
|
import * as React from 'react';
|
|
2
4
|
import composeClasses from '@mui/utils/composeClasses';
|
|
3
5
|
import { useGridLogger, useGridEvent, getDataGridUtilityClass, useGridSelector, gridSortModelSelector, gridRowMaximumTreeDepthSelector, useGridEventPriority, gridRowNodeSelector } from '@mui/x-data-grid';
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
1
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
4
|
import * as React from 'react';
|
|
3
5
|
import { throttle } from '@mui/x-internals/throttle';
|
|
@@ -276,7 +278,7 @@ export const useGridDataSourceLazyLoader = (privateApiRef, props) => {
|
|
|
276
278
|
const filterModel = gridFilterModelSelector(privateApiRef);
|
|
277
279
|
const getRowsParams = {
|
|
278
280
|
start: params.firstRowIndex,
|
|
279
|
-
end: params.lastRowIndex,
|
|
281
|
+
end: params.lastRowIndex - 1,
|
|
280
282
|
sortModel,
|
|
281
283
|
filterModel
|
|
282
284
|
};
|
|
@@ -293,7 +295,7 @@ export const useGridDataSourceLazyLoader = (privateApiRef, props) => {
|
|
|
293
295
|
visibleRows: currentVisibleRows.rows,
|
|
294
296
|
range: {
|
|
295
297
|
firstRowIndex: params.firstRowIndex,
|
|
296
|
-
lastRowIndex: params.lastRowIndex
|
|
298
|
+
lastRowIndex: params.lastRowIndex - 1
|
|
297
299
|
}
|
|
298
300
|
});
|
|
299
301
|
if (!skeletonRowsSection) {
|
package/esm/index.js
CHANGED
package/esm/internals/index.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export * from '@mui/x-data-grid/internals';
|
|
2
2
|
export { GridColumnHeaders } from "../components/GridColumnHeaders.js";
|
|
3
3
|
export { DATA_GRID_PRO_DEFAULT_SLOTS_COMPONENTS } from "../constants/dataGridProDefaultSlotsComponents.js";
|
|
4
|
+
/**
|
|
5
|
+
* x-data-grid-pro internals that are overriding the x-data-grid internals
|
|
6
|
+
*/
|
|
4
7
|
export { useGridColumnHeaders } from "../hooks/features/columnHeaders/useGridColumnHeaders.js";
|
|
5
8
|
export { useGridAriaAttributes } from "../hooks/utils/useGridAriaAttributes.js";
|
|
6
9
|
export { useGridRowAriaAttributes } from "../hooks/features/rows/useGridRowAriaAttributes.js";
|
package/esm/internals/index.js
CHANGED
|
@@ -3,13 +3,14 @@ export * from '@mui/x-data-grid/internals';
|
|
|
3
3
|
export { GridColumnHeaders } from "../components/GridColumnHeaders.js";
|
|
4
4
|
export { DATA_GRID_PRO_DEFAULT_SLOTS_COMPONENTS } from "../constants/dataGridProDefaultSlotsComponents.js";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
7
|
* x-data-grid-pro internals that are overriding the x-data-grid internals
|
|
8
8
|
*/
|
|
9
|
+
/* eslint-disable import/export */
|
|
9
10
|
export { useGridColumnHeaders } from "../hooks/features/columnHeaders/useGridColumnHeaders.js";
|
|
10
11
|
export { useGridAriaAttributes } from "../hooks/utils/useGridAriaAttributes.js";
|
|
11
12
|
export { useGridRowAriaAttributes } from "../hooks/features/rows/useGridRowAriaAttributes.js";
|
|
12
|
-
|
|
13
|
+
/* eslint-enable import/export */
|
|
13
14
|
|
|
14
15
|
export { useGridColumnPinning, columnPinningStateInitializer } from "../hooks/features/columnPinning/useGridColumnPinning.js";
|
|
15
16
|
export { useGridColumnPinningPreProcessors } from "../hooks/features/columnPinning/useGridColumnPinningPreProcessors.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type GridDataSourceState } from "./models.js";
|
package/hooks/features/index.js
CHANGED
|
@@ -68,4 +68,15 @@ Object.keys(_rowPinning).forEach(function (key) {
|
|
|
68
68
|
return _rowPinning[key];
|
|
69
69
|
}
|
|
70
70
|
});
|
|
71
|
+
});
|
|
72
|
+
var _dataSource = require("./dataSource");
|
|
73
|
+
Object.keys(_dataSource).forEach(function (key) {
|
|
74
|
+
if (key === "default" || key === "__esModule") return;
|
|
75
|
+
if (key in exports && exports[key] === _dataSource[key]) return;
|
|
76
|
+
Object.defineProperty(exports, key, {
|
|
77
|
+
enumerable: true,
|
|
78
|
+
get: function () {
|
|
79
|
+
return _dataSource[key];
|
|
80
|
+
}
|
|
81
|
+
});
|
|
71
82
|
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
'use client';
|
|
2
3
|
|
|
3
4
|
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
5
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
@@ -284,7 +285,7 @@ const useGridDataSourceLazyLoader = (privateApiRef, props) => {
|
|
|
284
285
|
const filterModel = (0, _xDataGrid.gridFilterModelSelector)(privateApiRef);
|
|
285
286
|
const getRowsParams = {
|
|
286
287
|
start: params.firstRowIndex,
|
|
287
|
-
end: params.lastRowIndex,
|
|
288
|
+
end: params.lastRowIndex - 1,
|
|
288
289
|
sortModel,
|
|
289
290
|
filterModel
|
|
290
291
|
};
|
|
@@ -301,7 +302,7 @@ const useGridDataSourceLazyLoader = (privateApiRef, props) => {
|
|
|
301
302
|
visibleRows: currentVisibleRows.rows,
|
|
302
303
|
range: {
|
|
303
304
|
firstRowIndex: params.firstRowIndex,
|
|
304
|
-
lastRowIndex: params.lastRowIndex
|
|
305
|
+
lastRowIndex: params.lastRowIndex - 1
|
|
305
306
|
}
|
|
306
307
|
});
|
|
307
308
|
if (!skeletonRowsSection) {
|
package/index.js
CHANGED
package/internals/index.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export * from '@mui/x-data-grid/internals';
|
|
2
2
|
export { GridColumnHeaders } from "../components/GridColumnHeaders.js";
|
|
3
3
|
export { DATA_GRID_PRO_DEFAULT_SLOTS_COMPONENTS } from "../constants/dataGridProDefaultSlotsComponents.js";
|
|
4
|
+
/**
|
|
5
|
+
* x-data-grid-pro internals that are overriding the x-data-grid internals
|
|
6
|
+
*/
|
|
4
7
|
export { useGridColumnHeaders } from "../hooks/features/columnHeaders/useGridColumnHeaders.js";
|
|
5
8
|
export { useGridAriaAttributes } from "../hooks/utils/useGridAriaAttributes.js";
|
|
6
9
|
export { useGridRowAriaAttributes } from "../hooks/features/rows/useGridRowAriaAttributes.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-data-grid-pro",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.7.0",
|
|
4
4
|
"author": "MUI Team",
|
|
5
5
|
"description": "The Pro plan edition of the MUI X Data Grid components.",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
"@types/format-util": "^1.0.4",
|
|
41
41
|
"clsx": "^2.1.1",
|
|
42
42
|
"prop-types": "^15.8.1",
|
|
43
|
-
"@mui/x-
|
|
44
|
-
"@mui/x-license": "8.
|
|
45
|
-
"@mui/x-
|
|
43
|
+
"@mui/x-data-grid": "8.7.0",
|
|
44
|
+
"@mui/x-license": "8.7.0",
|
|
45
|
+
"@mui/x-internals": "8.7.0"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"@emotion/react": "^11.9.0",
|