@atlaskit/dynamic-table 14.3.2 → 14.4.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.
- package/CHANGELOG.md +15 -0
- package/dist/cjs/components/LoadingContainerAdvanced.js +3 -3
- package/dist/cjs/components/Stateless.js +1 -1
- package/dist/cjs/components/TableHeadCell.js +18 -48
- package/dist/cjs/components/rankable/TableCell.js +4 -4
- package/dist/cjs/components/rankable/TableHeadCell.js +2 -4
- package/dist/cjs/components/rankable/TableRow.js +3 -3
- package/dist/cjs/styled/DynamicTable.js +80 -14
- package/dist/cjs/styled/EmptyBody.js +23 -8
- package/dist/cjs/styled/LoadingContainer.js +41 -8
- package/dist/cjs/styled/LoadingContainerAdvanced.js +42 -8
- package/dist/cjs/styled/TableCell.js +21 -7
- package/dist/cjs/styled/TableHead.js +161 -25
- package/dist/cjs/styled/TableRow.js +36 -18
- package/dist/cjs/styled/constants.js +33 -38
- package/dist/cjs/styled/rankable/RowPlaceholder.js +11 -4
- package/dist/cjs/styled/rankable/TableCell.js +18 -13
- package/dist/cjs/styled/rankable/TableRow.js +32 -20
- package/dist/cjs/theme.js +20 -18
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/LoadingContainerAdvanced.js +2 -4
- package/dist/es2019/components/Stateless.js +1 -1
- package/dist/es2019/components/TableHeadCell.js +18 -22
- package/dist/es2019/components/rankable/TableCell.js +4 -4
- package/dist/es2019/components/rankable/TableHeadCell.js +1 -3
- package/dist/es2019/components/rankable/TableRow.js +3 -3
- package/dist/es2019/styled/DynamicTable.js +75 -26
- package/dist/es2019/styled/EmptyBody.js +21 -10
- package/dist/es2019/styled/LoadingContainer.js +39 -18
- package/dist/es2019/styled/LoadingContainerAdvanced.js +38 -20
- package/dist/es2019/styled/TableCell.js +20 -5
- package/dist/es2019/styled/TableHead.js +160 -33
- package/dist/es2019/styled/TableRow.js +34 -20
- package/dist/es2019/styled/constants.js +30 -115
- package/dist/es2019/styled/rankable/RowPlaceholder.js +10 -4
- package/dist/es2019/styled/rankable/TableCell.js +16 -9
- package/dist/es2019/styled/rankable/TableRow.js +32 -24
- package/dist/es2019/theme.js +19 -18
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/LoadingContainerAdvanced.js +3 -3
- package/dist/esm/components/Stateless.js +1 -1
- package/dist/esm/components/TableHeadCell.js +19 -47
- package/dist/esm/components/rankable/TableCell.js +4 -4
- package/dist/esm/components/rankable/TableHeadCell.js +2 -4
- package/dist/esm/components/rankable/TableRow.js +3 -3
- package/dist/esm/styled/DynamicTable.js +77 -9
- package/dist/esm/styled/EmptyBody.js +23 -7
- package/dist/esm/styled/LoadingContainer.js +40 -8
- package/dist/esm/styled/LoadingContainerAdvanced.js +41 -7
- package/dist/esm/styled/TableCell.js +21 -7
- package/dist/esm/styled/TableHead.js +160 -21
- package/dist/esm/styled/TableRow.js +36 -12
- package/dist/esm/styled/constants.js +28 -29
- package/dist/esm/styled/rankable/RowPlaceholder.js +11 -5
- package/dist/esm/styled/rankable/TableCell.js +18 -9
- package/dist/esm/styled/rankable/TableRow.js +31 -14
- package/dist/esm/theme.js +19 -18
- package/dist/esm/version.json +1 -1
- package/dist/types/components/Body.d.ts +21 -21
- package/dist/types/components/LoadingContainerAdvanced.d.ts +2 -2
- package/dist/types/components/Stateless.d.ts +3 -3
- package/dist/types/components/TableHeadCell.d.ts +4 -9
- package/dist/types/components/rankable/Body.d.ts +21 -21
- package/dist/types/components/rankable/TableHeadCell.d.ts +1 -1
- package/dist/types/components/rankable/TableRow.d.ts +3 -3
- package/dist/types/hoc/withDimensions.d.ts +2 -2
- package/dist/types/hoc/withSortedPageRows.d.ts +20 -20
- package/dist/types/styled/DynamicTable.d.ts +13 -6
- package/dist/types/styled/EmptyBody.d.ts +4 -3
- package/dist/types/styled/LoadingContainer.d.ts +8 -7
- package/dist/types/styled/LoadingContainerAdvanced.d.ts +5 -4
- package/dist/types/styled/TableCell.d.ts +3 -2
- package/dist/types/styled/TableHead.d.ts +8 -5
- package/dist/types/styled/TableRow.d.ts +7 -4
- package/dist/types/styled/constants.d.ts +13 -10
- package/dist/types/styled/rankable/RowPlaceholder.d.ts +3 -2
- package/dist/types/styled/rankable/TableCell.d.ts +8 -6
- package/dist/types/styled/rankable/TableRow.d.ts +9 -6
- package/dist/types/theme.d.ts +9 -9
- package/dist/types/types.d.ts +2 -2
- package/package.json +9 -3
|
@@ -8,12 +8,12 @@ interface Props extends WithSortedPageRowsProps {
|
|
|
8
8
|
testId?: string;
|
|
9
9
|
}
|
|
10
10
|
declare const _default: {
|
|
11
|
-
new (props: Readonly<Pick<Props & import("../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "
|
|
11
|
+
new (props: Readonly<Pick<Props & import("../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | "isTotalPagesControlledExternally" | "testId" | "highlightedRowIndex">>): {
|
|
12
12
|
state: {
|
|
13
13
|
pageRows: never[];
|
|
14
14
|
};
|
|
15
15
|
componentDidMount(): void;
|
|
16
|
-
componentDidUpdate(_prevProps: Pick<Props & import("../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "
|
|
16
|
+
componentDidUpdate(_prevProps: Pick<Props & import("../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | "isTotalPagesControlledExternally" | "testId" | "highlightedRowIndex">, prevState: {
|
|
17
17
|
pageRows: import("../types").RowType[];
|
|
18
18
|
}): void;
|
|
19
19
|
render(): JSX.Element;
|
|
@@ -22,7 +22,7 @@ declare const _default: {
|
|
|
22
22
|
pageRows: import("../types").RowType[];
|
|
23
23
|
} | ((prevState: Readonly<{
|
|
24
24
|
pageRows: import("../types").RowType[];
|
|
25
|
-
}>, props: Readonly<Pick<Props & import("../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "
|
|
25
|
+
}>, props: Readonly<Pick<Props & import("../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | "isTotalPagesControlledExternally" | "testId" | "highlightedRowIndex">>) => {
|
|
26
26
|
pageRows: import("../types").RowType[];
|
|
27
27
|
} | Pick<{
|
|
28
28
|
pageRows: import("../types").RowType[];
|
|
@@ -30,37 +30,37 @@ declare const _default: {
|
|
|
30
30
|
pageRows: import("../types").RowType[];
|
|
31
31
|
}, K> | null, callback?: (() => void) | undefined): void;
|
|
32
32
|
forceUpdate(callBack?: (() => void) | undefined): void;
|
|
33
|
-
readonly props: Readonly<Pick<Props & import("../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "
|
|
33
|
+
readonly props: Readonly<Pick<Props & import("../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | "isTotalPagesControlledExternally" | "testId" | "highlightedRowIndex">> & Readonly<{
|
|
34
34
|
children?: React.ReactNode;
|
|
35
35
|
}>;
|
|
36
36
|
refs: {
|
|
37
37
|
[key: string]: React.ReactInstance;
|
|
38
38
|
};
|
|
39
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Props & import("../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "
|
|
39
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Props & import("../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | "isTotalPagesControlledExternally" | "testId" | "highlightedRowIndex">>, nextState: Readonly<{
|
|
40
40
|
pageRows: import("../types").RowType[];
|
|
41
41
|
}>, nextContext: any): boolean;
|
|
42
42
|
componentWillUnmount?(): void;
|
|
43
43
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
44
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Props & import("../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "
|
|
44
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Props & import("../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | "isTotalPagesControlledExternally" | "testId" | "highlightedRowIndex">>, prevState: Readonly<{
|
|
45
45
|
pageRows: import("../types").RowType[];
|
|
46
46
|
}>): any;
|
|
47
47
|
componentWillMount?(): void;
|
|
48
48
|
UNSAFE_componentWillMount?(): void;
|
|
49
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Props & import("../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "
|
|
50
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Props & import("../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "
|
|
51
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Props & import("../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "
|
|
49
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Props & import("../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | "isTotalPagesControlledExternally" | "testId" | "highlightedRowIndex">>, nextContext: any): void;
|
|
50
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Props & import("../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | "isTotalPagesControlledExternally" | "testId" | "highlightedRowIndex">>, nextContext: any): void;
|
|
51
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Props & import("../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | "isTotalPagesControlledExternally" | "testId" | "highlightedRowIndex">>, nextState: Readonly<{
|
|
52
52
|
pageRows: import("../types").RowType[];
|
|
53
53
|
}>, nextContext: any): void;
|
|
54
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Props & import("../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "
|
|
54
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Props & import("../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | "isTotalPagesControlledExternally" | "testId" | "highlightedRowIndex">>, nextState: Readonly<{
|
|
55
55
|
pageRows: import("../types").RowType[];
|
|
56
56
|
}>, nextContext: any): void;
|
|
57
57
|
};
|
|
58
|
-
new (props: Pick<Props & import("../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "
|
|
58
|
+
new (props: Pick<Props & import("../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | "isTotalPagesControlledExternally" | "testId" | "highlightedRowIndex">, context?: any): {
|
|
59
59
|
state: {
|
|
60
60
|
pageRows: never[];
|
|
61
61
|
};
|
|
62
62
|
componentDidMount(): void;
|
|
63
|
-
componentDidUpdate(_prevProps: Pick<Props & import("../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "
|
|
63
|
+
componentDidUpdate(_prevProps: Pick<Props & import("../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | "isTotalPagesControlledExternally" | "testId" | "highlightedRowIndex">, prevState: {
|
|
64
64
|
pageRows: import("../types").RowType[];
|
|
65
65
|
}): void;
|
|
66
66
|
render(): JSX.Element;
|
|
@@ -69,7 +69,7 @@ declare const _default: {
|
|
|
69
69
|
pageRows: import("../types").RowType[];
|
|
70
70
|
} | ((prevState: Readonly<{
|
|
71
71
|
pageRows: import("../types").RowType[];
|
|
72
|
-
}>, props: Readonly<Pick<Props & import("../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "
|
|
72
|
+
}>, props: Readonly<Pick<Props & import("../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | "isTotalPagesControlledExternally" | "testId" | "highlightedRowIndex">>) => {
|
|
73
73
|
pageRows: import("../types").RowType[];
|
|
74
74
|
} | Pick<{
|
|
75
75
|
pageRows: import("../types").RowType[];
|
|
@@ -77,32 +77,32 @@ declare const _default: {
|
|
|
77
77
|
pageRows: import("../types").RowType[];
|
|
78
78
|
}, K> | null, callback?: (() => void) | undefined): void;
|
|
79
79
|
forceUpdate(callBack?: (() => void) | undefined): void;
|
|
80
|
-
readonly props: Readonly<Pick<Props & import("../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "
|
|
80
|
+
readonly props: Readonly<Pick<Props & import("../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | "isTotalPagesControlledExternally" | "testId" | "highlightedRowIndex">> & Readonly<{
|
|
81
81
|
children?: React.ReactNode;
|
|
82
82
|
}>;
|
|
83
83
|
refs: {
|
|
84
84
|
[key: string]: React.ReactInstance;
|
|
85
85
|
};
|
|
86
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Props & import("../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "
|
|
86
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Props & import("../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | "isTotalPagesControlledExternally" | "testId" | "highlightedRowIndex">>, nextState: Readonly<{
|
|
87
87
|
pageRows: import("../types").RowType[];
|
|
88
88
|
}>, nextContext: any): boolean;
|
|
89
89
|
componentWillUnmount?(): void;
|
|
90
90
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
91
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Props & import("../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "
|
|
91
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Props & import("../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | "isTotalPagesControlledExternally" | "testId" | "highlightedRowIndex">>, prevState: Readonly<{
|
|
92
92
|
pageRows: import("../types").RowType[];
|
|
93
93
|
}>): any;
|
|
94
94
|
componentWillMount?(): void;
|
|
95
95
|
UNSAFE_componentWillMount?(): void;
|
|
96
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Props & import("../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "
|
|
97
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Props & import("../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "
|
|
98
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Props & import("../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "
|
|
96
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Props & import("../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | "isTotalPagesControlledExternally" | "testId" | "highlightedRowIndex">>, nextContext: any): void;
|
|
97
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Props & import("../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | "isTotalPagesControlledExternally" | "testId" | "highlightedRowIndex">>, nextContext: any): void;
|
|
98
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Props & import("../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | "isTotalPagesControlledExternally" | "testId" | "highlightedRowIndex">>, nextState: Readonly<{
|
|
99
99
|
pageRows: import("../types").RowType[];
|
|
100
100
|
}>, nextContext: any): void;
|
|
101
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Props & import("../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "
|
|
101
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Props & import("../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | "isTotalPagesControlledExternally" | "testId" | "highlightedRowIndex">>, nextState: Readonly<{
|
|
102
102
|
pageRows: import("../types").RowType[];
|
|
103
103
|
}>, nextContext: any): void;
|
|
104
104
|
};
|
|
105
|
-
getDerivedStateFromProps(props: Pick<Props & import("../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "
|
|
105
|
+
getDerivedStateFromProps(props: Pick<Props & import("../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | "isTotalPagesControlledExternally" | "testId" | "highlightedRowIndex">, state: {
|
|
106
106
|
pageRows: import("../types").RowType[];
|
|
107
107
|
}): {
|
|
108
108
|
pageRows: import("../types").RowType[];
|
|
@@ -5,12 +5,12 @@ export interface Props {
|
|
|
5
5
|
isLoading?: boolean;
|
|
6
6
|
spinnerSize?: SpinnerSizeType;
|
|
7
7
|
contentsOpacity: number;
|
|
8
|
-
targetRef?: () =>
|
|
8
|
+
targetRef?: () => HTMLDivElement | undefined;
|
|
9
9
|
testId?: string;
|
|
10
10
|
}
|
|
11
11
|
export default class LoadingContainerAdvanced extends React.Component<Props, {}> {
|
|
12
12
|
children?: HTMLElement;
|
|
13
|
-
|
|
13
|
+
spinnerRef?: HTMLDivElement;
|
|
14
14
|
static defaultProps: {
|
|
15
15
|
isLoading: boolean;
|
|
16
16
|
spinnerSize: string;
|
|
@@ -5,7 +5,7 @@ export interface State {
|
|
|
5
5
|
isRanking: boolean;
|
|
6
6
|
}
|
|
7
7
|
declare class DynamicTable extends React.Component<Props, State> {
|
|
8
|
-
tableBody?:
|
|
8
|
+
tableBody?: HTMLDivElement;
|
|
9
9
|
state: {
|
|
10
10
|
isRanking: boolean;
|
|
11
11
|
};
|
|
@@ -37,7 +37,7 @@ declare class DynamicTable extends React.Component<Props, State> {
|
|
|
37
37
|
render(): JSX.Element;
|
|
38
38
|
}
|
|
39
39
|
export { DynamicTable as DynamicTableWithoutAnalytics };
|
|
40
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<Pick<Pick<Props, "caption" | "head" | "label" | "isFixedSize" | "
|
|
40
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<Pick<Pick<Props, "caption" | "head" | "label" | "isFixedSize" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | "testId" | "highlightedRowIndex" | "isLoading" | "isRankingDisabled" | "onRankStart" | "onRankEnd" | "onSort" | "isRankable" | "emptyView" | "loadingSpinnerSize" | "totalRows" | "onSetPage" | "paginationi18n">, "caption" | "head" | "label" | "rows" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | "testId" | "highlightedRowIndex" | "emptyView" | "loadingSpinnerSize" | "totalRows"> & Partial<Pick<Pick<Props, "caption" | "head" | "label" | "isFixedSize" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | "testId" | "highlightedRowIndex" | "isLoading" | "isRankingDisabled" | "onRankStart" | "onRankEnd" | "onSort" | "isRankable" | "emptyView" | "loadingSpinnerSize" | "totalRows" | "onSetPage" | "paginationi18n">, "isFixedSize" | "page" | "rowsPerPage" | "isLoading" | "isRankingDisabled" | "onRankStart" | "onRankEnd" | "onSort" | "isRankable" | "onSetPage" | "paginationi18n">> & Partial<Pick<{
|
|
41
41
|
isLoading: boolean;
|
|
42
42
|
isFixedSize: boolean;
|
|
43
43
|
rowsPerPage: number;
|
|
@@ -53,5 +53,5 @@ declare const _default: React.ForwardRefExoticComponent<Pick<Pick<Pick<Props, "c
|
|
|
53
53
|
next: string;
|
|
54
54
|
label: string;
|
|
55
55
|
};
|
|
56
|
-
}, never>> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "caption" | "head" | "label" | "key" | "isFixedSize" | "
|
|
56
|
+
}, never>> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "caption" | "head" | "label" | "key" | "isFixedSize" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | "testId" | "highlightedRowIndex" | "isLoading" | "isRankingDisabled" | "onRankStart" | "onRankEnd" | "onSort" | "isRankable" | "emptyView" | "loadingSpinnerSize" | "totalRows" | "onSetPage" | "paginationi18n" | "analyticsContext"> & React.RefAttributes<any>>;
|
|
57
57
|
export default _default;
|
|
@@ -1,22 +1,17 @@
|
|
|
1
|
-
import React, { KeyboardEvent } from 'react';
|
|
1
|
+
import React, { FC, KeyboardEvent, LegacyRef } from 'react';
|
|
2
2
|
import { SortOrderType } from '../types';
|
|
3
3
|
export interface Props {
|
|
4
4
|
sortKey?: string;
|
|
5
5
|
isSortable?: boolean;
|
|
6
6
|
sortOrder?: SortOrderType;
|
|
7
7
|
isFixedSize?: boolean;
|
|
8
|
-
innerRef?:
|
|
8
|
+
innerRef?: LegacyRef<HTMLTableCellElement>;
|
|
9
9
|
inlineStyles?: {};
|
|
10
10
|
content?: React.ReactNode;
|
|
11
11
|
onClick?: () => void;
|
|
12
12
|
onKeyDown?: (e: KeyboardEvent) => void;
|
|
13
13
|
testId?: string;
|
|
14
|
+
isRanking?: boolean;
|
|
14
15
|
}
|
|
15
|
-
declare
|
|
16
|
-
static defaultProps: {
|
|
17
|
-
innerRef: () => void;
|
|
18
|
-
inlineStyles: {};
|
|
19
|
-
};
|
|
20
|
-
render(): JSX.Element;
|
|
21
|
-
}
|
|
16
|
+
declare const TableHeadCell: FC<Props>;
|
|
22
17
|
export default TableHeadCell;
|
|
@@ -18,12 +18,12 @@ export declare class RankableBody extends React.Component<Props, {}> {
|
|
|
18
18
|
render(): JSX.Element;
|
|
19
19
|
}
|
|
20
20
|
declare const _default: {
|
|
21
|
-
new (props: Readonly<Pick<Props & import("../../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "
|
|
21
|
+
new (props: Readonly<Pick<Props & import("../../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | "isTotalPagesControlledExternally" | "testId" | "highlightedRowIndex" | "isRanking" | "isRankingDisabled" | "onRankStart" | "onRankEnd">>): {
|
|
22
22
|
state: {
|
|
23
23
|
pageRows: never[];
|
|
24
24
|
};
|
|
25
25
|
componentDidMount(): void;
|
|
26
|
-
componentDidUpdate(_prevProps: Pick<Props & import("../../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "
|
|
26
|
+
componentDidUpdate(_prevProps: Pick<Props & import("../../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | "isTotalPagesControlledExternally" | "testId" | "highlightedRowIndex" | "isRanking" | "isRankingDisabled" | "onRankStart" | "onRankEnd">, prevState: {
|
|
27
27
|
pageRows: RowType[];
|
|
28
28
|
}): void;
|
|
29
29
|
render(): JSX.Element;
|
|
@@ -32,7 +32,7 @@ declare const _default: {
|
|
|
32
32
|
pageRows: RowType[];
|
|
33
33
|
} | ((prevState: Readonly<{
|
|
34
34
|
pageRows: RowType[];
|
|
35
|
-
}>, props: Readonly<Pick<Props & import("../../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "
|
|
35
|
+
}>, props: Readonly<Pick<Props & import("../../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | "isTotalPagesControlledExternally" | "testId" | "highlightedRowIndex" | "isRanking" | "isRankingDisabled" | "onRankStart" | "onRankEnd">>) => {
|
|
36
36
|
pageRows: RowType[];
|
|
37
37
|
} | Pick<{
|
|
38
38
|
pageRows: RowType[];
|
|
@@ -40,37 +40,37 @@ declare const _default: {
|
|
|
40
40
|
pageRows: RowType[];
|
|
41
41
|
}, K> | null, callback?: (() => void) | undefined): void;
|
|
42
42
|
forceUpdate(callBack?: (() => void) | undefined): void;
|
|
43
|
-
readonly props: Readonly<Pick<Props & import("../../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "
|
|
43
|
+
readonly props: Readonly<Pick<Props & import("../../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | "isTotalPagesControlledExternally" | "testId" | "highlightedRowIndex" | "isRanking" | "isRankingDisabled" | "onRankStart" | "onRankEnd">> & Readonly<{
|
|
44
44
|
children?: React.ReactNode;
|
|
45
45
|
}>;
|
|
46
46
|
refs: {
|
|
47
47
|
[key: string]: React.ReactInstance;
|
|
48
48
|
};
|
|
49
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Props & import("../../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "
|
|
49
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Props & import("../../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | "isTotalPagesControlledExternally" | "testId" | "highlightedRowIndex" | "isRanking" | "isRankingDisabled" | "onRankStart" | "onRankEnd">>, nextState: Readonly<{
|
|
50
50
|
pageRows: RowType[];
|
|
51
51
|
}>, nextContext: any): boolean;
|
|
52
52
|
componentWillUnmount?(): void;
|
|
53
53
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
54
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Props & import("../../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "
|
|
54
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Props & import("../../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | "isTotalPagesControlledExternally" | "testId" | "highlightedRowIndex" | "isRanking" | "isRankingDisabled" | "onRankStart" | "onRankEnd">>, prevState: Readonly<{
|
|
55
55
|
pageRows: RowType[];
|
|
56
56
|
}>): any;
|
|
57
57
|
componentWillMount?(): void;
|
|
58
58
|
UNSAFE_componentWillMount?(): void;
|
|
59
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Props & import("../../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "
|
|
60
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Props & import("../../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "
|
|
61
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Props & import("../../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "
|
|
59
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Props & import("../../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | "isTotalPagesControlledExternally" | "testId" | "highlightedRowIndex" | "isRanking" | "isRankingDisabled" | "onRankStart" | "onRankEnd">>, nextContext: any): void;
|
|
60
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Props & import("../../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | "isTotalPagesControlledExternally" | "testId" | "highlightedRowIndex" | "isRanking" | "isRankingDisabled" | "onRankStart" | "onRankEnd">>, nextContext: any): void;
|
|
61
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Props & import("../../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | "isTotalPagesControlledExternally" | "testId" | "highlightedRowIndex" | "isRanking" | "isRankingDisabled" | "onRankStart" | "onRankEnd">>, nextState: Readonly<{
|
|
62
62
|
pageRows: RowType[];
|
|
63
63
|
}>, nextContext: any): void;
|
|
64
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Props & import("../../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "
|
|
64
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Props & import("../../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | "isTotalPagesControlledExternally" | "testId" | "highlightedRowIndex" | "isRanking" | "isRankingDisabled" | "onRankStart" | "onRankEnd">>, nextState: Readonly<{
|
|
65
65
|
pageRows: RowType[];
|
|
66
66
|
}>, nextContext: any): void;
|
|
67
67
|
};
|
|
68
|
-
new (props: Pick<Props & import("../../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "
|
|
68
|
+
new (props: Pick<Props & import("../../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | "isTotalPagesControlledExternally" | "testId" | "highlightedRowIndex" | "isRanking" | "isRankingDisabled" | "onRankStart" | "onRankEnd">, context?: any): {
|
|
69
69
|
state: {
|
|
70
70
|
pageRows: never[];
|
|
71
71
|
};
|
|
72
72
|
componentDidMount(): void;
|
|
73
|
-
componentDidUpdate(_prevProps: Pick<Props & import("../../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "
|
|
73
|
+
componentDidUpdate(_prevProps: Pick<Props & import("../../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | "isTotalPagesControlledExternally" | "testId" | "highlightedRowIndex" | "isRanking" | "isRankingDisabled" | "onRankStart" | "onRankEnd">, prevState: {
|
|
74
74
|
pageRows: RowType[];
|
|
75
75
|
}): void;
|
|
76
76
|
render(): JSX.Element;
|
|
@@ -79,7 +79,7 @@ declare const _default: {
|
|
|
79
79
|
pageRows: RowType[];
|
|
80
80
|
} | ((prevState: Readonly<{
|
|
81
81
|
pageRows: RowType[];
|
|
82
|
-
}>, props: Readonly<Pick<Props & import("../../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "
|
|
82
|
+
}>, props: Readonly<Pick<Props & import("../../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | "isTotalPagesControlledExternally" | "testId" | "highlightedRowIndex" | "isRanking" | "isRankingDisabled" | "onRankStart" | "onRankEnd">>) => {
|
|
83
83
|
pageRows: RowType[];
|
|
84
84
|
} | Pick<{
|
|
85
85
|
pageRows: RowType[];
|
|
@@ -87,32 +87,32 @@ declare const _default: {
|
|
|
87
87
|
pageRows: RowType[];
|
|
88
88
|
}, K> | null, callback?: (() => void) | undefined): void;
|
|
89
89
|
forceUpdate(callBack?: (() => void) | undefined): void;
|
|
90
|
-
readonly props: Readonly<Pick<Props & import("../../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "
|
|
90
|
+
readonly props: Readonly<Pick<Props & import("../../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | "isTotalPagesControlledExternally" | "testId" | "highlightedRowIndex" | "isRanking" | "isRankingDisabled" | "onRankStart" | "onRankEnd">> & Readonly<{
|
|
91
91
|
children?: React.ReactNode;
|
|
92
92
|
}>;
|
|
93
93
|
refs: {
|
|
94
94
|
[key: string]: React.ReactInstance;
|
|
95
95
|
};
|
|
96
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Props & import("../../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "
|
|
96
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Props & import("../../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | "isTotalPagesControlledExternally" | "testId" | "highlightedRowIndex" | "isRanking" | "isRankingDisabled" | "onRankStart" | "onRankEnd">>, nextState: Readonly<{
|
|
97
97
|
pageRows: RowType[];
|
|
98
98
|
}>, nextContext: any): boolean;
|
|
99
99
|
componentWillUnmount?(): void;
|
|
100
100
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
101
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Props & import("../../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "
|
|
101
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Props & import("../../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | "isTotalPagesControlledExternally" | "testId" | "highlightedRowIndex" | "isRanking" | "isRankingDisabled" | "onRankStart" | "onRankEnd">>, prevState: Readonly<{
|
|
102
102
|
pageRows: RowType[];
|
|
103
103
|
}>): any;
|
|
104
104
|
componentWillMount?(): void;
|
|
105
105
|
UNSAFE_componentWillMount?(): void;
|
|
106
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Props & import("../../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "
|
|
107
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Props & import("../../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "
|
|
108
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Props & import("../../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "
|
|
106
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Props & import("../../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | "isTotalPagesControlledExternally" | "testId" | "highlightedRowIndex" | "isRanking" | "isRankingDisabled" | "onRankStart" | "onRankEnd">>, nextContext: any): void;
|
|
107
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Props & import("../../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | "isTotalPagesControlledExternally" | "testId" | "highlightedRowIndex" | "isRanking" | "isRankingDisabled" | "onRankStart" | "onRankEnd">>, nextContext: any): void;
|
|
108
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Props & import("../../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | "isTotalPagesControlledExternally" | "testId" | "highlightedRowIndex" | "isRanking" | "isRankingDisabled" | "onRankStart" | "onRankEnd">>, nextState: Readonly<{
|
|
109
109
|
pageRows: RowType[];
|
|
110
110
|
}>, nextContext: any): void;
|
|
111
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Props & import("../../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "
|
|
111
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Props & import("../../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | "isTotalPagesControlledExternally" | "testId" | "highlightedRowIndex" | "isRanking" | "isRankingDisabled" | "onRankStart" | "onRankEnd">>, nextState: Readonly<{
|
|
112
112
|
pageRows: RowType[];
|
|
113
113
|
}>, nextContext: any): void;
|
|
114
114
|
};
|
|
115
|
-
getDerivedStateFromProps(props: Pick<Props & import("../../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "
|
|
115
|
+
getDerivedStateFromProps(props: Pick<Props & import("../../hoc/withSortedPageRows").Props, "head" | "isFixedSize" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | "isTotalPagesControlledExternally" | "testId" | "highlightedRowIndex" | "isRanking" | "isRankingDisabled" | "onRankStart" | "onRankEnd">, state: {
|
|
116
116
|
pageRows: RowType[];
|
|
117
117
|
}): {
|
|
118
118
|
pageRows: RowType[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { WithDimensionsProps } from '../../hoc/withDimensions';
|
|
3
3
|
import { Props as HeadCellProps } from '../TableHeadCell';
|
|
4
|
-
declare const _default: React.ComponentClass<Pick<WithDimensionsProps & HeadCellProps, "onKeyDown" | "onClick" | "
|
|
4
|
+
declare const _default: React.ComponentClass<Pick<WithDimensionsProps & HeadCellProps, "onKeyDown" | "onClick" | "content" | "isFixedSize" | "sortKey" | "sortOrder" | "testId" | "isRanking" | "isSortable" | "inlineStyles">, import("../../hoc/withDimensions").State>;
|
|
5
5
|
export default _default;
|
|
@@ -10,9 +10,9 @@ export interface Props extends WithDimensionsProps {
|
|
|
10
10
|
isHighlighted?: boolean;
|
|
11
11
|
testId?: string;
|
|
12
12
|
}
|
|
13
|
-
export declare class RankableTableRow extends React.Component<Props
|
|
14
|
-
innerRef: (innerRefFn: Function) => (ref
|
|
13
|
+
export declare class RankableTableRow extends React.Component<Props> {
|
|
14
|
+
innerRef: (innerRefFn: Function) => (ref: HTMLTableRowElement) => void;
|
|
15
15
|
render(): JSX.Element;
|
|
16
16
|
}
|
|
17
|
-
declare const _default: React.ComponentClass<Pick<Props, "head" | "isFixedSize" | "
|
|
17
|
+
declare const _default: React.ComponentClass<Pick<Props, "head" | "isFixedSize" | "testId" | "isHighlighted" | "row" | "isRanking" | "rowIndex" | "isRankingDisabled">, import("../../hoc/withDimensions").State>;
|
|
18
18
|
export default _default;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { LegacyRef } from 'react';
|
|
2
2
|
export interface State {
|
|
3
3
|
refWidth: number;
|
|
4
4
|
refHeight: number;
|
|
5
5
|
}
|
|
6
6
|
export interface WithDimensionsProps {
|
|
7
|
-
innerRef?:
|
|
7
|
+
innerRef?: LegacyRef<HTMLTableCellElement | HTMLTableRowElement>;
|
|
8
8
|
isRanking: boolean;
|
|
9
9
|
refWidth: number;
|
|
10
10
|
refHeight: number;
|
|
@@ -14,12 +14,12 @@ export interface WithSortedPageRowsProps {
|
|
|
14
14
|
isTotalPagesControlledExternally?: boolean;
|
|
15
15
|
}
|
|
16
16
|
export default function withSortedPageRows<WrappedComponentProps extends WithSortedPageRowsProps & Props>(WrappedComponent: React.ComponentType<WrappedComponentProps>): {
|
|
17
|
-
new (props: Readonly<Pick<WrappedComponentProps & Props, "head" | "
|
|
17
|
+
new (props: Readonly<Pick<WrappedComponentProps & Props, "head" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>>): {
|
|
18
18
|
state: {
|
|
19
19
|
pageRows: never[];
|
|
20
20
|
};
|
|
21
21
|
componentDidMount(): void;
|
|
22
|
-
componentDidUpdate(_prevProps: Pick<WrappedComponentProps & Props, "head" | "
|
|
22
|
+
componentDidUpdate(_prevProps: Pick<WrappedComponentProps & Props, "head" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>, prevState: {
|
|
23
23
|
pageRows: Array<RowType>;
|
|
24
24
|
}): void;
|
|
25
25
|
render(): JSX.Element;
|
|
@@ -28,7 +28,7 @@ export default function withSortedPageRows<WrappedComponentProps extends WithSor
|
|
|
28
28
|
pageRows: Array<RowType>;
|
|
29
29
|
} | ((prevState: Readonly<{
|
|
30
30
|
pageRows: Array<RowType>;
|
|
31
|
-
}>, props: Readonly<Pick<WrappedComponentProps & Props, "head" | "
|
|
31
|
+
}>, props: Readonly<Pick<WrappedComponentProps & Props, "head" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>>) => {
|
|
32
32
|
pageRows: Array<RowType>;
|
|
33
33
|
} | Pick<{
|
|
34
34
|
pageRows: Array<RowType>;
|
|
@@ -36,37 +36,37 @@ export default function withSortedPageRows<WrappedComponentProps extends WithSor
|
|
|
36
36
|
pageRows: Array<RowType>;
|
|
37
37
|
}, K> | null, callback?: (() => void) | undefined): void;
|
|
38
38
|
forceUpdate(callBack?: (() => void) | undefined): void;
|
|
39
|
-
readonly props: Readonly<Pick<WrappedComponentProps & Props, "head" | "
|
|
39
|
+
readonly props: Readonly<Pick<WrappedComponentProps & Props, "head" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>> & Readonly<{
|
|
40
40
|
children?: React.ReactNode;
|
|
41
41
|
}>;
|
|
42
42
|
refs: {
|
|
43
43
|
[key: string]: React.ReactInstance;
|
|
44
44
|
};
|
|
45
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<WrappedComponentProps & Props, "head" | "
|
|
45
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<WrappedComponentProps & Props, "head" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>>, nextState: Readonly<{
|
|
46
46
|
pageRows: Array<RowType>;
|
|
47
47
|
}>, nextContext: any): boolean;
|
|
48
48
|
componentWillUnmount?(): void;
|
|
49
49
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
50
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<WrappedComponentProps & Props, "head" | "
|
|
50
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<WrappedComponentProps & Props, "head" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>>, prevState: Readonly<{
|
|
51
51
|
pageRows: Array<RowType>;
|
|
52
52
|
}>): any;
|
|
53
53
|
componentWillMount?(): void;
|
|
54
54
|
UNSAFE_componentWillMount?(): void;
|
|
55
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<WrappedComponentProps & Props, "head" | "
|
|
56
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<WrappedComponentProps & Props, "head" | "
|
|
57
|
-
componentWillUpdate?(nextProps: Readonly<Pick<WrappedComponentProps & Props, "head" | "
|
|
55
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<WrappedComponentProps & Props, "head" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>>, nextContext: any): void;
|
|
56
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<WrappedComponentProps & Props, "head" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>>, nextContext: any): void;
|
|
57
|
+
componentWillUpdate?(nextProps: Readonly<Pick<WrappedComponentProps & Props, "head" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>>, nextState: Readonly<{
|
|
58
58
|
pageRows: Array<RowType>;
|
|
59
59
|
}>, nextContext: any): void;
|
|
60
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<WrappedComponentProps & Props, "head" | "
|
|
60
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<WrappedComponentProps & Props, "head" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>>, nextState: Readonly<{
|
|
61
61
|
pageRows: Array<RowType>;
|
|
62
62
|
}>, nextContext: any): void;
|
|
63
63
|
};
|
|
64
|
-
new (props: Pick<WrappedComponentProps & Props, "head" | "
|
|
64
|
+
new (props: Pick<WrappedComponentProps & Props, "head" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>, context?: any): {
|
|
65
65
|
state: {
|
|
66
66
|
pageRows: never[];
|
|
67
67
|
};
|
|
68
68
|
componentDidMount(): void;
|
|
69
|
-
componentDidUpdate(_prevProps: Pick<WrappedComponentProps & Props, "head" | "
|
|
69
|
+
componentDidUpdate(_prevProps: Pick<WrappedComponentProps & Props, "head" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>, prevState: {
|
|
70
70
|
pageRows: Array<RowType>;
|
|
71
71
|
}): void;
|
|
72
72
|
render(): JSX.Element;
|
|
@@ -75,7 +75,7 @@ export default function withSortedPageRows<WrappedComponentProps extends WithSor
|
|
|
75
75
|
pageRows: Array<RowType>;
|
|
76
76
|
} | ((prevState: Readonly<{
|
|
77
77
|
pageRows: Array<RowType>;
|
|
78
|
-
}>, props: Readonly<Pick<WrappedComponentProps & Props, "head" | "
|
|
78
|
+
}>, props: Readonly<Pick<WrappedComponentProps & Props, "head" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>>) => {
|
|
79
79
|
pageRows: Array<RowType>;
|
|
80
80
|
} | Pick<{
|
|
81
81
|
pageRows: Array<RowType>;
|
|
@@ -83,28 +83,28 @@ export default function withSortedPageRows<WrappedComponentProps extends WithSor
|
|
|
83
83
|
pageRows: Array<RowType>;
|
|
84
84
|
}, K> | null, callback?: (() => void) | undefined): void;
|
|
85
85
|
forceUpdate(callBack?: (() => void) | undefined): void;
|
|
86
|
-
readonly props: Readonly<Pick<WrappedComponentProps & Props, "head" | "
|
|
86
|
+
readonly props: Readonly<Pick<WrappedComponentProps & Props, "head" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>> & Readonly<{
|
|
87
87
|
children?: React.ReactNode;
|
|
88
88
|
}>;
|
|
89
89
|
refs: {
|
|
90
90
|
[key: string]: React.ReactInstance;
|
|
91
91
|
};
|
|
92
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<WrappedComponentProps & Props, "head" | "
|
|
92
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<WrappedComponentProps & Props, "head" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>>, nextState: Readonly<{
|
|
93
93
|
pageRows: Array<RowType>;
|
|
94
94
|
}>, nextContext: any): boolean;
|
|
95
95
|
componentWillUnmount?(): void;
|
|
96
96
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
97
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<WrappedComponentProps & Props, "head" | "
|
|
97
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<WrappedComponentProps & Props, "head" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>>, prevState: Readonly<{
|
|
98
98
|
pageRows: Array<RowType>;
|
|
99
99
|
}>): any;
|
|
100
100
|
componentWillMount?(): void;
|
|
101
101
|
UNSAFE_componentWillMount?(): void;
|
|
102
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<WrappedComponentProps & Props, "head" | "
|
|
103
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<WrappedComponentProps & Props, "head" | "
|
|
104
|
-
componentWillUpdate?(nextProps: Readonly<Pick<WrappedComponentProps & Props, "head" | "
|
|
102
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<WrappedComponentProps & Props, "head" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>>, nextContext: any): void;
|
|
103
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<WrappedComponentProps & Props, "head" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>>, nextContext: any): void;
|
|
104
|
+
componentWillUpdate?(nextProps: Readonly<Pick<WrappedComponentProps & Props, "head" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>>, nextState: Readonly<{
|
|
105
105
|
pageRows: Array<RowType>;
|
|
106
106
|
}>, nextContext: any): void;
|
|
107
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<WrappedComponentProps & Props, "head" | "
|
|
107
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<WrappedComponentProps & Props, "head" | "rows" | "page" | "rowsPerPage" | "sortKey" | "sortOrder" | "onPageRowsUpdate" | Exclude<keyof WrappedComponentProps, "pageRows">>>, nextState: Readonly<{
|
|
108
108
|
pageRows: Array<RowType>;
|
|
109
109
|
}>, nextContext: any): void;
|
|
110
110
|
};
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import { FC, HTMLProps } from 'react';
|
|
3
|
+
export declare type TableProps = HTMLProps<HTMLTableElement> & {
|
|
3
4
|
isFixedSize?: boolean;
|
|
4
|
-
}
|
|
5
|
-
export declare const
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
};
|
|
6
|
+
export declare const tableRowCSSVars: {
|
|
7
|
+
CSS_VAR_HOVER_BACKGROUND: string;
|
|
8
|
+
CSS_VAR_HIGHLIGHTED_BACKGROUND: string;
|
|
9
|
+
CSS_VAR_HOVER_HIGHLIGHTED_BACKGROUND: string;
|
|
10
|
+
CSS_VAR_ROW_FOCUS_OUTLINE: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const Table: import("react").ForwardRefExoticComponent<Pick<TableProps, "cite" | "data" | "form" | "label" | "span" | "style" | "summary" | "title" | "pattern" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "inputMode" | "is" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "content" | "height" | "width" | "isFixedSize" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "nonce" | "noValidate" | "open" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "target" | "type" | "useMap" | "value" | "wmode" | "wrap"> & import("react").RefAttributes<HTMLTableElement>>;
|
|
13
|
+
export declare const Caption: FC;
|
|
14
|
+
export declare const PaginationWrapper: FC;
|