@covalent/echarts 9.1.3 → 10.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (159) hide show
  1. package/bar/bar.component.d.ts +1 -1
  2. package/bar/bar.module.d.ts +5 -2
  3. package/base/axis/axis.component.d.ts +1 -1
  4. package/base/axis/x-axis.component.d.ts +1 -1
  5. package/base/axis/y-axis.component.d.ts +1 -1
  6. package/base/base.module.d.ts +5 -2
  7. package/base/chart.component.d.ts +1 -1
  8. package/base/dataset/dataset.component.d.ts +1 -1
  9. package/base/series/series.component.d.ts +1 -1
  10. package/clustering/clustering.component.d.ts +1 -1
  11. package/clustering/clustering.module.d.ts +5 -2
  12. package/fesm2022/covalent-echarts-bar.mjs +110 -105
  13. package/fesm2022/covalent-echarts-bar.mjs.map +1 -1
  14. package/fesm2022/covalent-echarts-base.mjs +264 -257
  15. package/fesm2022/covalent-echarts-base.mjs.map +1 -1
  16. package/fesm2022/covalent-echarts-clustering.mjs +136 -131
  17. package/fesm2022/covalent-echarts-clustering.mjs.map +1 -1
  18. package/fesm2022/covalent-echarts-graph.mjs +144 -139
  19. package/fesm2022/covalent-echarts-graph.mjs.map +1 -1
  20. package/fesm2022/covalent-echarts-histogram.mjs +58 -53
  21. package/fesm2022/covalent-echarts-histogram.mjs.map +1 -1
  22. package/fesm2022/covalent-echarts-line.mjs +126 -121
  23. package/fesm2022/covalent-echarts-line.mjs.map +1 -1
  24. package/fesm2022/covalent-echarts-map.mjs +108 -103
  25. package/fesm2022/covalent-echarts-map.mjs.map +1 -1
  26. package/fesm2022/covalent-echarts-pie.mjs +106 -101
  27. package/fesm2022/covalent-echarts-pie.mjs.map +1 -1
  28. package/fesm2022/covalent-echarts-regression.mjs +60 -55
  29. package/fesm2022/covalent-echarts-regression.mjs.map +1 -1
  30. package/fesm2022/covalent-echarts-sankey.mjs +98 -93
  31. package/fesm2022/covalent-echarts-sankey.mjs.map +1 -1
  32. package/fesm2022/covalent-echarts-scatter.mjs +116 -111
  33. package/fesm2022/covalent-echarts-scatter.mjs.map +1 -1
  34. package/fesm2022/covalent-echarts-toolbox.mjs +92 -73
  35. package/fesm2022/covalent-echarts-toolbox.mjs.map +1 -1
  36. package/fesm2022/covalent-echarts-tooltip.mjs +151 -115
  37. package/fesm2022/covalent-echarts-tooltip.mjs.map +1 -1
  38. package/fesm2022/covalent-echarts-tree.mjs +98 -93
  39. package/fesm2022/covalent-echarts-tree.mjs.map +1 -1
  40. package/fesm2022/covalent-echarts-treemap.mjs +122 -117
  41. package/fesm2022/covalent-echarts-treemap.mjs.map +1 -1
  42. package/fesm2022/covalent-echarts-wordcloud.mjs +82 -77
  43. package/fesm2022/covalent-echarts-wordcloud.mjs.map +1 -1
  44. package/graph/graph.component.d.ts +1 -1
  45. package/graph/graph.module.d.ts +5 -2
  46. package/histogram/histogram.component.d.ts +1 -1
  47. package/histogram/histogram.module.d.ts +5 -2
  48. package/line/line.component.d.ts +1 -1
  49. package/line/line.module.d.ts +5 -2
  50. package/map/map.component.d.ts +1 -1
  51. package/map/map.module.d.ts +5 -2
  52. package/package.json +8 -39
  53. package/pie/pie.component.d.ts +1 -1
  54. package/pie/pie.module.d.ts +5 -2
  55. package/regression/regression.component.d.ts +1 -1
  56. package/regression/regression.module.d.ts +5 -2
  57. package/sankey/sankey.component.d.ts +1 -1
  58. package/sankey/sankey.module.d.ts +5 -2
  59. package/scatter/scatter.component.d.ts +1 -1
  60. package/scatter/scatter.module.d.ts +5 -2
  61. package/toolbox/toolbox.component.d.ts +2 -2
  62. package/toolbox/toolbox.module.d.ts +5 -2
  63. package/tooltip/series-tooltip.component.d.ts +1 -1
  64. package/tooltip/tooltip.component.d.ts +2 -2
  65. package/tooltip/tooltip.module.d.ts +5 -2
  66. package/tree/tree.component.d.ts +1 -1
  67. package/tree/tree.module.d.ts +5 -2
  68. package/treemap/treemap.component.d.ts +1 -1
  69. package/treemap/treemap.module.d.ts +5 -2
  70. package/wordcloud/wordcloud.component.d.ts +1 -1
  71. package/wordcloud/wordcloud.module.d.ts +5 -2
  72. package/esm2022/bar/bar.component.mjs +0 -163
  73. package/esm2022/bar/bar.module.mjs +0 -19
  74. package/esm2022/bar/covalent-echarts-bar.mjs +0 -5
  75. package/esm2022/bar/public_api.mjs +0 -3
  76. package/esm2022/base/axis/axis.component.mjs +0 -157
  77. package/esm2022/base/axis/axis.interface.mjs +0 -2
  78. package/esm2022/base/axis/x-axis.component.mjs +0 -56
  79. package/esm2022/base/axis/y-axis.component.mjs +0 -56
  80. package/esm2022/base/base.module.mjs +0 -35
  81. package/esm2022/base/base.types.mjs +0 -2
  82. package/esm2022/base/chart-options.service.mjs +0 -63
  83. package/esm2022/base/chart.component.mjs +0 -211
  84. package/esm2022/base/covalent-echarts-base.mjs +0 -5
  85. package/esm2022/base/dataset/dataset.component.mjs +0 -57
  86. package/esm2022/base/public_api.mjs +0 -10
  87. package/esm2022/base/series/series.component.mjs +0 -106
  88. package/esm2022/base/series/series.interface.mjs +0 -2
  89. package/esm2022/base/themes/aqua-splash.mjs +0 -487
  90. package/esm2022/base/themes/california-coast.mjs +0 -460
  91. package/esm2022/base/themes/hawaiian-sunrise.mjs +0 -460
  92. package/esm2022/base/themes/passion-flower.mjs +0 -460
  93. package/esm2022/base/themes/razzleberry-pie.mjs +0 -487
  94. package/esm2022/base/themes/teradata-classic.mjs +0 -487
  95. package/esm2022/base/themes/teradata-default.mjs +0 -460
  96. package/esm2022/base/themes/urban-sunrise.mjs +0 -460
  97. package/esm2022/base/themes/volcanic-eruption.mjs +0 -460
  98. package/esm2022/base/utils/assign-defined.mjs +0 -25
  99. package/esm2022/base/utils/echarts.mjs +0 -49
  100. package/esm2022/base/utils/index.mjs +0 -3
  101. package/esm2022/clustering/clustering.component.mjs +0 -275
  102. package/esm2022/clustering/clustering.module.mjs +0 -21
  103. package/esm2022/clustering/covalent-echarts-clustering.mjs +0 -5
  104. package/esm2022/clustering/public_api.mjs +0 -3
  105. package/esm2022/covalent-echarts.mjs +0 -5
  106. package/esm2022/graph/covalent-echarts-graph.mjs +0 -5
  107. package/esm2022/graph/graph.component.mjs +0 -230
  108. package/esm2022/graph/graph.module.mjs +0 -21
  109. package/esm2022/graph/public_api.mjs +0 -3
  110. package/esm2022/histogram/covalent-echarts-histogram.mjs +0 -5
  111. package/esm2022/histogram/histogram.component.mjs +0 -127
  112. package/esm2022/histogram/histogram.module.mjs +0 -21
  113. package/esm2022/histogram/public_api.mjs +0 -3
  114. package/esm2022/line/covalent-echarts-line.mjs +0 -5
  115. package/esm2022/line/line.component.mjs +0 -195
  116. package/esm2022/line/line.module.mjs +0 -19
  117. package/esm2022/line/public_api.mjs +0 -3
  118. package/esm2022/map/covalent-echarts-map.mjs +0 -5
  119. package/esm2022/map/map.component.mjs +0 -159
  120. package/esm2022/map/map.module.mjs +0 -19
  121. package/esm2022/map/public_api.mjs +0 -3
  122. package/esm2022/pie/covalent-echarts-pie.mjs +0 -5
  123. package/esm2022/pie/pie.component.mjs +0 -153
  124. package/esm2022/pie/pie.module.mjs +0 -19
  125. package/esm2022/pie/public_api.mjs +0 -3
  126. package/esm2022/public_api.mjs +0 -2
  127. package/esm2022/regression/covalent-echarts-regression.mjs +0 -5
  128. package/esm2022/regression/public_api.mjs +0 -3
  129. package/esm2022/regression/regression.component.mjs +0 -140
  130. package/esm2022/regression/regression.module.mjs +0 -21
  131. package/esm2022/sankey/covalent-echarts-sankey.mjs +0 -5
  132. package/esm2022/sankey/public_api.mjs +0 -3
  133. package/esm2022/sankey/sankey.component.mjs +0 -139
  134. package/esm2022/sankey/sankey.module.mjs +0 -21
  135. package/esm2022/scatter/covalent-echarts-scatter.mjs +0 -5
  136. package/esm2022/scatter/public_api.mjs +0 -3
  137. package/esm2022/scatter/scatter.component.mjs +0 -175
  138. package/esm2022/scatter/scatter.module.mjs +0 -21
  139. package/esm2022/toolbox/covalent-echarts-toolbox.mjs +0 -5
  140. package/esm2022/toolbox/public_api.mjs +0 -3
  141. package/esm2022/toolbox/toolbox.component.mjs +0 -149
  142. package/esm2022/toolbox/toolbox.module.mjs +0 -24
  143. package/esm2022/tooltip/covalent-echarts-tooltip.mjs +0 -5
  144. package/esm2022/tooltip/public_api.mjs +0 -4
  145. package/esm2022/tooltip/series-tooltip.component.mjs +0 -112
  146. package/esm2022/tooltip/tooltip.component.mjs +0 -168
  147. package/esm2022/tooltip/tooltip.module.mjs +0 -28
  148. package/esm2022/tree/covalent-echarts-tree.mjs +0 -5
  149. package/esm2022/tree/public_api.mjs +0 -3
  150. package/esm2022/tree/tree.component.mjs +0 -139
  151. package/esm2022/tree/tree.module.mjs +0 -19
  152. package/esm2022/treemap/covalent-echarts-treemap.mjs +0 -5
  153. package/esm2022/treemap/public_api.mjs +0 -3
  154. package/esm2022/treemap/treemap.component.mjs +0 -182
  155. package/esm2022/treemap/treemap.module.mjs +0 -21
  156. package/esm2022/wordcloud/covalent-echarts-wordcloud.mjs +0 -5
  157. package/esm2022/wordcloud/public_api.mjs +0 -3
  158. package/esm2022/wordcloud/wordcloud.component.mjs +0 -106
  159. package/esm2022/wordcloud/wordcloud.module.mjs +0 -21
@@ -1,20 +1,20 @@
1
1
  import * as i0 from '@angular/core';
2
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
3
  import * as i1 from '@covalent/echarts/base';
6
4
  import { assignDefined } from '@covalent/echarts/base';
7
5
 
6
+ const _c0 = ["toolboxContent"];
7
+ function TdChartToolboxComponent_ng_template_0_Template(rf, ctx) { }
8
8
  class TdChartViewDataFormatterDirective {
9
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdChartViewDataFormatterDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
10
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.11", type: TdChartViewDataFormatterDirective, selector: "ng-template[tdViewDataFormatter]", ngImport: i0 });
9
+ static ɵfac = function TdChartViewDataFormatterDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TdChartViewDataFormatterDirective)(); };
10
+ static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: TdChartViewDataFormatterDirective, selectors: [["ng-template", "tdViewDataFormatter", ""]] });
11
11
  }
12
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdChartViewDataFormatterDirective, decorators: [{
13
- type: Directive,
14
- args: [{
15
- selector: 'ng-template[tdViewDataFormatter]',
16
- }]
17
- }] });
12
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdChartViewDataFormatterDirective, [{
13
+ type: Directive,
14
+ args: [{
15
+ selector: 'ng-template[tdViewDataFormatter]',
16
+ }]
17
+ }], null, null); })();
18
18
  class TdChartToolboxComponent {
19
19
  _changeDetectorRef;
20
20
  _elementRef;
@@ -97,77 +97,96 @@ class TdChartToolboxComponent {
97
97
  return this._elementRef.nativeElement.innerHTML;
98
98
  };
99
99
  }
100
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdChartToolboxComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i1.TdChartOptionsService }], target: i0.ɵɵFactoryTarget.Component });
101
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.11", 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", dependencies: [{ kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
100
+ static ɵfac = function TdChartToolboxComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TdChartToolboxComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i1.TdChartOptionsService)); };
101
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TdChartToolboxComponent, selectors: [["td-chart-toolbox"]], contentQueries: function TdChartToolboxComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
102
+ i0.ɵɵcontentQuery(dirIndex, TdChartViewDataFormatterDirective, 5, TemplateRef);
103
+ } if (rf & 2) {
104
+ let _t;
105
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.formatterTemplate = _t.first);
106
+ } }, viewQuery: function TdChartToolboxComponent_Query(rf, ctx) { if (rf & 1) {
107
+ i0.ɵɵviewQuery(_c0, 7);
108
+ } if (rf & 2) {
109
+ let _t;
110
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fullTemplate = _t.first);
111
+ } }, 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: [["toolboxContent", ""], [3, "ngTemplateOutlet"]], template: function TdChartToolboxComponent_Template(rf, ctx) { if (rf & 1) {
112
+ i0.ɵɵtemplate(0, TdChartToolboxComponent_ng_template_0_Template, 0, 0, "ng-template", 1, 0, i0.ɵɵtemplateRefExtractor);
113
+ } if (rf & 2) {
114
+ i0.ɵɵproperty("ngTemplateOutlet", ctx.formatterTemplate);
115
+ } }, encapsulation: 2, changeDetection: 0 });
102
116
  }
103
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdChartToolboxComponent, decorators: [{
104
- type: Component,
105
- args: [{ selector: 'td-chart-toolbox', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template\n #toolboxContent\n [ngTemplateOutlet]=\"formatterTemplate\"\n></ng-template>\n" }]
106
- }], ctorParameters: () => [{ 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
- }], orient: [{
113
- type: Input
114
- }], itemSize: [{
115
- type: Input
116
- }], itemGap: [{
117
- type: Input
118
- }], showTitle: [{
119
- type: Input
120
- }], label: [{
121
- type: Input
122
- }], feature: [{
123
- type: Input
124
- }], iconStyle: [{
125
- type: Input
126
- }], zlevel: [{
127
- type: Input
128
- }], z: [{
129
- type: Input
130
- }], transitionDuration: [{
131
- type: Input
132
- }], left: [{
133
- type: Input
134
- }], top: [{
135
- type: Input
136
- }], right: [{
137
- type: Input
138
- }], bottom: [{
139
- type: Input
140
- }], width: [{
141
- type: Input
142
- }], height: [{
143
- type: Input
144
- }], formatterTemplate: [{
145
- type: ContentChild,
146
- args: [TdChartViewDataFormatterDirective, { read: TemplateRef }]
147
- }], fullTemplate: [{
148
- type: ViewChild,
149
- args: ['toolboxContent', { static: true }]
150
- }] } });
117
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdChartToolboxComponent, [{
118
+ type: Component,
119
+ args: [{ selector: 'td-chart-toolbox', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template\n #toolboxContent\n [ngTemplateOutlet]=\"formatterTemplate\"\n></ng-template>\n" }]
120
+ }], () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i1.TdChartOptionsService }], { config: [{
121
+ type: Input
122
+ }], show: [{
123
+ type: Input
124
+ }], trigger: [{
125
+ type: Input
126
+ }], orient: [{
127
+ type: Input
128
+ }], itemSize: [{
129
+ type: Input
130
+ }], itemGap: [{
131
+ type: Input
132
+ }], showTitle: [{
133
+ type: Input
134
+ }], label: [{
135
+ type: Input
136
+ }], feature: [{
137
+ type: Input
138
+ }], iconStyle: [{
139
+ type: Input
140
+ }], zlevel: [{
141
+ type: Input
142
+ }], z: [{
143
+ type: Input
144
+ }], transitionDuration: [{
145
+ type: Input
146
+ }], left: [{
147
+ type: Input
148
+ }], top: [{
149
+ type: Input
150
+ }], right: [{
151
+ type: Input
152
+ }], bottom: [{
153
+ type: Input
154
+ }], width: [{
155
+ type: Input
156
+ }], height: [{
157
+ type: Input
158
+ }], formatterTemplate: [{
159
+ type: ContentChild,
160
+ args: [TdChartViewDataFormatterDirective, { read: TemplateRef }]
161
+ }], fullTemplate: [{
162
+ type: ViewChild,
163
+ args: ['toolboxContent', { static: true }]
164
+ }] }); })();
165
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TdChartToolboxComponent, { className: "TdChartToolboxComponent", filePath: "toolbox.component.ts", lineNumber: 146 }); })();
151
166
 
152
167
  const TOOLBOX_MODULE_COMPONENTS = [
153
168
  TdChartToolboxComponent,
154
169
  TdChartViewDataFormatterDirective,
155
170
  ];
171
+ /**
172
+ * @deprecated This module is deprecated and will be removed in future versions.
173
+ * Please migrate to using standalone components as soon as possible.
174
+ */
156
175
  class CovalentToolboxEchartsModule {
157
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CovalentToolboxEchartsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
158
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.11", ngImport: i0, type: CovalentToolboxEchartsModule, declarations: [TdChartToolboxComponent,
159
- TdChartViewDataFormatterDirective], imports: [CommonModule], exports: [TdChartToolboxComponent,
160
- TdChartViewDataFormatterDirective] });
161
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CovalentToolboxEchartsModule, imports: [CommonModule] });
176
+ static ɵfac = function CovalentToolboxEchartsModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CovalentToolboxEchartsModule)(); };
177
+ static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: CovalentToolboxEchartsModule });
178
+ static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({});
162
179
  }
163
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CovalentToolboxEchartsModule, decorators: [{
164
- type: NgModule,
165
- args: [{
166
- imports: [CommonModule],
167
- declarations: [TOOLBOX_MODULE_COMPONENTS],
168
- exports: [TOOLBOX_MODULE_COMPONENTS],
169
- }]
170
- }] });
180
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CovalentToolboxEchartsModule, [{
181
+ type: NgModule,
182
+ args: [{
183
+ imports: [TOOLBOX_MODULE_COMPONENTS],
184
+ exports: [TOOLBOX_MODULE_COMPONENTS],
185
+ }]
186
+ }], null, null); })();
187
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CovalentToolboxEchartsModule, { imports: [TdChartToolboxComponent,
188
+ TdChartViewDataFormatterDirective], exports: [TdChartToolboxComponent,
189
+ TdChartViewDataFormatterDirective] }); })();
171
190
 
172
191
  /**
173
192
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
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,CAAA;wGAAjC,iCAAiC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAjC,iCAAiC,EAAA,QAAA,EAAA,kCAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAAjC,iCAAiC,EAAA,UAAA,EAAA,CAAA;kBAH7C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,kCAAkC;AAC7C,iBAAA;;MAQY,uBAAuB,CAAA;AA8BxB,IAAA,kBAAA;AACA,IAAA,WAAA;AACA,IAAA,eAAA;IA/BF,MAAM,GAAQ,EAAE;IAEf,MAAM,GAAQ,EAAE;IAEhB,IAAI,GAAG,IAAI;AACX,IAAA,OAAO;AACP,IAAA,MAAM;AACN,IAAA,QAAQ;AACR,IAAA,OAAO;IACP,SAAS,GAAI,IAAI;AACjB,IAAA,KAAK;AACL,IAAA,OAAO;AACP,IAAA,SAAS;AACT,IAAA,MAAM;AACN,IAAA,CAAC;IACD,kBAAkB,GAAG,GAAG;IACxB,IAAI,GAAoB,MAAM;IAC9B,GAAG,GAAoB,MAAM;IAC7B,KAAK,GAAoB,MAAM;IAC/B,MAAM,GAAoB,MAAM;IAChC,KAAK,GAAoB,MAAM;IAC/B,MAAM,GAAoB,MAAM;AAGzC,IAAA,iBAAiB;AAEjB,IAAA,YAAY;AAEZ,IAAA,WAAA,CACU,kBAAqC,EACrC,WAAuB,EACvB,eAAsC,EAAA;QAFtC,IAAkB,C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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 {\n TdChartToolboxComponent,\n TdChartViewDataFormatterDirective,\n} from './toolbox.component';\n\nexport const TOOLBOX_MODULE_COMPONENTS: Type<any>[] = [\n TdChartToolboxComponent,\n TdChartViewDataFormatterDirective,\n];\n\n/**\n * @deprecated This module is deprecated and will be removed in future versions.\n * Please migrate to using standalone components as soon as possible.\n */\n@NgModule({\n imports: [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,CAAA;2HAAjC,iCAAiC,GAAA,CAAA,EAAA;6DAAjC,iCAAiC,EAAA,SAAA,EAAA,CAAA,CAAA,aAAA,EAAA,qBAAA,EAAA,EAAA,CAAA,CAAA,EAAA,CAAA;;iFAAjC,iCAAiC,EAAA,CAAA;cAH7C,SAAS;AAAC,QAAA,IAAA,EAAA,CAAA;AACT,gBAAA,QAAQ,EAAE,kCAAkC;AAC7C,aAAA;;MAQY,uBAAuB,CAAA;AA8BxB,IAAA,kBAAA;AACA,IAAA,WAAA;AACA,IAAA,eAAA;IA/BF,MAAM,GAAQ,EAAE;IAEf,MAAM,GAAQ,EAAE;IAEhB,IAAI,GAAG,IAAI;AACX,IAAA,OAAO;AACP,IAAA,MAAM;AACN,IAAA,QAAQ;AACR,IAAA,OAAO;IACP,SAAS,GAAI,IAAI;AACjB,IAAA,KAAK;AACL,IAAA,OAAO;AACP,IAAA,SAAS;AACT,IAAA,MAAM;AACN,IAAA,CAAC;IACD,kBAAkB,GAAG,GAAG;IACxB,IAAI,GAAoB,MAAM;IAC9B,GAAG,GAAoB,MAAM;IAC7B,KAAK,GAAoB,MAAM;IAC/B,MAAM,GAAoB,MAAM;IAChC,KAAK,GAAoB,MAAM;IAC/B,MAAM,GAAoB,MAAM;AAGzC,IAAA,iBAAiB;AAEjB,IAAA,YAAY;AAEZ,IAAA,WAAA,CACU,kBAAqC,EACrC,WAAuB,EACvB,eAAsC,EAAA;QAFtC,IAAkB,CAAA,kBAAA,GAAlB,kBAAkB;QAClB,IAAW,CAAA,WAAA,GAAX,WAAW;QACX,IAAe,CAAA,eAAA,GAAf,eAAe;;IAGz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A,SAAA,KAAA,EAAA,CAAA,kBAAA,CAAA,4BAA4B,cAZvC,uBAAuB;AACvB,QAAA,iCAAiC,aADjC,uBAAuB;QACvB,iCAAiC,CAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;ACRnC;;AAEG;;;;"}
@@ -1,24 +1,24 @@
1
1
  import * as i0 from '@angular/core';
2
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
3
  import * as i1 from '@covalent/echarts/base';
6
4
  import { assignDefined } from '@covalent/echarts/base';
7
5
 
6
+ const _c0$1 = ["tooltipContent"];
7
+ function TdChartTooltipComponent_ng_template_0_Template(rf, ctx) { }
8
8
  class TdTooltipContext {
9
9
  $implicit;
10
10
  ticket;
11
11
  }
12
12
  class TdChartTooltipFormatterDirective {
13
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdChartTooltipFormatterDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
14
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.11", type: TdChartTooltipFormatterDirective, selector: "ng-template[tdTooltipFormatter]", ngImport: i0 });
13
+ static ɵfac = function TdChartTooltipFormatterDirective_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TdChartTooltipFormatterDirective)(); };
14
+ static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: TdChartTooltipFormatterDirective, selectors: [["ng-template", "tdTooltipFormatter", ""]] });
15
15
  }
16
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdChartTooltipFormatterDirective, decorators: [{
17
- type: Directive,
18
- args: [{
19
- selector: 'ng-template[tdTooltipFormatter]',
20
- }]
21
- }] });
16
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdChartTooltipFormatterDirective, [{
17
+ type: Directive,
18
+ args: [{
19
+ selector: 'ng-template[tdTooltipFormatter]',
20
+ }]
21
+ }], null, null); })();
22
22
  class TdChartTooltipComponent {
23
23
  _changeDetectorRef;
24
24
  _elementRef;
@@ -109,65 +109,82 @@ class TdChartTooltipComponent {
109
109
  return this._elementRef.nativeElement.innerHTML;
110
110
  };
111
111
  }
112
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdChartTooltipComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i1.TdChartOptionsService }], target: i0.ɵɵFactoryTarget.Component });
113
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.11", 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", dependencies: [{ kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
112
+ static ɵfac = function TdChartTooltipComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TdChartTooltipComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i1.TdChartOptionsService)); };
113
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TdChartTooltipComponent, selectors: [["td-chart-tooltip"]], contentQueries: function TdChartTooltipComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
114
+ i0.ɵɵcontentQuery(dirIndex, TdChartTooltipFormatterDirective, 7, TemplateRef);
115
+ } if (rf & 2) {
116
+ let _t;
117
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.formatterTemplate = _t.first);
118
+ } }, viewQuery: function TdChartTooltipComponent_Query(rf, ctx) { if (rf & 1) {
119
+ i0.ɵɵviewQuery(_c0$1, 7);
120
+ } if (rf & 2) {
121
+ let _t;
122
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fullTemplate = _t.first);
123
+ } }, 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: [["tooltipContent", ""], [3, "ngTemplateOutlet", "ngTemplateOutletContext"]], template: function TdChartTooltipComponent_Template(rf, ctx) { if (rf & 1) {
124
+ i0.ɵɵtemplate(0, TdChartTooltipComponent_ng_template_0_Template, 0, 0, "ng-template", 1, 0, i0.ɵɵtemplateRefExtractor);
125
+ } if (rf & 2) {
126
+ i0.ɵɵproperty("ngTemplateOutlet", ctx.formatterTemplate)("ngTemplateOutletContext", ctx._context);
127
+ } }, encapsulation: 2, changeDetection: 0 });
114
128
  }
115
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdChartTooltipComponent, decorators: [{
116
- type: Component,
117
- args: [{ selector: 'td-chart-tooltip', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template\n #tooltipContent\n [ngTemplateOutlet]=\"formatterTemplate\"\n [ngTemplateOutletContext]=\"_context\"\n></ng-template>\n" }]
118
- }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i1.TdChartOptionsService }], propDecorators: { 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, {
163
- read: TemplateRef,
164
- static: true,
165
- }]
166
- }], fullTemplate: [{
167
- type: ViewChild,
168
- args: ['tooltipContent', { static: true }]
169
- }] } });
129
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdChartTooltipComponent, [{
130
+ type: Component,
131
+ args: [{ selector: 'td-chart-tooltip', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template\n #tooltipContent\n [ngTemplateOutlet]=\"formatterTemplate\"\n [ngTemplateOutletContext]=\"_context\"\n></ng-template>\n" }]
132
+ }], () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i1.TdChartOptionsService }], { config: [{
133
+ type: Input
134
+ }], show: [{
135
+ type: Input
136
+ }], trigger: [{
137
+ type: Input
138
+ }], axisPointer: [{
139
+ type: Input
140
+ }], showContent: [{
141
+ type: Input
142
+ }], alwaysShowContent: [{
143
+ type: Input
144
+ }], triggerOn: [{
145
+ type: Input
146
+ }], showDelay: [{
147
+ type: Input
148
+ }], hideDelay: [{
149
+ type: Input
150
+ }], enterable: [{
151
+ type: Input
152
+ }], renderMode: [{
153
+ type: Input
154
+ }], confine: [{
155
+ type: Input
156
+ }], transitionDuration: [{
157
+ type: Input
158
+ }], position: [{
159
+ type: Input
160
+ }], formatter: [{
161
+ type: Input
162
+ }], backgroundColor: [{
163
+ type: Input
164
+ }], borderColor: [{
165
+ type: Input
166
+ }], borderWidth: [{
167
+ type: Input
168
+ }], padding: [{
169
+ type: Input
170
+ }], textStyle: [{
171
+ type: Input
172
+ }], extraCssText: [{
173
+ type: Input
174
+ }], formatterTemplate: [{
175
+ type: ContentChild,
176
+ args: [TdChartTooltipFormatterDirective, {
177
+ read: TemplateRef,
178
+ static: true,
179
+ }]
180
+ }], fullTemplate: [{
181
+ type: ViewChild,
182
+ args: ['tooltipContent', { static: true }]
183
+ }] }); })();
184
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TdChartTooltipComponent, { className: "TdChartTooltipComponent", filePath: "tooltip.component.ts", lineNumber: 38 }); })();
170
185
 
186
+ const _c0 = ["tooltipContent"];
187
+ function TdSeriesTooltipComponent_ng_template_0_Template(rf, ctx) { }
171
188
  class TdSeriesTooltipComponent {
172
189
  _changeDetectorRef;
173
190
  _elementRef;
@@ -239,63 +256,82 @@ class TdSeriesTooltipComponent {
239
256
  _removeOption() {
240
257
  this._seriesComponent.removeStateOption('tooltip');
241
258
  }
242
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdSeriesTooltipComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i1.TdSeriesDirective }], target: i0.ɵɵFactoryTarget.Component });
243
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.11", 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", dependencies: [{ kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
259
+ static ɵfac = function TdSeriesTooltipComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TdSeriesTooltipComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i1.TdSeriesDirective)); };
260
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TdSeriesTooltipComponent, selectors: [["td-chart-series-tooltip"]], contentQueries: function TdSeriesTooltipComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
261
+ i0.ɵɵcontentQuery(dirIndex, TdChartTooltipFormatterDirective, 7, TemplateRef);
262
+ } if (rf & 2) {
263
+ let _t;
264
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.formatterTemplate = _t.first);
265
+ } }, viewQuery: function TdSeriesTooltipComponent_Query(rf, ctx) { if (rf & 1) {
266
+ i0.ɵɵviewQuery(_c0, 7);
267
+ } if (rf & 2) {
268
+ let _t;
269
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fullTemplate = _t.first);
270
+ } }, 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: [["tooltipContent", ""], [3, "ngTemplateOutlet", "ngTemplateOutletContext"]], template: function TdSeriesTooltipComponent_Template(rf, ctx) { if (rf & 1) {
271
+ i0.ɵɵtemplate(0, TdSeriesTooltipComponent_ng_template_0_Template, 0, 0, "ng-template", 1, 0, i0.ɵɵtemplateRefExtractor);
272
+ } if (rf & 2) {
273
+ i0.ɵɵproperty("ngTemplateOutlet", ctx.formatterTemplate)("ngTemplateOutletContext", ctx._context);
274
+ } }, encapsulation: 2, changeDetection: 0 });
244
275
  }
245
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdSeriesTooltipComponent, decorators: [{
246
- type: Component,
247
- args: [{ selector: 'td-chart-series-tooltip', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template\n #tooltipContent\n [ngTemplateOutlet]=\"formatterTemplate\"\n [ngTemplateOutletContext]=\"_context\"\n></ng-template>\n" }]
248
- }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i1.TdSeriesDirective }], propDecorators: { config: [{
249
- type: Input
250
- }], formatter: [{
251
- type: Input
252
- }], position: [{
253
- type: Input
254
- }], backgroundColor: [{
255
- type: Input
256
- }], borderColor: [{
257
- type: Input
258
- }], borderWidth: [{
259
- type: Input
260
- }], padding: [{
261
- type: Input
262
- }], textStyle: [{
263
- type: Input
264
- }], extraCssText: [{
265
- type: Input
266
- }], formatterTemplate: [{
267
- type: ContentChild,
268
- args: [TdChartTooltipFormatterDirective, {
269
- read: TemplateRef,
270
- static: true,
271
- }]
272
- }], fullTemplate: [{
273
- type: ViewChild,
274
- args: ['tooltipContent', { static: true }]
275
- }] } });
276
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdSeriesTooltipComponent, [{
277
+ type: Component,
278
+ args: [{ selector: 'td-chart-series-tooltip', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template\n #tooltipContent\n [ngTemplateOutlet]=\"formatterTemplate\"\n [ngTemplateOutletContext]=\"_context\"\n></ng-template>\n" }]
279
+ }], () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i1.TdSeriesDirective }], { config: [{
280
+ type: Input
281
+ }], formatter: [{
282
+ type: Input
283
+ }], position: [{
284
+ type: Input
285
+ }], backgroundColor: [{
286
+ type: Input
287
+ }], borderColor: [{
288
+ type: Input
289
+ }], borderWidth: [{
290
+ type: Input
291
+ }], padding: [{
292
+ type: Input
293
+ }], textStyle: [{
294
+ type: Input
295
+ }], extraCssText: [{
296
+ type: Input
297
+ }], formatterTemplate: [{
298
+ type: ContentChild,
299
+ args: [TdChartTooltipFormatterDirective, {
300
+ read: TemplateRef,
301
+ static: true,
302
+ }]
303
+ }], fullTemplate: [{
304
+ type: ViewChild,
305
+ args: ['tooltipContent', { static: true }]
306
+ }] }); })();
307
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TdSeriesTooltipComponent, { className: "TdSeriesTooltipComponent", filePath: "series-tooltip.component.ts", lineNumber: 26 }); })();
276
308
 
277
309
  const TOOLTIP_MODULE_COMPONENTS = [
278
310
  TdChartTooltipComponent,
279
311
  TdChartTooltipFormatterDirective,
280
312
  TdSeriesTooltipComponent,
281
313
  ];
314
+ /**
315
+ * @deprecated This module is deprecated and will be removed in future versions.
316
+ * Please migrate to using standalone components as soon as possible.
317
+ */
282
318
  class CovalentTooltipEchartsModule {
283
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CovalentTooltipEchartsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
284
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.11", ngImport: i0, type: CovalentTooltipEchartsModule, declarations: [TdChartTooltipComponent,
285
- TdChartTooltipFormatterDirective,
286
- TdSeriesTooltipComponent], imports: [CommonModule], exports: [TdChartTooltipComponent,
287
- TdChartTooltipFormatterDirective,
288
- TdSeriesTooltipComponent] });
289
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CovalentTooltipEchartsModule, imports: [CommonModule] });
319
+ static ɵfac = function CovalentTooltipEchartsModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CovalentTooltipEchartsModule)(); };
320
+ static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: CovalentTooltipEchartsModule });
321
+ static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({});
290
322
  }
291
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CovalentTooltipEchartsModule, decorators: [{
292
- type: NgModule,
293
- args: [{
294
- imports: [CommonModule],
295
- declarations: [TOOLTIP_MODULE_COMPONENTS],
296
- exports: [TOOLTIP_MODULE_COMPONENTS],
297
- }]
298
- }] });
323
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CovalentTooltipEchartsModule, [{
324
+ type: NgModule,
325
+ args: [{
326
+ imports: [TOOLTIP_MODULE_COMPONENTS],
327
+ exports: [TOOLTIP_MODULE_COMPONENTS],
328
+ }]
329
+ }], null, null); })();
330
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CovalentTooltipEchartsModule, { imports: [TdChartTooltipComponent,
331
+ TdChartTooltipFormatterDirective,
332
+ TdSeriesTooltipComponent], exports: [TdChartTooltipComponent,
333
+ TdChartTooltipFormatterDirective,
334
+ TdSeriesTooltipComponent] }); })();
299
335
 
300
336
  /**
301
337
  * Generated bundle index. Do not edit.