@carbon/charts-angular 1.9.0-rc.3 → 1.9.0-rc.4
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/esm2022/carbon-charts-angular.mjs +5 -0
- package/esm2022/index.mjs +14 -0
- package/esm2022/lib/charts/alluvial-chart.component.mjs +32 -0
- package/esm2022/lib/charts/area-chart-stacked.component.mjs +32 -0
- package/esm2022/lib/charts/area-chart.component.mjs +32 -0
- package/esm2022/lib/charts/bar-chart-grouped.component.mjs +32 -0
- package/esm2022/lib/charts/bar-chart-simple.component.mjs +32 -0
- package/esm2022/lib/charts/bar-chart-stacked.component.mjs +32 -0
- package/esm2022/lib/charts/base-chart.component.mjs +75 -0
- package/esm2022/lib/charts/boxplot-chart.component.mjs +32 -0
- package/esm2022/lib/charts/bubble-chart.component.mjs +32 -0
- package/esm2022/lib/charts/bullet-chart.component.mjs +32 -0
- package/esm2022/lib/charts/charts.module.mjs +123 -0
- package/esm2022/lib/charts/choropleth.component.mjs +32 -0
- package/esm2022/lib/charts/circle-pack-chart.component.mjs +32 -0
- package/esm2022/lib/charts/combo-chart.component.mjs +32 -0
- package/esm2022/lib/charts/donut-chart.component.mjs +32 -0
- package/esm2022/lib/charts/gauge-chart.component.mjs +32 -0
- package/esm2022/lib/charts/heatmap-chart.component.mjs +32 -0
- package/esm2022/lib/charts/histogram-chart.component.mjs +32 -0
- package/esm2022/lib/charts/index.mjs +28 -0
- package/esm2022/lib/charts/line-chart.component.mjs +32 -0
- package/esm2022/lib/charts/lollipop-chart.component.mjs +32 -0
- package/esm2022/lib/charts/meter-chart.component.mjs +32 -0
- package/esm2022/lib/charts/pie-chart.component.mjs +32 -0
- package/esm2022/lib/charts/radar-chart.component.mjs +32 -0
- package/esm2022/lib/charts/scatter-chart.component.mjs +32 -0
- package/esm2022/lib/charts/tree-chart.component.mjs +32 -0
- package/esm2022/lib/charts/treemap-chart.component.mjs +32 -0
- package/esm2022/lib/charts/wordcloud-chart.component.mjs +32 -0
- package/esm2022/lib/diagrams/config.mjs +2 -0
- package/esm2022/lib/diagrams/edges/edge.component.mjs +73 -0
- package/esm2022/lib/diagrams/edges/edge.module.mjs +20 -0
- package/esm2022/lib/diagrams/edges/marker/marker.component.mjs +161 -0
- package/esm2022/lib/diagrams/edges/marker/marker.module.mjs +48 -0
- package/esm2022/lib/diagrams/index.mjs +5 -0
- package/esm2022/lib/diagrams/nodes/cards/card-node-column.component.mjs +38 -0
- package/esm2022/lib/diagrams/nodes/cards/card-node-label.component.mjs +28 -0
- package/esm2022/lib/diagrams/nodes/cards/card-node-subtitle.component.mjs +28 -0
- package/esm2022/lib/diagrams/nodes/cards/card-node-title.component.mjs +28 -0
- package/esm2022/lib/diagrams/nodes/cards/card-node.component.mjs +191 -0
- package/esm2022/lib/diagrams/nodes/cards/card-node.module.mjs +44 -0
- package/esm2022/lib/diagrams/nodes/shape/shape-node.component.mjs +241 -0
- package/esm2022/lib/diagrams/nodes/shape/shape-node.module.mjs +20 -0
- package/esm2022/lib/index.mjs +3 -0
- package/fesm2022/carbon-charts-angular.mjs +1728 -0
- package/fesm2022/carbon-charts-angular.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/charts/alluvial-chart.component.d.ts +16 -0
- package/lib/charts/area-chart-stacked.component.d.ts +16 -0
- package/lib/charts/area-chart.component.d.ts +16 -0
- package/lib/charts/bar-chart-grouped.component.d.ts +16 -0
- package/lib/charts/bar-chart-simple.component.d.ts +16 -0
- package/lib/charts/bar-chart-stacked.component.d.ts +16 -0
- package/lib/charts/base-chart.component.d.ts +46 -0
- package/lib/charts/boxplot-chart.component.d.ts +16 -0
- package/lib/charts/bubble-chart.component.d.ts +16 -0
- package/lib/charts/bullet-chart.component.d.ts +16 -0
- package/lib/charts/charts.module.d.ts +33 -0
- package/lib/charts/choropleth.component.d.ts +16 -0
- package/lib/charts/circle-pack-chart.component.d.ts +16 -0
- package/lib/charts/combo-chart.component.d.ts +16 -0
- package/lib/charts/donut-chart.component.d.ts +16 -0
- package/lib/charts/gauge-chart.component.d.ts +16 -0
- package/lib/charts/heatmap-chart.component.d.ts +16 -0
- package/lib/charts/histogram-chart.component.d.ts +16 -0
- package/{src/lib/charts/index.ts → lib/charts/index.d.ts} +27 -28
- package/lib/charts/line-chart.component.d.ts +16 -0
- package/lib/charts/lollipop-chart.component.d.ts +16 -0
- package/lib/charts/meter-chart.component.d.ts +16 -0
- package/lib/charts/pie-chart.component.d.ts +16 -0
- package/lib/charts/radar-chart.component.d.ts +16 -0
- package/lib/charts/scatter-chart.component.d.ts +16 -0
- package/lib/charts/tree-chart.component.d.ts +16 -0
- package/lib/charts/treemap-chart.component.d.ts +16 -0
- package/lib/charts/wordcloud-chart.component.d.ts +16 -0
- package/lib/diagrams/config.d.ts +1 -0
- package/lib/diagrams/edges/edge.component.d.ts +20 -0
- package/lib/diagrams/edges/edge.module.d.ts +9 -0
- package/lib/diagrams/edges/marker/marker.component.d.ts +52 -0
- package/lib/diagrams/edges/marker/marker.module.d.ts +10 -0
- package/lib/diagrams/index.d.ts +4 -0
- package/lib/diagrams/nodes/cards/card-node-column.component.d.ts +7 -0
- package/lib/diagrams/nodes/cards/card-node-label.component.d.ts +6 -0
- package/lib/diagrams/nodes/cards/card-node-subtitle.component.d.ts +6 -0
- package/lib/diagrams/nodes/cards/card-node-title.component.d.ts +6 -0
- package/lib/diagrams/nodes/cards/card-node.component.d.ts +20 -0
- package/lib/diagrams/nodes/cards/card-node.module.d.ts +18 -0
- package/lib/diagrams/nodes/shape/shape-node.component.d.ts +25 -0
- package/lib/diagrams/nodes/shape/shape-node.module.d.ts +9 -0
- package/lib/index.d.ts +2 -0
- package/package.json +17 -71
- package/styles.css +28264 -0
- package/styles.css.map +1 -0
- package/styles.min.css +1 -0
- package/styles.min.css.map +1 -0
- package/.eslintrc.json +0 -51
- package/.storybook/carbon-charts-theme.ts +0 -8
- package/.storybook/main.ts +0 -39
- package/.storybook/manager-head.html +0 -22
- package/.storybook/manager.ts +0 -6
- package/.storybook/preview-head.html +0 -6
- package/.storybook/preview.ts +0 -42
- package/.storybook/tsconfig.json +0 -21
- package/.storybook/typings.d.ts +0 -4
- package/angular.json +0 -91
- package/carbon.yml +0 -277
- package/ng-package.json +0 -14
- package/src/index.ts +0 -53
- package/src/lib/charts/alluvial-chart.component.ts +0 -30
- package/src/lib/charts/area-chart-stacked.component.ts +0 -30
- package/src/lib/charts/area-chart.component.ts +0 -30
- package/src/lib/charts/bar-chart-grouped.component.ts +0 -30
- package/src/lib/charts/bar-chart-simple.component.ts +0 -30
- package/src/lib/charts/bar-chart-stacked.component.ts +0 -30
- package/src/lib/charts/base-chart.component.ts +0 -91
- package/src/lib/charts/boxplot-chart.component.ts +0 -30
- package/src/lib/charts/bubble-chart.component.ts +0 -30
- package/src/lib/charts/bullet-chart.component.ts +0 -30
- package/src/lib/charts/charts.module.ts +0 -92
- package/src/lib/charts/choropleth.component.ts +0 -33
- package/src/lib/charts/circle-pack-chart.component.ts +0 -30
- package/src/lib/charts/combo-chart.component.ts +0 -30
- package/src/lib/charts/donut-chart.component.ts +0 -30
- package/src/lib/charts/gauge-chart.component.ts +0 -30
- package/src/lib/charts/heatmap-chart.component.ts +0 -30
- package/src/lib/charts/histogram-chart.component.ts +0 -30
- package/src/lib/charts/line-chart.component.ts +0 -30
- package/src/lib/charts/lollipop-chart.component.ts +0 -30
- package/src/lib/charts/meter-chart.component.ts +0 -30
- package/src/lib/charts/pie-chart.component.ts +0 -30
- package/src/lib/charts/radar-chart.component.ts +0 -30
- package/src/lib/charts/scatter-chart.component.ts +0 -30
- package/src/lib/charts/tree-chart.component.ts +0 -30
- package/src/lib/charts/treemap-chart.component.ts +0 -30
- package/src/lib/charts/wordcloud-chart.component.ts +0 -30
- package/src/lib/diagrams/config.ts +0 -1
- package/src/lib/diagrams/edges/edge.component.ts +0 -41
- package/src/lib/diagrams/edges/edge.module.ts +0 -11
- package/src/lib/diagrams/edges/marker/marker.component.ts +0 -112
- package/src/lib/diagrams/edges/marker/marker.module.ts +0 -43
- package/src/lib/diagrams/index.ts +0 -23
- package/src/lib/diagrams/nodes/cards/card-node-column.component.ts +0 -22
- package/src/lib/diagrams/nodes/cards/card-node-label.component.ts +0 -14
- package/src/lib/diagrams/nodes/cards/card-node-subtitle.component.ts +0 -14
- package/src/lib/diagrams/nodes/cards/card-node-title.component.ts +0 -14
- package/src/lib/diagrams/nodes/cards/card-node.component.ts +0 -98
- package/src/lib/diagrams/nodes/cards/card-node.module.ts +0 -32
- package/src/lib/diagrams/nodes/shape/shape-node.component.ts +0 -120
- package/src/lib/diagrams/nodes/shape/shape-node.module.ts +0 -11
- package/src/lib/index.ts +0 -50
- package/src/stories/0-api.stories.mdx +0 -69
- package/src/stories/1-color-palette.stories.mdx +0 -73
- package/src/stories/2-combo-charts.stories.mdx +0 -107
- package/src/stories/3-dual-axes-charts.stories.mdx +0 -51
- package/src/stories/4-event-listeners.stories.mdx +0 -26
- package/src/stories/5-tabular-data-format.stories.mdx +0 -132
- package/src/stories/6-themes.stories.mdx +0 -50
- package/src/stories/all.stories.ts +0 -104
- package/src/stories/angular.stories.mdx +0 -136
- package/src/stories/diagrams/0-diagrams-start-here.stories.ts +0 -219
- package/src/stories/diagrams/diagrams-edges-marker.stories.ts +0 -189
- package/src/stories/diagrams/diagrams-edges.stories.ts +0 -177
- package/src/stories/diagrams/diagrams-nodes-card.stories.ts +0 -245
- package/src/stories/diagrams/diagrams-nodes-shape.stories.ts +0 -141
- package/src/stories/diagrams/utils.ts +0 -5
- package/src/test.ts +0 -28
- package/tsconfig.json +0 -43
- package/tsconfig.lib.json +0 -14
- package/tsconfig.lib.prod.json +0 -11
- package/tsconfig.spec.json +0 -17
- package/tsconfig.vite.json +0 -13
- package/vite.config.ts +0 -22
|
@@ -0,0 +1,1728 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Component, Input, NgModule, EventEmitter, Output, HostBinding } from '@angular/core';
|
|
3
|
+
import { AlluvialChart, AreaChart, BoxplotChart, BubbleChart, BulletChart, CirclePackChart, ComboChart, DonutChart, ExperimentalChoroplethChart, GaugeChart, GroupedBarChart, HeatmapChart, HistogramChart, LineChart, LollipopChart, MeterChart, PieChart, RadarChart, ScatterChart, SimpleBarChart, StackedAreaChart, StackedBarChart, TreeChart, TreemapChart, WordCloudChart, arrowLeft, arrowRight, circle, diamond, square, tee, buildStraightPathString } from '@carbon/charts';
|
|
4
|
+
import * as i1 from '@angular/common';
|
|
5
|
+
import { CommonModule } from '@angular/common';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Wrapper around `BaseChart` in carbon charts library
|
|
9
|
+
*
|
|
10
|
+
* Most functions just call their equivalent from the chart library.
|
|
11
|
+
*/
|
|
12
|
+
class BaseChartComponent {
|
|
13
|
+
/**
|
|
14
|
+
* Data passed to charts library for displaying
|
|
15
|
+
*/
|
|
16
|
+
set data(newData) {
|
|
17
|
+
// If data already exists, that means the chart has been initialized
|
|
18
|
+
const dataExistsAlready = !!this._data;
|
|
19
|
+
this._data = newData;
|
|
20
|
+
if (dataExistsAlready) {
|
|
21
|
+
this.chart?.model.setData(newData);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
get data() {
|
|
25
|
+
return this._data;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Options passed to charts library
|
|
29
|
+
*/
|
|
30
|
+
set options(newOptions) {
|
|
31
|
+
// If data already exists, that means the chart has been initialized
|
|
32
|
+
const optionsExistAlready = !!this._options;
|
|
33
|
+
this._options = newOptions;
|
|
34
|
+
if (optionsExistAlready) {
|
|
35
|
+
this.chart?.model.setOptions(newOptions);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
get options() {
|
|
39
|
+
return this._options;
|
|
40
|
+
}
|
|
41
|
+
constructor(elementRef) {
|
|
42
|
+
this.elementRef = elementRef;
|
|
43
|
+
}
|
|
44
|
+
ngOnInit() {
|
|
45
|
+
// Width prop is mandatory for the wrappers
|
|
46
|
+
if (this.width) {
|
|
47
|
+
this.options.width = this.width;
|
|
48
|
+
}
|
|
49
|
+
// Height prop is mandatory for the wrappers
|
|
50
|
+
if (this.height) {
|
|
51
|
+
this.options.height = this.height;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Runs after view init to create a chart, attach it to `elementRef` and draw it.
|
|
56
|
+
*/
|
|
57
|
+
ngAfterViewInit() {
|
|
58
|
+
console.log('Class that extended BaseChartComponent did not implement ngAfterViewInit().');
|
|
59
|
+
}
|
|
60
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: BaseChartComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
61
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.4", type: BaseChartComponent, selector: "ibm-base-chart", inputs: { data: "data", options: "options", width: "width", height: "height" }, ngImport: i0, template: ``, isInline: true }); }
|
|
62
|
+
}
|
|
63
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: BaseChartComponent, decorators: [{
|
|
64
|
+
type: Component,
|
|
65
|
+
args: [{
|
|
66
|
+
selector: 'ibm-base-chart',
|
|
67
|
+
template: ``
|
|
68
|
+
}]
|
|
69
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { data: [{
|
|
70
|
+
type: Input
|
|
71
|
+
}], options: [{
|
|
72
|
+
type: Input
|
|
73
|
+
}], width: [{
|
|
74
|
+
type: Input
|
|
75
|
+
}], height: [{
|
|
76
|
+
type: Input
|
|
77
|
+
}] } });
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Wrapper around `Alluvial` in carbon charts library
|
|
81
|
+
*
|
|
82
|
+
* Most functions just call their equivalent from the chart library.
|
|
83
|
+
*/
|
|
84
|
+
class AlluvialChartComponent extends BaseChartComponent {
|
|
85
|
+
/**
|
|
86
|
+
* Runs after view init to create a chart, attach it to `elementRef` and draw it.
|
|
87
|
+
*/
|
|
88
|
+
ngAfterViewInit() {
|
|
89
|
+
this.chart = new AlluvialChart(this.elementRef.nativeElement, {
|
|
90
|
+
data: this.data,
|
|
91
|
+
options: this.options
|
|
92
|
+
});
|
|
93
|
+
Object.assign(this, this.chart);
|
|
94
|
+
}
|
|
95
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: AlluvialChartComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
96
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.4", type: AlluvialChartComponent, selector: "ibm-alluvial-chart", usesInheritance: true, ngImport: i0, template: ``, isInline: true }); }
|
|
97
|
+
}
|
|
98
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: AlluvialChartComponent, decorators: [{
|
|
99
|
+
type: Component,
|
|
100
|
+
args: [{
|
|
101
|
+
selector: 'ibm-alluvial-chart',
|
|
102
|
+
template: ``
|
|
103
|
+
}]
|
|
104
|
+
}] });
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Wrapper around `AreaChart` in carbon charts library
|
|
108
|
+
*
|
|
109
|
+
* Most functions just call their equivalent from the chart library.
|
|
110
|
+
*/
|
|
111
|
+
class AreaChartComponent extends BaseChartComponent {
|
|
112
|
+
/**
|
|
113
|
+
* Runs after view init to create a chart, attach it to `elementRef` and draw it.
|
|
114
|
+
*/
|
|
115
|
+
ngAfterViewInit() {
|
|
116
|
+
this.chart = new AreaChart(this.elementRef.nativeElement, {
|
|
117
|
+
data: this.data,
|
|
118
|
+
options: this.options
|
|
119
|
+
});
|
|
120
|
+
Object.assign(this, this.chart);
|
|
121
|
+
}
|
|
122
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: AreaChartComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
123
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.4", type: AreaChartComponent, selector: "ibm-area-chart", usesInheritance: true, ngImport: i0, template: ``, isInline: true }); }
|
|
124
|
+
}
|
|
125
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: AreaChartComponent, decorators: [{
|
|
126
|
+
type: Component,
|
|
127
|
+
args: [{
|
|
128
|
+
selector: 'ibm-area-chart',
|
|
129
|
+
template: ``
|
|
130
|
+
}]
|
|
131
|
+
}] });
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Wrapper around `BoxplotChart` in carbon charts library
|
|
135
|
+
*
|
|
136
|
+
* Most functions just call their equivalent from the chart library.
|
|
137
|
+
*/
|
|
138
|
+
class BoxplotChartComponent extends BaseChartComponent {
|
|
139
|
+
/**
|
|
140
|
+
* Runs after view init to create a chart, attach it to `elementRef` and draw it.
|
|
141
|
+
*/
|
|
142
|
+
ngAfterViewInit() {
|
|
143
|
+
this.chart = new BoxplotChart(this.elementRef.nativeElement, {
|
|
144
|
+
data: this.data,
|
|
145
|
+
options: this.options
|
|
146
|
+
});
|
|
147
|
+
Object.assign(this, this.chart);
|
|
148
|
+
}
|
|
149
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: BoxplotChartComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
150
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.4", type: BoxplotChartComponent, selector: "ibm-boxplot-chart", usesInheritance: true, ngImport: i0, template: ``, isInline: true }); }
|
|
151
|
+
}
|
|
152
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: BoxplotChartComponent, decorators: [{
|
|
153
|
+
type: Component,
|
|
154
|
+
args: [{
|
|
155
|
+
selector: 'ibm-boxplot-chart',
|
|
156
|
+
template: ``
|
|
157
|
+
}]
|
|
158
|
+
}] });
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Wrapper around `BubbleChart` in carbon charts library
|
|
162
|
+
*
|
|
163
|
+
* Most functions just call their equivalent from the chart library.
|
|
164
|
+
*/
|
|
165
|
+
class BubbleChartComponent extends BaseChartComponent {
|
|
166
|
+
/**
|
|
167
|
+
* Runs after view init to create a chart, attach it to `elementRef` and draw it.
|
|
168
|
+
*/
|
|
169
|
+
ngAfterViewInit() {
|
|
170
|
+
this.chart = new BubbleChart(this.elementRef.nativeElement, {
|
|
171
|
+
data: this.data,
|
|
172
|
+
options: this.options
|
|
173
|
+
});
|
|
174
|
+
Object.assign(this, this.chart);
|
|
175
|
+
}
|
|
176
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: BubbleChartComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
177
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.4", type: BubbleChartComponent, selector: "ibm-bubble-chart", usesInheritance: true, ngImport: i0, template: ``, isInline: true }); }
|
|
178
|
+
}
|
|
179
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: BubbleChartComponent, decorators: [{
|
|
180
|
+
type: Component,
|
|
181
|
+
args: [{
|
|
182
|
+
selector: 'ibm-bubble-chart',
|
|
183
|
+
template: ``
|
|
184
|
+
}]
|
|
185
|
+
}] });
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Wrapper around `BulletChart` in carbon charts library
|
|
189
|
+
*
|
|
190
|
+
* Most functions just call their equivalent from the chart library.
|
|
191
|
+
*/
|
|
192
|
+
class BulletChartComponent extends BaseChartComponent {
|
|
193
|
+
/**
|
|
194
|
+
* Runs after view init to create a chart, attach it to `elementRef` and draw it.
|
|
195
|
+
*/
|
|
196
|
+
ngAfterViewInit() {
|
|
197
|
+
this.chart = new BulletChart(this.elementRef.nativeElement, {
|
|
198
|
+
data: this.data,
|
|
199
|
+
options: this.options
|
|
200
|
+
});
|
|
201
|
+
Object.assign(this, this.chart);
|
|
202
|
+
}
|
|
203
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: BulletChartComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
204
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.4", type: BulletChartComponent, selector: "ibm-bullet-chart", usesInheritance: true, ngImport: i0, template: ``, isInline: true }); }
|
|
205
|
+
}
|
|
206
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: BulletChartComponent, decorators: [{
|
|
207
|
+
type: Component,
|
|
208
|
+
args: [{
|
|
209
|
+
selector: 'ibm-bullet-chart',
|
|
210
|
+
template: ``
|
|
211
|
+
}]
|
|
212
|
+
}] });
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Wrapper around `CirclePackChart` in carbon charts library
|
|
216
|
+
*
|
|
217
|
+
* Most functions just call their equivalent from the chart library.
|
|
218
|
+
*/
|
|
219
|
+
class CirclePackChartComponent extends BaseChartComponent {
|
|
220
|
+
/**
|
|
221
|
+
* Runs after view init to create a chart, attach it to `elementRef` and draw it.
|
|
222
|
+
*/
|
|
223
|
+
ngAfterViewInit() {
|
|
224
|
+
this.chart = new CirclePackChart(this.elementRef.nativeElement, {
|
|
225
|
+
data: this.data,
|
|
226
|
+
options: this.options
|
|
227
|
+
});
|
|
228
|
+
Object.assign(this, this.chart);
|
|
229
|
+
}
|
|
230
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: CirclePackChartComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
231
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.4", type: CirclePackChartComponent, selector: "ibm-circle-pack-chart", usesInheritance: true, ngImport: i0, template: ``, isInline: true }); }
|
|
232
|
+
}
|
|
233
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: CirclePackChartComponent, decorators: [{
|
|
234
|
+
type: Component,
|
|
235
|
+
args: [{
|
|
236
|
+
selector: 'ibm-circle-pack-chart',
|
|
237
|
+
template: ``
|
|
238
|
+
}]
|
|
239
|
+
}] });
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* Wrapper around `ComboChart` in carbon charts library
|
|
243
|
+
*
|
|
244
|
+
* Most functions just call their equivalent from the chart library.
|
|
245
|
+
*/
|
|
246
|
+
class ComboChartComponent extends BaseChartComponent {
|
|
247
|
+
/**
|
|
248
|
+
* Runs after view init to create a chart, attach it to `elementRef` and draw it.
|
|
249
|
+
*/
|
|
250
|
+
ngAfterViewInit() {
|
|
251
|
+
this.chart = new ComboChart(this.elementRef.nativeElement, {
|
|
252
|
+
data: this.data,
|
|
253
|
+
options: this.options
|
|
254
|
+
});
|
|
255
|
+
Object.assign(this, this.chart);
|
|
256
|
+
}
|
|
257
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: ComboChartComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
258
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.4", type: ComboChartComponent, selector: "ibm-combo-chart", usesInheritance: true, ngImport: i0, template: ``, isInline: true }); }
|
|
259
|
+
}
|
|
260
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: ComboChartComponent, decorators: [{
|
|
261
|
+
type: Component,
|
|
262
|
+
args: [{
|
|
263
|
+
selector: 'ibm-combo-chart',
|
|
264
|
+
template: ``
|
|
265
|
+
}]
|
|
266
|
+
}] });
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* Wrapper around `DonutChart` in carbon charts library
|
|
270
|
+
*
|
|
271
|
+
* Most functions just call their equivalent from the chart library.
|
|
272
|
+
*/
|
|
273
|
+
class DonutChartComponent extends BaseChartComponent {
|
|
274
|
+
/**
|
|
275
|
+
* Runs after view init to create a chart, attach it to `elementRef` and draw it.
|
|
276
|
+
*/
|
|
277
|
+
ngAfterViewInit() {
|
|
278
|
+
this.chart = new DonutChart(this.elementRef.nativeElement, {
|
|
279
|
+
data: this.data,
|
|
280
|
+
options: this.options
|
|
281
|
+
});
|
|
282
|
+
Object.assign(this, this.chart);
|
|
283
|
+
}
|
|
284
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: DonutChartComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
285
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.4", type: DonutChartComponent, selector: "ibm-donut-chart", usesInheritance: true, ngImport: i0, template: ``, isInline: true }); }
|
|
286
|
+
}
|
|
287
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: DonutChartComponent, decorators: [{
|
|
288
|
+
type: Component,
|
|
289
|
+
args: [{
|
|
290
|
+
selector: 'ibm-donut-chart',
|
|
291
|
+
template: ``
|
|
292
|
+
}]
|
|
293
|
+
}] });
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* Wrapper around `Choropleth` in carbon charts library
|
|
297
|
+
*
|
|
298
|
+
* Most functions just call their equivalent from the chart library.
|
|
299
|
+
*/
|
|
300
|
+
class ExperimentalChoroplethChartComponent extends BaseChartComponent {
|
|
301
|
+
/**
|
|
302
|
+
* Runs after view init to create a chart, attach it to `elementRef` and draw it.
|
|
303
|
+
*/
|
|
304
|
+
ngAfterViewInit() {
|
|
305
|
+
this.chart = new ExperimentalChoroplethChart(this.elementRef.nativeElement, {
|
|
306
|
+
data: this.data,
|
|
307
|
+
options: this.options
|
|
308
|
+
});
|
|
309
|
+
Object.assign(this, this.chart);
|
|
310
|
+
}
|
|
311
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: ExperimentalChoroplethChartComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
312
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.4", type: ExperimentalChoroplethChartComponent, selector: "ibm-experimental-choropleth-chart", usesInheritance: true, ngImport: i0, template: ``, isInline: true }); }
|
|
313
|
+
}
|
|
314
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: ExperimentalChoroplethChartComponent, decorators: [{
|
|
315
|
+
type: Component,
|
|
316
|
+
args: [{
|
|
317
|
+
selector: 'ibm-experimental-choropleth-chart',
|
|
318
|
+
template: ``
|
|
319
|
+
}]
|
|
320
|
+
}] });
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* Wrapper around `GaugeChart` in carbon charts library
|
|
324
|
+
*
|
|
325
|
+
* Most functions just call their equivalent from the chart library.
|
|
326
|
+
*/
|
|
327
|
+
class GaugeChartComponent extends BaseChartComponent {
|
|
328
|
+
/**
|
|
329
|
+
* Runs after view init to create a chart, attach it to `elementRef` and draw it.
|
|
330
|
+
*/
|
|
331
|
+
ngAfterViewInit() {
|
|
332
|
+
this.chart = new GaugeChart(this.elementRef.nativeElement, {
|
|
333
|
+
data: this.data,
|
|
334
|
+
options: this.options
|
|
335
|
+
});
|
|
336
|
+
Object.assign(this, this.chart);
|
|
337
|
+
}
|
|
338
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: GaugeChartComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
339
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.4", type: GaugeChartComponent, selector: "ibm-gauge-chart", usesInheritance: true, ngImport: i0, template: ``, isInline: true }); }
|
|
340
|
+
}
|
|
341
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: GaugeChartComponent, decorators: [{
|
|
342
|
+
type: Component,
|
|
343
|
+
args: [{
|
|
344
|
+
selector: 'ibm-gauge-chart',
|
|
345
|
+
template: ``
|
|
346
|
+
}]
|
|
347
|
+
}] });
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* Wrapper around `GroupedBarChart` in carbon charts library
|
|
351
|
+
*
|
|
352
|
+
* Most functions just call their equivalent from the chart library.
|
|
353
|
+
*/
|
|
354
|
+
class GroupedBarChartComponent extends BaseChartComponent {
|
|
355
|
+
/**
|
|
356
|
+
* Runs after view init to create a chart, attach it to `elementRef` and draw it.
|
|
357
|
+
*/
|
|
358
|
+
ngAfterViewInit() {
|
|
359
|
+
this.chart = new GroupedBarChart(this.elementRef.nativeElement, {
|
|
360
|
+
data: this.data,
|
|
361
|
+
options: this.options
|
|
362
|
+
});
|
|
363
|
+
Object.assign(this, this.chart);
|
|
364
|
+
}
|
|
365
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: GroupedBarChartComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
366
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.4", type: GroupedBarChartComponent, selector: "ibm-grouped-bar-chart", usesInheritance: true, ngImport: i0, template: ``, isInline: true }); }
|
|
367
|
+
}
|
|
368
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: GroupedBarChartComponent, decorators: [{
|
|
369
|
+
type: Component,
|
|
370
|
+
args: [{
|
|
371
|
+
selector: 'ibm-grouped-bar-chart',
|
|
372
|
+
template: ``
|
|
373
|
+
}]
|
|
374
|
+
}] });
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* Wrapper around `Heatmap` in carbon charts library
|
|
378
|
+
*
|
|
379
|
+
* Most functions just call their equivalent from the chart library.
|
|
380
|
+
*/
|
|
381
|
+
class HeatmapChartComponent extends BaseChartComponent {
|
|
382
|
+
/**
|
|
383
|
+
* Runs after view init to create a chart, attach it to `elementRef` and draw it.
|
|
384
|
+
*/
|
|
385
|
+
ngAfterViewInit() {
|
|
386
|
+
this.chart = new HeatmapChart(this.elementRef.nativeElement, {
|
|
387
|
+
data: this.data,
|
|
388
|
+
options: this.options
|
|
389
|
+
});
|
|
390
|
+
Object.assign(this, this.chart);
|
|
391
|
+
}
|
|
392
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: HeatmapChartComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
393
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.4", type: HeatmapChartComponent, selector: "ibm-heatmap-chart", usesInheritance: true, ngImport: i0, template: ``, isInline: true }); }
|
|
394
|
+
}
|
|
395
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: HeatmapChartComponent, decorators: [{
|
|
396
|
+
type: Component,
|
|
397
|
+
args: [{
|
|
398
|
+
selector: 'ibm-heatmap-chart',
|
|
399
|
+
template: ``
|
|
400
|
+
}]
|
|
401
|
+
}] });
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* Wrapper around `HistogramChart` in carbon charts library
|
|
405
|
+
*
|
|
406
|
+
* Most functions just call their equivalent from the chart library.
|
|
407
|
+
*/
|
|
408
|
+
class HistogramChartComponent extends BaseChartComponent {
|
|
409
|
+
/**
|
|
410
|
+
* Runs after view init to create a chart, attach it to `elementRef` and draw it.
|
|
411
|
+
*/
|
|
412
|
+
ngAfterViewInit() {
|
|
413
|
+
this.chart = new HistogramChart(this.elementRef.nativeElement, {
|
|
414
|
+
data: this.data,
|
|
415
|
+
options: this.options
|
|
416
|
+
});
|
|
417
|
+
Object.assign(this, this.chart);
|
|
418
|
+
}
|
|
419
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: HistogramChartComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
420
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.4", type: HistogramChartComponent, selector: "ibm-histogram-chart", usesInheritance: true, ngImport: i0, template: ``, isInline: true }); }
|
|
421
|
+
}
|
|
422
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: HistogramChartComponent, decorators: [{
|
|
423
|
+
type: Component,
|
|
424
|
+
args: [{
|
|
425
|
+
selector: 'ibm-histogram-chart',
|
|
426
|
+
template: ``
|
|
427
|
+
}]
|
|
428
|
+
}] });
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* Wrapper around `LineChart` in carbon charts library
|
|
432
|
+
*
|
|
433
|
+
* Most functions just call their equivalent from the chart library.
|
|
434
|
+
*/
|
|
435
|
+
class LineChartComponent extends BaseChartComponent {
|
|
436
|
+
/**
|
|
437
|
+
* Runs after view init to create a chart, attach it to `elementRef` and draw it.
|
|
438
|
+
*/
|
|
439
|
+
ngAfterViewInit() {
|
|
440
|
+
this.chart = new LineChart(this.elementRef.nativeElement, {
|
|
441
|
+
data: this.data,
|
|
442
|
+
options: this.options
|
|
443
|
+
});
|
|
444
|
+
Object.assign(this, this.chart);
|
|
445
|
+
}
|
|
446
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: LineChartComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
447
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.4", type: LineChartComponent, selector: "ibm-line-chart", usesInheritance: true, ngImport: i0, template: ``, isInline: true }); }
|
|
448
|
+
}
|
|
449
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: LineChartComponent, decorators: [{
|
|
450
|
+
type: Component,
|
|
451
|
+
args: [{
|
|
452
|
+
selector: 'ibm-line-chart',
|
|
453
|
+
template: ``
|
|
454
|
+
}]
|
|
455
|
+
}] });
|
|
456
|
+
|
|
457
|
+
/**
|
|
458
|
+
* Wrapper around `LollipopChart` in carbon charts library
|
|
459
|
+
*
|
|
460
|
+
* Most functions just call their equivalent from the chart library.
|
|
461
|
+
*/
|
|
462
|
+
class LollipopChartComponent extends BaseChartComponent {
|
|
463
|
+
/**
|
|
464
|
+
* Runs after view init to create a chart, attach it to `elementRef` and draw it.
|
|
465
|
+
*/
|
|
466
|
+
ngAfterViewInit() {
|
|
467
|
+
this.chart = new LollipopChart(this.elementRef.nativeElement, {
|
|
468
|
+
data: this.data,
|
|
469
|
+
options: this.options
|
|
470
|
+
});
|
|
471
|
+
Object.assign(this, this.chart);
|
|
472
|
+
}
|
|
473
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: LollipopChartComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
474
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.4", type: LollipopChartComponent, selector: "ibm-lollipop-chart", usesInheritance: true, ngImport: i0, template: ``, isInline: true }); }
|
|
475
|
+
}
|
|
476
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: LollipopChartComponent, decorators: [{
|
|
477
|
+
type: Component,
|
|
478
|
+
args: [{
|
|
479
|
+
selector: 'ibm-lollipop-chart',
|
|
480
|
+
template: ``
|
|
481
|
+
}]
|
|
482
|
+
}] });
|
|
483
|
+
|
|
484
|
+
/**
|
|
485
|
+
* Wrapper around `MeterChart` in carbon charts library
|
|
486
|
+
*
|
|
487
|
+
* Most functions just call their equivalent from the chart library.
|
|
488
|
+
*/
|
|
489
|
+
class MeterChartComponent extends BaseChartComponent {
|
|
490
|
+
/**
|
|
491
|
+
* Runs after view init to create a chart, attach it to `elementRef` and draw it.
|
|
492
|
+
*/
|
|
493
|
+
ngAfterViewInit() {
|
|
494
|
+
this.chart = new MeterChart(this.elementRef.nativeElement, {
|
|
495
|
+
data: this.data,
|
|
496
|
+
options: this.options
|
|
497
|
+
});
|
|
498
|
+
Object.assign(this, this.chart);
|
|
499
|
+
}
|
|
500
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: MeterChartComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
501
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.4", type: MeterChartComponent, selector: "ibm-meter-chart", usesInheritance: true, ngImport: i0, template: ``, isInline: true }); }
|
|
502
|
+
}
|
|
503
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: MeterChartComponent, decorators: [{
|
|
504
|
+
type: Component,
|
|
505
|
+
args: [{
|
|
506
|
+
selector: 'ibm-meter-chart',
|
|
507
|
+
template: ``
|
|
508
|
+
}]
|
|
509
|
+
}] });
|
|
510
|
+
|
|
511
|
+
/**
|
|
512
|
+
* Wrapper around `PieChart` in carbon charts library
|
|
513
|
+
*
|
|
514
|
+
* Most functions just call their equivalent from the chart library.
|
|
515
|
+
*/
|
|
516
|
+
class PieChartComponent extends BaseChartComponent {
|
|
517
|
+
/**
|
|
518
|
+
* Runs after view init to create a chart, attach it to `elementRef` and draw it.
|
|
519
|
+
*/
|
|
520
|
+
ngAfterViewInit() {
|
|
521
|
+
this.chart = new PieChart(this.elementRef.nativeElement, {
|
|
522
|
+
data: this.data,
|
|
523
|
+
options: this.options
|
|
524
|
+
});
|
|
525
|
+
Object.assign(this, this.chart);
|
|
526
|
+
}
|
|
527
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: PieChartComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
528
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.4", type: PieChartComponent, selector: "ibm-pie-chart", usesInheritance: true, ngImport: i0, template: ``, isInline: true }); }
|
|
529
|
+
}
|
|
530
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: PieChartComponent, decorators: [{
|
|
531
|
+
type: Component,
|
|
532
|
+
args: [{
|
|
533
|
+
selector: 'ibm-pie-chart',
|
|
534
|
+
template: ``
|
|
535
|
+
}]
|
|
536
|
+
}] });
|
|
537
|
+
|
|
538
|
+
/**
|
|
539
|
+
* Wrapper around `RadarChart` in carbon charts library
|
|
540
|
+
*
|
|
541
|
+
* Most functions just call their equivalent from the chart library.
|
|
542
|
+
*/
|
|
543
|
+
class RadarChartComponent extends BaseChartComponent {
|
|
544
|
+
/**
|
|
545
|
+
* Runs after view init to create a chart, attach it to `elementRef` and draw it.
|
|
546
|
+
*/
|
|
547
|
+
ngAfterViewInit() {
|
|
548
|
+
this.chart = new RadarChart(this.elementRef.nativeElement, {
|
|
549
|
+
data: this.data,
|
|
550
|
+
options: this.options
|
|
551
|
+
});
|
|
552
|
+
Object.assign(this, this.chart);
|
|
553
|
+
}
|
|
554
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: RadarChartComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
555
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.4", type: RadarChartComponent, selector: "ibm-radar-chart", usesInheritance: true, ngImport: i0, template: ``, isInline: true }); }
|
|
556
|
+
}
|
|
557
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: RadarChartComponent, decorators: [{
|
|
558
|
+
type: Component,
|
|
559
|
+
args: [{
|
|
560
|
+
selector: 'ibm-radar-chart',
|
|
561
|
+
template: ``
|
|
562
|
+
}]
|
|
563
|
+
}] });
|
|
564
|
+
|
|
565
|
+
/**
|
|
566
|
+
* Wrapper around `ScatterChart` in carbon charts library
|
|
567
|
+
*
|
|
568
|
+
* Most functions just call their equivalent from the chart library.
|
|
569
|
+
*/
|
|
570
|
+
class ScatterChartComponent extends BaseChartComponent {
|
|
571
|
+
/**
|
|
572
|
+
* Runs after view init to create a chart, attach it to `elementRef` and draw it.
|
|
573
|
+
*/
|
|
574
|
+
ngAfterViewInit() {
|
|
575
|
+
this.chart = new ScatterChart(this.elementRef.nativeElement, {
|
|
576
|
+
data: this.data,
|
|
577
|
+
options: this.options
|
|
578
|
+
});
|
|
579
|
+
Object.assign(this, this.chart);
|
|
580
|
+
}
|
|
581
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: ScatterChartComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
582
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.4", type: ScatterChartComponent, selector: "ibm-scatter-chart", usesInheritance: true, ngImport: i0, template: ``, isInline: true }); }
|
|
583
|
+
}
|
|
584
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: ScatterChartComponent, decorators: [{
|
|
585
|
+
type: Component,
|
|
586
|
+
args: [{
|
|
587
|
+
selector: 'ibm-scatter-chart',
|
|
588
|
+
template: ``
|
|
589
|
+
}]
|
|
590
|
+
}] });
|
|
591
|
+
|
|
592
|
+
/**
|
|
593
|
+
* Wrapper around `SimpleBarChart` in carbon charts library
|
|
594
|
+
*
|
|
595
|
+
* Most functions just call their equivalent from the chart library.
|
|
596
|
+
*/
|
|
597
|
+
class SimpleBarChartComponent extends BaseChartComponent {
|
|
598
|
+
/**
|
|
599
|
+
* Runs after view init to create a chart, attach it to `elementRef` and draw it.
|
|
600
|
+
*/
|
|
601
|
+
ngAfterViewInit() {
|
|
602
|
+
this.chart = new SimpleBarChart(this.elementRef.nativeElement, {
|
|
603
|
+
data: this.data,
|
|
604
|
+
options: this.options
|
|
605
|
+
});
|
|
606
|
+
Object.assign(this, this.chart);
|
|
607
|
+
}
|
|
608
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: SimpleBarChartComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
609
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.4", type: SimpleBarChartComponent, selector: "ibm-simple-bar-chart", usesInheritance: true, ngImport: i0, template: ``, isInline: true }); }
|
|
610
|
+
}
|
|
611
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: SimpleBarChartComponent, decorators: [{
|
|
612
|
+
type: Component,
|
|
613
|
+
args: [{
|
|
614
|
+
selector: 'ibm-simple-bar-chart',
|
|
615
|
+
template: ``
|
|
616
|
+
}]
|
|
617
|
+
}] });
|
|
618
|
+
|
|
619
|
+
/**
|
|
620
|
+
* Wrapper around `StackedAreaChart` in carbon charts library
|
|
621
|
+
*
|
|
622
|
+
* Most functions just call their equivalent from the chart library.
|
|
623
|
+
*/
|
|
624
|
+
class StackedAreaChartComponent extends BaseChartComponent {
|
|
625
|
+
/**
|
|
626
|
+
* Runs after view init to create a chart, attach it to `elementRef` and draw it.
|
|
627
|
+
*/
|
|
628
|
+
ngAfterViewInit() {
|
|
629
|
+
this.chart = new StackedAreaChart(this.elementRef.nativeElement, {
|
|
630
|
+
data: this.data,
|
|
631
|
+
options: this.options
|
|
632
|
+
});
|
|
633
|
+
Object.assign(this, this.chart);
|
|
634
|
+
}
|
|
635
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: StackedAreaChartComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
636
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.4", type: StackedAreaChartComponent, selector: "ibm-stacked-area-chart", usesInheritance: true, ngImport: i0, template: ``, isInline: true }); }
|
|
637
|
+
}
|
|
638
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: StackedAreaChartComponent, decorators: [{
|
|
639
|
+
type: Component,
|
|
640
|
+
args: [{
|
|
641
|
+
selector: 'ibm-stacked-area-chart',
|
|
642
|
+
template: ``
|
|
643
|
+
}]
|
|
644
|
+
}] });
|
|
645
|
+
|
|
646
|
+
/**
|
|
647
|
+
* Wrapper around `StackedBarChart` in carbon charts library
|
|
648
|
+
*
|
|
649
|
+
* Most functions just call their equivalent from the chart library.
|
|
650
|
+
*/
|
|
651
|
+
class StackedBarChartComponent extends BaseChartComponent {
|
|
652
|
+
/**
|
|
653
|
+
* Runs after view init to create a chart, attach it to `elementRef` and draw it.
|
|
654
|
+
*/
|
|
655
|
+
ngAfterViewInit() {
|
|
656
|
+
this.chart = new StackedBarChart(this.elementRef.nativeElement, {
|
|
657
|
+
data: this.data,
|
|
658
|
+
options: this.options
|
|
659
|
+
});
|
|
660
|
+
Object.assign(this, this.chart);
|
|
661
|
+
}
|
|
662
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: StackedBarChartComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
663
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.4", type: StackedBarChartComponent, selector: "ibm-stacked-bar-chart", usesInheritance: true, ngImport: i0, template: ``, isInline: true }); }
|
|
664
|
+
}
|
|
665
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: StackedBarChartComponent, decorators: [{
|
|
666
|
+
type: Component,
|
|
667
|
+
args: [{
|
|
668
|
+
selector: 'ibm-stacked-bar-chart',
|
|
669
|
+
template: ``
|
|
670
|
+
}]
|
|
671
|
+
}] });
|
|
672
|
+
|
|
673
|
+
/**
|
|
674
|
+
* Wrapper around `TreeChart` in carbon charts library
|
|
675
|
+
*
|
|
676
|
+
* Most functions just call their equivalent from the chart library.
|
|
677
|
+
*/
|
|
678
|
+
class TreeChartComponent extends BaseChartComponent {
|
|
679
|
+
/**
|
|
680
|
+
* Runs after view init to create a chart, attach it to `elementRef` and draw it.
|
|
681
|
+
*/
|
|
682
|
+
ngAfterViewInit() {
|
|
683
|
+
this.chart = new TreeChart(this.elementRef.nativeElement, {
|
|
684
|
+
data: this.data,
|
|
685
|
+
options: this.options
|
|
686
|
+
});
|
|
687
|
+
Object.assign(this, this.chart);
|
|
688
|
+
}
|
|
689
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: TreeChartComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
690
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.4", type: TreeChartComponent, selector: "ibm-tree-chart", usesInheritance: true, ngImport: i0, template: ``, isInline: true }); }
|
|
691
|
+
}
|
|
692
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: TreeChartComponent, decorators: [{
|
|
693
|
+
type: Component,
|
|
694
|
+
args: [{
|
|
695
|
+
selector: 'ibm-tree-chart',
|
|
696
|
+
template: ``
|
|
697
|
+
}]
|
|
698
|
+
}] });
|
|
699
|
+
|
|
700
|
+
/**
|
|
701
|
+
* Wrapper around `TreemapChart` in carbon charts library
|
|
702
|
+
*
|
|
703
|
+
* Most functions just call their equivalent from the chart library.
|
|
704
|
+
*/
|
|
705
|
+
class TreemapChartComponent extends BaseChartComponent {
|
|
706
|
+
/**
|
|
707
|
+
* Runs after view init to create a chart, attach it to `elementRef` and draw it.
|
|
708
|
+
*/
|
|
709
|
+
ngAfterViewInit() {
|
|
710
|
+
this.chart = new TreemapChart(this.elementRef.nativeElement, {
|
|
711
|
+
data: this.data,
|
|
712
|
+
options: this.options
|
|
713
|
+
});
|
|
714
|
+
Object.assign(this, this.chart);
|
|
715
|
+
}
|
|
716
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: TreemapChartComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
717
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.4", type: TreemapChartComponent, selector: "ibm-treemap-chart", usesInheritance: true, ngImport: i0, template: ``, isInline: true }); }
|
|
718
|
+
}
|
|
719
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: TreemapChartComponent, decorators: [{
|
|
720
|
+
type: Component,
|
|
721
|
+
args: [{
|
|
722
|
+
selector: 'ibm-treemap-chart',
|
|
723
|
+
template: ``
|
|
724
|
+
}]
|
|
725
|
+
}] });
|
|
726
|
+
|
|
727
|
+
/**
|
|
728
|
+
* Wrapper around `WordCloudChart` in carbon charts library
|
|
729
|
+
*
|
|
730
|
+
* Most functions just call their equivalent from the chart library.
|
|
731
|
+
*/
|
|
732
|
+
class WordCloudChartComponent extends BaseChartComponent {
|
|
733
|
+
/**
|
|
734
|
+
* Runs after view init to create a chart, attach it to `elementRef` and draw it.
|
|
735
|
+
*/
|
|
736
|
+
ngAfterViewInit() {
|
|
737
|
+
this.chart = new WordCloudChart(this.elementRef.nativeElement, {
|
|
738
|
+
data: this.data,
|
|
739
|
+
options: this.options
|
|
740
|
+
});
|
|
741
|
+
Object.assign(this, this.chart);
|
|
742
|
+
}
|
|
743
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: WordCloudChartComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
744
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.4", type: WordCloudChartComponent, selector: "ibm-wordcloud-chart", usesInheritance: true, ngImport: i0, template: ``, isInline: true }); }
|
|
745
|
+
}
|
|
746
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: WordCloudChartComponent, decorators: [{
|
|
747
|
+
type: Component,
|
|
748
|
+
args: [{
|
|
749
|
+
selector: 'ibm-wordcloud-chart',
|
|
750
|
+
template: ``
|
|
751
|
+
}]
|
|
752
|
+
}] });
|
|
753
|
+
|
|
754
|
+
class ChartsModule {
|
|
755
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: ChartsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
756
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.4", ngImport: i0, type: ChartsModule, declarations: [BaseChartComponent,
|
|
757
|
+
AlluvialChartComponent,
|
|
758
|
+
AreaChartComponent,
|
|
759
|
+
StackedAreaChartComponent,
|
|
760
|
+
SimpleBarChartComponent,
|
|
761
|
+
GroupedBarChartComponent,
|
|
762
|
+
StackedBarChartComponent,
|
|
763
|
+
BoxplotChartComponent,
|
|
764
|
+
BubbleChartComponent,
|
|
765
|
+
BulletChartComponent,
|
|
766
|
+
DonutChartComponent,
|
|
767
|
+
ExperimentalChoroplethChartComponent,
|
|
768
|
+
GaugeChartComponent,
|
|
769
|
+
HeatmapChartComponent,
|
|
770
|
+
HistogramChartComponent,
|
|
771
|
+
LineChartComponent,
|
|
772
|
+
LollipopChartComponent,
|
|
773
|
+
PieChartComponent,
|
|
774
|
+
ScatterChartComponent,
|
|
775
|
+
MeterChartComponent,
|
|
776
|
+
RadarChartComponent,
|
|
777
|
+
ComboChartComponent,
|
|
778
|
+
TreeChartComponent,
|
|
779
|
+
TreemapChartComponent,
|
|
780
|
+
CirclePackChartComponent,
|
|
781
|
+
WordCloudChartComponent], imports: [CommonModule], exports: [BaseChartComponent,
|
|
782
|
+
AlluvialChartComponent,
|
|
783
|
+
AreaChartComponent,
|
|
784
|
+
StackedAreaChartComponent,
|
|
785
|
+
SimpleBarChartComponent,
|
|
786
|
+
GroupedBarChartComponent,
|
|
787
|
+
StackedBarChartComponent,
|
|
788
|
+
BoxplotChartComponent,
|
|
789
|
+
BubbleChartComponent,
|
|
790
|
+
BulletChartComponent,
|
|
791
|
+
DonutChartComponent,
|
|
792
|
+
ExperimentalChoroplethChartComponent,
|
|
793
|
+
GaugeChartComponent,
|
|
794
|
+
HeatmapChartComponent,
|
|
795
|
+
HistogramChartComponent,
|
|
796
|
+
LineChartComponent,
|
|
797
|
+
LollipopChartComponent,
|
|
798
|
+
PieChartComponent,
|
|
799
|
+
ScatterChartComponent,
|
|
800
|
+
MeterChartComponent,
|
|
801
|
+
RadarChartComponent,
|
|
802
|
+
ComboChartComponent,
|
|
803
|
+
TreeChartComponent,
|
|
804
|
+
TreemapChartComponent,
|
|
805
|
+
CirclePackChartComponent,
|
|
806
|
+
WordCloudChartComponent] }); }
|
|
807
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: ChartsModule, imports: [CommonModule] }); }
|
|
808
|
+
}
|
|
809
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: ChartsModule, decorators: [{
|
|
810
|
+
type: NgModule,
|
|
811
|
+
args: [{
|
|
812
|
+
declarations: [
|
|
813
|
+
BaseChartComponent,
|
|
814
|
+
AlluvialChartComponent,
|
|
815
|
+
AreaChartComponent,
|
|
816
|
+
StackedAreaChartComponent,
|
|
817
|
+
SimpleBarChartComponent,
|
|
818
|
+
GroupedBarChartComponent,
|
|
819
|
+
StackedBarChartComponent,
|
|
820
|
+
BoxplotChartComponent,
|
|
821
|
+
BubbleChartComponent,
|
|
822
|
+
BulletChartComponent,
|
|
823
|
+
DonutChartComponent,
|
|
824
|
+
ExperimentalChoroplethChartComponent,
|
|
825
|
+
GaugeChartComponent,
|
|
826
|
+
HeatmapChartComponent,
|
|
827
|
+
HistogramChartComponent,
|
|
828
|
+
LineChartComponent,
|
|
829
|
+
LollipopChartComponent,
|
|
830
|
+
PieChartComponent,
|
|
831
|
+
ScatterChartComponent,
|
|
832
|
+
MeterChartComponent,
|
|
833
|
+
RadarChartComponent,
|
|
834
|
+
ComboChartComponent,
|
|
835
|
+
TreeChartComponent,
|
|
836
|
+
TreemapChartComponent,
|
|
837
|
+
CirclePackChartComponent,
|
|
838
|
+
WordCloudChartComponent
|
|
839
|
+
],
|
|
840
|
+
imports: [CommonModule],
|
|
841
|
+
exports: [
|
|
842
|
+
BaseChartComponent,
|
|
843
|
+
AlluvialChartComponent,
|
|
844
|
+
AreaChartComponent,
|
|
845
|
+
StackedAreaChartComponent,
|
|
846
|
+
SimpleBarChartComponent,
|
|
847
|
+
GroupedBarChartComponent,
|
|
848
|
+
StackedBarChartComponent,
|
|
849
|
+
BoxplotChartComponent,
|
|
850
|
+
BubbleChartComponent,
|
|
851
|
+
BulletChartComponent,
|
|
852
|
+
DonutChartComponent,
|
|
853
|
+
ExperimentalChoroplethChartComponent,
|
|
854
|
+
GaugeChartComponent,
|
|
855
|
+
HeatmapChartComponent,
|
|
856
|
+
HistogramChartComponent,
|
|
857
|
+
LineChartComponent,
|
|
858
|
+
LollipopChartComponent,
|
|
859
|
+
PieChartComponent,
|
|
860
|
+
ScatterChartComponent,
|
|
861
|
+
MeterChartComponent,
|
|
862
|
+
RadarChartComponent,
|
|
863
|
+
ComboChartComponent,
|
|
864
|
+
TreeChartComponent,
|
|
865
|
+
TreemapChartComponent,
|
|
866
|
+
CirclePackChartComponent,
|
|
867
|
+
WordCloudChartComponent
|
|
868
|
+
]
|
|
869
|
+
}]
|
|
870
|
+
}] });
|
|
871
|
+
|
|
872
|
+
const carbonPrefix = 'cds';
|
|
873
|
+
|
|
874
|
+
const template = `
|
|
875
|
+
<svg:marker
|
|
876
|
+
[ngClass]="namespace"
|
|
877
|
+
[attr.markerHeight]="height"
|
|
878
|
+
[attr.markerWidth]="width"
|
|
879
|
+
[attr.orient]="orient"
|
|
880
|
+
[attr.id]="id"
|
|
881
|
+
[attr.refX]="refX"
|
|
882
|
+
[attr.refY]="refY"
|
|
883
|
+
markerUnits="userSpaceOnUse">
|
|
884
|
+
<svg:path [attr.d]="d" [ngStyle]="{'fill': color}" ></svg:path>
|
|
885
|
+
</svg:marker>
|
|
886
|
+
`;
|
|
887
|
+
class MarkerComponent {
|
|
888
|
+
constructor() {
|
|
889
|
+
this.d = '';
|
|
890
|
+
this.color = '';
|
|
891
|
+
this.id = '';
|
|
892
|
+
this.orient = 'auto';
|
|
893
|
+
this.height = '';
|
|
894
|
+
this.width = '';
|
|
895
|
+
this.refX = '';
|
|
896
|
+
this.refY = '';
|
|
897
|
+
this.position = 'end';
|
|
898
|
+
this.namespace = `${carbonPrefix}--cc--marker`;
|
|
899
|
+
this.setAttributes = ({ d, id, height, width }) => {
|
|
900
|
+
const xPos = this.position === 'end' ? width / 2 + 0.5 : 0.5;
|
|
901
|
+
const yPos = height / 2;
|
|
902
|
+
this.d = this.d || d;
|
|
903
|
+
this.id = this.id || id;
|
|
904
|
+
this.height = this.height || height;
|
|
905
|
+
this.width = this.width || width;
|
|
906
|
+
this.refX = this.refX || xPos;
|
|
907
|
+
this.refY = this.refY || yPos;
|
|
908
|
+
};
|
|
909
|
+
}
|
|
910
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: MarkerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
911
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.4", type: MarkerComponent, selector: "ibm-graph-marker,[ibm-graph-marker]", inputs: { d: "d", color: "color", id: "id", orient: "orient", height: "height", width: "width", refX: "refX", refY: "refY", position: "position" }, ngImport: i0, template: "\n<svg:marker\n\t[ngClass]=\"namespace\"\n\t[attr.markerHeight]=\"height\"\n\t[attr.markerWidth]=\"width\"\n\t[attr.orient]=\"orient\"\n\t[attr.id]=\"id\"\n\t[attr.refX]=\"refX\"\n\t[attr.refY]=\"refY\"\n\tmarkerUnits=\"userSpaceOnUse\">\n\t<svg:path [attr.d]=\"d\" [ngStyle]=\"{'fill': color}\" ></svg:path>\n</svg:marker>\n", isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
|
|
912
|
+
}
|
|
913
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: MarkerComponent, decorators: [{
|
|
914
|
+
type: Component,
|
|
915
|
+
args: [{
|
|
916
|
+
selector: 'ibm-graph-marker,[ibm-graph-marker]',
|
|
917
|
+
template
|
|
918
|
+
}]
|
|
919
|
+
}], propDecorators: { d: [{
|
|
920
|
+
type: Input
|
|
921
|
+
}], color: [{
|
|
922
|
+
type: Input
|
|
923
|
+
}], id: [{
|
|
924
|
+
type: Input
|
|
925
|
+
}], orient: [{
|
|
926
|
+
type: Input
|
|
927
|
+
}], height: [{
|
|
928
|
+
type: Input
|
|
929
|
+
}], width: [{
|
|
930
|
+
type: Input
|
|
931
|
+
}], refX: [{
|
|
932
|
+
type: Input
|
|
933
|
+
}], refY: [{
|
|
934
|
+
type: Input
|
|
935
|
+
}], position: [{
|
|
936
|
+
type: Input
|
|
937
|
+
}] } });
|
|
938
|
+
class MarkerArrowLeftComponent extends MarkerComponent {
|
|
939
|
+
ngOnInit() {
|
|
940
|
+
this.setAttributes({ ...arrowLeft });
|
|
941
|
+
}
|
|
942
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: MarkerArrowLeftComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
943
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.4", type: MarkerArrowLeftComponent, selector: "ibm-graph-marker-arrow-left,[ibm-graph-marker-arrow-left]", usesInheritance: true, ngImport: i0, template: "\n<svg:marker\n\t[ngClass]=\"namespace\"\n\t[attr.markerHeight]=\"height\"\n\t[attr.markerWidth]=\"width\"\n\t[attr.orient]=\"orient\"\n\t[attr.id]=\"id\"\n\t[attr.refX]=\"refX\"\n\t[attr.refY]=\"refY\"\n\tmarkerUnits=\"userSpaceOnUse\">\n\t<svg:path [attr.d]=\"d\" [ngStyle]=\"{'fill': color}\" ></svg:path>\n</svg:marker>\n", isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
|
|
944
|
+
}
|
|
945
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: MarkerArrowLeftComponent, decorators: [{
|
|
946
|
+
type: Component,
|
|
947
|
+
args: [{
|
|
948
|
+
selector: 'ibm-graph-marker-arrow-left,[ibm-graph-marker-arrow-left]',
|
|
949
|
+
template
|
|
950
|
+
}]
|
|
951
|
+
}] });
|
|
952
|
+
class MarkerArrowRightComponent extends MarkerComponent {
|
|
953
|
+
ngOnInit() {
|
|
954
|
+
this.setAttributes({ ...arrowRight });
|
|
955
|
+
}
|
|
956
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: MarkerArrowRightComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
957
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.4", type: MarkerArrowRightComponent, selector: "ibm-graph-marker-arrow-right,[ibm-graph-marker-arrow-right]", usesInheritance: true, ngImport: i0, template: "\n<svg:marker\n\t[ngClass]=\"namespace\"\n\t[attr.markerHeight]=\"height\"\n\t[attr.markerWidth]=\"width\"\n\t[attr.orient]=\"orient\"\n\t[attr.id]=\"id\"\n\t[attr.refX]=\"refX\"\n\t[attr.refY]=\"refY\"\n\tmarkerUnits=\"userSpaceOnUse\">\n\t<svg:path [attr.d]=\"d\" [ngStyle]=\"{'fill': color}\" ></svg:path>\n</svg:marker>\n", isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
|
|
958
|
+
}
|
|
959
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: MarkerArrowRightComponent, decorators: [{
|
|
960
|
+
type: Component,
|
|
961
|
+
args: [{
|
|
962
|
+
selector: 'ibm-graph-marker-arrow-right,[ibm-graph-marker-arrow-right]',
|
|
963
|
+
template
|
|
964
|
+
}]
|
|
965
|
+
}] });
|
|
966
|
+
class MarkerShapeNodeComponent extends MarkerComponent {
|
|
967
|
+
ngOnInit() {
|
|
968
|
+
this.setAttributes({ ...circle });
|
|
969
|
+
}
|
|
970
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: MarkerShapeNodeComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
971
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.4", type: MarkerShapeNodeComponent, selector: "ibm-graph-marker-circle,[ibm-graph-marker-circle]", usesInheritance: true, ngImport: i0, template: "\n<svg:marker\n\t[ngClass]=\"namespace\"\n\t[attr.markerHeight]=\"height\"\n\t[attr.markerWidth]=\"width\"\n\t[attr.orient]=\"orient\"\n\t[attr.id]=\"id\"\n\t[attr.refX]=\"refX\"\n\t[attr.refY]=\"refY\"\n\tmarkerUnits=\"userSpaceOnUse\">\n\t<svg:path [attr.d]=\"d\" [ngStyle]=\"{'fill': color}\" ></svg:path>\n</svg:marker>\n", isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
|
|
972
|
+
}
|
|
973
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: MarkerShapeNodeComponent, decorators: [{
|
|
974
|
+
type: Component,
|
|
975
|
+
args: [{
|
|
976
|
+
selector: 'ibm-graph-marker-circle,[ibm-graph-marker-circle]',
|
|
977
|
+
template
|
|
978
|
+
}]
|
|
979
|
+
}] });
|
|
980
|
+
class MarkerDiamondComponent extends MarkerComponent {
|
|
981
|
+
ngOnInit() {
|
|
982
|
+
this.setAttributes({ ...diamond });
|
|
983
|
+
}
|
|
984
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: MarkerDiamondComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
985
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.4", type: MarkerDiamondComponent, selector: "ibm-graph-marker-diamond,[ibm-graph-marker-diamond]", usesInheritance: true, ngImport: i0, template: "\n<svg:marker\n\t[ngClass]=\"namespace\"\n\t[attr.markerHeight]=\"height\"\n\t[attr.markerWidth]=\"width\"\n\t[attr.orient]=\"orient\"\n\t[attr.id]=\"id\"\n\t[attr.refX]=\"refX\"\n\t[attr.refY]=\"refY\"\n\tmarkerUnits=\"userSpaceOnUse\">\n\t<svg:path [attr.d]=\"d\" [ngStyle]=\"{'fill': color}\" ></svg:path>\n</svg:marker>\n", isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
|
|
986
|
+
}
|
|
987
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: MarkerDiamondComponent, decorators: [{
|
|
988
|
+
type: Component,
|
|
989
|
+
args: [{
|
|
990
|
+
selector: 'ibm-graph-marker-diamond,[ibm-graph-marker-diamond]',
|
|
991
|
+
template
|
|
992
|
+
}]
|
|
993
|
+
}] });
|
|
994
|
+
class MarkerSquareComponent extends MarkerComponent {
|
|
995
|
+
ngOnInit() {
|
|
996
|
+
this.setAttributes({ ...square });
|
|
997
|
+
}
|
|
998
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: MarkerSquareComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
999
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.4", type: MarkerSquareComponent, selector: "ibm-graph-marker-square,[ibm-graph-marker-square]", usesInheritance: true, ngImport: i0, template: "\n<svg:marker\n\t[ngClass]=\"namespace\"\n\t[attr.markerHeight]=\"height\"\n\t[attr.markerWidth]=\"width\"\n\t[attr.orient]=\"orient\"\n\t[attr.id]=\"id\"\n\t[attr.refX]=\"refX\"\n\t[attr.refY]=\"refY\"\n\tmarkerUnits=\"userSpaceOnUse\">\n\t<svg:path [attr.d]=\"d\" [ngStyle]=\"{'fill': color}\" ></svg:path>\n</svg:marker>\n", isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
|
|
1000
|
+
}
|
|
1001
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: MarkerSquareComponent, decorators: [{
|
|
1002
|
+
type: Component,
|
|
1003
|
+
args: [{
|
|
1004
|
+
selector: 'ibm-graph-marker-square,[ibm-graph-marker-square]',
|
|
1005
|
+
template
|
|
1006
|
+
}]
|
|
1007
|
+
}] });
|
|
1008
|
+
class MarkerTeeComponent extends MarkerComponent {
|
|
1009
|
+
ngOnInit() {
|
|
1010
|
+
this.setAttributes({ ...tee });
|
|
1011
|
+
}
|
|
1012
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: MarkerTeeComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1013
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.4", type: MarkerTeeComponent, selector: "ibm-graph-marker-tee,[ibm-graph-marker-tee]", usesInheritance: true, ngImport: i0, template: "\n<svg:marker\n\t[ngClass]=\"namespace\"\n\t[attr.markerHeight]=\"height\"\n\t[attr.markerWidth]=\"width\"\n\t[attr.orient]=\"orient\"\n\t[attr.id]=\"id\"\n\t[attr.refX]=\"refX\"\n\t[attr.refY]=\"refY\"\n\tmarkerUnits=\"userSpaceOnUse\">\n\t<svg:path [attr.d]=\"d\" [ngStyle]=\"{'fill': color}\" ></svg:path>\n</svg:marker>\n", isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
|
|
1014
|
+
}
|
|
1015
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: MarkerTeeComponent, decorators: [{
|
|
1016
|
+
type: Component,
|
|
1017
|
+
args: [{
|
|
1018
|
+
selector: 'ibm-graph-marker-tee,[ibm-graph-marker-tee]',
|
|
1019
|
+
template
|
|
1020
|
+
}]
|
|
1021
|
+
}] });
|
|
1022
|
+
|
|
1023
|
+
class MarkerModule {
|
|
1024
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: MarkerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1025
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.4", ngImport: i0, type: MarkerModule, declarations: [MarkerComponent,
|
|
1026
|
+
MarkerArrowLeftComponent,
|
|
1027
|
+
MarkerArrowRightComponent,
|
|
1028
|
+
MarkerShapeNodeComponent,
|
|
1029
|
+
MarkerDiamondComponent,
|
|
1030
|
+
MarkerSquareComponent,
|
|
1031
|
+
MarkerTeeComponent], imports: [CommonModule], exports: [MarkerComponent,
|
|
1032
|
+
MarkerArrowLeftComponent,
|
|
1033
|
+
MarkerArrowRightComponent,
|
|
1034
|
+
MarkerShapeNodeComponent,
|
|
1035
|
+
MarkerDiamondComponent,
|
|
1036
|
+
MarkerSquareComponent,
|
|
1037
|
+
MarkerTeeComponent] }); }
|
|
1038
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: MarkerModule, imports: [CommonModule] }); }
|
|
1039
|
+
}
|
|
1040
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: MarkerModule, decorators: [{
|
|
1041
|
+
type: NgModule,
|
|
1042
|
+
args: [{
|
|
1043
|
+
declarations: [
|
|
1044
|
+
MarkerComponent,
|
|
1045
|
+
MarkerArrowLeftComponent,
|
|
1046
|
+
MarkerArrowRightComponent,
|
|
1047
|
+
MarkerShapeNodeComponent,
|
|
1048
|
+
MarkerDiamondComponent,
|
|
1049
|
+
MarkerSquareComponent,
|
|
1050
|
+
MarkerTeeComponent
|
|
1051
|
+
],
|
|
1052
|
+
imports: [CommonModule],
|
|
1053
|
+
exports: [
|
|
1054
|
+
MarkerComponent,
|
|
1055
|
+
MarkerArrowLeftComponent,
|
|
1056
|
+
MarkerArrowRightComponent,
|
|
1057
|
+
MarkerShapeNodeComponent,
|
|
1058
|
+
MarkerDiamondComponent,
|
|
1059
|
+
MarkerSquareComponent,
|
|
1060
|
+
MarkerTeeComponent
|
|
1061
|
+
]
|
|
1062
|
+
}]
|
|
1063
|
+
}] });
|
|
1064
|
+
|
|
1065
|
+
class EdgeComponent {
|
|
1066
|
+
constructor() {
|
|
1067
|
+
this.color = '';
|
|
1068
|
+
this.markerEnd = '';
|
|
1069
|
+
this.markerStart = '';
|
|
1070
|
+
this.source = { x: 0, y: 0 };
|
|
1071
|
+
this.target = { x: 0, y: 0 };
|
|
1072
|
+
this.path = '';
|
|
1073
|
+
this.pathClasses = '';
|
|
1074
|
+
this.namespace = `${carbonPrefix}--cc--edge`;
|
|
1075
|
+
this.straight = buildStraightPathString;
|
|
1076
|
+
}
|
|
1077
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: EdgeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1078
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.4", type: EdgeComponent, selector: "ibm-graph-edge, [ibm-graph-edge]", inputs: { color: "color", markerEnd: "markerEnd", markerStart: "markerStart", source: "source", target: "target", variant: "variant", path: "path" }, ngImport: i0, template: `
|
|
1079
|
+
<svg:g [ngClass]="[namespace, variant ? namespace + '--' + variant : '']">
|
|
1080
|
+
<svg:path
|
|
1081
|
+
[ngClass]="namespace + '__container'"
|
|
1082
|
+
[attr.d]="path ? path : straight(source, target)" />
|
|
1083
|
+
<svg:path
|
|
1084
|
+
[ngClass]="namespace + '__outer'"
|
|
1085
|
+
[attr.d]="path ? path : straight(source, target)" />
|
|
1086
|
+
<svg:path
|
|
1087
|
+
[ngClass]="namespace + '__inner'"
|
|
1088
|
+
[attr.d]="path ? path : straight(source, target)"
|
|
1089
|
+
[ngStyle]="{ stroke: color }"
|
|
1090
|
+
[attr.marker-start]="markerStart ? 'url(#' + markerStart + ')' : ''"
|
|
1091
|
+
[attr.marker-end]="markerEnd ? 'url(#' + markerEnd + ')' : ''" />
|
|
1092
|
+
</svg:g>
|
|
1093
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
|
|
1094
|
+
}
|
|
1095
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: EdgeComponent, decorators: [{
|
|
1096
|
+
type: Component,
|
|
1097
|
+
args: [{
|
|
1098
|
+
selector: 'ibm-graph-edge, [ibm-graph-edge]',
|
|
1099
|
+
template: `
|
|
1100
|
+
<svg:g [ngClass]="[namespace, variant ? namespace + '--' + variant : '']">
|
|
1101
|
+
<svg:path
|
|
1102
|
+
[ngClass]="namespace + '__container'"
|
|
1103
|
+
[attr.d]="path ? path : straight(source, target)" />
|
|
1104
|
+
<svg:path
|
|
1105
|
+
[ngClass]="namespace + '__outer'"
|
|
1106
|
+
[attr.d]="path ? path : straight(source, target)" />
|
|
1107
|
+
<svg:path
|
|
1108
|
+
[ngClass]="namespace + '__inner'"
|
|
1109
|
+
[attr.d]="path ? path : straight(source, target)"
|
|
1110
|
+
[ngStyle]="{ stroke: color }"
|
|
1111
|
+
[attr.marker-start]="markerStart ? 'url(#' + markerStart + ')' : ''"
|
|
1112
|
+
[attr.marker-end]="markerEnd ? 'url(#' + markerEnd + ')' : ''" />
|
|
1113
|
+
</svg:g>
|
|
1114
|
+
`
|
|
1115
|
+
}]
|
|
1116
|
+
}], propDecorators: { color: [{
|
|
1117
|
+
type: Input
|
|
1118
|
+
}], markerEnd: [{
|
|
1119
|
+
type: Input
|
|
1120
|
+
}], markerStart: [{
|
|
1121
|
+
type: Input
|
|
1122
|
+
}], source: [{
|
|
1123
|
+
type: Input
|
|
1124
|
+
}], target: [{
|
|
1125
|
+
type: Input
|
|
1126
|
+
}], variant: [{
|
|
1127
|
+
type: Input
|
|
1128
|
+
}], path: [{
|
|
1129
|
+
type: Input
|
|
1130
|
+
}] } });
|
|
1131
|
+
|
|
1132
|
+
class EdgeModule {
|
|
1133
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: EdgeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1134
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.4", ngImport: i0, type: EdgeModule, declarations: [EdgeComponent], imports: [CommonModule], exports: [EdgeComponent] }); }
|
|
1135
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: EdgeModule, imports: [CommonModule] }); }
|
|
1136
|
+
}
|
|
1137
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: EdgeModule, decorators: [{
|
|
1138
|
+
type: NgModule,
|
|
1139
|
+
args: [{
|
|
1140
|
+
declarations: [EdgeComponent],
|
|
1141
|
+
imports: [CommonModule],
|
|
1142
|
+
exports: [EdgeComponent]
|
|
1143
|
+
}]
|
|
1144
|
+
}] });
|
|
1145
|
+
|
|
1146
|
+
class CardNodeComponent {
|
|
1147
|
+
constructor() {
|
|
1148
|
+
this.as = 'div';
|
|
1149
|
+
this.href = '';
|
|
1150
|
+
this.color = '';
|
|
1151
|
+
this.stacked = false;
|
|
1152
|
+
this.position = 'static';
|
|
1153
|
+
// eslint-disable-next-line @angular-eslint/no-output-native
|
|
1154
|
+
this.click = new EventEmitter();
|
|
1155
|
+
this.mouseEnter = new EventEmitter();
|
|
1156
|
+
this.mouseOver = new EventEmitter();
|
|
1157
|
+
this.mouseOut = new EventEmitter();
|
|
1158
|
+
this.mouseLeave = new EventEmitter();
|
|
1159
|
+
this.mouseMove = new EventEmitter();
|
|
1160
|
+
this.namespace = `${carbonPrefix}--cc--card-node`;
|
|
1161
|
+
this.component = 'div';
|
|
1162
|
+
}
|
|
1163
|
+
ngOnInit() {
|
|
1164
|
+
if (this.href) {
|
|
1165
|
+
this.component = 'a';
|
|
1166
|
+
}
|
|
1167
|
+
else {
|
|
1168
|
+
this.component = this.as;
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1171
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: CardNodeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1172
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.4", type: CardNodeComponent, selector: "ibm-diagram-card-node", inputs: { as: "as", href: "href", color: "color", stacked: "stacked", position: "position" }, outputs: { click: "click", mouseEnter: "mouseEnter", mouseOver: "mouseOver", mouseOut: "mouseOut", mouseLeave: "mouseLeave", mouseMove: "mouseMove" }, ngImport: i0, template: `
|
|
1173
|
+
<ng-container [ngSwitch]="component">
|
|
1174
|
+
<xhtml:div
|
|
1175
|
+
*ngSwitchCase="'div'"
|
|
1176
|
+
[ngClass]="[
|
|
1177
|
+
namespace,
|
|
1178
|
+
stacked ? namespace + '--stacked' : '',
|
|
1179
|
+
namespace + '--' + component
|
|
1180
|
+
]"
|
|
1181
|
+
[ngStyle]="{
|
|
1182
|
+
'border-color': color,
|
|
1183
|
+
position: position
|
|
1184
|
+
}"
|
|
1185
|
+
(mouseenter)="mouseEnter.emit($event)"
|
|
1186
|
+
(mouseover)="mouseOver.emit($event)"
|
|
1187
|
+
(mouseout)="mouseOut.emit($event)"
|
|
1188
|
+
(mouseleave)="mouseLeave.emit($event)"
|
|
1189
|
+
(mousemove)="mouseMove.emit($event)"
|
|
1190
|
+
tabindex="0">
|
|
1191
|
+
<ng-container *ngTemplateOutlet="nodeTemplate"></ng-container>
|
|
1192
|
+
</xhtml:div>
|
|
1193
|
+
|
|
1194
|
+
<xhtml:button
|
|
1195
|
+
*ngSwitchCase="'button'"
|
|
1196
|
+
[ngClass]="[
|
|
1197
|
+
namespace,
|
|
1198
|
+
stacked ? namespace + '--stacked' : '',
|
|
1199
|
+
namespace + '--' + component
|
|
1200
|
+
]"
|
|
1201
|
+
[ngStyle]="{
|
|
1202
|
+
'border-color': color,
|
|
1203
|
+
position: position
|
|
1204
|
+
}"
|
|
1205
|
+
(click)="click.emit($event)"
|
|
1206
|
+
(mouseenter)="mouseEnter.emit($event)"
|
|
1207
|
+
(mouseover)="mouseOver.emit($event)"
|
|
1208
|
+
(mouseout)="mouseOut.emit($event)"
|
|
1209
|
+
(mouseleave)="mouseLeave.emit($event)"
|
|
1210
|
+
(mousemove)="mouseMove.emit($event)"
|
|
1211
|
+
tabindex="0">
|
|
1212
|
+
<ng-container *ngTemplateOutlet="nodeTemplate"></ng-container>
|
|
1213
|
+
</xhtml:button>
|
|
1214
|
+
|
|
1215
|
+
<xhtml:a
|
|
1216
|
+
*ngSwitchCase="'a'"
|
|
1217
|
+
[ngClass]="[
|
|
1218
|
+
namespace,
|
|
1219
|
+
stacked ? namespace + '--stacked' : '',
|
|
1220
|
+
namespace + '--' + component
|
|
1221
|
+
]"
|
|
1222
|
+
[attr.href]="href"
|
|
1223
|
+
[ngStyle]="{ 'border-color': color, position: position }"
|
|
1224
|
+
(mouseenter)="mouseEnter.emit($event)"
|
|
1225
|
+
(mouseover)="mouseOver.emit($event)"
|
|
1226
|
+
(mouseout)="mouseOut.emit($event)"
|
|
1227
|
+
(mouseleave)="mouseLeave.emit($event)"
|
|
1228
|
+
(mousemove)="mouseMove.emit($event)"
|
|
1229
|
+
tabindex="0">
|
|
1230
|
+
<ng-container *ngTemplateOutlet="nodeTemplate"></ng-container>
|
|
1231
|
+
</xhtml:a>
|
|
1232
|
+
</ng-container>
|
|
1233
|
+
<ng-template #nodeTemplate>
|
|
1234
|
+
<ng-content></ng-content>
|
|
1235
|
+
</ng-template>
|
|
1236
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }] }); }
|
|
1237
|
+
}
|
|
1238
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: CardNodeComponent, decorators: [{
|
|
1239
|
+
type: Component,
|
|
1240
|
+
args: [{
|
|
1241
|
+
selector: 'ibm-diagram-card-node',
|
|
1242
|
+
template: `
|
|
1243
|
+
<ng-container [ngSwitch]="component">
|
|
1244
|
+
<xhtml:div
|
|
1245
|
+
*ngSwitchCase="'div'"
|
|
1246
|
+
[ngClass]="[
|
|
1247
|
+
namespace,
|
|
1248
|
+
stacked ? namespace + '--stacked' : '',
|
|
1249
|
+
namespace + '--' + component
|
|
1250
|
+
]"
|
|
1251
|
+
[ngStyle]="{
|
|
1252
|
+
'border-color': color,
|
|
1253
|
+
position: position
|
|
1254
|
+
}"
|
|
1255
|
+
(mouseenter)="mouseEnter.emit($event)"
|
|
1256
|
+
(mouseover)="mouseOver.emit($event)"
|
|
1257
|
+
(mouseout)="mouseOut.emit($event)"
|
|
1258
|
+
(mouseleave)="mouseLeave.emit($event)"
|
|
1259
|
+
(mousemove)="mouseMove.emit($event)"
|
|
1260
|
+
tabindex="0">
|
|
1261
|
+
<ng-container *ngTemplateOutlet="nodeTemplate"></ng-container>
|
|
1262
|
+
</xhtml:div>
|
|
1263
|
+
|
|
1264
|
+
<xhtml:button
|
|
1265
|
+
*ngSwitchCase="'button'"
|
|
1266
|
+
[ngClass]="[
|
|
1267
|
+
namespace,
|
|
1268
|
+
stacked ? namespace + '--stacked' : '',
|
|
1269
|
+
namespace + '--' + component
|
|
1270
|
+
]"
|
|
1271
|
+
[ngStyle]="{
|
|
1272
|
+
'border-color': color,
|
|
1273
|
+
position: position
|
|
1274
|
+
}"
|
|
1275
|
+
(click)="click.emit($event)"
|
|
1276
|
+
(mouseenter)="mouseEnter.emit($event)"
|
|
1277
|
+
(mouseover)="mouseOver.emit($event)"
|
|
1278
|
+
(mouseout)="mouseOut.emit($event)"
|
|
1279
|
+
(mouseleave)="mouseLeave.emit($event)"
|
|
1280
|
+
(mousemove)="mouseMove.emit($event)"
|
|
1281
|
+
tabindex="0">
|
|
1282
|
+
<ng-container *ngTemplateOutlet="nodeTemplate"></ng-container>
|
|
1283
|
+
</xhtml:button>
|
|
1284
|
+
|
|
1285
|
+
<xhtml:a
|
|
1286
|
+
*ngSwitchCase="'a'"
|
|
1287
|
+
[ngClass]="[
|
|
1288
|
+
namespace,
|
|
1289
|
+
stacked ? namespace + '--stacked' : '',
|
|
1290
|
+
namespace + '--' + component
|
|
1291
|
+
]"
|
|
1292
|
+
[attr.href]="href"
|
|
1293
|
+
[ngStyle]="{ 'border-color': color, position: position }"
|
|
1294
|
+
(mouseenter)="mouseEnter.emit($event)"
|
|
1295
|
+
(mouseover)="mouseOver.emit($event)"
|
|
1296
|
+
(mouseout)="mouseOut.emit($event)"
|
|
1297
|
+
(mouseleave)="mouseLeave.emit($event)"
|
|
1298
|
+
(mousemove)="mouseMove.emit($event)"
|
|
1299
|
+
tabindex="0">
|
|
1300
|
+
<ng-container *ngTemplateOutlet="nodeTemplate"></ng-container>
|
|
1301
|
+
</xhtml:a>
|
|
1302
|
+
</ng-container>
|
|
1303
|
+
<ng-template #nodeTemplate>
|
|
1304
|
+
<ng-content></ng-content>
|
|
1305
|
+
</ng-template>
|
|
1306
|
+
`
|
|
1307
|
+
}]
|
|
1308
|
+
}], propDecorators: { as: [{
|
|
1309
|
+
type: Input
|
|
1310
|
+
}], href: [{
|
|
1311
|
+
type: Input
|
|
1312
|
+
}], color: [{
|
|
1313
|
+
type: Input
|
|
1314
|
+
}], stacked: [{
|
|
1315
|
+
type: Input
|
|
1316
|
+
}], position: [{
|
|
1317
|
+
type: Input
|
|
1318
|
+
}], click: [{
|
|
1319
|
+
type: Output
|
|
1320
|
+
}], mouseEnter: [{
|
|
1321
|
+
type: Output
|
|
1322
|
+
}], mouseOver: [{
|
|
1323
|
+
type: Output
|
|
1324
|
+
}], mouseOut: [{
|
|
1325
|
+
type: Output
|
|
1326
|
+
}], mouseLeave: [{
|
|
1327
|
+
type: Output
|
|
1328
|
+
}], mouseMove: [{
|
|
1329
|
+
type: Output
|
|
1330
|
+
}] } });
|
|
1331
|
+
|
|
1332
|
+
class CardNodeColumnComponent {
|
|
1333
|
+
constructor() {
|
|
1334
|
+
this.farsideColumn = false;
|
|
1335
|
+
}
|
|
1336
|
+
get class() {
|
|
1337
|
+
const farsideClassName = this.farsideColumn
|
|
1338
|
+
? `${carbonPrefix}--cc--card-node__column--farside`
|
|
1339
|
+
: '';
|
|
1340
|
+
return `${carbonPrefix}--cc--card-node__column ${farsideClassName}`;
|
|
1341
|
+
}
|
|
1342
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: CardNodeColumnComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1343
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.4", type: CardNodeColumnComponent, selector: "ibm-diagram-card-node-column", inputs: { farsideColumn: "farsideColumn" }, host: { properties: { "class": "this.class" } }, ngImport: i0, template: `
|
|
1344
|
+
<xhtml:div>
|
|
1345
|
+
<ng-content></ng-content>
|
|
1346
|
+
</xhtml:div>
|
|
1347
|
+
`, isInline: true }); }
|
|
1348
|
+
}
|
|
1349
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: CardNodeColumnComponent, decorators: [{
|
|
1350
|
+
type: Component,
|
|
1351
|
+
args: [{
|
|
1352
|
+
selector: 'ibm-diagram-card-node-column',
|
|
1353
|
+
template: `
|
|
1354
|
+
<xhtml:div>
|
|
1355
|
+
<ng-content></ng-content>
|
|
1356
|
+
</xhtml:div>
|
|
1357
|
+
`
|
|
1358
|
+
}]
|
|
1359
|
+
}], propDecorators: { farsideColumn: [{
|
|
1360
|
+
type: Input
|
|
1361
|
+
}], class: [{
|
|
1362
|
+
type: HostBinding,
|
|
1363
|
+
args: ['class']
|
|
1364
|
+
}] } });
|
|
1365
|
+
|
|
1366
|
+
class CardNodeLabelComponent {
|
|
1367
|
+
constructor() {
|
|
1368
|
+
this.namespace = `${carbonPrefix}--cc--card-node__label`;
|
|
1369
|
+
}
|
|
1370
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: CardNodeLabelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1371
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.4", type: CardNodeLabelComponent, selector: "ibm-diagram-card-node-label", ngImport: i0, template: `
|
|
1372
|
+
<xhtml:label [ngClass]="namespace">
|
|
1373
|
+
<ng-content></ng-content>
|
|
1374
|
+
</xhtml:label>
|
|
1375
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] }); }
|
|
1376
|
+
}
|
|
1377
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: CardNodeLabelComponent, decorators: [{
|
|
1378
|
+
type: Component,
|
|
1379
|
+
args: [{
|
|
1380
|
+
selector: 'ibm-diagram-card-node-label',
|
|
1381
|
+
template: `
|
|
1382
|
+
<xhtml:label [ngClass]="namespace">
|
|
1383
|
+
<ng-content></ng-content>
|
|
1384
|
+
</xhtml:label>
|
|
1385
|
+
`
|
|
1386
|
+
}]
|
|
1387
|
+
}] });
|
|
1388
|
+
|
|
1389
|
+
class CardNodeSubtitleComponent {
|
|
1390
|
+
constructor() {
|
|
1391
|
+
this.namespace = `${carbonPrefix}--cc--card-node__subtitle`;
|
|
1392
|
+
}
|
|
1393
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: CardNodeSubtitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1394
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.4", type: CardNodeSubtitleComponent, selector: "ibm-diagram-card-node-subtitle", ngImport: i0, template: `
|
|
1395
|
+
<xhtml:div [ngClass]="namespace">
|
|
1396
|
+
<ng-content></ng-content>
|
|
1397
|
+
</xhtml:div>
|
|
1398
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] }); }
|
|
1399
|
+
}
|
|
1400
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: CardNodeSubtitleComponent, decorators: [{
|
|
1401
|
+
type: Component,
|
|
1402
|
+
args: [{
|
|
1403
|
+
selector: 'ibm-diagram-card-node-subtitle',
|
|
1404
|
+
template: `
|
|
1405
|
+
<xhtml:div [ngClass]="namespace">
|
|
1406
|
+
<ng-content></ng-content>
|
|
1407
|
+
</xhtml:div>
|
|
1408
|
+
`
|
|
1409
|
+
}]
|
|
1410
|
+
}] });
|
|
1411
|
+
|
|
1412
|
+
class CardNodeTitleComponent {
|
|
1413
|
+
constructor() {
|
|
1414
|
+
this.namespace = `${carbonPrefix}--cc--card-node__title`;
|
|
1415
|
+
}
|
|
1416
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: CardNodeTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1417
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.4", type: CardNodeTitleComponent, selector: "ibm-diagram-card-node-title", ngImport: i0, template: `
|
|
1418
|
+
<xhtml:div [ngClass]="namespace">
|
|
1419
|
+
<ng-content></ng-content>
|
|
1420
|
+
</xhtml:div>
|
|
1421
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] }); }
|
|
1422
|
+
}
|
|
1423
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: CardNodeTitleComponent, decorators: [{
|
|
1424
|
+
type: Component,
|
|
1425
|
+
args: [{
|
|
1426
|
+
selector: 'ibm-diagram-card-node-title',
|
|
1427
|
+
template: `
|
|
1428
|
+
<xhtml:div [ngClass]="namespace">
|
|
1429
|
+
<ng-content></ng-content>
|
|
1430
|
+
</xhtml:div>
|
|
1431
|
+
`
|
|
1432
|
+
}]
|
|
1433
|
+
}] });
|
|
1434
|
+
|
|
1435
|
+
class CardNodeModule {
|
|
1436
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: CardNodeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1437
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.4", ngImport: i0, type: CardNodeModule, declarations: [CardNodeComponent,
|
|
1438
|
+
CardNodeColumnComponent,
|
|
1439
|
+
CardNodeLabelComponent,
|
|
1440
|
+
CardNodeSubtitleComponent,
|
|
1441
|
+
CardNodeTitleComponent], imports: [CommonModule], exports: [CardNodeComponent,
|
|
1442
|
+
CardNodeColumnComponent,
|
|
1443
|
+
CardNodeLabelComponent,
|
|
1444
|
+
CardNodeSubtitleComponent,
|
|
1445
|
+
CardNodeTitleComponent] }); }
|
|
1446
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: CardNodeModule, imports: [CommonModule] }); }
|
|
1447
|
+
}
|
|
1448
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: CardNodeModule, decorators: [{
|
|
1449
|
+
type: NgModule,
|
|
1450
|
+
args: [{
|
|
1451
|
+
declarations: [
|
|
1452
|
+
CardNodeComponent,
|
|
1453
|
+
CardNodeColumnComponent,
|
|
1454
|
+
CardNodeLabelComponent,
|
|
1455
|
+
CardNodeSubtitleComponent,
|
|
1456
|
+
CardNodeTitleComponent
|
|
1457
|
+
],
|
|
1458
|
+
imports: [CommonModule],
|
|
1459
|
+
exports: [
|
|
1460
|
+
CardNodeComponent,
|
|
1461
|
+
CardNodeColumnComponent,
|
|
1462
|
+
CardNodeLabelComponent,
|
|
1463
|
+
CardNodeSubtitleComponent,
|
|
1464
|
+
CardNodeTitleComponent
|
|
1465
|
+
]
|
|
1466
|
+
}]
|
|
1467
|
+
}] });
|
|
1468
|
+
|
|
1469
|
+
class ShapeNodeComponent {
|
|
1470
|
+
constructor() {
|
|
1471
|
+
this.as = 'div';
|
|
1472
|
+
this.href = '';
|
|
1473
|
+
this.size = 48;
|
|
1474
|
+
this.stacked = false;
|
|
1475
|
+
this.shape = 'circle';
|
|
1476
|
+
this.subtitle = '';
|
|
1477
|
+
this.title = '';
|
|
1478
|
+
this.position = 'fixed';
|
|
1479
|
+
this.bodyPosition = 'absolute';
|
|
1480
|
+
// eslint-disable-next-line @angular-eslint/no-output-native
|
|
1481
|
+
this.click = new EventEmitter();
|
|
1482
|
+
this.mouseEnter = new EventEmitter();
|
|
1483
|
+
this.mouseOver = new EventEmitter();
|
|
1484
|
+
this.mouseOut = new EventEmitter();
|
|
1485
|
+
this.mouseLeave = new EventEmitter();
|
|
1486
|
+
this.mouseMove = new EventEmitter();
|
|
1487
|
+
this.namespace = `${carbonPrefix}--cc--shape-node`;
|
|
1488
|
+
this.component = 'div';
|
|
1489
|
+
}
|
|
1490
|
+
ngOnInit() {
|
|
1491
|
+
if (this.href) {
|
|
1492
|
+
this.component = 'a';
|
|
1493
|
+
}
|
|
1494
|
+
else {
|
|
1495
|
+
this.component = this.as;
|
|
1496
|
+
}
|
|
1497
|
+
}
|
|
1498
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: ShapeNodeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1499
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.4", type: ShapeNodeComponent, selector: "ibm-diagram-shape-node", inputs: { as: "as", href: "href", renderIcon: "renderIcon", size: "size", stacked: "stacked", shape: "shape", subtitle: "subtitle", title: "title", position: "position", bodyPosition: "bodyPosition" }, outputs: { click: "click", mouseEnter: "mouseEnter", mouseOver: "mouseOver", mouseOut: "mouseOut", mouseLeave: "mouseLeave", mouseMove: "mouseMove" }, ngImport: i0, template: `
|
|
1500
|
+
<ng-container [ngSwitch]="component">
|
|
1501
|
+
<xhtml:div
|
|
1502
|
+
*ngSwitchCase="'div'"
|
|
1503
|
+
[ngClass]="[
|
|
1504
|
+
namespace,
|
|
1505
|
+
stacked ? namespace + '--stacked' : '',
|
|
1506
|
+
shape ? namespace + '--' + shape : '',
|
|
1507
|
+
namespace + '--' + component
|
|
1508
|
+
]"
|
|
1509
|
+
[ngStyle]="{
|
|
1510
|
+
'height.px': size,
|
|
1511
|
+
'width.px': size,
|
|
1512
|
+
position: position
|
|
1513
|
+
}"
|
|
1514
|
+
(mouseenter)="mouseEnter.emit($event)"
|
|
1515
|
+
(mouseover)="mouseOver.emit($event)"
|
|
1516
|
+
(mouseout)="mouseOut.emit($event)"
|
|
1517
|
+
(mouseleave)="mouseLeave.emit($event)"
|
|
1518
|
+
(mousemove)="mouseMove.emit($event)"
|
|
1519
|
+
tabindex="0">
|
|
1520
|
+
<ng-container *ngTemplateOutlet="nodeTemplate"></ng-container>
|
|
1521
|
+
</xhtml:div>
|
|
1522
|
+
|
|
1523
|
+
<xhtml:button
|
|
1524
|
+
*ngSwitchCase="'button'"
|
|
1525
|
+
[ngClass]="[
|
|
1526
|
+
namespace,
|
|
1527
|
+
stacked ? namespace + '--stacked' : '',
|
|
1528
|
+
shape ? namespace + '--' + shape : '',
|
|
1529
|
+
namespace + '--' + component
|
|
1530
|
+
]"
|
|
1531
|
+
[ngStyle]="{
|
|
1532
|
+
'height.px': size,
|
|
1533
|
+
'width.px': size,
|
|
1534
|
+
position: position
|
|
1535
|
+
}"
|
|
1536
|
+
(click)="click.emit($event)"
|
|
1537
|
+
(mouseenter)="mouseEnter.emit($event)"
|
|
1538
|
+
(mouseover)="mouseOver.emit($event)"
|
|
1539
|
+
(mouseout)="mouseOut.emit($event)"
|
|
1540
|
+
(mouseleave)="mouseLeave.emit($event)"
|
|
1541
|
+
(mousemove)="mouseMove.emit($event)"
|
|
1542
|
+
tabindex="0">
|
|
1543
|
+
<ng-container *ngTemplateOutlet="nodeTemplate"></ng-container>
|
|
1544
|
+
</xhtml:button>
|
|
1545
|
+
|
|
1546
|
+
<xhtml:a
|
|
1547
|
+
*ngSwitchCase="'a'"
|
|
1548
|
+
[ngClass]="[
|
|
1549
|
+
namespace,
|
|
1550
|
+
stacked ? namespace + '--stacked' : '',
|
|
1551
|
+
shape ? namespace + '--' + shape : '',
|
|
1552
|
+
namespace + '--' + component
|
|
1553
|
+
]"
|
|
1554
|
+
[attr.href]="href"
|
|
1555
|
+
[ngStyle]="{
|
|
1556
|
+
'height.px': size,
|
|
1557
|
+
'width.px': size,
|
|
1558
|
+
position: position
|
|
1559
|
+
}"
|
|
1560
|
+
(mouseenter)="mouseEnter.emit($event)"
|
|
1561
|
+
(mouseover)="mouseOver.emit($event)"
|
|
1562
|
+
(mouseout)="mouseOut.emit($event)"
|
|
1563
|
+
(mouseleave)="mouseLeave.emit($event)"
|
|
1564
|
+
(mousemove)="mouseMove.emit($event)"
|
|
1565
|
+
tabindex="0">
|
|
1566
|
+
<ng-container *ngTemplateOutlet="nodeTemplate"></ng-container>
|
|
1567
|
+
</xhtml:a>
|
|
1568
|
+
</ng-container>
|
|
1569
|
+
|
|
1570
|
+
<ng-template #nodeTemplate>
|
|
1571
|
+
<div *ngIf="renderIcon" attr.class="{{ namespace + '__icon' }}">
|
|
1572
|
+
<ng-container *ngTemplateOutlet="renderIcon"></ng-container>
|
|
1573
|
+
</div>
|
|
1574
|
+
<div attr.class="{{ namespace + '__body' }}" [ngStyle]="{ position: bodyPosition }">
|
|
1575
|
+
<div attr.class="{{ namespace + '__title' }}">{{ title }}</div>
|
|
1576
|
+
<div attr.class="{{ namespace + '__subtitle' }}">
|
|
1577
|
+
{{ subtitle }}
|
|
1578
|
+
</div>
|
|
1579
|
+
</div>
|
|
1580
|
+
</ng-template>
|
|
1581
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }] }); }
|
|
1582
|
+
}
|
|
1583
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: ShapeNodeComponent, decorators: [{
|
|
1584
|
+
type: Component,
|
|
1585
|
+
args: [{
|
|
1586
|
+
selector: 'ibm-diagram-shape-node',
|
|
1587
|
+
template: `
|
|
1588
|
+
<ng-container [ngSwitch]="component">
|
|
1589
|
+
<xhtml:div
|
|
1590
|
+
*ngSwitchCase="'div'"
|
|
1591
|
+
[ngClass]="[
|
|
1592
|
+
namespace,
|
|
1593
|
+
stacked ? namespace + '--stacked' : '',
|
|
1594
|
+
shape ? namespace + '--' + shape : '',
|
|
1595
|
+
namespace + '--' + component
|
|
1596
|
+
]"
|
|
1597
|
+
[ngStyle]="{
|
|
1598
|
+
'height.px': size,
|
|
1599
|
+
'width.px': size,
|
|
1600
|
+
position: position
|
|
1601
|
+
}"
|
|
1602
|
+
(mouseenter)="mouseEnter.emit($event)"
|
|
1603
|
+
(mouseover)="mouseOver.emit($event)"
|
|
1604
|
+
(mouseout)="mouseOut.emit($event)"
|
|
1605
|
+
(mouseleave)="mouseLeave.emit($event)"
|
|
1606
|
+
(mousemove)="mouseMove.emit($event)"
|
|
1607
|
+
tabindex="0">
|
|
1608
|
+
<ng-container *ngTemplateOutlet="nodeTemplate"></ng-container>
|
|
1609
|
+
</xhtml:div>
|
|
1610
|
+
|
|
1611
|
+
<xhtml:button
|
|
1612
|
+
*ngSwitchCase="'button'"
|
|
1613
|
+
[ngClass]="[
|
|
1614
|
+
namespace,
|
|
1615
|
+
stacked ? namespace + '--stacked' : '',
|
|
1616
|
+
shape ? namespace + '--' + shape : '',
|
|
1617
|
+
namespace + '--' + component
|
|
1618
|
+
]"
|
|
1619
|
+
[ngStyle]="{
|
|
1620
|
+
'height.px': size,
|
|
1621
|
+
'width.px': size,
|
|
1622
|
+
position: position
|
|
1623
|
+
}"
|
|
1624
|
+
(click)="click.emit($event)"
|
|
1625
|
+
(mouseenter)="mouseEnter.emit($event)"
|
|
1626
|
+
(mouseover)="mouseOver.emit($event)"
|
|
1627
|
+
(mouseout)="mouseOut.emit($event)"
|
|
1628
|
+
(mouseleave)="mouseLeave.emit($event)"
|
|
1629
|
+
(mousemove)="mouseMove.emit($event)"
|
|
1630
|
+
tabindex="0">
|
|
1631
|
+
<ng-container *ngTemplateOutlet="nodeTemplate"></ng-container>
|
|
1632
|
+
</xhtml:button>
|
|
1633
|
+
|
|
1634
|
+
<xhtml:a
|
|
1635
|
+
*ngSwitchCase="'a'"
|
|
1636
|
+
[ngClass]="[
|
|
1637
|
+
namespace,
|
|
1638
|
+
stacked ? namespace + '--stacked' : '',
|
|
1639
|
+
shape ? namespace + '--' + shape : '',
|
|
1640
|
+
namespace + '--' + component
|
|
1641
|
+
]"
|
|
1642
|
+
[attr.href]="href"
|
|
1643
|
+
[ngStyle]="{
|
|
1644
|
+
'height.px': size,
|
|
1645
|
+
'width.px': size,
|
|
1646
|
+
position: position
|
|
1647
|
+
}"
|
|
1648
|
+
(mouseenter)="mouseEnter.emit($event)"
|
|
1649
|
+
(mouseover)="mouseOver.emit($event)"
|
|
1650
|
+
(mouseout)="mouseOut.emit($event)"
|
|
1651
|
+
(mouseleave)="mouseLeave.emit($event)"
|
|
1652
|
+
(mousemove)="mouseMove.emit($event)"
|
|
1653
|
+
tabindex="0">
|
|
1654
|
+
<ng-container *ngTemplateOutlet="nodeTemplate"></ng-container>
|
|
1655
|
+
</xhtml:a>
|
|
1656
|
+
</ng-container>
|
|
1657
|
+
|
|
1658
|
+
<ng-template #nodeTemplate>
|
|
1659
|
+
<div *ngIf="renderIcon" attr.class="{{ namespace + '__icon' }}">
|
|
1660
|
+
<ng-container *ngTemplateOutlet="renderIcon"></ng-container>
|
|
1661
|
+
</div>
|
|
1662
|
+
<div attr.class="{{ namespace + '__body' }}" [ngStyle]="{ position: bodyPosition }">
|
|
1663
|
+
<div attr.class="{{ namespace + '__title' }}">{{ title }}</div>
|
|
1664
|
+
<div attr.class="{{ namespace + '__subtitle' }}">
|
|
1665
|
+
{{ subtitle }}
|
|
1666
|
+
</div>
|
|
1667
|
+
</div>
|
|
1668
|
+
</ng-template>
|
|
1669
|
+
`
|
|
1670
|
+
}]
|
|
1671
|
+
}], propDecorators: { as: [{
|
|
1672
|
+
type: Input
|
|
1673
|
+
}], href: [{
|
|
1674
|
+
type: Input
|
|
1675
|
+
}], renderIcon: [{
|
|
1676
|
+
type: Input
|
|
1677
|
+
}], size: [{
|
|
1678
|
+
type: Input
|
|
1679
|
+
}], stacked: [{
|
|
1680
|
+
type: Input
|
|
1681
|
+
}], shape: [{
|
|
1682
|
+
type: Input
|
|
1683
|
+
}], subtitle: [{
|
|
1684
|
+
type: Input
|
|
1685
|
+
}], title: [{
|
|
1686
|
+
type: Input
|
|
1687
|
+
}], position: [{
|
|
1688
|
+
type: Input
|
|
1689
|
+
}], bodyPosition: [{
|
|
1690
|
+
type: Input
|
|
1691
|
+
}], click: [{
|
|
1692
|
+
type: Output
|
|
1693
|
+
}], mouseEnter: [{
|
|
1694
|
+
type: Output
|
|
1695
|
+
}], mouseOver: [{
|
|
1696
|
+
type: Output
|
|
1697
|
+
}], mouseOut: [{
|
|
1698
|
+
type: Output
|
|
1699
|
+
}], mouseLeave: [{
|
|
1700
|
+
type: Output
|
|
1701
|
+
}], mouseMove: [{
|
|
1702
|
+
type: Output
|
|
1703
|
+
}] } });
|
|
1704
|
+
|
|
1705
|
+
class ShapeNodeModule {
|
|
1706
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: ShapeNodeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1707
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.4", ngImport: i0, type: ShapeNodeModule, declarations: [ShapeNodeComponent], imports: [CommonModule], exports: [ShapeNodeComponent] }); }
|
|
1708
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: ShapeNodeModule, imports: [CommonModule] }); }
|
|
1709
|
+
}
|
|
1710
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.4", ngImport: i0, type: ShapeNodeModule, decorators: [{
|
|
1711
|
+
type: NgModule,
|
|
1712
|
+
args: [{
|
|
1713
|
+
declarations: [ShapeNodeComponent],
|
|
1714
|
+
imports: [CommonModule],
|
|
1715
|
+
exports: [ShapeNodeComponent]
|
|
1716
|
+
}]
|
|
1717
|
+
}] });
|
|
1718
|
+
|
|
1719
|
+
/*
|
|
1720
|
+
* Public API Surface of charts-angular
|
|
1721
|
+
*/
|
|
1722
|
+
|
|
1723
|
+
/**
|
|
1724
|
+
* Generated bundle index. Do not edit.
|
|
1725
|
+
*/
|
|
1726
|
+
|
|
1727
|
+
export { AlluvialChartComponent, AreaChartComponent, BaseChartComponent, BoxplotChartComponent, BubbleChartComponent, BulletChartComponent, CardNodeColumnComponent, CardNodeComponent, CardNodeLabelComponent, CardNodeModule, CardNodeSubtitleComponent, CardNodeTitleComponent, ChartsModule, CirclePackChartComponent, ComboChartComponent, DonutChartComponent, EdgeComponent, EdgeModule, ExperimentalChoroplethChartComponent, GaugeChartComponent, GroupedBarChartComponent, HeatmapChartComponent, HistogramChartComponent, LineChartComponent, LollipopChartComponent, MarkerArrowLeftComponent, MarkerArrowRightComponent, MarkerComponent, MarkerDiamondComponent, MarkerModule, MarkerShapeNodeComponent, MarkerSquareComponent, MarkerTeeComponent, MeterChartComponent, PieChartComponent, RadarChartComponent, ScatterChartComponent, ShapeNodeComponent, ShapeNodeModule, SimpleBarChartComponent, StackedAreaChartComponent, StackedBarChartComponent, TreeChartComponent, TreemapChartComponent, WordCloudChartComponent };
|
|
1728
|
+
//# sourceMappingURL=carbon-charts-angular.mjs.map
|