@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
|
@@ -17509,6 +17509,7 @@ class AppForm {
|
|
|
17509
17509
|
this._subscription = new Subscription();
|
|
17510
17510
|
this._enable = false;
|
|
17511
17511
|
this.i18nFieldPrefix = null;
|
|
17512
|
+
this.destroySubject = new Subject();
|
|
17512
17513
|
this.readySubject = new BehaviorSubject(false);
|
|
17513
17514
|
this.loadingSubject = new BehaviorSubject(true);
|
|
17514
17515
|
this.errorSubject = new BehaviorSubject(undefined);
|
|
@@ -17630,6 +17631,8 @@ class AppForm {
|
|
|
17630
17631
|
this.errorSubject.unsubscribe();
|
|
17631
17632
|
this.onCancel.unsubscribe();
|
|
17632
17633
|
this.onSubmit.unsubscribe();
|
|
17634
|
+
this.destroySubject.next();
|
|
17635
|
+
this.destroySubject.unsubscribe();
|
|
17633
17636
|
}
|
|
17634
17637
|
cancel() {
|
|
17635
17638
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -22729,8 +22732,8 @@ class AppTable {
|
|
|
22729
22732
|
this._subscription = new Subscription();
|
|
22730
22733
|
this._cellValueChangesDefs = {};
|
|
22731
22734
|
this._enabled = true;
|
|
22732
|
-
this._destroy$ = new Subject();
|
|
22733
22735
|
this.allowRowDetail = true;
|
|
22736
|
+
this.destroySubject = new Subject();
|
|
22734
22737
|
this.excludesColumns = [];
|
|
22735
22738
|
this.totalRowCount = null;
|
|
22736
22739
|
this.readySubject = new BehaviorSubject(false);
|
|
@@ -23025,7 +23028,7 @@ class AppTable {
|
|
|
23025
23028
|
// Stop if next another row, or destroying
|
|
23026
23029
|
combineLatest([
|
|
23027
23030
|
this.onStartEditingRow,
|
|
23028
|
-
this.
|
|
23031
|
+
this.destroySubject
|
|
23029
23032
|
])
|
|
23030
23033
|
// DEBUG
|
|
23031
23034
|
//.pipe(
|
|
@@ -23122,8 +23125,8 @@ class AppTable {
|
|
|
23122
23125
|
this.onSort.unsubscribe();
|
|
23123
23126
|
this.onDirty.unsubscribe();
|
|
23124
23127
|
this.onError.unsubscribe();
|
|
23125
|
-
this.
|
|
23126
|
-
this.
|
|
23128
|
+
this.destroySubject.next();
|
|
23129
|
+
this.destroySubject.unsubscribe();
|
|
23127
23130
|
(_a = this._dataSource) === null || _a === void 0 ? void 0 : _a.ngOnDestroy();
|
|
23128
23131
|
}
|
|
23129
23132
|
updateView(res, opts) {
|
|
@@ -24342,6 +24345,7 @@ class AppEditor {
|
|
|
24342
24345
|
this._subscription = new Subscription();
|
|
24343
24346
|
this._enabled = false;
|
|
24344
24347
|
this._dirty = false;
|
|
24348
|
+
this.destroySubject = new Subject();
|
|
24345
24349
|
this.readySubject = new BehaviorSubject(false);
|
|
24346
24350
|
this.loadingSubject = new BehaviorSubject(true);
|
|
24347
24351
|
this.errorSubject = new BehaviorSubject(undefined);
|
|
@@ -24426,13 +24430,15 @@ class AppEditor {
|
|
|
24426
24430
|
}
|
|
24427
24431
|
}
|
|
24428
24432
|
ngAfterViewInit() {
|
|
24429
|
-
// Can be
|
|
24433
|
+
// Can be overridden by subclasses
|
|
24430
24434
|
}
|
|
24431
24435
|
ngOnDestroy() {
|
|
24432
24436
|
this._subscription.unsubscribe();
|
|
24433
24437
|
this.readySubject.unsubscribe();
|
|
24434
24438
|
this.loadingSubject.unsubscribe();
|
|
24435
24439
|
this.errorSubject.unsubscribe();
|
|
24440
|
+
this.destroySubject.next();
|
|
24441
|
+
this.destroySubject.unsubscribe();
|
|
24436
24442
|
}
|
|
24437
24443
|
addChildForm(form) {
|
|
24438
24444
|
if (!form)
|