barsa-echarts 2.0.37 → 2.0.39
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/lib/barsa-echarts.module.mjs +5 -29
- package/esm2022/lib/base/chart-base.directive.mjs +32 -50
- package/esm2022/lib/base/index.mjs +2 -8
- package/esm2022/lib/micro-charts/micro-chart-area/micro-chart-area.component.mjs +16 -10
- package/esm2022/lib/micro-charts/micro-chart-bar/micro-chart-bar.component.mjs +11 -6
- package/esm2022/lib/micro-charts/micro-chart-bullet/micro-chart-bullet.component.mjs +7 -3
- package/esm2022/lib/micro-charts/micro-chart-circular/micro-chart-circular.component.mjs +7 -6
- package/esm2022/lib/micro-charts/micro-chart-comparison/micro-chart-comparison.component.mjs +7 -5
- package/esm2022/lib/micro-charts/micro-chart-line/micro-chart-line.component.mjs +7 -16
- package/esm2022/lib/micro-charts/micro-chart-stackbar/micro-chart-stackbar.component.mjs +7 -5
- package/fesm2022/barsa-echarts.mjs +74 -625
- package/fesm2022/barsa-echarts.mjs.map +1 -1
- package/lib/barsa-echarts.module.d.ts +5 -11
- package/lib/base/chart-base.directive.d.ts +9 -18
- package/lib/base/index.d.ts +1 -7
- package/lib/micro-charts/micro-chart-area/micro-chart-area.component.d.ts +3 -1
- package/lib/micro-charts/micro-chart-bar/micro-chart-bar.component.d.ts +5 -3
- package/lib/micro-charts/micro-chart-bullet/micro-chart-bullet.component.d.ts +3 -1
- package/lib/micro-charts/micro-chart-circular/micro-chart-circular.component.d.ts +3 -2
- package/lib/micro-charts/micro-chart-comparison/micro-chart-comparison.component.d.ts +3 -3
- package/lib/micro-charts/micro-chart-line/micro-chart-line.component.d.ts +3 -5
- package/lib/micro-charts/micro-chart-stackbar/micro-chart-stackbar.component.d.ts +3 -3
- package/package.json +1 -1
- package/esm2022/lib/base/chart-line-time-base.directive.mjs +0 -80
- package/esm2022/lib/base/micro-chart-area-base.directive.mjs +0 -89
- package/esm2022/lib/base/micro-chart-bar-base.directive.mjs +0 -48
- package/esm2022/lib/base/micro-chart-base.directive.mjs +0 -49
- package/esm2022/lib/base/micro-chart-circular-base.directive.mjs +0 -75
- package/esm2022/lib/base/micro-chart-comparison-base.directive.mjs +0 -99
- package/esm2022/lib/base/micro-chart-line-base.directive.mjs +0 -60
- package/esm2022/lib/base/micro-chart-stackbar-base.directive.mjs +0 -51
- package/lib/base/chart-line-time-base.directive.d.ts +0 -19
- package/lib/base/micro-chart-area-base.directive.d.ts +0 -18
- package/lib/base/micro-chart-bar-base.directive.d.ts +0 -14
- package/lib/base/micro-chart-base.directive.d.ts +0 -14
- package/lib/base/micro-chart-circular-base.directive.d.ts +0 -13
- package/lib/base/micro-chart-comparison-base.directive.d.ts +0 -17
- package/lib/base/micro-chart-line-base.directive.d.ts +0 -15
- package/lib/base/micro-chart-stackbar-base.directive.d.ts +0 -14
|
@@ -2,30 +2,21 @@ import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
|
|
2
2
|
import { BaseComponent } from 'barsa-novin-ray-core';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
import * as i1 from "barsa-novin-ray-core";
|
|
5
|
-
import * as i2 from "../../base/
|
|
5
|
+
import * as i2 from "../../base/chart-base.directive";
|
|
6
6
|
export class MicroChartLineComponent extends BaseComponent {
|
|
7
7
|
constructor(el) {
|
|
8
8
|
super();
|
|
9
9
|
this.el = el;
|
|
10
10
|
}
|
|
11
|
-
ngOnInit() {
|
|
12
|
-
super.ngOnInit();
|
|
13
|
-
this.getFirstAndLastValues();
|
|
14
|
-
}
|
|
15
|
-
getFirstAndLastValues() {
|
|
16
|
-
const dataLength = this.line.data.length;
|
|
17
|
-
this.firstValue = this.line.data[0].value.toString();
|
|
18
|
-
this.lastValue = this.line.data[dataLength - 1].value.toString();
|
|
19
|
-
this.firstLabel = this.line.data[0].label;
|
|
20
|
-
this.lastLabel = this.line.data[dataLength - 1].label;
|
|
21
|
-
}
|
|
22
11
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: MicroChartLineComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
23
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.5", type: MicroChartLineComponent, selector: "be-micro-chart-line", inputs: {
|
|
12
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.5", type: MicroChartLineComponent, selector: "be-micro-chart-line", inputs: { chartInstanceId: "chartInstanceId", parentMoId: "parentMoId" }, usesInheritance: true, ngImport: i0, template: "<!-- <div class=\"top-labels\">\n <span>{{ lastValue }}{{ line?.suffix }}</span>\n <span>{{ firstValue }}{{ line?.suffix }}</span>\n</div> -->\n\n<div class=\"chart\">\n <div *untilInView=\"el\" echartRenderer [chartInstanceId]=\"chartInstanceId\" [parentMoId]=\"parentMoId\"></div>\n</div>\n<!-- \n<div class=\"bottom-labels\">\n <span>{{ lastLabel }}</span>\n <span>{{ firstLabel }}</span>\n</div> -->\n", styles: [":host{display:block;width:100%;height:100%}.chart{width:100%;height:52%}span{margin:0;font-size:10px}.top-labels{width:100%;height:23%;display:flex;justify-content:space-between}.bottom-labels{width:100%;height:25%;display:flex;justify-content:space-between}\n"], dependencies: [{ kind: "directive", type: i1.UntilInViewDirective, selector: "[untilInView]", inputs: ["untilInView", "intersectionDebounce"] }, { kind: "directive", type: i2.ChartBaseDirective, selector: "[echartRenderer]", inputs: ["chartInstanceId", "parentMoId"], exportAs: ["echartRenderer"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
24
13
|
}
|
|
25
14
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: MicroChartLineComponent, decorators: [{
|
|
26
15
|
type: Component,
|
|
27
|
-
args: [{ selector: 'be-micro-chart-line', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"top-labels\">\
|
|
28
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: {
|
|
16
|
+
args: [{ selector: 'be-micro-chart-line', changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- <div class=\"top-labels\">\n <span>{{ lastValue }}{{ line?.suffix }}</span>\n <span>{{ firstValue }}{{ line?.suffix }}</span>\n</div> -->\n\n<div class=\"chart\">\n <div *untilInView=\"el\" echartRenderer [chartInstanceId]=\"chartInstanceId\" [parentMoId]=\"parentMoId\"></div>\n</div>\n<!-- \n<div class=\"bottom-labels\">\n <span>{{ lastLabel }}</span>\n <span>{{ firstLabel }}</span>\n</div> -->\n", styles: [":host{display:block;width:100%;height:100%}.chart{width:100%;height:52%}span{margin:0;font-size:10px}.top-labels{width:100%;height:23%;display:flex;justify-content:space-between}.bottom-labels{width:100%;height:25%;display:flex;justify-content:space-between}\n"] }]
|
|
17
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { chartInstanceId: [{
|
|
18
|
+
type: Input
|
|
19
|
+
}], parentMoId: [{
|
|
29
20
|
type: Input
|
|
30
21
|
}] } });
|
|
31
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
22
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWljcm8tY2hhcnQtbGluZS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9iYXJzYS1lY2hhcnRzL3NyYy9saWIvbWljcm8tY2hhcnRzL21pY3JvLWNoYXJ0LWxpbmUvbWljcm8tY2hhcnQtbGluZS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9iYXJzYS1lY2hhcnRzL3NyYy9saWIvbWljcm8tY2hhcnRzL21pY3JvLWNoYXJ0LWxpbmUvbWljcm8tY2hhcnQtbGluZS5jb21wb25lbnQuaHRtbCJdLCJuYW1lc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
|
2
2
|
import { BaseComponent } from 'barsa-novin-ray-core';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
import * as i1 from "barsa-novin-ray-core";
|
|
5
|
-
import * as i2 from "../../base/
|
|
5
|
+
import * as i2 from "../../base/chart-base.directive";
|
|
6
6
|
export class MicroChartStackbarComponent extends BaseComponent {
|
|
7
7
|
constructor(el) {
|
|
8
8
|
super();
|
|
9
9
|
this.el = el;
|
|
10
10
|
}
|
|
11
11
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: MicroChartStackbarComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
12
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.5", type: MicroChartStackbarComponent, selector: "be-micro-chart-stackbar", inputs: {
|
|
12
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.5", type: MicroChartStackbarComponent, selector: "be-micro-chart-stackbar", inputs: { chartInstanceId: "chartInstanceId", parentMoId: "parentMoId" }, usesInheritance: true, ngImport: i0, template: "<div *untilInView=\"el\" echartRenderer class=\"chart\" [chartInstanceId]=\"chartInstanceId\" [parentMoId]=\"parentMoId\"></div>\n", styles: [":host{display:block;width:100%;height:100%}.chart{width:100%}\n"], dependencies: [{ kind: "directive", type: i1.UntilInViewDirective, selector: "[untilInView]", inputs: ["untilInView", "intersectionDebounce"] }, { kind: "directive", type: i2.ChartBaseDirective, selector: "[echartRenderer]", inputs: ["chartInstanceId", "parentMoId"], exportAs: ["echartRenderer"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
13
13
|
}
|
|
14
14
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.5", ngImport: i0, type: MicroChartStackbarComponent, decorators: [{
|
|
15
15
|
type: Component,
|
|
16
|
-
args: [{ selector: 'be-micro-chart-stackbar', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div *untilInView=\"el\"
|
|
17
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: {
|
|
16
|
+
args: [{ selector: 'be-micro-chart-stackbar', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div *untilInView=\"el\" echartRenderer class=\"chart\" [chartInstanceId]=\"chartInstanceId\" [parentMoId]=\"parentMoId\"></div>\n", styles: [":host{display:block;width:100%;height:100%}.chart{width:100%}\n"] }]
|
|
17
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { chartInstanceId: [{
|
|
18
|
+
type: Input
|
|
19
|
+
}], parentMoId: [{
|
|
18
20
|
type: Input
|
|
19
21
|
}] } });
|
|
20
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
22
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWljcm8tY2hhcnQtc3RhY2tiYXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYmFyc2EtZWNoYXJ0cy9zcmMvbGliL21pY3JvLWNoYXJ0cy9taWNyby1jaGFydC1zdGFja2Jhci9taWNyby1jaGFydC1zdGFja2Jhci5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9iYXJzYS1lY2hhcnRzL3NyYy9saWIvbWljcm8tY2hhcnRzL21pY3JvLWNoYXJ0LXN0YWNrYmFyL21pY3JvLWNoYXJ0LXN0YWNrYmFyLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxTQUFTLEVBQWMsS0FBSyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRXRGLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQzs7OztBQVF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