kwikid-forms 0.5.1 → 0.5.3

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.
@@ -1544,6 +1544,7 @@
1544
1544
  "select",
1545
1545
  "slider",
1546
1546
  "otp",
1547
+ "api",
1547
1548
  "api-call",
1548
1549
  "aadhaar-number",
1549
1550
  "input-aadhaar",
@@ -1670,6 +1671,7 @@
1670
1671
  select: Object.assign({}, FIELD_PROPERTIES_COMMON_CONFIG),
1671
1672
  slider: Object.assign(Object.assign({}, FIELD_PROPERTIES_COMMON_CONFIG), { min: -Infinity, max: Infinity, quantum: 0, size: "m", steps: 1 }),
1672
1673
  otp: Object.assign(Object.assign({}, FIELD_PROPERTIES_COMMON_CONFIG), { mask: "", size: "m", mode: "multiple", otpLength: 6 }),
1674
+ api: Object.assign({}, FIELD_PROPERTIES_COMMON_CONFIG),
1673
1675
  "api-call": Object.assign({}, FIELD_PROPERTIES_COMMON_CONFIG),
1674
1676
  "aadhaar-number": Object.assign({}, FIELD_PROPERTIES_COMMON_CONFIG),
1675
1677
  "input-aadhaar": Object.assign({}, FIELD_PROPERTIES_COMMON_CONFIG),
@@ -1697,6 +1699,7 @@
1697
1699
  select: Object.assign(Object.assign({}, FIELD_COMMON_CONFIG), { type: "select", properties: Object.assign({}, FIELD_PROPERTIES_CONFIG["select"]), options: [] }),
1698
1700
  slider: Object.assign(Object.assign({}, FIELD_COMMON_CONFIG), { type: "slider", properties: Object.assign({}, FIELD_PROPERTIES_CONFIG.slider) }),
1699
1701
  otp: Object.assign(Object.assign({}, FIELD_COMMON_CONFIG), { type: "otp", properties: Object.assign({}, FIELD_PROPERTIES_CONFIG.otp) }),
1702
+ api: Object.assign(Object.assign({}, FIELD_COMMON_CONFIG), { type: "api", properties: Object.assign({}, FIELD_PROPERTIES_CONFIG["api"]) }),
1700
1703
  "api-call": Object.assign(Object.assign({}, FIELD_COMMON_CONFIG), { type: "api-call", properties: Object.assign({}, FIELD_PROPERTIES_CONFIG["api-call"]) }),
1701
1704
  "aadhaar-number": Object.assign(Object.assign({}, FIELD_COMMON_CONFIG), { type: "aadhaar-number", properties: Object.assign({}, FIELD_PROPERTIES_CONFIG["aadhaar-number"]) }),
1702
1705
  "input-aadhaar": Object.assign(Object.assign({}, FIELD_COMMON_CONFIG), { type: "input-aadhaar", properties: Object.assign({}, FIELD_PROPERTIES_CONFIG["input-aadhaar"]) }),
@@ -2362,6 +2365,7 @@
2362
2365
  EActionKey["DIALOG_HIDE"] = "DIALOG_HIDE";
2363
2366
  EActionKey["RESUME_TASK_EXECUTION"] = "RESUME_TASK_EXECUTION";
2364
2367
  EActionKey["STOP_TASK_EXECUTION"] = "STOP_TASK_EXECUTION";
2368
+ EActionKey["REDIRECT_TO_URL"] = "REDIRECT_TO_URL";
2365
2369
  })(EActionKey || (EActionKey = {}));
2366
2370
 
2367
2371
  var EApiStatusType;
@@ -4170,7 +4174,7 @@
4170
4174
  })];
4171
4175
  case 1:
4172
4176
  api = _k.sent();
4173
- if (!this.validateHeadersAndBody(api)) return [3 /*break*/, 3];
4177
+ if (!this.isValidRequestHeadersAndBody(api)) return [3 /*break*/, 3];
4174
4178
  if (kwikidToolkit.checkObjectKeyExists(field.api, "request")) {
4175
4179
  this.formData = Object.assign(Object.assign({}, this.formData), (_h = {}, _h[field.key] = api.response.value, _h));
4176
4180
  this.formGroup.patchValue((_j = {},
@@ -4180,6 +4184,7 @@
4180
4184
  apis = new Apis({
4181
4185
  FIELD_CONFIG: field,
4182
4186
  API_CONFIG: api,
4187
+ API_RESPONSE: api.response,
4183
4188
  FORM_FIELDS: this.formFields,
4184
4189
  FORM_DATA: this.formData,
4185
4190
  TASK_DATA: this.taskData,
@@ -4226,7 +4231,7 @@
4226
4231
  PREVIOUS_FORM_DATA: this.previousFormData,
4227
4232
  ALL_FORMS_DATA: this.allFormsData
4228
4233
  }, this.takeAction.bind(this));
4229
- if (!this.validateHeadersAndBody(api)) return [3 /*break*/, 3];
4234
+ if (!this.isValidRequestHeadersAndBody(api)) return [3 /*break*/, 3];
4230
4235
  return [4 /*yield*/, apis.validateResponse()];
4231
4236
  case 2:
4232
4237
  api = _h.sent();
@@ -4239,7 +4244,7 @@
4239
4244
  KwikIDFormViewComponent.prototype.executeApiCall = function (api, object) {
4240
4245
  var _a, _b, _c, _d, _e, _f, _g;
4241
4246
  return __awaiter(this, void 0, void 0, function () {
4242
- var apis, apiCallResponse, url, method, headers, body, response, err_1, response, err_2;
4247
+ var apis, apiCallResponse, apiCallResponseStatusCode, url, method, headers, body, response, err_1, response, err_2;
4243
4248
  return __generator(this, function (_h) {
4244
4249
  switch (_h.label) {
4245
4250
  case 0:
@@ -4260,7 +4265,7 @@
4260
4265
  case 5:
4261
4266
  api = _h.sent();
4262
4267
  apiCallResponse = {};
4263
- if (!this.validateHeadersAndBody(api)) return [3 /*break*/, 18];
4268
+ if (!this.isValidRequestHeadersAndBody(api)) return [3 /*break*/, 18];
4264
4269
  if (!(api.request.url.hasOwnProperty("type") &&
4265
4270
  api.request.url.type === EApiRequestUrlType.MOCK)) return [3 /*break*/, 7];
4266
4271
  return [4 /*yield*/, new Promise(function (resolve) {
@@ -4289,6 +4294,7 @@
4289
4294
  return [4 /*yield*/, response.json()];
4290
4295
  case 10:
4291
4296
  apiCallResponse = _h.sent();
4297
+ apiCallResponseStatusCode = response.status;
4292
4298
  return [3 /*break*/, 12];
4293
4299
  case 11:
4294
4300
  err_1 = _h.sent();
@@ -4307,6 +4313,7 @@
4307
4313
  return [4 /*yield*/, response.json()];
4308
4314
  case 15:
4309
4315
  apiCallResponse = _h.sent();
4316
+ apiCallResponseStatusCode = response.status;
4310
4317
  return [3 /*break*/, 17];
4311
4318
  case 16:
4312
4319
  err_2 = _h.sent();
@@ -4314,19 +4321,16 @@
4314
4321
  return [3 /*break*/, 17];
4315
4322
  case 17:
4316
4323
  api.response = kwikidToolkit.setValueToObjectPath(api.response, "value", apiCallResponse);
4324
+ api.response = kwikidToolkit.setValueToObjectPath(api.response, "status", apiCallResponseStatusCode);
4317
4325
  _h.label = 18;
4318
4326
  case 18: return [2 /*return*/, api];
4319
4327
  }
4320
4328
  });
4321
4329
  });
4322
4330
  };
4323
- KwikIDFormViewComponent.prototype.validateHeadersAndBody = function (api) {
4324
- return __awaiter(this, void 0, void 0, function () {
4325
- return __generator(this, function (_h) {
4326
- return [2 /*return*/, (api.request.body.validation.is_valid &&
4327
- api.request.headers.validation.is_valid)];
4328
- });
4329
- });
4331
+ KwikIDFormViewComponent.prototype.isValidRequestHeadersAndBody = function (api) {
4332
+ return (api.request.body.validation.is_valid &&
4333
+ api.request.headers.validation.is_valid);
4330
4334
  };
4331
4335
  KwikIDFormViewComponent.prototype.showApiLoader = function () {
4332
4336
  this.apiLoading = true;
@@ -4349,7 +4353,7 @@
4349
4353
  switch (_h.label) {
4350
4354
  case 0:
4351
4355
  field = getFormFieldByKey(this.formFields, e.key);
4352
- if (!(field.type === "api-call")) return [3 /*break*/, 5];
4356
+ if (!(field.type === EFieldType.API)) return [3 /*break*/, 5];
4353
4357
  // set button status to loading
4354
4358
  field["api"]["status"]["value"] = EApiStatusType.LOADING;
4355
4359
  field["showLoader"] = true;
@@ -4749,7 +4753,7 @@
4749
4753
  });
4750
4754
  // Reset the value of the field in the formFields array
4751
4755
  switch (field.type) {
4752
- case "api-call":
4756
+ case EFieldType.API:
4753
4757
  var fieldApiCall = field;
4754
4758
  fieldApiCall.api.status.value = EApiStatusType.DEFAULT;
4755
4759
  this.formFields[fieldIndex] = fieldApiCall;
@@ -5061,6 +5065,20 @@
5061
5065
  this.dialogRef.complete();
5062
5066
  }
5063
5067
  };
5068
+ KwikIDFormViewComponent.prototype.redirectToUrl = function (action) {
5069
+ if (kwikidToolkit.checkObjectKeyExists(action.props, "url")) {
5070
+ if (kwikidToolkit.checkObjectKeyExists(action.props.url, "url")) {
5071
+ var timeout = 2000;
5072
+ if (kwikidToolkit.checkObjectKeyExists(action.props.url, "timeout") &&
5073
+ typeof action.props.url.timeout == "number") {
5074
+ timeout = action.props.url.timeout;
5075
+ }
5076
+ setTimeout(function () {
5077
+ window.location.replace(action.props.url.url);
5078
+ }, timeout);
5079
+ }
5080
+ }
5081
+ };
5064
5082
  KwikIDFormViewComponent.prototype.patchFieldControlValue = function (key, value) {
5065
5083
  this.formGroup.controls[key].patchValue(value, { emitEvent: false });
5066
5084
  };
@@ -5207,7 +5225,7 @@
5207
5225
  KwikIDFormViewComponent.prototype.takeAction = function (action, object) {
5208
5226
  var _a, _b, _c, _d, _e, _f;
5209
5227
  return __awaiter(this, void 0, void 0, function () {
5210
- var _h, fieldErrorShow_Source, fieldErrorShowSourceValue, fieldErrorHide_Source, fieldErrorHideSourceValue, fieldErrorShow_Source, fieldErrorShowSourceValue;
5228
+ var _h, fieldErrorShow_Source, fieldErrorShowSourceValue, fieldErrorHide_Source, fieldErrorHideSourceValue, redirectToUrl_Source, redirectToUrlSourceValue, previewErrorShow_Source, previewErrorShowSourceValue;
5211
5229
  return __generator(this, function (_j) {
5212
5230
  switch (_j.label) {
5213
5231
  case 0:
@@ -5232,33 +5250,34 @@
5232
5250
  case EActionKey.TASK_API_CALL: return [3 /*break*/, 27];
5233
5251
  case EActionKey.TASK_API_CALL_MULTIPLE: return [3 /*break*/, 29];
5234
5252
  case EActionKey.TASK_API_CALL_MULTIPLE_END: return [3 /*break*/, 31];
5235
- case EActionKey.PREVIEW_DIALOG_SHOW: return [3 /*break*/, 33];
5236
- case EActionKey.PREVIEW_ERROR_SHOW: return [3 /*break*/, 34];
5237
- case EActionKey.POPUP_FORM_SHOW: return [3 /*break*/, 37];
5238
- case EActionKey.STOP_WAITING: return [3 /*break*/, 38];
5239
- case EActionKey.NOTIFICATION_ERROR_SHOW: return [3 /*break*/, 39];
5240
- case EActionKey.NOTIFICATION_ERROR_HIDE: return [3 /*break*/, 40];
5241
- case EActionKey.RESUME_TASK_EXECUTION: return [3 /*break*/, 41];
5242
- case EActionKey.STOP_TASK_EXECUTION: return [3 /*break*/, 42];
5243
- case EActionKey.DIALOG_SHOW: return [3 /*break*/, 43];
5244
- case EActionKey.DIALOG_HIDE: return [3 /*break*/, 44];
5253
+ case EActionKey.REDIRECT_TO_URL: return [3 /*break*/, 33];
5254
+ case EActionKey.PREVIEW_DIALOG_SHOW: return [3 /*break*/, 36];
5255
+ case EActionKey.PREVIEW_ERROR_SHOW: return [3 /*break*/, 37];
5256
+ case EActionKey.POPUP_FORM_SHOW: return [3 /*break*/, 40];
5257
+ case EActionKey.STOP_WAITING: return [3 /*break*/, 41];
5258
+ case EActionKey.NOTIFICATION_ERROR_SHOW: return [3 /*break*/, 42];
5259
+ case EActionKey.NOTIFICATION_ERROR_HIDE: return [3 /*break*/, 43];
5260
+ case EActionKey.RESUME_TASK_EXECUTION: return [3 /*break*/, 44];
5261
+ case EActionKey.STOP_TASK_EXECUTION: return [3 /*break*/, 45];
5262
+ case EActionKey.DIALOG_SHOW: return [3 /*break*/, 46];
5263
+ case EActionKey.DIALOG_HIDE: return [3 /*break*/, 47];
5245
5264
  }
5246
- return [3 /*break*/, 45];
5265
+ return [3 /*break*/, 48];
5247
5266
  case 1:
5248
5267
  this.fieldHide(action.props.fieldKey);
5249
- return [3 /*break*/, 46];
5268
+ return [3 /*break*/, 49];
5250
5269
  case 2:
5251
5270
  this.fieldShow(action.props.fieldKey);
5252
- return [3 /*break*/, 46];
5271
+ return [3 /*break*/, 49];
5253
5272
  case 3:
5254
5273
  this.fieldDisable(action.props.fieldKey);
5255
- return [3 /*break*/, 46];
5274
+ return [3 /*break*/, 49];
5256
5275
  case 4:
5257
5276
  this.fieldEnable(action.props.fieldKey);
5258
- return [3 /*break*/, 46];
5277
+ return [3 /*break*/, 49];
5259
5278
  case 5:
5260
5279
  this.fieldReset(action.props.fieldKey);
5261
- return [3 /*break*/, 46];
5280
+ return [3 /*break*/, 49];
5262
5281
  case 6:
5263
5282
  if (!kwikidToolkit.checkObjectKeyExists(action.props.message, "source")) return [3 /*break*/, 8];
5264
5283
  fieldErrorShow_Source = new kwikidToolkit.Source(object);
@@ -5276,7 +5295,7 @@
5276
5295
  _j.label = 8;
5277
5296
  case 8:
5278
5297
  this.fieldErrorShow(action.props.fieldKey, action.props.message);
5279
- return [3 /*break*/, 46];
5298
+ return [3 /*break*/, 49];
5280
5299
  case 9:
5281
5300
  if (!kwikidToolkit.checkObjectKeyExists(action.props.message, "source")) return [3 /*break*/, 11];
5282
5301
  fieldErrorHide_Source = new kwikidToolkit.Source(object);
@@ -5294,104 +5313,118 @@
5294
5313
  _j.label = 11;
5295
5314
  case 11:
5296
5315
  this.fieldErrorHide(action.props.fieldKey, action.props.message);
5297
- return [3 /*break*/, 46];
5316
+ return [3 /*break*/, 49];
5298
5317
  case 12:
5299
5318
  this.fieldMessageShow(action.props.fieldKey, action.props.message);
5300
- return [3 /*break*/, 46];
5319
+ return [3 /*break*/, 49];
5301
5320
  case 13:
5302
5321
  this.fieldMessageHide(action.props.fieldKey, action.props.message);
5303
- return [3 /*break*/, 46];
5322
+ return [3 /*break*/, 49];
5304
5323
  case 14: return [4 /*yield*/, this.setValue(action, object)];
5305
5324
  case 15:
5306
5325
  _j.sent();
5307
- return [3 /*break*/, 46];
5326
+ return [3 /*break*/, 49];
5308
5327
  case 16: return [4 /*yield*/, this.setFieldDefaultValue(action, object)];
5309
5328
  case 17:
5310
5329
  _j.sent();
5311
- return [3 /*break*/, 46];
5330
+ return [3 /*break*/, 49];
5312
5331
  case 18: return [4 /*yield*/, this.setDropdownOptions(action, object)];
5313
5332
  case 19:
5314
5333
  _j.sent();
5315
- return [3 /*break*/, 46];
5334
+ return [3 /*break*/, 49];
5316
5335
  case 20:
5317
5336
  this.handleConnectedElements({ key: action.props.fieldKey }, "ON_ACTION");
5318
- return [3 /*break*/, 46];
5337
+ return [3 /*break*/, 49];
5319
5338
  case 21: return [4 /*yield*/, this.fieldApiCall(action, object)];
5320
5339
  case 22:
5321
5340
  _j.sent();
5322
- return [3 /*break*/, 46];
5341
+ return [3 /*break*/, 49];
5323
5342
  case 23: return [4 /*yield*/, this.fieldMultipleApiCalls(action, object)];
5324
5343
  case 24:
5325
5344
  _j.sent();
5326
- return [3 /*break*/, 46];
5345
+ return [3 /*break*/, 49];
5327
5346
  case 25: return [4 /*yield*/, this.fieldMultipleApiCallsEnd(action, object)];
5328
5347
  case 26:
5329
5348
  _j.sent();
5330
- return [3 /*break*/, 46];
5349
+ return [3 /*break*/, 49];
5331
5350
  case 27: return [4 /*yield*/, this.taskApiCall(action, object)];
5332
5351
  case 28:
5333
5352
  _j.sent();
5334
- return [3 /*break*/, 46];
5353
+ return [3 /*break*/, 49];
5335
5354
  case 29: return [4 /*yield*/, this.taskMultipleApiCalls(action, object)];
5336
5355
  case 30:
5337
5356
  _j.sent();
5338
- return [3 /*break*/, 46];
5357
+ return [3 /*break*/, 49];
5339
5358
  case 31: return [4 /*yield*/, this.taskMultipleApiCallsEnd(action, object)];
5340
5359
  case 32:
5341
5360
  _j.sent();
5342
- return [3 /*break*/, 46];
5361
+ return [3 /*break*/, 49];
5343
5362
  case 33:
5344
- this.showPreview(action.props);
5345
- return [3 /*break*/, 46];
5363
+ if (!kwikidToolkit.checkObjectKeyExists(action.props.url, "source")) return [3 /*break*/, 35];
5364
+ redirectToUrl_Source = new kwikidToolkit.Source(object);
5365
+ return [4 /*yield*/, redirectToUrl_Source.getValueFromSource(action.props.url.source)];
5346
5366
  case 34:
5347
- if (!kwikidToolkit.checkObjectKeyExists(action.props.message, "source")) return [3 /*break*/, 36];
5348
- fieldErrorShow_Source = new kwikidToolkit.Source(object);
5349
- return [4 /*yield*/, fieldErrorShow_Source.getValueFromSource(action.props.message.source)];
5367
+ redirectToUrlSourceValue = _j.sent();
5368
+ if (kwikidToolkit.isEmptyString(redirectToUrlSourceValue)) {
5369
+ redirectToUrlSourceValue = "";
5370
+ }
5371
+ action = kwikidToolkit.setValueToObjectPath(action, "props.url.url", redirectToUrlSourceValue);
5372
+ _j.label = 35;
5350
5373
  case 35:
5351
- fieldErrorShowSourceValue = _j.sent();
5352
- if (typeof fieldErrorShowSourceValue == "string" ||
5353
- typeof fieldErrorShowSourceValue == "number") {
5354
- fieldErrorShowSourceValue = String(fieldErrorShowSourceValue);
5374
+ this.redirectToUrl(action);
5375
+ _j.label = 36;
5376
+ case 36:
5377
+ this.showPreview(action.props);
5378
+ return [3 /*break*/, 49];
5379
+ case 37:
5380
+ if (!kwikidToolkit.checkObjectKeyExists(action.props.message, "source")) return [3 /*break*/, 39];
5381
+ previewErrorShow_Source = new kwikidToolkit.Source(object);
5382
+ return [4 /*yield*/, previewErrorShow_Source.getValueFromSource(action.props.message.source)];
5383
+ case 38:
5384
+ previewErrorShowSourceValue = _j.sent();
5385
+ if (typeof previewErrorShowSourceValue == "string" ||
5386
+ typeof previewErrorShowSourceValue == "number") {
5387
+ previewErrorShowSourceValue = String(previewErrorShowSourceValue);
5355
5388
  }
5356
5389
  else {
5357
- fieldErrorShowSourceValue = "";
5390
+ previewErrorShowSourceValue = "";
5358
5391
  }
5359
- action = kwikidToolkit.setValueToObjectPath(action, "props.message.message", fieldErrorShowSourceValue);
5360
- _j.label = 36;
5361
- case 36:
5392
+ action = kwikidToolkit.setValueToObjectPath(action, "props.message.message", previewErrorShowSourceValue);
5393
+ _j.label = 39;
5394
+ case 39:
5362
5395
  this.showErrorPreview(action.props);
5363
- return [3 /*break*/, 46];
5364
- case 37:
5396
+ return [3 /*break*/, 49];
5397
+ case 40:
5365
5398
  this.showPopupForm(action.props.popupFormKey, (_b = (_a = action.props) === null || _a === void 0 ? void 0 : _a.popupType) !== null && _b !== void 0 ? _b : "DIALOG");
5366
- return [3 /*break*/, 46];
5367
- case 38:
5399
+ return [3 /*break*/, 49];
5400
+ case 41:
5368
5401
  this.waitingForChanges = false;
5369
- return [3 /*break*/, 46];
5370
- case 39:
5402
+ return [3 /*break*/, 49];
5403
+ case 42:
5371
5404
  this.toggleErrorNotification(true);
5372
- return [3 /*break*/, 46];
5373
- case 40:
5405
+ return [3 /*break*/, 49];
5406
+ case 43:
5374
5407
  this.toggleErrorNotification(false);
5375
- return [3 /*break*/, 46];
5376
- case 41:
5408
+ return [3 /*break*/, 49];
5409
+ case 44:
5377
5410
  this.stopTaskExecution = false;
5378
- return [3 /*break*/, 46];
5379
- case 42:
5411
+ return [3 /*break*/, 49];
5412
+ case 45:
5380
5413
  this.stopTaskExecution = true;
5381
- return [3 /*break*/, 46];
5382
- case 43:
5414
+ return [3 /*break*/, 49];
5415
+ case 46:
5383
5416
  this.dialogShow({
5384
5417
  html: (_c = action.props) === null || _c === void 0 ? void 0 : _c.html,
5385
5418
  label: (_d = action.props) === null || _d === void 0 ? void 0 : _d.label,
5386
5419
  size: (_e = action.props) === null || _e === void 0 ? void 0 : _e.size,
5387
5420
  button: (_f = action.props) === null || _f === void 0 ? void 0 : _f.button
5388
5421
  });
5389
- return [3 /*break*/, 46];
5390
- case 44:
5422
+ return [3 /*break*/, 49];
5423
+ case 47:
5391
5424
  this.dialogHide();
5392
- return [3 /*break*/, 46];
5393
- case 45: return [3 /*break*/, 46];
5394
- case 46: return [2 /*return*/];
5425
+ return [3 /*break*/, 49];
5426
+ case 48: return [3 /*break*/, 49];
5427
+ case 49: return [2 /*return*/];
5395
5428
  }
5396
5429
  });
5397
5430
  });
@@ -5465,7 +5498,7 @@
5465
5498
  ], KwikIDFormViewComponent.prototype, "executeApiCall", null);
5466
5499
  __decorate([
5467
5500
  kwikidToolkit.logMethod
5468
- ], KwikIDFormViewComponent.prototype, "validateHeadersAndBody", null);
5501
+ ], KwikIDFormViewComponent.prototype, "isValidRequestHeadersAndBody", null);
5469
5502
  __decorate([
5470
5503
  kwikidToolkit.logMethod
5471
5504
  ], KwikIDFormViewComponent.prototype, "handleOnClickApiCall", null);
@@ -5556,6 +5589,9 @@
5556
5589
  __decorate([
5557
5590
  kwikidToolkit.logMethod
5558
5591
  ], KwikIDFormViewComponent.prototype, "dialogHide", null);
5592
+ __decorate([
5593
+ kwikidToolkit.logMethod
5594
+ ], KwikIDFormViewComponent.prototype, "redirectToUrl", null);
5559
5595
  __decorate([
5560
5596
  kwikidToolkit.logMethod
5561
5597
  ], KwikIDFormViewComponent.prototype, "patchFieldControlValue", null);
@@ -5641,7 +5677,7 @@
5641
5677
  type: i0.Output
5642
5678
  }], onActionShowPopupForm: [{
5643
5679
  type: i0.Output
5644
- }], ngOnInit: [], ngAfterViewInit: [], ngOnChanges: [], initFormConfig: [], setFormFieldsFromFormConfig: [], setFormFieldGroupsFromFormConfig: [], setFormDataFromAllFormsData: [], handleConnectedElementFieldGroupActions: [], handleConnectedElementFieldGroup: [], handleConnectedElementFieldActions: [], handleConnectedElementFields: [], handleConnectedElements: [], handleRemovedFile: [], handleGetKeyValueFile: [], updateFiles: [], uploadFile: [], handleGetKeyValue: [], handleOnClickResetFormFields: [], handleFieldApiCall: [], handleApiCall: [], executeApiCall: [], validateHeadersAndBody: [], handleOnClickApiCall: [], handleOnClickGoBack: [], handleOnClickViewForms: [], handleOnClickSaveForm: [], toggleErrorNotification: [], fieldHide: [], fieldGroupHide: [], fieldShow: [], fieldGroupShow: [], fieldDisable: [], fieldGroupDisable: [], fieldEnable: [], fieldGroupEnable: [], fieldReset: [], fieldErrorShow: [], fieldErrorHide: [], fieldMessageShow: [], fieldMessageHide: [], setValue: [], setFieldDefaultValue: [], setDropdownOptions: [], apiCall: [], fieldApiCall: [], fieldMultipleApiCalls: [], fieldMultipleApiCallsEnd: [], taskApiCall: [], taskMultipleApiCalls: [], taskMultipleApiCallsEnd: [], dialogShow: [], dialogHide: [], patchFieldControlValue: [], setFieldControlValue: [], patchFormGroup: [], isFieldValid: [], isFieldEnabled: [], getFormGroupRawValues: [], showPreview: [], showErrorPreview: [], showPopupForm: [], takeActionOnFieldGroup: [], takeAction: [] } });
5680
+ }], ngOnInit: [], ngAfterViewInit: [], ngOnChanges: [], initFormConfig: [], setFormFieldsFromFormConfig: [], setFormFieldGroupsFromFormConfig: [], setFormDataFromAllFormsData: [], handleConnectedElementFieldGroupActions: [], handleConnectedElementFieldGroup: [], handleConnectedElementFieldActions: [], handleConnectedElementFields: [], handleConnectedElements: [], handleRemovedFile: [], handleGetKeyValueFile: [], updateFiles: [], uploadFile: [], handleGetKeyValue: [], handleOnClickResetFormFields: [], handleFieldApiCall: [], handleApiCall: [], executeApiCall: [], isValidRequestHeadersAndBody: [], handleOnClickApiCall: [], handleOnClickGoBack: [], handleOnClickViewForms: [], handleOnClickSaveForm: [], toggleErrorNotification: [], fieldHide: [], fieldGroupHide: [], fieldShow: [], fieldGroupShow: [], fieldDisable: [], fieldGroupDisable: [], fieldEnable: [], fieldGroupEnable: [], fieldReset: [], fieldErrorShow: [], fieldErrorHide: [], fieldMessageShow: [], fieldMessageHide: [], setValue: [], setFieldDefaultValue: [], setDropdownOptions: [], apiCall: [], fieldApiCall: [], fieldMultipleApiCalls: [], fieldMultipleApiCallsEnd: [], taskApiCall: [], taskMultipleApiCalls: [], taskMultipleApiCallsEnd: [], dialogShow: [], dialogHide: [], redirectToUrl: [], patchFieldControlValue: [], setFieldControlValue: [], patchFormGroup: [], isFieldValid: [], isFieldEnabled: [], getFormGroupRawValues: [], showPreview: [], showErrorPreview: [], showPopupForm: [], takeActionOnFieldGroup: [], takeAction: [] } });
5645
5681
 
5646
5682
  var EFormType;
5647
5683
  (function (EFormType) {