@mui/x-data-grid-generator 6.0.0-beta.3 → 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 +71 -0
- package/hooks/useQuery.d.ts +104 -15
- 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 +2 -2
- package/services/gridColDefGenerator.d.ts +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,53 @@
|
|
|
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
|
+
|
|
6
53
|
## 6.0.0-beta.3
|
|
7
54
|
|
|
8
55
|
_Feb 9, 2023_
|
|
@@ -2132,6 +2179,30 @@ You can find more information about the new api, including how to set those tran
|
|
|
2132
2179
|
- [test] Skip tests for column pinning and dynamic row height (#5997) @m4theushw
|
|
2133
2180
|
- [website] Improve security header @oliviertassinari
|
|
2134
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
|
+
|
|
2135
2206
|
## 5.17.23
|
|
2136
2207
|
|
|
2137
2208
|
_Feb 9, 2023_
|
package/hooks/useQuery.d.ts
CHANGED
|
@@ -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<
|
|
58
|
-
valueSetter?: ((params: import("@mui/x-data-grid-pro").GridValueSetterParams<any, any>) => any) |
|
|
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<
|
|
61
|
-
cellClassName?:
|
|
62
|
-
renderCell?: ((params: import("@mui/x-data-grid-pro").GridRenderCellParams<
|
|
63
|
-
renderEditCell?: ((params: import("@mui/x-data-grid-pro").GridRenderEditCellParams<
|
|
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) |
|
|
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>[] |
|
|
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<
|
|
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<
|
|
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) |
|
|
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
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-beta.
|
|
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",
|
|
@@ -21,7 +21,7 @@
|
|
|
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.
|
|
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 {
|
|
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
|
|
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
|
+
};
|