@angular/compiler 14.1.0-rc.0 → 14.1.2

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.1.0-rc.0
2
+ * @license Angular v14.1.2
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v14.1.0-rc.0
2
+ * @license Angular v14.2.0-next.1
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -4973,7 +4973,6 @@ function conditionallyCreateMapObjectLiteral(keys, keepDeclared) {
4973
4973
  function mapToExpression(map, keepDeclared) {
4974
4974
  return literalMap(Object.getOwnPropertyNames(map).map(key => {
4975
4975
  // canonical syntax: `dirProp: publicProp`
4976
- // if there is no `:`, use dirProp = elProp
4977
4976
  const value = map[key];
4978
4977
  let declaredName;
4979
4978
  let publicName;
@@ -4985,12 +4984,9 @@ function mapToExpression(map, keepDeclared) {
4985
4984
  needsDeclaredName = publicName !== declaredName;
4986
4985
  }
4987
4986
  else {
4988
- [declaredName, publicName] = splitAtColon(key, [key, value]);
4989
- minifiedName = declaredName;
4990
- // Only include the declared name if extracted from the key, i.e. the key contains a colon.
4991
- // Otherwise the declared name should be omitted even if it is different from the public name,
4992
- // as it may have already been minified.
4993
- needsDeclaredName = publicName !== declaredName && key.includes(':');
4987
+ minifiedName = declaredName = key;
4988
+ publicName = value;
4989
+ needsDeclaredName = false;
4994
4990
  }
4995
4991
  return {
4996
4992
  key: minifiedName,
@@ -19857,10 +19853,10 @@ function isOutput(value) {
19857
19853
  return value.ngMetadataName === 'Output';
19858
19854
  }
19859
19855
  function parseInputOutputs(values) {
19860
- return values.reduce((map, value) => {
19861
- const [field, property] = value.split(',').map(piece => piece.trim());
19862
- map[field] = property || field;
19863
- return map;
19856
+ return values.reduce((results, value) => {
19857
+ const [field, property] = value.split(':', 2).map(str => str.trim());
19858
+ results[field] = property || field;
19859
+ return results;
19864
19860
  }, {});
19865
19861
  }
19866
19862
  function convertDeclarePipeFacadeToMetadata(declaration) {
@@ -19900,7 +19896,7 @@ function publishFacade(global) {
19900
19896
  * Use of this source code is governed by an MIT-style license that can be
19901
19897
  * found in the LICENSE file at https://angular.io/license
19902
19898
  */
19903
- const VERSION = new Version('14.1.0-rc.0');
19899
+ const VERSION = new Version('14.1.2');
19904
19900
 
19905
19901
  /**
19906
19902
  * @license
@@ -21933,7 +21929,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$6 = '12.0.0';
21933
21929
  function compileDeclareClassMetadata(metadata) {
21934
21930
  const definitionMap = new DefinitionMap();
21935
21931
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$6));
21936
- definitionMap.set('version', literal('14.1.0-rc.0'));
21932
+ definitionMap.set('version', literal('14.1.2'));
21937
21933
  definitionMap.set('ngImport', importExpr(Identifiers.core));
21938
21934
  definitionMap.set('type', metadata.type);
21939
21935
  definitionMap.set('decorators', metadata.decorators);
@@ -22050,7 +22046,7 @@ function compileDeclareDirectiveFromMetadata(meta) {
22050
22046
  function createDirectiveDefinitionMap(meta) {
22051
22047
  const definitionMap = new DefinitionMap();
22052
22048
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
22053
- definitionMap.set('version', literal('14.1.0-rc.0'));
22049
+ definitionMap.set('version', literal('14.1.2'));
22054
22050
  // e.g. `type: MyDirective`
22055
22051
  definitionMap.set('type', meta.internalType);
22056
22052
  if (meta.isStandalone) {
@@ -22264,7 +22260,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
22264
22260
  function compileDeclareFactoryFunction(meta) {
22265
22261
  const definitionMap = new DefinitionMap();
22266
22262
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
22267
- definitionMap.set('version', literal('14.1.0-rc.0'));
22263
+ definitionMap.set('version', literal('14.1.2'));
22268
22264
  definitionMap.set('ngImport', importExpr(Identifiers.core));
22269
22265
  definitionMap.set('type', meta.internalType);
22270
22266
  definitionMap.set('deps', compileDependencies(meta.deps));
@@ -22306,7 +22302,7 @@ function compileDeclareInjectableFromMetadata(meta) {
22306
22302
  function createInjectableDefinitionMap(meta) {
22307
22303
  const definitionMap = new DefinitionMap();
22308
22304
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
22309
- definitionMap.set('version', literal('14.1.0-rc.0'));
22305
+ definitionMap.set('version', literal('14.1.2'));
22310
22306
  definitionMap.set('ngImport', importExpr(Identifiers.core));
22311
22307
  definitionMap.set('type', meta.internalType);
22312
22308
  // Only generate providedIn property if it has a non-null value
@@ -22364,7 +22360,7 @@ function compileDeclareInjectorFromMetadata(meta) {
22364
22360
  function createInjectorDefinitionMap(meta) {
22365
22361
  const definitionMap = new DefinitionMap();
22366
22362
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
22367
- definitionMap.set('version', literal('14.1.0-rc.0'));
22363
+ definitionMap.set('version', literal('14.1.2'));
22368
22364
  definitionMap.set('ngImport', importExpr(Identifiers.core));
22369
22365
  definitionMap.set('type', meta.internalType);
22370
22366
  definitionMap.set('providers', meta.providers);
@@ -22401,7 +22397,7 @@ function compileDeclareNgModuleFromMetadata(meta) {
22401
22397
  function createNgModuleDefinitionMap(meta) {
22402
22398
  const definitionMap = new DefinitionMap();
22403
22399
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
22404
- definitionMap.set('version', literal('14.1.0-rc.0'));
22400
+ definitionMap.set('version', literal('14.1.2'));
22405
22401
  definitionMap.set('ngImport', importExpr(Identifiers.core));
22406
22402
  definitionMap.set('type', meta.internalType);
22407
22403
  // We only generate the keys in the metadata if the arrays contain values.
@@ -22459,7 +22455,7 @@ function compileDeclarePipeFromMetadata(meta) {
22459
22455
  function createPipeDefinitionMap(meta) {
22460
22456
  const definitionMap = new DefinitionMap();
22461
22457
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
22462
- definitionMap.set('version', literal('14.1.0-rc.0'));
22458
+ definitionMap.set('version', literal('14.1.2'));
22463
22459
  definitionMap.set('ngImport', importExpr(Identifiers.core));
22464
22460
  // e.g. `type: MyPipe`
22465
22461
  definitionMap.set('type', meta.internalType);