@covalent/echarts 6.4.0 → 6.4.2
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.
- package/bar/bar.component.d.ts +1 -1
- package/base/axis/axis.component.d.ts +1 -1
- package/base/axis/x-axis.component.d.ts +1 -1
- package/base/axis/y-axis.component.d.ts +1 -1
- package/base/chart.component.d.ts +1 -1
- package/base/dataset/dataset.component.d.ts +1 -1
- package/base/series/series.component.d.ts +1 -1
- package/base/src/axis/README.md +58 -0
- package/base/src/dataset/README.md +80 -0
- package/clustering/clustering.component.d.ts +1 -1
- package/esm2020/bar/bar.component.mjs +135 -0
- package/{esm2022 → esm2020}/bar/bar.module.mjs +5 -5
- package/esm2020/base/axis/axis.component.mjs +127 -0
- package/esm2020/base/axis/x-axis.component.mjs +55 -0
- package/esm2020/base/axis/y-axis.component.mjs +55 -0
- package/{esm2022 → esm2020}/base/base.module.mjs +11 -11
- package/esm2020/base/chart-options.service.mjs +65 -0
- package/esm2020/base/chart.component.mjs +195 -0
- package/esm2020/base/dataset/dataset.component.mjs +52 -0
- package/esm2020/base/series/series.component.mjs +91 -0
- package/esm2020/clustering/clustering.component.mjs +233 -0
- package/{esm2022 → esm2020}/clustering/clustering.module.mjs +5 -5
- package/esm2020/graph/graph.component.mjs +185 -0
- package/{esm2022 → esm2020}/graph/graph.module.mjs +5 -5
- package/esm2020/histogram/histogram.component.mjs +125 -0
- package/{esm2022 → esm2020}/histogram/histogram.module.mjs +5 -5
- package/esm2020/line/line.component.mjs +159 -0
- package/{esm2022 → esm2020}/line/line.module.mjs +5 -5
- package/esm2020/map/map.component.mjs +132 -0
- package/{esm2022 → esm2020}/map/map.module.mjs +5 -5
- package/esm2020/pie/pie.component.mjs +127 -0
- package/{esm2022 → esm2020}/pie/pie.module.mjs +5 -5
- package/esm2020/regression/regression.component.mjs +137 -0
- package/{esm2022 → esm2020}/regression/regression.module.mjs +5 -5
- package/esm2020/sankey/sankey.component.mjs +117 -0
- package/{esm2022 → esm2020}/sankey/sankey.module.mjs +5 -5
- package/esm2020/scatter/scatter.component.mjs +144 -0
- package/{esm2022 → esm2020}/scatter/scatter.module.mjs +5 -5
- package/esm2020/toolbox/toolbox.component.mjs +135 -0
- package/{esm2022 → esm2020}/toolbox/toolbox.module.mjs +7 -7
- package/esm2020/tooltip/series-tooltip.component.mjs +102 -0
- package/esm2020/tooltip/tooltip.component.mjs +156 -0
- package/{esm2022 → esm2020}/tooltip/tooltip.module.mjs +9 -9
- package/esm2020/tree/tree.component.mjs +117 -0
- package/{esm2022 → esm2020}/tree/tree.module.mjs +5 -5
- package/esm2020/treemap/treemap.component.mjs +149 -0
- package/{esm2022 → esm2020}/treemap/treemap.module.mjs +5 -5
- package/esm2020/wordcloud/wordcloud.component.mjs +92 -0
- package/{esm2022 → esm2020}/wordcloud/wordcloud.module.mjs +5 -5
- package/{fesm2022 → fesm2015}/covalent-echarts-bar.mjs +12 -40
- package/fesm2015/covalent-echarts-bar.mjs.map +1 -0
- package/fesm2015/covalent-echarts-base.mjs +4931 -0
- package/{fesm2022 → fesm2015}/covalent-echarts-base.mjs.map +1 -1
- package/{fesm2022 → fesm2015}/covalent-echarts-clustering.mjs +12 -54
- package/fesm2015/covalent-echarts-clustering.mjs.map +1 -0
- package/{fesm2022 → fesm2015}/covalent-echarts-graph.mjs +12 -57
- package/{fesm2022 → fesm2015}/covalent-echarts-graph.mjs.map +1 -1
- package/fesm2015/covalent-echarts-histogram.mjs +151 -0
- package/fesm2015/covalent-echarts-histogram.mjs.map +1 -0
- package/{fesm2022 → fesm2015}/covalent-echarts-line.mjs +12 -48
- package/fesm2015/covalent-echarts-line.mjs.map +1 -0
- package/{fesm2022 → fesm2015}/covalent-echarts-map.mjs +12 -39
- package/fesm2015/covalent-echarts-map.mjs.map +1 -0
- package/{fesm2022 → fesm2015}/covalent-echarts-pie.mjs +12 -38
- package/fesm2015/covalent-echarts-pie.mjs.map +1 -0
- package/fesm2015/covalent-echarts-regression.mjs +163 -0
- package/fesm2015/covalent-echarts-regression.mjs.map +1 -0
- package/{fesm2022 → fesm2015}/covalent-echarts-sankey.mjs +12 -34
- package/fesm2015/covalent-echarts-sankey.mjs.map +1 -0
- package/{fesm2022 → fesm2015}/covalent-echarts-scatter.mjs +12 -43
- package/fesm2015/covalent-echarts-scatter.mjs.map +1 -0
- package/fesm2015/covalent-echarts-toolbox.mjs +158 -0
- package/fesm2015/covalent-echarts-toolbox.mjs.map +1 -0
- package/{fesm2022 → fesm2015}/covalent-echarts-tooltip.mjs +47 -69
- package/{fesm2022 → fesm2015}/covalent-echarts-tooltip.mjs.map +1 -1
- package/{fesm2022 → fesm2015}/covalent-echarts-tree.mjs +12 -34
- package/{fesm2022 → fesm2015}/covalent-echarts-tree.mjs.map +1 -1
- package/{fesm2022 → fesm2015}/covalent-echarts-treemap.mjs +13 -46
- package/fesm2015/covalent-echarts-treemap.mjs.map +1 -0
- package/{fesm2022 → fesm2015}/covalent-echarts-wordcloud.mjs +12 -26
- package/fesm2015/covalent-echarts-wordcloud.mjs.map +1 -0
- package/fesm2020/covalent-echarts-bar.mjs +158 -0
- package/fesm2020/covalent-echarts-bar.mjs.map +1 -0
- package/{fesm2022 → fesm2020}/covalent-echarts-base.mjs +69 -135
- package/fesm2020/covalent-echarts-base.mjs.map +1 -0
- package/fesm2020/covalent-echarts-clustering.mjs +258 -0
- package/{fesm2022 → fesm2020}/covalent-echarts-clustering.mjs.map +1 -1
- package/fesm2020/covalent-echarts-graph.mjs +210 -0
- package/fesm2020/covalent-echarts-graph.mjs.map +1 -0
- package/{fesm2022 → fesm2020}/covalent-echarts-histogram.mjs +12 -14
- package/{fesm2022 → fesm2020}/covalent-echarts-histogram.mjs.map +1 -1
- package/fesm2020/covalent-echarts-line.mjs +182 -0
- package/fesm2020/covalent-echarts-line.mjs.map +1 -0
- package/fesm2020/covalent-echarts-map.mjs +155 -0
- package/{fesm2022 → fesm2020}/covalent-echarts-map.mjs.map +1 -1
- package/fesm2020/covalent-echarts-pie.mjs +150 -0
- package/fesm2020/covalent-echarts-pie.mjs.map +1 -0
- package/{fesm2022 → fesm2020}/covalent-echarts-regression.mjs +12 -15
- package/fesm2020/covalent-echarts-regression.mjs.map +1 -0
- package/fesm2020/covalent-echarts-sankey.mjs +142 -0
- package/fesm2020/covalent-echarts-sankey.mjs.map +1 -0
- package/fesm2020/covalent-echarts-scatter.mjs +169 -0
- package/fesm2020/covalent-echarts-scatter.mjs.map +1 -0
- package/{fesm2022 → fesm2020}/covalent-echarts-toolbox.mjs +23 -37
- package/{fesm2022 → fesm2020}/covalent-echarts-toolbox.mjs.map +1 -1
- package/fesm2020/covalent-echarts-tooltip.mjs +283 -0
- package/fesm2020/covalent-echarts-tooltip.mjs.map +1 -0
- package/fesm2020/covalent-echarts-tree.mjs +140 -0
- package/fesm2020/covalent-echarts-tree.mjs.map +1 -0
- package/fesm2020/covalent-echarts-treemap.mjs +174 -0
- package/fesm2020/covalent-echarts-treemap.mjs.map +1 -0
- package/fesm2020/covalent-echarts-wordcloud.mjs +117 -0
- package/fesm2020/covalent-echarts-wordcloud.mjs.map +1 -0
- package/fesm2020/covalent-echarts.mjs +4 -0
- package/fesm2020/covalent-echarts.mjs.map +1 -0
- package/graph/graph.component.d.ts +1 -1
- package/histogram/histogram.component.d.ts +1 -1
- package/line/line.component.d.ts +1 -1
- package/map/map.component.d.ts +1 -1
- package/package.json +99 -57
- package/pie/pie.component.d.ts +1 -1
- package/regression/regression.component.d.ts +1 -1
- package/sankey/sankey.component.d.ts +1 -1
- package/scatter/scatter.component.d.ts +1 -1
- package/toolbox/toolbox.component.d.ts +1 -1
- package/tooltip/series-tooltip.component.d.ts +1 -1
- package/tooltip/tooltip.component.d.ts +1 -1
- package/tree/tree.component.d.ts +1 -1
- package/treemap/treemap.component.d.ts +2 -2
- package/wordcloud/wordcloud.component.d.ts +1 -1
- package/esm2022/bar/bar.component.mjs +0 -163
- package/esm2022/base/axis/axis.component.mjs +0 -157
- package/esm2022/base/axis/x-axis.component.mjs +0 -56
- package/esm2022/base/axis/y-axis.component.mjs +0 -56
- package/esm2022/base/chart-options.service.mjs +0 -63
- package/esm2022/base/chart.component.mjs +0 -211
- package/esm2022/base/dataset/dataset.component.mjs +0 -57
- package/esm2022/base/series/series.component.mjs +0 -106
- package/esm2022/clustering/clustering.component.mjs +0 -275
- package/esm2022/graph/graph.component.mjs +0 -230
- package/esm2022/histogram/histogram.component.mjs +0 -127
- package/esm2022/line/line.component.mjs +0 -195
- package/esm2022/map/map.component.mjs +0 -159
- package/esm2022/pie/pie.component.mjs +0 -153
- package/esm2022/regression/regression.component.mjs +0 -140
- package/esm2022/sankey/sankey.component.mjs +0 -139
- package/esm2022/scatter/scatter.component.mjs +0 -175
- package/esm2022/toolbox/toolbox.component.mjs +0 -149
- package/esm2022/tooltip/series-tooltip.component.mjs +0 -112
- package/esm2022/tooltip/tooltip.component.mjs +0 -168
- package/esm2022/tree/tree.component.mjs +0 -139
- package/esm2022/treemap/treemap.component.mjs +0 -182
- package/esm2022/wordcloud/wordcloud.component.mjs +0 -106
- package/fesm2022/covalent-echarts-bar.mjs.map +0 -1
- package/fesm2022/covalent-echarts-line.mjs.map +0 -1
- package/fesm2022/covalent-echarts-pie.mjs.map +0 -1
- package/fesm2022/covalent-echarts-regression.mjs.map +0 -1
- package/fesm2022/covalent-echarts-sankey.mjs.map +0 -1
- package/fesm2022/covalent-echarts-scatter.mjs.map +0 -1
- package/fesm2022/covalent-echarts-treemap.mjs.map +0 -1
- package/fesm2022/covalent-echarts-wordcloud.mjs.map +0 -1
- /package/{esm2022 → esm2020}/bar/covalent-echarts-bar.mjs +0 -0
- /package/{esm2022 → esm2020}/bar/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/base/axis/axis.interface.mjs +0 -0
- /package/{esm2022 → esm2020}/base/base.types.mjs +0 -0
- /package/{esm2022 → esm2020}/base/covalent-echarts-base.mjs +0 -0
- /package/{esm2022 → esm2020}/base/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/base/series/series.interface.mjs +0 -0
- /package/{esm2022 → esm2020}/base/themes/aqua-splash.mjs +0 -0
- /package/{esm2022 → esm2020}/base/themes/california-coast.mjs +0 -0
- /package/{esm2022 → esm2020}/base/themes/hawaiian-sunrise.mjs +0 -0
- /package/{esm2022 → esm2020}/base/themes/passion-flower.mjs +0 -0
- /package/{esm2022 → esm2020}/base/themes/razzleberry-pie.mjs +0 -0
- /package/{esm2022 → esm2020}/base/themes/teradata-classic.mjs +0 -0
- /package/{esm2022 → esm2020}/base/themes/teradata-default.mjs +0 -0
- /package/{esm2022 → esm2020}/base/themes/urban-sunrise.mjs +0 -0
- /package/{esm2022 → esm2020}/base/themes/volcanic-eruption.mjs +0 -0
- /package/{esm2022 → esm2020}/base/utils/assign-defined.mjs +0 -0
- /package/{esm2022 → esm2020}/base/utils/echarts.mjs +0 -0
- /package/{esm2022 → esm2020}/base/utils/index.mjs +0 -0
- /package/{esm2022 → esm2020}/clustering/covalent-echarts-clustering.mjs +0 -0
- /package/{esm2022 → esm2020}/clustering/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/covalent-echarts.mjs +0 -0
- /package/{esm2022 → esm2020}/graph/covalent-echarts-graph.mjs +0 -0
- /package/{esm2022 → esm2020}/graph/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/histogram/covalent-echarts-histogram.mjs +0 -0
- /package/{esm2022 → esm2020}/histogram/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/line/covalent-echarts-line.mjs +0 -0
- /package/{esm2022 → esm2020}/line/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/map/covalent-echarts-map.mjs +0 -0
- /package/{esm2022 → esm2020}/map/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/pie/covalent-echarts-pie.mjs +0 -0
- /package/{esm2022 → esm2020}/pie/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/regression/covalent-echarts-regression.mjs +0 -0
- /package/{esm2022 → esm2020}/regression/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/sankey/covalent-echarts-sankey.mjs +0 -0
- /package/{esm2022 → esm2020}/sankey/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/scatter/covalent-echarts-scatter.mjs +0 -0
- /package/{esm2022 → esm2020}/scatter/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/toolbox/covalent-echarts-toolbox.mjs +0 -0
- /package/{esm2022 → esm2020}/toolbox/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/tooltip/covalent-echarts-tooltip.mjs +0 -0
- /package/{esm2022 → esm2020}/tooltip/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/tree/covalent-echarts-tree.mjs +0 -0
- /package/{esm2022 → esm2020}/tree/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/treemap/covalent-echarts-treemap.mjs +0 -0
- /package/{esm2022 → esm2020}/treemap/public_api.mjs +0 -0
- /package/{esm2022 → esm2020}/wordcloud/covalent-echarts-wordcloud.mjs +0 -0
- /package/{esm2022 → esm2020}/wordcloud/public_api.mjs +0 -0
- /package/{fesm2022 → fesm2015}/covalent-echarts.mjs +0 -0
- /package/{fesm2022 → fesm2015}/covalent-echarts.mjs.map +0 -0
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Directive, TemplateRef, Component, ChangeDetectionStrategy, Input, ContentChild, ViewChild, NgModule } from '@angular/core';
|
|
3
|
+
import * as i2 from '@angular/common';
|
|
4
|
+
import { CommonModule } from '@angular/common';
|
|
5
|
+
import * as i1 from '@covalent/echarts/base';
|
|
6
|
+
import { assignDefined } from '@covalent/echarts/base';
|
|
7
|
+
|
|
8
|
+
class TdTooltipContext {
|
|
9
|
+
}
|
|
10
|
+
class TdChartTooltipFormatterDirective {
|
|
11
|
+
}
|
|
12
|
+
TdChartTooltipFormatterDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TdChartTooltipFormatterDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
13
|
+
TdChartTooltipFormatterDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: TdChartTooltipFormatterDirective, selector: "ng-template[tdTooltipFormatter]", ngImport: i0 });
|
|
14
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TdChartTooltipFormatterDirective, decorators: [{
|
|
15
|
+
type: Directive,
|
|
16
|
+
args: [{
|
|
17
|
+
selector: 'ng-template[tdTooltipFormatter]',
|
|
18
|
+
}]
|
|
19
|
+
}] });
|
|
20
|
+
class TdChartTooltipComponent {
|
|
21
|
+
constructor(_changeDetectorRef, _elementRef, _optionsService) {
|
|
22
|
+
this._changeDetectorRef = _changeDetectorRef;
|
|
23
|
+
this._elementRef = _elementRef;
|
|
24
|
+
this._optionsService = _optionsService;
|
|
25
|
+
this._state = {};
|
|
26
|
+
this._context = new TdTooltipContext();
|
|
27
|
+
this.config = {};
|
|
28
|
+
this.show = true;
|
|
29
|
+
this.trigger = 'axis';
|
|
30
|
+
this.showContent = true;
|
|
31
|
+
this.alwaysShowContent = false;
|
|
32
|
+
this.triggerOn = 'mousemove|click';
|
|
33
|
+
this.showDelay = 0;
|
|
34
|
+
this.hideDelay = 0;
|
|
35
|
+
this.enterable = false;
|
|
36
|
+
this.confine = false;
|
|
37
|
+
this.transitionDuration = 0.5;
|
|
38
|
+
this.backgroundColor = 'rgba(50,50,50,0.7)'; // series
|
|
39
|
+
this.borderColor = '#333'; // series
|
|
40
|
+
this.borderWidth = 0; // series
|
|
41
|
+
this.padding = 5; // series
|
|
42
|
+
this.textStyle = {
|
|
43
|
+
// series
|
|
44
|
+
color: '#FFF',
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
ngOnChanges() {
|
|
48
|
+
this._setOptions();
|
|
49
|
+
}
|
|
50
|
+
ngOnDestroy() {
|
|
51
|
+
this._removeOption();
|
|
52
|
+
}
|
|
53
|
+
_setOptions() {
|
|
54
|
+
const config = assignDefined(this._state, {
|
|
55
|
+
show: this.show,
|
|
56
|
+
trigger: this.trigger,
|
|
57
|
+
axisPointer: this.axisPointer,
|
|
58
|
+
showContent: this.showContent,
|
|
59
|
+
alwaysShowContent: this.alwaysShowContent,
|
|
60
|
+
triggerOn: this.triggerOn,
|
|
61
|
+
showDelay: this.showDelay,
|
|
62
|
+
hideDelay: this.hideDelay,
|
|
63
|
+
enterable: this.enterable,
|
|
64
|
+
confine: this.confine,
|
|
65
|
+
transitionDuration: this.transitionDuration,
|
|
66
|
+
position: this.position,
|
|
67
|
+
formatter: this.formatter
|
|
68
|
+
? this.formatter
|
|
69
|
+
: this.formatterTemplate
|
|
70
|
+
? this._formatter()
|
|
71
|
+
: undefined,
|
|
72
|
+
backgroundColor: this.backgroundColor,
|
|
73
|
+
borderColor: this.borderColor,
|
|
74
|
+
borderWidth: this.borderWidth,
|
|
75
|
+
padding: this.padding,
|
|
76
|
+
textStyle: this.textStyle,
|
|
77
|
+
extraCssText: this.extraCssText,
|
|
78
|
+
}, this.config ? this.config : {});
|
|
79
|
+
// set tooltip configuration in parent chart and render new configurations
|
|
80
|
+
this._optionsService.setOption('tooltip', config);
|
|
81
|
+
}
|
|
82
|
+
_removeOption() {
|
|
83
|
+
this._optionsService.clearOption('tooltip');
|
|
84
|
+
}
|
|
85
|
+
_formatter() {
|
|
86
|
+
return (params, ticket, callback) => {
|
|
87
|
+
this._context = {
|
|
88
|
+
$implicit: params,
|
|
89
|
+
ticket,
|
|
90
|
+
};
|
|
91
|
+
// timeout set since we need to set the HTML at the end of the angular lifecycle when
|
|
92
|
+
// the tooltip delay is more than 0
|
|
93
|
+
setTimeout(() => {
|
|
94
|
+
callback(ticket, this._elementRef.nativeElement.innerHTML);
|
|
95
|
+
});
|
|
96
|
+
this._changeDetectorRef.markForCheck();
|
|
97
|
+
return this._elementRef.nativeElement.innerHTML;
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
TdChartTooltipComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TdChartTooltipComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i1.TdChartOptionsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
102
|
+
TdChartTooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TdChartTooltipComponent, selector: "td-chart-tooltip", inputs: { config: "config", show: "show", trigger: "trigger", axisPointer: "axisPointer", showContent: "showContent", alwaysShowContent: "alwaysShowContent", triggerOn: "triggerOn", showDelay: "showDelay", hideDelay: "hideDelay", enterable: "enterable", renderMode: "renderMode", confine: "confine", transitionDuration: "transitionDuration", position: "position", formatter: "formatter", backgroundColor: "backgroundColor", borderColor: "borderColor", borderWidth: "borderWidth", padding: "padding", textStyle: "textStyle", extraCssText: "extraCssText" }, queries: [{ propertyName: "formatterTemplate", first: true, predicate: TdChartTooltipFormatterDirective, descendants: true, read: TemplateRef, static: true }], viewQueries: [{ propertyName: "fullTemplate", first: true, predicate: ["tooltipContent"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<ng-template\n #tooltipContent\n [ngTemplateOutlet]=\"formatterTemplate\"\n [ngTemplateOutletContext]=\"_context\"\n></ng-template>\n", dependencies: [{ kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
103
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TdChartTooltipComponent, decorators: [{
|
|
104
|
+
type: Component,
|
|
105
|
+
args: [{ selector: 'td-chart-tooltip', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template\n #tooltipContent\n [ngTemplateOutlet]=\"formatterTemplate\"\n [ngTemplateOutletContext]=\"_context\"\n></ng-template>\n" }]
|
|
106
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i1.TdChartOptionsService }]; }, propDecorators: { config: [{
|
|
107
|
+
type: Input
|
|
108
|
+
}], show: [{
|
|
109
|
+
type: Input
|
|
110
|
+
}], trigger: [{
|
|
111
|
+
type: Input
|
|
112
|
+
}], axisPointer: [{
|
|
113
|
+
type: Input
|
|
114
|
+
}], showContent: [{
|
|
115
|
+
type: Input
|
|
116
|
+
}], alwaysShowContent: [{
|
|
117
|
+
type: Input
|
|
118
|
+
}], triggerOn: [{
|
|
119
|
+
type: Input
|
|
120
|
+
}], showDelay: [{
|
|
121
|
+
type: Input
|
|
122
|
+
}], hideDelay: [{
|
|
123
|
+
type: Input
|
|
124
|
+
}], enterable: [{
|
|
125
|
+
type: Input
|
|
126
|
+
}], renderMode: [{
|
|
127
|
+
type: Input
|
|
128
|
+
}], confine: [{
|
|
129
|
+
type: Input
|
|
130
|
+
}], transitionDuration: [{
|
|
131
|
+
type: Input
|
|
132
|
+
}], position: [{
|
|
133
|
+
type: Input
|
|
134
|
+
}], formatter: [{
|
|
135
|
+
type: Input
|
|
136
|
+
}], backgroundColor: [{
|
|
137
|
+
type: Input
|
|
138
|
+
}], borderColor: [{
|
|
139
|
+
type: Input
|
|
140
|
+
}], borderWidth: [{
|
|
141
|
+
type: Input
|
|
142
|
+
}], padding: [{
|
|
143
|
+
type: Input
|
|
144
|
+
}], textStyle: [{
|
|
145
|
+
type: Input
|
|
146
|
+
}], extraCssText: [{
|
|
147
|
+
type: Input
|
|
148
|
+
}], formatterTemplate: [{
|
|
149
|
+
type: ContentChild,
|
|
150
|
+
args: [TdChartTooltipFormatterDirective, {
|
|
151
|
+
read: TemplateRef,
|
|
152
|
+
static: true,
|
|
153
|
+
}]
|
|
154
|
+
}], fullTemplate: [{
|
|
155
|
+
type: ViewChild,
|
|
156
|
+
args: ['tooltipContent', { static: true }]
|
|
157
|
+
}] } });
|
|
158
|
+
|
|
159
|
+
class TdSeriesTooltipComponent {
|
|
160
|
+
constructor(_changeDetectorRef, _elementRef, _seriesComponent) {
|
|
161
|
+
this._changeDetectorRef = _changeDetectorRef;
|
|
162
|
+
this._elementRef = _elementRef;
|
|
163
|
+
this._seriesComponent = _seriesComponent;
|
|
164
|
+
this._state = {};
|
|
165
|
+
this._context = new TdTooltipContext();
|
|
166
|
+
this.backgroundColor = 'rgba(50,50,50,0.7)';
|
|
167
|
+
this.borderColor = '#333';
|
|
168
|
+
this.borderWidth = 0;
|
|
169
|
+
this.padding = 5;
|
|
170
|
+
this.textStyle = {
|
|
171
|
+
color: '#FFF',
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
ngOnChanges() {
|
|
175
|
+
this._setOptions();
|
|
176
|
+
}
|
|
177
|
+
ngOnDestroy() {
|
|
178
|
+
this._removeOption();
|
|
179
|
+
}
|
|
180
|
+
_setOptions() {
|
|
181
|
+
const config = assignDefined(this._state, {
|
|
182
|
+
position: this.position,
|
|
183
|
+
backgroundColor: this.backgroundColor,
|
|
184
|
+
borderColor: this.borderColor,
|
|
185
|
+
borderWidth: this.borderWidth,
|
|
186
|
+
padding: this.padding,
|
|
187
|
+
textStyle: this.textStyle,
|
|
188
|
+
extraCssText: this.extraCssText,
|
|
189
|
+
formatter: this.formatter
|
|
190
|
+
? this.formatter
|
|
191
|
+
: this.formatterTemplate
|
|
192
|
+
? this._formatter()
|
|
193
|
+
: undefined,
|
|
194
|
+
}, this.config ? this.config : {});
|
|
195
|
+
// set series tooltip configuration in parent chart and render new configurations
|
|
196
|
+
this._seriesComponent.setStateOption('tooltip', config);
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* Formatter for tooltip
|
|
200
|
+
*
|
|
201
|
+
*/
|
|
202
|
+
_formatter() {
|
|
203
|
+
return (params, ticket, callback) => {
|
|
204
|
+
this._context = {
|
|
205
|
+
$implicit: params,
|
|
206
|
+
ticket,
|
|
207
|
+
};
|
|
208
|
+
// timeout set since we need to set the HTML at the end of the angular lifecycle when
|
|
209
|
+
// the tooltip delay is more than 0
|
|
210
|
+
setTimeout(() => {
|
|
211
|
+
callback(ticket, this._elementRef.nativeElement.innerHTML);
|
|
212
|
+
});
|
|
213
|
+
this._changeDetectorRef.markForCheck();
|
|
214
|
+
return this._elementRef.nativeElement.innerHTML;
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
_removeOption() {
|
|
218
|
+
this._seriesComponent.removeStateOption('tooltip');
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
TdSeriesTooltipComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TdSeriesTooltipComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i1.TdSeriesDirective }], target: i0.ɵɵFactoryTarget.Component });
|
|
222
|
+
TdSeriesTooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TdSeriesTooltipComponent, selector: "td-chart-series-tooltip", inputs: { config: "config", formatter: "formatter", position: "position", backgroundColor: "backgroundColor", borderColor: "borderColor", borderWidth: "borderWidth", padding: "padding", textStyle: "textStyle", extraCssText: "extraCssText" }, queries: [{ propertyName: "formatterTemplate", first: true, predicate: TdChartTooltipFormatterDirective, descendants: true, read: TemplateRef, static: true }], viewQueries: [{ propertyName: "fullTemplate", first: true, predicate: ["tooltipContent"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<ng-template\n #tooltipContent\n [ngTemplateOutlet]=\"formatterTemplate\"\n [ngTemplateOutletContext]=\"_context\"\n></ng-template>\n", dependencies: [{ kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
223
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TdSeriesTooltipComponent, decorators: [{
|
|
224
|
+
type: Component,
|
|
225
|
+
args: [{ selector: 'td-chart-series-tooltip', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template\n #tooltipContent\n [ngTemplateOutlet]=\"formatterTemplate\"\n [ngTemplateOutletContext]=\"_context\"\n></ng-template>\n" }]
|
|
226
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i1.TdSeriesDirective }]; }, propDecorators: { config: [{
|
|
227
|
+
type: Input
|
|
228
|
+
}], formatter: [{
|
|
229
|
+
type: Input
|
|
230
|
+
}], position: [{
|
|
231
|
+
type: Input
|
|
232
|
+
}], backgroundColor: [{
|
|
233
|
+
type: Input
|
|
234
|
+
}], borderColor: [{
|
|
235
|
+
type: Input
|
|
236
|
+
}], borderWidth: [{
|
|
237
|
+
type: Input
|
|
238
|
+
}], padding: [{
|
|
239
|
+
type: Input
|
|
240
|
+
}], textStyle: [{
|
|
241
|
+
type: Input
|
|
242
|
+
}], extraCssText: [{
|
|
243
|
+
type: Input
|
|
244
|
+
}], formatterTemplate: [{
|
|
245
|
+
type: ContentChild,
|
|
246
|
+
args: [TdChartTooltipFormatterDirective, {
|
|
247
|
+
read: TemplateRef,
|
|
248
|
+
static: true,
|
|
249
|
+
}]
|
|
250
|
+
}], fullTemplate: [{
|
|
251
|
+
type: ViewChild,
|
|
252
|
+
args: ['tooltipContent', { static: true }]
|
|
253
|
+
}] } });
|
|
254
|
+
|
|
255
|
+
const TOOLTIP_MODULE_COMPONENTS = [
|
|
256
|
+
TdChartTooltipComponent,
|
|
257
|
+
TdChartTooltipFormatterDirective,
|
|
258
|
+
TdSeriesTooltipComponent,
|
|
259
|
+
];
|
|
260
|
+
class CovalentTooltipEchartsModule {
|
|
261
|
+
}
|
|
262
|
+
CovalentTooltipEchartsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CovalentTooltipEchartsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
263
|
+
CovalentTooltipEchartsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: CovalentTooltipEchartsModule, declarations: [TdChartTooltipComponent,
|
|
264
|
+
TdChartTooltipFormatterDirective,
|
|
265
|
+
TdSeriesTooltipComponent], imports: [CommonModule], exports: [TdChartTooltipComponent,
|
|
266
|
+
TdChartTooltipFormatterDirective,
|
|
267
|
+
TdSeriesTooltipComponent] });
|
|
268
|
+
CovalentTooltipEchartsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CovalentTooltipEchartsModule, imports: [CommonModule] });
|
|
269
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CovalentTooltipEchartsModule, decorators: [{
|
|
270
|
+
type: NgModule,
|
|
271
|
+
args: [{
|
|
272
|
+
imports: [CommonModule],
|
|
273
|
+
declarations: [TOOLTIP_MODULE_COMPONENTS],
|
|
274
|
+
exports: [TOOLTIP_MODULE_COMPONENTS],
|
|
275
|
+
}]
|
|
276
|
+
}] });
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* Generated bundle index. Do not edit.
|
|
280
|
+
*/
|
|
281
|
+
|
|
282
|
+
export { CovalentTooltipEchartsModule, TOOLTIP_MODULE_COMPONENTS, TdChartTooltipComponent, TdChartTooltipFormatterDirective, TdSeriesTooltipComponent, TdTooltipContext };
|
|
283
|
+
//# sourceMappingURL=covalent-echarts-tooltip.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"covalent-echarts-tooltip.mjs","sources":["../../../../libs/angular-echarts/tooltip/src/tooltip.component.ts","../../../../libs/angular-echarts/tooltip/src/tooltip.component.html","../../../../libs/angular-echarts/tooltip/src/series-tooltip.component.ts","../../../../libs/angular-echarts/tooltip/src/tooltip.module.ts","../../../../libs/angular-echarts/tooltip/src/covalent-echarts-tooltip.ts"],"sourcesContent":["import {\n Component,\n Input,\n Directive,\n TemplateRef,\n ChangeDetectionStrategy,\n ElementRef,\n ChangeDetectorRef,\n OnChanges,\n ContentChild,\n ViewChild,\n OnDestroy,\n} from '@angular/core';\n\nimport {\n TdChartOptionsService,\n assignDefined,\n TdTooltipTrigger,\n TdTooltipTriggerOn,\n TdTooltipPosition,\n} from '@covalent/echarts/base';\n\nexport class TdTooltipContext {\n $implicit: any;\n ticket!: string;\n}\n\n@Directive({\n selector: 'ng-template[tdTooltipFormatter]',\n})\nexport class TdChartTooltipFormatterDirective {}\n\n@Component({\n selector: 'td-chart-tooltip',\n templateUrl: './tooltip.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TdChartTooltipComponent implements OnChanges, OnDestroy {\n private _state: any = {};\n\n _context: TdTooltipContext = new TdTooltipContext();\n\n @Input() config: any = {};\n\n @Input() show? = true;\n @Input() trigger?: TdTooltipTrigger = 'axis';\n @Input() axisPointer: any;\n @Input() showContent? = true;\n @Input() alwaysShowContent? = false;\n @Input() triggerOn?: TdTooltipTriggerOn = 'mousemove|click';\n @Input() showDelay? = 0;\n @Input() hideDelay? = 0;\n @Input() enterable? = false;\n @Input() renderMode?: 'html' | 'richText';\n @Input() confine = false;\n @Input() transitionDuration = 0.5;\n @Input() position?: TdTooltipPosition; // series\n @Input() formatter?: string | Function; // series\n @Input() backgroundColor? = 'rgba(50,50,50,0.7)'; // series\n @Input() borderColor? = '#333'; // series\n @Input() borderWidth? = 0; // series\n @Input() padding? = 5; // series\n @Input() textStyle: any = {\n // series\n color: '#FFF',\n };\n @Input() extraCssText?: string; // series\n\n @ContentChild(TdChartTooltipFormatterDirective, {\n read: TemplateRef,\n static: true,\n })\n formatterTemplate!: TemplateRef<any>;\n @ViewChild('tooltipContent', { static: true })\n fullTemplate!: TemplateRef<any>;\n\n constructor(\n private _changeDetectorRef: ChangeDetectorRef,\n private _elementRef: ElementRef,\n private _optionsService: TdChartOptionsService\n ) {}\n\n ngOnChanges(): void {\n this._setOptions();\n }\n\n ngOnDestroy(): void {\n this._removeOption();\n }\n\n private _setOptions(): void {\n const config: any = assignDefined(\n this._state,\n {\n show: this.show,\n trigger: this.trigger,\n axisPointer: this.axisPointer,\n showContent: this.showContent,\n alwaysShowContent: this.alwaysShowContent,\n triggerOn: this.triggerOn,\n showDelay: this.showDelay,\n hideDelay: this.hideDelay,\n enterable: this.enterable,\n confine: this.confine,\n transitionDuration: this.transitionDuration,\n position: this.position,\n formatter: this.formatter\n ? this.formatter\n : this.formatterTemplate\n ? this._formatter()\n : undefined,\n backgroundColor: this.backgroundColor,\n borderColor: this.borderColor,\n borderWidth: this.borderWidth,\n padding: this.padding,\n textStyle: this.textStyle,\n extraCssText: this.extraCssText,\n },\n this.config ? this.config : {}\n );\n // set tooltip configuration in parent chart and render new configurations\n this._optionsService.setOption('tooltip', config);\n }\n\n private _removeOption(): void {\n this._optionsService.clearOption('tooltip');\n }\n\n private _formatter(): (\n params: any,\n ticket: any,\n callback: (ticket: string, html: string) => void\n ) => string {\n return (\n params: any,\n ticket: any,\n callback: (ticket: string, html: string) => void\n ) => {\n this._context = {\n $implicit: params,\n ticket,\n };\n // timeout set since we need to set the HTML at the end of the angular lifecycle when\n // the tooltip delay is more than 0\n setTimeout(() => {\n callback(\n ticket,\n (<HTMLElement>this._elementRef.nativeElement).innerHTML\n );\n });\n this._changeDetectorRef.markForCheck();\n return (<HTMLElement>this._elementRef.nativeElement).innerHTML;\n };\n }\n}\n","<ng-template\n #tooltipContent\n [ngTemplateOutlet]=\"formatterTemplate\"\n [ngTemplateOutletContext]=\"_context\"\n></ng-template>\n","import {\n Component,\n Input,\n ContentChild,\n ViewChild,\n TemplateRef,\n ChangeDetectorRef,\n ElementRef,\n ChangeDetectionStrategy,\n OnChanges,\n OnDestroy,\n} from '@angular/core';\n\nimport { assignDefined, TdSeriesDirective } from '@covalent/echarts/base';\n\nimport {\n TdChartTooltipFormatterDirective,\n TdTooltipContext,\n} from './tooltip.component';\n\n@Component({\n selector: 'td-chart-series-tooltip',\n templateUrl: './tooltip.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TdSeriesTooltipComponent implements OnChanges, OnDestroy {\n private _state: any = {};\n\n _context: TdTooltipContext = new TdTooltipContext();\n\n @Input() config?: any;\n\n @Input() formatter?: any;\n // Parent tooltip trigger must be set to 'item' to render these properties\n @Input() position?: string | string[] | number[];\n @Input() backgroundColor? = 'rgba(50,50,50,0.7)';\n @Input() borderColor? = '#333';\n @Input() borderWidth? = 0;\n @Input() padding? = 5;\n @Input() textStyle? = {\n color: '#FFF',\n };\n @Input() extraCssText?: string;\n\n @ContentChild(TdChartTooltipFormatterDirective, {\n read: TemplateRef,\n static: true,\n })\n formatterTemplate!: TemplateRef<any>;\n @ViewChild('tooltipContent', { static: true })\n fullTemplate!: TemplateRef<any>;\n\n constructor(\n private _changeDetectorRef: ChangeDetectorRef,\n private _elementRef: ElementRef,\n private _seriesComponent: TdSeriesDirective\n ) {}\n\n ngOnChanges(): void {\n this._setOptions();\n }\n\n ngOnDestroy(): void {\n this._removeOption();\n }\n\n private _setOptions(): void {\n const config: any = assignDefined(\n this._state,\n {\n position: this.position,\n backgroundColor: this.backgroundColor,\n borderColor: this.borderColor,\n borderWidth: this.borderWidth,\n padding: this.padding,\n textStyle: this.textStyle,\n extraCssText: this.extraCssText,\n formatter: this.formatter\n ? this.formatter\n : this.formatterTemplate\n ? this._formatter()\n : undefined,\n },\n this.config ? this.config : {}\n );\n // set series tooltip configuration in parent chart and render new configurations\n this._seriesComponent.setStateOption('tooltip', config);\n }\n\n /**\n * Formatter for tooltip\n *\n */\n private _formatter(): (\n params: any,\n ticket: any,\n callback: (ticket: string, html: string) => void\n ) => string {\n return (\n params: any,\n ticket: any,\n callback: (ticket: string, html: string) => void\n ) => {\n this._context = {\n $implicit: params,\n ticket,\n };\n // timeout set since we need to set the HTML at the end of the angular lifecycle when\n // the tooltip delay is more than 0\n setTimeout(() => {\n callback(\n ticket,\n (<HTMLElement>this._elementRef.nativeElement).innerHTML\n );\n });\n this._changeDetectorRef.markForCheck();\n return (<HTMLElement>this._elementRef.nativeElement).innerHTML;\n };\n }\n\n private _removeOption(): void {\n this._seriesComponent.removeStateOption('tooltip');\n }\n}\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport {\n TdChartTooltipComponent,\n TdChartTooltipFormatterDirective,\n} from './tooltip.component';\nimport { TdSeriesTooltipComponent } from './series-tooltip.component';\n\nexport const TOOLTIP_MODULE_COMPONENTS: Type<any>[] = [\n TdChartTooltipComponent,\n TdChartTooltipFormatterDirective,\n TdSeriesTooltipComponent,\n];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [TOOLTIP_MODULE_COMPONENTS],\n exports: [TOOLTIP_MODULE_COMPONENTS],\n})\nexport class CovalentTooltipEchartsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;MAsBa,gBAAgB,CAAA;AAG5B,CAAA;MAKY,gCAAgC,CAAA;;8HAAhC,gCAAgC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kHAAhC,gCAAgC,EAAA,QAAA,EAAA,iCAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;4FAAhC,gCAAgC,EAAA,UAAA,EAAA,CAAA;kBAH5C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,iCAAiC;AAC5C,iBAAA,CAAA;;MAQY,uBAAuB,CAAA;AAuClC,IAAA,WAAA,CACU,kBAAqC,EACrC,WAAuB,EACvB,eAAsC,EAAA;QAFtC,IAAkB,CAAA,kBAAA,GAA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AQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,YAAY,EAAE,CAAC,yBAAyB,CAAC;oBACzC,OAAO,EAAE,CAAC,yBAAyB,CAAC;AACrC,iBAAA,CAAA;;;ACnBD;;AAEG;;;;"}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { forwardRef, Component, ChangeDetectionStrategy, Input, NgModule } from '@angular/core';
|
|
3
|
+
import { CommonModule } from '@angular/common';
|
|
4
|
+
import * as i1 from '@covalent/echarts/base';
|
|
5
|
+
import { TdSeriesDirective } from '@covalent/echarts/base';
|
|
6
|
+
|
|
7
|
+
class TdChartSeriesTreeComponent extends TdSeriesDirective {
|
|
8
|
+
constructor(_optionsService) {
|
|
9
|
+
super('tree', _optionsService);
|
|
10
|
+
}
|
|
11
|
+
getConfig() {
|
|
12
|
+
return {
|
|
13
|
+
zlevel: this.zlevel,
|
|
14
|
+
z: this.z,
|
|
15
|
+
left: this.left,
|
|
16
|
+
top: this.top,
|
|
17
|
+
right: this.right,
|
|
18
|
+
bottom: this.bottom,
|
|
19
|
+
width: this.width,
|
|
20
|
+
height: this.height,
|
|
21
|
+
layout: this.layout,
|
|
22
|
+
orient: this.orient,
|
|
23
|
+
symbol: this.symbol,
|
|
24
|
+
symbolSize: this.symbolSize,
|
|
25
|
+
symbolRotate: this.symbolRotate,
|
|
26
|
+
symbolKeepAspect: this.symbolKeepAspect,
|
|
27
|
+
roam: this.roam,
|
|
28
|
+
expandAndCollapse: this.expandAndCollapse,
|
|
29
|
+
initialTreeDepth: this.initialTreeDepth,
|
|
30
|
+
itemStyle: this.itemStyle,
|
|
31
|
+
label: this.label,
|
|
32
|
+
lineStyle: this.lineStyle,
|
|
33
|
+
leaves: this.leaves,
|
|
34
|
+
emphasis: this.emphasis,
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
TdChartSeriesTreeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TdChartSeriesTreeComponent, deps: [{ token: i1.TdChartOptionsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
39
|
+
TdChartSeriesTreeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: TdChartSeriesTreeComponent, selector: "td-chart-series[td-tree]", 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", zlevel: "zlevel", z: "z", left: "left", top: "top", right: "right", bottom: "bottom", width: "width", height: "height", layout: "layout", orient: "orient", symbol: "symbol", symbolSize: "symbolSize", symbolRotate: "symbolRotate", symbolKeepAspect: "symbolKeepAspect", roam: "roam", expandAndCollapse: "expandAndCollapse", initialTreeDepth: "initialTreeDepth", itemStyle: "itemStyle", label: "label", lineStyle: "lineStyle", leaves: "leaves", emphasis: "emphasis" }, providers: [
|
|
40
|
+
{
|
|
41
|
+
provide: TdSeriesDirective,
|
|
42
|
+
useExisting: forwardRef(() => TdChartSeriesTreeComponent),
|
|
43
|
+
},
|
|
44
|
+
], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
45
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TdChartSeriesTreeComponent, decorators: [{
|
|
46
|
+
type: Component,
|
|
47
|
+
args: [{
|
|
48
|
+
selector: 'td-chart-series[td-tree]',
|
|
49
|
+
template: '',
|
|
50
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
51
|
+
inputs: [
|
|
52
|
+
'config',
|
|
53
|
+
'id',
|
|
54
|
+
'name',
|
|
55
|
+
'color',
|
|
56
|
+
'data',
|
|
57
|
+
'animation',
|
|
58
|
+
'animationThreshold',
|
|
59
|
+
'animationDuration',
|
|
60
|
+
'animationEasing',
|
|
61
|
+
'animationDelay',
|
|
62
|
+
'animationDurationUpdate',
|
|
63
|
+
'animationEasingUpdate',
|
|
64
|
+
'animationDelayUpdate',
|
|
65
|
+
'tooltip',
|
|
66
|
+
],
|
|
67
|
+
providers: [
|
|
68
|
+
{
|
|
69
|
+
provide: TdSeriesDirective,
|
|
70
|
+
useExisting: forwardRef(() => TdChartSeriesTreeComponent),
|
|
71
|
+
},
|
|
72
|
+
],
|
|
73
|
+
}]
|
|
74
|
+
}], ctorParameters: function () { return [{ type: i1.TdChartOptionsService }]; }, propDecorators: { zlevel: [{
|
|
75
|
+
type: Input
|
|
76
|
+
}], z: [{
|
|
77
|
+
type: Input
|
|
78
|
+
}], left: [{
|
|
79
|
+
type: Input
|
|
80
|
+
}], top: [{
|
|
81
|
+
type: Input
|
|
82
|
+
}], right: [{
|
|
83
|
+
type: Input
|
|
84
|
+
}], bottom: [{
|
|
85
|
+
type: Input
|
|
86
|
+
}], width: [{
|
|
87
|
+
type: Input
|
|
88
|
+
}], height: [{
|
|
89
|
+
type: Input
|
|
90
|
+
}], layout: [{
|
|
91
|
+
type: Input
|
|
92
|
+
}], orient: [{
|
|
93
|
+
type: Input
|
|
94
|
+
}], symbol: [{
|
|
95
|
+
type: Input
|
|
96
|
+
}], symbolSize: [{
|
|
97
|
+
type: Input
|
|
98
|
+
}], symbolRotate: [{
|
|
99
|
+
type: Input
|
|
100
|
+
}], symbolKeepAspect: [{
|
|
101
|
+
type: Input
|
|
102
|
+
}], roam: [{
|
|
103
|
+
type: Input
|
|
104
|
+
}], expandAndCollapse: [{
|
|
105
|
+
type: Input
|
|
106
|
+
}], initialTreeDepth: [{
|
|
107
|
+
type: Input
|
|
108
|
+
}], itemStyle: [{
|
|
109
|
+
type: Input
|
|
110
|
+
}], label: [{
|
|
111
|
+
type: Input
|
|
112
|
+
}], lineStyle: [{
|
|
113
|
+
type: Input
|
|
114
|
+
}], leaves: [{
|
|
115
|
+
type: Input
|
|
116
|
+
}], emphasis: [{
|
|
117
|
+
type: Input
|
|
118
|
+
}] } });
|
|
119
|
+
|
|
120
|
+
const TREE_MODULE_COMPONENTS = [TdChartSeriesTreeComponent];
|
|
121
|
+
class CovalentTreeEchartsModule {
|
|
122
|
+
}
|
|
123
|
+
CovalentTreeEchartsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CovalentTreeEchartsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
124
|
+
CovalentTreeEchartsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: CovalentTreeEchartsModule, declarations: [TdChartSeriesTreeComponent], imports: [CommonModule], exports: [TdChartSeriesTreeComponent] });
|
|
125
|
+
CovalentTreeEchartsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CovalentTreeEchartsModule, imports: [CommonModule] });
|
|
126
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CovalentTreeEchartsModule, decorators: [{
|
|
127
|
+
type: NgModule,
|
|
128
|
+
args: [{
|
|
129
|
+
imports: [CommonModule],
|
|
130
|
+
declarations: [TREE_MODULE_COMPONENTS],
|
|
131
|
+
exports: [TREE_MODULE_COMPONENTS],
|
|
132
|
+
}]
|
|
133
|
+
}] });
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Generated bundle index. Do not edit.
|
|
137
|
+
*/
|
|
138
|
+
|
|
139
|
+
export { CovalentTreeEchartsModule, TREE_MODULE_COMPONENTS, TdChartSeriesTreeComponent };
|
|
140
|
+
//# sourceMappingURL=covalent-echarts-tree.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"covalent-echarts-tree.mjs","sources":["../../../../libs/angular-echarts/tree/src/tree.component.ts","../../../../libs/angular-echarts/tree/src/tree.module.ts","../../../../libs/angular-echarts/tree/src/covalent-echarts-tree.ts"],"sourcesContent":["import {\n Component,\n Input,\n ChangeDetectionStrategy,\n forwardRef,\n} from '@angular/core';\n\nimport {\n TdChartOptionsService,\n ITdItemStyle,\n TdMarkPointSymbol,\n ITdLabel,\n ITdLineStyle,\n ITdSeries,\n TdSeriesDirective,\n ITdEmphasis,\n ITdShadow,\n} from '@covalent/echarts/base';\n\n/**\n * ECHART OPTION DOCS\n * https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree\n *\n */\n\n/**\n * LR - from left to right\n * RL - from right to left\n * TB - from top to bottom\n * BT - from bottom to top\n */\nexport type TdTreeOrient = 'LR' | 'RL' | 'TB' | 'BT';\n\nexport type TdTreeLayout = 'orthogonal' | 'radial';\n\nexport interface ITdTreeEmphasisLineStyle extends ITdShadow {\n color?: any;\n width?: number;\n curveness?: number;\n}\n\nexport interface ITdTreeEmphasis extends ITdEmphasis {\n lineStyle: ITdTreeEmphasisLineStyle;\n}\n\nexport interface ITdTreeLeaves {\n label?: ITdLabel;\n itemStyle?: ITdItemStyle;\n emphasis?: ITdEmphasis;\n}\n\ninterface ITdTreeSeries extends ITdSeries {\n zlevel?: number;\n z?: number;\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 layout?: TdTreeLayout;\n orient?: TdTreeOrient;\n symbol?: TdMarkPointSymbol | string; // string added for custom SVG, URL or dataURI\n symbolSize?: number;\n symbolRotate?: number;\n symbolKeepAspect?: boolean;\n symbolOffset?: any[];\n roam?: boolean | string;\n expandAndCollapse?: boolean;\n initialTreeDepth?: number;\n itemStyle?: ITdItemStyle;\n label?: ITdLabel;\n lineStyle?: ITdLineStyle;\n leaves?: ITdTreeLeaves;\n emphasis?: ITdTreeEmphasis;\n data?: any[];\n}\n\n@Component({\n selector: 'td-chart-series[td-tree]',\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(() => TdChartSeriesTreeComponent),\n },\n ],\n})\nexport class TdChartSeriesTreeComponent\n extends TdSeriesDirective\n implements ITdTreeSeries\n{\n @Input() zlevel?: number;\n @Input() z?: number;\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 @Input() layout?: TdTreeLayout;\n @Input() orient?: TdTreeOrient;\n @Input() symbol?: TdMarkPointSymbol | string; // string added for custom SVG, URL or dataURI\n @Input() symbolSize?: number; // string added for custom SVG, URL or dataURI\n @Input() symbolRotate?: number;\n @Input() symbolKeepAspect?: boolean;\n @Input() roam?: boolean | string;\n @Input() expandAndCollapse?: boolean;\n @Input() initialTreeDepth?: number;\n @Input() itemStyle?: ITdItemStyle;\n @Input() label?: ITdLabel;\n @Input() lineStyle?: ITdLineStyle;\n @Input() leaves?: ITdTreeLeaves;\n @Input() emphasis?: ITdTreeEmphasis;\n\n constructor(_optionsService: TdChartOptionsService) {\n super('tree', _optionsService);\n }\n\n getConfig(): any {\n return {\n zlevel: this.zlevel,\n z: this.z,\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 layout: this.layout,\n orient: this.orient,\n symbol: this.symbol,\n symbolSize: this.symbolSize,\n symbolRotate: this.symbolRotate,\n symbolKeepAspect: this.symbolKeepAspect,\n roam: this.roam,\n expandAndCollapse: this.expandAndCollapse,\n initialTreeDepth: this.initialTreeDepth,\n itemStyle: this.itemStyle,\n label: this.label,\n lineStyle: this.lineStyle,\n leaves: this.leaves,\n emphasis: this.emphasis,\n };\n }\n}\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { TdChartSeriesTreeComponent } from './tree.component';\n\nexport const TREE_MODULE_COMPONENTS: Type<any>[] = [TdChartSeriesTreeComponent];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [TREE_MODULE_COMPONENTS],\n exports: [TREE_MODULE_COMPONENTS],\n})\nexport class CovalentTreeEchartsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;AA0GM,MAAO,0BACX,SAAQ,iBAAiB,CAAA;AA0BzB,IAAA,WAAA,CAAY,eAAsC,EAAA;AAChD,QAAA,KAAK,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;KAChC;IAED,SAAS,GAAA;QACP,OAAO;YACL,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,CAAC,EAAE,IAAI,CAAC,CAAC;YACT,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,GAAG,EAAE,IAAI,CAAC,GAAG;YACb,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;YACvC,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;YACzC,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;YACvC,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,KAAK,EAAE,IAAI,CAAC,KAAK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