@the-liberators/ngx-scrumteamsurvey-tools 2.2.81 → 2.2.83
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/results/components/age-indicator/age-indicator.component.mjs +13 -11
- package/fesm2022/the-liberators-ngx-scrumteamsurvey-tools.mjs +12 -10
- package/fesm2022/the-liberators-ngx-scrumteamsurvey-tools.mjs.map +1 -1
- package/lib/results/components/age-indicator/age-indicator.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -7,29 +7,31 @@ export class AgeIndicatorComponent {
|
|
|
7
7
|
}
|
|
8
8
|
ngOnInit() {
|
|
9
9
|
var measureDate = new Date(this.lastMeasured);
|
|
10
|
-
|
|
11
|
-
if (lastMeasuredMonths > 12) {
|
|
12
|
-
lastMeasuredMonths
|
|
10
|
+
this.lastMeasuredMonths = Math.max(0, (new Date().getFullYear() - measureDate.getFullYear()) * 12 - measureDate.getMonth() + new Date().getMonth());
|
|
11
|
+
if (this.lastMeasuredMonths > 12) {
|
|
12
|
+
this.lastMeasuredMonths = 12;
|
|
13
13
|
}
|
|
14
|
-
this.
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
if (this.lastMeasuredMonths < 1) {
|
|
15
|
+
this.lastMeasuredMonths = 1;
|
|
16
|
+
}
|
|
17
|
+
this.lastMeasuredOpacity = 1 - (this.lastMeasuredMonths / 14);
|
|
18
|
+
if (this.lastMeasuredMonths <= 1) {
|
|
17
19
|
this.lastMeasuredTooltip = 'This factor was last measured 1 month or less ago. It is fresh data.';
|
|
18
20
|
}
|
|
19
|
-
else if (lastMeasuredMonths >= 12) {
|
|
21
|
+
else if (this.lastMeasuredMonths >= 12) {
|
|
20
22
|
this.lastMeasuredTooltip = 'This factor was last measured 12 month or more ago. We recommend to measure this again to keep data fresh.';
|
|
21
23
|
}
|
|
22
24
|
else {
|
|
23
|
-
this.lastMeasuredTooltip = 'This factor was last measured ' + lastMeasuredMonths + ' month or more ago. The fresher your data, the more reliable it is.';
|
|
25
|
+
this.lastMeasuredTooltip = 'This factor was last measured ' + this.lastMeasuredMonths + ' month or more ago. The fresher your data, the more reliable it is.';
|
|
24
26
|
}
|
|
25
27
|
}
|
|
26
28
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: AgeIndicatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
27
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.1", type: AgeIndicatorComponent, selector: "age-indicator", inputs: { lastMeasured: "lastMeasured" }, ngImport: i0, template: "<div class=\"age-indicator\" [style.opacity]=\"lastMeasuredOpacity\" [matTooltip]=\"lastMeasuredTooltip\" *ngIf=\"
|
|
29
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.1", type: AgeIndicatorComponent, selector: "age-indicator", inputs: { lastMeasured: "lastMeasured" }, ngImport: i0, template: "<div class=\"age-indicator\" [style.opacity]=\"lastMeasuredOpacity\" [matTooltip]=\"lastMeasuredTooltip\" *ngIf=\"lastMeasuredMonths > 0\">\n <div class=\"age-indicator-dot\" *ngFor=\"let e of [].constructor(lastMeasuredMonths); let i = index\"></div>\n</div>\n", styles: [".smallTextUppercase{font-family:StevieSansThin,sans-serif;font-style:normal;font-weight:400;font-size:15px;line-height:140%;text-transform:uppercase;line-height:100%}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }] }); }
|
|
28
30
|
}
|
|
29
31
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: AgeIndicatorComponent, decorators: [{
|
|
30
32
|
type: Component,
|
|
31
|
-
args: [{ selector: 'age-indicator', template: "<div class=\"age-indicator\" [style.opacity]=\"lastMeasuredOpacity\" [matTooltip]=\"lastMeasuredTooltip\" *ngIf=\"
|
|
33
|
+
args: [{ selector: 'age-indicator', template: "<div class=\"age-indicator\" [style.opacity]=\"lastMeasuredOpacity\" [matTooltip]=\"lastMeasuredTooltip\" *ngIf=\"lastMeasuredMonths > 0\">\n <div class=\"age-indicator-dot\" *ngFor=\"let e of [].constructor(lastMeasuredMonths); let i = index\"></div>\n</div>\n", styles: [".smallTextUppercase{font-family:StevieSansThin,sans-serif;font-style:normal;font-weight:400;font-size:15px;line-height:140%;text-transform:uppercase;line-height:100%}\n"] }]
|
|
32
34
|
}], ctorParameters: () => [], propDecorators: { lastMeasured: [{
|
|
33
35
|
type: Input
|
|
34
36
|
}] } });
|
|
35
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
37
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWdlLWluZGljYXRvci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ3gtc2NydW10ZWFtc3VydmV5LXRvb2xzL3NyYy9saWIvcmVzdWx0cy9jb21wb25lbnRzL2FnZS1pbmRpY2F0b3IvYWdlLWluZGljYXRvci5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ3gtc2NydW10ZWFtc3VydmV5LXRvb2xzL3NyYy9saWIvcmVzdWx0cy9jb21wb25lbnRzL2FnZS1pbmRpY2F0b3IvYWdlLWluZGljYXRvci5jb21wb25lbnQuaHRtbCJdLCJuY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mFjdG9yIHdhcyBsYXN0IG1lYXN1cmVkICcgKyB0aGlzLmxhc3RNZWFzdXJlZE1vbnRocyArICcgbW9udGggb3IgbW9yZSBhZ28uIFRoZSBmcmVzaGVyIHlvdXIgZGF0YSwgdGhlIG1vcmUgcmVsaWFibGUgaXQgaXMuJztcbiAgICAgIH1cbiAgfVxuICBcbn1cbiIsIjxkaXYgY2xhc3M9XCJhZ2UtaW5kaWNhdG9yXCIgW3N0eWxlLm9wYWNpdHldPVwibGFzdE1lYXN1cmVkT3BhY2l0eVwiIFttYXRUb29sdGlwXT1cImxhc3RNZWFzdXJlZFRvb2x0aXBcIiAqbmdJZj1cImxhc3RNZWFzdXJlZE1vbnRocyA+IDBcIj5cbiAgIDxkaXYgY2xhc3M9XCJhZ2UtaW5kaWNhdG9yLWRvdFwiICpuZ0Zvcj1cImxldCBlIG9mIFtdLmNvbnN0cnVjdG9yKGxhc3RNZWFzdXJlZE1vbnRocyk7IGxldCBpID0gaW5kZXhcIj48L2Rpdj5cbjwvZGl2PlxuIl19
|
|
@@ -5568,28 +5568,30 @@ class AgeIndicatorComponent {
|
|
|
5568
5568
|
}
|
|
5569
5569
|
ngOnInit() {
|
|
5570
5570
|
var measureDate = new Date(this.lastMeasured);
|
|
5571
|
-
|
|
5572
|
-
if (lastMeasuredMonths > 12) {
|
|
5573
|
-
lastMeasuredMonths
|
|
5571
|
+
this.lastMeasuredMonths = Math.max(0, (new Date().getFullYear() - measureDate.getFullYear()) * 12 - measureDate.getMonth() + new Date().getMonth());
|
|
5572
|
+
if (this.lastMeasuredMonths > 12) {
|
|
5573
|
+
this.lastMeasuredMonths = 12;
|
|
5574
5574
|
}
|
|
5575
|
-
this.
|
|
5576
|
-
|
|
5577
|
-
|
|
5575
|
+
if (this.lastMeasuredMonths < 1) {
|
|
5576
|
+
this.lastMeasuredMonths = 1;
|
|
5577
|
+
}
|
|
5578
|
+
this.lastMeasuredOpacity = 1 - (this.lastMeasuredMonths / 14);
|
|
5579
|
+
if (this.lastMeasuredMonths <= 1) {
|
|
5578
5580
|
this.lastMeasuredTooltip = 'This factor was last measured 1 month or less ago. It is fresh data.';
|
|
5579
5581
|
}
|
|
5580
|
-
else if (lastMeasuredMonths >= 12) {
|
|
5582
|
+
else if (this.lastMeasuredMonths >= 12) {
|
|
5581
5583
|
this.lastMeasuredTooltip = 'This factor was last measured 12 month or more ago. We recommend to measure this again to keep data fresh.';
|
|
5582
5584
|
}
|
|
5583
5585
|
else {
|
|
5584
|
-
this.lastMeasuredTooltip = 'This factor was last measured ' + lastMeasuredMonths + ' month or more ago. The fresher your data, the more reliable it is.';
|
|
5586
|
+
this.lastMeasuredTooltip = 'This factor was last measured ' + this.lastMeasuredMonths + ' month or more ago. The fresher your data, the more reliable it is.';
|
|
5585
5587
|
}
|
|
5586
5588
|
}
|
|
5587
5589
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: AgeIndicatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5588
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.1", type: AgeIndicatorComponent, selector: "age-indicator", inputs: { lastMeasured: "lastMeasured" }, ngImport: i0, template: "<div class=\"age-indicator\" [style.opacity]=\"lastMeasuredOpacity\" [matTooltip]=\"lastMeasuredTooltip\" *ngIf=\"
|
|
5590
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.1", type: AgeIndicatorComponent, selector: "age-indicator", inputs: { lastMeasured: "lastMeasured" }, ngImport: i0, template: "<div class=\"age-indicator\" [style.opacity]=\"lastMeasuredOpacity\" [matTooltip]=\"lastMeasuredTooltip\" *ngIf=\"lastMeasuredMonths > 0\">\n <div class=\"age-indicator-dot\" *ngFor=\"let e of [].constructor(lastMeasuredMonths); let i = index\"></div>\n</div>\n", styles: [".smallTextUppercase{font-family:StevieSansThin,sans-serif;font-style:normal;font-weight:400;font-size:15px;line-height:140%;text-transform:uppercase;line-height:100%}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }] }); }
|
|
5589
5591
|
}
|
|
5590
5592
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImport: i0, type: AgeIndicatorComponent, decorators: [{
|
|
5591
5593
|
type: Component,
|
|
5592
|
-
args: [{ selector: 'age-indicator', template: "<div class=\"age-indicator\" [style.opacity]=\"lastMeasuredOpacity\" [matTooltip]=\"lastMeasuredTooltip\" *ngIf=\"
|
|
5594
|
+
args: [{ selector: 'age-indicator', template: "<div class=\"age-indicator\" [style.opacity]=\"lastMeasuredOpacity\" [matTooltip]=\"lastMeasuredTooltip\" *ngIf=\"lastMeasuredMonths > 0\">\n <div class=\"age-indicator-dot\" *ngFor=\"let e of [].constructor(lastMeasuredMonths); let i = index\"></div>\n</div>\n", styles: [".smallTextUppercase{font-family:StevieSansThin,sans-serif;font-style:normal;font-weight:400;font-size:15px;line-height:140%;text-transform:uppercase;line-height:100%}\n"] }]
|
|
5593
5595
|
}], ctorParameters: () => [], propDecorators: { lastMeasured: [{
|
|
5594
5596
|
type: Input
|
|
5595
5597
|
}] } });
|