@angular/core 17.1.0-next.4 → 17.1.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/application/application_ref.mjs +4 -8
- package/esm2022/src/application/create_application.mjs +2 -2
- package/esm2022/src/change_detection/flags.mjs +16 -0
- package/esm2022/src/change_detection/scheduling/ng_zone_scheduling.mjs +164 -0
- package/esm2022/src/change_detection/scheduling/zoneless_scheduling.mjs +13 -0
- package/esm2022/src/core.mjs +2 -2
- package/esm2022/src/core_private_export.mjs +4 -2
- package/esm2022/src/event_emitter.mjs +1 -2
- package/esm2022/src/pending_tasks.mjs +57 -0
- package/esm2022/src/platform/platform_ref.mjs +2 -2
- package/esm2022/src/render3/after_render_hooks.mjs +2 -2
- package/esm2022/src/render3/component_ref.mjs +13 -9
- package/esm2022/src/render3/instructions/control_flow.mjs +5 -3
- package/esm2022/src/render3/instructions/mark_view_dirty.mjs +3 -2
- package/esm2022/src/render3/instructions/shared.mjs +3 -2
- package/esm2022/src/render3/interfaces/view.mjs +1 -1
- package/esm2022/src/render3/util/view_utils.mjs +18 -5
- package/esm2022/src/render3/view_ref.mjs +2 -1
- package/esm2022/src/version.mjs +6 -5
- package/esm2022/src/zone/ng_zone.mjs +1 -61
- package/esm2022/testing/src/logger.mjs +3 -3
- package/fesm2022/core.mjs +176 -138
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/primitives/signals.mjs +1 -1
- package/fesm2022/rxjs-interop.mjs +1 -1
- package/fesm2022/testing.mjs +1 -1
- package/index.d.ts +41 -23
- package/package.json +1 -1
- package/primitives/signals/index.d.ts +1 -1
- package/rxjs-interop/index.d.ts +1 -1
- package/schematics/migrations/block-template-entities/bundle.js +378 -278
- package/schematics/migrations/block-template-entities/bundle.js.map +4 -4
- package/schematics/ng-generate/control-flow-migration/bundle.js +543 -344
- package/schematics/ng-generate/control-flow-migration/bundle.js.map +4 -4
- package/schematics/ng-generate/standalone-migration/bundle.js +412 -266
- package/schematics/ng-generate/standalone-migration/bundle.js.map +4 -4
- package/testing/index.d.ts +1 -1
- package/esm2022/src/change_detection/scheduling.mjs +0 -103
- package/esm2022/src/initial_render_pending_tasks.mjs +0 -49
package/fesm2022/testing.mjs
CHANGED
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v17.1.0-next.
|
|
2
|
+
* @license Angular v17.1.0-next.5
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -642,7 +642,6 @@ export declare class ApplicationRef {
|
|
|
642
642
|
private _destroyed;
|
|
643
643
|
private _destroyListeners;
|
|
644
644
|
private readonly internalErrorHandler;
|
|
645
|
-
private readonly zoneIsStable;
|
|
646
645
|
/**
|
|
647
646
|
* Indicates whether this instance was destroyed.
|
|
648
647
|
*/
|
|
@@ -5936,6 +5935,8 @@ declare interface LViewEnvironment {
|
|
|
5936
5935
|
inlineEffectRunner: FlushableEffectRunner | null;
|
|
5937
5936
|
/** Container for after render hooks */
|
|
5938
5937
|
afterRenderEventManager: ɵAfterRenderEventManager | null;
|
|
5938
|
+
/** Scheduler for change detection to notify when application state changes. */
|
|
5939
|
+
changeDetectionScheduler: ɵChangeDetectionScheduler | null;
|
|
5939
5940
|
}
|
|
5940
5941
|
|
|
5941
5942
|
/** Flags associated with an LView (saved in LView[FLAGS]) */
|
|
@@ -10867,6 +10868,14 @@ export declare const enum ɵBypassType {
|
|
|
10867
10868
|
Style = "Style"
|
|
10868
10869
|
}
|
|
10869
10870
|
|
|
10871
|
+
|
|
10872
|
+
/**
|
|
10873
|
+
* Injectable that is notified when an `LView` is made aware of changes to application state.
|
|
10874
|
+
*/
|
|
10875
|
+
export declare abstract class ɵChangeDetectionScheduler {
|
|
10876
|
+
abstract notify(): void;
|
|
10877
|
+
}
|
|
10878
|
+
|
|
10870
10879
|
export declare function ɵclearResolutionOfComponentResourcesQueue(): Map<Type<any>, Component>;
|
|
10871
10880
|
|
|
10872
10881
|
/**
|
|
@@ -11420,6 +11429,9 @@ export declare function ɵgetDeferBlocks(lView: LView, deferBlocks: ɵDeferBlock
|
|
|
11420
11429
|
*/
|
|
11421
11430
|
export declare function ɵgetDirectives(node: Node): {}[];
|
|
11422
11431
|
|
|
11432
|
+
|
|
11433
|
+
export declare function ɵgetEnsureDirtyViewsAreAlwaysReachable(): boolean;
|
|
11434
|
+
|
|
11423
11435
|
/**
|
|
11424
11436
|
* Retrieves the host element of a component or directive instance.
|
|
11425
11437
|
* The host element is the DOM element that matched the selector of the directive.
|
|
@@ -11531,26 +11543,6 @@ export declare type ɵImageConfig = {
|
|
|
11531
11543
|
disableImageLazyLoadWarning?: boolean;
|
|
11532
11544
|
};
|
|
11533
11545
|
|
|
11534
|
-
/**
|
|
11535
|
-
* *Internal* service that keeps track of pending tasks happening in the system
|
|
11536
|
-
* during the initial rendering. No tasks are tracked after an initial
|
|
11537
|
-
* rendering.
|
|
11538
|
-
*
|
|
11539
|
-
* This information is needed to make sure that the serialization on the server
|
|
11540
|
-
* is delayed until all tasks in the queue (such as an initial navigation or a
|
|
11541
|
-
* pending HTTP request) are completed.
|
|
11542
|
-
*/
|
|
11543
|
-
export declare class ɵInitialRenderPendingTasks implements OnDestroy {
|
|
11544
|
-
private taskId;
|
|
11545
|
-
private pendingTasks;
|
|
11546
|
-
hasPendingTasks: BehaviorSubject<boolean>;
|
|
11547
|
-
add(): number;
|
|
11548
|
-
remove(taskId: number): void;
|
|
11549
|
-
ngOnDestroy(): void;
|
|
11550
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ɵInitialRenderPendingTasks, never>;
|
|
11551
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ɵInitialRenderPendingTasks>;
|
|
11552
|
-
}
|
|
11553
|
-
|
|
11554
11546
|
/** Returns a ChangeDetectorRef (a.k.a. a ViewRef) */
|
|
11555
11547
|
export declare function ɵinjectChangeDetectorRef(flags: InjectFlags): ChangeDetectorRef;
|
|
11556
11548
|
|
|
@@ -11997,6 +11989,28 @@ export declare const ɵNOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR: {};
|
|
|
11997
11989
|
*/
|
|
11998
11990
|
export declare function ɵpatchComponentDefWithScope<C>(componentDef: ɵComponentDef<C>, transitiveScopes: ɵNgModuleTransitiveScopes): void;
|
|
11999
11991
|
|
|
11992
|
+
/**
|
|
11993
|
+
* *Internal* service that keeps track of pending tasks happening in the system.
|
|
11994
|
+
*
|
|
11995
|
+
* This information is needed to make sure that the serialization on the server
|
|
11996
|
+
* is delayed until all tasks in the queue (such as an initial navigation or a
|
|
11997
|
+
* pending HTTP request) are completed.
|
|
11998
|
+
*
|
|
11999
|
+
* Pending tasks continue to contribute to the stableness of `ApplicationRef`
|
|
12000
|
+
* throughout the lifetime of the application.
|
|
12001
|
+
*/
|
|
12002
|
+
export declare class ɵPendingTasks implements OnDestroy {
|
|
12003
|
+
private taskId;
|
|
12004
|
+
private pendingTasks;
|
|
12005
|
+
private get _hasPendingTasks();
|
|
12006
|
+
hasPendingTasks: BehaviorSubject<boolean>;
|
|
12007
|
+
add(): number;
|
|
12008
|
+
remove(taskId: number): void;
|
|
12009
|
+
ngOnDestroy(): void;
|
|
12010
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ɵPendingTasks, never>;
|
|
12011
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ɵPendingTasks>;
|
|
12012
|
+
}
|
|
12013
|
+
|
|
12000
12014
|
|
|
12001
12015
|
/**
|
|
12002
12016
|
* A guarded `performance.mark` for feature marking.
|
|
@@ -12488,6 +12502,8 @@ export declare function ɵsetCurrentInjector(injector: Injector | null | undefin
|
|
|
12488
12502
|
*/
|
|
12489
12503
|
export declare function ɵsetDocument(document: Document | undefined): void;
|
|
12490
12504
|
|
|
12505
|
+
export declare function ɵsetEnsureDirtyViewsAreAlwaysReachable(v: boolean): void;
|
|
12506
|
+
|
|
12491
12507
|
export declare function ɵsetInjectorProfilerContext(context: ɵInjectorProfilerContext): ɵInjectorProfilerContext;
|
|
12492
12508
|
|
|
12493
12509
|
|
|
@@ -15286,10 +15302,12 @@ export declare function ɵɵrepeater(collection: Iterable<unknown> | undefined |
|
|
|
15286
15302
|
* @param emptyTemplateFn Reference to the template function of the empty block.
|
|
15287
15303
|
* @param emptyDecls The number of nodes, local refs, and pipes for the empty block.
|
|
15288
15304
|
* @param emptyVars The number of bindings for the empty block.
|
|
15305
|
+
* @param emptyTagName The name of the empty block container element, if applicable
|
|
15306
|
+
* @param emptyAttrsIndex Index of the empty block template attributes in the `consts` array.
|
|
15289
15307
|
*
|
|
15290
15308
|
* @codeGenApi
|
|
15291
15309
|
*/
|
|
15292
|
-
export declare function ɵɵrepeaterCreate(index: number, templateFn: ComponentTemplate<unknown>, decls: number, vars: number, tagName: string | null, attrsIndex: number | null, trackByFn: TrackByFunction<unknown>, trackByUsesComponentInstance?: boolean, emptyTemplateFn?: ComponentTemplate<unknown>, emptyDecls?: number, emptyVars?: number): void;
|
|
15310
|
+
export declare function ɵɵrepeaterCreate(index: number, templateFn: ComponentTemplate<unknown>, decls: number, vars: number, tagName: string | null, attrsIndex: number | null, trackByFn: TrackByFunction<unknown>, trackByUsesComponentInstance?: boolean, emptyTemplateFn?: ComponentTemplate<unknown>, emptyDecls?: number, emptyVars?: number, emptyTagName?: string | null, emptyAttrsIndex?: number | null): void;
|
|
15293
15311
|
|
|
15294
15312
|
/**
|
|
15295
15313
|
* A built-in trackBy function used for situations where users specified collection item reference
|
package/package.json
CHANGED
package/rxjs-interop/index.d.ts
CHANGED