mig-schema-table 5.0.13 → 5.0.15
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.
|
@@ -5,7 +5,6 @@ import { InputHTMLAttributes } from 'react';
|
|
|
5
5
|
import { JSX } from 'react/jsx-runtime';
|
|
6
6
|
import { oas31 } from 'openapi3-ts';
|
|
7
7
|
import { SetStateAction } from 'react';
|
|
8
|
-
import { VariableSizeGrid } from 'react-window';
|
|
9
8
|
import { VariableSizeListProps } from 'react-window';
|
|
10
9
|
|
|
11
10
|
export declare const DEFAULT_DATE_FORMAT = "dd MMM yyyy";
|
|
@@ -68,6 +67,11 @@ export declare interface IRenderData {
|
|
|
68
67
|
[key: string]: string;
|
|
69
68
|
}
|
|
70
69
|
|
|
70
|
+
export declare interface ISchemaTable {
|
|
71
|
+
getFilteredSortedData: () => IRenderData[] | undefined;
|
|
72
|
+
scrollToIndex: (index: number) => void;
|
|
73
|
+
}
|
|
74
|
+
|
|
71
75
|
export declare interface ISchemaTableProps<T> {
|
|
72
76
|
Heading?: default_2.ComponentType<VariableSizeListProps & {
|
|
73
77
|
setFilterSortColumn?: (sortColumn: string, sortAsc: boolean) => void;
|
|
@@ -94,7 +98,7 @@ export declare interface ISchemaTableProps<T> {
|
|
|
94
98
|
getRowClassName?: (rowData: T, dataIndex: number, filteredSortedData: IRenderData[]) => string;
|
|
95
99
|
getRowSelected?: (rowData: T, dataIndex: number) => boolean;
|
|
96
100
|
getSearchQueryFilterResult?: (rowData: T, searchQuery: string) => boolean;
|
|
97
|
-
infiniteLoaderRef?: default_2.
|
|
101
|
+
infiniteLoaderRef?: default_2.RefObject<default_3>;
|
|
98
102
|
isColumnFilterable?: boolean;
|
|
99
103
|
isExportable?: boolean;
|
|
100
104
|
isResizable?: boolean;
|
|
@@ -114,17 +118,12 @@ export declare interface ISchemaTableProps<T> {
|
|
|
114
118
|
translate?: (key: string, ...args: Array<string | number>) => string;
|
|
115
119
|
useFilterStateHash?: boolean;
|
|
116
120
|
width?: number;
|
|
117
|
-
variableSizeGridRef?: default_2.RefObject<VariableSizeGrid | null>;
|
|
118
121
|
loadMoreItems?: (startIndex: number, stopIndex: number) => void | Promise<void>;
|
|
119
122
|
itemCount?: number;
|
|
120
123
|
displayTimezone?: "Europe/Amsterdam" | "Asia/Jakarta";
|
|
121
124
|
autoRender?: boolean;
|
|
122
125
|
}
|
|
123
126
|
|
|
124
|
-
export declare interface ISchemaTableRef {
|
|
125
|
-
getFilteredSortedData: () => IRenderData[] | undefined;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
127
|
export declare interface ITableDataState {
|
|
129
128
|
columnFilterMap: IColumnFilterMap;
|
|
130
129
|
searchQuery: string;
|
|
@@ -152,7 +151,7 @@ export declare const RESIZER_WIDTH = 3;
|
|
|
152
151
|
export declare const SchemaTable: typeof SchemaTable_2;
|
|
153
152
|
|
|
154
153
|
declare const SchemaTable_2: <T>(props: ISchemaTableProps<T> & {
|
|
155
|
-
ref?: default_2.Ref<
|
|
154
|
+
ref?: default_2.Ref<ISchemaTable>;
|
|
156
155
|
}) => default_2.ReactElement;
|
|
157
156
|
|
|
158
157
|
export declare const Th: typeof Th_2;
|