@vectoriox/iox-builder 2.2.1 → 2.2.2

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.
@@ -5738,6 +5738,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.11", ngImpo
5738
5738
  }] } });
5739
5739
 
5740
5740
  class BuilderRepeaterComponent {
5741
+ get children() { return this._children; }
5742
+ /** RenderDirective sets `source` (→ fetchData) BEFORE `children`. With an async source the response
5743
+ * lands after children are set, so previews build fine; but a SYNC source (static, or a fast
5744
+ * cache) resolves before children exist, leaving previewRows empty. Rebuild when children arrive
5745
+ * (or change) so both orderings — and loaded pages with sync sources — render their rows. */
5746
+ set children(value) {
5747
+ this._children = value ?? [];
5748
+ if (this.items.length)
5749
+ this.refreshPreviews();
5750
+ }
5741
5751
  get source() { return this._source; }
5742
5752
  set source(value) {
5743
5753
  if (value === this._source)
@@ -5778,7 +5788,7 @@ class BuilderRepeaterComponent {
5778
5788
  this.dsRegistry = dsRegistry;
5779
5789
  this.panelEventService = panelEventService;
5780
5790
  this.cdr = cdr;
5781
- this.children = [];
5791
+ this._children = [];
5782
5792
  this.style = {};
5783
5793
  this.nodeId = '';
5784
5794
  this.dropListId = '';