@angular/compiler 19.2.11 → 19.2.13
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/fesm2022/compiler.mjs +77 -60
- package/fesm2022/compiler.mjs.map +1 -1
- package/index.d.ts +626 -299
- package/package.json +1 -1
package/fesm2022/compiler.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v19.2.
|
|
2
|
+
* @license Angular v19.2.13
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -406,13 +406,13 @@ class SelectorContext {
|
|
|
406
406
|
// Stores the default value of `emitDistinctChangesOnly` when the `emitDistinctChangesOnly` is not
|
|
407
407
|
// explicitly set.
|
|
408
408
|
const emitDistinctChangesOnlyDefaultValue = true;
|
|
409
|
-
var ViewEncapsulation;
|
|
409
|
+
var ViewEncapsulation$1;
|
|
410
410
|
(function (ViewEncapsulation) {
|
|
411
411
|
ViewEncapsulation[ViewEncapsulation["Emulated"] = 0] = "Emulated";
|
|
412
412
|
// Historically the 1 value was for `Native` encapsulation which has been removed as of v11.
|
|
413
413
|
ViewEncapsulation[ViewEncapsulation["None"] = 2] = "None";
|
|
414
414
|
ViewEncapsulation[ViewEncapsulation["ShadowDom"] = 3] = "ShadowDom";
|
|
415
|
-
})(ViewEncapsulation || (ViewEncapsulation = {}));
|
|
415
|
+
})(ViewEncapsulation$1 || (ViewEncapsulation$1 = {}));
|
|
416
416
|
var ChangeDetectionStrategy;
|
|
417
417
|
(function (ChangeDetectionStrategy) {
|
|
418
418
|
ChangeDetectionStrategy[ChangeDetectionStrategy["OnPush"] = 0] = "OnPush";
|
|
@@ -495,11 +495,33 @@ var core = /*#__PURE__*/Object.freeze({
|
|
|
495
495
|
NO_ERRORS_SCHEMA: NO_ERRORS_SCHEMA,
|
|
496
496
|
get SecurityContext () { return SecurityContext; },
|
|
497
497
|
Type: Type$1,
|
|
498
|
-
get ViewEncapsulation () { return ViewEncapsulation; },
|
|
498
|
+
get ViewEncapsulation () { return ViewEncapsulation$1; },
|
|
499
499
|
emitDistinctChangesOnlyDefaultValue: emitDistinctChangesOnlyDefaultValue,
|
|
500
500
|
parseSelectorToR3Selector: parseSelectorToR3Selector
|
|
501
501
|
});
|
|
502
502
|
|
|
503
|
+
var FactoryTarget;
|
|
504
|
+
(function (FactoryTarget) {
|
|
505
|
+
FactoryTarget[FactoryTarget["Directive"] = 0] = "Directive";
|
|
506
|
+
FactoryTarget[FactoryTarget["Component"] = 1] = "Component";
|
|
507
|
+
FactoryTarget[FactoryTarget["Injectable"] = 2] = "Injectable";
|
|
508
|
+
FactoryTarget[FactoryTarget["Pipe"] = 3] = "Pipe";
|
|
509
|
+
FactoryTarget[FactoryTarget["NgModule"] = 4] = "NgModule";
|
|
510
|
+
})(FactoryTarget || (FactoryTarget = {}));
|
|
511
|
+
var R3TemplateDependencyKind$1;
|
|
512
|
+
(function (R3TemplateDependencyKind) {
|
|
513
|
+
R3TemplateDependencyKind[R3TemplateDependencyKind["Directive"] = 0] = "Directive";
|
|
514
|
+
R3TemplateDependencyKind[R3TemplateDependencyKind["Pipe"] = 1] = "Pipe";
|
|
515
|
+
R3TemplateDependencyKind[R3TemplateDependencyKind["NgModule"] = 2] = "NgModule";
|
|
516
|
+
})(R3TemplateDependencyKind$1 || (R3TemplateDependencyKind$1 = {}));
|
|
517
|
+
var ViewEncapsulation;
|
|
518
|
+
(function (ViewEncapsulation) {
|
|
519
|
+
ViewEncapsulation[ViewEncapsulation["Emulated"] = 0] = "Emulated";
|
|
520
|
+
// Historically the 1 value was for `Native` encapsulation which has been removed as of v11.
|
|
521
|
+
ViewEncapsulation[ViewEncapsulation["None"] = 2] = "None";
|
|
522
|
+
ViewEncapsulation[ViewEncapsulation["ShadowDom"] = 3] = "ShadowDom";
|
|
523
|
+
})(ViewEncapsulation || (ViewEncapsulation = {}));
|
|
524
|
+
|
|
503
525
|
/**
|
|
504
526
|
* A lazily created TextEncoder instance for converting strings into UTF-8 bytes
|
|
505
527
|
*/
|
|
@@ -2950,6 +2972,10 @@ class Identifiers {
|
|
|
2950
2972
|
static forwardRef = { name: 'forwardRef', moduleName: CORE };
|
|
2951
2973
|
static resolveForwardRef = { name: 'resolveForwardRef', moduleName: CORE };
|
|
2952
2974
|
static replaceMetadata = { name: 'ɵɵreplaceMetadata', moduleName: CORE };
|
|
2975
|
+
static getReplaceMetadataURL = {
|
|
2976
|
+
name: 'ɵɵgetReplaceMetadataURL',
|
|
2977
|
+
moduleName: CORE,
|
|
2978
|
+
};
|
|
2953
2979
|
static ɵɵdefineInjectable = { name: 'ɵɵdefineInjectable', moduleName: CORE };
|
|
2954
2980
|
static declareInjectable = { name: 'ɵɵngDeclareInjectable', moduleName: CORE };
|
|
2955
2981
|
static InjectableDeclaration = {
|
|
@@ -3118,6 +3144,10 @@ function _splitAt(input, character, defaultValues) {
|
|
|
3118
3144
|
function noUndefined(val) {
|
|
3119
3145
|
return val === undefined ? null : val;
|
|
3120
3146
|
}
|
|
3147
|
+
// Escape characters that have a special meaning in Regular Expressions
|
|
3148
|
+
function escapeRegExp(s) {
|
|
3149
|
+
return s.replace(/([.*+?^=!:${}()|[\]\/\\])/g, '\\$1');
|
|
3150
|
+
}
|
|
3121
3151
|
function utf8Encode(str) {
|
|
3122
3152
|
let encoded = [];
|
|
3123
3153
|
for (let index = 0; index < str.length; index++) {
|
|
@@ -3947,14 +3977,6 @@ var R3FactoryDelegateType;
|
|
|
3947
3977
|
R3FactoryDelegateType[R3FactoryDelegateType["Class"] = 0] = "Class";
|
|
3948
3978
|
R3FactoryDelegateType[R3FactoryDelegateType["Function"] = 1] = "Function";
|
|
3949
3979
|
})(R3FactoryDelegateType || (R3FactoryDelegateType = {}));
|
|
3950
|
-
var FactoryTarget$1;
|
|
3951
|
-
(function (FactoryTarget) {
|
|
3952
|
-
FactoryTarget[FactoryTarget["Directive"] = 0] = "Directive";
|
|
3953
|
-
FactoryTarget[FactoryTarget["Component"] = 1] = "Component";
|
|
3954
|
-
FactoryTarget[FactoryTarget["Injectable"] = 2] = "Injectable";
|
|
3955
|
-
FactoryTarget[FactoryTarget["Pipe"] = 3] = "Pipe";
|
|
3956
|
-
FactoryTarget[FactoryTarget["NgModule"] = 4] = "NgModule";
|
|
3957
|
-
})(FactoryTarget$1 || (FactoryTarget$1 = {}));
|
|
3958
3980
|
/**
|
|
3959
3981
|
* Construct a factory function expression for the given `R3FactoryMetadata`.
|
|
3960
3982
|
*/
|
|
@@ -4057,7 +4079,7 @@ function compileInjectDependency(dep, target, index) {
|
|
|
4057
4079
|
(dep.skipSelf ? 4 /* InjectFlags.SkipSelf */ : 0) |
|
|
4058
4080
|
(dep.host ? 1 /* InjectFlags.Host */ : 0) |
|
|
4059
4081
|
(dep.optional ? 8 /* InjectFlags.Optional */ : 0) |
|
|
4060
|
-
(target === FactoryTarget
|
|
4082
|
+
(target === FactoryTarget.Pipe ? 16 /* InjectFlags.ForPipe */ : 0);
|
|
4061
4083
|
// If this dependency is optional or otherwise has non-default flags, then additional
|
|
4062
4084
|
// parameters describing how to inject the dependency must be passed to the inject function
|
|
4063
4085
|
// that's being used.
|
|
@@ -4127,12 +4149,12 @@ function isExpressionFactoryMetadata(meta) {
|
|
|
4127
4149
|
}
|
|
4128
4150
|
function getInjectFn(target) {
|
|
4129
4151
|
switch (target) {
|
|
4130
|
-
case FactoryTarget
|
|
4131
|
-
case FactoryTarget
|
|
4132
|
-
case FactoryTarget
|
|
4152
|
+
case FactoryTarget.Component:
|
|
4153
|
+
case FactoryTarget.Directive:
|
|
4154
|
+
case FactoryTarget.Pipe:
|
|
4133
4155
|
return Identifiers.directiveInject;
|
|
4134
|
-
case FactoryTarget
|
|
4135
|
-
case FactoryTarget
|
|
4156
|
+
case FactoryTarget.NgModule:
|
|
4157
|
+
case FactoryTarget.Injectable:
|
|
4136
4158
|
default:
|
|
4137
4159
|
return Identifiers.inject;
|
|
4138
4160
|
}
|
|
@@ -6273,7 +6295,7 @@ function compileInjectable(meta, resolveForwardRefs) {
|
|
|
6273
6295
|
type: meta.type,
|
|
6274
6296
|
typeArgumentCount: meta.typeArgumentCount,
|
|
6275
6297
|
deps: [],
|
|
6276
|
-
target: FactoryTarget
|
|
6298
|
+
target: FactoryTarget.Injectable,
|
|
6277
6299
|
};
|
|
6278
6300
|
if (meta.useClass !== undefined) {
|
|
6279
6301
|
// meta.useClass has two modes of operation. Either deps are specified, in which case `new` is
|
|
@@ -26487,6 +26509,12 @@ function ingestControlFlowInsertionPoint(unit, xref, node) {
|
|
|
26487
26509
|
* internal tooling as well.
|
|
26488
26510
|
*/
|
|
26489
26511
|
let ENABLE_TEMPLATE_SOURCE_LOCATIONS = false;
|
|
26512
|
+
/**
|
|
26513
|
+
* Utility function to enable source locations. Intended to be used **only** inside unit tests.
|
|
26514
|
+
*/
|
|
26515
|
+
function setEnableTemplateSourceLocations(value) {
|
|
26516
|
+
ENABLE_TEMPLATE_SOURCE_LOCATIONS = value;
|
|
26517
|
+
}
|
|
26490
26518
|
/** Gets whether template source locations are enabled. */
|
|
26491
26519
|
function getTemplateSourceLocationsEnabled() {
|
|
26492
26520
|
return ENABLE_TEMPLATE_SOURCE_LOCATIONS;
|
|
@@ -28965,12 +28993,12 @@ function compileComponentFromMetadata(meta, constantPool, bindingParser) {
|
|
|
28965
28993
|
definitionMap.set('dependencies', importExpr(Identifiers.getComponentDepsFactory).callFn(args));
|
|
28966
28994
|
}
|
|
28967
28995
|
if (meta.encapsulation === null) {
|
|
28968
|
-
meta.encapsulation = ViewEncapsulation.Emulated;
|
|
28996
|
+
meta.encapsulation = ViewEncapsulation$1.Emulated;
|
|
28969
28997
|
}
|
|
28970
28998
|
let hasStyles = !!meta.externalStyles?.length;
|
|
28971
28999
|
// e.g. `styles: [str1, str2]`
|
|
28972
29000
|
if (meta.styles && meta.styles.length) {
|
|
28973
|
-
const styleValues = meta.encapsulation == ViewEncapsulation.Emulated
|
|
29001
|
+
const styleValues = meta.encapsulation == ViewEncapsulation$1.Emulated
|
|
28974
29002
|
? compileStyles(meta.styles, CONTENT_ATTR, HOST_ATTR)
|
|
28975
29003
|
: meta.styles;
|
|
28976
29004
|
const styleNodes = styleValues.reduce((result, style) => {
|
|
@@ -28984,12 +29012,12 @@ function compileComponentFromMetadata(meta, constantPool, bindingParser) {
|
|
|
28984
29012
|
definitionMap.set('styles', literalArr(styleNodes));
|
|
28985
29013
|
}
|
|
28986
29014
|
}
|
|
28987
|
-
if (!hasStyles && meta.encapsulation === ViewEncapsulation.Emulated) {
|
|
29015
|
+
if (!hasStyles && meta.encapsulation === ViewEncapsulation$1.Emulated) {
|
|
28988
29016
|
// If there is no style, don't generate css selectors on elements
|
|
28989
|
-
meta.encapsulation = ViewEncapsulation.None;
|
|
29017
|
+
meta.encapsulation = ViewEncapsulation$1.None;
|
|
28990
29018
|
}
|
|
28991
29019
|
// Only set view encapsulation if it's not the default value
|
|
28992
|
-
if (meta.encapsulation !== ViewEncapsulation.Emulated) {
|
|
29020
|
+
if (meta.encapsulation !== ViewEncapsulation$1.Emulated) {
|
|
28993
29021
|
definitionMap.set('encapsulation', literal(meta.encapsulation));
|
|
28994
29022
|
}
|
|
28995
29023
|
// e.g. `animation: [trigger('123', [])]`
|
|
@@ -30264,7 +30292,7 @@ class ResourceLoader {
|
|
|
30264
30292
|
|
|
30265
30293
|
class CompilerFacadeImpl {
|
|
30266
30294
|
jitEvaluator;
|
|
30267
|
-
FactoryTarget = FactoryTarget
|
|
30295
|
+
FactoryTarget = FactoryTarget;
|
|
30268
30296
|
ResourceLoader = ResourceLoader;
|
|
30269
30297
|
elementSchemaRegistry = new DomElementSchemaRegistry();
|
|
30270
30298
|
constructor(jitEvaluator = new JitEvaluator()) {
|
|
@@ -30640,7 +30668,7 @@ function convertDeclareComponentFacadeToMetadata(decl, typeSourceSpan, sourceMap
|
|
|
30640
30668
|
animations: decl.animations !== undefined ? new WrappedNodeExpr(decl.animations) : null,
|
|
30641
30669
|
defer,
|
|
30642
30670
|
changeDetection: decl.changeDetection ?? ChangeDetectionStrategy.Default,
|
|
30643
|
-
encapsulation: decl.encapsulation ?? ViewEncapsulation.Emulated,
|
|
30671
|
+
encapsulation: decl.encapsulation ?? ViewEncapsulation$1.Emulated,
|
|
30644
30672
|
interpolation,
|
|
30645
30673
|
declarationListEmitMode: 2 /* DeclarationListEmitMode.ClosureResolved */,
|
|
30646
30674
|
relativeContextFilePath: '',
|
|
@@ -30921,13 +30949,13 @@ function publishFacade(global) {
|
|
|
30921
30949
|
* @description
|
|
30922
30950
|
* Entry point for all public APIs of the compiler package.
|
|
30923
30951
|
*/
|
|
30924
|
-
const VERSION = new Version('19.2.
|
|
30952
|
+
const VERSION = new Version('19.2.13');
|
|
30925
30953
|
|
|
30926
30954
|
class CompilerConfig {
|
|
30927
30955
|
defaultEncapsulation;
|
|
30928
30956
|
preserveWhitespaces;
|
|
30929
30957
|
strictInjectionParameters;
|
|
30930
|
-
constructor({ defaultEncapsulation = ViewEncapsulation.Emulated, preserveWhitespaces, strictInjectionParameters, } = {}) {
|
|
30958
|
+
constructor({ defaultEncapsulation = ViewEncapsulation$1.Emulated, preserveWhitespaces, strictInjectionParameters, } = {}) {
|
|
30931
30959
|
this.defaultEncapsulation = defaultEncapsulation;
|
|
30932
30960
|
this.preserveWhitespaces = preserveWhitespacesDefault(noUndefined(preserveWhitespaces));
|
|
30933
30961
|
this.strictInjectionParameters = strictInjectionParameters === true;
|
|
@@ -32548,15 +32576,6 @@ class MapPlaceholderNames extends CloneVisitor {
|
|
|
32548
32576
|
}
|
|
32549
32577
|
}
|
|
32550
32578
|
|
|
32551
|
-
var FactoryTarget;
|
|
32552
|
-
(function (FactoryTarget) {
|
|
32553
|
-
FactoryTarget[FactoryTarget["Directive"] = 0] = "Directive";
|
|
32554
|
-
FactoryTarget[FactoryTarget["Component"] = 1] = "Component";
|
|
32555
|
-
FactoryTarget[FactoryTarget["Injectable"] = 2] = "Injectable";
|
|
32556
|
-
FactoryTarget[FactoryTarget["Pipe"] = 3] = "Pipe";
|
|
32557
|
-
FactoryTarget[FactoryTarget["NgModule"] = 4] = "NgModule";
|
|
32558
|
-
})(FactoryTarget || (FactoryTarget = {}));
|
|
32559
|
-
|
|
32560
32579
|
function compileClassMetadata(metadata) {
|
|
32561
32580
|
const fnCall = internalCompileClassMetadata(metadata);
|
|
32562
32581
|
return arrowFn([], [devOnlyGuardedExpression(fnCall).toStmt()]).callFn([]);
|
|
@@ -32694,23 +32713,21 @@ function compileHmrInitializer(meta) {
|
|
|
32694
32713
|
]);
|
|
32695
32714
|
// (m) => m.default && ɵɵreplaceMetadata(...)
|
|
32696
32715
|
const replaceCallback = arrowFn([new FnParam(moduleName)], defaultRead.and(replaceCall));
|
|
32697
|
-
//
|
|
32698
|
-
const
|
|
32699
|
-
.
|
|
32700
|
-
|
|
32701
|
-
|
|
32702
|
-
|
|
32703
|
-
|
|
32704
|
-
// new URL(urlValue, urlBase).href
|
|
32705
|
-
const urlHref = new InstantiateExpr(variable('URL'), [urlValue, urlBase]).prop('href');
|
|
32716
|
+
// getReplaceMetadataURL(id, timestamp, import.meta.url)
|
|
32717
|
+
const url = importExpr(Identifiers.getReplaceMetadataURL)
|
|
32718
|
+
.callFn([
|
|
32719
|
+
variable(idName),
|
|
32720
|
+
variable(timestampName),
|
|
32721
|
+
variable('import').prop('meta').prop('url'),
|
|
32722
|
+
]);
|
|
32706
32723
|
// function Cmp_HmrLoad(t) {
|
|
32707
|
-
// import(/* @vite-ignore */
|
|
32724
|
+
// import(/* @vite-ignore */ url).then((m) => m.default && replaceMetadata(...));
|
|
32708
32725
|
// }
|
|
32709
32726
|
const importCallback = new DeclareFunctionStmt(importCallbackName, [new FnParam(timestampName)], [
|
|
32710
32727
|
// The vite-ignore special comment is required to prevent Vite from generating a superfluous
|
|
32711
32728
|
// warning for each usage within the development code. If Vite provides a method to
|
|
32712
32729
|
// programmatically avoid this warning in the future, this added comment can be removed here.
|
|
32713
|
-
new DynamicImportExpr(
|
|
32730
|
+
new DynamicImportExpr(url, null, '@vite-ignore')
|
|
32714
32731
|
.prop('then')
|
|
32715
32732
|
.callFn([replaceCallback])
|
|
32716
32733
|
.toStmt(),
|
|
@@ -32789,7 +32806,7 @@ const MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION = '18.0.0';
|
|
|
32789
32806
|
function compileDeclareClassMetadata(metadata) {
|
|
32790
32807
|
const definitionMap = new DefinitionMap();
|
|
32791
32808
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
|
|
32792
|
-
definitionMap.set('version', literal('19.2.
|
|
32809
|
+
definitionMap.set('version', literal('19.2.13'));
|
|
32793
32810
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
32794
32811
|
definitionMap.set('type', metadata.type);
|
|
32795
32812
|
definitionMap.set('decorators', metadata.decorators);
|
|
@@ -32807,7 +32824,7 @@ function compileComponentDeclareClassMetadata(metadata, dependencies) {
|
|
|
32807
32824
|
callbackReturnDefinitionMap.set('ctorParameters', metadata.ctorParameters ?? literal(null));
|
|
32808
32825
|
callbackReturnDefinitionMap.set('propDecorators', metadata.propDecorators ?? literal(null));
|
|
32809
32826
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION));
|
|
32810
|
-
definitionMap.set('version', literal('19.2.
|
|
32827
|
+
definitionMap.set('version', literal('19.2.13'));
|
|
32811
32828
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
32812
32829
|
definitionMap.set('type', metadata.type);
|
|
32813
32830
|
definitionMap.set('resolveDeferredDeps', compileComponentMetadataAsyncResolver(dependencies));
|
|
@@ -32902,7 +32919,7 @@ function createDirectiveDefinitionMap(meta) {
|
|
|
32902
32919
|
const definitionMap = new DefinitionMap();
|
|
32903
32920
|
const minVersion = getMinimumVersionForPartialOutput(meta);
|
|
32904
32921
|
definitionMap.set('minVersion', literal(minVersion));
|
|
32905
|
-
definitionMap.set('version', literal('19.2.
|
|
32922
|
+
definitionMap.set('version', literal('19.2.13'));
|
|
32906
32923
|
// e.g. `type: MyDirective`
|
|
32907
32924
|
definitionMap.set('type', meta.type.value);
|
|
32908
32925
|
if (meta.isStandalone !== undefined) {
|
|
@@ -33169,8 +33186,8 @@ function createComponentDefinitionMap(meta, template, templateInfo) {
|
|
|
33169
33186
|
definitionMap.set('changeDetection', importExpr(Identifiers.ChangeDetectionStrategy)
|
|
33170
33187
|
.prop(ChangeDetectionStrategy[meta.changeDetection]));
|
|
33171
33188
|
}
|
|
33172
|
-
if (meta.encapsulation !== ViewEncapsulation.Emulated) {
|
|
33173
|
-
definitionMap.set('encapsulation', importExpr(Identifiers.ViewEncapsulation).prop(ViewEncapsulation[meta.encapsulation]));
|
|
33189
|
+
if (meta.encapsulation !== ViewEncapsulation$1.Emulated) {
|
|
33190
|
+
definitionMap.set('encapsulation', importExpr(Identifiers.ViewEncapsulation).prop(ViewEncapsulation$1[meta.encapsulation]));
|
|
33174
33191
|
}
|
|
33175
33192
|
if (meta.interpolation !== DEFAULT_INTERPOLATION_CONFIG) {
|
|
33176
33193
|
definitionMap.set('interpolation', literalArr([literal(meta.interpolation.start), literal(meta.interpolation.end)]));
|
|
@@ -33318,11 +33335,11 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
|
|
|
33318
33335
|
function compileDeclareFactoryFunction(meta) {
|
|
33319
33336
|
const definitionMap = new DefinitionMap();
|
|
33320
33337
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
|
|
33321
|
-
definitionMap.set('version', literal('19.2.
|
|
33338
|
+
definitionMap.set('version', literal('19.2.13'));
|
|
33322
33339
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
33323
33340
|
definitionMap.set('type', meta.type.value);
|
|
33324
33341
|
definitionMap.set('deps', compileDependencies(meta.deps));
|
|
33325
|
-
definitionMap.set('target', importExpr(Identifiers.FactoryTarget).prop(FactoryTarget
|
|
33342
|
+
definitionMap.set('target', importExpr(Identifiers.FactoryTarget).prop(FactoryTarget[meta.target]));
|
|
33326
33343
|
return {
|
|
33327
33344
|
expression: importExpr(Identifiers.declareFactory).callFn([definitionMap.toLiteralMap()]),
|
|
33328
33345
|
statements: [],
|
|
@@ -33353,7 +33370,7 @@ function compileDeclareInjectableFromMetadata(meta) {
|
|
|
33353
33370
|
function createInjectableDefinitionMap(meta) {
|
|
33354
33371
|
const definitionMap = new DefinitionMap();
|
|
33355
33372
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
|
|
33356
|
-
definitionMap.set('version', literal('19.2.
|
|
33373
|
+
definitionMap.set('version', literal('19.2.13'));
|
|
33357
33374
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
33358
33375
|
definitionMap.set('type', meta.type.value);
|
|
33359
33376
|
// Only generate providedIn property if it has a non-null value
|
|
@@ -33404,7 +33421,7 @@ function compileDeclareInjectorFromMetadata(meta) {
|
|
|
33404
33421
|
function createInjectorDefinitionMap(meta) {
|
|
33405
33422
|
const definitionMap = new DefinitionMap();
|
|
33406
33423
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
|
|
33407
|
-
definitionMap.set('version', literal('19.2.
|
|
33424
|
+
definitionMap.set('version', literal('19.2.13'));
|
|
33408
33425
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
33409
33426
|
definitionMap.set('type', meta.type.value);
|
|
33410
33427
|
definitionMap.set('providers', meta.providers);
|
|
@@ -33437,7 +33454,7 @@ function createNgModuleDefinitionMap(meta) {
|
|
|
33437
33454
|
throw new Error('Invalid path! Local compilation mode should not get into the partial compilation path');
|
|
33438
33455
|
}
|
|
33439
33456
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
|
|
33440
|
-
definitionMap.set('version', literal('19.2.
|
|
33457
|
+
definitionMap.set('version', literal('19.2.13'));
|
|
33441
33458
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
33442
33459
|
definitionMap.set('type', meta.type.value);
|
|
33443
33460
|
// We only generate the keys in the metadata if the arrays contain values.
|
|
@@ -33488,7 +33505,7 @@ function compileDeclarePipeFromMetadata(meta) {
|
|
|
33488
33505
|
function createPipeDefinitionMap(meta) {
|
|
33489
33506
|
const definitionMap = new DefinitionMap();
|
|
33490
33507
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
33491
|
-
definitionMap.set('version', literal('19.2.
|
|
33508
|
+
definitionMap.set('version', literal('19.2.13'));
|
|
33492
33509
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
33493
33510
|
// e.g. `type: MyPipe`
|
|
33494
33511
|
definitionMap.set('type', meta.type.value);
|
|
@@ -33528,5 +33545,5 @@ function createPipeDefinitionMap(meta) {
|
|
|
33528
33545
|
// the late binding of the Compiler to the @angular/core for jit compilation.
|
|
33529
33546
|
publishFacade(_global);
|
|
33530
33547
|
|
|
33531
|
-
export { AST, ASTWithName, ASTWithSource, AbsoluteSourceSpan, ArrayType, ArrowFunctionExpr, Attribute, Binary, BinaryOperator, BinaryOperatorExpr, BindingPipe, BindingType, Block, BlockParameter, BoundElementProperty, BuiltinType, BuiltinTypeName, CUSTOM_ELEMENTS_SCHEMA, Call, Chain, ChangeDetectionStrategy, CommaExpr, Comment, CompilerConfig, Conditional, ConditionalExpr, ConstantPool, CssSelector, DEFAULT_INTERPOLATION_CONFIG, DYNAMIC_TYPE, DeclareFunctionStmt, DeclareVarStmt, DomElementSchemaRegistry, DynamicImportExpr, EOF, Element, ElementSchemaRegistry, EmitterVisitorContext, EmptyExpr$1 as EmptyExpr, Expansion, ExpansionCase, Expression, ExpressionBinding, ExpressionStatement, ExpressionType, ExternalExpr, ExternalReference, FactoryTarget
|
|
33548
|
+
export { AST, ASTWithName, ASTWithSource, AbsoluteSourceSpan, ArrayType, ArrowFunctionExpr, Attribute, Binary, BinaryOperator, BinaryOperatorExpr, BindingPipe, BindingType, Block, BlockParameter, BoundElementProperty, BuiltinType, BuiltinTypeName, CUSTOM_ELEMENTS_SCHEMA, Call, Chain, ChangeDetectionStrategy, CommaExpr, Comment, CompilerConfig, CompilerFacadeImpl, Conditional, ConditionalExpr, ConstantPool, CssSelector, DEFAULT_INTERPOLATION_CONFIG, DYNAMIC_TYPE, DeclareFunctionStmt, DeclareVarStmt, DomElementSchemaRegistry, DynamicImportExpr, EOF, Element, ElementSchemaRegistry, EmitterVisitorContext, EmptyExpr$1 as EmptyExpr, Expansion, ExpansionCase, Expression, ExpressionBinding, ExpressionStatement, ExpressionType, ExternalExpr, ExternalReference, FactoryTarget, FunctionExpr, HtmlParser, HtmlTagDefinition, I18NHtmlParser, IfStmt, ImplicitReceiver, InstantiateExpr, Interpolation$1 as Interpolation, InterpolationConfig, InvokeFunctionExpr, JSDocComment, JitEvaluator, KeyedRead, KeyedWrite, LeadingComment, LetDeclaration, Lexer, LiteralArray, LiteralArrayExpr, LiteralExpr, LiteralMap, LiteralMapExpr, LiteralPrimitive, LocalizedString, MapType, MessageBundle, NONE_TYPE, NO_ERRORS_SCHEMA, NodeWithI18n, NonNullAssert, NotExpr, ParseError, ParseErrorLevel, ParseLocation, ParseSourceFile, ParseSourceSpan, ParseSpan, ParseTreeResult, ParsedEvent, ParsedEventType, ParsedProperty, ParsedPropertyType, ParsedVariable, Parser, ParserError, PrefixNot, PropertyRead, PropertyWrite, R3BoundTarget, Identifiers as R3Identifiers, R3NgModuleMetadataKind, R3SelectorScopeMode, R3TargetBinder, R3TemplateDependencyKind, ReadKeyExpr, ReadPropExpr, ReadVarExpr, RecursiveAstVisitor, RecursiveVisitor, ResourceLoader, ReturnStatement, SECURITY_SCHEMA, STRING_TYPE, SafeCall, SafeKeyedRead, SafePropertyRead, SelectorContext, SelectorListContext, SelectorMatcher, Serializer, SplitInterpolation, Statement, StmtModifier, StringToken, StringTokenKind, TagContentType, TaggedTemplateLiteralExpr, TemplateBindingParseResult, TemplateLiteral, TemplateLiteralElement, TemplateLiteralElementExpr, TemplateLiteralExpr, Text, ThisReceiver, BlockNode as TmplAstBlockNode, BoundAttribute as TmplAstBoundAttribute, BoundDeferredTrigger as TmplAstBoundDeferredTrigger, BoundEvent as TmplAstBoundEvent, BoundText as TmplAstBoundText, Content as TmplAstContent, DeferredBlock as TmplAstDeferredBlock, DeferredBlockError as TmplAstDeferredBlockError, DeferredBlockLoading as TmplAstDeferredBlockLoading, DeferredBlockPlaceholder as TmplAstDeferredBlockPlaceholder, DeferredTrigger as TmplAstDeferredTrigger, Element$1 as TmplAstElement, ForLoopBlock as TmplAstForLoopBlock, ForLoopBlockEmpty as TmplAstForLoopBlockEmpty, HoverDeferredTrigger as TmplAstHoverDeferredTrigger, Icu$1 as TmplAstIcu, IdleDeferredTrigger as TmplAstIdleDeferredTrigger, IfBlock as TmplAstIfBlock, IfBlockBranch as TmplAstIfBlockBranch, ImmediateDeferredTrigger as TmplAstImmediateDeferredTrigger, InteractionDeferredTrigger as TmplAstInteractionDeferredTrigger, LetDeclaration$1 as TmplAstLetDeclaration, NeverDeferredTrigger as TmplAstNeverDeferredTrigger, RecursiveVisitor$1 as TmplAstRecursiveVisitor, Reference as TmplAstReference, SwitchBlock as TmplAstSwitchBlock, SwitchBlockCase as TmplAstSwitchBlockCase, Template as TmplAstTemplate, Text$3 as TmplAstText, TextAttribute as TmplAstTextAttribute, TimerDeferredTrigger as TmplAstTimerDeferredTrigger, UnknownBlock as TmplAstUnknownBlock, Variable as TmplAstVariable, ViewportDeferredTrigger as TmplAstViewportDeferredTrigger, Token, TokenType, TransplantedType, TreeError, Type, TypeModifier, TypeofExpr, TypeofExpression, Unary, UnaryOperator, UnaryOperatorExpr, VERSION, VariableBinding, Version, ViewEncapsulation$1 as ViewEncapsulation, WrappedNodeExpr, WriteKeyExpr, WritePropExpr, WriteVarExpr, Xliff, Xliff2, Xmb, XmlParser, Xtb, compileClassDebugInfo, compileClassMetadata, compileComponentClassMetadata, compileComponentDeclareClassMetadata, compileComponentFromMetadata, compileDeclareClassMetadata, compileDeclareComponentFromMetadata, compileDeclareDirectiveFromMetadata, compileDeclareFactoryFunction, compileDeclareInjectableFromMetadata, compileDeclareInjectorFromMetadata, compileDeclareNgModuleFromMetadata, compileDeclarePipeFromMetadata, compileDeferResolverFunction, compileDirectiveFromMetadata, compileFactoryFunction, compileHmrInitializer, compileHmrUpdateCallback, compileInjectable, compileInjector, compileNgModule, compileOpaqueAsyncClassMetadata, compilePipeFromMetadata, computeMsgId, core, createCssSelectorFromNode, createInjectableType, createMayBeForwardRefExpression, devOnlyGuardedExpression, emitDistinctChangesOnlyDefaultValue, encapsulateStyle, escapeRegExp, findMatchingDirectivesAndPipes, getHtmlTagDefinition, getNsPrefix, getSafePropertyAccessString, identifierName, isNgContainer, isNgContent, isNgTemplate, jsDocComment, leadingComment, literal, literalMap, makeBindingParser, mergeNsAndName, output_ast as outputAst, parseHostBindings, parseTemplate, preserveWhitespacesDefault, publishFacade, r3JitTypeSourceSpan, sanitizeIdentifier, setEnableTemplateSourceLocations, splitNsName, visitAll$1 as tmplAstVisitAll, verifyHostBindings, visitAll };
|
|
33532
33549
|
//# sourceMappingURL=compiler.mjs.map
|