@devtable/dashboard 14.57.5 → 14.58.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/components/plugins/viz-components/merico-stats/render/metric.d.ts +3 -1
- package/dist/components/plugins/viz-components/merico-stats/triggers/click-merico-stats.d.ts +6 -0
- package/dist/components/plugins/viz-components/merico-stats/triggers/index.d.ts +1 -0
- package/dist/components/plugins/viz-components/table/editors/tree.d.ts +8 -0
- package/dist/components/plugins/viz-components/table/render/pagination-and-row-count.d.ts +5 -6
- package/dist/components/plugins/viz-components/table/render/table-body-paginated.d.ts +7 -0
- package/dist/components/plugins/viz-components/table/render/use-cell-renderer.d.ts +11 -0
- package/dist/components/plugins/viz-components/table/type.d.ts +4 -0
- package/dist/dashboard.es.js +7997 -7860
- package/dist/dashboard.umd.js +67 -67
- package/dist/stats.html +1 -1
- package/dist/version.json +2 -2
- package/package.json +1 -1
|
@@ -2,8 +2,10 @@ import { TMericoStatsMetric } from '../type';
|
|
|
2
2
|
type Props = {
|
|
3
3
|
metric: TMericoStatsMetric;
|
|
4
4
|
variableValueMap: Record<string, string | number>;
|
|
5
|
+
onClick: (metricId: string, metricName: string) => void;
|
|
6
|
+
hasInteraction: boolean;
|
|
5
7
|
};
|
|
6
|
-
export declare const VizMericoStatsMetric: (({ metric, variableValueMap }: Props) => import('./react/jsx-runtime').JSX.Element) & {
|
|
8
|
+
export declare const VizMericoStatsMetric: (({ metric, variableValueMap, onClick, hasInteraction }: Props) => import('./react/jsx-runtime').JSX.Element) & {
|
|
7
9
|
displayName: string;
|
|
8
10
|
};
|
|
9
11
|
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ITriggerConfigProps, ITriggerSchema } from '../../../../../types/plugin';
|
|
2
|
+
export declare const ClickMericoStats: ITriggerSchema;
|
|
3
|
+
export interface IClickMericoStatsConfig {
|
|
4
|
+
metricName: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function ClickMericoStatsSettings(props: ITriggerConfigProps): import('./react/jsx-runtime').JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './click-merico-stats';
|
|
@@ -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
|
-
|
|
6
|
-
|
|
7
|
-
totalRows: number;
|
|
8
|
-
pageCount: number;
|
|
6
|
+
table: Table<AnyObject>;
|
|
7
|
+
pageSize: number;
|
|
9
8
|
};
|
|
10
|
-
export declare const PaginationOrRowCount: ({ classes,
|
|
9
|
+
export declare const PaginationOrRowCount: ({ classes, table, pageSize }: Props) => import('./react/jsx-runtime').JSX.Element | null;
|
|
11
10
|
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;
|