1 | import * as React from 'react';
|
2 | import type { KeyWiseTransferItem } from '.';
|
3 | import type { ElementOf } from '../_util/type';
|
4 | import type { RenderedItem, TransferListProps } from './list';
|
5 | export declare const OmitProps: ["handleFilter", "handleClear", "checkedKeys"];
|
6 | export type OmitProp = ElementOf<typeof OmitProps>;
|
7 | type PartialTransferListProps<RecordType> = Omit<TransferListProps<RecordType>, OmitProp>;
|
8 | export interface TransferListBodyProps<RecordType> extends PartialTransferListProps<RecordType> {
|
9 | filteredItems: RecordType[];
|
10 | filteredRenderItems: RenderedItem<RecordType>[];
|
11 | selectedKeys: string[];
|
12 | }
|
13 | interface TransferListBodyState {
|
14 | current: number;
|
15 | }
|
16 | declare class ListBody<RecordType extends KeyWiseTransferItem> extends React.Component<TransferListBodyProps<RecordType>, TransferListBodyState> {
|
17 | state: {
|
18 | current: number;
|
19 | };
|
20 | static getDerivedStateFromProps<T>({ filteredRenderItems, pagination }: TransferListBodyProps<T>, { current }: TransferListBodyState): {
|
21 | current: number;
|
22 | } | null;
|
23 | onItemSelect: (item: RecordType) => void;
|
24 | onItemRemove: (item: RecordType) => void;
|
25 | onPageChange: (current: number) => void;
|
26 | getItems: () => RenderedItem<RecordType>[];
|
27 | render(): JSX.Element;
|
28 | }
|
29 | export default ListBody;
|