@angular/compiler 18.0.0-next.0 → 18.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.
@@ -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('18.0.0-next.0');
14
+ export const VERSION = new Version('18.0.0-next.1');
15
15
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2NvbXBpbGVyL3NyYy92ZXJzaW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7R0FNRztBQUVIOzs7O0dBSUc7QUFFSCxPQUFPLEVBQUMsT0FBTyxFQUFDLE1BQU0sUUFBUSxDQUFDO0FBRS9CLE1BQU0sQ0FBQyxNQUFNLE9BQU8sR0FBRyxJQUFJLE9BQU8sQ0FBQyxtQkFBbUIsQ0FBQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAbGljZW5zZVxuICogQ29weXJpZ2h0IEdvb2dsZSBMTEMgQWxsIFJpZ2h0cyBSZXNlcnZlZC5cbiAqXG4gKiBVc2Ugb2YgdGhpcyBzb3VyY2UgY29kZSBpcyBnb3Zlcm5lZCBieSBhbiBNSVQtc3R5bGUgbGljZW5zZSB0aGF0IGNhbiBiZVxuICogZm91bmQgaW4gdGhlIExJQ0VOU0UgZmlsZSBhdCBodHRwczovL2FuZ3VsYXIuaW8vbGljZW5zZVxuICovXG5cbi8qKlxuICogQG1vZHVsZVxuICogQGRlc2NyaXB0aW9uXG4gKiBFbnRyeSBwb2ludCBmb3IgYWxsIHB1YmxpYyBBUElzIG9mIHRoZSBjb21waWxlciBwYWNrYWdlLlxuICovXG5cbmltcG9ydCB7VmVyc2lvbn0gZnJvbSAnLi91dGlsJztcblxuZXhwb3J0IGNvbnN0IFZFUlNJT04gPSBuZXcgVmVyc2lvbignMC4wLjAtUExBQ0VIT0xERVInKTtcbiJdfQ==
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v18.0.0-next.0
2
+ * @license Angular v18.0.0-next.1
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -24320,15 +24320,23 @@ function ingestControlFlowInsertionPoint(unit, xref, node) {
24320
24320
  root = child;
24321
24321
  }
24322
24322
  }
24323
- // If we've found a single root node, its tag name and *static* attributes can be copied
24324
- // to the surrounding template to be used for content projection. Note that it's important
24325
- // that we don't copy any bound attributes since they don't participate in content projection
24326
- // and they can be used in directive matching (in the case of `Template.templateAttrs`).
24323
+ // If we've found a single root node, its tag name and attributes can be
24324
+ // copied to the surrounding template to be used for content projection.
24327
24325
  if (root !== null) {
24326
+ // Collect the static attributes for content projection purposes.
24328
24327
  for (const attr of root.attributes) {
24329
24328
  const securityContext = domSchema.securityContext(NG_TEMPLATE_TAG_NAME, attr.name, true);
24330
24329
  unit.update.push(createBindingOp(xref, BindingKind.Attribute, attr.name, literal(attr.value), null, securityContext, true, false, null, asMessage(attr.i18n), attr.sourceSpan));
24331
24330
  }
24331
+ // Also collect the inputs since they participate in content projection as well.
24332
+ // Note that TDB used to collect the outputs as well, but it wasn't passing them into
24333
+ // the template instruction. Here we just don't collect them.
24334
+ for (const attr of root.inputs) {
24335
+ if (attr.type !== BindingType.Animation && attr.type !== BindingType.Attribute) {
24336
+ const securityContext = domSchema.securityContext(NG_TEMPLATE_TAG_NAME, attr.name, true);
24337
+ unit.create.push(createExtractedAttributeOp(xref, BindingKind.Property, null, attr.name, null, null, null, securityContext));
24338
+ }
24339
+ }
24332
24340
  const tagName = root instanceof Element$1 ? root.name : root.tagName;
24333
24341
  // Don't pass along `ng-template` tag name since it enables directive matching.
24334
24342
  return tagName === NG_TEMPLATE_TAG_NAME ? null : tagName;
@@ -28567,7 +28575,7 @@ function publishFacade(global) {
28567
28575
  * @description
28568
28576
  * Entry point for all public APIs of the compiler package.
28569
28577
  */
28570
- const VERSION = new Version('18.0.0-next.0');
28578
+ const VERSION = new Version('18.0.0-next.1');
28571
28579
 
28572
28580
  class CompilerConfig {
28573
28581
  constructor({ defaultEncapsulation = ViewEncapsulation.Emulated, preserveWhitespaces, strictInjectionParameters } = {}) {
@@ -30135,7 +30143,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$5 = '12.0.0';
30135
30143
  function compileDeclareClassMetadata(metadata) {
30136
30144
  const definitionMap = new DefinitionMap();
30137
30145
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
30138
- definitionMap.set('version', literal('18.0.0-next.0'));
30146
+ definitionMap.set('version', literal('18.0.0-next.1'));
30139
30147
  definitionMap.set('ngImport', importExpr(Identifiers.core));
30140
30148
  definitionMap.set('type', metadata.type);
30141
30149
  definitionMap.set('decorators', metadata.decorators);
@@ -30231,7 +30239,7 @@ function createDirectiveDefinitionMap(meta) {
30231
30239
  const definitionMap = new DefinitionMap();
30232
30240
  const minVersion = getMinimumVersionForPartialOutput(meta);
30233
30241
  definitionMap.set('minVersion', literal(minVersion));
30234
- definitionMap.set('version', literal('18.0.0-next.0'));
30242
+ definitionMap.set('version', literal('18.0.0-next.1'));
30235
30243
  // e.g. `type: MyDirective`
30236
30244
  definitionMap.set('type', meta.type.value);
30237
30245
  if (meta.isStandalone) {
@@ -30623,7 +30631,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
30623
30631
  function compileDeclareFactoryFunction(meta) {
30624
30632
  const definitionMap = new DefinitionMap();
30625
30633
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
30626
- definitionMap.set('version', literal('18.0.0-next.0'));
30634
+ definitionMap.set('version', literal('18.0.0-next.1'));
30627
30635
  definitionMap.set('ngImport', importExpr(Identifiers.core));
30628
30636
  definitionMap.set('type', meta.type.value);
30629
30637
  definitionMap.set('deps', compileDependencies(meta.deps));
@@ -30658,7 +30666,7 @@ function compileDeclareInjectableFromMetadata(meta) {
30658
30666
  function createInjectableDefinitionMap(meta) {
30659
30667
  const definitionMap = new DefinitionMap();
30660
30668
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
30661
- definitionMap.set('version', literal('18.0.0-next.0'));
30669
+ definitionMap.set('version', literal('18.0.0-next.1'));
30662
30670
  definitionMap.set('ngImport', importExpr(Identifiers.core));
30663
30671
  definitionMap.set('type', meta.type.value);
30664
30672
  // Only generate providedIn property if it has a non-null value
@@ -30709,7 +30717,7 @@ function compileDeclareInjectorFromMetadata(meta) {
30709
30717
  function createInjectorDefinitionMap(meta) {
30710
30718
  const definitionMap = new DefinitionMap();
30711
30719
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
30712
- definitionMap.set('version', literal('18.0.0-next.0'));
30720
+ definitionMap.set('version', literal('18.0.0-next.1'));
30713
30721
  definitionMap.set('ngImport', importExpr(Identifiers.core));
30714
30722
  definitionMap.set('type', meta.type.value);
30715
30723
  definitionMap.set('providers', meta.providers);
@@ -30742,7 +30750,7 @@ function createNgModuleDefinitionMap(meta) {
30742
30750
  throw new Error('Invalid path! Local compilation mode should not get into the partial compilation path');
30743
30751
  }
30744
30752
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
30745
- definitionMap.set('version', literal('18.0.0-next.0'));
30753
+ definitionMap.set('version', literal('18.0.0-next.1'));
30746
30754
  definitionMap.set('ngImport', importExpr(Identifiers.core));
30747
30755
  definitionMap.set('type', meta.type.value);
30748
30756
  // We only generate the keys in the metadata if the arrays contain values.
@@ -30793,7 +30801,7 @@ function compileDeclarePipeFromMetadata(meta) {
30793
30801
  function createPipeDefinitionMap(meta) {
30794
30802
  const definitionMap = new DefinitionMap();
30795
30803
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
30796
- definitionMap.set('version', literal('18.0.0-next.0'));
30804
+ definitionMap.set('version', literal('18.0.0-next.1'));
30797
30805
  definitionMap.set('ngImport', importExpr(Identifiers.core));
30798
30806
  // e.g. `type: MyPipe`
30799
30807
  definitionMap.set('type', meta.type.value);