@devtable/dashboard 14.2.0 → 14.3.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/pie-chart/editors/pie-color-map-editor/add-a-row.d.ts +6 -0
- package/dist/components/plugins/viz-components/pie-chart/editors/pie-color-map-editor/index.d.ts +1 -0
- package/dist/components/plugins/viz-components/pie-chart/editors/pie-color-map-editor/palette.d.ts +5 -0
- package/dist/components/plugins/viz-components/pie-chart/editors/pie-color-map-editor/pie-color-map-editor.d.ts +10 -0
- package/dist/components/plugins/viz-components/pie-chart/editors/pie-color-map-editor/row-editor.d.ts +13 -0
- package/dist/components/plugins/viz-components/pie-chart/editors/pie-color-map-editor/select-palette.d.ts +7 -0
- package/dist/components/plugins/viz-components/pie-chart/migrators/index.d.ts +6 -0
- package/dist/components/plugins/viz-components/pie-chart/type.d.ts +7 -0
- package/dist/dashboard.es.js +5156 -4921
- package/dist/dashboard.umd.js +77 -77
- package/dist/stats.html +1 -1
- package/dist/version.json +2 -2
- package/package.json +1 -1
package/dist/components/plugins/viz-components/pie-chart/editors/pie-color-map-editor/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './pie-color-map-editor';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { NameColorMapRow } from '../../type';
|
|
3
|
+
type Props = {
|
|
4
|
+
value: NameColorMapRow[];
|
|
5
|
+
onChange: (v: NameColorMapRow[]) => void;
|
|
6
|
+
zIndex?: number;
|
|
7
|
+
names: string[];
|
|
8
|
+
};
|
|
9
|
+
export declare const PieColorMapEditor: import('./react').ForwardRefExoticComponent<Props & import('./react').RefAttributes<HTMLDivElement>>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { NameColorMapRow } from '../../type';
|
|
2
|
+
type RowFieldItem = {
|
|
3
|
+
id: string;
|
|
4
|
+
} & NameColorMapRow;
|
|
5
|
+
type NameColorMapRowProps = {
|
|
6
|
+
row: RowFieldItem;
|
|
7
|
+
handleChange: (v: RowFieldItem) => void;
|
|
8
|
+
handleRemove: () => void;
|
|
9
|
+
index: number;
|
|
10
|
+
names: string[];
|
|
11
|
+
};
|
|
12
|
+
export declare const RowEditor: ({ row, index, handleChange, handleRemove, names }: NameColorMapRowProps) => import('./react/jsx-runtime').JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IMigrationEnv } from '../../../../../components/plugins/plugin-data-migrator';
|
|
2
|
+
import { IPieChartConf } from '../type';
|
|
3
|
+
export declare function v2(legacyConf: $TSFixMe): IPieChartConf;
|
|
4
|
+
export declare function v3(legacyConf: any, { panelModel }: IMigrationEnv): IPieChartConf;
|
|
5
|
+
export declare function v4(legacyConf: any): IPieChartConf;
|
|
6
|
+
export declare function v5(legacyConf: any): IPieChartConf;
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
+
export type NameColorMapRow = {
|
|
2
|
+
name: string;
|
|
3
|
+
color: string;
|
|
4
|
+
};
|
|
1
5
|
export interface IPieChartConf {
|
|
2
6
|
label_field: TDataKey;
|
|
3
7
|
value_field: TDataKey;
|
|
4
8
|
color_field: TDataKey;
|
|
5
9
|
radius: [string, string];
|
|
10
|
+
color: {
|
|
11
|
+
map: NameColorMapRow[];
|
|
12
|
+
};
|
|
6
13
|
}
|
|
7
14
|
export declare const DEFAULT_CONFIG: IPieChartConf;
|