Skip to content

Commit

Permalink
[core] Sort ASC DATA_GRID_PROPS_DEFAULT_VALUES
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Jul 9, 2024
1 parent 528a3da commit d8b7c35
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 27 deletions.
14 changes: 7 additions & 7 deletions packages/x-data-grid-pro/src/DataGridPro/useDataGridProProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,19 @@ const getDataGridProForcedProps: GetDataGridProForcedProps = (themedProps) => ({
*/
export const DATA_GRID_PRO_PROPS_DEFAULT_VALUES: DataGridProPropsWithDefaultValue = {
...DATA_GRID_PROPS_DEFAULT_VALUES,
scrollEndThreshold: 80,
treeData: false,
defaultGroupingExpansionDepth: 0,
autosizeOnMount: false,
defaultGroupingExpansionDepth: 0,
disableAutosize: false,
disableColumnPinning: false,
keepColumnPositionIfDraggedOutside: false,
disableChildrenFiltering: false,
disableChildrenSorting: false,
rowReordering: false,
rowsLoadingMode: 'client',
disableColumnPinning: false,
getDetailPanelHeight: () => 500,
headerFilters: false,
keepColumnPositionIfDraggedOutside: false,
rowReordering: false,
rowsLoadingMode: 'client',
scrollEndThreshold: 80,
treeData: false,
};

const defaultSlots = DATA_GRID_PRO_DEFAULT_SLOTS_COMPONENTS;
Expand Down
40 changes: 20 additions & 20 deletions packages/x-data-grid/src/DataGrid/useDataGridProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,55 +29,55 @@ const DATA_GRID_FORCED_PROPS: { [key in DataGridForcedPropsKey]?: DataGridProces
export const DATA_GRID_PROPS_DEFAULT_VALUES: DataGridPropsWithDefaultValues = {
autoHeight: false,
autoPageSize: false,
autosizeOnMount: false,
checkboxSelection: false,
checkboxSelectionVisibleOnly: false,
clipboardCopyCellDelimiter: '\t',
columnBufferPx: 150,
rowBufferPx: 150,
rows: [],
rowSelection: true,
columnHeaderHeight: 56,
disableAutosize: false,
disableColumnFilter: false,
disableColumnMenu: false,
disableColumnReorder: false,
disableColumnResize: false,
disableColumnSelector: false,
disableColumnSorting: false,
disableDensitySelector: false,
disableEval: false,
disableMultipleColumnsFiltering: false,
disableMultipleRowSelection: false,
disableColumnSorting: false,
disableMultipleColumnsSorting: false,
disableMultipleRowSelection: false,
disableRowSelectionOnClick: false,
disableVirtualization: false,
editMode: GridEditModes.Cell,
filterMode: 'client',
filterDebounceMs: 150,
columnHeaderHeight: 56,
filterMode: 'client',
hideFooter: false,
hideFooterPagination: false,
hideFooterRowCount: false,
hideFooterSelectedRowCount: false,
ignoreDiacritics: false,
ignoreValueFormatterDuringExport: false,
keepColumnPositionIfDraggedOutside: false,
keepNonExistentRowsSelected: false,
loading: false,
logger: console,
logLevel: process.env.NODE_ENV === 'production' ? ('error' as const) : ('warn' as const),
pageSizeOptions: [25, 50, 100],
pagination: false,
paginationMode: 'client',
rowHeight: 52,
resizeThrottleMs: 60,
pageSizeOptions: [25, 50, 100],
rowBufferPx: 150,
rowHeight: 52,
rowPositionsDebounceMs: 166,
rows: [],
rowSelection: true,
rowSpacingType: 'margin',
showCellVerticalBorder: false,
showColumnVerticalBorder: false,
sortingOrder: ['asc' as const, 'desc' as const, null],
sortingMode: 'client',
sortingOrder: ['asc' as const, 'desc' as const, null],
throttleRowsMs: 0,
disableColumnReorder: false,
disableColumnResize: false,
keepNonExistentRowsSelected: false,
keepColumnPositionIfDraggedOutside: false,
ignoreValueFormatterDuringExport: false,
clipboardCopyCellDelimiter: '\t',
rowPositionsDebounceMs: 166,
autosizeOnMount: false,
disableAutosize: false,
loading: false,
};

const defaultSlots = DATA_GRID_DEFAULT_SLOTS_COMPONENTS;
Expand Down

0 comments on commit d8b7c35

Please sign in to comment.