@oc-digital/react-component-library 8.15.2-beta.1 → 8.16.0-beta.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.
|
@@ -5,26 +5,22 @@ export type IAlignment = "left" | "right" | "inherit" | "center" | "justify";
|
|
|
5
5
|
export type RowData = {
|
|
6
6
|
[key: string]: any;
|
|
7
7
|
};
|
|
8
|
-
|
|
8
|
+
type IBaseTableHeader = {
|
|
9
9
|
Header: string | JSX.Element;
|
|
10
|
-
|
|
10
|
+
stickyColumn?: boolean;
|
|
11
11
|
textAlign?: IAlignment;
|
|
12
|
-
|
|
12
|
+
};
|
|
13
|
+
export type ITableHeader = IBaseTableHeader & {
|
|
14
|
+
accessor: string;
|
|
13
15
|
shadedHeader?: boolean;
|
|
14
16
|
linkedStatusColumn?: string;
|
|
15
17
|
};
|
|
16
|
-
export type ITableHeaderComplexAccessor = {
|
|
17
|
-
Header: string | JSX.Element;
|
|
18
|
+
export type ITableHeaderComplexAccessor = IBaseTableHeader & {
|
|
18
19
|
id: string;
|
|
19
20
|
accessor: (originalRow: any, rowIndex: any) => any;
|
|
20
|
-
textAlign?: IAlignment;
|
|
21
|
-
stickyCell?: boolean;
|
|
22
21
|
shadedHeader?: boolean;
|
|
23
22
|
};
|
|
24
|
-
export type IColumnsTableHeader = {
|
|
25
|
-
Header: string | JSX.Element;
|
|
26
|
-
textAlign?: IAlignment;
|
|
27
|
-
stickyCell?: boolean;
|
|
23
|
+
export type IColumnsTableHeader = IBaseTableHeader & {
|
|
28
24
|
shadedHeaderGroup?: boolean;
|
|
29
25
|
accessor?: any;
|
|
30
26
|
columns: {
|
|
@@ -35,10 +31,7 @@ export type IColumnsTableHeader = {
|
|
|
35
31
|
linkedStatusColumn?: string;
|
|
36
32
|
}[];
|
|
37
33
|
};
|
|
38
|
-
export type IColumnsTableHeaderComplexAccessor = {
|
|
39
|
-
Header: string | JSX.Element;
|
|
40
|
-
textAlign?: IAlignment;
|
|
41
|
-
stickyCell?: boolean;
|
|
34
|
+
export type IColumnsTableHeaderComplexAccessor = IBaseTableHeader & {
|
|
42
35
|
shadedHeaderGroup?: boolean;
|
|
43
36
|
accessor?: any;
|
|
44
37
|
columns: {
|
|
@@ -114,6 +107,7 @@ export interface IEditableTableProps {
|
|
|
114
107
|
disableHeaderSelect?: boolean;
|
|
115
108
|
defaultSortMeta?: SortMeta | null;
|
|
116
109
|
shadedHeaderLeadingColumns?: 1 | 2;
|
|
110
|
+
freezeHeader?: boolean;
|
|
117
111
|
}
|
|
118
112
|
export interface IEditableTableRef {
|
|
119
113
|
setValue: (rowIndex: number, columnId: string, value: TableCellValues) => void;
|
|
@@ -159,6 +153,7 @@ export interface ITableContentProps extends Pick<IEditableTableProps, "disabled"
|
|
|
159
153
|
setSortMeta: React.Dispatch<React.SetStateAction<SortMeta | null>>;
|
|
160
154
|
allColumns: ColumnInstance<RowData>[];
|
|
161
155
|
shadedHeaderLeadingColumns?: 1 | 2;
|
|
156
|
+
freezeHeader: boolean;
|
|
162
157
|
}
|
|
163
158
|
export interface IGlobalFilterProps {
|
|
164
159
|
preGlobalFilteredRows: RowData[];
|