kwikid-forms 0.0.5 → 0.0.6

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.
Files changed (32) hide show
  1. package/bundles/kwikid-forms.umd.js +546 -159
  2. package/bundles/kwikid-forms.umd.js.map +1 -1
  3. package/esm2015/lib/renderer/form-view/definitions/fields/form-view.fields.type.definitions.js +1 -1
  4. package/esm2015/lib/renderer/form-view/definitions/sources/form-view.sources.enum.definitions.js +2 -1
  5. package/esm2015/lib/renderer/form-view/definitions/sources/form-view.sources.type.definitions.js +1 -1
  6. package/esm2015/lib/renderer/form-view/form-view.component.js +29 -11
  7. package/esm2015/lib/renderer/form-view/form-view.module.js +9 -2
  8. package/esm2015/lib/renderer/form-view/form-view.service.js +3 -2
  9. package/esm2015/lib/renderer/form-view/helpers/form-view.fields.helper.js +16 -29
  10. package/esm2015/lib/renderer/helpers/renderer.actions.helper.js +20 -0
  11. package/esm2015/lib/renderer/helpers/renderer.condition.helper.js +41 -0
  12. package/esm2015/lib/renderer/helpers/renderer.rules.helper.js +63 -0
  13. package/esm2015/lib/renderer/helpers/renderer.sources.helper.js +91 -0
  14. package/esm2015/lib/renderer/helpers/renderer.validations.helper.js +33 -0
  15. package/esm2015/lib/renderer/renderer.component.js +50 -4
  16. package/esm2015/lib/renderer/renderer.config-converter.helper.js +15 -10
  17. package/esm2015/lib/renderer/renderer.module.js +15 -4
  18. package/fesm2015/kwikid-forms.js +398 -98
  19. package/fesm2015/kwikid-forms.js.map +1 -1
  20. package/lib/renderer/form-view/definitions/fields/form-view.fields.type.definitions.d.ts +1 -1
  21. package/lib/renderer/form-view/definitions/sources/form-view.sources.enum.definitions.d.ts +1 -0
  22. package/lib/renderer/form-view/definitions/sources/form-view.sources.type.definitions.d.ts +1 -1
  23. package/lib/renderer/form-view/form-view.component.d.ts +7 -2
  24. package/lib/renderer/form-view/form-view.module.d.ts +3 -2
  25. package/lib/renderer/helpers/renderer.actions.helper.d.ts +8 -0
  26. package/lib/renderer/helpers/renderer.condition.helper.d.ts +8 -0
  27. package/lib/renderer/helpers/renderer.rules.helper.d.ts +8 -0
  28. package/lib/renderer/helpers/renderer.sources.helper.d.ts +13 -0
  29. package/lib/renderer/helpers/renderer.validations.helper.d.ts +8 -0
  30. package/lib/renderer/renderer.component.d.ts +4 -0
  31. package/lib/renderer/renderer.module.d.ts +3 -1
  32. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/cdk/drag-drop'), require('@angular/core'), require('@angular/forms'), require('kwikui'), require('lodash'), require('rxjs/operators'), require('jsonpath'), require('@taiga-ui/cdk'), require('@taiga-ui/core'), require('@angular/common'), require('@angular/animations'), require('@angular/common/http')) :
3
- typeof define === 'function' && define.amd ? define('kwikid-forms', ['exports', '@angular/cdk/drag-drop', '@angular/core', '@angular/forms', 'kwikui', 'lodash', 'rxjs/operators', 'jsonpath', '@taiga-ui/cdk', '@taiga-ui/core', '@angular/common', '@angular/animations', '@angular/common/http'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["kwikid-forms"] = {}, global.ng.cdk.dragDrop, global.ng.core, global.ng.forms, global.i2, global._, global.rxjs.operators, global.jp, global["@taiga-ui/cdk"], global["@taiga-ui/core"], global.ng.common, global.ng.animations, global.ng.common.http));
5
- })(this, (function (exports, dragDrop, i0, i5, i2, _, operators, jp, cdk, i3, i4, animations, http) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/cdk/drag-drop'), require('@angular/core'), require('@angular/forms'), require('kwikui'), require('lodash'), require('@taiga-ui/core'), require('@taiga-ui/kit'), require('rxjs/operators'), require('jsonpath'), require('@taiga-ui/cdk'), require('@angular/common'), require('@angular/animations'), require('@angular/common/http')) :
3
+ typeof define === 'function' && define.amd ? define('kwikid-forms', ['exports', '@angular/cdk/drag-drop', '@angular/core', '@angular/forms', 'kwikui', 'lodash', '@taiga-ui/core', '@taiga-ui/kit', 'rxjs/operators', 'jsonpath', '@taiga-ui/cdk', '@angular/common', '@angular/animations', '@angular/common/http'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["kwikid-forms"] = {}, global.ng.cdk.dragDrop, global.ng.core, global.ng.forms, global.i2, global._, global["@taiga-ui/core"], global["@taiga-ui/kit"], global.rxjs.operators, global.jp, global["@taiga-ui/cdk"], global.ng.common, global.ng.animations, global.ng.common.http));
5
+ })(this, (function (exports, dragDrop, i0, i6, i2, _, i3, i4, operators, jp, cdk, i5, animations, http) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -25,12 +25,13 @@
25
25
  }
26
26
 
27
27
  var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
28
- var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
28
+ var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
29
29
  var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
30
30
  var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
31
- var jp__default = /*#__PURE__*/_interopDefaultLegacy(jp);
32
31
  var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
33
32
  var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
33
+ var jp__default = /*#__PURE__*/_interopDefaultLegacy(jp);
34
+ var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
34
35
 
35
36
  /******************************************************************************
36
37
  Copyright (c) Microsoft Corporation.
@@ -394,7 +395,7 @@
394
395
  required: true
395
396
  }
396
397
  };
397
- this.formGroup = new i5.FormGroup({});
398
+ this.formGroup = new i6.FormGroup({});
398
399
  this.name = "Angular " + i0.VERSION.major;
399
400
  this.menu = [
400
401
  {
@@ -454,10 +455,10 @@
454
455
  var clone = _.cloneDeep(event.previousContainer.data[event.previousIndex]);
455
456
  clone.id = clone.key + "__" + this.revisedRandId();
456
457
  event.previousContainer.data[event.previousIndex] = clone;
457
- var newFormGroup_1 = new i5.FormGroup({});
458
+ var newFormGroup_1 = new i6.FormGroup({});
458
459
  var props_1 = clone.props;
459
460
  Object.keys(props_1).forEach(function (key) {
460
- newFormGroup_1.addControl(key, new i5.FormControl({ value: props_1[key], disabled: false }));
461
+ newFormGroup_1.addControl(key, new i6.FormControl({ value: props_1[key], disabled: false }));
461
462
  });
462
463
  this.formGroup.addControl(clone.id, newFormGroup_1);
463
464
  dragDrop.copyArrayItem(event.previousContainer.data, event.container.data, event.previousIndex, event.currentIndex);
@@ -932,7 +933,7 @@
932
933
  return value;
933
934
  };
934
935
 
935
- var Condition = /** @class */ (function () {
936
+ var Condition$1 = /** @class */ (function () {
936
937
  function Condition(condition, rulesMapping) {
937
938
  this._condition = condition;
938
939
  this._rulesMapping = rulesMapping;
@@ -974,9 +975,9 @@
974
975
  }());
975
976
  __decorate([
976
977
  log
977
- ], Condition.prototype, "evaluate", null);
978
+ ], Condition$1.prototype, "evaluate", null);
978
979
 
979
- var Actions = /** @class */ (function () {
980
+ var Actions$1 = /** @class */ (function () {
980
981
  function Actions(action, field, ruleMapping, allFormsData, formData, previousFormData, takeAction) {
981
982
  this._action = action;
982
983
  this._field = field;
@@ -990,7 +991,7 @@
990
991
  return __awaiter(this, void 0, void 0, function () {
991
992
  var condition, actionSuccess;
992
993
  return __generator(this, function (_a) {
993
- condition = new Condition(this._action.condition, this._ruleMapping);
994
+ condition = new Condition$1(this._action.condition, this._ruleMapping);
994
995
  actionSuccess = condition.evaluate();
995
996
  if (actionSuccess) {
996
997
  return [2 /*return*/, this._takeAction(this._action, this._field, this._allFormsData, this._formData, this._previousFormData)];
@@ -1003,7 +1004,7 @@
1003
1004
  }());
1004
1005
  __decorate([
1005
1006
  log
1006
- ], Actions.prototype, "execute", null);
1007
+ ], Actions$1.prototype, "execute", null);
1007
1008
 
1008
1009
  var ERuleKey;
1009
1010
  (function (ERuleKey) {
@@ -1020,6 +1021,7 @@
1020
1021
  ESourceKey["ALL_FORMS_DATA"] = "ALL_FORMS_DATA";
1021
1022
  ESourceKey["BROWSER_STORAGE"] = "BROWSER_STORAGE";
1022
1023
  ESourceKey["PREDEFINED"] = "PREDEFINED";
1024
+ ESourceKey["USER_CONFIG"] = "USER_CONFIG";
1023
1025
  ESourceKey["CUSTOM"] = "CUSTOM";
1024
1026
  })(ESourceKey || (ESourceKey = {}));
1025
1027
  var EBrowserStorageType;
@@ -1028,7 +1030,7 @@
1028
1030
  EBrowserStorageType["SESSION_STORAGE"] = "SESSION_STORAGE";
1029
1031
  })(EBrowserStorageType || (EBrowserStorageType = {}));
1030
1032
 
1031
- var Sources = /** @class */ (function () {
1033
+ var Sources$1 = /** @class */ (function () {
1032
1034
  function Sources(field, formData, previousFormData, allFormsData) {
1033
1035
  this._field = field;
1034
1036
  this._formData = formData;
@@ -1211,12 +1213,12 @@
1211
1213
  }());
1212
1214
  __decorate([
1213
1215
  log
1214
- ], Sources.prototype, "getValueFromSource", null);
1216
+ ], Sources$1.prototype, "getValueFromSource", null);
1215
1217
  __decorate([
1216
1218
  log
1217
- ], Sources.prototype, "setValueToSource", null);
1219
+ ], Sources$1.prototype, "setValueToSource", null);
1218
1220
 
1219
- var Rules = /** @class */ (function () {
1221
+ var Rules$1 = /** @class */ (function () {
1220
1222
  function Rules(rules, field, formData, previousFormData, allFormsData) {
1221
1223
  this._field = field;
1222
1224
  this._formData = formData;
@@ -1230,7 +1232,7 @@
1230
1232
  if (this._field.type === "radio") {
1231
1233
  this._formData[this._field.key] = this._formData[this._field.key].label;
1232
1234
  }
1233
- var source = new Sources(this._field, this._formData, this._previousFormData, this._allFormsData);
1235
+ var source = new Sources$1(this._field, this._formData, this._previousFormData, this._allFormsData);
1234
1236
  switch (ruleType) {
1235
1237
  case ERuleKey.OBJECT_PATH_EXISTS:
1236
1238
  var ruleObjectPathExists = rule;
@@ -1302,10 +1304,10 @@
1302
1304
  }());
1303
1305
  __decorate([
1304
1306
  log
1305
- ], Rules.prototype, "evaluate", null);
1307
+ ], Rules$1.prototype, "evaluate", null);
1306
1308
  __decorate([
1307
1309
  log
1308
- ], Rules.prototype, "mapping", null);
1310
+ ], Rules$1.prototype, "mapping", null);
1309
1311
 
1310
1312
  var Defaults = /** @class */ (function () {
1311
1313
  function Defaults(field, allFormsData, formData, previousFormData, takeAction) {
@@ -1332,7 +1334,7 @@
1332
1334
  case 2:
1333
1335
  if (!!sources_1_1.done) return [3 /*break*/, 12];
1334
1336
  source = sources_1_1.value;
1335
- sources_2 = new Sources(this._field, this._formData, this._previousFormData, this._allFormsData);
1337
+ sources_2 = new Sources$1(this._field, this._formData, this._previousFormData, this._allFormsData);
1336
1338
  value = sources_2.getValueFromSource(source);
1337
1339
  // Set the Value of current source.
1338
1340
  this._field = setValueToObject(this._field, "default.value.sources.[" + sourceIndex + "].value", value);
@@ -1340,7 +1342,7 @@
1340
1342
  triggers = validation.triggers;
1341
1343
  rules = validation.rules;
1342
1344
  actions = validation.actions;
1343
- rulesMapping = new Rules(rules, this._field, this._formData, this._previousFormData, this._allFormsData).mapping();
1345
+ rulesMapping = new Rules$1(rules, this._field, this._formData, this._previousFormData, this._allFormsData).mapping();
1344
1346
  _c.label = 3;
1345
1347
  case 3:
1346
1348
  _c.trys.push([3, 8, 9, 10]);
@@ -1349,9 +1351,9 @@
1349
1351
  case 4:
1350
1352
  if (!!actions_1_1.done) return [3 /*break*/, 7];
1351
1353
  action = actions_1_1.value;
1352
- conditionEvaluation = new Condition(action.condition, rulesMapping).evaluate();
1354
+ conditionEvaluation = new Condition$1(action.condition, rulesMapping).evaluate();
1353
1355
  if (!conditionEvaluation) return [3 /*break*/, 6];
1354
- actions_2 = new Actions(action, this._field, rulesMapping, this._allFormsData, this._formData, this._previousFormData, this._takeAction);
1356
+ actions_2 = new Actions$1(action, this._field, rulesMapping, this._allFormsData, this._formData, this._previousFormData, this._takeAction);
1355
1357
  return [4 /*yield*/, actions_2.execute()];
1356
1358
  case 5:
1357
1359
  _c.sent();
@@ -1583,39 +1585,26 @@
1583
1585
  };
1584
1586
  var convertValueFromBasicFormatToKwikUIFormat = function (field, value) {
1585
1587
  var convertedValue = value;
1586
- switch (field.type) {
1587
- case EFieldType.RADIO:
1588
- if (hasKey$1(value, "label")) {
1589
- convertedValue = value.label;
1590
- }
1591
- else {
1592
- convertedValue = "";
1593
- }
1594
- break;
1595
- case EFieldType.DATE:
1596
- if (isNull(value)) {
1597
- convertedValue = "";
1598
- }
1599
- else {
1588
+ if (isNotEmpty(value)) {
1589
+ switch (field.type) {
1590
+ case EFieldType.RADIO:
1591
+ if (hasKey$1(value, "label")) {
1592
+ convertedValue = value.label;
1593
+ }
1594
+ break;
1595
+ case EFieldType.DATE:
1600
1596
  convertedValue = formatDateToStandardFormat(value);
1601
- }
1602
- break;
1603
- case EFieldType.PHONE:
1604
- var fieldPhone = field;
1605
- convertedValue = value.replace(String(fieldPhone.properties.countryCode), "");
1606
- break;
1607
- case EFieldType.TITLE:
1608
- break;
1609
- default:
1610
- if (isEmpty(value)) {
1611
- convertedValue = "";
1612
- }
1613
- break;
1597
+ break;
1598
+ case EFieldType.TITLE:
1599
+ break;
1600
+ default:
1601
+ break;
1602
+ }
1614
1603
  }
1615
1604
  return convertedValue;
1616
1605
  };
1617
1606
 
1618
- var Validations = /** @class */ (function () {
1607
+ var Validations$1 = /** @class */ (function () {
1619
1608
  function Validations(field, formData, previousFormData, allFormsData, takeAction) {
1620
1609
  this._field = field;
1621
1610
  this._formData = formData;
@@ -1668,36 +1657,36 @@
1668
1657
  if (hasKey$1(field, "validators") &&
1669
1658
  hasKey$1(field.validators, "min") &&
1670
1659
  isNotEmpty(field.validators.min)) {
1671
- validators.push(i5.Validators.min(field.validators.min));
1660
+ validators.push(i6.Validators.min(field.validators.min));
1672
1661
  }
1673
1662
  if (hasKey$1(field, "validators") &&
1674
1663
  hasKey$1(field.validators, "max") &&
1675
1664
  isNotEmpty(field.validators.max)) {
1676
- validators.push(i5.Validators.max(field.validators.max));
1665
+ validators.push(i6.Validators.max(field.validators.max));
1677
1666
  }
1678
1667
  if (hasKey$1(field, "required") ||
1679
1668
  (hasKey$1(field, "validators") && hasKey$1(field.validators, "required"))) {
1680
- validators.push(i5.Validators.required);
1669
+ validators.push(i6.Validators.required);
1681
1670
  }
1682
1671
  if (hasKey$1(field, "validators") &&
1683
1672
  hasKey$1(field.validators, "minLength") &&
1684
1673
  isNotEmpty(field.validators.minLength)) {
1685
- validators.push(i5.Validators.minLength(field.validators.minLength));
1674
+ validators.push(i6.Validators.minLength(field.validators.minLength));
1686
1675
  }
1687
1676
  if (hasKey$1(field, "validators") &&
1688
1677
  hasKey$1(field.validators, "maxLength") &&
1689
1678
  isNotEmpty(field.validators.maxLength)) {
1690
- validators.push(i5.Validators.maxLength(field.validators.maxLength));
1679
+ validators.push(i6.Validators.maxLength(field.validators.maxLength));
1691
1680
  }
1692
1681
  if (hasKey$1(field, "validators") &&
1693
1682
  hasKey$1(field.validators, "pattern") &&
1694
1683
  isNotEmpty(field.validators.pattern)) {
1695
1684
  if (hasKey$1(field.validators.pattern, "key")) {
1696
1685
  if (field.validators.pattern.key === EPatternKey.CUSTOM) {
1697
- validators.push(i5.Validators.pattern(field.validators.pattern.pattern));
1686
+ validators.push(i6.Validators.pattern(field.validators.pattern.pattern));
1698
1687
  }
1699
1688
  else {
1700
- validators.push(i5.Validators.pattern(EPattern[field.validators.pattern.key]));
1689
+ validators.push(i6.Validators.pattern(EPattern[field.validators.pattern.key]));
1701
1690
  }
1702
1691
  }
1703
1692
  }
@@ -1738,10 +1727,10 @@
1738
1727
  invalid: false
1739
1728
  });
1740
1729
  }
1741
- if (control instanceof i5.FormGroup) {
1730
+ if (control instanceof i6.FormGroup) {
1742
1731
  recursiveFunc(control);
1743
1732
  }
1744
- else if (control instanceof i5.FormArray) {
1733
+ else if (control instanceof i6.FormArray) {
1745
1734
  recursiveFunc(control);
1746
1735
  }
1747
1736
  });
@@ -1760,7 +1749,7 @@
1760
1749
  triggers = validations.triggers;
1761
1750
  rules = validations.rules;
1762
1751
  actions = validations.actions;
1763
- rulesMapping = new Rules(rules, this._field, this._formData, this._previousFormData, this._allFormsData).mapping();
1752
+ rulesMapping = new Rules$1(rules, this._field, this._formData, this._previousFormData, this._allFormsData).mapping();
1764
1753
  _b.label = 1;
1765
1754
  case 1:
1766
1755
  _b.trys.push([1, 6, 7, 8]);
@@ -1769,9 +1758,9 @@
1769
1758
  case 2:
1770
1759
  if (!!actions_1_1.done) return [3 /*break*/, 5];
1771
1760
  action = actions_1_1.value;
1772
- conditionEvaluation = new Condition(action.condition, rulesMapping).evaluate();
1761
+ conditionEvaluation = new Condition$1(action.condition, rulesMapping).evaluate();
1773
1762
  if (!conditionEvaluation) return [3 /*break*/, 4];
1774
- actions_2 = new Actions(action, this._field, rulesMapping, this._allFormsData, this._formData, this._previousFormData, this._takeAction);
1763
+ actions_2 = new Actions$1(action, this._field, rulesMapping, this._allFormsData, this._formData, this._previousFormData, this._takeAction);
1775
1764
  return [4 /*yield*/, actions_2.execute()];
1776
1765
  case 3:
1777
1766
  _b.sent();
@@ -1799,16 +1788,16 @@
1799
1788
  }());
1800
1789
  __decorate([
1801
1790
  log
1802
- ], Validations.prototype, "getFieldValidators", null);
1791
+ ], Validations$1.prototype, "getFieldValidators", null);
1803
1792
  __decorate([
1804
1793
  log
1805
- ], Validations.prototype, "getFormValidationErrors", null);
1794
+ ], Validations$1.prototype, "getFormValidationErrors", null);
1806
1795
  __decorate([
1807
1796
  log
1808
- ], Validations.prototype, "findInvalidControlsRecursive", null);
1797
+ ], Validations$1.prototype, "findInvalidControlsRecursive", null);
1809
1798
  __decorate([
1810
1799
  log
1811
- ], Validations.prototype, "validateField", null);
1800
+ ], Validations$1.prototype, "validateField", null);
1812
1801
 
1813
1802
  var KwikIDFormViewService = /** @class */ (function () {
1814
1803
  function KwikIDFormViewService() {
@@ -1816,41 +1805,40 @@
1816
1805
  // 'init' stage of the form
1817
1806
  KwikIDFormViewService.prototype.createFormGroup = function (fields, formData, previousFormData, allFormsData, takeAction) {
1818
1807
  return __awaiter(this, void 0, void 0, function () {
1819
- var formGroup, fields_1, fields_1_1, field, defaults, value, _a, _b, validators, e_1_1;
1820
- var e_1, _c;
1821
- return __generator(this, function (_d) {
1822
- switch (_d.label) {
1808
+ var formGroup, fields_1, fields_1_1, field, defaults, value, validators, e_1_1;
1809
+ var e_1, _a;
1810
+ return __generator(this, function (_b) {
1811
+ switch (_b.label) {
1823
1812
  case 0:
1824
- formGroup = new i5.FormGroup({});
1825
- _d.label = 1;
1813
+ formGroup = new i6.FormGroup({});
1814
+ _b.label = 1;
1826
1815
  case 1:
1827
- _d.trys.push([1, 6, 7, 8]);
1816
+ _b.trys.push([1, 6, 7, 8]);
1828
1817
  fields_1 = __values(fields), fields_1_1 = fields_1.next();
1829
- _d.label = 2;
1818
+ _b.label = 2;
1830
1819
  case 2:
1831
1820
  if (!!fields_1_1.done) return [3 /*break*/, 5];
1832
1821
  field = fields_1_1.value;
1833
1822
  if (!(field.type !== "title")) return [3 /*break*/, 4];
1834
1823
  defaults = new Defaults(field, allFormsData, formData, previousFormData, takeAction);
1835
- _a = convertValueFromBasicFormatToKwikUIFormat;
1836
- _b = [field.type];
1837
1824
  return [4 /*yield*/, defaults.getDefaultValue()];
1838
1825
  case 3:
1839
- value = _a.apply(void 0, _b.concat([_d.sent()]));
1840
- validators = new Validations(field, formData, previousFormData, allFormsData, takeAction).getFieldValidators(field);
1841
- formGroup.addControl(field.key, new i5.FormControl({ value: value, disabled: field.disabled }, { validators: validators }));
1842
- _d.label = 4;
1826
+ value = _b.sent();
1827
+ value = convertValueFromBasicFormatToKwikUIFormat(field.type, value);
1828
+ validators = new Validations$1(field, formData, previousFormData, allFormsData, takeAction).getFieldValidators(field);
1829
+ formGroup.addControl(field.key, new i6.FormControl({ value: value, disabled: field.disabled }, { validators: validators }));
1830
+ _b.label = 4;
1843
1831
  case 4:
1844
1832
  fields_1_1 = fields_1.next();
1845
1833
  return [3 /*break*/, 2];
1846
1834
  case 5: return [3 /*break*/, 8];
1847
1835
  case 6:
1848
- e_1_1 = _d.sent();
1836
+ e_1_1 = _b.sent();
1849
1837
  e_1 = { error: e_1_1 };
1850
1838
  return [3 /*break*/, 8];
1851
1839
  case 7:
1852
1840
  try {
1853
- if (fields_1_1 && !fields_1_1.done && (_c = fields_1.return)) _c.call(fields_1);
1841
+ if (fields_1_1 && !fields_1_1.done && (_a = fields_1.return)) _a.call(fields_1);
1854
1842
  }
1855
1843
  finally { if (e_1) throw e_1.error; }
1856
1844
  return [7 /*endfinally*/];
@@ -1905,7 +1893,7 @@
1905
1893
  case 4:
1906
1894
  if (!!sources_1_1.done) return [3 /*break*/, 14];
1907
1895
  source = sources_1_1.value;
1908
- sources_2 = new Sources(this._field, this._formData, this._previousFormData, this._allFormsData);
1896
+ sources_2 = new Sources$1(this._field, this._formData, this._previousFormData, this._allFormsData);
1909
1897
  value = sources_2.getValueFromSource(source);
1910
1898
  // Set the Value of current source.
1911
1899
  this._field = setValueToObject(this._field, "api.request.body.params[" + paramIndex + "].sources[" + sourceIndex + "].value", value);
@@ -1913,7 +1901,7 @@
1913
1901
  triggers = (_a = validation === null || validation === void 0 ? void 0 : validation.triggers) !== null && _a !== void 0 ? _a : [];
1914
1902
  rules = (_b = validation === null || validation === void 0 ? void 0 : validation.rules) !== null && _b !== void 0 ? _b : [];
1915
1903
  actions = (_c = validation === null || validation === void 0 ? void 0 : validation.actions) !== null && _c !== void 0 ? _c : [];
1916
- rulesMapping = new Rules(rules, this._field, this._formData, this._previousFormData, this._allFormsData).mapping();
1904
+ rulesMapping = new Rules$1(rules, this._field, this._formData, this._previousFormData, this._allFormsData).mapping();
1917
1905
  _g.label = 5;
1918
1906
  case 5:
1919
1907
  _g.trys.push([5, 10, 11, 12]);
@@ -1922,9 +1910,9 @@
1922
1910
  case 6:
1923
1911
  if (!!actions_1_1.done) return [3 /*break*/, 9];
1924
1912
  action = actions_1_1.value;
1925
- conditionEvaluation = new Condition(action.condition, rulesMapping).evaluate();
1913
+ conditionEvaluation = new Condition$1(action.condition, rulesMapping).evaluate();
1926
1914
  if (!conditionEvaluation) return [3 /*break*/, 8];
1927
- actions_2 = new Actions(action, this._field, rulesMapping, this._allFormsData, this._formData, this._previousFormData, this._takeAction);
1915
+ actions_2 = new Actions$1(action, this._field, rulesMapping, this._allFormsData, this._formData, this._previousFormData, this._takeAction);
1928
1916
  return [4 /*yield*/, actions_2.execute()];
1929
1917
  case 7:
1930
1918
  _g.sent();
@@ -1994,7 +1982,7 @@
1994
1982
  triggers = validation.triggers;
1995
1983
  rules = validation.rules;
1996
1984
  actions = validation.actions;
1997
- rulesMapping = new Rules(rules, this._field, this._formData, this._previousFormData, this._allFormsData).mapping();
1985
+ rulesMapping = new Rules$1(rules, this._field, this._formData, this._previousFormData, this._allFormsData).mapping();
1998
1986
  _e.label = 1;
1999
1987
  case 1:
2000
1988
  _e.trys.push([1, 6, 7, 8]);
@@ -2003,9 +1991,9 @@
2003
1991
  case 2:
2004
1992
  if (!!actions_3_1.done) return [3 /*break*/, 5];
2005
1993
  action = actions_3_1.value;
2006
- conditionSuccess = new Condition(action.condition, rulesMapping).evaluate();
1994
+ conditionSuccess = new Condition$1(action.condition, rulesMapping).evaluate();
2007
1995
  if (!conditionSuccess) return [3 /*break*/, 4];
2008
- actions_4 = new Actions(action, this._field, rulesMapping, this._allFormsData, this._formData, this._previousFormData, this._takeAction);
1996
+ actions_4 = new Actions$1(action, this._field, rulesMapping, this._allFormsData, this._formData, this._previousFormData, this._takeAction);
2009
1997
  return [4 /*yield*/, actions_4.execute()];
2010
1998
  case 3:
2011
1999
  _e.sent();
@@ -2040,7 +2028,7 @@
2040
2028
  triggers = validation.triggers;
2041
2029
  rules = validation.rules;
2042
2030
  actions = validation.actions;
2043
- rulesMapping = new Rules(rules, this._field, this._formData, this._previousFormData, this._allFormsData).mapping();
2031
+ rulesMapping = new Rules$1(rules, this._field, this._formData, this._previousFormData, this._allFormsData).mapping();
2044
2032
  _e.label = 1;
2045
2033
  case 1:
2046
2034
  _e.trys.push([1, 6, 7, 8]);
@@ -2049,9 +2037,9 @@
2049
2037
  case 2:
2050
2038
  if (!!actions_5_1.done) return [3 /*break*/, 5];
2051
2039
  action = actions_5_1.value;
2052
- conditionSuccess = new Condition(action.condition, rulesMapping).evaluate();
2040
+ conditionSuccess = new Condition$1(action.condition, rulesMapping).evaluate();
2053
2041
  if (!conditionSuccess) return [3 /*break*/, 4];
2054
- actions_6 = new Actions(action, this._field, rulesMapping, this._allFormsData, this._formData, this._previousFormData, this._takeAction);
2042
+ actions_6 = new Actions$1(action, this._field, rulesMapping, this._allFormsData, this._formData, this._previousFormData, this._takeAction);
2055
2043
  return [4 /*yield*/, actions_6.execute()];
2056
2044
  case 3:
2057
2045
  _e.sent();
@@ -2096,9 +2084,10 @@
2096
2084
  ], Apis.prototype, "validateApiCallResponse", null);
2097
2085
 
2098
2086
  var KwikIDFormViewComponent = /** @class */ (function () {
2099
- function KwikIDFormViewComponent(formViewService) {
2087
+ function KwikIDFormViewComponent(push, alert, formViewService) {
2088
+ this.push = push;
2089
+ this.alert = alert;
2100
2090
  this.formViewService = formViewService;
2101
- this.componentThis = this;
2102
2091
  this.apiCallResponse = {};
2103
2092
  this.isMobileView = false;
2104
2093
  this.onClickViewForms = new i0.EventEmitter();
@@ -2116,7 +2105,8 @@
2116
2105
  disabled: false,
2117
2106
  showLoader: false
2118
2107
  };
2119
- this.formGroup = new i5.FormGroup({});
2108
+ this.formGroup = new i6.FormGroup({});
2109
+ this.showErrorNotification = false;
2120
2110
  }
2121
2111
  KwikIDFormViewComponent.prototype.ngOnInit = function () {
2122
2112
  var _this = this;
@@ -2286,7 +2276,7 @@
2286
2276
  switch (_d.label) {
2287
2277
  case 0:
2288
2278
  if (!hasKey$1(connectedFieldConfig, "rules")) return [3 /*break*/, 8];
2289
- rulesMapping = new Rules(connectedFieldConfig.rules, connectedField, this.formData, this.previousFormData, this.allFormsData).mapping();
2279
+ rulesMapping = new Rules$1(connectedFieldConfig.rules, connectedField, this.formData, this.previousFormData, this.allFormsData).mapping();
2290
2280
  _d.label = 1;
2291
2281
  case 1:
2292
2282
  _d.trys.push([1, 6, 7, 8]);
@@ -2295,9 +2285,9 @@
2295
2285
  case 2:
2296
2286
  if (!!_b.done) return [3 /*break*/, 5];
2297
2287
  action = _b.value;
2298
- conditionSuccess = new Condition(action.condition, rulesMapping).evaluate();
2288
+ conditionSuccess = new Condition$1(action.condition, rulesMapping).evaluate();
2299
2289
  if (!conditionSuccess) return [3 /*break*/, 4];
2300
- actions = new Actions(action, connectedField, rulesMapping, this.allFormsData, this.formData, this.previousFormData, this.takeAction.bind(this));
2290
+ actions = new Actions$1(action, connectedField, rulesMapping, this.allFormsData, this.formData, this.previousFormData, this.takeAction.bind(this));
2301
2291
  return [4 /*yield*/, actions.execute()];
2302
2292
  case 3:
2303
2293
  _d.sent();
@@ -2441,7 +2431,7 @@
2441
2431
  var field = findFieldFromKey(this.formFields, e.key);
2442
2432
  if (field.type !== "title" &&
2443
2433
  field.validation.triggers.includes("ON_CHANGE")) {
2444
- var validations_1 = new Validations(field, this.formData, this.previousFormData, this.allFormsData, this.takeAction.bind(this));
2434
+ var validations_1 = new Validations$1(field, this.formData, this.previousFormData, this.allFormsData, this.takeAction.bind(this));
2445
2435
  (function () { return __awaiter(_this, void 0, void 0, function () {
2446
2436
  return __generator(this, function (_a) {
2447
2437
  switch (_a.label) {
@@ -2480,7 +2470,7 @@
2480
2470
  if (!!_d.done) return [3 /*break*/, 6];
2481
2471
  a = _d.value;
2482
2472
  resetField = findFieldFromKey(this.formFields, a.props.fieldKey);
2483
- actions = new Actions(a, resetField, {}, this.allFormsData, this.formData, this.previousFormData, this.takeAction.bind(this));
2473
+ actions = new Actions$1(a, resetField, {}, this.allFormsData, this.formData, this.previousFormData, this.takeAction.bind(this));
2484
2474
  return [4 /*yield*/, actions.execute()];
2485
2475
  case 4:
2486
2476
  _g.sent();
@@ -2602,7 +2592,7 @@
2602
2592
  var _loop_3 = function (field) {
2603
2593
  if (field.type !== EFieldType.TITLE &&
2604
2594
  field.validation.triggers.includes("ON_SAVE")) {
2605
- var validations_2 = new Validations(field, formData, this_2.previousFormData, this_2.allFormsData, this_2.takeAction.bind(this_2));
2595
+ var validations_2 = new Validations$1(field, formData, this_2.previousFormData, this_2.allFormsData, this_2.takeAction.bind(this_2));
2606
2596
  (function () { return __awaiter(_this, void 0, void 0, function () {
2607
2597
  return __generator(this, function (_a) {
2608
2598
  switch (_a.label) {
@@ -2630,7 +2620,7 @@
2630
2620
  finally { if (e_9) throw e_9.error; }
2631
2621
  }
2632
2622
  if (this.formGroup.invalid) {
2633
- var controls = new Validations(undefined, formData, this.previousFormData, this.allFormsData, this.takeAction.bind(this)).findInvalidControlsRecursive(this.formGroup);
2623
+ var controls = new Validations$1(undefined, formData, this.previousFormData, this.allFormsData, this.takeAction.bind(this)).findInvalidControlsRecursive(this.formGroup);
2634
2624
  var firstFieldWithError = "";
2635
2625
  try {
2636
2626
  for (var controls_1 = __values(controls), controls_1_1 = controls_1.next(); !controls_1_1.done; controls_1_1 = controls_1.next()) {
@@ -2648,6 +2638,7 @@
2648
2638
  }
2649
2639
  finally { if (e_10) throw e_10.error; }
2650
2640
  }
2641
+ this.toggleErrorNotification(true);
2651
2642
  return;
2652
2643
  }
2653
2644
  Object.keys(formData).map(function (key) {
@@ -2655,7 +2646,10 @@
2655
2646
  formData[key] = "";
2656
2647
  }
2657
2648
  });
2658
- this.onClickSaveForm.emit({ data: formData });
2649
+ this.onClickSaveForm.emit({ formConfig: this.formConfig, data: formData });
2650
+ };
2651
+ KwikIDFormViewComponent.prototype.toggleErrorNotification = function (show) {
2652
+ this.showErrorNotification = show;
2659
2653
  };
2660
2654
  // Component Helpers
2661
2655
  KwikIDFormViewComponent.prototype.fieldHide = function (fieldKey) {
@@ -2854,7 +2848,7 @@
2854
2848
  this.fieldMessageHide(action.props.fieldKey, action.props.message);
2855
2849
  return [3 /*break*/, 15];
2856
2850
  case 10:
2857
- sources = new Sources(field, this.formData, this.previousFormData, this.allFormsData);
2851
+ sources = new Sources$1(field, this.formData, this.previousFormData, this.allFormsData);
2858
2852
  return [4 /*yield*/, sources.getValueFromSource(action.props.value.source)];
2859
2853
  case 11:
2860
2854
  sourceValue = _b.sent();
@@ -2876,8 +2870,8 @@
2876
2870
  };
2877
2871
  return KwikIDFormViewComponent;
2878
2872
  }());
2879
- /** @nocollapse */ KwikIDFormViewComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KwikIDFormViewComponent, deps: [{ token: KwikIDFormViewService }], target: i0__namespace.ɵɵFactoryTarget.Component });
2880
- /** @nocollapse */ KwikIDFormViewComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: KwikIDFormViewComponent, selector: "kwikid-form-view", inputs: { formConfig: "formConfig", formData: "formData", apiCallResponse: "apiCallResponse", isMobileView: "isMobileView", allFormsData: "allFormsData", formsList: "formsList" }, outputs: { onClickViewForms: "onClickViewForms", onClickSaveForm: "onClickSaveForm", onClickApiCall: "onClickApiCall", getActiveFormData: "getActiveFormData" }, providers: [KwikIDFormViewService], usesOnChanges: true, ngImport: i0__namespace, template: "<div\r\n class=\"kwikid-form-container\"\r\n *ngIf=\"!this.loading\"\r\n>\r\n <div id=\"uf-form-fields-header-container\">\r\n <div id=\"uf-form-fields-title\">\r\n {{ this.formConfig.title }}\r\n </div>\r\n <div id=\"uf-form-fields-steps\">\r\n Step {{ this.formConfig.sequenceNo }} of {{ this.formsList.length }}\r\n </div>\r\n <hr />\r\n </div>\r\n <form\r\n class=\"kwikid-form show\"\r\n [formGroup]=\"this.formGroup\"\r\n >\r\n <ng-container *ngFor=\"let field of this.formFields; let i = index\">\r\n <ng-container [ngSwitch]=\"field.type\">\r\n <!-- Form Title -->\r\n <ng-container *ngSwitchCase=\"'title'\">\r\n <div class=\"title\">\r\n <div>\r\n {{ field.label }}\r\n </div>\r\n <kwikui-button\r\n *ngIf=\"field?.reset\"\r\n appearance=\"whiteblock\"\r\n size=\"s\"\r\n label=\"Reset\"\r\n (onClick)=\"this.handleOnClickResetFormFields($event, field)\"\r\n ></kwikui-button>\r\n </div>\r\n </ng-container>\r\n <!-- Input Text -->\r\n <ng-container *ngSwitchCase=\"'text'\">\r\n <div [hidden]=\"field?.hidden\">\r\n <kwikui-input\r\n [case]=\"field?.properties?.case\"\r\n [disabled]=\"field?.disabled\"\r\n [focus]=\"field?.focus\"\r\n [formControl]=\"formGroup.controls[field.key]\"\r\n [formControlName]=\"field.key\"\r\n [id]=\"field.key\"\r\n [invalid]=\"field?.invalid\"\r\n [label]=\"field.label\"\r\n [placeholder]=\"field?.properties?.placeholder\"\r\n [type]=\"'text'\"\r\n [validators]=\"field?.validators\"\r\n (getKeyValue)=\"handleGetKeyValue($event)\"\r\n ></kwikui-input>\r\n <kwikui-messages\r\n [messages]=\"field.messages\"\r\n [id]=\"field.key\"\r\n ></kwikui-messages>\r\n </div>\r\n </ng-container>\r\n <!-- Checkbox -->\r\n <ng-container *ngSwitchCase=\"'checkbox'\">\r\n <div [hidden]=\"field?.hidden\">\r\n <kwikui-checkbox-block\r\n [contentAlign]=\"field?.properties?.contentAlign ?? 'left'\"\r\n [disabled]=\"field?.disabled\"\r\n [focus]=\"field?.focus\"\r\n [formControl]=\"formGroup.controls[field.key]\"\r\n [formControlName]=\"field.key\"\r\n [id]=\"field.key\"\r\n [invalid]=\"field?.invalid\"\r\n [label]=\"field?.properties?.placeholder\"\r\n [placeholder]=\"field?.properties?.placeholder\"\r\n [properties]=\"field?.properties\"\r\n [size]=\"field?.properties?.size ?? 'l'\"\r\n [validators]=\"field?.validators\"\r\n (getKeyValue)=\"handleGetKeyValue($event)\"\r\n ></kwikui-checkbox-block\r\n ><kwikui-messages\r\n [messages]=\"field.messages\"\r\n [id]=\"field.key\"\r\n ></kwikui-messages>\r\n </div>\r\n </ng-container>\r\n <!-- Input Number -->\r\n <ng-container *ngSwitchCase=\"'number'\">\r\n <div [hidden]=\"field?.hidden\">\r\n <kwikui-input-number\r\n [decimal]=\"field?.properties?.decimal\"\r\n [disabled]=\"field?.disabled\"\r\n [focus]=\"field?.focus\"\r\n [formControl]=\"formGroup.controls[field.key]\"\r\n [formControlName]=\"field.key\"\r\n [id]=\"field.key\"\r\n [invalid]=\"field?.invalid\"\r\n [label]=\"field?.label\"\r\n [max]=\"field?.properties?.max\"\r\n [min]=\"field?.properties?.min\"\r\n [placeholder]=\"field?.properties?.placeholder\"\r\n [postfix]=\"field?.properties?.postfix ?? ''\"\r\n [precision]=\"field?.properties?.precision\"\r\n [prefix]=\"field?.properties?.prefix ?? ''\"\r\n [properties]=\"field?.properties\"\r\n [validators]=\"field?.validators\"\r\n (getKeyValue)=\"handleGetKeyValue($event)\"\r\n ></kwikui-input-number\r\n ><kwikui-messages\r\n [messages]=\"field.messages\"\r\n [id]=\"field.key\"\r\n ></kwikui-messages>\r\n </div>\r\n </ng-container>\r\n <!-- Input Date -->\r\n <ng-container *ngSwitchCase=\"'date'\">\r\n <div [hidden]=\"field?.hidden\">\r\n <kwikui-input-date\r\n [disabled]=\"field?.disabled\"\r\n [focus]=\"field?.focus\"\r\n [formControl]=\"formGroup.controls[field.key]\"\r\n [formControlName]=\"field.key\"\r\n [id]=\"field.key\"\r\n [invalid]=\"field?.invalid\"\r\n [label]=\"field.label\"\r\n [max]=\"field?.properties?.max\"\r\n [min]=\"field?.properties?.min\"\r\n [placeholder]=\"field?.placeholder\"\r\n [properties]=\"field?.properties\"\r\n [validators]=\"field?.validators\"\r\n (getKeyValue)=\"handleGetKeyValue($event)\"\r\n ></kwikui-input-date>\r\n <kwikui-messages\r\n [messages]=\"field.messages\"\r\n [id]=\"field.key\"\r\n ></kwikui-messages>\r\n </div>\r\n </ng-container>\r\n <!-- Input Phone -->\r\n <ng-container *ngSwitchCase=\"'phone'\">\r\n <div [hidden]=\"field?.hidden\">\r\n <kwikui-input-phone\r\n [countryCode]=\"field?.properties?.countryCode\"\r\n [disabled]=\"field?.disabled\"\r\n [focus]=\"field?.focus\"\r\n [formControl]=\"formGroup.controls[field.key]\"\r\n [formControlName]=\"field.key\"\r\n [id]=\"field.key\"\r\n [invalid]=\"field?.invalid\"\r\n [label]=\"field?.label\"\r\n [phoneMaskAfterCountryCode]=\"\r\n field?.properties?.phoneMaskAfterCountryCode\r\n \"\r\n [placeholder]=\"field?.placeholder\"\r\n [validators]=\"field?.validators\"\r\n (getKeyValue)=\"handleGetKeyValue($event)\"\r\n ></kwikui-input-phone>\r\n <kwikui-messages\r\n [messages]=\"field.messages\"\r\n [id]=\"field.key\"\r\n ></kwikui-messages>\r\n </div>\r\n </ng-container>\r\n <!-- Input Radio -->\r\n <ng-container *ngSwitchCase=\"'radio'\">\r\n <div [hidden]=\"field?.hidden\">\r\n <label\r\n [tuiLabel]=\"labelTemplate\"\r\n style=\"min-height: auto\"\r\n >\r\n <kwikui-radio-list\r\n [disabled]=\"field?.disabled\"\r\n [focus]=\"field?.focus\"\r\n [formControl]=\"formGroup.controls[field.key]\"\r\n [formControlName]=\"field.key\"\r\n [id]=\"field.key\"\r\n [invalid]=\"field?.invalid\"\r\n [items]=\"field?.options\"\r\n [label]=\"field?.label\"\r\n [orientation]=\"field?.properties?.orientation\"\r\n [placeholder]=\"field?.placeholder\"\r\n [properties]=\"field?.properties\"\r\n [size]=\"field?.properties?.size\"\r\n [validators]=\"field?.validators\"\r\n (getKeyValue)=\"handleGetKeyValue($event)\"\r\n ></kwikui-radio-list>\r\n </label>\r\n <ng-template #labelTemplate>\r\n <p\r\n class=\"tui-space_bottom-2\"\r\n [hidden]=\"field?.hidden\"\r\n >\r\n <b>\r\n {{ field.label }}\r\n <span *ngIf=\"field.validators?.required\"></span>\r\n </b>\r\n </p>\r\n </ng-template>\r\n <kwikui-messages\r\n [messages]=\"field.messages\"\r\n [id]=\"field.key\"\r\n ></kwikui-messages>\r\n </div>\r\n </ng-container>\r\n <!-- Dropdown -->\r\n <ng-container *ngSwitchCase=\"'dropdown-with-search'\">\r\n <div [hidden]=\"field?.hidden\">\r\n <kwikui-select-combobox\r\n [disabled]=\"field?.disabled\"\r\n [focus]=\"field?.focus\"\r\n [formControl]=\"formGroup.controls[field.key]\"\r\n [formControlName]=\"field.key\"\r\n [id]=\"field.key\"\r\n [invalid]=\"field?.invalid\"\r\n [label]=\"field.label\"\r\n [options]=\"field.options\"\r\n [placeholder]=\"field?.properties?.placeholder\"\r\n [properties]=\"field?.properties\"\r\n [validators]=\"field?.validators\"\r\n (getKeyValue)=\"handleGetKeyValue($event)\"\r\n ></kwikui-select-combobox>\r\n <kwikui-messages\r\n [messages]=\"field.messages\"\r\n [id]=\"field.key\"\r\n ></kwikui-messages>\r\n </div>\r\n </ng-container>\r\n <!-- API Call -->\r\n <ng-container *ngSwitchCase=\"'api-call'\">\r\n <div [hidden]=\"field?.hidden\">\r\n <kwikui-button-api-call\r\n [apiStatus]=\"field?.api?.status?.value\"\r\n [class]=\"field?.class\"\r\n [disabled]=\"field?.disabled\"\r\n [id]=\"field.key\"\r\n [label]=\"field?.api?.status?.labels[field?.api?.status?.value]\"\r\n [showLoader]=\"field?.disabled === 'loading'\"\r\n shape=\"null\"\r\n size=\"m\"\r\n styles=\"width: fit-content\"\r\n (onClick)=\"this.handleOnClickApiCall($event)\"\r\n ></kwikui-button-api-call>\r\n <kwikui-messages\r\n [messages]=\"field.messages\"\r\n [id]=\"field.key\"\r\n ></kwikui-messages>\r\n </div>\r\n </ng-container>\r\n <!-- Mobile OTP -->\r\n <ng-container *ngSwitchCase=\"'otp'\">\r\n <div [hidden]=\"field?.hidden\">\r\n <kwikui-input-otp\r\n [disabled]=\"field?.disabled\"\r\n [focus]=\"field?.focus\"\r\n [formControl]=\"formGroup.controls[field.key]\"\r\n [formControlName]=\"field.key\"\r\n [id]=\"field.key\"\r\n [invalid]=\"field?.invalid\"\r\n [label]=\"field?.label\"\r\n [mask]=\"field?.properties?.mask\"\r\n [placeholder]=\"field?.properties?.placeholder\"\r\n [properties]=\"field?.properties\"\r\n [validators]=\"field?.validators\"\r\n (getKeyValue)=\"handleGetKeyValue($event)\"\r\n ></kwikui-input-otp>\r\n <kwikui-messages\r\n [messages]=\"field.messages\"\r\n [id]=\"field.key\"\r\n ></kwikui-messages>\r\n </div>\r\n </ng-container>\r\n <!-- Aadhaar Number -->\r\n <ng-container *ngSwitchCase=\"'aadhaar-number'\">\r\n <div [hidden]=\"field?.hidden\">\r\n <kwikui-input-aadhaar\r\n [disabled]=\"field?.disabled\"\r\n [focus]=\"field?.focus\"\r\n [formControl]=\"formGroup.controls[field.key]\"\r\n [formControlName]=\"field.key\"\r\n [id]=\"field.key\"\r\n [invalid]=\"field?.invalid\"\r\n [label]=\"field?.label\"\r\n [placeholder]=\"field?.placeholder\"\r\n [properties]=\"field?.properties\"\r\n [validators]=\"field?.validators\"\r\n (getKeyValue)=\"handleGetKeyValue($event)\"\r\n ></kwikui-input-aadhaar>\r\n <kwikui-messages\r\n [messages]=\"field.messages\"\r\n [id]=\"field.key\"\r\n ></kwikui-messages>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n </ng-container>\r\n </form>\r\n <div class=\"kwikid-form-buttons\">\r\n <kwikui-button\r\n *ngIf=\"this.isMobileView\"\r\n [disabled]=\"viewFormsButton.disabled\"\r\n id=\"\"\r\n label=\"View Forms\"\r\n [showLoader]=\"viewFormsButton.showLoader\"\r\n styles=\"\"\r\n class=\"\"\r\n type=\"button\"\r\n appearance=\"secondary\"\r\n icon=\"\"\r\n iconRight=\"\"\r\n shape=\"null\"\r\n size=\"m\"\r\n styles=\"width: 100%\"\r\n (onClick)=\"this.handleOnClickViewForms($event)\"\r\n ></kwikui-button>\r\n <kwikui-button\r\n [disabled]=\"saveFormButton.disabled\"\r\n id=\"\"\r\n label=\"Save\"\r\n [showLoader]=\"saveFormButton.showLoader\"\r\n styles=\"\"\r\n class=\"\"\r\n type=\"button\"\r\n appearance=\"primary\"\r\n icon=\"\"\r\n iconRight=\"\"\r\n shape=\"null\"\r\n size=\"m\"\r\n styles=\"width: 100%\"\r\n (onClick)=\"this.handleOnClickSaveForm($event)\"\r\n ></kwikui-button>\r\n </div>\r\n</div>\r\n<div\r\n class=\"kwikid-form-container-loading\"\r\n *ngIf=\"this.loading\"\r\n>\r\n <div\r\n class=\"large-wrapper\"\r\n [class.tui-skeleton]=\"this.loading\"\r\n [class.tui-skeleton_rounded]=\"this.loading\"\r\n ></div>\r\n <div\r\n class=\"large-wrapper\"\r\n [class.tui-skeleton]=\"this.loading\"\r\n [class.tui-skeleton_rounded]=\"this.loading\"\r\n ></div>\r\n <div\r\n class=\"large-wrapper\"\r\n [class.tui-skeleton]=\"this.loading\"\r\n [class.tui-skeleton_rounded]=\"this.loading\"\r\n ></div>\r\n <div\r\n class=\"large-wrapper\"\r\n [class.tui-skeleton]=\"this.loading\"\r\n [class.tui-skeleton_rounded]=\"this.loading\"\r\n ></div>\r\n <div\r\n class=\"large-wrapper\"\r\n [class.tui-skeleton]=\"this.loading\"\r\n [class.tui-skeleton_rounded]=\"this.loading\"\r\n ></div>\r\n <div\r\n class=\"large-wrapper\"\r\n [class.tui-skeleton]=\"this.loading\"\r\n [class.tui-skeleton_rounded]=\"this.loading\"\r\n ></div>\r\n <div\r\n class=\"large-wrapper\"\r\n [class.tui-skeleton]=\"this.loading\"\r\n [class.tui-skeleton_rounded]=\"this.loading\"\r\n ></div>\r\n</div>\r\n", styles: ["::-webkit-scrollbar{width:8px}::-webkit-scrollbar-track{border-radius:10px}::-webkit-scrollbar-thumb{background:lightgray;border-radius:10px}::-webkit-scrollbar-thumb:hover{background:gray}.kwikid-form-container{width:100%;height:100%;margin:0 auto;display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;align-content:center}.kwikid-form.show{width:100%;height:100%;padding:1rem;overflow-y:auto;display:flex;flex-direction:column;align-content:center;justify-content:flex-start;align-items:stretch;grid-row-gap:1rem;row-gap:1rem}.kwikid-form-buttons{width:100%;bottom:0px;padding:1rem;display:flex;flex-direction:row;align-content:center;justify-content:center;align-items:center;grid-column-gap:10px;column-gap:10px}.kwikid-form-buttons *{flex-grow:1}#uf-form-fields-header-container{display:flex;flex-direction:column;align-content:center;justify-content:center;align-items:flex-start;grid-row-gap:.5rem;row-gap:.5rem;padding:1rem}#uf-form-fields-header-container hr{width:100%}#uf-form-fields-title{color:#000;font-size:1.75em;font-weight:bold}#uf-form-fields-steps{color:var(--color-on-secondary-container);font-size:1em}.title{border-left:.25rem solid var(--tui-primary);padding:.75rem;font-size:1.4em;font-weight:bold;background-color:var(--tui-secondary);display:flex;flex-direction:row;align-content:center;justify-content:space-between;align-items:center;grid-gap:.5rem;gap:.5rem}.title:not(:first-child){margin-top:.5rem}.large-wrapper{width:100%;height:60px}.large-wrapper:first-child{margin-bottom:auto}.large-wrapper:last-child{margin-top:auto}.kwikid-form-container-loading{width:100%;height:100%;margin:0 auto;display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;align-content:center;grid-row-gap:1rem;row-gap:1rem;padding:1rem}\n"], components: [{ type: i2__namespace.KwikUIButtonComponent, selector: "kwikui-button", inputs: ["disabled", "id", "label", "showLoader", "styles", "class", "type", "appearance", "icon", "iconRight", "shape", "size"], outputs: ["onClick"] }, { type: i2__namespace.KwikUIInputComponent, selector: "kwikui-input", inputs: ["label", "id", "type", "formControlName", "formControl", "placeholder", "focus", "invalid", "disabled", "validators", "case", "properties"], outputs: ["getKeyValue"] }, { type: i2__namespace.KwikUIMessagesComponent, selector: "kwikui-messages", inputs: ["messages", "id"] }, { type: i2__namespace.KwikUICheckboxBlockComponent, selector: "kwikui-checkbox-block", inputs: ["label", "id", "formControlName", "formControl", "placeholder", "focus", "invalid", "disabled", "size", "contentAlign", "validators", "properties"], outputs: ["getKeyValue"] }, { type: i2__namespace.KwikUIInputNumberComponent, selector: "kwikui-input-number", inputs: ["label", "id", "formControlName", "formControl", "focus", "invalid", "disabled", "placeholder", "min", "max", "prefix", "postfix", "precision", "decimal", "validators", "properties"], outputs: ["getKeyValue"] }, { type: i2__namespace.KwikUIInputDateComponent, selector: "kwikui-input-date", inputs: ["label", "id", "formControlName", "formControl", "focus", "invalid", "disabled", "placeholder", "min", "max", "validators", "properties"], outputs: ["getKeyValue"] }, { type: i2__namespace.KwikUIInputPhoneComponent, selector: "kwikui-input-phone", inputs: ["label", "id", "formControlName", "formControl", "focus", "invalid", "disabled", "placeholder", "countryCode", "phoneMaskAfterCountryCode", "validators", "properties"], outputs: ["getKeyValue"] }, { type: i3__namespace.TuiLabelComponent, selector: "label[tuiLabel]", inputs: ["tuiLabel", "context"] }, { type: i2__namespace.KwikUIRadioListComponent, selector: "kwikui-radio-list", inputs: ["label", "id", "formControlName", "formControl", "placeholder", "focus", "invalid", "disabled", "size", "items", "orientation", "validators", "properties"], outputs: ["getKeyValue"] }, { type: i2__namespace.KwikUISelectComboboxComponent, selector: "kwikui-select-combobox", inputs: ["label", "id", "formControlName", "formControl", "placeholder", "focus", "invalid", "disabled", "options", "validators", "properties"], outputs: ["getKeyValue"] }, { type: i2__namespace.KwikUIButtonApiCallComponent, selector: "kwikui-button-api-call", inputs: ["disabled", "id", "label", "showLoader", "styles", "class", "shape", "size", "apiStatus"], outputs: ["onClick"] }, { type: i2__namespace.KwikUIInputOtpComponent, selector: "kwikui-input-otp", inputs: ["label", "id", "formControlName", "formControl", "focus", "invalid", "disabled", "placeholder", "mask", "validators", "properties"], outputs: ["getKeyValue"] }, { type: i2__namespace.KwikUIInputAadhaarComponent, selector: "kwikui-input-aadhaar", inputs: ["label", "id", "formControlName", "formControl", "focus", "invalid", "disabled", "placeholder", "mask", "validators", "properties"], outputs: ["getKeyValue"] }], directives: [{ type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5__namespace.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i5__namespace.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i5__namespace.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i4__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4__namespace.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i4__namespace.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i5__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i5__namespace.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i5__namespace.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }] });
2873
+ /** @nocollapse */ KwikIDFormViewComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KwikIDFormViewComponent, deps: [{ token: i4.TuiPushService }, { token: i3.TuiAlertService }, { token: KwikIDFormViewService }], target: i0__namespace.ɵɵFactoryTarget.Component });
2874
+ /** @nocollapse */ KwikIDFormViewComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: KwikIDFormViewComponent, selector: "kwikid-form-view", inputs: { formConfig: "formConfig", formData: "formData", apiCallResponse: "apiCallResponse", isMobileView: "isMobileView", allFormsData: "allFormsData", formsList: "formsList" }, outputs: { onClickViewForms: "onClickViewForms", onClickSaveForm: "onClickSaveForm", onClickApiCall: "onClickApiCall", getActiveFormData: "getActiveFormData" }, providers: [KwikIDFormViewService], usesOnChanges: true, ngImport: i0__namespace, template: "<div\r\n class=\"kwikid-form-container\"\r\n *ngIf=\"!this.loading\"\r\n>\r\n <div id=\"uf-form-fields-header-container\">\r\n <div id=\"uf-form-fields-title\">\r\n {{ this.formConfig.title }}\r\n </div>\r\n <div id=\"uf-form-fields-steps\">\r\n Step {{ this.formConfig.sequenceNo }} of {{ this.formsList.length }}\r\n </div>\r\n <hr />\r\n </div>\r\n <form\r\n class=\"kwikid-form show\"\r\n [formGroup]=\"this.formGroup\"\r\n >\r\n <ng-container *ngFor=\"let field of this.formFields; let i = index\">\r\n <ng-container [ngSwitch]=\"field.type\">\r\n <!-- Form Title -->\r\n <ng-container *ngSwitchCase=\"'title'\">\r\n <div\r\n class=\"title\"\r\n id=\"field_{{ field.key }}\"\r\n >\r\n <div>\r\n {{ field.label }}\r\n </div>\r\n <kwikui-button\r\n *ngIf=\"field?.reset\"\r\n appearance=\"whiteblock\"\r\n size=\"s\"\r\n label=\"Reset\"\r\n (onClick)=\"this.handleOnClickResetFormFields($event, field)\"\r\n ></kwikui-button>\r\n </div>\r\n </ng-container>\r\n <!-- Input Text -->\r\n <ng-container *ngSwitchCase=\"'text'\">\r\n <div\r\n [hidden]=\"field?.hidden\"\r\n id=\"field_{{ field.key }}\"\r\n >\r\n <kwikui-input\r\n [case]=\"field?.properties?.case\"\r\n [disabled]=\"field?.disabled\"\r\n [focus]=\"field?.focus\"\r\n [formControl]=\"formGroup.controls[field.key]\"\r\n [formControlName]=\"field.key\"\r\n [id]=\"field.key\"\r\n [invalid]=\"field?.invalid\"\r\n [label]=\"field.label\"\r\n [placeholder]=\"field?.properties?.placeholder\"\r\n [type]=\"'text'\"\r\n [validators]=\"field?.validators\"\r\n (getKeyValue)=\"handleGetKeyValue($event)\"\r\n ></kwikui-input>\r\n <kwikui-messages\r\n [messages]=\"field.messages\"\r\n [id]=\"field.key\"\r\n ></kwikui-messages>\r\n </div>\r\n </ng-container>\r\n <!-- Checkbox -->\r\n <ng-container *ngSwitchCase=\"'checkbox'\">\r\n <div\r\n [hidden]=\"field?.hidden\"\r\n id=\"field_{{ field.key }}\"\r\n >\r\n <kwikui-checkbox-block\r\n [contentAlign]=\"field?.properties?.contentAlign ?? 'left'\"\r\n [disabled]=\"field?.disabled\"\r\n [focus]=\"field?.focus\"\r\n [formControl]=\"formGroup.controls[field.key]\"\r\n [formControlName]=\"field.key\"\r\n [id]=\"field.key\"\r\n [invalid]=\"field?.invalid\"\r\n [label]=\"field?.properties?.placeholder\"\r\n [placeholder]=\"field?.properties?.placeholder\"\r\n [properties]=\"field?.properties\"\r\n [size]=\"field?.properties?.size ?? 'l'\"\r\n [validators]=\"field?.validators\"\r\n (getKeyValue)=\"handleGetKeyValue($event)\"\r\n ></kwikui-checkbox-block\r\n ><kwikui-messages\r\n [messages]=\"field.messages\"\r\n [id]=\"field.key\"\r\n ></kwikui-messages>\r\n </div>\r\n </ng-container>\r\n <!-- Input Number -->\r\n <ng-container *ngSwitchCase=\"'number'\">\r\n <div\r\n [hidden]=\"field?.hidden\"\r\n id=\"field_{{ field.key }}\"\r\n >\r\n <kwikui-input-number\r\n [decimal]=\"field?.properties?.decimal\"\r\n [disabled]=\"field?.disabled\"\r\n [focus]=\"field?.focus\"\r\n [formControl]=\"formGroup.controls[field.key]\"\r\n [formControlName]=\"field.key\"\r\n [id]=\"field.key\"\r\n [invalid]=\"field?.invalid\"\r\n [label]=\"field?.label\"\r\n [max]=\"field?.properties?.max\"\r\n [min]=\"field?.properties?.min\"\r\n [placeholder]=\"field?.properties?.placeholder\"\r\n [postfix]=\"field?.properties?.postfix ?? ''\"\r\n [precision]=\"field?.properties?.precision\"\r\n [prefix]=\"field?.properties?.prefix ?? ''\"\r\n [properties]=\"field?.properties\"\r\n [validators]=\"field?.validators\"\r\n (getKeyValue)=\"handleGetKeyValue($event)\"\r\n ></kwikui-input-number\r\n ><kwikui-messages\r\n [messages]=\"field.messages\"\r\n [id]=\"field.key\"\r\n ></kwikui-messages>\r\n </div>\r\n </ng-container>\r\n <!-- Input Date -->\r\n <ng-container *ngSwitchCase=\"'date'\">\r\n <div\r\n [hidden]=\"field?.hidden\"\r\n id=\"field_{{ field.key }}\"\r\n >\r\n <kwikui-input-date\r\n [disabled]=\"field?.disabled\"\r\n [focus]=\"field?.focus\"\r\n [formControl]=\"formGroup.controls[field.key]\"\r\n [formControlName]=\"field.key\"\r\n [id]=\"field.key\"\r\n [invalid]=\"field?.invalid\"\r\n [label]=\"field.label\"\r\n [max]=\"field?.properties?.max\"\r\n [min]=\"field?.properties?.min\"\r\n [placeholder]=\"field?.placeholder\"\r\n [properties]=\"field?.properties\"\r\n [validators]=\"field?.validators\"\r\n (getKeyValue)=\"handleGetKeyValue($event)\"\r\n ></kwikui-input-date>\r\n <kwikui-messages\r\n [messages]=\"field.messages\"\r\n [id]=\"field.key\"\r\n ></kwikui-messages>\r\n </div>\r\n </ng-container>\r\n <!-- Input Phone -->\r\n <ng-container *ngSwitchCase=\"'phone'\">\r\n <div\r\n [hidden]=\"field?.hidden\"\r\n id=\"field_{{ field.key }}\"\r\n >\r\n <kwikui-input-phone\r\n [countryCode]=\"field?.properties?.countryCode\"\r\n [disabled]=\"field?.disabled\"\r\n [focus]=\"field?.focus\"\r\n [formControl]=\"formGroup.controls[field.key]\"\r\n [formControlName]=\"field.key\"\r\n [id]=\"field.key\"\r\n [invalid]=\"field?.invalid\"\r\n [label]=\"field?.label\"\r\n [phoneMaskAfterCountryCode]=\"\r\n field?.properties?.phoneMaskAfterCountryCode\r\n \"\r\n [placeholder]=\"field?.placeholder\"\r\n [validators]=\"field?.validators\"\r\n (getKeyValue)=\"handleGetKeyValue($event)\"\r\n ></kwikui-input-phone>\r\n <kwikui-messages\r\n [messages]=\"field.messages\"\r\n [id]=\"field.key\"\r\n ></kwikui-messages>\r\n </div>\r\n </ng-container>\r\n <!-- Input Radio -->\r\n <ng-container *ngSwitchCase=\"'radio'\">\r\n <div\r\n [hidden]=\"field?.hidden\"\r\n id=\"field_{{ field.key }}\"\r\n >\r\n <label\r\n [tuiLabel]=\"labelTemplate\"\r\n style=\"min-height: auto\"\r\n >\r\n <kwikui-radio-list\r\n [disabled]=\"field?.disabled\"\r\n [focus]=\"field?.focus\"\r\n [formControl]=\"formGroup.controls[field.key]\"\r\n [formControlName]=\"field.key\"\r\n [id]=\"field.key\"\r\n [invalid]=\"field?.invalid\"\r\n [items]=\"field?.options\"\r\n [label]=\"field?.label\"\r\n [orientation]=\"field?.properties?.orientation\"\r\n [placeholder]=\"field?.placeholder\"\r\n [properties]=\"field?.properties\"\r\n [size]=\"field?.properties?.size\"\r\n [validators]=\"field?.validators\"\r\n (getKeyValue)=\"handleGetKeyValue($event)\"\r\n ></kwikui-radio-list>\r\n </label>\r\n <ng-template #labelTemplate>\r\n <p\r\n class=\"tui-space_bottom-2\"\r\n [hidden]=\"field?.hidden\"\r\n id=\"field_{{ field.key }}\"\r\n >\r\n <b>\r\n {{ field.label }}\r\n <span *ngIf=\"field.validators?.required\"></span>\r\n </b>\r\n </p>\r\n </ng-template>\r\n <kwikui-messages\r\n [messages]=\"field.messages\"\r\n [id]=\"field.key\"\r\n ></kwikui-messages>\r\n </div>\r\n </ng-container>\r\n <!-- Dropdown -->\r\n <ng-container *ngSwitchCase=\"'dropdown-with-search'\">\r\n <div\r\n [hidden]=\"field?.hidden\"\r\n id=\"field_{{ field.key }}\"\r\n >\r\n <kwikui-select-combobox\r\n [disabled]=\"field?.disabled\"\r\n [focus]=\"field?.focus\"\r\n [formControl]=\"formGroup.controls[field.key]\"\r\n [formControlName]=\"field.key\"\r\n [id]=\"field.key\"\r\n [invalid]=\"field?.invalid\"\r\n [label]=\"field.label\"\r\n [options]=\"field.options\"\r\n [placeholder]=\"field?.properties?.placeholder\"\r\n [properties]=\"field?.properties\"\r\n [validators]=\"field?.validators\"\r\n (getKeyValue)=\"handleGetKeyValue($event)\"\r\n ></kwikui-select-combobox>\r\n <kwikui-messages\r\n [messages]=\"field.messages\"\r\n [id]=\"field.key\"\r\n ></kwikui-messages>\r\n </div>\r\n </ng-container>\r\n <!-- API Call -->\r\n <ng-container *ngSwitchCase=\"'api-call'\">\r\n <div\r\n [hidden]=\"field?.hidden\"\r\n id=\"field_{{ field.key }}\"\r\n >\r\n <kwikui-button-api-call\r\n [apiStatus]=\"field?.api?.status?.value\"\r\n [class]=\"field?.class\"\r\n [disabled]=\"field?.disabled\"\r\n [id]=\"field.key\"\r\n [label]=\"field?.api?.status?.labels[field?.api?.status?.value]\"\r\n [showLoader]=\"field?.disabled === 'loading'\"\r\n shape=\"null\"\r\n size=\"m\"\r\n styles=\"width: fit-content\"\r\n (onClick)=\"this.handleOnClickApiCall($event)\"\r\n ></kwikui-button-api-call>\r\n <kwikui-messages\r\n [messages]=\"field.messages\"\r\n [id]=\"field.key\"\r\n ></kwikui-messages>\r\n </div>\r\n </ng-container>\r\n <!-- Mobile OTP -->\r\n <ng-container *ngSwitchCase=\"'otp'\">\r\n <div\r\n [hidden]=\"field?.hidden\"\r\n id=\"field_{{ field.key }}\"\r\n >\r\n <kwikui-input-otp\r\n [disabled]=\"field?.disabled\"\r\n [focus]=\"field?.focus\"\r\n [formControl]=\"formGroup.controls[field.key]\"\r\n [formControlName]=\"field.key\"\r\n [id]=\"field.key\"\r\n [invalid]=\"field?.invalid\"\r\n [label]=\"field?.label\"\r\n [mask]=\"field?.properties?.mask\"\r\n [placeholder]=\"field?.properties?.placeholder\"\r\n [properties]=\"field?.properties\"\r\n [validators]=\"field?.validators\"\r\n (getKeyValue)=\"handleGetKeyValue($event)\"\r\n ></kwikui-input-otp>\r\n <kwikui-messages\r\n [messages]=\"field.messages\"\r\n [id]=\"field.key\"\r\n ></kwikui-messages>\r\n </div>\r\n </ng-container>\r\n <!-- Aadhaar Number -->\r\n <ng-container *ngSwitchCase=\"'aadhaar-number'\">\r\n <div\r\n [hidden]=\"field?.hidden\"\r\n id=\"field_{{ field.key }}\"\r\n >\r\n <kwikui-input-aadhaar\r\n [disabled]=\"field?.disabled\"\r\n [focus]=\"field?.focus\"\r\n [formControl]=\"formGroup.controls[field.key]\"\r\n [formControlName]=\"field.key\"\r\n [id]=\"field.key\"\r\n [invalid]=\"field?.invalid\"\r\n [label]=\"field?.label\"\r\n [placeholder]=\"field?.placeholder\"\r\n [properties]=\"field?.properties\"\r\n [validators]=\"field?.validators\"\r\n (getKeyValue)=\"handleGetKeyValue($event)\"\r\n ></kwikui-input-aadhaar>\r\n <kwikui-messages\r\n [messages]=\"field.messages\"\r\n [id]=\"field.key\"\r\n ></kwikui-messages>\r\n </div>\r\n </ng-container>\r\n </ng-container>\r\n </ng-container>\r\n </form>\r\n <div class=\"kwikid-form-buttons\">\r\n <kwikui-button\r\n *ngIf=\"this.isMobileView\"\r\n [disabled]=\"viewFormsButton.disabled\"\r\n id=\"\"\r\n label=\"View Forms\"\r\n [showLoader]=\"viewFormsButton.showLoader\"\r\n styles=\"\"\r\n class=\"\"\r\n type=\"button\"\r\n appearance=\"secondary\"\r\n icon=\"\"\r\n iconRight=\"\"\r\n shape=\"null\"\r\n size=\"m\"\r\n styles=\"width: 100%\"\r\n (onClick)=\"this.handleOnClickViewForms($event)\"\r\n ></kwikui-button>\r\n <kwikui-button\r\n [disabled]=\"saveFormButton.disabled\"\r\n id=\"\"\r\n label=\"Save\"\r\n [showLoader]=\"saveFormButton.showLoader\"\r\n styles=\"\"\r\n class=\"\"\r\n type=\"button\"\r\n appearance=\"primary\"\r\n icon=\"\"\r\n iconRight=\"\"\r\n shape=\"null\"\r\n size=\"m\"\r\n styles=\"width: 100%\"\r\n (onClick)=\"this.handleOnClickSaveForm($event)\"\r\n ></kwikui-button>\r\n </div>\r\n</div>\r\n<div\r\n class=\"kwikid-form-container-loading\"\r\n *ngIf=\"this.loading\"\r\n>\r\n <div\r\n class=\"large-wrapper\"\r\n [class.tui-skeleton]=\"this.loading\"\r\n [class.tui-skeleton_rounded]=\"this.loading\"\r\n ></div>\r\n <div\r\n class=\"large-wrapper\"\r\n [class.tui-skeleton]=\"this.loading\"\r\n [class.tui-skeleton_rounded]=\"this.loading\"\r\n ></div>\r\n <div\r\n class=\"large-wrapper\"\r\n [class.tui-skeleton]=\"this.loading\"\r\n [class.tui-skeleton_rounded]=\"this.loading\"\r\n ></div>\r\n <div\r\n class=\"large-wrapper\"\r\n [class.tui-skeleton]=\"this.loading\"\r\n [class.tui-skeleton_rounded]=\"this.loading\"\r\n ></div>\r\n <div\r\n class=\"large-wrapper\"\r\n [class.tui-skeleton]=\"this.loading\"\r\n [class.tui-skeleton_rounded]=\"this.loading\"\r\n ></div>\r\n <div\r\n class=\"large-wrapper\"\r\n [class.tui-skeleton]=\"this.loading\"\r\n [class.tui-skeleton_rounded]=\"this.loading\"\r\n ></div>\r\n <div\r\n class=\"large-wrapper\"\r\n [class.tui-skeleton]=\"this.loading\"\r\n [class.tui-skeleton_rounded]=\"this.loading\"\r\n ></div>\r\n</div>\r\n<tui-push\r\n id=\"field-error-notification\"\r\n *tuiPush=\"showErrorNotification\"\r\n heading=\"Missing/Incorrect Fields!\"\r\n type=\"Error\"\r\n (close)=\"toggleErrorNotification(false)\"\r\n>\r\n <tui-svg\r\n src=\"tuiIconCancel\"\r\n style=\"color: #fff !important\"\r\n >\r\n </tui-svg>\r\n</tui-push>\r\n", styles: ["::-webkit-scrollbar{width:8px}::-webkit-scrollbar-track{border-radius:10px}::-webkit-scrollbar-thumb{background:lightgray;border-radius:10px}::-webkit-scrollbar-thumb:hover{background:gray}.kwikid-form-container{width:100%;height:100%;margin:0 auto;display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;align-content:center}.kwikid-form.show{width:100%;height:100%;padding:1rem;overflow-y:auto;display:flex;flex-direction:column;align-content:center;justify-content:flex-start;align-items:stretch;grid-row-gap:1rem;row-gap:1rem}.kwikid-form-buttons{width:100%;bottom:0px;padding:1rem;display:flex;flex-direction:row;align-content:center;justify-content:center;align-items:center;grid-column-gap:10px;column-gap:10px}.kwikid-form-buttons *{flex-grow:1}#uf-form-fields-header-container{display:flex;flex-direction:column;align-content:center;justify-content:center;align-items:flex-start;grid-row-gap:.5rem;row-gap:.5rem;padding:1rem}#uf-form-fields-header-container hr{width:100%}#uf-form-fields-title{color:#000;font-size:1.75em;font-weight:bold}#uf-form-fields-steps{color:var(--color-on-secondary-container);font-size:1em}.title{border-left:.25rem solid var(--tui-primary);padding:.75rem;font-size:1.4em;font-weight:bold;background-color:var(--tui-secondary);display:flex;flex-direction:row;align-content:center;justify-content:space-between;align-items:center;grid-gap:.5rem;gap:.5rem}.title:not(:first-child){margin-top:.5rem}.large-wrapper{width:100%;height:60px}.large-wrapper:first-child{margin-bottom:auto}.large-wrapper:last-child{margin-top:auto}.kwikid-form-container-loading{width:100%;height:100%;margin:0 auto;display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;align-content:center;grid-row-gap:1rem;row-gap:1rem;padding:1rem}#field-error-notification{background-color:var(--tui-error-fill);color:#fff!important}#field-error-notification .t-top{color:#fff!important}#field-error-notification .t-close{color:#fff!important}\n"], components: [{ type: i2__namespace.KwikUIButtonComponent, selector: "kwikui-button", inputs: ["disabled", "id", "label", "showLoader", "styles", "class", "type", "appearance", "icon", "iconRight", "shape", "size"], outputs: ["onClick"] }, { type: i2__namespace.KwikUIInputComponent, selector: "kwikui-input", inputs: ["label", "id", "type", "formControlName", "formControl", "placeholder", "focus", "invalid", "disabled", "validators", "case", "properties"], outputs: ["getKeyValue"] }, { type: i2__namespace.KwikUIMessagesComponent, selector: "kwikui-messages", inputs: ["messages", "id"] }, { type: i2__namespace.KwikUICheckboxBlockComponent, selector: "kwikui-checkbox-block", inputs: ["label", "id", "formControlName", "formControl", "placeholder", "focus", "invalid", "disabled", "size", "contentAlign", "validators", "properties"], outputs: ["getKeyValue"] }, { type: i2__namespace.KwikUIInputNumberComponent, selector: "kwikui-input-number", inputs: ["label", "id", "formControlName", "formControl", "focus", "invalid", "disabled", "placeholder", "min", "max", "prefix", "postfix", "precision", "decimal", "validators", "properties"], outputs: ["getKeyValue"] }, { type: i2__namespace.KwikUIInputDateComponent, selector: "kwikui-input-date", inputs: ["label", "id", "formControlName", "formControl", "focus", "invalid", "disabled", "placeholder", "min", "max", "validators", "properties"], outputs: ["getKeyValue"] }, { type: i2__namespace.KwikUIInputPhoneComponent, selector: "kwikui-input-phone", inputs: ["label", "id", "formControlName", "formControl", "focus", "invalid", "disabled", "placeholder", "countryCode", "phoneMaskAfterCountryCode", "validators", "properties"], outputs: ["getKeyValue"] }, { type: i3__namespace.TuiLabelComponent, selector: "label[tuiLabel]", inputs: ["tuiLabel", "context"] }, { type: i2__namespace.KwikUIRadioListComponent, selector: "kwikui-radio-list", inputs: ["label", "id", "formControlName", "formControl", "placeholder", "focus", "invalid", "disabled", "size", "items", "orientation", "validators", "properties"], outputs: ["getKeyValue"] }, { type: i2__namespace.KwikUISelectComboboxComponent, selector: "kwikui-select-combobox", inputs: ["label", "id", "formControlName", "formControl", "placeholder", "focus", "invalid", "disabled", "options", "validators", "properties"], outputs: ["getKeyValue"] }, { type: i2__namespace.KwikUIButtonApiCallComponent, selector: "kwikui-button-api-call", inputs: ["disabled", "id", "label", "showLoader", "styles", "class", "shape", "size", "apiStatus"], outputs: ["onClick"] }, { type: i2__namespace.KwikUIInputOtpComponent, selector: "kwikui-input-otp", inputs: ["label", "id", "formControlName", "formControl", "focus", "invalid", "disabled", "placeholder", "mask", "validators", "properties"], outputs: ["getKeyValue"] }, { type: i2__namespace.KwikUIInputAadhaarComponent, selector: "kwikui-input-aadhaar", inputs: ["label", "id", "formControlName", "formControl", "focus", "invalid", "disabled", "placeholder", "mask", "validators", "properties"], outputs: ["getKeyValue"] }, { type: i4__namespace.TuiPushComponent, selector: "tui-push", inputs: ["heading", "type", "timestamp"], outputs: ["close"] }, { type: i3__namespace.TuiSvgComponent, selector: "tui-svg", inputs: ["src"] }], directives: [{ type: i5__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6__namespace.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i6__namespace.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i6__namespace.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i5__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i5__namespace.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i5__namespace.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i6__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i6__namespace.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i6__namespace.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i4__namespace.TuiPushAlertDirective, selector: "[tuiPush]", inputs: ["tuiPush"] }, { type: i4__namespace.TuiPushDirective, selector: "tui-push" }] });
2881
2875
  __decorate([
2882
2876
  log
2883
2877
  ], KwikIDFormViewComponent.prototype, "ngOnInit", null);
@@ -2920,6 +2914,9 @@
2920
2914
  __decorate([
2921
2915
  log
2922
2916
  ], KwikIDFormViewComponent.prototype, "handleOnClickSaveForm", null);
2917
+ __decorate([
2918
+ log
2919
+ ], KwikIDFormViewComponent.prototype, "toggleErrorNotification", null);
2923
2920
  __decorate([
2924
2921
  log
2925
2922
  ], KwikIDFormViewComponent.prototype, "fieldHide", null);
@@ -2976,7 +2973,15 @@
2976
2973
  styleUrls: ["./form-view.component.scss"],
2977
2974
  providers: [KwikIDFormViewService]
2978
2975
  }]
2979
- }], ctorParameters: function () { return [{ type: KwikIDFormViewService }]; }, propDecorators: { formConfig: [{
2976
+ }], ctorParameters: function () {
2977
+ return [{ type: i4__namespace.TuiPushService, decorators: [{
2978
+ type: i0.Inject,
2979
+ args: [i4.TuiPushService]
2980
+ }] }, { type: i3__namespace.TuiAlertService, decorators: [{
2981
+ type: i0.Inject,
2982
+ args: [i3.TuiAlertService]
2983
+ }] }, { type: KwikIDFormViewService }];
2984
+ }, propDecorators: { formConfig: [{
2980
2985
  type: i0.Input
2981
2986
  }], formData: [{
2982
2987
  type: i0.Input
@@ -2996,7 +3001,7 @@
2996
3001
  type: i0.Output
2997
3002
  }], getActiveFormData: [{
2998
3003
  type: i0.Output
2999
- }], ngOnInit: [], ngAfterViewInit: [], ngOnChanges: [], initFormConfig: [], setFormFieldsFromFormConfig: [], setFormDataFromAllFormsData: [], handleConnectedElementFieldActions: [], handleConnectedElementFields: [], handleConnectedElements: [], handleGetKeyValue: [], handleOnClickResetFormFields: [], handleOnClickApiCall: [], handleOnClickViewForms: [], handleOnClickSaveForm: [], fieldHide: [], fieldShow: [], fieldDisable: [], fieldEnable: [], fieldReset: [], fieldErrorShow: [], fieldErrorHide: [], fieldMessageShow: [], fieldMessageHide: [], setObjectValue: [], patchFieldControlValue: [], isFieldValid: [], isFieldEnabled: [], getFormGroupRawValues: [], handleFieldTypeSearchText: [], takeAction: [] } });
3004
+ }], ngOnInit: [], ngAfterViewInit: [], ngOnChanges: [], initFormConfig: [], setFormFieldsFromFormConfig: [], setFormDataFromAllFormsData: [], handleConnectedElementFieldActions: [], handleConnectedElementFields: [], handleConnectedElements: [], handleGetKeyValue: [], handleOnClickResetFormFields: [], handleOnClickApiCall: [], handleOnClickViewForms: [], handleOnClickSaveForm: [], toggleErrorNotification: [], fieldHide: [], fieldShow: [], fieldDisable: [], fieldEnable: [], fieldReset: [], fieldErrorShow: [], fieldErrorHide: [], fieldMessageShow: [], fieldMessageHide: [], setObjectValue: [], patchFieldControlValue: [], isFieldValid: [], isFieldEnabled: [], getFormGroupRawValues: [], handleFieldTypeSearchText: [], takeAction: [] } });
3000
3005
 
3001
3006
  var hasKey = function (object, key) {
3002
3007
  return object.hasOwnProperty(key);
@@ -3067,7 +3072,7 @@
3067
3072
  return KwikIDFormsListComponent;
3068
3073
  }());
3069
3074
  /** @nocollapse */ KwikIDFormsListComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KwikIDFormsListComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
3070
- /** @nocollapse */ KwikIDFormsListComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: KwikIDFormsListComponent, selector: "kwikid-forms-list", inputs: { showFormFields: "showFormFields", userConfig: "userConfig", formsList: "formsList", formsListCompleted: "formsListCompleted", isMobileView: "isMobileView" }, outputs: { onClickSetActiveForm: "onClickSetActiveForm", onClickHideFormsList: "onClickHideFormsList", onClickSubmitForms: "onClickSubmitForms" }, usesOnChanges: true, ngImport: i0__namespace, template: "<div id=\"sidebar-container\">\r\n <div id=\"sidebar\">\r\n <div ngClass=\"kwikid-form-header\">\r\n <div id=\"uf-header\">\r\n <div id=\"uf-header-logo-container\">\r\n <img\r\n id=\"uf-header-logo\"\r\n src=\"{{ this.userConfig.theme.clientLogo }}\"\r\n [ngClass]=\"'large-icon'\"\r\n />\r\n </div>\r\n </div>\r\n <hr />\r\n </div>\r\n <div id=\"uf-progress\">\r\n <div id=\"uf-progress-steps\">\r\n {{ this.formsListCompleted.length }} / {{ this.formsList.length }} Steps\r\n Completed\r\n </div>\r\n <kwikui-progress-segmented\r\n [max]=\"this.formsList.length\"\r\n size=\"m\"\r\n [value]=\"this.formsListCompleted.length\"\r\n ></kwikui-progress-segmented>\r\n </div>\r\n <div id=\"uf-sections-container\">\r\n <div\r\n *ngFor=\"let form of formsList; let i = index\"\r\n [class]=\"'uf-section-item'\"\r\n [class.completed]=\"form.status === 'completed' && !form.disabled\"\r\n [class.edit]=\"form.status === 'editable' && !form.disabled\"\r\n [class.locked]=\"form.status === 'locked' && form.disabled\"\r\n (click)=\"\r\n form.status === 'locked' && form.disabled\r\n ? undefined\r\n : handleOnClickSetActiveForm(form.key)\r\n \"\r\n >\r\n <div class=\"uf-form-section-card-title\">\r\n {{ form.title }}\r\n </div>\r\n <div class=\"uf-form-section-card-action\">\r\n <div\r\n *ngIf=\"form.status === 'completed' && !form.disabled\"\r\n class=\"uf-form-section-card-action-img completed\"\r\n >\r\n <tui-svg src=\"tuiIconCheckLarge\"></tui-svg>\r\n </div>\r\n <div\r\n *ngIf=\"form.status !== 'completed' && !form.disabled\"\r\n class=\"uf-form-section-card-action-img edit\"\r\n >\r\n <tui-svg src=\"tuiIconEdit\"></tui-svg>\r\n </div>\r\n <div\r\n *ngIf=\"form.status !== 'completed' && form.disabled\"\r\n class=\"uf-form-section-card-action-img locked\"\r\n >\r\n <tui-svg src=\"tuiIconLock\"></tui-svg>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div id=\"submit-sidebar-btn-container\">\r\n <kwikui-button\r\n [disabled]=\"false\"\r\n id=\"\"\r\n label=\"Submit\"\r\n [showLoader]=\"false\"\r\n styles=\"\"\r\n class=\"\"\r\n type=\"button\"\r\n appearance=\"primary\"\r\n icon=\"\"\r\n iconRight=\"\"\r\n shape=\"null\"\r\n size=\"m\"\r\n styles=\"width: 100%\"\r\n (onClick)=\"handleOnSubmitForms($event)\"\r\n ></kwikui-button>\r\n </div>\r\n </div>\r\n</div>\r\n", styles: ["::-webkit-scrollbar{width:8px}::-webkit-scrollbar-track{border-radius:10px}::-webkit-scrollbar-thumb{background:lightgray;border-radius:10px}::-webkit-scrollbar-thumb:hover{background:gray}#sidebar-container{width:100%;height:100%;margin:0 auto;display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;align-content:center}#sidebar{width:100%;height:100%;display:flex;flex-direction:column;align-content:center;justify-content:flex-start;align-items:stretch}.uf-section-item{width:100%;display:flex;flex-direction:row;align-items:center;justify-content:space-between;align-content:center;padding:1rem;grid-gap:1rem;gap:1rem;cursor:pointer;box-shadow:0 .1rem .5rem -.25rem gray;border-radius:.5rem;background-color:var(--tui-base-02)}.uf-section-item:hover{box-shadow:0 .2rem .75rem -.5rem #656565}#submit-sidebar-btn-container{width:100%;bottom:0px;z-index:1;padding:1rem;display:flex;flex-direction:row;align-content:center;justify-content:center;align-items:center;grid-gap:1rem;gap:1rem}#submit-sidebar-btn-container *{flex-grow:1}#uf-sections-container{display:flex;flex-direction:column;height:100%;grid-row-gap:20px;row-gap:20px;padding:1rem;overflow-y:auto}.uf-form-section-card{display:flex;flex-direction:row;align-content:center;justify-content:space-between;align-items:center;grid-column-gap:10px;column-gap:10px;border:none;border-radius:8px;background-color:#e9e9e9;height:-moz-fit-content;height:fit-content;min-height:60px;padding:10px 15px;width:100%;max-width:350px;margin:0 auto}.uf-section-item.locked{-webkit-user-select:none;user-select:none;cursor:not-allowed}.uf-form-section-card .uf-form-section-card-title{font-size:1.2em;text-align:left;line-height:1.25em}.uf-form-section-card .uf-form-section-card-action{width:30px;height:30px;display:flex;flex-direction:row;align-content:center;justify-content:center;align-items:center}.uf-form-section-card .uf-form-section-card-action .uf-form-section-card-action-img{width:30px;height:30px;display:flex;flex-direction:row;align-content:center;justify-content:center;align-items:center;border-radius:100%;color:#fff;font-weight:bold}.uf-form-section-card-action-img.completed{background-color:#228b22;padding:.25rem;border-radius:50%;color:#fff}.uf-form-section-card-action-img.edit{background-color:#dc143c;padding:.25rem;border-radius:50%;color:#fff}.uf-form-section-card-action-img.locked{background-color:gray;padding:.25rem;border-radius:50%;color:#fff}#uf-progress{display:flex;padding:1rem;flex-direction:column;align-content:center;justify-content:center;align-items:stretch;grid-gap:.5rem;gap:.5rem}#uf-progress-steps{font-size:1em;text-align:right;color:#3d3d3d}.uf-form-section-card-title{font-size:1em;font-weight:bold;color:#121212}@media screen and (max-width: 600px){#sidebar-container{max-width:unset}}.kwikid-form-header{height:70px;z-index:6}.kwikid-form-header hr{width:calc(100% - 1rem);margin-left:auto;margin-right:auto}#uf-header{display:flex;flex-direction:row;align-content:center;align-items:center;justify-content:flex-start;grid-column-gap:10px;column-gap:10px;padding:10px 20px;width:100%;max-width:calc(400px + 50vw + 2rem);margin:0 auto;height:70px;z-index:1}#uf-header #uf-header-goback-container{display:none}#uf-header #uf-header-goback-container:hover{border-radius:50%;background-color:#d3d3d3}#uf-header #uf-header-goback-container #uf-header-goback{width:100%;height:auto}#uf-header #uf-header-logo-container{display:flex;flex-direction:row;align-content:center;justify-content:center;align-items:center}#uf-header #uf-header-logo-container #uf-header-logo.small-icon{width:100%;height:50px}#uf-header #uf-header-logo-container #uf-header-logo.large-icon{width:100%;height:50px}#uf-header #uf-header-title-container{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;grid-row-gap:4px;row-gap:4px}#uf-header #uf-header-title-container #uf-header-title{font-size:1.4em;color:#121212}#uf-header #uf-header-title-container #uf-header-subtitle{font-size:1.2em;color:#121212}\n"], components: [{ type: i2__namespace.KwikUIProgressSegmentedComponent, selector: "kwikui-progress-segmented", inputs: ["value", "max", "size", "colors"] }, { type: i3__namespace.TuiSvgComponent, selector: "tui-svg", inputs: ["src"] }, { type: i2__namespace.KwikUIButtonComponent, selector: "kwikui-button", inputs: ["disabled", "id", "label", "showLoader", "styles", "class", "type", "appearance", "icon", "iconRight", "shape", "size"], outputs: ["onClick"] }], directives: [{ type: i4__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
3075
+ /** @nocollapse */ KwikIDFormsListComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: KwikIDFormsListComponent, selector: "kwikid-forms-list", inputs: { showFormFields: "showFormFields", userConfig: "userConfig", formsList: "formsList", formsListCompleted: "formsListCompleted", isMobileView: "isMobileView" }, outputs: { onClickSetActiveForm: "onClickSetActiveForm", onClickHideFormsList: "onClickHideFormsList", onClickSubmitForms: "onClickSubmitForms" }, usesOnChanges: true, ngImport: i0__namespace, template: "<div id=\"sidebar-container\">\r\n <div id=\"sidebar\">\r\n <div ngClass=\"kwikid-form-header\">\r\n <div id=\"uf-header\">\r\n <div id=\"uf-header-logo-container\">\r\n <img\r\n id=\"uf-header-logo\"\r\n src=\"{{ this.userConfig.theme.clientLogo }}\"\r\n [ngClass]=\"'large-icon'\"\r\n />\r\n </div>\r\n </div>\r\n <hr />\r\n </div>\r\n <div id=\"uf-progress\">\r\n <div id=\"uf-progress-steps\">\r\n {{ this.formsListCompleted.length }} / {{ this.formsList.length }} Steps\r\n Completed\r\n </div>\r\n <kwikui-progress-segmented\r\n [max]=\"this.formsList.length\"\r\n size=\"m\"\r\n [value]=\"this.formsListCompleted.length\"\r\n ></kwikui-progress-segmented>\r\n </div>\r\n <div id=\"uf-sections-container\">\r\n <div\r\n *ngFor=\"let form of formsList; let i = index\"\r\n [class]=\"'uf-section-item'\"\r\n [class.completed]=\"form.status === 'completed' && !form.disabled\"\r\n [class.edit]=\"form.status === 'editable' && !form.disabled\"\r\n [class.locked]=\"form.status === 'locked' && form.disabled\"\r\n (click)=\"\r\n form.status === 'locked' && form.disabled\r\n ? undefined\r\n : handleOnClickSetActiveForm(form.key)\r\n \"\r\n >\r\n <div class=\"uf-form-section-card-title\">\r\n {{ form.title }}\r\n </div>\r\n <div class=\"uf-form-section-card-action\">\r\n <div\r\n *ngIf=\"form.status === 'completed' && !form.disabled\"\r\n class=\"uf-form-section-card-action-img completed\"\r\n >\r\n <tui-svg src=\"tuiIconCheckLarge\"></tui-svg>\r\n </div>\r\n <div\r\n *ngIf=\"form.status !== 'completed' && !form.disabled\"\r\n class=\"uf-form-section-card-action-img edit\"\r\n >\r\n <tui-svg src=\"tuiIconEdit\"></tui-svg>\r\n </div>\r\n <div\r\n *ngIf=\"form.status !== 'completed' && form.disabled\"\r\n class=\"uf-form-section-card-action-img locked\"\r\n >\r\n <tui-svg src=\"tuiIconLock\"></tui-svg>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div id=\"submit-sidebar-btn-container\">\r\n <kwikui-button\r\n [disabled]=\"false\"\r\n id=\"\"\r\n label=\"Submit\"\r\n [showLoader]=\"false\"\r\n styles=\"\"\r\n class=\"\"\r\n type=\"button\"\r\n appearance=\"primary\"\r\n icon=\"\"\r\n iconRight=\"\"\r\n shape=\"null\"\r\n size=\"m\"\r\n styles=\"width: 100%\"\r\n (onClick)=\"handleOnSubmitForms($event)\"\r\n ></kwikui-button>\r\n </div>\r\n </div>\r\n</div>\r\n", styles: ["::-webkit-scrollbar{width:8px}::-webkit-scrollbar-track{border-radius:10px}::-webkit-scrollbar-thumb{background:lightgray;border-radius:10px}::-webkit-scrollbar-thumb:hover{background:gray}#sidebar-container{width:100%;height:100%;margin:0 auto;display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;align-content:center}#sidebar{width:100%;height:100%;display:flex;flex-direction:column;align-content:center;justify-content:flex-start;align-items:stretch}.uf-section-item{width:100%;display:flex;flex-direction:row;align-items:center;justify-content:space-between;align-content:center;padding:1rem;grid-gap:1rem;gap:1rem;cursor:pointer;box-shadow:0 .1rem .5rem -.25rem gray;border-radius:.5rem;background-color:var(--tui-base-02)}.uf-section-item:hover{box-shadow:0 .2rem .75rem -.5rem #656565}#submit-sidebar-btn-container{width:100%;bottom:0px;z-index:1;padding:1rem;display:flex;flex-direction:row;align-content:center;justify-content:center;align-items:center;grid-gap:1rem;gap:1rem}#submit-sidebar-btn-container *{flex-grow:1}#uf-sections-container{display:flex;flex-direction:column;height:100%;grid-row-gap:20px;row-gap:20px;padding:1rem;overflow-y:auto}.uf-form-section-card{display:flex;flex-direction:row;align-content:center;justify-content:space-between;align-items:center;grid-column-gap:10px;column-gap:10px;border:none;border-radius:8px;background-color:#e9e9e9;height:-moz-fit-content;height:fit-content;min-height:60px;padding:10px 15px;width:100%;max-width:350px;margin:0 auto}.uf-section-item.locked{-webkit-user-select:none;user-select:none;cursor:not-allowed}.uf-form-section-card .uf-form-section-card-title{font-size:1.2em;text-align:left;line-height:1.25em}.uf-form-section-card .uf-form-section-card-action{width:30px;height:30px;display:flex;flex-direction:row;align-content:center;justify-content:center;align-items:center}.uf-form-section-card .uf-form-section-card-action .uf-form-section-card-action-img{width:30px;height:30px;display:flex;flex-direction:row;align-content:center;justify-content:center;align-items:center;border-radius:100%;color:#fff;font-weight:bold}.uf-form-section-card-action-img.completed{background-color:#228b22;padding:.25rem;border-radius:50%;color:#fff}.uf-form-section-card-action-img.edit{background-color:#dc143c;padding:.25rem;border-radius:50%;color:#fff}.uf-form-section-card-action-img.locked{background-color:gray;padding:.25rem;border-radius:50%;color:#fff}#uf-progress{display:flex;padding:1rem;flex-direction:column;align-content:center;justify-content:center;align-items:stretch;grid-gap:.5rem;gap:.5rem}#uf-progress-steps{font-size:1em;text-align:right;color:#3d3d3d}.uf-form-section-card-title{font-size:1em;font-weight:bold;color:#121212}@media screen and (max-width: 600px){#sidebar-container{max-width:unset}}.kwikid-form-header{height:70px;z-index:6}.kwikid-form-header hr{width:calc(100% - 1rem);margin-left:auto;margin-right:auto}#uf-header{display:flex;flex-direction:row;align-content:center;align-items:center;justify-content:flex-start;grid-column-gap:10px;column-gap:10px;padding:10px 20px;width:100%;max-width:calc(400px + 50vw + 2rem);margin:0 auto;height:70px;z-index:1}#uf-header #uf-header-goback-container{display:none}#uf-header #uf-header-goback-container:hover{border-radius:50%;background-color:#d3d3d3}#uf-header #uf-header-goback-container #uf-header-goback{width:100%;height:auto}#uf-header #uf-header-logo-container{display:flex;flex-direction:row;align-content:center;justify-content:center;align-items:center}#uf-header #uf-header-logo-container #uf-header-logo.small-icon{width:100%;height:50px}#uf-header #uf-header-logo-container #uf-header-logo.large-icon{width:100%;height:50px}#uf-header #uf-header-title-container{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;grid-row-gap:4px;row-gap:4px}#uf-header #uf-header-title-container #uf-header-title{font-size:1.4em;color:#121212}#uf-header #uf-header-title-container #uf-header-subtitle{font-size:1.2em;color:#121212}\n"], components: [{ type: i2__namespace.KwikUIProgressSegmentedComponent, selector: "kwikui-progress-segmented", inputs: ["value", "max", "size", "colors"] }, { type: i3__namespace.TuiSvgComponent, selector: "tui-svg", inputs: ["src"] }, { type: i2__namespace.KwikUIButtonComponent, selector: "kwikui-button", inputs: ["disabled", "id", "label", "showLoader", "styles", "class", "type", "appearance", "icon", "iconRight", "shape", "size"], outputs: ["onClick"] }], directives: [{ type: i5__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i5__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i5__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
3071
3076
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KwikIDFormsListComponent, decorators: [{
3072
3077
  type: i0.Component,
3073
3078
  args: [{
@@ -3093,6 +3098,308 @@
3093
3098
  type: i0.Output
3094
3099
  }] } });
3095
3100
 
3101
+ var Sources = /** @class */ (function () {
3102
+ function Sources(userConfig) {
3103
+ this._userConfig = userConfig;
3104
+ }
3105
+ Object.defineProperty(Sources.prototype, "userConfig", {
3106
+ get: function () {
3107
+ return this._userConfig;
3108
+ },
3109
+ set: function (value) {
3110
+ this._userConfig = value;
3111
+ },
3112
+ enumerable: false,
3113
+ configurable: true
3114
+ });
3115
+ Sources.prototype.getValueFromUserConfig = function (path) {
3116
+ var value = "";
3117
+ if (isNotEmpty(path)) {
3118
+ value = jpQueryWrapper(this._userConfig, path);
3119
+ }
3120
+ else {
3121
+ value = setEmptyValue(this._userConfig);
3122
+ }
3123
+ return value;
3124
+ };
3125
+ Sources.prototype.getValueFromBrowserStorage = function (type, key) {
3126
+ var value = "";
3127
+ switch (type) {
3128
+ case EBrowserStorageType.LOCAL_STORAGE:
3129
+ value = isNotEmptyBrowserStorageValue(localStorage.getItem(key))
3130
+ ? localStorage.getItem(key)
3131
+ : "";
3132
+ break;
3133
+ case EBrowserStorageType.SESSION_STORAGE:
3134
+ value = isNotEmptyBrowserStorageValue(sessionStorage.getItem(key))
3135
+ ? sessionStorage.getItem(key)
3136
+ : "";
3137
+ break;
3138
+ default:
3139
+ value = "";
3140
+ break;
3141
+ }
3142
+ return value;
3143
+ };
3144
+ Sources.prototype.getValueFromSource = function (source) {
3145
+ var value = "";
3146
+ switch (source.key) {
3147
+ case ESourceKey.USER_CONFIG:
3148
+ value = this.getValueFromUserConfig(source.props.path);
3149
+ break;
3150
+ case ESourceKey.BROWSER_STORAGE:
3151
+ value = this.getValueFromBrowserStorage(source.props.browserStorage.type, source.props.browserStorage.key);
3152
+ break;
3153
+ case ESourceKey.PREDEFINED:
3154
+ value = source.value;
3155
+ break;
3156
+ default:
3157
+ value = "";
3158
+ break;
3159
+ }
3160
+ return value;
3161
+ };
3162
+ Sources.prototype.setValueToUserConfig = function (path, value) {
3163
+ this._userConfig = setValueToObject(this._userConfig, path, value);
3164
+ };
3165
+ Sources.prototype.setValueToBrowserStorage = function (type, key, value) {
3166
+ switch (type) {
3167
+ case EBrowserStorageType.LOCAL_STORAGE:
3168
+ localStorage.setItem(key, value);
3169
+ break;
3170
+ case EBrowserStorageType.SESSION_STORAGE:
3171
+ sessionStorage.setItem(key, value);
3172
+ break;
3173
+ default:
3174
+ break;
3175
+ }
3176
+ };
3177
+ Sources.prototype.setValueToSource = function (source, value) {
3178
+ return __awaiter(this, void 0, void 0, function () {
3179
+ var _a;
3180
+ return __generator(this, function (_b) {
3181
+ switch (_b.label) {
3182
+ case 0:
3183
+ _a = source.key;
3184
+ switch (_a) {
3185
+ case ESourceKey.USER_CONFIG: return [3 /*break*/, 1];
3186
+ case ESourceKey.BROWSER_STORAGE: return [3 /*break*/, 2];
3187
+ }
3188
+ return [3 /*break*/, 4];
3189
+ case 1:
3190
+ this.setValueToUserConfig(source.props.path, value);
3191
+ return [3 /*break*/, 5];
3192
+ case 2: return [4 /*yield*/, this.setValueToBrowserStorage(source.props.browserStorage.type, source.props.browserStorage.key, value)];
3193
+ case 3:
3194
+ _b.sent();
3195
+ return [3 /*break*/, 5];
3196
+ case 4: return [3 /*break*/, 5];
3197
+ case 5: return [2 /*return*/];
3198
+ }
3199
+ });
3200
+ });
3201
+ };
3202
+ return Sources;
3203
+ }());
3204
+
3205
+ var Condition = /** @class */ (function () {
3206
+ function Condition(condition, rulesMapping) {
3207
+ this._condition = condition;
3208
+ this._rulesMapping = rulesMapping;
3209
+ }
3210
+ Condition.prototype.parseKeys = function (condition, rulesEvaluationMapping) {
3211
+ Object.keys(rulesEvaluationMapping).forEach(function (key) {
3212
+ condition = replaceString(condition, key, rulesEvaluationMapping[key]);
3213
+ });
3214
+ return condition;
3215
+ };
3216
+ Condition.prototype.parseOperators = function (condition) {
3217
+ return condition.replace(/AND|OR|NOT|XOR|NAND|NOR|XNOR/g, function (match) {
3218
+ switch (match) {
3219
+ case "AND":
3220
+ return "&&";
3221
+ case "OR":
3222
+ return "||";
3223
+ case "NOT":
3224
+ return "!";
3225
+ case "XOR":
3226
+ return "^";
3227
+ case "NAND":
3228
+ return "!&";
3229
+ case "NOR":
3230
+ return "!|";
3231
+ case "XNOR":
3232
+ return "!^";
3233
+ default:
3234
+ return match;
3235
+ }
3236
+ });
3237
+ };
3238
+ Condition.prototype.evaluate = function () {
3239
+ this._condition = this.parseKeys(this._condition, this._rulesMapping);
3240
+ this._condition = this.parseOperators(this._condition);
3241
+ return eval(this._condition);
3242
+ };
3243
+ return Condition;
3244
+ }());
3245
+
3246
+ var Actions = /** @class */ (function () {
3247
+ function Actions(action, ruleMapping, userConfig, takeAction) {
3248
+ this._action = action;
3249
+ this._userConfig = userConfig;
3250
+ this._ruleMapping = ruleMapping;
3251
+ this._takeAction = takeAction;
3252
+ }
3253
+ Actions.prototype.execute = function () {
3254
+ return __awaiter(this, void 0, void 0, function () {
3255
+ var condition, actionSuccess;
3256
+ return __generator(this, function (_a) {
3257
+ condition = new Condition(this._action.condition, this._ruleMapping);
3258
+ actionSuccess = condition.evaluate();
3259
+ if (actionSuccess) {
3260
+ return [2 /*return*/, this._takeAction(this._action, this._userConfig)];
3261
+ }
3262
+ return [2 /*return*/];
3263
+ });
3264
+ });
3265
+ };
3266
+ return Actions;
3267
+ }());
3268
+
3269
+ var Rules = /** @class */ (function () {
3270
+ function Rules(rules, userConfig) {
3271
+ this._userConfig = userConfig;
3272
+ this._rules = rules;
3273
+ }
3274
+ Rules.prototype.evaluate = function (rule) {
3275
+ var ruleType = rule.key;
3276
+ var ruleEvaluationStatus = false;
3277
+ var source = new Sources(this._userConfig);
3278
+ switch (ruleType) {
3279
+ case ERuleKey.OBJECT_PATH_EXISTS:
3280
+ var ruleObjectPathExists = rule;
3281
+ var ruleObjectPathExistsObject = ruleObjectPathExists.props.object;
3282
+ var ruleObjectPathExistsPath = ruleObjectPathExists.props.path;
3283
+ switch (ruleObjectPathExistsObject) {
3284
+ case ESourceKey.USER_CONFIG:
3285
+ ruleEvaluationStatus = hasPath(this._userConfig, ruleObjectPathExistsPath);
3286
+ break;
3287
+ default:
3288
+ ruleEvaluationStatus = false;
3289
+ break;
3290
+ }
3291
+ break;
3292
+ case ERuleKey.VALUE_CHECK:
3293
+ var ruleValueCheck = rule;
3294
+ var ruleValueCheckSource = ruleValueCheck.props.value.source;
3295
+ var ruleValueCheckValue = source.getValueFromSource(ruleValueCheckSource);
3296
+ if (ruleValueCheck.props.pattern.key === EPatternKey.CUSTOM) {
3297
+ var re = new RegExp(ruleValueCheck.props.pattern.pattern);
3298
+ }
3299
+ else {
3300
+ var re = new RegExp(EPattern[ruleValueCheck.props.pattern.key]);
3301
+ }
3302
+ ruleEvaluationStatus = re.test(ruleValueCheckValue);
3303
+ break;
3304
+ case ERuleKey.VALUE_CHANGE:
3305
+ var ruleValueChange = rule;
3306
+ var ruleValueChangeCurrentSource = ruleValueChange.props.value.current.source;
3307
+ var ruleValueChangePreviousSource = ruleValueChange.props.value.previous.source;
3308
+ var previousValue = source.getValueFromSource(ruleValueChangePreviousSource);
3309
+ var currentValue = source.getValueFromSource(ruleValueChangeCurrentSource);
3310
+ ruleEvaluationStatus = previousValue === currentValue;
3311
+ break;
3312
+ default:
3313
+ break;
3314
+ }
3315
+ return ruleEvaluationStatus;
3316
+ };
3317
+ Rules.prototype.mapping = function () {
3318
+ var e_1, _a, _b;
3319
+ var rulesEvaluationMapping = {};
3320
+ try {
3321
+ for (var _c = __values(this._rules), _d = _c.next(); !_d.done; _d = _c.next()) {
3322
+ var rule = _d.value;
3323
+ var ruleEvaluationStatus = this.evaluate(rule);
3324
+ rulesEvaluationMapping = Object.assign(Object.assign({}, rulesEvaluationMapping), (_b = {}, _b[rule.id] = ruleEvaluationStatus, _b));
3325
+ }
3326
+ }
3327
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
3328
+ finally {
3329
+ try {
3330
+ if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
3331
+ }
3332
+ finally { if (e_1) throw e_1.error; }
3333
+ }
3334
+ return rulesEvaluationMapping;
3335
+ };
3336
+ return Rules;
3337
+ }());
3338
+
3339
+ var Validations = /** @class */ (function () {
3340
+ function Validations(userConfig, takeAction) {
3341
+ this._userConfig = userConfig;
3342
+ this._takeAction = takeAction;
3343
+ }
3344
+ Object.defineProperty(Validations.prototype, "userConfig", {
3345
+ get: function () {
3346
+ return this._userConfig;
3347
+ },
3348
+ set: function (value) {
3349
+ this._userConfig = value;
3350
+ },
3351
+ enumerable: false,
3352
+ configurable: true
3353
+ });
3354
+ Validations.prototype.validateField = function () {
3355
+ return __awaiter(this, void 0, void 0, function () {
3356
+ var validations, triggers, rules, actions, rulesMapping, actions_1, actions_1_1, action, conditionEvaluation, actions_2, e_1_1;
3357
+ var e_1, _a;
3358
+ return __generator(this, function (_b) {
3359
+ switch (_b.label) {
3360
+ case 0:
3361
+ validations = this._userConfig.userFormFieldsConfig.validation;
3362
+ triggers = validations === null || validations === void 0 ? void 0 : validations.triggers;
3363
+ rules = validations.rules;
3364
+ actions = validations.actions;
3365
+ rulesMapping = new Rules(rules, this._userConfig).mapping();
3366
+ _b.label = 1;
3367
+ case 1:
3368
+ _b.trys.push([1, 6, 7, 8]);
3369
+ actions_1 = __values(actions), actions_1_1 = actions_1.next();
3370
+ _b.label = 2;
3371
+ case 2:
3372
+ if (!!actions_1_1.done) return [3 /*break*/, 5];
3373
+ action = actions_1_1.value;
3374
+ conditionEvaluation = new Condition(action.condition, rulesMapping).evaluate();
3375
+ if (!conditionEvaluation) return [3 /*break*/, 4];
3376
+ actions_2 = new Actions(action, rulesMapping, this._userConfig, this._takeAction);
3377
+ return [4 /*yield*/, actions_2.execute()];
3378
+ case 3:
3379
+ _b.sent();
3380
+ _b.label = 4;
3381
+ case 4:
3382
+ actions_1_1 = actions_1.next();
3383
+ return [3 /*break*/, 2];
3384
+ case 5: return [3 /*break*/, 8];
3385
+ case 6:
3386
+ e_1_1 = _b.sent();
3387
+ e_1 = { error: e_1_1 };
3388
+ return [3 /*break*/, 8];
3389
+ case 7:
3390
+ try {
3391
+ if (actions_1_1 && !actions_1_1.done && (_a = actions_1.return)) _a.call(actions_1);
3392
+ }
3393
+ finally { if (e_1) throw e_1.error; }
3394
+ return [7 /*endfinally*/];
3395
+ case 8: return [2 /*return*/];
3396
+ }
3397
+ });
3398
+ });
3399
+ };
3400
+ return Validations;
3401
+ }());
3402
+
3096
3403
  var Converter = /** @class */ (function () {
3097
3404
  function Converter() {
3098
3405
  this.getFormFields = function (formConfig) {
@@ -3187,10 +3494,15 @@
3187
3494
  field = _this.setFieldKeyValue(field, "type", "phone");
3188
3495
  field.properties = _this.setMissingFieldKeyValue(field.properties, "countryCode", "+91");
3189
3496
  field.properties = _this.setMissingFieldKeyValue(field.properties, "phoneMaskAfterCountryCode", "####-######");
3190
- field.properties = _this.setFieldKeyValue(field.properties, "decimal", "not-zero");
3191
- field.properties = _this.setFieldKeyValue(field.properties, "min", -Infinity);
3192
- field.properties = _this.setFieldKeyValue(field.properties, "max", Infinity);
3193
- field.properties = _this.setFieldKeyValue(field.properties, "precision", 0);
3497
+ field.properties = _this.setMissingFieldKeyValue(field.properties, "removeCountryCodeFromValue", true);
3498
+ }
3499
+ if (field.type === "phone" || field.type === "number") {
3500
+ field.properties = _this.setMissingFieldKeyValue(field.properties, "decimal", "never");
3501
+ field.properties = _this.setMissingFieldKeyValue(field.properties, "prefix", "");
3502
+ field.properties = _this.setMissingFieldKeyValue(field.properties, "postfix", "");
3503
+ field.properties = _this.setMissingFieldKeyValue(field.properties, "min", -Infinity);
3504
+ field.properties = _this.setMissingFieldKeyValue(field.properties, "max", Infinity);
3505
+ field.properties = _this.setMissingFieldKeyValue(field.properties, "precision", 2);
3194
3506
  }
3195
3507
  }
3196
3508
  field = _this.setFieldKeyValue(field, "hidden", false);
@@ -3630,11 +3942,6 @@
3630
3942
  }
3631
3943
  return field;
3632
3944
  };
3633
- var fields = this.getFormFields(formConfig);
3634
- var connectedFieldMapping = {
3635
- parent: {},
3636
- child: {}
3637
- };
3638
3945
  var setFormFields = function (formConfig, fields) {
3639
3946
  if (hasKey$2(formConfig, "multiForm")) {
3640
3947
  formConfig.multiForm["fields"] = fields;
@@ -3644,6 +3951,11 @@
3644
3951
  }
3645
3952
  return formConfig;
3646
3953
  };
3954
+ var connectedFieldMapping = {
3955
+ parent: {},
3956
+ child: {}
3957
+ };
3958
+ var fields = this.getFormFields(formConfig);
3647
3959
  try {
3648
3960
  for (var fields_1 = __values(fields), fields_1_1 = fields_1.next(); !fields_1_1.done; fields_1_1 = fields_1.next()) {
3649
3961
  var field = fields_1_1.value;
@@ -3839,10 +4151,12 @@
3839
4151
  this.getFormData = new i0.EventEmitter();
3840
4152
  this.onClickApiCall = new i0.EventEmitter();
3841
4153
  this.loading = false;
4154
+ this.loader = false;
3842
4155
  // display forms and list conditionally
3843
4156
  this.showForm = false;
3844
4157
  this.showFormFields = true;
3845
4158
  this.showFormSections = true;
4159
+ this.showErrorNotification = false;
3846
4160
  }
3847
4161
  // The final value should be provided to service, so that it can be used in all components
3848
4162
  KwikIDFormsRendererComponent.prototype.windowResizeWatcher = function () {
@@ -3870,9 +4184,11 @@
3870
4184
  }
3871
4185
  };
3872
4186
  KwikIDFormsRendererComponent.prototype.ngOnInit = function () {
4187
+ this.loader = true;
3873
4188
  this.loading = true;
3874
4189
  this.rendererService.setFormsList(this.userConfig.userFormFields);
3875
4190
  this.initializeForms();
4191
+ this.loader = false;
3876
4192
  };
3877
4193
  KwikIDFormsRendererComponent.prototype.ngOnChanges = function (changes) {
3878
4194
  var verifyChange = function (prop) {
@@ -3880,6 +4196,7 @@
3880
4196
  };
3881
4197
  if (verifyChange("userConfig")) {
3882
4198
  this.userConfig = changes.userConfig.currentValue;
4199
+ this.loader = false;
3883
4200
  }
3884
4201
  if (verifyChange("formsData")) {
3885
4202
  this.formsData = changes.formsData.currentValue;
@@ -3887,6 +4204,7 @@
3887
4204
  }
3888
4205
  if (verifyChange("apiCallResponse")) {
3889
4206
  this.apiCallResponse = changes.apiCallResponse.currentValue;
4207
+ this.loader = false;
3890
4208
  }
3891
4209
  };
3892
4210
  KwikIDFormsRendererComponent.prototype.initializeForms = function () {
@@ -3894,6 +4212,7 @@
3894
4212
  return __generator(this, function (_b) {
3895
4213
  switch (_b.label) {
3896
4214
  case 0:
4215
+ this.loader = true;
3897
4216
  this.rendererService.setAllFormsData(this.formsData);
3898
4217
  this.rendererService.updateFormsList();
3899
4218
  this.handleResize(this.rendererService.formsList);
@@ -3908,6 +4227,7 @@
3908
4227
  this.showFormFields = false;
3909
4228
  _b.label = 3;
3910
4229
  case 3:
4230
+ this.loader = false;
3911
4231
  this.loading = false;
3912
4232
  return [2 /*return*/];
3913
4233
  }
@@ -3941,6 +4261,7 @@
3941
4261
  switch (_b.label) {
3942
4262
  case 0:
3943
4263
  this.showForm = false;
4264
+ this.loader = true;
3944
4265
  activeFormConfig = this.rendererService.formsList.find(function (form) {
3945
4266
  if (form.key === selectedForm) {
3946
4267
  return form;
@@ -3962,6 +4283,7 @@
3962
4283
  this.showFormFields = true;
3963
4284
  }
3964
4285
  this.showForm = true;
4286
+ this.loader = false;
3965
4287
  return [2 /*return*/];
3966
4288
  }
3967
4289
  });
@@ -3969,16 +4291,37 @@
3969
4291
  };
3970
4292
  // forms-list listener
3971
4293
  KwikIDFormsRendererComponent.prototype.handleOnClickSubmitForms = function (e) {
4294
+ var _this = this;
3972
4295
  console.log(e);
3973
- this.onClickSubmit.emit(e);
4296
+ if (this.userConfig.userFormFieldsConfig.validation) {
4297
+ var validations_1 = new Validations(this.userConfig, this.takeAction.bind(this));
4298
+ (function () { return __awaiter(_this, void 0, void 0, function () {
4299
+ return __generator(this, function (_b) {
4300
+ switch (_b.label) {
4301
+ case 0: return [4 /*yield*/, validations_1.validateField()];
4302
+ case 1:
4303
+ _b.sent();
4304
+ if (this.userConfig.userFormFieldsConfig.status === "completed") {
4305
+ this.onClickSubmit.emit(e);
4306
+ }
4307
+ else {
4308
+ this.toggleErrorNotification(true);
4309
+ }
4310
+ return [2 /*return*/];
4311
+ }
4312
+ });
4313
+ }); })();
4314
+ }
3974
4315
  };
3975
4316
  // form-view listener
3976
4317
  KwikIDFormsRendererComponent.prototype.handleOnClickApiCall = function (e) {
4318
+ this.loader = true;
3977
4319
  this.onClickApiCall.emit(e);
3978
4320
  };
3979
4321
  // form-view listener
3980
4322
  KwikIDFormsRendererComponent.prototype.handleGetActiveFormData = function (e) {
3981
4323
  var _b;
4324
+ this.loader = true;
3982
4325
  this.getFormData.emit((_b = {},
3983
4326
  _b[this.rendererService.activeFormConfig.key] = e["data"],
3984
4327
  _b));
@@ -3986,6 +4329,7 @@
3986
4329
  // form-view listener
3987
4330
  KwikIDFormsRendererComponent.prototype.handleOnClickSaveForm = function (e) {
3988
4331
  var _b;
4332
+ this.loader = true;
3989
4333
  this.rendererService.setActiveFormData({});
3990
4334
  this.getFormData.emit((_b = {},
3991
4335
  _b[this.rendererService.activeFormConfig.key] = e["data"],
@@ -3997,10 +4341,38 @@
3997
4341
  this.showForm = false;
3998
4342
  this.showFormFields = false;
3999
4343
  };
4344
+ KwikIDFormsRendererComponent.prototype.toggleErrorNotification = function (show) {
4345
+ this.showErrorNotification = show;
4346
+ };
4347
+ KwikIDFormsRendererComponent.prototype.takeAction = function (action, userConfig) {
4348
+ return __awaiter(this, void 0, void 0, function () {
4349
+ var _b, sources, sourceValue;
4350
+ return __generator(this, function (_c) {
4351
+ switch (_c.label) {
4352
+ case 0:
4353
+ _b = action.key;
4354
+ switch (_b) {
4355
+ case EActionKey.SET_VALUE: return [3 /*break*/, 1];
4356
+ }
4357
+ return [3 /*break*/, 3];
4358
+ case 1:
4359
+ sources = new Sources(userConfig);
4360
+ return [4 /*yield*/, sources.getValueFromSource(action.props.value.source)];
4361
+ case 2:
4362
+ sourceValue = _c.sent();
4363
+ sources.setValueToSource(action.props.value.destination, sourceValue);
4364
+ this.userConfig = sources.userConfig;
4365
+ return [3 /*break*/, 4];
4366
+ case 3: return [3 /*break*/, 4];
4367
+ case 4: return [2 /*return*/];
4368
+ }
4369
+ });
4370
+ });
4371
+ };
4000
4372
  return KwikIDFormsRendererComponent;
4001
4373
  }());
4002
4374
  /** @nocollapse */ KwikIDFormsRendererComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KwikIDFormsRendererComponent, deps: [{ token: KwikIDRendererService }, { token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
4003
- /** @nocollapse */ KwikIDFormsRendererComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: KwikIDFormsRendererComponent, selector: "kwikid-forms-renderer", inputs: { userConfig: "userConfig", formsData: "formsData", apiCallResponse: "apiCallResponse" }, outputs: { onClickSubmit: "onClickSubmit", getFormData: "getFormData", onClickApiCall: "onClickApiCall" }, host: { listeners: { "window:resize": "windowResizeWatcher($event)" } }, providers: [KwikIDRendererService], usesOnChanges: true, ngImport: i0__namespace, template: "<div ngClass=\"kwikid-renderer\">\r\n <div\r\n ngClass=\"kwikid-layout-container\"\r\n *ngIf=\"!loading\"\r\n >\r\n <div\r\n ngClass=\"kwikid-sections-container\"\r\n *ngIf=\"showFormSections\"\r\n class=\"active\"\r\n [class.active]=\"showFormSections\"\r\n [class.mobile]=\"rendererService.isMobileView\"\r\n >\r\n <kwikid-forms-list\r\n [showFormFields]=\"this.showFormFields\"\r\n [userConfig]=\"this.userConfig\"\r\n [formsList]=\"this.rendererService.formsList\"\r\n [formsListCompleted]=\"this.rendererService.formsListCompleted\"\r\n [isMobileView]=\"this.rendererService.isMobileView\"\r\n (onClickSetActiveForm)=\"this.handleOnClickSetActiveForm($event)\"\r\n (onClickSubmitForms)=\"this.handleOnClickSubmitForms($event)\"\r\n ></kwikid-forms-list>\r\n </div>\r\n <div\r\n ngClass=\"kwikid-forms-container\"\r\n *ngIf=\"this.showForm && this.showFormFields\"\r\n [class.active]=\"showFormFields\"\r\n [class.mobile]=\"rendererService.isMobileView\"\r\n [@panelInOut]\r\n >\r\n <kwikid-form-view\r\n [formConfig]=\"this.rendererService.activeFormConfig\"\r\n [formData]=\"this.rendererService.activeFormData\"\r\n [apiCallResponse]=\"this.apiCallResponse\"\r\n [formsList]=\"this.rendererService.formsList\"\r\n [allFormsData]=\"this.rendererService.allFormsData\"\r\n [isMobileView]=\"this.rendererService.isMobileView\"\r\n (onClickApiCall)=\"this.handleOnClickApiCall($event)\"\r\n (onClickViewForms)=\"this.handleOnClickViewForms($event)\"\r\n (onClickSaveForm)=\"this.handleOnClickSaveForm($event)\"\r\n (getActiveFormData)=\"this.handleGetActiveFormData($event)\"\r\n ></kwikid-form-view>\r\n </div>\r\n </div>\r\n</div>\r\n", styles: [".kwikid-root{width:100%;height:100%}.kwikid-renderer{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;align-content:center;width:100%;height:100%}.kwikid-layout-container{display:flex;flex-direction:row;padding:0 1rem;height:100%;justify-content:center;align-items:stretch;background:var(--tui-secondary);position:relative}.kwikid-sections-container{display:block;width:100%;max-width:400px;height:calc(100% - 2rem);padding:.25rem .5rem 0;border-radius:1rem;background-color:var(--tui-base-01);margin:auto 1rem auto 0;box-shadow:0 0 12px -8px var(--tui-primary)}.kwikid-sections-container.mobile{position:absolute;top:0;left:0;z-index:5;opacity:1;visibility:visible;transition:all 1s;height:100%;border-radius:0;max-width:unset}.kwikid-forms-container{display:block;width:100%;max-width:50%;margin:auto 0;height:calc(100% - 2rem);padding:.25rem .5rem 0;border-radius:1rem;background-color:var(--tui-base-01);box-shadow:0 0 12px -8px var(--tui-primary)}.kwikid-forms-container.mobile{position:absolute;top:0;left:0;z-index:5;opacity:1;visibility:visible;transition:all 1s;height:100%;border-radius:0;max-width:unset}@media screen and (max-width: 600px){.kwikid-layout-container{padding:0;background:transparent}.kwikid-sections-container{position:absolute;max-width:100%;bottom:-10000px;left:-10000px;opacity:0;padding:0;visibility:hidden}.kwikid-sections-container.active{visibility:visible}.kwikid-sections-container.mobile{height:100%;opacity:1;visibility:visible;transition:all 2s;border-radius:0;box-shadow:none;top:0px;margin:0;position:absolute}.kwikid-forms-container{display:none;max-width:100%;height:100%;padding:0;border-radius:0;box-shadow:none}.kwikid-forms-container.mobile{height:100%;opacity:1;visibility:visible;transition:all 2s;border-radius:0;box-shadow:none;top:0px;margin:0;position:absolute}.kwikid-forms-container.active{display:block}}\n"], components: [{ type: KwikIDFormsListComponent, selector: "kwikid-forms-list", inputs: ["showFormFields", "userConfig", "formsList", "formsListCompleted", "isMobileView"], outputs: ["onClickSetActiveForm", "onClickHideFormsList", "onClickSubmitForms"] }, { type: KwikIDFormViewComponent, selector: "kwikid-form-view", inputs: ["formConfig", "formData", "apiCallResponse", "isMobileView", "allFormsData", "formsList"], outputs: ["onClickViewForms", "onClickSaveForm", "onClickApiCall", "getActiveFormData"] }], directives: [{ type: i4__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], animations: [
4375
+ /** @nocollapse */ KwikIDFormsRendererComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: KwikIDFormsRendererComponent, selector: "kwikid-forms-renderer", inputs: { userConfig: "userConfig", formsData: "formsData", apiCallResponse: "apiCallResponse" }, outputs: { onClickSubmit: "onClickSubmit", getFormData: "getFormData", onClickApiCall: "onClickApiCall" }, host: { listeners: { "window:resize": "windowResizeWatcher($event)" } }, providers: [KwikIDRendererService], usesOnChanges: true, ngImport: i0__namespace, template: "<div ngClass=\"kwikid-renderer\">\r\n <div\r\n ngClass=\"kwikid-layout-container\"\r\n *ngIf=\"!loading\"\r\n >\r\n <div\r\n ngClass=\"kwikid-sections-container\"\r\n *ngIf=\"showFormSections\"\r\n class=\"active\"\r\n [class.active]=\"showFormSections\"\r\n [class.mobile]=\"rendererService.isMobileView\"\r\n >\r\n <kwikid-forms-list\r\n [showFormFields]=\"this.showFormFields\"\r\n [userConfig]=\"this.userConfig\"\r\n [formsList]=\"this.rendererService.formsList\"\r\n [formsListCompleted]=\"this.rendererService.formsListCompleted\"\r\n [isMobileView]=\"this.rendererService.isMobileView\"\r\n (onClickSetActiveForm)=\"this.handleOnClickSetActiveForm($event)\"\r\n (onClickSubmitForms)=\"this.handleOnClickSubmitForms($event)\"\r\n ></kwikid-forms-list>\r\n </div>\r\n <div\r\n ngClass=\"kwikid-forms-container\"\r\n *ngIf=\"this.showForm && this.showFormFields\"\r\n [class.active]=\"showFormFields\"\r\n [class.mobile]=\"rendererService.isMobileView\"\r\n [@panelInOut]\r\n >\r\n <kwikid-form-view\r\n [formConfig]=\"this.rendererService.activeFormConfig\"\r\n [formData]=\"this.rendererService.activeFormData\"\r\n [apiCallResponse]=\"this.apiCallResponse\"\r\n [formsList]=\"this.rendererService.formsList\"\r\n [allFormsData]=\"this.rendererService.allFormsData\"\r\n [isMobileView]=\"this.rendererService.isMobileView\"\r\n (onClickApiCall)=\"this.handleOnClickApiCall($event)\"\r\n (onClickViewForms)=\"this.handleOnClickViewForms($event)\"\r\n (onClickSaveForm)=\"this.handleOnClickSaveForm($event)\"\r\n (getActiveFormData)=\"this.handleGetActiveFormData($event)\"\r\n ></kwikid-form-view>\r\n </div>\r\n </div>\r\n</div>\r\n<div\r\n ngClass=\"kwikid-forms-renderer-loader\"\r\n *ngIf=\"loader\"\r\n>\r\n <span class=\"loader\"></span>\r\n</div>\r\n<tui-push\r\n id=\"error-notification\"\r\n *tuiPush=\"showErrorNotification\"\r\n heading=\"Please complete the required Forms!\"\r\n type=\"Error\"\r\n (close)=\"toggleErrorNotification(false)\"\r\n>\r\n <tui-svg\r\n src=\"tuiIconCancel\"\r\n style=\"color: #fff !important\"\r\n >\r\n </tui-svg>\r\n</tui-push>\r\n", styles: [":host{position:relative}.kwikid-root{width:100%;height:100%}.kwikid-renderer{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;align-content:center;width:100%;height:100%}.kwikid-layout-container{display:flex;flex-direction:row;padding:0 1rem;height:100%;justify-content:center;align-items:stretch;background:var(--tui-secondary);position:relative}.kwikid-sections-container{display:block;width:100%;max-width:400px;height:calc(100% - 2rem);padding:.25rem .5rem 0;border-radius:1rem;background-color:var(--tui-base-01);margin:auto 1rem auto 0;box-shadow:0 0 12px -8px var(--tui-primary)}.kwikid-sections-container.mobile{position:absolute;top:0;left:0;z-index:5;opacity:1;visibility:visible;transition:all 1s;height:100%;border-radius:0;max-width:unset}.kwikid-forms-container{display:block;width:100%;max-width:50%;margin:auto 0;height:calc(100% - 2rem);padding:.25rem .5rem 0;border-radius:1rem;background-color:var(--tui-base-01);box-shadow:0 0 12px -8px var(--tui-primary)}.kwikid-forms-container.mobile{position:absolute;top:0;left:0;z-index:5;opacity:1;visibility:visible;transition:all 1s;height:100%;border-radius:0;max-width:unset}@media screen and (max-width: 600px){.kwikid-layout-container{padding:0;background:transparent}.kwikid-sections-container{position:absolute;max-width:100%;bottom:-10000px;left:-10000px;opacity:0;padding:0;visibility:hidden}.kwikid-sections-container.active{visibility:visible}.kwikid-sections-container.mobile{height:100%;opacity:1;visibility:visible;transition:all 2s;border-radius:0;box-shadow:none;top:0px;margin:0;position:absolute}.kwikid-forms-container{display:none;max-width:100%;height:100%;padding:0;border-radius:0;box-shadow:none}.kwikid-forms-container.mobile{height:100%;opacity:1;visibility:visible;transition:all 2s;border-radius:0;box-shadow:none;top:0px;margin:0;position:absolute}.kwikid-forms-container.active{display:block}}.kwikid-forms-renderer-loader{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.75);display:flex;flex-direction:row;align-content:center;justify-content:center;align-items:center;z-index:100}.kwikid-forms-renderer-loader .loader{width:48px;height:48px;border-radius:50%;display:inline-block;position:relative;border:3px solid;border-color:#fff #fff transparent;box-sizing:border-box;animation:rotation 1s linear infinite}.kwikid-forms-renderer-loader .loader:after{content:\"\";box-sizing:border-box;position:absolute;left:0;right:0;top:0;bottom:0;margin:auto;border:3px solid;border-color:transparent var(--tui-primary) var(--tui-primary);width:24px;height:24px;border-radius:50%;animation:rotationBack .5s linear infinite;transform-origin:center center}@keyframes rotation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes rotationBack{0%{transform:rotate(0)}to{transform:rotate(-360deg)}}.kwikid-forms-renderer-loader .t-loader{display:none!important}#error-notification{background-color:var(--tui-error-fill);color:#fff!important}#error-notification .t-top{color:#fff!important}#error-notification .t-close{color:#fff!important}\n"], components: [{ type: KwikIDFormsListComponent, selector: "kwikid-forms-list", inputs: ["showFormFields", "userConfig", "formsList", "formsListCompleted", "isMobileView"], outputs: ["onClickSetActiveForm", "onClickHideFormsList", "onClickSubmitForms"] }, { type: KwikIDFormViewComponent, selector: "kwikid-form-view", inputs: ["formConfig", "formData", "apiCallResponse", "isMobileView", "allFormsData", "formsList"], outputs: ["onClickViewForms", "onClickSaveForm", "onClickApiCall", "getActiveFormData"] }, { type: i4__namespace.TuiPushComponent, selector: "tui-push", inputs: ["heading", "type", "timestamp"], outputs: ["close"] }, { type: i3__namespace.TuiSvgComponent, selector: "tui-svg", inputs: ["src"] }], directives: [{ type: i5__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i5__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4__namespace.TuiPushAlertDirective, selector: "[tuiPush]", inputs: ["tuiPush"] }, { type: i4__namespace.TuiPushDirective, selector: "tui-push" }], animations: [
4004
4376
  animations.trigger("panelInOut", [
4005
4377
  animations.transition(":enter", [
4006
4378
  animations.style({ transform: "translateY(100%)" }),
@@ -4053,13 +4425,13 @@
4053
4425
  return KwikIDFormBuilderModule;
4054
4426
  }());
4055
4427
  /** @nocollapse */ KwikIDFormBuilderModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KwikIDFormBuilderModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
4056
- /** @nocollapse */ KwikIDFormBuilderModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KwikIDFormBuilderModule, declarations: [KwikIDFormsBuilderComponent], imports: [i4.CommonModule, i5.FormsModule, i5.ReactiveFormsModule, dragDrop.DragDropModule], exports: [KwikIDFormsBuilderComponent] });
4057
- /** @nocollapse */ KwikIDFormBuilderModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KwikIDFormBuilderModule, providers: [], imports: [[i4.CommonModule, i5.FormsModule, i5.ReactiveFormsModule, dragDrop.DragDropModule]] });
4428
+ /** @nocollapse */ KwikIDFormBuilderModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KwikIDFormBuilderModule, declarations: [KwikIDFormsBuilderComponent], imports: [i5.CommonModule, i6.FormsModule, i6.ReactiveFormsModule, dragDrop.DragDropModule], exports: [KwikIDFormsBuilderComponent] });
4429
+ /** @nocollapse */ KwikIDFormBuilderModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KwikIDFormBuilderModule, providers: [], imports: [[i5.CommonModule, i6.FormsModule, i6.ReactiveFormsModule, dragDrop.DragDropModule]] });
4058
4430
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KwikIDFormBuilderModule, decorators: [{
4059
4431
  type: i0.NgModule,
4060
4432
  args: [{
4061
4433
  declarations: [KwikIDFormsBuilderComponent],
4062
- imports: [i4.CommonModule, i5.FormsModule, i5.ReactiveFormsModule, dragDrop.DragDropModule],
4434
+ imports: [i5.CommonModule, i6.FormsModule, i6.ReactiveFormsModule, dragDrop.DragDropModule],
4063
4435
  providers: [],
4064
4436
  exports: [KwikIDFormsBuilderComponent]
4065
4437
  }]
@@ -4071,16 +4443,20 @@
4071
4443
  return KwikIDFormViewModule;
4072
4444
  }());
4073
4445
  /** @nocollapse */ KwikIDFormViewModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KwikIDFormViewModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
4074
- /** @nocollapse */ KwikIDFormViewModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KwikIDFormViewModule, declarations: [KwikIDFormViewComponent], imports: [i4.CommonModule,
4075
- i5.FormsModule,
4076
- i5.ReactiveFormsModule,
4446
+ /** @nocollapse */ KwikIDFormViewModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KwikIDFormViewModule, declarations: [KwikIDFormViewComponent], imports: [i5.CommonModule,
4447
+ i6.FormsModule,
4448
+ i6.ReactiveFormsModule,
4077
4449
  i3.TuiLabelModule,
4450
+ i4.TuiPushModule,
4451
+ i3.TuiSvgModule,
4078
4452
  i2.KwikUIModule], exports: [KwikIDFormViewComponent] });
4079
4453
  /** @nocollapse */ KwikIDFormViewModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KwikIDFormViewModule, imports: [[
4080
- i4.CommonModule,
4081
- i5.FormsModule,
4082
- i5.ReactiveFormsModule,
4454
+ i5.CommonModule,
4455
+ i6.FormsModule,
4456
+ i6.ReactiveFormsModule,
4083
4457
  i3.TuiLabelModule,
4458
+ i4.TuiPushModule,
4459
+ i3.TuiSvgModule,
4084
4460
  i2.KwikUIModule
4085
4461
  ]] });
4086
4462
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KwikIDFormViewModule, decorators: [{
@@ -4088,10 +4464,12 @@
4088
4464
  args: [{
4089
4465
  declarations: [KwikIDFormViewComponent],
4090
4466
  imports: [
4091
- i4.CommonModule,
4092
- i5.FormsModule,
4093
- i5.ReactiveFormsModule,
4467
+ i5.CommonModule,
4468
+ i6.FormsModule,
4469
+ i6.ReactiveFormsModule,
4094
4470
  i3.TuiLabelModule,
4471
+ i4.TuiPushModule,
4472
+ i3.TuiSvgModule,
4095
4473
  i2.KwikUIModule
4096
4474
  ],
4097
4475
  exports: [KwikIDFormViewComponent]
@@ -4104,15 +4482,15 @@
4104
4482
  return KwikIDFormsListModule;
4105
4483
  }());
4106
4484
  /** @nocollapse */ KwikIDFormsListModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KwikIDFormsListModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
4107
- /** @nocollapse */ KwikIDFormsListModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KwikIDFormsListModule, declarations: [KwikIDFormsListComponent], imports: [i4.CommonModule,
4108
- i5.FormsModule,
4109
- i5.ReactiveFormsModule,
4485
+ /** @nocollapse */ KwikIDFormsListModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KwikIDFormsListModule, declarations: [KwikIDFormsListComponent], imports: [i5.CommonModule,
4486
+ i6.FormsModule,
4487
+ i6.ReactiveFormsModule,
4110
4488
  i2.KwikUIModule,
4111
4489
  i3.TuiSvgModule], exports: [KwikIDFormsListComponent] });
4112
4490
  /** @nocollapse */ KwikIDFormsListModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KwikIDFormsListModule, imports: [[
4113
- i4.CommonModule,
4114
- i5.FormsModule,
4115
- i5.ReactiveFormsModule,
4491
+ i5.CommonModule,
4492
+ i6.FormsModule,
4493
+ i6.ReactiveFormsModule,
4116
4494
  i2.KwikUIModule,
4117
4495
  i3.TuiSvgModule
4118
4496
  ]] });
@@ -4121,9 +4499,9 @@
4121
4499
  args: [{
4122
4500
  declarations: [KwikIDFormsListComponent],
4123
4501
  imports: [
4124
- i4.CommonModule,
4125
- i5.FormsModule,
4126
- i5.ReactiveFormsModule,
4502
+ i5.CommonModule,
4503
+ i6.FormsModule,
4504
+ i6.ReactiveFormsModule,
4127
4505
  i2.KwikUIModule,
4128
4506
  i3.TuiSvgModule
4129
4507
  ],
@@ -4137,28 +4515,37 @@
4137
4515
  return KwikIDFormRendererModule;
4138
4516
  }());
4139
4517
  /** @nocollapse */ KwikIDFormRendererModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KwikIDFormRendererModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
4140
- /** @nocollapse */ KwikIDFormRendererModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KwikIDFormRendererModule, declarations: [KwikIDFormsRendererComponent], imports: [i4.CommonModule,
4518
+ /** @nocollapse */ KwikIDFormRendererModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KwikIDFormRendererModule, declarations: [KwikIDFormsRendererComponent], imports: [i5.CommonModule,
4141
4519
  http.HttpClientModule,
4142
4520
  KwikIDFormViewModule,
4143
4521
  KwikIDFormsListModule,
4144
- i2.KwikUIModule], exports: [KwikIDFormsRendererComponent] });
4522
+ i2.KwikUIModule,
4523
+ i3.TuiLoaderModule,
4524
+ i4.TuiPushModule,
4525
+ i3.TuiSvgModule], exports: [KwikIDFormsRendererComponent] });
4145
4526
  /** @nocollapse */ KwikIDFormRendererModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KwikIDFormRendererModule, providers: [], imports: [[
4146
- i4.CommonModule,
4527
+ i5.CommonModule,
4147
4528
  http.HttpClientModule,
4148
4529
  KwikIDFormViewModule,
4149
4530
  KwikIDFormsListModule,
4150
- i2.KwikUIModule
4531
+ i2.KwikUIModule,
4532
+ i3.TuiLoaderModule,
4533
+ i4.TuiPushModule,
4534
+ i3.TuiSvgModule
4151
4535
  ]] });
4152
4536
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KwikIDFormRendererModule, decorators: [{
4153
4537
  type: i0.NgModule,
4154
4538
  args: [{
4155
4539
  declarations: [KwikIDFormsRendererComponent],
4156
4540
  imports: [
4157
- i4.CommonModule,
4541
+ i5.CommonModule,
4158
4542
  http.HttpClientModule,
4159
4543
  KwikIDFormViewModule,
4160
4544
  KwikIDFormsListModule,
4161
- i2.KwikUIModule
4545
+ i2.KwikUIModule,
4546
+ i3.TuiLoaderModule,
4547
+ i4.TuiPushModule,
4548
+ i3.TuiSvgModule
4162
4549
  ],
4163
4550
  providers: [],
4164
4551
  exports: [KwikIDFormsRendererComponent]
@@ -4171,15 +4558,15 @@
4171
4558
  return KwikIDFormsModule;
4172
4559
  }());
4173
4560
  /** @nocollapse */ KwikIDFormsModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KwikIDFormsModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
4174
- /** @nocollapse */ KwikIDFormsModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KwikIDFormsModule, imports: [i4.CommonModule,
4175
- i5.FormsModule,
4176
- i5.ReactiveFormsModule,
4561
+ /** @nocollapse */ KwikIDFormsModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KwikIDFormsModule, imports: [i5.CommonModule,
4562
+ i6.FormsModule,
4563
+ i6.ReactiveFormsModule,
4177
4564
  KwikIDFormBuilderModule,
4178
4565
  KwikIDFormRendererModule], exports: [KwikIDFormBuilderModule, KwikIDFormRendererModule] });
4179
4566
  /** @nocollapse */ KwikIDFormsModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: KwikIDFormsModule, providers: [KwikIDRendererService], imports: [[
4180
- i4.CommonModule,
4181
- i5.FormsModule,
4182
- i5.ReactiveFormsModule,
4567
+ i5.CommonModule,
4568
+ i6.FormsModule,
4569
+ i6.ReactiveFormsModule,
4183
4570
  KwikIDFormBuilderModule,
4184
4571
  KwikIDFormRendererModule
4185
4572
  ], KwikIDFormBuilderModule, KwikIDFormRendererModule] });
@@ -4188,9 +4575,9 @@
4188
4575
  args: [{
4189
4576
  declarations: [],
4190
4577
  imports: [
4191
- i4.CommonModule,
4192
- i5.FormsModule,
4193
- i5.ReactiveFormsModule,
4578
+ i5.CommonModule,
4579
+ i6.FormsModule,
4580
+ i6.ReactiveFormsModule,
4194
4581
  KwikIDFormBuilderModule,
4195
4582
  KwikIDFormRendererModule
4196
4583
  ],