@vizzly/dashboard 0.14.4-dev-1b2e5fd3f38f3c4a3b595e387ddc47c71604884e → 0.14.4-dev-8ac01e0d943406d497cfce5237246c35efe2277d
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/index.js +1 -1
- package/dist/shared-ui/src/components/AreaChart/AreaChart.d.ts +1 -21
- package/dist/shared-ui/src/components/BarChart/BarChart.d.ts +1 -1
- package/dist/shared-ui/src/components/ComboChart/ComboChart.d.ts +2 -22
- package/dist/shared-ui/src/components/Component/types.d.ts +67 -0
- package/dist/shared-ui/src/components/DataTable/DataTable.d.ts +3 -25
- package/dist/shared-ui/src/components/Drilldown/ChartDrilldown.d.ts +1 -3
- package/dist/shared-ui/src/components/FunnelChart/FunnelChart.d.ts +1 -1
- package/dist/shared-ui/src/components/HeadlineStats/HeadlineStats.d.ts +1 -5
- package/dist/shared-ui/src/components/LineChart/LineChart.d.ts +1 -21
- package/dist/shared-ui/src/components/LineChartV2/LineChartV2.d.ts +1 -20
- package/dist/shared-ui/src/components/MercatorMap/MercatorMap.d.ts +1 -18
- package/dist/shared-ui/src/components/PieChart/PieChart.d.ts +1 -19
- package/dist/shared-ui/src/components/Progress/Progress.d.ts +1 -19
- package/dist/shared-ui/src/components/RichText/RichText.d.ts +1 -20
- package/dist/shared-ui/src/components/ScatterChart/ScatterChart.d.ts +1 -20
- package/dist/shared-ui/src/components/SingleStat/SingleStat.d.ts +1 -19
- package/package.json +1 -1
- package/dist/shared-ui/src/components/BarChart/types.d.ts +0 -23
- package/dist/shared-ui/src/components/FunnelChart/types.d.ts +0 -22
|
@@ -1,23 +1,3 @@
|
|
|
1
1
|
import { FunctionComponent } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { Component as ComponentType } from '../../../../shared-logic/src/Component/types';
|
|
4
|
-
import { DataSet as DataSetType } from '../../../../shared-logic/src/DataSet/types';
|
|
5
|
-
import { Result } from '../../../../shared-logic/src/Result/types';
|
|
6
|
-
import { DashboardBehaviour, IdPrefix } from '../../contexts/DashboardBehaviour/types';
|
|
7
|
-
import { AdditionalFilter } from '../../../../shared-logic/src/AdditionalFilter/types';
|
|
8
|
-
export declare type AreaChartProps = {
|
|
9
|
-
runQueriesCallback: VizzlyComponents.runQueriesCallbackInternal;
|
|
10
|
-
component: ComponentType<ComponentType.AreaChartAttributes>;
|
|
11
|
-
setResults: (results: (Result | null)[]) => void;
|
|
12
|
-
setLocalFilters: (localFilters: ComponentType['localFilters']) => void;
|
|
13
|
-
globalFilters: AdditionalFilter[];
|
|
14
|
-
dataSet: DataSetType;
|
|
15
|
-
id: string;
|
|
16
|
-
dashboardBehaviour: DashboardBehaviour;
|
|
17
|
-
sm?: boolean;
|
|
18
|
-
library?: boolean;
|
|
19
|
-
idPrefix: IdPrefix;
|
|
20
|
-
updateComponentAttributes: (attributes: ComponentType.AreaChartAttributes) => void;
|
|
21
|
-
setPartialAttributes: (attributes: Partial<ComponentType.AreaChartAttributes>) => void;
|
|
22
|
-
};
|
|
2
|
+
import { AreaChartProps } from '../Component/types';
|
|
23
3
|
export declare const AreaChart: FunctionComponent<AreaChartProps>;
|
|
@@ -1,23 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import { DataSet as DataSetType } from '../../../../shared-logic/src/DataSet/types';
|
|
5
|
-
import { Result } from '../../../../shared-logic/src/Result/types';
|
|
6
|
-
import { DashboardBehaviour, IdPrefix } from '../../contexts/DashboardBehaviour/types';
|
|
7
|
-
import { AdditionalFilter } from '../../../../shared-logic/src/AdditionalFilter/types';
|
|
8
|
-
declare type Props = {
|
|
9
|
-
runQueriesCallback: VizzlyComponents.runQueriesCallbackInternal;
|
|
10
|
-
component: ComponentType<ComponentType.ComboChartAttributes>;
|
|
11
|
-
setResults: (results: (Result | null)[]) => void;
|
|
12
|
-
setLocalFilters: (localFilters: ComponentType['localFilters']) => void;
|
|
13
|
-
globalFilters: AdditionalFilter[];
|
|
14
|
-
dataSet: DataSetType;
|
|
15
|
-
id: string;
|
|
16
|
-
dashboardBehaviour: DashboardBehaviour;
|
|
17
|
-
sm?: boolean;
|
|
18
|
-
library?: boolean;
|
|
19
|
-
idPrefix: IdPrefix;
|
|
20
|
-
setPartialAttributes: (attributes: Partial<ComponentType.ComboChartAttributes>) => void;
|
|
21
|
-
};
|
|
22
|
-
export declare const ComboChart: (props: Props) => JSX.Element;
|
|
23
|
-
export {};
|
|
2
|
+
import { ComboChartProps } from '../Component/types';
|
|
3
|
+
export declare const ComboChart: (props: ComboChartProps) => JSX.Element;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { VizzlyComponents } from '../../types';
|
|
3
|
+
import { Component as ComponentType } from '../../../../shared-logic/src/Component/types';
|
|
4
|
+
import { DataSet as DataSetType } from '../../../../shared-logic/src/DataSet/types';
|
|
5
|
+
import { Result } from '../../../../shared-logic/src/Result/types';
|
|
6
|
+
import { AdditionalFilter } from '../../../../shared-logic/src/AdditionalFilter/types';
|
|
7
|
+
import { MapPosition } from '../../../../charts/src/MercatorMap';
|
|
8
|
+
import { DashboardBehaviour, IdPrefix } from '../../contexts/DashboardBehaviour/types';
|
|
9
|
+
interface BaseChartProps<AttributesType> {
|
|
10
|
+
runQueriesCallback: VizzlyComponents.runQueriesCallbackInternal;
|
|
11
|
+
component: ComponentType<AttributesType>;
|
|
12
|
+
setResults: (results: (Result | null)[]) => void;
|
|
13
|
+
setLocalFilters: (localFilters: ComponentType['localFilters']) => void;
|
|
14
|
+
globalFilters: AdditionalFilter[];
|
|
15
|
+
dataSet: DataSetType;
|
|
16
|
+
id: string;
|
|
17
|
+
dashboardBehaviour: DashboardBehaviour;
|
|
18
|
+
library?: boolean;
|
|
19
|
+
idPrefix: IdPrefix;
|
|
20
|
+
}
|
|
21
|
+
interface ChartPropsWithPartialAttributes<T> extends BaseChartProps<T> {
|
|
22
|
+
setPartialAttributes: (attributes: Partial<T>) => void;
|
|
23
|
+
}
|
|
24
|
+
interface ChartPropsWithAttributesUpdate<T> extends BaseChartProps<T> {
|
|
25
|
+
updateComponentAttributes: (attributes: T) => void;
|
|
26
|
+
}
|
|
27
|
+
export declare type ScatterChartProps = ChartPropsWithPartialAttributes<ComponentType.ScatterChartAttributes> & {
|
|
28
|
+
sm?: boolean;
|
|
29
|
+
};
|
|
30
|
+
export declare type BarChartProps = ChartPropsWithPartialAttributes<ComponentType.BarChartAttributes> & ChartPropsWithAttributesUpdate<ComponentType.BarChartAttributes | ComponentType.HorizontalBarChartAttributes> & {
|
|
31
|
+
sm?: boolean;
|
|
32
|
+
onViewClick?: (data: ComponentType.ChartOnViewClick, query: ComponentType.OnViewClickQuery) => void;
|
|
33
|
+
editor?: boolean;
|
|
34
|
+
};
|
|
35
|
+
export declare type AreaChartProps = ChartPropsWithPartialAttributes<ComponentType.AreaChartAttributes> & ChartPropsWithAttributesUpdate<ComponentType.AreaChartAttributes> & {
|
|
36
|
+
sm?: boolean;
|
|
37
|
+
};
|
|
38
|
+
export declare type LineChartProps = ChartPropsWithPartialAttributes<ComponentType.LineChartAttributes> & ChartPropsWithAttributesUpdate<ComponentType.LineChartAttributes> & {
|
|
39
|
+
sm?: boolean;
|
|
40
|
+
};
|
|
41
|
+
export declare type LineChartV2Props = ChartPropsWithPartialAttributes<ComponentType.LineChartV2Attributes> & ChartPropsWithAttributesUpdate<ComponentType.LineChartV2Attributes>;
|
|
42
|
+
export declare type PieChartProps = ChartPropsWithPartialAttributes<ComponentType.PieChartAttributes> & {
|
|
43
|
+
editor?: boolean;
|
|
44
|
+
};
|
|
45
|
+
export declare type SingleStatProps = ChartPropsWithPartialAttributes<ComponentType.SingleStatAttributes> & ChartPropsWithAttributesUpdate<ComponentType.SingleStatAttributes>;
|
|
46
|
+
export declare type ProgressProps = ChartPropsWithPartialAttributes<ComponentType.ProgressAttributes> & {
|
|
47
|
+
height?: number;
|
|
48
|
+
};
|
|
49
|
+
export declare type DataTableProps = ChartPropsWithPartialAttributes<ComponentType.DataTableAttributes> & ChartPropsWithAttributesUpdate<ComponentType.DataTableAttributes> & {
|
|
50
|
+
displayColumns?: string[];
|
|
51
|
+
onViewClick?: (data: ComponentType.ChartOnViewClick, query?: ComponentType.OnViewClickQuery) => void;
|
|
52
|
+
renderTableCell?: (data: ComponentType.RenderTableCell) => React.ReactNode | string | undefined;
|
|
53
|
+
};
|
|
54
|
+
export declare type ComboChartProps = ChartPropsWithPartialAttributes<ComponentType.ComboChartAttributes> & {
|
|
55
|
+
sm?: boolean;
|
|
56
|
+
};
|
|
57
|
+
export declare type MercatorMapProps = BaseChartProps<ComponentType.MercatorMapAttributes> & {
|
|
58
|
+
onPositionChange: (newPosition: MapPosition) => void;
|
|
59
|
+
};
|
|
60
|
+
export declare type FunnelChartProps = ChartPropsWithPartialAttributes<ComponentType.FunnelChartAttributes> & ChartPropsWithAttributesUpdate<ComponentType.FunnelChartAttributes> & {
|
|
61
|
+
sm?: boolean;
|
|
62
|
+
onViewClick?: (data: ComponentType.ChartOnViewClick) => void;
|
|
63
|
+
};
|
|
64
|
+
export declare type RichTextProps = ChartPropsWithPartialAttributes<ComponentType.RichTextAttributes> & ChartPropsWithAttributesUpdate<ComponentType.RichTextAttributes> & {
|
|
65
|
+
editor?: boolean;
|
|
66
|
+
};
|
|
67
|
+
export {};
|
|
@@ -1,25 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import { DataSet as DataSetType } from '../../../../shared-logic/src/DataSet/types';
|
|
5
|
-
import { Result as ResultType } from '../../../../shared-logic/src/Result/types';
|
|
6
|
-
import { DashboardBehaviour } from '../../contexts/DashboardBehaviour/types';
|
|
7
|
-
import { AdditionalFilter } from '../../../../shared-logic/src/AdditionalFilter/types';
|
|
8
|
-
declare type Props = {
|
|
9
|
-
runQueriesCallback: VizzlyComponents.runQueriesCallbackInternal;
|
|
10
|
-
component: ComponentType<ComponentType.DataTableAttributes>;
|
|
11
|
-
setResults: (results: (ResultType | null)[]) => void;
|
|
12
|
-
setLocalFilters: (localFilters: ComponentType['localFilters']) => void;
|
|
13
|
-
globalFilters: AdditionalFilter[];
|
|
14
|
-
dataSet: DataSetType;
|
|
15
|
-
updateComponentAttributes: (newAttributes: ComponentType.DataTableAttributes) => void;
|
|
16
|
-
setPartialAttributes: (attributes: Partial<ComponentType.DataTableAttributes>) => void;
|
|
17
|
-
id: string;
|
|
18
|
-
dashboardBehaviour: DashboardBehaviour;
|
|
19
|
-
displayColumns?: string[];
|
|
20
|
-
library?: boolean;
|
|
21
|
-
onViewClick?: (data: Component.ChartOnViewClick, query?: Component.OnViewClickQuery) => void;
|
|
22
|
-
renderTableCell?: (data: ComponentType.RenderTableCell) => React.ReactNode | string | undefined;
|
|
23
|
-
};
|
|
24
|
-
export declare const DataTable: (props: Props) => JSX.Element | null;
|
|
25
|
-
export {};
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DataTableProps } from '../Component/types';
|
|
3
|
+
export declare const DataTable: (props: DataTableProps) => JSX.Element | null;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { FunctionComponent } from 'react';
|
|
2
2
|
import { OnPointerUp } from '../../../../charts/src/types';
|
|
3
|
-
import { BarChartProps } from '../
|
|
4
|
-
import { LineChartProps } from '../LineChart/LineChart';
|
|
5
|
-
import { AreaChartProps } from '../AreaChart/AreaChart';
|
|
3
|
+
import { AreaChartProps, BarChartProps, LineChartProps } from '../Component/types';
|
|
6
4
|
export declare const ChartDrilldown: FunctionComponent<{
|
|
7
5
|
onClose: () => void;
|
|
8
6
|
onDrilldown: OnPointerUp<object> | null;
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
import { FunctionComponent } from 'react';
|
|
2
|
-
import { BarChartProps } from '../
|
|
3
|
-
import { FunnelChartProps } from '../FunnelChart/types';
|
|
4
|
-
import { AreaChartProps } from '../AreaChart/AreaChart';
|
|
5
|
-
import { LineChartProps } from '../LineChart/LineChart';
|
|
6
|
-
import { LineChartV2Props } from '../LineChartV2/LineChartV2';
|
|
2
|
+
import { AreaChartProps, BarChartProps, FunnelChartProps, LineChartProps, LineChartV2Props } from '../Component/types';
|
|
7
3
|
export declare type HeadlineStatsProps = LineChartProps | BarChartProps | AreaChartProps | FunnelChartProps | LineChartV2Props;
|
|
8
4
|
export declare const HeadlineStats: FunctionComponent<HeadlineStatsProps>;
|
|
@@ -1,23 +1,3 @@
|
|
|
1
1
|
import { FunctionComponent } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { Component as ComponentType } from '../../../../shared-logic/src/Component/types';
|
|
4
|
-
import { DataSet as DataSetType } from '../../../../shared-logic/src/DataSet/types';
|
|
5
|
-
import { Result } from '../../../../shared-logic/src/Result/types';
|
|
6
|
-
import { DashboardBehaviour, IdPrefix } from '../../contexts/DashboardBehaviour/types';
|
|
7
|
-
import { AdditionalFilter } from '../../../../shared-logic/src/AdditionalFilter/types';
|
|
8
|
-
export declare type LineChartProps = {
|
|
9
|
-
runQueriesCallback: VizzlyComponents.runQueriesCallbackInternal;
|
|
10
|
-
component: ComponentType<ComponentType.LineChartAttributes>;
|
|
11
|
-
setResults: (results: (Result | null)[]) => void;
|
|
12
|
-
setLocalFilters: (localFilters: ComponentType['localFilters']) => void;
|
|
13
|
-
globalFilters: AdditionalFilter[];
|
|
14
|
-
dataSet: DataSetType;
|
|
15
|
-
id: string;
|
|
16
|
-
dashboardBehaviour: DashboardBehaviour;
|
|
17
|
-
sm?: boolean;
|
|
18
|
-
library?: boolean;
|
|
19
|
-
setPartialAttributes: (attributes: Partial<ComponentType.LineChartAttributes>) => void;
|
|
20
|
-
updateComponentAttributes: (attributes: ComponentType.LineChartAttributes) => void;
|
|
21
|
-
idPrefix: IdPrefix;
|
|
22
|
-
};
|
|
2
|
+
import { LineChartProps } from '../Component/types';
|
|
23
3
|
export declare const LineChart: FunctionComponent<LineChartProps>;
|
|
@@ -1,22 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
import { Component as ComponentType } from '../../../../shared-logic/src/Component/types';
|
|
4
|
-
import { DataSet as DataSetType } from '../../../../shared-logic/src/DataSet/types';
|
|
5
|
-
import { Result } from '../../../../shared-logic/src/Result/types';
|
|
6
|
-
import { DashboardBehaviour, IdPrefix } from '../../contexts/DashboardBehaviour/types';
|
|
7
|
-
import { AdditionalFilter } from '../../../../shared-logic/src/AdditionalFilter/types';
|
|
8
|
-
export declare type LineChartV2Props = {
|
|
9
|
-
component: ComponentType<ComponentType.LineChartV2Attributes>;
|
|
10
|
-
runQueriesCallback: VizzlyComponents.runQueriesCallbackInternal;
|
|
11
|
-
setResults: (results: (Result | null)[]) => void;
|
|
12
|
-
setLocalFilters: (localFilters: ComponentType['localFilters']) => void;
|
|
13
|
-
globalFilters: AdditionalFilter[];
|
|
14
|
-
dataSet: DataSetType;
|
|
15
|
-
id: string;
|
|
16
|
-
dashboardBehaviour: DashboardBehaviour;
|
|
17
|
-
library?: boolean;
|
|
18
|
-
updateComponentAttributes: (attributes: ComponentType.LineChartV2Attributes) => void;
|
|
19
|
-
idPrefix: IdPrefix;
|
|
20
|
-
setPartialAttributes: (attributes: Partial<ComponentType.LineChartV2Attributes>) => void;
|
|
21
|
-
};
|
|
2
|
+
import { LineChartV2Props } from '../Component/types';
|
|
22
3
|
export declare const LineChartV2: (props: LineChartV2Props) => JSX.Element;
|
|
@@ -1,20 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
import { VizzlyComponents } from '../../types';
|
|
4
|
-
import { Result } from '../../../../shared-logic/src/Result/types';
|
|
5
|
-
import { AdditionalFilter } from '../../../../shared-logic/src/AdditionalFilter/types';
|
|
6
|
-
import { DataSet } from '../../../../shared-logic/src/DataSet/types';
|
|
7
|
-
import { DashboardBehaviour } from '../../contexts/DashboardBehaviour/types';
|
|
8
|
-
import { MapPosition } from '../../../../charts/src/MercatorMap';
|
|
9
|
-
export declare type MercatorMapProps = {
|
|
10
|
-
runQueriesCallback: VizzlyComponents.runQueriesCallbackInternal;
|
|
11
|
-
component: Component<Component.MercatorMapAttributes>;
|
|
12
|
-
setResults: (results: (Result | null)[]) => void;
|
|
13
|
-
setLocalFilters: (localFilters: Component['localFilters']) => void;
|
|
14
|
-
globalFilters: AdditionalFilter[];
|
|
15
|
-
dataSet: DataSet;
|
|
16
|
-
id: string;
|
|
17
|
-
dashboardBehaviour: DashboardBehaviour;
|
|
18
|
-
onPositionChange: (newPosition: MapPosition) => void;
|
|
19
|
-
};
|
|
2
|
+
import { MercatorMapProps } from '../Component/types';
|
|
20
3
|
export declare const MercatorMap: (props: MercatorMapProps) => JSX.Element;
|
|
@@ -1,21 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
import { Component as ComponentType } from '../../../../shared-logic/src/Component/types';
|
|
4
|
-
import { DataSet as DataSetType } from '../../../../shared-logic/src/DataSet/types';
|
|
5
|
-
import { Result } from '../../../../shared-logic/src/Result/types';
|
|
6
|
-
import { DashboardBehaviour } from '../../contexts/DashboardBehaviour/types';
|
|
7
|
-
import { AdditionalFilter } from '../../../../shared-logic/src/AdditionalFilter/types';
|
|
8
|
-
export declare type PieChartProps = {
|
|
9
|
-
runQueriesCallback: VizzlyComponents.runQueriesCallbackInternal;
|
|
10
|
-
component: ComponentType<ComponentType.PieChartAttributes>;
|
|
11
|
-
setResults: (results: (Result | null)[]) => void;
|
|
12
|
-
setLocalFilters: (localFilters: ComponentType['localFilters']) => void;
|
|
13
|
-
globalFilters: AdditionalFilter[];
|
|
14
|
-
dataSet: DataSetType;
|
|
15
|
-
id: string;
|
|
16
|
-
dashboardBehaviour: DashboardBehaviour;
|
|
17
|
-
library?: boolean;
|
|
18
|
-
editor?: boolean;
|
|
19
|
-
setPartialAttributes: (attributes: Partial<ComponentType.PieChartAttributes>) => void;
|
|
20
|
-
};
|
|
2
|
+
import { PieChartProps } from '../Component/types';
|
|
21
3
|
export declare const PieChart: (props: PieChartProps) => JSX.Element;
|
|
@@ -1,21 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
import { Component as ComponentType } from '../../../../shared-logic/src/Component/types';
|
|
4
|
-
import { DataSet as DataSetType } from '../../../../shared-logic/src/DataSet/types';
|
|
5
|
-
import { Result } from '../../../../shared-logic/src/Result/types';
|
|
6
|
-
import { DashboardBehaviour } from '../../contexts/DashboardBehaviour/types';
|
|
7
|
-
import { AdditionalFilter } from '../../../../shared-logic/src/AdditionalFilter/types';
|
|
8
|
-
export declare type ProgressProps = {
|
|
9
|
-
runQueriesCallback: VizzlyComponents.runQueriesCallbackInternal;
|
|
10
|
-
component: ComponentType<ComponentType.ProgressAttributes>;
|
|
11
|
-
setResults: (results: (Result | null)[]) => void;
|
|
12
|
-
setLocalFilters: (localFilters: ComponentType['localFilters']) => void;
|
|
13
|
-
globalFilters: AdditionalFilter[];
|
|
14
|
-
dataSet: DataSetType;
|
|
15
|
-
id: string;
|
|
16
|
-
dashboardBehaviour: DashboardBehaviour;
|
|
17
|
-
library?: boolean;
|
|
18
|
-
height?: number;
|
|
19
|
-
setPartialAttributes: (attributes: Partial<ComponentType.ProgressAttributes>) => void;
|
|
20
|
-
};
|
|
2
|
+
import { ProgressProps } from '../Component/types';
|
|
21
3
|
export declare const Progress: (props: ProgressProps) => JSX.Element;
|
|
@@ -1,22 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
import { Component as ComponentType } from '../../../../shared-logic/src/Component/types';
|
|
4
|
-
import { DataSet as DataSetType } from '../../../../shared-logic/src/DataSet/types';
|
|
5
|
-
import { Result } from '../../../../shared-logic/src/Result/types';
|
|
6
|
-
import { DashboardBehaviour } from '../../contexts/DashboardBehaviour/types';
|
|
7
|
-
import { AdditionalFilter } from '../../../../shared-logic/src/AdditionalFilter/types';
|
|
8
|
-
export declare type RichTextProps = {
|
|
9
|
-
runQueriesCallback: VizzlyComponents.runQueriesCallbackInternal;
|
|
10
|
-
component: ComponentType<ComponentType.RichTextAttributes>;
|
|
11
|
-
setResults: (results: (Result | null)[]) => void;
|
|
12
|
-
setLocalFilters: (localFilters: ComponentType['localFilters']) => void;
|
|
13
|
-
globalFilters: AdditionalFilter[];
|
|
14
|
-
dataSet: DataSetType;
|
|
15
|
-
id: string;
|
|
16
|
-
dashboardBehaviour: DashboardBehaviour;
|
|
17
|
-
library?: boolean;
|
|
18
|
-
editor?: boolean;
|
|
19
|
-
updateComponentAttributes: (attributes: ComponentType.RichTextAttributes) => void;
|
|
20
|
-
setPartialAttributes: (attributes: Partial<ComponentType.RichTextAttributes>) => void;
|
|
21
|
-
};
|
|
2
|
+
import { RichTextProps } from '../Component/types';
|
|
22
3
|
export declare const RichText: (_props: RichTextProps) => JSX.Element;
|
|
@@ -1,22 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
import { Component as ComponentType } from '../../../../shared-logic/src/Component/types';
|
|
4
|
-
import { DataSet as DataSetType } from '../../../../shared-logic/src/DataSet/types';
|
|
5
|
-
import { Result } from '../../../../shared-logic/src/Result/types';
|
|
6
|
-
import { DashboardBehaviour, IdPrefix } from '../../contexts/DashboardBehaviour/types';
|
|
7
|
-
import { AdditionalFilter } from '../../../../shared-logic/src/AdditionalFilter/types';
|
|
8
|
-
export declare type ScatterChartProps = {
|
|
9
|
-
runQueriesCallback: VizzlyComponents.runQueriesCallbackInternal;
|
|
10
|
-
component: ComponentType<ComponentType.ScatterChartAttributes>;
|
|
11
|
-
setResults: (results: (Result | null)[]) => void;
|
|
12
|
-
setLocalFilters: (localFilters: ComponentType['localFilters']) => void;
|
|
13
|
-
globalFilters: AdditionalFilter[];
|
|
14
|
-
dataSet: DataSetType;
|
|
15
|
-
id: string;
|
|
16
|
-
dashboardBehaviour: DashboardBehaviour;
|
|
17
|
-
sm?: boolean;
|
|
18
|
-
library?: boolean;
|
|
19
|
-
idPrefix: IdPrefix;
|
|
20
|
-
setPartialAttributes: (attributes: Partial<ComponentType.ScatterChartAttributes>) => void;
|
|
21
|
-
};
|
|
2
|
+
import { ScatterChartProps } from '../Component/types';
|
|
22
3
|
export declare const ScatterChart: (props: ScatterChartProps) => JSX.Element;
|
|
@@ -1,21 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
import { Component as ComponentType } from '../../../../shared-logic/src/Component/types';
|
|
4
|
-
import { DataSet as DataSetType } from '../../../../shared-logic/src/DataSet/types';
|
|
5
|
-
import { Result } from '../../../../shared-logic/src/Result/types';
|
|
6
|
-
import { DashboardBehaviour } from '../../contexts/DashboardBehaviour/types';
|
|
7
|
-
import { AdditionalFilter } from '../../../../shared-logic/src/AdditionalFilter/types';
|
|
8
|
-
export declare type SingleStatProps = {
|
|
9
|
-
runQueriesCallback: VizzlyComponents.runQueriesCallbackInternal;
|
|
10
|
-
component: ComponentType<ComponentType.SingleStatAttributes>;
|
|
11
|
-
setResults: (results: (Result | null)[]) => void;
|
|
12
|
-
setLocalFilters: (localFilters: ComponentType['localFilters']) => void;
|
|
13
|
-
globalFilters: AdditionalFilter[];
|
|
14
|
-
dataSet: DataSetType;
|
|
15
|
-
id: string;
|
|
16
|
-
dashboardBehaviour: DashboardBehaviour;
|
|
17
|
-
library?: boolean;
|
|
18
|
-
updateComponentAttributes: (attributes: ComponentType.SingleStatAttributes) => void;
|
|
19
|
-
setPartialAttributes: (attributes: Partial<ComponentType.SingleStatAttributes>) => void;
|
|
20
|
-
};
|
|
2
|
+
import { SingleStatProps } from '../Component/types';
|
|
21
3
|
export declare const SingleStat: (props: SingleStatProps) => JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vizzly/dashboard",
|
|
3
3
|
"author": "james@vizzly.co",
|
|
4
|
-
"version": "0.14.4-dev-
|
|
4
|
+
"version": "0.14.4-dev-8ac01e0d943406d497cfce5237246c35efe2277d",
|
|
5
5
|
"source": "src/index.tsx",
|
|
6
6
|
"types": "./dist/dashboard/src/index.d.ts",
|
|
7
7
|
"main": "dist/index.js",
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { VizzlyComponents } from '../../types';
|
|
2
|
-
import { Component as ComponentType } from '../../../../shared-logic/src/Component/types';
|
|
3
|
-
import { DataSet as DataSetType } from '../../../../shared-logic/src/DataSet/types';
|
|
4
|
-
import { Result } from '../../../../shared-logic/src/Result/types';
|
|
5
|
-
import { DashboardBehaviour, IdPrefix } from '../../contexts/DashboardBehaviour/types';
|
|
6
|
-
import { AdditionalFilter } from '../../../../shared-logic/src/AdditionalFilter/types';
|
|
7
|
-
export declare type BarChartProps = {
|
|
8
|
-
runQueriesCallback: VizzlyComponents.runQueriesCallbackInternal;
|
|
9
|
-
component: ComponentType<ComponentType.BarChartAttributes | ComponentType.HorizontalBarChartAttributes>;
|
|
10
|
-
setResults: (results: (Result | null)[]) => void;
|
|
11
|
-
setLocalFilters: (localFilters: ComponentType['localFilters']) => void;
|
|
12
|
-
globalFilters: AdditionalFilter[];
|
|
13
|
-
dataSet: DataSetType;
|
|
14
|
-
id: string;
|
|
15
|
-
dashboardBehaviour: DashboardBehaviour;
|
|
16
|
-
sm?: boolean;
|
|
17
|
-
library?: boolean;
|
|
18
|
-
onViewClick?: (data: ComponentType.ChartOnViewClick, query: ComponentType.OnViewClickQuery) => void;
|
|
19
|
-
updateComponentAttributes: (attributes: ComponentType.BarChartAttributes | ComponentType.HorizontalBarChartAttributes) => void;
|
|
20
|
-
idPrefix: IdPrefix;
|
|
21
|
-
editor?: boolean;
|
|
22
|
-
setPartialAttributes: (attributes: Partial<ComponentType.BarChartAttributes>) => void;
|
|
23
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { VizzlyComponents } from '../../types';
|
|
2
|
-
import { Component as ComponentType } from '../../../../shared-logic/src/Component/types';
|
|
3
|
-
import { DataSet as DataSetType } from '../../../../shared-logic/src/DataSet/types';
|
|
4
|
-
import { Result } from '../../../../shared-logic/src/Result/types';
|
|
5
|
-
import { DashboardBehaviour, IdPrefix } from '../../contexts/DashboardBehaviour/types';
|
|
6
|
-
import { AdditionalFilter } from '../../../../shared-logic/src/AdditionalFilter/types';
|
|
7
|
-
export declare type FunnelChartProps = {
|
|
8
|
-
runQueriesCallback: VizzlyComponents.runQueriesCallbackInternal;
|
|
9
|
-
component: ComponentType<ComponentType.FunnelChartAttributes>;
|
|
10
|
-
setResults: (results: (Result | null)[]) => void;
|
|
11
|
-
setLocalFilters: (localFilters: ComponentType['localFilters']) => void;
|
|
12
|
-
globalFilters: AdditionalFilter[];
|
|
13
|
-
dataSet: DataSetType;
|
|
14
|
-
id: string;
|
|
15
|
-
dashboardBehaviour: DashboardBehaviour;
|
|
16
|
-
sm?: boolean;
|
|
17
|
-
library?: boolean;
|
|
18
|
-
onViewClick?: (data: ComponentType.ChartOnViewClick) => void;
|
|
19
|
-
updateComponentAttributes: (attributes: ComponentType.FunnelChartAttributes) => void;
|
|
20
|
-
setPartialAttributes: (attributes: Partial<ComponentType.FunnelChartAttributes>) => void;
|
|
21
|
-
idPrefix: IdPrefix;
|
|
22
|
-
};
|