@mui/x-data-grid-premium 5.17.11 → 5.17.13
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 +64 -0
- package/hooks/features/aggregation/createAggregationLookup.js +8 -1
- package/hooks/features/aggregation/gridAggregationInterfaces.d.ts +15 -1
- package/index.js +1 -1
- package/legacy/hooks/features/aggregation/createAggregationLookup.js +8 -1
- package/legacy/index.js +1 -1
- package/legacy/utils/releaseInfo.js +1 -1
- package/modern/hooks/features/aggregation/createAggregationLookup.js +8 -1
- package/modern/index.js +1 -1
- package/modern/utils/releaseInfo.js +1 -1
- package/node/hooks/features/aggregation/createAggregationLookup.js +8 -1
- package/node/index.js +1 -1
- package/node/utils/releaseInfo.js +1 -1
- package/package.json +4 -4
- package/themeAugmentation/props.d.ts +3 -5
- package/utils/releaseInfo.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,70 @@
|
|
|
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.17.13
|
|
7
|
+
|
|
8
|
+
_Nov 24, 2022_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🚀 Fix support of the pickers to Shadow DOM (#6971) @flaviendelangle
|
|
13
|
+
- 💅 Improve DataGrid theme augmentation (#6980) @iigrik
|
|
14
|
+
- 🐞 Bugfixes
|
|
15
|
+
|
|
16
|
+
### `@mui/x-data-grid@v5.17.13` / `@mui/x-data-grid-pro@v5.17.13` / `@mui/x-data-grid-premium@v5.17.13`
|
|
17
|
+
|
|
18
|
+
#### Changes
|
|
19
|
+
|
|
20
|
+
- [DataGrid] Fix `ErrorOverlay` not receiving defined input props (#6885) @banoth-ravinder
|
|
21
|
+
- [DataGrid] Improve typing for `styleOverrides` (#6980) @iigrik
|
|
22
|
+
- [DataGridPro] Fix lazy-loaded rows not working with `updateRows` API method (#6875) @cherniavskii
|
|
23
|
+
- [l10n] Fix translation of `filterOperatorBefore` in Arabic (ar-SD) locale (#6917) @HassanGhazy
|
|
24
|
+
|
|
25
|
+
### `@mui/x-date-pickers@v5.0.9` / `@mui/x-date-pickers-pro@v5.0.9`
|
|
26
|
+
|
|
27
|
+
#### Changes
|
|
28
|
+
|
|
29
|
+
- [pickers] Fix usage with Shadow DOM (#6971) @flaviendelangle
|
|
30
|
+
|
|
31
|
+
### Docs
|
|
32
|
+
|
|
33
|
+
- [docs] Add new "Expired package version" error type (#6937) @oliviertassinari
|
|
34
|
+
- [docs] Enforce values for installation options in Date / Time pickers Getting Started page (#6896) @01zulfi
|
|
35
|
+
- [docs] Fix live edit @oliviertassinari
|
|
36
|
+
- [docs] Upgrade to Next 13 (#6911) @cherniavskii
|
|
37
|
+
|
|
38
|
+
### Core
|
|
39
|
+
|
|
40
|
+
- [core] Upgrade monorepo (#6906) @cherniavskii
|
|
41
|
+
- [core] Upgrade node to v14.21 (#6939) @piwysocki
|
|
42
|
+
|
|
43
|
+
## 5.17.12
|
|
44
|
+
|
|
45
|
+
_Nov 17, 2022_
|
|
46
|
+
|
|
47
|
+
We'd like to offer a big thanks to the 5 contributors who made this release possible. Here are some highlights ✨:
|
|
48
|
+
|
|
49
|
+
- 🌍 Improve Finnish (fi-FI) locale (#6859) @RainoPikkarainen
|
|
50
|
+
- 🐞 Bugfixes
|
|
51
|
+
|
|
52
|
+
### `@mui/x-data-grid@v5.17.12` / `@mui/x-data-grid-pro@v5.17.12` / `@mui/x-data-grid-premium@v5.17.12`
|
|
53
|
+
|
|
54
|
+
#### Changes
|
|
55
|
+
|
|
56
|
+
- [DataGrid] Fix conflict with the latest version of `@types/react` (#6883) @vizv
|
|
57
|
+
- [DataGridPremium] Support aggregating data from multiple row fields (#6844) @cherniavskii
|
|
58
|
+
- [DataGridPro] Fix detail panel not working with `getRowSpacing` prop (#6858) @cherniavskii
|
|
59
|
+
- [l10n] Improve Finnish (fi-FI) locale (#6859) @RainoPikkarainen
|
|
60
|
+
|
|
61
|
+
### Docs
|
|
62
|
+
|
|
63
|
+
- [docs] Clarify DataGrid Row Pinning docs (#6891) @cherniavskii
|
|
64
|
+
|
|
65
|
+
### Core
|
|
66
|
+
|
|
67
|
+
- [core] Upgrade monorepo (#6864) @m4theushw
|
|
68
|
+
- [license] Polish error messages (#6881) @oliviertassinari
|
|
69
|
+
|
|
6
70
|
## 5.17.11
|
|
7
71
|
|
|
8
72
|
_Nov 10, 2022_
|
|
@@ -42,7 +42,14 @@ const getAggregationCellValue = ({
|
|
|
42
42
|
return;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
if (typeof aggregationFunction.getCellValue === 'function') {
|
|
46
|
+
const row = apiRef.current.getRow(rowId);
|
|
47
|
+
values.push(aggregationFunction.getCellValue({
|
|
48
|
+
row
|
|
49
|
+
}));
|
|
50
|
+
} else {
|
|
51
|
+
values.push(apiRef.current.getCellValue(rowId, field));
|
|
52
|
+
}
|
|
46
53
|
});
|
|
47
54
|
return aggregationFunction.apply({
|
|
48
55
|
values
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GridValueFormatterParams, GridRowId } from '@mui/x-data-grid-pro';
|
|
1
|
+
import { GridValueFormatterParams, GridRowId, GridRowModel } from '@mui/x-data-grid-pro';
|
|
2
2
|
export interface GridAggregationState {
|
|
3
3
|
model: GridAggregationModel;
|
|
4
4
|
lookup: GridAggregationLookup;
|
|
@@ -17,6 +17,12 @@ export interface GridAggregationApi {
|
|
|
17
17
|
*/
|
|
18
18
|
setAggregationModel: (model: GridAggregationModel) => void;
|
|
19
19
|
}
|
|
20
|
+
export interface GridAggregationGetCellValueParams {
|
|
21
|
+
/**
|
|
22
|
+
* The row model of the row that the current cell belongs to.
|
|
23
|
+
*/
|
|
24
|
+
row: GridRowModel;
|
|
25
|
+
}
|
|
20
26
|
/**
|
|
21
27
|
* Grid aggregation function definition interface.
|
|
22
28
|
*/
|
|
@@ -53,6 +59,14 @@ export interface GridAggregationFunction<V = any, AV = V, FAV = AV> {
|
|
|
53
59
|
* @default `true`
|
|
54
60
|
*/
|
|
55
61
|
hasCellUnit?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Function that allows to transform the value of the cell passed to the aggregation function applier.
|
|
64
|
+
* Useful for aggregating data from multiple row fields.
|
|
65
|
+
* @demo https://mui.com/x/react-data-grid/aggregation/#aggregating-data-from-multiple-row-fields
|
|
66
|
+
* @param {GridAggregationGetCellValueParams} params The params of the current cell
|
|
67
|
+
* @returns {V} The value of the cell that will be passed to the aggregation `apply` function
|
|
68
|
+
*/
|
|
69
|
+
getCellValue?: (params: GridAggregationGetCellValueParams) => V;
|
|
56
70
|
}
|
|
57
71
|
interface GridAggregationParams<V = any> {
|
|
58
72
|
values: (V | undefined)[];
|
package/index.js
CHANGED
|
@@ -43,7 +43,14 @@ var getAggregationCellValue = function getAggregationCellValue(_ref) {
|
|
|
43
43
|
return;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
if (typeof aggregationFunction.getCellValue === 'function') {
|
|
47
|
+
var row = apiRef.current.getRow(rowId);
|
|
48
|
+
values.push(aggregationFunction.getCellValue({
|
|
49
|
+
row: row
|
|
50
|
+
}));
|
|
51
|
+
} else {
|
|
52
|
+
values.push(apiRef.current.getCellValue(rowId, field));
|
|
53
|
+
}
|
|
47
54
|
});
|
|
48
55
|
return aggregationFunction.apply({
|
|
49
56
|
values: values
|
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 = "MTY2OTI1ODgwMDAwMA==";
|
|
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).
|
|
@@ -40,7 +40,14 @@ const getAggregationCellValue = ({
|
|
|
40
40
|
return;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
if (typeof aggregationFunction.getCellValue === 'function') {
|
|
44
|
+
const row = apiRef.current.getRow(rowId);
|
|
45
|
+
values.push(aggregationFunction.getCellValue({
|
|
46
|
+
row
|
|
47
|
+
}));
|
|
48
|
+
} else {
|
|
49
|
+
values.push(apiRef.current.getCellValue(rowId, field));
|
|
50
|
+
}
|
|
44
51
|
});
|
|
45
52
|
return aggregationFunction.apply({
|
|
46
53
|
values
|
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 = "MTY2OTI1ODgwMDAwMA==";
|
|
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).
|
|
@@ -51,7 +51,14 @@ const getAggregationCellValue = ({
|
|
|
51
51
|
return;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
|
|
54
|
+
if (typeof aggregationFunction.getCellValue === 'function') {
|
|
55
|
+
const row = apiRef.current.getRow(rowId);
|
|
56
|
+
values.push(aggregationFunction.getCellValue({
|
|
57
|
+
row
|
|
58
|
+
}));
|
|
59
|
+
} else {
|
|
60
|
+
values.push(apiRef.current.getCellValue(rowId, field));
|
|
61
|
+
}
|
|
55
62
|
});
|
|
56
63
|
return aggregationFunction.apply({
|
|
57
64
|
values
|
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 = "MTY2OTI1ODgwMDAwMA==";
|
|
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.17.
|
|
3
|
+
"version": "5.17.13",
|
|
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,9 +33,9 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@babel/runtime": "^7.18.9",
|
|
35
35
|
"@mui/utils": "^5.10.3",
|
|
36
|
-
"@mui/x-data-grid": "5.17.
|
|
37
|
-
"@mui/x-data-grid-pro": "5.17.
|
|
38
|
-
"@mui/x-license-pro": "5.17.
|
|
36
|
+
"@mui/x-data-grid": "5.17.13",
|
|
37
|
+
"@mui/x-data-grid-pro": "5.17.13",
|
|
38
|
+
"@mui/x-license-pro": "5.17.12",
|
|
39
39
|
"@types/format-util": "^1.0.2",
|
|
40
40
|
"clsx": "^1.2.1",
|
|
41
41
|
"exceljs": "^4.3.0",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ComponentsOverrides, ComponentsProps
|
|
1
|
+
import { ComponentsOverrides, ComponentsProps } from '@mui/material/styles';
|
|
2
2
|
import { DataGridPremiumProps } from '../models/dataGridPremiumProps';
|
|
3
3
|
export interface DataGridPremiumComponentsPropsList {
|
|
4
4
|
MuiDataGrid: DataGridPremiumProps;
|
|
5
5
|
}
|
|
6
|
-
export interface DataGridPremiumComponents {
|
|
6
|
+
export interface DataGridPremiumComponents<Theme = unknown> {
|
|
7
7
|
MuiDataGrid?: {
|
|
8
8
|
defaultProps?: ComponentsProps['MuiDataGrid'];
|
|
9
9
|
styleOverrides?: ComponentsOverrides<Theme>['MuiDataGrid'];
|
|
@@ -12,8 +12,6 @@ export interface DataGridPremiumComponents {
|
|
|
12
12
|
declare module '@mui/material/styles' {
|
|
13
13
|
interface ComponentsPropsList extends DataGridPremiumComponentsPropsList {
|
|
14
14
|
}
|
|
15
|
-
|
|
16
|
-
declare module '@mui/material/styles/components' {
|
|
17
|
-
interface Components extends DataGridPremiumComponents {
|
|
15
|
+
interface Components<Theme = unknown> extends DataGridPremiumComponents<Theme> {
|
|
18
16
|
}
|
|
19
17
|
}
|
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 = "MTY2OTI1ODgwMDAwMA==";
|
|
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).
|