@mui/x-data-grid-generator 7.2.0 → 7.3.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 +125 -0
- package/hooks/useQuery.d.ts +2 -0
- package/hooks/useQuery.js +5 -1
- package/index.js +1 -1
- package/modern/hooks/useQuery.js +5 -1
- package/modern/index.js +1 -1
- package/node/hooks/useQuery.js +5 -1
- package/node/index.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,81 @@
|
|
|
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.3.0
|
|
7
|
+
|
|
8
|
+
_Apr 18, 2024_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 📄 Support [unknown and estimated row count in server-side pagination](https://mui.com/x/react-data-grid/pagination/#index-based-pagination) (#12490) @MBilalShafi
|
|
13
|
+
- 🎨 Support color scales in Charts (#12490) @alexfauquette
|
|
14
|
+
Add a [`colorMap` configuration](https://mui.com/x/react-charts/styling/#values-color) to an axis, and the chart will use it to select colors.
|
|
15
|
+
Each impacted chart ([bar charts](https://mui.com/x/react-charts/bars/#color-scale), [line charts](https://mui.com/x/react-charts/lines/#color-scale), [scatter charts](https://mui.com/x/react-charts/scatter/#color-scale)) has a dedicated section explaining how this color map is impacting it.
|
|
16
|
+
|
|
17
|
+
<img src="https://github.com/mui/mui-x/assets/45398769/f0066606-3486-4c4e-b3be-7fdd56d763c3" alt="scatter chart with gradient along y-axis" />
|
|
18
|
+
|
|
19
|
+
- 🌍 Improve Danish (da-DK) locale on the Data Grid
|
|
20
|
+
- 🐞 Bugfixes
|
|
21
|
+
- 📚 Documentation improvements
|
|
22
|
+
|
|
23
|
+
### Data Grid
|
|
24
|
+
|
|
25
|
+
#### `@mui/x-data-grid@7.3.0`
|
|
26
|
+
|
|
27
|
+
- [DataGrid] Fix calling `onCellEditStop` on error (#12747) @sai6855
|
|
28
|
+
- [DataGrid] Fix column resize (#12792) @romgrk
|
|
29
|
+
- [DataGrid] Fix column separators (#12808) @romgrk
|
|
30
|
+
- [DataGrid] Limit panel width to not exceed screen width (#12799) @cherniavskii
|
|
31
|
+
- [DataGrid] Support advanced server-side pagination use cases (#12474) @MBilalShafi
|
|
32
|
+
- [DataGrid] Support state export and restore on grid density (#12671) @MBilalShafi
|
|
33
|
+
- [l10n] Improve Danish (da-DK) locale (#12784) @EmilBahnsen
|
|
34
|
+
|
|
35
|
+
#### `@mui/x-data-grid-pro@7.3.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
36
|
+
|
|
37
|
+
Same changes as in `@mui/x-data-grid@7.3.0`, plus:
|
|
38
|
+
|
|
39
|
+
- [DataGridPro] Implement header filter height (#12666) @romgrk
|
|
40
|
+
|
|
41
|
+
#### `@mui/x-data-grid-premium@7.3.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
42
|
+
|
|
43
|
+
Same changes as in `@mui/x-data-grid-pro@7.3.0`.
|
|
44
|
+
|
|
45
|
+
### Charts
|
|
46
|
+
|
|
47
|
+
#### Breaking change
|
|
48
|
+
|
|
49
|
+
A typo fix:
|
|
50
|
+
|
|
51
|
+
```diff
|
|
52
|
+
- ContinuouseScaleName
|
|
53
|
+
+ ContinuousScaleName
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
#### `@mui/x-charts@7.3.0`
|
|
57
|
+
|
|
58
|
+
- [charts] Add `dataIndex` to series `valueFormatter` (#12745) @JCQuintas
|
|
59
|
+
- [charts] Add color scale (#12490) @alexfauquette
|
|
60
|
+
- [charts] Do not document the usage of `DEFAULT_X_AXIS_KEY` and `DEFAULT_Y_AXIS_KEY` (#12780) @alexfauquette
|
|
61
|
+
- [charts] Export more utils (#12744) @alexfauquette
|
|
62
|
+
- [charts] Fix passing slot props down to `PieArcLabel` (#12806) @JCQuintas
|
|
63
|
+
|
|
64
|
+
### Tree View
|
|
65
|
+
|
|
66
|
+
#### `@mui/x-tree-view@7.3.0`
|
|
67
|
+
|
|
68
|
+
- [TreeView] Support `defaultMuiPrevented` on the `onFocus` prop of the root slot (#12813) @flaviendelangle
|
|
69
|
+
|
|
70
|
+
### Docs
|
|
71
|
+
|
|
72
|
+
- [docs] Add grid cell display example to the migration guide (#12793) @romgrk
|
|
73
|
+
- [docs] Use charts classes objects (#12781) @alexfauquette
|
|
74
|
+
- [docs] Fix layout shift on demos (#12816) @zanivan
|
|
75
|
+
- [test] Increase timeout for test that sometimes fail on `DateTimeRangePicker` (#12786) @LukasTy
|
|
76
|
+
|
|
77
|
+
### Core
|
|
78
|
+
|
|
79
|
+
- [docs-infra] Prepare infra to document charts interfaces (#12653) @alexfauquette
|
|
80
|
+
|
|
6
81
|
## 7.2.0
|
|
7
82
|
|
|
8
83
|
_Apr 12, 2024_
|
|
@@ -3058,6 +3133,56 @@ Here is an example of the renaming for the `<ChartsTooltip />` component.
|
|
|
3058
3133
|
- [core] Update release instructions as per v7 configuration (#10962) @MBilalShafi
|
|
3059
3134
|
- [license] Correctly throw errors (#10924) @oliviertassinari
|
|
3060
3135
|
|
|
3136
|
+
## 6.19.11
|
|
3137
|
+
|
|
3138
|
+
_Apr 18, 2024_
|
|
3139
|
+
|
|
3140
|
+
We'd like to offer a big thanks to the 1 contributor who made this release possible. Here are some highlights ✨:
|
|
3141
|
+
|
|
3142
|
+
- 🐞 Bugfixes
|
|
3143
|
+
|
|
3144
|
+
### Data Grid
|
|
3145
|
+
|
|
3146
|
+
#### `@mui/x-data-grid@6.19.11`
|
|
3147
|
+
|
|
3148
|
+
- [DataGrid] Fix virtualization memory leak (#12812) @romgrk
|
|
3149
|
+
|
|
3150
|
+
#### `@mui/x-data-grid-pro@6.19.11` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
3151
|
+
|
|
3152
|
+
Same changes as in `@mui/x-data-grid@6.19.11`.
|
|
3153
|
+
|
|
3154
|
+
#### `@mui/x-data-grid-premium@6.19.11` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
3155
|
+
|
|
3156
|
+
Same changes as in `@mui/x-data-grid-pro@6.19.11`.
|
|
3157
|
+
|
|
3158
|
+
## 6.19.10
|
|
3159
|
+
|
|
3160
|
+
_Apr 12, 2024_
|
|
3161
|
+
|
|
3162
|
+
We'd like to offer a big thanks to the 2 contributors who made this release possible. Here are some highlights ✨:
|
|
3163
|
+
|
|
3164
|
+
- 🐞 Bugfixes
|
|
3165
|
+
- 📚 Documentation improvements
|
|
3166
|
+
|
|
3167
|
+
### Data Grid
|
|
3168
|
+
|
|
3169
|
+
#### `@mui/x-data-grid@6.19.10`
|
|
3170
|
+
|
|
3171
|
+
- [DataGrid] Do not escape double quotes when copying to clipboard (#12734) @cherniavskii
|
|
3172
|
+
- [DataGrid] Fix bug in suspense (#12754) @cherniavskii
|
|
3173
|
+
|
|
3174
|
+
#### `@mui/x-data-grid-pro@6.19.10` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
3175
|
+
|
|
3176
|
+
Same changes as in `@mui/x-data-grid@6.19.10`.
|
|
3177
|
+
|
|
3178
|
+
#### `@mui/x-data-grid-premium@6.19.10` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
3179
|
+
|
|
3180
|
+
Same changes as in `@mui/x-data-grid-pro@6.19.10`.
|
|
3181
|
+
|
|
3182
|
+
### Core
|
|
3183
|
+
|
|
3184
|
+
- [core] Update the docs release source branch (#12685) @LukasTy
|
|
3185
|
+
|
|
3061
3186
|
## 6.19.9
|
|
3062
3187
|
|
|
3063
3188
|
_Apr 5, 2024_
|
package/hooks/useQuery.d.ts
CHANGED
|
@@ -8,11 +8,13 @@ export declare const loadServerRows: (rows: GridRowModel[], queryOptions: QueryO
|
|
|
8
8
|
interface FakeServerResponse {
|
|
9
9
|
returnedRows: GridRowModel[];
|
|
10
10
|
nextCursor?: string;
|
|
11
|
+
hasNextPage: boolean;
|
|
11
12
|
totalRowCount: number;
|
|
12
13
|
}
|
|
13
14
|
interface PageInfo {
|
|
14
15
|
totalRowCount?: number;
|
|
15
16
|
nextCursor?: string;
|
|
17
|
+
hasNextPage?: boolean;
|
|
16
18
|
pageSize?: number;
|
|
17
19
|
}
|
|
18
20
|
interface DefaultServerOptions {
|
package/hooks/useQuery.js
CHANGED
|
@@ -116,9 +116,11 @@ export const loadServerRows = (rows, queryOptions, serverOptions, columnsWithDef
|
|
|
116
116
|
firstRowIndex = page * pageSize;
|
|
117
117
|
lastRowIndex = (page + 1) * pageSize;
|
|
118
118
|
}
|
|
119
|
+
const hasNextPage = lastRowIndex < filteredRows.length - 1;
|
|
119
120
|
const response = {
|
|
120
121
|
returnedRows: filteredRows.slice(firstRowIndex, lastRowIndex),
|
|
121
122
|
nextCursor,
|
|
123
|
+
hasNextPage,
|
|
122
124
|
totalRowCount
|
|
123
125
|
};
|
|
124
126
|
return new Promise(resolve => {
|
|
@@ -173,7 +175,8 @@ export const createFakeServer = (dataSetOptions, serverOptions) => {
|
|
|
173
175
|
const {
|
|
174
176
|
returnedRows,
|
|
175
177
|
nextCursor,
|
|
176
|
-
totalRowCount
|
|
178
|
+
totalRowCount,
|
|
179
|
+
hasNextPage
|
|
177
180
|
} = await loadServerRows(rows, queryOptions, serverOptionsWithDefault, columnsWithDefaultColDef);
|
|
178
181
|
if (!active) {
|
|
179
182
|
return;
|
|
@@ -183,6 +186,7 @@ export const createFakeServer = (dataSetOptions, serverOptions) => {
|
|
|
183
186
|
pageInfo: {
|
|
184
187
|
totalRowCount,
|
|
185
188
|
nextCursor,
|
|
189
|
+
hasNextPage,
|
|
186
190
|
pageSize: returnedRows.length
|
|
187
191
|
}
|
|
188
192
|
};
|
package/index.js
CHANGED
package/modern/hooks/useQuery.js
CHANGED
|
@@ -116,9 +116,11 @@ export const loadServerRows = (rows, queryOptions, serverOptions, columnsWithDef
|
|
|
116
116
|
firstRowIndex = page * pageSize;
|
|
117
117
|
lastRowIndex = (page + 1) * pageSize;
|
|
118
118
|
}
|
|
119
|
+
const hasNextPage = lastRowIndex < filteredRows.length - 1;
|
|
119
120
|
const response = {
|
|
120
121
|
returnedRows: filteredRows.slice(firstRowIndex, lastRowIndex),
|
|
121
122
|
nextCursor,
|
|
123
|
+
hasNextPage,
|
|
122
124
|
totalRowCount
|
|
123
125
|
};
|
|
124
126
|
return new Promise(resolve => {
|
|
@@ -173,7 +175,8 @@ export const createFakeServer = (dataSetOptions, serverOptions) => {
|
|
|
173
175
|
const {
|
|
174
176
|
returnedRows,
|
|
175
177
|
nextCursor,
|
|
176
|
-
totalRowCount
|
|
178
|
+
totalRowCount,
|
|
179
|
+
hasNextPage
|
|
177
180
|
} = await loadServerRows(rows, queryOptions, serverOptionsWithDefault, columnsWithDefaultColDef);
|
|
178
181
|
if (!active) {
|
|
179
182
|
return;
|
|
@@ -183,6 +186,7 @@ export const createFakeServer = (dataSetOptions, serverOptions) => {
|
|
|
183
186
|
pageInfo: {
|
|
184
187
|
totalRowCount,
|
|
185
188
|
nextCursor,
|
|
189
|
+
hasNextPage,
|
|
186
190
|
pageSize: returnedRows.length
|
|
187
191
|
}
|
|
188
192
|
};
|
package/modern/index.js
CHANGED
package/node/hooks/useQuery.js
CHANGED
|
@@ -125,9 +125,11 @@ const loadServerRows = (rows, queryOptions, serverOptions, columnsWithDefaultCol
|
|
|
125
125
|
firstRowIndex = page * pageSize;
|
|
126
126
|
lastRowIndex = (page + 1) * pageSize;
|
|
127
127
|
}
|
|
128
|
+
const hasNextPage = lastRowIndex < filteredRows.length - 1;
|
|
128
129
|
const response = {
|
|
129
130
|
returnedRows: filteredRows.slice(firstRowIndex, lastRowIndex),
|
|
130
131
|
nextCursor,
|
|
132
|
+
hasNextPage,
|
|
131
133
|
totalRowCount
|
|
132
134
|
};
|
|
133
135
|
return new Promise(resolve => {
|
|
@@ -183,7 +185,8 @@ const createFakeServer = (dataSetOptions, serverOptions) => {
|
|
|
183
185
|
const {
|
|
184
186
|
returnedRows,
|
|
185
187
|
nextCursor,
|
|
186
|
-
totalRowCount
|
|
188
|
+
totalRowCount,
|
|
189
|
+
hasNextPage
|
|
187
190
|
} = await loadServerRows(rows, queryOptions, serverOptionsWithDefault, columnsWithDefaultColDef);
|
|
188
191
|
if (!active) {
|
|
189
192
|
return;
|
|
@@ -193,6 +196,7 @@ const createFakeServer = (dataSetOptions, serverOptions) => {
|
|
|
193
196
|
pageInfo: {
|
|
194
197
|
totalRowCount,
|
|
195
198
|
nextCursor,
|
|
199
|
+
hasNextPage,
|
|
196
200
|
pageSize: returnedRows.length
|
|
197
201
|
}
|
|
198
202
|
};
|
package/node/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-data-grid-generator",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.3.0",
|
|
4
4
|
"description": "Generate fake data for demo purposes only.",
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"main": "./node/index.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@babel/runtime": "^7.24.0",
|
|
26
26
|
"@mui/base": "^5.0.0-beta.40",
|
|
27
|
-
"@mui/x-data-grid-premium": "7.
|
|
27
|
+
"@mui/x-data-grid-premium": "7.3.0",
|
|
28
28
|
"chance": "^1.1.11",
|
|
29
29
|
"clsx": "^2.1.0",
|
|
30
30
|
"lru-cache": "^7.18.3"
|