@angular/compiler 20.2.0-next.3 → 20.2.0-next.5
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 +16 -12
- package/fesm2022/compiler.mjs.map +1 -1
- package/index.d.ts +15 -10
- package/package.json +1 -1
package/fesm2022/compiler.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v20.2.0-next.
|
|
2
|
+
* @license Angular v20.2.0-next.5
|
|
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
|
/**
|
|
@@ -31000,7 +31002,8 @@ class R3TargetBinder {
|
|
|
31000
31002
|
// Bind the host element in a separate scope. Note that it only uses the
|
|
31001
31003
|
// `TemplateBinder` since directives don't apply inside a host context.
|
|
31002
31004
|
if (target.host) {
|
|
31003
|
-
|
|
31005
|
+
directives.set(target.host.node, target.host.directives);
|
|
31006
|
+
TemplateBinder.applyWithScope(target.host.node, Scope.apply(target.host.node), expressions, symbols, nestingLevel, usedPipes, eagerPipes, deferBlocks);
|
|
31004
31007
|
}
|
|
31005
31008
|
return new R3BoundTarget(target, directives, eagerDirectives, missingDirectives, bindings, references, expressions, symbols, nestingLevel, scopedNodeEntities, usedPipes, eagerPipes, deferBlocks);
|
|
31006
31009
|
}
|
|
@@ -31793,7 +31796,8 @@ class R3BoundTarget {
|
|
|
31793
31796
|
}
|
|
31794
31797
|
if (target instanceof Template ||
|
|
31795
31798
|
target.node instanceof Component$1 ||
|
|
31796
|
-
target.node instanceof Directive$1
|
|
31799
|
+
target.node instanceof Directive$1 ||
|
|
31800
|
+
target.node instanceof HostElement) {
|
|
31797
31801
|
return null;
|
|
31798
31802
|
}
|
|
31799
31803
|
return this.referenceTargetToElement(target.node);
|
|
@@ -34269,7 +34273,7 @@ const MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION = '18.0.0';
|
|
|
34269
34273
|
function compileDeclareClassMetadata(metadata) {
|
|
34270
34274
|
const definitionMap = new DefinitionMap();
|
|
34271
34275
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
|
|
34272
|
-
definitionMap.set('version', literal('20.2.0-next.
|
|
34276
|
+
definitionMap.set('version', literal('20.2.0-next.5'));
|
|
34273
34277
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
34274
34278
|
definitionMap.set('type', metadata.type);
|
|
34275
34279
|
definitionMap.set('decorators', metadata.decorators);
|
|
@@ -34287,7 +34291,7 @@ function compileComponentDeclareClassMetadata(metadata, dependencies) {
|
|
|
34287
34291
|
callbackReturnDefinitionMap.set('ctorParameters', metadata.ctorParameters ?? literal(null));
|
|
34288
34292
|
callbackReturnDefinitionMap.set('propDecorators', metadata.propDecorators ?? literal(null));
|
|
34289
34293
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION));
|
|
34290
|
-
definitionMap.set('version', literal('20.2.0-next.
|
|
34294
|
+
definitionMap.set('version', literal('20.2.0-next.5'));
|
|
34291
34295
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
34292
34296
|
definitionMap.set('type', metadata.type);
|
|
34293
34297
|
definitionMap.set('resolveDeferredDeps', compileComponentMetadataAsyncResolver(dependencies));
|
|
@@ -34382,7 +34386,7 @@ function createDirectiveDefinitionMap(meta) {
|
|
|
34382
34386
|
const definitionMap = new DefinitionMap();
|
|
34383
34387
|
const minVersion = getMinimumVersionForPartialOutput(meta);
|
|
34384
34388
|
definitionMap.set('minVersion', literal(minVersion));
|
|
34385
|
-
definitionMap.set('version', literal('20.2.0-next.
|
|
34389
|
+
definitionMap.set('version', literal('20.2.0-next.5'));
|
|
34386
34390
|
// e.g. `type: MyDirective`
|
|
34387
34391
|
definitionMap.set('type', meta.type.value);
|
|
34388
34392
|
if (meta.isStandalone !== undefined) {
|
|
@@ -34798,7 +34802,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
|
|
|
34798
34802
|
function compileDeclareFactoryFunction(meta) {
|
|
34799
34803
|
const definitionMap = new DefinitionMap();
|
|
34800
34804
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
|
|
34801
|
-
definitionMap.set('version', literal('20.2.0-next.
|
|
34805
|
+
definitionMap.set('version', literal('20.2.0-next.5'));
|
|
34802
34806
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
34803
34807
|
definitionMap.set('type', meta.type.value);
|
|
34804
34808
|
definitionMap.set('deps', compileDependencies(meta.deps));
|
|
@@ -34833,7 +34837,7 @@ function compileDeclareInjectableFromMetadata(meta) {
|
|
|
34833
34837
|
function createInjectableDefinitionMap(meta) {
|
|
34834
34838
|
const definitionMap = new DefinitionMap();
|
|
34835
34839
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
|
|
34836
|
-
definitionMap.set('version', literal('20.2.0-next.
|
|
34840
|
+
definitionMap.set('version', literal('20.2.0-next.5'));
|
|
34837
34841
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
34838
34842
|
definitionMap.set('type', meta.type.value);
|
|
34839
34843
|
// Only generate providedIn property if it has a non-null value
|
|
@@ -34884,7 +34888,7 @@ function compileDeclareInjectorFromMetadata(meta) {
|
|
|
34884
34888
|
function createInjectorDefinitionMap(meta) {
|
|
34885
34889
|
const definitionMap = new DefinitionMap();
|
|
34886
34890
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
|
|
34887
|
-
definitionMap.set('version', literal('20.2.0-next.
|
|
34891
|
+
definitionMap.set('version', literal('20.2.0-next.5'));
|
|
34888
34892
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
34889
34893
|
definitionMap.set('type', meta.type.value);
|
|
34890
34894
|
definitionMap.set('providers', meta.providers);
|
|
@@ -34917,7 +34921,7 @@ function createNgModuleDefinitionMap(meta) {
|
|
|
34917
34921
|
throw new Error('Invalid path! Local compilation mode should not get into the partial compilation path');
|
|
34918
34922
|
}
|
|
34919
34923
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
|
|
34920
|
-
definitionMap.set('version', literal('20.2.0-next.
|
|
34924
|
+
definitionMap.set('version', literal('20.2.0-next.5'));
|
|
34921
34925
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
34922
34926
|
definitionMap.set('type', meta.type.value);
|
|
34923
34927
|
// We only generate the keys in the metadata if the arrays contain values.
|
|
@@ -34968,7 +34972,7 @@ function compileDeclarePipeFromMetadata(meta) {
|
|
|
34968
34972
|
function createPipeDefinitionMap(meta) {
|
|
34969
34973
|
const definitionMap = new DefinitionMap();
|
|
34970
34974
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
34971
|
-
definitionMap.set('version', literal('20.2.0-next.
|
|
34975
|
+
definitionMap.set('version', literal('20.2.0-next.5'));
|
|
34972
34976
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
34973
34977
|
// e.g. `type: MyPipe`
|
|
34974
34978
|
definitionMap.set('type', meta.type.value);
|
|
@@ -35124,7 +35128,7 @@ function compileHmrUpdateCallback(definitions, constantStatements, meta) {
|
|
|
35124
35128
|
* @description
|
|
35125
35129
|
* Entry point for all public APIs of the compiler package.
|
|
35126
35130
|
*/
|
|
35127
|
-
const VERSION = new Version('20.2.0-next.
|
|
35131
|
+
const VERSION = new Version('20.2.0-next.5');
|
|
35128
35132
|
|
|
35129
35133
|
//////////////////////////////////////
|
|
35130
35134
|
// THIS FILE HAS GLOBAL SIDE EFFECT //
|