@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
|
@@ -33,9 +33,9 @@ export default {
|
|
|
33
33
|
sections={[
|
|
34
34
|
{
|
|
35
35
|
inputs: [
|
|
36
|
-
{ name: 'name', required: true },
|
|
37
|
-
{ name: 'middleName' },
|
|
38
|
-
{ name: 'consentDataProcessing', required: true },
|
|
36
|
+
{ fieldType: 'common', name: 'name', required: true },
|
|
37
|
+
{ fieldType: 'common', name: 'middleName' },
|
|
38
|
+
{ fieldType: 'common', name: 'consentDataProcessing', required: true },
|
|
39
39
|
],
|
|
40
40
|
},
|
|
41
41
|
]}
|
|
@@ -57,22 +57,22 @@ export default {
|
|
|
57
57
|
title: 'Вид эквайринга и регион',
|
|
58
58
|
columns: 2,
|
|
59
59
|
inputs: [
|
|
60
|
-
{ name: 'acquiringType', required: true },
|
|
61
|
-
{ name: 'region', required: true },
|
|
60
|
+
{ fieldType: 'common', name: 'acquiringType', required: true },
|
|
61
|
+
{ fieldType: 'common', name: 'region', required: true },
|
|
62
62
|
],
|
|
63
63
|
},
|
|
64
64
|
{
|
|
65
65
|
title: 'Данные организации',
|
|
66
66
|
columns: 2,
|
|
67
67
|
inputs: [
|
|
68
|
-
{ name: 'fullName', required: true },
|
|
69
|
-
{ name: 'inn', required: true },
|
|
70
|
-
{ name: 'name', required: true },
|
|
71
|
-
{ name: 'phone', required: true },
|
|
68
|
+
{ fieldType: 'common', name: 'fullName', required: true },
|
|
69
|
+
{ fieldType: 'common', name: 'inn', required: true },
|
|
70
|
+
{ fieldType: 'common', name: 'name', required: true },
|
|
71
|
+
{ fieldType: 'common', name: 'phone', required: true },
|
|
72
72
|
],
|
|
73
73
|
},
|
|
74
|
-
{ inputs: [{ name: 'onlineCheckout' }] },
|
|
75
|
-
{ inputs: [{ name: 'posTerminal' }] },
|
|
74
|
+
{ inputs: [{ fieldType: 'common', name: 'onlineCheckout' }] },
|
|
75
|
+
{ inputs: [{ fieldType: 'common', name: 'posTerminal' }] },
|
|
76
76
|
]}
|
|
77
77
|
button={button}
|
|
78
78
|
link={linkCorp}
|
|
@@ -95,10 +95,10 @@ export default {
|
|
|
95
95
|
},
|
|
96
96
|
{
|
|
97
97
|
inputs: [
|
|
98
|
-
{ name: 'name', required: true },
|
|
99
|
-
{ name: 'email', required: true },
|
|
100
|
-
{ name: 'consentToReceiveMaterials' },
|
|
101
|
-
{ name: 'consentDataProcessing', required: true },
|
|
98
|
+
{ fieldType: 'common', name: 'name', required: true },
|
|
99
|
+
{ fieldType: 'common', name: 'email', required: true },
|
|
100
|
+
{ fieldType: 'common', name: 'consentToReceiveMaterials' },
|
|
101
|
+
{ fieldType: 'common', name: 'consentDataProcessing', required: true },
|
|
102
102
|
],
|
|
103
103
|
},
|
|
104
104
|
]}
|
|
@@ -118,14 +118,14 @@ export default {
|
|
|
118
118
|
sections={[
|
|
119
119
|
{
|
|
120
120
|
inputs: [
|
|
121
|
-
{ name: 'surname', required: true },
|
|
122
|
-
{ name: 'name', required: true },
|
|
123
|
-
{ name: 'middleName' },
|
|
124
|
-
{ name: 'phone', required: true },
|
|
125
|
-
{ name: 'birthday', required: true },
|
|
126
|
-
{ name: 'isClient' },
|
|
127
|
-
{ name: 'comment', required: true },
|
|
128
|
-
{ name: 'consentDataProcessing', required: true },
|
|
121
|
+
{ fieldType: 'common', name: 'surname', required: true },
|
|
122
|
+
{ fieldType: 'common', name: 'name', required: true },
|
|
123
|
+
{ fieldType: 'common', name: 'middleName' },
|
|
124
|
+
{ fieldType: 'common', name: 'phone', required: true },
|
|
125
|
+
{ fieldType: 'common', name: 'birthday', required: true },
|
|
126
|
+
{ fieldType: 'common', name: 'isClient' },
|
|
127
|
+
{ fieldType: 'common', name: 'comment', required: true },
|
|
128
|
+
{ fieldType: 'common', name: 'consentDataProcessing', required: true },
|
|
129
129
|
],
|
|
130
130
|
},
|
|
131
131
|
]}
|
|
@@ -146,14 +146,22 @@ export default {
|
|
|
146
146
|
{
|
|
147
147
|
columns: 2,
|
|
148
148
|
inputs: [
|
|
149
|
-
{
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
149
|
+
{
|
|
150
|
+
fieldType: 'common',
|
|
151
|
+
name: 'fullName',
|
|
152
|
+
required: true,
|
|
153
|
+
label: 'Наименование организации',
|
|
154
|
+
},
|
|
155
|
+
{ fieldType: 'common', name: 'inn', required: true },
|
|
156
|
+
{ fieldType: 'common', name: 'name', required: true },
|
|
157
|
+
{ fieldType: 'common', name: 'phone', required: true },
|
|
153
158
|
],
|
|
154
159
|
},
|
|
155
160
|
{
|
|
156
|
-
inputs: [
|
|
161
|
+
inputs: [
|
|
162
|
+
{ fieldType: 'common', name: 'partnerComments', label: 'Комментарий' },
|
|
163
|
+
{ fieldType: 'common', name: 'isClient' },
|
|
164
|
+
],
|
|
157
165
|
},
|
|
158
166
|
]}
|
|
159
167
|
button={button}
|
|
@@ -176,10 +184,10 @@ export default {
|
|
|
176
184
|
sections={[
|
|
177
185
|
{
|
|
178
186
|
inputs: [
|
|
179
|
-
{ name: 'name', required: true, label: 'ФИО' },
|
|
180
|
-
{ name: 'phone', required: true },
|
|
181
|
-
{ name: 'isClient' },
|
|
182
|
-
{ name: 'consentDataProcessing', required: true },
|
|
187
|
+
{ fieldType: 'common', name: 'name', required: true, label: 'ФИО' },
|
|
188
|
+
{ fieldType: 'common', name: 'phone', required: true },
|
|
189
|
+
{ fieldType: 'common', name: 'isClient' },
|
|
190
|
+
{ fieldType: 'common', name: 'consentDataProcessing', required: true },
|
|
183
191
|
],
|
|
184
192
|
},
|
|
185
193
|
]}
|
|
@@ -198,15 +206,15 @@ export default {
|
|
|
198
206
|
endpoint="sendcorporatelead"
|
|
199
207
|
sections={[
|
|
200
208
|
{
|
|
201
|
-
inputs: [{ name: 'region', required: true }],
|
|
209
|
+
inputs: [{ fieldType: 'common', name: 'region', required: true }],
|
|
202
210
|
},
|
|
203
211
|
{
|
|
204
212
|
columns: 2,
|
|
205
213
|
inputs: [
|
|
206
|
-
{ name: 'name', required: true },
|
|
207
|
-
{ name: 'phone', required: true },
|
|
208
|
-
{ name: 'inn', required: true },
|
|
209
|
-
{ name: 'email', required: true },
|
|
214
|
+
{ fieldType: 'common', name: 'name', required: true },
|
|
215
|
+
{ fieldType: 'common', name: 'phone', required: true },
|
|
216
|
+
{ fieldType: 'common', name: 'inn', required: true },
|
|
217
|
+
{ fieldType: 'common', name: 'email', required: true },
|
|
210
218
|
],
|
|
211
219
|
},
|
|
212
220
|
]}
|
|
@@ -225,15 +233,27 @@ export default {
|
|
|
225
233
|
endpoint="sendcorporatelead"
|
|
226
234
|
sections={[
|
|
227
235
|
{
|
|
228
|
-
inputs: [
|
|
236
|
+
inputs: [
|
|
237
|
+
{
|
|
238
|
+
fieldType: 'common',
|
|
239
|
+
name: 'fullName',
|
|
240
|
+
required: true,
|
|
241
|
+
label: 'Наименование организации',
|
|
242
|
+
},
|
|
243
|
+
],
|
|
229
244
|
},
|
|
230
245
|
{
|
|
231
246
|
columns: 2,
|
|
232
247
|
inputs: [
|
|
233
|
-
{ name: 'region', required: true },
|
|
234
|
-
{
|
|
235
|
-
|
|
236
|
-
|
|
248
|
+
{ fieldType: 'common', name: 'region', required: true },
|
|
249
|
+
{
|
|
250
|
+
fieldType: 'common',
|
|
251
|
+
name: 'collectionCount',
|
|
252
|
+
required: true,
|
|
253
|
+
label: 'Количество объектов инкассации',
|
|
254
|
+
},
|
|
255
|
+
{ fieldType: 'common', name: 'phone', required: true },
|
|
256
|
+
{ fieldType: 'common', name: 'email' },
|
|
237
257
|
],
|
|
238
258
|
},
|
|
239
259
|
]}
|
|
@@ -254,26 +274,34 @@ export default {
|
|
|
254
274
|
{
|
|
255
275
|
title: 'Параметры кредита',
|
|
256
276
|
columns: 2,
|
|
257
|
-
inputs: [
|
|
277
|
+
inputs: [
|
|
278
|
+
{ fieldType: 'common', name: 'amount' },
|
|
279
|
+
{ fieldType: 'common', name: 'term' },
|
|
280
|
+
],
|
|
258
281
|
},
|
|
259
282
|
{
|
|
260
283
|
title: 'Данные организации',
|
|
261
284
|
columns: 2,
|
|
262
285
|
inputs: [
|
|
263
|
-
{
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
286
|
+
{
|
|
287
|
+
fieldType: 'common',
|
|
288
|
+
name: 'fullName',
|
|
289
|
+
required: true,
|
|
290
|
+
label: 'Наименование организации',
|
|
291
|
+
},
|
|
292
|
+
{ fieldType: 'common', name: 'annualRevenue', required: true },
|
|
293
|
+
{ fieldType: 'common', name: 'inn', required: true },
|
|
294
|
+
{ fieldType: 'common', name: 'name', required: true, label: 'Контактное лицо' },
|
|
295
|
+
{ fieldType: 'common', name: 'phone', required: true },
|
|
296
|
+
{ fieldType: 'common', name: 'email', required: true },
|
|
269
297
|
],
|
|
270
298
|
},
|
|
271
299
|
{
|
|
272
300
|
title: 'Офис банка',
|
|
273
301
|
columns: 2,
|
|
274
302
|
inputs: [
|
|
275
|
-
{ name: 'region', required: true },
|
|
276
|
-
{ name: 'addressBranch', required: true },
|
|
303
|
+
{ fieldType: 'common', name: 'region', required: true },
|
|
304
|
+
{ fieldType: 'common', name: 'addressBranch', required: true },
|
|
277
305
|
],
|
|
278
306
|
},
|
|
279
307
|
]}
|
|
@@ -293,14 +321,14 @@ export default {
|
|
|
293
321
|
sections={[
|
|
294
322
|
{
|
|
295
323
|
inputs: [
|
|
296
|
-
{ name: 'surname', required: true },
|
|
297
|
-
{ name: 'name', required: true },
|
|
298
|
-
{ name: 'middleName' },
|
|
299
|
-
{ name: 'phone', required: true },
|
|
300
|
-
{ name: 'region', required: true },
|
|
301
|
-
{ name: 'email' },
|
|
302
|
-
{ name: 'comment', required: true },
|
|
303
|
-
{ name: 'consentDataProcessing', required: true },
|
|
324
|
+
{ fieldType: 'common', name: 'surname', required: true },
|
|
325
|
+
{ fieldType: 'common', name: 'name', required: true },
|
|
326
|
+
{ fieldType: 'common', name: 'middleName' },
|
|
327
|
+
{ fieldType: 'common', name: 'phone', required: true },
|
|
328
|
+
{ fieldType: 'common', name: 'region', required: true },
|
|
329
|
+
{ fieldType: 'common', name: 'email' },
|
|
330
|
+
{ fieldType: 'common', name: 'comment', required: true },
|
|
331
|
+
{ fieldType: 'common', name: 'consentDataProcessing', required: true },
|
|
304
332
|
],
|
|
305
333
|
},
|
|
306
334
|
]}
|
|
@@ -321,9 +349,9 @@ export default {
|
|
|
321
349
|
{
|
|
322
350
|
title: 'Оставьте заявку и мы ответим на любые вопросы по депозитам',
|
|
323
351
|
inputs: [
|
|
324
|
-
{ name: 'name', required: true },
|
|
325
|
-
{ name: 'phone', required: true },
|
|
326
|
-
{ name: 'consentDataProcessing', required: true },
|
|
352
|
+
{ fieldType: 'common', name: 'name', required: true },
|
|
353
|
+
{ fieldType: 'common', name: 'phone', required: true },
|
|
354
|
+
{ fieldType: 'common', name: 'consentDataProcessing', required: true },
|
|
327
355
|
],
|
|
328
356
|
},
|
|
329
357
|
]}
|
|
@@ -344,16 +372,18 @@ export default {
|
|
|
344
372
|
sections={[
|
|
345
373
|
{
|
|
346
374
|
inputs: [
|
|
347
|
-
{ name: 'feedbackType', required: true },
|
|
375
|
+
{ fieldType: 'common', name: 'feedbackType', required: true },
|
|
348
376
|
{
|
|
377
|
+
fieldType: 'common',
|
|
349
378
|
name: 'serviceDirection',
|
|
350
379
|
condition: {
|
|
351
380
|
name: 'feedbackType',
|
|
352
381
|
values: ['FEEDBACK_QS'],
|
|
353
382
|
},
|
|
354
383
|
},
|
|
355
|
-
{ name: 'region', required: true },
|
|
384
|
+
{ fieldType: 'common', name: 'region', required: true },
|
|
356
385
|
{
|
|
386
|
+
fieldType: 'common',
|
|
357
387
|
name: 'addressBranch',
|
|
358
388
|
required: true,
|
|
359
389
|
condition: {
|
|
@@ -361,20 +391,29 @@ export default {
|
|
|
361
391
|
values: ['FEEDBACK_QS'],
|
|
362
392
|
},
|
|
363
393
|
},
|
|
364
|
-
{ name: 'surname', required: true },
|
|
365
|
-
{ name: 'name', required: true },
|
|
366
|
-
{ name: 'middleName' },
|
|
394
|
+
{ fieldType: 'common', name: 'surname', required: true },
|
|
395
|
+
{ fieldType: 'common', name: 'name', required: true },
|
|
396
|
+
{ fieldType: 'common', name: 'middleName' },
|
|
367
397
|
{
|
|
398
|
+
fieldType: 'common',
|
|
368
399
|
name: 'inn',
|
|
369
400
|
required: true,
|
|
370
|
-
condition: {
|
|
401
|
+
condition: {
|
|
402
|
+
name: 'serviceDirection',
|
|
403
|
+
values: ['Юридическое лицо / ИП'],
|
|
404
|
+
},
|
|
371
405
|
},
|
|
372
406
|
{
|
|
407
|
+
fieldType: 'common',
|
|
373
408
|
name: 'fullName',
|
|
374
409
|
label: 'Наименование организации',
|
|
375
|
-
condition: {
|
|
410
|
+
condition: {
|
|
411
|
+
name: 'serviceDirection',
|
|
412
|
+
values: ['Юридическое лицо / ИП'],
|
|
413
|
+
},
|
|
376
414
|
},
|
|
377
415
|
{
|
|
416
|
+
fieldType: 'common',
|
|
378
417
|
name: 'birthday',
|
|
379
418
|
required: true,
|
|
380
419
|
condition: {
|
|
@@ -382,9 +421,10 @@ export default {
|
|
|
382
421
|
values: ['FEEDBACK'],
|
|
383
422
|
},
|
|
384
423
|
},
|
|
385
|
-
{ name: 'feedbackMethod', required: true },
|
|
386
|
-
{ name: 'phone', required: true },
|
|
424
|
+
{ fieldType: 'common', name: 'feedbackMethod', required: true },
|
|
425
|
+
{ fieldType: 'common', name: 'phone', required: true },
|
|
387
426
|
{
|
|
427
|
+
fieldType: 'common',
|
|
388
428
|
name: 'secondaryPhone',
|
|
389
429
|
required: true,
|
|
390
430
|
condition: {
|
|
@@ -392,8 +432,9 @@ export default {
|
|
|
392
432
|
values: ['FEEDBACK_QS'],
|
|
393
433
|
},
|
|
394
434
|
},
|
|
395
|
-
{ name: 'email', required: true },
|
|
435
|
+
{ fieldType: 'common', name: 'email', required: true },
|
|
396
436
|
{
|
|
437
|
+
fieldType: 'common',
|
|
397
438
|
name: 'bankEmpolee',
|
|
398
439
|
condition: {
|
|
399
440
|
name: 'feedbackType',
|
|
@@ -401,14 +442,15 @@ export default {
|
|
|
401
442
|
},
|
|
402
443
|
},
|
|
403
444
|
{
|
|
445
|
+
fieldType: 'common',
|
|
404
446
|
name: 'applicationDate',
|
|
405
447
|
condition: {
|
|
406
448
|
name: 'feedbackType',
|
|
407
449
|
values: ['FEEDBACK_QS'],
|
|
408
450
|
},
|
|
409
451
|
},
|
|
410
|
-
{ name: 'comment', required: true },
|
|
411
|
-
{ name: 'consentDataProcessing', required: true },
|
|
452
|
+
{ fieldType: 'common', name: 'comment', required: true },
|
|
453
|
+
{ fieldType: 'common', name: 'consentDataProcessing', required: true },
|
|
412
454
|
],
|
|
413
455
|
},
|
|
414
456
|
]}
|
|
@@ -430,13 +472,13 @@ export default {
|
|
|
430
472
|
{
|
|
431
473
|
columns: 2,
|
|
432
474
|
inputs: [
|
|
433
|
-
{ name: 'surname', required: true },
|
|
434
|
-
{ name: 'name', required: true },
|
|
435
|
-
{ name: 'middleName' },
|
|
436
|
-
{ name: 'birthday', required: true },
|
|
437
|
-
{ name: 'phone', required: true },
|
|
438
|
-
{ name: 'email', required: true },
|
|
439
|
-
{ name: 'consentDataProcessing', required: true },
|
|
475
|
+
{ fieldType: 'common', name: 'surname', required: true },
|
|
476
|
+
{ fieldType: 'common', name: 'name', required: true },
|
|
477
|
+
{ fieldType: 'common', name: 'middleName' },
|
|
478
|
+
{ fieldType: 'common', name: 'birthday', required: true },
|
|
479
|
+
{ fieldType: 'common', name: 'phone', required: true },
|
|
480
|
+
{ fieldType: 'common', name: 'email', required: true },
|
|
481
|
+
{ fieldType: 'common', name: 'consentDataProcessing', required: true },
|
|
440
482
|
],
|
|
441
483
|
},
|
|
442
484
|
]}
|
|
@@ -460,10 +502,10 @@ export default {
|
|
|
460
502
|
sections={[
|
|
461
503
|
{
|
|
462
504
|
inputs: [
|
|
463
|
-
{ name: 'name', required: true, label: 'ФИО' },
|
|
464
|
-
{ name: 'region', required: true },
|
|
465
|
-
{ name: 'phone', required: true },
|
|
466
|
-
{ name: 'consentDataProcessing', required: true },
|
|
505
|
+
{ fieldType: 'common', name: 'name', required: true, label: 'ФИО' },
|
|
506
|
+
{ fieldType: 'common', name: 'region', required: true },
|
|
507
|
+
{ fieldType: 'common', name: 'phone', required: true },
|
|
508
|
+
{ fieldType: 'common', name: 'consentDataProcessing', required: true },
|
|
467
509
|
],
|
|
468
510
|
},
|
|
469
511
|
]}
|
|
@@ -485,24 +527,24 @@ export default {
|
|
|
485
527
|
title: 'Ваши данные',
|
|
486
528
|
columns: 2,
|
|
487
529
|
inputs: [
|
|
488
|
-
{ name: 'surname', required: true },
|
|
489
|
-
{ name: 'name', required: true },
|
|
490
|
-
{ name: 'middleName' },
|
|
491
|
-
{ name: 'phone', required: true },
|
|
492
|
-
{ name: 'email' },
|
|
493
|
-
{ name: 'serviceType', required: true },
|
|
530
|
+
{ fieldType: 'common', name: 'surname', required: true },
|
|
531
|
+
{ fieldType: 'common', name: 'name', required: true },
|
|
532
|
+
{ fieldType: 'common', name: 'middleName' },
|
|
533
|
+
{ fieldType: 'common', name: 'phone', required: true },
|
|
534
|
+
{ fieldType: 'common', name: 'email' },
|
|
535
|
+
{ fieldType: 'common', name: 'serviceType', required: true },
|
|
494
536
|
],
|
|
495
537
|
},
|
|
496
538
|
{
|
|
497
539
|
title: 'Офис банка',
|
|
498
540
|
columns: 2,
|
|
499
541
|
inputs: [
|
|
500
|
-
{ name: 'region', required: true },
|
|
501
|
-
{ name: 'addressBranch', required: true },
|
|
542
|
+
{ fieldType: 'common', name: 'region', required: true },
|
|
543
|
+
{ fieldType: 'common', name: 'addressBranch', required: true },
|
|
502
544
|
],
|
|
503
545
|
},
|
|
504
|
-
{ inputs: [{ name: 'comment' }] },
|
|
505
|
-
{ inputs: [{ name: 'consentDataProcessing', required: true }] },
|
|
546
|
+
{ inputs: [{ fieldType: 'common', name: 'comment' }] },
|
|
547
|
+
{ inputs: [{ fieldType: 'common', name: 'consentDataProcessing', required: true }] },
|
|
506
548
|
]}
|
|
507
549
|
button={button}
|
|
508
550
|
link={link}
|
|
@@ -518,14 +560,23 @@ export default {
|
|
|
518
560
|
typeForm="KVED"
|
|
519
561
|
endpoint="sendcorporatelead"
|
|
520
562
|
sections={[
|
|
521
|
-
{
|
|
563
|
+
{
|
|
564
|
+
inputs: [
|
|
565
|
+
{
|
|
566
|
+
fieldType: 'ved',
|
|
567
|
+
name: 'vedTypes',
|
|
568
|
+
defaultValue: 'currencyControl',
|
|
569
|
+
},
|
|
570
|
+
],
|
|
571
|
+
},
|
|
522
572
|
{ title: 'Данные организации', inputs: [] },
|
|
523
573
|
{
|
|
524
574
|
inputs: [
|
|
525
575
|
{
|
|
576
|
+
fieldType: 'common',
|
|
526
577
|
name: 'region',
|
|
527
578
|
required: true,
|
|
528
|
-
condition: { name: 'vedTypes', values: ['currencyControl'] },
|
|
579
|
+
condition: { fieldType: 'common', name: 'vedTypes', values: ['currencyControl'] },
|
|
529
580
|
},
|
|
530
581
|
],
|
|
531
582
|
},
|
|
@@ -533,6 +584,7 @@ export default {
|
|
|
533
584
|
columns: 2,
|
|
534
585
|
inputs: [
|
|
535
586
|
{
|
|
587
|
+
fieldType: 'common',
|
|
536
588
|
name: 'inn',
|
|
537
589
|
required: true,
|
|
538
590
|
condition: {
|
|
@@ -540,10 +592,16 @@ export default {
|
|
|
540
592
|
values: ['currencyControl'],
|
|
541
593
|
},
|
|
542
594
|
},
|
|
543
|
-
{ name: 'fullName', required: true, label: 'Наименование организации' },
|
|
544
|
-
{ name: 'name', required: true, label: 'ФИО' },
|
|
545
|
-
{ name: 'phone', required: true },
|
|
546
595
|
{
|
|
596
|
+
fieldType: 'common',
|
|
597
|
+
name: 'fullName',
|
|
598
|
+
required: true,
|
|
599
|
+
label: 'Наименование организации',
|
|
600
|
+
},
|
|
601
|
+
{ fieldType: 'common', name: 'name', required: true, label: 'ФИО' },
|
|
602
|
+
{ fieldType: 'common', name: 'phone', required: true },
|
|
603
|
+
{
|
|
604
|
+
fieldType: 'common',
|
|
547
605
|
name: 'email',
|
|
548
606
|
required: true,
|
|
549
607
|
condition: {
|
|
@@ -554,7 +612,7 @@ export default {
|
|
|
554
612
|
],
|
|
555
613
|
},
|
|
556
614
|
{
|
|
557
|
-
inputs: [{ name: 'partnerComments', label: 'Обращение' }],
|
|
615
|
+
inputs: [{ fieldType: 'common', name: 'partnerComments', label: 'Обращение' }],
|
|
558
616
|
},
|
|
559
617
|
]}
|
|
560
618
|
button={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
|
}
|
package/src/model/LinkProps.ts
CHANGED
|
@@ -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';
|