@mui/x-data-grid-pro 7.0.0-alpha.4 → 7.0.0-alpha.6
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 +342 -0
- package/DataGridPro/DataGridPro.js +22 -21
- package/components/headerFiltering/GridHeaderFilterCell.js +6 -3
- package/index.js +1 -1
- package/legacy/DataGridPro/DataGridPro.js +22 -21
- package/legacy/components/headerFiltering/GridHeaderFilterCell.js +6 -3
- package/legacy/index.js +1 -1
- package/legacy/utils/releaseInfo.js +1 -1
- package/modern/DataGridPro/DataGridPro.js +22 -21
- package/modern/components/headerFiltering/GridHeaderFilterCell.js +5 -3
- package/modern/index.js +1 -1
- package/modern/utils/releaseInfo.js +1 -1
- package/node/DataGridPro/DataGridPro.js +22 -21
- package/node/components/headerFiltering/GridHeaderFilterCell.js +5 -3
- package/node/index.js +1 -1
- package/node/utils/releaseInfo.js +1 -1
- package/package.json +4 -4
- package/utils/releaseInfo.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,257 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 7.0.0-alpha.6
|
|
7
|
+
|
|
8
|
+
_Dec 22, 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
|
+
- 🎁 Data Grid now supports `Date` objects in the `filterModel`
|
|
13
|
+
- 🌍 Improve Russian (ru-RU) locale on the Data Grid
|
|
14
|
+
- 🐞 Bugfixes
|
|
15
|
+
|
|
16
|
+
### Data Grid
|
|
17
|
+
|
|
18
|
+
#### Breaking changes
|
|
19
|
+
|
|
20
|
+
- The filter panel no longer uses the native version of the [`Select`](https://mui.com/material-ui/react-select/) component for all components.
|
|
21
|
+
- The `getOptionValue` and `getOptionLabel` props were removed from the following components:
|
|
22
|
+
|
|
23
|
+
- `GridEditSingleSelectCell`
|
|
24
|
+
- `GridFilterInputSingleSelect`
|
|
25
|
+
- `GridFilterInputMultipleSingleSelect`
|
|
26
|
+
|
|
27
|
+
Use the `getOptionValue` and `getOptionLabel` properties on the `singleSelect` column definition instead:
|
|
28
|
+
|
|
29
|
+
```tsx
|
|
30
|
+
const column: GridColDef = {
|
|
31
|
+
type: 'singleSelect',
|
|
32
|
+
field: 'country',
|
|
33
|
+
valueOptions: [
|
|
34
|
+
{ code: 'BR', name: 'Brazil' },
|
|
35
|
+
{ code: 'FR', name: 'France' },
|
|
36
|
+
],
|
|
37
|
+
getOptionValue: (value: any) => value.code,
|
|
38
|
+
getOptionLabel: (value: any) => value.name,
|
|
39
|
+
};
|
|
40
|
+
```
|
|
41
|
+
- The `filterModel` now supports `Date` objects as values for `date` and `dateTime` column types.
|
|
42
|
+
The `filterModel` still accepts strings as values for `date` and `dateTime` column types,
|
|
43
|
+
but all updates to the `filterModel` coming from the UI (e.g. filter panel) will set the value as a `Date` object.
|
|
44
|
+
|
|
45
|
+
#### `@mui/x-data-grid@7.0.0-alpha.6`
|
|
46
|
+
|
|
47
|
+
- [DataGrid] Fix typos in the JSDoc (#11451) @flaviendelangle
|
|
48
|
+
- [DataGrid] Make `checkboxSelection` respect the `disableMultipleRowSelection` prop (#11448) @cherniavskii
|
|
49
|
+
- [DataGrid] Support `Date` objects in filter model (#7069) @cherniavskii
|
|
50
|
+
- [DataGrid] Use non-native `Select`s by default (#11330) @cherniavskii
|
|
51
|
+
- [l10n] Improve Russian (ru-RU) locale (#11441) @wensiet
|
|
52
|
+
|
|
53
|
+
#### `@mui/x-data-grid-pro@7.0.0-alpha.6` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
54
|
+
|
|
55
|
+
Same changes as in `@mui/x-data-grid@7.0.0-alpha.6`.
|
|
56
|
+
|
|
57
|
+
#### `@mui/x-data-grid-premium@7.0.0-alpha.6` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
58
|
+
|
|
59
|
+
Same changes as in `@mui/x-data-grid-pro@7.0.0-alpha.6`.
|
|
60
|
+
|
|
61
|
+
### Date Pickers
|
|
62
|
+
|
|
63
|
+
#### `@mui/x-date-pickers@7.0.0-alpha.6`
|
|
64
|
+
|
|
65
|
+
- [fields] Adjust `PickersInput` sizing styles (#11392) @noraleonte
|
|
66
|
+
- [fields] Fix section pasting (#11447) @LukasTy
|
|
67
|
+
- [pickers] Add `PickersTextField` `standard` and `filled` variants (#11250) @noraleonte
|
|
68
|
+
- [pickers] Add missing breaking changes to changelog (#11420) @MBilalShafi
|
|
69
|
+
- [pickers] Cleanup error messages in `PickersSectionList` (#11449) @flaviendelangle
|
|
70
|
+
- [pickers] Create new component `PickersSectionList` (#11352) @flaviendelangle
|
|
71
|
+
|
|
72
|
+
#### `@mui/x-date-pickers-pro@7.0.0-alpha.6` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
73
|
+
|
|
74
|
+
Same changes as in `@mui/x-date-pickers@7.0.0-alpha.6`.
|
|
75
|
+
|
|
76
|
+
### Charts / `@mui/x-charts@7.0.0-alpha.6`
|
|
77
|
+
|
|
78
|
+
- [charts] Allow percentage values for pie chart center and radius (#11464) @alexfauquette
|
|
79
|
+
- [charts] Improve dataset typing (#11372) @alexfauquette
|
|
80
|
+
- [charts] Make error message more explicit (#11457) @alexfauquette
|
|
81
|
+
- [charts] Make the helper `ChartsText` component public (#11370) @alexfauquette
|
|
82
|
+
|
|
83
|
+
### Docs
|
|
84
|
+
|
|
85
|
+
- [docs] Document `false` default values for boolean props (#11477) @cherniavskii
|
|
86
|
+
- [docs] Improve Pickers `name` prop examples (#11422) @LukasTy
|
|
87
|
+
- [docs] Limit `date-fns` package to v2 in codesandbox (#11463) @LukasTy
|
|
88
|
+
|
|
89
|
+
### Core
|
|
90
|
+
|
|
91
|
+
- [core] Cherry pick follow up (#11469) @LukasTy
|
|
92
|
+
- [core] Fix `cherry-pick` action (#11446) @LukasTy
|
|
93
|
+
- [core] Fix security regressions in cherry-pick-next-to-master.yml (#11482) @MBilalShafi
|
|
94
|
+
- [test] Reload the page if its blank and there are no links to the remaining tests (#11466) @cherniavskii
|
|
95
|
+
|
|
96
|
+
## 7.0.0-alpha.5
|
|
97
|
+
|
|
98
|
+
_Dec 14, 2023_
|
|
99
|
+
|
|
100
|
+
We'd like to offer a big thanks to the 9 contributors who made this release possible. Here are some highlights ✨:
|
|
101
|
+
|
|
102
|
+
- 💫 New recipe added for the Data Grid
|
|
103
|
+
- 🌍 Improve Swedish (sv-SE) and Urdu (ur-PK) locales on the Data Grid
|
|
104
|
+
- 🐞 Bugfixes
|
|
105
|
+
|
|
106
|
+
### Data Grid
|
|
107
|
+
|
|
108
|
+
#### Breaking changes
|
|
109
|
+
|
|
110
|
+
- The `instanceId` prop is now required for state selectors.
|
|
111
|
+
This prop is used to distinguish between multiple Data Grid instances on the same page.
|
|
112
|
+
See [migration docs](https://next.mui.com/x/migration/migration-data-grid-v6/#instanceid-prop-is-required-for-state-selectors) for more details.
|
|
113
|
+
|
|
114
|
+
#### `@mui/x-data-grid@7.0.0-alpha.5`
|
|
115
|
+
|
|
116
|
+
- [DataGrid] Make `instanceId` required for state selectors (#11395) @cherniavskii
|
|
117
|
+
- [DataGrid] Recipe for grouped rows autosizing (#11401) @michelengelen
|
|
118
|
+
- [l10n] Improve Swedish (sv-SE) locale (#11373) @fredrikcarlbom
|
|
119
|
+
- [l10n] Improve Urdu (ur-PK) locale (#11400) @MBilalShafi
|
|
120
|
+
|
|
121
|
+
#### `@mui/x-data-grid-pro@7.0.0-alpha.5` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
122
|
+
|
|
123
|
+
Same changes as in `@mui/x-data-grid@7.0.0-alpha.5`.
|
|
124
|
+
|
|
125
|
+
#### `@mui/x-data-grid-premium@7.0.0-alpha.5` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
126
|
+
|
|
127
|
+
Same changes as in `@mui/x-data-grid-pro@7.0.0-alpha.5`.
|
|
128
|
+
|
|
129
|
+
### Date Pickers
|
|
130
|
+
|
|
131
|
+
#### Breaking changes
|
|
132
|
+
|
|
133
|
+
- The slot interfaces got renamed to match with `@mui/base` naming.
|
|
134
|
+
The `SlotsComponent` suffix has been replaced with `Slots` and `SlotsComponentsProps` with `SlotProps`.
|
|
135
|
+
|
|
136
|
+
```diff
|
|
137
|
+
- DateCalendarSlotsComponent
|
|
138
|
+
+ DateCalendarSlots
|
|
139
|
+
- DateCalendarSlotsComponentsProps
|
|
140
|
+
+ DateCalendarSlotProps
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
- Move `inputRef` inside the props passed to the field hooks
|
|
144
|
+
|
|
145
|
+
The field hooks now only receive the props instead of an object containing both the props and the `inputRef`.
|
|
146
|
+
|
|
147
|
+
```diff
|
|
148
|
+
- const { inputRef, ...otherProps } = props
|
|
149
|
+
- const fieldResponse = useDateField({ props: otherProps, inputRef });
|
|
150
|
+
+ const fieldResponse = useDateField(props);
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
If you are using a multi input range field hook, the same applies to `startInputRef` and `endInputRef` params
|
|
154
|
+
|
|
155
|
+
```diff
|
|
156
|
+
- const { inputRef: startInputRef, ...otherStartTextFieldProps } = startTextFieldProps
|
|
157
|
+
- const { inputRef: endInputRef, ...otherEndTextFieldProps } = endTextFieldProps
|
|
158
|
+
|
|
159
|
+
const fieldResponse = useMultiInputDateRangeField({
|
|
160
|
+
sharedProps,
|
|
161
|
+
- startTextFieldProps: otherStartTextFieldProps,
|
|
162
|
+
- endTextFieldProps: otherEndTextFieldProps,
|
|
163
|
+
- startInputRef
|
|
164
|
+
- endInputRef,
|
|
165
|
+
+ startTextFieldProps,
|
|
166
|
+
+ endTextFieldProps
|
|
167
|
+
});
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
- Rename the ref returned by the field hooks to `inputRef`
|
|
171
|
+
|
|
172
|
+
When used with the v6 TextField approach (where the input is an `<input />` HTML element), the field hooks return a ref that needs to be passed to the `<input />` element.
|
|
173
|
+
This ref was previously named `ref` and has been renamed `inputRef` for extra clarity.
|
|
174
|
+
|
|
175
|
+
```diff
|
|
176
|
+
const fieldResponse = useDateField(props);
|
|
177
|
+
|
|
178
|
+
- return <input ref={fieldResponse.ref} />
|
|
179
|
+
+ return <input ref={fieldResponse.inputRef} />
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
If you are using a multi input range field hook, the same applies to the ref in the `startDate` and `endDate` objects
|
|
183
|
+
|
|
184
|
+
```diff
|
|
185
|
+
const fieldResponse = useDateField(props);
|
|
186
|
+
|
|
187
|
+
return (
|
|
188
|
+
<div>
|
|
189
|
+
- <input ref={fieldResponse.startDate.ref} />
|
|
190
|
+
+ <input ref={fieldResponse.startDate.inputRef} />
|
|
191
|
+
<span>–</span>
|
|
192
|
+
- <input ref={fieldResponse.endDate.ref} />
|
|
193
|
+
+ <input ref={fieldResponse.endDate.inputRef} />
|
|
194
|
+
</div>
|
|
195
|
+
)
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
- Restructure the API of `useClearableField`
|
|
199
|
+
|
|
200
|
+
The `useClearableField` hook API has been simplified to now take a `props` parameter instead of a `fieldProps`, `InputProps`, `clearable`, `onClear`, `slots` and `slotProps` parameters.
|
|
201
|
+
|
|
202
|
+
You should now be able to directly pass the returned value from your field hook (e.g: `useDateField`) to `useClearableField`
|
|
203
|
+
|
|
204
|
+
```diff
|
|
205
|
+
const fieldResponse = useDateField(props);
|
|
206
|
+
|
|
207
|
+
- const { InputProps, onClear, clearable, slots, slotProps, ...otherFieldProps } = fieldResponse
|
|
208
|
+
- const { InputProps: ProcessedInputProps, fieldProps: processedFieldProps } = useClearableField({
|
|
209
|
+
- fieldProps: otherFieldProps,
|
|
210
|
+
- InputProps,
|
|
211
|
+
- clearable,
|
|
212
|
+
- onClear,
|
|
213
|
+
- slots,
|
|
214
|
+
- slotProps,
|
|
215
|
+
- });
|
|
216
|
+
-
|
|
217
|
+
- return <MyCustomTextField {...processedFieldProps} InputProps={ProcessedInputProps} />
|
|
218
|
+
|
|
219
|
+
+ const processedFieldProps = useClearableField(fieldResponse);
|
|
220
|
+
+
|
|
221
|
+
+ return <MyCustomTextField {...processedFieldProps} />
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
#### `@mui/x-date-pickers@7.0.0-alpha.5`
|
|
225
|
+
|
|
226
|
+
- [fields] Support empty sections (#10307) @flaviendelangle
|
|
227
|
+
- [pickers] Fix field types to avoid error on latest `@types/react` version (#11397) @LukasTy
|
|
228
|
+
- [pickers] Remove all relative imports to the internals index file (#11375) @flaviendelangle
|
|
229
|
+
- [pickers] Rename slots interfaces (#11339) @alexfauquette
|
|
230
|
+
- [pickers] Simplify the API of the field hooks (#11371) @flaviendelangle
|
|
231
|
+
- [pickers] Support name prop (#11025) @gitstart
|
|
232
|
+
|
|
233
|
+
#### `@mui/x-date-pickers-pro@7.0.0-alpha.5` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
234
|
+
|
|
235
|
+
Same changes as in `@mui/x-date-pickers@7.0.0-alpha.5`, plus:
|
|
236
|
+
|
|
237
|
+
- [DateRangePicker] Fix `autoFocus` behavior (#11273) @kealjones-wk
|
|
238
|
+
|
|
239
|
+
### Charts / `@mui/x-charts@7.0.0-alpha.5`
|
|
240
|
+
|
|
241
|
+
- [charts] Fix size overflow (#11385) @alexfauquette
|
|
242
|
+
|
|
243
|
+
### `@mui/x-codemod@7.0.0-alpha.5`
|
|
244
|
+
|
|
245
|
+
- [codemod] Add `cellSelection` codemod and update migration guide (#11353) @MBilalShafi
|
|
246
|
+
|
|
247
|
+
### Docs
|
|
248
|
+
|
|
249
|
+
- [docs] Respect GoT books (@janoma) (#11387) @alexfauquette
|
|
250
|
+
|
|
251
|
+
### Core
|
|
252
|
+
|
|
253
|
+
- [core] Automate cherry-pick of PRs from `next` -> `master` (#11382) @MBilalShafi
|
|
254
|
+
- [github] Update `no-response` workflow (#11369) @MBilalShafi
|
|
255
|
+
- [test] Fix flaky screenshots (#11388) @cherniavskii
|
|
256
|
+
|
|
6
257
|
## 7.0.0-alpha.4
|
|
7
258
|
|
|
8
259
|
_Dec 8, 2023_
|
|
@@ -949,6 +1200,97 @@ Here is an example of the renaming for the `<ChartsTooltip />` component.
|
|
|
949
1200
|
- [core] Update release instructions as per v7 configuration (#10962) @MBilalShafi
|
|
950
1201
|
- [license] Correctly throw errors (#10924) @oliviertassinari
|
|
951
1202
|
|
|
1203
|
+
## 6.18.6
|
|
1204
|
+
|
|
1205
|
+
_Dec 22, 2023_
|
|
1206
|
+
|
|
1207
|
+
We'd like to offer a big thanks to the 5 contributors who made this release possible. Here are some highlights ✨:
|
|
1208
|
+
|
|
1209
|
+
- 🌍 Improve Russian (ru-RU) locale (#11429) @wensiet
|
|
1210
|
+
- 🐞 Bugfixes
|
|
1211
|
+
|
|
1212
|
+
### Data Grid
|
|
1213
|
+
|
|
1214
|
+
#### `@mui/x-data-grid@6.18.6`
|
|
1215
|
+
|
|
1216
|
+
- [DataGrid] Fix typos in the JSDoc (#11475) @flaviendelangle
|
|
1217
|
+
- [l10n] Improve Russian (ru-RU) locale (#11429) @wensiet
|
|
1218
|
+
|
|
1219
|
+
#### `@mui/x-data-grid-pro@6.18.6` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
1220
|
+
|
|
1221
|
+
Same changes as in `@mui/x-data-grid@6.18.6`.
|
|
1222
|
+
|
|
1223
|
+
#### `@mui/x-data-grid-premium@6.18.6` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
1224
|
+
|
|
1225
|
+
Same changes as in `@mui/x-data-grid-pro@6.18.6`.
|
|
1226
|
+
|
|
1227
|
+
### Date Pickers
|
|
1228
|
+
|
|
1229
|
+
#### `@mui/x-date-pickers@6.18.6`
|
|
1230
|
+
|
|
1231
|
+
- [fields] Fix section pasting (#11467) @LukasTy
|
|
1232
|
+
|
|
1233
|
+
#### `@mui/x-date-pickers-pro@6.18.6` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
1234
|
+
|
|
1235
|
+
Same changes as in `@mui/x-date-pickers@6.18.6`.
|
|
1236
|
+
|
|
1237
|
+
### Charts / `@mui/x-charts@6.18.6`
|
|
1238
|
+
|
|
1239
|
+
- [charts] Allow percentage values for pie chart center and radius (#11464) @alexfauquette
|
|
1240
|
+
- [charts] Make error message more explicit (#11457) @alexfauquette
|
|
1241
|
+
- [charts] Make the helper `ChartsText` component public (#11370) @alexfauquette
|
|
1242
|
+
- [charts] Improve dataset typing (#11372) @alexfauquette
|
|
1243
|
+
- [charts] Fix size overflow (#11385) @alexfauquette
|
|
1244
|
+
|
|
1245
|
+
### Docs
|
|
1246
|
+
|
|
1247
|
+
- [docs] Document false default values for boolean props (#11489) @cherniavskii
|
|
1248
|
+
- [docs] Improve Pickers `name` prop examples (#11442) @LukasTy
|
|
1249
|
+
- [docs] Limit `date-fns` package to v2 in codesandbox (#11478) @LukasTy
|
|
1250
|
+
- [test] Reload the page if its blank and there are no links to the remaining tests (#11471) @cherniavskii
|
|
1251
|
+
|
|
1252
|
+
## 6.18.5
|
|
1253
|
+
|
|
1254
|
+
_Dec 14, 2023_
|
|
1255
|
+
|
|
1256
|
+
We'd like to offer a big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
|
|
1257
|
+
|
|
1258
|
+
- 🌍 Improve Swedish (sv-SE) and Urdu (ur-PK) locales on the Data Grid
|
|
1259
|
+
- 🐞 Bugfixes
|
|
1260
|
+
|
|
1261
|
+
### Data Grid
|
|
1262
|
+
|
|
1263
|
+
#### `@mui/x-data-grid@6.18.5`
|
|
1264
|
+
|
|
1265
|
+
- [l10n] Improve Swedish (sv-SE) locale (#11379) @fredrikcarlbom
|
|
1266
|
+
- [l10n] Improve Urdu (ur-PK) locale for data grid (#11409) @MBilalShafi
|
|
1267
|
+
|
|
1268
|
+
#### `@mui/x-data-grid-pro@6.18.5` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
1269
|
+
|
|
1270
|
+
Same changes as in `@mui/x-data-grid@6.18.5`.
|
|
1271
|
+
|
|
1272
|
+
#### `@mui/x-data-grid-premium@6.18.5` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
1273
|
+
|
|
1274
|
+
Same changes as in `@mui/x-data-grid-pro@6.18.5`.
|
|
1275
|
+
|
|
1276
|
+
### Date Pickers
|
|
1277
|
+
|
|
1278
|
+
#### `@mui/x-date-pickers@6.18.5`
|
|
1279
|
+
|
|
1280
|
+
- [pickers] Fix field types to avoid error on latest `@types/react` version (#11398) @LukasTy
|
|
1281
|
+
- [pickers] Support name prop (#11380) @gitstart
|
|
1282
|
+
|
|
1283
|
+
#### `@mui/x-date-pickers-pro@6.18.5` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
1284
|
+
|
|
1285
|
+
Same changes as in `@mui/x-date-pickers@6.18.5`, plus:
|
|
1286
|
+
|
|
1287
|
+
- [DateRangePicker] Fix `autoFocus` behavior (#11376) @kealjones-wk
|
|
1288
|
+
|
|
1289
|
+
### Docs
|
|
1290
|
+
|
|
1291
|
+
- [docs] Respect GoT books (#11294) @janoma
|
|
1292
|
+
- [test] Fix flaky screenshots (#11391) @cherniavskii
|
|
1293
|
+
|
|
952
1294
|
## 6.18.4
|
|
953
1295
|
|
|
954
1296
|
_Dec 8, 2023_
|
|
@@ -59,15 +59,15 @@ DataGridProRaw.propTypes = {
|
|
|
59
59
|
current: PropTypes.object.isRequired
|
|
60
60
|
}),
|
|
61
61
|
/**
|
|
62
|
-
* The label of the
|
|
62
|
+
* The label of the Data Grid.
|
|
63
63
|
*/
|
|
64
64
|
'aria-label': PropTypes.string,
|
|
65
65
|
/**
|
|
66
|
-
* The id of the element containing a label for the
|
|
66
|
+
* The id of the element containing a label for the Data Grid.
|
|
67
67
|
*/
|
|
68
68
|
'aria-labelledby': PropTypes.string,
|
|
69
69
|
/**
|
|
70
|
-
* If `true`, the
|
|
70
|
+
* If `true`, the Data Grid height is dynamic and follow the number of rows in the Data Grid.
|
|
71
71
|
* @default false
|
|
72
72
|
*/
|
|
73
73
|
autoHeight: PropTypes.bool,
|
|
@@ -96,7 +96,7 @@ DataGridProRaw.propTypes = {
|
|
|
96
96
|
*/
|
|
97
97
|
cellModesModel: PropTypes.object,
|
|
98
98
|
/**
|
|
99
|
-
* If `true`, the
|
|
99
|
+
* If `true`, the Data Grid will display an extra column with checkboxes for selecting rows.
|
|
100
100
|
* @default false
|
|
101
101
|
*/
|
|
102
102
|
checkboxSelection: PropTypes.bool,
|
|
@@ -127,7 +127,7 @@ DataGridProRaw.propTypes = {
|
|
|
127
127
|
columnBuffer: PropTypes.number,
|
|
128
128
|
columnGroupingModel: PropTypes.arrayOf(PropTypes.object),
|
|
129
129
|
/**
|
|
130
|
-
* Sets the height in pixel of the column headers in the
|
|
130
|
+
* Sets the height in pixel of the column headers in the Data Grid.
|
|
131
131
|
* @default 56
|
|
132
132
|
*/
|
|
133
133
|
columnHeaderHeight: PropTypes.number,
|
|
@@ -141,8 +141,8 @@ DataGridProRaw.propTypes = {
|
|
|
141
141
|
*/
|
|
142
142
|
columnThreshold: PropTypes.number,
|
|
143
143
|
/**
|
|
144
|
-
* Set the column visibility model of the
|
|
145
|
-
* If defined, the
|
|
144
|
+
* Set the column visibility model of the Data Grid.
|
|
145
|
+
* If defined, the Data Grid will ignore the `hide` property in [[GridColDef]].
|
|
146
146
|
*/
|
|
147
147
|
columnVisibilityModel: PropTypes.object,
|
|
148
148
|
/**
|
|
@@ -152,7 +152,7 @@ DataGridProRaw.propTypes = {
|
|
|
152
152
|
*/
|
|
153
153
|
defaultGroupingExpansionDepth: PropTypes.number,
|
|
154
154
|
/**
|
|
155
|
-
* Set the density of the
|
|
155
|
+
* Set the density of the Data Grid.
|
|
156
156
|
* @default "standard"
|
|
157
157
|
*/
|
|
158
158
|
density: PropTypes.oneOf(['comfortable', 'compact', 'standard']),
|
|
@@ -227,8 +227,9 @@ DataGridProRaw.propTypes = {
|
|
|
227
227
|
*/
|
|
228
228
|
disableMultipleColumnsSorting: PropTypes.bool,
|
|
229
229
|
/**
|
|
230
|
-
* If `true`, multiple selection using the Ctrl or
|
|
231
|
-
*
|
|
230
|
+
* If `true`, multiple selection using the Ctrl/CMD or Shift key is disabled.
|
|
231
|
+
* The MIT DataGrid will ignore this prop, unless `checkboxSelection` is enabled.
|
|
232
|
+
* @default false (`!props.checkboxSelection` for MIT Data Grid)
|
|
232
233
|
*/
|
|
233
234
|
disableMultipleRowSelection: PropTypes.bool,
|
|
234
235
|
/**
|
|
@@ -273,7 +274,7 @@ DataGridProRaw.propTypes = {
|
|
|
273
274
|
return null;
|
|
274
275
|
}),
|
|
275
276
|
/**
|
|
276
|
-
* Set the filter model of the
|
|
277
|
+
* Set the filter model of the Data Grid.
|
|
277
278
|
*/
|
|
278
279
|
filterModel: PropTypes.shape({
|
|
279
280
|
items: PropTypes.arrayOf(PropTypes.shape({
|
|
@@ -288,7 +289,7 @@ DataGridProRaw.propTypes = {
|
|
|
288
289
|
quickFilterValues: PropTypes.array
|
|
289
290
|
}),
|
|
290
291
|
/**
|
|
291
|
-
* Forwarded props for the
|
|
292
|
+
* Forwarded props for the Data Grid root element.
|
|
292
293
|
* @ignore - do not document.
|
|
293
294
|
*/
|
|
294
295
|
forwardedProps: PropTypes.object,
|
|
@@ -392,7 +393,7 @@ DataGridProRaw.propTypes = {
|
|
|
392
393
|
*/
|
|
393
394
|
ignoreDiacritics: PropTypes.bool,
|
|
394
395
|
/**
|
|
395
|
-
* If `true`, the
|
|
396
|
+
* If `true`, the Data Grid will not use `valueFormatter` when exporting to CSV or copying to clipboard.
|
|
396
397
|
* If an object is provided, you can choose to ignore the `valueFormatter` for CSV export or clipboard export.
|
|
397
398
|
* @default false
|
|
398
399
|
*/
|
|
@@ -443,7 +444,7 @@ DataGridProRaw.propTypes = {
|
|
|
443
444
|
*/
|
|
444
445
|
loading: PropTypes.bool,
|
|
445
446
|
/**
|
|
446
|
-
* Set the locale text of the
|
|
447
|
+
* Set the locale text of the Data Grid.
|
|
447
448
|
* You can find all the translation keys supported in [the source](https://github.com/mui/mui-x/blob/HEAD/packages/grid/x-data-grid/src/constants/localeTextConstants.ts) in the GitHub repository.
|
|
448
449
|
*/
|
|
449
450
|
localeText: PropTypes.object,
|
|
@@ -644,7 +645,7 @@ DataGridProRaw.propTypes = {
|
|
|
644
645
|
*/
|
|
645
646
|
onProcessRowUpdateError: PropTypes.func,
|
|
646
647
|
/**
|
|
647
|
-
* Callback fired when the
|
|
648
|
+
* Callback fired when the Data Grid is resized.
|
|
648
649
|
* @param {ElementSize} containerSize With all properties from [[ElementSize]].
|
|
649
650
|
* @param {MuiEvent<{}>} event The event object.
|
|
650
651
|
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
@@ -716,7 +717,7 @@ DataGridProRaw.propTypes = {
|
|
|
716
717
|
*/
|
|
717
718
|
onSortModelChange: PropTypes.func,
|
|
718
719
|
/**
|
|
719
|
-
* Callback fired when the state of the
|
|
720
|
+
* Callback fired when the state of the Data Grid is updated.
|
|
720
721
|
* @param {GridState} state The new state.
|
|
721
722
|
* @param {MuiEvent<{}>} event The event object.
|
|
722
723
|
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
@@ -783,7 +784,7 @@ DataGridProRaw.propTypes = {
|
|
|
783
784
|
*/
|
|
784
785
|
rowCount: PropTypes.number,
|
|
785
786
|
/**
|
|
786
|
-
* Sets the height in pixel of a row in the
|
|
787
|
+
* Sets the height in pixel of a row in the Data Grid.
|
|
787
788
|
* @default 52
|
|
788
789
|
*/
|
|
789
790
|
rowHeight: PropTypes.number,
|
|
@@ -813,7 +814,7 @@ DataGridProRaw.propTypes = {
|
|
|
813
814
|
*/
|
|
814
815
|
rowSelection: PropTypes.bool,
|
|
815
816
|
/**
|
|
816
|
-
* Sets the row selection model of the
|
|
817
|
+
* Sets the row selection model of the Data Grid.
|
|
817
818
|
*/
|
|
818
819
|
rowSelectionModel: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired), PropTypes.number, PropTypes.string]),
|
|
819
820
|
/**
|
|
@@ -834,7 +835,7 @@ DataGridProRaw.propTypes = {
|
|
|
834
835
|
*/
|
|
835
836
|
rowThreshold: PropTypes.number,
|
|
836
837
|
/**
|
|
837
|
-
* Override the height/width of the
|
|
838
|
+
* Override the height/width of the Data Grid inner scrollbar.
|
|
838
839
|
*/
|
|
839
840
|
scrollbarSize: PropTypes.number,
|
|
840
841
|
/**
|
|
@@ -873,7 +874,7 @@ DataGridProRaw.propTypes = {
|
|
|
873
874
|
*/
|
|
874
875
|
sortingOrder: PropTypes.arrayOf(PropTypes.oneOf(['asc', 'desc'])),
|
|
875
876
|
/**
|
|
876
|
-
* Set the sort model of the
|
|
877
|
+
* Set the sort model of the Data Grid.
|
|
877
878
|
*/
|
|
878
879
|
sortModel: PropTypes.arrayOf(PropTypes.shape({
|
|
879
880
|
field: PropTypes.string.isRequired,
|
|
@@ -884,7 +885,7 @@ DataGridProRaw.propTypes = {
|
|
|
884
885
|
*/
|
|
885
886
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
886
887
|
/**
|
|
887
|
-
* If positive, the Grid will throttle updates coming from `apiRef.current.updateRows` and `apiRef.current.setRows`.
|
|
888
|
+
* If positive, the Data Grid will throttle updates coming from `apiRef.current.updateRows` and `apiRef.current.setRows`.
|
|
888
889
|
* It can be useful if you have a high update rate but do not want to do heavy work like filtering / sorting or rendering on each individual update.
|
|
889
890
|
* @default 0
|
|
890
891
|
*/
|
|
@@ -92,8 +92,10 @@ const GridHeaderFilterCell = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
92
92
|
break;
|
|
93
93
|
case 'Enter':
|
|
94
94
|
if (isEditing) {
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
if (!event.defaultPrevented) {
|
|
96
|
+
apiRef.current.stopHeaderFilterEditMode();
|
|
97
|
+
break;
|
|
98
|
+
}
|
|
97
99
|
}
|
|
98
100
|
if (event.metaKey || event.ctrlKey) {
|
|
99
101
|
headerFilterMenuRef.current = buttonRef.current;
|
|
@@ -130,7 +132,8 @@ const GridHeaderFilterCell = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
130
132
|
}, [apiRef, colDef.field]);
|
|
131
133
|
const onMouseDown = React.useCallback(event => {
|
|
132
134
|
if (!hasFocus) {
|
|
133
|
-
|
|
135
|
+
var _inputRef$current, _inputRef$current$con;
|
|
136
|
+
if ((_inputRef$current = inputRef.current) != null && (_inputRef$current$con = _inputRef$current.contains) != null && _inputRef$current$con.call(_inputRef$current, event.target)) {
|
|
134
137
|
inputRef.current.focus();
|
|
135
138
|
}
|
|
136
139
|
apiRef.current.setColumnHeaderFilterFocus(colDef.field, event);
|
package/index.js
CHANGED
|
@@ -59,15 +59,15 @@ DataGridProRaw.propTypes = {
|
|
|
59
59
|
current: PropTypes.object.isRequired
|
|
60
60
|
}),
|
|
61
61
|
/**
|
|
62
|
-
* The label of the
|
|
62
|
+
* The label of the Data Grid.
|
|
63
63
|
*/
|
|
64
64
|
'aria-label': PropTypes.string,
|
|
65
65
|
/**
|
|
66
|
-
* The id of the element containing a label for the
|
|
66
|
+
* The id of the element containing a label for the Data Grid.
|
|
67
67
|
*/
|
|
68
68
|
'aria-labelledby': PropTypes.string,
|
|
69
69
|
/**
|
|
70
|
-
* If `true`, the
|
|
70
|
+
* If `true`, the Data Grid height is dynamic and follow the number of rows in the Data Grid.
|
|
71
71
|
* @default false
|
|
72
72
|
*/
|
|
73
73
|
autoHeight: PropTypes.bool,
|
|
@@ -96,7 +96,7 @@ DataGridProRaw.propTypes = {
|
|
|
96
96
|
*/
|
|
97
97
|
cellModesModel: PropTypes.object,
|
|
98
98
|
/**
|
|
99
|
-
* If `true`, the
|
|
99
|
+
* If `true`, the Data Grid will display an extra column with checkboxes for selecting rows.
|
|
100
100
|
* @default false
|
|
101
101
|
*/
|
|
102
102
|
checkboxSelection: PropTypes.bool,
|
|
@@ -127,7 +127,7 @@ DataGridProRaw.propTypes = {
|
|
|
127
127
|
columnBuffer: PropTypes.number,
|
|
128
128
|
columnGroupingModel: PropTypes.arrayOf(PropTypes.object),
|
|
129
129
|
/**
|
|
130
|
-
* Sets the height in pixel of the column headers in the
|
|
130
|
+
* Sets the height in pixel of the column headers in the Data Grid.
|
|
131
131
|
* @default 56
|
|
132
132
|
*/
|
|
133
133
|
columnHeaderHeight: PropTypes.number,
|
|
@@ -141,8 +141,8 @@ DataGridProRaw.propTypes = {
|
|
|
141
141
|
*/
|
|
142
142
|
columnThreshold: PropTypes.number,
|
|
143
143
|
/**
|
|
144
|
-
* Set the column visibility model of the
|
|
145
|
-
* If defined, the
|
|
144
|
+
* Set the column visibility model of the Data Grid.
|
|
145
|
+
* If defined, the Data Grid will ignore the `hide` property in [[GridColDef]].
|
|
146
146
|
*/
|
|
147
147
|
columnVisibilityModel: PropTypes.object,
|
|
148
148
|
/**
|
|
@@ -152,7 +152,7 @@ DataGridProRaw.propTypes = {
|
|
|
152
152
|
*/
|
|
153
153
|
defaultGroupingExpansionDepth: PropTypes.number,
|
|
154
154
|
/**
|
|
155
|
-
* Set the density of the
|
|
155
|
+
* Set the density of the Data Grid.
|
|
156
156
|
* @default "standard"
|
|
157
157
|
*/
|
|
158
158
|
density: PropTypes.oneOf(['comfortable', 'compact', 'standard']),
|
|
@@ -227,8 +227,9 @@ DataGridProRaw.propTypes = {
|
|
|
227
227
|
*/
|
|
228
228
|
disableMultipleColumnsSorting: PropTypes.bool,
|
|
229
229
|
/**
|
|
230
|
-
* If `true`, multiple selection using the Ctrl or
|
|
231
|
-
*
|
|
230
|
+
* If `true`, multiple selection using the Ctrl/CMD or Shift key is disabled.
|
|
231
|
+
* The MIT DataGrid will ignore this prop, unless `checkboxSelection` is enabled.
|
|
232
|
+
* @default false (`!props.checkboxSelection` for MIT Data Grid)
|
|
232
233
|
*/
|
|
233
234
|
disableMultipleRowSelection: PropTypes.bool,
|
|
234
235
|
/**
|
|
@@ -273,7 +274,7 @@ DataGridProRaw.propTypes = {
|
|
|
273
274
|
return null;
|
|
274
275
|
}),
|
|
275
276
|
/**
|
|
276
|
-
* Set the filter model of the
|
|
277
|
+
* Set the filter model of the Data Grid.
|
|
277
278
|
*/
|
|
278
279
|
filterModel: PropTypes.shape({
|
|
279
280
|
items: PropTypes.arrayOf(PropTypes.shape({
|
|
@@ -288,7 +289,7 @@ DataGridProRaw.propTypes = {
|
|
|
288
289
|
quickFilterValues: PropTypes.array
|
|
289
290
|
}),
|
|
290
291
|
/**
|
|
291
|
-
* Forwarded props for the
|
|
292
|
+
* Forwarded props for the Data Grid root element.
|
|
292
293
|
* @ignore - do not document.
|
|
293
294
|
*/
|
|
294
295
|
forwardedProps: PropTypes.object,
|
|
@@ -392,7 +393,7 @@ DataGridProRaw.propTypes = {
|
|
|
392
393
|
*/
|
|
393
394
|
ignoreDiacritics: PropTypes.bool,
|
|
394
395
|
/**
|
|
395
|
-
* If `true`, the
|
|
396
|
+
* If `true`, the Data Grid will not use `valueFormatter` when exporting to CSV or copying to clipboard.
|
|
396
397
|
* If an object is provided, you can choose to ignore the `valueFormatter` for CSV export or clipboard export.
|
|
397
398
|
* @default false
|
|
398
399
|
*/
|
|
@@ -443,7 +444,7 @@ DataGridProRaw.propTypes = {
|
|
|
443
444
|
*/
|
|
444
445
|
loading: PropTypes.bool,
|
|
445
446
|
/**
|
|
446
|
-
* Set the locale text of the
|
|
447
|
+
* Set the locale text of the Data Grid.
|
|
447
448
|
* You can find all the translation keys supported in [the source](https://github.com/mui/mui-x/blob/HEAD/packages/grid/x-data-grid/src/constants/localeTextConstants.ts) in the GitHub repository.
|
|
448
449
|
*/
|
|
449
450
|
localeText: PropTypes.object,
|
|
@@ -644,7 +645,7 @@ DataGridProRaw.propTypes = {
|
|
|
644
645
|
*/
|
|
645
646
|
onProcessRowUpdateError: PropTypes.func,
|
|
646
647
|
/**
|
|
647
|
-
* Callback fired when the
|
|
648
|
+
* Callback fired when the Data Grid is resized.
|
|
648
649
|
* @param {ElementSize} containerSize With all properties from [[ElementSize]].
|
|
649
650
|
* @param {MuiEvent<{}>} event The event object.
|
|
650
651
|
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
@@ -716,7 +717,7 @@ DataGridProRaw.propTypes = {
|
|
|
716
717
|
*/
|
|
717
718
|
onSortModelChange: PropTypes.func,
|
|
718
719
|
/**
|
|
719
|
-
* Callback fired when the state of the
|
|
720
|
+
* Callback fired when the state of the Data Grid is updated.
|
|
720
721
|
* @param {GridState} state The new state.
|
|
721
722
|
* @param {MuiEvent<{}>} event The event object.
|
|
722
723
|
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
@@ -783,7 +784,7 @@ DataGridProRaw.propTypes = {
|
|
|
783
784
|
*/
|
|
784
785
|
rowCount: PropTypes.number,
|
|
785
786
|
/**
|
|
786
|
-
* Sets the height in pixel of a row in the
|
|
787
|
+
* Sets the height in pixel of a row in the Data Grid.
|
|
787
788
|
* @default 52
|
|
788
789
|
*/
|
|
789
790
|
rowHeight: PropTypes.number,
|
|
@@ -813,7 +814,7 @@ DataGridProRaw.propTypes = {
|
|
|
813
814
|
*/
|
|
814
815
|
rowSelection: PropTypes.bool,
|
|
815
816
|
/**
|
|
816
|
-
* Sets the row selection model of the
|
|
817
|
+
* Sets the row selection model of the Data Grid.
|
|
817
818
|
*/
|
|
818
819
|
rowSelectionModel: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired), PropTypes.number, PropTypes.string]),
|
|
819
820
|
/**
|
|
@@ -834,7 +835,7 @@ DataGridProRaw.propTypes = {
|
|
|
834
835
|
*/
|
|
835
836
|
rowThreshold: PropTypes.number,
|
|
836
837
|
/**
|
|
837
|
-
* Override the height/width of the
|
|
838
|
+
* Override the height/width of the Data Grid inner scrollbar.
|
|
838
839
|
*/
|
|
839
840
|
scrollbarSize: PropTypes.number,
|
|
840
841
|
/**
|
|
@@ -873,7 +874,7 @@ DataGridProRaw.propTypes = {
|
|
|
873
874
|
*/
|
|
874
875
|
sortingOrder: PropTypes.arrayOf(PropTypes.oneOf(['asc', 'desc'])),
|
|
875
876
|
/**
|
|
876
|
-
* Set the sort model of the
|
|
877
|
+
* Set the sort model of the Data Grid.
|
|
877
878
|
*/
|
|
878
879
|
sortModel: PropTypes.arrayOf(PropTypes.shape({
|
|
879
880
|
field: PropTypes.string.isRequired,
|
|
@@ -884,7 +885,7 @@ DataGridProRaw.propTypes = {
|
|
|
884
885
|
*/
|
|
885
886
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
886
887
|
/**
|
|
887
|
-
* If positive, the Grid will throttle updates coming from `apiRef.current.updateRows` and `apiRef.current.setRows`.
|
|
888
|
+
* If positive, the Data Grid will throttle updates coming from `apiRef.current.updateRows` and `apiRef.current.setRows`.
|
|
888
889
|
* It can be useful if you have a high update rate but do not want to do heavy work like filtering / sorting or rendering on each individual update.
|
|
889
890
|
* @default 0
|
|
890
891
|
*/
|
|
@@ -88,8 +88,10 @@ var GridHeaderFilterCell = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
88
88
|
break;
|
|
89
89
|
case 'Enter':
|
|
90
90
|
if (isEditing) {
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
if (!event.defaultPrevented) {
|
|
92
|
+
apiRef.current.stopHeaderFilterEditMode();
|
|
93
|
+
break;
|
|
94
|
+
}
|
|
93
95
|
}
|
|
94
96
|
if (event.metaKey || event.ctrlKey) {
|
|
95
97
|
headerFilterMenuRef.current = buttonRef.current;
|
|
@@ -128,7 +130,8 @@ var GridHeaderFilterCell = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
128
130
|
}, [apiRef, colDef.field]);
|
|
129
131
|
var onMouseDown = React.useCallback(function (event) {
|
|
130
132
|
if (!hasFocus) {
|
|
131
|
-
|
|
133
|
+
var _inputRef$current, _inputRef$current$con;
|
|
134
|
+
if ((_inputRef$current = inputRef.current) != null && (_inputRef$current$con = _inputRef$current.contains) != null && _inputRef$current$con.call(_inputRef$current, event.target)) {
|
|
132
135
|
inputRef.current.focus();
|
|
133
136
|
}
|
|
134
137
|
apiRef.current.setColumnHeaderFilterFocus(colDef.field, event);
|
package/legacy/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export var getReleaseInfo = function getReleaseInfo() {
|
|
3
|
-
var releaseInfo = "
|
|
3
|
+
var releaseInfo = "MTcwMzIyMTIwMDAwMA==";
|
|
4
4
|
if (process.env.NODE_ENV !== 'production') {
|
|
5
5
|
// A simple hack to set the value in the test environment (has no build step).
|
|
6
6
|
// eslint-disable-next-line no-useless-concat
|
|
@@ -59,15 +59,15 @@ DataGridProRaw.propTypes = {
|
|
|
59
59
|
current: PropTypes.object.isRequired
|
|
60
60
|
}),
|
|
61
61
|
/**
|
|
62
|
-
* The label of the
|
|
62
|
+
* The label of the Data Grid.
|
|
63
63
|
*/
|
|
64
64
|
'aria-label': PropTypes.string,
|
|
65
65
|
/**
|
|
66
|
-
* The id of the element containing a label for the
|
|
66
|
+
* The id of the element containing a label for the Data Grid.
|
|
67
67
|
*/
|
|
68
68
|
'aria-labelledby': PropTypes.string,
|
|
69
69
|
/**
|
|
70
|
-
* If `true`, the
|
|
70
|
+
* If `true`, the Data Grid height is dynamic and follow the number of rows in the Data Grid.
|
|
71
71
|
* @default false
|
|
72
72
|
*/
|
|
73
73
|
autoHeight: PropTypes.bool,
|
|
@@ -96,7 +96,7 @@ DataGridProRaw.propTypes = {
|
|
|
96
96
|
*/
|
|
97
97
|
cellModesModel: PropTypes.object,
|
|
98
98
|
/**
|
|
99
|
-
* If `true`, the
|
|
99
|
+
* If `true`, the Data Grid will display an extra column with checkboxes for selecting rows.
|
|
100
100
|
* @default false
|
|
101
101
|
*/
|
|
102
102
|
checkboxSelection: PropTypes.bool,
|
|
@@ -127,7 +127,7 @@ DataGridProRaw.propTypes = {
|
|
|
127
127
|
columnBuffer: PropTypes.number,
|
|
128
128
|
columnGroupingModel: PropTypes.arrayOf(PropTypes.object),
|
|
129
129
|
/**
|
|
130
|
-
* Sets the height in pixel of the column headers in the
|
|
130
|
+
* Sets the height in pixel of the column headers in the Data Grid.
|
|
131
131
|
* @default 56
|
|
132
132
|
*/
|
|
133
133
|
columnHeaderHeight: PropTypes.number,
|
|
@@ -141,8 +141,8 @@ DataGridProRaw.propTypes = {
|
|
|
141
141
|
*/
|
|
142
142
|
columnThreshold: PropTypes.number,
|
|
143
143
|
/**
|
|
144
|
-
* Set the column visibility model of the
|
|
145
|
-
* If defined, the
|
|
144
|
+
* Set the column visibility model of the Data Grid.
|
|
145
|
+
* If defined, the Data Grid will ignore the `hide` property in [[GridColDef]].
|
|
146
146
|
*/
|
|
147
147
|
columnVisibilityModel: PropTypes.object,
|
|
148
148
|
/**
|
|
@@ -152,7 +152,7 @@ DataGridProRaw.propTypes = {
|
|
|
152
152
|
*/
|
|
153
153
|
defaultGroupingExpansionDepth: PropTypes.number,
|
|
154
154
|
/**
|
|
155
|
-
* Set the density of the
|
|
155
|
+
* Set the density of the Data Grid.
|
|
156
156
|
* @default "standard"
|
|
157
157
|
*/
|
|
158
158
|
density: PropTypes.oneOf(['comfortable', 'compact', 'standard']),
|
|
@@ -227,8 +227,9 @@ DataGridProRaw.propTypes = {
|
|
|
227
227
|
*/
|
|
228
228
|
disableMultipleColumnsSorting: PropTypes.bool,
|
|
229
229
|
/**
|
|
230
|
-
* If `true`, multiple selection using the Ctrl or
|
|
231
|
-
*
|
|
230
|
+
* If `true`, multiple selection using the Ctrl/CMD or Shift key is disabled.
|
|
231
|
+
* The MIT DataGrid will ignore this prop, unless `checkboxSelection` is enabled.
|
|
232
|
+
* @default false (`!props.checkboxSelection` for MIT Data Grid)
|
|
232
233
|
*/
|
|
233
234
|
disableMultipleRowSelection: PropTypes.bool,
|
|
234
235
|
/**
|
|
@@ -273,7 +274,7 @@ DataGridProRaw.propTypes = {
|
|
|
273
274
|
return null;
|
|
274
275
|
}),
|
|
275
276
|
/**
|
|
276
|
-
* Set the filter model of the
|
|
277
|
+
* Set the filter model of the Data Grid.
|
|
277
278
|
*/
|
|
278
279
|
filterModel: PropTypes.shape({
|
|
279
280
|
items: PropTypes.arrayOf(PropTypes.shape({
|
|
@@ -288,7 +289,7 @@ DataGridProRaw.propTypes = {
|
|
|
288
289
|
quickFilterValues: PropTypes.array
|
|
289
290
|
}),
|
|
290
291
|
/**
|
|
291
|
-
* Forwarded props for the
|
|
292
|
+
* Forwarded props for the Data Grid root element.
|
|
292
293
|
* @ignore - do not document.
|
|
293
294
|
*/
|
|
294
295
|
forwardedProps: PropTypes.object,
|
|
@@ -392,7 +393,7 @@ DataGridProRaw.propTypes = {
|
|
|
392
393
|
*/
|
|
393
394
|
ignoreDiacritics: PropTypes.bool,
|
|
394
395
|
/**
|
|
395
|
-
* If `true`, the
|
|
396
|
+
* If `true`, the Data Grid will not use `valueFormatter` when exporting to CSV or copying to clipboard.
|
|
396
397
|
* If an object is provided, you can choose to ignore the `valueFormatter` for CSV export or clipboard export.
|
|
397
398
|
* @default false
|
|
398
399
|
*/
|
|
@@ -443,7 +444,7 @@ DataGridProRaw.propTypes = {
|
|
|
443
444
|
*/
|
|
444
445
|
loading: PropTypes.bool,
|
|
445
446
|
/**
|
|
446
|
-
* Set the locale text of the
|
|
447
|
+
* Set the locale text of the Data Grid.
|
|
447
448
|
* You can find all the translation keys supported in [the source](https://github.com/mui/mui-x/blob/HEAD/packages/grid/x-data-grid/src/constants/localeTextConstants.ts) in the GitHub repository.
|
|
448
449
|
*/
|
|
449
450
|
localeText: PropTypes.object,
|
|
@@ -644,7 +645,7 @@ DataGridProRaw.propTypes = {
|
|
|
644
645
|
*/
|
|
645
646
|
onProcessRowUpdateError: PropTypes.func,
|
|
646
647
|
/**
|
|
647
|
-
* Callback fired when the
|
|
648
|
+
* Callback fired when the Data Grid is resized.
|
|
648
649
|
* @param {ElementSize} containerSize With all properties from [[ElementSize]].
|
|
649
650
|
* @param {MuiEvent<{}>} event The event object.
|
|
650
651
|
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
@@ -716,7 +717,7 @@ DataGridProRaw.propTypes = {
|
|
|
716
717
|
*/
|
|
717
718
|
onSortModelChange: PropTypes.func,
|
|
718
719
|
/**
|
|
719
|
-
* Callback fired when the state of the
|
|
720
|
+
* Callback fired when the state of the Data Grid is updated.
|
|
720
721
|
* @param {GridState} state The new state.
|
|
721
722
|
* @param {MuiEvent<{}>} event The event object.
|
|
722
723
|
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
@@ -783,7 +784,7 @@ DataGridProRaw.propTypes = {
|
|
|
783
784
|
*/
|
|
784
785
|
rowCount: PropTypes.number,
|
|
785
786
|
/**
|
|
786
|
-
* Sets the height in pixel of a row in the
|
|
787
|
+
* Sets the height in pixel of a row in the Data Grid.
|
|
787
788
|
* @default 52
|
|
788
789
|
*/
|
|
789
790
|
rowHeight: PropTypes.number,
|
|
@@ -813,7 +814,7 @@ DataGridProRaw.propTypes = {
|
|
|
813
814
|
*/
|
|
814
815
|
rowSelection: PropTypes.bool,
|
|
815
816
|
/**
|
|
816
|
-
* Sets the row selection model of the
|
|
817
|
+
* Sets the row selection model of the Data Grid.
|
|
817
818
|
*/
|
|
818
819
|
rowSelectionModel: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired), PropTypes.number, PropTypes.string]),
|
|
819
820
|
/**
|
|
@@ -834,7 +835,7 @@ DataGridProRaw.propTypes = {
|
|
|
834
835
|
*/
|
|
835
836
|
rowThreshold: PropTypes.number,
|
|
836
837
|
/**
|
|
837
|
-
* Override the height/width of the
|
|
838
|
+
* Override the height/width of the Data Grid inner scrollbar.
|
|
838
839
|
*/
|
|
839
840
|
scrollbarSize: PropTypes.number,
|
|
840
841
|
/**
|
|
@@ -873,7 +874,7 @@ DataGridProRaw.propTypes = {
|
|
|
873
874
|
*/
|
|
874
875
|
sortingOrder: PropTypes.arrayOf(PropTypes.oneOf(['asc', 'desc'])),
|
|
875
876
|
/**
|
|
876
|
-
* Set the sort model of the
|
|
877
|
+
* Set the sort model of the Data Grid.
|
|
877
878
|
*/
|
|
878
879
|
sortModel: PropTypes.arrayOf(PropTypes.shape({
|
|
879
880
|
field: PropTypes.string.isRequired,
|
|
@@ -884,7 +885,7 @@ DataGridProRaw.propTypes = {
|
|
|
884
885
|
*/
|
|
885
886
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
886
887
|
/**
|
|
887
|
-
* If positive, the Grid will throttle updates coming from `apiRef.current.updateRows` and `apiRef.current.setRows`.
|
|
888
|
+
* If positive, the Data Grid will throttle updates coming from `apiRef.current.updateRows` and `apiRef.current.setRows`.
|
|
888
889
|
* It can be useful if you have a high update rate but do not want to do heavy work like filtering / sorting or rendering on each individual update.
|
|
889
890
|
* @default 0
|
|
890
891
|
*/
|
|
@@ -91,8 +91,10 @@ const GridHeaderFilterCell = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
91
91
|
break;
|
|
92
92
|
case 'Enter':
|
|
93
93
|
if (isEditing) {
|
|
94
|
-
|
|
95
|
-
|
|
94
|
+
if (!event.defaultPrevented) {
|
|
95
|
+
apiRef.current.stopHeaderFilterEditMode();
|
|
96
|
+
break;
|
|
97
|
+
}
|
|
96
98
|
}
|
|
97
99
|
if (event.metaKey || event.ctrlKey) {
|
|
98
100
|
headerFilterMenuRef.current = buttonRef.current;
|
|
@@ -128,7 +130,7 @@ const GridHeaderFilterCell = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
128
130
|
}, [apiRef, colDef.field]);
|
|
129
131
|
const onMouseDown = React.useCallback(event => {
|
|
130
132
|
if (!hasFocus) {
|
|
131
|
-
if (inputRef.current
|
|
133
|
+
if (inputRef.current?.contains?.(event.target)) {
|
|
132
134
|
inputRef.current.focus();
|
|
133
135
|
}
|
|
134
136
|
apiRef.current.setColumnHeaderFilterFocus(colDef.field, event);
|
package/modern/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export const getReleaseInfo = () => {
|
|
3
|
-
const releaseInfo = "
|
|
3
|
+
const releaseInfo = "MTcwMzIyMTIwMDAwMA==";
|
|
4
4
|
if (process.env.NODE_ENV !== 'production') {
|
|
5
5
|
// A simple hack to set the value in the test environment (has no build step).
|
|
6
6
|
// eslint-disable-next-line no-useless-concat
|
|
@@ -67,15 +67,15 @@ DataGridProRaw.propTypes = {
|
|
|
67
67
|
current: _propTypes.default.object.isRequired
|
|
68
68
|
}),
|
|
69
69
|
/**
|
|
70
|
-
* The label of the
|
|
70
|
+
* The label of the Data Grid.
|
|
71
71
|
*/
|
|
72
72
|
'aria-label': _propTypes.default.string,
|
|
73
73
|
/**
|
|
74
|
-
* The id of the element containing a label for the
|
|
74
|
+
* The id of the element containing a label for the Data Grid.
|
|
75
75
|
*/
|
|
76
76
|
'aria-labelledby': _propTypes.default.string,
|
|
77
77
|
/**
|
|
78
|
-
* If `true`, the
|
|
78
|
+
* If `true`, the Data Grid height is dynamic and follow the number of rows in the Data Grid.
|
|
79
79
|
* @default false
|
|
80
80
|
*/
|
|
81
81
|
autoHeight: _propTypes.default.bool,
|
|
@@ -104,7 +104,7 @@ DataGridProRaw.propTypes = {
|
|
|
104
104
|
*/
|
|
105
105
|
cellModesModel: _propTypes.default.object,
|
|
106
106
|
/**
|
|
107
|
-
* If `true`, the
|
|
107
|
+
* If `true`, the Data Grid will display an extra column with checkboxes for selecting rows.
|
|
108
108
|
* @default false
|
|
109
109
|
*/
|
|
110
110
|
checkboxSelection: _propTypes.default.bool,
|
|
@@ -135,7 +135,7 @@ DataGridProRaw.propTypes = {
|
|
|
135
135
|
columnBuffer: _propTypes.default.number,
|
|
136
136
|
columnGroupingModel: _propTypes.default.arrayOf(_propTypes.default.object),
|
|
137
137
|
/**
|
|
138
|
-
* Sets the height in pixel of the column headers in the
|
|
138
|
+
* Sets the height in pixel of the column headers in the Data Grid.
|
|
139
139
|
* @default 56
|
|
140
140
|
*/
|
|
141
141
|
columnHeaderHeight: _propTypes.default.number,
|
|
@@ -149,8 +149,8 @@ DataGridProRaw.propTypes = {
|
|
|
149
149
|
*/
|
|
150
150
|
columnThreshold: _propTypes.default.number,
|
|
151
151
|
/**
|
|
152
|
-
* Set the column visibility model of the
|
|
153
|
-
* If defined, the
|
|
152
|
+
* Set the column visibility model of the Data Grid.
|
|
153
|
+
* If defined, the Data Grid will ignore the `hide` property in [[GridColDef]].
|
|
154
154
|
*/
|
|
155
155
|
columnVisibilityModel: _propTypes.default.object,
|
|
156
156
|
/**
|
|
@@ -160,7 +160,7 @@ DataGridProRaw.propTypes = {
|
|
|
160
160
|
*/
|
|
161
161
|
defaultGroupingExpansionDepth: _propTypes.default.number,
|
|
162
162
|
/**
|
|
163
|
-
* Set the density of the
|
|
163
|
+
* Set the density of the Data Grid.
|
|
164
164
|
* @default "standard"
|
|
165
165
|
*/
|
|
166
166
|
density: _propTypes.default.oneOf(['comfortable', 'compact', 'standard']),
|
|
@@ -235,8 +235,9 @@ DataGridProRaw.propTypes = {
|
|
|
235
235
|
*/
|
|
236
236
|
disableMultipleColumnsSorting: _propTypes.default.bool,
|
|
237
237
|
/**
|
|
238
|
-
* If `true`, multiple selection using the Ctrl or
|
|
239
|
-
*
|
|
238
|
+
* If `true`, multiple selection using the Ctrl/CMD or Shift key is disabled.
|
|
239
|
+
* The MIT DataGrid will ignore this prop, unless `checkboxSelection` is enabled.
|
|
240
|
+
* @default false (`!props.checkboxSelection` for MIT Data Grid)
|
|
240
241
|
*/
|
|
241
242
|
disableMultipleRowSelection: _propTypes.default.bool,
|
|
242
243
|
/**
|
|
@@ -281,7 +282,7 @@ DataGridProRaw.propTypes = {
|
|
|
281
282
|
return null;
|
|
282
283
|
}),
|
|
283
284
|
/**
|
|
284
|
-
* Set the filter model of the
|
|
285
|
+
* Set the filter model of the Data Grid.
|
|
285
286
|
*/
|
|
286
287
|
filterModel: _propTypes.default.shape({
|
|
287
288
|
items: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
@@ -296,7 +297,7 @@ DataGridProRaw.propTypes = {
|
|
|
296
297
|
quickFilterValues: _propTypes.default.array
|
|
297
298
|
}),
|
|
298
299
|
/**
|
|
299
|
-
* Forwarded props for the
|
|
300
|
+
* Forwarded props for the Data Grid root element.
|
|
300
301
|
* @ignore - do not document.
|
|
301
302
|
*/
|
|
302
303
|
forwardedProps: _propTypes.default.object,
|
|
@@ -400,7 +401,7 @@ DataGridProRaw.propTypes = {
|
|
|
400
401
|
*/
|
|
401
402
|
ignoreDiacritics: _propTypes.default.bool,
|
|
402
403
|
/**
|
|
403
|
-
* If `true`, the
|
|
404
|
+
* If `true`, the Data Grid will not use `valueFormatter` when exporting to CSV or copying to clipboard.
|
|
404
405
|
* If an object is provided, you can choose to ignore the `valueFormatter` for CSV export or clipboard export.
|
|
405
406
|
* @default false
|
|
406
407
|
*/
|
|
@@ -451,7 +452,7 @@ DataGridProRaw.propTypes = {
|
|
|
451
452
|
*/
|
|
452
453
|
loading: _propTypes.default.bool,
|
|
453
454
|
/**
|
|
454
|
-
* Set the locale text of the
|
|
455
|
+
* Set the locale text of the Data Grid.
|
|
455
456
|
* You can find all the translation keys supported in [the source](https://github.com/mui/mui-x/blob/HEAD/packages/grid/x-data-grid/src/constants/localeTextConstants.ts) in the GitHub repository.
|
|
456
457
|
*/
|
|
457
458
|
localeText: _propTypes.default.object,
|
|
@@ -652,7 +653,7 @@ DataGridProRaw.propTypes = {
|
|
|
652
653
|
*/
|
|
653
654
|
onProcessRowUpdateError: _propTypes.default.func,
|
|
654
655
|
/**
|
|
655
|
-
* Callback fired when the
|
|
656
|
+
* Callback fired when the Data Grid is resized.
|
|
656
657
|
* @param {ElementSize} containerSize With all properties from [[ElementSize]].
|
|
657
658
|
* @param {MuiEvent<{}>} event The event object.
|
|
658
659
|
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
@@ -724,7 +725,7 @@ DataGridProRaw.propTypes = {
|
|
|
724
725
|
*/
|
|
725
726
|
onSortModelChange: _propTypes.default.func,
|
|
726
727
|
/**
|
|
727
|
-
* Callback fired when the state of the
|
|
728
|
+
* Callback fired when the state of the Data Grid is updated.
|
|
728
729
|
* @param {GridState} state The new state.
|
|
729
730
|
* @param {MuiEvent<{}>} event The event object.
|
|
730
731
|
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
@@ -791,7 +792,7 @@ DataGridProRaw.propTypes = {
|
|
|
791
792
|
*/
|
|
792
793
|
rowCount: _propTypes.default.number,
|
|
793
794
|
/**
|
|
794
|
-
* Sets the height in pixel of a row in the
|
|
795
|
+
* Sets the height in pixel of a row in the Data Grid.
|
|
795
796
|
* @default 52
|
|
796
797
|
*/
|
|
797
798
|
rowHeight: _propTypes.default.number,
|
|
@@ -821,7 +822,7 @@ DataGridProRaw.propTypes = {
|
|
|
821
822
|
*/
|
|
822
823
|
rowSelection: _propTypes.default.bool,
|
|
823
824
|
/**
|
|
824
|
-
* Sets the row selection model of the
|
|
825
|
+
* Sets the row selection model of the Data Grid.
|
|
825
826
|
*/
|
|
826
827
|
rowSelectionModel: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]).isRequired), _propTypes.default.number, _propTypes.default.string]),
|
|
827
828
|
/**
|
|
@@ -842,7 +843,7 @@ DataGridProRaw.propTypes = {
|
|
|
842
843
|
*/
|
|
843
844
|
rowThreshold: _propTypes.default.number,
|
|
844
845
|
/**
|
|
845
|
-
* Override the height/width of the
|
|
846
|
+
* Override the height/width of the Data Grid inner scrollbar.
|
|
846
847
|
*/
|
|
847
848
|
scrollbarSize: _propTypes.default.number,
|
|
848
849
|
/**
|
|
@@ -881,7 +882,7 @@ DataGridProRaw.propTypes = {
|
|
|
881
882
|
*/
|
|
882
883
|
sortingOrder: _propTypes.default.arrayOf(_propTypes.default.oneOf(['asc', 'desc'])),
|
|
883
884
|
/**
|
|
884
|
-
* Set the sort model of the
|
|
885
|
+
* Set the sort model of the Data Grid.
|
|
885
886
|
*/
|
|
886
887
|
sortModel: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
887
888
|
field: _propTypes.default.string.isRequired,
|
|
@@ -892,7 +893,7 @@ DataGridProRaw.propTypes = {
|
|
|
892
893
|
*/
|
|
893
894
|
sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
|
|
894
895
|
/**
|
|
895
|
-
* If positive, the Grid will throttle updates coming from `apiRef.current.updateRows` and `apiRef.current.setRows`.
|
|
896
|
+
* If positive, the Data Grid will throttle updates coming from `apiRef.current.updateRows` and `apiRef.current.setRows`.
|
|
896
897
|
* It can be useful if you have a high update rate but do not want to do heavy work like filtering / sorting or rendering on each individual update.
|
|
897
898
|
* @default 0
|
|
898
899
|
*/
|
|
@@ -99,8 +99,10 @@ const GridHeaderFilterCell = exports.GridHeaderFilterCell = /*#__PURE__*/React.f
|
|
|
99
99
|
break;
|
|
100
100
|
case 'Enter':
|
|
101
101
|
if (isEditing) {
|
|
102
|
-
|
|
103
|
-
|
|
102
|
+
if (!event.defaultPrevented) {
|
|
103
|
+
apiRef.current.stopHeaderFilterEditMode();
|
|
104
|
+
break;
|
|
105
|
+
}
|
|
104
106
|
}
|
|
105
107
|
if (event.metaKey || event.ctrlKey) {
|
|
106
108
|
headerFilterMenuRef.current = buttonRef.current;
|
|
@@ -136,7 +138,7 @@ const GridHeaderFilterCell = exports.GridHeaderFilterCell = /*#__PURE__*/React.f
|
|
|
136
138
|
}, [apiRef, colDef.field]);
|
|
137
139
|
const onMouseDown = React.useCallback(event => {
|
|
138
140
|
if (!hasFocus) {
|
|
139
|
-
if (inputRef.current
|
|
141
|
+
if (inputRef.current?.contains?.(event.target)) {
|
|
140
142
|
inputRef.current.focus();
|
|
141
143
|
}
|
|
142
144
|
apiRef.current.setColumnHeaderFilterFocus(colDef.field, event);
|
package/node/index.js
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.getReleaseInfo = void 0;
|
|
7
7
|
var _utils = require("@mui/utils");
|
|
8
8
|
const getReleaseInfo = () => {
|
|
9
|
-
const releaseInfo = "
|
|
9
|
+
const releaseInfo = "MTcwMzIyMTIwMDAwMA==";
|
|
10
10
|
if (process.env.NODE_ENV !== 'production') {
|
|
11
11
|
// A simple hack to set the value in the test environment (has no build step).
|
|
12
12
|
// eslint-disable-next-line no-useless-concat
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-data-grid-pro",
|
|
3
|
-
"version": "7.0.0-alpha.
|
|
3
|
+
"version": "7.0.0-alpha.6",
|
|
4
4
|
"description": "The Pro plan edition of the data grid component (MUI X).",
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"main": "./node/index.js",
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@babel/runtime": "^7.23.5",
|
|
36
|
-
"@mui/system": "^5.
|
|
37
|
-
"@mui/utils": "^5.
|
|
38
|
-
"@mui/x-data-grid": "7.0.0-alpha.
|
|
36
|
+
"@mui/system": "^5.15.0",
|
|
37
|
+
"@mui/utils": "^5.15.0",
|
|
38
|
+
"@mui/x-data-grid": "7.0.0-alpha.6",
|
|
39
39
|
"@mui/x-license-pro": "7.0.0-alpha.1",
|
|
40
40
|
"@types/format-util": "^1.0.4",
|
|
41
41
|
"clsx": "^2.0.0",
|
package/utils/releaseInfo.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export const getReleaseInfo = () => {
|
|
3
|
-
const releaseInfo = "
|
|
3
|
+
const releaseInfo = "MTcwMzIyMTIwMDAwMA==";
|
|
4
4
|
if (process.env.NODE_ENV !== 'production') {
|
|
5
5
|
// A simple hack to set the value in the test environment (has no build step).
|
|
6
6
|
// eslint-disable-next-line no-useless-concat
|