diff --git a/generators/angular/resources/package.json b/generators/angular/resources/package.json index d6f7ee71f2f6..ca79f2b8fcac 100644 --- a/generators/angular/resources/package.json +++ b/generators/angular/resources/package.json @@ -1,35 +1,35 @@ { "dependencies": { - "@angular/common": "18.2.12", - "@fortawesome/angular-fontawesome": "0.15.0", + "@angular/common": "19.0.3", + "@fortawesome/angular-fontawesome": "1.0.0", "@fortawesome/fontawesome-svg-core": "6.7.1", "@fortawesome/free-solid-svg-icons": "6.7.1", - "@ng-bootstrap/ng-bootstrap": "17.0.1", + "@ng-bootstrap/ng-bootstrap": "18.0.0-rc.0", "@ngx-translate/core": "16.0.3", "@ngx-translate/http-loader": "16.0.0", "@popperjs/core": "2.11.8", "@stomp/rx-stomp": "2.0.0", "bootstrap": "5.3.3", "bootswatch": "5.3.3", - "ngx-cookie-service": "18.0.0", - "ngx-infinite-scroll": "18.0.0", + "ngx-cookie-service": "19.0.0", + "ngx-infinite-scroll": "19.0.0", "rxjs": "7.8.1", "sockjs-client": "1.6.1", "tslib": "2.8.1", - "zone.js": "0.14.10" + "zone.js": "0.15.0" }, "devDependencies": { "@angular-architects/module-federation": "18.0.6", "@angular-architects/module-federation-runtime": "18.0.6", - "@angular-builders/custom-esbuild": "18.0.0", - "@angular-builders/custom-webpack": "18.0.0", - "@angular-builders/jest": "18.0.0", - "@angular/cli": "18.2.12", + "@angular-builders/custom-esbuild": "19.0.0-beta.0", + "@angular-builders/custom-webpack": "19.0.0-beta.0", + "@angular-builders/jest": "19.0.0-beta.0", + "@angular/cli": "19.0.4", "@eslint/js": "9.16.0", "@types/jest": "29.5.14", "@types/node": "20.11.25", "@types/sockjs-client": "1.5.4", - "angular-eslint": "18.4.2", + "angular-eslint": "19.0.2", "browser-sync": "3.0.3", "browser-sync-webpack-plugin": "2.3.0", "buffer": "6.0.3", @@ -51,7 +51,7 @@ "postcss-rtlcss": "5.5.1", "rimraf": "5.0.8", "ts-jest": "29.2.5", - "typescript": "5.5.4", + "typescript": "5.6.3", "typescript-eslint": "8.18.0", "webpack": "5.97.1", "webpack-bundle-analyzer": "4.10.2", diff --git a/generators/angular/templates/src/main/webapp/app/account/activate/activate.component.ts.ejs b/generators/angular/templates/src/main/webapp/app/account/activate/activate.component.ts.ejs index 3fdf0c69db91..da3c4ab35fd0 100644 --- a/generators/angular/templates/src/main/webapp/app/account/activate/activate.component.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/account/activate/activate.component.ts.ejs @@ -24,7 +24,6 @@ import SharedModule from 'app/shared/shared.module'; import { ActivateService } from './activate.service'; @Component({ - standalone: true, selector: '<%= jhiPrefixDashed %>-activate', imports: [SharedModule, RouterModule], templateUrl: './activate.component.html', diff --git a/generators/angular/templates/src/main/webapp/app/account/password-reset/finish/password-reset-finish.component.ts.ejs b/generators/angular/templates/src/main/webapp/app/account/password-reset/finish/password-reset-finish.component.ts.ejs index b85850db15f1..0c704b0bcc10 100644 --- a/generators/angular/templates/src/main/webapp/app/account/password-reset/finish/password-reset-finish.component.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/account/password-reset/finish/password-reset-finish.component.ts.ejs @@ -25,7 +25,6 @@ import SharedModule from 'app/shared/shared.module'; import { PasswordResetFinishService } from './password-reset-finish.service'; @Component({ - standalone: true, selector: '<%= jhiPrefixDashed %>-password-reset-finish', imports: [SharedModule, RouterModule, FormsModule, ReactiveFormsModule, PasswordStrengthBarComponent], templateUrl: './password-reset-finish.component.html', diff --git a/generators/angular/templates/src/main/webapp/app/account/password-reset/init/password-reset-init.component.ts.ejs b/generators/angular/templates/src/main/webapp/app/account/password-reset/init/password-reset-init.component.ts.ejs index 6d6fb2f07787..da8498a7a6f7 100644 --- a/generators/angular/templates/src/main/webapp/app/account/password-reset/init/password-reset-init.component.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/account/password-reset/init/password-reset-init.component.ts.ejs @@ -23,7 +23,6 @@ import SharedModule from 'app/shared/shared.module'; import { PasswordResetInitService } from './password-reset-init.service'; @Component({ - standalone: true, selector: '<%= jhiPrefixDashed %>-password-reset-init', imports: [SharedModule, FormsModule, ReactiveFormsModule], templateUrl: './password-reset-init.component.html', diff --git a/generators/angular/templates/src/main/webapp/app/account/password/password-strength-bar/password-strength-bar.component.ts.ejs b/generators/angular/templates/src/main/webapp/app/account/password/password-strength-bar/password-strength-bar.component.ts.ejs index ebf1c1417c1e..48adb649eae8 100644 --- a/generators/angular/templates/src/main/webapp/app/account/password/password-strength-bar/password-strength-bar.component.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/account/password/password-strength-bar/password-strength-bar.component.ts.ejs @@ -21,7 +21,6 @@ import { Component, ElementRef, inject, Input, Renderer2 } from '@angular/core'; import SharedModule from 'app/shared/shared.module'; @Component({ - standalone: true, selector: '<%= jhiPrefixDashed %>-password-strength-bar', imports: [SharedModule], templateUrl: './password-strength-bar.component.html', diff --git a/generators/angular/templates/src/main/webapp/app/account/password/password.component.ts.ejs b/generators/angular/templates/src/main/webapp/app/account/password/password.component.ts.ejs index a8f18b40805b..422c3d6ffdde 100644 --- a/generators/angular/templates/src/main/webapp/app/account/password/password.component.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/account/password/password.component.ts.ejs @@ -27,7 +27,6 @@ import { PasswordService } from './password.service'; import PasswordStrengthBarComponent from './password-strength-bar/password-strength-bar.component'; @Component({ - standalone: true, selector: '<%= jhiPrefixDashed %>-password', imports: [SharedModule, FormsModule, ReactiveFormsModule, PasswordStrengthBarComponent], templateUrl: './password.component.html', diff --git a/generators/angular/templates/src/main/webapp/app/account/register/register.component.ts.ejs b/generators/angular/templates/src/main/webapp/app/account/register/register.component.ts.ejs index ecb5dc7ab9dc..33a33ec831a8 100644 --- a/generators/angular/templates/src/main/webapp/app/account/register/register.component.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/account/register/register.component.ts.ejs @@ -30,7 +30,6 @@ import SharedModule from 'app/shared/shared.module'; import PasswordStrengthBarComponent from '../password/password-strength-bar/password-strength-bar.component'; @Component({ - standalone: true, selector: '<%= jhiPrefixDashed %>-register', imports: [SharedModule, RouterModule, FormsModule, ReactiveFormsModule, PasswordStrengthBarComponent], templateUrl: './register.component.html', diff --git a/generators/angular/templates/src/main/webapp/app/account/sessions/sessions.component.ts.ejs b/generators/angular/templates/src/main/webapp/app/account/sessions/sessions.component.ts.ejs index a564f81d9b47..22fd8a7f96e4 100644 --- a/generators/angular/templates/src/main/webapp/app/account/sessions/sessions.component.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/account/sessions/sessions.component.ts.ejs @@ -25,7 +25,6 @@ import { SessionsService } from './sessions.service'; import { Account } from 'app/core/auth/account.model'; @Component({ - standalone: true, selector: '<%= jhiPrefixDashed %>-sessions', imports: [SharedModule], templateUrl: './sessions.component.html', diff --git a/generators/angular/templates/src/main/webapp/app/account/settings/settings.component.ts.ejs b/generators/angular/templates/src/main/webapp/app/account/settings/settings.component.ts.ejs index aa781f3294e4..7fe71142152e 100644 --- a/generators/angular/templates/src/main/webapp/app/account/settings/settings.component.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/account/settings/settings.component.ts.ejs @@ -32,7 +32,6 @@ import { LANGUAGES } from 'app/config/language.constants'; const initialAccount: Account = {} as Account; @Component({ - standalone: true, selector: '<%= jhiPrefixDashed %>-settings', imports: [SharedModule, FormsModule, ReactiveFormsModule], templateUrl: './settings.component.html', diff --git a/generators/angular/templates/src/main/webapp/app/admin/configuration/configuration.component.ts.ejs b/generators/angular/templates/src/main/webapp/app/admin/configuration/configuration.component.ts.ejs index f3e571d294f7..848aa28e2fae 100644 --- a/generators/angular/templates/src/main/webapp/app/admin/configuration/configuration.component.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/admin/configuration/configuration.component.ts.ejs @@ -25,7 +25,6 @@ import { ConfigurationService } from './configuration.service'; import { Bean, PropertySource } from './configuration.model'; @Component({ - standalone: true, selector: '<%= jhiPrefixDashed %>-configuration', templateUrl: './configuration.component.html', imports: [SharedModule, FormsModule, SortDirective, SortByDirective], diff --git a/generators/angular/templates/src/main/webapp/app/admin/docs/docs.component.ts.ejs b/generators/angular/templates/src/main/webapp/app/admin/docs/docs.component.ts.ejs index cb91725add69..6c9266398e8f 100644 --- a/generators/angular/templates/src/main/webapp/app/admin/docs/docs.component.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/admin/docs/docs.component.ts.ejs @@ -19,7 +19,6 @@ import { Component } from '@angular/core'; @Component({ - standalone: true, selector: '<%= jhiPrefixDashed %>-docs', templateUrl: './docs.component.html', styleUrl: './docs.component.scss', diff --git a/generators/angular/templates/src/main/webapp/app/admin/gateway/gateway.component.ts.ejs b/generators/angular/templates/src/main/webapp/app/admin/gateway/gateway.component.ts.ejs index 2c06992b192d..c361bd86ad85 100644 --- a/generators/angular/templates/src/main/webapp/app/admin/gateway/gateway.component.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/admin/gateway/gateway.component.ts.ejs @@ -23,7 +23,6 @@ import { GatewayRoutesService } from './gateway-routes.service'; import { GatewayRoute } from './gateway-route.model'; @Component({ - standalone: true, selector: '<%= jhiPrefixDashed %>-gateway', templateUrl: './gateway.component.html', providers: [GatewayRoutesService], diff --git a/generators/angular/templates/src/main/webapp/app/admin/health/health.component.ts.ejs b/generators/angular/templates/src/main/webapp/app/admin/health/health.component.ts.ejs index cfc437b53d5c..44dec0328a76 100644 --- a/generators/angular/templates/src/main/webapp/app/admin/health/health.component.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/admin/health/health.component.ts.ejs @@ -26,10 +26,9 @@ import { Health, HealthDetails, HealthStatus } from './health.model'; import HealthModalComponent from './modal/health-modal.component'; @Component({ - standalone: true, selector: '<%= jhiPrefixDashed %>-health', templateUrl: './health.component.html', - imports: [SharedModule, HealthModalComponent], + imports: [SharedModule], }) export default class HealthComponent implements OnInit { health?: Health; diff --git a/generators/angular/templates/src/main/webapp/app/admin/health/modal/health-modal.component.ts.ejs b/generators/angular/templates/src/main/webapp/app/admin/health/modal/health-modal.component.ts.ejs index 56593369cc11..42ac2ddf22e0 100644 --- a/generators/angular/templates/src/main/webapp/app/admin/health/modal/health-modal.component.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/admin/health/modal/health-modal.component.ts.ejs @@ -23,7 +23,6 @@ import SharedModule from 'app/shared/shared.module'; import { HealthKey, HealthDetails } from '../health.model'; @Component({ - standalone: true, selector: '<%= jhiPrefixDashed %>-health-modal', templateUrl: './health-modal.component.html', imports: [SharedModule], diff --git a/generators/angular/templates/src/main/webapp/app/admin/logs/logs.component.ts.ejs b/generators/angular/templates/src/main/webapp/app/admin/logs/logs.component.ts.ejs index cb0dc1d89a96..1ec1d59c8120 100644 --- a/generators/angular/templates/src/main/webapp/app/admin/logs/logs.component.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/admin/logs/logs.component.ts.ejs @@ -29,7 +29,6 @@ import { GatewayRoutesService } from '../gateway/gateway-routes.service'; <%_ } _%> @Component({ - standalone: true, selector: '<%= jhiPrefixDashed %>-logs', templateUrl: './logs.component.html', <%_ if (applicationTypeGateway && gatewayServicesApiAvailable) { _%> diff --git a/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/jvm-memory/jvm-memory.component.ts.ejs b/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/jvm-memory/jvm-memory.component.ts.ejs index ddb7d233c8e3..0758cdd71db9 100644 --- a/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/jvm-memory/jvm-memory.component.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/jvm-memory/jvm-memory.component.ts.ejs @@ -22,7 +22,6 @@ import SharedModule from 'app/shared/shared.module'; import { JvmMetrics } from 'app/admin/metrics/metrics.model'; @Component({ - standalone: true, selector: '<%= jhiPrefixDashed %>-jvm-memory', templateUrl: './jvm-memory.component.html', imports: [SharedModule], diff --git a/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/jvm-threads/jvm-threads.component.ts.ejs b/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/jvm-threads/jvm-threads.component.ts.ejs index 3a368e599a5e..eb2e867e93ba 100644 --- a/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/jvm-threads/jvm-threads.component.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/jvm-threads/jvm-threads.component.ts.ejs @@ -24,7 +24,6 @@ import { Thread, ThreadState } from 'app/admin/metrics/metrics.model'; import { MetricsModalThreadsComponent } from '../metrics-modal-threads/metrics-modal-threads.component'; @Component({ - standalone: true, selector: '<%= jhiPrefixDashed %>-jvm-threads', templateUrl: './jvm-threads.component.html', imports: [SharedModule], diff --git a/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/metrics-cache/metrics-cache.component.ts.ejs b/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/metrics-cache/metrics-cache.component.ts.ejs index f9d78f8378bc..dc13a735a13a 100644 --- a/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/metrics-cache/metrics-cache.component.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/metrics-cache/metrics-cache.component.ts.ejs @@ -23,7 +23,6 @@ import { CacheMetrics } from 'app/admin/metrics/metrics.model'; import { filterNaN } from 'app/core/util/operators'; @Component({ - standalone: true, selector: '<%= jhiPrefixDashed %>-metrics-cache', templateUrl: './metrics-cache.component.html', changeDetection: ChangeDetectionStrategy.OnPush, diff --git a/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/metrics-datasource/metrics-datasource.component.ts.ejs b/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/metrics-datasource/metrics-datasource.component.ts.ejs index 3c2d816e5d73..51c0294d9c98 100644 --- a/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/metrics-datasource/metrics-datasource.component.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/metrics-datasource/metrics-datasource.component.ts.ejs @@ -23,7 +23,6 @@ import { Databases } from 'app/admin/metrics/metrics.model'; import { filterNaN } from 'app/core/util/operators'; @Component({ - standalone: true, selector: '<%= jhiPrefixDashed %>-metrics-datasource', templateUrl: './metrics-datasource.component.html', changeDetection: ChangeDetectionStrategy.OnPush, diff --git a/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/metrics-endpoints-requests/metrics-endpoints-requests.component.ts.ejs b/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/metrics-endpoints-requests/metrics-endpoints-requests.component.ts.ejs index 02f17718ad69..5d6668fb6997 100644 --- a/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/metrics-endpoints-requests/metrics-endpoints-requests.component.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/metrics-endpoints-requests/metrics-endpoints-requests.component.ts.ejs @@ -22,7 +22,6 @@ import SharedModule from 'app/shared/shared.module'; import { Services } from 'app/admin/metrics/metrics.model'; @Component({ - standalone: true, selector: '<%= jhiPrefixDashed %>-metrics-endpoints-requests', templateUrl: './metrics-endpoints-requests.component.html', imports: [SharedModule], diff --git a/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/metrics-garbagecollector/metrics-garbagecollector.component.ts.ejs b/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/metrics-garbagecollector/metrics-garbagecollector.component.ts.ejs index 7dee3b4e7925..7ea3fd11ded9 100644 --- a/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/metrics-garbagecollector/metrics-garbagecollector.component.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/metrics-garbagecollector/metrics-garbagecollector.component.ts.ejs @@ -22,7 +22,6 @@ import SharedModule from 'app/shared/shared.module'; import { GarbageCollector } from 'app/admin/metrics/metrics.model'; @Component({ - standalone: true, selector: '<%= jhiPrefixDashed %>-metrics-garbagecollector', templateUrl: './metrics-garbagecollector.component.html', imports: [SharedModule], diff --git a/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/metrics-modal-threads/metrics-modal-threads.component.ts.ejs b/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/metrics-modal-threads/metrics-modal-threads.component.ts.ejs index abb06dc537f9..c0bd96db62e4 100644 --- a/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/metrics-modal-threads/metrics-modal-threads.component.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/metrics-modal-threads/metrics-modal-threads.component.ts.ejs @@ -23,7 +23,6 @@ import SharedModule from 'app/shared/shared.module'; import { Thread, ThreadState } from 'app/admin/metrics/metrics.model'; @Component({ - standalone: true, selector: '<%= jhiPrefixDashed %>-thread-modal', templateUrl: './metrics-modal-threads.component.html', changeDetection: ChangeDetectionStrategy.OnPush, diff --git a/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/metrics-request/metrics-request.component.ts.ejs b/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/metrics-request/metrics-request.component.ts.ejs index 15ecb6ac4582..8dd0bf480842 100644 --- a/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/metrics-request/metrics-request.component.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/metrics-request/metrics-request.component.ts.ejs @@ -23,7 +23,6 @@ import { HttpServerRequests } from 'app/admin/metrics/metrics.model'; import { filterNaN } from 'app/core/util/operators'; @Component({ - standalone: true, selector: '<%= jhiPrefixDashed %>-metrics-request', templateUrl: './metrics-request.component.html', changeDetection: ChangeDetectionStrategy.OnPush, diff --git a/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/metrics-system/metrics-system.component.ts.ejs b/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/metrics-system/metrics-system.component.ts.ejs index ec5dae36c17b..e0c133aa4688 100644 --- a/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/metrics-system/metrics-system.component.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/admin/metrics/blocks/metrics-system/metrics-system.component.ts.ejs @@ -22,7 +22,6 @@ import SharedModule from 'app/shared/shared.module'; import { ProcessMetrics } from 'app/admin/metrics/metrics.model'; @Component({ - standalone: true, selector: '<%= jhiPrefixDashed %>-metrics-system', templateUrl: './metrics-system.component.html', changeDetection: ChangeDetectionStrategy.OnPush, diff --git a/generators/angular/templates/src/main/webapp/app/admin/metrics/metrics.component.ts.ejs b/generators/angular/templates/src/main/webapp/app/admin/metrics/metrics.component.ts.ejs index 2b46008897bd..20c6423cfef6 100644 --- a/generators/angular/templates/src/main/webapp/app/admin/metrics/metrics.component.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/admin/metrics/metrics.component.ts.ejs @@ -28,12 +28,10 @@ import { MetricsCacheComponent } from './blocks/metrics-cache/metrics-cache.comp import { MetricsDatasourceComponent } from './blocks/metrics-datasource/metrics-datasource.component'; import { MetricsEndpointsRequestsComponent } from './blocks/metrics-endpoints-requests/metrics-endpoints-requests.component'; import { MetricsGarbageCollectorComponent } from './blocks/metrics-garbagecollector/metrics-garbagecollector.component'; -import { MetricsModalThreadsComponent } from './blocks/metrics-modal-threads/metrics-modal-threads.component'; import { MetricsRequestComponent } from './blocks/metrics-request/metrics-request.component'; import { MetricsSystemComponent } from './blocks/metrics-system/metrics-system.component'; @Component({ - standalone: true, selector: '<%= jhiPrefixDashed %>-metrics', templateUrl: './metrics.component.html', changeDetection: ChangeDetectionStrategy.OnPush, @@ -45,7 +43,6 @@ import { MetricsSystemComponent } from './blocks/metrics-system/metrics-system.c MetricsDatasourceComponent, MetricsEndpointsRequestsComponent, MetricsGarbageCollectorComponent, - MetricsModalThreadsComponent, MetricsRequestComponent, MetricsSystemComponent, ], diff --git a/generators/angular/templates/src/main/webapp/app/admin/tracker/tracker.component.ts.ejs b/generators/angular/templates/src/main/webapp/app/admin/tracker/tracker.component.ts.ejs index 63f6c42fe9a2..dde22b5f1452 100644 --- a/generators/angular/templates/src/main/webapp/app/admin/tracker/tracker.component.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/admin/tracker/tracker.component.ts.ejs @@ -24,7 +24,6 @@ import { TrackerActivity } from 'app/core/tracker/tracker-activity.model'; import SharedModule from 'app/shared/shared.module'; @Component({ - standalone: true, selector: '<%= jhiPrefixDashed %>-tracker', imports: [SharedModule], templateUrl: './tracker.component.html', diff --git a/generators/angular/templates/src/main/webapp/app/admin/user-management/delete/user-management-delete-dialog.component.ts.ejs b/generators/angular/templates/src/main/webapp/app/admin/user-management/delete/user-management-delete-dialog.component.ts.ejs index 05ff1a100ca3..be1f0c5c7276 100644 --- a/generators/angular/templates/src/main/webapp/app/admin/user-management/delete/user-management-delete-dialog.component.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/admin/user-management/delete/user-management-delete-dialog.component.ts.ejs @@ -25,7 +25,6 @@ import { User } from '../user-management.model'; import { UserManagementService } from '../service/user-management.service'; @Component({ - standalone: true, selector: '<%= jhiPrefixDashed %>-user-mgmt-delete-dialog', templateUrl: './user-management-delete-dialog.component.html', imports: [SharedModule, FormsModule], diff --git a/generators/angular/templates/src/main/webapp/app/admin/user-management/detail/user-management-detail.component.ts.ejs b/generators/angular/templates/src/main/webapp/app/admin/user-management/detail/user-management-detail.component.ts.ejs index 5bf1a14dd906..7f7a4d0dacbf 100644 --- a/generators/angular/templates/src/main/webapp/app/admin/user-management/detail/user-management-detail.component.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/admin/user-management/detail/user-management-detail.component.ts.ejs @@ -23,7 +23,6 @@ import SharedModule from 'app/shared/shared.module'; import { User } from '../user-management.model'; @Component({ - standalone: true, selector: '<%= jhiPrefixDashed %>-user-mgmt-detail', templateUrl: './user-management-detail.component.html', imports: [RouterModule, SharedModule], diff --git a/generators/angular/templates/src/main/webapp/app/admin/user-management/list/user-management.component.ts.ejs b/generators/angular/templates/src/main/webapp/app/admin/user-management/list/user-management.component.ts.ejs index ef9d6669ce51..79760dd4cf6d 100644 --- a/generators/angular/templates/src/main/webapp/app/admin/user-management/list/user-management.component.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/admin/user-management/list/user-management.component.ts.ejs @@ -38,13 +38,11 @@ import { User } from '../user-management.model'; import UserManagementDeleteDialogComponent from '../delete/user-management-delete-dialog.component'; @Component({ - standalone: true, selector: '<%= jhiPrefixDashed %>-user-mgmt', templateUrl: './user-management.component.html', imports: [ RouterModule, SharedModule, - UserManagementDeleteDialogComponent, <%_ if (!databaseTypeCassandra) { _%> SortDirective, SortByDirective, diff --git a/generators/angular/templates/src/main/webapp/app/admin/user-management/update/user-management-update.component.ts.ejs b/generators/angular/templates/src/main/webapp/app/admin/user-management/update/user-management-update.component.ts.ejs index fcc98a1a78e2..dab43a1900f4 100644 --- a/generators/angular/templates/src/main/webapp/app/admin/user-management/update/user-management-update.component.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/admin/user-management/update/user-management-update.component.ts.ejs @@ -37,7 +37,6 @@ const newUser: IUser = { } as IUser; @Component({ - standalone: true, selector: '<%= jhiPrefixDashed %>-user-mgmt-update', templateUrl: './user-management-update.component.html', imports: [SharedModule, FormsModule, ReactiveFormsModule], diff --git a/generators/angular/templates/src/main/webapp/app/app.component.ts.ejs b/generators/angular/templates/src/main/webapp/app/app.component.ts.ejs index fd500c2519df..0d9a53478846 100644 --- a/generators/angular/templates/src/main/webapp/app/app.component.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/app.component.ts.ejs @@ -37,7 +37,6 @@ import { TrackerService } from './core/tracker/tracker.service'; <%_ } _%> @Component({ - standalone: true, selector: '<%= jhiPrefixDashed %>-app', template: '<<%= jhiPrefixDashed %>-main>-main>', imports: [ diff --git a/generators/angular/templates/src/main/webapp/app/entities/_entityFolder_/delete/_entityFile_-delete-dialog.component.ts.ejs b/generators/angular/templates/src/main/webapp/app/entities/_entityFolder_/delete/_entityFile_-delete-dialog.component.ts.ejs index 2e9a61880104..fb0c80c74c70 100644 --- a/generators/angular/templates/src/main/webapp/app/entities/_entityFolder_/delete/_entityFile_-delete-dialog.component.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/entities/_entityFolder_/delete/_entityFile_-delete-dialog.component.ts.ejs @@ -26,7 +26,6 @@ import { <%= entityAngularName %>Service } from '../service/<%= entityFileName % import { ITEM_DELETED_EVENT } from 'app/config/navigation.constants'; @Component({ - standalone: true, templateUrl: './<%= entityFileName %>-delete-dialog.component.html', imports: [SharedModule, FormsModule], }) diff --git a/generators/angular/templates/src/main/webapp/app/entities/_entityFolder_/detail/_entityFile_-detail.component.html.ejs b/generators/angular/templates/src/main/webapp/app/entities/_entityFolder_/detail/_entityFile_-detail.component.html.ejs index a825f6a83bee..d769ab2fbe39 100644 --- a/generators/angular/templates/src/main/webapp/app/entities/_entityFolder_/detail/_entityFile_-detail.component.html.ejs +++ b/generators/angular/templates/src/main/webapp/app/entities/_entityFolder_/detail/_entityFile_-detail.component.html.ejs @@ -41,17 +41,17 @@ _%> <%_ } else if (field.fieldTypeBinary && field.blobContentTypeImage) { _%> @if (<%= entityInstance %>Ref.<%= fieldName %>) {
- + <%= entityInstance %> - {{ <%= entityInstance %>Ref.<%= fieldName %>ContentType }}, {{ byteSize(<%= entityInstance %>Ref.<%= fieldName %> ?? '') }} + {{ <%= entityInstance %>Ref.<%= fieldName %>ContentType }}, {{ byteSize(<%= entityInstance %>Ref.<%= fieldName %><% if (!field.fieldValidationRequired) { %> ?? ''<% } %>) }}
} <%_ } else if (field.fieldTypeBinary && field.blobContentTypeAny) { _%> @if (<%= entityInstance %>Ref.<%= fieldName %>) {
- __jhiTranslateTag__('entity.action.open') - {{ <%= entityInstance %>Ref.<%= fieldName %>ContentType }}, {{ byteSize(<%= entityInstance %>Ref.<%= fieldName %> ?? '') }} + __jhiTranslateTag__('entity.action.open') + {{ <%= entityInstance %>Ref.<%= fieldName %>ContentType }}, {{ byteSize(<%= entityInstance %>Ref.<%= fieldName %><% if (!field.fieldValidationRequired) { %> ?? ''<% } %>) }}
} <%_ } else if (field.fieldTypeDuration) { _%> diff --git a/generators/angular/templates/src/main/webapp/app/entities/_entityFolder_/detail/_entityFile_-detail.component.ts.ejs b/generators/angular/templates/src/main/webapp/app/entities/_entityFolder_/detail/_entityFile_-detail.component.ts.ejs index f9fbfdb58db4..8e9886897334 100644 --- a/generators/angular/templates/src/main/webapp/app/entities/_entityFolder_/detail/_entityFile_-detail.component.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/entities/_entityFolder_/detail/_entityFile_-detail.component.ts.ejs @@ -27,10 +27,21 @@ import { DataUtils } from 'app/core/util/data-util.service'; <%_ } _%> @Component({ - standalone: true, selector: '<%= jhiPrefixDashed %>-<%= entityFileName %>-detail', templateUrl: './<%= entityFileName %>-detail.component.html', - imports: [SharedModule, RouterModule, DurationPipe, FormatMediumDatetimePipe, FormatMediumDatePipe], + imports: [ + SharedModule, + RouterModule, +<%_ if (anyFieldIsDuration) { _%> + DurationPipe, +<%_ } _%> +<%_ if (anyFieldIsTimeDerived) { _%> + FormatMediumDatetimePipe, +<%_ } _%> +<%_ if (anyFieldIsLocalDate) { _%> + FormatMediumDatePipe, +<%_ } _%> + ], }) export class <%= entityAngularName %>DetailComponent { <%= entityInstance %> = input | null>(null); diff --git a/generators/angular/templates/src/main/webapp/app/entities/_entityFolder_/list/_entityFile_.component.ts.ejs b/generators/angular/templates/src/main/webapp/app/entities/_entityFolder_/list/_entityFile_.component.ts.ejs index 145d25635372..12d0d2a1e04c 100644 --- a/generators/angular/templates/src/main/webapp/app/entities/_entityFolder_/list/_entityFile_.component.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/entities/_entityFolder_/list/_entityFile_.component.ts.ejs @@ -85,7 +85,6 @@ import { InfiniteScrollDirective } from 'ngx-infinite-scroll'; <%_ } _%> @Component({ - standalone: true, selector: '<%= jhiPrefixDashed %>-<%= entityFileName %>', templateUrl: './<%= entityFileName %>.component.html', imports: [ @@ -96,9 +95,15 @@ import { InfiniteScrollDirective } from 'ngx-infinite-scroll'; SharedModule, SortDirective, SortByDirective, +<%_ if (anyFieldIsDuration) { _%> DurationPipe, +<%_ } _%> +<%_ if (anyFieldIsTimeDerived) { _%> FormatMediumDatetimePipe, +<%_ } _%> +<%_ if (anyFieldIsLocalDate) { _%> FormatMediumDatePipe, +<%_ } _%> <%_ if (jpaMetamodelFiltering && paginationPagination) { _%> FilterComponent, <%_ } _%> diff --git a/generators/angular/templates/src/main/webapp/app/entities/_entityFolder_/update/_entityFile_-update.component.ts.ejs b/generators/angular/templates/src/main/webapp/app/entities/_entityFolder_/update/_entityFile_-update.component.ts.ejs index 3c217954d618..c1bb5aab8e83 100644 --- a/generators/angular/templates/src/main/webapp/app/entities/_entityFolder_/update/_entityFile_-update.component.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/entities/_entityFolder_/update/_entityFile_-update.component.ts.ejs @@ -55,7 +55,6 @@ import { <%- importedType %> } from '<%- importedPath %>'; <%_ }); _%> @Component({ - standalone: true, selector: '<%= jhiPrefixDashed %>-<%= entityFileName %>-update', templateUrl: './<%= entityFileName %>-update.component.html', imports: [SharedModule, FormsModule, ReactiveFormsModule], diff --git a/generators/angular/templates/src/main/webapp/app/home/home.component.ts.ejs b/generators/angular/templates/src/main/webapp/app/home/home.component.ts.ejs index 63b06ccf137e..ce3983af9655 100644 --- a/generators/angular/templates/src/main/webapp/app/home/home.component.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/home/home.component.ts.ejs @@ -36,7 +36,6 @@ import { AccountService } from 'app/core/auth/account.service'; import { Account } from 'app/core/auth/account.model'; @Component({ - standalone: true, selector: '<%= jhiPrefixDashed %>-home', templateUrl: './home.component.html', styleUrl: './home.component.scss', diff --git a/generators/angular/templates/src/main/webapp/app/layouts/error/error.component.ts.ejs b/generators/angular/templates/src/main/webapp/app/layouts/error/error.component.ts.ejs index 03f6f4d86a2a..a60c2b53ab61 100644 --- a/generators/angular/templates/src/main/webapp/app/layouts/error/error.component.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/layouts/error/error.component.ts.ejs @@ -25,7 +25,6 @@ import { TranslateService } from '@ngx-translate/core'; import SharedModule from 'app/shared/shared.module'; @Component({ - standalone: true, selector: '<%= jhiPrefixDashed %>-error', templateUrl: './error.component.html', imports: [SharedModule], diff --git a/generators/angular/templates/src/main/webapp/app/layouts/footer/footer.component.ts.ejs b/generators/angular/templates/src/main/webapp/app/layouts/footer/footer.component.ts.ejs index 51c6cfd1d35b..7156d6ce722e 100644 --- a/generators/angular/templates/src/main/webapp/app/layouts/footer/footer.component.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/layouts/footer/footer.component.ts.ejs @@ -22,7 +22,6 @@ import { TranslateDirective } from 'app/shared/language'; <%_ } _%> @Component({ - standalone: true, selector: '<%= jhiPrefixDashed %>-footer', templateUrl: './footer.component.html', <%_ if (enableTranslation) { _%> diff --git a/generators/angular/templates/src/main/webapp/app/layouts/main/main.component.spec.ts.ejs b/generators/angular/templates/src/main/webapp/app/layouts/main/main.component.spec.ts.ejs index 33ce537a3af5..ab58771cd006 100644 --- a/generators/angular/templates/src/main/webapp/app/layouts/main/main.component.spec.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/layouts/main/main.component.spec.ts.ejs @@ -296,7 +296,6 @@ describe('MainComponent', () => { }); @Component({ - standalone: true, template: '', }) export class BlankComponent {} diff --git a/generators/angular/templates/src/main/webapp/app/layouts/main/main.component.ts.ejs b/generators/angular/templates/src/main/webapp/app/layouts/main/main.component.ts.ejs index 42c90c88a2df..78dd341b53e8 100644 --- a/generators/angular/templates/src/main/webapp/app/layouts/main/main.component.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/layouts/main/main.component.ts.ejs @@ -32,7 +32,6 @@ import FooterComponent from '../footer/footer.component'; import PageRibbonComponent from '../profiles/page-ribbon.component'; @Component({ - standalone: true, selector: '<%= jhiPrefixDashed %>-main', templateUrl: './main.component.html', providers: [AppPageTitleStrategy], diff --git a/generators/angular/templates/src/main/webapp/app/layouts/navbar/active-menu.directive.ts.ejs b/generators/angular/templates/src/main/webapp/app/layouts/navbar/active-menu.directive.ts.ejs index 89ea63cf39f0..305a153cb457 100644 --- a/generators/angular/templates/src/main/webapp/app/layouts/navbar/active-menu.directive.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/layouts/navbar/active-menu.directive.ts.ejs @@ -20,7 +20,6 @@ import { Directive, OnInit, ElementRef, Renderer2, inject, input } from '@angula import { TranslateService, LangChangeEvent } from '@ngx-translate/core'; @Directive({ - standalone: true, selector: '[<%= jhiPrefix %>ActiveMenu]', }) export default class ActiveMenuDirective implements OnInit { diff --git a/generators/angular/templates/src/main/webapp/app/layouts/navbar/navbar.component.ts.ejs b/generators/angular/templates/src/main/webapp/app/layouts/navbar/navbar.component.ts.ejs index 6665fa3d9cf8..91e076dbd461 100644 --- a/generators/angular/templates/src/main/webapp/app/layouts/navbar/navbar.component.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/layouts/navbar/navbar.component.ts.ejs @@ -41,7 +41,6 @@ import { environment } from 'environments/environment'; import NavbarItem from './navbar-item.model'; @Component({ - standalone: true, selector: '<%= jhiPrefixDashed %>-navbar', templateUrl: './navbar.component.html', styleUrl: './navbar.component.scss', diff --git a/generators/angular/templates/src/main/webapp/app/layouts/profiles/page-ribbon.component.ts.ejs b/generators/angular/templates/src/main/webapp/app/layouts/profiles/page-ribbon.component.ts.ejs index 20c7c7715bbd..1c00de34e935 100644 --- a/generators/angular/templates/src/main/webapp/app/layouts/profiles/page-ribbon.component.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/layouts/profiles/page-ribbon.component.ts.ejs @@ -24,7 +24,6 @@ import SharedModule from 'app/shared/shared.module'; import { ProfileService } from './profile.service'; @Component({ - standalone: true, selector: '<%= jhiPrefixDashed %>-page-ribbon', template: ` @if (ribbonEnv$ | async; as ribbonEnv) { diff --git a/generators/angular/templates/src/main/webapp/app/login/login.component.ts.ejs b/generators/angular/templates/src/main/webapp/app/login/login.component.ts.ejs index dc9440a4e517..a61cf5e1afff 100644 --- a/generators/angular/templates/src/main/webapp/app/login/login.component.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/login/login.component.ts.ejs @@ -25,7 +25,6 @@ import { LoginService } from 'app/login/login.service'; import { AccountService } from 'app/core/auth/account.service'; @Component({ - standalone: true, selector: '<%= jhiPrefixDashed %>-login', imports: [SharedModule, FormsModule, ReactiveFormsModule, RouterModule], templateUrl: './login.component.html', diff --git a/generators/angular/templates/src/main/webapp/app/shared/alert/alert-error.component.ts.ejs b/generators/angular/templates/src/main/webapp/app/shared/alert/alert-error.component.ts.ejs index 184336c98444..8f127edb3c12 100644 --- a/generators/angular/templates/src/main/webapp/app/shared/alert/alert-error.component.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/shared/alert/alert-error.component.ts.ejs @@ -30,7 +30,6 @@ import { Alert, AlertService } from 'app/core/util/alert.service'; import { EventManager, EventWithContent } from 'app/core/util/event-manager.service'; @Component({ - standalone: true, selector: '<%= jhiPrefixDashed %>-alert-error', templateUrl: './alert-error.component.html', imports: [CommonModule, NgbModule], diff --git a/generators/angular/templates/src/main/webapp/app/shared/alert/alert.component.ts.ejs b/generators/angular/templates/src/main/webapp/app/shared/alert/alert.component.ts.ejs index fec3ec80da53..5bc6301cd856 100644 --- a/generators/angular/templates/src/main/webapp/app/shared/alert/alert.component.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/shared/alert/alert.component.ts.ejs @@ -23,7 +23,6 @@ import { NgbModule } from '@ng-bootstrap/ng-bootstrap'; import { AlertService, Alert } from 'app/core/util/alert.service'; @Component({ - standalone: true, selector: '<%= jhiPrefixDashed %>-alert', templateUrl: './alert.component.html', imports: [CommonModule, NgbModule], diff --git a/generators/angular/templates/src/main/webapp/app/shared/auth/has-any-authority.directive.spec.ts.ejs b/generators/angular/templates/src/main/webapp/app/shared/auth/has-any-authority.directive.spec.ts.ejs index f864f385e6d8..8f46dd7fd559 100644 --- a/generators/angular/templates/src/main/webapp/app/shared/auth/has-any-authority.directive.spec.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/shared/auth/has-any-authority.directive.spec.ts.ejs @@ -31,7 +31,6 @@ import { Account } from 'app/core/auth/account.model'; import HasAnyAuthorityDirective from './has-any-authority.directive'; @Component({ - standalone: true, imports: [HasAnyAuthorityDirective], template: `
HasAnyAuthority="'ROLE_ADMIN'" #content>
`, }) diff --git a/generators/angular/templates/src/main/webapp/app/shared/auth/has-any-authority.directive.ts.ejs b/generators/angular/templates/src/main/webapp/app/shared/auth/has-any-authority.directive.ts.ejs index a8cab5b40c13..6a37a6204ea6 100644 --- a/generators/angular/templates/src/main/webapp/app/shared/auth/has-any-authority.directive.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/shared/auth/has-any-authority.directive.ts.ejs @@ -32,7 +32,6 @@ import { AccountService } from 'app/core/auth/account.service'; * ``` */ @Directive({ - standalone: true, selector: '[<%= jhiPrefix %>HasAnyAuthority]', }) export default class HasAnyAuthorityDirective { @@ -46,15 +45,12 @@ export default class HasAnyAuthorityDirective { const currentAccount = accountService.trackCurrentAccount(); const hasPermission = computed(() => currentAccount()?.authorities && accountService.hasAnyAuthority(this.authorities())); - effect( - () => { - if (hasPermission()) { - this.viewContainerRef.createEmbeddedView(this.templateRef); - } else { - this.viewContainerRef.clear(); - } - }, - { allowSignalWrites: true }, - ); + effect(() => { + if (hasPermission()) { + this.viewContainerRef.createEmbeddedView(this.templateRef); + } else { + this.viewContainerRef.clear(); + } + }); } } diff --git a/generators/angular/templates/src/main/webapp/app/shared/date/duration.pipe.ts.ejs b/generators/angular/templates/src/main/webapp/app/shared/date/duration.pipe.ts.ejs index ff829a244420..14dca7b777ac 100644 --- a/generators/angular/templates/src/main/webapp/app/shared/date/duration.pipe.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/shared/date/duration.pipe.ts.ejs @@ -21,7 +21,6 @@ import { Pipe, PipeTransform } from '@angular/core'; import dayjs from 'dayjs/esm'; @Pipe({ - standalone: true, name: 'duration', }) export default class DurationPipe implements PipeTransform { diff --git a/generators/angular/templates/src/main/webapp/app/shared/date/format-medium-date.pipe.ts.ejs b/generators/angular/templates/src/main/webapp/app/shared/date/format-medium-date.pipe.ts.ejs index 94ccbf940f4b..d94d809cb829 100644 --- a/generators/angular/templates/src/main/webapp/app/shared/date/format-medium-date.pipe.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/shared/date/format-medium-date.pipe.ts.ejs @@ -21,7 +21,6 @@ import { Pipe, PipeTransform } from '@angular/core'; import dayjs from 'dayjs/esm'; @Pipe({ - standalone: true, name: 'formatMediumDate', }) export default class FormatMediumDatePipe implements PipeTransform { diff --git a/generators/angular/templates/src/main/webapp/app/shared/date/format-medium-datetime.pipe.ts.ejs b/generators/angular/templates/src/main/webapp/app/shared/date/format-medium-datetime.pipe.ts.ejs index e879c84b76eb..587697137fbc 100644 --- a/generators/angular/templates/src/main/webapp/app/shared/date/format-medium-datetime.pipe.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/shared/date/format-medium-datetime.pipe.ts.ejs @@ -21,7 +21,6 @@ import { Pipe, PipeTransform } from '@angular/core'; import dayjs from 'dayjs/esm'; @Pipe({ - standalone: true, name: 'formatMediumDatetime', }) export default class FormatMediumDatetimePipe implements PipeTransform { diff --git a/generators/angular/templates/src/main/webapp/app/shared/filter/filter.component.ts.ejs b/generators/angular/templates/src/main/webapp/app/shared/filter/filter.component.ts.ejs index 841d71460142..84490389bdcb 100644 --- a/generators/angular/templates/src/main/webapp/app/shared/filter/filter.component.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/shared/filter/filter.component.ts.ejs @@ -3,7 +3,6 @@ import { IFilterOptions } from './filter.model'; import SharedModule from '../shared.module'; @Component({ - standalone: true, selector: '<%= jhiPrefixDashed %>-filter', imports: [SharedModule], templateUrl: './filter.component.html', diff --git a/generators/angular/templates/src/main/webapp/app/shared/language/find-language-from-key.pipe.ts.ejs b/generators/angular/templates/src/main/webapp/app/shared/language/find-language-from-key.pipe.ts.ejs index df041844366c..68b65d3deb8f 100644 --- a/generators/angular/templates/src/main/webapp/app/shared/language/find-language-from-key.pipe.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/shared/language/find-language-from-key.pipe.ts.ejs @@ -19,7 +19,6 @@ import { Pipe, PipeTransform } from '@angular/core'; @Pipe({ - standalone: true, name: 'findLanguageFromKey', }) export default class FindLanguageFromKeyPipe implements PipeTransform { diff --git a/generators/angular/templates/src/main/webapp/app/shared/language/translate.directive.spec.ts.ejs b/generators/angular/templates/src/main/webapp/app/shared/language/translate.directive.spec.ts.ejs index ffe404e24e79..9af2dceaa03e 100644 --- a/generators/angular/templates/src/main/webapp/app/shared/language/translate.directive.spec.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/shared/language/translate.directive.spec.ts.ejs @@ -23,7 +23,6 @@ import { TranslateModule, TranslateService } from '@ngx-translate/core'; import TranslateDirective from './translate.directive'; @Component({ - standalone: true, imports: [TranslateDirective], template: `
Translate="test">
`, }) diff --git a/generators/angular/templates/src/main/webapp/app/shared/language/translate.directive.ts.ejs b/generators/angular/templates/src/main/webapp/app/shared/language/translate.directive.ts.ejs index 8e48420d3fb4..874f8348e77a 100644 --- a/generators/angular/templates/src/main/webapp/app/shared/language/translate.directive.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/shared/language/translate.directive.ts.ejs @@ -27,7 +27,6 @@ import { translationNotFoundMessage } from 'app/config/translation.config'; * A wrapper directive on top of the translate pipe as the inbuilt translate directive from ngx-translate is too verbose and buggy */ @Directive({ - standalone: true, selector: '[<%= jhiPrefix %>Translate]', }) export default class TranslateDirective implements OnChanges, OnInit, OnDestroy { diff --git a/generators/angular/templates/src/main/webapp/app/shared/pagination/item-count.component.ts.ejs b/generators/angular/templates/src/main/webapp/app/shared/pagination/item-count.component.ts.ejs index 8cd5bcadfcc6..e0cc8c320b68 100644 --- a/generators/angular/templates/src/main/webapp/app/shared/pagination/item-count.component.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/shared/pagination/item-count.component.ts.ejs @@ -25,7 +25,6 @@ import TranslateDirective from '../language/translate.directive'; * A component that will take care of item count statistics of a pagination. */ @Component({ - standalone: true, selector: '<%= jhiPrefixDashed %>-item-count', template: ` <%_ if (enableTranslation) { _%> diff --git a/generators/angular/templates/src/main/webapp/app/shared/sort/sort-by.directive.spec.ts.ejs b/generators/angular/templates/src/main/webapp/app/shared/sort/sort-by.directive.spec.ts.ejs index 1d2c579552fa..c0d4fb08e194 100644 --- a/generators/angular/templates/src/main/webapp/app/shared/sort/sort-by.directive.spec.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/shared/sort/sort-by.directive.spec.ts.ejs @@ -27,7 +27,6 @@ import { SortDirective } from './sort.directive'; import { SortState, sortStateSignal } from './sort-state'; @Component({ - standalone: true, imports: [SortDirective, SortByDirective, FaIconComponent], template: ` diff --git a/generators/angular/templates/src/main/webapp/app/shared/sort/sort-by.directive.ts.ejs b/generators/angular/templates/src/main/webapp/app/shared/sort/sort-by.directive.ts.ejs index b99583fdccec..baf1c61bcadd 100644 --- a/generators/angular/templates/src/main/webapp/app/shared/sort/sort-by.directive.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/shared/sort/sort-by.directive.ts.ejs @@ -23,7 +23,6 @@ import { faSort, faSortDown, faSortUp, IconDefinition } from '@fortawesome/free- import { SortDirective } from './sort.directive'; @Directive({ - standalone: true, selector: '[<%= jhiPrefix %>SortBy]', }) export class SortByDirective { diff --git a/generators/angular/templates/src/main/webapp/app/shared/sort/sort.directive.spec.ts.ejs b/generators/angular/templates/src/main/webapp/app/shared/sort/sort.directive.spec.ts.ejs index 038b80fa7bb8..e7440aa77483 100644 --- a/generators/angular/templates/src/main/webapp/app/shared/sort/sort.directive.spec.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/shared/sort/sort.directive.spec.ts.ejs @@ -24,7 +24,6 @@ import { SortDirective } from './sort.directive'; import { SortState, sortStateSignal } from './sort-state'; @Component({ - standalone: true, imports: [SortDirective], template: `
diff --git a/generators/angular/templates/src/main/webapp/app/shared/sort/sort.directive.ts.ejs b/generators/angular/templates/src/main/webapp/app/shared/sort/sort.directive.ts.ejs index 8b7c3a7175b8..e8cca10234eb 100644 --- a/generators/angular/templates/src/main/webapp/app/shared/sort/sort.directive.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/shared/sort/sort.directive.ts.ejs @@ -26,7 +26,6 @@ export interface SortChangeDirective { } @Directive({ - standalone: true, selector: '[<%= jhiPrefix %>Sort]', }) export class SortDirective implements SortChangeDirective {