@vizzly/services 0.14.4-dev-dacb7b6ee19300aa636d654c99f13d6ac43da830 → 0.14.4-dev-a92622560305a2aadfb851574db2d2f43a80cb14
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/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/attributesSchema.d.ts +3 -0
- package/dist/shared-logic/src/BubbleChart/constants.d.ts +3 -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/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/getComponentInterface.d.ts +1 -0
- 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,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;
|
|
@@ -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> = {
|
|
@@ -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>;
|
package/package.json
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"fix-type-alias": "tsc-alias -p tsconfig.json",
|
|
27
27
|
"prepare": "yarn build"
|
|
28
28
|
},
|
|
29
|
-
"version": "0.14.4-dev-
|
|
29
|
+
"version": "0.14.4-dev-a92622560305a2aadfb851574db2d2f43a80cb14",
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@vizzly/api-client": "0.0.43",
|
|
32
32
|
"@vizzly/joi": "^17.11.0",
|