@absolutejs/absolute 0.19.0-beta.924 → 0.19.0-beta.925
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
|
@@ -18839,6 +18839,33 @@ var fail = (reason, detail, location) => ({
|
|
|
18839
18839
|
}
|
|
18840
18840
|
}
|
|
18841
18841
|
return false;
|
|
18842
|
+
}, CONTROL_CREATE_METHOD_NAME = "\u0275ngControlCreate", extractControlCreate = (cls) => {
|
|
18843
|
+
for (const member of cls.members) {
|
|
18844
|
+
if (!ts7.isMethodDeclaration(member))
|
|
18845
|
+
continue;
|
|
18846
|
+
if (member.modifiers?.some((m) => m.kind === ts7.SyntaxKind.StaticKeyword))
|
|
18847
|
+
continue;
|
|
18848
|
+
const name = member.name;
|
|
18849
|
+
if (name === undefined)
|
|
18850
|
+
continue;
|
|
18851
|
+
const nameText = ts7.isIdentifier(name) ? name.text : name.getText();
|
|
18852
|
+
if (nameText !== CONTROL_CREATE_METHOD_NAME)
|
|
18853
|
+
continue;
|
|
18854
|
+
const firstParam = member.parameters[0];
|
|
18855
|
+
if (firstParam === undefined || firstParam.type === undefined || !ts7.isTypeReferenceNode(firstParam.type)) {
|
|
18856
|
+
return { passThroughInput: null };
|
|
18857
|
+
}
|
|
18858
|
+
const typeArgs = firstParam.type.typeArguments;
|
|
18859
|
+
if (typeArgs === undefined || typeArgs.length !== 1) {
|
|
18860
|
+
return { passThroughInput: null };
|
|
18861
|
+
}
|
|
18862
|
+
const arg = typeArgs[0];
|
|
18863
|
+
if (arg === undefined || !ts7.isLiteralTypeNode(arg) || !ts7.isStringLiteral(arg.literal)) {
|
|
18864
|
+
return { passThroughInput: null };
|
|
18865
|
+
}
|
|
18866
|
+
return { passThroughInput: arg.literal.text };
|
|
18867
|
+
}
|
|
18868
|
+
return null;
|
|
18842
18869
|
}, resolveEnumPropertyAccess = (expr, enumName, values) => {
|
|
18843
18870
|
if (!ts7.isPropertyAccessExpression(expr))
|
|
18844
18871
|
return null;
|
|
@@ -20132,7 +20159,7 @@ ${block}
|
|
|
20132
20159
|
inputs,
|
|
20133
20160
|
outputs,
|
|
20134
20161
|
usesInheritance: false,
|
|
20135
|
-
controlCreate:
|
|
20162
|
+
controlCreate: extractControlCreate(classNode),
|
|
20136
20163
|
exportAs: advancedMetadata.exportAs,
|
|
20137
20164
|
providers: advancedMetadata.providers,
|
|
20138
20165
|
isStandalone: decoratorMeta.standalone,
|
|
@@ -31594,5 +31621,5 @@ export {
|
|
|
31594
31621
|
ANGULAR_INIT_TIMEOUT_MS
|
|
31595
31622
|
};
|
|
31596
31623
|
|
|
31597
|
-
//# debugId=
|
|
31624
|
+
//# debugId=C219645E0797323764756E2164756E21
|
|
31598
31625
|
//# sourceMappingURL=index.js.map
|