@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-graph", ""];
7
7
  class TdChartSeriesGraphComponent extends TdSeriesDirective {
8
8
  legendHoverLink;
9
9
  coordinateSystem;
@@ -101,151 +101,156 @@ class TdChartSeriesGraphComponent extends TdSeriesDirective {
101
101
  height: this.height,
102
102
  };
103
103
  }
104
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdChartSeriesGraphComponent, deps: [{ token: i1.TdChartOptionsService }], target: i0.ɵɵFactoryTarget.Component });
105
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.11", type: TdChartSeriesGraphComponent, selector: "td-chart-series[td-graph]", 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", coordinateSystem: "coordinateSystem", xAxisIndex: "xAxisIndex", yAxisIndex: "yAxisIndex", polarIndex: "polarIndex", calendarIndex: "calendarIndex", geoIndex: "geoIndex", hoverAnimation: "hoverAnimation", circular: "circular", force: "force", layout: "layout", nodeScaleRatio: "nodeScaleRatio", draggable: "draggable", symbol: "symbol", symbolSize: "symbolSize", symbolRotate: "symbolRotate", symbolKeepAspect: "symbolKeepAspect", symbolOffset: "symbolOffset", focusNodeAdjacency: "focusNodeAdjacency", edgeSymbol: "edgeSymbol", edgeSymbolSize: "edgeSymbolSize", cursor: "cursor", roam: "roam", initialTreeDepth: "initialTreeDepth", itemStyle: "itemStyle", lineStyle: "lineStyle", label: "label", edgeLabel: "edgeLabel", emphasis: "emphasis", categories: "categories", nodes: "nodes", links: "links", edges: "edges", markPoint: "markPoint", markLine: "markLine", markArea: "markArea", zlevel: "zlevel", z: "z", silent: "silent", left: "left", top: "top", right: "right", bottom: "bottom", width: "width", height: "height" }, providers: [
106
- {
107
- provide: TdSeriesDirective,
108
- useExisting: forwardRef(() => TdChartSeriesGraphComponent),
109
- },
110
- ], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
104
+ static ɵfac = function TdChartSeriesGraphComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TdChartSeriesGraphComponent)(i0.ɵɵdirectiveInject(i1.TdChartOptionsService)); };
105
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TdChartSeriesGraphComponent, selectors: [["td-chart-series", "td-graph", ""]], 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", coordinateSystem: "coordinateSystem", xAxisIndex: "xAxisIndex", yAxisIndex: "yAxisIndex", polarIndex: "polarIndex", calendarIndex: "calendarIndex", geoIndex: "geoIndex", hoverAnimation: "hoverAnimation", circular: "circular", force: "force", layout: "layout", nodeScaleRatio: "nodeScaleRatio", draggable: "draggable", symbol: "symbol", symbolSize: "symbolSize", symbolRotate: "symbolRotate", symbolKeepAspect: "symbolKeepAspect", symbolOffset: "symbolOffset", focusNodeAdjacency: "focusNodeAdjacency", edgeSymbol: "edgeSymbol", edgeSymbolSize: "edgeSymbolSize", cursor: "cursor", roam: "roam", initialTreeDepth: "initialTreeDepth", itemStyle: "itemStyle", lineStyle: "lineStyle", label: "label", edgeLabel: "edgeLabel", emphasis: "emphasis", categories: "categories", nodes: "nodes", links: "links", edges: "edges", markPoint: "markPoint", markLine: "markLine", markArea: "markArea", zlevel: "zlevel", z: "z", silent: "silent", left: "left", top: "top", right: "right", bottom: "bottom", width: "width", height: "height" }, features: [i0.ɵɵProvidersFeature([
106
+ {
107
+ provide: TdSeriesDirective,
108
+ useExisting: forwardRef(() => TdChartSeriesGraphComponent),
109
+ },
110
+ ]), i0.ɵɵInheritDefinitionFeature], attrs: _c0, decls: 0, vars: 0, template: function TdChartSeriesGraphComponent_Template(rf, ctx) { }, encapsulation: 2, changeDetection: 0 });
111
111
  }
112
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdChartSeriesGraphComponent, decorators: [{
113
- type: Component,
114
- args: [{
115
- selector: 'td-chart-series[td-graph]',
116
- template: '',
117
- changeDetection: ChangeDetectionStrategy.OnPush,
118
- inputs: [
119
- 'config',
120
- 'id',
121
- 'name',
122
- 'color',
123
- 'data',
124
- 'animation',
125
- 'animationThreshold',
126
- 'animationDuration',
127
- 'animationEasing',
128
- 'animationDelay',
129
- 'animationDurationUpdate',
130
- 'animationEasingUpdate',
131
- 'animationDelayUpdate',
132
- 'tooltip',
133
- ],
134
- providers: [
135
- {
136
- provide: TdSeriesDirective,
137
- useExisting: forwardRef(() => TdChartSeriesGraphComponent),
138
- },
139
- ],
140
- }]
141
- }], ctorParameters: () => [{ type: i1.TdChartOptionsService }], propDecorators: { legendHoverLink: [{
142
- type: Input
143
- }], coordinateSystem: [{
144
- type: Input
145
- }], xAxisIndex: [{
146
- type: Input
147
- }], yAxisIndex: [{
148
- type: Input
149
- }], polarIndex: [{
150
- type: Input
151
- }], calendarIndex: [{
152
- type: Input
153
- }], geoIndex: [{
154
- type: Input
155
- }], hoverAnimation: [{
156
- type: Input
157
- }], circular: [{
158
- type: Input
159
- }], force: [{
160
- type: Input
161
- }], layout: [{
162
- type: Input
163
- }], nodeScaleRatio: [{
164
- type: Input
165
- }], draggable: [{
166
- type: Input
167
- }], symbol: [{
168
- type: Input
169
- }], symbolSize: [{
170
- type: Input
171
- }], symbolRotate: [{
172
- type: Input
173
- }], symbolKeepAspect: [{
174
- type: Input
175
- }], symbolOffset: [{
176
- type: Input
177
- }], focusNodeAdjacency: [{
178
- type: Input
179
- }], edgeSymbol: [{
180
- type: Input
181
- }], edgeSymbolSize: [{
182
- type: Input
183
- }], cursor: [{
184
- type: Input
185
- }], roam: [{
186
- type: Input
187
- }], initialTreeDepth: [{
188
- type: Input
189
- }], itemStyle: [{
190
- type: Input
191
- }], lineStyle: [{
192
- type: Input
193
- }], label: [{
194
- type: Input
195
- }], edgeLabel: [{
196
- type: Input
197
- }], emphasis: [{
198
- type: Input
199
- }], categories: [{
200
- type: Input
201
- }], nodes: [{
202
- type: Input
203
- }], links: [{
204
- type: Input
205
- }], edges: [{
206
- type: Input
207
- }], markPoint: [{
208
- type: Input
209
- }], markLine: [{
210
- type: Input
211
- }], markArea: [{
212
- type: Input
213
- }], zlevel: [{
214
- type: Input
215
- }], z: [{
216
- type: Input
217
- }], silent: [{
218
- type: Input
219
- }], left: [{
220
- type: Input
221
- }], top: [{
222
- type: Input
223
- }], right: [{
224
- type: Input
225
- }], bottom: [{
226
- type: Input
227
- }], width: [{
228
- type: Input
229
- }], height: [{
230
- type: Input
231
- }] } });
112
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdChartSeriesGraphComponent, [{
113
+ type: Component,
114
+ args: [{
115
+ selector: 'td-chart-series[td-graph]',
116
+ template: '',
117
+ changeDetection: ChangeDetectionStrategy.OnPush,
118
+ inputs: [
119
+ 'config',
120
+ 'id',
121
+ 'name',
122
+ 'color',
123
+ 'data',
124
+ 'animation',
125
+ 'animationThreshold',
126
+ 'animationDuration',
127
+ 'animationEasing',
128
+ 'animationDelay',
129
+ 'animationDurationUpdate',
130
+ 'animationEasingUpdate',
131
+ 'animationDelayUpdate',
132
+ 'tooltip',
133
+ ],
134
+ providers: [
135
+ {
136
+ provide: TdSeriesDirective,
137
+ useExisting: forwardRef(() => TdChartSeriesGraphComponent),
138
+ },
139
+ ],
140
+ }]
141
+ }], () => [{ type: i1.TdChartOptionsService }], { legendHoverLink: [{
142
+ type: Input
143
+ }], coordinateSystem: [{
144
+ type: Input
145
+ }], xAxisIndex: [{
146
+ type: Input
147
+ }], yAxisIndex: [{
148
+ type: Input
149
+ }], polarIndex: [{
150
+ type: Input
151
+ }], calendarIndex: [{
152
+ type: Input
153
+ }], geoIndex: [{
154
+ type: Input
155
+ }], hoverAnimation: [{
156
+ type: Input
157
+ }], circular: [{
158
+ type: Input
159
+ }], force: [{
160
+ type: Input
161
+ }], layout: [{
162
+ type: Input
163
+ }], nodeScaleRatio: [{
164
+ type: Input
165
+ }], draggable: [{
166
+ type: Input
167
+ }], symbol: [{
168
+ type: Input
169
+ }], symbolSize: [{
170
+ type: Input
171
+ }], symbolRotate: [{
172
+ type: Input
173
+ }], symbolKeepAspect: [{
174
+ type: Input
175
+ }], symbolOffset: [{
176
+ type: Input
177
+ }], focusNodeAdjacency: [{
178
+ type: Input
179
+ }], edgeSymbol: [{
180
+ type: Input
181
+ }], edgeSymbolSize: [{
182
+ type: Input
183
+ }], cursor: [{
184
+ type: Input
185
+ }], roam: [{
186
+ type: Input
187
+ }], initialTreeDepth: [{
188
+ type: Input
189
+ }], itemStyle: [{
190
+ type: Input
191
+ }], lineStyle: [{
192
+ type: Input
193
+ }], label: [{
194
+ type: Input
195
+ }], edgeLabel: [{
196
+ type: Input
197
+ }], emphasis: [{
198
+ type: Input
199
+ }], categories: [{
200
+ type: Input
201
+ }], nodes: [{
202
+ type: Input
203
+ }], links: [{
204
+ type: Input
205
+ }], edges: [{
206
+ type: Input
207
+ }], markPoint: [{
208
+ type: Input
209
+ }], markLine: [{
210
+ type: Input
211
+ }], markArea: [{
212
+ type: Input
213
+ }], zlevel: [{
214
+ type: Input
215
+ }], z: [{
216
+ type: Input
217
+ }], silent: [{
218
+ type: Input
219
+ }], left: [{
220
+ type: Input
221
+ }], top: [{
222
+ type: Input
223
+ }], right: [{
224
+ type: Input
225
+ }], bottom: [{
226
+ type: Input
227
+ }], width: [{
228
+ type: Input
229
+ }], height: [{
230
+ type: Input
231
+ }] }); })();
232
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TdChartSeriesGraphComponent, { className: "TdChartSeriesGraphComponent", filePath: "graph.component.ts", lineNumber: 133 }); })();
232
233
 
233
234
  const GRAPH_MODULE_COMPONENTS = [
234
235
  TdChartSeriesGraphComponent,
235
236
  ];
237
+ /**
238
+ * @deprecated This module is deprecated and will be removed in future versions.
239
+ * Please migrate to using standalone components as soon as possible.
240
+ */
236
241
  class CovalentGraphEchartsModule {
237
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CovalentGraphEchartsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
238
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.11", ngImport: i0, type: CovalentGraphEchartsModule, declarations: [TdChartSeriesGraphComponent], imports: [CommonModule], exports: [TdChartSeriesGraphComponent] });
239
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CovalentGraphEchartsModule, imports: [CommonModule] });
242
+ static ɵfac = function CovalentGraphEchartsModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CovalentGraphEchartsModule)(); };
243
+ static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: CovalentGraphEchartsModule });
244
+ static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({});
240
245
  }
241
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CovalentGraphEchartsModule, decorators: [{
242
- type: NgModule,
243
- args: [{
244
- imports: [CommonModule],
245
- declarations: [GRAPH_MODULE_COMPONENTS],
246
- exports: [GRAPH_MODULE_COMPONENTS],
247
- }]
248
- }] });
246
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CovalentGraphEchartsModule, [{
247
+ type: NgModule,
248
+ args: [{
249
+ imports: [GRAPH_MODULE_COMPONENTS],
250
+ exports: [GRAPH_MODULE_COMPONENTS],
251
+ }]
252
+ }], null, null); })();
253
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CovalentGraphEchartsModule, { imports: [TdChartSeriesGraphComponent], exports: [TdChartSeriesGraphComponent] }); })();
249
254
 
250
255
  /**
251
256
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"covalent-echarts-graph.mjs","sources":["../../../../libs/angular-echarts/graph/src/graph.component.ts","../../../../libs/angular-echarts/graph/src/graph.module.ts","../../../../libs/angular-echarts/graph/src/covalent-echarts-graph.ts"],"sourcesContent":["import {\n Component,\n Input,\n ChangeDetectionStrategy,\n forwardRef,\n} from '@angular/core';\n\nimport {\n TdChartOptionsService,\n TdCoordinateSystem,\n ITdItemStyle,\n ITdEmphasis,\n TdSeriesLayoutBy,\n ITdMarkPoint,\n ITdMarkLine,\n ITdMarkArea,\n ITdSeries,\n ITdLabel,\n TdSeriesDirective,\n TdMarkPointSymbol,\n ITdLineStyle,\n ITdEdgeLabel,\n} from '@covalent/echarts/base';\n\nexport interface ITdCategories {\n name?: string;\n symbol?: TdMarkPointSymbol | string;\n symbolSize?: number | any[];\n symbolRotate?: number;\n symbolKeepAspect?: boolean;\n symbolOffset: any[];\n itemStyle: ITdItemStyle;\n label: ITdLabel;\n emphasis: ITdEmphasis;\n}\n\nexport interface ITdGraphForce {\n initLayout?: string;\n repulsion?: any | number;\n gravity?: number;\n edgeLength?: any | number;\n layoutAnimation?: boolean;\n}\n\nexport type TdGraphLayout = 'none' | 'circular' | 'force';\n\nexport interface ITdGraphSeries extends ITdSeries {\n legendHoverLink?: boolean;\n coordinateSystem?: TdCoordinateSystem;\n xAxisIndex?: number;\n yAxisIndex?: number;\n polarIndex?: number;\n calendarIndex?: number;\n geoIndex?: number;\n hoverAnimation?: boolean;\n circular?: object;\n force?: ITdGraphForce;\n layout?: TdGraphLayout;\n nodeScaleRatio?: boolean;\n draggable?: boolean;\n symbol?: TdMarkPointSymbol | string;\n symbolSize?: number | any[] | Function;\n symbolRotate?: number;\n symbolKeepAspect?: boolean;\n symbolOffset?: any[];\n focusNodeAdjacency?: boolean;\n edgeSymbol?: any[] | string;\n edgeSymbolSize?: number;\n cursor?: string;\n roam?: boolean;\n expandAndCollapse?: boolean;\n initialTreeDepth?: number;\n itemStyle?: ITdItemStyle;\n lineStyle?: ITdLineStyle;\n label?: ITdLabel;\n edgeLabel?: ITdEdgeLabel;\n emphasis?: ITdEmphasis;\n categories?: ITdCategories;\n data?: any[];\n nodes?: any[];\n links?: any[];\n edges?: any[];\n markPoint?: ITdMarkPoint;\n markLine?: ITdMarkLine;\n markArea?: ITdMarkArea;\n zlevel?: number;\n z?: number;\n silent?: boolean;\n left?: string | number;\n top?: string | number;\n right?: string | number;\n bottom?: string | number;\n width?: string | number;\n height?: string | number;\n animation?: boolean;\n animationThreshold?: number;\n animationDuration?: number | Function;\n animationEasing?: string;\n animationDelay?: number | Function;\n animationDurationUpdate?: number | Function;\n animationEasingUpdate?: string;\n animationDelayUpdate?: number | Function;\n}\n\n@Component({\n selector: 'td-chart-series[td-graph]',\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(() => TdChartSeriesGraphComponent),\n },\n ],\n})\nexport class TdChartSeriesGraphComponent\n extends TdSeriesDirective\n implements ITdGraphSeries\n{\n @Input() legendHoverLink?: boolean;\n @Input() coordinateSystem?: TdCoordinateSystem;\n @Input() xAxisIndex?: number;\n @Input() yAxisIndex?: number;\n @Input() polarIndex?: number;\n @Input() calendarIndex?: number;\n @Input() geoIndex?: number;\n @Input() hoverAnimation?: boolean;\n @Input() circular?: object;\n @Input() force?: ITdGraphForce;\n @Input() layout?: TdGraphLayout;\n @Input() nodeScaleRatio?: boolean;\n @Input() draggable?: boolean;\n @Input() symbol?: TdMarkPointSymbol | string;\n @Input() symbolSize?: number | any[] | Function;\n @Input() symbolRotate?: number;\n @Input() symbolKeepAspect?: boolean;\n @Input() symbolOffset?: any[];\n @Input() focusNodeAdjacency?: boolean;\n @Input() edgeSymbol?: any[] | string;\n @Input() edgeSymbolSize?: number;\n @Input() cursor?: string;\n @Input() roam?: boolean;\n @Input() initialTreeDepth?: number;\n @Input() itemStyle?: ITdItemStyle;\n @Input() lineStyle?: ITdLineStyle;\n @Input() label?: ITdLabel;\n @Input() edgeLabel?: ITdEdgeLabel;\n @Input() emphasis?: ITdEmphasis;\n @Input() categories?: ITdCategories;\n @Input() nodes?: any[];\n @Input() links?: any[];\n @Input() edges?: any[];\n @Input() markPoint?: ITdMarkPoint;\n @Input() markLine?: ITdMarkLine;\n @Input() markArea?: ITdMarkArea;\n @Input() zlevel?: number;\n @Input() z?: number;\n @Input() silent?: boolean;\n @Input() left?: string | number;\n @Input() top?: string | number;\n @Input() right?: string | number;\n @Input() bottom?: string | number;\n @Input() width?: string | number;\n @Input() height?: string | number;\n\n constructor(_optionsService: TdChartOptionsService) {\n super('graph', _optionsService);\n }\n\n getConfig(): any {\n return {\n legendHoverLink: this.legendHoverLink,\n coordinateSystem: this.coordinateSystem,\n xAxisIndex: this.xAxisIndex,\n yAxisIndex: this.yAxisIndex,\n polarIndex: this.polarIndex,\n calendarIndex: this.calendarIndex,\n geoIndex: this.geoIndex,\n hoverAnimation: this.hoverAnimation,\n circular: this.circular,\n force: this.force,\n layout: this.layout,\n nodeScaleRatio: this.nodeScaleRatio,\n draggable: this.draggable,\n symbol: this.symbol,\n symbolSize: this.symbolSize,\n symbolRotate: this.symbolRotate,\n symbolKeepAspect: this.symbolKeepAspect,\n symbolOffset: this.symbolOffset,\n focusNodeAdjacency: this.focusNodeAdjacency,\n edgeSymbol: this.edgeSymbol,\n edgeSymbolSize: this.edgeSymbolSize,\n cursor: this.cursor,\n roam: this.roam,\n itemStyle: this.itemStyle,\n lineStyle: this.lineStyle,\n label: this.label,\n edgeLabel: this.edgeLabel,\n emphasis: this.emphasis,\n categories: this.categories,\n nodes: this.nodes,\n links: this.links,\n edges: this.edges,\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 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 }\n}\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { TdChartSeriesGraphComponent } from './graph.component';\n\nexport const GRAPH_MODULE_COMPONENTS: Type<any>[] = [\n TdChartSeriesGraphComponent,\n];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [GRAPH_MODULE_COMPONENTS],\n exports: [GRAPH_MODULE_COMPONENTS],\n})\nexport class CovalentGraphEchartsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;AAoIM,MAAO,2BACX,SAAQ,iBAAiB,CAAA;AAGhB,IAAA,eAAe;AACf,IAAA,gBAAgB;AAChB,IAAA,UAAU;AACV,IAAA,UAAU;AACV,IAAA,UAAU;AACV,IAAA,aAAa;AACb,IAAA,QAAQ;AACR,IAAA,cAAc;AACd,IAAA,QAAQ;AACR,IAAA,KAAK;AACL,IAAA,MAAM;AACN,IAAA,cAAc;AACd,IAAA,SAAS;AACT,IAAA,MAAM;AACN,IAAA,UAAU;AACV,IAAA,YAAY;AACZ,IAAA,gBAAgB;AAChB,IAAA,YAAY;AACZ,IAAA,kBAAkB;AAClB,IAAA,UAAU;AACV,IAAA,cAAc;AACd,IAAA,MAAM;AACN,IAAA,IAAI;AACJ,IAAA,gBAAgB;AAChB,IAAA,SAAS;AACT,IAAA,SAAS;AACT,IAAA,KAAK;AACL,IAAA,SAAS;AACT,IAAA,QAAQ;AACR,IAAA,UAAU;AACV,IAAA,KAAK;AACL,IAAA,KAAK;AACL,IAAA,KAAK;AACL,IAAA,SAAS;AACT,IAAA,QAAQ;AACR,IAAA,QAAQ;AACR,IAAA,MAAM;AACN,IAAA,CAAC;AACD,IAAA,MAAM;AACN,IAAA,IAAI;AACJ,IAAA,GAAG;AACH,IAAA,KAAK;AACL,IAAA,MAAM;AACN,IAAA,KAAK;AACL,IAAA,MAAM;AAEf,IAAA,WAAA,CAAY,eAAsC,EAAA;AAChD,Q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QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,0BAA0B,EARrC,YAAA,EAAA,CAAA,2BAA2B,CAIjB,EAAA,OAAA,EAAA,CAAA,YAAY,aAJtB,2BAA2B,CAAA,EAAA,CAAA;AAQhB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,0BAA0B,YAJ3B,YAAY,CAAA,EAAA,CAAA;;4FAIX,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBALtC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,YAAY,EAAE,CAAC,uBAAuB,CAAC;oBACvC,OAAO,EAAE,CAAC,uBAAuB,CAAC;AACnC,iBAAA;;;ACZD;;AAEG;;;;"}
1
+ {"version":3,"file":"covalent-echarts-graph.mjs","sources":["../../../../libs/angular-echarts/graph/src/graph.component.ts","../../../../libs/angular-echarts/graph/src/graph.module.ts","../../../../libs/angular-echarts/graph/src/covalent-echarts-graph.ts"],"sourcesContent":["import {\n Component,\n Input,\n ChangeDetectionStrategy,\n forwardRef,\n} from '@angular/core';\n\nimport {\n TdChartOptionsService,\n TdCoordinateSystem,\n ITdItemStyle,\n ITdEmphasis,\n TdSeriesLayoutBy,\n ITdMarkPoint,\n ITdMarkLine,\n ITdMarkArea,\n ITdSeries,\n ITdLabel,\n TdSeriesDirective,\n TdMarkPointSymbol,\n ITdLineStyle,\n ITdEdgeLabel,\n} from '@covalent/echarts/base';\n\nexport interface ITdCategories {\n name?: string;\n symbol?: TdMarkPointSymbol | string;\n symbolSize?: number | any[];\n symbolRotate?: number;\n symbolKeepAspect?: boolean;\n symbolOffset: any[];\n itemStyle: ITdItemStyle;\n label: ITdLabel;\n emphasis: ITdEmphasis;\n}\n\nexport interface ITdGraphForce {\n initLayout?: string;\n repulsion?: any | number;\n gravity?: number;\n edgeLength?: any | number;\n layoutAnimation?: boolean;\n}\n\nexport type TdGraphLayout = 'none' | 'circular' | 'force';\n\nexport interface ITdGraphSeries extends ITdSeries {\n legendHoverLink?: boolean;\n coordinateSystem?: TdCoordinateSystem;\n xAxisIndex?: number;\n yAxisIndex?: number;\n polarIndex?: number;\n calendarIndex?: number;\n geoIndex?: number;\n hoverAnimation?: boolean;\n circular?: object;\n force?: ITdGraphForce;\n layout?: TdGraphLayout;\n nodeScaleRatio?: boolean;\n draggable?: boolean;\n symbol?: TdMarkPointSymbol | string;\n symbolSize?: number | any[] | Function;\n symbolRotate?: number;\n symbolKeepAspect?: boolean;\n symbolOffset?: any[];\n focusNodeAdjacency?: boolean;\n edgeSymbol?: any[] | string;\n edgeSymbolSize?: number;\n cursor?: string;\n roam?: boolean;\n expandAndCollapse?: boolean;\n initialTreeDepth?: number;\n itemStyle?: ITdItemStyle;\n lineStyle?: ITdLineStyle;\n label?: ITdLabel;\n edgeLabel?: ITdEdgeLabel;\n emphasis?: ITdEmphasis;\n categories?: ITdCategories;\n data?: any[];\n nodes?: any[];\n links?: any[];\n edges?: any[];\n markPoint?: ITdMarkPoint;\n markLine?: ITdMarkLine;\n markArea?: ITdMarkArea;\n zlevel?: number;\n z?: number;\n silent?: boolean;\n left?: string | number;\n top?: string | number;\n right?: string | number;\n bottom?: string | number;\n width?: string | number;\n height?: string | number;\n animation?: boolean;\n animationThreshold?: number;\n animationDuration?: number | Function;\n animationEasing?: string;\n animationDelay?: number | Function;\n animationDurationUpdate?: number | Function;\n animationEasingUpdate?: string;\n animationDelayUpdate?: number | Function;\n}\n\n@Component({\n selector: 'td-chart-series[td-graph]',\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(() => TdChartSeriesGraphComponent),\n },\n ],\n})\nexport class TdChartSeriesGraphComponent\n extends TdSeriesDirective\n implements ITdGraphSeries\n{\n @Input() legendHoverLink?: boolean;\n @Input() coordinateSystem?: TdCoordinateSystem;\n @Input() xAxisIndex?: number;\n @Input() yAxisIndex?: number;\n @Input() polarIndex?: number;\n @Input() calendarIndex?: number;\n @Input() geoIndex?: number;\n @Input() hoverAnimation?: boolean;\n @Input() circular?: object;\n @Input() force?: ITdGraphForce;\n @Input() layout?: TdGraphLayout;\n @Input() nodeScaleRatio?: boolean;\n @Input() draggable?: boolean;\n @Input() symbol?: TdMarkPointSymbol | string;\n @Input() symbolSize?: number | any[] | Function;\n @Input() symbolRotate?: number;\n @Input() symbolKeepAspect?: boolean;\n @Input() symbolOffset?: any[];\n @Input() focusNodeAdjacency?: boolean;\n @Input() edgeSymbol?: any[] | string;\n @Input() edgeSymbolSize?: number;\n @Input() cursor?: string;\n @Input() roam?: boolean;\n @Input() initialTreeDepth?: number;\n @Input() itemStyle?: ITdItemStyle;\n @Input() lineStyle?: ITdLineStyle;\n @Input() label?: ITdLabel;\n @Input() edgeLabel?: ITdEdgeLabel;\n @Input() emphasis?: ITdEmphasis;\n @Input() categories?: ITdCategories;\n @Input() nodes?: any[];\n @Input() links?: any[];\n @Input() edges?: any[];\n @Input() markPoint?: ITdMarkPoint;\n @Input() markLine?: ITdMarkLine;\n @Input() markArea?: ITdMarkArea;\n @Input() zlevel?: number;\n @Input() z?: number;\n @Input() silent?: boolean;\n @Input() left?: string | number;\n @Input() top?: string | number;\n @Input() right?: string | number;\n @Input() bottom?: string | number;\n @Input() width?: string | number;\n @Input() height?: string | number;\n\n constructor(_optionsService: TdChartOptionsService) {\n super('graph', _optionsService);\n }\n\n getConfig(): any {\n return {\n legendHoverLink: this.legendHoverLink,\n coordinateSystem: this.coordinateSystem,\n xAxisIndex: this.xAxisIndex,\n yAxisIndex: this.yAxisIndex,\n polarIndex: this.polarIndex,\n calendarIndex: this.calendarIndex,\n geoIndex: this.geoIndex,\n hoverAnimation: this.hoverAnimation,\n circular: this.circular,\n force: this.force,\n layout: this.layout,\n nodeScaleRatio: this.nodeScaleRatio,\n draggable: this.draggable,\n symbol: this.symbol,\n symbolSize: this.symbolSize,\n symbolRotate: this.symbolRotate,\n symbolKeepAspect: this.symbolKeepAspect,\n symbolOffset: this.symbolOffset,\n focusNodeAdjacency: this.focusNodeAdjacency,\n edgeSymbol: this.edgeSymbol,\n edgeSymbolSize: this.edgeSymbolSize,\n cursor: this.cursor,\n roam: this.roam,\n itemStyle: this.itemStyle,\n lineStyle: this.lineStyle,\n label: this.label,\n edgeLabel: this.edgeLabel,\n emphasis: this.emphasis,\n categories: this.categories,\n nodes: this.nodes,\n links: this.links,\n edges: this.edges,\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 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 }\n}\n","import { NgModule, Type } from '@angular/core';\nimport { TdChartSeriesGraphComponent } from './graph.component';\n\nexport const GRAPH_MODULE_COMPONENTS: Type<any>[] = [\n TdChartSeriesGraphComponent,\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: [GRAPH_MODULE_COMPONENTS],\n exports: [GRAPH_MODULE_COMPONENTS],\n})\nexport class CovalentGraphEchartsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;AAoIM,MAAO,2BACX,SAAQ,iBAAiB,CAAA;AAGhB,IAAA,eAAe;AACf,IAAA,gBAAgB;AAChB,IAAA,UAAU;AACV,IAAA,UAAU;AACV,IAAA,UAAU;AACV,IAAA,aAAa;AACb,IAAA,QAAQ;AACR,IAAA,cAAc;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AAA;kBAAb;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,IAAI,EAAA,CAAA;kBAAZ;YACQ,GAAG,EAAA,CAAA;kBAAX;YACQ,KAAK,EAAA,CAAA;kBAAb;YACQ,MAAM,EAAA,CAAA;kBAAd;YACQ,KAAK,EAAA,CAAA;kBAAb;YACQ,MAAM,EAAA,CAAA;kBAAd;;kFAhDU,2BAA2B,EAAA,EAAA,SAAA,EAAA,6BAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,UAAA,EAAA,GAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;ACjI3B,MAAA,uBAAuB,GAAgB;IAClD,2BAA2B;;AAG7B;;;AAGG;MAKU,0BAA0B,CAAA;oHAA1B,0BAA0B,GAAA,CAAA,EAAA;4DAA1B,0BAA0B,EAAA,CAAA;;;iFAA1B,0BAA0B,EAAA,CAAA;cAJtC,QAAQ;AAAC,QAAA,IAAA,EAAA,CAAA;gBACR,OAAO,EAAE,CAAC,uBAAuB,CAAC;gBAClC,OAAO,EAAE,CAAC,uBAAuB,CAAC;AACnC,aAAA;;wFACY,0BAA0B,EAAA,EAAA,OAAA,EAAA,CAXrC,2BAA2B,CAAA,EAAA,OAAA,EAAA,CAA3B,2BAA2B,CAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;ACJ7B;;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 { TdChartSeriesBarComponent } from '@covalent/echarts/bar';
7
6
  import * as ecStat from 'echarts-stat';
8
7
 
8
+ const _c0 = ["td-histogram", ""];
9
9
  class TdChartSeriesHistogramComponent extends TdChartSeriesBarComponent {
10
10
  source;
11
11
  method;
@@ -84,65 +84,70 @@ class TdChartSeriesHistogramComponent extends TdChartSeriesBarComponent {
84
84
  }, this.getConfig(), this._options, this.config ? this.config : {});
85
85
  this.optionsService.setArrayOption('series', config);
86
86
  }
87
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdChartSeriesHistogramComponent, deps: [{ token: i1.TdChartOptionsService }], target: i0.ɵɵFactoryTarget.Component });
88
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.11", type: TdChartSeriesHistogramComponent, selector: "td-chart-series[td-histogram]", 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", source: "source", method: "method" }, providers: [
89
- {
90
- provide: TdSeriesDirective,
91
- useExisting: forwardRef(() => TdChartSeriesHistogramComponent),
92
- },
93
- ], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
87
+ static ɵfac = function TdChartSeriesHistogramComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TdChartSeriesHistogramComponent)(i0.ɵɵdirectiveInject(i1.TdChartOptionsService)); };
88
+ static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TdChartSeriesHistogramComponent, selectors: [["td-chart-series", "td-histogram", ""]], 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", source: "source", method: "method" }, features: [i0.ɵɵProvidersFeature([
89
+ {
90
+ provide: TdSeriesDirective,
91
+ useExisting: forwardRef(() => TdChartSeriesHistogramComponent),
92
+ },
93
+ ]), i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], attrs: _c0, decls: 0, vars: 0, template: function TdChartSeriesHistogramComponent_Template(rf, ctx) { }, encapsulation: 2, changeDetection: 0 });
94
94
  }
95
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdChartSeriesHistogramComponent, decorators: [{
96
- type: Component,
97
- args: [{
98
- selector: 'td-chart-series[td-histogram]',
99
- template: '',
100
- changeDetection: ChangeDetectionStrategy.OnPush,
101
- inputs: [
102
- 'config',
103
- 'id',
104
- 'name',
105
- 'color',
106
- 'data',
107
- 'animation',
108
- 'animationThreshold',
109
- 'animationDuration',
110
- 'animationEasing',
111
- 'animationDelay',
112
- 'animationDurationUpdate',
113
- 'animationEasingUpdate',
114
- 'animationDelayUpdate',
115
- 'tooltip',
116
- ],
117
- providers: [
118
- {
119
- provide: TdSeriesDirective,
120
- useExisting: forwardRef(() => TdChartSeriesHistogramComponent),
121
- },
122
- ],
123
- }]
124
- }], ctorParameters: () => [{ type: i1.TdChartOptionsService }], propDecorators: { source: [{
125
- type: Input
126
- }], method: [{
127
- type: Input
128
- }] } });
95
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TdChartSeriesHistogramComponent, [{
96
+ type: Component,
97
+ args: [{
98
+ selector: 'td-chart-series[td-histogram]',
99
+ template: '',
100
+ changeDetection: ChangeDetectionStrategy.OnPush,
101
+ inputs: [
102
+ 'config',
103
+ 'id',
104
+ 'name',
105
+ 'color',
106
+ 'data',
107
+ 'animation',
108
+ 'animationThreshold',
109
+ 'animationDuration',
110
+ 'animationEasing',
111
+ 'animationDelay',
112
+ 'animationDurationUpdate',
113
+ 'animationEasingUpdate',
114
+ 'animationDelayUpdate',
115
+ 'tooltip',
116
+ ],
117
+ providers: [
118
+ {
119
+ provide: TdSeriesDirective,
120
+ useExisting: forwardRef(() => TdChartSeriesHistogramComponent),
121
+ },
122
+ ],
123
+ }]
124
+ }], () => [{ type: i1.TdChartOptionsService }], { source: [{
125
+ type: Input
126
+ }], method: [{
127
+ type: Input
128
+ }] }); })();
129
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TdChartSeriesHistogramComponent, { className: "TdChartSeriesHistogramComponent", filePath: "histogram.component.ts", lineNumber: 56 }); })();
129
130
 
130
131
  const HISTOGRAM_MODULE_COMPONENTS = [
131
132
  TdChartSeriesHistogramComponent,
132
133
  ];
134
+ /**
135
+ * @deprecated This module is deprecated and will be removed in future versions.
136
+ * Please migrate to using standalone components as soon as possible.
137
+ */
133
138
  class CovalentHistogramEchartsModule {
134
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CovalentHistogramEchartsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
135
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.11", ngImport: i0, type: CovalentHistogramEchartsModule, declarations: [TdChartSeriesHistogramComponent], imports: [CommonModule], exports: [TdChartSeriesHistogramComponent] });
136
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CovalentHistogramEchartsModule, imports: [CommonModule] });
139
+ static ɵfac = function CovalentHistogramEchartsModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CovalentHistogramEchartsModule)(); };
140
+ static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: CovalentHistogramEchartsModule });
141
+ static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({});
137
142
  }
138
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CovalentHistogramEchartsModule, decorators: [{
139
- type: NgModule,
140
- args: [{
141
- imports: [CommonModule],
142
- declarations: [HISTOGRAM_MODULE_COMPONENTS],
143
- exports: [HISTOGRAM_MODULE_COMPONENTS],
144
- }]
145
- }] });
143
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CovalentHistogramEchartsModule, [{
144
+ type: NgModule,
145
+ args: [{
146
+ imports: [HISTOGRAM_MODULE_COMPONENTS],
147
+ exports: [HISTOGRAM_MODULE_COMPONENTS],
148
+ }]
149
+ }], null, null); })();
150
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CovalentHistogramEchartsModule, { imports: [TdChartSeriesHistogramComponent], exports: [TdChartSeriesHistogramComponent] }); })();
146
151
 
147
152
  /**
148
153
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"covalent-echarts-histogram.mjs","sources":["../../../../libs/angular-echarts/histogram/src/histogram.component.ts","../../../../libs/angular-echarts/histogram/src/histogram.module.ts","../../../../libs/angular-echarts/histogram/src/covalent-echarts-histogram.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 { ITdBarSeries, TdChartSeriesBarComponent } from '@covalent/echarts/bar';\nimport * as ecStat from 'echarts-stat';\n\nexport type TdHistogramBinningMethod =\n | 'squareRoot'\n | 'scott'\n | 'freedmanDiaconis'\n | 'sturges';\n\nexport interface ITdHistogramSeries extends ITdBarSeries {\n data?: number[] | number[][];\n method?: TdHistogramBinningMethod;\n}\n\n@Component({\n selector: 'td-chart-series[td-histogram]',\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(() => TdChartSeriesHistogramComponent),\n },\n ],\n})\nexport class TdChartSeriesHistogramComponent\n extends TdChartSeriesBarComponent\n implements ITdHistogramSeries, OnChanges\n{\n @Input() source?: number[] | number[][];\n @Input() method?: TdHistogramBinningMethod;\n\n constructor(_optionsService: TdChartOptionsService) {\n super(_optionsService);\n }\n\n override ngOnChanges(): void {\n let output: any = [];\n if (!this.source) {\n const dataset: any = this.optionsService.getOption('dataset');\n this.source = dataset?.source ?? [];\n }\n\n if (this.source?.some((item) => Array.isArray(item))) {\n const config = this.getConfig();\n const index = config.datasetIndex ?? 1;\n const source: any[] = this.source;\n const indexedOutput = source[0].map((_: any, colIndex: string | number) =>\n source.map((row) => row[colIndex])\n );\n output = indexedOutput[index - 1] ?? [];\n } else {\n output = this.source;\n }\n\n const bins = ecStat.histogram(output, this.method ?? 'squareRoot');\n this.data = bins.data;\n this.setOptions();\n }\n\n override getConfig(): any {\n return {\n method: this.method,\n coordinateSystem: this.coordinateSystem,\n xAxisIndex: this.xAxisIndex,\n yAxisIndex: this.yAxisIndex,\n legendHoverLink: this.legendHoverLink,\n stack: this.stack,\n cursor: this.cursor,\n label: this.label,\n itemStyle: this.itemStyle,\n emphasis: this.emphasis,\n barWidth: this.barWidth,\n barMaxWidth: this.barMaxWidth,\n barMinHeight: this.barMinHeight,\n barGap: this.barGap,\n barCategoryGap: this.barCategoryGap,\n large: this.large,\n largeThreshold: this.largeThreshold,\n progressive: this.progressive,\n progressiveThreshold: this.progressiveThreshold,\n progressiveChunkMode: this.progressiveChunkMode,\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 };\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('series', config);\n }\n}\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { TdChartSeriesHistogramComponent } from './histogram.component';\n\nexport const HISTOGRAM_MODULE_COMPONENTS: Type<any>[] = [\n TdChartSeriesHistogramComponent,\n];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [HISTOGRAM_MODULE_COMPONENTS],\n exports: [HISTOGRAM_MODULE_COMPONENTS],\n})\nexport class CovalentHistogramEchartsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;AAuDM,MAAO,+BACX,SAAQ,yBAAyB,CAAA;AAGxB,IAAA,MAAM;AACN,IAAA,MAAM;AAEf,IAAA,WAAA,CAAY,eAAsC,EAAA;QAChD,KAAK,CAAC,eAAe,CAAC;;IAGf,WAAW,GAAA;QAClB,IAAI,MAAM,GAAQ,EAAE;AACpB,QAAA,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;YAChB,MAAM,OAAO,GAAQ,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,SAAS,CAAC;YAC7D,IAAI,CAAC,MAAM,GAAG,OAAO,EAAE,MAAM,IAAI,EAAE;;AAGrC,QAAA,IAAI,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,IAAI,KAAK,KAAK,CAAC,OAAO,CAAC,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FAIX,8BAA8B,EAAA,UAAA,EAAA,CAAA;kBAL1C,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,YAAY,EAAE,CAAC,2BAA2B,CAAC;oBAC3C,OAAO,EAAE,CAAC,2BAA2B,CAAC;AACvC,iBAAA;;;ACbD;;AAEG;;;;"}
1
+ {"version":3,"file":"covalent-echarts-histogram.mjs","sources":["../../../../libs/angular-echarts/histogram/src/histogram.component.ts","../../../../libs/angular-echarts/histogram/src/histogram.module.ts","../../../../libs/angular-echarts/histogram/src/covalent-echarts-histogram.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 { ITdBarSeries, TdChartSeriesBarComponent } from '@covalent/echarts/bar';\nimport * as ecStat from 'echarts-stat';\n\nexport type TdHistogramBinningMethod =\n | 'squareRoot'\n | 'scott'\n | 'freedmanDiaconis'\n | 'sturges';\n\nexport interface ITdHistogramSeries extends ITdBarSeries {\n data?: number[] | number[][];\n method?: TdHistogramBinningMethod;\n}\n\n@Component({\n selector: 'td-chart-series[td-histogram]',\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(() => TdChartSeriesHistogramComponent),\n },\n ],\n})\nexport class TdChartSeriesHistogramComponent\n extends TdChartSeriesBarComponent\n implements ITdHistogramSeries, OnChanges\n{\n @Input() source?: number[] | number[][];\n @Input() method?: TdHistogramBinningMethod;\n\n constructor(_optionsService: TdChartOptionsService) {\n super(_optionsService);\n }\n\n override ngOnChanges(): void {\n let output: any = [];\n if (!this.source) {\n const dataset: any = this.optionsService.getOption('dataset');\n this.source = dataset?.source ?? [];\n }\n\n if (this.source?.some((item) => Array.isArray(item))) {\n const config = this.getConfig();\n const index = config.datasetIndex ?? 1;\n const source: any[] = this.source;\n const indexedOutput = source[0].map((_: any, colIndex: string | number) =>\n source.map((row) => row[colIndex])\n );\n output = indexedOutput[index - 1] ?? [];\n } else {\n output = this.source;\n }\n\n const bins = ecStat.histogram(output, this.method ?? 'squareRoot');\n this.data = bins.data;\n this.setOptions();\n }\n\n override getConfig(): any {\n return {\n method: this.method,\n coordinateSystem: this.coordinateSystem,\n xAxisIndex: this.xAxisIndex,\n yAxisIndex: this.yAxisIndex,\n legendHoverLink: this.legendHoverLink,\n stack: this.stack,\n cursor: this.cursor,\n label: this.label,\n itemStyle: this.itemStyle,\n emphasis: this.emphasis,\n barWidth: this.barWidth,\n barMaxWidth: this.barMaxWidth,\n barMinHeight: this.barMinHeight,\n barGap: this.barGap,\n barCategoryGap: this.barCategoryGap,\n large: this.large,\n largeThreshold: this.largeThreshold,\n progressive: this.progressive,\n progressiveThreshold: this.progressiveThreshold,\n progressiveChunkMode: this.progressiveChunkMode,\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 };\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('series', config);\n }\n}\n","import { NgModule, Type } from '@angular/core';\nimport { TdChartSeriesHistogramComponent } from './histogram.component';\n\nexport const HISTOGRAM_MODULE_COMPONENTS: Type<any>[] = [\n TdChartSeriesHistogramComponent,\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: [HISTOGRAM_MODULE_COMPONENTS],\n exports: [HISTOGRAM_MODULE_COMPONENTS],\n})\nexport class CovalentHistogramEchartsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;AAuDM,MAAO,+BACX,SAAQ,yBAAyB,CAAA;AAGxB,IAAA,MAAM;AACN,IAAA,MAAM;AAEf,IAAA,WAAA,CAAY,eAAsC,EAAA;QAChD,KAAK,CAAC,eAAe,CAAC;;IAGf,WAAW,GAAA;QAClB,IAAI,MAAM,GAAQ,EAAE;AACpB,QAAA,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;YAChB,MAAM,OAAO,GAAQ,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,SAAS,CAAC;YAC7D,IAAI,CAAC,MAAM,GAAG,OAAO,EAAE,MAAM,IAAI,EAAE;;AAGrC,QAAA,IAAI,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,IAAI,KAAK,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE;AACpD,YAAA,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,EAAE;AAC/B,YAAA,MAAM,KAAK,GAAG,MAAM,CAAC,YAAY,IAAI,CAAC;AACtC,YAAA,MAAM,MAAM,GAAU,IAAI,CAAC,MAAM;AACjC,YAAA,MAAM,aAAa,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,QAAyB,KACpE,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,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