@angular/compiler 18.0.5 → 18.0.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 v18.0.5
2
+ * @license Angular v18.0.7
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -7252,8 +7252,8 @@ class ShadowCss {
7252
7252
  * animation declaration (with possibly multiple animation definitions)
7253
7253
  *
7254
7254
  * The regular expression can be divided in three parts
7255
- * - (^|\s+)
7256
- * simply captures how many (if any) leading whitespaces are present
7255
+ * - (^|\s+|,)
7256
+ * captures how many (if any) leading whitespaces are present or a comma
7257
7257
  * - (?:(?:(['"])((?:\\\\|\\\2|(?!\2).)+)\2)|(-?[A-Za-z][\w\-]*))
7258
7258
  * captures two different possible keyframes, ones which are quoted or ones which are valid css
7259
7259
  * idents (custom properties excluded)
@@ -7261,7 +7261,7 @@ class ShadowCss {
7261
7261
  * simply matches the end of the possible keyframe, valid endings are: a comma, a space, a
7262
7262
  * semicolon or the end of the string
7263
7263
  */
7264
- this._animationDeclarationKeyframesRe = /(^|\s+)(?:(?:(['"])((?:\\\\|\\\2|(?!\2).)+)\2)|(-?[A-Za-z][\w\-]*))(?=[,\s]|$)/g;
7264
+ this._animationDeclarationKeyframesRe = /(^|\s+|,)(?:(?:(['"])((?:\\\\|\\\2|(?!\2).)+)\2)|(-?[A-Za-z][\w\-]*))(?=[,\s]|$)/g;
7265
7265
  }
7266
7266
  /*
7267
7267
  * Shim some cssText with the given selector. Returns cssText that can be included in the document
@@ -7418,7 +7418,7 @@ class ShadowCss {
7418
7418
  * @returns the updated css rule.
7419
7419
  **/
7420
7420
  _scopeAnimationRule(rule, scopeSelector, unscopedKeyframesSet) {
7421
- let content = rule.content.replace(/((?:^|\s+|;)(?:-webkit-)?animation(?:\s*):(?:\s*))([^;]+)/g, (_, start, animationDeclarations) => start +
7421
+ let content = rule.content.replace(/((?:^|\s+|;)(?:-webkit-)?animation\s*:\s*),*([^;]+)/g, (_, start, animationDeclarations) => start +
7422
7422
  animationDeclarations.replace(this._animationDeclarationKeyframesRe, (original, leadingSpaces, quote = '', quotedName, nonQuotedName) => {
7423
7423
  if (quotedName) {
7424
7424
  return `${leadingSpaces}${this._scopeAnimationKeyframe(`${quote}${quotedName}${quote}`, scopeSelector, unscopedKeyframesSet)}`;
@@ -29505,7 +29505,7 @@ function publishFacade(global) {
29505
29505
  * @description
29506
29506
  * Entry point for all public APIs of the compiler package.
29507
29507
  */
29508
- const VERSION = new Version('18.0.5');
29508
+ const VERSION = new Version('18.0.7');
29509
29509
 
29510
29510
  class CompilerConfig {
29511
29511
  constructor({ defaultEncapsulation = ViewEncapsulation.Emulated, preserveWhitespaces, strictInjectionParameters, } = {}) {
@@ -31143,7 +31143,7 @@ const MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION = '18.0.0';
31143
31143
  function compileDeclareClassMetadata(metadata) {
31144
31144
  const definitionMap = new DefinitionMap();
31145
31145
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
31146
- definitionMap.set('version', literal('18.0.5'));
31146
+ definitionMap.set('version', literal('18.0.7'));
31147
31147
  definitionMap.set('ngImport', importExpr(Identifiers.core));
31148
31148
  definitionMap.set('type', metadata.type);
31149
31149
  definitionMap.set('decorators', metadata.decorators);
@@ -31161,7 +31161,7 @@ function compileComponentDeclareClassMetadata(metadata, dependencies) {
31161
31161
  callbackReturnDefinitionMap.set('ctorParameters', metadata.ctorParameters ?? literal(null));
31162
31162
  callbackReturnDefinitionMap.set('propDecorators', metadata.propDecorators ?? literal(null));
31163
31163
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION));
31164
- definitionMap.set('version', literal('18.0.5'));
31164
+ definitionMap.set('version', literal('18.0.7'));
31165
31165
  definitionMap.set('ngImport', importExpr(Identifiers.core));
31166
31166
  definitionMap.set('type', metadata.type);
31167
31167
  definitionMap.set('resolveDeferredDeps', compileComponentMetadataAsyncResolver(dependencies));
@@ -31256,7 +31256,7 @@ function createDirectiveDefinitionMap(meta) {
31256
31256
  const definitionMap = new DefinitionMap();
31257
31257
  const minVersion = getMinimumVersionForPartialOutput(meta);
31258
31258
  definitionMap.set('minVersion', literal(minVersion));
31259
- definitionMap.set('version', literal('18.0.5'));
31259
+ definitionMap.set('version', literal('18.0.7'));
31260
31260
  // e.g. `type: MyDirective`
31261
31261
  definitionMap.set('type', meta.type.value);
31262
31262
  if (meta.isStandalone) {
@@ -31678,7 +31678,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
31678
31678
  function compileDeclareFactoryFunction(meta) {
31679
31679
  const definitionMap = new DefinitionMap();
31680
31680
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
31681
- definitionMap.set('version', literal('18.0.5'));
31681
+ definitionMap.set('version', literal('18.0.7'));
31682
31682
  definitionMap.set('ngImport', importExpr(Identifiers.core));
31683
31683
  definitionMap.set('type', meta.type.value);
31684
31684
  definitionMap.set('deps', compileDependencies(meta.deps));
@@ -31713,7 +31713,7 @@ function compileDeclareInjectableFromMetadata(meta) {
31713
31713
  function createInjectableDefinitionMap(meta) {
31714
31714
  const definitionMap = new DefinitionMap();
31715
31715
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
31716
- definitionMap.set('version', literal('18.0.5'));
31716
+ definitionMap.set('version', literal('18.0.7'));
31717
31717
  definitionMap.set('ngImport', importExpr(Identifiers.core));
31718
31718
  definitionMap.set('type', meta.type.value);
31719
31719
  // Only generate providedIn property if it has a non-null value
@@ -31764,7 +31764,7 @@ function compileDeclareInjectorFromMetadata(meta) {
31764
31764
  function createInjectorDefinitionMap(meta) {
31765
31765
  const definitionMap = new DefinitionMap();
31766
31766
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
31767
- definitionMap.set('version', literal('18.0.5'));
31767
+ definitionMap.set('version', literal('18.0.7'));
31768
31768
  definitionMap.set('ngImport', importExpr(Identifiers.core));
31769
31769
  definitionMap.set('type', meta.type.value);
31770
31770
  definitionMap.set('providers', meta.providers);
@@ -31797,7 +31797,7 @@ function createNgModuleDefinitionMap(meta) {
31797
31797
  throw new Error('Invalid path! Local compilation mode should not get into the partial compilation path');
31798
31798
  }
31799
31799
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
31800
- definitionMap.set('version', literal('18.0.5'));
31800
+ definitionMap.set('version', literal('18.0.7'));
31801
31801
  definitionMap.set('ngImport', importExpr(Identifiers.core));
31802
31802
  definitionMap.set('type', meta.type.value);
31803
31803
  // We only generate the keys in the metadata if the arrays contain values.
@@ -31848,7 +31848,7 @@ function compileDeclarePipeFromMetadata(meta) {
31848
31848
  function createPipeDefinitionMap(meta) {
31849
31849
  const definitionMap = new DefinitionMap();
31850
31850
  definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
31851
- definitionMap.set('version', literal('18.0.5'));
31851
+ definitionMap.set('version', literal('18.0.7'));
31852
31852
  definitionMap.set('ngImport', importExpr(Identifiers.core));
31853
31853
  // e.g. `type: MyPipe`
31854
31854
  definitionMap.set('type', meta.type.value);