@mui/x-data-grid-premium 8.0.0-alpha.3 → 8.0.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +274 -0
- package/DataGridPremium/DataGridPremium.js +5 -5
- package/README.md +1 -1
- package/esm/DataGridPremium/DataGridPremium.js +5 -5
- package/esm/hooks/features/rowGrouping/createGroupingColDef.js +5 -1
- package/esm/utils/releaseInfo.js +1 -1
- package/hooks/features/aggregation/gridAggregationSelectors.d.ts +2 -2
- package/hooks/features/rowGrouping/createGroupingColDef.js +5 -1
- package/hooks/features/rowGrouping/gridRowGroupingSelector.d.ts +2 -2
- package/index.js +1 -1
- package/modern/DataGridPremium/DataGridPremium.js +5 -5
- package/modern/hooks/features/rowGrouping/createGroupingColDef.js +5 -1
- package/modern/index.js +1 -1
- package/modern/utils/releaseInfo.js +1 -1
- package/package.json +5 -5
- package/utils/releaseInfo.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,133 @@
|
|
|
5
5
|
All notable changes to this project will be documented in this file.
|
|
6
6
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
7
7
|
|
|
8
|
+
## 8.0.0-alpha.4
|
|
9
|
+
|
|
10
|
+
_Dec 13, 2024_
|
|
11
|
+
|
|
12
|
+
We'd like to offer a big thanks to the 11 contributors who made this release possible. Here are some highlights ✨:
|
|
13
|
+
|
|
14
|
+
- 🌍 Improve Romanian locale on the Data Grid and Pickers
|
|
15
|
+
- 📚 Documentation improvements
|
|
16
|
+
- 🐞 Bugfixes
|
|
17
|
+
|
|
18
|
+
Special thanks go out to the community contributors who have helped make this release possible:
|
|
19
|
+
@k-rajat19, @nusr, @rares985, @zivl.
|
|
20
|
+
Following are all team members who have contributed to this release:
|
|
21
|
+
@alexfauquette, @arminmeh, @flaviendelangle, @JCQuintas, @KenanYusuf, @LukasTy, @MBilalShafi.
|
|
22
|
+
|
|
23
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
24
|
+
|
|
25
|
+
### Data Grid
|
|
26
|
+
|
|
27
|
+
#### Breaking changes
|
|
28
|
+
|
|
29
|
+
- The selectors signature has been updated due to the support of arguments in the selectors. Pass `undefined` as `arguments` if the selector doesn't use any arguments.
|
|
30
|
+
|
|
31
|
+
```diff
|
|
32
|
+
-mySelector(state, instanceId)
|
|
33
|
+
+mySelector(state, arguments, instanceId)
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
- The `useGridSelector` signature has been updated due to the introduction of arguments parameter in the selectors. Pass `undefined` as `arguments` if the selector doesn't use any arguments.
|
|
37
|
+
|
|
38
|
+
```diff
|
|
39
|
+
-const output = useGridSelector(apiRef, selector, equals)
|
|
40
|
+
+const output = useGridSelector(apiRef, selector, arguments, equals)
|
|
41
|
+
```
|
|
42
|
+
- The default variant for text fields and selects in the filter panel has been changed to `outlined`.
|
|
43
|
+
- The "row spanning" feature is now stable.
|
|
44
|
+
```diff
|
|
45
|
+
<DataGrid
|
|
46
|
+
- unstable_rowSpanning
|
|
47
|
+
+ rowSpanning
|
|
48
|
+
/>
|
|
49
|
+
```
|
|
50
|
+
- Selected row is now deselected when clicked again.
|
|
51
|
+
|
|
52
|
+
#### `@mui/x-data-grid@8.0.0-alpha.4`
|
|
53
|
+
|
|
54
|
+
- [DataGrid] Deselect selected row on click (#15509) @k-rajat19
|
|
55
|
+
- [DataGrid] Fix "No rows" displaying when all rows are pinned (#15335) @nusr
|
|
56
|
+
- [DataGrid] Make row spanning feature stable (#15742) @MBilalShafi
|
|
57
|
+
- [DataGrid] Round dimensions to avoid subpixel rendering error (#15850) @KenanYusuf
|
|
58
|
+
- [DataGrid] Toggle menu on click in `<GridActionsCell />` (#15867) @k-rajat19
|
|
59
|
+
- [DataGrid] Trigger row spanning computation on rows update (#15858) @MBilalShafi
|
|
60
|
+
- [DataGrid] Update filter panel input variant (#15807) @KenanYusuf
|
|
61
|
+
- [DataGrid] Use `columnsManagement` slot (#15817) @k-rajat19
|
|
62
|
+
- [DataGrid] Use new selector signature (#15200) @MBilalShafi
|
|
63
|
+
- [l10n] Improve Romanian (ro-RO) locale (#15745) @rares985
|
|
64
|
+
|
|
65
|
+
#### `@mui/x-data-grid-pro@8.0.0-alpha.4` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
66
|
+
|
|
67
|
+
Same changes as in `@mui/x-data-grid@8.0.0-alpha.4`, plus:
|
|
68
|
+
|
|
69
|
+
- [DataGridPro] Make row reordering work with pagination (#15355) @k-rajat19
|
|
70
|
+
|
|
71
|
+
#### `@mui/x-data-grid-premium@8.0.0-alpha.4` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
72
|
+
|
|
73
|
+
Same changes as in `@mui/x-data-grid-pro@8.0.0-alpha.4`, plus:
|
|
74
|
+
|
|
75
|
+
- [DataGridPremium] Fix group column ignoring `valueOptions` for `singleSelect` column type (#15739) @arminmeh
|
|
76
|
+
|
|
77
|
+
### Date and Time Pickers
|
|
78
|
+
|
|
79
|
+
#### `@mui/x-date-pickers@8.0.0-alpha.4`
|
|
80
|
+
|
|
81
|
+
- [l10n] Improve Romanian (ro-RO) locale (#15745) @rares985
|
|
82
|
+
- [pickers] Clean `usePicker` logic (#15763) @flaviendelangle
|
|
83
|
+
- [pickers] Rename layout `ownerState` property from `isRtl` to `layoutDirection` (#15803) @flaviendelangle
|
|
84
|
+
- [pickers] Use the new `ownerState` in `useClearableField` (#15776) @flaviendelangle
|
|
85
|
+
- [pickers] Use the new `ownerState` in the toolbar components (#15777) @flaviendelangle
|
|
86
|
+
- [pickers] Use the new `ownerState` object for the clock components and the desktop / mobile wrappers (#15669) @flaviendelangle
|
|
87
|
+
|
|
88
|
+
#### `@mui/x-date-pickers-pro@8.0.0-alpha.4` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
89
|
+
|
|
90
|
+
Same changes as in `@mui/x-date-pickers@8.0.0-alpha.4`.
|
|
91
|
+
|
|
92
|
+
### Charts
|
|
93
|
+
|
|
94
|
+
#### Breaking changes
|
|
95
|
+
|
|
96
|
+
- The default styling of the charts tooltip has been updated.
|
|
97
|
+
|
|
98
|
+
#### `@mui/x-charts@8.0.0-alpha.4`
|
|
99
|
+
|
|
100
|
+
- [charts] Fix hydration missmatch (#15647) @alexfauquette
|
|
101
|
+
- [charts] Fix internal spelling typo (#15805) @zivl
|
|
102
|
+
- [charts] Fix scatter dataset with missing data (#15802) @alexfauquette
|
|
103
|
+
- [charts] HTML Labels (#15813) @JCQuintas
|
|
104
|
+
- [charts] Only access store values by using hooks (#15764) @alexfauquette
|
|
105
|
+
- [charts] Update Tooltip style (#15630) @alexfauquette
|
|
106
|
+
|
|
107
|
+
#### `@mui/x-charts-pro@8.0.0-alpha.4` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
108
|
+
|
|
109
|
+
Same changes as in `@mui/x-charts@8.0.0-alpha.4`.
|
|
110
|
+
|
|
111
|
+
### Tree View
|
|
112
|
+
|
|
113
|
+
#### `@mui/x-tree-view@8.0.0-alpha.4`
|
|
114
|
+
|
|
115
|
+
No changes, releasing to keep the versions in sync.
|
|
116
|
+
|
|
117
|
+
#### `@mui/x-tree-view-pro@8.0.0-alpha.4` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
118
|
+
|
|
119
|
+
Releasing to benefit from license package fix (#15814).
|
|
120
|
+
|
|
121
|
+
### Docs
|
|
122
|
+
|
|
123
|
+
- [docs] Clean Joy and Browser custom field demos (#15707) @flaviendelangle
|
|
124
|
+
- [docs] Fix outdated link to handbook (#15855) @oliviertassinari
|
|
125
|
+
- [docs] Improve Pickers accessible DOM migration section description (#15596) @LukasTy
|
|
126
|
+
- [docs] Use `updateRows` method for list view demos (#15732) @KenanYusuf
|
|
127
|
+
- [docs] Use date library version from package dev dependencies for sandboxes (#15762) @LukasTy
|
|
128
|
+
|
|
129
|
+
### Core
|
|
130
|
+
|
|
131
|
+
- [code-infra] Add Charts sandbox generation (#15830) @JCQuintas
|
|
132
|
+
- [code-infra] Remove redundant `@type/react-test-renderer` dep (#15766) @LukasTy
|
|
133
|
+
- [license] Use `console.log` for the error message on Codesandbox to avoid rendering error (#15814) @arminmeh
|
|
134
|
+
|
|
8
135
|
## 8.0.0-alpha.3
|
|
9
136
|
|
|
10
137
|
_Dec 5, 2024_
|
|
@@ -567,6 +694,153 @@ Same changes as in `@mui/x-charts@8.0.0-alpha.0`.
|
|
|
567
694
|
- [release] v8 preparation (#15054) @michelengelen
|
|
568
695
|
- [test] Fix advanced list view regression test snapshot (#15260) @KenanYusuf
|
|
569
696
|
|
|
697
|
+
## 7.23.2
|
|
698
|
+
|
|
699
|
+
_Dec 12, 2024_
|
|
700
|
+
|
|
701
|
+
We'd like to offer a big thanks to the 11 contributors who made this release possible. Here are some highlights ✨:
|
|
702
|
+
|
|
703
|
+
- 🌍 Improve Romanian and Turkish locales on the Data Grid
|
|
704
|
+
- 🌍 Improve Romanian locale on the Pickers
|
|
705
|
+
- 📚 Documentation improvements
|
|
706
|
+
- 🐞 Bugfixes
|
|
707
|
+
|
|
708
|
+
Special thanks go out to the community contributors who have helped make this release possible:
|
|
709
|
+
@ihsanberkozcan, @k-rajat19, @lhilgert9, @nusr, @rares985.
|
|
710
|
+
|
|
711
|
+
Following are all team members who have contributed to this release:
|
|
712
|
+
@alexfauquette, @arminmeh, @flaviendelangle, @JCQuintas, @KenanYusuf, @LukasTy.
|
|
713
|
+
|
|
714
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
715
|
+
|
|
716
|
+
### Data Grid
|
|
717
|
+
|
|
718
|
+
#### `@mui/x-data-grid@7.23.2`
|
|
719
|
+
|
|
720
|
+
- [DataGrid] Fix "No rows" displaying when all rows are pinned (#15851) @nusr
|
|
721
|
+
- [DataGrid] Use `columnsManagement` slot (#15821) @k-rajat19
|
|
722
|
+
- [l10n] Improve Romanian (ro-RO) locale (#15751) @rares985
|
|
723
|
+
- [l10n] Improve Turkish (tr-TR) locale (#15748) @ihsanberkozcan
|
|
724
|
+
|
|
725
|
+
#### `@mui/x-data-grid-pro@7.23.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
726
|
+
|
|
727
|
+
Same changes as in `@mui/x-data-grid@7.23.2`, plus:
|
|
728
|
+
|
|
729
|
+
- [DataGridPro] Make Row reordering work with pagination (#15782) @k-rajat19
|
|
730
|
+
|
|
731
|
+
#### `@mui/x-data-grid-premium@7.23.2` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
732
|
+
|
|
733
|
+
Same changes as in `@mui/x-data-grid-pro@7.23.2`, plus:
|
|
734
|
+
|
|
735
|
+
- [DataGridPremium] Fix group column ignoring `valueOptions` for `singleSelect` column type (#15754) @arminmeh
|
|
736
|
+
|
|
737
|
+
### Date and Time Pickers
|
|
738
|
+
|
|
739
|
+
#### `@mui/x-date-pickers@7.23.2`
|
|
740
|
+
|
|
741
|
+
- [l10n] Improve Romanian (ro-RO) locale (#15751) @rares985
|
|
742
|
+
|
|
743
|
+
#### `@mui/x-date-pickers-pro@7.23.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
744
|
+
|
|
745
|
+
Same changes as in `@mui/x-date-pickers@7.23.2`.
|
|
746
|
+
|
|
747
|
+
### Charts
|
|
748
|
+
|
|
749
|
+
#### `@mui/x-charts@7.23.2`
|
|
750
|
+
|
|
751
|
+
- [charts] Fix key generation for the ChartsGrid (#15864) @alexfauquette
|
|
752
|
+
- [charts] Fix scatter dataset with missing data (#15804) @alexfauquette
|
|
753
|
+
|
|
754
|
+
#### `@mui/x-charts-pro@7.23.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
755
|
+
|
|
756
|
+
Same changes as in `@mui/x-charts@7.23.2`.
|
|
757
|
+
|
|
758
|
+
#### `@mui/x-tree-view@v7.23.2`
|
|
759
|
+
|
|
760
|
+
No changes, releasing to keep the versions in sync.
|
|
761
|
+
|
|
762
|
+
#### `@mui/x-tree-view-pro@7.23.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
763
|
+
|
|
764
|
+
Releasing to benefit from license package fix (#15818).
|
|
765
|
+
|
|
766
|
+
### Docs
|
|
767
|
+
|
|
768
|
+
- [docs] Fix typo in charts axis documentation (#15746) @JCQuintas
|
|
769
|
+
- [docs] Improve Pickers accessible DOM structure description (#15752) @LukasTy
|
|
770
|
+
- [docs] Use `updateRows` method for list view demos (#15824) @KenanYusuf
|
|
771
|
+
- [docs] Use date library version from package dev dependencies for sandboxes (#15767) @LukasTy
|
|
772
|
+
|
|
773
|
+
### Core
|
|
774
|
+
|
|
775
|
+
- [core] Add `@mui/x-tree-view-pro` to `releaseChangelog` (#15747) @flaviendelangle
|
|
776
|
+
- [license] Use `console.log` for the error message on Codesandbox to avoid rendering error (#15818) @arminmeh
|
|
777
|
+
|
|
778
|
+
## 7.23.1
|
|
779
|
+
|
|
780
|
+
_Dec 5, 2024_
|
|
781
|
+
|
|
782
|
+
We'd like to offer a big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
|
|
783
|
+
|
|
784
|
+
- 🌍 Improve German locale on the Data Grid component
|
|
785
|
+
- 🐞 Bugfixes
|
|
786
|
+
|
|
787
|
+
Special thanks go out to the community contributors who have helped make this release possible:
|
|
788
|
+
@lhilgert9.
|
|
789
|
+
|
|
790
|
+
Following are all team members who have contributed to this release:
|
|
791
|
+
@arthurbalduini, @cherniavskii, @flaviendelangle, @JCQuintas, @LukasTy and @MBilalShafi.
|
|
792
|
+
|
|
793
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
794
|
+
|
|
795
|
+
### Data Grid
|
|
796
|
+
|
|
797
|
+
#### `@mui/x-data-grid@7.23.1`
|
|
798
|
+
|
|
799
|
+
- [DataGrid] Make column autosizing work with flex columns (#15712) @cherniavskii
|
|
800
|
+
- [l10n] Improve German (de-DE) locale (#15641) @lhilgert9
|
|
801
|
+
|
|
802
|
+
#### `@mui/x-data-grid-pro@7.23.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
803
|
+
|
|
804
|
+
Same changes as in `@mui/x-data-grid@7.23.1`, plus:
|
|
805
|
+
|
|
806
|
+
- [DataGridPro] Cleanup pinned rows on removal (#15702) @cherniavskii
|
|
807
|
+
|
|
808
|
+
#### `@mui/x-data-grid-premium@7.23.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
809
|
+
|
|
810
|
+
Same changes as in `@mui/x-data-grid-pro@7.23.1`.
|
|
811
|
+
|
|
812
|
+
### Date and Time Pickers
|
|
813
|
+
|
|
814
|
+
#### `@mui/x-date-pickers@7.23.1`
|
|
815
|
+
|
|
816
|
+
- [TimePicker] Prevent mouse events after `touchend` event (#15430) @arthurbalduini
|
|
817
|
+
|
|
818
|
+
#### `@mui/x-date-pickers-pro@7.23.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
819
|
+
|
|
820
|
+
Same changes as in `@mui/x-date-pickers@7.23.1`.
|
|
821
|
+
|
|
822
|
+
### Charts
|
|
823
|
+
|
|
824
|
+
#### `@mui/x-charts@7.23.1`
|
|
825
|
+
|
|
826
|
+
- [charts] Improve SVG `pattern` and `gradient` support (#15724) @JCQuintas
|
|
827
|
+
|
|
828
|
+
#### `@mui/x-charts-pro@7.23.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
829
|
+
|
|
830
|
+
Same changes as in `@mui/x-charts@7.23.1`.
|
|
831
|
+
|
|
832
|
+
### Docs
|
|
833
|
+
|
|
834
|
+
- [docs] Fix Pickers theme augmentation example (#15675) @LukasTy
|
|
835
|
+
- [docs] Remove duplicated warning (#15715) @cherniavskii
|
|
836
|
+
- [test] Force hover in headless Chrome (#15711) @cherniavskii
|
|
837
|
+
- [docs-infra] Bump `@mui/internal-markdown` to support nested demo imports (#15738) @alexfauquette
|
|
838
|
+
- [docs] Improve SEO titles for the Data Grid (#15695) @MBilalShafi
|
|
839
|
+
|
|
840
|
+
### Core
|
|
841
|
+
|
|
842
|
+
- [core] Add `@mui/x-tree-view-pro` to `releaseChangelog` (#15747) @flaviendelangle
|
|
843
|
+
|
|
570
844
|
## 7.23.0
|
|
571
845
|
|
|
572
846
|
_Nov 29, 2024_
|
|
@@ -972,6 +972,11 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
972
972
|
* @default "margin"
|
|
973
973
|
*/
|
|
974
974
|
rowSpacingType: _propTypes.default.oneOf(['border', 'margin']),
|
|
975
|
+
/**
|
|
976
|
+
* If `true`, the Data Grid will auto span the cells over the rows having the same value.
|
|
977
|
+
* @default false
|
|
978
|
+
*/
|
|
979
|
+
rowSpanning: _propTypes.default.bool,
|
|
975
980
|
/**
|
|
976
981
|
* Override the height/width of the Data Grid inner scrollbar.
|
|
977
982
|
*/
|
|
@@ -1080,11 +1085,6 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
1080
1085
|
*/
|
|
1081
1086
|
unstable_listView: _propTypes.default.bool,
|
|
1082
1087
|
unstable_onDataSourceError: _propTypes.default.func,
|
|
1083
|
-
/**
|
|
1084
|
-
* If `true`, the Data Grid will auto span the cells over the rows having the same value.
|
|
1085
|
-
* @default false
|
|
1086
|
-
*/
|
|
1087
|
-
unstable_rowSpanning: _propTypes.default.bool,
|
|
1088
1088
|
/**
|
|
1089
1089
|
* If `true`, the Data Grid enables column virtualization when `getRowHeight` is set to `() => 'auto'`.
|
|
1090
1090
|
* By default, column virtualization is disabled when dynamic row height is enabled to measure the row height correctly.
|
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# MUI X Data Grid Premium
|
|
2
2
|
|
|
3
3
|
This package is the Premium plan edition of the Data Grid components.
|
|
4
|
-
It's part of [MUI X](https://mui.com/x/), an open-core extension of
|
|
4
|
+
It's part of [MUI X](https://mui.com/x/), an open-core extension of our Core libraries, with advanced components.
|
|
5
5
|
|
|
6
6
|
## Installation
|
|
7
7
|
|
|
@@ -965,6 +965,11 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
965
965
|
* @default "margin"
|
|
966
966
|
*/
|
|
967
967
|
rowSpacingType: PropTypes.oneOf(['border', 'margin']),
|
|
968
|
+
/**
|
|
969
|
+
* If `true`, the Data Grid will auto span the cells over the rows having the same value.
|
|
970
|
+
* @default false
|
|
971
|
+
*/
|
|
972
|
+
rowSpanning: PropTypes.bool,
|
|
968
973
|
/**
|
|
969
974
|
* Override the height/width of the Data Grid inner scrollbar.
|
|
970
975
|
*/
|
|
@@ -1073,11 +1078,6 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
1073
1078
|
*/
|
|
1074
1079
|
unstable_listView: PropTypes.bool,
|
|
1075
1080
|
unstable_onDataSourceError: PropTypes.func,
|
|
1076
|
-
/**
|
|
1077
|
-
* If `true`, the Data Grid will auto span the cells over the rows having the same value.
|
|
1078
|
-
* @default false
|
|
1079
|
-
*/
|
|
1080
|
-
unstable_rowSpanning: PropTypes.bool,
|
|
1081
1081
|
/**
|
|
1082
1082
|
* If `true`, the Data Grid enables column virtualization when `getRowHeight` is set to `() => 'auto'`.
|
|
1083
1083
|
* By default, column virtualization is disabled when dynamic row height is enabled to measure the row height correctly.
|
|
@@ -32,7 +32,9 @@ const GROUPING_COL_DEF_FORCED_PROPERTIES_DATA_SOURCE = _extends({}, GROUPING_COL
|
|
|
32
32
|
* TODO: Make this index comparator depth invariant, the logic should not be inverted when sorting in the "desc" direction (but the current return format of `sortComparator` does not support this behavior).
|
|
33
33
|
*/
|
|
34
34
|
const groupingFieldIndexComparator = (v1, v2, cellParams1, cellParams2) => {
|
|
35
|
-
const model = gridRowGroupingSanitizedModelSelector(
|
|
35
|
+
const model = gridRowGroupingSanitizedModelSelector({
|
|
36
|
+
current: cellParams1.api
|
|
37
|
+
});
|
|
36
38
|
const groupingField1 = cellParams1.rowNode.groupingField ?? null;
|
|
37
39
|
const groupingField2 = cellParams2.rowNode.groupingField ?? null;
|
|
38
40
|
if (groupingField1 === groupingField2) {
|
|
@@ -63,10 +65,12 @@ const getLeafProperties = leafColDef => ({
|
|
|
63
65
|
return groupingFieldIndexComparator(v1, v2, cellParams1, cellParams2);
|
|
64
66
|
}
|
|
65
67
|
});
|
|
68
|
+
const groupedByColValueFormatter = groupedByColDef => (value, row, _, apiRef) => groupedByColDef.valueFormatter(value, row, groupedByColDef, apiRef);
|
|
66
69
|
const getGroupingCriteriaProperties = (groupedByColDef, applyHeaderName) => {
|
|
67
70
|
const properties = {
|
|
68
71
|
sortable: groupedByColDef.sortable,
|
|
69
72
|
filterable: groupedByColDef.filterable,
|
|
73
|
+
valueFormatter: groupedByColDef.valueFormatter ? groupedByColValueFormatter(groupedByColDef) : undefined,
|
|
70
74
|
valueOptions: isSingleSelectColDef(groupedByColDef) ? groupedByColDef.valueOptions : undefined,
|
|
71
75
|
sortComparator: (v1, v2, cellParams1, cellParams2) => {
|
|
72
76
|
// We only want to sort the groups of the current grouping criteria
|
package/esm/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 = "MTczNDA0MDgwMDAwMA==";
|
|
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
|
|
@@ -5,9 +5,9 @@ export declare const gridAggregationStateSelector: (state: GridStatePremium) =>
|
|
|
5
5
|
* If a column is not in the model, it is not aggregated.
|
|
6
6
|
* @category Aggregation
|
|
7
7
|
*/
|
|
8
|
-
export declare const gridAggregationModelSelector: import("@mui/x-data-grid").OutputSelector<GridStatePremium, import("./gridAggregationInterfaces").GridAggregationModel>;
|
|
8
|
+
export declare const gridAggregationModelSelector: import("@mui/x-data-grid").OutputSelector<GridStatePremium, import("./gridAggregationInterfaces").GridAggregationState, import("./gridAggregationInterfaces").GridAggregationModel>;
|
|
9
9
|
/**
|
|
10
10
|
* Get the aggregation results as a lookup.
|
|
11
11
|
* @category Aggregation
|
|
12
12
|
*/
|
|
13
|
-
export declare const gridAggregationLookupSelector: import("@mui/x-data-grid").OutputSelector<GridStatePremium, import("./gridAggregationInterfaces").GridAggregationLookup>;
|
|
13
|
+
export declare const gridAggregationLookupSelector: import("@mui/x-data-grid").OutputSelector<GridStatePremium, import("./gridAggregationInterfaces").GridAggregationState, import("./gridAggregationInterfaces").GridAggregationLookup>;
|
|
@@ -40,7 +40,9 @@ const GROUPING_COL_DEF_FORCED_PROPERTIES_DATA_SOURCE = (0, _extends2.default)({}
|
|
|
40
40
|
* TODO: Make this index comparator depth invariant, the logic should not be inverted when sorting in the "desc" direction (but the current return format of `sortComparator` does not support this behavior).
|
|
41
41
|
*/
|
|
42
42
|
const groupingFieldIndexComparator = (v1, v2, cellParams1, cellParams2) => {
|
|
43
|
-
const model = (0, _gridRowGroupingSelector.gridRowGroupingSanitizedModelSelector)(
|
|
43
|
+
const model = (0, _gridRowGroupingSelector.gridRowGroupingSanitizedModelSelector)({
|
|
44
|
+
current: cellParams1.api
|
|
45
|
+
});
|
|
44
46
|
const groupingField1 = cellParams1.rowNode.groupingField ?? null;
|
|
45
47
|
const groupingField2 = cellParams2.rowNode.groupingField ?? null;
|
|
46
48
|
if (groupingField1 === groupingField2) {
|
|
@@ -71,10 +73,12 @@ const getLeafProperties = leafColDef => ({
|
|
|
71
73
|
return groupingFieldIndexComparator(v1, v2, cellParams1, cellParams2);
|
|
72
74
|
}
|
|
73
75
|
});
|
|
76
|
+
const groupedByColValueFormatter = groupedByColDef => (value, row, _, apiRef) => groupedByColDef.valueFormatter(value, row, groupedByColDef, apiRef);
|
|
74
77
|
const getGroupingCriteriaProperties = (groupedByColDef, applyHeaderName) => {
|
|
75
78
|
const properties = {
|
|
76
79
|
sortable: groupedByColDef.sortable,
|
|
77
80
|
filterable: groupedByColDef.filterable,
|
|
81
|
+
valueFormatter: groupedByColDef.valueFormatter ? groupedByColValueFormatter(groupedByColDef) : undefined,
|
|
78
82
|
valueOptions: (0, _internals.isSingleSelectColDef)(groupedByColDef) ? groupedByColDef.valueOptions : undefined,
|
|
79
83
|
sortComparator: (v1, v2, cellParams1, cellParams2) => {
|
|
80
84
|
// We only want to sort the groups of the current grouping criteria
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { GridStatePremium } from '../../../models/gridStatePremium';
|
|
2
|
-
export declare const gridRowGroupingModelSelector: import("@mui/x-data-grid").OutputSelector<GridStatePremium, import("./gridRowGroupingInterfaces").GridRowGroupingModel>;
|
|
3
|
-
export declare const gridRowGroupingSanitizedModelSelector: import("@mui/x-data-grid").OutputSelector<GridStatePremium, string[]>;
|
|
2
|
+
export declare const gridRowGroupingModelSelector: import("@mui/x-data-grid").OutputSelector<GridStatePremium, import("./gridRowGroupingInterfaces").GridRowGroupingState, import("./gridRowGroupingInterfaces").GridRowGroupingModel>;
|
|
3
|
+
export declare const gridRowGroupingSanitizedModelSelector: import("@mui/x-data-grid").OutputSelector<GridStatePremium, import("@mui/x-data-grid").GridColumnLookup, string[]>;
|
package/index.js
CHANGED
|
@@ -965,6 +965,11 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
965
965
|
* @default "margin"
|
|
966
966
|
*/
|
|
967
967
|
rowSpacingType: PropTypes.oneOf(['border', 'margin']),
|
|
968
|
+
/**
|
|
969
|
+
* If `true`, the Data Grid will auto span the cells over the rows having the same value.
|
|
970
|
+
* @default false
|
|
971
|
+
*/
|
|
972
|
+
rowSpanning: PropTypes.bool,
|
|
968
973
|
/**
|
|
969
974
|
* Override the height/width of the Data Grid inner scrollbar.
|
|
970
975
|
*/
|
|
@@ -1073,11 +1078,6 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
1073
1078
|
*/
|
|
1074
1079
|
unstable_listView: PropTypes.bool,
|
|
1075
1080
|
unstable_onDataSourceError: PropTypes.func,
|
|
1076
|
-
/**
|
|
1077
|
-
* If `true`, the Data Grid will auto span the cells over the rows having the same value.
|
|
1078
|
-
* @default false
|
|
1079
|
-
*/
|
|
1080
|
-
unstable_rowSpanning: PropTypes.bool,
|
|
1081
1081
|
/**
|
|
1082
1082
|
* If `true`, the Data Grid enables column virtualization when `getRowHeight` is set to `() => 'auto'`.
|
|
1083
1083
|
* By default, column virtualization is disabled when dynamic row height is enabled to measure the row height correctly.
|
|
@@ -32,7 +32,9 @@ const GROUPING_COL_DEF_FORCED_PROPERTIES_DATA_SOURCE = _extends({}, GROUPING_COL
|
|
|
32
32
|
* TODO: Make this index comparator depth invariant, the logic should not be inverted when sorting in the "desc" direction (but the current return format of `sortComparator` does not support this behavior).
|
|
33
33
|
*/
|
|
34
34
|
const groupingFieldIndexComparator = (v1, v2, cellParams1, cellParams2) => {
|
|
35
|
-
const model = gridRowGroupingSanitizedModelSelector(
|
|
35
|
+
const model = gridRowGroupingSanitizedModelSelector({
|
|
36
|
+
current: cellParams1.api
|
|
37
|
+
});
|
|
36
38
|
const groupingField1 = cellParams1.rowNode.groupingField ?? null;
|
|
37
39
|
const groupingField2 = cellParams2.rowNode.groupingField ?? null;
|
|
38
40
|
if (groupingField1 === groupingField2) {
|
|
@@ -63,10 +65,12 @@ const getLeafProperties = leafColDef => ({
|
|
|
63
65
|
return groupingFieldIndexComparator(v1, v2, cellParams1, cellParams2);
|
|
64
66
|
}
|
|
65
67
|
});
|
|
68
|
+
const groupedByColValueFormatter = groupedByColDef => (value, row, _, apiRef) => groupedByColDef.valueFormatter(value, row, groupedByColDef, apiRef);
|
|
66
69
|
const getGroupingCriteriaProperties = (groupedByColDef, applyHeaderName) => {
|
|
67
70
|
const properties = {
|
|
68
71
|
sortable: groupedByColDef.sortable,
|
|
69
72
|
filterable: groupedByColDef.filterable,
|
|
73
|
+
valueFormatter: groupedByColDef.valueFormatter ? groupedByColValueFormatter(groupedByColDef) : undefined,
|
|
70
74
|
valueOptions: isSingleSelectColDef(groupedByColDef) ? groupedByColDef.valueOptions : undefined,
|
|
71
75
|
sortComparator: (v1, v2, cellParams1, cellParams2) => {
|
|
72
76
|
// We only want to sort the groups of the current grouping criteria
|
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 = "MTczNDA0MDgwMDAwMA==";
|
|
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
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-data-grid-premium",
|
|
3
|
-
"version": "8.0.0-alpha.
|
|
3
|
+
"version": "8.0.0-alpha.4",
|
|
4
4
|
"description": "The Premium plan edition of the Data Grid Components (MUI X).",
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"exceljs": "^4.4.0",
|
|
41
41
|
"prop-types": "^15.8.1",
|
|
42
42
|
"reselect": "^5.1.1",
|
|
43
|
-
"@mui/x-data-grid": "8.0.0-alpha.
|
|
44
|
-
"@mui/x-
|
|
45
|
-
"@mui/x-license": "8.0.0-alpha.
|
|
46
|
-
"@mui/x-
|
|
43
|
+
"@mui/x-data-grid-pro": "8.0.0-alpha.4",
|
|
44
|
+
"@mui/x-data-grid": "8.0.0-alpha.4",
|
|
45
|
+
"@mui/x-license": "8.0.0-alpha.4",
|
|
46
|
+
"@mui/x-internals": "8.0.0-alpha.2"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"@emotion/react": "^11.9.0",
|
package/utils/releaseInfo.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 = "MTczNDA0MDgwMDAwMA==";
|
|
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
|