@sumaris-net/ngx-components 1.23.2 → 1.23.3
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/bundles/sumaris-net.ngx-components.umd.js +4 -3
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/esm2015/src/app/core/table/table.class.js +5 -4
- package/fesm2015/sumaris-net.ngx-components.js +4 -3
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
|
@@ -23063,7 +23063,7 @@ class AppTable {
|
|
|
23063
23063
|
return of(undefined); // Continue
|
|
23064
23064
|
}))
|
|
23065
23065
|
.subscribe(res => this.updateView(res)));
|
|
23066
|
-
// Listen dataSource events
|
|
23066
|
+
// Listen dataSource loading events
|
|
23067
23067
|
if (this._dataSource)
|
|
23068
23068
|
this.listenDatasourceLoading(this._dataSource);
|
|
23069
23069
|
}
|
|
@@ -24224,8 +24224,9 @@ class AppTable {
|
|
|
24224
24224
|
if (this.debug)
|
|
24225
24225
|
console.debug('[table] Many call to listenDatasource(): Cleaning previous subscriptions...');
|
|
24226
24226
|
this._dataSourceLoadingSubscription.unsubscribe();
|
|
24227
|
-
this.
|
|
24227
|
+
this.unregisterSubscription(this._dataSourceLoadingSubscription);
|
|
24228
24228
|
}
|
|
24229
|
+
// Propage loading to table
|
|
24229
24230
|
this._dataSourceLoadingSubscription = this._dataSource.loadingSubject
|
|
24230
24231
|
.pipe(distinctUntilChanged(),
|
|
24231
24232
|
// If changed to True: propagate as soon as possible
|
|
@@ -24233,7 +24234,7 @@ class AppTable {
|
|
|
24233
24234
|
// If changed to False: wait 250ms before propagate (to make sure the spinner has been displayed)
|
|
24234
24235
|
debounceTime(250), tap(loading => !loading && this.setLoading(false)))
|
|
24235
24236
|
.subscribe();
|
|
24236
|
-
this.
|
|
24237
|
+
this.registerSubscription(this._dataSourceLoadingSubscription);
|
|
24237
24238
|
}
|
|
24238
24239
|
startCellValueChanges(name, row) {
|
|
24239
24240
|
const def = this._cellValueChangesDefs[name];
|