1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-14 15:23:33 +00:00

[PM-5820] Upgrade angular to 16 (#7638)

Upgrade Angular and related dependencies to v16.
This commit is contained in:
Oscar Hinton
2024-02-12 17:00:41 +01:00
committed by GitHub
parent 90328b1eba
commit 6b12968721
8 changed files with 1680 additions and 2320 deletions

View File

@@ -1,4 +1,5 @@
import { Directive, EventEmitter, Input, Output } from "@angular/core";
import { ActivatedRoute } from "@angular/router";
/**
* Base class used in `NavGroupComponent` and `NavItemComponent`
@@ -25,6 +26,11 @@ export abstract class NavBaseComponent {
*/
@Input() route: string | any[];
/**
* Passed to internal `routerLink`
*/
@Input() relativeTo?: ActivatedRoute | null;
/**
* If this item is used within a tree, set `variant` to `"tree"`
*/

View File

@@ -3,6 +3,7 @@
[text]="text"
[icon]="icon"
[route]="route"
[relativeTo]="relativeTo"
[variant]="variant"
(mainContentClicked)="toggle()"
[treeDepth]="treeDepth"

View File

@@ -51,6 +51,7 @@
<a
class="fvw tw-w-full tw-truncate tw-border-none tw-bg-transparent tw-p-0 tw-text-start !tw-text-alt2 hover:tw-text-alt2 hover:tw-no-underline focus:tw-outline-none [&>:not(.bwi)]:hover:tw-underline"
[routerLink]="route"
[relativeTo]="relativeTo"
[attr.aria-label]="ariaLabel || text"
routerLinkActive
[routerLinkActiveOptions]="rlaOptions"