@mui/x-data-grid 8.5.0 → 8.5.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.
Files changed (158) hide show
  1. package/CHANGELOG.md +204 -0
  2. package/components/columnsPanel/ColumnsPanelTrigger.d.ts +1 -1
  3. package/components/columnsPanel/ColumnsPanelTrigger.js +2 -2
  4. package/components/containers/GridRootStyles.d.ts +1 -1
  5. package/components/containers/GridRootStyles.js +6 -0
  6. package/components/export/ExportCsv.d.ts +1 -1
  7. package/components/export/ExportCsv.js +2 -2
  8. package/components/export/ExportPrint.d.ts +1 -1
  9. package/components/export/ExportPrint.js +2 -2
  10. package/components/filterPanel/FilterPanelTrigger.d.ts +1 -1
  11. package/components/filterPanel/FilterPanelTrigger.js +2 -2
  12. package/components/quickFilter/QuickFilter.d.ts +1 -1
  13. package/components/quickFilter/QuickFilter.js +2 -2
  14. package/components/quickFilter/QuickFilterClear.d.ts +1 -1
  15. package/components/quickFilter/QuickFilterClear.js +2 -2
  16. package/components/quickFilter/QuickFilterControl.d.ts +1 -1
  17. package/components/quickFilter/QuickFilterControl.js +2 -2
  18. package/components/quickFilter/QuickFilterTrigger.d.ts +1 -1
  19. package/components/quickFilter/QuickFilterTrigger.js +2 -2
  20. package/components/toolbarV8/Toolbar.d.ts +1 -1
  21. package/components/toolbarV8/Toolbar.js +2 -2
  22. package/components/toolbarV8/ToolbarButton.d.ts +1 -1
  23. package/components/toolbarV8/ToolbarButton.js +2 -2
  24. package/esm/components/columnsPanel/ColumnsPanelTrigger.d.ts +1 -1
  25. package/esm/components/columnsPanel/ColumnsPanelTrigger.js +2 -2
  26. package/esm/components/containers/GridRootStyles.d.ts +1 -1
  27. package/esm/components/containers/GridRootStyles.js +6 -0
  28. package/esm/components/export/ExportCsv.d.ts +1 -1
  29. package/esm/components/export/ExportCsv.js +2 -2
  30. package/esm/components/export/ExportPrint.d.ts +1 -1
  31. package/esm/components/export/ExportPrint.js +2 -2
  32. package/esm/components/filterPanel/FilterPanelTrigger.d.ts +1 -1
  33. package/esm/components/filterPanel/FilterPanelTrigger.js +2 -2
  34. package/esm/components/quickFilter/QuickFilter.d.ts +1 -1
  35. package/esm/components/quickFilter/QuickFilter.js +2 -2
  36. package/esm/components/quickFilter/QuickFilterClear.d.ts +1 -1
  37. package/esm/components/quickFilter/QuickFilterClear.js +2 -2
  38. package/esm/components/quickFilter/QuickFilterControl.d.ts +1 -1
  39. package/esm/components/quickFilter/QuickFilterControl.js +2 -2
  40. package/esm/components/quickFilter/QuickFilterTrigger.d.ts +1 -1
  41. package/esm/components/quickFilter/QuickFilterTrigger.js +2 -2
  42. package/esm/components/toolbarV8/Toolbar.d.ts +1 -1
  43. package/esm/components/toolbarV8/Toolbar.js +2 -2
  44. package/esm/components/toolbarV8/ToolbarButton.d.ts +1 -1
  45. package/esm/components/toolbarV8/ToolbarButton.js +2 -2
  46. package/esm/hooks/core/pipeProcessing/useGridPipeProcessing.js +3 -3
  47. package/esm/hooks/core/useGridApiInitialization.js +1 -1
  48. package/esm/hooks/features/columnGrouping/gridColumnGroupsSelector.d.ts +13 -5
  49. package/esm/hooks/features/columnHeaders/useGridColumnHeaders.d.ts +1 -1
  50. package/esm/hooks/features/columnResize/columnResizeSelector.d.ts +3 -1
  51. package/esm/hooks/features/columns/gridColumnsSelector.d.ts +41 -15
  52. package/esm/hooks/features/columns/gridColumnsUtils.js +3 -1
  53. package/esm/hooks/features/dataSource/gridDataSourceSelector.d.ts +4 -2
  54. package/esm/hooks/features/dataSource/useGridDataSourceBase.js +4 -0
  55. package/esm/hooks/features/density/densitySelector.d.ts +3 -1
  56. package/esm/hooks/features/dimensions/gridDimensionsSelectors.d.ts +36 -12
  57. package/esm/hooks/features/editing/gridEditingSelectors.d.ts +8 -4
  58. package/esm/hooks/features/filter/gridFilterSelector.d.ts +51 -17
  59. package/esm/hooks/features/filter/gridFilterState.d.ts +2 -1
  60. package/esm/hooks/features/filter/gridFilterState.js +2 -1
  61. package/esm/hooks/features/filter/useGridFilter.js +1 -1
  62. package/esm/hooks/features/focus/gridFocusStateSelector.d.ts +24 -8
  63. package/esm/hooks/features/headerFiltering/gridHeaderFilteringSelectors.d.ts +9 -3
  64. package/esm/hooks/features/pagination/gridPaginationSelector.d.ts +35 -19
  65. package/esm/hooks/features/pivoting/gridPivotingSelectors.d.ts +9 -4
  66. package/esm/hooks/features/preferencesPanel/gridPreferencePanelSelector.d.ts +3 -1
  67. package/esm/hooks/features/rowSelection/gridRowSelectionSelector.d.ts +9 -3
  68. package/esm/hooks/features/rowSelection/useGridRowSelectionPreProcessors.js +9 -5
  69. package/esm/hooks/features/rowSelection/utils.d.ts +5 -3
  70. package/esm/hooks/features/rows/gridRowSpanningSelectors.d.ts +9 -3
  71. package/esm/hooks/features/rows/gridRowsSelector.d.ts +50 -29
  72. package/esm/hooks/features/sorting/gridSortingSelector.d.ts +15 -5
  73. package/esm/hooks/features/virtualization/gridFocusedVirtualCellSelector.d.ts +4 -2
  74. package/esm/hooks/features/virtualization/gridVirtualizationSelectors.d.ts +15 -5
  75. package/esm/hooks/features/virtualization/gridVirtualizationSelectors.js +3 -1
  76. package/esm/hooks/utils/index.d.ts +1 -1
  77. package/esm/hooks/utils/useGridSelector.d.ts +2 -4
  78. package/esm/hooks/utils/useGridSelector.js +2 -2
  79. package/esm/index.js +1 -1
  80. package/esm/internals/index.d.ts +0 -1
  81. package/esm/internals/index.js +0 -1
  82. package/esm/locales/arSD.js +5 -6
  83. package/esm/locales/ptPT.js +4 -4
  84. package/esm/material/variables.js +1 -2
  85. package/esm/models/api/gridCoreApi.d.ts +1 -1
  86. package/esm/models/gridCellClass.d.ts +2 -0
  87. package/esm/models/gridColumnGrouping.d.ts +2 -0
  88. package/esm/models/gridColumnGrouping.js +2 -0
  89. package/esm/models/gridColumnHeaderClass.d.ts +2 -0
  90. package/esm/models/gridRows.d.ts +2 -0
  91. package/esm/models/gridSortModel.d.ts +5 -0
  92. package/esm/models/params/gridRowParams.d.ts +1 -1
  93. package/esm/models/params/gridRowParams.js +1 -1
  94. package/esm/utils/createSelector.d.ts +3 -11
  95. package/esm/utils/createSelector.js +16 -86
  96. package/hooks/core/pipeProcessing/useGridPipeProcessing.js +3 -3
  97. package/hooks/core/useGridApiInitialization.js +2 -2
  98. package/hooks/features/columnGrouping/gridColumnGroupsSelector.d.ts +13 -5
  99. package/hooks/features/columnHeaders/useGridColumnHeaders.d.ts +1 -1
  100. package/hooks/features/columnResize/columnResizeSelector.d.ts +3 -1
  101. package/hooks/features/columns/gridColumnsSelector.d.ts +41 -15
  102. package/hooks/features/columns/gridColumnsUtils.js +3 -1
  103. package/hooks/features/dataSource/gridDataSourceSelector.d.ts +4 -2
  104. package/hooks/features/dataSource/useGridDataSourceBase.js +4 -0
  105. package/hooks/features/density/densitySelector.d.ts +3 -1
  106. package/hooks/features/dimensions/gridDimensionsSelectors.d.ts +36 -12
  107. package/hooks/features/editing/gridEditingSelectors.d.ts +8 -4
  108. package/hooks/features/filter/gridFilterSelector.d.ts +51 -17
  109. package/hooks/features/filter/gridFilterState.d.ts +2 -1
  110. package/hooks/features/filter/gridFilterState.js +2 -1
  111. package/hooks/features/filter/useGridFilter.js +2 -2
  112. package/hooks/features/focus/gridFocusStateSelector.d.ts +24 -8
  113. package/hooks/features/headerFiltering/gridHeaderFilteringSelectors.d.ts +9 -3
  114. package/hooks/features/pagination/gridPaginationSelector.d.ts +35 -19
  115. package/hooks/features/pivoting/gridPivotingSelectors.d.ts +9 -4
  116. package/hooks/features/preferencesPanel/gridPreferencePanelSelector.d.ts +3 -1
  117. package/hooks/features/rowSelection/gridRowSelectionSelector.d.ts +9 -3
  118. package/hooks/features/rowSelection/useGridRowSelectionPreProcessors.js +9 -5
  119. package/hooks/features/rowSelection/utils.d.ts +5 -3
  120. package/hooks/features/rows/gridRowSpanningSelectors.d.ts +9 -3
  121. package/hooks/features/rows/gridRowsSelector.d.ts +50 -29
  122. package/hooks/features/sorting/gridSortingSelector.d.ts +15 -5
  123. package/hooks/features/virtualization/gridFocusedVirtualCellSelector.d.ts +4 -2
  124. package/hooks/features/virtualization/gridVirtualizationSelectors.d.ts +15 -5
  125. package/hooks/features/virtualization/gridVirtualizationSelectors.js +3 -1
  126. package/hooks/utils/index.d.ts +1 -1
  127. package/hooks/utils/useGridSelector.d.ts +2 -4
  128. package/hooks/utils/useGridSelector.js +4 -4
  129. package/index.js +1 -1
  130. package/internals/index.d.ts +0 -1
  131. package/internals/index.js +0 -8
  132. package/locales/arSD.js +5 -6
  133. package/locales/ptPT.js +4 -4
  134. package/material/variables.js +1 -2
  135. package/models/api/gridCoreApi.d.ts +1 -1
  136. package/models/gridCellClass.d.ts +2 -0
  137. package/models/gridColumnGrouping.d.ts +2 -0
  138. package/models/gridColumnGrouping.js +2 -0
  139. package/models/gridColumnHeaderClass.d.ts +2 -0
  140. package/models/gridRows.d.ts +2 -0
  141. package/models/gridSortModel.d.ts +5 -0
  142. package/models/params/gridRowParams.d.ts +1 -1
  143. package/models/params/gridRowParams.js +1 -1
  144. package/package.json +4 -5
  145. package/utils/createSelector.d.ts +3 -11
  146. package/utils/createSelector.js +18 -88
  147. package/esm/hooks/utils/useGridComponentRenderer.d.ts +0 -12
  148. package/esm/hooks/utils/useGridComponentRenderer.js +0 -36
  149. package/esm/utils/Store.d.ts +0 -11
  150. package/esm/utils/Store.js +0 -24
  151. package/esm/utils/weakMapMemoize.d.ts +0 -20
  152. package/esm/utils/weakMapMemoize.js +0 -128
  153. package/hooks/utils/useGridComponentRenderer.d.ts +0 -12
  154. package/hooks/utils/useGridComponentRenderer.js +0 -44
  155. package/utils/Store.d.ts +0 -11
  156. package/utils/Store.js +0 -31
  157. package/utils/weakMapMemoize.d.ts +0 -20
  158. package/utils/weakMapMemoize.js +0 -134
@@ -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: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("@mui/x-data-grid").GridFilterState, import("@mui/x-data-grid").GridFilterModel>;
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: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("@mui/x-data-grid").GridFilterModel, any[] | undefined>;
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: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("@mui/x-data-grid").GridFilterState, Record<GridRowId, false>>;
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: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("@mui/x-data-grid").GridFilterState, Record<GridRowId, number>>;
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: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("@mui/x-data-grid").GridFilterState, Record<GridRowId, number>>;
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: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("@mui/x-data-grid").GridRowEntry<import("@mui/x-data-grid").GridValidRowModel>[], import("@mui/x-data-grid").GridRowEntry<import("@mui/x-data-grid").GridValidRowModel>[]>;
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: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("@mui/x-data-grid").GridRowEntry<import("@mui/x-data-grid").GridValidRowModel>[], GridRowId[]>;
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: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("@mui/x-data-grid").GridRowEntry<import("@mui/x-data-grid").GridValidRowModel>[], import("@mui/x-data-grid").GridRowEntry<import("@mui/x-data-grid").GridValidRowModel>[]>;
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: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("@mui/x-data-grid").GridRowEntry<import("@mui/x-data-grid").GridValidRowModel>[], GridRowId[]>;
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: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("@mui/x-data-grid").GridRowTreeConfig, Record<GridRowId, number>>;
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: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, number, import("@mui/x-data-grid").GridRowEntry<import("@mui/x-data-grid").GridValidRowModel>[]>;
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: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("@mui/x-data-grid").GridRowEntry<import("@mui/x-data-grid").GridValidRowModel>[], number>;
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: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("@mui/x-data-grid").GridRowEntry<import("@mui/x-data-grid").GridValidRowModel>[], number>;
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: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("@mui/x-data-grid").GridRowEntry<import("@mui/x-data-grid").GridValidRowModel>[], number>;
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("@mui/x-data-grid").OutputSelector<GridStateCommunity, number, number>;
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: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("@mui/x-data-grid").GridColumnLookup, GridFilterItem[]>;
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("@mui/x-data-grid").OutputSelector<GridStateCommunity, GridFilterItem[], GridFilterActiveItemsLookup>;
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 {GridRowId} rowId The id of the row we want to filter.
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 {
@@ -12,8 +12,9 @@ export const getDefaultGridFilterModel = () => ({
12
12
  });
13
13
 
14
14
  /**
15
- * @param {GridRowId} rowId The id of the row we want to filter.
15
+ * @param {GridValidRowModel} row The model of the row we want to filter.
16
16
  * @param {(filterItem: GridFilterItem) => boolean} shouldApplyItem An optional callback to allow the filtering engine to only apply some items.
17
+ * @param {GridAggregatedFilterItemApplierResult} result The previous result of the filtering engine.
17
18
  */
18
19
 
19
20
  /**
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import * as React from 'react';
3
- import { lruMemoize } from 'reselect';
3
+ import { lruMemoize } from '@mui/x-internals/lruMemoize';
4
4
  import useEnhancedEffect from '@mui/utils/useEnhancedEffect';
5
5
  import { isDeepEqual } from '@mui/x-internals/isDeepEqual';
6
6
  import { useLazyRef } from "../../utils/useLazyRef.js";
@@ -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: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, GridFocusState, import("@mui/x-data-grid").GridCellCoordinates | null>;
5
- export declare const gridFocusColumnHeaderSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, GridFocusState, import("@mui/x-data-grid").GridColumnIdentifier | null>;
6
- export declare const gridFocusColumnHeaderFilterSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, GridFocusState, import("@mui/x-data-grid").GridColumnIdentifier | null>;
7
- export declare const gridFocusColumnGroupHeaderSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, GridFocusState, import("@mui/x-data-grid").GridColumnGroupIdentifier | null>;
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: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, GridTabIndexState, import("@mui/x-data-grid").GridCellCoordinates | null>;
10
- export declare const gridTabIndexColumnHeaderSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, GridTabIndexState, import("@mui/x-data-grid").GridColumnIdentifier | null>;
11
- export declare const gridTabIndexColumnHeaderFilterSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, GridTabIndexState, import("@mui/x-data-grid").GridColumnIdentifier | null>;
12
- export declare const gridTabIndexColumnGroupHeaderSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, GridTabIndexState, import("@mui/x-data-grid").GridColumnGroupIdentifier | null>;
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: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("../../../models/gridHeaderFilteringModel.js").GridHeaderFilteringState, boolean>;
4
- export declare const gridHeaderFilteringEditFieldSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("../../../models/gridHeaderFilteringModel.js").GridHeaderFilteringState, string | null>;
5
- export declare const gridHeaderFilteringMenuSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("../../../models/gridHeaderFilteringModel.js").GridHeaderFilteringState, string | null>;
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: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("@mui/x-data-grid").GridPaginationState, boolean>;
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: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("@mui/x-data-grid").GridPaginationState, import("@mui/x-data-grid").GridPaginationModel>;
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: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("@mui/x-data-grid").GridPaginationState, number>;
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: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("@mui/x-data-grid").GridPaginationState, import("@mui/x-data-grid").GridPaginationMeta>;
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: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("@mui/x-data-grid").GridPaginationModel, number>;
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: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("@mui/x-data-grid").GridPaginationModel, number>;
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("@mui/x-data-grid").OutputSelector<GridStateCommunity, number, number>;
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: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("@mui/x-data-grid").GridRowEntry<import("@mui/x-data-grid").GridValidRowModel>[], {
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("@mui/x-data-grid").OutputSelector<GridStateCommunity, {
56
- firstRowIndex: number;
57
- lastRowIndex: number;
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("@mui/x-data-grid").OutputSelector<GridStateCommunity, {
64
- firstRowIndex: number;
65
- lastRowIndex: number;
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: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("@mui/x-data-grid").GridRowEntry<import("@mui/x-data-grid").GridValidRowModel>[], {
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
- import type { GridPivotingStatePartial } from "./gridPivotingInterfaces.js";
4
- export declare const gridPivotActiveSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, GridPivotingStatePartial, boolean>;
5
- export declare const gridPivotInitialColumnsSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, GridPivotingStatePartial, Map<string, GridColDef>>;
6
- export declare const gridPivotPanelOpenSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, GridPivotingStatePartial, boolean>;
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("@mui/x-data-grid").OutputSelector<GridStateCommunity, string, boolean>;
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: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("@mui/x-data-grid").GridRowSelectionModel, import("../../../models/gridRowSelectionManager.js").RowSelectionManager>;
5
- export declare const gridRowSelectionCountSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, number, number>;
6
- export declare const gridRowSelectionIdsSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, GridRowId[], Map<GridRowId, import("@mui/x-data-grid").GridValidRowModel>>;
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>;
@@ -28,17 +28,21 @@ export const useGridRowSelectionPreProcessors = (apiRef, props) => {
28
28
  headerName: apiRef.current.getLocaleText('checkboxSelectionHeaderName')
29
29
  });
30
30
  const shouldHaveSelectionColumn = props.checkboxSelection;
31
- const haveSelectionColumn = columnsState.lookup[GRID_CHECKBOX_SELECTION_FIELD] != null;
32
- if (shouldHaveSelectionColumn && !haveSelectionColumn) {
31
+ const hasSelectionColumn = columnsState.lookup[GRID_CHECKBOX_SELECTION_FIELD] != null;
32
+ if (shouldHaveSelectionColumn && !hasSelectionColumn) {
33
33
  columnsState.lookup[GRID_CHECKBOX_SELECTION_FIELD] = selectionColumn;
34
34
  columnsState.orderedFields = [GRID_CHECKBOX_SELECTION_FIELD, ...columnsState.orderedFields];
35
- } else if (!shouldHaveSelectionColumn && haveSelectionColumn) {
35
+ } else if (!shouldHaveSelectionColumn && hasSelectionColumn) {
36
36
  delete columnsState.lookup[GRID_CHECKBOX_SELECTION_FIELD];
37
37
  columnsState.orderedFields = columnsState.orderedFields.filter(field => field !== GRID_CHECKBOX_SELECTION_FIELD);
38
- } else if (shouldHaveSelectionColumn && haveSelectionColumn) {
38
+ } else if (shouldHaveSelectionColumn && hasSelectionColumn) {
39
39
  columnsState.lookup[GRID_CHECKBOX_SELECTION_FIELD] = _extends({}, selectionColumn, columnsState.lookup[GRID_CHECKBOX_SELECTION_FIELD]);
40
+ // If the column is not in the columns array (not a custom selection column), move it to the beginning of the column order
41
+ if (!props.columns.some(col => col.field === GRID_CHECKBOX_SELECTION_FIELD)) {
42
+ columnsState.orderedFields = [GRID_CHECKBOX_SELECTION_FIELD, ...columnsState.orderedFields.filter(field => field !== GRID_CHECKBOX_SELECTION_FIELD)];
43
+ }
40
44
  }
41
45
  return columnsState;
42
- }, [apiRef, classes, props.checkboxSelection]);
46
+ }, [apiRef, classes, props.columns, props.checkboxSelection]);
43
47
  useGridRegisterPipeProcessor(apiRef, 'hydrateColumns', updateSelectionColumn);
44
48
  };
@@ -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("@mui/x-data-grid").OutputSelector<import("../../../models/gridStateCommunity.js").GridStateCommunity, {
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: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("./useGridRowSpanning.js").GridRowSpanningState, Record<import("@mui/x-data-grid").GridRowId, Record<string, boolean>>>;
3
- export declare const gridRowSpanningSpannedCellsSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("./useGridRowSpanning.js").GridRowSpanningState, Record<import("@mui/x-data-grid").GridRowId, Record<string, number>>>;
4
- export declare const gridRowSpanningHiddenCellsOriginMapSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("./useGridRowSpanning.js").GridRowSpanningState, Record<number, Record<string, number>>>;
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>>;
@@ -1,31 +1,59 @@
1
1
  import { GridRowId } from "../../../models/gridRows.js";
2
2
  import { GridStateCommunity } from "../../../models/gridStateCommunity.js";
3
3
  export declare const gridRowsStateSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, unknown, import("@mui/x-data-grid").GridRowsState>;
4
- export declare const gridRowCountSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("@mui/x-data-grid").GridRowsState, number>;
5
- export declare const gridRowsLoadingSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("@mui/x-data-grid").GridRowsState, boolean | undefined>;
6
- export declare const gridTopLevelRowCountSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("@mui/x-data-grid").GridRowsState, number>;
7
- export declare const gridRowsLookupSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("@mui/x-data-grid").GridRowsState, import("@mui/x-data-grid").GridRowIdToModelLookup<import("@mui/x-data-grid").GridValidRowModel>>;
8
- export declare const gridRowSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, GridRowId, import("@mui/x-data-grid").GridValidRowModel>;
9
- export declare const gridRowTreeSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("@mui/x-data-grid").GridRowsState, import("@mui/x-data-grid").GridRowTreeConfig>;
10
- export declare const gridRowNodeSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, GridRowId, import("@mui/x-data-grid").GridTreeNode>;
11
- export declare const gridRowGroupsToFetchSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("@mui/x-data-grid").GridRowsState, GridRowId[] | undefined>;
12
- export declare const gridRowGroupingNameSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("@mui/x-data-grid").GridRowsState, string>;
13
- export declare const gridRowTreeDepthsSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("@mui/x-data-grid").GridRowsState, import("./gridRowsInterfaces.js").GridTreeDepths>;
14
- export declare const gridRowMaximumTreeDepthSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("@mui/x-data-grid").GridRowsState, number>;
15
- export declare const gridDataRowIdsSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("@mui/x-data-grid").GridRowsState, GridRowId[]>;
16
- export declare const gridDataRowsSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("@mui/x-data-grid").GridRowIdToModelLookup<import("@mui/x-data-grid").GridValidRowModel>, import("@mui/x-data-grid").GridValidRowModel[]>;
4
+ export declare const gridRowCountSelector: (args_0: import("react").RefObject<{
5
+ state: GridStateCommunity;
6
+ } | null>) => number;
7
+ export declare const gridRowsLoadingSelector: (args_0: import("react").RefObject<{
8
+ state: GridStateCommunity;
9
+ } | null>) => boolean | undefined;
10
+ export declare const gridTopLevelRowCountSelector: (args_0: import("react").RefObject<{
11
+ state: GridStateCommunity;
12
+ } | null>) => number;
13
+ export declare const gridRowsLookupSelector: (args_0: import("react").RefObject<{
14
+ state: GridStateCommunity;
15
+ } | null>) => import("@mui/x-data-grid").GridRowIdToModelLookup<import("@mui/x-data-grid").GridValidRowModel>;
16
+ export declare const gridRowSelector: (args_0: import("react").RefObject<{
17
+ state: GridStateCommunity;
18
+ } | null>, id: GridRowId) => import("@mui/x-data-grid").GridValidRowModel;
19
+ export declare const gridRowTreeSelector: (args_0: import("react").RefObject<{
20
+ state: GridStateCommunity;
21
+ } | null>) => import("@mui/x-data-grid").GridRowTreeConfig;
22
+ export declare const gridRowNodeSelector: (args_0: import("react").RefObject<{
23
+ state: GridStateCommunity;
24
+ } | null>, rowId: GridRowId) => import("@mui/x-data-grid").GridTreeNode;
25
+ export declare const gridRowGroupsToFetchSelector: (args_0: import("react").RefObject<{
26
+ state: GridStateCommunity;
27
+ } | null>) => GridRowId[] | undefined;
28
+ export declare const gridRowGroupingNameSelector: (args_0: import("react").RefObject<{
29
+ state: GridStateCommunity;
30
+ } | null>) => string;
31
+ export declare const gridRowTreeDepthsSelector: (args_0: import("react").RefObject<{
32
+ state: GridStateCommunity;
33
+ } | null>) => import("./gridRowsInterfaces.js").GridTreeDepths;
34
+ export declare const gridRowMaximumTreeDepthSelector: (args_0: import("react").RefObject<{
35
+ state: GridStateCommunity;
36
+ } | null>) => number;
37
+ export declare const gridDataRowIdsSelector: (args_0: import("react").RefObject<{
38
+ state: GridStateCommunity;
39
+ } | null>) => GridRowId[];
40
+ export declare const gridDataRowsSelector: (args_0: import("react").RefObject<{
41
+ state: GridStateCommunity;
42
+ } | null>) => import("@mui/x-data-grid").GridValidRowModel[];
17
43
  /**
18
44
  * @ignore - do not document.
19
45
  */
20
- export declare const gridAdditionalRowGroupsSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("@mui/x-data-grid").GridRowsState, {
46
+ export declare const gridAdditionalRowGroupsSelector: (args_0: import("react").RefObject<{
47
+ state: GridStateCommunity;
48
+ } | null>) => {
21
49
  pinnedRows?: import("./gridRowsInterfaces.js").GridPinnedRowsState;
22
- } | undefined>;
50
+ } | undefined;
23
51
  /**
24
52
  * @ignore - do not document.
25
53
  */
26
- export declare const gridPinnedRowsSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, {
27
- pinnedRows?: import("./gridRowsInterfaces.js").GridPinnedRowsState;
28
- } | undefined, {
54
+ export declare const gridPinnedRowsSelector: (args_0: import("react").RefObject<{
55
+ state: GridStateCommunity;
56
+ } | null>) => {
29
57
  bottom: {
30
58
  id: GridRowId;
31
59
  model: import("@mui/x-data-grid").GridValidRowModel;
@@ -34,17 +62,10 @@ export declare const gridPinnedRowsSelector: import("@mui/x-data-grid").OutputSe
34
62
  id: GridRowId;
35
63
  model: import("@mui/x-data-grid").GridValidRowModel;
36
64
  }[];
37
- }>;
65
+ };
38
66
  /**
39
67
  * @ignore - do not document.
40
68
  */
41
- export declare const gridPinnedRowsCountSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, {
42
- bottom: {
43
- id: GridRowId;
44
- model: import("@mui/x-data-grid").GridValidRowModel;
45
- }[];
46
- top: {
47
- id: GridRowId;
48
- model: import("@mui/x-data-grid").GridValidRowModel;
49
- }[];
50
- }, number>;
69
+ export declare const gridPinnedRowsCountSelector: (args_0: import("react").RefObject<{
70
+ state: GridStateCommunity;
71
+ } | null>) => number;
@@ -5,17 +5,23 @@ import { GridStateCommunity } from "../../../models/gridStateCommunity.js";
5
5
  * Get the id of the rows after the sorting process.
6
6
  * @category Sorting
7
7
  */
8
- export declare const gridSortedRowIdsSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("@mui/x-data-grid").GridSortingState, GridRowId[]>;
8
+ export declare const gridSortedRowIdsSelector: (args_0: import("react").RefObject<{
9
+ state: GridStateCommunity;
10
+ } | null>) => GridRowId[];
9
11
  /**
10
12
  * Get the id and the model of the rows after the sorting process.
11
13
  * @category Sorting
12
14
  */
13
- export declare const gridSortedRowEntriesSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("@mui/x-data-grid").GridRowTreeConfig, GridRowEntry<GridValidRowModel>[]>;
15
+ export declare const gridSortedRowEntriesSelector: (args_0: import("react").RefObject<{
16
+ state: GridStateCommunity;
17
+ } | null>) => GridRowEntry<GridValidRowModel>[];
14
18
  /**
15
19
  * Get the current sorting model.
16
20
  * @category Sorting
17
21
  */
18
- export declare const gridSortModelSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("@mui/x-data-grid").GridSortingState, GridSortModel>;
22
+ export declare const gridSortModelSelector: (args_0: import("react").RefObject<{
23
+ state: GridStateCommunity;
24
+ } | null>) => GridSortModel;
19
25
  export type GridSortColumnLookup = Record<string, {
20
26
  sortDirection: GridSortDirection;
21
27
  sortIndex?: number;
@@ -24,9 +30,13 @@ export type GridSortColumnLookup = Record<string, {
24
30
  * @category Sorting
25
31
  * @ignore - do not document.
26
32
  */
27
- export declare const gridSortColumnLookupSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, GridSortModel, GridSortColumnLookup>;
33
+ export declare const gridSortColumnLookupSelector: (args_0: import("react").RefObject<{
34
+ state: GridStateCommunity;
35
+ } | null>) => GridSortColumnLookup;
28
36
  /**
29
37
  * @category Sorting
30
38
  * @ignore - do not document.
31
39
  */
32
- export declare const gridSortedRowIndexLookupSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, GridRowId[], Record<GridRowId, number>>;
40
+ export declare const gridSortedRowIndexLookupSelector: (args_0: import("react").RefObject<{
41
+ state: GridStateCommunity;
42
+ } | null>) => Record<GridRowId, number>;