@mui/x-data-grid-generator 6.0.0-beta.3 → 6.0.0-beta.5

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,107 @@
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.5
7
+
8
+ _Feb 23, 2023_
9
+
10
+ We'd like to offer a big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - ⚡️ Add web worker support for Excel export (#7770) @m4theushw
13
+ - 🎁 Add a button to remove all filters on the data grid filter panel (#7326) @MBilalShafi
14
+ - ⚙️ Allow to customize options label and value in the data grid `singleSelect` column (#7684) @m4theushw
15
+ - 📚 Documentation improvements
16
+ - 🐞 Bugfixes
17
+
18
+ ### `@mui/x-data-grid@v6.0.0-beta.5` / `@mui/x-data-grid-pro@v6.0.0-beta.5` / `@mui/x-data-grid-premium@v6.0.0-beta.5`
19
+
20
+ #### Changes
21
+
22
+ - [DataGrid] Allow to customize label and value for `singleSelect` (#7684) @m4theushw
23
+ - [DataGrid] Fix `ownerState` being `undefined` in theme style overrides (#7964) @lolaignatova
24
+ - [DataGrid] Introduce `slots` and deprecate `components` (#7882) @MBilalShafi
25
+ - [DataGridPro] Add `Remove All` option in filter panel (#7326) @MBilalShafi
26
+ - [DataGridPremium] Add web worker support for Excel export (#7770) @m4theushw
27
+
28
+ ### `@mui/x-date-pickers@v6.0.0-beta.5` / `@mui/x-date-pickers-pro@v6.0.0-beta.5`
29
+
30
+ #### Breaking changes
31
+
32
+ - The `MuiDateSectionName` type was renamed to `FieldSectionType`
33
+
34
+ #### Changes
35
+
36
+ - [fields] Fix multi input range fields validation when uncontrolled (#8002) @LukasTy
37
+ - [fields] Fix single input time range fields slot props (#7988) @LukasTy
38
+ - [fields] Make the `ArrowUp` / `ArrowDown` edition only impact the active section (#7993) @flaviendelangle
39
+ - [fields] Fix single input range fields clearing (#7995) @flaviendelangle
40
+ - [fields] Clean the section object (#8009) @flaviendelangle
41
+ - [pickers] Fix `textField` slot `error` prop propagation (#7987) @LukasTy
42
+
43
+ ### `@mui/x-codemod@v6.0.0-beta.5`
44
+
45
+ #### Changes
46
+
47
+ - [codemod] Add `apiRef.current.getRowIndex` to `DataGrid` renaming codemod (#8001) @MBilalShafi
48
+
49
+ ### Docs
50
+
51
+ - [docs] Fine tune range fields demos (#7992) @LukasTy
52
+ - [docs] Fix a few scroll issues on mobile (#7900) @oliviertassinari
53
+ - [docs] Fix inconsistency in the data grid migration guide (#7963) @MBilalShafi
54
+
55
+ ### Core
56
+
57
+ - [core] Fix `moment` locale on adapter tests (#8020) @flaviendelangle
58
+ - [test] Support all adapters on the field tests about the formats (#7996) @flaviendelangle
59
+
60
+ ## 6.0.0-beta.4
61
+
62
+ _Feb 16, 2023_
63
+
64
+ We'd like to offer a big thanks to the 8 contributors who made this release possible. Here are some highlights ✨:
65
+
66
+ - ⚡️ Improve grid performance by reducing rerenders (#7857) @cherniavskii
67
+ - 📚 Documentation improvements
68
+ - 🐞 Bugfixes
69
+
70
+ ### `@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`
71
+
72
+ #### Changes
73
+
74
+ - [DataGrid] Add interface for `singleSelect` column (#7685) @m4theushw
75
+ - [DataGrid] Allow to pass props to the `TrapFocus` inside the panel wrapper (#7733) @Vivek-Prajapatii
76
+ - [DataGrid] Avoid unnecessary rerenders after `updateRows` (#7857) @cherniavskii
77
+ - [DataGridPro] Change cursor when dragging a column (#7725) @sai6855
78
+ - [DataGridPremium] Fix `leafField` to have correct focus value (#7950) @MBilalShafi
79
+
80
+ ### `@mui/x-date-pickers@v6.0.0-beta.4` / `@mui/x-date-pickers-pro@v6.0.0-beta.4`
81
+
82
+ #### Changes
83
+
84
+ - [DateRangePicker] Fix slide transition by avoiding useless component re-rendering (#7874) @LukasTy
85
+ - [fields] Support Backspace key on `Android` (#7842) @flaviendelangle
86
+ - [fields] Support escaped characters on `Luxon` (#7888) @flaviendelangle
87
+ - [pickers] Prepare new pickers for custom fields (#7806) @flaviendelangle
88
+
89
+ ### `@mui/x-codemod@v6.0.0-beta.4`
90
+
91
+ #### Changes
92
+
93
+ - [codemod] Fix import path (#7952) @LukasTy
94
+
95
+ ### Docs
96
+
97
+ - [docs] Add an info callout specifying the current state of desktop time view (#7933) @LukasTy
98
+ - [docs] Add missing param in `useGridApiEventHandler` examples (#7939) @flaviendelangle
99
+ - [docs] Fix markdown table alignments (#7898) @oliviertassinari
100
+ - [docs] Improve `DataGrid` migration guide (#7861) @MBilalShafi
101
+ - [docs] Update `LocalizationProvider` `dateAdapter` with a link to the doc (#7872) @LukasTy
102
+
103
+ ### Core
104
+
105
+ - [core] Run editing field tests on all major adapters (#7868) @flaviendelangle
106
+
6
107
  ## 6.0.0-beta.3
7
108
 
8
109
  _Feb 9, 2023_
@@ -2132,6 +2233,50 @@ You can find more information about the new api, including how to set those tran
2132
2233
  - [test] Skip tests for column pinning and dynamic row height (#5997) @m4theushw
2133
2234
  - [website] Improve security header @oliviertassinari
2134
2235
 
2236
+ ## 5.17.25
2237
+
2238
+ _Feb 23, 2023_
2239
+
2240
+ We'd like to offer a big thanks to the 2 contributors who made this release possible. Here are some highlights ✨:
2241
+
2242
+ - 🐞 Bugfixes
2243
+
2244
+ ### `@mui/x-data-grid@v5.17.25` / `@mui/x-data-grid-pro@v5.17.25` / `@mui/x-data-grid-premium@v5.17.25`
2245
+
2246
+ #### Changes
2247
+
2248
+ - [DataGrid] Fix `ownerState` being `undefined` in theme style overrides (#7757) @lolaignatova
2249
+
2250
+ ### `@mui/x-date-pickers@v5.0.20` / `@mui/x-date-pickers-pro@v5.0.20`
2251
+
2252
+ #### Changes
2253
+
2254
+ - [DateTimePicker] Ensure toolbar `viewType` is correctly updated (#7942) @LukasTy
2255
+
2256
+ ## 5.17.24
2257
+
2258
+ _Feb 16, 2023_
2259
+
2260
+ We'd like to offer a big thanks to the 5 contributors who made this release possible. Here are some highlights ✨:
2261
+
2262
+ - 🌍 Add Hungarian (hu-HU) locale
2263
+ - 🐞 Bugfixes
2264
+
2265
+ ### `@mui/x-data-grid@v5.17.24` / `@mui/x-data-grid-pro@v5.17.24` / `@mui/x-data-grid-premium@v5.17.24`
2266
+
2267
+ #### Changes
2268
+
2269
+ - [DataGrid] Allow to pass props to the `TrapFocus` inside the panel wrapper (#7897) @Vivek-Prajapatii
2270
+ - [DataGrid] Avoid unnecessary rerenders after `updateRows` (#7945) @cherniavskii
2271
+ - [DataGridPro] Change cursor when dragging a column (#7878) @sai6855
2272
+ - [DataGridPremium] Fix `leafField` to have correct focus value (#7959) @MBilalShafi
2273
+
2274
+ ### `@mui/x-date-pickers@v5.0.19` / `@mui/x-date-pickers-pro@v5.0.19`
2275
+
2276
+ #### Changes
2277
+
2278
+ - [l10n] Add Hungarian (hu-HU) locale (#7796) @noherczeg
2279
+
2135
2280
  ## 5.17.23
2136
2281
 
2137
2282
  _Feb 9, 2023_
@@ -32,10 +32,100 @@ 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;
127
+ getOptionLabel?: ((value: import("@mui/x-data-grid-pro").ValueOptions) => string) | undefined;
128
+ getOptionValue?: ((value: import("@mui/x-data-grid-pro").ValueOptions) => any) | undefined;
39
129
  field: string;
40
130
  headerName?: string | undefined;
41
131
  description?: string | undefined;
@@ -51,33 +141,34 @@ export declare const createFakeServer: (dataSetOptions?: Partial<UseDemoDataOpti
51
141
  groupable?: boolean | undefined;
52
142
  pinnable?: boolean | undefined;
53
143
  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
144
  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;
145
+ valueGetter?: ((params: import("@mui/x-data-grid-pro").GridValueGetterParams<any, any, import("@mui/x-data-grid-pro").GridTreeNodeWithRender>) => any) | undefined;
146
+ valueSetter?: ((params: import("@mui/x-data-grid-pro").GridValueSetterParams<any, any>) => any) | undefined;
59
147
  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;
148
+ valueParser?: ((value: any, params?: import("@mui/x-data-grid-pro").GridCellParams<any, any, any, import("@mui/x-data-grid-pro").GridTreeNode> | undefined) => any) | undefined;
149
+ cellClassName?: import("@mui/x-data-grid-pro").GridCellClassNamePropType<any, any> | undefined;
150
+ renderCell?: ((params: import("@mui/x-data-grid-pro").GridRenderCellParams<any, any, any, import("@mui/x-data-grid-pro").GridTreeNodeWithRender>) => React.ReactNode) | undefined;
151
+ renderEditCell?: ((params: import("@mui/x-data-grid-pro").GridRenderEditCellParams<any, any, any, import("@mui/x-data-grid-pro").GridTreeNodeWithRender>) => React.ReactNode) | undefined;
64
152
  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
153
  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;
154
+ renderHeader?: ((params: import("@mui/x-data-grid-pro").GridColumnHeaderParams<any, any, any>) => React.ReactNode) | undefined;
67
155
  headerAlign?: import("@mui/x-data-grid-pro").GridAlignment | undefined;
68
156
  hideSortIcons?: boolean | undefined;
69
157
  disableColumnMenu?: boolean | undefined;
70
158
  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;
159
+ filterOperators?: GridFilterOperator<any, any, any>[] | undefined;
160
+ 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
161
  disableReorder?: boolean | undefined;
74
162
  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;
163
+ colSpan?: number | ((params: import("@mui/x-data-grid-pro").GridCellParams<any, any, any, import("@mui/x-data-grid-pro").GridTreeNode>) => number | undefined) | undefined;
76
164
  aggregable?: boolean | undefined;
77
165
  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;
166
+ groupingValueGetter?: ((params: import("@mui/x-data-grid-premium").GridGroupingValueGetterParams<any, any>) => import("@mui/x-data-grid-pro").GridKeyValue | null | undefined) | undefined;
167
+ generateData?: ((row: any, context: import("..").GridDataGeneratorContext) => any) | undefined;
168
+ dataGeneratorUniquenessEnabled?: boolean | undefined;
169
+ hide?: boolean | undefined;
79
170
  extendType?: import("@mui/x-data-grid-pro").GridNativeColTypes | undefined;
80
- }[];
171
+ })[];
81
172
  initialState: {
82
173
  columns: {
83
174
  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.3
2
+ * @mui/x-data-grid-generator v6.0.0-beta.5
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.3
2
+ * @mui/x-data-grid-generator v6.0.0-beta.5
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.3
2
+ * @mui/x-data-grid-generator v6.0.0-beta.5
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.3
2
+ * @mui/x-data-grid-generator v6.0.0-beta.5
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.3",
3
+ "version": "6.0.0-beta.5",
4
4
  "description": "Generate fake data for demo purposes only.",
5
5
  "author": "MUI Team",
6
6
  "main": "./node/index.js",
@@ -21,10 +21,10 @@
21
21
  "dependencies": {
22
22
  "@babel/runtime": "^7.20.13",
23
23
  "@mui/base": "^5.0.0-alpha.116",
24
- "@mui/x-data-grid-premium": "6.0.0-beta.3",
25
- "chance": "^1.1.9",
24
+ "@mui/x-data-grid-premium": "6.0.0-beta.5",
25
+ "chance": "^1.1.10",
26
26
  "clsx": "^1.2.1",
27
- "lru-cache": "^7.14.1"
27
+ "lru-cache": "^7.16.1"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "@mui/icons-material": "^5.4.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
+ };