@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
|
@@ -26688,7 +26688,7 @@
|
|
|
26688
26688
|
return rxjs.of(undefined); // Continue
|
|
26689
26689
|
}))
|
|
26690
26690
|
.subscribe(function (res) { return _this.updateView(res); }));
|
|
26691
|
-
// Listen dataSource events
|
|
26691
|
+
// Listen dataSource loading events
|
|
26692
26692
|
if (this._dataSource)
|
|
26693
26693
|
this.listenDatasourceLoading(this._dataSource);
|
|
26694
26694
|
};
|
|
@@ -28042,8 +28042,9 @@
|
|
|
28042
28042
|
if (this.debug)
|
|
28043
28043
|
console.debug('[table] Many call to listenDatasource(): Cleaning previous subscriptions...');
|
|
28044
28044
|
this._dataSourceLoadingSubscription.unsubscribe();
|
|
28045
|
-
this.
|
|
28045
|
+
this.unregisterSubscription(this._dataSourceLoadingSubscription);
|
|
28046
28046
|
}
|
|
28047
|
+
// Propage loading to table
|
|
28047
28048
|
this._dataSourceLoadingSubscription = this._dataSource.loadingSubject
|
|
28048
28049
|
.pipe(operators.distinctUntilChanged(),
|
|
28049
28050
|
// If changed to True: propagate as soon as possible
|
|
@@ -28051,7 +28052,7 @@
|
|
|
28051
28052
|
// If changed to False: wait 250ms before propagate (to make sure the spinner has been displayed)
|
|
28052
28053
|
operators.debounceTime(250), operators.tap(function (loading) { return !loading && _this.setLoading(false); }))
|
|
28053
28054
|
.subscribe();
|
|
28054
|
-
this.
|
|
28055
|
+
this.registerSubscription(this._dataSourceLoadingSubscription);
|
|
28055
28056
|
};
|
|
28056
28057
|
AppTable.prototype.startCellValueChanges = function (name, row) {
|
|
28057
28058
|
var def = this._cellValueChangesDefs[name];
|