@angular/compiler-cli 13.2.0 → 14.0.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/bundles/{chunk-QBU7RUKB.js → chunk-2XJJHADR.js} +36 -27
- package/bundles/chunk-2XJJHADR.js.map +6 -0
- package/bundles/{chunk-ADHVDA4A.js → chunk-3WNAIXKA.js} +7 -7
- package/bundles/{chunk-ADHVDA4A.js.map → chunk-3WNAIXKA.js.map} +1 -1
- package/bundles/{chunk-XHMJ6POQ.js → chunk-4EUDG74G.js} +71 -71
- package/bundles/{chunk-XHMJ6POQ.js.map → chunk-4EUDG74G.js.map} +1 -1
- package/bundles/{chunk-UESD6FVI.js → chunk-4N4Y5TPT.js} +36 -33
- package/bundles/chunk-4N4Y5TPT.js.map +6 -0
- package/bundles/{chunk-QDWL7SZJ.js → chunk-BPCUCINV.js} +2 -2
- package/bundles/{chunk-QDWL7SZJ.js.map → chunk-BPCUCINV.js.map} +0 -0
- package/bundles/{chunk-GLCRIILX.js → chunk-J6CW3T62.js} +5 -5
- package/bundles/{chunk-GLCRIILX.js.map → chunk-J6CW3T62.js.map} +0 -0
- package/bundles/{chunk-XDGI7TS4.js → chunk-JL6TC6CB.js} +181 -156
- package/bundles/chunk-JL6TC6CB.js.map +6 -0
- package/bundles/{chunk-5CHRTEXL.js → chunk-JR2JHPEZ.js} +40 -40
- package/bundles/{chunk-5CHRTEXL.js.map → chunk-JR2JHPEZ.js.map} +1 -1
- package/bundles/{chunk-SKBLJA43.js → chunk-JTYUTYS2.js} +3 -3
- package/bundles/{chunk-SKBLJA43.js.map → chunk-JTYUTYS2.js.map} +0 -0
- package/bundles/{chunk-O4XVCXRT.js → chunk-LL4S3DRM.js} +4 -4
- package/bundles/{chunk-O4XVCXRT.js.map → chunk-LL4S3DRM.js.map} +0 -0
- package/bundles/{chunk-LMCFGUUV.js → chunk-N4EP6MZR.js} +1777 -1547
- package/bundles/chunk-N4EP6MZR.js.map +6 -0
- package/bundles/{chunk-676MI6WZ.js → chunk-QZBA4KSX.js} +11 -11
- package/bundles/{chunk-676MI6WZ.js.map → chunk-QZBA4KSX.js.map} +1 -1
- package/bundles/{chunk-A5PL3TE6.js → chunk-RNVIUKDY.js} +6 -6
- package/bundles/{chunk-A5PL3TE6.js.map → chunk-RNVIUKDY.js.map} +0 -0
- package/bundles/{chunk-OFPFDCGQ.js → chunk-VOXD467J.js} +5 -5
- package/bundles/{chunk-OFPFDCGQ.js.map → chunk-VOXD467J.js.map} +0 -0
- package/bundles/{chunk-7PY7XEFH.js → chunk-XXMNTCYN.js} +6 -6
- package/bundles/{chunk-7PY7XEFH.js.map → chunk-XXMNTCYN.js.map} +0 -0
- package/bundles/index.js +12 -12
- package/bundles/linker/babel/index.js +12 -12
- package/bundles/linker/babel/index.js.map +1 -1
- package/bundles/linker/index.js +4 -4
- package/bundles/ngcc/index.js +12 -12
- package/bundles/ngcc/main-ngcc.js +13 -13
- package/bundles/ngcc/main-ngcc.js.map +1 -1
- package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js +13 -13
- package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js.map +1 -1
- package/bundles/ngcc/src/locking/lock_file_with_child_process/ngcc_lock_unlocker.js +4 -4
- package/bundles/private/bazel.js +1 -1
- package/bundles/private/localize.js +3 -3
- package/bundles/private/migrations.js +5 -5
- package/bundles/private/tooling.js +2 -2
- package/bundles/src/bin/ng_xi18n.js +10 -10
- package/bundles/src/bin/ngc.js +8 -8
- package/bundles_metadata.json +1 -1
- package/ngcc/src/packages/build_marker.d.ts +1 -1
- package/package.json +2 -3
- package/src/ngtsc/annotations/common/index.d.ts +16 -0
- package/src/ngtsc/annotations/{src → common/src}/api.d.ts +1 -1
- package/src/ngtsc/annotations/common/src/di.d.ts +38 -0
- package/src/ngtsc/annotations/{src → common/src}/diagnostics.d.ts +15 -7
- package/src/ngtsc/annotations/common/src/evaluation.d.ts +18 -0
- package/src/ngtsc/annotations/{src → common/src}/factory.d.ts +2 -2
- package/src/ngtsc/annotations/{src → common/src}/metadata.d.ts +2 -2
- package/src/ngtsc/annotations/{src → common/src}/references_registry.d.ts +3 -3
- package/src/ngtsc/annotations/{src → common/src}/util.d.ts +7 -43
- package/src/ngtsc/annotations/component/index.d.ts +9 -0
- package/src/ngtsc/annotations/component/src/diagnostics.d.ts +20 -0
- package/src/ngtsc/annotations/component/src/handler.d.ts +92 -0
- package/src/ngtsc/annotations/component/src/metadata.d.ts +61 -0
- package/src/ngtsc/annotations/component/src/resources.d.ts +123 -0
- package/src/ngtsc/annotations/component/src/scope.d.ts +20 -0
- package/src/ngtsc/annotations/component/src/symbol.d.ts +20 -0
- package/src/ngtsc/annotations/component/src/util.d.ts +24 -0
- package/src/ngtsc/annotations/directive/index.d.ts +11 -0
- package/src/ngtsc/annotations/directive/src/handler.d.ts +59 -0
- package/src/ngtsc/annotations/directive/src/shared.d.ts +30 -0
- package/src/ngtsc/annotations/directive/src/symbol.d.ts +27 -0
- package/src/ngtsc/annotations/index.d.ts +4 -6
- package/src/ngtsc/annotations/ng_module/index.d.ts +9 -0
- package/src/ngtsc/annotations/{src/ng_module.d.ts → ng_module/src/handler.d.ts} +11 -11
- package/src/ngtsc/core/api/src/options.d.ts +0 -4
- package/src/ngtsc/diagnostics/src/error_code.d.ts +17 -0
- package/src/ngtsc/imports/src/emitter.d.ts +16 -2
- package/src/ngtsc/indexer/src/api.d.ts +1 -0
- package/src/ngtsc/indexer/src/template.d.ts +4 -1
- package/src/ngtsc/metadata/src/api.d.ts +5 -0
- package/bundles/chunk-LMCFGUUV.js.map +0 -6
- package/bundles/chunk-QBU7RUKB.js.map +0 -6
- package/bundles/chunk-UESD6FVI.js.map +0 -6
- package/bundles/chunk-XDGI7TS4.js.map +0 -6
- package/src/ngtsc/annotations/src/component.d.ts +0 -246
- package/src/ngtsc/annotations/src/directive.d.ts +0 -99
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.io/license
|
|
7
|
-
*/
|
|
8
|
-
/// <amd-module name="@angular/compiler-cli/src/ngtsc/annotations/src/directive" />
|
|
9
|
-
import { ConstantPool, ParsedHostBindings, R3ClassMetadata, R3DirectiveMetadata, R3QueryMetadata } from '@angular/compiler';
|
|
10
|
-
import ts from 'typescript';
|
|
11
|
-
import { Reference } from '../../imports';
|
|
12
|
-
import { SemanticDepGraphUpdater, SemanticSymbol, SemanticTypeParameter } from '../../incremental/semantic_graph';
|
|
13
|
-
import { ClassPropertyMapping, DirectiveTypeCheckMeta, InjectableClassRegistry, MetadataReader, MetadataRegistry } from '../../metadata';
|
|
14
|
-
import { PartialEvaluator } from '../../partial_evaluator';
|
|
15
|
-
import { PerfRecorder } from '../../perf';
|
|
16
|
-
import { ClassDeclaration, ClassMember, Decorator, ReflectionHost } from '../../reflection';
|
|
17
|
-
import { LocalModuleScopeRegistry } from '../../scope';
|
|
18
|
-
import { AnalysisOutput, CompileResult, DecoratorHandler, DetectResult, HandlerFlags, HandlerPrecedence, ResolveResult } from '../../transform';
|
|
19
|
-
export interface DirectiveHandlerData {
|
|
20
|
-
baseClass: Reference<ClassDeclaration> | 'dynamic' | null;
|
|
21
|
-
typeCheckMeta: DirectiveTypeCheckMeta;
|
|
22
|
-
meta: R3DirectiveMetadata;
|
|
23
|
-
classMetadata: R3ClassMetadata | null;
|
|
24
|
-
providersRequiringFactory: Set<Reference<ClassDeclaration>> | null;
|
|
25
|
-
inputs: ClassPropertyMapping;
|
|
26
|
-
outputs: ClassPropertyMapping;
|
|
27
|
-
isPoisoned: boolean;
|
|
28
|
-
isStructural: boolean;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Represents an Angular directive. Components are represented by `ComponentSymbol`, which inherits
|
|
32
|
-
* from this symbol.
|
|
33
|
-
*/
|
|
34
|
-
export declare class DirectiveSymbol extends SemanticSymbol {
|
|
35
|
-
readonly selector: string | null;
|
|
36
|
-
readonly inputs: ClassPropertyMapping;
|
|
37
|
-
readonly outputs: ClassPropertyMapping;
|
|
38
|
-
readonly exportAs: string[] | null;
|
|
39
|
-
readonly typeCheckMeta: DirectiveTypeCheckMeta;
|
|
40
|
-
readonly typeParameters: SemanticTypeParameter[] | null;
|
|
41
|
-
baseClass: SemanticSymbol | null;
|
|
42
|
-
constructor(decl: ClassDeclaration, selector: string | null, inputs: ClassPropertyMapping, outputs: ClassPropertyMapping, exportAs: string[] | null, typeCheckMeta: DirectiveTypeCheckMeta, typeParameters: SemanticTypeParameter[] | null);
|
|
43
|
-
isPublicApiAffected(previousSymbol: SemanticSymbol): boolean;
|
|
44
|
-
isTypeCheckApiAffected(previousSymbol: SemanticSymbol): boolean;
|
|
45
|
-
}
|
|
46
|
-
export declare class DirectiveDecoratorHandler implements DecoratorHandler<Decorator | null, DirectiveHandlerData, DirectiveSymbol, unknown> {
|
|
47
|
-
private reflector;
|
|
48
|
-
private evaluator;
|
|
49
|
-
private metaRegistry;
|
|
50
|
-
private scopeRegistry;
|
|
51
|
-
private metaReader;
|
|
52
|
-
private injectableRegistry;
|
|
53
|
-
private isCore;
|
|
54
|
-
private semanticDepGraphUpdater;
|
|
55
|
-
private annotateForClosureCompiler;
|
|
56
|
-
private compileUndecoratedClassesWithAngularFeatures;
|
|
57
|
-
private perf;
|
|
58
|
-
constructor(reflector: ReflectionHost, evaluator: PartialEvaluator, metaRegistry: MetadataRegistry, scopeRegistry: LocalModuleScopeRegistry, metaReader: MetadataReader, injectableRegistry: InjectableClassRegistry, isCore: boolean, semanticDepGraphUpdater: SemanticDepGraphUpdater | null, annotateForClosureCompiler: boolean, compileUndecoratedClassesWithAngularFeatures: boolean, perf: PerfRecorder);
|
|
59
|
-
readonly precedence = HandlerPrecedence.PRIMARY;
|
|
60
|
-
readonly name: string;
|
|
61
|
-
detect(node: ClassDeclaration, decorators: Decorator[] | null): DetectResult<Decorator | null> | undefined;
|
|
62
|
-
analyze(node: ClassDeclaration, decorator: Readonly<Decorator | null>, flags?: HandlerFlags): AnalysisOutput<DirectiveHandlerData>;
|
|
63
|
-
symbol(node: ClassDeclaration, analysis: Readonly<DirectiveHandlerData>): DirectiveSymbol;
|
|
64
|
-
register(node: ClassDeclaration, analysis: Readonly<DirectiveHandlerData>): void;
|
|
65
|
-
resolve(node: ClassDeclaration, analysis: DirectiveHandlerData, symbol: DirectiveSymbol): ResolveResult<unknown>;
|
|
66
|
-
compileFull(node: ClassDeclaration, analysis: Readonly<DirectiveHandlerData>, resolution: Readonly<unknown>, pool: ConstantPool): CompileResult[];
|
|
67
|
-
compilePartial(node: ClassDeclaration, analysis: Readonly<DirectiveHandlerData>, resolution: Readonly<unknown>): CompileResult[];
|
|
68
|
-
/**
|
|
69
|
-
* Checks if a given class uses Angular features and returns the TypeScript node
|
|
70
|
-
* that indicated the usage. Classes are considered using Angular features if they
|
|
71
|
-
* contain class members that are either decorated with a known Angular decorator,
|
|
72
|
-
* or if they correspond to a known Angular lifecycle hook.
|
|
73
|
-
*/
|
|
74
|
-
private findClassFieldWithAngularFeatures;
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Helper function to extract metadata from a `Directive` or `Component`. `Directive`s without a
|
|
78
|
-
* selector are allowed to be used for abstract base classes. These abstract directives should not
|
|
79
|
-
* appear in the declarations of an `NgModule` and additional verification is done when processing
|
|
80
|
-
* the module.
|
|
81
|
-
*/
|
|
82
|
-
export declare function extractDirectiveMetadata(clazz: ClassDeclaration, decorator: Readonly<Decorator | null>, reflector: ReflectionHost, evaluator: PartialEvaluator, isCore: boolean, flags: HandlerFlags, annotateForClosureCompiler: boolean, defaultSelector?: string | null): {
|
|
83
|
-
decorator: Map<string, ts.Expression>;
|
|
84
|
-
metadata: R3DirectiveMetadata;
|
|
85
|
-
inputs: ClassPropertyMapping;
|
|
86
|
-
outputs: ClassPropertyMapping;
|
|
87
|
-
isStructural: boolean;
|
|
88
|
-
} | undefined;
|
|
89
|
-
export declare function extractQueryMetadata(exprNode: ts.Node, name: string, args: ReadonlyArray<ts.Expression>, propertyName: string, reflector: ReflectionHost, evaluator: PartialEvaluator): R3QueryMetadata;
|
|
90
|
-
export declare function extractQueriesFromDecorator(queryData: ts.Expression, reflector: ReflectionHost, evaluator: PartialEvaluator, isCore: boolean): {
|
|
91
|
-
content: R3QueryMetadata[];
|
|
92
|
-
view: R3QueryMetadata[];
|
|
93
|
-
};
|
|
94
|
-
export declare function parseFieldArrayValue(directive: Map<string, ts.Expression>, field: string, evaluator: PartialEvaluator): null | string[];
|
|
95
|
-
export declare function queriesFromFields(fields: {
|
|
96
|
-
member: ClassMember;
|
|
97
|
-
decorators: Decorator[];
|
|
98
|
-
}[], reflector: ReflectionHost, evaluator: PartialEvaluator): R3QueryMetadata[];
|
|
99
|
-
export declare function extractHostBindings(members: ClassMember[], evaluator: PartialEvaluator, coreModule: string | undefined, metadata?: Map<string, ts.Expression>): ParsedHostBindings;
|