@angular/core 16.1.0-next.1 → 16.1.0-next.2
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/core_render3_private_export.mjs +2 -2
- package/esm2022/src/di/forward_ref.mjs +29 -2
- package/esm2022/src/interface/lifecycle_hooks.mjs +1 -1
- package/esm2022/src/render3/di.mjs +5 -2
- package/esm2022/src/render3/errors.mjs +20 -2
- package/esm2022/src/render3/features/host_directives_feature.mjs +2 -2
- package/esm2022/src/render3/features/input_transforms_feature.mjs +13 -0
- package/esm2022/src/render3/index.mjs +3 -2
- package/esm2022/src/render3/jit/environment.mjs +2 -1
- package/esm2022/src/render3/jit/module.mjs +11 -11
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/logger.mjs +3 -3
- package/fesm2022/core.mjs +72 -17
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/rxjs-interop.mjs +1 -1
- package/fesm2022/testing.mjs +71 -16
- package/fesm2022/testing.mjs.map +1 -1
- package/index.d.ts +44 -5
- package/package.json +1 -1
- package/rxjs-interop/index.d.ts +1 -1
- package/schematics/ng-generate/standalone-migration/bundle.js +362 -60
- 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.1.0-next.
|
|
2
|
+
* @license Angular v16.1.0-next.2
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -25,7 +25,8 @@ export declare interface AbstractType<T> extends Function {
|
|
|
25
25
|
/**
|
|
26
26
|
* @description
|
|
27
27
|
* A lifecycle hook that is called after the default change detector has
|
|
28
|
-
* completed checking all content of a directive.
|
|
28
|
+
* completed checking all content of a directive. It will run after the content
|
|
29
|
+
* has been checked and most of the time it's during a change detection cycle.
|
|
29
30
|
*
|
|
30
31
|
* @see `AfterViewChecked`
|
|
31
32
|
* @see [Lifecycle hooks guide](guide/lifecycle-hooks)
|
|
@@ -50,7 +51,7 @@ export declare interface AfterContentChecked {
|
|
|
50
51
|
/**
|
|
51
52
|
* @description
|
|
52
53
|
* A lifecycle hook that is called after Angular has fully initialized
|
|
53
|
-
* all content of a directive.
|
|
54
|
+
* all content of a directive. It will run only once when the projected content is initialized.
|
|
54
55
|
* Define an `ngAfterContentInit()` method to handle any additional initialization tasks.
|
|
55
56
|
*
|
|
56
57
|
* @see `OnInit`
|
|
@@ -3428,9 +3429,36 @@ declare const FLAGS = 2;
|
|
|
3428
3429
|
* DI is declared, but not yet defined. It is also used when the `token` which we use when creating
|
|
3429
3430
|
* a query is not yet defined.
|
|
3430
3431
|
*
|
|
3432
|
+
* `forwardRef` is also used to break circularities in standalone components imports.
|
|
3433
|
+
*
|
|
3431
3434
|
* @usageNotes
|
|
3432
|
-
* ###
|
|
3435
|
+
* ### Circular dependency example
|
|
3433
3436
|
* {@example core/di/ts/forward_ref/forward_ref_spec.ts region='forward_ref'}
|
|
3437
|
+
*
|
|
3438
|
+
* ### Circular standalone reference import example
|
|
3439
|
+
* ```ts
|
|
3440
|
+
* @Component({
|
|
3441
|
+
* standalone: true,
|
|
3442
|
+
* imports: [ChildComponent],
|
|
3443
|
+
* selector: 'app-parent',
|
|
3444
|
+
* template: `<app-child [hideParent]="hideParent"></app-child>`,
|
|
3445
|
+
* })
|
|
3446
|
+
* export class ParentComponent {
|
|
3447
|
+
* @Input() hideParent: boolean;
|
|
3448
|
+
* }
|
|
3449
|
+
*
|
|
3450
|
+
*
|
|
3451
|
+
* @Component({
|
|
3452
|
+
* standalone: true,
|
|
3453
|
+
* imports: [CommonModule, forwardRef(() => ParentComponent)],
|
|
3454
|
+
* selector: 'app-child',
|
|
3455
|
+
* template: `<app-parent *ngIf="!hideParent"></app-parent>`,
|
|
3456
|
+
* })
|
|
3457
|
+
* export class ChildComponent {
|
|
3458
|
+
* @Input() hideParent: boolean;
|
|
3459
|
+
* }
|
|
3460
|
+
* ```
|
|
3461
|
+
*
|
|
3434
3462
|
* @publicApi
|
|
3435
3463
|
*/
|
|
3436
3464
|
export declare function forwardRef(forwardRefFn: ForwardRefFn): Type<any>;
|
|
@@ -4662,6 +4690,8 @@ export declare interface InputDecorator {
|
|
|
4662
4690
|
new (arg?: string | Input): any;
|
|
4663
4691
|
}
|
|
4664
4692
|
|
|
4693
|
+
declare type InputTransformFunction = any;
|
|
4694
|
+
|
|
4665
4695
|
/**
|
|
4666
4696
|
* See `TNode.insertBeforeIndex`
|
|
4667
4697
|
*/
|
|
@@ -6796,7 +6826,11 @@ declare interface R3DeclareDirectiveFacade {
|
|
|
6796
6826
|
selector?: string;
|
|
6797
6827
|
type: Type_2;
|
|
6798
6828
|
inputs?: {
|
|
6799
|
-
[classPropertyName: string]: string | [
|
|
6829
|
+
[classPropertyName: string]: string | [
|
|
6830
|
+
bindingPropertyName: string,
|
|
6831
|
+
classPropertyName: string,
|
|
6832
|
+
transformFunction?: InputTransformFunction
|
|
6833
|
+
];
|
|
6800
6834
|
};
|
|
6801
6835
|
outputs?: {
|
|
6802
6836
|
[classPropertyName: string]: string;
|
|
@@ -13075,6 +13109,11 @@ export declare interface ɵɵInjectorDef<T> {
|
|
|
13075
13109
|
imports: (InjectorType<any> | InjectorTypeWithProviders<any>)[];
|
|
13076
13110
|
}
|
|
13077
13111
|
|
|
13112
|
+
/**
|
|
13113
|
+
* @codeGenApi
|
|
13114
|
+
*/
|
|
13115
|
+
export declare function ɵɵInputTransformsFeature(definition: ɵDirectiveDef<any> | ɵComponentDef<any>): void;
|
|
13116
|
+
|
|
13078
13117
|
/**
|
|
13079
13118
|
* Throws an error indicating that a factory function could not be generated by the compiler for a
|
|
13080
13119
|
* particular class.
|
package/package.json
CHANGED
package/rxjs-interop/index.d.ts
CHANGED