@mui/x-data-grid-generator 6.18.0 → 7.0.0-alpha.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 CHANGED
@@ -3,6 +3,213 @@
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.0.0-alpha.0
7
+
8
+ _Nov 10, 2023_
9
+
10
+ We're thrilled to announce the first alpha release of our next major version, v7.
11
+ This release introduces a few breaking changes, paving the way for the upcoming features like Pivoting and DateTimeRangePicker.
12
+
13
+ A special shoutout to thank the 12 contributors who made this release possible. Here are some highlights ✨:
14
+
15
+ - 🚀 First v7 alpha release
16
+ - ✨ Fix aggregation label not showing when `renderHeader` is used (#10961) @cherniavskii
17
+ - 📘 Server side data source [early documentation](https://mui.com/x/react-data-grid/server-side-data/)
18
+ - 💫 New recipes added for the data grid
19
+ - 📈 `<ChartsReferenceLine />` component is now available
20
+ - 🌍 Add Basque (eu) locale, improve Czech (cs-CZ) and Spanish (es-ES) locales
21
+ - 🐞 Bugfixes
22
+ - 📚 Documentation improvements
23
+
24
+ ### Data Grid
25
+
26
+ #### Breaking changes
27
+
28
+ - The deprecated `components` and `componentsProps` props have been removed. Use `slots` and `slotProps` instead. See [components section](/x/react-data-grid/components/) for more details.
29
+ - The print export will now only print the selected rows if there are any.
30
+ If there are no selected rows, it will print all rows. This makes the print export consistent with the other exports.
31
+ You can [customize the rows to export by using the `getRowsToExport` function](/x/react-data-grid/export/#customizing-the-rows-to-export).
32
+ - The `getApplyFilterFnV7` in `GridFilterOperator` was renamed to `getApplyFilterFn`.
33
+ If you use `getApplyFilterFnV7` directly - rename it to `getApplyFilterFn`.
34
+ - The signature of the function returned by `getApplyFilterFn` has changed for performance reasons:
35
+
36
+ ```diff
37
+ const getApplyFilterFn: GetApplyFilterFn<any, unknown> = (filterItem) => {
38
+ if (!filterItem.value) {
39
+ return null;
40
+ }
41
+ const filterRegex = new RegExp(escapeRegExp(filterItem.value), 'i');
42
+ - return (cellParams) => {
43
+ - const { value } = cellParams;
44
+ + return (value, row, colDef, apiRef) => {
45
+ return value != null ? filterRegex.test(String(value)) : false;
46
+ };
47
+ }
48
+ ```
49
+
50
+ - The `getApplyQuickFilterFnV7` in `GridColDef` was renamed to `getApplyQuickFilterFn`.
51
+ If you use `getApplyQuickFilterFnV7` directly - rename it to `getApplyQuickFilterFn`.
52
+ - The signature of the function returned by `getApplyQuickFilterFn` has changed for performance reasons:
53
+
54
+ ```diff
55
+ const getGridStringQuickFilterFn: GetApplyQuickFilterFn<any, unknown> = (value) => {
56
+ if (!value) {
57
+ return null;
58
+ }
59
+ const filterRegex = new RegExp(escapeRegExp(value), 'i');
60
+ - return (cellParams) => {
61
+ - const { formattedValue } = cellParams;
62
+ + return (value, row, column, apiRef) => {
63
+ + let formattedValue = apiRef.current.getRowFormattedValue(row, column);
64
+ return formattedValue != null ? filterRegex.test(formattedValue.toString()) : false;
65
+ };
66
+ };
67
+ ```
68
+
69
+ #### `@mui/x-data-grid@7.0.0-alpha.0`
70
+
71
+ - [DataGrid] Fix for error thrown when removing skeleton rows, after sorting is applied (#10807) @benjaminbialy
72
+ - [DataGrid] Fix: `undefined` slot value (#10937) @romgrk
73
+ - [DataGrid] Print selected rows by default (#10846) @cherniavskii
74
+ - [DataGrid] Remove deprecated `components` and `componentsProps` (#10911) @MBilalShafi
75
+ - [DataGrid] Remove legacy filtering API (#10897) @cherniavskii
76
+ - [DataGrid] Fix keyboard navigation for actions cell with disabled buttons (#10882) @michelengelen
77
+ - [DataGrid] Added a recipe for using non-native select in filter panel (#10916) @michelengelen
78
+ - [DataGrid] Added a recipe to style cells without impacting the aggregation cells (#10913) @michelengelen
79
+ - [l10n] Improve Czech (cs-CZ) locale (#10949) @luborepka
80
+
81
+ #### `@mui/x-data-grid-pro@7.0.0-alpha.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
82
+
83
+ Same changes as in `@mui/x-data-grid@7.0.0-alpha.0`, plus:
84
+
85
+ - [DataGridPro] Autosize Columns - Fix headers being cut off (#10666) @gitstart
86
+ - [DataGridPro] Add data source interface and basic documentation (#10543) @MBilalShafi
87
+
88
+ #### `@mui/x-data-grid-premium@7.0.0-alpha.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
89
+
90
+ Same changes as in `@mui/x-data-grid-pro@7.0.0-alpha.0`, plus:
91
+
92
+ - [DataGridPremium] Render aggregation label when `renderHeader` is used (#10936) @cherniavskii
93
+
94
+ ### Date Pickers
95
+
96
+ #### Breaking changes
97
+
98
+ - The deprecated `components` and `componentsProps` props have been removed. Use `slots` and `slotProps` instead.
99
+
100
+ #### `@mui/x-date-pickers@7.0.0-alpha.0`
101
+
102
+ - [pickers] Escape non tokens words (#10400) @alexfauquette
103
+ - [fields] Fix `MultiInputTimeRangeField` section selection (#10922) @noraleonte
104
+ - [pickers] Refine `referenceDate` behavior in views (#10863) @LukasTy
105
+ - [pickers] Remove `components` and `componentsProps` props (#10700) @alexfauquette
106
+ - [l10n] Add Basque (eu) locale and improve Spanish (es-ES) locale (#10819) @lajtomekadimon
107
+ - [pickers] Add short weekdays token (#10988) @alexfauquette
108
+
109
+ #### `@mui/x-date-pickers-pro@7.0.0-alpha.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
110
+
111
+ Same changes as in `@mui/x-date-pickers@7.0.0-alpha.0`.
112
+
113
+ ### Charts / `@mui/x-charts@7.0.0-alpha.0`
114
+
115
+ #### Breaking changes
116
+
117
+ Types for `slots` and `slotProps` got renamed by removing the "Component" which is meaningless for charts.
118
+ Unless you imported those types, to create a wrapper, you should not be impacted by this breaking change.
119
+
120
+ Here is an example of the renaming for the `<ChartsTooltip />` component.
121
+
122
+ ```diff
123
+ -ChartsTooltipSlotsComponent
124
+ +ChartsTooltipSlots
125
+
126
+ -ChartsTooltipSlotComponentProps
127
+ +ChartsTooltipSlotProps
128
+ ```
129
+
130
+ - [charts] Add `<ChartsReferenceLine />` component (#10597) (#10946) @alexfauquette
131
+ - [charts] Improve properties JSDoc (#10931) (#10955) @alexfauquette
132
+ - [charts] Rename `slots` and `slotProps` types (#10875) @alexfauquette
133
+
134
+ ### `@mui/x-codemod@7.0.0-alpha.0`
135
+
136
+ - [codemod] Add `v7.0.0/preset-safe` (#10973) @LukasTy
137
+
138
+ ### Docs
139
+
140
+ - [docs] Add `@next` tag to the installation instructions (#10963) @MBilalShafi
141
+ - [docs] Document how to hide the legend (#10951) @alexfauquette
142
+ - [docs] Fix typo in the migration guide (#10972) @flaviendelangle
143
+
144
+ ### Core
145
+
146
+ - [core] Adds migration docs for charts, pickers and tree view (#10926) @michelengelen
147
+ - [core] Bump monorepo (#10959) @LukasTy
148
+ - [core] Changed prettier branch value to next (#10917) @michelengelen
149
+ - [core] Fix GitHub title tag consistency @oliviertassinari
150
+ - [core] Fixed wrong package names in migration docs (#10953) @michelengelen
151
+ - [core] Merge `master` into `next` (#10929) @cherniavskii
152
+ - [core] Update release instructions as per v7 configuration (#10962) @MBilalShafi
153
+ - [license] Correctly throw errors (#10924) @oliviertassinari
154
+
155
+ ## 6.18.1
156
+
157
+ _Nov 9, 2023_
158
+
159
+ We'd like to offer a big thanks to the 9 contributors who made this release possible. Here are some highlights ✨:
160
+
161
+ - ✨ Fix aggregation label not showing when `renderHeader` is used (#10961) @cherniavskii
162
+ - 📘 Server side data source [early documentation](https://mui.com/x/react-data-grid/server-side-data/) published
163
+ - 📈 `<ChartsReferenceLine />` component is now available
164
+ - 🐞 Bugfixes
165
+ - 📚 Documentation improvements
166
+
167
+ ### Data Grid
168
+
169
+ #### `@mui/x-data-grid@6.18.1`
170
+
171
+ - [DataGrid] Fix cell value type in quick filtering v7 (#10884) @cherniavskii
172
+ - [DataGrid] Fix keyboard navigation for actions cell with disabled buttons (#10947) @michelengelen
173
+ - [DataGrid] Fix `undefined` slot values (#10934) @romgrk
174
+
175
+ #### `@mui/x-data-grid-pro@6.18.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
176
+
177
+ Same changes as in `@mui/x-data-grid@6.18.1`, plus:
178
+
179
+ - [DataGridPro] Add data source interface and basic documentation (#10543) @MBilalShafi
180
+
181
+ #### `@mui/x-data-grid-premium@6.18.1` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
182
+
183
+ Same changes as in `@mui/x-data-grid-pro@6.18.1`, plus:
184
+
185
+ - [DataGridPremium] Render aggregation label when `renderHeader` is used (#10961) @cherniavskii
186
+
187
+ ### Date Pickers
188
+
189
+ #### `@mui/x-date-pickers@6.18.1`
190
+
191
+ - [fields] Fix multi input date time field section selection (#10915) @noraleonte
192
+ - [pickers] Always use up-to-date `defaultView` (#10889) @LukasTy
193
+
194
+ #### `@mui/x-date-pickers-pro@6.18.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
195
+
196
+ Same changes as in `@mui/x-date-pickers@6.18.1`.
197
+
198
+ ### Charts / `@mui/x-charts@6.18.1`
199
+
200
+ - [charts] Add `<ChartsReferenceLine />` component (#10597) @wascou
201
+ - [charts] Improve properties JSDoc (#10931) @alexfauquette
202
+
203
+ ### Docs
204
+
205
+ - [docs] Fix charts docs as stable (#10888) @alexfauquette
206
+ - [docs] Document how to hide the legend (#10954) @alexfauquette
207
+
208
+ ### Core
209
+
210
+ - [core] Adds new alpha version to version select on the docs (#10944) @michelengelen
211
+ - [core] Fix GitHub title tag consistency @oliviertassinari
212
+
6
213
  ## 6.18.0
7
214
 
8
215
  _Nov 3, 2023_
@@ -357,7 +564,7 @@ Same changes as in `@mui/x-date-pickers@6.16.1`, plus:
357
564
 
358
565
  - [core] Fix casing consistency with legal and marketing content @oliviertassinari
359
566
  - [core] Revert the link in the priority support ticket description (#10517) @michelengelen
360
- - [CHANGELOG] Polish image @oliviertassinari
567
+ - [changelog] Polish image @oliviertassinari
361
568
 
362
569
  ## 6.16.0
363
570
 
@@ -1149,7 +1356,7 @@ Same changes as in `@mui/x-date-pickers@6.10.1`.
1149
1356
  ### Core
1150
1357
 
1151
1358
  - [core] Add `validate` command (#9714) @romgrk
1152
- - [CHANGELOG] Update generator to new format @oliviertassinari
1359
+ - [changelog] Update generator to new format @oliviertassinari
1153
1360
 
1154
1361
  ## 6.10.0
1155
1362
 
@@ -1207,7 +1414,7 @@ Same changes as in `@mui/x-date-pickers@6.10.0`.
1207
1414
 
1208
1415
  - [core] Disambiguate eslint plugin name @oliviertassinari
1209
1416
  - [core] Update priority support issue template and prompt (#9574) @DanailH
1210
- - [CHANGELOG] Clarify each plan (#9446) @oliviertassinari
1417
+ - [changelog] Clarify each plan (#9446) @oliviertassinari
1211
1418
  - [license] Fix error terminology (#9614) @oliviertassinari
1212
1419
 
1213
1420
  ## 6.9.2
@@ -1356,8 +1563,8 @@ Same changes as in `@mui/x-date-pickers@6.9.1`.
1356
1563
  - [core] Fix priority support prompt action (#9472) @DanailH
1357
1564
  - [core] Update `uses` for priority support action (#9480) @DanailH
1358
1565
  - [core] Bumb update monorepo (#9476) @alexfauquette
1359
- - [CHANGELOG] Fix media quality (#9439) @oliviertassinari
1360
- - [CHANGELOG] Remove height img attribute @oliviertassinari
1566
+ - [changelog] Fix media quality (#9439) @oliviertassinari
1567
+ - [changelog] Remove height img attribute @oliviertassinari
1361
1568
  - [test] Skip flaky row pinning tests in JSDOM (#9511) @cherniavskii
1362
1569
 
1363
1570
  ## 6.9.0
@@ -65,8 +65,7 @@ export declare const createFakeServer: (dataSetOptions?: Partial<UseDemoDataOpti
65
65
  disableColumnMenu?: boolean | undefined;
66
66
  filterable?: boolean | undefined;
67
67
  filterOperators?: GridFilterOperator<any, any, any>[] | undefined;
68
- getApplyQuickFilterFn?: import("@mui/x-data-grid/models/colDef/gridColDef").GetApplyQuickFilterFnLegacy<any, any, any> | undefined;
69
- getApplyQuickFilterFnV7?: import("@mui/x-data-grid/models/colDef/gridColDef").GetApplyQuickFilterFnV7<any, any> | undefined;
68
+ getApplyQuickFilterFn?: import("@mui/x-data-grid-pro").GetApplyQuickFilterFn<any, any> | undefined;
70
69
  disableReorder?: boolean | undefined;
71
70
  disableExport?: boolean | undefined;
72
71
  colSpan?: number | ((params: import("@mui/x-data-grid-pro").GridCellParams<any, any, any, import("@mui/x-data-grid-pro").GridTreeNode>) => number | undefined) | undefined;
@@ -112,8 +111,7 @@ export declare const createFakeServer: (dataSetOptions?: Partial<UseDemoDataOpti
112
111
  disableColumnMenu?: boolean | undefined;
113
112
  filterable?: boolean | undefined;
114
113
  filterOperators?: GridFilterOperator<any, any, any>[] | undefined;
115
- getApplyQuickFilterFn?: import("@mui/x-data-grid/models/colDef/gridColDef").GetApplyQuickFilterFnLegacy<any, any, any> | undefined;
116
- getApplyQuickFilterFnV7?: import("@mui/x-data-grid/models/colDef/gridColDef").GetApplyQuickFilterFnV7<any, any> | undefined;
114
+ getApplyQuickFilterFn?: import("@mui/x-data-grid-pro").GetApplyQuickFilterFn<any, any> | undefined;
117
115
  disableReorder?: boolean | undefined;
118
116
  disableExport?: boolean | undefined;
119
117
  colSpan?: number | ((params: import("@mui/x-data-grid-pro").GridCellParams<any, any, any, import("@mui/x-data-grid-pro").GridTreeNode>) => number | undefined) | undefined;
@@ -161,8 +159,7 @@ export declare const createFakeServer: (dataSetOptions?: Partial<UseDemoDataOpti
161
159
  disableColumnMenu?: boolean | undefined;
162
160
  filterable?: boolean | undefined;
163
161
  filterOperators?: GridFilterOperator<any, any, any>[] | undefined;
164
- getApplyQuickFilterFn?: import("@mui/x-data-grid/models/colDef/gridColDef").GetApplyQuickFilterFnLegacy<any, any, any> | undefined;
165
- getApplyQuickFilterFnV7?: import("@mui/x-data-grid/models/colDef/gridColDef").GetApplyQuickFilterFnV7<any, any> | undefined;
162
+ getApplyQuickFilterFn?: import("@mui/x-data-grid-pro").GetApplyQuickFilterFn<any, any> | undefined;
166
163
  disableReorder?: boolean | undefined;
167
164
  disableExport?: boolean | undefined;
168
165
  colSpan?: number | ((params: import("@mui/x-data-grid-pro").GridCellParams<any, any, any, import("@mui/x-data-grid-pro").GridTreeNode>) => number | undefined) | undefined;
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-generator v6.18.0
2
+ * @mui/x-data-grid-generator v7.0.0-alpha.0
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
package/legacy/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-generator v6.18.0
2
+ * @mui/x-data-grid-generator v7.0.0-alpha.0
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-generator v6.18.0
2
+ * @mui/x-data-grid-generator v7.0.0-alpha.0
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-generator v6.18.0
2
+ * @mui/x-data-grid-generator v7.0.0-alpha.0
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-data-grid-generator",
3
- "version": "6.18.0",
3
+ "version": "7.0.0-alpha.0",
4
4
  "description": "Generate fake data for demo purposes only.",
5
5
  "author": "MUI Team",
6
6
  "main": "./node/index.js",
@@ -21,7 +21,7 @@
21
21
  "dependencies": {
22
22
  "@babel/runtime": "^7.23.2",
23
23
  "@mui/base": "^5.0.0-beta.22",
24
- "@mui/x-data-grid-premium": "6.18.0",
24
+ "@mui/x-data-grid-premium": "7.0.0-alpha.0",
25
25
  "chance": "^1.1.11",
26
26
  "clsx": "^2.0.0",
27
27
  "lru-cache": "^7.18.3"