@angular/router 15.1.0-next.1 → 15.1.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/esm2020/src/components/empty_outlet.mjs +3 -3
- package/esm2020/src/directives/router_link.mjs +3 -3
- package/esm2020/src/directives/router_link_active.mjs +3 -3
- package/esm2020/src/directives/router_outlet.mjs +3 -3
- package/esm2020/src/navigation_transition.mjs +7 -7
- package/esm2020/src/page_title_strategy.mjs +6 -6
- package/esm2020/src/private_export.mjs +1 -2
- package/esm2020/src/provide_router.mjs +1 -5
- package/esm2020/src/route_reuse_strategy.mjs +6 -6
- package/esm2020/src/router.mjs +45 -93
- package/esm2020/src/router_config_loader.mjs +3 -3
- package/esm2020/src/router_module.mjs +7 -7
- package/esm2020/src/router_outlet_context.mjs +3 -3
- package/esm2020/src/router_preloader.mjs +9 -9
- package/esm2020/src/router_scroller.mjs +3 -3
- package/esm2020/src/router_state.mjs +7 -7
- package/esm2020/src/url_handling_strategy.mjs +6 -6
- package/esm2020/src/url_tree.mjs +3 -3
- package/esm2020/src/utils/config.mjs +2 -2
- package/esm2020/src/version.mjs +1 -1
- package/esm2020/testing/src/router_testing_module.mjs +56 -17
- package/fesm2015/router.mjs +119 -167
- package/fesm2015/router.mjs.map +1 -1
- package/fesm2015/testing.mjs +56 -17
- package/fesm2015/testing.mjs.map +1 -1
- package/fesm2015/upgrade.mjs +1 -1
- package/fesm2020/router.mjs +116 -164
- package/fesm2020/router.mjs.map +1 -1
- package/fesm2020/testing.mjs +56 -17
- package/fesm2020/testing.mjs.map +1 -1
- package/fesm2020/upgrade.mjs +1 -1
- package/index.d.ts +6 -14
- package/package.json +4 -4
- package/testing/index.d.ts +1 -1
- package/upgrade/index.d.ts +1 -1
package/fesm2020/router.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v15.1.0-next.
|
|
2
|
+
* @license Angular v15.1.0-next.2
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import * as i0 from '@angular/core';
|
|
8
|
-
import { ɵisObservable, ɵisPromise, ɵRuntimeError, Injectable, EventEmitter, inject, ViewContainerRef, ChangeDetectorRef, EnvironmentInjector, Directive, Input, Output, Component, createEnvironmentInjector,
|
|
8
|
+
import { ɵisObservable, ɵisPromise, ɵRuntimeError, Injectable, EventEmitter, inject, ViewContainerRef, ChangeDetectorRef, EnvironmentInjector, Directive, Input, Output, Component, createEnvironmentInjector, isStandalone, ComponentFactoryResolver, ɵisInjectable, InjectionToken, InjectFlags, NgModuleFactory, ɵConsole, NgZone, ɵcoerceToBoolean, ɵɵsanitizeUrlOrResourceUrl, Attribute, HostBinding, HostListener, Optional, ContentChildren, makeEnvironmentProviders, APP_BOOTSTRAP_LISTENER, ENVIRONMENT_INITIALIZER, Injector, ApplicationRef, APP_INITIALIZER, NgProbeToken, SkipSelf, NgModule, Inject, Version } from '@angular/core';
|
|
9
9
|
import { from, of, BehaviorSubject, EmptyError, combineLatest, concat, defer, pipe, throwError, Observable, EMPTY, ConnectableObservable, Subject } from 'rxjs';
|
|
10
10
|
import * as i3 from '@angular/common';
|
|
11
11
|
import { Location, ViewportScroller, LOCATION_INITIALIZED, LocationStrategy, HashLocationStrategy, PathLocationStrategy } from '@angular/common';
|
|
@@ -461,9 +461,9 @@ function mapChildrenIntoArray(segment, fn) {
|
|
|
461
461
|
*/
|
|
462
462
|
class UrlSerializer {
|
|
463
463
|
}
|
|
464
|
-
UrlSerializer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
465
|
-
UrlSerializer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
466
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
464
|
+
UrlSerializer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: UrlSerializer, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
465
|
+
UrlSerializer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: UrlSerializer, providedIn: 'root', useFactory: () => new DefaultUrlSerializer() });
|
|
466
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: UrlSerializer, decorators: [{
|
|
467
467
|
type: Injectable,
|
|
468
468
|
args: [{ providedIn: 'root', useFactory: () => new DefaultUrlSerializer() }]
|
|
469
469
|
}] });
|
|
@@ -2078,6 +2078,12 @@ function flattenInherited(pathFromRoot) {
|
|
|
2078
2078
|
* @publicApi
|
|
2079
2079
|
*/
|
|
2080
2080
|
class ActivatedRouteSnapshot {
|
|
2081
|
+
/** The resolved route title */
|
|
2082
|
+
get title() {
|
|
2083
|
+
// Note: This _must_ be a getter because the data is mutated in the resolvers. Title will not be
|
|
2084
|
+
// available at the time of class instantiation.
|
|
2085
|
+
return this.data?.[RouteTitleKey];
|
|
2086
|
+
}
|
|
2081
2087
|
/** @internal */
|
|
2082
2088
|
constructor(
|
|
2083
2089
|
/** The URL segments matched by this route */
|
|
@@ -2124,12 +2130,6 @@ class ActivatedRouteSnapshot {
|
|
|
2124
2130
|
this._lastPathIndex = lastPathIndex;
|
|
2125
2131
|
this._resolve = resolve;
|
|
2126
2132
|
}
|
|
2127
|
-
/** The resolved route title */
|
|
2128
|
-
get title() {
|
|
2129
|
-
// Note: This _must_ be a getter because the data is mutated in the resolvers. Title will not be
|
|
2130
|
-
// available at the time of class instantiation.
|
|
2131
|
-
return this.data?.[RouteTitleKey];
|
|
2132
|
-
}
|
|
2133
2133
|
/** The root of the router state */
|
|
2134
2134
|
get root() {
|
|
2135
2135
|
return this._routerState.root;
|
|
@@ -2413,9 +2413,9 @@ class ChildrenOutletContexts {
|
|
|
2413
2413
|
return this.contexts.get(childName) || null;
|
|
2414
2414
|
}
|
|
2415
2415
|
}
|
|
2416
|
-
ChildrenOutletContexts.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
2417
|
-
ChildrenOutletContexts.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
2418
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
2416
|
+
ChildrenOutletContexts.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: ChildrenOutletContexts, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2417
|
+
ChildrenOutletContexts.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: ChildrenOutletContexts, providedIn: 'root' });
|
|
2418
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: ChildrenOutletContexts, decorators: [{
|
|
2419
2419
|
type: Injectable,
|
|
2420
2420
|
args: [{ providedIn: 'root' }]
|
|
2421
2421
|
}] });
|
|
@@ -2635,9 +2635,9 @@ class RouterOutlet {
|
|
|
2635
2635
|
this.activateEvents.emit(this.activated.instance);
|
|
2636
2636
|
}
|
|
2637
2637
|
}
|
|
2638
|
-
RouterOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
2639
|
-
RouterOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-next.
|
|
2640
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
2638
|
+
RouterOutlet.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: RouterOutlet, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2639
|
+
RouterOutlet.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.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 });
|
|
2640
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: RouterOutlet, decorators: [{
|
|
2641
2641
|
type: Directive,
|
|
2642
2642
|
args: [{
|
|
2643
2643
|
selector: 'router-outlet',
|
|
@@ -2697,9 +2697,9 @@ function isComponentFactoryResolver(item) {
|
|
|
2697
2697
|
*/
|
|
2698
2698
|
class ɵEmptyOutletComponent {
|
|
2699
2699
|
}
|
|
2700
|
-
ɵEmptyOutletComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
2701
|
-
ɵEmptyOutletComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.0-next.
|
|
2702
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
2700
|
+
ɵEmptyOutletComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: ɵEmptyOutletComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2701
|
+
ɵEmptyOutletComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.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"] }] });
|
|
2702
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: ɵEmptyOutletComponent, decorators: [{
|
|
2703
2703
|
type: Component,
|
|
2704
2704
|
args: [{
|
|
2705
2705
|
template: `<router-outlet></router-outlet>`,
|
|
@@ -2751,7 +2751,7 @@ function validateConfig(config, parentPath = '', requireStandaloneComponents = f
|
|
|
2751
2751
|
}
|
|
2752
2752
|
}
|
|
2753
2753
|
function assertStandalone(fullPath, component) {
|
|
2754
|
-
if (component &&
|
|
2754
|
+
if (component && !isStandalone(component)) {
|
|
2755
2755
|
throw new ɵRuntimeError(4014 /* RuntimeErrorCode.INVALID_ROUTE_CONFIG */, `Invalid configuration of route '${fullPath}'. The component must be standalone.`);
|
|
2756
2756
|
}
|
|
2757
2757
|
}
|
|
@@ -4442,9 +4442,9 @@ class RouterConfigLoader {
|
|
|
4442
4442
|
}));
|
|
4443
4443
|
}
|
|
4444
4444
|
}
|
|
4445
|
-
RouterConfigLoader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
4446
|
-
RouterConfigLoader.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
4447
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
4445
|
+
RouterConfigLoader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: RouterConfigLoader, deps: [{ token: i0.Injector }, { token: i0.Compiler }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4446
|
+
RouterConfigLoader.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: RouterConfigLoader, providedIn: 'root' });
|
|
4447
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: RouterConfigLoader, decorators: [{
|
|
4448
4448
|
type: Injectable,
|
|
4449
4449
|
args: [{ providedIn: 'root' }]
|
|
4450
4450
|
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: i0.Compiler }]; } });
|
|
@@ -4469,6 +4469,9 @@ function maybeUnwrapDefaultExport(input) {
|
|
|
4469
4469
|
*/
|
|
4470
4470
|
const NG_DEV_MODE$4 = typeof ngDevMode === 'undefined' || !!ngDevMode;
|
|
4471
4471
|
class NavigationTransitions {
|
|
4472
|
+
get hasRequestedNavigation() {
|
|
4473
|
+
return this.navigationId !== 0;
|
|
4474
|
+
}
|
|
4472
4475
|
constructor() {
|
|
4473
4476
|
this.currentNavigation = null;
|
|
4474
4477
|
this.lastSuccessfulNavigation = null;
|
|
@@ -4483,9 +4486,6 @@ class NavigationTransitions {
|
|
|
4483
4486
|
this.configLoader.onLoadEndListener = onLoadEnd;
|
|
4484
4487
|
this.configLoader.onLoadStartListener = onLoadStart;
|
|
4485
4488
|
}
|
|
4486
|
-
get hasRequestedNavigation() {
|
|
4487
|
-
return this.navigationId !== 0;
|
|
4488
|
-
}
|
|
4489
4489
|
complete() {
|
|
4490
4490
|
this.transitions?.complete();
|
|
4491
4491
|
}
|
|
@@ -4821,9 +4821,9 @@ class NavigationTransitions {
|
|
|
4821
4821
|
t.resolve(false);
|
|
4822
4822
|
}
|
|
4823
4823
|
}
|
|
4824
|
-
NavigationTransitions.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
4825
|
-
NavigationTransitions.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
4826
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
4824
|
+
NavigationTransitions.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: NavigationTransitions, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4825
|
+
NavigationTransitions.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: NavigationTransitions, providedIn: 'root' });
|
|
4826
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: NavigationTransitions, decorators: [{
|
|
4827
4827
|
type: Injectable,
|
|
4828
4828
|
args: [{ providedIn: 'root' }]
|
|
4829
4829
|
}], ctorParameters: function () { return []; } });
|
|
@@ -4882,9 +4882,9 @@ class TitleStrategy {
|
|
|
4882
4882
|
return snapshot.data[RouteTitleKey];
|
|
4883
4883
|
}
|
|
4884
4884
|
}
|
|
4885
|
-
TitleStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
4886
|
-
TitleStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
4887
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
4885
|
+
TitleStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: TitleStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4886
|
+
TitleStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: TitleStrategy, providedIn: 'root', useFactory: () => inject(DefaultTitleStrategy) });
|
|
4887
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: TitleStrategy, decorators: [{
|
|
4888
4888
|
type: Injectable,
|
|
4889
4889
|
args: [{ providedIn: 'root', useFactory: () => inject(DefaultTitleStrategy) }]
|
|
4890
4890
|
}] });
|
|
@@ -4908,9 +4908,9 @@ class DefaultTitleStrategy extends TitleStrategy {
|
|
|
4908
4908
|
}
|
|
4909
4909
|
}
|
|
4910
4910
|
}
|
|
4911
|
-
DefaultTitleStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
4912
|
-
DefaultTitleStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
4913
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
4911
|
+
DefaultTitleStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: DefaultTitleStrategy, deps: [{ token: i1.Title }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4912
|
+
DefaultTitleStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: DefaultTitleStrategy, providedIn: 'root' });
|
|
4913
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: DefaultTitleStrategy, decorators: [{
|
|
4914
4914
|
type: Injectable,
|
|
4915
4915
|
args: [{ providedIn: 'root' }]
|
|
4916
4916
|
}], ctorParameters: function () { return [{ type: i1.Title }]; } });
|
|
@@ -4931,9 +4931,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.1",
|
|
|
4931
4931
|
*/
|
|
4932
4932
|
class RouteReuseStrategy {
|
|
4933
4933
|
}
|
|
4934
|
-
RouteReuseStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
4935
|
-
RouteReuseStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
4936
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
4934
|
+
RouteReuseStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: RouteReuseStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4935
|
+
RouteReuseStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: RouteReuseStrategy, providedIn: 'root', useFactory: () => inject(DefaultRouteReuseStrategy) });
|
|
4936
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: RouteReuseStrategy, decorators: [{
|
|
4937
4937
|
type: Injectable,
|
|
4938
4938
|
args: [{ providedIn: 'root', useFactory: () => inject(DefaultRouteReuseStrategy) }]
|
|
4939
4939
|
}] });
|
|
@@ -4985,9 +4985,9 @@ class BaseRouteReuseStrategy {
|
|
|
4985
4985
|
}
|
|
4986
4986
|
class DefaultRouteReuseStrategy extends BaseRouteReuseStrategy {
|
|
4987
4987
|
}
|
|
4988
|
-
DefaultRouteReuseStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
4989
|
-
DefaultRouteReuseStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
4990
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
4988
|
+
DefaultRouteReuseStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: DefaultRouteReuseStrategy, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
4989
|
+
DefaultRouteReuseStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: DefaultRouteReuseStrategy, providedIn: 'root' });
|
|
4990
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: DefaultRouteReuseStrategy, decorators: [{
|
|
4991
4991
|
type: Injectable,
|
|
4992
4992
|
args: [{ providedIn: 'root' }]
|
|
4993
4993
|
}] });
|
|
@@ -5026,9 +5026,9 @@ const ROUTER_CONFIGURATION = new InjectionToken(NG_DEV_MODE$3 ? 'router config'
|
|
|
5026
5026
|
*/
|
|
5027
5027
|
class UrlHandlingStrategy {
|
|
5028
5028
|
}
|
|
5029
|
-
UrlHandlingStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
5030
|
-
UrlHandlingStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
5031
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
5029
|
+
UrlHandlingStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: UrlHandlingStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5030
|
+
UrlHandlingStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: UrlHandlingStrategy, providedIn: 'root', useFactory: () => inject(DefaultUrlHandlingStrategy) });
|
|
5031
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: UrlHandlingStrategy, decorators: [{
|
|
5032
5032
|
type: Injectable,
|
|
5033
5033
|
args: [{ providedIn: 'root', useFactory: () => inject(DefaultUrlHandlingStrategy) }]
|
|
5034
5034
|
}] });
|
|
@@ -5046,9 +5046,9 @@ class DefaultUrlHandlingStrategy {
|
|
|
5046
5046
|
return newUrlPart;
|
|
5047
5047
|
}
|
|
5048
5048
|
}
|
|
5049
|
-
DefaultUrlHandlingStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
5050
|
-
DefaultUrlHandlingStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
5051
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
5049
|
+
DefaultUrlHandlingStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: DefaultUrlHandlingStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5050
|
+
DefaultUrlHandlingStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: DefaultUrlHandlingStrategy, providedIn: 'root' });
|
|
5051
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: DefaultUrlHandlingStrategy, decorators: [{
|
|
5052
5052
|
type: Injectable,
|
|
5053
5053
|
args: [{ providedIn: 'root' }]
|
|
5054
5054
|
}] });
|
|
@@ -5087,38 +5087,6 @@ const subsetMatchOptions = {
|
|
|
5087
5087
|
matrixParams: 'ignored',
|
|
5088
5088
|
queryParams: 'subset'
|
|
5089
5089
|
};
|
|
5090
|
-
function assignExtraOptionsToRouter(opts, router) {
|
|
5091
|
-
if (opts.errorHandler) {
|
|
5092
|
-
router.errorHandler = opts.errorHandler;
|
|
5093
|
-
}
|
|
5094
|
-
if (opts.malformedUriErrorHandler) {
|
|
5095
|
-
router.malformedUriErrorHandler = opts.malformedUriErrorHandler;
|
|
5096
|
-
}
|
|
5097
|
-
if (opts.onSameUrlNavigation) {
|
|
5098
|
-
router.onSameUrlNavigation = opts.onSameUrlNavigation;
|
|
5099
|
-
}
|
|
5100
|
-
if (opts.paramsInheritanceStrategy) {
|
|
5101
|
-
router.paramsInheritanceStrategy = opts.paramsInheritanceStrategy;
|
|
5102
|
-
}
|
|
5103
|
-
if (opts.urlUpdateStrategy) {
|
|
5104
|
-
router.urlUpdateStrategy = opts.urlUpdateStrategy;
|
|
5105
|
-
}
|
|
5106
|
-
if (opts.canceledNavigationResolution) {
|
|
5107
|
-
router.canceledNavigationResolution = opts.canceledNavigationResolution;
|
|
5108
|
-
}
|
|
5109
|
-
}
|
|
5110
|
-
function setupRouter() {
|
|
5111
|
-
const urlSerializer = inject(UrlSerializer);
|
|
5112
|
-
const contexts = inject(ChildrenOutletContexts);
|
|
5113
|
-
const location = inject(Location);
|
|
5114
|
-
const injector = inject(Injector);
|
|
5115
|
-
const compiler = inject(Compiler);
|
|
5116
|
-
const config = inject(ROUTES, { optional: true }) ?? [];
|
|
5117
|
-
const opts = inject(ROUTER_CONFIGURATION, { optional: true }) ?? {};
|
|
5118
|
-
const router = new Router(null, urlSerializer, contexts, location, injector, compiler, flatten(config));
|
|
5119
|
-
assignExtraOptionsToRouter(opts, router);
|
|
5120
|
-
return router;
|
|
5121
|
-
}
|
|
5122
5090
|
/**
|
|
5123
5091
|
* @description
|
|
5124
5092
|
*
|
|
@@ -5132,18 +5100,30 @@ function setupRouter() {
|
|
|
5132
5100
|
* @publicApi
|
|
5133
5101
|
*/
|
|
5134
5102
|
class Router {
|
|
5103
|
+
// TODO(b/260747083): This should not exist and navigationId should be private in
|
|
5104
|
+
// `NavigationTransitions`
|
|
5105
|
+
get navigationId() {
|
|
5106
|
+
return this.navigationTransitions.navigationId;
|
|
5107
|
+
}
|
|
5135
5108
|
/**
|
|
5136
|
-
*
|
|
5109
|
+
* The ɵrouterPageId of whatever page is currently active in the browser history. This is
|
|
5110
|
+
* important for computing the target page id for new navigations because we need to ensure each
|
|
5111
|
+
* page id in the browser history is 1 more than the previous entry.
|
|
5137
5112
|
*/
|
|
5138
|
-
|
|
5139
|
-
|
|
5140
|
-
|
|
5141
|
-
|
|
5142
|
-
|
|
5143
|
-
|
|
5144
|
-
|
|
5145
|
-
|
|
5146
|
-
|
|
5113
|
+
get browserPageId() {
|
|
5114
|
+
return this.location.getState()?.ɵrouterPageId;
|
|
5115
|
+
}
|
|
5116
|
+
/**
|
|
5117
|
+
* An event stream for routing events.
|
|
5118
|
+
*/
|
|
5119
|
+
get events() {
|
|
5120
|
+
// TODO(atscott): This _should_ be events.asObservable(). However, this change requires internal
|
|
5121
|
+
// cleanup: tests are doing `(route.events as Subject<Event>).next(...)`. This isn't
|
|
5122
|
+
// allowed/supported but we still have to fix these or file bugs against the teams before making
|
|
5123
|
+
// the change.
|
|
5124
|
+
return this.navigationTransitions.events;
|
|
5125
|
+
}
|
|
5126
|
+
constructor() {
|
|
5147
5127
|
this.disposed = false;
|
|
5148
5128
|
/**
|
|
5149
5129
|
* The id of the currently active page in the router.
|
|
@@ -5154,13 +5134,15 @@ class Router {
|
|
|
5154
5134
|
* page.
|
|
5155
5135
|
*/
|
|
5156
5136
|
this.currentPageId = 0;
|
|
5137
|
+
this.console = inject(ɵConsole);
|
|
5157
5138
|
this.isNgZoneEnabled = false;
|
|
5139
|
+
this.options = inject(ROUTER_CONFIGURATION, { optional: true }) || {};
|
|
5158
5140
|
/**
|
|
5159
5141
|
* A handler for navigation errors in this NgModule.
|
|
5160
5142
|
*
|
|
5161
5143
|
* @deprecated Subscribe to the `Router` events and watch for `NavigationError` instead.
|
|
5162
5144
|
*/
|
|
5163
|
-
this.errorHandler = defaultErrorHandler;
|
|
5145
|
+
this.errorHandler = this.options.errorHandler || defaultErrorHandler;
|
|
5164
5146
|
/**
|
|
5165
5147
|
* A handler for errors thrown by `Router.parseUrl(url)`
|
|
5166
5148
|
* when `url` contains an invalid character.
|
|
@@ -5171,7 +5153,7 @@ class Router {
|
|
|
5171
5153
|
* `RouterModule.forRoot(routes, {malformedUriErrorHandler: myHandler})`
|
|
5172
5154
|
* @see `RouterModule`
|
|
5173
5155
|
*/
|
|
5174
|
-
this.malformedUriErrorHandler = defaultMalformedUriErrorHandler;
|
|
5156
|
+
this.malformedUriErrorHandler = this.options.malformedUriErrorHandler || defaultMalformedUriErrorHandler;
|
|
5175
5157
|
/**
|
|
5176
5158
|
* True if at least one navigation event has occurred,
|
|
5177
5159
|
* false otherwise.
|
|
@@ -5216,7 +5198,7 @@ class Router {
|
|
|
5216
5198
|
* @see `provideRouter`
|
|
5217
5199
|
* @see `RouterModule`
|
|
5218
5200
|
*/
|
|
5219
|
-
this.onSameUrlNavigation = 'ignore';
|
|
5201
|
+
this.onSameUrlNavigation = this.options.onSameUrlNavigation || 'ignore';
|
|
5220
5202
|
/**
|
|
5221
5203
|
* How to merge parameters, data, resolved data, and title from parent to child
|
|
5222
5204
|
* routes. One of:
|
|
@@ -5231,7 +5213,7 @@ class Router {
|
|
|
5231
5213
|
* @see `provideRouter`
|
|
5232
5214
|
* @see `RouterModule`
|
|
5233
5215
|
*/
|
|
5234
|
-
this.paramsInheritanceStrategy = 'emptyOnly';
|
|
5216
|
+
this.paramsInheritanceStrategy = this.options.paramsInheritanceStrategy || 'emptyOnly';
|
|
5235
5217
|
/**
|
|
5236
5218
|
* Determines when the router updates the browser URL.
|
|
5237
5219
|
* By default (`"deferred"`), updates the browser URL after navigation has finished.
|
|
@@ -5244,7 +5226,7 @@ class Router {
|
|
|
5244
5226
|
* @see `provideRouter`
|
|
5245
5227
|
* @see `RouterModule`
|
|
5246
5228
|
*/
|
|
5247
|
-
this.urlUpdateStrategy = 'deferred';
|
|
5229
|
+
this.urlUpdateStrategy = this.options.urlUpdateStrategy || 'deferred';
|
|
5248
5230
|
/**
|
|
5249
5231
|
* Configures how the Router attempts to restore state when a navigation is cancelled.
|
|
5250
5232
|
*
|
|
@@ -5271,12 +5253,15 @@ class Router {
|
|
|
5271
5253
|
* @see `provideRouter`
|
|
5272
5254
|
* @see `RouterModule`
|
|
5273
5255
|
*/
|
|
5274
|
-
this.canceledNavigationResolution = 'replace';
|
|
5256
|
+
this.canceledNavigationResolution = this.options.canceledNavigationResolution || 'replace';
|
|
5257
|
+
this.config = flatten(inject(ROUTES, { optional: true }) ?? []);
|
|
5275
5258
|
this.navigationTransitions = inject(NavigationTransitions);
|
|
5276
|
-
this.
|
|
5277
|
-
|
|
5278
|
-
|
|
5279
|
-
this.
|
|
5259
|
+
this.urlSerializer = inject(UrlSerializer);
|
|
5260
|
+
this.location = inject(Location);
|
|
5261
|
+
/** @internal */
|
|
5262
|
+
this.rootComponentType = null;
|
|
5263
|
+
this.isNgZoneEnabled = inject(NgZone) instanceof NgZone && NgZone.isInAngularZone();
|
|
5264
|
+
this.resetConfig(this.config);
|
|
5280
5265
|
this.currentUrlTree = new UrlTree();
|
|
5281
5266
|
this.rawUrlTree = this.currentUrlTree;
|
|
5282
5267
|
this.browserUrlTree = this.currentUrlTree;
|
|
@@ -5288,33 +5273,7 @@ class Router {
|
|
|
5288
5273
|
this.console.warn(`Unhandled Navigation Error: ${e}`);
|
|
5289
5274
|
});
|
|
5290
5275
|
}
|
|
5291
|
-
|
|
5292
|
-
// `NavigationTransitions`
|
|
5293
|
-
get navigationId() {
|
|
5294
|
-
return this.navigationTransitions.navigationId;
|
|
5295
|
-
}
|
|
5296
|
-
/**
|
|
5297
|
-
* The ɵrouterPageId of whatever page is currently active in the browser history. This is
|
|
5298
|
-
* important for computing the target page id for new navigations because we need to ensure each
|
|
5299
|
-
* page id in the browser history is 1 more than the previous entry.
|
|
5300
|
-
*/
|
|
5301
|
-
get browserPageId() {
|
|
5302
|
-
return this.location.getState()?.ɵrouterPageId;
|
|
5303
|
-
}
|
|
5304
|
-
/**
|
|
5305
|
-
* An event stream for routing events.
|
|
5306
|
-
*/
|
|
5307
|
-
get events() {
|
|
5308
|
-
// TODO(atscott): This _should_ be events.asObservable(). However, this change requires internal
|
|
5309
|
-
// cleanup: tests are doing `(route.events as Subject<Event>).next(...)`. This isn't
|
|
5310
|
-
// allowed/supported but we still have to fix these or file bugs against the teams before making
|
|
5311
|
-
// the change.
|
|
5312
|
-
return this.navigationTransitions.events;
|
|
5313
|
-
}
|
|
5314
|
-
/**
|
|
5315
|
-
* @internal
|
|
5316
|
-
* TODO: this should be removed once the constructor of the router made internal
|
|
5317
|
-
*/
|
|
5276
|
+
/** @internal */
|
|
5318
5277
|
resetRootComponentType(rootComponentType) {
|
|
5319
5278
|
this.rootComponentType = rootComponentType;
|
|
5320
5279
|
// TODO: vsavkin router 4.0 should make the root component set to null
|
|
@@ -5741,15 +5700,12 @@ class Router {
|
|
|
5741
5700
|
return { navigationId };
|
|
5742
5701
|
}
|
|
5743
5702
|
}
|
|
5744
|
-
Router.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
5745
|
-
Router.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
5746
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
5703
|
+
Router.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: Router, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5704
|
+
Router.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: Router, providedIn: 'root' });
|
|
5705
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: Router, decorators: [{
|
|
5747
5706
|
type: Injectable,
|
|
5748
|
-
args: [{
|
|
5749
|
-
|
|
5750
|
-
useFactory: setupRouter,
|
|
5751
|
-
}]
|
|
5752
|
-
}], ctorParameters: function () { return [{ type: i0.Type }, { type: UrlSerializer }, { type: ChildrenOutletContexts }, { type: i3.Location }, { type: i0.Injector }, { type: i0.Compiler }, { type: undefined }]; } });
|
|
5707
|
+
args: [{ providedIn: 'root' }]
|
|
5708
|
+
}], ctorParameters: function () { return []; } });
|
|
5753
5709
|
function validateCommands(commands) {
|
|
5754
5710
|
for (let i = 0; i < commands.length; i++) {
|
|
5755
5711
|
const cmd = commands[i];
|
|
@@ -6039,9 +5995,9 @@ class RouterLink {
|
|
|
6039
5995
|
});
|
|
6040
5996
|
}
|
|
6041
5997
|
}
|
|
6042
|
-
RouterLink.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
6043
|
-
RouterLink.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-next.
|
|
6044
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
5998
|
+
RouterLink.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.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 });
|
|
5999
|
+
RouterLink.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-next.2", type: RouterLink, isStandalone: true, selector: "[routerLink]", inputs: { target: "target", queryParams: "queryParams", fragment: "fragment", queryParamsHandling: "queryParamsHandling", state: "state", relativeTo: "relativeTo", preserveFragment: "preserveFragment", skipLocationChange: "skipLocationChange", replaceUrl: "replaceUrl", 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 });
|
|
6000
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: RouterLink, decorators: [{
|
|
6045
6001
|
type: Directive,
|
|
6046
6002
|
args: [{
|
|
6047
6003
|
selector: '[routerLink]',
|
|
@@ -6266,9 +6222,9 @@ class RouterLinkActive {
|
|
|
6266
6222
|
return this.link && isActiveCheckFn(this.link) || this.links.some(isActiveCheckFn);
|
|
6267
6223
|
}
|
|
6268
6224
|
}
|
|
6269
|
-
RouterLinkActive.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
6270
|
-
RouterLinkActive.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.0-next.
|
|
6271
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
6225
|
+
RouterLinkActive.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.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 });
|
|
6226
|
+
RouterLinkActive.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.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 });
|
|
6227
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: RouterLinkActive, decorators: [{
|
|
6272
6228
|
type: Directive,
|
|
6273
6229
|
args: [{
|
|
6274
6230
|
selector: '[routerLinkActive]',
|
|
@@ -6328,9 +6284,9 @@ class PreloadAllModules {
|
|
|
6328
6284
|
return fn().pipe(catchError(() => of(null)));
|
|
6329
6285
|
}
|
|
6330
6286
|
}
|
|
6331
|
-
PreloadAllModules.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
6332
|
-
PreloadAllModules.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
6333
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
6287
|
+
PreloadAllModules.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: PreloadAllModules, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6288
|
+
PreloadAllModules.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: PreloadAllModules, providedIn: 'root' });
|
|
6289
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: PreloadAllModules, decorators: [{
|
|
6334
6290
|
type: Injectable,
|
|
6335
6291
|
args: [{ providedIn: 'root' }]
|
|
6336
6292
|
}] });
|
|
@@ -6348,9 +6304,9 @@ class NoPreloading {
|
|
|
6348
6304
|
return of(null);
|
|
6349
6305
|
}
|
|
6350
6306
|
}
|
|
6351
|
-
NoPreloading.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
6352
|
-
NoPreloading.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
6353
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
6307
|
+
NoPreloading.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: NoPreloading, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6308
|
+
NoPreloading.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: NoPreloading, providedIn: 'root' });
|
|
6309
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: NoPreloading, decorators: [{
|
|
6354
6310
|
type: Injectable,
|
|
6355
6311
|
args: [{ providedIn: 'root' }]
|
|
6356
6312
|
}] });
|
|
@@ -6444,9 +6400,9 @@ class RouterPreloader {
|
|
|
6444
6400
|
});
|
|
6445
6401
|
}
|
|
6446
6402
|
}
|
|
6447
|
-
RouterPreloader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
6448
|
-
RouterPreloader.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
6449
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
6403
|
+
RouterPreloader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: RouterPreloader, deps: [{ token: Router }, { token: i0.Compiler }, { token: i0.EnvironmentInjector }, { token: PreloadingStrategy }, { token: RouterConfigLoader }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6404
|
+
RouterPreloader.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: RouterPreloader, providedIn: 'root' });
|
|
6405
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: RouterPreloader, decorators: [{
|
|
6450
6406
|
type: Injectable,
|
|
6451
6407
|
args: [{ providedIn: 'root' }]
|
|
6452
6408
|
}], ctorParameters: function () { return [{ type: Router }, { type: i0.Compiler }, { type: i0.EnvironmentInjector }, { type: PreloadingStrategy }, { type: RouterConfigLoader }]; } });
|
|
@@ -6541,9 +6497,9 @@ class RouterScroller {
|
|
|
6541
6497
|
this.scrollEventsSubscription?.unsubscribe();
|
|
6542
6498
|
}
|
|
6543
6499
|
}
|
|
6544
|
-
RouterScroller.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
6545
|
-
RouterScroller.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
6546
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
6500
|
+
RouterScroller.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: RouterScroller, deps: "invalid", target: i0.ɵɵFactoryTarget.Injectable });
|
|
6501
|
+
RouterScroller.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: RouterScroller });
|
|
6502
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: RouterScroller, decorators: [{
|
|
6547
6503
|
type: Injectable
|
|
6548
6504
|
}], ctorParameters: function () { return [{ type: UrlSerializer }, { type: NavigationTransitions }, { type: i3.ViewportScroller }, { type: i0.NgZone }, { type: undefined }]; } });
|
|
6549
6505
|
|
|
@@ -6598,10 +6554,6 @@ function provideRouter(routes, ...features) {
|
|
|
6598
6554
|
{ provide: ActivatedRoute, useFactory: rootRoute, deps: [Router] },
|
|
6599
6555
|
{ provide: APP_BOOTSTRAP_LISTENER, multi: true, useFactory: getBootstrapListener },
|
|
6600
6556
|
features.map(feature => feature.ɵproviders),
|
|
6601
|
-
// TODO: All options used by the `assignExtraOptionsToRouter` factory need to be reviewed for
|
|
6602
|
-
// how we want them to be configured. This API doesn't currently have a way to configure them
|
|
6603
|
-
// and we should decide what the _best_ way to do that is rather than just sticking with the
|
|
6604
|
-
// status quo of how it's done today.
|
|
6605
6557
|
]);
|
|
6606
6558
|
}
|
|
6607
6559
|
function rootRoute(router) {
|
|
@@ -6989,7 +6941,7 @@ const ROUTER_FORROOT_GUARD = new InjectionToken(NG_DEV_MODE ? 'router duplicate
|
|
|
6989
6941
|
const ROUTER_PROVIDERS = [
|
|
6990
6942
|
Location,
|
|
6991
6943
|
{ provide: UrlSerializer, useClass: DefaultUrlSerializer },
|
|
6992
|
-
|
|
6944
|
+
Router,
|
|
6993
6945
|
ChildrenOutletContexts,
|
|
6994
6946
|
{ provide: ActivatedRoute, useFactory: rootRoute, deps: [Router] },
|
|
6995
6947
|
RouterConfigLoader,
|
|
@@ -7086,10 +7038,10 @@ class RouterModule {
|
|
|
7086
7038
|
};
|
|
7087
7039
|
}
|
|
7088
7040
|
}
|
|
7089
|
-
RouterModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
7090
|
-
RouterModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0-next.
|
|
7091
|
-
RouterModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
7092
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.
|
|
7041
|
+
RouterModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: RouterModule, deps: [{ token: ROUTER_FORROOT_GUARD, optional: true }], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7042
|
+
RouterModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0-next.2", ngImport: i0, type: RouterModule, imports: [RouterOutlet, RouterLink, RouterLinkActive, ɵEmptyOutletComponent], exports: [RouterOutlet, RouterLink, RouterLinkActive, ɵEmptyOutletComponent] });
|
|
7043
|
+
RouterModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: RouterModule, imports: [ɵEmptyOutletComponent] });
|
|
7044
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: RouterModule, decorators: [{
|
|
7093
7045
|
type: NgModule,
|
|
7094
7046
|
args: [{
|
|
7095
7047
|
imports: ROUTER_DIRECTIVES,
|
|
@@ -7175,7 +7127,7 @@ function provideRouterInitializer() {
|
|
|
7175
7127
|
/**
|
|
7176
7128
|
* @publicApi
|
|
7177
7129
|
*/
|
|
7178
|
-
const VERSION = new Version('15.1.0-next.
|
|
7130
|
+
const VERSION = new Version('15.1.0-next.2');
|
|
7179
7131
|
|
|
7180
7132
|
/**
|
|
7181
7133
|
* @license
|
|
@@ -7214,5 +7166,5 @@ const VERSION = new Version('15.1.0-next.1');
|
|
|
7214
7166
|
* Generated bundle index. Do not edit.
|
|
7215
7167
|
*/
|
|
7216
7168
|
|
|
7217
|
-
export { ActivatedRoute, ActivatedRouteSnapshot, ActivationEnd, ActivationStart, BaseRouteReuseStrategy, ChildActivationEnd, ChildActivationStart, ChildrenOutletContexts, DefaultTitleStrategy, DefaultUrlSerializer, GuardsCheckEnd, GuardsCheckStart, NavigationCancel, NavigationEnd, NavigationError, NavigationSkipped, NavigationStart, NoPreloading, OutletContext, PRIMARY_OUTLET, PreloadAllModules, PreloadingStrategy, ROUTER_CONFIGURATION, ROUTER_INITIALIZER, ROUTES, ResolveEnd, ResolveStart, RouteConfigLoadEnd, RouteConfigLoadStart, RouteReuseStrategy, Router, RouterEvent, RouterLink, RouterLinkActive, RouterLink as RouterLinkWithHref, RouterModule, RouterOutlet, RouterPreloader, RouterState, RouterStateSnapshot, RoutesRecognized, Scroll, TitleStrategy, UrlHandlingStrategy, UrlSegment, UrlSegmentGroup, UrlSerializer, UrlTree, VERSION, convertToParamMap, createUrlTreeFromSnapshot, defaultUrlMatcher, provideRouter, provideRoutes, withDebugTracing, withDisabledInitialNavigation, withEnabledBlockingInitialNavigation, withInMemoryScrolling, withPreloading, withRouterConfig, ɵEmptyOutletComponent, ROUTER_PROVIDERS as ɵROUTER_PROVIDERS,
|
|
7169
|
+
export { ActivatedRoute, ActivatedRouteSnapshot, ActivationEnd, ActivationStart, BaseRouteReuseStrategy, ChildActivationEnd, ChildActivationStart, ChildrenOutletContexts, DefaultTitleStrategy, DefaultUrlSerializer, GuardsCheckEnd, GuardsCheckStart, NavigationCancel, NavigationEnd, NavigationError, NavigationSkipped, NavigationStart, NoPreloading, OutletContext, PRIMARY_OUTLET, PreloadAllModules, PreloadingStrategy, ROUTER_CONFIGURATION, ROUTER_INITIALIZER, ROUTES, ResolveEnd, ResolveStart, RouteConfigLoadEnd, RouteConfigLoadStart, RouteReuseStrategy, Router, RouterEvent, RouterLink, RouterLinkActive, RouterLink as RouterLinkWithHref, RouterModule, RouterOutlet, RouterPreloader, RouterState, RouterStateSnapshot, RoutesRecognized, Scroll, TitleStrategy, UrlHandlingStrategy, UrlSegment, UrlSegmentGroup, UrlSerializer, UrlTree, VERSION, convertToParamMap, createUrlTreeFromSnapshot, defaultUrlMatcher, provideRouter, provideRoutes, withDebugTracing, withDisabledInitialNavigation, withEnabledBlockingInitialNavigation, withInMemoryScrolling, withPreloading, withRouterConfig, ɵEmptyOutletComponent, ROUTER_PROVIDERS as ɵROUTER_PROVIDERS, flatten as ɵflatten, withPreloading as ɵwithPreloading };
|
|
7218
7170
|
//# sourceMappingURL=router.mjs.map
|