@angular/compiler 14.2.0-next.1 → 15.0.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/esm2020/src/compiler_facade_interface.mjs +1 -1
- package/esm2020/src/expression_parser/parser.mjs +10 -2
- package/esm2020/src/jit_compiler_facade.mjs +23 -1
- package/esm2020/src/render3/partial/api.mjs +1 -1
- package/esm2020/src/render3/partial/class_metadata.mjs +1 -1
- package/esm2020/src/render3/partial/directive.mjs +29 -4
- package/esm2020/src/render3/partial/factory.mjs +1 -1
- package/esm2020/src/render3/partial/injectable.mjs +1 -1
- package/esm2020/src/render3/partial/injector.mjs +1 -1
- package/esm2020/src/render3/partial/ng_module.mjs +1 -1
- package/esm2020/src/render3/partial/pipe.mjs +1 -1
- package/esm2020/src/render3/r3_identifiers.mjs +2 -1
- package/esm2020/src/render3/view/api.mjs +1 -1
- package/esm2020/src/render3/view/compiler.mjs +72 -5
- package/esm2020/src/render3/view/t2_binder.mjs +2 -2
- package/esm2020/src/shadow_css.mjs +1 -1
- package/esm2020/src/version.mjs +1 -1
- package/fesm2015/compiler.mjs +142 -16
- package/fesm2015/compiler.mjs.map +1 -1
- package/fesm2015/testing.mjs +1 -1
- package/fesm2020/compiler.mjs +138 -15
- package/fesm2020/compiler.mjs.map +1 -1
- package/fesm2020/testing.mjs +1 -1
- package/index.d.ts +39 -2
- package/package.json +2 -2
- package/testing/index.d.ts +1 -1
package/fesm2020/testing.mjs
CHANGED
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular
|
|
2
|
+
* @license Angular v15.0.0-next.0
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -3069,6 +3069,10 @@ export declare interface R3DeclareDirectiveMetadata extends R3PartialDeclaration
|
|
|
3069
3069
|
* Whether the directive is standalone. Defaults to false.
|
|
3070
3070
|
*/
|
|
3071
3071
|
isStandalone?: boolean;
|
|
3072
|
+
/**
|
|
3073
|
+
* Additional directives applied to the directive host.
|
|
3074
|
+
*/
|
|
3075
|
+
hostDirectives?: R3DeclareHostDirectiveMetadata[];
|
|
3072
3076
|
}
|
|
3073
3077
|
|
|
3074
3078
|
/**
|
|
@@ -3094,6 +3098,16 @@ export declare interface R3DeclareFactoryMetadata extends R3PartialDeclaration {
|
|
|
3094
3098
|
target: FactoryTarget_2;
|
|
3095
3099
|
}
|
|
3096
3100
|
|
|
3101
|
+
/**
|
|
3102
|
+
* Describes the shape of the object literal that can be
|
|
3103
|
+
* passed in as a part of the `hostDirectives` array.
|
|
3104
|
+
*/
|
|
3105
|
+
export declare interface R3DeclareHostDirectiveMetadata {
|
|
3106
|
+
directive: outputAst.Expression;
|
|
3107
|
+
inputs?: string[];
|
|
3108
|
+
outputs?: string[];
|
|
3109
|
+
}
|
|
3110
|
+
|
|
3097
3111
|
/**
|
|
3098
3112
|
* Describes the shape of the object that the `ɵɵngDeclareInjectable()` function accepts.
|
|
3099
3113
|
*
|
|
@@ -3423,6 +3437,10 @@ export declare interface R3DirectiveMetadata {
|
|
|
3423
3437
|
* Whether or not the component or directive is standalone.
|
|
3424
3438
|
*/
|
|
3425
3439
|
isStandalone: boolean;
|
|
3440
|
+
/**
|
|
3441
|
+
* Additional directives applied to the directive host.
|
|
3442
|
+
*/
|
|
3443
|
+
hostDirectives: R3HostDirectiveMetadata[] | null;
|
|
3426
3444
|
}
|
|
3427
3445
|
|
|
3428
3446
|
declare interface R3ExpressionFactoryMetadata extends R3ConstructorFactoryMetadata {
|
|
@@ -3436,6 +3454,24 @@ declare enum R3FactoryDelegateType {
|
|
|
3436
3454
|
|
|
3437
3455
|
export declare type R3FactoryMetadata = R3ConstructorFactoryMetadata | R3DelegatedFnOrClassMetadata | R3ExpressionFactoryMetadata;
|
|
3438
3456
|
|
|
3457
|
+
/**
|
|
3458
|
+
* Information needed to compile a host directive for the render3 runtime.
|
|
3459
|
+
*/
|
|
3460
|
+
export declare interface R3HostDirectiveMetadata {
|
|
3461
|
+
/** An expression representing the host directive class itself. */
|
|
3462
|
+
directive: R3Reference;
|
|
3463
|
+
/** Whether the expression referring to the host directive is a forward reference. */
|
|
3464
|
+
isForwardReference: boolean;
|
|
3465
|
+
/** Inputs from the host directive that will be exposed on the host. */
|
|
3466
|
+
inputs: {
|
|
3467
|
+
[publicName: string]: string;
|
|
3468
|
+
} | null;
|
|
3469
|
+
/** Outputs from the host directive that will be exposed on the host. */
|
|
3470
|
+
outputs: {
|
|
3471
|
+
[publicName: string]: string;
|
|
3472
|
+
} | null;
|
|
3473
|
+
}
|
|
3474
|
+
|
|
3439
3475
|
/**
|
|
3440
3476
|
* Mappings indicating how the class interacts with its
|
|
3441
3477
|
* host element (host bindings, listeners, etc).
|
|
@@ -3629,6 +3665,7 @@ export declare class R3Identifiers {
|
|
|
3629
3665
|
static CopyDefinitionFeature: outputAst.ExternalReference;
|
|
3630
3666
|
static StandaloneFeature: outputAst.ExternalReference;
|
|
3631
3667
|
static ProvidersFeature: outputAst.ExternalReference;
|
|
3668
|
+
static HostDirectivesFeature: outputAst.ExternalReference;
|
|
3632
3669
|
static listener: outputAst.ExternalReference;
|
|
3633
3670
|
static getInheritedFactory: outputAst.ExternalReference;
|
|
3634
3671
|
static sanitizeHtml: outputAst.ExternalReference;
|
|
@@ -3895,7 +3932,7 @@ export declare enum R3SelectorScopeMode {
|
|
|
3895
3932
|
*/
|
|
3896
3933
|
export declare class R3TargetBinder<DirectiveT extends DirectiveMeta> implements TargetBinder<DirectiveT> {
|
|
3897
3934
|
private directiveMatcher;
|
|
3898
|
-
constructor(directiveMatcher: SelectorMatcher<DirectiveT>);
|
|
3935
|
+
constructor(directiveMatcher: SelectorMatcher<DirectiveT[]>);
|
|
3899
3936
|
/**
|
|
3900
3937
|
* Perform a binding operation on the given `Target` and return a `BoundTarget` which contains
|
|
3901
3938
|
* metadata about the types referenced in the template.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/compiler",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "15.0.0-next.0",
|
|
4
4
|
"description": "Angular - the compiler library",
|
|
5
5
|
"author": "angular",
|
|
6
6
|
"license": "MIT",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"tslib": "^2.3.0"
|
|
12
12
|
},
|
|
13
13
|
"peerDependencies": {
|
|
14
|
-
"@angular/core": "
|
|
14
|
+
"@angular/core": "15.0.0-next.0"
|
|
15
15
|
},
|
|
16
16
|
"peerDependenciesMeta": {
|
|
17
17
|
"@angular/core": {
|
package/testing/index.d.ts
CHANGED