@bigbinary/neeto-form-frontend 1.2.0 → 1.2.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/README.md +2 -0
- package/dist/index.cjs.js +483 -176
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +484 -177
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/translations/en.json +3 -1
package/dist/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import { Input, Email as Email$2, Phone as Phone$2, Up, Down, MenuHorizontal, De
|
|
|
11
11
|
import axios from 'axios';
|
|
12
12
|
import { Input as Input$1, Textarea, Checkbox, ActionBlock } from '@bigbinary/neetoui/formik';
|
|
13
13
|
import { useTranslation, Trans } from 'react-i18next';
|
|
14
|
-
import { withImmutableActions, useHotKeys } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
14
|
+
import { withImmutableActions, useDebounce, useHotKeys } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
15
15
|
import { create as create$1 } from 'zustand';
|
|
16
16
|
import classnames from 'classnames';
|
|
17
17
|
import { Editor as Editor$1, isEditorEmpty, EditorContent } from '@bigbinary/neeto-editor';
|
|
@@ -4126,7 +4126,7 @@ var MemoizedTrophy = (cov_3ymiqznmu().s[17]++, /*#__PURE__*/React__default.memo(
|
|
|
4126
4126
|
|
|
4127
4127
|
function cov_2qs8napxwn() {
|
|
4128
4128
|
var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/ExternalForm/constants.jsx";
|
|
4129
|
-
var hash = "
|
|
4129
|
+
var hash = "3a67a3db4eeb7a59f9a683d9829f356430fab3e7";
|
|
4130
4130
|
var global = new Function("return this")();
|
|
4131
4131
|
var gcv = "__coverage__";
|
|
4132
4132
|
var coverageData = {
|
|
@@ -4138,75 +4138,275 @@ function cov_2qs8napxwn() {
|
|
|
4138
4138
|
column: 29
|
|
4139
4139
|
},
|
|
4140
4140
|
end: {
|
|
4141
|
-
line:
|
|
4141
|
+
line: 55,
|
|
4142
4142
|
column: 1
|
|
4143
4143
|
}
|
|
4144
4144
|
},
|
|
4145
4145
|
"1": {
|
|
4146
4146
|
start: {
|
|
4147
|
-
line:
|
|
4147
|
+
line: 44,
|
|
4148
|
+
column: 6
|
|
4149
|
+
},
|
|
4150
|
+
end: {
|
|
4151
|
+
line: 44,
|
|
4152
|
+
column: 61
|
|
4153
|
+
}
|
|
4154
|
+
},
|
|
4155
|
+
"2": {
|
|
4156
|
+
start: {
|
|
4157
|
+
line: 44,
|
|
4158
|
+
column: 42
|
|
4159
|
+
},
|
|
4160
|
+
end: {
|
|
4161
|
+
line: 44,
|
|
4162
|
+
column: 61
|
|
4163
|
+
}
|
|
4164
|
+
},
|
|
4165
|
+
"3": {
|
|
4166
|
+
start: {
|
|
4167
|
+
line: 52,
|
|
4168
|
+
column: 6
|
|
4169
|
+
},
|
|
4170
|
+
end: {
|
|
4171
|
+
line: 52,
|
|
4172
|
+
column: 44
|
|
4173
|
+
}
|
|
4174
|
+
},
|
|
4175
|
+
"4": {
|
|
4176
|
+
start: {
|
|
4177
|
+
line: 52,
|
|
4178
|
+
column: 25
|
|
4179
|
+
},
|
|
4180
|
+
end: {
|
|
4181
|
+
line: 52,
|
|
4182
|
+
column: 44
|
|
4183
|
+
}
|
|
4184
|
+
},
|
|
4185
|
+
"5": {
|
|
4186
|
+
start: {
|
|
4187
|
+
line: 56,
|
|
4148
4188
|
column: 29
|
|
4149
4189
|
},
|
|
4150
4190
|
end: {
|
|
4151
|
-
line:
|
|
4191
|
+
line: 60,
|
|
4152
4192
|
column: 1
|
|
4153
4193
|
}
|
|
4154
4194
|
},
|
|
4155
|
-
"
|
|
4195
|
+
"6": {
|
|
4156
4196
|
start: {
|
|
4157
|
-
line:
|
|
4197
|
+
line: 62,
|
|
4158
4198
|
column: 42
|
|
4159
4199
|
},
|
|
4160
4200
|
end: {
|
|
4161
|
-
line:
|
|
4201
|
+
line: 62,
|
|
4162
4202
|
column: 73
|
|
4163
4203
|
}
|
|
4164
4204
|
},
|
|
4165
|
-
"
|
|
4205
|
+
"7": {
|
|
4166
4206
|
start: {
|
|
4167
|
-
line:
|
|
4207
|
+
line: 64,
|
|
4168
4208
|
column: 30
|
|
4169
4209
|
},
|
|
4170
4210
|
end: {
|
|
4171
|
-
line:
|
|
4211
|
+
line: 80,
|
|
4172
4212
|
column: 1
|
|
4173
4213
|
}
|
|
4174
4214
|
},
|
|
4175
|
-
"
|
|
4215
|
+
"8": {
|
|
4176
4216
|
start: {
|
|
4177
|
-
line:
|
|
4217
|
+
line: 82,
|
|
4178
4218
|
column: 35
|
|
4179
4219
|
},
|
|
4180
4220
|
end: {
|
|
4181
|
-
line:
|
|
4221
|
+
line: 82,
|
|
4182
4222
|
column: 49
|
|
4183
4223
|
}
|
|
4184
4224
|
},
|
|
4185
|
-
"
|
|
4225
|
+
"9": {
|
|
4186
4226
|
start: {
|
|
4187
|
-
line:
|
|
4227
|
+
line: 84,
|
|
4188
4228
|
column: 25
|
|
4189
4229
|
},
|
|
4190
4230
|
end: {
|
|
4191
|
-
line:
|
|
4231
|
+
line: 90,
|
|
4192
4232
|
column: 1
|
|
4193
4233
|
}
|
|
4194
4234
|
}
|
|
4195
4235
|
},
|
|
4196
|
-
fnMap: {
|
|
4197
|
-
|
|
4236
|
+
fnMap: {
|
|
4237
|
+
"0": {
|
|
4238
|
+
name: "(anonymous_0)",
|
|
4239
|
+
decl: {
|
|
4240
|
+
start: {
|
|
4241
|
+
line: 43,
|
|
4242
|
+
column: 15
|
|
4243
|
+
},
|
|
4244
|
+
end: {
|
|
4245
|
+
line: 43,
|
|
4246
|
+
column: 16
|
|
4247
|
+
}
|
|
4248
|
+
},
|
|
4249
|
+
loc: {
|
|
4250
|
+
start: {
|
|
4251
|
+
line: 43,
|
|
4252
|
+
column: 20
|
|
4253
|
+
},
|
|
4254
|
+
end: {
|
|
4255
|
+
line: 45,
|
|
4256
|
+
column: 5
|
|
4257
|
+
}
|
|
4258
|
+
},
|
|
4259
|
+
line: 43
|
|
4260
|
+
},
|
|
4261
|
+
"1": {
|
|
4262
|
+
name: "(anonymous_1)",
|
|
4263
|
+
decl: {
|
|
4264
|
+
start: {
|
|
4265
|
+
line: 51,
|
|
4266
|
+
column: 15
|
|
4267
|
+
},
|
|
4268
|
+
end: {
|
|
4269
|
+
line: 51,
|
|
4270
|
+
column: 16
|
|
4271
|
+
}
|
|
4272
|
+
},
|
|
4273
|
+
loc: {
|
|
4274
|
+
start: {
|
|
4275
|
+
line: 51,
|
|
4276
|
+
column: 20
|
|
4277
|
+
},
|
|
4278
|
+
end: {
|
|
4279
|
+
line: 53,
|
|
4280
|
+
column: 5
|
|
4281
|
+
}
|
|
4282
|
+
},
|
|
4283
|
+
line: 51
|
|
4284
|
+
}
|
|
4285
|
+
},
|
|
4286
|
+
branchMap: {
|
|
4287
|
+
"0": {
|
|
4288
|
+
loc: {
|
|
4289
|
+
start: {
|
|
4290
|
+
line: 44,
|
|
4291
|
+
column: 6
|
|
4292
|
+
},
|
|
4293
|
+
end: {
|
|
4294
|
+
line: 44,
|
|
4295
|
+
column: 61
|
|
4296
|
+
}
|
|
4297
|
+
},
|
|
4298
|
+
type: "if",
|
|
4299
|
+
locations: [{
|
|
4300
|
+
start: {
|
|
4301
|
+
line: 44,
|
|
4302
|
+
column: 6
|
|
4303
|
+
},
|
|
4304
|
+
end: {
|
|
4305
|
+
line: 44,
|
|
4306
|
+
column: 61
|
|
4307
|
+
}
|
|
4308
|
+
}, {
|
|
4309
|
+
start: {
|
|
4310
|
+
line: undefined,
|
|
4311
|
+
column: undefined
|
|
4312
|
+
},
|
|
4313
|
+
end: {
|
|
4314
|
+
line: undefined,
|
|
4315
|
+
column: undefined
|
|
4316
|
+
}
|
|
4317
|
+
}],
|
|
4318
|
+
line: 44
|
|
4319
|
+
},
|
|
4320
|
+
"1": {
|
|
4321
|
+
loc: {
|
|
4322
|
+
start: {
|
|
4323
|
+
line: 44,
|
|
4324
|
+
column: 10
|
|
4325
|
+
},
|
|
4326
|
+
end: {
|
|
4327
|
+
line: 44,
|
|
4328
|
+
column: 40
|
|
4329
|
+
}
|
|
4330
|
+
},
|
|
4331
|
+
type: "binary-expr",
|
|
4332
|
+
locations: [{
|
|
4333
|
+
start: {
|
|
4334
|
+
line: 44,
|
|
4335
|
+
column: 10
|
|
4336
|
+
},
|
|
4337
|
+
end: {
|
|
4338
|
+
line: 44,
|
|
4339
|
+
column: 23
|
|
4340
|
+
}
|
|
4341
|
+
}, {
|
|
4342
|
+
start: {
|
|
4343
|
+
line: 44,
|
|
4344
|
+
column: 27
|
|
4345
|
+
},
|
|
4346
|
+
end: {
|
|
4347
|
+
line: 44,
|
|
4348
|
+
column: 40
|
|
4349
|
+
}
|
|
4350
|
+
}],
|
|
4351
|
+
line: 44
|
|
4352
|
+
},
|
|
4353
|
+
"2": {
|
|
4354
|
+
loc: {
|
|
4355
|
+
start: {
|
|
4356
|
+
line: 52,
|
|
4357
|
+
column: 6
|
|
4358
|
+
},
|
|
4359
|
+
end: {
|
|
4360
|
+
line: 52,
|
|
4361
|
+
column: 44
|
|
4362
|
+
}
|
|
4363
|
+
},
|
|
4364
|
+
type: "if",
|
|
4365
|
+
locations: [{
|
|
4366
|
+
start: {
|
|
4367
|
+
line: 52,
|
|
4368
|
+
column: 6
|
|
4369
|
+
},
|
|
4370
|
+
end: {
|
|
4371
|
+
line: 52,
|
|
4372
|
+
column: 44
|
|
4373
|
+
}
|
|
4374
|
+
}, {
|
|
4375
|
+
start: {
|
|
4376
|
+
line: undefined,
|
|
4377
|
+
column: undefined
|
|
4378
|
+
},
|
|
4379
|
+
end: {
|
|
4380
|
+
line: undefined,
|
|
4381
|
+
column: undefined
|
|
4382
|
+
}
|
|
4383
|
+
}],
|
|
4384
|
+
line: 52
|
|
4385
|
+
}
|
|
4386
|
+
},
|
|
4198
4387
|
s: {
|
|
4199
4388
|
"0": 0,
|
|
4200
4389
|
"1": 0,
|
|
4201
4390
|
"2": 0,
|
|
4202
4391
|
"3": 0,
|
|
4203
4392
|
"4": 0,
|
|
4204
|
-
"5": 0
|
|
4393
|
+
"5": 0,
|
|
4394
|
+
"6": 0,
|
|
4395
|
+
"7": 0,
|
|
4396
|
+
"8": 0,
|
|
4397
|
+
"9": 0
|
|
4398
|
+
},
|
|
4399
|
+
f: {
|
|
4400
|
+
"0": 0,
|
|
4401
|
+
"1": 0
|
|
4402
|
+
},
|
|
4403
|
+
b: {
|
|
4404
|
+
"0": [0, 0],
|
|
4405
|
+
"1": [0, 0],
|
|
4406
|
+
"2": [0, 0]
|
|
4205
4407
|
},
|
|
4206
|
-
f: {},
|
|
4207
|
-
b: {},
|
|
4208
4408
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
4209
|
-
hash: "
|
|
4409
|
+
hash: "3a67a3db4eeb7a59f9a683d9829f356430fab3e7"
|
|
4210
4410
|
};
|
|
4211
4411
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
4212
4412
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -4281,9 +4481,41 @@ var QUESTION_KIND = (cov_2qs8napxwn().s[0]++, {
|
|
|
4281
4481
|
},
|
|
4282
4482
|
RICH_TEXT: {
|
|
4283
4483
|
value: "rich_text"
|
|
4484
|
+
},
|
|
4485
|
+
INTEGER: {
|
|
4486
|
+
prefix: /*#__PURE__*/React__default.createElement(Input, null),
|
|
4487
|
+
type: "number",
|
|
4488
|
+
value: "integer",
|
|
4489
|
+
onKeyDown: function onKeyDown(e) {
|
|
4490
|
+
cov_2qs8napxwn().f[0]++;
|
|
4491
|
+
cov_2qs8napxwn().s[1]++;
|
|
4492
|
+
if ((cov_2qs8napxwn().b[1][0]++, e.key === ".") || (cov_2qs8napxwn().b[1][1]++, e.key === "e")) {
|
|
4493
|
+
cov_2qs8napxwn().b[0][0]++;
|
|
4494
|
+
cov_2qs8napxwn().s[2]++;
|
|
4495
|
+
e.preventDefault();
|
|
4496
|
+
} else {
|
|
4497
|
+
cov_2qs8napxwn().b[0][1]++;
|
|
4498
|
+
}
|
|
4499
|
+
}
|
|
4500
|
+
},
|
|
4501
|
+
DECIMAL: {
|
|
4502
|
+
prefix: /*#__PURE__*/React__default.createElement(Input, null),
|
|
4503
|
+
type: "number",
|
|
4504
|
+
value: "decimal",
|
|
4505
|
+
onKeyDown: function onKeyDown(e) {
|
|
4506
|
+
cov_2qs8napxwn().f[1]++;
|
|
4507
|
+
cov_2qs8napxwn().s[3]++;
|
|
4508
|
+
if (e.key === "e") {
|
|
4509
|
+
cov_2qs8napxwn().b[2][0]++;
|
|
4510
|
+
cov_2qs8napxwn().s[4]++;
|
|
4511
|
+
e.preventDefault();
|
|
4512
|
+
} else {
|
|
4513
|
+
cov_2qs8napxwn().b[2][1]++;
|
|
4514
|
+
}
|
|
4515
|
+
}
|
|
4284
4516
|
}
|
|
4285
4517
|
});
|
|
4286
|
-
var RATING_VALUES = (cov_2qs8napxwn().s[
|
|
4518
|
+
var RATING_VALUES = (cov_2qs8napxwn().s[5]++, {
|
|
4287
4519
|
GOOD: {
|
|
4288
4520
|
label: t$1("neetoForm.common.good"),
|
|
4289
4521
|
value: "good"
|
|
@@ -4297,8 +4529,8 @@ var RATING_VALUES = (cov_2qs8napxwn().s[1]++, {
|
|
|
4297
4529
|
value: "bad"
|
|
4298
4530
|
}
|
|
4299
4531
|
});
|
|
4300
|
-
var SCHEMA_LESS_QUESTION_KINDS = (cov_2qs8napxwn().s[
|
|
4301
|
-
var RATING_OPTIONS = (cov_2qs8napxwn().s[
|
|
4532
|
+
var SCHEMA_LESS_QUESTION_KINDS = (cov_2qs8napxwn().s[6]++, [QUESTION_KIND.PARAGRAPH.value]);
|
|
4533
|
+
var RATING_OPTIONS = (cov_2qs8napxwn().s[7]++, [{
|
|
4302
4534
|
icon: SvgHappyFace,
|
|
4303
4535
|
modifier: "happy",
|
|
4304
4536
|
value: RATING_VALUES.GOOD.value
|
|
@@ -4311,8 +4543,8 @@ var RATING_OPTIONS = (cov_2qs8napxwn().s[3]++, [{
|
|
|
4311
4543
|
modifier: "sad",
|
|
4312
4544
|
value: RATING_VALUES.BAD.value
|
|
4313
4545
|
}]);
|
|
4314
|
-
(cov_2qs8napxwn().s[
|
|
4315
|
-
var ICONS_MAP = (cov_2qs8napxwn().s[
|
|
4546
|
+
(cov_2qs8napxwn().s[8]++, /\+\d{11,14}$/);
|
|
4547
|
+
var ICONS_MAP = (cov_2qs8napxwn().s[9]++, {
|
|
4316
4548
|
star: MemoizedStar,
|
|
4317
4549
|
heart: MemoizedHeart,
|
|
4318
4550
|
crown: MemoizedCrown,
|
|
@@ -25258,7 +25490,7 @@ var Editor = function Editor(_ref) {
|
|
|
25258
25490
|
|
|
25259
25491
|
function cov_2j8tlu2ul5() {
|
|
25260
25492
|
var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/BuildForm/Questions/constants.js";
|
|
25261
|
-
var hash = "
|
|
25493
|
+
var hash = "b0ce3d8b3b5391e11f9ac6d877b412e8beb4a7ac";
|
|
25262
25494
|
var global = new Function("return this")();
|
|
25263
25495
|
var gcv = "__coverage__";
|
|
25264
25496
|
var coverageData = {
|
|
@@ -25300,27 +25532,27 @@ function cov_2j8tlu2ul5() {
|
|
|
25300
25532
|
column: 30
|
|
25301
25533
|
},
|
|
25302
25534
|
end: {
|
|
25303
|
-
line:
|
|
25535
|
+
line: 226,
|
|
25304
25536
|
column: 1
|
|
25305
25537
|
}
|
|
25306
25538
|
},
|
|
25307
25539
|
"4": {
|
|
25308
25540
|
start: {
|
|
25309
|
-
line:
|
|
25541
|
+
line: 229,
|
|
25310
25542
|
column: 38
|
|
25311
25543
|
},
|
|
25312
25544
|
end: {
|
|
25313
|
-
line:
|
|
25545
|
+
line: 232,
|
|
25314
25546
|
column: 1
|
|
25315
25547
|
}
|
|
25316
25548
|
},
|
|
25317
25549
|
"5": {
|
|
25318
25550
|
start: {
|
|
25319
|
-
line:
|
|
25551
|
+
line: 234,
|
|
25320
25552
|
column: 29
|
|
25321
25553
|
},
|
|
25322
25554
|
end: {
|
|
25323
|
-
line:
|
|
25555
|
+
line: 234,
|
|
25324
25556
|
column: 63
|
|
25325
25557
|
}
|
|
25326
25558
|
}
|
|
@@ -25338,7 +25570,7 @@ function cov_2j8tlu2ul5() {
|
|
|
25338
25570
|
f: {},
|
|
25339
25571
|
b: {},
|
|
25340
25572
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
25341
|
-
hash: "
|
|
25573
|
+
hash: "b0ce3d8b3b5391e11f9ac6d877b412e8beb4a7ac"
|
|
25342
25574
|
};
|
|
25343
25575
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
25344
25576
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -25429,6 +25661,24 @@ var QUESTION_KINDS = (cov_2j8tlu2ul5().s[3]++, [{
|
|
|
25429
25661
|
defaults: {
|
|
25430
25662
|
label: ""
|
|
25431
25663
|
}
|
|
25664
|
+
}, {
|
|
25665
|
+
type: "integer",
|
|
25666
|
+
label: t$1("neetoForm.fields.iif"),
|
|
25667
|
+
isSingular: false,
|
|
25668
|
+
icon: Input,
|
|
25669
|
+
component: LongText,
|
|
25670
|
+
defaults: {
|
|
25671
|
+
label: ""
|
|
25672
|
+
}
|
|
25673
|
+
}, {
|
|
25674
|
+
type: "decimal",
|
|
25675
|
+
label: t$1("neetoForm.fields.dif"),
|
|
25676
|
+
isSingular: false,
|
|
25677
|
+
icon: Input,
|
|
25678
|
+
component: LongText,
|
|
25679
|
+
defaults: {
|
|
25680
|
+
label: ""
|
|
25681
|
+
}
|
|
25432
25682
|
}, {
|
|
25433
25683
|
type: "rich_text",
|
|
25434
25684
|
label: t$1("neetoForm.fields.rtf"),
|
|
@@ -49726,7 +49976,7 @@ var RatingField = function RatingField(_ref) {
|
|
|
49726
49976
|
|
|
49727
49977
|
function cov_169joloac6() {
|
|
49728
49978
|
var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/ExternalForm/Fields/RichTextEditor.jsx";
|
|
49729
|
-
var hash = "
|
|
49979
|
+
var hash = "606c74303adb3d540387836761d6cccb9f3cc43f";
|
|
49730
49980
|
var global = new Function("return this")();
|
|
49731
49981
|
var gcv = "__coverage__";
|
|
49732
49982
|
var coverageData = {
|
|
@@ -49734,61 +49984,81 @@ function cov_169joloac6() {
|
|
|
49734
49984
|
statementMap: {
|
|
49735
49985
|
"0": {
|
|
49736
49986
|
start: {
|
|
49737
|
-
line:
|
|
49987
|
+
line: 10,
|
|
49738
49988
|
column: 23
|
|
49739
49989
|
},
|
|
49740
49990
|
end: {
|
|
49741
|
-
line:
|
|
49991
|
+
line: 54,
|
|
49742
49992
|
column: 1
|
|
49743
49993
|
}
|
|
49744
49994
|
},
|
|
49745
49995
|
"1": {
|
|
49746
49996
|
start: {
|
|
49747
|
-
line:
|
|
49997
|
+
line: 11,
|
|
49748
49998
|
column: 69
|
|
49749
49999
|
},
|
|
49750
50000
|
end: {
|
|
49751
|
-
line:
|
|
50001
|
+
line: 11,
|
|
49752
50002
|
column: 77
|
|
49753
50003
|
}
|
|
49754
50004
|
},
|
|
49755
50005
|
"2": {
|
|
49756
50006
|
start: {
|
|
49757
|
-
line:
|
|
50007
|
+
line: 13,
|
|
50008
|
+
column: 31
|
|
50009
|
+
},
|
|
50010
|
+
end: {
|
|
50011
|
+
line: 13,
|
|
50012
|
+
column: 60
|
|
50013
|
+
}
|
|
50014
|
+
},
|
|
50015
|
+
"3": {
|
|
50016
|
+
start: {
|
|
50017
|
+
line: 15,
|
|
49758
50018
|
column: 2
|
|
49759
50019
|
},
|
|
49760
50020
|
end: {
|
|
49761
|
-
line:
|
|
50021
|
+
line: 53,
|
|
49762
50022
|
column: 4
|
|
49763
50023
|
}
|
|
49764
50024
|
},
|
|
49765
|
-
"
|
|
50025
|
+
"4": {
|
|
49766
50026
|
start: {
|
|
49767
|
-
line:
|
|
50027
|
+
line: 29,
|
|
49768
50028
|
column: 10
|
|
49769
50029
|
},
|
|
49770
50030
|
end: {
|
|
49771
|
-
line:
|
|
50031
|
+
line: 29,
|
|
50032
|
+
column: 75
|
|
50033
|
+
}
|
|
50034
|
+
},
|
|
50035
|
+
"5": {
|
|
50036
|
+
start: {
|
|
50037
|
+
line: 33,
|
|
50038
|
+
column: 10
|
|
50039
|
+
},
|
|
50040
|
+
end: {
|
|
50041
|
+
line: 49,
|
|
49772
50042
|
column: 12
|
|
49773
50043
|
}
|
|
49774
50044
|
},
|
|
49775
|
-
"
|
|
50045
|
+
"6": {
|
|
49776
50046
|
start: {
|
|
49777
|
-
line:
|
|
50047
|
+
line: 46,
|
|
49778
50048
|
column: 26
|
|
49779
50049
|
},
|
|
49780
50050
|
end: {
|
|
49781
|
-
line:
|
|
50051
|
+
line: 46,
|
|
49782
50052
|
column: 58
|
|
49783
50053
|
}
|
|
49784
50054
|
},
|
|
49785
|
-
"
|
|
50055
|
+
"7": {
|
|
49786
50056
|
start: {
|
|
49787
|
-
line:
|
|
50057
|
+
line: 47,
|
|
49788
50058
|
column: 31
|
|
49789
50059
|
},
|
|
49790
50060
|
end: {
|
|
49791
|
-
line:
|
|
50061
|
+
line: 47,
|
|
49792
50062
|
column: 62
|
|
49793
50063
|
}
|
|
49794
50064
|
}
|
|
@@ -49798,222 +50068,246 @@ function cov_169joloac6() {
|
|
|
49798
50068
|
name: "(anonymous_0)",
|
|
49799
50069
|
decl: {
|
|
49800
50070
|
start: {
|
|
49801
|
-
line:
|
|
50071
|
+
line: 10,
|
|
49802
50072
|
column: 23
|
|
49803
50073
|
},
|
|
49804
50074
|
end: {
|
|
49805
|
-
line:
|
|
50075
|
+
line: 10,
|
|
49806
50076
|
column: 24
|
|
49807
50077
|
}
|
|
49808
50078
|
},
|
|
49809
50079
|
loc: {
|
|
49810
50080
|
start: {
|
|
49811
|
-
line:
|
|
50081
|
+
line: 10,
|
|
49812
50082
|
column: 70
|
|
49813
50083
|
},
|
|
49814
50084
|
end: {
|
|
49815
|
-
line:
|
|
50085
|
+
line: 54,
|
|
49816
50086
|
column: 1
|
|
49817
50087
|
}
|
|
49818
50088
|
},
|
|
49819
|
-
line:
|
|
50089
|
+
line: 10
|
|
49820
50090
|
},
|
|
49821
50091
|
"1": {
|
|
49822
50092
|
name: "(anonymous_1)",
|
|
49823
50093
|
decl: {
|
|
49824
50094
|
start: {
|
|
49825
|
-
line:
|
|
50095
|
+
line: 28,
|
|
50096
|
+
column: 22
|
|
50097
|
+
},
|
|
50098
|
+
end: {
|
|
50099
|
+
line: 28,
|
|
50100
|
+
column: 23
|
|
50101
|
+
}
|
|
50102
|
+
},
|
|
50103
|
+
loc: {
|
|
50104
|
+
start: {
|
|
50105
|
+
line: 29,
|
|
50106
|
+
column: 10
|
|
50107
|
+
},
|
|
50108
|
+
end: {
|
|
50109
|
+
line: 29,
|
|
50110
|
+
column: 75
|
|
50111
|
+
}
|
|
50112
|
+
},
|
|
50113
|
+
line: 29
|
|
50114
|
+
},
|
|
50115
|
+
"2": {
|
|
50116
|
+
name: "(anonymous_2)",
|
|
50117
|
+
decl: {
|
|
50118
|
+
start: {
|
|
50119
|
+
line: 32,
|
|
49826
50120
|
column: 9
|
|
49827
50121
|
},
|
|
49828
50122
|
end: {
|
|
49829
|
-
line:
|
|
50123
|
+
line: 32,
|
|
49830
50124
|
column: 10
|
|
49831
50125
|
}
|
|
49832
50126
|
},
|
|
49833
50127
|
loc: {
|
|
49834
50128
|
start: {
|
|
49835
|
-
line:
|
|
50129
|
+
line: 33,
|
|
49836
50130
|
column: 10
|
|
49837
50131
|
},
|
|
49838
50132
|
end: {
|
|
49839
|
-
line:
|
|
50133
|
+
line: 49,
|
|
49840
50134
|
column: 12
|
|
49841
50135
|
}
|
|
49842
50136
|
},
|
|
49843
|
-
line:
|
|
50137
|
+
line: 33
|
|
49844
50138
|
},
|
|
49845
|
-
"
|
|
49846
|
-
name: "(
|
|
50139
|
+
"3": {
|
|
50140
|
+
name: "(anonymous_3)",
|
|
49847
50141
|
decl: {
|
|
49848
50142
|
start: {
|
|
49849
|
-
line:
|
|
50143
|
+
line: 46,
|
|
49850
50144
|
column: 20
|
|
49851
50145
|
},
|
|
49852
50146
|
end: {
|
|
49853
|
-
line:
|
|
50147
|
+
line: 46,
|
|
49854
50148
|
column: 21
|
|
49855
50149
|
}
|
|
49856
50150
|
},
|
|
49857
50151
|
loc: {
|
|
49858
50152
|
start: {
|
|
49859
|
-
line:
|
|
50153
|
+
line: 46,
|
|
49860
50154
|
column: 26
|
|
49861
50155
|
},
|
|
49862
50156
|
end: {
|
|
49863
|
-
line:
|
|
50157
|
+
line: 46,
|
|
49864
50158
|
column: 58
|
|
49865
50159
|
}
|
|
49866
50160
|
},
|
|
49867
|
-
line:
|
|
50161
|
+
line: 46
|
|
49868
50162
|
},
|
|
49869
|
-
"
|
|
49870
|
-
name: "(
|
|
50163
|
+
"4": {
|
|
50164
|
+
name: "(anonymous_4)",
|
|
49871
50165
|
decl: {
|
|
49872
50166
|
start: {
|
|
49873
|
-
line:
|
|
50167
|
+
line: 47,
|
|
49874
50168
|
column: 22
|
|
49875
50169
|
},
|
|
49876
50170
|
end: {
|
|
49877
|
-
line:
|
|
50171
|
+
line: 47,
|
|
49878
50172
|
column: 23
|
|
49879
50173
|
}
|
|
49880
50174
|
},
|
|
49881
50175
|
loc: {
|
|
49882
50176
|
start: {
|
|
49883
|
-
line:
|
|
50177
|
+
line: 47,
|
|
49884
50178
|
column: 31
|
|
49885
50179
|
},
|
|
49886
50180
|
end: {
|
|
49887
|
-
line:
|
|
50181
|
+
line: 47,
|
|
49888
50182
|
column: 62
|
|
49889
50183
|
}
|
|
49890
50184
|
},
|
|
49891
|
-
line:
|
|
50185
|
+
line: 47
|
|
49892
50186
|
}
|
|
49893
50187
|
},
|
|
49894
50188
|
branchMap: {
|
|
49895
50189
|
"0": {
|
|
49896
50190
|
loc: {
|
|
49897
50191
|
start: {
|
|
49898
|
-
line:
|
|
50192
|
+
line: 10,
|
|
49899
50193
|
column: 47
|
|
49900
50194
|
},
|
|
49901
50195
|
end: {
|
|
49902
|
-
line:
|
|
50196
|
+
line: 10,
|
|
49903
50197
|
column: 63
|
|
49904
50198
|
}
|
|
49905
50199
|
},
|
|
49906
50200
|
type: "default-arg",
|
|
49907
50201
|
locations: [{
|
|
49908
50202
|
start: {
|
|
49909
|
-
line:
|
|
50203
|
+
line: 10,
|
|
49910
50204
|
column: 61
|
|
49911
50205
|
},
|
|
49912
50206
|
end: {
|
|
49913
|
-
line:
|
|
50207
|
+
line: 10,
|
|
49914
50208
|
column: 63
|
|
49915
50209
|
}
|
|
49916
50210
|
}],
|
|
49917
|
-
line:
|
|
50211
|
+
line: 10
|
|
49918
50212
|
},
|
|
49919
50213
|
"1": {
|
|
49920
50214
|
loc: {
|
|
49921
50215
|
start: {
|
|
49922
|
-
line:
|
|
50216
|
+
line: 18,
|
|
49923
50217
|
column: 9
|
|
49924
50218
|
},
|
|
49925
50219
|
end: {
|
|
49926
|
-
line:
|
|
50220
|
+
line: 22,
|
|
49927
50221
|
column: 9
|
|
49928
50222
|
}
|
|
49929
50223
|
},
|
|
49930
50224
|
type: "binary-expr",
|
|
49931
50225
|
locations: [{
|
|
49932
50226
|
start: {
|
|
49933
|
-
line:
|
|
50227
|
+
line: 18,
|
|
49934
50228
|
column: 9
|
|
49935
50229
|
},
|
|
49936
50230
|
end: {
|
|
49937
|
-
line:
|
|
50231
|
+
line: 18,
|
|
49938
50232
|
column: 14
|
|
49939
50233
|
}
|
|
49940
50234
|
}, {
|
|
49941
50235
|
start: {
|
|
49942
|
-
line:
|
|
50236
|
+
line: 19,
|
|
49943
50237
|
column: 10
|
|
49944
50238
|
},
|
|
49945
50239
|
end: {
|
|
49946
|
-
line:
|
|
50240
|
+
line: 21,
|
|
49947
50241
|
column: 18
|
|
49948
50242
|
}
|
|
49949
50243
|
}],
|
|
49950
|
-
line:
|
|
50244
|
+
line: 18
|
|
49951
50245
|
},
|
|
49952
50246
|
"2": {
|
|
49953
50247
|
loc: {
|
|
49954
50248
|
start: {
|
|
49955
|
-
line:
|
|
50249
|
+
line: 26,
|
|
49956
50250
|
column: 14
|
|
49957
50251
|
},
|
|
49958
50252
|
end: {
|
|
49959
|
-
line:
|
|
50253
|
+
line: 26,
|
|
49960
50254
|
column: 28
|
|
49961
50255
|
}
|
|
49962
50256
|
},
|
|
49963
50257
|
type: "binary-expr",
|
|
49964
50258
|
locations: [{
|
|
49965
50259
|
start: {
|
|
49966
|
-
line:
|
|
50260
|
+
line: 26,
|
|
49967
50261
|
column: 14
|
|
49968
50262
|
},
|
|
49969
50263
|
end: {
|
|
49970
|
-
line:
|
|
50264
|
+
line: 26,
|
|
49971
50265
|
column: 18
|
|
49972
50266
|
}
|
|
49973
50267
|
}, {
|
|
49974
50268
|
start: {
|
|
49975
|
-
line:
|
|
50269
|
+
line: 26,
|
|
49976
50270
|
column: 22
|
|
49977
50271
|
},
|
|
49978
50272
|
end: {
|
|
49979
|
-
line:
|
|
50273
|
+
line: 26,
|
|
49980
50274
|
column: 28
|
|
49981
50275
|
}
|
|
49982
50276
|
}],
|
|
49983
|
-
line:
|
|
50277
|
+
line: 26
|
|
49984
50278
|
},
|
|
49985
50279
|
"3": {
|
|
49986
50280
|
loc: {
|
|
49987
50281
|
start: {
|
|
49988
|
-
line:
|
|
50282
|
+
line: 35,
|
|
49989
50283
|
column: 19
|
|
49990
50284
|
},
|
|
49991
50285
|
end: {
|
|
49992
|
-
line:
|
|
50286
|
+
line: 35,
|
|
49993
50287
|
column: 49
|
|
49994
50288
|
}
|
|
49995
50289
|
},
|
|
49996
50290
|
type: "cond-expr",
|
|
49997
50291
|
locations: [{
|
|
49998
50292
|
start: {
|
|
49999
|
-
line:
|
|
50293
|
+
line: 35,
|
|
50000
50294
|
column: 34
|
|
50001
50295
|
},
|
|
50002
50296
|
end: {
|
|
50003
|
-
line:
|
|
50297
|
+
line: 35,
|
|
50004
50298
|
column: 44
|
|
50005
50299
|
}
|
|
50006
50300
|
}, {
|
|
50007
50301
|
start: {
|
|
50008
|
-
line:
|
|
50302
|
+
line: 35,
|
|
50009
50303
|
column: 47
|
|
50010
50304
|
},
|
|
50011
50305
|
end: {
|
|
50012
|
-
line:
|
|
50306
|
+
line: 35,
|
|
50013
50307
|
column: 49
|
|
50014
50308
|
}
|
|
50015
50309
|
}],
|
|
50016
|
-
line:
|
|
50310
|
+
line: 35
|
|
50017
50311
|
}
|
|
50018
50312
|
},
|
|
50019
50313
|
s: {
|
|
@@ -50022,13 +50316,16 @@ function cov_169joloac6() {
|
|
|
50022
50316
|
"2": 0,
|
|
50023
50317
|
"3": 0,
|
|
50024
50318
|
"4": 0,
|
|
50025
|
-
"5": 0
|
|
50319
|
+
"5": 0,
|
|
50320
|
+
"6": 0,
|
|
50321
|
+
"7": 0
|
|
50026
50322
|
},
|
|
50027
50323
|
f: {
|
|
50028
50324
|
"0": 0,
|
|
50029
50325
|
"1": 0,
|
|
50030
50326
|
"2": 0,
|
|
50031
|
-
"3": 0
|
|
50327
|
+
"3": 0,
|
|
50328
|
+
"4": 0
|
|
50032
50329
|
},
|
|
50033
50330
|
b: {
|
|
50034
50331
|
"0": [0],
|
|
@@ -50037,7 +50334,7 @@ function cov_169joloac6() {
|
|
|
50037
50334
|
"3": [0, 0]
|
|
50038
50335
|
},
|
|
50039
50336
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
50040
|
-
hash: "
|
|
50337
|
+
hash: "606c74303adb3d540387836761d6cccb9f3cc43f"
|
|
50041
50338
|
};
|
|
50042
50339
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
50043
50340
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -50067,7 +50364,8 @@ var RichTextEditor = function RichTextEditor(_ref) {
|
|
|
50067
50364
|
isRequired = _ref2.isRequired,
|
|
50068
50365
|
nodeId = _ref2.nodeId,
|
|
50069
50366
|
placeholder = _ref2.placeholder;
|
|
50070
|
-
cov_169joloac6().s[2]
|
|
50367
|
+
var debouncedPlaceholder = (cov_169joloac6().s[2]++, useDebounce(placeholder, 300));
|
|
50368
|
+
cov_169joloac6().s[3]++;
|
|
50071
50369
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
50072
50370
|
className: "neeto-form-engine-input__wrapper"
|
|
50073
50371
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -50075,33 +50373,40 @@ var RichTextEditor = function RichTextEditor(_ref) {
|
|
|
50075
50373
|
}, (cov_169joloac6().b[1][0]++, label) && (cov_169joloac6().b[1][1]++, /*#__PURE__*/React__default.createElement("label", {
|
|
50076
50374
|
className: "neeto-form-engine-label"
|
|
50077
50375
|
}, getLabel$1(label, isRequired)))), /*#__PURE__*/React__default.createElement(FastField, {
|
|
50376
|
+
debouncedPlaceholder: debouncedPlaceholder,
|
|
50078
50377
|
name: (cov_169joloac6().b[2][0]++, name) || (cov_169joloac6().b[2][1]++, nodeId),
|
|
50079
50378
|
validate: validateFieldValue({
|
|
50080
50379
|
kind: kind,
|
|
50081
50380
|
label: label,
|
|
50082
50381
|
isRequired: isRequired
|
|
50083
|
-
})
|
|
50382
|
+
}),
|
|
50383
|
+
shouldUpdate: function shouldUpdate(nextProps, prevProps) {
|
|
50384
|
+
cov_169joloac6().f[1]++;
|
|
50385
|
+
cov_169joloac6().s[4]++;
|
|
50386
|
+
return nextProps.debouncedPlaceholder !== prevProps.debouncedPlaceholder;
|
|
50387
|
+
}
|
|
50084
50388
|
}, function (_ref3) {
|
|
50085
50389
|
var field = _ref3.field,
|
|
50086
50390
|
form = _ref3.form,
|
|
50087
50391
|
meta = _ref3.meta;
|
|
50088
|
-
cov_169joloac6().f[
|
|
50089
|
-
cov_169joloac6().s[
|
|
50392
|
+
cov_169joloac6().f[2]++;
|
|
50393
|
+
cov_169joloac6().s[5]++;
|
|
50090
50394
|
return /*#__PURE__*/React__default.createElement(Editor$1, _extends$8({
|
|
50091
50395
|
className: "neeto-form-engine-rich-text-input",
|
|
50092
50396
|
error: meta.touched ? (cov_169joloac6().b[3][0]++, meta.error) : (cov_169joloac6().b[3][1]++, ""),
|
|
50093
50397
|
initialValue: field.value,
|
|
50094
|
-
|
|
50398
|
+
key: debouncedPlaceholder,
|
|
50399
|
+
placeholder: debouncedPlaceholder,
|
|
50095
50400
|
ref: editorRef,
|
|
50096
50401
|
addons: ["attachments", "block-quote", "code-block", "image-upload"],
|
|
50097
50402
|
onBlur: function onBlur() {
|
|
50098
|
-
cov_169joloac6().f[
|
|
50099
|
-
cov_169joloac6().s[
|
|
50403
|
+
cov_169joloac6().f[3]++;
|
|
50404
|
+
cov_169joloac6().s[6]++;
|
|
50100
50405
|
return form.setFieldTouched(name, true);
|
|
50101
50406
|
},
|
|
50102
50407
|
onChange: function onChange(value) {
|
|
50103
|
-
cov_169joloac6().f[
|
|
50104
|
-
cov_169joloac6().s[
|
|
50408
|
+
cov_169joloac6().f[4]++;
|
|
50409
|
+
cov_169joloac6().s[7]++;
|
|
50105
50410
|
return form.setFieldValue(name, value);
|
|
50106
50411
|
}
|
|
50107
50412
|
}, editorProps));
|
|
@@ -51112,7 +51417,7 @@ var TermsField = function TermsField(_ref) {
|
|
|
51112
51417
|
|
|
51113
51418
|
function cov_h64dar2vv() {
|
|
51114
51419
|
var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/ExternalForm/Fields/TextField.jsx";
|
|
51115
|
-
var hash = "
|
|
51420
|
+
var hash = "b7d64e55c2820e2556092d8ce02f6c9397255ab7";
|
|
51116
51421
|
var global = new Function("return this")();
|
|
51117
51422
|
var gcv = "__coverage__";
|
|
51118
51423
|
var coverageData = {
|
|
@@ -51124,7 +51429,7 @@ function cov_h64dar2vv() {
|
|
|
51124
51429
|
column: 18
|
|
51125
51430
|
},
|
|
51126
51431
|
end: {
|
|
51127
|
-
line:
|
|
51432
|
+
line: 46,
|
|
51128
51433
|
column: 1
|
|
51129
51434
|
}
|
|
51130
51435
|
},
|
|
@@ -51140,41 +51445,41 @@ function cov_h64dar2vv() {
|
|
|
51140
51445
|
},
|
|
51141
51446
|
"2": {
|
|
51142
51447
|
start: {
|
|
51143
|
-
line:
|
|
51448
|
+
line: 17,
|
|
51144
51449
|
column: 6
|
|
51145
51450
|
},
|
|
51146
51451
|
end: {
|
|
51147
|
-
line:
|
|
51452
|
+
line: 17,
|
|
51148
51453
|
column: 39
|
|
51149
51454
|
}
|
|
51150
51455
|
},
|
|
51151
51456
|
"3": {
|
|
51152
51457
|
start: {
|
|
51153
|
-
line:
|
|
51458
|
+
line: 19,
|
|
51154
51459
|
column: 20
|
|
51155
51460
|
},
|
|
51156
51461
|
end: {
|
|
51157
|
-
line:
|
|
51462
|
+
line: 19,
|
|
51158
51463
|
column: 76
|
|
51159
51464
|
}
|
|
51160
51465
|
},
|
|
51161
51466
|
"4": {
|
|
51162
51467
|
start: {
|
|
51163
|
-
line:
|
|
51468
|
+
line: 21,
|
|
51164
51469
|
column: 2
|
|
51165
51470
|
},
|
|
51166
51471
|
end: {
|
|
51167
|
-
line:
|
|
51472
|
+
line: 45,
|
|
51168
51473
|
column: 4
|
|
51169
51474
|
}
|
|
51170
51475
|
},
|
|
51171
51476
|
"5": {
|
|
51172
51477
|
start: {
|
|
51173
|
-
line:
|
|
51478
|
+
line: 32,
|
|
51174
51479
|
column: 8
|
|
51175
51480
|
},
|
|
51176
51481
|
end: {
|
|
51177
|
-
line:
|
|
51482
|
+
line: 42,
|
|
51178
51483
|
column: 10
|
|
51179
51484
|
}
|
|
51180
51485
|
}
|
|
@@ -51198,7 +51503,7 @@ function cov_h64dar2vv() {
|
|
|
51198
51503
|
column: 69
|
|
51199
51504
|
},
|
|
51200
51505
|
end: {
|
|
51201
|
-
line:
|
|
51506
|
+
line: 46,
|
|
51202
51507
|
column: 1
|
|
51203
51508
|
}
|
|
51204
51509
|
},
|
|
@@ -51208,25 +51513,25 @@ function cov_h64dar2vv() {
|
|
|
51208
51513
|
name: "(anonymous_1)",
|
|
51209
51514
|
decl: {
|
|
51210
51515
|
start: {
|
|
51211
|
-
line:
|
|
51516
|
+
line: 31,
|
|
51212
51517
|
column: 7
|
|
51213
51518
|
},
|
|
51214
51519
|
end: {
|
|
51215
|
-
line:
|
|
51520
|
+
line: 31,
|
|
51216
51521
|
column: 8
|
|
51217
51522
|
}
|
|
51218
51523
|
},
|
|
51219
51524
|
loc: {
|
|
51220
51525
|
start: {
|
|
51221
|
-
line:
|
|
51526
|
+
line: 32,
|
|
51222
51527
|
column: 8
|
|
51223
51528
|
},
|
|
51224
51529
|
end: {
|
|
51225
|
-
line:
|
|
51530
|
+
line: 42,
|
|
51226
51531
|
column: 10
|
|
51227
51532
|
}
|
|
51228
51533
|
},
|
|
51229
|
-
line:
|
|
51534
|
+
line: 32
|
|
51230
51535
|
}
|
|
51231
51536
|
},
|
|
51232
51537
|
branchMap: {
|
|
@@ -51257,167 +51562,167 @@ function cov_h64dar2vv() {
|
|
|
51257
51562
|
"1": {
|
|
51258
51563
|
loc: {
|
|
51259
51564
|
start: {
|
|
51260
|
-
line:
|
|
51565
|
+
line: 19,
|
|
51261
51566
|
column: 20
|
|
51262
51567
|
},
|
|
51263
51568
|
end: {
|
|
51264
|
-
line:
|
|
51569
|
+
line: 19,
|
|
51265
51570
|
column: 76
|
|
51266
51571
|
}
|
|
51267
51572
|
},
|
|
51268
51573
|
type: "cond-expr",
|
|
51269
51574
|
locations: [{
|
|
51270
51575
|
start: {
|
|
51271
|
-
line:
|
|
51576
|
+
line: 19,
|
|
51272
51577
|
column: 60
|
|
51273
51578
|
},
|
|
51274
51579
|
end: {
|
|
51275
|
-
line:
|
|
51580
|
+
line: 19,
|
|
51276
51581
|
column: 68
|
|
51277
51582
|
}
|
|
51278
51583
|
}, {
|
|
51279
51584
|
start: {
|
|
51280
|
-
line:
|
|
51585
|
+
line: 19,
|
|
51281
51586
|
column: 71
|
|
51282
51587
|
},
|
|
51283
51588
|
end: {
|
|
51284
|
-
line:
|
|
51589
|
+
line: 19,
|
|
51285
51590
|
column: 76
|
|
51286
51591
|
}
|
|
51287
51592
|
}],
|
|
51288
|
-
line:
|
|
51593
|
+
line: 19
|
|
51289
51594
|
},
|
|
51290
51595
|
"2": {
|
|
51291
51596
|
loc: {
|
|
51292
51597
|
start: {
|
|
51293
|
-
line:
|
|
51598
|
+
line: 23,
|
|
51294
51599
|
column: 12
|
|
51295
51600
|
},
|
|
51296
51601
|
end: {
|
|
51297
|
-
line:
|
|
51602
|
+
line: 23,
|
|
51298
51603
|
column: 26
|
|
51299
51604
|
}
|
|
51300
51605
|
},
|
|
51301
51606
|
type: "binary-expr",
|
|
51302
51607
|
locations: [{
|
|
51303
51608
|
start: {
|
|
51304
|
-
line:
|
|
51609
|
+
line: 23,
|
|
51305
51610
|
column: 12
|
|
51306
51611
|
},
|
|
51307
51612
|
end: {
|
|
51308
|
-
line:
|
|
51613
|
+
line: 23,
|
|
51309
51614
|
column: 16
|
|
51310
51615
|
}
|
|
51311
51616
|
}, {
|
|
51312
51617
|
start: {
|
|
51313
|
-
line:
|
|
51618
|
+
line: 23,
|
|
51314
51619
|
column: 20
|
|
51315
51620
|
},
|
|
51316
51621
|
end: {
|
|
51317
|
-
line:
|
|
51622
|
+
line: 23,
|
|
51318
51623
|
column: 26
|
|
51319
51624
|
}
|
|
51320
51625
|
}],
|
|
51321
|
-
line:
|
|
51626
|
+
line: 23
|
|
51322
51627
|
},
|
|
51323
51628
|
"3": {
|
|
51324
51629
|
loc: {
|
|
51325
51630
|
start: {
|
|
51326
|
-
line:
|
|
51631
|
+
line: 33,
|
|
51327
51632
|
column: 17
|
|
51328
51633
|
},
|
|
51329
51634
|
end: {
|
|
51330
|
-
line:
|
|
51635
|
+
line: 33,
|
|
51331
51636
|
column: 47
|
|
51332
51637
|
}
|
|
51333
51638
|
},
|
|
51334
51639
|
type: "cond-expr",
|
|
51335
51640
|
locations: [{
|
|
51336
51641
|
start: {
|
|
51337
|
-
line:
|
|
51642
|
+
line: 33,
|
|
51338
51643
|
column: 32
|
|
51339
51644
|
},
|
|
51340
51645
|
end: {
|
|
51341
|
-
line:
|
|
51646
|
+
line: 33,
|
|
51342
51647
|
column: 42
|
|
51343
51648
|
}
|
|
51344
51649
|
}, {
|
|
51345
51650
|
start: {
|
|
51346
|
-
line:
|
|
51651
|
+
line: 33,
|
|
51347
51652
|
column: 45
|
|
51348
51653
|
},
|
|
51349
51654
|
end: {
|
|
51350
|
-
line:
|
|
51655
|
+
line: 33,
|
|
51351
51656
|
column: 47
|
|
51352
51657
|
}
|
|
51353
51658
|
}],
|
|
51354
|
-
line:
|
|
51659
|
+
line: 33
|
|
51355
51660
|
},
|
|
51356
51661
|
"4": {
|
|
51357
51662
|
loc: {
|
|
51358
51663
|
start: {
|
|
51359
|
-
line:
|
|
51664
|
+
line: 36,
|
|
51360
51665
|
column: 18
|
|
51361
51666
|
},
|
|
51362
51667
|
end: {
|
|
51363
|
-
line:
|
|
51668
|
+
line: 36,
|
|
51364
51669
|
column: 42
|
|
51365
51670
|
}
|
|
51366
51671
|
},
|
|
51367
51672
|
type: "binary-expr",
|
|
51368
51673
|
locations: [{
|
|
51369
51674
|
start: {
|
|
51370
|
-
line:
|
|
51675
|
+
line: 36,
|
|
51371
51676
|
column: 18
|
|
51372
51677
|
},
|
|
51373
51678
|
end: {
|
|
51374
|
-
line:
|
|
51679
|
+
line: 36,
|
|
51375
51680
|
column: 32
|
|
51376
51681
|
}
|
|
51377
51682
|
}, {
|
|
51378
51683
|
start: {
|
|
51379
|
-
line:
|
|
51684
|
+
line: 36,
|
|
51380
51685
|
column: 36
|
|
51381
51686
|
},
|
|
51382
51687
|
end: {
|
|
51383
|
-
line:
|
|
51688
|
+
line: 36,
|
|
51384
51689
|
column: 42
|
|
51385
51690
|
}
|
|
51386
51691
|
}],
|
|
51387
|
-
line:
|
|
51692
|
+
line: 36
|
|
51388
51693
|
},
|
|
51389
51694
|
"5": {
|
|
51390
51695
|
loc: {
|
|
51391
51696
|
start: {
|
|
51392
|
-
line:
|
|
51697
|
+
line: 40,
|
|
51393
51698
|
column: 20
|
|
51394
51699
|
},
|
|
51395
51700
|
end: {
|
|
51396
|
-
line:
|
|
51701
|
+
line: 40,
|
|
51397
51702
|
column: 74
|
|
51398
51703
|
}
|
|
51399
51704
|
},
|
|
51400
51705
|
type: "binary-expr",
|
|
51401
51706
|
locations: [{
|
|
51402
51707
|
start: {
|
|
51403
|
-
line:
|
|
51708
|
+
line: 40,
|
|
51404
51709
|
column: 20
|
|
51405
51710
|
},
|
|
51406
51711
|
end: {
|
|
51407
|
-
line:
|
|
51712
|
+
line: 40,
|
|
51408
51713
|
column: 56
|
|
51409
51714
|
}
|
|
51410
51715
|
}, {
|
|
51411
51716
|
start: {
|
|
51412
|
-
line:
|
|
51717
|
+
line: 40,
|
|
51413
51718
|
column: 60
|
|
51414
51719
|
},
|
|
51415
51720
|
end: {
|
|
51416
|
-
line:
|
|
51721
|
+
line: 40,
|
|
51417
51722
|
column: 74
|
|
51418
51723
|
}
|
|
51419
51724
|
}],
|
|
51420
|
-
line:
|
|
51725
|
+
line: 40
|
|
51421
51726
|
}
|
|
51422
51727
|
},
|
|
51423
51728
|
s: {
|
|
@@ -51441,7 +51746,7 @@ function cov_h64dar2vv() {
|
|
|
51441
51746
|
"5": [0, 0]
|
|
51442
51747
|
},
|
|
51443
51748
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
51444
|
-
hash: "
|
|
51749
|
+
hash: "b7d64e55c2820e2556092d8ce02f6c9397255ab7"
|
|
51445
51750
|
};
|
|
51446
51751
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
51447
51752
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -51474,6 +51779,7 @@ var TextField = function TextField(_ref) {
|
|
|
51474
51779
|
prefix = _ref3.prefix,
|
|
51475
51780
|
_ref3$type = _ref3.type,
|
|
51476
51781
|
type = _ref3$type === void 0 ? (cov_h64dar2vv().b[0][0]++, "text") : _ref3$type,
|
|
51782
|
+
onKeyDown = _ref3.onKeyDown,
|
|
51477
51783
|
otherProps = _ref3.otherProps;
|
|
51478
51784
|
var Component = (cov_h64dar2vv().s[3]++, kind === QUESTION_KIND.TEXTAREA.value ? (cov_h64dar2vv().b[1][0]++, Textarea$1) : (cov_h64dar2vv().b[1][1]++, Input$2));
|
|
51479
51785
|
cov_h64dar2vv().s[4]++;
|
|
@@ -51499,7 +51805,8 @@ var TextField = function TextField(_ref) {
|
|
|
51499
51805
|
required: isRequired,
|
|
51500
51806
|
type: type
|
|
51501
51807
|
}, field, {
|
|
51502
|
-
onChange: (_ref5 = (cov_h64dar2vv().b[5][0]++, otherProps === null || otherProps === void 0 ? void 0 : otherProps.onChange(field.onChange))) !== null && _ref5 !== void 0 ? _ref5 : (cov_h64dar2vv().b[5][1]++, field.onChange)
|
|
51808
|
+
onChange: (_ref5 = (cov_h64dar2vv().b[5][0]++, otherProps === null || otherProps === void 0 ? void 0 : otherProps.onChange(field.onChange))) !== null && _ref5 !== void 0 ? _ref5 : (cov_h64dar2vv().b[5][1]++, field.onChange),
|
|
51809
|
+
onKeyDown: onKeyDown
|
|
51503
51810
|
}));
|
|
51504
51811
|
});
|
|
51505
51812
|
};
|
|
@@ -51507,7 +51814,7 @@ var TextField = function TextField(_ref) {
|
|
|
51507
51814
|
var _ref2;
|
|
51508
51815
|
function cov_1cenqfav07() {
|
|
51509
51816
|
var path = "/home/runner/work/neeto-form-frontend/neeto-form-frontend/src/components/ExternalForm/Fields/constants.jsx";
|
|
51510
|
-
var hash = "
|
|
51817
|
+
var hash = "0af4d5e3c7cc4a9d26f13aaafeeba9bad2171ebe";
|
|
51511
51818
|
var global = new Function("return this")();
|
|
51512
51819
|
var gcv = "__coverage__";
|
|
51513
51820
|
var coverageData = {
|
|
@@ -51519,17 +51826,17 @@ function cov_1cenqfav07() {
|
|
|
51519
51826
|
column: 41
|
|
51520
51827
|
},
|
|
51521
51828
|
end: {
|
|
51522
|
-
line:
|
|
51829
|
+
line: 40,
|
|
51523
51830
|
column: 1
|
|
51524
51831
|
}
|
|
51525
51832
|
},
|
|
51526
51833
|
"1": {
|
|
51527
51834
|
start: {
|
|
51528
|
-
line:
|
|
51835
|
+
line: 32,
|
|
51529
51836
|
column: 4
|
|
51530
51837
|
},
|
|
51531
51838
|
end: {
|
|
51532
|
-
line:
|
|
51839
|
+
line: 32,
|
|
51533
51840
|
column: 46
|
|
51534
51841
|
}
|
|
51535
51842
|
}
|
|
@@ -51539,25 +51846,25 @@ function cov_1cenqfav07() {
|
|
|
51539
51846
|
name: "(anonymous_0)",
|
|
51540
51847
|
decl: {
|
|
51541
51848
|
start: {
|
|
51542
|
-
line:
|
|
51849
|
+
line: 31,
|
|
51543
51850
|
column: 35
|
|
51544
51851
|
},
|
|
51545
51852
|
end: {
|
|
51546
|
-
line:
|
|
51853
|
+
line: 31,
|
|
51547
51854
|
column: 36
|
|
51548
51855
|
}
|
|
51549
51856
|
},
|
|
51550
51857
|
loc: {
|
|
51551
51858
|
start: {
|
|
51552
|
-
line:
|
|
51859
|
+
line: 32,
|
|
51553
51860
|
column: 4
|
|
51554
51861
|
},
|
|
51555
51862
|
end: {
|
|
51556
|
-
line:
|
|
51863
|
+
line: 32,
|
|
51557
51864
|
column: 46
|
|
51558
51865
|
}
|
|
51559
51866
|
},
|
|
51560
|
-
line:
|
|
51867
|
+
line: 32
|
|
51561
51868
|
}
|
|
51562
51869
|
},
|
|
51563
51870
|
branchMap: {},
|
|
@@ -51570,7 +51877,7 @@ function cov_1cenqfav07() {
|
|
|
51570
51877
|
},
|
|
51571
51878
|
b: {},
|
|
51572
51879
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
51573
|
-
hash: "
|
|
51880
|
+
hash: "0af4d5e3c7cc4a9d26f13aaafeeba9bad2171ebe"
|
|
51574
51881
|
};
|
|
51575
51882
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
51576
51883
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -51586,7 +51893,7 @@ function cov_1cenqfav07() {
|
|
|
51586
51893
|
return actualCoverage;
|
|
51587
51894
|
}
|
|
51588
51895
|
cov_1cenqfav07();
|
|
51589
|
-
var QUESTION_TO_COMPONENT_MAP = (cov_1cenqfav07().s[0]++, (_ref2 = {}, _defineProperty$7(_ref2, QUESTION_KIND.TEXT.value, TextField), _defineProperty$7(_ref2, QUESTION_KIND.NAME.value, TextField), _defineProperty$7(_ref2, QUESTION_KIND.EMAIL.value, TextField), _defineProperty$7(_ref2, QUESTION_KIND.PHONE.value, PhoneNumberField), _defineProperty$7(_ref2, QUESTION_KIND.QUESTION.value, TextField), _defineProperty$7(_ref2, QUESTION_KIND.TEXTAREA.value, TextField), _defineProperty$7(_ref2, QUESTION_KIND.CHECKBOX.value, OptionsField), _defineProperty$7(_ref2, QUESTION_KIND.RADIO.value, OptionsField), _defineProperty$7(_ref2, QUESTION_KIND.DROPDOWN.value, OptionsField), _defineProperty$7(_ref2, QUESTION_KIND.RATING.value, RatingField), _defineProperty$7(_ref2, QUESTION_KIND.PARAGRAPH.value, function (_ref) {
|
|
51896
|
+
var QUESTION_TO_COMPONENT_MAP = (cov_1cenqfav07().s[0]++, (_ref2 = {}, _defineProperty$7(_ref2, QUESTION_KIND.TEXT.value, TextField), _defineProperty$7(_ref2, QUESTION_KIND.NAME.value, TextField), _defineProperty$7(_ref2, QUESTION_KIND.EMAIL.value, TextField), _defineProperty$7(_ref2, QUESTION_KIND.INTEGER.value, TextField), _defineProperty$7(_ref2, QUESTION_KIND.DECIMAL.value, TextField), _defineProperty$7(_ref2, QUESTION_KIND.PHONE.value, PhoneNumberField), _defineProperty$7(_ref2, QUESTION_KIND.QUESTION.value, TextField), _defineProperty$7(_ref2, QUESTION_KIND.TEXTAREA.value, TextField), _defineProperty$7(_ref2, QUESTION_KIND.CHECKBOX.value, OptionsField), _defineProperty$7(_ref2, QUESTION_KIND.RADIO.value, OptionsField), _defineProperty$7(_ref2, QUESTION_KIND.DROPDOWN.value, OptionsField), _defineProperty$7(_ref2, QUESTION_KIND.RATING.value, RatingField), _defineProperty$7(_ref2, QUESTION_KIND.PARAGRAPH.value, function (_ref) {
|
|
51590
51897
|
var question = _ref.question;
|
|
51591
51898
|
cov_1cenqfav07().f[0]++;
|
|
51592
51899
|
cov_1cenqfav07().s[1]++;
|