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

Alex angular 19 migration #6712

Merged
merged 21 commits into from
Dec 10, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Prev Previous commit
Next Next commit
chore(angular-19-migration): added angular-19 support
lexasq committed Dec 9, 2024
commit 828ed5bdfbcea81041759b54ff4f66bc64b2e060
2 changes: 1 addition & 1 deletion apps/ngx-bootstrap-docs/src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ import { filter } from 'rxjs/operators';
@Component({
selector: 'bs-demo',
templateUrl: './app.component.html',
standalone: false

})
export class AppComponent implements AfterContentInit {
showSidebar = false;
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ import { ComponentApi } from '../../models/components-api.model';
selector: 'ng-api-doc-class',
changeDetection: ChangeDetectionStrategy.OnPush,
templateUrl: './api-doc-class.component.html',
standalone: false

})
export class NgApiDocClassComponent {
headerAnchor?: string;
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@ const CONFIG_SUFFIX_LENGTH = 'Config'.length;
selector: 'ng-api-doc-config',
changeDetection: ChangeDetectionStrategy.OnPush,
templateUrl: './api-doc-config.component.html',
standalone: false

})
export class NgApiDocConfigComponent {
apiDocs?: ClassDesc;
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@ import { DomSanitizer } from '@angular/platform-browser';
selector: 'ng-api-doc',
changeDetection: ChangeDetectionStrategy.OnPush,
templateUrl: './api-doc.component.html',
standalone: false

})
export class NgApiDocComponent {
apiDocs?: DirectiveDesc;
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ import { Component, Input } from '@angular/core';
// eslint-disable-next-line @angular-eslint/component-selector
selector: 'ng-sample-box',
templateUrl: './sample-box.component.html',
standalone: false

})
export class SampleBoxComponent {
@Input() ts?: string;
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@ interface IComponentContent {
// eslint-disable-next-line @angular-eslint/component-selector
selector: 'add-nav',
templateUrl: './add-nav.component.html',
standalone: false

})
export class AddNavComponent implements OnChanges, AfterViewChecked, AfterViewInit {
@Input() componentContent?: ContentSection;
Original file line number Diff line number Diff line change
@@ -4,6 +4,6 @@ import { Component } from '@angular/core';
// eslint-disable-next-line @angular-eslint/component-selector
selector: 'app-footer',
templateUrl: './app-footer.component.html',
standalone: false

})
export class AppFooterComponent {}
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ import { Subscription } from 'rxjs';
// eslint-disable-next-line @angular-eslint/component-selector
selector: 'bread-crumbs',
templateUrl: 'breadCrumbs.component.html',
standalone: false

})
export class BreadCrumbsComponent implements OnDestroy {
routeSubscription: Subscription;
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ import { Routes } from "@angular/router";
// eslint-disable-next-line @angular-eslint/component-selector
selector: 'components',
templateUrl: './components-page.component.html',
standalone: false


})
export class ComponentsPageComponent {
Original file line number Diff line number Diff line change
@@ -4,6 +4,6 @@ import { Component } from "@angular/core";
// eslint-disable-next-line @angular-eslint/component-selector
selector: 'construction',
templateUrl: './construction-page.component.html',
standalone: false

})
export class ConstructionPageComponent {}
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@ interface ICompany {
selector: 'discover',
templateUrl: './discover.component.html',
styleUrls: ['discover.component.scss'],
standalone: false

})

export class DiscoverComponent {
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ import { Component } from '@angular/core';
// eslint-disable-next-line @angular-eslint/component-selector
selector: 'documentation',
templateUrl: './documentation.component.html',
standalone: false

})
export class DocumentationComponent {
name = `Native Angular widgets for Bootstrap 5 and Bootstrap 4`;
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ import { Router } from '@angular/router';
// eslint-disable-next-line @angular-eslint/component-selector
selector: 'landing',
templateUrl: './landing.component.html',
standalone: false

})
export class LandingComponent implements AfterViewInit {
currentVersion?: string;
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ import { Component } from '@angular/core';
// eslint-disable-next-line @angular-eslint/component-selector
selector: 'schematics',
templateUrl: './schematics.component.html',
standalone: false

})
export class SchematicsComponent {
name = `Schematics of ngx-bootstrap`;
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ import { Route, Routes } from '@angular/router';

@Pipe({
name: 'SearchFilter',
standalone: false

})
export class SearchFilterPipe implements PipeTransform {
transform(value: Routes, text?: string): Routes {
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ import { DOCS_TOKENS } from '../../tokens/docs-routes-token';
// eslint-disable-next-line @angular-eslint/component-selector
selector: 'search-input',
templateUrl: './search-input.component.html',
standalone: false

})
export class SearchInputComponent {
@Input() showInput = true;
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ const _bs5Css = 'assets/css/bootstrap-5.2.3/css/bootstrap.min.css';
// eslint-disable-next-line @angular-eslint/component-selector
selector: 'sidebar',
templateUrl: './sidebar.component.html',
standalone: false

})
export class SidebarComponent {
isShown = false;
2 changes: 1 addition & 1 deletion libs/common-docs/src/lib/common/themes/themes.component.ts
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ import { Component } from "@angular/core";
// eslint-disable-next-line @angular-eslint/component-selector
selector: 'themes',
templateUrl: './themes.component.html',
standalone: false

})

export class ThemesComponent {}
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
// eslint-disable-next-line @angular-eslint/component-selector
selector: 'top-menu',
templateUrl: './top-menu.component.html',
standalone: false

})
export class TopMenuComponent implements AfterViewInit {
shadowRoutes = ['/documentation', '/discover', '/schematics', '/'];
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ import { ComponentApi } from '../../models/components-api.model';
selector: 'api-sections',
templateUrl: './api-sections.component.html',
changeDetection: ChangeDetectionStrategy.OnPush,
standalone: false

})
export class ApiSectionsComponent {
apiSectionsContent: ComponentApi[];
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
// eslint-disable-next-line @angular-eslint/component-selector
selector: 'examples',
templateUrl: './examples.component.html',
standalone: false

})
export class ExamplesComponent {
examples: ComponentExample[];
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@ interface IContentSection {
// eslint-disable-next-line @angular-eslint/component-selector
selector: 'demo-section',
templateUrl: './demo-section.component.html',
standalone: false

})
export class DemoSectionComponent {
@Input() name?: string;
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@ type AvailableTabsPathsType = typeof availableTabsPaths[number];
@Component({
// eslint-disable-next-line @angular-eslint/component-selector
selector: 'docs-section',
standalone: false,

template: `
<ng-container *ngIf="content">
<tabset class="example-tabset-box">
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@ import { ContentSection } from '@ngx-bootstrap-doc/docs';
selector: 'accordion-section',
templateUrl: './accordion-section.components.html',
changeDetection: ChangeDetectionStrategy.OnPush,
standalone: false

})
export class AccordionSectionComponent {
name = 'Accordion';
Original file line number Diff line number Diff line change
@@ -4,6 +4,6 @@ import { Component } from '@angular/core';
// eslint-disable-next-line @angular-eslint/component-selector
selector: 'demo-accordion-animation',
templateUrl: './animated.html',
standalone: false

})
export class DemoAccordionAnimatedComponent {}
2 changes: 1 addition & 1 deletion libs/doc-pages/accordion/src/lib/demos/basic/basic.ts
Original file line number Diff line number Diff line change
@@ -4,6 +4,6 @@ import { Component } from '@angular/core';
// eslint-disable-next-line @angular-eslint/component-selector
selector: 'demo-accordion-basic',
templateUrl: './basic.html',
standalone: false

})
export class DemoAccordionBasicComponent {}
2 changes: 1 addition & 1 deletion libs/doc-pages/accordion/src/lib/demos/config/config.ts
Original file line number Diff line number Diff line change
@@ -12,6 +12,6 @@ export function getAccordionConfig(): AccordionConfig {
selector: 'demo-accordion-config',
templateUrl: './config.html',
providers: [{ provide: AccordionConfig, useFactory: getAccordionConfig }],
standalone: false

})
export class DemoAccordionConfigComponent {}
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ import { getBsVer, IBsVersion } from 'ngx-bootstrap/utils';
// eslint-disable-next-line @angular-eslint/component-selector
selector: 'demo-accordion-custom-html',
templateUrl: './custom-html.html',
standalone: false

})
export class DemoAccordionCustomHTMLComponent {
get _getBsVer(): IBsVersion {
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ import { Component } from '@angular/core';
// eslint-disable-next-line @angular-eslint/component-selector
selector: 'demo-accordion-disabled',
templateUrl: './disabled.html',
standalone: false

})
export class DemoAccordionDisabledComponent {
isFirstDisabled = false;
2 changes: 1 addition & 1 deletion libs/doc-pages/accordion/src/lib/demos/dymanic/dynamic.ts
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ import { Component } from '@angular/core';
// eslint-disable-next-line @angular-eslint/component-selector
selector: 'demo-accordion-dynamic',
templateUrl: './dynamic.html',
standalone: false

})
export class DemoAccordionDynamicComponent {
groups = [
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ import { Component } from '@angular/core';
// eslint-disable-next-line @angular-eslint/component-selector
selector: 'demo-accordion-dynamic-body',
templateUrl: './dynamic-body.html',
standalone: false

})
export class DemoAccordionDynamicBodyComponent {
items = ['Item 1', 'Item 2', 'Item 3'];
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ import { Component } from '@angular/core';
// eslint-disable-next-line @angular-eslint/component-selector
selector: 'demo-accordion-manual-toggle',
templateUrl: './manual-toggle.html',
standalone: false

})
export class DemoAccordionManualToggleComponent {
isOpen = true;
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ import { Component } from '@angular/core';
// eslint-disable-next-line @angular-eslint/component-selector
selector: 'demo-accordion-one-time',
templateUrl: './one-at-a-time.html',
standalone: false

})
export class DemoAccordionOneAtATimeComponent {
oneAtATime = true;
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ import { Component } from '@angular/core';
// eslint-disable-next-line @angular-eslint/component-selector
selector: 'demo-accordion-open-event',
templateUrl: './open-event.html',
standalone: false

})
export class DemoAccordionOpenEventComponent {
log(event: boolean) {
2 changes: 1 addition & 1 deletion libs/doc-pages/accordion/src/lib/demos/opened/opened.ts
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ import { Component } from '@angular/core';
// eslint-disable-next-line @angular-eslint/component-selector
selector: 'demo-accordion-opened',
templateUrl: './opened.html',
standalone: false

})
export class DemoAccordionOpenedComponent {
isFirstOpen = true;
2 changes: 1 addition & 1 deletion libs/doc-pages/accordion/src/lib/demos/styling/styling.ts
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ import { Component } from '@angular/core';
// eslint-disable-next-line @angular-eslint/component-selector
selector: 'demo-accordion-styling',
templateUrl: './styling.html',
standalone: false

})
export class DemoAccordionStylingComponent {
customClass = 'customClass';
2 changes: 1 addition & 1 deletion libs/doc-pages/alerts/src/lib/alerts-section.component.ts
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ import { ContentSection } from '@ngx-bootstrap-doc/docs';
selector: 'alert-section',
templateUrl: './alerts-section.component.html',
changeDetection: ChangeDetectionStrategy.OnPush,
standalone: false

})
export class AlertsSectionComponent {
name = 'Alerts';
2 changes: 1 addition & 1 deletion libs/doc-pages/alerts/src/lib/demos/basic/basic.ts
Original file line number Diff line number Diff line change
@@ -4,6 +4,6 @@ import { Component } from '@angular/core';
// eslint-disable-next-line @angular-eslint/component-selector
selector: 'demo-alert-basic',
templateUrl: './basic.html',
standalone: false

})
export class DemoAlertBasicComponent {}
2 changes: 1 addition & 1 deletion libs/doc-pages/alerts/src/lib/demos/config/config.ts
Original file line number Diff line number Diff line change
@@ -12,6 +12,6 @@ export function getAlertConfig(): AlertConfig {
selector: 'demo-alert-config',
templateUrl: './config.html',
providers: [{ provide: AlertConfig, useFactory: getAlertConfig }],
standalone: false

})
export class DemoAlertConfigComponent {}
2 changes: 1 addition & 1 deletion libs/doc-pages/alerts/src/lib/demos/content/content.ts
Original file line number Diff line number Diff line change
@@ -4,6 +4,6 @@ import { Component } from '@angular/core';
// eslint-disable-next-line @angular-eslint/component-selector
selector: 'demo-alert-content',
templateUrl: './content.html',
standalone: false

})
export class DemoAlertContentComponent {}
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ type ExampleAlertType = { type: string; msg: string; timeout: number };
// eslint-disable-next-line @angular-eslint/component-selector
selector: 'demo-alert-timeout',
templateUrl: './dismiss-on-timeout.html',
standalone: false

})
export class DemoAlertTimeoutComponent {
alerts: ExampleAlertType[] = [
2 changes: 1 addition & 1 deletion libs/doc-pages/alerts/src/lib/demos/dismiss/dismiss.ts
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ type ExampleAlertType = { type: string; msg: string };
// eslint-disable-next-line @angular-eslint/component-selector
selector: 'demo-alert-dismiss',
templateUrl: './dismiss.html',
standalone: false

})
export class DemoAlertDismissComponent {
dismissible = true;
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ import { Component } from '@angular/core';
// eslint-disable-next-line @angular-eslint/component-selector
selector: 'demo-alert-content-html',
templateUrl: './dynamic-content.html',
standalone: false

})
export class DemoAlertDynamicContentComponent {
index = 0;
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ type ExampleAlertType = { type: string; msg: SafeHtml };
// eslint-disable-next-line @angular-eslint/component-selector
selector: 'demo-alert-dynamic-html',
templateUrl: './dynamic-html.html',
standalone: false

})
export class DemoAlertDynamicHtmlComponent {
alerts: ExampleAlertType[];
2 changes: 1 addition & 1 deletion libs/doc-pages/alerts/src/lib/demos/link/link.ts
Original file line number Diff line number Diff line change
@@ -4,6 +4,6 @@ import { Component } from '@angular/core';
// eslint-disable-next-line @angular-eslint/component-selector
selector: 'demo-alert-link',
templateUrl: './link.html',
standalone: false

})
export class DemoAlertLinkComponent {}
Loading