@angular/router 17.0.0-next.1 → 17.0.0-next.2
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/navigation_transition.mjs +12 -7
- package/esm2022/src/page_title_strategy.mjs +6 -6
- package/esm2022/src/route_reuse_strategy.mjs +6 -6
- package/esm2022/src/router.mjs +4 -42
- 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/url_handling_strategy.mjs +6 -6
- package/esm2022/src/url_tree.mjs +3 -3
- 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 +153 -187
- package/fesm2022/router.mjs.map +1 -1
- package/fesm2022/testing.mjs +11 -11
- package/fesm2022/upgrade.mjs +1 -1
- package/index.d.ts +4 -41
- package/package.json +4 -4
- package/testing/index.d.ts +1 -1
- package/upgrade/index.d.ts +1 -1
package/fesm2022/router.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v17.0.0-next.
|
|
2
|
+
* @license Angular v17.0.0-next.2
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -419,10 +419,10 @@ function mapChildrenIntoArray(segment, fn) {
|
|
|
419
419
|
* @publicApi
|
|
420
420
|
*/
|
|
421
421
|
class UrlSerializer {
|
|
422
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
423
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
422
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: UrlSerializer, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
423
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: UrlSerializer, providedIn: 'root', useFactory: () => new DefaultUrlSerializer() }); }
|
|
424
424
|
}
|
|
425
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
425
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: UrlSerializer, decorators: [{
|
|
426
426
|
type: Injectable,
|
|
427
427
|
args: [{ providedIn: 'root', useFactory: () => new DefaultUrlSerializer() }]
|
|
428
428
|
}] });
|
|
@@ -1779,10 +1779,10 @@ class ChildrenOutletContexts {
|
|
|
1779
1779
|
getContext(childName) {
|
|
1780
1780
|
return this.contexts.get(childName) || null;
|
|
1781
1781
|
}
|
|
1782
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
1783
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
1782
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: ChildrenOutletContexts, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1783
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: ChildrenOutletContexts, providedIn: 'root' }); }
|
|
1784
1784
|
}
|
|
1785
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
1785
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: ChildrenOutletContexts, decorators: [{
|
|
1786
1786
|
type: Injectable,
|
|
1787
1787
|
args: [{ providedIn: 'root' }]
|
|
1788
1788
|
}] });
|
|
@@ -2489,10 +2489,10 @@ class RouterOutlet {
|
|
|
2489
2489
|
this.inputBinder?.bindActivatedRouteToOutletComponent(this);
|
|
2490
2490
|
this.activateEvents.emit(this.activated.instance);
|
|
2491
2491
|
}
|
|
2492
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
2493
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.0-next.
|
|
2492
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: RouterOutlet, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2493
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.0-next.2", type: RouterOutlet, isStandalone: true, selector: "router-outlet", inputs: { name: "name" }, outputs: { activateEvents: "activate", deactivateEvents: "deactivate", attachEvents: "attach", detachEvents: "detach" }, exportAs: ["outlet"], usesOnChanges: true, ngImport: i0 }); }
|
|
2494
2494
|
}
|
|
2495
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
2495
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: RouterOutlet, decorators: [{
|
|
2496
2496
|
type: Directive,
|
|
2497
2497
|
args: [{
|
|
2498
2498
|
selector: 'router-outlet',
|
|
@@ -2595,10 +2595,10 @@ class RoutedComponentInputBinder {
|
|
|
2595
2595
|
});
|
|
2596
2596
|
this.outletDataSubscriptions.set(outlet, dataSubscription);
|
|
2597
2597
|
}
|
|
2598
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
2599
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
2598
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: RoutedComponentInputBinder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2599
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: RoutedComponentInputBinder }); }
|
|
2600
2600
|
}
|
|
2601
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
2601
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: RoutedComponentInputBinder, decorators: [{
|
|
2602
2602
|
type: Injectable
|
|
2603
2603
|
}] });
|
|
2604
2604
|
|
|
@@ -2678,10 +2678,10 @@ function isNavigationCancelingError$1(error) {
|
|
|
2678
2678
|
* to this `EmptyOutletComponent`.
|
|
2679
2679
|
*/
|
|
2680
2680
|
class ɵEmptyOutletComponent {
|
|
2681
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
2682
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.0-next.
|
|
2681
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: ɵEmptyOutletComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2682
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.0-next.2", type: ɵEmptyOutletComponent, isStandalone: true, selector: "ng-component", 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"] }] }); }
|
|
2683
2683
|
}
|
|
2684
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
2684
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: ɵEmptyOutletComponent, decorators: [{
|
|
2685
2685
|
type: Component,
|
|
2686
2686
|
args: [{
|
|
2687
2687
|
template: `<router-outlet></router-outlet>`,
|
|
@@ -4056,6 +4056,93 @@ function switchTap(next) {
|
|
|
4056
4056
|
});
|
|
4057
4057
|
}
|
|
4058
4058
|
|
|
4059
|
+
/**
|
|
4060
|
+
* Provides a strategy for setting the page title after a router navigation.
|
|
4061
|
+
*
|
|
4062
|
+
* The built-in implementation traverses the router state snapshot and finds the deepest primary
|
|
4063
|
+
* outlet with `title` property. Given the `Routes` below, navigating to
|
|
4064
|
+
* `/base/child(popup:aux)` would result in the document title being set to "child".
|
|
4065
|
+
* ```
|
|
4066
|
+
* [
|
|
4067
|
+
* {path: 'base', title: 'base', children: [
|
|
4068
|
+
* {path: 'child', title: 'child'},
|
|
4069
|
+
* ],
|
|
4070
|
+
* {path: 'aux', outlet: 'popup', title: 'popupTitle'}
|
|
4071
|
+
* ]
|
|
4072
|
+
* ```
|
|
4073
|
+
*
|
|
4074
|
+
* This class can be used as a base class for custom title strategies. That is, you can create your
|
|
4075
|
+
* own class that extends the `TitleStrategy`. Note that in the above example, the `title`
|
|
4076
|
+
* from the named outlet is never used. However, a custom strategy might be implemented to
|
|
4077
|
+
* incorporate titles in named outlets.
|
|
4078
|
+
*
|
|
4079
|
+
* @publicApi
|
|
4080
|
+
* @see [Page title guide](guide/router#setting-the-page-title)
|
|
4081
|
+
*/
|
|
4082
|
+
class TitleStrategy {
|
|
4083
|
+
/**
|
|
4084
|
+
* @returns The `title` of the deepest primary route.
|
|
4085
|
+
*/
|
|
4086
|
+
buildTitle(snapshot) {
|
|
4087
|
+
let pageTitle;
|
|
4088
|
+
let route = snapshot.root;
|
|
4089
|
+
while (route !== undefined) {
|
|
4090
|
+
pageTitle = this.getResolvedTitleForRoute(route) ?? pageTitle;
|
|
4091
|
+
route = route.children.find(child => child.outlet === PRIMARY_OUTLET);
|
|
4092
|
+
}
|
|
4093
|
+
return pageTitle;
|
|
4094
|
+
}
|
|
4095
|
+
/**
|
|
4096
|
+
* Given an `ActivatedRouteSnapshot`, returns the final value of the
|
|
4097
|
+
* `Route.title` property, which can either be a static string or a resolved value.
|
|
4098
|
+
*/
|
|
4099
|
+
getResolvedTitleForRoute(snapshot) {
|
|
4100
|
+
return snapshot.data[RouteTitleKey];
|
|
4101
|
+
}
|
|
4102
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: TitleStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4103
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: TitleStrategy, providedIn: 'root', useFactory: () => inject(DefaultTitleStrategy) }); }
|
|
4104
|
+
}
|
|
4105
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: TitleStrategy, decorators: [{
|
|
4106
|
+
type: Injectable,
|
|
4107
|
+
args: [{ providedIn: 'root', useFactory: () => inject(DefaultTitleStrategy) }]
|
|
4108
|
+
}] });
|
|
4109
|
+
/**
|
|
4110
|
+
* The default `TitleStrategy` used by the router that updates the title using the `Title` service.
|
|
4111
|
+
*/
|
|
4112
|
+
class DefaultTitleStrategy extends TitleStrategy {
|
|
4113
|
+
constructor(title) {
|
|
4114
|
+
super();
|
|
4115
|
+
this.title = title;
|
|
4116
|
+
}
|
|
4117
|
+
/**
|
|
4118
|
+
* Sets the title of the browser to the given value.
|
|
4119
|
+
*
|
|
4120
|
+
* @param title The `pageTitle` from the deepest primary route.
|
|
4121
|
+
*/
|
|
4122
|
+
updateTitle(snapshot) {
|
|
4123
|
+
const title = this.buildTitle(snapshot);
|
|
4124
|
+
if (title !== undefined) {
|
|
4125
|
+
this.title.setTitle(title);
|
|
4126
|
+
}
|
|
4127
|
+
}
|
|
4128
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: DefaultTitleStrategy, deps: [{ token: i1.Title }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4129
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: DefaultTitleStrategy, providedIn: 'root' }); }
|
|
4130
|
+
}
|
|
4131
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: DefaultTitleStrategy, decorators: [{
|
|
4132
|
+
type: Injectable,
|
|
4133
|
+
args: [{ providedIn: 'root' }]
|
|
4134
|
+
}], ctorParameters: function () { return [{ type: i1.Title }]; } });
|
|
4135
|
+
|
|
4136
|
+
/**
|
|
4137
|
+
* A [DI token](guide/glossary/#di-token) for the router service.
|
|
4138
|
+
*
|
|
4139
|
+
* @publicApi
|
|
4140
|
+
*/
|
|
4141
|
+
const ROUTER_CONFIGURATION = new InjectionToken((typeof ngDevMode === 'undefined' || ngDevMode) ? 'router config' : '', {
|
|
4142
|
+
providedIn: 'root',
|
|
4143
|
+
factory: () => ({}),
|
|
4144
|
+
});
|
|
4145
|
+
|
|
4059
4146
|
/**
|
|
4060
4147
|
* The [DI token](guide/glossary/#di-token) for a router configuration.
|
|
4061
4148
|
*
|
|
@@ -4155,10 +4242,10 @@ class RouterConfigLoader {
|
|
|
4155
4242
|
}
|
|
4156
4243
|
}));
|
|
4157
4244
|
}
|
|
4158
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
4159
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
4245
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: RouterConfigLoader, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4246
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: RouterConfigLoader, providedIn: 'root' }); }
|
|
4160
4247
|
}
|
|
4161
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
4248
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: RouterConfigLoader, decorators: [{
|
|
4162
4249
|
type: Injectable,
|
|
4163
4250
|
args: [{ providedIn: 'root' }]
|
|
4164
4251
|
}] });
|
|
@@ -4197,6 +4284,9 @@ class NavigationTransitions {
|
|
|
4197
4284
|
this.urlSerializer = inject(UrlSerializer);
|
|
4198
4285
|
this.rootContexts = inject(ChildrenOutletContexts);
|
|
4199
4286
|
this.inputBindingEnabled = inject(INPUT_BINDER, { optional: true }) !== null;
|
|
4287
|
+
this.titleStrategy = inject(TitleStrategy);
|
|
4288
|
+
this.options = inject(ROUTER_CONFIGURATION, { optional: true }) || {};
|
|
4289
|
+
this.paramsInheritanceStrategy = this.options.paramsInheritanceStrategy || 'emptyOnly';
|
|
4200
4290
|
this.navigationId = 0;
|
|
4201
4291
|
/**
|
|
4202
4292
|
* Hook that enables you to pause navigation after the preactivation phase.
|
|
@@ -4296,7 +4386,7 @@ class NavigationTransitions {
|
|
|
4296
4386
|
return Promise.resolve(t);
|
|
4297
4387
|
}),
|
|
4298
4388
|
// Recognize
|
|
4299
|
-
recognize(this.environmentInjector, this.configLoader, this.rootComponentType, router.config, this.urlSerializer,
|
|
4389
|
+
recognize(this.environmentInjector, this.configLoader, this.rootComponentType, router.config, this.urlSerializer, this.paramsInheritanceStrategy),
|
|
4300
4390
|
// Update URL if in `eager` update mode
|
|
4301
4391
|
tap(t => {
|
|
4302
4392
|
overallTransitionState.targetSnapshot = t.targetSnapshot;
|
|
@@ -4374,7 +4464,7 @@ class NavigationTransitions {
|
|
|
4374
4464
|
this.events.next(resolveStart);
|
|
4375
4465
|
}), switchMap(t => {
|
|
4376
4466
|
let dataResolved = false;
|
|
4377
|
-
return of(t).pipe(resolveData(
|
|
4467
|
+
return of(t).pipe(resolveData(this.paramsInheritanceStrategy, this.environmentInjector), tap({
|
|
4378
4468
|
next: () => dataResolved = true,
|
|
4379
4469
|
complete: () => {
|
|
4380
4470
|
if (!dataResolved) {
|
|
@@ -4425,7 +4515,7 @@ class NavigationTransitions {
|
|
|
4425
4515
|
completed = true;
|
|
4426
4516
|
this.lastSuccessfulNavigation = this.currentNavigation;
|
|
4427
4517
|
this.events.next(new NavigationEnd(t.id, this.urlSerializer.serialize(t.extractedUrl), this.urlSerializer.serialize(t.urlAfterRedirects)));
|
|
4428
|
-
|
|
4518
|
+
this.titleStrategy?.updateTitle(t.targetRouterState.snapshot);
|
|
4429
4519
|
t.resolve(true);
|
|
4430
4520
|
},
|
|
4431
4521
|
complete: () => {
|
|
@@ -4496,10 +4586,10 @@ class NavigationTransitions {
|
|
|
4496
4586
|
this.events.next(navCancel);
|
|
4497
4587
|
t.resolve(false);
|
|
4498
4588
|
}
|
|
4499
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
4500
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
4589
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: NavigationTransitions, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4590
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: NavigationTransitions, providedIn: 'root' }); }
|
|
4501
4591
|
}
|
|
4502
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
4592
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: NavigationTransitions, decorators: [{
|
|
4503
4593
|
type: Injectable,
|
|
4504
4594
|
args: [{ providedIn: 'root' }]
|
|
4505
4595
|
}], ctorParameters: function () { return []; } });
|
|
@@ -4507,83 +4597,6 @@ function isBrowserTriggeredNavigation(source) {
|
|
|
4507
4597
|
return source !== IMPERATIVE_NAVIGATION;
|
|
4508
4598
|
}
|
|
4509
4599
|
|
|
4510
|
-
/**
|
|
4511
|
-
* Provides a strategy for setting the page title after a router navigation.
|
|
4512
|
-
*
|
|
4513
|
-
* The built-in implementation traverses the router state snapshot and finds the deepest primary
|
|
4514
|
-
* outlet with `title` property. Given the `Routes` below, navigating to
|
|
4515
|
-
* `/base/child(popup:aux)` would result in the document title being set to "child".
|
|
4516
|
-
* ```
|
|
4517
|
-
* [
|
|
4518
|
-
* {path: 'base', title: 'base', children: [
|
|
4519
|
-
* {path: 'child', title: 'child'},
|
|
4520
|
-
* ],
|
|
4521
|
-
* {path: 'aux', outlet: 'popup', title: 'popupTitle'}
|
|
4522
|
-
* ]
|
|
4523
|
-
* ```
|
|
4524
|
-
*
|
|
4525
|
-
* This class can be used as a base class for custom title strategies. That is, you can create your
|
|
4526
|
-
* own class that extends the `TitleStrategy`. Note that in the above example, the `title`
|
|
4527
|
-
* from the named outlet is never used. However, a custom strategy might be implemented to
|
|
4528
|
-
* incorporate titles in named outlets.
|
|
4529
|
-
*
|
|
4530
|
-
* @publicApi
|
|
4531
|
-
* @see [Page title guide](guide/router#setting-the-page-title)
|
|
4532
|
-
*/
|
|
4533
|
-
class TitleStrategy {
|
|
4534
|
-
/**
|
|
4535
|
-
* @returns The `title` of the deepest primary route.
|
|
4536
|
-
*/
|
|
4537
|
-
buildTitle(snapshot) {
|
|
4538
|
-
let pageTitle;
|
|
4539
|
-
let route = snapshot.root;
|
|
4540
|
-
while (route !== undefined) {
|
|
4541
|
-
pageTitle = this.getResolvedTitleForRoute(route) ?? pageTitle;
|
|
4542
|
-
route = route.children.find(child => child.outlet === PRIMARY_OUTLET);
|
|
4543
|
-
}
|
|
4544
|
-
return pageTitle;
|
|
4545
|
-
}
|
|
4546
|
-
/**
|
|
4547
|
-
* Given an `ActivatedRouteSnapshot`, returns the final value of the
|
|
4548
|
-
* `Route.title` property, which can either be a static string or a resolved value.
|
|
4549
|
-
*/
|
|
4550
|
-
getResolvedTitleForRoute(snapshot) {
|
|
4551
|
-
return snapshot.data[RouteTitleKey];
|
|
4552
|
-
}
|
|
4553
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.1", ngImport: i0, type: TitleStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4554
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.1", ngImport: i0, type: TitleStrategy, providedIn: 'root', useFactory: () => inject(DefaultTitleStrategy) }); }
|
|
4555
|
-
}
|
|
4556
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.1", ngImport: i0, type: TitleStrategy, decorators: [{
|
|
4557
|
-
type: Injectable,
|
|
4558
|
-
args: [{ providedIn: 'root', useFactory: () => inject(DefaultTitleStrategy) }]
|
|
4559
|
-
}] });
|
|
4560
|
-
/**
|
|
4561
|
-
* The default `TitleStrategy` used by the router that updates the title using the `Title` service.
|
|
4562
|
-
*/
|
|
4563
|
-
class DefaultTitleStrategy extends TitleStrategy {
|
|
4564
|
-
constructor(title) {
|
|
4565
|
-
super();
|
|
4566
|
-
this.title = title;
|
|
4567
|
-
}
|
|
4568
|
-
/**
|
|
4569
|
-
* Sets the title of the browser to the given value.
|
|
4570
|
-
*
|
|
4571
|
-
* @param title The `pageTitle` from the deepest primary route.
|
|
4572
|
-
*/
|
|
4573
|
-
updateTitle(snapshot) {
|
|
4574
|
-
const title = this.buildTitle(snapshot);
|
|
4575
|
-
if (title !== undefined) {
|
|
4576
|
-
this.title.setTitle(title);
|
|
4577
|
-
}
|
|
4578
|
-
}
|
|
4579
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.1", ngImport: i0, type: DefaultTitleStrategy, deps: [{ token: i1.Title }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4580
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.1", ngImport: i0, type: DefaultTitleStrategy, providedIn: 'root' }); }
|
|
4581
|
-
}
|
|
4582
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.1", ngImport: i0, type: DefaultTitleStrategy, decorators: [{
|
|
4583
|
-
type: Injectable,
|
|
4584
|
-
args: [{ providedIn: 'root' }]
|
|
4585
|
-
}], ctorParameters: function () { return [{ type: i1.Title }]; } });
|
|
4586
|
-
|
|
4587
4600
|
/**
|
|
4588
4601
|
* @description
|
|
4589
4602
|
*
|
|
@@ -4592,10 +4605,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.1",
|
|
|
4592
4605
|
* @publicApi
|
|
4593
4606
|
*/
|
|
4594
4607
|
class RouteReuseStrategy {
|
|
4595
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
4596
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
4608
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: RouteReuseStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4609
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: RouteReuseStrategy, providedIn: 'root', useFactory: () => inject(DefaultRouteReuseStrategy) }); }
|
|
4597
4610
|
}
|
|
4598
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
4611
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: RouteReuseStrategy, decorators: [{
|
|
4599
4612
|
type: Injectable,
|
|
4600
4613
|
args: [{ providedIn: 'root', useFactory: () => inject(DefaultRouteReuseStrategy) }]
|
|
4601
4614
|
}] });
|
|
@@ -4646,24 +4659,14 @@ class BaseRouteReuseStrategy {
|
|
|
4646
4659
|
}
|
|
4647
4660
|
}
|
|
4648
4661
|
class DefaultRouteReuseStrategy extends BaseRouteReuseStrategy {
|
|
4649
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
4650
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
4662
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: DefaultRouteReuseStrategy, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4663
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: DefaultRouteReuseStrategy, providedIn: 'root' }); }
|
|
4651
4664
|
}
|
|
4652
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
4665
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: DefaultRouteReuseStrategy, decorators: [{
|
|
4653
4666
|
type: Injectable,
|
|
4654
4667
|
args: [{ providedIn: 'root' }]
|
|
4655
4668
|
}] });
|
|
4656
4669
|
|
|
4657
|
-
/**
|
|
4658
|
-
* A [DI token](guide/glossary/#di-token) for the router service.
|
|
4659
|
-
*
|
|
4660
|
-
* @publicApi
|
|
4661
|
-
*/
|
|
4662
|
-
const ROUTER_CONFIGURATION = new InjectionToken((typeof ngDevMode === 'undefined' || ngDevMode) ? 'router config' : '', {
|
|
4663
|
-
providedIn: 'root',
|
|
4664
|
-
factory: () => ({}),
|
|
4665
|
-
});
|
|
4666
|
-
|
|
4667
4670
|
/**
|
|
4668
4671
|
* @description
|
|
4669
4672
|
*
|
|
@@ -4672,10 +4675,10 @@ const ROUTER_CONFIGURATION = new InjectionToken((typeof ngDevMode === 'undefined
|
|
|
4672
4675
|
* @publicApi
|
|
4673
4676
|
*/
|
|
4674
4677
|
class UrlHandlingStrategy {
|
|
4675
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
4676
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
4678
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: UrlHandlingStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4679
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: UrlHandlingStrategy, providedIn: 'root', useFactory: () => inject(DefaultUrlHandlingStrategy) }); }
|
|
4677
4680
|
}
|
|
4678
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
4681
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: UrlHandlingStrategy, decorators: [{
|
|
4679
4682
|
type: Injectable,
|
|
4680
4683
|
args: [{ providedIn: 'root', useFactory: () => inject(DefaultUrlHandlingStrategy) }]
|
|
4681
4684
|
}] });
|
|
@@ -4692,10 +4695,10 @@ class DefaultUrlHandlingStrategy {
|
|
|
4692
4695
|
merge(newUrlPart, wholeUrl) {
|
|
4693
4696
|
return newUrlPart;
|
|
4694
4697
|
}
|
|
4695
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
4696
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
4698
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: DefaultUrlHandlingStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4699
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: DefaultUrlHandlingStrategy, providedIn: 'root' }); }
|
|
4697
4700
|
}
|
|
4698
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
4701
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: DefaultUrlHandlingStrategy, decorators: [{
|
|
4699
4702
|
type: Injectable,
|
|
4700
4703
|
args: [{ providedIn: 'root' }]
|
|
4701
4704
|
}] });
|
|
@@ -4833,8 +4836,6 @@ class Router {
|
|
|
4833
4836
|
* The most common case is a `%` sign
|
|
4834
4837
|
* that's not encoded and is not part of a percent encoded sequence.
|
|
4835
4838
|
*
|
|
4836
|
-
* @deprecated URI parsing errors should be handled in the `UrlSerializer`.
|
|
4837
|
-
*
|
|
4838
4839
|
* @see {@link RouterModule}
|
|
4839
4840
|
*/
|
|
4840
4841
|
this.malformedUriErrorHandler = this.options.malformedUriErrorHandler || defaultMalformedUriErrorHandler;
|
|
@@ -4859,13 +4860,6 @@ class Router {
|
|
|
4859
4860
|
* `{provide: RouteReuseStrategy, useClass: MyStrategy}`.
|
|
4860
4861
|
*/
|
|
4861
4862
|
this.routeReuseStrategy = inject(RouteReuseStrategy);
|
|
4862
|
-
/**
|
|
4863
|
-
* A strategy for setting the title based on the `routerState`.
|
|
4864
|
-
*
|
|
4865
|
-
* @deprecated Configure using `providers` instead:
|
|
4866
|
-
* `{provide: TitleStrategy, useClass: MyStrategy}`.
|
|
4867
|
-
*/
|
|
4868
|
-
this.titleStrategy = inject(TitleStrategy);
|
|
4869
4863
|
/**
|
|
4870
4864
|
* How to handle a navigation request to the current URL.
|
|
4871
4865
|
*
|
|
@@ -4876,33 +4870,6 @@ class Router {
|
|
|
4876
4870
|
* @see {@link RouterModule}
|
|
4877
4871
|
*/
|
|
4878
4872
|
this.onSameUrlNavigation = this.options.onSameUrlNavigation || 'ignore';
|
|
4879
|
-
/**
|
|
4880
|
-
* How to merge parameters, data, resolved data, and title from parent to child
|
|
4881
|
-
* routes. One of:
|
|
4882
|
-
*
|
|
4883
|
-
* - `'emptyOnly'` : Inherit parent parameters, data, and resolved data
|
|
4884
|
-
* for path-less or component-less routes.
|
|
4885
|
-
* - `'always'` : Inherit parent parameters, data, and resolved data
|
|
4886
|
-
* for all child routes.
|
|
4887
|
-
*
|
|
4888
|
-
* @deprecated Configure this through `provideRouter` or `RouterModule.forRoot` instead.
|
|
4889
|
-
* @see {@link withRouterConfig}
|
|
4890
|
-
* @see {@link provideRouter}
|
|
4891
|
-
* @see {@link RouterModule}
|
|
4892
|
-
*/
|
|
4893
|
-
this.paramsInheritanceStrategy = this.options.paramsInheritanceStrategy || 'emptyOnly';
|
|
4894
|
-
/**
|
|
4895
|
-
* Determines when the router updates the browser URL.
|
|
4896
|
-
* By default (`"deferred"`), updates the browser URL after navigation has finished.
|
|
4897
|
-
* Set to `'eager'` to update the browser URL at the beginning of navigation.
|
|
4898
|
-
* You can choose to update early so that, if navigation fails,
|
|
4899
|
-
* you can show an error message with the URL that failed.
|
|
4900
|
-
*
|
|
4901
|
-
* @deprecated Configure this through `provideRouter` or `RouterModule.forRoot` instead.
|
|
4902
|
-
* @see {@link withRouterConfig}
|
|
4903
|
-
* @see {@link provideRouter}
|
|
4904
|
-
* @see {@link RouterModule}
|
|
4905
|
-
*/
|
|
4906
4873
|
this.urlUpdateStrategy = this.options.urlUpdateStrategy || 'deferred';
|
|
4907
4874
|
/**
|
|
4908
4875
|
* Configures how the Router attempts to restore state when a navigation is cancelled.
|
|
@@ -4925,7 +4892,6 @@ class Router {
|
|
|
4925
4892
|
*
|
|
4926
4893
|
* The default value is `replace`.
|
|
4927
4894
|
*
|
|
4928
|
-
* @deprecated Configure this through `provideRouter` or `RouterModule.forRoot` instead.
|
|
4929
4895
|
* @see {@link withRouterConfig}
|
|
4930
4896
|
* @see {@link provideRouter}
|
|
4931
4897
|
* @see {@link RouterModule}
|
|
@@ -5495,10 +5461,10 @@ class Router {
|
|
|
5495
5461
|
}
|
|
5496
5462
|
return { navigationId };
|
|
5497
5463
|
}
|
|
5498
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
5499
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
5464
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: Router, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5465
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: Router, providedIn: 'root' }); }
|
|
5500
5466
|
}
|
|
5501
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
5467
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: Router, decorators: [{
|
|
5502
5468
|
type: Injectable,
|
|
5503
5469
|
args: [{ providedIn: 'root' }]
|
|
5504
5470
|
}], ctorParameters: function () { return []; } });
|
|
@@ -5769,10 +5735,10 @@ class RouterLink {
|
|
|
5769
5735
|
preserveFragment: this.preserveFragment,
|
|
5770
5736
|
});
|
|
5771
5737
|
}
|
|
5772
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
5773
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "17.0.0-next.
|
|
5738
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: RouterLink, deps: [{ token: Router }, { token: ActivatedRoute }, { token: 'tabindex', attribute: true }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i3.LocationStrategy }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5739
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "17.0.0-next.2", type: RouterLink, isStandalone: true, selector: "[routerLink]", inputs: { target: "target", queryParams: "queryParams", fragment: "fragment", queryParamsHandling: "queryParamsHandling", state: "state", relativeTo: "relativeTo", preserveFragment: ["preserveFragment", "preserveFragment", booleanAttribute], skipLocationChange: ["skipLocationChange", "skipLocationChange", booleanAttribute], replaceUrl: ["replaceUrl", "replaceUrl", booleanAttribute], routerLink: "routerLink" }, host: { listeners: { "click": "onClick($event.button,$event.ctrlKey,$event.shiftKey,$event.altKey,$event.metaKey)" }, properties: { "attr.target": "this.target" } }, usesOnChanges: true, ngImport: i0 }); }
|
|
5774
5740
|
}
|
|
5775
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
5741
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: RouterLink, decorators: [{
|
|
5776
5742
|
type: Directive,
|
|
5777
5743
|
args: [{
|
|
5778
5744
|
selector: '[routerLink]',
|
|
@@ -5995,10 +5961,10 @@ class RouterLinkActive {
|
|
|
5995
5961
|
const isActiveCheckFn = this.isLinkActive(this.router);
|
|
5996
5962
|
return this.link && isActiveCheckFn(this.link) || this.links.some(isActiveCheckFn);
|
|
5997
5963
|
}
|
|
5998
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
5999
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.0-next.
|
|
5964
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: RouterLinkActive, deps: [{ token: Router }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: RouterLink, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5965
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.0-next.2", type: RouterLinkActive, isStandalone: true, selector: "[routerLinkActive]", inputs: { routerLinkActiveOptions: "routerLinkActiveOptions", ariaCurrentWhenActive: "ariaCurrentWhenActive", routerLinkActive: "routerLinkActive" }, outputs: { isActiveChange: "isActiveChange" }, queries: [{ propertyName: "links", predicate: RouterLink, descendants: true }], exportAs: ["routerLinkActive"], usesOnChanges: true, ngImport: i0 }); }
|
|
6000
5966
|
}
|
|
6001
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
5967
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: RouterLinkActive, decorators: [{
|
|
6002
5968
|
type: Directive,
|
|
6003
5969
|
args: [{
|
|
6004
5970
|
selector: '[routerLinkActive]',
|
|
@@ -6050,10 +6016,10 @@ class PreloadAllModules {
|
|
|
6050
6016
|
preload(route, fn) {
|
|
6051
6017
|
return fn().pipe(catchError(() => of(null)));
|
|
6052
6018
|
}
|
|
6053
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
6054
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
6019
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: PreloadAllModules, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6020
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: PreloadAllModules, providedIn: 'root' }); }
|
|
6055
6021
|
}
|
|
6056
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
6022
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: PreloadAllModules, decorators: [{
|
|
6057
6023
|
type: Injectable,
|
|
6058
6024
|
args: [{ providedIn: 'root' }]
|
|
6059
6025
|
}] });
|
|
@@ -6070,10 +6036,10 @@ class NoPreloading {
|
|
|
6070
6036
|
preload(route, fn) {
|
|
6071
6037
|
return of(null);
|
|
6072
6038
|
}
|
|
6073
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
6074
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
6039
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: NoPreloading, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6040
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: NoPreloading, providedIn: 'root' }); }
|
|
6075
6041
|
}
|
|
6076
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
6042
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: NoPreloading, decorators: [{
|
|
6077
6043
|
type: Injectable,
|
|
6078
6044
|
args: [{ providedIn: 'root' }]
|
|
6079
6045
|
}] });
|
|
@@ -6166,10 +6132,10 @@ class RouterPreloader {
|
|
|
6166
6132
|
}
|
|
6167
6133
|
});
|
|
6168
6134
|
}
|
|
6169
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
6170
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
6135
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: RouterPreloader, deps: [{ token: Router }, { token: i0.Compiler }, { token: i0.EnvironmentInjector }, { token: PreloadingStrategy }, { token: RouterConfigLoader }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6136
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: RouterPreloader, providedIn: 'root' }); }
|
|
6171
6137
|
}
|
|
6172
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
6138
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: RouterPreloader, decorators: [{
|
|
6173
6139
|
type: Injectable,
|
|
6174
6140
|
args: [{ providedIn: 'root' }]
|
|
6175
6141
|
}], ctorParameters: function () { return [{ type: Router }, { type: i0.Compiler }, { type: i0.EnvironmentInjector }, { type: PreloadingStrategy }, { type: RouterConfigLoader }]; } });
|
|
@@ -6262,10 +6228,10 @@ class RouterScroller {
|
|
|
6262
6228
|
this.routerEventsSubscription?.unsubscribe();
|
|
6263
6229
|
this.scrollEventsSubscription?.unsubscribe();
|
|
6264
6230
|
}
|
|
6265
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
6266
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
6231
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: RouterScroller, deps: "invalid", target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6232
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: RouterScroller }); }
|
|
6267
6233
|
}
|
|
6268
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
6234
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: RouterScroller, decorators: [{
|
|
6269
6235
|
type: Injectable
|
|
6270
6236
|
}], ctorParameters: function () { return [{ type: UrlSerializer }, { type: NavigationTransitions }, { type: i3.ViewportScroller }, { type: i0.NgZone }, { type: undefined }]; } });
|
|
6271
6237
|
|
|
@@ -6872,11 +6838,11 @@ class RouterModule {
|
|
|
6872
6838
|
providers: [{ provide: ROUTES, multi: true, useValue: routes }],
|
|
6873
6839
|
};
|
|
6874
6840
|
}
|
|
6875
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
6876
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.0-next.
|
|
6877
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
6841
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: RouterModule, deps: [{ token: ROUTER_FORROOT_GUARD, optional: true }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
6842
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.0-next.2", ngImport: i0, type: RouterModule, imports: [RouterOutlet, RouterLink, RouterLinkActive, ɵEmptyOutletComponent], exports: [RouterOutlet, RouterLink, RouterLinkActive, ɵEmptyOutletComponent] }); }
|
|
6843
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: RouterModule }); }
|
|
6878
6844
|
}
|
|
6879
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.
|
|
6845
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: RouterModule, decorators: [{
|
|
6880
6846
|
type: NgModule,
|
|
6881
6847
|
args: [{
|
|
6882
6848
|
imports: ROUTER_DIRECTIVES,
|
|
@@ -7021,7 +6987,7 @@ function mapToResolve(provider) {
|
|
|
7021
6987
|
/**
|
|
7022
6988
|
* @publicApi
|
|
7023
6989
|
*/
|
|
7024
|
-
const VERSION = new Version('17.0.0-next.
|
|
6990
|
+
const VERSION = new Version('17.0.0-next.2');
|
|
7025
6991
|
|
|
7026
6992
|
/**
|
|
7027
6993
|
* @module
|