@vizzly/dashboard 0.14.4-dev-dacb7b6ee19300aa636d654c99f13d6ac43da830 → 0.14.4-dev-470d6f9c95d1b6422dbe1be22378ce12cdf6580a
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/charts/src/BubbleChart/BubbleChart.d.ts +5 -0
- package/dist/charts/src/BubbleChart/VizzlyBubbleChart.d.ts +3 -0
- package/dist/charts/src/BubbleChart/index.d.ts +1 -0
- package/dist/charts/src/BubbleChart/types.d.ts +32 -0
- package/dist/charts/src/XYChart/types.d.ts +2 -0
- package/dist/dashboard/src/contexts/GlobalProvider/useGlobalProvider.d.ts +6 -6
- package/dist/dashboard.cjs.development.js +747 -95
- package/dist/dashboard.cjs.production.min.js +1 -1
- package/dist/dashboard.esm.js +747 -95
- package/dist/results-driver/src/driver/VizzlyQuery/BubbleChart/toQueries.d.ts +10 -0
- package/dist/services/src/Services/View.d.ts +5 -1
- package/dist/shared-logic/src/BubbleChart/adjustTicks.d.ts +3 -0
- package/dist/shared-logic/src/BubbleChart/attributesSchema.d.ts +3 -0
- package/dist/shared-logic/src/BubbleChart/buildBubbleChartRepresentation.d.ts +39 -0
- package/dist/shared-logic/src/BubbleChart/buildTrendAndForecast.d.ts +25 -0
- package/dist/shared-logic/src/BubbleChart/constants.d.ts +3 -0
- package/dist/shared-logic/src/BubbleChart/getAxisFormattingFunction.d.ts +13 -0
- package/dist/shared-logic/src/BubbleChart/getConditionalFormatting.d.ts +7 -0
- package/dist/shared-logic/src/BubbleChart/getGoalLines.d.ts +8 -0
- package/dist/shared-logic/src/BubbleChart/getMinAndMax.d.ts +15 -0
- package/dist/shared-logic/src/BubbleChart/getScaleAndTicks.d.ts +42 -0
- package/dist/shared-logic/src/BubbleChart/getStyleDefinition.d.ts +8 -0
- package/dist/shared-logic/src/BubbleChart/getTrendsAndForecastsData.d.ts +41 -0
- package/dist/shared-logic/src/BubbleChart/index.d.ts +4 -0
- package/dist/shared-logic/src/BubbleChart/setAttributes.d.ts +4 -0
- package/dist/shared-logic/src/BubbleChart/types.d.ts +74 -0
- package/dist/shared-logic/src/Component/setAttributes.d.ts +1 -1
- package/dist/shared-logic/src/Component/types.d.ts +20 -3
- package/dist/shared-logic/src/ComponentInterface/types/namespaces.types.d.ts +8 -1
- package/dist/shared-logic/src/DataPanelConfig/types.d.ts +1 -1
- package/dist/shared-logic/src/DataSet/DataSet.d.ts +1 -1
- package/dist/shared-logic/src/getComponentInterface.d.ts +1 -0
- package/dist/shared-ui/src/api/useQueryEffect.d.ts +1 -1
- package/dist/shared-ui/src/components/BubbleChart/BubbleChart.d.ts +3 -0
- package/dist/shared-ui/src/components/BubbleChart/BubbleChartView.d.ts +16 -0
- package/dist/shared-ui/src/components/BubbleChart/index.d.ts +2 -0
- package/dist/shared-ui/src/components/Component/types.d.ts +3 -0
- package/dist/shared-ui/src/components/Icons/ComponentIcons.d.ts +1 -0
- package/dist/shared-ui/src/components/LineChart/LineChartView.d.ts +1 -1
- package/dist/shared-ui/src/components/MercatorMap/View.d.ts +1 -1
- package/dist/shared-ui/src/components/Parameters/useParameters.d.ts +1 -1
- package/dist/shared-ui/src/library/DataPanel/FieldCollectorInput.d.ts +1 -1
- package/dist/shared-ui/src/library/DataPanel/MeasuresInput.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Component } from '../../../../../shared-logic/src/Component/types';
|
|
2
|
+
import { DataSet } from '../../../../../shared-logic/src/DataSet/types';
|
|
3
|
+
import { QueryEngineConfig } from '../../../../../shared-logic/src/QueryEngineConfig/types';
|
|
4
|
+
import { Result as ResultType } from '../../../../../shared-logic/src/Result/types';
|
|
5
|
+
import { Query as QueryType } from '../../../../../shared-logic/src/Query/types';
|
|
6
|
+
import { Params } from '../../../types';
|
|
7
|
+
export declare const toQueries: (attributes: Component.BubbleChartAttributes, dataSet: DataSet, queryEngineConfig: QueryEngineConfig, params: Params) => {
|
|
8
|
+
queries: QueryType[];
|
|
9
|
+
resultFields: Array<ResultType.Field[]>;
|
|
10
|
+
};
|
|
@@ -13,7 +13,7 @@ export declare class View<T extends Component.Attributes> {
|
|
|
13
13
|
} & RequiredAttributes<T>);
|
|
14
14
|
updateAttributes(newAttributes: Partial<T>): void;
|
|
15
15
|
}
|
|
16
|
-
export declare type AnyView = AreaChart | LineChart | BarChart | PieChart | ScatterChart | ComboChart | PivotTable | BasicTable | HorizontalBarChart | MercatorMap | SingleStat | Progress | RichText | WaterfallChart;
|
|
16
|
+
export declare type AnyView = AreaChart | LineChart | BarChart | PieChart | BubbleChart | ScatterChart | ComboChart | PivotTable | BasicTable | HorizontalBarChart | MercatorMap | SingleStat | Progress | RichText | WaterfallChart;
|
|
17
17
|
export declare class AreaChart extends View<Component.AreaChartAttributes> {
|
|
18
18
|
constructor(attributes: Partial<Component.AreaChartAttributes> & RequiredAttributes<Component.AreaChartAttributes>);
|
|
19
19
|
static type(): Component.AreaChartAttributes['type'];
|
|
@@ -30,6 +30,10 @@ export declare class PieChart extends View<Component.PieChartAttributes> {
|
|
|
30
30
|
constructor(attributes: Partial<Component.PieChartAttributes> & RequiredAttributes<Component.PieChartAttributes>);
|
|
31
31
|
static type(): Component.PieChartAttributes['type'];
|
|
32
32
|
}
|
|
33
|
+
export declare class BubbleChart extends View<Component.BubbleChartAttributes> {
|
|
34
|
+
constructor(attributes: Partial<Component.BubbleChartAttributes> & RequiredAttributes<Component.BubbleChartAttributes>);
|
|
35
|
+
static type(): Component.BubbleChartAttributes['type'];
|
|
36
|
+
}
|
|
33
37
|
export declare class ScatterChart extends View<Component.ScatterChartAttributes> {
|
|
34
38
|
constructor(attributes: Partial<Component.ScatterChartAttributes> & RequiredAttributes<Component.ScatterChartAttributes>);
|
|
35
39
|
static type(): Component.ScatterChartAttributes['type'];
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { BubbleChartRepresentation, DateTimeFormatter, NumberFormatter } from './types';
|
|
3
|
+
import { ValueAlias } from '../ValueAlias/types';
|
|
4
|
+
import { Result } from '../Result/types';
|
|
5
|
+
import { PivotConfig } from '../PivotConfig/types';
|
|
6
|
+
import { QueryAttributes } from '../QueryAttributes/types';
|
|
7
|
+
import { Component, FormatType } from '../Component/types';
|
|
8
|
+
import { seriesLabelFormatter } from '../Result/formattedResultToSeries';
|
|
9
|
+
interface buildBubbleChartRepresentationArgs {
|
|
10
|
+
axisTitles?: Component.AxisTitles;
|
|
11
|
+
colors?: CSSProperties['color'][];
|
|
12
|
+
conditionalFormattingAttributes: Component.ConditionalFormatting.Rule[];
|
|
13
|
+
dateTimeFormatOptions: {
|
|
14
|
+
[id: string]: DateTimeFormatter;
|
|
15
|
+
};
|
|
16
|
+
defaultFormats: () => {
|
|
17
|
+
[functionId: string]: string;
|
|
18
|
+
};
|
|
19
|
+
goalLineAttributes: Component.GoalLine.Rule[];
|
|
20
|
+
nullValue?: string;
|
|
21
|
+
numberFormatOptions: {
|
|
22
|
+
[id: string]: NumberFormatter;
|
|
23
|
+
};
|
|
24
|
+
order: QueryAttributes.Order[];
|
|
25
|
+
pivotConfig: PivotConfig;
|
|
26
|
+
result: Result;
|
|
27
|
+
trendsAndForecasts?: Component.Trends[];
|
|
28
|
+
valueAlias?: ValueAlias;
|
|
29
|
+
xAxisFormat: FormatType;
|
|
30
|
+
xAxisPostfix: string;
|
|
31
|
+
xAxisPrefix: string;
|
|
32
|
+
yAxisFormat: FormatType;
|
|
33
|
+
yAxisPostfix: string;
|
|
34
|
+
yAxisPrefix: string;
|
|
35
|
+
approxYAxisLabelCount: number;
|
|
36
|
+
seriesLabelFormatter: seriesLabelFormatter;
|
|
37
|
+
}
|
|
38
|
+
export declare const buildBubbleChartRepresentation: ({ axisTitles, colors, conditionalFormattingAttributes, dateTimeFormatOptions, defaultFormats, goalLineAttributes, nullValue, numberFormatOptions, order, pivotConfig, result, trendsAndForecasts, xAxisFormat, xAxisPostfix, xAxisPrefix, yAxisFormat, yAxisPostfix, yAxisPrefix, approxYAxisLabelCount, seriesLabelFormatter, valueAlias, }: buildBubbleChartRepresentationArgs) => BubbleChartRepresentation;
|
|
39
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { DataItem, KeyId } from './types';
|
|
2
|
+
export declare type AcceptedTrendTimeUnit = 'week' | 'quarter' | 'year' | 'month';
|
|
3
|
+
interface getTrendArgs {
|
|
4
|
+
data: Array<{
|
|
5
|
+
[key: KeyId]: DataItem;
|
|
6
|
+
}>;
|
|
7
|
+
forecastUnits: number;
|
|
8
|
+
xKey: string;
|
|
9
|
+
yKey: string;
|
|
10
|
+
timeUnit: AcceptedTrendTimeUnit;
|
|
11
|
+
includeForecast: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const buildTrendAndForecast: ({ data, forecastUnits, xKey, yKey, timeUnit, includeForecast }: getTrendArgs) => {
|
|
14
|
+
trendData: {
|
|
15
|
+
date: string;
|
|
16
|
+
value: number;
|
|
17
|
+
}[];
|
|
18
|
+
trendKey: string;
|
|
19
|
+
forecastData: {
|
|
20
|
+
date: string;
|
|
21
|
+
value: number;
|
|
22
|
+
}[];
|
|
23
|
+
forecastKey: string;
|
|
24
|
+
};
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DateTimeFormatter, NumberFormatter } from './types';
|
|
2
|
+
import { FormatType } from '../Component/types';
|
|
3
|
+
interface getAxisFormattingFunctionArgs {
|
|
4
|
+
numberFormatOptions: {
|
|
5
|
+
[id: string]: NumberFormatter;
|
|
6
|
+
};
|
|
7
|
+
dateTimeFormatOptions: {
|
|
8
|
+
[id: string]: DateTimeFormatter;
|
|
9
|
+
};
|
|
10
|
+
formatFunctionId: FormatType;
|
|
11
|
+
}
|
|
12
|
+
export declare const getAxisFormattingFunction: ({ formatFunctionId, numberFormatOptions, dateTimeFormatOptions, }: getAxisFormattingFunctionArgs) => ((number: number | null | undefined, noValueReplacement?: string | undefined) => string) | ((date: Date) => string) | ((value: string) => string);
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ConditionalFormattingRule } from './types';
|
|
2
|
+
import { Component } from '../Component/types';
|
|
3
|
+
interface getConditionalFormattingArgs {
|
|
4
|
+
conditionalFormattingAttributes: Component.ConditionalFormatting.Rule[];
|
|
5
|
+
}
|
|
6
|
+
export declare const getConditionalFormatting: ({ conditionalFormattingAttributes, }: getConditionalFormattingArgs) => ConditionalFormattingRule[];
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { GoalLine } from './types';
|
|
2
|
+
import { Component } from '../Component/types';
|
|
3
|
+
interface getGoalLinesArgs {
|
|
4
|
+
goalLineAttributes: Component.GoalLine.Rule[];
|
|
5
|
+
formattingFunctionY: (value: any) => string;
|
|
6
|
+
}
|
|
7
|
+
export declare const getGoalLines: ({ goalLineAttributes, formattingFunctionY }: getGoalLinesArgs) => GoalLine[];
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DataType } from '../Field/types';
|
|
2
|
+
import { FormattedResult } from '../Result/types';
|
|
3
|
+
import { GoalLine } from './types';
|
|
4
|
+
export declare const getMinAndMax: ({ data, keys, dataType, goalLines, }: {
|
|
5
|
+
data: FormattedResult['contentMapped'];
|
|
6
|
+
keys: Array<string>;
|
|
7
|
+
dataType: DataType;
|
|
8
|
+
goalLines?: GoalLine[] | undefined;
|
|
9
|
+
}) => {
|
|
10
|
+
max: null;
|
|
11
|
+
min: null;
|
|
12
|
+
} | {
|
|
13
|
+
max: number;
|
|
14
|
+
min: number;
|
|
15
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { KeyId, GoalLine } from './types';
|
|
2
|
+
import { QueryAttributes } from '../QueryAttributes/types';
|
|
3
|
+
import { DataType } from '../Field/types';
|
|
4
|
+
import { FormattedResult } from '../Result/types';
|
|
5
|
+
import { Tick } from '../ChartsV2/types';
|
|
6
|
+
declare type FormattingFunction = (value: any, nullValueAlias?: string) => string;
|
|
7
|
+
interface getScaleAndTicksArgs {
|
|
8
|
+
data: FormattedResult['contentMapped'];
|
|
9
|
+
xKey: string | null;
|
|
10
|
+
xScaleDataType: DataType;
|
|
11
|
+
yKeys: string[];
|
|
12
|
+
nullValue: string | undefined;
|
|
13
|
+
tickCountYAxis: number;
|
|
14
|
+
formattingFunctionX: FormattingFunction;
|
|
15
|
+
formattingFunctionY: FormattingFunction;
|
|
16
|
+
order: QueryAttributes.Order[];
|
|
17
|
+
goalLines: GoalLine[];
|
|
18
|
+
}
|
|
19
|
+
interface getScaleAndTicksReturn {
|
|
20
|
+
x: {
|
|
21
|
+
ticks: Array<Tick<Date | string | number>>;
|
|
22
|
+
scale: {
|
|
23
|
+
max: number | Date | null;
|
|
24
|
+
min: number | Date | null;
|
|
25
|
+
key: KeyId | null;
|
|
26
|
+
ordering: 'asc' | 'desc' | null;
|
|
27
|
+
dataType: DataType;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
y: {
|
|
31
|
+
ticks: Array<Tick<number>>;
|
|
32
|
+
scale: {
|
|
33
|
+
max: number;
|
|
34
|
+
min: number;
|
|
35
|
+
key: null;
|
|
36
|
+
ordering: 'asc' | 'desc';
|
|
37
|
+
dataType: 'number';
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
export declare const getScaleAndTicks: ({ data, xKey, yKeys, xScaleDataType, nullValue, tickCountYAxis, formattingFunctionX, formattingFunctionY, order, goalLines, }: getScaleAndTicksArgs) => getScaleAndTicksReturn;
|
|
42
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { LegendItem } from './types';
|
|
3
|
+
interface getStyleDefinitionArgs {
|
|
4
|
+
colors: CSSProperties['color'][];
|
|
5
|
+
yKeys: string[];
|
|
6
|
+
}
|
|
7
|
+
export declare const getStyleDefinition: ({ colors, yKeys }: getStyleDefinitionArgs) => LegendItem[];
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { DataItem, KeyId, Key } from './types';
|
|
2
|
+
import { Component } from '../Component/types';
|
|
3
|
+
import { DataType } from '../Field/types';
|
|
4
|
+
interface getTrendsAndForecastsDataArgs {
|
|
5
|
+
chartData: {
|
|
6
|
+
[keyId: string]: DataItem;
|
|
7
|
+
}[];
|
|
8
|
+
keys: {
|
|
9
|
+
[keyId: string]: Key;
|
|
10
|
+
};
|
|
11
|
+
xKey: KeyId;
|
|
12
|
+
yKeys: KeyId[];
|
|
13
|
+
formattingFunctionX: (value: any, noValueReplacement?: string) => string;
|
|
14
|
+
formattingFunctionY: (value: any, noValueReplacement?: string) => string;
|
|
15
|
+
nullValue: string | undefined;
|
|
16
|
+
trendsAndForecasts?: Component.Trends[];
|
|
17
|
+
xAxisPostfix: string;
|
|
18
|
+
xAxisPrefix: string;
|
|
19
|
+
yAxisPostfix: string;
|
|
20
|
+
yAxisPrefix: string;
|
|
21
|
+
xScaleDataType: DataType;
|
|
22
|
+
orderFunction: string | undefined;
|
|
23
|
+
}
|
|
24
|
+
export declare const getTrendsAndForecastsData: ({ chartData, formattingFunctionX, formattingFunctionY, keys, nullValue, orderFunction, trendsAndForecasts, xAxisPostfix, xAxisPrefix, xKey, xScaleDataType, yAxisPostfix, yAxisPrefix, yKeys, }: getTrendsAndForecastsDataArgs) => {
|
|
25
|
+
chartData: {
|
|
26
|
+
[keyId: string]: DataItem;
|
|
27
|
+
}[];
|
|
28
|
+
newChartData?: undefined;
|
|
29
|
+
newYKeys?: undefined;
|
|
30
|
+
newKeys?: undefined;
|
|
31
|
+
} | {
|
|
32
|
+
newChartData: ({
|
|
33
|
+
[x: string]: DataItem;
|
|
34
|
+
} | null)[];
|
|
35
|
+
newYKeys: string[];
|
|
36
|
+
newKeys: {
|
|
37
|
+
[keyId: string]: Key;
|
|
38
|
+
};
|
|
39
|
+
chartData?: undefined;
|
|
40
|
+
};
|
|
41
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Component } from '../Component/types';
|
|
2
|
+
import { ComponentInterfaceConfig } from '../ComponentInterface/types';
|
|
3
|
+
declare const _default: (config: ComponentInterfaceConfig) => (bubbleChart: Component.BubbleChartAttributes, partial: Partial<Component.BubbleChartAttributes>) => Component.BubbleChartAttributes;
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { Tick } from '../ChartsV2/types';
|
|
2
|
+
import { DataType } from '../Field/types';
|
|
3
|
+
export declare type KeyId = string;
|
|
4
|
+
export declare type Operator = string;
|
|
5
|
+
export declare type ConditionalFormattingRule = {
|
|
6
|
+
operator: Operator;
|
|
7
|
+
value: any;
|
|
8
|
+
color: string;
|
|
9
|
+
yKey: KeyId;
|
|
10
|
+
};
|
|
11
|
+
export declare type Axis<SupportedVizzlyDataTypes, AxisKeys> = {
|
|
12
|
+
ticks: Tick<SupportedVizzlyDataTypes>[];
|
|
13
|
+
scale: {
|
|
14
|
+
dataType: DataType;
|
|
15
|
+
key: KeyId | null;
|
|
16
|
+
ordering: 'asc' | 'desc' | null;
|
|
17
|
+
min: SupportedVizzlyDataTypes | null;
|
|
18
|
+
max: SupportedVizzlyDataTypes | null;
|
|
19
|
+
};
|
|
20
|
+
postfix: string;
|
|
21
|
+
prefix: string;
|
|
22
|
+
title: string | null;
|
|
23
|
+
} & AxisKeys;
|
|
24
|
+
export declare type LegendItemStyleLine = {
|
|
25
|
+
type: 'line';
|
|
26
|
+
strokeDasharray: string | number | null;
|
|
27
|
+
strokeWidth: number;
|
|
28
|
+
};
|
|
29
|
+
export declare type LegendItem = {
|
|
30
|
+
yKey: KeyId;
|
|
31
|
+
color: string;
|
|
32
|
+
style: LegendItemStyleLine;
|
|
33
|
+
};
|
|
34
|
+
export declare type Key = {
|
|
35
|
+
key: KeyId;
|
|
36
|
+
keyFormatted: string;
|
|
37
|
+
dataType: DataType;
|
|
38
|
+
};
|
|
39
|
+
export declare type BubbleChartRepresentation = {
|
|
40
|
+
keys: {
|
|
41
|
+
[key: KeyId]: Key;
|
|
42
|
+
};
|
|
43
|
+
x: Axis<Date | string | number, {
|
|
44
|
+
key: KeyId;
|
|
45
|
+
}>;
|
|
46
|
+
y: Axis<number, {
|
|
47
|
+
keys: KeyId[];
|
|
48
|
+
}>;
|
|
49
|
+
conditionalFormattingRules: ConditionalFormattingRule[];
|
|
50
|
+
goalLines: GoalLine[];
|
|
51
|
+
data: {
|
|
52
|
+
[keyId: string]: DataItem;
|
|
53
|
+
}[];
|
|
54
|
+
lines: LegendItem[];
|
|
55
|
+
};
|
|
56
|
+
export declare type DataItem = {
|
|
57
|
+
value: number | string | null;
|
|
58
|
+
formattedValue: string | null;
|
|
59
|
+
};
|
|
60
|
+
export declare type GoalLine = {
|
|
61
|
+
value: number;
|
|
62
|
+
formattedValue: string | null;
|
|
63
|
+
color: string;
|
|
64
|
+
strokeStyle?: 'dashed' | 'solid';
|
|
65
|
+
strokeWidth: number;
|
|
66
|
+
};
|
|
67
|
+
export declare type DateTimeFormatter = {
|
|
68
|
+
formatter: (date: Date) => string;
|
|
69
|
+
description: string;
|
|
70
|
+
};
|
|
71
|
+
export declare type NumberFormatter = {
|
|
72
|
+
formatter: (number: number | undefined | null, noValueReplacement?: string) => string;
|
|
73
|
+
description: string;
|
|
74
|
+
};
|
|
@@ -7,5 +7,5 @@ export declare const removeUnusedOrderFieldsFromTimeSeriesComponent: <T extends
|
|
|
7
7
|
timeDimension?: QueryAttributes.TimeDimension | null | undefined;
|
|
8
8
|
dimension: Array<QueryAttributes.Dimension>;
|
|
9
9
|
}>(attributes: T) => T;
|
|
10
|
-
declare const setAttributes: <Attributes extends Component.Attributes>(attributes: Partial<Component.AreaChartAttributes> | Partial<Component.BarChartAttributes> | Partial<Component.BasicTableAttributes> | Partial<Component.ComboChartAttributes> | Partial<Component.CustomViewAttributes> | Partial<Component.DataTableAttributes> | Partial<Component.FunnelChartAttributes> | Partial<Component.HorizontalBarChartAttributes> | Partial<Component.LineChartAttributes> | Partial<Component.LineChartV2Attributes> | Partial<Component.BarChartV2Attributes> | Partial<Component.MercatorMapAttributes> | Partial<Component.PieChartAttributes> | Partial<Component.ProgressAttributes> | Partial<Component.RichTextAttributes> | Partial<Component.ScatterChartAttributes> | Partial<Component.SingleStatAttributes> | Partial<Component.WaterfallChartAttributes>, partialAttributes: Partial<Component.AreaChartAttributes> | Partial<Component.BarChartAttributes> | Partial<Component.BasicTableAttributes> | Partial<Component.ComboChartAttributes> | Partial<Component.CustomViewAttributes> | Partial<Component.DataTableAttributes> | Partial<Component.FunnelChartAttributes> | Partial<Component.HorizontalBarChartAttributes> | Partial<Component.LineChartAttributes> | Partial<Component.LineChartV2Attributes> | Partial<Component.BarChartV2Attributes> | Partial<Component.MercatorMapAttributes> | Partial<Component.PieChartAttributes> | Partial<Component.ProgressAttributes> | Partial<Component.RichTextAttributes> | Partial<Component.ScatterChartAttributes> | Partial<Component.SingleStatAttributes> | Partial<Component.WaterfallChartAttributes>, schema: Joi.ObjectSchema<any>) => Attributes;
|
|
10
|
+
declare const setAttributes: <Attributes extends Component.Attributes>(attributes: Partial<Component.AreaChartAttributes> | Partial<Component.BarChartAttributes> | Partial<Component.BasicTableAttributes> | Partial<Component.BubbleChartAttributes> | Partial<Component.ComboChartAttributes> | Partial<Component.CustomViewAttributes> | Partial<Component.DataTableAttributes> | Partial<Component.FunnelChartAttributes> | Partial<Component.HorizontalBarChartAttributes> | Partial<Component.LineChartAttributes> | Partial<Component.LineChartV2Attributes> | Partial<Component.BarChartV2Attributes> | Partial<Component.MercatorMapAttributes> | Partial<Component.PieChartAttributes> | Partial<Component.ProgressAttributes> | Partial<Component.RichTextAttributes> | Partial<Component.ScatterChartAttributes> | Partial<Component.SingleStatAttributes> | Partial<Component.WaterfallChartAttributes>, partialAttributes: Partial<Component.AreaChartAttributes> | Partial<Component.BarChartAttributes> | Partial<Component.BasicTableAttributes> | Partial<Component.BubbleChartAttributes> | Partial<Component.ComboChartAttributes> | Partial<Component.CustomViewAttributes> | Partial<Component.DataTableAttributes> | Partial<Component.FunnelChartAttributes> | Partial<Component.HorizontalBarChartAttributes> | Partial<Component.LineChartAttributes> | Partial<Component.LineChartV2Attributes> | Partial<Component.BarChartV2Attributes> | Partial<Component.MercatorMapAttributes> | Partial<Component.PieChartAttributes> | Partial<Component.ProgressAttributes> | Partial<Component.RichTextAttributes> | Partial<Component.ScatterChartAttributes> | Partial<Component.SingleStatAttributes> | Partial<Component.WaterfallChartAttributes>, schema: Joi.ObjectSchema<any>) => Attributes;
|
|
11
11
|
export default setAttributes;
|
|
@@ -11,7 +11,7 @@ import { DataSet } from '../DataSet/types';
|
|
|
11
11
|
export declare type getNumberFormatter = (formatterId: string | undefined | null) => (number: number) => string;
|
|
12
12
|
export declare type FormatType = string | null;
|
|
13
13
|
export declare type ApproxAxisLabelCount = 'auto' | number;
|
|
14
|
-
export declare type ComponentType = 'areaChart' | 'barChart' | 'basicTable' | 'comboChart' | 'custom' | 'dataTable' | 'funnelChart' | 'horizontalBarChart' | 'lineChart' | 'lineChartV2' | 'barChartV2' | 'mercatorMap' | 'pieChart' | 'progress' | 'richText' | 'scatterChart' | 'singleStat' | 'waterfallChart';
|
|
14
|
+
export declare type ComponentType = 'areaChart' | 'barChart' | 'basicTable' | 'bubbleChart' | 'comboChart' | 'custom' | 'dataTable' | 'funnelChart' | 'horizontalBarChart' | 'lineChart' | 'lineChartV2' | 'barChartV2' | 'mercatorMap' | 'pieChart' | 'progress' | 'richText' | 'scatterChart' | 'singleStat' | 'waterfallChart';
|
|
15
15
|
export declare const componentTypes: string[];
|
|
16
16
|
export declare namespace Component {
|
|
17
17
|
export type LineCurve = 'natural' | 'straight' | 'step' | 'stepBefore' | 'stepAfter' | 'dotted';
|
|
@@ -352,6 +352,23 @@ export declare namespace Component {
|
|
|
352
352
|
goalLines?: Array<Component.GoalLine.Rule>;
|
|
353
353
|
axisTitles?: AxisTitles;
|
|
354
354
|
};
|
|
355
|
+
export type BubbleChartAttributes = BaseAttributes & Omit<BaseQueryAttributes, 'measure'> & {
|
|
356
|
+
type: 'bubbleChart';
|
|
357
|
+
xMeasure: QueryAttributes.Measure | null;
|
|
358
|
+
yMeasure: QueryAttributes.Measure | null;
|
|
359
|
+
zMeasure?: QueryAttributes.Measure | null;
|
|
360
|
+
legend: boolean;
|
|
361
|
+
xAxisPrefix: string;
|
|
362
|
+
yAxisPrefix: string;
|
|
363
|
+
xAxisPostfix: string;
|
|
364
|
+
yAxisPostfix: string;
|
|
365
|
+
xAxisFormat: FormatType;
|
|
366
|
+
yAxisFormat: FormatType;
|
|
367
|
+
approxXAxisLabelCount: ApproxAxisLabelCount;
|
|
368
|
+
approxYAxisLabelCount: ApproxAxisLabelCount;
|
|
369
|
+
goalLines?: Array<Component.GoalLine.Rule>;
|
|
370
|
+
axisTitles?: AxisTitles;
|
|
371
|
+
};
|
|
355
372
|
export type WaterfallChartAttributes = BaseAttributes & BaseQueryAttributes & {
|
|
356
373
|
type: 'waterfallChart';
|
|
357
374
|
xAxisPrefix: string;
|
|
@@ -367,8 +384,8 @@ export declare namespace Component {
|
|
|
367
384
|
axisTitles?: AxisTitles;
|
|
368
385
|
headline?: Headline;
|
|
369
386
|
};
|
|
370
|
-
export type ViewType = 'areaChart' | 'barChart' | 'basicTable' | 'comboChart' | 'custom' | 'dataTable' | 'funnelChart' | 'horizontalBarChart' | 'lineChart' | 'lineChartV2' | 'barChartV2' | 'mercatorMap' | 'pieChart' | 'progress' | 'richText' | 'scatterChart' | 'singleStat' | 'waterfallChart';
|
|
371
|
-
export type Attributes = AreaChartAttributes | BarChartAttributes | BasicTableAttributes | ComboChartAttributes | CustomViewAttributes | DataTableAttributes | FunnelChartAttributes | HorizontalBarChartAttributes | LineChartAttributes | LineChartV2Attributes | BarChartV2Attributes | MercatorMapAttributes | PieChartAttributes | ProgressAttributes | RichTextAttributes | ScatterChartAttributes | SingleStatAttributes | WaterfallChartAttributes;
|
|
387
|
+
export type ViewType = 'areaChart' | 'barChart' | 'basicTable' | 'bubbleChart' | 'comboChart' | 'custom' | 'dataTable' | 'funnelChart' | 'horizontalBarChart' | 'lineChart' | 'lineChartV2' | 'barChartV2' | 'mercatorMap' | 'pieChart' | 'progress' | 'richText' | 'scatterChart' | 'singleStat' | 'waterfallChart';
|
|
388
|
+
export type Attributes = AreaChartAttributes | BarChartAttributes | BasicTableAttributes | BubbleChartAttributes | ComboChartAttributes | CustomViewAttributes | DataTableAttributes | FunnelChartAttributes | HorizontalBarChartAttributes | LineChartAttributes | LineChartV2Attributes | BarChartV2Attributes | MercatorMapAttributes | PieChartAttributes | ProgressAttributes | RichTextAttributes | ScatterChartAttributes | SingleStatAttributes | WaterfallChartAttributes;
|
|
372
389
|
export interface RenderTableCell {
|
|
373
390
|
viewId: string;
|
|
374
391
|
type: 'basicTable' | 'dataTable';
|
|
@@ -19,6 +19,7 @@ declare type SubSectionDef = {
|
|
|
19
19
|
bar?: SubSection<'metrics'>;
|
|
20
20
|
xAxis?: SubSection<'metrics'>;
|
|
21
21
|
yAxis?: SubSection<'metrics'>;
|
|
22
|
+
zAxis?: SubSection<'metrics'>;
|
|
22
23
|
};
|
|
23
24
|
export declare type Pagination = {
|
|
24
25
|
options: number[];
|
|
@@ -63,6 +64,12 @@ export interface FormatPanelNamespaces {
|
|
|
63
64
|
'y.format': SubSection<'axisLabels'>;
|
|
64
65
|
'y.count': SubSection<'axisLabels'>;
|
|
65
66
|
'y.axis_title': SubSection<'axisLabels'>;
|
|
67
|
+
z?: SubSection<'axisLabels'>;
|
|
68
|
+
'z.prefix'?: SubSection<'axisLabels'>;
|
|
69
|
+
'z.postfix'?: SubSection<'axisLabels'>;
|
|
70
|
+
'z.format'?: SubSection<'axisLabels'>;
|
|
71
|
+
'z.count'?: SubSection<'axisLabels'>;
|
|
72
|
+
'z.axis_title'?: SubSection<'axisLabels'>;
|
|
66
73
|
};
|
|
67
74
|
};
|
|
68
75
|
stats_labels?: Section<'statsLabels'> & {
|
|
@@ -109,5 +116,5 @@ export interface FormatPanelNamespaces {
|
|
|
109
116
|
};
|
|
110
117
|
};
|
|
111
118
|
}
|
|
112
|
-
export declare type ComponentNamespace = 'area_chart' | 'bar_chart' | 'basic_table' | 'combo_chart' | 'custom' | 'fields' | 'funnel_chart' | 'headline' | 'horizontal_bar_chart' | 'line_chart' | 'mercator_map' | 'pie_chart' | 'pivot_table' | 'progress' | 'rich_text' | 'scatter_chart' | 'single_stat' | 'waterfall_chart';
|
|
119
|
+
export declare type ComponentNamespace = 'area_chart' | 'bar_chart' | 'basic_table' | 'bubble_chart' | 'combo_chart' | 'custom' | 'fields' | 'funnel_chart' | 'headline' | 'horizontal_bar_chart' | 'line_chart' | 'mercator_map' | 'pie_chart' | 'pivot_table' | 'progress' | 'rich_text' | 'scatter_chart' | 'single_stat' | 'waterfall_chart';
|
|
113
120
|
export {};
|
|
@@ -9,7 +9,7 @@ export declare type Section<Type> = ConstSection<Type> & {
|
|
|
9
9
|
declare type MetricOptions = {
|
|
10
10
|
allowsMultiple?: boolean;
|
|
11
11
|
maximumMetricsAllowed?: number;
|
|
12
|
-
propKey?: 'xMeasure' | 'yMeasure' | 'measure' | 'barMeasure' | 'lineMeasure';
|
|
12
|
+
propKey?: 'xMeasure' | 'yMeasure' | 'zMeasure' | 'measure' | 'barMeasure' | 'lineMeasure';
|
|
13
13
|
filterFieldOptions?: FieldFilterOptions;
|
|
14
14
|
};
|
|
15
15
|
export declare type FieldCollectorOptions<Attrs> = {
|
|
@@ -30,7 +30,7 @@ export declare const validateQueries: (dataSet: DataSet, queries: Query[]) => un
|
|
|
30
30
|
* provide the componentType to ensure the custom fields which are returned
|
|
31
31
|
* are also supported by the componentType.
|
|
32
32
|
*/
|
|
33
|
-
export declare const takeCustomFields: (dataSet: DataSet, componentType?: "progress" | "areaChart" | "barChart" | "basicTable" | "comboChart" | "custom" | "dataTable" | "funnelChart" | "horizontalBarChart" | "lineChart" | "lineChartV2" | "barChartV2" | "mercatorMap" | "pieChart" | "richText" | "scatterChart" | "singleStat" | "waterfallChart" | undefined) => CustomField[];
|
|
33
|
+
export declare const takeCustomFields: (dataSet: DataSet, componentType?: "progress" | "areaChart" | "barChart" | "basicTable" | "bubbleChart" | "comboChart" | "custom" | "dataTable" | "funnelChart" | "horizontalBarChart" | "lineChart" | "lineChartV2" | "barChartV2" | "mercatorMap" | "pieChart" | "richText" | "scatterChart" | "singleStat" | "waterfallChart" | undefined) => CustomField[];
|
|
34
34
|
export declare const takeNonCustomFields: (dataSet: DataSet) => Array<NonDateTimeField | DateTimeField | SimpleMathField>;
|
|
35
35
|
export declare const takeNonPercentageCustomFields: (dataSet: DataSet) => Array<NonDateTimeField | DateTimeField | SimpleMathField>;
|
|
36
36
|
export declare const removeCustomFields: (dataSet: DataSet) => DataSet;
|
|
@@ -3,6 +3,7 @@ import { ComponentInterface, ComponentInterfaceConfig } from './ComponentInterfa
|
|
|
3
3
|
import { BasicTableComponentInterface } from './BasicTable';
|
|
4
4
|
declare function getComponentInterface(type: 'custom', config?: ComponentInterfaceConfig): ComponentInterface<Component.CustomViewAttributes>;
|
|
5
5
|
declare function getComponentInterface(type: 'pieChart', config?: ComponentInterfaceConfig): ComponentInterface<Component.PieChartAttributes>;
|
|
6
|
+
declare function getComponentInterface(type: 'bubbleChart', config?: ComponentInterfaceConfig): ComponentInterface<Component.BubbleChartAttributes>;
|
|
6
7
|
declare function getComponentInterface(type: 'scatterChart', config?: ComponentInterfaceConfig): ComponentInterface<Component.ScatterChartAttributes>;
|
|
7
8
|
declare function getComponentInterface(type: 'mercatorMap', config?: ComponentInterfaceConfig): ComponentInterface<Component.MercatorMapAttributes>;
|
|
8
9
|
declare function getComponentInterface(type: 'singleStat', config?: ComponentInterfaceConfig): ComponentInterface<Component.SingleStatAttributes>;
|
|
@@ -4,6 +4,6 @@ import { FilterConfig } from '../../../shared-logic/src/AdditionalFilter/types';
|
|
|
4
4
|
import { DataSet } from '../../../shared-logic/src/DataSet/types';
|
|
5
5
|
import { QueryableEntity } from './useQueryEffect/types';
|
|
6
6
|
import { UseVariableState } from '../contexts/Variables/types';
|
|
7
|
-
export declare const useQueryEffect: (queries: QueryableEntity, runQueriesCallback: VizzlyComponents.runQueriesCallbackInternal, onResultsCallback: (results: Array<Result | null>) => void, filterConfig: FilterConfig, dataSet: DataSet, componentType?: "progress" | "areaChart" | "barChart" | "basicTable" | "comboChart" | "custom" | "dataTable" | "funnelChart" | "horizontalBarChart" | "lineChart" | "lineChartV2" | "barChartV2" | "mercatorMap" | "pieChart" | "richText" | "scatterChart" | "singleStat" | "waterfallChart" | undefined, variables?: UseVariableState | undefined) => {
|
|
7
|
+
export declare const useQueryEffect: (queries: QueryableEntity, runQueriesCallback: VizzlyComponents.runQueriesCallbackInternal, onResultsCallback: (results: Array<Result | null>) => void, filterConfig: FilterConfig, dataSet: DataSet, componentType?: "progress" | "areaChart" | "barChart" | "basicTable" | "bubbleChart" | "comboChart" | "custom" | "dataTable" | "funnelChart" | "horizontalBarChart" | "lineChart" | "lineChartV2" | "barChartV2" | "mercatorMap" | "pieChart" | "richText" | "scatterChart" | "singleStat" | "waterfallChart" | undefined, variables?: UseVariableState | undefined) => {
|
|
8
8
|
queriesAreChanging: boolean;
|
|
9
9
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { VizzlyComponents } from '../../types';
|
|
3
|
+
import { Component as ComponentType } from '../../../../shared-logic/src/Component/types';
|
|
4
|
+
import { DashboardBehaviour, IdPrefix } from '../../contexts/DashboardBehaviour/types';
|
|
5
|
+
export declare const defaultProps: Omit<ComponentType.BubbleChartAttributes, 'dataSetId'>;
|
|
6
|
+
export declare type BubbleChartViewProps = VizzlyComponents.ViewProps<ComponentType.BubbleChartAttributes> & {
|
|
7
|
+
library?: boolean;
|
|
8
|
+
numberFormatOptions: DashboardBehaviour['numberFormatOptions'];
|
|
9
|
+
dateTimeFormatOptions: DashboardBehaviour['dateTimeFormatOptions'];
|
|
10
|
+
idPrefix: IdPrefix;
|
|
11
|
+
};
|
|
12
|
+
declare const memoized: React.MemoExoticComponent<{
|
|
13
|
+
(props: BubbleChartViewProps): JSX.Element | null;
|
|
14
|
+
defaultProps: Pick<ComponentType.BubbleChartAttributes, "filter" | "order" | "offset" | "dimension" | "timeDimension" | "limit" | "type" | "viewId" | "displayTitle" | "displaySubject" | "protectedByOrganisation" | "tags" | "xAxisPrefix" | "yAxisPrefix" | "xAxisPostfix" | "yAxisPostfix" | "xAxisFormat" | "yAxisFormat" | "approxXAxisLabelCount" | "approxYAxisLabelCount" | "legend" | "goalLines" | "axisTitles" | "xMeasure" | "yMeasure" | "zMeasure">;
|
|
15
|
+
}>;
|
|
16
|
+
export default memoized;
|
|
@@ -27,6 +27,9 @@ interface ChartPropsWithAttributesUpdate<T> extends BaseChartProps<T> {
|
|
|
27
27
|
export declare type ScatterChartProps = ChartPropsWithPartialAttributes<ComponentType.ScatterChartAttributes> & {
|
|
28
28
|
sm?: boolean;
|
|
29
29
|
};
|
|
30
|
+
export declare type BubbleChartProps = ChartPropsWithPartialAttributes<ComponentType.BubbleChartAttributes> & {
|
|
31
|
+
sm?: boolean;
|
|
32
|
+
};
|
|
30
33
|
export declare type BarChartProps = ChartPropsWithPartialAttributes<ComponentType.BarChartAttributes> & ChartPropsWithAttributesUpdate<ComponentType.BarChartAttributes | ComponentType.HorizontalBarChartAttributes> & {
|
|
31
34
|
sm?: boolean;
|
|
32
35
|
onViewClick?: (data: ComponentType.ChartOnViewClick, query: ComponentType.OnViewClickQuery) => void;
|
|
@@ -8,6 +8,7 @@ export declare const DataTable: (props: any) => JSX.Element;
|
|
|
8
8
|
export declare const LineChart: (props: any) => JSX.Element;
|
|
9
9
|
export declare const RouteMap: (props: any) => JSX.Element;
|
|
10
10
|
export declare const ScatterChart: (props: any) => JSX.Element;
|
|
11
|
+
export declare const BubbleChart: (props: any) => JSX.Element;
|
|
11
12
|
export declare const Funnel: (props: any) => JSX.Element;
|
|
12
13
|
export declare const SelectFilter: (props: any) => JSX.Element;
|
|
13
14
|
export declare const SingleStat: (props: any) => JSX.Element;
|
|
@@ -20,7 +20,7 @@ declare const memoized: React.NamedExoticComponent<{
|
|
|
20
20
|
};
|
|
21
21
|
localFilters: import("../../../../shared-logic/src/AdditionalFilter/types").AdditionalFilter[];
|
|
22
22
|
setLocalFilters: (localFilters: import("../../../../shared-logic/src/AdditionalFilter/types").AdditionalFilter[]) => void;
|
|
23
|
-
setPartialAttributes: (updates: Partial<import("../../../../shared-logic/src/Component/types").Component.AreaChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BarChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BasicTableAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ComboChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.CustomViewAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.DataTableAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.LineChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.LineChartV2Attributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BarChartV2Attributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.MercatorMapAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.PieChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ProgressAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.RichTextAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ScatterChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.SingleStatAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.WaterfallChartAttributes>) => void;
|
|
23
|
+
setPartialAttributes: (updates: Partial<import("../../../../shared-logic/src/Component/types").Component.AreaChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BarChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BasicTableAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BubbleChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ComboChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.CustomViewAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.DataTableAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.LineChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.LineChartV2Attributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BarChartV2Attributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.MercatorMapAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.PieChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ProgressAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.RichTextAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ScatterChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.SingleStatAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.WaterfallChartAttributes>) => void;
|
|
24
24
|
sm?: boolean | undefined;
|
|
25
25
|
dataSet: import("../../../../dashboard/src").DataSet<import("../../../../dashboard/src").DataSet.Field>;
|
|
26
26
|
} & {
|
|
@@ -17,7 +17,7 @@ declare const _default: (props: {
|
|
|
17
17
|
};
|
|
18
18
|
localFilters: import("../../../../shared-logic/src/AdditionalFilter/types").AdditionalFilter[];
|
|
19
19
|
setLocalFilters: (localFilters: import("../../../../shared-logic/src/AdditionalFilter/types").AdditionalFilter[]) => void;
|
|
20
|
-
setPartialAttributes: (updates: Partial<import("../../../../shared-logic/src/Component/types").Component.AreaChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BarChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BasicTableAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ComboChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.CustomViewAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.DataTableAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.LineChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.LineChartV2Attributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BarChartV2Attributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.MercatorMapAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.PieChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ProgressAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.RichTextAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ScatterChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.SingleStatAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.WaterfallChartAttributes>) => void;
|
|
20
|
+
setPartialAttributes: (updates: Partial<import("../../../../shared-logic/src/Component/types").Component.AreaChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BarChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BasicTableAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BubbleChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ComboChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.CustomViewAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.DataTableAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.LineChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.LineChartV2Attributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BarChartV2Attributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.MercatorMapAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.PieChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ProgressAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.RichTextAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ScatterChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.SingleStatAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.WaterfallChartAttributes>) => void;
|
|
21
21
|
sm?: boolean | undefined;
|
|
22
22
|
dataSet: import("../../../../dashboard/src").DataSet<import("../../../../dashboard/src").DataSet.Field>;
|
|
23
23
|
} & {
|
|
@@ -28,7 +28,7 @@ export declare function updateMetric(state: Partial<Component.Parameters>, measu
|
|
|
28
28
|
export declare function updateGroup(state: Partial<Component.Parameters>, group: Component.ParameterGroup): {
|
|
29
29
|
updatedMetrics: {
|
|
30
30
|
group: {
|
|
31
|
-
[x: string]: (QueryAttributes.
|
|
31
|
+
[x: string]: (QueryAttributes.Dimension | QueryAttributes.TimeDimension | null | undefined)[];
|
|
32
32
|
};
|
|
33
33
|
measure?: Component.ParameterMeasure | undefined;
|
|
34
34
|
};
|
|
@@ -26,7 +26,7 @@ declare type Props = VizzlyComponents.ManagePartialAttributes<Component.Attribut
|
|
|
26
26
|
export declare const FieldCollectorInput: (inputProps: Props) => JSX.Element;
|
|
27
27
|
export declare const getDateTimeSelectOptions: (allowedGranularities: string[], supportedTimeTruncFunctions: SupportedTimeTruncFunctions) => SelectOptionType[];
|
|
28
28
|
export declare function handleCreateNewField(values: (QueryAttributes.Dimension | QueryAttributes.Measure)[], purpose: string, queryEngineConfig: QueryEngineConfig, onChange: (values: FieldCollectorInputFieldValue[]) => void): (field: DataSetType.Field) => void;
|
|
29
|
-
export declare function buildDimensionFromField(purpose: string, field: DataSetType.Field, queryEngineConfig: QueryEngineConfig): QueryAttributes.
|
|
29
|
+
export declare function buildDimensionFromField(purpose: string, field: DataSetType.Field, queryEngineConfig: QueryEngineConfig): QueryAttributes.Dimension | QueryAttributes.Measure;
|
|
30
30
|
export declare function buildFieldsToPickFrom(dataSet: DataSetType, fieldFilterOptions: FieldFilterOptions | undefined, preventDuplicates: boolean | undefined, values: (QueryAttributes.Measure | QueryAttributes.Dimension)[]): InitValue<DataSetType.Field>[];
|
|
31
31
|
export declare function buildFieldCollectorItems(values: (QueryAttributes.Measure | QueryAttributes.Dimension)[], dataSet: DataSetType, purpose: string, queryEngineConfig: QueryEngineConfig, onChange: (values: FieldCollectorInputFieldValue[]) => void): ListViewItem<any>[];
|
|
32
32
|
export {};
|
|
@@ -10,7 +10,7 @@ import { ListViewItem } from '../../base/ListView/types';
|
|
|
10
10
|
declare type Props = VizzlyComponents.ManagePartialAttributes<{
|
|
11
11
|
[key: string]: any;
|
|
12
12
|
}> & {
|
|
13
|
-
propKey?: 'xMeasure' | 'yMeasure' | 'measure' | 'barMeasure' | 'lineMeasure';
|
|
13
|
+
propKey?: 'xMeasure' | 'yMeasure' | 'zMeasure' | 'measure' | 'barMeasure' | 'lineMeasure';
|
|
14
14
|
allowsMultiple?: boolean;
|
|
15
15
|
maxAllowed?: number;
|
|
16
16
|
supportedAggregates: DashboardBehaviour['queryEngineConfig']['supportedAggregates'];
|
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-470d6f9c95d1b6422dbe1be22378ce12cdf6580a",
|
|
5
5
|
"source": "src/index.tsx",
|
|
6
6
|
"types": "./dist/dashboard/src/index.d.ts",
|
|
7
7
|
"module": "./dist/dashboard.esm.js",
|