@visuallyjs/browser-ui-angular 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/README.md +0 -0
  2. package/css/visuallyjs-angular.css +39 -0
  3. package/esm2022/index.mjs +34 -0
  4. package/esm2022/lib/base.group.component.mjs +43 -0
  5. package/esm2022/lib/base.node.component.mjs +41 -0
  6. package/esm2022/lib/base.port.component.mjs +71 -0
  7. package/esm2022/lib/base.vertex.component.mjs +75 -0
  8. package/esm2022/lib/browser-ui-angular.module.mjs +133 -0
  9. package/esm2022/lib/charts/area.chart.component.mjs +55 -0
  10. package/esm2022/lib/charts/bar.chart.component.mjs +55 -0
  11. package/esm2022/lib/charts/bubble.chart.component.mjs +55 -0
  12. package/esm2022/lib/charts/column.chart.component.mjs +55 -0
  13. package/esm2022/lib/charts/line.chart.component.mjs +55 -0
  14. package/esm2022/lib/charts/pie.chart.component.mjs +55 -0
  15. package/esm2022/lib/charts/sankey.chart.component.mjs +74 -0
  16. package/esm2022/lib/charts/scatter.chart.component.mjs +55 -0
  17. package/esm2022/lib/charts/xy.chart.component.mjs +39 -0
  18. package/esm2022/lib/color.tag.component.mjs +86 -0
  19. package/esm2022/lib/common.mjs +2 -0
  20. package/esm2022/lib/controls-component.mjs +164 -0
  21. package/esm2022/lib/decorator-component.mjs +52 -0
  22. package/esm2022/lib/default-group-component.mjs +18 -0
  23. package/esm2022/lib/default-node-component.mjs +18 -0
  24. package/esm2022/lib/diagram-component.mjs +53 -0
  25. package/esm2022/lib/diagram-palette-component.mjs +82 -0
  26. package/esm2022/lib/edge.type.picker.component.mjs +46 -0
  27. package/esm2022/lib/export-controls-component.mjs +75 -0
  28. package/esm2022/lib/inspector.component.mjs +77 -0
  29. package/esm2022/lib/miniview-component.mjs +63 -0
  30. package/esm2022/lib/model.mjs +8 -0
  31. package/esm2022/lib/overlay-component.mjs +18 -0
  32. package/esm2022/lib/palette.component.mjs +86 -0
  33. package/esm2022/lib/shape.component.mjs +85 -0
  34. package/esm2022/lib/shape.palette.component.mjs +78 -0
  35. package/esm2022/lib/surface-component.mjs +286 -0
  36. package/esm2022/lib/vjs-service.mjs +176 -0
  37. package/esm2022/visuallyjs-browser-ui-angular.mjs +2 -0
  38. package/fesm2022/visuallyjs-browser-ui-angular.mjs +2235 -0
  39. package/fesm2022/visuallyjs-browser-ui-angular.mjs.map +1 -0
  40. package/index.d.ts +40 -0
  41. package/lib/base.group.component.d.ts +60 -0
  42. package/lib/base.node.component.d.ts +55 -0
  43. package/lib/base.port.component.d.ts +74 -0
  44. package/lib/base.vertex.component.d.ts +111 -0
  45. package/lib/browser-ui-angular.module.d.ts +35 -0
  46. package/lib/charts/area.chart.component.d.ts +43 -0
  47. package/lib/charts/bar.chart.component.d.ts +40 -0
  48. package/lib/charts/bubble.chart.component.d.ts +40 -0
  49. package/lib/charts/column.chart.component.d.ts +40 -0
  50. package/lib/charts/line.chart.component.d.ts +39 -0
  51. package/lib/charts/pie.chart.component.d.ts +40 -0
  52. package/lib/charts/sankey.chart.component.d.ts +59 -0
  53. package/lib/charts/scatter.chart.component.d.ts +40 -0
  54. package/lib/charts/xy.chart.component.d.ts +32 -0
  55. package/lib/color.tag.component.d.ts +35 -0
  56. package/lib/common.d.ts +68 -0
  57. package/lib/controls-component.d.ts +71 -0
  58. package/lib/decorator-component.d.ts +25 -0
  59. package/lib/default-group-component.d.ts +11 -0
  60. package/lib/default-node-component.d.ts +11 -0
  61. package/lib/diagram-component.d.ts +52 -0
  62. package/lib/diagram-palette-component.d.ts +92 -0
  63. package/lib/edge.type.picker.component.d.ts +35 -0
  64. package/lib/export-controls-component.d.ts +59 -0
  65. package/lib/inspector.component.d.ts +96 -0
  66. package/lib/miniview-component.d.ts +45 -0
  67. package/lib/model.d.ts +8 -0
  68. package/lib/overlay-component.d.ts +59 -0
  69. package/lib/palette.component.d.ts +94 -0
  70. package/lib/shape.component.d.ts +70 -0
  71. package/lib/shape.palette.component.d.ts +73 -0
  72. package/lib/surface-component.d.ts +149 -0
  73. package/lib/vjs-service.d.ts +71 -0
  74. package/package.json +29 -0
  75. package/visuallyjs-browser-ui-angular.tgz +0 -0
@@ -0,0 +1,111 @@
1
+ import { ChangeDetectorRef, OnDestroy, OnInit } from "@angular/core";
2
+ import { ObjectData, Node, Surface, BrowserElement, VisuallyJsModel, SurfaceVertexCloneOptions, Port } from "@visuallyjs/browser-ui";
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * Superclass for base node and base group components.
6
+ */
7
+ export declare abstract class BaseVertexComponent<T extends Node> implements OnInit, OnDestroy {
8
+ /**
9
+ * Data object for the vertex
10
+ * @classMember
11
+ */
12
+ data: ObjectData;
13
+ /**
14
+ * Underlying instance. Visually sets this.
15
+ * @internal
16
+ */
17
+ model: VisuallyJsModel;
18
+ /**
19
+ * Underlying Surface. Visually sets this.
20
+ * @internal
21
+ */
22
+ surface: Surface;
23
+ /**
24
+ * Underlying model object. Visually sets this.
25
+ * @internal
26
+ */
27
+ modelObject: T;
28
+ /**
29
+ * @internal
30
+ */
31
+ _el: BrowserElement;
32
+ /**
33
+ * @internal
34
+ */
35
+ changeDetectorRef: ChangeDetectorRef;
36
+ /**
37
+ * This signal represents the underlying data for the vertex this component represents.
38
+ * @classMember
39
+ */
40
+ readonly $data: import("@angular/core").WritableSignal<ObjectData>;
41
+ /**
42
+ * Setup the data signal and bind an event handler to it.
43
+ * @internal
44
+ */
45
+ ngOnInit(): void;
46
+ /**
47
+ * Gets the vertex that this component represents.
48
+ */
49
+ getVertex(): T;
50
+ /**
51
+ * Subclasses should implement to return the appropriate vertex type.
52
+ * @private
53
+ * @internal
54
+ */
55
+ abstract _getVertex(): T;
56
+ /**
57
+ * @internal
58
+ */
59
+ ngOnDestroy(): void;
60
+ /**
61
+ * Removes the vertex this component represents from the data model, which will cause this component to be cleaned up.
62
+ */
63
+ removeVertex(): void;
64
+ /**
65
+ * Instructs the model to add a new port with the given data to the vertex this component represents. This will call the model's `portFactory`.
66
+ * @param type
67
+ * @param data
68
+ * @classMember
69
+ */
70
+ addNewPort(type: string, data: ObjectData): void;
71
+ /**
72
+ * Adds a port with the given data to the vertex this component represents.
73
+ * @param data
74
+ * @classMember
75
+ */
76
+ addPort(data: ObjectData): Port;
77
+ /**
78
+ * Sets the vertex this component represents as the current selection in the model.
79
+ * @classMember
80
+ */
81
+ setAsSelection(): void;
82
+ /**
83
+ * Adds the vertex this component represents to the current selection in the model.
84
+ * @classMember
85
+ */
86
+ addToSelection(): void;
87
+ /**
88
+ * Removes the vertex this component represents from the current selection in the model.
89
+ * @classMember
90
+ */
91
+ removeFromSelection(): void;
92
+ /**
93
+ * Shortcut method to update the current data backing this vertex, for convenience.
94
+ * @param data
95
+ *
96
+ */
97
+ updateVertex(data: ObjectData): void;
98
+ /**
99
+ * Clones this vertex, optionally setting to a given position, or offsetting from the original, and optionally magnetizing the new vertex's position, and flashing it to show the user where it is.
100
+ */
101
+ cloneVertex(options?: SurfaceVertexCloneOptions): void;
102
+ /**
103
+ * Flash this vertex
104
+ * @param duration Optional; defaults to 1000ms. Duration of the animation in milliseconds.
105
+ * @param animName Optional; the name of the CSS animation to apply. Defaults to ANIM_SURFACE_ELEMENT_FLASH.
106
+ * @internal
107
+ */
108
+ flashVertex(duration: number, animName?: string): void;
109
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseVertexComponent<any>, never>;
110
+ static ɵprov: i0.ɵɵInjectableDeclaration<BaseVertexComponent<any>>;
111
+ }
@@ -0,0 +1,35 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./default-node-component";
3
+ import * as i2 from "./default-group-component";
4
+ import * as i3 from "./base.port.component";
5
+ import * as i4 from "./miniview-component";
6
+ import * as i5 from "./surface-component";
7
+ import * as i6 from "./palette.component";
8
+ import * as i7 from "./shape.palette.component";
9
+ import * as i8 from "./diagram-palette-component";
10
+ import * as i9 from "./shape.component";
11
+ import * as i10 from "./controls-component";
12
+ import * as i11 from "./edge.type.picker.component";
13
+ import * as i12 from "./export-controls-component";
14
+ import * as i13 from "./color.tag.component";
15
+ import * as i14 from "./diagram-component";
16
+ import * as i15 from "./charts/column.chart.component";
17
+ import * as i16 from "./charts/bar.chart.component";
18
+ import * as i17 from "./charts/xy.chart.component";
19
+ import * as i18 from "./charts/line.chart.component";
20
+ import * as i19 from "./charts/area.chart.component";
21
+ import * as i20 from "./charts/pie.chart.component";
22
+ import * as i21 from "./charts/scatter.chart.component";
23
+ import * as i22 from "./charts/bubble.chart.component";
24
+ import * as i23 from "./charts/sankey.chart.component";
25
+ import * as i24 from "./decorator-component";
26
+ import * as i25 from "@angular/common";
27
+ /**
28
+ * VisuallyJs Angular module. If you're not using stand alone components then you should import this module into your app's module. Otherwise, you should import this module into any component in which you wish to use a VisuallyJs Angular component.
29
+ * @group Modules
30
+ */
31
+ export declare class VisuallyJsModule {
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<VisuallyJsModule, never>;
33
+ static ɵmod: i0.ɵɵNgModuleDeclaration<VisuallyJsModule, [typeof i1.DefaultNodeComponent, typeof i2.DefaultGroupComponent, typeof i3.BasePortComponent, typeof i4.MiniviewComponent, typeof i5.SurfaceComponent, typeof i6.PaletteComponent, typeof i7.ShapePaletteComponent, typeof i8.DiagramPaletteComponent, typeof i9.ShapeComponent, typeof i10.ControlsComponent, typeof i11.EdgeTypePickerComponent, typeof i6.PaletteComponent, typeof i12.ExportControlsComponent, typeof i13.ColorPickerComponent, typeof i14.DiagramComponent, typeof i15.ColumnChartComponent, typeof i16.BarChartComponent, typeof i17.XYChartComponent, typeof i18.LineChartComponent, typeof i19.AreaChartComponent, typeof i20.PieChartComponent, typeof i21.ScatterChartComponent, typeof i22.BubbleChartComponent, typeof i23.SankeyChartComponent, typeof i24.DecoratorComponent], [typeof i25.CommonModule], [typeof i4.MiniviewComponent, typeof i5.SurfaceComponent, typeof i6.PaletteComponent, typeof i8.DiagramPaletteComponent, typeof i9.ShapeComponent, typeof i7.ShapePaletteComponent, typeof i10.ControlsComponent, typeof i12.ExportControlsComponent, typeof i11.EdgeTypePickerComponent, typeof i13.ColorPickerComponent, typeof i14.DiagramComponent, typeof i15.ColumnChartComponent, typeof i16.BarChartComponent, typeof i17.XYChartComponent, typeof i18.LineChartComponent, typeof i19.AreaChartComponent, typeof i20.PieChartComponent, typeof i21.ScatterChartComponent, typeof i22.BubbleChartComponent, typeof i23.SankeyChartComponent, typeof i24.DecoratorComponent]>;
34
+ static ɵinj: i0.ɵɵInjectorDeclaration<VisuallyJsModule>;
35
+ }
@@ -0,0 +1,43 @@
1
+ import { AfterViewInit, ElementRef, NgZone, OnDestroy } from "@angular/core";
2
+ import { AreaChartOptions, ObjectData } from "@visuallyjs/browser-ui";
3
+ import { VisuallyJsService } from "../vjs-service";
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ * Options for an area chart
7
+ */
8
+ export interface AreaChartComponentOptions extends Omit<AreaChartOptions, "data" | "url" | "model"> {
9
+ }
10
+ export declare class AreaChartComponent implements AfterViewInit, OnDestroy {
11
+ /**
12
+ * Optional data to load into the chart
13
+ * @input
14
+ */
15
+ data?: Array<ObjectData>;
16
+ /**
17
+ * Optional URL for data to load into the chart
18
+ * @input
19
+ */
20
+ url?: string;
21
+ /**
22
+ * Options for the chart
23
+ * @input
24
+ */
25
+ options: AreaChartComponentOptions;
26
+ /**
27
+ * If true, the component attaches to a model provided by the VisuallyJsService. Defaults to false.
28
+ * @input
29
+ */
30
+ useModel?: boolean;
31
+ $vjs: VisuallyJsService;
32
+ private chart;
33
+ $el: ElementRef<any>;
34
+ $ngZone: NgZone;
35
+ private _init;
36
+ /**
37
+ * @internal
38
+ */
39
+ ngAfterViewInit(): void;
40
+ ngOnDestroy(): void;
41
+ static ɵfac: i0.ɵɵFactoryDeclaration<AreaChartComponent, never>;
42
+ static ɵcmp: i0.ɵɵComponentDeclaration<AreaChartComponent, "vjs-area-chart", never, { "data": { "alias": "data"; "required": false; }; "url": { "alias": "url"; "required": false; }; "options": { "alias": "options"; "required": false; }; "useModel": { "alias": "useModel"; "required": false; }; }, {}, never, never, false, never>;
43
+ }
@@ -0,0 +1,40 @@
1
+ import { AfterViewInit, ElementRef, NgZone, OnDestroy } from "@angular/core";
2
+ import { BarChartOptions, ObjectData } from "@visuallyjs/browser-ui";
3
+ import { VisuallyJsService } from "../vjs-service";
4
+ import * as i0 from "@angular/core";
5
+ export interface BarChartComponentOptions extends Omit<BarChartOptions, "data" | "url" | "model"> {
6
+ }
7
+ export declare class BarChartComponent implements AfterViewInit, OnDestroy {
8
+ /**
9
+ * Optional data to load into the chart
10
+ * @input
11
+ */
12
+ data?: Array<ObjectData>;
13
+ /**
14
+ * Optional URL for data to load into the chart
15
+ * @input
16
+ */
17
+ url?: string;
18
+ /**
19
+ * Options for the chart
20
+ * @input
21
+ */
22
+ options: BarChartComponentOptions;
23
+ /**
24
+ * If true, the component attaches to a model provided by the VisuallyJsService. Defaults to false.
25
+ * @input
26
+ */
27
+ useModel?: boolean;
28
+ $vjs: VisuallyJsService;
29
+ private chart;
30
+ $el: ElementRef<any>;
31
+ $ngZone: NgZone;
32
+ private _init;
33
+ /**
34
+ * @internal
35
+ */
36
+ ngAfterViewInit(): void;
37
+ ngOnDestroy(): void;
38
+ static ɵfac: i0.ɵɵFactoryDeclaration<BarChartComponent, never>;
39
+ static ɵcmp: i0.ɵɵComponentDeclaration<BarChartComponent, "vjs-bar-chart", never, { "data": { "alias": "data"; "required": false; }; "url": { "alias": "url"; "required": false; }; "options": { "alias": "options"; "required": false; }; "useModel": { "alias": "useModel"; "required": false; }; }, {}, never, never, false, never>;
40
+ }
@@ -0,0 +1,40 @@
1
+ import { AfterViewInit, ElementRef, NgZone, OnDestroy } from "@angular/core";
2
+ import { BubbleChartOptions, ObjectData } from "@visuallyjs/browser-ui";
3
+ import { VisuallyJsService } from "../vjs-service";
4
+ import * as i0 from "@angular/core";
5
+ export interface BubbleChartComponentOptions extends Omit<BubbleChartOptions, "data" | "url" | "model"> {
6
+ }
7
+ export declare class BubbleChartComponent implements AfterViewInit, OnDestroy {
8
+ /**
9
+ * Optional data to load into the chart
10
+ * @input
11
+ */
12
+ data?: Array<ObjectData>;
13
+ /**
14
+ * Optional URL for data to load into the chart
15
+ * @input
16
+ */
17
+ url?: string;
18
+ /**
19
+ * Options for the chart
20
+ * @input
21
+ */
22
+ options: BubbleChartComponentOptions;
23
+ /**
24
+ * If true, the component attaches to a model provided by the VisuallyJsService. Defaults to false.
25
+ * @input
26
+ */
27
+ useModel?: boolean;
28
+ private chart;
29
+ $el: ElementRef<any>;
30
+ $ngZone: NgZone;
31
+ $vjs: VisuallyJsService;
32
+ private _init;
33
+ /**
34
+ * @internal
35
+ */
36
+ ngAfterViewInit(): void;
37
+ ngOnDestroy(): void;
38
+ static ɵfac: i0.ɵɵFactoryDeclaration<BubbleChartComponent, never>;
39
+ static ɵcmp: i0.ɵɵComponentDeclaration<BubbleChartComponent, "vjs-bubble-chart", never, { "data": { "alias": "data"; "required": false; }; "url": { "alias": "url"; "required": false; }; "options": { "alias": "options"; "required": false; }; "useModel": { "alias": "useModel"; "required": false; }; }, {}, never, never, false, never>;
40
+ }
@@ -0,0 +1,40 @@
1
+ import { AfterViewInit, ElementRef, NgZone, OnDestroy } from "@angular/core";
2
+ import { ColumnChartOptions, ObjectData } from "@visuallyjs/browser-ui";
3
+ import { VisuallyJsService } from "../vjs-service";
4
+ import * as i0 from "@angular/core";
5
+ export interface ColumnChartComponentOptions extends Omit<ColumnChartOptions, "data" | "url" | "model"> {
6
+ }
7
+ export declare class ColumnChartComponent implements AfterViewInit, OnDestroy {
8
+ /**
9
+ * Optional data to load into the chart
10
+ * @input
11
+ */
12
+ data?: Array<ObjectData>;
13
+ /**
14
+ * Optional URL for data to load into the chart
15
+ * @input
16
+ */
17
+ url?: string;
18
+ /**
19
+ * Options for the chart
20
+ * @input
21
+ */
22
+ options: ColumnChartComponentOptions;
23
+ /**
24
+ * If true, the component attaches to a model provided by the VisuallyJsService. Defaults to false.
25
+ * @input
26
+ */
27
+ useModel?: boolean;
28
+ private chart;
29
+ $el: ElementRef<any>;
30
+ $ngZone: NgZone;
31
+ $vjs: VisuallyJsService;
32
+ private _init;
33
+ /**
34
+ * @internal
35
+ */
36
+ ngAfterViewInit(): void;
37
+ ngOnDestroy(): void;
38
+ static ɵfac: i0.ɵɵFactoryDeclaration<ColumnChartComponent, never>;
39
+ static ɵcmp: i0.ɵɵComponentDeclaration<ColumnChartComponent, "vjs-column-chart", never, { "data": { "alias": "data"; "required": false; }; "url": { "alias": "url"; "required": false; }; "options": { "alias": "options"; "required": false; }; "useModel": { "alias": "useModel"; "required": false; }; }, {}, never, never, false, never>;
40
+ }
@@ -0,0 +1,39 @@
1
+ import { AfterViewInit, ElementRef, NgZone, OnDestroy } from "@angular/core";
2
+ import { LineChartOptions, ObjectData } from "@visuallyjs/browser-ui";
3
+ import { VisuallyJsService } from "../vjs-service";
4
+ import * as i0 from "@angular/core";
5
+ export interface LineChartComponentOptions extends Omit<LineChartOptions, "data" | "url" | "model"> {
6
+ }
7
+ export declare class LineChartComponent implements AfterViewInit, OnDestroy {
8
+ /**
9
+ * Optional data to load into the chart
10
+ *
11
+ */
12
+ data?: Array<ObjectData>;
13
+ /**
14
+ * Optional URL for data to load into the chart
15
+ *
16
+ */
17
+ url?: string;
18
+ /**
19
+ * Options for the chart
20
+ */
21
+ options: LineChartComponentOptions;
22
+ /**
23
+ * If true, the component attaches to a model provided by the VisuallyJsService. Defaults to false.
24
+ * @input
25
+ */
26
+ useModel?: boolean;
27
+ private chart;
28
+ $el: ElementRef<any>;
29
+ $ngZone: NgZone;
30
+ $vjs: VisuallyJsService;
31
+ private _init;
32
+ /**
33
+ * @internal
34
+ */
35
+ ngAfterViewInit(): void;
36
+ ngOnDestroy(): void;
37
+ static ɵfac: i0.ɵɵFactoryDeclaration<LineChartComponent, never>;
38
+ static ɵcmp: i0.ɵɵComponentDeclaration<LineChartComponent, "vjs-line-chart", never, { "data": { "alias": "data"; "required": false; }; "url": { "alias": "url"; "required": false; }; "options": { "alias": "options"; "required": false; }; "useModel": { "alias": "useModel"; "required": false; }; }, {}, never, never, false, never>;
39
+ }
@@ -0,0 +1,40 @@
1
+ import { AfterViewInit, ElementRef, NgZone, OnDestroy } from "@angular/core";
2
+ import { PieChartOptions, ObjectData } from "@visuallyjs/browser-ui";
3
+ import { VisuallyJsService } from "../vjs-service";
4
+ import * as i0 from "@angular/core";
5
+ export interface PieChartComponentOptions extends Omit<PieChartOptions, "data" | "url" | "model"> {
6
+ }
7
+ export declare class PieChartComponent implements AfterViewInit, OnDestroy {
8
+ /**
9
+ * Optional data to load into the chart
10
+ * @input
11
+ */
12
+ data?: Array<ObjectData>;
13
+ /**
14
+ * Optional URL for data to load into the chart
15
+ * @input
16
+ */
17
+ url?: string;
18
+ /**
19
+ * Options for the chart
20
+ * @input
21
+ */
22
+ options: PieChartComponentOptions;
23
+ /**
24
+ * If true, the component attaches to a model provided by the VisuallyJsService. Defaults to false.
25
+ * @input
26
+ */
27
+ useModel?: boolean;
28
+ private chart;
29
+ $el: ElementRef<any>;
30
+ $ngZone: NgZone;
31
+ $vjs: VisuallyJsService;
32
+ private _init;
33
+ /**
34
+ * @internal
35
+ */
36
+ ngAfterViewInit(): void;
37
+ ngOnDestroy(): void;
38
+ static ɵfac: i0.ɵɵFactoryDeclaration<PieChartComponent, never>;
39
+ static ɵcmp: i0.ɵɵComponentDeclaration<PieChartComponent, "vjs-pie-chart", never, { "data": { "alias": "data"; "required": false; }; "url": { "alias": "url"; "required": false; }; "options": { "alias": "options"; "required": false; }; "useModel": { "alias": "useModel"; "required": false; }; }, {}, never, never, false, never>;
40
+ }
@@ -0,0 +1,59 @@
1
+ import { ElementRef, OnChanges, SimpleChanges, AfterViewInit, OnDestroy, NgZone } from "@angular/core";
2
+ import { SankeyOptions, VisuallyJsDefaultJSON } from "@visuallyjs/browser-ui";
3
+ import { VisuallyJsService } from "../vjs-service";
4
+ import * as i0 from "@angular/core";
5
+ export interface SankeyChartComponentOptions extends Omit<SankeyOptions, "data" | "url" | "model"> {
6
+ }
7
+ export declare class SankeyChartComponent implements AfterViewInit, OnDestroy, OnChanges {
8
+ /**
9
+ * Optional data to load into the chart (in CSV format)
10
+ * @input
11
+ */
12
+ csvData?: string;
13
+ /**
14
+ * Optional data to load into the chart (in VisuallyJs default json format)
15
+ * @input
16
+ */
17
+ jsonData?: VisuallyJsDefaultJSON;
18
+ /**
19
+ * Optional URL for data to load into the chart
20
+ * @input
21
+ */
22
+ url?: string;
23
+ /**
24
+ * Whether the chart is interactive.
25
+ * @input
26
+ */
27
+ interactive?: boolean;
28
+ /**
29
+ * Optional property to pivot the sankey chart on.
30
+ * @input
31
+ */
32
+ pivot?: string;
33
+ /**
34
+ * Options for the chart
35
+ * @input
36
+ */
37
+ options: SankeyChartComponentOptions;
38
+ /**
39
+ * If true, the component attaches to a model provided by the VisuallyJsService. Defaults to false.
40
+ * @input
41
+ */
42
+ useModel?: boolean;
43
+ private chart;
44
+ $el: ElementRef<any>;
45
+ $ngZone: NgZone;
46
+ $vjs: VisuallyJsService;
47
+ /**
48
+ * @internal
49
+ */
50
+ private _init;
51
+ /**
52
+ * @internal
53
+ */
54
+ ngAfterViewInit(): void;
55
+ ngOnChanges(changes: SimpleChanges): void;
56
+ ngOnDestroy(): void;
57
+ static ɵfac: i0.ɵɵFactoryDeclaration<SankeyChartComponent, never>;
58
+ static ɵcmp: i0.ɵɵComponentDeclaration<SankeyChartComponent, "vjs-sankey-chart", never, { "csvData": { "alias": "csvData"; "required": false; }; "jsonData": { "alias": "jsonData"; "required": false; }; "url": { "alias": "url"; "required": false; }; "interactive": { "alias": "interactive"; "required": false; }; "pivot": { "alias": "pivot"; "required": false; }; "options": { "alias": "options"; "required": false; }; "useModel": { "alias": "useModel"; "required": false; }; }, {}, never, never, false, never>;
59
+ }
@@ -0,0 +1,40 @@
1
+ import { AfterViewInit, ElementRef, NgZone, OnDestroy } from "@angular/core";
2
+ import { ScatterChartOptions, ObjectData } from "@visuallyjs/browser-ui";
3
+ import { VisuallyJsService } from "../vjs-service";
4
+ import * as i0 from "@angular/core";
5
+ export interface ScatterChartComponentOptions extends Omit<ScatterChartOptions, "data" | "url" | "model"> {
6
+ }
7
+ export declare class ScatterChartComponent implements AfterViewInit, OnDestroy {
8
+ /**
9
+ * Optional data to load into the chart
10
+ * @input
11
+ */
12
+ data?: Array<ObjectData>;
13
+ /**
14
+ * Optional URL for data to load into the chart
15
+ * @input
16
+ */
17
+ url?: string;
18
+ /**
19
+ * Options for the chart
20
+ * @input
21
+ */
22
+ options: ScatterChartComponentOptions;
23
+ /**
24
+ * If true, the component attaches to a model provided by the VisuallyJsService. Defaults to false.
25
+ * @input
26
+ */
27
+ useModel?: boolean;
28
+ private chart;
29
+ $el: ElementRef<any>;
30
+ $ngZone: NgZone;
31
+ $vjs: VisuallyJsService;
32
+ private _init;
33
+ /**
34
+ * @internal
35
+ */
36
+ ngAfterViewInit(): void;
37
+ ngOnDestroy(): void;
38
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScatterChartComponent, never>;
39
+ static ɵcmp: i0.ɵɵComponentDeclaration<ScatterChartComponent, "vjs-scatter-chart", never, { "data": { "alias": "data"; "required": false; }; "url": { "alias": "url"; "required": false; }; "options": { "alias": "options"; "required": false; }; "useModel": { "alias": "useModel"; "required": false; }; }, {}, never, never, false, never>;
40
+ }
@@ -0,0 +1,32 @@
1
+ import { AfterViewInit, ElementRef, NgZone, OnDestroy } from "@angular/core";
2
+ import { CategoryValueChartOptions, ObjectData } from "@visuallyjs/browser-ui";
3
+ import * as i0 from "@angular/core";
4
+ export interface XYChartComponentOptions extends Omit<CategoryValueChartOptions, "data" | "url" | "model"> {
5
+ }
6
+ export declare class XYChartComponent implements AfterViewInit, OnDestroy {
7
+ /**
8
+ * Optional data to load into the chart
9
+ * @input
10
+ */
11
+ data?: Array<ObjectData>;
12
+ /**
13
+ * Optional URL for data to load into the chart
14
+ * @input
15
+ */
16
+ url?: string;
17
+ /**
18
+ * Options for the chart
19
+ * @input
20
+ */
21
+ options: XYChartComponentOptions;
22
+ private chart;
23
+ $el: ElementRef<any>;
24
+ $ngZone: NgZone;
25
+ /**
26
+ * @internal
27
+ */
28
+ ngAfterViewInit(): void;
29
+ ngOnDestroy(): void;
30
+ static ɵfac: i0.ɵɵFactoryDeclaration<XYChartComponent, never>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<XYChartComponent, "vjs-xy-chart", never, { "data": { "alias": "data"; "required": false; }; "url": { "alias": "url"; "required": false; }; "options": { "alias": "options"; "required": false; }; }, {}, never, never, false, never>;
32
+ }
@@ -0,0 +1,35 @@
1
+ import { AfterViewInit, ElementRef, EventEmitter, ChangeDetectorRef } from "@angular/core";
2
+ import { VisuallyJsService } from "./vjs-service";
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * A helper component that offers the ability to change color and keep a history of selected colors, for
6
+ * use in an {@link InspectorComponent}
7
+ * @group Components
8
+ */
9
+ export declare class ColorPickerComponent implements AfterViewInit {
10
+ /**
11
+ * The name of the property that maps the color. Required.
12
+ * @input
13
+ */
14
+ propertyName: string;
15
+ /**
16
+ * Maximum number of colors in history. Defaults to 10.
17
+ * @input
18
+ */
19
+ maxColors?: number;
20
+ /**
21
+ * Fires an event when the user selects a new style via mouse click.
22
+ * @output
23
+ */
24
+ changeEvent: EventEmitter<string>;
25
+ swatches: import("@angular/core").WritableSignal<string[]>;
26
+ $vjs: VisuallyJsService;
27
+ $el: ElementRef<any>;
28
+ $cdr: ChangeDetectorRef;
29
+ private $getInspector;
30
+ selectColor(color: string): void;
31
+ private pushColor;
32
+ ngAfterViewInit(): void;
33
+ static ɵfac: i0.ɵɵFactoryDeclaration<ColorPickerComponent, never>;
34
+ static ɵcmp: i0.ɵɵComponentDeclaration<ColorPickerComponent, "vjs-color", never, { "propertyName": { "alias": "propertyName"; "required": false; }; "maxColors": { "alias": "maxColors"; "required": false; }; }, { "changeEvent": "changeEvent"; }, never, never, false, never>;
35
+ }
@@ -0,0 +1,68 @@
1
+ import { BrowserElement, SurfaceOptions, Vertex, GroupMapping, NodeMapping, PortMapping, ViewSpec } from "@visuallyjs/browser-ui";
2
+ /**
3
+ * Extension of node definition in a view that adds `component` and `inputs`.
4
+ *
5
+ */
6
+ export interface AngularNodeMapping extends Omit<NodeMapping<BrowserElement>, "template" | "templateId" | "parameters"> {
7
+ /**
8
+ * Reference to the Angular component class used to render this node type.
9
+ */
10
+ component?: any;
11
+ /**
12
+ * Optional values to extract from the backing data and inject as inputs into the component.
13
+ */
14
+ inputs?: Record<string, string | ((v: Vertex) => string)>;
15
+ }
16
+ /**
17
+ * Extension of group definition in a view that adds `component` and `inputs`.
18
+ *
19
+ */
20
+ export interface AngularGroupMapping extends Omit<GroupMapping<any>, "template" | "templateId" | "parameters"> {
21
+ /**
22
+ * Reference to the Angular component class used to render this group type.
23
+ */
24
+ component?: any;
25
+ /**
26
+ * Optional values to extract from the backing data and inject as inputs into the component.
27
+ */
28
+ inputs?: Record<string, string | ((v: Vertex) => string)>;
29
+ }
30
+ /**
31
+ * Extension of port definition in a view that adds `component`.
32
+ *
33
+ */
34
+ export interface AngularPortMapping extends Omit<PortMapping<any>, "template" | "templateId" | "parameters"> {
35
+ /**
36
+ * Reference to the Angular component class used to render this port type. This is optional - some ports are just logical
37
+ * constructs used to apply certain behaviour, and often ports are rendered as part of a node or group's template.
38
+ */
39
+ component?: any;
40
+ }
41
+ /**
42
+ * Extension of view options that allows for Angular components to be mapped to node, group and port types.
43
+ *
44
+ */
45
+ export interface AngularViewOptions extends ViewSpec<BrowserElement> {
46
+ /**
47
+ * Node mappings for the view.
48
+ */
49
+ nodes?: Record<string, AngularNodeMapping>;
50
+ /**
51
+ * Group mappings for the view.
52
+ */
53
+ groups?: Record<string, AngularGroupMapping>;
54
+ /**
55
+ * Port mappings for the view.
56
+ */
57
+ ports?: Record<string, AngularPortMapping>;
58
+ }
59
+ /**
60
+ * Render options for a Surface when used with Angular integration. Some values from the original SurfaceRenderOptions are not relevant.
61
+ *
62
+ */
63
+ export interface AngularRenderOptions extends Pick<SurfaceOptions, Exclude<keyof SurfaceOptions, [
64
+ "view",
65
+ "tags",
66
+ "container"
67
+ ]>> {
68
+ }