kwikid-forms 0.2.11 → 0.3.2

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.
@@ -2529,7 +2529,9 @@
2529
2529
  this._request.url = kwikidToolkit.setValueToObjectPath(this._request.url, "value", url);
2530
2530
  return [3 /*break*/, 3];
2531
2531
  case 2:
2532
- this._request.url = kwikidToolkit.setValueToObjectPath({}, "value", this._request.url);
2532
+ if (typeof this._request.url === "string") {
2533
+ this._request.url = kwikidToolkit.setValueToObjectPath({}, "value", this._request.url);
2534
+ }
2533
2535
  _e.label = 3;
2534
2536
  case 3: return [2 /*return*/, this._object.API_CONFIG];
2535
2537
  }
@@ -3092,8 +3094,8 @@
3092
3094
  _loop_1 = function (field) {
3093
3095
  var _r, _s;
3094
3096
  if (field.isFormElement) {
3095
- this_1.previousFormData = Object.assign(Object.assign({}, this_1.previousFormData), (_r = {}, _r[field.key] = this_1.formGroup.controls[field.key].value, _r));
3096
- this_1.formData = Object.assign(Object.assign({}, this_1.formData), (_s = {}, _s[field.key] = this_1.formGroup.controls[field.key].value, _s));
3097
+ this_1.previousFormData = Object.assign(Object.assign({}, this_1.previousFormData), (_r = {}, _r[field.key] = convertFormFieldValueToStandardFormat(field, this_1.formGroup.controls[field.key].value), _r));
3098
+ this_1.formData = Object.assign(Object.assign({}, this_1.formData), (_s = {}, _s[field.key] = convertFormFieldValueToStandardFormat(field, this_1.formGroup.controls[field.key].value), _s));
3097
3099
  this_1.formGroup.controls[field.key].valueChanges
3098
3100
  .pipe(operators.pairwise())
3099
3101
  .subscribe(function (_h) {
@@ -3989,7 +3991,11 @@
3989
3991
  else {
3990
3992
  var formDataInKwikUIFormat = {};
3991
3993
  for (var fieldKey in formData) {
3992
- formDataInKwikUIFormat[fieldKey] = convertFormFieldValueToKwikUIFormat(getFormFieldByKey(this.formFields, fieldKey), formData[fieldKey]);
3994
+ var field = getFormFieldByKey(this.formFields, fieldKey);
3995
+ if (!kwikidToolkit.isUndefined(field) && !kwikidToolkit.isNull(field)) {
3996
+ formDataInKwikUIFormat[fieldKey] =
3997
+ convertFormFieldValueToKwikUIFormat(field, formData[fieldKey]);
3998
+ }
3993
3999
  }
3994
4000
  this.formGroup.patchValue(formDataInKwikUIFormat, { emitEvent: false });
3995
4001
  }