@absolutejs/absolute 0.19.0-beta.922 → 0.19.0-beta.924
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 +46 -5
- package/dist/build.js.map +3 -3
- package/dist/index.js +46 -5
- package/dist/index.js.map +3 -3
- package/dist/src/dev/angular/fastHmrCompiler.d.ts +1 -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-7knHfK/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-7knHfK/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-7knHfK/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,8 @@ var fail = (reason, detail, location) => ({
|
|
|
18594
18594
|
return false;
|
|
18595
18595
|
if (!arraysEqual(a.topLevelImports, b2.topLevelImports))
|
|
18596
18596
|
return false;
|
|
18597
|
+
if (!arraysEqual(a.propertyFieldNames, b2.propertyFieldNames))
|
|
18598
|
+
return false;
|
|
18597
18599
|
if (a.encapsulation !== b2.encapsulation)
|
|
18598
18600
|
return false;
|
|
18599
18601
|
if (a.changeDetection !== b2.changeDetection)
|
|
@@ -18915,30 +18917,36 @@ var fail = (reason, detail, location) => ({
|
|
|
18915
18917
|
}, extractInputsAndOutputs = (cls, compiler) => {
|
|
18916
18918
|
const inputs = {};
|
|
18917
18919
|
const outputs = {};
|
|
18920
|
+
let hasDecoratorIO = false;
|
|
18921
|
+
let hasSignalIO = false;
|
|
18918
18922
|
for (const member of cls.members) {
|
|
18919
18923
|
if (!ts7.isPropertyDeclaration(member))
|
|
18920
18924
|
continue;
|
|
18921
18925
|
const decoratorIn = extractDecoratorInput(member, compiler);
|
|
18922
18926
|
if (decoratorIn) {
|
|
18923
18927
|
inputs[decoratorIn.classPropertyName] = decoratorIn.meta;
|
|
18928
|
+
hasDecoratorIO = true;
|
|
18924
18929
|
continue;
|
|
18925
18930
|
}
|
|
18926
18931
|
const signalIn = extractSignalInput(member, compiler);
|
|
18927
18932
|
if (signalIn) {
|
|
18928
18933
|
inputs[signalIn.classPropertyName] = signalIn.meta;
|
|
18934
|
+
hasSignalIO = true;
|
|
18929
18935
|
continue;
|
|
18930
18936
|
}
|
|
18931
18937
|
const decoratorOut = extractDecoratorOutput(member);
|
|
18932
18938
|
if (decoratorOut) {
|
|
18933
18939
|
outputs[decoratorOut.classPropertyName] = decoratorOut.bindingName;
|
|
18940
|
+
hasDecoratorIO = true;
|
|
18934
18941
|
continue;
|
|
18935
18942
|
}
|
|
18936
18943
|
const signalOut = extractSignalOutput(member);
|
|
18937
18944
|
if (signalOut) {
|
|
18938
18945
|
outputs[signalOut.classPropertyName] = signalOut.bindingName;
|
|
18946
|
+
hasSignalIO = true;
|
|
18939
18947
|
}
|
|
18940
18948
|
}
|
|
18941
|
-
return { inputs, outputs };
|
|
18949
|
+
return { inputs, outputs, hasDecoratorIO, hasSignalIO };
|
|
18942
18950
|
}, ATTR_BINDING_RE, EVENT_BINDING_RE, emptyHost = () => ({
|
|
18943
18951
|
attributes: {},
|
|
18944
18952
|
listeners: {},
|
|
@@ -19675,6 +19683,19 @@ var fail = (reason, detail, location) => ({
|
|
|
19675
19683
|
}
|
|
19676
19684
|
}
|
|
19677
19685
|
return sig.sort();
|
|
19686
|
+
}, extractPropertyFieldNames = (cls) => {
|
|
19687
|
+
const names = [];
|
|
19688
|
+
for (const member of cls.members) {
|
|
19689
|
+
if (!ts7.isPropertyDeclaration(member))
|
|
19690
|
+
continue;
|
|
19691
|
+
const name = member.name;
|
|
19692
|
+
if (name === undefined)
|
|
19693
|
+
continue;
|
|
19694
|
+
const text = ts7.isIdentifier(name) ? name.text : ts7.isStringLiteral(name) || ts7.isNoSubstitutionTemplateLiteral(name) ? name.text : name.getText();
|
|
19695
|
+
if (text.length > 0)
|
|
19696
|
+
names.push(text);
|
|
19697
|
+
}
|
|
19698
|
+
return names.sort();
|
|
19678
19699
|
}, extractTopLevelImports = (sourceFile) => {
|
|
19679
19700
|
const names = new Set;
|
|
19680
19701
|
for (const stmt of sourceFile.statements) {
|
|
@@ -19707,7 +19728,20 @@ var fail = (reason, detail, location) => ({
|
|
|
19707
19728
|
if (!ts7.isConstructorDeclaration(member))
|
|
19708
19729
|
continue;
|
|
19709
19730
|
for (const param of member.parameters) {
|
|
19710
|
-
|
|
19731
|
+
const typeText = param.type ? param.type.getText() : "";
|
|
19732
|
+
const decorators = ts7.getDecorators(param) ?? [];
|
|
19733
|
+
const decoratorSig = decorators.length === 0 ? "" : decorators.map((d2) => {
|
|
19734
|
+
const expr = d2.expression;
|
|
19735
|
+
if (ts7.isCallExpression(expr) && ts7.isIdentifier(expr.expression)) {
|
|
19736
|
+
const args = expr.arguments.map((a) => a.getText()).join(",");
|
|
19737
|
+
return `@${expr.expression.text}(${args})`;
|
|
19738
|
+
}
|
|
19739
|
+
if (ts7.isIdentifier(expr)) {
|
|
19740
|
+
return `@${expr.text}`;
|
|
19741
|
+
}
|
|
19742
|
+
return "@<unknown>";
|
|
19743
|
+
}).join("");
|
|
19744
|
+
ctorParamTypes.push(`${typeText}${decoratorSig}`);
|
|
19711
19745
|
}
|
|
19712
19746
|
break;
|
|
19713
19747
|
}
|
|
@@ -19717,6 +19751,7 @@ var fail = (reason, detail, location) => ({
|
|
|
19717
19751
|
const memberDecoratorSig = extractMemberDecoratorSig(cls);
|
|
19718
19752
|
const providerImportSig = extractProviderImportSig(decoratorMeta.importsExpr, sourceFile, componentDir);
|
|
19719
19753
|
const topLevelImports = extractTopLevelImports(sourceFile);
|
|
19754
|
+
const propertyFieldNames = extractPropertyFieldNames(cls);
|
|
19720
19755
|
return {
|
|
19721
19756
|
arrowFieldSig,
|
|
19722
19757
|
changeDetection: decoratorMeta.changeDetection,
|
|
@@ -19728,6 +19763,7 @@ var fail = (reason, detail, location) => ({
|
|
|
19728
19763
|
inputs: inputNames,
|
|
19729
19764
|
memberDecoratorSig,
|
|
19730
19765
|
outputs: outputNames,
|
|
19766
|
+
propertyFieldNames,
|
|
19731
19767
|
providerImportSig,
|
|
19732
19768
|
selector: decoratorMeta.selector,
|
|
19733
19769
|
standalone: decoratorMeta.standalone,
|
|
@@ -19960,7 +19996,12 @@ ${block}
|
|
|
19960
19996
|
if (!className_)
|
|
19961
19997
|
return fail("class-not-found", "anonymous class");
|
|
19962
19998
|
const wrappedClass = new compiler.WrappedNodeExpr(className_);
|
|
19963
|
-
const {
|
|
19999
|
+
const {
|
|
20000
|
+
inputs,
|
|
20001
|
+
outputs,
|
|
20002
|
+
hasDecoratorIO,
|
|
20003
|
+
hasSignalIO
|
|
20004
|
+
} = extractInputsAndOutputs(classNode, compiler);
|
|
19964
20005
|
const projectRelPath = relative13(projectRoot, componentFilePath).replace(/\\/g, "/");
|
|
19965
20006
|
const fingerprintId = encodeURIComponent(`${projectRelPath}@${className}`);
|
|
19966
20007
|
const currentFingerprint = extractFingerprint(classNode, className, decoratorMeta, inputs, outputs, sourceFile, componentDir);
|
|
@@ -19998,7 +20039,7 @@ ${block}
|
|
|
19998
20039
|
exportAs: advancedMetadata.exportAs,
|
|
19999
20040
|
providers: advancedMetadata.providers,
|
|
20000
20041
|
isStandalone: decoratorMeta.standalone,
|
|
20001
|
-
isSignal:
|
|
20042
|
+
isSignal: (hasSignalIO || advancedMetadata.contentQueries.some((q2) => q2.isSignal) || advancedMetadata.viewQueries.some((q2) => q2.isSignal)) && !hasDecoratorIO && !advancedMetadata.contentQueries.some((q2) => !q2.isSignal) && !advancedMetadata.viewQueries.some((q2) => !q2.isSignal),
|
|
20002
20043
|
hostDirectives: advancedMetadata.hostDirectives,
|
|
20003
20044
|
template: {
|
|
20004
20045
|
nodes: parsed.nodes,
|
|
@@ -22895,5 +22936,5 @@ export {
|
|
|
22895
22936
|
build
|
|
22896
22937
|
};
|
|
22897
22938
|
|
|
22898
|
-
//# debugId=
|
|
22939
|
+
//# debugId=14E889113E4EC0CF64756E2164756E21
|
|
22899
22940
|
//# sourceMappingURL=build.js.map
|