@mui/x-data-grid-generator 6.0.0-beta.0 → 6.0.0-beta.4

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,230 @@
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-beta.4
7
+
8
+ _Feb 16, 2023_
9
+
10
+ We'd like to offer a big thanks to the 8 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - ⚡️ Improve grid performance by reducing rerenders (#7857) @cherniavskii
13
+ - 📚 Documentation improvements
14
+ - 🐞 Bugfixes
15
+
16
+ ### `@mui/x-data-grid@v6.0.0-beta.4` / `@mui/x-data-grid-pro@v6.0.0-beta.4` / `@mui/x-data-grid-premium@v6.0.0-beta.4`
17
+
18
+ #### Changes
19
+
20
+ - [DataGrid] Add interface for `singleSelect` column (#7685) @m4theushw
21
+ - [DataGrid] Allow to pass props to the `TrapFocus` inside the panel wrapper (#7733) @Vivek-Prajapatii
22
+ - [DataGrid] Avoid unnecessary rerenders after `updateRows` (#7857) @cherniavskii
23
+ - [DataGridPro] Change cursor when dragging a column (#7725) @sai6855
24
+ - [DataGridPremium] Fix `leafField` to have correct focus value (#7950) @MBilalShafi
25
+
26
+ ### `@mui/x-date-pickers@v6.0.0-beta.4` / `@mui/x-date-pickers-pro@v6.0.0-beta.4`
27
+
28
+ #### Changes
29
+
30
+ - [DateRangePicker] Fix slide transition by avoiding useless component re-rendering (#7874) @LukasTy
31
+ - [fields] Support Backspace key on `Android` (#7842) @flaviendelangle
32
+ - [fields] Support escaped characters on `Luxon` (#7888) @flaviendelangle
33
+ - [pickers] Prepare new pickers for custom fields (#7806) @flaviendelangle
34
+
35
+ ### `@mui/x-codemod@v6.0.0-beta.4`
36
+
37
+ #### Changes
38
+
39
+ - [codemod] Fix import path (#7952) @LukasTy
40
+
41
+ ### Docs
42
+
43
+ - [docs] Add an info callout specifying the current state of desktop time view (#7933) @LukasTy
44
+ - [docs] Add missing param in `useGridApiEventHandler` examples (#7939) @flaviendelangle
45
+ - [docs] Fix markdown table alignments (#7898) @oliviertassinari
46
+ - [docs] Improve `DataGrid` migration guide (#7861) @MBilalShafi
47
+ - [docs] Update `LocalizationProvider` `dateAdapter` with a link to the doc (#7872) @LukasTy
48
+
49
+ ### Core
50
+
51
+ - [core] Run editing field tests on all major adapters (#7868) @flaviendelangle
52
+
53
+ ## 6.0.0-beta.3
54
+
55
+ _Feb 9, 2023_
56
+
57
+ We'd like to offer a big thanks to the 11 contributors who made this release possible. Here are some highlights ✨:
58
+
59
+ - ⬅️ Add right-to-left support for the data grid (#6580) @yaredtsy
60
+ - ⚡️ Improve grid resize performance (#7864) @cherniavskii
61
+ - ✨ New codemods for migrating to v6 @MBilalShafi
62
+ - 📚 Documentation improvements
63
+ - 🐞 Bugfixes
64
+
65
+ ### `@mui/x-data-grid@v6.0.0-beta.3` / `@mui/x-data-grid-pro@v6.0.0-beta.3` / `@mui/x-data-grid-premium@v6.0.0-beta.3`
66
+
67
+ #### Changes
68
+
69
+ - [DataGrid] Add `BaseIconButton` component slot (#7329) @123joshuawu
70
+ - [DataGrid] Allow to customize the value displayed in the filter button tooltip (#6956) @ithrforu
71
+ - [DataGrid] Improve grid resize performance (#7864) @cherniavskii
72
+ - [DataGrid] Make `apiRef.current.getRowWithUpdatedValues` stable (#7788) @m4theushw
73
+ - [DataGrid] Support RTL (#6580) @yaredtsy
74
+ - [DataGrid] Improve query selectors for selecting cell element (#7354) @yaredtsy
75
+ - [l10n] Improve Brazilian Portuguese (pt-BR) locale (#7854) @ed-ateixeira
76
+
77
+ ### `@mui/x-date-pickers@v6.0.0-beta.3` / `@mui/x-date-pickers-pro@v6.0.0-beta.3`
78
+
79
+ #### Changes
80
+
81
+ - [fields] Allow to select year 2000 on 2-digit year section (#7858) @flaviendelangle
82
+ - [fields] Fix year editing on `day.js` (#7862) @flaviendelangle
83
+ - [fields] Fix year editing on valid date (#7834) @flaviendelangle
84
+ - [fields] Reset query when pressing `Backspace` or `Delete` (#7855) @flaviendelangle
85
+ - [pickers] Clean Popper position on new pickers (#7445) @flaviendelangle
86
+ - [pickers] Ditch pickers `skipLibCheck` (#7808) @LukasTy
87
+ - [pickers] Improve JSDoc and resulting API docs pages (#7847) @LukasTy
88
+
89
+ ### `@mui/x-codemod@v6.0.0-beta.3`
90
+
91
+ #### Changes
92
+
93
+ - [codemod] Add more cases to `rename-selectors-and-events` codemod (#7856) @MBilalShafi
94
+ - [codemod] Add warning message to the codemods and migration guide (#7813) @MBilalShafi
95
+ - [codemod] Add codemod to remove unnecessary `experimentalFeatures` flag (#7836) @MBilalShafi
96
+ - [codemod] Rename `GridFilterItem` props (#7483) @MBilalShafi
97
+ - [codemod] Rename `linkOperators` to `logicOperators` (#7707) @MBilalShafi
98
+ - [codemod] Replace `onCellFocusOut` prop for Data Grid (#7786) @MBilalShafi
99
+
100
+ ### Docs
101
+
102
+ - [docs] Add a "Whats new in v6" page linked on the sidebar (#7820) @joserodolfofreitas
103
+ - [docs] Fix hydration crash in pickers (#7734) @oliviertassinari
104
+ - [docs] Remove no longer relevant range shortcuts section (#7840) @LukasTy
105
+ - [docs] Use `@next` tag in grid and pickers installation instructions (#7814) @cherniavskii
106
+
107
+ ### Core
108
+
109
+ - [core] Remove `tslint` package leftovers (#7841) @LukasTy
110
+ - [test] Use `createDescribes` for `describeValue` and `describeValidation` (#7866) @flaviendelangle
111
+
112
+ ## 6.0.0-beta.2
113
+
114
+ We'd like to offer a big thanks to the 11 contributors who made this release possible. Here are some highlights ✨:
115
+
116
+ - 🚀 Support week day formats in the field components
117
+ - 🌍 Add Hungarian (hu-HU) and Urdu (ur-PK) locales
118
+ - 🌍 Improve French (fr-FR) and Italian (it-IT) locales
119
+ - ✨ New codemods for migrating to v6
120
+ - 📚 Documentation improvements
121
+ - 🐞 Bug fixes
122
+
123
+ ### `@mui/x-data-grid@v6.0.0-beta.2` / `@mui/x-data-grid-pro@v6.0.0-beta.2` / `@mui/x-data-grid-premium@v6.0.0-beta.2`
124
+
125
+ #### Changes
126
+
127
+ - [DataGrid] Handle non-numeric values returned by `getRowHeight` prop (#7703) @cherniavskii
128
+ - [DataGrid] Merge row styles with `componentsProps.row.style` (#7641) @marktoman
129
+ - [l10n] Add Hungarian (hu-HU) locale (#7776) @noherczeg
130
+ - [l10n] Add Urdu (ur-PK) locale (#6866) @MBilalShafi
131
+ - [l10n] Improve French (fr-FR) locale (#7777) @Vivek-Prajapatii
132
+ - [l10n] Improve Italian (it-IT) locale (#7761) @simonecervini
133
+
134
+ ### `@mui/x-date-pickers@v6.0.0-beta.2` / `@mui/x-date-pickers-pro@v6.0.0-beta.2`
135
+
136
+ #### Changes
137
+
138
+ - [fields] Support week day formats (#7392) @flaviendelangle
139
+ - [pickers] Allow to initialize and control the `rangePosition` on all range components (#7764) @flaviendelangle
140
+ - [pickers] Fix theme augmentation (#7800) @LukasTy
141
+ - [pickers] Hide scrollbars in the date calendar container (#7766) @Vivek-Prajapatii
142
+ - [pickers] Remove the dependency on `rifm` (#7785) @alexfauquette
143
+
144
+ ### `@mui/x-codemod@v6.0.0-beta.2`
145
+
146
+ #### Changes
147
+
148
+ - [codemod] Add pickers `rename-default-toolbar-title-localeText` codemod (#7752) @LukasTy
149
+ - [codemod] Add pickers `rename-inputFormat-prop` codemod (#7736) @LukasTy
150
+
151
+ ### Docs
152
+
153
+ - [docs] Fix a typo in data grid layout page (#7113) @sfbaker7
154
+ - [docs] Fix require context path to avoid duplicate key creation (#7781) @LukasTy
155
+ - [docs] Polish pickers migration docs (#7737) @LukasTy
156
+ - [docs] Rename `next` translation docs and remove duplicates with `-next` (#7729) @LukasTy
157
+
158
+ ### Core
159
+
160
+ - [core] Fix l10n data file (#7804) @flaviendelangle
161
+ - [core] Fix Next.js warning (#7754) @oliviertassinari
162
+ - [core] Remove unused demos (#7758) @flaviendelangle
163
+
164
+ ## 6.0.0-beta.1
165
+
166
+ _Jan 27, 2023_
167
+
168
+ We'd like to offer a big thanks to the 17 contributors who made this release possible. Here are some highlights ✨:
169
+
170
+ - 🚀 New shortcuts component for the date pickers (#7154) @alexfauquette
171
+ - 🌍 Add Belarusian (be-BY), Czech (cs-CZ) and Russian (ru-RU) locales
172
+ - 🌍 Improve Spanish (es-ES), Japanese (ja-JP), Slovak (sk-SK), and Vietnamese (vi-VN) locales
173
+ - ✨ New codemods for migrating to v6
174
+ - 📚 Documentation improvements
175
+ - 🐞 Bug fixes
176
+
177
+ ### `@mui/x-data-grid@v6.0.0-beta.1` / `@mui/x-data-grid-pro@v6.0.0-beta.1` / `@mui/x-data-grid-premium@v6.0.0-beta.1`
178
+
179
+ #### Changes
180
+
181
+ - [DataGrid] Add `title` attribute to cells (#7682) @thupi
182
+ - [DataGrid] Fix `autoHeight` not working properly inside of a flex container (#7701) @cherniavskii
183
+ - [DataGrid] Fix grid state not being updated after print preview is closed (#7642) @cherniavskii
184
+ - [DataGrid] Fix non-hideable columns visibility toggling (#7637) @cherniavskii
185
+ - [DataGrid] Fix scrolling on resize for data grids inside shadow root (#7298) @akiradev
186
+ - [l10n] Add Slovak (sk-SK) translation for aggregation functions (#7702) @msidlo
187
+ - [l10n] Add missing core locales for `MuiTablePagination` (#7717) @MBilalShafi
188
+ - [l10n] Improve Spanish (es-ES) and Vietnamese (vi-VN) locale (#7634) @WiXSL and @SpacerZ
189
+ - [l10n] Add Belarusian (be-BY) locale (#7646) @volhalink
190
+
191
+ ### `@mui/x-date-pickers@v6.0.0-beta.1` / `@mui/x-date-pickers-pro@v6.0.0-beta.1`
192
+
193
+ #### Changes
194
+
195
+ - [pickers] Fix `aria-labelledby` assignment to dialog (#7608) @LukasTy
196
+ - [pickers] Support `UTC` with `dayjs` (#7610) @flaviendelangle
197
+ - [pickers] Update focus when opening a UI view (#7620) @alexfauquette
198
+ - [DateRangePickers] Add shortcuts component (#7154) @alexfauquette
199
+ - [l10n] Add Czech (cs-CZ) locale (#7645) @OndrejHj04
200
+ - [l10n] Add Russian (ru-RU) locale (#7706) @rstmzh
201
+ - [l10n] Improve Japanese (ja-JP) locale (#7624) @makoto14
202
+
203
+ ### `@mui/x-codemod@v6.0.0-beta.1`
204
+
205
+ #### Changes
206
+
207
+ - [codemod] Add pickers `replace-toolbar-props-by-slot` codemod (#7687) @alexfauquette
208
+ - [codemod] Add `GridColumnMenuItemProps` to `column-menu-components-rename` codemod (#7710) @MBilalShafi
209
+ - [codemod] Add `headerHeight` prop update to `row-selection-props-rename` codemod (#7711) @MBilalShafi
210
+ - [codemod] Add pickers codemod for `components` to `slots` renaming (#7533) @alexfauquette
211
+ - [codemod] Add pickers `migrate-to-components-componentsProps` and `replace-arrows-button-slot` codemods (#7698) @alexfauquette
212
+ - [codemod] Add data grid codemod renaming `rowsPerPageOptions` prop to `pageSizeOptions` (#7603) @MBilalShafi
213
+ - [codemod] Add pickers `rename-should-disable-time` codemod (#7709) @alexfauquette
214
+ - [codemod] Add data grid `row-selection-props-rename` codemod (#7485) @MBilalShafi
215
+ - [codemod] Add data grid `rename-selectors-and-events` codemod (#7699) @MBilalShafi
216
+ - [codemod] Add pickers `replace-tabs-props` codemod (#7639) @alexfauquette
217
+
218
+ ### Docs
219
+
220
+ - [docs] Add info callout about available component `slots` (#7714) @Vivek-Prajapatii
221
+ - [docs] Add recipe for pinning grouped column (#7712) @MBilalShafi
222
+ - [docs] Fix 404 links to picker API page @oliviertassinari
223
+ - [docs] Update `DemoContainer` `components` prop using a codemod (#7574) @alexfauquette
224
+
225
+ ### Core
226
+
227
+ - [core] Fix `innerslotProps` typo (#7697) @LukasTy
228
+ - [core] Upgrade monorepo (#7676) @cherniavskii
229
+
6
230
  ## 6.0.0-beta.0
7
231
 
8
232
  _Jan 19, 2023_
@@ -342,7 +566,7 @@ We'd like to offer a big thanks to the 9 contributors who made this release poss
342
566
  ```diff
343
567
  <DateTimePicker
344
568
  - shouldDisableTime={(timeValue, view) => view === 'hours' && timeValue < 12}
345
- + shouldDisableTime={(time, view) => view === 'hours' && value.hour() < 12}
569
+ + shouldDisableTime={(value, view) => view === 'hours' && value.hour() < 12}
346
570
  />
347
571
  ```
348
572
 
@@ -1302,8 +1526,7 @@ We'd like to offer a big thanks to the 9 contributors who made this release poss
1302
1526
  - The toolbar related translation keys have been renamed to better fit their usage:
1303
1527
 
1304
1528
  ```diff
1305
- // Same on all other pickers
1306
- <DatePicker
1529
+ <LocalizationProvider
1307
1530
  localeText={{
1308
1531
  - datePickerDefaultToolbarTitle: 'Date Picker',
1309
1532
  + datePickerToolbarTitle: 'Date Picker',
@@ -1426,7 +1649,7 @@ We'd like to offer a big thanks to the 8 contributors who made this release poss
1426
1649
  // TimePicker, MobileTimePicker, DateRangePicker and MobileDateRangePicker.
1427
1650
  <DatePicker
1428
1651
  - DialogProps={{ backgroundColor: 'red' }}
1429
- + componentsProps={{ dialog: { backgroundColor: 'red }}}
1652
+ + componentsProps={{ dialog: { backgroundColor: 'red' }}}
1430
1653
  />
1431
1654
  ```
1432
1655
 
@@ -1437,7 +1660,7 @@ We'd like to offer a big thanks to the 8 contributors who made this release poss
1437
1660
  // TimePicker, DesktopTimePicker, DateRangePicker and DesktopDateRangePicker.
1438
1661
  <DatePicker
1439
1662
  - PaperProps={{ backgroundColor: 'red' }}
1440
- + componentsProps={{ desktopPaper: { backgroundColor: 'red }}}
1663
+ + componentsProps={{ desktopPaper: { backgroundColor: 'red' }}}
1441
1664
  />
1442
1665
  ```
1443
1666
 
@@ -1956,6 +2179,128 @@ You can find more information about the new api, including how to set those tran
1956
2179
  - [test] Skip tests for column pinning and dynamic row height (#5997) @m4theushw
1957
2180
  - [website] Improve security header @oliviertassinari
1958
2181
 
2182
+ ## 5.17.24
2183
+
2184
+ _Feb 16, 2023_
2185
+
2186
+ We'd like to offer a big thanks to the 5 contributors who made this release possible. Here are some highlights ✨:
2187
+
2188
+ - 🌍 Add Hungarian (hu-HU) locale
2189
+ - 🐞 Bugfixes
2190
+
2191
+ ### `@mui/x-data-grid@v5.17.24` / `@mui/x-data-grid-pro@v5.17.24` / `@mui/x-data-grid-premium@v5.17.24`
2192
+
2193
+ #### Changes
2194
+
2195
+ - [DataGrid] Allow to pass props to the `TrapFocus` inside the panel wrapper (#7897) @Vivek-Prajapatii
2196
+ - [DataGrid] Avoid unnecessary rerenders after `updateRows` (#7945) @cherniavskii
2197
+ - [DataGridPro] Change cursor when dragging a column (#7878) @sai6855
2198
+ - [DataGridPremium] Fix `leafField` to have correct focus value (#7959) @MBilalShafi
2199
+
2200
+ ### `@mui/x-date-pickers@v5.0.19` / `@mui/x-date-pickers-pro@v5.0.19`
2201
+
2202
+ #### Changes
2203
+
2204
+ - [l10n] Add Hungarian (hu-HU) locale (#7796) @noherczeg
2205
+
2206
+ ## 5.17.23
2207
+
2208
+ _Feb 9, 2023_
2209
+
2210
+ We'd like to offer a big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
2211
+
2212
+ - 🌍 Improve Brazilian Portuguese (pt-BR) locale
2213
+ - 🎉 Add banner and callouts to inform about MUI X v6 beta
2214
+ - 🐞 Bugfixes
2215
+
2216
+ ### `@mui/x-data-grid@v5.17.23` / `@mui/x-data-grid-pro@v5.17.23` / `@mui/x-data-grid-premium@v5.17.23`
2217
+
2218
+ #### Changes
2219
+
2220
+ - [DataGrid] Allow to customize the value displayed in the filter button tooltip (#7816) @ithrforu
2221
+ - [DataGrid] Fix `getCellElement` method not working with pinned columns (#7844) @yaredtsy
2222
+ - [DataGrid] Fix stale rows issue in `unstable_replaceRows` (#7694) @MBilalShafi
2223
+ - [l10n] Improve Brazilian Portuguese (pt-BR) locale (#7850) @ed-ateixeira
2224
+
2225
+ ### `@mui/x-date-pickers@v_5.0.18` / `@mui/x-date-pickers-pro@v_5.0.18`
2226
+
2227
+ #### Changes
2228
+
2229
+ - [pickers] Update pickers when new value has a distinct timezone (#7853) @alexfauquette
2230
+
2231
+ ### Docs
2232
+
2233
+ - [docs] Add messages in v5 doc to inform people about v6 (#7838) @flaviendelangle
2234
+ - [docs] Fix 301 link @oliviertassinari
2235
+
2236
+ ### Core
2237
+
2238
+ - [core] Upgrade monorepo (#7849) @cherniavskii
2239
+
2240
+ ## 5.17.22
2241
+
2242
+ _Feb 2, 2023_
2243
+
2244
+ We'd like to offer a big thanks to the 4 contributors who made this release possible. Here are some highlights ✨:
2245
+
2246
+ - 🌍 Add Urdu (ur-PK) locale
2247
+ - 🌍 Improve French (fr-FR) and Italian (it-IT) locales
2248
+ - 🐞 Bugfixes
2249
+
2250
+ ### `@mui/x-data-grid@v5.17.22` / `@mui/x-data-grid-pro@v5.17.22` / `@mui/x-data-grid-premium@v5.17.22`
2251
+
2252
+ #### Changes
2253
+
2254
+ - [DataGrid] Fix an error when deleting pinned row using the buttons in the `actions` column (#7767) @cherniavskii
2255
+ - [DataGrid] Fix print preview regression in Chrome browser (#7405) @cherniavskii
2256
+ - [l10n] Add Urdu (ur-PK) locale (#7778) @MBilalShafi
2257
+ - [l10n] Improve French (fr-FR) locale (#7795) @Vivek-Prajapatii
2258
+
2259
+ ### `@mui/x-date-pickers@v5.0.17` / `@mui/x-date-pickers-pro@v5.0.17`
2260
+
2261
+ #### Changes
2262
+
2263
+ - [TimePicker] Add missing `themeAugmentation` entry (#7732) @LukasTy
2264
+ - [l10n] Improve Italian (it-IT) locale (#7761) @simonecervini
2265
+
2266
+ ## 5.17.21
2267
+
2268
+ _Jan 27, 2023_
2269
+
2270
+ We'd like to offer a big thanks to the 13 contributors who made this release possible. Here are some highlights ✨:
2271
+
2272
+ - 🌍 Add Belarusian (be-BY), Czech (cs-CZ), and Russian (ru-RU) locales
2273
+ - 🌍 Improve Slovak (sk-SK), Japanese (ja-JP), Vietnamese (vi-VN), and Spanish (es-ES) locales
2274
+ - 🐞 Bugfixes
2275
+
2276
+ ### `@mui/x-data-grid@v5.17.21` / `@mui/x-data-grid-pro@v5.17.21` / `@mui/x-data-grid-premium@v5.17.21`
2277
+
2278
+ #### Changes
2279
+
2280
+ - [DataGrid] Add `title` attribute to cells (#7695) @thupi
2281
+ - [DataGrid] Fix grid state not being updated after print preview is closed (#7680) @cherniavskii
2282
+ - [DataGrid] Fix non-hideable columns visibility toggling (#7716) @cherniavskii
2283
+ - [DataGrid] Fix scrolling on resize for data grids inside shadow root (#7722) @cherniavskii
2284
+ - [DataGridPremium] Create aggregation footer row with `isAutoGenerated: true` (#7681) @m4theushw
2285
+ - [l10n] Add Belarusian (be-BY) locale (#7718) @volhalink
2286
+ - [l10n] Add Slovak (sk-SK) translation for aggregation functions (#7690) @msidlo
2287
+ - [l10n] Add missing core locales for `MuiTablePagination` (#7719) @MBilalShafi
2288
+ - [l10n] Improve Japanese (ja-JP) locale (#7627) @makoto14
2289
+ - [l10n] Improve Vietnamese (vi-VN) locale (#7601) @SpacerZ
2290
+
2291
+ ### `@mui/x-date-pickers@v5.0.16` / `@mui/x-date-pickers-pro@v5.0.16`
2292
+
2293
+ #### Changes
2294
+
2295
+ - [pickers] Add missing components to `themeAugmentation` (#7677) @LukasTy
2296
+ - [l10n] Add Czech (cs-CZ) locale (#7666) @OndrejHj04
2297
+ - [l10n] Add Russian (ru-RU) locale (#7708) @rstmzh
2298
+ - [l10n] Improve Spanish (es-ES) locale (#7614) @WiXSL
2299
+
2300
+ ### Docs
2301
+
2302
+ - [docs] Add info callout about available component `slots` (#7723) @Vivek-Prajapatii
2303
+
1959
2304
  ## 5.17.20
1960
2305
 
1961
2306
  _Jan 19, 2023_
@@ -32,10 +32,98 @@ export interface QueryOptions {
32
32
  }
33
33
  export declare const createFakeServer: (dataSetOptions?: Partial<UseDemoDataOptions>, serverOptions?: ServerOptions) => {
34
34
  columns: import("..").GridColDefGenerator[];
35
- columnsWithDefaultColDef: {
35
+ columnsWithDefaultColDef: ({
36
+ field: string;
37
+ headerName?: string | undefined;
38
+ description?: string | undefined;
39
+ width?: number | undefined;
40
+ flex?: number | undefined;
41
+ minWidth?: number | undefined;
42
+ maxWidth?: number | undefined;
43
+ hideable?: boolean | undefined;
44
+ sortable?: boolean | undefined;
45
+ sortingOrder?: import("@mui/x-data-grid-pro").GridSortDirection[] | undefined;
46
+ resizable?: boolean | undefined;
47
+ editable?: boolean | undefined;
48
+ groupable?: boolean | undefined;
49
+ pinnable?: boolean | undefined;
50
+ sortComparator?: import("@mui/x-data-grid-pro").GridComparatorFn<any> | undefined;
51
+ type?: string | undefined;
52
+ align?: import("@mui/x-data-grid-pro").GridAlignment | undefined;
53
+ valueGetter?: ((params: import("@mui/x-data-grid-pro").GridValueGetterParams<any, any, import("@mui/x-data-grid-pro").GridTreeNodeWithRender>) => any) | undefined;
54
+ valueSetter?: ((params: import("@mui/x-data-grid-pro").GridValueSetterParams<any, any>) => any) | undefined;
55
+ valueFormatter?: ((params: import("@mui/x-data-grid-pro").GridValueFormatterParams<any>) => any) | undefined;
56
+ valueParser?: ((value: any, params?: import("@mui/x-data-grid-pro").GridCellParams<any, any, any, import("@mui/x-data-grid-pro").GridTreeNode> | undefined) => any) | undefined;
57
+ cellClassName?: import("@mui/x-data-grid-pro").GridCellClassNamePropType<any, any> | undefined;
58
+ renderCell?: ((params: import("@mui/x-data-grid-pro").GridRenderCellParams<any, any, any, import("@mui/x-data-grid-pro").GridTreeNodeWithRender>) => React.ReactNode) | undefined;
59
+ renderEditCell?: ((params: import("@mui/x-data-grid-pro").GridRenderEditCellParams<any, any, any, import("@mui/x-data-grid-pro").GridTreeNodeWithRender>) => React.ReactNode) | undefined;
60
+ preProcessEditCellProps?: ((params: import("@mui/x-data-grid-pro").GridPreProcessEditCellProps<any, any>) => import("@mui/x-data-grid-pro").GridEditCellProps<any> | Promise<import("@mui/x-data-grid-pro").GridEditCellProps<any>>) | undefined;
61
+ headerClassName?: import("@mui/x-data-grid-pro").GridColumnHeaderClassNamePropType | undefined;
62
+ renderHeader?: ((params: import("@mui/x-data-grid-pro").GridColumnHeaderParams<any, any, any>) => React.ReactNode) | undefined;
63
+ headerAlign?: import("@mui/x-data-grid-pro").GridAlignment | undefined;
64
+ hideSortIcons?: boolean | undefined;
65
+ disableColumnMenu?: boolean | undefined;
66
+ filterable?: boolean | undefined;
67
+ filterOperators?: GridFilterOperator<any, any, any>[] | undefined;
68
+ 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;
69
+ disableReorder?: boolean | undefined;
70
+ disableExport?: boolean | undefined;
71
+ colSpan?: number | ((params: import("@mui/x-data-grid-pro").GridCellParams<any, any, any, import("@mui/x-data-grid-pro").GridTreeNode>) => number | undefined) | undefined;
72
+ aggregable?: boolean | undefined;
73
+ availableAggregationFunctions?: string[] | undefined;
74
+ groupingValueGetter?: ((params: import("@mui/x-data-grid-premium").GridGroupingValueGetterParams<any, any>) => import("@mui/x-data-grid-pro").GridKeyValue | null | undefined) | undefined;
36
75
  generateData?: ((row: any, context: import("..").GridDataGeneratorContext) => any) | undefined;
37
76
  dataGeneratorUniquenessEnabled?: boolean | undefined;
38
77
  hide?: boolean | undefined;
78
+ extendType?: import("@mui/x-data-grid-pro").GridNativeColTypes | undefined;
79
+ } | {
80
+ type: "actions";
81
+ getActions: (params: import("@mui/x-data-grid-pro").GridRowParams<any>) => React.ReactElement<import("@mui/x-data-grid-pro").GridActionsCellItemProps, string | React.JSXElementConstructor<any>>[];
82
+ field: string;
83
+ headerName?: string | undefined;
84
+ description?: string | undefined;
85
+ width?: number | undefined;
86
+ flex?: number | undefined;
87
+ minWidth?: number | undefined;
88
+ maxWidth?: number | undefined;
89
+ hideable?: boolean | undefined;
90
+ sortable?: boolean | undefined;
91
+ sortingOrder?: import("@mui/x-data-grid-pro").GridSortDirection[] | undefined;
92
+ resizable?: boolean | undefined;
93
+ editable?: boolean | undefined;
94
+ groupable?: boolean | undefined;
95
+ pinnable?: boolean | undefined;
96
+ sortComparator?: import("@mui/x-data-grid-pro").GridComparatorFn<any> | undefined;
97
+ align?: import("@mui/x-data-grid-pro").GridAlignment | undefined;
98
+ valueGetter?: ((params: import("@mui/x-data-grid-pro").GridValueGetterParams<any, any, import("@mui/x-data-grid-pro").GridTreeNodeWithRender>) => any) | undefined;
99
+ valueSetter?: ((params: import("@mui/x-data-grid-pro").GridValueSetterParams<any, any>) => any) | undefined;
100
+ valueFormatter?: ((params: import("@mui/x-data-grid-pro").GridValueFormatterParams<any>) => any) | undefined;
101
+ valueParser?: ((value: any, params?: import("@mui/x-data-grid-pro").GridCellParams<any, any, any, import("@mui/x-data-grid-pro").GridTreeNode> | undefined) => any) | undefined;
102
+ cellClassName?: import("@mui/x-data-grid-pro").GridCellClassNamePropType<any, any> | undefined;
103
+ renderCell?: ((params: import("@mui/x-data-grid-pro").GridRenderCellParams<any, any, any, import("@mui/x-data-grid-pro").GridTreeNodeWithRender>) => React.ReactNode) | undefined;
104
+ renderEditCell?: ((params: import("@mui/x-data-grid-pro").GridRenderEditCellParams<any, any, any, import("@mui/x-data-grid-pro").GridTreeNodeWithRender>) => React.ReactNode) | undefined;
105
+ preProcessEditCellProps?: ((params: import("@mui/x-data-grid-pro").GridPreProcessEditCellProps<any, any>) => import("@mui/x-data-grid-pro").GridEditCellProps<any> | Promise<import("@mui/x-data-grid-pro").GridEditCellProps<any>>) | undefined;
106
+ headerClassName?: import("@mui/x-data-grid-pro").GridColumnHeaderClassNamePropType | undefined;
107
+ renderHeader?: ((params: import("@mui/x-data-grid-pro").GridColumnHeaderParams<any, any, any>) => React.ReactNode) | undefined;
108
+ headerAlign?: import("@mui/x-data-grid-pro").GridAlignment | undefined;
109
+ hideSortIcons?: boolean | undefined;
110
+ disableColumnMenu?: boolean | undefined;
111
+ filterable?: boolean | undefined;
112
+ filterOperators?: GridFilterOperator<any, any, any>[] | undefined;
113
+ 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;
114
+ disableReorder?: boolean | undefined;
115
+ disableExport?: boolean | undefined;
116
+ colSpan?: number | ((params: import("@mui/x-data-grid-pro").GridCellParams<any, any, any, import("@mui/x-data-grid-pro").GridTreeNode>) => number | undefined) | undefined;
117
+ aggregable?: boolean | undefined;
118
+ availableAggregationFunctions?: string[] | undefined;
119
+ groupingValueGetter?: ((params: import("@mui/x-data-grid-premium").GridGroupingValueGetterParams<any, any>) => import("@mui/x-data-grid-pro").GridKeyValue | null | undefined) | undefined;
120
+ generateData?: ((row: any, context: import("..").GridDataGeneratorContext) => any) | undefined;
121
+ dataGeneratorUniquenessEnabled?: boolean | undefined;
122
+ hide?: boolean | undefined;
123
+ extendType?: import("@mui/x-data-grid-pro").GridNativeColTypes | undefined;
124
+ } | {
125
+ type: "singleSelect";
126
+ valueOptions?: import("@mui/x-data-grid-pro").ValueOptions[] | ((params: import("@mui/x-data-grid-pro").GridValueOptionsParams<any>) => import("@mui/x-data-grid-pro").ValueOptions[]) | undefined;
39
127
  field: string;
40
128
  headerName?: string | undefined;
41
129
  description?: string | undefined;
@@ -51,33 +139,34 @@ export declare const createFakeServer: (dataSetOptions?: Partial<UseDemoDataOpti
51
139
  groupable?: boolean | undefined;
52
140
  pinnable?: boolean | undefined;
53
141
  sortComparator?: import("@mui/x-data-grid-pro").GridComparatorFn<any> | undefined;
54
- type?: string | undefined;
55
- valueOptions?: import("@mui/x-data-grid-pro").ValueOptions[] | ((params: import("@mui/x-data-grid-pro").GridValueOptionsParams<import("@mui/x-data-grid-pro").GridValidRowModel>) => import("@mui/x-data-grid-pro").ValueOptions[]) | undefined;
56
142
  align?: import("@mui/x-data-grid-pro").GridAlignment | undefined;
57
- valueGetter?: ((params: import("@mui/x-data-grid-pro").GridValueGetterParams<import("@mui/x-data-grid-pro").GridValidRowModel, any, import("@mui/x-data-grid-pro").GridTreeNodeWithRender>) => any) | undefined;
58
- valueSetter?: ((params: import("@mui/x-data-grid-pro").GridValueSetterParams<any, any>) => any) | ((params: import("@mui/x-data-grid-pro").GridValueSetterParams<import("@mui/x-data-grid-pro").GridValidRowModel, any>) => import("@mui/x-data-grid-pro").GridValidRowModel) | undefined;
143
+ valueGetter?: ((params: import("@mui/x-data-grid-pro").GridValueGetterParams<any, any, import("@mui/x-data-grid-pro").GridTreeNodeWithRender>) => any) | undefined;
144
+ valueSetter?: ((params: import("@mui/x-data-grid-pro").GridValueSetterParams<any, any>) => any) | undefined;
59
145
  valueFormatter?: ((params: import("@mui/x-data-grid-pro").GridValueFormatterParams<any>) => any) | undefined;
60
- valueParser?: ((value: any, params?: import("@mui/x-data-grid-pro").GridCellParams<import("@mui/x-data-grid-pro").GridValidRowModel, any, any, import("@mui/x-data-grid-pro").GridTreeNode> | undefined) => any) | undefined;
61
- cellClassName?: string | import("@mui/x-data-grid-pro").GridCellClassFn<import("@mui/x-data-grid-pro").GridValidRowModel, any> | undefined;
62
- renderCell?: ((params: import("@mui/x-data-grid-pro").GridRenderCellParams<import("@mui/x-data-grid-pro").GridValidRowModel, any, any, import("@mui/x-data-grid-pro").GridTreeNodeWithRender>) => React.ReactNode) | undefined;
63
- renderEditCell?: ((params: import("@mui/x-data-grid-pro").GridRenderEditCellParams<import("@mui/x-data-grid-pro").GridValidRowModel, any, any, import("@mui/x-data-grid-pro").GridTreeNodeWithRender>) => React.ReactNode) | undefined;
146
+ valueParser?: ((value: any, params?: import("@mui/x-data-grid-pro").GridCellParams<any, any, any, import("@mui/x-data-grid-pro").GridTreeNode> | undefined) => any) | undefined;
147
+ cellClassName?: import("@mui/x-data-grid-pro").GridCellClassNamePropType<any, any> | undefined;
148
+ renderCell?: ((params: import("@mui/x-data-grid-pro").GridRenderCellParams<any, any, any, import("@mui/x-data-grid-pro").GridTreeNodeWithRender>) => React.ReactNode) | undefined;
149
+ renderEditCell?: ((params: import("@mui/x-data-grid-pro").GridRenderEditCellParams<any, any, any, import("@mui/x-data-grid-pro").GridTreeNodeWithRender>) => React.ReactNode) | undefined;
64
150
  preProcessEditCellProps?: ((params: import("@mui/x-data-grid-pro").GridPreProcessEditCellProps<any, any>) => import("@mui/x-data-grid-pro").GridEditCellProps<any> | Promise<import("@mui/x-data-grid-pro").GridEditCellProps<any>>) | undefined;
65
151
  headerClassName?: import("@mui/x-data-grid-pro").GridColumnHeaderClassNamePropType | undefined;
66
- renderHeader?: ((params: import("@mui/x-data-grid-pro").GridColumnHeaderParams<any, any, any>) => React.ReactNode) | ((params: import("@mui/x-data-grid-pro").GridColumnHeaderParams<import("@mui/x-data-grid-pro").GridValidRowModel, any, any>) => React.ReactNode) | undefined;
152
+ renderHeader?: ((params: import("@mui/x-data-grid-pro").GridColumnHeaderParams<any, any, any>) => React.ReactNode) | undefined;
67
153
  headerAlign?: import("@mui/x-data-grid-pro").GridAlignment | undefined;
68
154
  hideSortIcons?: boolean | undefined;
69
155
  disableColumnMenu?: boolean | undefined;
70
156
  filterable?: boolean | undefined;
71
- filterOperators?: GridFilterOperator<any, any, any>[] | GridFilterOperator<import("@mui/x-data-grid-pro").GridValidRowModel, any, any>[] | undefined;
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<import("@mui/x-data-grid-pro").GridValidRowModel, any, any, import("@mui/x-data-grid-pro").GridTreeNode>) => boolean) | null) | undefined;
157
+ filterOperators?: GridFilterOperator<any, any, any>[] | undefined;
158
+ 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
159
  disableReorder?: boolean | undefined;
74
160
  disableExport?: boolean | undefined;
75
- colSpan?: number | ((params: import("@mui/x-data-grid-pro").GridCellParams<import("@mui/x-data-grid-pro").GridValidRowModel, any, any, import("@mui/x-data-grid-pro").GridTreeNode>) => number | undefined) | undefined;
161
+ colSpan?: number | ((params: import("@mui/x-data-grid-pro").GridCellParams<any, any, any, import("@mui/x-data-grid-pro").GridTreeNode>) => number | undefined) | undefined;
76
162
  aggregable?: boolean | undefined;
77
163
  availableAggregationFunctions?: string[] | undefined;
78
- groupingValueGetter?: ((params: import("@mui/x-data-grid-premium").GridGroupingValueGetterParams<any, any>) => import("@mui/x-data-grid-pro").GridKeyValue | null | undefined) | ((params: import("@mui/x-data-grid-premium").GridGroupingValueGetterParams<import("@mui/x-data-grid-pro").GridValidRowModel, any>) => import("@mui/x-data-grid-pro").GridKeyValue | null | undefined) | undefined;
164
+ groupingValueGetter?: ((params: import("@mui/x-data-grid-premium").GridGroupingValueGetterParams<any, any>) => import("@mui/x-data-grid-pro").GridKeyValue | null | undefined) | undefined;
165
+ generateData?: ((row: any, context: import("..").GridDataGeneratorContext) => any) | undefined;
166
+ dataGeneratorUniquenessEnabled?: boolean | undefined;
167
+ hide?: boolean | undefined;
79
168
  extendType?: import("@mui/x-data-grid-pro").GridNativeColTypes | undefined;
80
- }[];
169
+ })[];
81
170
  initialState: {
82
171
  columns: {
83
172
  columnVisibilityModel: import("@mui/x-data-grid-pro").GridColumnVisibilityModel;
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-generator v6.0.0-beta.0
2
+ * @mui/x-data-grid-generator v6.0.0-beta.4
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.0.0-beta.0
2
+ * @mui/x-data-grid-generator v6.0.0-beta.4
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.0.0-beta.0
2
+ * @mui/x-data-grid-generator v6.0.0-beta.4
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.0.0-beta.0
2
+ * @mui/x-data-grid-generator v6.0.0-beta.4
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.0.0-beta.0",
3
+ "version": "6.0.0-beta.4",
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.7",
23
- "@mui/base": "^5.0.0-alpha.113",
24
- "@mui/x-data-grid-premium": "6.0.0-beta.0",
22
+ "@babel/runtime": "^7.20.13",
23
+ "@mui/base": "^5.0.0-alpha.116",
24
+ "@mui/x-data-grid-premium": "6.0.0-beta.4",
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 { GridBaseColDef } from '@mui/x-data-grid-pro/internals';
1
+ import { GridColDef } from '@mui/x-data-grid-pro';
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 GridBaseColDef {
11
+ export type GridColDefGenerator = GridColDef & {
12
12
  generateData?: (row: any, context: GridDataGeneratorContext) => any;
13
13
  /**
14
14
  * If `true`, each row will have a distinct value
@@ -20,4 +20,4 @@ export interface GridColDefGenerator extends GridBaseColDef {
20
20
  * If `true`, the column will be marked as hidden in the `columnVisibilityModel`.
21
21
  */
22
22
  hide?: boolean;
23
- }
23
+ };