import type { Key, ReactNode } from 'react'; import type { TableProps as TableNewProps } from './Table'; import type { TableCellProps as TableCellNewProps } from './TableCell'; import type { TableColProps as TableColNewProps } from './TableCol'; import type { TableRowProps as TableRowNewProps } from './TableRow'; import type { DataTableInternalProps, DataTableProps as DataTableNewProps } from './types'; import type { VirtualizedDataTableProps as VirtualizedDataTableNewProps } from './VirtualizedDataTable'; type NewDataTableProp = 'sortKey' | 'hasSelectAll' | 'emptyContent' | 'emptyPadding' | 'resizable' | 'hasCellHoverStyle' | 'hasCellDisabledStyle' | 'hasExpandButton' | 'shouldRenderRowDivider' | 'getRowKey' | 'getRowSelectionKey' | 'onSortChange' | 'onSelectedRowsChange' | 'onExpandedRowsChange'; export type OldDataTableProps = Omit, NewDataTableProp> & { /** @deprecated sortKey를 사용해주세요. */ sortBy?: DataTableNewProps['sortKey']; /** @deprecated hasSelectAll을 사용해주세요. */ hideSelectAll?: boolean; /** @deprecated emptyContent를 사용해주세요. */ noDataText?: ReactNode; /** @deprecated emptyPadding을 사용해주세요. */ noDataPadding?: DataTableNewProps['emptyPadding']; /** @deprecated resizable을 사용해주세요. */ resize?: DataTableNewProps['resizable']; /** @deprecated hasCellHoverStyle을 사용해주세요. */ cellHoverStyle?: DataTableNewProps['hasCellHoverStyle']; /** @deprecated hasCellDisabledStyle을 사용해주세요. */ cellDisabledStyle?: DataTableNewProps['hasCellDisabledStyle']; /** @deprecated hasExpandButton을 사용해주세요. */ expandableButton?: DataTableNewProps['hasExpandButton']; /** @deprecated shouldRenderRowDivider를 사용해주세요. */ dividerRows?: (row: DataType, index: number) => boolean; /** @deprecated getRowKey를 사용해주세요. */ rowKeyExtractor?: (row: DataType, index: number) => Key; /** @deprecated getRowSelectionKey를 사용해주세요. */ rowSelectionKeyExtractor?: (row: DataType, index: number) => Key; /** @deprecated onSortChange를 사용해주세요. */ onSortBy?: DataTableNewProps['onSortChange']; /** @deprecated onSelectedRowsChange를 사용해주세요. */ onSelectRows?: DataTableNewProps['onSelectedRowsChange']; /** @deprecated onExpandedRowsChange를 사용해주세요. */ onExpandRows?: DataTableNewProps['onExpandedRowsChange']; }; export declare function convertOldDataTableProps(props: OldDataTableProps): DataTableInternalProps; export type OldTableProps = Omit & { /** @deprecated resizable을 사용해주세요. */ resize?: TableNewProps['resizable']; }; export declare function convertOldTableProps(props: OldTableProps): TableNewProps; type NewTableCellProp = 'fixedColumnWidth' | 'empty' | 'resizable' | 'lastRow' | 'hasDisabledStyle' | 'lastColumn' | 'truncate' | 'wrapContent'; export type OldTableCellProps = Omit & { /** @deprecated fixedColumnWidth를 사용해주세요. */ fixedColWidth?: TableCellNewProps['fixedColumnWidth']; /** @deprecated empty를 사용해주세요. */ isEmpty?: TableCellNewProps['empty']; /** @deprecated resizable을 사용해주세요. */ resize?: TableCellNewProps['resizable']; /** @deprecated lastRow를 사용해주세요. */ isRowLast?: TableCellNewProps['lastRow']; /** @deprecated hasDisabledStyle을 사용해주세요. */ cellDisabledStyle?: TableCellNewProps['hasDisabledStyle']; /** @deprecated lastColumn을 사용해주세요. */ isColumnLast?: TableCellNewProps['lastColumn']; /** @deprecated truncate를 사용해주세요. */ isTruncate?: TableCellNewProps['truncate']; /** @deprecated wrapContent를 사용해주세요. */ isHugeContents?: TableCellNewProps['wrapContent']; }; export declare function convertOldTableCellProps(props: OldTableCellProps): TableCellNewProps; type NewTableColProp = 'resizable' | 'verticalAlign' | 'sortIndicatorProps' | 'hasRightBorder'; export type OldTableColProps = Omit & { /** @deprecated resizable을 사용해주세요. */ resize?: TableColNewProps['resizable']; /** @deprecated verticalAlign을 사용해주세요. */ valign?: TableColNewProps['verticalAlign']; /** @deprecated sortIndicatorProps를 사용해주세요. */ sortProps?: TableColNewProps['sortIndicatorProps']; /** @deprecated hasRightBorder를 사용해주세요. */ showRightBorder?: TableColNewProps['hasRightBorder']; }; export declare function convertOldTableColProps(props: OldTableColProps): TableColNewProps; export type OldTableRowProps = Omit & { /** @deprecated empty를 사용해주세요. */ isEmpty?: TableRowNewProps['empty']; /** @deprecated hasHoverStyle을 사용해주세요. */ cellHoverStyle?: TableRowNewProps['hasHoverStyle']; }; export declare function convertOldTableRowProps(props: OldTableRowProps): TableRowNewProps; export type OldVirtualizedDataTableProps = Omit, 'stickyHeader'> & { /** * 테이블 박스 내부 스크롤에 헤더를 고정할지 여부 * * @default true */ stickyHeader?: boolean; /** @deprecated estimateRowSize를 사용해주세요. */ estimateSize: number; }; export declare function convertOldVirtualizedDataTableProps(props: OldVirtualizedDataTableProps): VirtualizedDataTableNewProps; export {};