@redsift/table 9.1.0 → 9.2.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 +15 -1
- package/index.js +4733 -661
- package/index.js.map +1 -1
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as _mui_x_data_grid_pro from '@mui/x-data-grid-pro';
|
|
2
|
-
import { GridFilterItem, GridCellParams, GridFilterOperator, GridFilterInputMultipleValue, DataGridProProps, GridToolbarExportProps, GridToolbarFilterButtonProps, GridToolbarColumnsButton, GridToolbarDensitySelector } from '@mui/x-data-grid-pro';
|
|
2
|
+
import { GridFilterItem, GridCellParams, GridFilterOperator, GridFilterInputMultipleValue, DataGridProProps, GridToolbarExportProps, GridToolbarFilterButtonProps, GridFilterModel, GridToolbarColumnsButton, GridToolbarDensitySelector } from '@mui/x-data-grid-pro';
|
|
3
3
|
export * from '@mui/x-data-grid-pro';
|
|
4
|
+
export { GridAlignment, GridColDef, GridFilterItem, GridFilterModel, getGridBooleanOperators, getGridDateOperators, getGridSingleSelectOperators } from '@mui/x-data-grid-pro';
|
|
4
5
|
import { Comp, IconProps, NotificationsColorPalette, ProductColorPalette, ShieldVariant } from '@redsift/design-system';
|
|
5
6
|
import React, { ReactNode, RefObject, ComponentProps } from 'react';
|
|
6
7
|
|
|
@@ -63,13 +64,23 @@ interface DataGridProps extends Partial<Pick<DataGridProProps, 'rows'>>, Omit<Da
|
|
|
63
64
|
toolbar?: ReactNode;
|
|
64
65
|
/** Whether the Toolbar is displayed or not. */
|
|
65
66
|
hideToolbar?: boolean;
|
|
67
|
+
/** Indicates how to display pagination. */
|
|
68
|
+
paginationPlacement?: 'top' | 'bottom' | 'both' | 'none';
|
|
66
69
|
}
|
|
70
|
+
|
|
67
71
|
type StyledDataGridProps = {
|
|
68
72
|
$height?: string;
|
|
69
73
|
};
|
|
70
74
|
|
|
71
75
|
declare const DataGrid: Comp<DataGridProps, HTMLDivElement>;
|
|
72
76
|
|
|
77
|
+
interface FilterConfig {
|
|
78
|
+
columns: object[];
|
|
79
|
+
typeOperators: object;
|
|
80
|
+
notes: string;
|
|
81
|
+
openaiApiKey: string | undefined;
|
|
82
|
+
}
|
|
83
|
+
|
|
73
84
|
type GridToolbarColumnsProps = Omit<typeof GridToolbarColumnsButton, 'ref'>;
|
|
74
85
|
type GridToolbarDensityProps = Omit<typeof GridToolbarDensitySelector, 'ref'>;
|
|
75
86
|
interface ToolbarProps {
|
|
@@ -97,6 +108,9 @@ interface ToolbarProps {
|
|
|
97
108
|
hasExportButton?: boolean;
|
|
98
109
|
/** Whether the filter button is displayed or not. */
|
|
99
110
|
hasFilterButton?: boolean;
|
|
111
|
+
/** Configuration object for NLP filter. undefined if disabled. */
|
|
112
|
+
nlpFilterConfig?: FilterConfig;
|
|
113
|
+
onFilterModelChange?: (filterModel: GridFilterModel) => void;
|
|
100
114
|
}
|
|
101
115
|
|
|
102
116
|
/**
|