@angular/compiler 20.2.3 → 21.0.0-next.1
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 +14 -12
- package/fesm2022/compiler.mjs.map +1 -1
- package/index.d.ts +5 -3
- package/package.json +1 -1
package/fesm2022/compiler.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular
|
|
2
|
+
* @license Angular v21.0.0-next.1
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -421,6 +421,7 @@ var ViewEncapsulation$1;
|
|
|
421
421
|
// Historically the 1 value was for `Native` encapsulation which has been removed as of v11.
|
|
422
422
|
ViewEncapsulation[ViewEncapsulation["None"] = 2] = "None";
|
|
423
423
|
ViewEncapsulation[ViewEncapsulation["ShadowDom"] = 3] = "ShadowDom";
|
|
424
|
+
ViewEncapsulation[ViewEncapsulation["IsolatedShadowDom"] = 4] = "IsolatedShadowDom";
|
|
424
425
|
})(ViewEncapsulation$1 || (ViewEncapsulation$1 = {}));
|
|
425
426
|
var ChangeDetectionStrategy;
|
|
426
427
|
(function (ChangeDetectionStrategy) {
|
|
@@ -529,6 +530,7 @@ var ViewEncapsulation;
|
|
|
529
530
|
// Historically the 1 value was for `Native` encapsulation which has been removed as of v11.
|
|
530
531
|
ViewEncapsulation[ViewEncapsulation["None"] = 2] = "None";
|
|
531
532
|
ViewEncapsulation[ViewEncapsulation["ShadowDom"] = 3] = "ShadowDom";
|
|
533
|
+
ViewEncapsulation[ViewEncapsulation["IsolatedShadowDom"] = 4] = "IsolatedShadowDom";
|
|
532
534
|
})(ViewEncapsulation || (ViewEncapsulation = {}));
|
|
533
535
|
|
|
534
536
|
/**
|
|
@@ -28090,7 +28092,7 @@ class BindingParser {
|
|
|
28090
28092
|
if (isLegacyAnimationProp) {
|
|
28091
28093
|
this._parseLegacyAnimation(name, expression, sourceSpan, absoluteOffset, keySpan, valueSpan, targetMatchableAttrs, targetProps);
|
|
28092
28094
|
}
|
|
28093
|
-
else if (name.startsWith(
|
|
28095
|
+
else if (name.startsWith(ANIMATE_PREFIX)) {
|
|
28094
28096
|
this._parseAnimation(name, this.parseBinding(expression, isHost, valueSpan || sourceSpan, absoluteOffset), sourceSpan, keySpan, valueSpan, targetMatchableAttrs, targetProps);
|
|
28095
28097
|
}
|
|
28096
28098
|
else {
|
|
@@ -28253,7 +28255,7 @@ class BindingParser {
|
|
|
28253
28255
|
if (isAssignmentEvent) {
|
|
28254
28256
|
eventType = ParsedEventType.TwoWay;
|
|
28255
28257
|
}
|
|
28256
|
-
if (name.startsWith(
|
|
28258
|
+
if (name.startsWith(ANIMATE_PREFIX)) {
|
|
28257
28259
|
eventType = ParsedEventType.Animation;
|
|
28258
28260
|
}
|
|
28259
28261
|
targetEvents.push(new ParsedEvent(eventName, target, eventType, ast, sourceSpan, handlerSpan, keySpan));
|
|
@@ -34323,7 +34325,7 @@ const MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION = '18.0.0';
|
|
|
34323
34325
|
function compileDeclareClassMetadata(metadata) {
|
|
34324
34326
|
const definitionMap = new DefinitionMap();
|
|
34325
34327
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
|
|
34326
|
-
definitionMap.set('version', literal('
|
|
34328
|
+
definitionMap.set('version', literal('21.0.0-next.1'));
|
|
34327
34329
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
34328
34330
|
definitionMap.set('type', metadata.type);
|
|
34329
34331
|
definitionMap.set('decorators', metadata.decorators);
|
|
@@ -34341,7 +34343,7 @@ function compileComponentDeclareClassMetadata(metadata, dependencies) {
|
|
|
34341
34343
|
callbackReturnDefinitionMap.set('ctorParameters', metadata.ctorParameters ?? literal(null));
|
|
34342
34344
|
callbackReturnDefinitionMap.set('propDecorators', metadata.propDecorators ?? literal(null));
|
|
34343
34345
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION));
|
|
34344
|
-
definitionMap.set('version', literal('
|
|
34346
|
+
definitionMap.set('version', literal('21.0.0-next.1'));
|
|
34345
34347
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
34346
34348
|
definitionMap.set('type', metadata.type);
|
|
34347
34349
|
definitionMap.set('resolveDeferredDeps', compileComponentMetadataAsyncResolver(dependencies));
|
|
@@ -34436,7 +34438,7 @@ function createDirectiveDefinitionMap(meta) {
|
|
|
34436
34438
|
const definitionMap = new DefinitionMap();
|
|
34437
34439
|
const minVersion = getMinimumVersionForPartialOutput(meta);
|
|
34438
34440
|
definitionMap.set('minVersion', literal(minVersion));
|
|
34439
|
-
definitionMap.set('version', literal('
|
|
34441
|
+
definitionMap.set('version', literal('21.0.0-next.1'));
|
|
34440
34442
|
// e.g. `type: MyDirective`
|
|
34441
34443
|
definitionMap.set('type', meta.type.value);
|
|
34442
34444
|
if (meta.isStandalone !== undefined) {
|
|
@@ -34852,7 +34854,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
|
|
|
34852
34854
|
function compileDeclareFactoryFunction(meta) {
|
|
34853
34855
|
const definitionMap = new DefinitionMap();
|
|
34854
34856
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
|
|
34855
|
-
definitionMap.set('version', literal('
|
|
34857
|
+
definitionMap.set('version', literal('21.0.0-next.1'));
|
|
34856
34858
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
34857
34859
|
definitionMap.set('type', meta.type.value);
|
|
34858
34860
|
definitionMap.set('deps', compileDependencies(meta.deps));
|
|
@@ -34887,7 +34889,7 @@ function compileDeclareInjectableFromMetadata(meta) {
|
|
|
34887
34889
|
function createInjectableDefinitionMap(meta) {
|
|
34888
34890
|
const definitionMap = new DefinitionMap();
|
|
34889
34891
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
|
|
34890
|
-
definitionMap.set('version', literal('
|
|
34892
|
+
definitionMap.set('version', literal('21.0.0-next.1'));
|
|
34891
34893
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
34892
34894
|
definitionMap.set('type', meta.type.value);
|
|
34893
34895
|
// Only generate providedIn property if it has a non-null value
|
|
@@ -34938,7 +34940,7 @@ function compileDeclareInjectorFromMetadata(meta) {
|
|
|
34938
34940
|
function createInjectorDefinitionMap(meta) {
|
|
34939
34941
|
const definitionMap = new DefinitionMap();
|
|
34940
34942
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
|
|
34941
|
-
definitionMap.set('version', literal('
|
|
34943
|
+
definitionMap.set('version', literal('21.0.0-next.1'));
|
|
34942
34944
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
34943
34945
|
definitionMap.set('type', meta.type.value);
|
|
34944
34946
|
definitionMap.set('providers', meta.providers);
|
|
@@ -34971,7 +34973,7 @@ function createNgModuleDefinitionMap(meta) {
|
|
|
34971
34973
|
throw new Error('Invalid path! Local compilation mode should not get into the partial compilation path');
|
|
34972
34974
|
}
|
|
34973
34975
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
|
|
34974
|
-
definitionMap.set('version', literal('
|
|
34976
|
+
definitionMap.set('version', literal('21.0.0-next.1'));
|
|
34975
34977
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
34976
34978
|
definitionMap.set('type', meta.type.value);
|
|
34977
34979
|
// We only generate the keys in the metadata if the arrays contain values.
|
|
@@ -35022,7 +35024,7 @@ function compileDeclarePipeFromMetadata(meta) {
|
|
|
35022
35024
|
function createPipeDefinitionMap(meta) {
|
|
35023
35025
|
const definitionMap = new DefinitionMap();
|
|
35024
35026
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
35025
|
-
definitionMap.set('version', literal('
|
|
35027
|
+
definitionMap.set('version', literal('21.0.0-next.1'));
|
|
35026
35028
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
35027
35029
|
// e.g. `type: MyPipe`
|
|
35028
35030
|
definitionMap.set('type', meta.type.value);
|
|
@@ -35178,7 +35180,7 @@ function compileHmrUpdateCallback(definitions, constantStatements, meta) {
|
|
|
35178
35180
|
* @description
|
|
35179
35181
|
* Entry point for all public APIs of the compiler package.
|
|
35180
35182
|
*/
|
|
35181
|
-
const VERSION = new Version('
|
|
35183
|
+
const VERSION = new Version('21.0.0-next.1');
|
|
35182
35184
|
|
|
35183
35185
|
//////////////////////////////////////
|
|
35184
35186
|
// THIS FILE HAS GLOBAL SIDE EFFECT //
|