@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,9 +1,9 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { forwardRef, Component, ChangeDetectionStrategy, Input, NgModule } from '@angular/core';
3
- import { CommonModule } from '@angular/common';
4
3
  import * as i1 from '@covalent/echarts/base';
5
4
  import { TdSeriesDirective } from '@covalent/echarts/base';
6
5
 
6
+ const _c0 = ["td-pie", ""];
7
7
  class TdChartSeriesPieComponent extends TdSeriesDirective {
8
8
  legendHoverLink;
9
9
  hoverAnimation;
@@ -62,111 +62,116 @@ class TdChartSeriesPieComponent extends TdSeriesDirective {
62
62
  radius: this.radius,
63
63
  };
64
64
  }
65
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdChartSeriesPieComponent, deps: [{ token: i1.TdChartOptionsService }], target: i0.ɵɵFactoryTarget.Component });
66
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.11", type: TdChartSeriesPieComponent, selector: "td-chart-series[td-pie]", inputs: { config: "config", id: "id", name: "name", color: "color", data: "data", animation: "animation", animationThreshold: "animationThreshold", animationDuration: "animationDuration", animationEasing: "animationEasing", animationDelay: "animationDelay", animationDurationUpdate: "animationDurationUpdate", animationEasingUpdate: "animationEasingUpdate", animationDelayUpdate: "animationDelayUpdate", tooltip: "tooltip", legendHoverLink: "legendHoverLink", hoverAnimation: "hoverAnimation", hoverOffset: "hoverOffset", selectedMode: "selectedMode", selectedOffset: "selectedOffset", clockwise: "clockwise", startAngle: "startAngle", minAngle: "minAngle", minShowLabelAngle: "minShowLabelAngle", roseType: "roseType", avoidLabelOverlap: "avoidLabelOverlap", stillShowZeroSum: "stillShowZeroSum", cursor: "cursor", labelLine: "labelLine", label: "label", itemStyle: "itemStyle", emphasis: "emphasis", seriesLayoutBy: "seriesLayoutBy", datasetIndex: "datasetIndex", markPoint: "markPoint", markLine: "markLine", markArea: "markArea", zlevel: "zlevel", z: "z", center: "center", radius: "radius" }, providers: [
67
- {
68
- provide: TdSeriesDirective,
69
- useExisting: forwardRef(() => TdChartSeriesPieComponent),
70
- },
71
- ], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
65
+ static ɵfac = function TdChartSeriesPieComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TdChartSeriesPieComponent)(i0.ɵɵdirectiveInject(i1.TdChartOptionsService)); };
66
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TdChartSeriesPieComponent, selectors: [["td-chart-series", "td-pie", ""]], inputs: { config: "config", id: "id", name: "name", color: "color", data: "data", animation: "animation", animationThreshold: "animationThreshold", animationDuration: "animationDuration", animationEasing: "animationEasing", animationDelay: "animationDelay", animationDurationUpdate: "animationDurationUpdate", animationEasingUpdate: "animationEasingUpdate", animationDelayUpdate: "animationDelayUpdate", tooltip: "tooltip", legendHoverLink: "legendHoverLink", hoverAnimation: "hoverAnimation", hoverOffset: "hoverOffset", selectedMode: "selectedMode", selectedOffset: "selectedOffset", clockwise: "clockwise", startAngle: "startAngle", minAngle: "minAngle", minShowLabelAngle: "minShowLabelAngle", roseType: "roseType", avoidLabelOverlap: "avoidLabelOverlap", stillShowZeroSum: "stillShowZeroSum", cursor: "cursor", labelLine: "labelLine", label: "label", itemStyle: "itemStyle", emphasis: "emphasis", seriesLayoutBy: "seriesLayoutBy", datasetIndex: "datasetIndex", markPoint: "markPoint", markLine: "markLine", markArea: "markArea", zlevel: "zlevel", z: "z", center: "center", radius: "radius" }, features: [i0.ɵɵProvidersFeature([
67
+ {
68
+ provide: TdSeriesDirective,
69
+ useExisting: forwardRef(() => TdChartSeriesPieComponent),
70
+ },
71
+ ]), i0.ɵɵInheritDefinitionFeature], attrs: _c0, decls: 0, vars: 0, template: function TdChartSeriesPieComponent_Template(rf, ctx) { }, encapsulation: 2, changeDetection: 0 });
72
72
  }
73
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdChartSeriesPieComponent, decorators: [{
74
- type: Component,
75
- args: [{
76
- selector: 'td-chart-series[td-pie]',
77
- template: '',
78
- changeDetection: ChangeDetectionStrategy.OnPush,
79
- inputs: [
80
- 'config',
81
- 'id',
82
- 'name',
83
- 'color',
84
- 'data',
85
- 'animation',
86
- 'animationThreshold',
87
- 'animationDuration',
88
- 'animationEasing',
89
- 'animationDelay',
90
- 'animationDurationUpdate',
91
- 'animationEasingUpdate',
92
- 'animationDelayUpdate',
93
- 'tooltip',
94
- ],
95
- providers: [
96
- {
97
- provide: TdSeriesDirective,
98
- useExisting: forwardRef(() => TdChartSeriesPieComponent),
99
- },
100
- ],
101
- }]
102
- }], ctorParameters: () => [{ type: i1.TdChartOptionsService }], propDecorators: { legendHoverLink: [{
103
- type: Input
104
- }], hoverAnimation: [{
105
- type: Input
106
- }], hoverOffset: [{
107
- type: Input
108
- }], selectedMode: [{
109
- type: Input
110
- }], selectedOffset: [{
111
- type: Input
112
- }], clockwise: [{
113
- type: Input
114
- }], startAngle: [{
115
- type: Input
116
- }], minAngle: [{
117
- type: Input
118
- }], minShowLabelAngle: [{
119
- type: Input
120
- }], roseType: [{
121
- type: Input
122
- }], avoidLabelOverlap: [{
123
- type: Input
124
- }], stillShowZeroSum: [{
125
- type: Input
126
- }], cursor: [{
127
- type: Input
128
- }], labelLine: [{
129
- type: Input
130
- }], label: [{
131
- type: Input
132
- }], itemStyle: [{
133
- type: Input
134
- }], emphasis: [{
135
- type: Input
136
- }], seriesLayoutBy: [{
137
- type: Input
138
- }], datasetIndex: [{
139
- type: Input
140
- }], markPoint: [{
141
- type: Input
142
- }], markLine: [{
143
- type: Input
144
- }], markArea: [{
145
- type: Input
146
- }], zlevel: [{
147
- type: Input
148
- }], z: [{
149
- type: Input
150
- }], center: [{
151
- type: Input
152
- }], radius: [{
153
- type: Input
154
- }] } });
73
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdChartSeriesPieComponent, [{
74
+ type: Component,
75
+ args: [{
76
+ selector: 'td-chart-series[td-pie]',
77
+ template: '',
78
+ changeDetection: ChangeDetectionStrategy.OnPush,
79
+ inputs: [
80
+ 'config',
81
+ 'id',
82
+ 'name',
83
+ 'color',
84
+ 'data',
85
+ 'animation',
86
+ 'animationThreshold',
87
+ 'animationDuration',
88
+ 'animationEasing',
89
+ 'animationDelay',
90
+ 'animationDurationUpdate',
91
+ 'animationEasingUpdate',
92
+ 'animationDelayUpdate',
93
+ 'tooltip',
94
+ ],
95
+ providers: [
96
+ {
97
+ provide: TdSeriesDirective,
98
+ useExisting: forwardRef(() => TdChartSeriesPieComponent),
99
+ },
100
+ ],
101
+ }]
102
+ }], () => [{ type: i1.TdChartOptionsService }], { legendHoverLink: [{
103
+ type: Input
104
+ }], hoverAnimation: [{
105
+ type: Input
106
+ }], hoverOffset: [{
107
+ type: Input
108
+ }], selectedMode: [{
109
+ type: Input
110
+ }], selectedOffset: [{
111
+ type: Input
112
+ }], clockwise: [{
113
+ type: Input
114
+ }], startAngle: [{
115
+ type: Input
116
+ }], minAngle: [{
117
+ type: Input
118
+ }], minShowLabelAngle: [{
119
+ type: Input
120
+ }], roseType: [{
121
+ type: Input
122
+ }], avoidLabelOverlap: [{
123
+ type: Input
124
+ }], stillShowZeroSum: [{
125
+ type: Input
126
+ }], cursor: [{
127
+ type: Input
128
+ }], labelLine: [{
129
+ type: Input
130
+ }], label: [{
131
+ type: Input
132
+ }], itemStyle: [{
133
+ type: Input
134
+ }], emphasis: [{
135
+ type: Input
136
+ }], seriesLayoutBy: [{
137
+ type: Input
138
+ }], datasetIndex: [{
139
+ type: Input
140
+ }], markPoint: [{
141
+ type: Input
142
+ }], markLine: [{
143
+ type: Input
144
+ }], markArea: [{
145
+ type: Input
146
+ }], zlevel: [{
147
+ type: Input
148
+ }], z: [{
149
+ type: Input
150
+ }], center: [{
151
+ type: Input
152
+ }], radius: [{
153
+ type: Input
154
+ }] }); })();
155
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TdChartSeriesPieComponent, { className: "TdChartSeriesPieComponent", filePath: "pie.component.ts", lineNumber: 81 }); })();
155
156
 
156
157
  const PIE_MODULE_COMPONENTS = [TdChartSeriesPieComponent];
158
+ /**
159
+ * @deprecated This module is deprecated and will be removed in future versions.
160
+ * Please migrate to using standalone components as soon as possible.
161
+ */
157
162
  class CovalentPieEchartsModule {
158
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CovalentPieEchartsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
159
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.11", ngImport: i0, type: CovalentPieEchartsModule, declarations: [TdChartSeriesPieComponent], imports: [CommonModule], exports: [TdChartSeriesPieComponent] });
160
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CovalentPieEchartsModule, imports: [CommonModule] });
163
+ static ɵfac = function CovalentPieEchartsModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CovalentPieEchartsModule)(); };
164
+ static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: CovalentPieEchartsModule });
165
+ static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({});
161
166
  }
162
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CovalentPieEchartsModule, decorators: [{
163
- type: NgModule,
164
- args: [{
165
- imports: [CommonModule],
166
- declarations: [PIE_MODULE_COMPONENTS],
167
- exports: [PIE_MODULE_COMPONENTS],
168
- }]
169
- }] });
167
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CovalentPieEchartsModule, [{
168
+ type: NgModule,
169
+ args: [{
170
+ imports: [PIE_MODULE_COMPONENTS],
171
+ exports: [PIE_MODULE_COMPONENTS],
172
+ }]
173
+ }], null, null); })();
174
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CovalentPieEchartsModule, { imports: [TdChartSeriesPieComponent], exports: [TdChartSeriesPieComponent] }); })();
170
175
 
171
176
  /**
172
177
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"covalent-echarts-pie.mjs","sources":["../../../../libs/angular-echarts/pie/src/pie.component.ts","../../../../libs/angular-echarts/pie/src/pie.module.ts","../../../../libs/angular-echarts/pie/src/covalent-echarts-pie.ts"],"sourcesContent":["import {\n Component,\n Input,\n ChangeDetectionStrategy,\n forwardRef,\n} from '@angular/core';\n\nimport {\n TdChartOptionsService,\n ITdItemStyle,\n ITdEmphasis,\n TdSeriesLayoutBy,\n ITdMarkPoint,\n ITdMarkLine,\n ITdMarkArea,\n ITdSeries,\n ITdLabel,\n ITdLabelLine,\n TdSeriesDirective,\n} from '@covalent/echarts/base';\n\nexport interface ITdPieSeries extends ITdSeries {\n legendHoverLink?: boolean;\n hoverAnimation?: boolean;\n hoverOffset?: number;\n selectedMode?: boolean | string;\n selectedOffset?: number;\n clockwise?: boolean;\n startAngle?: number;\n minAngle?: number;\n minShowLabelAngle?: number;\n roseType?: boolean | string;\n avoidLabelOverlap?: boolean;\n stillShowZeroSum?: boolean;\n cursor?: string;\n labelLine?: ITdLabelLine;\n Label?: ITdLabel;\n itemStyle?: ITdItemStyle;\n emphasis?: ITdEmphasis;\n seriesLayoutBy?: TdSeriesLayoutBy;\n datasetIndex?: number;\n data?: any[];\n markPoint?: ITdMarkPoint;\n markLine?: ITdMarkLine;\n markArea?: ITdMarkArea;\n Zlevel?: 0;\n z?: number;\n center?: object;\n radius?: number | string | any[];\n silent?: boolean;\n}\n\n@Component({\n selector: 'td-chart-series[td-pie]',\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush,\n inputs: [\n 'config',\n 'id',\n 'name',\n 'color',\n 'data',\n\n 'animation',\n 'animationThreshold',\n 'animationDuration',\n 'animationEasing',\n 'animationDelay',\n 'animationDurationUpdate',\n 'animationEasingUpdate',\n 'animationDelayUpdate',\n 'tooltip',\n ],\n providers: [\n {\n provide: TdSeriesDirective,\n useExisting: forwardRef(() => TdChartSeriesPieComponent),\n },\n ],\n})\nexport class TdChartSeriesPieComponent\n extends TdSeriesDirective\n implements ITdPieSeries\n{\n @Input() legendHoverLink?: boolean;\n @Input() hoverAnimation?: boolean;\n @Input() hoverOffset?: number;\n @Input() selectedMode?: boolean | string;\n @Input() selectedOffset?: number;\n @Input() clockwise?: boolean;\n @Input() startAngle?: number;\n @Input() minAngle?: number;\n @Input() minShowLabelAngle?: number;\n @Input() roseType?: boolean | string;\n @Input() avoidLabelOverlap?: boolean;\n @Input() stillShowZeroSum?: boolean;\n @Input() cursor?: string;\n @Input() labelLine?: object;\n @Input() label?: any;\n @Input() itemStyle?: ITdItemStyle;\n @Input() emphasis?: ITdEmphasis;\n @Input() seriesLayoutBy?: TdSeriesLayoutBy;\n @Input() datasetIndex?: number;\n @Input() markPoint?: ITdMarkPoint;\n @Input() markLine?: ITdMarkLine;\n @Input() markArea?: ITdMarkArea;\n @Input() zlevel?: number;\n @Input() z?: number;\n @Input() center?: object;\n @Input() radius?: number | string | any[];\n\n constructor(_optionsService: TdChartOptionsService) {\n super('pie', _optionsService);\n }\n\n getConfig(): any {\n return {\n legendHoverLink: this.legendHoverLink,\n label: this.label,\n itemStyle: this.itemStyle,\n emphasis: this.emphasis,\n selectedMode: this.selectedMode,\n selectedOffset: this.selectedOffset,\n clockwise: this.clockwise,\n startAngle: this.startAngle,\n minAngle: this.minAngle,\n minShowLabelAngle: this.minShowLabelAngle,\n roseType: this.roseType,\n avoidLabelOverlap: this.avoidLabelOverlap,\n stillShowZeroSum: this.stillShowZeroSum,\n cursor: this.cursor,\n labelLine: this.labelLine,\n seriesLayoutBy: this.seriesLayoutBy,\n datasetIndex: this.datasetIndex,\n markPoint: this.markPoint,\n markLine: this.markLine,\n markArea: this.markArea,\n zlevel: this.zlevel,\n z: this.z,\n center: this.center,\n radius: this.radius,\n };\n }\n}\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { TdChartSeriesPieComponent } from './pie.component';\n\nexport const PIE_MODULE_COMPONENTS: Type<any>[] = [TdChartSeriesPieComponent];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [PIE_MODULE_COMPONENTS],\n exports: [PIE_MODULE_COMPONENTS],\n})\nexport class CovalentPieEchartsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;AAgFM,MAAO,yBACX,SAAQ,iBAAiB,CAAA;AAGhB,IAAA,eAAe;AACf,IAAA,cAAc;AACd,IAAA,WAAW;AACX,IAAA,YAAY;AACZ,IAAA,cAAc;AACd,IAAA,SAAS;AACT,IAAA,UAAU;AACV,IAAA,QAAQ;A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A,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,wBAAwB,YAJzB,YAAY,CAAA,EAAA,CAAA;;4FAIX,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBALpC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,YAAY,EAAE,CAAC,qBAAqB,CAAC;oBACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;AACjC,iBAAA;;;ACXD;;AAEG;;;;"}
1
+ {"version":3,"file":"covalent-echarts-pie.mjs","sources":["../../../../libs/angular-echarts/pie/src/pie.component.ts","../../../../libs/angular-echarts/pie/src/pie.module.ts","../../../../libs/angular-echarts/pie/src/covalent-echarts-pie.ts"],"sourcesContent":["import {\n Component,\n Input,\n ChangeDetectionStrategy,\n forwardRef,\n} from '@angular/core';\n\nimport {\n TdChartOptionsService,\n ITdItemStyle,\n ITdEmphasis,\n TdSeriesLayoutBy,\n ITdMarkPoint,\n ITdMarkLine,\n ITdMarkArea,\n ITdSeries,\n ITdLabel,\n ITdLabelLine,\n TdSeriesDirective,\n} from '@covalent/echarts/base';\n\nexport interface ITdPieSeries extends ITdSeries {\n legendHoverLink?: boolean;\n hoverAnimation?: boolean;\n hoverOffset?: number;\n selectedMode?: boolean | string;\n selectedOffset?: number;\n clockwise?: boolean;\n startAngle?: number;\n minAngle?: number;\n minShowLabelAngle?: number;\n roseType?: boolean | string;\n avoidLabelOverlap?: boolean;\n stillShowZeroSum?: boolean;\n cursor?: string;\n labelLine?: ITdLabelLine;\n Label?: ITdLabel;\n itemStyle?: ITdItemStyle;\n emphasis?: ITdEmphasis;\n seriesLayoutBy?: TdSeriesLayoutBy;\n datasetIndex?: number;\n data?: any[];\n markPoint?: ITdMarkPoint;\n markLine?: ITdMarkLine;\n markArea?: ITdMarkArea;\n Zlevel?: 0;\n z?: number;\n center?: object;\n radius?: number | string | any[];\n silent?: boolean;\n}\n\n@Component({\n selector: 'td-chart-series[td-pie]',\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush,\n inputs: [\n 'config',\n 'id',\n 'name',\n 'color',\n 'data',\n\n 'animation',\n 'animationThreshold',\n 'animationDuration',\n 'animationEasing',\n 'animationDelay',\n 'animationDurationUpdate',\n 'animationEasingUpdate',\n 'animationDelayUpdate',\n 'tooltip',\n ],\n providers: [\n {\n provide: TdSeriesDirective,\n useExisting: forwardRef(() => TdChartSeriesPieComponent),\n },\n ],\n})\nexport class TdChartSeriesPieComponent\n extends TdSeriesDirective\n implements ITdPieSeries\n{\n @Input() legendHoverLink?: boolean;\n @Input() hoverAnimation?: boolean;\n @Input() hoverOffset?: number;\n @Input() selectedMode?: boolean | string;\n @Input() selectedOffset?: number;\n @Input() clockwise?: boolean;\n @Input() startAngle?: number;\n @Input() minAngle?: number;\n @Input() minShowLabelAngle?: number;\n @Input() roseType?: boolean | string;\n @Input() avoidLabelOverlap?: boolean;\n @Input() stillShowZeroSum?: boolean;\n @Input() cursor?: string;\n @Input() labelLine?: object;\n @Input() label?: any;\n @Input() itemStyle?: ITdItemStyle;\n @Input() emphasis?: ITdEmphasis;\n @Input() seriesLayoutBy?: TdSeriesLayoutBy;\n @Input() datasetIndex?: number;\n @Input() markPoint?: ITdMarkPoint;\n @Input() markLine?: ITdMarkLine;\n @Input() markArea?: ITdMarkArea;\n @Input() zlevel?: number;\n @Input() z?: number;\n @Input() center?: object;\n @Input() radius?: number | string | any[];\n\n constructor(_optionsService: TdChartOptionsService) {\n super('pie', _optionsService);\n }\n\n getConfig(): any {\n return {\n legendHoverLink: this.legendHoverLink,\n label: this.label,\n itemStyle: this.itemStyle,\n emphasis: this.emphasis,\n selectedMode: this.selectedMode,\n selectedOffset: this.selectedOffset,\n clockwise: this.clockwise,\n startAngle: this.startAngle,\n minAngle: this.minAngle,\n minShowLabelAngle: this.minShowLabelAngle,\n roseType: this.roseType,\n avoidLabelOverlap: this.avoidLabelOverlap,\n stillShowZeroSum: this.stillShowZeroSum,\n cursor: this.cursor,\n labelLine: this.labelLine,\n seriesLayoutBy: this.seriesLayoutBy,\n datasetIndex: this.datasetIndex,\n markPoint: this.markPoint,\n markLine: this.markLine,\n markArea: this.markArea,\n zlevel: this.zlevel,\n z: this.z,\n center: this.center,\n radius: this.radius,\n };\n }\n}\n","import { NgModule, Type } from '@angular/core';\nimport { TdChartSeriesPieComponent } from './pie.component';\n\nexport const PIE_MODULE_COMPONENTS: Type<any>[] = [TdChartSeriesPieComponent];\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: [PIE_MODULE_COMPONENTS],\n exports: [PIE_MODULE_COMPONENTS],\n})\nexport class CovalentPieEchartsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;AAgFM,MAAO,yBACX,SAAQ,iBAAiB,CAAA;AAGhB,IAAA,eAAe;AACf,IAAA,cAAc;AACd,IAAA,WAAW;AACX,IAAA,YAAY;AACZ,IAAA,cAAc;AACd,IAAA,SAAS;AACT,IAAA,UAAU;AACV,IAAA,QAAQ;AACR,IAAA,iBAAiB;AACjB,IAAA,QAAQ;AACR,IAAA,iBAAiB;AACjB,IAAA,gBAAgB;AAChB,IAAA,MAAM;AACN,IAAA,SAAS;AACT,IAAA,KAAK;AACL,IAAA,SAAS;AACT,IAAA,QAAQ;AACR,IAAA,cAAc;AACd,IAAA,YAAY;AACZ,IAAA,SAAS;AACT,IAAA,QAAQ;AACR,IAAA,QAAQ;AACR,IAAA,MAAM;AACN,IAAA,CAAC;AACD,IAAA,MAAM;AACN,IAAA,MAAM;AAEf,IAAA,WAAA,CAAY,eAAsC,EAAA;AAChD,QAAA,KAAK,CAAC,KAAK,EAAE,eAAe,CAAC;;IAG/B,SAAS,GAAA;QACP,OAAO;YACL,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,KAAK,EAAE,IAAI,CAAC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AA,CAAA;kBAApB;YACQ,SAAS,EAAA,CAAA;kBAAjB;YACQ,QAAQ,EAAA,CAAA;kBAAhB;YACQ,QAAQ,EAAA,CAAA;kBAAhB;YACQ,MAAM,EAAA,CAAA;kBAAd;YACQ,CAAC,EAAA,CAAA;kBAAT;YACQ,MAAM,EAAA,CAAA;kBAAd;YACQ,MAAM,EAAA,CAAA;kBAAd;;kFA7BU,yBAAyB,EAAA,EAAA,SAAA,EAAA,2BAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,UAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;AC7EzB,MAAA,qBAAqB,GAAgB,CAAC,yBAAyB;AAE5E;;;AAGG;MAKU,wBAAwB,CAAA;kHAAxB,wBAAwB,GAAA,CAAA,EAAA;4DAAxB,wBAAwB,EAAA,CAAA;;;iFAAxB,wBAAwB,EAAA,CAAA;cAJpC,QAAQ;AAAC,QAAA,IAAA,EAAA,CAAA;gBACR,OAAO,EAAE,CAAC,qBAAqB,CAAC;gBAChC,OAAO,EAAE,CAAC,qBAAqB,CAAC;AACjC,aAAA;;wFACY,wBAAwB,EAAA,EAAA,OAAA,EAAA,CAVc,yBAAyB,CAAA,EAAA,OAAA,EAAA,CAAzB,yBAAyB,CAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;ACH5E;;AAEG;;;;"}
@@ -1,11 +1,11 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { forwardRef, Component, ChangeDetectionStrategy, Input, NgModule } from '@angular/core';
3
- import { CommonModule } from '@angular/common';
4
3
  import * as i1 from '@covalent/echarts/base';
5
4
  import { assignDefined, TdSeriesDirective } from '@covalent/echarts/base';
6
5
  import { TdChartSeriesScatterComponent } from '@covalent/echarts/scatter';
7
6
  import * as ecStat from 'echarts-stat';
8
7
 
8
+ const _c0 = ["td-regression", ""];
9
9
  class TdChartSeriesRegressionComponent extends TdChartSeriesScatterComponent {
10
10
  data;
11
11
  regressionType;
@@ -95,67 +95,72 @@ class TdChartSeriesRegressionComponent extends TdChartSeriesScatterComponent {
95
95
  this.optionsService.setOption('series', series);
96
96
  this.setOptions();
97
97
  }
98
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdChartSeriesRegressionComponent, deps: [{ token: i1.TdChartOptionsService }], target: i0.ɵɵFactoryTarget.Component });
99
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.11", type: TdChartSeriesRegressionComponent, selector: "td-chart-series[td-regression]", inputs: { config: "config", id: "id", name: "name", color: "color", data: "data", animation: "animation", animationThreshold: "animationThreshold", animationDuration: "animationDuration", animationEasing: "animationEasing", animationDelay: "animationDelay", animationDurationUpdate: "animationDurationUpdate", animationEasingUpdate: "animationEasingUpdate", animationDelayUpdate: "animationDelayUpdate", tooltip: "tooltip", regressionType: "regressionType", polinomialOrder: "polinomialOrder" }, providers: [
100
- {
101
- provide: TdSeriesDirective,
102
- useExisting: forwardRef(() => TdChartSeriesRegressionComponent),
103
- },
104
- ], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
98
+ static ɵfac = function TdChartSeriesRegressionComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TdChartSeriesRegressionComponent)(i0.ɵɵdirectiveInject(i1.TdChartOptionsService)); };
99
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TdChartSeriesRegressionComponent, selectors: [["td-chart-series", "td-regression", ""]], inputs: { config: "config", id: "id", name: "name", color: "color", data: "data", animation: "animation", animationThreshold: "animationThreshold", animationDuration: "animationDuration", animationEasing: "animationEasing", animationDelay: "animationDelay", animationDurationUpdate: "animationDurationUpdate", animationEasingUpdate: "animationEasingUpdate", animationDelayUpdate: "animationDelayUpdate", tooltip: "tooltip", regressionType: "regressionType", polinomialOrder: "polinomialOrder" }, features: [i0.ɵɵProvidersFeature([
100
+ {
101
+ provide: TdSeriesDirective,
102
+ useExisting: forwardRef(() => TdChartSeriesRegressionComponent),
103
+ },
104
+ ]), i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], attrs: _c0, decls: 0, vars: 0, template: function TdChartSeriesRegressionComponent_Template(rf, ctx) { }, encapsulation: 2, changeDetection: 0 });
105
105
  }
106
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdChartSeriesRegressionComponent, decorators: [{
107
- type: Component,
108
- args: [{
109
- selector: 'td-chart-series[td-regression]',
110
- template: '',
111
- changeDetection: ChangeDetectionStrategy.OnPush,
112
- inputs: [
113
- 'config',
114
- 'id',
115
- 'name',
116
- 'color',
117
- 'data',
118
- 'animation',
119
- 'animationThreshold',
120
- 'animationDuration',
121
- 'animationEasing',
122
- 'animationDelay',
123
- 'animationDurationUpdate',
124
- 'animationEasingUpdate',
125
- 'animationDelayUpdate',
126
- 'tooltip',
127
- ],
128
- providers: [
129
- {
130
- provide: TdSeriesDirective,
131
- useExisting: forwardRef(() => TdChartSeriesRegressionComponent),
132
- },
133
- ],
134
- }]
135
- }], ctorParameters: () => [{ type: i1.TdChartOptionsService }], propDecorators: { data: [{
136
- type: Input
137
- }], regressionType: [{
138
- type: Input
139
- }], polinomialOrder: [{
140
- type: Input
141
- }] } });
106
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdChartSeriesRegressionComponent, [{
107
+ type: Component,
108
+ args: [{
109
+ selector: 'td-chart-series[td-regression]',
110
+ template: '',
111
+ changeDetection: ChangeDetectionStrategy.OnPush,
112
+ inputs: [
113
+ 'config',
114
+ 'id',
115
+ 'name',
116
+ 'color',
117
+ 'data',
118
+ 'animation',
119
+ 'animationThreshold',
120
+ 'animationDuration',
121
+ 'animationEasing',
122
+ 'animationDelay',
123
+ 'animationDurationUpdate',
124
+ 'animationEasingUpdate',
125
+ 'animationDelayUpdate',
126
+ 'tooltip',
127
+ ],
128
+ providers: [
129
+ {
130
+ provide: TdSeriesDirective,
131
+ useExisting: forwardRef(() => TdChartSeriesRegressionComponent),
132
+ },
133
+ ],
134
+ }]
135
+ }], () => [{ type: i1.TdChartOptionsService }], { data: [{
136
+ type: Input
137
+ }], regressionType: [{
138
+ type: Input
139
+ }], polinomialOrder: [{
140
+ type: Input
141
+ }] }); })();
142
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TdChartSeriesRegressionComponent, { className: "TdChartSeriesRegressionComponent", filePath: "regression.component.ts", lineNumber: 60 }); })();
142
143
 
143
144
  const REGRESSION_MODULE_COMPONENTS = [
144
145
  TdChartSeriesRegressionComponent,
145
146
  ];
147
+ /**
148
+ * @deprecated This module is deprecated and will be removed in future versions.
149
+ * Please migrate to using standalone components as soon as possible.
150
+ */
146
151
  class CovalentRegressionEchartsModule {
147
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CovalentRegressionEchartsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
148
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.11", ngImport: i0, type: CovalentRegressionEchartsModule, declarations: [TdChartSeriesRegressionComponent], imports: [CommonModule], exports: [TdChartSeriesRegressionComponent] });
149
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CovalentRegressionEchartsModule, imports: [CommonModule] });
152
+ static ɵfac = function CovalentRegressionEchartsModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CovalentRegressionEchartsModule)(); };
153
+ static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: CovalentRegressionEchartsModule });
154
+ static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({});
150
155
  }
151
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CovalentRegressionEchartsModule, decorators: [{
152
- type: NgModule,
153
- args: [{
154
- imports: [CommonModule],
155
- declarations: [REGRESSION_MODULE_COMPONENTS],
156
- exports: [REGRESSION_MODULE_COMPONENTS],
157
- }]
158
- }] });
156
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CovalentRegressionEchartsModule, [{
157
+ type: NgModule,
158
+ args: [{
159
+ imports: [REGRESSION_MODULE_COMPONENTS],
160
+ exports: [REGRESSION_MODULE_COMPONENTS],
161
+ }]
162
+ }], null, null); })();
163
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CovalentRegressionEchartsModule, { imports: [TdChartSeriesRegressionComponent], exports: [TdChartSeriesRegressionComponent] }); })();
159
164
 
160
165
  /**
161
166
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"covalent-echarts-regression.mjs","sources":["../../../../libs/angular-echarts/regression/src/regression.component.ts","../../../../libs/angular-echarts/regression/src/regression.module.ts","../../../../libs/angular-echarts/regression/src/covalent-echarts-regression.ts"],"sourcesContent":["import {\n Component,\n Input,\n ChangeDetectionStrategy,\n forwardRef,\n OnChanges,\n} from '@angular/core';\n\nimport {\n assignDefined,\n TdChartOptionsService,\n TdSeriesDirective,\n} from '@covalent/echarts/base';\nimport {\n ITdScatterSeries,\n TdChartSeriesScatterComponent,\n} from '@covalent/echarts/scatter';\nimport * as ecStat from 'echarts-stat';\n\nexport type TdRegressionType =\n | 'linear'\n | 'exponential'\n | 'logarithmic'\n | 'polynomial';\n\nexport interface ITdRegressionSeries extends ITdScatterSeries {\n data?: number[][];\n regressionType?: TdRegressionType;\n polinomialOrder?: number;\n}\n\n@Component({\n selector: 'td-chart-series[td-regression]',\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush,\n inputs: [\n 'config',\n 'id',\n 'name',\n 'color',\n 'data',\n\n 'animation',\n 'animationThreshold',\n 'animationDuration',\n 'animationEasing',\n 'animationDelay',\n 'animationDurationUpdate',\n 'animationEasingUpdate',\n 'animationDelayUpdate',\n 'tooltip',\n ],\n providers: [\n {\n provide: TdSeriesDirective,\n useExisting: forwardRef(() => TdChartSeriesRegressionComponent),\n },\n ],\n})\nexport class TdChartSeriesRegressionComponent\n extends TdChartSeriesScatterComponent\n implements ITdRegressionSeries, OnChanges\n{\n @Input() declare data?: number[][];\n @Input() regressionType?: TdRegressionType;\n @Input() polinomialOrder?: number;\n\n constructor(_optionsService: TdChartOptionsService) {\n super(_optionsService);\n }\n\n override ngOnChanges(): void {\n this.render();\n }\n\n override getConfig(): any {\n return {\n regressionType: this.regressionType,\n polinomialOrder: this.polinomialOrder,\n coordinateSystem: this.coordinateSystem,\n xAxisIndex: this.xAxisIndex,\n yAxisIndex: this.yAxisIndex,\n polarIndex: this.polarIndex,\n geoIndex: this.geoIndex,\n calendarIndex: this.calendarIndex,\n hoverAnimation: this.hoverAnimation,\n legendHoverLink: this.legendHoverLink,\n symbol: this.symbol,\n symbolSize: this.symbolSize,\n symbolRotate: this.symbolRotate,\n symbolKeepAspect: this.symbolKeepAspect,\n symbolOffset: this.symbolOffset,\n large: this.large,\n largeThreshold: this.largeThreshold,\n cursor: this.cursor,\n label: this.label,\n itemStyle: this.itemStyle,\n emphasis: this.emphasis,\n progressive: this.progressive,\n progressiveThreshold: this.progressiveThreshold,\n dimensions: this.dimensions,\n encode: this.encode,\n seriesLayoutBy: this.seriesLayoutBy,\n datasetIndex: this.datasetIndex,\n markPoint: this.markPoint,\n markLine: this.markLine,\n markArea: this.markArea,\n zlevel: this.zlevel,\n z: this.z,\n silent: this.silent,\n };\n }\n\n private setOptions(): void {\n const config: any = assignDefined(\n this._state,\n {\n id: this.id,\n type: this.type,\n name: this.name,\n color: this.color,\n data: this.data,\n animation: this.animation,\n animationThreshold: this.animationThreshold,\n animationDuration: this.animationDuration,\n animationEasing: this.animationEasing,\n animationDelay: this.animationDelay,\n animationDurationUpdate: this.animationDurationUpdate,\n animationEasingUpdate: this.animationEasingUpdate,\n animationDelayUpdate: this.animationDelayUpdate,\n tooltip: this.tooltip,\n },\n this.getConfig(),\n this._options,\n this.config ? this.config : {}\n );\n this.optionsService.setArrayOption('scatter', config);\n }\n\n private render() {\n const output: any = this.data;\n const result = ecStat.regression(\n this.regressionType ?? 'linear',\n output,\n this.polinomialOrder ?? 2\n );\n let series = this.optionsService.getOption('series');\n\n if (series) {\n for (const item in series) {\n if (series[item].type === 'line') {\n delete series[item];\n }\n }\n } else {\n series = [];\n }\n\n series.push({\n type: 'line',\n data: result.points,\n tooltip: {},\n showSymbol: false,\n });\n\n this.optionsService.setOption('series', series);\n this.setOptions();\n }\n}\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { TdChartSeriesRegressionComponent } from './regression.component';\n\nexport const REGRESSION_MODULE_COMPONENTS: Type<any>[] = [\n TdChartSeriesRegressionComponent,\n];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [REGRESSION_MODULE_COMPONENTS],\n exports: [REGRESSION_MODULE_COMPONENTS],\n})\nexport class CovalentRegressionEchartsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;AA2DM,MAAO,gCACX,SAAQ,6BAA6B,CAAA;AAGpB,IAAA,IAAI;AACZ,IAAA,cAAc;AACd,IAAA,eAAe;AAExB,IAAA,WAAA,CAAY,eAAsC,EAAA;QAChD,KAAK,CAAC,eAAe,CAAC;;IAGf,WAAW,GAAA;QAClB,IAAI,CAAC,MAAM,EAAE;;IAGN,SAAS,GAAA;QAChB,OAAO;YACL,cAAc,EAAE,IAAI,CAAC,cAAc;YACnC,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;YACvC,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,QAAQ,EAAE,IAAI,CAAC,QAAQ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A,UAAA,EAAA,CAAA;kBAL3C,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,YAAY,EAAE,CAAC,4BAA4B,CAAC;oBAC5C,OAAO,EAAE,CAAC,4BAA4B,CAAC;AACxC,iBAAA;;;ACbD;;AAEG;;;;"}
1
+ {"version":3,"file":"covalent-echarts-regression.mjs","sources":["../../../../libs/angular-echarts/regression/src/regression.component.ts","../../../../libs/angular-echarts/regression/src/regression.module.ts","../../../../libs/angular-echarts/regression/src/covalent-echarts-regression.ts"],"sourcesContent":["import {\n Component,\n Input,\n ChangeDetectionStrategy,\n forwardRef,\n OnChanges,\n} from '@angular/core';\n\nimport {\n assignDefined,\n TdChartOptionsService,\n TdSeriesDirective,\n} from '@covalent/echarts/base';\nimport {\n ITdScatterSeries,\n TdChartSeriesScatterComponent,\n} from '@covalent/echarts/scatter';\nimport * as ecStat from 'echarts-stat';\n\nexport type TdRegressionType =\n | 'linear'\n | 'exponential'\n | 'logarithmic'\n | 'polynomial';\n\nexport interface ITdRegressionSeries extends ITdScatterSeries {\n data?: number[][];\n regressionType?: TdRegressionType;\n polinomialOrder?: number;\n}\n\n@Component({\n selector: 'td-chart-series[td-regression]',\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush,\n inputs: [\n 'config',\n 'id',\n 'name',\n 'color',\n 'data',\n\n 'animation',\n 'animationThreshold',\n 'animationDuration',\n 'animationEasing',\n 'animationDelay',\n 'animationDurationUpdate',\n 'animationEasingUpdate',\n 'animationDelayUpdate',\n 'tooltip',\n ],\n providers: [\n {\n provide: TdSeriesDirective,\n useExisting: forwardRef(() => TdChartSeriesRegressionComponent),\n },\n ],\n})\nexport class TdChartSeriesRegressionComponent\n extends TdChartSeriesScatterComponent\n implements ITdRegressionSeries, OnChanges\n{\n @Input() declare data?: number[][];\n @Input() regressionType?: TdRegressionType;\n @Input() polinomialOrder?: number;\n\n constructor(_optionsService: TdChartOptionsService) {\n super(_optionsService);\n }\n\n override ngOnChanges(): void {\n this.render();\n }\n\n override getConfig(): any {\n return {\n regressionType: this.regressionType,\n polinomialOrder: this.polinomialOrder,\n coordinateSystem: this.coordinateSystem,\n xAxisIndex: this.xAxisIndex,\n yAxisIndex: this.yAxisIndex,\n polarIndex: this.polarIndex,\n geoIndex: this.geoIndex,\n calendarIndex: this.calendarIndex,\n hoverAnimation: this.hoverAnimation,\n legendHoverLink: this.legendHoverLink,\n symbol: this.symbol,\n symbolSize: this.symbolSize,\n symbolRotate: this.symbolRotate,\n symbolKeepAspect: this.symbolKeepAspect,\n symbolOffset: this.symbolOffset,\n large: this.large,\n largeThreshold: this.largeThreshold,\n cursor: this.cursor,\n label: this.label,\n itemStyle: this.itemStyle,\n emphasis: this.emphasis,\n progressive: this.progressive,\n progressiveThreshold: this.progressiveThreshold,\n dimensions: this.dimensions,\n encode: this.encode,\n seriesLayoutBy: this.seriesLayoutBy,\n datasetIndex: this.datasetIndex,\n markPoint: this.markPoint,\n markLine: this.markLine,\n markArea: this.markArea,\n zlevel: this.zlevel,\n z: this.z,\n silent: this.silent,\n };\n }\n\n private setOptions(): void {\n const config: any = assignDefined(\n this._state,\n {\n id: this.id,\n type: this.type,\n name: this.name,\n color: this.color,\n data: this.data,\n animation: this.animation,\n animationThreshold: this.animationThreshold,\n animationDuration: this.animationDuration,\n animationEasing: this.animationEasing,\n animationDelay: this.animationDelay,\n animationDurationUpdate: this.animationDurationUpdate,\n animationEasingUpdate: this.animationEasingUpdate,\n animationDelayUpdate: this.animationDelayUpdate,\n tooltip: this.tooltip,\n },\n this.getConfig(),\n this._options,\n this.config ? this.config : {}\n );\n this.optionsService.setArrayOption('scatter', config);\n }\n\n private render() {\n const output: any = this.data;\n const result = ecStat.regression(\n this.regressionType ?? 'linear',\n output,\n this.polinomialOrder ?? 2\n );\n let series = this.optionsService.getOption('series');\n\n if (series) {\n for (const item in series) {\n if (series[item].type === 'line') {\n delete series[item];\n }\n }\n } else {\n series = [];\n }\n\n series.push({\n type: 'line',\n data: result.points,\n tooltip: {},\n showSymbol: false,\n });\n\n this.optionsService.setOption('series', series);\n this.setOptions();\n }\n}\n","import { NgModule, Type } from '@angular/core';\nimport { TdChartSeriesRegressionComponent } from './regression.component';\n\nexport const REGRESSION_MODULE_COMPONENTS: Type<any>[] = [\n TdChartSeriesRegressionComponent,\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: [REGRESSION_MODULE_COMPONENTS],\n exports: [REGRESSION_MODULE_COMPONENTS],\n})\nexport class CovalentRegressionEchartsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;AA2DM,MAAO,gCACX,SAAQ,6BAA6B,CAAA;AAGpB,IAAA,IAAI;AACZ,IAAA,cAAc;AACd,IAAA,eAAe;AAExB,IAAA,WAAA,CAAY,eAAsC,EAAA;QAChD,KAAK,CAAC,eAAe,CAAC;;IAGf,WAAW,GAAA;QAClB,IAAI,CAAC,MAAM,EAAE;;IAGN,SAAS,GAAA;QAChB,OAAO;YACL,cAAc,EAAE,IAAI,CAAC,cAAc;YACnC,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;YACvC,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,aAAa,EAAE,IAAI,CAAC,aAAa;YACjC,cAAc,EAAE,IAAI,CAAC,cAAc;YACnC,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;YAC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