Skip to content

Commit

Permalink
[DataGrid] Expose gridEditRowsStateSelector (mui#13877)
Browse files Browse the repository at this point in the history
  • Loading branch information
romgrk authored and thomasmoon committed Sep 6, 2024
1 parent af42ffb commit 5bc7267
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 1 deletion.
6 changes: 6 additions & 0 deletions docs/pages/x/api/data-grid/selectors.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,12 @@
"description": "",
"supportsApiRef": false
},
{
"name": "gridEditRowsStateSelector",
"returnType": "GridEditingState",
"description": "Select the row editing state.",
"supportsApiRef": false
},
{
"name": "gridExpandedRowCountSelector",
"returnType": "number",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { GridStateCommunity } from '../../../models/gridStateCommunity';

// TODO v6: rename to gridEditingStateSelector
/**
* Select the row editing state.
*/
export const gridEditRowsStateSelector = (state: GridStateCommunity) => state.editRows;
1 change: 1 addition & 0 deletions packages/x-data-grid/src/hooks/features/editing/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './gridEditingSelectors';
1 change: 1 addition & 0 deletions packages/x-data-grid/src/hooks/features/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export * from './columns';
export * from './columnGrouping';
export * from './columnResize';
export * from './density';
export * from './editing';
export * from './filter';
export * from './focus';
export * from './pagination';
Expand Down
1 change: 1 addition & 0 deletions scripts/x-data-grid-premium.exports.json
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@
{ "name": "GridEditModes", "kind": "Enum" },
{ "name": "GridEditRowApi", "kind": "TypeAlias" },
{ "name": "GridEditRowProps", "kind": "TypeAlias" },
{ "name": "gridEditRowsStateSelector", "kind": "Variable" },
{ "name": "GridEditSingleSelectCell", "kind": "Function" },
{ "name": "GridEditSingleSelectCellProps", "kind": "Interface" },
{ "name": "GridEventListener", "kind": "TypeAlias" },
Expand Down
1 change: 1 addition & 0 deletions scripts/x-data-grid-pro.exports.json
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@
{ "name": "GridEditModes", "kind": "Enum" },
{ "name": "GridEditRowApi", "kind": "TypeAlias" },
{ "name": "GridEditRowProps", "kind": "TypeAlias" },
{ "name": "gridEditRowsStateSelector", "kind": "Variable" },
{ "name": "GridEditSingleSelectCell", "kind": "Function" },
{ "name": "GridEditSingleSelectCellProps", "kind": "Interface" },
{ "name": "GridEventListener", "kind": "TypeAlias" },
Expand Down
1 change: 1 addition & 0 deletions scripts/x-data-grid.exports.json
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@
{ "name": "GridEditModes", "kind": "Enum" },
{ "name": "GridEditRowApi", "kind": "TypeAlias" },
{ "name": "GridEditRowProps", "kind": "TypeAlias" },
{ "name": "gridEditRowsStateSelector", "kind": "Variable" },
{ "name": "GridEditSingleSelectCell", "kind": "Function" },
{ "name": "GridEditSingleSelectCellProps", "kind": "Interface" },
{ "name": "GridEventListener", "kind": "TypeAlias" },
Expand Down

0 comments on commit 5bc7267

Please sign in to comment.