Skip to content

Commit

Permalink
Fix export bug with CSB
Browse files Browse the repository at this point in the history
  • Loading branch information
m4theushw committed Mar 11, 2022
1 parent d3167e0 commit 17f3bab
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export interface GridCellEditCommitParams {
value: GridCellValue;
}

export enum GridCellEditStartReasons {
enum GridCellEditStartReasons {
enterKeyDown = 'enterKeyDown',
cellDoubleClick = 'cellDoubleClick',
printableKeyDown = 'printableKeyDown',
Expand All @@ -62,7 +62,7 @@ export interface GridCellEditStartParams<V = any, R = any, F = V> extends GridCe
reason: GridCellEditStartReasons;
}

export enum GridCellEditStopReasons {
enum GridCellEditStopReasons {
cellFocusOut = 'cellFocusOut',
escapeKeyDown = 'escapeKeyDown',
enterKeyDown = 'enterKeyDown',
Expand All @@ -79,3 +79,6 @@ export interface GridCellEditStopParams<V = any, R = any, F = V> extends GridCel
*/
reason: GridCellEditStopReasons;
}

// https://github.com/mui/mui-x/pull/3738#discussion_r798504277
export { GridCellEditStartReasons, GridCellEditStopReasons };
7 changes: 5 additions & 2 deletions packages/grid/x-data-grid/src/models/params/gridRowParams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export interface GridRowHeightParams extends GridRowEntry {
*/
export type GridRowHeightReturnValue = number | null | undefined;

export enum GridRowEditStartReasons {
enum GridRowEditStartReasons {
enterKeyDown = 'enterKeyDown',
cellDoubleClick = 'cellDoubleClick',
printableKeyDown = 'printableKeyDown',
Expand All @@ -81,7 +81,7 @@ export interface GridRowEditStartParams<R extends GridRowModel = GridRowModel>
reason: GridRowEditStartReasons;
}

export enum GridRowEditStopReasons {
enum GridRowEditStopReasons {
rowFocusOut = 'rowFocusOut',
escapeKeyDown = 'escapeKeyDown',
enterKeyDown = 'enterKeyDown',
Expand Down Expand Up @@ -111,3 +111,6 @@ export interface GridRowSpacing {
top?: number;
bottom?: number;
}

// https://github.com/mui/mui-x/pull/3738#discussion_r798504277
export { GridRowEditStartReasons, GridRowEditStopReasons };

0 comments on commit 17f3bab

Please sign in to comment.