@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var __require = import.meta.require;
|
|
3
3
|
|
|
4
|
-
// .angular-partial-tmp-
|
|
4
|
+
// .angular-partial-tmp-ywtyMg/src/core/streamingSlotRegistrar.ts
|
|
5
5
|
var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
|
|
6
6
|
var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
|
|
7
7
|
var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var __require = import.meta.require;
|
|
3
3
|
|
|
4
|
-
// .angular-partial-tmp-
|
|
4
|
+
// .angular-partial-tmp-ywtyMg/src/core/streamingSlotRegistrar.ts
|
|
5
5
|
var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
|
|
6
6
|
var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
|
|
7
7
|
var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
|
|
@@ -48,7 +48,7 @@ var warnMissingStreamingSlotCollector = (primitiveName) => {
|
|
|
48
48
|
getWarningController()?.maybeWarn(primitiveName);
|
|
49
49
|
};
|
|
50
50
|
|
|
51
|
-
// .angular-partial-tmp-
|
|
51
|
+
// .angular-partial-tmp-ywtyMg/src/core/streamingSlotRegistry.ts
|
|
52
52
|
var STREAMING_SLOT_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotAsyncLocalStorage");
|
|
53
53
|
var isObjectRecord2 = (value) => Boolean(value) && typeof value === "object";
|
|
54
54
|
var isAsyncLocalStorage = (value) => isObjectRecord2(value) && ("getStore" in value) && typeof value.getStore === "function" && ("run" in value) && typeof value.run === "function";
|
package/dist/build.js
CHANGED
|
@@ -18594,6 +18594,10 @@ var fail = (reason, detail, location) => ({
|
|
|
18594
18594
|
return false;
|
|
18595
18595
|
if (!arraysEqual(a.topLevelImports, b2.topLevelImports))
|
|
18596
18596
|
return false;
|
|
18597
|
+
if (a.encapsulation !== b2.encapsulation)
|
|
18598
|
+
return false;
|
|
18599
|
+
if (a.changeDetection !== b2.changeDetection)
|
|
18600
|
+
return false;
|
|
18597
18601
|
return true;
|
|
18598
18602
|
}, recordFingerprint = (id, fp) => {
|
|
18599
18603
|
fingerprintCache.set(id, fp);
|
|
@@ -18736,7 +18740,16 @@ var fail = (reason, detail, location) => ({
|
|
|
18736
18740
|
}
|
|
18737
18741
|
}
|
|
18738
18742
|
return false;
|
|
18739
|
-
},
|
|
18743
|
+
}, resolveEnumPropertyAccess = (expr, enumName, values) => {
|
|
18744
|
+
if (!ts7.isPropertyAccessExpression(expr))
|
|
18745
|
+
return null;
|
|
18746
|
+
if (!ts7.isIdentifier(expr.expression))
|
|
18747
|
+
return null;
|
|
18748
|
+
if (expr.expression.text !== enumName)
|
|
18749
|
+
return null;
|
|
18750
|
+
const v2 = values[expr.name.text];
|
|
18751
|
+
return typeof v2 === "number" ? v2 : null;
|
|
18752
|
+
}, VIEW_ENCAPSULATION_VALUES, CHANGE_DETECTION_VALUES, readDecoratorMeta = (args, projectDefaults = {}) => {
|
|
18740
18753
|
const styleUrlsExpr = getProperty(args, "styleUrls");
|
|
18741
18754
|
const stylesExpr = getProperty(args, "styles");
|
|
18742
18755
|
const importsExpr = getProperty(args, "imports");
|
|
@@ -18759,7 +18772,13 @@ var fail = (reason, detail, location) => ({
|
|
|
18759
18772
|
styles.push(stylesExpr.text);
|
|
18760
18773
|
}
|
|
18761
18774
|
}
|
|
18775
|
+
const encapsulationExpr = getProperty(args, "encapsulation");
|
|
18776
|
+
const encapsulation = encapsulationExpr ? resolveEnumPropertyAccess(encapsulationExpr, "ViewEncapsulation", VIEW_ENCAPSULATION_VALUES) ?? 0 : 0;
|
|
18777
|
+
const changeDetectionExpr = getProperty(args, "changeDetection");
|
|
18778
|
+
const changeDetection = changeDetectionExpr ? resolveEnumPropertyAccess(changeDetectionExpr, "ChangeDetectionStrategy", CHANGE_DETECTION_VALUES) : null;
|
|
18762
18779
|
return {
|
|
18780
|
+
changeDetection,
|
|
18781
|
+
encapsulation,
|
|
18763
18782
|
hasProviders: getProperty(args, "providers") !== null,
|
|
18764
18783
|
hasViewProviders: getProperty(args, "viewProviders") !== null,
|
|
18765
18784
|
importsExpr: importsExpr && ts7.isArrayLiteralExpression(importsExpr) ? importsExpr : null,
|
|
@@ -19700,8 +19719,10 @@ var fail = (reason, detail, location) => ({
|
|
|
19700
19719
|
const topLevelImports = extractTopLevelImports(sourceFile);
|
|
19701
19720
|
return {
|
|
19702
19721
|
arrowFieldSig,
|
|
19722
|
+
changeDetection: decoratorMeta.changeDetection,
|
|
19703
19723
|
className,
|
|
19704
19724
|
ctorParamTypes,
|
|
19725
|
+
encapsulation: decoratorMeta.encapsulation,
|
|
19705
19726
|
hasProviders: decoratorMeta.hasProviders,
|
|
19706
19727
|
hasViewProviders: decoratorMeta.hasViewProviders,
|
|
19707
19728
|
inputs: inputNames,
|
|
@@ -19986,12 +20007,12 @@ ${block}
|
|
|
19986
20007
|
defer: { dependenciesFn: null, mode: 1 },
|
|
19987
20008
|
declarationListEmitMode: declarations.length > 0 ? 1 : 0,
|
|
19988
20009
|
styles,
|
|
19989
|
-
encapsulation:
|
|
20010
|
+
encapsulation: decoratorMeta.encapsulation,
|
|
19990
20011
|
animations: advancedMetadata.animations,
|
|
19991
20012
|
viewProviders: advancedMetadata.viewProviders,
|
|
19992
20013
|
relativeContextFilePath: projectRelPath,
|
|
19993
20014
|
i18nUseExternalIds: projectDefaults.i18nUseExternalIds ?? false,
|
|
19994
|
-
changeDetection:
|
|
20015
|
+
changeDetection: decoratorMeta.changeDetection,
|
|
19995
20016
|
relativeTemplatePath: null,
|
|
19996
20017
|
hasDirectiveDependencies: declarations.length > 0
|
|
19997
20018
|
};
|
|
@@ -20140,6 +20161,17 @@ var init_fastHmrCompiler = __esm(() => {
|
|
|
20140
20161
|
init_typescript_translator();
|
|
20141
20162
|
fingerprintCache = new Map;
|
|
20142
20163
|
pendingModuleCache = new Map;
|
|
20164
|
+
VIEW_ENCAPSULATION_VALUES = {
|
|
20165
|
+
Emulated: 0,
|
|
20166
|
+
ExperimentalIsolatedShadowDom: 4,
|
|
20167
|
+
None: 2,
|
|
20168
|
+
ShadowDom: 3
|
|
20169
|
+
};
|
|
20170
|
+
CHANGE_DETECTION_VALUES = {
|
|
20171
|
+
Default: 1,
|
|
20172
|
+
Eager: 1,
|
|
20173
|
+
OnPush: 0
|
|
20174
|
+
};
|
|
20143
20175
|
ATTR_BINDING_RE = /^\[([^\]]+)\]$/;
|
|
20144
20176
|
EVENT_BINDING_RE = /^\(([^)]+)\)$/;
|
|
20145
20177
|
QUERY_DECORATORS = new Set([
|
|
@@ -22836,5 +22868,5 @@ export {
|
|
|
22836
22868
|
build
|
|
22837
22869
|
};
|
|
22838
22870
|
|
|
22839
|
-
//# debugId=
|
|
22871
|
+
//# debugId=7DD6570AE26CBE4E64756E2164756E21
|
|
22840
22872
|
//# sourceMappingURL=build.js.map
|