@angular/platform-browser 7.2.12 → 7.2.13

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.
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license Angular v7.2.12
2
+ * @license Angular v7.2.13
3
3
  * (c) 2010-2019 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
6
6
 
7
7
  import { ɵparseCookieValue, DOCUMENT, PlatformLocation, isPlatformServer, ɵPLATFORM_BROWSER_ID, CommonModule } from '@angular/common';
8
- import { ɵglobal, Injectable, Inject, InjectionToken, ApplicationInitStatus, APP_INITIALIZER, Injector, setTestabilityGetter, NgProbeToken, Optional, ApplicationRef, NgZone, getDebugNode, ViewEncapsulation, RendererStyleFlags2, PLATFORM_ID, ɵConsole, SecurityContext, ɵ_sanitizeHtml, ɵ_sanitizeStyle, ɵ_sanitizeUrl, PLATFORM_INITIALIZER, Sanitizer, createPlatformFactory, platformCore, ErrorHandler, ɵAPP_ROOT, RendererFactory2, Testability, APP_ID, NgModule, ApplicationModule, SkipSelf, inject, defineInjectable, Version } from '@angular/core';
8
+ import { ɵglobal, Injectable, Inject, InjectionToken, ApplicationInitStatus, APP_INITIALIZER, Injector, setTestabilityGetter, NgProbeToken, Optional, ApplicationRef, NgZone, getDebugNode, ViewEncapsulation, APP_ID, RendererStyleFlags2, PLATFORM_ID, ɵConsole, SecurityContext, ɵ_sanitizeHtml, ɵ_sanitizeStyle, ɵ_sanitizeUrl, PLATFORM_INITIALIZER, Sanitizer, createPlatformFactory, platformCore, ErrorHandler, ɵAPP_ROOT, RendererFactory2, Testability, NgModule, ApplicationModule, SkipSelf, inject, defineInjectable, Version } from '@angular/core';
9
9
 
10
10
  /**
11
11
  * @fileoverview added by tsickle
@@ -1687,10 +1687,12 @@ class DomRendererFactory2 {
1687
1687
  /**
1688
1688
  * @param {?} eventManager
1689
1689
  * @param {?} sharedStylesHost
1690
+ * @param {?} appId
1690
1691
  */
1691
- constructor(eventManager, sharedStylesHost) {
1692
+ constructor(eventManager, sharedStylesHost, appId) {
1692
1693
  this.eventManager = eventManager;
1693
1694
  this.sharedStylesHost = sharedStylesHost;
1695
+ this.appId = appId;
1694
1696
  this.rendererByCompId = new Map();
1695
1697
  this.defaultRenderer = new DefaultDomRenderer2(eventManager);
1696
1698
  }
@@ -1708,8 +1710,7 @@ class DomRendererFactory2 {
1708
1710
  /** @type {?} */
1709
1711
  let renderer = this.rendererByCompId.get(type.id);
1710
1712
  if (!renderer) {
1711
- renderer =
1712
- new EmulatedEncapsulationDomRenderer2(this.eventManager, this.sharedStylesHost, type);
1713
+ renderer = new EmulatedEncapsulationDomRenderer2(this.eventManager, this.sharedStylesHost, type, this.appId);
1713
1714
  this.rendererByCompId.set(type.id, renderer);
1714
1715
  }
1715
1716
  ((/** @type {?} */ (renderer))).applyToHost(element);
@@ -1744,7 +1745,8 @@ DomRendererFactory2.decorators = [
1744
1745
  /** @nocollapse */
1745
1746
  DomRendererFactory2.ctorParameters = () => [
1746
1747
  { type: EventManager },
1747
- { type: DomSharedStylesHost }
1748
+ { type: DomSharedStylesHost },
1749
+ { type: String, decorators: [{ type: Inject, args: [APP_ID,] }] }
1748
1750
  ];
1749
1751
  class DefaultDomRenderer2 {
1750
1752
  /**
@@ -1967,15 +1969,16 @@ class EmulatedEncapsulationDomRenderer2 extends DefaultDomRenderer2 {
1967
1969
  * @param {?} eventManager
1968
1970
  * @param {?} sharedStylesHost
1969
1971
  * @param {?} component
1972
+ * @param {?} appId
1970
1973
  */
1971
- constructor(eventManager, sharedStylesHost, component) {
1974
+ constructor(eventManager, sharedStylesHost, component, appId) {
1972
1975
  super(eventManager);
1973
1976
  this.component = component;
1974
1977
  /** @type {?} */
1975
- const styles = flattenStyles(component.id, component.styles, []);
1978
+ const styles = flattenStyles(appId + '-' + component.id, component.styles, []);
1976
1979
  sharedStylesHost.addStyles(styles);
1977
- this.contentAttr = shimContentAttribute(component.id);
1978
- this.hostAttr = shimHostAttribute(component.id);
1980
+ this.contentAttr = shimContentAttribute(appId + '-' + component.id);
1981
+ this.hostAttr = shimHostAttribute(appId + '-' + component.id);
1979
1982
  }
1980
1983
  /**
1981
1984
  * @param {?} element
@@ -2946,7 +2949,7 @@ const BROWSER_MODULE_PROVIDERS = [
2946
2949
  {
2947
2950
  provide: DomRendererFactory2,
2948
2951
  useClass: DomRendererFactory2,
2949
- deps: [EventManager, DomSharedStylesHost]
2952
+ deps: [EventManager, DomSharedStylesHost, APP_ID]
2950
2953
  },
2951
2954
  { provide: RendererFactory2, useExisting: DomRendererFactory2 },
2952
2955
  { provide: SharedStylesHost, useExisting: DomSharedStylesHost },
@@ -3585,7 +3588,7 @@ class By {
3585
3588
  * \@publicApi
3586
3589
  * @type {?}
3587
3590
  */
3588
- const VERSION = new Version('7.2.12');
3591
+ const VERSION = new Version('7.2.13');
3589
3592
 
3590
3593
  /**
3591
3594
  * @fileoverview added by tsickle