@pdg/react-table 1.0.140 → 1.1.1
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/dist/@types/types.d.ts +2 -2
- package/dist/PInfoTable/PInfoTable.d.ts +7 -0
- package/dist/{InfoTable/InfoTable.types.d.ts → PInfoTable/PInfoTable.types.d.ts} +27 -27
- package/dist/PInfoTable/index.d.ts +4 -0
- package/dist/PSearchTable/PSearchTable.d.ts +8 -0
- package/dist/PSearchTable/PSearchTable.types.d.ts +42 -0
- package/dist/PSearchTable/index.d.ts +4 -0
- package/dist/PTable/PTable.d.ts +7 -0
- package/dist/{Table/Table.types.d.ts → PTable/PTable.types.d.ts} +51 -51
- package/dist/PTable/index.d.ts +4 -0
- package/dist/PTableBodyCell/PTableBodyCell.d.ts +4 -0
- package/dist/PTableBodyCell/PTableBodyCell.types.d.ts +18 -0
- package/dist/PTableBodyCell/index.d.ts +4 -0
- package/dist/PTableBodyRow/PTableBodyRow.d.ts +5 -0
- package/dist/PTableBodyRow/PTableBodyRow.types.d.ts +18 -0
- package/dist/PTableBodyRow/index.d.ts +4 -0
- package/dist/{TableButton/TableButton.d.ts → PTableButton/PTableButton.d.ts} +1 -1
- package/dist/PTableButton/PTableButton.types.d.ts +3 -0
- package/dist/PTableButton/index.d.ts +4 -0
- package/dist/PTableCommonCell/PTableCommonCell.d.ts +4 -0
- package/dist/PTableCommonCell/PTableCommonCell.types.d.ts +11 -0
- package/dist/PTableCommonCell/index.d.ts +4 -0
- package/dist/PTableContext/PTableContext.d.ts +3 -0
- package/dist/PTableContext/PTableContext.types.d.ts +15 -0
- package/dist/PTableContext/index.d.ts +5 -0
- package/dist/PTableContext/useTableState.d.ts +2 -0
- package/dist/PTableContextProvider/PTableContextProvider.d.ts +4 -0
- package/dist/PTableContextProvider/PTableContextProvider.types.d.ts +6 -0
- package/dist/PTableContextProvider/index.d.ts +4 -0
- package/dist/PTableFooterCell/PTableFooterCell.d.ts +4 -0
- package/dist/PTableFooterCell/PTableFooterCell.types.d.ts +6 -0
- package/dist/PTableFooterCell/index.d.ts +4 -0
- package/dist/PTableHeadCell/PTableHeadCell.d.ts +4 -0
- package/dist/PTableHeadCell/PTableHeadCell.types.d.ts +12 -0
- package/dist/PTableHeadCell/index.d.ts +4 -0
- package/dist/PTableMenuButton/PTableMenuButton.d.ts +4 -0
- package/dist/{TableMenuButton/TableMenuButton.types.d.ts → PTableMenuButton/PTableMenuButton.types.d.ts} +2 -2
- package/dist/PTableMenuButton/index.d.ts +4 -0
- package/dist/PTablePagination/PTablePagination.d.ts +4 -0
- package/dist/PTablePagination/PTablePagination.types.d.ts +13 -0
- package/dist/PTablePagination/index.d.ts +4 -0
- package/dist/PTableSortableBody/PTableSortableBody.d.ts +4 -0
- package/dist/PTableSortableBody/PTableSortableBody.types.d.ts +8 -0
- package/dist/PTableSortableBody/index.d.ts +4 -0
- package/dist/PTableSortableBodyBlock/PTableSortableBodyBlock.d.ts +4 -0
- package/dist/PTableSortableBodyBlock/PTableSortableBodyBlock.types.d.ts +4 -0
- package/dist/PTableSortableBodyBlock/index.d.ts +4 -0
- package/dist/PTableTopHead/PTableTopHead.d.ts +4 -0
- package/dist/PTableTopHead/PTableTopHead.types.d.ts +18 -0
- package/dist/PTableTopHead/index.d.ts +4 -0
- package/dist/index.d.ts +14 -5
- package/dist/index.esm.js +324 -324
- package/dist/index.js +322 -322
- package/package.json +12 -7
- package/dist/InfoTable/InfoTable.d.ts +0 -7
- package/dist/InfoTable/index.d.ts +0 -4
- package/dist/SearchTable/SearchTable.d.ts +0 -8
- package/dist/SearchTable/SearchTable.types.d.ts +0 -42
- package/dist/SearchTable/index.d.ts +0 -4
- package/dist/Table/Table.d.ts +0 -7
- package/dist/Table/index.d.ts +0 -4
- package/dist/TableBodyCell/TableBodyCell.d.ts +0 -4
- package/dist/TableBodyCell/TableBodyCell.types.d.ts +0 -18
- package/dist/TableBodyCell/index.d.ts +0 -4
- package/dist/TableBodyRow/TableBodyRow.d.ts +0 -5
- package/dist/TableBodyRow/TableBodyRow.types.d.ts +0 -18
- package/dist/TableBodyRow/index.d.ts +0 -4
- package/dist/TableButton/TableButton.types.d.ts +0 -3
- package/dist/TableButton/index.d.ts +0 -4
- package/dist/TableCommonCell/TableCommonCell.d.ts +0 -4
- package/dist/TableCommonCell/TableCommonCell.types.d.ts +0 -11
- package/dist/TableCommonCell/index.d.ts +0 -4
- package/dist/TableContext/TableContext.d.ts +0 -3
- package/dist/TableContext/TableContext.types.d.ts +0 -15
- package/dist/TableContext/index.d.ts +0 -5
- package/dist/TableContext/useTableState.d.ts +0 -2
- package/dist/TableContextProvider/TableContextProvider.d.ts +0 -4
- package/dist/TableContextProvider/TableContextProvider.types.d.ts +0 -6
- package/dist/TableContextProvider/index.d.ts +0 -4
- package/dist/TableFooterCell/TableFooterCell.d.ts +0 -4
- package/dist/TableFooterCell/TableFooterCell.types.d.ts +0 -6
- package/dist/TableFooterCell/index.d.ts +0 -4
- package/dist/TableHeadCell/TableHeadCell.d.ts +0 -4
- package/dist/TableHeadCell/TableHeadCell.types.d.ts +0 -12
- package/dist/TableHeadCell/index.d.ts +0 -4
- package/dist/TableMenuButton/TableMenuButton.d.ts +0 -4
- package/dist/TableMenuButton/index.d.ts +0 -4
- package/dist/TablePagination/TablePagination.d.ts +0 -4
- package/dist/TablePagination/TablePagination.types.d.ts +0 -13
- package/dist/TablePagination/index.d.ts +0 -4
- package/dist/TableSortableBody/TableSortableBody.d.ts +0 -4
- package/dist/TableSortableBody/TableSortableBody.types.d.ts +0 -8
- package/dist/TableSortableBody/index.d.ts +0 -4
- package/dist/TableSortableBodyBlock/TableSortableBodyBlock.d.ts +0 -4
- package/dist/TableSortableBodyBlock/TableSortableBodyBlock.types.d.ts +0 -4
- package/dist/TableSortableBodyBlock/index.d.ts +0 -4
- package/dist/TableTopHead/TableTopHead.d.ts +0 -4
- package/dist/TableTopHead/TableTopHead.types.d.ts +0 -18
- package/dist/TableTopHead/index.d.ts +0 -4
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pdg/react-table",
|
|
3
3
|
"title": "React Table",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.1.1",
|
|
5
5
|
"description": "React Table",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -26,8 +26,13 @@
|
|
|
26
26
|
"build": "rollup -c --bundleConfigAsCjs",
|
|
27
27
|
"build:examples": "cd examples && npm run build",
|
|
28
28
|
"pub": "npm i && npm run build:examples && npm run build && npm publish --access=public && rm ./.git/hooks/pre-commit",
|
|
29
|
-
"
|
|
30
|
-
"
|
|
29
|
+
"git:commit": "node .git-commit.cjs",
|
|
30
|
+
"git:push": "git push",
|
|
31
|
+
"git:commit:push": "npm run git:commit && npm run git:push",
|
|
32
|
+
"reset:gitignore": "git rm -r --cached . && git add .",
|
|
33
|
+
"reinstall": "npm run reinstall:module",
|
|
34
|
+
"reinstall:module": "rm -rf node_modules && rm -f package-lock.json && npm i",
|
|
35
|
+
"lint": "eslint './src/**/*.{ts,tsx}'"
|
|
31
36
|
},
|
|
32
37
|
"author": "YOUNG CHUL PARK",
|
|
33
38
|
"license": "MIT",
|
|
@@ -52,11 +57,11 @@
|
|
|
52
57
|
"@mui/material": "^7.1.0",
|
|
53
58
|
"@mui/x-date-pickers": "^7.29.4",
|
|
54
59
|
"@pdg/compare": "^1.0.6",
|
|
55
|
-
"@pdg/formatting": "^1.0.
|
|
56
|
-
"@pdg/react-component": "^1.0
|
|
57
|
-
"@pdg/react-form": "^1.0
|
|
60
|
+
"@pdg/formatting": "^1.0.5",
|
|
61
|
+
"@pdg/react-component": "^1.1.0",
|
|
62
|
+
"@pdg/react-form": "^1.1.0",
|
|
58
63
|
"@pdg/react-hook": "^1.0.30",
|
|
59
|
-
"@pdg/types": "^1.0.
|
|
64
|
+
"@pdg/types": "^1.0.2",
|
|
60
65
|
"@types/uuid": "^10.0.0",
|
|
61
66
|
"react-intersection-observer": "^9.16.0",
|
|
62
67
|
"uuid": "^11.1.0"
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { InfoTableProps as Props, InfoTableInfo } from './InfoTable.types';
|
|
3
|
-
interface WithType<T = InfoTableInfo> extends React.FC<Props<T>> {
|
|
4
|
-
<T = InfoTableInfo>(props: Props<T>): ReturnType<React.FC<Props<T>>>;
|
|
5
|
-
}
|
|
6
|
-
declare const InfoTable: WithType;
|
|
7
|
-
export default InfoTable;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { SearchTableProps, SearchTableCommands } from './SearchTable.types';
|
|
3
|
-
import { TableItem } from '../Table';
|
|
4
|
-
interface WithForwardRefType<T = TableItem> extends React.FC<SearchTableProps<T>> {
|
|
5
|
-
<T = TableItem>(props: SearchTableProps<T> & React.RefAttributes<SearchTableCommands<T>>): ReturnType<React.FC<SearchTableProps<T>>>;
|
|
6
|
-
}
|
|
7
|
-
declare const SearchTable: WithForwardRefType;
|
|
8
|
-
export default SearchTable;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TableProps, TableCommands, TableItem } from '../Table';
|
|
3
|
-
import { FormValueMap, SearchCommands, SearchProps } from '@pdg/react-form';
|
|
4
|
-
import { ReactNode } from 'react';
|
|
5
|
-
import { TableCommonSxProps } from '../@types';
|
|
6
|
-
export interface SearchInfo {
|
|
7
|
-
ref?: SearchTableSearchProps['ref'];
|
|
8
|
-
searchGroups?: SearchTableSearchProps['searchGroups'];
|
|
9
|
-
props?: Omit<SearchTableSearchProps, 'ref' | 'searchGroups'>;
|
|
10
|
-
}
|
|
11
|
-
export interface TableInfo {
|
|
12
|
-
ref?: SearchTableTableProps['ref'];
|
|
13
|
-
props?: Omit<SearchTableTableProps, 'ref'>;
|
|
14
|
-
}
|
|
15
|
-
export interface SearchTableData<T = TableItem> {
|
|
16
|
-
items: TableProps<T>['items'];
|
|
17
|
-
paging?: TableProps<T>['paging'];
|
|
18
|
-
}
|
|
19
|
-
export interface SearchTableSearchProps extends Omit<SearchProps, 'ref' | 'color' | 'autoSubmit' | 'onSubmit'> {
|
|
20
|
-
ref?: React.ForwardedRef<SearchCommands>;
|
|
21
|
-
searchGroups?: ReactNode;
|
|
22
|
-
}
|
|
23
|
-
export interface SearchTableTableProps<T = TableItem> extends Omit<TableProps<T>, 'ref' | 'items' | 'paging' | 'onPageChange'> {
|
|
24
|
-
ref?: React.ForwardedRef<TableCommands<T>>;
|
|
25
|
-
}
|
|
26
|
-
export interface SearchTableProps<T = TableItem> extends TableCommonSxProps {
|
|
27
|
-
color?: SearchProps['color'];
|
|
28
|
-
hash?: boolean;
|
|
29
|
-
stickyHeader?: boolean;
|
|
30
|
-
fullHeight?: boolean;
|
|
31
|
-
search?: SearchTableSearchProps;
|
|
32
|
-
table: SearchTableTableProps<T>;
|
|
33
|
-
betweenSearchTableComponent?: ReactNode;
|
|
34
|
-
onGetData?(data: FormValueMap): Promise<SearchTableData<T>>;
|
|
35
|
-
onRequestHashChange?(hash: string): void;
|
|
36
|
-
}
|
|
37
|
-
export interface SearchTableCommands<T = TableItem> {
|
|
38
|
-
reload(page?: number): void;
|
|
39
|
-
getLastLoadData(): FormValueMap;
|
|
40
|
-
getSearch(): SearchCommands | undefined;
|
|
41
|
-
getTable(): TableCommands<T> | undefined;
|
|
42
|
-
}
|
package/dist/Table/Table.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TableProps, TableCommands, TableItem } from './Table.types';
|
|
3
|
-
interface WithForwardRefType<T = TableItem> extends React.FC<TableProps<T>> {
|
|
4
|
-
<T = TableItem>(props: TableProps<T> & React.RefAttributes<TableCommands<T>>): ReturnType<React.FC<TableProps<T>>>;
|
|
5
|
-
}
|
|
6
|
-
declare const Table: WithForwardRefType;
|
|
7
|
-
export default Table;
|
package/dist/Table/index.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { TableColumn, TableItem, TableProps } from '../Table/Table.types';
|
|
2
|
-
import { TableCommonSxProps } from '../@types';
|
|
3
|
-
export interface TableBodyCellCommands {
|
|
4
|
-
setChecked(checked: boolean): void;
|
|
5
|
-
setCheckDisabled(disabled: boolean): void;
|
|
6
|
-
}
|
|
7
|
-
export interface TableBodyCellProps {
|
|
8
|
-
className?: TableCommonSxProps['className'];
|
|
9
|
-
style?: TableCommonSxProps['style'];
|
|
10
|
-
sx?: TableCommonSxProps['sx'];
|
|
11
|
-
index: number;
|
|
12
|
-
item: TableItem;
|
|
13
|
-
column: TableColumn;
|
|
14
|
-
defaultAlign?: TableProps['defaultAlign'];
|
|
15
|
-
defaultEllipsis?: boolean;
|
|
16
|
-
onClick: TableProps['onClick'];
|
|
17
|
-
onCheckChange(item: TableItem, column: TableColumn, checked: boolean): void;
|
|
18
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TableBodyRowProps as Props } from './TableBodyRow.types';
|
|
3
|
-
export declare const StyledBodyRow: import("@emotion/styled").StyledComponent<import("@mui/material").TableRowOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "className" | "style" | "classes" | "children" | "hover" | "selected" | "sx"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
4
|
-
declare const TableBodyRow: React.FC<Props>;
|
|
5
|
-
export default TableBodyRow;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { TableCellProps, TableRowProps } from '@mui/material';
|
|
2
|
-
import { TableColumn, TableItem, TableProps } from '../Table';
|
|
3
|
-
import { TableBodyCellProps } from '../TableBodyCell';
|
|
4
|
-
import { TableCommonSxProps } from '../@types';
|
|
5
|
-
export interface TableBodyRowProps extends Omit<TableRowProps, 'id' | 'onClick'> {
|
|
6
|
-
id: string | number;
|
|
7
|
-
index: number;
|
|
8
|
-
defaultAlign?: TableCellProps['align'];
|
|
9
|
-
defaultEllipsis?: boolean;
|
|
10
|
-
sortable?: boolean;
|
|
11
|
-
columns: TableColumn[];
|
|
12
|
-
item: TableItem;
|
|
13
|
-
onClick: TableProps['onClick'];
|
|
14
|
-
onCheckChange: TableBodyCellProps['onCheckChange'];
|
|
15
|
-
onGetColumnClassName?(column: TableColumn, item: TableItem, index: number): TableCommonSxProps['className'] | undefined;
|
|
16
|
-
onGetColumnStyle?(column: TableColumn, item: TableItem, index: number): TableCommonSxProps['style'] | undefined;
|
|
17
|
-
onGetColumnSx?(column: TableColumn, item: TableItem, index: number): TableCommonSxProps['sx'] | undefined;
|
|
18
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { TableColumn, TableItem, TableProps } from '../Table/Table.types';
|
|
2
|
-
import { TableCommonSxProps } from '../@types';
|
|
3
|
-
export interface TableCommonCellProps extends TableCommonSxProps {
|
|
4
|
-
type: 'head' | 'body' | 'footer';
|
|
5
|
-
column: TableColumn;
|
|
6
|
-
defaultAlign?: TableProps['defaultAlign'];
|
|
7
|
-
defaultEllipsis?: boolean;
|
|
8
|
-
index?: number;
|
|
9
|
-
item?: TableItem;
|
|
10
|
-
onClick?: TableProps['onClick'];
|
|
11
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { TableColumn, TableItem, TableProgressiveVisibleInfo } from '../Table';
|
|
2
|
-
import { TableBodyCellCommands } from '../TableBodyCell';
|
|
3
|
-
import { TableHeadCellCommands } from '../TableHeadCell';
|
|
4
|
-
export interface TableContextValue {
|
|
5
|
-
menuOpen: boolean;
|
|
6
|
-
openMenuId?: string;
|
|
7
|
-
progressiveVisible?: TableProgressiveVisibleInfo;
|
|
8
|
-
setMenuOpen(menuOpen: boolean, openMenuId?: string): void;
|
|
9
|
-
setItemColumnChecked(item: TableItem, column: TableColumn, checked: boolean): void;
|
|
10
|
-
setItemColumnCheckDisabled(item: TableItem, column: TableColumn, checkDisabled: boolean): void;
|
|
11
|
-
setItemColumnCommands(item: TableItem, column: TableColumn, commands: TableBodyCellCommands): void;
|
|
12
|
-
setHeadColumnChecked(column: TableColumn, checked: boolean): void;
|
|
13
|
-
setHeadColumnCommands(column: TableColumn, commands: TableHeadCellCommands): void;
|
|
14
|
-
}
|
|
15
|
-
export declare const TableContextDefaultValue: TableContextValue;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { TableColumn, TableItem, TableProps } from '../Table/Table.types';
|
|
2
|
-
export interface TableHeadCellCommands {
|
|
3
|
-
setChecked(checked: boolean): void;
|
|
4
|
-
setCheckDisabled(checkDisabled: boolean): void;
|
|
5
|
-
}
|
|
6
|
-
export interface TableHeadCellProps<T = TableItem> {
|
|
7
|
-
column: TableColumn;
|
|
8
|
-
items?: T[];
|
|
9
|
-
defaultAlign?: TableProps['defaultAlign'];
|
|
10
|
-
top?: number;
|
|
11
|
-
onCheckChange(column: TableColumn, checked: boolean): void;
|
|
12
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { StackProps } from '@mui/material';
|
|
2
|
-
import { TableCommonSxProps } from '../@types';
|
|
3
|
-
export interface TablePaging {
|
|
4
|
-
current_page: number;
|
|
5
|
-
per_page: number;
|
|
6
|
-
last_page: number;
|
|
7
|
-
total: number;
|
|
8
|
-
}
|
|
9
|
-
export interface TablePaginationProps extends Pick<TableCommonSxProps, 'className' | 'style' | 'sx'> {
|
|
10
|
-
paging: TablePaging;
|
|
11
|
-
align?: StackProps['alignItems'];
|
|
12
|
-
onChange?(page: number): void;
|
|
13
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TableSortableBodyProps as Props } from './TableSortableBody.types';
|
|
3
|
-
export declare const TableSortableBody: ({ items, columns, showOddColor, showEvenColor, onGetBodyRowStyle, onGetBodyRowSx, onGetBodyRowClassName, onGetBodyColumnClassName, onGetBodyColumnStyle, onGetBodyColumnSx, defaultAlign, defaultEllipsis, sortable, onClick, onCheckChange, }: Props) => React.JSX.Element;
|
|
4
|
-
export default TableSortableBody;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { TableColumn, TableItem, TableProps } from '../Table/Table.types';
|
|
2
|
-
import { TableBodyRowProps } from '../TableBodyRow';
|
|
3
|
-
export interface TableSortableBodyProps extends Pick<TableProps, 'showOddColor' | 'showEvenColor' | 'onGetBodyRowSx' | 'onGetBodyRowClassName' | 'onGetBodyRowStyle' | 'onGetBodyColumnClassName' | 'onGetBodyColumnSx' | 'onGetBodyColumnStyle' | 'defaultAlign' | 'defaultEllipsis' | 'sortable' | 'onClick'>, Pick<TableBodyRowProps, 'onCheckChange'> {
|
|
4
|
-
items: (TableItem & {
|
|
5
|
-
id: number | string;
|
|
6
|
-
})[];
|
|
7
|
-
columns: TableColumn[];
|
|
8
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TableSortableBodyBlockProps as Props } from './TableSortableBodyBlock.types';
|
|
3
|
-
export declare const TableSortableBodyBlock: ({ items, baseIndex, columns, showOddColor, showEvenColor, onGetBodyRowStyle, onGetBodyRowSx, onGetBodyRowClassName, onGetBodyColumnClassName, onGetBodyColumnStyle, onGetBodyColumnSx, defaultAlign, defaultEllipsis, sortable, onClick, onCheckChange, }: Props) => React.JSX.Element;
|
|
4
|
-
export default TableSortableBodyBlock;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { TableCellProps } from '@mui/material';
|
|
3
|
-
import { TableColumn, TableItem, TableProps } from '../Table/Table.types';
|
|
4
|
-
export interface TableTopHeadRowColumn {
|
|
5
|
-
colSpan?: number;
|
|
6
|
-
rowSpan?: number;
|
|
7
|
-
label?: ReactNode;
|
|
8
|
-
align?: TableCellProps['align'];
|
|
9
|
-
}
|
|
10
|
-
export type TableTopHeadRowColumnValue = TableTopHeadRowColumn | false | undefined | null;
|
|
11
|
-
export interface TableTopHeadProps<T = TableItem> {
|
|
12
|
-
caption?: ReactNode;
|
|
13
|
-
rows?: TableTopHeadRowColumnValue[] | TableTopHeadRowColumnValue[][];
|
|
14
|
-
columns: TableColumn[];
|
|
15
|
-
items?: T[];
|
|
16
|
-
defaultAlign: TableProps['defaultAlign'];
|
|
17
|
-
onCheckChange(column: TableColumn, checked: boolean): void;
|
|
18
|
-
}
|