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 edde4a666ace..5dd4c2a461ea 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 @@ -18,7 +18,7 @@ -%> import { Component, inject, OnInit } from '@angular/core'; import { HttpErrorResponse } from '@angular/common/http'; -import { NgbModal } from '@ng-bootstrap/ng-bootstrap'; +import { NgbModal, NgbModalModule } from '@ng-bootstrap/ng-bootstrap'; import SharedModule from 'app/shared/shared.module'; import { HealthService } from './health.service'; @@ -29,7 +29,7 @@ import HealthModalComponent from './modal/health-modal.component'; standalone: true, selector: '<%= jhiPrefixDashed %>-health', templateUrl: './health.component.html', - imports: [SharedModule, HealthModalComponent], + imports: [SharedModule, NgbModalModule, HealthModalComponent], }) export default class HealthComponent implements OnInit { health?: Health; 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 5209cf859e66..4d57c6a7c380 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 @@ -17,6 +17,7 @@ limitations under the License. -%> import { Component, input } from '@angular/core'; +import { NgbProgressbar } from '@ng-bootstrap/ng-bootstrap'; import SharedModule from 'app/shared/shared.module'; import { JvmMetrics } from 'app/admin/metrics/metrics.model'; @@ -25,7 +26,7 @@ import { JvmMetrics } from 'app/admin/metrics/metrics.model'; standalone: true, selector: '<%= jhiPrefixDashed %>-jvm-memory', templateUrl: './jvm-memory.component.html', - imports: [SharedModule], + imports: [SharedModule, NgbProgressbar], }) export class JvmMemoryComponent { /** 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 c6abd4c71738..58bfb67b3287 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 @@ -17,7 +17,7 @@ limitations under the License. -%> import { Component, inject, Input } from '@angular/core'; -import { NgbModal } from '@ng-bootstrap/ng-bootstrap'; +import { NgbModal, NgbModalModule, NgbProgressbar } from '@ng-bootstrap/ng-bootstrap'; import SharedModule from 'app/shared/shared.module'; import { Thread, ThreadState } from 'app/admin/metrics/metrics.model'; @@ -27,7 +27,7 @@ import { MetricsModalThreadsComponent } from '../metrics-modal-threads/metrics-m standalone: true, selector: '<%= jhiPrefixDashed %>-jvm-threads', templateUrl: './jvm-threads.component.html', - imports: [SharedModule], + imports: [SharedModule, NgbModalModule, NgbProgressbar], }) export class JvmThreadsComponent { threadStats = { 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..b8ee3a3a089c 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 @@ -17,6 +17,7 @@ limitations under the License. -%> import { Component, input } from '@angular/core'; +import { NgbProgressbar } from '@ng-bootstrap/ng-bootstrap'; import SharedModule from 'app/shared/shared.module'; import { GarbageCollector } from 'app/admin/metrics/metrics.model'; @@ -25,7 +26,7 @@ import { GarbageCollector } from 'app/admin/metrics/metrics.model'; standalone: true, selector: '<%= jhiPrefixDashed %>-metrics-garbagecollector', templateUrl: './metrics-garbagecollector.component.html', - imports: [SharedModule], + imports: [SharedModule, NgbProgressbar], }) export class MetricsGarbageCollectorComponent { /** 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..499e57102302 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 @@ -17,6 +17,7 @@ limitations under the License. -%> import { ChangeDetectionStrategy, Component, input } from '@angular/core'; +import { NgbProgressbar } from '@ng-bootstrap/ng-bootstrap'; import SharedModule from 'app/shared/shared.module'; import { HttpServerRequests } from 'app/admin/metrics/metrics.model'; @@ -27,7 +28,7 @@ import { filterNaN } from 'app/core/util/operators'; selector: '<%= jhiPrefixDashed %>-metrics-request', templateUrl: './metrics-request.component.html', changeDetection: ChangeDetectionStrategy.OnPush, - imports: [SharedModule], + imports: [SharedModule, NgbProgressbar], }) export class MetricsRequestComponent { /** 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..8c3bd8c5bb96 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 @@ -17,6 +17,7 @@ limitations under the License. -%> import { ChangeDetectionStrategy, Component, input } from '@angular/core'; +import { NgbProgressbar } from '@ng-bootstrap/ng-bootstrap'; import SharedModule from 'app/shared/shared.module'; import { ProcessMetrics } from 'app/admin/metrics/metrics.model'; @@ -26,7 +27,7 @@ import { ProcessMetrics } from 'app/admin/metrics/metrics.model'; selector: '<%= jhiPrefixDashed %>-metrics-system', templateUrl: './metrics-system.component.html', changeDetection: ChangeDetectionStrategy.OnPush, - imports: [SharedModule], + imports: [SharedModule, NgbProgressbar], }) export class MetricsSystemComponent { /** 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 1dda325bcbc2..6695ce512d85 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 @@ -22,7 +22,7 @@ import { HttpResponse<%_ if (!databaseTypeCassandra) { %>, HttpHeaders <% } %>} <%_ if (!databaseTypeCassandra) { _%> import { combineLatest } from 'rxjs'; <%_ } _%> -import { NgbModal } from '@ng-bootstrap/ng-bootstrap'; +import { NgbModal, NgbModalModule, NgbPaginationModule } from '@ng-bootstrap/ng-bootstrap'; import SharedModule from 'app/shared/shared.module'; <%_ if (!databaseTypeCassandra) { _%> @@ -43,6 +43,8 @@ import UserManagementDeleteDialogComponent from '../delete/user-management-delet templateUrl: './user-management.component.html', imports: [ RouterModule, + NgbModalModule, + NgbPaginationModule, SharedModule, UserManagementDeleteDialogComponent, <%_ if (!databaseTypeCassandra) { _%> 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..4e6243440abf 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 @@ -18,6 +18,7 @@ -%> import { Component, <% if (anyFieldIsBlobDerived) { %>inject, <% } %>input } from '@angular/core'; import { RouterModule } from '@angular/router'; +import { NgbTooltipModule } from '@ng-bootstrap/ng-bootstrap'; import SharedModule from 'app/shared/shared.module'; import { DurationPipe, FormatMediumDatetimePipe, FormatMediumDatePipe } from 'app/shared/date'; @@ -30,7 +31,7 @@ import { DataUtils } from 'app/core/util/data-util.service'; standalone: true, selector: '<%= jhiPrefixDashed %>-<%= entityFileName %>-detail', templateUrl: './<%= entityFileName %>-detail.component.html', - imports: [SharedModule, RouterModule, DurationPipe, FormatMediumDatetimePipe, FormatMediumDatePipe], + imports: [SharedModule, NgbTooltipModule, RouterModule, DurationPipe, FormatMediumDatetimePipe, 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 467de8578d14..f4ace2a658de 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 @@ -35,9 +35,15 @@ import { HttpHeaders } from '@angular/common/http'; <%_ } _%> import { ActivatedRoute, Data, ParamMap, Router, RouterModule } from '@angular/router'; import { combineLatest<%_ if (!readOnly) { _%>, filter<%_ } _%>, Observable, Subscription, tap } from 'rxjs'; +import { <%_ if (!readOnly) { _%> -import { NgbModal } from '@ng-bootstrap/ng-bootstrap'; + NgbModal, + NgbModalModule, +<%_ } _%> +<%_ if (paginationPagination) { _%> + NgbPaginationModule, <%_ } _%> +} from '@ng-bootstrap/ng-bootstrap'; import SharedModule from 'app/shared/shared.module'; import { sortStateSignal, SortDirective, SortByDirective, type SortState, SortService } from 'app/shared/sort'; @@ -90,8 +96,14 @@ import { InfiniteScrollModule } from 'ngx-infinite-scroll'; templateUrl: './<%= entityFileName %>.component.html', imports: [ RouterModule, +<%_ if (!readOnly) { _%> + NgbModalModule, +<%_ } _%> <%_ if (searchEngine) { _%> FormsModule, +<%_ } _%> +<%_ if (paginationPagination) { _%> + NgbPaginationModule, <%_ } _%> SharedModule, SortDirective, 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 3b883465a5ed..17d8ac1d8094 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 @@ -27,6 +27,7 @@ import { HttpResponse } from '@angular/common/http'; import { ActivatedRoute } from '@angular/router'; import { Observable } from 'rxjs'; import { finalize<% if (relationships.some(rel => rel.persistableRelationship)) { %>, map<% } %> } from 'rxjs/operators'; +import { NgbDatepickerModule, NgbTooltipModule } from '@ng-bootstrap/ng-bootstrap'; import SharedModule from 'app/shared/shared.module'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; @@ -61,7 +62,7 @@ import { <%- importedType %> } from '<%- importedPath %>'; standalone: true, selector: '<%= jhiPrefixDashed %>-<%= entityFileName %>-update', templateUrl: './<%= entityFileName %>-update.component.html', - imports: [SharedModule, FormsModule, ReactiveFormsModule], + imports: [SharedModule, NgbDatepickerModule, NgbTooltipModule, FormsModule, ReactiveFormsModule], }) export class <%= entityAngularName %>UpdateComponent implements OnInit { isSaving = false; 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 c512ce976865..dc1dae7b29ef 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 @@ -18,6 +18,7 @@ -%> import { Component, inject, signal, OnInit<% if (microfrontend && enableTranslation && applicationTypeGateway) { %>, createNgModule, Injector<% } %> } from '@angular/core'; import { Router, RouterModule } from '@angular/router'; +import { NgbCollapseModule, NgbDropdownModule, NgbNavModule } from '@ng-bootstrap/ng-bootstrap'; <%_ if (enableTranslation) { _%> import { TranslateService } from '@ngx-translate/core'; <%_ } _%> @@ -49,6 +50,9 @@ import NavbarItem from './navbar-item.model'; RouterModule, SharedModule, HasAnyAuthorityDirective, + NgbCollapseModule, + NgbDropdownModule, + NgbNavModule, <%_ if (enableTranslation) { _%> ActiveMenuDirective, <%_ } _%> 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 3625db8db419..7643b5e3395a 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 @@ -20,7 +20,7 @@ import { Component, inject, OnDestroy, signal } from '@angular/core'; import { HttpErrorResponse } from '@angular/common/http'; import { Subscription } from 'rxjs'; import { CommonModule } from '@angular/common'; -import { NgbModule } from '@ng-bootstrap/ng-bootstrap'; +import { NgbAlertModule } from '@ng-bootstrap/ng-bootstrap'; <%_ if (enableTranslation) { _%> import { TranslateService } from '@ngx-translate/core'; <%_ } _%> @@ -33,7 +33,7 @@ import { EventManager, EventWithContent } from 'app/core/util/event-manager.serv standalone: true, selector: '<%= jhiPrefixDashed %>-alert-error', templateUrl: './alert-error.component.html', - imports: [CommonModule, NgbModule], + imports: [CommonModule, NgbAlertModule], }) export class AlertErrorComponent implements OnDestroy { alerts = signal([]); 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 910bb025ef6d..fe9c24c8664a 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 @@ -18,7 +18,7 @@ -%> import { Component, inject, OnDestroy, OnInit, signal } from '@angular/core'; import { CommonModule } from '@angular/common'; -import { NgbModule } from '@ng-bootstrap/ng-bootstrap'; +import { NgbAlertModule } from '@ng-bootstrap/ng-bootstrap'; import { AlertService, Alert } from 'app/core/util/alert.service'; @@ -26,7 +26,7 @@ import { AlertService, Alert } from 'app/core/util/alert.service'; standalone: true, selector: '<%= jhiPrefixDashed %>-alert', templateUrl: './alert.component.html', - imports: [CommonModule, NgbModule], + imports: [CommonModule, NgbAlertModule], }) export class AlertComponent implements OnInit, OnDestroy { alerts = signal([]); diff --git a/generators/angular/templates/src/main/webapp/app/shared/shared.module.ts.ejs b/generators/angular/templates/src/main/webapp/app/shared/shared.module.ts.ejs index fc0686306cef..a621b08fb221 100644 --- a/generators/angular/templates/src/main/webapp/app/shared/shared.module.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/shared/shared.module.ts.ejs @@ -36,7 +36,6 @@ -%> import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; -import { NgbModule } from '@ng-bootstrap/ng-bootstrap'; import { FontAwesomeModule } from '@fortawesome/angular-fontawesome'; <%_ if (enableTranslation) { _%> import { TranslateModule } from '@ngx-translate/core'; @@ -61,7 +60,6 @@ import { AlertErrorComponent } from './alert/alert-error.component'; ], exports: [ CommonModule, - NgbModule, FontAwesomeModule, AlertComponent, AlertErrorComponent,