@redneckz/wildless-cms-uni-blocks 0.14.202 → 0.14.203
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.203.js +21 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +7 -5
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +4 -4
- package/dist/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +4 -4
- package/dist/components/ApplicationFormCustom/getField.js +5 -4
- package/dist/components/ApplicationFormCustom/getField.js.map +1 -1
- package/dist/components/ApplicationFormCustom/getObjectValidator.js +1 -0
- package/dist/components/ApplicationFormCustom/getObjectValidator.js.map +1 -1
- package/lib/components/ApplicationFormCustom/ApplicationFormCustom.fixture.d.ts +2 -0
- package/lib/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +4 -4
- package/lib/components/ApplicationFormCustom/getField.js +5 -4
- package/lib/components/ApplicationFormCustom/getField.js.map +1 -1
- package/lib/components/ApplicationFormCustom/getObjectValidator.js +1 -0
- package/lib/components/ApplicationFormCustom/getObjectValidator.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +7 -5
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +4 -4
- package/mobile/dist/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +4 -4
- package/mobile/dist/components/ApplicationFormCustom/getField.js +5 -4
- package/mobile/dist/components/ApplicationFormCustom/getField.js.map +1 -1
- package/mobile/dist/components/ApplicationFormCustom/getObjectValidator.js +1 -0
- package/mobile/dist/components/ApplicationFormCustom/getObjectValidator.js.map +1 -1
- package/mobile/lib/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +4 -4
- package/mobile/lib/components/ApplicationFormCustom/getField.js +5 -4
- package/mobile/lib/components/ApplicationFormCustom/getField.js.map +1 -1
- package/mobile/lib/components/ApplicationFormCustom/getObjectValidator.js +1 -0
- package/mobile/lib/components/ApplicationFormCustom/getObjectValidator.js.map +1 -1
- package/mobile/src/components/ApplicationFormCustom/ApplicationFormCustom.example.json +87 -1
- package/mobile/src/components/ApplicationFormCustom/ApplicationFormCustomContent.ts +8 -5
- package/mobile/src/components/ApplicationFormCustom/getField.tsx +14 -3
- package/mobile/src/components/ApplicationFormCustom/getObjectValidator.tsx +1 -0
- package/package.json +1 -1
- package/src/components/ApplicationFormCustom/ApplicationFormCustom.example.json +87 -1
- package/src/components/ApplicationFormCustom/ApplicationFormCustom.fixture.tsx +60 -6
- package/src/components/ApplicationFormCustom/ApplicationFormCustomContent.ts +8 -5
- package/src/components/ApplicationFormCustom/getField.tsx +14 -3
- package/src/components/ApplicationFormCustom/getObjectValidator.tsx +1 -0
|
@@ -21,7 +21,7 @@ export interface SubmitButtonProps {
|
|
|
21
21
|
/**
|
|
22
22
|
* @title Название поля ввода
|
|
23
23
|
* @required
|
|
24
|
-
* @enumNames ["Фамилия", "Имя", "Отчество", "Email", "Телефон", "ФИО", "ИНН", "Комментарий", "Регион", "Тип формы", "День рождения", "Клиент банка", "Продукт", "Согласие на обработку"]
|
|
24
|
+
* @enumNames ["Фамилия", "Имя", "Отчество", "Email", "Телефон", "ФИО", "ИНН", "Комментарий", "Регион", "Тип формы", "День рождения", "Клиент банка", "Продукт", "Комментарий партнёров", "Согласие на обработку"]
|
|
25
25
|
*/
|
|
26
26
|
export type NameFieldDef =
|
|
27
27
|
| 'surname'
|
|
@@ -35,8 +35,9 @@ export type NameFieldDef =
|
|
|
35
35
|
| 'region'
|
|
36
36
|
| 'typeForm'
|
|
37
37
|
| 'birthday'
|
|
38
|
-
| '
|
|
38
|
+
| 'isClient'
|
|
39
39
|
| 'product'
|
|
40
|
+
| 'partnerComments'
|
|
40
41
|
| 'consentDataProcessing';
|
|
41
42
|
|
|
42
43
|
export type FieldDef = Required &
|
|
@@ -47,16 +48,18 @@ export type FieldDef = Required &
|
|
|
47
48
|
/**
|
|
48
49
|
* @title Тип формы
|
|
49
50
|
* @required
|
|
50
|
-
* @enumNames ["", "Эквайринг", "Предупреждение о мошенничестве", "Заявка на бизнес-карту", "
|
|
51
|
+
* @enumNames ["", "Эквайринг", "Предупреждение о мошенничестве", "Заявка на бизнес-карту", "Открытие брокерского счета ФЛ", "Инкассация", "Факты коррупции", "Заявка для ФЛ", "Самоинкассация"]
|
|
51
52
|
*/
|
|
52
53
|
type TypeFormFieldDef =
|
|
53
54
|
| ''
|
|
54
55
|
| 'ACQR'
|
|
55
56
|
| 'ANTIFRAUD'
|
|
56
57
|
| 'BCRD'
|
|
58
|
+
| 'BROKACCOUNT'
|
|
59
|
+
| 'COLLECTION'
|
|
57
60
|
| 'CORRUPTION'
|
|
58
|
-
| '
|
|
59
|
-
| '
|
|
61
|
+
| 'DPST'
|
|
62
|
+
| 'SELFCOLLECTION';
|
|
60
63
|
|
|
61
64
|
/**
|
|
62
65
|
* @title Количество колнок
|
|
@@ -10,7 +10,7 @@ import { type FieldDef } from './ApplicationFormCustomContent';
|
|
|
10
10
|
import { validatorObj } from './getObjectValidator';
|
|
11
11
|
|
|
12
12
|
export const getField = (field: FormFieldRegisterer<any>) => (input: FieldDef, index: number) => {
|
|
13
|
-
const { required } = input;
|
|
13
|
+
const { required, ...rest } = input;
|
|
14
14
|
const InputsMap = {
|
|
15
15
|
surname: (
|
|
16
16
|
<InputControl
|
|
@@ -19,7 +19,11 @@ export const getField = (field: FormFieldRegisterer<any>) => (input: FieldDef, i
|
|
|
19
19
|
/>
|
|
20
20
|
),
|
|
21
21
|
name: (
|
|
22
|
-
<InputControl
|
|
22
|
+
<InputControl
|
|
23
|
+
label="Имя"
|
|
24
|
+
{...getValidation(field('name'), validatorObj.name, required)}
|
|
25
|
+
{...rest}
|
|
26
|
+
/>
|
|
23
27
|
),
|
|
24
28
|
middleName: (
|
|
25
29
|
<InputControl label="Отчество (Обязательно, при наличии)" {...field('middleName')} />
|
|
@@ -40,6 +44,7 @@ export const getField = (field: FormFieldRegisterer<any>) => (input: FieldDef, i
|
|
|
40
44
|
<InputControl
|
|
41
45
|
label="ФИО"
|
|
42
46
|
{...getValidation(field('fullName'), validatorObj.fullName, required)}
|
|
47
|
+
{...rest}
|
|
43
48
|
/>
|
|
44
49
|
),
|
|
45
50
|
inn: <InputControl label="ИНН" {...getValidation(field('inn'), validatorObj.inn, required)} />,
|
|
@@ -58,9 +63,15 @@ export const getField = (field: FormFieldRegisterer<any>) => (input: FieldDef, i
|
|
|
58
63
|
{...getValidation(field('birthday'), validatorObj.birthday, required)}
|
|
59
64
|
/>
|
|
60
65
|
),
|
|
61
|
-
|
|
66
|
+
isClient: (
|
|
62
67
|
<CheckboxWithError {...field('isClient')} text='Являюсь клиентом банка АО "Россельхозбанк"' />
|
|
63
68
|
),
|
|
69
|
+
partnerComments: (
|
|
70
|
+
<InputControl
|
|
71
|
+
label="Количество объектов инкассации"
|
|
72
|
+
{...getValidation(field('partnerComments'), validatorObj.partnerComments, required)}
|
|
73
|
+
/>
|
|
74
|
+
),
|
|
64
75
|
};
|
|
65
76
|
|
|
66
77
|
return <div key={String(index)}>{InputsMap[input.name]}</div>;
|