@sumaris-net/ngx-components 1.23.33 → 1.23.35

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.
@@ -4588,7 +4588,7 @@
4588
4588
  return this._formArray.at(index);
4589
4589
  };
4590
4590
  /**
4591
- * Resize the FormArray, then apply values
4591
+ * Resize the FormArray, then set values
4592
4592
  * @param data
4593
4593
  * @param opts
4594
4594
  */
@@ -4596,6 +4596,15 @@
4596
4596
  this.resize((data === null || data === void 0 ? void 0 : data.length) || 0);
4597
4597
  this._formArray.setValue(data, opts);
4598
4598
  };
4599
+ /**
4600
+ * Resize the FormArray, then patch values
4601
+ * @param data
4602
+ * @param opts
4603
+ */
4604
+ FormArrayHelper.prototype.patchValue = function (data, opts) {
4605
+ this.resize((data === null || data === void 0 ? void 0 : data.length) || 0);
4606
+ this._formArray.patchValue(data, opts);
4607
+ };
4599
4608
  FormArrayHelper.prototype.disable = function (opts) {
4600
4609
  this._formArray.controls.forEach(function (c) { return c.disable(opts); });
4601
4610
  };
@@ -10180,9 +10189,11 @@
10180
10189
  return data;
10181
10190
  })
10182
10191
  .catch(function (err) {
10183
- console.error('Failed to start a service: ' + (err && err.message || err), err);
10184
- _this._started = false;
10185
- _this._startPromise = null;
10192
+ if (!_this.stopped) {
10193
+ console.error('Failed to start a service: ' + (err && err.message || err), err);
10194
+ _this._startPromise = null;
10195
+ _this._started = false;
10196
+ }
10186
10197
  return null;
10187
10198
  });
10188
10199
  return this._startPromise;
@@ -10215,10 +10226,10 @@
10215
10226
  console.error('Failed to stop a service: ' + (err_1 && err_1.message || err_1), err_1);
10216
10227
  return [3 /*break*/, 4];
10217
10228
  case 3:
10218
- this.stopSubject.next();
10219
10229
  this._data = null;
10220
10230
  this._started = false;
10221
10231
  this._startPromise = undefined;
10232
+ this.stopSubject.next();
10222
10233
  return [7 /*endfinally*/];
10223
10234
  case 4: return [2 /*return*/];
10224
10235
  }
@@ -12841,9 +12852,11 @@
12841
12852
  return data;
12842
12853
  })
12843
12854
  .catch(function (err) {
12844
- console.error('Failed to start a service: ' + (err && err.message || err), err);
12845
- _this._started = false;
12846
- _this._startPromise = null;
12855
+ if (!_this.stopped) {
12856
+ console.error('Failed to start a service: ' + (err && err.message || err), err);
12857
+ _this._started = false;
12858
+ _this._startPromise = null;
12859
+ }
12847
12860
  return null;
12848
12861
  });
12849
12862
  return this._startPromise;