osl-base-extended 1.1.59 → 1.1.61

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.
@@ -2734,6 +2734,15 @@ class OslSetup {
2734
2734
  }
2735
2735
  }
2736
2736
  }
2737
+ else if (!changes['datasource'].firstChange) {
2738
+ // External refresh (e.g. after approve/delete via more-actions) — replace cards with fresh data
2739
+ const newData = changes['datasource'].currentValue ?? [];
2740
+ this.cardDatasource = [...newData];
2741
+ this.cardPage = 1;
2742
+ this.allCardsLoaded = newData.length === 0
2743
+ || (this.totalRecords > 0 && newData.length >= this.totalRecords)
2744
+ || newData.length < this._effectiveCardPageSize;
2745
+ }
2737
2746
  }
2738
2747
  else if (this._pendingScrollTop !== null) {
2739
2748
  const ds = changes['datasource'].currentValue;
@@ -3380,8 +3389,8 @@ class OslAutocompleteLister {
3380
3389
  this.autocompleteData = this.data?.data;
3381
3390
  this.loader = true;
3382
3391
  await this.getConfig();
3383
- // await this.search()
3384
- // this.loader = false
3392
+ await this.search();
3393
+ this.loader = false;
3385
3394
  this.cd.markForCheck();
3386
3395
  }
3387
3396
  async getConfig() {