@sumaris-net/ngx-components 1.23.52 → 1.23.54
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 +28 -10
- 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 +10 -12
- package/fesm2015/sumaris-net.ngx-components.js +17 -11
- 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
|
@@ -20458,6 +20458,14 @@
|
|
|
20458
20458
|
this.markForCheck();
|
|
20459
20459
|
}
|
|
20460
20460
|
};
|
|
20461
|
+
Object.defineProperty(AppForm.prototype, "destroyed", {
|
|
20462
|
+
get: function () {
|
|
20463
|
+
var _a;
|
|
20464
|
+
return ((_a = this.destroySubject) === null || _a === void 0 ? void 0 : _a.closed) !== false;
|
|
20465
|
+
},
|
|
20466
|
+
enumerable: false,
|
|
20467
|
+
configurable: true
|
|
20468
|
+
});
|
|
20461
20469
|
Object.defineProperty(AppForm.prototype, "form", {
|
|
20462
20470
|
get: function () {
|
|
20463
20471
|
return this._form;
|
|
@@ -26965,6 +26973,14 @@
|
|
|
26965
26973
|
enumerable: false,
|
|
26966
26974
|
configurable: true
|
|
26967
26975
|
});
|
|
26976
|
+
Object.defineProperty(AppTable.prototype, "destroyed", {
|
|
26977
|
+
get: function () {
|
|
26978
|
+
var _a;
|
|
26979
|
+
return ((_a = this.destroySubject) === null || _a === void 0 ? void 0 : _a.closed) !== false;
|
|
26980
|
+
},
|
|
26981
|
+
enumerable: false,
|
|
26982
|
+
configurable: true
|
|
26983
|
+
});
|
|
26968
26984
|
AppTable.prototype.ngOnInit = function () {
|
|
26969
26985
|
var _this = this;
|
|
26970
26986
|
var _a;
|
|
@@ -27001,17 +27017,11 @@
|
|
|
27001
27017
|
// Propagate row dirty state to table
|
|
27002
27018
|
this.registerSubscription(this.onStartEditingRow
|
|
27003
27019
|
.pipe(operators.filter(function (row) { return (row === null || row === void 0 ? void 0 : row.validator) && true; }), operators.mergeMap(function (row) { return row.validator.valueChanges
|
|
27004
|
-
.pipe(operators.
|
|
27005
|
-
// Stop if next another row, or destroying
|
|
27006
|
-
rxjs.combineLatest([
|
|
27007
|
-
_this.onStartEditingRow,
|
|
27008
|
-
_this.destroySubject
|
|
27009
|
-
])
|
|
27020
|
+
.pipe(operators.map(function () { var _a; return (_a = row.validator) === null || _a === void 0 ? void 0 : _a.dirty; }), operators.filter(function (dirty) { return dirty === true; }), operators.first(),
|
|
27010
27021
|
// DEBUG
|
|
27011
|
-
|
|
27012
|
-
//
|
|
27013
|
-
|
|
27014
|
-
), operators.map(function () { var _a; return (_a = row.validator) === null || _a === void 0 ? void 0 : _a.dirty; }), operators.filter(function (dirty) { return dirty === true; }), operators.first()); }))
|
|
27022
|
+
//tap(() => console.debug("Propagate row's dirty to table..."))
|
|
27023
|
+
// Stop if next another row, or destroying
|
|
27024
|
+
operators.takeUntil(_this.onStartEditingRow), operators.takeUntil(_this.destroySubject)); }))
|
|
27015
27025
|
.subscribe(function () { return _this.markAsDirty(); }));
|
|
27016
27026
|
// Call datasource refresh, on each refresh events
|
|
27017
27027
|
this.registerSubscription(this.onRefresh
|
|
@@ -28610,6 +28620,14 @@
|
|
|
28610
28620
|
enumerable: false,
|
|
28611
28621
|
configurable: true
|
|
28612
28622
|
});
|
|
28623
|
+
Object.defineProperty(AppEditor.prototype, "destroyed", {
|
|
28624
|
+
get: function () {
|
|
28625
|
+
var _a;
|
|
28626
|
+
return ((_a = this.destroySubject) === null || _a === void 0 ? void 0 : _a.closed) !== false;
|
|
28627
|
+
},
|
|
28628
|
+
enumerable: false,
|
|
28629
|
+
configurable: true
|
|
28630
|
+
});
|
|
28613
28631
|
Object.defineProperty(AppEditor.prototype, "tables", {
|
|
28614
28632
|
get: function () {
|
|
28615
28633
|
return this._children && this._children.filter(function (c) { return c instanceof AppTable; });
|