@angular/router 17.3.0-next.1 → 17.3.0
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/models.mjs +1 -1
- package/esm2022/src/navigation_transition.mjs +18 -9
- package/esm2022/src/operators/check_guards.mjs +1 -1
- package/esm2022/src/operators/prioritized_guard_value.mjs +1 -1
- package/esm2022/src/page_title_strategy.mjs +6 -6
- package/esm2022/src/route_reuse_strategy.mjs +6 -6
- package/esm2022/src/router.mjs +3 -3
- 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/statemanager/state_manager.mjs +6 -6
- 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 +86 -77
- package/fesm2022/router.mjs.map +1 -1
- package/fesm2022/testing.mjs +11 -11
- package/fesm2022/upgrade.mjs +1 -1
- package/index.d.ts +31 -16
- 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.3.0
|
|
2
|
+
* @license Angular v17.3.0
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -421,10 +421,10 @@ function mapChildrenIntoArray(segment, fn) {
|
|
|
421
421
|
* @publicApi
|
|
422
422
|
*/
|
|
423
423
|
class UrlSerializer {
|
|
424
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0
|
|
425
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.0
|
|
424
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: UrlSerializer, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
425
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: UrlSerializer, providedIn: 'root', useFactory: () => new DefaultUrlSerializer() }); }
|
|
426
426
|
}
|
|
427
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0
|
|
427
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: UrlSerializer, decorators: [{
|
|
428
428
|
type: Injectable,
|
|
429
429
|
args: [{ providedIn: 'root', useFactory: () => new DefaultUrlSerializer() }]
|
|
430
430
|
}] });
|
|
@@ -1854,10 +1854,10 @@ class ChildrenOutletContexts {
|
|
|
1854
1854
|
getContext(childName) {
|
|
1855
1855
|
return this.contexts.get(childName) || null;
|
|
1856
1856
|
}
|
|
1857
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0
|
|
1858
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.0
|
|
1857
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: ChildrenOutletContexts, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1858
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: ChildrenOutletContexts, providedIn: 'root' }); }
|
|
1859
1859
|
}
|
|
1860
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0
|
|
1860
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: ChildrenOutletContexts, decorators: [{
|
|
1861
1861
|
type: Injectable,
|
|
1862
1862
|
args: [{ providedIn: 'root' }]
|
|
1863
1863
|
}] });
|
|
@@ -2569,10 +2569,10 @@ class RouterOutlet {
|
|
|
2569
2569
|
this.inputBinder?.bindActivatedRouteToOutletComponent(this);
|
|
2570
2570
|
this.activateEvents.emit(this.activated.instance);
|
|
2571
2571
|
}
|
|
2572
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0
|
|
2573
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.0
|
|
2572
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: RouterOutlet, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2573
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.0", 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 }); }
|
|
2574
2574
|
}
|
|
2575
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0
|
|
2575
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: RouterOutlet, decorators: [{
|
|
2576
2576
|
type: Directive,
|
|
2577
2577
|
args: [{
|
|
2578
2578
|
selector: 'router-outlet',
|
|
@@ -2677,10 +2677,10 @@ class RoutedComponentInputBinder {
|
|
|
2677
2677
|
});
|
|
2678
2678
|
this.outletDataSubscriptions.set(outlet, dataSubscription);
|
|
2679
2679
|
}
|
|
2680
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0
|
|
2681
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.0
|
|
2680
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: RoutedComponentInputBinder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2681
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: RoutedComponentInputBinder }); }
|
|
2682
2682
|
}
|
|
2683
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0
|
|
2683
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: RoutedComponentInputBinder, decorators: [{
|
|
2684
2684
|
type: Injectable
|
|
2685
2685
|
}] });
|
|
2686
2686
|
|
|
@@ -2760,10 +2760,10 @@ function isNavigationCancelingError(error) {
|
|
|
2760
2760
|
* to this `EmptyOutletComponent`.
|
|
2761
2761
|
*/
|
|
2762
2762
|
class ɵEmptyOutletComponent {
|
|
2763
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0
|
|
2764
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.0
|
|
2763
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: ɵEmptyOutletComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2764
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.0", 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"] }] }); }
|
|
2765
2765
|
}
|
|
2766
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0
|
|
2766
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: ɵEmptyOutletComponent, decorators: [{
|
|
2767
2767
|
type: Component,
|
|
2768
2768
|
args: [{
|
|
2769
2769
|
template: `<router-outlet></router-outlet>`,
|
|
@@ -4174,10 +4174,10 @@ class TitleStrategy {
|
|
|
4174
4174
|
getResolvedTitleForRoute(snapshot) {
|
|
4175
4175
|
return snapshot.data[RouteTitleKey];
|
|
4176
4176
|
}
|
|
4177
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0
|
|
4178
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.0
|
|
4177
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: TitleStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4178
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: TitleStrategy, providedIn: 'root', useFactory: () => inject(DefaultTitleStrategy) }); }
|
|
4179
4179
|
}
|
|
4180
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0
|
|
4180
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: TitleStrategy, decorators: [{
|
|
4181
4181
|
type: Injectable,
|
|
4182
4182
|
args: [{ providedIn: 'root', useFactory: () => inject(DefaultTitleStrategy) }]
|
|
4183
4183
|
}] });
|
|
@@ -4200,10 +4200,10 @@ class DefaultTitleStrategy extends TitleStrategy {
|
|
|
4200
4200
|
this.title.setTitle(title);
|
|
4201
4201
|
}
|
|
4202
4202
|
}
|
|
4203
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0
|
|
4204
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.0
|
|
4203
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: DefaultTitleStrategy, deps: [{ token: i1.Title }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4204
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: DefaultTitleStrategy, providedIn: 'root' }); }
|
|
4205
4205
|
}
|
|
4206
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0
|
|
4206
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: DefaultTitleStrategy, decorators: [{
|
|
4207
4207
|
type: Injectable,
|
|
4208
4208
|
args: [{ providedIn: 'root' }]
|
|
4209
4209
|
}], ctorParameters: () => [{ type: i1.Title }] });
|
|
@@ -4279,10 +4279,10 @@ class RouterConfigLoader {
|
|
|
4279
4279
|
this.childrenLoaders.set(route, loader);
|
|
4280
4280
|
return loader;
|
|
4281
4281
|
}
|
|
4282
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0
|
|
4283
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.0
|
|
4282
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: RouterConfigLoader, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4283
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: RouterConfigLoader, providedIn: 'root' }); }
|
|
4284
4284
|
}
|
|
4285
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0
|
|
4285
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: RouterConfigLoader, decorators: [{
|
|
4286
4286
|
type: Injectable,
|
|
4287
4287
|
args: [{ providedIn: 'root' }]
|
|
4288
4288
|
}] });
|
|
@@ -4349,10 +4349,10 @@ function maybeUnwrapDefaultExport(input) {
|
|
|
4349
4349
|
* @publicApi
|
|
4350
4350
|
*/
|
|
4351
4351
|
class UrlHandlingStrategy {
|
|
4352
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0
|
|
4353
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.0
|
|
4352
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: UrlHandlingStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4353
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: UrlHandlingStrategy, providedIn: 'root', useFactory: () => inject(DefaultUrlHandlingStrategy) }); }
|
|
4354
4354
|
}
|
|
4355
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0
|
|
4355
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: UrlHandlingStrategy, decorators: [{
|
|
4356
4356
|
type: Injectable,
|
|
4357
4357
|
args: [{ providedIn: 'root', useFactory: () => inject(DefaultUrlHandlingStrategy) }]
|
|
4358
4358
|
}] });
|
|
@@ -4369,10 +4369,10 @@ class DefaultUrlHandlingStrategy {
|
|
|
4369
4369
|
merge(newUrlPart, wholeUrl) {
|
|
4370
4370
|
return newUrlPart;
|
|
4371
4371
|
}
|
|
4372
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0
|
|
4373
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.0
|
|
4372
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: DefaultUrlHandlingStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4373
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: DefaultUrlHandlingStrategy, providedIn: 'root' }); }
|
|
4374
4374
|
}
|
|
4375
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0
|
|
4375
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: DefaultUrlHandlingStrategy, decorators: [{
|
|
4376
4376
|
type: Injectable,
|
|
4377
4377
|
args: [{ providedIn: 'root' }]
|
|
4378
4378
|
}] });
|
|
@@ -4503,12 +4503,22 @@ class NavigationTransitions {
|
|
|
4503
4503
|
})),
|
|
4504
4504
|
// Using switchMap so we cancel executing navigations when a new one comes in
|
|
4505
4505
|
switchMap((overallTransitionState) => {
|
|
4506
|
-
this.currentTransition = overallTransitionState;
|
|
4507
4506
|
let completed = false;
|
|
4508
4507
|
let errored = false;
|
|
4509
|
-
return of(overallTransitionState).pipe(
|
|
4510
|
-
|
|
4511
|
-
|
|
4508
|
+
return of(overallTransitionState).pipe(switchMap((t) => {
|
|
4509
|
+
// It is possible that `switchMap` fails to cancel previous navigations if a new one happens synchronously while the operator
|
|
4510
|
+
// is processing the `next` notification of that previous navigation. This can happen when a new navigation (say 2) cancels a
|
|
4511
|
+
// previous one (1) and yet another navigation (3) happens synchronously in response to the `NavigationCancel` event for (1).
|
|
4512
|
+
// https://github.com/ReactiveX/rxjs/issues/7455
|
|
4513
|
+
if (this.navigationId > overallTransitionState.id) {
|
|
4514
|
+
const cancellationReason = typeof ngDevMode === 'undefined' || ngDevMode
|
|
4515
|
+
? `Navigation ID ${overallTransitionState.id} is not equal to the current navigation id ${this.navigationId}`
|
|
4516
|
+
: '';
|
|
4517
|
+
this.cancelNavigationTransition(overallTransitionState, cancellationReason, NavigationCancellationCode.SupersededByNewNavigation);
|
|
4518
|
+
return EMPTY;
|
|
4519
|
+
}
|
|
4520
|
+
this.currentTransition = overallTransitionState;
|
|
4521
|
+
// Store the Navigation object
|
|
4512
4522
|
this.currentNavigation = {
|
|
4513
4523
|
id: t.id,
|
|
4514
4524
|
initialUrl: t.rawUrl,
|
|
@@ -4522,7 +4532,6 @@ class NavigationTransitions {
|
|
|
4522
4532
|
previousNavigation: null,
|
|
4523
4533
|
},
|
|
4524
4534
|
};
|
|
4525
|
-
}), switchMap((t) => {
|
|
4526
4535
|
const urlTransition = !router.navigated || this.isUpdatingInternalState() || this.isUpdatedBrowserUrl();
|
|
4527
4536
|
const onSameUrlNavigation = t.extras.onSameUrlNavigation ?? router.onSameUrlNavigation;
|
|
4528
4537
|
if (!urlTransition && onSameUrlNavigation !== 'reload') {
|
|
@@ -4794,10 +4803,10 @@ class NavigationTransitions {
|
|
|
4794
4803
|
return (extractedBrowserUrl.toString() !== this.currentTransition?.extractedUrl.toString() &&
|
|
4795
4804
|
!this.currentTransition?.extras.skipLocationChange);
|
|
4796
4805
|
}
|
|
4797
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0
|
|
4798
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.0
|
|
4806
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: NavigationTransitions, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4807
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: NavigationTransitions, providedIn: 'root' }); }
|
|
4799
4808
|
}
|
|
4800
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0
|
|
4809
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: NavigationTransitions, decorators: [{
|
|
4801
4810
|
type: Injectable,
|
|
4802
4811
|
args: [{ providedIn: 'root' }]
|
|
4803
4812
|
}], ctorParameters: () => [] });
|
|
@@ -4813,10 +4822,10 @@ function isBrowserTriggeredNavigation(source) {
|
|
|
4813
4822
|
* @publicApi
|
|
4814
4823
|
*/
|
|
4815
4824
|
class RouteReuseStrategy {
|
|
4816
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0
|
|
4817
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.0
|
|
4825
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: RouteReuseStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4826
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: RouteReuseStrategy, providedIn: 'root', useFactory: () => inject(DefaultRouteReuseStrategy) }); }
|
|
4818
4827
|
}
|
|
4819
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0
|
|
4828
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: RouteReuseStrategy, decorators: [{
|
|
4820
4829
|
type: Injectable,
|
|
4821
4830
|
args: [{ providedIn: 'root', useFactory: () => inject(DefaultRouteReuseStrategy) }]
|
|
4822
4831
|
}] });
|
|
@@ -4867,19 +4876,19 @@ class BaseRouteReuseStrategy {
|
|
|
4867
4876
|
}
|
|
4868
4877
|
}
|
|
4869
4878
|
class DefaultRouteReuseStrategy extends BaseRouteReuseStrategy {
|
|
4870
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0
|
|
4871
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.0
|
|
4879
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: DefaultRouteReuseStrategy, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4880
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: DefaultRouteReuseStrategy, providedIn: 'root' }); }
|
|
4872
4881
|
}
|
|
4873
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0
|
|
4882
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: DefaultRouteReuseStrategy, decorators: [{
|
|
4874
4883
|
type: Injectable,
|
|
4875
4884
|
args: [{ providedIn: 'root' }]
|
|
4876
4885
|
}] });
|
|
4877
4886
|
|
|
4878
4887
|
class StateManager {
|
|
4879
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0
|
|
4880
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.0
|
|
4888
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: StateManager, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4889
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: StateManager, providedIn: 'root', useFactory: () => inject(HistoryStateManager) }); }
|
|
4881
4890
|
}
|
|
4882
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0
|
|
4891
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: StateManager, decorators: [{
|
|
4883
4892
|
type: Injectable,
|
|
4884
4893
|
args: [{ providedIn: 'root', useFactory: () => inject(HistoryStateManager) }]
|
|
4885
4894
|
}] });
|
|
@@ -5054,10 +5063,10 @@ class HistoryStateManager extends StateManager {
|
|
|
5054
5063
|
}
|
|
5055
5064
|
return { navigationId };
|
|
5056
5065
|
}
|
|
5057
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0
|
|
5058
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.0
|
|
5066
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: HistoryStateManager, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5067
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: HistoryStateManager, providedIn: 'root' }); }
|
|
5059
5068
|
}
|
|
5060
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0
|
|
5069
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: HistoryStateManager, decorators: [{
|
|
5061
5070
|
type: Injectable,
|
|
5062
5071
|
args: [{ providedIn: 'root' }]
|
|
5063
5072
|
}] });
|
|
@@ -5633,10 +5642,10 @@ class Router {
|
|
|
5633
5642
|
return Promise.reject(e);
|
|
5634
5643
|
});
|
|
5635
5644
|
}
|
|
5636
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0
|
|
5637
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.0
|
|
5645
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: Router, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5646
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: Router, providedIn: 'root' }); }
|
|
5638
5647
|
}
|
|
5639
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0
|
|
5648
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: Router, decorators: [{
|
|
5640
5649
|
type: Injectable,
|
|
5641
5650
|
args: [{ providedIn: 'root' }]
|
|
5642
5651
|
}], ctorParameters: () => [] });
|
|
@@ -5911,10 +5920,10 @@ class RouterLink {
|
|
|
5911
5920
|
preserveFragment: this.preserveFragment,
|
|
5912
5921
|
});
|
|
5913
5922
|
}
|
|
5914
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0
|
|
5915
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "17.3.0
|
|
5923
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", 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 }); }
|
|
5924
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "17.3.0", type: RouterLink, isStandalone: true, selector: "[routerLink]", inputs: { target: "target", queryParams: "queryParams", fragment: "fragment", queryParamsHandling: "queryParamsHandling", state: "state", info: "info", 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 }); }
|
|
5916
5925
|
}
|
|
5917
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0
|
|
5926
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: RouterLink, decorators: [{
|
|
5918
5927
|
type: Directive,
|
|
5919
5928
|
args: [{
|
|
5920
5929
|
selector: '[routerLink]',
|
|
@@ -6151,10 +6160,10 @@ class RouterLinkActive {
|
|
|
6151
6160
|
const isActiveCheckFn = this.isLinkActive(this.router);
|
|
6152
6161
|
return (this.link && isActiveCheckFn(this.link)) || this.links.some(isActiveCheckFn);
|
|
6153
6162
|
}
|
|
6154
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0
|
|
6155
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.0
|
|
6163
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: RouterLinkActive, deps: [{ token: Router }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: RouterLink, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6164
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.0", 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 }); }
|
|
6156
6165
|
}
|
|
6157
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0
|
|
6166
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: RouterLinkActive, decorators: [{
|
|
6158
6167
|
type: Directive,
|
|
6159
6168
|
args: [{
|
|
6160
6169
|
selector: '[routerLinkActive]',
|
|
@@ -6206,10 +6215,10 @@ class PreloadAllModules {
|
|
|
6206
6215
|
preload(route, fn) {
|
|
6207
6216
|
return fn().pipe(catchError(() => of(null)));
|
|
6208
6217
|
}
|
|
6209
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0
|
|
6210
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.0
|
|
6218
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: PreloadAllModules, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6219
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: PreloadAllModules, providedIn: 'root' }); }
|
|
6211
6220
|
}
|
|
6212
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0
|
|
6221
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: PreloadAllModules, decorators: [{
|
|
6213
6222
|
type: Injectable,
|
|
6214
6223
|
args: [{ providedIn: 'root' }]
|
|
6215
6224
|
}] });
|
|
@@ -6226,10 +6235,10 @@ class NoPreloading {
|
|
|
6226
6235
|
preload(route, fn) {
|
|
6227
6236
|
return of(null);
|
|
6228
6237
|
}
|
|
6229
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0
|
|
6230
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.0
|
|
6238
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: NoPreloading, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6239
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: NoPreloading, providedIn: 'root' }); }
|
|
6231
6240
|
}
|
|
6232
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0
|
|
6241
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: NoPreloading, decorators: [{
|
|
6233
6242
|
type: Injectable,
|
|
6234
6243
|
args: [{ providedIn: 'root' }]
|
|
6235
6244
|
}] });
|
|
@@ -6320,10 +6329,10 @@ class RouterPreloader {
|
|
|
6320
6329
|
}
|
|
6321
6330
|
});
|
|
6322
6331
|
}
|
|
6323
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0
|
|
6324
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.0
|
|
6332
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: RouterPreloader, deps: [{ token: Router }, { token: i0.Compiler }, { token: i0.EnvironmentInjector }, { token: PreloadingStrategy }, { token: RouterConfigLoader }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6333
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: RouterPreloader, providedIn: 'root' }); }
|
|
6325
6334
|
}
|
|
6326
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0
|
|
6335
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: RouterPreloader, decorators: [{
|
|
6327
6336
|
type: Injectable,
|
|
6328
6337
|
args: [{ providedIn: 'root' }]
|
|
6329
6338
|
}], ctorParameters: () => [{ type: Router }, { type: i0.Compiler }, { type: i0.EnvironmentInjector }, { type: PreloadingStrategy }, { type: RouterConfigLoader }] });
|
|
@@ -6416,10 +6425,10 @@ class RouterScroller {
|
|
|
6416
6425
|
this.routerEventsSubscription?.unsubscribe();
|
|
6417
6426
|
this.scrollEventsSubscription?.unsubscribe();
|
|
6418
6427
|
}
|
|
6419
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0
|
|
6420
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.0
|
|
6428
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: RouterScroller, deps: "invalid", target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6429
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: RouterScroller }); }
|
|
6421
6430
|
}
|
|
6422
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0
|
|
6431
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: RouterScroller, decorators: [{
|
|
6423
6432
|
type: Injectable
|
|
6424
6433
|
}], ctorParameters: () => [{ type: UrlSerializer }, { type: NavigationTransitions }, { type: i3.ViewportScroller }, { type: i0.NgZone }, { type: undefined }] });
|
|
6425
6434
|
|
|
@@ -7069,11 +7078,11 @@ class RouterModule {
|
|
|
7069
7078
|
providers: [{ provide: ROUTES, multi: true, useValue: routes }],
|
|
7070
7079
|
};
|
|
7071
7080
|
}
|
|
7072
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0
|
|
7073
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.0
|
|
7074
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.0
|
|
7081
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: RouterModule, deps: [{ token: ROUTER_FORROOT_GUARD, optional: true }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
7082
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.0", ngImport: i0, type: RouterModule, imports: [RouterOutlet, RouterLink, RouterLinkActive, ɵEmptyOutletComponent], exports: [RouterOutlet, RouterLink, RouterLinkActive, ɵEmptyOutletComponent] }); }
|
|
7083
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: RouterModule }); }
|
|
7075
7084
|
}
|
|
7076
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0
|
|
7085
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: RouterModule, decorators: [{
|
|
7077
7086
|
type: NgModule,
|
|
7078
7087
|
args: [{
|
|
7079
7088
|
imports: ROUTER_DIRECTIVES,
|
|
@@ -7218,7 +7227,7 @@ function mapToResolve(provider) {
|
|
|
7218
7227
|
/**
|
|
7219
7228
|
* @publicApi
|
|
7220
7229
|
*/
|
|
7221
|
-
const VERSION = new Version('17.3.0
|
|
7230
|
+
const VERSION = new Version('17.3.0');
|
|
7222
7231
|
|
|
7223
7232
|
/**
|
|
7224
7233
|
* @module
|