@mui/x-data-grid-premium 5.11.1 → 5.12.2
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 +199 -20
- package/DataGridPremium/DataGridPremium.js +26 -2
- package/DataGridPremium/useDataGridPremiumComponent.js +1 -2
- package/README.md +2 -2
- package/hooks/features/rowGrouping/gridRowGroupingInterfaces.d.ts +6 -5
- package/hooks/features/rowGrouping/useGridRowGrouping.d.ts +1 -1
- package/hooks/features/rowGrouping/useGridRowGrouping.js +9 -11
- package/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.js +3 -29
- package/index.d.ts +0 -1
- package/index.js +1 -2
- package/legacy/DataGridPremium/DataGridPremium.js +26 -2
- package/legacy/DataGridPremium/useDataGridPremiumComponent.js +1 -2
- package/legacy/hooks/features/rowGrouping/useGridRowGrouping.js +9 -13
- package/legacy/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.js +3 -33
- package/legacy/index.js +1 -2
- package/legacy/typeOverloads/index.js +2 -1
- package/legacy/typeOverloads/modules.js +1 -33
- package/legacy/utils/releaseInfo.js +1 -1
- package/modern/DataGridPremium/DataGridPremium.js +26 -2
- package/modern/DataGridPremium/useDataGridPremiumComponent.js +1 -2
- package/modern/hooks/features/rowGrouping/useGridRowGrouping.js +14 -14
- package/modern/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.js +3 -29
- package/modern/index.js +1 -2
- package/modern/typeOverloads/index.js +2 -1
- package/modern/typeOverloads/modules.js +1 -33
- package/modern/utils/releaseInfo.js +1 -1
- package/node/DataGridPremium/DataGridPremium.js +26 -2
- package/node/DataGridPremium/useDataGridPremiumComponent.js +0 -1
- package/node/hooks/features/rowGrouping/useGridRowGrouping.js +8 -10
- package/node/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.js +2 -28
- package/node/index.js +1 -3
- package/node/typeOverloads/index.js +3 -1
- package/node/typeOverloads/modules.js +5 -34
- package/node/utils/releaseInfo.js +1 -1
- package/package.json +11 -10
- package/typeOverloads/index.d.ts +1 -0
- package/typeOverloads/index.js +2 -1
- package/typeOverloads/modules.d.ts +34 -0
- package/typeOverloads/modules.js +1 -33
- package/utils/releaseInfo.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-data-grid-premium",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.12.2",
|
|
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",
|
|
@@ -32,20 +32,21 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@babel/runtime": "^7.17.2",
|
|
35
|
-
"@mui/utils": "^5.
|
|
36
|
-
"@mui/x-data-grid": "5.
|
|
37
|
-
"@mui/x-data-grid-pro": "5.
|
|
38
|
-
"@mui/x-license-pro": "5.
|
|
35
|
+
"@mui/utils": "^5.4.1",
|
|
36
|
+
"@mui/x-data-grid": "5.12.2",
|
|
37
|
+
"@mui/x-data-grid-pro": "5.12.2",
|
|
38
|
+
"@mui/x-license-pro": "5.12.2",
|
|
39
39
|
"@types/format-util": "^1.0.2",
|
|
40
40
|
"clsx": "^1.0.4",
|
|
41
|
+
"exceljs": "^4.3.0",
|
|
41
42
|
"prop-types": "^15.8.1",
|
|
42
|
-
"reselect": "^4.1.5"
|
|
43
|
-
"exceljs": "^4.3.0"
|
|
43
|
+
"reselect": "^4.1.5"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@mui/material": "^5.
|
|
47
|
-
"@mui/system": "^5.
|
|
48
|
-
"react": "^17.0.2 || ^18.0.0"
|
|
46
|
+
"@mui/material": "^5.4.1",
|
|
47
|
+
"@mui/system": "^5.4.1",
|
|
48
|
+
"react": "^17.0.2 || ^18.0.0",
|
|
49
|
+
"react-dom": "^17.0.2 || ^18.0.0"
|
|
49
50
|
},
|
|
50
51
|
"setupFiles": [
|
|
51
52
|
"<rootDir>/src/setupTests.js"
|
package/typeOverloads/index.d.ts
CHANGED
package/typeOverloads/index.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import '@mui/x-data-grid-pro/typeOverloads';
|
|
1
|
+
import '@mui/x-data-grid-pro/typeOverloads';
|
|
2
|
+
import './modules';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { GridKeyValue, GridValidRowModel } from '@mui/x-data-grid-pro';
|
|
2
|
+
import type { GridControlledStateEventLookupPro, GridApiCachesPro } from '@mui/x-data-grid-pro/typeOverloads';
|
|
3
|
+
import type { GridGroupingValueGetterParams } from '../models';
|
|
4
|
+
import type { GridRowGroupingModel } from '../hooks';
|
|
5
|
+
import { GridRowGroupingInternalCache } from '../hooks/features/rowGrouping/gridRowGroupingInterfaces';
|
|
6
|
+
export interface GridControlledStateEventLookupPremium {
|
|
7
|
+
/**
|
|
8
|
+
* Fired when the row grouping model changes.
|
|
9
|
+
*/
|
|
10
|
+
rowGroupingModelChange: {
|
|
11
|
+
params: GridRowGroupingModel;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export interface GridColDefPremium<R extends GridValidRowModel = any, V = any, F = V> {
|
|
15
|
+
/**
|
|
16
|
+
* Function that transforms a complex cell value into a key that be used for grouping the rows.
|
|
17
|
+
* @param {GridGroupingValueGetterParams} params Object containing parameters for the getter.
|
|
18
|
+
* @returns {GridKeyValue | null | undefined} The cell key.
|
|
19
|
+
*/
|
|
20
|
+
groupingValueGetter?: (params: GridGroupingValueGetterParams<V, R>) => GridKeyValue | null | undefined;
|
|
21
|
+
}
|
|
22
|
+
export interface GridApiCachesPremium extends GridApiCachesPro {
|
|
23
|
+
rowGrouping: GridRowGroupingInternalCache;
|
|
24
|
+
}
|
|
25
|
+
declare module '@mui/x-data-grid-pro' {
|
|
26
|
+
interface GridColDef<R extends GridValidRowModel = any, V = any, F = V> extends GridColDefPremium<R, V, F> {
|
|
27
|
+
}
|
|
28
|
+
interface GridControlledStateEventLookup extends GridControlledStateEventLookupPro, GridControlledStateEventLookupPremium {
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
declare module '@mui/x-data-grid-pro/internals' {
|
|
32
|
+
interface GridApiCaches extends GridApiCachesPremium {
|
|
33
|
+
}
|
|
34
|
+
}
|
package/typeOverloads/modules.js
CHANGED
|
@@ -1,33 +1 @@
|
|
|
1
|
-
|
|
2
|
-
// import type { GridControlledStateEventLookupPro } from '@mui/x-data-grid-pro/typeOverloads';
|
|
3
|
-
// import type { GridGroupingValueGetterParams } from '../models';
|
|
4
|
-
// import type { GridRowGroupingModel } from '../hooks';
|
|
5
|
-
//
|
|
6
|
-
// export interface GridControlledStateEventLookupPremium {
|
|
7
|
-
// /**
|
|
8
|
-
// * Fired when the row grouping model changes.
|
|
9
|
-
// */
|
|
10
|
-
// rowGroupingModelChange: { params: GridRowGroupingModel };
|
|
11
|
-
// }
|
|
12
|
-
//
|
|
13
|
-
// // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
14
|
-
// export interface GridColDefPremium<R extends GridValidRowModel = any, V = any, F = V> {
|
|
15
|
-
// /**
|
|
16
|
-
// * Function that transforms a complex cell value into a key that be used for grouping the rows.
|
|
17
|
-
// * @param {GridGroupingValueGetterParams} params Object containing parameters for the getter.
|
|
18
|
-
// * @returns {GridKeyValue | null | undefined} The cell key.
|
|
19
|
-
// */
|
|
20
|
-
// groupingValueGetter?: (
|
|
21
|
-
// params: GridGroupingValueGetterParams<V, R>,
|
|
22
|
-
// ) => GridKeyValue | null | undefined;
|
|
23
|
-
// }
|
|
24
|
-
//
|
|
25
|
-
// declare module '@mui/x-data-grid-pro' {
|
|
26
|
-
// export interface GridColDef<R extends GridValidRowModel = any, V = any, F = V>
|
|
27
|
-
// extends GridColDefPremium<R, V, F> {}
|
|
28
|
-
//
|
|
29
|
-
// // TODO: Remove explicit augmentation of pro package
|
|
30
|
-
// interface GridControlledStateEventLookup
|
|
31
|
-
// extends GridControlledStateEventLookupPro,
|
|
32
|
-
// GridControlledStateEventLookupPremium {}
|
|
33
|
-
// }
|
|
1
|
+
export {};
|
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 = "MTY1NTMzMDQwMDAwMA==";
|
|
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).
|