@carbon/charts-angular 1.8.0 → 1.9.0-rc.1

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