@evoke-platform/ui-components 1.0.0-dev.156 → 1.0.0-dev.157
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.
@@ -1,5 +1,5 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import { GridValidRowModel, DataGridProps as MuiDataGridProps } from '@mui/x-data-grid';
|
2
|
+
import { GridSortItem, GridValidRowModel, DataGridProps as MuiDataGridProps } from '@mui/x-data-grid';
|
3
3
|
import { EmptyContentSelectOptions } from './EmptyContent';
|
4
4
|
export declare type GridAction = {
|
5
5
|
label: string;
|
@@ -8,7 +8,7 @@ export declare type GridAction = {
|
|
8
8
|
export declare type BuilderGridProps<T extends GridValidRowModel> = MuiDataGridProps<T> & {
|
9
9
|
action?: GridAction;
|
10
10
|
item?: string;
|
11
|
-
initialSort?:
|
11
|
+
initialSort?: GridSortItem;
|
12
12
|
emptyContentSelectOptions?: EmptyContentSelectOptions;
|
13
13
|
};
|
14
14
|
declare const BuilderGrid: <T extends GridValidRowModel>(props: BuilderGridProps<T>) => JSX.Element;
|
@@ -10,7 +10,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
10
10
|
return t;
|
11
11
|
};
|
12
12
|
import { Box } from '@mui/material';
|
13
|
-
import { DataGrid as MuiDataGrid } from '@mui/x-data-grid';
|
13
|
+
import { DataGrid as MuiDataGrid, } from '@mui/x-data-grid';
|
14
14
|
import React, { useMemo, useState } from 'react';
|
15
15
|
import UIThemeProvider from '../../../theme';
|
16
16
|
import BuilderGridToolbar from './BuilderGridToolbar';
|
@@ -60,7 +60,7 @@ const BuilderGrid = (props) => {
|
|
60
60
|
marginLeft: '4px',
|
61
61
|
}, height: 'calc(100vh - 240px)' }, rest.sx), getRowId: (row) => row.id, disableColumnMenu: true, initialState: {
|
62
62
|
sorting: {
|
63
|
-
sortModel: initialSort ? [
|
63
|
+
sortModel: initialSort ? [initialSort] : [],
|
64
64
|
},
|
65
65
|
}, componentsProps: {
|
66
66
|
panel: {
|