Skip to content

Commit 69b5ef4

Browse files
authored
Merge branch 'development' into fix-component-loader-memory-leaks
2 parents d61e336 + b1b1f54 commit 69b5ef4

File tree

89 files changed

+8418
-7292
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+8418
-7292
lines changed

.eslintrc.json

Lines changed: 16 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,12 @@
11
{
22
"root": true,
3-
"ignorePatterns": [
4-
"**/*"
5-
],
6-
"plugins": [
7-
"@nx"
8-
],
3+
"ignorePatterns": ["**/*"],
4+
"plugins": ["@nx"],
95
"rules": {},
106
"overrides": [
117
{
12-
"files": [
13-
"*.ts",
14-
"*.tsx",
15-
"*.js",
16-
"*.jsx"
17-
],
8+
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
9+
"excludedFiles": ["*.spec.ts"],
1810
"rules": {
1911
"@nx/enforce-module-boundaries": [
2012
"error",
@@ -24,42 +16,33 @@
2416
"depConstraints": [
2517
{
2618
"sourceTag": "*",
27-
"onlyDependOnLibsWithTags": [
28-
"*"
29-
]
19+
"onlyDependOnLibsWithTags": ["*"]
3020
}
3121
]
3222
}
3323
]
3424
}
3525
},
3626
{
37-
"files": [
38-
"*.ts",
39-
"*.tsx"
40-
],
41-
"extends": [
42-
"plugin:@nx/typescript"
43-
],
27+
"files": ["*.ts", "*.tsx"],
28+
"extends": ["plugin:@nx/typescript"],
4429
"parserOptions": {
4530
"project": "./tsconfig.*?.json"
4631
},
4732
"rules": {
4833
"semi": "off",
49-
"@typescript-eslint/semi": [
50-
"error"
51-
]
34+
"@typescript-eslint/semi": ["error"],
35+
"@typescript-eslint/no-extra-semi": "error",
36+
"no-extra-semi": "off"
5237
}
5338
},
5439
{
55-
"files": [
56-
"*.js",
57-
"*.jsx"
58-
],
59-
"extends": [
60-
"plugin:@nx/javascript"
61-
],
62-
"rules": {}
40+
"files": ["*.js", "*.jsx"],
41+
"extends": ["plugin:@nx/javascript"],
42+
"rules": {
43+
"@typescript-eslint/no-extra-semi": "error",
44+
"no-extra-semi": "off"
45+
}
6346
}
6447
]
6548
}

.github/workflows/on-gh-release.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: on-gh-release
2+
on:
3+
release:
4+
types: [released]
5+
branches:
6+
- development
7+
8+
env:
9+
NX_BRANCH: ${{ github.event.number }}
10+
NX_RUN_GROUP: ${{ github.run_id }}
11+
NX_CLOUD_AUTH_TOKEN: ${{ secrets.NX_CLOUD_AUTH_TOKEN }}
12+
MOZ_HEADLESS: 1
13+
CONVENTIONAL_GITHUB_RELEASER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
14+
15+
jobs:
16+
# one run
17+
one_run:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Cancel Previous Runs
21+
uses: styfle/[email protected]
22+
with:
23+
access_token: ${{ secrets.GITHUB_TOKEN }}
24+
25+
# update npm tags
26+
npm_tag_update:
27+
runs-on: ubuntu-latest
28+
needs: one_run
29+
steps:
30+
- uses: actions/checkout@v3
31+
- uses: actions/cache@v3
32+
- name: get-npm-version
33+
id: package-version
34+
uses: martinbeentjes/[email protected]
35+
- run: |
36+
npm config set registry https://registry.npmjs.org/
37+
npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
38+
npm dist-tag add ngx-bootstrap@${{ steps.package-version.outputs.current-version}} latest

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
# dependencies
1010
/node_modules
11+
src/root/node_modules
1112

1213
# IDEs and editors
1314
/.idea

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11

22

3+
## [18.0.0](https://github.com/valor-software/ngx-bootstrap/compare/v11.0.2...v18.0.0) (2024-07-1)
4+
* Migration to Angular 18
5+
* Synced major version of the lib with major version of Angular
6+
7+
38
## [11.0.2](https://github.com/valor-software/ngx-bootstrap/compare/v11.0.1...v11.0.2) (2023-07-13)
49

510

@@ -2513,4 +2518,4 @@
25132518

25142519
* **build:** works good with [email protected] ([31c513b](https://github.com/valor-software/ngx-bootstrap/commit/31c513b4f4f084ae0eabe82b2d8bec028bb48572))
25152520
* **ng 2.0.37:** ts errors fixed ([1e19f55](https://github.com/valor-software/ngx-bootstrap/commit/1e19f555da161f1f572ed6747eb6d72796060ed8))
2516-
* **typeahead:** ts style fixes ([3eab1e4](https://github.com/valor-software/ngx-bootstrap/commit/3eab1e428ebe3ce2ddf1013d48693bc38e23c150))
2521+
* **typeahead:** ts style fixes ([3eab1e4](https://github.com/valor-software/ngx-bootstrap/commit/3eab1e428ebe3ce2ddf1013d48693bc38e23c150))

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,8 @@ The only two dependencies are [Angular](https://angular.io) and [Bootstrap](http
178178
Here is the version compatibility list:
179179

180180
| ngx-bootstrap | Angular | Bootstrap CSS |
181-
| ------------- | --------------- | ----------------------- |
181+
|---------------| --------------- | ----------------------- |
182+
| 18.x.x | 18.x.x | 5.x.x or 4.x.x |
182183
| 12.x.x | 17.x.x | 5.x.x or 4.x.x |
183184
| 11.x.x | 16.x.x | 5.x.x or 4.x.x |
184185
| 10.x.x | 15.x.x | 5.x.x or 4.x.x |

apps/ngx-bootstrap-docs-e2e/project.json

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
"$schema": "../../node_modules/nx/schemas/project-schema.json",
44
"sourceRoot": "apps/ngx-bootstrap-docs-e2e/src",
55
"projectType": "application",
6+
"tags": [],
7+
"implicitDependencies": ["ngx-bootstrap-docs"],
68
"targets": {
79
"e2e": {
810
"executor": "@nxkit/playwright:test",
@@ -44,12 +46,7 @@
4446
},
4547
"lint": {
4648
"executor": "@nx/eslint:lint",
47-
"outputs": ["{options.outputPath}"],
48-
"options": {
49-
"lintFilePatterns": ["apps/ngx-bootstrap-docs-e2e/**/*.{js,ts}"]
50-
}
49+
"outputs": ["{options.outputPath}"]
5150
}
52-
},
53-
"tags": [],
54-
"implicitDependencies": ["ngx-bootstrap-docs"]
51+
}
5552
}

apps/ngx-bootstrap-docs/.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"../../.eslintrc.json"
44
],
55
"ignorePatterns": [
6-
"!**/*"
6+
"!**/*",
7+
"**/assets/**"
78
],
89
"overrides": [
910
{

apps/ngx-bootstrap-docs/project.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"projectType": "application",
55
"sourceRoot": "apps/ngx-bootstrap-docs/src",
66
"prefix": "ngx-bootstrap-base",
7+
"implicitDependencies": ["ngx-bootstrap"],
78
"targets": {
89
"build": {
910
"executor": "@angular-devkit/build-angular:browser",
@@ -87,11 +88,7 @@
8788
}
8889
},
8990
"lint": {
90-
"executor": "@nx/eslint:lint",
91-
"options": {
92-
"lintFilePatterns": ["apps/ngx-bootstrap-docs/src/**/*.ts", "apps/ngx-bootstrap-docs/src/**/*.html"]
93-
}
91+
"executor": "@nx/eslint:lint"
9492
}
95-
},
96-
"implicitDependencies": ["ngx-bootstrap"]
93+
}
9794
}
Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { HttpClientModule } from '@angular/common/http';
1+
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
22
import { NgModule } from '@angular/core';
33
import { RouterModule } from '@angular/router';
44
import { BsDropdownModule } from 'ngx-bootstrap/dropdown';
@@ -10,22 +10,17 @@ import { AppComponent } from './app.component';
1010
import { DOCS_TOKENS, DocsModule, NgApiDoc, SIDEBAR_ROUTES, SidebarRoutesStructure } from '@ngx-bootstrap-doc/docs';
1111
import { routes } from './app.routing';
1212

13-
@NgModule({
14-
declarations: [
15-
AppComponent
16-
],
17-
imports: [
18-
BrowserAnimationsModule,
19-
DocsModule,
20-
HttpClientModule,
21-
RouterModule.forRoot(routes, { useHash: environment.useHash }),
22-
BsDropdownModule.forRoot()
23-
],
24-
providers: [
25-
{ provide: NgApiDoc, useValue: ngdoc },
26-
{ provide: DOCS_TOKENS, useValue: routes },
27-
{ provide: SIDEBAR_ROUTES, useValue: SidebarRoutesStructure }],
28-
bootstrap: [AppComponent]
29-
})
13+
@NgModule({ declarations: [
14+
AppComponent
15+
],
16+
bootstrap: [AppComponent], imports: [BrowserAnimationsModule,
17+
DocsModule,
18+
RouterModule.forRoot(routes, { useHash: environment.useHash }),
19+
BsDropdownModule.forRoot()], providers: [
20+
{ provide: NgApiDoc, useValue: ngdoc },
21+
{ provide: DOCS_TOKENS, useValue: routes },
22+
{ provide: SIDEBAR_ROUTES, useValue: SidebarRoutesStructure },
23+
provideHttpClient(withInterceptorsFromDi())
24+
] })
3025
export class AppModule {
3126
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"version": "12.0.0"
2+
"version": "18.0.0"
33
}

libs/common-docs/project.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,7 @@
2424
]
2525
},
2626
"lint": {
27-
"executor": "@nx/eslint:lint",
28-
"options": {
29-
"lintFilePatterns": ["libs/common-docs/src/**/*.ts", "libs/common-docs/src/**/*.html"]
30-
}
27+
"executor": "@nx/eslint:lint"
3128
}
3229
}
3330
}

libs/common-docs/src/lib/common/add-nav/add-nav.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export class AddNavComponent implements OnChanges, AfterViewChecked, AfterViewIn
3232
@HostListener('window:scroll')
3333
onScrollEvent() {
3434
this.initActiveMenuTab();
35-
};
35+
}
3636

3737
// eslint-disable-next-line @typescript-eslint/no-empty-function
3838
constructor(

libs/common-docs/src/lib/common/discover/discover.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ interface ICompany {
66
description: string;
77
link: string;
88
scale?: boolean;
9-
};
9+
}
1010

1111
@Component({
1212
// eslint-disable-next-line @angular-eslint/component-selector

libs/common-docs/src/lib/common/documentation/documentation.component.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,16 @@ <h2 id="compatibility">
232232
</tr>
233233
</thead>
234234
<tbody>
235+
<tr>
236+
<th>13.x.x</th>
237+
<th>18.x.x</th>
238+
<th>5.x.x or 4.x.x</th>
239+
</tr>
240+
<tr>
241+
<th>12.x.x</th>
242+
<th>17.x.x</th>
243+
<th>5.x.x or 4.x.x</th>
244+
</tr>
235245
<tr>
236246
<th>11.x.x</th>
237247
<th>16.x.x</th>

libs/doc-pages/accordion/project.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,7 @@
2525
]
2626
},
2727
"lint": {
28-
"executor": "@nx/eslint:lint",
29-
"options": {
30-
"lintFilePatterns": ["libs/doc-pages/accordion/src/**/*.ts", "libs/doc-pages/accordion/src/**/*.html"]
31-
}
28+
"executor": "@nx/eslint:lint"
3229
}
3330
}
3431
}

libs/doc-pages/alerts/project.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,7 @@
2424
]
2525
},
2626
"lint": {
27-
"executor": "@nx/eslint:lint",
28-
"options": {
29-
"lintFilePatterns": ["libs/doc-pages/alerts/src/**/*.ts", "libs/doc-pages/alerts/src/**/*.html"]
30-
}
27+
"executor": "@nx/eslint:lint"
3128
}
3229
}
3330
}

libs/doc-pages/buttons/project.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,7 @@
2424
]
2525
},
2626
"lint": {
27-
"executor": "@nx/eslint:lint",
28-
"options": {
29-
"lintFilePatterns": ["libs/doc-pages/buttons/src/**/*.ts", "libs/doc-pages/buttons/src/**/*.html"]
30-
}
27+
"executor": "@nx/eslint:lint"
3128
}
3229
}
3330
}

libs/doc-pages/carousel/project.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,7 @@
2424
]
2525
},
2626
"lint": {
27-
"executor": "@nx/eslint:lint",
28-
"options": {
29-
"lintFilePatterns": ["libs/doc-pages/carousel/src/**/*.ts", "libs/doc-pages/carousel/src/**/*.html"]
30-
}
27+
"executor": "@nx/eslint:lint"
3128
}
3229
}
3330
}

libs/doc-pages/collapse/project.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,7 @@
2424
]
2525
},
2626
"lint": {
27-
"executor": "@nx/eslint:lint",
28-
"options": {
29-
"lintFilePatterns": ["libs/doc-pages/collapse/src/**/*.ts", "libs/doc-pages/collapse/src/**/*.html"]
30-
}
27+
"executor": "@nx/eslint:lint"
3128
}
3229
}
3330
}

libs/doc-pages/datepicker/project.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,7 @@
2424
]
2525
},
2626
"lint": {
27-
"executor": "@nx/eslint:lint",
28-
"options": {
29-
"lintFilePatterns": ["libs/doc-pages/datepicker/src/**/*.ts", "libs/doc-pages/datepicker/src/**/*.html"]
30-
}
27+
"executor": "@nx/eslint:lint"
3128
}
3229
}
3330
}

libs/doc-pages/dropdown/project.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,7 @@
2424
]
2525
},
2626
"lint": {
27-
"executor": "@nx/eslint:lint",
28-
"options": {
29-
"lintFilePatterns": ["libs/doc-pages/dropdown/src/**/*.ts", "libs/doc-pages/dropdown/src/**/*.html"]
30-
}
27+
"executor": "@nx/eslint:lint"
3128
}
3229
}
3330
}

libs/doc-pages/modal/project.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,7 @@
2424
]
2525
},
2626
"lint": {
27-
"executor": "@nx/eslint:lint",
28-
"options": {
29-
"lintFilePatterns": ["libs/doc-pages/modal/src/**/*.ts", "libs/doc-pages/modal/src/**/*.html"]
30-
}
27+
"executor": "@nx/eslint:lint"
3128
}
3229
}
3330
}

0 commit comments

Comments
 (0)