@sumaris-net/ngx-components 1.23.5 → 1.23.6
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 +11 -5
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +2 -2
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/doc/changelog.md +5 -0
- package/esm2015/src/app/core/form/editor.class.js +6 -3
- package/esm2015/src/app/core/form/form.class.js +5 -2
- package/esm2015/src/app/core/table/table.class.js +5 -5
- package/fesm2015/sumaris-net.ngx-components.js +11 -5
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/app/core/form/editor.class.d.ts +2 -1
- package/src/app/core/form/form.class.d.ts +2 -1
- package/src/app/core/table/table.class.d.ts +1 -1
- package/sumaris-net.ngx-components.metadata.json +1 -1
|
@@ -20036,6 +20036,7 @@
|
|
|
20036
20036
|
this._subscription = new rxjs.Subscription();
|
|
20037
20037
|
this._enable = false;
|
|
20038
20038
|
this.i18nFieldPrefix = null;
|
|
20039
|
+
this.destroySubject = new rxjs.Subject();
|
|
20039
20040
|
this.readySubject = new rxjs.BehaviorSubject(false);
|
|
20040
20041
|
this.loadingSubject = new rxjs.BehaviorSubject(true);
|
|
20041
20042
|
this.errorSubject = new rxjs.BehaviorSubject(undefined);
|
|
@@ -20221,6 +20222,8 @@
|
|
|
20221
20222
|
this.errorSubject.unsubscribe();
|
|
20222
20223
|
this.onCancel.unsubscribe();
|
|
20223
20224
|
this.onSubmit.unsubscribe();
|
|
20225
|
+
this.destroySubject.next();
|
|
20226
|
+
this.destroySubject.unsubscribe();
|
|
20224
20227
|
};
|
|
20225
20228
|
AppForm.prototype.cancel = function () {
|
|
20226
20229
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -26264,8 +26267,8 @@
|
|
|
26264
26267
|
this._subscription = new rxjs.Subscription();
|
|
26265
26268
|
this._cellValueChangesDefs = {};
|
|
26266
26269
|
this._enabled = true;
|
|
26267
|
-
this._destroy$ = new rxjs.Subject();
|
|
26268
26270
|
this.allowRowDetail = true;
|
|
26271
|
+
this.destroySubject = new rxjs.Subject();
|
|
26269
26272
|
this.excludesColumns = [];
|
|
26270
26273
|
this.totalRowCount = null;
|
|
26271
26274
|
this.readySubject = new rxjs.BehaviorSubject(false);
|
|
@@ -26649,7 +26652,7 @@
|
|
|
26649
26652
|
// Stop if next another row, or destroying
|
|
26650
26653
|
rxjs.combineLatest([
|
|
26651
26654
|
_this.onStartEditingRow,
|
|
26652
|
-
_this.
|
|
26655
|
+
_this.destroySubject
|
|
26653
26656
|
])
|
|
26654
26657
|
// DEBUG
|
|
26655
26658
|
//.pipe(
|
|
@@ -26752,8 +26755,8 @@
|
|
|
26752
26755
|
this.onSort.unsubscribe();
|
|
26753
26756
|
this.onDirty.unsubscribe();
|
|
26754
26757
|
this.onError.unsubscribe();
|
|
26755
|
-
this.
|
|
26756
|
-
this.
|
|
26758
|
+
this.destroySubject.next();
|
|
26759
|
+
this.destroySubject.unsubscribe();
|
|
26757
26760
|
(_a = this._dataSource) === null || _a === void 0 ? void 0 : _a.ngOnDestroy();
|
|
26758
26761
|
};
|
|
26759
26762
|
AppTable.prototype.updateView = function (res, opts) {
|
|
@@ -28163,6 +28166,7 @@
|
|
|
28163
28166
|
this._subscription = new rxjs.Subscription();
|
|
28164
28167
|
this._enabled = false;
|
|
28165
28168
|
this._dirty = false;
|
|
28169
|
+
this.destroySubject = new rxjs.Subject();
|
|
28166
28170
|
this.readySubject = new rxjs.BehaviorSubject(false);
|
|
28167
28171
|
this.loadingSubject = new rxjs.BehaviorSubject(true);
|
|
28168
28172
|
this.errorSubject = new rxjs.BehaviorSubject(undefined);
|
|
@@ -28312,13 +28316,15 @@
|
|
|
28312
28316
|
}
|
|
28313
28317
|
};
|
|
28314
28318
|
AppEditor.prototype.ngAfterViewInit = function () {
|
|
28315
|
-
// Can be
|
|
28319
|
+
// Can be overridden by subclasses
|
|
28316
28320
|
};
|
|
28317
28321
|
AppEditor.prototype.ngOnDestroy = function () {
|
|
28318
28322
|
this._subscription.unsubscribe();
|
|
28319
28323
|
this.readySubject.unsubscribe();
|
|
28320
28324
|
this.loadingSubject.unsubscribe();
|
|
28321
28325
|
this.errorSubject.unsubscribe();
|
|
28326
|
+
this.destroySubject.next();
|
|
28327
|
+
this.destroySubject.unsubscribe();
|
|
28322
28328
|
};
|
|
28323
28329
|
AppEditor.prototype.addChildForm = function (form) {
|
|
28324
28330
|
if (!form)
|