@devtable/dashboard 14.57.4 → 14.58.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.
@@ -0,0 +1,8 @@
1
+ import { Control, UseFormWatch } from 'react-hook-form';
2
+ import { ITableConf } from '../type';
3
+ type Props = {
4
+ control: Control<ITableConf>;
5
+ watch: UseFormWatch<ITableConf>;
6
+ };
7
+ export declare function TreeField({ control, watch }: Props): import('./react/jsx-runtime').JSX.Element;
8
+ export {};
@@ -1,11 +1,10 @@
1
+ import { Table } from '@tanstack/react-table';
2
+ import { AnyObject } from '../../../../../types';
1
3
  import { useTableStyles } from '../viz-table.styles';
2
- import { PaginationState } from '@tanstack/react-table';
3
4
  type Props = {
4
5
  classes: ReturnType<typeof useTableStyles>['classes'];
5
- pagination: PaginationState;
6
- setPagination: (pagination: PaginationState) => void;
7
- totalRows: number;
8
- pageCount: number;
6
+ table: Table<AnyObject>;
7
+ pageSize: number;
9
8
  };
10
- export declare const PaginationOrRowCount: ({ classes, pagination, setPagination, pageCount, totalRows }: Props) => import('./react/jsx-runtime').JSX.Element | null;
9
+ export declare const PaginationOrRowCount: ({ classes, table, pageSize }: Props) => import('./react/jsx-runtime').JSX.Element | null;
11
10
  export {};
@@ -0,0 +1,7 @@
1
+ import { Row } from '@tanstack/react-table';
2
+ import { AnyObject } from '../../../../../types';
3
+ type Props = {
4
+ rows: Row<AnyObject>[];
5
+ };
6
+ export declare function TableBodyPaginated({ rows }: Props): import('./react/jsx-runtime').JSX.Element;
7
+ export {};
@@ -0,0 +1,11 @@
1
+ import { Cell, CellContext } from '@tanstack/react-table';
2
+ import { AnyObject } from '../../../../../types';
3
+ import { IColumnConf, ITableCellContext, ITableConf } from '../type';
4
+ type UseCellRendererParams = {
5
+ conf: ITableConf;
6
+ getCellContext: (cell: Cell<AnyObject, unknown>) => ITableCellContext;
7
+ };
8
+ export declare function useCellRenderer({ conf, getCellContext }: UseCellRendererParams): {
9
+ createCellRenderer: (columnConf: IColumnConf, isFirstColumn: boolean) => (cell: CellContext<AnyObject, string | number>) => import('./react/jsx-runtime').JSX.Element;
10
+ };
11
+ export {};
@@ -38,6 +38,10 @@ export interface ITableConf {
38
38
  striped: boolean;
39
39
  highlightOnHover: boolean;
40
40
  pagination: TVizTablePagination;
41
+ /**
42
+ * specify the key of sub rows of the tree-like object
43
+ */
44
+ sub_rows_column_key?: string;
41
45
  }
42
46
  export declare const DEFAULT_CELL_FUNC_CONTENT: string;
43
47
  export declare const DEFAULT_CONFIG: ITableConf;