@angular/compiler 20.2.1 → 20.2.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/fesm2022/compiler.mjs +20 -14
- package/fesm2022/compiler.mjs.map +1 -1
- package/index.d.ts +1 -1
- package/package.json +1 -1
package/fesm2022/compiler.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v20.2.
|
|
2
|
+
* @license Angular v20.2.3
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -28090,7 +28090,7 @@ class BindingParser {
|
|
|
28090
28090
|
if (isLegacyAnimationProp) {
|
|
28091
28091
|
this._parseLegacyAnimation(name, expression, sourceSpan, absoluteOffset, keySpan, valueSpan, targetMatchableAttrs, targetProps);
|
|
28092
28092
|
}
|
|
28093
|
-
else if (name.startsWith(ANIMATE_PREFIX)) {
|
|
28093
|
+
else if (name.startsWith(`${ANIMATE_PREFIX}${PROPERTY_PARTS_SEPARATOR}`)) {
|
|
28094
28094
|
this._parseAnimation(name, this.parseBinding(expression, isHost, valueSpan || sourceSpan, absoluteOffset), sourceSpan, keySpan, valueSpan, targetMatchableAttrs, targetProps);
|
|
28095
28095
|
}
|
|
28096
28096
|
else {
|
|
@@ -28253,7 +28253,7 @@ class BindingParser {
|
|
|
28253
28253
|
if (isAssignmentEvent) {
|
|
28254
28254
|
eventType = ParsedEventType.TwoWay;
|
|
28255
28255
|
}
|
|
28256
|
-
if (name.startsWith(ANIMATE_PREFIX)) {
|
|
28256
|
+
if (name.startsWith(`${ANIMATE_PREFIX}${PROPERTY_PARTS_SEPARATOR}`)) {
|
|
28257
28257
|
eventType = ParsedEventType.Animation;
|
|
28258
28258
|
}
|
|
28259
28259
|
targetEvents.push(new ParsedEvent(eventName, target, eventType, ast, sourceSpan, handlerSpan, keySpan));
|
|
@@ -29930,6 +29930,12 @@ class HtmlAstToIvyAst {
|
|
|
29930
29930
|
}
|
|
29931
29931
|
return directives;
|
|
29932
29932
|
}
|
|
29933
|
+
filterAnimationAttributes(attributes) {
|
|
29934
|
+
return attributes.filter((a) => !a.name.startsWith('animate.'));
|
|
29935
|
+
}
|
|
29936
|
+
filterAnimationInputs(attributes) {
|
|
29937
|
+
return attributes.filter((a) => a.type !== BindingType.Animation);
|
|
29938
|
+
}
|
|
29933
29939
|
wrapInTemplate(node, templateProperties, templateVariables, i18nAttrsMeta, isTemplateElement, isI18nRootElement) {
|
|
29934
29940
|
// We need to hoist the attributes of the node to the template for content projection purposes.
|
|
29935
29941
|
const attrs = this.categorizePropertyAttributes('ng-template', templateProperties, i18nAttrsMeta);
|
|
@@ -29942,8 +29948,8 @@ class HtmlAstToIvyAst {
|
|
|
29942
29948
|
outputs: [],
|
|
29943
29949
|
};
|
|
29944
29950
|
if (node instanceof Element$1 || node instanceof Component$1) {
|
|
29945
|
-
hoistedAttrs.attributes.push(...node.attributes);
|
|
29946
|
-
hoistedAttrs.inputs.push(...node.inputs);
|
|
29951
|
+
hoistedAttrs.attributes.push(...this.filterAnimationAttributes(node.attributes));
|
|
29952
|
+
hoistedAttrs.inputs.push(...this.filterAnimationInputs(node.inputs));
|
|
29947
29953
|
hoistedAttrs.outputs.push(...node.outputs);
|
|
29948
29954
|
}
|
|
29949
29955
|
// For <ng-template>s with structural directives on them, avoid passing i18n information to
|
|
@@ -34317,7 +34323,7 @@ const MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION = '18.0.0';
|
|
|
34317
34323
|
function compileDeclareClassMetadata(metadata) {
|
|
34318
34324
|
const definitionMap = new DefinitionMap();
|
|
34319
34325
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
|
|
34320
|
-
definitionMap.set('version', literal('20.2.
|
|
34326
|
+
definitionMap.set('version', literal('20.2.3'));
|
|
34321
34327
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
34322
34328
|
definitionMap.set('type', metadata.type);
|
|
34323
34329
|
definitionMap.set('decorators', metadata.decorators);
|
|
@@ -34335,7 +34341,7 @@ function compileComponentDeclareClassMetadata(metadata, dependencies) {
|
|
|
34335
34341
|
callbackReturnDefinitionMap.set('ctorParameters', metadata.ctorParameters ?? literal(null));
|
|
34336
34342
|
callbackReturnDefinitionMap.set('propDecorators', metadata.propDecorators ?? literal(null));
|
|
34337
34343
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION));
|
|
34338
|
-
definitionMap.set('version', literal('20.2.
|
|
34344
|
+
definitionMap.set('version', literal('20.2.3'));
|
|
34339
34345
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
34340
34346
|
definitionMap.set('type', metadata.type);
|
|
34341
34347
|
definitionMap.set('resolveDeferredDeps', compileComponentMetadataAsyncResolver(dependencies));
|
|
@@ -34430,7 +34436,7 @@ function createDirectiveDefinitionMap(meta) {
|
|
|
34430
34436
|
const definitionMap = new DefinitionMap();
|
|
34431
34437
|
const minVersion = getMinimumVersionForPartialOutput(meta);
|
|
34432
34438
|
definitionMap.set('minVersion', literal(minVersion));
|
|
34433
|
-
definitionMap.set('version', literal('20.2.
|
|
34439
|
+
definitionMap.set('version', literal('20.2.3'));
|
|
34434
34440
|
// e.g. `type: MyDirective`
|
|
34435
34441
|
definitionMap.set('type', meta.type.value);
|
|
34436
34442
|
if (meta.isStandalone !== undefined) {
|
|
@@ -34846,7 +34852,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
|
|
|
34846
34852
|
function compileDeclareFactoryFunction(meta) {
|
|
34847
34853
|
const definitionMap = new DefinitionMap();
|
|
34848
34854
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
|
|
34849
|
-
definitionMap.set('version', literal('20.2.
|
|
34855
|
+
definitionMap.set('version', literal('20.2.3'));
|
|
34850
34856
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
34851
34857
|
definitionMap.set('type', meta.type.value);
|
|
34852
34858
|
definitionMap.set('deps', compileDependencies(meta.deps));
|
|
@@ -34881,7 +34887,7 @@ function compileDeclareInjectableFromMetadata(meta) {
|
|
|
34881
34887
|
function createInjectableDefinitionMap(meta) {
|
|
34882
34888
|
const definitionMap = new DefinitionMap();
|
|
34883
34889
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
|
|
34884
|
-
definitionMap.set('version', literal('20.2.
|
|
34890
|
+
definitionMap.set('version', literal('20.2.3'));
|
|
34885
34891
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
34886
34892
|
definitionMap.set('type', meta.type.value);
|
|
34887
34893
|
// Only generate providedIn property if it has a non-null value
|
|
@@ -34932,7 +34938,7 @@ function compileDeclareInjectorFromMetadata(meta) {
|
|
|
34932
34938
|
function createInjectorDefinitionMap(meta) {
|
|
34933
34939
|
const definitionMap = new DefinitionMap();
|
|
34934
34940
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
|
|
34935
|
-
definitionMap.set('version', literal('20.2.
|
|
34941
|
+
definitionMap.set('version', literal('20.2.3'));
|
|
34936
34942
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
34937
34943
|
definitionMap.set('type', meta.type.value);
|
|
34938
34944
|
definitionMap.set('providers', meta.providers);
|
|
@@ -34965,7 +34971,7 @@ function createNgModuleDefinitionMap(meta) {
|
|
|
34965
34971
|
throw new Error('Invalid path! Local compilation mode should not get into the partial compilation path');
|
|
34966
34972
|
}
|
|
34967
34973
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
|
|
34968
|
-
definitionMap.set('version', literal('20.2.
|
|
34974
|
+
definitionMap.set('version', literal('20.2.3'));
|
|
34969
34975
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
34970
34976
|
definitionMap.set('type', meta.type.value);
|
|
34971
34977
|
// We only generate the keys in the metadata if the arrays contain values.
|
|
@@ -35016,7 +35022,7 @@ function compileDeclarePipeFromMetadata(meta) {
|
|
|
35016
35022
|
function createPipeDefinitionMap(meta) {
|
|
35017
35023
|
const definitionMap = new DefinitionMap();
|
|
35018
35024
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
35019
|
-
definitionMap.set('version', literal('20.2.
|
|
35025
|
+
definitionMap.set('version', literal('20.2.3'));
|
|
35020
35026
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
35021
35027
|
// e.g. `type: MyPipe`
|
|
35022
35028
|
definitionMap.set('type', meta.type.value);
|
|
@@ -35172,7 +35178,7 @@ function compileHmrUpdateCallback(definitions, constantStatements, meta) {
|
|
|
35172
35178
|
* @description
|
|
35173
35179
|
* Entry point for all public APIs of the compiler package.
|
|
35174
35180
|
*/
|
|
35175
|
-
const VERSION = new Version('20.2.
|
|
35181
|
+
const VERSION = new Version('20.2.3');
|
|
35176
35182
|
|
|
35177
35183
|
//////////////////////////////////////
|
|
35178
35184
|
// THIS FILE HAS GLOBAL SIDE EFFECT //
|