mig-schema-table 4.0.20 → 4.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.
|
@@ -15,6 +15,9 @@ export interface IGetDataProps {
|
|
|
15
15
|
interface IColumnFilterMap {
|
|
16
16
|
[propName: string]: TColumnFilterValue;
|
|
17
17
|
}
|
|
18
|
+
export interface ICustomElementProps {
|
|
19
|
+
renderData?: IRenderData[];
|
|
20
|
+
}
|
|
18
21
|
export interface ISchemaTableProps<T> {
|
|
19
22
|
Heading?: React.FC<VariableSizeListProps & {
|
|
20
23
|
setSortAsc: Dispatch<SetStateAction<boolean>>;
|
|
@@ -27,7 +30,7 @@ export interface ISchemaTableProps<T> {
|
|
|
27
30
|
config?: {
|
|
28
31
|
[propName: string]: IColumnConfig<T>;
|
|
29
32
|
};
|
|
30
|
-
|
|
33
|
+
CustomElement?: React.ComponentType<ICustomElementProps>;
|
|
31
34
|
data: T[] | ((getDataProps: IGetDataProps) => Promise<T[]>);
|
|
32
35
|
defaultColumnFilters?: IColumnFilterMap;
|
|
33
36
|
defaultSortAsc?: boolean;
|
|
@@ -69,5 +72,5 @@ export interface INumberColumnFilterValue {
|
|
|
69
72
|
filterEmpty?: true;
|
|
70
73
|
}
|
|
71
74
|
export type TColumnFilterValue = string | boolean | number | IDateColumnFilterValue | INumberColumnFilterValue | null;
|
|
72
|
-
declare const MemoizedSchemaTable: <T>({ Heading, checkedIndexes, config,
|
|
75
|
+
declare const MemoizedSchemaTable: <T>({ Heading, checkedIndexes, config, CustomElement, data, defaultColumnFilters, defaultSortAsc, defaultSortColumn, disabledCheckedIndexes, enableAutoFocus, enableRowCounter, getRowClassName, getRowSelected, isColumnFilterable, isExportable, isResizable, isSearchable, isSortable, maxHeight, onCheckedIndexesChange, onRowClick, onRowDoubleClick, onSearchEnter, rowHeight, schema, searchPlaceholder, settingsStorageKey, style, translate, useFilterStateHash, width, tableRef, }: ISchemaTableProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
73
76
|
export default MemoizedSchemaTable;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as $t, l as Ve } from "./index-
|
|
1
|
+
import { c as $t, l as Ve } from "./index-Cuev6T_m.js";
|
|
2
2
|
function Fe(ye) {
|
|
3
3
|
throw new Error('Could not dynamically require "' + ye + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
4
4
|
}
|