@angular/core 11.2.5 → 11.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 +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 +46 -49
- package/bundles/core.umd.js.map +1 -1
- package/bundles/core.umd.min.js +116 -116
- package/bundles/core.umd.min.js.map +1 -1
- package/core.d.ts +1 -1
- package/core.metadata.json +1 -1
- package/esm2015/src/render3/definition.js +3 -2
- package/esm2015/src/render3/empty.js +1 -4
- package/esm2015/src/render3/features/inherit_definition_feature.js +3 -2
- package/esm2015/src/render3/features/ng_onchanges_feature.js +2 -2
- package/esm2015/src/render3/instructions/listener.js +2 -2
- package/esm2015/src/render3/jit/directive.js +3 -2
- package/esm2015/src/version.js +1 -1
- package/fesm2015/core.js +46 -49
- package/fesm2015/core.js.map +1 -1
- package/fesm2015/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 v11.2.
|
|
2
|
+
* @license Angular v11.2.6
|
|
3
3
|
* (c) 2010-2021 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -1089,6 +1089,28 @@
|
|
|
1089
1089
|
Object.freeze(EMPTY_ARRAY);
|
|
1090
1090
|
}
|
|
1091
1091
|
|
|
1092
|
+
/**
|
|
1093
|
+
* @license
|
|
1094
|
+
* Copyright Google LLC All Rights Reserved.
|
|
1095
|
+
*
|
|
1096
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
1097
|
+
* found in the LICENSE file at https://angular.io/license
|
|
1098
|
+
*/
|
|
1099
|
+
/**
|
|
1100
|
+
* This file contains reuseable "empty" symbols that can be used as default return values
|
|
1101
|
+
* in different parts of the rendering code. Because the same symbols are returned, this
|
|
1102
|
+
* allows for identity checks against these values to be consistently used by the framework
|
|
1103
|
+
* code.
|
|
1104
|
+
*/
|
|
1105
|
+
var EMPTY_ARRAY$1 = [];
|
|
1106
|
+
// freezing the values prevents any code from accidentally inserting new values in
|
|
1107
|
+
if ((typeof ngDevMode === 'undefined' || ngDevMode) && initNgDevMode()) {
|
|
1108
|
+
// These property accesses can be ignored because ngDevMode will be set to false
|
|
1109
|
+
// when optimizing code and the whole if statement will be dropped.
|
|
1110
|
+
// tslint:disable-next-line:no-toplevel-property-access
|
|
1111
|
+
Object.freeze(EMPTY_ARRAY$1);
|
|
1112
|
+
}
|
|
1113
|
+
|
|
1092
1114
|
/**
|
|
1093
1115
|
* @license
|
|
1094
1116
|
* Copyright Google LLC All Rights Reserved.
|
|
@@ -1161,7 +1183,7 @@
|
|
|
1161
1183
|
onPush: componentDefinition.changeDetection === exports.ChangeDetectionStrategy.OnPush,
|
|
1162
1184
|
directiveDefs: null,
|
|
1163
1185
|
pipeDefs: null,
|
|
1164
|
-
selectors: componentDefinition.selectors || EMPTY_ARRAY,
|
|
1186
|
+
selectors: componentDefinition.selectors || EMPTY_ARRAY$1,
|
|
1165
1187
|
viewQuery: componentDefinition.viewQuery || null,
|
|
1166
1188
|
features: componentDefinition.features || null,
|
|
1167
1189
|
data: componentDefinition.data || {},
|
|
@@ -1169,7 +1191,7 @@
|
|
|
1169
1191
|
// directly in the next line. Also `None` should be 0 not 2.
|
|
1170
1192
|
encapsulation: componentDefinition.encapsulation || exports.ViewEncapsulation.Emulated,
|
|
1171
1193
|
id: 'c',
|
|
1172
|
-
styles: componentDefinition.styles || EMPTY_ARRAY,
|
|
1194
|
+
styles: componentDefinition.styles || EMPTY_ARRAY$1,
|
|
1173
1195
|
_: null,
|
|
1174
1196
|
setInput: null,
|
|
1175
1197
|
schemas: componentDefinition.schemas || null,
|
|
@@ -1227,10 +1249,10 @@
|
|
|
1227
1249
|
function ɵɵdefineNgModule(def) {
|
|
1228
1250
|
var res = {
|
|
1229
1251
|
type: def.type,
|
|
1230
|
-
bootstrap: def.bootstrap || EMPTY_ARRAY,
|
|
1231
|
-
declarations: def.declarations || EMPTY_ARRAY,
|
|
1232
|
-
imports: def.imports || EMPTY_ARRAY,
|
|
1233
|
-
exports: def.exports || EMPTY_ARRAY,
|
|
1252
|
+
bootstrap: def.bootstrap || EMPTY_ARRAY$1,
|
|
1253
|
+
declarations: def.declarations || EMPTY_ARRAY$1,
|
|
1254
|
+
imports: def.imports || EMPTY_ARRAY$1,
|
|
1255
|
+
exports: def.exports || EMPTY_ARRAY$1,
|
|
1234
1256
|
transitiveCompileScopes: null,
|
|
1235
1257
|
schemas: def.schemas || null,
|
|
1236
1258
|
id: def.id || null,
|
|
@@ -1255,9 +1277,9 @@
|
|
|
1255
1277
|
function ɵɵsetNgModuleScope(type, scope) {
|
|
1256
1278
|
return noSideEffects(function () {
|
|
1257
1279
|
var ngModuleDef = getNgModuleDef(type, true);
|
|
1258
|
-
ngModuleDef.declarations = scope.declarations || EMPTY_ARRAY;
|
|
1259
|
-
ngModuleDef.imports = scope.imports || EMPTY_ARRAY;
|
|
1260
|
-
ngModuleDef.exports = scope.exports || EMPTY_ARRAY;
|
|
1280
|
+
ngModuleDef.declarations = scope.declarations || EMPTY_ARRAY$1;
|
|
1281
|
+
ngModuleDef.imports = scope.imports || EMPTY_ARRAY$1;
|
|
1282
|
+
ngModuleDef.exports = scope.exports || EMPTY_ARRAY$1;
|
|
1261
1283
|
});
|
|
1262
1284
|
}
|
|
1263
1285
|
/**
|
|
@@ -6943,7 +6965,7 @@
|
|
|
6943
6965
|
var tNode = lView[TVIEW].data[nodeIndex];
|
|
6944
6966
|
var directiveStartIndex = tNode.directiveStart;
|
|
6945
6967
|
if (directiveStartIndex == 0)
|
|
6946
|
-
return EMPTY_ARRAY;
|
|
6968
|
+
return EMPTY_ARRAY$1;
|
|
6947
6969
|
var directiveEndIndex = tNode.directiveEnd;
|
|
6948
6970
|
if (!includeComponents && tNode.flags & 2 /* isComponentHost */)
|
|
6949
6971
|
directiveStartIndex++;
|
|
@@ -11554,7 +11576,7 @@
|
|
|
11554
11576
|
* a circular dependency among the providers.
|
|
11555
11577
|
*/
|
|
11556
11578
|
var CIRCULAR = {};
|
|
11557
|
-
var EMPTY_ARRAY$
|
|
11579
|
+
var EMPTY_ARRAY$2 = [];
|
|
11558
11580
|
/**
|
|
11559
11581
|
* A lazily initialized NullInjector.
|
|
11560
11582
|
*/
|
|
@@ -11803,7 +11825,7 @@
|
|
|
11803
11825
|
if (importTypesWithProviders_1 !== undefined) {
|
|
11804
11826
|
var _loop_1 = function (i) {
|
|
11805
11827
|
var _a = importTypesWithProviders_1[i], ngModule_1 = _a.ngModule, providers = _a.providers;
|
|
11806
|
-
deepForEach(providers, function (provider) { return _this.processProvider(provider, ngModule_1, providers || EMPTY_ARRAY$
|
|
11828
|
+
deepForEach(providers, function (provider) { return _this.processProvider(provider, ngModule_1, providers || EMPTY_ARRAY$2); });
|
|
11807
11829
|
};
|
|
11808
11830
|
for (var i = 0; i < importTypesWithProviders_1.length; i++) {
|
|
11809
11831
|
_loop_1(i);
|
|
@@ -13057,7 +13079,7 @@
|
|
|
13057
13079
|
if (value === EMPTY_OBJ) {
|
|
13058
13080
|
return {};
|
|
13059
13081
|
}
|
|
13060
|
-
else if (value === EMPTY_ARRAY) {
|
|
13082
|
+
else if (value === EMPTY_ARRAY$1) {
|
|
13061
13083
|
return [];
|
|
13062
13084
|
}
|
|
13063
13085
|
else {
|
|
@@ -14159,7 +14181,7 @@
|
|
|
14159
14181
|
|
|
14160
14182
|
var ɵ0$9 = getClosureSafeProperty;
|
|
14161
14183
|
var USE_VALUE$2 = getClosureSafeProperty({ provide: String, useValue: ɵ0$9 });
|
|
14162
|
-
var EMPTY_ARRAY$
|
|
14184
|
+
var EMPTY_ARRAY$3 = [];
|
|
14163
14185
|
function convertInjectableProviderToFactory(type, provider) {
|
|
14164
14186
|
if (!provider) {
|
|
14165
14187
|
var reflectionCapabilities = new ReflectionCapabilities();
|
|
@@ -14177,7 +14199,7 @@
|
|
|
14177
14199
|
}
|
|
14178
14200
|
else if (provider.useFactory) {
|
|
14179
14201
|
var factoryProvider_1 = provider;
|
|
14180
|
-
return function () { return factoryProvider_1.useFactory.apply(factoryProvider_1, __spread(injectArgs(factoryProvider_1.deps || EMPTY_ARRAY$
|
|
14202
|
+
return function () { return factoryProvider_1.useFactory.apply(factoryProvider_1, __spread(injectArgs(factoryProvider_1.deps || EMPTY_ARRAY$3))); };
|
|
14181
14203
|
}
|
|
14182
14204
|
else if (provider.useClass) {
|
|
14183
14205
|
var classProvider_1 = provider;
|
|
@@ -16375,31 +16397,6 @@
|
|
|
16375
16397
|
return ɵɵpropertyInterpolateV;
|
|
16376
16398
|
}
|
|
16377
16399
|
|
|
16378
|
-
/**
|
|
16379
|
-
* @license
|
|
16380
|
-
* Copyright Google LLC All Rights Reserved.
|
|
16381
|
-
*
|
|
16382
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
16383
|
-
* found in the LICENSE file at https://angular.io/license
|
|
16384
|
-
*/
|
|
16385
|
-
/**
|
|
16386
|
-
* This file contains reuseable "empty" symbols that can be used as default return values
|
|
16387
|
-
* in different parts of the rendering code. Because the same symbols are returned, this
|
|
16388
|
-
* allows for identity checks against these values to be consistently used by the framework
|
|
16389
|
-
* code.
|
|
16390
|
-
*/
|
|
16391
|
-
var EMPTY_OBJ$1 = {};
|
|
16392
|
-
var EMPTY_ARRAY$3 = [];
|
|
16393
|
-
// freezing the values prevents any code from accidentally inserting new values in
|
|
16394
|
-
if ((typeof ngDevMode === 'undefined' || ngDevMode) && initNgDevMode()) {
|
|
16395
|
-
// These property accesses can be ignored because ngDevMode will be set to false
|
|
16396
|
-
// when optimizing code and the whole if statement will be dropped.
|
|
16397
|
-
// tslint:disable-next-line:no-toplevel-property-access
|
|
16398
|
-
Object.freeze(EMPTY_OBJ$1);
|
|
16399
|
-
// tslint:disable-next-line:no-toplevel-property-access
|
|
16400
|
-
Object.freeze(EMPTY_ARRAY$3);
|
|
16401
|
-
}
|
|
16402
|
-
|
|
16403
16400
|
/**
|
|
16404
16401
|
* @license
|
|
16405
16402
|
* Copyright Google LLC All Rights Reserved.
|
|
@@ -17582,7 +17579,7 @@
|
|
|
17582
17579
|
*/
|
|
17583
17580
|
function toStylingKeyValueArray(keyValueArraySet, stringParser, value) {
|
|
17584
17581
|
if (value == null /*|| value === undefined */ || value === '')
|
|
17585
|
-
return EMPTY_ARRAY
|
|
17582
|
+
return EMPTY_ARRAY;
|
|
17586
17583
|
var styleKeyValueArray = [];
|
|
17587
17584
|
var unwrappedValue = unwrapSafeValue(value);
|
|
17588
17585
|
if (Array.isArray(unwrappedValue)) {
|
|
@@ -17639,7 +17636,7 @@
|
|
|
17639
17636
|
function updateStylingMap(tView, tNode, lView, renderer, oldKeyValueArray, newKeyValueArray, isClassBased, bindingIndex) {
|
|
17640
17637
|
if (oldKeyValueArray === NO_CHANGE) {
|
|
17641
17638
|
// On first execution the oldKeyValueArray is NO_CHANGE => treat it as empty KeyValueArray.
|
|
17642
|
-
oldKeyValueArray = EMPTY_ARRAY
|
|
17639
|
+
oldKeyValueArray = EMPTY_ARRAY;
|
|
17643
17640
|
}
|
|
17644
17641
|
var oldIndex = 0;
|
|
17645
17642
|
var newIndex = 0;
|
|
@@ -17777,7 +17774,7 @@
|
|
|
17777
17774
|
// we have `undefined` (or empty array in case of styling-map instruction) instead. This
|
|
17778
17775
|
// allows the resolution to apply the value (which may later be overwritten when the
|
|
17779
17776
|
// binding actually executes.)
|
|
17780
|
-
valueAtLViewIndex = isStylingMap ? EMPTY_ARRAY
|
|
17777
|
+
valueAtLViewIndex = isStylingMap ? EMPTY_ARRAY : undefined;
|
|
17781
17778
|
}
|
|
17782
17779
|
var currentValue = isStylingMap ? keyValueArrayGet(valueAtLViewIndex, prop) :
|
|
17783
17780
|
key === prop ? valueAtLViewIndex : undefined;
|
|
@@ -20213,7 +20210,7 @@
|
|
|
20213
20210
|
_removes = tIcu.remove[currentCase];
|
|
20214
20211
|
}
|
|
20215
20212
|
else {
|
|
20216
|
-
_removes = EMPTY_ARRAY;
|
|
20213
|
+
_removes = EMPTY_ARRAY$1;
|
|
20217
20214
|
}
|
|
20218
20215
|
}
|
|
20219
20216
|
function icuContainerIteratorNext() {
|
|
@@ -21922,7 +21919,7 @@
|
|
|
21922
21919
|
/**
|
|
21923
21920
|
* @publicApi
|
|
21924
21921
|
*/
|
|
21925
|
-
var VERSION = new Version('11.2.
|
|
21922
|
+
var VERSION = new Version('11.2.6');
|
|
21926
21923
|
|
|
21927
21924
|
/**
|
|
21928
21925
|
* @license
|
|
@@ -28023,7 +28020,7 @@
|
|
|
28023
28020
|
}
|
|
28024
28021
|
}
|
|
28025
28022
|
var templateUrl = metadata.templateUrl || "ng:///" + type.name + "/template.html";
|
|
28026
|
-
var meta = Object.assign(Object.assign({}, directiveMetadata(type, metadata)), { typeSourceSpan: compiler.createParseSourceSpan('Component', type.name, templateUrl), template: metadata.template || '', preserveWhitespaces: preserveWhitespaces, styles: metadata.styles || EMPTY_ARRAY, animations: metadata.animations, directives: [], changeDetection: metadata.changeDetection, pipes: new Map(), encapsulation: encapsulation, interpolation: metadata.interpolation, viewProviders: metadata.viewProviders || null });
|
|
28023
|
+
var meta = Object.assign(Object.assign({}, directiveMetadata(type, metadata)), { typeSourceSpan: compiler.createParseSourceSpan('Component', type.name, templateUrl), template: metadata.template || '', preserveWhitespaces: preserveWhitespaces, styles: metadata.styles || EMPTY_ARRAY$1, animations: metadata.animations, directives: [], changeDetection: metadata.changeDetection, pipes: new Map(), encapsulation: encapsulation, interpolation: metadata.interpolation, viewProviders: metadata.viewProviders || null });
|
|
28027
28024
|
compilationDepth++;
|
|
28028
28025
|
try {
|
|
28029
28026
|
if (meta.usesInheritance) {
|
|
@@ -28132,8 +28129,8 @@
|
|
|
28132
28129
|
deps: reflectDependencies(type),
|
|
28133
28130
|
host: metadata.host || EMPTY_OBJ,
|
|
28134
28131
|
propMetadata: propMetadata,
|
|
28135
|
-
inputs: metadata.inputs || EMPTY_ARRAY,
|
|
28136
|
-
outputs: metadata.outputs || EMPTY_ARRAY,
|
|
28132
|
+
inputs: metadata.inputs || EMPTY_ARRAY$1,
|
|
28133
|
+
outputs: metadata.outputs || EMPTY_ARRAY$1,
|
|
28137
28134
|
queries: extractQueriesMetadata(type, propMetadata, isContentQuery),
|
|
28138
28135
|
lifecycle: { usesOnChanges: reflect.hasLifecycleHook(type, 'ngOnChanges') },
|
|
28139
28136
|
typeSourceSpan: null,
|