@angular/core 5.2.2 → 5.2.6
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 +11 -3
- package/bundles/core-testing.umd.js.map +1 -1
- package/bundles/core-testing.umd.min.js +2 -2
- package/bundles/core-testing.umd.min.js.map +1 -1
- package/bundles/core.umd.js +30 -14
- package/bundles/core.umd.js.map +1 -1
- package/bundles/core.umd.min.js +7 -7
- package/bundles/core.umd.min.js.map +1 -1
- package/core.metadata.json +1 -1
- package/esm2015/core.js +26 -9
- package/esm2015/core.js.map +1 -1
- package/esm2015/testing.js +11 -3
- package/esm2015/testing.js.map +1 -1
- package/esm5/core.js +26 -9
- package/esm5/core.js.map +1 -1
- package/esm5/testing.js +11 -3
- package/esm5/testing.js.map +1 -1
- package/package.json +1 -1
- package/src/animation/dsl.d.ts +1 -1
- package/src/reflection/reflection_capabilities.d.ts +3 -1
- package/testing/testing.metadata.json +1 -1
- package/testing.d.ts +1 -1
package/esm2015/core.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v5.2.
|
|
2
|
+
* @license Angular v5.2.6
|
|
3
3
|
* (c) 2010-2018 Google, Inc. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -7,6 +7,7 @@ import { Observable } from 'rxjs/Observable';
|
|
|
7
7
|
import { merge } from 'rxjs/observable/merge';
|
|
8
8
|
import { share } from 'rxjs/operator/share';
|
|
9
9
|
import { Subject } from 'rxjs/Subject';
|
|
10
|
+
import { Subscription } from 'rxjs/Subscription';
|
|
10
11
|
|
|
11
12
|
/**
|
|
12
13
|
* @fileoverview added by tsickle
|
|
@@ -682,7 +683,7 @@ class Version {
|
|
|
682
683
|
/**
|
|
683
684
|
* \@stable
|
|
684
685
|
*/
|
|
685
|
-
const VERSION = new Version('5.2.
|
|
686
|
+
const VERSION = new Version('5.2.6');
|
|
686
687
|
|
|
687
688
|
/**
|
|
688
689
|
* @fileoverview added by tsickle
|
|
@@ -796,6 +797,7 @@ const __self = typeof self !== 'undefined' && typeof WorkerGlobalScope !== 'unde
|
|
|
796
797
|
self instanceof WorkerGlobalScope && self;
|
|
797
798
|
const __global = typeof global !== 'undefined' && global;
|
|
798
799
|
const _global = __window || __global || __self;
|
|
800
|
+
const promise = Promise.resolve(0);
|
|
799
801
|
let _symbolIterator = null;
|
|
800
802
|
/**
|
|
801
803
|
* @return {?}
|
|
@@ -825,7 +827,13 @@ function getSymbolIterator() {
|
|
|
825
827
|
* @return {?}
|
|
826
828
|
*/
|
|
827
829
|
function scheduleMicroTask(fn) {
|
|
828
|
-
Zone
|
|
830
|
+
if (typeof Zone === 'undefined') {
|
|
831
|
+
// use promise to schedule microTask instead of use Zone
|
|
832
|
+
promise.then(() => { fn && fn.apply(null, null); });
|
|
833
|
+
}
|
|
834
|
+
else {
|
|
835
|
+
Zone.current.scheduleMicroTask('scheduleMicrotask', fn);
|
|
836
|
+
}
|
|
829
837
|
}
|
|
830
838
|
/**
|
|
831
839
|
* @param {?} a
|
|
@@ -1841,9 +1849,11 @@ function isType(v) {
|
|
|
1841
1849
|
* found in the LICENSE file at https://angular.io/license
|
|
1842
1850
|
*/
|
|
1843
1851
|
/**
|
|
1844
|
-
* Attention:
|
|
1852
|
+
* Attention: These regex has to hold even if the code is minified!
|
|
1845
1853
|
*/
|
|
1846
1854
|
const DELEGATE_CTOR = /^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*arguments\)/;
|
|
1855
|
+
const INHERITED_CLASS = /^class\s+[A-Za-z\d$_]*\s*extends\s+[A-Za-z\d$_]+\s*{/;
|
|
1856
|
+
const INHERITED_CLASS_WITH_CTOR = /^class\s+[A-Za-z\d$_]*\s*extends\s+[A-Za-z\d$_]+\s*{[\s\S]*constructor\s*\(/;
|
|
1847
1857
|
class ReflectionCapabilities {
|
|
1848
1858
|
/**
|
|
1849
1859
|
* @param {?=} reflect
|
|
@@ -1898,6 +1908,7 @@ class ReflectionCapabilities {
|
|
|
1898
1908
|
* @return {?}
|
|
1899
1909
|
*/
|
|
1900
1910
|
_ownParameters(type, parentCtor) {
|
|
1911
|
+
const /** @type {?} */ typeStr = type.toString();
|
|
1901
1912
|
// If we have no decorators, we only have function.length as metadata.
|
|
1902
1913
|
// In that case, to detect whether a child class declared an own constructor or not,
|
|
1903
1914
|
// we need to look inside of that constructor to check whether it is
|
|
@@ -1905,7 +1916,8 @@ class ReflectionCapabilities {
|
|
|
1905
1916
|
// This also helps to work around for https://github.com/Microsoft/TypeScript/issues/12439
|
|
1906
1917
|
// that sets 'design:paramtypes' to []
|
|
1907
1918
|
// if a class inherits from another class but has no ctor declared itself.
|
|
1908
|
-
if (DELEGATE_CTOR.exec(
|
|
1919
|
+
if (DELEGATE_CTOR.exec(typeStr) ||
|
|
1920
|
+
(INHERITED_CLASS.exec(typeStr) && !INHERITED_CLASS_WITH_CTOR.exec(typeStr))) {
|
|
1909
1921
|
return null;
|
|
1910
1922
|
}
|
|
1911
1923
|
// Prefer the direct API.
|
|
@@ -2137,7 +2149,7 @@ function convertTsickleDecoratorIntoMetadata(decoratorInvocations) {
|
|
|
2137
2149
|
* @return {?}
|
|
2138
2150
|
*/
|
|
2139
2151
|
function getParentCtor(ctor) {
|
|
2140
|
-
const /** @type {?} */ parentProto = Object.getPrototypeOf(ctor.prototype);
|
|
2152
|
+
const /** @type {?} */ parentProto = ctor.prototype ? Object.getPrototypeOf(ctor.prototype) : null;
|
|
2141
2153
|
const /** @type {?} */ parentCtor = parentProto ? parentProto.constructor : null;
|
|
2142
2154
|
// Note: We always use `Object` as the null value
|
|
2143
2155
|
// to simplify checking later on.
|
|
@@ -3703,7 +3715,11 @@ class EventEmitter extends Subject {
|
|
|
3703
3715
|
this.__isAsync ? () => { setTimeout(() => complete()); } : () => { complete(); };
|
|
3704
3716
|
}
|
|
3705
3717
|
}
|
|
3706
|
-
|
|
3718
|
+
const /** @type {?} */ sink = super.subscribe(schedulerFn, errorFn, completeFn);
|
|
3719
|
+
if (generatorOrNext instanceof Subscription) {
|
|
3720
|
+
generatorOrNext.add(sink);
|
|
3721
|
+
}
|
|
3722
|
+
return sink;
|
|
3707
3723
|
}
|
|
3708
3724
|
}
|
|
3709
3725
|
|
|
@@ -5159,6 +5175,7 @@ class QueryList {
|
|
|
5159
5175
|
this.dirty = true;
|
|
5160
5176
|
this._results = [];
|
|
5161
5177
|
this.changes = new EventEmitter();
|
|
5178
|
+
this.length = 0;
|
|
5162
5179
|
}
|
|
5163
5180
|
/**
|
|
5164
5181
|
* See
|
|
@@ -8090,7 +8107,7 @@ function checkAndUpdateBinding(view, def, bindingIdx, value) {
|
|
|
8090
8107
|
function checkBindingNoChanges(view, def, bindingIdx, value) {
|
|
8091
8108
|
const /** @type {?} */ oldValue = view.oldValues[def.bindingIndex + bindingIdx];
|
|
8092
8109
|
if ((view.state & 1 /* BeforeFirstCheck */) || !devModeEqual(oldValue, value)) {
|
|
8093
|
-
const /** @type {?} */ bindingName = def.bindings[
|
|
8110
|
+
const /** @type {?} */ bindingName = def.bindings[bindingIdx].name;
|
|
8094
8111
|
throw expressionChangedAfterItHasBeenCheckedError(Services.createDebugContext(view, def.nodeIndex), `${bindingName}: ${oldValue}`, `${bindingName}: ${value}`, (view.state & 1 /* BeforeFirstCheck */) !== 0);
|
|
8095
8112
|
}
|
|
8096
8113
|
}
|
|
@@ -15817,7 +15834,7 @@ function invertObject(obj) {
|
|
|
15817
15834
|
* The `\@childAnimation` trigger will not animate because `\@.disabled` prevents it from happening
|
|
15818
15835
|
* (when true).
|
|
15819
15836
|
*
|
|
15820
|
-
* Note that `\@.
|
|
15837
|
+
* Note that `\@.disabled` will only disable all animations (this means any animations running on
|
|
15821
15838
|
* the same element will also be disabled).
|
|
15822
15839
|
*
|
|
15823
15840
|
* ### Disabling Animations Application-wide
|