@pioneer-code/pioneer-charts 17.0.1 → 18.0.0
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/bar-chart/bar-horizontal-chart/bar-horizontal-chart.builder.mjs +4 -4
- package/esm2022/lib/bar-chart/bar-horizontal-chart/bar-horizontal-chart.component.mjs +5 -5
- package/esm2022/lib/bar-chart/bar-horizontal-chart/public_api.mjs +1 -2
- package/esm2022/lib/bar-chart/bar-vertical-chart/bar-vertical-chart.builder.mjs +4 -4
- package/esm2022/lib/bar-chart/bar-vertical-chart/bar-vertical-chart.component.mjs +5 -5
- package/esm2022/lib/bar-chart/bar-vertical-chart/public_api.mjs +1 -2
- package/esm2022/lib/core/axis.builder.mjs +4 -4
- package/esm2022/lib/core/chart.mjs +4 -4
- package/esm2022/lib/core/color.service.mjs +4 -4
- package/esm2022/lib/core/grid.builder.mjs +3 -3
- package/esm2022/lib/core/tooltip.builder.mjs +4 -4
- package/esm2022/lib/core/transition.service.mjs +3 -3
- package/esm2022/lib/line-area-chart/line-area-chart-effects.builders.mjs +4 -4
- package/esm2022/lib/line-area-chart/line-area-chart.builder.mjs +4 -4
- package/esm2022/lib/line-area-chart/line-area-chart.component.mjs +5 -5
- package/esm2022/lib/line-area-chart/public_api.mjs +1 -2
- package/esm2022/lib/pie-chart/pie-chart.builder.mjs +3 -3
- package/esm2022/lib/pie-chart/pie-chart.component.mjs +5 -5
- package/esm2022/lib/pie-chart/public_api.mjs +1 -2
- package/fesm2022/pioneer-code-pioneer-charts.mjs +51 -126
- package/fesm2022/pioneer-code-pioneer-charts.mjs.map +1 -1
- package/lib/bar-chart/bar-horizontal-chart/bar-horizontal-chart.component.d.ts +1 -1
- package/lib/bar-chart/bar-horizontal-chart/public_api.d.ts +0 -1
- package/lib/bar-chart/bar-vertical-chart/bar-vertical-chart.component.d.ts +1 -1
- package/lib/bar-chart/bar-vertical-chart/public_api.d.ts +0 -1
- package/lib/line-area-chart/line-area-chart.component.d.ts +1 -1
- package/lib/line-area-chart/public_api.d.ts +0 -1
- package/lib/pie-chart/pie-chart.component.d.ts +1 -1
- package/lib/pie-chart/public_api.d.ts +0 -1
- package/package.json +4 -4
- package/scss/{lib/line-area-chart → line-area-chart}/line-area-chart.component.scss +0 -1
- package/themes/pioneer-charts.css +6 -5
- package/themes/pioneer-charts.min.css +1 -3
- package/esm2022/lib/bar-chart/bar-horizontal-chart/bar-horizontal-chart.module.mjs +0 -20
- package/esm2022/lib/bar-chart/bar-vertical-chart/bar-vertical-chart.module.mjs +0 -20
- package/esm2022/lib/line-area-chart/line-area-chart.module.mjs +0 -24
- package/esm2022/lib/pie-chart/pie-chart.module.mjs +0 -24
- package/lib/bar-chart/bar-horizontal-chart/bar-horizontal-chart.module.d.ts +0 -7
- package/lib/bar-chart/bar-vertical-chart/bar-vertical-chart.module.d.ts +0 -7
- package/lib/line-area-chart/line-area-chart.module.d.ts +0 -8
- package/lib/pie-chart/pie-chart.module.d.ts +0 -8
- package/themes/pioneer-charts.css.map +0 -10
- package/themes/pioneer-charts.min.css.map +0 -10
- /package/scss/{lib/bar-chart → bar-chart}/bar-horizontal-chart/bar-horizontal-chart.component.scss +0 -0
- /package/scss/{lib/bar-chart → bar-chart}/bar-vertical-chart/bar-vertical-chart.component.scss +0 -0
- /package/scss/{lib/core → core}/theme/imports.scss +0 -0
- /package/scss/{lib/pie-chart → pie-chart}/pie-chart.component.scss +0 -0
- /package/scss/{lib/pioneer-charts.scss → pioneer-charts.scss} +0 -0
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { axisLeft, axisBottom } from 'd3-axis';
|
|
2
2
|
import { select as select$1 } from 'd3-selection';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { Injectable, EventEmitter, Component, ViewEncapsulation, Input, ViewChild, Output, HostListener
|
|
4
|
+
import { Injectable, EventEmitter, Component, ViewEncapsulation, Input, ViewChild, Output, HostListener } from '@angular/core';
|
|
5
5
|
import { select, scaleTime } from 'd3';
|
|
6
6
|
import { transition } from 'd3-transition';
|
|
7
7
|
import { scaleLinear, scaleBand } from 'd3-scale';
|
|
8
8
|
import { line, area, arc, pie } from 'd3-shape';
|
|
9
9
|
import { range } from 'd3-array';
|
|
10
10
|
import { Subject } from 'rxjs';
|
|
11
|
-
import { CommonModule } from '@angular/common';
|
|
12
11
|
import { interpolate } from 'd3-interpolate';
|
|
13
12
|
import { color } from 'd3-color';
|
|
14
13
|
|
|
@@ -69,10 +68,10 @@ class PcacAxisBuilder {
|
|
|
69
68
|
.attr('transform', 'translate(0,' + config.height + ')')
|
|
70
69
|
.call(xAxis);
|
|
71
70
|
}
|
|
72
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
73
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
71
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: PcacAxisBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
72
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: PcacAxisBuilder, providedIn: 'root' }); }
|
|
74
73
|
}
|
|
75
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
74
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: PcacAxisBuilder, decorators: [{
|
|
76
75
|
type: Injectable,
|
|
77
76
|
args: [{
|
|
78
77
|
providedIn: 'root',
|
|
@@ -107,10 +106,10 @@ class PcacGridBuilder {
|
|
|
107
106
|
.attr('x2', config.width)
|
|
108
107
|
.attr('class', (_, i) => (i === 0 ? 'pcac-grid-rule-last' : ''));
|
|
109
108
|
}
|
|
110
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
111
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
109
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: PcacGridBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
110
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: PcacGridBuilder, providedIn: 'root' }); }
|
|
112
111
|
}
|
|
113
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
112
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: PcacGridBuilder, decorators: [{
|
|
114
113
|
type: Injectable,
|
|
115
114
|
args: [{
|
|
116
115
|
providedIn: 'root',
|
|
@@ -124,10 +123,10 @@ class PcacTransitionService {
|
|
|
124
123
|
getTransitionDuration() {
|
|
125
124
|
return this.transitionDuration;
|
|
126
125
|
}
|
|
127
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
128
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
126
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: PcacTransitionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
127
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: PcacTransitionService, providedIn: 'root' }); }
|
|
129
128
|
}
|
|
130
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
129
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: PcacTransitionService, decorators: [{
|
|
131
130
|
type: Injectable,
|
|
132
131
|
args: [{
|
|
133
132
|
providedIn: 'root',
|
|
@@ -178,10 +177,10 @@ class PcacTooltipBuilder {
|
|
|
178
177
|
}
|
|
179
178
|
return key ? key + '</br>' + value.toString() : value.toString();
|
|
180
179
|
}
|
|
181
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
182
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
180
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: PcacTooltipBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
181
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: PcacTooltipBuilder, providedIn: 'root' }); }
|
|
183
182
|
}
|
|
184
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
183
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: PcacTooltipBuilder, decorators: [{
|
|
185
184
|
type: Injectable,
|
|
186
185
|
args: [{
|
|
187
186
|
providedIn: 'root',
|
|
@@ -250,10 +249,10 @@ class PcacColorService {
|
|
|
250
249
|
setAlert() {
|
|
251
250
|
return this.alert;
|
|
252
251
|
}
|
|
253
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
254
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
252
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: PcacColorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
253
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: PcacColorService, providedIn: 'root' }); }
|
|
255
254
|
}
|
|
256
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
255
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: PcacColorService, decorators: [{
|
|
257
256
|
type: Injectable,
|
|
258
257
|
args: [{
|
|
259
258
|
providedIn: 'root',
|
|
@@ -331,10 +330,10 @@ class PcacChart {
|
|
|
331
330
|
this.margin.bottom = this.margin.bottom;
|
|
332
331
|
this.width = this.width - this.margin.left;
|
|
333
332
|
}
|
|
334
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
335
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
333
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: PcacChart, deps: [{ token: PcacAxisBuilder }, { token: PcacGridBuilder }, { token: PcacTransitionService }, { token: PcacTooltipBuilder }, { token: PcacColorService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
334
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: PcacChart, providedIn: 'root' }); }
|
|
336
335
|
}
|
|
337
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
336
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: PcacChart, decorators: [{
|
|
338
337
|
type: Injectable,
|
|
339
338
|
args: [{
|
|
340
339
|
providedIn: 'root',
|
|
@@ -455,10 +454,10 @@ class LineAreaChartEffectsBuilder {
|
|
|
455
454
|
return 'translate(' + mousePos[0] + ',' + pos.y + ')';
|
|
456
455
|
});
|
|
457
456
|
}
|
|
458
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
459
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
457
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: LineAreaChartEffectsBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
458
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: LineAreaChartEffectsBuilder, providedIn: 'root' }); }
|
|
460
459
|
}
|
|
461
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
460
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: LineAreaChartEffectsBuilder, decorators: [{
|
|
462
461
|
type: Injectable,
|
|
463
462
|
args: [{
|
|
464
463
|
providedIn: 'root',
|
|
@@ -665,10 +664,10 @@ class LineAreaChartBuilder extends PcacChart {
|
|
|
665
664
|
return this.xScale(index);
|
|
666
665
|
}
|
|
667
666
|
}
|
|
668
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
669
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
667
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: LineAreaChartBuilder, deps: [{ token: PcacAxisBuilder }, { token: PcacGridBuilder }, { token: PcacTransitionService }, { token: PcacTooltipBuilder }, { token: PcacColorService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
668
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: LineAreaChartBuilder, providedIn: 'root' }); }
|
|
670
669
|
}
|
|
671
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
670
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: LineAreaChartBuilder, decorators: [{
|
|
672
671
|
type: Injectable,
|
|
673
672
|
args: [{
|
|
674
673
|
providedIn: 'root',
|
|
@@ -703,12 +702,12 @@ class PcacLineAreaChartComponent {
|
|
|
703
702
|
self.buildChart();
|
|
704
703
|
}, 300);
|
|
705
704
|
}
|
|
706
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
707
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
705
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: PcacLineAreaChartComponent, deps: [{ token: LineAreaChartBuilder }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
706
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.2", type: PcacLineAreaChartComponent, isStandalone: true, selector: "pcac-line-area-chart", inputs: { config: "config" }, outputs: { dotClicked: "dotClicked" }, host: { listeners: { "window:resize": "onResize()" } }, viewQueries: [{ propertyName: "chartElm", first: true, predicate: ["chart"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<section class=\"pcac-line-area-chart\">\n <svg #chart></svg>\n</section>\n\n", styles: [".pcac-line-area-chart svg{width:100%;display:block}.pcac-line-area-chart .dot{stroke-width:2px}.pcac-line-area-chart .effects-canvas{fill:none}.pcac-line-area-chart .effect-line{stroke:#ced4da;stroke-width:1px;opacity:0}.pcac-line-area-chart .effect-circle{stroke-width:1px;fill:none;opacity:0}.pcac-line-area-chart .effect-text{font-size:11px;font-weight:700;fill:#343a40}\n"], encapsulation: i0.ViewEncapsulation.None }); }
|
|
708
707
|
}
|
|
709
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
708
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: PcacLineAreaChartComponent, decorators: [{
|
|
710
709
|
type: Component,
|
|
711
|
-
args: [{ selector: 'pcac-line-area-chart', encapsulation: ViewEncapsulation.None, template: "<section class=\"pcac-line-area-chart\">\n <svg #chart></svg>\n</section>\n\n", styles: [".pcac-line-area-chart svg{width:100%;display:block
|
|
710
|
+
args: [{ selector: 'pcac-line-area-chart', encapsulation: ViewEncapsulation.None, standalone: true, template: "<section class=\"pcac-line-area-chart\">\n <svg #chart></svg>\n</section>\n\n", styles: [".pcac-line-area-chart svg{width:100%;display:block}.pcac-line-area-chart .dot{stroke-width:2px}.pcac-line-area-chart .effects-canvas{fill:none}.pcac-line-area-chart .effect-line{stroke:#ced4da;stroke-width:1px;opacity:0}.pcac-line-area-chart .effect-circle{stroke-width:1px;fill:none;opacity:0}.pcac-line-area-chart .effect-text{font-size:11px;font-weight:700;fill:#343a40}\n"] }]
|
|
712
711
|
}], ctorParameters: () => [{ type: LineAreaChartBuilder }], propDecorators: { config: [{
|
|
713
712
|
type: Input
|
|
714
713
|
}], chartElm: [{
|
|
@@ -721,26 +720,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.2", ngImpor
|
|
|
721
720
|
args: ['window:resize']
|
|
722
721
|
}] } });
|
|
723
722
|
|
|
724
|
-
class PcacLineAreaChartModule {
|
|
725
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: PcacLineAreaChartModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
726
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.2", ngImport: i0, type: PcacLineAreaChartModule, declarations: [PcacLineAreaChartComponent], imports: [CommonModule], exports: [PcacLineAreaChartComponent] }); }
|
|
727
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: PcacLineAreaChartModule, imports: [CommonModule] }); }
|
|
728
|
-
}
|
|
729
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: PcacLineAreaChartModule, decorators: [{
|
|
730
|
-
type: NgModule,
|
|
731
|
-
args: [{
|
|
732
|
-
declarations: [
|
|
733
|
-
PcacLineAreaChartComponent
|
|
734
|
-
],
|
|
735
|
-
imports: [
|
|
736
|
-
CommonModule,
|
|
737
|
-
],
|
|
738
|
-
exports: [
|
|
739
|
-
PcacLineAreaChartComponent
|
|
740
|
-
]
|
|
741
|
-
}]
|
|
742
|
-
}] });
|
|
743
|
-
|
|
744
723
|
class PieChartBuilder extends PcacChart {
|
|
745
724
|
constructor(axisBuilder, gridBuilder, transitionService, tooltipBuilder, colorService) {
|
|
746
725
|
super(axisBuilder, gridBuilder, transitionService, tooltipBuilder, colorService);
|
|
@@ -813,10 +792,10 @@ class PieChartBuilder extends PcacChart {
|
|
|
813
792
|
const i = interpolate({ startAngle: 0, endAngle: 0 }, b);
|
|
814
793
|
return (t) => this.arcShape(i(t)); // TODO: Strongly type
|
|
815
794
|
}
|
|
816
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
817
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
795
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: PieChartBuilder, deps: [{ token: PcacAxisBuilder }, { token: PcacGridBuilder }, { token: PcacTransitionService }, { token: PcacTooltipBuilder }, { token: PcacColorService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
796
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: PieChartBuilder, providedIn: 'root' }); }
|
|
818
797
|
}
|
|
819
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
798
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: PieChartBuilder, decorators: [{
|
|
820
799
|
type: Injectable,
|
|
821
800
|
args: [{
|
|
822
801
|
providedIn: 'root',
|
|
@@ -849,12 +828,12 @@ class PcacPieChartComponent {
|
|
|
849
828
|
self.buildChart();
|
|
850
829
|
}, 300);
|
|
851
830
|
}
|
|
852
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
853
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
831
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: PcacPieChartComponent, deps: [{ token: PieChartBuilder }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
832
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.2", type: PcacPieChartComponent, isStandalone: true, selector: "pcac-pie-chart", inputs: { config: "config" }, outputs: { sliceClicked: "sliceClicked" }, host: { listeners: { "window:resize": "onResize()" } }, viewQueries: [{ propertyName: "chartElm", first: true, predicate: ["chart"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<section class=\"pcac-pie-chart\">\n <svg #chart></svg>\n</section>\n\n", styles: [".pcac-pie-chart svg{width:100%;display:block}.pcac-pie-chart .dot{fill:none;stroke-width:1px}\n"], encapsulation: i0.ViewEncapsulation.None }); }
|
|
854
833
|
}
|
|
855
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
834
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: PcacPieChartComponent, decorators: [{
|
|
856
835
|
type: Component,
|
|
857
|
-
args: [{ selector: 'pcac-pie-chart', encapsulation: ViewEncapsulation.None, template: "<section class=\"pcac-pie-chart\">\n <svg #chart></svg>\n</section>\n\n", styles: [".pcac-pie-chart svg{width:100%;display:block}.pcac-pie-chart .dot{fill:none;stroke-width:1px}\n"] }]
|
|
836
|
+
args: [{ selector: 'pcac-pie-chart', encapsulation: ViewEncapsulation.None, standalone: true, template: "<section class=\"pcac-pie-chart\">\n <svg #chart></svg>\n</section>\n\n", styles: [".pcac-pie-chart svg{width:100%;display:block}.pcac-pie-chart .dot{fill:none;stroke-width:1px}\n"] }]
|
|
858
837
|
}], ctorParameters: () => [{ type: PieChartBuilder }], propDecorators: { config: [{
|
|
859
838
|
type: Input
|
|
860
839
|
}], chartElm: [{
|
|
@@ -867,26 +846,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.2", ngImpor
|
|
|
867
846
|
args: ['window:resize']
|
|
868
847
|
}] } });
|
|
869
848
|
|
|
870
|
-
class PcacPieChartModule {
|
|
871
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: PcacPieChartModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
872
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.2", ngImport: i0, type: PcacPieChartModule, declarations: [PcacPieChartComponent], imports: [CommonModule], exports: [PcacPieChartComponent] }); }
|
|
873
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: PcacPieChartModule, imports: [CommonModule] }); }
|
|
874
|
-
}
|
|
875
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: PcacPieChartModule, decorators: [{
|
|
876
|
-
type: NgModule,
|
|
877
|
-
args: [{
|
|
878
|
-
exports: [
|
|
879
|
-
PcacPieChartComponent
|
|
880
|
-
],
|
|
881
|
-
imports: [
|
|
882
|
-
CommonModule,
|
|
883
|
-
],
|
|
884
|
-
declarations: [
|
|
885
|
-
PcacPieChartComponent
|
|
886
|
-
]
|
|
887
|
-
}]
|
|
888
|
-
}] });
|
|
889
|
-
|
|
890
849
|
class BarHorizontalChartBuilder extends PcacChart {
|
|
891
850
|
constructor(axisBuilder, gridBuilder, transitionService, tooltipBuilder, colorService) {
|
|
892
851
|
super(axisBuilder, gridBuilder, transitionService, tooltipBuilder, colorService);
|
|
@@ -1135,10 +1094,10 @@ class BarHorizontalChartBuilder extends PcacChart {
|
|
|
1135
1094
|
this.tooltipBuilder.hideTooltip();
|
|
1136
1095
|
});
|
|
1137
1096
|
}
|
|
1138
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1139
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1097
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: BarHorizontalChartBuilder, deps: [{ token: PcacAxisBuilder }, { token: PcacGridBuilder }, { token: PcacTransitionService }, { token: PcacTooltipBuilder }, { token: PcacColorService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1098
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: BarHorizontalChartBuilder, providedIn: 'root' }); }
|
|
1140
1099
|
}
|
|
1141
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1100
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: BarHorizontalChartBuilder, decorators: [{
|
|
1142
1101
|
type: Injectable,
|
|
1143
1102
|
args: [{
|
|
1144
1103
|
providedIn: 'root',
|
|
@@ -1171,12 +1130,12 @@ class PcacBarChartHorizontalComponent {
|
|
|
1171
1130
|
self.buildChart();
|
|
1172
1131
|
}, 300);
|
|
1173
1132
|
}
|
|
1174
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1175
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1133
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: PcacBarChartHorizontalComponent, deps: [{ token: BarHorizontalChartBuilder }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1134
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.2", type: PcacBarChartHorizontalComponent, isStandalone: true, selector: "pcac-bar-horizontal-chart", inputs: { config: "config" }, outputs: { barClicked: "barClicked" }, host: { listeners: { "window:resize": "onResize()" } }, viewQueries: [{ propertyName: "chartElm", first: true, predicate: ["chart"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<section class=\"pcac-bar-horizontal-chart\">\n <svg #chart></svg>\n</section>\n", styles: [".pcac-bar-horizontal-chart{display:block}.pcac-bar-horizontal-chart svg{width:100%;display:block}.pcac-d3-tooltip{position:absolute;text-align:center;font-size:14px;padding:.5rem;pointer-events:none;display:none;background-color:#000000bf;color:#fff;border-radius:5px}\n"], encapsulation: i0.ViewEncapsulation.None }); }
|
|
1176
1135
|
}
|
|
1177
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1136
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: PcacBarChartHorizontalComponent, decorators: [{
|
|
1178
1137
|
type: Component,
|
|
1179
|
-
args: [{ selector: 'pcac-bar-horizontal-chart', encapsulation: ViewEncapsulation.None, template: "<section class=\"pcac-bar-horizontal-chart\">\n <svg #chart></svg>\n</section>\n", styles: [".pcac-bar-horizontal-chart{display:block}.pcac-bar-horizontal-chart svg{width:100%;display:block}.pcac-d3-tooltip{position:absolute;text-align:center;font-size:14px;padding:.5rem;pointer-events:none;display:none;background-color:#000000bf;color:#fff;border-radius:5px}\n"] }]
|
|
1138
|
+
args: [{ selector: 'pcac-bar-horizontal-chart', encapsulation: ViewEncapsulation.None, standalone: true, template: "<section class=\"pcac-bar-horizontal-chart\">\n <svg #chart></svg>\n</section>\n", styles: [".pcac-bar-horizontal-chart{display:block}.pcac-bar-horizontal-chart svg{width:100%;display:block}.pcac-d3-tooltip{position:absolute;text-align:center;font-size:14px;padding:.5rem;pointer-events:none;display:none;background-color:#000000bf;color:#fff;border-radius:5px}\n"] }]
|
|
1180
1139
|
}], ctorParameters: () => [{ type: BarHorizontalChartBuilder }], propDecorators: { config: [{
|
|
1181
1140
|
type: Input
|
|
1182
1141
|
}], chartElm: [{
|
|
@@ -1189,23 +1148,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.2", ngImpor
|
|
|
1189
1148
|
args: ['window:resize']
|
|
1190
1149
|
}] } });
|
|
1191
1150
|
|
|
1192
|
-
class PcacBarHorizontalChartModule {
|
|
1193
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: PcacBarHorizontalChartModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1194
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.2", ngImport: i0, type: PcacBarHorizontalChartModule, declarations: [PcacBarChartHorizontalComponent], exports: [PcacBarChartHorizontalComponent] }); }
|
|
1195
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: PcacBarHorizontalChartModule }); }
|
|
1196
|
-
}
|
|
1197
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: PcacBarHorizontalChartModule, decorators: [{
|
|
1198
|
-
type: NgModule,
|
|
1199
|
-
args: [{
|
|
1200
|
-
exports: [
|
|
1201
|
-
PcacBarChartHorizontalComponent
|
|
1202
|
-
],
|
|
1203
|
-
declarations: [
|
|
1204
|
-
PcacBarChartHorizontalComponent
|
|
1205
|
-
]
|
|
1206
|
-
}]
|
|
1207
|
-
}] });
|
|
1208
|
-
|
|
1209
1151
|
class BarVerticalChartBuilder extends PcacChart {
|
|
1210
1152
|
constructor(axisBuilder, gridBuilder, transitionService, tooltipBuilder, colorService) {
|
|
1211
1153
|
super(axisBuilder, gridBuilder, transitionService, tooltipBuilder, colorService);
|
|
@@ -1466,10 +1408,10 @@ class BarVerticalChartBuilder extends PcacChart {
|
|
|
1466
1408
|
return '3px';
|
|
1467
1409
|
});
|
|
1468
1410
|
}
|
|
1469
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1470
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1411
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: BarVerticalChartBuilder, deps: [{ token: PcacAxisBuilder }, { token: PcacGridBuilder }, { token: PcacTransitionService }, { token: PcacTooltipBuilder }, { token: PcacColorService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1412
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: BarVerticalChartBuilder, providedIn: 'root' }); }
|
|
1471
1413
|
}
|
|
1472
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1414
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: BarVerticalChartBuilder, decorators: [{
|
|
1473
1415
|
type: Injectable,
|
|
1474
1416
|
args: [{
|
|
1475
1417
|
providedIn: 'root',
|
|
@@ -1502,12 +1444,12 @@ class PcacBarVerticalChartComponent {
|
|
|
1502
1444
|
self.buildChart();
|
|
1503
1445
|
}, 300);
|
|
1504
1446
|
}
|
|
1505
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1506
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1447
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: PcacBarVerticalChartComponent, deps: [{ token: BarVerticalChartBuilder }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1448
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.2", type: PcacBarVerticalChartComponent, isStandalone: true, selector: "pcac-bar-vertical-chart", inputs: { config: "config" }, outputs: { barClicked: "barClicked" }, host: { listeners: { "window:resize": "onResize()" } }, viewQueries: [{ propertyName: "chartElm", first: true, predicate: ["chart"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<section class=\"pcac-bar-vertical-chart\">\n <svg #chart></svg>\n</section>\n", styles: [".pcac-bar-vertical-chart svg{width:100%;display:block}\n"], encapsulation: i0.ViewEncapsulation.None }); }
|
|
1507
1449
|
}
|
|
1508
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1450
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: PcacBarVerticalChartComponent, decorators: [{
|
|
1509
1451
|
type: Component,
|
|
1510
|
-
args: [{ selector: 'pcac-bar-vertical-chart', encapsulation: ViewEncapsulation.None, template: "<section class=\"pcac-bar-vertical-chart\">\n <svg #chart></svg>\n</section>\n", styles: [".pcac-bar-vertical-chart svg{width:100%;display:block}\n"] }]
|
|
1452
|
+
args: [{ selector: 'pcac-bar-vertical-chart', encapsulation: ViewEncapsulation.None, standalone: true, template: "<section class=\"pcac-bar-vertical-chart\">\n <svg #chart></svg>\n</section>\n", styles: [".pcac-bar-vertical-chart svg{width:100%;display:block}\n"] }]
|
|
1511
1453
|
}], ctorParameters: () => [{ type: BarVerticalChartBuilder }], propDecorators: { config: [{
|
|
1512
1454
|
type: Input
|
|
1513
1455
|
}], chartElm: [{
|
|
@@ -1520,23 +1462,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.2", ngImpor
|
|
|
1520
1462
|
args: ['window:resize']
|
|
1521
1463
|
}] } });
|
|
1522
1464
|
|
|
1523
|
-
class PcacBarVerticalChartModule {
|
|
1524
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: PcacBarVerticalChartModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1525
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.2", ngImport: i0, type: PcacBarVerticalChartModule, declarations: [PcacBarVerticalChartComponent], exports: [PcacBarVerticalChartComponent] }); }
|
|
1526
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: PcacBarVerticalChartModule }); }
|
|
1527
|
-
}
|
|
1528
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: PcacBarVerticalChartModule, decorators: [{
|
|
1529
|
-
type: NgModule,
|
|
1530
|
-
args: [{
|
|
1531
|
-
exports: [
|
|
1532
|
-
PcacBarVerticalChartComponent
|
|
1533
|
-
],
|
|
1534
|
-
declarations: [
|
|
1535
|
-
PcacBarVerticalChartComponent
|
|
1536
|
-
]
|
|
1537
|
-
}]
|
|
1538
|
-
}] });
|
|
1539
|
-
|
|
1540
1465
|
/*
|
|
1541
1466
|
* Public API Surface of pioneer-charts
|
|
1542
1467
|
*/
|
|
@@ -1545,5 +1470,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.2", ngImpor
|
|
|
1545
1470
|
* Generated bundle index. Do not edit.
|
|
1546
1471
|
*/
|
|
1547
1472
|
|
|
1548
|
-
export { BarHorizontalChartBuilder, BarVerticalChartBuilder, LineAreaChartBuilder, PcacAxisBuilder, PcacBarChartHorizontalComponent,
|
|
1473
|
+
export { BarHorizontalChartBuilder, BarVerticalChartBuilder, LineAreaChartBuilder, PcacAxisBuilder, PcacBarChartHorizontalComponent, PcacBarVerticalChartComponent, PcacChart, PcacColorService, PcacFormatEnum, PcacGridBuilder, PcacLineAreaChartComponent, PcacPieChartComponent, PcacTooltipBuilder, PcacTransitionService, PieChartBuilder };
|
|
1549
1474
|
//# sourceMappingURL=pioneer-code-pioneer-charts.mjs.map
|