1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 16:23:44 +00:00

[CL-525] Upgrade angular to v19 (#14815)

Upgrade Angular to v19 using the update guide.

- Add `standalone: false` to any missed component in stories or tests.
- Update jest.config to follow the new best practices.
This commit is contained in:
Oscar Hinton
2025-06-02 19:13:31 +02:00
committed by GitHub
parent 6bb484dc23
commit 2fbc4c1578
61 changed files with 2827 additions and 3690 deletions

View File

@@ -20,6 +20,7 @@ interface Animal {
@Component({
template: `<button bitButton type="button" (click)="openDialog()">Open Dialog</button>`,
standalone: false,
})
class StoryDialogComponent {
constructor(public dialogService: DialogService) {}
@@ -49,6 +50,7 @@ class StoryDialogComponent {
</ng-container>
</bit-dialog>
`,
standalone: false,
})
class StoryDialogContentComponent {
constructor(

View File

@@ -31,6 +31,7 @@ import { DialogModule } from "../../dialog.module";
</bit-callout>
}
`,
standalone: false,
})
class StoryDialogComponent {
protected dialogs: { title: string; dialogs: SimpleDialogOptions[] }[] = [

View File

@@ -18,6 +18,7 @@ interface Animal {
@Component({
template: `<button type="button" bitButton (click)="openDialog()">Open Simple Dialog</button>`,
standalone: false,
})
class StoryDialogComponent {
constructor(public dialogService: DialogService) {}
@@ -48,6 +49,7 @@ class StoryDialogComponent {
</ng-container>
</bit-simple-dialog>
`,
standalone: false,
})
class StoryDialogContentComponent {
constructor(