@carbon/charts-angular 1.7.6 → 1.9.0-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (228) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.md +0 -2
  3. package/esm2022/carbon-charts-angular.mjs +5 -0
  4. package/esm2022/index.mjs +14 -0
  5. package/esm2022/lib/charts/alluvial-chart.component.mjs +32 -0
  6. package/esm2022/lib/charts/area-chart-stacked.component.mjs +32 -0
  7. package/esm2022/lib/charts/area-chart.component.mjs +32 -0
  8. package/esm2022/lib/charts/bar-chart-grouped.component.mjs +32 -0
  9. package/esm2022/lib/charts/bar-chart-simple.component.mjs +32 -0
  10. package/esm2022/lib/charts/bar-chart-stacked.component.mjs +32 -0
  11. package/esm2022/lib/charts/base-chart.component.mjs +75 -0
  12. package/esm2022/lib/charts/boxplot-chart.component.mjs +32 -0
  13. package/esm2022/lib/charts/bubble-chart.component.mjs +32 -0
  14. package/esm2022/lib/charts/bullet-chart.component.mjs +32 -0
  15. package/esm2022/lib/charts/charts.module.mjs +123 -0
  16. package/esm2022/lib/charts/choropleth.component.mjs +32 -0
  17. package/esm2022/lib/charts/circle-pack-chart.component.mjs +32 -0
  18. package/esm2022/lib/charts/combo-chart.component.mjs +32 -0
  19. package/esm2022/lib/charts/donut-chart.component.mjs +32 -0
  20. package/esm2022/lib/charts/gauge-chart.component.mjs +32 -0
  21. package/esm2022/lib/charts/heatmap-chart.component.mjs +32 -0
  22. package/esm2022/lib/charts/histogram-chart.component.mjs +32 -0
  23. package/esm2022/lib/charts/index.mjs +28 -0
  24. package/esm2022/lib/charts/line-chart.component.mjs +32 -0
  25. package/esm2022/lib/charts/lollipop-chart.component.mjs +32 -0
  26. package/esm2022/lib/charts/meter-chart.component.mjs +32 -0
  27. package/esm2022/lib/charts/pie-chart.component.mjs +32 -0
  28. package/esm2022/lib/charts/radar-chart.component.mjs +32 -0
  29. package/esm2022/lib/charts/scatter-chart.component.mjs +32 -0
  30. package/esm2022/lib/charts/tree-chart.component.mjs +32 -0
  31. package/esm2022/lib/charts/treemap-chart.component.mjs +32 -0
  32. package/esm2022/lib/charts/wordcloud-chart.component.mjs +32 -0
  33. package/esm2022/lib/diagrams/config.mjs +2 -0
  34. package/esm2022/lib/diagrams/edges/edge.component.mjs +73 -0
  35. package/esm2022/lib/diagrams/edges/edge.module.mjs +20 -0
  36. package/esm2022/lib/diagrams/edges/marker/marker.component.mjs +161 -0
  37. package/esm2022/lib/diagrams/edges/marker/marker.module.mjs +48 -0
  38. package/esm2022/lib/diagrams/index.mjs +5 -0
  39. package/esm2022/lib/diagrams/nodes/cards/card-node-column.component.mjs +38 -0
  40. package/esm2022/lib/diagrams/nodes/cards/card-node-label.component.mjs +28 -0
  41. package/esm2022/lib/diagrams/nodes/cards/card-node-subtitle.component.mjs +28 -0
  42. package/esm2022/lib/diagrams/nodes/cards/card-node-title.component.mjs +28 -0
  43. package/esm2022/lib/diagrams/nodes/cards/card-node.component.mjs +191 -0
  44. package/esm2022/lib/diagrams/nodes/cards/card-node.module.mjs +44 -0
  45. package/esm2022/lib/diagrams/nodes/shape/shape-node.component.mjs +241 -0
  46. package/esm2022/lib/diagrams/nodes/shape/shape-node.module.mjs +20 -0
  47. package/esm2022/lib/index.mjs +3 -0
  48. package/fesm2022/carbon-charts-angular.mjs +1728 -0
  49. package/fesm2022/carbon-charts-angular.mjs.map +1 -0
  50. package/index.d.ts +5 -38
  51. package/lib/charts/alluvial-chart.component.d.ts +16 -0
  52. package/lib/charts/area-chart-stacked.component.d.ts +16 -0
  53. package/lib/charts/area-chart.component.d.ts +16 -0
  54. package/lib/charts/bar-chart-grouped.component.d.ts +16 -0
  55. package/lib/charts/bar-chart-simple.component.d.ts +16 -0
  56. package/lib/charts/bar-chart-stacked.component.d.ts +16 -0
  57. package/lib/charts/base-chart.component.d.ts +61 -0
  58. package/lib/charts/boxplot-chart.component.d.ts +16 -0
  59. package/lib/charts/bubble-chart.component.d.ts +16 -0
  60. package/lib/charts/bullet-chart.component.d.ts +16 -0
  61. package/lib/charts/charts.module.d.ts +89 -0
  62. package/lib/charts/choropleth.component.d.ts +16 -0
  63. package/lib/charts/circle-pack-chart.component.d.ts +16 -0
  64. package/lib/charts/combo-chart.component.d.ts +16 -0
  65. package/lib/charts/donut-chart.component.d.ts +16 -0
  66. package/lib/charts/gauge-chart.component.d.ts +16 -0
  67. package/lib/charts/heatmap-chart.component.d.ts +16 -0
  68. package/lib/charts/histogram-chart.component.d.ts +16 -0
  69. package/lib/charts/index.d.ts +27 -0
  70. package/lib/charts/line-chart.component.d.ts +16 -0
  71. package/lib/charts/lollipop-chart.component.d.ts +16 -0
  72. package/lib/charts/meter-chart.component.d.ts +16 -0
  73. package/lib/charts/pie-chart.component.d.ts +16 -0
  74. package/lib/charts/radar-chart.component.d.ts +16 -0
  75. package/lib/charts/scatter-chart.component.d.ts +16 -0
  76. package/lib/charts/tree-chart.component.d.ts +16 -0
  77. package/lib/charts/treemap-chart.component.d.ts +16 -0
  78. package/lib/charts/wordcloud-chart.component.d.ts +16 -0
  79. package/{diagrams/configs.d.ts → lib/diagrams/config.d.ts} +1 -1
  80. package/lib/diagrams/edges/edge.component.d.ts +49 -0
  81. package/lib/diagrams/edges/edge.module.d.ts +15 -0
  82. package/lib/diagrams/edges/marker/marker.component.d.ts +89 -0
  83. package/lib/diagrams/edges/marker/marker.module.d.ts +28 -0
  84. package/lib/diagrams/index.d.ts +4 -0
  85. package/lib/diagrams/nodes/cards/card-node-column.component.d.ts +14 -0
  86. package/lib/diagrams/nodes/cards/card-node-label.component.d.ts +8 -0
  87. package/lib/diagrams/nodes/cards/card-node-subtitle.component.d.ts +8 -0
  88. package/lib/diagrams/nodes/cards/card-node-title.component.d.ts +8 -0
  89. package/lib/diagrams/nodes/cards/card-node.component.d.ts +50 -0
  90. package/lib/diagrams/nodes/cards/card-node.module.d.ts +32 -0
  91. package/lib/diagrams/nodes/shape/shape-node.component.d.ts +73 -0
  92. package/lib/diagrams/nodes/shape/shape-node.module.d.ts +15 -0
  93. package/lib/index.d.ts +2 -0
  94. package/package.json +33 -61
  95. package/styles.css +28463 -0
  96. package/styles.css.map +1 -0
  97. package/styles.min.css +1 -0
  98. package/styles.min.css.map +1 -0
  99. package/alluvial-chart.component.d.ts +0 -13
  100. package/area-chart-stacked.component.d.ts +0 -13
  101. package/area-chart.component.d.ts +0 -13
  102. package/bar-chart-grouped.component.d.ts +0 -13
  103. package/bar-chart-simple.component.d.ts +0 -13
  104. package/bar-chart-stacked.component.d.ts +0 -13
  105. package/base-chart.component.d.ts +0 -44
  106. package/boxplot-chart.component.d.ts +0 -13
  107. package/bubble-chart.component.d.ts +0 -13
  108. package/bullet-chart.component.d.ts +0 -13
  109. package/bundles/carbon-charts-angular.umd.js +0 -2111
  110. package/bundles/carbon-charts-angular.umd.js.map +0 -1
  111. package/bundles/carbon-charts-angular.umd.min.js +0 -16
  112. package/bundles/carbon-charts-angular.umd.min.js.map +0 -1
  113. package/carbon-charts-angular.d.ts +0 -4
  114. package/carbon-charts-angular.metadata.json +0 -1
  115. package/charts.module.d.ts +0 -2
  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 -10
  142. package/esm2015/charts.module.js +0 -94
  143. package/esm2015/circle-pack-chart.component.js +0 -33
  144. package/esm2015/combo-chart.component.js +0 -33
  145. package/esm2015/diagrams/card-node/card-node-column.component.js +0 -41
  146. package/esm2015/diagrams/card-node/card-node-label.component.js +0 -27
  147. package/esm2015/diagrams/card-node/card-node-subtitle.component.js +0 -27
  148. package/esm2015/diagrams/card-node/card-node-title.component.js +0 -27
  149. package/esm2015/diagrams/card-node/card-node.component.js +0 -148
  150. package/esm2015/diagrams/card-node/card-node.module.js +0 -23
  151. package/esm2015/diagrams/configs.js +0 -8
  152. package/esm2015/diagrams/edge/edge.component.js +0 -80
  153. package/esm2015/diagrams/edge/edge.module.js +0 -19
  154. package/esm2015/diagrams/marker/marker.component.js +0 -141
  155. package/esm2015/diagrams/marker/marker.module.js +0 -35
  156. package/esm2015/diagrams/shape-node/shape-node.component.js +0 -187
  157. package/esm2015/diagrams/shape-node/shape-node.module.js +0 -19
  158. package/esm2015/donut-chart.component.js +0 -33
  159. package/esm2015/gauge-chart.component.js +0 -33
  160. package/esm2015/heatmap-chart.component.js +0 -33
  161. package/esm2015/histogram-chart.component.js +0 -33
  162. package/esm2015/index.js +0 -45
  163. package/esm2015/line-chart.component.js +0 -33
  164. package/esm2015/lollipop-chart.component.js +0 -33
  165. package/esm2015/meter-chart.component.js +0 -33
  166. package/esm2015/pie-chart.component.js +0 -33
  167. package/esm2015/radar-chart.component.js +0 -33
  168. package/esm2015/scatter-chart.component.js +0 -33
  169. package/esm2015/tree-chart.component.js +0 -33
  170. package/esm2015/treemap-chart.component.js +0 -33
  171. package/esm2015/wordcloud-chart.component.js +0 -33
  172. package/esm5/alluvial-chart.component.js +0 -47
  173. package/esm5/area-chart-stacked.component.js +0 -47
  174. package/esm5/area-chart.component.js +0 -47
  175. package/esm5/bar-chart-grouped.component.js +0 -47
  176. package/esm5/bar-chart-simple.component.js +0 -47
  177. package/esm5/bar-chart-stacked.component.js +0 -47
  178. package/esm5/base-chart.component.js +0 -160
  179. package/esm5/boxplot-chart.component.js +0 -47
  180. package/esm5/bubble-chart.component.js +0 -47
  181. package/esm5/bullet-chart.component.js +0 -47
  182. package/esm5/carbon-charts-angular.js +0 -10
  183. package/esm5/charts.module.js +0 -98
  184. package/esm5/circle-pack-chart.component.js +0 -47
  185. package/esm5/combo-chart.component.js +0 -47
  186. package/esm5/diagrams/card-node/card-node-column.component.js +0 -43
  187. package/esm5/diagrams/card-node/card-node-label.component.js +0 -25
  188. package/esm5/diagrams/card-node/card-node-subtitle.component.js +0 -25
  189. package/esm5/diagrams/card-node/card-node-title.component.js +0 -25
  190. package/esm5/diagrams/card-node/card-node.component.js +0 -86
  191. package/esm5/diagrams/card-node/card-node.module.js +0 -27
  192. package/esm5/diagrams/configs.js +0 -8
  193. package/esm5/diagrams/edge/edge.component.js +0 -64
  194. package/esm5/diagrams/edge/edge.module.js +0 -23
  195. package/esm5/diagrams/marker/marker.component.js +0 -188
  196. package/esm5/diagrams/marker/marker.module.js +0 -39
  197. package/esm5/diagrams/shape-node/shape-node.component.js +0 -104
  198. package/esm5/diagrams/shape-node/shape-node.module.js +0 -23
  199. package/esm5/donut-chart.component.js +0 -47
  200. package/esm5/gauge-chart.component.js +0 -47
  201. package/esm5/heatmap-chart.component.js +0 -47
  202. package/esm5/histogram-chart.component.js +0 -47
  203. package/esm5/index.js +0 -45
  204. package/esm5/line-chart.component.js +0 -47
  205. package/esm5/lollipop-chart.component.js +0 -47
  206. package/esm5/meter-chart.component.js +0 -47
  207. package/esm5/pie-chart.component.js +0 -47
  208. package/esm5/radar-chart.component.js +0 -47
  209. package/esm5/scatter-chart.component.js +0 -47
  210. package/esm5/tree-chart.component.js +0 -47
  211. package/esm5/treemap-chart.component.js +0 -47
  212. package/esm5/wordcloud-chart.component.js +0 -47
  213. package/fesm2015/carbon-charts-angular.js +0 -1690
  214. package/fesm2015/carbon-charts-angular.js.map +0 -1
  215. package/fesm5/carbon-charts-angular.js +0 -1880
  216. package/fesm5/carbon-charts-angular.js.map +0 -1
  217. package/gauge-chart.component.d.ts +0 -13
  218. package/heatmap-chart.component.d.ts +0 -13
  219. package/histogram-chart.component.d.ts +0 -13
  220. package/line-chart.component.d.ts +0 -13
  221. package/lollipop-chart.component.d.ts +0 -13
  222. package/meter-chart.component.d.ts +0 -13
  223. package/pie-chart.component.d.ts +0 -13
  224. package/radar-chart.component.d.ts +0 -13
  225. package/scatter-chart.component.d.ts +0 -13
  226. package/tree-chart.component.d.ts +0 -13
  227. package/treemap-chart.component.d.ts +0 -13
  228. package/wordcloud-chart.component.d.ts +0 -13
@@ -1,2111 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@carbon/charts'), require('@carbon/charts/components/diagrams/buildPaths'), require('@carbon/charts/components/diagrams/markerDefinitions')) :
3
- typeof define === 'function' && define.amd ? define('@carbon/charts-angular', ['exports', '@angular/core', '@angular/common', '@carbon/charts', '@carbon/charts/components/diagrams/buildPaths', '@carbon/charts/components/diagrams/markerDefinitions'], factory) :
4
- (global = global || self, factory((global.carbon = global.carbon || {}, global.carbon['charts-angular'] = {}), global.ng.core, global.ng.common, global.charts, global.buildPaths, global.markerDefinitions));
5
- }(this, (function (exports, core, common, charts, buildPaths, markerDefinitions) { 'use strict';
6
-
7
- /*! *****************************************************************************
8
- Copyright (c) Microsoft Corporation. All rights reserved.
9
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
10
- this file except in compliance with the License. You may obtain a copy of the
11
- License at http://www.apache.org/licenses/LICENSE-2.0
12
-
13
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
15
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
16
- MERCHANTABLITY OR NON-INFRINGEMENT.
17
-
18
- See the Apache Version 2.0 License for specific language governing permissions
19
- and limitations under the License.
20
- ***************************************************************************** */
21
- /* global Reflect, Promise */
22
-
23
- var extendStatics = function(d, b) {
24
- extendStatics = Object.setPrototypeOf ||
25
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
26
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
27
- return extendStatics(d, b);
28
- };
29
-
30
- function __extends(d, b) {
31
- extendStatics(d, b);
32
- function __() { this.constructor = d; }
33
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
34
- }
35
-
36
- var __assign = function() {
37
- __assign = Object.assign || function __assign(t) {
38
- for (var s, i = 1, n = arguments.length; i < n; i++) {
39
- s = arguments[i];
40
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
41
- }
42
- return t;
43
- };
44
- return __assign.apply(this, arguments);
45
- };
46
-
47
- function __rest(s, e) {
48
- var t = {};
49
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
50
- t[p] = s[p];
51
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
52
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
53
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
54
- t[p[i]] = s[p[i]];
55
- }
56
- return t;
57
- }
58
-
59
- function __decorate(decorators, target, key, desc) {
60
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
61
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
62
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
63
- return c > 3 && r && Object.defineProperty(target, key, r), r;
64
- }
65
-
66
- function __param(paramIndex, decorator) {
67
- return function (target, key) { decorator(target, key, paramIndex); }
68
- }
69
-
70
- function __metadata(metadataKey, metadataValue) {
71
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
72
- }
73
-
74
- function __awaiter(thisArg, _arguments, P, generator) {
75
- return new (P || (P = Promise))(function (resolve, reject) {
76
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
77
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
78
- function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
79
- step((generator = generator.apply(thisArg, _arguments || [])).next());
80
- });
81
- }
82
-
83
- function __generator(thisArg, body) {
84
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
85
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
86
- function verb(n) { return function (v) { return step([n, v]); }; }
87
- function step(op) {
88
- if (f) throw new TypeError("Generator is already executing.");
89
- while (_) try {
90
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
91
- if (y = 0, t) op = [op[0] & 2, t.value];
92
- switch (op[0]) {
93
- case 0: case 1: t = op; break;
94
- case 4: _.label++; return { value: op[1], done: false };
95
- case 5: _.label++; y = op[1]; op = [0]; continue;
96
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
97
- default:
98
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
99
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
100
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
101
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
102
- if (t[2]) _.ops.pop();
103
- _.trys.pop(); continue;
104
- }
105
- op = body.call(thisArg, _);
106
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
107
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
108
- }
109
- }
110
-
111
- function __exportStar(m, exports) {
112
- for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
113
- }
114
-
115
- function __values(o) {
116
- var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
117
- if (m) return m.call(o);
118
- return {
119
- next: function () {
120
- if (o && i >= o.length) o = void 0;
121
- return { value: o && o[i++], done: !o };
122
- }
123
- };
124
- }
125
-
126
- function __read(o, n) {
127
- var m = typeof Symbol === "function" && o[Symbol.iterator];
128
- if (!m) return o;
129
- var i = m.call(o), r, ar = [], e;
130
- try {
131
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
132
- }
133
- catch (error) { e = { error: error }; }
134
- finally {
135
- try {
136
- if (r && !r.done && (m = i["return"])) m.call(i);
137
- }
138
- finally { if (e) throw e.error; }
139
- }
140
- return ar;
141
- }
142
-
143
- function __spread() {
144
- for (var ar = [], i = 0; i < arguments.length; i++)
145
- ar = ar.concat(__read(arguments[i]));
146
- return ar;
147
- }
148
-
149
- function __spreadArrays() {
150
- for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
151
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
152
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
153
- r[k] = a[j];
154
- return r;
155
- };
156
-
157
- function __await(v) {
158
- return this instanceof __await ? (this.v = v, this) : new __await(v);
159
- }
160
-
161
- function __asyncGenerator(thisArg, _arguments, generator) {
162
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
163
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
164
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
165
- function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
166
- function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
167
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
168
- function fulfill(value) { resume("next", value); }
169
- function reject(value) { resume("throw", value); }
170
- function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
171
- }
172
-
173
- function __asyncDelegator(o) {
174
- var i, p;
175
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
176
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
177
- }
178
-
179
- function __asyncValues(o) {
180
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
181
- var m = o[Symbol.asyncIterator], i;
182
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
183
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
184
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
185
- }
186
-
187
- function __makeTemplateObject(cooked, raw) {
188
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
189
- return cooked;
190
- };
191
-
192
- function __importStar(mod) {
193
- if (mod && mod.__esModule) return mod;
194
- var result = {};
195
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
196
- result.default = mod;
197
- return result;
198
- }
199
-
200
- function __importDefault(mod) {
201
- return (mod && mod.__esModule) ? mod : { default: mod };
202
- }
203
-
204
- /**
205
- * @fileoverview added by tsickle
206
- * Generated from: base-chart.component.ts
207
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
208
- */
209
- /**
210
- * Wrapper around `BaseChart` in carbon charts library
211
- *
212
- * Most functions just call their equivalent from the chart library.
213
- */
214
- var BaseChart = /** @class */ (function () {
215
- function BaseChart(elementRef) {
216
- this.elementRef = elementRef;
217
- }
218
- Object.defineProperty(BaseChart.prototype, "data", {
219
- get: /**
220
- * @return {?}
221
- */
222
- function () {
223
- return this._data;
224
- },
225
- /**
226
- * Data passed to charts library for displaying
227
- */
228
- set: /**
229
- * Data passed to charts library for displaying
230
- * @param {?} newData
231
- * @return {?}
232
- */
233
- function (newData) {
234
- // If data already exists, that means the chart has been initialized
235
- /** @type {?} */
236
- var dataExistsAlready = this._data !== null && this._data !== undefined;
237
- this._data = newData;
238
- if (dataExistsAlready) {
239
- this.chart.model.setData(newData);
240
- }
241
- },
242
- enumerable: true,
243
- configurable: true
244
- });
245
- Object.defineProperty(BaseChart.prototype, "options", {
246
- get: /**
247
- * @return {?}
248
- */
249
- function () {
250
- return this._options;
251
- },
252
- /**
253
- * Options passed to charts library
254
- */
255
- set: /**
256
- * Options passed to charts library
257
- * @param {?} newOptions
258
- * @return {?}
259
- */
260
- function (newOptions) {
261
- // If data already exists, that means the chart has been initialized
262
- /** @type {?} */
263
- var optionsExistAlready = this._options !== null && this._options !== undefined;
264
- this._options = newOptions;
265
- if (optionsExistAlready) {
266
- this.chart.model.setOptions(newOptions);
267
- }
268
- },
269
- enumerable: true,
270
- configurable: true
271
- });
272
- /**
273
- * @return {?}
274
- */
275
- BaseChart.prototype.ngOnInit = /**
276
- * @return {?}
277
- */
278
- function () {
279
- // Width prop is mandatory for the wrappers
280
- if (this.width) {
281
- this.options.width = this.width;
282
- }
283
- // Height prop is mandatory for the wrappers
284
- if (this.height) {
285
- this.options.height = this.height;
286
- }
287
- };
288
- /**
289
- * Runs after view init to create a chart, attach it to `chartRef` and draw it.
290
- */
291
- /**
292
- * Runs after view init to create a chart, attach it to `chartRef` and draw it.
293
- * @return {?}
294
- */
295
- BaseChart.prototype.ngAfterViewInit = /**
296
- * Runs after view init to create a chart, attach it to `chartRef` and draw it.
297
- * @return {?}
298
- */
299
- function () {
300
- console.log("You need to implement your own `ngAfterViewInit()` function");
301
- };
302
- BaseChart.decorators = [
303
- { type: core.Component, args: [{
304
- selector: "ibm-base-chart",
305
- template: ""
306
- }] }
307
- ];
308
- /** @nocollapse */
309
- BaseChart.ctorParameters = function () { return [
310
- { type: core.ElementRef }
311
- ]; };
312
- BaseChart.propDecorators = {
313
- data: [{ type: core.Input }],
314
- options: [{ type: core.Input }],
315
- width: [{ type: core.Input }],
316
- height: [{ type: core.Input }],
317
- chartRef: [{ type: core.ViewChild, args: ["nChart",] }]
318
- };
319
- return BaseChart;
320
- }());
321
- if (false) {
322
- /**
323
- * Chart width
324
- * @type {?}
325
- */
326
- BaseChart.prototype.width;
327
- /**
328
- * Chart height
329
- * @type {?}
330
- */
331
- BaseChart.prototype.height;
332
- /**
333
- * Chart container element ref
334
- * @type {?}
335
- */
336
- BaseChart.prototype.chartRef;
337
- /**
338
- * Chart object instance
339
- *
340
- * You can use this to do whatever you would normally do with a chart if you used
341
- * charts library directly.
342
- * @type {?}
343
- */
344
- BaseChart.prototype.chart;
345
- /**
346
- * @type {?}
347
- * @private
348
- */
349
- BaseChart.prototype._data;
350
- /**
351
- * @type {?}
352
- * @private
353
- */
354
- BaseChart.prototype._options;
355
- /**
356
- * @type {?}
357
- * @protected
358
- */
359
- BaseChart.prototype.elementRef;
360
- }
361
-
362
- /**
363
- * @fileoverview added by tsickle
364
- * Generated from: alluvial-chart.component.ts
365
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
366
- */
367
- /**
368
- * Wrapper around `Alluvial` in carbon charts library
369
- *
370
- * Most functions just call their equivalent from the chart library.
371
- */
372
- var AlluvialChartComponent = /** @class */ (function (_super) {
373
- __extends(AlluvialChartComponent, _super);
374
- function AlluvialChartComponent() {
375
- return _super !== null && _super.apply(this, arguments) || this;
376
- }
377
- /**
378
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
379
- */
380
- /**
381
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
382
- * @return {?}
383
- */
384
- AlluvialChartComponent.prototype.ngAfterViewInit = /**
385
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
386
- * @return {?}
387
- */
388
- function () {
389
- this.chart = new charts.AlluvialChart(this.elementRef.nativeElement, {
390
- data: this.data,
391
- options: this.options
392
- });
393
- Object.assign(this, this.chart);
394
- };
395
- AlluvialChartComponent.decorators = [
396
- { type: core.Component, args: [{
397
- selector: "ibm-alluvial-chart",
398
- template: ""
399
- }] }
400
- ];
401
- return AlluvialChartComponent;
402
- }(BaseChart));
403
-
404
- /**
405
- * @fileoverview added by tsickle
406
- * Generated from: area-chart.component.ts
407
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
408
- */
409
- /**
410
- * Wrapper around `AreaChart` in carbon charts library
411
- *
412
- * Most functions just call their equivalent from the chart library.
413
- */
414
- var AreaChartComponent = /** @class */ (function (_super) {
415
- __extends(AreaChartComponent, _super);
416
- function AreaChartComponent() {
417
- return _super !== null && _super.apply(this, arguments) || this;
418
- }
419
- /**
420
- * Runs after view init to create a chart, attach it to `chartRef` and draw it.
421
- */
422
- /**
423
- * Runs after view init to create a chart, attach it to `chartRef` and draw it.
424
- * @return {?}
425
- */
426
- AreaChartComponent.prototype.ngAfterViewInit = /**
427
- * Runs after view init to create a chart, attach it to `chartRef` and draw it.
428
- * @return {?}
429
- */
430
- function () {
431
- this.chart = new charts.AreaChart(this.chartRef.nativeElement, {
432
- data: this.data,
433
- options: this.options
434
- });
435
- Object.assign(this, this.chart);
436
- };
437
- AreaChartComponent.decorators = [
438
- { type: core.Component, args: [{
439
- selector: "ibm-area-chart",
440
- template: "\n\t\t<div #nChart class=\"ibm-chart-container\">\n\t\t</div>\n\t"
441
- }] }
442
- ];
443
- return AreaChartComponent;
444
- }(BaseChart));
445
-
446
- /**
447
- * @fileoverview added by tsickle
448
- * Generated from: area-chart-stacked.component.ts
449
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
450
- */
451
- /**
452
- * Wrapper around `StackedAreaChart` in carbon charts library
453
- *
454
- * Most functions just call their equivalent from the chart library.
455
- */
456
- var StackedAreaChartComponent = /** @class */ (function (_super) {
457
- __extends(StackedAreaChartComponent, _super);
458
- function StackedAreaChartComponent() {
459
- return _super !== null && _super.apply(this, arguments) || this;
460
- }
461
- /**
462
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
463
- */
464
- /**
465
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
466
- * @return {?}
467
- */
468
- StackedAreaChartComponent.prototype.ngAfterViewInit = /**
469
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
470
- * @return {?}
471
- */
472
- function () {
473
- this.chart = new charts.StackedAreaChart(this.elementRef.nativeElement, {
474
- data: this.data,
475
- options: this.options
476
- });
477
- Object.assign(this, this.chart);
478
- };
479
- StackedAreaChartComponent.decorators = [
480
- { type: core.Component, args: [{
481
- selector: "ibm-stacked-area-chart",
482
- template: ""
483
- }] }
484
- ];
485
- return StackedAreaChartComponent;
486
- }(BaseChart));
487
-
488
- /**
489
- * @fileoverview added by tsickle
490
- * Generated from: bar-chart-simple.component.ts
491
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
492
- */
493
- /**
494
- * Wrapper around `SimpleBarChart` in carbon charts library
495
- *
496
- * Most functions just call their equivalent from the chart library.
497
- */
498
- var SimpleBarChartComponent = /** @class */ (function (_super) {
499
- __extends(SimpleBarChartComponent, _super);
500
- function SimpleBarChartComponent() {
501
- return _super !== null && _super.apply(this, arguments) || this;
502
- }
503
- /**
504
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
505
- */
506
- /**
507
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
508
- * @return {?}
509
- */
510
- SimpleBarChartComponent.prototype.ngAfterViewInit = /**
511
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
512
- * @return {?}
513
- */
514
- function () {
515
- this.chart = new charts.SimpleBarChart(this.elementRef.nativeElement, {
516
- data: this.data,
517
- options: this.options
518
- });
519
- Object.assign(this, this.chart);
520
- };
521
- SimpleBarChartComponent.decorators = [
522
- { type: core.Component, args: [{
523
- selector: "ibm-simple-bar-chart",
524
- template: ""
525
- }] }
526
- ];
527
- return SimpleBarChartComponent;
528
- }(BaseChart));
529
-
530
- /**
531
- * @fileoverview added by tsickle
532
- * Generated from: bar-chart-grouped.component.ts
533
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
534
- */
535
- /**
536
- * Wrapper around `GroupedBarChart` in carbon charts library
537
- *
538
- * Most functions just call their equivalent from the chart library.
539
- */
540
- var GroupedBarChartComponent = /** @class */ (function (_super) {
541
- __extends(GroupedBarChartComponent, _super);
542
- function GroupedBarChartComponent() {
543
- return _super !== null && _super.apply(this, arguments) || this;
544
- }
545
- /**
546
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
547
- */
548
- /**
549
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
550
- * @return {?}
551
- */
552
- GroupedBarChartComponent.prototype.ngAfterViewInit = /**
553
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
554
- * @return {?}
555
- */
556
- function () {
557
- this.chart = new charts.GroupedBarChart(this.elementRef.nativeElement, {
558
- data: this.data,
559
- options: this.options
560
- });
561
- Object.assign(this, this.chart);
562
- };
563
- GroupedBarChartComponent.decorators = [
564
- { type: core.Component, args: [{
565
- selector: "ibm-grouped-bar-chart",
566
- template: ""
567
- }] }
568
- ];
569
- return GroupedBarChartComponent;
570
- }(BaseChart));
571
-
572
- /**
573
- * @fileoverview added by tsickle
574
- * Generated from: bar-chart-stacked.component.ts
575
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
576
- */
577
- /**
578
- * Wrapper around `StackedBarChart` in carbon charts library
579
- *
580
- * Most functions just call their equivalent from the chart library.
581
- */
582
- var StackedBarChartComponent = /** @class */ (function (_super) {
583
- __extends(StackedBarChartComponent, _super);
584
- function StackedBarChartComponent() {
585
- return _super !== null && _super.apply(this, arguments) || this;
586
- }
587
- /**
588
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
589
- */
590
- /**
591
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
592
- * @return {?}
593
- */
594
- StackedBarChartComponent.prototype.ngAfterViewInit = /**
595
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
596
- * @return {?}
597
- */
598
- function () {
599
- this.chart = new charts.StackedBarChart(this.elementRef.nativeElement, {
600
- data: this.data,
601
- options: this.options
602
- });
603
- Object.assign(this, this.chart);
604
- };
605
- StackedBarChartComponent.decorators = [
606
- { type: core.Component, args: [{
607
- selector: "ibm-stacked-bar-chart",
608
- template: ""
609
- }] }
610
- ];
611
- return StackedBarChartComponent;
612
- }(BaseChart));
613
-
614
- /**
615
- * @fileoverview added by tsickle
616
- * Generated from: boxplot-chart.component.ts
617
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
618
- */
619
- /**
620
- * Wrapper around `BoxplotChart` in carbon charts library
621
- *
622
- * Most functions just call their equivalent from the chart library.
623
- */
624
- var BoxplotChartComponent = /** @class */ (function (_super) {
625
- __extends(BoxplotChartComponent, _super);
626
- function BoxplotChartComponent() {
627
- return _super !== null && _super.apply(this, arguments) || this;
628
- }
629
- /**
630
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
631
- */
632
- /**
633
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
634
- * @return {?}
635
- */
636
- BoxplotChartComponent.prototype.ngAfterViewInit = /**
637
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
638
- * @return {?}
639
- */
640
- function () {
641
- this.chart = new charts.BoxplotChart(this.elementRef.nativeElement, {
642
- data: this.data,
643
- options: this.options
644
- });
645
- Object.assign(this, this.chart);
646
- };
647
- BoxplotChartComponent.decorators = [
648
- { type: core.Component, args: [{
649
- selector: "ibm-boxplot-chart",
650
- template: ""
651
- }] }
652
- ];
653
- return BoxplotChartComponent;
654
- }(BaseChart));
655
-
656
- /**
657
- * @fileoverview added by tsickle
658
- * Generated from: bubble-chart.component.ts
659
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
660
- */
661
- /**
662
- * Wrapper around `BubbleChart` in carbon charts library
663
- *
664
- * Most functions just call their equivalent from the chart library.
665
- */
666
- var BubbleChartComponent = /** @class */ (function (_super) {
667
- __extends(BubbleChartComponent, _super);
668
- function BubbleChartComponent() {
669
- return _super !== null && _super.apply(this, arguments) || this;
670
- }
671
- /**
672
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
673
- */
674
- /**
675
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
676
- * @return {?}
677
- */
678
- BubbleChartComponent.prototype.ngAfterViewInit = /**
679
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
680
- * @return {?}
681
- */
682
- function () {
683
- this.chart = new charts.BubbleChart(this.elementRef.nativeElement, {
684
- data: this.data,
685
- options: this.options
686
- });
687
- Object.assign(this, this.chart);
688
- };
689
- BubbleChartComponent.decorators = [
690
- { type: core.Component, args: [{
691
- selector: "ibm-bubble-chart",
692
- template: ""
693
- }] }
694
- ];
695
- return BubbleChartComponent;
696
- }(BaseChart));
697
-
698
- /**
699
- * @fileoverview added by tsickle
700
- * Generated from: bullet-chart.component.ts
701
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
702
- */
703
- /**
704
- * Wrapper around `BulletChart` in carbon charts library
705
- *
706
- * Most functions just call their equivalent from the chart library.
707
- */
708
- var BulletChartComponent = /** @class */ (function (_super) {
709
- __extends(BulletChartComponent, _super);
710
- function BulletChartComponent() {
711
- return _super !== null && _super.apply(this, arguments) || this;
712
- }
713
- /**
714
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
715
- */
716
- /**
717
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
718
- * @return {?}
719
- */
720
- BulletChartComponent.prototype.ngAfterViewInit = /**
721
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
722
- * @return {?}
723
- */
724
- function () {
725
- this.chart = new charts.BulletChart(this.elementRef.nativeElement, {
726
- data: this.data,
727
- options: this.options
728
- });
729
- Object.assign(this, this.chart);
730
- };
731
- BulletChartComponent.decorators = [
732
- { type: core.Component, args: [{
733
- selector: "ibm-bullet-chart",
734
- template: ""
735
- }] }
736
- ];
737
- return BulletChartComponent;
738
- }(BaseChart));
739
-
740
- /**
741
- * @fileoverview added by tsickle
742
- * Generated from: donut-chart.component.ts
743
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
744
- */
745
- /**
746
- * Wrapper around `DonutChart` in carbon charts library
747
- *
748
- * Most functions just call their equivalent from the chart library.
749
- */
750
- var DonutChartComponent = /** @class */ (function (_super) {
751
- __extends(DonutChartComponent, _super);
752
- function DonutChartComponent() {
753
- return _super !== null && _super.apply(this, arguments) || this;
754
- }
755
- /**
756
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
757
- */
758
- /**
759
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
760
- * @return {?}
761
- */
762
- DonutChartComponent.prototype.ngAfterViewInit = /**
763
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
764
- * @return {?}
765
- */
766
- function () {
767
- this.chart = new charts.DonutChart(this.elementRef.nativeElement, {
768
- data: this.data,
769
- options: this.options
770
- });
771
- Object.assign(this, this.chart);
772
- };
773
- DonutChartComponent.decorators = [
774
- { type: core.Component, args: [{
775
- selector: "ibm-donut-chart",
776
- template: ""
777
- }] }
778
- ];
779
- return DonutChartComponent;
780
- }(BaseChart));
781
-
782
- /**
783
- * @fileoverview added by tsickle
784
- * Generated from: gauge-chart.component.ts
785
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
786
- */
787
- /**
788
- * Wrapper around `GaugeChart` in carbon charts library
789
- *
790
- * Most functions just call their equivalent from the chart library.
791
- */
792
- var GaugeChartComponent = /** @class */ (function (_super) {
793
- __extends(GaugeChartComponent, _super);
794
- function GaugeChartComponent() {
795
- return _super !== null && _super.apply(this, arguments) || this;
796
- }
797
- /**
798
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
799
- */
800
- /**
801
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
802
- * @return {?}
803
- */
804
- GaugeChartComponent.prototype.ngAfterViewInit = /**
805
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
806
- * @return {?}
807
- */
808
- function () {
809
- this.chart = new charts.GaugeChart(this.elementRef.nativeElement, {
810
- data: this.data,
811
- options: this.options
812
- });
813
- Object.assign(this, this.chart);
814
- };
815
- GaugeChartComponent.decorators = [
816
- { type: core.Component, args: [{
817
- selector: "ibm-gauge-chart",
818
- template: ""
819
- }] }
820
- ];
821
- return GaugeChartComponent;
822
- }(BaseChart));
823
-
824
- /**
825
- * @fileoverview added by tsickle
826
- * Generated from: histogram-chart.component.ts
827
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
828
- */
829
- /**
830
- * Wrapper around `HistogramChart` in carbon charts library
831
- *
832
- * Most functions just call their equivalent from the chart library.
833
- */
834
- var HistogramChartComponent = /** @class */ (function (_super) {
835
- __extends(HistogramChartComponent, _super);
836
- function HistogramChartComponent() {
837
- return _super !== null && _super.apply(this, arguments) || this;
838
- }
839
- /**
840
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
841
- */
842
- /**
843
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
844
- * @return {?}
845
- */
846
- HistogramChartComponent.prototype.ngAfterViewInit = /**
847
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
848
- * @return {?}
849
- */
850
- function () {
851
- this.chart = new charts.HistogramChart(this.elementRef.nativeElement, {
852
- data: this.data,
853
- options: this.options
854
- });
855
- Object.assign(this, this.chart);
856
- };
857
- HistogramChartComponent.decorators = [
858
- { type: core.Component, args: [{
859
- selector: "ibm-histogram-chart",
860
- template: ""
861
- }] }
862
- ];
863
- return HistogramChartComponent;
864
- }(BaseChart));
865
-
866
- /**
867
- * @fileoverview added by tsickle
868
- * Generated from: line-chart.component.ts
869
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
870
- */
871
- /**
872
- * Wrapper around `LineChart` in carbon charts library
873
- *
874
- * Most functions just call their equivalent from the chart library.
875
- */
876
- var LineChartComponent = /** @class */ (function (_super) {
877
- __extends(LineChartComponent, _super);
878
- function LineChartComponent() {
879
- return _super !== null && _super.apply(this, arguments) || this;
880
- }
881
- /**
882
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
883
- */
884
- /**
885
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
886
- * @return {?}
887
- */
888
- LineChartComponent.prototype.ngAfterViewInit = /**
889
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
890
- * @return {?}
891
- */
892
- function () {
893
- this.chart = new charts.LineChart(this.elementRef.nativeElement, {
894
- data: this.data,
895
- options: this.options
896
- });
897
- Object.assign(this, this.chart);
898
- };
899
- LineChartComponent.decorators = [
900
- { type: core.Component, args: [{
901
- selector: "ibm-line-chart",
902
- template: ""
903
- }] }
904
- ];
905
- return LineChartComponent;
906
- }(BaseChart));
907
-
908
- /**
909
- * @fileoverview added by tsickle
910
- * Generated from: lollipop-chart.component.ts
911
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
912
- */
913
- /**
914
- * Wrapper around `LollipopChart` in carbon charts library
915
- *
916
- * Most functions just call their equivalent from the chart library.
917
- */
918
- var LollipopChartComponent = /** @class */ (function (_super) {
919
- __extends(LollipopChartComponent, _super);
920
- function LollipopChartComponent() {
921
- return _super !== null && _super.apply(this, arguments) || this;
922
- }
923
- /**
924
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
925
- */
926
- /**
927
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
928
- * @return {?}
929
- */
930
- LollipopChartComponent.prototype.ngAfterViewInit = /**
931
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
932
- * @return {?}
933
- */
934
- function () {
935
- this.chart = new charts.LollipopChart(this.elementRef.nativeElement, {
936
- data: this.data,
937
- options: this.options
938
- });
939
- Object.assign(this, this.chart);
940
- };
941
- LollipopChartComponent.decorators = [
942
- { type: core.Component, args: [{
943
- selector: "ibm-lollipop-chart",
944
- template: ""
945
- }] }
946
- ];
947
- return LollipopChartComponent;
948
- }(BaseChart));
949
-
950
- /**
951
- * @fileoverview added by tsickle
952
- * Generated from: pie-chart.component.ts
953
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
954
- */
955
- /**
956
- * Wrapper around `PieChart` in carbon charts library
957
- *
958
- * Most functions just call their equivalent from the chart library.
959
- */
960
- var PieChartComponent = /** @class */ (function (_super) {
961
- __extends(PieChartComponent, _super);
962
- function PieChartComponent() {
963
- return _super !== null && _super.apply(this, arguments) || this;
964
- }
965
- /**
966
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
967
- */
968
- /**
969
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
970
- * @return {?}
971
- */
972
- PieChartComponent.prototype.ngAfterViewInit = /**
973
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
974
- * @return {?}
975
- */
976
- function () {
977
- this.chart = new charts.PieChart(this.elementRef.nativeElement, {
978
- data: this.data,
979
- options: this.options
980
- });
981
- Object.assign(this, this.chart);
982
- };
983
- PieChartComponent.decorators = [
984
- { type: core.Component, args: [{
985
- selector: "ibm-pie-chart",
986
- template: ""
987
- }] }
988
- ];
989
- return PieChartComponent;
990
- }(BaseChart));
991
-
992
- /**
993
- * @fileoverview added by tsickle
994
- * Generated from: scatter-chart.component.ts
995
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
996
- */
997
- /**
998
- * Wrapper around `ScatterChart` in carbon charts library
999
- *
1000
- * Most functions just call their equivalent from the chart library.
1001
- */
1002
- var ScatterChartComponent = /** @class */ (function (_super) {
1003
- __extends(ScatterChartComponent, _super);
1004
- function ScatterChartComponent() {
1005
- return _super !== null && _super.apply(this, arguments) || this;
1006
- }
1007
- /**
1008
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
1009
- */
1010
- /**
1011
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
1012
- * @return {?}
1013
- */
1014
- ScatterChartComponent.prototype.ngAfterViewInit = /**
1015
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
1016
- * @return {?}
1017
- */
1018
- function () {
1019
- this.chart = new charts.ScatterChart(this.elementRef.nativeElement, {
1020
- data: this.data,
1021
- options: this.options
1022
- });
1023
- Object.assign(this, this.chart);
1024
- };
1025
- ScatterChartComponent.decorators = [
1026
- { type: core.Component, args: [{
1027
- selector: "ibm-scatter-chart",
1028
- template: ""
1029
- }] }
1030
- ];
1031
- return ScatterChartComponent;
1032
- }(BaseChart));
1033
-
1034
- /**
1035
- * @fileoverview added by tsickle
1036
- * Generated from: meter-chart.component.ts
1037
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1038
- */
1039
- /**
1040
- * Wrapper around `MeterChart` in carbon charts library
1041
- *
1042
- * Most functions just call their equivalent from the chart library.
1043
- */
1044
- var MeterChartComponent = /** @class */ (function (_super) {
1045
- __extends(MeterChartComponent, _super);
1046
- function MeterChartComponent() {
1047
- return _super !== null && _super.apply(this, arguments) || this;
1048
- }
1049
- /**
1050
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
1051
- */
1052
- /**
1053
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
1054
- * @return {?}
1055
- */
1056
- MeterChartComponent.prototype.ngAfterViewInit = /**
1057
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
1058
- * @return {?}
1059
- */
1060
- function () {
1061
- this.chart = new charts.MeterChart(this.elementRef.nativeElement, {
1062
- data: this.data,
1063
- options: this.options
1064
- });
1065
- Object.assign(this, this.chart);
1066
- };
1067
- MeterChartComponent.decorators = [
1068
- { type: core.Component, args: [{
1069
- selector: "ibm-meter-chart",
1070
- template: ""
1071
- }] }
1072
- ];
1073
- return MeterChartComponent;
1074
- }(BaseChart));
1075
-
1076
- /**
1077
- * @fileoverview added by tsickle
1078
- * Generated from: radar-chart.component.ts
1079
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1080
- */
1081
- /**
1082
- * Wrapper around `RadarChart` in carbon charts library
1083
- *
1084
- * Most functions just call their equivalent from the chart library.
1085
- */
1086
- var RadarChartComponent = /** @class */ (function (_super) {
1087
- __extends(RadarChartComponent, _super);
1088
- function RadarChartComponent() {
1089
- return _super !== null && _super.apply(this, arguments) || this;
1090
- }
1091
- /**
1092
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
1093
- */
1094
- /**
1095
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
1096
- * @return {?}
1097
- */
1098
- RadarChartComponent.prototype.ngAfterViewInit = /**
1099
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
1100
- * @return {?}
1101
- */
1102
- function () {
1103
- this.chart = new charts.RadarChart(this.elementRef.nativeElement, {
1104
- data: this.data,
1105
- options: this.options
1106
- });
1107
- Object.assign(this, this.chart);
1108
- };
1109
- RadarChartComponent.decorators = [
1110
- { type: core.Component, args: [{
1111
- selector: "ibm-radar-chart",
1112
- template: ""
1113
- }] }
1114
- ];
1115
- return RadarChartComponent;
1116
- }(BaseChart));
1117
-
1118
- /**
1119
- * @fileoverview added by tsickle
1120
- * Generated from: combo-chart.component.ts
1121
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1122
- */
1123
- /**
1124
- * Wrapper around `ComboChart` in carbon charts library
1125
- *
1126
- * Most functions just call their equivalent from the chart library.
1127
- */
1128
- var ComboChartComponent = /** @class */ (function (_super) {
1129
- __extends(ComboChartComponent, _super);
1130
- function ComboChartComponent() {
1131
- return _super !== null && _super.apply(this, arguments) || this;
1132
- }
1133
- /**
1134
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
1135
- */
1136
- /**
1137
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
1138
- * @return {?}
1139
- */
1140
- ComboChartComponent.prototype.ngAfterViewInit = /**
1141
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
1142
- * @return {?}
1143
- */
1144
- function () {
1145
- this.chart = new charts.ComboChart(this.elementRef.nativeElement, {
1146
- data: this.data,
1147
- options: this.options
1148
- });
1149
- Object.assign(this, this.chart);
1150
- };
1151
- ComboChartComponent.decorators = [
1152
- { type: core.Component, args: [{
1153
- selector: "ibm-combo-chart",
1154
- template: ""
1155
- }] }
1156
- ];
1157
- return ComboChartComponent;
1158
- }(BaseChart));
1159
-
1160
- /**
1161
- * @fileoverview added by tsickle
1162
- * Generated from: tree-chart.component.ts
1163
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1164
- */
1165
- /**
1166
- * Wrapper around `TreeChart` in carbon charts library
1167
- *
1168
- * Most functions just call their equivalent from the chart library.
1169
- */
1170
- var TreeChartComponent = /** @class */ (function (_super) {
1171
- __extends(TreeChartComponent, _super);
1172
- function TreeChartComponent() {
1173
- return _super !== null && _super.apply(this, arguments) || this;
1174
- }
1175
- /**
1176
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
1177
- */
1178
- /**
1179
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
1180
- * @return {?}
1181
- */
1182
- TreeChartComponent.prototype.ngAfterViewInit = /**
1183
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
1184
- * @return {?}
1185
- */
1186
- function () {
1187
- this.chart = new charts.TreeChart(this.elementRef.nativeElement, {
1188
- data: this.data,
1189
- options: this.options
1190
- });
1191
- Object.assign(this, this.chart);
1192
- };
1193
- TreeChartComponent.decorators = [
1194
- { type: core.Component, args: [{
1195
- selector: "ibm-tree-chart",
1196
- template: ""
1197
- }] }
1198
- ];
1199
- return TreeChartComponent;
1200
- }(BaseChart));
1201
-
1202
- /**
1203
- * @fileoverview added by tsickle
1204
- * Generated from: treemap-chart.component.ts
1205
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1206
- */
1207
- /**
1208
- * Wrapper around `TreemapChart` in carbon charts library
1209
- *
1210
- * Most functions just call their equivalent from the chart library.
1211
- */
1212
- var TreemapChartComponent = /** @class */ (function (_super) {
1213
- __extends(TreemapChartComponent, _super);
1214
- function TreemapChartComponent() {
1215
- return _super !== null && _super.apply(this, arguments) || this;
1216
- }
1217
- /**
1218
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
1219
- */
1220
- /**
1221
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
1222
- * @return {?}
1223
- */
1224
- TreemapChartComponent.prototype.ngAfterViewInit = /**
1225
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
1226
- * @return {?}
1227
- */
1228
- function () {
1229
- this.chart = new charts.TreemapChart(this.elementRef.nativeElement, {
1230
- data: this.data,
1231
- options: this.options
1232
- });
1233
- Object.assign(this, this.chart);
1234
- };
1235
- TreemapChartComponent.decorators = [
1236
- { type: core.Component, args: [{
1237
- selector: "ibm-treemap-chart",
1238
- template: ""
1239
- }] }
1240
- ];
1241
- return TreemapChartComponent;
1242
- }(BaseChart));
1243
-
1244
- /**
1245
- * @fileoverview added by tsickle
1246
- * Generated from: circle-pack-chart.component.ts
1247
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1248
- */
1249
- /**
1250
- * Wrapper around `BubbleChart` in carbon charts library
1251
- *
1252
- * Most functions just call their equivalent from the chart library.
1253
- */
1254
- var CirclePackChartComponent = /** @class */ (function (_super) {
1255
- __extends(CirclePackChartComponent, _super);
1256
- function CirclePackChartComponent() {
1257
- return _super !== null && _super.apply(this, arguments) || this;
1258
- }
1259
- /**
1260
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
1261
- */
1262
- /**
1263
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
1264
- * @return {?}
1265
- */
1266
- CirclePackChartComponent.prototype.ngAfterViewInit = /**
1267
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
1268
- * @return {?}
1269
- */
1270
- function () {
1271
- this.chart = new charts.CirclePackChart(this.elementRef.nativeElement, {
1272
- data: this.data,
1273
- options: this.options
1274
- });
1275
- Object.assign(this, this.chart);
1276
- };
1277
- CirclePackChartComponent.decorators = [
1278
- { type: core.Component, args: [{
1279
- selector: "ibm-circle-pack-chart",
1280
- template: ""
1281
- }] }
1282
- ];
1283
- return CirclePackChartComponent;
1284
- }(BaseChart));
1285
-
1286
- /**
1287
- * @fileoverview added by tsickle
1288
- * Generated from: wordcloud-chart.component.ts
1289
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1290
- */
1291
- /**
1292
- * Wrapper around `WordCloudChart` in carbon charts library
1293
- *
1294
- * Most functions just call their equivalent from the chart library.
1295
- */
1296
- var WordCloudChartComponent = /** @class */ (function (_super) {
1297
- __extends(WordCloudChartComponent, _super);
1298
- function WordCloudChartComponent() {
1299
- return _super !== null && _super.apply(this, arguments) || this;
1300
- }
1301
- /**
1302
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
1303
- */
1304
- /**
1305
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
1306
- * @return {?}
1307
- */
1308
- WordCloudChartComponent.prototype.ngAfterViewInit = /**
1309
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
1310
- * @return {?}
1311
- */
1312
- function () {
1313
- this.chart = new charts.WordCloudChart(this.elementRef.nativeElement, {
1314
- data: this.data,
1315
- options: this.options
1316
- });
1317
- Object.assign(this, this.chart);
1318
- };
1319
- WordCloudChartComponent.decorators = [
1320
- { type: core.Component, args: [{
1321
- selector: "ibm-wordcloud-chart",
1322
- template: ""
1323
- }] }
1324
- ];
1325
- return WordCloudChartComponent;
1326
- }(BaseChart));
1327
-
1328
- /**
1329
- * @fileoverview added by tsickle
1330
- * Generated from: heatmap-chart.component.ts
1331
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1332
- */
1333
- /**
1334
- * Wrapper around `Heatmap` in carbon charts library
1335
- *
1336
- * Most functions just call their equivalent from the chart library.
1337
- */
1338
- var HeatmapChartComponent = /** @class */ (function (_super) {
1339
- __extends(HeatmapChartComponent, _super);
1340
- function HeatmapChartComponent() {
1341
- return _super !== null && _super.apply(this, arguments) || this;
1342
- }
1343
- /**
1344
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
1345
- */
1346
- /**
1347
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
1348
- * @return {?}
1349
- */
1350
- HeatmapChartComponent.prototype.ngAfterViewInit = /**
1351
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
1352
- * @return {?}
1353
- */
1354
- function () {
1355
- this.chart = new charts.HeatmapChart(this.elementRef.nativeElement, {
1356
- data: this.data,
1357
- options: this.options
1358
- });
1359
- Object.assign(this, this.chart);
1360
- };
1361
- HeatmapChartComponent.decorators = [
1362
- { type: core.Component, args: [{
1363
- selector: "ibm-heatmap-chart",
1364
- template: ""
1365
- }] }
1366
- ];
1367
- return HeatmapChartComponent;
1368
- }(BaseChart));
1369
-
1370
- /**
1371
- * @fileoverview added by tsickle
1372
- * Generated from: charts.module.ts
1373
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1374
- */
1375
- var ChartsModule = /** @class */ (function () {
1376
- function ChartsModule() {
1377
- }
1378
- ChartsModule.decorators = [
1379
- { type: core.NgModule, args: [{
1380
- imports: [common.CommonModule],
1381
- declarations: [
1382
- BaseChart,
1383
- AlluvialChartComponent,
1384
- AreaChartComponent,
1385
- StackedAreaChartComponent,
1386
- SimpleBarChartComponent,
1387
- GroupedBarChartComponent,
1388
- StackedBarChartComponent,
1389
- BoxplotChartComponent,
1390
- BubbleChartComponent,
1391
- BulletChartComponent,
1392
- DonutChartComponent,
1393
- GaugeChartComponent,
1394
- HeatmapChartComponent,
1395
- HistogramChartComponent,
1396
- LineChartComponent,
1397
- LollipopChartComponent,
1398
- PieChartComponent,
1399
- ScatterChartComponent,
1400
- MeterChartComponent,
1401
- RadarChartComponent,
1402
- ComboChartComponent,
1403
- TreeChartComponent,
1404
- TreemapChartComponent,
1405
- CirclePackChartComponent,
1406
- WordCloudChartComponent,
1407
- ],
1408
- exports: [
1409
- BaseChart,
1410
- AlluvialChartComponent,
1411
- AreaChartComponent,
1412
- StackedAreaChartComponent,
1413
- SimpleBarChartComponent,
1414
- GroupedBarChartComponent,
1415
- StackedBarChartComponent,
1416
- BoxplotChartComponent,
1417
- BubbleChartComponent,
1418
- BulletChartComponent,
1419
- DonutChartComponent,
1420
- GaugeChartComponent,
1421
- HeatmapChartComponent,
1422
- HistogramChartComponent,
1423
- LineChartComponent,
1424
- LollipopChartComponent,
1425
- PieChartComponent,
1426
- ScatterChartComponent,
1427
- MeterChartComponent,
1428
- RadarChartComponent,
1429
- ComboChartComponent,
1430
- TreeChartComponent,
1431
- TreemapChartComponent,
1432
- CirclePackChartComponent,
1433
- WordCloudChartComponent
1434
- ],
1435
- },] }
1436
- ];
1437
- return ChartsModule;
1438
- }());
1439
-
1440
- /**
1441
- * @fileoverview added by tsickle
1442
- * Generated from: diagrams/configs.ts
1443
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1444
- */
1445
- /** @type {?} */
1446
- var carbonPrefix = 'cds';
1447
-
1448
- /**
1449
- * @fileoverview added by tsickle
1450
- * Generated from: diagrams/card-node/card-node.component.ts
1451
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1452
- */
1453
- var CardNodeComponent = /** @class */ (function () {
1454
- function CardNodeComponent() {
1455
- this.as = 'div';
1456
- this.href = null;
1457
- this.position = 'static';
1458
- this.click = new core.EventEmitter();
1459
- this.mouseEnter = new core.EventEmitter();
1460
- this.mouseOver = new core.EventEmitter();
1461
- this.mouseOut = new core.EventEmitter();
1462
- this.mouseLeave = new core.EventEmitter();
1463
- this.mouseMove = new core.EventEmitter();
1464
- this.namespace = carbonPrefix + "--cc--card-node";
1465
- this.component = 'div';
1466
- }
1467
- /**
1468
- * @return {?}
1469
- */
1470
- CardNodeComponent.prototype.ngOnInit = /**
1471
- * @return {?}
1472
- */
1473
- function () {
1474
- if (this.href) {
1475
- this.component = 'a';
1476
- }
1477
- else {
1478
- this.component = this.as;
1479
- }
1480
- };
1481
- CardNodeComponent.decorators = [
1482
- { type: core.Component, args: [{
1483
- selector: 'ibm-diagram-card-node',
1484
- template: "\n\t\t<ng-container [ngSwitch]=\"component\">\n\t\t\t<xhtml:div\n\t\t\t\t*ngSwitchCase=\"'div'\"\n\t\t\t\t[ngClass]=\"[\n\t\t\t\t\tnamespace,\n\t\t\t\t\tstacked ? namespace + '--stacked' : '',\n\t\t\t\t\tnamespace + '--' + component\n\t\t\t\t]\"\n\t\t\t\t[ngStyle]=\"{\n\t\t\t\t\t'border-color': color,\n\t\t\t\t\tposition: position\n\t\t\t\t}\"\n\t\t\t\t(mouseenter)=\"mouseEnter.emit($event)\"\n\t\t\t\t(mouseover)=\"mouseOver.emit($event)\"\n\t\t\t\t(mouseout)=\"mouseOut.emit($event)\"\n\t\t\t\t(mouseleave)=\"mouseLeave.emit($event)\"\n\t\t\t\t(mousemove)=\"mouseMove.emit($event)\"\n\t\t\t\ttabindex=\"0\"\n\t\t\t>\n\t\t\t\t<ng-container *ngTemplateOutlet=\"nodeTemplate\"></ng-container>\n\t\t\t</xhtml:div>\n\n\t\t\t<xhtml:button\n\t\t\t\t*ngSwitchCase=\"'button'\"\n\t\t\t\t[ngClass]=\"[\n\t\t\t\t\tnamespace,\n\t\t\t\t\tstacked ? namespace + '--stacked' : '',\n\t\t\t\t\tnamespace + '--' + component\n\t\t\t\t]\"\n\t\t\t\t[ngStyle]=\"{\n\t\t\t\t\t'border-color': color,\n\t\t\t\t\tposition: position\n\t\t\t\t}\"\n\t\t\t\t(click)=\"click.emit($event)\"\n\t\t\t\t(mouseenter)=\"mouseEnter.emit($event)\"\n\t\t\t\t(mouseover)=\"mouseOver.emit($event)\"\n\t\t\t\t(mouseout)=\"mouseOut.emit($event)\"\n\t\t\t\t(mouseleave)=\"mouseLeave.emit($event)\"\n\t\t\t\t(mousemove)=\"mouseMove.emit($event)\"\n\t\t\t\ttabindex=\"0\"\n\t\t\t>\n\t\t\t\t<ng-container *ngTemplateOutlet=\"nodeTemplate\"></ng-container>\n\t\t\t</xhtml:button>\n\n\t\t\t<xhtml:a\n\t\t\t\t*ngSwitchCase=\"'a'\"\n\t\t\t\t[ngClass]=\"[\n\t\t\t\t\tnamespace,\n\t\t\t\t\tstacked ? namespace + '--stacked' : '',\n\t\t\t\t\tnamespace + '--' + component\n\t\t\t\t]\"\n\t\t\t\t[attr.href]=\"href\"\n\t\t\t\t[ngStyle]=\"{ 'border-color': color, position: position }\"\n\t\t\t\t(mouseenter)=\"mouseEnter.emit($event)\"\n\t\t\t\t(mouseover)=\"mouseOver.emit($event)\"\n\t\t\t\t(mouseout)=\"mouseOut.emit($event)\"\n\t\t\t\t(mouseleave)=\"mouseLeave.emit($event)\"\n\t\t\t\t(mousemove)=\"mouseMove.emit($event)\"\n\t\t\t\ttabindex=\"0\"\n\t\t\t>\n\t\t\t\t<ng-container *ngTemplateOutlet=\"nodeTemplate\"></ng-container>\n\t\t\t</xhtml:a>\n\t\t</ng-container>\n\t\t<ng-template #nodeTemplate>\n\t\t\t<ng-content></ng-content>\n\t\t</ng-template>\n\t"
1485
- }] }
1486
- ];
1487
- CardNodeComponent.propDecorators = {
1488
- as: [{ type: core.Input }],
1489
- href: [{ type: core.Input }],
1490
- color: [{ type: core.Input }],
1491
- stacked: [{ type: core.Input }],
1492
- position: [{ type: core.Input }],
1493
- click: [{ type: core.Output }],
1494
- mouseEnter: [{ type: core.Output }],
1495
- mouseOver: [{ type: core.Output }],
1496
- mouseOut: [{ type: core.Output }],
1497
- mouseLeave: [{ type: core.Output }],
1498
- mouseMove: [{ type: core.Output }]
1499
- };
1500
- return CardNodeComponent;
1501
- }());
1502
- if (false) {
1503
- /** @type {?} */
1504
- CardNodeComponent.prototype.as;
1505
- /** @type {?} */
1506
- CardNodeComponent.prototype.href;
1507
- /** @type {?} */
1508
- CardNodeComponent.prototype.color;
1509
- /** @type {?} */
1510
- CardNodeComponent.prototype.stacked;
1511
- /** @type {?} */
1512
- CardNodeComponent.prototype.position;
1513
- /** @type {?} */
1514
- CardNodeComponent.prototype.click;
1515
- /** @type {?} */
1516
- CardNodeComponent.prototype.mouseEnter;
1517
- /** @type {?} */
1518
- CardNodeComponent.prototype.mouseOver;
1519
- /** @type {?} */
1520
- CardNodeComponent.prototype.mouseOut;
1521
- /** @type {?} */
1522
- CardNodeComponent.prototype.mouseLeave;
1523
- /** @type {?} */
1524
- CardNodeComponent.prototype.mouseMove;
1525
- /** @type {?} */
1526
- CardNodeComponent.prototype.namespace;
1527
- /** @type {?} */
1528
- CardNodeComponent.prototype.component;
1529
- }
1530
-
1531
- /**
1532
- * @fileoverview added by tsickle
1533
- * Generated from: diagrams/card-node/card-node-column.component.ts
1534
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1535
- */
1536
- var CardNodeColumnComponent = /** @class */ (function () {
1537
- function CardNodeColumnComponent() {
1538
- this.farsideColumn = false;
1539
- }
1540
- Object.defineProperty(CardNodeColumnComponent.prototype, "class", {
1541
- get: /**
1542
- * @return {?}
1543
- */
1544
- function () {
1545
- /** @type {?} */
1546
- var farsideClassName = this.farsideColumn
1547
- ? carbonPrefix + "--cc--card-node__column--farside"
1548
- : '';
1549
- return carbonPrefix + "--cc--card-node__column " + farsideClassName;
1550
- },
1551
- enumerable: true,
1552
- configurable: true
1553
- });
1554
- CardNodeColumnComponent.decorators = [
1555
- { type: core.Component, args: [{
1556
- selector: 'ibm-diagram-card-node-column',
1557
- template: "\n\t\t<xhtml:div>\n\t\t\t<ng-content></ng-content>\n\t\t</xhtml:div>\n\t"
1558
- }] }
1559
- ];
1560
- CardNodeColumnComponent.propDecorators = {
1561
- farsideColumn: [{ type: core.Input }],
1562
- class: [{ type: core.HostBinding, args: ['class',] }]
1563
- };
1564
- return CardNodeColumnComponent;
1565
- }());
1566
- if (false) {
1567
- /** @type {?} */
1568
- CardNodeColumnComponent.prototype.farsideColumn;
1569
- }
1570
-
1571
- /**
1572
- * @fileoverview added by tsickle
1573
- * Generated from: diagrams/card-node/card-node-label.component.ts
1574
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1575
- */
1576
- var CardNodeLabelComponent = /** @class */ (function () {
1577
- function CardNodeLabelComponent() {
1578
- this.namespace = carbonPrefix + "--cc--card-node__label";
1579
- }
1580
- CardNodeLabelComponent.decorators = [
1581
- { type: core.Component, args: [{
1582
- selector: "ibm-diagram-card-node-label",
1583
- template: "\n\t<xhtml:label [ngClass]=\"namespace\">\n\t\t<ng-content></ng-content>\n\t</xhtml:label>\n\t"
1584
- }] }
1585
- ];
1586
- return CardNodeLabelComponent;
1587
- }());
1588
- if (false) {
1589
- /** @type {?} */
1590
- CardNodeLabelComponent.prototype.namespace;
1591
- }
1592
-
1593
- /**
1594
- * @fileoverview added by tsickle
1595
- * Generated from: diagrams/card-node/card-node-subtitle.component.ts
1596
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1597
- */
1598
- var CardNodeSubtitleComponent = /** @class */ (function () {
1599
- function CardNodeSubtitleComponent() {
1600
- this.namespace = carbonPrefix + "--cc--card-node__subtitle";
1601
- }
1602
- CardNodeSubtitleComponent.decorators = [
1603
- { type: core.Component, args: [{
1604
- selector: "ibm-diagram-card-node-subtitle",
1605
- template: "\n\t<xhtml:div [ngClass]=\"namespace\">\n\t\t<ng-content></ng-content>\n\t</xhtml:div>\n\t"
1606
- }] }
1607
- ];
1608
- return CardNodeSubtitleComponent;
1609
- }());
1610
- if (false) {
1611
- /** @type {?} */
1612
- CardNodeSubtitleComponent.prototype.namespace;
1613
- }
1614
-
1615
- /**
1616
- * @fileoverview added by tsickle
1617
- * Generated from: diagrams/card-node/card-node-title.component.ts
1618
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1619
- */
1620
- var CardNodeTitleComponent = /** @class */ (function () {
1621
- function CardNodeTitleComponent() {
1622
- this.namespace = carbonPrefix + "--cc--card-node__title";
1623
- }
1624
- CardNodeTitleComponent.decorators = [
1625
- { type: core.Component, args: [{
1626
- selector: "ibm-diagram-card-node-title",
1627
- template: "\n\t<xhtml:div [ngClass]=\"namespace\">\n\t\t<ng-content></ng-content>\n\t</xhtml:div>\n\t"
1628
- }] }
1629
- ];
1630
- return CardNodeTitleComponent;
1631
- }());
1632
- if (false) {
1633
- /** @type {?} */
1634
- CardNodeTitleComponent.prototype.namespace;
1635
- }
1636
-
1637
- /**
1638
- * @fileoverview added by tsickle
1639
- * Generated from: diagrams/card-node/card-node.module.ts
1640
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1641
- */
1642
- var CardNodeModule = /** @class */ (function () {
1643
- function CardNodeModule() {
1644
- }
1645
- CardNodeModule.decorators = [
1646
- { type: core.NgModule, args: [{
1647
- declarations: [CardNodeComponent, CardNodeColumnComponent, CardNodeLabelComponent, CardNodeSubtitleComponent, CardNodeTitleComponent],
1648
- exports: [CardNodeComponent, CardNodeColumnComponent, CardNodeLabelComponent, CardNodeSubtitleComponent, CardNodeTitleComponent],
1649
- imports: [common.CommonModule]
1650
- },] }
1651
- ];
1652
- return CardNodeModule;
1653
- }());
1654
-
1655
- /**
1656
- * @fileoverview added by tsickle
1657
- * Generated from: diagrams/edge/edge.component.ts
1658
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1659
- */
1660
- /**
1661
- * @record
1662
- */
1663
- function Coordinates() { }
1664
- if (false) {
1665
- /** @type {?} */
1666
- Coordinates.prototype.x;
1667
- /** @type {?} */
1668
- Coordinates.prototype.y;
1669
- }
1670
- var EdgeComponent = /** @class */ (function () {
1671
- function EdgeComponent() {
1672
- this.namespace = carbonPrefix + "--cc--edge";
1673
- this.straight = buildPaths.buildStraightPathString;
1674
- }
1675
- EdgeComponent.decorators = [
1676
- { type: core.Component, args: [{
1677
- selector: "[ibm-graph-edge]",
1678
- template: "\n\t<svg:g [ngClass]=\"[namespace, variant ? namespace + '--' + variant : '']\">\n\t\t<svg:path\n\t\t\t[ngClass]=\"namespace + '__container'\"\n\t\t\t[attr.d]=\"path ? path : straight(source, target)\"\n\t\t/>\n\t\t<svg:path\n\t\t\t[ngClass]=\"namespace + '__outer'\"\n\t\t\t[attr.d]=\"path ? path : straight(source, target)\"\n\t\t/>\n\t\t<svg:path\n\t\t\t[ngClass]=\"namespace + '__inner'\"\n\t\t\t[attr.d]=\"path ? path : straight(source, target)\"\n\t\t\t[ngStyle]=\"{'stroke': color}\"\n\t\t\t[attr.marker-start]=\"markerStart ? 'url(#' + markerStart + ')' : ''\"\n\t\t\t[attr.marker-end]=\"markerEnd ? 'url(#' + markerEnd + ')' : ''\"\n\t\t/>\n\t</svg:g>\n\t"
1679
- }] }
1680
- ];
1681
- EdgeComponent.propDecorators = {
1682
- color: [{ type: core.Input }],
1683
- markerEnd: [{ type: core.Input }],
1684
- markerStart: [{ type: core.Input }],
1685
- source: [{ type: core.Input }],
1686
- target: [{ type: core.Input }],
1687
- variant: [{ type: core.Input }],
1688
- path: [{ type: core.Input }]
1689
- };
1690
- return EdgeComponent;
1691
- }());
1692
- if (false) {
1693
- /** @type {?} */
1694
- EdgeComponent.prototype.color;
1695
- /** @type {?} */
1696
- EdgeComponent.prototype.markerEnd;
1697
- /** @type {?} */
1698
- EdgeComponent.prototype.markerStart;
1699
- /** @type {?} */
1700
- EdgeComponent.prototype.source;
1701
- /** @type {?} */
1702
- EdgeComponent.prototype.target;
1703
- /** @type {?} */
1704
- EdgeComponent.prototype.variant;
1705
- /** @type {?} */
1706
- EdgeComponent.prototype.path;
1707
- /** @type {?} */
1708
- EdgeComponent.prototype.pathClasses;
1709
- /** @type {?} */
1710
- EdgeComponent.prototype.namespace;
1711
- /** @type {?} */
1712
- EdgeComponent.prototype.straight;
1713
- }
1714
-
1715
- /**
1716
- * @fileoverview added by tsickle
1717
- * Generated from: diagrams/edge/edge.module.ts
1718
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1719
- */
1720
- var EdgeModule = /** @class */ (function () {
1721
- function EdgeModule() {
1722
- }
1723
- EdgeModule.decorators = [
1724
- { type: core.NgModule, args: [{
1725
- declarations: [EdgeComponent],
1726
- exports: [EdgeComponent],
1727
- imports: [common.CommonModule]
1728
- },] }
1729
- ];
1730
- return EdgeModule;
1731
- }());
1732
-
1733
- /**
1734
- * @fileoverview added by tsickle
1735
- * Generated from: diagrams/marker/marker.component.ts
1736
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1737
- */
1738
- /** @type {?} */
1739
- var 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";
1740
- var MarkerComponent = /** @class */ (function () {
1741
- function MarkerComponent() {
1742
- var _this = this;
1743
- this.orient = "auto";
1744
- this.position = "end";
1745
- this.namespace = carbonPrefix + "--cc--marker";
1746
- this.setAttributes = (/**
1747
- * @param {?} __0
1748
- * @return {?}
1749
- */
1750
- function (_a) {
1751
- var d = _a.d, id = _a.id, height = _a.height, width = _a.width;
1752
- /** @type {?} */
1753
- var xPos = (_this.position === "end") ? (width / 2) + 0.5 : 0.5;
1754
- /** @type {?} */
1755
- var yPos = height / 2;
1756
- _this.d = _this.d || d;
1757
- _this.id = _this.id || id;
1758
- _this.height = _this.height || height;
1759
- _this.width = _this.width || width;
1760
- _this.refX = _this.refX || xPos;
1761
- _this.refY = _this.refY || yPos;
1762
- });
1763
- }
1764
- MarkerComponent.decorators = [
1765
- { type: core.Component, args: [{
1766
- selector: "[ibm-graph-marker]",
1767
- template: template
1768
- }] }
1769
- ];
1770
- MarkerComponent.propDecorators = {
1771
- d: [{ type: core.Input }],
1772
- color: [{ type: core.Input }],
1773
- id: [{ type: core.Input }],
1774
- orient: [{ type: core.Input }],
1775
- height: [{ type: core.Input }],
1776
- width: [{ type: core.Input }],
1777
- refX: [{ type: core.Input }],
1778
- refY: [{ type: core.Input }],
1779
- position: [{ type: core.Input }]
1780
- };
1781
- return MarkerComponent;
1782
- }());
1783
- if (false) {
1784
- /** @type {?} */
1785
- MarkerComponent.prototype.d;
1786
- /** @type {?} */
1787
- MarkerComponent.prototype.color;
1788
- /** @type {?} */
1789
- MarkerComponent.prototype.id;
1790
- /** @type {?} */
1791
- MarkerComponent.prototype.orient;
1792
- /** @type {?} */
1793
- MarkerComponent.prototype.height;
1794
- /** @type {?} */
1795
- MarkerComponent.prototype.width;
1796
- /** @type {?} */
1797
- MarkerComponent.prototype.refX;
1798
- /** @type {?} */
1799
- MarkerComponent.prototype.refY;
1800
- /** @type {?} */
1801
- MarkerComponent.prototype.position;
1802
- /** @type {?} */
1803
- MarkerComponent.prototype.namespace;
1804
- /** @type {?} */
1805
- MarkerComponent.prototype.setAttributes;
1806
- }
1807
- var MarkerArrowLeftComponent = /** @class */ (function (_super) {
1808
- __extends(MarkerArrowLeftComponent, _super);
1809
- function MarkerArrowLeftComponent() {
1810
- return _super !== null && _super.apply(this, arguments) || this;
1811
- }
1812
- /**
1813
- * @return {?}
1814
- */
1815
- MarkerArrowLeftComponent.prototype.ngOnInit = /**
1816
- * @return {?}
1817
- */
1818
- function () { this.setAttributes(__assign({}, markerDefinitions.arrowLeft)); };
1819
- MarkerArrowLeftComponent.decorators = [
1820
- { type: core.Component, args: [{ selector: "[ibm-graph-marker-arrow-left]", template: template }] }
1821
- ];
1822
- return MarkerArrowLeftComponent;
1823
- }(MarkerComponent));
1824
- var MarkerArrowRightComponent = /** @class */ (function (_super) {
1825
- __extends(MarkerArrowRightComponent, _super);
1826
- function MarkerArrowRightComponent() {
1827
- return _super !== null && _super.apply(this, arguments) || this;
1828
- }
1829
- /**
1830
- * @return {?}
1831
- */
1832
- MarkerArrowRightComponent.prototype.ngOnInit = /**
1833
- * @return {?}
1834
- */
1835
- function () { this.setAttributes(__assign({}, markerDefinitions.arrowRight)); };
1836
- MarkerArrowRightComponent.decorators = [
1837
- { type: core.Component, args: [{ selector: "[ibm-graph-marker-arrow-right]", template: template }] }
1838
- ];
1839
- return MarkerArrowRightComponent;
1840
- }(MarkerComponent));
1841
- var MarkerShapeNodeComponent = /** @class */ (function (_super) {
1842
- __extends(MarkerShapeNodeComponent, _super);
1843
- function MarkerShapeNodeComponent() {
1844
- return _super !== null && _super.apply(this, arguments) || this;
1845
- }
1846
- /**
1847
- * @return {?}
1848
- */
1849
- MarkerShapeNodeComponent.prototype.ngOnInit = /**
1850
- * @return {?}
1851
- */
1852
- function () { this.setAttributes(__assign({}, markerDefinitions.circle)); };
1853
- MarkerShapeNodeComponent.decorators = [
1854
- { type: core.Component, args: [{ selector: "[ibm-graph-marker-circle]", template: template }] }
1855
- ];
1856
- return MarkerShapeNodeComponent;
1857
- }(MarkerComponent));
1858
- var MarkerDiamondComponent = /** @class */ (function (_super) {
1859
- __extends(MarkerDiamondComponent, _super);
1860
- function MarkerDiamondComponent() {
1861
- return _super !== null && _super.apply(this, arguments) || this;
1862
- }
1863
- /**
1864
- * @return {?}
1865
- */
1866
- MarkerDiamondComponent.prototype.ngOnInit = /**
1867
- * @return {?}
1868
- */
1869
- function () { this.setAttributes(__assign({}, markerDefinitions.diamond)); };
1870
- MarkerDiamondComponent.decorators = [
1871
- { type: core.Component, args: [{ selector: "[ibm-graph-marker-diamond]", template: template }] }
1872
- ];
1873
- return MarkerDiamondComponent;
1874
- }(MarkerComponent));
1875
- var MarkerSquareComponent = /** @class */ (function (_super) {
1876
- __extends(MarkerSquareComponent, _super);
1877
- function MarkerSquareComponent() {
1878
- return _super !== null && _super.apply(this, arguments) || this;
1879
- }
1880
- /**
1881
- * @return {?}
1882
- */
1883
- MarkerSquareComponent.prototype.ngOnInit = /**
1884
- * @return {?}
1885
- */
1886
- function () { this.setAttributes(__assign({}, markerDefinitions.square)); };
1887
- MarkerSquareComponent.decorators = [
1888
- { type: core.Component, args: [{ selector: "[ibm-graph-marker-square]", template: template }] }
1889
- ];
1890
- return MarkerSquareComponent;
1891
- }(MarkerComponent));
1892
- var MarkerTeeComponent = /** @class */ (function (_super) {
1893
- __extends(MarkerTeeComponent, _super);
1894
- function MarkerTeeComponent() {
1895
- return _super !== null && _super.apply(this, arguments) || this;
1896
- }
1897
- /**
1898
- * @return {?}
1899
- */
1900
- MarkerTeeComponent.prototype.ngOnInit = /**
1901
- * @return {?}
1902
- */
1903
- function () { this.setAttributes(__assign({}, markerDefinitions.tee)); };
1904
- MarkerTeeComponent.decorators = [
1905
- { type: core.Component, args: [{ selector: "[ibm-graph-marker-tee]", template: template }] }
1906
- ];
1907
- return MarkerTeeComponent;
1908
- }(MarkerComponent));
1909
-
1910
- /**
1911
- * @fileoverview added by tsickle
1912
- * Generated from: diagrams/marker/marker.module.ts
1913
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1914
- */
1915
- var MarkerModule = /** @class */ (function () {
1916
- function MarkerModule() {
1917
- }
1918
- MarkerModule.decorators = [
1919
- { type: core.NgModule, args: [{
1920
- declarations: [
1921
- MarkerComponent,
1922
- MarkerArrowLeftComponent,
1923
- MarkerArrowRightComponent,
1924
- MarkerShapeNodeComponent,
1925
- MarkerDiamondComponent,
1926
- MarkerSquareComponent,
1927
- MarkerTeeComponent
1928
- ],
1929
- exports: [
1930
- MarkerComponent,
1931
- MarkerArrowLeftComponent,
1932
- MarkerArrowRightComponent,
1933
- MarkerShapeNodeComponent,
1934
- MarkerDiamondComponent,
1935
- MarkerSquareComponent,
1936
- MarkerTeeComponent
1937
- ],
1938
- imports: [common.CommonModule]
1939
- },] }
1940
- ];
1941
- return MarkerModule;
1942
- }());
1943
-
1944
- /**
1945
- * @fileoverview added by tsickle
1946
- * Generated from: diagrams/shape-node/shape-node.component.ts
1947
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1948
- */
1949
- var ShapeNodeComponent = /** @class */ (function () {
1950
- function ShapeNodeComponent() {
1951
- this.as = 'div';
1952
- this.href = null;
1953
- this.size = 48;
1954
- this.shape = 'circle';
1955
- this.position = 'fixed';
1956
- this.bodyPosition = 'absolute';
1957
- this.click = new core.EventEmitter();
1958
- this.mouseEnter = new core.EventEmitter();
1959
- this.mouseOver = new core.EventEmitter();
1960
- this.mouseOut = new core.EventEmitter();
1961
- this.mouseLeave = new core.EventEmitter();
1962
- this.mouseMove = new core.EventEmitter();
1963
- this.namespace = carbonPrefix + "--cc--shape-node";
1964
- this.component = 'div';
1965
- }
1966
- /**
1967
- * @return {?}
1968
- */
1969
- ShapeNodeComponent.prototype.ngOnInit = /**
1970
- * @return {?}
1971
- */
1972
- function () {
1973
- if (this.href) {
1974
- this.component = 'a';
1975
- }
1976
- else {
1977
- this.component = this.as;
1978
- }
1979
- };
1980
- ShapeNodeComponent.decorators = [
1981
- { type: core.Component, args: [{
1982
- selector: 'ibm-diagram-shape-node',
1983
- template: "\n\t\t<ng-container [ngSwitch]=\"component\">\n\t\t\t<xhtml:div\n\t\t\t\t*ngSwitchCase=\"'div'\"\n\t\t\t\t[ngClass]=\"[\n\t\t\t\t\tnamespace,\n\t\t\t\t\tstacked ? namespace + '--stacked' : '',\n\t\t\t\t\tshape ? namespace + '--' + shape : '',\n\t\t\t\t\tnamespace + '--' + component\n\t\t\t\t]\"\n\t\t\t\t[ngStyle]=\"{\n\t\t\t\t\t'height.px': size,\n\t\t\t\t\t'width.px': size,\n\t\t\t\t\tposition: position\n\t\t\t\t}\"\n\t\t\t\t(mouseenter)=\"mouseEnter.emit($event)\"\n\t\t\t\t(mouseover)=\"mouseOver.emit($event)\"\n\t\t\t\t(mouseout)=\"mouseOut.emit($event)\"\n\t\t\t\t(mouseleave)=\"mouseLeave.emit($event)\"\n\t\t\t\t(mousemove)=\"mouseMove.emit($event)\"\n\t\t\t\ttabindex=\"0\"\n\t\t\t>\n\t\t\t\t<ng-container *ngTemplateOutlet=\"nodeTemplate\"></ng-container>\n\t\t\t</xhtml:div>\n\n\t\t\t<xhtml:button\n\t\t\t\t*ngSwitchCase=\"'button'\"\n\t\t\t\t[ngClass]=\"[\n\t\t\t\t\tnamespace,\n\t\t\t\t\tstacked ? namespace + '--stacked' : '',\n\t\t\t\t\tshape ? namespace + '--' + shape : '',\n\t\t\t\t\tnamespace + '--' + component\n\t\t\t\t]\"\n\t\t\t\t[ngStyle]=\"{\n\t\t\t\t\t'height.px': size,\n\t\t\t\t\t'width.px': size,\n\t\t\t\t\tposition: position\n\t\t\t\t}\"\n\t\t\t\t(click)=\"click.emit($event)\"\n\t\t\t\t(mouseenter)=\"mouseEnter.emit($event)\"\n\t\t\t\t(mouseover)=\"mouseOver.emit($event)\"\n\t\t\t\t(mouseout)=\"mouseOut.emit($event)\"\n\t\t\t\t(mouseleave)=\"mouseLeave.emit($event)\"\n\t\t\t\t(mousemove)=\"mouseMove.emit($event)\"\n\t\t\t\ttabindex=\"0\"\n\t\t\t>\n\t\t\t\t<ng-container *ngTemplateOutlet=\"nodeTemplate\"></ng-container>\n\t\t\t</xhtml:button>\n\n\t\t\t<xhtml:a\n\t\t\t\t*ngSwitchCase=\"'a'\"\n\t\t\t\t[ngClass]=\"[\n\t\t\t\t\tnamespace,\n\t\t\t\t\tstacked ? namespace + '--stacked' : '',\n\t\t\t\t\tshape ? namespace + '--' + shape : '',\n\t\t\t\t\tnamespace + '--' + component\n\t\t\t\t]\"\n\t\t\t\t[attr.href]=\"href\"\n\t\t\t\t[ngStyle]=\"{\n\t\t\t\t\t'height.px': size,\n\t\t\t\t\t'width.px': size,\n\t\t\t\t\tposition: position\n\t\t\t\t}\"\n\t\t\t\t(mouseenter)=\"mouseEnter.emit($event)\"\n\t\t\t\t(mouseover)=\"mouseOver.emit($event)\"\n\t\t\t\t(mouseout)=\"mouseOut.emit($event)\"\n\t\t\t\t(mouseleave)=\"mouseLeave.emit($event)\"\n\t\t\t\t(mousemove)=\"mouseMove.emit($event)\"\n\t\t\t\ttabindex=\"0\"\n\t\t\t>\n\t\t\t\t<ng-container *ngTemplateOutlet=\"nodeTemplate\"></ng-container>\n\t\t\t</xhtml:a>\n\t\t</ng-container>\n\n\t\t<ng-template #nodeTemplate>\n\t\t\t<div *ngIf=\"renderIcon\" attr.class=\"{{ namespace + '__icon' }}\">\n\t\t\t\t<ng-container *ngTemplateOutlet=\"renderIcon\"></ng-container>\n\t\t\t</div>\n\t\t\t<div\n\t\t\t\tattr.class=\"{{ namespace + '__body' }}\"\n\t\t\t\t[ngStyle]=\"{ position: bodyPosition }\"\n\t\t\t>\n\t\t\t\t<div attr.class=\"{{ namespace + '__title' }}\">{{ title }}</div>\n\t\t\t\t<div attr.class=\"{{ namespace + '__subtitle' }}\">\n\t\t\t\t\t{{ subtitle }}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</ng-template>\n\t"
1984
- }] }
1985
- ];
1986
- ShapeNodeComponent.propDecorators = {
1987
- as: [{ type: core.Input }],
1988
- href: [{ type: core.Input }],
1989
- renderIcon: [{ type: core.Input }],
1990
- size: [{ type: core.Input }],
1991
- stacked: [{ type: core.Input }],
1992
- shape: [{ type: core.Input }],
1993
- subtitle: [{ type: core.Input }],
1994
- title: [{ type: core.Input }],
1995
- position: [{ type: core.Input }],
1996
- bodyPosition: [{ type: core.Input }],
1997
- click: [{ type: core.Output }],
1998
- mouseEnter: [{ type: core.Output }],
1999
- mouseOver: [{ type: core.Output }],
2000
- mouseOut: [{ type: core.Output }],
2001
- mouseLeave: [{ type: core.Output }],
2002
- mouseMove: [{ type: core.Output }]
2003
- };
2004
- return ShapeNodeComponent;
2005
- }());
2006
- if (false) {
2007
- /** @type {?} */
2008
- ShapeNodeComponent.prototype.as;
2009
- /** @type {?} */
2010
- ShapeNodeComponent.prototype.href;
2011
- /** @type {?} */
2012
- ShapeNodeComponent.prototype.renderIcon;
2013
- /** @type {?} */
2014
- ShapeNodeComponent.prototype.size;
2015
- /** @type {?} */
2016
- ShapeNodeComponent.prototype.stacked;
2017
- /** @type {?} */
2018
- ShapeNodeComponent.prototype.shape;
2019
- /** @type {?} */
2020
- ShapeNodeComponent.prototype.subtitle;
2021
- /** @type {?} */
2022
- ShapeNodeComponent.prototype.title;
2023
- /** @type {?} */
2024
- ShapeNodeComponent.prototype.position;
2025
- /** @type {?} */
2026
- ShapeNodeComponent.prototype.bodyPosition;
2027
- /** @type {?} */
2028
- ShapeNodeComponent.prototype.click;
2029
- /** @type {?} */
2030
- ShapeNodeComponent.prototype.mouseEnter;
2031
- /** @type {?} */
2032
- ShapeNodeComponent.prototype.mouseOver;
2033
- /** @type {?} */
2034
- ShapeNodeComponent.prototype.mouseOut;
2035
- /** @type {?} */
2036
- ShapeNodeComponent.prototype.mouseLeave;
2037
- /** @type {?} */
2038
- ShapeNodeComponent.prototype.mouseMove;
2039
- /** @type {?} */
2040
- ShapeNodeComponent.prototype.namespace;
2041
- /** @type {?} */
2042
- ShapeNodeComponent.prototype.component;
2043
- }
2044
-
2045
- /**
2046
- * @fileoverview added by tsickle
2047
- * Generated from: diagrams/shape-node/shape-node.module.ts
2048
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2049
- */
2050
- var ShapeNodeModule = /** @class */ (function () {
2051
- function ShapeNodeModule() {
2052
- }
2053
- ShapeNodeModule.decorators = [
2054
- { type: core.NgModule, args: [{
2055
- declarations: [ShapeNodeComponent],
2056
- exports: [ShapeNodeComponent],
2057
- imports: [common.CommonModule]
2058
- },] }
2059
- ];
2060
- return ShapeNodeModule;
2061
- }());
2062
-
2063
- exports.AlluvialChartComponent = AlluvialChartComponent;
2064
- exports.AreaChartComponent = AreaChartComponent;
2065
- exports.BaseChart = BaseChart;
2066
- exports.BoxplotChartComponent = BoxplotChartComponent;
2067
- exports.BubbleChartComponent = BubbleChartComponent;
2068
- exports.BulletChartComponent = BulletChartComponent;
2069
- exports.CardNodeColumnComponent = CardNodeColumnComponent;
2070
- exports.CardNodeComponent = CardNodeComponent;
2071
- exports.CardNodeLabelComponent = CardNodeLabelComponent;
2072
- exports.CardNodeModule = CardNodeModule;
2073
- exports.CardNodeSubtitleComponent = CardNodeSubtitleComponent;
2074
- exports.CardNodeTitleComponent = CardNodeTitleComponent;
2075
- exports.ChartsModule = ChartsModule;
2076
- exports.CirclePackChartComponent = CirclePackChartComponent;
2077
- exports.ComboChartComponent = ComboChartComponent;
2078
- exports.DonutChartComponent = DonutChartComponent;
2079
- exports.EdgeComponent = EdgeComponent;
2080
- exports.EdgeModule = EdgeModule;
2081
- exports.GaugeChartComponent = GaugeChartComponent;
2082
- exports.GroupedBarChartComponent = GroupedBarChartComponent;
2083
- exports.HeatmapChartComponent = HeatmapChartComponent;
2084
- exports.HistogramChartComponent = HistogramChartComponent;
2085
- exports.LineChartComponent = LineChartComponent;
2086
- exports.LollipopChartComponent = LollipopChartComponent;
2087
- exports.MarkerArrowLeftComponent = MarkerArrowLeftComponent;
2088
- exports.MarkerArrowRightComponent = MarkerArrowRightComponent;
2089
- exports.MarkerComponent = MarkerComponent;
2090
- exports.MarkerDiamondComponent = MarkerDiamondComponent;
2091
- exports.MarkerModule = MarkerModule;
2092
- exports.MarkerShapeNodeComponent = MarkerShapeNodeComponent;
2093
- exports.MarkerSquareComponent = MarkerSquareComponent;
2094
- exports.MarkerTeeComponent = MarkerTeeComponent;
2095
- exports.MeterChartComponent = MeterChartComponent;
2096
- exports.PieChartComponent = PieChartComponent;
2097
- exports.RadarChartComponent = RadarChartComponent;
2098
- exports.ScatterChartComponent = ScatterChartComponent;
2099
- exports.ShapeNodeComponent = ShapeNodeComponent;
2100
- exports.ShapeNodeModule = ShapeNodeModule;
2101
- exports.SimpleBarChartComponent = SimpleBarChartComponent;
2102
- exports.StackedAreaChartComponent = StackedAreaChartComponent;
2103
- exports.StackedBarChartComponent = StackedBarChartComponent;
2104
- exports.TreeChartComponent = TreeChartComponent;
2105
- exports.TreemapChartComponent = TreemapChartComponent;
2106
- exports.WordCloudChartComponent = WordCloudChartComponent;
2107
-
2108
- Object.defineProperty(exports, '__esModule', { value: true });
2109
-
2110
- })));
2111
- //# sourceMappingURL=carbon-charts-angular.umd.js.map