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.
@@ -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;