hplx-react-elements-dev 1.2.27 → 1.2.29
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.
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const PinnableValues: {
|
|
3
|
-
readonly Left: "left";
|
|
4
|
-
readonly Right: "right";
|
|
5
|
-
};
|
|
6
2
|
export interface ReusableTableProps {
|
|
7
3
|
tableRef?: React.MutableRefObject<null>;
|
|
8
4
|
columns: ITableColDef[];
|
|
@@ -18,6 +14,7 @@ export interface ReusableTableProps {
|
|
|
18
14
|
displayHeaderName?: string;
|
|
19
15
|
tableClassesToOverride?: string;
|
|
20
16
|
headerRowClasses?: string;
|
|
17
|
+
tableBodyClassesToOverride?: string;
|
|
21
18
|
hideHeader?: boolean;
|
|
22
19
|
}
|
|
23
20
|
export interface ITableColDef {
|
|
@@ -30,11 +27,14 @@ export interface ITableColDef {
|
|
|
30
27
|
maxWidth?: number;
|
|
31
28
|
minWidth?: number;
|
|
32
29
|
pinned?: typeof PinnableValues[keyof typeof PinnableValues];
|
|
33
|
-
truncateCell?: boolean;
|
|
34
30
|
renderCell?: (value: unknown, row: object, column: ITableColDef, rowIndex: number) => React.ReactNode;
|
|
35
31
|
renderHeader?: (params: any) => React.ReactNode;
|
|
36
32
|
valueFormatter?: (value: unknown, row: object, column: ITableColDef, rowIndex: number) => React.ReactNode;
|
|
37
33
|
}
|
|
34
|
+
export declare const PinnableValues: {
|
|
35
|
+
Left: string;
|
|
36
|
+
Right: string;
|
|
37
|
+
};
|
|
38
38
|
export interface ITableCellProps {
|
|
39
39
|
children: React.ReactNode;
|
|
40
40
|
isHeaderCell?: boolean;
|
|
@@ -5,6 +5,7 @@ interface TableContextProps {
|
|
|
5
5
|
rowsData: Array<object>;
|
|
6
6
|
allColumns: ITableColDef[];
|
|
7
7
|
headerRowClasses: string;
|
|
8
|
+
tableBodyClassesToOverride: string;
|
|
8
9
|
hideHeader: boolean;
|
|
9
10
|
leftPinnedColumns: ITableColDef[];
|
|
10
11
|
rightPinnedColumns: ITableColDef[];
|
|
@@ -16,11 +17,12 @@ interface TableContextProps {
|
|
|
16
17
|
onPaginationClick: ((activePage: number) => void) | undefined;
|
|
17
18
|
}
|
|
18
19
|
export declare const useTableContext: () => TableContextProps;
|
|
19
|
-
export declare const TableProvider: ({ children, initialColumns, rowData, headerRowClasses, hideHeader, paginationProps, onPaginationClick, }: {
|
|
20
|
+
export declare const TableProvider: ({ children, initialColumns, rowData, headerRowClasses, tableBodyClassesToOverride, hideHeader, paginationProps, onPaginationClick, }: {
|
|
20
21
|
children: React.ReactNode;
|
|
21
22
|
initialColumns: Array<ITableColDef>;
|
|
22
23
|
rowData: Array<object>;
|
|
23
24
|
headerRowClasses: string;
|
|
25
|
+
tableBodyClassesToOverride: string;
|
|
24
26
|
hideHeader: boolean;
|
|
25
27
|
paginationProps: IPaginationProps;
|
|
26
28
|
onPaginationClick: ((activePage: number) => void) | undefined;
|