@sumaris-net/ngx-components 2.1.3 → 2.1.4-rc1
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/esm2020/src/app/core/form/form.utils.mjs +7 -2
- package/esm2020/src/app/shared/forms.mjs +2 -2
- package/fesm2015/sumaris-net.ngx-components.mjs +7 -2
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +7 -2
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/core/form/form.utils.d.ts +4 -0
- package/src/app/shared/forms.d.ts +1 -1
|
@@ -4210,7 +4210,7 @@ function pushValueInArray(arrayControl, createControl, equals, isEmpty, value, o
|
|
|
4210
4210
|
return hasChanged;
|
|
4211
4211
|
}
|
|
4212
4212
|
/**
|
|
4213
|
-
*
|
|
4213
|
+
* Set an array using given default values. Each default value will be pass to the 'createControl()' function
|
|
4214
4214
|
* @param arrayControl
|
|
4215
4215
|
* @param createControl
|
|
4216
4216
|
* @param values
|
|
@@ -4605,7 +4605,12 @@ class AppFormArray extends UntypedFormArray {
|
|
|
4605
4605
|
* @param options
|
|
4606
4606
|
*/
|
|
4607
4607
|
setValue(values, options) {
|
|
4608
|
-
setValueInArray(this, this.createControl, values);
|
|
4608
|
+
setValueInArray(this, this.createControl, values, options);
|
|
4609
|
+
}
|
|
4610
|
+
patchValue(values, options) {
|
|
4611
|
+
// this.resize(values?.length || 0);
|
|
4612
|
+
// super.patchValue(values, options);
|
|
4613
|
+
setValueInArray(this, this.createControl, values, options);
|
|
4609
4614
|
}
|
|
4610
4615
|
enable(opts) {
|
|
4611
4616
|
this.controls.forEach(c => c.enable(opts));
|