@devtable/dashboard 14.38.6 → 14.39.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.
- package/dist/components/plugins/viz-components/table/editors/pagination.d.ts +8 -0
- package/dist/components/plugins/viz-components/table/migrators/handlers.d.ts +8 -0
- package/dist/components/plugins/viz-components/table/migrators/index.d.ts +5 -7
- package/dist/components/plugins/viz-components/table/render/pagination-and-row-count.d.ts +11 -0
- package/dist/components/plugins/viz-components/table/type.d.ts +5 -0
- package/dist/dashboard.es.js +5766 -5676
- package/dist/dashboard.umd.js +72 -72
- package/dist/i18n/en.d.ts +3 -0
- package/dist/i18n/zh.d.ts +3 -0
- package/dist/stats.html +1 -1
- package/dist/version.json +2 -2
- package/package.json +1 -1
|
@@ -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 PaginationField({ control, watch }: Props): import('./react/jsx-runtime').JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IMigrationEnv } from '../../../../../components/plugins/plugin-data-migrator';
|
|
2
|
+
import { ITableConf } from '../type';
|
|
3
|
+
export declare function v3(prev: any): ITableConf;
|
|
4
|
+
export declare function v4(legacyConf: any, { panelModel }: IMigrationEnv): ITableConf;
|
|
5
|
+
export declare function v5(prev: any): ITableConf;
|
|
6
|
+
export declare function v6(prev: any): ITableConf;
|
|
7
|
+
export declare function v7(prev: any): ITableConf;
|
|
8
|
+
export declare function v8(prev: any): ITableConf;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare function v6(prev: any): ITableConf;
|
|
7
|
-
export declare function v7(prev: any): ITableConf;
|
|
1
|
+
import { VersionBasedMigrator } from '../../../../../components/plugins/plugin-data-migrator';
|
|
2
|
+
export declare class VizTableMigrator extends VersionBasedMigrator {
|
|
3
|
+
readonly VERSION = 8;
|
|
4
|
+
configVersions(): void;
|
|
5
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { useTableStyles } from '../viz-table.styles';
|
|
2
|
+
import { PaginationState } from '@tanstack/react-table';
|
|
3
|
+
type Props = {
|
|
4
|
+
classes: ReturnType<typeof useTableStyles>['classes'];
|
|
5
|
+
pagination: PaginationState;
|
|
6
|
+
setPagination: (pagination: PaginationState) => void;
|
|
7
|
+
totalRows: number;
|
|
8
|
+
pageCount: number;
|
|
9
|
+
};
|
|
10
|
+
export declare const PaginationOrRowCount: ({ classes, pagination, setPagination, pageCount, totalRows }: Props) => import('./react/jsx-runtime').JSX.Element | null;
|
|
11
|
+
export {};
|
|
@@ -9,6 +9,10 @@ export declare enum ValueType {
|
|
|
9
9
|
url = "url",
|
|
10
10
|
custom = "custom"
|
|
11
11
|
}
|
|
12
|
+
export type TVizTablePagination = {
|
|
13
|
+
page_size: number;
|
|
14
|
+
};
|
|
15
|
+
export declare function getDefaultVizTablePagination(): TVizTablePagination;
|
|
12
16
|
export type CellBackgroundColorType = string | IColorInterpolationConfig;
|
|
13
17
|
export type ColumnAlignType = HorizontalAlign;
|
|
14
18
|
export interface IColumnConf {
|
|
@@ -33,6 +37,7 @@ export interface ITableConf {
|
|
|
33
37
|
verticalSpacing: string;
|
|
34
38
|
striped: boolean;
|
|
35
39
|
highlightOnHover: boolean;
|
|
40
|
+
pagination: TVizTablePagination;
|
|
36
41
|
}
|
|
37
42
|
export declare const DEFAULT_CELL_FUNC_CONTENT: string;
|
|
38
43
|
export declare const DEFAULT_CONFIG: ITableConf;
|