@covalent/echarts 8.23.2 → 9.0.0-beta.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.
- package/esm2022/bar/bar.component.mjs +4 -4
- package/esm2022/bar/bar.module.mjs +5 -5
- package/esm2022/base/axis/axis.component.mjs +4 -4
- package/esm2022/base/axis/x-axis.component.mjs +4 -4
- package/esm2022/base/axis/y-axis.component.mjs +4 -4
- package/esm2022/base/base.module.mjs +5 -5
- package/esm2022/base/chart-options.service.mjs +4 -4
- package/esm2022/base/chart.component.mjs +4 -4
- package/esm2022/base/dataset/dataset.component.mjs +4 -4
- package/esm2022/base/series/series.component.mjs +4 -4
- package/esm2022/clustering/clustering.component.mjs +4 -4
- package/esm2022/clustering/clustering.module.mjs +5 -5
- package/esm2022/graph/graph.component.mjs +4 -4
- package/esm2022/graph/graph.module.mjs +5 -5
- package/esm2022/histogram/histogram.component.mjs +4 -4
- package/esm2022/histogram/histogram.module.mjs +5 -5
- package/esm2022/line/line.component.mjs +4 -4
- package/esm2022/line/line.module.mjs +5 -5
- package/esm2022/map/map.component.mjs +4 -4
- package/esm2022/map/map.module.mjs +5 -5
- package/esm2022/pie/pie.component.mjs +4 -4
- package/esm2022/pie/pie.module.mjs +5 -5
- package/esm2022/regression/regression.component.mjs +4 -4
- package/esm2022/regression/regression.module.mjs +5 -5
- package/esm2022/sankey/sankey.component.mjs +4 -4
- package/esm2022/sankey/sankey.module.mjs +5 -5
- package/esm2022/scatter/scatter.component.mjs +4 -4
- package/esm2022/scatter/scatter.module.mjs +5 -5
- package/esm2022/toolbox/toolbox.component.mjs +7 -7
- package/esm2022/toolbox/toolbox.module.mjs +5 -5
- package/esm2022/tooltip/series-tooltip.component.mjs +4 -4
- package/esm2022/tooltip/tooltip.component.mjs +7 -7
- package/esm2022/tooltip/tooltip.module.mjs +5 -5
- package/esm2022/tree/tree.component.mjs +4 -4
- package/esm2022/tree/tree.module.mjs +5 -5
- package/esm2022/treemap/treemap.component.mjs +4 -4
- package/esm2022/treemap/treemap.module.mjs +5 -5
- package/esm2022/wordcloud/wordcloud.component.mjs +4 -4
- package/esm2022/wordcloud/wordcloud.module.mjs +5 -5
- package/fesm2022/covalent-echarts-bar.mjs +8 -8
- package/fesm2022/covalent-echarts-bar.mjs.map +1 -1
- package/fesm2022/covalent-echarts-base.mjs +26 -26
- package/fesm2022/covalent-echarts-base.mjs.map +1 -1
- package/fesm2022/covalent-echarts-clustering.mjs +8 -8
- package/fesm2022/covalent-echarts-clustering.mjs.map +1 -1
- package/fesm2022/covalent-echarts-graph.mjs +8 -8
- package/fesm2022/covalent-echarts-graph.mjs.map +1 -1
- package/fesm2022/covalent-echarts-histogram.mjs +8 -8
- package/fesm2022/covalent-echarts-histogram.mjs.map +1 -1
- package/fesm2022/covalent-echarts-line.mjs +8 -8
- package/fesm2022/covalent-echarts-line.mjs.map +1 -1
- package/fesm2022/covalent-echarts-map.mjs +8 -8
- package/fesm2022/covalent-echarts-map.mjs.map +1 -1
- package/fesm2022/covalent-echarts-pie.mjs +8 -8
- package/fesm2022/covalent-echarts-pie.mjs.map +1 -1
- package/fesm2022/covalent-echarts-regression.mjs +8 -8
- package/fesm2022/covalent-echarts-regression.mjs.map +1 -1
- package/fesm2022/covalent-echarts-sankey.mjs +8 -8
- package/fesm2022/covalent-echarts-sankey.mjs.map +1 -1
- package/fesm2022/covalent-echarts-scatter.mjs +8 -8
- package/fesm2022/covalent-echarts-scatter.mjs.map +1 -1
- package/fesm2022/covalent-echarts-toolbox.mjs +11 -11
- package/fesm2022/covalent-echarts-toolbox.mjs.map +1 -1
- package/fesm2022/covalent-echarts-tooltip.mjs +14 -14
- package/fesm2022/covalent-echarts-tooltip.mjs.map +1 -1
- package/fesm2022/covalent-echarts-tree.mjs +8 -8
- package/fesm2022/covalent-echarts-tree.mjs.map +1 -1
- package/fesm2022/covalent-echarts-treemap.mjs +8 -8
- package/fesm2022/covalent-echarts-treemap.mjs.map +1 -1
- package/fesm2022/covalent-echarts-wordcloud.mjs +8 -8
- package/fesm2022/covalent-echarts-wordcloud.mjs.map +1 -1
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { forwardRef,
|
|
2
|
+
import { forwardRef, Input, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
3
3
|
import { CommonModule } from '@angular/common';
|
|
4
4
|
import * as i1 from '@covalent/echarts/base';
|
|
5
5
|
import { TdSeriesDirective } from '@covalent/echarts/base';
|
|
@@ -62,15 +62,15 @@ class TdChartSeriesPieComponent extends TdSeriesDirective {
|
|
|
62
62
|
radius: this.radius,
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
66
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
65
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdChartSeriesPieComponent, deps: [{ token: i1.TdChartOptionsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
66
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.11", type: TdChartSeriesPieComponent, selector: "td-chart-series[td-pie]", inputs: { config: "config", id: "id", name: "name", color: "color", data: "data", animation: "animation", animationThreshold: "animationThreshold", animationDuration: "animationDuration", animationEasing: "animationEasing", animationDelay: "animationDelay", animationDurationUpdate: "animationDurationUpdate", animationEasingUpdate: "animationEasingUpdate", animationDelayUpdate: "animationDelayUpdate", tooltip: "tooltip", legendHoverLink: "legendHoverLink", hoverAnimation: "hoverAnimation", hoverOffset: "hoverOffset", selectedMode: "selectedMode", selectedOffset: "selectedOffset", clockwise: "clockwise", startAngle: "startAngle", minAngle: "minAngle", minShowLabelAngle: "minShowLabelAngle", roseType: "roseType", avoidLabelOverlap: "avoidLabelOverlap", stillShowZeroSum: "stillShowZeroSum", cursor: "cursor", labelLine: "labelLine", label: "label", itemStyle: "itemStyle", emphasis: "emphasis", seriesLayoutBy: "seriesLayoutBy", datasetIndex: "datasetIndex", markPoint: "markPoint", markLine: "markLine", markArea: "markArea", zlevel: "zlevel", z: "z", center: "center", radius: "radius" }, providers: [
|
|
67
67
|
{
|
|
68
68
|
provide: TdSeriesDirective,
|
|
69
69
|
useExisting: forwardRef(() => TdChartSeriesPieComponent),
|
|
70
70
|
},
|
|
71
71
|
], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
72
72
|
}
|
|
73
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
73
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdChartSeriesPieComponent, decorators: [{
|
|
74
74
|
type: Component,
|
|
75
75
|
args: [{
|
|
76
76
|
selector: 'td-chart-series[td-pie]',
|
|
@@ -155,11 +155,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImpor
|
|
|
155
155
|
|
|
156
156
|
const PIE_MODULE_COMPONENTS = [TdChartSeriesPieComponent];
|
|
157
157
|
class CovalentPieEchartsModule {
|
|
158
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
159
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
160
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
158
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CovalentPieEchartsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
159
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.11", ngImport: i0, type: CovalentPieEchartsModule, declarations: [TdChartSeriesPieComponent], imports: [CommonModule], exports: [TdChartSeriesPieComponent] });
|
|
160
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CovalentPieEchartsModule, imports: [CommonModule] });
|
|
161
161
|
}
|
|
162
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
162
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CovalentPieEchartsModule, decorators: [{
|
|
163
163
|
type: NgModule,
|
|
164
164
|
args: [{
|
|
165
165
|
imports: [CommonModule],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"covalent-echarts-pie.mjs","sources":["../../../../libs/angular-echarts/pie/src/pie.component.ts","../../../../libs/angular-echarts/pie/src/pie.module.ts","../../../../libs/angular-echarts/pie/src/covalent-echarts-pie.ts"],"sourcesContent":["import {\n Component,\n Input,\n ChangeDetectionStrategy,\n forwardRef,\n} from '@angular/core';\n\nimport {\n TdChartOptionsService,\n ITdItemStyle,\n ITdEmphasis,\n TdSeriesLayoutBy,\n ITdMarkPoint,\n ITdMarkLine,\n ITdMarkArea,\n ITdSeries,\n ITdLabel,\n ITdLabelLine,\n TdSeriesDirective,\n} from '@covalent/echarts/base';\n\nexport interface ITdPieSeries extends ITdSeries {\n legendHoverLink?: boolean;\n hoverAnimation?: boolean;\n hoverOffset?: number;\n selectedMode?: boolean | string;\n selectedOffset?: number;\n clockwise?: boolean;\n startAngle?: number;\n minAngle?: number;\n minShowLabelAngle?: number;\n roseType?: boolean | string;\n avoidLabelOverlap?: boolean;\n stillShowZeroSum?: boolean;\n cursor?: string;\n labelLine?: ITdLabelLine;\n Label?: ITdLabel;\n itemStyle?: ITdItemStyle;\n emphasis?: ITdEmphasis;\n seriesLayoutBy?: TdSeriesLayoutBy;\n datasetIndex?: number;\n data?: any[];\n markPoint?: ITdMarkPoint;\n markLine?: ITdMarkLine;\n markArea?: ITdMarkArea;\n Zlevel?: 0;\n z?: number;\n center?: object;\n radius?: number | string | any[];\n silent?: boolean;\n}\n\n@Component({\n selector: 'td-chart-series[td-pie]',\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush,\n inputs: [\n 'config',\n 'id',\n 'name',\n 'color',\n 'data',\n\n 'animation',\n 'animationThreshold',\n 'animationDuration',\n 'animationEasing',\n 'animationDelay',\n 'animationDurationUpdate',\n 'animationEasingUpdate',\n 'animationDelayUpdate',\n 'tooltip',\n ],\n providers: [\n {\n provide: TdSeriesDirective,\n useExisting: forwardRef(() => TdChartSeriesPieComponent),\n },\n ],\n})\nexport class TdChartSeriesPieComponent\n extends TdSeriesDirective\n implements ITdPieSeries\n{\n @Input() legendHoverLink?: boolean;\n @Input() hoverAnimation?: boolean;\n @Input() hoverOffset?: number;\n @Input() selectedMode?: boolean | string;\n @Input() selectedOffset?: number;\n @Input() clockwise?: boolean;\n @Input() startAngle?: number;\n @Input() minAngle?: number;\n @Input() minShowLabelAngle?: number;\n @Input() roseType?: boolean | string;\n @Input() avoidLabelOverlap?: boolean;\n @Input() stillShowZeroSum?: boolean;\n @Input() cursor?: string;\n @Input() labelLine?: object;\n @Input() label?: any;\n @Input() itemStyle?: ITdItemStyle;\n @Input() emphasis?: ITdEmphasis;\n @Input() seriesLayoutBy?: TdSeriesLayoutBy;\n @Input() datasetIndex?: number;\n @Input() markPoint?: ITdMarkPoint;\n @Input() markLine?: ITdMarkLine;\n @Input() markArea?: ITdMarkArea;\n @Input() zlevel?: number;\n @Input() z?: number;\n @Input() center?: object;\n @Input() radius?: number | string | any[];\n\n constructor(_optionsService: TdChartOptionsService) {\n super('pie', _optionsService);\n }\n\n getConfig(): any {\n return {\n legendHoverLink: this.legendHoverLink,\n label: this.label,\n itemStyle: this.itemStyle,\n emphasis: this.emphasis,\n selectedMode: this.selectedMode,\n selectedOffset: this.selectedOffset,\n clockwise: this.clockwise,\n startAngle: this.startAngle,\n minAngle: this.minAngle,\n minShowLabelAngle: this.minShowLabelAngle,\n roseType: this.roseType,\n avoidLabelOverlap: this.avoidLabelOverlap,\n stillShowZeroSum: this.stillShowZeroSum,\n cursor: this.cursor,\n labelLine: this.labelLine,\n seriesLayoutBy: this.seriesLayoutBy,\n datasetIndex: this.datasetIndex,\n markPoint: this.markPoint,\n markLine: this.markLine,\n markArea: this.markArea,\n zlevel: this.zlevel,\n z: this.z,\n center: this.center,\n radius: this.radius,\n };\n }\n}\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { TdChartSeriesPieComponent } from './pie.component';\n\nexport const PIE_MODULE_COMPONENTS: Type<any>[] = [TdChartSeriesPieComponent];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [PIE_MODULE_COMPONENTS],\n exports: [PIE_MODULE_COMPONENTS],\n})\nexport class CovalentPieEchartsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;AAgFM,MAAO,yBACX,SAAQ,iBAAiB,CAAA;AAGhB,IAAA,eAAe
|
|
1
|
+
{"version":3,"file":"covalent-echarts-pie.mjs","sources":["../../../../libs/angular-echarts/pie/src/pie.component.ts","../../../../libs/angular-echarts/pie/src/pie.module.ts","../../../../libs/angular-echarts/pie/src/covalent-echarts-pie.ts"],"sourcesContent":["import {\n Component,\n Input,\n ChangeDetectionStrategy,\n forwardRef,\n} from '@angular/core';\n\nimport {\n TdChartOptionsService,\n ITdItemStyle,\n ITdEmphasis,\n TdSeriesLayoutBy,\n ITdMarkPoint,\n ITdMarkLine,\n ITdMarkArea,\n ITdSeries,\n ITdLabel,\n ITdLabelLine,\n TdSeriesDirective,\n} from '@covalent/echarts/base';\n\nexport interface ITdPieSeries extends ITdSeries {\n legendHoverLink?: boolean;\n hoverAnimation?: boolean;\n hoverOffset?: number;\n selectedMode?: boolean | string;\n selectedOffset?: number;\n clockwise?: boolean;\n startAngle?: number;\n minAngle?: number;\n minShowLabelAngle?: number;\n roseType?: boolean | string;\n avoidLabelOverlap?: boolean;\n stillShowZeroSum?: boolean;\n cursor?: string;\n labelLine?: ITdLabelLine;\n Label?: ITdLabel;\n itemStyle?: ITdItemStyle;\n emphasis?: ITdEmphasis;\n seriesLayoutBy?: TdSeriesLayoutBy;\n datasetIndex?: number;\n data?: any[];\n markPoint?: ITdMarkPoint;\n markLine?: ITdMarkLine;\n markArea?: ITdMarkArea;\n Zlevel?: 0;\n z?: number;\n center?: object;\n radius?: number | string | any[];\n silent?: boolean;\n}\n\n@Component({\n selector: 'td-chart-series[td-pie]',\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush,\n inputs: [\n 'config',\n 'id',\n 'name',\n 'color',\n 'data',\n\n 'animation',\n 'animationThreshold',\n 'animationDuration',\n 'animationEasing',\n 'animationDelay',\n 'animationDurationUpdate',\n 'animationEasingUpdate',\n 'animationDelayUpdate',\n 'tooltip',\n ],\n providers: [\n {\n provide: TdSeriesDirective,\n useExisting: forwardRef(() => TdChartSeriesPieComponent),\n },\n ],\n})\nexport class TdChartSeriesPieComponent\n extends TdSeriesDirective\n implements ITdPieSeries\n{\n @Input() legendHoverLink?: boolean;\n @Input() hoverAnimation?: boolean;\n @Input() hoverOffset?: number;\n @Input() selectedMode?: boolean | string;\n @Input() selectedOffset?: number;\n @Input() clockwise?: boolean;\n @Input() startAngle?: number;\n @Input() minAngle?: number;\n @Input() minShowLabelAngle?: number;\n @Input() roseType?: boolean | string;\n @Input() avoidLabelOverlap?: boolean;\n @Input() stillShowZeroSum?: boolean;\n @Input() cursor?: string;\n @Input() labelLine?: object;\n @Input() label?: any;\n @Input() itemStyle?: ITdItemStyle;\n @Input() emphasis?: ITdEmphasis;\n @Input() seriesLayoutBy?: TdSeriesLayoutBy;\n @Input() datasetIndex?: number;\n @Input() markPoint?: ITdMarkPoint;\n @Input() markLine?: ITdMarkLine;\n @Input() markArea?: ITdMarkArea;\n @Input() zlevel?: number;\n @Input() z?: number;\n @Input() center?: object;\n @Input() radius?: number | string | any[];\n\n constructor(_optionsService: TdChartOptionsService) {\n super('pie', _optionsService);\n }\n\n getConfig(): any {\n return {\n legendHoverLink: this.legendHoverLink,\n label: this.label,\n itemStyle: this.itemStyle,\n emphasis: this.emphasis,\n selectedMode: this.selectedMode,\n selectedOffset: this.selectedOffset,\n clockwise: this.clockwise,\n startAngle: this.startAngle,\n minAngle: this.minAngle,\n minShowLabelAngle: this.minShowLabelAngle,\n roseType: this.roseType,\n avoidLabelOverlap: this.avoidLabelOverlap,\n stillShowZeroSum: this.stillShowZeroSum,\n cursor: this.cursor,\n labelLine: this.labelLine,\n seriesLayoutBy: this.seriesLayoutBy,\n datasetIndex: this.datasetIndex,\n markPoint: this.markPoint,\n markLine: this.markLine,\n markArea: this.markArea,\n zlevel: this.zlevel,\n z: this.z,\n center: this.center,\n radius: this.radius,\n };\n }\n}\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { TdChartSeriesPieComponent } from './pie.component';\n\nexport const PIE_MODULE_COMPONENTS: Type<any>[] = [TdChartSeriesPieComponent];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [PIE_MODULE_COMPONENTS],\n exports: [PIE_MODULE_COMPONENTS],\n})\nexport class CovalentPieEchartsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;AAgFM,MAAO,yBACX,SAAQ,iBAAiB,CAAA;AAGhB,IAAA,eAAe;AACf,IAAA,cAAc;AACd,IAAA,WAAW;AACX,IAAA,YAAY;AACZ,IAAA,cAAc;AACd,IAAA,SAAS;AACT,IAAA,UAAU;AACV,IAAA,QAAQ;AACR,IAAA,iBAAiB;AACjB,IAAA,QAAQ;AACR,IAAA,iBAAiB;AACjB,IAAA,gBAAgB;AAChB,IAAA,MAAM;AACN,IAAA,SAAS;AACT,IAAA,KAAK;AACL,IAAA,SAAS;AACT,IAAA,QAAQ;AACR,IAAA,cAAc;AACd,IAAA,YAAY;AACZ,IAAA,SAAS;A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,CAAC,YAAY,CAAC;oBACvB,YAAY,EAAE,CAAC,qBAAqB,CAAC;oBACrC,OAAO,EAAE,CAAC,qBAAqB,CAAC;AACjC,iBAAA;;;ACXD;;AAEG;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { forwardRef,
|
|
2
|
+
import { forwardRef, Input, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
3
3
|
import { CommonModule } from '@angular/common';
|
|
4
4
|
import * as i1 from '@covalent/echarts/base';
|
|
5
5
|
import { assignDefined, TdSeriesDirective } from '@covalent/echarts/base';
|
|
@@ -95,15 +95,15 @@ class TdChartSeriesRegressionComponent extends TdChartSeriesScatterComponent {
|
|
|
95
95
|
this.optionsService.setOption('series', series);
|
|
96
96
|
this.setOptions();
|
|
97
97
|
}
|
|
98
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
99
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
98
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdChartSeriesRegressionComponent, deps: [{ token: i1.TdChartOptionsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
99
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.11", type: TdChartSeriesRegressionComponent, selector: "td-chart-series[td-regression]", inputs: { config: "config", id: "id", name: "name", color: "color", data: "data", animation: "animation", animationThreshold: "animationThreshold", animationDuration: "animationDuration", animationEasing: "animationEasing", animationDelay: "animationDelay", animationDurationUpdate: "animationDurationUpdate", animationEasingUpdate: "animationEasingUpdate", animationDelayUpdate: "animationDelayUpdate", tooltip: "tooltip", regressionType: "regressionType", polinomialOrder: "polinomialOrder" }, providers: [
|
|
100
100
|
{
|
|
101
101
|
provide: TdSeriesDirective,
|
|
102
102
|
useExisting: forwardRef(() => TdChartSeriesRegressionComponent),
|
|
103
103
|
},
|
|
104
104
|
], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
105
105
|
}
|
|
106
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
106
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdChartSeriesRegressionComponent, decorators: [{
|
|
107
107
|
type: Component,
|
|
108
108
|
args: [{
|
|
109
109
|
selector: 'td-chart-series[td-regression]',
|
|
@@ -144,11 +144,11 @@ const REGRESSION_MODULE_COMPONENTS = [
|
|
|
144
144
|
TdChartSeriesRegressionComponent,
|
|
145
145
|
];
|
|
146
146
|
class CovalentRegressionEchartsModule {
|
|
147
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
148
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
149
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
147
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CovalentRegressionEchartsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
148
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.11", ngImport: i0, type: CovalentRegressionEchartsModule, declarations: [TdChartSeriesRegressionComponent], imports: [CommonModule], exports: [TdChartSeriesRegressionComponent] });
|
|
149
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CovalentRegressionEchartsModule, imports: [CommonModule] });
|
|
150
150
|
}
|
|
151
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
151
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CovalentRegressionEchartsModule, decorators: [{
|
|
152
152
|
type: NgModule,
|
|
153
153
|
args: [{
|
|
154
154
|
imports: [CommonModule],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"covalent-echarts-regression.mjs","sources":["../../../../libs/angular-echarts/regression/src/regression.component.ts","../../../../libs/angular-echarts/regression/src/regression.module.ts","../../../../libs/angular-echarts/regression/src/covalent-echarts-regression.ts"],"sourcesContent":["import {\n Component,\n Input,\n ChangeDetectionStrategy,\n forwardRef,\n OnChanges,\n} from '@angular/core';\n\nimport {\n assignDefined,\n TdChartOptionsService,\n TdSeriesDirective,\n} from '@covalent/echarts/base';\nimport {\n ITdScatterSeries,\n TdChartSeriesScatterComponent,\n} from '@covalent/echarts/scatter';\nimport * as ecStat from 'echarts-stat';\n\nexport type TdRegressionType =\n | 'linear'\n | 'exponential'\n | 'logarithmic'\n | 'polynomial';\n\nexport interface ITdRegressionSeries extends ITdScatterSeries {\n data?: number[][];\n regressionType?: TdRegressionType;\n polinomialOrder?: number;\n}\n\n@Component({\n selector: 'td-chart-series[td-regression]',\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush,\n inputs: [\n 'config',\n 'id',\n 'name',\n 'color',\n 'data',\n\n 'animation',\n 'animationThreshold',\n 'animationDuration',\n 'animationEasing',\n 'animationDelay',\n 'animationDurationUpdate',\n 'animationEasingUpdate',\n 'animationDelayUpdate',\n 'tooltip',\n ],\n providers: [\n {\n provide: TdSeriesDirective,\n useExisting: forwardRef(() => TdChartSeriesRegressionComponent),\n },\n ],\n})\nexport class TdChartSeriesRegressionComponent\n extends TdChartSeriesScatterComponent\n implements ITdRegressionSeries, OnChanges\n{\n @Input() declare data?: number[][];\n @Input() regressionType?: TdRegressionType;\n @Input() polinomialOrder?: number;\n\n constructor(_optionsService: TdChartOptionsService) {\n super(_optionsService);\n }\n\n override ngOnChanges(): void {\n this.render();\n }\n\n override getConfig(): any {\n return {\n regressionType: this.regressionType,\n polinomialOrder: this.polinomialOrder,\n coordinateSystem: this.coordinateSystem,\n xAxisIndex: this.xAxisIndex,\n yAxisIndex: this.yAxisIndex,\n polarIndex: this.polarIndex,\n geoIndex: this.geoIndex,\n calendarIndex: this.calendarIndex,\n hoverAnimation: this.hoverAnimation,\n legendHoverLink: this.legendHoverLink,\n symbol: this.symbol,\n symbolSize: this.symbolSize,\n symbolRotate: this.symbolRotate,\n symbolKeepAspect: this.symbolKeepAspect,\n symbolOffset: this.symbolOffset,\n large: this.large,\n largeThreshold: this.largeThreshold,\n cursor: this.cursor,\n label: this.label,\n itemStyle: this.itemStyle,\n emphasis: this.emphasis,\n progressive: this.progressive,\n progressiveThreshold: this.progressiveThreshold,\n dimensions: this.dimensions,\n encode: this.encode,\n seriesLayoutBy: this.seriesLayoutBy,\n datasetIndex: this.datasetIndex,\n markPoint: this.markPoint,\n markLine: this.markLine,\n markArea: this.markArea,\n zlevel: this.zlevel,\n z: this.z,\n silent: this.silent,\n };\n }\n\n private setOptions(): void {\n const config: any = assignDefined(\n this._state,\n {\n id: this.id,\n type: this.type,\n name: this.name,\n color: this.color,\n data: this.data,\n animation: this.animation,\n animationThreshold: this.animationThreshold,\n animationDuration: this.animationDuration,\n animationEasing: this.animationEasing,\n animationDelay: this.animationDelay,\n animationDurationUpdate: this.animationDurationUpdate,\n animationEasingUpdate: this.animationEasingUpdate,\n animationDelayUpdate: this.animationDelayUpdate,\n tooltip: this.tooltip,\n },\n this.getConfig(),\n this._options,\n this.config ? this.config : {}\n );\n this.optionsService.setArrayOption('scatter', config);\n }\n\n private render() {\n const output: any = this.data;\n const result = ecStat.regression(\n this.regressionType ?? 'linear',\n output,\n this.polinomialOrder ?? 2\n );\n let series = this.optionsService.getOption('series');\n\n if (series) {\n for (const item in series) {\n if (series[item].type === 'line') {\n delete series[item];\n }\n }\n } else {\n series = [];\n }\n\n series.push({\n type: 'line',\n data: result.points,\n tooltip: {},\n showSymbol: false,\n });\n\n this.optionsService.setOption('series', series);\n this.setOptions();\n }\n}\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { TdChartSeriesRegressionComponent } from './regression.component';\n\nexport const REGRESSION_MODULE_COMPONENTS: Type<any>[] = [\n TdChartSeriesRegressionComponent,\n];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [REGRESSION_MODULE_COMPONENTS],\n exports: [REGRESSION_MODULE_COMPONENTS],\n})\nexport class CovalentRegressionEchartsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;AA2DM,MAAO,gCACX,SAAQ,6BAA6B,CAAA;AAGpB,IAAA,IAAI,CAAc;AAC1B,IAAA,cAAc,CAAoB;AAClC,IAAA,eAAe,CAAU;AAElC,IAAA,WAAA,CAAY,eAAsC,EAAA;QAChD,KAAK,CAAC,eAAe,CAAC,CAAC;KACxB;IAEQ,WAAW,GAAA;QAClB,IAAI,CAAC,MAAM,EAAE,CAAC;KACf;IAEQ,SAAS,GAAA;QAChB,OAAO;YACL,cAAc,EAAE,IAAI,CAAC,cAAc;YACnC,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;YACvC,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,aAAa,EAAE,IAAI,CAAC,aAAa;YACjC,cAAc,EAAE,IAAI,CAAC,cAAc;YACnC,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;YACvC,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,KAAK,EAAE,IAAI,CAAC,KAAK;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iBAAA,CAAA;;;ACbD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"covalent-echarts-regression.mjs","sources":["../../../../libs/angular-echarts/regression/src/regression.component.ts","../../../../libs/angular-echarts/regression/src/regression.module.ts","../../../../libs/angular-echarts/regression/src/covalent-echarts-regression.ts"],"sourcesContent":["import {\n Component,\n Input,\n ChangeDetectionStrategy,\n forwardRef,\n OnChanges,\n} from '@angular/core';\n\nimport {\n assignDefined,\n TdChartOptionsService,\n TdSeriesDirective,\n} from '@covalent/echarts/base';\nimport {\n ITdScatterSeries,\n TdChartSeriesScatterComponent,\n} from '@covalent/echarts/scatter';\nimport * as ecStat from 'echarts-stat';\n\nexport type TdRegressionType =\n | 'linear'\n | 'exponential'\n | 'logarithmic'\n | 'polynomial';\n\nexport interface ITdRegressionSeries extends ITdScatterSeries {\n data?: number[][];\n regressionType?: TdRegressionType;\n polinomialOrder?: number;\n}\n\n@Component({\n selector: 'td-chart-series[td-regression]',\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush,\n inputs: [\n 'config',\n 'id',\n 'name',\n 'color',\n 'data',\n\n 'animation',\n 'animationThreshold',\n 'animationDuration',\n 'animationEasing',\n 'animationDelay',\n 'animationDurationUpdate',\n 'animationEasingUpdate',\n 'animationDelayUpdate',\n 'tooltip',\n ],\n providers: [\n {\n provide: TdSeriesDirective,\n useExisting: forwardRef(() => TdChartSeriesRegressionComponent),\n },\n ],\n})\nexport class TdChartSeriesRegressionComponent\n extends TdChartSeriesScatterComponent\n implements ITdRegressionSeries, OnChanges\n{\n @Input() declare data?: number[][];\n @Input() regressionType?: TdRegressionType;\n @Input() polinomialOrder?: number;\n\n constructor(_optionsService: TdChartOptionsService) {\n super(_optionsService);\n }\n\n override ngOnChanges(): void {\n this.render();\n }\n\n override getConfig(): any {\n return {\n regressionType: this.regressionType,\n polinomialOrder: this.polinomialOrder,\n coordinateSystem: this.coordinateSystem,\n xAxisIndex: this.xAxisIndex,\n yAxisIndex: this.yAxisIndex,\n polarIndex: this.polarIndex,\n geoIndex: this.geoIndex,\n calendarIndex: this.calendarIndex,\n hoverAnimation: this.hoverAnimation,\n legendHoverLink: this.legendHoverLink,\n symbol: this.symbol,\n symbolSize: this.symbolSize,\n symbolRotate: this.symbolRotate,\n symbolKeepAspect: this.symbolKeepAspect,\n symbolOffset: this.symbolOffset,\n large: this.large,\n largeThreshold: this.largeThreshold,\n cursor: this.cursor,\n label: this.label,\n itemStyle: this.itemStyle,\n emphasis: this.emphasis,\n progressive: this.progressive,\n progressiveThreshold: this.progressiveThreshold,\n dimensions: this.dimensions,\n encode: this.encode,\n seriesLayoutBy: this.seriesLayoutBy,\n datasetIndex: this.datasetIndex,\n markPoint: this.markPoint,\n markLine: this.markLine,\n markArea: this.markArea,\n zlevel: this.zlevel,\n z: this.z,\n silent: this.silent,\n };\n }\n\n private setOptions(): void {\n const config: any = assignDefined(\n this._state,\n {\n id: this.id,\n type: this.type,\n name: this.name,\n color: this.color,\n data: this.data,\n animation: this.animation,\n animationThreshold: this.animationThreshold,\n animationDuration: this.animationDuration,\n animationEasing: this.animationEasing,\n animationDelay: this.animationDelay,\n animationDurationUpdate: this.animationDurationUpdate,\n animationEasingUpdate: this.animationEasingUpdate,\n animationDelayUpdate: this.animationDelayUpdate,\n tooltip: this.tooltip,\n },\n this.getConfig(),\n this._options,\n this.config ? this.config : {}\n );\n this.optionsService.setArrayOption('scatter', config);\n }\n\n private render() {\n const output: any = this.data;\n const result = ecStat.regression(\n this.regressionType ?? 'linear',\n output,\n this.polinomialOrder ?? 2\n );\n let series = this.optionsService.getOption('series');\n\n if (series) {\n for (const item in series) {\n if (series[item].type === 'line') {\n delete series[item];\n }\n }\n } else {\n series = [];\n }\n\n series.push({\n type: 'line',\n data: result.points,\n tooltip: {},\n showSymbol: false,\n });\n\n this.optionsService.setOption('series', series);\n this.setOptions();\n }\n}\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { TdChartSeriesRegressionComponent } from './regression.component';\n\nexport const REGRESSION_MODULE_COMPONENTS: Type<any>[] = [\n TdChartSeriesRegressionComponent,\n];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [REGRESSION_MODULE_COMPONENTS],\n exports: [REGRESSION_MODULE_COMPONENTS],\n})\nexport class CovalentRegressionEchartsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;AA2DM,MAAO,gCACX,SAAQ,6BAA6B,CAAA;AAGpB,IAAA,IAAI;AACZ,IAAA,cAAc;AACd,IAAA,eAAe;AAExB,IAAA,WAAA,CAAY,eAAsC,EAAA;QAChD,KAAK,CAAC,eAAe,CAAC;;IAGf,WAAW,GAAA;QAClB,IAAI,CAAC,MAAM,EAAE;;IAGN,SAAS,GAAA;QAChB,OAAO;YACL,cAAc,EAAE,IAAI,CAAC,cAAc;YACnC,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;YACvC,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,aAAa,EAAE,IAAI,CAAC,aAAa;YACjC,cAAc,EAAE,IAAI,CAAC,cAAc;YACnC,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;YACvC,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,cAAc,EAAE,IAAI,CAAC,cAAc;YACnC,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,SAAS,EAAE,I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E,yBAAA;AACF,qBAAA;AACF,iBAAA;0FAKkB,IAAI,EAAA,CAAA;sBAApB;gBACQ,cAAc,EAAA,CAAA;sBAAtB;gBACQ,eAAe,EAAA,CAAA;sBAAvB;;;AC5DU,MAAA,4BAA4B,GAAgB;IACvD,gCAAgC;;MAQrB,+BAA+B,CAAA;wGAA/B,+BAA+B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;AAA/B,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,+BAA+B,EAR1C,YAAA,EAAA,CAAA,gCAAgC,CAItB,EAAA,OAAA,EAAA,CAAA,YAAY,aAJtB,gCAAgC,CAAA,EAAA,CAAA;AAQrB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,+BAA+B,YAJhC,YAAY,CAAA,EAAA,CAAA;;4FAIX,+BAA+B,EAAA,UAAA,EAAA,CAAA;kBAL3C,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,YAAY,EAAE,CAAC,4BAA4B,CAAC;oBAC5C,OAAO,EAAE,CAAC,4BAA4B,CAAC;AACxC,iBAAA;;;ACbD;;AAEG;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { forwardRef,
|
|
2
|
+
import { forwardRef, Input, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
3
3
|
import { CommonModule } from '@angular/common';
|
|
4
4
|
import * as i1 from '@covalent/echarts/base';
|
|
5
5
|
import { TdSeriesDirective } from '@covalent/echarts/base';
|
|
@@ -56,15 +56,15 @@ class TdChartSeriesSankeyComponent extends TdSeriesDirective {
|
|
|
56
56
|
silent: this.silent,
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
60
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
59
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdChartSeriesSankeyComponent, deps: [{ token: i1.TdChartOptionsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
60
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.11", type: TdChartSeriesSankeyComponent, selector: "td-chart-series[td-sankey]", 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", nodeWidth: "nodeWidth", nodeGap: "nodeGap", layoutIterations: "layoutIterations", orient: "orient", draggable: "draggable", focusNodeAdjacency: "focusNodeAdjacency", label: "label", itemStyle: "itemStyle", lineStyle: "lineStyle", emphasis: "emphasis", nodes: "nodes", links: "links", edges: "edges", silent: "silent" }, providers: [
|
|
61
61
|
{
|
|
62
62
|
provide: TdSeriesDirective,
|
|
63
63
|
useExisting: forwardRef(() => TdChartSeriesSankeyComponent),
|
|
64
64
|
},
|
|
65
65
|
], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
66
66
|
}
|
|
67
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
67
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdChartSeriesSankeyComponent, decorators: [{
|
|
68
68
|
type: Component,
|
|
69
69
|
args: [{
|
|
70
70
|
selector: 'td-chart-series[td-sankey]',
|
|
@@ -143,11 +143,11 @@ const SANKEY_MODULE_COMPONENTS = [
|
|
|
143
143
|
TdChartSeriesSankeyComponent,
|
|
144
144
|
];
|
|
145
145
|
class CovalentSankeyEchartsModule {
|
|
146
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
147
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
148
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
146
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CovalentSankeyEchartsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
147
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.11", ngImport: i0, type: CovalentSankeyEchartsModule, declarations: [TdChartSeriesSankeyComponent], imports: [CommonModule], exports: [TdChartSeriesSankeyComponent] });
|
|
148
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CovalentSankeyEchartsModule, imports: [CommonModule] });
|
|
149
149
|
}
|
|
150
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
150
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CovalentSankeyEchartsModule, decorators: [{
|
|
151
151
|
type: NgModule,
|
|
152
152
|
args: [{
|
|
153
153
|
imports: [CommonModule],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"covalent-echarts-sankey.mjs","sources":["../../../../libs/angular-echarts/sankey/src/sankey.component.ts","../../../../libs/angular-echarts/sankey/src/sankey.module.ts","../../../../libs/angular-echarts/sankey/src/covalent-echarts-sankey.ts"],"sourcesContent":["import {\n Component,\n Input,\n ChangeDetectionStrategy,\n forwardRef,\n} from '@angular/core';\n\nimport {\n TdChartOptionsService,\n ITdLabel,\n ITdItemStyle,\n ITdEmphasis,\n ITdSeries,\n TdSeriesDirective,\n ITdShadow,\n ITdLineCurveStyle,\n} from '@covalent/echarts/base';\n\nexport type TdSankeyOrient = 'horizontal' | 'vertical';\n\nexport type TdSankeyFocusNodeAdjacency =\n | boolean\n | 'allEdges'\n | 'outEdges'\n | 'inEdges';\n\nexport interface ITdSankeyEmphasisLineStyle extends ITdShadow {\n color?: any;\n opacity?: number;\n curveness?: number;\n}\n\nexport interface ITdSankeyEmphasis extends ITdEmphasis {\n lineStyle: ITdSankeyEmphasisLineStyle;\n}\n\nexport interface ITdSankeySeries 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 nodeWidth?: number;\n nodeGap?: number;\n layoutIterations?: number;\n orient?: TdSankeyOrient;\n draggable?: boolean;\n focusNodeAdjacency?: TdSankeyFocusNodeAdjacency;\n label?: ITdLabel;\n itemStyle?: ITdItemStyle;\n lineStyle?: ITdLineCurveStyle;\n emphasis?: ITdEmphasis;\n data?: any[];\n nodes?: any[];\n links?: any[];\n edges?: any[];\n silent?: boolean;\n}\n\n@Component({\n selector: 'td-chart-series[td-sankey]',\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(() => TdChartSeriesSankeyComponent),\n },\n ],\n})\nexport class TdChartSeriesSankeyComponent\n extends TdSeriesDirective\n implements ITdSankeySeries\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() nodeWidth?: number;\n @Input() nodeGap?: number;\n @Input() layoutIterations?: number;\n @Input() orient?: TdSankeyOrient;\n @Input() draggable?: boolean;\n @Input() focusNodeAdjacency?: TdSankeyFocusNodeAdjacency;\n @Input() label?: ITdLabel;\n @Input() itemStyle?: ITdItemStyle;\n @Input() lineStyle?: ITdLineCurveStyle;\n @Input() emphasis?: ITdEmphasis;\n @Input() nodes?: any[];\n @Input() links?: any[];\n @Input() edges?: any[];\n @Input() silent?: boolean;\n\n constructor(_optionsService: TdChartOptionsService) {\n super('sankey', _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 nodeWidth: this.nodeWidth,\n nodeGap: this.nodeGap,\n layoutIterations: this.layoutIterations,\n orient: this.orient,\n draggable: this.draggable,\n focusNodeAdjacency: this.focusNodeAdjacency,\n label: this.label,\n itemStyle: this.itemStyle,\n lineStyle: this.lineStyle,\n emphasis: this.emphasis,\n nodes: this.nodes,\n links: this.links,\n edges: this.edges,\n silent: this.silent,\n };\n }\n}\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { TdChartSeriesSankeyComponent } from './sankey.component';\n\nexport const SANKEY_MODULE_COMPONENTS: Type<any>[] = [\n TdChartSeriesSankeyComponent,\n];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [SANKEY_MODULE_COMPONENTS],\n exports: [SANKEY_MODULE_COMPONENTS],\n})\nexport class CovalentSankeyEchartsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;AA0FM,MAAO,4BACX,SAAQ,iBAAiB,CAAA;AAGhB,IAAA,MAAM
|
|
1
|
+
{"version":3,"file":"covalent-echarts-sankey.mjs","sources":["../../../../libs/angular-echarts/sankey/src/sankey.component.ts","../../../../libs/angular-echarts/sankey/src/sankey.module.ts","../../../../libs/angular-echarts/sankey/src/covalent-echarts-sankey.ts"],"sourcesContent":["import {\n Component,\n Input,\n ChangeDetectionStrategy,\n forwardRef,\n} from '@angular/core';\n\nimport {\n TdChartOptionsService,\n ITdLabel,\n ITdItemStyle,\n ITdEmphasis,\n ITdSeries,\n TdSeriesDirective,\n ITdShadow,\n ITdLineCurveStyle,\n} from '@covalent/echarts/base';\n\nexport type TdSankeyOrient = 'horizontal' | 'vertical';\n\nexport type TdSankeyFocusNodeAdjacency =\n | boolean\n | 'allEdges'\n | 'outEdges'\n | 'inEdges';\n\nexport interface ITdSankeyEmphasisLineStyle extends ITdShadow {\n color?: any;\n opacity?: number;\n curveness?: number;\n}\n\nexport interface ITdSankeyEmphasis extends ITdEmphasis {\n lineStyle: ITdSankeyEmphasisLineStyle;\n}\n\nexport interface ITdSankeySeries 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 nodeWidth?: number;\n nodeGap?: number;\n layoutIterations?: number;\n orient?: TdSankeyOrient;\n draggable?: boolean;\n focusNodeAdjacency?: TdSankeyFocusNodeAdjacency;\n label?: ITdLabel;\n itemStyle?: ITdItemStyle;\n lineStyle?: ITdLineCurveStyle;\n emphasis?: ITdEmphasis;\n data?: any[];\n nodes?: any[];\n links?: any[];\n edges?: any[];\n silent?: boolean;\n}\n\n@Component({\n selector: 'td-chart-series[td-sankey]',\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(() => TdChartSeriesSankeyComponent),\n },\n ],\n})\nexport class TdChartSeriesSankeyComponent\n extends TdSeriesDirective\n implements ITdSankeySeries\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() nodeWidth?: number;\n @Input() nodeGap?: number;\n @Input() layoutIterations?: number;\n @Input() orient?: TdSankeyOrient;\n @Input() draggable?: boolean;\n @Input() focusNodeAdjacency?: TdSankeyFocusNodeAdjacency;\n @Input() label?: ITdLabel;\n @Input() itemStyle?: ITdItemStyle;\n @Input() lineStyle?: ITdLineCurveStyle;\n @Input() emphasis?: ITdEmphasis;\n @Input() nodes?: any[];\n @Input() links?: any[];\n @Input() edges?: any[];\n @Input() silent?: boolean;\n\n constructor(_optionsService: TdChartOptionsService) {\n super('sankey', _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 nodeWidth: this.nodeWidth,\n nodeGap: this.nodeGap,\n layoutIterations: this.layoutIterations,\n orient: this.orient,\n draggable: this.draggable,\n focusNodeAdjacency: this.focusNodeAdjacency,\n label: this.label,\n itemStyle: this.itemStyle,\n lineStyle: this.lineStyle,\n emphasis: this.emphasis,\n nodes: this.nodes,\n links: this.links,\n edges: this.edges,\n silent: this.silent,\n };\n }\n}\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { TdChartSeriesSankeyComponent } from './sankey.component';\n\nexport const SANKEY_MODULE_COMPONENTS: Type<any>[] = [\n TdChartSeriesSankeyComponent,\n];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [SANKEY_MODULE_COMPONENTS],\n exports: [SANKEY_MODULE_COMPONENTS],\n})\nexport class CovalentSankeyEchartsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;AA0FM,MAAO,4BACX,SAAQ,iBAAiB,CAAA;AAGhB,IAAA,MAAM;AACN,IAAA,CAAC;AACD,IAAA,IAAI;AACJ,IAAA,GAAG;AACH,IAAA,KAAK;AACL,IAAA,MAAM;AACN,IAAA,KAAK;AACL,IAAA,MAAM;AACN,IAAA,SAAS;AACT,IAAA,OAAO;AACP,IAAA,gBAAgB;AAChB,IAAA,MAAM;AACN,IAAA,SAAS;AACT,IAAA,kBAAkB;AAClB,IAAA,KAAK;AACL,IAAA,SAAS;AACT,IAAA,SAAS;AACT,IAAA,QAAQ;AACR,IAAA,KAAK;AACL,IAAA,KAAK;AACL,IAAA,KAAK;AACL,IAAA,MAAM;AAEf,IAAA,WAAA,CAAY,eAAsC,EAAA;AAChD,QAAA,KAAK,CAAC,QAAQ,EAAE,eAAe,CAAC;;IAGlC,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,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;YACvC,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,kBAAkB,EAAE,IAAI,CAAC,kBAAkB;YAC3C,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,SA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AA,EAAA,CAAA;;4FAIX,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBALvC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,YAAY,EAAE,CAAC,wBAAwB,CAAC;oBACxC,OAAO,EAAE,CAAC,wBAAwB,CAAC;AACpC,iBAAA;;;ACbD;;AAEG;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { forwardRef,
|
|
2
|
+
import { forwardRef, Input, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
3
3
|
import { CommonModule } from '@angular/common';
|
|
4
4
|
import * as i1 from '@covalent/echarts/base';
|
|
5
5
|
import { TdSeriesDirective } from '@covalent/echarts/base';
|
|
@@ -74,15 +74,15 @@ class TdChartSeriesScatterComponent extends TdSeriesDirective {
|
|
|
74
74
|
silent: this.silent,
|
|
75
75
|
};
|
|
76
76
|
}
|
|
77
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
78
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
77
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdChartSeriesScatterComponent, deps: [{ token: i1.TdChartOptionsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
78
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.11", type: TdChartSeriesScatterComponent, selector: "td-chart-series[td-scatter]", 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", coordinateSystem: "coordinateSystem", xAxisIndex: "xAxisIndex", yAxisIndex: "yAxisIndex", polarIndex: "polarIndex", geoIndex: "geoIndex", calendarIndex: "calendarIndex", hoverAnimation: "hoverAnimation", legendHoverLink: "legendHoverLink", symbol: "symbol", symbolSize: "symbolSize", symbolRotate: "symbolRotate", symbolKeepAspect: "symbolKeepAspect", symbolOffset: "symbolOffset", large: "large", largeThreshold: "largeThreshold", cursor: "cursor", label: "label", itemStyle: "itemStyle", emphasis: "emphasis", progressive: "progressive", progressiveThreshold: "progressiveThreshold", dimensions: "dimensions", encode: "encode", seriesLayoutBy: "seriesLayoutBy", datasetIndex: "datasetIndex", markPoint: "markPoint", markLine: "markLine", markArea: "markArea", zlevel: "zlevel", z: "z", silent: "silent" }, providers: [
|
|
79
79
|
{
|
|
80
80
|
provide: TdSeriesDirective,
|
|
81
81
|
useExisting: forwardRef(() => TdChartSeriesScatterComponent),
|
|
82
82
|
},
|
|
83
83
|
], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
84
84
|
}
|
|
85
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
85
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdChartSeriesScatterComponent, decorators: [{
|
|
86
86
|
type: Component,
|
|
87
87
|
args: [{
|
|
88
88
|
selector: 'td-chart-series[td-scatter]',
|
|
@@ -179,11 +179,11 @@ const SCATTER_MODULE_COMPONENTS = [
|
|
|
179
179
|
TdChartSeriesScatterComponent,
|
|
180
180
|
];
|
|
181
181
|
class CovalentScatterEchartsModule {
|
|
182
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
183
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
184
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
182
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CovalentScatterEchartsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
183
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.11", ngImport: i0, type: CovalentScatterEchartsModule, declarations: [TdChartSeriesScatterComponent], imports: [CommonModule], exports: [TdChartSeriesScatterComponent] });
|
|
184
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CovalentScatterEchartsModule, imports: [CommonModule] });
|
|
185
185
|
}
|
|
186
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
186
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CovalentScatterEchartsModule, decorators: [{
|
|
187
187
|
type: NgModule,
|
|
188
188
|
args: [{
|
|
189
189
|
imports: [CommonModule],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"covalent-echarts-scatter.mjs","sources":["../../../../libs/angular-echarts/scatter/src/scatter.component.ts","../../../../libs/angular-echarts/scatter/src/scatter.module.ts","../../../../libs/angular-echarts/scatter/src/covalent-echarts-scatter.ts"],"sourcesContent":["import {\n Component,\n Input,\n ChangeDetectionStrategy,\n forwardRef,\n} from '@angular/core';\n\nimport {\n TdChartOptionsService,\n TdCoordinateSystem,\n TdMarkPointSymbol,\n ITdMarkPoint,\n ITdItemStyle,\n ITdLabel,\n ITdEmphasis,\n TdSeriesLayoutBy,\n ITdMarkLine,\n ITdMarkArea,\n TdSeriesDirective,\n ITdSeries,\n} from '@covalent/echarts/base';\n\nexport interface ITdScatterSeries extends ITdSeries {\n coordinateSystem?: TdCoordinateSystem;\n xAxisIndex?: number;\n yAxisIndex?: number;\n polarIndex?: number;\n geoIndex?: number;\n calendarIndex?: number;\n hoverAnimation?: boolean;\n legendHoverLink?: boolean;\n symbol?: TdMarkPointSymbol | string;\n symbolSize?: number | any[] | Function;\n symbolRotate?: number;\n symbolKeepAspect?: boolean;\n symbolOffset?: any[];\n large?: boolean;\n largeThreshold?: number;\n cursor?: string;\n connectNulls?: boolean;\n clipOverflow?: boolean;\n step?: boolean;\n label?: ITdLabel;\n itemStyle?: any;\n emphasis?: ITdEmphasis;\n progressive?: number;\n progressiveThreshold?: number;\n dimensions?: any[];\n encode?: any;\n seriesLayoutBy?: TdSeriesLayoutBy;\n datasetIndex?: number;\n data?: any[];\n markPoint?: ITdMarkPoint;\n markLine?: ITdMarkLine;\n markArea?: ITdMarkArea;\n zlevel?: number;\n z?: number;\n silent?: boolean;\n}\n\n@Component({\n selector: 'td-chart-series[td-scatter]',\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(() => TdChartSeriesScatterComponent),\n },\n ],\n})\nexport class TdChartSeriesScatterComponent\n extends TdSeriesDirective\n implements ITdScatterSeries\n{\n @Input() coordinateSystem?: TdCoordinateSystem;\n @Input() xAxisIndex?: number;\n @Input() yAxisIndex?: number;\n @Input() polarIndex?: number;\n @Input() geoIndex?: number;\n @Input() calendarIndex?: number;\n @Input() hoverAnimation?: boolean;\n @Input() legendHoverLink?: 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() large?: boolean;\n @Input() largeThreshold?: number;\n @Input() cursor?: string;\n @Input() label?: ITdLabel;\n @Input() itemStyle?: ITdItemStyle;\n @Input() emphasis?: ITdEmphasis;\n @Input() progressive?: number;\n @Input() progressiveThreshold?: number;\n @Input() dimensions?: any[];\n @Input() encode?: any;\n @Input() seriesLayoutBy?: TdSeriesLayoutBy;\n @Input() datasetIndex?: number;\n @Input() markPoint?: ITdMarkPoint;\n @Input() markLine?: ITdMarkLine;\n @Input() markArea?: ITdMarkArea;\n @Input() zlevel?: number;\n @Input() z?: number;\n @Input() silent?: boolean;\n\n constructor(_optionsService: TdChartOptionsService) {\n super('scatter', _optionsService);\n }\n\n getConfig(): any {\n return {\n coordinateSystem: this.coordinateSystem,\n xAxisIndex: this.xAxisIndex,\n yAxisIndex: this.yAxisIndex,\n polarIndex: this.polarIndex,\n geoIndex: this.geoIndex,\n calendarIndex: this.calendarIndex,\n hoverAnimation: this.hoverAnimation,\n legendHoverLink: this.legendHoverLink,\n symbol: this.symbol,\n symbolSize: this.symbolSize,\n symbolRotate: this.symbolRotate,\n symbolKeepAspect: this.symbolKeepAspect,\n symbolOffset: this.symbolOffset,\n large: this.large,\n largeThreshold: this.largeThreshold,\n cursor: this.cursor,\n label: this.label,\n itemStyle: this.itemStyle,\n emphasis: this.emphasis,\n progressive: this.progressive,\n progressiveThreshold: this.progressiveThreshold,\n dimensions: this.dimensions,\n encode: this.encode,\n seriesLayoutBy: this.seriesLayoutBy,\n datasetIndex: this.datasetIndex,\n markPoint: this.markPoint,\n markLine: this.markLine,\n markArea: this.markArea,\n zlevel: this.zlevel,\n z: this.z,\n silent: this.silent,\n };\n }\n}\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { TdChartSeriesScatterComponent } from './scatter.component';\n\nexport const SCATTER_MODULE_COMPONENTS: Type<any>[] = [\n TdChartSeriesScatterComponent,\n];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [SCATTER_MODULE_COMPONENTS],\n exports: [SCATTER_MODULE_COMPONENTS],\n})\nexport class CovalentScatterEchartsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;AAwFM,MAAO,6BACX,S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AAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,4BAA4B,YAJ7B,YAAY,CAAA,EAAA,CAAA,CAAA;;2FAIX,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBALxC,QAAQ;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;;;ACbD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"covalent-echarts-scatter.mjs","sources":["../../../../libs/angular-echarts/scatter/src/scatter.component.ts","../../../../libs/angular-echarts/scatter/src/scatter.module.ts","../../../../libs/angular-echarts/scatter/src/covalent-echarts-scatter.ts"],"sourcesContent":["import {\n Component,\n Input,\n ChangeDetectionStrategy,\n forwardRef,\n} from '@angular/core';\n\nimport {\n TdChartOptionsService,\n TdCoordinateSystem,\n TdMarkPointSymbol,\n ITdMarkPoint,\n ITdItemStyle,\n ITdLabel,\n ITdEmphasis,\n TdSeriesLayoutBy,\n ITdMarkLine,\n ITdMarkArea,\n TdSeriesDirective,\n ITdSeries,\n} from '@covalent/echarts/base';\n\nexport interface ITdScatterSeries extends ITdSeries {\n coordinateSystem?: TdCoordinateSystem;\n xAxisIndex?: number;\n yAxisIndex?: number;\n polarIndex?: number;\n geoIndex?: number;\n calendarIndex?: number;\n hoverAnimation?: boolean;\n legendHoverLink?: boolean;\n symbol?: TdMarkPointSymbol | string;\n symbolSize?: number | any[] | Function;\n symbolRotate?: number;\n symbolKeepAspect?: boolean;\n symbolOffset?: any[];\n large?: boolean;\n largeThreshold?: number;\n cursor?: string;\n connectNulls?: boolean;\n clipOverflow?: boolean;\n step?: boolean;\n label?: ITdLabel;\n itemStyle?: any;\n emphasis?: ITdEmphasis;\n progressive?: number;\n progressiveThreshold?: number;\n dimensions?: any[];\n encode?: any;\n seriesLayoutBy?: TdSeriesLayoutBy;\n datasetIndex?: number;\n data?: any[];\n markPoint?: ITdMarkPoint;\n markLine?: ITdMarkLine;\n markArea?: ITdMarkArea;\n zlevel?: number;\n z?: number;\n silent?: boolean;\n}\n\n@Component({\n selector: 'td-chart-series[td-scatter]',\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(() => TdChartSeriesScatterComponent),\n },\n ],\n})\nexport class TdChartSeriesScatterComponent\n extends TdSeriesDirective\n implements ITdScatterSeries\n{\n @Input() coordinateSystem?: TdCoordinateSystem;\n @Input() xAxisIndex?: number;\n @Input() yAxisIndex?: number;\n @Input() polarIndex?: number;\n @Input() geoIndex?: number;\n @Input() calendarIndex?: number;\n @Input() hoverAnimation?: boolean;\n @Input() legendHoverLink?: 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() large?: boolean;\n @Input() largeThreshold?: number;\n @Input() cursor?: string;\n @Input() label?: ITdLabel;\n @Input() itemStyle?: ITdItemStyle;\n @Input() emphasis?: ITdEmphasis;\n @Input() progressive?: number;\n @Input() progressiveThreshold?: number;\n @Input() dimensions?: any[];\n @Input() encode?: any;\n @Input() seriesLayoutBy?: TdSeriesLayoutBy;\n @Input() datasetIndex?: number;\n @Input() markPoint?: ITdMarkPoint;\n @Input() markLine?: ITdMarkLine;\n @Input() markArea?: ITdMarkArea;\n @Input() zlevel?: number;\n @Input() z?: number;\n @Input() silent?: boolean;\n\n constructor(_optionsService: TdChartOptionsService) {\n super('scatter', _optionsService);\n }\n\n getConfig(): any {\n return {\n coordinateSystem: this.coordinateSystem,\n xAxisIndex: this.xAxisIndex,\n yAxisIndex: this.yAxisIndex,\n polarIndex: this.polarIndex,\n geoIndex: this.geoIndex,\n calendarIndex: this.calendarIndex,\n hoverAnimation: this.hoverAnimation,\n legendHoverLink: this.legendHoverLink,\n symbol: this.symbol,\n symbolSize: this.symbolSize,\n symbolRotate: this.symbolRotate,\n symbolKeepAspect: this.symbolKeepAspect,\n symbolOffset: this.symbolOffset,\n large: this.large,\n largeThreshold: this.largeThreshold,\n cursor: this.cursor,\n label: this.label,\n itemStyle: this.itemStyle,\n emphasis: this.emphasis,\n progressive: this.progressive,\n progressiveThreshold: this.progressiveThreshold,\n dimensions: this.dimensions,\n encode: this.encode,\n seriesLayoutBy: this.seriesLayoutBy,\n datasetIndex: this.datasetIndex,\n markPoint: this.markPoint,\n markLine: this.markLine,\n markArea: this.markArea,\n zlevel: this.zlevel,\n z: this.z,\n silent: this.silent,\n };\n }\n}\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { TdChartSeriesScatterComponent } from './scatter.component';\n\nexport const SCATTER_MODULE_COMPONENTS: Type<any>[] = [\n TdChartSeriesScatterComponent,\n];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [SCATTER_MODULE_COMPONENTS],\n exports: [SCATTER_MODULE_COMPONENTS],\n})\nexport class CovalentScatterEchartsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;AAwFM,MAAO,6BACX,SAAQ,iBAAiB,CAAA;AAGhB,IAAA,gBAAgB;AAChB,IAAA,UAAU;AACV,IAAA,UAAU;AACV,IAAA,UAAU;AACV,IAAA,QAAQ;AACR,IAAA,aAAa;AACb,IAAA,cAAc;AACd,IAAA,eAAe;AACf,IAAA,MAAM;AACN,IAAA,UAAU;AACV,IAAA,YAAY;AACZ,IAAA,gBAAgB;AAChB,IAAA,YAAY;AACZ,IAAA,KAAK;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,EAAA,CAAA;sBAAd;;;ACrHU,MAAA,yBAAyB,GAAgB;IACpD,6BAA6B;;MAQlB,4BAA4B,CAAA;wGAA5B,4BAA4B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;AAA5B,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,4BAA4B,EARvC,YAAA,EAAA,CAAA,6BAA6B,CAInB,EAAA,OAAA,EAAA,CAAA,YAAY,aAJtB,6BAA6B,CAAA,EAAA,CAAA;AAQlB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,4BAA4B,YAJ7B,YAAY,CAAA,EAAA,CAAA;;4FAIX,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBALxC,QAAQ;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;;;ACbD;;AAEG;;;;"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Directive, TemplateRef,
|
|
2
|
+
import { Directive, TemplateRef, ViewChild, ContentChild, Input, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
3
3
|
import * as i2 from '@angular/common';
|
|
4
4
|
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
8
|
class TdChartViewDataFormatterDirective {
|
|
9
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
10
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
9
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdChartViewDataFormatterDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
10
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.11", type: TdChartViewDataFormatterDirective, selector: "ng-template[tdViewDataFormatter]", ngImport: i0 });
|
|
11
11
|
}
|
|
12
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdChartViewDataFormatterDirective, decorators: [{
|
|
13
13
|
type: Directive,
|
|
14
14
|
args: [{
|
|
15
15
|
selector: 'ng-template[tdViewDataFormatter]',
|
|
@@ -97,10 +97,10 @@ class TdChartToolboxComponent {
|
|
|
97
97
|
return this._elementRef.nativeElement.innerHTML;
|
|
98
98
|
};
|
|
99
99
|
}
|
|
100
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
101
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
100
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdChartToolboxComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i1.TdChartOptionsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
101
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.11", type: TdChartToolboxComponent, selector: "td-chart-toolbox", inputs: { config: "config", show: "show", trigger: "trigger", orient: "orient", itemSize: "itemSize", itemGap: "itemGap", showTitle: "showTitle", label: "label", feature: "feature", iconStyle: "iconStyle", zlevel: "zlevel", z: "z", transitionDuration: "transitionDuration", left: "left", top: "top", right: "right", bottom: "bottom", width: "width", height: "height" }, queries: [{ propertyName: "formatterTemplate", first: true, predicate: TdChartViewDataFormatterDirective, descendants: true, read: TemplateRef }], viewQueries: [{ propertyName: "fullTemplate", first: true, predicate: ["toolboxContent"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<ng-template\n #toolboxContent\n [ngTemplateOutlet]=\"formatterTemplate\"\n></ng-template>\n", dependencies: [{ kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
102
102
|
}
|
|
103
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
103
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: TdChartToolboxComponent, decorators: [{
|
|
104
104
|
type: Component,
|
|
105
105
|
args: [{ selector: 'td-chart-toolbox', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template\n #toolboxContent\n [ngTemplateOutlet]=\"formatterTemplate\"\n></ng-template>\n" }]
|
|
106
106
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i1.TdChartOptionsService }], propDecorators: { config: [{
|
|
@@ -154,13 +154,13 @@ const TOOLBOX_MODULE_COMPONENTS = [
|
|
|
154
154
|
TdChartViewDataFormatterDirective,
|
|
155
155
|
];
|
|
156
156
|
class CovalentToolboxEchartsModule {
|
|
157
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
158
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
157
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CovalentToolboxEchartsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
158
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.11", ngImport: i0, type: CovalentToolboxEchartsModule, declarations: [TdChartToolboxComponent,
|
|
159
159
|
TdChartViewDataFormatterDirective], imports: [CommonModule], exports: [TdChartToolboxComponent,
|
|
160
160
|
TdChartViewDataFormatterDirective] });
|
|
161
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
161
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CovalentToolboxEchartsModule, imports: [CommonModule] });
|
|
162
162
|
}
|
|
163
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
163
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: CovalentToolboxEchartsModule, decorators: [{
|
|
164
164
|
type: NgModule,
|
|
165
165
|
args: [{
|
|
166
166
|
imports: [CommonModule],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"covalent-echarts-toolbox.mjs","sources":["../../../../libs/angular-echarts/toolbox/src/toolbox.component.ts","../../../../libs/angular-echarts/toolbox/src/toolbox.component.html","../../../../libs/angular-echarts/toolbox/src/toolbox.module.ts","../../../../libs/angular-echarts/toolbox/src/covalent-echarts-toolbox.ts"],"sourcesContent":["import {\n Component,\n Input,\n Directive,\n TemplateRef,\n ChangeDetectionStrategy,\n ElementRef,\n ChangeDetectorRef,\n OnChanges,\n ContentChild,\n ViewChild,\n OnDestroy,\n} from '@angular/core';\n\nimport {\n TdChartOptionsService,\n assignDefined,\n ITdLabel,\n ITdShadow,\n ITdItemStyle,\n TdTextPosition,\n TdTextAlign,\n} from '@covalent/echarts/base';\n\nexport type TdToolboxOrient = 'horizontal' | 'vertical';\nexport type TdImageType = 'png' | 'jpeg';\n\nexport interface ITdAcceptedBrushTypes {\n rect?: string;\n polygon?: string;\n lineX?: string;\n lineY?: string;\n keep?: string;\n clear?: string;\n}\n\nexport interface ITdAcceptedMagicTypes {\n line?: string;\n bar?: string;\n stack?: string;\n tiled?: string;\n}\n\nexport interface ITdToolboxIconEmphasis extends ITdItemStyle, ITdShadow {}\n\nexport interface ITdFeatureIconStyle extends ITdItemStyle, ITdShadow {\n textPosition?: TdTextPosition;\n textAlign?: TdTextAlign;\n emphasis?: ITdToolboxIconEmphasis;\n}\n\nexport interface ITdZoomTitles {\n zoom?: string;\n back?: string;\n}\n\nexport interface ITdSaveAsImage {\n type?: TdImageType;\n name?: string;\n backgroundColor?: any;\n excludeComponents?: string[]; // defaults to ['toolbox']\n show?: boolean;\n title?: string;\n icon?: string;\n iconStyle?: ITdFeatureIconStyle;\n pixelRatio?: number;\n}\n\nexport interface ITdRestore {\n show?: boolean;\n title?: string;\n icon?: string;\n iconStyle?: ITdFeatureIconStyle;\n}\n\nexport interface ITdDataView {\n show?: boolean;\n title?: string;\n icon?: string;\n iconStyle?: ITdFeatureIconStyle;\n readOnly?: boolean;\n optionToContent?: Function;\n contentToOption?: Function;\n lang?: string[]; // Defaults to Chinese, there are 3 names in data view, which are ['data view', 'turn off' and 'refresh'].\n textareaColor?: string;\n textareaBorderColor?: string;\n textColor?: string;\n buttonColor?: string;\n buttonTextColor?: string;\n}\n\nexport interface ITdDataZoom {\n show?: boolean;\n title?: ITdZoomTitles;\n icon?: ITdZoomTitles;\n iconStyle?: ITdFeatureIconStyle;\n xAxisIndex?: number | number[] | boolean;\n yAxisIndex?: number | number[] | boolean;\n}\n\nexport interface ITdMagicType {\n show?: boolean;\n type?: string[]; // only expects 'line' | 'bar' | 'stack' | 'tiled';\n title?: ITdAcceptedMagicTypes;\n icon?: ITdAcceptedMagicTypes;\n iconStyle?: ITdFeatureIconStyle;\n option?: {\n line?: object;\n bar?: object;\n stack?: object;\n tiled?: object;\n };\n seriesIndex?: {\n line?: any[];\n bar?: any[];\n stack?: any[];\n tiled?: any[];\n };\n}\n\nexport interface ITdBrush {\n type?: any[];\n icon?: ITdAcceptedBrushTypes;\n title?: ITdAcceptedBrushTypes;\n}\n\nexport interface ITdToolboxFeature {\n saveAsImage?: ITdSaveAsImage;\n restore?: ITdRestore;\n dataView?: ITdDataView;\n dataZoom?: ITdDataZoom;\n magicType?: ITdMagicType;\n brush?: ITdBrush;\n}\n\n@Directive({\n selector: 'ng-template[tdViewDataFormatter]',\n})\nexport class TdChartViewDataFormatterDirective {}\n\n@Component({\n selector: 'td-chart-toolbox',\n templateUrl: './toolbox.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TdChartToolboxComponent implements OnChanges, OnDestroy {\n private _state: any = {};\n\n @Input() config: any = {};\n\n @Input() show = true;\n @Input() trigger?: string;\n @Input() orient?: TdToolboxOrient;\n @Input() itemSize?: number;\n @Input() itemGap?: number;\n @Input() showTitle? = true;\n @Input() label?: ITdLabel;\n @Input() feature?: ITdToolboxFeature;\n @Input() iconStyle?: ITdFeatureIconStyle;\n @Input() zlevel?: number;\n @Input() z?: number;\n @Input() transitionDuration = 0.5;\n @Input() left: string | number = 'auto';\n @Input() top: string | number = 'auto';\n @Input() right: string | number = 'auto';\n @Input() bottom: string | number = 'auto';\n @Input() width: string | number = 'auto';\n @Input() height: string | number = 'auto';\n\n @ContentChild(TdChartViewDataFormatterDirective, { read: TemplateRef })\n formatterTemplate!: TemplateRef<any>;\n @ViewChild('toolboxContent', { static: true })\n fullTemplate!: TemplateRef<any>;\n\n constructor(\n private _changeDetectorRef: ChangeDetectorRef,\n private _elementRef: ElementRef,\n private _optionsService: TdChartOptionsService\n ) {}\n\n ngOnChanges(): void {\n this._setOptions();\n }\n\n ngOnDestroy(): void {\n this._removeOption();\n }\n\n private _setOptions(): void {\n this._checkFormatterTemplate();\n\n const config: any = assignDefined(\n this._state,\n {\n show: this.show,\n name: this.trigger,\n orient: this.orient,\n itemSize: this.itemSize,\n itemGap: this.itemGap,\n showTitle: this.showTitle,\n label: this.label,\n feature: this.feature,\n iconStyle: this.iconStyle,\n zlevel: this.zlevel,\n z: this.z,\n transitionDuration: this.transitionDuration,\n left: this.left,\n top: this.top,\n right: this.right,\n bottom: this.bottom,\n width: this.width,\n height: this.height,\n },\n this.config ? this.config : {}\n );\n // set toolbox configuration in parent chart and render new configurations\n this._optionsService.setOption('toolbox', config);\n }\n\n private _removeOption(): void {\n this._optionsService.clearOption('toolbox');\n }\n\n private _checkFormatterTemplate(): void {\n if (this.formatterTemplate) {\n this.feature = {\n ...this.feature,\n dataView: {\n ...this.feature?.dataView,\n optionToContent: this._optionToContentFormatter(),\n },\n };\n }\n }\n\n private _optionToContentFormatter(): () => string {\n return () => {\n this._changeDetectorRef.markForCheck();\n return (<HTMLElement>this._elementRef.nativeElement).innerHTML;\n };\n }\n}\n","<ng-template\n #toolboxContent\n [ngTemplateOutlet]=\"formatterTemplate\"\n></ng-template>\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport {\n TdChartToolboxComponent,\n TdChartViewDataFormatterDirective,\n} from './toolbox.component';\n\nexport const TOOLBOX_MODULE_COMPONENTS: Type<any>[] = [\n TdChartToolboxComponent,\n TdChartViewDataFormatterDirective,\n];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [TOOLBOX_MODULE_COMPONENTS],\n exports: [TOOLBOX_MODULE_COMPONENTS],\n})\nexport class CovalentToolboxEchartsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;MA0Ia,iCAAiC,CAAA;uGAAjC,iCAAiC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;2FAAjC,iCAAiC,EAAA,QAAA,EAAA,kCAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAjC,iCAAiC,EAAA,UAAA,EAAA,CAAA;kBAH7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AAI,EAAE,WAAW,EAAE,CAAA;gBAGtE,YAAY,EAAA,CAAA;sBADX,SAAS;AAAC,gBAAA,IAAA,EAAA,CAAA,gBAAgB,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAA;;;AEnKlC,MAAA,yBAAyB,GAAgB;IACpD,uBAAuB;IACvB,iCAAiC;EACjC;MAOW,4BAA4B,CAAA;uGAA5B,4BAA4B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAA5B,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,4BAA4B,iBATvC,uBAAuB;YACvB,iCAAiC,CAAA,EAAA,OAAA,EAAA,CAIvB,YAAY,CAAA,EAAA,OAAA,EAAA,CALtB,uBAAuB;YACvB,iCAAiC,CAAA,EAAA,CAAA,CAAA;AAQtB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,4BAA4B,YAJ7B,YAAY,CAAA,EAAA,CAAA,CAAA;;2FAIX,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBALxC,QAAQ;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;;;ACjBD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"covalent-echarts-toolbox.mjs","sources":["../../../../libs/angular-echarts/toolbox/src/toolbox.component.ts","../../../../libs/angular-echarts/toolbox/src/toolbox.component.html","../../../../libs/angular-echarts/toolbox/src/toolbox.module.ts","../../../../libs/angular-echarts/toolbox/src/covalent-echarts-toolbox.ts"],"sourcesContent":["import {\n Component,\n Input,\n Directive,\n TemplateRef,\n ChangeDetectionStrategy,\n ElementRef,\n ChangeDetectorRef,\n OnChanges,\n ContentChild,\n ViewChild,\n OnDestroy,\n} from '@angular/core';\n\nimport {\n TdChartOptionsService,\n assignDefined,\n ITdLabel,\n ITdShadow,\n ITdItemStyle,\n TdTextPosition,\n TdTextAlign,\n} from '@covalent/echarts/base';\n\nexport type TdToolboxOrient = 'horizontal' | 'vertical';\nexport type TdImageType = 'png' | 'jpeg';\n\nexport interface ITdAcceptedBrushTypes {\n rect?: string;\n polygon?: string;\n lineX?: string;\n lineY?: string;\n keep?: string;\n clear?: string;\n}\n\nexport interface ITdAcceptedMagicTypes {\n line?: string;\n bar?: string;\n stack?: string;\n tiled?: string;\n}\n\nexport interface ITdToolboxIconEmphasis extends ITdItemStyle, ITdShadow {}\n\nexport interface ITdFeatureIconStyle extends ITdItemStyle, ITdShadow {\n textPosition?: TdTextPosition;\n textAlign?: TdTextAlign;\n emphasis?: ITdToolboxIconEmphasis;\n}\n\nexport interface ITdZoomTitles {\n zoom?: string;\n back?: string;\n}\n\nexport interface ITdSaveAsImage {\n type?: TdImageType;\n name?: string;\n backgroundColor?: any;\n excludeComponents?: string[]; // defaults to ['toolbox']\n show?: boolean;\n title?: string;\n icon?: string;\n iconStyle?: ITdFeatureIconStyle;\n pixelRatio?: number;\n}\n\nexport interface ITdRestore {\n show?: boolean;\n title?: string;\n icon?: string;\n iconStyle?: ITdFeatureIconStyle;\n}\n\nexport interface ITdDataView {\n show?: boolean;\n title?: string;\n icon?: string;\n iconStyle?: ITdFeatureIconStyle;\n readOnly?: boolean;\n optionToContent?: Function;\n contentToOption?: Function;\n lang?: string[]; // Defaults to Chinese, there are 3 names in data view, which are ['data view', 'turn off' and 'refresh'].\n textareaColor?: string;\n textareaBorderColor?: string;\n textColor?: string;\n buttonColor?: string;\n buttonTextColor?: string;\n}\n\nexport interface ITdDataZoom {\n show?: boolean;\n title?: ITdZoomTitles;\n icon?: ITdZoomTitles;\n iconStyle?: ITdFeatureIconStyle;\n xAxisIndex?: number | number[] | boolean;\n yAxisIndex?: number | number[] | boolean;\n}\n\nexport interface ITdMagicType {\n show?: boolean;\n type?: string[]; // only expects 'line' | 'bar' | 'stack' | 'tiled';\n title?: ITdAcceptedMagicTypes;\n icon?: ITdAcceptedMagicTypes;\n iconStyle?: ITdFeatureIconStyle;\n option?: {\n line?: object;\n bar?: object;\n stack?: object;\n tiled?: object;\n };\n seriesIndex?: {\n line?: any[];\n bar?: any[];\n stack?: any[];\n tiled?: any[];\n };\n}\n\nexport interface ITdBrush {\n type?: any[];\n icon?: ITdAcceptedBrushTypes;\n title?: ITdAcceptedBrushTypes;\n}\n\nexport interface ITdToolboxFeature {\n saveAsImage?: ITdSaveAsImage;\n restore?: ITdRestore;\n dataView?: ITdDataView;\n dataZoom?: ITdDataZoom;\n magicType?: ITdMagicType;\n brush?: ITdBrush;\n}\n\n@Directive({\n selector: 'ng-template[tdViewDataFormatter]',\n})\nexport class TdChartViewDataFormatterDirective {}\n\n@Component({\n selector: 'td-chart-toolbox',\n templateUrl: './toolbox.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TdChartToolboxComponent implements OnChanges, OnDestroy {\n private _state: any = {};\n\n @Input() config: any = {};\n\n @Input() show = true;\n @Input() trigger?: string;\n @Input() orient?: TdToolboxOrient;\n @Input() itemSize?: number;\n @Input() itemGap?: number;\n @Input() showTitle? = true;\n @Input() label?: ITdLabel;\n @Input() feature?: ITdToolboxFeature;\n @Input() iconStyle?: ITdFeatureIconStyle;\n @Input() zlevel?: number;\n @Input() z?: number;\n @Input() transitionDuration = 0.5;\n @Input() left: string | number = 'auto';\n @Input() top: string | number = 'auto';\n @Input() right: string | number = 'auto';\n @Input() bottom: string | number = 'auto';\n @Input() width: string | number = 'auto';\n @Input() height: string | number = 'auto';\n\n @ContentChild(TdChartViewDataFormatterDirective, { read: TemplateRef })\n formatterTemplate!: TemplateRef<any>;\n @ViewChild('toolboxContent', { static: true })\n fullTemplate!: TemplateRef<any>;\n\n constructor(\n private _changeDetectorRef: ChangeDetectorRef,\n private _elementRef: ElementRef,\n private _optionsService: TdChartOptionsService\n ) {}\n\n ngOnChanges(): void {\n this._setOptions();\n }\n\n ngOnDestroy(): void {\n this._removeOption();\n }\n\n private _setOptions(): void {\n this._checkFormatterTemplate();\n\n const config: any = assignDefined(\n this._state,\n {\n show: this.show,\n name: this.trigger,\n orient: this.orient,\n itemSize: this.itemSize,\n itemGap: this.itemGap,\n showTitle: this.showTitle,\n label: this.label,\n feature: this.feature,\n iconStyle: this.iconStyle,\n zlevel: this.zlevel,\n z: this.z,\n transitionDuration: this.transitionDuration,\n left: this.left,\n top: this.top,\n right: this.right,\n bottom: this.bottom,\n width: this.width,\n height: this.height,\n },\n this.config ? this.config : {}\n );\n // set toolbox configuration in parent chart and render new configurations\n this._optionsService.setOption('toolbox', config);\n }\n\n private _removeOption(): void {\n this._optionsService.clearOption('toolbox');\n }\n\n private _checkFormatterTemplate(): void {\n if (this.formatterTemplate) {\n this.feature = {\n ...this.feature,\n dataView: {\n ...this.feature?.dataView,\n optionToContent: this._optionToContentFormatter(),\n },\n };\n }\n }\n\n private _optionToContentFormatter(): () => string {\n return () => {\n this._changeDetectorRef.markForCheck();\n return (<HTMLElement>this._elementRef.nativeElement).innerHTML;\n };\n }\n}\n","<ng-template\n #toolboxContent\n [ngTemplateOutlet]=\"formatterTemplate\"\n></ng-template>\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport {\n TdChartToolboxComponent,\n TdChartViewDataFormatterDirective,\n} from './toolbox.component';\n\nexport const TOOLBOX_MODULE_COMPONENTS: Type<any>[] = [\n TdChartToolboxComponent,\n TdChartViewDataFormatterDirective,\n];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [TOOLBOX_MODULE_COMPONENTS],\n exports: [TOOLBOX_MODULE_COMPONENTS],\n})\nexport class CovalentToolboxEchartsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;MA0Ia,iCAAiC,CAAA;wGAAjC,iCAAiC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAjC,iCAAiC,EAAA,QAAA,EAAA,kCAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAAjC,iCAAiC,EAAA,UAAA,EAAA,CAAA;kBAH7C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,kCAAkC;AAC7C,iBAAA;;MAQY,uBAAuB,CAAA;AA8BxB,IAAA,kBAAA;AACA,IAAA,WAAA;AACA,IAAA,eAAA;IA/BF,MAAM,GAAQ,EAAE;IAEf,MAAM,GAAQ,EAAE;IAEhB,IAAI,GAAG,IAAI;AACX,IAAA,OAAO;AACP,IAAA,MAAM;AACN,IAAA,QAAQ;AACR,IAAA,OAAO;IACP,SAAS,GAAI,IAAI;AACjB,IAAA,KAAK;AACL,IAAA,OAAO;AACP,IAAA,SAAS;AACT,IAAA,MAAM;AACN,IAAA,CAAC;IACD,kBAAkB,GAAG,GAAG;IACxB,IAAI,GAAoB,MAAM;IAC9B,GAAG,GAAoB,MAAM;IAC7B,KAAK,GAAoB,MAAM;IAC/B,MAAM,GAAoB,MAAM;IAChC,KAAK,GAAoB,MAAM;IAC/B,MAAM,GAAoB,MAAM;AAGzC,IAAA,iBAAiB;AAEjB,IAAA,YAAY;AAEZ,IAAA,WAAA,CACU,kBAAqC,EACrC,WAAuB,EACvB,eAAsC,EAAA;QAFtC,IAAkB,CAAA,kBAAA,GAAlB,kBAAkB;QAClB,IAAW,CAAA,WAAA,GAAX,WAAW;QACX,IAAe,CAAA,eAAA,GAAf,eAAe;;IAGzB,WAAW,GAAA;QACT,IAAI,CAAC,WA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