@angular/router 20.0.0-next.5 → 20.0.0-next.7
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-CgkmNlQY.mjs → router-Db1vz7B5.mjs} +54 -56
- package/fesm2022/router-Db1vz7B5.mjs.map +1 -0
- package/fesm2022/router.mjs +4 -4
- package/fesm2022/router.mjs.map +1 -1
- package/fesm2022/{router_module-gf6YVUii.mjs → router_module-CKwWQXvk.mjs} +55 -67
- package/fesm2022/router_module-CKwWQXvk.mjs.map +1 -0
- package/fesm2022/testing.mjs +15 -15
- package/fesm2022/upgrade.mjs +2 -2
- package/index.d.ts +5 -27
- package/package.json +4 -4
- package/{router_module.d-DqODy4g9.d.ts → router_module.d-ktU8Dnrg.d.ts} +4 -8
- package/testing/index.d.ts +3 -3
- package/upgrade/index.d.ts +1 -1
- package/fesm2022/router-CgkmNlQY.mjs.map +0 -1
- package/fesm2022/router_module-gf6YVUii.mjs.map +0 -1
package/fesm2022/testing.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v20.0.0-next.
|
|
2
|
+
* @license Angular v20.0.0-next.7
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
import * as i0 from '@angular/core';
|
|
8
8
|
import { NgModule, signal, Injectable, ViewChild, Component } from '@angular/core';
|
|
9
9
|
import { TestBed } from '@angular/core/testing';
|
|
10
|
-
import {
|
|
11
|
-
export {
|
|
12
|
-
import {
|
|
13
|
-
export {
|
|
10
|
+
import { ROUTES, ROUTER_CONFIGURATION, Router, afterNextNavigation, RouterOutlet } from './router-Db1vz7B5.mjs';
|
|
11
|
+
export { ɵEmptyOutletComponent as ɵɵEmptyOutletComponent } from './router-Db1vz7B5.mjs';
|
|
12
|
+
import { RouterModule, ROUTER_PROVIDERS, withPreloading, NoPreloading } from './router_module-CKwWQXvk.mjs';
|
|
13
|
+
export { RouterLink as ɵɵRouterLink, RouterLinkActive as ɵɵRouterLinkActive } from './router_module-CKwWQXvk.mjs';
|
|
14
14
|
import { provideLocationMocks } from '@angular/common/testing';
|
|
15
15
|
import '@angular/common';
|
|
16
16
|
import 'rxjs';
|
|
@@ -57,16 +57,16 @@ class RouterTestingModule {
|
|
|
57
57
|
],
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
61
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0-next.
|
|
62
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
60
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.7", ngImport: i0, type: RouterTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
61
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0-next.7", ngImport: i0, type: RouterTestingModule, exports: [RouterModule] });
|
|
62
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0-next.7", ngImport: i0, type: RouterTestingModule, providers: [
|
|
63
63
|
ROUTER_PROVIDERS,
|
|
64
64
|
provideLocationMocks(),
|
|
65
65
|
withPreloading(NoPreloading).ɵproviders,
|
|
66
66
|
{ provide: ROUTES, multi: true, useValue: [] },
|
|
67
67
|
], imports: [RouterModule] });
|
|
68
68
|
}
|
|
69
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
69
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.7", ngImport: i0, type: RouterTestingModule, decorators: [{
|
|
70
70
|
type: NgModule,
|
|
71
71
|
args: [{
|
|
72
72
|
exports: [RouterModule],
|
|
@@ -97,20 +97,20 @@ class RootFixtureService {
|
|
|
97
97
|
this.fixture.detectChanges();
|
|
98
98
|
return this.fixture;
|
|
99
99
|
}
|
|
100
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
101
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
100
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.7", ngImport: i0, type: RootFixtureService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
101
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.7", ngImport: i0, type: RootFixtureService, providedIn: 'root' });
|
|
102
102
|
}
|
|
103
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
103
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.7", ngImport: i0, type: RootFixtureService, decorators: [{
|
|
104
104
|
type: Injectable,
|
|
105
105
|
args: [{ providedIn: 'root' }]
|
|
106
106
|
}] });
|
|
107
107
|
class RootCmp {
|
|
108
108
|
outlet;
|
|
109
109
|
routerOutletData = signal(undefined);
|
|
110
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
111
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.0-next.
|
|
110
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.7", ngImport: i0, type: RootCmp, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
111
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.0-next.7", type: RootCmp, isStandalone: true, selector: "ng-component", viewQueries: [{ propertyName: "outlet", first: true, predicate: RouterOutlet, descendants: true }], ngImport: i0, template: '<router-outlet [routerOutletData]="routerOutletData()"></router-outlet>', isInline: true, dependencies: [{ kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }] });
|
|
112
112
|
}
|
|
113
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.
|
|
113
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.7", ngImport: i0, type: RootCmp, decorators: [{
|
|
114
114
|
type: Component,
|
|
115
115
|
args: [{
|
|
116
116
|
template: '<router-outlet [routerOutletData]="routerOutletData()"></router-outlet>',
|
package/fesm2022/upgrade.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v20.0.0-next.
|
|
2
|
+
* @license Angular v20.0.0-next.7
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import { Location } from '@angular/common';
|
|
8
8
|
import { APP_BOOTSTRAP_LISTENER } from '@angular/core';
|
|
9
9
|
import { UpgradeModule } from '@angular/upgrade/static';
|
|
10
|
-
import {
|
|
10
|
+
import { Router } from './router-Db1vz7B5.mjs';
|
|
11
11
|
import 'rxjs';
|
|
12
12
|
import 'rxjs/operators';
|
|
13
13
|
import '@angular/platform-browser';
|
package/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v20.0.0-next.
|
|
2
|
+
* @license Angular v20.0.0-next.7
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import {
|
|
8
|
-
export {
|
|
7
|
+
import { ActivatedRouteSnapshot, Params, UrlTree, RouterOutletContract, ActivatedRoute, RouterStateSnapshot, Route, LoadedRouterConfig, Router, Routes, InMemoryScrollingOptions, NavigationError, RedirectCommand, RouterConfigOptions, CanActivate, CanActivateFn, CanActivateChild, CanActivateChildFn, CanDeactivate, CanDeactivateFn, CanMatch, CanMatchFn, Resolve, ResolveFn, Event } from './router_module.d-ktU8Dnrg.js';
|
|
8
|
+
export { ActivationEnd, ActivationStart, BaseRouteReuseStrategy, CanLoad, CanLoadFn, ChildActivationEnd, ChildActivationStart, Data, DefaultExport, DefaultUrlSerializer, 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, ɵEmptyOutletComponent, ROUTER_PROVIDERS as ɵROUTER_PROVIDERS, RestoredState as ɵRestoredState } from './router_module.d-ktU8Dnrg.js';
|
|
9
9
|
import { Title } from '@angular/platform-browser';
|
|
10
10
|
import * as i0 from '@angular/core';
|
|
11
11
|
import { EnvironmentInjector, ComponentRef, InjectionToken, Type, Injector, Compiler, OnDestroy, Provider, EnvironmentProviders, Version } from '@angular/core';
|
|
@@ -142,29 +142,7 @@ interface ViewTransitionInfo {
|
|
|
142
142
|
* The `ViewTransition` returned by the call to `startViewTransition`.
|
|
143
143
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/ViewTransition
|
|
144
144
|
*/
|
|
145
|
-
transition:
|
|
146
|
-
/**
|
|
147
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/ViewTransition/finished
|
|
148
|
-
*/
|
|
149
|
-
finished: Promise<void>;
|
|
150
|
-
/**
|
|
151
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/ViewTransition/ready
|
|
152
|
-
*/
|
|
153
|
-
ready: Promise<void>;
|
|
154
|
-
/**
|
|
155
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/ViewTransition/updateCallbackDone
|
|
156
|
-
*/
|
|
157
|
-
updateCallbackDone: Promise<void>;
|
|
158
|
-
/**
|
|
159
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/ViewTransition/skipTransition
|
|
160
|
-
*/
|
|
161
|
-
skipTransition(): void;
|
|
162
|
-
/**
|
|
163
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/ViewTransition#browser_compatibility
|
|
164
|
-
* @see https://developer.chrome.com/docs/web-platform/view-transitions/same-document#default_style_and_transition_reference
|
|
165
|
-
*/
|
|
166
|
-
readonly types: Set<string>;
|
|
167
|
-
};
|
|
145
|
+
transition: ViewTransition;
|
|
168
146
|
/**
|
|
169
147
|
* The `ActivatedRouteSnapshot` that the navigation is transitioning from.
|
|
170
148
|
*/
|
|
@@ -374,7 +352,7 @@ declare function provideRouter(routes: Routes, ...features: RouterFeatures[]): E
|
|
|
374
352
|
*/
|
|
375
353
|
interface RouterFeature<FeatureKind extends RouterFeatureKind> {
|
|
376
354
|
ɵkind: FeatureKind;
|
|
377
|
-
ɵproviders: Provider
|
|
355
|
+
ɵproviders: Array<Provider | EnvironmentProviders>;
|
|
378
356
|
}
|
|
379
357
|
/**
|
|
380
358
|
* Registers a DI provider for a set of routes.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/router",
|
|
3
|
-
"version": "20.0.0-next.
|
|
3
|
+
"version": "20.0.0-next.7",
|
|
4
4
|
"description": "Angular - the routing library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"tslib": "^2.3.0"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"@angular/core": "20.0.0-next.
|
|
28
|
-
"@angular/common": "20.0.0-next.
|
|
29
|
-
"@angular/platform-browser": "20.0.0-next.
|
|
27
|
+
"@angular/core": "20.0.0-next.7",
|
|
28
|
+
"@angular/common": "20.0.0-next.7",
|
|
29
|
+
"@angular/platform-browser": "20.0.0-next.7",
|
|
30
30
|
"rxjs": "^6.5.3 || ^7.4.0"
|
|
31
31
|
},
|
|
32
32
|
"ng-update": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v20.0.0-next.
|
|
2
|
+
* @license Angular v20.0.0-next.7
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -2972,12 +2972,8 @@ interface Navigation {
|
|
|
2972
2972
|
finalUrl?: UrlTree;
|
|
2973
2973
|
/**
|
|
2974
2974
|
* Identifies how this navigation was triggered.
|
|
2975
|
-
*
|
|
2976
|
-
* * 'imperative'--Triggered by `router.navigateByUrl` or `router.navigate`.
|
|
2977
|
-
* * 'popstate'--Triggered by a popstate event.
|
|
2978
|
-
* * 'hashchange'--Triggered by a hashchange event.
|
|
2979
2975
|
*/
|
|
2980
|
-
trigger:
|
|
2976
|
+
trigger: NavigationTrigger;
|
|
2981
2977
|
/**
|
|
2982
2978
|
* Options that controlled the strategy used for this navigation.
|
|
2983
2979
|
* See `NavigationExtras`.
|
|
@@ -3935,5 +3931,5 @@ declare class RouterModule {
|
|
|
3935
3931
|
*/
|
|
3936
3932
|
declare const ROUTER_INITIALIZER: InjectionToken<(compRef: ComponentRef<any>) => void>;
|
|
3937
3933
|
|
|
3938
|
-
export {
|
|
3939
|
-
export type {
|
|
3934
|
+
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, ɵEmptyOutletComponent };
|
|
3935
|
+
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 };
|
package/testing/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v20.0.0-next.
|
|
2
|
+
* @license Angular v20.0.0-next.7
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import * as i0 from '@angular/core';
|
|
8
8
|
import { ModuleWithProviders, WritableSignal, DebugElement, Type } from '@angular/core';
|
|
9
|
-
import {
|
|
10
|
-
export {
|
|
9
|
+
import { Routes, ExtraOptions, RouterModule } from '../router_module.d-ktU8Dnrg.js';
|
|
10
|
+
export { ɵEmptyOutletComponent as ɵɵEmptyOutletComponent, RouterLink as ɵɵRouterLink, RouterLinkActive as ɵɵRouterLinkActive, RouterOutlet as ɵɵRouterOutlet } from '../router_module.d-ktU8Dnrg.js';
|
|
11
11
|
import { ComponentFixture } from '@angular/core/testing';
|
|
12
12
|
import 'rxjs';
|
|
13
13
|
import '@angular/common';
|
package/upgrade/index.d.ts
CHANGED