From 9c53344f37fec4ab0dcf712e0f790c9e4baa2415 Mon Sep 17 00:00:00 2001 From: Quentin Date: Wed, 20 Nov 2024 20:35:51 +0100 Subject: [PATCH] Angular 19 --- .../admin/health/health.component.ts.mustache | 1 - .../modal/health-modal.component.ts.mustache | 1 - .../main/webapp/app/app.component.ts.mustache | 1 - .../client/angular/core/tsconfig.json | 1 + .../app/login/login.component.ts.mustache | 1 - .../app/login/login.component.ts.mustache | 1 - .../dependencies/angular/package.json | 18 +++++++++--------- .../projects/angular/app.component.ts | 1 - 8 files changed, 10 insertions(+), 15 deletions(-) diff --git a/src/main/resources/generator/client/angular/admin/src/main/webapp/app/admin/health/health.component.ts.mustache b/src/main/resources/generator/client/angular/admin/src/main/webapp/app/admin/health/health.component.ts.mustache index 177fea7d272..46345ea9192 100644 --- a/src/main/resources/generator/client/angular/admin/src/main/webapp/app/admin/health/health.component.ts.mustache +++ b/src/main/resources/generator/client/angular/admin/src/main/webapp/app/admin/health/health.component.ts.mustache @@ -13,7 +13,6 @@ import { HealthModalComponent } from './modal/health-modal.component'; selector: 'jhi-health', templateUrl: './health.component.html', imports: [CommonModule, MatDialogModule, MatIconModule, MatButtonModule, MatTableModule], - standalone: true, styleUrl: './health.component.css', }) export default class HealthComponent implements OnInit { diff --git a/src/main/resources/generator/client/angular/admin/src/main/webapp/app/admin/health/modal/health-modal.component.ts.mustache b/src/main/resources/generator/client/angular/admin/src/main/webapp/app/admin/health/modal/health-modal.component.ts.mustache index 01b22c16008..d91690703e7 100644 --- a/src/main/resources/generator/client/angular/admin/src/main/webapp/app/admin/health/modal/health-modal.component.ts.mustache +++ b/src/main/resources/generator/client/angular/admin/src/main/webapp/app/admin/health/modal/health-modal.component.ts.mustache @@ -11,7 +11,6 @@ import { HealthDetails } from '../health.model'; selector: 'jhi-health-modal', templateUrl: './health-modal.component.html', imports: [CommonModule, MatDialogModule, MatIconModule, MatButtonModule, MatTableModule], - standalone: true, styleUrl: './health-modal.component.css', }) export class HealthModalComponent { diff --git a/src/main/resources/generator/client/angular/core/src/main/webapp/app/app.component.ts.mustache b/src/main/resources/generator/client/angular/core/src/main/webapp/app/app.component.ts.mustache index 6dbd4d0f563..35ca4145a8b 100644 --- a/src/main/resources/generator/client/angular/core/src/main/webapp/app/app.component.ts.mustache +++ b/src/main/resources/generator/client/angular/core/src/main/webapp/app/app.component.ts.mustache @@ -11,7 +11,6 @@ import { MatToolbarModule } from '@angular/material/toolbar'; selector: 'jhi-root', templateUrl: './app.component.html', imports: [CommonModule, RouterModule, MatMenuModule, MatToolbarModule, MatIconModule, MatButtonModule, NgOptimizedImage], - standalone: true, styleUrl: './app.component.css', }) export class AppComponent implements OnInit { diff --git a/src/main/resources/generator/client/angular/core/tsconfig.json b/src/main/resources/generator/client/angular/core/tsconfig.json index 9d7c06d9ce4..4f235178d98 100644 --- a/src/main/resources/generator/client/angular/core/tsconfig.json +++ b/src/main/resources/generator/client/angular/core/tsconfig.json @@ -24,6 +24,7 @@ "enableI18nLegacyMessageIdFormat": false, "strictInjectionParameters": true, "strictInputAccessModifiers": true, + "strictStandalone": true, "strictTemplates": true } } diff --git a/src/main/resources/generator/client/angular/security/jwt/src/main/webapp/app/login/login.component.ts.mustache b/src/main/resources/generator/client/angular/security/jwt/src/main/webapp/app/login/login.component.ts.mustache index 192b217c019..ae0b2de4999 100644 --- a/src/main/resources/generator/client/angular/security/jwt/src/main/webapp/app/login/login.component.ts.mustache +++ b/src/main/resources/generator/client/angular/security/jwt/src/main/webapp/app/login/login.component.ts.mustache @@ -14,7 +14,6 @@ import { MatInputModule } from '@angular/material/input'; selector: 'jhi-login', templateUrl: './login.component.html', imports: [CommonModule, MatButtonModule, MatInputModule, MatCardModule, ReactiveFormsModule], - standalone: true, styleUrl: './login.component.css', }) export default class LoginComponent implements OnInit { diff --git a/src/main/resources/generator/client/angular/security/oauth2/src/main/webapp/app/login/login.component.ts.mustache b/src/main/resources/generator/client/angular/security/oauth2/src/main/webapp/app/login/login.component.ts.mustache index fb98d656217..f8230cdb46d 100644 --- a/src/main/resources/generator/client/angular/security/oauth2/src/main/webapp/app/login/login.component.ts.mustache +++ b/src/main/resources/generator/client/angular/security/oauth2/src/main/webapp/app/login/login.component.ts.mustache @@ -8,7 +8,6 @@ import { MatButtonModule } from '@angular/material/button'; selector: 'jhi-login', templateUrl: './login.component.html', imports: [CommonModule, MatButtonModule], - standalone: true, }) export default class LoginComponent { private readonly oauth2AuthService = inject(Oauth2AuthService); diff --git a/src/main/resources/generator/dependencies/angular/package.json b/src/main/resources/generator/dependencies/angular/package.json index f7e57506a2e..a06697d1535 100644 --- a/src/main/resources/generator/dependencies/angular/package.json +++ b/src/main/resources/generator/dependencies/angular/package.json @@ -1,19 +1,19 @@ { "dependencies": { "@angular-builders/jest": "18.0.0", - "@angular/build": "18.2.12", - "@angular/cdk": "18.2.14", - "@angular/cli": "18.2.12", - "@angular/compiler-cli": "18.2.12", - "@angular/core": "18.2.12", - "@angular/material": "18.2.14", + "@angular/build": "19.0.1", + "@angular/cdk": "19.0.0", + "@angular/cli": "19.0.1", + "@angular/compiler-cli": "19.0.0", + "@angular/core": "19.0.0", + "@angular/material": "19.0.0", "angular-eslint": "18.4.1", "jest-environment-jsdom": "29.7.0", - "jest-preset-angular": "14.3.2", + "jest-preset-angular": "14.4.0-rc.0", "jest-sonar-reporter": "2.0.0", "rxjs": "7.8.1", "tslib": "2.8.1", - "typescript": "5.5.4", - "zone.js": "0.14.10" + "typescript": "5.6.3", + "zone.js": "0.15.0" } } diff --git a/src/test/resources/projects/angular/app.component.ts b/src/test/resources/projects/angular/app.component.ts index 3832dbe0f46..15bb29275ef 100644 --- a/src/test/resources/projects/angular/app.component.ts +++ b/src/test/resources/projects/angular/app.component.ts @@ -11,7 +11,6 @@ import { MatToolbarModule } from '@angular/material/toolbar'; selector: 'jhi-root', templateUrl: './app.component.html', imports: [CommonModule, RouterModule, MatMenuModule, MatToolbarModule, MatIconModule, MatButtonModule, NgOptimizedImage], - standalone: true, styleUrl: './app.component.css', }) export class AppComponent implements OnInit {