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

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License
2
+
3
+ Copyright (c) 2010-2024 Google LLC. https://angular.dev/license
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.0.0-next.6
2
+ * @license Angular v19.0.0-next.8
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -2829,6 +2829,7 @@ class Identifiers {
2829
2829
  }; }
2830
2830
  static { this.forwardRef = { name: 'forwardRef', moduleName: CORE }; }
2831
2831
  static { this.resolveForwardRef = { name: 'resolveForwardRef', moduleName: CORE }; }
2832
+ static { this.replaceMetadata = { name: 'ɵɵreplaceMetadata', moduleName: CORE }; }
2832
2833
  static { this.ɵɵdefineInjectable = { name: 'ɵɵdefineInjectable', moduleName: CORE }; }
2833
2834
  static { this.declareInjectable = { name: 'ɵɵngDeclareInjectable', moduleName: CORE }; }
2834
2835
  static { this.InjectableDeclaration = {
@@ -12395,7 +12396,10 @@ function formatValue(value) {
12395
12396
  // Self-closing tags use a special form that concatenates the start and close tag values.
12396
12397
  if (value.flags & I18nParamValueFlags.OpenTag &&
12397
12398
  value.flags & I18nParamValueFlags.CloseTag) {
12398
- return `${formatValue({ ...value, flags: value.flags & ~I18nParamValueFlags.CloseTag })}${formatValue({ ...value, flags: value.flags & ~I18nParamValueFlags.OpenTag })}`;
12399
+ return `${formatValue({
12400
+ ...value,
12401
+ flags: value.flags & ~I18nParamValueFlags.CloseTag,
12402
+ })}${formatValue({ ...value, flags: value.flags & ~I18nParamValueFlags.OpenTag })}`;
12399
12403
  }
12400
12404
  // If there are no special flags, just return the raw value.
12401
12405
  if (value.flags === I18nParamValueFlags.None) {
@@ -12790,13 +12794,17 @@ class IcuSerializerVisitor {
12790
12794
  visitTagPlaceholder(ph) {
12791
12795
  return ph.isVoid
12792
12796
  ? this.formatPh(ph.startName)
12793
- : `${this.formatPh(ph.startName)}${ph.children.map((child) => child.visit(this)).join('')}${this.formatPh(ph.closeName)}`;
12797
+ : `${this.formatPh(ph.startName)}${ph.children
12798
+ .map((child) => child.visit(this))
12799
+ .join('')}${this.formatPh(ph.closeName)}`;
12794
12800
  }
12795
12801
  visitPlaceholder(ph) {
12796
12802
  return this.formatPh(ph.name);
12797
12803
  }
12798
12804
  visitBlockPlaceholder(ph) {
12799
- return `${this.formatPh(ph.startName)}${ph.children.map((child) => child.visit(this)).join('')}${this.formatPh(ph.closeName)}`;
12805
+ return `${this.formatPh(ph.startName)}${ph.children
12806
+ .map((child) => child.visit(this))
12807
+ .join('')}${this.formatPh(ph.closeName)}`;
12800
12808
  }
12801
12809
  visitIcuPlaceholder(ph, context) {
12802
12810
  return this.formatPh(ph.name);
@@ -20147,13 +20155,17 @@ class GetMsgSerializerVisitor {
20147
20155
  visitTagPlaceholder(ph) {
20148
20156
  return ph.isVoid
20149
20157
  ? this.formatPh(ph.startName)
20150
- : `${this.formatPh(ph.startName)}${ph.children.map((child) => child.visit(this)).join('')}${this.formatPh(ph.closeName)}`;
20158
+ : `${this.formatPh(ph.startName)}${ph.children
20159
+ .map((child) => child.visit(this))
20160
+ .join('')}${this.formatPh(ph.closeName)}`;
20151
20161
  }
20152
20162
  visitPlaceholder(ph) {
20153
20163
  return this.formatPh(ph.name);
20154
20164
  }
20155
20165
  visitBlockPlaceholder(ph) {
20156
- return `${this.formatPh(ph.startName)}${ph.children.map((child) => child.visit(this)).join('')}${this.formatPh(ph.closeName)}`;
20166
+ return `${this.formatPh(ph.startName)}${ph.children
20167
+ .map((child) => child.visit(this))
20168
+ .join('')}${this.formatPh(ph.closeName)}`;
20157
20169
  }
20158
20170
  visitIcuPlaceholder(ph, context) {
20159
20171
  return this.formatPh(ph.name);
@@ -24289,7 +24301,7 @@ function wrapI18nIcus(job) {
24289
24301
  * Copyright Google LLC All Rights Reserved.
24290
24302
  *
24291
24303
  * 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
24304
+ * found in the LICENSE file at https://angular.dev/license
24293
24305
  */
24294
24306
  /**
24295
24307
  * Removes any `storeLet` calls that aren't referenced outside of the current view.
@@ -24372,7 +24384,7 @@ function generateLocalLetReferences(job) {
24372
24384
  * Copyright Google LLC All Rights Reserved.
24373
24385
  *
24374
24386
  * 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
24387
+ * found in the LICENSE file at https://angular.dev/license
24376
24388
  */
24377
24389
  const phases = [
24378
24390
  { kind: CompilationJobKind.Tmpl, fn: removeContentSelectors },
@@ -29976,7 +29988,7 @@ function publishFacade(global) {
29976
29988
  * @description
29977
29989
  * Entry point for all public APIs of the compiler package.
29978
29990
  */
29979
- const VERSION = new Version('19.0.0-next.6');
29991
+ const VERSION = new Version('19.0.0-next.8');
29980
29992
 
29981
29993
  class CompilerConfig {
29982
29994
  constructor({ defaultEncapsulation = ViewEncapsulation.Emulated, preserveWhitespaces, strictInjectionParameters, } = {}) {
@@ -31627,7 +31639,7 @@ const MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION = '18.0.0';
31627
31639
  function compileDeclareClassMetadata(metadata) {
31628
31640
  const definitionMap = new DefinitionMap();
31629
31641
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
31630
- definitionMap.set('version', literal('19.0.0-next.6'));
31642
+ definitionMap.set('version', literal('19.0.0-next.8'));
31631
31643
  definitionMap.set('ngImport', importExpr(Identifiers.core));
31632
31644
  definitionMap.set('type', metadata.type);
31633
31645
  definitionMap.set('decorators', metadata.decorators);
@@ -31645,7 +31657,7 @@ function compileComponentDeclareClassMetadata(metadata, dependencies) {
31645
31657
  callbackReturnDefinitionMap.set('ctorParameters', metadata.ctorParameters ?? literal(null));
31646
31658
  callbackReturnDefinitionMap.set('propDecorators', metadata.propDecorators ?? literal(null));
31647
31659
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION));
31648
- definitionMap.set('version', literal('19.0.0-next.6'));
31660
+ definitionMap.set('version', literal('19.0.0-next.8'));
31649
31661
  definitionMap.set('ngImport', importExpr(Identifiers.core));
31650
31662
  definitionMap.set('type', metadata.type);
31651
31663
  definitionMap.set('resolveDeferredDeps', compileComponentMetadataAsyncResolver(dependencies));
@@ -31740,7 +31752,7 @@ function createDirectiveDefinitionMap(meta) {
31740
31752
  const definitionMap = new DefinitionMap();
31741
31753
  const minVersion = getMinimumVersionForPartialOutput(meta);
31742
31754
  definitionMap.set('minVersion', literal(minVersion));
31743
- definitionMap.set('version', literal('19.0.0-next.6'));
31755
+ definitionMap.set('version', literal('19.0.0-next.8'));
31744
31756
  // e.g. `type: MyDirective`
31745
31757
  definitionMap.set('type', meta.type.value);
31746
31758
  if (meta.isStandalone) {
@@ -32162,7 +32174,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
32162
32174
  function compileDeclareFactoryFunction(meta) {
32163
32175
  const definitionMap = new DefinitionMap();
32164
32176
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
32165
- definitionMap.set('version', literal('19.0.0-next.6'));
32177
+ definitionMap.set('version', literal('19.0.0-next.8'));
32166
32178
  definitionMap.set('ngImport', importExpr(Identifiers.core));
32167
32179
  definitionMap.set('type', meta.type.value);
32168
32180
  definitionMap.set('deps', compileDependencies(meta.deps));
@@ -32197,7 +32209,7 @@ function compileDeclareInjectableFromMetadata(meta) {
32197
32209
  function createInjectableDefinitionMap(meta) {
32198
32210
  const definitionMap = new DefinitionMap();
32199
32211
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
32200
- definitionMap.set('version', literal('19.0.0-next.6'));
32212
+ definitionMap.set('version', literal('19.0.0-next.8'));
32201
32213
  definitionMap.set('ngImport', importExpr(Identifiers.core));
32202
32214
  definitionMap.set('type', meta.type.value);
32203
32215
  // Only generate providedIn property if it has a non-null value
@@ -32248,7 +32260,7 @@ function compileDeclareInjectorFromMetadata(meta) {
32248
32260
  function createInjectorDefinitionMap(meta) {
32249
32261
  const definitionMap = new DefinitionMap();
32250
32262
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
32251
- definitionMap.set('version', literal('19.0.0-next.6'));
32263
+ definitionMap.set('version', literal('19.0.0-next.8'));
32252
32264
  definitionMap.set('ngImport', importExpr(Identifiers.core));
32253
32265
  definitionMap.set('type', meta.type.value);
32254
32266
  definitionMap.set('providers', meta.providers);
@@ -32281,7 +32293,7 @@ function createNgModuleDefinitionMap(meta) {
32281
32293
  throw new Error('Invalid path! Local compilation mode should not get into the partial compilation path');
32282
32294
  }
32283
32295
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
32284
- definitionMap.set('version', literal('19.0.0-next.6'));
32296
+ definitionMap.set('version', literal('19.0.0-next.8'));
32285
32297
  definitionMap.set('ngImport', importExpr(Identifiers.core));
32286
32298
  definitionMap.set('type', meta.type.value);
32287
32299
  // We only generate the keys in the metadata if the arrays contain values.
@@ -32332,7 +32344,7 @@ function compileDeclarePipeFromMetadata(meta) {
32332
32344
  function createPipeDefinitionMap(meta) {
32333
32345
  const definitionMap = new DefinitionMap();
32334
32346
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
32335
- definitionMap.set('version', literal('19.0.0-next.6'));
32347
+ definitionMap.set('version', literal('19.0.0-next.8'));
32336
32348
  definitionMap.set('ngImport', importExpr(Identifiers.core));
32337
32349
  // e.g. `type: MyPipe`
32338
32350
  definitionMap.set('type', meta.type.value);