@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/fesm2015/testing.mjs
CHANGED
package/fesm2020/compiler.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v14.0.0-next.
|
|
2
|
+
* @license Angular v14.0.0-next.8
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -224,11 +224,11 @@ class CssSelector {
|
|
|
224
224
|
const prefix = match[3 /* PREFIX */];
|
|
225
225
|
if (prefix === '#') {
|
|
226
226
|
// #hash
|
|
227
|
-
current.addAttribute('id', tag.
|
|
227
|
+
current.addAttribute('id', tag.slice(1));
|
|
228
228
|
}
|
|
229
229
|
else if (prefix === '.') {
|
|
230
230
|
// Class
|
|
231
|
-
current.addClassName(tag.
|
|
231
|
+
current.addClassName(tag.slice(1));
|
|
232
232
|
}
|
|
233
233
|
else {
|
|
234
234
|
// Element
|
|
@@ -2796,6 +2796,7 @@ Identifiers.stylePropInterpolate7 = { name: 'ɵɵstylePropInterpolate7', moduleN
|
|
|
2796
2796
|
Identifiers.stylePropInterpolate8 = { name: 'ɵɵstylePropInterpolate8', moduleName: CORE };
|
|
2797
2797
|
Identifiers.stylePropInterpolateV = { name: 'ɵɵstylePropInterpolateV', moduleName: CORE };
|
|
2798
2798
|
Identifiers.nextContext = { name: 'ɵɵnextContext', moduleName: CORE };
|
|
2799
|
+
Identifiers.resetView = { name: 'ɵɵresetView', moduleName: CORE };
|
|
2799
2800
|
Identifiers.templateCreate = { name: 'ɵɵtemplate', moduleName: CORE };
|
|
2800
2801
|
Identifiers.text = { name: 'ɵɵtext', moduleName: CORE };
|
|
2801
2802
|
Identifiers.enableBindings = { name: 'ɵɵenableBindings', moduleName: CORE };
|
|
@@ -2906,6 +2907,7 @@ Identifiers.ModuleWithProviders = {
|
|
|
2906
2907
|
Identifiers.defineNgModule = { name: 'ɵɵdefineNgModule', moduleName: CORE };
|
|
2907
2908
|
Identifiers.declareNgModule = { name: 'ɵɵngDeclareNgModule', moduleName: CORE };
|
|
2908
2909
|
Identifiers.setNgModuleScope = { name: 'ɵɵsetNgModuleScope', moduleName: CORE };
|
|
2910
|
+
Identifiers.registerNgModuleType = { name: 'ɵɵregisterNgModuleType', moduleName: CORE };
|
|
2909
2911
|
Identifiers.PipeDeclaration = { name: 'ɵɵPipeDeclaration', moduleName: CORE };
|
|
2910
2912
|
Identifiers.definePipe = { name: 'ɵɵdefinePipe', moduleName: CORE };
|
|
2911
2913
|
Identifiers.declarePipe = { name: 'ɵɵngDeclarePipe', moduleName: CORE };
|
|
@@ -5428,7 +5430,7 @@ class ParseLocation {
|
|
|
5428
5430
|
const ch = source.charCodeAt(offset);
|
|
5429
5431
|
if (ch == $LF) {
|
|
5430
5432
|
line--;
|
|
5431
|
-
const priorLine = source.
|
|
5433
|
+
const priorLine = source.substring(0, offset - 1).lastIndexOf(String.fromCharCode($LF));
|
|
5432
5434
|
col = priorLine > 0 ? offset - priorLine : offset;
|
|
5433
5435
|
}
|
|
5434
5436
|
else {
|
|
@@ -5982,20 +5984,49 @@ class R3JitReflector {
|
|
|
5982
5984
|
* Use of this source code is governed by an MIT-style license that can be
|
|
5983
5985
|
* found in the LICENSE file at https://angular.io/license
|
|
5984
5986
|
*/
|
|
5987
|
+
/**
|
|
5988
|
+
* How the selector scope of an NgModule (its declarations, imports, and exports) should be emitted
|
|
5989
|
+
* as a part of the NgModule definition.
|
|
5990
|
+
*/
|
|
5991
|
+
var R3SelectorScopeMode;
|
|
5992
|
+
(function (R3SelectorScopeMode) {
|
|
5993
|
+
/**
|
|
5994
|
+
* Emit the declarations inline into the module definition.
|
|
5995
|
+
*
|
|
5996
|
+
* This option is useful in certain contexts where it's known that JIT support is required. The
|
|
5997
|
+
* tradeoff here is that this emit style prevents directives and pipes from being tree-shaken if
|
|
5998
|
+
* they are unused, but the NgModule is used.
|
|
5999
|
+
*/
|
|
6000
|
+
R3SelectorScopeMode[R3SelectorScopeMode["Inline"] = 0] = "Inline";
|
|
6001
|
+
/**
|
|
6002
|
+
* Emit the declarations using a side effectful function call, `ɵɵsetNgModuleScope`, that is
|
|
6003
|
+
* guarded with the `ngJitMode` flag.
|
|
6004
|
+
*
|
|
6005
|
+
* This form of emit supports JIT and can be optimized away if the `ngJitMode` flag is set to
|
|
6006
|
+
* false, which allows unused directives and pipes to be tree-shaken.
|
|
6007
|
+
*/
|
|
6008
|
+
R3SelectorScopeMode[R3SelectorScopeMode["SideEffect"] = 1] = "SideEffect";
|
|
6009
|
+
/**
|
|
6010
|
+
* Don't generate selector scopes at all.
|
|
6011
|
+
*
|
|
6012
|
+
* This is useful for contexts where JIT support is known to be unnecessary.
|
|
6013
|
+
*/
|
|
6014
|
+
R3SelectorScopeMode[R3SelectorScopeMode["Omit"] = 2] = "Omit";
|
|
6015
|
+
})(R3SelectorScopeMode || (R3SelectorScopeMode = {}));
|
|
5985
6016
|
/**
|
|
5986
6017
|
* Construct an `R3NgModuleDef` for the given `R3NgModuleMetadata`.
|
|
5987
6018
|
*/
|
|
5988
6019
|
function compileNgModule(meta) {
|
|
5989
|
-
const { internalType, bootstrap, declarations, imports, exports, schemas, containsForwardDecls,
|
|
6020
|
+
const { adjacentType, internalType, bootstrap, declarations, imports, exports, schemas, containsForwardDecls, selectorScopeMode, id } = meta;
|
|
5990
6021
|
const statements = [];
|
|
5991
6022
|
const definitionMap = new DefinitionMap();
|
|
5992
6023
|
definitionMap.set('type', internalType);
|
|
5993
6024
|
if (bootstrap.length > 0) {
|
|
5994
6025
|
definitionMap.set('bootstrap', refsToArray(bootstrap, containsForwardDecls));
|
|
5995
6026
|
}
|
|
5996
|
-
|
|
5997
|
-
|
|
5998
|
-
|
|
6027
|
+
if (selectorScopeMode === R3SelectorScopeMode.Inline) {
|
|
6028
|
+
// If requested to emit scope information inline, pass the `declarations`, `imports` and
|
|
6029
|
+
// `exports` to the `ɵɵdefineNgModule()` call directly.
|
|
5999
6030
|
if (declarations.length > 0) {
|
|
6000
6031
|
definitionMap.set('declarations', refsToArray(declarations, containsForwardDecls));
|
|
6001
6032
|
}
|
|
@@ -6006,19 +6037,27 @@ function compileNgModule(meta) {
|
|
|
6006
6037
|
definitionMap.set('exports', refsToArray(exports, containsForwardDecls));
|
|
6007
6038
|
}
|
|
6008
6039
|
}
|
|
6009
|
-
|
|
6010
|
-
|
|
6011
|
-
|
|
6040
|
+
else if (selectorScopeMode === R3SelectorScopeMode.SideEffect) {
|
|
6041
|
+
// In this mode, scope information is not passed into `ɵɵdefineNgModule` as it
|
|
6042
|
+
// would prevent tree-shaking of the declarations, imports and exports references. Instead, it's
|
|
6043
|
+
// patched onto the NgModule definition with a `ɵɵsetNgModuleScope` call that's guarded by the
|
|
6044
|
+
// `ngJitMode` flag.
|
|
6012
6045
|
const setNgModuleScopeCall = generateSetNgModuleScopeCall(meta);
|
|
6013
6046
|
if (setNgModuleScopeCall !== null) {
|
|
6014
6047
|
statements.push(setNgModuleScopeCall);
|
|
6015
6048
|
}
|
|
6016
6049
|
}
|
|
6050
|
+
else {
|
|
6051
|
+
// Selector scope emit was not requested, so skip it.
|
|
6052
|
+
}
|
|
6017
6053
|
if (schemas !== null && schemas.length > 0) {
|
|
6018
6054
|
definitionMap.set('schemas', literalArr(schemas.map(ref => ref.value)));
|
|
6019
6055
|
}
|
|
6020
6056
|
if (id !== null) {
|
|
6021
6057
|
definitionMap.set('id', id);
|
|
6058
|
+
// Generate a side-effectful call to register this NgModule by its id, as per the semantics of
|
|
6059
|
+
// NgModule ids.
|
|
6060
|
+
statements.push(importExpr(Identifiers.registerNgModuleType).callFn([adjacentType, id]).toStmt());
|
|
6022
6061
|
}
|
|
6023
6062
|
const expression = importExpr(Identifiers.defineNgModule).callFn([definitionMap.toLiteralMap()], undefined, true);
|
|
6024
6063
|
const type = createNgModuleType(meta);
|
|
@@ -7965,7 +8004,7 @@ class ShadowCss {
|
|
|
7965
8004
|
this._scopeSelector(rule.selector, scopeSelector, hostSelector, this.strictStyling);
|
|
7966
8005
|
}
|
|
7967
8006
|
else if (rule.selector.startsWith('@media') || rule.selector.startsWith('@supports') ||
|
|
7968
|
-
rule.selector.startsWith('@document')) {
|
|
8007
|
+
rule.selector.startsWith('@document') || rule.selector.startsWith('@layer')) {
|
|
7969
8008
|
content = this._scopeSelectors(rule.content, scopeSelector, hostSelector);
|
|
7970
8009
|
}
|
|
7971
8010
|
else if (rule.selector.startsWith('@font-face') || rule.selector.startsWith('@page')) {
|
|
@@ -8428,7 +8467,7 @@ function parse(value) {
|
|
|
8428
8467
|
}
|
|
8429
8468
|
}
|
|
8430
8469
|
if (currentProp && valueStart) {
|
|
8431
|
-
const styleVal = value.
|
|
8470
|
+
const styleVal = value.slice(valueStart).trim();
|
|
8432
8471
|
styles.push(currentProp, valueHasQuotes ? stripUnnecessaryQuotes(styleVal) : styleVal);
|
|
8433
8472
|
}
|
|
8434
8473
|
return styles;
|
|
@@ -8606,7 +8645,7 @@ class StylingBuilder {
|
|
|
8606
8645
|
const isClass = !isStyle && (name === 'class' || prefix === 'class.' || prefix === 'class!');
|
|
8607
8646
|
if (isStyle || isClass) {
|
|
8608
8647
|
const isMapBased = name.charAt(5) !== '.'; // style.prop or class.prop makes this a no
|
|
8609
|
-
const property = name.
|
|
8648
|
+
const property = name.slice(isMapBased ? 5 : 6); // the dot explains why there's a +1
|
|
8610
8649
|
if (isStyle) {
|
|
8611
8650
|
binding = this.registerStyleInput(property, isMapBased, expression, sourceSpan);
|
|
8612
8651
|
}
|
|
@@ -8880,7 +8919,7 @@ function parseProperty(name) {
|
|
|
8880
8919
|
let property = name;
|
|
8881
8920
|
const unitIndex = name.lastIndexOf('.');
|
|
8882
8921
|
if (unitIndex > 0) {
|
|
8883
|
-
suffix = name.
|
|
8922
|
+
suffix = name.slice(unitIndex + 1);
|
|
8884
8923
|
property = name.substring(0, unitIndex);
|
|
8885
8924
|
}
|
|
8886
8925
|
return { property, suffix, hasOverrideFlag };
|
|
@@ -13864,7 +13903,7 @@ class EscapedCharacterCursor extends PlainCharacterCursor {
|
|
|
13864
13903
|
}
|
|
13865
13904
|
}
|
|
13866
13905
|
decodeHexDigits(start, length) {
|
|
13867
|
-
const hex = this.input.
|
|
13906
|
+
const hex = this.input.slice(start.internalState.offset, start.internalState.offset + length);
|
|
13868
13907
|
const charCode = parseInt(hex, 16);
|
|
13869
13908
|
if (!isNaN(charCode)) {
|
|
13870
13909
|
return charCode;
|
|
@@ -15262,7 +15301,7 @@ class BindingParser {
|
|
|
15262
15301
|
this._reportError(`Event name is missing in binding`, sourceSpan);
|
|
15263
15302
|
}
|
|
15264
15303
|
if (isAnimationLabel(name)) {
|
|
15265
|
-
name = name.
|
|
15304
|
+
name = name.slice(1);
|
|
15266
15305
|
if (keySpan !== undefined) {
|
|
15267
15306
|
keySpan = moveParseSourceSpan(keySpan, new AbsoluteSourceSpan(keySpan.start.offset + 1, keySpan.end.offset));
|
|
15268
15307
|
}
|
|
@@ -16917,13 +16956,27 @@ function prepareEventListenerParameters(eventAst, handlerName = null, scope = nu
|
|
|
16917
16956
|
scope.getOrCreateSharedContextVar(0);
|
|
16918
16957
|
const bindingStatements = convertActionBinding(scope, implicitReceiverExpr, handler, 'b', eventAst.handlerSpan, implicitReceiverAccesses, EVENT_BINDING_SCOPE_GLOBALS);
|
|
16919
16958
|
const statements = [];
|
|
16920
|
-
|
|
16959
|
+
const variableDeclarations = scope?.variableDeclarations();
|
|
16960
|
+
const restoreViewStatement = scope?.restoreViewStatement();
|
|
16961
|
+
if (variableDeclarations) {
|
|
16921
16962
|
// `variableDeclarations` needs to run first, because
|
|
16922
16963
|
// `restoreViewStatement` depends on the result.
|
|
16923
|
-
statements.push(...
|
|
16924
|
-
statements.unshift(...scope.restoreViewStatement());
|
|
16964
|
+
statements.push(...variableDeclarations);
|
|
16925
16965
|
}
|
|
16926
16966
|
statements.push(...bindingStatements);
|
|
16967
|
+
if (restoreViewStatement) {
|
|
16968
|
+
statements.unshift(restoreViewStatement);
|
|
16969
|
+
// If there's a `restoreView` call, we need to reset the view at the end of the listener
|
|
16970
|
+
// in order to avoid a leak. If there's a `return` statement already, we wrap it in the
|
|
16971
|
+
// call, e.g. `return resetView(ctx.foo())`. Otherwise we add the call as the last statement.
|
|
16972
|
+
const lastStatement = statements[statements.length - 1];
|
|
16973
|
+
if (lastStatement instanceof ReturnStatement) {
|
|
16974
|
+
statements[statements.length - 1] = new ReturnStatement(invokeInstruction(lastStatement.value.sourceSpan, Identifiers.resetView, [lastStatement.value]));
|
|
16975
|
+
}
|
|
16976
|
+
else {
|
|
16977
|
+
statements.push(new ExpressionStatement(invokeInstruction(null, Identifiers.resetView, [])));
|
|
16978
|
+
}
|
|
16979
|
+
}
|
|
16927
16980
|
const eventName = type === 1 /* Animation */ ? prepareSyntheticListenerName(name, phase) : name;
|
|
16928
16981
|
const fnName = handlerName && sanitizeIdentifier(handlerName);
|
|
16929
16982
|
const fnArgs = [];
|
|
@@ -18253,16 +18306,15 @@ class BindingScope {
|
|
|
18253
18306
|
}
|
|
18254
18307
|
}
|
|
18255
18308
|
restoreViewStatement() {
|
|
18256
|
-
const statements = [];
|
|
18257
18309
|
if (this.restoreViewVariable) {
|
|
18258
18310
|
const restoreCall = invokeInstruction(null, Identifiers.restoreView, [this.restoreViewVariable]);
|
|
18259
18311
|
// Either `const restoredCtx = restoreView($state$);` or `restoreView($state$);`
|
|
18260
18312
|
// depending on whether it is being used.
|
|
18261
|
-
|
|
18313
|
+
return this.usesRestoredViewContext ?
|
|
18262
18314
|
variable(RESTORED_VIEW_CONTEXT_NAME).set(restoreCall).toConstDecl() :
|
|
18263
|
-
restoreCall.toStmt()
|
|
18315
|
+
restoreCall.toStmt();
|
|
18264
18316
|
}
|
|
18265
|
-
return
|
|
18317
|
+
return null;
|
|
18266
18318
|
}
|
|
18267
18319
|
viewSnapshotStatements() {
|
|
18268
18320
|
// const $state$ = getCurrentView();
|
|
@@ -19311,7 +19363,7 @@ class CompilerFacadeImpl {
|
|
|
19311
19363
|
declarations: facade.declarations.map(wrapReference),
|
|
19312
19364
|
imports: facade.imports.map(wrapReference),
|
|
19313
19365
|
exports: facade.exports.map(wrapReference),
|
|
19314
|
-
|
|
19366
|
+
selectorScopeMode: R3SelectorScopeMode.Inline,
|
|
19315
19367
|
containsForwardDecls: false,
|
|
19316
19368
|
schemas: facade.schemas ? facade.schemas.map(wrapReference) : null,
|
|
19317
19369
|
id: facade.id ? new WrappedNodeExpr(facade.id) : null,
|
|
@@ -19714,7 +19766,7 @@ function publishFacade(global) {
|
|
|
19714
19766
|
* Use of this source code is governed by an MIT-style license that can be
|
|
19715
19767
|
* found in the LICENSE file at https://angular.io/license
|
|
19716
19768
|
*/
|
|
19717
|
-
const VERSION = new Version('14.0.0-next.
|
|
19769
|
+
const VERSION = new Version('14.0.0-next.8');
|
|
19718
19770
|
|
|
19719
19771
|
/**
|
|
19720
19772
|
* @license
|
|
@@ -21755,7 +21807,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$6 = '12.0.0';
|
|
|
21755
21807
|
function compileDeclareClassMetadata(metadata) {
|
|
21756
21808
|
const definitionMap = new DefinitionMap();
|
|
21757
21809
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$6));
|
|
21758
|
-
definitionMap.set('version', literal('14.0.0-next.
|
|
21810
|
+
definitionMap.set('version', literal('14.0.0-next.8'));
|
|
21759
21811
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
21760
21812
|
definitionMap.set('type', metadata.type);
|
|
21761
21813
|
definitionMap.set('decorators', metadata.decorators);
|
|
@@ -21872,7 +21924,7 @@ function compileDeclareDirectiveFromMetadata(meta) {
|
|
|
21872
21924
|
function createDirectiveDefinitionMap(meta) {
|
|
21873
21925
|
const definitionMap = new DefinitionMap();
|
|
21874
21926
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
|
|
21875
|
-
definitionMap.set('version', literal('14.0.0-next.
|
|
21927
|
+
definitionMap.set('version', literal('14.0.0-next.8'));
|
|
21876
21928
|
// e.g. `type: MyDirective`
|
|
21877
21929
|
definitionMap.set('type', meta.internalType);
|
|
21878
21930
|
// e.g. `selector: 'some-dir'`
|
|
@@ -22093,7 +22145,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
|
|
|
22093
22145
|
function compileDeclareFactoryFunction(meta) {
|
|
22094
22146
|
const definitionMap = new DefinitionMap();
|
|
22095
22147
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
|
|
22096
|
-
definitionMap.set('version', literal('14.0.0-next.
|
|
22148
|
+
definitionMap.set('version', literal('14.0.0-next.8'));
|
|
22097
22149
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
22098
22150
|
definitionMap.set('type', meta.internalType);
|
|
22099
22151
|
definitionMap.set('deps', compileDependencies(meta.deps));
|
|
@@ -22135,7 +22187,7 @@ function compileDeclareInjectableFromMetadata(meta) {
|
|
|
22135
22187
|
function createInjectableDefinitionMap(meta) {
|
|
22136
22188
|
const definitionMap = new DefinitionMap();
|
|
22137
22189
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
|
|
22138
|
-
definitionMap.set('version', literal('14.0.0-next.
|
|
22190
|
+
definitionMap.set('version', literal('14.0.0-next.8'));
|
|
22139
22191
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
22140
22192
|
definitionMap.set('type', meta.internalType);
|
|
22141
22193
|
// Only generate providedIn property if it has a non-null value
|
|
@@ -22193,7 +22245,7 @@ function compileDeclareInjectorFromMetadata(meta) {
|
|
|
22193
22245
|
function createInjectorDefinitionMap(meta) {
|
|
22194
22246
|
const definitionMap = new DefinitionMap();
|
|
22195
22247
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
|
|
22196
|
-
definitionMap.set('version', literal('14.0.0-next.
|
|
22248
|
+
definitionMap.set('version', literal('14.0.0-next.8'));
|
|
22197
22249
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
22198
22250
|
definitionMap.set('type', meta.internalType);
|
|
22199
22251
|
definitionMap.set('providers', meta.providers);
|
|
@@ -22230,7 +22282,7 @@ function compileDeclareNgModuleFromMetadata(meta) {
|
|
|
22230
22282
|
function createNgModuleDefinitionMap(meta) {
|
|
22231
22283
|
const definitionMap = new DefinitionMap();
|
|
22232
22284
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
|
|
22233
|
-
definitionMap.set('version', literal('14.0.0-next.
|
|
22285
|
+
definitionMap.set('version', literal('14.0.0-next.8'));
|
|
22234
22286
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
22235
22287
|
definitionMap.set('type', meta.internalType);
|
|
22236
22288
|
// We only generate the keys in the metadata if the arrays contain values.
|
|
@@ -22288,7 +22340,7 @@ function compileDeclarePipeFromMetadata(meta) {
|
|
|
22288
22340
|
function createPipeDefinitionMap(meta) {
|
|
22289
22341
|
const definitionMap = new DefinitionMap();
|
|
22290
22342
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
22291
|
-
definitionMap.set('version', literal('14.0.0-next.
|
|
22343
|
+
definitionMap.set('version', literal('14.0.0-next.8'));
|
|
22292
22344
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
22293
22345
|
// e.g. `type: MyPipe`
|
|
22294
22346
|
definitionMap.set('type', meta.internalType);
|
|
@@ -22338,5 +22390,5 @@ publishFacade(_global);
|
|
|
22338
22390
|
* found in the LICENSE file at https://angular.io/license
|
|
22339
22391
|
*/
|
|
22340
22392
|
|
|
22341
|
-
export { AST, ASTWithName, ASTWithSource, AbsoluteSourceSpan, ArrayType, AstMemoryEfficientTransformer, AstTransformer, Attribute, Binary, BinaryOperator, BinaryOperatorExpr, BindingPipe, BoundElementProperty, BuiltinType, BuiltinTypeName, CUSTOM_ELEMENTS_SCHEMA, Call, Chain, ChangeDetectionStrategy, CommaExpr, Comment, CompilerConfig, Conditional, ConditionalExpr, ConstantPool, CssSelector, DEFAULT_INTERPOLATION_CONFIG, DYNAMIC_TYPE, DeclareFunctionStmt, DeclareVarStmt, DomElementSchemaRegistry, EOF, Element, ElementSchemaRegistry, EmitterVisitorContext, EmptyExpr, Expansion, ExpansionCase, Expression, ExpressionBinding, ExpressionStatement, ExpressionType, ExternalExpr, ExternalReference, FactoryTarget$1 as FactoryTarget, FunctionExpr, HtmlParser, HtmlTagDefinition, I18NHtmlParser, IfStmt, ImplicitReceiver, InstantiateExpr, Interpolation, InterpolationConfig, InvokeFunctionExpr, JSDocComment, JitEvaluator, KeyedRead, KeyedWrite, LeadingComment, 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, ParsedProperty, ParsedPropertyType, ParsedVariable, Parser$1 as Parser, ParserError, PrefixNot, PropertyRead, PropertyWrite, R3BoundTarget, Identifiers as R3Identifiers, R3TargetBinder, ReadKeyExpr, ReadPropExpr, ReadVarExpr, RecursiveAstVisitor, RecursiveVisitor, ResourceLoader, ReturnStatement, STRING_TYPE, SafeCall, SafeKeyedRead, SafePropertyRead, SelectorContext, SelectorListContext, SelectorMatcher, Serializer, SplitInterpolation, Statement, StmtModifier, TagContentType, TaggedTemplateExpr, TemplateBindingParseResult, TemplateLiteral, TemplateLiteralElement, Text, ThisReceiver, BoundAttribute as TmplAstBoundAttribute, BoundEvent as TmplAstBoundEvent, BoundText as TmplAstBoundText, Content as TmplAstContent, Element$1 as TmplAstElement, Icu$1 as TmplAstIcu, RecursiveVisitor$1 as TmplAstRecursiveVisitor, Reference as TmplAstReference, Template as TmplAstTemplate, Text$3 as TmplAstText, TextAttribute as TmplAstTextAttribute, Variable as TmplAstVariable, Token, TokenType, TreeError, Type, TypeModifier, TypeofExpr, Unary, UnaryOperator, UnaryOperatorExpr, VERSION, VariableBinding, Version, ViewEncapsulation, WrappedNodeExpr, WriteKeyExpr, WritePropExpr, WriteVarExpr, Xliff, Xliff2, Xmb, XmlParser, Xtb, _ParseAST, compileClassMetadata, compileComponentFromMetadata, compileDeclareClassMetadata, compileDeclareComponentFromMetadata, compileDeclareDirectiveFromMetadata, compileDeclareFactoryFunction, compileDeclareInjectableFromMetadata, compileDeclareInjectorFromMetadata, compileDeclareNgModuleFromMetadata, compileDeclarePipeFromMetadata, compileDirectiveFromMetadata, compileFactoryFunction, compileInjectable, compileInjector, compileNgModule, compilePipeFromMetadata, computeMsgId, core, createInjectableType, createMayBeForwardRefExpression, devOnlyGuardedExpression, emitDistinctChangesOnlyDefaultValue, getHtmlTagDefinition, getNsPrefix, getSafePropertyAccessString, identifierName, isIdentifier, isNgContainer, isNgContent, isNgTemplate, jsDocComment, leadingComment, literalMap, makeBindingParser, mergeNsAndName, output_ast as outputAst, parseHostBindings, parseTemplate, preserveWhitespacesDefault, publishFacade, r3JitTypeSourceSpan, sanitizeIdentifier, splitNsName, verifyHostBindings, visitAll };
|
|
22393
|
+
export { AST, ASTWithName, ASTWithSource, AbsoluteSourceSpan, ArrayType, AstMemoryEfficientTransformer, AstTransformer, Attribute, Binary, BinaryOperator, BinaryOperatorExpr, BindingPipe, BoundElementProperty, BuiltinType, BuiltinTypeName, CUSTOM_ELEMENTS_SCHEMA, Call, Chain, ChangeDetectionStrategy, CommaExpr, Comment, CompilerConfig, Conditional, ConditionalExpr, ConstantPool, CssSelector, DEFAULT_INTERPOLATION_CONFIG, DYNAMIC_TYPE, DeclareFunctionStmt, DeclareVarStmt, DomElementSchemaRegistry, EOF, Element, ElementSchemaRegistry, EmitterVisitorContext, EmptyExpr, Expansion, ExpansionCase, Expression, ExpressionBinding, ExpressionStatement, ExpressionType, ExternalExpr, ExternalReference, FactoryTarget$1 as FactoryTarget, FunctionExpr, HtmlParser, HtmlTagDefinition, I18NHtmlParser, IfStmt, ImplicitReceiver, InstantiateExpr, Interpolation, InterpolationConfig, InvokeFunctionExpr, JSDocComment, JitEvaluator, KeyedRead, KeyedWrite, LeadingComment, 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, ParsedProperty, ParsedPropertyType, ParsedVariable, Parser$1 as Parser, ParserError, PrefixNot, PropertyRead, PropertyWrite, R3BoundTarget, Identifiers as R3Identifiers, R3SelectorScopeMode, R3TargetBinder, ReadKeyExpr, ReadPropExpr, ReadVarExpr, RecursiveAstVisitor, RecursiveVisitor, ResourceLoader, ReturnStatement, STRING_TYPE, SafeCall, SafeKeyedRead, SafePropertyRead, SelectorContext, SelectorListContext, SelectorMatcher, Serializer, SplitInterpolation, Statement, StmtModifier, TagContentType, TaggedTemplateExpr, TemplateBindingParseResult, TemplateLiteral, TemplateLiteralElement, Text, ThisReceiver, BoundAttribute as TmplAstBoundAttribute, BoundEvent as TmplAstBoundEvent, BoundText as TmplAstBoundText, Content as TmplAstContent, Element$1 as TmplAstElement, Icu$1 as TmplAstIcu, RecursiveVisitor$1 as TmplAstRecursiveVisitor, Reference as TmplAstReference, Template as TmplAstTemplate, Text$3 as TmplAstText, TextAttribute as TmplAstTextAttribute, Variable as TmplAstVariable, Token, TokenType, TreeError, Type, TypeModifier, TypeofExpr, Unary, UnaryOperator, UnaryOperatorExpr, VERSION, VariableBinding, Version, ViewEncapsulation, WrappedNodeExpr, WriteKeyExpr, WritePropExpr, WriteVarExpr, Xliff, Xliff2, Xmb, XmlParser, Xtb, _ParseAST, compileClassMetadata, compileComponentFromMetadata, compileDeclareClassMetadata, compileDeclareComponentFromMetadata, compileDeclareDirectiveFromMetadata, compileDeclareFactoryFunction, compileDeclareInjectableFromMetadata, compileDeclareInjectorFromMetadata, compileDeclareNgModuleFromMetadata, compileDeclarePipeFromMetadata, compileDirectiveFromMetadata, compileFactoryFunction, compileInjectable, compileInjector, compileNgModule, compilePipeFromMetadata, computeMsgId, core, createInjectableType, createMayBeForwardRefExpression, devOnlyGuardedExpression, emitDistinctChangesOnlyDefaultValue, getHtmlTagDefinition, getNsPrefix, getSafePropertyAccessString, identifierName, isIdentifier, isNgContainer, isNgContent, isNgTemplate, jsDocComment, leadingComment, literalMap, makeBindingParser, mergeNsAndName, output_ast as outputAst, parseHostBindings, parseTemplate, preserveWhitespacesDefault, publishFacade, r3JitTypeSourceSpan, sanitizeIdentifier, splitNsName, verifyHostBindings, visitAll };
|
|
22342
22394
|
//# sourceMappingURL=compiler.mjs.map
|