@angular/compiler-cli 20.1.0-next.3 → 20.1.0-rc.0
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-DI76UIWO.js → chunk-2KXD3GSC.js} +2 -2
- package/bundles/{chunk-M6L5FWG4.js → chunk-45WGF6MF.js} +5 -5
- package/bundles/{chunk-M6L5FWG4.js.map → chunk-45WGF6MF.js.map} +1 -1
- package/bundles/chunk-FPHHL4UV.js +1 -1
- package/bundles/{chunk-JVXFMHZL.js → chunk-IRC3OLFO.js} +20 -20
- package/bundles/{chunk-JVXFMHZL.js.map → chunk-IRC3OLFO.js.map} +1 -1
- package/bundles/{chunk-YYCGL737.js → chunk-QEIHQPSG.js} +2 -2
- package/bundles/{chunk-J27XEXWK.js → chunk-SC5ESQGY.js} +2 -2
- package/bundles/index.js +5 -5
- package/bundles/private/migrations.js +1 -1
- package/bundles/private/tooling.js +3 -3
- 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 +3 -3
- package/src/ngtsc/annotations/component/src/metadata.d.ts +2 -2
- package/src/ngtsc/annotations/component/src/util.d.ts +5 -5
- /package/bundles/{chunk-DI76UIWO.js.map → chunk-2KXD3GSC.js.map} +0 -0
- /package/bundles/{chunk-YYCGL737.js.map → chunk-QEIHQPSG.js.map} +0 -0
- /package/bundles/{chunk-J27XEXWK.js.map → chunk-SC5ESQGY.js.map} +0 -0
|
@@ -11436,8 +11436,8 @@ function createNodeFromListenerDecorator(decorator, parser, listeners) {
|
|
|
11436
11436
|
let phase;
|
|
11437
11437
|
let target;
|
|
11438
11438
|
if (eventNameNode.text.startsWith("@")) {
|
|
11439
|
-
const parsedName = parser.
|
|
11440
|
-
type = ParsedEventType.
|
|
11439
|
+
const parsedName = parser.parseLegacyAnimationEventName(eventNameNode.text);
|
|
11440
|
+
type = ParsedEventType.LegacyAnimation;
|
|
11441
11441
|
eventName = parsedName.eventName;
|
|
11442
11442
|
phase = parsedName.phase;
|
|
11443
11443
|
target = null;
|
|
@@ -11468,7 +11468,7 @@ function inferBoundAttribute(name) {
|
|
|
11468
11468
|
type = BindingType.Style;
|
|
11469
11469
|
} else if (name.startsWith(animationPrefix)) {
|
|
11470
11470
|
attrName = name.slice(animationPrefix.length);
|
|
11471
|
-
type = BindingType.
|
|
11471
|
+
type = BindingType.LegacyAnimation;
|
|
11472
11472
|
} else {
|
|
11473
11473
|
attrName = name;
|
|
11474
11474
|
type = BindingType.Property;
|
|
@@ -13313,7 +13313,7 @@ var TcbDirectiveOutputsOp = class extends TcbOp {
|
|
|
13313
13313
|
let dirId = null;
|
|
13314
13314
|
const outputs = this.dir.outputs;
|
|
13315
13315
|
for (const output of this.node.outputs) {
|
|
13316
|
-
if (output.type === ParsedEventType2.
|
|
13316
|
+
if (output.type === ParsedEventType2.LegacyAnimation || !outputs.hasBindingPropertyName(output.name)) {
|
|
13317
13317
|
continue;
|
|
13318
13318
|
}
|
|
13319
13319
|
if (this.tcb.env.config.checkTypeOfOutputEvents && output.name.endsWith("Change")) {
|
|
@@ -13374,7 +13374,7 @@ var TcbUnclaimedOutputsOp = class extends TcbOp {
|
|
|
13374
13374
|
continue;
|
|
13375
13375
|
}
|
|
13376
13376
|
}
|
|
13377
|
-
if (output.type === ParsedEventType2.
|
|
13377
|
+
if (output.type === ParsedEventType2.LegacyAnimation) {
|
|
13378
13378
|
const eventType = this.tcb.env.config.checkTypeOfAnimationEvents ? this.tcb.env.referenceExternalType("@angular/animations", "AnimationEvent") : 1;
|
|
13379
13379
|
const handler = tcbCreateEventHandler(output, this.tcb, this.scope, eventType);
|
|
13380
13380
|
this.scope.addStatement(ts60.factory.createExpressionStatement(handler));
|
|
@@ -17907,28 +17907,28 @@ var ComponentSymbol = class extends DirectiveSymbol {
|
|
|
17907
17907
|
|
|
17908
17908
|
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/util.js
|
|
17909
17909
|
import ts69 from "typescript";
|
|
17910
|
-
function
|
|
17910
|
+
function collectLegacyAnimationNames(value, legacyAnimationTriggerNames) {
|
|
17911
17911
|
if (value instanceof Map) {
|
|
17912
17912
|
const name = value.get("name");
|
|
17913
17913
|
if (typeof name === "string") {
|
|
17914
|
-
|
|
17914
|
+
legacyAnimationTriggerNames.staticTriggerNames.push(name);
|
|
17915
17915
|
} else {
|
|
17916
|
-
|
|
17916
|
+
legacyAnimationTriggerNames.includesDynamicAnimations = true;
|
|
17917
17917
|
}
|
|
17918
17918
|
} else if (Array.isArray(value)) {
|
|
17919
17919
|
for (const resolvedValue of value) {
|
|
17920
|
-
|
|
17920
|
+
collectLegacyAnimationNames(resolvedValue, legacyAnimationTriggerNames);
|
|
17921
17921
|
}
|
|
17922
17922
|
} else {
|
|
17923
|
-
|
|
17923
|
+
legacyAnimationTriggerNames.includesDynamicAnimations = true;
|
|
17924
17924
|
}
|
|
17925
17925
|
}
|
|
17926
|
-
function
|
|
17926
|
+
function isLegacyAngularAnimationsReference(reference, symbolName) {
|
|
17927
17927
|
return reference.ownedByModuleGuess === "@angular/animations" && reference.debugName === symbolName;
|
|
17928
17928
|
}
|
|
17929
|
-
var
|
|
17929
|
+
var legacyAnimationTriggerResolver = (fn, node, resolve2, unresolvable) => {
|
|
17930
17930
|
const animationTriggerMethodName = "trigger";
|
|
17931
|
-
if (!
|
|
17931
|
+
if (!isLegacyAngularAnimationsReference(fn, animationTriggerMethodName)) {
|
|
17932
17932
|
return unresolvable;
|
|
17933
17933
|
}
|
|
17934
17934
|
const triggerNameExpression = node.arguments[0];
|
|
@@ -18516,13 +18516,13 @@ var ComponentDecoratorHandler = class {
|
|
|
18516
18516
|
changeDetection = new o5.WrappedNodeExpr(component.get("changeDetection"));
|
|
18517
18517
|
}
|
|
18518
18518
|
let animations = null;
|
|
18519
|
-
let
|
|
18519
|
+
let legacyAnimationTriggerNames = null;
|
|
18520
18520
|
if (component.has("animations")) {
|
|
18521
18521
|
const animationExpression = component.get("animations");
|
|
18522
18522
|
animations = new o5.WrappedNodeExpr(animationExpression);
|
|
18523
|
-
const animationsValue = this.evaluator.evaluate(animationExpression,
|
|
18524
|
-
|
|
18525
|
-
|
|
18523
|
+
const animationsValue = this.evaluator.evaluate(animationExpression, legacyAnimationTriggerResolver);
|
|
18524
|
+
legacyAnimationTriggerNames = { includesDynamicAnimations: false, staticTriggerNames: [] };
|
|
18525
|
+
collectLegacyAnimationNames(animationsValue, legacyAnimationTriggerNames);
|
|
18526
18526
|
}
|
|
18527
18527
|
const relativeContextFilePath = this.rootDirs.reduce((previous, rootDir) => {
|
|
18528
18528
|
const candidate = relative(absoluteFrom(rootDir), absoluteFrom(containingFile));
|
|
@@ -18788,7 +18788,7 @@ var ComponentDecoratorHandler = class {
|
|
|
18788
18788
|
hostBindings: hostBindingResources
|
|
18789
18789
|
},
|
|
18790
18790
|
isPoisoned,
|
|
18791
|
-
|
|
18791
|
+
legacyAnimationTriggerNames,
|
|
18792
18792
|
rawImports,
|
|
18793
18793
|
resolvedImports,
|
|
18794
18794
|
rawDeferredImports,
|
|
@@ -18830,7 +18830,7 @@ var ComponentDecoratorHandler = class {
|
|
|
18830
18830
|
imports: analysis.resolvedImports,
|
|
18831
18831
|
rawImports: analysis.rawImports,
|
|
18832
18832
|
deferredImports: analysis.resolvedDeferredImports,
|
|
18833
|
-
animationTriggerNames: analysis.
|
|
18833
|
+
animationTriggerNames: analysis.legacyAnimationTriggerNames,
|
|
18834
18834
|
schemas: analysis.schemas,
|
|
18835
18835
|
decorator: analysis.decorator,
|
|
18836
18836
|
assumedToExportProviders: false,
|
|
@@ -20117,4 +20117,4 @@ export {
|
|
|
20117
20117
|
* Use of this source code is governed by an MIT-style license that can be
|
|
20118
20118
|
* found in the LICENSE file at https://angular.dev/license
|
|
20119
20119
|
*/
|
|
20120
|
-
//# sourceMappingURL=chunk-
|
|
20120
|
+
//# sourceMappingURL=chunk-IRC3OLFO.js.map
|