@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/bundles/core.umd.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
|
*/
|
|
@@ -2213,6 +2213,16 @@
|
|
|
2213
2213
|
}
|
|
2214
2214
|
}
|
|
2215
2215
|
|
|
2216
|
+
/**
|
|
2217
|
+
* @license
|
|
2218
|
+
* Copyright Google Inc. All Rights Reserved.
|
|
2219
|
+
*
|
|
2220
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
2221
|
+
* found in the LICENSE file at https://angular.io/license
|
|
2222
|
+
*/
|
|
2223
|
+
var SVG_NAMESPACE = 'http://www.w3.org/2000/svg';
|
|
2224
|
+
var MATH_ML_NAMESPACE = 'http://www.w3.org/1998/MathML/';
|
|
2225
|
+
|
|
2216
2226
|
/**
|
|
2217
2227
|
* @license
|
|
2218
2228
|
* Copyright Google Inc. All Rights Reserved.
|
|
@@ -2521,7 +2531,7 @@
|
|
|
2521
2531
|
* @codeGenApi
|
|
2522
2532
|
*/
|
|
2523
2533
|
function ɵɵnamespaceSVG() {
|
|
2524
|
-
instructionState.lFrame.currentNamespace =
|
|
2534
|
+
instructionState.lFrame.currentNamespace = SVG_NAMESPACE;
|
|
2525
2535
|
}
|
|
2526
2536
|
/**
|
|
2527
2537
|
* Sets the namespace used to create elements to `'http://www.w3.org/1998/MathML/'` in global state.
|
|
@@ -2529,7 +2539,7 @@
|
|
|
2529
2539
|
* @codeGenApi
|
|
2530
2540
|
*/
|
|
2531
2541
|
function ɵɵnamespaceMathML() {
|
|
2532
|
-
instructionState.lFrame.currentNamespace =
|
|
2542
|
+
instructionState.lFrame.currentNamespace = MATH_ML_NAMESPACE;
|
|
2533
2543
|
}
|
|
2534
2544
|
/**
|
|
2535
2545
|
* Sets the namespace used to create elements to `null`, which forces element creation to use
|
|
@@ -11411,9 +11421,6 @@
|
|
|
11411
11421
|
if (def == null) {
|
|
11412
11422
|
return false;
|
|
11413
11423
|
}
|
|
11414
|
-
// Track the InjectorType and add a provider for it.
|
|
11415
|
-
this.injectorDefTypes.add(defType);
|
|
11416
|
-
this.records.set(defType, makeRecord(def.factory, NOT_YET));
|
|
11417
11424
|
// Add providers in the same way that @NgModule resolution did:
|
|
11418
11425
|
// First, include providers from any imports.
|
|
11419
11426
|
if (def.imports != null && !isDuplicate) {
|
|
@@ -11451,6 +11458,10 @@
|
|
|
11451
11458
|
}
|
|
11452
11459
|
}
|
|
11453
11460
|
}
|
|
11461
|
+
// Track the InjectorType and add a provider for it. It's important that this is done after the
|
|
11462
|
+
// def's imports.
|
|
11463
|
+
this.injectorDefTypes.add(defType);
|
|
11464
|
+
this.records.set(defType, makeRecord(def.factory, NOT_YET));
|
|
11454
11465
|
// Next, include providers listed on the definition itself.
|
|
11455
11466
|
var defProviders = def.providers;
|
|
11456
11467
|
if (defProviders != null && !isDuplicate) {
|
|
@@ -19654,7 +19665,7 @@
|
|
|
19654
19665
|
/**
|
|
19655
19666
|
* @publicApi
|
|
19656
19667
|
*/
|
|
19657
|
-
var VERSION = new Version('9.0.
|
|
19668
|
+
var VERSION = new Version('9.0.1');
|
|
19658
19669
|
|
|
19659
19670
|
/**
|
|
19660
19671
|
* @license
|
|
@@ -22586,6 +22597,10 @@
|
|
|
22586
22597
|
}
|
|
22587
22598
|
return array;
|
|
22588
22599
|
}
|
|
22600
|
+
function getNamespace$1(elementName) {
|
|
22601
|
+
var name = elementName.toLowerCase();
|
|
22602
|
+
return name === 'svg' ? SVG_NAMESPACE : (name === 'math' ? MATH_ML_NAMESPACE : null);
|
|
22603
|
+
}
|
|
22589
22604
|
/**
|
|
22590
22605
|
* A change detection scheduler token for {@link RootContext}. This token is the default value used
|
|
22591
22606
|
* for the default `RootContext` found in the {@link ROOT_CONTEXT} token.
|
|
@@ -22651,12 +22666,12 @@
|
|
|
22651
22666
|
var rendererFactory = rootViewInjector.get(RendererFactory2, domRendererFactory3);
|
|
22652
22667
|
var sanitizer = rootViewInjector.get(Sanitizer, null);
|
|
22653
22668
|
var hostRenderer = rendererFactory.createRenderer(null, this.componentDef);
|
|
22669
|
+
// Determine a tag name used for creating host elements when this component is created
|
|
22670
|
+
// dynamically. Default to 'div' if this component did not specify any tag name in its selector.
|
|
22671
|
+
var elementName = this.componentDef.selectors[0][0] || 'div';
|
|
22654
22672
|
var hostRNode = rootSelectorOrNode ?
|
|
22655
22673
|
locateHostElement(hostRenderer, rootSelectorOrNode, this.componentDef.encapsulation) :
|
|
22656
|
-
|
|
22657
|
-
// dynamically. Default to 'div' if this component did not specify any tag name in its
|
|
22658
|
-
// selector.
|
|
22659
|
-
elementCreate(this.componentDef.selectors[0][0] || 'div', rendererFactory.createRenderer(null, this.componentDef), null);
|
|
22674
|
+
elementCreate(elementName, rendererFactory.createRenderer(null, this.componentDef), getNamespace$1(elementName));
|
|
22660
22675
|
var rootFlags = this.componentDef.onPush ? 64 /* Dirty */ | 512 /* IsRoot */ :
|
|
22661
22676
|
16 /* CheckAlways */ | 512 /* IsRoot */;
|
|
22662
22677
|
// Check whether this Component needs to be isolated from other components, i.e. whether it
|