@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.
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  var __require = import.meta.require;
3
3
 
4
- // .angular-partial-tmp-7knHfK/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-V4sB2h/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-7knHfK/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-V4sB2h/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-7knHfK/src/core/streamingSlotRegistry.ts
51
+ // .angular-partial-tmp-V4sB2h/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
@@ -18742,6 +18742,33 @@ var fail = (reason, detail, location) => ({
18742
18742
  }
18743
18743
  }
18744
18744
  return false;
18745
+ }, CONTROL_CREATE_METHOD_NAME = "\u0275ngControlCreate", extractControlCreate = (cls) => {
18746
+ for (const member of cls.members) {
18747
+ if (!ts7.isMethodDeclaration(member))
18748
+ continue;
18749
+ if (member.modifiers?.some((m) => m.kind === ts7.SyntaxKind.StaticKeyword))
18750
+ continue;
18751
+ const name = member.name;
18752
+ if (name === undefined)
18753
+ continue;
18754
+ const nameText = ts7.isIdentifier(name) ? name.text : name.getText();
18755
+ if (nameText !== CONTROL_CREATE_METHOD_NAME)
18756
+ continue;
18757
+ const firstParam = member.parameters[0];
18758
+ if (firstParam === undefined || firstParam.type === undefined || !ts7.isTypeReferenceNode(firstParam.type)) {
18759
+ return { passThroughInput: null };
18760
+ }
18761
+ const typeArgs = firstParam.type.typeArguments;
18762
+ if (typeArgs === undefined || typeArgs.length !== 1) {
18763
+ return { passThroughInput: null };
18764
+ }
18765
+ const arg = typeArgs[0];
18766
+ if (arg === undefined || !ts7.isLiteralTypeNode(arg) || !ts7.isStringLiteral(arg.literal)) {
18767
+ return { passThroughInput: null };
18768
+ }
18769
+ return { passThroughInput: arg.literal.text };
18770
+ }
18771
+ return null;
18745
18772
  }, resolveEnumPropertyAccess = (expr, enumName, values) => {
18746
18773
  if (!ts7.isPropertyAccessExpression(expr))
18747
18774
  return null;
@@ -20035,7 +20062,7 @@ ${block}
20035
20062
  inputs,
20036
20063
  outputs,
20037
20064
  usesInheritance: false,
20038
- controlCreate: null,
20065
+ controlCreate: extractControlCreate(classNode),
20039
20066
  exportAs: advancedMetadata.exportAs,
20040
20067
  providers: advancedMetadata.providers,
20041
20068
  isStandalone: decoratorMeta.standalone,
@@ -22936,5 +22963,5 @@ export {
22936
22963
  build
22937
22964
  };
22938
22965
 
22939
- //# debugId=14E889113E4EC0CF64756E2164756E21
22966
+ //# debugId=9A589DD8147B77D664756E2164756E21
22940
22967
  //# sourceMappingURL=build.js.map