@angular/compiler 14.0.1 → 14.1.0-next.0

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 v14.0.1
2
+ * @license Angular v14.1.0-next.0
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -6089,10 +6089,13 @@ function compileNgModuleDeclarationExpression(meta) {
6089
6089
  }
6090
6090
  return importExpr(Identifiers.defineNgModule).callFn([definitionMap.toLiteralMap()]);
6091
6091
  }
6092
- function createNgModuleType({ type: moduleType, declarations, imports, exports }) {
6092
+ function createNgModuleType({ type: moduleType, declarations, exports, imports, includeImportTypes, publicDeclarationTypes }) {
6093
6093
  return new ExpressionType(importExpr(Identifiers.NgModuleDeclaration, [
6094
- new ExpressionType(moduleType.type), tupleTypeOf(declarations), tupleTypeOf(imports),
6095
- tupleTypeOf(exports)
6094
+ new ExpressionType(moduleType.type),
6095
+ publicDeclarationTypes === null ? tupleTypeOf(declarations) :
6096
+ tupleOfTypes(publicDeclarationTypes),
6097
+ includeImportTypes ? tupleTypeOf(imports) : NONE_TYPE,
6098
+ tupleTypeOf(exports),
6096
6099
  ]));
6097
6100
  }
6098
6101
  /**
@@ -6136,6 +6139,10 @@ function tupleTypeOf(exp) {
6136
6139
  const types = exp.map(ref => typeofExpr(ref.type));
6137
6140
  return exp.length > 0 ? expressionType(literalArr(types)) : NONE_TYPE;
6138
6141
  }
6142
+ function tupleOfTypes(types) {
6143
+ const typeofTypes = types.map(type => typeofExpr(type));
6144
+ return types.length > 0 ? expressionType(literalArr(typeofTypes)) : NONE_TYPE;
6145
+ }
6139
6146
 
6140
6147
  /**
6141
6148
  * @license
@@ -19454,7 +19461,9 @@ class CompilerFacadeImpl {
19454
19461
  adjacentType: new WrappedNodeExpr(facade.type),
19455
19462
  bootstrap: facade.bootstrap.map(wrapReference),
19456
19463
  declarations: facade.declarations.map(wrapReference),
19464
+ publicDeclarationTypes: null,
19457
19465
  imports: facade.imports.map(wrapReference),
19466
+ includeImportTypes: true,
19458
19467
  exports: facade.exports.map(wrapReference),
19459
19468
  selectorScopeMode: R3SelectorScopeMode.Inline,
19460
19469
  containsForwardDecls: false,
@@ -19846,7 +19855,7 @@ function publishFacade(global) {
19846
19855
  * Use of this source code is governed by an MIT-style license that can be
19847
19856
  * found in the LICENSE file at https://angular.io/license
19848
19857
  */
19849
- const VERSION = new Version('14.0.1');
19858
+ const VERSION = new Version('14.1.0-next.0');
19850
19859
 
19851
19860
  /**
19852
19861
  * @license
@@ -21873,7 +21882,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$6 = '12.0.0';
21873
21882
  function compileDeclareClassMetadata(metadata) {
21874
21883
  const definitionMap = new DefinitionMap();
21875
21884
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$6));
21876
- definitionMap.set('version', literal('14.0.1'));
21885
+ definitionMap.set('version', literal('14.1.0-next.0'));
21877
21886
  definitionMap.set('ngImport', importExpr(Identifiers.core));
21878
21887
  definitionMap.set('type', metadata.type);
21879
21888
  definitionMap.set('decorators', metadata.decorators);
@@ -21990,7 +21999,7 @@ function compileDeclareDirectiveFromMetadata(meta) {
21990
21999
  function createDirectiveDefinitionMap(meta) {
21991
22000
  const definitionMap = new DefinitionMap();
21992
22001
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
21993
- definitionMap.set('version', literal('14.0.1'));
22002
+ definitionMap.set('version', literal('14.1.0-next.0'));
21994
22003
  // e.g. `type: MyDirective`
21995
22004
  definitionMap.set('type', meta.internalType);
21996
22005
  if (meta.isStandalone) {
@@ -22204,7 +22213,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
22204
22213
  function compileDeclareFactoryFunction(meta) {
22205
22214
  const definitionMap = new DefinitionMap();
22206
22215
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
22207
- definitionMap.set('version', literal('14.0.1'));
22216
+ definitionMap.set('version', literal('14.1.0-next.0'));
22208
22217
  definitionMap.set('ngImport', importExpr(Identifiers.core));
22209
22218
  definitionMap.set('type', meta.internalType);
22210
22219
  definitionMap.set('deps', compileDependencies(meta.deps));
@@ -22246,7 +22255,7 @@ function compileDeclareInjectableFromMetadata(meta) {
22246
22255
  function createInjectableDefinitionMap(meta) {
22247
22256
  const definitionMap = new DefinitionMap();
22248
22257
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
22249
- definitionMap.set('version', literal('14.0.1'));
22258
+ definitionMap.set('version', literal('14.1.0-next.0'));
22250
22259
  definitionMap.set('ngImport', importExpr(Identifiers.core));
22251
22260
  definitionMap.set('type', meta.internalType);
22252
22261
  // Only generate providedIn property if it has a non-null value
@@ -22304,7 +22313,7 @@ function compileDeclareInjectorFromMetadata(meta) {
22304
22313
  function createInjectorDefinitionMap(meta) {
22305
22314
  const definitionMap = new DefinitionMap();
22306
22315
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
22307
- definitionMap.set('version', literal('14.0.1'));
22316
+ definitionMap.set('version', literal('14.1.0-next.0'));
22308
22317
  definitionMap.set('ngImport', importExpr(Identifiers.core));
22309
22318
  definitionMap.set('type', meta.internalType);
22310
22319
  definitionMap.set('providers', meta.providers);
@@ -22341,7 +22350,7 @@ function compileDeclareNgModuleFromMetadata(meta) {
22341
22350
  function createNgModuleDefinitionMap(meta) {
22342
22351
  const definitionMap = new DefinitionMap();
22343
22352
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
22344
- definitionMap.set('version', literal('14.0.1'));
22353
+ definitionMap.set('version', literal('14.1.0-next.0'));
22345
22354
  definitionMap.set('ngImport', importExpr(Identifiers.core));
22346
22355
  definitionMap.set('type', meta.internalType);
22347
22356
  // We only generate the keys in the metadata if the arrays contain values.
@@ -22399,7 +22408,7 @@ function compileDeclarePipeFromMetadata(meta) {
22399
22408
  function createPipeDefinitionMap(meta) {
22400
22409
  const definitionMap = new DefinitionMap();
22401
22410
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
22402
- definitionMap.set('version', literal('14.0.1'));
22411
+ definitionMap.set('version', literal('14.1.0-next.0'));
22403
22412
  definitionMap.set('ngImport', importExpr(Identifiers.core));
22404
22413
  // e.g. `type: MyPipe`
22405
22414
  definitionMap.set('type', meta.internalType);