@devtable/dashboard 2.2.0 → 2.5.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/dashboard.es.js +8052 -4307
- package/dist/dashboard.umd.js +41 -5
- package/package.json +22 -5
- package/dist/api-caller/index.d.ts +0 -20
- package/dist/api-caller/request.d.ts +0 -5
- package/dist/api-caller/types.d.ts +0 -11
- package/dist/contexts/context-info-context.d.ts +0 -5
- package/dist/contexts/dashboard-action-context.d.ts +0 -9
- package/dist/contexts/definition-context.d.ts +0 -7
- package/dist/contexts/filter-values-context.d.ts +0 -4
- package/dist/contexts/index.d.ts +0 -5
- package/dist/contexts/layout-state-context.d.ts +0 -11
- package/dist/contexts/panel-context.d.ts +0 -17
- package/dist/definition-editor/data-editor-modal.d.ts +0 -7
- package/dist/definition-editor/global-variables-guide.d.ts +0 -8
- package/dist/definition-editor/index.d.ts +0 -1
- package/dist/definition-editor/query-editor/data-preview.d.ts +0 -4
- package/dist/definition-editor/query-editor/editor.d.ts +0 -7
- package/dist/definition-editor/query-editor/form.d.ts +0 -8
- package/dist/definition-editor/query-editor/index.d.ts +0 -5
- package/dist/definition-editor/query-editor/preview-sql.d.ts +0 -6
- package/dist/definition-editor/query-editor/select-or-add-query.d.ts +0 -7
- package/dist/definition-editor/sql-snippet-editor/editor.d.ts +0 -5
- package/dist/definition-editor/sql-snippet-editor/index.d.ts +0 -5
- package/dist/definition-editor/sql-snippet-editor/preview-snippet.d.ts +0 -6
- package/dist/filter/filter-checkbox/editor.d.ts +0 -10
- package/dist/filter/filter-checkbox/render.d.ts +0 -9
- package/dist/filter/filter-date-range/editor.d.ts +0 -10
- package/dist/filter/filter-date-range/render.d.ts +0 -9
- package/dist/filter/filter-multi-select/editor.d.ts +0 -11
- package/dist/filter/filter-multi-select/render.d.ts +0 -9
- package/dist/filter/filter-query-field/index.d.ts +0 -8
- package/dist/filter/filter-query-field/select-data-source.d.ts +0 -8
- package/dist/filter/filter-select/editor.d.ts +0 -11
- package/dist/filter/filter-select/render.d.ts +0 -9
- package/dist/filter/filter-settings/filter-setting.d.ts +0 -11
- package/dist/filter/filter-settings/filter-settings.d.ts +0 -8
- package/dist/filter/filter-settings/index.d.ts +0 -10
- package/dist/filter/filter-settings/preview-filter.d.ts +0 -11
- package/dist/filter/filter-settings/types.d.ts +0 -4
- package/dist/filter/filter-text-input/editor.d.ts +0 -10
- package/dist/filter/filter-text-input/render.d.ts +0 -9
- package/dist/filter/filter.d.ts +0 -9
- package/dist/filter/index.d.ts +0 -9
- package/dist/index.d.ts +0 -5
- package/dist/layout/index.d.ts +0 -12
- package/dist/layout/read-only.d.ts +0 -9
- package/dist/main/actions.d.ts +0 -14
- package/dist/main/full-screen-panel.d.ts +0 -6
- package/dist/main/index.d.ts +0 -2
- package/dist/main/main.d.ts +0 -12
- package/dist/main/read-only.d.ts +0 -11
- package/dist/main/toggle-mode.d.ts +0 -8
- package/dist/main/use-filters.d.ts +0 -8
- package/dist/main/use-panel-full-screen.d.ts +0 -7
- package/dist/main/view-schema-modal.d.ts +0 -8
- package/dist/panel/error-boundary.d.ts +0 -13
- package/dist/panel/index.d.ts +0 -7
- package/dist/panel/panel-description.d.ts +0 -5
- package/dist/panel/settings/common/aggregation-selector.d.ts +0 -9
- package/dist/panel/settings/common/color-array-input.d.ts +0 -8
- package/dist/panel/settings/common/data-field-selector.d.ts +0 -12
- package/dist/panel/settings/common/mantine-color.d.ts +0 -7
- package/dist/panel/settings/common/mantine-font-weight.d.ts +0 -8
- package/dist/panel/settings/common/numbro-format-selector.d.ts +0 -13
- package/dist/panel/settings/common/text-array-input.d.ts +0 -8
- package/dist/panel/settings/index.d.ts +0 -7
- package/dist/panel/settings/panel-config/description.d.ts +0 -2
- package/dist/panel/settings/panel-config/index.d.ts +0 -5
- package/dist/panel/settings/panel-config/preview-panel.d.ts +0 -2
- package/dist/panel/settings/panel-config/title.d.ts +0 -2
- package/dist/panel/settings/pick-query/index.d.ts +0 -5
- package/dist/panel/settings/viz-config/index.d.ts +0 -5
- package/dist/panel/settings/viz-config/preview-viz.d.ts +0 -5
- package/dist/panel/settings/viz-config/viz-conf.d.ts +0 -2
- package/dist/panel/title-bar.d.ts +0 -5
- package/dist/panel/viz/bar-3d/index.d.ts +0 -9
- package/dist/panel/viz/bar-3d/panel.d.ts +0 -3
- package/dist/panel/viz/cartesian/index.d.ts +0 -10
- package/dist/panel/viz/cartesian/option/regression.d.ts +0 -20
- package/dist/panel/viz/cartesian/panel/index.d.ts +0 -3
- package/dist/panel/viz/cartesian/panel/regressions/index.d.ts +0 -11
- package/dist/panel/viz/cartesian/panel/regressions/regression-item.d.ts +0 -16
- package/dist/panel/viz/cartesian/panel/series/fields.bar.d.ts +0 -9
- package/dist/panel/viz/cartesian/panel/series/fields.line.d.ts +0 -9
- package/dist/panel/viz/cartesian/panel/series/fields.scatter.d.ts +0 -9
- package/dist/panel/viz/cartesian/panel/series/index.d.ts +0 -11
- package/dist/panel/viz/cartesian/panel/series/series-item.d.ts +0 -16
- package/dist/panel/viz/cartesian/panel/stats/index.d.ts +0 -10
- package/dist/panel/viz/cartesian/panel/stats/variable.d.ts +0 -11
- package/dist/panel/viz/cartesian/panel/y-axes.d.ts +0 -9
- package/dist/panel/viz/cartesian/type.d.ts +0 -58
- package/dist/panel/viz/index.d.ts +0 -9
- package/dist/panel/viz/pie/index.d.ts +0 -9
- package/dist/panel/viz/pie/panel.d.ts +0 -3
- package/dist/panel/viz/rich-text/index.d.ts +0 -10
- package/dist/panel/viz/rich-text/panel.d.ts +0 -3
- package/dist/panel/viz/rich-text/type.d.ts +0 -8
- package/dist/panel/viz/stats/index.d.ts +0 -10
- package/dist/panel/viz/stats/panel/index.d.ts +0 -10
- package/dist/panel/viz/stats/panel/variable.d.ts +0 -11
- package/dist/panel/viz/stats/panel/variables.d.ts +0 -10
- package/dist/panel/viz/stats/types.d.ts +0 -6
- package/dist/panel/viz/stats/update/index.d.ts +0 -15
- package/dist/panel/viz/sunburst/index.d.ts +0 -9
- package/dist/panel/viz/sunburst/panel.d.ts +0 -3
- package/dist/panel/viz/table/index.d.ts +0 -10
- package/dist/panel/viz/table/panel.d.ts +0 -3
- package/dist/panel/viz/table/type.d.ts +0 -21
- package/dist/panel/viz/table/value-type-selector.d.ts +0 -10
- package/dist/panel/viz/table/value.d.ts +0 -8
- package/dist/types/dashboard.d.ts +0 -49
- package/dist/types/filter.d.ts +0 -39
- package/dist/types/index.d.ts +0 -3
- package/dist/types/viz-panel.d.ts +0 -6
- package/dist/utils/aggregation.d.ts +0 -2
- package/dist/utils/color-mapping.d.ts +0 -9
- package/dist/utils/sql.d.ts +0 -8
- package/dist/utils/template/editor.d.ts +0 -16
- package/dist/utils/template/render.d.ts +0 -3
- package/dist/utils/template/types.d.ts +0 -21
- package/dist/vite-env.d.ts +0 -1
package/dist/panel/index.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { IDashboardPanel } from '../types/dashboard';
|
|
3
|
-
interface IPanel extends IDashboardPanel {
|
|
4
|
-
update?: (panel: IDashboardPanel) => void;
|
|
5
|
-
}
|
|
6
|
-
export declare function Panel({ viz: initialViz, queryID: initialQueryID, title: initialTitle, description: initialDesc, update, layout, id, }: IPanel): JSX.Element;
|
|
7
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { AggregationType } from "../../../utils/aggregation";
|
|
3
|
-
interface IAggregationSelector {
|
|
4
|
-
value: AggregationType;
|
|
5
|
-
onChange: (v: AggregationType) => void;
|
|
6
|
-
label: string;
|
|
7
|
-
}
|
|
8
|
-
export declare const AggregationSelector: React.ForwardRefExoticComponent<IAggregationSelector & React.RefAttributes<unknown>>;
|
|
9
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface IColorArrayInput {
|
|
3
|
-
label: React.ReactNode;
|
|
4
|
-
value: string[];
|
|
5
|
-
onChange: (value: string[]) => void;
|
|
6
|
-
}
|
|
7
|
-
export declare const ColorArrayInput: React.ForwardRefExoticComponent<IColorArrayInput & React.RefAttributes<unknown>>;
|
|
8
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Sx } from "@mantine/core";
|
|
2
|
-
import React from "react";
|
|
3
|
-
interface IDataFieldSelector {
|
|
4
|
-
label: string;
|
|
5
|
-
required?: boolean;
|
|
6
|
-
value: string;
|
|
7
|
-
onChange: (v: string) => void;
|
|
8
|
-
data: any[];
|
|
9
|
-
sx?: Sx;
|
|
10
|
-
}
|
|
11
|
-
export declare const DataFieldSelector: React.ForwardRefExoticComponent<IDataFieldSelector & React.RefAttributes<unknown>>;
|
|
12
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface IMantineFontWeightSlider {
|
|
3
|
-
label: string;
|
|
4
|
-
value: string;
|
|
5
|
-
onChange: (value: string) => void;
|
|
6
|
-
}
|
|
7
|
-
export declare const MantineFontWeightSlider: React.ForwardRefExoticComponent<IMantineFontWeightSlider & React.RefAttributes<unknown>>;
|
|
8
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export declare type TNumbroFormat = {
|
|
3
|
-
mantissa: number;
|
|
4
|
-
output: 'percent' | 'number';
|
|
5
|
-
trimMantissa?: boolean;
|
|
6
|
-
};
|
|
7
|
-
export declare const defaultNumbroFormat: TNumbroFormat;
|
|
8
|
-
interface INumbroFormatSelector {
|
|
9
|
-
value: TNumbroFormat;
|
|
10
|
-
onChange: (v: TNumbroFormat) => void;
|
|
11
|
-
}
|
|
12
|
-
export declare const NumbroFormatSelector: React.ForwardRefExoticComponent<INumbroFormatSelector & React.RefAttributes<unknown>>;
|
|
13
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface ITextArrayInput {
|
|
3
|
-
label: React.ReactNode;
|
|
4
|
-
value: string[] | number[];
|
|
5
|
-
onChange: (value: string[] | number[]) => void;
|
|
6
|
-
}
|
|
7
|
-
export declare const TextArrayInput: React.ForwardRefExoticComponent<ITextArrayInput & React.RefAttributes<unknown>>;
|
|
8
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ICartesianChartConf } from './type';
|
|
3
|
-
interface ICartesianChart {
|
|
4
|
-
conf: ICartesianChartConf;
|
|
5
|
-
data: any[];
|
|
6
|
-
width: number;
|
|
7
|
-
height: number;
|
|
8
|
-
}
|
|
9
|
-
export declare function VizCartesianChart({ conf, data, width, height }: ICartesianChart): JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ICartesianChartConf, IRegressionLineConf, IRegressionTransform } from '../type';
|
|
2
|
-
interface IRegressionDataSetItem {
|
|
3
|
-
id: string;
|
|
4
|
-
fromDatasetId?: string;
|
|
5
|
-
source?: number[][];
|
|
6
|
-
transform?: IRegressionTransform;
|
|
7
|
-
}
|
|
8
|
-
interface IRegressionSeriesItem extends IRegressionLineConf {
|
|
9
|
-
datasetId: string;
|
|
10
|
-
xAxisId: string;
|
|
11
|
-
name: string;
|
|
12
|
-
showSymbol: boolean;
|
|
13
|
-
tooltip: Record<string, any>;
|
|
14
|
-
}
|
|
15
|
-
export declare function getRegressionConfs({ regressions }: ICartesianChartConf, data: any[]): {
|
|
16
|
-
regressionDataSets: IRegressionDataSetItem[];
|
|
17
|
-
regressionSeries: IRegressionSeriesItem[];
|
|
18
|
-
regressionXAxes: Record<string, any>[];
|
|
19
|
-
};
|
|
20
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Control, UseFormGetValues, UseFormWatch } from "react-hook-form";
|
|
3
|
-
import { ICartesianChartConf } from "../../type";
|
|
4
|
-
interface IRegressionsField {
|
|
5
|
-
control: Control<ICartesianChartConf, any>;
|
|
6
|
-
watch: UseFormWatch<ICartesianChartConf>;
|
|
7
|
-
getValues: UseFormGetValues<ICartesianChartConf>;
|
|
8
|
-
data: any[];
|
|
9
|
-
}
|
|
10
|
-
export declare function RegressionsField({ control, watch, getValues, data }: IRegressionsField): JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Control, UseFieldArrayRemove } from "react-hook-form";
|
|
3
|
-
import { ICartesianChartConf, IRegressionConf } from "../../type";
|
|
4
|
-
interface IRegressionField {
|
|
5
|
-
control: Control<ICartesianChartConf, any>;
|
|
6
|
-
regressionItem: IRegressionConf;
|
|
7
|
-
index: number;
|
|
8
|
-
remove: UseFieldArrayRemove;
|
|
9
|
-
yAxisOptions: {
|
|
10
|
-
label: string;
|
|
11
|
-
value: string;
|
|
12
|
-
}[];
|
|
13
|
-
data: any[];
|
|
14
|
-
}
|
|
15
|
-
export declare function RegressionField({ control, regressionItem, index, remove, yAxisOptions, data }: IRegressionField): JSX.Element;
|
|
16
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Control } from "react-hook-form";
|
|
3
|
-
import { ICartesianChartConf } from "../../type";
|
|
4
|
-
interface IBarFields {
|
|
5
|
-
control: Control<ICartesianChartConf, any>;
|
|
6
|
-
index: number;
|
|
7
|
-
}
|
|
8
|
-
export declare function BarFields({ control, index, }: IBarFields): JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Control } from 'react-hook-form';
|
|
3
|
-
import { ICartesianChartConf } from '../../type';
|
|
4
|
-
interface ILineFields {
|
|
5
|
-
control: Control<ICartesianChartConf, any>;
|
|
6
|
-
index: number;
|
|
7
|
-
}
|
|
8
|
-
export declare function LineFields({ control, index }: ILineFields): JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Control } from 'react-hook-form';
|
|
3
|
-
import { ICartesianChartConf } from '../../type';
|
|
4
|
-
interface IScatterFields {
|
|
5
|
-
control: Control<ICartesianChartConf, any>;
|
|
6
|
-
index: number;
|
|
7
|
-
}
|
|
8
|
-
export declare function ScatterFields({ control, index }: IScatterFields): JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Control, UseFormGetValues, UseFormWatch } from "react-hook-form";
|
|
3
|
-
import { ICartesianChartConf } from "../../type";
|
|
4
|
-
interface ISeriesField {
|
|
5
|
-
control: Control<ICartesianChartConf, any>;
|
|
6
|
-
watch: UseFormWatch<ICartesianChartConf>;
|
|
7
|
-
getValues: UseFormGetValues<ICartesianChartConf>;
|
|
8
|
-
data: any[];
|
|
9
|
-
}
|
|
10
|
-
export declare function SeriesField({ control, watch, getValues, data }: ISeriesField): JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Control, UseFieldArrayRemove } from "react-hook-form";
|
|
3
|
-
import { ICartesianChartConf, ICartesianChartSeriesItem } from "../../type";
|
|
4
|
-
interface ISeriesItemField {
|
|
5
|
-
control: Control<ICartesianChartConf, any>;
|
|
6
|
-
index: number;
|
|
7
|
-
remove: UseFieldArrayRemove;
|
|
8
|
-
seriesItem: ICartesianChartSeriesItem;
|
|
9
|
-
yAxisOptions: {
|
|
10
|
-
label: string;
|
|
11
|
-
value: string;
|
|
12
|
-
}[];
|
|
13
|
-
data: any[];
|
|
14
|
-
}
|
|
15
|
-
export declare function SeriesItemField({ control, index, remove, seriesItem, yAxisOptions, data }: ISeriesItemField): JSX.Element;
|
|
16
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Control, UseFormWatch } from "react-hook-form";
|
|
3
|
-
import { ICartesianChartConf } from "../../type";
|
|
4
|
-
interface IVariablesField {
|
|
5
|
-
control: Control<ICartesianChartConf, any>;
|
|
6
|
-
watch: UseFormWatch<ICartesianChartConf>;
|
|
7
|
-
data: any[];
|
|
8
|
-
}
|
|
9
|
-
export declare function StatsField({ control, watch, data }: IVariablesField): JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Control, UseFieldArrayRemove } from "react-hook-form";
|
|
3
|
-
import { ICartesianChartConf } from "../../type";
|
|
4
|
-
interface VariableField {
|
|
5
|
-
control: Control<ICartesianChartConf, any>;
|
|
6
|
-
index: number;
|
|
7
|
-
remove: UseFieldArrayRemove;
|
|
8
|
-
data: any[];
|
|
9
|
-
}
|
|
10
|
-
export declare function VariableField({ control, index, remove, data }: VariableField): JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Control, UseFormWatch } from "react-hook-form";
|
|
3
|
-
import { ICartesianChartConf } from "../type";
|
|
4
|
-
interface IYAxesField {
|
|
5
|
-
control: Control<ICartesianChartConf, any>;
|
|
6
|
-
watch: UseFormWatch<ICartesianChartConf>;
|
|
7
|
-
}
|
|
8
|
-
export declare function YAxesField({ control, watch }: IYAxesField): JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { IVizPanelProps } from "../../../types";
|
|
2
|
-
import { ITemplateVariable } from "../../../utils/template/types";
|
|
3
|
-
import { TNumbroFormat } from "../../settings/common/numbro-format-selector";
|
|
4
|
-
export interface ICartesianChartSeriesItem {
|
|
5
|
-
type: 'line' | 'bar' | 'scatter';
|
|
6
|
-
name: string;
|
|
7
|
-
showSymbol: false;
|
|
8
|
-
symbolSize: number;
|
|
9
|
-
y_axis_data_key: string;
|
|
10
|
-
yAxisIndex: number;
|
|
11
|
-
label_position?: string;
|
|
12
|
-
stack: string;
|
|
13
|
-
color?: string;
|
|
14
|
-
barWidth: string;
|
|
15
|
-
smooth: boolean;
|
|
16
|
-
step: false | 'start' | 'middle' | 'end';
|
|
17
|
-
}
|
|
18
|
-
export interface IYAxisConf {
|
|
19
|
-
name: string;
|
|
20
|
-
label_formatter: TNumbroFormat;
|
|
21
|
-
}
|
|
22
|
-
export interface IRegressionTransform {
|
|
23
|
-
type: 'ecStat:regression';
|
|
24
|
-
config: {
|
|
25
|
-
method: 'linear' | 'exponential' | 'logarithmic' | 'polynomial';
|
|
26
|
-
order: number;
|
|
27
|
-
formulaOn: 'end';
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
export interface IRegressionLineConf {
|
|
31
|
-
type: 'line';
|
|
32
|
-
yAxisIndex: number;
|
|
33
|
-
color: string;
|
|
34
|
-
}
|
|
35
|
-
export interface IRegressionConf {
|
|
36
|
-
transform: IRegressionTransform;
|
|
37
|
-
plot: IRegressionLineConf;
|
|
38
|
-
name: string;
|
|
39
|
-
y_axis_data_key: string;
|
|
40
|
-
}
|
|
41
|
-
export interface ICartesianChartConf {
|
|
42
|
-
x_axis_data_key: string;
|
|
43
|
-
x_axis_name: string;
|
|
44
|
-
y_axes: IYAxisConf[];
|
|
45
|
-
series: ICartesianChartSeriesItem[];
|
|
46
|
-
regressions: IRegressionConf[];
|
|
47
|
-
stats: {
|
|
48
|
-
templates: {
|
|
49
|
-
top: string;
|
|
50
|
-
bottom: string;
|
|
51
|
-
};
|
|
52
|
-
variables: ITemplateVariable[];
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
export interface IVizCartesianChartPanel extends Omit<IVizPanelProps, 'conf' | 'setConf'> {
|
|
56
|
-
conf: ICartesianChartConf;
|
|
57
|
-
setConf: (values: ICartesianChartConf) => void;
|
|
58
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { IRichTextConf } from './type';
|
|
3
|
-
interface IRichText {
|
|
4
|
-
conf: IRichTextConf;
|
|
5
|
-
data: any[];
|
|
6
|
-
width: number;
|
|
7
|
-
height: number;
|
|
8
|
-
}
|
|
9
|
-
export declare function VizRichText({ conf, width, height }: IRichText): JSX.Element | null;
|
|
10
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { IVizStatsConf } from './types';
|
|
3
|
-
interface IVizStats {
|
|
4
|
-
conf: IVizStatsConf;
|
|
5
|
-
data: any;
|
|
6
|
-
width: number;
|
|
7
|
-
height: number;
|
|
8
|
-
}
|
|
9
|
-
export declare function VizStats({ conf: { template, variables, align }, data }: IVizStats): JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { IVizPanelProps } from "../../../../types/viz-panel";
|
|
3
|
-
import { IVizStatsConf } from "../types";
|
|
4
|
-
import { ILegacyStatsConf } from "../update";
|
|
5
|
-
interface IVizStatsPanel extends Omit<IVizPanelProps, 'conf' | 'setConf'> {
|
|
6
|
-
conf: IVizStatsConf | ILegacyStatsConf;
|
|
7
|
-
setConf: (conf: IVizStatsConf) => void;
|
|
8
|
-
}
|
|
9
|
-
export declare function VizStatsPanel({ conf, setConf, data }: IVizStatsPanel): JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Control, UseFieldArrayRemove } from "react-hook-form";
|
|
3
|
-
import { IVizStatsConf } from "../types";
|
|
4
|
-
interface VariableField {
|
|
5
|
-
control: Control<IVizStatsConf, any>;
|
|
6
|
-
index: number;
|
|
7
|
-
remove: UseFieldArrayRemove;
|
|
8
|
-
data: any[];
|
|
9
|
-
}
|
|
10
|
-
export declare function VariableField({ control, index, remove, data }: VariableField): JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Control, UseFormWatch } from "react-hook-form";
|
|
3
|
-
import { IVizStatsConf } from "../types";
|
|
4
|
-
interface IVariablesField {
|
|
5
|
-
control: Control<IVizStatsConf, any>;
|
|
6
|
-
watch: UseFormWatch<IVizStatsConf>;
|
|
7
|
-
data: any[];
|
|
8
|
-
}
|
|
9
|
-
export declare function VariablesField({ control, watch, data }: IVariablesField): JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { TNumbroFormat } from "../../../settings/common/numbro-format-selector";
|
|
2
|
-
import { IVizStatsConf } from "../types";
|
|
3
|
-
export interface ILegacyStatsConf {
|
|
4
|
-
align: 'center';
|
|
5
|
-
size: string;
|
|
6
|
-
weight: string;
|
|
7
|
-
color: any;
|
|
8
|
-
content: {
|
|
9
|
-
prefix: string;
|
|
10
|
-
data_field: string;
|
|
11
|
-
formatter: TNumbroFormat;
|
|
12
|
-
postfix: string;
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
export declare function updateSchema(legacyConf: IVizStatsConf | ILegacyStatsConf): IVizStatsConf;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ITableConf } from "./type";
|
|
3
|
-
interface IVizTable {
|
|
4
|
-
conf: ITableConf;
|
|
5
|
-
data: any;
|
|
6
|
-
width: number;
|
|
7
|
-
height: number;
|
|
8
|
-
}
|
|
9
|
-
export declare function VizTable({ conf, data, width, height }: IVizTable): JSX.Element;
|
|
10
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export declare enum ValueType {
|
|
2
|
-
string = "string",
|
|
3
|
-
number = "number",
|
|
4
|
-
eloc = "eloc",
|
|
5
|
-
percentage = "percentage"
|
|
6
|
-
}
|
|
7
|
-
export interface IColumnConf {
|
|
8
|
-
label: string;
|
|
9
|
-
value_field: string;
|
|
10
|
-
value_type: ValueType;
|
|
11
|
-
}
|
|
12
|
-
export interface ITableConf {
|
|
13
|
-
id_field: string;
|
|
14
|
-
use_raw_columns: boolean;
|
|
15
|
-
columns: IColumnConf[];
|
|
16
|
-
fontSize: string;
|
|
17
|
-
horizontalSpacing: string;
|
|
18
|
-
verticalSpacing: string;
|
|
19
|
-
striped: boolean;
|
|
20
|
-
highlightOnHover: boolean;
|
|
21
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Sx } from "@mantine/core";
|
|
3
|
-
interface IValueTypeSelector {
|
|
4
|
-
label: string;
|
|
5
|
-
value: string;
|
|
6
|
-
onChange: (value: string) => void;
|
|
7
|
-
sx?: Sx;
|
|
8
|
-
}
|
|
9
|
-
export declare function ValueTypeSelector({ label, value, onChange, sx }: IValueTypeSelector): JSX.Element;
|
|
10
|
-
export {};
|