@sumaris-net/ngx-components 1.23.32 → 1.23.34

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
  };
@@ -28762,6 +28771,9 @@
28762
28771
  };
28763
28772
  AppEditor.prototype.markAsUntouched = function (opts) {
28764
28773
  var _a;
28774
+ if (this.touchedSubject.value !== false) {
28775
+ this.touchedSubject.next(false);
28776
+ }
28765
28777
  (_a = this._children) === null || _a === void 0 ? void 0 : _a.forEach(function (c) { return c.markAsUntouched(); });
28766
28778
  if (!this.loading && (!opts || opts.emitEvent !== false))
28767
28779
  this.markForCheck();
@@ -28772,12 +28784,18 @@
28772
28784
  */
28773
28785
  AppEditor.prototype.markAsTouched = function (opts) {
28774
28786
  var _a;
28787
+ if (!this.touchedSubject.value !== true) {
28788
+ this.touchedSubject.next(true);
28789
+ }
28775
28790
  (_a = this._children) === null || _a === void 0 ? void 0 : _a.forEach(function (c) { return c.markAsTouched(opts); });
28776
28791
  if (!this.loading && (!opts || opts.emitEvent !== false))
28777
28792
  this.markForCheck();
28778
28793
  };
28779
28794
  AppEditor.prototype.markAllAsTouched = function (opts) {
28780
28795
  var _a;
28796
+ if (this.touchedSubject.value !== true) {
28797
+ this.touchedSubject.next(true);
28798
+ }
28781
28799
  (_a = this._children) === null || _a === void 0 ? void 0 : _a.forEach(function (c) { return c.markAllAsTouched(opts); });
28782
28800
  if (!this.loading && (!opts || opts.emitEvent !== false))
28783
28801
  this.markForCheck();