@angular/core 18.1.0-next.4 → 18.1.0-rc.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.
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/event_delegation_utils.mjs +40 -23
  14. package/esm2022/src/event_dispatch/event_delegation.mjs +38 -0
  15. package/esm2022/src/hydration/annotate.mjs +3 -3
  16. package/esm2022/src/hydration/event_replay.mjs +5 -5
  17. package/esm2022/src/render3/component_ref.mjs +1 -1
  18. package/esm2022/src/version.mjs +1 -1
  19. package/esm2022/testing/src/logger.mjs +3 -3
  20. package/fesm2022/core.mjs +75 -30
  21. package/fesm2022/core.mjs.map +1 -1
  22. package/fesm2022/primitives/event-dispatch.mjs +53 -242
  23. package/fesm2022/primitives/event-dispatch.mjs.map +1 -1
  24. package/fesm2022/primitives/signals.mjs +5 -2
  25. package/fesm2022/primitives/signals.mjs.map +1 -1
  26. package/fesm2022/rxjs-interop.mjs +1 -1
  27. package/fesm2022/testing.mjs +1 -1
  28. package/index.d.ts +31 -2
  29. package/package.json +1 -1
  30. package/primitives/event-dispatch/index.d.ts +22 -102
  31. package/primitives/signals/index.d.ts +10 -1
  32. package/rxjs-interop/index.d.ts +1 -1
  33. package/schematics/migrations/after-render-phase/bundle.js +12 -12
  34. package/schematics/migrations/http-providers/bundle.js +15 -15
  35. package/schematics/migrations/invalid-two-way-bindings/bundle.js +184 -167
  36. package/schematics/migrations/invalid-two-way-bindings/bundle.js.map +2 -2
  37. package/schematics/ng-generate/control-flow-migration/bundle.js +192 -175
  38. package/schematics/ng-generate/control-flow-migration/bundle.js.map +2 -2
  39. package/schematics/ng-generate/standalone-migration/bundle.js +552 -471
  40. package/schematics/ng-generate/standalone-migration/bundle.js.map +4 -4
  41. package/testing/index.d.ts +1 -1
  42. package/esm2022/primitives/event-dispatch/src/dom.mjs +0 -48
@@ -60,7 +60,7 @@ var __async = (__this, __arguments, generator) => {
60
60
  });
61
61
  };
62
62
 
63
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/migrations/after-render-phase/index.mjs
63
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/after-render-phase/index.mjs
64
64
  var after_render_phase_exports = {};
65
65
  __export(after_render_phase_exports, {
66
66
  default: () => after_render_phase_default
@@ -69,7 +69,7 @@ module.exports = __toCommonJS(after_render_phase_exports);
69
69
  var import_schematics = require("@angular-devkit/schematics");
70
70
  var import_path3 = require("path");
71
71
 
72
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
72
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
73
73
  var import_core = require("@angular-devkit/core");
74
74
  function getProjectTsConfigPaths(tree) {
75
75
  return __async(this, null, function* () {
@@ -149,11 +149,11 @@ function getWorkspace(tree) {
149
149
  });
150
150
  }
151
151
 
152
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
152
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
153
153
  var import_path = require("path");
154
154
  var import_typescript2 = __toESM(require("typescript"), 1);
155
155
 
156
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
156
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
157
157
  var path = __toESM(require("path"), 1);
158
158
  var import_typescript = __toESM(require("typescript"), 1);
159
159
  function parseTsconfigFile(tsconfigPath, basePath) {
@@ -170,7 +170,7 @@ function parseTsconfigFile(tsconfigPath, basePath) {
170
170
  return import_typescript.default.parseJsonConfigFileContent(config, parseConfigHost, basePath, {});
171
171
  }
172
172
 
173
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
173
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
174
174
  function createMigrationProgram(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles) {
175
175
  const { rootNames, options, host } = createProgramOptions(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles);
176
176
  return import_typescript2.default.createProgram(rootNames, options, host);
@@ -203,13 +203,13 @@ function canMigrateFile(basePath, sourceFile, program) {
203
203
  return !(0, import_path.relative)(basePath, sourceFile.fileName).startsWith("..");
204
204
  }
205
205
 
206
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/migrations/after-render-phase/migration.mjs
206
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/after-render-phase/migration.mjs
207
207
  var import_typescript6 = __toESM(require("typescript"), 1);
208
208
 
209
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
209
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
210
210
  var import_typescript4 = __toESM(require("typescript"), 1);
211
211
 
212
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/import_manager.mjs
212
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/import_manager.mjs
213
213
  var import_path2 = require("path");
214
214
  var import_typescript3 = __toESM(require("typescript"), 1);
215
215
  var ImportManager = class {
@@ -393,7 +393,7 @@ ${text}`;
393
393
  }
394
394
  };
395
395
 
396
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
396
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
397
397
  var ChangeTracker = class {
398
398
  constructor(_printer, _importRemapper) {
399
399
  __publicField(this, "_printer");
@@ -456,7 +456,7 @@ function normalizePath(path2) {
456
456
  return path2.replace(/\\/g, "/");
457
457
  }
458
458
 
459
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
459
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
460
460
  var import_typescript5 = __toESM(require("typescript"), 1);
461
461
  function getImportOfIdentifier(typeChecker, node) {
462
462
  const symbol = typeChecker.getSymbolAtLocation(node);
@@ -520,7 +520,7 @@ function findImportSpecifier(nodes, specifierName) {
520
520
  });
521
521
  }
522
522
 
523
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/migrations/after-render-phase/migration.mjs
523
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/after-render-phase/migration.mjs
524
524
  var CORE = "@angular/core";
525
525
  var AFTER_RENDER_PHASE_ENUM = "AfterRenderPhase";
526
526
  var AFTER_RENDER_FNS = /* @__PURE__ */ new Set(["afterRender", "afterNextRender"]);
@@ -577,7 +577,7 @@ function migrateFile(sourceFile, typeChecker, rewriteFn) {
577
577
  }
578
578
  }
579
579
 
580
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/migrations/after-render-phase/index.mjs
580
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/after-render-phase/index.mjs
581
581
  function after_render_phase_default() {
582
582
  return (tree) => __async(this, null, function* () {
583
583
  const { buildPaths, testPaths } = yield getProjectTsConfigPaths(tree);
@@ -60,7 +60,7 @@ var __async = (__this, __arguments, generator) => {
60
60
  });
61
61
  };
62
62
 
63
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/migrations/http-providers/index.mjs
63
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/http-providers/index.mjs
64
64
  var http_providers_exports = {};
65
65
  __export(http_providers_exports, {
66
66
  default: () => http_providers_default
@@ -69,7 +69,7 @@ module.exports = __toCommonJS(http_providers_exports);
69
69
  var import_schematics = require("@angular-devkit/schematics");
70
70
  var import_path3 = require("path");
71
71
 
72
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
72
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
73
73
  var import_core = require("@angular-devkit/core");
74
74
  function getProjectTsConfigPaths(tree) {
75
75
  return __async(this, null, function* () {
@@ -149,11 +149,11 @@ function getWorkspace(tree) {
149
149
  });
150
150
  }
151
151
 
152
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
152
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
153
153
  var import_path = require("path");
154
154
  var import_typescript2 = __toESM(require("typescript"), 1);
155
155
 
156
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
156
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
157
157
  var path = __toESM(require("path"), 1);
158
158
  var import_typescript = __toESM(require("typescript"), 1);
159
159
  function parseTsconfigFile(tsconfigPath, basePath) {
@@ -170,7 +170,7 @@ function parseTsconfigFile(tsconfigPath, basePath) {
170
170
  return import_typescript.default.parseJsonConfigFileContent(config, parseConfigHost, basePath, {});
171
171
  }
172
172
 
173
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
173
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
174
174
  function createMigrationProgram(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles) {
175
175
  const { rootNames, options, host } = createProgramOptions(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles);
176
176
  return import_typescript2.default.createProgram(rootNames, options, host);
@@ -203,13 +203,13 @@ function canMigrateFile(basePath, sourceFile, program) {
203
203
  return !(0, import_path.relative)(basePath, sourceFile.fileName).startsWith("..");
204
204
  }
205
205
 
206
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/migrations/http-providers/utils.mjs
206
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/http-providers/utils.mjs
207
207
  var import_typescript7 = __toESM(require("typescript"), 1);
208
208
 
209
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
209
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
210
210
  var import_typescript4 = __toESM(require("typescript"), 1);
211
211
 
212
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/import_manager.mjs
212
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/import_manager.mjs
213
213
  var import_path2 = require("path");
214
214
  var import_typescript3 = __toESM(require("typescript"), 1);
215
215
  var ImportManager = class {
@@ -393,7 +393,7 @@ ${text}`;
393
393
  }
394
394
  };
395
395
 
396
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
396
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
397
397
  var ChangeTracker = class {
398
398
  constructor(_printer, _importRemapper) {
399
399
  __publicField(this, "_printer");
@@ -456,10 +456,10 @@ function normalizePath(path2) {
456
456
  return path2.replace(/\\/g, "/");
457
457
  }
458
458
 
459
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
459
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
460
460
  var import_typescript6 = __toESM(require("typescript"), 1);
461
461
 
462
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
462
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
463
463
  var import_typescript5 = __toESM(require("typescript"), 1);
464
464
  function getImportOfIdentifier(typeChecker, node) {
465
465
  const symbol = typeChecker.getSymbolAtLocation(node);
@@ -519,7 +519,7 @@ function findImportSpecifier(nodes, specifierName) {
519
519
  });
520
520
  }
521
521
 
522
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
522
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
523
523
  function getCallDecoratorImport(typeChecker, decorator) {
524
524
  if (!import_typescript6.default.isCallExpression(decorator.expression) || !import_typescript6.default.isIdentifier(decorator.expression.expression)) {
525
525
  return null;
@@ -528,7 +528,7 @@ function getCallDecoratorImport(typeChecker, decorator) {
528
528
  return getImportOfIdentifier(typeChecker, identifier);
529
529
  }
530
530
 
531
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/ng_decorators.mjs
531
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/ng_decorators.mjs
532
532
  function getAngularDecorators(typeChecker, decorators) {
533
533
  return decorators.map((node) => ({ node, importData: getCallDecoratorImport(typeChecker, node) })).filter(({ importData }) => importData && importData.importModule.startsWith("@angular/")).map(({ node, importData }) => ({
534
534
  node,
@@ -538,7 +538,7 @@ function getAngularDecorators(typeChecker, decorators) {
538
538
  }));
539
539
  }
540
540
 
541
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/migrations/http-providers/utils.mjs
541
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/http-providers/utils.mjs
542
542
  var HTTP_CLIENT_MODULE = "HttpClientModule";
543
543
  var HTTP_CLIENT_XSRF_MODULE = "HttpClientXsrfModule";
544
544
  var HTTP_CLIENT_JSONP_MODULE = "HttpClientJsonpModule";
@@ -826,7 +826,7 @@ function updateTestBedConfiguration(configureTestingModuleArgs, newImports, newP
826
826
  ]);
827
827
  }
828
828
 
829
- // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/migrations/http-providers/index.mjs
829
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/http-providers/index.mjs
830
830
  function http_providers_default() {
831
831
  return (tree) => __async(this, null, function* () {
832
832
  const { buildPaths, testPaths } = yield getProjectTsConfigPaths(tree);