@sumaris-net/ngx-components 2.1.4-rc4 → 2.1.4
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 +15 -5
- package/esm2020/src/app/shared/image/image.service.mjs +1 -2
- package/fesm2015/sumaris-net.ngx-components.mjs +14 -5
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +14 -5
- 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 -4
|
@@ -4629,9 +4629,22 @@ class AppFormArray extends UntypedFormArray {
|
|
|
4629
4629
|
}
|
|
4630
4630
|
}
|
|
4631
4631
|
resize(length) {
|
|
4632
|
-
resizeArray(this, this.createControl, length);
|
|
4632
|
+
const changes = resizeArray(this, this.createControl, length);
|
|
4633
|
+
if (changes) {
|
|
4634
|
+
if (this.enabled) {
|
|
4635
|
+
this.controls.filter(c => c.disabled).forEach(c => c.enable());
|
|
4636
|
+
}
|
|
4637
|
+
else {
|
|
4638
|
+
this.controls.filter(c => c.enabled).forEach(c => c.disable());
|
|
4639
|
+
}
|
|
4640
|
+
}
|
|
4641
|
+
}
|
|
4642
|
+
disable(opts) {
|
|
4643
|
+
this.disable(opts);
|
|
4644
|
+
this.controls.forEach(c => c.disable(opts));
|
|
4633
4645
|
}
|
|
4634
4646
|
enable(opts) {
|
|
4647
|
+
this.enable(opts);
|
|
4635
4648
|
this.controls.forEach(c => c.enable(opts));
|
|
4636
4649
|
}
|
|
4637
4650
|
forEach(ite) {
|
|
@@ -4684,9 +4697,6 @@ class AppFormArray extends UntypedFormArray {
|
|
|
4684
4697
|
index = this.controls.findIndex(c => this.isEmpty(c.value));
|
|
4685
4698
|
}
|
|
4686
4699
|
}
|
|
4687
|
-
disable(opts) {
|
|
4688
|
-
this.controls.forEach(c => c.disable(opts));
|
|
4689
|
-
}
|
|
4690
4700
|
/* -- internal -- */
|
|
4691
4701
|
setAllowEmptyArray(value) {
|
|
4692
4702
|
if (this._allowEmptyArray === value)
|
|
@@ -19492,7 +19502,6 @@ class FormFieldValuesHolder {
|
|
|
19492
19502
|
}
|
|
19493
19503
|
}
|
|
19494
19504
|
|
|
19495
|
-
//import {Camera, DestinationType, EncodingType, MediaType, PictureSourceType} from '@awesome-cordova-plugins/camera/ngx';
|
|
19496
19505
|
class ImageService extends StartableService {
|
|
19497
19506
|
constructor(platform, settings, translate, popoverController,
|
|
19498
19507
|
// protected camera: Camera,
|