Skip to content

Commit

Permalink
Merge branch 'development' into additional-date-range-event
Browse files Browse the repository at this point in the history
  • Loading branch information
lexasq authored Oct 16, 2024
2 parents c336976 + 2c7d6f0 commit b35aef8
Show file tree
Hide file tree
Showing 179 changed files with 1,340 additions and 675 deletions.
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
@@ -1,3 +1,3 @@
{
"version": "18.0.2"
"version": "18.1.0"
}
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
20 changes: 19 additions & 1 deletion libs/doc-pages/accordion/src/lib/docs/usage.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,29 @@
### Standalone component usage
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';

import { AccordionComponent, AccordionPanelComponent } from 'ngx-bootstrap/accordion';

@Component({
standalone: true,
imports: [
BrowserAnimationsModule,
AccordionComponent,
AccordionPanelComponent
...
]
})
export class AppComponent(){}

Also should be added web-animations-js polyfill for IE browser (Edge)
### Module usage
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';

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
13 changes: 12 additions & 1 deletion libs/doc-pages/alerts/src/lib/docs/usage.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
### Standalone component usage
import { AlertComponent } from 'ngx-bootstrap/alert';

@Components({
standalone: true,
imports: [AlertComponent,...]
})
export class AppComponent(){}


### Module usage
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
15 changes: 14 additions & 1 deletion libs/doc-pages/buttons/src/lib/docs/usage.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
### Standalone component usage
import { ButtonsModule } from 'ngx-bootstrap/buttons';

@Component({
imports: [
ButtonsModule,
...
]
})
export class AppComponent(){}


### Module usage
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
15 changes: 14 additions & 1 deletion libs/doc-pages/carousel/src/lib/docs/usage.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
### Standalone component usage
import { CarouselModule } from 'ngx-bootstrap/carousel';

@Component({
imports: [
CarouselModule,
...
]
})
export class AppComponent(){}


### Module usage
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
18 changes: 17 additions & 1 deletion libs/doc-pages/collapse/src/lib/docs/usage.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,27 @@
### Standalone component usage
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';

import { CollapseDirective } from 'ngx-bootstrap/collapse';

@Component({
imports: [
BrowserAnimationsModule,
CollapseDirective,
...
]
})
export class AppComponent(){}


### Module usage
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';

import { CollapseModule } from 'ngx-bootstrap/collapse';

@NgModule({
imports: [
BrowserAnimationsModule,
CollapseModule.forRoot(),
CollapseModule,
...
]
})
Expand Down
8 changes: 4 additions & 4 deletions libs/doc-pages/datepicker/src/lib/datepicker.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
arLocale, bgLocale, caLocale, csLocale, daLocale, deLocale, enGbLocale, esDoLocale, esLocale, esUsLocale, etLocale, frLocale, heLocale,
hiLocale, hrLocale, fiLocale, glLocale, huLocale, idLocale, itLocale, jaLocale, kaLocale, kkLocale, koLocale, ltLocale, lvLocale, mnLocale, nbLocale,
nlBeLocale, nlLocale, plLocale, ptBrLocale, ruLocale, roLocale, skLocale, slLocale, sqLocale, svLocale, thLocale, thBeLocale, trLocale, viLocale,
zhCnLocale, ukLocale
zhCnLocale, ukLocale, frCaLocale
} from 'ngx-bootstrap/locale';

import { TabsModule } from 'ngx-bootstrap/tabs';
Expand All @@ -26,7 +26,7 @@ const locales = [
arLocale, bgLocale, caLocale, csLocale, daLocale, deLocale, enGbLocale, esDoLocale, esLocale, esUsLocale, etLocale, frLocale,
heLocale, hiLocale, hrLocale, fiLocale, glLocale, huLocale, idLocale, itLocale, jaLocale, kaLocale, kkLocale, koLocale, ltLocale, lvLocale, mnLocale,
nbLocale, nlBeLocale, nlLocale, plLocale, ptBrLocale, ruLocale, roLocale, skLocale, slLocale, sqLocale, svLocale, thLocale, thBeLocale,
trLocale, ukLocale, viLocale, zhCnLocale
trLocale, ukLocale, viLocale, zhCnLocale, frCaLocale
];

locales.forEach((locale: LocaleData) => {
Expand All @@ -43,8 +43,8 @@ locales.forEach((locale: LocaleData) => {
...DEMO_COMPONENTS
],
imports: [
BsDatepickerModule.forRoot(),
TabsModule.forRoot(),
BsDatepickerModule,
TabsModule,
CommonModule,
FormsModule,
ReactiveFormsModule,
Expand Down
8 changes: 4 additions & 4 deletions libs/doc-pages/datepicker/src/lib/demo-datepicker.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
arLocale, bgLocale, caLocale, csLocale, daLocale, deLocale, enGbLocale, esDoLocale, esLocale, esPrLocale, esUsLocale, etLocale, frLocale, heLocale,
hiLocale, hrLocale, fiLocale, glLocale, huLocale, idLocale, itLocale, jaLocale, kaLocale, kkLocale, koLocale, ltLocale, lvLocale, mnLocale, nbLocale,
nlBeLocale, nlLocale, plLocale, ptBrLocale, ruLocale, roLocale, skLocale, slLocale, sqLocale, svLocale, thLocale, thBeLocale, trLocale, viLocale,
zhCnLocale, ukLocale
zhCnLocale, ukLocale, frCaLocale
} from 'ngx-bootstrap/locale';

import { TabsModule } from 'ngx-bootstrap/tabs';
Expand All @@ -24,7 +24,7 @@ const locales = [
arLocale, bgLocale, caLocale, csLocale, daLocale, deLocale, enGbLocale, esDoLocale, esLocale, esPrLocale, esUsLocale, etLocale, frLocale,
heLocale, hiLocale, hrLocale, fiLocale, glLocale, huLocale, idLocale, itLocale, jaLocale, kaLocale, kkLocale, koLocale, ltLocale, lvLocale, mnLocale,
nbLocale, nlBeLocale, nlLocale, plLocale, ptBrLocale, ruLocale, roLocale, skLocale, slLocale, sqLocale, svLocale, thLocale, thBeLocale,
trLocale, ukLocale, viLocale, zhCnLocale
trLocale, ukLocale, viLocale, zhCnLocale, frCaLocale
];

locales.forEach((locale: LocaleData) => {
Expand All @@ -41,8 +41,8 @@ locales.forEach((locale: LocaleData) => {
...DEMO_COMPONENTS
],
imports: [
BsDatepickerModule.forRoot(),
TabsModule.forRoot(),
BsDatepickerModule,
TabsModule,
CommonModule,
FormsModule,
ReactiveFormsModule,
Expand Down
18 changes: 17 additions & 1 deletion libs/doc-pages/datepicker/src/lib/docs/usage.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,27 @@
### Standalone component usage
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';

import { BsDatepickerModule } from 'ngx-bootstrap/datepicker';

@Components({
imports: [
BrowserAnimationsModule,
BsDatepickerModule,
...
]
})
export class AppComponents(){}


### Module usage
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';

import { BsDatepickerModule } from 'ngx-bootstrap/datepicker';

@NgModule({
imports: [
BrowserAnimationsModule,
BsDatepickerModule.forRoot(),
BsDatepickerModule,
...
]
})
Expand Down
19 changes: 18 additions & 1 deletion libs/doc-pages/dropdown/src/lib/docs/usage.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,28 @@
### Standalone component usage
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';

import { BsDropdownModule } from 'ngx-bootstrap/datepicker';

@Components({
standalone: true,
imports: [
BrowserAnimationsModule,
BsDropdownModule,
...
]
})
export class AppComponents(){}


### Module usage
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';

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
14 changes: 13 additions & 1 deletion libs/doc-pages/modal/src/lib/docs/usage.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
### Standalone component usage
import { ModalModule, BsModalService } from 'ngx-bootstrap/modal';

@Component({
standalone: true,
imports: [ModalModule,...], // module can be optional
providers: [BsModalService]
})
export class AppComponent(){}

### Module usage
import { ModalModule } from 'ngx-bootstrap/modal';

@NgModule({
imports: [ModalModule.forRoot(),...]
imports: [ModalModule,...],
providers: [BsModalService]
})
export class AppModule(){}
Loading

0 comments on commit b35aef8

Please sign in to comment.