@angular/core 20.2.0-next.2 → 20.2.0-next.4

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 (61) hide show
  1. package/api.d.d.ts +2 -2
  2. package/chrome_dev_tools_performance.d.d.ts +1 -1
  3. package/discovery.d.d.ts +8 -1
  4. package/event_dispatcher.d.d.ts +1 -1
  5. package/fesm2022/attribute.mjs +1 -1
  6. package/fesm2022/core.mjs +35 -10
  7. package/fesm2022/core.mjs.map +1 -1
  8. package/fesm2022/debug_node.mjs +254 -141
  9. package/fesm2022/debug_node.mjs.map +1 -1
  10. package/fesm2022/not_found.mjs +1 -1
  11. package/fesm2022/primitives/di.mjs +1 -1
  12. package/fesm2022/primitives/event-dispatch.mjs +1 -1
  13. package/fesm2022/primitives/signals.mjs +1 -1
  14. package/fesm2022/resource.mjs +12 -3
  15. package/fesm2022/resource.mjs.map +1 -1
  16. package/fesm2022/root_effect_scheduler.mjs +1 -1
  17. package/fesm2022/root_effect_scheduler.mjs.map +1 -1
  18. package/fesm2022/rxjs-interop.mjs +1 -1
  19. package/fesm2022/signal.mjs +154 -118
  20. package/fesm2022/signal.mjs.map +1 -1
  21. package/fesm2022/testing.mjs +19 -2
  22. package/fesm2022/testing.mjs.map +1 -1
  23. package/fesm2022/untracked.mjs +1 -1
  24. package/fesm2022/weak_ref.mjs +1 -1
  25. package/graph.d.d.ts +20 -33
  26. package/index.d.ts +32 -7
  27. package/package.json +2 -2
  28. package/primitives/di/index.d.ts +1 -1
  29. package/primitives/event-dispatch/index.d.ts +1 -1
  30. package/primitives/signals/index.d.ts +1 -1
  31. package/rxjs-interop/index.d.ts +1 -1
  32. package/schematics/bundles/{apply_import_manager-Bkosyy2x.cjs → apply_import_manager-Doo9rveC.cjs} +4 -4
  33. package/schematics/bundles/cleanup-unused-imports.cjs +7 -8
  34. package/schematics/bundles/{compiler_host-CSrf1kFh.cjs → compiler_host-Dtf8fsIr.cjs} +3 -3
  35. package/schematics/bundles/control-flow-migration.cjs +18 -19
  36. package/schematics/bundles/document-core.cjs +6 -7
  37. package/schematics/bundles/imports-CIX-JgAN.cjs +1 -1
  38. package/schematics/bundles/{index-DwmX8Ifa.cjs → index-B10puRUY.cjs} +49 -49
  39. package/schematics/bundles/{index-DYbdsCUu.cjs → index-DHoQSprx.cjs} +1268 -1264
  40. package/schematics/bundles/inject-flags.cjs +6 -7
  41. package/schematics/bundles/inject-migration.cjs +6 -7
  42. package/schematics/bundles/leading_space-D9nQ8UQC.cjs +1 -1
  43. package/schematics/bundles/{migrate_ts_type_references-C7NB9fZH.cjs → migrate_ts_type_references-Cr2742bs.cjs} +14 -14
  44. package/schematics/bundles/ng_decorators-B5HCqr20.cjs +1 -1
  45. package/schematics/bundles/nodes-B16H9JUd.cjs +1 -1
  46. package/schematics/bundles/output-migration.cjs +20 -21
  47. package/schematics/bundles/{project_paths-5CoqAjNK.cjs → project_paths-CrqHneU0.cjs} +16 -17
  48. package/schematics/bundles/{checker-Cfq29XaS.cjs → project_tsconfig_paths-BGhHq5-d.cjs} +166 -30
  49. package/schematics/bundles/property_name-BBwFuqMe.cjs +1 -1
  50. package/schematics/bundles/route-lazy-loading.cjs +6 -7
  51. package/schematics/bundles/self-closing-tags-migration.cjs +10 -11
  52. package/schematics/bundles/signal-input-migration.cjs +21 -22
  53. package/schematics/bundles/signal-queries-migration.cjs +31 -32
  54. package/schematics/bundles/signals.cjs +8 -9
  55. package/schematics/bundles/standalone-migration.cjs +10 -11
  56. package/schematics/bundles/symbol-VPWguRxr.cjs +1 -1
  57. package/schematics/bundles/test-bed-get.cjs +4 -5
  58. package/signal.d.d.ts +1 -1
  59. package/testing/index.d.ts +6 -1
  60. package/weak_ref.d.d.ts +1 -1
  61. package/schematics/bundles/project_tsconfig_paths-CDVxT6Ov.cjs +0 -90
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license Angular v20.2.0-next.2
2
+ * @license Angular v20.2.0-next.4
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
6
6
 
7
7
  import * as i0 from '@angular/core';
8
- import { NgZone, Injectable, DeferBlockState, triggerResourceLoading, renderDeferBlockState, getDeferBlocks, DeferBlockBehavior, NoopNgZone, ApplicationRef, getDebugNode, RendererFactory2, Directive, Component, Pipe, NgModule, ReflectionCapabilities, depsTracker, isComponentDefPendingResolution, resolveComponentResources, NgModuleRef, ApplicationInitStatus, LOCALE_ID, DEFAULT_LOCALE_ID, setLocaleId, ComponentFactory, getAsyncClassMetadataFn, compileComponent, compileDirective, compilePipe, patchComponentDefWithScope, compileNgModuleDefs, clearResolutionOfComponentResourcesQueue, restoreComponentResolutionQueue, internalProvideZoneChangeDetection, ChangeDetectionSchedulerImpl, COMPILER_OPTIONS, generateStandaloneInDeclarationsError, transitiveScopesFor, Compiler, DEFER_BLOCK_CONFIG, NgModuleFactory, ModuleWithComponentFactories, resetCompiledComponents, ɵsetUnknownElementStrictMode as _setUnknownElementStrictMode, ɵsetUnknownPropertyStrictMode as _setUnknownPropertyStrictMode, ɵgetUnknownElementStrictMode as _getUnknownElementStrictMode, ɵgetUnknownPropertyStrictMode as _getUnknownPropertyStrictMode, inferTagNameFromDefinition, flushModuleScopingQueueAsMuchAsPossible, setAllowDuplicateNgModuleIdsForTest } from './debug_node.mjs';
8
+ import { NgZone, Injectable, DeferBlockState, triggerResourceLoading, renderDeferBlockState, getDeferBlocks, DeferBlockBehavior, NoopNgZone, ApplicationRef, getDebugNode, RendererFactory2, Directive, Component, Pipe, NgModule, ReflectionCapabilities, depsTracker, isComponentDefPendingResolution, resolveComponentResources, NgModuleRef, ApplicationInitStatus, LOCALE_ID, DEFAULT_LOCALE_ID, setLocaleId, ComponentFactory, getAsyncClassMetadataFn, compileComponent, compileDirective, compilePipe, patchComponentDefWithScope, compileNgModuleDefs, clearResolutionOfComponentResourcesQueue, restoreComponentResolutionQueue, internalProvideZoneChangeDetection, ChangeDetectionSchedulerImpl, COMPILER_OPTIONS, generateStandaloneInDeclarationsError, transitiveScopesFor, Compiler, DEFER_BLOCK_CONFIG, ANIMATIONS_DISABLED, NgModuleFactory, ModuleWithComponentFactories, resetCompiledComponents, ɵsetUnknownElementStrictMode as _setUnknownElementStrictMode, ɵsetUnknownPropertyStrictMode as _setUnknownPropertyStrictMode, ɵgetUnknownElementStrictMode as _getUnknownElementStrictMode, ɵgetUnknownPropertyStrictMode as _getUnknownPropertyStrictMode, inferTagNameFromDefinition, flushModuleScopingQueueAsMuchAsPossible, setAllowDuplicateNgModuleIdsForTest } from './debug_node.mjs';
9
9
  import { Subscription } from 'rxjs';
10
10
  import { inject as inject$1, EnvironmentInjector, ErrorHandler, CONTAINER_HEADER_OFFSET, InjectionToken, PendingTasksInternal, ZONELESS_ENABLED, ChangeDetectionScheduler, EffectScheduler, stringify, getInjectableDef, resolveForwardRef, NG_COMP_DEF, NG_DIR_DEF, NG_PIPE_DEF, NG_INJ_DEF, NG_MOD_DEF, ENVIRONMENT_INITIALIZER, Injector, isEnvironmentProviders, INTERNAL_APPLICATION_ERROR_HANDLER, runInInjectionContext, getComponentDef as getComponentDef$1 } from './root_effect_scheduler.mjs';
11
11
  import { ResourceLoader } from '@angular/compiler';
@@ -174,6 +174,8 @@ const THROW_ON_UNKNOWN_ELEMENTS_DEFAULT = false;
174
174
  const THROW_ON_UNKNOWN_PROPERTIES_DEFAULT = false;
175
175
  /** Whether defer blocks should use manual triggering or play through normally. */
176
176
  const DEFER_BLOCK_DEFAULT_BEHAVIOR = DeferBlockBehavior.Playthrough;
177
+ /** Whether animations are enabled or disabled. */
178
+ const ANIMATIONS_ENABLED_DEFAULT = false;
177
179
  /**
178
180
  * An abstract class for inserting the root test component element in a platform independent way.
179
181
  *
@@ -827,6 +829,7 @@ class TestBedCompiler {
827
829
  scopesWithOverriddenProviders = new Set();
828
830
  testModuleType;
829
831
  testModuleRef = null;
832
+ animationsEnabled = ANIMATIONS_ENABLED_DEFAULT;
830
833
  deferBlockBehavior = DEFER_BLOCK_DEFAULT_BEHAVIOR;
831
834
  rethrowApplicationTickErrors = RETHROW_APPLICATION_ERRORS_DEFAULT;
832
835
  constructor(platform, additionalModuleTypes) {
@@ -860,6 +863,7 @@ class TestBedCompiler {
860
863
  this.schemas.push(...moduleDef.schemas);
861
864
  }
862
865
  this.deferBlockBehavior = moduleDef.deferBlockBehavior ?? DEFER_BLOCK_DEFAULT_BEHAVIOR;
866
+ this.animationsEnabled = moduleDef.animationsEnabled ?? ANIMATIONS_ENABLED_DEFAULT;
863
867
  this.rethrowApplicationTickErrors =
864
868
  moduleDef.rethrowApplicationErrors ?? RETHROW_APPLICATION_ERRORS_DEFAULT;
865
869
  }
@@ -1477,6 +1481,10 @@ class TestBedCompiler {
1477
1481
  const providers = [
1478
1482
  { provide: Compiler, useFactory: () => new R3TestCompiler(this) },
1479
1483
  { provide: DEFER_BLOCK_CONFIG, useValue: { behavior: this.deferBlockBehavior } },
1484
+ {
1485
+ provide: ANIMATIONS_DISABLED,
1486
+ useValue: !this.animationsEnabled,
1487
+ },
1480
1488
  {
1481
1489
  provide: INTERNAL_APPLICATION_ERROR_HANDLER,
1482
1490
  useFactory: () => {
@@ -1732,6 +1740,10 @@ class TestBedImpl {
1732
1740
  * or set to play through.
1733
1741
  */
1734
1742
  _instanceDeferBlockBehavior = DEFER_BLOCK_DEFAULT_BEHAVIOR;
1743
+ /**
1744
+ * Animations behavior option that specifies whether animations are enabled or disabled.
1745
+ */
1746
+ _instanceAnimationsEnabled = ANIMATIONS_ENABLED_DEFAULT;
1735
1747
  /**
1736
1748
  * "Error on unknown elements" option that has been configured at the `TestBed` instance level.
1737
1749
  * This option takes precedence over the environment-level one.
@@ -1943,6 +1955,7 @@ class TestBedImpl {
1943
1955
  this._instanceErrorOnUnknownPropertiesOption = undefined;
1944
1956
  this._instanceInferTagName = undefined;
1945
1957
  this._instanceDeferBlockBehavior = DEFER_BLOCK_DEFAULT_BEHAVIOR;
1958
+ this._instanceAnimationsEnabled = ANIMATIONS_ENABLED_DEFAULT;
1946
1959
  }
1947
1960
  }
1948
1961
  return this;
@@ -1970,6 +1983,7 @@ class TestBedImpl {
1970
1983
  this._instanceErrorOnUnknownPropertiesOption = moduleDef.errorOnUnknownProperties;
1971
1984
  this._instanceInferTagName = moduleDef.inferTagName;
1972
1985
  this._instanceDeferBlockBehavior = moduleDef.deferBlockBehavior ?? DEFER_BLOCK_DEFAULT_BEHAVIOR;
1986
+ this._instanceAnimationsEnabled = moduleDef.animationsEnabled ?? ANIMATIONS_ENABLED_DEFAULT;
1973
1987
  // Store the current value of the strict mode option,
1974
1988
  // so we can restore it later
1975
1989
  this._previousErrorOnUnknownElementsOption = _getUnknownElementStrictMode();
@@ -2158,6 +2172,9 @@ class TestBedImpl {
2158
2172
  getDeferBlockBehavior() {
2159
2173
  return this._instanceDeferBlockBehavior;
2160
2174
  }
2175
+ getAnimationsEnabled() {
2176
+ return this._instanceAnimationsEnabled;
2177
+ }
2161
2178
  tearDownTestingModule() {
2162
2179
  // If the module ref has already been destroyed, we won't be able to get a test renderer.
2163
2180
  if (this._testModuleRef === null) {