onshore-forms 0.0.15 → 0.0.16
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/lib/components/form-image-item/form-image-item.component.mjs +2 -2
- package/esm2020/lib/onshore-forms.service.mjs +11 -1
- package/fesm2015/onshore-forms.mjs +11 -1
- package/fesm2015/onshore-forms.mjs.map +1 -1
- package/fesm2020/onshore-forms.mjs +11 -1
- package/fesm2020/onshore-forms.mjs.map +1 -1
- package/lib/onshore-forms.service.d.ts +2 -0
- package/package.json +1 -1
|
@@ -187,6 +187,16 @@ class OnshoreFormsService {
|
|
|
187
187
|
}));
|
|
188
188
|
});
|
|
189
189
|
}
|
|
190
|
+
lock() {
|
|
191
|
+
this._formTemplate.forEach((item) => {
|
|
192
|
+
item.locked = true;
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
unlock() {
|
|
196
|
+
this._formTemplate.forEach((item) => {
|
|
197
|
+
item.locked = false;
|
|
198
|
+
});
|
|
199
|
+
}
|
|
190
200
|
iterateNestedForm(form, formTemplate) {
|
|
191
201
|
formTemplate.forEach((item) => {
|
|
192
202
|
if (item.type === OnshoreFormTemplateType.subform) {
|
|
@@ -770,7 +780,7 @@ class OnshoreFormImageItemComponent {
|
|
|
770
780
|
this.imageSettings.imageWidth = this.defaultImageSettings.imageWidth;
|
|
771
781
|
this.imageSettings.imageHeight = this.defaultImageSettings.imageHeight;
|
|
772
782
|
}
|
|
773
|
-
if (!imageSettings.placeholderIcon)
|
|
783
|
+
if (!imageSettings.placeholderIcon && !imageSettings.placeholderImage)
|
|
774
784
|
this.imageSettings.placeholderIcon = this.defaultImageSettings.placeholderIcon;
|
|
775
785
|
if (!imageSettings.aspectRatio)
|
|
776
786
|
this.imageSettings.aspectRatio = this.defaultImageSettings.aspectRatio;
|