Skip to content

Commit a9f0d14

Browse files
committed
Update Angular
1 parent 00389e5 commit a9f0d14

File tree

12 files changed

+6003
-5105
lines changed

12 files changed

+6003
-5105
lines changed

src/AngularComponents/package-lock.json

+5,958-5,068
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/AngularComponents/package.json

+12-12
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,22 @@
1010
"private": true,
1111
"dependencies": {
1212
"@angular-slider/ngx-slider": "^18.0.0",
13-
"@angular/animations": "^18.2.12",
14-
"@angular/common": "^18.2.12",
15-
"@angular/compiler": "^18.2.12",
16-
"@angular/core": "^18.2.12",
17-
"@angular/forms": "^18.2.12",
18-
"@angular/platform-browser": "^18.2.12",
19-
"@angular/platform-browser-dynamic": "^18.2.12",
20-
"@angular/router": "^18.2.12",
13+
"@angular/animations": "^19.0.5",
14+
"@angular/common": "^19.0.5",
15+
"@angular/compiler": "^19.0.5",
16+
"@angular/core": "^19.0.5",
17+
"@angular/forms": "^19.0.5",
18+
"@angular/platform-browser": "^19.0.5",
19+
"@angular/platform-browser-dynamic": "^19.0.5",
20+
"@angular/router": "^19.0.5",
2121
"rxjs": "~7.8.1",
2222
"tslib": "^2.6.3",
23-
"zone.js": "~0.14.10"
23+
"zone.js": "~0.15.0"
2424
},
2525
"devDependencies": {
26-
"@angular-devkit/build-angular": "^18.2.12",
27-
"@angular/cli": "^18.2.12",
28-
"@angular/compiler-cli": "^18.2.12",
26+
"@angular-devkit/build-angular": "^19.0.6",
27+
"@angular/cli": "^19.0.6",
28+
"@angular/compiler-cli": "^19.0.5",
2929
"@types/node": "^12.11.1",
3030
"typescript": "~5.5.3"
3131
}

src/AngularComponents/src/app/components/coverageinfo/class-row.component.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { Metric } from "./data/metric.class";
33
import { ClassViewModel } from "./viewmodels/class-viewmodel.class";
44

55
@Component({
6-
selector: "[class-row]",
7-
template: `
6+
selector: "[class-row]",
7+
template: `
88
<td>
99
<a [href]="clazz.reportPath" *ngIf="clazz.reportPath !== ''">{{clazz.name}}</a>
1010
<ng-container *ngIf="clazz.reportPath === ''">{{clazz.name}}</ng-container>
@@ -151,7 +151,8 @@ import { ClassViewModel } from "./viewmodels/class-viewmodel.class";
151151
</td>
152152
<td class="right" *ngIf="methodCoverageAvailable"><coverage-bar [percentage]="clazz.methodCoverage"></coverage-bar></td>
153153
<td class="right" *ngFor="let metric of visibleMetrics">{{ clazz.metrics[metric.abbreviation] }}</td>`,
154-
changeDetection: ChangeDetectionStrategy.OnPush
154+
changeDetection: ChangeDetectionStrategy.OnPush,
155+
standalone: false
155156
})
156157
export class ClassRow {
157158
@Input() clazz!: ClassViewModel;

src/AngularComponents/src/app/components/coverageinfo/codeelement-row.component.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { Metric } from "./data/metric.class";
33
import { CodeElementViewModel } from "./viewmodels/codelement-viewmodel.class";
44

55
@Component({
6-
selector: "[codeelement-row]",
7-
template: `
6+
selector: "[codeelement-row]",
7+
template: `
88
<th><a href="#" (click)="element.toggleCollapse($event)">
99
<i [ngClass]="{'icon-plus': element.collapsed, 'icon-minus': !element.collapsed}"></i>
1010
{{element.name}}</a>
@@ -28,7 +28,8 @@ import { CodeElementViewModel } from "./viewmodels/codelement-viewmodel.class";
2828
<coverage-bar [percentage]="element.methodCoverage"></coverage-bar>
2929
</th>
3030
<th class="right" *ngFor="let metric of visibleMetrics"></th>`,
31-
changeDetection: ChangeDetectionStrategy.OnPush
31+
changeDetection: ChangeDetectionStrategy.OnPush,
32+
standalone: false
3233
})
3334
export class CodeElementRow {
3435
@Input() element!: CodeElementViewModel;

src/AngularComponents/src/app/components/coverageinfo/coverage-bar.component.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
import { ChangeDetectionStrategy, Component, Input } from "@angular/core";
22

33
@Component({
4-
selector: "coverage-bar",
5-
template: `
4+
selector: "coverage-bar",
5+
template: `
66
<table class="coverage">
77
<td class="gray covered100" *ngIf="grayVisible"> </td>
88
<td class="green {{greenClass}}" *ngIf="greenVisible"> </td>
99
<td class="red {{redClass}}" *ngIf="redVisible"> </td>
1010
</table>`,
11-
changeDetection: ChangeDetectionStrategy.OnPush
11+
changeDetection: ChangeDetectionStrategy.OnPush,
12+
standalone: false
1213
})
1314
export class CoverageBarComponent {
1415
grayVisible: boolean = true;

src/AngularComponents/src/app/components/coverageinfo/coverage-history-chart.component.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@ import { ChangeDetectionStrategy, Component, Input } from "@angular/core";
22
import { Helper } from './viewmodels/helper.class';
33

44
@Component({
5-
selector: "[coverage-history-chart]",
6-
template: `
5+
selector: "[coverage-history-chart]",
6+
template: `
77
<svg width="30" height="18" class="ct-chart-line">
88
<g class="ct-series ct-series-a">
99
<path [attr.d]="path" class="ct-line"></path>
1010
</g>
1111
</svg>`,
12-
changeDetection: ChangeDetectionStrategy.OnPush
12+
changeDetection: ChangeDetectionStrategy.OnPush,
13+
standalone: false
1314
})
1415
export class CoverageHistoryChartComponent {
1516
path: string|null = null;

src/AngularComponents/src/app/components/coverageinfo/coverage-info.component.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import { CodeElementViewModel } from "./viewmodels/codelement-viewmodel.class";
1010
import { Helper } from "./viewmodels/helper.class";
1111

1212
@Component({
13-
selector: "coverage-info",
14-
template: `
13+
selector: "coverage-info",
14+
template: `
1515
<div *ngIf="codeElements.length > 0">
1616
<popup *ngIf="popupVisible"
1717
[(visible)]="popupVisible"
@@ -234,7 +234,8 @@ import { Helper } from "./viewmodels/helper.class";
234234
</tbody>
235235
</table>
236236
</div>
237-
</div>`
237+
</div>`,
238+
standalone: false
238239
})
239240
export class CoverageInfoComponent {
240241
window: Window;

src/AngularComponents/src/app/components/coverageinfo/popup.component.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { Component, EventEmitter, Input, Output } from "@angular/core";
22
import { Metric } from "./data/metric.class";
33

44
@Component({
5-
selector: "popup",
6-
template: `
5+
selector: "popup",
6+
template: `
77
<div class="popup-container" (click)="close()">
88
<div class="popup" (click)="cancelEvent($event)">
99
<div class="close" (click)="close()">X</div>
@@ -26,7 +26,8 @@ import { Metric } from "./data/metric.class";
2626
</div>
2727
</ng-container>
2828
</div>
29-
</div>`
29+
</div>`,
30+
standalone: false
3031
})
3132
export class PopupComponent {
3233
@Input() visible: boolean = false;

src/AngularComponents/src/app/components/coverageinfo/pro-button.component.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import { Component, Input } from "@angular/core";
22

33
@Component({
4-
selector: "pro-button",
5-
template: `&nbsp;<a href="https://reportgenerator.io/pro" class="pro-button pro-button-tiny" target="_blank" title="{{ translations.methodCoverageProVersion}}">PRO</a>`
4+
selector: "pro-button",
5+
template: `&nbsp;<a href="https://reportgenerator.io/pro" class="pro-button pro-button-tiny" target="_blank" title="{{ translations.methodCoverageProVersion}}">PRO</a>`,
6+
standalone: false
67
})
78
export class ProButton {
89
@Input() translations: any = { };

src/AngularComponents/src/app/components/riskhotspots/riskhotspots.component.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import { RiskHotspot } from "./data/riskhotspot.class";
66
import { RiskHotspotsSettings } from "./data/riskhotspots-settings.class";
77

88
@Component({
9-
selector: "risk-hotspots",
10-
template: `
9+
selector: "risk-hotspots",
10+
template: `
1111
<div *ngIf="totalNumberOfRiskHotspots > 0">
1212
<div class="customizebox">
1313
<div>
@@ -81,7 +81,8 @@ import { RiskHotspotsSettings } from "./data/riskhotspots-settings.class";
8181
</div>
8282
</div>
8383
`,
84-
styles: []
84+
styles: [],
85+
standalone: false
8586
})
8687
export class RiskHotspotsComponent implements OnInit {
8788
window: Window;

src/ReportGenerator.Core/Reporting/Builders/Rendering/resources/main.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/ReportGenerator.Core/Reporting/Builders/Rendering/resources/polyfills.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)