@sumaris-net/ngx-components 1.23.52 → 1.23.53
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 +18 -4
- 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/form/editor.class.js +5 -1
- package/esm2015/src/app/core/form/form.class.js +5 -1
- package/esm2015/src/app/core/table/table.class.js +11 -5
- package/fesm2015/sumaris-net.ngx-components.js +18 -4
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/app/core/form/editor.class.d.ts +1 -0
- package/src/app/core/form/form.class.d.ts +1 -0
- package/src/app/core/table/table.class.d.ts +1 -0
- package/sumaris-net.ngx-components.metadata.json +1 -1
|
@@ -17826,6 +17826,10 @@ class AppForm {
|
|
|
17826
17826
|
this.markForCheck();
|
|
17827
17827
|
}
|
|
17828
17828
|
}
|
|
17829
|
+
destroyed() {
|
|
17830
|
+
var _a;
|
|
17831
|
+
return ((_a = this.destroySubject) === null || _a === void 0 ? void 0 : _a.closed) !== false;
|
|
17832
|
+
}
|
|
17829
17833
|
set form(value) {
|
|
17830
17834
|
this.setForm(value);
|
|
17831
17835
|
}
|
|
@@ -23263,6 +23267,10 @@ class AppTable {
|
|
|
23263
23267
|
get paginator() {
|
|
23264
23268
|
return this._paginator || this.childPaginator;
|
|
23265
23269
|
}
|
|
23270
|
+
destroyed() {
|
|
23271
|
+
var _a;
|
|
23272
|
+
return ((_a = this.destroySubject) === null || _a === void 0 ? void 0 : _a.closed) !== false;
|
|
23273
|
+
}
|
|
23266
23274
|
ngOnInit() {
|
|
23267
23275
|
var _a;
|
|
23268
23276
|
if (this._initialized)
|
|
@@ -23298,17 +23306,19 @@ class AppTable {
|
|
|
23298
23306
|
// Propagate row dirty state to table
|
|
23299
23307
|
this.registerSubscription(this.onStartEditingRow
|
|
23300
23308
|
.pipe(filter(row => (row === null || row === void 0 ? void 0 : row.validator) && true), mergeMap(row => row.validator.valueChanges
|
|
23301
|
-
.pipe(
|
|
23309
|
+
.pipe(map(() => { var _a; return (_a = row.validator) === null || _a === void 0 ? void 0 : _a.dirty; }), filter(dirty => dirty === true), first(),
|
|
23310
|
+
// DEBUG
|
|
23311
|
+
//tap(() => console.debug("Propagate row's dirty to table..."))
|
|
23302
23312
|
// Stop if next another row, or destroying
|
|
23303
|
-
combineLatest([
|
|
23313
|
+
takeUntil(combineLatest([
|
|
23304
23314
|
this.onStartEditingRow,
|
|
23305
23315
|
this.destroySubject
|
|
23306
|
-
])
|
|
23316
|
+
]))
|
|
23307
23317
|
// DEBUG
|
|
23308
23318
|
//.pipe(
|
|
23309
23319
|
// tap(() => console.debug('TODO stopping previous row listener'))
|
|
23310
23320
|
//)
|
|
23311
|
-
)
|
|
23321
|
+
)))
|
|
23312
23322
|
.subscribe(() => this.markAsDirty()));
|
|
23313
23323
|
// Call datasource refresh, on each refresh events
|
|
23314
23324
|
this.registerSubscription(this.onRefresh
|
|
@@ -24688,6 +24698,10 @@ class AppEditor {
|
|
|
24688
24698
|
var _a;
|
|
24689
24699
|
return this.savingSubject.value || ((_a = this.editors) === null || _a === void 0 ? void 0 : _a.some(e => e.saving));
|
|
24690
24700
|
}
|
|
24701
|
+
destroyed() {
|
|
24702
|
+
var _a;
|
|
24703
|
+
return ((_a = this.destroySubject) === null || _a === void 0 ? void 0 : _a.closed) !== false;
|
|
24704
|
+
}
|
|
24691
24705
|
get tables() {
|
|
24692
24706
|
return this._children && this._children.filter(c => c instanceof AppTable);
|
|
24693
24707
|
}
|