@angular/router 17.1.1 → 17.1.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 +10 -8
- package/esm2022/src/directives/router_link_active.mjs +8 -5
- package/esm2022/src/directives/router_outlet.mjs +6 -6
- package/esm2022/src/navigation_canceling_error.mjs +7 -9
- package/esm2022/src/navigation_transition.mjs +3 -3
- 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 +5 -5
- 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/utils/type_guards.mjs +1 -9
- 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 +93 -96
- package/fesm2022/router.mjs.map +1 -1
- package/fesm2022/testing.mjs +11 -11
- package/fesm2022/upgrade.mjs +1 -1
- package/index.d.ts +1 -1
- 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.1.
|
|
2
|
+
* @license Angular v17.1.2
|
|
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.1.
|
|
425
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.
|
|
424
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: UrlSerializer, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
425
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: UrlSerializer, providedIn: 'root', useFactory: () => new DefaultUrlSerializer() }); }
|
|
426
426
|
}
|
|
427
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.
|
|
427
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: UrlSerializer, decorators: [{
|
|
428
428
|
type: Injectable,
|
|
429
429
|
args: [{ providedIn: 'root', useFactory: () => new DefaultUrlSerializer() }]
|
|
430
430
|
}] });
|
|
@@ -1847,10 +1847,10 @@ class ChildrenOutletContexts {
|
|
|
1847
1847
|
getContext(childName) {
|
|
1848
1848
|
return this.contexts.get(childName) || null;
|
|
1849
1849
|
}
|
|
1850
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.
|
|
1851
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.
|
|
1850
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: ChildrenOutletContexts, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1851
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: ChildrenOutletContexts, providedIn: 'root' }); }
|
|
1852
1852
|
}
|
|
1853
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.
|
|
1853
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: ChildrenOutletContexts, decorators: [{
|
|
1854
1854
|
type: Injectable,
|
|
1855
1855
|
args: [{ providedIn: 'root' }]
|
|
1856
1856
|
}] });
|
|
@@ -2562,10 +2562,10 @@ class RouterOutlet {
|
|
|
2562
2562
|
this.inputBinder?.bindActivatedRouteToOutletComponent(this);
|
|
2563
2563
|
this.activateEvents.emit(this.activated.instance);
|
|
2564
2564
|
}
|
|
2565
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.
|
|
2566
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.
|
|
2565
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: RouterOutlet, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2566
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.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 }); }
|
|
2567
2567
|
}
|
|
2568
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.
|
|
2568
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: RouterOutlet, decorators: [{
|
|
2569
2569
|
type: Directive,
|
|
2570
2570
|
args: [{
|
|
2571
2571
|
selector: 'router-outlet',
|
|
@@ -2668,10 +2668,10 @@ class RoutedComponentInputBinder {
|
|
|
2668
2668
|
});
|
|
2669
2669
|
this.outletDataSubscriptions.set(outlet, dataSubscription);
|
|
2670
2670
|
}
|
|
2671
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.
|
|
2672
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.
|
|
2671
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: RoutedComponentInputBinder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2672
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: RoutedComponentInputBinder }); }
|
|
2673
2673
|
}
|
|
2674
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.
|
|
2674
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: RoutedComponentInputBinder, decorators: [{
|
|
2675
2675
|
type: Injectable
|
|
2676
2676
|
}] });
|
|
2677
2677
|
|
|
@@ -2720,25 +2720,23 @@ function createActivatedRoute(c) {
|
|
|
2720
2720
|
const NAVIGATION_CANCELING_ERROR = 'ngNavigationCancelingError';
|
|
2721
2721
|
function redirectingNavigationError(urlSerializer, redirect) {
|
|
2722
2722
|
const { redirectTo, navigationBehaviorOptions } = isUrlTree(redirect) ? { redirectTo: redirect, navigationBehaviorOptions: undefined } : redirect;
|
|
2723
|
-
const error = navigationCancelingError(ngDevMode && `Redirecting to "${urlSerializer.serialize(redirectTo)}"`, NavigationCancellationCode.Redirect
|
|
2723
|
+
const error = navigationCancelingError(ngDevMode && `Redirecting to "${urlSerializer.serialize(redirectTo)}"`, NavigationCancellationCode.Redirect);
|
|
2724
2724
|
error.url = redirectTo;
|
|
2725
2725
|
error.navigationBehaviorOptions = navigationBehaviorOptions;
|
|
2726
2726
|
return error;
|
|
2727
2727
|
}
|
|
2728
|
-
function navigationCancelingError(message, code
|
|
2729
|
-
const error = new Error(
|
|
2728
|
+
function navigationCancelingError(message, code) {
|
|
2729
|
+
const error = new Error(`NavigationCancelingError: ${message || ''}`);
|
|
2730
2730
|
error[NAVIGATION_CANCELING_ERROR] = true;
|
|
2731
2731
|
error.cancellationCode = code;
|
|
2732
|
-
if (redirectUrl) {
|
|
2733
|
-
error.url = redirectUrl;
|
|
2734
|
-
}
|
|
2735
2732
|
return error;
|
|
2736
2733
|
}
|
|
2737
|
-
function isRedirectingNavigationCancelingError
|
|
2738
|
-
return isNavigationCancelingError
|
|
2734
|
+
function isRedirectingNavigationCancelingError(error) {
|
|
2735
|
+
return isNavigationCancelingError(error) &&
|
|
2736
|
+
isUrlTree(error.url);
|
|
2739
2737
|
}
|
|
2740
|
-
function isNavigationCancelingError
|
|
2741
|
-
return error && error[NAVIGATION_CANCELING_ERROR];
|
|
2738
|
+
function isNavigationCancelingError(error) {
|
|
2739
|
+
return !!error && error[NAVIGATION_CANCELING_ERROR];
|
|
2742
2740
|
}
|
|
2743
2741
|
|
|
2744
2742
|
/**
|
|
@@ -2751,10 +2749,10 @@ function isNavigationCancelingError$1(error) {
|
|
|
2751
2749
|
* to this `EmptyOutletComponent`.
|
|
2752
2750
|
*/
|
|
2753
2751
|
class ɵEmptyOutletComponent {
|
|
2754
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.
|
|
2755
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.
|
|
2752
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: ɵEmptyOutletComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2753
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.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"] }] }); }
|
|
2756
2754
|
}
|
|
2757
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.
|
|
2755
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: ɵEmptyOutletComponent, decorators: [{
|
|
2758
2756
|
type: Component,
|
|
2759
2757
|
args: [{
|
|
2760
2758
|
template: `<router-outlet></router-outlet>`,
|
|
@@ -3308,12 +3306,6 @@ function isCanDeactivate(guard) {
|
|
|
3308
3306
|
function isCanMatch(guard) {
|
|
3309
3307
|
return guard && isFunction(guard.canMatch);
|
|
3310
3308
|
}
|
|
3311
|
-
function isRedirectingNavigationCancelingError(error) {
|
|
3312
|
-
return isNavigationCancelingError(error) && isUrlTree(error.url);
|
|
3313
|
-
}
|
|
3314
|
-
function isNavigationCancelingError(error) {
|
|
3315
|
-
return error && error[NAVIGATION_CANCELING_ERROR];
|
|
3316
|
-
}
|
|
3317
3309
|
function isEmptyError(e) {
|
|
3318
3310
|
return e instanceof EmptyError || e?.name === 'EmptyError';
|
|
3319
3311
|
}
|
|
@@ -4180,10 +4172,10 @@ class TitleStrategy {
|
|
|
4180
4172
|
getResolvedTitleForRoute(snapshot) {
|
|
4181
4173
|
return snapshot.data[RouteTitleKey];
|
|
4182
4174
|
}
|
|
4183
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.
|
|
4184
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.
|
|
4175
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TitleStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4176
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TitleStrategy, providedIn: 'root', useFactory: () => inject(DefaultTitleStrategy) }); }
|
|
4185
4177
|
}
|
|
4186
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.
|
|
4178
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: TitleStrategy, decorators: [{
|
|
4187
4179
|
type: Injectable,
|
|
4188
4180
|
args: [{ providedIn: 'root', useFactory: () => inject(DefaultTitleStrategy) }]
|
|
4189
4181
|
}] });
|
|
@@ -4206,10 +4198,10 @@ class DefaultTitleStrategy extends TitleStrategy {
|
|
|
4206
4198
|
this.title.setTitle(title);
|
|
4207
4199
|
}
|
|
4208
4200
|
}
|
|
4209
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.
|
|
4210
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.
|
|
4201
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: DefaultTitleStrategy, deps: [{ token: i1.Title }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4202
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: DefaultTitleStrategy, providedIn: 'root' }); }
|
|
4211
4203
|
}
|
|
4212
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.
|
|
4204
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: DefaultTitleStrategy, decorators: [{
|
|
4213
4205
|
type: Injectable,
|
|
4214
4206
|
args: [{ providedIn: 'root' }]
|
|
4215
4207
|
}], ctorParameters: () => [{ type: i1.Title }] });
|
|
@@ -4234,7 +4226,7 @@ const ROUTER_CONFIGURATION = new InjectionToken((typeof ngDevMode === 'undefined
|
|
|
4234
4226
|
*
|
|
4235
4227
|
* @publicApi
|
|
4236
4228
|
*/
|
|
4237
|
-
const ROUTES = new InjectionToken('ROUTES');
|
|
4229
|
+
const ROUTES = new InjectionToken(ngDevMode ? 'ROUTES' : '');
|
|
4238
4230
|
class RouterConfigLoader {
|
|
4239
4231
|
constructor() {
|
|
4240
4232
|
this.componentLoaders = new WeakMap();
|
|
@@ -4287,10 +4279,10 @@ class RouterConfigLoader {
|
|
|
4287
4279
|
this.childrenLoaders.set(route, loader);
|
|
4288
4280
|
return loader;
|
|
4289
4281
|
}
|
|
4290
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.
|
|
4291
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.
|
|
4282
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: RouterConfigLoader, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4283
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: RouterConfigLoader, providedIn: 'root' }); }
|
|
4292
4284
|
}
|
|
4293
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.
|
|
4285
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: RouterConfigLoader, decorators: [{
|
|
4294
4286
|
type: Injectable,
|
|
4295
4287
|
args: [{ providedIn: 'root' }]
|
|
4296
4288
|
}] });
|
|
@@ -4358,10 +4350,10 @@ function maybeUnwrapDefaultExport(input) {
|
|
|
4358
4350
|
* @publicApi
|
|
4359
4351
|
*/
|
|
4360
4352
|
class UrlHandlingStrategy {
|
|
4361
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.
|
|
4362
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.
|
|
4353
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: UrlHandlingStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4354
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: UrlHandlingStrategy, providedIn: 'root', useFactory: () => inject(DefaultUrlHandlingStrategy) }); }
|
|
4363
4355
|
}
|
|
4364
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.
|
|
4356
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: UrlHandlingStrategy, decorators: [{
|
|
4365
4357
|
type: Injectable,
|
|
4366
4358
|
args: [{ providedIn: 'root', useFactory: () => inject(DefaultUrlHandlingStrategy) }]
|
|
4367
4359
|
}] });
|
|
@@ -4378,10 +4370,10 @@ class DefaultUrlHandlingStrategy {
|
|
|
4378
4370
|
merge(newUrlPart, wholeUrl) {
|
|
4379
4371
|
return newUrlPart;
|
|
4380
4372
|
}
|
|
4381
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.
|
|
4382
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.
|
|
4373
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: DefaultUrlHandlingStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4374
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: DefaultUrlHandlingStrategy, providedIn: 'root' }); }
|
|
4383
4375
|
}
|
|
4384
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.
|
|
4376
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: DefaultUrlHandlingStrategy, decorators: [{
|
|
4385
4377
|
type: Injectable,
|
|
4386
4378
|
args: [{ providedIn: 'root' }]
|
|
4387
4379
|
}] });
|
|
@@ -4731,11 +4723,11 @@ class NavigationTransitions {
|
|
|
4731
4723
|
errored = true;
|
|
4732
4724
|
/* This error type is issued during Redirect, and is handled as a
|
|
4733
4725
|
* cancellation rather than an error. */
|
|
4734
|
-
if (isNavigationCancelingError
|
|
4726
|
+
if (isNavigationCancelingError(e)) {
|
|
4735
4727
|
this.events.next(new NavigationCancel(overallTransitionState.id, this.urlSerializer.serialize(overallTransitionState.extractedUrl), e.message, e.cancellationCode));
|
|
4736
4728
|
// When redirecting, we need to delay resolving the navigation
|
|
4737
4729
|
// promise and push it to the redirect navigation
|
|
4738
|
-
if (!isRedirectingNavigationCancelingError
|
|
4730
|
+
if (!isRedirectingNavigationCancelingError(e)) {
|
|
4739
4731
|
overallTransitionState.resolve(false);
|
|
4740
4732
|
}
|
|
4741
4733
|
else {
|
|
@@ -4804,10 +4796,10 @@ class NavigationTransitions {
|
|
|
4804
4796
|
return extractedBrowserUrl.toString() !== this.currentTransition?.extractedUrl.toString() &&
|
|
4805
4797
|
!this.currentTransition?.extras.skipLocationChange;
|
|
4806
4798
|
}
|
|
4807
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.
|
|
4808
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.
|
|
4799
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: NavigationTransitions, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4800
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: NavigationTransitions, providedIn: 'root' }); }
|
|
4809
4801
|
}
|
|
4810
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.
|
|
4802
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: NavigationTransitions, decorators: [{
|
|
4811
4803
|
type: Injectable,
|
|
4812
4804
|
args: [{ providedIn: 'root' }]
|
|
4813
4805
|
}], ctorParameters: () => [] });
|
|
@@ -4823,10 +4815,10 @@ function isBrowserTriggeredNavigation(source) {
|
|
|
4823
4815
|
* @publicApi
|
|
4824
4816
|
*/
|
|
4825
4817
|
class RouteReuseStrategy {
|
|
4826
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.
|
|
4827
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.
|
|
4818
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: RouteReuseStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4819
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: RouteReuseStrategy, providedIn: 'root', useFactory: () => inject(DefaultRouteReuseStrategy) }); }
|
|
4828
4820
|
}
|
|
4829
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.
|
|
4821
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: RouteReuseStrategy, decorators: [{
|
|
4830
4822
|
type: Injectable,
|
|
4831
4823
|
args: [{ providedIn: 'root', useFactory: () => inject(DefaultRouteReuseStrategy) }]
|
|
4832
4824
|
}] });
|
|
@@ -4877,19 +4869,19 @@ class BaseRouteReuseStrategy {
|
|
|
4877
4869
|
}
|
|
4878
4870
|
}
|
|
4879
4871
|
class DefaultRouteReuseStrategy extends BaseRouteReuseStrategy {
|
|
4880
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.
|
|
4881
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.
|
|
4872
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: DefaultRouteReuseStrategy, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4873
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: DefaultRouteReuseStrategy, providedIn: 'root' }); }
|
|
4882
4874
|
}
|
|
4883
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.
|
|
4875
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: DefaultRouteReuseStrategy, decorators: [{
|
|
4884
4876
|
type: Injectable,
|
|
4885
4877
|
args: [{ providedIn: 'root' }]
|
|
4886
4878
|
}] });
|
|
4887
4879
|
|
|
4888
4880
|
class StateManager {
|
|
4889
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.
|
|
4890
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.
|
|
4881
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: StateManager, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4882
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: StateManager, providedIn: 'root', useFactory: () => inject(HistoryStateManager) }); }
|
|
4891
4883
|
}
|
|
4892
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.
|
|
4884
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: StateManager, decorators: [{
|
|
4893
4885
|
type: Injectable,
|
|
4894
4886
|
args: [{ providedIn: 'root', useFactory: () => inject(HistoryStateManager) }]
|
|
4895
4887
|
}] });
|
|
@@ -5066,10 +5058,10 @@ class HistoryStateManager extends StateManager {
|
|
|
5066
5058
|
}
|
|
5067
5059
|
return { navigationId };
|
|
5068
5060
|
}
|
|
5069
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.
|
|
5070
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.
|
|
5061
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: HistoryStateManager, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5062
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: HistoryStateManager, providedIn: 'root' }); }
|
|
5071
5063
|
}
|
|
5072
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.
|
|
5064
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: HistoryStateManager, decorators: [{
|
|
5073
5065
|
type: Injectable,
|
|
5074
5066
|
args: [{ providedIn: 'root' }]
|
|
5075
5067
|
}] });
|
|
@@ -5641,10 +5633,10 @@ class Router {
|
|
|
5641
5633
|
return Promise.reject(e);
|
|
5642
5634
|
});
|
|
5643
5635
|
}
|
|
5644
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.
|
|
5645
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.
|
|
5636
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: Router, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5637
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: Router, providedIn: 'root' }); }
|
|
5646
5638
|
}
|
|
5647
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.
|
|
5639
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: Router, decorators: [{
|
|
5648
5640
|
type: Injectable,
|
|
5649
5641
|
args: [{ providedIn: 'root' }]
|
|
5650
5642
|
}], ctorParameters: () => [] });
|
|
@@ -5846,7 +5838,8 @@ class RouterLink {
|
|
|
5846
5838
|
}
|
|
5847
5839
|
/** @nodoc */
|
|
5848
5840
|
onClick(button, ctrlKey, shiftKey, altKey, metaKey) {
|
|
5849
|
-
|
|
5841
|
+
const urlTree = this.urlTree;
|
|
5842
|
+
if (urlTree === null) {
|
|
5850
5843
|
return true;
|
|
5851
5844
|
}
|
|
5852
5845
|
if (this.isAnchorElement) {
|
|
@@ -5863,7 +5856,7 @@ class RouterLink {
|
|
|
5863
5856
|
state: this.state,
|
|
5864
5857
|
info: this.info,
|
|
5865
5858
|
};
|
|
5866
|
-
this.router.navigateByUrl(
|
|
5859
|
+
this.router.navigateByUrl(urlTree, extras);
|
|
5867
5860
|
// Return `false` for `<a>` elements to prevent default action
|
|
5868
5861
|
// and cancel the native behavior, since the navigation is handled
|
|
5869
5862
|
// by the Router.
|
|
@@ -5874,8 +5867,9 @@ class RouterLink {
|
|
|
5874
5867
|
this.subscription?.unsubscribe();
|
|
5875
5868
|
}
|
|
5876
5869
|
updateHref() {
|
|
5877
|
-
|
|
5878
|
-
|
|
5870
|
+
const urlTree = this.urlTree;
|
|
5871
|
+
this.href = urlTree !== null && this.locationStrategy ?
|
|
5872
|
+
this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(urlTree)) :
|
|
5879
5873
|
null;
|
|
5880
5874
|
const sanitizedValue = this.href === null ?
|
|
5881
5875
|
null :
|
|
@@ -5916,10 +5910,10 @@ class RouterLink {
|
|
|
5916
5910
|
preserveFragment: this.preserveFragment,
|
|
5917
5911
|
});
|
|
5918
5912
|
}
|
|
5919
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.
|
|
5920
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "17.1.
|
|
5913
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.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 }); }
|
|
5914
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "17.1.2", 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 }); }
|
|
5921
5915
|
}
|
|
5922
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.
|
|
5916
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: RouterLink, decorators: [{
|
|
5923
5917
|
type: Directive,
|
|
5924
5918
|
args: [{
|
|
5925
5919
|
selector: '[routerLink]',
|
|
@@ -6138,16 +6132,19 @@ class RouterLinkActive {
|
|
|
6138
6132
|
this.routerLinkActiveOptions :
|
|
6139
6133
|
// While the types should disallow `undefined` here, it's possible without strict inputs
|
|
6140
6134
|
(this.routerLinkActiveOptions.exact || false);
|
|
6141
|
-
return (link) =>
|
|
6135
|
+
return (link) => {
|
|
6136
|
+
const urlTree = link.urlTree;
|
|
6137
|
+
return urlTree ? router.isActive(urlTree, options) : false;
|
|
6138
|
+
};
|
|
6142
6139
|
}
|
|
6143
6140
|
hasActiveLinks() {
|
|
6144
6141
|
const isActiveCheckFn = this.isLinkActive(this.router);
|
|
6145
6142
|
return this.link && isActiveCheckFn(this.link) || this.links.some(isActiveCheckFn);
|
|
6146
6143
|
}
|
|
6147
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.
|
|
6148
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.
|
|
6144
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.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 }); }
|
|
6145
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.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 }); }
|
|
6149
6146
|
}
|
|
6150
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.
|
|
6147
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: RouterLinkActive, decorators: [{
|
|
6151
6148
|
type: Directive,
|
|
6152
6149
|
args: [{
|
|
6153
6150
|
selector: '[routerLinkActive]',
|
|
@@ -6199,10 +6196,10 @@ class PreloadAllModules {
|
|
|
6199
6196
|
preload(route, fn) {
|
|
6200
6197
|
return fn().pipe(catchError(() => of(null)));
|
|
6201
6198
|
}
|
|
6202
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.
|
|
6203
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.
|
|
6199
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: PreloadAllModules, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6200
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: PreloadAllModules, providedIn: 'root' }); }
|
|
6204
6201
|
}
|
|
6205
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.
|
|
6202
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: PreloadAllModules, decorators: [{
|
|
6206
6203
|
type: Injectable,
|
|
6207
6204
|
args: [{ providedIn: 'root' }]
|
|
6208
6205
|
}] });
|
|
@@ -6219,10 +6216,10 @@ class NoPreloading {
|
|
|
6219
6216
|
preload(route, fn) {
|
|
6220
6217
|
return of(null);
|
|
6221
6218
|
}
|
|
6222
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.
|
|
6223
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.
|
|
6219
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: NoPreloading, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6220
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: NoPreloading, providedIn: 'root' }); }
|
|
6224
6221
|
}
|
|
6225
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.
|
|
6222
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: NoPreloading, decorators: [{
|
|
6226
6223
|
type: Injectable,
|
|
6227
6224
|
args: [{ providedIn: 'root' }]
|
|
6228
6225
|
}] });
|
|
@@ -6315,10 +6312,10 @@ class RouterPreloader {
|
|
|
6315
6312
|
}
|
|
6316
6313
|
});
|
|
6317
6314
|
}
|
|
6318
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.
|
|
6319
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.
|
|
6315
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: RouterPreloader, deps: [{ token: Router }, { token: i0.Compiler }, { token: i0.EnvironmentInjector }, { token: PreloadingStrategy }, { token: RouterConfigLoader }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6316
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: RouterPreloader, providedIn: 'root' }); }
|
|
6320
6317
|
}
|
|
6321
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.
|
|
6318
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: RouterPreloader, decorators: [{
|
|
6322
6319
|
type: Injectable,
|
|
6323
6320
|
args: [{ providedIn: 'root' }]
|
|
6324
6321
|
}], ctorParameters: () => [{ type: Router }, { type: i0.Compiler }, { type: i0.EnvironmentInjector }, { type: PreloadingStrategy }, { type: RouterConfigLoader }] });
|
|
@@ -6411,10 +6408,10 @@ class RouterScroller {
|
|
|
6411
6408
|
this.routerEventsSubscription?.unsubscribe();
|
|
6412
6409
|
this.scrollEventsSubscription?.unsubscribe();
|
|
6413
6410
|
}
|
|
6414
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.
|
|
6415
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.
|
|
6411
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: RouterScroller, deps: "invalid", target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6412
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: RouterScroller }); }
|
|
6416
6413
|
}
|
|
6417
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.
|
|
6414
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: RouterScroller, decorators: [{
|
|
6418
6415
|
type: Injectable
|
|
6419
6416
|
}], ctorParameters: () => [{ type: UrlSerializer }, { type: NavigationTransitions }, { type: i3.ViewportScroller }, { type: i0.NgZone }, { type: undefined }] });
|
|
6420
6417
|
|
|
@@ -7055,11 +7052,11 @@ class RouterModule {
|
|
|
7055
7052
|
providers: [{ provide: ROUTES, multi: true, useValue: routes }],
|
|
7056
7053
|
};
|
|
7057
7054
|
}
|
|
7058
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.
|
|
7059
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.1.
|
|
7060
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.1.
|
|
7055
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: RouterModule, deps: [{ token: ROUTER_FORROOT_GUARD, optional: true }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
7056
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.1.2", ngImport: i0, type: RouterModule, imports: [RouterOutlet, RouterLink, RouterLinkActive, ɵEmptyOutletComponent], exports: [RouterOutlet, RouterLink, RouterLinkActive, ɵEmptyOutletComponent] }); }
|
|
7057
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: RouterModule }); }
|
|
7061
7058
|
}
|
|
7062
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.
|
|
7059
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: RouterModule, decorators: [{
|
|
7063
7060
|
type: NgModule,
|
|
7064
7061
|
args: [{
|
|
7065
7062
|
imports: ROUTER_DIRECTIVES,
|
|
@@ -7204,7 +7201,7 @@ function mapToResolve(provider) {
|
|
|
7204
7201
|
/**
|
|
7205
7202
|
* @publicApi
|
|
7206
7203
|
*/
|
|
7207
|
-
const VERSION = new Version('17.1.
|
|
7204
|
+
const VERSION = new Version('17.1.2');
|
|
7208
7205
|
|
|
7209
7206
|
/**
|
|
7210
7207
|
* @module
|