@redneckz/wildless-cms-uni-blocks 0.14.280 → 0.14.281
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/bin/migration-scripts/0.14.280.js +21 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +7 -4
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +27 -1
- package/bundle/model/LinkProps.d.ts +3 -3
- package/dist/components/ApplicationFormCustom/AddressBranchField.js +1 -1
- package/dist/components/ApplicationFormCustom/AddressBranchField.js.map +1 -1
- package/dist/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +27 -1
- package/dist/components/ApplicationFormCustom/VedField.js +1 -1
- package/dist/components/ApplicationFormCustom/VedField.js.map +1 -1
- package/dist/components/ApplicationFormCustom/getInitialFormState.js +4 -2
- package/dist/components/ApplicationFormCustom/getInitialFormState.js.map +1 -1
- package/dist/model/LinkProps.d.ts +3 -3
- package/lib/common.css +1 -1
- package/lib/components/ApplicationFormCustom/AddressBranchField.js +1 -1
- package/lib/components/ApplicationFormCustom/AddressBranchField.js.map +1 -1
- package/lib/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +27 -1
- package/lib/components/ApplicationFormCustom/VedField.js +1 -1
- package/lib/components/ApplicationFormCustom/VedField.js.map +1 -1
- package/lib/components/ApplicationFormCustom/getInitialFormState.js +4 -2
- package/lib/components/ApplicationFormCustom/getInitialFormState.js.map +1 -1
- package/lib/model/LinkProps.d.ts +3 -3
- package/mobile/bundle/bundle.umd.js +7 -4
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +27 -1
- package/mobile/bundle/model/LinkProps.d.ts +3 -3
- package/mobile/dist/components/ApplicationFormCustom/AddressBranchField.js +1 -1
- package/mobile/dist/components/ApplicationFormCustom/AddressBranchField.js.map +1 -1
- package/mobile/dist/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +27 -1
- package/mobile/dist/components/ApplicationFormCustom/VedField.js +1 -1
- package/mobile/dist/components/ApplicationFormCustom/VedField.js.map +1 -1
- package/mobile/dist/components/ApplicationFormCustom/getInitialFormState.js +4 -2
- package/mobile/dist/components/ApplicationFormCustom/getInitialFormState.js.map +1 -1
- package/mobile/dist/model/LinkProps.d.ts +3 -3
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationFormCustom/AddressBranchField.js +1 -1
- package/mobile/lib/components/ApplicationFormCustom/AddressBranchField.js.map +1 -1
- package/mobile/lib/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +27 -1
- package/mobile/lib/components/ApplicationFormCustom/VedField.js +1 -1
- package/mobile/lib/components/ApplicationFormCustom/VedField.js.map +1 -1
- package/mobile/lib/components/ApplicationFormCustom/getInitialFormState.js +4 -2
- package/mobile/lib/components/ApplicationFormCustom/getInitialFormState.js.map +1 -1
- package/mobile/lib/model/LinkProps.d.ts +3 -3
- package/mobile/src/components/ApplicationFormCustom/AddressBranchField.tsx +2 -2
- package/mobile/src/components/ApplicationFormCustom/ApplicationFormCustom.example.json +142 -64
- package/mobile/src/components/ApplicationFormCustom/ApplicationFormCustomContent.ts +31 -1
- package/mobile/src/components/ApplicationFormCustom/VedField.tsx +1 -1
- package/mobile/src/components/ApplicationFormCustom/getInitialFormState.tsx +5 -2
- package/mobile/src/model/LinkProps.ts +3 -3
- package/package.json +1 -1
- package/src/components/ApplicationFormCustom/AddressBranchField.tsx +2 -2
- package/src/components/ApplicationFormCustom/ApplicationFormCustom.example.json +142 -64
- package/src/components/ApplicationFormCustom/ApplicationFormCustom.fixture.tsx +159 -101
- package/src/components/ApplicationFormCustom/ApplicationFormCustomContent.ts +31 -1
- package/src/components/ApplicationFormCustom/VedField.tsx +1 -1
- package/src/components/ApplicationFormCustom/getInitialFormState.tsx +5 -2
- package/src/model/LinkProps.ts +3 -3
|
@@ -13,22 +13,22 @@
|
|
|
13
13
|
"title": "Вид эквайринга и регион",
|
|
14
14
|
"columns": 2,
|
|
15
15
|
"inputs": [
|
|
16
|
-
{ "name": "acquiringType", "required": true },
|
|
17
|
-
{ "name": "region", "required": true }
|
|
16
|
+
{ "fieldType": "common", "name": "acquiringType", "required": true },
|
|
17
|
+
{ "fieldType": "common", "name": "region", "required": true }
|
|
18
18
|
]
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
"title": "Данные организации",
|
|
22
22
|
"columns": 2,
|
|
23
23
|
"inputs": [
|
|
24
|
-
{ "name": "fullName", "required": true },
|
|
25
|
-
{ "name": "inn", "required": true },
|
|
26
|
-
{ "name": "name", "required": true },
|
|
27
|
-
{ "name": "phone", "required": true }
|
|
24
|
+
{ "fieldType": "common", "name": "fullName", "required": true },
|
|
25
|
+
{ "fieldType": "common", "name": "inn", "required": true },
|
|
26
|
+
{ "fieldType": "common", "name": "name", "required": true },
|
|
27
|
+
{ "fieldType": "common", "name": "phone", "required": true }
|
|
28
28
|
]
|
|
29
29
|
},
|
|
30
|
-
{ "inputs": [{ "name": "onlineCheckout" }] },
|
|
31
|
-
{ "inputs": [{ "name": "posTerminal" }] }
|
|
30
|
+
{ "inputs": [{ "fieldType": "common", "name": "onlineCheckout" }] },
|
|
31
|
+
{ "inputs": [{ "fieldType": "common", "name": "posTerminal" }] }
|
|
32
32
|
],
|
|
33
33
|
"button": {
|
|
34
34
|
"text": "Отправить заявку",
|
|
@@ -56,10 +56,10 @@
|
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
58
|
"inputs": [
|
|
59
|
-
{ "name": "name", "required": true },
|
|
60
|
-
{ "name": "email", "required": true },
|
|
61
|
-
{ "name": "consentToReceiveMaterials" },
|
|
62
|
-
{ "name": "consentDataProcessing", "required": true }
|
|
59
|
+
{ "fieldType": "common", "name": "name", "required": true },
|
|
60
|
+
{ "fieldType": "common", "name": "email", "required": true },
|
|
61
|
+
{ "fieldType": "common", "name": "consentToReceiveMaterials" },
|
|
62
|
+
{ "fieldType": "common", "name": "consentDataProcessing", "required": true }
|
|
63
63
|
]
|
|
64
64
|
}
|
|
65
65
|
],
|
|
@@ -86,32 +86,40 @@
|
|
|
86
86
|
{
|
|
87
87
|
"inputs": [
|
|
88
88
|
{
|
|
89
|
+
"fieldType": "common",
|
|
89
90
|
"name": "surname",
|
|
90
91
|
"required": true
|
|
91
92
|
},
|
|
92
93
|
{
|
|
94
|
+
"fieldType": "common",
|
|
93
95
|
"name": "name",
|
|
94
96
|
"required": true
|
|
95
97
|
},
|
|
96
98
|
{
|
|
99
|
+
"fieldType": "common",
|
|
97
100
|
"name": "middleName"
|
|
98
101
|
},
|
|
99
102
|
{
|
|
103
|
+
"fieldType": "common",
|
|
100
104
|
"name": "phone",
|
|
101
105
|
"required": true
|
|
102
106
|
},
|
|
103
107
|
{
|
|
108
|
+
"fieldType": "common",
|
|
104
109
|
"name": "birthday",
|
|
105
110
|
"required": true
|
|
106
111
|
},
|
|
107
112
|
{
|
|
113
|
+
"fieldType": "common",
|
|
108
114
|
"name": "isClient"
|
|
109
115
|
},
|
|
110
116
|
{
|
|
117
|
+
"fieldType": "common",
|
|
111
118
|
"name": "comment",
|
|
112
119
|
"required": true
|
|
113
120
|
},
|
|
114
121
|
{
|
|
122
|
+
"fieldType": "common",
|
|
115
123
|
"name": "consentDataProcessing",
|
|
116
124
|
"required": true
|
|
117
125
|
}
|
|
@@ -138,23 +146,27 @@
|
|
|
138
146
|
"typeForm": "BCRD",
|
|
139
147
|
"endpoint": "sendcorporatelead",
|
|
140
148
|
"sections": [
|
|
141
|
-
{ "inputs": [{ "name": "region", "required": true }] },
|
|
149
|
+
{ "inputs": [{ "fieldType": "common", "name": "region", "required": true }] },
|
|
142
150
|
{
|
|
143
151
|
"columns": 2,
|
|
144
152
|
"inputs": [
|
|
145
153
|
{
|
|
154
|
+
"fieldType": "common",
|
|
146
155
|
"name": "name",
|
|
147
156
|
"required": true
|
|
148
157
|
},
|
|
149
158
|
{
|
|
159
|
+
"fieldType": "common",
|
|
150
160
|
"name": "phone",
|
|
151
161
|
"required": true
|
|
152
162
|
},
|
|
153
163
|
{
|
|
164
|
+
"fieldType": "common",
|
|
154
165
|
"name": "inn",
|
|
155
166
|
"required": true
|
|
156
167
|
},
|
|
157
168
|
{
|
|
169
|
+
"fieldType": "common",
|
|
158
170
|
"name": "email",
|
|
159
171
|
"required": true
|
|
160
172
|
}
|
|
@@ -181,17 +193,27 @@
|
|
|
181
193
|
"typeForm": "BROK",
|
|
182
194
|
"endpoint": "sendcorporatelead",
|
|
183
195
|
"sections": [
|
|
184
|
-
{ "inputs": [{ "name": "region", "required": true }] },
|
|
196
|
+
{ "inputs": [{ "fieldType": "common", "name": "region", "required": true }] },
|
|
185
197
|
{
|
|
186
198
|
"columns": 2,
|
|
187
199
|
"inputs": [
|
|
188
|
-
{
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
200
|
+
{
|
|
201
|
+
"fieldType": "common",
|
|
202
|
+
"name": "fullName",
|
|
203
|
+
"required": true,
|
|
204
|
+
"label": "Наименование организации"
|
|
205
|
+
},
|
|
206
|
+
{ "fieldType": "common", "name": "inn", "required": true },
|
|
207
|
+
{ "fieldType": "common", "name": "name", "required": true },
|
|
208
|
+
{ "fieldType": "common", "name": "phone", "required": true }
|
|
192
209
|
]
|
|
193
210
|
},
|
|
194
|
-
{
|
|
211
|
+
{
|
|
212
|
+
"inputs": [
|
|
213
|
+
{ "fieldType": "common", "name": "partnerComments" },
|
|
214
|
+
{ "fieldType": "common", "name": "isClient" }
|
|
215
|
+
]
|
|
216
|
+
}
|
|
195
217
|
],
|
|
196
218
|
"button": {
|
|
197
219
|
"text": "Отправить заявку",
|
|
@@ -216,17 +238,21 @@
|
|
|
216
238
|
{
|
|
217
239
|
"inputs": [
|
|
218
240
|
{
|
|
241
|
+
"fieldType": "common",
|
|
219
242
|
"name": "name",
|
|
220
243
|
"required": true
|
|
221
244
|
},
|
|
222
245
|
{
|
|
246
|
+
"fieldType": "common",
|
|
223
247
|
"name": "phone",
|
|
224
248
|
"required": true
|
|
225
249
|
},
|
|
226
250
|
{
|
|
251
|
+
"fieldType": "common",
|
|
227
252
|
"name": "isClient"
|
|
228
253
|
},
|
|
229
254
|
{
|
|
255
|
+
"fieldType": "common",
|
|
230
256
|
"name": "consentDataProcessing",
|
|
231
257
|
"required": true
|
|
232
258
|
}
|
|
@@ -255,20 +281,26 @@
|
|
|
255
281
|
"sections": [
|
|
256
282
|
{
|
|
257
283
|
"inputs": [
|
|
258
|
-
{
|
|
284
|
+
{
|
|
285
|
+
"fieldType": "common",
|
|
286
|
+
"name": "fullName",
|
|
287
|
+
"required": true,
|
|
288
|
+
"label": "Наименование организации"
|
|
289
|
+
}
|
|
259
290
|
]
|
|
260
291
|
},
|
|
261
292
|
{
|
|
262
293
|
"columns": 2,
|
|
263
294
|
"inputs": [
|
|
264
|
-
{ "name": "region", "required": true },
|
|
295
|
+
{ "fieldType": "common", "name": "region", "required": true },
|
|
265
296
|
{
|
|
297
|
+
"fieldType": "common",
|
|
266
298
|
"name": "collectionCount",
|
|
267
299
|
"required": true,
|
|
268
300
|
"label": "Количество объектов инкассации"
|
|
269
301
|
},
|
|
270
|
-
{ "name": "phone", "required": true },
|
|
271
|
-
{ "name": "email", "required": true }
|
|
302
|
+
{ "fieldType": "common", "name": "phone", "required": true },
|
|
303
|
+
{ "fieldType": "common", "name": "email", "required": true }
|
|
272
304
|
]
|
|
273
305
|
}
|
|
274
306
|
],
|
|
@@ -295,26 +327,39 @@
|
|
|
295
327
|
{
|
|
296
328
|
"title": "Параметры кредита",
|
|
297
329
|
"columns": 2,
|
|
298
|
-
"inputs": [
|
|
330
|
+
"inputs": [
|
|
331
|
+
{ "fieldType": "common", "name": "amount" },
|
|
332
|
+
{ "fieldType": "common", "name": "term" }
|
|
333
|
+
]
|
|
299
334
|
},
|
|
300
335
|
{
|
|
301
336
|
"title": "Данные организации",
|
|
302
337
|
"columns": 2,
|
|
303
338
|
"inputs": [
|
|
304
|
-
{
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
339
|
+
{
|
|
340
|
+
"fieldType": "common",
|
|
341
|
+
"name": "fullName",
|
|
342
|
+
"required": true,
|
|
343
|
+
"label": "Наименование организации"
|
|
344
|
+
},
|
|
345
|
+
{ "fieldType": "common", "name": "annualRevenue", "required": true },
|
|
346
|
+
{ "fieldType": "common", "name": "inn", "required": true },
|
|
347
|
+
{
|
|
348
|
+
"fieldType": "common",
|
|
349
|
+
"name": "name",
|
|
350
|
+
"required": true,
|
|
351
|
+
"label": "Контактное лицо"
|
|
352
|
+
},
|
|
353
|
+
{ "fieldType": "common", "name": "phone", "required": true },
|
|
354
|
+
{ "fieldType": "common", "name": "email", "required": true }
|
|
310
355
|
]
|
|
311
356
|
},
|
|
312
357
|
{
|
|
313
358
|
"title": "Офис банка",
|
|
314
359
|
"columns": 2,
|
|
315
360
|
"inputs": [
|
|
316
|
-
{ "name": "region", "required": true },
|
|
317
|
-
{ "name": "addressBranch", "required": true }
|
|
361
|
+
{ "fieldType": "common", "name": "region", "required": true },
|
|
362
|
+
{ "fieldType": "common", "name": "addressBranch", "required": true }
|
|
318
363
|
]
|
|
319
364
|
}
|
|
320
365
|
],
|
|
@@ -341,32 +386,40 @@
|
|
|
341
386
|
{
|
|
342
387
|
"inputs": [
|
|
343
388
|
{
|
|
389
|
+
"fieldType": "common",
|
|
344
390
|
"name": "surname",
|
|
345
391
|
"required": true
|
|
346
392
|
},
|
|
347
393
|
{
|
|
394
|
+
"fieldType": "common",
|
|
348
395
|
"name": "name",
|
|
349
396
|
"required": true
|
|
350
397
|
},
|
|
351
398
|
{
|
|
399
|
+
"fieldType": "common",
|
|
352
400
|
"name": "middleName"
|
|
353
401
|
},
|
|
354
402
|
{
|
|
403
|
+
"fieldType": "common",
|
|
355
404
|
"name": "phone",
|
|
356
405
|
"required": true
|
|
357
406
|
},
|
|
358
407
|
{
|
|
408
|
+
"fieldType": "common",
|
|
359
409
|
"name": "region",
|
|
360
410
|
"required": true
|
|
361
411
|
},
|
|
362
412
|
{
|
|
413
|
+
"fieldType": "common",
|
|
363
414
|
"name": "email"
|
|
364
415
|
},
|
|
365
416
|
{
|
|
417
|
+
"fieldType": "common",
|
|
366
418
|
"name": "comment",
|
|
367
419
|
"required": true
|
|
368
420
|
},
|
|
369
421
|
{
|
|
422
|
+
"fieldType": "common",
|
|
370
423
|
"name": "consentDataProcessing",
|
|
371
424
|
"required": true
|
|
372
425
|
}
|
|
@@ -396,14 +449,17 @@
|
|
|
396
449
|
{
|
|
397
450
|
"inputs": [
|
|
398
451
|
{
|
|
452
|
+
"fieldType": "common",
|
|
399
453
|
"name": "name",
|
|
400
454
|
"required": true
|
|
401
455
|
},
|
|
402
456
|
{
|
|
457
|
+
"fieldType": "common",
|
|
403
458
|
"name": "phone",
|
|
404
459
|
"required": true
|
|
405
460
|
},
|
|
406
461
|
{
|
|
462
|
+
"fieldType": "common",
|
|
407
463
|
"name": "consentDataProcessing",
|
|
408
464
|
"required": true
|
|
409
465
|
}
|
|
@@ -432,16 +488,18 @@
|
|
|
432
488
|
"sections": [
|
|
433
489
|
{
|
|
434
490
|
"inputs": [
|
|
435
|
-
{ "name": "feedbackType", "required": true },
|
|
491
|
+
{ "fieldType": "common", "name": "feedbackType", "required": true },
|
|
436
492
|
{
|
|
493
|
+
"fieldType": "common",
|
|
437
494
|
"name": "serviceDirection",
|
|
438
495
|
"condition": {
|
|
439
496
|
"name": "feedbackType",
|
|
440
497
|
"values": ["FEEDBACK_QS"]
|
|
441
498
|
}
|
|
442
499
|
},
|
|
443
|
-
{ "name": "region", "required": true },
|
|
500
|
+
{ "fieldType": "common", "name": "region", "required": true },
|
|
444
501
|
{
|
|
502
|
+
"fieldType": "common",
|
|
445
503
|
"name": "addressBranch",
|
|
446
504
|
"required": true,
|
|
447
505
|
"condition": {
|
|
@@ -449,20 +507,23 @@
|
|
|
449
507
|
"values": ["FEEDBACK_QS"]
|
|
450
508
|
}
|
|
451
509
|
},
|
|
452
|
-
{ "name": "surname", "required": true },
|
|
453
|
-
{ "name": "name", "required": true },
|
|
454
|
-
{ "name": "middleName" },
|
|
510
|
+
{ "fieldType": "common", "name": "surname", "required": true },
|
|
511
|
+
{ "fieldType": "common", "name": "name", "required": true },
|
|
512
|
+
{ "fieldType": "common", "name": "middleName" },
|
|
455
513
|
{
|
|
514
|
+
"fieldType": "common",
|
|
456
515
|
"name": "inn",
|
|
457
516
|
"required": true,
|
|
458
517
|
"condition": { "name": "serviceDirection", "values": ["Юридическое лицо / ИП"] }
|
|
459
518
|
},
|
|
460
519
|
{
|
|
520
|
+
"fieldType": "common",
|
|
461
521
|
"name": "fullName",
|
|
462
522
|
"label": "Наименование организации",
|
|
463
523
|
"condition": { "name": "serviceDirection", "values": ["Юридическое лицо / ИП"] }
|
|
464
524
|
},
|
|
465
525
|
{
|
|
526
|
+
"fieldType": "common",
|
|
466
527
|
"name": "birthday",
|
|
467
528
|
"required": true,
|
|
468
529
|
"condition": {
|
|
@@ -470,9 +531,10 @@
|
|
|
470
531
|
"values": ["FEEDBACK"]
|
|
471
532
|
}
|
|
472
533
|
},
|
|
473
|
-
{ "name": "feedbackMethod", "required": true },
|
|
474
|
-
{ "name": "phone", "required": true },
|
|
534
|
+
{ "fieldType": "common", "name": "feedbackMethod", "required": true },
|
|
535
|
+
{ "fieldType": "common", "name": "phone", "required": true },
|
|
475
536
|
{
|
|
537
|
+
"fieldType": "common",
|
|
476
538
|
"name": "secondaryPhone",
|
|
477
539
|
"required": true,
|
|
478
540
|
"condition": {
|
|
@@ -480,8 +542,9 @@
|
|
|
480
542
|
"values": ["FEEDBACK_QS"]
|
|
481
543
|
}
|
|
482
544
|
},
|
|
483
|
-
{ "name": "email", "required": true },
|
|
545
|
+
{ "fieldType": "common", "name": "email", "required": true },
|
|
484
546
|
{
|
|
547
|
+
"fieldType": "common",
|
|
485
548
|
"name": "bankEmpolee",
|
|
486
549
|
"condition": {
|
|
487
550
|
"name": "feedbackType",
|
|
@@ -489,14 +552,15 @@
|
|
|
489
552
|
}
|
|
490
553
|
},
|
|
491
554
|
{
|
|
555
|
+
"fieldType": "common",
|
|
492
556
|
"name": "applicationDate",
|
|
493
557
|
"condition": {
|
|
494
558
|
"name": "feedbackType",
|
|
495
559
|
"values": ["FEEDBACK_QS"]
|
|
496
560
|
}
|
|
497
561
|
},
|
|
498
|
-
{ "name": "comment", "required": true },
|
|
499
|
-
{ "name": "consentDataProcessing", "required": true }
|
|
562
|
+
{ "fieldType": "common", "name": "comment", "required": true },
|
|
563
|
+
{ "fieldType": "common", "name": "consentDataProcessing", "required": true }
|
|
500
564
|
]
|
|
501
565
|
}
|
|
502
566
|
],
|
|
@@ -523,18 +587,22 @@
|
|
|
523
587
|
{
|
|
524
588
|
"inputs": [
|
|
525
589
|
{
|
|
590
|
+
"fieldType": "common",
|
|
526
591
|
"name": "name",
|
|
527
592
|
"required": true
|
|
528
593
|
},
|
|
529
594
|
{
|
|
595
|
+
"fieldType": "common",
|
|
530
596
|
"name": "region",
|
|
531
597
|
"required": true
|
|
532
598
|
},
|
|
533
599
|
{
|
|
600
|
+
"fieldType": "common",
|
|
534
601
|
"name": "phone",
|
|
535
602
|
"required": true
|
|
536
603
|
},
|
|
537
604
|
{
|
|
605
|
+
"fieldType": "common",
|
|
538
606
|
"name": "consentDataProcessing",
|
|
539
607
|
"required": true
|
|
540
608
|
}
|
|
@@ -564,13 +632,13 @@
|
|
|
564
632
|
{
|
|
565
633
|
"columns": 2,
|
|
566
634
|
"inputs": [
|
|
567
|
-
{ "name": "surname", "required": true },
|
|
568
|
-
{ "name": "name", "required": true },
|
|
569
|
-
{ "name": "middleName" },
|
|
570
|
-
{ "name": "birthday", "required": true },
|
|
571
|
-
{ "name": "phone", "required": true },
|
|
572
|
-
{ "name": "email", "required": true },
|
|
573
|
-
{ "name": "consentDataProcessing" }
|
|
635
|
+
{ "fieldType": "common", "name": "surname", "required": true },
|
|
636
|
+
{ "fieldType": "common", "name": "name", "required": true },
|
|
637
|
+
{ "fieldType": "common", "name": "middleName" },
|
|
638
|
+
{ "fieldType": "common", "name": "birthday", "required": true },
|
|
639
|
+
{ "fieldType": "common", "name": "phone", "required": true },
|
|
640
|
+
{ "fieldType": "common", "name": "email", "required": true },
|
|
641
|
+
{ "fieldType": "common", "name": "consentDataProcessing" }
|
|
574
642
|
]
|
|
575
643
|
}
|
|
576
644
|
],
|
|
@@ -598,24 +666,24 @@
|
|
|
598
666
|
"title": "Ваши данные",
|
|
599
667
|
"columns": 2,
|
|
600
668
|
"inputs": [
|
|
601
|
-
{ "name": "surname", "required": true },
|
|
602
|
-
{ "name": "name", "required": true },
|
|
603
|
-
{ "name": "middleName" },
|
|
604
|
-
{ "name": "phone", "required": true },
|
|
605
|
-
{ "name": "email" },
|
|
606
|
-
{ "name": "serviceType", "required": true }
|
|
669
|
+
{ "fieldType": "common", "name": "surname", "required": true },
|
|
670
|
+
{ "fieldType": "common", "name": "name", "required": true },
|
|
671
|
+
{ "fieldType": "common", "name": "middleName" },
|
|
672
|
+
{ "fieldType": "common", "name": "phone", "required": true },
|
|
673
|
+
{ "fieldType": "common", "name": "email" },
|
|
674
|
+
{ "fieldType": "common", "name": "serviceType", "required": true }
|
|
607
675
|
]
|
|
608
676
|
},
|
|
609
677
|
{
|
|
610
678
|
"title": "Офис банка",
|
|
611
679
|
"columns": 2,
|
|
612
680
|
"inputs": [
|
|
613
|
-
{ "name": "region", "required": true },
|
|
614
|
-
{ "name": "addressBranch", "required": true }
|
|
681
|
+
{ "fieldType": "common", "name": "region", "required": true },
|
|
682
|
+
{ "fieldType": "common", "name": "addressBranch", "required": true }
|
|
615
683
|
]
|
|
616
684
|
},
|
|
617
|
-
{ "inputs": [{ "name": "comment" }] },
|
|
618
|
-
{ "inputs": [{ "name": "consentDataProcessing" }] }
|
|
685
|
+
{ "inputs": [{ "fieldType": "common", "name": "comment" }] },
|
|
686
|
+
{ "inputs": [{ "fieldType": "common", "name": "consentDataProcessing" }] }
|
|
619
687
|
],
|
|
620
688
|
"button": {
|
|
621
689
|
"text": "Отправить заявку",
|
|
@@ -638,12 +706,15 @@
|
|
|
638
706
|
"endpoint": "sendcorporatelead",
|
|
639
707
|
"sections": [
|
|
640
708
|
{
|
|
641
|
-
"inputs": [
|
|
709
|
+
"inputs": [
|
|
710
|
+
{ "fieldType": "ved", "name": "vedTypes", "defaultValue": "currencyControl" }
|
|
711
|
+
]
|
|
642
712
|
},
|
|
643
713
|
{ "title": "Данные организации", "inputs": [] },
|
|
644
714
|
{
|
|
645
715
|
"inputs": [
|
|
646
716
|
{
|
|
717
|
+
"fieldType": "common",
|
|
647
718
|
"name": "region",
|
|
648
719
|
"required": true,
|
|
649
720
|
"condition": { "name": "vedTypes", "values": ["currencyControl"] }
|
|
@@ -654,6 +725,7 @@
|
|
|
654
725
|
"columns": 2,
|
|
655
726
|
"inputs": [
|
|
656
727
|
{
|
|
728
|
+
"fieldType": "common",
|
|
657
729
|
"name": "inn",
|
|
658
730
|
"required": true,
|
|
659
731
|
"condition": {
|
|
@@ -661,10 +733,16 @@
|
|
|
661
733
|
"values": ["currencyControl"]
|
|
662
734
|
}
|
|
663
735
|
},
|
|
664
|
-
{ "name": "fullName", "required": true, "label": "Наименование организации" },
|
|
665
|
-
{ "name": "name", "required": true, "label": "ФИО" },
|
|
666
|
-
{ "name": "phone", "required": true },
|
|
667
736
|
{
|
|
737
|
+
"fieldType": "common",
|
|
738
|
+
"name": "fullName",
|
|
739
|
+
"required": true,
|
|
740
|
+
"label": "Наименование организации"
|
|
741
|
+
},
|
|
742
|
+
{ "fieldType": "common", "name": "name", "required": true, "label": "ФИО" },
|
|
743
|
+
{ "fieldType": "common", "name": "phone", "required": true },
|
|
744
|
+
{
|
|
745
|
+
"fieldType": "common",
|
|
668
746
|
"name": "email",
|
|
669
747
|
"required": true,
|
|
670
748
|
"condition": {
|
|
@@ -675,7 +753,7 @@
|
|
|
675
753
|
]
|
|
676
754
|
},
|
|
677
755
|
{
|
|
678
|
-
"inputs": [{ "name": "partnerComments", "label": "Обращение" }]
|
|
756
|
+
"inputs": [{ "fieldType": "common", "name": "partnerComments", "label": "Обращение" }]
|
|
679
757
|
}
|
|
680
758
|
],
|
|
681
759
|
"button": {
|
|
@@ -55,18 +55,48 @@ export type NameFieldDef =
|
|
|
55
55
|
| 'consentDataProcessing';
|
|
56
56
|
|
|
57
57
|
export type ConditionFieldProps = {
|
|
58
|
+
/** @title Условия отображения полей */
|
|
58
59
|
condition?: {
|
|
59
60
|
name: NameFieldDef;
|
|
61
|
+
/** @title Значения при которых отображаются поля */
|
|
60
62
|
values: string[];
|
|
61
63
|
};
|
|
62
64
|
};
|
|
63
65
|
|
|
64
|
-
export type
|
|
66
|
+
export type FieldDefaultDef = Required &
|
|
65
67
|
LabelProps &
|
|
66
68
|
ConditionFieldProps & {
|
|
67
69
|
name: NameFieldDef;
|
|
68
70
|
};
|
|
69
71
|
|
|
72
|
+
/**
|
|
73
|
+
* @title Поля ввода по умолчанию
|
|
74
|
+
* @default {"fieldType": "common"}
|
|
75
|
+
*/
|
|
76
|
+
export type FieldCommonDef = FieldDefaultDef & {
|
|
77
|
+
/** @default "common" */
|
|
78
|
+
fieldType: 'common';
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
type VedTypes = 'currencyControl' | 'documentOperations' | 'conversionTransactions' | 'otherIssues';
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* @title Поле ввода ВЭД
|
|
85
|
+
* @default {"fieldType": "ved", "name": "vedTypes", "defaultValue": "currencyControl"}
|
|
86
|
+
*/
|
|
87
|
+
export type FieldVedDef = FieldDefaultDef & {
|
|
88
|
+
/** @default "ved" */
|
|
89
|
+
fieldType: 'ved';
|
|
90
|
+
/** @title Значение по умолчанию */
|
|
91
|
+
defaultValue?: VedTypes;
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* @title Поле
|
|
96
|
+
* @default { "fieldType": "common" }
|
|
97
|
+
*/
|
|
98
|
+
export type FieldDef = FieldCommonDef | FieldVedDef;
|
|
99
|
+
|
|
70
100
|
/**
|
|
71
101
|
* @title Тип формы
|
|
72
102
|
* @required
|
|
@@ -20,7 +20,7 @@ export const VedField = JSX<CustomFieldProps>(({ field }) => {
|
|
|
20
20
|
}, [value]);
|
|
21
21
|
|
|
22
22
|
return (
|
|
23
|
-
<div className="py-m
|
|
23
|
+
<div className="py-m gap-m grid @xl:flex @xl:items-center">
|
|
24
24
|
<Radio
|
|
25
25
|
name="vedTypes"
|
|
26
26
|
text="Валютный контроль"
|
|
@@ -2,7 +2,6 @@ import { type Option } from '../../ui-kit/Select/Option';
|
|
|
2
2
|
import { ACQUIRING_TYPES } from './AcquiringField';
|
|
3
3
|
import { type FieldDef } from './ApplicationFormCustomContent';
|
|
4
4
|
import { FEEDBACK_METHOD, FEEDBACK_TYPES, SERVICE_DIRECTIONS, SERVICE_TYPES } from './contants';
|
|
5
|
-
import { getNamesFromInput } from './getNamesFromInput';
|
|
6
5
|
import { VED_TYPES } from './VedField';
|
|
7
6
|
|
|
8
7
|
export interface FormState {
|
|
@@ -53,8 +52,12 @@ const initialFormState = {
|
|
|
53
52
|
|
|
54
53
|
export const getInitialFormState = (inputs: FieldDef[], typeForm = ''): FormState => {
|
|
55
54
|
const formState = Object.fromEntries(
|
|
56
|
-
|
|
55
|
+
inputs.map((_) => [
|
|
56
|
+
_.name,
|
|
57
|
+
(_.fieldType === 'ved' && _?.defaultValue) || initialFormState[_.name],
|
|
58
|
+
]),
|
|
57
59
|
);
|
|
60
|
+
|
|
58
61
|
if (formState?.serviceType && typeForm === 'PREMIUMSERVICE') {
|
|
59
62
|
formState.serviceType = SERVICE_TYPES[1];
|
|
60
63
|
}
|
|
@@ -5,10 +5,10 @@ import { type TextProps } from './HeadlineType';
|
|
|
5
5
|
* @title Таргет (target)
|
|
6
6
|
* @enumNames [
|
|
7
7
|
* "",
|
|
8
|
-
* "self (текущее
|
|
9
|
-
* "blank (новое
|
|
8
|
+
* "self (текущее вкладка или фрейм)",
|
|
9
|
+
* "blank (новое вкладка)",
|
|
10
10
|
* "parent (фрейм-родитель)",
|
|
11
|
-
* "top (текущее
|
|
11
|
+
* "top (текущее вкладка)"
|
|
12
12
|
* ]
|
|
13
13
|
*/
|
|
14
14
|
export type Target = '' | '_self' | '_blank' | '_parent' | '_top';
|
package/package.json
CHANGED
|
@@ -26,8 +26,8 @@ export const AddressBranchField = JSX<RegionFieldProps>(({ field, input, isPremi
|
|
|
26
26
|
|
|
27
27
|
return (
|
|
28
28
|
<SelectControl
|
|
29
|
-
label="
|
|
30
|
-
placeholder="Выберите
|
|
29
|
+
label="Отделение"
|
|
30
|
+
placeholder="Выберите отделение"
|
|
31
31
|
options={(addressBranch || []).map(({ address = '' }) => ({
|
|
32
32
|
key: address,
|
|
33
33
|
text: address,
|