@covalent/echarts 4.0.0-beta.4 → 4.1.0-develop.4
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/README.md +4 -90
- package/bar/README.md +23 -21
- package/bar/bar.component.d.ts +27 -27
- package/bar/covalent-echarts-bar.d.ts +1 -1
- package/bar/{public-api.d.ts → public_api.d.ts} +0 -0
- package/base/README.md +26 -26
- package/base/axis/axis.component.d.ts +29 -29
- package/base/chart.component.d.ts +3 -3
- package/base/covalent-echarts-base.d.ts +1 -1
- package/base/dataset/dataset.component.d.ts +5 -5
- package/base/{public-api.d.ts → public_api.d.ts} +0 -0
- package/base/series/series.component.d.ts +15 -15
- package/base/{axis → src/axis}/README.md +19 -19
- package/base/{dataset → src/dataset}/README.md +19 -16
- package/covalent-echarts.d.ts +1 -1
- package/esm2020/bar/bar.component.mjs +95 -96
- package/esm2020/bar/bar.module.mjs +12 -13
- package/esm2020/bar/covalent-echarts-bar.mjs +2 -2
- package/esm2020/bar/public_api.mjs +3 -0
- package/esm2020/base/axis/axis.component.mjs +66 -66
- package/esm2020/base/axis/axis.interface.mjs +1 -1
- package/esm2020/base/axis/x-axis.component.mjs +45 -45
- package/esm2020/base/axis/y-axis.component.mjs +45 -45
- package/esm2020/base/base.module.mjs +13 -14
- package/esm2020/base/base.types.mjs +1 -1
- package/esm2020/base/chart-options.service.mjs +6 -6
- package/esm2020/base/chart.component.mjs +42 -38
- package/esm2020/base/covalent-echarts-base.mjs +2 -2
- package/esm2020/base/dataset/dataset.component.mjs +22 -22
- package/esm2020/base/public_api.mjs +10 -0
- package/esm2020/base/series/series.component.mjs +34 -34
- package/esm2020/base/series/series.interface.mjs +1 -1
- package/esm2020/base/themes/aqua-splash.mjs +31 -4
- package/esm2020/base/themes/california-coast.mjs +1 -1
- package/esm2020/base/themes/hawaiian-sunrise.mjs +1 -1
- package/esm2020/base/themes/passion-flower.mjs +1 -1
- package/esm2020/base/themes/razzleberry-pie.mjs +31 -4
- package/esm2020/base/themes/teradata-classic.mjs +31 -4
- package/esm2020/base/themes/teradata-default.mjs +1 -1
- package/esm2020/base/themes/urban-sunrise.mjs +1 -1
- package/esm2020/base/themes/volcanic-eruption.mjs +1 -1
- package/esm2020/base/utils/assign-defined.mjs +1 -1
- package/esm2020/base/utils/echarts.mjs +1 -1
- package/esm2020/base/utils/index.mjs +1 -1
- package/esm2020/covalent-echarts.mjs +2 -2
- package/esm2020/graph/covalent-echarts-graph.mjs +2 -2
- package/esm2020/graph/graph.component.mjs +129 -130
- package/esm2020/graph/graph.module.mjs +15 -14
- package/esm2020/graph/public_api.mjs +3 -0
- package/esm2020/line/covalent-echarts-line.mjs +2 -2
- package/esm2020/line/line.component.mjs +111 -112
- package/esm2020/line/line.module.mjs +12 -13
- package/esm2020/line/public_api.mjs +3 -0
- package/esm2020/map/covalent-echarts-map.mjs +2 -2
- package/esm2020/map/map.component.mjs +93 -94
- package/esm2020/map/map.module.mjs +12 -13
- package/esm2020/map/public_api.mjs +3 -0
- package/esm2020/pie/covalent-echarts-pie.mjs +2 -2
- package/esm2020/pie/pie.component.mjs +91 -92
- package/esm2020/pie/pie.module.mjs +12 -13
- package/esm2020/pie/public_api.mjs +3 -0
- package/esm2020/public_api.mjs +2 -0
- package/esm2020/sankey/covalent-echarts-sankey.mjs +2 -2
- package/esm2020/sankey/public_api.mjs +3 -0
- package/esm2020/sankey/sankey.component.mjs +83 -84
- package/esm2020/sankey/sankey.module.mjs +15 -14
- package/esm2020/scatter/covalent-echarts-scatter.mjs +2 -2
- package/esm2020/scatter/public_api.mjs +3 -0
- package/esm2020/scatter/scatter.component.mjs +101 -102
- package/esm2020/scatter/scatter.module.mjs +15 -14
- package/esm2020/toolbox/covalent-echarts-toolbox.mjs +2 -2
- package/esm2020/toolbox/public_api.mjs +3 -0
- package/esm2020/toolbox/toolbox.component.mjs +60 -76
- package/esm2020/toolbox/toolbox.module.mjs +19 -15
- package/esm2020/tooltip/covalent-echarts-tooltip.mjs +2 -2
- package/esm2020/tooltip/public_api.mjs +4 -0
- package/esm2020/tooltip/series-tooltip.component.mjs +40 -49
- package/esm2020/tooltip/tooltip.component.mjs +71 -80
- package/esm2020/tooltip/tooltip.module.mjs +14 -15
- package/esm2020/tree/covalent-echarts-tree.mjs +2 -2
- package/esm2020/tree/public_api.mjs +3 -0
- package/esm2020/tree/tree.component.mjs +83 -84
- package/esm2020/tree/tree.module.mjs +12 -13
- package/esm2020/treemap/covalent-echarts-treemap.mjs +2 -2
- package/esm2020/treemap/public_api.mjs +3 -0
- package/esm2020/treemap/treemap.component.mjs +107 -108
- package/esm2020/treemap/treemap.module.mjs +15 -14
- package/esm2020/wordcloud/covalent-echarts-wordcloud.mjs +2 -2
- package/esm2020/wordcloud/public_api.mjs +3 -0
- package/esm2020/wordcloud/wordcloud.component.mjs +68 -69
- package/esm2020/wordcloud/wordcloud.module.mjs +15 -14
- package/fesm2015/covalent-echarts-bar.mjs +16 -22
- package/fesm2015/covalent-echarts-bar.mjs.map +1 -1
- package/fesm2015/covalent-echarts-base.mjs +148 -81
- package/fesm2015/covalent-echarts-base.mjs.map +1 -1
- package/fesm2015/covalent-echarts-graph.mjs +19 -23
- package/fesm2015/covalent-echarts-graph.mjs.map +1 -1
- package/fesm2015/covalent-echarts-line.mjs +16 -22
- package/fesm2015/covalent-echarts-line.mjs.map +1 -1
- package/fesm2015/covalent-echarts-map.mjs +16 -22
- package/fesm2015/covalent-echarts-map.mjs.map +1 -1
- package/fesm2015/covalent-echarts-pie.mjs +16 -22
- package/fesm2015/covalent-echarts-pie.mjs.map +1 -1
- package/fesm2015/covalent-echarts-sankey.mjs +19 -23
- package/fesm2015/covalent-echarts-sankey.mjs.map +1 -1
- package/fesm2015/covalent-echarts-scatter.mjs +19 -23
- package/fesm2015/covalent-echarts-scatter.mjs.map +1 -1
- package/fesm2015/covalent-echarts-toolbox.mjs +23 -49
- package/fesm2015/covalent-echarts-toolbox.mjs.map +1 -1
- package/fesm2015/covalent-echarts-tooltip.mjs +43 -90
- package/fesm2015/covalent-echarts-tooltip.mjs.map +1 -1
- package/fesm2015/covalent-echarts-tree.mjs +16 -22
- package/fesm2015/covalent-echarts-tree.mjs.map +1 -1
- package/fesm2015/covalent-echarts-treemap.mjs +19 -23
- package/fesm2015/covalent-echarts-treemap.mjs.map +1 -1
- package/fesm2015/covalent-echarts-wordcloud.mjs +19 -23
- package/fesm2015/covalent-echarts-wordcloud.mjs.map +1 -1
- package/fesm2015/covalent-echarts.mjs.map +1 -1
- package/fesm2020/covalent-echarts-bar.mjs +104 -106
- package/fesm2020/covalent-echarts-bar.mjs.map +1 -1
- package/fesm2020/covalent-echarts-base.mjs +353 -269
- package/fesm2020/covalent-echarts-base.mjs.map +1 -1
- package/fesm2020/covalent-echarts-graph.mjs +141 -141
- package/fesm2020/covalent-echarts-graph.mjs.map +1 -1
- package/fesm2020/covalent-echarts-line.mjs +120 -122
- package/fesm2020/covalent-echarts-line.mjs.map +1 -1
- package/fesm2020/covalent-echarts-map.mjs +102 -104
- package/fesm2020/covalent-echarts-map.mjs.map +1 -1
- package/fesm2020/covalent-echarts-pie.mjs +100 -102
- package/fesm2020/covalent-echarts-pie.mjs.map +1 -1
- package/fesm2020/covalent-echarts-sankey.mjs +95 -95
- package/fesm2020/covalent-echarts-sankey.mjs.map +1 -1
- package/fesm2020/covalent-echarts-scatter.mjs +113 -113
- package/fesm2020/covalent-echarts-scatter.mjs.map +1 -1
- package/fesm2020/covalent-echarts-toolbox.mjs +76 -88
- package/fesm2020/covalent-echarts-toolbox.mjs.map +1 -1
- package/fesm2020/covalent-echarts-tooltip.mjs +120 -139
- package/fesm2020/covalent-echarts-tooltip.mjs.map +1 -1
- package/fesm2020/covalent-echarts-tree.mjs +92 -94
- package/fesm2020/covalent-echarts-tree.mjs.map +1 -1
- package/fesm2020/covalent-echarts-treemap.mjs +119 -119
- package/fesm2020/covalent-echarts-treemap.mjs.map +1 -1
- package/fesm2020/covalent-echarts-wordcloud.mjs +79 -79
- package/fesm2020/covalent-echarts-wordcloud.mjs.map +1 -1
- package/fesm2020/covalent-echarts.mjs.map +1 -1
- package/graph/README.md +21 -19
- package/graph/covalent-echarts-graph.d.ts +1 -1
- package/graph/graph.component.d.ts +60 -60
- package/graph/{public-api.d.ts → public_api.d.ts} +0 -0
- package/line/README.md +19 -21
- package/line/covalent-echarts-line.d.ts +1 -1
- package/line/line.component.d.ts +35 -35
- package/line/{public-api.d.ts → public_api.d.ts} +0 -0
- package/map/README.md +19 -17
- package/map/covalent-echarts-map.d.ts +1 -1
- package/map/map.component.d.ts +27 -27
- package/map/{public-api.d.ts → public_api.d.ts} +0 -0
- package/package.json +11 -31
- package/pie/README.md +17 -15
- package/pie/covalent-echarts-pie.d.ts +1 -1
- package/pie/pie.component.d.ts +26 -26
- package/pie/{public-api.d.ts → public_api.d.ts} +0 -0
- package/{index.d.ts → public_api.d.ts} +0 -0
- package/sankey/README.md +22 -20
- package/sankey/covalent-echarts-sankey.d.ts +1 -1
- package/sankey/{public-api.d.ts → public_api.d.ts} +0 -0
- package/sankey/sankey.component.d.ts +22 -22
- package/scatter/README.md +19 -21
- package/scatter/covalent-echarts-scatter.d.ts +1 -1
- package/scatter/{public-api.d.ts → public_api.d.ts} +0 -0
- package/scatter/scatter.component.d.ts +31 -31
- package/toolbox/README.md +12 -11
- package/toolbox/covalent-echarts-toolbox.d.ts +1 -1
- package/toolbox/{public-api.d.ts → public_api.d.ts} +0 -0
- package/toolbox/toolbox.component.d.ts +10 -10
- package/tooltip/README.md +30 -26
- package/tooltip/covalent-echarts-tooltip.d.ts +1 -1
- package/tooltip/{public-api.d.ts → public_api.d.ts} +0 -0
- package/tooltip/series-tooltip.component.d.ts +11 -9
- package/tooltip/tooltip.component.d.ts +16 -16
- package/tree/README.md +20 -18
- package/tree/covalent-echarts-tree.d.ts +1 -1
- package/tree/{public-api.d.ts → public_api.d.ts} +0 -0
- package/tree/tree.component.d.ts +24 -24
- package/treemap/README.md +23 -21
- package/treemap/covalent-echarts-treemap.d.ts +1 -1
- package/treemap/{public-api.d.ts → public_api.d.ts} +0 -0
- package/treemap/treemap.component.d.ts +37 -37
- package/wordcloud/README.md +25 -23
- package/wordcloud/covalent-echarts-wordcloud.d.ts +1 -1
- package/wordcloud/{public-api.d.ts → public_api.d.ts} +0 -0
- package/wordcloud/wordcloud.component.d.ts +14 -14
- package/bar/index.d.ts +0 -1
- package/base/chart.component.scss +0 -4
- package/base/index.d.ts +0 -1
- package/esm2020/bar/index.mjs +0 -2
- package/esm2020/bar/public-api.mjs +0 -3
- package/esm2020/base/index.mjs +0 -2
- package/esm2020/base/public-api.mjs +0 -10
- package/esm2020/graph/index.mjs +0 -2
- package/esm2020/graph/public-api.mjs +0 -3
- package/esm2020/index.mjs +0 -2
- package/esm2020/line/index.mjs +0 -2
- package/esm2020/line/public-api.mjs +0 -3
- package/esm2020/map/index.mjs +0 -2
- package/esm2020/map/public-api.mjs +0 -3
- package/esm2020/pie/index.mjs +0 -2
- package/esm2020/pie/public-api.mjs +0 -3
- package/esm2020/sankey/index.mjs +0 -2
- package/esm2020/sankey/public-api.mjs +0 -3
- package/esm2020/scatter/index.mjs +0 -2
- package/esm2020/scatter/public-api.mjs +0 -3
- package/esm2020/toolbox/index.mjs +0 -2
- package/esm2020/toolbox/public-api.mjs +0 -3
- package/esm2020/tooltip/index.mjs +0 -2
- package/esm2020/tooltip/public-api.mjs +0 -4
- package/esm2020/tree/index.mjs +0 -2
- package/esm2020/tree/public-api.mjs +0 -3
- package/esm2020/treemap/index.mjs +0 -2
- package/esm2020/treemap/public-api.mjs +0 -3
- package/esm2020/wordcloud/index.mjs +0 -2
- package/esm2020/wordcloud/public-api.mjs +0 -3
- package/graph/index.d.ts +0 -1
- package/line/index.d.ts +0 -1
- package/map/index.d.ts +0 -1
- package/pie/index.d.ts +0 -1
- package/sankey/index.d.ts +0 -1
- package/scatter/index.d.ts +0 -1
- package/toolbox/index.d.ts +0 -1
- package/tooltip/index.d.ts +0 -1
- package/tree/index.d.ts +0 -1
- package/treemap/index.d.ts +0 -1
- package/wordcloud/index.d.ts +0 -1
|
@@ -5,18 +5,16 @@ import { CommonModule } from '@angular/common';
|
|
|
5
5
|
import * as i1 from '@covalent/echarts/base';
|
|
6
6
|
import { assignDefined } from '@covalent/echarts/base';
|
|
7
7
|
|
|
8
|
-
const _c0 = ["toolboxContent"];
|
|
9
|
-
function TdChartToolboxComponent_ng_template_0_Template(rf, ctx) { }
|
|
10
8
|
class TdChartViewDataFormatterDirective {
|
|
11
9
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
(
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
10
|
+
TdChartViewDataFormatterDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdChartViewDataFormatterDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
11
|
+
TdChartViewDataFormatterDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.2", type: TdChartViewDataFormatterDirective, selector: "ng-template[tdViewDataFormatter]", ngImport: i0 });
|
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdChartViewDataFormatterDirective, decorators: [{
|
|
13
|
+
type: Directive,
|
|
14
|
+
args: [{
|
|
15
|
+
selector: 'ng-template[tdViewDataFormatter]',
|
|
16
|
+
}]
|
|
17
|
+
}] });
|
|
20
18
|
class TdChartToolboxComponent {
|
|
21
19
|
constructor(_changeDetectorRef, _elementRef, _optionsService) {
|
|
22
20
|
this._changeDetectorRef = _changeDetectorRef;
|
|
@@ -73,7 +71,7 @@ class TdChartToolboxComponent {
|
|
|
73
71
|
this.feature = {
|
|
74
72
|
...this.feature,
|
|
75
73
|
dataView: {
|
|
76
|
-
...this.feature
|
|
74
|
+
...this.feature?.dataView,
|
|
77
75
|
optionToContent: this._optionToContentFormatter(),
|
|
78
76
|
},
|
|
79
77
|
};
|
|
@@ -86,86 +84,76 @@ class TdChartToolboxComponent {
|
|
|
86
84
|
};
|
|
87
85
|
}
|
|
88
86
|
}
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
type: Input
|
|
140
|
-
}], bottom: [{
|
|
141
|
-
type: Input
|
|
142
|
-
}], width: [{
|
|
143
|
-
type: Input
|
|
144
|
-
}], height: [{
|
|
145
|
-
type: Input
|
|
146
|
-
}], formatterTemplate: [{
|
|
147
|
-
type: ContentChild,
|
|
148
|
-
args: [TdChartViewDataFormatterDirective, { read: TemplateRef }]
|
|
149
|
-
}], fullTemplate: [{
|
|
150
|
-
type: ViewChild,
|
|
151
|
-
args: ['toolboxContent', { static: true }]
|
|
152
|
-
}] }); })();
|
|
87
|
+
TdChartToolboxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdChartToolboxComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i1.TdChartOptionsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
88
|
+
TdChartToolboxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: TdChartToolboxComponent, selector: "td-chart-toolbox", inputs: { config: "config", show: "show", trigger: "trigger", orient: "orient", itemSize: "itemSize", itemGap: "itemGap", showTitle: "showTitle", label: "label", feature: "feature", iconStyle: "iconStyle", zlevel: "zlevel", z: "z", transitionDuration: "transitionDuration", left: "left", top: "top", right: "right", bottom: "bottom", width: "width", height: "height" }, queries: [{ propertyName: "formatterTemplate", first: true, predicate: TdChartViewDataFormatterDirective, descendants: true, read: TemplateRef }], viewQueries: [{ propertyName: "fullTemplate", first: true, predicate: ["toolboxContent"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<ng-template\n #toolboxContent\n [ngTemplateOutlet]=\"formatterTemplate\"\n></ng-template>\n", directives: [{ type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
89
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdChartToolboxComponent, decorators: [{
|
|
90
|
+
type: Component,
|
|
91
|
+
args: [{ selector: 'td-chart-toolbox', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template\n #toolboxContent\n [ngTemplateOutlet]=\"formatterTemplate\"\n></ng-template>\n" }]
|
|
92
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i1.TdChartOptionsService }]; }, propDecorators: { config: [{
|
|
93
|
+
type: Input
|
|
94
|
+
}], show: [{
|
|
95
|
+
type: Input
|
|
96
|
+
}], trigger: [{
|
|
97
|
+
type: Input
|
|
98
|
+
}], orient: [{
|
|
99
|
+
type: Input
|
|
100
|
+
}], itemSize: [{
|
|
101
|
+
type: Input
|
|
102
|
+
}], itemGap: [{
|
|
103
|
+
type: Input
|
|
104
|
+
}], showTitle: [{
|
|
105
|
+
type: Input
|
|
106
|
+
}], label: [{
|
|
107
|
+
type: Input
|
|
108
|
+
}], feature: [{
|
|
109
|
+
type: Input
|
|
110
|
+
}], iconStyle: [{
|
|
111
|
+
type: Input
|
|
112
|
+
}], zlevel: [{
|
|
113
|
+
type: Input
|
|
114
|
+
}], z: [{
|
|
115
|
+
type: Input
|
|
116
|
+
}], transitionDuration: [{
|
|
117
|
+
type: Input
|
|
118
|
+
}], left: [{
|
|
119
|
+
type: Input
|
|
120
|
+
}], top: [{
|
|
121
|
+
type: Input
|
|
122
|
+
}], right: [{
|
|
123
|
+
type: Input
|
|
124
|
+
}], bottom: [{
|
|
125
|
+
type: Input
|
|
126
|
+
}], width: [{
|
|
127
|
+
type: Input
|
|
128
|
+
}], height: [{
|
|
129
|
+
type: Input
|
|
130
|
+
}], formatterTemplate: [{
|
|
131
|
+
type: ContentChild,
|
|
132
|
+
args: [TdChartViewDataFormatterDirective, { read: TemplateRef }]
|
|
133
|
+
}], fullTemplate: [{
|
|
134
|
+
type: ViewChild,
|
|
135
|
+
args: ['toolboxContent', { static: true }]
|
|
136
|
+
}] } });
|
|
153
137
|
|
|
154
|
-
const TOOLBOX_MODULE_COMPONENTS = [
|
|
138
|
+
const TOOLBOX_MODULE_COMPONENTS = [
|
|
139
|
+
TdChartToolboxComponent,
|
|
140
|
+
TdChartViewDataFormatterDirective,
|
|
141
|
+
];
|
|
155
142
|
class CovalentToolboxEchartsModule {
|
|
156
143
|
}
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
144
|
+
CovalentToolboxEchartsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentToolboxEchartsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
145
|
+
CovalentToolboxEchartsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentToolboxEchartsModule, declarations: [TdChartToolboxComponent,
|
|
146
|
+
TdChartViewDataFormatterDirective], imports: [CommonModule], exports: [TdChartToolboxComponent,
|
|
147
|
+
TdChartViewDataFormatterDirective] });
|
|
148
|
+
CovalentToolboxEchartsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentToolboxEchartsModule, imports: [[CommonModule]] });
|
|
149
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentToolboxEchartsModule, decorators: [{
|
|
150
|
+
type: NgModule,
|
|
151
|
+
args: [{
|
|
152
|
+
imports: [CommonModule],
|
|
153
|
+
declarations: [TOOLBOX_MODULE_COMPONENTS],
|
|
154
|
+
exports: [TOOLBOX_MODULE_COMPONENTS],
|
|
155
|
+
}]
|
|
156
|
+
}] });
|
|
169
157
|
|
|
170
158
|
/**
|
|
171
159
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"covalent-echarts-toolbox.mjs","sources":["../../../../
|
|
1
|
+
{"version":3,"file":"covalent-echarts-toolbox.mjs","sources":["../../../../libs/angular-echarts/toolbox/src/toolbox.component.ts","../../../../libs/angular-echarts/toolbox/src/toolbox.component.html","../../../../libs/angular-echarts/toolbox/src/toolbox.module.ts","../../../../libs/angular-echarts/toolbox/src/covalent-echarts-toolbox.ts"],"sourcesContent":["import {\n Component,\n Input,\n Directive,\n TemplateRef,\n ChangeDetectionStrategy,\n ElementRef,\n ChangeDetectorRef,\n OnChanges,\n ContentChild,\n ViewChild,\n OnDestroy,\n} from '@angular/core';\n\nimport {\n TdChartOptionsService,\n assignDefined,\n ITdLabel,\n ITdShadow,\n ITdItemStyle,\n TdTextPosition,\n TdTextAlign,\n} from '@covalent/echarts/base';\n\nexport type TdToolboxOrient = 'horizontal' | 'vertical';\nexport type TdImageType = 'png' | 'jpeg';\n\nexport interface ITdAcceptedBrushTypes {\n rect?: string;\n polygon?: string;\n lineX?: string;\n lineY?: string;\n keep?: string;\n clear?: string;\n}\n\nexport interface ITdAcceptedMagicTypes {\n line?: string;\n bar?: string;\n stack?: string;\n tiled?: string;\n}\n\nexport interface ITdToolboxIconEmphasis extends ITdItemStyle, ITdShadow {}\n\nexport interface ITdFeatureIconStyle extends ITdItemStyle, ITdShadow {\n textPosition?: TdTextPosition;\n textAlign?: TdTextAlign;\n emphasis?: ITdToolboxIconEmphasis;\n}\n\nexport interface ITdZoomTitles {\n zoom?: string;\n back?: string;\n}\n\nexport interface ITdSaveAsImage {\n type?: TdImageType;\n name?: string;\n backgroundColor?: any;\n excludeComponents?: string[]; // defaults to ['toolbox']\n show?: boolean;\n title?: string;\n icon?: string;\n iconStyle?: ITdFeatureIconStyle;\n pixelRatio?: number;\n}\n\nexport interface ITdRestore {\n show?: boolean;\n title?: string;\n icon?: string;\n iconStyle?: ITdFeatureIconStyle;\n}\n\nexport interface ITdDataView {\n show?: boolean;\n title?: string;\n icon?: string;\n iconStyle?: ITdFeatureIconStyle;\n readOnly?: boolean;\n optionToContent?: Function;\n contentToOption?: Function;\n lang?: string[]; // Defaults to Chinese, there are 3 names in data view, which are ['data view', 'turn off' and 'refresh'].\n textareaColor?: string;\n textareaBorderColor?: string;\n textColor?: string;\n buttonColor?: string;\n buttonTextColor?: string;\n}\n\nexport interface ITdDataZoom {\n show?: boolean;\n title?: ITdZoomTitles;\n icon?: ITdZoomTitles;\n iconStyle?: ITdFeatureIconStyle;\n xAxisIndex?: number | number[] | boolean;\n yAxisIndex?: number | number[] | boolean;\n}\n\nexport interface ITdMagicType {\n show?: boolean;\n type?: string[]; // only expects 'line' | 'bar' | 'stack' | 'tiled';\n title?: ITdAcceptedMagicTypes;\n icon?: ITdAcceptedMagicTypes;\n iconStyle?: ITdFeatureIconStyle;\n option?: {\n line?: object;\n bar?: object;\n stack?: object;\n tiled?: object;\n };\n seriesIndex?: {\n line?: any[];\n bar?: any[];\n stack?: any[];\n tiled?: any[];\n };\n}\n\nexport interface ITdBrush {\n type?: any[];\n icon?: ITdAcceptedBrushTypes;\n title?: ITdAcceptedBrushTypes;\n}\n\nexport interface ITdToolboxFeature {\n saveAsImage?: ITdSaveAsImage;\n restore?: ITdRestore;\n dataView?: ITdDataView;\n dataZoom?: ITdDataZoom;\n magicType?: ITdMagicType;\n brush?: ITdBrush;\n}\n\n@Directive({\n selector: 'ng-template[tdViewDataFormatter]',\n})\nexport class TdChartViewDataFormatterDirective {}\n\n@Component({\n selector: 'td-chart-toolbox',\n templateUrl: './toolbox.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TdChartToolboxComponent implements OnChanges, OnDestroy {\n private _state: any = {};\n\n @Input() config: any = {};\n\n @Input() show = true;\n @Input() trigger?: string;\n @Input() orient?: TdToolboxOrient;\n @Input() itemSize?: number;\n @Input() itemGap?: number;\n @Input() showTitle? = true;\n @Input() label?: ITdLabel;\n @Input() feature?: ITdToolboxFeature;\n @Input() iconStyle?: ITdFeatureIconStyle;\n @Input() zlevel?: number;\n @Input() z?: number;\n @Input() transitionDuration = 0.5;\n @Input() left: string | number = 'auto';\n @Input() top: string | number = 'auto';\n @Input() right: string | number = 'auto';\n @Input() bottom: string | number = 'auto';\n @Input() width: string | number = 'auto';\n @Input() height: string | number = 'auto';\n\n @ContentChild(TdChartViewDataFormatterDirective, { read: TemplateRef })\n formatterTemplate!: TemplateRef<any>;\n @ViewChild('toolboxContent', { static: true })\n fullTemplate!: TemplateRef<any>;\n\n constructor(\n private _changeDetectorRef: ChangeDetectorRef,\n private _elementRef: ElementRef,\n private _optionsService: TdChartOptionsService\n ) {}\n\n ngOnChanges(): void {\n this._setOptions();\n }\n\n ngOnDestroy(): void {\n this._removeOption();\n }\n\n private _setOptions(): void {\n this._checkFormatterTemplate();\n\n const config: any = assignDefined(\n this._state,\n {\n show: this.show,\n name: this.trigger,\n orient: this.orient,\n itemSize: this.itemSize,\n itemGap: this.itemGap,\n showTitle: this.showTitle,\n label: this.label,\n feature: this.feature,\n iconStyle: this.iconStyle,\n zlevel: this.zlevel,\n z: this.z,\n transitionDuration: this.transitionDuration,\n left: this.left,\n top: this.top,\n right: this.right,\n bottom: this.bottom,\n width: this.width,\n height: this.height,\n },\n this.config ? this.config : {}\n );\n // set toolbox configuration in parent chart and render new configurations\n this._optionsService.setOption('toolbox', config);\n }\n\n private _removeOption(): void {\n this._optionsService.clearOption('toolbox');\n }\n\n private _checkFormatterTemplate(): void {\n if (this.formatterTemplate) {\n this.feature = {\n ...this.feature,\n dataView: {\n ...this.feature?.dataView,\n optionToContent: this._optionToContentFormatter(),\n },\n };\n }\n }\n\n private _optionToContentFormatter(): () => string {\n return () => {\n this._changeDetectorRef.markForCheck();\n return (<HTMLElement>this._elementRef.nativeElement).innerHTML;\n };\n }\n}\n","<ng-template\n #toolboxContent\n [ngTemplateOutlet]=\"formatterTemplate\"\n></ng-template>\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport {\n TdChartToolboxComponent,\n TdChartViewDataFormatterDirective,\n} from './toolbox.component';\n\nexport const TOOLBOX_MODULE_COMPONENTS: Type<any>[] = [\n TdChartToolboxComponent,\n TdChartViewDataFormatterDirective,\n];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [TOOLBOX_MODULE_COMPONENTS],\n exports: [TOOLBOX_MODULE_COMPONENTS],\n})\nexport class CovalentToolboxEchartsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":"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"}
|
|
@@ -5,20 +5,18 @@ import { CommonModule } from '@angular/common';
|
|
|
5
5
|
import * as i1 from '@covalent/echarts/base';
|
|
6
6
|
import { assignDefined } from '@covalent/echarts/base';
|
|
7
7
|
|
|
8
|
-
const _c0$1 = ["tooltipContent"];
|
|
9
|
-
function TdChartTooltipComponent_ng_template_0_Template(rf, ctx) { }
|
|
10
8
|
class TdTooltipContext {
|
|
11
9
|
}
|
|
12
10
|
class TdChartTooltipFormatterDirective {
|
|
13
11
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
(
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
12
|
+
TdChartTooltipFormatterDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdChartTooltipFormatterDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
13
|
+
TdChartTooltipFormatterDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.2", type: TdChartTooltipFormatterDirective, selector: "ng-template[tdTooltipFormatter]", ngImport: i0 });
|
|
14
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdChartTooltipFormatterDirective, decorators: [{
|
|
15
|
+
type: Directive,
|
|
16
|
+
args: [{
|
|
17
|
+
selector: 'ng-template[tdTooltipFormatter]',
|
|
18
|
+
}]
|
|
19
|
+
}] });
|
|
22
20
|
class TdChartTooltipComponent {
|
|
23
21
|
constructor(_changeDetectorRef, _elementRef, _optionsService) {
|
|
24
22
|
this._changeDetectorRef = _changeDetectorRef;
|
|
@@ -66,7 +64,11 @@ class TdChartTooltipComponent {
|
|
|
66
64
|
confine: this.confine,
|
|
67
65
|
transitionDuration: this.transitionDuration,
|
|
68
66
|
position: this.position,
|
|
69
|
-
formatter: this.formatter
|
|
67
|
+
formatter: this.formatter
|
|
68
|
+
? this.formatter
|
|
69
|
+
: this.formatterTemplate
|
|
70
|
+
? this._formatter()
|
|
71
|
+
: undefined,
|
|
70
72
|
backgroundColor: this.backgroundColor,
|
|
71
73
|
borderColor: this.borderColor,
|
|
72
74
|
borderWidth: this.borderWidth,
|
|
@@ -96,77 +98,64 @@ class TdChartTooltipComponent {
|
|
|
96
98
|
};
|
|
97
99
|
}
|
|
98
100
|
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
}], textStyle: [{
|
|
157
|
-
type: Input
|
|
158
|
-
}], extraCssText: [{
|
|
159
|
-
type: Input
|
|
160
|
-
}], formatterTemplate: [{
|
|
161
|
-
type: ContentChild,
|
|
162
|
-
args: [TdChartTooltipFormatterDirective, { read: TemplateRef, static: true }]
|
|
163
|
-
}], fullTemplate: [{
|
|
164
|
-
type: ViewChild,
|
|
165
|
-
args: ['tooltipContent', { static: true }]
|
|
166
|
-
}] }); })();
|
|
101
|
+
TdChartTooltipComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdChartTooltipComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i1.TdChartOptionsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
102
|
+
TdChartTooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: TdChartTooltipComponent, selector: "td-chart-tooltip", inputs: { config: "config", show: "show", trigger: "trigger", axisPointer: "axisPointer", showContent: "showContent", alwaysShowContent: "alwaysShowContent", triggerOn: "triggerOn", showDelay: "showDelay", hideDelay: "hideDelay", enterable: "enterable", renderMode: "renderMode", confine: "confine", transitionDuration: "transitionDuration", position: "position", formatter: "formatter", backgroundColor: "backgroundColor", borderColor: "borderColor", borderWidth: "borderWidth", padding: "padding", textStyle: "textStyle", extraCssText: "extraCssText" }, queries: [{ propertyName: "formatterTemplate", first: true, predicate: TdChartTooltipFormatterDirective, descendants: true, read: TemplateRef, static: true }], viewQueries: [{ propertyName: "fullTemplate", first: true, predicate: ["tooltipContent"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<ng-template\n #tooltipContent\n [ngTemplateOutlet]=\"formatterTemplate\"\n [ngTemplateOutletContext]=\"_context\"\n></ng-template>\n", directives: [{ type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
103
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdChartTooltipComponent, decorators: [{
|
|
104
|
+
type: Component,
|
|
105
|
+
args: [{ selector: 'td-chart-tooltip', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template\n #tooltipContent\n [ngTemplateOutlet]=\"formatterTemplate\"\n [ngTemplateOutletContext]=\"_context\"\n></ng-template>\n" }]
|
|
106
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i1.TdChartOptionsService }]; }, propDecorators: { config: [{
|
|
107
|
+
type: Input
|
|
108
|
+
}], show: [{
|
|
109
|
+
type: Input
|
|
110
|
+
}], trigger: [{
|
|
111
|
+
type: Input
|
|
112
|
+
}], axisPointer: [{
|
|
113
|
+
type: Input
|
|
114
|
+
}], showContent: [{
|
|
115
|
+
type: Input
|
|
116
|
+
}], alwaysShowContent: [{
|
|
117
|
+
type: Input
|
|
118
|
+
}], triggerOn: [{
|
|
119
|
+
type: Input
|
|
120
|
+
}], showDelay: [{
|
|
121
|
+
type: Input
|
|
122
|
+
}], hideDelay: [{
|
|
123
|
+
type: Input
|
|
124
|
+
}], enterable: [{
|
|
125
|
+
type: Input
|
|
126
|
+
}], renderMode: [{
|
|
127
|
+
type: Input
|
|
128
|
+
}], confine: [{
|
|
129
|
+
type: Input
|
|
130
|
+
}], transitionDuration: [{
|
|
131
|
+
type: Input
|
|
132
|
+
}], position: [{
|
|
133
|
+
type: Input
|
|
134
|
+
}], formatter: [{
|
|
135
|
+
type: Input
|
|
136
|
+
}], backgroundColor: [{
|
|
137
|
+
type: Input
|
|
138
|
+
}], borderColor: [{
|
|
139
|
+
type: Input
|
|
140
|
+
}], borderWidth: [{
|
|
141
|
+
type: Input
|
|
142
|
+
}], padding: [{
|
|
143
|
+
type: Input
|
|
144
|
+
}], textStyle: [{
|
|
145
|
+
type: Input
|
|
146
|
+
}], extraCssText: [{
|
|
147
|
+
type: Input
|
|
148
|
+
}], formatterTemplate: [{
|
|
149
|
+
type: ContentChild,
|
|
150
|
+
args: [TdChartTooltipFormatterDirective, {
|
|
151
|
+
read: TemplateRef,
|
|
152
|
+
static: true,
|
|
153
|
+
}]
|
|
154
|
+
}], fullTemplate: [{
|
|
155
|
+
type: ViewChild,
|
|
156
|
+
args: ['tooltipContent', { static: true }]
|
|
157
|
+
}] } });
|
|
167
158
|
|
|
168
|
-
const _c0 = ["tooltipContent"];
|
|
169
|
-
function TdSeriesTooltipComponent_ng_template_0_Template(rf, ctx) { }
|
|
170
159
|
class TdSeriesTooltipComponent {
|
|
171
160
|
constructor(_changeDetectorRef, _elementRef, _seriesComponent) {
|
|
172
161
|
this._changeDetectorRef = _changeDetectorRef;
|
|
@@ -197,7 +186,11 @@ class TdSeriesTooltipComponent {
|
|
|
197
186
|
padding: this.padding,
|
|
198
187
|
textStyle: this.textStyle,
|
|
199
188
|
extraCssText: this.extraCssText,
|
|
200
|
-
formatter: this.formatter
|
|
189
|
+
formatter: this.formatter
|
|
190
|
+
? this.formatter
|
|
191
|
+
: this.formatterTemplate
|
|
192
|
+
? this._formatter()
|
|
193
|
+
: undefined,
|
|
201
194
|
}, this.config ? this.config : {});
|
|
202
195
|
// set series tooltip configuration in parent chart and render new configurations
|
|
203
196
|
this._seriesComponent.setStateOption('tooltip', config);
|
|
@@ -225,50 +218,39 @@ class TdSeriesTooltipComponent {
|
|
|
225
218
|
this._seriesComponent.removeStateOption('tooltip');
|
|
226
219
|
}
|
|
227
220
|
}
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
}], textStyle: [{
|
|
262
|
-
type: Input
|
|
263
|
-
}], extraCssText: [{
|
|
264
|
-
type: Input
|
|
265
|
-
}], formatterTemplate: [{
|
|
266
|
-
type: ContentChild,
|
|
267
|
-
args: [TdChartTooltipFormatterDirective, { read: TemplateRef, static: true }]
|
|
268
|
-
}], fullTemplate: [{
|
|
269
|
-
type: ViewChild,
|
|
270
|
-
args: ['tooltipContent', { static: true }]
|
|
271
|
-
}] }); })();
|
|
221
|
+
TdSeriesTooltipComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdSeriesTooltipComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i1.TdSeriesDirective }], target: i0.ɵɵFactoryTarget.Component });
|
|
222
|
+
TdSeriesTooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: TdSeriesTooltipComponent, selector: "td-chart-series-tooltip", inputs: { config: "config", formatter: "formatter", position: "position", backgroundColor: "backgroundColor", borderColor: "borderColor", borderWidth: "borderWidth", padding: "padding", textStyle: "textStyle", extraCssText: "extraCssText" }, queries: [{ propertyName: "formatterTemplate", first: true, predicate: TdChartTooltipFormatterDirective, descendants: true, read: TemplateRef, static: true }], viewQueries: [{ propertyName: "fullTemplate", first: true, predicate: ["tooltipContent"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<ng-template\n #tooltipContent\n [ngTemplateOutlet]=\"formatterTemplate\"\n [ngTemplateOutletContext]=\"_context\"\n></ng-template>\n", directives: [{ type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
223
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TdSeriesTooltipComponent, decorators: [{
|
|
224
|
+
type: Component,
|
|
225
|
+
args: [{ selector: 'td-chart-series-tooltip', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template\n #tooltipContent\n [ngTemplateOutlet]=\"formatterTemplate\"\n [ngTemplateOutletContext]=\"_context\"\n></ng-template>\n" }]
|
|
226
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i1.TdSeriesDirective }]; }, propDecorators: { config: [{
|
|
227
|
+
type: Input
|
|
228
|
+
}], formatter: [{
|
|
229
|
+
type: Input
|
|
230
|
+
}], position: [{
|
|
231
|
+
type: Input
|
|
232
|
+
}], backgroundColor: [{
|
|
233
|
+
type: Input
|
|
234
|
+
}], borderColor: [{
|
|
235
|
+
type: Input
|
|
236
|
+
}], borderWidth: [{
|
|
237
|
+
type: Input
|
|
238
|
+
}], padding: [{
|
|
239
|
+
type: Input
|
|
240
|
+
}], textStyle: [{
|
|
241
|
+
type: Input
|
|
242
|
+
}], extraCssText: [{
|
|
243
|
+
type: Input
|
|
244
|
+
}], formatterTemplate: [{
|
|
245
|
+
type: ContentChild,
|
|
246
|
+
args: [TdChartTooltipFormatterDirective, {
|
|
247
|
+
read: TemplateRef,
|
|
248
|
+
static: true,
|
|
249
|
+
}]
|
|
250
|
+
}], fullTemplate: [{
|
|
251
|
+
type: ViewChild,
|
|
252
|
+
args: ['tooltipContent', { static: true }]
|
|
253
|
+
}] } });
|
|
272
254
|
|
|
273
255
|
const TOOLTIP_MODULE_COMPONENTS = [
|
|
274
256
|
TdChartTooltipComponent,
|
|
@@ -277,22 +259,21 @@ const TOOLTIP_MODULE_COMPONENTS = [
|
|
|
277
259
|
];
|
|
278
260
|
class CovalentTooltipEchartsModule {
|
|
279
261
|
}
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
/** @nocollapse */ /** @nocollapse */ CovalentTooltipEchartsModule.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ imports: [[CommonModule]] });
|
|
283
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CovalentTooltipEchartsModule, [{
|
|
284
|
-
type: NgModule,
|
|
285
|
-
args: [{
|
|
286
|
-
imports: [CommonModule],
|
|
287
|
-
declarations: [TOOLTIP_MODULE_COMPONENTS],
|
|
288
|
-
exports: [TOOLTIP_MODULE_COMPONENTS],
|
|
289
|
-
}]
|
|
290
|
-
}], null, null); })();
|
|
291
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CovalentTooltipEchartsModule, { declarations: [TdChartTooltipComponent,
|
|
262
|
+
CovalentTooltipEchartsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentTooltipEchartsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
263
|
+
CovalentTooltipEchartsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentTooltipEchartsModule, declarations: [TdChartTooltipComponent,
|
|
292
264
|
TdChartTooltipFormatterDirective,
|
|
293
265
|
TdSeriesTooltipComponent], imports: [CommonModule], exports: [TdChartTooltipComponent,
|
|
294
266
|
TdChartTooltipFormatterDirective,
|
|
295
|
-
TdSeriesTooltipComponent] });
|
|
267
|
+
TdSeriesTooltipComponent] });
|
|
268
|
+
CovalentTooltipEchartsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentTooltipEchartsModule, imports: [[CommonModule]] });
|
|
269
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: CovalentTooltipEchartsModule, decorators: [{
|
|
270
|
+
type: NgModule,
|
|
271
|
+
args: [{
|
|
272
|
+
imports: [CommonModule],
|
|
273
|
+
declarations: [TOOLTIP_MODULE_COMPONENTS],
|
|
274
|
+
exports: [TOOLTIP_MODULE_COMPONENTS],
|
|
275
|
+
}]
|
|
276
|
+
}] });
|
|
296
277
|
|
|
297
278
|
/**
|
|
298
279
|
* Generated bundle index. Do not edit.
|