@angular/router 21.1.3 → 21.2.0-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/_router-chunk.mjs +115 -116
- package/fesm2022/_router-chunk.mjs.map +1 -1
- package/fesm2022/_router_module-chunk.mjs +324 -105
- package/fesm2022/_router_module-chunk.mjs.map +1 -1
- package/fesm2022/router.mjs +2 -2
- package/fesm2022/router.mjs.map +1 -1
- package/fesm2022/testing.mjs +11 -11
- package/fesm2022/testing.mjs.map +1 -1
- package/fesm2022/upgrade.mjs +1 -1
- package/fesm2022/upgrade.mjs.map +1 -1
- package/package.json +4 -4
- package/types/_router_module-chunk.d.ts +106 -65
- package/types/router.d.ts +2 -2
- package/types/testing.d.ts +1 -1
- package/types/upgrade.d.ts +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.1
|
|
2
|
+
* @license Angular v21.2.0-next.1
|
|
3
3
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -1938,19 +1938,15 @@ type QueryParamsHandling = 'merge' | 'preserve' | 'replace' | '';
|
|
|
1938
1938
|
/**
|
|
1939
1939
|
* The type for the function that can be used to handle redirects when the path matches a `Route` config.
|
|
1940
1940
|
*
|
|
1941
|
-
* The `RedirectFunction` does
|
|
1942
|
-
* `ActivatedRouteSnapshot` interface
|
|
1943
|
-
*
|
|
1944
|
-
*
|
|
1945
|
-
* loaded components. This is also true for all the snapshots up to the
|
|
1946
|
-
* root, so properties that include parents (root, parent, pathFromRoot)
|
|
1947
|
-
* are also excluded. And naturally, the full route matching hasn't yet
|
|
1948
|
-
* happened so firstChild and children are not available either.
|
|
1941
|
+
* The `RedirectFunction` does not have access to the full
|
|
1942
|
+
* `ActivatedRouteSnapshot` interface because Route matching has not
|
|
1943
|
+
* yet completed when the function is called. See {@link PartialMatchRouteSnapshot}
|
|
1944
|
+
* for more information.
|
|
1949
1945
|
*
|
|
1950
1946
|
* @see {@link Route#redirectTo}
|
|
1951
1947
|
* @publicApi
|
|
1952
1948
|
*/
|
|
1953
|
-
type RedirectFunction = (redirectData:
|
|
1949
|
+
type RedirectFunction = (redirectData: PartialMatchRouteSnapshot) => MaybeAsync<string | UrlTree>;
|
|
1954
1950
|
/**
|
|
1955
1951
|
* A policy for when to run guards and resolvers on a route.
|
|
1956
1952
|
*
|
|
@@ -2720,7 +2716,7 @@ type CanDeactivateFn<T> = (component: T, currentRoute: ActivatedRouteSnapshot, c
|
|
|
2720
2716
|
* @see [CanMatch](guide/routing/route-guards#canmatch)
|
|
2721
2717
|
*/
|
|
2722
2718
|
interface CanMatch {
|
|
2723
|
-
canMatch(route: Route, segments: UrlSegment[]): MaybeAsync<GuardResult>;
|
|
2719
|
+
canMatch(route: Route, segments: UrlSegment[], currentSnapshot?: PartialMatchRouteSnapshot): MaybeAsync<GuardResult>;
|
|
2724
2720
|
}
|
|
2725
2721
|
/**
|
|
2726
2722
|
* The signature of a function used as a `canMatch` guard on a `Route`.
|
|
@@ -2736,12 +2732,28 @@ interface CanMatch {
|
|
|
2736
2732
|
*
|
|
2737
2733
|
* @param route The route configuration.
|
|
2738
2734
|
* @param segments The URL segments that have not been consumed by previous parent route evaluations.
|
|
2735
|
+
* @param currentSnapshot The current route snapshot up to this point in the matching process. While this parameter is optional,
|
|
2736
|
+
* it will always be defined when called by the Router. It is only optional for backwards compatibility with functions defined prior
|
|
2737
|
+
* to the introduction of this parameter.
|
|
2739
2738
|
*
|
|
2740
2739
|
* @publicApi
|
|
2741
2740
|
* @see {@link Route}
|
|
2742
2741
|
* @see [CanMatch](guide/routing/route-guards#canmatch)
|
|
2743
2742
|
*/
|
|
2744
|
-
type CanMatchFn = (route: Route, segments: UrlSegment[]) => MaybeAsync<GuardResult>;
|
|
2743
|
+
type CanMatchFn = (route: Route, segments: UrlSegment[], currentSnapshot?: PartialMatchRouteSnapshot) => MaybeAsync<GuardResult>;
|
|
2744
|
+
/**
|
|
2745
|
+
* A subset of the `ActivatedRouteSnapshot` interface that includes only the known data
|
|
2746
|
+
* up to the route matching phase. Some data are not accurately known
|
|
2747
|
+
* at in this phase. For example, resolvers are not run until
|
|
2748
|
+
* later, so any resolved title would not be populated. The same goes for lazy
|
|
2749
|
+
* loaded components. This is also true for all the snapshots up to the
|
|
2750
|
+
* root, so properties that include parents (root, parent, pathFromRoot)
|
|
2751
|
+
* are also excluded. And naturally, the full route matching hasn't yet
|
|
2752
|
+
* happened so firstChild and children are not available either.
|
|
2753
|
+
*
|
|
2754
|
+
* @publicApi
|
|
2755
|
+
*/
|
|
2756
|
+
type PartialMatchRouteSnapshot = Pick<ActivatedRouteSnapshot, 'routeConfig' | 'url' | 'params' | 'queryParams' | 'fragment' | 'data' | 'outlet' | 'title' | 'paramMap' | 'queryParamMap'>;
|
|
2745
2757
|
/**
|
|
2746
2758
|
* @description
|
|
2747
2759
|
*
|
|
@@ -3364,8 +3376,8 @@ declare class RouterStateSnapshot extends Tree<ActivatedRouteSnapshot> {
|
|
|
3364
3376
|
* @description
|
|
3365
3377
|
*
|
|
3366
3378
|
* When applied to an element in a template, makes that element a link
|
|
3367
|
-
* that initiates navigation to a route. Navigation opens one or more routed
|
|
3368
|
-
* in one or more `<router-outlet>` locations on the page.
|
|
3379
|
+
* that initiates navigation to a route. Navigation opens one or more routed
|
|
3380
|
+
* components in one or more `<router-outlet>` locations on the page.
|
|
3369
3381
|
*
|
|
3370
3382
|
* Given a route configuration `[{ path: 'user/:name', component: UserCmp }]`,
|
|
3371
3383
|
* the following creates a static link to the route:
|
|
@@ -3377,12 +3389,12 @@ declare class RouterStateSnapshot extends Tree<ActivatedRouteSnapshot> {
|
|
|
3377
3389
|
* For example, `['/team', teamId, 'user', userName, {details: true}]`
|
|
3378
3390
|
* generates a link to `/team/11/user/bob;details=true`.
|
|
3379
3391
|
*
|
|
3380
|
-
* Multiple static segments can be merged into one term and combined with
|
|
3381
|
-
* For example, `['/team/11/user', userName, {details: true}]`
|
|
3392
|
+
* Multiple static segments can be merged into one term and combined with
|
|
3393
|
+
* dynamic segments. For example, `['/team/11/user', userName, {details: true}]`
|
|
3382
3394
|
*
|
|
3383
|
-
* The input that you provide to the link is treated as a delta to the current
|
|
3384
|
-
* For instance, suppose the current URL is `/user/(box//aux:team)`.
|
|
3385
|
-
*
|
|
3395
|
+
* The input that you provide to the link is treated as a delta to the current
|
|
3396
|
+
* URL. For instance, suppose the current URL is `/user/(box//aux:team)`. The
|
|
3397
|
+
* link `<a [routerLink]="['/user/jim']">Jim</a>` creates the URL
|
|
3386
3398
|
* `/user/(jim//aux:team)`.
|
|
3387
3399
|
* See {@link Router#createUrlTree} for more information.
|
|
3388
3400
|
*
|
|
@@ -3394,23 +3406,25 @@ declare class RouterStateSnapshot extends Tree<ActivatedRouteSnapshot> {
|
|
|
3394
3406
|
* ### Relative link paths
|
|
3395
3407
|
*
|
|
3396
3408
|
* The first segment name can be prepended with `/`, `./`, or `../`.
|
|
3397
|
-
* * If the first segment begins with `/`, the router looks up the route from
|
|
3398
|
-
*
|
|
3399
|
-
* * If the first segment begins with `./`, or doesn't begin with a slash, the
|
|
3400
|
-
*
|
|
3401
|
-
* * If the first segment begins with `../`, the router goes up one level in the
|
|
3409
|
+
* * If the first segment begins with `/`, the router looks up the route from
|
|
3410
|
+
* the root of the app.
|
|
3411
|
+
* * If the first segment begins with `./`, or doesn't begin with a slash, the
|
|
3412
|
+
* router looks in the children of the current activated route.
|
|
3413
|
+
* * If the first segment begins with `../`, the router goes up one level in the
|
|
3414
|
+
* route tree.
|
|
3402
3415
|
*
|
|
3403
3416
|
* ### Setting and handling query params and fragments
|
|
3404
3417
|
*
|
|
3405
|
-
* The following link adds a query parameter and a fragment to the generated
|
|
3418
|
+
* The following link adds a query parameter and a fragment to the generated
|
|
3419
|
+
* URL:
|
|
3406
3420
|
*
|
|
3407
3421
|
* ```html
|
|
3408
|
-
* <a [routerLink]="['/user/bob']" [queryParams]="{debug: true}"
|
|
3409
|
-
*
|
|
3422
|
+
* <a [routerLink]="['/user/bob']" [queryParams]="{debug: true}"
|
|
3423
|
+
* fragment="education"> link to user component
|
|
3410
3424
|
* </a>
|
|
3411
3425
|
* ```
|
|
3412
|
-
* By default, the directive constructs the new URL using the given query
|
|
3413
|
-
* The example generates the link: `/user/bob?debug=true#education`.
|
|
3426
|
+
* By default, the directive constructs the new URL using the given query
|
|
3427
|
+
* parameters. The example generates the link: `/user/bob?debug=true#education`.
|
|
3414
3428
|
*
|
|
3415
3429
|
* You can instruct the directive to handle query parameters differently
|
|
3416
3430
|
* by specifying the `queryParamsHandling` option in the link.
|
|
@@ -3422,20 +3436,21 @@ declare class RouterStateSnapshot extends Tree<ActivatedRouteSnapshot> {
|
|
|
3422
3436
|
* For example:
|
|
3423
3437
|
*
|
|
3424
3438
|
* ```html
|
|
3425
|
-
* <a [routerLink]="['/user/bob']" [queryParams]="{debug: true}"
|
|
3426
|
-
*
|
|
3439
|
+
* <a [routerLink]="['/user/bob']" [queryParams]="{debug: true}"
|
|
3440
|
+
* queryParamsHandling="merge"> link to user component
|
|
3427
3441
|
* </a>
|
|
3428
3442
|
* ```
|
|
3429
3443
|
*
|
|
3430
|
-
* `queryParams`, `fragment`, `queryParamsHandling`, `preserveFragment`, and
|
|
3431
|
-
* cannot be used when the `routerLink` input is a `UrlTree`.
|
|
3444
|
+
* `queryParams`, `fragment`, `queryParamsHandling`, `preserveFragment`, and
|
|
3445
|
+
* `relativeTo` cannot be used when the `routerLink` input is a `UrlTree`.
|
|
3432
3446
|
*
|
|
3433
3447
|
* See {@link UrlCreationOptions#queryParamsHandling}.
|
|
3434
3448
|
*
|
|
3435
3449
|
* ### Preserving navigation history
|
|
3436
3450
|
*
|
|
3437
3451
|
* You can provide a `state` value to be persisted to the browser's
|
|
3438
|
-
* [`History.state`
|
|
3452
|
+
* [`History.state`
|
|
3453
|
+
* property](https://developer.mozilla.org/en-US/docs/Web/API/History#Properties).
|
|
3439
3454
|
* For example:
|
|
3440
3455
|
*
|
|
3441
3456
|
* ```html
|
|
@@ -3458,9 +3473,9 @@ declare class RouterStateSnapshot extends Tree<ActivatedRouteSnapshot> {
|
|
|
3458
3473
|
*
|
|
3459
3474
|
* ### RouterLink compatible custom elements
|
|
3460
3475
|
*
|
|
3461
|
-
* In order to make a custom element work with routerLink, the corresponding
|
|
3462
|
-
* element must implement the `href` attribute and must list `href` in
|
|
3463
|
-
* the static property/getter `observedAttributes`.
|
|
3476
|
+
* In order to make a custom element work with routerLink, the corresponding
|
|
3477
|
+
* custom element must implement the `href` attribute and must list `href` in
|
|
3478
|
+
* the array of the static property/getter `observedAttributes`.
|
|
3464
3479
|
*
|
|
3465
3480
|
* @ngModule RouterModule
|
|
3466
3481
|
*
|
|
@@ -3473,12 +3488,13 @@ declare class RouterLink implements OnChanges, OnDestroy {
|
|
|
3473
3488
|
private readonly renderer;
|
|
3474
3489
|
private readonly el;
|
|
3475
3490
|
private locationStrategy?;
|
|
3476
|
-
|
|
3491
|
+
private hrefAttributeValue;
|
|
3492
|
+
/** @docs-private */
|
|
3477
3493
|
protected readonly reactiveHref: i0.WritableSignal<string | null>;
|
|
3478
3494
|
/**
|
|
3479
3495
|
* Represents an `href` attribute value applied to a host element,
|
|
3480
|
-
* when a host element is an `<a>`/`<area>` tag or a compatible custom
|
|
3481
|
-
* For other tags, the value is `null`.
|
|
3496
|
+
* when a host element is an `<a>`/`<area>` tag or a compatible custom
|
|
3497
|
+
* element. For other tags, the value is `null`.
|
|
3482
3498
|
*/
|
|
3483
3499
|
get href(): string | null;
|
|
3484
3500
|
/** @deprecated */
|
|
@@ -3488,44 +3504,57 @@ declare class RouterLink implements OnChanges, OnDestroy {
|
|
|
3488
3504
|
* This is only used when the host element is
|
|
3489
3505
|
* an `<a>`/`<area>` tag or a compatible custom element.
|
|
3490
3506
|
*/
|
|
3491
|
-
target
|
|
3507
|
+
set target(value: string | undefined);
|
|
3508
|
+
get target(): string | undefined;
|
|
3492
3509
|
/**
|
|
3493
3510
|
* Passed to {@link Router#createUrlTree} as part of the
|
|
3494
3511
|
* `UrlCreationOptions`.
|
|
3495
3512
|
* @see {@link UrlCreationOptions#queryParams}
|
|
3496
3513
|
* @see {@link Router#createUrlTree}
|
|
3497
3514
|
*/
|
|
3498
|
-
queryParams
|
|
3515
|
+
set queryParams(value: Params | null | undefined);
|
|
3516
|
+
get queryParams(): Params | null | undefined;
|
|
3517
|
+
private _queryParams;
|
|
3499
3518
|
/**
|
|
3500
3519
|
* Passed to {@link Router#createUrlTree} as part of the
|
|
3501
3520
|
* `UrlCreationOptions`.
|
|
3502
3521
|
* @see {@link UrlCreationOptions#fragment}
|
|
3503
3522
|
* @see {@link Router#createUrlTree}
|
|
3504
3523
|
*/
|
|
3505
|
-
fragment
|
|
3524
|
+
set fragment(value: string | undefined);
|
|
3525
|
+
get fragment(): string | undefined;
|
|
3526
|
+
private _fragment;
|
|
3506
3527
|
/**
|
|
3507
3528
|
* Passed to {@link Router#createUrlTree} as part of the
|
|
3508
3529
|
* `UrlCreationOptions`.
|
|
3509
3530
|
* @see {@link UrlCreationOptions#queryParamsHandling}
|
|
3510
3531
|
* @see {@link Router#createUrlTree}
|
|
3511
3532
|
*/
|
|
3512
|
-
queryParamsHandling
|
|
3533
|
+
set queryParamsHandling(value: QueryParamsHandling | null | undefined);
|
|
3534
|
+
get queryParamsHandling(): QueryParamsHandling | null | undefined;
|
|
3535
|
+
private _queryParamsHandling;
|
|
3513
3536
|
/**
|
|
3514
3537
|
* Passed to {@link Router#navigateByUrl} as part of the
|
|
3515
3538
|
* `NavigationBehaviorOptions`.
|
|
3516
3539
|
* @see {@link NavigationBehaviorOptions#state}
|
|
3517
3540
|
* @see {@link Router#navigateByUrl}
|
|
3518
3541
|
*/
|
|
3519
|
-
state
|
|
3542
|
+
set state(value: {
|
|
3520
3543
|
[k: string]: any;
|
|
3521
|
-
};
|
|
3544
|
+
} | undefined);
|
|
3545
|
+
get state(): {
|
|
3546
|
+
[k: string]: any;
|
|
3547
|
+
} | undefined;
|
|
3548
|
+
private _state;
|
|
3522
3549
|
/**
|
|
3523
3550
|
* Passed to {@link Router#navigateByUrl} as part of the
|
|
3524
3551
|
* `NavigationBehaviorOptions`.
|
|
3525
3552
|
* @see {@link NavigationBehaviorOptions#info}
|
|
3526
3553
|
* @see {@link Router#navigateByUrl}
|
|
3527
3554
|
*/
|
|
3528
|
-
info
|
|
3555
|
+
set info(value: unknown);
|
|
3556
|
+
get info(): unknown;
|
|
3557
|
+
private _info;
|
|
3529
3558
|
/**
|
|
3530
3559
|
* Passed to {@link Router#createUrlTree} as part of the
|
|
3531
3560
|
* `UrlCreationOptions`.
|
|
@@ -3535,38 +3564,48 @@ declare class RouterLink implements OnChanges, OnDestroy {
|
|
|
3535
3564
|
* @see {@link UrlCreationOptions#relativeTo}
|
|
3536
3565
|
* @see {@link Router#createUrlTree}
|
|
3537
3566
|
*/
|
|
3538
|
-
relativeTo
|
|
3539
|
-
|
|
3540
|
-
private
|
|
3541
|
-
private subscription?;
|
|
3542
|
-
private readonly applicationErrorHandler;
|
|
3543
|
-
private readonly options;
|
|
3544
|
-
constructor(router: Router, route: ActivatedRoute, tabIndexAttribute: string | null | undefined, renderer: Renderer2, el: ElementRef, locationStrategy?: LocationStrategy | undefined);
|
|
3545
|
-
private subscribeToNavigationEventsIfNecessary;
|
|
3567
|
+
set relativeTo(value: ActivatedRoute | null | undefined);
|
|
3568
|
+
get relativeTo(): ActivatedRoute | null | undefined;
|
|
3569
|
+
private _relativeTo;
|
|
3546
3570
|
/**
|
|
3547
3571
|
* Passed to {@link Router#createUrlTree} as part of the
|
|
3548
3572
|
* `UrlCreationOptions`.
|
|
3549
3573
|
* @see {@link UrlCreationOptions#preserveFragment}
|
|
3550
3574
|
* @see {@link Router#createUrlTree}
|
|
3551
3575
|
*/
|
|
3552
|
-
preserveFragment: boolean;
|
|
3576
|
+
set preserveFragment(value: boolean);
|
|
3577
|
+
get preserveFragment(): boolean;
|
|
3578
|
+
private _preserveFragment;
|
|
3553
3579
|
/**
|
|
3554
3580
|
* Passed to {@link Router#navigateByUrl} as part of the
|
|
3555
3581
|
* `NavigationBehaviorOptions`.
|
|
3556
3582
|
* @see {@link NavigationBehaviorOptions#skipLocationChange}
|
|
3557
3583
|
* @see {@link Router#navigateByUrl}
|
|
3558
3584
|
*/
|
|
3559
|
-
skipLocationChange: boolean;
|
|
3585
|
+
set skipLocationChange(value: boolean);
|
|
3586
|
+
get skipLocationChange(): boolean;
|
|
3587
|
+
private _skipLocationChange;
|
|
3560
3588
|
/**
|
|
3561
3589
|
* Passed to {@link Router#navigateByUrl} as part of the
|
|
3562
3590
|
* `NavigationBehaviorOptions`.
|
|
3563
3591
|
* @see {@link NavigationBehaviorOptions#replaceUrl}
|
|
3564
3592
|
* @see {@link Router#navigateByUrl}
|
|
3565
3593
|
*/
|
|
3566
|
-
replaceUrl: boolean;
|
|
3594
|
+
set replaceUrl(value: boolean);
|
|
3595
|
+
get replaceUrl(): boolean;
|
|
3596
|
+
private _replaceUrl;
|
|
3597
|
+
/**
|
|
3598
|
+
* Whether a host element is an `<a>`/`<area>` tag or a compatible custom
|
|
3599
|
+
* element.
|
|
3600
|
+
*/
|
|
3601
|
+
private readonly isAnchorElement;
|
|
3602
|
+
private readonly applicationErrorHandler;
|
|
3603
|
+
private readonly options;
|
|
3604
|
+
private readonly reactiveRouterState;
|
|
3605
|
+
constructor(router: Router, route: ActivatedRoute, tabIndexAttribute: string | null | undefined, renderer: Renderer2, el: ElementRef, locationStrategy?: LocationStrategy | undefined);
|
|
3567
3606
|
/**
|
|
3568
|
-
* Modifies the tab index if there was not a tabindex attribute on the element
|
|
3569
|
-
* instantiation.
|
|
3607
|
+
* Modifies the tab index if there was not a tabindex attribute on the element
|
|
3608
|
+
* during instantiation.
|
|
3570
3609
|
*/
|
|
3571
3610
|
private setTabIndexIfNotOnNativeEl;
|
|
3572
3611
|
/** @docs-private */
|
|
@@ -3575,9 +3614,11 @@ declare class RouterLink implements OnChanges, OnDestroy {
|
|
|
3575
3614
|
/**
|
|
3576
3615
|
* Commands to pass to {@link Router#createUrlTree} or a `UrlTree`.
|
|
3577
3616
|
* - **array**: commands to pass to {@link Router#createUrlTree}.
|
|
3578
|
-
* - **string**: shorthand for array of commands with just the string, i.e.
|
|
3579
|
-
*
|
|
3580
|
-
*
|
|
3617
|
+
* - **string**: shorthand for array of commands with just the string, i.e.
|
|
3618
|
+
* `['/route']`
|
|
3619
|
+
* - **UrlTree**: a `UrlTree` for this link rather than creating one from
|
|
3620
|
+
* the commands and other inputs that correspond to properties of
|
|
3621
|
+
* `UrlCreationOptions`.
|
|
3581
3622
|
* - **null|undefined**: effectively disables the `routerLink`
|
|
3582
3623
|
* @see {@link Router#createUrlTree}
|
|
3583
3624
|
*/
|
|
@@ -3586,9 +3627,9 @@ declare class RouterLink implements OnChanges, OnDestroy {
|
|
|
3586
3627
|
onClick(button: number, ctrlKey: boolean, shiftKey: boolean, altKey: boolean, metaKey: boolean): boolean;
|
|
3587
3628
|
/** @docs-private */
|
|
3588
3629
|
ngOnDestroy(): any;
|
|
3589
|
-
private updateHref;
|
|
3590
3630
|
private applyAttributeValue;
|
|
3591
3631
|
get urlTree(): UrlTree | null;
|
|
3632
|
+
private computeHref;
|
|
3592
3633
|
static ɵfac: i0.ɵɵFactoryDeclaration<RouterLink, [null, null, { attribute: "tabindex"; }, null, null, null]>;
|
|
3593
3634
|
static ɵdir: i0.ɵɵDirectiveDeclaration<RouterLink, "[routerLink]", never, { "target": { "alias": "target"; "required": false; }; "queryParams": { "alias": "queryParams"; "required": false; }; "fragment": { "alias": "fragment"; "required": false; }; "queryParamsHandling": { "alias": "queryParamsHandling"; "required": false; }; "state": { "alias": "state"; "required": false; }; "info": { "alias": "info"; "required": false; }; "relativeTo": { "alias": "relativeTo"; "required": false; }; "preserveFragment": { "alias": "preserveFragment"; "required": false; }; "skipLocationChange": { "alias": "skipLocationChange"; "required": false; }; "replaceUrl": { "alias": "replaceUrl"; "required": false; }; "routerLink": { "alias": "routerLink"; "required": false; }; }, {}, never, never, true, never>;
|
|
3594
3635
|
static ngAcceptInputType_preserveFragment: unknown;
|
|
@@ -4071,4 +4112,4 @@ declare class RouterModule {
|
|
|
4071
4112
|
declare const ROUTER_INITIALIZER: InjectionToken<(compRef: ComponentRef<any>) => void>;
|
|
4072
4113
|
|
|
4073
4114
|
export { ActivatedRoute, ActivatedRouteSnapshot, ActivationEnd, ActivationStart, BaseRouteReuseStrategy, ChildActivationEnd, ChildActivationStart, DefaultUrlSerializer, EventType, GuardsCheckEnd, GuardsCheckStart, NavigationCancel, NavigationCancellationCode, NavigationEnd, NavigationError, NavigationSkipped, NavigationSkippedCode, NavigationStart, PRIMARY_OUTLET, ROUTER_CONFIGURATION, ROUTER_INITIALIZER, ROUTER_OUTLET_DATA, ROUTER_PROVIDERS, RedirectCommand, ResolveEnd, ResolveStart, RouteConfigLoadEnd, RouteConfigLoadStart, RouteReuseStrategy, Router, RouterEvent, RouterLink, RouterLinkActive, RouterModule, RouterOutlet, RouterState, RouterStateSnapshot, RoutesRecognized, Scroll, UrlSegment, UrlSegmentGroup, UrlSerializer, UrlTree, convertToParamMap, defaultUrlMatcher, destroyDetachedRouteHandle, isActive, ɵEmptyOutletComponent };
|
|
4074
|
-
export type { CanActivate, CanActivateChild, CanActivateChildFn, CanActivateFn, CanDeactivate, CanDeactivateFn, CanLoad, CanLoadFn, CanMatch, CanMatchFn, Data, DefaultExport, DeprecatedGuard, DeprecatedResolve, DetachedRouteHandle, Event, ExtraOptions, GuardResult, InMemoryScrollingOptions, InitialNavigation, IsActiveMatchOptions, LoadChildren, LoadChildrenCallback, LoadedRouterConfig, MaybeAsync, Navigation, NavigationBehaviorOptions, NavigationExtras, OnSameUrlNavigation, ParamMap, Params, QueryParamsHandling, RedirectFunction, Resolve, ResolveData, ResolveFn, RestoredState, Route, RouterConfigOptions, RouterOutletContract, Routes, RunGuardsAndResolvers, UrlCreationOptions, UrlMatchResult, UrlMatcher };
|
|
4115
|
+
export type { CanActivate, CanActivateChild, CanActivateChildFn, CanActivateFn, CanDeactivate, CanDeactivateFn, CanLoad, CanLoadFn, CanMatch, CanMatchFn, Data, DefaultExport, DeprecatedGuard, DeprecatedResolve, DetachedRouteHandle, Event, ExtraOptions, GuardResult, InMemoryScrollingOptions, InitialNavigation, IsActiveMatchOptions, LoadChildren, LoadChildrenCallback, LoadedRouterConfig, MaybeAsync, Navigation, NavigationBehaviorOptions, NavigationExtras, OnSameUrlNavigation, ParamMap, Params, PartialMatchRouteSnapshot, QueryParamsHandling, RedirectFunction, Resolve, ResolveData, ResolveFn, RestoredState, Route, RouterConfigOptions, RouterOutletContract, Routes, RunGuardsAndResolvers, UrlCreationOptions, UrlMatchResult, UrlMatcher };
|
package/types/router.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.1
|
|
2
|
+
* @license Angular v21.2.0-next.1
|
|
3
3
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import { RouterOutletContract, ActivatedRoute, ActivatedRouteSnapshot, Params, DefaultUrlSerializer, UrlTree, RouterStateSnapshot, Route, LoadedRouterConfig, Router, Routes, InMemoryScrollingOptions, RouterConfigOptions, NavigationError, RedirectCommand, CanMatch, CanMatchFn, CanActivate, CanActivateFn, CanActivateChild, CanActivateChildFn, CanDeactivate, CanDeactivateFn, Resolve, ResolveFn, Event } from './_router_module-chunk.js';
|
|
8
|
-
export { ActivationEnd, ActivationStart, BaseRouteReuseStrategy, CanLoad, CanLoadFn, ChildActivationEnd, ChildActivationStart, Data, DefaultExport, DeprecatedGuard, DeprecatedResolve, DetachedRouteHandle, EventType, ExtraOptions, GuardResult, GuardsCheckEnd, GuardsCheckStart, InitialNavigation, IsActiveMatchOptions, LoadChildren, LoadChildrenCallback, MaybeAsync, Navigation, NavigationBehaviorOptions, NavigationCancel, NavigationCancellationCode, NavigationEnd, NavigationExtras, NavigationSkipped, NavigationSkippedCode, NavigationStart, OnSameUrlNavigation, PRIMARY_OUTLET, ParamMap, QueryParamsHandling, ROUTER_CONFIGURATION, ROUTER_INITIALIZER, ROUTER_OUTLET_DATA, RedirectFunction, ResolveData, ResolveEnd, ResolveStart, RouteConfigLoadEnd, RouteConfigLoadStart, RouteReuseStrategy, RouterEvent, RouterLink, RouterLinkActive, RouterLink as RouterLinkWithHref, RouterModule, RouterOutlet, RouterState, RoutesRecognized, RunGuardsAndResolvers, Scroll, UrlCreationOptions, UrlMatchResult, UrlMatcher, UrlSegment, UrlSegmentGroup, UrlSerializer, convertToParamMap, defaultUrlMatcher, destroyDetachedRouteHandle, isActive, ɵEmptyOutletComponent, ROUTER_PROVIDERS as ɵROUTER_PROVIDERS, RestoredState as ɵRestoredState } from './_router_module-chunk.js';
|
|
8
|
+
export { ActivationEnd, ActivationStart, BaseRouteReuseStrategy, CanLoad, CanLoadFn, ChildActivationEnd, ChildActivationStart, Data, DefaultExport, DeprecatedGuard, DeprecatedResolve, DetachedRouteHandle, EventType, ExtraOptions, GuardResult, GuardsCheckEnd, GuardsCheckStart, InitialNavigation, IsActiveMatchOptions, LoadChildren, LoadChildrenCallback, MaybeAsync, Navigation, NavigationBehaviorOptions, NavigationCancel, NavigationCancellationCode, NavigationEnd, NavigationExtras, NavigationSkipped, NavigationSkippedCode, NavigationStart, OnSameUrlNavigation, PRIMARY_OUTLET, ParamMap, PartialMatchRouteSnapshot, QueryParamsHandling, ROUTER_CONFIGURATION, ROUTER_INITIALIZER, ROUTER_OUTLET_DATA, RedirectFunction, ResolveData, ResolveEnd, ResolveStart, RouteConfigLoadEnd, RouteConfigLoadStart, RouteReuseStrategy, RouterEvent, RouterLink, RouterLinkActive, RouterLink as RouterLinkWithHref, RouterModule, RouterOutlet, RouterState, RoutesRecognized, RunGuardsAndResolvers, Scroll, UrlCreationOptions, UrlMatchResult, UrlMatcher, UrlSegment, UrlSegmentGroup, UrlSerializer, convertToParamMap, defaultUrlMatcher, destroyDetachedRouteHandle, isActive, ɵEmptyOutletComponent, ROUTER_PROVIDERS as ɵROUTER_PROVIDERS, RestoredState as ɵRestoredState } from './_router_module-chunk.js';
|
|
9
9
|
import { Title } from '@angular/platform-browser';
|
|
10
10
|
import * as i0 from '@angular/core';
|
|
11
11
|
import { ComponentRef, EnvironmentInjector, InjectionToken, Compiler, Injector, Type, OnDestroy, EnvironmentProviders, Provider, Version } from '@angular/core';
|
package/types/testing.d.ts
CHANGED
package/types/upgrade.d.ts
CHANGED