mig-schema-table 5.0.13 → 5.0.14

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.
@@ -68,6 +68,11 @@ export declare interface IRenderData {
68
68
  [key: string]: string;
69
69
  }
70
70
 
71
+ export declare interface ISchemaTable {
72
+ getFilteredSortedData: () => IRenderData[] | undefined;
73
+ scrollToIndex: (index: number) => void;
74
+ }
75
+
71
76
  export declare interface ISchemaTableProps<T> {
72
77
  Heading?: default_2.ComponentType<VariableSizeListProps & {
73
78
  setFilterSortColumn?: (sortColumn: string, sortAsc: boolean) => void;
@@ -94,7 +99,7 @@ export declare interface ISchemaTableProps<T> {
94
99
  getRowClassName?: (rowData: T, dataIndex: number, filteredSortedData: IRenderData[]) => string;
95
100
  getRowSelected?: (rowData: T, dataIndex: number) => boolean;
96
101
  getSearchQueryFilterResult?: (rowData: T, searchQuery: string) => boolean;
97
- infiniteLoaderRef?: default_2.LegacyRef<default_3>;
102
+ infiniteLoaderRef?: default_2.RefObject<default_3>;
98
103
  isColumnFilterable?: boolean;
99
104
  isExportable?: boolean;
100
105
  isResizable?: boolean;
@@ -121,10 +126,6 @@ export declare interface ISchemaTableProps<T> {
121
126
  autoRender?: boolean;
122
127
  }
123
128
 
124
- export declare interface ISchemaTableRef {
125
- getFilteredSortedData: () => IRenderData[] | undefined;
126
- }
127
-
128
129
  export declare interface ITableDataState {
129
130
  columnFilterMap: IColumnFilterMap;
130
131
  searchQuery: string;
@@ -152,7 +153,7 @@ export declare const RESIZER_WIDTH = 3;
152
153
  export declare const SchemaTable: typeof SchemaTable_2;
153
154
 
154
155
  declare const SchemaTable_2: <T>(props: ISchemaTableProps<T> & {
155
- ref?: default_2.Ref<ISchemaTableRef>;
156
+ ref?: default_2.Ref<ISchemaTable>;
156
157
  }) => default_2.ReactElement;
157
158
 
158
159
  export declare const Th: typeof Th_2;