Skip to content

Commit

Permalink
feat(angular): upgrading to v19 (#2350)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Upgrade covalent to Angular 19

* feat(angular): upgrading to ng 19
* build(knapsack): adding back files from main
* docs(angular): updating documentation for 19 upgrade
* docs(): update RELEASE.md
  • Loading branch information
owilliams320 authored Feb 4, 2025
1 parent f8004d9 commit aefe735
Show file tree
Hide file tree
Showing 335 changed files with 27,985 additions and 22,192 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ Certain covalent version are meant for certain angular versions, and here is the
| 6.X | 15.X |
| 7.X | 16.X |
| 8.X | 17.X |
| 9.X | 18.X |
| 10.X | 19.X |

## Browser Support

Expand Down
8 changes: 6 additions & 2 deletions apps/docs-app/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,16 @@
"plugin:@nx/angular",
"plugin:@angular-eslint/template/process-inline-templates"
],
"rules": {}
"rules": {
"@angular-eslint/prefer-standalone": "off"
}
},
{
"files": ["*.html"],
"extends": ["plugin:@nx/angular-template"],
"rules": {}
"rules": {
"@angular-eslint/prefer-standalone": "off"
}
}
]
}
2 changes: 1 addition & 1 deletion apps/docs-app/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
}
},
"test": {
"executor": "@nrwl/jest:jest",
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/apps/docs-app"],
"options": {
"jestConfig": "apps/docs-app/jest.config.js",
Expand Down
1 change: 1 addition & 0 deletions apps/docs-app/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { getSelectedLanguage } from './utilities/translate';
import { getDirection } from './utilities/direction';

@Component({
standalone: false,
selector: 'docs-covalent',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Component, OnDestroy } from '@angular/core';
import { Observable, Subject, map, takeUntil } from 'rxjs';

@Component({
standalone: false,
selector: 'app-content-container',
templateUrl: './content-container.component.html',
styleUrls: ['./content-container.component.scss'],
Expand Down
1 change: 1 addition & 0 deletions apps/docs-app/src/app/components/home/home.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ interface IRouteConfig {
}

@Component({
standalone: false,
selector: 'app-home',
templateUrl: './home.component.html',
styleUrls: ['./home.component.scss'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { ActivatedRoute } from '@angular/router';
import { Component, OnInit } from '@angular/core';

@Component({
standalone: false,
selector: 'app-content-details',
templateUrl: './content-details.component.html',
styleUrls: ['./content-details.component.scss'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
import { ActivatedRoute } from '@angular/router';

@Component({
standalone: false,
selector: 'td-component-hero',
templateUrl: './component-hero.component.html',
styleUrls: ['./component-hero.component.scss'],
Expand All @@ -16,6 +17,7 @@ export class ComponentHeroComponent {
}

@Component({
standalone: false,
selector: 'td-component-hero-dynamic',
template: '',
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { ICombinedRouteGroup } from '../../../utilities/route-group';

const ANGULAR_DOCS_URL = 'https://material.angular.io/';
@Component({
standalone: false,
selector: 'component-overview',
styleUrls: ['./component-overview.component.scss'],
templateUrl: './component-overview.component.html',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { forkJoin, Observable, Subject, Subscriber } from 'rxjs';
import { catchError, map, takeUntil } from 'rxjs/operators';

@Component({
standalone: false,
selector: 'demo-component',
styleUrls: ['./demo.component.scss'],
templateUrl: './demo.component.html',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { ICombinedRouteGroup } from '../../../utilities/route-group';

const ANGULAR_DOCS_URL = 'https://material.angular.io/';
@Component({
standalone: false,
selector: 'component-overview',
styleUrls: ['./component-overview.component.scss'],
templateUrl: './component-overview.component.html',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { IsActiveMatchOptions, Router } from '@angular/router';
import { ICombinedRouteGroup } from '../../../utilities/route-group';

@Component({
standalone: false,
selector: 'app-sidenav-content',
templateUrl: './sidenav-content.component.html',
styleUrls: ['./sidenav-content.component.scss'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { getDirection, setDirection } from '../../utilities/direction';
import { GitHubService } from '../../services/github.service';

@Component({
standalone: false,
selector: 'td-toolbar',
templateUrl: '././toolbar.component.html',
})
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Component } from '@angular/core';

@Component({
standalone: false,
selector: 'breadcrumbs-demo',
styleUrls: ['./breadcrumbs.component.scss'],
templateUrl: './breadcrumbs.component.html',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Component } from '@angular/core';

@Component({
standalone: false,
selector: 'breadcrumbs-demo-basic',
styleUrls: ['./breadcrumbs-demo-basic.component.scss'],
templateUrl: './breadcrumbs-demo-basic.component.html',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Component } from '@angular/core';

@Component({
standalone: false,
selector: 'breadcrumbs-demo-custom-separator',
styleUrls: ['./breadcrumbs-demo-custom-separator.component.scss'],
templateUrl: './breadcrumbs-demo-custom-separator.component.html',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Component } from '@angular/core';

@Component({
standalone: false,
selector: 'breadcrumbs-demo-resize',
styleUrls: ['./breadcrumbs-demo-resize.component.scss'],
templateUrl: './breadcrumbs-demo-resize.component.html',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Component } from '@angular/core';

@Component({
standalone: false,
selector: 'breadcrumbs-demo',
styleUrls: ['./breadcrumbs-demo.component.scss'],
templateUrl: './breadcrumbs-demo.component.html',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ const html = `<div layout="row" layout-align="start center" class="pad-xs pad-bo
`;

@Component({
standalone: false,
selector: 'code-editor-demo-basic',
styleUrls: ['./code-editor-demo-basic.component.scss'],
templateUrl: './code-editor-demo-basic.component.html',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Component } from '@angular/core';
import { editor } from 'monaco-editor';

@Component({
standalone: false,
selector: 'code-editor-demo-monaco',
styleUrls: ['./code-editor-demo-monaco.component.scss'],
templateUrl: './code-editor-demo-monaco.component.html',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Component } from '@angular/core';

@Component({
standalone: false,
selector: 'code-editor-demo',
styleUrls: ['./code-editor-demo.component.scss'],
templateUrl: './code-editor-demo.component.html',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Component } from '@angular/core';
import { TdDialogService } from '@covalent/core/dialogs';

@Component({
standalone: false,
selector: 'dialogs-demo-basic',
styleUrls: ['./dialogs-demo-basic.component.scss'],
templateUrl: './dialogs-demo-basic.component.html',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
import { Subject, takeUntil } from 'rxjs';

@Component({
standalone: false,
selector: 'draggable-resizable-window-dialog',
template: `
<td-window-dialog
Expand All @@ -37,6 +38,7 @@ export class DraggableResizableWindowDialogComponent {
}

@Component({
standalone: false,
selector: 'dialogs-demo-draggable-resizable-window',
styleUrls: ['./dialogs-demo-draggable-resizable-window.component.scss'],
templateUrl: './dialogs-demo-draggable-resizable-window.component.html',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { Subject } from 'rxjs';
import { takeUntil } from 'rxjs/operators';

@Component({
standalone: false,
selector: 'draggable-resizable-dialog',
template: `
<h2>Draggable resizable dialog</h2>
Expand All @@ -23,6 +24,7 @@ import { takeUntil } from 'rxjs/operators';
export class DraggableResizableDialogComponent {}

@Component({
standalone: false,
selector: 'dialogs-demo-draggable-resizable',
styleUrls: ['./dialogs-demo-draggable-resizable.component.scss'],
templateUrl: './dialogs-demo-draggable-resizable.component.html',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Component } from '@angular/core';
import { TdDialogService } from '@covalent/core/dialogs';

@Component({
standalone: false,
selector: 'draggable-dialog',
template: `
<h2>Draggable dialog</h2>
Expand All @@ -14,6 +15,7 @@ import { TdDialogService } from '@covalent/core/dialogs';
export class DraggableDialogComponent {}

@Component({
standalone: false,
selector: 'dialogs-demo-draggable',
styleUrls: ['./dialogs-demo-draggable.component.scss'],
templateUrl: './dialogs-demo-draggable.component.html',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Component } from '@angular/core';

@Component({
standalone: false,
selector: 'dialogs-demo',
styleUrls: ['./dialogs-demo.component.scss'],
templateUrl: './dialogs-demo.component.html',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
} from '@covalent/dynamic-forms';

@Component({
standalone: false,
selector: 'dynamic-forms-demo-array',
styleUrls: ['./dynamic-forms-demo-array.component.scss'],
templateUrl: './dynamic-forms-demo-array.component.html',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
} from '@covalent/dynamic-forms';

@Component({
standalone: false,
selector: 'dynamic-forms-demo-boolean',
styleUrls: ['./dynamic-forms-demo-boolean.component.scss'],
templateUrl: './dynamic-forms-demo-boolean.component.html',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { AbstractControl, UntypedFormControl } from '@angular/forms';
import { ITdDynamicElementConfig } from '@covalent/dynamic-forms';

@Component({
standalone: false,
selector: 'td-dynamic-input-test',
template: `
<td-code-editor
Expand Down Expand Up @@ -30,6 +31,7 @@ export class TdTestDynamicComponent {
}

@Component({
standalone: false,
selector: 'dynamic-forms-demo-custom-elements',
styleUrls: ['./dynamic-forms-demo-custom-elements.component.scss'],
templateUrl: './dynamic-forms-demo-custom-elements.component.html',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
} from '@covalent/dynamic-forms';

@Component({
standalone: false,
selector: 'dynamic-forms-demo-custom-validation',
styleUrls: ['./dynamic-forms-demo-custom-validation.component.scss'],
templateUrl: './dynamic-forms-demo-custom-validation.component.html',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
} from '@covalent/dynamic-forms';

@Component({
standalone: false,
selector: 'dynamic-forms-demo-date',
styleUrls: ['./dynamic-forms-demo-date.component.scss'],
templateUrl: './dynamic-forms-demo-date.component.html',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
} from '@covalent/dynamic-forms';

@Component({
standalone: false,
selector: 'dynamic-forms-demo-file-input',
styleUrls: ['./dynamic-forms-demo-file-input.component.scss'],
templateUrl: './dynamic-forms-demo-file-input.component.html',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
} from '@covalent/dynamic-forms';

@Component({
standalone: false,
selector: 'dynamic-forms-demo-number',
styleUrls: ['./dynamic-forms-demo-number.component.scss'],
templateUrl: './dynamic-forms-demo-number.component.html',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
} from '@covalent/dynamic-forms';

@Component({
standalone: false,
selector: 'dynamic-forms-demo-text',
styleUrls: ['./dynamic-forms-demo-text.component.scss'],
templateUrl: './dynamic-forms-demo-text.component.html',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Component } from '@angular/core';

@Component({
standalone: false,
selector: 'dynamic-forms-demo',
styleUrls: ['./dynamic-forms-demo.component.scss'],
templateUrl: './dynamic-forms-demo.component.html',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
} from '@covalent/dynamic-forms';

@Component({
standalone: false,
selector: 'dynamic-forms-demo',
styleUrls: ['./dynamic-forms.component.scss'],
templateUrl: './dynamic-forms.component.html',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
} from '@covalent/core/dynamic-menu';

@Component({
standalone: false,
selector: 'dynamic-menu-demo-basic',
styleUrls: ['./dynamic-menu-demo-basic.component.scss'],
templateUrl: './dynamic-menu-demo-basic.component.html',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Component } from '@angular/core';

@Component({
standalone: false,
selector: 'dynamic-menu-demo',
styleUrls: ['./dynamic-menu-demo.component.scss'],
templateUrl: './dynamic-menu-demo.component.html',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Component } from '@angular/core';

@Component({
standalone: false,
selector: 'file-input-demo-basic',
styleUrls: ['./file-input-demo-basic.component.scss'],
templateUrl: './file-input-demo-basic.component.html',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Component } from '@angular/core';

@Component({
standalone: false,
selector: 'file-input-demo',
styleUrls: ['./file-input-demo.component.scss'],
templateUrl: './file-input-demo.component.html',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Component, ChangeDetectionStrategy } from '@angular/core';

@Component({
standalone: false,
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'file-input-demo',
styleUrls: ['./file-input.component.scss'],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Component } from '@angular/core';

@Component({
standalone: false,
selector: 'flavored-markdown-demo-basic',
styleUrls: ['./flavored-markdown-demo-basic.component.scss'],
templateUrl: './flavored-markdown-demo-basic.component.html',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { ITdFlavoredMarkdownButtonClickEvent } from '@covalent/flavored-markdown
import { MatSnackBar } from '@angular/material/snack-bar';

@Component({
standalone: false,
selector: 'flavored-markdown-demo-buttons',
styleUrls: ['./flavored-markdown-demo-buttons.component.scss'],
templateUrl: './flavored-markdown-demo-buttons.component.html',
Expand Down
Loading

0 comments on commit aefe735

Please sign in to comment.