From b429880517c960098d9730948f9d4608282e98cd 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 - .../generator/client/angular/core/tsconfig.json | 1 + .../webapp/app/login/login.component.ts.mustache | 1 - .../webapp/app/login/login.component.ts.mustache | 1 - .../generator/dependencies/angular/package.json | 16 ++++++++-------- .../resources/projects/angular/app.component.ts | 1 - 8 files changed, 9 insertions(+), 14 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 19c51e2e079..4f02291c999 100644 --- a/src/main/resources/generator/dependencies/angular/package.json +++ b/src/main/resources/generator/dependencies/angular/package.json @@ -1,12 +1,12 @@ { "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-builders/jest": "19.0.0-beta.1", + "@angular/build": "19.0.4", + "@angular/cdk": "19.0.2", + "@angular/cli": "19.0.4", + "@angular/compiler-cli": "19.0.3", + "@angular/core": "19.0.3", + "@angular/material": "19.0.2", "angular-eslint": "19.0.0", "jest-environment-jsdom": "29.7.0", "jest-preset-angular": "14.4.2", @@ -14,6 +14,6 @@ "rxjs": "7.8.1", "tslib": "2.8.1", "typescript": "5.5.4", - "zone.js": "0.14.10" + "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 {