Skip to content

Commit

Permalink
chore: update angular to 19 (#3280)
Browse files Browse the repository at this point in the history
* chore: update angular packages to 19 versions

* chore: update angular firebase to 19 versions

* chore: update angular eslint to 19 versions

* chore: update angular cdk to 19 versions

* chore: update @schematics/angular to 19 versions

* chore: update angular to 19 versions in framework packages

* chore: update angular to 19 versions packages-smoke

* chore: update @angular-eslint/schematics to 19 versions in packages-smoke

* chore: update typescript in packages-smoke

* chore: update @schematics/angular to 19v in packages-smoke

* chore: update @angular/cdk to 19v in packages-smoke

* chore: update app.module.ts in packages-smoke
  • Loading branch information
denStrigo authored Feb 16, 2025
1 parent 6b53c71 commit 58f0db9
Show file tree
Hide file tree
Showing 528 changed files with 14,337 additions and 16,904 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.19.0
node-version: 18.19.1
cache: 'npm'
- run: npm ci
- run: npm run docs:gh-pages
12 changes: 6 additions & 6 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.19.0
node-version: 18.19.1
cache: 'npm'
- run: npm ci
- run: npm run build:packages
Expand All @@ -27,7 +27,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.19.0
node-version: 18.19.1
cache: 'npm'
- run: |
npm ci
Expand All @@ -40,7 +40,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.19.0
node-version: 18.19.1
- run: npm ci
- run: npm run docs:build
build-playground:
Expand All @@ -50,7 +50,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.19.0
node-version: 18.19.1
- run: npm ci
- uses: actions/download-artifact@v2
with:
Expand Down Expand Up @@ -104,7 +104,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.19.0
node-version: 18.19.1
- run: npm ci
- uses: actions/download-artifact@v2
with:
Expand Down Expand Up @@ -136,7 +136,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.19.0
node-version: 18.19.1
- uses: actions/download-artifact@v2
with:
name: built-packages
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.19.0
18.19.1
14 changes: 7 additions & 7 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,21 +90,21 @@
"builder": "@angular-devkit/build-angular:dev-server",
"configurations": {
"production": {
"browserTarget": "playground:build:production"
"buildTarget": "playground:build:production"
},
"production-wp": {
"browserTarget": "playground:build:production-wp"
"buildTarget": "playground:build:production-wp"
},
"development": {
"browserTarget": "playground:build:development"
"buildTarget": "playground:build:development"
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "playground:build"
"buildTarget": "playground:build"
}
},
"test": {
Expand Down Expand Up @@ -279,18 +279,18 @@
"builder": "@angular-devkit/build-angular:dev-server",
"configurations": {
"production": {
"browserTarget": "docs:build:production"
"buildTarget": "docs:build:production"
},
"development": {
"browserTarget": "docs:build:development"
"buildTarget": "docs:build:development"
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "docs:build"
"buildTarget": "docs:build"
}
},
"test": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Directive, ElementRef, AfterViewInit } from '@angular/core';

@Directive({
selector: '[ngdColorSwatch]',
standalone: false
})
export class NgdColorSwatchDirective implements AfterViewInit {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import { Component } from '@angular/core';

@Component({
selector: 'ngd-components-promo',
template: `
selector: 'ngd-components-promo',
template: `
<h2>{{ title }}</h2>
<p>{{ description }}</p>
`,
styleUrls: ['./components-promo.component.scss'],
styleUrls: ['./components-promo.component.scss'],
standalone: false
})
export class NgdComponentsPromoComponent {
title = 'Angular UI components';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import { AfterViewInit, Directive, ElementRef } from '@angular/core';
import * as marked from 'marked';

@Directive({
selector: '[ngdDescription]',
selector: '[ngdDescription]',
standalone: false
})
export class NgdDescriptionDirective implements AfterViewInit {

Expand Down
7 changes: 4 additions & 3 deletions docs/app/@theme/components/eva/eva.component.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { Component } from '@angular/core';

@Component({
selector: 'ngd-eva',
styleUrls: ['./eva.components.scss'],
templateUrl: './eva.component.html',
selector: 'ngd-eva',
styleUrls: ['./eva.components.scss'],
templateUrl: './eva.component.html',
standalone: false
})
export class NgdEvaComponent {}
9 changes: 5 additions & 4 deletions docs/app/@theme/components/footer/footer.component.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { ChangeDetectionStrategy, Component } from '@angular/core';

@Component({
selector: 'ngd-footer',
styleUrls: ['./footer.component.scss'],
templateUrl: './footer.component.html',
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'ngd-footer',
styleUrls: ['./footer.component.scss'],
templateUrl: './footer.component.html',
changeDetection: ChangeDetectionStrategy.OnPush,
standalone: false
})
export class NgdFooterComponent {
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import { NbDialogService } from '@nebular/theme';
import { NgdHubspotFormDialogComponent } from '../hubspot-form-dialog/hubspot-form-dialog.component';

@Component({
selector: 'ngd-for-business',
template: `
selector: 'ngd-for-business',
template: `
<div class="left">
<h2 [attr.id]="headingId" class="heading h1 text-control">Nebular for business</h2>
<button (click)="openDialog()" class="submit" nbButton status="control">Submit your request</button>
Expand All @@ -28,9 +28,10 @@ import { NgdHubspotFormDialogComponent } from '../hubspot-form-dialog/hubspot-fo
</ul>
</div>
`,
exportAs: 'ngdForBusiness',
styleUrls: ['./for-business.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush,
exportAs: 'ngdForBusiness',
styleUrls: ['./for-business.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush,
standalone: false
})
export class NgdForBusinessComponent {
readonly headingId: string = 'ngd-for-business-heading';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import { NgdVisibilityService } from '../../../@theme/services';
const OBSERVER_OPTIONS = { rootMargin: '-100px 0px 0px' };

@Directive({
selector: '[ngdFragment]',
selector: '[ngdFragment]',
standalone: false
})
export class NgdFragmentTargetDirective implements OnInit, OnDestroy {

Expand Down
9 changes: 5 additions & 4 deletions docs/app/@theme/components/header/header.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import { map, startWith } from 'rxjs/operators';
import { NgdVersionService, Version } from '../../services';

@Component({
selector: 'ngd-header',
styleUrls: ['./header.component.scss'],
template: `
selector: 'ngd-header',
styleUrls: ['./header.component.scss'],
template: `
<div class="section left">
<button *ngIf="sidebarTag" class="sidebar-toggle" (click)="toggleSidebar()">
<nb-icon icon="menu-2"></nb-icon>
Expand Down Expand Up @@ -40,7 +40,8 @@ import { NgdVersionService, Version } from '../../services';
</iframe>
</div>
`,
changeDetection: ChangeDetectionStrategy.OnPush,
changeDetection: ChangeDetectionStrategy.OnPush,
standalone: false
})
export class NgdHeaderComponent implements OnInit {

Expand Down
9 changes: 5 additions & 4 deletions docs/app/@theme/components/hero/hero.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import { NbDialogService } from '@nebular/theme';
import { NgdHubspotFormDialogComponent } from '../hubspot-form-dialog/hubspot-form-dialog.component';

@Component({
selector: 'ngd-hero',
styleUrls: ['./hero.component.scss'],
template: `
selector: 'ngd-hero',
styleUrls: ['./hero.component.scss'],
template: `
<div class="block">
<h1>Nebular: Customizable Angular UI Kit</h1>
<p class="hero-promo">
Expand Down Expand Up @@ -66,7 +66,8 @@ import { NgdHubspotFormDialogComponent } from '../hubspot-form-dialog/hubspot-fo
</div>
</div>
`,
changeDetection: ChangeDetectionStrategy.OnPush,
changeDetection: ChangeDetectionStrategy.OnPush,
standalone: false
})
export class NgdHeroComponent {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { Component, ElementRef, Inject, Input, OnInit, ViewChild } from '@angula
import { NB_DOCUMENT, NB_WINDOW } from '@nebular/theme';

@Component({
selector: 'ngd-akveo-services-banner',
template: `
selector: 'ngd-akveo-services-banner',
template: `
<span #wrapper class="hs-cta-wrapper" id="hs-cta-wrapper-{{ctaId}}">
<span class="hs-cta-node hs-cta-{{ctaId}}" id="hs-cta-{{ctaId}}">
<a href="https://cta-redirect.hubspot.com/cta/redirect/2452262/{{ctaId}}" target="_blank">
Expand All @@ -17,7 +17,8 @@ import { NB_DOCUMENT, NB_WINDOW } from '@nebular/theme';
</span>
</span>
`,
styleUrls: ['akveo-services-banner.component.scss'],
styleUrls: ['akveo-services-banner.component.scss'],
standalone: false
})

export class AkveoServicesBanner implements OnInit {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { NB_WINDOW, NbDialogRef } from '@nebular/theme';
let formContainerUniqueId = 0;

@Component({
template: `
template: `
<nb-card>
<nb-card-header>
<span>{{ title }}</span>
Expand All @@ -23,7 +23,8 @@ let formContainerUniqueId = 0;
</nb-card-body>
</nb-card>
`,
styleUrls: ['./hubspot-form-dialog.component.scss'],
styleUrls: ['./hubspot-form-dialog.component.scss'],
standalone: false
})
export class NgdHubspotFormDialogComponent implements OnInit, AfterViewInit {

Expand Down
9 changes: 5 additions & 4 deletions docs/app/@theme/components/icon-card/icon-card.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@ import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
import { SafeHtml } from '@angular/platform-browser';

@Component({
selector: 'ngd-icon-card',
styleUrls: ['./icon-card.component.scss'],
template: `
selector: 'ngd-icon-card',
styleUrls: ['./icon-card.component.scss'],
template: `
<div class="icon">
<img [src]="icon" />
</div>
<h2>{{ title }}</h2>
<p>{{ description }}</p>
`,
changeDetection: ChangeDetectionStrategy.OnPush,
changeDetection: ChangeDetectionStrategy.OnPush,
standalone: false
})
export class NgdIconCardComponent {

Expand Down
9 changes: 5 additions & 4 deletions docs/app/@theme/components/page-tabs/page-tabs.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import { ActivatedRoute } from '@angular/router';
import { Observable, of as observableOf, combineLatest, Subject } from 'rxjs';

@Component({
selector: 'ngd-page-tabs',
styleUrls: ['./page-tabs.component.scss'],
template: `
selector: 'ngd-page-tabs',
styleUrls: ['./page-tabs.component.scss'],
template: `
<a *ngFor="let item of items$ | async" [class.selected]="item.selected" [routerLink]="['../', item.tab]">
<div class="text-container">
<nb-icon [icon]="item.icon"></nb-icon>
Expand All @@ -21,7 +21,8 @@ import { Observable, of as observableOf, combineLatest, Subject } from 'rxjs';
<i class="line"></i>
</a>
`,
changeDetection: ChangeDetectionStrategy.OnPush,
changeDetection: ChangeDetectionStrategy.OnPush,
standalone: false
})
export class NgdPageTabsComponent implements OnDestroy {

Expand Down
9 changes: 5 additions & 4 deletions docs/app/@theme/components/page-toc/page-toc.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import { ActivatedRoute } from '@angular/router';
import { combineLatest, Subject, Observable } from 'rxjs';

@Component({
selector: 'ngd-page-toc',
styleUrls: ['./page-toc.component.scss'],
template: `
selector: 'ngd-page-toc',
styleUrls: ['./page-toc.component.scss'],
template: `
<ng-container *ngIf="items?.length > 0">
<h4>Overview</h4>
<ul>
Expand All @@ -22,7 +22,8 @@ import { combineLatest, Subject, Observable } from 'rxjs';
</ul>
</ng-container>
`,
changeDetection: ChangeDetectionStrategy.OnPush,
changeDetection: ChangeDetectionStrategy.OnPush,
standalone: false
})
export class NgdPageTocComponent implements OnDestroy {

Expand Down
9 changes: 5 additions & 4 deletions docs/app/@theme/components/search/search.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ import { AfterViewInit, ChangeDetectionStrategy, Component, Inject } from '@angu
import { NB_WINDOW } from '@nebular/theme';

@Component({
selector: 'ngd-search',
styleUrls: ['./search.component.scss'],
template: `
selector: 'ngd-search',
styleUrls: ['./search.component.scss'],
template: `
<nb-icon icon="search-outline"></nb-icon>
<input type="text" nbInput id="doc-search" placeholder="Start typing...">
`,
changeDetection: ChangeDetectionStrategy.OnPush,
changeDetection: ChangeDetectionStrategy.OnPush,
standalone: false
})
export class NgdSearchComponent implements AfterViewInit {

Expand Down
Loading

0 comments on commit 58f0db9

Please sign in to comment.