@angular/router 10.1.0-rc.0 → 10.1.3

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.
@@ -14,5 +14,5 @@ import { Version } from '@angular/core';
14
14
  /**
15
15
  * @publicApi
16
16
  */
17
- export const VERSION = new Version('10.1.0-rc.0');
17
+ export const VERSION = new Version('10.1.3');
18
18
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL3JvdXRlci9zcmMvdmVyc2lvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7QUFFSDs7OztHQUlHO0FBRUgsT0FBTyxFQUFDLE9BQU8sRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUV0Qzs7R0FFRztBQUNILE1BQU0sQ0FBQyxNQUFNLE9BQU8sR0FBRyxJQUFJLE9BQU8sQ0FBQyxtQkFBbUIsQ0FBQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAbGljZW5zZVxuICogQ29weXJpZ2h0IEdvb2dsZSBMTEMgQWxsIFJpZ2h0cyBSZXNlcnZlZC5cbiAqXG4gKiBVc2Ugb2YgdGhpcyBzb3VyY2UgY29kZSBpcyBnb3Zlcm5lZCBieSBhbiBNSVQtc3R5bGUgbGljZW5zZSB0aGF0IGNhbiBiZVxuICogZm91bmQgaW4gdGhlIExJQ0VOU0UgZmlsZSBhdCBodHRwczovL2FuZ3VsYXIuaW8vbGljZW5zZVxuICovXG5cbi8qKlxuICogQG1vZHVsZVxuICogQGRlc2NyaXB0aW9uXG4gKiBFbnRyeSBwb2ludCBmb3IgYWxsIHB1YmxpYyBBUElzIG9mIHRoZSBjb21tb24gcGFja2FnZS5cbiAqL1xuXG5pbXBvcnQge1ZlcnNpb259IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG4vKipcbiAqIEBwdWJsaWNBcGlcbiAqL1xuZXhwb3J0IGNvbnN0IFZFUlNJT04gPSBuZXcgVmVyc2lvbignMC4wLjAtUExBQ0VIT0xERVInKTtcbiJdfQ==
@@ -1,13 +1,13 @@
1
1
  /**
2
- * @license Angular v10.1.0-rc.0
2
+ * @license Angular v10.1.3
3
3
  * (c) 2010-2020 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
6
6
 
7
7
  import { Location, LocationStrategy, ViewportScroller, PlatformLocation, APP_BASE_HREF, HashLocationStrategy, PathLocationStrategy, ɵgetDOM, LOCATION_INITIALIZED } from '@angular/common';
8
- import { ɵisObservable, ɵisPromise, isDevMode, NgModuleRef, Component, InjectionToken, NgModuleFactory, ɵConsole, NgZone, Injectable, Type, Injector, NgModuleFactoryLoader, Compiler, Directive, Attribute, Renderer2, ElementRef, Input, HostListener, HostBinding, ChangeDetectorRef, Optional, ContentChildren, EventEmitter, ViewContainerRef, ComponentFactoryResolver, Output, SystemJsNgModuleLoader, NgProbeToken, ANALYZE_FOR_ENTRY_COMPONENTS, SkipSelf, Inject, APP_INITIALIZER, APP_BOOTSTRAP_LISTENER, NgModule, ApplicationRef, Version } from '@angular/core';
8
+ import { ɵisObservable, ɵisPromise, NgModuleRef, Component, InjectionToken, NgModuleFactory, ɵConsole, NgZone, isDevMode, Injectable, Type, Injector, NgModuleFactoryLoader, Compiler, Directive, Attribute, Renderer2, ElementRef, Input, HostListener, HostBinding, ChangeDetectorRef, Optional, ContentChildren, EventEmitter, ViewContainerRef, ComponentFactoryResolver, Output, SystemJsNgModuleLoader, NgProbeToken, ANALYZE_FOR_ENTRY_COMPONENTS, SkipSelf, Inject, APP_INITIALIZER, APP_BOOTSTRAP_LISTENER, NgModule, ApplicationRef, Version } from '@angular/core';
9
9
  import { of, from, BehaviorSubject, combineLatest, Observable, EmptyError, defer, EMPTY, Subject } from 'rxjs';
10
- import { map, concatAll, last as last$1, switchMap, take, startWith, scan, filter, catchError, first, mergeMap, tap, concatMap, takeLast, finalize, mergeAll } from 'rxjs/operators';
10
+ import { map, concatAll, last as last$1, switchMap, take, startWith, scan, filter, catchError, concatMap, first, mergeMap, tap, takeLast, finalize, mergeAll } from 'rxjs/operators';
11
11
 
12
12
  /**
13
13
  * @license
@@ -2116,9 +2116,6 @@ class ActivateRoutes {
2116
2116
  // Otherwise it will get activated from its `ngOnInit` when instantiated
2117
2117
  context.outlet.activateWith(future, cmpFactoryResolver);
2118
2118
  }
2119
- else if (isDevMode() && console && console.warn) {
2120
- console.warn(`A router outlet has not been instantiated during routes activation. URL Segment: '${future.snapshot._urlSegment}'`);
2121
- }
2122
2119
  this.activateChildRoutes(futureNode, null, context.children);
2123
2120
  }
2124
2121
  }
@@ -2332,7 +2329,7 @@ class ApplyRedirects {
2332
2329
  return waitForMap(segmentGroup.children, (childOutlet, child) => this.expandSegmentGroup(ngModule, routes, child, childOutlet));
2333
2330
  }
2334
2331
  expandSegment(ngModule, segmentGroup, routes, segments, outlet, allowRedirects) {
2335
- return of(...routes).pipe(map((r) => {
2332
+ return of(...routes).pipe(concatMap((r) => {
2336
2333
  const expanded$ = this.expandSegmentAgainstRoute(ngModule, segmentGroup, routes, r, segments, outlet, allowRedirects);
2337
2334
  return expanded$.pipe(catchError((e) => {
2338
2335
  if (e instanceof NoMatch) {
@@ -2342,7 +2339,7 @@ class ApplyRedirects {
2342
2339
  }
2343
2340
  throw e;
2344
2341
  }));
2345
- }), concatAll(), first((s) => !!s), catchError((e, _) => {
2342
+ }), first((s) => !!s), catchError((e, _) => {
2346
2343
  if (e instanceof EmptyError || e.name === 'EmptyError') {
2347
2344
  if (this.noLeftoversInUrl(segmentGroup, segments, outlet)) {
2348
2345
  return of(new UrlSegmentGroup([], {}));
@@ -2398,11 +2395,11 @@ class ApplyRedirects {
2398
2395
  matchSegmentAgainstRoute(ngModule, rawSegmentGroup, route, segments) {
2399
2396
  if (route.path === '**') {
2400
2397
  if (route.loadChildren) {
2401
- return defer(() => this.configLoader.load(ngModule.injector, route)
2398
+ return this.configLoader.load(ngModule.injector, route)
2402
2399
  .pipe(map((cfg) => {
2403
2400
  route._loadedConfig = cfg;
2404
2401
  return new UrlSegmentGroup(segments, {});
2405
- })));
2402
+ }));
2406
2403
  }
2407
2404
  return of(new UrlSegmentGroup(segments, {}));
2408
2405
  }
@@ -4696,8 +4693,8 @@ class RouterLinkWithHref {
4696
4693
  this.subscription.unsubscribe();
4697
4694
  }
4698
4695
  /** @nodoc */
4699
- onClick(button, ctrlKey, metaKey, shiftKey) {
4700
- if (button !== 0 || ctrlKey || metaKey || shiftKey) {
4696
+ onClick(button, ctrlKey, shiftKey, altKey, metaKey) {
4697
+ if (button !== 0 || ctrlKey || shiftKey || altKey || metaKey) {
4701
4698
  return true;
4702
4699
  }
4703
4700
  if (typeof this.target === 'string' && this.target != '_self') {
@@ -4745,7 +4742,8 @@ RouterLinkWithHref.propDecorators = {
4745
4742
  href: [{ type: HostBinding }],
4746
4743
  routerLink: [{ type: Input }],
4747
4744
  preserveQueryParams: [{ type: Input }],
4748
- onClick: [{ type: HostListener, args: ['click', ['$event.button', '$event.ctrlKey', '$event.metaKey', '$event.shiftKey'],] }]
4745
+ onClick: [{ type: HostListener, args: ['click',
4746
+ ['$event.button', '$event.ctrlKey', '$event.shiftKey', '$event.altKey', '$event.metaKey'],] }]
4749
4747
  };
4750
4748
  function attrBoolValue(s) {
4751
4749
  return s === '' || !!s;
@@ -5127,7 +5125,7 @@ class PreloadingStrategy {
5127
5125
  * Provides a preloading strategy that preloads all modules as quickly as possible.
5128
5126
  *
5129
5127
  * ```
5130
- * RouteModule.forRoot(ROUTES, {preloadingStrategy: PreloadAllModules})
5128
+ * RouterModule.forRoot(ROUTES, {preloadingStrategy: PreloadAllModules})
5131
5129
  * ```
5132
5130
  *
5133
5131
  * @publicApi
@@ -5671,7 +5669,7 @@ function provideRouterInitializer() {
5671
5669
  /**
5672
5670
  * @publicApi
5673
5671
  */
5674
- const VERSION = new Version('10.1.0-rc.0');
5672
+ const VERSION = new Version('10.1.3');
5675
5673
 
5676
5674
  /**
5677
5675
  * @license