infinity-forge
Version:
32 lines (31 loc) • 860 B
TypeScript
import { IUseTableProps } from '../../interfaces.js';
type colunm = keyof any;
interface IShowHiden {
text: string;
filterBased: colunm;
disable: string[];
enable: string[];
}
import { InputPropsDynamic, List, Pagination } from '../../../../../../ui/index.js';
export type Filter<T = any> = {
outsideFilters?: boolean;
} & InputPropsDynamic<T>;
export type TableConfiguration<T> = {
columns: {
data: string;
options: null;
orderable: boolean;
searchable: boolean;
}[];
filters: Filter<T>[];
exports?: ExportTable[] | null;
};
export type ExportTable = {
label: string;
type: 'pdf' | 'csv' | 'xlsx';
};
type ITableProps<T> = {
isFetching: boolean;
tableInformations?: TableConfiguration<T> & List<any> & Pagination;
} & IUseTableProps;
export type { ITableProps, IShowHiden };