@angular/core 14.0.0-next.7 → 14.0.0-next.8
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/core.d.ts +30 -32
- package/esm2020/src/core_private_export.mjs +1 -1
- package/esm2020/src/core_render3_private_export.mjs +3 -3
- package/esm2020/src/di/injector_compatibility.mjs +2 -2
- package/esm2020/src/di/reflective_provider.mjs +4 -4
- package/esm2020/src/linker/ng_module_factory_loader.mjs +2 -2
- package/esm2020/src/linker/ng_module_registration.mjs +55 -0
- package/esm2020/src/reflection/platform_reflection_capabilities.mjs +1 -1
- package/esm2020/src/reflection/reflection_capabilities.mjs +1 -37
- package/esm2020/src/render3/i18n/i18n_parse.mjs +3 -3
- package/esm2020/src/render3/index.mjs +2 -2
- package/esm2020/src/render3/instructions/lview_debug.mjs +2 -2
- package/esm2020/src/render3/jit/environment.mjs +4 -1
- package/esm2020/src/render3/jit/module.mjs +7 -1
- package/esm2020/src/render3/jit/module_patch.mjs +11 -0
- package/esm2020/src/render3/ng_module_ref.mjs +1 -29
- package/esm2020/src/render3/state.mjs +14 -2
- package/esm2020/src/render3/styling/styling_parser.mjs +2 -2
- package/esm2020/src/version.mjs +1 -1
- package/esm2020/testing/src/logger.mjs +3 -3
- package/esm2020/testing/src/ng_zone_mock.mjs +3 -3
- package/esm2020/testing/src/r3_test_bed.mjs +8 -2
- package/fesm2015/core.mjs +94 -198
- package/fesm2015/core.mjs.map +1 -1
- package/fesm2015/testing.mjs +8 -2
- package/fesm2015/testing.mjs.map +1 -1
- package/fesm2020/core.mjs +94 -198
- package/fesm2020/core.mjs.map +1 -1
- package/fesm2020/testing.mjs +8 -2
- package/fesm2020/testing.mjs.map +1 -1
- package/package.json +1 -1
- package/schematics/migrations/typed-forms/util.d.ts +2 -1
- package/schematics/migrations/typed-forms/util.js +42 -13
- package/schematics/utils/import_manager.js +3 -15
- package/schematics/utils/typescript/imports.js +2 -7
- package/testing/testing.d.ts +1 -1
- package/esm2020/src/di/util.mjs +0 -51
- package/esm2020/src/linker/ng_module_factory_registration.mjs +0 -59
- package/esm2020/src/reflection/reflection.mjs +0 -16
- package/esm2020/src/reflection/reflector.mjs +0 -56
- package/esm2020/src/reflection/types.mjs +0 -9
package/fesm2020/core.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v14.0.0-next.
|
|
2
|
+
* @license Angular v14.0.0-next.8
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -1946,6 +1946,16 @@ function ɵɵrestoreView(viewToRestore) {
|
|
|
1946
1946
|
instructionState.lFrame.contextLView = viewToRestore;
|
|
1947
1947
|
return viewToRestore[CONTEXT];
|
|
1948
1948
|
}
|
|
1949
|
+
/**
|
|
1950
|
+
* Clears the view set in `ɵɵrestoreView` from memory. Returns the passed in
|
|
1951
|
+
* value so that it can be used as a return value of an instruction.
|
|
1952
|
+
*
|
|
1953
|
+
* @codeGenApi
|
|
1954
|
+
*/
|
|
1955
|
+
function ɵɵresetView(value) {
|
|
1956
|
+
instructionState.lFrame.contextLView = null;
|
|
1957
|
+
return value;
|
|
1958
|
+
}
|
|
1949
1959
|
function getCurrentTNode() {
|
|
1950
1960
|
let currentTNode = getCurrentTNodePlaceholderOk();
|
|
1951
1961
|
while (currentTNode !== null && currentTNode.type === 64 /* Placeholder */) {
|
|
@@ -1977,7 +1987,9 @@ function setCurrentTNodeAsParent() {
|
|
|
1977
1987
|
instructionState.lFrame.isParent = true;
|
|
1978
1988
|
}
|
|
1979
1989
|
function getContextLView() {
|
|
1980
|
-
|
|
1990
|
+
const contextLView = instructionState.lFrame.contextLView;
|
|
1991
|
+
ngDevMode && assertDefined(contextLView, 'contextLView must be defined.');
|
|
1992
|
+
return contextLView;
|
|
1981
1993
|
}
|
|
1982
1994
|
function isInCheckNoChangesMode() {
|
|
1983
1995
|
// TODO(misko): remove this from the LView since it is ngDevMode=true mode only.
|
|
@@ -4595,9 +4607,6 @@ class ReflectionCapabilities {
|
|
|
4595
4607
|
constructor(reflect) {
|
|
4596
4608
|
this._reflect = reflect || _global['Reflect'];
|
|
4597
4609
|
}
|
|
4598
|
-
isReflectionEnabled() {
|
|
4599
|
-
return true;
|
|
4600
|
-
}
|
|
4601
4610
|
factory(t) {
|
|
4602
4611
|
return (...args) => new t(...args);
|
|
4603
4612
|
}
|
|
@@ -4769,38 +4778,6 @@ class ReflectionCapabilities {
|
|
|
4769
4778
|
hasLifecycleHook(type, lcProperty) {
|
|
4770
4779
|
return type instanceof Type && lcProperty in type.prototype;
|
|
4771
4780
|
}
|
|
4772
|
-
guards(type) {
|
|
4773
|
-
return {};
|
|
4774
|
-
}
|
|
4775
|
-
getter(name) {
|
|
4776
|
-
return new Function('o', 'return o.' + name + ';');
|
|
4777
|
-
}
|
|
4778
|
-
setter(name) {
|
|
4779
|
-
return new Function('o', 'v', 'return o.' + name + ' = v;');
|
|
4780
|
-
}
|
|
4781
|
-
method(name) {
|
|
4782
|
-
const functionBody = `if (!o.${name}) throw new Error('"${name}" is undefined');
|
|
4783
|
-
return o.${name}.apply(o, args);`;
|
|
4784
|
-
return new Function('o', 'args', functionBody);
|
|
4785
|
-
}
|
|
4786
|
-
// There is not a concept of import uri in Js, but this is useful in developing Dart applications.
|
|
4787
|
-
importUri(type) {
|
|
4788
|
-
// StaticSymbol
|
|
4789
|
-
if (typeof type === 'object' && type['filePath']) {
|
|
4790
|
-
return type['filePath'];
|
|
4791
|
-
}
|
|
4792
|
-
// Runtime type
|
|
4793
|
-
return `./${stringify(type)}`;
|
|
4794
|
-
}
|
|
4795
|
-
resourceUri(type) {
|
|
4796
|
-
return `./${stringify(type)}`;
|
|
4797
|
-
}
|
|
4798
|
-
resolveIdentifier(name, moduleUrl, members, runtime) {
|
|
4799
|
-
return runtime;
|
|
4800
|
-
}
|
|
4801
|
-
resolveEnum(enumIdentifier, name) {
|
|
4802
|
-
return enumIdentifier[name];
|
|
4803
|
-
}
|
|
4804
4781
|
}
|
|
4805
4782
|
function convertTsickleDecoratorIntoMetadata(decoratorInvocations) {
|
|
4806
4783
|
if (!decoratorInvocations) {
|
|
@@ -4988,7 +4965,7 @@ function catchInjectorError(e, token, injectorErrorName, source) {
|
|
|
4988
4965
|
throw e;
|
|
4989
4966
|
}
|
|
4990
4967
|
function formatError(text, obj, injectorErrorName, source = null) {
|
|
4991
|
-
text = text && text.charAt(0) === '\n' && text.charAt(1) == NO_NEW_LINE ? text.
|
|
4968
|
+
text = text && text.charAt(0) === '\n' && text.charAt(1) == NO_NEW_LINE ? text.slice(2) : text;
|
|
4992
4969
|
let context = stringify(obj);
|
|
4993
4970
|
if (Array.isArray(obj)) {
|
|
4994
4971
|
context = obj.map(stringify).join(' -> ');
|
|
@@ -5247,6 +5224,60 @@ function componentDefResolved(type) {
|
|
|
5247
5224
|
componentDefPendingResolution.delete(type);
|
|
5248
5225
|
}
|
|
5249
5226
|
|
|
5227
|
+
/**
|
|
5228
|
+
* @license
|
|
5229
|
+
* Copyright Google LLC All Rights Reserved.
|
|
5230
|
+
*
|
|
5231
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
5232
|
+
* found in the LICENSE file at https://angular.io/license
|
|
5233
|
+
*/
|
|
5234
|
+
/**
|
|
5235
|
+
* Map of module-id to the corresponding NgModule.
|
|
5236
|
+
*/
|
|
5237
|
+
const modules = new Map();
|
|
5238
|
+
/**
|
|
5239
|
+
* Whether to check for duplicate NgModule registrations.
|
|
5240
|
+
*
|
|
5241
|
+
* This can be disabled for testing.
|
|
5242
|
+
*/
|
|
5243
|
+
let checkForDuplicateNgModules = true;
|
|
5244
|
+
function assertSameOrNotExisting(id, type, incoming) {
|
|
5245
|
+
if (type && type !== incoming && checkForDuplicateNgModules) {
|
|
5246
|
+
throw new Error(`Duplicate module registered for ${id} - ${stringify(type)} vs ${stringify(type.name)}`);
|
|
5247
|
+
}
|
|
5248
|
+
}
|
|
5249
|
+
/**
|
|
5250
|
+
* Adds the given NgModule type to Angular's NgModule registry.
|
|
5251
|
+
*
|
|
5252
|
+
* This is generated as a side-effect of NgModule compilation. Note that the `id` is passed in
|
|
5253
|
+
* explicitly and not read from the NgModule definition. This is for two reasons: it avoids a
|
|
5254
|
+
* megamorphic read, and in JIT there's a chicken-and-egg problem where the NgModule may not be
|
|
5255
|
+
* fully resolved when it's registered.
|
|
5256
|
+
*
|
|
5257
|
+
* @codeGenApi
|
|
5258
|
+
*/
|
|
5259
|
+
function registerNgModuleType(ngModuleType, id) {
|
|
5260
|
+
const existing = modules.get(id) || null;
|
|
5261
|
+
assertSameOrNotExisting(id, existing, ngModuleType);
|
|
5262
|
+
modules.set(id, ngModuleType);
|
|
5263
|
+
}
|
|
5264
|
+
function clearModulesForTest() {
|
|
5265
|
+
modules.clear();
|
|
5266
|
+
}
|
|
5267
|
+
function getRegisteredNgModuleType(id) {
|
|
5268
|
+
return modules.get(id);
|
|
5269
|
+
}
|
|
5270
|
+
/**
|
|
5271
|
+
* Control whether the NgModule registration system enforces that each NgModule type registered has
|
|
5272
|
+
* a unique id.
|
|
5273
|
+
*
|
|
5274
|
+
* This is useful for testing as the NgModule registry cannot be properly reset between tests with
|
|
5275
|
+
* Angular's current API.
|
|
5276
|
+
*/
|
|
5277
|
+
function setAllowDuplicateNgModuleIdsForTest(allowDuplicates) {
|
|
5278
|
+
checkForDuplicateNgModules = !allowDuplicates;
|
|
5279
|
+
}
|
|
5280
|
+
|
|
5250
5281
|
/**
|
|
5251
5282
|
* @license
|
|
5252
5283
|
* Copyright Google LLC All Rights Reserved.
|
|
@@ -8820,7 +8851,7 @@ function nameSuffix(text) {
|
|
|
8820
8851
|
if (text == null)
|
|
8821
8852
|
return '';
|
|
8822
8853
|
const index = text.lastIndexOf('_Template');
|
|
8823
|
-
return '_' + (index === -1 ? text : text.
|
|
8854
|
+
return '_' + (index === -1 ? text : text.slice(0, index));
|
|
8824
8855
|
}
|
|
8825
8856
|
/**
|
|
8826
8857
|
* This class is a debug version of Object literal so that we can have constructor name show up
|
|
@@ -13983,75 +14014,6 @@ class KeyRegistry {
|
|
|
13983
14014
|
}
|
|
13984
14015
|
const _globalKeyRegistry = new KeyRegistry();
|
|
13985
14016
|
|
|
13986
|
-
/**
|
|
13987
|
-
* @license
|
|
13988
|
-
* Copyright Google LLC All Rights Reserved.
|
|
13989
|
-
*
|
|
13990
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
13991
|
-
* found in the LICENSE file at https://angular.io/license
|
|
13992
|
-
*/
|
|
13993
|
-
/**
|
|
13994
|
-
* Provides access to reflection data about symbols. Used internally by Angular
|
|
13995
|
-
* to power dependency injection and compilation.
|
|
13996
|
-
*/
|
|
13997
|
-
class Reflector {
|
|
13998
|
-
constructor(reflectionCapabilities) {
|
|
13999
|
-
this.reflectionCapabilities = reflectionCapabilities;
|
|
14000
|
-
}
|
|
14001
|
-
updateCapabilities(caps) {
|
|
14002
|
-
this.reflectionCapabilities = caps;
|
|
14003
|
-
}
|
|
14004
|
-
factory(type) {
|
|
14005
|
-
return this.reflectionCapabilities.factory(type);
|
|
14006
|
-
}
|
|
14007
|
-
parameters(typeOrFunc) {
|
|
14008
|
-
return this.reflectionCapabilities.parameters(typeOrFunc);
|
|
14009
|
-
}
|
|
14010
|
-
annotations(typeOrFunc) {
|
|
14011
|
-
return this.reflectionCapabilities.annotations(typeOrFunc);
|
|
14012
|
-
}
|
|
14013
|
-
propMetadata(typeOrFunc) {
|
|
14014
|
-
return this.reflectionCapabilities.propMetadata(typeOrFunc);
|
|
14015
|
-
}
|
|
14016
|
-
hasLifecycleHook(type, lcProperty) {
|
|
14017
|
-
return this.reflectionCapabilities.hasLifecycleHook(type, lcProperty);
|
|
14018
|
-
}
|
|
14019
|
-
getter(name) {
|
|
14020
|
-
return this.reflectionCapabilities.getter(name);
|
|
14021
|
-
}
|
|
14022
|
-
setter(name) {
|
|
14023
|
-
return this.reflectionCapabilities.setter(name);
|
|
14024
|
-
}
|
|
14025
|
-
method(name) {
|
|
14026
|
-
return this.reflectionCapabilities.method(name);
|
|
14027
|
-
}
|
|
14028
|
-
importUri(type) {
|
|
14029
|
-
return this.reflectionCapabilities.importUri(type);
|
|
14030
|
-
}
|
|
14031
|
-
resourceUri(type) {
|
|
14032
|
-
return this.reflectionCapabilities.resourceUri(type);
|
|
14033
|
-
}
|
|
14034
|
-
resolveIdentifier(name, moduleUrl, members, runtime) {
|
|
14035
|
-
return this.reflectionCapabilities.resolveIdentifier(name, moduleUrl, members, runtime);
|
|
14036
|
-
}
|
|
14037
|
-
resolveEnum(identifier, name) {
|
|
14038
|
-
return this.reflectionCapabilities.resolveEnum(identifier, name);
|
|
14039
|
-
}
|
|
14040
|
-
}
|
|
14041
|
-
|
|
14042
|
-
/**
|
|
14043
|
-
* @license
|
|
14044
|
-
* Copyright Google LLC All Rights Reserved.
|
|
14045
|
-
*
|
|
14046
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
14047
|
-
* found in the LICENSE file at https://angular.io/license
|
|
14048
|
-
*/
|
|
14049
|
-
/**
|
|
14050
|
-
* The {@link Reflector} used internally in Angular to access metadata
|
|
14051
|
-
* about symbols.
|
|
14052
|
-
*/
|
|
14053
|
-
const reflector = new Reflector(new ReflectionCapabilities());
|
|
14054
|
-
|
|
14055
14017
|
/**
|
|
14056
14018
|
* @license
|
|
14057
14019
|
* Copyright Google LLC All Rights Reserved.
|
|
@@ -14108,7 +14070,7 @@ function resolveReflectiveFactory(provider) {
|
|
|
14108
14070
|
let resolvedDeps;
|
|
14109
14071
|
if (provider.useClass) {
|
|
14110
14072
|
const useClass = resolveForwardRef(provider.useClass);
|
|
14111
|
-
factoryFn =
|
|
14073
|
+
factoryFn = getReflect().factory(useClass);
|
|
14112
14074
|
resolvedDeps = _dependenciesFor(useClass);
|
|
14113
14075
|
}
|
|
14114
14076
|
else if (provider.useExisting) {
|
|
@@ -14204,7 +14166,7 @@ function constructDependencies(typeOrFunc, dependencies) {
|
|
|
14204
14166
|
}
|
|
14205
14167
|
}
|
|
14206
14168
|
function _dependenciesFor(typeOrFunc) {
|
|
14207
|
-
const params =
|
|
14169
|
+
const params = getReflect().parameters(typeOrFunc);
|
|
14208
14170
|
if (!params)
|
|
14209
14171
|
return [];
|
|
14210
14172
|
if (params.some(p => p == null)) {
|
|
@@ -16504,7 +16466,7 @@ function consumeQuotedText(text, quoteCharCode, startIndex, endIndex) {
|
|
|
16504
16466
|
function malformedStyleError(text, expecting, index) {
|
|
16505
16467
|
ngDevMode && assertEqual(typeof text === 'string', true, 'String expected here');
|
|
16506
16468
|
throw throwError(`Malformed style at location ${index} in string '` + text.substring(0, index) + '[>>' +
|
|
16507
|
-
text.substring(index, index + 1) + '<<]' + text.
|
|
16469
|
+
text.substring(index, index + 1) + '<<]' + text.slice(index + 1) +
|
|
16508
16470
|
`'. Expecting '${expecting}'.`);
|
|
16509
16471
|
}
|
|
16510
16472
|
|
|
@@ -20189,7 +20151,7 @@ function removeInnerTemplateTranslation(message) {
|
|
|
20189
20151
|
}
|
|
20190
20152
|
ngDevMode &&
|
|
20191
20153
|
assertEqual(inTemplate, false, `Tag mismatch: unable to find the end of the sub-template in the translation "${message}"`);
|
|
20192
|
-
res += message.
|
|
20154
|
+
res += message.slice(index);
|
|
20193
20155
|
return res;
|
|
20194
20156
|
}
|
|
20195
20157
|
/**
|
|
@@ -20281,7 +20243,7 @@ function parseICUBlock(pattern) {
|
|
|
20281
20243
|
else {
|
|
20282
20244
|
icuType = 1 /* plural */;
|
|
20283
20245
|
}
|
|
20284
|
-
mainBinding = parseInt(binding.
|
|
20246
|
+
mainBinding = parseInt(binding.slice(1), 10);
|
|
20285
20247
|
return '';
|
|
20286
20248
|
});
|
|
20287
20249
|
const parts = i18nParseTextIntoPartsAndICU(pattern);
|
|
@@ -21286,7 +21248,7 @@ class Version {
|
|
|
21286
21248
|
/**
|
|
21287
21249
|
* @publicApi
|
|
21288
21250
|
*/
|
|
21289
|
-
const VERSION = new Version('14.0.0-next.
|
|
21251
|
+
const VERSION = new Version('14.0.0-next.8');
|
|
21290
21252
|
|
|
21291
21253
|
/**
|
|
21292
21254
|
* @license
|
|
@@ -21925,62 +21887,6 @@ class NgModuleRef$1 {
|
|
|
21925
21887
|
class NgModuleFactory$1 {
|
|
21926
21888
|
}
|
|
21927
21889
|
|
|
21928
|
-
/**
|
|
21929
|
-
* @license
|
|
21930
|
-
* Copyright Google LLC All Rights Reserved.
|
|
21931
|
-
*
|
|
21932
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
21933
|
-
* found in the LICENSE file at https://angular.io/license
|
|
21934
|
-
*/
|
|
21935
|
-
/**
|
|
21936
|
-
* Map of module-id to the corresponding NgModule.
|
|
21937
|
-
* - In pre Ivy we track NgModuleFactory,
|
|
21938
|
-
* - In post Ivy we track the NgModuleType
|
|
21939
|
-
*/
|
|
21940
|
-
const modules = new Map();
|
|
21941
|
-
/**
|
|
21942
|
-
* Registers a loaded module. Should only be called from generated NgModuleFactory code.
|
|
21943
|
-
* @publicApi
|
|
21944
|
-
*/
|
|
21945
|
-
function registerModuleFactory(id, factory) {
|
|
21946
|
-
const existing = modules.get(id);
|
|
21947
|
-
assertSameOrNotExisting(id, existing && existing.moduleType, factory.moduleType);
|
|
21948
|
-
modules.set(id, factory);
|
|
21949
|
-
}
|
|
21950
|
-
function assertSameOrNotExisting(id, type, incoming) {
|
|
21951
|
-
if (type && type !== incoming) {
|
|
21952
|
-
throw new Error(`Duplicate module registered for ${id} - ${stringify(type)} vs ${stringify(type.name)}`);
|
|
21953
|
-
}
|
|
21954
|
-
}
|
|
21955
|
-
function registerNgModuleType(ngModuleType) {
|
|
21956
|
-
const visited = new Set();
|
|
21957
|
-
recurse(ngModuleType);
|
|
21958
|
-
function recurse(ngModuleType) {
|
|
21959
|
-
// The imports array of an NgModule must refer to other NgModules,
|
|
21960
|
-
// so an error is thrown if no module definition is available.
|
|
21961
|
-
const def = getNgModuleDef(ngModuleType, /* throwNotFound */ true);
|
|
21962
|
-
const id = def.id;
|
|
21963
|
-
if (id !== null) {
|
|
21964
|
-
const existing = modules.get(id);
|
|
21965
|
-
assertSameOrNotExisting(id, existing, ngModuleType);
|
|
21966
|
-
modules.set(id, ngModuleType);
|
|
21967
|
-
}
|
|
21968
|
-
const imports = maybeUnwrapFn(def.imports);
|
|
21969
|
-
for (const i of imports) {
|
|
21970
|
-
if (!visited.has(i)) {
|
|
21971
|
-
visited.add(i);
|
|
21972
|
-
recurse(i);
|
|
21973
|
-
}
|
|
21974
|
-
}
|
|
21975
|
-
}
|
|
21976
|
-
}
|
|
21977
|
-
function clearModulesForTest() {
|
|
21978
|
-
modules.clear();
|
|
21979
|
-
}
|
|
21980
|
-
function getRegisteredNgModuleType(id) {
|
|
21981
|
-
return (modules.get(id) || autoRegisterModuleById[id]);
|
|
21982
|
-
}
|
|
21983
|
-
|
|
21984
21890
|
/**
|
|
21985
21891
|
* @license
|
|
21986
21892
|
* Copyright Google LLC All Rights Reserved.
|
|
@@ -22051,33 +21957,6 @@ class NgModuleFactory extends NgModuleFactory$1 {
|
|
|
22051
21957
|
constructor(moduleType) {
|
|
22052
21958
|
super();
|
|
22053
21959
|
this.moduleType = moduleType;
|
|
22054
|
-
const ngModuleDef = getNgModuleDef(moduleType);
|
|
22055
|
-
if (ngModuleDef !== null) {
|
|
22056
|
-
// Register the NgModule with Angular's module registry. The location (and hence timing) of
|
|
22057
|
-
// this call is critical to ensure this works correctly (modules get registered when expected)
|
|
22058
|
-
// without bloating bundles (modules are registered when otherwise not referenced).
|
|
22059
|
-
//
|
|
22060
|
-
// In View Engine, registration occurs in the .ngfactory.js file as a side effect. This has
|
|
22061
|
-
// several practical consequences:
|
|
22062
|
-
//
|
|
22063
|
-
// - If an .ngfactory file is not imported from, the module won't be registered (and can be
|
|
22064
|
-
// tree shaken).
|
|
22065
|
-
// - If an .ngfactory file is imported from, the module will be registered even if an instance
|
|
22066
|
-
// is not actually created (via `create` below).
|
|
22067
|
-
// - Since an .ngfactory file in View Engine references the .ngfactory files of the NgModule's
|
|
22068
|
-
// imports,
|
|
22069
|
-
//
|
|
22070
|
-
// In Ivy, things are a bit different. .ngfactory files still exist for compatibility, but are
|
|
22071
|
-
// not a required API to use - there are other ways to obtain an NgModuleFactory for a given
|
|
22072
|
-
// NgModule. Thus, relying on a side effect in the .ngfactory file is not sufficient. Instead,
|
|
22073
|
-
// the side effect of registration is added here, in the constructor of NgModuleFactory,
|
|
22074
|
-
// ensuring no matter how a factory is created, the module is registered correctly.
|
|
22075
|
-
//
|
|
22076
|
-
// An alternative would be to include the registration side effect inline following the actual
|
|
22077
|
-
// NgModule definition. This also has the correct timing, but breaks tree-shaking - modules
|
|
22078
|
-
// will be registered and retained even if they're otherwise never referenced.
|
|
22079
|
-
registerNgModuleType(moduleType);
|
|
22080
|
-
}
|
|
22081
21960
|
}
|
|
22082
21961
|
create(parentInjector) {
|
|
22083
21962
|
return new NgModuleRef(this.moduleType, parentInjector);
|
|
@@ -23756,6 +23635,7 @@ const angularCoreEnv = (() => ({
|
|
|
23756
23635
|
'ɵɵinvalidFactory': ɵɵinvalidFactory,
|
|
23757
23636
|
'ɵɵinvalidFactoryDep': ɵɵinvalidFactoryDep,
|
|
23758
23637
|
'ɵɵtemplateRefExtractor': ɵɵtemplateRefExtractor,
|
|
23638
|
+
'ɵɵresetView': ɵɵresetView,
|
|
23759
23639
|
'ɵɵNgOnChangesFeature': ɵɵNgOnChangesFeature,
|
|
23760
23640
|
'ɵɵProvidersFeature': ɵɵProvidersFeature,
|
|
23761
23641
|
'ɵɵCopyDefinitionFeature': ɵɵCopyDefinitionFeature,
|
|
@@ -23868,6 +23748,7 @@ const angularCoreEnv = (() => ({
|
|
|
23868
23748
|
'ɵɵresolveBody': ɵɵresolveBody,
|
|
23869
23749
|
'ɵɵsetComponentScope': ɵɵsetComponentScope,
|
|
23870
23750
|
'ɵɵsetNgModuleScope': ɵɵsetNgModuleScope,
|
|
23751
|
+
'ɵɵregisterNgModuleType': registerNgModuleType,
|
|
23871
23752
|
'ɵɵsanitizeHtml': ɵɵsanitizeHtml,
|
|
23872
23753
|
'ɵɵsanitizeStyle': ɵɵsanitizeStyle,
|
|
23873
23754
|
'ɵɵsanitizeResourceUrl': ɵɵsanitizeResourceUrl,
|
|
@@ -23903,6 +23784,17 @@ function resetJitOptions() {
|
|
|
23903
23784
|
jitOptions = null;
|
|
23904
23785
|
}
|
|
23905
23786
|
|
|
23787
|
+
/**
|
|
23788
|
+
* @license
|
|
23789
|
+
* Copyright Google LLC All Rights Reserved.
|
|
23790
|
+
*
|
|
23791
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
23792
|
+
* found in the LICENSE file at https://angular.io/license
|
|
23793
|
+
*/
|
|
23794
|
+
function patchModuleCompilation() {
|
|
23795
|
+
// Does nothing, but exists as a target for patching.
|
|
23796
|
+
}
|
|
23797
|
+
|
|
23906
23798
|
/**
|
|
23907
23799
|
* @license
|
|
23908
23800
|
* Copyright Google LLC All Rights Reserved.
|
|
@@ -23959,7 +23851,11 @@ function isResolvedDeclaration(declaration) {
|
|
|
23959
23851
|
* This function automatically gets called when a class has a `@NgModule` decorator.
|
|
23960
23852
|
*/
|
|
23961
23853
|
function compileNgModule(moduleType, ngModule = {}) {
|
|
23854
|
+
patchModuleCompilation();
|
|
23962
23855
|
compileNgModuleDefs(moduleType, ngModule);
|
|
23856
|
+
if (ngModule.id !== undefined) {
|
|
23857
|
+
registerNgModuleType(moduleType, ngModule.id);
|
|
23858
|
+
}
|
|
23963
23859
|
// Because we don't know if all declarations have resolved yet at the moment the
|
|
23964
23860
|
// NgModule decorator is executing, we're enqueueing the setting of module scope
|
|
23965
23861
|
// on its declarations to be run at a later time when all declarations for the module,
|
|
@@ -28971,5 +28867,5 @@ if (typeof ngDevMode !== 'undefined' && ngDevMode) {
|
|
|
28971
28867
|
* Generated bundle index. Do not edit.
|
|
28972
28868
|
*/
|
|
28973
28869
|
|
|
28974
|
-
export { ANALYZE_FOR_ENTRY_COMPONENTS, ANIMATION_MODULE_TYPE, APP_BOOTSTRAP_LISTENER, APP_ID, APP_INITIALIZER, ApplicationInitStatus, ApplicationModule, ApplicationRef, Attribute, COMPILER_OPTIONS, CUSTOM_ELEMENTS_SCHEMA, ChangeDetectionStrategy, ChangeDetectorRef, Compiler, CompilerFactory, Component, ComponentFactory$1 as ComponentFactory, ComponentFactoryResolver$1 as ComponentFactoryResolver, ComponentRef$1 as ComponentRef, ContentChild, ContentChildren, DEFAULT_CURRENCY_CODE, DebugElement, DebugEventListener, DebugNode, DefaultIterableDiffer, Directive, ElementRef, EmbeddedViewRef, ErrorHandler, EventEmitter, Host, HostBinding, HostListener, INJECTOR, Inject, InjectFlags, Injectable, InjectionToken, Injector, Input, IterableDiffers, KeyValueDiffers, LOCALE_ID, MissingTranslationStrategy, ModuleWithComponentFactories, NO_ERRORS_SCHEMA, NgModule, NgModuleFactory$1 as NgModuleFactory, NgModuleRef$1 as NgModuleRef, NgProbeToken, NgZone, Optional, Output, PACKAGE_ROOT_URL, PLATFORM_ID, PLATFORM_INITIALIZER, Pipe, PlatformRef, Query, QueryList, ReflectiveInjector, ReflectiveKey, Renderer2, RendererFactory2, RendererStyleFlags2, ResolvedReflectiveFactory, Sanitizer, SecurityContext, Self, SimpleChange, SkipSelf, TRANSLATIONS, TRANSLATIONS_FORMAT, TemplateRef, Testability, TestabilityRegistry, Type, VERSION, Version, ViewChild, ViewChildren, ViewContainerRef, ViewEncapsulation$1 as ViewEncapsulation, ViewRef, asNativeElements, assertPlatform, createNgModuleRef, createPlatform, createPlatformFactory, defineInjectable, destroyPlatform, enableProdMode, forwardRef, getDebugNode, getModuleFactory, getNgModuleById, getPlatform, inject, isDevMode, platformCore, resolveForwardRef, setTestabilityGetter, ALLOW_MULTIPLE_PLATFORMS as ɵALLOW_MULTIPLE_PLATFORMS, APP_ID_RANDOM_PROVIDER as ɵAPP_ID_RANDOM_PROVIDER, ChangeDetectorStatus as ɵChangeDetectorStatus, ComponentFactory$1 as ɵComponentFactory, Console as ɵConsole, DEFAULT_LOCALE_ID as ɵDEFAULT_LOCALE_ID, INJECTOR_SCOPE as ɵINJECTOR_SCOPE, LContext as ɵLContext, LifecycleHooksFeature as ɵLifecycleHooksFeature, LocaleDataIndex as ɵLocaleDataIndex, NG_COMP_DEF as ɵNG_COMP_DEF, NG_DIR_DEF as ɵNG_DIR_DEF, NG_ELEMENT_ID as ɵNG_ELEMENT_ID, NG_INJ_DEF as ɵNG_INJ_DEF, NG_MOD_DEF as ɵNG_MOD_DEF, NG_PIPE_DEF as ɵNG_PIPE_DEF, NG_PROV_DEF as ɵNG_PROV_DEF, NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR as ɵNOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR, NO_CHANGE as ɵNO_CHANGE, NgModuleFactory as ɵNgModuleFactory, NoopNgZone as ɵNoopNgZone, ReflectionCapabilities as ɵReflectionCapabilities, ComponentFactory as ɵRender3ComponentFactory, ComponentRef as ɵRender3ComponentRef, NgModuleRef as ɵRender3NgModuleRef, RuntimeError as ɵRuntimeError, ViewRef$1 as ɵViewRef, _sanitizeHtml as ɵ_sanitizeHtml, _sanitizeUrl as ɵ_sanitizeUrl, allowSanitizationBypassAndThrow as ɵallowSanitizationBypassAndThrow, bypassSanitizationTrustHtml as ɵbypassSanitizationTrustHtml, bypassSanitizationTrustResourceUrl as ɵbypassSanitizationTrustResourceUrl, bypassSanitizationTrustScript as ɵbypassSanitizationTrustScript, bypassSanitizationTrustStyle as ɵbypassSanitizationTrustStyle, bypassSanitizationTrustUrl as ɵbypassSanitizationTrustUrl, clearResolutionOfComponentResourcesQueue as ɵclearResolutionOfComponentResourcesQueue, coerceToBoolean as ɵcoerceToBoolean, compileComponent as ɵcompileComponent, compileDirective as ɵcompileDirective, compileNgModule as ɵcompileNgModule, compileNgModuleDefs as ɵcompileNgModuleDefs, compileNgModuleFactory as ɵcompileNgModuleFactory, compilePipe as ɵcompilePipe, createInjector as ɵcreateInjector, defaultIterableDiffers as ɵdefaultIterableDiffers, defaultKeyValueDiffers as ɵdefaultKeyValueDiffers, detectChanges as ɵdetectChanges, devModeEqual as ɵdevModeEqual, findLocaleData as ɵfindLocaleData, flushModuleScopingQueueAsMuchAsPossible as ɵflushModuleScopingQueueAsMuchAsPossible, getDebugNode as ɵgetDebugNode, getDebugNodeR2 as ɵgetDebugNodeR2, getDirectives as ɵgetDirectives, getHostElement as ɵgetHostElement, getInjectableDef as ɵgetInjectableDef, getLContext as ɵgetLContext, getLocaleCurrencyCode as ɵgetLocaleCurrencyCode, getLocalePluralCase as ɵgetLocalePluralCase, getSanitizationBypassType as ɵgetSanitizationBypassType, _global as ɵglobal, injectChangeDetectorRef as ɵinjectChangeDetectorRef, isBoundToModule as ɵisBoundToModule, isDefaultChangeDetectionStrategy as ɵisDefaultChangeDetectionStrategy, isListLikeIterable as ɵisListLikeIterable, isObservable as ɵisObservable, isPromise as ɵisPromise, isSubscribable as ɵisSubscribable, ɵivyEnabled, makeDecorator as ɵmakeDecorator, markDirty as ɵmarkDirty, noSideEffects as ɵnoSideEffects, patchComponentDefWithScope as ɵpatchComponentDefWithScope, publishDefaultGlobalUtils$1 as ɵpublishDefaultGlobalUtils, publishGlobalUtil as ɵpublishGlobalUtil, registerLocaleData as ɵregisterLocaleData,
|
|
28870
|
+
export { ANALYZE_FOR_ENTRY_COMPONENTS, ANIMATION_MODULE_TYPE, APP_BOOTSTRAP_LISTENER, APP_ID, APP_INITIALIZER, ApplicationInitStatus, ApplicationModule, ApplicationRef, Attribute, COMPILER_OPTIONS, CUSTOM_ELEMENTS_SCHEMA, ChangeDetectionStrategy, ChangeDetectorRef, Compiler, CompilerFactory, Component, ComponentFactory$1 as ComponentFactory, ComponentFactoryResolver$1 as ComponentFactoryResolver, ComponentRef$1 as ComponentRef, ContentChild, ContentChildren, DEFAULT_CURRENCY_CODE, DebugElement, DebugEventListener, DebugNode, DefaultIterableDiffer, Directive, ElementRef, EmbeddedViewRef, ErrorHandler, EventEmitter, Host, HostBinding, HostListener, INJECTOR, Inject, InjectFlags, Injectable, InjectionToken, Injector, Input, IterableDiffers, KeyValueDiffers, LOCALE_ID, MissingTranslationStrategy, ModuleWithComponentFactories, NO_ERRORS_SCHEMA, NgModule, NgModuleFactory$1 as NgModuleFactory, NgModuleRef$1 as NgModuleRef, NgProbeToken, NgZone, Optional, Output, PACKAGE_ROOT_URL, PLATFORM_ID, PLATFORM_INITIALIZER, Pipe, PlatformRef, Query, QueryList, ReflectiveInjector, ReflectiveKey, Renderer2, RendererFactory2, RendererStyleFlags2, ResolvedReflectiveFactory, Sanitizer, SecurityContext, Self, SimpleChange, SkipSelf, TRANSLATIONS, TRANSLATIONS_FORMAT, TemplateRef, Testability, TestabilityRegistry, Type, VERSION, Version, ViewChild, ViewChildren, ViewContainerRef, ViewEncapsulation$1 as ViewEncapsulation, ViewRef, asNativeElements, assertPlatform, createNgModuleRef, createPlatform, createPlatformFactory, defineInjectable, destroyPlatform, enableProdMode, forwardRef, getDebugNode, getModuleFactory, getNgModuleById, getPlatform, inject, isDevMode, platformCore, resolveForwardRef, setTestabilityGetter, ALLOW_MULTIPLE_PLATFORMS as ɵALLOW_MULTIPLE_PLATFORMS, APP_ID_RANDOM_PROVIDER as ɵAPP_ID_RANDOM_PROVIDER, ChangeDetectorStatus as ɵChangeDetectorStatus, ComponentFactory$1 as ɵComponentFactory, Console as ɵConsole, DEFAULT_LOCALE_ID as ɵDEFAULT_LOCALE_ID, INJECTOR_SCOPE as ɵINJECTOR_SCOPE, LContext as ɵLContext, LifecycleHooksFeature as ɵLifecycleHooksFeature, LocaleDataIndex as ɵLocaleDataIndex, NG_COMP_DEF as ɵNG_COMP_DEF, NG_DIR_DEF as ɵNG_DIR_DEF, NG_ELEMENT_ID as ɵNG_ELEMENT_ID, NG_INJ_DEF as ɵNG_INJ_DEF, NG_MOD_DEF as ɵNG_MOD_DEF, NG_PIPE_DEF as ɵNG_PIPE_DEF, NG_PROV_DEF as ɵNG_PROV_DEF, NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR as ɵNOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR, NO_CHANGE as ɵNO_CHANGE, NgModuleFactory as ɵNgModuleFactory, NoopNgZone as ɵNoopNgZone, ReflectionCapabilities as ɵReflectionCapabilities, ComponentFactory as ɵRender3ComponentFactory, ComponentRef as ɵRender3ComponentRef, NgModuleRef as ɵRender3NgModuleRef, RuntimeError as ɵRuntimeError, ViewRef$1 as ɵViewRef, _sanitizeHtml as ɵ_sanitizeHtml, _sanitizeUrl as ɵ_sanitizeUrl, allowSanitizationBypassAndThrow as ɵallowSanitizationBypassAndThrow, bypassSanitizationTrustHtml as ɵbypassSanitizationTrustHtml, bypassSanitizationTrustResourceUrl as ɵbypassSanitizationTrustResourceUrl, bypassSanitizationTrustScript as ɵbypassSanitizationTrustScript, bypassSanitizationTrustStyle as ɵbypassSanitizationTrustStyle, bypassSanitizationTrustUrl as ɵbypassSanitizationTrustUrl, clearResolutionOfComponentResourcesQueue as ɵclearResolutionOfComponentResourcesQueue, coerceToBoolean as ɵcoerceToBoolean, compileComponent as ɵcompileComponent, compileDirective as ɵcompileDirective, compileNgModule as ɵcompileNgModule, compileNgModuleDefs as ɵcompileNgModuleDefs, compileNgModuleFactory as ɵcompileNgModuleFactory, compilePipe as ɵcompilePipe, createInjector as ɵcreateInjector, defaultIterableDiffers as ɵdefaultIterableDiffers, defaultKeyValueDiffers as ɵdefaultKeyValueDiffers, detectChanges as ɵdetectChanges, devModeEqual as ɵdevModeEqual, findLocaleData as ɵfindLocaleData, flushModuleScopingQueueAsMuchAsPossible as ɵflushModuleScopingQueueAsMuchAsPossible, getDebugNode as ɵgetDebugNode, getDebugNodeR2 as ɵgetDebugNodeR2, getDirectives as ɵgetDirectives, getHostElement as ɵgetHostElement, getInjectableDef as ɵgetInjectableDef, getLContext as ɵgetLContext, getLocaleCurrencyCode as ɵgetLocaleCurrencyCode, getLocalePluralCase as ɵgetLocalePluralCase, getSanitizationBypassType as ɵgetSanitizationBypassType, _global as ɵglobal, injectChangeDetectorRef as ɵinjectChangeDetectorRef, isBoundToModule as ɵisBoundToModule, isDefaultChangeDetectionStrategy as ɵisDefaultChangeDetectionStrategy, isListLikeIterable as ɵisListLikeIterable, isObservable as ɵisObservable, isPromise as ɵisPromise, isSubscribable as ɵisSubscribable, ɵivyEnabled, makeDecorator as ɵmakeDecorator, markDirty as ɵmarkDirty, noSideEffects as ɵnoSideEffects, patchComponentDefWithScope as ɵpatchComponentDefWithScope, publishDefaultGlobalUtils$1 as ɵpublishDefaultGlobalUtils, publishGlobalUtil as ɵpublishGlobalUtil, registerLocaleData as ɵregisterLocaleData, renderComponent as ɵrenderComponent, resetCompiledComponents as ɵresetCompiledComponents, resetJitOptions as ɵresetJitOptions, resolveComponentResources as ɵresolveComponentResources, setAllowDuplicateNgModuleIdsForTest as ɵsetAllowDuplicateNgModuleIdsForTest, setClassMetadata as ɵsetClassMetadata, setCurrentInjector as ɵsetCurrentInjector, setDocument as ɵsetDocument, setLocaleId as ɵsetLocaleId, store as ɵstore, stringify as ɵstringify, transitiveScopesFor as ɵtransitiveScopesFor, unregisterAllLocaleData as ɵunregisterLocaleData, unwrapSafeValue as ɵunwrapSafeValue, whenRendered as ɵwhenRendered, ɵɵCopyDefinitionFeature, FactoryTarget as ɵɵFactoryTarget, ɵɵInheritDefinitionFeature, ɵɵNgOnChangesFeature, ɵɵProvidersFeature, ɵɵadvance, ɵɵattribute, ɵɵattributeInterpolate1, ɵɵattributeInterpolate2, ɵɵattributeInterpolate3, ɵɵattributeInterpolate4, ɵɵattributeInterpolate5, ɵɵattributeInterpolate6, ɵɵattributeInterpolate7, ɵɵattributeInterpolate8, ɵɵattributeInterpolateV, ɵɵclassMap, ɵɵclassMapInterpolate1, ɵɵclassMapInterpolate2, ɵɵclassMapInterpolate3, ɵɵclassMapInterpolate4, ɵɵclassMapInterpolate5, ɵɵclassMapInterpolate6, ɵɵclassMapInterpolate7, ɵɵclassMapInterpolate8, ɵɵclassMapInterpolateV, ɵɵclassProp, ɵɵcontentQuery, ɵɵdefineComponent, ɵɵdefineDirective, ɵɵdefineInjectable, ɵɵdefineInjector, ɵɵdefineNgModule, ɵɵdefinePipe, ɵɵdirectiveInject, ɵɵdisableBindings, ɵɵelement, ɵɵelementContainer, ɵɵelementContainerEnd, ɵɵelementContainerStart, ɵɵelementEnd, ɵɵelementStart, ɵɵenableBindings, ɵɵgetCurrentView, ɵɵgetInheritedFactory, ɵɵhostProperty, ɵɵi18n, ɵɵi18nApply, ɵɵi18nAttributes, ɵɵi18nEnd, ɵɵi18nExp, ɵɵi18nPostprocess, ɵɵi18nStart, ɵɵinject, ɵɵinjectAttribute, ɵɵinvalidFactory, ɵɵinvalidFactoryDep, ɵɵlistener, ɵɵloadQuery, ɵɵnamespaceHTML, ɵɵnamespaceMathML, ɵɵnamespaceSVG, ɵɵnextContext, ɵɵngDeclareClassMetadata, ɵɵngDeclareComponent, ɵɵngDeclareDirective, ɵɵngDeclareFactory, ɵɵngDeclareInjectable, ɵɵngDeclareInjector, ɵɵngDeclareNgModule, ɵɵngDeclarePipe, ɵɵpipe, ɵɵpipeBind1, ɵɵpipeBind2, ɵɵpipeBind3, ɵɵpipeBind4, ɵɵpipeBindV, ɵɵprojection, ɵɵprojectionDef, ɵɵproperty, ɵɵpropertyInterpolate, ɵɵpropertyInterpolate1, ɵɵpropertyInterpolate2, ɵɵpropertyInterpolate3, ɵɵpropertyInterpolate4, ɵɵpropertyInterpolate5, ɵɵpropertyInterpolate6, ɵɵpropertyInterpolate7, ɵɵpropertyInterpolate8, ɵɵpropertyInterpolateV, ɵɵpureFunction0, ɵɵpureFunction1, ɵɵpureFunction2, ɵɵpureFunction3, ɵɵpureFunction4, ɵɵpureFunction5, ɵɵpureFunction6, ɵɵpureFunction7, ɵɵpureFunction8, ɵɵpureFunctionV, ɵɵqueryRefresh, ɵɵreference, registerNgModuleType as ɵɵregisterNgModuleType, ɵɵresetView, ɵɵresolveBody, ɵɵresolveDocument, ɵɵresolveWindow, ɵɵrestoreView, ɵɵsanitizeHtml, ɵɵsanitizeResourceUrl, ɵɵsanitizeScript, ɵɵsanitizeStyle, ɵɵsanitizeUrl, ɵɵsanitizeUrlOrResourceUrl, ɵɵsetComponentScope, ɵɵsetNgModuleScope, ɵɵstyleMap, ɵɵstyleMapInterpolate1, ɵɵstyleMapInterpolate2, ɵɵstyleMapInterpolate3, ɵɵstyleMapInterpolate4, ɵɵstyleMapInterpolate5, ɵɵstyleMapInterpolate6, ɵɵstyleMapInterpolate7, ɵɵstyleMapInterpolate8, ɵɵstyleMapInterpolateV, ɵɵstyleProp, ɵɵstylePropInterpolate1, ɵɵstylePropInterpolate2, ɵɵstylePropInterpolate3, ɵɵstylePropInterpolate4, ɵɵstylePropInterpolate5, ɵɵstylePropInterpolate6, ɵɵstylePropInterpolate7, ɵɵstylePropInterpolate8, ɵɵstylePropInterpolateV, ɵɵsyntheticHostListener, ɵɵsyntheticHostProperty, ɵɵtemplate, ɵɵtemplateRefExtractor, ɵɵtext, ɵɵtextInterpolate, ɵɵtextInterpolate1, ɵɵtextInterpolate2, ɵɵtextInterpolate3, ɵɵtextInterpolate4, ɵɵtextInterpolate5, ɵɵtextInterpolate6, ɵɵtextInterpolate7, ɵɵtextInterpolate8, ɵɵtextInterpolateV, ɵɵtrustConstantHtml, ɵɵtrustConstantResourceUrl, ɵɵviewQuery };
|
|
28975
28871
|
//# sourceMappingURL=core.mjs.map
|