@devtable/dashboard 10.34.6 → 10.34.7
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/components/plugins/viz-components/table/{value.d.ts → render/cell-value.d.ts} +1 -1
- package/dist/components/plugins/viz-components/table/render/table-body.d.ts +9 -0
- package/dist/components/plugins/viz-components/table/render/use-get-cell-context.d.ts +10 -0
- package/dist/components/plugins/viz-components/table/render/viz-table-component.d.ts +12 -0
- package/dist/dashboard.es.js +4352 -4314
- package/dist/dashboard.umd.js +59 -59
- package/dist/stats.html +1 -1
- package/package.json +2 -2
- /package/dist/components/plugins/viz-components/table/{viz-table.d.ts → render/index.d.ts} +0 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Row } from '@tanstack/react-table';
|
|
3
|
+
import { AnyObject } from '~/types';
|
|
4
|
+
declare type Props = {
|
|
5
|
+
tableContainerRef: React.RefObject<HTMLDivElement>;
|
|
6
|
+
rows: Row<AnyObject>[];
|
|
7
|
+
};
|
|
8
|
+
export declare function TableBody({ tableContainerRef, rows }: Props): import('./react/jsx-runtime').JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Cell } from '@tanstack/react-table';
|
|
2
|
+
import { AnyObject } from '~/types';
|
|
3
|
+
import { VizInstance } from '~/types/plugin';
|
|
4
|
+
import { IVizManager } from '../../..';
|
|
5
|
+
import { TableCellContext } from '../table-cell-context';
|
|
6
|
+
export declare const useGetCellContext: (context: {
|
|
7
|
+
vizManager: IVizManager;
|
|
8
|
+
instance: VizInstance;
|
|
9
|
+
getColIndex: (cell: Cell<AnyObject, unknown>) => number;
|
|
10
|
+
}) => (cell: Cell<AnyObject, unknown>) => TableCellContext;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { VizInstance, VizViewContext } from '~/types/plugin';
|
|
2
|
+
import { ITableConf } from '../type';
|
|
3
|
+
declare type IVizTableComponent = {
|
|
4
|
+
queryData: TQueryData;
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
conf: ITableConf;
|
|
8
|
+
instance: VizInstance;
|
|
9
|
+
context: VizViewContext;
|
|
10
|
+
};
|
|
11
|
+
export declare function VizTableComponent({ queryData, width, height, conf, context, instance }: IVizTableComponent): import('./react/jsx-runtime').JSX.Element;
|
|
12
|
+
export {};
|