@angular/core 9.0.0 → 9.0.1
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/bundles/core-testing.umd.js +1 -1
- package/bundles/core-testing.umd.min.js +1 -1
- package/bundles/core-testing.umd.min.js.map +1 -1
- package/bundles/core.umd.js +26 -11
- package/bundles/core.umd.js.map +1 -1
- package/bundles/core.umd.min.js +126 -126
- package/bundles/core.umd.min.js.map +1 -1
- package/core.d.ts +3 -2
- package/core.metadata.json +1 -1
- package/esm2015/src/di/injectable.js +1 -1
- package/esm2015/src/di/r3_injector.js +5 -4
- package/esm2015/src/render3/component_ref.js +16 -5
- package/esm2015/src/render3/namespaces.js +17 -0
- package/esm2015/src/render3/state.js +4 -3
- package/esm2015/src/version.js +1 -1
- package/esm5/src/di/injectable.js +1 -1
- package/esm5/src/di/r3_injector.js +5 -4
- package/esm5/src/render3/component_ref.js +10 -5
- package/esm5/src/render3/namespaces.js +10 -0
- package/esm5/src/render3/state.js +4 -3
- package/esm5/src/version.js +1 -1
- package/fesm2015/core.js +39 -11
- package/fesm2015/core.js.map +1 -1
- package/fesm2015/testing.js +1 -1
- package/fesm5/core.js +26 -11
- package/fesm5/core.js.map +1 -1
- package/fesm5/testing.js +1 -1
- package/package.json +1 -1
- package/src/r3_symbols.d.ts +1 -1
- package/testing/testing.d.ts +1 -1
- package/testing.d.ts +1 -1
package/fesm2015/testing.js
CHANGED
package/fesm5/core.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v9.0.
|
|
2
|
+
* @license Angular v9.0.1
|
|
3
3
|
* (c) 2010-2020 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -2045,6 +2045,16 @@ function assertDirectiveDef(obj) {
|
|
|
2045
2045
|
}
|
|
2046
2046
|
}
|
|
2047
2047
|
|
|
2048
|
+
/**
|
|
2049
|
+
* @license
|
|
2050
|
+
* Copyright Google Inc. All Rights Reserved.
|
|
2051
|
+
*
|
|
2052
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
2053
|
+
* found in the LICENSE file at https://angular.io/license
|
|
2054
|
+
*/
|
|
2055
|
+
var SVG_NAMESPACE = 'http://www.w3.org/2000/svg';
|
|
2056
|
+
var MATH_ML_NAMESPACE = 'http://www.w3.org/1998/MathML/';
|
|
2057
|
+
|
|
2048
2058
|
/**
|
|
2049
2059
|
* @license
|
|
2050
2060
|
* Copyright Google Inc. All Rights Reserved.
|
|
@@ -2353,7 +2363,7 @@ function setSelectedIndex(index) {
|
|
|
2353
2363
|
* @codeGenApi
|
|
2354
2364
|
*/
|
|
2355
2365
|
function ɵɵnamespaceSVG() {
|
|
2356
|
-
instructionState.lFrame.currentNamespace =
|
|
2366
|
+
instructionState.lFrame.currentNamespace = SVG_NAMESPACE;
|
|
2357
2367
|
}
|
|
2358
2368
|
/**
|
|
2359
2369
|
* Sets the namespace used to create elements to `'http://www.w3.org/1998/MathML/'` in global state.
|
|
@@ -2361,7 +2371,7 @@ function ɵɵnamespaceSVG() {
|
|
|
2361
2371
|
* @codeGenApi
|
|
2362
2372
|
*/
|
|
2363
2373
|
function ɵɵnamespaceMathML() {
|
|
2364
|
-
instructionState.lFrame.currentNamespace =
|
|
2374
|
+
instructionState.lFrame.currentNamespace = MATH_ML_NAMESPACE;
|
|
2365
2375
|
}
|
|
2366
2376
|
/**
|
|
2367
2377
|
* Sets the namespace used to create elements to `null`, which forces element creation to use
|
|
@@ -11253,9 +11263,6 @@ var R3Injector = /** @class */ (function () {
|
|
|
11253
11263
|
if (def == null) {
|
|
11254
11264
|
return false;
|
|
11255
11265
|
}
|
|
11256
|
-
// Track the InjectorType and add a provider for it.
|
|
11257
|
-
this.injectorDefTypes.add(defType);
|
|
11258
|
-
this.records.set(defType, makeRecord(def.factory, NOT_YET));
|
|
11259
11266
|
// Add providers in the same way that @NgModule resolution did:
|
|
11260
11267
|
// First, include providers from any imports.
|
|
11261
11268
|
if (def.imports != null && !isDuplicate) {
|
|
@@ -11293,6 +11300,10 @@ var R3Injector = /** @class */ (function () {
|
|
|
11293
11300
|
}
|
|
11294
11301
|
}
|
|
11295
11302
|
}
|
|
11303
|
+
// Track the InjectorType and add a provider for it. It's important that this is done after the
|
|
11304
|
+
// def's imports.
|
|
11305
|
+
this.injectorDefTypes.add(defType);
|
|
11306
|
+
this.records.set(defType, makeRecord(def.factory, NOT_YET));
|
|
11296
11307
|
// Next, include providers listed on the definition itself.
|
|
11297
11308
|
var defProviders = def.providers;
|
|
11298
11309
|
if (defProviders != null && !isDuplicate) {
|
|
@@ -19501,7 +19512,7 @@ var Version = /** @class */ (function () {
|
|
|
19501
19512
|
/**
|
|
19502
19513
|
* @publicApi
|
|
19503
19514
|
*/
|
|
19504
|
-
var VERSION = new Version('9.0.
|
|
19515
|
+
var VERSION = new Version('9.0.1');
|
|
19505
19516
|
|
|
19506
19517
|
/**
|
|
19507
19518
|
* @license
|
|
@@ -22433,6 +22444,10 @@ function toRefArray(map) {
|
|
|
22433
22444
|
}
|
|
22434
22445
|
return array;
|
|
22435
22446
|
}
|
|
22447
|
+
function getNamespace$1(elementName) {
|
|
22448
|
+
var name = elementName.toLowerCase();
|
|
22449
|
+
return name === 'svg' ? SVG_NAMESPACE : (name === 'math' ? MATH_ML_NAMESPACE : null);
|
|
22450
|
+
}
|
|
22436
22451
|
/**
|
|
22437
22452
|
* A change detection scheduler token for {@link RootContext}. This token is the default value used
|
|
22438
22453
|
* for the default `RootContext` found in the {@link ROOT_CONTEXT} token.
|
|
@@ -22498,12 +22513,12 @@ var ComponentFactory$1 = /** @class */ (function (_super) {
|
|
|
22498
22513
|
var rendererFactory = rootViewInjector.get(RendererFactory2, domRendererFactory3);
|
|
22499
22514
|
var sanitizer = rootViewInjector.get(Sanitizer, null);
|
|
22500
22515
|
var hostRenderer = rendererFactory.createRenderer(null, this.componentDef);
|
|
22516
|
+
// Determine a tag name used for creating host elements when this component is created
|
|
22517
|
+
// dynamically. Default to 'div' if this component did not specify any tag name in its selector.
|
|
22518
|
+
var elementName = this.componentDef.selectors[0][0] || 'div';
|
|
22501
22519
|
var hostRNode = rootSelectorOrNode ?
|
|
22502
22520
|
locateHostElement(hostRenderer, rootSelectorOrNode, this.componentDef.encapsulation) :
|
|
22503
|
-
|
|
22504
|
-
// dynamically. Default to 'div' if this component did not specify any tag name in its
|
|
22505
|
-
// selector.
|
|
22506
|
-
elementCreate(this.componentDef.selectors[0][0] || 'div', rendererFactory.createRenderer(null, this.componentDef), null);
|
|
22521
|
+
elementCreate(elementName, rendererFactory.createRenderer(null, this.componentDef), getNamespace$1(elementName));
|
|
22507
22522
|
var rootFlags = this.componentDef.onPush ? 64 /* Dirty */ | 512 /* IsRoot */ :
|
|
22508
22523
|
16 /* CheckAlways */ | 512 /* IsRoot */;
|
|
22509
22524
|
// Check whether this Component needs to be isolated from other components, i.e. whether it
|