Skip to content

Commit 4ca1a35

Browse files
authored
Merge branch 'development' into fix-build-warnings
2 parents f116362 + f34b773 commit 4ca1a35

File tree

86 files changed

+11706
-10746
lines changed

Some content is hidden

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

86 files changed

+11706
-10746
lines changed

.eslintrc.json

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,25 +25,22 @@
2525
},
2626
{
2727
"files": ["*.ts", "*.tsx"],
28-
"extends": ["plugin:@nx/typescript"],
28+
"extends": ["plugin:@nx/typescript", "plugin:@nx/angular"],
2929
"parserOptions": {
3030
"project": "./tsconfig.*?.json"
3131
},
3232
"rules": {
3333
"semi": "off",
34-
"@typescript-eslint/semi": ["error"],
35-
"@typescript-eslint/no-extra-semi": "error",
3634
"no-extra-semi": "off",
37-
"@angular-eslint/prefer-standalone": [
38-
"off"
39-
]
35+
"@typescript-eslint/no-unused-expressions": "off",
36+
"@angular-eslint/prefer-standalone": "off",
37+
"@angular-eslint/prefer-inject": "off"
4038
}
4139
},
4240
{
4341
"files": ["*.js", "*.jsx"],
4442
"extends": ["plugin:@nx/javascript"],
4543
"rules": {
46-
"@typescript-eslint/no-extra-semi": "error",
4744
"no-extra-semi": "off"
4845
}
4946
}

.github/workflows/on-push-or-pull.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,6 @@ jobs:
6060
with:
6161
path: ${{ env.CACHE_DIST_PATH }}
6262
key: dist-${{ github.run_id }}
63-
# - run: |
64-
# npx nx build ngx-bootstrap --runner=cloud --configuration=production
65-
# npx nx build --runner=cloud --configuration=production
6663
- run: |
6764
npx nx build ngx-bootstrap --configuration=production
6865
npx nx prerender --configuration=production

.github/workflows/on-release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ jobs:
5151
path: dist
5252
key: dist-${{ github.run_id }}
5353
- run: |
54-
npx nx build ngx-bootstrap --runner=cloud --configuration=production
55-
npx nx prerender --runner=cloud --configuration=production
54+
npx nx build ngx-bootstrap --configuration=production
55+
npx nx prerender --configuration=production
5656
5757
# update release notes in github
5858
# update_release_draft:
@@ -89,7 +89,7 @@ jobs:
8989
key: dist-${{ github.run_id }}
9090

9191
# - run: npm run scully
92-
- run: npx ts-node ./scripts/gh-pages-predeploy.ts
92+
- run: npx tsx ./scripts/gh-pages-predeploy.ts
9393
- run: |
9494
cd gh-pages
9595
git config user.email gh-actions-${GITHUB_ACTOR}@github.com

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ Here is the version compatibility list:
179179

180180
| ngx-bootstrap | Angular | Bootstrap CSS |
181181
|---------------|-----------------| ----------------------- |
182+
| 20.x.x | 20.x.x | 5.x.x or 4.x.x |
182183
| 19.x.x | 19.x.x | 5.x.x or 4.x.x |
183184
| 18.x.x | 18.x.x | 5.x.x or 4.x.x |
184185
| 12.x.x | 17.x.x | 5.x.x or 4.x.x |

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
"*.ts"
1313
],
1414
"extends": [
15-
"plugin:@nx/angular",
1615
"plugin:@angular-eslint/template/process-inline-templates"
1716
],
1817
"parserOptions": {
@@ -37,9 +36,6 @@
3736
"style": "kebab-case"
3837
}
3938
],
40-
"@angular-eslint/prefer-standalone": [
41-
"off"
42-
],
4339
"@typescript-eslint/no-explicit-any": 0,
4440
"@angular-eslint/component-class-suffix": 0,
4541
"@angular-eslint/no-output-on-prefix": 0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"version": "19.0.3"
2+
"version": "20.0.1"
33
}

libs/common-docs/.eslintrc.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
"*.ts"
1212
],
1313
"extends": [
14-
"plugin:@nx/angular",
1514
"plugin:@angular-eslint/template/process-inline-templates"
1615
],
1716
"parserOptions": {
@@ -35,9 +34,6 @@
3534
"prefix": "ngx-bootstrap-base",
3635
"style": "kebab-case"
3736
}
38-
],
39-
"@angular-eslint/prefer-standalone": [
40-
"off"
4137
]
4238
}
4339
},

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

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { ContentSection } from '../models/content-section.model';
2-
import { ChangeDetectorRef, Component, Injector, Input, OnDestroy } from '@angular/core';
3-
import { ActivatedRoute, NavigationEnd, Router, NavigationExtras } from '@angular/router';
4-
import { Subscription } from 'rxjs';
2+
import { ChangeDetectorRef, Component, Injector, Input } from '@angular/core';
3+
import { ActivatedRoute, Router, NavigationExtras } from '@angular/router';
54

65
const availableTabsPaths = ['overview', 'api', 'examples'] as const;
76
type AvailableTabsPathsType = typeof availableTabsPaths[number];
@@ -11,7 +10,7 @@ type AvailableTabsPathsType = typeof availableTabsPaths[number];
1110
selector: 'docs-section',
1211

1312
template: `
14-
<ng-container *ngIf="content">
13+
@if (content) {
1514
<tabset class="example-tabset-box">
1615
<tab heading="Overview" [customClass]="'example-tabset'" [active]="overview" (selectTab)="onSelect('overview')">
1716
<ng-container *ngComponentOutlet="content[0].outlet; injector: sectionInjections(content[0])"></ng-container>
@@ -24,14 +23,13 @@ type AvailableTabsPathsType = typeof availableTabsPaths[number];
2423
</tab>
2524
</tabset>
2625
<add-nav class="add-nav" [componentContent]="overview ? content[0] : api ? content[1] : content[2]"></add-nav>
27-
</ng-container>
26+
}
2827
`,
2928
standalone: false
3029
})
31-
export class DocsSectionComponent implements OnDestroy {
30+
export class DocsSectionComponent {
3231
@Input() content: ContentSection[] | undefined;
3332
_injectors = new Map<ContentSection, Injector>();
34-
routeSubscription: Subscription;
3533
overview = false;
3634
api = false;
3735
examples = false;
@@ -42,11 +40,8 @@ export class DocsSectionComponent implements OnDestroy {
4240
private router: Router,
4341
private changeDetection: ChangeDetectorRef
4442
) {
45-
this.routeSubscription = this.router.events.subscribe((event) => {
46-
if (event instanceof NavigationEnd) {
47-
const params = this.router.parseUrl(event.url).queryParams;
48-
this.initActiveTab(params['tab']?.toString());
49-
}
43+
this.activatedRoute.queryParamMap.subscribe((params) => {
44+
this.initActiveTab(params.get('tab')?.toString());
5045
});
5146
}
5247

@@ -59,7 +54,6 @@ export class DocsSectionComponent implements OnDestroy {
5954
}
6055

6156
this[activeTab as AvailableTabsPathsType] = true;
62-
this.changeDetection.detectChanges();
6357
}
6458

6559
checkActiveTab(activeTab: string): boolean {
@@ -99,8 +93,4 @@ export class DocsSectionComponent implements OnDestroy {
9993
this.api = false;
10094
this.examples = false;
10195
}
102-
103-
ngOnDestroy() {
104-
this.routeSubscription.unsubscribe();
105-
}
10696
}

libs/doc-pages/accordion/.eslintrc.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
"*.ts"
1212
],
1313
"extends": [
14-
"plugin:@nx/angular",
1514
"plugin:@angular-eslint/template/process-inline-templates"
1615
],
1716
"parserOptions": {
@@ -35,9 +34,6 @@
3534
"prefix": "ngx-bootstrap-base",
3635
"style": "kebab-case"
3736
}
38-
],
39-
"@angular-eslint/prefer-standalone": [
40-
"off"
4137
]
4238
}
4339
},

libs/doc-pages/alerts/.eslintrc.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
"*.ts"
1212
],
1313
"extends": [
14-
"plugin:@nx/angular",
1514
"plugin:@angular-eslint/template/process-inline-templates"
1615
],
1716
"parserOptions": {
@@ -35,9 +34,6 @@
3534
"prefix": "ngx-bootstrap-base",
3635
"style": "kebab-case"
3736
}
38-
],
39-
"@angular-eslint/prefer-standalone": [
40-
"off"
4137
]
4238
}
4339
},

0 commit comments

Comments
 (0)