@covalent/echarts 4.0.0-alpha.0 → 4.0.0-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (386) hide show
  1. package/bar/bar.component.d.ts +3 -0
  2. package/bar/bar.module.d.ts +6 -1
  3. package/bar/covalent-echarts-bar.d.ts +1 -0
  4. package/bar/package.json +6 -7
  5. package/base/axis/axis.component.d.ts +3 -0
  6. package/base/axis/x-axis.component.d.ts +3 -0
  7. package/base/axis/y-axis.component.d.ts +3 -0
  8. package/base/base.module.d.ts +9 -1
  9. package/base/chart-options.service.d.ts +3 -0
  10. package/base/chart.component.d.ts +3 -0
  11. package/base/covalent-echarts-base.d.ts +1 -1
  12. package/base/dataset/dataset.component.d.ts +3 -0
  13. package/base/package.json +6 -7
  14. package/base/series/series.component.d.ts +3 -0
  15. package/covalent-echarts.d.ts +1 -0
  16. package/esm2020/bar/bar.component.mjs +136 -0
  17. package/esm2020/bar/bar.module.mjs +20 -0
  18. package/esm2020/bar/covalent-echarts-bar.mjs +5 -0
  19. package/esm2020/bar/index.mjs +2 -0
  20. package/esm2020/bar/public-api.mjs +3 -0
  21. package/esm2020/base/axis/axis.component.mjs +127 -0
  22. package/esm2020/base/axis/axis.interface.mjs +2 -0
  23. package/esm2020/base/axis/x-axis.component.mjs +55 -0
  24. package/esm2020/base/axis/y-axis.component.mjs +55 -0
  25. package/esm2020/base/base.module.mjs +36 -0
  26. package/esm2020/base/base.types.mjs +2 -0
  27. package/esm2020/base/chart-options.service.mjs +65 -0
  28. package/esm2020/base/chart.component.mjs +191 -0
  29. package/esm2020/base/covalent-echarts-base.mjs +5 -0
  30. package/esm2020/base/dataset/dataset.component.mjs +52 -0
  31. package/esm2020/base/index.mjs +2 -0
  32. package/esm2020/base/public-api.mjs +10 -0
  33. package/esm2020/base/series/series.component.mjs +91 -0
  34. package/esm2020/base/series/series.interface.mjs +2 -0
  35. package/{esm2015/base/themes/teradata-classic.js → esm2020/base/themes/aqua-splash.mjs} +10 -15
  36. package/esm2020/base/themes/california-coast.mjs +460 -0
  37. package/esm2020/base/themes/hawaiian-sunrise.mjs +460 -0
  38. package/{esm2015/base/themes/volcanic-eruption.js → esm2020/base/themes/passion-flower.mjs} +18 -23
  39. package/esm2020/base/themes/razzleberry-pie.mjs +460 -0
  40. package/esm2020/base/themes/teradata-classic.mjs +460 -0
  41. package/{esm2015/base/themes/hawaiian-sunrise.js → esm2020/base/themes/teradata-default.mjs} +18 -23
  42. package/esm2020/base/themes/urban-sunrise.mjs +460 -0
  43. package/esm2020/base/themes/volcanic-eruption.mjs +460 -0
  44. package/esm2020/base/utils/assign-defined.mjs +25 -0
  45. package/esm2020/base/utils/echarts.mjs +49 -0
  46. package/esm2020/base/utils/index.mjs +3 -0
  47. package/esm2020/covalent-echarts.mjs +5 -0
  48. package/esm2020/graph/covalent-echarts-graph.mjs +5 -0
  49. package/esm2020/graph/graph.component.mjs +186 -0
  50. package/esm2020/graph/graph.module.mjs +20 -0
  51. package/esm2020/graph/index.mjs +2 -0
  52. package/esm2020/graph/public-api.mjs +3 -0
  53. package/esm2020/index.mjs +2 -0
  54. package/esm2020/line/covalent-echarts-line.mjs +5 -0
  55. package/esm2020/line/index.mjs +2 -0
  56. package/esm2020/line/line.component.mjs +160 -0
  57. package/esm2020/line/line.module.mjs +20 -0
  58. package/esm2020/line/public-api.mjs +3 -0
  59. package/esm2020/map/covalent-echarts-map.mjs +5 -0
  60. package/esm2020/map/index.mjs +2 -0
  61. package/esm2020/map/map.component.mjs +133 -0
  62. package/esm2020/map/map.module.mjs +20 -0
  63. package/esm2020/map/public-api.mjs +3 -0
  64. package/esm2020/pie/covalent-echarts-pie.mjs +5 -0
  65. package/esm2020/pie/index.mjs +2 -0
  66. package/esm2020/pie/pie.component.mjs +128 -0
  67. package/esm2020/pie/pie.module.mjs +20 -0
  68. package/esm2020/pie/public-api.mjs +3 -0
  69. package/esm2020/sankey/covalent-echarts-sankey.mjs +5 -0
  70. package/esm2020/sankey/index.mjs +2 -0
  71. package/esm2020/sankey/public-api.mjs +3 -0
  72. package/esm2020/sankey/sankey.component.mjs +118 -0
  73. package/esm2020/sankey/sankey.module.mjs +20 -0
  74. package/esm2020/scatter/covalent-echarts-scatter.mjs +5 -0
  75. package/esm2020/scatter/index.mjs +2 -0
  76. package/esm2020/scatter/public-api.mjs +3 -0
  77. package/esm2020/scatter/scatter.component.mjs +145 -0
  78. package/esm2020/scatter/scatter.module.mjs +20 -0
  79. package/esm2020/toolbox/covalent-echarts-toolbox.mjs +5 -0
  80. package/esm2020/toolbox/index.mjs +2 -0
  81. package/esm2020/toolbox/public-api.mjs +3 -0
  82. package/esm2020/toolbox/toolbox.component.mjs +151 -0
  83. package/esm2020/toolbox/toolbox.module.mjs +20 -0
  84. package/esm2020/tooltip/covalent-echarts-tooltip.mjs +5 -0
  85. package/esm2020/tooltip/index.mjs +2 -0
  86. package/esm2020/tooltip/public-api.mjs +4 -0
  87. package/esm2020/tooltip/series-tooltip.component.mjs +111 -0
  88. package/esm2020/tooltip/tooltip.component.mjs +165 -0
  89. package/esm2020/tooltip/tooltip.module.mjs +29 -0
  90. package/esm2020/tree/covalent-echarts-tree.mjs +5 -0
  91. package/esm2020/tree/index.mjs +2 -0
  92. package/esm2020/tree/public-api.mjs +3 -0
  93. package/esm2020/tree/tree.component.mjs +118 -0
  94. package/esm2020/tree/tree.module.mjs +20 -0
  95. package/esm2020/treemap/covalent-echarts-treemap.mjs +5 -0
  96. package/esm2020/treemap/index.mjs +2 -0
  97. package/esm2020/treemap/public-api.mjs +3 -0
  98. package/esm2020/treemap/treemap.component.mjs +150 -0
  99. package/esm2020/treemap/treemap.module.mjs +20 -0
  100. package/esm2020/wordcloud/covalent-echarts-wordcloud.mjs +5 -0
  101. package/esm2020/wordcloud/index.mjs +2 -0
  102. package/esm2020/wordcloud/public-api.mjs +3 -0
  103. package/esm2020/wordcloud/wordcloud.component.mjs +93 -0
  104. package/esm2020/wordcloud/wordcloud.module.mjs +20 -0
  105. package/fesm2015/covalent-echarts-bar.mjs +164 -0
  106. package/fesm2015/covalent-echarts-bar.mjs.map +1 -0
  107. package/fesm2015/covalent-echarts-base.mjs +4864 -0
  108. package/fesm2015/covalent-echarts-base.mjs.map +1 -0
  109. package/fesm2015/covalent-echarts-graph.mjs +214 -0
  110. package/fesm2015/covalent-echarts-graph.mjs.map +1 -0
  111. package/fesm2015/covalent-echarts-line.mjs +188 -0
  112. package/fesm2015/covalent-echarts-line.mjs.map +1 -0
  113. package/fesm2015/covalent-echarts-map.mjs +161 -0
  114. package/fesm2015/{covalent-echarts-map.js.map → covalent-echarts-map.mjs.map} +1 -1
  115. package/fesm2015/covalent-echarts-pie.mjs +156 -0
  116. package/fesm2015/{covalent-echarts-pie.js.map → covalent-echarts-pie.mjs.map} +1 -1
  117. package/fesm2015/covalent-echarts-sankey.mjs +146 -0
  118. package/fesm2015/covalent-echarts-sankey.mjs.map +1 -0
  119. package/fesm2015/covalent-echarts-scatter.mjs +173 -0
  120. package/fesm2015/covalent-echarts-scatter.mjs.map +1 -0
  121. package/fesm2015/covalent-echarts-toolbox.mjs +184 -0
  122. package/fesm2015/covalent-echarts-toolbox.mjs.map +1 -0
  123. package/fesm2015/covalent-echarts-tooltip.mjs +330 -0
  124. package/fesm2015/covalent-echarts-tooltip.mjs.map +1 -0
  125. package/fesm2015/covalent-echarts-tree.mjs +146 -0
  126. package/fesm2015/covalent-echarts-tree.mjs.map +1 -0
  127. package/fesm2015/covalent-echarts-treemap.mjs +178 -0
  128. package/fesm2015/covalent-echarts-treemap.mjs.map +1 -0
  129. package/fesm2015/covalent-echarts-wordcloud.mjs +121 -0
  130. package/fesm2015/covalent-echarts-wordcloud.mjs.map +1 -0
  131. package/fesm2015/covalent-echarts.mjs +4 -0
  132. package/fesm2015/covalent-echarts.mjs.map +1 -0
  133. package/fesm2020/covalent-echarts-bar.mjs +160 -0
  134. package/{fesm2015/covalent-echarts-bar.js.map → fesm2020/covalent-echarts-bar.mjs.map} +1 -1
  135. package/{fesm2015/covalent-echarts-base.js → fesm2020/covalent-echarts-base.mjs} +218 -769
  136. package/fesm2020/covalent-echarts-base.mjs.map +1 -0
  137. package/fesm2020/covalent-echarts-graph.mjs +210 -0
  138. package/fesm2020/covalent-echarts-graph.mjs.map +1 -0
  139. package/fesm2020/covalent-echarts-line.mjs +184 -0
  140. package/fesm2020/covalent-echarts-line.mjs.map +1 -0
  141. package/fesm2020/covalent-echarts-map.mjs +157 -0
  142. package/fesm2020/covalent-echarts-map.mjs.map +1 -0
  143. package/fesm2020/covalent-echarts-pie.mjs +152 -0
  144. package/fesm2020/covalent-echarts-pie.mjs.map +1 -0
  145. package/fesm2020/covalent-echarts-sankey.mjs +142 -0
  146. package/fesm2020/covalent-echarts-sankey.mjs.map +1 -0
  147. package/fesm2020/covalent-echarts-scatter.mjs +169 -0
  148. package/fesm2020/covalent-echarts-scatter.mjs.map +1 -0
  149. package/fesm2020/covalent-echarts-toolbox.mjs +175 -0
  150. package/fesm2020/covalent-echarts-toolbox.mjs.map +1 -0
  151. package/fesm2020/covalent-echarts-tooltip.mjs +302 -0
  152. package/fesm2020/covalent-echarts-tooltip.mjs.map +1 -0
  153. package/fesm2020/covalent-echarts-tree.mjs +142 -0
  154. package/fesm2020/covalent-echarts-tree.mjs.map +1 -0
  155. package/fesm2020/covalent-echarts-treemap.mjs +174 -0
  156. package/fesm2020/covalent-echarts-treemap.mjs.map +1 -0
  157. package/fesm2020/covalent-echarts-wordcloud.mjs +117 -0
  158. package/fesm2020/covalent-echarts-wordcloud.mjs.map +1 -0
  159. package/fesm2020/covalent-echarts.mjs +4 -0
  160. package/fesm2020/covalent-echarts.mjs.map +1 -0
  161. package/graph/covalent-echarts-graph.d.ts +1 -0
  162. package/graph/graph.component.d.ts +3 -0
  163. package/graph/graph.module.d.ts +6 -1
  164. package/graph/package.json +6 -7
  165. package/line/covalent-echarts-line.d.ts +1 -0
  166. package/line/line.component.d.ts +3 -0
  167. package/line/line.module.d.ts +6 -1
  168. package/line/package.json +6 -7
  169. package/map/covalent-echarts-map.d.ts +1 -0
  170. package/map/map.component.d.ts +3 -0
  171. package/map/map.module.d.ts +6 -1
  172. package/map/package.json +6 -7
  173. package/package.json +134 -15
  174. package/pie/covalent-echarts-pie.d.ts +1 -0
  175. package/pie/package.json +6 -7
  176. package/pie/pie.component.d.ts +3 -0
  177. package/pie/pie.module.d.ts +6 -1
  178. package/sankey/covalent-echarts-sankey.d.ts +1 -0
  179. package/sankey/package.json +6 -7
  180. package/sankey/sankey.component.d.ts +3 -0
  181. package/sankey/sankey.module.d.ts +6 -1
  182. package/scatter/covalent-echarts-scatter.d.ts +1 -0
  183. package/scatter/package.json +6 -7
  184. package/scatter/scatter.component.d.ts +3 -0
  185. package/scatter/scatter.module.d.ts +6 -1
  186. package/toolbox/covalent-echarts-toolbox.d.ts +1 -0
  187. package/toolbox/package.json +6 -7
  188. package/toolbox/toolbox.component.d.ts +5 -0
  189. package/toolbox/toolbox.module.d.ts +6 -1
  190. package/tooltip/covalent-echarts-tooltip.d.ts +1 -0
  191. package/tooltip/package.json +6 -7
  192. package/tooltip/series-tooltip.component.d.ts +3 -0
  193. package/tooltip/tooltip.component.d.ts +5 -0
  194. package/tooltip/tooltip.module.d.ts +7 -1
  195. package/tree/covalent-echarts-tree.d.ts +1 -0
  196. package/tree/package.json +6 -7
  197. package/tree/tree.component.d.ts +3 -0
  198. package/tree/tree.module.d.ts +6 -1
  199. package/treemap/covalent-echarts-treemap.d.ts +1 -0
  200. package/treemap/package.json +6 -7
  201. package/treemap/treemap.component.d.ts +3 -0
  202. package/treemap/treemap.module.d.ts +6 -1
  203. package/wordcloud/covalent-echarts-wordcloud.d.ts +1 -0
  204. package/wordcloud/package.json +6 -7
  205. package/wordcloud/wordcloud.component.d.ts +3 -0
  206. package/wordcloud/wordcloud.module.d.ts +6 -1
  207. package/bar/covalent-echarts-bar.metadata.json +0 -1
  208. package/base/covalent-echarts-base.metadata.json +0 -1
  209. package/bundles/covalent-echarts-bar.umd.js +0 -588
  210. package/bundles/covalent-echarts-bar.umd.js.map +0 -1
  211. package/bundles/covalent-echarts-bar.umd.min.js +0 -16
  212. package/bundles/covalent-echarts-bar.umd.min.js.map +0 -1
  213. package/bundles/covalent-echarts-base.umd.js +0 -5750
  214. package/bundles/covalent-echarts-base.umd.js.map +0 -1
  215. package/bundles/covalent-echarts-base.umd.min.js +0 -16
  216. package/bundles/covalent-echarts-base.umd.min.js.map +0 -1
  217. package/bundles/covalent-echarts-graph.umd.js +0 -745
  218. package/bundles/covalent-echarts-graph.umd.js.map +0 -1
  219. package/bundles/covalent-echarts-graph.umd.min.js +0 -16
  220. package/bundles/covalent-echarts-graph.umd.min.js.map +0 -1
  221. package/bundles/covalent-echarts-line.umd.js +0 -638
  222. package/bundles/covalent-echarts-line.umd.js.map +0 -1
  223. package/bundles/covalent-echarts-line.umd.min.js +0 -16
  224. package/bundles/covalent-echarts-line.umd.min.js.map +0 -1
  225. package/bundles/covalent-echarts-map.umd.js +0 -600
  226. package/bundles/covalent-echarts-map.umd.js.map +0 -1
  227. package/bundles/covalent-echarts-map.umd.min.js +0 -16
  228. package/bundles/covalent-echarts-map.umd.min.js.map +0 -1
  229. package/bundles/covalent-echarts-pie.umd.js +0 -574
  230. package/bundles/covalent-echarts-pie.umd.js.map +0 -1
  231. package/bundles/covalent-echarts-pie.umd.min.js +0 -16
  232. package/bundles/covalent-echarts-pie.umd.min.js.map +0 -1
  233. package/bundles/covalent-echarts-sankey.umd.js +0 -570
  234. package/bundles/covalent-echarts-sankey.umd.js.map +0 -1
  235. package/bundles/covalent-echarts-sankey.umd.min.js +0 -16
  236. package/bundles/covalent-echarts-sankey.umd.min.js.map +0 -1
  237. package/bundles/covalent-echarts-scatter.umd.js +0 -610
  238. package/bundles/covalent-echarts-scatter.umd.js.map +0 -1
  239. package/bundles/covalent-echarts-scatter.umd.min.js +0 -16
  240. package/bundles/covalent-echarts-scatter.umd.min.js.map +0 -1
  241. package/bundles/covalent-echarts-toolbox.umd.js +0 -460
  242. package/bundles/covalent-echarts-toolbox.umd.js.map +0 -1
  243. package/bundles/covalent-echarts-toolbox.umd.min.js +0 -2
  244. package/bundles/covalent-echarts-toolbox.umd.min.js.map +0 -1
  245. package/bundles/covalent-echarts-tooltip.umd.js +0 -476
  246. package/bundles/covalent-echarts-tooltip.umd.js.map +0 -1
  247. package/bundles/covalent-echarts-tooltip.umd.min.js +0 -2
  248. package/bundles/covalent-echarts-tooltip.umd.min.js.map +0 -1
  249. package/bundles/covalent-echarts-tree.umd.js +0 -584
  250. package/bundles/covalent-echarts-tree.umd.js.map +0 -1
  251. package/bundles/covalent-echarts-tree.umd.min.js +0 -16
  252. package/bundles/covalent-echarts-tree.umd.min.js.map +0 -1
  253. package/bundles/covalent-echarts-treemap.umd.js +0 -728
  254. package/bundles/covalent-echarts-treemap.umd.js.map +0 -1
  255. package/bundles/covalent-echarts-treemap.umd.min.js +0 -16
  256. package/bundles/covalent-echarts-treemap.umd.min.js.map +0 -1
  257. package/bundles/covalent-echarts-wordcloud.umd.js +0 -521
  258. package/bundles/covalent-echarts-wordcloud.umd.js.map +0 -1
  259. package/bundles/covalent-echarts-wordcloud.umd.min.js +0 -16
  260. package/bundles/covalent-echarts-wordcloud.umd.min.js.map +0 -1
  261. package/bundles/covalent-echarts.umd.js +0 -9
  262. package/bundles/covalent-echarts.umd.js.map +0 -1
  263. package/bundles/covalent-echarts.umd.min.js +0 -2
  264. package/bundles/covalent-echarts.umd.min.js.map +0 -1
  265. package/covalent-echarts.metadata.json +0 -1
  266. package/esm2015/bar/bar.component.js +0 -241
  267. package/esm2015/bar/bar.module.js +0 -21
  268. package/esm2015/bar/covalent-echarts-bar.js +0 -10
  269. package/esm2015/bar/index.js +0 -7
  270. package/esm2015/bar/public-api.js +0 -8
  271. package/esm2015/base/axis/axis.component.js +0 -209
  272. package/esm2015/base/axis/axis.interface.js +0 -324
  273. package/esm2015/base/axis/x-axis.component.js +0 -67
  274. package/esm2015/base/axis/y-axis.component.js +0 -67
  275. package/esm2015/base/base.module.js +0 -31
  276. package/esm2015/base/base.types.js +0 -278
  277. package/esm2015/base/chart-options.service.js +0 -115
  278. package/esm2015/base/chart.component.js +0 -354
  279. package/esm2015/base/covalent-echarts-base.js +0 -11
  280. package/esm2015/base/dataset/dataset.component.js +0 -93
  281. package/esm2015/base/index.js +0 -7
  282. package/esm2015/base/public-api.js +0 -15
  283. package/esm2015/base/series/series.component.js +0 -187
  284. package/esm2015/base/series/series.interface.js +0 -178
  285. package/esm2015/base/themes/aqua-splash.js +0 -465
  286. package/esm2015/base/themes/california-coast.js +0 -465
  287. package/esm2015/base/themes/passion-flower.js +0 -465
  288. package/esm2015/base/themes/razzleberry-pie.js +0 -465
  289. package/esm2015/base/themes/teradata-default.js +0 -465
  290. package/esm2015/base/themes/urban-sunrise.js +0 -465
  291. package/esm2015/base/utils/assign-defined.js +0 -37
  292. package/esm2015/base/utils/echarts.js +0 -60
  293. package/esm2015/base/utils/index.js +0 -8
  294. package/esm2015/covalent-echarts.js +0 -10
  295. package/esm2015/graph/covalent-echarts-graph.js +0 -10
  296. package/esm2015/graph/graph.component.js +0 -398
  297. package/esm2015/graph/graph.module.js +0 -21
  298. package/esm2015/graph/index.js +0 -7
  299. package/esm2015/graph/public-api.js +0 -8
  300. package/esm2015/index.js +0 -7
  301. package/esm2015/line/covalent-echarts-line.js +0 -10
  302. package/esm2015/line/index.js +0 -7
  303. package/esm2015/line/line.component.js +0 -291
  304. package/esm2015/line/line.module.js +0 -21
  305. package/esm2015/line/public-api.js +0 -8
  306. package/esm2015/map/covalent-echarts-map.js +0 -10
  307. package/esm2015/map/index.js +0 -7
  308. package/esm2015/map/map.component.js +0 -253
  309. package/esm2015/map/map.module.js +0 -21
  310. package/esm2015/map/public-api.js +0 -8
  311. package/esm2015/pie/covalent-echarts-pie.js +0 -10
  312. package/esm2015/pie/index.js +0 -7
  313. package/esm2015/pie/pie.component.js +0 -227
  314. package/esm2015/pie/pie.module.js +0 -21
  315. package/esm2015/pie/public-api.js +0 -8
  316. package/esm2015/sankey/covalent-echarts-sankey.js +0 -10
  317. package/esm2015/sankey/index.js +0 -7
  318. package/esm2015/sankey/public-api.js +0 -8
  319. package/esm2015/sankey/sankey.component.js +0 -223
  320. package/esm2015/sankey/sankey.module.js +0 -21
  321. package/esm2015/scatter/covalent-echarts-scatter.js +0 -10
  322. package/esm2015/scatter/index.js +0 -7
  323. package/esm2015/scatter/public-api.js +0 -8
  324. package/esm2015/scatter/scatter.component.js +0 -263
  325. package/esm2015/scatter/scatter.module.js +0 -21
  326. package/esm2015/toolbox/covalent-echarts-toolbox.js +0 -10
  327. package/esm2015/toolbox/index.js +0 -7
  328. package/esm2015/toolbox/public-api.js +0 -8
  329. package/esm2015/toolbox/toolbox.component.js +0 -405
  330. package/esm2015/toolbox/toolbox.module.js +0 -21
  331. package/esm2015/tooltip/covalent-echarts-tooltip.js +0 -10
  332. package/esm2015/tooltip/index.js +0 -7
  333. package/esm2015/tooltip/public-api.js +0 -9
  334. package/esm2015/tooltip/series-tooltip.component.js +0 -170
  335. package/esm2015/tooltip/tooltip.component.js +0 -246
  336. package/esm2015/tooltip/tooltip.module.js +0 -26
  337. package/esm2015/tree/covalent-echarts-tree.js +0 -10
  338. package/esm2015/tree/index.js +0 -7
  339. package/esm2015/tree/public-api.js +0 -8
  340. package/esm2015/tree/tree.component.js +0 -237
  341. package/esm2015/tree/tree.module.js +0 -21
  342. package/esm2015/treemap/covalent-echarts-treemap.js +0 -10
  343. package/esm2015/treemap/index.js +0 -7
  344. package/esm2015/treemap/public-api.js +0 -8
  345. package/esm2015/treemap/treemap.component.js +0 -380
  346. package/esm2015/treemap/treemap.module.js +0 -21
  347. package/esm2015/wordcloud/covalent-echarts-wordcloud.js +0 -10
  348. package/esm2015/wordcloud/index.js +0 -7
  349. package/esm2015/wordcloud/public-api.js +0 -8
  350. package/esm2015/wordcloud/wordcloud.component.js +0 -174
  351. package/esm2015/wordcloud/wordcloud.module.js +0 -21
  352. package/fesm2015/covalent-echarts-bar.js +0 -281
  353. package/fesm2015/covalent-echarts-base.js.map +0 -1
  354. package/fesm2015/covalent-echarts-graph.js +0 -438
  355. package/fesm2015/covalent-echarts-graph.js.map +0 -1
  356. package/fesm2015/covalent-echarts-line.js +0 -331
  357. package/fesm2015/covalent-echarts-line.js.map +0 -1
  358. package/fesm2015/covalent-echarts-map.js +0 -293
  359. package/fesm2015/covalent-echarts-pie.js +0 -267
  360. package/fesm2015/covalent-echarts-sankey.js +0 -263
  361. package/fesm2015/covalent-echarts-sankey.js.map +0 -1
  362. package/fesm2015/covalent-echarts-scatter.js +0 -303
  363. package/fesm2015/covalent-echarts-scatter.js.map +0 -1
  364. package/fesm2015/covalent-echarts-toolbox.js +0 -445
  365. package/fesm2015/covalent-echarts-toolbox.js.map +0 -1
  366. package/fesm2015/covalent-echarts-tooltip.js +0 -457
  367. package/fesm2015/covalent-echarts-tooltip.js.map +0 -1
  368. package/fesm2015/covalent-echarts-tree.js +0 -277
  369. package/fesm2015/covalent-echarts-tree.js.map +0 -1
  370. package/fesm2015/covalent-echarts-treemap.js +0 -420
  371. package/fesm2015/covalent-echarts-treemap.js.map +0 -1
  372. package/fesm2015/covalent-echarts-wordcloud.js +0 -214
  373. package/fesm2015/covalent-echarts-wordcloud.js.map +0 -1
  374. package/fesm2015/covalent-echarts.js +0 -12
  375. package/fesm2015/covalent-echarts.js.map +0 -1
  376. package/graph/covalent-echarts-graph.metadata.json +0 -1
  377. package/line/covalent-echarts-line.metadata.json +0 -1
  378. package/map/covalent-echarts-map.metadata.json +0 -1
  379. package/pie/covalent-echarts-pie.metadata.json +0 -1
  380. package/sankey/covalent-echarts-sankey.metadata.json +0 -1
  381. package/scatter/covalent-echarts-scatter.metadata.json +0 -1
  382. package/toolbox/covalent-echarts-toolbox.metadata.json +0 -1
  383. package/tooltip/covalent-echarts-tooltip.metadata.json +0 -1
  384. package/tree/covalent-echarts-tree.metadata.json +0 -1
  385. package/treemap/covalent-echarts-treemap.metadata.json +0 -1
  386. package/wordcloud/covalent-echarts-wordcloud.metadata.json +0 -1
@@ -0,0 +1,175 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Directive, TemplateRef, Component, ChangeDetectionStrategy, Input, ContentChild, ViewChild, NgModule } from '@angular/core';
3
+ import * as i2 from '@angular/common';
4
+ import { CommonModule } from '@angular/common';
5
+ import * as i1 from '@covalent/echarts/base';
6
+ import { assignDefined } from '@covalent/echarts/base';
7
+
8
+ const _c0 = ["toolboxContent"];
9
+ function TdChartToolboxComponent_ng_template_0_Template(rf, ctx) { }
10
+ class TdChartViewDataFormatterDirective {
11
+ }
12
+ /** @nocollapse */ /** @nocollapse */ TdChartViewDataFormatterDirective.ɵfac = function TdChartViewDataFormatterDirective_Factory(t) { return new (t || TdChartViewDataFormatterDirective)(); };
13
+ /** @nocollapse */ /** @nocollapse */ TdChartViewDataFormatterDirective.ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: TdChartViewDataFormatterDirective, selectors: [["ng-template", "tdViewDataFormatter", ""]] });
14
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdChartViewDataFormatterDirective, [{
15
+ type: Directive,
16
+ args: [{
17
+ selector: 'ng-template[tdViewDataFormatter]',
18
+ }]
19
+ }], null, null); })();
20
+ class TdChartToolboxComponent {
21
+ constructor(_changeDetectorRef, _elementRef, _optionsService) {
22
+ this._changeDetectorRef = _changeDetectorRef;
23
+ this._elementRef = _elementRef;
24
+ this._optionsService = _optionsService;
25
+ this._state = {};
26
+ this.config = {};
27
+ this.show = true;
28
+ this.showTitle = true;
29
+ this.transitionDuration = 0.5;
30
+ this.left = 'auto';
31
+ this.top = 'auto';
32
+ this.right = 'auto';
33
+ this.bottom = 'auto';
34
+ this.width = 'auto';
35
+ this.height = 'auto';
36
+ }
37
+ ngOnChanges() {
38
+ this._setOptions();
39
+ }
40
+ ngOnDestroy() {
41
+ this._removeOption();
42
+ }
43
+ _setOptions() {
44
+ this._checkFormatterTemplate();
45
+ const config = assignDefined(this._state, {
46
+ show: this.show,
47
+ name: this.trigger,
48
+ orient: this.orient,
49
+ itemSize: this.itemSize,
50
+ itemGap: this.itemGap,
51
+ showTitle: this.showTitle,
52
+ label: this.label,
53
+ feature: this.feature,
54
+ iconStyle: this.iconStyle,
55
+ zlevel: this.zlevel,
56
+ z: this.z,
57
+ transitionDuration: this.transitionDuration,
58
+ left: this.left,
59
+ top: this.top,
60
+ right: this.right,
61
+ bottom: this.bottom,
62
+ width: this.width,
63
+ height: this.height,
64
+ }, this.config ? this.config : {});
65
+ // set toolbox configuration in parent chart and render new configurations
66
+ this._optionsService.setOption('toolbox', config);
67
+ }
68
+ _removeOption() {
69
+ this._optionsService.clearOption('toolbox');
70
+ }
71
+ _checkFormatterTemplate() {
72
+ if (this.formatterTemplate) {
73
+ this.feature = {
74
+ ...this.feature,
75
+ dataView: {
76
+ ...this.feature.dataView,
77
+ optionToContent: this._optionToContentFormatter(),
78
+ },
79
+ };
80
+ }
81
+ }
82
+ _optionToContentFormatter() {
83
+ return () => {
84
+ this._changeDetectorRef.markForCheck();
85
+ return this._elementRef.nativeElement.innerHTML;
86
+ };
87
+ }
88
+ }
89
+ /** @nocollapse */ /** @nocollapse */ TdChartToolboxComponent.ɵfac = function TdChartToolboxComponent_Factory(t) { return new (t || TdChartToolboxComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i1.TdChartOptionsService)); };
90
+ /** @nocollapse */ /** @nocollapse */ TdChartToolboxComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: TdChartToolboxComponent, selectors: [["td-chart-toolbox"]], contentQueries: function TdChartToolboxComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
91
+ i0.ɵɵcontentQuery(dirIndex, TdChartViewDataFormatterDirective, 5, TemplateRef);
92
+ } if (rf & 2) {
93
+ let _t;
94
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.formatterTemplate = _t.first);
95
+ } }, viewQuery: function TdChartToolboxComponent_Query(rf, ctx) { if (rf & 1) {
96
+ i0.ɵɵviewQuery(_c0, 7);
97
+ } if (rf & 2) {
98
+ let _t;
99
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fullTemplate = _t.first);
100
+ } }, inputs: { config: "config", show: "show", trigger: "trigger", orient: "orient", itemSize: "itemSize", itemGap: "itemGap", showTitle: "showTitle", label: "label", feature: "feature", iconStyle: "iconStyle", zlevel: "zlevel", z: "z", transitionDuration: "transitionDuration", left: "left", top: "top", right: "right", bottom: "bottom", width: "width", height: "height" }, features: [i0.ɵɵNgOnChangesFeature], decls: 2, vars: 1, consts: [[3, "ngTemplateOutlet"], ["toolboxContent", ""]], template: function TdChartToolboxComponent_Template(rf, ctx) { if (rf & 1) {
101
+ i0.ɵɵtemplate(0, TdChartToolboxComponent_ng_template_0_Template, 0, 0, "ng-template", 0, 1, i0.ɵɵtemplateRefExtractor);
102
+ } if (rf & 2) {
103
+ i0.ɵɵproperty("ngTemplateOutlet", ctx.formatterTemplate);
104
+ } }, directives: [i2.NgTemplateOutlet], encapsulation: 2, changeDetection: 0 });
105
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdChartToolboxComponent, [{
106
+ type: Component,
107
+ args: [{ selector: 'td-chart-toolbox', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template #toolboxContent [ngTemplateOutlet]=\"formatterTemplate\"></ng-template>\n" }]
108
+ }], function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i1.TdChartOptionsService }]; }, { config: [{
109
+ type: Input
110
+ }], show: [{
111
+ type: Input
112
+ }], trigger: [{
113
+ type: Input
114
+ }], orient: [{
115
+ type: Input
116
+ }], itemSize: [{
117
+ type: Input
118
+ }], itemGap: [{
119
+ type: Input
120
+ }], showTitle: [{
121
+ type: Input
122
+ }], label: [{
123
+ type: Input
124
+ }], feature: [{
125
+ type: Input
126
+ }], iconStyle: [{
127
+ type: Input
128
+ }], zlevel: [{
129
+ type: Input
130
+ }], z: [{
131
+ type: Input
132
+ }], transitionDuration: [{
133
+ type: Input
134
+ }], left: [{
135
+ type: Input
136
+ }], top: [{
137
+ type: Input
138
+ }], right: [{
139
+ type: Input
140
+ }], bottom: [{
141
+ type: Input
142
+ }], width: [{
143
+ type: Input
144
+ }], height: [{
145
+ type: Input
146
+ }], formatterTemplate: [{
147
+ type: ContentChild,
148
+ args: [TdChartViewDataFormatterDirective, { read: TemplateRef }]
149
+ }], fullTemplate: [{
150
+ type: ViewChild,
151
+ args: ['toolboxContent', { static: true }]
152
+ }] }); })();
153
+
154
+ const TOOLBOX_MODULE_COMPONENTS = [TdChartToolboxComponent, TdChartViewDataFormatterDirective];
155
+ class CovalentToolboxEchartsModule {
156
+ }
157
+ /** @nocollapse */ /** @nocollapse */ CovalentToolboxEchartsModule.ɵfac = function CovalentToolboxEchartsModule_Factory(t) { return new (t || CovalentToolboxEchartsModule)(); };
158
+ /** @nocollapse */ /** @nocollapse */ CovalentToolboxEchartsModule.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: CovalentToolboxEchartsModule });
159
+ /** @nocollapse */ /** @nocollapse */ CovalentToolboxEchartsModule.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ imports: [[CommonModule]] });
160
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CovalentToolboxEchartsModule, [{
161
+ type: NgModule,
162
+ args: [{
163
+ imports: [CommonModule],
164
+ declarations: [TOOLBOX_MODULE_COMPONENTS],
165
+ exports: [TOOLBOX_MODULE_COMPONENTS],
166
+ }]
167
+ }], null, null); })();
168
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CovalentToolboxEchartsModule, { declarations: [TdChartToolboxComponent, TdChartViewDataFormatterDirective], imports: [CommonModule], exports: [TdChartToolboxComponent, TdChartViewDataFormatterDirective] }); })();
169
+
170
+ /**
171
+ * Generated bundle index. Do not edit.
172
+ */
173
+
174
+ export { CovalentToolboxEchartsModule, TOOLBOX_MODULE_COMPONENTS, TdChartToolboxComponent, TdChartViewDataFormatterDirective };
175
+ //# sourceMappingURL=covalent-echarts-toolbox.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"covalent-echarts-toolbox.mjs","sources":["../../../../src/platform/echarts/toolbox/toolbox.component.ts","../../../../src/platform/echarts/toolbox/toolbox.component.html","../../../../src/platform/echarts/toolbox/toolbox.module.ts","../../../../src/platform/echarts/toolbox/covalent-echarts-toolbox.ts"],"sourcesContent":["import {\n Component,\n Input,\n Directive,\n TemplateRef,\n ChangeDetectionStrategy,\n ElementRef,\n ChangeDetectorRef,\n OnChanges,\n ContentChild,\n ViewChild,\n OnDestroy,\n} from '@angular/core';\n\nimport {\n TdChartOptionsService,\n assignDefined,\n ITdLabel,\n ITdShadow,\n ITdItemStyle,\n TdTextPosition,\n TdTextAlign,\n} from '@covalent/echarts/base';\n\nexport type TdToolboxOrient = 'horizontal' | 'vertical';\nexport type TdImageType = 'png' | 'jpeg';\n\nexport interface ITdAcceptedBrushTypes {\n rect?: string;\n polygon?: string;\n lineX?: string;\n lineY?: string;\n keep?: string;\n clear?: string;\n}\n\nexport interface ITdAcceptedMagicTypes {\n line?: string;\n bar?: string;\n stack?: string;\n tiled?: string;\n}\n\nexport interface ITdToolboxIconEmphasis extends ITdItemStyle, ITdShadow {}\n\nexport interface ITdFeatureIconStyle extends ITdItemStyle, ITdShadow {\n textPosition?: TdTextPosition;\n textAlign?: TdTextAlign;\n emphasis?: ITdToolboxIconEmphasis;\n}\n\nexport interface ITdZoomTitles {\n zoom?: string;\n back?: string;\n}\n\nexport interface ITdSaveAsImage {\n type?: TdImageType;\n name?: string;\n backgroundColor?: any;\n excludeComponents?: string[]; // defaults to ['toolbox']\n show?: boolean;\n title?: string;\n icon?: string;\n iconStyle?: ITdFeatureIconStyle;\n pixelRatio?: number;\n}\n\nexport interface ITdRestore {\n show?: boolean;\n title?: string;\n icon?: string;\n iconStyle?: ITdFeatureIconStyle;\n}\n\nexport interface ITdDataView {\n show?: boolean;\n title?: string;\n icon?: string;\n iconStyle?: ITdFeatureIconStyle;\n readOnly?: boolean;\n optionToContent?: Function;\n contentToOption?: Function;\n lang?: string[]; // Defaults to Chinese, there are 3 names in data view, which are ['data view', 'turn off' and 'refresh'].\n textareaColor?: string;\n textareaBorderColor?: string;\n textColor?: string;\n buttonColor?: string;\n buttonTextColor?: string;\n}\n\nexport interface ITdDataZoom {\n show?: boolean;\n title?: ITdZoomTitles;\n icon?: ITdZoomTitles;\n iconStyle?: ITdFeatureIconStyle;\n xAxisIndex?: number | number[] | boolean;\n yAxisIndex?: number | number[] | boolean;\n}\n\nexport interface ITdMagicType {\n show?: boolean;\n type?: string[]; // only expects 'line' | 'bar' | 'stack' | 'tiled';\n title?: ITdAcceptedMagicTypes;\n icon?: ITdAcceptedMagicTypes;\n iconStyle?: ITdFeatureIconStyle;\n option?: {\n line?: object;\n bar?: object;\n stack?: object;\n tiled?: object;\n };\n seriesIndex?: {\n line?: any[];\n bar?: any[];\n stack?: any[];\n tiled?: any[];\n };\n}\n\nexport interface ITdBrush {\n type?: any[];\n icon?: ITdAcceptedBrushTypes;\n title?: ITdAcceptedBrushTypes;\n}\n\nexport interface ITdToolboxFeature {\n saveAsImage?: ITdSaveAsImage;\n restore?: ITdRestore;\n dataView?: ITdDataView;\n dataZoom?: ITdDataZoom;\n magicType?: ITdMagicType;\n brush?: ITdBrush;\n}\n\n@Directive({\n selector: 'ng-template[tdViewDataFormatter]',\n})\nexport class TdChartViewDataFormatterDirective {}\n\n@Component({\n selector: 'td-chart-toolbox',\n templateUrl: './toolbox.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TdChartToolboxComponent implements OnChanges, OnDestroy {\n private _state: any = {};\n\n @Input() config: any = {};\n\n @Input() show: boolean = true;\n @Input() trigger: string;\n @Input() orient: TdToolboxOrient;\n @Input() itemSize: number;\n @Input() itemGap: number;\n @Input() showTitle: boolean = true;\n @Input() label: ITdLabel;\n @Input() feature: ITdToolboxFeature;\n @Input() iconStyle: ITdFeatureIconStyle;\n @Input() zlevel: number;\n @Input() z: number;\n @Input() transitionDuration: number = 0.5;\n @Input() left: string | number = 'auto';\n @Input() top: string | number = 'auto';\n @Input() right: string | number = 'auto';\n @Input() bottom: string | number = 'auto';\n @Input() width: string | number = 'auto';\n @Input() height: string | number = 'auto';\n\n @ContentChild(TdChartViewDataFormatterDirective, { read: TemplateRef })\n formatterTemplate: TemplateRef<any>;\n @ViewChild('toolboxContent', { static: true }) fullTemplate: TemplateRef<any>;\n\n constructor(\n private _changeDetectorRef: ChangeDetectorRef,\n private _elementRef: ElementRef,\n private _optionsService: TdChartOptionsService,\n ) {}\n\n ngOnChanges(): void {\n this._setOptions();\n }\n\n ngOnDestroy(): void {\n this._removeOption();\n }\n\n private _setOptions(): void {\n this._checkFormatterTemplate();\n\n const config: any = assignDefined(\n this._state,\n {\n show: this.show,\n name: this.trigger,\n orient: this.orient,\n itemSize: this.itemSize,\n itemGap: this.itemGap,\n showTitle: this.showTitle,\n label: this.label,\n feature: this.feature,\n iconStyle: this.iconStyle,\n zlevel: this.zlevel,\n z: this.z,\n transitionDuration: this.transitionDuration,\n left: this.left,\n top: this.top,\n right: this.right,\n bottom: this.bottom,\n width: this.width,\n height: this.height,\n },\n this.config ? this.config : {},\n );\n // set toolbox configuration in parent chart and render new configurations\n this._optionsService.setOption('toolbox', config);\n }\n\n private _removeOption(): void {\n this._optionsService.clearOption('toolbox');\n }\n\n private _checkFormatterTemplate(): void {\n if (this.formatterTemplate) {\n this.feature = {\n ...this.feature,\n dataView: {\n ...this.feature.dataView,\n optionToContent: this._optionToContentFormatter(),\n },\n };\n }\n }\n\n private _optionToContentFormatter(): () => string {\n return () => {\n this._changeDetectorRef.markForCheck();\n return (<HTMLElement>this._elementRef.nativeElement).innerHTML;\n };\n }\n}\n","<ng-template #toolboxContent [ngTemplateOutlet]=\"formatterTemplate\"></ng-template>\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { TdChartToolboxComponent, TdChartViewDataFormatterDirective } from './toolbox.component';\n\nexport const TOOLBOX_MODULE_COMPONENTS: Type<any>[] = [TdChartToolboxComponent, TdChartViewDataFormatterDirective];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [TOOLBOX_MODULE_COMPONENTS],\n exports: [TOOLBOX_MODULE_COMPONENTS],\n})\nexport class CovalentToolboxEchartsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;MA0Ia,iCAAiC;;wJAAjC,iCAAiC;sIAAjC,iCAAiC;uFAAjC,iCAAiC;cAH7C,SAAS;eAAC;gBACT,QAAQ,EAAE,kCAAkC;aAC7C;;MAQY,uBAAuB;IA4BlC,YACU,kBAAqC,EACrC,WAAuB,EACvB,eAAsC;QAFtC,uBAAkB,GAAlB,kBAAkB,CAAmB;QACrC,gBAAW,GAAX,WAAW,CAAY;QACvB,oBAAe,GAAf,eAAe,CAAuB;QA9BxC,WAAM,GAAQ,EAAE,CAAC;QAEhB,WAAM,GAAQ,EAAE,CAAC;QAEjB,SAAI,GAAY,IAAI,CAAC;QAKrB,cAAS,GAAY,IAAI,CAAC;QAM1B,uBAAkB,GAAW,GAAG,CAAC;QACjC,SAAI,GAAoB,MAAM,CAAC;QAC/B,QAAG,GAAoB,MAAM,CAAC;QAC9B,UAAK,GAAoB,MAAM,CAAC;QAChC,WAAM,GAAoB,MAAM,CAAC;QACjC,UAAK,GAAoB,MAAM,CAAC;QAChC,WAAM,GAAoB,MAAM,CAAC;KAUtC;IAEJ,WAAW;QACT,IAAI,CAAC,WAAW,EAAE,CAAC;KACpB;IAED,WAAW;QACT,IA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AC;gBACvB,YAAY,EAAE,CAAC,yBAAyB,CAAC;gBACzC,OAAO,EAAE,CAAC,yBAAyB,CAAC;aACrC;;wFACY,4BAA4B,mBAPc,uBAAuB,EAAE,iCAAiC,aAGrG,YAAY,aAH+B,uBAAuB,EAAE,iCAAiC;;ACLjH;;;;;;"}
@@ -0,0 +1,302 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Directive, TemplateRef, Component, ChangeDetectionStrategy, Input, ContentChild, ViewChild, NgModule } from '@angular/core';
3
+ import * as i2 from '@angular/common';
4
+ import { CommonModule } from '@angular/common';
5
+ import * as i1 from '@covalent/echarts/base';
6
+ import { assignDefined } from '@covalent/echarts/base';
7
+
8
+ const _c0$1 = ["tooltipContent"];
9
+ function TdChartTooltipComponent_ng_template_0_Template(rf, ctx) { }
10
+ class TdTooltipContext {
11
+ }
12
+ class TdChartTooltipFormatterDirective {
13
+ }
14
+ /** @nocollapse */ /** @nocollapse */ TdChartTooltipFormatterDirective.ɵfac = function TdChartTooltipFormatterDirective_Factory(t) { return new (t || TdChartTooltipFormatterDirective)(); };
15
+ /** @nocollapse */ /** @nocollapse */ TdChartTooltipFormatterDirective.ɵdir = /** @pureOrBreakMyCode */ i0.ɵɵdefineDirective({ type: TdChartTooltipFormatterDirective, selectors: [["ng-template", "tdTooltipFormatter", ""]] });
16
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdChartTooltipFormatterDirective, [{
17
+ type: Directive,
18
+ args: [{
19
+ selector: 'ng-template[tdTooltipFormatter]',
20
+ }]
21
+ }], null, null); })();
22
+ class TdChartTooltipComponent {
23
+ constructor(_changeDetectorRef, _elementRef, _optionsService) {
24
+ this._changeDetectorRef = _changeDetectorRef;
25
+ this._elementRef = _elementRef;
26
+ this._optionsService = _optionsService;
27
+ this._state = {};
28
+ this._context = new TdTooltipContext();
29
+ this.config = {};
30
+ this.show = true;
31
+ this.trigger = 'axis';
32
+ this.showContent = true;
33
+ this.alwaysShowContent = false;
34
+ this.triggerOn = 'mousemove|click';
35
+ this.showDelay = 0;
36
+ this.hideDelay = 0;
37
+ this.enterable = false;
38
+ this.confine = false;
39
+ this.transitionDuration = 0.5;
40
+ this.backgroundColor = 'rgba(50,50,50,0.7)'; // series
41
+ this.borderColor = '#333'; // series
42
+ this.borderWidth = 0; // series
43
+ this.padding = 5; // series
44
+ this.textStyle = {
45
+ // series
46
+ color: '#FFF',
47
+ };
48
+ }
49
+ ngOnChanges() {
50
+ this._setOptions();
51
+ }
52
+ ngOnDestroy() {
53
+ this._removeOption();
54
+ }
55
+ _setOptions() {
56
+ const config = assignDefined(this._state, {
57
+ show: this.show,
58
+ trigger: this.trigger,
59
+ axisPointer: this.axisPointer,
60
+ showContent: this.showContent,
61
+ alwaysShowContent: this.alwaysShowContent,
62
+ triggerOn: this.triggerOn,
63
+ showDelay: this.showDelay,
64
+ hideDelay: this.hideDelay,
65
+ enterable: this.enterable,
66
+ confine: this.confine,
67
+ transitionDuration: this.transitionDuration,
68
+ position: this.position,
69
+ formatter: this.formatter ? this.formatter : this.formatterTemplate ? this._formatter() : undefined,
70
+ backgroundColor: this.backgroundColor,
71
+ borderColor: this.borderColor,
72
+ borderWidth: this.borderWidth,
73
+ padding: this.padding,
74
+ textStyle: this.textStyle,
75
+ extraCssText: this.extraCssText,
76
+ }, this.config ? this.config : {});
77
+ // set tooltip configuration in parent chart and render new configurations
78
+ this._optionsService.setOption('tooltip', config);
79
+ }
80
+ _removeOption() {
81
+ this._optionsService.clearOption('tooltip');
82
+ }
83
+ _formatter() {
84
+ return (params, ticket, callback) => {
85
+ this._context = {
86
+ $implicit: params,
87
+ ticket,
88
+ };
89
+ // timeout set since we need to set the HTML at the end of the angular lifecycle when
90
+ // the tooltip delay is more than 0
91
+ setTimeout(() => {
92
+ callback(ticket, this._elementRef.nativeElement.innerHTML);
93
+ });
94
+ this._changeDetectorRef.markForCheck();
95
+ return this._elementRef.nativeElement.innerHTML;
96
+ };
97
+ }
98
+ }
99
+ /** @nocollapse */ /** @nocollapse */ TdChartTooltipComponent.ɵfac = function TdChartTooltipComponent_Factory(t) { return new (t || TdChartTooltipComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i1.TdChartOptionsService)); };
100
+ /** @nocollapse */ /** @nocollapse */ TdChartTooltipComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: TdChartTooltipComponent, selectors: [["td-chart-tooltip"]], contentQueries: function TdChartTooltipComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
101
+ i0.ɵɵcontentQuery(dirIndex, TdChartTooltipFormatterDirective, 7, TemplateRef);
102
+ } if (rf & 2) {
103
+ let _t;
104
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.formatterTemplate = _t.first);
105
+ } }, viewQuery: function TdChartTooltipComponent_Query(rf, ctx) { if (rf & 1) {
106
+ i0.ɵɵviewQuery(_c0$1, 7);
107
+ } if (rf & 2) {
108
+ let _t;
109
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fullTemplate = _t.first);
110
+ } }, inputs: { config: "config", show: "show", trigger: "trigger", axisPointer: "axisPointer", showContent: "showContent", alwaysShowContent: "alwaysShowContent", triggerOn: "triggerOn", showDelay: "showDelay", hideDelay: "hideDelay", enterable: "enterable", renderMode: "renderMode", confine: "confine", transitionDuration: "transitionDuration", position: "position", formatter: "formatter", backgroundColor: "backgroundColor", borderColor: "borderColor", borderWidth: "borderWidth", padding: "padding", textStyle: "textStyle", extraCssText: "extraCssText" }, features: [i0.ɵɵNgOnChangesFeature], decls: 2, vars: 2, consts: [[3, "ngTemplateOutlet", "ngTemplateOutletContext"], ["tooltipContent", ""]], template: function TdChartTooltipComponent_Template(rf, ctx) { if (rf & 1) {
111
+ i0.ɵɵtemplate(0, TdChartTooltipComponent_ng_template_0_Template, 0, 0, "ng-template", 0, 1, i0.ɵɵtemplateRefExtractor);
112
+ } if (rf & 2) {
113
+ i0.ɵɵproperty("ngTemplateOutlet", ctx.formatterTemplate)("ngTemplateOutletContext", ctx._context);
114
+ } }, directives: [i2.NgTemplateOutlet], encapsulation: 2, changeDetection: 0 });
115
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdChartTooltipComponent, [{
116
+ type: Component,
117
+ args: [{ selector: 'td-chart-tooltip', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template #tooltipContent [ngTemplateOutlet]=\"formatterTemplate\" [ngTemplateOutletContext]=\"_context\"></ng-template>\n" }]
118
+ }], function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i1.TdChartOptionsService }]; }, { config: [{
119
+ type: Input
120
+ }], show: [{
121
+ type: Input
122
+ }], trigger: [{
123
+ type: Input
124
+ }], axisPointer: [{
125
+ type: Input
126
+ }], showContent: [{
127
+ type: Input
128
+ }], alwaysShowContent: [{
129
+ type: Input
130
+ }], triggerOn: [{
131
+ type: Input
132
+ }], showDelay: [{
133
+ type: Input
134
+ }], hideDelay: [{
135
+ type: Input
136
+ }], enterable: [{
137
+ type: Input
138
+ }], renderMode: [{
139
+ type: Input
140
+ }], confine: [{
141
+ type: Input
142
+ }], transitionDuration: [{
143
+ type: Input
144
+ }], position: [{
145
+ type: Input
146
+ }], formatter: [{
147
+ type: Input
148
+ }], backgroundColor: [{
149
+ type: Input
150
+ }], borderColor: [{
151
+ type: Input
152
+ }], borderWidth: [{
153
+ type: Input
154
+ }], padding: [{
155
+ type: Input
156
+ }], textStyle: [{
157
+ type: Input
158
+ }], extraCssText: [{
159
+ type: Input
160
+ }], formatterTemplate: [{
161
+ type: ContentChild,
162
+ args: [TdChartTooltipFormatterDirective, { read: TemplateRef, static: true }]
163
+ }], fullTemplate: [{
164
+ type: ViewChild,
165
+ args: ['tooltipContent', { static: true }]
166
+ }] }); })();
167
+
168
+ const _c0 = ["tooltipContent"];
169
+ function TdSeriesTooltipComponent_ng_template_0_Template(rf, ctx) { }
170
+ class TdSeriesTooltipComponent {
171
+ constructor(_changeDetectorRef, _elementRef, _seriesComponent) {
172
+ this._changeDetectorRef = _changeDetectorRef;
173
+ this._elementRef = _elementRef;
174
+ this._seriesComponent = _seriesComponent;
175
+ this._state = {};
176
+ this._context = new TdTooltipContext();
177
+ this.backgroundColor = 'rgba(50,50,50,0.7)';
178
+ this.borderColor = '#333';
179
+ this.borderWidth = 0;
180
+ this.padding = 5;
181
+ this.textStyle = {
182
+ color: '#FFF',
183
+ };
184
+ }
185
+ ngOnChanges() {
186
+ this._setOptions();
187
+ }
188
+ ngOnDestroy() {
189
+ this._removeOption();
190
+ }
191
+ _setOptions() {
192
+ const config = assignDefined(this._state, {
193
+ position: this.position,
194
+ backgroundColor: this.backgroundColor,
195
+ borderColor: this.borderColor,
196
+ borderWidth: this.borderWidth,
197
+ padding: this.padding,
198
+ textStyle: this.textStyle,
199
+ extraCssText: this.extraCssText,
200
+ formatter: this.formatter ? this.formatter : this.formatterTemplate ? this._formatter() : undefined,
201
+ }, this.config ? this.config : {});
202
+ // set series tooltip configuration in parent chart and render new configurations
203
+ this._seriesComponent.setStateOption('tooltip', config);
204
+ }
205
+ /**
206
+ * Formatter for tooltip
207
+ *
208
+ */
209
+ _formatter() {
210
+ return (params, ticket, callback) => {
211
+ this._context = {
212
+ $implicit: params,
213
+ ticket,
214
+ };
215
+ // timeout set since we need to set the HTML at the end of the angular lifecycle when
216
+ // the tooltip delay is more than 0
217
+ setTimeout(() => {
218
+ callback(ticket, this._elementRef.nativeElement.innerHTML);
219
+ });
220
+ this._changeDetectorRef.markForCheck();
221
+ return this._elementRef.nativeElement.innerHTML;
222
+ };
223
+ }
224
+ _removeOption() {
225
+ this._seriesComponent.removeStateOption('tooltip');
226
+ }
227
+ }
228
+ /** @nocollapse */ /** @nocollapse */ TdSeriesTooltipComponent.ɵfac = function TdSeriesTooltipComponent_Factory(t) { return new (t || TdSeriesTooltipComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i1.TdSeriesDirective)); };
229
+ /** @nocollapse */ /** @nocollapse */ TdSeriesTooltipComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: TdSeriesTooltipComponent, selectors: [["td-chart-series-tooltip"]], contentQueries: function TdSeriesTooltipComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
230
+ i0.ɵɵcontentQuery(dirIndex, TdChartTooltipFormatterDirective, 7, TemplateRef);
231
+ } if (rf & 2) {
232
+ let _t;
233
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.formatterTemplate = _t.first);
234
+ } }, viewQuery: function TdSeriesTooltipComponent_Query(rf, ctx) { if (rf & 1) {
235
+ i0.ɵɵviewQuery(_c0, 7);
236
+ } if (rf & 2) {
237
+ let _t;
238
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fullTemplate = _t.first);
239
+ } }, inputs: { config: "config", formatter: "formatter", position: "position", backgroundColor: "backgroundColor", borderColor: "borderColor", borderWidth: "borderWidth", padding: "padding", textStyle: "textStyle", extraCssText: "extraCssText" }, features: [i0.ɵɵNgOnChangesFeature], decls: 2, vars: 2, consts: [[3, "ngTemplateOutlet", "ngTemplateOutletContext"], ["tooltipContent", ""]], template: function TdSeriesTooltipComponent_Template(rf, ctx) { if (rf & 1) {
240
+ i0.ɵɵtemplate(0, TdSeriesTooltipComponent_ng_template_0_Template, 0, 0, "ng-template", 0, 1, i0.ɵɵtemplateRefExtractor);
241
+ } if (rf & 2) {
242
+ i0.ɵɵproperty("ngTemplateOutlet", ctx.formatterTemplate)("ngTemplateOutletContext", ctx._context);
243
+ } }, directives: [i2.NgTemplateOutlet], encapsulation: 2, changeDetection: 0 });
244
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdSeriesTooltipComponent, [{
245
+ type: Component,
246
+ args: [{ selector: 'td-chart-series-tooltip', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template #tooltipContent [ngTemplateOutlet]=\"formatterTemplate\" [ngTemplateOutletContext]=\"_context\"></ng-template>\n" }]
247
+ }], function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i1.TdSeriesDirective }]; }, { config: [{
248
+ type: Input
249
+ }], formatter: [{
250
+ type: Input
251
+ }], position: [{
252
+ type: Input
253
+ }], backgroundColor: [{
254
+ type: Input
255
+ }], borderColor: [{
256
+ type: Input
257
+ }], borderWidth: [{
258
+ type: Input
259
+ }], padding: [{
260
+ type: Input
261
+ }], textStyle: [{
262
+ type: Input
263
+ }], extraCssText: [{
264
+ type: Input
265
+ }], formatterTemplate: [{
266
+ type: ContentChild,
267
+ args: [TdChartTooltipFormatterDirective, { read: TemplateRef, static: true }]
268
+ }], fullTemplate: [{
269
+ type: ViewChild,
270
+ args: ['tooltipContent', { static: true }]
271
+ }] }); })();
272
+
273
+ const TOOLTIP_MODULE_COMPONENTS = [
274
+ TdChartTooltipComponent,
275
+ TdChartTooltipFormatterDirective,
276
+ TdSeriesTooltipComponent,
277
+ ];
278
+ class CovalentTooltipEchartsModule {
279
+ }
280
+ /** @nocollapse */ /** @nocollapse */ CovalentTooltipEchartsModule.ɵfac = function CovalentTooltipEchartsModule_Factory(t) { return new (t || CovalentTooltipEchartsModule)(); };
281
+ /** @nocollapse */ /** @nocollapse */ CovalentTooltipEchartsModule.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: CovalentTooltipEchartsModule });
282
+ /** @nocollapse */ /** @nocollapse */ CovalentTooltipEchartsModule.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ imports: [[CommonModule]] });
283
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CovalentTooltipEchartsModule, [{
284
+ type: NgModule,
285
+ args: [{
286
+ imports: [CommonModule],
287
+ declarations: [TOOLTIP_MODULE_COMPONENTS],
288
+ exports: [TOOLTIP_MODULE_COMPONENTS],
289
+ }]
290
+ }], null, null); })();
291
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CovalentTooltipEchartsModule, { declarations: [TdChartTooltipComponent,
292
+ TdChartTooltipFormatterDirective,
293
+ TdSeriesTooltipComponent], imports: [CommonModule], exports: [TdChartTooltipComponent,
294
+ TdChartTooltipFormatterDirective,
295
+ TdSeriesTooltipComponent] }); })();
296
+
297
+ /**
298
+ * Generated bundle index. Do not edit.
299
+ */
300
+
301
+ export { CovalentTooltipEchartsModule, TOOLTIP_MODULE_COMPONENTS, TdChartTooltipComponent, TdChartTooltipFormatterDirective, TdSeriesTooltipComponent, TdTooltipContext };
302
+ //# sourceMappingURL=covalent-echarts-tooltip.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"covalent-echarts-tooltip.mjs","sources":["../../../../src/platform/echarts/tooltip/tooltip.component.ts","../../../../src/platform/echarts/tooltip/tooltip.component.html","../../../../src/platform/echarts/tooltip/series-tooltip.component.ts","../../../../src/platform/echarts/tooltip/tooltip.module.ts","../../../../src/platform/echarts/tooltip/covalent-echarts-tooltip.ts"],"sourcesContent":["import {\n Component,\n Input,\n Directive,\n TemplateRef,\n ChangeDetectionStrategy,\n ElementRef,\n ChangeDetectorRef,\n OnChanges,\n ContentChild,\n ViewChild,\n OnDestroy,\n} from '@angular/core';\n\nimport {\n TdChartOptionsService,\n assignDefined,\n TdTooltipTrigger,\n TdTooltipTriggerOn,\n TdTooltipPosition,\n} from '@covalent/echarts/base';\n\nexport class TdTooltipContext {\n $implicit: any;\n ticket: string;\n}\n\n@Directive({\n selector: 'ng-template[tdTooltipFormatter]',\n})\nexport class TdChartTooltipFormatterDirective {}\n\n@Component({\n selector: 'td-chart-tooltip',\n templateUrl: './tooltip.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TdChartTooltipComponent implements OnChanges, OnDestroy {\n private _state: any = {};\n\n _context: TdTooltipContext = new TdTooltipContext();\n\n @Input() config: any = {};\n\n @Input() show: boolean = true;\n @Input() trigger: TdTooltipTrigger = 'axis';\n @Input() axisPointer: any;\n @Input() showContent: boolean = true;\n @Input() alwaysShowContent: boolean = false;\n @Input() triggerOn: TdTooltipTriggerOn = 'mousemove|click';\n @Input() showDelay: number = 0;\n @Input() hideDelay: number = 0;\n @Input() enterable: boolean = false;\n @Input() renderMode: 'html' | 'richText';\n @Input() confine: boolean = false;\n @Input() transitionDuration: number = 0.5;\n @Input() position: TdTooltipPosition; // series\n @Input() formatter: string | Function; // series\n @Input() backgroundColor: string = 'rgba(50,50,50,0.7)'; // series\n @Input() borderColor: string = '#333'; // series\n @Input() borderWidth: number = 0; // series\n @Input() padding: number = 5; // series\n @Input() textStyle: any = {\n // series\n color: '#FFF',\n };\n @Input() extraCssText: string; // series\n\n @ContentChild(TdChartTooltipFormatterDirective, { read: TemplateRef, static: true })\n formatterTemplate: TemplateRef<any>;\n @ViewChild('tooltipContent', { static: true }) fullTemplate: TemplateRef<any>;\n\n constructor(\n private _changeDetectorRef: ChangeDetectorRef,\n private _elementRef: ElementRef,\n private _optionsService: TdChartOptionsService,\n ) {}\n\n ngOnChanges(): void {\n this._setOptions();\n }\n\n ngOnDestroy(): void {\n this._removeOption();\n }\n\n private _setOptions(): void {\n const config: any = assignDefined(\n this._state,\n {\n show: this.show,\n trigger: this.trigger,\n axisPointer: this.axisPointer,\n showContent: this.showContent,\n alwaysShowContent: this.alwaysShowContent,\n triggerOn: this.triggerOn,\n showDelay: this.showDelay,\n hideDelay: this.hideDelay,\n enterable: this.enterable,\n confine: this.confine,\n transitionDuration: this.transitionDuration,\n position: this.position,\n formatter: this.formatter ? this.formatter : this.formatterTemplate ? this._formatter() : undefined,\n backgroundColor: this.backgroundColor,\n borderColor: this.borderColor,\n borderWidth: this.borderWidth,\n padding: this.padding,\n textStyle: this.textStyle,\n extraCssText: this.extraCssText,\n },\n this.config ? this.config : {},\n );\n // set tooltip configuration in parent chart and render new configurations\n this._optionsService.setOption('tooltip', config);\n }\n\n private _removeOption(): void {\n this._optionsService.clearOption('tooltip');\n }\n\n private _formatter(): (params: any, ticket: any, callback: (ticket: string, html: string) => void) => string {\n return (params: any, ticket: any, callback: (ticket: string, html: string) => void) => {\n this._context = {\n $implicit: params,\n ticket,\n };\n // timeout set since we need to set the HTML at the end of the angular lifecycle when\n // the tooltip delay is more than 0\n setTimeout(() => {\n callback(ticket, (<HTMLElement>this._elementRef.nativeElement).innerHTML);\n });\n this._changeDetectorRef.markForCheck();\n return (<HTMLElement>this._elementRef.nativeElement).innerHTML;\n };\n }\n}\n","<ng-template #tooltipContent [ngTemplateOutlet]=\"formatterTemplate\" [ngTemplateOutletContext]=\"_context\"></ng-template>\n","import {\n Component,\n Input,\n ContentChild,\n ViewChild,\n TemplateRef,\n ChangeDetectorRef,\n ElementRef,\n ChangeDetectionStrategy,\n OnChanges,\n OnDestroy,\n} from '@angular/core';\n\nimport { assignDefined, TdSeriesDirective } from '@covalent/echarts/base';\n\nimport { TdChartTooltipFormatterDirective, TdTooltipContext } from './tooltip.component';\n\n@Component({\n selector: 'td-chart-series-tooltip',\n templateUrl: './tooltip.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TdSeriesTooltipComponent implements OnChanges, OnDestroy {\n private _state: any = {};\n\n _context: TdTooltipContext = new TdTooltipContext();\n\n @Input() config: any;\n\n @Input() formatter: any;\n // Parent tooltip trigger must be set to 'item' to render these properties\n @Input() position: string | string[] | number[];\n @Input() backgroundColor: string = 'rgba(50,50,50,0.7)';\n @Input() borderColor: string = '#333';\n @Input() borderWidth: number = 0;\n @Input() padding: number = 5;\n @Input() textStyle: any = {\n color: '#FFF',\n };\n @Input() extraCssText: string;\n\n @ContentChild(TdChartTooltipFormatterDirective, { read: TemplateRef, static: true })\n formatterTemplate: TemplateRef<any>;\n @ViewChild('tooltipContent', { static: true }) fullTemplate: TemplateRef<any>;\n\n constructor(\n private _changeDetectorRef: ChangeDetectorRef,\n private _elementRef: ElementRef,\n private _seriesComponent: TdSeriesDirective,\n ) {}\n\n ngOnChanges(): void {\n this._setOptions();\n }\n\n ngOnDestroy(): void {\n this._removeOption();\n }\n\n private _setOptions(): void {\n const config: any = assignDefined(\n this._state,\n {\n position: this.position,\n backgroundColor: this.backgroundColor,\n borderColor: this.borderColor,\n borderWidth: this.borderWidth,\n padding: this.padding,\n textStyle: this.textStyle,\n extraCssText: this.extraCssText,\n formatter: this.formatter ? this.formatter : this.formatterTemplate ? this._formatter() : undefined,\n },\n this.config ? this.config : {},\n );\n // set series tooltip configuration in parent chart and render new configurations\n this._seriesComponent.setStateOption('tooltip', config);\n }\n\n /**\n * Formatter for tooltip\n *\n */\n private _formatter(): (params: any, ticket: any, callback: (ticket: string, html: string) => void) => string {\n return (params: any, ticket: any, callback: (ticket: string, html: string) => void) => {\n this._context = {\n $implicit: params,\n ticket,\n };\n // timeout set since we need to set the HTML at the end of the angular lifecycle when\n // the tooltip delay is more than 0\n setTimeout(() => {\n callback(ticket, (<HTMLElement>this._elementRef.nativeElement).innerHTML);\n });\n this._changeDetectorRef.markForCheck();\n return (<HTMLElement>this._elementRef.nativeElement).innerHTML;\n };\n }\n\n private _removeOption(): void {\n this._seriesComponent.removeStateOption('tooltip');\n }\n}\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { TdChartTooltipComponent, TdChartTooltipFormatterDirective } from './tooltip.component';\nimport { TdSeriesTooltipComponent } from './series-tooltip.component';\n\nexport const TOOLTIP_MODULE_COMPONENTS: Type<any>[] = [\n TdChartTooltipComponent,\n TdChartTooltipFormatterDirective,\n TdSeriesTooltipComponent,\n];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [TOOLTIP_MODULE_COMPONENTS],\n exports: [TOOLTIP_MODULE_COMPONENTS],\n})\nexport class CovalentTooltipEchartsModule {}\n","/**\n *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