@clyrex-digital/clyrex-controls-dev 0.8.1-dev.20260901054125 → 0.8.1-dev.20260901065721

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
@@ -8661,8 +8661,8 @@ var DivContainer = async (props) => {
8661
8661
  }
8662
8662
  const effectiveResult = dataBindingProperties.childCollectionName ? childCollectionData : result;
8663
8663
  const hasNoData = effectiveResult === null || effectiveResult === void 0 || typeof effectiveResult === "string" && effectiveResult.trim() === "" || Array.isArray(effectiveResult) && effectiveResult.length === 0 || typeof effectiveResult === "object" && !Array.isArray(effectiveResult) && Object.keys(effectiveResult).length === 0;
8664
- if (hasNoData && (props.node.repeatForEachItem === true || props.node.replicate === true)) {
8665
- shouldShowNoDataMessage = dataBindingProperties.showNoResultsMessage;
8664
+ if (hasNoData && dataBindingProperties.showNoResultsMessage !== true) {
8665
+ return null;
8666
8666
  }
8667
8667
  }
8668
8668
  const cssResult = generateCssString(
@@ -8778,7 +8778,16 @@ var DivContainer = async (props) => {
8778
8778
  void 0,
8779
8779
  true
8780
8780
  )
8781
- ] : [];
8781
+ ] : [
8782
+ // Let the repeated child evaluate its own data source. It returns
8783
+ // null when the result is empty and the no-results message is off.
8784
+ renderNode(
8785
+ node,
8786
+ props,
8787
+ props.dataitem,
8788
+ `replicated-${childIndex}`
8789
+ )
8790
+ ];
8782
8791
  }
8783
8792
  return arrayResult.map(
8784
8793
  (item, itemIndex) => renderNode(
package/dist/index.mjs CHANGED
@@ -2657,8 +2657,8 @@ var DivContainer = async (props) => {
2657
2657
  }
2658
2658
  const effectiveResult = dataBindingProperties.childCollectionName ? childCollectionData : result;
2659
2659
  const hasNoData = effectiveResult === null || effectiveResult === void 0 || typeof effectiveResult === "string" && effectiveResult.trim() === "" || Array.isArray(effectiveResult) && effectiveResult.length === 0 || typeof effectiveResult === "object" && !Array.isArray(effectiveResult) && Object.keys(effectiveResult).length === 0;
2660
- if (hasNoData && (props.node.repeatForEachItem === true || props.node.replicate === true)) {
2661
- shouldShowNoDataMessage = dataBindingProperties.showNoResultsMessage;
2660
+ if (hasNoData && dataBindingProperties.showNoResultsMessage !== true) {
2661
+ return null;
2662
2662
  }
2663
2663
  }
2664
2664
  const cssResult = generateCssString(
@@ -2774,7 +2774,16 @@ var DivContainer = async (props) => {
2774
2774
  void 0,
2775
2775
  true
2776
2776
  )
2777
- ] : [];
2777
+ ] : [
2778
+ // Let the repeated child evaluate its own data source. It returns
2779
+ // null when the result is empty and the no-results message is off.
2780
+ renderNode(
2781
+ node,
2782
+ props,
2783
+ props.dataitem,
2784
+ `replicated-${childIndex}`
2785
+ )
2786
+ ];
2778
2787
  }
2779
2788
  return arrayResult.map(
2780
2789
  (item, itemIndex) => renderNode(
package/dist/server.js CHANGED
@@ -8630,8 +8630,8 @@ var DivContainer = async (props) => {
8630
8630
  }
8631
8631
  const effectiveResult = dataBindingProperties.childCollectionName ? childCollectionData : result;
8632
8632
  const hasNoData = effectiveResult === null || effectiveResult === void 0 || typeof effectiveResult === "string" && effectiveResult.trim() === "" || Array.isArray(effectiveResult) && effectiveResult.length === 0 || typeof effectiveResult === "object" && !Array.isArray(effectiveResult) && Object.keys(effectiveResult).length === 0;
8633
- if (hasNoData && (props.node.repeatForEachItem === true || props.node.replicate === true)) {
8634
- shouldShowNoDataMessage = dataBindingProperties.showNoResultsMessage;
8633
+ if (hasNoData && dataBindingProperties.showNoResultsMessage !== true) {
8634
+ return null;
8635
8635
  }
8636
8636
  }
8637
8637
  const cssResult = generateCssString(
@@ -8747,7 +8747,16 @@ var DivContainer = async (props) => {
8747
8747
  void 0,
8748
8748
  true
8749
8749
  )
8750
- ] : [];
8750
+ ] : [
8751
+ // Let the repeated child evaluate its own data source. It returns
8752
+ // null when the result is empty and the no-results message is off.
8753
+ renderNode(
8754
+ node,
8755
+ props,
8756
+ props.dataitem,
8757
+ `replicated-${childIndex}`
8758
+ )
8759
+ ];
8751
8760
  }
8752
8761
  return arrayResult.map(
8753
8762
  (item, itemIndex) => renderNode(
package/dist/server.mjs CHANGED
@@ -2625,8 +2625,8 @@ var DivContainer = async (props) => {
2625
2625
  }
2626
2626
  const effectiveResult = dataBindingProperties.childCollectionName ? childCollectionData : result;
2627
2627
  const hasNoData = effectiveResult === null || effectiveResult === void 0 || typeof effectiveResult === "string" && effectiveResult.trim() === "" || Array.isArray(effectiveResult) && effectiveResult.length === 0 || typeof effectiveResult === "object" && !Array.isArray(effectiveResult) && Object.keys(effectiveResult).length === 0;
2628
- if (hasNoData && (props.node.repeatForEachItem === true || props.node.replicate === true)) {
2629
- shouldShowNoDataMessage = dataBindingProperties.showNoResultsMessage;
2628
+ if (hasNoData && dataBindingProperties.showNoResultsMessage !== true) {
2629
+ return null;
2630
2630
  }
2631
2631
  }
2632
2632
  const cssResult = generateCssString(
@@ -2742,7 +2742,16 @@ var DivContainer = async (props) => {
2742
2742
  void 0,
2743
2743
  true
2744
2744
  )
2745
- ] : [];
2745
+ ] : [
2746
+ // Let the repeated child evaluate its own data source. It returns
2747
+ // null when the result is empty and the no-results message is off.
2748
+ renderNode(
2749
+ node,
2750
+ props,
2751
+ props.dataitem,
2752
+ `replicated-${childIndex}`
2753
+ )
2754
+ ];
2746
2755
  }
2747
2756
  return arrayResult.map(
2748
2757
  (item, itemIndex) => renderNode(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clyrex-digital/clyrex-controls-dev",
3
- "version": "0.8.1-dev.20260901054125",
3
+ "version": "0.8.1-dev.20260901065721",
4
4
  "description": "Reusable React components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",