From b15cea22ac53948c0eb6ffe9f0fa35c389d259ee Mon Sep 17 00:00:00 2001 From: Alexey Umanskiy Date: Thu, 17 Oct 2024 15:07:15 +0300 Subject: [PATCH] =?UTF-8?q?hotfix(typescript):=20some=20angular=20setups?= =?UTF-8?q?=20can't=20handle=20.forRoot()=20retur=E2=80=A6=20(#6689)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * hotfix(typescript): some angular setups can't handle .forRoot() returning just module * 18.1.1 * chore(version): version bumped --- apps/ngx-bootstrap-docs/src/assets/css/style.scss | 4 +++- .../src/assets/json/current-version.json | 2 +- package-lock.json | 4 ++-- package.json | 2 +- src/accordion/accordion.module.ts | 9 ++++++--- src/accordion/package.json | 2 +- src/alert/alert.module.ts | 9 ++++++--- src/alert/package.json | 2 +- src/buttons/buttons.module.ts | 9 ++++++--- src/buttons/package.json | 2 +- src/carousel/carousel.module.ts | 9 ++++++--- src/carousel/package.json | 2 +- src/chronos/package.json | 2 +- src/collapse/collapse.module.ts | 9 ++++++--- src/collapse/package.json | 2 +- src/component-loader/package.json | 2 +- src/datepicker/bs-datepicker.module.ts | 9 ++++++--- src/datepicker/package.json | 2 +- src/dropdown/bs-dropdown.module.ts | 9 ++++++--- src/dropdown/package.json | 2 +- src/focus-trap/focus-trap.module.ts | 9 ++++++--- src/focus-trap/package.json | 2 +- src/locale/package.json | 2 +- src/mini-ngrx/package.json | 2 +- src/modal/package.json | 2 +- src/pagination/package.json | 2 +- src/pagination/pagination.module.ts | 9 ++++++--- src/popover/package.json | 2 +- src/popover/popover.module.ts | 9 ++++++--- src/positioning/package.json | 2 +- src/progressbar/package.json | 2 +- src/progressbar/progressbar.module.ts | 9 ++++++--- src/rating/package.json | 2 +- src/rating/rating.module.ts | 9 ++++++--- src/root/package.json | 2 +- src/schematics/package.json | 2 +- .../src/utils/current_dependency_versions.json | 2 +- src/sortable/package.json | 2 +- src/sortable/sortable.module.ts | 9 ++++++--- src/tabs/package.json | 2 +- src/tabs/tabs.module.ts | 7 +++++-- src/timepicker/package.json | 2 +- src/timepicker/timepicker.module.ts | 9 ++++++--- src/tooltip/package.json | 2 +- src/tooltip/tooltip.module.ts | 9 ++++++--- src/typeahead/package.json | 2 +- src/typeahead/typeahead.module.ts | 9 ++++++--- src/utils/package.json | 2 +- 48 files changed, 135 insertions(+), 82 deletions(-) diff --git a/apps/ngx-bootstrap-docs/src/assets/css/style.scss b/apps/ngx-bootstrap-docs/src/assets/css/style.scss index 8020c1da36..3db1f2272a 100644 --- a/apps/ngx-bootstrap-docs/src/assets/css/style.scss +++ b/apps/ngx-bootstrap-docs/src/assets/css/style.scss @@ -2,7 +2,9 @@ @import "bs-datepicker"; /* HEADER */ - +.bs-datepicker-head { + width: 150px; +} header { padding: 10px 50px 10px 30px; height: $header-height; diff --git a/apps/ngx-bootstrap-docs/src/assets/json/current-version.json b/apps/ngx-bootstrap-docs/src/assets/json/current-version.json index 468bce7d10..068131925c 100644 --- a/apps/ngx-bootstrap-docs/src/assets/json/current-version.json +++ b/apps/ngx-bootstrap-docs/src/assets/json/current-version.json @@ -1,3 +1,3 @@ { - "version": "18.1.0" + "version": "18.1.1" } diff --git a/package-lock.json b/package-lock.json index d64369dc7a..ed712ed5d5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "ngx-bootstrap-base", - "version": "18.1.0", + "version": "18.1.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "ngx-bootstrap-base", - "version": "18.1.0", + "version": "18.1.1", "hasInstallScript": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index 65ed365e53..c1c0252f27 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ngx-bootstrap-base", - "version": "18.1.0", + "version": "18.1.1", "license": "MIT", "author": "Dmitriy Shekhovtsov ", "schematics": "./schematics/src/collection.json", diff --git a/src/accordion/accordion.module.ts b/src/accordion/accordion.module.ts index 60a8a70db1..23541e2d23 100644 --- a/src/accordion/accordion.module.ts +++ b/src/accordion/accordion.module.ts @@ -1,4 +1,4 @@ -import { NgModule } from '@angular/core'; +import { ModuleWithProviders, NgModule } from '@angular/core'; import { AccordionComponent } from './accordion.component'; import { AccordionPanelComponent } from './accordion-group.component'; @@ -9,7 +9,10 @@ import { AccordionPanelComponent } from './accordion-group.component'; }) export class AccordionModule { // @deprecated method not required anymore, will be deleted in v19.0.0 - static forRoot() { - return AccordionModule; + static forRoot(): ModuleWithProviders { + return { + ngModule: AccordionModule, + providers: [] + }; } } diff --git a/src/accordion/package.json b/src/accordion/package.json index 1f30f5dc8b..0dd7738830 100644 --- a/src/accordion/package.json +++ b/src/accordion/package.json @@ -1,6 +1,6 @@ { "name": "ngx-bootstrap/accordion", - "version": "18.1.0", + "version": "18.1.1", "author": "Dmitriy Shekhovtsov ", "license": "MIT" } diff --git a/src/alert/alert.module.ts b/src/alert/alert.module.ts index d682d7cbce..2cfca0257a 100644 --- a/src/alert/alert.module.ts +++ b/src/alert/alert.module.ts @@ -1,4 +1,4 @@ -import { NgModule } from '@angular/core'; +import { ModuleWithProviders, NgModule } from '@angular/core'; import { AlertComponent } from './alert.component'; @NgModule({ @@ -7,7 +7,10 @@ import { AlertComponent } from './alert.component'; }) export class AlertModule { // @deprecated method not required anymore, will be deleted in v19.0.0 - static forRoot() { - return AlertModule; + static forRoot(): ModuleWithProviders { + return { + ngModule: AlertModule, + providers: [] + }; } } diff --git a/src/alert/package.json b/src/alert/package.json index a1b343725d..6a35a023b9 100644 --- a/src/alert/package.json +++ b/src/alert/package.json @@ -1,6 +1,6 @@ { "name": "ngx-bootstrap/alert", - "version": "18.1.0", + "version": "18.1.1", "author": "Dmitriy Shekhovtsov ", "license": "MIT" } diff --git a/src/buttons/buttons.module.ts b/src/buttons/buttons.module.ts index dd6ad1d660..f2a4854d52 100644 --- a/src/buttons/buttons.module.ts +++ b/src/buttons/buttons.module.ts @@ -1,4 +1,4 @@ -import { NgModule } from '@angular/core'; +import { ModuleWithProviders, NgModule } from '@angular/core'; import { ButtonCheckboxDirective } from './button-checkbox.directive'; import { ButtonRadioDirective } from './button-radio.directive'; @@ -10,7 +10,10 @@ import { ButtonRadioGroupDirective } from './button-radio-group.directive'; }) export class ButtonsModule { // @deprecated method not required anymore, will be deleted in v19.0.0 - static forRoot() { - return ButtonsModule; + static forRoot(): ModuleWithProviders { + return { + ngModule: ButtonsModule, + providers: [] + }; } } diff --git a/src/buttons/package.json b/src/buttons/package.json index d37d360daa..c7d4807fc7 100644 --- a/src/buttons/package.json +++ b/src/buttons/package.json @@ -1,6 +1,6 @@ { "name": "ngx-bootstrap/buttons", - "version": "18.1.0", + "version": "18.1.1", "author": "Dmitriy Shekhovtsov ", "license": "MIT" } diff --git a/src/carousel/carousel.module.ts b/src/carousel/carousel.module.ts index 177452e83c..4bf02720f8 100644 --- a/src/carousel/carousel.module.ts +++ b/src/carousel/carousel.module.ts @@ -1,4 +1,4 @@ -import { NgModule } from '@angular/core'; +import { ModuleWithProviders, NgModule } from '@angular/core'; import { CarouselComponent } from './carousel.component'; import { SlideComponent } from './slide.component'; @@ -9,7 +9,10 @@ import { SlideComponent } from './slide.component'; }) export class CarouselModule { // @deprecated method not required anymore, will be deleted in v19.0.0 - static forRoot() { - return CarouselModule; + static forRoot(): ModuleWithProviders { + return { + ngModule: CarouselModule, + providers: [] + }; } } diff --git a/src/carousel/package.json b/src/carousel/package.json index e1f4da7134..0cd2f05f2d 100644 --- a/src/carousel/package.json +++ b/src/carousel/package.json @@ -1,6 +1,6 @@ { "name": "ngx-bootstrap/carousel", - "version": "18.1.0", + "version": "18.1.1", "author": "Dmitriy Shekhovtsov ", "license": "MIT" } diff --git a/src/chronos/package.json b/src/chronos/package.json index d6be16bbc2..cdf2cf8eca 100644 --- a/src/chronos/package.json +++ b/src/chronos/package.json @@ -1,6 +1,6 @@ { "name": "ngx-bootstrap/chronos", - "version": "18.1.0", + "version": "18.1.1", "author": "Dmitriy Shekhovtsov ", "license": "MIT" } diff --git a/src/collapse/collapse.module.ts b/src/collapse/collapse.module.ts index 769cddbde2..611d9f5aa6 100644 --- a/src/collapse/collapse.module.ts +++ b/src/collapse/collapse.module.ts @@ -1,4 +1,4 @@ -import { NgModule } from '@angular/core'; +import { ModuleWithProviders, NgModule } from '@angular/core'; import { CollapseDirective } from './collapse.directive'; @@ -8,7 +8,10 @@ import { CollapseDirective } from './collapse.directive'; }) export class CollapseModule { // @deprecated method not required anymore, will be deleted in v19.0.0 - static forRoot() { - return CollapseModule; + static forRoot(): ModuleWithProviders { + return { + ngModule: CollapseModule, + providers: [] + }; } } diff --git a/src/collapse/package.json b/src/collapse/package.json index 994c31561c..6bb0c979f9 100644 --- a/src/collapse/package.json +++ b/src/collapse/package.json @@ -1,6 +1,6 @@ { "name": "ngx-bootstrap/collapse", - "version": "18.1.0", + "version": "18.1.1", "author": "Dmitriy Shekhovtsov ", "license": "MIT" } diff --git a/src/component-loader/package.json b/src/component-loader/package.json index d0f479a3e9..5024032b46 100644 --- a/src/component-loader/package.json +++ b/src/component-loader/package.json @@ -1,6 +1,6 @@ { "name": "ngx-bootstrap/component-loader", - "version": "18.1.0", + "version": "18.1.1", "author": "Dmitriy Shekhovtsov ", "license": "MIT" } diff --git a/src/datepicker/bs-datepicker.module.ts b/src/datepicker/bs-datepicker.module.ts index 88abae332f..5677ba96cd 100644 --- a/src/datepicker/bs-datepicker.module.ts +++ b/src/datepicker/bs-datepicker.module.ts @@ -1,5 +1,5 @@ import { CommonModule } from '@angular/common'; -import { NgModule } from '@angular/core'; +import { ModuleWithProviders, NgModule } from '@angular/core'; import { TooltipModule } from 'ngx-bootstrap/tooltip'; import { TimepickerModule } from 'ngx-bootstrap/timepicker'; @@ -64,7 +64,10 @@ import { BsYearsCalendarViewComponent } from './themes/bs/bs-years-calendar-view }) export class BsDatepickerModule { // @deprecated method not required anymore, will be deleted in v19.0.0 - static forRoot() { - return BsDatepickerModule; + static forRoot(): ModuleWithProviders { + return { + ngModule: BsDatepickerModule, + providers: [] + }; } } diff --git a/src/datepicker/package.json b/src/datepicker/package.json index 13b0b449e2..f50a853cd6 100644 --- a/src/datepicker/package.json +++ b/src/datepicker/package.json @@ -1,6 +1,6 @@ { "name": "ngx-bootstrap/datepicker", - "version": "18.1.0", + "version": "18.1.1", "author": "Dmitriy Shekhovtsov ", "license": "MIT" } diff --git a/src/dropdown/bs-dropdown.module.ts b/src/dropdown/bs-dropdown.module.ts index 5ab54af6fd..7f7624ea4c 100644 --- a/src/dropdown/bs-dropdown.module.ts +++ b/src/dropdown/bs-dropdown.module.ts @@ -1,4 +1,4 @@ -import { NgModule } from '@angular/core'; +import { ModuleWithProviders, NgModule } from '@angular/core'; import { BsDropdownContainerComponent } from './bs-dropdown-container.component'; import { BsDropdownMenuDirective } from './bs-dropdown-menu.directive'; @@ -21,7 +21,10 @@ import { BsDropdownDirective } from './bs-dropdown.directive'; }) export class BsDropdownModule { // @deprecated method not required anymore, will be deleted in v19.0.0 - static forRoot() { - return BsDropdownModule; + static forRoot(): ModuleWithProviders { + return { + ngModule: BsDropdownModule, + providers: [] + }; } } diff --git a/src/dropdown/package.json b/src/dropdown/package.json index 1c22dd6f4b..08048953bf 100644 --- a/src/dropdown/package.json +++ b/src/dropdown/package.json @@ -1,6 +1,6 @@ { "name": "ngx-bootstrap/dropdown", - "version": "18.1.0", + "version": "18.1.1", "author": "Dmitriy Shekhovtsov ", "license": "MIT" } diff --git a/src/focus-trap/focus-trap.module.ts b/src/focus-trap/focus-trap.module.ts index 60ecd48574..509b87439b 100644 --- a/src/focus-trap/focus-trap.module.ts +++ b/src/focus-trap/focus-trap.module.ts @@ -1,4 +1,4 @@ -import { NgModule } from '@angular/core'; +import { ModuleWithProviders, NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FocusTrapDirective } from './focus-trap'; @@ -9,7 +9,10 @@ import { FocusTrapDirective } from './focus-trap'; }) export class FocusTrapModule { // @deprecated method not required anymore, will be deleted in v19.0.0 - static forRoot() { - return FocusTrapModule; + static forRoot(): ModuleWithProviders { + return { + ngModule: FocusTrapModule, + providers: [] + }; } } diff --git a/src/focus-trap/package.json b/src/focus-trap/package.json index a68da03899..82b05ef148 100644 --- a/src/focus-trap/package.json +++ b/src/focus-trap/package.json @@ -1,6 +1,6 @@ { "name": "ngx-bootstrap/focus-trap", - "version": "18.1.0", + "version": "18.1.1", "author": "Dmitriy Shekhovtsov ", "license": "MIT" } diff --git a/src/locale/package.json b/src/locale/package.json index fbe62dc60b..5eb51ee06d 100644 --- a/src/locale/package.json +++ b/src/locale/package.json @@ -1,6 +1,6 @@ { "name": "ngx-bootstrap/locale", - "version": "18.1.0", + "version": "18.1.1", "author": "Dmitriy Shekhovtsov ", "license": "MIT" } diff --git a/src/mini-ngrx/package.json b/src/mini-ngrx/package.json index fb562980c5..9112c1fe30 100644 --- a/src/mini-ngrx/package.json +++ b/src/mini-ngrx/package.json @@ -1,6 +1,6 @@ { "name": "ngx-bootstrap/mini-ngrx", - "version": "18.1.0", + "version": "18.1.1", "author": "Dmitriy Shekhovtsov ", "license": "MIT" } diff --git a/src/modal/package.json b/src/modal/package.json index 26ad72a93b..0a303c5f24 100644 --- a/src/modal/package.json +++ b/src/modal/package.json @@ -1,6 +1,6 @@ { "name": "ngx-bootstrap/modal", - "version": "18.1.0", + "version": "18.1.1", "author": "Dmitriy Shekhovtsov ", "license": "MIT" } diff --git a/src/pagination/package.json b/src/pagination/package.json index 91a730bb89..df20f24377 100644 --- a/src/pagination/package.json +++ b/src/pagination/package.json @@ -1,6 +1,6 @@ { "name": "ngx-bootstrap/pagination", - "version": "18.1.0", + "version": "18.1.1", "author": "Dmitriy Shekhovtsov ", "license": "MIT" } diff --git a/src/pagination/pagination.module.ts b/src/pagination/pagination.module.ts index 0dc6fd8334..a7c377f4af 100644 --- a/src/pagination/pagination.module.ts +++ b/src/pagination/pagination.module.ts @@ -1,5 +1,5 @@ import { CommonModule } from '@angular/common'; -import { NgModule } from '@angular/core'; +import { ModuleWithProviders, NgModule } from '@angular/core'; import { PagerComponent } from './pager.component'; import { PaginationComponent } from './pagination.component'; @@ -10,7 +10,10 @@ import { PaginationComponent } from './pagination.component'; }) export class PaginationModule { // @deprecated method not required anymore, will be deleted in v19.0.0 - static forRoot() { - return PaginationModule; + static forRoot(): ModuleWithProviders { + return { + ngModule: PaginationModule, + providers: [] + }; } } diff --git a/src/popover/package.json b/src/popover/package.json index 7f533c3196..462b00b143 100644 --- a/src/popover/package.json +++ b/src/popover/package.json @@ -1,6 +1,6 @@ { "name": "ngx-bootstrap/popover", - "version": "18.1.0", + "version": "18.1.1", "author": "Dmitriy Shekhovtsov ", "license": "MIT" } diff --git a/src/popover/popover.module.ts b/src/popover/popover.module.ts index d992626951..d69a1f8864 100644 --- a/src/popover/popover.module.ts +++ b/src/popover/popover.module.ts @@ -1,4 +1,4 @@ -import { NgModule } from '@angular/core'; +import { ModuleWithProviders, NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { PopoverDirective } from './popover.directive'; @@ -10,7 +10,10 @@ import { PopoverContainerComponent } from './popover-container.component'; }) export class PopoverModule { // @deprecated method not required anymore, will be deleted in v19.0.0 - static forRoot() { - return PopoverModule; + static forRoot(): ModuleWithProviders { + return { + ngModule: PopoverModule, + providers: [] + }; } } diff --git a/src/positioning/package.json b/src/positioning/package.json index 6043faf3a7..17d421294f 100644 --- a/src/positioning/package.json +++ b/src/positioning/package.json @@ -1,6 +1,6 @@ { "name": "ngx-bootstrap/positioning", - "version": "18.1.0", + "version": "18.1.1", "author": "Dmitriy Shekhovtsov ", "license": "MIT" } diff --git a/src/progressbar/package.json b/src/progressbar/package.json index 2339be3541..c3c9f44ae8 100644 --- a/src/progressbar/package.json +++ b/src/progressbar/package.json @@ -1,6 +1,6 @@ { "name": "ngx-bootstrap/progressbar", - "version": "18.1.0", + "version": "18.1.1", "author": "Dmitriy Shekhovtsov ", "license": "MIT" } diff --git a/src/progressbar/progressbar.module.ts b/src/progressbar/progressbar.module.ts index feb7ac4f90..27385314b9 100644 --- a/src/progressbar/progressbar.module.ts +++ b/src/progressbar/progressbar.module.ts @@ -1,4 +1,4 @@ -import { NgModule } from '@angular/core'; +import { ModuleWithProviders, NgModule } from '@angular/core'; import { BarComponent } from './bar.component'; import { ProgressbarComponent } from './progressbar.component'; @@ -9,7 +9,10 @@ import { ProgressbarComponent } from './progressbar.component'; }) export class ProgressbarModule { // @deprecated method not required anymore, will be deleted in v19.0.0 - static forRoot() { - return ProgressbarModule; + static forRoot(): ModuleWithProviders { + return { + ngModule: ProgressbarModule, + providers: [] + }; } } diff --git a/src/rating/package.json b/src/rating/package.json index ee9399e5ab..7680095734 100644 --- a/src/rating/package.json +++ b/src/rating/package.json @@ -1,6 +1,6 @@ { "name": "ngx-bootstrap/rating", - "version": "18.1.0", + "version": "18.1.1", "author": "Dmitriy Shekhovtsov ", "license": "MIT" } diff --git a/src/rating/rating.module.ts b/src/rating/rating.module.ts index 2b75fd726d..0c85ba15c6 100644 --- a/src/rating/rating.module.ts +++ b/src/rating/rating.module.ts @@ -1,4 +1,4 @@ -import { NgModule } from '@angular/core'; +import { ModuleWithProviders, NgModule } from '@angular/core'; import { RatingComponent } from './rating.component'; @@ -8,7 +8,10 @@ import { RatingComponent } from './rating.component'; }) export class RatingModule { // @deprecated method not required anymore, will be deleted in v19.0.0 - static forRoot() { - return RatingModule; + static forRoot(): ModuleWithProviders { + return { + ngModule: RatingModule, + providers: [] + }; } } diff --git a/src/root/package.json b/src/root/package.json index cac63c15f4..7b6f69ccdf 100644 --- a/src/root/package.json +++ b/src/root/package.json @@ -1,6 +1,6 @@ { "name": "ngx-bootstrap", - "version": "18.1.0", + "version": "18.1.1", "description": "Angular Bootstrap", "author": "Dmitriy Shekhovtsov ", "license": "MIT", diff --git a/src/schematics/package.json b/src/schematics/package.json index 845a97bd64..1bcc1fdd4a 100644 --- a/src/schematics/package.json +++ b/src/schematics/package.json @@ -1,6 +1,6 @@ { "name": "schematics", - "version": "18.1.0", + "version": "18.1.1", "schematics": "./collection.json", "author": "Dmitriy Shekhovtsov ", "license": "MIT" diff --git a/src/schematics/src/utils/current_dependency_versions.json b/src/schematics/src/utils/current_dependency_versions.json index 49465a7534..092ceceb24 100644 --- a/src/schematics/src/utils/current_dependency_versions.json +++ b/src/schematics/src/utils/current_dependency_versions.json @@ -1,4 +1,4 @@ { - "NGX_BOOTSTRAP_VERSION": "18.1.0", + "NGX_BOOTSTRAP_VERSION": "18.1.1", "BOOTSTRAP_VERSION": "^5.2.3" } diff --git a/src/sortable/package.json b/src/sortable/package.json index d41793f039..7595c8a7cd 100644 --- a/src/sortable/package.json +++ b/src/sortable/package.json @@ -1,6 +1,6 @@ { "name": "ngx-bootstrap/sortable", - "version": "18.1.0", + "version": "18.1.1", "author": "Dmitriy Shekhovtsov ", "license": "MIT" } diff --git a/src/sortable/sortable.module.ts b/src/sortable/sortable.module.ts index 1bddcf40cc..29cda7c63c 100644 --- a/src/sortable/sortable.module.ts +++ b/src/sortable/sortable.module.ts @@ -1,4 +1,4 @@ -import { NgModule } from '@angular/core'; +import { ModuleWithProviders, NgModule } from '@angular/core'; import { SortableComponent } from './sortable.component'; @@ -8,7 +8,10 @@ import { SortableComponent } from './sortable.component'; }) export class SortableModule { // @deprecated method not required anymore, will be deleted in v19.0.0 - static forRoot() { - return SortableModule; + static forRoot(): ModuleWithProviders { + return { + ngModule: SortableModule, + providers: [] + }; } } diff --git a/src/tabs/package.json b/src/tabs/package.json index 56770abf88..c15d73143f 100644 --- a/src/tabs/package.json +++ b/src/tabs/package.json @@ -1,6 +1,6 @@ { "name": "ngx-bootstrap/tabs", - "version": "18.1.0", + "version": "18.1.1", "author": "Dmitriy Shekhovtsov ", "license": "MIT" } diff --git a/src/tabs/tabs.module.ts b/src/tabs/tabs.module.ts index 359d111fcc..ce779c96e1 100644 --- a/src/tabs/tabs.module.ts +++ b/src/tabs/tabs.module.ts @@ -20,7 +20,10 @@ import { TabsetComponent } from './tabset.component'; }) export class TabsModule { // @deprecated method not required anymore, will be deleted in v19.0.0 - static forRoot() { - return TabsModule; + static forRoot(): ModuleWithProviders { + return { + ngModule: TabsModule, + providers: [] + }; } } diff --git a/src/timepicker/package.json b/src/timepicker/package.json index c8ead5ed52..cc2c357e5c 100644 --- a/src/timepicker/package.json +++ b/src/timepicker/package.json @@ -1,6 +1,6 @@ { "name": "ngx-bootstrap/timepicker", - "version": "18.1.0", + "version": "18.1.1", "author": "Dmitriy Shekhovtsov ", "license": "MIT" } diff --git a/src/timepicker/timepicker.module.ts b/src/timepicker/timepicker.module.ts index 9b10a82df5..bdb8678a4a 100644 --- a/src/timepicker/timepicker.module.ts +++ b/src/timepicker/timepicker.module.ts @@ -1,4 +1,4 @@ -import { NgModule } from '@angular/core'; +import { ModuleWithProviders, NgModule } from '@angular/core'; import { TimepickerComponent } from './timepicker.component'; @@ -8,7 +8,10 @@ import { TimepickerComponent } from './timepicker.component'; }) export class TimepickerModule { // @deprecated method not required anymore, will be deleted in v19.0.0 - static forRoot() { - return TimepickerModule; + static forRoot(): ModuleWithProviders { + return { + ngModule: TimepickerModule, + providers: [] + }; } } diff --git a/src/tooltip/package.json b/src/tooltip/package.json index 83552bf072..cfec702241 100644 --- a/src/tooltip/package.json +++ b/src/tooltip/package.json @@ -1,6 +1,6 @@ { "name": "ngx-bootstrap/tooltip", - "version": "18.1.0", + "version": "18.1.1", "author": "Dmitriy Shekhovtsov ", "license": "MIT" } diff --git a/src/tooltip/tooltip.module.ts b/src/tooltip/tooltip.module.ts index 928ca7a217..6a390afbd8 100644 --- a/src/tooltip/tooltip.module.ts +++ b/src/tooltip/tooltip.module.ts @@ -1,5 +1,5 @@ import { CommonModule } from '@angular/common'; -import { NgModule } from '@angular/core'; +import { ModuleWithProviders, NgModule } from '@angular/core'; import { TooltipContainerComponent } from './tooltip-container.component'; import { TooltipDirective } from './tooltip.directive'; @@ -9,7 +9,10 @@ import { TooltipDirective } from './tooltip.directive'; }) export class TooltipModule { // @deprecated method not required anymore, will be deleted in v19.0.0 - static forRoot() { - return TooltipModule; + static forRoot(): ModuleWithProviders { + return { + ngModule: TooltipModule, + providers: [] + }; } } diff --git a/src/typeahead/package.json b/src/typeahead/package.json index 86d148ddf8..deb804e7fb 100644 --- a/src/typeahead/package.json +++ b/src/typeahead/package.json @@ -1,6 +1,6 @@ { "name": "ngx-bootstrap/typeahead", - "version": "18.1.0", + "version": "18.1.1", "author": "Dmitriy Shekhovtsov ", "license": "MIT" } diff --git a/src/typeahead/typeahead.module.ts b/src/typeahead/typeahead.module.ts index ccdd9d35dd..334b3df41c 100644 --- a/src/typeahead/typeahead.module.ts +++ b/src/typeahead/typeahead.module.ts @@ -1,5 +1,5 @@ import { CommonModule } from '@angular/common'; -import { NgModule } from '@angular/core'; +import { ModuleWithProviders, NgModule } from '@angular/core'; import { TypeaheadContainerComponent } from './typeahead-container.component'; import { TypeaheadDirective } from './typeahead.directive'; @@ -10,7 +10,10 @@ import { TypeaheadDirective } from './typeahead.directive'; }) export class TypeaheadModule { // @deprecated method not required anymore, will be deleted in v19.0.0 - static forRoot() { - return TypeaheadModule; + static forRoot(): ModuleWithProviders { + return { + ngModule: TypeaheadModule, + providers: [] + }; } } diff --git a/src/utils/package.json b/src/utils/package.json index 52ada5e345..442f87287b 100644 --- a/src/utils/package.json +++ b/src/utils/package.json @@ -1,6 +1,6 @@ { "name": "ngx-bootstrap/utils", - "version": "18.1.0", + "version": "18.1.1", "author": "Dmitriy Shekhovtsov ", "license": "MIT" }