@angular/compiler-cli 21.0.0-next.8 → 21.0.0-next.9
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-ELPMV5DB.js → chunk-3UF7UI6H.js} +37 -0
- package/bundles/chunk-DT6FD4OE.js +1 -1
- package/bundles/{chunk-WXJFCHPN.js → chunk-HRLHX4UA.js} +1 -1
- package/bundles/{chunk-MVFPDRXS.js → chunk-IE2YQNTQ.js} +1 -1
- package/bundles/{chunk-NBFYHUMW.js → chunk-SIOKS4LN.js} +251 -196
- package/bundles/index.js +4 -4
- package/bundles/private/migrations.js +1 -1
- package/bundles/private/tooling.js +2 -2
- package/bundles/src/bin/ng_xi18n.js +4 -4
- package/bundles/src/bin/ngc.js +4 -4
- package/linker/src/file_linker/partial_linkers/util.d.ts +1 -1
- package/package.json +2 -2
- package/src/ngtsc/diagnostics/src/error_code.d.ts +5 -0
- package/src/ngtsc/docs/src/class_extractor.d.ts +4 -5
- package/src/ngtsc/docs/src/entities.d.ts +7 -2
- package/src/ngtsc/docs/src/interface_extractor.d.ts +11 -0
- package/src/ngtsc/docs/src/properties_extractor.d.ts +96 -0
|
@@ -61,6 +61,7 @@ var ErrorCode;
|
|
|
61
61
|
ErrorCode2[ErrorCode2["MISSING_NAMED_TEMPLATE_DEPENDENCY"] = 2024] = "MISSING_NAMED_TEMPLATE_DEPENDENCY";
|
|
62
62
|
ErrorCode2[ErrorCode2["INCORRECT_NAMED_TEMPLATE_DEPENDENCY_TYPE"] = 2025] = "INCORRECT_NAMED_TEMPLATE_DEPENDENCY_TYPE";
|
|
63
63
|
ErrorCode2[ErrorCode2["UNSUPPORTED_SELECTORLESS_COMPONENT_FIELD"] = 2026] = "UNSUPPORTED_SELECTORLESS_COMPONENT_FIELD";
|
|
64
|
+
ErrorCode2[ErrorCode2["COMPONENT_ANIMATIONS_CONFLICT"] = 2027] = "COMPONENT_ANIMATIONS_CONFLICT";
|
|
64
65
|
ErrorCode2[ErrorCode2["SYMBOL_NOT_EXPORTED"] = 3001] = "SYMBOL_NOT_EXPORTED";
|
|
65
66
|
ErrorCode2[ErrorCode2["IMPORT_CYCLE_DETECTED"] = 3003] = "IMPORT_CYCLE_DETECTED";
|
|
66
67
|
ErrorCode2[ErrorCode2["IMPORT_GENERATION_FAILURE"] = 3004] = "IMPORT_GENERATION_FAILURE";
|
|
@@ -20135,6 +20136,32 @@ var SelectorlessDirectivesAnalyzer = class extends CombinedRecursiveAstVisitor {
|
|
|
20135
20136
|
}
|
|
20136
20137
|
};
|
|
20137
20138
|
|
|
20139
|
+
// packages/compiler-cli/src/ngtsc/annotations/component/src/animations.js
|
|
20140
|
+
import { CombinedRecursiveAstVisitor as CombinedRecursiveAstVisitor2, tmplAstVisitAll as tmplAstVisitAll2 } from "@angular/compiler";
|
|
20141
|
+
var ANIMATE_ENTER = "animate.enter";
|
|
20142
|
+
var ANIMATE_LEAVE = `animate.leave`;
|
|
20143
|
+
function analyzeTemplateForAnimations(template) {
|
|
20144
|
+
const analyzer = new AnimationsAnalyzer();
|
|
20145
|
+
tmplAstVisitAll2(analyzer, template);
|
|
20146
|
+
return { hasAnimations: analyzer.hasAnimations };
|
|
20147
|
+
}
|
|
20148
|
+
var AnimationsAnalyzer = class extends CombinedRecursiveAstVisitor2 {
|
|
20149
|
+
hasAnimations = false;
|
|
20150
|
+
visitElement(element) {
|
|
20151
|
+
for (const attr of element.attributes) {
|
|
20152
|
+
if (attr.name === ANIMATE_LEAVE || attr.name === ANIMATE_ENTER) {
|
|
20153
|
+
this.hasAnimations = true;
|
|
20154
|
+
}
|
|
20155
|
+
}
|
|
20156
|
+
for (const input of element.inputs) {
|
|
20157
|
+
if (input.name === ANIMATE_LEAVE || input.name === ANIMATE_ENTER) {
|
|
20158
|
+
this.hasAnimations = true;
|
|
20159
|
+
}
|
|
20160
|
+
}
|
|
20161
|
+
super.visitElement(element);
|
|
20162
|
+
}
|
|
20163
|
+
};
|
|
20164
|
+
|
|
20138
20165
|
// packages/compiler-cli/src/ngtsc/annotations/component/src/handler.js
|
|
20139
20166
|
var EMPTY_ARRAY2 = [];
|
|
20140
20167
|
var isUsedDirective = (decl) => decl.kind === R3TemplateDependencyKind.Directive;
|
|
@@ -20492,6 +20519,16 @@ var ComponentDecoratorHandler = class {
|
|
|
20492
20519
|
}
|
|
20493
20520
|
}
|
|
20494
20521
|
}
|
|
20522
|
+
if (component.has("animations")) {
|
|
20523
|
+
const { hasAnimations } = analyzeTemplateForAnimations(template.nodes);
|
|
20524
|
+
if (hasAnimations) {
|
|
20525
|
+
if (diagnostics === void 0) {
|
|
20526
|
+
diagnostics = [];
|
|
20527
|
+
}
|
|
20528
|
+
diagnostics.push(makeDiagnostic(ErrorCode.COMPONENT_ANIMATIONS_CONFLICT, component.get("animations"), `A component cannot have both the '@Component.animations' property (legacy animations) and use 'animate.enter' or 'animate.leave' in the template.`));
|
|
20529
|
+
isPoisoned = true;
|
|
20530
|
+
}
|
|
20531
|
+
}
|
|
20495
20532
|
const templateResource = template.declaration.isInline ? { path: null, node: component.get("template") } : {
|
|
20496
20533
|
path: absoluteFrom(template.declaration.resolvedTemplateUrl),
|
|
20497
20534
|
node: template.sourceMapping.node
|
|
@@ -455,7 +455,7 @@ import { compileDirectiveFromMetadata, makeBindingParser, ParseLocation, ParseSo
|
|
|
455
455
|
// packages/compiler-cli/linker/src/file_linker/partial_linkers/util.js
|
|
456
456
|
import { createMayBeForwardRefExpression, outputAst as o2 } from "@angular/compiler";
|
|
457
457
|
import semver from "semver";
|
|
458
|
-
var PLACEHOLDER_VERSION = "21.0.0-next.
|
|
458
|
+
var PLACEHOLDER_VERSION = "21.0.0-next.9";
|
|
459
459
|
function wrapReference(wrapped) {
|
|
460
460
|
return { value: wrapped, type: wrapped };
|
|
461
461
|
}
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
tryParseSignalInputMapping,
|
|
17
17
|
tryParseSignalModelMapping,
|
|
18
18
|
tryParseSignalQueryFromInitializer
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-3UF7UI6H.js";
|
|
20
20
|
|
|
21
21
|
// packages/compiler-cli/src/ngtsc/transform/jit/src/downlevel_decorators_transform.js
|
|
22
22
|
import ts from "typescript";
|