@angular/compiler-cli 18.2.0-next.0 → 18.2.0-next.2
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-JQI7OB4Q.js → chunk-6OFVLEJY.js} +114 -25
- package/bundles/chunk-6OFVLEJY.js.map +6 -0
- package/bundles/chunk-BR33BNGB.js +34 -0
- package/bundles/chunk-BR33BNGB.js.map +6 -0
- package/bundles/{chunk-BKZN6F4B.js → chunk-CW5TTYLY.js} +29 -10
- package/bundles/chunk-CW5TTYLY.js.map +6 -0
- package/bundles/{chunk-HXUTQSG7.js → chunk-GJ2BX3NZ.js} +3 -3
- package/bundles/{chunk-AOEZR223.js → chunk-I56P56EE.js} +34 -17
- package/bundles/chunk-I56P56EE.js.map +6 -0
- package/bundles/{chunk-AQFTVE7F.js → chunk-THQF5ZZE.js} +3 -1
- package/bundles/chunk-THQF5ZZE.js.map +6 -0
- package/bundles/{chunk-MLBHTW5L.js → chunk-XVC3L7YN.js} +2 -2
- package/bundles/{chunk-N6GPWJA3.js → chunk-YDQXTFSY.js} +23 -38
- package/bundles/chunk-YDQXTFSY.js.map +6 -0
- package/bundles/index.js +12 -10
- package/bundles/index.js.map +1 -1
- package/bundles/linker/babel/index.js +2 -2
- package/bundles/linker/index.js +2 -2
- package/bundles/private/bazel.js +1 -1
- package/bundles/private/migrations.js +5 -3
- package/bundles/private/tooling.js +5 -4
- package/bundles/src/bin/ng_xi18n.js +6 -5
- package/bundles/src/bin/ng_xi18n.js.map +1 -1
- package/bundles/src/bin/ngc.js +6 -5
- package/bundles/src/bin/ngc.js.map +1 -1
- package/bundles_metadata.json +1 -1
- package/index.d.ts +1 -1
- package/linker/src/file_linker/partial_linkers/util.d.ts +1 -1
- package/package.json +3 -3
- package/private/migrations.d.ts +1 -0
- package/src/ngtsc/annotations/common/index.d.ts +1 -0
- package/src/ngtsc/annotations/common/src/jit_declaration_registry.d.ts +15 -0
- package/src/ngtsc/annotations/component/src/handler.d.ts +3 -1
- package/src/ngtsc/annotations/component/src/metadata.d.ts +1 -0
- package/src/ngtsc/annotations/directive/src/handler.d.ts +4 -2
- package/src/ngtsc/annotations/directive/src/shared.d.ts +5 -1
- package/src/ngtsc/annotations/index.d.ts +1 -1
- package/src/ngtsc/core/api/src/options.d.ts +5 -0
- package/src/ngtsc/diagnostics/src/error_code.d.ts +12 -0
- package/src/ngtsc/diagnostics/src/extended_template_diagnostic_name.d.ts +2 -1
- package/src/ngtsc/metadata/src/api.d.ts +5 -0
- package/src/ngtsc/perf/src/api.d.ts +9 -1
- package/src/ngtsc/transform/jit/index.d.ts +8 -0
- package/src/{transformers/jit_transforms → ngtsc/transform/jit/src}/downlevel_decorators_transform.d.ts +3 -2
- package/src/{transformers/jit_transforms → ngtsc/transform/jit/src}/index.d.ts +1 -1
- package/src/{transformers/jit_transforms → ngtsc/transform/jit/src}/initializer_api_transforms/transform.d.ts +8 -3
- package/src/{transformers/jit_transforms → ngtsc/transform/jit/src}/initializer_api_transforms/transform_api.d.ts +3 -3
- package/src/ngtsc/translator/src/api/import_generator.d.ts +10 -0
- package/src/ngtsc/translator/src/import_manager/import_manager.d.ts +1 -2
- package/src/ngtsc/typecheck/extended/api/api.d.ts +10 -0
- package/src/ngtsc/typecheck/extended/checks/unused_let_declaration/index.d.ts +10 -0
- package/bundles/chunk-AOEZR223.js.map +0 -6
- package/bundles/chunk-AQFTVE7F.js.map +0 -6
- package/bundles/chunk-BKZN6F4B.js.map +0 -6
- package/bundles/chunk-JQI7OB4Q.js.map +0 -6
- package/bundles/chunk-N6GPWJA3.js.map +0 -6
- /package/bundles/{chunk-HXUTQSG7.js.map → chunk-GJ2BX3NZ.js.map} +0 -0
- /package/bundles/{chunk-MLBHTW5L.js.map → chunk-XVC3L7YN.js.map} +0 -0
- /package/src/{transformers/jit_transforms → ngtsc/transform/jit/src}/initializer_api_transforms/input_function.d.ts +0 -0
- /package/src/{transformers/jit_transforms → ngtsc/transform/jit/src}/initializer_api_transforms/model_function.d.ts +0 -0
- /package/src/{transformers/jit_transforms → ngtsc/transform/jit/src}/initializer_api_transforms/output_function.d.ts +0 -0
- /package/src/{transformers/jit_transforms → ngtsc/transform/jit/src}/initializer_api_transforms/query_functions.d.ts +0 -0
|
@@ -45,12 +45,12 @@ import {
|
|
|
45
45
|
translateStatement,
|
|
46
46
|
translateType,
|
|
47
47
|
typeNodeToValueExpr
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-I56P56EE.js";
|
|
49
49
|
import {
|
|
50
50
|
PerfCheckpoint,
|
|
51
51
|
PerfEvent,
|
|
52
52
|
PerfPhase
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-THQF5ZZE.js";
|
|
54
54
|
import {
|
|
55
55
|
absoluteFrom,
|
|
56
56
|
absoluteFromSourceFile,
|
|
@@ -1785,6 +1785,7 @@ var DtsMetadataReader = class {
|
|
|
1785
1785
|
ngContentSelectors,
|
|
1786
1786
|
isStandalone,
|
|
1787
1787
|
isSignal,
|
|
1788
|
+
inputFieldNamesFromMetadataArray: null,
|
|
1788
1789
|
imports: null,
|
|
1789
1790
|
deferredImports: null,
|
|
1790
1791
|
schemas: null,
|
|
@@ -3681,6 +3682,13 @@ function compileInputTransformFields(inputs) {
|
|
|
3681
3682
|
return extraFields;
|
|
3682
3683
|
}
|
|
3683
3684
|
|
|
3685
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/jit_declaration_registry.mjs
|
|
3686
|
+
var JitDeclarationRegistry = class {
|
|
3687
|
+
constructor() {
|
|
3688
|
+
this.jitDeclarations = /* @__PURE__ */ new Set();
|
|
3689
|
+
}
|
|
3690
|
+
};
|
|
3691
|
+
|
|
3684
3692
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
|
|
3685
3693
|
import { compileClassDebugInfo, compileComponentClassMetadata, compileComponentDeclareClassMetadata, compileComponentFromMetadata, compileDeclareComponentFromMetadata, compileDeferResolverFunction, CssSelector as CssSelector4, DEFAULT_INTERPOLATION_CONFIG as DEFAULT_INTERPOLATION_CONFIG2, DomElementSchemaRegistry as DomElementSchemaRegistry3, ExternalExpr as ExternalExpr8, FactoryTarget as FactoryTarget3, makeBindingParser as makeBindingParser2, outputAst as o2, R3TargetBinder, R3TemplateDependencyKind, SelectorMatcher as SelectorMatcher3, ViewEncapsulation as ViewEncapsulation2 } from "@angular/compiler";
|
|
3686
3694
|
import ts45 from "typescript";
|
|
@@ -4807,7 +4815,7 @@ function extractDirectiveMetadata(clazz, decorator, reflector, importTracker, ev
|
|
|
4807
4815
|
directive = reflectObjectLiteral(meta);
|
|
4808
4816
|
}
|
|
4809
4817
|
if (directive.has("jit")) {
|
|
4810
|
-
return
|
|
4818
|
+
return { jitForced: true };
|
|
4811
4819
|
}
|
|
4812
4820
|
const members = reflector.getMembersOfClass(clazz);
|
|
4813
4821
|
const decoratedElements = members.filter((member) => !member.isStatic && member.decorators !== null);
|
|
@@ -4917,13 +4925,15 @@ function extractDirectiveMetadata(clazz, decorator, reflector, importTracker, ev
|
|
|
4917
4925
|
hostDirectives: (hostDirectives == null ? void 0 : hostDirectives.map((hostDir) => toHostDirectiveMetadata(hostDir, sourceFile, refEmitter))) || null
|
|
4918
4926
|
};
|
|
4919
4927
|
return {
|
|
4928
|
+
jitForced: false,
|
|
4920
4929
|
decorator: directive,
|
|
4921
4930
|
metadata,
|
|
4922
4931
|
inputs,
|
|
4923
4932
|
outputs,
|
|
4924
4933
|
isStructural,
|
|
4925
4934
|
hostDirectives,
|
|
4926
|
-
rawHostDirectives
|
|
4935
|
+
rawHostDirectives,
|
|
4936
|
+
inputFieldNamesFromMetadataArray: new Set(Object.values(inputsFromMeta).map((i) => i.classPropertyName))
|
|
4927
4937
|
};
|
|
4928
4938
|
}
|
|
4929
4939
|
function extractDecoratorQueryMetadata(exprNode, name, args, propertyName, reflector, evaluator) {
|
|
@@ -5686,7 +5696,7 @@ var LIFECYCLE_HOOKS = /* @__PURE__ */ new Set([
|
|
|
5686
5696
|
"ngAfterContentChecked"
|
|
5687
5697
|
]);
|
|
5688
5698
|
var DirectiveDecoratorHandler = class {
|
|
5689
|
-
constructor(reflector, evaluator, metaRegistry, scopeRegistry, metaReader, injectableRegistry, refEmitter, referencesRegistry, isCore, strictCtorDeps, semanticDepGraphUpdater, annotateForClosureCompiler, perf, importTracker, includeClassMetadata, compilationMode,
|
|
5699
|
+
constructor(reflector, evaluator, metaRegistry, scopeRegistry, metaReader, injectableRegistry, refEmitter, referencesRegistry, isCore, strictCtorDeps, semanticDepGraphUpdater, annotateForClosureCompiler, perf, importTracker, includeClassMetadata, compilationMode, jitDeclarationRegistry) {
|
|
5690
5700
|
this.reflector = reflector;
|
|
5691
5701
|
this.evaluator = evaluator;
|
|
5692
5702
|
this.metaRegistry = metaRegistry;
|
|
@@ -5703,7 +5713,7 @@ var DirectiveDecoratorHandler = class {
|
|
|
5703
5713
|
this.importTracker = importTracker;
|
|
5704
5714
|
this.includeClassMetadata = includeClassMetadata;
|
|
5705
5715
|
this.compilationMode = compilationMode;
|
|
5706
|
-
this.
|
|
5716
|
+
this.jitDeclarationRegistry = jitDeclarationRegistry;
|
|
5707
5717
|
this.precedence = HandlerPrecedence.PRIMARY;
|
|
5708
5718
|
this.name = "DirectiveDecoratorHandler";
|
|
5709
5719
|
}
|
|
@@ -5738,7 +5748,8 @@ var DirectiveDecoratorHandler = class {
|
|
|
5738
5748
|
this.compilationMode,
|
|
5739
5749
|
null
|
|
5740
5750
|
);
|
|
5741
|
-
if (directiveResult
|
|
5751
|
+
if (directiveResult.jitForced) {
|
|
5752
|
+
this.jitDeclarationRegistry.jitDeclarations.add(node);
|
|
5742
5753
|
return {};
|
|
5743
5754
|
}
|
|
5744
5755
|
const analysis = directiveResult.metadata;
|
|
@@ -5749,6 +5760,7 @@ var DirectiveDecoratorHandler = class {
|
|
|
5749
5760
|
return {
|
|
5750
5761
|
analysis: {
|
|
5751
5762
|
inputs: directiveResult.inputs,
|
|
5763
|
+
inputFieldNamesFromMetadataArray: directiveResult.inputFieldNamesFromMetadataArray,
|
|
5752
5764
|
outputs: directiveResult.outputs,
|
|
5753
5765
|
meta: analysis,
|
|
5754
5766
|
hostDirectives: directiveResult.hostDirectives,
|
|
@@ -5777,6 +5789,7 @@ var DirectiveDecoratorHandler = class {
|
|
|
5777
5789
|
selector: analysis.meta.selector,
|
|
5778
5790
|
exportAs: analysis.meta.exportAs,
|
|
5779
5791
|
inputs: analysis.inputs,
|
|
5792
|
+
inputFieldNamesFromMetadataArray: analysis.inputFieldNamesFromMetadataArray,
|
|
5780
5793
|
outputs: analysis.outputs,
|
|
5781
5794
|
queries: analysis.meta.queries.map((query) => query.propertyName),
|
|
5782
5795
|
isComponent: false,
|
|
@@ -13240,7 +13253,7 @@ var EMPTY_ARRAY2 = [];
|
|
|
13240
13253
|
var isUsedDirective = (decl) => decl.kind === R3TemplateDependencyKind.Directive;
|
|
13241
13254
|
var isUsedPipe = (decl) => decl.kind === R3TemplateDependencyKind.Pipe;
|
|
13242
13255
|
var ComponentDecoratorHandler = class {
|
|
13243
|
-
constructor(reflector, evaluator, metaRegistry, metaReader, scopeReader, dtsScopeReader, scopeRegistry, typeCheckScopeRegistry, resourceRegistry, isCore, strictCtorDeps, resourceLoader, rootDirs, defaultPreserveWhitespaces, i18nUseExternalIds, enableI18nLegacyMessageIdFormat, usePoisonedData, i18nNormalizeLineEndingsInICUs, moduleResolver, cycleAnalyzer, cycleHandlingStrategy, refEmitter, referencesRegistry, depTracker, injectableRegistry, semanticDepGraphUpdater, annotateForClosureCompiler, perf, hostDirectivesResolver, importTracker, includeClassMetadata, compilationMode, deferredSymbolTracker, forbidOrphanRendering, enableBlockSyntax, enableLetSyntax, localCompilationExtraImportsTracker) {
|
|
13256
|
+
constructor(reflector, evaluator, metaRegistry, metaReader, scopeReader, dtsScopeReader, scopeRegistry, typeCheckScopeRegistry, resourceRegistry, isCore, strictCtorDeps, resourceLoader, rootDirs, defaultPreserveWhitespaces, i18nUseExternalIds, enableI18nLegacyMessageIdFormat, usePoisonedData, i18nNormalizeLineEndingsInICUs, moduleResolver, cycleAnalyzer, cycleHandlingStrategy, refEmitter, referencesRegistry, depTracker, injectableRegistry, semanticDepGraphUpdater, annotateForClosureCompiler, perf, hostDirectivesResolver, importTracker, includeClassMetadata, compilationMode, deferredSymbolTracker, forbidOrphanRendering, enableBlockSyntax, enableLetSyntax, localCompilationExtraImportsTracker, jitDeclarationRegistry) {
|
|
13244
13257
|
this.reflector = reflector;
|
|
13245
13258
|
this.evaluator = evaluator;
|
|
13246
13259
|
this.metaRegistry = metaRegistry;
|
|
@@ -13278,6 +13291,7 @@ var ComponentDecoratorHandler = class {
|
|
|
13278
13291
|
this.enableBlockSyntax = enableBlockSyntax;
|
|
13279
13292
|
this.enableLetSyntax = enableLetSyntax;
|
|
13280
13293
|
this.localCompilationExtraImportsTracker = localCompilationExtraImportsTracker;
|
|
13294
|
+
this.jitDeclarationRegistry = jitDeclarationRegistry;
|
|
13281
13295
|
this.literalCache = /* @__PURE__ */ new Map();
|
|
13282
13296
|
this.elementSchemaRegistry = new DomElementSchemaRegistry3();
|
|
13283
13297
|
this.preanalyzeTemplateCache = /* @__PURE__ */ new Map();
|
|
@@ -13356,7 +13370,8 @@ var ComponentDecoratorHandler = class {
|
|
|
13356
13370
|
let diagnostics;
|
|
13357
13371
|
let isPoisoned = false;
|
|
13358
13372
|
const directiveResult = extractDirectiveMetadata(node, decorator, this.reflector, this.importTracker, this.evaluator, this.refEmitter, this.referencesRegistry, this.isCore, this.annotateForClosureCompiler, this.compilationMode, this.elementSchemaRegistry.getDefaultComponentElementName());
|
|
13359
|
-
if (directiveResult
|
|
13373
|
+
if (directiveResult.jitForced) {
|
|
13374
|
+
this.jitDeclarationRegistry.jitDeclarations.add(node);
|
|
13360
13375
|
return {};
|
|
13361
13376
|
}
|
|
13362
13377
|
const { decorator: component, metadata, inputs, outputs, hostDirectives, rawHostDirectives } = directiveResult;
|
|
@@ -13551,6 +13566,7 @@ var ComponentDecoratorHandler = class {
|
|
|
13551
13566
|
analysis: {
|
|
13552
13567
|
baseClass: readBaseClass(node, this.reflector, this.evaluator),
|
|
13553
13568
|
inputs,
|
|
13569
|
+
inputFieldNamesFromMetadataArray: directiveResult.inputFieldNamesFromMetadataArray,
|
|
13554
13570
|
outputs,
|
|
13555
13571
|
hostDirectives,
|
|
13556
13572
|
rawHostDirectives,
|
|
@@ -13613,6 +13629,7 @@ var ComponentDecoratorHandler = class {
|
|
|
13613
13629
|
selector: analysis.meta.selector,
|
|
13614
13630
|
exportAs: analysis.meta.exportAs,
|
|
13615
13631
|
inputs: analysis.inputs,
|
|
13632
|
+
inputFieldNamesFromMetadataArray: analysis.inputFieldNamesFromMetadataArray,
|
|
13616
13633
|
outputs: analysis.outputs,
|
|
13617
13634
|
queries: analysis.meta.queries.map((query) => query.propertyName),
|
|
13618
13635
|
isComponent: true,
|
|
@@ -14673,6 +14690,7 @@ export {
|
|
|
14673
14690
|
ivyTransformFactory,
|
|
14674
14691
|
InjectableClassRegistry,
|
|
14675
14692
|
NoopReferencesRegistry,
|
|
14693
|
+
JitDeclarationRegistry,
|
|
14676
14694
|
SemanticDepGraphUpdater,
|
|
14677
14695
|
ComponentScopeKind,
|
|
14678
14696
|
CompoundComponentScopeReader,
|
|
@@ -14693,6 +14711,7 @@ export {
|
|
|
14693
14711
|
NgModuleDecoratorHandler,
|
|
14694
14712
|
NgOriginalFile,
|
|
14695
14713
|
isShim,
|
|
14714
|
+
untagAllTsFiles,
|
|
14696
14715
|
retagAllTsFiles,
|
|
14697
14716
|
ShimAdapter,
|
|
14698
14717
|
ShimReferenceTagger,
|
|
@@ -14721,4 +14740,4 @@ export {
|
|
|
14721
14740
|
* Use of this source code is governed by an MIT-style license that can be
|
|
14722
14741
|
* found in the LICENSE file at https://angular.io/license
|
|
14723
14742
|
*/
|
|
14724
|
-
//# sourceMappingURL=chunk-
|
|
14743
|
+
//# sourceMappingURL=chunk-CW5TTYLY.js.map
|