@rxap/material-table-system 13.3.1 → 13.4.0

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.
@@ -766,6 +766,7 @@ class TableDataSourceDirective {
766
766
  this.tableFilter = tableFilter;
767
767
  this._tableFilter = _tableFilter;
768
768
  this.loading$ = new ToggleSubject(true);
769
+ this.hasError$ = new ToggleSubject();
769
770
  this._subscription = new Subscription();
770
771
  this.adapterFactory = null;
771
772
  this.matTable.trackBy = this.trackBy;
@@ -824,6 +825,7 @@ class TableDataSourceDirective {
824
825
  this.dataSource.setParameters(this.parameters, this.id);
825
826
  }
826
827
  this._subscription.add(this.dataSource.loading$.pipe(tap(loading => this.loading$.next(!!loading))).subscribe());
828
+ this._subscription.add(this.dataSource.hasError$.pipe(tap(hasError => this.hasError$.next(!!hasError))).subscribe());
827
829
  // create the id property for the mat table component.
828
830
  // the instance of the mat table component is used as viewer object
829
831
  // with the set of the id property it is possible to use the same data source
@@ -840,11 +842,14 @@ class TableDataSourceDirective {
840
842
  .subscribe());
841
843
  }
842
844
  ngOnDestroy() {
843
- this._subscription.unsubscribe();
845
+ this._subscription?.unsubscribe();
844
846
  }
845
847
  refresh() {
846
848
  this.dataSource?.refresh();
847
849
  }
850
+ retry() {
851
+ this.dataSource?.retry();
852
+ }
848
853
  }
849
854
  TableDataSourceDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: TableDataSourceDirective, deps: [{ token: CdkTable }, { token: i0.ChangeDetectorRef }, { token: RXAP_TABLE_METHOD, optional: true }, { token: TABLE_DATA_SOURCE, optional: true }, { token: TABLE_REMOTE_METHOD_ADAPTER_FACTORY, optional: true }, { token: MatSort, optional: true }, { token: TableFilterService, optional: true }, { token: RXAP_TABLE_FILTER, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
850
855
  TableDataSourceDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.3", type: TableDataSourceDirective, selector: "table[mat-table][rxapTableDataSource],mat-table[rxapTableDataSource]", inputs: { setDataSource: ["rxapTableDataSource", "setDataSource"], paginator: "paginator", id: "id", parameters: "parameters", dataSource: "dataSource" }, exportAs: ["rxapTableDataSource"], ngImport: i0 });