@angular/compiler 14.0.0-next.7 → 14.0.0-next.8
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.mjs +2 -2
- package/esm2020/src/jit_compiler_facade.mjs +3 -3
- package/esm2020/src/ml_parser/lexer.mjs +2 -2
- package/esm2020/src/parse_util.mjs +2 -2
- package/esm2020/src/render3/partial/class_metadata.mjs +1 -1
- package/esm2020/src/render3/partial/directive.mjs +1 -1
- 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 +3 -1
- package/esm2020/src/render3/r3_module_compiler.mjs +45 -8
- package/esm2020/src/render3/view/style_parser.mjs +2 -2
- package/esm2020/src/render3/view/styling_builder.mjs +3 -3
- package/esm2020/src/render3/view/template.mjs +21 -8
- package/esm2020/src/selector.mjs +3 -3
- package/esm2020/src/shadow_css.mjs +2 -2
- package/esm2020/src/template_parser/binding_parser.mjs +2 -2
- package/esm2020/src/version.mjs +1 -1
- package/fesm2015/compiler.mjs +86 -34
- package/fesm2015/compiler.mjs.map +1 -1
- package/fesm2015/testing.mjs +1 -1
- package/fesm2020/compiler.mjs +86 -34
- package/fesm2020/compiler.mjs.map +1 -1
- package/fesm2020/testing.mjs +1 -1
- package/package.json +2 -2
- package/src/compiler.d.ts +1 -1
- package/src/render3/r3_identifiers.d.ts +2 -0
- package/src/render3/r3_module_compiler.d.ts +30 -4
- package/src/render3/view/template.d.ts +1 -1
package/fesm2020/testing.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/compiler",
|
|
3
|
-
"version": "14.0.0-next.
|
|
3
|
+
"version": "14.0.0-next.8",
|
|
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.0.0-next.
|
|
14
|
+
"@angular/core": "14.0.0-next.8"
|
|
15
15
|
},
|
|
16
16
|
"peerDependenciesMeta": {
|
|
17
17
|
"@angular/core": {
|
package/src/compiler.d.ts
CHANGED
|
@@ -58,7 +58,7 @@ export * from './render3/view/t2_binder';
|
|
|
58
58
|
export { Identifiers as R3Identifiers } from './render3/r3_identifiers';
|
|
59
59
|
export { R3ClassMetadata, CompileClassMetadataFn, compileClassMetadata } from './render3/r3_class_metadata_compiler';
|
|
60
60
|
export { compileFactoryFunction, R3DependencyMetadata, R3FactoryMetadata, FactoryTarget } from './render3/r3_factory';
|
|
61
|
-
export { compileNgModule, R3NgModuleMetadata } from './render3/r3_module_compiler';
|
|
61
|
+
export { compileNgModule, R3NgModuleMetadata, R3SelectorScopeMode } from './render3/r3_module_compiler';
|
|
62
62
|
export { compileInjector, R3InjectorMetadata } from './render3/r3_injector_compiler';
|
|
63
63
|
export { compilePipeFromMetadata, R3PipeMetadata } from './render3/r3_pipe_compiler';
|
|
64
64
|
export { makeBindingParser, ParsedTemplate, parseTemplate, ParseTemplateOptions } from './render3/view/template';
|
|
@@ -65,6 +65,7 @@ export declare class Identifiers {
|
|
|
65
65
|
static stylePropInterpolate8: o.ExternalReference;
|
|
66
66
|
static stylePropInterpolateV: o.ExternalReference;
|
|
67
67
|
static nextContext: o.ExternalReference;
|
|
68
|
+
static resetView: o.ExternalReference;
|
|
68
69
|
static templateCreate: o.ExternalReference;
|
|
69
70
|
static text: o.ExternalReference;
|
|
70
71
|
static enableBindings: o.ExternalReference;
|
|
@@ -154,6 +155,7 @@ export declare class Identifiers {
|
|
|
154
155
|
static defineNgModule: o.ExternalReference;
|
|
155
156
|
static declareNgModule: o.ExternalReference;
|
|
156
157
|
static setNgModuleScope: o.ExternalReference;
|
|
158
|
+
static registerNgModuleType: o.ExternalReference;
|
|
157
159
|
static PipeDeclaration: o.ExternalReference;
|
|
158
160
|
static definePipe: o.ExternalReference;
|
|
159
161
|
static declarePipe: o.ExternalReference;
|
|
@@ -8,6 +8,34 @@
|
|
|
8
8
|
import { R3DeclareNgModuleFacade } from '../compiler_facade_interface';
|
|
9
9
|
import * as o from '../output/output_ast';
|
|
10
10
|
import { R3CompiledExpression, R3Reference } from './util';
|
|
11
|
+
/**
|
|
12
|
+
* How the selector scope of an NgModule (its declarations, imports, and exports) should be emitted
|
|
13
|
+
* as a part of the NgModule definition.
|
|
14
|
+
*/
|
|
15
|
+
export declare enum R3SelectorScopeMode {
|
|
16
|
+
/**
|
|
17
|
+
* Emit the declarations inline into the module definition.
|
|
18
|
+
*
|
|
19
|
+
* This option is useful in certain contexts where it's known that JIT support is required. The
|
|
20
|
+
* tradeoff here is that this emit style prevents directives and pipes from being tree-shaken if
|
|
21
|
+
* they are unused, but the NgModule is used.
|
|
22
|
+
*/
|
|
23
|
+
Inline = 0,
|
|
24
|
+
/**
|
|
25
|
+
* Emit the declarations using a side effectful function call, `ɵɵsetNgModuleScope`, that is
|
|
26
|
+
* guarded with the `ngJitMode` flag.
|
|
27
|
+
*
|
|
28
|
+
* This form of emit supports JIT and can be optimized away if the `ngJitMode` flag is set to
|
|
29
|
+
* false, which allows unused directives and pipes to be tree-shaken.
|
|
30
|
+
*/
|
|
31
|
+
SideEffect = 1,
|
|
32
|
+
/**
|
|
33
|
+
* Don't generate selector scopes at all.
|
|
34
|
+
*
|
|
35
|
+
* This is useful for contexts where JIT support is known to be unnecessary.
|
|
36
|
+
*/
|
|
37
|
+
Omit = 2
|
|
38
|
+
}
|
|
11
39
|
/**
|
|
12
40
|
* Metadata required by the module compiler to generate a module def (`ɵmod`) for a type.
|
|
13
41
|
*/
|
|
@@ -49,11 +77,9 @@ export interface R3NgModuleMetadata {
|
|
|
49
77
|
*/
|
|
50
78
|
exports: R3Reference[];
|
|
51
79
|
/**
|
|
52
|
-
*
|
|
53
|
-
* module definition, or to generate additional statements which patch them on. Inline emission
|
|
54
|
-
* does not allow components to be tree-shaken, but is useful for JIT mode.
|
|
80
|
+
* How to emit the selector scope values (declarations, imports, exports).
|
|
55
81
|
*/
|
|
56
|
-
|
|
82
|
+
selectorScopeMode: R3SelectorScopeMode;
|
|
57
83
|
/**
|
|
58
84
|
* Whether to generate closure wrappers for bootstrap, declarations, imports, and exports.
|
|
59
85
|
*/
|
|
@@ -254,7 +254,7 @@ export declare class BindingScope implements LocalResolver {
|
|
|
254
254
|
generateSharedContextVar(retrievalLevel: number): void;
|
|
255
255
|
getComponentProperty(name: string): o.Expression;
|
|
256
256
|
maybeRestoreView(): void;
|
|
257
|
-
restoreViewStatement(): o.Statement
|
|
257
|
+
restoreViewStatement(): o.Statement | null;
|
|
258
258
|
viewSnapshotStatements(): o.Statement[];
|
|
259
259
|
isListenerScope(): boolean | null;
|
|
260
260
|
variableDeclarations(): o.Statement[];
|