@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.
- package/bundles/sumaris-net.ngx-components.umd.js +10 -4
- 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/doc/changelog.md +6 -0
- package/esm2015/src/app/core/form/form.utils.js +10 -1
- package/esm2015/src/app/shared/services/memory-entity-service.class.js +2 -4
- package/fesm2015/sumaris-net.ngx-components.js +10 -3
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/app/core/form/form.utils.d.ts +9 -0
- package/sumaris-net.ngx-components.metadata.json +1 -1
|
@@ -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", {
|