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