@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.
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  var __require = import.meta.require;
3
3
 
4
- // .angular-partial-tmp-1StGYU/src/core/streamingSlotRegistrar.ts
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-1StGYU/src/core/streamingSlotRegistrar.ts
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-1StGYU/src/core/streamingSlotRegistry.ts
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
@@ -18917,30 +18917,36 @@ var fail = (reason, detail, location) => ({
18917
18917
  }, extractInputsAndOutputs = (cls, compiler) => {
18918
18918
  const inputs = {};
18919
18919
  const outputs = {};
18920
+ let hasDecoratorIO = false;
18921
+ let hasSignalIO = false;
18920
18922
  for (const member of cls.members) {
18921
18923
  if (!ts7.isPropertyDeclaration(member))
18922
18924
  continue;
18923
18925
  const decoratorIn = extractDecoratorInput(member, compiler);
18924
18926
  if (decoratorIn) {
18925
18927
  inputs[decoratorIn.classPropertyName] = decoratorIn.meta;
18928
+ hasDecoratorIO = true;
18926
18929
  continue;
18927
18930
  }
18928
18931
  const signalIn = extractSignalInput(member, compiler);
18929
18932
  if (signalIn) {
18930
18933
  inputs[signalIn.classPropertyName] = signalIn.meta;
18934
+ hasSignalIO = true;
18931
18935
  continue;
18932
18936
  }
18933
18937
  const decoratorOut = extractDecoratorOutput(member);
18934
18938
  if (decoratorOut) {
18935
18939
  outputs[decoratorOut.classPropertyName] = decoratorOut.bindingName;
18940
+ hasDecoratorIO = true;
18936
18941
  continue;
18937
18942
  }
18938
18943
  const signalOut = extractSignalOutput(member);
18939
18944
  if (signalOut) {
18940
18945
  outputs[signalOut.classPropertyName] = signalOut.bindingName;
18946
+ hasSignalIO = true;
18941
18947
  }
18942
18948
  }
18943
- return { inputs, outputs };
18949
+ return { inputs, outputs, hasDecoratorIO, hasSignalIO };
18944
18950
  }, ATTR_BINDING_RE, EVENT_BINDING_RE, emptyHost = () => ({
18945
18951
  attributes: {},
18946
18952
  listeners: {},
@@ -19722,7 +19728,20 @@ var fail = (reason, detail, location) => ({
19722
19728
  if (!ts7.isConstructorDeclaration(member))
19723
19729
  continue;
19724
19730
  for (const param of member.parameters) {
19725
- ctorParamTypes.push(param.type ? param.type.getText() : "");
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}`);
19726
19745
  }
19727
19746
  break;
19728
19747
  }
@@ -19977,7 +19996,12 @@ ${block}
19977
19996
  if (!className_)
19978
19997
  return fail("class-not-found", "anonymous class");
19979
19998
  const wrappedClass = new compiler.WrappedNodeExpr(className_);
19980
- const { inputs, outputs } = extractInputsAndOutputs(classNode, compiler);
19999
+ const {
20000
+ inputs,
20001
+ outputs,
20002
+ hasDecoratorIO,
20003
+ hasSignalIO
20004
+ } = extractInputsAndOutputs(classNode, compiler);
19981
20005
  const projectRelPath = relative13(projectRoot, componentFilePath).replace(/\\/g, "/");
19982
20006
  const fingerprintId = encodeURIComponent(`${projectRelPath}@${className}`);
19983
20007
  const currentFingerprint = extractFingerprint(classNode, className, decoratorMeta, inputs, outputs, sourceFile, componentDir);
@@ -20015,7 +20039,7 @@ ${block}
20015
20039
  exportAs: advancedMetadata.exportAs,
20016
20040
  providers: advancedMetadata.providers,
20017
20041
  isStandalone: decoratorMeta.standalone,
20018
- isSignal: false,
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),
20019
20043
  hostDirectives: advancedMetadata.hostDirectives,
20020
20044
  template: {
20021
20045
  nodes: parsed.nodes,
@@ -22912,5 +22936,5 @@ export {
22912
22936
  build
22913
22937
  };
22914
22938
 
22915
- //# debugId=E7526B27E09085A964756E2164756E21
22939
+ //# debugId=14E889113E4EC0CF64756E2164756E21
22916
22940
  //# sourceMappingURL=build.js.map