@angular/core 18.0.2 → 18.0.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.
- package/esm2022/src/authoring/model/model_signal.mjs +2 -3
- package/esm2022/src/change_detection/scheduling/zoneless_scheduling_impl.mjs +2 -2
- package/esm2022/src/core_render3_private_export.mjs +2 -2
- package/esm2022/src/defer/instructions.mjs +2 -10
- package/esm2022/src/errors.mjs +1 -1
- package/esm2022/src/event_emitter.mjs +20 -11
- package/esm2022/src/hydration/event_replay.mjs +32 -14
- package/esm2022/src/pending_tasks.mjs +15 -20
- package/esm2022/src/render3/chained_injector.mjs +34 -0
- package/esm2022/src/render3/component_ref.mjs +3 -28
- package/esm2022/src/render3/index.mjs +2 -2
- package/esm2022/src/render3/instructions/all.mjs +2 -1
- package/esm2022/src/render3/instructions/change_detection.mjs +27 -24
- package/esm2022/src/render3/instructions/let_declaration.mjs +39 -0
- package/esm2022/src/render3/jit/environment.mjs +4 -1
- package/esm2022/src/render3/reactive_lview_consumer.mjs +56 -3
- package/esm2022/src/render3/util/injector_discovery_utils.mjs +14 -5
- package/esm2022/src/render3/util/injector_utils.mjs +10 -1
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/logger.mjs +3 -3
- package/fesm2022/core.mjs +416 -287
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/primitives/event-dispatch.mjs +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 +32 -10
- package/package.json +1 -1
- package/primitives/event-dispatch/index.d.ts +1 -1
- package/primitives/signals/index.d.ts +1 -1
- package/rxjs-interop/index.d.ts +1 -1
- package/schematics/migrations/invalid-two-way-bindings/bundle.js +265 -61
- package/schematics/migrations/invalid-two-way-bindings/bundle.js.map +4 -4
- package/schematics/ng-generate/control-flow-migration/bundle.js +272 -61
- package/schematics/ng-generate/control-flow-migration/bundle.js.map +4 -4
- package/schematics/ng-generate/standalone-migration/bundle.js +312 -717
- package/schematics/ng-generate/standalone-migration/bundle.js.map +4 -4
- package/testing/index.d.ts +1 -1
package/fesm2022/testing.mjs
CHANGED
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v18.0.
|
|
2
|
+
* @license Angular v18.0.4
|
|
3
3
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -3963,8 +3963,8 @@ export declare class ExperimentalPendingTasks {
|
|
|
3963
3963
|
* @returns A cleanup function that removes a task when called.
|
|
3964
3964
|
*/
|
|
3965
3965
|
add(): () => void;
|
|
3966
|
-
|
|
3967
|
-
static ɵprov:
|
|
3966
|
+
/** @nocollapse */
|
|
3967
|
+
static ɵprov: unknown;
|
|
3968
3968
|
}
|
|
3969
3969
|
|
|
3970
3970
|
/**
|
|
@@ -6993,10 +6993,8 @@ export declare interface ModelOptions {
|
|
|
6993
6993
|
*
|
|
6994
6994
|
* @developerPreview
|
|
6995
6995
|
*/
|
|
6996
|
-
export declare interface ModelSignal<T> extends WritableSignal<T>, OutputRef<T> {
|
|
6996
|
+
export declare interface ModelSignal<T> extends WritableSignal<T>, InputSignal<T>, OutputRef<T> {
|
|
6997
6997
|
[SIGNAL]: InputSignalNode<T, T>;
|
|
6998
|
-
[ɵINPUT_SIGNAL_BRAND_READ_TYPE]: T;
|
|
6999
|
-
[ɵINPUT_SIGNAL_BRAND_WRITE_TYPE]: T;
|
|
7000
6998
|
}
|
|
7001
6999
|
|
|
7002
7000
|
/**
|
|
@@ -8674,7 +8672,6 @@ declare const REACTIVE_TEMPLATE_CONSUMER = 23;
|
|
|
8674
8672
|
|
|
8675
8673
|
declare interface ReactiveLViewConsumer extends ReactiveNode {
|
|
8676
8674
|
lView: LView | null;
|
|
8677
|
-
slot: typeof REACTIVE_TEMPLATE_CONSUMER;
|
|
8678
8675
|
}
|
|
8679
8676
|
|
|
8680
8677
|
/**
|
|
@@ -13183,8 +13180,8 @@ export declare class ɵPendingTasks implements OnDestroy {
|
|
|
13183
13180
|
add(): number;
|
|
13184
13181
|
remove(taskId: number): void;
|
|
13185
13182
|
ngOnDestroy(): void;
|
|
13186
|
-
|
|
13187
|
-
static ɵprov:
|
|
13183
|
+
/** @nocollapse */
|
|
13184
|
+
static ɵprov: unknown;
|
|
13188
13185
|
}
|
|
13189
13186
|
|
|
13190
13187
|
|
|
@@ -13610,7 +13607,7 @@ export declare const enum ɵRuntimeErrorCode {
|
|
|
13610
13607
|
UNEXPECTED_ZONEJS_PRESENT_IN_ZONELESS_MODE = 914,
|
|
13611
13608
|
REQUIRED_INPUT_NO_VALUE = -950,
|
|
13612
13609
|
REQUIRED_QUERY_NO_VALUE = -951,
|
|
13613
|
-
REQUIRED_MODEL_NO_VALUE =
|
|
13610
|
+
REQUIRED_MODEL_NO_VALUE = 952,
|
|
13614
13611
|
OUTPUT_REF_DESTROYED = 953,
|
|
13615
13612
|
LOOP_TRACK_DUPLICATE_KEYS = -955,
|
|
13616
13613
|
LOOP_TRACK_RECREATE = -956,
|
|
@@ -14849,6 +14846,15 @@ export declare function ɵɵcontentQuerySignal<T>(directiveIndex: number, target
|
|
|
14849
14846
|
*/
|
|
14850
14847
|
export declare function ɵɵCopyDefinitionFeature(definition: ɵDirectiveDef<any> | ɵComponentDef<any>): void;
|
|
14851
14848
|
|
|
14849
|
+
/**
|
|
14850
|
+
* Declares an `@let` at a specific data slot.
|
|
14851
|
+
*
|
|
14852
|
+
* @param index Index at which to declare the `@let`.
|
|
14853
|
+
*
|
|
14854
|
+
* @codeGenApi
|
|
14855
|
+
*/
|
|
14856
|
+
export declare function ɵɵdeclareLet(index: number): typeof ɵɵdeclareLet;
|
|
14857
|
+
|
|
14852
14858
|
/**
|
|
14853
14859
|
* Creates runtime data structures for defer blocks.
|
|
14854
14860
|
*
|
|
@@ -16527,6 +16533,15 @@ export declare function ɵɵqueryAdvance(indexOffset?: number): void;
|
|
|
16527
16533
|
*/
|
|
16528
16534
|
export declare function ɵɵqueryRefresh(queryList: QueryList<any>): boolean;
|
|
16529
16535
|
|
|
16536
|
+
/**
|
|
16537
|
+
* Retrieves the value of a `@let` declaration defined within the same view.
|
|
16538
|
+
*
|
|
16539
|
+
* @param index Index of the declaration within the view.
|
|
16540
|
+
*
|
|
16541
|
+
* @codeGenApi
|
|
16542
|
+
*/
|
|
16543
|
+
export declare function ɵɵreadContextLet<T>(index: number): T;
|
|
16544
|
+
|
|
16530
16545
|
/**
|
|
16531
16546
|
* Retrieves a local reference from the current contextViewData.
|
|
16532
16547
|
*
|
|
@@ -16780,6 +16795,13 @@ export declare function ɵɵsetNgModuleScope(type: any, scope: NgModuleScopeInfo
|
|
|
16780
16795
|
*/
|
|
16781
16796
|
export declare function ɵɵStandaloneFeature(definition: ɵComponentDef<unknown>): void;
|
|
16782
16797
|
|
|
16798
|
+
/**
|
|
16799
|
+
* Instruction that stores the value of a `@let` declaration on the current view.
|
|
16800
|
+
*
|
|
16801
|
+
* @codeGenApi
|
|
16802
|
+
*/
|
|
16803
|
+
export declare function ɵɵstoreLet<T>(value: T): T;
|
|
16804
|
+
|
|
16783
16805
|
/**
|
|
16784
16806
|
* Update style bindings using an object literal on an element.
|
|
16785
16807
|
*
|
package/package.json
CHANGED
package/rxjs-interop/index.d.ts
CHANGED