@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.2.0-next.1
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -4977,7 +4977,6 @@ function conditionallyCreateMapObjectLiteral(keys, keepDeclared) {
4977
4977
  function mapToExpression(map, keepDeclared) {
4978
4978
  return literalMap(Object.getOwnPropertyNames(map).map(key => {
4979
4979
  // canonical syntax: `dirProp: publicProp`
4980
- // if there is no `:`, use dirProp = elProp
4981
4980
  const value = map[key];
4982
4981
  let declaredName;
4983
4982
  let publicName;
@@ -4989,12 +4988,9 @@ function mapToExpression(map, keepDeclared) {
4989
4988
  needsDeclaredName = publicName !== declaredName;
4990
4989
  }
4991
4990
  else {
4992
- [declaredName, publicName] = splitAtColon(key, [key, value]);
4993
- minifiedName = declaredName;
4994
- // Only include the declared name if extracted from the key, i.e. the key contains a colon.
4995
- // Otherwise the declared name should be omitted even if it is different from the public name,
4996
- // as it may have already been minified.
4997
- needsDeclaredName = publicName !== declaredName && key.includes(':');
4991
+ minifiedName = declaredName = key;
4992
+ publicName = value;
4993
+ needsDeclaredName = false;
4998
4994
  }
4999
4995
  return {
5000
4996
  key: minifiedName,
@@ -19814,10 +19810,10 @@ function isOutput(value) {
19814
19810
  return value.ngMetadataName === 'Output';
19815
19811
  }
19816
19812
  function parseInputOutputs(values) {
19817
- return values.reduce((map, value) => {
19818
- const [field, property] = value.split(',').map(piece => piece.trim());
19819
- map[field] = property || field;
19820
- return map;
19813
+ return values.reduce((results, value) => {
19814
+ const [field, property] = value.split(':', 2).map(str => str.trim());
19815
+ results[field] = property || field;
19816
+ return results;
19821
19817
  }, {});
19822
19818
  }
19823
19819
  function convertDeclarePipeFacadeToMetadata(declaration) {
@@ -19858,7 +19854,7 @@ function publishFacade(global) {
19858
19854
  * Use of this source code is governed by an MIT-style license that can be
19859
19855
  * found in the LICENSE file at https://angular.io/license
19860
19856
  */
19861
- const VERSION = new Version('14.1.0-rc.0');
19857
+ const VERSION = new Version('14.1.2');
19862
19858
 
19863
19859
  /**
19864
19860
  * @license
@@ -21885,7 +21881,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$6 = '12.0.0';
21885
21881
  function compileDeclareClassMetadata(metadata) {
21886
21882
  const definitionMap = new DefinitionMap();
21887
21883
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$6));
21888
- definitionMap.set('version', literal('14.1.0-rc.0'));
21884
+ definitionMap.set('version', literal('14.1.2'));
21889
21885
  definitionMap.set('ngImport', importExpr(Identifiers.core));
21890
21886
  definitionMap.set('type', metadata.type);
21891
21887
  definitionMap.set('decorators', metadata.decorators);
@@ -22002,7 +21998,7 @@ function compileDeclareDirectiveFromMetadata(meta) {
22002
21998
  function createDirectiveDefinitionMap(meta) {
22003
21999
  const definitionMap = new DefinitionMap();
22004
22000
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
22005
- definitionMap.set('version', literal('14.1.0-rc.0'));
22001
+ definitionMap.set('version', literal('14.1.2'));
22006
22002
  // e.g. `type: MyDirective`
22007
22003
  definitionMap.set('type', meta.internalType);
22008
22004
  if (meta.isStandalone) {
@@ -22216,7 +22212,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
22216
22212
  function compileDeclareFactoryFunction(meta) {
22217
22213
  const definitionMap = new DefinitionMap();
22218
22214
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
22219
- definitionMap.set('version', literal('14.1.0-rc.0'));
22215
+ definitionMap.set('version', literal('14.1.2'));
22220
22216
  definitionMap.set('ngImport', importExpr(Identifiers.core));
22221
22217
  definitionMap.set('type', meta.internalType);
22222
22218
  definitionMap.set('deps', compileDependencies(meta.deps));
@@ -22258,7 +22254,7 @@ function compileDeclareInjectableFromMetadata(meta) {
22258
22254
  function createInjectableDefinitionMap(meta) {
22259
22255
  const definitionMap = new DefinitionMap();
22260
22256
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
22261
- definitionMap.set('version', literal('14.1.0-rc.0'));
22257
+ definitionMap.set('version', literal('14.1.2'));
22262
22258
  definitionMap.set('ngImport', importExpr(Identifiers.core));
22263
22259
  definitionMap.set('type', meta.internalType);
22264
22260
  // Only generate providedIn property if it has a non-null value
@@ -22316,7 +22312,7 @@ function compileDeclareInjectorFromMetadata(meta) {
22316
22312
  function createInjectorDefinitionMap(meta) {
22317
22313
  const definitionMap = new DefinitionMap();
22318
22314
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
22319
- definitionMap.set('version', literal('14.1.0-rc.0'));
22315
+ definitionMap.set('version', literal('14.1.2'));
22320
22316
  definitionMap.set('ngImport', importExpr(Identifiers.core));
22321
22317
  definitionMap.set('type', meta.internalType);
22322
22318
  definitionMap.set('providers', meta.providers);
@@ -22353,7 +22349,7 @@ function compileDeclareNgModuleFromMetadata(meta) {
22353
22349
  function createNgModuleDefinitionMap(meta) {
22354
22350
  const definitionMap = new DefinitionMap();
22355
22351
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
22356
- definitionMap.set('version', literal('14.1.0-rc.0'));
22352
+ definitionMap.set('version', literal('14.1.2'));
22357
22353
  definitionMap.set('ngImport', importExpr(Identifiers.core));
22358
22354
  definitionMap.set('type', meta.internalType);
22359
22355
  // We only generate the keys in the metadata if the arrays contain values.
@@ -22411,7 +22407,7 @@ function compileDeclarePipeFromMetadata(meta) {
22411
22407
  function createPipeDefinitionMap(meta) {
22412
22408
  const definitionMap = new DefinitionMap();
22413
22409
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
22414
- definitionMap.set('version', literal('14.1.0-rc.0'));
22410
+ definitionMap.set('version', literal('14.1.2'));
22415
22411
  definitionMap.set('ngImport', importExpr(Identifiers.core));
22416
22412
  // e.g. `type: MyPipe`
22417
22413
  definitionMap.set('type', meta.internalType);