@redsift/table 9.3.2 → 9.3.3-muiv5
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 +24 -11
- package/index.js +161 -117
- 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 { 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
|
|
|
@@ -85,16 +84,24 @@ type StyledDataGridProps = {
|
|
|
85
84
|
|
|
86
85
|
declare const DataGrid: Comp<DataGridProps, HTMLDivElement>;
|
|
87
86
|
|
|
87
|
+
interface CompletionResponseItem {
|
|
88
|
+
columnField: string;
|
|
89
|
+
operatorValue: string;
|
|
90
|
+
value?: string;
|
|
91
|
+
}
|
|
88
92
|
type CompletionResponse = {
|
|
89
93
|
linkOperator: 'and' | 'or';
|
|
90
|
-
items: [
|
|
91
|
-
{
|
|
92
|
-
columnField: string;
|
|
93
|
-
operatorValue: string;
|
|
94
|
-
value?: string;
|
|
95
|
-
}
|
|
96
|
-
];
|
|
94
|
+
items: CompletionResponseItem[];
|
|
97
95
|
};
|
|
96
|
+
interface LocaleText {
|
|
97
|
+
textLabel?: string;
|
|
98
|
+
textPlaceholder?: string;
|
|
99
|
+
buttonAriaLabel?: string;
|
|
100
|
+
buttonText?: string;
|
|
101
|
+
powerText?: string;
|
|
102
|
+
powerTooltipContent?: string;
|
|
103
|
+
errorText?: string;
|
|
104
|
+
}
|
|
98
105
|
interface FilterConfig {
|
|
99
106
|
columns: object[];
|
|
100
107
|
typeOperators: object;
|
|
@@ -105,6 +112,11 @@ interface FilterConfig {
|
|
|
105
112
|
interface GridToolbarFilterSemanticFieldProps extends ComponentProps<'form'> {
|
|
106
113
|
nlpFilterConfig: FilterConfig;
|
|
107
114
|
onFilterModelChange: (filterModel: GridFilterModel) => void;
|
|
115
|
+
dateFormat?: string;
|
|
116
|
+
defaultModel?: string;
|
|
117
|
+
defaultFilter?: CompletionResponse;
|
|
118
|
+
disablePower?: boolean;
|
|
119
|
+
localeText?: LocaleText;
|
|
108
120
|
}
|
|
109
121
|
|
|
110
122
|
declare const DEFAULT_OPERATORS: {
|
|
@@ -120,6 +132,7 @@ declare const GridToolbarFilterSemanticField: Comp<GridToolbarFilterSemanticFiel
|
|
|
120
132
|
|
|
121
133
|
type GridToolbarColumnsProps = Omit<typeof GridToolbarColumnsButton, 'ref'>;
|
|
122
134
|
type GridToolbarDensityProps = Omit<typeof GridToolbarDensitySelector, 'ref'>;
|
|
135
|
+
type GridToolbarFilterSemanticProps = Omit<GridToolbarFilterSemanticFieldProps, 'ref'>;
|
|
123
136
|
interface ToolbarProps {
|
|
124
137
|
/** Props to forward to the column button. */
|
|
125
138
|
columnsButtonProps?: GridToolbarColumnsProps;
|
|
@@ -146,8 +159,8 @@ interface ToolbarProps {
|
|
|
146
159
|
/** Whether the filter button is displayed or not. */
|
|
147
160
|
hasFilterButton?: boolean;
|
|
148
161
|
/** Configuration object for NLP filter. undefined if disabled. */
|
|
149
|
-
nlpFilterConfig?: FilterConfig;
|
|
150
162
|
onFilterModelChange?: (filterModel: GridFilterModel) => void;
|
|
163
|
+
semanticFilterProps?: GridToolbarFilterSemanticProps;
|
|
151
164
|
}
|
|
152
165
|
|
|
153
166
|
/**
|