@covalent/echarts 4.0.0-beta.1 → 4.1.1-beta.3

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 (233) hide show
  1. package/README.md +4 -90
  2. package/bar/README.md +23 -21
  3. package/bar/bar.component.d.ts +27 -27
  4. package/bar/covalent-echarts-bar.d.ts +1 -1
  5. package/bar/{public-api.d.ts → public_api.d.ts} +0 -0
  6. package/base/README.md +26 -26
  7. package/base/axis/axis.component.d.ts +29 -29
  8. package/base/chart.component.d.ts +3 -3
  9. package/base/covalent-echarts-base.d.ts +1 -1
  10. package/base/dataset/dataset.component.d.ts +5 -5
  11. package/base/{public-api.d.ts → public_api.d.ts} +0 -0
  12. package/base/series/series.component.d.ts +15 -15
  13. package/base/{axis → src/axis}/README.md +19 -19
  14. package/base/{dataset → src/dataset}/README.md +19 -16
  15. package/covalent-echarts.d.ts +1 -1
  16. package/esm2020/bar/bar.component.mjs +95 -96
  17. package/esm2020/bar/bar.module.mjs +12 -13
  18. package/esm2020/bar/covalent-echarts-bar.mjs +2 -2
  19. package/esm2020/bar/public_api.mjs +3 -0
  20. package/esm2020/base/axis/axis.component.mjs +66 -66
  21. package/esm2020/base/axis/axis.interface.mjs +1 -1
  22. package/esm2020/base/axis/x-axis.component.mjs +45 -45
  23. package/esm2020/base/axis/y-axis.component.mjs +45 -45
  24. package/esm2020/base/base.module.mjs +13 -14
  25. package/esm2020/base/base.types.mjs +1 -1
  26. package/esm2020/base/chart-options.service.mjs +6 -6
  27. package/esm2020/base/chart.component.mjs +42 -38
  28. package/esm2020/base/covalent-echarts-base.mjs +2 -2
  29. package/esm2020/base/dataset/dataset.component.mjs +22 -22
  30. package/esm2020/base/public_api.mjs +10 -0
  31. package/esm2020/base/series/series.component.mjs +34 -34
  32. package/esm2020/base/series/series.interface.mjs +1 -1
  33. package/esm2020/base/themes/aqua-splash.mjs +31 -4
  34. package/esm2020/base/themes/california-coast.mjs +1 -1
  35. package/esm2020/base/themes/hawaiian-sunrise.mjs +1 -1
  36. package/esm2020/base/themes/passion-flower.mjs +1 -1
  37. package/esm2020/base/themes/razzleberry-pie.mjs +31 -4
  38. package/esm2020/base/themes/teradata-classic.mjs +31 -4
  39. package/esm2020/base/themes/teradata-default.mjs +1 -1
  40. package/esm2020/base/themes/urban-sunrise.mjs +1 -1
  41. package/esm2020/base/themes/volcanic-eruption.mjs +1 -1
  42. package/esm2020/base/utils/assign-defined.mjs +1 -1
  43. package/esm2020/base/utils/echarts.mjs +1 -1
  44. package/esm2020/base/utils/index.mjs +1 -1
  45. package/esm2020/covalent-echarts.mjs +2 -2
  46. package/esm2020/graph/covalent-echarts-graph.mjs +2 -2
  47. package/esm2020/graph/graph.component.mjs +129 -130
  48. package/esm2020/graph/graph.module.mjs +15 -14
  49. package/esm2020/graph/public_api.mjs +3 -0
  50. package/esm2020/line/covalent-echarts-line.mjs +2 -2
  51. package/esm2020/line/line.component.mjs +111 -112
  52. package/esm2020/line/line.module.mjs +12 -13
  53. package/esm2020/line/public_api.mjs +3 -0
  54. package/esm2020/map/covalent-echarts-map.mjs +2 -2
  55. package/esm2020/map/map.component.mjs +93 -94
  56. package/esm2020/map/map.module.mjs +12 -13
  57. package/esm2020/map/public_api.mjs +3 -0
  58. package/esm2020/pie/covalent-echarts-pie.mjs +2 -2
  59. package/esm2020/pie/pie.component.mjs +91 -92
  60. package/esm2020/pie/pie.module.mjs +12 -13
  61. package/esm2020/pie/public_api.mjs +3 -0
  62. package/esm2020/public_api.mjs +2 -0
  63. package/esm2020/sankey/covalent-echarts-sankey.mjs +2 -2
  64. package/esm2020/sankey/public_api.mjs +3 -0
  65. package/esm2020/sankey/sankey.component.mjs +83 -84
  66. package/esm2020/sankey/sankey.module.mjs +15 -14
  67. package/esm2020/scatter/covalent-echarts-scatter.mjs +2 -2
  68. package/esm2020/scatter/public_api.mjs +3 -0
  69. package/esm2020/scatter/scatter.component.mjs +101 -102
  70. package/esm2020/scatter/scatter.module.mjs +15 -14
  71. package/esm2020/toolbox/covalent-echarts-toolbox.mjs +2 -2
  72. package/esm2020/toolbox/public_api.mjs +3 -0
  73. package/esm2020/toolbox/toolbox.component.mjs +60 -76
  74. package/esm2020/toolbox/toolbox.module.mjs +19 -15
  75. package/esm2020/tooltip/covalent-echarts-tooltip.mjs +2 -2
  76. package/esm2020/tooltip/public_api.mjs +4 -0
  77. package/esm2020/tooltip/series-tooltip.component.mjs +40 -49
  78. package/esm2020/tooltip/tooltip.component.mjs +71 -80
  79. package/esm2020/tooltip/tooltip.module.mjs +14 -15
  80. package/esm2020/tree/covalent-echarts-tree.mjs +2 -2
  81. package/esm2020/tree/public_api.mjs +3 -0
  82. package/esm2020/tree/tree.component.mjs +83 -84
  83. package/esm2020/tree/tree.module.mjs +12 -13
  84. package/esm2020/treemap/covalent-echarts-treemap.mjs +2 -2
  85. package/esm2020/treemap/public_api.mjs +3 -0
  86. package/esm2020/treemap/treemap.component.mjs +107 -108
  87. package/esm2020/treemap/treemap.module.mjs +15 -14
  88. package/esm2020/wordcloud/covalent-echarts-wordcloud.mjs +2 -2
  89. package/esm2020/wordcloud/public_api.mjs +3 -0
  90. package/esm2020/wordcloud/wordcloud.component.mjs +68 -69
  91. package/esm2020/wordcloud/wordcloud.module.mjs +15 -14
  92. package/fesm2015/covalent-echarts-bar.mjs +16 -22
  93. package/fesm2015/covalent-echarts-bar.mjs.map +1 -1
  94. package/fesm2015/covalent-echarts-base.mjs +148 -81
  95. package/fesm2015/covalent-echarts-base.mjs.map +1 -1
  96. package/fesm2015/covalent-echarts-graph.mjs +19 -23
  97. package/fesm2015/covalent-echarts-graph.mjs.map +1 -1
  98. package/fesm2015/covalent-echarts-line.mjs +16 -22
  99. package/fesm2015/covalent-echarts-line.mjs.map +1 -1
  100. package/fesm2015/covalent-echarts-map.mjs +16 -22
  101. package/fesm2015/covalent-echarts-map.mjs.map +1 -1
  102. package/fesm2015/covalent-echarts-pie.mjs +16 -22
  103. package/fesm2015/covalent-echarts-pie.mjs.map +1 -1
  104. package/fesm2015/covalent-echarts-sankey.mjs +19 -23
  105. package/fesm2015/covalent-echarts-sankey.mjs.map +1 -1
  106. package/fesm2015/covalent-echarts-scatter.mjs +19 -23
  107. package/fesm2015/covalent-echarts-scatter.mjs.map +1 -1
  108. package/fesm2015/covalent-echarts-toolbox.mjs +23 -49
  109. package/fesm2015/covalent-echarts-toolbox.mjs.map +1 -1
  110. package/fesm2015/covalent-echarts-tooltip.mjs +43 -90
  111. package/fesm2015/covalent-echarts-tooltip.mjs.map +1 -1
  112. package/fesm2015/covalent-echarts-tree.mjs +16 -22
  113. package/fesm2015/covalent-echarts-tree.mjs.map +1 -1
  114. package/fesm2015/covalent-echarts-treemap.mjs +19 -23
  115. package/fesm2015/covalent-echarts-treemap.mjs.map +1 -1
  116. package/fesm2015/covalent-echarts-wordcloud.mjs +19 -23
  117. package/fesm2015/covalent-echarts-wordcloud.mjs.map +1 -1
  118. package/fesm2015/covalent-echarts.mjs.map +1 -1
  119. package/fesm2020/covalent-echarts-bar.mjs +104 -106
  120. package/fesm2020/covalent-echarts-bar.mjs.map +1 -1
  121. package/fesm2020/covalent-echarts-base.mjs +353 -269
  122. package/fesm2020/covalent-echarts-base.mjs.map +1 -1
  123. package/fesm2020/covalent-echarts-graph.mjs +141 -141
  124. package/fesm2020/covalent-echarts-graph.mjs.map +1 -1
  125. package/fesm2020/covalent-echarts-line.mjs +120 -122
  126. package/fesm2020/covalent-echarts-line.mjs.map +1 -1
  127. package/fesm2020/covalent-echarts-map.mjs +102 -104
  128. package/fesm2020/covalent-echarts-map.mjs.map +1 -1
  129. package/fesm2020/covalent-echarts-pie.mjs +100 -102
  130. package/fesm2020/covalent-echarts-pie.mjs.map +1 -1
  131. package/fesm2020/covalent-echarts-sankey.mjs +95 -95
  132. package/fesm2020/covalent-echarts-sankey.mjs.map +1 -1
  133. package/fesm2020/covalent-echarts-scatter.mjs +113 -113
  134. package/fesm2020/covalent-echarts-scatter.mjs.map +1 -1
  135. package/fesm2020/covalent-echarts-toolbox.mjs +76 -88
  136. package/fesm2020/covalent-echarts-toolbox.mjs.map +1 -1
  137. package/fesm2020/covalent-echarts-tooltip.mjs +120 -139
  138. package/fesm2020/covalent-echarts-tooltip.mjs.map +1 -1
  139. package/fesm2020/covalent-echarts-tree.mjs +92 -94
  140. package/fesm2020/covalent-echarts-tree.mjs.map +1 -1
  141. package/fesm2020/covalent-echarts-treemap.mjs +119 -119
  142. package/fesm2020/covalent-echarts-treemap.mjs.map +1 -1
  143. package/fesm2020/covalent-echarts-wordcloud.mjs +79 -79
  144. package/fesm2020/covalent-echarts-wordcloud.mjs.map +1 -1
  145. package/fesm2020/covalent-echarts.mjs.map +1 -1
  146. package/graph/README.md +21 -19
  147. package/graph/covalent-echarts-graph.d.ts +1 -1
  148. package/graph/graph.component.d.ts +60 -60
  149. package/graph/{public-api.d.ts → public_api.d.ts} +0 -0
  150. package/line/README.md +19 -21
  151. package/line/covalent-echarts-line.d.ts +1 -1
  152. package/line/line.component.d.ts +35 -35
  153. package/line/{public-api.d.ts → public_api.d.ts} +0 -0
  154. package/map/README.md +19 -17
  155. package/map/covalent-echarts-map.d.ts +1 -1
  156. package/map/map.component.d.ts +27 -27
  157. package/map/{public-api.d.ts → public_api.d.ts} +0 -0
  158. package/package.json +11 -31
  159. package/pie/README.md +17 -15
  160. package/pie/covalent-echarts-pie.d.ts +1 -1
  161. package/pie/pie.component.d.ts +26 -26
  162. package/pie/{public-api.d.ts → public_api.d.ts} +0 -0
  163. package/{index.d.ts → public_api.d.ts} +0 -0
  164. package/sankey/README.md +22 -20
  165. package/sankey/covalent-echarts-sankey.d.ts +1 -1
  166. package/sankey/{public-api.d.ts → public_api.d.ts} +0 -0
  167. package/sankey/sankey.component.d.ts +22 -22
  168. package/scatter/README.md +19 -21
  169. package/scatter/covalent-echarts-scatter.d.ts +1 -1
  170. package/scatter/{public-api.d.ts → public_api.d.ts} +0 -0
  171. package/scatter/scatter.component.d.ts +31 -31
  172. package/toolbox/README.md +12 -11
  173. package/toolbox/covalent-echarts-toolbox.d.ts +1 -1
  174. package/toolbox/{public-api.d.ts → public_api.d.ts} +0 -0
  175. package/toolbox/toolbox.component.d.ts +10 -10
  176. package/tooltip/README.md +30 -26
  177. package/tooltip/covalent-echarts-tooltip.d.ts +1 -1
  178. package/tooltip/{public-api.d.ts → public_api.d.ts} +0 -0
  179. package/tooltip/series-tooltip.component.d.ts +11 -9
  180. package/tooltip/tooltip.component.d.ts +16 -16
  181. package/tree/README.md +20 -18
  182. package/tree/covalent-echarts-tree.d.ts +1 -1
  183. package/tree/{public-api.d.ts → public_api.d.ts} +0 -0
  184. package/tree/tree.component.d.ts +24 -24
  185. package/treemap/README.md +23 -21
  186. package/treemap/covalent-echarts-treemap.d.ts +1 -1
  187. package/treemap/{public-api.d.ts → public_api.d.ts} +0 -0
  188. package/treemap/treemap.component.d.ts +37 -37
  189. package/wordcloud/README.md +25 -23
  190. package/wordcloud/covalent-echarts-wordcloud.d.ts +1 -1
  191. package/wordcloud/{public-api.d.ts → public_api.d.ts} +0 -0
  192. package/wordcloud/wordcloud.component.d.ts +14 -14
  193. package/bar/index.d.ts +0 -1
  194. package/base/chart.component.scss +0 -4
  195. package/base/index.d.ts +0 -1
  196. package/esm2020/bar/index.mjs +0 -2
  197. package/esm2020/bar/public-api.mjs +0 -3
  198. package/esm2020/base/index.mjs +0 -2
  199. package/esm2020/base/public-api.mjs +0 -10
  200. package/esm2020/graph/index.mjs +0 -2
  201. package/esm2020/graph/public-api.mjs +0 -3
  202. package/esm2020/index.mjs +0 -2
  203. package/esm2020/line/index.mjs +0 -2
  204. package/esm2020/line/public-api.mjs +0 -3
  205. package/esm2020/map/index.mjs +0 -2
  206. package/esm2020/map/public-api.mjs +0 -3
  207. package/esm2020/pie/index.mjs +0 -2
  208. package/esm2020/pie/public-api.mjs +0 -3
  209. package/esm2020/sankey/index.mjs +0 -2
  210. package/esm2020/sankey/public-api.mjs +0 -3
  211. package/esm2020/scatter/index.mjs +0 -2
  212. package/esm2020/scatter/public-api.mjs +0 -3
  213. package/esm2020/toolbox/index.mjs +0 -2
  214. package/esm2020/toolbox/public-api.mjs +0 -3
  215. package/esm2020/tooltip/index.mjs +0 -2
  216. package/esm2020/tooltip/public-api.mjs +0 -4
  217. package/esm2020/tree/index.mjs +0 -2
  218. package/esm2020/tree/public-api.mjs +0 -3
  219. package/esm2020/treemap/index.mjs +0 -2
  220. package/esm2020/treemap/public-api.mjs +0 -3
  221. package/esm2020/wordcloud/index.mjs +0 -2
  222. package/esm2020/wordcloud/public-api.mjs +0 -3
  223. package/graph/index.d.ts +0 -1
  224. package/line/index.d.ts +0 -1
  225. package/map/index.d.ts +0 -1
  226. package/pie/index.d.ts +0 -1
  227. package/sankey/index.d.ts +0 -1
  228. package/scatter/index.d.ts +0 -1
  229. package/toolbox/index.d.ts +0 -1
  230. package/tooltip/index.d.ts +0 -1
  231. package/tree/index.d.ts +0 -1
  232. package/treemap/index.d.ts +0 -1
  233. package/wordcloud/index.d.ts +0 -1
@@ -5,18 +5,16 @@ import { CommonModule } from '@angular/common';
5
5
  import * as i1 from '@covalent/echarts/base';
6
6
  import { assignDefined } from '@covalent/echarts/base';
7
7
 
8
- const _c0 = ["toolboxContent"];
9
- function TdChartToolboxComponent_ng_template_0_Template(rf, ctx) { }
10
8
  class TdChartViewDataFormatterDirective {
11
9
  }
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); })();
10
+ TdChartViewDataFormatterDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdChartViewDataFormatterDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
11
+ TdChartViewDataFormatterDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.2", type: TdChartViewDataFormatterDirective, selector: "ng-template[tdViewDataFormatter]", ngImport: i0 });
12
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdChartViewDataFormatterDirective, decorators: [{
13
+ type: Directive,
14
+ args: [{
15
+ selector: 'ng-template[tdViewDataFormatter]',
16
+ }]
17
+ }] });
20
18
  class TdChartToolboxComponent {
21
19
  constructor(_changeDetectorRef, _elementRef, _optionsService) {
22
20
  this._changeDetectorRef = _changeDetectorRef;
@@ -73,7 +71,7 @@ class TdChartToolboxComponent {
73
71
  this.feature = {
74
72
  ...this.feature,
75
73
  dataView: {
76
- ...this.feature.dataView,
74
+ ...this.feature?.dataView,
77
75
  optionToContent: this._optionToContentFormatter(),
78
76
  },
79
77
  };
@@ -86,86 +84,76 @@ class TdChartToolboxComponent {
86
84
  };
87
85
  }
88
86
  }
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
- }] }); })();
87
+ TdChartToolboxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdChartToolboxComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i1.TdChartOptionsService }], target: i0.ɵɵFactoryTarget.Component });
88
+ TdChartToolboxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: TdChartToolboxComponent, selector: "td-chart-toolbox", 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" }, queries: [{ propertyName: "formatterTemplate", first: true, predicate: TdChartViewDataFormatterDirective, descendants: true, read: TemplateRef }], viewQueries: [{ propertyName: "fullTemplate", first: true, predicate: ["toolboxContent"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<ng-template\n #toolboxContent\n [ngTemplateOutlet]=\"formatterTemplate\"\n></ng-template>\n", directives: [{ type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
89
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdChartToolboxComponent, decorators: [{
90
+ type: Component,
91
+ args: [{ selector: 'td-chart-toolbox', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template\n #toolboxContent\n [ngTemplateOutlet]=\"formatterTemplate\"\n></ng-template>\n" }]
92
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i1.TdChartOptionsService }]; }, propDecorators: { config: [{
93
+ type: Input
94
+ }], show: [{
95
+ type: Input
96
+ }], trigger: [{
97
+ type: Input
98
+ }], orient: [{
99
+ type: Input
100
+ }], itemSize: [{
101
+ type: Input
102
+ }], itemGap: [{
103
+ type: Input
104
+ }], showTitle: [{
105
+ type: Input
106
+ }], label: [{
107
+ type: Input
108
+ }], feature: [{
109
+ type: Input
110
+ }], iconStyle: [{
111
+ type: Input
112
+ }], zlevel: [{
113
+ type: Input
114
+ }], z: [{
115
+ type: Input
116
+ }], transitionDuration: [{
117
+ type: Input
118
+ }], left: [{
119
+ type: Input
120
+ }], top: [{
121
+ type: Input
122
+ }], right: [{
123
+ type: Input
124
+ }], bottom: [{
125
+ type: Input
126
+ }], width: [{
127
+ type: Input
128
+ }], height: [{
129
+ type: Input
130
+ }], formatterTemplate: [{
131
+ type: ContentChild,
132
+ args: [TdChartViewDataFormatterDirective, { read: TemplateRef }]
133
+ }], fullTemplate: [{
134
+ type: ViewChild,
135
+ args: ['toolboxContent', { static: true }]
136
+ }] } });
153
137
 
154
- const TOOLBOX_MODULE_COMPONENTS = [TdChartToolboxComponent, TdChartViewDataFormatterDirective];
138
+ const TOOLBOX_MODULE_COMPONENTS = [
139
+ TdChartToolboxComponent,
140
+ TdChartViewDataFormatterDirective,
141
+ ];
155
142
  class CovalentToolboxEchartsModule {
156
143
  }
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] }); })();
144
+ CovalentToolboxEchartsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentToolboxEchartsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
145
+ CovalentToolboxEchartsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentToolboxEchartsModule, declarations: [TdChartToolboxComponent,
146
+ TdChartViewDataFormatterDirective], imports: [CommonModule], exports: [TdChartToolboxComponent,
147
+ TdChartViewDataFormatterDirective] });
148
+ CovalentToolboxEchartsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentToolboxEchartsModule, imports: [[CommonModule]] });
149
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentToolboxEchartsModule, decorators: [{
150
+ type: NgModule,
151
+ args: [{
152
+ imports: [CommonModule],
153
+ declarations: [TOOLBOX_MODULE_COMPONENTS],
154
+ exports: [TOOLBOX_MODULE_COMPONENTS],
155
+ }]
156
+ }] });
169
157
 
170
158
  /**
171
159
  * Generated bundle index. Do not edit.
@@ -1 +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,IAAI,CAAC,aAAa,EAAE,CAAC;KACtB;IAEO,WAAW;QACjB,IAAI,CAAC,uBAAuB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AAyB,CAAC;aACrC;;wFACY,4BAA4B,mBAPc,uBAAuB,EAAE,iCAAiC,aAGrG,YAAY,aAH+B,uBAAuB,EAAE,iCAAiC;;ACLjH;;;;;;"}
1
+ {"version":3,"file":"covalent-echarts-toolbox.mjs","sources":["../../../../libs/angular-echarts/toolbox/src/toolbox.component.ts","../../../../libs/angular-echarts/toolbox/src/toolbox.component.html","../../../../libs/angular-echarts/toolbox/src/toolbox.module.ts","../../../../libs/angular-echarts/toolbox/src/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 = true;\n @Input() trigger?: string;\n @Input() orient?: TdToolboxOrient;\n @Input() itemSize?: number;\n @Input() itemGap?: number;\n @Input() showTitle? = true;\n @Input() label?: ITdLabel;\n @Input() feature?: ITdToolboxFeature;\n @Input() iconStyle?: ITdFeatureIconStyle;\n @Input() zlevel?: number;\n @Input() z?: number;\n @Input() transitionDuration = 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 })\n 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\n #toolboxContent\n [ngTemplateOutlet]=\"formatterTemplate\"\n></ng-template>\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport {\n TdChartToolboxComponent,\n TdChartViewDataFormatterDirective,\n} from './toolbox.component';\n\nexport const TOOLBOX_MODULE_COMPONENTS: Type<any>[] = [\n TdChartToolboxComponent,\n TdChartViewDataFormatterDirective,\n];\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 './public_api';\n"],"names":[],"mappings":";;;;;;;MA0Ia,iCAAiC;;8HAAjC,iCAAiC;kHAAjC,iCAAiC;2FAAjC,iCAAiC;kBAH7C,SAAS;mBAAC;oBACT,QAAQ,EAAE,kCAAkC;iBAC7C;;MAQY,uBAAuB;IA6BlC,YACU,kBAAqC,EACrC,WAAuB,EACvB,eAAsC;QAFtC,uBAAkB,GAAlB,kBAAkB,CAAmB;QACrC,gBAAW,GAAX,WAAW,CAAY;QACvB,oBAAe,GAAf,eAAe,CAAuB;QA/BxC,WAAM,GAAQ,EAAE,CAAC;QAEhB,WAAM,GAAQ,EAAE,CAAC;QAEjB,SAAI,GAAG,IAAI,CAAC;QAKZ,cAAS,GAAI,IAAI,CAAC;QAMlB,uBAAkB,GAAG,GAAG,CAAC;QACzB,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;KAWtC;IAEJ,WAAW;QACT,IAAI,CAAC,WAAW,EAAE,CAAC;KACpB;IAED,WAAW;QACT,IAAI,CAAC,aAAa,EAAE,CAAC;KACtB;IAEO,WAAW;QACjB,IAAI,CAAC,uBAAuB,EAAE,CAAC;QAE/B,MAAM,MAAM,GAAQ,aAAa,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AAyB,CAAC;oBACzC,OAAO,EAAE,CAAC,yBAAyB,CAAC;iBACrC;;;ACjBD;;;;;;"}
@@ -5,20 +5,18 @@ import { CommonModule } from '@angular/common';
5
5
  import * as i1 from '@covalent/echarts/base';
6
6
  import { assignDefined } from '@covalent/echarts/base';
7
7
 
8
- const _c0$1 = ["tooltipContent"];
9
- function TdChartTooltipComponent_ng_template_0_Template(rf, ctx) { }
10
8
  class TdTooltipContext {
11
9
  }
12
10
  class TdChartTooltipFormatterDirective {
13
11
  }
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); })();
12
+ TdChartTooltipFormatterDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdChartTooltipFormatterDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
13
+ TdChartTooltipFormatterDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.2", type: TdChartTooltipFormatterDirective, selector: "ng-template[tdTooltipFormatter]", ngImport: i0 });
14
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdChartTooltipFormatterDirective, decorators: [{
15
+ type: Directive,
16
+ args: [{
17
+ selector: 'ng-template[tdTooltipFormatter]',
18
+ }]
19
+ }] });
22
20
  class TdChartTooltipComponent {
23
21
  constructor(_changeDetectorRef, _elementRef, _optionsService) {
24
22
  this._changeDetectorRef = _changeDetectorRef;
@@ -66,7 +64,11 @@ class TdChartTooltipComponent {
66
64
  confine: this.confine,
67
65
  transitionDuration: this.transitionDuration,
68
66
  position: this.position,
69
- formatter: this.formatter ? this.formatter : this.formatterTemplate ? this._formatter() : undefined,
67
+ formatter: this.formatter
68
+ ? this.formatter
69
+ : this.formatterTemplate
70
+ ? this._formatter()
71
+ : undefined,
70
72
  backgroundColor: this.backgroundColor,
71
73
  borderColor: this.borderColor,
72
74
  borderWidth: this.borderWidth,
@@ -96,77 +98,64 @@ class TdChartTooltipComponent {
96
98
  };
97
99
  }
98
100
  }
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
- }] }); })();
101
+ TdChartTooltipComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdChartTooltipComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i1.TdChartOptionsService }], target: i0.ɵɵFactoryTarget.Component });
102
+ TdChartTooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: TdChartTooltipComponent, selector: "td-chart-tooltip", 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" }, queries: [{ propertyName: "formatterTemplate", first: true, predicate: TdChartTooltipFormatterDirective, descendants: true, read: TemplateRef, static: true }], viewQueries: [{ propertyName: "fullTemplate", first: true, predicate: ["tooltipContent"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<ng-template\n #tooltipContent\n [ngTemplateOutlet]=\"formatterTemplate\"\n [ngTemplateOutletContext]=\"_context\"\n></ng-template>\n", directives: [{ type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
103
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdChartTooltipComponent, decorators: [{
104
+ type: Component,
105
+ args: [{ selector: 'td-chart-tooltip', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template\n #tooltipContent\n [ngTemplateOutlet]=\"formatterTemplate\"\n [ngTemplateOutletContext]=\"_context\"\n></ng-template>\n" }]
106
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i1.TdChartOptionsService }]; }, propDecorators: { config: [{
107
+ type: Input
108
+ }], show: [{
109
+ type: Input
110
+ }], trigger: [{
111
+ type: Input
112
+ }], axisPointer: [{
113
+ type: Input
114
+ }], showContent: [{
115
+ type: Input
116
+ }], alwaysShowContent: [{
117
+ type: Input
118
+ }], triggerOn: [{
119
+ type: Input
120
+ }], showDelay: [{
121
+ type: Input
122
+ }], hideDelay: [{
123
+ type: Input
124
+ }], enterable: [{
125
+ type: Input
126
+ }], renderMode: [{
127
+ type: Input
128
+ }], confine: [{
129
+ type: Input
130
+ }], transitionDuration: [{
131
+ type: Input
132
+ }], position: [{
133
+ type: Input
134
+ }], formatter: [{
135
+ type: Input
136
+ }], backgroundColor: [{
137
+ type: Input
138
+ }], borderColor: [{
139
+ type: Input
140
+ }], borderWidth: [{
141
+ type: Input
142
+ }], padding: [{
143
+ type: Input
144
+ }], textStyle: [{
145
+ type: Input
146
+ }], extraCssText: [{
147
+ type: Input
148
+ }], formatterTemplate: [{
149
+ type: ContentChild,
150
+ args: [TdChartTooltipFormatterDirective, {
151
+ read: TemplateRef,
152
+ static: true,
153
+ }]
154
+ }], fullTemplate: [{
155
+ type: ViewChild,
156
+ args: ['tooltipContent', { static: true }]
157
+ }] } });
167
158
 
168
- const _c0 = ["tooltipContent"];
169
- function TdSeriesTooltipComponent_ng_template_0_Template(rf, ctx) { }
170
159
  class TdSeriesTooltipComponent {
171
160
  constructor(_changeDetectorRef, _elementRef, _seriesComponent) {
172
161
  this._changeDetectorRef = _changeDetectorRef;
@@ -197,7 +186,11 @@ class TdSeriesTooltipComponent {
197
186
  padding: this.padding,
198
187
  textStyle: this.textStyle,
199
188
  extraCssText: this.extraCssText,
200
- formatter: this.formatter ? this.formatter : this.formatterTemplate ? this._formatter() : undefined,
189
+ formatter: this.formatter
190
+ ? this.formatter
191
+ : this.formatterTemplate
192
+ ? this._formatter()
193
+ : undefined,
201
194
  }, this.config ? this.config : {});
202
195
  // set series tooltip configuration in parent chart and render new configurations
203
196
  this._seriesComponent.setStateOption('tooltip', config);
@@ -225,50 +218,39 @@ class TdSeriesTooltipComponent {
225
218
  this._seriesComponent.removeStateOption('tooltip');
226
219
  }
227
220
  }
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
- }] }); })();
221
+ TdSeriesTooltipComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdSeriesTooltipComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i1.TdSeriesDirective }], target: i0.ɵɵFactoryTarget.Component });
222
+ TdSeriesTooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: TdSeriesTooltipComponent, selector: "td-chart-series-tooltip", inputs: { config: "config", formatter: "formatter", position: "position", backgroundColor: "backgroundColor", borderColor: "borderColor", borderWidth: "borderWidth", padding: "padding", textStyle: "textStyle", extraCssText: "extraCssText" }, queries: [{ propertyName: "formatterTemplate", first: true, predicate: TdChartTooltipFormatterDirective, descendants: true, read: TemplateRef, static: true }], viewQueries: [{ propertyName: "fullTemplate", first: true, predicate: ["tooltipContent"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<ng-template\n #tooltipContent\n [ngTemplateOutlet]=\"formatterTemplate\"\n [ngTemplateOutletContext]=\"_context\"\n></ng-template>\n", directives: [{ type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
223
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdSeriesTooltipComponent, decorators: [{
224
+ type: Component,
225
+ args: [{ selector: 'td-chart-series-tooltip', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template\n #tooltipContent\n [ngTemplateOutlet]=\"formatterTemplate\"\n [ngTemplateOutletContext]=\"_context\"\n></ng-template>\n" }]
226
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i1.TdSeriesDirective }]; }, propDecorators: { config: [{
227
+ type: Input
228
+ }], formatter: [{
229
+ type: Input
230
+ }], position: [{
231
+ type: Input
232
+ }], backgroundColor: [{
233
+ type: Input
234
+ }], borderColor: [{
235
+ type: Input
236
+ }], borderWidth: [{
237
+ type: Input
238
+ }], padding: [{
239
+ type: Input
240
+ }], textStyle: [{
241
+ type: Input
242
+ }], extraCssText: [{
243
+ type: Input
244
+ }], formatterTemplate: [{
245
+ type: ContentChild,
246
+ args: [TdChartTooltipFormatterDirective, {
247
+ read: TemplateRef,
248
+ static: true,
249
+ }]
250
+ }], fullTemplate: [{
251
+ type: ViewChild,
252
+ args: ['tooltipContent', { static: true }]
253
+ }] } });
272
254
 
273
255
  const TOOLTIP_MODULE_COMPONENTS = [
274
256
  TdChartTooltipComponent,
@@ -277,22 +259,21 @@ const TOOLTIP_MODULE_COMPONENTS = [
277
259
  ];
278
260
  class CovalentTooltipEchartsModule {
279
261
  }
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,
262
+ CovalentTooltipEchartsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentTooltipEchartsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
263
+ CovalentTooltipEchartsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentTooltipEchartsModule, declarations: [TdChartTooltipComponent,
292
264
  TdChartTooltipFormatterDirective,
293
265
  TdSeriesTooltipComponent], imports: [CommonModule], exports: [TdChartTooltipComponent,
294
266
  TdChartTooltipFormatterDirective,
295
- TdSeriesTooltipComponent] }); })();
267
+ TdSeriesTooltipComponent] });
268
+ CovalentTooltipEchartsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentTooltipEchartsModule, imports: [[CommonModule]] });
269
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentTooltipEchartsModule, decorators: [{
270
+ type: NgModule,
271
+ args: [{
272
+ imports: [CommonModule],
273
+ declarations: [TOOLTIP_MODULE_COMPONENTS],
274
+ exports: [TOOLTIP_MODULE_COMPONENTS],
275
+ }]
276
+ }] });
296
277
 
297
278
  /**
298
279
  * Generated bundle index. Do not edit.