@angular/compiler 17.3.0 → 17.3.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/esm2022/src/render3/partial/class_metadata.mjs +1 -1
- package/esm2022/src/render3/partial/directive.mjs +1 -1
- package/esm2022/src/render3/partial/factory.mjs +1 -1
- package/esm2022/src/render3/partial/injectable.mjs +1 -1
- package/esm2022/src/render3/partial/injector.mjs +1 -1
- package/esm2022/src/render3/partial/ng_module.mjs +1 -1
- package/esm2022/src/render3/partial/pipe.mjs +1 -1
- package/esm2022/src/template/pipeline/src/ingest.mjs +13 -5
- package/esm2022/src/version.mjs +1 -1
- package/fesm2022/compiler.mjs +21 -13
- package/fesm2022/compiler.mjs.map +1 -1
- package/index.d.ts +1 -1
- package/package.json +2 -2
package/esm2022/src/version.mjs
CHANGED
|
@@ -11,5 +11,5 @@
|
|
|
11
11
|
* Entry point for all public APIs of the compiler package.
|
|
12
12
|
*/
|
|
13
13
|
import { Version } from './util';
|
|
14
|
-
export const VERSION = new Version('17.3.
|
|
14
|
+
export const VERSION = new Version('17.3.1');
|
|
15
15
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2NvbXBpbGVyL3NyYy92ZXJzaW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7R0FNRztBQUVIOzs7O0dBSUc7QUFFSCxPQUFPLEVBQUMsT0FBTyxFQUFDLE1BQU0sUUFBUSxDQUFDO0FBRS9CLE1BQU0sQ0FBQyxNQUFNLE9BQU8sR0FBRyxJQUFJLE9BQU8sQ0FBQyxtQkFBbUIsQ0FBQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAbGljZW5zZVxuICogQ29weXJpZ2h0IEdvb2dsZSBMTEMgQWxsIFJpZ2h0cyBSZXNlcnZlZC5cbiAqXG4gKiBVc2Ugb2YgdGhpcyBzb3VyY2UgY29kZSBpcyBnb3Zlcm5lZCBieSBhbiBNSVQtc3R5bGUgbGljZW5zZSB0aGF0IGNhbiBiZVxuICogZm91bmQgaW4gdGhlIExJQ0VOU0UgZmlsZSBhdCBodHRwczovL2FuZ3VsYXIuaW8vbGljZW5zZVxuICovXG5cbi8qKlxuICogQG1vZHVsZVxuICogQGRlc2NyaXB0aW9uXG4gKiBFbnRyeSBwb2ludCBmb3IgYWxsIHB1YmxpYyBBUElzIG9mIHRoZSBjb21waWxlciBwYWNrYWdlLlxuICovXG5cbmltcG9ydCB7VmVyc2lvbn0gZnJvbSAnLi91dGlsJztcblxuZXhwb3J0IGNvbnN0IFZFUlNJT04gPSBuZXcgVmVyc2lvbignMC4wLjAtUExBQ0VIT0xERVInKTtcbiJdfQ==
|
package/fesm2022/compiler.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v17.3.
|
|
2
|
+
* @license Angular v17.3.1
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -25337,15 +25337,23 @@ function ingestControlFlowInsertionPoint(unit, xref, node) {
|
|
|
25337
25337
|
root = child;
|
|
25338
25338
|
}
|
|
25339
25339
|
}
|
|
25340
|
-
// If we've found a single root node, its tag name and
|
|
25341
|
-
// to the surrounding template to be used for content projection.
|
|
25342
|
-
// that we don't copy any bound attributes since they don't participate in content projection
|
|
25343
|
-
// and they can be used in directive matching (in the case of `Template.templateAttrs`).
|
|
25340
|
+
// If we've found a single root node, its tag name and attributes can be
|
|
25341
|
+
// copied to the surrounding template to be used for content projection.
|
|
25344
25342
|
if (root !== null) {
|
|
25343
|
+
// Collect the static attributes for content projection purposes.
|
|
25345
25344
|
for (const attr of root.attributes) {
|
|
25346
25345
|
const securityContext = domSchema.securityContext(NG_TEMPLATE_TAG_NAME$1, attr.name, true);
|
|
25347
25346
|
unit.update.push(createBindingOp(xref, BindingKind.Attribute, attr.name, literal(attr.value), null, securityContext, true, false, null, asMessage(attr.i18n), attr.sourceSpan));
|
|
25348
25347
|
}
|
|
25348
|
+
// Also collect the inputs since they participate in content projection as well.
|
|
25349
|
+
// Note that TDB used to collect the outputs as well, but it wasn't passing them into
|
|
25350
|
+
// the template instruction. Here we just don't collect them.
|
|
25351
|
+
for (const attr of root.inputs) {
|
|
25352
|
+
if (attr.type !== 4 /* e.BindingType.Animation */ && attr.type !== 1 /* e.BindingType.Attribute */) {
|
|
25353
|
+
const securityContext = domSchema.securityContext(NG_TEMPLATE_TAG_NAME$1, attr.name, true);
|
|
25354
|
+
unit.create.push(createExtractedAttributeOp(xref, BindingKind.Property, null, attr.name, null, null, null, securityContext));
|
|
25355
|
+
}
|
|
25356
|
+
}
|
|
25349
25357
|
const tagName = root instanceof Element$1 ? root.name : root.tagName;
|
|
25350
25358
|
// Don't pass along `ng-template` tag name since it enables directive matching.
|
|
25351
25359
|
return tagName === NG_TEMPLATE_TAG_NAME$1 ? null : tagName;
|
|
@@ -32818,7 +32826,7 @@ function publishFacade(global) {
|
|
|
32818
32826
|
* @description
|
|
32819
32827
|
* Entry point for all public APIs of the compiler package.
|
|
32820
32828
|
*/
|
|
32821
|
-
const VERSION = new Version('17.3.
|
|
32829
|
+
const VERSION = new Version('17.3.1');
|
|
32822
32830
|
|
|
32823
32831
|
class CompilerConfig {
|
|
32824
32832
|
constructor({ defaultEncapsulation = ViewEncapsulation.Emulated, preserveWhitespaces, strictInjectionParameters } = {}) {
|
|
@@ -34386,7 +34394,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$5 = '12.0.0';
|
|
|
34386
34394
|
function compileDeclareClassMetadata(metadata) {
|
|
34387
34395
|
const definitionMap = new DefinitionMap();
|
|
34388
34396
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
|
|
34389
|
-
definitionMap.set('version', literal('17.3.
|
|
34397
|
+
definitionMap.set('version', literal('17.3.1'));
|
|
34390
34398
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
34391
34399
|
definitionMap.set('type', metadata.type);
|
|
34392
34400
|
definitionMap.set('decorators', metadata.decorators);
|
|
@@ -34482,7 +34490,7 @@ function createDirectiveDefinitionMap(meta) {
|
|
|
34482
34490
|
const definitionMap = new DefinitionMap();
|
|
34483
34491
|
const minVersion = getMinimumVersionForPartialOutput(meta);
|
|
34484
34492
|
definitionMap.set('minVersion', literal(minVersion));
|
|
34485
|
-
definitionMap.set('version', literal('17.3.
|
|
34493
|
+
definitionMap.set('version', literal('17.3.1'));
|
|
34486
34494
|
// e.g. `type: MyDirective`
|
|
34487
34495
|
definitionMap.set('type', meta.type.value);
|
|
34488
34496
|
if (meta.isStandalone) {
|
|
@@ -34874,7 +34882,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
|
|
|
34874
34882
|
function compileDeclareFactoryFunction(meta) {
|
|
34875
34883
|
const definitionMap = new DefinitionMap();
|
|
34876
34884
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
|
|
34877
|
-
definitionMap.set('version', literal('17.3.
|
|
34885
|
+
definitionMap.set('version', literal('17.3.1'));
|
|
34878
34886
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
34879
34887
|
definitionMap.set('type', meta.type.value);
|
|
34880
34888
|
definitionMap.set('deps', compileDependencies(meta.deps));
|
|
@@ -34909,7 +34917,7 @@ function compileDeclareInjectableFromMetadata(meta) {
|
|
|
34909
34917
|
function createInjectableDefinitionMap(meta) {
|
|
34910
34918
|
const definitionMap = new DefinitionMap();
|
|
34911
34919
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
|
|
34912
|
-
definitionMap.set('version', literal('17.3.
|
|
34920
|
+
definitionMap.set('version', literal('17.3.1'));
|
|
34913
34921
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
34914
34922
|
definitionMap.set('type', meta.type.value);
|
|
34915
34923
|
// Only generate providedIn property if it has a non-null value
|
|
@@ -34960,7 +34968,7 @@ function compileDeclareInjectorFromMetadata(meta) {
|
|
|
34960
34968
|
function createInjectorDefinitionMap(meta) {
|
|
34961
34969
|
const definitionMap = new DefinitionMap();
|
|
34962
34970
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
|
|
34963
|
-
definitionMap.set('version', literal('17.3.
|
|
34971
|
+
definitionMap.set('version', literal('17.3.1'));
|
|
34964
34972
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
34965
34973
|
definitionMap.set('type', meta.type.value);
|
|
34966
34974
|
definitionMap.set('providers', meta.providers);
|
|
@@ -34993,7 +35001,7 @@ function createNgModuleDefinitionMap(meta) {
|
|
|
34993
35001
|
throw new Error('Invalid path! Local compilation mode should not get into the partial compilation path');
|
|
34994
35002
|
}
|
|
34995
35003
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
|
|
34996
|
-
definitionMap.set('version', literal('17.3.
|
|
35004
|
+
definitionMap.set('version', literal('17.3.1'));
|
|
34997
35005
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
34998
35006
|
definitionMap.set('type', meta.type.value);
|
|
34999
35007
|
// We only generate the keys in the metadata if the arrays contain values.
|
|
@@ -35044,7 +35052,7 @@ function compileDeclarePipeFromMetadata(meta) {
|
|
|
35044
35052
|
function createPipeDefinitionMap(meta) {
|
|
35045
35053
|
const definitionMap = new DefinitionMap();
|
|
35046
35054
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
35047
|
-
definitionMap.set('version', literal('17.3.
|
|
35055
|
+
definitionMap.set('version', literal('17.3.1'));
|
|
35048
35056
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
35049
35057
|
// e.g. `type: MyPipe`
|
|
35050
35058
|
definitionMap.set('type', meta.type.value);
|