-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update angular to v19 and move to standalone components (#1942)
* angular: move charts-components to standalone components * angular: move example app to standalone components * angular: update angular to v19 * angular: remove standalone-setting which became obsolete with angular v19 * angular: move the test app to the new control flow syntax * angular: sort chart list alphabetically
- Loading branch information
1 parent
3fbd5e1
commit 39d5bde
Showing
20 changed files
with
1,718 additions
and
1,678 deletions.
There are no files selected for viewing
26 changes: 15 additions & 11 deletions
26
packages/angular/charts-angular-test/src/app/app.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,19 @@ | ||
<h1>Carbon Charts Angular</h1> | ||
<h2>Component Test Harness</h2> | ||
|
||
<div *ngFor="let chart of charts" class="container"> | ||
<h3>{{ chart.types.angular }}</h3> | ||
<div *ngFor="let example of chart.examples" class="example"> | ||
<ng-container *ngIf="example.tags?.includes('test')"> | ||
<ng-container | ||
*ngComponentOutlet=" | ||
selectorMap[chart.types.angular]; | ||
inputs: { data: example.data, options: example.options } | ||
"></ng-container> | ||
</ng-container> | ||
@for (chart of charts; track $index) { | ||
<div class="container"> | ||
<h3>{{ chart.types.angular }}</h3> | ||
@for (example of chart.examples; track $index) { | ||
<div class="example"> | ||
@if (example.tags?.includes('test')) { | ||
<ng-container | ||
*ngComponentOutlet=" | ||
selectorMap[chart.types.angular]; | ||
inputs: { data: example.data, options: example.options } | ||
"></ng-container> | ||
} | ||
</div> | ||
} | ||
</div> | ||
</div> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 0 additions & 12 deletions
12
packages/angular/charts-angular-test/src/app/app.module.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic' | ||
import { bootstrapApplication } from '@angular/platform-browser' | ||
import { AppComponent } from './app/app.component' | ||
|
||
import { AppModule } from './app/app.module' | ||
|
||
platformBrowserDynamic() | ||
.bootstrapModule(AppModule) | ||
.catch(err => console.error(err)) | ||
bootstrapApplication(AppComponent).catch(err => console.error(err)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
@import '@carbon/charts/scss/index.scss'; | ||
@use '@carbon/charts/scss/index.scss'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
packages/angular/src/lib/diagrams/nodes/cards/card-node-column.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
packages/angular/src/lib/diagrams/nodes/cards/card-node-label.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.