@redsift/table 10.8.2 → 11.0.0-muiv5-alpha.0
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 +43 -8
- package/index.js +1331 -280
- package/index.js.map +1 -1
- package/package.json +6 -6
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
|
-
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';
|
|
2
|
+
import { GridFilterItem, GridCellParams, GridFilterOperator, GridFilterInputValue, GridFilterInputMultipleValue, DataGridProProps, GridPinnedColumns, GridFilterModel, GridToolbarExportProps, GridToolbarFilterButtonProps, GridToolbarColumnsButton, GridToolbarDensitySelector } 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,12 +10,26 @@ 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
|
|
|
18
17
|
declare const getGridNumericOperators: () => GridFilterOperator<any, number | string | null, any>[];
|
|
19
18
|
|
|
19
|
+
declare const DOES_NOT_EQUAL: {
|
|
20
|
+
label: string;
|
|
21
|
+
value: string;
|
|
22
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
23
|
+
InputComponent: typeof GridFilterInputValue;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
declare const DOES_NOT_CONTAIN: {
|
|
27
|
+
label: string;
|
|
28
|
+
value: string;
|
|
29
|
+
getApplyFilterFn: (filterItem: GridFilterItem) => ((params: GridCellParams) => boolean) | null;
|
|
30
|
+
InputComponent: typeof GridFilterInputValue;
|
|
31
|
+
};
|
|
32
|
+
|
|
20
33
|
declare const getGridStringOperators: () => GridFilterOperator<any, number | string | null, any>[];
|
|
21
34
|
|
|
22
35
|
declare const CONTAINS_ANY_OF: {
|
|
@@ -62,6 +75,18 @@ declare const STARTS_WITH_ANY_OF: {
|
|
|
62
75
|
|
|
63
76
|
declare const getGridStringArrayOperators: () => GridFilterOperator<any, number | string | null, any>[];
|
|
64
77
|
|
|
78
|
+
declare const operatorList: {
|
|
79
|
+
string: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
|
|
80
|
+
number: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
|
|
81
|
+
boolean: _mui_x_data_grid_pro.GridFilterOperator<any, boolean | null, any>[];
|
|
82
|
+
date: _mui_x_data_grid_pro.GridFilterOperator<any, string | Date, any>[];
|
|
83
|
+
dateTime: _mui_x_data_grid_pro.GridFilterOperator<any, string | Date, any>[];
|
|
84
|
+
singleSelect: _mui_x_data_grid_pro.GridFilterOperator<any, any, any>[];
|
|
85
|
+
rsString: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
|
|
86
|
+
rsNumber: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
|
|
87
|
+
rsStringArray: _mui_x_data_grid_pro.GridFilterOperator<any, string | number | null, any>[];
|
|
88
|
+
};
|
|
89
|
+
|
|
65
90
|
declare function getCompletion(text: string, role: string, openai_api_key: string | undefined, model?: string): Promise<string>;
|
|
66
91
|
|
|
67
92
|
interface DataGridProps extends Partial<Pick<DataGridProProps, 'rows'>>, Omit<DataGridProProps, 'rows'> {
|
|
@@ -79,6 +104,16 @@ interface DataGridProps extends Partial<Pick<DataGridProProps, 'rows'>>, Omit<Da
|
|
|
79
104
|
paginationProps?: Omit<TablePaginationProps, 'component' | 'count' | 'page' | 'onPageChange' | 'rowsPerPage' | 'onRowsPerPageChange' | 'rowsPerPageOptions' | 'paginationMode'>;
|
|
80
105
|
/** Theme. */
|
|
81
106
|
theme?: Theme;
|
|
107
|
+
/** If set, the DataGrid configuration will be stored and synced in the URL and the local storage. useRouter prop should be defined. */
|
|
108
|
+
isStateful?: boolean;
|
|
109
|
+
/** Hook returning pathname, search params and a method to update query params. Used in stateful mode only. */
|
|
110
|
+
useRouter?: () => {
|
|
111
|
+
pathname: string;
|
|
112
|
+
search: string;
|
|
113
|
+
historyReplace: (newSearch: string) => void;
|
|
114
|
+
};
|
|
115
|
+
/** Pinned custom columns. */
|
|
116
|
+
pinnedCustomColumns?: Required<GridPinnedColumns>;
|
|
82
117
|
}
|
|
83
118
|
type SelectionStatus = {
|
|
84
119
|
type: 'page' | 'table' | 'other' | 'none';
|
|
@@ -96,12 +131,12 @@ type StyledDataGridProps = {
|
|
|
96
131
|
declare const DataGrid: Comp<DataGridProps, HTMLDivElement>;
|
|
97
132
|
|
|
98
133
|
interface CompletionResponseItem {
|
|
99
|
-
|
|
100
|
-
|
|
134
|
+
columnField: string;
|
|
135
|
+
operatorValue: string;
|
|
101
136
|
value?: string;
|
|
102
137
|
}
|
|
103
138
|
type CompletionResponse = {
|
|
104
|
-
|
|
139
|
+
linkOperator: 'and' | 'or';
|
|
105
140
|
items: CompletionResponseItem[];
|
|
106
141
|
};
|
|
107
142
|
interface LocaleText {
|
|
@@ -216,4 +251,4 @@ interface TextCellProps extends ComponentProps<'div'> {
|
|
|
216
251
|
*/
|
|
217
252
|
declare const TextCell: Comp<TextCellProps, HTMLDivElement>;
|
|
218
253
|
|
|
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 };
|
|
254
|
+
export { CONTAINS_ANY_OF, CONTAINS_ANY_OF_I, CompletionResponse, DEFAULT_OPERATORS, DETAIL_PANEL_TOGGLE_COL_DEF, DOES_NOT_CONTAIN, DOES_NOT_EQUAL, 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, operatorList };
|