@devtable/dashboard 14.2.0 → 14.3.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.
@@ -0,0 +1,6 @@
1
+ import { NameColorMapRow } from '../../type';
2
+ type AddARowProps = {
3
+ append: (v: NameColorMapRow) => void;
4
+ };
5
+ export declare const AddARow: ({ append }: AddARowProps) => import('./react/jsx-runtime').JSX.Element;
6
+ export {};
@@ -0,0 +1 @@
1
+ export * from './pie-color-map-editor';
@@ -0,0 +1,5 @@
1
+ export type PieChartPaletteOption = {
2
+ name: string;
3
+ colors: string[];
4
+ };
5
+ export declare const PieChartPalettes: PieChartPaletteOption[];
@@ -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,7 @@
1
+ import { NameColorMapRow } from '../../type';
2
+ type Props = {
3
+ value: NameColorMapRow[];
4
+ onChange: (v: NameColorMapRow[]) => void;
5
+ };
6
+ export declare const SelectPalette: ({ value, onChange }: Props) => import('./react/jsx-runtime').JSX.Element;
7
+ 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;