@mui/x-data-grid-generator 6.0.0-alpha.10 → 6.0.0-alpha.13
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 +373 -0
- package/hooks/useDemoData.d.ts +2 -2
- package/hooks/useMovieData.d.ts +3 -3
- package/hooks/useQuery.d.ts +2 -2
- package/index.js +1 -1
- package/legacy/index.js +1 -1
- package/modern/index.js +1 -1
- package/node/index.js +1 -1
- package/package.json +4 -4
- package/services/gridColDefGenerator.d.ts +2 -2
- package/services/random-generator.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,325 @@
|
|
|
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-alpha.13
|
|
7
|
+
|
|
8
|
+
_Dec 24, 2022_
|
|
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
|
+
- 🚀 New column menu design and API
|
|
13
|
+
- 🌍 Improve Russian (ru-RU) and Korean (ko-KR) locales
|
|
14
|
+
- 📚 Documentation improvements
|
|
15
|
+
- 🐞 Bugfixes
|
|
16
|
+
|
|
17
|
+
### `@mui/x-data-grid@6.0.0-alpha.13` / `@mui/x-data-grid-pro@6.0.0-alpha.13` / `@mui/x-data-grid-premium@6.0.0-alpha.13`
|
|
18
|
+
|
|
19
|
+
#### Breaking changes
|
|
20
|
+
|
|
21
|
+
- New column menu design and API (#6619) MBilalShafi
|
|
22
|
+
|
|
23
|
+
The `currentColumn` prop passed to `components.ColumnMenu` was renamed to `colDef`.
|
|
24
|
+
The `column` prop passed to the items of the column menu was renamed to `colDef`.
|
|
25
|
+
The `DATA_GRID_DEFAULT_SLOTS_COMPONENTS` export has been removed.
|
|
26
|
+
The following components and interfaces were been renamed for consistency:
|
|
27
|
+
|
|
28
|
+
**Community Package:**
|
|
29
|
+
|
|
30
|
+
```diff
|
|
31
|
+
-<GridFilterMenuItem />
|
|
32
|
+
+<GridColumnMenuFilterItem />
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
```diff
|
|
36
|
+
-<HideGridColMenuItem />
|
|
37
|
+
+<GridColumnMenuHideItem />
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
```diff
|
|
41
|
+
-<GridColumnsMenuItem />
|
|
42
|
+
+<GridColumnMenuColumnsItem />
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
```diff
|
|
46
|
+
-<SortGridMenuItems />
|
|
47
|
+
+<GridColumnMenuSortItem />
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
```diff
|
|
51
|
+
-interface GridFilterItemProps
|
|
52
|
+
+interface GridColumnMenuItemProps
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
**Pro package:**
|
|
56
|
+
|
|
57
|
+
```diff
|
|
58
|
+
-<GridColumnPinningMenuItems />
|
|
59
|
+
+<GridColumnMenuPinningItem />
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
**Premium package:**
|
|
63
|
+
|
|
64
|
+
```diff
|
|
65
|
+
-<GridAggregationColumnMenuItem />
|
|
66
|
+
+<GridColumnMenuAggregationItem />
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
```diff
|
|
70
|
+
-<GridRowGroupingColumnMenuItems />
|
|
71
|
+
-<GridRowGroupableColumnMenuItems />
|
|
72
|
+
+<GridColumnMenuGroupingItem />
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
- Improve column definition typing (#7224) @cherniavskii
|
|
76
|
+
|
|
77
|
+
The `GridColumns` type was removed. Use `GridColDef[]` instead.
|
|
78
|
+
The `GridActionsColDef` interface was removed. Use `GridColDef` instead.
|
|
79
|
+
The `GridEnrichedColDef` type was removed. Use `GridColDef` instead.
|
|
80
|
+
The `GridStateColDef` type was removed.
|
|
81
|
+
|
|
82
|
+
If you use it to type `searchPredicate`, use `GridColumnsPanelProps['searchPredicate']` instead.
|
|
83
|
+
If you use it to type `getApplyFilterFn`, `GridFilterOperator['getApplyFilterFn']` can be used as replacement.
|
|
84
|
+
|
|
85
|
+
- Remove GridDensityType enum (#7304) @cherniavskii
|
|
86
|
+
|
|
87
|
+
The `GridDensityTypes` enum was removed. Use `GridDensity` type instead.
|
|
88
|
+
|
|
89
|
+
#### Changes
|
|
90
|
+
|
|
91
|
+
- [DataGrid] Allow disabling of buttons in column panel (#6947) @MBilalShafi
|
|
92
|
+
- [DataGrid] Improve column definition typing (#7224) @cherniavskii
|
|
93
|
+
- [DataGrid] Improve column menu design and API (#6619) @MBilalShafi
|
|
94
|
+
- [DataGrid] Remove `GridDensityType` enum (#7304) @cherniavskii
|
|
95
|
+
- [DataGrid] Remove `rowHeight` and `headerHeight` from state (#7199) @DanailH
|
|
96
|
+
- [DataGrid] Remove column separator to match table styles (#7067) @MBilalShafi
|
|
97
|
+
- [DataGrid] Update Russian (ru-RU) locale (#7220) @VeceluXa
|
|
98
|
+
- [DataGridPro] Use row ID as `key` of the detail panels (#7302) @m4theushw
|
|
99
|
+
- [DataGridPremium] Fix `exceljs` import with parcel (#7284) @alexfauquette
|
|
100
|
+
|
|
101
|
+
### `@mui/x-date-pickers@6.0.0-alpha.13` / `@mui/x-date-pickers-pro@6.0.0-alpha.13`
|
|
102
|
+
|
|
103
|
+
#### Breaking changes
|
|
104
|
+
|
|
105
|
+
- Require Luxon 3.0.2 or higher (#7249) @flaviendelangle
|
|
106
|
+
|
|
107
|
+
`AdapterLuxon` now requires `luxon` in version `3.0.2` or higher in order to work.
|
|
108
|
+
|
|
109
|
+
Take a look at the [Upgrading Luxon](https://moment.github.io/luxon/#/upgrading) guide if you are using an older version.
|
|
110
|
+
|
|
111
|
+
#### Changes
|
|
112
|
+
|
|
113
|
+
- [DateRangePicker] Fix to propagate `disabled` and `readOnly` on multi input picker (#7135) @LukasTy
|
|
114
|
+
- [fields] Fix multi input fields root element props order and types (#7225) @LukasTy
|
|
115
|
+
- [fields] Support escaped characters (#7184) @flaviendelangle
|
|
116
|
+
- [pickers] Allow to define custom view renderers on the pickers (#7176) @flaviendelangle
|
|
117
|
+
- [pickers] Avoid running validation methods several times in `DateCalendar` (#7247) @flaviendelangle
|
|
118
|
+
- [pickers] Improve Korean (ko-KR) locale (#7266) @hanbin9775
|
|
119
|
+
- [pickers] Require Luxon 3.0.2 or higher (#7249) @flaviendelangle
|
|
120
|
+
- [pickers] Rework view internals (#7097) @flaviendelangle
|
|
121
|
+
|
|
122
|
+
### `@mui/x-codemod@6.0.0-alpha.13`
|
|
123
|
+
|
|
124
|
+
#### Changes
|
|
125
|
+
|
|
126
|
+
- [codemod] New codemod for view component renaming (#7264) @flaviendelangle
|
|
127
|
+
|
|
128
|
+
### Docs
|
|
129
|
+
|
|
130
|
+
- [docs] Fix some selectors not being documented (#7218) @cherniavskii
|
|
131
|
+
- [docs] New page for `DateCalendar` (#7053) @flaviendelangle
|
|
132
|
+
- [docs] Split selection docs (#7213) @m4theushw
|
|
133
|
+
|
|
134
|
+
### Core
|
|
135
|
+
|
|
136
|
+
- [core] Fix API demos callout spacing @oliviertassinari
|
|
137
|
+
|
|
138
|
+
## 6.0.0-alpha.12
|
|
139
|
+
|
|
140
|
+
_Dec 16, 2022_
|
|
141
|
+
|
|
142
|
+
We'd like to offer a big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
|
|
143
|
+
|
|
144
|
+
- 🚀 The `apiRef` prop is now available in the `@mui/x-data-grid` package:
|
|
145
|
+
|
|
146
|
+
```tsx
|
|
147
|
+
const apiRef = useGridApiRef();
|
|
148
|
+
|
|
149
|
+
return (
|
|
150
|
+
<DataGrid apiRef={apiRef} {...other} />
|
|
151
|
+
)
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
See [the documentation](https://next.mui.com/x/react-data-grid/api-object/) for more information.
|
|
155
|
+
|
|
156
|
+
- 🎁 The `DataGridPremium` now supports cell selection:
|
|
157
|
+
|
|
158
|
+
```tsx
|
|
159
|
+
<DataGridPremium unstable_cellSelection />
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
See [the documentation](https://next.mui.com/x/react-data-grid/selection/#cell-selection) for more information
|
|
163
|
+
|
|
164
|
+
- 🌍 Support the Right To Left orientation on the fields components
|
|
165
|
+
- 📚 Documentation improvements
|
|
166
|
+
- 🐞 Bugfixes
|
|
167
|
+
|
|
168
|
+
### `@mui/x-data-grid@v6.0.0-alpha.12` / `@mui/x-data-grid-pro@v6.0.0-alpha.12` / `@mui/x-data-grid-premium@v6.0.0-alpha.12`
|
|
169
|
+
|
|
170
|
+
#### Breaking changes
|
|
171
|
+
|
|
172
|
+
- The `showCellRightBorder` was renamed to `showCellVerticalBorder`
|
|
173
|
+
- The `showColumnRightBorder` was renamed to `showColumnVerticalBorder`
|
|
174
|
+
- The `.MuiDataGrid-withBorder` CSS class was renamed to `.MuiDataGrid-withBorderColor` and it only sets `border-color` CSS property now.
|
|
175
|
+
- The following undocumented properties from `apiRef` were removed: `footerRef`, `headerRef`, `columnHeadersElementRef`, `columnHeadersContainerElementRef`
|
|
176
|
+
- The `GridHeaderPlaceholder` component was removed.
|
|
177
|
+
- The `MAX_PAGE_SIZE` constant was removed.
|
|
178
|
+
- The `useGridScrollFn` hook was removed.
|
|
179
|
+
|
|
180
|
+
#### Changes
|
|
181
|
+
|
|
182
|
+
- [DataGrid] Display sort column menu items as per `sortingOrder` prop (#7180) @MBilalShafi
|
|
183
|
+
- [DataGrid] Support `apiRef` in Community package (#6773) @cherniavskii
|
|
184
|
+
- [DataGridPremium] Add support for cell selection (#6567) @m4theushw
|
|
185
|
+
- [DataGridPremium] Use separate cache for aggregation columns pre-processor (#7142) @m4theushw
|
|
186
|
+
- [DataGridPro] Fix missing border in right-pinned columns (#4197) @cherniavskii
|
|
187
|
+
- [DataGridPro] Fix wrong border color on skeleton cells (#7202) @cherniavskii
|
|
188
|
+
|
|
189
|
+
### `@mui/x-date-pickers@v6.0.0-alpha.12` / `@mui/x-date-pickers-pro@v6.0.0-alpha.12`
|
|
190
|
+
|
|
191
|
+
#### Changes
|
|
192
|
+
|
|
193
|
+
- [fields] Fix bug introduced by RTL in single input range fields (#7189) @alexfauquette
|
|
194
|
+
- [fields] Support RTL out of the box (#6715) @alexfauquette
|
|
195
|
+
- [pickers] Clean `autoFocus` behavior on fields and new pickers (#7153) @flaviendelangle
|
|
196
|
+
- [pickers] Fix label on the new range pickers (#7210) @flaviendelangle
|
|
197
|
+
- [pickers] Fix wrong component name on `StaticNextDateTime` (#7187) @flaviendelangle
|
|
198
|
+
|
|
199
|
+
### Docs
|
|
200
|
+
|
|
201
|
+
- [docs] Add docs section about field placeholders' localization (#7139) @flaviendelangle
|
|
202
|
+
- [docs] Create a `DemoGrid` component to unify demos with several components (#7057) @flaviendelangle
|
|
203
|
+
- [docs] Document aggregation selectors (#7148) @cherniavskii
|
|
204
|
+
- [docs] Fix 301 links to demo pages in API pages (#7197) @oliviertassinari
|
|
205
|
+
- [docs] Fix errors and warning in demos (#7209) @LukasTy
|
|
206
|
+
- [docs] Use `DemoContainer` and `DemoItem` on every picker demo (#7149) @flaviendelangle
|
|
207
|
+
|
|
208
|
+
### Core
|
|
209
|
+
|
|
210
|
+
- [core] Fix broken test (#7179) @flaviendelangle
|
|
211
|
+
|
|
212
|
+
## 6.0.0-alpha.11
|
|
213
|
+
|
|
214
|
+
_Dec 8, 2022_
|
|
215
|
+
|
|
216
|
+
We'd like to offer a big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
|
|
217
|
+
|
|
218
|
+
- 🚀 Add dragging support for the new Date Range Picker (`NextDateRangePicker`) (#6763) @LukasTy
|
|
219
|
+
- ⚡️ Improve performance of the `day` view (#7066) @flaviendelangle
|
|
220
|
+
- ✨ Fix lazy-loading feature not working in `DataGridPremium` (#7124) @m4theushw
|
|
221
|
+
- 🐞 Bugfixes
|
|
222
|
+
|
|
223
|
+
### `@mui/x-data-grid@v6.0.0-alpha.11` / `@mui/x-data-grid-pro@v6.0.0-alpha.11` / `@mui/x-data-grid-premium@v6.0.0-alpha.11`
|
|
224
|
+
|
|
225
|
+
#### Breaking changes
|
|
226
|
+
|
|
227
|
+
- The `filterPanelOperators` translation key was renamed to `filterPanelOperator` (#7062) @MBilalShafi
|
|
228
|
+
- The `components.Header` slot was removed. Use `components.Toolbar` slot instead (#6999) @cherniavskii
|
|
229
|
+
|
|
230
|
+
#### Changes
|
|
231
|
+
|
|
232
|
+
- [DataGrid] Fix rows not rendering properly after height change (#6892) @MBilalShafi
|
|
233
|
+
- [DataGrid] Remove `Header` slot (#6999) @cherniavskii
|
|
234
|
+
- [DataGrid] Rename `filterPanelOperators` -> `filterPanelOperator` (#7062) @MBilalShafi
|
|
235
|
+
- [DataGridPremium] Add support for lazy-loading (#7124) @m4theushw
|
|
236
|
+
- [DataGridPremium] Pass `groupId` to aggregation function (#7003) @m4theushw
|
|
237
|
+
|
|
238
|
+
### `@mui/x-date-pickers@v6.0.0-alpha.11` / `@mui/x-date-pickers-pro@v6.0.0-alpha.11`
|
|
239
|
+
|
|
240
|
+
#### Breaking changes
|
|
241
|
+
|
|
242
|
+
- Remove the callback version of the `action` prop on the `actionBar` slot (#7038) @flaviendelangle
|
|
243
|
+
|
|
244
|
+
The `action` prop of the `actionBar` slot is no longer supporting a callback.
|
|
245
|
+
Instead, you can pass a callback at the slot level:
|
|
246
|
+
|
|
247
|
+
```diff
|
|
248
|
+
<DatePicker
|
|
249
|
+
componentsProps={{
|
|
250
|
+
- actionBar: {
|
|
251
|
+
- actions: (variant) => (variant === 'desktop' ? [] : ['clear']),
|
|
252
|
+
- },
|
|
253
|
+
+ actionBar: ({ wrapperVariant }) => ({
|
|
254
|
+
+ actions: wrapperVariant === 'desktop' ? [] : ['clear'],
|
|
255
|
+
+ }),
|
|
256
|
+
}}
|
|
257
|
+
/>
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
- The `selectedDays` prop has been removed from the `Day` component (#7066) @flaviendelangle
|
|
261
|
+
If you need to access it, you can control the value and pass it to the slot using `componentsProps`:
|
|
262
|
+
|
|
263
|
+
```tsx
|
|
264
|
+
function CustomDay({ selectedDay, ...other }) {
|
|
265
|
+
// do something with 'selectedDay'
|
|
266
|
+
return <PickersDay {...other} />;
|
|
267
|
+
}
|
|
268
|
+
function App() {
|
|
269
|
+
const [value, setValue] = React.useState(null);
|
|
270
|
+
return (
|
|
271
|
+
<DatePicker
|
|
272
|
+
value={value}
|
|
273
|
+
onChange={(newValue) => setValue(newValue)}
|
|
274
|
+
components={{ Day: CustomDay }}
|
|
275
|
+
componentsProps={{
|
|
276
|
+
day: { selectedDay: value },
|
|
277
|
+
}}
|
|
278
|
+
/>
|
|
279
|
+
);
|
|
280
|
+
}
|
|
281
|
+
```
|
|
282
|
+
|
|
283
|
+
- The `currentlySelectingRangeEnd` / `setCurrentlySelectingRangeEnd` props on the Date Range Picker toolbar have been renamed to `rangePosition` / `onRangePositionChange` (#6989) @flaviendelangle
|
|
284
|
+
|
|
285
|
+
```diff
|
|
286
|
+
const CustomToolbarComponent = props => (
|
|
287
|
+
<div>
|
|
288
|
+
- <button onChange={() => props.setCurrentlySelectingRangeEnd('end')}>Edit end date</button>
|
|
289
|
+
+ <button onClick={() => props.onRangePositionChange('end')}>Edit end date</button>
|
|
290
|
+
- <div>Is editing end date: {props.currentlySelectingRangeEnd === 'end'}</div>
|
|
291
|
+
+ <div>Is editing end date: {props.rangePosition === 'end'}</div>
|
|
292
|
+
</div>
|
|
293
|
+
)
|
|
294
|
+
<DateRangePicker
|
|
295
|
+
components={{
|
|
296
|
+
Toolbar: CustomToolbarComponent
|
|
297
|
+
}}
|
|
298
|
+
/>
|
|
299
|
+
```
|
|
300
|
+
|
|
301
|
+
#### Changes
|
|
302
|
+
|
|
303
|
+
- [DateRangePicker] Add dragging support to edit range (#6763) @LukasTy
|
|
304
|
+
- [pickers] Fix lost props on Date Range Pickers (#7092) @flaviendelangle
|
|
305
|
+
- [pickers] Fix toolbar on the new range pickers (#6989) @flaviendelangle
|
|
306
|
+
- [pickers] Improve performance of `DayCalendar` (#7066) @flaviendelangle
|
|
307
|
+
- [pickers] Initialize date without time when selecting year or month (#7120) @LukasTy
|
|
308
|
+
- [pickers] Remove the callback version of the `action` prop in the `actionBar` component slot (#7038) @flaviendelangle
|
|
309
|
+
|
|
310
|
+
### Docs
|
|
311
|
+
|
|
312
|
+
- [docs] Add `GridCell` change in migration guide (#7087) @MBilalShafi
|
|
313
|
+
- [docs] Fix API page ad space regression (#7051) @oliviertassinari
|
|
314
|
+
- [docs] Update localization doc to use existing locale (#7102) @LukasTy
|
|
315
|
+
|
|
316
|
+
### Core
|
|
317
|
+
|
|
318
|
+
- [core] Add codemod to move l10n translation (#7027) @alexfauquette
|
|
319
|
+
- [core] Add notes to remove the legacy pickers internals (#7133) @flaviendelangle
|
|
320
|
+
- [core] Remove `internals-fields` imports (#7119) @flaviendelangle
|
|
321
|
+
- [core] Remove unused code (#7094) @flaviendelangle
|
|
322
|
+
- [core] Sync `ApiPage.js` with monorepo (#7073) @oliviertassinari
|
|
323
|
+
- [test] Fix karma-mocha assertion error messages (#7054) @cherniavskii
|
|
324
|
+
|
|
6
325
|
## 6.0.0-alpha.10
|
|
7
326
|
|
|
8
327
|
_Dec 1, 2022_
|
|
@@ -1188,6 +1507,60 @@ You can find more information about the new api, including how to set those tran
|
|
|
1188
1507
|
- [test] Skip tests for column pinning and dynamic row height (#5997) @m4theushw
|
|
1189
1508
|
- [website] Improve security header @oliviertassinari
|
|
1190
1509
|
|
|
1510
|
+
## 5.17.16
|
|
1511
|
+
|
|
1512
|
+
_Dec 16, 2022_
|
|
1513
|
+
|
|
1514
|
+
We'd like to offer a big thanks to the 4 contributors who made this release possible. Here are some highlights ✨:
|
|
1515
|
+
|
|
1516
|
+
- 🐞 Bugfixes
|
|
1517
|
+
|
|
1518
|
+
### `@mui/x-data-grid@v5.17.16` / `@mui/x-data-grid-pro@v5.17.16` / `@mui/x-data-grid-premium@v5.17.16`
|
|
1519
|
+
|
|
1520
|
+
#### Changes
|
|
1521
|
+
|
|
1522
|
+
- [DataGrid] Display sort column menu items as per `sortingOrder` prop (#7125) @hanbin9775
|
|
1523
|
+
- [DataGrid] Fix flickering on mount (#7155) @cherniavskii
|
|
1524
|
+
- [DataGridPremium] Use separate cache for aggregation columns pre-processor (#7174) @m4theushw
|
|
1525
|
+
|
|
1526
|
+
### `@mui/x-date-pickers@v5.0.11` / `@mui/x-date-pickers-pro@v5.0.11`
|
|
1527
|
+
|
|
1528
|
+
#### Changes
|
|
1529
|
+
|
|
1530
|
+
- [DateTimePicker] Update export pattern (#7172) @kealjones-wk
|
|
1531
|
+
|
|
1532
|
+
### Docs
|
|
1533
|
+
|
|
1534
|
+
- [docs] Document aggregation selectors (#7151) @cherniavskii
|
|
1535
|
+
|
|
1536
|
+
## 5.17.15
|
|
1537
|
+
|
|
1538
|
+
_Dec 8, 2022_
|
|
1539
|
+
|
|
1540
|
+
We'd like to offer a big thanks to the 4 contributors who made this release possible. Here are some highlights ✨:
|
|
1541
|
+
|
|
1542
|
+
- ✨ Fix lazy-loading not working in `DataGridPremium` (#7130) @m4theushw
|
|
1543
|
+
- 🐞 Bugfixes
|
|
1544
|
+
|
|
1545
|
+
### `@mui/x-data-grid@v5.17.15` / `@mui/x-data-grid-pro@v5.17.15` / `@mui/x-data-grid-premium@v5.17.15`
|
|
1546
|
+
|
|
1547
|
+
#### Changes
|
|
1548
|
+
|
|
1549
|
+
- [DataGridPremium] Add support for lazy-loading (#7130) @m4theushw
|
|
1550
|
+
- [DataGridPremium] Pass `groupId` to the aggregation function (#7143) @m4theushw
|
|
1551
|
+
|
|
1552
|
+
### `@mui/x-date-pickers@v5.0.10` / `@mui/x-date-pickers-pro@v5.0.10`
|
|
1553
|
+
|
|
1554
|
+
#### Changes
|
|
1555
|
+
|
|
1556
|
+
- [pickers] Initialize date without time when selecting year or month (#7136) @LukasTy
|
|
1557
|
+
|
|
1558
|
+
### Docs
|
|
1559
|
+
|
|
1560
|
+
- [docs] Fix the nested import on the api pages (#7134) @flaviendelangle
|
|
1561
|
+
- [docs] Keep track of the localization completion (#7099) @alexfauquette
|
|
1562
|
+
- [docs] Update localization doc to use existing locale (#7104) @LukasTy
|
|
1563
|
+
|
|
1191
1564
|
## 5.17.14
|
|
1192
1565
|
|
|
1193
1566
|
_Dec 1, 2022_
|
package/hooks/useDemoData.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { GridColumnVisibilityModel } from '@mui/x-data-grid-premium';
|
|
2
2
|
import { GridColDefGenerator } from '../services/gridColDefGenerator';
|
|
3
3
|
import { AddPathToDemoDataOptions, DemoTreeDataValue } from '../services/tree-data-generator';
|
|
4
|
-
export
|
|
4
|
+
export type DemoDataReturnType = {
|
|
5
5
|
data: DemoTreeDataValue;
|
|
6
6
|
loading: boolean;
|
|
7
7
|
setRowLength: (count: number) => void;
|
|
8
8
|
loadNewData: () => void;
|
|
9
9
|
};
|
|
10
|
-
|
|
10
|
+
type DataSet = 'Commodity' | 'Employee';
|
|
11
11
|
export interface UseDemoDataOptions {
|
|
12
12
|
dataSet: DataSet;
|
|
13
13
|
rowLength: number;
|
package/hooks/useMovieData.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
1
|
+
import { GridColDef } from '@mui/x-data-grid-premium';
|
|
2
|
+
export type Movie = {
|
|
3
3
|
id: number;
|
|
4
4
|
title: string;
|
|
5
5
|
gross: number;
|
|
@@ -15,5 +15,5 @@ export declare type Movie = {
|
|
|
15
15
|
};
|
|
16
16
|
export declare const useMovieData: () => {
|
|
17
17
|
rows: Movie[];
|
|
18
|
-
columns:
|
|
18
|
+
columns: GridColDef<any, any, any>[];
|
|
19
19
|
};
|
package/hooks/useQuery.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ interface DefaultServerOptions {
|
|
|
20
20
|
maxDelay: number;
|
|
21
21
|
useCursorPagination?: boolean;
|
|
22
22
|
}
|
|
23
|
-
|
|
23
|
+
type ServerOptions = Partial<DefaultServerOptions>;
|
|
24
24
|
export interface QueryOptions {
|
|
25
25
|
cursor?: GridRowId;
|
|
26
26
|
page?: number;
|
|
@@ -69,7 +69,7 @@ export declare const createFakeServer: (dataSetOptions?: Partial<UseDemoDataOpti
|
|
|
69
69
|
disableColumnMenu?: boolean | undefined;
|
|
70
70
|
filterable?: boolean | undefined;
|
|
71
71
|
filterOperators?: GridFilterOperator<any, any, any>[] | undefined;
|
|
72
|
-
getApplyQuickFilterFn?: ((value: any, colDef: import("@mui/x-data-grid
|
|
72
|
+
getApplyQuickFilterFn?: ((value: any, colDef: import("@mui/x-data-grid/internals").GridStateColDef<any, any, any>, apiRef: React.MutableRefObject<import("@mui/x-data-grid/internals").GridApiCommunity>) => ((params: import("@mui/x-data-grid-pro").GridCellParams<any, any, any, import("@mui/x-data-grid-pro").GridTreeNode>) => boolean) | null) | undefined;
|
|
73
73
|
disableReorder?: boolean | undefined;
|
|
74
74
|
disableExport?: boolean | undefined;
|
|
75
75
|
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
package/legacy/index.js
CHANGED
package/modern/index.js
CHANGED
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": "6.0.0-alpha.
|
|
3
|
+
"version": "6.0.0-alpha.13",
|
|
4
4
|
"description": "Generate fake data for demo purposes only.",
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"main": "./node/index.js",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"directory": "packages/grid/x-data-grid-generator"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@babel/runtime": "^7.20.
|
|
23
|
-
"@mui/base": "^5.0.0-alpha.
|
|
24
|
-
"@mui/x-data-grid-premium": "6.0.0-alpha.
|
|
22
|
+
"@babel/runtime": "^7.20.6",
|
|
23
|
+
"@mui/base": "^5.0.0-alpha.109",
|
|
24
|
+
"@mui/x-data-grid-premium": "6.0.0-alpha.13",
|
|
25
25
|
"chance": "^1.1.9",
|
|
26
26
|
"clsx": "^1.2.1",
|
|
27
27
|
"lru-cache": "^7.14.1"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GridBaseColDef } from '@mui/x-data-grid-pro/internals';
|
|
2
2
|
export interface GridDataGeneratorContext {
|
|
3
3
|
/**
|
|
4
4
|
* Values already attributed to this column.
|
|
@@ -8,7 +8,7 @@ export interface GridDataGeneratorContext {
|
|
|
8
8
|
*/
|
|
9
9
|
values?: Record<string, number>;
|
|
10
10
|
}
|
|
11
|
-
export interface GridColDefGenerator extends
|
|
11
|
+
export interface GridColDefGenerator extends GridBaseColDef {
|
|
12
12
|
generateData?: (row: any, context: GridDataGeneratorContext) => any;
|
|
13
13
|
/**
|
|
14
14
|
* If `true`, each row will have a distinct value
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GridDataGeneratorContext } from './gridColDefGenerator';
|
|
2
|
-
|
|
2
|
+
type ColumnDataGenerator<Value> = (data: any, context: GridDataGeneratorContext) => Value;
|
|
3
3
|
export declare const random: (min: number, max: number) => number;
|
|
4
4
|
export declare const randomInt: (min: number, max: number) => number;
|
|
5
5
|
export declare const randomPrice: (min?: number, max?: number) => number;
|