@angular/core 8.2.0 → 8.2.4
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 +94 -1
- package/bundles/core-testing.umd.js.map +1 -1
- package/bundles/core-testing.umd.min.js +3 -2
- package/bundles/core-testing.umd.min.js.map +1 -1
- package/bundles/core.umd.js +427 -60
- package/bundles/core.umd.js.map +1 -1
- package/bundles/core.umd.min.js +136 -156
- package/bundles/core.umd.min.js.map +1 -1
- package/core.d.ts +18 -8
- package/core.metadata.json +1 -1
- package/esm2015/core.externs.js +4 -4
- package/esm2015/index.js +1 -1
- package/esm2015/public_api.js +1 -1
- package/esm2015/src/application_module.js +11 -2
- package/esm2015/src/application_ref.js +9 -5
- package/esm2015/src/core.js +3 -3
- package/esm2015/src/core_private_export.js +2 -1
- package/esm2015/src/core_render3_private_export.js +2 -2
- package/esm2015/src/event_emitter.js +9 -4
- package/esm2015/src/i18n/localization.js +6 -1
- package/esm2015/src/metadata/directives.js +1 -1
- package/esm2015/src/render3/i18n.js +6 -5
- package/esm2015/src/render3/index.js +2 -2
- package/esm2015/src/version.js +1 -1
- package/esm5/src/application_module.js +11 -2
- package/esm5/src/application_ref.js +8 -4
- package/esm5/src/core_private_export.js +2 -1
- package/esm5/src/core_render3_private_export.js +2 -2
- package/esm5/src/event_emitter.js +9 -4
- package/esm5/src/i18n/localization.js +5 -1
- package/esm5/src/metadata/directives.js +1 -1
- package/esm5/src/render3/i18n.js +6 -4
- package/esm5/src/render3/index.js +2 -2
- package/esm5/src/version.js +1 -1
- package/fesm2015/core.js +7363 -69
- package/fesm2015/core.js.map +1 -1
- package/fesm2015/testing.js +593 -2
- package/fesm2015/testing.js.map +1 -1
- package/fesm5/core.js +327 -58
- package/fesm5/core.js.map +1 -1
- package/fesm5/testing.js +15 -2
- package/fesm5/testing.js.map +1 -1
- package/package.json +1 -1
- package/schematics/migrations/static-queries/strategies/usage_strategy/usage_strategy.js +5 -5
- package/src/r3_symbols.d.ts +1 -1
- package/testing/testing.d.ts +1 -1
- package/testing.d.ts +1 -1
- package/schematics/migrations/injectable-pipe/angular/injectable_pipe_visitor.d.ts +0 -30
- package/schematics/migrations/injectable-pipe/angular/injectable_pipe_visitor.js +0 -68
- package/schematics/migrations/injectable-pipe/index.d.ts +0 -14
- package/schematics/migrations/injectable-pipe/index.js +0 -85
- package/schematics/migrations/injectable-pipe/util.d.ts +0 -19
- package/schematics/migrations/injectable-pipe/util.js +0 -44
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v8.2.
|
|
2
|
+
* @license Angular v8.2.4
|
|
3
3
|
* (c) 2010-2019 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -626,6 +626,27 @@
|
|
|
626
626
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
627
627
|
}
|
|
628
628
|
|
|
629
|
+
var __assign = function() {
|
|
630
|
+
__assign = Object.assign || function __assign(t) {
|
|
631
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
632
|
+
s = arguments[i];
|
|
633
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
634
|
+
}
|
|
635
|
+
return t;
|
|
636
|
+
};
|
|
637
|
+
return __assign.apply(this, arguments);
|
|
638
|
+
};
|
|
639
|
+
|
|
640
|
+
function __rest(s, e) {
|
|
641
|
+
var t = {};
|
|
642
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
643
|
+
t[p] = s[p];
|
|
644
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
645
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
|
646
|
+
t[p[i]] = s[p[i]];
|
|
647
|
+
return t;
|
|
648
|
+
}
|
|
649
|
+
|
|
629
650
|
function __decorate(decorators, target, key, desc) {
|
|
630
651
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
631
652
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -633,6 +654,14 @@
|
|
|
633
654
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
634
655
|
}
|
|
635
656
|
|
|
657
|
+
function __param(paramIndex, decorator) {
|
|
658
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
function __metadata(metadataKey, metadataValue) {
|
|
662
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
|
|
663
|
+
}
|
|
664
|
+
|
|
636
665
|
function __awaiter(thisArg, _arguments, P, generator) {
|
|
637
666
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
638
667
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -670,6 +699,10 @@
|
|
|
670
699
|
}
|
|
671
700
|
}
|
|
672
701
|
|
|
702
|
+
function __exportStar(m, exports) {
|
|
703
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
704
|
+
}
|
|
705
|
+
|
|
673
706
|
function __values(o) {
|
|
674
707
|
var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
|
|
675
708
|
if (m) return m.call(o);
|
|
@@ -702,6 +735,53 @@
|
|
|
702
735
|
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
703
736
|
ar = ar.concat(__read(arguments[i]));
|
|
704
737
|
return ar;
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
function __await(v) {
|
|
741
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
745
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
746
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
747
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
748
|
+
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
749
|
+
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
750
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
751
|
+
function fulfill(value) { resume("next", value); }
|
|
752
|
+
function reject(value) { resume("throw", value); }
|
|
753
|
+
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
function __asyncDelegator(o) {
|
|
757
|
+
var i, p;
|
|
758
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
759
|
+
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
function __asyncValues(o) {
|
|
763
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
764
|
+
var m = o[Symbol.asyncIterator], i;
|
|
765
|
+
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
766
|
+
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
767
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
function __makeTemplateObject(cooked, raw) {
|
|
771
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
772
|
+
return cooked;
|
|
773
|
+
};
|
|
774
|
+
|
|
775
|
+
function __importStar(mod) {
|
|
776
|
+
if (mod && mod.__esModule) return mod;
|
|
777
|
+
var result = {};
|
|
778
|
+
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
|
779
|
+
result.default = mod;
|
|
780
|
+
return result;
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
function __importDefault(mod) {
|
|
784
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
705
785
|
}
|
|
706
786
|
|
|
707
787
|
/**
|
|
@@ -840,9 +920,19 @@
|
|
|
840
920
|
var componentResourceResolutionQueue = new Map();
|
|
841
921
|
// Track when existing ngComponentDef for a Type is waiting on resources.
|
|
842
922
|
var componentDefPendingResolution = new Set();
|
|
923
|
+
function maybeQueueResolutionOfComponentResources(type, metadata) {
|
|
924
|
+
if (componentNeedsResolution(metadata)) {
|
|
925
|
+
componentResourceResolutionQueue.set(type, metadata);
|
|
926
|
+
componentDefPendingResolution.add(type);
|
|
927
|
+
}
|
|
928
|
+
}
|
|
843
929
|
function isComponentDefPendingResolution(type) {
|
|
844
930
|
return componentDefPendingResolution.has(type);
|
|
845
931
|
}
|
|
932
|
+
function componentNeedsResolution(component) {
|
|
933
|
+
return !!((component.templateUrl && !component.hasOwnProperty('template')) ||
|
|
934
|
+
component.styleUrls && component.styleUrls.length);
|
|
935
|
+
}
|
|
846
936
|
function clearResolutionOfComponentResourcesQueue() {
|
|
847
937
|
var old = componentResourceResolutionQueue;
|
|
848
938
|
componentResourceResolutionQueue = new Map();
|
|
@@ -853,6 +943,9 @@
|
|
|
853
943
|
queue.forEach(function (_, type) { return componentDefPendingResolution.add(type); });
|
|
854
944
|
componentResourceResolutionQueue = queue;
|
|
855
945
|
}
|
|
946
|
+
function isComponentResourceResolutionQueueEmpty() {
|
|
947
|
+
return componentResourceResolutionQueue.size === 0;
|
|
948
|
+
}
|
|
856
949
|
function unwrapResponse(response) {
|
|
857
950
|
return typeof response == 'string' ? response : response.text();
|
|
858
951
|
}
|