@mui/x-data-grid 8.5.1 → 8.5.3
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 +187 -10
- package/components/containers/GridRootStyles.d.ts +1 -1
- package/components/menu/columnMenu/GridColumnMenuContainer.js +8 -0
- package/components/toolbarV8/GridToolbar.js +1 -0
- package/components/toolbarV8/Toolbar.d.ts +1 -1
- package/esm/components/containers/GridRootStyles.d.ts +1 -1
- package/esm/components/menu/columnMenu/GridColumnMenuContainer.js +8 -0
- package/esm/components/toolbarV8/GridToolbar.js +1 -0
- package/esm/components/toolbarV8/Toolbar.d.ts +1 -1
- package/esm/hooks/core/useGridApiInitialization.js +1 -1
- package/esm/hooks/features/columnGrouping/gridColumnGroupsSelector.d.ts +13 -5
- package/esm/hooks/features/columnHeaders/useGridColumnHeaders.d.ts +1 -1
- package/esm/hooks/features/columnResize/columnResizeSelector.d.ts +3 -1
- package/esm/hooks/features/columns/gridColumnsSelector.d.ts +41 -15
- package/esm/hooks/features/columns/gridColumnsUtils.js +3 -1
- package/esm/hooks/features/dataSource/gridDataSourceSelector.d.ts +4 -2
- package/esm/hooks/features/dataSource/useGridDataSourceBase.js +4 -0
- package/esm/hooks/features/dataSource/utils.js +1 -1
- package/esm/hooks/features/density/densitySelector.d.ts +3 -1
- package/esm/hooks/features/dimensions/gridDimensionsSelectors.d.ts +36 -12
- package/esm/hooks/features/editing/gridEditingSelectors.d.ts +8 -4
- package/esm/hooks/features/filter/gridFilterSelector.d.ts +51 -17
- package/esm/hooks/features/filter/gridFilterState.d.ts +2 -1
- package/esm/hooks/features/filter/gridFilterState.js +2 -1
- package/esm/hooks/features/filter/useGridFilter.js +1 -1
- package/esm/hooks/features/focus/gridFocusStateSelector.d.ts +24 -8
- package/esm/hooks/features/headerFiltering/gridHeaderFilteringSelectors.d.ts +9 -3
- package/esm/hooks/features/pagination/gridPaginationSelector.d.ts +35 -19
- package/esm/hooks/features/pivoting/gridPivotingSelectors.d.ts +9 -4
- package/esm/hooks/features/preferencesPanel/gridPreferencePanelSelector.d.ts +3 -1
- package/esm/hooks/features/rowSelection/gridRowSelectionSelector.d.ts +9 -3
- package/esm/hooks/features/rowSelection/utils.d.ts +5 -3
- package/esm/hooks/features/rows/gridRowSpanningSelectors.d.ts +9 -3
- package/esm/hooks/features/rows/gridRowsSelector.d.ts +50 -29
- package/esm/hooks/features/sorting/gridSortingSelector.d.ts +15 -5
- package/esm/hooks/features/virtualization/gridFocusedVirtualCellSelector.d.ts +4 -2
- package/esm/hooks/features/virtualization/gridVirtualizationSelectors.d.ts +15 -5
- package/esm/hooks/features/virtualization/gridVirtualizationSelectors.js +3 -1
- package/esm/hooks/utils/useGridSelector.d.ts +2 -4
- package/esm/hooks/utils/useGridSelector.js +2 -2
- package/esm/index.js +1 -1
- package/esm/internals/demo/TailwindDemoContainer.d.ts +1 -1
- package/esm/material/variables.js +1 -2
- package/esm/models/api/gridCoreApi.d.ts +1 -1
- package/esm/models/gridBaseSlots.d.ts +1 -0
- package/esm/models/gridCellClass.d.ts +2 -0
- package/esm/models/gridColumnGrouping.d.ts +2 -0
- package/esm/models/gridColumnGrouping.js +2 -0
- package/esm/models/gridColumnHeaderClass.d.ts +2 -0
- package/esm/models/gridRows.d.ts +2 -0
- package/esm/models/gridSortModel.d.ts +5 -0
- package/esm/models/params/gridRowParams.d.ts +1 -1
- package/esm/models/params/gridRowParams.js +1 -1
- package/esm/utils/createSelector.d.ts +3 -11
- package/esm/utils/createSelector.js +16 -86
- package/hooks/core/useGridApiInitialization.js +2 -2
- package/hooks/features/columnGrouping/gridColumnGroupsSelector.d.ts +13 -5
- package/hooks/features/columnHeaders/useGridColumnHeaders.d.ts +1 -1
- package/hooks/features/columnResize/columnResizeSelector.d.ts +3 -1
- package/hooks/features/columns/gridColumnsSelector.d.ts +41 -15
- package/hooks/features/columns/gridColumnsUtils.js +3 -1
- package/hooks/features/dataSource/gridDataSourceSelector.d.ts +4 -2
- package/hooks/features/dataSource/useGridDataSourceBase.js +4 -0
- package/hooks/features/dataSource/utils.js +1 -1
- package/hooks/features/density/densitySelector.d.ts +3 -1
- package/hooks/features/dimensions/gridDimensionsSelectors.d.ts +36 -12
- package/hooks/features/editing/gridEditingSelectors.d.ts +8 -4
- package/hooks/features/filter/gridFilterSelector.d.ts +51 -17
- package/hooks/features/filter/gridFilterState.d.ts +2 -1
- package/hooks/features/filter/gridFilterState.js +2 -1
- package/hooks/features/filter/useGridFilter.js +2 -2
- package/hooks/features/focus/gridFocusStateSelector.d.ts +24 -8
- package/hooks/features/headerFiltering/gridHeaderFilteringSelectors.d.ts +9 -3
- package/hooks/features/pagination/gridPaginationSelector.d.ts +35 -19
- package/hooks/features/pivoting/gridPivotingSelectors.d.ts +9 -4
- package/hooks/features/preferencesPanel/gridPreferencePanelSelector.d.ts +3 -1
- package/hooks/features/rowSelection/gridRowSelectionSelector.d.ts +9 -3
- package/hooks/features/rowSelection/utils.d.ts +5 -3
- package/hooks/features/rows/gridRowSpanningSelectors.d.ts +9 -3
- package/hooks/features/rows/gridRowsSelector.d.ts +50 -29
- package/hooks/features/sorting/gridSortingSelector.d.ts +15 -5
- package/hooks/features/virtualization/gridFocusedVirtualCellSelector.d.ts +4 -2
- package/hooks/features/virtualization/gridVirtualizationSelectors.d.ts +15 -5
- package/hooks/features/virtualization/gridVirtualizationSelectors.js +3 -1
- package/hooks/utils/useGridSelector.d.ts +2 -4
- package/hooks/utils/useGridSelector.js +4 -4
- package/index.js +1 -1
- package/internals/demo/TailwindDemoContainer.d.ts +1 -1
- package/material/variables.js +1 -2
- package/models/api/gridCoreApi.d.ts +1 -1
- package/models/gridBaseSlots.d.ts +1 -0
- package/models/gridCellClass.d.ts +2 -0
- package/models/gridColumnGrouping.d.ts +2 -0
- package/models/gridColumnGrouping.js +2 -0
- package/models/gridColumnHeaderClass.d.ts +2 -0
- package/models/gridRows.d.ts +2 -0
- package/models/gridSortModel.d.ts +5 -0
- package/models/params/gridRowParams.d.ts +1 -1
- package/models/params/gridRowParams.js +1 -1
- package/package.json +3 -4
- package/utils/createSelector.d.ts +3 -11
- package/utils/createSelector.js +18 -88
- package/esm/utils/Store.d.ts +0 -11
- package/esm/utils/Store.js +0 -24
- package/esm/utils/weakMapMemoize.d.ts +0 -20
- package/esm/utils/weakMapMemoize.js +0 -128
- package/utils/Store.d.ts +0 -11
- package/utils/Store.js +0 -31
- package/utils/weakMapMemoize.d.ts +0 -20
- package/utils/weakMapMemoize.js +0 -134
|
@@ -4,15 +4,39 @@ export declare const gridDimensionsSelector: import("@mui/x-data-grid").OutputSe
|
|
|
4
4
|
* Get the summed width of all the visible columns.
|
|
5
5
|
* @category Visible Columns
|
|
6
6
|
*/
|
|
7
|
-
export declare const gridColumnsTotalWidthSelector:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export declare const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
export declare const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export declare const
|
|
17
|
-
|
|
18
|
-
|
|
7
|
+
export declare const gridColumnsTotalWidthSelector: (args_0: import("react").RefObject<{
|
|
8
|
+
state: GridStateCommunity;
|
|
9
|
+
} | null>) => number;
|
|
10
|
+
export declare const gridRowHeightSelector: (args_0: import("react").RefObject<{
|
|
11
|
+
state: GridStateCommunity;
|
|
12
|
+
} | null>) => number;
|
|
13
|
+
export declare const gridContentHeightSelector: (args_0: import("react").RefObject<{
|
|
14
|
+
state: GridStateCommunity;
|
|
15
|
+
} | null>) => number;
|
|
16
|
+
export declare const gridHasScrollXSelector: (args_0: import("react").RefObject<{
|
|
17
|
+
state: GridStateCommunity;
|
|
18
|
+
} | null>) => boolean;
|
|
19
|
+
export declare const gridHasScrollYSelector: (args_0: import("react").RefObject<{
|
|
20
|
+
state: GridStateCommunity;
|
|
21
|
+
} | null>) => boolean;
|
|
22
|
+
export declare const gridHasFillerSelector: (args_0: import("react").RefObject<{
|
|
23
|
+
state: GridStateCommunity;
|
|
24
|
+
} | null>) => boolean;
|
|
25
|
+
export declare const gridHeaderHeightSelector: (args_0: import("react").RefObject<{
|
|
26
|
+
state: GridStateCommunity;
|
|
27
|
+
} | null>) => number;
|
|
28
|
+
export declare const gridGroupHeaderHeightSelector: (args_0: import("react").RefObject<{
|
|
29
|
+
state: GridStateCommunity;
|
|
30
|
+
} | null>) => number;
|
|
31
|
+
export declare const gridHeaderFilterHeightSelector: (args_0: import("react").RefObject<{
|
|
32
|
+
state: GridStateCommunity;
|
|
33
|
+
} | null>) => number;
|
|
34
|
+
export declare const gridHorizontalScrollbarHeightSelector: (args_0: import("react").RefObject<{
|
|
35
|
+
state: GridStateCommunity;
|
|
36
|
+
} | null>) => number;
|
|
37
|
+
export declare const gridVerticalScrollbarWidthSelector: (args_0: import("react").RefObject<{
|
|
38
|
+
state: GridStateCommunity;
|
|
39
|
+
} | null>) => number;
|
|
40
|
+
export declare const gridHasBottomFillerSelector: (args_0: import("react").RefObject<{
|
|
41
|
+
state: GridStateCommunity;
|
|
42
|
+
} | null>) => boolean;
|
|
@@ -5,11 +5,15 @@ import { GridEditMode } from "../../../models/gridEditRowModel.js";
|
|
|
5
5
|
* Select the row editing state.
|
|
6
6
|
*/
|
|
7
7
|
export declare const gridEditRowsStateSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, unknown, import("@mui/x-data-grid").GridEditingState>;
|
|
8
|
-
export declare const gridRowIsEditingSelector: import("
|
|
8
|
+
export declare const gridRowIsEditingSelector: (args_0: import("react").RefObject<{
|
|
9
|
+
state: GridStateCommunity;
|
|
10
|
+
} | null>, args_1: {
|
|
9
11
|
rowId: GridRowId;
|
|
10
12
|
editMode: GridEditMode;
|
|
11
|
-
}
|
|
12
|
-
export declare const gridEditCellStateSelector: import("
|
|
13
|
+
}) => boolean;
|
|
14
|
+
export declare const gridEditCellStateSelector: (args_0: import("react").RefObject<{
|
|
15
|
+
state: GridStateCommunity;
|
|
16
|
+
} | null>, args_1: {
|
|
13
17
|
rowId: GridRowId;
|
|
14
18
|
field: string;
|
|
15
|
-
}
|
|
19
|
+
}) => import("@mui/x-data-grid").GridEditCellProps<any>;
|
|
@@ -5,12 +5,16 @@ import { GridFilterItem } from "../../../models/gridFilterItem.js";
|
|
|
5
5
|
* Get the current filter model.
|
|
6
6
|
* @category Filtering
|
|
7
7
|
*/
|
|
8
|
-
export declare const gridFilterModelSelector:
|
|
8
|
+
export declare const gridFilterModelSelector: (args_0: import("react").RefObject<{
|
|
9
|
+
state: GridStateCommunity;
|
|
10
|
+
} | null>) => import("@mui/x-data-grid").GridFilterModel;
|
|
9
11
|
/**
|
|
10
12
|
* Get the current quick filter values.
|
|
11
13
|
* @category Filtering
|
|
12
14
|
*/
|
|
13
|
-
export declare const gridQuickFilterValuesSelector:
|
|
15
|
+
export declare const gridQuickFilterValuesSelector: (args_0: import("react").RefObject<{
|
|
16
|
+
state: GridStateCommunity;
|
|
17
|
+
} | null>) => any[] | undefined;
|
|
14
18
|
/**
|
|
15
19
|
* @category Visible rows
|
|
16
20
|
* @ignore - do not document.
|
|
@@ -20,79 +24,107 @@ export declare const gridVisibleRowsLookupSelector: import("@mui/x-data-grid").O
|
|
|
20
24
|
* @category Filtering
|
|
21
25
|
* @ignore - do not document.
|
|
22
26
|
*/
|
|
23
|
-
export declare const gridFilteredRowsLookupSelector:
|
|
27
|
+
export declare const gridFilteredRowsLookupSelector: (args_0: import("react").RefObject<{
|
|
28
|
+
state: GridStateCommunity;
|
|
29
|
+
} | null>) => Record<GridRowId, false>;
|
|
24
30
|
/**
|
|
25
31
|
* @category Filtering
|
|
26
32
|
* @ignore - do not document.
|
|
27
33
|
*/
|
|
28
|
-
export declare const gridFilteredChildrenCountLookupSelector:
|
|
34
|
+
export declare const gridFilteredChildrenCountLookupSelector: (args_0: import("react").RefObject<{
|
|
35
|
+
state: GridStateCommunity;
|
|
36
|
+
} | null>) => Record<GridRowId, number>;
|
|
29
37
|
/**
|
|
30
38
|
* @category Filtering
|
|
31
39
|
* @ignore - do not document.
|
|
32
40
|
*/
|
|
33
|
-
export declare const gridFilteredDescendantCountLookupSelector:
|
|
41
|
+
export declare const gridFilteredDescendantCountLookupSelector: (args_0: import("react").RefObject<{
|
|
42
|
+
state: GridStateCommunity;
|
|
43
|
+
} | null>) => Record<GridRowId, number>;
|
|
34
44
|
/**
|
|
35
45
|
* Get the id and the model of the rows accessible after the filtering process.
|
|
36
46
|
* Does not contain the collapsed children.
|
|
37
47
|
* @category Filtering
|
|
38
48
|
*/
|
|
39
|
-
export declare const gridExpandedSortedRowEntriesSelector:
|
|
49
|
+
export declare const gridExpandedSortedRowEntriesSelector: (args_0: import("react").RefObject<{
|
|
50
|
+
state: GridStateCommunity;
|
|
51
|
+
} | null>) => import("@mui/x-data-grid").GridRowEntry<import("@mui/x-data-grid").GridValidRowModel>[];
|
|
40
52
|
/**
|
|
41
53
|
* Get the id of the rows accessible after the filtering process.
|
|
42
54
|
* Does not contain the collapsed children.
|
|
43
55
|
* @category Filtering
|
|
44
56
|
*/
|
|
45
|
-
export declare const gridExpandedSortedRowIdsSelector:
|
|
57
|
+
export declare const gridExpandedSortedRowIdsSelector: (args_0: import("react").RefObject<{
|
|
58
|
+
state: GridStateCommunity;
|
|
59
|
+
} | null>) => GridRowId[];
|
|
46
60
|
/**
|
|
47
61
|
* Get the id and the model of the rows accessible after the filtering process.
|
|
48
62
|
* Contains the collapsed children.
|
|
49
63
|
* @category Filtering
|
|
50
64
|
*/
|
|
51
|
-
export declare const gridFilteredSortedRowEntriesSelector:
|
|
65
|
+
export declare const gridFilteredSortedRowEntriesSelector: (args_0: import("react").RefObject<{
|
|
66
|
+
state: GridStateCommunity;
|
|
67
|
+
} | null>) => import("@mui/x-data-grid").GridRowEntry<import("@mui/x-data-grid").GridValidRowModel>[];
|
|
52
68
|
/**
|
|
53
69
|
* Get the id of the rows accessible after the filtering process.
|
|
54
70
|
* Contains the collapsed children.
|
|
55
71
|
* @category Filtering
|
|
56
72
|
*/
|
|
57
|
-
export declare const gridFilteredSortedRowIdsSelector:
|
|
73
|
+
export declare const gridFilteredSortedRowIdsSelector: (args_0: import("react").RefObject<{
|
|
74
|
+
state: GridStateCommunity;
|
|
75
|
+
} | null>) => GridRowId[];
|
|
58
76
|
/**
|
|
59
77
|
* Get the ids to position in the current tree level lookup of the rows accessible after the filtering process.
|
|
60
78
|
* Does not contain the collapsed children.
|
|
61
79
|
* @category Filtering
|
|
62
80
|
* @ignore - do not document.
|
|
63
81
|
*/
|
|
64
|
-
export declare const gridExpandedSortedRowTreeLevelPositionLookupSelector:
|
|
82
|
+
export declare const gridExpandedSortedRowTreeLevelPositionLookupSelector: (args_0: import("react").RefObject<{
|
|
83
|
+
state: GridStateCommunity;
|
|
84
|
+
} | null>) => Record<GridRowId, number>;
|
|
65
85
|
/**
|
|
66
86
|
* Get the id and the model of the top level rows accessible after the filtering process.
|
|
67
87
|
* @category Filtering
|
|
68
88
|
*/
|
|
69
|
-
export declare const gridFilteredSortedTopLevelRowEntriesSelector:
|
|
89
|
+
export declare const gridFilteredSortedTopLevelRowEntriesSelector: (args_0: import("react").RefObject<{
|
|
90
|
+
state: GridStateCommunity;
|
|
91
|
+
} | null>) => import("@mui/x-data-grid").GridRowEntry<import("@mui/x-data-grid").GridValidRowModel>[];
|
|
70
92
|
/**
|
|
71
93
|
* Get the amount of rows accessible after the filtering process.
|
|
72
94
|
* @category Filtering
|
|
73
95
|
*/
|
|
74
|
-
export declare const gridExpandedRowCountSelector:
|
|
96
|
+
export declare const gridExpandedRowCountSelector: (args_0: import("react").RefObject<{
|
|
97
|
+
state: GridStateCommunity;
|
|
98
|
+
} | null>) => number;
|
|
75
99
|
/**
|
|
76
100
|
* Get the amount of top level rows accessible after the filtering process.
|
|
77
101
|
* @category Filtering
|
|
78
102
|
*/
|
|
79
|
-
export declare const gridFilteredTopLevelRowCountSelector:
|
|
103
|
+
export declare const gridFilteredTopLevelRowCountSelector: (args_0: import("react").RefObject<{
|
|
104
|
+
state: GridStateCommunity;
|
|
105
|
+
} | null>) => number;
|
|
80
106
|
/**
|
|
81
107
|
* Get the amount of rows accessible after the filtering process.
|
|
82
108
|
* Includes top level and descendant rows.
|
|
83
109
|
* @category Filtering
|
|
84
110
|
*/
|
|
85
|
-
export declare const gridFilteredRowCountSelector:
|
|
111
|
+
export declare const gridFilteredRowCountSelector: (args_0: import("react").RefObject<{
|
|
112
|
+
state: GridStateCommunity;
|
|
113
|
+
} | null>) => number;
|
|
86
114
|
/**
|
|
87
115
|
* Get the amount of descendant rows accessible after the filtering process.
|
|
88
116
|
* @category Filtering
|
|
89
117
|
*/
|
|
90
|
-
export declare const gridFilteredDescendantRowCountSelector: import("
|
|
118
|
+
export declare const gridFilteredDescendantRowCountSelector: (args_0: import("react").RefObject<{
|
|
119
|
+
state: GridStateCommunity;
|
|
120
|
+
} | null>) => number;
|
|
91
121
|
/**
|
|
92
122
|
* @category Filtering
|
|
93
123
|
* @ignore - do not document.
|
|
94
124
|
*/
|
|
95
|
-
export declare const gridFilterActiveItemsSelector:
|
|
125
|
+
export declare const gridFilterActiveItemsSelector: (args_0: import("react").RefObject<{
|
|
126
|
+
state: GridStateCommunity;
|
|
127
|
+
} | null>) => GridFilterItem[];
|
|
96
128
|
export type GridFilterActiveItemsLookup = {
|
|
97
129
|
[field: string]: GridFilterItem[];
|
|
98
130
|
};
|
|
@@ -100,4 +132,6 @@ export type GridFilterActiveItemsLookup = {
|
|
|
100
132
|
* @category Filtering
|
|
101
133
|
* @ignore - do not document.
|
|
102
134
|
*/
|
|
103
|
-
export declare const gridFilterActiveItemsLookupSelector: import("
|
|
135
|
+
export declare const gridFilterActiveItemsLookupSelector: (args_0: import("react").RefObject<{
|
|
136
|
+
state: GridStateCommunity;
|
|
137
|
+
} | null>) => GridFilterActiveItemsLookup;
|
|
@@ -44,8 +44,9 @@ export interface GridAggregatedFilterItemApplierResult {
|
|
|
44
44
|
passingQuickFilterValues: null | GridQuickFilterValueResult;
|
|
45
45
|
}
|
|
46
46
|
/**
|
|
47
|
-
* @param {
|
|
47
|
+
* @param {GridValidRowModel} row The model of the row we want to filter.
|
|
48
48
|
* @param {(filterItem: GridFilterItem) => boolean} shouldApplyItem An optional callback to allow the filtering engine to only apply some items.
|
|
49
|
+
* @param {GridAggregatedFilterItemApplierResult} result The previous result of the filtering engine.
|
|
49
50
|
*/
|
|
50
51
|
export type GridAggregatedFilterItemApplier = (row: GridValidRowModel, shouldApplyItem: ((field: string) => boolean) | undefined, result: GridAggregatedFilterItemApplierResult) => void;
|
|
51
52
|
export interface GridFilteringMethodParams {
|
|
@@ -18,8 +18,9 @@ const getDefaultGridFilterModel = () => ({
|
|
|
18
18
|
});
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
|
-
* @param {
|
|
21
|
+
* @param {GridValidRowModel} row The model of the row we want to filter.
|
|
22
22
|
* @param {(filterItem: GridFilterItem) => boolean} shouldApplyItem An optional callback to allow the filtering engine to only apply some items.
|
|
23
|
+
* @param {GridAggregatedFilterItemApplierResult} result The previous result of the filtering engine.
|
|
23
24
|
*/
|
|
24
25
|
|
|
25
26
|
/**
|
|
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
exports.useGridFilter = exports.filterStateInitializer = void 0;
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var React = _interopRequireWildcard(require("react"));
|
|
11
|
-
var
|
|
11
|
+
var _lruMemoize = require("@mui/x-internals/lruMemoize");
|
|
12
12
|
var _useEnhancedEffect = _interopRequireDefault(require("@mui/utils/useEnhancedEffect"));
|
|
13
13
|
var _isDeepEqual = require("@mui/x-internals/isDeepEqual");
|
|
14
14
|
var _useLazyRef = require("../../utils/useLazyRef");
|
|
@@ -46,7 +46,7 @@ function getVisibleRowsLookupState(apiRef, state) {
|
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
48
|
function createMemoizedValues() {
|
|
49
|
-
return (0,
|
|
49
|
+
return (0, _lruMemoize.lruMemoize)(Object.values);
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
/**
|
|
@@ -1,12 +1,28 @@
|
|
|
1
1
|
import { GridStateCommunity } from "../../../models/gridStateCommunity.js";
|
|
2
2
|
import { GridFocusState, GridTabIndexState } from "./gridFocusState.js";
|
|
3
3
|
export declare const gridFocusStateSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, unknown, GridFocusState>;
|
|
4
|
-
export declare const gridFocusCellSelector:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export declare const
|
|
4
|
+
export declare const gridFocusCellSelector: (args_0: import("react").RefObject<{
|
|
5
|
+
state: GridStateCommunity;
|
|
6
|
+
} | null>) => import("@mui/x-data-grid").GridCellCoordinates | null;
|
|
7
|
+
export declare const gridFocusColumnHeaderSelector: (args_0: import("react").RefObject<{
|
|
8
|
+
state: GridStateCommunity;
|
|
9
|
+
} | null>) => import("@mui/x-data-grid").GridColumnIdentifier | null;
|
|
10
|
+
export declare const gridFocusColumnHeaderFilterSelector: (args_0: import("react").RefObject<{
|
|
11
|
+
state: GridStateCommunity;
|
|
12
|
+
} | null>) => import("@mui/x-data-grid").GridColumnIdentifier | null;
|
|
13
|
+
export declare const gridFocusColumnGroupHeaderSelector: (args_0: import("react").RefObject<{
|
|
14
|
+
state: GridStateCommunity;
|
|
15
|
+
} | null>) => import("@mui/x-data-grid").GridColumnGroupIdentifier | null;
|
|
8
16
|
export declare const gridTabIndexStateSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, unknown, GridTabIndexState>;
|
|
9
|
-
export declare const gridTabIndexCellSelector:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export declare const
|
|
17
|
+
export declare const gridTabIndexCellSelector: (args_0: import("react").RefObject<{
|
|
18
|
+
state: GridStateCommunity;
|
|
19
|
+
} | null>) => import("@mui/x-data-grid").GridCellCoordinates | null;
|
|
20
|
+
export declare const gridTabIndexColumnHeaderSelector: (args_0: import("react").RefObject<{
|
|
21
|
+
state: GridStateCommunity;
|
|
22
|
+
} | null>) => import("@mui/x-data-grid").GridColumnIdentifier | null;
|
|
23
|
+
export declare const gridTabIndexColumnHeaderFilterSelector: (args_0: import("react").RefObject<{
|
|
24
|
+
state: GridStateCommunity;
|
|
25
|
+
} | null>) => import("@mui/x-data-grid").GridColumnIdentifier | null;
|
|
26
|
+
export declare const gridTabIndexColumnGroupHeaderSelector: (args_0: import("react").RefObject<{
|
|
27
|
+
state: GridStateCommunity;
|
|
28
|
+
} | null>) => import("@mui/x-data-grid").GridColumnGroupIdentifier | null;
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { GridStateCommunity } from "../../../models/gridStateCommunity.js";
|
|
2
2
|
export declare const gridHeaderFilteringStateSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, unknown, import("../../../models/gridHeaderFilteringModel.js").GridHeaderFilteringState>;
|
|
3
|
-
export declare const gridHeaderFilteringEnabledSelector:
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
export declare const gridHeaderFilteringEnabledSelector: (args_0: import("react").RefObject<{
|
|
4
|
+
state: GridStateCommunity;
|
|
5
|
+
} | null>) => boolean;
|
|
6
|
+
export declare const gridHeaderFilteringEditFieldSelector: (args_0: import("react").RefObject<{
|
|
7
|
+
state: GridStateCommunity;
|
|
8
|
+
} | null>) => string | null;
|
|
9
|
+
export declare const gridHeaderFilteringMenuSelector: (args_0: import("react").RefObject<{
|
|
10
|
+
state: GridStateCommunity;
|
|
11
|
+
} | null>) => string | null;
|
|
@@ -9,71 +9,87 @@ export declare const gridPaginationSelector: import("@mui/x-data-grid").OutputSe
|
|
|
9
9
|
* @category Pagination
|
|
10
10
|
* @ignore - do not document.
|
|
11
11
|
*/
|
|
12
|
-
export declare const gridPaginationEnabledClientSideSelector:
|
|
12
|
+
export declare const gridPaginationEnabledClientSideSelector: (args_0: import("react").RefObject<{
|
|
13
|
+
state: GridStateCommunity;
|
|
14
|
+
} | null>) => boolean;
|
|
13
15
|
/**
|
|
14
16
|
* Get the pagination model
|
|
15
17
|
* @category Pagination
|
|
16
18
|
*/
|
|
17
|
-
export declare const gridPaginationModelSelector:
|
|
19
|
+
export declare const gridPaginationModelSelector: (args_0: import("react").RefObject<{
|
|
20
|
+
state: GridStateCommunity;
|
|
21
|
+
} | null>) => import("@mui/x-data-grid").GridPaginationModel;
|
|
18
22
|
/**
|
|
19
23
|
* Get the row count
|
|
20
24
|
* @category Pagination
|
|
21
25
|
*/
|
|
22
|
-
export declare const gridPaginationRowCountSelector:
|
|
26
|
+
export declare const gridPaginationRowCountSelector: (args_0: import("react").RefObject<{
|
|
27
|
+
state: GridStateCommunity;
|
|
28
|
+
} | null>) => number;
|
|
23
29
|
/**
|
|
24
30
|
* Get the pagination meta
|
|
25
31
|
* @category Pagination
|
|
26
32
|
*/
|
|
27
|
-
export declare const gridPaginationMetaSelector:
|
|
33
|
+
export declare const gridPaginationMetaSelector: (args_0: import("react").RefObject<{
|
|
34
|
+
state: GridStateCommunity;
|
|
35
|
+
} | null>) => import("@mui/x-data-grid").GridPaginationMeta;
|
|
28
36
|
/**
|
|
29
37
|
* Get the index of the page to render if the pagination is enabled
|
|
30
38
|
* @category Pagination
|
|
31
39
|
*/
|
|
32
|
-
export declare const gridPageSelector:
|
|
40
|
+
export declare const gridPageSelector: (args_0: import("react").RefObject<{
|
|
41
|
+
state: GridStateCommunity;
|
|
42
|
+
} | null>) => number;
|
|
33
43
|
/**
|
|
34
44
|
* Get the maximum amount of rows to display on a single page if the pagination is enabled
|
|
35
45
|
* @category Pagination
|
|
36
46
|
*/
|
|
37
|
-
export declare const gridPageSizeSelector:
|
|
47
|
+
export declare const gridPageSizeSelector: (args_0: import("react").RefObject<{
|
|
48
|
+
state: GridStateCommunity;
|
|
49
|
+
} | null>) => number;
|
|
38
50
|
/**
|
|
39
51
|
* Get the amount of pages needed to display all the rows if the pagination is enabled
|
|
40
52
|
* @category Pagination
|
|
41
53
|
*/
|
|
42
|
-
export declare const gridPageCountSelector: import("
|
|
54
|
+
export declare const gridPageCountSelector: (args_0: import("react").RefObject<{
|
|
55
|
+
state: GridStateCommunity;
|
|
56
|
+
} | null>) => number;
|
|
43
57
|
/**
|
|
44
58
|
* Get the index of the first and the last row to include in the current page if the pagination is enabled.
|
|
45
59
|
* @category Pagination
|
|
46
60
|
*/
|
|
47
|
-
export declare const gridPaginationRowRangeSelector:
|
|
61
|
+
export declare const gridPaginationRowRangeSelector: (args_0: import("react").RefObject<{
|
|
62
|
+
state: GridStateCommunity;
|
|
63
|
+
} | null>) => {
|
|
48
64
|
firstRowIndex: number;
|
|
49
65
|
lastRowIndex: number;
|
|
50
|
-
} | null
|
|
66
|
+
} | null;
|
|
51
67
|
/**
|
|
52
68
|
* Get the id and the model of each row to include in the current page if the pagination is enabled.
|
|
53
69
|
* @category Pagination
|
|
54
70
|
*/
|
|
55
|
-
export declare const gridPaginatedVisibleSortedGridRowEntriesSelector: import("
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
} | null, import("@mui/x-data-grid").GridRowEntry<import("@mui/x-data-grid").GridValidRowModel>[]>;
|
|
71
|
+
export declare const gridPaginatedVisibleSortedGridRowEntriesSelector: (args_0: import("react").RefObject<{
|
|
72
|
+
state: GridStateCommunity;
|
|
73
|
+
} | null>) => import("@mui/x-data-grid").GridRowEntry<import("@mui/x-data-grid").GridValidRowModel>[];
|
|
59
74
|
/**
|
|
60
75
|
* Get the id of each row to include in the current page if the pagination is enabled.
|
|
61
76
|
* @category Pagination
|
|
62
77
|
*/
|
|
63
|
-
export declare const gridPaginatedVisibleSortedGridRowIdsSelector: import("
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
} | null, GridRowId[]>;
|
|
78
|
+
export declare const gridPaginatedVisibleSortedGridRowIdsSelector: (args_0: import("react").RefObject<{
|
|
79
|
+
state: GridStateCommunity;
|
|
80
|
+
} | null>) => GridRowId[];
|
|
67
81
|
/**
|
|
68
82
|
* Get the rows, range and rowIndex lookup map after filtering and sorting.
|
|
69
83
|
* Does not contain the collapsed children.
|
|
70
84
|
* @category Pagination
|
|
71
85
|
*/
|
|
72
|
-
export declare const gridVisibleRowsSelector:
|
|
86
|
+
export declare const gridVisibleRowsSelector: (args_0: import("react").RefObject<{
|
|
87
|
+
state: GridStateCommunity;
|
|
88
|
+
} | null>) => {
|
|
73
89
|
rows: import("@mui/x-data-grid").GridRowEntry<import("@mui/x-data-grid").GridValidRowModel>[];
|
|
74
90
|
range: {
|
|
75
91
|
firstRowIndex: number;
|
|
76
92
|
lastRowIndex: number;
|
|
77
93
|
} | null;
|
|
78
94
|
rowIdToIndexMap: Map<GridRowId, number>;
|
|
79
|
-
}
|
|
95
|
+
};
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import type { GridColDef } from "../../../models/colDef/index.js";
|
|
2
2
|
import type { GridStateCommunity } from "../../../models/gridStateCommunity.js";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
3
|
+
export declare const gridPivotActiveSelector: (args_0: import("react").RefObject<{
|
|
4
|
+
state: GridStateCommunity;
|
|
5
|
+
} | null>) => boolean;
|
|
6
|
+
export declare const gridPivotInitialColumnsSelector: (args_0: import("react").RefObject<{
|
|
7
|
+
state: GridStateCommunity;
|
|
8
|
+
} | null>) => Map<string, GridColDef>;
|
|
9
|
+
export declare const gridPivotPanelOpenSelector: (args_0: import("react").RefObject<{
|
|
10
|
+
state: GridStateCommunity;
|
|
11
|
+
} | null>) => boolean;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import { GridStateCommunity } from "../../../models/gridStateCommunity.js";
|
|
2
2
|
export declare const gridPreferencePanelStateSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, unknown, import("@mui/x-data-grid").GridPreferencePanelState>;
|
|
3
|
-
export declare const gridPreferencePanelSelectorWithLabel: import("
|
|
3
|
+
export declare const gridPreferencePanelSelectorWithLabel: (args_0: import("react").RefObject<{
|
|
4
|
+
state: GridStateCommunity;
|
|
5
|
+
} | null>, labelId: string | undefined) => boolean;
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { GridStateCommunity } from "../../../models/gridStateCommunity.js";
|
|
2
2
|
import { GridRowId } from "../../../models/gridRows.js";
|
|
3
3
|
export declare const gridRowSelectionStateSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, unknown, import("@mui/x-data-grid").GridRowSelectionModel>;
|
|
4
|
-
export declare const gridRowSelectionManagerSelector:
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
export declare const gridRowSelectionManagerSelector: (args_0: import("react").RefObject<{
|
|
5
|
+
state: GridStateCommunity;
|
|
6
|
+
} | null>) => import("../../../models/gridRowSelectionManager.js").RowSelectionManager;
|
|
7
|
+
export declare const gridRowSelectionCountSelector: (args_0: import("react").RefObject<{
|
|
8
|
+
state: GridStateCommunity;
|
|
9
|
+
} | null>) => number;
|
|
10
|
+
export declare const gridRowSelectionIdsSelector: (args_0: import("react").RefObject<{
|
|
11
|
+
state: GridStateCommunity;
|
|
12
|
+
} | null>) => Map<GridRowId, import("@mui/x-data-grid").GridValidRowModel>;
|
|
@@ -5,13 +5,15 @@ import type { GridPrivateApiCommunity } from "../../../models/api/gridApiCommuni
|
|
|
5
5
|
import { type GridRowSelectionPropagation } from "../../../models/gridRowSelectionModel.js";
|
|
6
6
|
import { type RowSelectionManager } from "../../../models/gridRowSelectionManager.js";
|
|
7
7
|
export declare const ROW_SELECTION_PROPAGATION_DEFAULT: GridRowSelectionPropagation;
|
|
8
|
-
export declare const checkboxPropsSelector: import("
|
|
8
|
+
export declare const checkboxPropsSelector: (args_0: import("react").RefObject<{
|
|
9
|
+
state: import("../../../models/gridStateCommunity.js").GridStateCommunity;
|
|
10
|
+
} | null>, args_1: {
|
|
9
11
|
groupId: GridRowId;
|
|
10
12
|
autoSelectParents: boolean;
|
|
11
|
-
}
|
|
13
|
+
}) => {
|
|
12
14
|
isIndeterminate: boolean;
|
|
13
15
|
isChecked: boolean;
|
|
14
|
-
}
|
|
16
|
+
};
|
|
15
17
|
export declare function isMultipleRowSelectionEnabled(props: Pick<DataGridProcessedProps, 'signature' | 'disableMultipleRowSelection' | 'checkboxSelection'>): boolean;
|
|
16
18
|
export declare const findRowsToSelect: (apiRef: RefObject<GridPrivateApiCommunity>, tree: GridRowTreeConfig, selectedRow: GridRowId, autoSelectDescendants: boolean, autoSelectParents: boolean, addRow: (rowId: GridRowId) => void, rowSelectionManager?: RowSelectionManager) => void;
|
|
17
19
|
export declare const findRowsToDeselect: (apiRef: RefObject<GridPrivateApiCommunity>, tree: GridRowTreeConfig, deselectedRow: GridRowId, autoSelectDescendants: boolean, autoSelectParents: boolean, removeRow: (rowId: GridRowId) => void) => void;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { GridStateCommunity } from "../../../models/gridStateCommunity.js";
|
|
2
|
-
export declare const gridRowSpanningHiddenCellsSelector:
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
export declare const gridRowSpanningHiddenCellsSelector: (args_0: import("react").RefObject<{
|
|
3
|
+
state: GridStateCommunity;
|
|
4
|
+
} | null>) => Record<import("@mui/x-data-grid").GridRowId, Record<string, boolean>>;
|
|
5
|
+
export declare const gridRowSpanningSpannedCellsSelector: (args_0: import("react").RefObject<{
|
|
6
|
+
state: GridStateCommunity;
|
|
7
|
+
} | null>) => Record<import("@mui/x-data-grid").GridRowId, Record<string, number>>;
|
|
8
|
+
export declare const gridRowSpanningHiddenCellsOriginMapSelector: (args_0: import("react").RefObject<{
|
|
9
|
+
state: GridStateCommunity;
|
|
10
|
+
} | null>) => Record<number, Record<string, number>>;
|