@angular/compiler 19.0.0-next.6 → 19.0.0-next.7

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.0.0-next.6
2
+ * @license Angular v19.0.0-next.7
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -12395,7 +12395,10 @@ function formatValue(value) {
12395
12395
  // Self-closing tags use a special form that concatenates the start and close tag values.
12396
12396
  if (value.flags & I18nParamValueFlags.OpenTag &&
12397
12397
  value.flags & I18nParamValueFlags.CloseTag) {
12398
- return `${formatValue({ ...value, flags: value.flags & ~I18nParamValueFlags.CloseTag })}${formatValue({ ...value, flags: value.flags & ~I18nParamValueFlags.OpenTag })}`;
12398
+ return `${formatValue({
12399
+ ...value,
12400
+ flags: value.flags & ~I18nParamValueFlags.CloseTag,
12401
+ })}${formatValue({ ...value, flags: value.flags & ~I18nParamValueFlags.OpenTag })}`;
12399
12402
  }
12400
12403
  // If there are no special flags, just return the raw value.
12401
12404
  if (value.flags === I18nParamValueFlags.None) {
@@ -12790,13 +12793,17 @@ class IcuSerializerVisitor {
12790
12793
  visitTagPlaceholder(ph) {
12791
12794
  return ph.isVoid
12792
12795
  ? this.formatPh(ph.startName)
12793
- : `${this.formatPh(ph.startName)}${ph.children.map((child) => child.visit(this)).join('')}${this.formatPh(ph.closeName)}`;
12796
+ : `${this.formatPh(ph.startName)}${ph.children
12797
+ .map((child) => child.visit(this))
12798
+ .join('')}${this.formatPh(ph.closeName)}`;
12794
12799
  }
12795
12800
  visitPlaceholder(ph) {
12796
12801
  return this.formatPh(ph.name);
12797
12802
  }
12798
12803
  visitBlockPlaceholder(ph) {
12799
- return `${this.formatPh(ph.startName)}${ph.children.map((child) => child.visit(this)).join('')}${this.formatPh(ph.closeName)}`;
12804
+ return `${this.formatPh(ph.startName)}${ph.children
12805
+ .map((child) => child.visit(this))
12806
+ .join('')}${this.formatPh(ph.closeName)}`;
12800
12807
  }
12801
12808
  visitIcuPlaceholder(ph, context) {
12802
12809
  return this.formatPh(ph.name);
@@ -20147,13 +20154,17 @@ class GetMsgSerializerVisitor {
20147
20154
  visitTagPlaceholder(ph) {
20148
20155
  return ph.isVoid
20149
20156
  ? this.formatPh(ph.startName)
20150
- : `${this.formatPh(ph.startName)}${ph.children.map((child) => child.visit(this)).join('')}${this.formatPh(ph.closeName)}`;
20157
+ : `${this.formatPh(ph.startName)}${ph.children
20158
+ .map((child) => child.visit(this))
20159
+ .join('')}${this.formatPh(ph.closeName)}`;
20151
20160
  }
20152
20161
  visitPlaceholder(ph) {
20153
20162
  return this.formatPh(ph.name);
20154
20163
  }
20155
20164
  visitBlockPlaceholder(ph) {
20156
- return `${this.formatPh(ph.startName)}${ph.children.map((child) => child.visit(this)).join('')}${this.formatPh(ph.closeName)}`;
20165
+ return `${this.formatPh(ph.startName)}${ph.children
20166
+ .map((child) => child.visit(this))
20167
+ .join('')}${this.formatPh(ph.closeName)}`;
20157
20168
  }
20158
20169
  visitIcuPlaceholder(ph, context) {
20159
20170
  return this.formatPh(ph.name);
@@ -24289,7 +24300,7 @@ function wrapI18nIcus(job) {
24289
24300
  * Copyright Google LLC All Rights Reserved.
24290
24301
  *
24291
24302
  * Use of this source code is governed by an MIT-style license that can be
24292
- * found in the LICENSE file at https://angular.io/license
24303
+ * found in the LICENSE file at https://angular.dev/license
24293
24304
  */
24294
24305
  /**
24295
24306
  * Removes any `storeLet` calls that aren't referenced outside of the current view.
@@ -24372,7 +24383,7 @@ function generateLocalLetReferences(job) {
24372
24383
  * Copyright Google LLC All Rights Reserved.
24373
24384
  *
24374
24385
  * Use of this source code is governed by an MIT-style license that can be
24375
- * found in the LICENSE file at https://angular.io/license
24386
+ * found in the LICENSE file at https://angular.dev/license
24376
24387
  */
24377
24388
  const phases = [
24378
24389
  { kind: CompilationJobKind.Tmpl, fn: removeContentSelectors },
@@ -29976,7 +29987,7 @@ function publishFacade(global) {
29976
29987
  * @description
29977
29988
  * Entry point for all public APIs of the compiler package.
29978
29989
  */
29979
- const VERSION = new Version('19.0.0-next.6');
29990
+ const VERSION = new Version('19.0.0-next.7');
29980
29991
 
29981
29992
  class CompilerConfig {
29982
29993
  constructor({ defaultEncapsulation = ViewEncapsulation.Emulated, preserveWhitespaces, strictInjectionParameters, } = {}) {
@@ -31627,7 +31638,7 @@ const MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION = '18.0.0';
31627
31638
  function compileDeclareClassMetadata(metadata) {
31628
31639
  const definitionMap = new DefinitionMap();
31629
31640
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
31630
- definitionMap.set('version', literal('19.0.0-next.6'));
31641
+ definitionMap.set('version', literal('19.0.0-next.7'));
31631
31642
  definitionMap.set('ngImport', importExpr(Identifiers.core));
31632
31643
  definitionMap.set('type', metadata.type);
31633
31644
  definitionMap.set('decorators', metadata.decorators);
@@ -31645,7 +31656,7 @@ function compileComponentDeclareClassMetadata(metadata, dependencies) {
31645
31656
  callbackReturnDefinitionMap.set('ctorParameters', metadata.ctorParameters ?? literal(null));
31646
31657
  callbackReturnDefinitionMap.set('propDecorators', metadata.propDecorators ?? literal(null));
31647
31658
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION));
31648
- definitionMap.set('version', literal('19.0.0-next.6'));
31659
+ definitionMap.set('version', literal('19.0.0-next.7'));
31649
31660
  definitionMap.set('ngImport', importExpr(Identifiers.core));
31650
31661
  definitionMap.set('type', metadata.type);
31651
31662
  definitionMap.set('resolveDeferredDeps', compileComponentMetadataAsyncResolver(dependencies));
@@ -31740,7 +31751,7 @@ function createDirectiveDefinitionMap(meta) {
31740
31751
  const definitionMap = new DefinitionMap();
31741
31752
  const minVersion = getMinimumVersionForPartialOutput(meta);
31742
31753
  definitionMap.set('minVersion', literal(minVersion));
31743
- definitionMap.set('version', literal('19.0.0-next.6'));
31754
+ definitionMap.set('version', literal('19.0.0-next.7'));
31744
31755
  // e.g. `type: MyDirective`
31745
31756
  definitionMap.set('type', meta.type.value);
31746
31757
  if (meta.isStandalone) {
@@ -32162,7 +32173,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
32162
32173
  function compileDeclareFactoryFunction(meta) {
32163
32174
  const definitionMap = new DefinitionMap();
32164
32175
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
32165
- definitionMap.set('version', literal('19.0.0-next.6'));
32176
+ definitionMap.set('version', literal('19.0.0-next.7'));
32166
32177
  definitionMap.set('ngImport', importExpr(Identifiers.core));
32167
32178
  definitionMap.set('type', meta.type.value);
32168
32179
  definitionMap.set('deps', compileDependencies(meta.deps));
@@ -32197,7 +32208,7 @@ function compileDeclareInjectableFromMetadata(meta) {
32197
32208
  function createInjectableDefinitionMap(meta) {
32198
32209
  const definitionMap = new DefinitionMap();
32199
32210
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
32200
- definitionMap.set('version', literal('19.0.0-next.6'));
32211
+ definitionMap.set('version', literal('19.0.0-next.7'));
32201
32212
  definitionMap.set('ngImport', importExpr(Identifiers.core));
32202
32213
  definitionMap.set('type', meta.type.value);
32203
32214
  // Only generate providedIn property if it has a non-null value
@@ -32248,7 +32259,7 @@ function compileDeclareInjectorFromMetadata(meta) {
32248
32259
  function createInjectorDefinitionMap(meta) {
32249
32260
  const definitionMap = new DefinitionMap();
32250
32261
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
32251
- definitionMap.set('version', literal('19.0.0-next.6'));
32262
+ definitionMap.set('version', literal('19.0.0-next.7'));
32252
32263
  definitionMap.set('ngImport', importExpr(Identifiers.core));
32253
32264
  definitionMap.set('type', meta.type.value);
32254
32265
  definitionMap.set('providers', meta.providers);
@@ -32281,7 +32292,7 @@ function createNgModuleDefinitionMap(meta) {
32281
32292
  throw new Error('Invalid path! Local compilation mode should not get into the partial compilation path');
32282
32293
  }
32283
32294
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
32284
- definitionMap.set('version', literal('19.0.0-next.6'));
32295
+ definitionMap.set('version', literal('19.0.0-next.7'));
32285
32296
  definitionMap.set('ngImport', importExpr(Identifiers.core));
32286
32297
  definitionMap.set('type', meta.type.value);
32287
32298
  // We only generate the keys in the metadata if the arrays contain values.
@@ -32332,7 +32343,7 @@ function compileDeclarePipeFromMetadata(meta) {
32332
32343
  function createPipeDefinitionMap(meta) {
32333
32344
  const definitionMap = new DefinitionMap();
32334
32345
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
32335
- definitionMap.set('version', literal('19.0.0-next.6'));
32346
+ definitionMap.set('version', literal('19.0.0-next.7'));
32336
32347
  definitionMap.set('ngImport', importExpr(Identifiers.core));
32337
32348
  // e.g. `type: MyPipe`
32338
32349
  definitionMap.set('type', meta.type.value);