Skip to content

Commit 26a5567

Browse files
committed
(#262) Upgrade Angular 19
1 parent ace5077 commit 26a5567

25 files changed

+4425
-3195
lines changed

src/UIs/angular/package-lock.json

+4,319-3,112
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/UIs/angular/package.json

+26-26
Original file line numberDiff line numberDiff line change
@@ -11,49 +11,49 @@
1111
},
1212
"private": true,
1313
"dependencies": {
14-
"@angular/animations": "^18.0.5",
15-
"@angular/common": "^18.0.5",
16-
"@angular/compiler": "^18.0.5",
17-
"@angular/core": "^18.0.5",
18-
"@angular/forms": "^18.0.5",
19-
"@angular/platform-browser": "^18.0.5",
20-
"@angular/platform-browser-dynamic": "^18.0.5",
21-
"@angular/router": "^18.0.5",
22-
"@microsoft/signalr": "^7.0.14",
23-
"@ngrx/effects": "^18.0.1",
24-
"@ngrx/store": "^18.0.1",
25-
"@ngrx/store-devtools": "^18.0.1",
14+
"@angular/animations": "^19.0.5",
15+
"@angular/common": "^19.0.5",
16+
"@angular/compiler": "^19.0.5",
17+
"@angular/core": "^19.0.5",
18+
"@angular/forms": "^19.0.5",
19+
"@angular/platform-browser": "^19.0.5",
20+
"@angular/platform-browser-dynamic": "^19.0.5",
21+
"@angular/router": "^19.0.5",
22+
"@microsoft/signalr": "^8.0.7",
23+
"@ngrx/effects": "^19.0.0",
24+
"@ngrx/store": "^19.0.0",
25+
"@ngrx/store-devtools": "^19.0.0",
2626
"bootstrap": "^5.3.3",
2727
"font-awesome": "^4.7.0",
28-
"ngx-bootstrap": "^18.0.0",
28+
"ngx-bootstrap": "^19.0.1",
2929
"ngx-toastr": "^19.0.0",
3030
"oidc-client": "^1.11.5",
31-
"oidc-client-ts": "^3.0.1",
31+
"oidc-client-ts": "^3.1.0",
3232
"rxjs": "^7.8.0",
3333
"tslib": "^2.6.3",
34-
"zone.js": "^0.14.7",
35-
"@ngrx/operators": "^18.0.0"
34+
"zone.js": "^0.15.0",
35+
"@ngrx/operators": "^19.0.0"
3636
},
3737
"devDependencies": {
38-
"@angular-devkit/build-angular": "^18.0.6",
39-
"@angular/cli": "^18.0.6",
40-
"@angular/compiler-cli": "^18.0.5",
41-
"@angular/language-service": "^18.0.5",
42-
"@types/jasmine": "^5.1.4",
38+
"@angular-devkit/build-angular": "^19.0.6",
39+
"@angular/cli": "^19.0.6",
40+
"@angular/compiler-cli": "^19.0.5",
41+
"@angular/language-service": "^19.0.5",
42+
"@types/jasmine": "^5.1.5",
4343
"@types/jasminewd2": "^2.0.13",
44-
"@types/node": "^20.14.9",
44+
"@types/node": "^22.10.2",
4545
"codelyzer": "^6.0.2",
46-
"jasmine-core": "~5.1.2",
46+
"jasmine-core": "~5.5.0",
4747
"jasmine-spec-reporter": "~7.0.0",
48-
"karma": "^6.4.3",
48+
"karma": "^6.4.4",
4949
"karma-chrome-launcher": "^3.1.1",
5050
"karma-coverage-istanbul-reporter": "~3.0.2",
5151
"karma-jasmine": "^5.1.0",
5252
"karma-jasmine-html-reporter": "^2.0.0",
53-
"prettier": "3.3.2",
53+
"prettier": "3.4.2",
5454
"protractor": "~7.0.0",
5555
"ts-node": "~10.9.2",
5656
"tslint": "~6.1.0",
57-
"typescript": "~5.4.5"
57+
"typescript": "~5.6.3"
5858
}
5959
}
+4-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import { Component } from "@angular/core";
22

33
@Component({
4-
selector: "app-root",
5-
templateUrl: "./app.component.html",
6-
styleUrls: ["./app.component.css"]
4+
selector: "app-root",
5+
templateUrl: "./app.component.html",
6+
styleUrls: ["./app.component.css"],
7+
standalone: false
78
})
89
export class AppComponent {}

src/UIs/angular/src/app/auditlogs/audit-log-list.component.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ import { AuditLogState } from "./audit-log.reducer";
55
import * as actions from "./audit-log.actions";
66

77
@Component({
8-
selector: "app-audit-log-list",
9-
templateUrl: "./audit-log-list.component.html",
10-
styleUrls: ["./audit-log-list.component.css"],
8+
selector: "app-audit-log-list",
9+
templateUrl: "./audit-log-list.component.html",
10+
styleUrls: ["./audit-log-list.component.css"],
11+
standalone: false
1112
})
1213
export class AuditLogListComponent implements OnInit {
1314
auditLogs: IAuditLogEntry[] = [];

src/UIs/angular/src/app/auth/oidc-login-redirect.component.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import { ActivatedRoute } from "@angular/router";
55
import { environment } from "src/environments/environment";
66

77
@Component({
8-
template: "<div>Loading ...</div>",
8+
template: "<div>Loading ...</div>",
9+
standalone: false
910
})
1011
export class OidcLoginRedirect implements OnInit {
1112
constructor(private route: ActivatedRoute) {}

src/UIs/angular/src/app/core/nav.component.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ import { Component, OnInit } from "@angular/core";
22
import { AuthService } from "../auth/auth.service";
33

44
@Component({
5-
selector: "app-nav",
6-
templateUrl: "./nav.component.html",
7-
styleUrls: ["./nav.component.css"]
5+
selector: "app-nav",
6+
templateUrl: "./nav.component.html",
7+
styleUrls: ["./nav.component.css"],
8+
standalone: false
89
})
910
export class NavComponent implements OnInit {
1011
pageTitle = "ClassifiedAds.Angular";

src/UIs/angular/src/app/core/notification.component.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ import { AuthService } from "../auth/auth.service";
66
import { environment } from "src/environments/environment";
77

88
@Component({
9-
selector: "app-notification",
10-
template: "",
9+
selector: "app-notification",
10+
template: "",
11+
standalone: false
1112
})
1213
export class NotificationComponent implements OnInit {
1314
constructor(public auth: AuthService, private toastr: ToastrService) {}

src/UIs/angular/src/app/core/welcome.component.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import { Component, VERSION } from "@angular/core";
22
import { Title } from "@angular/platform-browser";
33

44
@Component({
5-
templateUrl: "./welcome.component.html"
5+
templateUrl: "./welcome.component.html",
6+
standalone: false
67
})
78
export class WelcomeComponent {
89
public pageTitle = "Welcome ClassifiedAds Angular";

src/UIs/angular/src/app/files/edit-file/edit-file.component.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ import { BsModalService } from "ngx-bootstrap/modal";
88
import { GuidEmpty } from "src/app/shared/constants";
99

1010
@Component({
11-
selector: "app-edit-file",
12-
templateUrl: "./edit-file.component.html",
13-
styleUrls: ["./edit-file.component.css"],
11+
selector: "app-edit-file",
12+
templateUrl: "./edit-file.component.html",
13+
styleUrls: ["./edit-file.component.css"],
14+
standalone: false
1415
})
1516
export class EditFileComponent implements OnInit {
1617
file: IFile = {

src/UIs/angular/src/app/files/list-files/list-files.component.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ import { BsModalService, BsModalRef } from "ngx-bootstrap/modal";
55
import { IAuditLogEntry } from "src/app/auditlogs/audit-log";
66

77
@Component({
8-
selector: "app-list-files",
9-
templateUrl: "./list-files.component.html",
10-
styleUrls: ["./list-files.component.css"],
8+
selector: "app-list-files",
9+
templateUrl: "./list-files.component.html",
10+
styleUrls: ["./list-files.component.css"],
11+
standalone: false
1112
})
1213
export class ListFilesComponent implements OnInit {
1314
files: IFile[] = [];

src/UIs/angular/src/app/files/upload-file/upload-file.component.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ import { NgModel, NgForm } from "@angular/forms";
66
import { GuidEmpty } from "src/app/shared/constants";
77

88
@Component({
9-
selector: "app-upload-file",
10-
templateUrl: "./upload-file.component.html",
11-
styleUrls: ["./upload-file.component.css"],
9+
selector: "app-upload-file",
10+
templateUrl: "./upload-file.component.html",
11+
styleUrls: ["./upload-file.component.css"],
12+
standalone: false
1213
})
1314
export class UploadFileComponent implements OnInit {
1415
file: IFile = {

src/UIs/angular/src/app/products/add-product/add-product.component.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ import { Router } from "@angular/router";
66
import { GuidEmpty } from "src/app/shared/constants";
77

88
@Component({
9-
templateUrl: "./add-product.component.html",
10-
styleUrls: ["./add-product.component.css"],
9+
templateUrl: "./add-product.component.html",
10+
styleUrls: ["./add-product.component.css"],
11+
standalone: false
1112
})
1213
export class AddProductComponent implements OnInit {
1314
product: IProduct = {

src/UIs/angular/src/app/products/delete-product/delete-product.component.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ import { BsModalService, BsModalRef } from "ngx-bootstrap/modal";
1010
import { IProduct } from "../product";
1111

1212
@Component({
13-
selector: "app-delete-product",
14-
templateUrl: "./delete-product.component.html",
15-
styleUrls: ["./delete-product.component.css"]
13+
selector: "app-delete-product",
14+
templateUrl: "./delete-product.component.html",
15+
styleUrls: ["./delete-product.component.css"],
16+
standalone: false
1617
})
1718
export class DeleteProductComponent implements OnInit {
1819
@Input() product: IProduct;

src/UIs/angular/src/app/products/edit-product/edit-product.component.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ import { IProduct } from "../product";
77
import { ProductService } from "../product.service";
88

99
@Component({
10-
selector: "app-edit-product",
11-
templateUrl: "./edit-product.component.html",
12-
styleUrls: ["./edit-product.component.css"]
10+
selector: "app-edit-product",
11+
templateUrl: "./edit-product.component.html",
12+
styleUrls: ["./edit-product.component.css"],
13+
standalone: false
1314
})
1415
export class EditProductComponent implements OnInit {
1516
product: IProduct;

src/UIs/angular/src/app/products/list-products/list-products.component.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ import { BsModalRef, BsModalService } from "ngx-bootstrap/modal";
88
import { NgForm } from "@angular/forms";
99

1010
@Component({
11-
templateUrl: "./list-products.component.html",
12-
styleUrls: ["./list-products.component.css"],
11+
templateUrl: "./list-products.component.html",
12+
styleUrls: ["./list-products.component.css"],
13+
standalone: false
1314
})
1415
export class ListProductsComponent implements OnInit {
1516
pageTitle = "Product List";

src/UIs/angular/src/app/products/view-product-details/product-detail.component.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ import { BsModalService } from "ngx-bootstrap/modal";
77
import { IAuditLogEntry } from "../../auditlogs/audit-log";
88

99
@Component({
10-
templateUrl: "./product-detail.component.html",
11-
styleUrls: ["./product-detail.component.css"],
10+
templateUrl: "./product-detail.component.html",
11+
styleUrls: ["./product-detail.component.css"],
12+
standalone: false
1213
})
1314
export class ProductDetailComponent implements OnInit {
1415
pageTitle = "Product Detail";

src/UIs/angular/src/app/settings/configuration-entry-list.component.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ import { NgForm } from "@angular/forms";
66
import { GuidEmpty } from "../shared/constants";
77

88
@Component({
9-
selector: "app-configuration-entry-list",
10-
templateUrl: "./configuration-entry-list.component.html",
11-
styleUrls: ["./configuration-entry-list.component.css"],
9+
selector: "app-configuration-entry-list",
10+
templateUrl: "./configuration-entry-list.component.html",
11+
styleUrls: ["./configuration-entry-list.component.css"],
12+
standalone: false
1213
})
1314
export class ConfigurationEntryListComponent implements OnInit {
1415
GuidEmpty = GuidEmpty;

src/UIs/angular/src/app/shared/append-current-datetime.pipe.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import { Pipe, PipeTransform } from "@angular/core";
22

33
@Pipe({
4-
name: "appendCurrentDateTime"
4+
name: "appendCurrentDateTime",
5+
standalone: false
56
})
67
export class AppendCurrentDateTimePipe implements PipeTransform {
78
transform(value: string, prefix: string = " "): string {

src/UIs/angular/src/app/shared/append-version.pipe.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import { Pipe, PipeTransform, VERSION } from "@angular/core";
22

33
@Pipe({
4-
name: "appendVersion"
4+
name: "appendVersion",
5+
standalone: false
56
})
67
export class AppendVersionPipe implements PipeTransform {
78
transform(value: string, prefix: string = " v"): string {

src/UIs/angular/src/app/shared/pagination.component.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import { Component, EventEmitter, Input, OnChanges, Output } from "@angular/core";
22

33
@Component({
4-
selector: "app-pagination",
5-
templateUrl: "./pagination.component.html",
6-
styleUrls: ["./pagination.component.css"],
4+
selector: "app-pagination",
5+
templateUrl: "./pagination.component.html",
6+
styleUrls: ["./pagination.component.css"],
7+
standalone: false
78
})
89
export class PaginationComponent implements OnChanges {
910
pageNumbers: Array<number> = [];

src/UIs/angular/src/app/shared/star.component.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import { Component, OnChanges, Input, EventEmitter, Output } from '@angular/core';
22

33
@Component({
4-
selector: 'pm-star',
5-
templateUrl: './star.component.html',
6-
styleUrls: ['./star.component.css']
4+
selector: 'pm-star',
5+
templateUrl: './star.component.html',
6+
styleUrls: ['./star.component.css'],
7+
standalone: false
78
})
89
export class StarComponent implements OnChanges {
910
@Input() rating = 0;

src/UIs/angular/src/app/shared/timer.component.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import { Component, OnInit, OnDestroy } from "@angular/core";
22

33
@Component({
4-
selector: "app-timer",
5-
templateUrl: "./timer.component.html",
6-
styleUrls: [],
4+
selector: "app-timer",
5+
templateUrl: "./timer.component.html",
6+
styleUrls: [],
7+
standalone: false
78
})
89
export class TimerComponent implements OnInit, OnDestroy {
910
interval: any;

src/UIs/angular/src/app/users/add-edit-user/add-edit-user.component.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ import { NgModel, NgForm } from "@angular/forms";
66
import { GuidEmpty } from "src/app/shared/constants";
77

88
@Component({
9-
selector: "app-add-edit-user",
10-
templateUrl: "./add-edit-user.component.html",
11-
styleUrls: ["./add-edit-user.component.css"],
9+
selector: "app-add-edit-user",
10+
templateUrl: "./add-edit-user.component.html",
11+
styleUrls: ["./add-edit-user.component.css"],
12+
standalone: false
1213
})
1314
export class AddEditUserComponent implements OnInit {
1415
formMode: string = "add";

src/UIs/angular/src/app/users/list-users/list-users.component.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ import { BsModalRef, BsModalService } from "ngx-bootstrap/modal";
55
import { UserService } from "../user.service";
66

77
@Component({
8-
selector: "app-list-users",
9-
templateUrl: "./list-users.component.html",
10-
styleUrls: ["./list-users.component.css"],
8+
selector: "app-list-users",
9+
templateUrl: "./list-users.component.html",
10+
styleUrls: ["./list-users.component.css"],
11+
standalone: false
1112
})
1213
export class ListUsersComponent implements OnInit {
1314
users: IUser[] = [];

src/UIs/angular/src/app/users/view-user-details/view-user-details.component.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ import { BsModalService, BsModalRef } from "ngx-bootstrap/modal";
66
import { NgForm } from "@angular/forms";
77

88
@Component({
9-
selector: "app-view-user-details",
10-
templateUrl: "./view-user-details.component.html",
11-
styleUrls: ["./view-user-details.component.css"],
9+
selector: "app-view-user-details",
10+
templateUrl: "./view-user-details.component.html",
11+
styleUrls: ["./view-user-details.component.css"],
12+
standalone: false
1213
})
1314
export class ViewUserDetailsComponent implements OnInit {
1415
user: IUser = null;

0 commit comments

Comments
 (0)