@mui/x-data-grid-premium 8.9.0 → 8.9.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 +124 -0
- package/DataGridPremium/DataGridPremium.js +27 -10
- package/DataGridPremium/useDataGridPremiumComponent.js +4 -0
- package/components/GridColumnMenuPivotItem.js +4 -3
- package/components/GridDataSourceGroupingCriteriaCell.js +3 -1
- package/components/pivotPanel/GridPivotPanelHeader.js +1 -1
- package/components/pivotPanel/PivotPanelTrigger.js +6 -1
- package/components/sidebar/Sidebar.d.ts +1 -1
- package/components/sidebar/Sidebar.js +20 -4
- package/esm/DataGridPremium/DataGridPremium.js +29 -12
- package/esm/DataGridPremium/useDataGridPremiumComponent.js +5 -1
- package/esm/components/GridColumnMenuPivotItem.js +3 -2
- package/esm/components/GridDataSourceGroupingCriteriaCell.js +3 -1
- package/esm/components/pivotPanel/GridPivotPanelHeader.js +1 -1
- package/esm/components/pivotPanel/PivotPanelTrigger.js +6 -1
- package/esm/components/sidebar/Sidebar.d.ts +1 -1
- package/esm/components/sidebar/Sidebar.js +21 -5
- package/esm/hooks/features/aggregation/gridAggregationInterfaces.d.ts +1 -1
- package/esm/hooks/features/aiAssistant/api.d.ts +3 -3
- package/esm/hooks/features/aiAssistant/api.js +8 -4
- package/esm/hooks/features/aiAssistant/gridAiAssistantInterfaces.d.ts +11 -0
- package/esm/hooks/features/export/serializer/excelSerializer.js +1 -6
- package/esm/hooks/features/index.d.ts +2 -1
- package/esm/hooks/features/index.js +2 -1
- package/esm/hooks/features/pivoting/gridPivotingInterfaces.d.ts +5 -0
- package/esm/hooks/features/pivoting/gridPivotingSelectors.d.ts +4 -1
- package/esm/hooks/features/pivoting/gridPivotingSelectors.js +3 -1
- package/esm/hooks/features/pivoting/useGridPivoting.d.ts +1 -1
- package/esm/hooks/features/pivoting/useGridPivoting.js +28 -9
- package/esm/hooks/features/rowGrouping/createGroupingColDef.d.ts +1 -2
- package/esm/hooks/features/rowGrouping/createGroupingColDef.js +10 -3
- package/esm/hooks/features/rowGrouping/gridRowGroupingUtils.d.ts +1 -5
- package/esm/hooks/features/rowGrouping/gridRowGroupingUtils.js +1 -6
- package/esm/hooks/features/rowGrouping/useGridDataSourceRowGroupingPreProcessors.js +2 -2
- package/esm/hooks/features/rowGrouping/useGridRowGrouping.js +2 -2
- package/esm/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.js +2 -2
- package/esm/hooks/features/rows/useGridRowAriaAttributes.d.ts +1 -1
- package/esm/hooks/features/rows/useGridRowAriaAttributes.js +2 -2
- package/esm/hooks/features/sidebar/gridSidebarInterfaces.d.ts +16 -0
- package/esm/hooks/features/sidebar/gridSidebarInterfaces.js +4 -0
- package/esm/hooks/features/sidebar/gridSidebarSelector.d.ts +12 -0
- package/esm/hooks/features/sidebar/gridSidebarSelector.js +12 -0
- package/esm/hooks/features/sidebar/gridSidebarState.d.ts +8 -0
- package/esm/hooks/features/sidebar/gridSidebarState.js +1 -0
- package/esm/hooks/features/sidebar/index.d.ts +3 -0
- package/esm/hooks/features/sidebar/index.js +3 -0
- package/esm/hooks/features/sidebar/useGridSidebar.d.ts +6 -0
- package/esm/hooks/features/sidebar/useGridSidebar.js +72 -0
- package/esm/hooks/utils/useGridAriaAttributes.d.ts +1 -1
- package/esm/hooks/utils/useGridAriaAttributes.js +2 -2
- package/esm/index.js +1 -1
- package/esm/models/dataGridPremiumProps.d.ts +16 -0
- package/esm/models/gridApiPremium.d.ts +2 -1
- package/esm/models/gridStatePremium.d.ts +3 -0
- package/esm/typeOverloads/modules.d.ts +28 -1
- package/hooks/features/aggregation/gridAggregationInterfaces.d.ts +1 -1
- package/hooks/features/aiAssistant/api.d.ts +3 -3
- package/hooks/features/aiAssistant/api.js +8 -4
- package/hooks/features/aiAssistant/gridAiAssistantInterfaces.d.ts +11 -0
- package/hooks/features/export/serializer/excelSerializer.js +1 -6
- package/hooks/features/index.d.ts +2 -1
- package/hooks/features/index.js +11 -0
- package/hooks/features/pivoting/gridPivotingInterfaces.d.ts +5 -0
- package/hooks/features/pivoting/gridPivotingSelectors.d.ts +4 -1
- package/hooks/features/pivoting/gridPivotingSelectors.js +3 -8
- package/hooks/features/pivoting/useGridPivoting.d.ts +1 -1
- package/hooks/features/pivoting/useGridPivoting.js +28 -9
- package/hooks/features/rowGrouping/createGroupingColDef.d.ts +1 -2
- package/hooks/features/rowGrouping/createGroupingColDef.js +13 -6
- package/hooks/features/rowGrouping/gridRowGroupingUtils.d.ts +1 -5
- package/hooks/features/rowGrouping/gridRowGroupingUtils.js +3 -8
- package/hooks/features/rowGrouping/useGridDataSourceRowGroupingPreProcessors.js +6 -6
- package/hooks/features/rowGrouping/useGridRowGrouping.js +1 -1
- package/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.js +7 -7
- package/hooks/features/rows/useGridRowAriaAttributes.d.ts +1 -1
- package/hooks/features/rows/useGridRowAriaAttributes.js +4 -4
- package/hooks/features/sidebar/gridSidebarInterfaces.d.ts +16 -0
- package/hooks/features/sidebar/gridSidebarInterfaces.js +10 -0
- package/hooks/features/sidebar/gridSidebarSelector.d.ts +12 -0
- package/hooks/features/sidebar/gridSidebarSelector.js +18 -0
- package/hooks/features/sidebar/gridSidebarState.d.ts +8 -0
- package/hooks/features/sidebar/gridSidebarState.js +5 -0
- package/hooks/features/sidebar/index.d.ts +3 -0
- package/hooks/features/sidebar/index.js +38 -0
- package/hooks/features/sidebar/useGridSidebar.d.ts +6 -0
- package/hooks/features/sidebar/useGridSidebar.js +82 -0
- package/hooks/utils/useGridAriaAttributes.d.ts +1 -1
- package/hooks/utils/useGridAriaAttributes.js +4 -4
- package/index.js +1 -1
- package/models/dataGridPremiumProps.d.ts +16 -0
- package/models/gridApiPremium.d.ts +2 -1
- package/models/gridStatePremium.d.ts +3 -0
- package/package.json +7 -8
- package/typeOverloads/modules.d.ts +28 -1
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _gridSidebarInterfaces = require("./gridSidebarInterfaces");
|
|
7
|
+
Object.keys(_gridSidebarInterfaces).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _gridSidebarInterfaces[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _gridSidebarInterfaces[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
var _gridSidebarSelector = require("./gridSidebarSelector");
|
|
18
|
+
Object.keys(_gridSidebarSelector).forEach(function (key) {
|
|
19
|
+
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _gridSidebarSelector[key]) return;
|
|
21
|
+
Object.defineProperty(exports, key, {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () {
|
|
24
|
+
return _gridSidebarSelector[key];
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
var _gridSidebarState = require("./gridSidebarState");
|
|
29
|
+
Object.keys(_gridSidebarState).forEach(function (key) {
|
|
30
|
+
if (key === "default" || key === "__esModule") return;
|
|
31
|
+
if (key in exports && exports[key] === _gridSidebarState[key]) return;
|
|
32
|
+
Object.defineProperty(exports, key, {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function () {
|
|
35
|
+
return _gridSidebarState[key];
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
});
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { RefObject } from '@mui/x-internals/types';
|
|
2
|
+
import { GridStateInitializer } from '@mui/x-data-grid-pro/internals';
|
|
3
|
+
import { DataGridPremiumProcessedProps } from "../../../models/dataGridPremiumProps.js";
|
|
4
|
+
import { GridPrivateApiPremium } from "../../../models/gridApiPremium.js";
|
|
5
|
+
export declare const sidebarStateInitializer: GridStateInitializer<Pick<DataGridPremiumProcessedProps, 'initialState'>>;
|
|
6
|
+
export declare const useGridSidebar: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps, "initialState" | "onSidebarClose" | "onSidebarOpen">) => void;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.useGridSidebar = exports.sidebarStateInitializer = void 0;
|
|
9
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
+
var React = _interopRequireWildcard(require("react"));
|
|
11
|
+
var _internals = require("@mui/x-data-grid-pro/internals");
|
|
12
|
+
var _gridSidebarSelector = require("./gridSidebarSelector");
|
|
13
|
+
const sidebarStateInitializer = (state, props) => (0, _extends2.default)({}, state, {
|
|
14
|
+
sidebar: props.initialState?.sidebar ?? {
|
|
15
|
+
open: false
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
exports.sidebarStateInitializer = sidebarStateInitializer;
|
|
19
|
+
const useGridSidebar = (apiRef, props) => {
|
|
20
|
+
const hideSidebar = React.useCallback(() => {
|
|
21
|
+
apiRef.current.setState(state => {
|
|
22
|
+
if (!state.sidebar.open || !state.sidebar.value) {
|
|
23
|
+
return state;
|
|
24
|
+
}
|
|
25
|
+
apiRef.current.publishEvent('sidebarClose', {
|
|
26
|
+
value: state.sidebar.value
|
|
27
|
+
});
|
|
28
|
+
return (0, _extends2.default)({}, state, {
|
|
29
|
+
sidebar: {
|
|
30
|
+
open: false
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
}, [apiRef]);
|
|
35
|
+
const showSidebar = React.useCallback((newValue, sidebarId, labelId) => {
|
|
36
|
+
apiRef.current.setState(state => (0, _extends2.default)({}, state, {
|
|
37
|
+
sidebar: (0, _extends2.default)({}, state.sidebar, {
|
|
38
|
+
open: true,
|
|
39
|
+
value: newValue,
|
|
40
|
+
sidebarId,
|
|
41
|
+
labelId
|
|
42
|
+
})
|
|
43
|
+
}));
|
|
44
|
+
apiRef.current.publishEvent('sidebarOpen', {
|
|
45
|
+
value: newValue
|
|
46
|
+
});
|
|
47
|
+
}, [apiRef]);
|
|
48
|
+
(0, _internals.useGridApiMethod)(apiRef, {
|
|
49
|
+
showSidebar,
|
|
50
|
+
hideSidebar
|
|
51
|
+
}, 'public');
|
|
52
|
+
const stateExportPreProcessing = React.useCallback((prevState, context) => {
|
|
53
|
+
const sidebarToExport = (0, _gridSidebarSelector.gridSidebarStateSelector)(apiRef);
|
|
54
|
+
const shouldExportSidebar =
|
|
55
|
+
// Always export if the `exportOnlyDirtyModels` property is not activated
|
|
56
|
+
!context.exportOnlyDirtyModels ||
|
|
57
|
+
// Always export if the sidebar was initialized
|
|
58
|
+
props.initialState?.sidebar != null ||
|
|
59
|
+
// Always export if the sidebar is opened
|
|
60
|
+
sidebarToExport.open;
|
|
61
|
+
if (!shouldExportSidebar) {
|
|
62
|
+
return prevState;
|
|
63
|
+
}
|
|
64
|
+
return (0, _extends2.default)({}, prevState, {
|
|
65
|
+
sidebar: sidebarToExport
|
|
66
|
+
});
|
|
67
|
+
}, [apiRef, props.initialState?.sidebar]);
|
|
68
|
+
const stateRestorePreProcessing = React.useCallback((params, context) => {
|
|
69
|
+
const sidebar = context.stateToRestore.sidebar;
|
|
70
|
+
if (sidebar != null) {
|
|
71
|
+
apiRef.current.setState(state => (0, _extends2.default)({}, state, {
|
|
72
|
+
sidebar
|
|
73
|
+
}));
|
|
74
|
+
}
|
|
75
|
+
return params;
|
|
76
|
+
}, [apiRef]);
|
|
77
|
+
(0, _internals.useGridRegisterPipeProcessor)(apiRef, 'exportState', stateExportPreProcessing);
|
|
78
|
+
(0, _internals.useGridRegisterPipeProcessor)(apiRef, 'restoreState', stateRestorePreProcessing);
|
|
79
|
+
(0, _internals.useGridEventPriority)(apiRef, 'sidebarClose', props.onSidebarClose);
|
|
80
|
+
(0, _internals.useGridEventPriority)(apiRef, 'sidebarOpen', props.onSidebarOpen);
|
|
81
|
+
};
|
|
82
|
+
exports.useGridSidebar = useGridSidebar;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const useGridAriaAttributesPremium: () => React.HTMLAttributes<HTMLElement>;
|
|
@@ -4,13 +4,13 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.
|
|
7
|
+
exports.useGridAriaAttributesPremium = void 0;
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
9
|
var _internals = require("@mui/x-data-grid-pro/internals");
|
|
10
10
|
var _gridRowGroupingSelector = require("../features/rowGrouping/gridRowGroupingSelector");
|
|
11
11
|
var _useGridPrivateApiContext = require("./useGridPrivateApiContext");
|
|
12
|
-
const
|
|
13
|
-
const ariaAttributesPro = (0, _internals.
|
|
12
|
+
const useGridAriaAttributesPremium = () => {
|
|
13
|
+
const ariaAttributesPro = (0, _internals.useGridAriaAttributesPro)();
|
|
14
14
|
const apiRef = (0, _useGridPrivateApiContext.useGridPrivateApiContext)();
|
|
15
15
|
const gridRowGroupingModel = (0, _internals.useGridSelector)(apiRef, _gridRowGroupingSelector.gridRowGroupingSanitizedModelSelector);
|
|
16
16
|
const ariaAttributesPremium = gridRowGroupingModel.length > 0 ? {
|
|
@@ -18,4 +18,4 @@ const useGridAriaAttributes = () => {
|
|
|
18
18
|
} : {};
|
|
19
19
|
return (0, _extends2.default)({}, ariaAttributesPro, ariaAttributesPremium);
|
|
20
20
|
};
|
|
21
|
-
exports.
|
|
21
|
+
exports.useGridAriaAttributesPremium = useGridAriaAttributesPremium;
|
package/index.js
CHANGED
|
@@ -205,11 +205,13 @@ export interface DataGridPremiumPropsWithoutDefaultValue<R extends GridValidRowM
|
|
|
205
205
|
/**
|
|
206
206
|
* If `true`, the pivot side panel is visible.
|
|
207
207
|
* @default false
|
|
208
|
+
* @deprecated Use `initialState.sidebar.open` instead.
|
|
208
209
|
*/
|
|
209
210
|
pivotPanelOpen?: boolean;
|
|
210
211
|
/**
|
|
211
212
|
* Callback fired when the pivot side panel open state changes.
|
|
212
213
|
* @param {boolean} pivotPanelOpen Whether the pivot side panel is visible.
|
|
214
|
+
* @deprecated Use the `sidebarOpen` and `sidebarClose` events or corresponding event handlers `onSidebarOpen()` and `onSidebarClose()` instead.
|
|
213
215
|
*/
|
|
214
216
|
onPivotPanelOpenChange?: (pivotPanelOpen: boolean) => void;
|
|
215
217
|
/**
|
|
@@ -254,4 +256,18 @@ export interface DataGridPremiumPropsWithoutDefaultValue<R extends GridValidRowM
|
|
|
254
256
|
* @returns {Promise<PromptResponse>} The prompt response.
|
|
255
257
|
*/
|
|
256
258
|
onPrompt?: (prompt: string, promptContext: string, conversationId?: string) => Promise<PromptResponse>;
|
|
259
|
+
/**
|
|
260
|
+
* Callback fired when the sidebar is closed.
|
|
261
|
+
* @param {GridSidebarParams} params With all properties from [[GridSidebarParams]].
|
|
262
|
+
* @param {MuiEvent<{}>} event The event object.
|
|
263
|
+
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
264
|
+
*/
|
|
265
|
+
onSidebarClose?: GridEventListener<'sidebarClose'>;
|
|
266
|
+
/**
|
|
267
|
+
* Callback fired when the sidebar is opened.
|
|
268
|
+
* @param {GridSidebarParams} params With all properties from [[GridSidebarParams]].
|
|
269
|
+
* @param {MuiEvent<{}>} event The event object.
|
|
270
|
+
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
271
|
+
*/
|
|
272
|
+
onSidebarOpen?: GridEventListener<'sidebarOpen'>;
|
|
257
273
|
}
|
|
@@ -8,9 +8,10 @@ import type { GridDataSourcePremiumPrivateApi, GridDataSourceApiPremium } from "
|
|
|
8
8
|
import type { GridAggregationPrivateApi } from "../hooks/features/aggregation/gridAggregationInterfaces.js";
|
|
9
9
|
import type { GridPivotingApi, GridPivotingPrivateApi } from "../hooks/features/pivoting/gridPivotingInterfaces.js";
|
|
10
10
|
import { GridAiAssistantApi } from "../hooks/features/aiAssistant/gridAiAssistantInterfaces.js";
|
|
11
|
+
import { GridSidebarApi } from "../hooks/features/sidebar/gridSidebarInterfaces.js";
|
|
11
12
|
/**
|
|
12
13
|
* The api of Data Grid Premium.
|
|
13
14
|
* TODO: Do not redefine manually the pro features
|
|
14
15
|
*/
|
|
15
|
-
export interface GridApiPremium extends GridApiCommon<GridStatePremium, GridInitialStatePremium>, GridRowProApi, GridColumnPinningApi, GridDetailPanelApi, GridRowGroupingApi, GridExcelExportApi, GridAggregationApi, GridRowPinningApi, GridDataSourceApiPremium, GridCellSelectionApi, GridPivotingApi, GridAiAssistantApi, GridRowMultiSelectionApi, GridColumnReorderApi {}
|
|
16
|
+
export interface GridApiPremium extends GridApiCommon<GridStatePremium, GridInitialStatePremium>, GridRowProApi, GridColumnPinningApi, GridDetailPanelApi, GridRowGroupingApi, GridExcelExportApi, GridAggregationApi, GridRowPinningApi, GridDataSourceApiPremium, GridCellSelectionApi, GridPivotingApi, GridAiAssistantApi, GridSidebarApi, GridRowMultiSelectionApi, GridColumnReorderApi {}
|
|
16
17
|
export interface GridPrivateApiPremium extends GridApiPremium, GridPrivateOnlyApiCommon<GridApiPremium, GridPrivateApiPremium, DataGridPremiumProcessedProps>, GridDataSourcePremiumPrivateApi, GridAggregationPrivateApi, GridDetailPanelPrivateApi, GridPivotingPrivateApi {}
|
|
@@ -2,6 +2,7 @@ import { GridInitialState as GridInitialStatePro, GridState as GridStatePro } fr
|
|
|
2
2
|
import type { GridRowGroupingState, GridRowGroupingInitialState, GridAggregationState, GridAggregationInitialState, GridCellSelectionModel } from "../hooks/index.js";
|
|
3
3
|
import type { GridPivotingInitialState, GridPivotingState } from "../hooks/features/pivoting/gridPivotingInterfaces.js";
|
|
4
4
|
import { GridAiAssistantInitialState, GridAiAssistantState } from "../hooks/features/aiAssistant/gridAiAssistantInterfaces.js";
|
|
5
|
+
import { GridSidebarInitialState, GridSidebarState } from "../hooks/features/sidebar/gridSidebarState.js";
|
|
5
6
|
/**
|
|
6
7
|
* The state of Data Grid Premium.
|
|
7
8
|
*/
|
|
@@ -11,6 +12,7 @@ export interface GridStatePremium extends GridStatePro {
|
|
|
11
12
|
cellSelection: GridCellSelectionModel;
|
|
12
13
|
pivoting: GridPivotingState;
|
|
13
14
|
aiAssistant: GridAiAssistantState;
|
|
15
|
+
sidebar: GridSidebarState;
|
|
14
16
|
}
|
|
15
17
|
/**
|
|
16
18
|
* The initial state of Data Grid Premium.
|
|
@@ -21,4 +23,5 @@ export interface GridInitialStatePremium extends GridInitialStatePro {
|
|
|
21
23
|
cellSelection?: GridCellSelectionModel;
|
|
22
24
|
pivoting?: GridPivotingInitialState;
|
|
23
25
|
aiAssistant?: GridAiAssistantInitialState;
|
|
26
|
+
sidebar?: GridSidebarInitialState;
|
|
24
27
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-data-grid-premium",
|
|
3
|
-
"version": "8.9.
|
|
3
|
+
"version": "8.9.2",
|
|
4
4
|
"author": "MUI Team",
|
|
5
5
|
"description": "The Premium plan edition of the MUI X Data Grid Components.",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -13,8 +13,7 @@
|
|
|
13
13
|
"**/*.css"
|
|
14
14
|
],
|
|
15
15
|
"publishConfig": {
|
|
16
|
-
"access": "public"
|
|
17
|
-
"directory": "build"
|
|
16
|
+
"access": "public"
|
|
18
17
|
},
|
|
19
18
|
"keywords": [
|
|
20
19
|
"react",
|
|
@@ -35,16 +34,16 @@
|
|
|
35
34
|
"directory": "packages/x-data-grid-premium"
|
|
36
35
|
},
|
|
37
36
|
"dependencies": {
|
|
38
|
-
"@babel/runtime": "^7.
|
|
37
|
+
"@babel/runtime": "^7.28.2",
|
|
39
38
|
"@mui/utils": "^7.2.0",
|
|
40
39
|
"@types/format-util": "^1.0.4",
|
|
41
40
|
"clsx": "^2.1.1",
|
|
42
41
|
"exceljs": "^4.4.0",
|
|
43
42
|
"prop-types": "^15.8.1",
|
|
44
|
-
"@mui/x-
|
|
45
|
-
"@mui/x-data-grid-pro": "8.9.
|
|
46
|
-
"@mui/x-license": "8.9.
|
|
47
|
-
"@mui/x-
|
|
43
|
+
"@mui/x-internals": "8.9.2",
|
|
44
|
+
"@mui/x-data-grid-pro": "8.9.2",
|
|
45
|
+
"@mui/x-license": "8.9.2",
|
|
46
|
+
"@mui/x-data-grid": "8.9.2"
|
|
48
47
|
},
|
|
49
48
|
"peerDependencies": {
|
|
50
49
|
"@emotion/react": "^11.9.0",
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { GridExportDisplayOptions, GridValidRowModel } from '@mui/x-data-grid-pro';
|
|
2
|
-
import type { GridControlledStateEventLookupPro, GridApiCachesPro, GridEventLookupPro } from '@mui/x-data-grid-pro/typeOverloads';
|
|
2
|
+
import type { GridPipeProcessingLookupPro, GridControlledStateEventLookupPro, GridApiCachesPro, GridEventLookupPro } from '@mui/x-data-grid-pro/typeOverloads';
|
|
3
3
|
import type { GridGroupingValueGetter, GridPastedValueParser } from "../models/index.js";
|
|
4
4
|
import type { GridRowGroupingModel, GridAggregationModel, GridAggregationCellMeta, GridAggregationHeaderMeta, GridCellSelectionModel, Conversation } from "../hooks/index.js";
|
|
5
5
|
import { GridRowGroupingInternalCache } from "../hooks/features/rowGrouping/gridRowGroupingInterfaces.js";
|
|
6
6
|
import { GridAggregationInternalCache } from "../hooks/features/aggregation/gridAggregationInterfaces.js";
|
|
7
7
|
import type { GridExcelExportOptions } from "../hooks/features/export/gridExcelExportInterface.js";
|
|
8
8
|
import type { GridPivotingInternalCache, GridPivotModel } from "../hooks/features/pivoting/gridPivotingInterfaces.js";
|
|
9
|
+
import { GridSidebarValue } from "../hooks/features/sidebar/gridSidebarInterfaces.js";
|
|
9
10
|
export interface GridControlledStateEventLookupPremium {
|
|
10
11
|
/**
|
|
11
12
|
* Fired when the aggregation model changes.
|
|
@@ -40,6 +41,9 @@ export interface GridControlledStateEventLookupPremium {
|
|
|
40
41
|
pivotModeChange: {
|
|
41
42
|
params: boolean;
|
|
42
43
|
};
|
|
44
|
+
/**
|
|
45
|
+
* @deprecated Use the `sidebarOpen` and `sidebarClose` events instead.
|
|
46
|
+
*/
|
|
43
47
|
pivotPanelOpenChange: {
|
|
44
48
|
params: boolean;
|
|
45
49
|
};
|
|
@@ -69,6 +73,22 @@ interface GridEventLookupPremium extends GridEventLookupPro {
|
|
|
69
73
|
* Fired when the clipboard paste operation ends.
|
|
70
74
|
*/
|
|
71
75
|
clipboardPasteEnd: {};
|
|
76
|
+
/**
|
|
77
|
+
* Fired when the sidebar is opened.
|
|
78
|
+
*/
|
|
79
|
+
sidebarOpen: {
|
|
80
|
+
params: {
|
|
81
|
+
value: GridSidebarValue;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* Fired when the sidebar is closed.
|
|
86
|
+
*/
|
|
87
|
+
sidebarClose: {
|
|
88
|
+
params: {
|
|
89
|
+
value: GridSidebarValue;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
72
92
|
}
|
|
73
93
|
export interface GridColDefPremium<R extends GridValidRowModel = any, V = any, F = V> {
|
|
74
94
|
/**
|
|
@@ -109,8 +129,15 @@ export interface GridApiCachesPremium extends GridApiCachesPro {
|
|
|
109
129
|
rowGrouping: GridRowGroupingInternalCache;
|
|
110
130
|
aggregation: GridAggregationInternalCache;
|
|
111
131
|
}
|
|
132
|
+
export interface GridPipeProcessingLookupPremium {
|
|
133
|
+
sidebar: {
|
|
134
|
+
value: React.ReactNode;
|
|
135
|
+
context: GridSidebarValue;
|
|
136
|
+
};
|
|
137
|
+
}
|
|
112
138
|
declare module '@mui/x-data-grid-pro' {
|
|
113
139
|
interface GridEventLookup extends GridEventLookupPremium {}
|
|
140
|
+
interface GridPipeProcessingLookup extends GridPipeProcessingLookupPro, GridPipeProcessingLookupPremium {}
|
|
114
141
|
interface GridControlledStateEventLookup extends GridControlledStateEventLookupPro, GridControlledStateEventLookupPremium {}
|
|
115
142
|
interface GridRenderCellParams<R, V, F> extends GridRenderCellParamsPremium<R, V, F> {}
|
|
116
143
|
interface GridColumnHeaderParams<R, V, F> extends GridColumnHeaderParamsPremium<R, V, F> {}
|