@absolutejs/absolute 0.19.0-beta.923 → 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/index.js
CHANGED
|
@@ -19014,30 +19014,36 @@ var fail = (reason, detail, location) => ({
|
|
|
19014
19014
|
}, extractInputsAndOutputs = (cls, compiler) => {
|
|
19015
19015
|
const inputs = {};
|
|
19016
19016
|
const outputs = {};
|
|
19017
|
+
let hasDecoratorIO = false;
|
|
19018
|
+
let hasSignalIO = false;
|
|
19017
19019
|
for (const member of cls.members) {
|
|
19018
19020
|
if (!ts7.isPropertyDeclaration(member))
|
|
19019
19021
|
continue;
|
|
19020
19022
|
const decoratorIn = extractDecoratorInput(member, compiler);
|
|
19021
19023
|
if (decoratorIn) {
|
|
19022
19024
|
inputs[decoratorIn.classPropertyName] = decoratorIn.meta;
|
|
19025
|
+
hasDecoratorIO = true;
|
|
19023
19026
|
continue;
|
|
19024
19027
|
}
|
|
19025
19028
|
const signalIn = extractSignalInput(member, compiler);
|
|
19026
19029
|
if (signalIn) {
|
|
19027
19030
|
inputs[signalIn.classPropertyName] = signalIn.meta;
|
|
19031
|
+
hasSignalIO = true;
|
|
19028
19032
|
continue;
|
|
19029
19033
|
}
|
|
19030
19034
|
const decoratorOut = extractDecoratorOutput(member);
|
|
19031
19035
|
if (decoratorOut) {
|
|
19032
19036
|
outputs[decoratorOut.classPropertyName] = decoratorOut.bindingName;
|
|
19037
|
+
hasDecoratorIO = true;
|
|
19033
19038
|
continue;
|
|
19034
19039
|
}
|
|
19035
19040
|
const signalOut = extractSignalOutput(member);
|
|
19036
19041
|
if (signalOut) {
|
|
19037
19042
|
outputs[signalOut.classPropertyName] = signalOut.bindingName;
|
|
19043
|
+
hasSignalIO = true;
|
|
19038
19044
|
}
|
|
19039
19045
|
}
|
|
19040
|
-
return { inputs, outputs };
|
|
19046
|
+
return { inputs, outputs, hasDecoratorIO, hasSignalIO };
|
|
19041
19047
|
}, ATTR_BINDING_RE, EVENT_BINDING_RE, emptyHost = () => ({
|
|
19042
19048
|
attributes: {},
|
|
19043
19049
|
listeners: {},
|
|
@@ -19819,7 +19825,20 @@ var fail = (reason, detail, location) => ({
|
|
|
19819
19825
|
if (!ts7.isConstructorDeclaration(member))
|
|
19820
19826
|
continue;
|
|
19821
19827
|
for (const param of member.parameters) {
|
|
19822
|
-
|
|
19828
|
+
const typeText = param.type ? param.type.getText() : "";
|
|
19829
|
+
const decorators = ts7.getDecorators(param) ?? [];
|
|
19830
|
+
const decoratorSig = decorators.length === 0 ? "" : decorators.map((d2) => {
|
|
19831
|
+
const expr = d2.expression;
|
|
19832
|
+
if (ts7.isCallExpression(expr) && ts7.isIdentifier(expr.expression)) {
|
|
19833
|
+
const args = expr.arguments.map((a) => a.getText()).join(",");
|
|
19834
|
+
return `@${expr.expression.text}(${args})`;
|
|
19835
|
+
}
|
|
19836
|
+
if (ts7.isIdentifier(expr)) {
|
|
19837
|
+
return `@${expr.text}`;
|
|
19838
|
+
}
|
|
19839
|
+
return "@<unknown>";
|
|
19840
|
+
}).join("");
|
|
19841
|
+
ctorParamTypes.push(`${typeText}${decoratorSig}`);
|
|
19823
19842
|
}
|
|
19824
19843
|
break;
|
|
19825
19844
|
}
|
|
@@ -20074,7 +20093,12 @@ ${block}
|
|
|
20074
20093
|
if (!className_)
|
|
20075
20094
|
return fail("class-not-found", "anonymous class");
|
|
20076
20095
|
const wrappedClass = new compiler.WrappedNodeExpr(className_);
|
|
20077
|
-
const {
|
|
20096
|
+
const {
|
|
20097
|
+
inputs,
|
|
20098
|
+
outputs,
|
|
20099
|
+
hasDecoratorIO,
|
|
20100
|
+
hasSignalIO
|
|
20101
|
+
} = extractInputsAndOutputs(classNode, compiler);
|
|
20078
20102
|
const projectRelPath = relative13(projectRoot, componentFilePath).replace(/\\/g, "/");
|
|
20079
20103
|
const fingerprintId = encodeURIComponent(`${projectRelPath}@${className}`);
|
|
20080
20104
|
const currentFingerprint = extractFingerprint(classNode, className, decoratorMeta, inputs, outputs, sourceFile, componentDir);
|
|
@@ -20112,7 +20136,7 @@ ${block}
|
|
|
20112
20136
|
exportAs: advancedMetadata.exportAs,
|
|
20113
20137
|
providers: advancedMetadata.providers,
|
|
20114
20138
|
isStandalone: decoratorMeta.standalone,
|
|
20115
|
-
isSignal:
|
|
20139
|
+
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),
|
|
20116
20140
|
hostDirectives: advancedMetadata.hostDirectives,
|
|
20117
20141
|
template: {
|
|
20118
20142
|
nodes: parsed.nodes,
|
|
@@ -31570,5 +31594,5 @@ export {
|
|
|
31570
31594
|
ANGULAR_INIT_TIMEOUT_MS
|
|
31571
31595
|
};
|
|
31572
31596
|
|
|
31573
|
-
//# debugId=
|
|
31597
|
+
//# debugId=F92C1416B50F9B9A64756E2164756E21
|
|
31574
31598
|
//# sourceMappingURL=index.js.map
|