@bigbinary/neeto-form-frontend 1.1.0 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -28081,7 +28081,7 @@ var List = function List(_ref) {
28081
28081
  var _excluded$c = ["questionKinds", "showAddQuestionDivider", "onValueChange", "showActionBlock", "formId", "isDeletable", "isRequiredField", "submitButtonProps", "cancelButtonProps", "isKindAlreadyActive", "getActiveKindDetails", "kindUniqueOn", "isDisabledFieldLabel"];
28082
28082
  function cov_2e8k7gwd81() {
28083
28083
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/BuildForm/Form/index.jsx";
28084
- var hash = "0e541f4af3139e353b4bfbecbf13d6733838aa71";
28084
+ var hash = "5a619ca0b5015a3a8b98845e724473ed102fb53f";
28085
28085
  var global = new Function("return this")();
28086
28086
  var gcv = "__coverage__";
28087
28087
  var coverageData = {
@@ -28093,7 +28093,7 @@ function cov_2e8k7gwd81() {
28093
28093
  column: 13
28094
28094
  },
28095
28095
  end: {
28096
- line: 224,
28096
+ line: 229,
28097
28097
  column: 1
28098
28098
  }
28099
28099
  },
@@ -28363,97 +28363,97 @@ function cov_2e8k7gwd81() {
28363
28363
  column: 2
28364
28364
  },
28365
28365
  end: {
28366
- line: 223,
28366
+ line: 228,
28367
28367
  column: 4
28368
28368
  }
28369
28369
  },
28370
28370
  "28": {
28371
28371
  start: {
28372
- line: 147,
28372
+ line: 152,
28373
28373
  column: 23
28374
28374
  },
28375
28375
  end: {
28376
- line: 147,
28376
+ line: 152,
28377
28377
  column: 51
28378
28378
  }
28379
28379
  },
28380
28380
  "29": {
28381
28381
  start: {
28382
- line: 149,
28382
+ line: 154,
28383
28383
  column: 32
28384
28384
  },
28385
28385
  end: {
28386
- line: 152,
28386
+ line: 157,
28387
28387
  column: 11
28388
28388
  }
28389
28389
  },
28390
28390
  "30": {
28391
28391
  start: {
28392
- line: 153,
28392
+ line: 158,
28393
28393
  column: 10
28394
28394
  },
28395
28395
  end: {
28396
- line: 153,
28396
+ line: 158,
28397
28397
  column: 59
28398
28398
  }
28399
28399
  },
28400
28400
  "31": {
28401
28401
  start: {
28402
- line: 154,
28402
+ line: 159,
28403
28403
  column: 10
28404
28404
  },
28405
28405
  end: {
28406
- line: 154,
28406
+ line: 159,
28407
28407
  column: 39
28408
28408
  }
28409
28409
  },
28410
28410
  "32": {
28411
28411
  start: {
28412
- line: 161,
28412
+ line: 166,
28413
28413
  column: 14
28414
28414
  },
28415
28415
  end: {
28416
- line: 191,
28416
+ line: 196,
28417
28417
  column: 17
28418
28418
  }
28419
28419
  },
28420
28420
  "33": {
28421
28421
  start: {
28422
- line: 164,
28422
+ line: 169,
28423
28423
  column: 20
28424
28424
  },
28425
28425
  end: {
28426
- line: 169,
28426
+ line: 174,
28427
28427
  column: 22
28428
28428
  }
28429
28429
  },
28430
28430
  "34": {
28431
28431
  start: {
28432
- line: 188,
28432
+ line: 193,
28433
28433
  column: 38
28434
28434
  },
28435
28435
  end: {
28436
- line: 188,
28436
+ line: 193,
28437
28437
  column: 65
28438
28438
  }
28439
28439
  },
28440
28440
  "35": {
28441
28441
  start: {
28442
- line: 200,
28442
+ line: 205,
28443
28443
  column: 38
28444
28444
  },
28445
28445
  end: {
28446
- line: 203,
28446
+ line: 208,
28447
28447
  column: 17
28448
28448
  }
28449
28449
  },
28450
28450
  "36": {
28451
28451
  start: {
28452
- line: 204,
28452
+ line: 209,
28453
28453
  column: 16
28454
28454
  },
28455
28455
  end: {
28456
- line: 204,
28456
+ line: 209,
28457
28457
  column: 65
28458
28458
  }
28459
28459
  }
@@ -28477,7 +28477,7 @@ function cov_2e8k7gwd81() {
28477
28477
  column: 6
28478
28478
  },
28479
28479
  end: {
28480
- line: 224,
28480
+ line: 229,
28481
28481
  column: 1
28482
28482
  }
28483
28483
  },
@@ -28727,145 +28727,145 @@ function cov_2e8k7gwd81() {
28727
28727
  name: "(anonymous_11)",
28728
28728
  decl: {
28729
28729
  start: {
28730
- line: 147,
28730
+ line: 152,
28731
28731
  column: 17
28732
28732
  },
28733
28733
  end: {
28734
- line: 147,
28734
+ line: 152,
28735
28735
  column: 18
28736
28736
  }
28737
28737
  },
28738
28738
  loc: {
28739
28739
  start: {
28740
- line: 147,
28740
+ line: 152,
28741
28741
  column: 23
28742
28742
  },
28743
28743
  end: {
28744
- line: 147,
28744
+ line: 152,
28745
28745
  column: 51
28746
28746
  }
28747
28747
  },
28748
- line: 147
28748
+ line: 152
28749
28749
  },
28750
28750
  "12": {
28751
28751
  name: "(anonymous_12)",
28752
28752
  decl: {
28753
28753
  start: {
28754
- line: 148,
28754
+ line: 153,
28755
28755
  column: 18
28756
28756
  },
28757
28757
  end: {
28758
- line: 148,
28758
+ line: 153,
28759
28759
  column: 19
28760
28760
  }
28761
28761
  },
28762
28762
  loc: {
28763
28763
  start: {
28764
- line: 148,
28764
+ line: 153,
28765
28765
  column: 24
28766
28766
  },
28767
28767
  end: {
28768
- line: 155,
28768
+ line: 160,
28769
28769
  column: 9
28770
28770
  }
28771
28771
  },
28772
- line: 148
28772
+ line: 153
28773
28773
  },
28774
28774
  "13": {
28775
28775
  name: "(anonymous_13)",
28776
28776
  decl: {
28777
28777
  start: {
28778
- line: 160,
28778
+ line: 165,
28779
28779
  column: 13
28780
28780
  },
28781
28781
  end: {
28782
- line: 160,
28782
+ line: 165,
28783
28783
  column: 14
28784
28784
  }
28785
28785
  },
28786
28786
  loc: {
28787
28787
  start: {
28788
- line: 161,
28788
+ line: 166,
28789
28789
  column: 14
28790
28790
  },
28791
28791
  end: {
28792
- line: 191,
28792
+ line: 196,
28793
28793
  column: 17
28794
28794
  }
28795
28795
  },
28796
- line: 161
28796
+ line: 166
28797
28797
  },
28798
28798
  "14": {
28799
28799
  name: "(anonymous_14)",
28800
28800
  decl: {
28801
28801
  start: {
28802
- line: 163,
28802
+ line: 168,
28803
28803
  column: 29
28804
28804
  },
28805
28805
  end: {
28806
- line: 163,
28806
+ line: 168,
28807
28807
  column: 30
28808
28808
  }
28809
28809
  },
28810
28810
  loc: {
28811
28811
  start: {
28812
- line: 164,
28812
+ line: 169,
28813
28813
  column: 20
28814
28814
  },
28815
28815
  end: {
28816
- line: 169,
28816
+ line: 174,
28817
28817
  column: 22
28818
28818
  }
28819
28819
  },
28820
- line: 164
28820
+ line: 169
28821
28821
  },
28822
28822
  "15": {
28823
28823
  name: "(anonymous_15)",
28824
28824
  decl: {
28825
28825
  start: {
28826
- line: 188,
28826
+ line: 193,
28827
28827
  column: 30
28828
28828
  },
28829
28829
  end: {
28830
- line: 188,
28830
+ line: 193,
28831
28831
  column: 31
28832
28832
  }
28833
28833
  },
28834
28834
  loc: {
28835
28835
  start: {
28836
- line: 188,
28836
+ line: 193,
28837
28837
  column: 38
28838
28838
  },
28839
28839
  end: {
28840
- line: 188,
28840
+ line: 193,
28841
28841
  column: 65
28842
28842
  }
28843
28843
  },
28844
- line: 188
28844
+ line: 193
28845
28845
  },
28846
28846
  "16": {
28847
28847
  name: "(anonymous_16)",
28848
28848
  decl: {
28849
28849
  start: {
28850
- line: 199,
28850
+ line: 204,
28851
28851
  column: 24
28852
28852
  },
28853
28853
  end: {
28854
- line: 199,
28854
+ line: 204,
28855
28855
  column: 25
28856
28856
  }
28857
28857
  },
28858
28858
  loc: {
28859
28859
  start: {
28860
- line: 199,
28860
+ line: 204,
28861
28861
  column: 32
28862
28862
  },
28863
28863
  end: {
28864
- line: 205,
28864
+ line: 210,
28865
28865
  column: 15
28866
28866
  }
28867
28867
  },
28868
- line: 199
28868
+ line: 204
28869
28869
  }
28870
28870
  },
28871
28871
  branchMap: {
@@ -29079,134 +29079,134 @@ function cov_2e8k7gwd81() {
29079
29079
  "6": {
29080
29080
  loc: {
29081
29081
  start: {
29082
- line: 144,
29083
- column: 12
29082
+ line: 147,
29083
+ column: 16
29084
29084
  },
29085
29085
  end: {
29086
- line: 145,
29087
- column: 61
29086
+ line: 148,
29087
+ column: 65
29088
29088
  }
29089
29089
  },
29090
29090
  type: "binary-expr",
29091
29091
  locations: [{
29092
29092
  start: {
29093
- line: 144,
29094
- column: 12
29093
+ line: 147,
29094
+ column: 16
29095
29095
  },
29096
29096
  end: {
29097
- line: 144,
29098
- column: 72
29097
+ line: 147,
29098
+ column: 76
29099
29099
  }
29100
29100
  }, {
29101
29101
  start: {
29102
- line: 145,
29103
- column: 12
29102
+ line: 148,
29103
+ column: 16
29104
29104
  },
29105
29105
  end: {
29106
- line: 145,
29107
- column: 61
29106
+ line: 148,
29107
+ column: 65
29108
29108
  }
29109
29109
  }],
29110
- line: 144
29110
+ line: 147
29111
29111
  },
29112
29112
  "7": {
29113
29113
  loc: {
29114
29114
  start: {
29115
- line: 158,
29115
+ line: 163,
29116
29116
  column: 9
29117
29117
  },
29118
29118
  end: {
29119
- line: 208,
29119
+ line: 213,
29120
29120
  column: 9
29121
29121
  }
29122
29122
  },
29123
29123
  type: "cond-expr",
29124
29124
  locations: [{
29125
29125
  start: {
29126
- line: 159,
29126
+ line: 164,
29127
29127
  column: 10
29128
29128
  },
29129
29129
  end: {
29130
- line: 193,
29130
+ line: 198,
29131
29131
  column: 23
29132
29132
  }
29133
29133
  }, {
29134
29134
  start: {
29135
- line: 195,
29135
+ line: 200,
29136
29136
  column: 10
29137
29137
  },
29138
29138
  end: {
29139
- line: 207,
29139
+ line: 212,
29140
29140
  column: 29
29141
29141
  }
29142
29142
  }],
29143
- line: 158
29143
+ line: 163
29144
29144
  },
29145
29145
  "8": {
29146
29146
  loc: {
29147
29147
  start: {
29148
- line: 209,
29148
+ line: 214,
29149
29149
  column: 9
29150
29150
  },
29151
29151
  end: {
29152
- line: 220,
29152
+ line: 225,
29153
29153
  column: 9
29154
29154
  }
29155
29155
  },
29156
29156
  type: "binary-expr",
29157
29157
  locations: [{
29158
29158
  start: {
29159
- line: 209,
29159
+ line: 214,
29160
29160
  column: 9
29161
29161
  },
29162
29162
  end: {
29163
- line: 209,
29163
+ line: 214,
29164
29164
  column: 24
29165
29165
  }
29166
29166
  }, {
29167
29167
  start: {
29168
- line: 210,
29168
+ line: 215,
29169
29169
  column: 10
29170
29170
  },
29171
29171
  end: {
29172
- line: 219,
29172
+ line: 224,
29173
29173
  column: 12
29174
29174
  }
29175
29175
  }],
29176
- line: 209
29176
+ line: 214
29177
29177
  },
29178
29178
  "9": {
29179
29179
  loc: {
29180
29180
  start: {
29181
- line: 216,
29181
+ line: 221,
29182
29182
  column: 24
29183
29183
  },
29184
29184
  end: {
29185
- line: 216,
29185
+ line: 221,
29186
29186
  column: 46
29187
29187
  }
29188
29188
  },
29189
29189
  type: "binary-expr",
29190
29190
  locations: [{
29191
29191
  start: {
29192
- line: 216,
29192
+ line: 221,
29193
29193
  column: 24
29194
29194
  },
29195
29195
  end: {
29196
- line: 216,
29196
+ line: 221,
29197
29197
  column: 36
29198
29198
  }
29199
29199
  }, {
29200
29200
  start: {
29201
- line: 216,
29201
+ line: 221,
29202
29202
  column: 40
29203
29203
  },
29204
29204
  end: {
29205
- line: 216,
29205
+ line: 221,
29206
29206
  column: 46
29207
29207
  }
29208
29208
  }],
29209
- line: 216
29209
+ line: 221
29210
29210
  }
29211
29211
  },
29212
29212
  s: {
@@ -29280,7 +29280,7 @@ function cov_2e8k7gwd81() {
29280
29280
  "9": [0, 0]
29281
29281
  },
29282
29282
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
29283
- hash: "0e541f4af3139e353b4bfbecbf13d6733838aa71"
29283
+ hash: "5a619ca0b5015a3a8b98845e724473ed102fb53f"
29284
29284
  };
29285
29285
  var coverage = global[gcv] || (global[gcv] = {});
29286
29286
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -29423,10 +29423,13 @@ var Form = function Form(_ref) {
29423
29423
  cov_2e8k7gwd81().s[27]++;
29424
29424
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(neetoui.Alert, {
29425
29425
  isOpen: deleteQuestionIndex !== null,
29426
- message: t("neetoForm.questions.deleteAlert.message"),
29427
- submitButtonLabel: t("neetoForm.common.yes"),
29428
- title: t("neetoForm.questions.deleteAlert.title", {
29429
- label: (_ref13 = (cov_2e8k7gwd81().b[6][0]++, INDEPENDENT_LABELS_MAP[(_questions$deleteQues = questions[deleteQuestionIndex]) === null || _questions$deleteQues === void 0 ? void 0 : _questions$deleteQues.kind])) !== null && _ref13 !== void 0 ? _ref13 : (cov_2e8k7gwd81().b[6][1]++, sliceLabel((_questions$deleteQues2 = questions[deleteQuestionIndex]) === null || _questions$deleteQues2 === void 0 ? void 0 : _questions$deleteQues2.label))
29426
+ submitButtonLabel: t("neetoForm.common.delete"),
29427
+ title: t("neetoForm.questions.deleteAlert.title"),
29428
+ message: /*#__PURE__*/React__default["default"].createElement(reactI18next.Trans, {
29429
+ i18nKey: "neetoForm.questions.deleteAlert.message",
29430
+ values: {
29431
+ label: (_ref13 = (cov_2e8k7gwd81().b[6][0]++, INDEPENDENT_LABELS_MAP[(_questions$deleteQues = questions[deleteQuestionIndex]) === null || _questions$deleteQues === void 0 ? void 0 : _questions$deleteQues.kind])) !== null && _ref13 !== void 0 ? _ref13 : (cov_2e8k7gwd81().b[6][1]++, sliceLabel((_questions$deleteQues2 = questions[deleteQuestionIndex]) === null || _questions$deleteQues2 === void 0 ? void 0 : _questions$deleteQues2.label))
29432
+ }
29430
29433
  }),
29431
29434
  onClose: function onClose() {
29432
29435
  cov_2e8k7gwd81().f[11]++;
@@ -34120,7 +34123,7 @@ cov_ulkgj7n39().s[23]++;
34120
34123
 
34121
34124
  function cov_291vtop84c() {
34122
34125
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/Common/FormikWrap.js";
34123
- var hash = "2fa2c31db7e39b3e2b38f7ef5f4c947b5004b05f";
34126
+ var hash = "a26a6efe7c7b1236ea07677952837913631acb6c";
34124
34127
  var global = new Function("return this")();
34125
34128
  var gcv = "__coverage__";
34126
34129
  var coverageData = {
@@ -34132,18 +34135,18 @@ function cov_291vtop84c() {
34132
34135
  column: 19
34133
34136
  },
34134
34137
  end: {
34135
- line: 34,
34138
+ line: 43,
34136
34139
  column: 1
34137
34140
  }
34138
34141
  },
34139
34142
  "1": {
34140
34143
  start: {
34141
34144
  line: 15,
34142
- column: 52
34145
+ column: 61
34143
34146
  },
34144
34147
  end: {
34145
34148
  line: 15,
34146
- column: 70
34149
+ column: 79
34147
34150
  }
34148
34151
  },
34149
34152
  "2": {
@@ -34202,7 +34205,7 @@ function cov_291vtop84c() {
34202
34205
  column: 2
34203
34206
  },
34204
34207
  end: {
34205
- line: 31,
34208
+ line: 40,
34206
34209
  column: 30
34207
34210
  }
34208
34211
  },
@@ -34212,37 +34215,77 @@ function cov_291vtop84c() {
34212
34215
  column: 4
34213
34216
  },
34214
34217
  end: {
34215
- line: 30,
34218
+ line: 39,
34216
34219
  column: 5
34217
34220
  }
34218
34221
  },
34219
34222
  "9": {
34220
34223
  start: {
34221
- line: 29,
34222
- column: 6
34224
+ line: 30,
34225
+ column: 28
34223
34226
  },
34224
34227
  end: {
34225
- line: 29,
34226
- column: 57
34228
+ line: 36,
34229
+ column: 14
34227
34230
  }
34228
34231
  },
34229
34232
  "10": {
34230
34233
  start: {
34231
- line: 29,
34232
- column: 41
34234
+ line: 31,
34235
+ column: 23
34233
34236
  },
34234
34237
  end: {
34235
- line: 29,
34236
- column: 57
34238
+ line: 31,
34239
+ column: 35
34237
34240
  }
34238
34241
  },
34239
34242
  "11": {
34240
34243
  start: {
34241
34244
  line: 33,
34242
- column: 2
34245
+ column: 10
34243
34246
  },
34244
34247
  end: {
34245
34248
  line: 33,
34249
+ column: 33
34250
+ }
34251
+ },
34252
+ "12": {
34253
+ start: {
34254
+ line: 35,
34255
+ column: 10
34256
+ },
34257
+ end: {
34258
+ line: 35,
34259
+ column: 21
34260
+ }
34261
+ },
34262
+ "13": {
34263
+ start: {
34264
+ line: 38,
34265
+ column: 6
34266
+ },
34267
+ end: {
34268
+ line: 38,
34269
+ column: 64
34270
+ }
34271
+ },
34272
+ "14": {
34273
+ start: {
34274
+ line: 38,
34275
+ column: 41
34276
+ },
34277
+ end: {
34278
+ line: 38,
34279
+ column: 64
34280
+ }
34281
+ },
34282
+ "15": {
34283
+ start: {
34284
+ line: 42,
34285
+ column: 2
34286
+ },
34287
+ end: {
34288
+ line: 42,
34246
34289
  column: 18
34247
34290
  }
34248
34291
  }
@@ -34266,7 +34309,7 @@ function cov_291vtop84c() {
34266
34309
  column: 6
34267
34310
  },
34268
34311
  end: {
34269
- line: 34,
34312
+ line: 43,
34270
34313
  column: 1
34271
34314
  }
34272
34315
  },
@@ -34338,11 +34381,59 @@ function cov_291vtop84c() {
34338
34381
  column: 18
34339
34382
  },
34340
34383
  end: {
34341
- line: 31,
34384
+ line: 40,
34342
34385
  column: 3
34343
34386
  }
34344
34387
  },
34345
34388
  line: 27
34389
+ },
34390
+ "4": {
34391
+ name: "(anonymous_4)",
34392
+ decl: {
34393
+ start: {
34394
+ line: 31,
34395
+ column: 16
34396
+ },
34397
+ end: {
34398
+ line: 31,
34399
+ column: 17
34400
+ }
34401
+ },
34402
+ loc: {
34403
+ start: {
34404
+ line: 31,
34405
+ column: 23
34406
+ },
34407
+ end: {
34408
+ line: 31,
34409
+ column: 35
34410
+ }
34411
+ },
34412
+ line: 31
34413
+ },
34414
+ "5": {
34415
+ name: "(anonymous_5)",
34416
+ decl: {
34417
+ start: {
34418
+ line: 32,
34419
+ column: 16
34420
+ },
34421
+ end: {
34422
+ line: 32,
34423
+ column: 17
34424
+ }
34425
+ },
34426
+ loc: {
34427
+ start: {
34428
+ line: 32,
34429
+ column: 30
34430
+ },
34431
+ end: {
34432
+ line: 36,
34433
+ column: 9
34434
+ }
34435
+ },
34436
+ line: 32
34346
34437
  }
34347
34438
  },
34348
34439
  branchMap: {
@@ -34428,7 +34519,7 @@ function cov_291vtop84c() {
34428
34519
  column: 4
34429
34520
  },
34430
34521
  end: {
34431
- line: 30,
34522
+ line: 39,
34432
34523
  column: 5
34433
34524
  }
34434
34525
  },
@@ -34439,7 +34530,7 @@ function cov_291vtop84c() {
34439
34530
  column: 4
34440
34531
  },
34441
34532
  end: {
34442
- line: 30,
34533
+ line: 39,
34443
34534
  column: 5
34444
34535
  }
34445
34536
  }, {
@@ -34490,23 +34581,23 @@ function cov_291vtop84c() {
34490
34581
  "4": {
34491
34582
  loc: {
34492
34583
  start: {
34493
- line: 29,
34584
+ line: 38,
34494
34585
  column: 6
34495
34586
  },
34496
34587
  end: {
34497
- line: 29,
34498
- column: 57
34588
+ line: 38,
34589
+ column: 64
34499
34590
  }
34500
34591
  },
34501
34592
  type: "if",
34502
34593
  locations: [{
34503
34594
  start: {
34504
- line: 29,
34595
+ line: 38,
34505
34596
  column: 6
34506
34597
  },
34507
34598
  end: {
34508
- line: 29,
34509
- column: 57
34599
+ line: 38,
34600
+ column: 64
34510
34601
  }
34511
34602
  }, {
34512
34603
  start: {
@@ -34518,7 +34609,7 @@ function cov_291vtop84c() {
34518
34609
  column: undefined
34519
34610
  }
34520
34611
  }],
34521
- line: 29
34612
+ line: 38
34522
34613
  }
34523
34614
  },
34524
34615
  s: {
@@ -34533,13 +34624,19 @@ function cov_291vtop84c() {
34533
34624
  "8": 0,
34534
34625
  "9": 0,
34535
34626
  "10": 0,
34536
- "11": 0
34627
+ "11": 0,
34628
+ "12": 0,
34629
+ "13": 0,
34630
+ "14": 0,
34631
+ "15": 0
34537
34632
  },
34538
34633
  f: {
34539
34634
  "0": 0,
34540
34635
  "1": 0,
34541
34636
  "2": 0,
34542
- "3": 0
34637
+ "3": 0,
34638
+ "4": 0,
34639
+ "5": 0
34543
34640
  },
34544
34641
  b: {
34545
34642
  "0": [0, 0, 0],
@@ -34549,7 +34646,7 @@ function cov_291vtop84c() {
34549
34646
  "4": [0, 0]
34550
34647
  },
34551
34648
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
34552
- hash: "2fa2c31db7e39b3e2b38f7ef5f4c947b5004b05f"
34649
+ hash: "a26a6efe7c7b1236ea07677952837913631acb6c"
34553
34650
  };
34554
34651
  var coverage = global[gcv] || (global[gcv] = {});
34555
34652
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -34575,6 +34672,7 @@ var FormikWrap = function FormikWrap(_ref) {
34575
34672
  cov_291vtop84c().f[0]++;
34576
34673
  var _ref2 = (cov_291vtop84c().s[1]++, formik.useFormikContext()),
34577
34674
  errors = _ref2.errors,
34675
+ touched = _ref2.touched,
34578
34676
  isValid = _ref2.isValid,
34579
34677
  isSubmitting = _ref2.isSubmitting,
34580
34678
  values = _ref2.values;
@@ -34598,11 +34696,23 @@ var FormikWrap = function FormikWrap(_ref) {
34598
34696
  cov_291vtop84c().s[8]++;
34599
34697
  if ((cov_291vtop84c().b[3][0]++, !isSubmitting) && (cov_291vtop84c().b[3][1]++, !isValid)) {
34600
34698
  cov_291vtop84c().b[2][0]++;
34601
- cov_291vtop84c().s[9]++;
34699
+ // include only touched fields
34700
+ var touchedErrors = (cov_291vtop84c().s[9]++, Object.keys(errors).filter(function (key) {
34701
+ cov_291vtop84c().f[4]++;
34702
+ cov_291vtop84c().s[10]++;
34703
+ return touched[key];
34704
+ }).reduce(function (obj, key) {
34705
+ cov_291vtop84c().f[5]++;
34706
+ cov_291vtop84c().s[11]++;
34707
+ obj[key] = errors[key];
34708
+ cov_291vtop84c().s[12]++;
34709
+ return obj;
34710
+ }, {}));
34711
+ cov_291vtop84c().s[13]++;
34602
34712
  if (typeof onError === "function") {
34603
34713
  cov_291vtop84c().b[4][0]++;
34604
- cov_291vtop84c().s[10]++;
34605
- onError(errors);
34714
+ cov_291vtop84c().s[14]++;
34715
+ onError(touchedErrors);
34606
34716
  } else {
34607
34717
  cov_291vtop84c().b[4][1]++;
34608
34718
  }
@@ -34610,7 +34720,7 @@ var FormikWrap = function FormikWrap(_ref) {
34610
34720
  cov_291vtop84c().b[2][1]++;
34611
34721
  }
34612
34722
  }, [isValid, isSubmitting]);
34613
- cov_291vtop84c().s[11]++;
34723
+ cov_291vtop84c().s[15]++;
34614
34724
  return children;
34615
34725
  };
34616
34726
 
@@ -59581,7 +59691,7 @@ var Success$1 = /*#__PURE__*/React__default["default"].memo(Success);
59581
59691
 
59582
59692
  function cov_2jkcclu7mz() {
59583
59693
  var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/ExternalForm/index.jsx";
59584
- var hash = "c678672da6b7c438e8ebadee3ce8869460a8c3c6";
59694
+ var hash = "05c846696d6996a5fc58c9d61ade7f66c49c7270";
59585
59695
  var global = new Function("return this")();
59586
59696
  var gcv = "__coverage__";
59587
59697
  var coverageData = {
@@ -60274,7 +60384,7 @@ function cov_2jkcclu7mz() {
60274
60384
  },
60275
60385
  end: {
60276
60386
  line: 262,
60277
- column: 51
60387
+ column: 55
60278
60388
  }
60279
60389
  },
60280
60390
  "69": {
@@ -62258,7 +62368,7 @@ function cov_2jkcclu7mz() {
62258
62368
  "43": [0, 0]
62259
62369
  },
62260
62370
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
62261
- hash: "c678672da6b7c438e8ebadee3ce8869460a8c3c6"
62371
+ hash: "05c846696d6996a5fc58c9d61ade7f66c49c7270"
62262
62372
  };
62263
62373
  var coverage = global[gcv] || (global[gcv] = {});
62264
62374
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -62575,7 +62685,7 @@ var ExternalForm = function ExternalForm(_ref) {
62575
62685
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
62576
62686
  var formElement = _step.value;
62577
62687
  cov_2jkcclu7mz().s[54]++;
62578
- if (formElement.name === errorKeys[0]) {
62688
+ if (errorKeys.includes(formElement.name)) {
62579
62689
  cov_2jkcclu7mz().b[23][0]++;
62580
62690
  cov_2jkcclu7mz().s[55]++;
62581
62691
  formElement.scrollIntoView({
@@ -62670,7 +62780,7 @@ var ExternalForm = function ExternalForm(_ref) {
62670
62780
  if (!ramda.isEmpty(errors)) {
62671
62781
  cov_2jkcclu7mz().b[33][0]++;
62672
62782
  cov_2jkcclu7mz().s[68]++;
62673
- setFieldError(event.target.name);
62783
+ setFieldError(event.target.name, "");
62674
62784
  } else {
62675
62785
  cov_2jkcclu7mz().b[33][1]++;
62676
62786
  }