@angular/compiler-cli 14.0.5 → 14.0.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/{chunk-EBIPNBQL.js → chunk-2AYJ6GHG.js} +5 -9
- package/bundles/chunk-2AYJ6GHG.js.map +6 -0
- package/bundles/{chunk-W6KM7BUM.js → chunk-4JF5LVDW.js} +5 -8
- package/bundles/chunk-4JF5LVDW.js.map +6 -0
- package/bundles/{chunk-JDKMNZ6O.js → chunk-ACDOC2V2.js} +2 -2
- package/bundles/chunk-ACDOC2V2.js.map +6 -0
- package/bundles/{chunk-R4NY3TJC.js → chunk-ACXPVP2W.js} +1 -1
- package/bundles/chunk-ACXPVP2W.js.map +6 -0
- package/bundles/{chunk-7XY4OMWJ.js → chunk-AFKKTW7O.js} +8 -11
- package/bundles/chunk-AFKKTW7O.js.map +6 -0
- package/bundles/{chunk-WGBFSDVQ.js → chunk-CYVTLM4Z.js} +2 -6
- package/bundles/chunk-CYVTLM4Z.js.map +6 -0
- package/bundles/{chunk-LX5Q27EF.js → chunk-E7NQQTT7.js} +1 -1
- package/bundles/{chunk-LX5Q27EF.js.map → chunk-E7NQQTT7.js.map} +1 -1
- package/bundles/{chunk-OLGEBPBY.js → chunk-FM6NPN5V.js} +3 -3
- package/bundles/{chunk-OLGEBPBY.js.map → chunk-FM6NPN5V.js.map} +0 -0
- package/bundles/{chunk-N5CM3LUE.js → chunk-FMUPZDH2.js} +56 -49
- package/bundles/chunk-FMUPZDH2.js.map +6 -0
- package/bundles/{chunk-XDCGNQL5.js → chunk-KMTVMEGC.js} +60 -46
- package/bundles/chunk-KMTVMEGC.js.map +6 -0
- package/bundles/{chunk-Z7J7RXFF.js → chunk-M7DRLMSX.js} +11 -12
- package/bundles/chunk-M7DRLMSX.js.map +6 -0
- package/bundles/{chunk-2IMT6JFI.js → chunk-NFCN3OZI.js} +1 -1
- package/bundles/chunk-NFCN3OZI.js.map +6 -0
- package/bundles/{chunk-DIXBUYVP.js → chunk-OIEPLJR7.js} +19 -23
- package/bundles/chunk-OIEPLJR7.js.map +6 -0
- package/bundles/{chunk-T7MYRXIE.js → chunk-TOKOIIBI.js} +2 -2
- package/bundles/chunk-TOKOIIBI.js.map +6 -0
- package/bundles/{chunk-GMSUYBZP.js → chunk-XYNRD7NE.js} +1 -33
- package/bundles/{chunk-GMSUYBZP.js.map → chunk-XYNRD7NE.js.map} +0 -0
- package/bundles/index.js +11 -13
- package/bundles/index.js.map +1 -1
- package/bundles/linker/babel/index.js +13 -17
- package/bundles/linker/babel/index.js.map +1 -1
- package/bundles/linker/index.js +5 -5
- package/bundles/ngcc/index.js +11 -11
- package/bundles/ngcc/main-ngcc.js +12 -12
- package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js +11 -11
- package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js.map +1 -1
- package/bundles/ngcc/src/locking/lock_file_with_child_process/ngcc_lock_unlocker.js +3 -3
- package/bundles/private/bazel.js +2 -2
- package/bundles/private/localize.js +4 -4
- package/bundles/private/migrations.js +6 -6
- package/bundles/private/tooling.js +3 -3
- package/bundles/src/bin/ng_xi18n.js +9 -12
- package/bundles/src/bin/ng_xi18n.js.map +1 -1
- package/bundles/src/bin/ngc.js +8 -8
- package/bundles_metadata.json +1 -1
- package/ngcc/src/packages/build_marker.d.ts +1 -1
- package/package.json +2 -2
- package/src/ngtsc/typecheck/src/tcb_util.d.ts +1 -1
- package/bundles/chunk-2IMT6JFI.js.map +0 -6
- package/bundles/chunk-7XY4OMWJ.js.map +0 -6
- package/bundles/chunk-DIXBUYVP.js.map +0 -6
- package/bundles/chunk-EBIPNBQL.js.map +0 -6
- package/bundles/chunk-JDKMNZ6O.js.map +0 -6
- package/bundles/chunk-N5CM3LUE.js.map +0 -6
- package/bundles/chunk-R4NY3TJC.js.map +0 -6
- package/bundles/chunk-T7MYRXIE.js.map +0 -6
- package/bundles/chunk-W6KM7BUM.js.map +0 -6
- package/bundles/chunk-WGBFSDVQ.js.map +0 -6
- package/bundles/chunk-XDCGNQL5.js.map +0 -6
- package/bundles/chunk-Z7J7RXFF.js.map +0 -6
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
reflectObjectLiteral,
|
|
14
14
|
reflectTypeEntityToDeclaration,
|
|
15
15
|
typeNodeToValueExpr
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-NFCN3OZI.js";
|
|
17
17
|
import {
|
|
18
18
|
ErrorCode,
|
|
19
19
|
FatalDiagnosticError,
|
|
@@ -33,20 +33,16 @@ import {
|
|
|
33
33
|
translateExpression,
|
|
34
34
|
translateStatement,
|
|
35
35
|
translateType
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-ACDOC2V2.js";
|
|
37
37
|
import {
|
|
38
38
|
absoluteFrom,
|
|
39
39
|
absoluteFromSourceFile,
|
|
40
40
|
relative
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-TOKOIIBI.js";
|
|
42
42
|
import {
|
|
43
43
|
PerfEvent,
|
|
44
44
|
PerfPhase
|
|
45
|
-
} from "./chunk-
|
|
46
|
-
import {
|
|
47
|
-
__spreadProps,
|
|
48
|
-
__spreadValues
|
|
49
|
-
} from "./chunk-GMSUYBZP.js";
|
|
45
|
+
} from "./chunk-ACXPVP2W.js";
|
|
50
46
|
|
|
51
47
|
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
|
|
52
48
|
import { ExternalExpr, ParseLocation, ParseSourceFile, ParseSourceSpan, ReadPropExpr, WrappedNodeExpr } from "@angular/compiler";
|
|
@@ -733,7 +729,7 @@ var StaticInterpreter = class {
|
|
|
733
729
|
} else if (isConcreteDeclaration(decl) && decl.identity !== null && decl.identity.kind === 0) {
|
|
734
730
|
return this.getResolvedEnum(decl.node, decl.identity.enumMembers, context);
|
|
735
731
|
}
|
|
736
|
-
const declContext =
|
|
732
|
+
const declContext = { ...context, ...joinModuleContext(context, node, decl) };
|
|
737
733
|
const result = this.visitAmbiguousDeclaration(decl, declContext);
|
|
738
734
|
if (result instanceof Reference) {
|
|
739
735
|
if (!result.synthetic) {
|
|
@@ -825,7 +821,10 @@ var StaticInterpreter = class {
|
|
|
825
821
|
if (decl.known !== null) {
|
|
826
822
|
return resolveKnownDeclaration(decl.known);
|
|
827
823
|
}
|
|
828
|
-
const declContext =
|
|
824
|
+
const declContext = {
|
|
825
|
+
...context,
|
|
826
|
+
...joinModuleContext(context, node, decl)
|
|
827
|
+
};
|
|
829
828
|
return this.visitAmbiguousDeclaration(decl, declContext);
|
|
830
829
|
});
|
|
831
830
|
}
|
|
@@ -908,7 +907,7 @@ var StaticInterpreter = class {
|
|
|
908
907
|
resolutionContext: lhs.bestGuessOwningModule.resolutionContext
|
|
909
908
|
};
|
|
910
909
|
}
|
|
911
|
-
return this.visitFfrExpression(expr,
|
|
910
|
+
return this.visitFfrExpression(expr, { ...context, ...contextExtension });
|
|
912
911
|
};
|
|
913
912
|
if (fn.body === null && context.foreignFunctionResolver !== void 0) {
|
|
914
913
|
const unresolvable = DynamicValue.fromDynamicInput(node, DynamicValue.fromExternalReference(node.expression, lhs));
|
|
@@ -937,7 +936,7 @@ var StaticInterpreter = class {
|
|
|
937
936
|
const ret = fn.body[0];
|
|
938
937
|
const args = this.evaluateFunctionArguments(node, context);
|
|
939
938
|
const newScope = /* @__PURE__ */ new Map();
|
|
940
|
-
const calleeContext =
|
|
939
|
+
const calleeContext = { ...context, scope: newScope };
|
|
941
940
|
fn.parameters.forEach((param, index) => {
|
|
942
941
|
let arg = args[index];
|
|
943
942
|
if (param.node.dotDotDotToken !== void 0) {
|
|
@@ -2261,7 +2260,7 @@ var DtsMetadataReader = class {
|
|
|
2261
2260
|
const isStandalone = def.type.typeArguments.length > 7 && ((_a = readBooleanType(def.type.typeArguments[7])) != null ? _a : false);
|
|
2262
2261
|
const inputs = ClassPropertyMapping.fromMappedObject(readStringMapType(def.type.typeArguments[3]));
|
|
2263
2262
|
const outputs = ClassPropertyMapping.fromMappedObject(readStringMapType(def.type.typeArguments[4]));
|
|
2264
|
-
return
|
|
2263
|
+
return {
|
|
2265
2264
|
kind: MetaKind.Directive,
|
|
2266
2265
|
ref,
|
|
2267
2266
|
name: clazz.name.text,
|
|
@@ -2270,8 +2269,8 @@ var DtsMetadataReader = class {
|
|
|
2270
2269
|
exportAs: readStringArrayType(def.type.typeArguments[2]),
|
|
2271
2270
|
inputs,
|
|
2272
2271
|
outputs,
|
|
2273
|
-
queries: readStringArrayType(def.type.typeArguments[5])
|
|
2274
|
-
|
|
2272
|
+
queries: readStringArrayType(def.type.typeArguments[5]),
|
|
2273
|
+
...extractDirectiveTypeCheckMeta(clazz, inputs, this.reflector),
|
|
2275
2274
|
baseClass: readBaseClass2(clazz, this.checker, this.reflector),
|
|
2276
2275
|
isPoisoned: false,
|
|
2277
2276
|
isStructural,
|
|
@@ -2279,7 +2278,7 @@ var DtsMetadataReader = class {
|
|
|
2279
2278
|
isStandalone,
|
|
2280
2279
|
imports: null,
|
|
2281
2280
|
schemas: null
|
|
2282
|
-
}
|
|
2281
|
+
};
|
|
2283
2282
|
}
|
|
2284
2283
|
getPipeMetadata(ref) {
|
|
2285
2284
|
var _a;
|
|
@@ -2374,7 +2373,8 @@ function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
|
2374
2373
|
}
|
|
2375
2374
|
};
|
|
2376
2375
|
addMetadata(topMeta);
|
|
2377
|
-
return
|
|
2376
|
+
return {
|
|
2377
|
+
...topMeta,
|
|
2378
2378
|
inputs,
|
|
2379
2379
|
outputs,
|
|
2380
2380
|
coercedInputFields,
|
|
@@ -2383,7 +2383,7 @@ function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
|
2383
2383
|
stringLiteralInputFields,
|
|
2384
2384
|
baseClass: isDynamic ? "dynamic" : null,
|
|
2385
2385
|
isStructural
|
|
2386
|
-
}
|
|
2386
|
+
};
|
|
2387
2387
|
}
|
|
2388
2388
|
|
|
2389
2389
|
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/registry.mjs
|
|
@@ -2611,9 +2611,10 @@ var MetadataDtsModuleScopeResolver = class {
|
|
|
2611
2611
|
if (alias === null) {
|
|
2612
2612
|
return dirOrPipe;
|
|
2613
2613
|
}
|
|
2614
|
-
return
|
|
2614
|
+
return {
|
|
2615
|
+
...dirOrPipe,
|
|
2615
2616
|
ref: ref.cloneWithAlias(alias)
|
|
2616
|
-
}
|
|
2617
|
+
};
|
|
2617
2618
|
}
|
|
2618
2619
|
};
|
|
2619
2620
|
|
|
@@ -2790,7 +2791,7 @@ var LocalModuleScopeRegistry = class {
|
|
|
2790
2791
|
isPoisoned = true;
|
|
2791
2792
|
continue;
|
|
2792
2793
|
}
|
|
2793
|
-
compilationDirectives.set(decl.node,
|
|
2794
|
+
compilationDirectives.set(decl.node, { ...directive, ref: decl });
|
|
2794
2795
|
if (directive.isPoisoned) {
|
|
2795
2796
|
isPoisoned = true;
|
|
2796
2797
|
}
|
|
@@ -2800,7 +2801,7 @@ var LocalModuleScopeRegistry = class {
|
|
|
2800
2801
|
isPoisoned = true;
|
|
2801
2802
|
continue;
|
|
2802
2803
|
}
|
|
2803
|
-
compilationPipes.set(decl.node,
|
|
2804
|
+
compilationPipes.set(decl.node, { ...pipe, ref: decl });
|
|
2804
2805
|
} else {
|
|
2805
2806
|
const errorNode = decl.getOriginForDiagnostics(ngModule.rawDeclarations);
|
|
2806
2807
|
diagnostics.push(makeDiagnostic(ErrorCode.NGMODULE_INVALID_DECLARATION, errorNode, `The class '${decl.node.name.text}' is listed in the declarations of the NgModule '${ngModule.ref.node.name.text}', but is not a directive, a component, or a pipe. Either remove it from the NgModule's declarations, or add an appropriate Angular decorator.`, [makeRelatedInformation(decl.node.name, `'${decl.node.name.text}' is declared here.`)]));
|
|
@@ -4075,8 +4076,8 @@ function extractDirectiveMetadata(clazz, decorator, reflector, evaluator, isCore
|
|
|
4075
4076
|
const usesInheritance = reflector.hasBaseClass(clazz);
|
|
4076
4077
|
const type = wrapTypeReference(reflector, clazz);
|
|
4077
4078
|
const internalType = new WrappedNodeExpr4(reflector.getInternalNameOfClass(clazz));
|
|
4078
|
-
const inputs = ClassPropertyMapping.fromMappedObject(
|
|
4079
|
-
const outputs = ClassPropertyMapping.fromMappedObject(
|
|
4079
|
+
const inputs = ClassPropertyMapping.fromMappedObject({ ...inputsFromMeta, ...inputsFromFields });
|
|
4080
|
+
const outputs = ClassPropertyMapping.fromMappedObject({ ...outputsFromMeta, ...outputsFromFields });
|
|
4080
4081
|
const metadata = {
|
|
4081
4082
|
name: clazz.name.text,
|
|
4082
4083
|
deps: ctorDeps,
|
|
@@ -4516,7 +4517,7 @@ var DirectiveDecoratorHandler = class {
|
|
|
4516
4517
|
}
|
|
4517
4518
|
register(node, analysis) {
|
|
4518
4519
|
const ref = new Reference(node);
|
|
4519
|
-
this.metaRegistry.registerDirectiveMetadata(
|
|
4520
|
+
this.metaRegistry.registerDirectiveMetadata({
|
|
4520
4521
|
kind: MetaKind.Directive,
|
|
4521
4522
|
ref,
|
|
4522
4523
|
name: node.name.text,
|
|
@@ -4526,15 +4527,15 @@ var DirectiveDecoratorHandler = class {
|
|
|
4526
4527
|
outputs: analysis.outputs,
|
|
4527
4528
|
queries: analysis.meta.queries.map((query) => query.propertyName),
|
|
4528
4529
|
isComponent: false,
|
|
4529
|
-
baseClass: analysis.baseClass
|
|
4530
|
-
|
|
4530
|
+
baseClass: analysis.baseClass,
|
|
4531
|
+
...analysis.typeCheckMeta,
|
|
4531
4532
|
isPoisoned: analysis.isPoisoned,
|
|
4532
4533
|
isStructural: analysis.isStructural,
|
|
4533
4534
|
animationTriggerNames: null,
|
|
4534
4535
|
isStandalone: analysis.meta.isStandalone,
|
|
4535
4536
|
imports: null,
|
|
4536
4537
|
schemas: null
|
|
4537
|
-
})
|
|
4538
|
+
});
|
|
4538
4539
|
this.injectableRegistry.registerInjectable(node);
|
|
4539
4540
|
}
|
|
4540
4541
|
resolve(node, analysis, symbol) {
|
|
@@ -4995,9 +4996,10 @@ var NgModuleDecoratorHandler = class {
|
|
|
4995
4996
|
}
|
|
4996
4997
|
compileFull(node, { inj, mod, fac, classMetadata, declarations, remoteScopesMayRequireCycleProtection }, { injectorImports }) {
|
|
4997
4998
|
const factoryFn = compileNgFactoryDefField(fac);
|
|
4998
|
-
const ngInjectorDef = compileInjector(
|
|
4999
|
+
const ngInjectorDef = compileInjector({
|
|
5000
|
+
...inj,
|
|
4999
5001
|
imports: injectorImports
|
|
5000
|
-
})
|
|
5002
|
+
});
|
|
5001
5003
|
const ngModuleDef = compileNgModule(mod);
|
|
5002
5004
|
const statements = ngModuleDef.statements;
|
|
5003
5005
|
const metadata = classMetadata !== null ? compileClassMetadata2(classMetadata) : null;
|
|
@@ -5007,9 +5009,10 @@ var NgModuleDecoratorHandler = class {
|
|
|
5007
5009
|
}
|
|
5008
5010
|
compilePartial(node, { inj, fac, mod, classMetadata }, { injectorImports }) {
|
|
5009
5011
|
const factoryFn = compileDeclareFactory(fac);
|
|
5010
|
-
const injectorDef = compileDeclareInjectorFromMetadata(
|
|
5012
|
+
const injectorDef = compileDeclareInjectorFromMetadata({
|
|
5013
|
+
...inj,
|
|
5011
5014
|
imports: injectorImports
|
|
5012
|
-
})
|
|
5015
|
+
});
|
|
5013
5016
|
const ngModuleDef = compileDeclareNgModuleFromMetadata(mod);
|
|
5014
5017
|
const metadata = classMetadata !== null ? compileDeclareClassMetadata2(classMetadata) : null;
|
|
5015
5018
|
this.insertMetadataStatement(ngModuleDef.statements, metadata);
|
|
@@ -5200,17 +5203,19 @@ function extractTemplate(node, template, evaluator, depTracker, resourceLoader,
|
|
|
5200
5203
|
};
|
|
5201
5204
|
sourceMapUrl = null;
|
|
5202
5205
|
}
|
|
5203
|
-
return
|
|
5206
|
+
return {
|
|
5207
|
+
...parseExtractedTemplate(template, sourceStr, sourceParseRange, escapedString, sourceMapUrl, options),
|
|
5204
5208
|
content: templateContent,
|
|
5205
5209
|
sourceMapping,
|
|
5206
5210
|
declaration: template
|
|
5207
|
-
}
|
|
5211
|
+
};
|
|
5208
5212
|
} else {
|
|
5209
5213
|
const templateContent = resourceLoader.load(template.resolvedTemplateUrl);
|
|
5210
5214
|
if (depTracker !== null) {
|
|
5211
5215
|
depTracker.addResourceDependency(node.getSourceFile(), absoluteFrom(template.resolvedTemplateUrl));
|
|
5212
5216
|
}
|
|
5213
|
-
return
|
|
5217
|
+
return {
|
|
5218
|
+
...parseExtractedTemplate(template, templateContent, null, false, template.resolvedTemplateUrl, options),
|
|
5214
5219
|
content: templateContent,
|
|
5215
5220
|
sourceMapping: {
|
|
5216
5221
|
type: "external",
|
|
@@ -5220,7 +5225,7 @@ function extractTemplate(node, template, evaluator, depTracker, resourceLoader,
|
|
|
5220
5225
|
templateUrl: template.resolvedTemplateUrl
|
|
5221
5226
|
},
|
|
5222
5227
|
declaration: template
|
|
5223
|
-
}
|
|
5228
|
+
};
|
|
5224
5229
|
}
|
|
5225
5230
|
}
|
|
5226
5231
|
function parseExtractedTemplate(template, sourceStr, sourceParseRange, escapedString, sourceMapUrl, options) {
|
|
@@ -5245,10 +5250,11 @@ function parseExtractedTemplate(template, sourceStr, sourceParseRange, escapedSt
|
|
|
5245
5250
|
leadingTriviaChars: [],
|
|
5246
5251
|
alwaysAttemptHtmlToR3AstConversion: options.usePoisonedData
|
|
5247
5252
|
});
|
|
5248
|
-
return
|
|
5253
|
+
return {
|
|
5254
|
+
...parsedTemplate,
|
|
5249
5255
|
diagNodes,
|
|
5250
5256
|
file: new ParseSourceFile2(sourceStr, sourceMapUrl != null ? sourceMapUrl : "")
|
|
5251
|
-
}
|
|
5257
|
+
};
|
|
5252
5258
|
}
|
|
5253
5259
|
function parseTemplateDeclaration(decorator, component, containingFile, evaluator, resourceLoader, defaultPreserveWhitespaces) {
|
|
5254
5260
|
let preserveWhitespaces = defaultPreserveWhitespaces;
|
|
@@ -5387,7 +5393,7 @@ function transformDecoratorResources(dec, component, styles, template) {
|
|
|
5387
5393
|
for (const [name, value] of metadata.entries()) {
|
|
5388
5394
|
newMetadataFields.push(ts23.factory.createPropertyAssignment(name, value));
|
|
5389
5395
|
}
|
|
5390
|
-
return
|
|
5396
|
+
return { ...dec, args: [ts23.factory.createObjectLiteralExpression(newMetadataFields)] };
|
|
5391
5397
|
}
|
|
5392
5398
|
function extractComponentStyleUrls(evaluator, component) {
|
|
5393
5399
|
if (!component.has("styleUrls")) {
|
|
@@ -5822,7 +5828,8 @@ var ComponentDecoratorHandler = class {
|
|
|
5822
5828
|
baseClass: readBaseClass(node, this.reflector, this.evaluator),
|
|
5823
5829
|
inputs,
|
|
5824
5830
|
outputs,
|
|
5825
|
-
meta:
|
|
5831
|
+
meta: {
|
|
5832
|
+
...metadata,
|
|
5826
5833
|
template: {
|
|
5827
5834
|
nodes: template.nodes,
|
|
5828
5835
|
ngContentSelectors: template.ngContentSelectors
|
|
@@ -5834,7 +5841,7 @@ var ComponentDecoratorHandler = class {
|
|
|
5834
5841
|
viewProviders: wrappedViewProviders,
|
|
5835
5842
|
i18nUseExternalIds: this.i18nUseExternalIds,
|
|
5836
5843
|
relativeContextFilePath
|
|
5837
|
-
}
|
|
5844
|
+
},
|
|
5838
5845
|
typeCheckMeta: extractDirectiveTypeCheckMeta(node, inputs, this.reflector),
|
|
5839
5846
|
classMetadata: extractClassMetadata(node, this.reflector, this.isCore, this.annotateForClosureCompiler, (dec) => transformDecoratorResources(dec, component, styles, template)),
|
|
5840
5847
|
template,
|
|
@@ -5865,7 +5872,7 @@ var ComponentDecoratorHandler = class {
|
|
|
5865
5872
|
}
|
|
5866
5873
|
register(node, analysis) {
|
|
5867
5874
|
const ref = new Reference(node);
|
|
5868
|
-
this.metaRegistry.registerDirectiveMetadata(
|
|
5875
|
+
this.metaRegistry.registerDirectiveMetadata({
|
|
5869
5876
|
kind: MetaKind.Directive,
|
|
5870
5877
|
ref,
|
|
5871
5878
|
name: node.name.text,
|
|
@@ -5875,15 +5882,15 @@ var ComponentDecoratorHandler = class {
|
|
|
5875
5882
|
outputs: analysis.outputs,
|
|
5876
5883
|
queries: analysis.meta.queries.map((query) => query.propertyName),
|
|
5877
5884
|
isComponent: true,
|
|
5878
|
-
baseClass: analysis.baseClass
|
|
5879
|
-
|
|
5885
|
+
baseClass: analysis.baseClass,
|
|
5886
|
+
...analysis.typeCheckMeta,
|
|
5880
5887
|
isPoisoned: analysis.isPoisoned,
|
|
5881
5888
|
isStructural: false,
|
|
5882
5889
|
isStandalone: analysis.meta.isStandalone,
|
|
5883
5890
|
imports: analysis.resolvedImports,
|
|
5884
5891
|
animationTriggerNames: analysis.animationTriggerNames,
|
|
5885
5892
|
schemas: analysis.schemas
|
|
5886
|
-
})
|
|
5893
|
+
});
|
|
5887
5894
|
this.resourceRegistry.registerResources(analysis.resources, node);
|
|
5888
5895
|
this.injectableRegistry.registerInjectable(node);
|
|
5889
5896
|
}
|
|
@@ -6136,7 +6143,7 @@ var ComponentDecoratorHandler = class {
|
|
|
6136
6143
|
if (analysis.template.errors !== null && analysis.template.errors.length > 0) {
|
|
6137
6144
|
return [];
|
|
6138
6145
|
}
|
|
6139
|
-
const meta =
|
|
6146
|
+
const meta = { ...analysis.meta, ...resolution };
|
|
6140
6147
|
const fac = compileNgFactoryDefField(toFactoryMetadata(meta, FactoryTarget3.Component));
|
|
6141
6148
|
const def = compileComponentFromMetadata(meta, pool, makeBindingParser2());
|
|
6142
6149
|
const classMetadata = analysis.classMetadata !== null ? compileClassMetadata3(analysis.classMetadata).toStmt() : null;
|
|
@@ -6152,7 +6159,7 @@ var ComponentDecoratorHandler = class {
|
|
|
6152
6159
|
isInline: analysis.template.declaration.isInline,
|
|
6153
6160
|
inlineTemplateLiteralExpression: analysis.template.sourceMapping.type === "direct" ? new WrappedNodeExpr7(analysis.template.sourceMapping.node) : null
|
|
6154
6161
|
};
|
|
6155
|
-
const meta =
|
|
6162
|
+
const meta = { ...analysis.meta, ...resolution };
|
|
6156
6163
|
const fac = compileDeclareFactory(toFactoryMetadata(meta, FactoryTarget3.Component));
|
|
6157
6164
|
const def = compileDeclareComponentFromMetadata(meta, analysis.template, templateInfo);
|
|
6158
6165
|
const classMetadata = analysis.classMetadata !== null ? compileDeclareClassMetadata3(analysis.classMetadata).toStmt() : null;
|
|
@@ -6257,7 +6264,7 @@ var InjectableDecoratorHandler = class {
|
|
|
6257
6264
|
const results = [];
|
|
6258
6265
|
if (analysis.needsFactory) {
|
|
6259
6266
|
const meta = analysis.meta;
|
|
6260
|
-
const factoryRes = compileFactoryFn(toFactoryMetadata(
|
|
6267
|
+
const factoryRes = compileFactoryFn(toFactoryMetadata({ ...meta, deps: analysis.ctorDeps }, FactoryTarget4.Injectable));
|
|
6261
6268
|
if (analysis.classMetadata !== null) {
|
|
6262
6269
|
factoryRes.statements.push(compileClassMetadataFn(analysis.classMetadata).toStmt());
|
|
6263
6270
|
}
|
|
@@ -6581,4 +6588,4 @@ export {
|
|
|
6581
6588
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6582
6589
|
* found in the LICENSE file at https://angular.io/license
|
|
6583
6590
|
*/
|
|
6584
|
-
//# sourceMappingURL=chunk-
|
|
6591
|
+
//# sourceMappingURL=chunk-FMUPZDH2.js.map
|