@vizzly/services 0.15.0-dev-f2511344439820bfaf5d22b5a86b918e9edca528 → 0.15.0-dev-98ca6ca4aaaedc95f70ca9a929f28584d9154210

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.
@@ -16,7 +16,7 @@ export declare class View<T extends Component.Attributes> {
16
16
  static setQueryEngineConfig(queryEngineConfigOrClient: QueryEngineConfig | Client | null): void;
17
17
  updateAttributes(newAttributes: Partial<T>): void;
18
18
  }
19
- export type AnyView = AreaChart | AreaChartV2 | LineChart | LineChartV2 | BarChart | BarChartV2 | PieChart | BubbleChart | BubbleChartV2 | ScatterChart | ComboChart | ComboChartV2 | PivotTable | BasicTable | HorizontalBarChart | HorizontalBarChartV2 | MercatorMap | SingleStat | Progress | RichText | WaterfallChart | FunnelChart | SunburstChart | RadarChart;
19
+ export type AnyView = AreaChart | AreaChartV2 | LineChart | LineChartV2 | BarChart | BarChartV2 | PieChart | BubbleChart | BubbleChartV2 | ScatterChart | ScatterChartV2 | ComboChart | ComboChartV2 | PivotTable | BasicTable | HorizontalBarChart | HorizontalBarChartV2 | MercatorMap | SingleStat | Progress | RichText | WaterfallChart | FunnelChart | SunburstChart | RadarChart;
20
20
  export declare class AreaChart extends View<Component.AreaChartAttributes> {
21
21
  constructor(attributes: Partial<Component.AreaChartAttributes> & RequiredAttributes<Component.AreaChartAttributes>);
22
22
  static type(): Component.AreaChartAttributes['type'];
@@ -61,6 +61,10 @@ export declare class ScatterChart extends View<Component.ScatterChartAttributes>
61
61
  constructor(attributes: Partial<Component.ScatterChartAttributes> & RequiredAttributes<Component.ScatterChartAttributes>);
62
62
  static type(): Component.ScatterChartAttributes['type'];
63
63
  }
64
+ export declare class ScatterChartV2 extends View<Component.ScatterChartV2Attributes> {
65
+ constructor(attributes: Partial<Component.ScatterChartV2Attributes> & RequiredAttributes<Component.ScatterChartV2Attributes>);
66
+ static type(): Component.ScatterChartV2Attributes['type'];
67
+ }
64
68
  export declare class ComboChart extends View<Component.ComboChartAttributes> {
65
69
  constructor(attributes: Partial<Component.ComboChartAttributes> & RequiredAttributes<Component.ComboChartAttributes>);
66
70
  static type(): Component.ComboChartAttributes['type'];
@@ -12,7 +12,7 @@ import { RulesField } from '../CustomField/types';
12
12
  export type getNumberFormatter = (formatterId: string | undefined | null) => (number: number) => string;
13
13
  export type FormatType = string | null;
14
14
  export type ApproxAxisLabelCount = 'auto' | number;
15
- export type ComponentType = 'areaChart' | 'areaChartV2' | 'barChart' | 'barChartV2' | 'basicTable' | 'bubbleChart' | 'bubbleChartV2' | 'comboChart' | 'comboChartV2' | 'custom' | 'dataTable' | 'funnelChart' | 'horizontalBarChart' | 'horizontalBarChartV2' | 'lineChart' | 'lineChartV2' | 'mercatorMap' | 'pieChart' | 'progress' | 'radarChart' | 'richText' | 'scatterChart' | 'singleStat' | 'sunburstChart' | 'waterfallChart';
15
+ export type ComponentType = 'areaChart' | 'areaChartV2' | 'barChart' | 'barChartV2' | 'basicTable' | 'bubbleChart' | 'bubbleChartV2' | 'comboChart' | 'comboChartV2' | 'custom' | 'dataTable' | 'funnelChart' | 'horizontalBarChart' | 'horizontalBarChartV2' | 'lineChart' | 'lineChartV2' | 'mercatorMap' | 'pieChart' | 'progress' | 'radarChart' | 'richText' | 'scatterChart' | 'scatterChartV2' | 'singleStat' | 'sunburstChart' | 'waterfallChart';
16
16
  export declare const componentTypes: string[];
17
17
  export declare namespace Component {
18
18
  export type LineCurve = 'natural' | 'straight' | 'step' | 'stepBefore' | 'stepAfter' | 'dotted';
@@ -500,6 +500,29 @@ export declare namespace Component {
500
500
  trends?: Array<Trends>;
501
501
  quadrants?: Component.Quadrant.Rule;
502
502
  };
503
+ export type ScatterChartV2Attributes = BaseAttributes & BaseQueryAttributes & {
504
+ type: 'scatterChartV2';
505
+ stacked?: boolean | '100%';
506
+ xMeasure: QueryAttributes.Measure[];
507
+ xAxisPrefix: string;
508
+ yAxisPrefix: string;
509
+ xAxisPostfix: string;
510
+ yAxisPostfix: string;
511
+ lineCurve: LineCurve;
512
+ xAxisFormat: FormatType;
513
+ yAxisFormat: FormatType;
514
+ approxXAxisLabelCount: ApproxAxisLabelCount;
515
+ approxYAxisLabelCount: ApproxAxisLabelCount;
516
+ conditionalFormattingRules: Array<ConditionalFormatting.Rule>;
517
+ drilldown: QueryAttributes.Dimension[];
518
+ legend: boolean;
519
+ parameters?: Parameters;
520
+ goalLines?: Array<Component.GoalLine.Rule>;
521
+ axisTitles?: AxisTitles;
522
+ headline?: Headline;
523
+ trends?: Array<Trends>;
524
+ quadrants?: Component.Quadrant.Rule;
525
+ };
503
526
  export type RadarChartAttributes = BaseAttributes & BaseQueryAttributes & {
504
527
  type: 'radarChart';
505
528
  legend: boolean;
@@ -531,8 +554,8 @@ export declare namespace Component {
531
554
  decreaseColor: string;
532
555
  comparison: RulesField | null;
533
556
  };
534
- export type ViewType = 'areaChart' | 'barChart' | 'basicTable' | 'bubbleChart' | 'bubbleChartV2' | 'comboChart' | 'comboChartV2' | 'custom' | 'dataTable' | 'funnelChart' | 'horizontalBarChart' | 'lineChart' | 'lineChartV2' | 'areaChartV2' | 'barChartV2' | 'mercatorMap' | 'pieChart' | 'sunburstChart' | 'progress' | 'richText' | 'scatterChart' | 'singleStat' | 'waterfallChart' | 'radarChart' | 'horizontalBarChartV2';
535
- export type Attributes = AreaChartAttributes | BarChartAttributes | BasicTableAttributes | BubbleChartAttributes | BubbleChartV2Attributes | ComboChartAttributes | CustomViewAttributes | DataTableAttributes | FunnelChartAttributes | HorizontalBarChartAttributes | LineChartAttributes | LineChartV2Attributes | BarChartV2Attributes | AreaChartV2Attributes | MercatorMapAttributes | PieChartAttributes | SunburstChartAttributes | ProgressAttributes | RichTextAttributes | ScatterChartAttributes | SingleStatAttributes | WaterfallChartAttributes | RadarChartAttributes | ComboChartV2Attributes | HorizontalBarChartV2Attributes;
557
+ export type ViewType = 'areaChart' | 'barChart' | 'basicTable' | 'bubbleChart' | 'bubbleChartV2' | 'comboChart' | 'comboChartV2' | 'custom' | 'dataTable' | 'funnelChart' | 'horizontalBarChart' | 'lineChart' | 'lineChartV2' | 'areaChartV2' | 'barChartV2' | 'mercatorMap' | 'pieChart' | 'sunburstChart' | 'progress' | 'richText' | 'scatterChart' | 'scatterChartV2' | 'singleStat' | 'waterfallChart' | 'radarChart' | 'horizontalBarChartV2';
558
+ export type Attributes = AreaChartAttributes | BarChartAttributes | BasicTableAttributes | BubbleChartAttributes | BubbleChartV2Attributes | ComboChartAttributes | CustomViewAttributes | DataTableAttributes | FunnelChartAttributes | HorizontalBarChartAttributes | LineChartAttributes | LineChartV2Attributes | BarChartV2Attributes | AreaChartV2Attributes | MercatorMapAttributes | PieChartAttributes | SunburstChartAttributes | ProgressAttributes | RichTextAttributes | ScatterChartAttributes | ScatterChartV2Attributes | SingleStatAttributes | WaterfallChartAttributes | RadarChartAttributes | ComboChartV2Attributes | HorizontalBarChartV2Attributes;
536
559
  export interface RenderTableCell {
537
560
  viewId: string;
538
561
  type: 'basicTable' | 'dataTable';
@@ -0,0 +1,3 @@
1
+ import Joi from '@vizzly/joi';
2
+ import { ComponentInterfaceConfig } from '../ComponentInterface/types';
3
+ export declare const attributesSchema: (config: ComponentInterfaceConfig) => Joi.ObjectSchema<any>;
@@ -0,0 +1,3 @@
1
+ import { ViewConstants } from '../ComponentInterface/types/namespaces.types';
2
+ declare const CONSTANTS: ViewConstants;
3
+ export default CONSTANTS;
@@ -0,0 +1,4 @@
1
+ import { Component } from '../Component/types';
2
+ import { LoadComponentInterface } from '../ComponentInterface/types';
3
+ declare const ScatterChartV2: LoadComponentInterface<Component.ScatterChartV2Attributes, Component.ScatterChartV2Attributes>;
4
+ export default ScatterChartV2;
@@ -0,0 +1,4 @@
1
+ import { Component } from '../Component/types';
2
+ import { ComponentInterfaceConfig } from '../ComponentInterface/types';
3
+ declare const _default: (config: ComponentInterfaceConfig) => (scatterChart: Component.ScatterChartV2Attributes, partial: Partial<Component.ScatterChartV2Attributes>) => Component.ScatterChartV2Attributes;
4
+ export default _default;
@@ -5,6 +5,7 @@ declare function getComponentInterface(type: 'custom', config?: ComponentInterfa
5
5
  declare function getComponentInterface(type: 'pieChart', config?: ComponentInterfaceConfig): ComponentInterface<Component.PieChartAttributes>;
6
6
  declare function getComponentInterface(type: 'bubbleChart', config?: ComponentInterfaceConfig): ComponentInterface<Component.BubbleChartAttributes>;
7
7
  declare function getComponentInterface(type: 'bubbleChartV2', config?: ComponentInterfaceConfig): ComponentInterface<Component.BubbleChartV2Attributes>;
8
+ declare function getComponentInterface(type: 'scatterChartV2', config?: ComponentInterfaceConfig): ComponentInterface<Component.ScatterChartV2Attributes>;
8
9
  declare function getComponentInterface(type: 'sunburstChart', config?: ComponentInterfaceConfig): ComponentInterface<Component.SunburstChartAttributes>;
9
10
  declare function getComponentInterface(type: 'scatterChart', config?: ComponentInterfaceConfig): ComponentInterface<Component.ScatterChartAttributes>;
10
11
  declare function getComponentInterface(type: 'mercatorMap', config?: ComponentInterfaceConfig): ComponentInterface<Component.MercatorMapAttributes>;
package/package.json CHANGED
@@ -30,7 +30,7 @@
30
30
  "fix-type-alias": "tsc-alias -p tsconfig.types.json",
31
31
  "prepare": "yarn build"
32
32
  },
33
- "version": "0.15.0-dev-f2511344439820bfaf5d22b5a86b918e9edca528",
33
+ "version": "0.15.0-dev-98ca6ca4aaaedc95f70ca9a929f28584d9154210",
34
34
  "dependencies": {
35
35
  "@vizzly/api-client": "0.0.57",
36
36
  "@vizzly/joi": "^17.11.0",