@redsift/table 10.2.0 → 10.3.0-muiv5-alpha.1
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.
- package/index.d.ts +9 -8
- package/index.js +463 -351
- package/index.js.map +1 -1
- package/package.json +4 -4
package/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as _mui_x_data_grid_pro from '@mui/x-data-grid-pro';
|
|
2
2
|
import { GridFilterItem, GridCellParams, GridFilterOperator, GridFilterInputMultipleValue, DataGridProProps, GridFilterModel, GridToolbarExportProps, GridToolbarFilterButtonProps, GridToolbarColumnsButton, GridToolbarDensitySelector } from '@mui/x-data-grid-pro';
|
|
3
|
-
export
|
|
4
|
-
export { GridAlignment, GridColDef, GridFilterItem, GridFilterModel, getGridBooleanOperators, getGridDateOperators, getGridSingleSelectOperators } from '@mui/x-data-grid-pro';
|
|
3
|
+
export { GridAlignment, GridColDef, GridColumns, GridFilterItem, GridFilterModel, GridSelectionModel, getGridBooleanOperators, getGridDateOperators, getGridSingleSelectOperators } from '@mui/x-data-grid-pro';
|
|
5
4
|
import { Theme, Comp, IconProps, NotificationsColorPalette, ProductColorPalette, ShieldVariant } from '@redsift/design-system';
|
|
6
5
|
import React, { ReactNode, ComponentProps, RefObject } from 'react';
|
|
7
6
|
import { TablePaginationProps } from '@mui/material';
|
|
@@ -11,7 +10,7 @@ declare const DETAIL_PANEL_TOGGLE_COL_DEF: _mui_x_data_grid_pro.GridColDef<any,
|
|
|
11
10
|
declare const IS_BETWEEN: {
|
|
12
11
|
label: string;
|
|
13
12
|
value: string;
|
|
14
|
-
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams
|
|
13
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
15
14
|
InputComponent: (props: any) => JSX.Element;
|
|
16
15
|
};
|
|
17
16
|
|
|
@@ -79,9 +78,11 @@ interface DataGridProps extends Partial<Pick<DataGridProProps, 'rows'>>, Omit<Da
|
|
|
79
78
|
paginationProps?: Omit<TablePaginationProps, 'component' | 'count' | 'page' | 'onPageChange' | 'rowsPerPage' | 'onRowsPerPageChange' | 'rowsPerPageOptions' | 'paginationMode'>;
|
|
80
79
|
/** Theme. */
|
|
81
80
|
theme?: Theme;
|
|
81
|
+
onSelectionStatusChange?: (newSelectionStatus: SelectionStatusType) => void;
|
|
82
82
|
}
|
|
83
|
+
type SelectionStatusType = 'page' | 'table' | 'other' | 'none';
|
|
83
84
|
type SelectionStatus = {
|
|
84
|
-
type:
|
|
85
|
+
type: SelectionStatusType;
|
|
85
86
|
numberOfSelectedRows: number;
|
|
86
87
|
numberOfSelectedRowsInPage?: number;
|
|
87
88
|
page?: number;
|
|
@@ -96,12 +97,12 @@ type StyledDataGridProps = {
|
|
|
96
97
|
declare const DataGrid: Comp<DataGridProps, HTMLDivElement>;
|
|
97
98
|
|
|
98
99
|
interface CompletionResponseItem {
|
|
99
|
-
|
|
100
|
-
|
|
100
|
+
columnField: string;
|
|
101
|
+
operatorValue: string;
|
|
101
102
|
value?: string;
|
|
102
103
|
}
|
|
103
104
|
type CompletionResponse = {
|
|
104
|
-
|
|
105
|
+
linkOperator: 'and' | 'or';
|
|
105
106
|
items: CompletionResponseItem[];
|
|
106
107
|
};
|
|
107
108
|
interface LocaleText {
|
|
@@ -216,4 +217,4 @@ interface TextCellProps extends ComponentProps<'div'> {
|
|
|
216
217
|
*/
|
|
217
218
|
declare const TextCell: Comp<TextCellProps, HTMLDivElement>;
|
|
218
219
|
|
|
219
|
-
export { CONTAINS_ANY_OF, CONTAINS_ANY_OF_I, CompletionResponse, DEFAULT_OPERATORS, DETAIL_PANEL_TOGGLE_COL_DEF, DataGrid, DataGridProps, ENDS_WITH_ANY_OF, FilterConfig, GridToolbarFilterSemanticField, GridToolbarFilterSemanticFieldProps, IS_ANY_OF, IS_BETWEEN, IS_NOT_ANY_OF, STARTS_WITH_ANY_OF, SelectionStatus, StyledDataGridProps, TextCell, Toolbar, getCompletion, getGridNumericOperators, getGridStringArrayOperators, getGridStringOperators };
|
|
220
|
+
export { CONTAINS_ANY_OF, CONTAINS_ANY_OF_I, CompletionResponse, DEFAULT_OPERATORS, DETAIL_PANEL_TOGGLE_COL_DEF, DataGrid, DataGridProps, ENDS_WITH_ANY_OF, FilterConfig, GridToolbarFilterSemanticField, GridToolbarFilterSemanticFieldProps, IS_ANY_OF, IS_BETWEEN, IS_NOT_ANY_OF, STARTS_WITH_ANY_OF, SelectionStatus, SelectionStatusType, StyledDataGridProps, TextCell, Toolbar, getCompletion, getGridNumericOperators, getGridStringArrayOperators, getGridStringOperators };
|