@absolutejs/absolute 0.19.0-beta.919 → 0.19.0-beta.920
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/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/build.js +36 -4
- package/dist/build.js.map +3 -3
- package/dist/index.js +36 -4
- package/dist/index.js.map +3 -3
- package/dist/src/dev/angular/fastHmrCompiler.d.ts +2 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -18691,6 +18691,10 @@ var fail = (reason, detail, location) => ({
|
|
|
18691
18691
|
return false;
|
|
18692
18692
|
if (!arraysEqual(a.topLevelImports, b2.topLevelImports))
|
|
18693
18693
|
return false;
|
|
18694
|
+
if (a.encapsulation !== b2.encapsulation)
|
|
18695
|
+
return false;
|
|
18696
|
+
if (a.changeDetection !== b2.changeDetection)
|
|
18697
|
+
return false;
|
|
18694
18698
|
return true;
|
|
18695
18699
|
}, recordFingerprint = (id, fp) => {
|
|
18696
18700
|
fingerprintCache.set(id, fp);
|
|
@@ -18833,7 +18837,16 @@ var fail = (reason, detail, location) => ({
|
|
|
18833
18837
|
}
|
|
18834
18838
|
}
|
|
18835
18839
|
return false;
|
|
18836
|
-
},
|
|
18840
|
+
}, resolveEnumPropertyAccess = (expr, enumName, values) => {
|
|
18841
|
+
if (!ts7.isPropertyAccessExpression(expr))
|
|
18842
|
+
return null;
|
|
18843
|
+
if (!ts7.isIdentifier(expr.expression))
|
|
18844
|
+
return null;
|
|
18845
|
+
if (expr.expression.text !== enumName)
|
|
18846
|
+
return null;
|
|
18847
|
+
const v2 = values[expr.name.text];
|
|
18848
|
+
return typeof v2 === "number" ? v2 : null;
|
|
18849
|
+
}, VIEW_ENCAPSULATION_VALUES, CHANGE_DETECTION_VALUES, readDecoratorMeta = (args, projectDefaults = {}) => {
|
|
18837
18850
|
const styleUrlsExpr = getProperty(args, "styleUrls");
|
|
18838
18851
|
const stylesExpr = getProperty(args, "styles");
|
|
18839
18852
|
const importsExpr = getProperty(args, "imports");
|
|
@@ -18856,7 +18869,13 @@ var fail = (reason, detail, location) => ({
|
|
|
18856
18869
|
styles.push(stylesExpr.text);
|
|
18857
18870
|
}
|
|
18858
18871
|
}
|
|
18872
|
+
const encapsulationExpr = getProperty(args, "encapsulation");
|
|
18873
|
+
const encapsulation = encapsulationExpr ? resolveEnumPropertyAccess(encapsulationExpr, "ViewEncapsulation", VIEW_ENCAPSULATION_VALUES) ?? 0 : 0;
|
|
18874
|
+
const changeDetectionExpr = getProperty(args, "changeDetection");
|
|
18875
|
+
const changeDetection = changeDetectionExpr ? resolveEnumPropertyAccess(changeDetectionExpr, "ChangeDetectionStrategy", CHANGE_DETECTION_VALUES) : null;
|
|
18859
18876
|
return {
|
|
18877
|
+
changeDetection,
|
|
18878
|
+
encapsulation,
|
|
18860
18879
|
hasProviders: getProperty(args, "providers") !== null,
|
|
18861
18880
|
hasViewProviders: getProperty(args, "viewProviders") !== null,
|
|
18862
18881
|
importsExpr: importsExpr && ts7.isArrayLiteralExpression(importsExpr) ? importsExpr : null,
|
|
@@ -19797,8 +19816,10 @@ var fail = (reason, detail, location) => ({
|
|
|
19797
19816
|
const topLevelImports = extractTopLevelImports(sourceFile);
|
|
19798
19817
|
return {
|
|
19799
19818
|
arrowFieldSig,
|
|
19819
|
+
changeDetection: decoratorMeta.changeDetection,
|
|
19800
19820
|
className,
|
|
19801
19821
|
ctorParamTypes,
|
|
19822
|
+
encapsulation: decoratorMeta.encapsulation,
|
|
19802
19823
|
hasProviders: decoratorMeta.hasProviders,
|
|
19803
19824
|
hasViewProviders: decoratorMeta.hasViewProviders,
|
|
19804
19825
|
inputs: inputNames,
|
|
@@ -20083,12 +20104,12 @@ ${block}
|
|
|
20083
20104
|
defer: { dependenciesFn: null, mode: 1 },
|
|
20084
20105
|
declarationListEmitMode: declarations.length > 0 ? 1 : 0,
|
|
20085
20106
|
styles,
|
|
20086
|
-
encapsulation:
|
|
20107
|
+
encapsulation: decoratorMeta.encapsulation,
|
|
20087
20108
|
animations: advancedMetadata.animations,
|
|
20088
20109
|
viewProviders: advancedMetadata.viewProviders,
|
|
20089
20110
|
relativeContextFilePath: projectRelPath,
|
|
20090
20111
|
i18nUseExternalIds: projectDefaults.i18nUseExternalIds ?? false,
|
|
20091
|
-
changeDetection:
|
|
20112
|
+
changeDetection: decoratorMeta.changeDetection,
|
|
20092
20113
|
relativeTemplatePath: null,
|
|
20093
20114
|
hasDirectiveDependencies: declarations.length > 0
|
|
20094
20115
|
};
|
|
@@ -20237,6 +20258,17 @@ var init_fastHmrCompiler = __esm(() => {
|
|
|
20237
20258
|
init_typescript_translator();
|
|
20238
20259
|
fingerprintCache = new Map;
|
|
20239
20260
|
pendingModuleCache = new Map;
|
|
20261
|
+
VIEW_ENCAPSULATION_VALUES = {
|
|
20262
|
+
Emulated: 0,
|
|
20263
|
+
ExperimentalIsolatedShadowDom: 4,
|
|
20264
|
+
None: 2,
|
|
20265
|
+
ShadowDom: 3
|
|
20266
|
+
};
|
|
20267
|
+
CHANGE_DETECTION_VALUES = {
|
|
20268
|
+
Default: 1,
|
|
20269
|
+
Eager: 1,
|
|
20270
|
+
OnPush: 0
|
|
20271
|
+
};
|
|
20240
20272
|
ATTR_BINDING_RE = /^\[([^\]]+)\]$/;
|
|
20241
20273
|
EVENT_BINDING_RE = /^\(([^)]+)\)$/;
|
|
20242
20274
|
QUERY_DECORATORS = new Set([
|
|
@@ -31494,5 +31526,5 @@ export {
|
|
|
31494
31526
|
ANGULAR_INIT_TIMEOUT_MS
|
|
31495
31527
|
};
|
|
31496
31528
|
|
|
31497
|
-
//# debugId=
|
|
31529
|
+
//# debugId=E82165EB5B2C06C364756E2164756E21
|
|
31498
31530
|
//# sourceMappingURL=index.js.map
|