@angular/core 16.2.0-rc.0 → 16.2.1
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/application_tokens.mjs +2 -1
- package/esm2022/src/core_private_export.mjs +2 -1
- package/esm2022/src/di/injector_compatibility.mjs +2 -2
- package/esm2022/src/errors.mjs +1 -1
- package/esm2022/src/hydration/annotate.mjs +60 -15
- package/esm2022/src/hydration/api.mjs +42 -8
- package/esm2022/src/hydration/cleanup.mjs +15 -6
- package/esm2022/src/hydration/utils.mjs +58 -20
- package/esm2022/src/linker/template_ref.mjs +4 -19
- package/esm2022/src/linker/view_container_ref.mjs +4 -12
- package/esm2022/src/metadata/directives.mjs +1 -1
- package/esm2022/src/render3/component_ref.mjs +7 -3
- package/esm2022/src/render3/instructions/shared.mjs +1 -1
- package/esm2022/src/render3/node_manipulation.mjs +5 -5
- package/esm2022/src/render3/view_manipulation.mjs +65 -0
- package/esm2022/src/render3/view_ref.mjs +3 -3
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/logger.mjs +3 -3
- package/fesm2022/core.mjs +232 -72
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/rxjs-interop.mjs +1 -1
- package/fesm2022/rxjs-interop.mjs.map +1 -1
- package/fesm2022/testing.mjs +136 -54
- package/fesm2022/testing.mjs.map +1 -1
- package/index.d.ts +30 -7
- package/package.json +1 -1
- package/rxjs-interop/index.d.ts +1 -1
- package/schematics/ng-generate/standalone-migration/bundle.js +66 -30
- package/schematics/ng-generate/standalone-migration/bundle.js.map +2 -2
- package/testing/index.d.ts +1 -1
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v16.2.
|
|
2
|
+
* @license Angular v16.2.1
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -3748,6 +3748,10 @@ export declare const Host: HostDecorator;
|
|
|
3748
3748
|
export declare interface HostBinding {
|
|
3749
3749
|
/**
|
|
3750
3750
|
* The DOM property that is bound to a data property.
|
|
3751
|
+
* This field also accepts:
|
|
3752
|
+
* * classes, prefixed by `class.`
|
|
3753
|
+
* * styles, prefixed by `style.`
|
|
3754
|
+
* * attributes, prefixed by `attr.`
|
|
3751
3755
|
*/
|
|
3752
3756
|
hostPropertyName?: string;
|
|
3753
3757
|
}
|
|
@@ -3765,23 +3769,35 @@ export declare const HostBinding: HostBindingDecorator;
|
|
|
3765
3769
|
*/
|
|
3766
3770
|
export declare interface HostBindingDecorator {
|
|
3767
3771
|
/**
|
|
3768
|
-
* Decorator that marks a DOM property as a host-binding
|
|
3769
|
-
* metadata.
|
|
3770
|
-
*
|
|
3771
|
-
* if a binding changes it updates the host element of the directive.
|
|
3772
|
+
* Decorator that marks a DOM property or an element class, style or attribute as a host-binding
|
|
3773
|
+
* property and supplies configuration metadata. Angular automatically checks host bindings during
|
|
3774
|
+
* change detection, and if a binding changes it updates the host element of the directive.
|
|
3772
3775
|
*
|
|
3773
3776
|
* @usageNotes
|
|
3774
3777
|
*
|
|
3775
3778
|
* The following example creates a directive that sets the `valid` and `invalid`
|
|
3776
|
-
*
|
|
3779
|
+
* class, a style color, and an id on the DOM element that has an `ngModel` directive on it.
|
|
3777
3780
|
*
|
|
3778
3781
|
* ```typescript
|
|
3779
3782
|
* @Directive({selector: '[ngModel]'})
|
|
3780
3783
|
* class NgModelStatus {
|
|
3781
3784
|
* constructor(public control: NgModel) {}
|
|
3785
|
+
* // class bindings
|
|
3782
3786
|
* @HostBinding('class.valid') get valid() { return this.control.valid; }
|
|
3783
3787
|
* @HostBinding('class.invalid') get invalid() { return this.control.invalid; }
|
|
3784
|
-
*
|
|
3788
|
+
*
|
|
3789
|
+
* // style binding
|
|
3790
|
+
* @HostBinding('style.color') get color() { return this.control.valid ? 'green': 'red'; }
|
|
3791
|
+
*
|
|
3792
|
+
* // style binding also supports a style unit extension
|
|
3793
|
+
* @HostBinding('style.width.px') @Input() width: number = 500;
|
|
3794
|
+
*
|
|
3795
|
+
* // attribute binding
|
|
3796
|
+
* @HostBinding('attr.aria-required')
|
|
3797
|
+
* @Input() required: boolean = false;
|
|
3798
|
+
*
|
|
3799
|
+
* // property binding
|
|
3800
|
+
* @HostBinding('id') get id() { return this.control.value?.length ? 'odd': 'even'; }
|
|
3785
3801
|
*
|
|
3786
3802
|
* @Component({
|
|
3787
3803
|
* selector: 'app',
|
|
@@ -6490,6 +6506,7 @@ export declare interface OutputDecorator {
|
|
|
6490
6506
|
* A [DI token](guide/glossary#di-token "DI token definition") that indicates the root directory of
|
|
6491
6507
|
* the application
|
|
6492
6508
|
* @publicApi
|
|
6509
|
+
* @deprecated
|
|
6493
6510
|
*/
|
|
6494
6511
|
export declare const PACKAGE_ROOT_URL: InjectionToken<string>;
|
|
6495
6512
|
|
|
@@ -7809,6 +7826,7 @@ declare const enum RuntimeErrorCode {
|
|
|
7809
7826
|
INVALID_SKIP_HYDRATION_HOST = -504,
|
|
7810
7827
|
MISSING_HYDRATION_ANNOTATIONS = -505,
|
|
7811
7828
|
HYDRATION_STABLE_TIMEDOUT = -506,
|
|
7829
|
+
MISSING_SSR_CONTENT_INTEGRITY_MARKER = -507,
|
|
7812
7830
|
SIGNAL_WRITE_FROM_ILLEGAL_CONTEXT = 600,
|
|
7813
7831
|
REQUIRE_SYNC_WITHOUT_SYNC_EMIT = 601,
|
|
7814
7832
|
INVALID_I18N_STRUCTURE = 700,
|
|
@@ -11848,6 +11866,11 @@ export declare function ɵsetUnknownElementStrictMode(shouldThrow: boolean): voi
|
|
|
11848
11866
|
*/
|
|
11849
11867
|
export declare function ɵsetUnknownPropertyStrictMode(shouldThrow: boolean): void;
|
|
11850
11868
|
|
|
11869
|
+
/**
|
|
11870
|
+
* Marker used in a comment node to ensure hydration content integrity
|
|
11871
|
+
*/
|
|
11872
|
+
export declare const ɵSSR_CONTENT_INTEGRITY_MARKER = "nghm";
|
|
11873
|
+
|
|
11851
11874
|
/** Store a value in the `data` at a given `index`. */
|
|
11852
11875
|
export declare function ɵstore<T>(tView: TView, lView: LView, index: number, value: T): void;
|
|
11853
11876
|
|
package/package.json
CHANGED
package/rxjs-interop/index.d.ts
CHANGED
|
@@ -21920,7 +21920,7 @@ function publishFacade(global) {
|
|
|
21920
21920
|
}
|
|
21921
21921
|
|
|
21922
21922
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/version.mjs
|
|
21923
|
-
var VERSION2 = new Version("16.2.
|
|
21923
|
+
var VERSION2 = new Version("16.2.1");
|
|
21924
21924
|
|
|
21925
21925
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
|
|
21926
21926
|
var _I18N_ATTR = "i18n";
|
|
@@ -23362,7 +23362,7 @@ var MINIMUM_PARTIAL_LINKER_VERSION = "12.0.0";
|
|
|
23362
23362
|
function compileDeclareClassMetadata(metadata) {
|
|
23363
23363
|
const definitionMap = new DefinitionMap();
|
|
23364
23364
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
23365
|
-
definitionMap.set("version", literal("16.2.
|
|
23365
|
+
definitionMap.set("version", literal("16.2.1"));
|
|
23366
23366
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
23367
23367
|
definitionMap.set("type", metadata.type);
|
|
23368
23368
|
definitionMap.set("decorators", metadata.decorators);
|
|
@@ -23431,7 +23431,7 @@ function createDirectiveDefinitionMap(meta) {
|
|
|
23431
23431
|
var _a2;
|
|
23432
23432
|
const definitionMap = new DefinitionMap();
|
|
23433
23433
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION2));
|
|
23434
|
-
definitionMap.set("version", literal("16.2.
|
|
23434
|
+
definitionMap.set("version", literal("16.2.1"));
|
|
23435
23435
|
definitionMap.set("type", meta.type.value);
|
|
23436
23436
|
if (meta.isStandalone) {
|
|
23437
23437
|
definitionMap.set("isStandalone", literal(meta.isStandalone));
|
|
@@ -23616,7 +23616,7 @@ var MINIMUM_PARTIAL_LINKER_VERSION3 = "12.0.0";
|
|
|
23616
23616
|
function compileDeclareFactoryFunction(meta) {
|
|
23617
23617
|
const definitionMap = new DefinitionMap();
|
|
23618
23618
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION3));
|
|
23619
|
-
definitionMap.set("version", literal("16.2.
|
|
23619
|
+
definitionMap.set("version", literal("16.2.1"));
|
|
23620
23620
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
23621
23621
|
definitionMap.set("type", meta.type.value);
|
|
23622
23622
|
definitionMap.set("deps", compileDependencies(meta.deps));
|
|
@@ -23639,7 +23639,7 @@ function compileDeclareInjectableFromMetadata(meta) {
|
|
|
23639
23639
|
function createInjectableDefinitionMap(meta) {
|
|
23640
23640
|
const definitionMap = new DefinitionMap();
|
|
23641
23641
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION4));
|
|
23642
|
-
definitionMap.set("version", literal("16.2.
|
|
23642
|
+
definitionMap.set("version", literal("16.2.1"));
|
|
23643
23643
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
23644
23644
|
definitionMap.set("type", meta.type.value);
|
|
23645
23645
|
if (meta.providedIn !== void 0) {
|
|
@@ -23677,7 +23677,7 @@ function compileDeclareInjectorFromMetadata(meta) {
|
|
|
23677
23677
|
function createInjectorDefinitionMap(meta) {
|
|
23678
23678
|
const definitionMap = new DefinitionMap();
|
|
23679
23679
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION5));
|
|
23680
|
-
definitionMap.set("version", literal("16.2.
|
|
23680
|
+
definitionMap.set("version", literal("16.2.1"));
|
|
23681
23681
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
23682
23682
|
definitionMap.set("type", meta.type.value);
|
|
23683
23683
|
definitionMap.set("providers", meta.providers);
|
|
@@ -23701,7 +23701,7 @@ function createNgModuleDefinitionMap(meta) {
|
|
|
23701
23701
|
throw new Error("Invalid path! Local compilation mode should not get into the partial compilation path");
|
|
23702
23702
|
}
|
|
23703
23703
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION6));
|
|
23704
|
-
definitionMap.set("version", literal("16.2.
|
|
23704
|
+
definitionMap.set("version", literal("16.2.1"));
|
|
23705
23705
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
23706
23706
|
definitionMap.set("type", meta.type.value);
|
|
23707
23707
|
if (meta.bootstrap.length > 0) {
|
|
@@ -23736,7 +23736,7 @@ function compileDeclarePipeFromMetadata(meta) {
|
|
|
23736
23736
|
function createPipeDefinitionMap(meta) {
|
|
23737
23737
|
const definitionMap = new DefinitionMap();
|
|
23738
23738
|
definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION7));
|
|
23739
|
-
definitionMap.set("version", literal("16.2.
|
|
23739
|
+
definitionMap.set("version", literal("16.2.1"));
|
|
23740
23740
|
definitionMap.set("ngImport", importExpr(Identifiers.core));
|
|
23741
23741
|
definitionMap.set("type", meta.type.value);
|
|
23742
23742
|
if (meta.isStandalone) {
|
|
@@ -23753,7 +23753,7 @@ function createPipeDefinitionMap(meta) {
|
|
|
23753
23753
|
publishFacade(_global);
|
|
23754
23754
|
|
|
23755
23755
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/version.mjs
|
|
23756
|
-
var VERSION3 = new Version("16.2.
|
|
23756
|
+
var VERSION3 = new Version("16.2.1");
|
|
23757
23757
|
|
|
23758
23758
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
|
|
23759
23759
|
var EmitFlags;
|
|
@@ -25589,7 +25589,7 @@ function createSourceSpan(node) {
|
|
|
25589
25589
|
const parseSf = new ParseSourceFile(sf.getFullText(), sf.fileName);
|
|
25590
25590
|
return new ParseSourceSpan(new ParseLocation(parseSf, startOffset, startLine + 1, startCol + 1), new ParseLocation(parseSf, endOffset, endLine + 1, endCol + 1));
|
|
25591
25591
|
}
|
|
25592
|
-
function compileResults(fac, def, metadataStmt, propName, additionalFields) {
|
|
25592
|
+
function compileResults(fac, def, metadataStmt, propName, additionalFields, deferrableImports) {
|
|
25593
25593
|
const statements = def.statements;
|
|
25594
25594
|
if (metadataStmt !== null) {
|
|
25595
25595
|
statements.push(metadataStmt);
|
|
@@ -25600,7 +25600,8 @@ function compileResults(fac, def, metadataStmt, propName, additionalFields) {
|
|
|
25600
25600
|
name: propName,
|
|
25601
25601
|
initializer: def.expression,
|
|
25602
25602
|
statements: def.statements,
|
|
25603
|
-
type: def.type
|
|
25603
|
+
type: def.type,
|
|
25604
|
+
deferrableImports
|
|
25604
25605
|
}
|
|
25605
25606
|
];
|
|
25606
25607
|
if (additionalFields !== null) {
|
|
@@ -27666,11 +27667,23 @@ function resolveLiteral(decorator, literalCache) {
|
|
|
27666
27667
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/factory.mjs
|
|
27667
27668
|
function compileNgFactoryDefField(metadata) {
|
|
27668
27669
|
const res = compileFactoryFunction(metadata);
|
|
27669
|
-
return {
|
|
27670
|
+
return {
|
|
27671
|
+
name: "\u0275fac",
|
|
27672
|
+
initializer: res.expression,
|
|
27673
|
+
statements: res.statements,
|
|
27674
|
+
type: res.type,
|
|
27675
|
+
deferrableImports: null
|
|
27676
|
+
};
|
|
27670
27677
|
}
|
|
27671
27678
|
function compileDeclareFactory(metadata) {
|
|
27672
27679
|
const res = compileDeclareFactoryFunction(metadata);
|
|
27673
|
-
return {
|
|
27680
|
+
return {
|
|
27681
|
+
name: "\u0275fac",
|
|
27682
|
+
initializer: res.expression,
|
|
27683
|
+
statements: res.statements,
|
|
27684
|
+
type: res.type,
|
|
27685
|
+
deferrableImports: null
|
|
27686
|
+
};
|
|
27674
27687
|
}
|
|
27675
27688
|
|
|
27676
27689
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/injectable_registry.mjs
|
|
@@ -27829,7 +27842,8 @@ function compileInputTransformFields(inputs) {
|
|
|
27829
27842
|
name: `ngAcceptInputType_${input.classPropertyName}`,
|
|
27830
27843
|
type: output_ast_exports.transplantedType(input.transform.type),
|
|
27831
27844
|
statements: [],
|
|
27832
|
-
initializer: null
|
|
27845
|
+
initializer: null,
|
|
27846
|
+
deferrableImports: null
|
|
27833
27847
|
});
|
|
27834
27848
|
}
|
|
27835
27849
|
}
|
|
@@ -30256,13 +30270,13 @@ var Visitor = class {
|
|
|
30256
30270
|
}
|
|
30257
30271
|
_visit(node, context) {
|
|
30258
30272
|
let visitedNode = null;
|
|
30259
|
-
node = import_typescript46.default.visitEachChild(node, (child) => this._visit(child, context), context);
|
|
30273
|
+
node = import_typescript46.default.visitEachChild(node, (child) => child && this._visit(child, context), context);
|
|
30260
30274
|
if (import_typescript46.default.isClassDeclaration(node)) {
|
|
30261
30275
|
visitedNode = this._visitListEntryNode(node, (node2) => this.visitClassDeclaration(node2));
|
|
30262
30276
|
} else {
|
|
30263
30277
|
visitedNode = this.visitOtherNode(node);
|
|
30264
30278
|
}
|
|
30265
|
-
if (import_typescript46.default.isBlock(visitedNode) || import_typescript46.default.isSourceFile(visitedNode)) {
|
|
30279
|
+
if (visitedNode && (import_typescript46.default.isBlock(visitedNode) || import_typescript46.default.isSourceFile(visitedNode))) {
|
|
30266
30280
|
visitedNode = this._maybeProcessStatements(visitedNode);
|
|
30267
30281
|
}
|
|
30268
30282
|
return visitedNode;
|
|
@@ -30309,17 +30323,23 @@ var IvyCompilationVisitor = class extends Visitor {
|
|
|
30309
30323
|
this.compilation = compilation;
|
|
30310
30324
|
this.constantPool = constantPool;
|
|
30311
30325
|
this.classCompilationMap = /* @__PURE__ */ new Map();
|
|
30326
|
+
this.deferrableImports = /* @__PURE__ */ new Set();
|
|
30312
30327
|
}
|
|
30313
30328
|
visitClassDeclaration(node) {
|
|
30314
30329
|
const result = this.compilation.compile(node, this.constantPool);
|
|
30315
30330
|
if (result !== null) {
|
|
30316
30331
|
this.classCompilationMap.set(node, result);
|
|
30332
|
+
for (const classResult of result) {
|
|
30333
|
+
if (classResult.deferrableImports !== null && classResult.deferrableImports.size > 0) {
|
|
30334
|
+
classResult.deferrableImports.forEach((importDecl) => this.deferrableImports.add(importDecl));
|
|
30335
|
+
}
|
|
30336
|
+
}
|
|
30317
30337
|
}
|
|
30318
30338
|
return { node };
|
|
30319
30339
|
}
|
|
30320
30340
|
};
|
|
30321
30341
|
var IvyTransformationVisitor = class extends Visitor {
|
|
30322
|
-
constructor(compilation, classCompilationMap, reflector, importManager, recordWrappedNodeExpr, isClosureCompilerEnabled, isCore) {
|
|
30342
|
+
constructor(compilation, classCompilationMap, reflector, importManager, recordWrappedNodeExpr, isClosureCompilerEnabled, isCore, deferrableImports) {
|
|
30323
30343
|
super();
|
|
30324
30344
|
this.compilation = compilation;
|
|
30325
30345
|
this.classCompilationMap = classCompilationMap;
|
|
@@ -30328,6 +30348,7 @@ var IvyTransformationVisitor = class extends Visitor {
|
|
|
30328
30348
|
this.recordWrappedNodeExpr = recordWrappedNodeExpr;
|
|
30329
30349
|
this.isClosureCompilerEnabled = isClosureCompilerEnabled;
|
|
30330
30350
|
this.isCore = isCore;
|
|
30351
|
+
this.deferrableImports = deferrableImports;
|
|
30331
30352
|
}
|
|
30332
30353
|
visitClassDeclaration(node) {
|
|
30333
30354
|
if (!this.classCompilationMap.has(node)) {
|
|
@@ -30372,6 +30393,12 @@ var IvyTransformationVisitor = class extends Visitor {
|
|
|
30372
30393
|
);
|
|
30373
30394
|
return { node, after: statements };
|
|
30374
30395
|
}
|
|
30396
|
+
visitOtherNode(node) {
|
|
30397
|
+
if (import_typescript47.default.isImportDeclaration(node) && this.deferrableImports.has(node)) {
|
|
30398
|
+
return null;
|
|
30399
|
+
}
|
|
30400
|
+
return node;
|
|
30401
|
+
}
|
|
30375
30402
|
_angularCoreDecorators(decl) {
|
|
30376
30403
|
const decorators = this.reflector.getDecoratorsOfDeclaration(decl);
|
|
30377
30404
|
if (decorators === null) {
|
|
@@ -30427,7 +30454,7 @@ function transformIvySourceFile(compilation, context, reflector, importRewriter,
|
|
|
30427
30454
|
const importManager = new ImportManager(importRewriter);
|
|
30428
30455
|
const compilationVisitor = new IvyCompilationVisitor(compilation, constantPool);
|
|
30429
30456
|
visit(file, compilationVisitor, context);
|
|
30430
|
-
const transformationVisitor = new IvyTransformationVisitor(compilation, compilationVisitor.classCompilationMap, reflector, importManager, recordWrappedNode, isClosureCompilerEnabled, isCore);
|
|
30457
|
+
const transformationVisitor = new IvyTransformationVisitor(compilation, compilationVisitor.classCompilationMap, reflector, importManager, recordWrappedNode, isClosureCompilerEnabled, isCore, compilationVisitor.deferrableImports);
|
|
30431
30458
|
let sf = visit(file, transformationVisitor, context);
|
|
30432
30459
|
const downlevelTranslatedCode = getLocalizeCompileTarget(context) < import_typescript47.default.ScriptTarget.ES2015;
|
|
30433
30460
|
const constants = constantPool.statements.map((stmt) => translateStatement(stmt, importManager, {
|
|
@@ -31288,21 +31315,21 @@ var DirectiveDecoratorHandler = class {
|
|
|
31288
31315
|
const def = compileDirectiveFromMetadata(analysis.meta, pool, makeBindingParser());
|
|
31289
31316
|
const inputTransformFields = compileInputTransformFields(analysis.inputs);
|
|
31290
31317
|
const classMetadata = analysis.classMetadata !== null ? compileClassMetadata(analysis.classMetadata).toStmt() : null;
|
|
31291
|
-
return compileResults(fac, def, classMetadata, "\u0275dir", inputTransformFields);
|
|
31318
|
+
return compileResults(fac, def, classMetadata, "\u0275dir", inputTransformFields, null);
|
|
31292
31319
|
}
|
|
31293
31320
|
compilePartial(node, analysis, resolution) {
|
|
31294
31321
|
const fac = compileDeclareFactory(toFactoryMetadata(analysis.meta, FactoryTarget.Directive));
|
|
31295
31322
|
const def = compileDeclareDirectiveFromMetadata(analysis.meta);
|
|
31296
31323
|
const inputTransformFields = compileInputTransformFields(analysis.inputs);
|
|
31297
31324
|
const classMetadata = analysis.classMetadata !== null ? compileDeclareClassMetadata(analysis.classMetadata).toStmt() : null;
|
|
31298
|
-
return compileResults(fac, def, classMetadata, "\u0275dir", inputTransformFields);
|
|
31325
|
+
return compileResults(fac, def, classMetadata, "\u0275dir", inputTransformFields, null);
|
|
31299
31326
|
}
|
|
31300
31327
|
compileLocal(node, analysis, pool) {
|
|
31301
31328
|
const fac = compileNgFactoryDefField(toFactoryMetadata(analysis.meta, FactoryTarget.Directive));
|
|
31302
31329
|
const def = compileDirectiveFromMetadata(analysis.meta, pool, makeBindingParser());
|
|
31303
31330
|
const inputTransformFields = compileInputTransformFields(analysis.inputs);
|
|
31304
31331
|
const classMetadata = analysis.classMetadata !== null ? compileClassMetadata(analysis.classMetadata).toStmt() : null;
|
|
31305
|
-
return compileResults(fac, def, classMetadata, "\u0275dir", inputTransformFields);
|
|
31332
|
+
return compileResults(fac, def, classMetadata, "\u0275dir", inputTransformFields, null);
|
|
31306
31333
|
}
|
|
31307
31334
|
findClassFieldWithAngularFeatures(node) {
|
|
31308
31335
|
return this.reflector.getMembersOfClass(node).find((member) => {
|
|
@@ -31864,13 +31891,15 @@ var NgModuleDecoratorHandler = class {
|
|
|
31864
31891
|
name: "\u0275mod",
|
|
31865
31892
|
initializer: ngModuleDef.expression,
|
|
31866
31893
|
statements: ngModuleDef.statements,
|
|
31867
|
-
type: ngModuleDef.type
|
|
31894
|
+
type: ngModuleDef.type,
|
|
31895
|
+
deferrableImports: null
|
|
31868
31896
|
},
|
|
31869
31897
|
{
|
|
31870
31898
|
name: "\u0275inj",
|
|
31871
31899
|
initializer: injectorDef.expression,
|
|
31872
31900
|
statements: injectorDef.statements,
|
|
31873
|
-
type: injectorDef.type
|
|
31901
|
+
type: injectorDef.type,
|
|
31902
|
+
deferrableImports: null
|
|
31874
31903
|
}
|
|
31875
31904
|
];
|
|
31876
31905
|
return res;
|
|
@@ -33009,7 +33038,8 @@ var ComponentDecoratorHandler = class {
|
|
|
33009
33038
|
const def = compileComponentFromMetadata(meta, pool, makeBindingParser());
|
|
33010
33039
|
const inputTransformFields = compileInputTransformFields(analysis.inputs);
|
|
33011
33040
|
const classMetadata = analysis.classMetadata !== null ? compileClassMetadata(analysis.classMetadata).toStmt() : null;
|
|
33012
|
-
|
|
33041
|
+
const deferrableImports = this.deferredSymbolTracker.getDeferrableImportDecls();
|
|
33042
|
+
return compileResults(fac, def, classMetadata, "\u0275cmp", inputTransformFields, deferrableImports);
|
|
33013
33043
|
}
|
|
33014
33044
|
compilePartial(node, analysis, resolution) {
|
|
33015
33045
|
if (analysis.template.errors !== null && analysis.template.errors.length > 0) {
|
|
@@ -33026,7 +33056,7 @@ var ComponentDecoratorHandler = class {
|
|
|
33026
33056
|
const inputTransformFields = compileInputTransformFields(analysis.inputs);
|
|
33027
33057
|
const def = compileDeclareComponentFromMetadata(meta, analysis.template, templateInfo);
|
|
33028
33058
|
const classMetadata = analysis.classMetadata !== null ? compileDeclareClassMetadata(analysis.classMetadata).toStmt() : null;
|
|
33029
|
-
return compileResults(fac, def, classMetadata, "\u0275cmp", inputTransformFields);
|
|
33059
|
+
return compileResults(fac, def, classMetadata, "\u0275cmp", inputTransformFields, null);
|
|
33030
33060
|
}
|
|
33031
33061
|
compileLocal(node, analysis, pool) {
|
|
33032
33062
|
if (analysis.template.errors !== null && analysis.template.errors.length > 0) {
|
|
@@ -33042,7 +33072,7 @@ var ComponentDecoratorHandler = class {
|
|
|
33042
33072
|
const def = compileComponentFromMetadata(meta, pool, makeBindingParser());
|
|
33043
33073
|
const inputTransformFields = compileInputTransformFields(analysis.inputs);
|
|
33044
33074
|
const classMetadata = analysis.classMetadata !== null ? compileClassMetadata(analysis.classMetadata).toStmt() : null;
|
|
33045
|
-
return compileResults(fac, def, classMetadata, "\u0275cmp", inputTransformFields);
|
|
33075
|
+
return compileResults(fac, def, classMetadata, "\u0275cmp", inputTransformFields, null);
|
|
33046
33076
|
}
|
|
33047
33077
|
_checkForCyclicImport(importedFile, expr, origin) {
|
|
33048
33078
|
const imported = resolveImportedFile(this.moduleResolver, importedFile, expr, origin);
|
|
@@ -33237,7 +33267,13 @@ var InjectableDecoratorHandler = class {
|
|
|
33237
33267
|
}
|
|
33238
33268
|
if (\u0275prov === void 0) {
|
|
33239
33269
|
const res = compileInjectableFn(analysis.meta);
|
|
33240
|
-
results.push({
|
|
33270
|
+
results.push({
|
|
33271
|
+
name: "\u0275prov",
|
|
33272
|
+
initializer: res.expression,
|
|
33273
|
+
statements: res.statements,
|
|
33274
|
+
type: res.type,
|
|
33275
|
+
deferrableImports: null
|
|
33276
|
+
});
|
|
33241
33277
|
}
|
|
33242
33278
|
return results;
|
|
33243
33279
|
}
|
|
@@ -33502,19 +33538,19 @@ var PipeDecoratorHandler = class {
|
|
|
33502
33538
|
const fac = compileNgFactoryDefField(toFactoryMetadata(analysis.meta, FactoryTarget.Pipe));
|
|
33503
33539
|
const def = compilePipeFromMetadata(analysis.meta);
|
|
33504
33540
|
const classMetadata = analysis.classMetadata !== null ? compileClassMetadata(analysis.classMetadata).toStmt() : null;
|
|
33505
|
-
return compileResults(fac, def, classMetadata, "\u0275pipe", null);
|
|
33541
|
+
return compileResults(fac, def, classMetadata, "\u0275pipe", null, null);
|
|
33506
33542
|
}
|
|
33507
33543
|
compilePartial(node, analysis) {
|
|
33508
33544
|
const fac = compileDeclareFactory(toFactoryMetadata(analysis.meta, FactoryTarget.Pipe));
|
|
33509
33545
|
const def = compileDeclarePipeFromMetadata(analysis.meta);
|
|
33510
33546
|
const classMetadata = analysis.classMetadata !== null ? compileDeclareClassMetadata(analysis.classMetadata).toStmt() : null;
|
|
33511
|
-
return compileResults(fac, def, classMetadata, "\u0275pipe", null);
|
|
33547
|
+
return compileResults(fac, def, classMetadata, "\u0275pipe", null, null);
|
|
33512
33548
|
}
|
|
33513
33549
|
compileLocal(node, analysis) {
|
|
33514
33550
|
const fac = compileNgFactoryDefField(toFactoryMetadata(analysis.meta, FactoryTarget.Pipe));
|
|
33515
33551
|
const def = compilePipeFromMetadata(analysis.meta);
|
|
33516
33552
|
const classMetadata = analysis.classMetadata !== null ? compileClassMetadata(analysis.classMetadata).toStmt() : null;
|
|
33517
|
-
return compileResults(fac, def, classMetadata, "\u0275pipe", null);
|
|
33553
|
+
return compileResults(fac, def, classMetadata, "\u0275pipe", null, null);
|
|
33518
33554
|
}
|
|
33519
33555
|
};
|
|
33520
33556
|
|