kwikid-forms 0.3.19 → 0.3.21

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.
@@ -4170,9 +4170,11 @@
4170
4170
  };
4171
4171
  KwikIDFormViewComponent.prototype.setLoaderType = function () {
4172
4172
  this.loaderType = "CENTER_SCREEN";
4173
- if (kwikidToolkit.checkObjectKeyExists(this.userConfig, "utilityFlags")) {
4174
- if (kwikidToolkit.checkObjectKeyExists(this.userConfig.utilityFlags, "loaderType")) {
4175
- this.loaderType = this.userConfig.utilityFlags.loaderType;
4173
+ if (this.userConfig !== undefined) {
4174
+ if (kwikidToolkit.checkObjectKeyExists(this.userConfig, "utilityFlags")) {
4175
+ if (kwikidToolkit.checkObjectKeyExists(this.userConfig.utilityFlags, "loaderType")) {
4176
+ this.loaderType = this.userConfig.utilityFlags.loaderType;
4177
+ }
4176
4178
  }
4177
4179
  }
4178
4180
  if (this.loaderType !== "FULL_SCREEN" &&
@@ -5689,7 +5691,7 @@
5689
5691
  KwikIDFormViewComponent.prototype.showErrorPreview = function (previewProperties) {
5690
5692
  this.showPreview({
5691
5693
  html: {
5692
- after: "<div style=\"padding-bottom:0.25rem;padding-top: 0.25rem;position: absolute;margin-top: calc(50vh);font-size: 1.4rem;background: white;padding: 2rem;border-radius: 1rem;box-shadow: 0px 0px 10px -3px black;overflow: auto;height: fit-content;max-height: 90vh;width: 100%;\">Error: " + previewProperties.message.message + "</div>"
5694
+ after: "<div style=\"padding-bottom:0.25rem;padding-top: 0.25rem;position: absolute;margin-top: calc(50vh);font-size: 1.4rem;background: white;padding: 2rem;border-radius: 1rem;box-shadow: 0px 0px 10px -3px black;overflow: auto;height: fit-content;max-height: 90vh; width: 70vw; margin-left: calc(15vw); line-height: 2rem;\">Error: " + previewProperties.message.message + "</div>"
5693
5695
  },
5694
5696
  type: "popup"
5695
5697
  });