@angular/platform-browser 7.2.12 → 7.2.16
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/animations.d.ts +1 -1
- package/bundles/platform-browser-animations.umd.js +1 -1
- package/bundles/platform-browser-animations.umd.min.js +1 -1
- package/bundles/platform-browser-animations.umd.min.js.map +1 -1
- package/bundles/platform-browser-testing.umd.js +1 -1
- package/bundles/platform-browser-testing.umd.min.js +1 -1
- package/bundles/platform-browser-testing.umd.min.js.map +1 -1
- package/bundles/platform-browser.umd.js +12 -11
- package/bundles/platform-browser.umd.js.map +1 -1
- package/bundles/platform-browser.umd.min.js +5 -5
- package/bundles/platform-browser.umd.min.js.map +1 -1
- package/esm2015/src/browser.js +2 -2
- package/esm2015/src/dom/dom_renderer.js +18 -10
- package/esm2015/src/version.js +1 -1
- package/esm5/src/browser.js +2 -2
- package/esm5/src/dom/dom_renderer.js +11 -10
- package/esm5/src/version.js +1 -1
- package/fesm2015/animations.js +1 -1
- package/fesm2015/platform-browser.js +15 -12
- package/fesm2015/platform-browser.js.map +1 -1
- package/fesm2015/testing.js +1 -1
- package/fesm5/animations.js +1 -1
- package/fesm5/platform-browser.js +13 -12
- package/fesm5/platform-browser.js.map +1 -1
- package/fesm5/testing.js +1 -1
- package/package.json +3 -3
- package/platform-browser.metadata.json +1 -1
- package/src/dom/dom_renderer.d.ts +2 -1
- package/testing.d.ts +1 -1
package/fesm2015/testing.js
CHANGED
package/fesm5/animations.js
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
/**
|
2
|
-
* @license Angular v7.2.
|
2
|
+
* @license Angular v7.2.16
|
3
3
|
* (c) 2010-2019 Google LLC. https://angular.io/
|
4
4
|
* License: MIT
|
5
5
|
*/
|
6
6
|
|
7
7
|
import { __extends, __spread, __decorate, __param, __metadata, __assign } from 'tslib';
|
8
8
|
import { ɵparseCookieValue, DOCUMENT, PlatformLocation, isPlatformServer, ɵPLATFORM_BROWSER_ID, CommonModule } from '@angular/common';
|
9
|
-
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,
|
9
|
+
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';
|
10
10
|
|
11
11
|
/**
|
12
12
|
* @license
|
@@ -999,9 +999,10 @@ function decoratePreventDefault(eventHandler) {
|
|
999
999
|
};
|
1000
1000
|
}
|
1001
1001
|
var DomRendererFactory2 = /** @class */ (function () {
|
1002
|
-
function DomRendererFactory2(eventManager, sharedStylesHost) {
|
1002
|
+
function DomRendererFactory2(eventManager, sharedStylesHost, appId) {
|
1003
1003
|
this.eventManager = eventManager;
|
1004
1004
|
this.sharedStylesHost = sharedStylesHost;
|
1005
|
+
this.appId = appId;
|
1005
1006
|
this.rendererByCompId = new Map();
|
1006
1007
|
this.defaultRenderer = new DefaultDomRenderer2(eventManager);
|
1007
1008
|
}
|
@@ -1013,8 +1014,7 @@ var DomRendererFactory2 = /** @class */ (function () {
|
|
1013
1014
|
case ViewEncapsulation.Emulated: {
|
1014
1015
|
var renderer = this.rendererByCompId.get(type.id);
|
1015
1016
|
if (!renderer) {
|
1016
|
-
renderer =
|
1017
|
-
new EmulatedEncapsulationDomRenderer2(this.eventManager, this.sharedStylesHost, type);
|
1017
|
+
renderer = new EmulatedEncapsulationDomRenderer2(this.eventManager, this.sharedStylesHost, type, this.appId);
|
1018
1018
|
this.rendererByCompId.set(type.id, renderer);
|
1019
1019
|
}
|
1020
1020
|
renderer.applyToHost(element);
|
@@ -1037,7 +1037,8 @@ var DomRendererFactory2 = /** @class */ (function () {
|
|
1037
1037
|
DomRendererFactory2.prototype.end = function () { };
|
1038
1038
|
DomRendererFactory2 = __decorate([
|
1039
1039
|
Injectable(),
|
1040
|
-
|
1040
|
+
__param(2, Inject(APP_ID)),
|
1041
|
+
__metadata("design:paramtypes", [EventManager, DomSharedStylesHost, String])
|
1041
1042
|
], DomRendererFactory2);
|
1042
1043
|
return DomRendererFactory2;
|
1043
1044
|
}());
|
@@ -1150,13 +1151,13 @@ function checkNoSyntheticProp(name, nameKind) {
|
|
1150
1151
|
}
|
1151
1152
|
var EmulatedEncapsulationDomRenderer2 = /** @class */ (function (_super) {
|
1152
1153
|
__extends(EmulatedEncapsulationDomRenderer2, _super);
|
1153
|
-
function EmulatedEncapsulationDomRenderer2(eventManager, sharedStylesHost, component) {
|
1154
|
+
function EmulatedEncapsulationDomRenderer2(eventManager, sharedStylesHost, component, appId) {
|
1154
1155
|
var _this = _super.call(this, eventManager) || this;
|
1155
1156
|
_this.component = component;
|
1156
|
-
var styles = flattenStyles(component.id, component.styles, []);
|
1157
|
+
var styles = flattenStyles(appId + '-' + component.id, component.styles, []);
|
1157
1158
|
sharedStylesHost.addStyles(styles);
|
1158
|
-
_this.contentAttr = shimContentAttribute(component.id);
|
1159
|
-
_this.hostAttr = shimHostAttribute(component.id);
|
1159
|
+
_this.contentAttr = shimContentAttribute(appId + '-' + component.id);
|
1160
|
+
_this.hostAttr = shimHostAttribute(appId + '-' + component.id);
|
1160
1161
|
return _this;
|
1161
1162
|
}
|
1162
1163
|
EmulatedEncapsulationDomRenderer2.prototype.applyToHost = function (element) { _super.prototype.setAttribute.call(this, element, this.hostAttr, ''); };
|
@@ -1955,7 +1956,7 @@ var BROWSER_MODULE_PROVIDERS = [
|
|
1955
1956
|
{
|
1956
1957
|
provide: DomRendererFactory2,
|
1957
1958
|
useClass: DomRendererFactory2,
|
1958
|
-
deps: [EventManager, DomSharedStylesHost]
|
1959
|
+
deps: [EventManager, DomSharedStylesHost, APP_ID]
|
1959
1960
|
},
|
1960
1961
|
{ provide: RendererFactory2, useExisting: DomRendererFactory2 },
|
1961
1962
|
{ provide: SharedStylesHost, useExisting: DomSharedStylesHost },
|
@@ -2472,7 +2473,7 @@ var By = /** @class */ (function () {
|
|
2472
2473
|
/**
|
2473
2474
|
* @publicApi
|
2474
2475
|
*/
|
2475
|
-
var VERSION = new Version('7.2.
|
2476
|
+
var VERSION = new Version('7.2.16');
|
2476
2477
|
|
2477
2478
|
/**
|
2478
2479
|
* @license
|