Skip to content

Commit e9e01f0

Browse files
authored
Alex angular 19 migration (#6712)
* chore(angular-19): added angular 19 support * chore(angular-19-migration): added angular-19 support * chore(angular-19-migration): removed nx-cache for npw * fix(workflow): removed cloud build temporarily * fix(workflow): fixing build * fix(workflow): fixing build * fix(workflow): fixing build * fix(workflow): fixing build * fix(workflow): fixing build * fix(workflow): fixing build * fix(workflow): fixing build * fix(workflow): fixing build * fix(workflow): fixing build * 19.0.0 * chore(version-bump): bumped version to 19.0.0 * fix(workflow): fixing build * fix(workflow): fixing tests * fix(workflow): fixing tests * fix(workflow): fixing tests * fix(workflow): fixing tests * fix(workflow): fixing tests
1 parent f09e4b1 commit e9e01f0

File tree

407 files changed

+10420
-10832
lines changed

Some content is hidden

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

407 files changed

+10420
-10832
lines changed

.eslintrc.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@
3333
"semi": "off",
3434
"@typescript-eslint/semi": ["error"],
3535
"@typescript-eslint/no-extra-semi": "error",
36-
"no-extra-semi": "off"
36+
"no-extra-semi": "off",
37+
"@angular-eslint/prefer-standalone": [
38+
"off"
39+
]
3740
}
3841
},
3942
{

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

+9-4
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,12 @@ jobs:
6161
with:
6262
path: ${{ env.CACHE_DIST_PATH }}
6363
key: dist-${{ github.run_id }}
64+
# - run: |
65+
# npx nx build ngx-bootstrap --runner=cloud --configuration=production
66+
# npx nx build --runner=cloud --configuration=production
6467
- run: |
65-
npx nx build ngx-bootstrap --runner=cloud --configuration=production
66-
npx nx build --runner=cloud --configuration=production
68+
npx nx build ngx-bootstrap --configuration=production
69+
npx nx build --configuration=production
6770
6871
6972
# run unit tests
@@ -80,7 +83,8 @@ jobs:
8083
with:
8184
path: ${{ env.CACHE_DIST_PATH }}
8285
key: dist-${{ github.run_id }}
83-
- run: npm test -- --runner=cloud --codeCoverage
86+
# - run: npm test -- --runner=cloud --codeCoverage
87+
- run: npm test -- --codeCoverage
8488
- run: npx codecov ./coverage/
8589
continue-on-error: true
8690

@@ -94,7 +98,8 @@ jobs:
9498
with:
9599
path: ${{ env.CACHE_NODE_MODULES_PATH }}
96100
key: node_modules-${{ hashFiles('**/package-lock.json') }}
97-
- run: npm run lint -- --runner=cloud
101+
# - run: npm run lint -- --runner=cloud
102+
- run: npm run lint --
98103

99104
# firebase deploy preview
100105
firebase_preview:

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ Thumbs.db
4242

4343
firebase-debug.log
4444
.nx-cache
45+
.nx
4546
scully.log
4647
/.angular
4748
/.scully
@@ -59,4 +60,4 @@ scully.log
5960

6061
migration.json
6162

62-
.nx/cache
63+
.nx/cache

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

+3
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@
3737
"style": "kebab-case"
3838
}
3939
],
40+
"@angular-eslint/prefer-standalone": [
41+
"off"
42+
],
4043
"@typescript-eslint/no-explicit-any": 0,
4144
"@angular-eslint/component-class-suffix": 0,
4245
"@angular-eslint/no-output-on-prefix": 0

apps/ngx-bootstrap-docs/src/app/app.component.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ import { filter } from 'rxjs/operators';
77

88
@Component({
99
selector: 'bs-demo',
10-
templateUrl: './app.component.html'
10+
templateUrl: './app.component.html',
11+
standalone: false
1112
})
1213
export class AppComponent implements AfterContentInit {
1314
showSidebar = false;
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"version": "18.1.3"
2+
"version": "19.0.0"
33
}

libs/common-docs/.eslintrc.json

+3
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@
3535
"prefix": "ngx-bootstrap-base",
3636
"style": "kebab-case"
3737
}
38+
],
39+
"@angular-eslint/prefer-standalone": [
40+
"off"
3841
]
3942
}
4043
},

libs/common-docs/src/lib/api-docs/api-doc-class/api-doc-class.component.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ import { ComponentApi } from '../../models/components-api.model';
1616
// eslint-disable-next-line @angular-eslint/component-selector
1717
selector: 'ng-api-doc-class',
1818
changeDetection: ChangeDetectionStrategy.OnPush,
19-
templateUrl: './api-doc-class.component.html'
19+
templateUrl: './api-doc-class.component.html',
20+
standalone: false
2021
})
2122
export class NgApiDocClassComponent {
2223
headerAnchor?: string;

libs/common-docs/src/lib/api-docs/api-doc-config/api-doc-config.component.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ const CONFIG_SUFFIX_LENGTH = 'Config'.length;
2121
// eslint-disable-next-line @angular-eslint/component-selector
2222
selector: 'ng-api-doc-config',
2323
changeDetection: ChangeDetectionStrategy.OnPush,
24-
templateUrl: './api-doc-config.component.html'
24+
templateUrl: './api-doc-config.component.html',
25+
standalone: false
2526
})
2627
export class NgApiDocConfigComponent {
2728
apiDocs?: ClassDesc;

libs/common-docs/src/lib/api-docs/api-doc/api-doc.component.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ import { DomSanitizer } from '@angular/platform-browser';
2121
// eslint-disable-next-line @angular-eslint/component-selector
2222
selector: 'ng-api-doc',
2323
changeDetection: ChangeDetectionStrategy.OnPush,
24-
templateUrl: './api-doc.component.html'
24+
templateUrl: './api-doc.component.html',
25+
standalone: false
2526
})
2627
export class NgApiDocComponent {
2728
apiDocs?: DirectiveDesc;

libs/common-docs/src/lib/api-docs/index.ts

-4
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ import { SampleBoxComponent } from './sample-box/sample-box.component';
1212
import { TabsModule } from 'ngx-bootstrap/tabs';
1313
export { NgApiDoc } from './api-docs.model';
1414
export { Analytics } from './analytics/analytics';
15-
export { NgApiDocComponent } from './api-doc/api-doc.component';
16-
export { NgApiDocClassComponent } from './api-doc-class/api-doc-class.component';
17-
export { NgApiDocConfigComponent } from './api-doc-config/api-doc-config.component';
18-
export { SampleBoxComponent } from './sample-box/sample-box.component';
1915

2016
@NgModule({
2117
imports: [CommonModule, TabsModule],

libs/common-docs/src/lib/api-docs/sample-box/sample-box.component.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import { Component, Input } from '@angular/core';
33
@Component({
44
// eslint-disable-next-line @angular-eslint/component-selector
55
selector: 'ng-sample-box',
6-
templateUrl: './sample-box.component.html'
6+
templateUrl: './sample-box.component.html',
7+
standalone: false
78
})
89
export class SampleBoxComponent {
910
@Input() ts?: string;

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ interface IComponentContent {
2121
@Component({
2222
// eslint-disable-next-line @angular-eslint/component-selector
2323
selector: 'add-nav',
24-
templateUrl: './add-nav.component.html'
24+
templateUrl: './add-nav.component.html',
25+
standalone: false
2526
})
2627
export class AddNavComponent implements OnChanges, AfterViewChecked, AfterViewInit {
2728
@Input() componentContent?: ContentSection;

libs/common-docs/src/lib/common/app-footer/app-footer.component.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { Component } from '@angular/core';
33
@Component({
44
// eslint-disable-next-line @angular-eslint/component-selector
55
selector: 'app-footer',
6-
templateUrl: './app-footer.component.html'
6+
templateUrl: './app-footer.component.html',
7+
standalone: false
78
})
89
export class AppFooterComponent {}

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import { Subscription } from 'rxjs';
55
@Component({
66
// eslint-disable-next-line @angular-eslint/component-selector
77
selector: 'bread-crumbs',
8-
templateUrl: 'breadCrumbs.component.html'
8+
templateUrl: 'breadCrumbs.component.html',
9+
standalone: false
910
})
1011
export class BreadCrumbsComponent implements OnDestroy {
1112
routeSubscription: Subscription;

libs/common-docs/src/lib/common/components-page/components-page.component.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import { Routes } from "@angular/router";
55
@Component({
66
// eslint-disable-next-line @angular-eslint/component-selector
77
selector: 'components',
8-
templateUrl: './components-page.component.html'
8+
templateUrl: './components-page.component.html',
9+
standalone: false
910
})
1011
export class ComponentsPageComponent {
1112
componentsArray?:Routes;

libs/common-docs/src/lib/common/construction-page/construction-page.component.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { Component } from "@angular/core";
33
@Component({
44
// eslint-disable-next-line @angular-eslint/component-selector
55
selector: 'construction',
6-
templateUrl: './construction-page.component.html'
6+
templateUrl: './construction-page.component.html',
7+
standalone: false
78
})
89
export class ConstructionPageComponent {}

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ interface ICompany {
1212
// eslint-disable-next-line @angular-eslint/component-selector
1313
selector: 'discover',
1414
templateUrl: './discover.component.html',
15-
styleUrls: ['discover.component.scss']
15+
styleUrls: ['discover.component.scss'],
16+
standalone: false
1617
})
1718

1819
export class DiscoverComponent {

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import { Component } from '@angular/core';
33
@Component({
44
// eslint-disable-next-line @angular-eslint/component-selector
55
selector: 'documentation',
6-
templateUrl: './documentation.component.html'
6+
templateUrl: './documentation.component.html',
7+
standalone: false
78
})
89
export class DocumentationComponent {
910
name = `Native Angular widgets for Bootstrap 5 and Bootstrap 4`;

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import { Router } from '@angular/router';
66
@Component({
77
// eslint-disable-next-line @angular-eslint/component-selector
88
selector: 'landing',
9-
templateUrl: './landing.component.html'
9+
templateUrl: './landing.component.html',
10+
standalone: false
1011
})
1112
export class LandingComponent implements AfterViewInit {
1213
currentVersion?: string;

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import { Component } from '@angular/core';
33
@Component({
44
// eslint-disable-next-line @angular-eslint/component-selector
55
selector: 'schematics',
6-
templateUrl: './schematics.component.html'
6+
templateUrl: './schematics.component.html',
7+
standalone: false
78
})
89
export class SchematicsComponent {
910
name = `Schematics of ngx-bootstrap`;

libs/common-docs/src/lib/common/search-input/search-filter.pipe.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
import { Pipe, PipeTransform } from '@angular/core';
22
import { Route, Routes } from '@angular/router';
33

4-
@Pipe({ name: 'SearchFilter' })
4+
@Pipe({
5+
name: 'SearchFilter',
6+
standalone: false
7+
})
58
export class SearchFilterPipe implements PipeTransform {
69
transform(value: Routes, text?: string): Routes {
710
if (!text) {

libs/common-docs/src/lib/common/search-input/search-input.component.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import { DOCS_TOKENS } from '../../tokens/docs-routes-token';
55
@Component({
66
// eslint-disable-next-line @angular-eslint/component-selector
77
selector: 'search-input',
8-
templateUrl: './search-input.component.html'
8+
templateUrl: './search-input.component.html',
9+
standalone: false
910
})
1011
export class SearchInputComponent {
1112
@Input() showInput = true;

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ const _bs5Css = 'assets/css/bootstrap-5.2.3/css/bootstrap.min.css';
1616
@Component({
1717
// eslint-disable-next-line @angular-eslint/component-selector
1818
selector: 'sidebar',
19-
templateUrl: './sidebar.component.html'
19+
templateUrl: './sidebar.component.html',
20+
standalone: false
2021
})
2122
export class SidebarComponent {
2223
isShown = false;

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import { Component } from "@angular/core";
33
@Component({
44
// eslint-disable-next-line @angular-eslint/component-selector
55
selector: 'themes',
6-
templateUrl: './themes.component.html'
6+
templateUrl: './themes.component.html',
7+
standalone: false
78
})
89

910
export class ThemesComponent {}

libs/common-docs/src/lib/common/top-menu/top-menu.component.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
77
@Component({
88
// eslint-disable-next-line @angular-eslint/component-selector
99
selector: 'top-menu',
10-
templateUrl: './top-menu.component.html'
10+
templateUrl: './top-menu.component.html',
11+
standalone: false
1112
})
1213
export class TopMenuComponent implements AfterViewInit {
1314
shadowRoutes = ['/documentation', '/discover', '/schematics', '/'];

libs/common-docs/src/lib/demo-section-components/demo-api-section/api-sections.component.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ import { ComponentApi } from '../../models/components-api.model';
77
// eslint-disable-next-line @angular-eslint/component-selector
88
selector: 'api-sections',
99
templateUrl: './api-sections.component.html',
10-
changeDetection: ChangeDetectionStrategy.OnPush
10+
changeDetection: ChangeDetectionStrategy.OnPush,
11+
standalone: false
1112
})
1213
export class ApiSectionsComponent {
1314
apiSectionsContent: ComponentApi[];

libs/common-docs/src/lib/demo-section-components/demo-examples-section/examples.component.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
2121
@Component({
2222
// eslint-disable-next-line @angular-eslint/component-selector
2323
selector: 'examples',
24-
templateUrl: './examples.component.html'
24+
templateUrl: './examples.component.html',
25+
standalone: false
2526
})
2627
export class ExamplesComponent {
2728
examples: ComponentExample[];

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ interface IContentSection {
1414
@Component({
1515
// eslint-disable-next-line @angular-eslint/component-selector
1616
selector: 'demo-section',
17-
templateUrl: './demo-section.component.html'
17+
templateUrl: './demo-section.component.html',
18+
standalone: false
1819
})
1920
export class DemoSectionComponent {
2021
@Input() name?: string;

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ type AvailableTabsPathsType = typeof availableTabsPaths[number];
99
@Component({
1010
// eslint-disable-next-line @angular-eslint/component-selector
1111
selector: 'docs-section',
12+
1213
template: `
1314
<ng-container *ngIf="content">
1415
<tabset class="example-tabset-box">
@@ -24,7 +25,8 @@ type AvailableTabsPathsType = typeof availableTabsPaths[number];
2425
</tabset>
2526
<add-nav class="add-nav" [componentContent]="overview ? content[0] : api ? content[1] : content[2]"></add-nav>
2627
</ng-container>
27-
`
28+
`,
29+
standalone: false
2830
})
2931
export class DocsSectionComponent implements OnDestroy {
3032
@Input() content: ContentSection[] | undefined;

libs/common-docs/src/lib/docs.module.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ import { TopMenuComponent } from './common/top-menu/top-menu.component';
2727
import { RouterModule } from '@angular/router';
2828

2929
/* export */
30-
export { NgApiDocModule, NgApiDocComponent, NgApiDocClassComponent, NgApiDocConfigComponent } from './api-docs/index';
30+
export { NgApiDocModule } from './api-docs/index';
31+
export { NgApiDocComponent } from './api-docs/api-doc/api-doc.component';
32+
export { NgApiDocClassComponent } from './api-docs/api-doc-class/api-doc-class.component';
33+
export { NgApiDocConfigComponent } from './api-docs/api-doc-config/api-doc-config.component';
3134
export { ExamplesComponent, ExamplesComponentModule } from './demo-section-components/demo-examples-section/index';
3235
export { ApiSectionsComponent, ApiSectionsComponentModule } from './demo-section-components/demo-api-section/index';
3336
export { DemoSectionComponent } from './demo-section/demo-section.component';

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

+3
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@
3535
"prefix": "ngx-bootstrap-base",
3636
"style": "kebab-case"
3737
}
38+
],
39+
"@angular-eslint/prefer-standalone": [
40+
"off"
3841
]
3942
}
4043
},

libs/doc-pages/accordion/src/lib/accordion-section.component.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ import { ContentSection } from '@ngx-bootstrap-doc/docs';
1010
// eslint-disable-next-line @angular-eslint/component-selector
1111
selector: 'accordion-section',
1212
templateUrl: './accordion-section.components.html',
13-
changeDetection: ChangeDetectionStrategy.OnPush
13+
changeDetection: ChangeDetectionStrategy.OnPush,
14+
standalone: false
1415
})
1516
export class AccordionSectionComponent {
1617
name = 'Accordion';

libs/doc-pages/accordion/src/lib/demos/animated/animated.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { Component } from '@angular/core';
33
@Component({
44
// eslint-disable-next-line @angular-eslint/component-selector
55
selector: 'demo-accordion-animation',
6-
templateUrl: './animated.html'
6+
templateUrl: './animated.html',
7+
standalone: false
78
})
89
export class DemoAccordionAnimatedComponent {}

libs/doc-pages/accordion/src/lib/demos/basic/basic.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { Component } from '@angular/core';
33
@Component({
44
// eslint-disable-next-line @angular-eslint/component-selector
55
selector: 'demo-accordion-basic',
6-
templateUrl: './basic.html'
6+
templateUrl: './basic.html',
7+
standalone: false
78
})
89
export class DemoAccordionBasicComponent {}

libs/doc-pages/accordion/src/lib/demos/config/config.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export function getAccordionConfig(): AccordionConfig {
1111
// eslint-disable-next-line @angular-eslint/component-selector
1212
selector: 'demo-accordion-config',
1313
templateUrl: './config.html',
14-
providers: [{ provide: AccordionConfig, useFactory: getAccordionConfig }]
14+
providers: [{ provide: AccordionConfig, useFactory: getAccordionConfig }],
15+
standalone: false
1516
})
1617
export class DemoAccordionConfigComponent {}

0 commit comments

Comments
 (0)