@pioneer-code/pioneer-charts 1.0.21 → 17.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/bar-horizontal-chart.module.mjs +4 -4
- 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/bar-vertical-chart.module.mjs +4 -4
- package/esm2022/lib/core/axis.builder.mjs +3 -3
- package/esm2022/lib/core/chart.mjs +4 -4
- package/esm2022/lib/core/color.service.mjs +3 -3
- package/esm2022/lib/core/grid.builder.mjs +3 -3
- package/esm2022/lib/core/tooltip.builder.mjs +3 -3
- package/esm2022/lib/core/transition.service.mjs +3 -3
- package/esm2022/lib/line-area-chart/line-area-chart-effects.builders.mjs +3 -3
- package/esm2022/lib/line-area-chart/line-area-chart.builder.mjs +6 -32
- package/esm2022/lib/line-area-chart/line-area-chart.component.mjs +5 -6
- package/esm2022/lib/line-area-chart/line-area-chart.module.mjs +4 -4
- package/esm2022/lib/pie-chart/pie-chart.builder.mjs +4 -4
- package/esm2022/lib/pie-chart/pie-chart.component.mjs +5 -5
- package/esm2022/lib/pie-chart/pie-chart.module.mjs +4 -4
- package/fesm2022/pioneer-code-pioneer-charts.mjs +71 -98
- package/fesm2022/pioneer-code-pioneer-charts.mjs.map +1 -1
- package/lib/line-area-chart/line-area-chart.builder.d.ts +0 -1
- package/package.json +1 -1
|
@@ -69,10 +69,10 @@ class PcacAxisBuilder {
|
|
|
69
69
|
.attr('transform', 'translate(0,' + config.height + ')')
|
|
70
70
|
.call(xAxis);
|
|
71
71
|
}
|
|
72
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
73
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
72
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: PcacAxisBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
73
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: PcacAxisBuilder, providedIn: 'root' }); }
|
|
74
74
|
}
|
|
75
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
75
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: PcacAxisBuilder, decorators: [{
|
|
76
76
|
type: Injectable,
|
|
77
77
|
args: [{
|
|
78
78
|
providedIn: 'root',
|
|
@@ -107,10 +107,10 @@ class PcacGridBuilder {
|
|
|
107
107
|
.attr('x2', config.width)
|
|
108
108
|
.attr('class', (_, i) => (i === 0 ? 'pcac-grid-rule-last' : ''));
|
|
109
109
|
}
|
|
110
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
111
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
110
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: PcacGridBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
111
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: PcacGridBuilder, providedIn: 'root' }); }
|
|
112
112
|
}
|
|
113
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
113
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: PcacGridBuilder, decorators: [{
|
|
114
114
|
type: Injectable,
|
|
115
115
|
args: [{
|
|
116
116
|
providedIn: 'root',
|
|
@@ -124,10 +124,10 @@ class PcacTransitionService {
|
|
|
124
124
|
getTransitionDuration() {
|
|
125
125
|
return this.transitionDuration;
|
|
126
126
|
}
|
|
127
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
128
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
127
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: PcacTransitionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
128
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: PcacTransitionService, providedIn: 'root' }); }
|
|
129
129
|
}
|
|
130
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
130
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: PcacTransitionService, decorators: [{
|
|
131
131
|
type: Injectable,
|
|
132
132
|
args: [{
|
|
133
133
|
providedIn: 'root',
|
|
@@ -178,10 +178,10 @@ class PcacTooltipBuilder {
|
|
|
178
178
|
}
|
|
179
179
|
return key ? key + '</br>' + value.toString() : value.toString();
|
|
180
180
|
}
|
|
181
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
182
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
181
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: PcacTooltipBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
182
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: PcacTooltipBuilder, providedIn: 'root' }); }
|
|
183
183
|
}
|
|
184
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
184
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: PcacTooltipBuilder, decorators: [{
|
|
185
185
|
type: Injectable,
|
|
186
186
|
args: [{
|
|
187
187
|
providedIn: 'root',
|
|
@@ -250,10 +250,10 @@ class PcacColorService {
|
|
|
250
250
|
setAlert() {
|
|
251
251
|
return this.alert;
|
|
252
252
|
}
|
|
253
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
254
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
253
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: PcacColorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
254
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: PcacColorService, providedIn: 'root' }); }
|
|
255
255
|
}
|
|
256
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
256
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: PcacColorService, decorators: [{
|
|
257
257
|
type: Injectable,
|
|
258
258
|
args: [{
|
|
259
259
|
providedIn: 'root',
|
|
@@ -331,15 +331,15 @@ class PcacChart {
|
|
|
331
331
|
this.margin.bottom = this.margin.bottom;
|
|
332
332
|
this.width = this.width - this.margin.left;
|
|
333
333
|
}
|
|
334
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
335
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
334
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: PcacChart, deps: [{ token: PcacAxisBuilder }, { token: PcacGridBuilder }, { token: PcacTransitionService }, { token: PcacTooltipBuilder }, { token: PcacColorService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
335
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: PcacChart, providedIn: 'root' }); }
|
|
336
336
|
}
|
|
337
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
337
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: PcacChart, decorators: [{
|
|
338
338
|
type: Injectable,
|
|
339
339
|
args: [{
|
|
340
340
|
providedIn: 'root',
|
|
341
341
|
}]
|
|
342
|
-
}], ctorParameters:
|
|
342
|
+
}], ctorParameters: () => [{ type: PcacAxisBuilder }, { type: PcacGridBuilder }, { type: PcacTransitionService }, { type: PcacTooltipBuilder }, { type: PcacColorService }] });
|
|
343
343
|
|
|
344
344
|
class LineAreaChartEffectsBuilder {
|
|
345
345
|
constructor() {
|
|
@@ -455,10 +455,10 @@ class LineAreaChartEffectsBuilder {
|
|
|
455
455
|
return 'translate(' + mousePos[0] + ',' + pos.y + ')';
|
|
456
456
|
});
|
|
457
457
|
}
|
|
458
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
459
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
458
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: LineAreaChartEffectsBuilder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
459
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: LineAreaChartEffectsBuilder, providedIn: 'root' }); }
|
|
460
460
|
}
|
|
461
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
461
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: LineAreaChartEffectsBuilder, decorators: [{
|
|
462
462
|
type: Injectable,
|
|
463
463
|
args: [{
|
|
464
464
|
providedIn: 'root',
|
|
@@ -476,32 +476,6 @@ class LineAreaChartBuilder extends PcacChart {
|
|
|
476
476
|
this.dotClickedSource = new Subject();
|
|
477
477
|
this.dotClicked$ = this.dotClickedSource.asObservable();
|
|
478
478
|
}
|
|
479
|
-
clearChart() {
|
|
480
|
-
let remove = (i) => {
|
|
481
|
-
let target = elements[i];
|
|
482
|
-
if (!target)
|
|
483
|
-
return;
|
|
484
|
-
let parent = target.parentNode;
|
|
485
|
-
if (!parent)
|
|
486
|
-
return;
|
|
487
|
-
parent.removeChild(elements[i]);
|
|
488
|
-
};
|
|
489
|
-
var i, elements = document.getElementsByClassName('dots');
|
|
490
|
-
for (i = elements.length; i--;) {
|
|
491
|
-
remove(i);
|
|
492
|
-
}
|
|
493
|
-
;
|
|
494
|
-
var i, elements = document.getElementsByClassName('lines');
|
|
495
|
-
for (i = elements.length; i--;) {
|
|
496
|
-
remove(i);
|
|
497
|
-
}
|
|
498
|
-
;
|
|
499
|
-
var i, elements = document.getElementsByClassName('effects');
|
|
500
|
-
for (i = elements.length; i--;) {
|
|
501
|
-
remove(i);
|
|
502
|
-
}
|
|
503
|
-
;
|
|
504
|
-
}
|
|
505
479
|
buildChart(chartElm, config) {
|
|
506
480
|
this.config = JSON.parse(JSON.stringify(config));
|
|
507
481
|
this.startData = range(this.config.data[0].data.length).map((d) => {
|
|
@@ -577,10 +551,10 @@ class LineAreaChartBuilder extends PcacChart {
|
|
|
577
551
|
});
|
|
578
552
|
}
|
|
579
553
|
this.drawLineArea(config);
|
|
580
|
-
this.drawDots(config);
|
|
581
554
|
if (config.enableEffects) {
|
|
582
555
|
this.drawEffects(config);
|
|
583
556
|
}
|
|
557
|
+
this.drawDots(config);
|
|
584
558
|
}
|
|
585
559
|
drawLineArea(config) {
|
|
586
560
|
for (let i = 0; i < config.data.length; i++) {
|
|
@@ -691,15 +665,15 @@ class LineAreaChartBuilder extends PcacChart {
|
|
|
691
665
|
return this.xScale(index);
|
|
692
666
|
}
|
|
693
667
|
}
|
|
694
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
695
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
668
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: LineAreaChartBuilder, deps: [{ token: PcacAxisBuilder }, { token: PcacGridBuilder }, { token: PcacTransitionService }, { token: PcacTooltipBuilder }, { token: PcacColorService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
669
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: LineAreaChartBuilder, providedIn: 'root' }); }
|
|
696
670
|
}
|
|
697
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
671
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: LineAreaChartBuilder, decorators: [{
|
|
698
672
|
type: Injectable,
|
|
699
673
|
args: [{
|
|
700
674
|
providedIn: 'root',
|
|
701
675
|
}]
|
|
702
|
-
}], ctorParameters:
|
|
676
|
+
}], ctorParameters: () => [{ type: PcacAxisBuilder }, { type: PcacGridBuilder }, { type: PcacTransitionService }, { type: PcacTooltipBuilder }, { type: PcacColorService }] });
|
|
703
677
|
|
|
704
678
|
class PcacLineAreaChartComponent {
|
|
705
679
|
constructor(chartBuilder) {
|
|
@@ -713,7 +687,6 @@ class PcacLineAreaChartComponent {
|
|
|
713
687
|
if (changes['config'].currentValue !== changes['config'].previousValue) {
|
|
714
688
|
this.buildChart();
|
|
715
689
|
}
|
|
716
|
-
console.log(changes); // here you will get the data from parent once the input param is change
|
|
717
690
|
}
|
|
718
691
|
buildChart() {
|
|
719
692
|
if (this.config && this.config.data && this.config.data.length > 0) {
|
|
@@ -730,13 +703,13 @@ class PcacLineAreaChartComponent {
|
|
|
730
703
|
self.buildChart();
|
|
731
704
|
}, 300);
|
|
732
705
|
}
|
|
733
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
734
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
706
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: PcacLineAreaChartComponent, deps: [{ token: LineAreaChartBuilder }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
707
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.2", type: PcacLineAreaChartComponent, 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;background-color:#fff}.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 }); }
|
|
735
708
|
}
|
|
736
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
709
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: PcacLineAreaChartComponent, decorators: [{
|
|
737
710
|
type: Component,
|
|
738
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;background-color:#fff}.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"] }]
|
|
739
|
-
}], ctorParameters:
|
|
712
|
+
}], ctorParameters: () => [{ type: LineAreaChartBuilder }], propDecorators: { config: [{
|
|
740
713
|
type: Input
|
|
741
714
|
}], chartElm: [{
|
|
742
715
|
type: ViewChild,
|
|
@@ -749,11 +722,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImpor
|
|
|
749
722
|
}] } });
|
|
750
723
|
|
|
751
724
|
class PcacLineAreaChartModule {
|
|
752
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
753
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
754
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
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] }); }
|
|
755
728
|
}
|
|
756
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
729
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: PcacLineAreaChartModule, decorators: [{
|
|
757
730
|
type: NgModule,
|
|
758
731
|
args: [{
|
|
759
732
|
declarations: [
|
|
@@ -840,15 +813,15 @@ class PieChartBuilder extends PcacChart {
|
|
|
840
813
|
const i = interpolate({ startAngle: 0, endAngle: 0 }, b);
|
|
841
814
|
return (t) => this.arcShape(i(t)); // TODO: Strongly type
|
|
842
815
|
}
|
|
843
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
844
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
816
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: PieChartBuilder, deps: [{ token: PcacAxisBuilder }, { token: PcacGridBuilder }, { token: PcacTransitionService }, { token: PcacTooltipBuilder }, { token: PcacColorService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
817
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: PieChartBuilder, providedIn: 'root' }); }
|
|
845
818
|
}
|
|
846
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
819
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: PieChartBuilder, decorators: [{
|
|
847
820
|
type: Injectable,
|
|
848
821
|
args: [{
|
|
849
822
|
providedIn: 'root',
|
|
850
823
|
}]
|
|
851
|
-
}], ctorParameters:
|
|
824
|
+
}], ctorParameters: () => [{ type: PcacAxisBuilder }, { type: PcacGridBuilder }, { type: PcacTransitionService }, { type: PcacTooltipBuilder }, { type: PcacColorService }] });
|
|
852
825
|
|
|
853
826
|
class PcacPieChartComponent {
|
|
854
827
|
constructor(chartBuilder) {
|
|
@@ -876,13 +849,13 @@ class PcacPieChartComponent {
|
|
|
876
849
|
self.buildChart();
|
|
877
850
|
}, 300);
|
|
878
851
|
}
|
|
879
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
880
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
852
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: PcacPieChartComponent, deps: [{ token: PieChartBuilder }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
853
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.2", type: PcacPieChartComponent, 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 }); }
|
|
881
854
|
}
|
|
882
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
855
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: PcacPieChartComponent, decorators: [{
|
|
883
856
|
type: Component,
|
|
884
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"] }]
|
|
885
|
-
}], ctorParameters:
|
|
858
|
+
}], ctorParameters: () => [{ type: PieChartBuilder }], propDecorators: { config: [{
|
|
886
859
|
type: Input
|
|
887
860
|
}], chartElm: [{
|
|
888
861
|
type: ViewChild,
|
|
@@ -895,11 +868,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImpor
|
|
|
895
868
|
}] } });
|
|
896
869
|
|
|
897
870
|
class PcacPieChartModule {
|
|
898
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
899
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
900
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
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] }); }
|
|
901
874
|
}
|
|
902
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
875
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: PcacPieChartModule, decorators: [{
|
|
903
876
|
type: NgModule,
|
|
904
877
|
args: [{
|
|
905
878
|
exports: [
|
|
@@ -1162,15 +1135,15 @@ class BarHorizontalChartBuilder extends PcacChart {
|
|
|
1162
1135
|
this.tooltipBuilder.hideTooltip();
|
|
1163
1136
|
});
|
|
1164
1137
|
}
|
|
1165
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1166
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1138
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: BarHorizontalChartBuilder, deps: [{ token: PcacAxisBuilder }, { token: PcacGridBuilder }, { token: PcacTransitionService }, { token: PcacTooltipBuilder }, { token: PcacColorService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1139
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: BarHorizontalChartBuilder, providedIn: 'root' }); }
|
|
1167
1140
|
}
|
|
1168
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1141
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: BarHorizontalChartBuilder, decorators: [{
|
|
1169
1142
|
type: Injectable,
|
|
1170
1143
|
args: [{
|
|
1171
1144
|
providedIn: 'root',
|
|
1172
1145
|
}]
|
|
1173
|
-
}], ctorParameters:
|
|
1146
|
+
}], ctorParameters: () => [{ type: PcacAxisBuilder }, { type: PcacGridBuilder }, { type: PcacTransitionService }, { type: PcacTooltipBuilder }, { type: PcacColorService }] });
|
|
1174
1147
|
|
|
1175
1148
|
class PcacBarChartHorizontalComponent {
|
|
1176
1149
|
constructor(chartBuilder) {
|
|
@@ -1198,13 +1171,13 @@ class PcacBarChartHorizontalComponent {
|
|
|
1198
1171
|
self.buildChart();
|
|
1199
1172
|
}, 300);
|
|
1200
1173
|
}
|
|
1201
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1202
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1174
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: PcacBarChartHorizontalComponent, deps: [{ token: BarHorizontalChartBuilder }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1175
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.2", type: PcacBarChartHorizontalComponent, 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 }); }
|
|
1203
1176
|
}
|
|
1204
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1177
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: PcacBarChartHorizontalComponent, decorators: [{
|
|
1205
1178
|
type: Component,
|
|
1206
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"] }]
|
|
1207
|
-
}], ctorParameters:
|
|
1180
|
+
}], ctorParameters: () => [{ type: BarHorizontalChartBuilder }], propDecorators: { config: [{
|
|
1208
1181
|
type: Input
|
|
1209
1182
|
}], chartElm: [{
|
|
1210
1183
|
type: ViewChild,
|
|
@@ -1217,11 +1190,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImpor
|
|
|
1217
1190
|
}] } });
|
|
1218
1191
|
|
|
1219
1192
|
class PcacBarHorizontalChartModule {
|
|
1220
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1221
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1222
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
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 }); }
|
|
1223
1196
|
}
|
|
1224
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1197
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: PcacBarHorizontalChartModule, decorators: [{
|
|
1225
1198
|
type: NgModule,
|
|
1226
1199
|
args: [{
|
|
1227
1200
|
exports: [
|
|
@@ -1493,15 +1466,15 @@ class BarVerticalChartBuilder extends PcacChart {
|
|
|
1493
1466
|
return '3px';
|
|
1494
1467
|
});
|
|
1495
1468
|
}
|
|
1496
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1497
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1469
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: BarVerticalChartBuilder, deps: [{ token: PcacAxisBuilder }, { token: PcacGridBuilder }, { token: PcacTransitionService }, { token: PcacTooltipBuilder }, { token: PcacColorService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1470
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: BarVerticalChartBuilder, providedIn: 'root' }); }
|
|
1498
1471
|
}
|
|
1499
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1472
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: BarVerticalChartBuilder, decorators: [{
|
|
1500
1473
|
type: Injectable,
|
|
1501
1474
|
args: [{
|
|
1502
1475
|
providedIn: 'root',
|
|
1503
1476
|
}]
|
|
1504
|
-
}], ctorParameters:
|
|
1477
|
+
}], ctorParameters: () => [{ type: PcacAxisBuilder }, { type: PcacGridBuilder }, { type: PcacTransitionService }, { type: PcacTooltipBuilder }, { type: PcacColorService }] });
|
|
1505
1478
|
|
|
1506
1479
|
class PcacBarVerticalChartComponent {
|
|
1507
1480
|
constructor(chartBuilder) {
|
|
@@ -1529,13 +1502,13 @@ class PcacBarVerticalChartComponent {
|
|
|
1529
1502
|
self.buildChart();
|
|
1530
1503
|
}, 300);
|
|
1531
1504
|
}
|
|
1532
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1533
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1505
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: PcacBarVerticalChartComponent, deps: [{ token: BarVerticalChartBuilder }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1506
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.2", type: PcacBarVerticalChartComponent, 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 }); }
|
|
1534
1507
|
}
|
|
1535
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1508
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: PcacBarVerticalChartComponent, decorators: [{
|
|
1536
1509
|
type: Component,
|
|
1537
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"] }]
|
|
1538
|
-
}], ctorParameters:
|
|
1511
|
+
}], ctorParameters: () => [{ type: BarVerticalChartBuilder }], propDecorators: { config: [{
|
|
1539
1512
|
type: Input
|
|
1540
1513
|
}], chartElm: [{
|
|
1541
1514
|
type: ViewChild,
|
|
@@ -1548,11 +1521,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImpor
|
|
|
1548
1521
|
}] } });
|
|
1549
1522
|
|
|
1550
1523
|
class PcacBarVerticalChartModule {
|
|
1551
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1552
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1553
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
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 }); }
|
|
1554
1527
|
}
|
|
1555
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1528
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: PcacBarVerticalChartModule, decorators: [{
|
|
1556
1529
|
type: NgModule,
|
|
1557
1530
|
args: [{
|
|
1558
1531
|
exports: [
|