@angular/core 17.0.0-next.4 → 17.0.0-next.5
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.
- package/esm2022/src/core.mjs +2 -2
- package/esm2022/src/core_private_export.mjs +3 -1
- package/esm2022/src/core_render3_private_export.mjs +3 -2
- package/esm2022/src/errors.mjs +1 -1
- package/esm2022/src/metadata/ng_module_def.mjs +1 -1
- package/esm2022/src/render3/after_render_hooks.mjs +100 -13
- package/esm2022/src/render3/deps_tracker/api.mjs +1 -1
- package/esm2022/src/render3/deps_tracker/deps_tracker.mjs +13 -3
- package/esm2022/src/render3/index.mjs +2 -2
- package/esm2022/src/render3/instructions/defer.mjs +121 -40
- package/esm2022/src/render3/interfaces/defer.mjs +66 -1
- package/esm2022/src/render3/interfaces/definition.mjs +1 -1
- package/esm2022/src/render3/local_compilation.mjs +8 -2
- package/esm2022/src/render3/reactive_lview_consumer.mjs +1 -1
- package/esm2022/src/render3/reactivity/effect.mjs +3 -15
- package/esm2022/src/render3/scope.mjs +10 -4
- package/esm2022/src/signals/src/api.mjs +2 -2
- package/esm2022/src/signals/src/computed.mjs +50 -45
- package/esm2022/src/signals/src/graph.mjs +7 -2
- package/esm2022/src/signals/src/signal.mjs +11 -6
- package/esm2022/src/signals/src/watch.mjs +40 -12
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/component_fixture.mjs +17 -2
- package/esm2022/testing/src/defer.mjs +84 -0
- package/esm2022/testing/src/logger.mjs +3 -3
- package/esm2022/testing/src/test_bed.mjs +12 -2
- package/esm2022/testing/src/test_bed_common.mjs +1 -1
- package/esm2022/testing/src/test_bed_compiler.mjs +5 -2
- package/esm2022/testing/src/testing.mjs +3 -1
- package/fesm2022/core.mjs +415 -132
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/rxjs-interop.mjs +1 -1
- package/fesm2022/testing.mjs +107 -3
- package/fesm2022/testing.mjs.map +1 -1
- package/index.d.ts +202 -8
- package/package.json +3 -3
- package/rxjs-interop/index.d.ts +1 -1
- package/schematics/migrations/guard-and-resolve-interfaces/bundle.js +13 -13
- package/schematics/migrations/remove-module-id/bundle.js +14 -14
- package/schematics/ng-generate/standalone-migration/bundle.js +1890 -1155
- package/schematics/ng-generate/standalone-migration/bundle.js.map +4 -4
- package/testing/index.d.ts +41 -1
package/testing/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v17.0.0-next.
|
|
2
|
+
* @license Angular v17.0.0-next.5
|
|
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,10 @@ 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
|
+
getDeferBlocks(): Promise<DeferBlockFixture[]>;
|
|
110
118
|
private _getRenderer;
|
|
111
119
|
/**
|
|
112
120
|
* Get a promise that resolves when the ui state is stable following animations.
|
|
@@ -128,6 +136,33 @@ export declare const ComponentFixtureAutoDetect: InjectionToken<boolean>;
|
|
|
128
136
|
*/
|
|
129
137
|
export declare const ComponentFixtureNoNgZone: InjectionToken<boolean>;
|
|
130
138
|
|
|
139
|
+
export { DeferBlockBehavior }
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Represents an individual `{#defer}` block for testing purposes.
|
|
143
|
+
*
|
|
144
|
+
* @publicApi
|
|
145
|
+
* @developerPreview
|
|
146
|
+
*/
|
|
147
|
+
export declare class DeferBlockFixture {
|
|
148
|
+
private block;
|
|
149
|
+
private componentFixture;
|
|
150
|
+
/** @nodoc */
|
|
151
|
+
constructor(block: ɵDeferBlockDetails, componentFixture: ComponentFixture<unknown>);
|
|
152
|
+
/**
|
|
153
|
+
* Renders the specified state of the defer fixture.
|
|
154
|
+
* @param state the defer state to render
|
|
155
|
+
*/
|
|
156
|
+
render(state: DeferBlockState): Promise<void>;
|
|
157
|
+
/**
|
|
158
|
+
* Retrieves all nested child defer block fixtures
|
|
159
|
+
* in a given defer block.
|
|
160
|
+
*/
|
|
161
|
+
getDeferBlocks(): Promise<DeferBlockFixture[]>;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export { DeferBlockState }
|
|
165
|
+
|
|
131
166
|
/**
|
|
132
167
|
* Discard all remaining periodic tasks.
|
|
133
168
|
*
|
|
@@ -411,6 +446,11 @@ export declare interface TestModuleMetadata {
|
|
|
411
446
|
* @see [NG8002](/errors/NG8002) for the description of the error and how to fix it
|
|
412
447
|
*/
|
|
413
448
|
errorOnUnknownProperties?: boolean;
|
|
449
|
+
/**
|
|
450
|
+
* Whether defer blocks should behave with manual triggering or play through normally.
|
|
451
|
+
* Defaults to `manual`.
|
|
452
|
+
*/
|
|
453
|
+
deferBlockBehavior?: DeferBlockBehavior;
|
|
414
454
|
}
|
|
415
455
|
|
|
416
456
|
/**
|