@sumaris-net/ngx-components 1.21.0-beta22 → 1.21.0-beta23
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 -6
- 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/social/job/job.model.js +3 -2
- package/esm2015/src/app/social/job/progression/job-progression.component.js +9 -5
- package/fesm2015/sumaris-net.ngx-components.js +9 -5
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/app/social/job/job.model.d.ts +1 -1
- package/sumaris-net.ngx-components.metadata.json +1 -1
|
@@ -31681,8 +31681,10 @@
|
|
|
31681
31681
|
// @dynamic
|
|
31682
31682
|
exports.JobProgression = JobProgression_1 = /** @class */ (function (_super) {
|
|
31683
31683
|
__extends(JobProgression, _super);
|
|
31684
|
-
function JobProgression() {
|
|
31685
|
-
|
|
31684
|
+
function JobProgression(id) {
|
|
31685
|
+
var _this = _super.call(this, JobProgression_1.TYPENAME) || this;
|
|
31686
|
+
_this.id = id;
|
|
31687
|
+
return _this;
|
|
31686
31688
|
}
|
|
31687
31689
|
JobProgression.prototype.fromObject = function (source) {
|
|
31688
31690
|
_super.prototype.fromObject.call(this, source);
|
|
@@ -31794,13 +31796,16 @@
|
|
|
31794
31796
|
console.warn(this._logPrefix + "No service injected. Can't add a job");
|
|
31795
31797
|
return;
|
|
31796
31798
|
}
|
|
31797
|
-
if (this.debug) {
|
|
31798
|
-
console.debug(this._logPrefix + "Add job id=" + id);
|
|
31799
|
-
}
|
|
31800
31799
|
if (!!this.getProgression(id)) {
|
|
31801
31800
|
console.warn(this._logPrefix + "Job (id=" + id + ") already present");
|
|
31802
31801
|
return;
|
|
31803
31802
|
}
|
|
31803
|
+
if (this.debug) {
|
|
31804
|
+
console.debug(this._logPrefix + "Add job id=" + id);
|
|
31805
|
+
}
|
|
31806
|
+
// Adding empty job progression
|
|
31807
|
+
var progression = new exports.JobProgression(id);
|
|
31808
|
+
this.jobProgressions.push(progression);
|
|
31804
31809
|
this.disabled = false;
|
|
31805
31810
|
var sub = this.jobProgressionService.listenChanges(id)
|
|
31806
31811
|
.pipe(operators.filter(function (progression) {
|
|
@@ -31815,7 +31820,7 @@
|
|
|
31815
31820
|
// Get current progression object
|
|
31816
31821
|
var currentProgression = _this.getProgression(id);
|
|
31817
31822
|
if (!currentProgression) {
|
|
31818
|
-
// add it
|
|
31823
|
+
// add it if absent
|
|
31819
31824
|
_this.jobProgressions.push(progression);
|
|
31820
31825
|
if (_this.debug) {
|
|
31821
31826
|
console.debug(_this._logPrefix + "Progression added id=" + id, progression);
|