@mui/x-data-grid-premium 5.12.1 → 5.13.0
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 +155 -8
- package/DataGridPremium/DataGridPremium.js +1 -1
- package/DataGridPremium/useDataGridPremiumComponent.js +2 -3
- package/hooks/features/export/serializer/excelSerializer.js +6 -1
- package/hooks/features/rowGrouping/useGridRowGrouping.d.ts +1 -1
- package/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.js +2 -2
- package/index.js +1 -1
- package/legacy/DataGridPremium/DataGridPremium.js +1 -1
- package/legacy/DataGridPremium/useDataGridPremiumComponent.js +2 -3
- package/legacy/hooks/features/export/serializer/excelSerializer.js +43 -18
- package/legacy/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.js +2 -2
- package/legacy/index.js +1 -1
- package/legacy/utils/releaseInfo.js +1 -1
- package/modern/DataGridPremium/DataGridPremium.js +1 -1
- package/modern/DataGridPremium/useDataGridPremiumComponent.js +2 -3
- package/modern/hooks/features/export/serializer/excelSerializer.js +6 -1
- package/modern/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.js +2 -2
- package/modern/index.js +1 -1
- package/modern/utils/releaseInfo.js +1 -1
- package/node/DataGridPremium/DataGridPremium.js +1 -1
- package/node/DataGridPremium/useDataGridPremiumComponent.js +1 -2
- package/node/hooks/features/export/serializer/excelSerializer.js +6 -1
- package/node/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.js +1 -1
- package/node/index.js +1 -1
- package/node/utils/releaseInfo.js +1 -1
- package/package.json +6 -6
- package/utils/releaseInfo.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,153 @@
|
|
|
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
|
+
## 5.13.0
|
|
7
|
+
|
|
8
|
+
_Jul 7, 2022_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🎁 `@mui/x-date-pickers` and `@mui/x-date-pickers-pro` are now in beta!
|
|
13
|
+
|
|
14
|
+
- ✨ Allow detail panel's height to match its content (#5163) @m4theushw
|
|
15
|
+
|
|
16
|
+
```tsx
|
|
17
|
+
<DataGridPro getDetailPanelHeight={() => 'auto'} />
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
- 🌍 Add Romanian (ro-RO) locale on the data grid (#5345) @rolule
|
|
21
|
+
- 📚 Documentation improvements
|
|
22
|
+
- 🐞 Bugfixes
|
|
23
|
+
|
|
24
|
+
### `@mui/x-data-grid@v5.13.0` / `@mui/x-data-grid-pro@v5.13.0` / `@mui/x-data-grid-premium@v5.13.0`
|
|
25
|
+
|
|
26
|
+
#### Changes
|
|
27
|
+
|
|
28
|
+
- [DataGrid] Allows to customize variant of value input in filter panel (#4826) @alexfauquette
|
|
29
|
+
- [DataGrid] Add Romanian (ro-RO) locale (#5345) @rolule
|
|
30
|
+
- [DataGrid] Export Norwegian (nb-NO) locale (#5407) @cherniavskii
|
|
31
|
+
- [DataGrid] Fix broken "start editing" integration with Japanese (#5414) @mnajdova
|
|
32
|
+
- [DataGrid] Fix "stop editing" integration with IME e.g. Japanese (#5257) @Gumichocopengin8
|
|
33
|
+
- [DataGrid] Fix dimensions computation with `autoHeight` and scroll x (#5401) @flaviendelangle
|
|
34
|
+
- [DataGrid] Improve Slovak (sk-SK) locale (#5332) @msidlo
|
|
35
|
+
- [DataGrid] Mention Premium plan in error messages and docs warnings (#5328) @cherniavskii
|
|
36
|
+
- [DataGrid] Remove trailing spaces in filter input (#5279) @alexfauquette
|
|
37
|
+
- [DataGridPro] Allow to infer detail panel height from content (#5163) @m4theushw
|
|
38
|
+
- [DataGridPro] Fix the depth of nodes when switching from a non-flat tree to a flat tree (#5362) @flaviendelangle
|
|
39
|
+
|
|
40
|
+
### `@mui/x-date-pickers@v5.0.0-beta.0` / `@mui/x-date-picker-pro@5.0.0-beta.0`
|
|
41
|
+
|
|
42
|
+
#### Changes
|
|
43
|
+
|
|
44
|
+
- [DateRangePicker] Fix keyboard selection (#5265) @alexfauquette
|
|
45
|
+
- [DayPicker] Remove empty space at the bottom of the day view (#5073) @flaviendelangle
|
|
46
|
+
- [pickers] Add missing type dependencies (#5331) @Methuselah96
|
|
47
|
+
- [pickers] Pass the generics to the components in the theme augmentation (#5199) @toruticas
|
|
48
|
+
|
|
49
|
+
### Docs
|
|
50
|
+
|
|
51
|
+
- [docs] Explain how to use hooks inside a cell renderer (#5158) @flaviendelangle
|
|
52
|
+
- [docs] Fix server-side pagination demo (#5361) @cherniavskii
|
|
53
|
+
- [docs] Fix typo in the quick filter docs (#5313) @alexfauquette
|
|
54
|
+
- [docs] Improve the "Getting started" page (#5293) @alexfauquette
|
|
55
|
+
- [docs] New page for the pickers action bar customization (#5267) @flaviendelangle
|
|
56
|
+
- [docs] Revise and split up "Overview" page into "Introduction" (#4692) @samuelsycamore
|
|
57
|
+
- [docs] Use `useKeepGroupedColumnsHiddren` from the grid package on remaining demo (#5382) @flaviendelangle
|
|
58
|
+
|
|
59
|
+
## v5.12.3
|
|
60
|
+
|
|
61
|
+
_Jun 23, 2022_
|
|
62
|
+
|
|
63
|
+
We'd like to offer a big thanks to the 8 contributors who made this release possible. Here are some highlights ✨:
|
|
64
|
+
|
|
65
|
+
- 🌍 Add Swedish (sv-SE) locale on the data grid and the pickers (#5210) @mrxdst
|
|
66
|
+
- 🌍 Add Dutch (nl-NL) locale on the pickers (#5237) @DDukers
|
|
67
|
+
- 📚 Documentation improvements
|
|
68
|
+
- 🐞 Bugfixes
|
|
69
|
+
|
|
70
|
+
### `@mui/x-data-grid@v5.12.3` / `@mui/x-data-grid-pro@v5.12.3` / `@mui/x-data-grid-premium@v5.12.3`
|
|
71
|
+
|
|
72
|
+
#### Changes
|
|
73
|
+
|
|
74
|
+
- [DataGrid] Do not hide non-hideable column when pressing Hide All button (#5298) @flaviendelangle
|
|
75
|
+
- [DataGrid] Do not regenerate the row tree when the `loading` prop changes (#5213) @flaviendelangle
|
|
76
|
+
- [DataGrid] Fix the default filter operator fallback on state initialization (#5266) @flaviendelangle
|
|
77
|
+
- [DataGrid] Stop using the deprecated `api` prop in the grid components (#5205) @flaviendelangle
|
|
78
|
+
- [DataGrid] Add Swedish (sv-SE) locale (#5210) @mrxdst
|
|
79
|
+
- [DataGridPremium] Fix detail panel on `DataGridPremium` (#5264) @flaviendelangle
|
|
80
|
+
- [DataGridPremium] Fix Excel import with Remix / Vite (#5207) @alexfauquette
|
|
81
|
+
- [DataGridPremium] Fix error with quick filter and grouping rows (#5238) @alexfauquette
|
|
82
|
+
|
|
83
|
+
### `@mui/x-date-pickers@v5.0.0-alpha.7` / `@mui/x-date-pickers-pro@v5.0.0-alpha.7`
|
|
84
|
+
|
|
85
|
+
#### Changes
|
|
86
|
+
|
|
87
|
+
- [pickers] Export adapters from both `@mui/x-date-pickers` and `@mui/x-date-pickers-pro` (#5204) @flaviendelangle
|
|
88
|
+
- [pickers] Add Dutch (nl-NL) locale (#5237) @DDukers
|
|
89
|
+
|
|
90
|
+
### Docs
|
|
91
|
+
|
|
92
|
+
- [docs] Add `DataGridPremium` to all API sections (#5196) @flaviendelangle
|
|
93
|
+
- [docs] Add plan badge next to event name in the Events page (#5200) @flaviendelangle
|
|
94
|
+
- [docs] Add section for theme augmentation in the picker docs (#5276) @flaviendelangle
|
|
95
|
+
- [docs] Add waiting for upvote section for row group panel (#5271) @flaviendelangle
|
|
96
|
+
- [docs] Disable ad on main demo page (#5301) @joserodolfofreitas
|
|
97
|
+
- [docs] Fix typo in the `DateRangePicker` documentation (#5259) @flaviendelangle
|
|
98
|
+
|
|
99
|
+
### Core
|
|
100
|
+
|
|
101
|
+
- [core] Allow having multiple playgrounds (#5288) @alexfauquette
|
|
102
|
+
- [core] Improve typing of `GridFilterInputMultipleSingleSelect` (#5206) @flaviendelangle
|
|
103
|
+
- [core] Remove arbitrary new lines (#5245) @oliviertassinari
|
|
104
|
+
- [core] Remove dead logic (#5282) @oliviertassinari
|
|
105
|
+
- [test] Fix `inputFormat` when testing with different date adapters (#5291) @cherniavskii
|
|
106
|
+
- [test] Fix date assertion in Safari 13 (#5221) @m4theushw
|
|
107
|
+
- [test] Throw if date adapter is not found (#5289) @cherniavskii
|
|
108
|
+
- [test] Use mock for `ResizeObserver` (#5215) @m4theushw
|
|
109
|
+
|
|
110
|
+
## v5.12.2
|
|
111
|
+
|
|
112
|
+
_Jun 16, 2022_
|
|
113
|
+
|
|
114
|
+
We'd like to offer a big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
|
|
115
|
+
|
|
116
|
+
- 🚀 Performance improvement for dynamic row height (#5135) @m4theushw
|
|
117
|
+
- 🕒 Add demo of how to use the data grid with date pickers (#5053) @cherniavskii
|
|
118
|
+
- 📚 Documentation improvements
|
|
119
|
+
- 🐞 Bugfixes
|
|
120
|
+
|
|
121
|
+
### `@mui/x-data-grid@v5.12.2` / `@mui/x-data-grid-pro@v5.12.2` / `@mui/x-data-grid-premium@v5.12.2`
|
|
122
|
+
|
|
123
|
+
#### Changes
|
|
124
|
+
|
|
125
|
+
- [DataGrid] Fix for cosmetic bug on column filter badge (#5170) @simbahandiane
|
|
126
|
+
- [DataGrid] Hide vertical scrollbar if `autoHeight` is enabled (#5164) @m4theushw
|
|
127
|
+
- [DataGrid] Use exponential search to render non-measured rows (#5135) @m4theushw
|
|
128
|
+
- [DataGridPro] Fix label of the detail panel toggle column (#5191) @m4theushw
|
|
129
|
+
- [DataGridPro] Refresh detail panel caches when props change (#5110) @m4theushw
|
|
130
|
+
|
|
131
|
+
### Docs
|
|
132
|
+
|
|
133
|
+
- [docs] Add example with custom checkbox column (#5161) @flaviendelangle
|
|
134
|
+
- [docs] Batch small changes (#5177) @oliviertassinari
|
|
135
|
+
- [docs] Fix demo currency format (#5034) @oliviertassinari
|
|
136
|
+
- [docs] Fix outdated license description to match the EULA (#5219) @joserodolfofreitas
|
|
137
|
+
- [docs] Fix redundant headers (#5104) @oliviertassinari
|
|
138
|
+
- [docs] Fix some capitalization to match the guidelines (#5105) @oliviertassinari
|
|
139
|
+
- [docs] Improve the `getRowId` doc section (#5156) @flaviendelangle
|
|
140
|
+
- [docs] Instruction to deal with invalid license message (#5074) @joserodolfofreitas
|
|
141
|
+
- [docs] Use redirection in the code (#5114) @oliviertassinari
|
|
142
|
+
- [docs] Add demo of how to use the data grid with date pickers (#5053) @cherniavskii
|
|
143
|
+
|
|
144
|
+
### Core
|
|
145
|
+
|
|
146
|
+
- [core] Improve inline code rendering within the details tag (#5166) @Harmouch101
|
|
147
|
+
- [core] Remove unused props from plugin typing (#5185) @flaviendelangle
|
|
148
|
+
- [core] Use the scrollbar size from `useGridDimensions` on `DataGridProColumnHeaders` (#5201) @flaviendelangle
|
|
149
|
+
- [core] Fix `GridColTypeDef` type (#5167) @cherniavskii
|
|
150
|
+
- [core] Fix `GridColTypeDef` usage in demo (#5197) @cherniavskii
|
|
151
|
+
- [test] Add `waitFor` before asserting height (#5203) @m4theushw
|
|
152
|
+
|
|
6
153
|
## v5.12.1
|
|
7
154
|
|
|
8
155
|
_Jun 9, 2022_
|
|
@@ -28,7 +175,7 @@ We'd like to offer a big thanks to the 10 contributors who made this release pos
|
|
|
28
175
|
- [l10n] Update Japanese (ja-JP) locale (#5122) @hikotq
|
|
29
176
|
- [l10n] Update Russian (ru-RU) locale (#5069) @Artboomy
|
|
30
177
|
|
|
31
|
-
### `@mui/x-date-pickers@
|
|
178
|
+
### `@mui/x-date-pickers@v5.0.0-alpha.6` / `@mui/x-date-pickers-pro@v5.0.0-alpha.6`
|
|
32
179
|
|
|
33
180
|
#### Changes
|
|
34
181
|
|
|
@@ -95,7 +242,7 @@ We'd like to offer a big thanks to the 15 contributors who made this release pos
|
|
|
95
242
|
- [l10n] Add Norwegian (Bokmål) (nb-NO) locale (#5001) @spiftire
|
|
96
243
|
- [l10n] Add Turkish (tr-TR) locale (#5026) @Rassilion
|
|
97
244
|
|
|
98
|
-
### `@mui/x-date-pickers@
|
|
245
|
+
### `@mui/x-date-pickers@v5.0.0-alpha.5` / `@mui/x-date-pickers-pro@v5.0.0-alpha.5`
|
|
99
246
|
|
|
100
247
|
#### Breaking changes
|
|
101
248
|
|
|
@@ -168,7 +315,7 @@ We'd like to offer a big thanks to the 6 contributors who made this release poss
|
|
|
168
315
|
- [DataGridPremium] Support column spanning in the Excel export (#4830) @cherniavskii
|
|
169
316
|
- [l10n] Improve Russian (ru-RU) locale (#4864) @arvkonstantin
|
|
170
317
|
|
|
171
|
-
### `@mui/x-date-pickers@
|
|
318
|
+
### `@mui/x-date-pickers@v5.0.0-alpha.4` / `@mui/x-date-pickers-pro@v5.0.0-alpha.4`
|
|
172
319
|
|
|
173
320
|
#### Breaking changes
|
|
174
321
|
|
|
@@ -293,7 +440,7 @@ We'd like to offer a big thanks to the 15 contributors who made this release pos
|
|
|
293
440
|
- [l10n] Improve German (de-DE) locale (#4748) @sebastianfrey
|
|
294
441
|
- [l10n] Improve German (de-DE) locale (#4668) @izu-co
|
|
295
442
|
|
|
296
|
-
### `@mui/x-date-pickers@
|
|
443
|
+
### `@mui/x-date-pickers@v5.0.0-alpha.3` / `@mui/x-date-pickers-pro@v5.0.0-alpha.3`
|
|
297
444
|
|
|
298
445
|
#### Breaking changes
|
|
299
446
|
|
|
@@ -394,7 +541,7 @@ We'd like to offer a big thanks to the 6 contributors who made this release poss
|
|
|
394
541
|
- [DataGrid] Don't close column menu when updating rows (#4498) @m4theushw
|
|
395
542
|
- [DataGridPro] Introduce row reorder (#4034) @DanailH
|
|
396
543
|
|
|
397
|
-
### `@mui/x-date-pickers@
|
|
544
|
+
### `@mui/x-date-pickers@v5.0.0-alpha.2` / `@mui/x-date-pickers-pro@v5.0.0-alpha.2`
|
|
398
545
|
|
|
399
546
|
- [pickers] Pass `PaperProps` to `DesktopWrapper` component (#4584) @alexfauquette
|
|
400
547
|
- [TimePicker] Fix bug when time picker clear value (#4582) @alexfauquette
|
|
@@ -455,7 +602,7 @@ We'd like to offer a big thanks to the 9 contributors who made this release poss
|
|
|
455
602
|
- [DataGridPro] Fix toggling detail panel using keyboard (#4409) @cherniavskii
|
|
456
603
|
- [l10n] Add Hungarian (hu-HU) locale (#4458) @x22tri
|
|
457
604
|
|
|
458
|
-
### `@mui/x-date-pickers@
|
|
605
|
+
### `@mui/x-date-pickers@v5.0.0-alpha.1` / `@mui/x-date-pickers-pro@v5.0.0-alpha.1`
|
|
459
606
|
|
|
460
607
|
- [ClockPicker] Should call `shouldDisableTime` with the hours with meridiem (#4404) @flaviendelangle
|
|
461
608
|
- [MonthPicker] Clicking on a `PickersMonth` button should not trigger the form submit (#4402) @flaviendelangle
|
|
@@ -4084,9 +4231,9 @@ Big thanks to the 8 contributors who made this release possible. Here are some h
|
|
|
4084
4231
|
|
|
4085
4232
|
### Docs
|
|
4086
4233
|
|
|
4087
|
-
- [docs] Data
|
|
4234
|
+
- [docs] Data grid depends on side effects (#666) @oliviertassinari
|
|
4088
4235
|
- [docs] Clarify the purpose of x-grid-data-generator (#634) @Elius94
|
|
4089
|
-
- [docs] Data
|
|
4236
|
+
- [docs] Data grid is in the lab (#612) @oliviertassinari
|
|
4090
4237
|
- [docs] Fix Demo app, downgrade webpack-cli, known issue in latest version (#647) @dtassone
|
|
4091
4238
|
- [docs] Fix typo in columns.md @stojy
|
|
4092
4239
|
- [docs] Reduce confusion on /export page (#646) @SerdarMustafa1
|
|
@@ -323,7 +323,7 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
323
323
|
/**
|
|
324
324
|
* Function that returns the height of the row detail panel.
|
|
325
325
|
* @param {GridRowParams} params With all properties from [[GridRowParams]].
|
|
326
|
-
* @returns {number} The height in pixels.
|
|
326
|
+
* @returns {number | string} The height in pixels or "auto" to use the content height.
|
|
327
327
|
* @default "() => 500"
|
|
328
328
|
*/
|
|
329
329
|
getDetailPanelHeight: PropTypes.func,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useGridInitialization, useGridInitializeState, useGridClipboard, useGridColumnMenu, useGridColumns, columnsStateInitializer, useGridDensity, useGridCsvExport, useGridPrintExport, useGridFilter, filterStateInitializer, useGridFocus, useGridKeyboardNavigation, useGridPagination, paginationStateInitializer, useGridPreferencesPanel, useGridEditing_new, useGridEditing_old, editingStateInitializer_old, editingStateInitializer_new, useGridRows, useGridRowsPreProcessors, rowsStateInitializer, useGridRowsMeta, useGridParamsApi, useGridSelection, useGridSorting, sortingStateInitializer, useGridScroll, useGridEvents, useGridDimensions, useGridStatePersistence, useGridSelectionPreProcessors, columnMenuStateInitializer, densityStateInitializer, focusStateInitializer, preferencePanelStateInitializer, rowsMetaStateInitializer, selectionStateInitializer, useGridColumnReorder, columnReorderStateInitializer, useGridColumnResize, columnResizeStateInitializer, useGridTreeData, useGridTreeDataPreProcessors, useGridColumnPinning, columnPinningStateInitializer, useGridColumnPinningPreProcessors, useGridDetailPanel, detailPanelStateInitializer,
|
|
1
|
+
import { useGridInitialization, useGridInitializeState, useGridClipboard, useGridColumnMenu, useGridColumns, columnsStateInitializer, useGridDensity, useGridCsvExport, useGridPrintExport, useGridFilter, filterStateInitializer, useGridFocus, useGridKeyboardNavigation, useGridPagination, paginationStateInitializer, useGridPreferencesPanel, useGridEditing_new, useGridEditing_old, editingStateInitializer_old, editingStateInitializer_new, useGridRows, useGridRowsPreProcessors, rowsStateInitializer, useGridRowsMeta, useGridParamsApi, useGridSelection, useGridSorting, sortingStateInitializer, useGridScroll, useGridEvents, useGridDimensions, useGridStatePersistence, useGridSelectionPreProcessors, columnMenuStateInitializer, densityStateInitializer, focusStateInitializer, preferencePanelStateInitializer, rowsMetaStateInitializer, selectionStateInitializer, useGridColumnReorder, columnReorderStateInitializer, useGridColumnResize, columnResizeStateInitializer, useGridTreeData, useGridTreeDataPreProcessors, useGridColumnPinning, columnPinningStateInitializer, useGridColumnPinningPreProcessors, useGridDetailPanel, detailPanelStateInitializer, useGridDetailPanelPreProcessors, useGridInfiniteLoader, useGridColumnSpanning, useGridRowReorder, useGridRowReorderPreProcessors } from '@mui/x-data-grid-pro/internals';
|
|
2
2
|
// Premium-only features
|
|
3
3
|
import { useGridRowGrouping, rowGroupingStateInitializer } from '../hooks/features/rowGrouping/useGridRowGrouping';
|
|
4
4
|
import { useGridRowGroupingPreProcessors } from '../hooks/features/rowGrouping/useGridRowGroupingPreProcessors';
|
|
@@ -45,13 +45,12 @@ export const useDataGridPremiumComponent = (inputApiRef, props) => {
|
|
|
45
45
|
useGridTreeData(apiRef);
|
|
46
46
|
useGridKeyboardNavigation(apiRef, props);
|
|
47
47
|
useGridSelection(apiRef, props);
|
|
48
|
-
useGridDetailPanel(apiRef, props);
|
|
49
48
|
useGridColumnPinning(apiRef, props);
|
|
50
49
|
useGridColumns(apiRef, props);
|
|
51
50
|
useGridRows(apiRef, props);
|
|
52
51
|
useGridParamsApi(apiRef);
|
|
52
|
+
useGridDetailPanel(apiRef, props);
|
|
53
53
|
useGridColumnSpanning(apiRef);
|
|
54
|
-
useGridDetailPanelCache(apiRef, props);
|
|
55
54
|
const useGridEditing = (_props$experimentalFe2 = props.experimentalFeatures) != null && _props$experimentalFe2.newEditingApi ? useGridEditing_new : useGridEditing_old;
|
|
56
55
|
useGridEditing(apiRef, props);
|
|
57
56
|
useGridFocus(apiRef, props);
|
|
@@ -2,7 +2,12 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import { GRID_DATE_COL_DEF, GRID_DATETIME_COL_DEF } from '@mui/x-data-grid-pro';
|
|
3
3
|
import { buildWarning } from '@mui/x-data-grid/internals';
|
|
4
4
|
|
|
5
|
-
const getExcelJs = () =>
|
|
5
|
+
const getExcelJs = async () => {
|
|
6
|
+
const {
|
|
7
|
+
default: excelJsDefault
|
|
8
|
+
} = await import('exceljs');
|
|
9
|
+
return excelJsDefault;
|
|
10
|
+
};
|
|
6
11
|
|
|
7
12
|
const warnInvalidFormattedValue = buildWarning(['MUI: When the value of a field is an object or a `renderCell` is provided, the Excel export might not display the value correctly.', 'You can provide a `valueFormatter` with a string representation to be used.']);
|
|
8
13
|
|
|
@@ -8,4 +8,4 @@ export declare const rowGroupingStateInitializer: GridStateInitializer<Pick<Data
|
|
|
8
8
|
* @requires useGridRows (state, method) - can be after, async only
|
|
9
9
|
* @requires useGridParamsApi (method) - can be after, async only
|
|
10
10
|
*/
|
|
11
|
-
export declare const useGridRowGrouping: (apiRef: React.MutableRefObject<GridApiPremium>, props: Pick<DataGridPremiumProcessedProps, '
|
|
11
|
+
export declare const useGridRowGrouping: (apiRef: React.MutableRefObject<GridApiPremium>, props: Pick<DataGridPremiumProcessedProps, 'rowGroupingModel' | 'onRowGroupingModelChange' | 'defaultGroupingExpansionDepth' | 'isGroupExpandedByDefault' | 'groupingColDef' | 'rowGroupingColumnMode' | 'disableRowGrouping'>) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { gridColumnLookupSelector, gridRowIdsSelector, gridRowTreeSelector, useFirstRender } from '@mui/x-data-grid-pro';
|
|
3
|
+
import { gridColumnLookupSelector, gridRowIdsSelector, gridRowTreeSelector, useFirstRender, GRID_CHECKBOX_SELECTION_FIELD } from '@mui/x-data-grid-pro';
|
|
4
4
|
import { useGridRegisterPipeProcessor, useGridRegisterStrategyProcessor, sortRowTree, buildRowTree } from '@mui/x-data-grid-pro/internals';
|
|
5
5
|
import { gridRowGroupingModelSelector, gridRowGroupingSanitizedModelSelector } from './gridRowGroupingSelector';
|
|
6
6
|
import { createGroupingColDefForAllGroupingCriteria, createGroupingColDefForOneGroupingCriteria } from './createGroupingColDef';
|
|
@@ -68,7 +68,7 @@ export const useGridRowGroupingPreProcessors = (apiRef, props) => {
|
|
|
68
68
|
|
|
69
69
|
newColumnsLookup[groupingColDef.field] = groupingColDef;
|
|
70
70
|
});
|
|
71
|
-
const startIndex = newColumnFields[0] ===
|
|
71
|
+
const startIndex = newColumnFields[0] === GRID_CHECKBOX_SELECTION_FIELD ? 1 : 0;
|
|
72
72
|
newColumnFields = [...newColumnFields.slice(0, startIndex), ...groupingColDefs.map(colDef => colDef.field), ...newColumnFields.slice(startIndex)];
|
|
73
73
|
columnsState.all = newColumnFields;
|
|
74
74
|
columnsState.lookup = newColumnsLookup;
|
package/index.js
CHANGED
|
@@ -323,7 +323,7 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
323
323
|
/**
|
|
324
324
|
* Function that returns the height of the row detail panel.
|
|
325
325
|
* @param {GridRowParams} params With all properties from [[GridRowParams]].
|
|
326
|
-
* @returns {number} The height in pixels.
|
|
326
|
+
* @returns {number | string} The height in pixels or "auto" to use the content height.
|
|
327
327
|
* @default "() => 500"
|
|
328
328
|
*/
|
|
329
329
|
getDetailPanelHeight: PropTypes.func,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useGridInitialization, useGridInitializeState, useGridClipboard, useGridColumnMenu, useGridColumns, columnsStateInitializer, useGridDensity, useGridCsvExport, useGridPrintExport, useGridFilter, filterStateInitializer, useGridFocus, useGridKeyboardNavigation, useGridPagination, paginationStateInitializer, useGridPreferencesPanel, useGridEditing_new, useGridEditing_old, editingStateInitializer_old, editingStateInitializer_new, useGridRows, useGridRowsPreProcessors, rowsStateInitializer, useGridRowsMeta, useGridParamsApi, useGridSelection, useGridSorting, sortingStateInitializer, useGridScroll, useGridEvents, useGridDimensions, useGridStatePersistence, useGridSelectionPreProcessors, columnMenuStateInitializer, densityStateInitializer, focusStateInitializer, preferencePanelStateInitializer, rowsMetaStateInitializer, selectionStateInitializer, useGridColumnReorder, columnReorderStateInitializer, useGridColumnResize, columnResizeStateInitializer, useGridTreeData, useGridTreeDataPreProcessors, useGridColumnPinning, columnPinningStateInitializer, useGridColumnPinningPreProcessors, useGridDetailPanel, detailPanelStateInitializer,
|
|
1
|
+
import { useGridInitialization, useGridInitializeState, useGridClipboard, useGridColumnMenu, useGridColumns, columnsStateInitializer, useGridDensity, useGridCsvExport, useGridPrintExport, useGridFilter, filterStateInitializer, useGridFocus, useGridKeyboardNavigation, useGridPagination, paginationStateInitializer, useGridPreferencesPanel, useGridEditing_new, useGridEditing_old, editingStateInitializer_old, editingStateInitializer_new, useGridRows, useGridRowsPreProcessors, rowsStateInitializer, useGridRowsMeta, useGridParamsApi, useGridSelection, useGridSorting, sortingStateInitializer, useGridScroll, useGridEvents, useGridDimensions, useGridStatePersistence, useGridSelectionPreProcessors, columnMenuStateInitializer, densityStateInitializer, focusStateInitializer, preferencePanelStateInitializer, rowsMetaStateInitializer, selectionStateInitializer, useGridColumnReorder, columnReorderStateInitializer, useGridColumnResize, columnResizeStateInitializer, useGridTreeData, useGridTreeDataPreProcessors, useGridColumnPinning, columnPinningStateInitializer, useGridColumnPinningPreProcessors, useGridDetailPanel, detailPanelStateInitializer, useGridDetailPanelPreProcessors, useGridInfiniteLoader, useGridColumnSpanning, useGridRowReorder, useGridRowReorderPreProcessors } from '@mui/x-data-grid-pro/internals';
|
|
2
2
|
// Premium-only features
|
|
3
3
|
import { useGridRowGrouping, rowGroupingStateInitializer } from '../hooks/features/rowGrouping/useGridRowGrouping';
|
|
4
4
|
import { useGridRowGroupingPreProcessors } from '../hooks/features/rowGrouping/useGridRowGroupingPreProcessors';
|
|
@@ -45,13 +45,12 @@ export var useDataGridPremiumComponent = function useDataGridPremiumComponent(in
|
|
|
45
45
|
useGridTreeData(apiRef);
|
|
46
46
|
useGridKeyboardNavigation(apiRef, props);
|
|
47
47
|
useGridSelection(apiRef, props);
|
|
48
|
-
useGridDetailPanel(apiRef, props);
|
|
49
48
|
useGridColumnPinning(apiRef, props);
|
|
50
49
|
useGridColumns(apiRef, props);
|
|
51
50
|
useGridRows(apiRef, props);
|
|
52
51
|
useGridParamsApi(apiRef);
|
|
52
|
+
useGridDetailPanel(apiRef, props);
|
|
53
53
|
useGridColumnSpanning(apiRef);
|
|
54
|
-
useGridDetailPanelCache(apiRef, props);
|
|
55
54
|
var useGridEditing = (_props$experimentalFe2 = props.experimentalFeatures) != null && _props$experimentalFe2.newEditingApi ? useGridEditing_new : useGridEditing_old;
|
|
56
55
|
useGridEditing(apiRef, props);
|
|
57
56
|
useGridFocus(apiRef, props);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
2
|
-
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
3
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
3
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
5
4
|
import _typeof from "@babel/runtime/helpers/esm/typeof";
|
|
5
|
+
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
6
6
|
|
|
7
7
|
var _defaultColumnsStyles;
|
|
8
8
|
|
|
@@ -10,9 +10,34 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
10
10
|
import { GRID_DATE_COL_DEF, GRID_DATETIME_COL_DEF } from '@mui/x-data-grid-pro';
|
|
11
11
|
import { buildWarning } from '@mui/x-data-grid/internals';
|
|
12
12
|
|
|
13
|
-
var getExcelJs = function
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
var getExcelJs = /*#__PURE__*/function () {
|
|
14
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
15
|
+
var _yield$import, excelJsDefault;
|
|
16
|
+
|
|
17
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
18
|
+
while (1) {
|
|
19
|
+
switch (_context.prev = _context.next) {
|
|
20
|
+
case 0:
|
|
21
|
+
_context.next = 2;
|
|
22
|
+
return import('exceljs');
|
|
23
|
+
|
|
24
|
+
case 2:
|
|
25
|
+
_yield$import = _context.sent;
|
|
26
|
+
excelJsDefault = _yield$import.default;
|
|
27
|
+
return _context.abrupt("return", excelJsDefault);
|
|
28
|
+
|
|
29
|
+
case 5:
|
|
30
|
+
case "end":
|
|
31
|
+
return _context.stop();
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}, _callee);
|
|
35
|
+
}));
|
|
36
|
+
|
|
37
|
+
return function getExcelJs() {
|
|
38
|
+
return _ref.apply(this, arguments);
|
|
39
|
+
};
|
|
40
|
+
}();
|
|
16
41
|
|
|
17
42
|
var warnInvalidFormattedValue = buildWarning(['MUI: When the value of a field is an object or a `renderCell` is provided, the Excel export might not display the value correctly.', 'You can provide a `valueFormatter` with a string representation to be used.']);
|
|
18
43
|
|
|
@@ -182,19 +207,19 @@ export function buildExcel(_x, _x2) {
|
|
|
182
207
|
}
|
|
183
208
|
|
|
184
209
|
function _buildExcel() {
|
|
185
|
-
_buildExcel = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
210
|
+
_buildExcel = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(options, api) {
|
|
186
211
|
var columns, rowIds, includeHeaders, valueOptionsSheetName, exceljsPreProcess, exceljsPostProcess, _options$columnsStyle, columnsStyles, excelJS, workbook, worksheet, columnsWithArrayValueOptions, defaultValueOptionsFormulae, valueOptionsWorksheet;
|
|
187
212
|
|
|
188
|
-
return _regeneratorRuntime.wrap(function
|
|
213
|
+
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
189
214
|
while (1) {
|
|
190
|
-
switch (
|
|
215
|
+
switch (_context2.prev = _context2.next) {
|
|
191
216
|
case 0:
|
|
192
217
|
columns = options.columns, rowIds = options.rowIds, includeHeaders = options.includeHeaders, valueOptionsSheetName = options.valueOptionsSheetName, exceljsPreProcess = options.exceljsPreProcess, exceljsPostProcess = options.exceljsPostProcess, _options$columnsStyle = options.columnsStyles, columnsStyles = _options$columnsStyle === void 0 ? {} : _options$columnsStyle;
|
|
193
|
-
|
|
218
|
+
_context2.next = 3;
|
|
194
219
|
return getExcelJs();
|
|
195
220
|
|
|
196
221
|
case 3:
|
|
197
|
-
excelJS =
|
|
222
|
+
excelJS = _context2.sent;
|
|
198
223
|
workbook = new excelJS.Workbook();
|
|
199
224
|
worksheet = workbook.addWorksheet('Sheet1');
|
|
200
225
|
worksheet.columns = columns.map(function (column) {
|
|
@@ -202,11 +227,11 @@ function _buildExcel() {
|
|
|
202
227
|
});
|
|
203
228
|
|
|
204
229
|
if (!exceljsPreProcess) {
|
|
205
|
-
|
|
230
|
+
_context2.next = 10;
|
|
206
231
|
break;
|
|
207
232
|
}
|
|
208
233
|
|
|
209
|
-
|
|
234
|
+
_context2.next = 10;
|
|
210
235
|
return exceljsPreProcess({
|
|
211
236
|
workbook: workbook,
|
|
212
237
|
worksheet: worksheet
|
|
@@ -226,8 +251,8 @@ function _buildExcel() {
|
|
|
226
251
|
|
|
227
252
|
if (columnsWithArrayValueOptions.length) {
|
|
228
253
|
valueOptionsWorksheet = workbook.addWorksheet(valueOptionsSheetName);
|
|
229
|
-
valueOptionsWorksheet.columns = columnsWithArrayValueOptions.map(function (
|
|
230
|
-
var field =
|
|
254
|
+
valueOptionsWorksheet.columns = columnsWithArrayValueOptions.map(function (_ref2) {
|
|
255
|
+
var field = _ref2.field;
|
|
231
256
|
return {
|
|
232
257
|
key: field
|
|
233
258
|
};
|
|
@@ -264,25 +289,25 @@ function _buildExcel() {
|
|
|
264
289
|
});
|
|
265
290
|
|
|
266
291
|
if (!exceljsPostProcess) {
|
|
267
|
-
|
|
292
|
+
_context2.next = 18;
|
|
268
293
|
break;
|
|
269
294
|
}
|
|
270
295
|
|
|
271
|
-
|
|
296
|
+
_context2.next = 18;
|
|
272
297
|
return exceljsPostProcess({
|
|
273
298
|
workbook: workbook,
|
|
274
299
|
worksheet: worksheet
|
|
275
300
|
});
|
|
276
301
|
|
|
277
302
|
case 18:
|
|
278
|
-
return
|
|
303
|
+
return _context2.abrupt("return", workbook);
|
|
279
304
|
|
|
280
305
|
case 19:
|
|
281
306
|
case "end":
|
|
282
|
-
return
|
|
307
|
+
return _context2.stop();
|
|
283
308
|
}
|
|
284
309
|
}
|
|
285
|
-
},
|
|
310
|
+
}, _callee2);
|
|
286
311
|
}));
|
|
287
312
|
return _buildExcel.apply(this, arguments);
|
|
288
313
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
import { gridColumnLookupSelector, gridRowIdsSelector, gridRowTreeSelector, useFirstRender } from '@mui/x-data-grid-pro';
|
|
4
|
+
import { gridColumnLookupSelector, gridRowIdsSelector, gridRowTreeSelector, useFirstRender, GRID_CHECKBOX_SELECTION_FIELD } from '@mui/x-data-grid-pro';
|
|
5
5
|
import { useGridRegisterPipeProcessor, useGridRegisterStrategyProcessor, sortRowTree, buildRowTree } from '@mui/x-data-grid-pro/internals';
|
|
6
6
|
import { gridRowGroupingModelSelector, gridRowGroupingSanitizedModelSelector } from './gridRowGroupingSelector';
|
|
7
7
|
import { createGroupingColDefForAllGroupingCriteria, createGroupingColDefForOneGroupingCriteria } from './createGroupingColDef';
|
|
@@ -73,7 +73,7 @@ export var useGridRowGroupingPreProcessors = function useGridRowGroupingPreProce
|
|
|
73
73
|
|
|
74
74
|
newColumnsLookup[groupingColDef.field] = groupingColDef;
|
|
75
75
|
});
|
|
76
|
-
var startIndex = newColumnFields[0] ===
|
|
76
|
+
var startIndex = newColumnFields[0] === GRID_CHECKBOX_SELECTION_FIELD ? 1 : 0;
|
|
77
77
|
newColumnFields = [].concat(_toConsumableArray(newColumnFields.slice(0, startIndex)), _toConsumableArray(groupingColDefs.map(function (colDef) {
|
|
78
78
|
return colDef.field;
|
|
79
79
|
})), _toConsumableArray(newColumnFields.slice(startIndex)));
|
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 = "MTY1NzE0NDgwMDAwMA==";
|
|
4
4
|
|
|
5
5
|
if (process.env.NODE_ENV !== 'production') {
|
|
6
6
|
// A simple hack to set the value in the test environment (has no build step).
|
|
@@ -323,7 +323,7 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
323
323
|
/**
|
|
324
324
|
* Function that returns the height of the row detail panel.
|
|
325
325
|
* @param {GridRowParams} params With all properties from [[GridRowParams]].
|
|
326
|
-
* @returns {number} The height in pixels.
|
|
326
|
+
* @returns {number | string} The height in pixels or "auto" to use the content height.
|
|
327
327
|
* @default "() => 500"
|
|
328
328
|
*/
|
|
329
329
|
getDetailPanelHeight: PropTypes.func,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useGridInitialization, useGridInitializeState, useGridClipboard, useGridColumnMenu, useGridColumns, columnsStateInitializer, useGridDensity, useGridCsvExport, useGridPrintExport, useGridFilter, filterStateInitializer, useGridFocus, useGridKeyboardNavigation, useGridPagination, paginationStateInitializer, useGridPreferencesPanel, useGridEditing_new, useGridEditing_old, editingStateInitializer_old, editingStateInitializer_new, useGridRows, useGridRowsPreProcessors, rowsStateInitializer, useGridRowsMeta, useGridParamsApi, useGridSelection, useGridSorting, sortingStateInitializer, useGridScroll, useGridEvents, useGridDimensions, useGridStatePersistence, useGridSelectionPreProcessors, columnMenuStateInitializer, densityStateInitializer, focusStateInitializer, preferencePanelStateInitializer, rowsMetaStateInitializer, selectionStateInitializer, useGridColumnReorder, columnReorderStateInitializer, useGridColumnResize, columnResizeStateInitializer, useGridTreeData, useGridTreeDataPreProcessors, useGridColumnPinning, columnPinningStateInitializer, useGridColumnPinningPreProcessors, useGridDetailPanel, detailPanelStateInitializer,
|
|
1
|
+
import { useGridInitialization, useGridInitializeState, useGridClipboard, useGridColumnMenu, useGridColumns, columnsStateInitializer, useGridDensity, useGridCsvExport, useGridPrintExport, useGridFilter, filterStateInitializer, useGridFocus, useGridKeyboardNavigation, useGridPagination, paginationStateInitializer, useGridPreferencesPanel, useGridEditing_new, useGridEditing_old, editingStateInitializer_old, editingStateInitializer_new, useGridRows, useGridRowsPreProcessors, rowsStateInitializer, useGridRowsMeta, useGridParamsApi, useGridSelection, useGridSorting, sortingStateInitializer, useGridScroll, useGridEvents, useGridDimensions, useGridStatePersistence, useGridSelectionPreProcessors, columnMenuStateInitializer, densityStateInitializer, focusStateInitializer, preferencePanelStateInitializer, rowsMetaStateInitializer, selectionStateInitializer, useGridColumnReorder, columnReorderStateInitializer, useGridColumnResize, columnResizeStateInitializer, useGridTreeData, useGridTreeDataPreProcessors, useGridColumnPinning, columnPinningStateInitializer, useGridColumnPinningPreProcessors, useGridDetailPanel, detailPanelStateInitializer, useGridDetailPanelPreProcessors, useGridInfiniteLoader, useGridColumnSpanning, useGridRowReorder, useGridRowReorderPreProcessors } from '@mui/x-data-grid-pro/internals';
|
|
2
2
|
// Premium-only features
|
|
3
3
|
import { useGridRowGrouping, rowGroupingStateInitializer } from '../hooks/features/rowGrouping/useGridRowGrouping';
|
|
4
4
|
import { useGridRowGroupingPreProcessors } from '../hooks/features/rowGrouping/useGridRowGroupingPreProcessors';
|
|
@@ -43,13 +43,12 @@ export const useDataGridPremiumComponent = (inputApiRef, props) => {
|
|
|
43
43
|
useGridTreeData(apiRef);
|
|
44
44
|
useGridKeyboardNavigation(apiRef, props);
|
|
45
45
|
useGridSelection(apiRef, props);
|
|
46
|
-
useGridDetailPanel(apiRef, props);
|
|
47
46
|
useGridColumnPinning(apiRef, props);
|
|
48
47
|
useGridColumns(apiRef, props);
|
|
49
48
|
useGridRows(apiRef, props);
|
|
50
49
|
useGridParamsApi(apiRef);
|
|
50
|
+
useGridDetailPanel(apiRef, props);
|
|
51
51
|
useGridColumnSpanning(apiRef);
|
|
52
|
-
useGridDetailPanelCache(apiRef, props);
|
|
53
52
|
const useGridEditing = props.experimentalFeatures?.newEditingApi ? useGridEditing_new : useGridEditing_old;
|
|
54
53
|
useGridEditing(apiRef, props);
|
|
55
54
|
useGridFocus(apiRef, props);
|
|
@@ -2,7 +2,12 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import { GRID_DATE_COL_DEF, GRID_DATETIME_COL_DEF } from '@mui/x-data-grid-pro';
|
|
3
3
|
import { buildWarning } from '@mui/x-data-grid/internals';
|
|
4
4
|
|
|
5
|
-
const getExcelJs = () =>
|
|
5
|
+
const getExcelJs = async () => {
|
|
6
|
+
const {
|
|
7
|
+
default: excelJsDefault
|
|
8
|
+
} = await import('exceljs');
|
|
9
|
+
return excelJsDefault;
|
|
10
|
+
};
|
|
6
11
|
|
|
7
12
|
const warnInvalidFormattedValue = buildWarning(['MUI: When the value of a field is an object or a `renderCell` is provided, the Excel export might not display the value correctly.', 'You can provide a `valueFormatter` with a string representation to be used.']);
|
|
8
13
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { gridColumnLookupSelector, gridRowIdsSelector, gridRowTreeSelector, useFirstRender } from '@mui/x-data-grid-pro';
|
|
3
|
+
import { gridColumnLookupSelector, gridRowIdsSelector, gridRowTreeSelector, useFirstRender, GRID_CHECKBOX_SELECTION_FIELD } from '@mui/x-data-grid-pro';
|
|
4
4
|
import { useGridRegisterPipeProcessor, useGridRegisterStrategyProcessor, sortRowTree, buildRowTree } from '@mui/x-data-grid-pro/internals';
|
|
5
5
|
import { gridRowGroupingModelSelector, gridRowGroupingSanitizedModelSelector } from './gridRowGroupingSelector';
|
|
6
6
|
import { createGroupingColDefForAllGroupingCriteria, createGroupingColDefForOneGroupingCriteria } from './createGroupingColDef';
|
|
@@ -68,7 +68,7 @@ export const useGridRowGroupingPreProcessors = (apiRef, props) => {
|
|
|
68
68
|
|
|
69
69
|
newColumnsLookup[groupingColDef.field] = groupingColDef;
|
|
70
70
|
});
|
|
71
|
-
const startIndex = newColumnFields[0] ===
|
|
71
|
+
const startIndex = newColumnFields[0] === GRID_CHECKBOX_SELECTION_FIELD ? 1 : 0;
|
|
72
72
|
newColumnFields = [...newColumnFields.slice(0, startIndex), ...groupingColDefs.map(colDef => colDef.field), ...newColumnFields.slice(startIndex)];
|
|
73
73
|
columnsState.all = newColumnFields;
|
|
74
74
|
columnsState.lookup = newColumnsLookup;
|
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 = "MTY1NzE0NDgwMDAwMA==";
|
|
4
4
|
|
|
5
5
|
if (process.env.NODE_ENV !== 'production') {
|
|
6
6
|
// A simple hack to set the value in the test environment (has no build step).
|
|
@@ -346,7 +346,7 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
346
346
|
/**
|
|
347
347
|
* Function that returns the height of the row detail panel.
|
|
348
348
|
* @param {GridRowParams} params With all properties from [[GridRowParams]].
|
|
349
|
-
* @returns {number} The height in pixels.
|
|
349
|
+
* @returns {number | string} The height in pixels or "auto" to use the content height.
|
|
350
350
|
* @default "() => 500"
|
|
351
351
|
*/
|
|
352
352
|
getDetailPanelHeight: _propTypes.default.func,
|
|
@@ -56,13 +56,12 @@ const useDataGridPremiumComponent = (inputApiRef, props) => {
|
|
|
56
56
|
(0, _internals.useGridTreeData)(apiRef);
|
|
57
57
|
(0, _internals.useGridKeyboardNavigation)(apiRef, props);
|
|
58
58
|
(0, _internals.useGridSelection)(apiRef, props);
|
|
59
|
-
(0, _internals.useGridDetailPanel)(apiRef, props);
|
|
60
59
|
(0, _internals.useGridColumnPinning)(apiRef, props);
|
|
61
60
|
(0, _internals.useGridColumns)(apiRef, props);
|
|
62
61
|
(0, _internals.useGridRows)(apiRef, props);
|
|
63
62
|
(0, _internals.useGridParamsApi)(apiRef);
|
|
63
|
+
(0, _internals.useGridDetailPanel)(apiRef, props);
|
|
64
64
|
(0, _internals.useGridColumnSpanning)(apiRef);
|
|
65
|
-
(0, _internals.useGridDetailPanelCache)(apiRef, props);
|
|
66
65
|
const useGridEditing = (_props$experimentalFe2 = props.experimentalFeatures) != null && _props$experimentalFe2.newEditingApi ? _internals.useGridEditing_new : _internals.useGridEditing_old;
|
|
67
66
|
useGridEditing(apiRef, props);
|
|
68
67
|
(0, _internals.useGridFocus)(apiRef, props);
|
|
@@ -17,7 +17,12 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
17
17
|
|
|
18
18
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
19
19
|
|
|
20
|
-
const getExcelJs =
|
|
20
|
+
const getExcelJs = async () => {
|
|
21
|
+
const {
|
|
22
|
+
default: excelJsDefault
|
|
23
|
+
} = await Promise.resolve().then(() => _interopRequireWildcard(require('exceljs')));
|
|
24
|
+
return excelJsDefault;
|
|
25
|
+
};
|
|
21
26
|
|
|
22
27
|
const warnInvalidFormattedValue = (0, _internals.buildWarning)(['MUI: When the value of a field is an object or a `renderCell` is provided, the Excel export might not display the value correctly.', 'You can provide a `valueFormatter` with a string representation to be used.']);
|
|
23
28
|
|
|
@@ -88,7 +88,7 @@ const useGridRowGroupingPreProcessors = (apiRef, props) => {
|
|
|
88
88
|
|
|
89
89
|
newColumnsLookup[groupingColDef.field] = groupingColDef;
|
|
90
90
|
});
|
|
91
|
-
const startIndex = newColumnFields[0] ===
|
|
91
|
+
const startIndex = newColumnFields[0] === _xDataGridPro.GRID_CHECKBOX_SELECTION_FIELD ? 1 : 0;
|
|
92
92
|
newColumnFields = [...newColumnFields.slice(0, startIndex), ...groupingColDefs.map(colDef => colDef.field), ...newColumnFields.slice(startIndex)];
|
|
93
93
|
columnsState.all = newColumnFields;
|
|
94
94
|
columnsState.lookup = newColumnsLookup;
|
package/node/index.js
CHANGED
|
@@ -8,7 +8,7 @@ exports.getReleaseInfo = void 0;
|
|
|
8
8
|
var _utils = require("@mui/utils");
|
|
9
9
|
|
|
10
10
|
const getReleaseInfo = () => {
|
|
11
|
-
const releaseInfo = "
|
|
11
|
+
const releaseInfo = "MTY1NzE0NDgwMDAwMA==";
|
|
12
12
|
|
|
13
13
|
if (process.env.NODE_ENV !== 'production') {
|
|
14
14
|
// A simple hack to set the value in the test environment (has no build step).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-data-grid-premium",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.13.0",
|
|
4
4
|
"description": "The Premium plan edition of the data grid component (MUI X).",
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"main": "./node/index.js",
|
|
@@ -33,14 +33,14 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@babel/runtime": "^7.17.2",
|
|
35
35
|
"@mui/utils": "^5.4.1",
|
|
36
|
-
"@mui/x-data-grid": "5.
|
|
37
|
-
"@mui/x-data-grid-pro": "5.
|
|
38
|
-
"@mui/x-license-pro": "5.12.
|
|
36
|
+
"@mui/x-data-grid": "5.13.0",
|
|
37
|
+
"@mui/x-data-grid-pro": "5.13.0",
|
|
38
|
+
"@mui/x-license-pro": "5.12.3",
|
|
39
39
|
"@types/format-util": "^1.0.2",
|
|
40
|
-
"clsx": "^1.
|
|
40
|
+
"clsx": "^1.2.1",
|
|
41
41
|
"exceljs": "^4.3.0",
|
|
42
42
|
"prop-types": "^15.8.1",
|
|
43
|
-
"reselect": "^4.1.
|
|
43
|
+
"reselect": "^4.1.6"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"@mui/material": "^5.4.1",
|
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 = "MTY1NzE0NDgwMDAwMA==";
|
|
4
4
|
|
|
5
5
|
if (process.env.NODE_ENV !== 'production') {
|
|
6
6
|
// A simple hack to set the value in the test environment (has no build step).
|