@sumaris-net/ngx-components 1.23.28 → 1.23.30

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.
@@ -4565,6 +4565,15 @@
4565
4565
  FormArrayHelper.prototype.at = function (index) {
4566
4566
  return this._formArray.at(index);
4567
4567
  };
4568
+ /**
4569
+ * Resize the FormArray, then apply values
4570
+ * @param data
4571
+ * @param opts
4572
+ */
4573
+ FormArrayHelper.prototype.setValue = function (data, opts) {
4574
+ this.resize((data === null || data === void 0 ? void 0 : data.length) || 0);
4575
+ this._formArray.setValue(data, opts);
4576
+ };
4568
4577
  FormArrayHelper.prototype.disable = function (opts) {
4569
4578
  this._formArray.controls.forEach(function (c) { return c.disable(opts); });
4570
4579
  };
@@ -21000,10 +21009,7 @@
21000
21009
  return undefined;
21001
21010
  });
21002
21011
  _this._startByReadyFunction = false; // Need setValue() to be called, to start the service
21003
- _this._sortByReplacement = Object.assign({
21004
- // Detect rankOrder on the entity class
21005
- id: (Object.getOwnPropertyNames(new dataType()).findIndex(function (key) { return key === 'rankOrder'; }) !== -1) ? 'rankOrder' : undefined
21006
- }, options.sortByReplacement);
21012
+ _this._sortByReplacement = Object.assign({}, options.sortByReplacement);
21007
21013
  return _this;
21008
21014
  }
21009
21015
  Object.defineProperty(InMemoryEntitiesService.prototype, "value", {