@angular/core 17.0.0-next.4 → 17.0.0-next.6

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 (69) hide show
  1. package/esm2022/rxjs-interop/src/to_signal.mjs +13 -11
  2. package/esm2022/src/application_init.mjs +3 -3
  3. package/esm2022/src/application_module.mjs +3 -3
  4. package/esm2022/src/application_ref.mjs +23 -6
  5. package/esm2022/src/change_detection/differs/default_iterable_differ.mjs +1 -2
  6. package/esm2022/src/console.mjs +2 -2
  7. package/esm2022/src/core.mjs +2 -2
  8. package/esm2022/src/core_private_export.mjs +4 -2
  9. package/esm2022/src/core_render3_private_export.mjs +3 -2
  10. package/esm2022/src/errors.mjs +1 -1
  11. package/esm2022/src/hydration/api.mjs +7 -8
  12. package/esm2022/src/hydration/views.mjs +3 -3
  13. package/esm2022/src/initial_render_pending_tasks.mjs +2 -2
  14. package/esm2022/src/linker/compiler.mjs +2 -2
  15. package/esm2022/src/linker/query_list.mjs +7 -10
  16. package/esm2022/src/linker/view_container_ref.mjs +12 -10
  17. package/esm2022/src/metadata/ng_module_def.mjs +1 -1
  18. package/esm2022/src/render3/after_render_hooks.mjs +100 -13
  19. package/esm2022/src/render3/deps_tracker/api.mjs +1 -1
  20. package/esm2022/src/render3/deps_tracker/deps_tracker.mjs +16 -10
  21. package/esm2022/src/render3/index.mjs +2 -2
  22. package/esm2022/src/render3/instructions/control_flow.mjs +6 -4
  23. package/esm2022/src/render3/instructions/defer.mjs +495 -112
  24. package/esm2022/src/render3/instructions/defer_events.mjs +154 -0
  25. package/esm2022/src/render3/instructions/shared.mjs +1 -1
  26. package/esm2022/src/render3/instructions/template.mjs +9 -2
  27. package/esm2022/src/render3/interfaces/defer.mjs +64 -1
  28. package/esm2022/src/render3/interfaces/definition.mjs +1 -1
  29. package/esm2022/src/render3/local_compilation.mjs +8 -2
  30. package/esm2022/src/render3/metadata.mjs +2 -2
  31. package/esm2022/src/render3/reactive_lview_consumer.mjs +1 -1
  32. package/esm2022/src/render3/reactivity/effect.mjs +3 -15
  33. package/esm2022/src/render3/scope.mjs +10 -4
  34. package/esm2022/src/render3/state.mjs +2 -11
  35. package/esm2022/src/render3/util/view_utils.mjs +17 -3
  36. package/esm2022/src/signals/src/api.mjs +2 -2
  37. package/esm2022/src/signals/src/computed.mjs +50 -45
  38. package/esm2022/src/signals/src/graph.mjs +7 -2
  39. package/esm2022/src/signals/src/signal.mjs +11 -6
  40. package/esm2022/src/signals/src/watch.mjs +40 -12
  41. package/esm2022/src/testability/testability.mjs +5 -5
  42. package/esm2022/src/util/assert.mjs +6 -1
  43. package/esm2022/src/version.mjs +1 -1
  44. package/esm2022/testing/src/component_fixture.mjs +19 -2
  45. package/esm2022/testing/src/defer.mjs +84 -0
  46. package/esm2022/testing/src/logger.mjs +4 -4
  47. package/esm2022/testing/src/test_bed.mjs +12 -2
  48. package/esm2022/testing/src/test_bed_common.mjs +1 -1
  49. package/esm2022/testing/src/test_bed_compiler.mjs +5 -2
  50. package/esm2022/testing/src/testing.mjs +3 -1
  51. package/fesm2022/core.mjs +1691 -930
  52. package/fesm2022/core.mjs.map +1 -1
  53. package/fesm2022/rxjs-interop.mjs +13 -11
  54. package/fesm2022/rxjs-interop.mjs.map +1 -1
  55. package/fesm2022/testing.mjs +109 -3
  56. package/fesm2022/testing.mjs.map +1 -1
  57. package/index.d.ts +279 -49
  58. package/package.json +3 -3
  59. package/rxjs-interop/index.d.ts +1 -1
  60. package/schematics/migrations/block-template-entities/bundle.js +23249 -0
  61. package/schematics/migrations/block-template-entities/bundle.js.map +7 -0
  62. package/schematics/migrations.json +4 -9
  63. package/schematics/ng-generate/standalone-migration/bundle.js +2867 -2021
  64. package/schematics/ng-generate/standalone-migration/bundle.js.map +4 -4
  65. package/testing/index.d.ts +43 -1
  66. package/schematics/migrations/guard-and-resolve-interfaces/bundle.js +0 -694
  67. package/schematics/migrations/guard-and-resolve-interfaces/bundle.js.map +0 -7
  68. package/schematics/migrations/remove-module-id/bundle.js +0 -368
  69. package/schematics/migrations/remove-module-id/bundle.js.map +0 -7
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v17.0.0-next.4
2
+ * @license Angular v17.0.0-next.6
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -9,6 +9,8 @@ import { ChangeDetectorRef } from '@angular/core';
9
9
  import { Component } from '@angular/core';
10
10
  import { ComponentRef } from '@angular/core';
11
11
  import { DebugElement } from '@angular/core';
12
+ import { ɵDeferBlockBehavior as DeferBlockBehavior } from '@angular/core';
13
+ import { ɵDeferBlockState as DeferBlockState } from '@angular/core';
12
14
  import { Directive } from '@angular/core';
13
15
  import { ElementRef } from '@angular/core';
14
16
  import { InjectFlags } from '@angular/core';
@@ -21,6 +23,7 @@ import { PlatformRef } from '@angular/core';
21
23
  import { ProviderToken } from '@angular/core';
22
24
  import { SchemaMetadata } from '@angular/core';
23
25
  import { Type } from '@angular/core';
26
+ import { ɵDeferBlockDetails } from '@angular/core';
24
27
  import { ɵFlushableEffectRunner } from '@angular/core';
25
28
 
26
29
  /**
@@ -79,6 +82,7 @@ export declare class ComponentFixture<T> {
79
82
  private _onStableSubscription;
80
83
  private _onMicrotaskEmptySubscription;
81
84
  private _onErrorSubscription;
85
+ /** @nodoc */
82
86
  constructor(componentRef: ComponentRef<T>, ngZone: NgZone | null, effectRunner: ɵFlushableEffectRunner | null, _autoDetect: boolean);
83
87
  private _tick;
84
88
  /**
@@ -107,6 +111,12 @@ export declare class ComponentFixture<T> {
107
111
  * asynchronous change detection.
108
112
  */
109
113
  whenStable(): Promise<any>;
114
+ /**
115
+ * Retrieves all defer block fixtures in the component fixture.
116
+ *
117
+ * @developerPreview
118
+ */
119
+ getDeferBlocks(): Promise<DeferBlockFixture[]>;
110
120
  private _getRenderer;
111
121
  /**
112
122
  * Get a promise that resolves when the ui state is stable following animations.
@@ -128,6 +138,33 @@ export declare const ComponentFixtureAutoDetect: InjectionToken<boolean>;
128
138
  */
129
139
  export declare const ComponentFixtureNoNgZone: InjectionToken<boolean>;
130
140
 
141
+ export { DeferBlockBehavior }
142
+
143
+ /**
144
+ * Represents an individual defer block for testing purposes.
145
+ *
146
+ * @publicApi
147
+ * @developerPreview
148
+ */
149
+ export declare class DeferBlockFixture {
150
+ private block;
151
+ private componentFixture;
152
+ /** @nodoc */
153
+ constructor(block: ɵDeferBlockDetails, componentFixture: ComponentFixture<unknown>);
154
+ /**
155
+ * Renders the specified state of the defer fixture.
156
+ * @param state the defer state to render
157
+ */
158
+ render(state: DeferBlockState): Promise<void>;
159
+ /**
160
+ * Retrieves all nested child defer block fixtures
161
+ * in a given defer block.
162
+ */
163
+ getDeferBlocks(): Promise<DeferBlockFixture[]>;
164
+ }
165
+
166
+ export { DeferBlockState }
167
+
131
168
  /**
132
169
  * Discard all remaining periodic tasks.
133
170
  *
@@ -411,6 +448,11 @@ export declare interface TestModuleMetadata {
411
448
  * @see [NG8002](/errors/NG8002) for the description of the error and how to fix it
412
449
  */
413
450
  errorOnUnknownProperties?: boolean;
451
+ /**
452
+ * Whether defer blocks should behave with manual triggering or play through normally.
453
+ * Defaults to `manual`.
454
+ */
455
+ deferBlockBehavior?: DeferBlockBehavior;
414
456
  }
415
457
 
416
458
  /**