@angular/core 16.0.1 → 16.1.0-next.0
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/compiler/compiler_facade_interface.mjs +1 -1
- package/esm2022/src/linker/template_ref.mjs +6 -3
- package/esm2022/src/metadata/directives.mjs +1 -1
- package/esm2022/src/render3/component.mjs +4 -1
- package/esm2022/src/render3/component_ref.mjs +14 -3
- package/esm2022/src/render3/definition.mjs +4 -1
- package/esm2022/src/render3/di.mjs +2 -2
- package/esm2022/src/render3/hooks.mjs +3 -3
- package/esm2022/src/render3/instructions/change_detection.mjs +37 -53
- package/esm2022/src/render3/instructions/shared.mjs +9 -2
- package/esm2022/src/render3/interfaces/definition.mjs +1 -1
- package/esm2022/src/render3/interfaces/public_definitions.mjs +1 -1
- package/esm2022/src/render3/interfaces/view.mjs +1 -1
- package/esm2022/src/render3/jit/directive.mjs +2 -1
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/logger.mjs +3 -3
- package/fesm2022/core.mjs +73 -61
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/rxjs-interop.mjs +1 -1
- package/fesm2022/testing.mjs +69 -61
- package/fesm2022/testing.mjs.map +1 -1
- package/index.d.ts +19 -6
- package/package.json +1 -1
- package/rxjs-interop/index.d.ts +1 -1
- package/schematics/ng-generate/standalone-migration/bundle.js +208 -59
- package/schematics/ng-generate/standalone-migration/bundle.js.map +4 -4
- package/testing/index.d.ts +1 -1
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v16.0.
|
|
2
|
+
* @license Angular v16.1.0-next.0
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -2853,6 +2853,10 @@ declare interface DirectiveDefinition<T> {
|
|
|
2853
2853
|
* Whether this directive/component is standalone.
|
|
2854
2854
|
*/
|
|
2855
2855
|
standalone?: boolean;
|
|
2856
|
+
/**
|
|
2857
|
+
* Whether this directive/component is signal-based.
|
|
2858
|
+
*/
|
|
2859
|
+
signals?: boolean;
|
|
2856
2860
|
}
|
|
2857
2861
|
|
|
2858
2862
|
declare type DirectiveDefList = (ɵDirectiveDef<any> | ɵComponentDef<any>)[];
|
|
@@ -5468,15 +5472,17 @@ declare const enum LViewFlags {
|
|
|
5468
5472
|
RefreshView = 1024,
|
|
5469
5473
|
/** Indicates that the view **or any of its ancestors** have an embedded view injector. */
|
|
5470
5474
|
HasEmbeddedViewInjector = 2048,
|
|
5475
|
+
/** Indicates that the view was created with `signals: true`. */
|
|
5476
|
+
SignalView = 4096,
|
|
5471
5477
|
/**
|
|
5472
5478
|
* Index of the current init phase on last 21 bits
|
|
5473
5479
|
*/
|
|
5474
|
-
IndexWithinInitPhaseIncrementer =
|
|
5480
|
+
IndexWithinInitPhaseIncrementer = 8192,
|
|
5475
5481
|
/**
|
|
5476
5482
|
* This is the count of the bits the 1 was shifted above (base 10)
|
|
5477
5483
|
*/
|
|
5478
|
-
IndexWithinInitPhaseShift =
|
|
5479
|
-
IndexWithinInitPhaseReset =
|
|
5484
|
+
IndexWithinInitPhaseShift = 13,
|
|
5485
|
+
IndexWithinInitPhaseReset = 8191
|
|
5480
5486
|
}
|
|
5481
5487
|
|
|
5482
5488
|
/**
|
|
@@ -6814,6 +6820,7 @@ declare interface R3DeclareDirectiveFacade {
|
|
|
6814
6820
|
usesOnChanges?: boolean;
|
|
6815
6821
|
isStandalone?: boolean;
|
|
6816
6822
|
hostDirectives?: R3HostDirectiveMetadataFacade[] | null;
|
|
6823
|
+
isSignal?: boolean;
|
|
6817
6824
|
}
|
|
6818
6825
|
|
|
6819
6826
|
declare interface R3DeclareFactoryFacade {
|
|
@@ -10439,6 +10446,8 @@ export declare interface ɵComponentDef<T> extends ɵDirectiveDef<T> {
|
|
|
10439
10446
|
};
|
|
10440
10447
|
/** Whether or not this component's ChangeDetectionStrategy is OnPush */
|
|
10441
10448
|
readonly onPush: boolean;
|
|
10449
|
+
/** Whether or not this component is signal-based. */
|
|
10450
|
+
readonly signals: boolean;
|
|
10442
10451
|
/**
|
|
10443
10452
|
* Registry of directives and components that may be found in this view.
|
|
10444
10453
|
*
|
|
@@ -10647,6 +10656,10 @@ export declare interface ɵDirectiveDef<T> {
|
|
|
10647
10656
|
* Whether this directive (or component) is standalone.
|
|
10648
10657
|
*/
|
|
10649
10658
|
readonly standalone: boolean;
|
|
10659
|
+
/**
|
|
10660
|
+
* Whether this directive (or component) uses the signals authoring experience.
|
|
10661
|
+
*/
|
|
10662
|
+
readonly signals: boolean;
|
|
10650
10663
|
/**
|
|
10651
10664
|
* Factory function used to create a new directive instance. Will be null initially.
|
|
10652
10665
|
* Populated when the factory is first requested by directive instantiation logic.
|
|
@@ -12458,7 +12471,7 @@ export declare type ɵɵComponentDeclaration<T, Selector extends String, ExportA
|
|
|
12458
12471
|
};
|
|
12459
12472
|
}, OutputMap extends {
|
|
12460
12473
|
[key: string]: string;
|
|
12461
|
-
}, QueryFields extends string[], NgContentSelectors extends string[], IsStandalone extends boolean = false, HostDirectives = never> = unknown;
|
|
12474
|
+
}, QueryFields extends string[], NgContentSelectors extends string[], IsStandalone extends boolean = false, HostDirectives = never, IsSignal extends boolean = false> = unknown;
|
|
12462
12475
|
|
|
12463
12476
|
/**
|
|
12464
12477
|
* Registers a QueryList, associated with a content query, for later refresh (part of a view
|
|
@@ -12636,7 +12649,7 @@ export declare type ɵɵDirectiveDeclaration<T, Selector extends string, ExportA
|
|
|
12636
12649
|
};
|
|
12637
12650
|
}, OutputMap extends {
|
|
12638
12651
|
[key: string]: string;
|
|
12639
|
-
}, QueryFields extends string[], NgContentSelectors extends never = never, IsStandalone extends boolean = false, HostDirectives = never> = unknown;
|
|
12652
|
+
}, QueryFields extends string[], NgContentSelectors extends never = never, IsStandalone extends boolean = false, HostDirectives = never, IsSignal extends boolean = false> = unknown;
|
|
12640
12653
|
|
|
12641
12654
|
/**
|
|
12642
12655
|
* Returns the value associated to the given token from the injectors.
|
package/package.json
CHANGED
package/rxjs-interop/index.d.ts
CHANGED