@angular/core 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.
Files changed (42) hide show
  1. package/esm2022/primitives/event-dispatch/index.mjs +3 -2
  2. package/esm2022/primitives/event-dispatch/src/action_resolver.mjs +3 -3
  3. package/esm2022/primitives/event-dispatch/src/attribute.mjs +16 -52
  4. package/esm2022/primitives/event-dispatch/src/cache.mjs +17 -6
  5. package/esm2022/primitives/event-dispatch/src/char.mjs +1 -16
  6. package/esm2022/primitives/event-dispatch/src/event.mjs +2 -3
  7. package/esm2022/primitives/event-dispatch/src/eventcontract.mjs +5 -66
  8. package/esm2022/primitives/event-dispatch/src/property.mjs +17 -22
  9. package/esm2022/primitives/signals/index.mjs +3 -3
  10. package/esm2022/primitives/signals/src/signal.mjs +4 -1
  11. package/esm2022/src/change_detection/scheduling/zoneless_scheduling_impl.mjs +2 -2
  12. package/esm2022/src/core_private_export.mjs +3 -1
  13. package/esm2022/src/defer/instructions.mjs +53 -35
  14. package/esm2022/src/event_delegation_utils.mjs +40 -23
  15. package/esm2022/src/event_dispatch/event_delegation.mjs +38 -0
  16. package/esm2022/src/hydration/annotate.mjs +3 -3
  17. package/esm2022/src/hydration/event_replay.mjs +5 -5
  18. package/esm2022/src/render3/component_ref.mjs +1 -1
  19. package/esm2022/src/render3/debug/framework_injector_profiler.mjs +3 -2
  20. package/esm2022/src/version.mjs +1 -1
  21. package/esm2022/testing/src/logger.mjs +3 -3
  22. package/fesm2022/core.mjs +127 -63
  23. package/fesm2022/core.mjs.map +1 -1
  24. package/fesm2022/primitives/event-dispatch.mjs +53 -242
  25. package/fesm2022/primitives/event-dispatch.mjs.map +1 -1
  26. package/fesm2022/primitives/signals.mjs +5 -2
  27. package/fesm2022/primitives/signals.mjs.map +1 -1
  28. package/fesm2022/rxjs-interop.mjs +1 -1
  29. package/fesm2022/testing.mjs +1 -1
  30. package/index.d.ts +31 -2
  31. package/package.json +1 -1
  32. package/primitives/event-dispatch/index.d.ts +22 -102
  33. package/primitives/signals/index.d.ts +10 -1
  34. package/rxjs-interop/index.d.ts +1 -1
  35. package/schematics/migrations/invalid-two-way-bindings/bundle.js +3 -3
  36. package/schematics/migrations/invalid-two-way-bindings/bundle.js.map +2 -2
  37. package/schematics/ng-generate/control-flow-migration/bundle.js +13 -4
  38. package/schematics/ng-generate/control-flow-migration/bundle.js.map +2 -2
  39. package/schematics/ng-generate/standalone-migration/bundle.js +30 -22
  40. package/schematics/ng-generate/standalone-migration/bundle.js.map +2 -2
  41. package/testing/index.d.ts +1 -1
  42. package/esm2022/primitives/event-dispatch/src/dom.mjs +0 -48
@@ -8505,7 +8505,7 @@ var scopedAtRuleIdentifiers = [
8505
8505
  ];
8506
8506
  var ShadowCss = class {
8507
8507
  constructor() {
8508
- this._animationDeclarationKeyframesRe = /(^|\s+)(?:(?:(['"])((?:\\\\|\\\2|(?!\2).)+)\2)|(-?[A-Za-z][\w\-]*))(?=[,\s]|$)/g;
8508
+ this._animationDeclarationKeyframesRe = /(^|\s+|,)(?:(?:(['"])((?:\\\\|\\\2|(?!\2).)+)\2)|(-?[A-Za-z][\w\-]*))(?=[,\s]|$)/g;
8509
8509
  }
8510
8510
  shimCssText(cssText, selector, hostSelector = "") {
8511
8511
  const comments = [];
@@ -8548,7 +8548,7 @@ var ShadowCss = class {
8548
8548
  });
8549
8549
  }
8550
8550
  _scopeAnimationRule(rule, scopeSelector, unscopedKeyframesSet) {
8551
- let content = rule.content.replace(/((?:^|\s+|;)(?:-webkit-)?animation(?:\s*):(?:\s*))([^;]+)/g, (_, start, animationDeclarations) => start + animationDeclarations.replace(this._animationDeclarationKeyframesRe, (original, leadingSpaces, quote = "", quotedName, nonQuotedName) => {
8551
+ let content = rule.content.replace(/((?:^|\s+|;)(?:-webkit-)?animation\s*:\s*),*([^;]+)/g, (_, start, animationDeclarations) => start + animationDeclarations.replace(this._animationDeclarationKeyframesRe, (original, leadingSpaces, quote = "", quotedName, nonQuotedName) => {
8552
8552
  if (quotedName) {
8553
8553
  return `${leadingSpaces}${this._scopeAnimationKeyframe(`${quote}${quotedName}${quote}`, scopeSelector, unscopedKeyframesSet)}`;
8554
8554
  } else {
@@ -26056,7 +26056,7 @@ function publishFacade(global) {
26056
26056
  }
26057
26057
 
26058
26058
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/version.mjs
26059
- var VERSION2 = new Version("18.0.5");
26059
+ var VERSION2 = new Version("18.0.7");
26060
26060
 
26061
26061
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
26062
26062
  var _I18N_ATTR = "i18n";
@@ -27160,7 +27160,7 @@ var MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION = "18.0.0";
27160
27160
  function compileDeclareClassMetadata(metadata) {
27161
27161
  const definitionMap = new DefinitionMap();
27162
27162
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION));
27163
- definitionMap.set("version", literal("18.0.5"));
27163
+ definitionMap.set("version", literal("18.0.7"));
27164
27164
  definitionMap.set("ngImport", importExpr(Identifiers.core));
27165
27165
  definitionMap.set("type", metadata.type);
27166
27166
  definitionMap.set("decorators", metadata.decorators);
@@ -27179,7 +27179,7 @@ function compileComponentDeclareClassMetadata(metadata, dependencies) {
27179
27179
  callbackReturnDefinitionMap.set("ctorParameters", (_a2 = metadata.ctorParameters) != null ? _a2 : literal(null));
27180
27180
  callbackReturnDefinitionMap.set("propDecorators", (_b2 = metadata.propDecorators) != null ? _b2 : literal(null));
27181
27181
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION));
27182
- definitionMap.set("version", literal("18.0.5"));
27182
+ definitionMap.set("version", literal("18.0.7"));
27183
27183
  definitionMap.set("ngImport", importExpr(Identifiers.core));
27184
27184
  definitionMap.set("type", metadata.type);
27185
27185
  definitionMap.set("resolveDeferredDeps", compileComponentMetadataAsyncResolver(dependencies));
@@ -27247,7 +27247,7 @@ function createDirectiveDefinitionMap(meta) {
27247
27247
  const definitionMap = new DefinitionMap();
27248
27248
  const minVersion = getMinimumVersionForPartialOutput(meta);
27249
27249
  definitionMap.set("minVersion", literal(minVersion));
27250
- definitionMap.set("version", literal("18.0.5"));
27250
+ definitionMap.set("version", literal("18.0.7"));
27251
27251
  definitionMap.set("type", meta.type.value);
27252
27252
  if (meta.isStandalone) {
27253
27253
  definitionMap.set("isStandalone", literal(meta.isStandalone));
@@ -27565,7 +27565,7 @@ var MINIMUM_PARTIAL_LINKER_VERSION2 = "12.0.0";
27565
27565
  function compileDeclareFactoryFunction(meta) {
27566
27566
  const definitionMap = new DefinitionMap();
27567
27567
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION2));
27568
- definitionMap.set("version", literal("18.0.5"));
27568
+ definitionMap.set("version", literal("18.0.7"));
27569
27569
  definitionMap.set("ngImport", importExpr(Identifiers.core));
27570
27570
  definitionMap.set("type", meta.type.value);
27571
27571
  definitionMap.set("deps", compileDependencies(meta.deps));
@@ -27588,7 +27588,7 @@ function compileDeclareInjectableFromMetadata(meta) {
27588
27588
  function createInjectableDefinitionMap(meta) {
27589
27589
  const definitionMap = new DefinitionMap();
27590
27590
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION3));
27591
- definitionMap.set("version", literal("18.0.5"));
27591
+ definitionMap.set("version", literal("18.0.7"));
27592
27592
  definitionMap.set("ngImport", importExpr(Identifiers.core));
27593
27593
  definitionMap.set("type", meta.type.value);
27594
27594
  if (meta.providedIn !== void 0) {
@@ -27626,7 +27626,7 @@ function compileDeclareInjectorFromMetadata(meta) {
27626
27626
  function createInjectorDefinitionMap(meta) {
27627
27627
  const definitionMap = new DefinitionMap();
27628
27628
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION4));
27629
- definitionMap.set("version", literal("18.0.5"));
27629
+ definitionMap.set("version", literal("18.0.7"));
27630
27630
  definitionMap.set("ngImport", importExpr(Identifiers.core));
27631
27631
  definitionMap.set("type", meta.type.value);
27632
27632
  definitionMap.set("providers", meta.providers);
@@ -27650,7 +27650,7 @@ function createNgModuleDefinitionMap(meta) {
27650
27650
  throw new Error("Invalid path! Local compilation mode should not get into the partial compilation path");
27651
27651
  }
27652
27652
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION5));
27653
- definitionMap.set("version", literal("18.0.5"));
27653
+ definitionMap.set("version", literal("18.0.7"));
27654
27654
  definitionMap.set("ngImport", importExpr(Identifiers.core));
27655
27655
  definitionMap.set("type", meta.type.value);
27656
27656
  if (meta.bootstrap.length > 0) {
@@ -27685,7 +27685,7 @@ function compileDeclarePipeFromMetadata(meta) {
27685
27685
  function createPipeDefinitionMap(meta) {
27686
27686
  const definitionMap = new DefinitionMap();
27687
27687
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION6));
27688
- definitionMap.set("version", literal("18.0.5"));
27688
+ definitionMap.set("version", literal("18.0.7"));
27689
27689
  definitionMap.set("ngImport", importExpr(Identifiers.core));
27690
27690
  definitionMap.set("type", meta.type.value);
27691
27691
  if (meta.isStandalone) {
@@ -27702,7 +27702,7 @@ function createPipeDefinitionMap(meta) {
27702
27702
  publishFacade(_global);
27703
27703
 
27704
27704
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/version.mjs
27705
- var VERSION3 = new Version("18.0.5");
27705
+ var VERSION3 = new Version("18.0.7");
27706
27706
 
27707
27707
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
27708
27708
  var import_typescript5 = __toESM(require("typescript"), 1);
@@ -39446,7 +39446,7 @@ function extractGenerics(declaration) {
39446
39446
 
39447
39447
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/docs/src/jsdoc_extractor.mjs
39448
39448
  var import_typescript74 = __toESM(require("typescript"), 1);
39449
- var decoratorExpression = /@(?=(Injectable|Component|Directive|Pipe|NgModule|Input|Output|HostBinding|HostListener|Inject|Optional|Self|Host|SkipSelf))/g;
39449
+ var decoratorExpression = /@(?=(Injectable|Component|Directive|Pipe|NgModule|Input|Output|HostBinding|HostListener|Inject|Optional|Self|Host|SkipSelf|ViewChild|ViewChildren|ContentChild|ContentChildren))/g;
39450
39450
  function extractJsDocTags(node) {
39451
39451
  const escapedNode = getEscapedNode(node);
39452
39452
  return import_typescript74.default.getJSDocTags(escapedNode).map((t) => {
@@ -39503,7 +39503,11 @@ var FunctionExtractor = class {
39503
39503
  extract() {
39504
39504
  var _a2;
39505
39505
  const signature = this.typeChecker.getSignatureFromDeclaration(this.declaration);
39506
- const returnType = signature ? this.typeChecker.typeToString(this.typeChecker.getReturnTypeOfSignature(signature)) : "unknown";
39506
+ const returnType = signature ? this.typeChecker.typeToString(
39507
+ this.typeChecker.getReturnTypeOfSignature(signature),
39508
+ void 0,
39509
+ import_typescript75.default.TypeFormatFlags.NoTypeReduction | import_typescript75.default.TypeFormatFlags.NoTruncation
39510
+ ) : "unknown";
39507
39511
  const jsdocsTags = extractJsDocTags(this.declaration);
39508
39512
  return {
39509
39513
  params: extractAllParams(this.declaration.parameters, this.typeChecker),
@@ -40091,7 +40095,7 @@ function filterSignatureDeclarations(signatures) {
40091
40095
  for (const signature of signatures) {
40092
40096
  const decl = signature.getDeclaration();
40093
40097
  if (import_typescript81.default.isFunctionDeclaration(decl) || import_typescript81.default.isCallSignatureDeclaration(decl)) {
40094
- result.push(decl);
40098
+ result.push({ signature, decl });
40095
40099
  }
40096
40100
  }
40097
40101
  return result;
@@ -40099,16 +40103,20 @@ function filterSignatureDeclarations(signatures) {
40099
40103
  function extractFunctionWithOverloads(name, signatures, typeChecker) {
40100
40104
  return {
40101
40105
  name,
40102
- signatures: filterSignatureDeclarations(signatures).map((s) => ({
40106
+ signatures: filterSignatureDeclarations(signatures).map(({ decl, signature }) => ({
40103
40107
  name,
40104
40108
  entryType: EntryType.Function,
40105
- description: extractJsDocDescription(s),
40106
- generics: extractGenerics(s),
40109
+ description: extractJsDocDescription(decl),
40110
+ generics: extractGenerics(decl),
40107
40111
  isNewType: false,
40108
- jsdocTags: extractJsDocTags(s),
40109
- params: extractAllParams(s.parameters, typeChecker),
40110
- rawComment: extractRawJsDoc(s),
40111
- returnType: typeChecker.typeToString(typeChecker.getReturnTypeOfSignature(typeChecker.getSignatureFromDeclaration(s)))
40112
+ jsdocTags: extractJsDocTags(decl),
40113
+ params: extractAllParams(decl.parameters, typeChecker),
40114
+ rawComment: extractRawJsDoc(decl),
40115
+ returnType: typeChecker.typeToString(
40116
+ typeChecker.getReturnTypeOfSignature(signature),
40117
+ void 0,
40118
+ import_typescript81.default.TypeFormatFlags.NoTypeReduction | import_typescript81.default.TypeFormatFlags.NoTruncation
40119
+ )
40112
40120
  })),
40113
40121
  implementation: null
40114
40122
  };