@angular/router 17.0.0-next.6 → 17.0.0-next.8
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/esm2022/src/components/empty_outlet.mjs +3 -3
- package/esm2022/src/directives/router_link.mjs +3 -3
- package/esm2022/src/directives/router_link_active.mjs +3 -3
- package/esm2022/src/directives/router_outlet.mjs +6 -6
- package/esm2022/src/index.mjs +1 -1
- package/esm2022/src/navigation_transition.mjs +6 -5
- package/esm2022/src/page_title_strategy.mjs +6 -6
- package/esm2022/src/provide_router.mjs +3 -3
- package/esm2022/src/route_reuse_strategy.mjs +6 -6
- package/esm2022/src/router.mjs +13 -16
- package/esm2022/src/router_config_loader.mjs +3 -3
- package/esm2022/src/router_module.mjs +4 -4
- package/esm2022/src/router_outlet_context.mjs +3 -3
- package/esm2022/src/router_preloader.mjs +9 -9
- package/esm2022/src/router_scroller.mjs +3 -3
- package/esm2022/src/router_state.mjs +2 -2
- package/esm2022/src/state_manager.mjs +16 -5
- package/esm2022/src/url_handling_strategy.mjs +6 -6
- package/esm2022/src/url_tree.mjs +3 -3
- package/esm2022/src/utils/view_transition.mjs +12 -4
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/router_testing_harness.mjs +6 -6
- package/esm2022/testing/src/router_testing_module.mjs +4 -4
- package/fesm2022/router.mjs +106 -89
- package/fesm2022/router.mjs.map +1 -1
- package/fesm2022/testing.mjs +11 -11
- package/fesm2022/upgrade.mjs +1 -1
- package/index.d.ts +51 -5
- package/package.json +4 -4
- package/testing/index.d.ts +1 -1
- package/upgrade/index.d.ts +1 -1
package/fesm2022/testing.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v17.0.0-next.
|
|
2
|
+
* @license Angular v17.0.0-next.8
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -54,16 +54,16 @@ class RouterTestingModule {
|
|
|
54
54
|
]
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
58
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.0-next.
|
|
59
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
57
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: RouterTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
58
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.0-next.8", ngImport: i0, type: RouterTestingModule, exports: [RouterModule] }); }
|
|
59
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: RouterTestingModule, providers: [
|
|
60
60
|
ɵROUTER_PROVIDERS,
|
|
61
61
|
provideLocationMocks(),
|
|
62
62
|
withPreloading(NoPreloading).ɵproviders,
|
|
63
63
|
{ provide: ROUTES, multi: true, useValue: [] },
|
|
64
64
|
], imports: [RouterModule] }); }
|
|
65
65
|
}
|
|
66
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
66
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: RouterTestingModule, decorators: [{
|
|
67
67
|
type: NgModule,
|
|
68
68
|
args: [{
|
|
69
69
|
exports: [RouterModule],
|
|
@@ -92,18 +92,18 @@ class RootFixtureService {
|
|
|
92
92
|
this.fixture.detectChanges();
|
|
93
93
|
return this.fixture;
|
|
94
94
|
}
|
|
95
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
96
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
95
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: RootFixtureService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
96
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: RootFixtureService, providedIn: 'root' }); }
|
|
97
97
|
}
|
|
98
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
98
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: RootFixtureService, decorators: [{
|
|
99
99
|
type: Injectable,
|
|
100
100
|
args: [{ providedIn: 'root' }]
|
|
101
101
|
}] });
|
|
102
102
|
class RootCmp {
|
|
103
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
104
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.0-next.
|
|
103
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: RootCmp, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
104
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.0-next.8", type: RootCmp, isStandalone: true, selector: "ng-component", viewQueries: [{ propertyName: "outlet", first: true, predicate: RouterOutlet, descendants: true }], ngImport: i0, template: '<router-outlet></router-outlet>', isInline: true, dependencies: [{ kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }] }); }
|
|
105
105
|
}
|
|
106
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
106
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.8", ngImport: i0, type: RootCmp, decorators: [{
|
|
107
107
|
type: Component,
|
|
108
108
|
args: [{
|
|
109
109
|
standalone: true,
|
package/fesm2022/upgrade.mjs
CHANGED
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v17.0.0-next.
|
|
2
|
+
* @license Angular v17.0.0-next.8
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -2697,7 +2697,7 @@ export declare class Router {
|
|
|
2697
2697
|
private get currentUrlTree();
|
|
2698
2698
|
private get rawUrlTree();
|
|
2699
2699
|
private disposed;
|
|
2700
|
-
private
|
|
2700
|
+
private nonRouterCurrentEntryChangeSubscription?;
|
|
2701
2701
|
private isNgZoneEnabled;
|
|
2702
2702
|
private readonly console;
|
|
2703
2703
|
private readonly stateManager;
|
|
@@ -3141,7 +3141,7 @@ declare const enum RouterFeatureKind {
|
|
|
3141
3141
|
*
|
|
3142
3142
|
* @publicApi
|
|
3143
3143
|
*/
|
|
3144
|
-
export declare type RouterFeatures = PreloadingFeature | DebugTracingFeature | InitialNavigationFeature | InMemoryScrollingFeature | RouterConfigurationFeature | NavigationErrorHandlerFeature | ComponentInputBindingFeature | ViewTransitionsFeature;
|
|
3144
|
+
export declare type RouterFeatures = PreloadingFeature | DebugTracingFeature | InitialNavigationFeature | InMemoryScrollingFeature | RouterConfigurationFeature | NavigationErrorHandlerFeature | ComponentInputBindingFeature | ViewTransitionsFeature | RouterHashLocationFeature;
|
|
3145
3145
|
|
|
3146
3146
|
/**
|
|
3147
3147
|
* A type alias for providers returned by `withHashLocation` for use with `provideRouter`.
|
|
@@ -4319,6 +4319,46 @@ export declare class UrlTree {
|
|
|
4319
4319
|
*/
|
|
4320
4320
|
export declare const VERSION: Version;
|
|
4321
4321
|
|
|
4322
|
+
/**
|
|
4323
|
+
* The information passed to the `onViewTransitionCreated` function provided in the
|
|
4324
|
+
* `withViewTransitions` feature options.
|
|
4325
|
+
*
|
|
4326
|
+
* @publicApi
|
|
4327
|
+
* @experimental
|
|
4328
|
+
*/
|
|
4329
|
+
export declare interface ViewTransitionInfo {
|
|
4330
|
+
/**
|
|
4331
|
+
* The `ViewTransition` returned by the call to `startViewTransition`.
|
|
4332
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/ViewTransition
|
|
4333
|
+
*/
|
|
4334
|
+
transition: {
|
|
4335
|
+
/**
|
|
4336
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/ViewTransition/finished
|
|
4337
|
+
*/
|
|
4338
|
+
finished: Promise<void>;
|
|
4339
|
+
/**
|
|
4340
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/ViewTransition/ready
|
|
4341
|
+
*/
|
|
4342
|
+
ready: Promise<void>;
|
|
4343
|
+
/**
|
|
4344
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/ViewTransition/updateCallbackDone
|
|
4345
|
+
*/
|
|
4346
|
+
updateCallbackDone: Promise<void>;
|
|
4347
|
+
/**
|
|
4348
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/ViewTransition/skipTransition
|
|
4349
|
+
*/
|
|
4350
|
+
skipTransition(): void;
|
|
4351
|
+
};
|
|
4352
|
+
/**
|
|
4353
|
+
* The `ActivatedRouteSnapshot` that the navigation is transitioning from.
|
|
4354
|
+
*/
|
|
4355
|
+
from: ActivatedRouteSnapshot;
|
|
4356
|
+
/**
|
|
4357
|
+
* The `ActivatedRouteSnapshot` that the navigation is transitioning to.
|
|
4358
|
+
*/
|
|
4359
|
+
to: ActivatedRouteSnapshot;
|
|
4360
|
+
}
|
|
4361
|
+
|
|
4322
4362
|
/**
|
|
4323
4363
|
* A type alias for providers returned by `withViewTransitions` for use with `provideRouter`.
|
|
4324
4364
|
*
|
|
@@ -4336,12 +4376,18 @@ export declare type ViewTransitionsFeature = RouterFeature<RouterFeatureKind.Vie
|
|
|
4336
4376
|
* @publicApi
|
|
4337
4377
|
* @see withViewTransitions
|
|
4338
4378
|
*/
|
|
4339
|
-
declare interface ViewTransitionsFeatureOptions {
|
|
4379
|
+
export declare interface ViewTransitionsFeatureOptions {
|
|
4340
4380
|
/**
|
|
4341
4381
|
* Skips the very first call to `startViewTransition`. This can be useful for disabling the
|
|
4342
4382
|
* animation during the application's initial loading phase.
|
|
4343
4383
|
*/
|
|
4344
4384
|
skipInitialTransition?: boolean;
|
|
4385
|
+
/**
|
|
4386
|
+
* A function to run after the `ViewTransition` is created.
|
|
4387
|
+
*
|
|
4388
|
+
* This function is run in an injection context and can use `inject`.
|
|
4389
|
+
*/
|
|
4390
|
+
onViewTransitionCreated?: (transitionInfo: ViewTransitionInfo) => void;
|
|
4345
4391
|
}
|
|
4346
4392
|
|
|
4347
4393
|
/**
|
|
@@ -4471,7 +4517,7 @@ export declare function withEnabledBlockingInitialNavigation(): EnabledBlockingI
|
|
|
4471
4517
|
*
|
|
4472
4518
|
* @publicApi
|
|
4473
4519
|
*/
|
|
4474
|
-
export declare function withHashLocation():
|
|
4520
|
+
export declare function withHashLocation(): RouterHashLocationFeature;
|
|
4475
4521
|
|
|
4476
4522
|
/**
|
|
4477
4523
|
* Enables customizable scrolling behavior for router navigations.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/router",
|
|
3
|
-
"version": "17.0.0-next.
|
|
3
|
+
"version": "17.0.0-next.8",
|
|
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": "17.0.0-next.
|
|
28
|
-
"@angular/common": "17.0.0-next.
|
|
29
|
-
"@angular/platform-browser": "17.0.0-next.
|
|
27
|
+
"@angular/core": "17.0.0-next.8",
|
|
28
|
+
"@angular/common": "17.0.0-next.8",
|
|
29
|
+
"@angular/platform-browser": "17.0.0-next.8",
|
|
30
30
|
"rxjs": "^6.5.3 || ^7.4.0"
|
|
31
31
|
},
|
|
32
32
|
"ng-update": {
|
package/testing/index.d.ts
CHANGED
package/upgrade/index.d.ts
CHANGED