Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(moduleless): migrating to standalone modules support #6669

Open
wants to merge 29 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
20265c5
feat(accordion): migrated to standalone
lexasq Jul 16, 2024
24bfd94
feat(accordion): migrated to standalone
lexasq Jul 16, 2024
c8a4b16
feat(alert)): migrated to standalone
lexasq Jul 16, 2024
2b1deef
feat(buttons): migrated to standalone
lexasq Jul 16, 2024
95475c4
feat(carousel): migrated to standalone
lexasq Jul 16, 2024
aaef99a
feat(collapse): migrated to standalone
lexasq Jul 16, 2024
ae1862d
feat(datepicker): migrated to standalone
lexasq Jul 16, 2024
b21af22
fix(accordion): fixed tests
lexasq Jul 17, 2024
23290de
fix(accordion): fixed tests
lexasq Jul 17, 2024
33c2415
fix(accordion): fixed tests
lexasq Jul 17, 2024
95c5c78
fix(accordion): fixed tests
lexasq Jul 17, 2024
ca191eb
fix(accordion): fixed tests
lexasq Jul 17, 2024
aeaa4e7
fix(carousel): fixed tests
lexasq Jul 17, 2024
68c3016
feat(dropdown): added moduleless support
lexasq Jul 17, 2024
17978bd
feat(focustrap): added moduleless support
lexasq Jul 18, 2024
abbead9
feat(modal): added moduleless support
lexasq Jul 18, 2024
c5dcf6c
feat(pagination): added moduleless support
lexasq Jul 18, 2024
76a1b15
feat(popover): added moduleless support
lexasq Jul 18, 2024
6b58679
feat(progressbar): added moduleless support
lexasq Jul 18, 2024
326a2b7
feat(rating): added moduleless support
lexasq Jul 18, 2024
a0d1021
feat(sortable): added moduleless support
lexasq Jul 18, 2024
2a822c7
feat(tabs): added moduleless support
lexasq Jul 18, 2024
c630f65
feat(timepicker): added moduleless support
lexasq Jul 19, 2024
d04f7bb
feat(timepicker): added moduleless support
lexasq Jul 19, 2024
7d2e697
feat(typeahead): added moduleless support
lexasq Jul 19, 2024
9ac1735
feat(typeahead): added moduleless support
lexasq Jul 19, 2024
2876b79
fix(rating): tests ajust to moduleless
lexasq Jul 19, 2024
a532cef
fix(progressbar): tests ajust to moduleless
lexasq Jul 19, 2024
7eface6
chore(docs): added deprecations
lexasq Jul 22, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ import { TooltipModule } from 'ngx-bootstrap/tooltip';

@NgModule({
...
imports: [TooltipModule.forRoot(),...]
imports: [TooltipModule,...]
...
})
```
Expand Down
2 changes: 1 addition & 1 deletion apps/ngx-bootstrap-docs/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { routes } from './app.routing';
bootstrap: [AppComponent], imports: [BrowserAnimationsModule,
DocsModule,
RouterModule.forRoot(routes, { useHash: environment.useHash }),
BsDropdownModule.forRoot()], providers: [
BsDropdownModule], providers: [
{ provide: NgApiDoc, useValue: ngdoc },
{ provide: DOCS_TOKENS, useValue: routes },
{ provide: SIDEBAR_ROUTES, useValue: SidebarRoutesStructure },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ <h2 id="getting-started">Schematics</h2>
],
<span class="kwd">imports</span>: [
<span class="pln"> &hellip;</span>
<span class="lit">AccordionModule.forRoot()</span>,
<span class="lit">AccordionModule</span>,
],
bootstrap: [AppComponent]
<span class="pun">{{'}'}}</span>)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export { ExamplesComponent } from './examples.component';
CommonModule,
NgApiDocModule,
RouterModule,
TabsModule.forRoot(),
TabsModule,
],
exports: [
ExamplesComponent,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ import { ${className === 'DemoModalServiceFromComponent' ? `${className}, ModalC
declarations: [${className === 'DemoModalServiceFromComponent' ? `${className}, ModalContentComponent` : className}],
imports: [
${moduleData.moduleName}.forRoot(),
${className === 'DemoModalWithPopupsComponent' ? `TooltipModule.forRoot(),
PopoverModule.forRoot(),` : ''}
${className === 'DemoModalWithPopupsComponent' ? `TooltipModule,
PopoverModule,` : ''}
BrowserAnimationsModule,
CommonModule,
FormsModule,
Expand Down
4 changes: 2 additions & 2 deletions libs/common-docs/src/lib/docs.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ export { ThemesComponent } from './common/themes/themes.component';
NgApiDocModule,
ExamplesComponentModule,
ApiSectionsComponentModule,
TabsModule.forRoot(),
BsDropdownModule.forRoot(),
TabsModule,
BsDropdownModule,
RouterModule
],
exports: [
Expand Down
2 changes: 1 addition & 1 deletion libs/doc-pages/accordion/src/lib/accordion.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export { AccordionSectionComponent } from './accordion-section.component';
...DEMO_COMPONENTS
],
imports: [
AccordionModule.forRoot(),
AccordionModule,
CommonModule,
FormsModule,
DocsModule,
Expand Down
2 changes: 1 addition & 1 deletion libs/doc-pages/accordion/src/lib/docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { AccordionModule } from 'ngx-bootstrap/accordion';
@NgModule({
imports: [
BrowserAnimationsModule,
AccordionModule.forRoot(),
AccordionModule,
...
]
})
Expand Down
2 changes: 1 addition & 1 deletion libs/doc-pages/alerts/src/lib/alerts.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export { AlertsSectionComponent } from './alerts-section.component';
...DEMO_COMPONENTS
],
imports: [
AlertModule.forRoot(),
AlertModule,
CommonModule,
DocsModule,
RouterModule.forChild(routes)
Expand Down
2 changes: 1 addition & 1 deletion libs/doc-pages/alerts/src/lib/docs/usage.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { AlertModule } from 'ngx-bootstrap/alert';

@NgModule({
imports: [AlertModule.forRoot(),...]
imports: [AlertModule,...]
})
export class AppModule(){}
2 changes: 1 addition & 1 deletion libs/doc-pages/buttons/src/lib/buttons.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export { ButtonsSectionComponent } from './buttons-section.component';
CommonModule,
DocsModule,
RouterModule.forChild(routes),
ButtonsModule.forRoot()
ButtonsModule
],
exports: [ButtonsSectionComponent]
})
Expand Down
2 changes: 1 addition & 1 deletion libs/doc-pages/buttons/src/lib/docs/usage.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ButtonsModule } from 'ngx-bootstrap/buttons';

@NgModule({
imports: [ButtonsModule.forRoot(),...]
imports: [ButtonsModule,...]
})
export class AppModule(){}
2 changes: 1 addition & 1 deletion libs/doc-pages/carousel/src/lib/carousel.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export { CarouselSectionComponent } from './carousel-section.component';
...DEMO_COMPONENTS
],
imports: [
CarouselModule.forRoot(),
CarouselModule,
CommonModule,
FormsModule,
DocsModule,
Expand Down
2 changes: 1 addition & 1 deletion libs/doc-pages/carousel/src/lib/docs/usage.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { CarouselModule } from 'ngx-bootstrap/carousel';

@NgModule({
imports: [CarouselModule.forRoot(),...]
imports: [CarouselModule,...]
})
export class AppModule(){}
2 changes: 1 addition & 1 deletion libs/doc-pages/collapse/src/lib/collapse.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export { CollapseSectionComponent } from './collapse-section.component';
...DEMO_COMPONENTS
],
imports: [
CollapseModule.forRoot(),
CollapseModule,
CommonModule,
FormsModule,
DocsModule,
Expand Down
2 changes: 1 addition & 1 deletion libs/doc-pages/collapse/src/lib/docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { CollapseModule } from 'ngx-bootstrap/collapse';
@NgModule({
imports: [
BrowserAnimationsModule,
CollapseModule.forRoot(),
CollapseModule,
...
]
})
Expand Down
4 changes: 2 additions & 2 deletions libs/doc-pages/datepicker/src/lib/datepicker.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ locales.forEach((locale: LocaleData) => {
...DEMO_COMPONENTS
],
imports: [
BsDatepickerModule.forRoot(),
TabsModule.forRoot(),
BsDatepickerModule,
TabsModule,
CommonModule,
FormsModule,
ReactiveFormsModule,
Expand Down
4 changes: 2 additions & 2 deletions libs/doc-pages/datepicker/src/lib/demo-datepicker.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ locales.forEach((locale: LocaleData) => {
...DEMO_COMPONENTS
],
imports: [
BsDatepickerModule.forRoot(),
TabsModule.forRoot(),
BsDatepickerModule,
TabsModule,
CommonModule,
FormsModule,
ReactiveFormsModule,
Expand Down
2 changes: 1 addition & 1 deletion libs/doc-pages/datepicker/src/lib/docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { BsDatepickerModule } from 'ngx-bootstrap/datepicker';
@NgModule({
imports: [
BrowserAnimationsModule,
BsDatepickerModule.forRoot(),
BsDatepickerModule,
...
]
})
Expand Down
2 changes: 1 addition & 1 deletion libs/doc-pages/dropdown/src/lib/docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { BsDropdownModule } from 'ngx-bootstrap/dropdown';
@NgModule({
imports: [
BrowserAnimationsModule,
BsDropdownModule.forRoot()
BsDropdownModule
]
})
export class AppModule(){}
Expand Down
2 changes: 1 addition & 1 deletion libs/doc-pages/dropdown/src/lib/dropdown.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export { DropdownSectionComponent } from './dropdown-section.component';
...DEMO_COMPONENTS
],
imports: [
BsDropdownModule.forRoot(),
BsDropdownModule,
CommonModule,
FormsModule,
DocsModule,
Expand Down
2 changes: 1 addition & 1 deletion libs/doc-pages/modal/src/lib/docs/usage.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ModalModule } from 'ngx-bootstrap/modal';

@NgModule({
imports: [ModalModule.forRoot(),...]
imports: [ModalModule,...]
})
export class AppModule(){}
11 changes: 6 additions & 5 deletions libs/doc-pages/modal/src/lib/modal.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { RouterModule } from '@angular/router';
import { ModalModule } from 'ngx-bootstrap/modal';
import { BsModalService, ModalModule } from 'ngx-bootstrap/modal';

import { DocsModule } from '@ngx-bootstrap-doc/docs';
import { ModalSectionComponent } from './modal-section.component';
Expand All @@ -24,14 +24,15 @@ export { ModalSectionComponent } from './modal-section.component';
...DEMO_COMPONENTS
],
imports: [
ModalModule.forRoot(),
PopoverModule.forRoot(),
TooltipModule.forRoot(),
ModalModule,
PopoverModule,
TooltipModule,
CommonModule,
FormsModule,
DocsModule,
RouterModule.forChild(routes)
],
exports: [ModalSectionComponent]
exports: [ModalSectionComponent],
providers: [BsModalService]
})
export class DemoModalModule {}
2 changes: 1 addition & 1 deletion libs/doc-pages/pagination/src/lib/docs/usage.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { PaginationModule } from 'ngx-bootstrap/pagination';

@NgModule({
imports: [PaginationModule.forRoot(),...]
imports: [PaginationModule,...]
})
export class AppModule(){}
2 changes: 1 addition & 1 deletion libs/doc-pages/pagination/src/lib/pagination.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export { PaginationSectionComponent } from './pagination-section.component';
...DEMO_COMPONENTS
],
imports: [
PaginationModule.forRoot(),
PaginationModule,
CommonModule,
FormsModule,
DocsModule,
Expand Down
2 changes: 1 addition & 1 deletion libs/doc-pages/popover/src/lib/docs/usage.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { PopoverModule } from 'ngx-bootstrap/popover';

@NgModule({
imports: [PopoverModule.forRoot(),...]
imports: [PopoverModule,...]
})
export class AppModule(){}
2 changes: 1 addition & 1 deletion libs/doc-pages/popover/src/lib/popover.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export { PopoverSectionComponent } from './popover-section.component';
CommonModule,
FormsModule,
DocsModule,
PopoverModule.forRoot(),
PopoverModule,
RouterModule.forChild(routes)
],
exports: [PopoverSectionComponent]
Expand Down
2 changes: 1 addition & 1 deletion libs/doc-pages/progressbar/src/lib/docs/usage.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ProgressbarModule } from 'ngx-bootstrap/progressbar';

@NgModule({
imports: [ProgressbarModule.forRoot(),...]
imports: [ProgressbarModule,...]
})
export class AppModule(){}
2 changes: 1 addition & 1 deletion libs/doc-pages/progressbar/src/lib/progressbar.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export { ProgressbarSectionComponent } from './progressbar-section.component';
CommonModule,
FormsModule,
DocsModule,
ProgressbarModule.forRoot(),
ProgressbarModule,
RouterModule.forChild(routes)
],
exports: [ProgressbarSectionComponent]
Expand Down
2 changes: 1 addition & 1 deletion libs/doc-pages/rating/src/lib/docs/usage.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { RatingModule } from 'ngx-bootstrap/rating';

@NgModule({
imports: [RatingModule.forRoot(),...]
imports: [RatingModule,...]
})
export class AppModule(){}
2 changes: 1 addition & 1 deletion libs/doc-pages/rating/src/lib/rating.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export { RatingSectionComponent } from './rating-section.component';
CommonModule,
FormsModule,
DocsModule,
RatingModule.forRoot(),
RatingModule,
RouterModule.forChild(routes)
],
exports: [RatingSectionComponent]
Expand Down
2 changes: 1 addition & 1 deletion libs/doc-pages/sortable/src/lib/docs/usage.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { SortableModule } from 'ngx-bootstrap/sortable';

@NgModule({
imports: [SortableModule.forRoot(),...]
imports: [SortableModule,...]
})
export class AppModule(){}
2 changes: 1 addition & 1 deletion libs/doc-pages/sortable/src/lib/sortable.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export { SortableSectionComponent } from './sortable-section.component';
CommonModule,
FormsModule,
DocsModule,
SortableModule.forRoot(),
SortableModule,
RouterModule.forChild(routes)
],
exports: [SortableSectionComponent]
Expand Down
2 changes: 1 addition & 1 deletion libs/doc-pages/tabs/src/lib/docs/usage.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { TabsModule } from 'ngx-bootstrap/tabs';

@NgModule({
imports: [TabsModule.forRoot(),...]
imports: [TabsModule,...]
})
export class AppModule(){}
2 changes: 1 addition & 1 deletion libs/doc-pages/tabs/src/lib/tabs.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export { TabsSectionComponent } from './tabs-section.component';
CommonModule,
FormsModule,
DocsModule,
TabsModule.forRoot(),
TabsModule,
RouterModule.forChild(routes)
],
exports: [TabsSectionComponent]
Expand Down
2 changes: 1 addition & 1 deletion libs/doc-pages/timepicker/src/lib/docs/usage.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { TimepickerModule } from 'ngx-bootstrap/timepicker';

@NgModule({
imports: [TimepickerModule.forRoot(),...]
imports: [TimepickerModule,...]
})
export class AppModule(){}
2 changes: 1 addition & 1 deletion libs/doc-pages/timepicker/src/lib/timepicker.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export { TimepickerSectionComponent } from './timepicker-section.component';
FormsModule,
ReactiveFormsModule,
DocsModule,
TimepickerModule.forRoot(),
TimepickerModule,
RouterModule.forChild(routes)
],
exports: [TimepickerSectionComponent]
Expand Down
2 changes: 1 addition & 1 deletion libs/doc-pages/tooltip/src/lib/docs/usage.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { TooltipModule } from 'ngx-bootstrap/tooltip';

@NgModule({
imports: [TooltipModule.forRoot(),...]
imports: [TooltipModule,...]
})
export class AppModule(){}
2 changes: 1 addition & 1 deletion libs/doc-pages/tooltip/src/lib/tooltip.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export { TooltipSectionComponent } from './tooltip-section.component';
CommonModule,
FormsModule,
DocsModule,
TooltipModule.forRoot(),
TooltipModule,
RouterModule.forChild(routes)
],
exports: [TooltipSectionComponent]
Expand Down
2 changes: 1 addition & 1 deletion libs/doc-pages/typeahead/src/lib/docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { TypeaheadModule } from 'ngx-bootstrap/typeahead';
@NgModule({
imports: [
BrowserAnimationsModule,
TypeaheadModule.forRoot(),
TypeaheadModule,
...
]
})
Expand Down
2 changes: 1 addition & 1 deletion libs/doc-pages/typeahead/src/lib/typeahead.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export { TypeaheadSectionComponent } from './typeahead-section.component';
FormsModule,
ReactiveFormsModule,
DocsModule,
TypeaheadModule.forRoot(),
TypeaheadModule,
RouterModule.forChild(routes)
],
exports: [TypeaheadSectionComponent]
Expand Down
Loading
Loading