@messaia/cdk 20.0.0-RC.10 → 20.0.0-RC.11

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.
@@ -18718,7 +18718,14 @@ class GenericListComponent extends BaseComponent {
18718
18718
  /* Apply static field filters */
18719
18719
  this.dataSource.staticFieldFilters = staticFieldFilters || {};
18720
18720
  /* Update items from the data source */
18721
- this.dataSource.connect(undefined).subscribe((x) => this.items = x);
18721
+ this.dataSource.connect(undefined).subscribe({
18722
+ next: (items) => {
18723
+ this.items = items;
18724
+ this.changeDetectorRef.detectChanges();
18725
+ /* Call the onAfterItemsLoaded method if defined */
18726
+ this.onAfterItemsLoaded();
18727
+ }
18728
+ });
18722
18729
  /* Add row menu items if the table is not dynamic */
18723
18730
  if (!this.dynamicTable) {
18724
18731
  this.addRowMenuItems();
@@ -19179,6 +19186,12 @@ class GenericListComponent extends BaseComponent {
19179
19186
  */
19180
19187
  hasSelectedRows() { return this.dataSource?.selectionModel?.hasValue(); }
19181
19188
  ;
19189
+ /**
19190
+ * Hook method called after the items list has been loaded.
19191
+ * Subclasses can override this to perform actions like setting
19192
+ * a subtitle, transforming data, or triggering follow-up requests.
19193
+ */
19194
+ onAfterItemsLoaded() { }
19182
19195
  /**
19183
19196
  * Event emitted when the entity has been deleted.
19184
19197
  */