@angular/compiler 15.2.0-next.0 → 15.2.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/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/view/t2_binder.mjs +1 -2
- package/esm2020/src/shadow_css.mjs +11 -2
- package/esm2020/src/version.mjs +1 -1
- package/fesm2015/compiler.mjs +20 -11
- package/fesm2015/compiler.mjs.map +1 -1
- package/fesm2015/testing.mjs +1 -1
- package/fesm2020/compiler.mjs +19 -11
- package/fesm2020/compiler.mjs.map +1 -1
- package/fesm2020/testing.mjs +1 -1
- package/index.d.ts +1 -1
- package/package.json +2 -2
- package/testing/index.d.ts +1 -1
package/fesm2015/testing.mjs
CHANGED
package/fesm2020/compiler.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v15.
|
|
2
|
+
* @license Angular v15.2.0-next.2
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -7562,6 +7562,7 @@ const animationKeywords = new Set([
|
|
|
7562
7562
|
*/
|
|
7563
7563
|
class ShadowCss {
|
|
7564
7564
|
constructor() {
|
|
7565
|
+
// TODO: Is never re-assigned, could be removed.
|
|
7565
7566
|
this.strictStyling = true;
|
|
7566
7567
|
/**
|
|
7567
7568
|
* Regular expression used to extrapolate the possible keyframes from an
|
|
@@ -8071,6 +8072,13 @@ class ShadowCss {
|
|
|
8071
8072
|
while ((res = sep.exec(selector)) !== null) {
|
|
8072
8073
|
const separator = res[1];
|
|
8073
8074
|
const part = selector.slice(startIndex, res.index).trim();
|
|
8075
|
+
// A space following an escaped hex value and followed by another hex character
|
|
8076
|
+
// (ie: ".\fc ber" for ".über") is not a separator between 2 selectors
|
|
8077
|
+
// also keep in mind that backslashes are replaced by a placeholder by SafeSelector
|
|
8078
|
+
// These escaped selectors happen for example when esbuild runs with optimization.minify.
|
|
8079
|
+
if (part.match(_placeholderRe) && selector[res.index + 1]?.match(/[a-fA-F\d]/)) {
|
|
8080
|
+
continue;
|
|
8081
|
+
}
|
|
8074
8082
|
shouldScope = shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1;
|
|
8075
8083
|
const scopedPart = shouldScope ? _scopeSelectorPart(part) : part;
|
|
8076
8084
|
scopedSelector += `${scopedPart} ${separator} `;
|
|
@@ -8110,7 +8118,7 @@ class SafeSelector {
|
|
|
8110
8118
|
});
|
|
8111
8119
|
}
|
|
8112
8120
|
restore(content) {
|
|
8113
|
-
return content.replace(
|
|
8121
|
+
return content.replace(_placeholderRe, (_ph, index) => this.placeholders[+index]);
|
|
8114
8122
|
}
|
|
8115
8123
|
content() {
|
|
8116
8124
|
return this._content;
|
|
@@ -8158,6 +8166,7 @@ const _polyfillHostRe = /-shadowcsshost/gim;
|
|
|
8158
8166
|
const _colonHostRe = /:host/gim;
|
|
8159
8167
|
const _colonHostContextRe = /:host-context/gim;
|
|
8160
8168
|
const _commentRe = /\/\*[\s\S]*?\*\//g;
|
|
8169
|
+
const _placeholderRe = /__ph-(\d+)__/g;
|
|
8161
8170
|
function stripComments(input) {
|
|
8162
8171
|
return input.replace(_commentRe, '');
|
|
8163
8172
|
}
|
|
@@ -19913,7 +19922,7 @@ function publishFacade(global) {
|
|
|
19913
19922
|
* @description
|
|
19914
19923
|
* Entry point for all public APIs of the compiler package.
|
|
19915
19924
|
*/
|
|
19916
|
-
const VERSION = new Version('15.2.0-next.
|
|
19925
|
+
const VERSION = new Version('15.2.0-next.2');
|
|
19917
19926
|
|
|
19918
19927
|
class CompilerConfig {
|
|
19919
19928
|
constructor({ defaultEncapsulation = ViewEncapsulation.Emulated, useJit = true, missingTranslation = null, preserveWhitespaces, strictInjectionParameters } = {}) {
|
|
@@ -21604,7 +21613,6 @@ class TemplateBinder extends RecursiveAstVisitor {
|
|
|
21604
21613
|
this.scope = scope;
|
|
21605
21614
|
this.template = template;
|
|
21606
21615
|
this.level = level;
|
|
21607
|
-
this.pipesUsed = [];
|
|
21608
21616
|
// Save a bit of processing time by constructing this closure in advance.
|
|
21609
21617
|
this.visitNode = (node) => node.visit(this);
|
|
21610
21618
|
}
|
|
@@ -21838,7 +21846,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$6 = '12.0.0';
|
|
|
21838
21846
|
function compileDeclareClassMetadata(metadata) {
|
|
21839
21847
|
const definitionMap = new DefinitionMap();
|
|
21840
21848
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$6));
|
|
21841
|
-
definitionMap.set('version', literal('15.2.0-next.
|
|
21849
|
+
definitionMap.set('version', literal('15.2.0-next.2'));
|
|
21842
21850
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
21843
21851
|
definitionMap.set('type', metadata.type);
|
|
21844
21852
|
definitionMap.set('decorators', metadata.decorators);
|
|
@@ -21941,7 +21949,7 @@ function compileDeclareDirectiveFromMetadata(meta) {
|
|
|
21941
21949
|
function createDirectiveDefinitionMap(meta) {
|
|
21942
21950
|
const definitionMap = new DefinitionMap();
|
|
21943
21951
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
|
|
21944
|
-
definitionMap.set('version', literal('15.2.0-next.
|
|
21952
|
+
definitionMap.set('version', literal('15.2.0-next.2'));
|
|
21945
21953
|
// e.g. `type: MyDirective`
|
|
21946
21954
|
definitionMap.set('type', meta.internalType);
|
|
21947
21955
|
if (meta.isStandalone) {
|
|
@@ -22166,7 +22174,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
|
|
|
22166
22174
|
function compileDeclareFactoryFunction(meta) {
|
|
22167
22175
|
const definitionMap = new DefinitionMap();
|
|
22168
22176
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
|
|
22169
|
-
definitionMap.set('version', literal('15.2.0-next.
|
|
22177
|
+
definitionMap.set('version', literal('15.2.0-next.2'));
|
|
22170
22178
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
22171
22179
|
definitionMap.set('type', meta.internalType);
|
|
22172
22180
|
definitionMap.set('deps', compileDependencies(meta.deps));
|
|
@@ -22201,7 +22209,7 @@ function compileDeclareInjectableFromMetadata(meta) {
|
|
|
22201
22209
|
function createInjectableDefinitionMap(meta) {
|
|
22202
22210
|
const definitionMap = new DefinitionMap();
|
|
22203
22211
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
|
|
22204
|
-
definitionMap.set('version', literal('15.2.0-next.
|
|
22212
|
+
definitionMap.set('version', literal('15.2.0-next.2'));
|
|
22205
22213
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
22206
22214
|
definitionMap.set('type', meta.internalType);
|
|
22207
22215
|
// Only generate providedIn property if it has a non-null value
|
|
@@ -22252,7 +22260,7 @@ function compileDeclareInjectorFromMetadata(meta) {
|
|
|
22252
22260
|
function createInjectorDefinitionMap(meta) {
|
|
22253
22261
|
const definitionMap = new DefinitionMap();
|
|
22254
22262
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
|
|
22255
|
-
definitionMap.set('version', literal('15.2.0-next.
|
|
22263
|
+
definitionMap.set('version', literal('15.2.0-next.2'));
|
|
22256
22264
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
22257
22265
|
definitionMap.set('type', meta.internalType);
|
|
22258
22266
|
definitionMap.set('providers', meta.providers);
|
|
@@ -22282,7 +22290,7 @@ function compileDeclareNgModuleFromMetadata(meta) {
|
|
|
22282
22290
|
function createNgModuleDefinitionMap(meta) {
|
|
22283
22291
|
const definitionMap = new DefinitionMap();
|
|
22284
22292
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
|
|
22285
|
-
definitionMap.set('version', literal('15.2.0-next.
|
|
22293
|
+
definitionMap.set('version', literal('15.2.0-next.2'));
|
|
22286
22294
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
22287
22295
|
definitionMap.set('type', meta.internalType);
|
|
22288
22296
|
// We only generate the keys in the metadata if the arrays contain values.
|
|
@@ -22333,7 +22341,7 @@ function compileDeclarePipeFromMetadata(meta) {
|
|
|
22333
22341
|
function createPipeDefinitionMap(meta) {
|
|
22334
22342
|
const definitionMap = new DefinitionMap();
|
|
22335
22343
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
22336
|
-
definitionMap.set('version', literal('15.2.0-next.
|
|
22344
|
+
definitionMap.set('version', literal('15.2.0-next.2'));
|
|
22337
22345
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
22338
22346
|
// e.g. `type: MyPipe`
|
|
22339
22347
|
definitionMap.set('type', meta.internalType);
|