@sumaris-net/ngx-components 1.23.33 → 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.
- package/bundles/sumaris-net.ngx-components.umd.js +10 -1
- 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/core/form/form.utils.js +11 -2
- package/fesm2015/sumaris-net.ngx-components.js +10 -1
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/app/core/form/form.utils.d.ts +10 -1
- package/sumaris-net.ngx-components.metadata.json +1 -1
|
@@ -4588,7 +4588,7 @@
|
|
|
4588
4588
|
return this._formArray.at(index);
|
|
4589
4589
|
};
|
|
4590
4590
|
/**
|
|
4591
|
-
* Resize the FormArray, then
|
|
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
|
};
|