@angular/compiler-cli 18.2.0-next.1 → 18.2.0-next.3
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-AOEZR223.js → chunk-5DVL3S3Z.js} +108 -25
- package/bundles/chunk-5DVL3S3Z.js.map +6 -0
- package/bundles/{chunk-K6EUU7R4.js → chunk-AQRCENAS.js} +75 -20
- package/bundles/{chunk-K6EUU7R4.js.map → chunk-AQRCENAS.js.map} +3 -3
- package/bundles/{chunk-HXUTQSG7.js → chunk-B4ZOGV3N.js} +3 -3
- package/bundles/{chunk-GKWXRLYL.js → chunk-EFWQF5B3.js} +36 -20
- package/bundles/chunk-EFWQF5B3.js.map +6 -0
- package/bundles/{chunk-MAWNNEES.js → chunk-FL7B5BOI.js} +2 -2
- package/bundles/{chunk-Z5UNTO33.js → chunk-KQXJFD6L.js} +2 -2
- package/bundles/{chunk-SJE2NFCG.js → chunk-O4UKU4TQ.js} +3 -3
- package/bundles/index.js +6 -6
- package/bundles/linker/babel/index.js +2 -2
- package/bundles/linker/index.js +2 -2
- package/bundles/private/migrations.js +4 -2
- package/bundles/private/tooling.js +4 -4
- package/bundles/src/bin/ng_xi18n.js +5 -5
- package/bundles/src/bin/ngc.js +5 -5
- package/bundles_metadata.json +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/component/src/metadata.d.ts +1 -0
- package/src/ngtsc/annotations/directive/src/handler.d.ts +1 -0
- package/src/ngtsc/annotations/directive/src/shared.d.ts +1 -0
- package/src/ngtsc/annotations/ng_module/src/handler.d.ts +3 -2
- 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/translator/src/api/import_generator.d.ts +10 -0
- package/src/ngtsc/translator/src/import_manager/import_manager.d.ts +18 -2
- package/src/ngtsc/translator/src/import_manager/import_typescript_transform.d.ts +1 -0
- 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-GKWXRLYL.js.map +0 -6
- /package/bundles/{chunk-HXUTQSG7.js.map → chunk-B4ZOGV3N.js.map} +0 -0
- /package/bundles/{chunk-MAWNNEES.js.map → chunk-FL7B5BOI.js.map} +0 -0
- /package/bundles/{chunk-Z5UNTO33.js.map → chunk-KQXJFD6L.js.map} +0 -0
- /package/bundles/{chunk-SJE2NFCG.js.map → chunk-O4UKU4TQ.js.map} +0 -0
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
translateStatement,
|
|
46
46
|
translateType,
|
|
47
47
|
typeNodeToValueExpr
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-5DVL3S3Z.js";
|
|
49
49
|
import {
|
|
50
50
|
PerfCheckpoint,
|
|
51
51
|
PerfEvent,
|
|
@@ -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,
|
|
@@ -4931,7 +4932,8 @@ function extractDirectiveMetadata(clazz, decorator, reflector, importTracker, ev
|
|
|
4931
4932
|
outputs,
|
|
4932
4933
|
isStructural,
|
|
4933
4934
|
hostDirectives,
|
|
4934
|
-
rawHostDirectives
|
|
4935
|
+
rawHostDirectives,
|
|
4936
|
+
inputFieldNamesFromMetadataArray: new Set(Object.values(inputsFromMeta).map((i) => i.classPropertyName))
|
|
4935
4937
|
};
|
|
4936
4938
|
}
|
|
4937
4939
|
function extractDecoratorQueryMetadata(exprNode, name, args, propertyName, reflector, evaluator) {
|
|
@@ -5758,6 +5760,7 @@ var DirectiveDecoratorHandler = class {
|
|
|
5758
5760
|
return {
|
|
5759
5761
|
analysis: {
|
|
5760
5762
|
inputs: directiveResult.inputs,
|
|
5763
|
+
inputFieldNamesFromMetadataArray: directiveResult.inputFieldNamesFromMetadataArray,
|
|
5761
5764
|
outputs: directiveResult.outputs,
|
|
5762
5765
|
meta: analysis,
|
|
5763
5766
|
hostDirectives: directiveResult.hostDirectives,
|
|
@@ -5786,6 +5789,7 @@ var DirectiveDecoratorHandler = class {
|
|
|
5786
5789
|
selector: analysis.meta.selector,
|
|
5787
5790
|
exportAs: analysis.meta.exportAs,
|
|
5788
5791
|
inputs: analysis.inputs,
|
|
5792
|
+
inputFieldNamesFromMetadataArray: analysis.inputFieldNamesFromMetadataArray,
|
|
5789
5793
|
outputs: analysis.outputs,
|
|
5790
5794
|
queries: analysis.meta.queries.map((query) => query.propertyName),
|
|
5791
5795
|
isComponent: false,
|
|
@@ -6009,7 +6013,7 @@ var NgModuleSymbol = class extends SemanticSymbol {
|
|
|
6009
6013
|
}
|
|
6010
6014
|
};
|
|
6011
6015
|
var NgModuleDecoratorHandler = class {
|
|
6012
|
-
constructor(reflector, evaluator, metaReader, metaRegistry, scopeRegistry, referencesRegistry, exportedProviderStatusResolver, semanticDepGraphUpdater, isCore, refEmitter, annotateForClosureCompiler, onlyPublishPublicTypings, injectableRegistry, perf, includeClassMetadata, includeSelectorScope, compilationMode, localCompilationExtraImportsTracker) {
|
|
6016
|
+
constructor(reflector, evaluator, metaReader, metaRegistry, scopeRegistry, referencesRegistry, exportedProviderStatusResolver, semanticDepGraphUpdater, isCore, refEmitter, annotateForClosureCompiler, onlyPublishPublicTypings, injectableRegistry, perf, includeClassMetadata, includeSelectorScope, compilationMode, localCompilationExtraImportsTracker, jitDeclarationRegistry) {
|
|
6013
6017
|
this.reflector = reflector;
|
|
6014
6018
|
this.evaluator = evaluator;
|
|
6015
6019
|
this.metaReader = metaReader;
|
|
@@ -6028,6 +6032,7 @@ var NgModuleDecoratorHandler = class {
|
|
|
6028
6032
|
this.includeSelectorScope = includeSelectorScope;
|
|
6029
6033
|
this.compilationMode = compilationMode;
|
|
6030
6034
|
this.localCompilationExtraImportsTracker = localCompilationExtraImportsTracker;
|
|
6035
|
+
this.jitDeclarationRegistry = jitDeclarationRegistry;
|
|
6031
6036
|
this.precedence = HandlerPrecedence.PRIMARY;
|
|
6032
6037
|
this.name = "NgModuleDecoratorHandler";
|
|
6033
6038
|
}
|
|
@@ -6059,6 +6064,7 @@ var NgModuleDecoratorHandler = class {
|
|
|
6059
6064
|
}
|
|
6060
6065
|
const ngModule = reflectObjectLiteral(meta);
|
|
6061
6066
|
if (ngModule.has("jit")) {
|
|
6067
|
+
this.jitDeclarationRegistry.jitDeclarations.add(node);
|
|
6062
6068
|
return {};
|
|
6063
6069
|
}
|
|
6064
6070
|
const moduleResolvers = combineResolvers([
|
|
@@ -8411,10 +8417,12 @@ var MagicString = class {
|
|
|
8411
8417
|
update(start, end, content, options) {
|
|
8412
8418
|
if (typeof content !== "string")
|
|
8413
8419
|
throw new TypeError("replacement content must be a string");
|
|
8414
|
-
|
|
8415
|
-
start
|
|
8416
|
-
|
|
8417
|
-
end
|
|
8420
|
+
if (this.original.length !== 0) {
|
|
8421
|
+
while (start < 0)
|
|
8422
|
+
start += this.original.length;
|
|
8423
|
+
while (end < 0)
|
|
8424
|
+
end += this.original.length;
|
|
8425
|
+
}
|
|
8418
8426
|
if (end > this.original.length)
|
|
8419
8427
|
throw new Error("end is out of bounds");
|
|
8420
8428
|
if (start === end)
|
|
@@ -8492,10 +8500,12 @@ var MagicString = class {
|
|
|
8492
8500
|
return this;
|
|
8493
8501
|
}
|
|
8494
8502
|
remove(start, end) {
|
|
8495
|
-
|
|
8496
|
-
start
|
|
8497
|
-
|
|
8498
|
-
end
|
|
8503
|
+
if (this.original.length !== 0) {
|
|
8504
|
+
while (start < 0)
|
|
8505
|
+
start += this.original.length;
|
|
8506
|
+
while (end < 0)
|
|
8507
|
+
end += this.original.length;
|
|
8508
|
+
}
|
|
8499
8509
|
if (start === end)
|
|
8500
8510
|
return this;
|
|
8501
8511
|
if (start < 0 || end > this.original.length)
|
|
@@ -8514,10 +8524,12 @@ var MagicString = class {
|
|
|
8514
8524
|
return this;
|
|
8515
8525
|
}
|
|
8516
8526
|
reset(start, end) {
|
|
8517
|
-
|
|
8518
|
-
start
|
|
8519
|
-
|
|
8520
|
-
end
|
|
8527
|
+
if (this.original.length !== 0) {
|
|
8528
|
+
while (start < 0)
|
|
8529
|
+
start += this.original.length;
|
|
8530
|
+
while (end < 0)
|
|
8531
|
+
end += this.original.length;
|
|
8532
|
+
}
|
|
8521
8533
|
if (start === end)
|
|
8522
8534
|
return this;
|
|
8523
8535
|
if (start < 0 || end > this.original.length)
|
|
@@ -8581,10 +8593,12 @@ var MagicString = class {
|
|
|
8581
8593
|
return this.intro + lineStr;
|
|
8582
8594
|
}
|
|
8583
8595
|
slice(start = 0, end = this.original.length) {
|
|
8584
|
-
|
|
8585
|
-
start
|
|
8586
|
-
|
|
8587
|
-
end
|
|
8596
|
+
if (this.original.length !== 0) {
|
|
8597
|
+
while (start < 0)
|
|
8598
|
+
start += this.original.length;
|
|
8599
|
+
while (end < 0)
|
|
8600
|
+
end += this.original.length;
|
|
8601
|
+
}
|
|
8588
8602
|
let result = "";
|
|
8589
8603
|
let chunk = this.firstChunk;
|
|
8590
8604
|
while (chunk && (chunk.start > start || chunk.end <= start)) {
|
|
@@ -13562,6 +13576,7 @@ var ComponentDecoratorHandler = class {
|
|
|
13562
13576
|
analysis: {
|
|
13563
13577
|
baseClass: readBaseClass(node, this.reflector, this.evaluator),
|
|
13564
13578
|
inputs,
|
|
13579
|
+
inputFieldNamesFromMetadataArray: directiveResult.inputFieldNamesFromMetadataArray,
|
|
13565
13580
|
outputs,
|
|
13566
13581
|
hostDirectives,
|
|
13567
13582
|
rawHostDirectives,
|
|
@@ -13624,6 +13639,7 @@ var ComponentDecoratorHandler = class {
|
|
|
13624
13639
|
selector: analysis.meta.selector,
|
|
13625
13640
|
exportAs: analysis.meta.exportAs,
|
|
13626
13641
|
inputs: analysis.inputs,
|
|
13642
|
+
inputFieldNamesFromMetadataArray: analysis.inputFieldNamesFromMetadataArray,
|
|
13627
13643
|
outputs: analysis.outputs,
|
|
13628
13644
|
queries: analysis.meta.queries.map((query) => query.propertyName),
|
|
13629
13645
|
isComponent: true,
|
|
@@ -14734,4 +14750,4 @@ export {
|
|
|
14734
14750
|
* Use of this source code is governed by an MIT-style license that can be
|
|
14735
14751
|
* found in the LICENSE file at https://angular.io/license
|
|
14736
14752
|
*/
|
|
14737
|
-
//# sourceMappingURL=chunk-
|
|
14753
|
+
//# sourceMappingURL=chunk-EFWQF5B3.js.map
|