@redneckz/wildless-cms-uni-blocks 0.14.592 → 0.14.593
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/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +48 -23
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +1 -6
- package/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +1 -6
- package/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +5 -0
- package/bundle/ui-kit/FormField/Fields/BirthPlaceField.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/ParticipantAddressField.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/ParticipantDateRegistrationField.d.ts +2 -0
- package/bundle/ui-kit/FormField/Fields/SexField.d.ts +4 -0
- package/bundle/ui-kit/FormField/Fields/VedField.d.ts +2 -1
- package/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -0
- package/bundle/ui-kit/FormField/getNamesFromInput.d.ts +1 -1
- package/bundle/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +1 -0
- package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +1 -6
- package/dist/components/ApplicationForm/getFormatData.js +1 -1
- package/dist/components/ApplicationForm/getFormatData.js.map +1 -1
- package/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +1 -6
- package/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.js +0 -1
- package/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.js.map +1 -1
- package/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +5 -0
- package/dist/components/ApplicationLeadForm/getInitialFormState.js +2 -0
- package/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/BirthPlaceField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/BirthPlaceField.js +9 -0
- package/dist/ui-kit/FormField/Fields/BirthPlaceField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/NameField.js +1 -4
- package/dist/ui-kit/FormField/Fields/NameField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/ParticipantAddressField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/ParticipantAddressField.js +9 -0
- package/dist/ui-kit/FormField/Fields/ParticipantAddressField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/ParticipantDateRegistrationField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/ParticipantDateRegistrationField.js +9 -0
- package/dist/ui-kit/FormField/Fields/ParticipantDateRegistrationField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/PhoneField.js +1 -1
- package/dist/ui-kit/FormField/Fields/PhoneField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/SexField.d.ts +4 -0
- package/dist/ui-kit/FormField/Fields/SexField.js +14 -0
- package/dist/ui-kit/FormField/Fields/SexField.js.map +1 -0
- package/dist/ui-kit/FormField/Fields/VedField.d.ts +2 -1
- package/dist/ui-kit/FormField/Fields/VedField.js +6 -6
- package/dist/ui-kit/FormField/Fields/VedField.js.map +1 -1
- package/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -0
- package/dist/ui-kit/FormField/NameFieldDef.js +2 -0
- package/dist/ui-kit/FormField/NameFieldDef.js.map +1 -0
- package/dist/ui-kit/FormField/getField.js +9 -0
- package/dist/ui-kit/FormField/getField.js.map +1 -1
- package/dist/ui-kit/FormField/getNamesFromInput.d.ts +1 -1
- package/dist/ui-kit/FormField/getObjectValidator.js +4 -0
- package/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/dist/ui-kit/Input/Input.js +4 -2
- package/dist/ui-kit/Input/Input.js.map +1 -1
- package/dist/ui-kit/Input/InputPhoneControl.js +1 -1
- package/dist/ui-kit/Input/InputPhoneControl.js.map +1 -1
- package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +1 -0
- package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js +4 -3
- package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +1 -6
- package/lib/components/ApplicationForm/getFormatData.js +1 -1
- package/lib/components/ApplicationForm/getFormatData.js.map +1 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.fixture.d.ts +1 -0
- package/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +1 -6
- package/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.js +0 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.js.map +1 -1
- package/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +5 -0
- package/lib/components/ApplicationLeadForm/getInitialFormState.js +2 -0
- package/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/BirthPlaceField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/BirthPlaceField.js +7 -0
- package/lib/ui-kit/FormField/Fields/BirthPlaceField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/NameField.js +1 -4
- package/lib/ui-kit/FormField/Fields/NameField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/ParticipantAddressField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/ParticipantAddressField.js +7 -0
- package/lib/ui-kit/FormField/Fields/ParticipantAddressField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/ParticipantDateRegistrationField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/ParticipantDateRegistrationField.js +7 -0
- package/lib/ui-kit/FormField/Fields/ParticipantDateRegistrationField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/PhoneField.js +1 -1
- package/lib/ui-kit/FormField/Fields/PhoneField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/SexField.d.ts +4 -0
- package/lib/ui-kit/FormField/Fields/SexField.js +12 -0
- package/lib/ui-kit/FormField/Fields/SexField.js.map +1 -0
- package/lib/ui-kit/FormField/Fields/VedField.d.ts +2 -1
- package/lib/ui-kit/FormField/Fields/VedField.js +7 -7
- package/lib/ui-kit/FormField/Fields/VedField.js.map +1 -1
- package/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -0
- package/lib/ui-kit/FormField/NameFieldDef.js +2 -0
- package/lib/ui-kit/FormField/NameFieldDef.js.map +1 -0
- package/lib/ui-kit/FormField/getField.js +9 -0
- package/lib/ui-kit/FormField/getField.js.map +1 -1
- package/lib/ui-kit/FormField/getNamesFromInput.d.ts +1 -1
- package/lib/ui-kit/FormField/getObjectValidator.js +4 -0
- package/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/lib/ui-kit/Input/Input.js +4 -2
- package/lib/ui-kit/Input/Input.js.map +1 -1
- package/lib/ui-kit/Input/InputPhoneControl.js +1 -1
- package/lib/ui-kit/Input/InputPhoneControl.js.map +1 -1
- package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +1 -0
- package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js +5 -4
- package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +48 -23
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +1 -6
- package/mobile/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +1 -6
- package/mobile/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +5 -0
- package/mobile/bundle/ui-kit/FormField/Fields/BirthPlaceField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/ParticipantAddressField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/ParticipantDateRegistrationField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/Fields/SexField.d.ts +4 -0
- package/mobile/bundle/ui-kit/FormField/Fields/VedField.d.ts +2 -1
- package/mobile/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -0
- package/mobile/bundle/ui-kit/FormField/getNamesFromInput.d.ts +1 -1
- package/mobile/bundle/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +1 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +1 -6
- package/mobile/dist/components/ApplicationForm/getFormatData.js +1 -1
- package/mobile/dist/components/ApplicationForm/getFormatData.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +1 -6
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.js +0 -1
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +5 -0
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js +2 -0
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/BirthPlaceField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/BirthPlaceField.js +9 -0
- package/mobile/dist/ui-kit/FormField/Fields/BirthPlaceField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/NameField.js +1 -4
- package/mobile/dist/ui-kit/FormField/Fields/NameField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/ParticipantAddressField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/ParticipantAddressField.js +9 -0
- package/mobile/dist/ui-kit/FormField/Fields/ParticipantAddressField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/ParticipantDateRegistrationField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/ParticipantDateRegistrationField.js +9 -0
- package/mobile/dist/ui-kit/FormField/Fields/ParticipantDateRegistrationField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/PhoneField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/PhoneField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/SexField.d.ts +4 -0
- package/mobile/dist/ui-kit/FormField/Fields/SexField.js +14 -0
- package/mobile/dist/ui-kit/FormField/Fields/SexField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/Fields/VedField.d.ts +2 -1
- package/mobile/dist/ui-kit/FormField/Fields/VedField.js +6 -6
- package/mobile/dist/ui-kit/FormField/Fields/VedField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -0
- package/mobile/dist/ui-kit/FormField/NameFieldDef.js +2 -0
- package/mobile/dist/ui-kit/FormField/NameFieldDef.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/getField.js +9 -0
- package/mobile/dist/ui-kit/FormField/getField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/getNamesFromInput.d.ts +1 -1
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js +4 -0
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/dist/ui-kit/Input/Input.js +4 -2
- package/mobile/dist/ui-kit/Input/Input.js.map +1 -1
- package/mobile/dist/ui-kit/Input/InputPhoneControl.js +1 -1
- package/mobile/dist/ui-kit/Input/InputPhoneControl.js.map +1 -1
- package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +1 -0
- package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js +4 -3
- package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +1 -6
- package/mobile/lib/components/ApplicationForm/getFormatData.js +1 -1
- package/mobile/lib/components/ApplicationForm/getFormatData.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +1 -6
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.js +0 -1
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +5 -0
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js +2 -0
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/BirthPlaceField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/BirthPlaceField.js +7 -0
- package/mobile/lib/ui-kit/FormField/Fields/BirthPlaceField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/NameField.js +1 -4
- package/mobile/lib/ui-kit/FormField/Fields/NameField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/ParticipantAddressField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/ParticipantAddressField.js +7 -0
- package/mobile/lib/ui-kit/FormField/Fields/ParticipantAddressField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/ParticipantDateRegistrationField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/ParticipantDateRegistrationField.js +7 -0
- package/mobile/lib/ui-kit/FormField/Fields/ParticipantDateRegistrationField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/PhoneField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/PhoneField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/SexField.d.ts +4 -0
- package/mobile/lib/ui-kit/FormField/Fields/SexField.js +12 -0
- package/mobile/lib/ui-kit/FormField/Fields/SexField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/Fields/VedField.d.ts +2 -1
- package/mobile/lib/ui-kit/FormField/Fields/VedField.js +7 -7
- package/mobile/lib/ui-kit/FormField/Fields/VedField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -0
- package/mobile/lib/ui-kit/FormField/NameFieldDef.js +2 -0
- package/mobile/lib/ui-kit/FormField/NameFieldDef.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/getField.js +9 -0
- package/mobile/lib/ui-kit/FormField/getField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/getNamesFromInput.d.ts +1 -1
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js +4 -0
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/lib/ui-kit/Input/Input.js +4 -2
- package/mobile/lib/ui-kit/Input/Input.js.map +1 -1
- package/mobile/lib/ui-kit/Input/InputPhoneControl.js +1 -1
- package/mobile/lib/ui-kit/Input/InputPhoneControl.js.map +1 -1
- package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +1 -0
- package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js +5 -4
- package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +1 -76
- package/mobile/src/components/ApplicationForm/getFormatData.tsx +1 -1
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +1 -78
- package/mobile/src/components/ApplicationLeadForm/getInitialFormState.tsx +7 -0
- package/mobile/src/ui-kit/FormField/Fields/BirthPlaceField.tsx +13 -0
- package/mobile/src/ui-kit/FormField/Fields/NameField.tsx +7 -12
- package/mobile/src/ui-kit/FormField/Fields/ParticipantAddressField.tsx +17 -0
- package/mobile/src/ui-kit/FormField/Fields/ParticipantDateRegistrationField.tsx +16 -0
- package/mobile/src/ui-kit/FormField/Fields/PhoneField.tsx +1 -0
- package/mobile/src/ui-kit/FormField/Fields/SexField.tsx +22 -0
- package/mobile/src/ui-kit/FormField/Fields/VedField.tsx +12 -33
- package/mobile/src/ui-kit/FormField/NameFieldDef.ts +76 -0
- package/mobile/src/ui-kit/FormField/getField.tsx +9 -1
- package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +4 -0
- package/mobile/src/ui-kit/Input/Input.tsx +4 -0
- package/mobile/src/ui-kit/Input/InputPhoneControl.tsx +12 -16
- package/mobile/src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx +29 -17
- package/package.json +1 -1
- package/src/components/ApplicationForm/ApplicationFormContent.ts +1 -76
- package/src/components/ApplicationForm/getFormatData.tsx +1 -1
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.fixture.tsx +64 -1
- package/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +1 -78
- package/src/components/ApplicationLeadForm/getInitialFormState.tsx +7 -0
- package/src/icons/IconName.ts +5 -352
- package/src/ui-kit/FormField/Fields/BirthPlaceField.tsx +13 -0
- package/src/ui-kit/FormField/Fields/NameField.tsx +7 -12
- package/src/ui-kit/FormField/Fields/ParticipantAddressField.tsx +17 -0
- package/src/ui-kit/FormField/Fields/ParticipantDateRegistrationField.tsx +16 -0
- package/src/ui-kit/FormField/Fields/PhoneField.tsx +1 -0
- package/src/ui-kit/FormField/Fields/SexField.tsx +22 -0
- package/src/ui-kit/FormField/Fields/VedField.tsx +12 -33
- package/src/ui-kit/FormField/NameFieldDef.ts +76 -0
- package/src/ui-kit/FormField/getField.tsx +9 -1
- package/src/ui-kit/FormField/getObjectValidator.tsx +4 -0
- package/src/ui-kit/Input/Input.tsx +4 -0
- package/src/ui-kit/Input/InputPhoneControl.tsx +12 -16
- package/src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx +29 -17
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { JSX } from '@redneckz/uni-jsx';
|
|
2
2
|
import { useEffect } from '@redneckz/uni-jsx/lib/hooks';
|
|
3
|
-
import {
|
|
3
|
+
import { RadioButtonGroup, type RadioButtonItem } from '../../RadioButtonGroup/RadioButtonGroup';
|
|
4
4
|
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
5
5
|
|
|
6
|
-
export const VED_TYPES:
|
|
7
|
-
'currencyControl',
|
|
8
|
-
'documentOperations',
|
|
9
|
-
'conversionTransactions',
|
|
10
|
-
'otherIssues',
|
|
6
|
+
export const VED_TYPES: RadioButtonItem[] = [
|
|
7
|
+
{ id: 'currencyControl', text: 'Валютный контроль' },
|
|
8
|
+
{ id: 'documentOperations', text: 'Документарные операции' },
|
|
9
|
+
{ id: 'conversionTransactions', text: 'Конверсионные операции' },
|
|
10
|
+
{ id: 'otherIssues', text: 'Иные вопросы ВЭД' },
|
|
11
11
|
];
|
|
12
12
|
|
|
13
13
|
export const VedField = JSX<CustomFieldProps>(({ field }) => {
|
|
@@ -21,33 +21,12 @@ export const VedField = JSX<CustomFieldProps>(({ field }) => {
|
|
|
21
21
|
|
|
22
22
|
return (
|
|
23
23
|
<div className="py-m gap-m grid @xl:flex @xl:items-center">
|
|
24
|
-
<
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
onChange={onChange}
|
|
30
|
-
/>
|
|
31
|
-
<Radio
|
|
32
|
-
name="vedTypes"
|
|
33
|
-
text="Документарные операции"
|
|
34
|
-
value="documentOperations"
|
|
35
|
-
checked={value === 'documentOperations'}
|
|
36
|
-
onChange={onChange}
|
|
37
|
-
/>
|
|
38
|
-
<Radio
|
|
39
|
-
name="vedTypes"
|
|
40
|
-
text="Конверсионные операции"
|
|
41
|
-
value="conversionTransactions"
|
|
42
|
-
checked={value === 'conversionTransactions'}
|
|
43
|
-
onChange={onChange}
|
|
44
|
-
/>
|
|
45
|
-
<Radio
|
|
46
|
-
name="vedTypes"
|
|
47
|
-
text="Иные вопросы ВЭД"
|
|
48
|
-
value="otherIssues"
|
|
49
|
-
checked={value === 'otherIssues'}
|
|
50
|
-
onChange={onChange}
|
|
24
|
+
<RadioButtonGroup
|
|
25
|
+
className="whitespace-normal"
|
|
26
|
+
orientation="horizontal"
|
|
27
|
+
items={VED_TYPES}
|
|
28
|
+
checkedItem={value}
|
|
29
|
+
onChange={(_) => onChange && onChange(_)}
|
|
51
30
|
/>
|
|
52
31
|
</div>
|
|
53
32
|
);
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
export type NameFieldDef =
|
|
2
|
+
| 'surname'
|
|
3
|
+
| 'name'
|
|
4
|
+
| 'middleName'
|
|
5
|
+
| 'education'
|
|
6
|
+
| 'housing'
|
|
7
|
+
| 'employment'
|
|
8
|
+
| 'organization'
|
|
9
|
+
| 'amountWorkers'
|
|
10
|
+
| 'employerActivities'
|
|
11
|
+
| 'employerOrganization'
|
|
12
|
+
| 'positionOrganization'
|
|
13
|
+
| 'dulSerie'
|
|
14
|
+
| 'dulNumber'
|
|
15
|
+
| 'dulIssueDateField'
|
|
16
|
+
| 'dulSubdivisionCode'
|
|
17
|
+
| 'dulIssuedBy'
|
|
18
|
+
| 'email'
|
|
19
|
+
| 'phone'
|
|
20
|
+
| 'fullName'
|
|
21
|
+
| 'inn'
|
|
22
|
+
| 'comment'
|
|
23
|
+
| 'region'
|
|
24
|
+
| 'addressBranch'
|
|
25
|
+
| 'typeForm'
|
|
26
|
+
| 'registrationDate'
|
|
27
|
+
| 'birthday'
|
|
28
|
+
| 'birthPlace'
|
|
29
|
+
| 'sex'
|
|
30
|
+
| 'isClient'
|
|
31
|
+
| 'consentToReceiveMaterials'
|
|
32
|
+
| 'acquiringType'
|
|
33
|
+
| 'onlineCheckout'
|
|
34
|
+
| 'posTerminal'
|
|
35
|
+
| 'serviceDirection'
|
|
36
|
+
| 'serviceType'
|
|
37
|
+
| 'feedbackMethod'
|
|
38
|
+
| 'bankEmpolee'
|
|
39
|
+
| 'applicationDate'
|
|
40
|
+
| 'secondaryPhone'
|
|
41
|
+
| 'vedTypes'
|
|
42
|
+
| 'term'
|
|
43
|
+
| 'amount'
|
|
44
|
+
| 'annualRevenue'
|
|
45
|
+
| 'collectionCount'
|
|
46
|
+
| 'desiredMeetingDate'
|
|
47
|
+
| 'product'
|
|
48
|
+
| 'localities'
|
|
49
|
+
| 'partnerComments'
|
|
50
|
+
| 'consentDataProcessing'
|
|
51
|
+
| 'consentInformFlg'
|
|
52
|
+
| 'consentCollectionFlg'
|
|
53
|
+
| 'consentAssignmentClaimsFlg'
|
|
54
|
+
| 'consentPhotoFlg'
|
|
55
|
+
| 'consentPfrFlg'
|
|
56
|
+
| 'consentProviderFlg'
|
|
57
|
+
| 'processPersonalDataLeadFlg'
|
|
58
|
+
| 'legalForm'
|
|
59
|
+
| 'organizationName'
|
|
60
|
+
| 'generalSeniority'
|
|
61
|
+
| 'lastJobExperience'
|
|
62
|
+
| 'experience5Years'
|
|
63
|
+
| 'jobsNumber'
|
|
64
|
+
| 'beginDate'
|
|
65
|
+
| 'fullAddress'
|
|
66
|
+
| 'familyStatus'
|
|
67
|
+
| 'children'
|
|
68
|
+
| 'familyMembers'
|
|
69
|
+
| 'dependents'
|
|
70
|
+
| 'totalIncome'
|
|
71
|
+
| 'expenses'
|
|
72
|
+
| 'snils'
|
|
73
|
+
| 'conscription'
|
|
74
|
+
| 'armyIdFlg'
|
|
75
|
+
| 'participantAddress'
|
|
76
|
+
| 'participantDateRegistration';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* eslint-disable max-lines */
|
|
2
1
|
import { type FieldDef } from '../../components/ApplicationForm/ApplicationFormContent';
|
|
3
2
|
import { getRegionUrl } from '../../components/ApplicationForm/getRegionUrl';
|
|
4
3
|
import { type FormFieldRegisterer } from '../../hooks/useForm';
|
|
@@ -13,6 +12,7 @@ import { ArmyIdFlgField } from './Fields/ArmyIdFlgField';
|
|
|
13
12
|
import { BankEmpoleeField } from './Fields/BankEmpoleeField';
|
|
14
13
|
import { BeginDateField } from './Fields/BeginDateField';
|
|
15
14
|
import { BirthdayField } from './Fields/BirthdayField';
|
|
15
|
+
import { BirthPlaceField } from './Fields/BirthPlaceField';
|
|
16
16
|
import { ChildrenField } from './Fields/ChildrenField';
|
|
17
17
|
import { CollectionCountField } from './Fields/CollectionCountField';
|
|
18
18
|
import { CommentField } from './Fields/CommentField';
|
|
@@ -55,6 +55,8 @@ import { NameField } from './Fields/NameField';
|
|
|
55
55
|
import { OnlineCheckoutField } from './Fields/OnlineCheckoutField';
|
|
56
56
|
import { OrganizationField } from './Fields/OrganizationField';
|
|
57
57
|
import { OrganizationNameField } from './Fields/OrganizationNameField';
|
|
58
|
+
import { ParticipantAddressField } from './Fields/ParticipantAddressField';
|
|
59
|
+
import { ParticipantDateRegistrationField } from './Fields/ParticipantDateRegistrationField';
|
|
58
60
|
import { PartnerCommentsField } from './Fields/PartnerCommentsField';
|
|
59
61
|
import { PhoneField } from './Fields/PhoneField';
|
|
60
62
|
import { PositionOrganizationField } from './Fields/PositionOrganizationField';
|
|
@@ -65,6 +67,7 @@ import { RegionField } from './Fields/RegionField';
|
|
|
65
67
|
import { RegionPremiumField } from './Fields/RegionPremiumField';
|
|
66
68
|
import { SecondaryPhoneField } from './Fields/SecondaryPhoneField';
|
|
67
69
|
import { ServiceDirectionField } from './Fields/ServiceDirectionField';
|
|
70
|
+
import { SexField } from './Fields/SexField';
|
|
68
71
|
import { SnilsField } from './Fields/SnilsField';
|
|
69
72
|
import { SurnameField } from './Fields/SurnameField';
|
|
70
73
|
import { TermField } from './Fields/TermField';
|
|
@@ -100,7 +103,9 @@ export const getField =
|
|
|
100
103
|
fullAddress: <FullAddressField field={field} input={input} />,
|
|
101
104
|
comment: <CommentField field={field} input={input} />,
|
|
102
105
|
addressBranch: <AddressBranchField field={field} input={input} isPremium={isPremium} />,
|
|
106
|
+
sex: <SexField field={field} input={input} />,
|
|
103
107
|
birthday: <BirthdayField field={field} input={input} />,
|
|
108
|
+
birthPlace: <BirthPlaceField field={field} input={input} />,
|
|
104
109
|
desiredMeetingDate: <DesiredMeetingDateField field={field} input={input} />,
|
|
105
110
|
product: <ProductField field={field} source={PRODUCT_REF} />,
|
|
106
111
|
localities: <LocalitiesField field={field} input={input} />,
|
|
@@ -147,6 +152,7 @@ export const getField =
|
|
|
147
152
|
positionOrganization: <PositionOrganizationField field={field} input={input} />,
|
|
148
153
|
familyStatus: <FamilyStatusField field={field} input={input} />,
|
|
149
154
|
children: <ChildrenField field={field} input={input} />,
|
|
155
|
+
// eslint-disable-next-line max-lines
|
|
150
156
|
familyMembers: <FamilyMembersField field={field} input={input} />,
|
|
151
157
|
dependents: <DependentsField field={field} input={input} />,
|
|
152
158
|
totalIncome: <TotalIncomeField field={field} input={input} />,
|
|
@@ -159,6 +165,8 @@ export const getField =
|
|
|
159
165
|
dulIssueDateField: <DulIssueDateField field={field} input={input} />,
|
|
160
166
|
dulSubdivisionCode: <DulSubdivisionCode field={field} input={input} />,
|
|
161
167
|
dulIssuedBy: <DulIssuedBy field={field} input={input} />,
|
|
168
|
+
participantAddress: <ParticipantAddressField field={field} input={input} />,
|
|
169
|
+
participantDateRegistration: <ParticipantDateRegistrationField field={field} input={input} />,
|
|
162
170
|
};
|
|
163
171
|
|
|
164
172
|
return isRenderField({ input, field }) ? (
|
|
@@ -25,6 +25,7 @@ export const validatorObj: Record<string, Validator> = {
|
|
|
25
25
|
phone: phoneValidator('Укажите номер телефона'),
|
|
26
26
|
secondaryPhone: phoneValidator('Укажите номер телефона'),
|
|
27
27
|
birthday: defaultValidator('Укажите дату рождения'),
|
|
28
|
+
birthPlace: defaultValidator('Укажите место рождения'),
|
|
28
29
|
education: defaultValidator('Выберите ваше образование'),
|
|
29
30
|
housing: defaultValidator('Выберите тип жилья'),
|
|
30
31
|
employment: defaultValidator('Выберите информацию о трудоустройстве'),
|
|
@@ -78,6 +79,9 @@ export const validatorObj: Record<string, Validator> = {
|
|
|
78
79
|
snils: snilsValidator('Некорректный номер СНИЛС'),
|
|
79
80
|
conscription: defaultValidator(),
|
|
80
81
|
armyIdFlg: agreementValidator,
|
|
82
|
+
sex: defaultValidator('Укажите свой пол'),
|
|
83
|
+
participantAddress: defaultValidator('Необходимо выбрать адрес'),
|
|
84
|
+
participantDateRegistration: defaultValidator('Укажите дату регистрации'),
|
|
81
85
|
};
|
|
82
86
|
|
|
83
87
|
export const getObjectValidator = (inputs: FieldDef[]): Record<string, Validator> => {
|
|
@@ -6,6 +6,7 @@ import { inputValidStyle } from './inputValidStyle';
|
|
|
6
6
|
import { renderLabel } from './renderLabel';
|
|
7
7
|
|
|
8
8
|
export const Input = JSX<InputProps>(
|
|
9
|
+
// eslint-disable-next-line max-lines-per-function
|
|
9
10
|
({
|
|
10
11
|
key,
|
|
11
12
|
className = '',
|
|
@@ -23,6 +24,7 @@ export const Input = JSX<InputProps>(
|
|
|
23
24
|
pattern,
|
|
24
25
|
autoFocus = false,
|
|
25
26
|
isTextarea = false,
|
|
27
|
+
disabled = false,
|
|
26
28
|
}) => {
|
|
27
29
|
const inputRef = useRef<HTMLInputElement | null>(null);
|
|
28
30
|
|
|
@@ -58,6 +60,7 @@ export const Input = JSX<InputProps>(
|
|
|
58
60
|
onChange={handleChange}
|
|
59
61
|
onFocus={onFocus}
|
|
60
62
|
onBlur={onBlur}
|
|
63
|
+
disabled={disabled}
|
|
61
64
|
/>
|
|
62
65
|
) : (
|
|
63
66
|
<input
|
|
@@ -73,6 +76,7 @@ export const Input = JSX<InputProps>(
|
|
|
73
76
|
onFocus={onFocus}
|
|
74
77
|
onBlur={onBlur}
|
|
75
78
|
pattern={pattern}
|
|
79
|
+
disabled={disabled}
|
|
76
80
|
/>
|
|
77
81
|
)}
|
|
78
82
|
</label>
|
|
@@ -4,19 +4,15 @@ import { PhoneInput } from '../PhoneInput/PhoneInput';
|
|
|
4
4
|
import { type InputProps } from './InputProps';
|
|
5
5
|
import { renderErrorText } from './renderErrorText';
|
|
6
6
|
|
|
7
|
-
export const InputPhoneControl = JSX<InputProps>(
|
|
8
|
-
|
|
9
|
-
<
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
{renderErrorText(error)}
|
|
20
|
-
</div>
|
|
21
|
-
),
|
|
22
|
-
);
|
|
7
|
+
export const InputPhoneControl = JSX<InputProps>(({ className, label, error, ...rest }) => (
|
|
8
|
+
<div className={style('shrink-0 w-full', className)}>
|
|
9
|
+
<PhoneInput
|
|
10
|
+
aria-label={label}
|
|
11
|
+
label={rest?.errors ? `${label}*` : label}
|
|
12
|
+
valid={Boolean(!error)}
|
|
13
|
+
placeholder="+7 (___) ___-__-__"
|
|
14
|
+
{...rest}
|
|
15
|
+
/>
|
|
16
|
+
{renderErrorText(error)}
|
|
17
|
+
</div>
|
|
18
|
+
));
|
|
@@ -3,12 +3,14 @@ import { type TextProps } from '../../model/HeadlineType';
|
|
|
3
3
|
import { type ListOrientation } from '../../model/ListOrientation';
|
|
4
4
|
import { style } from '../../utils/style';
|
|
5
5
|
import { Checkbox } from '../Checkbox/Checkbox';
|
|
6
|
+
import { Text } from '../Text/Text';
|
|
6
7
|
|
|
7
8
|
export type RadioButtonItem = TextProps & {
|
|
8
9
|
id: string;
|
|
9
10
|
};
|
|
10
11
|
|
|
11
12
|
interface RadioButtonGroupProps {
|
|
13
|
+
title?: string;
|
|
12
14
|
items?: RadioButtonItem[];
|
|
13
15
|
checkedItem?: string;
|
|
14
16
|
className?: string;
|
|
@@ -18,12 +20,13 @@ interface RadioButtonGroupProps {
|
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
const orientationStyleMap: Record<ListOrientation, string> = {
|
|
21
|
-
horizontal: '
|
|
22
|
-
vertical: '
|
|
23
|
+
horizontal: '@lg:flex-row',
|
|
24
|
+
vertical: '',
|
|
23
25
|
};
|
|
24
26
|
|
|
25
27
|
export const RadioButtonGroup = JSX<RadioButtonGroupProps>(
|
|
26
28
|
({
|
|
29
|
+
title,
|
|
27
30
|
items,
|
|
28
31
|
checkedItem,
|
|
29
32
|
className,
|
|
@@ -31,21 +34,30 @@ export const RadioButtonGroup = JSX<RadioButtonGroupProps>(
|
|
|
31
34
|
disabled = false,
|
|
32
35
|
orientation = 'horizontal',
|
|
33
36
|
}) => (
|
|
34
|
-
<div
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
37
|
+
<div className="grid gap-xs whitespace-nowrap">
|
|
38
|
+
{title ? (
|
|
39
|
+
<div role="radiogroup" aria-label={title}>
|
|
40
|
+
<Text color="text-secondary-text" font="font-light">
|
|
41
|
+
{title}
|
|
42
|
+
</Text>
|
|
43
|
+
</div>
|
|
44
|
+
) : null}
|
|
45
|
+
<div
|
|
46
|
+
className={style('flex flex-col gap-s', orientationStyleMap[orientation], className)}
|
|
47
|
+
role="radiogroup"
|
|
48
|
+
aria-label="Группа кнопок"
|
|
49
|
+
>
|
|
50
|
+
{items?.map(({ id, text }) => (
|
|
51
|
+
<Checkbox
|
|
52
|
+
key={String(id)}
|
|
53
|
+
isRadio
|
|
54
|
+
text={text}
|
|
55
|
+
value={checkedItem === id}
|
|
56
|
+
onChange={() => onChangeCheckedItem && onChangeCheckedItem(id)}
|
|
57
|
+
disabled={disabled}
|
|
58
|
+
/>
|
|
59
|
+
))}
|
|
60
|
+
</div>
|
|
49
61
|
</div>
|
|
50
62
|
),
|
|
51
63
|
);
|
package/package.json
CHANGED
|
@@ -5,6 +5,7 @@ import { type AspectsProps } from '../../model/AspectsProps';
|
|
|
5
5
|
import { type LabelProps, type TextProps, type TitleProps } from '../../model/HeadlineType';
|
|
6
6
|
import { type LinkButtonVersion } from '../../model/LinkButtonVersion';
|
|
7
7
|
import { type Target } from '../../model/LinkProps';
|
|
8
|
+
import { type NameFieldDef } from '../../ui-kit/FormField/NameFieldDef';
|
|
8
9
|
import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
|
|
9
10
|
|
|
10
11
|
interface Required {
|
|
@@ -15,82 +16,6 @@ interface Required {
|
|
|
15
16
|
export type SubmitButtonProps = TextProps & {
|
|
16
17
|
version?: LinkButtonVersion;
|
|
17
18
|
};
|
|
18
|
-
/**
|
|
19
|
-
* @title Название поля ввода
|
|
20
|
-
* @required
|
|
21
|
-
* @enumNames ["Фамилия", "Имя", "Отчество", "Образование", "Тип жилья", "Информация о трудоустройстве", "Тип организации", "Количество работающих в организации", "Вид деятельности работодателя", "Вид организации работодателя", "Должность в организации", "Серия документа", "Номер документа", "Дата выдачи", "Код подразделения", "Кем выдан", "Email", "Телефон", "ФИО", "ИНН", "ОПФ", "Наименование организации", "Общий стаж", "Стаж на последнем рабочем месте", "Стаж", "Количество мест работы", "Дата начала работы на текущем месте", "Адрес работодателя", "Комментарий", "Регион", "Регион выездной сервис", "Адрес", "Тип формы", "День рождения", "Клиент банка", "Согласие на получение материалов", "Тип эквайринга", "Онлайн касса", "POS-терминал", "Направление обслуживания", "Ультра/Премиум", "Тип обратной связи", "Способ получения ответа", "Банковский служащий", "Дата и время обращения", "Дополнительный телефон", "ВЭД", "Срок (месяцев)", "Сумма ₽", "Годовой доход", "Количество объектов инкассации", "День встречи", "Продукт", "Комментарий партнёров", "Согласие на обработку", "Семейное положение", "Количество иждивенцев", "Количество членов семьи", "Количество детей до 18 лет", "Совокупный официальный доход в месяц после вычета налогов (зарплата, премии)", "Статус военнообязанного", "Обязательные расходы в месяц", "Наличие военного билета", "Обязательные расходы в месяц"]
|
|
22
|
-
*/
|
|
23
|
-
export type NameFieldDef =
|
|
24
|
-
| 'surname'
|
|
25
|
-
| 'name'
|
|
26
|
-
| 'middleName'
|
|
27
|
-
| 'education'
|
|
28
|
-
| 'housing'
|
|
29
|
-
| 'employment'
|
|
30
|
-
| 'organization'
|
|
31
|
-
| 'amountWorkers'
|
|
32
|
-
| 'employerActivities'
|
|
33
|
-
| 'employerOrganization'
|
|
34
|
-
| 'positionOrganization'
|
|
35
|
-
| 'dulSerie'
|
|
36
|
-
| 'dulNumber'
|
|
37
|
-
| 'dulIssueDateField'
|
|
38
|
-
| 'dulSubdivisionCode'
|
|
39
|
-
| 'dulIssuedBy'
|
|
40
|
-
| 'email'
|
|
41
|
-
| 'phone'
|
|
42
|
-
| 'fullName'
|
|
43
|
-
| 'inn'
|
|
44
|
-
| 'comment'
|
|
45
|
-
| 'region'
|
|
46
|
-
| 'addressBranch'
|
|
47
|
-
| 'typeForm'
|
|
48
|
-
| 'birthday'
|
|
49
|
-
| 'isClient'
|
|
50
|
-
| 'consentToReceiveMaterials'
|
|
51
|
-
| 'acquiringType'
|
|
52
|
-
| 'onlineCheckout'
|
|
53
|
-
| 'posTerminal'
|
|
54
|
-
| 'serviceDirection'
|
|
55
|
-
| 'serviceType'
|
|
56
|
-
| 'feedbackMethod'
|
|
57
|
-
| 'bankEmpolee'
|
|
58
|
-
| 'applicationDate'
|
|
59
|
-
| 'secondaryPhone'
|
|
60
|
-
| 'vedTypes'
|
|
61
|
-
| 'term'
|
|
62
|
-
| 'amount'
|
|
63
|
-
| 'annualRevenue'
|
|
64
|
-
| 'collectionCount'
|
|
65
|
-
| 'desiredMeetingDate'
|
|
66
|
-
| 'product'
|
|
67
|
-
| 'localities'
|
|
68
|
-
| 'partnerComments'
|
|
69
|
-
| 'consentDataProcessing'
|
|
70
|
-
| 'consentInformFlg'
|
|
71
|
-
| 'consentCollectionFlg'
|
|
72
|
-
| 'consentAssignmentClaimsFlg'
|
|
73
|
-
| 'consentPhotoFlg'
|
|
74
|
-
| 'consentPfrFlg'
|
|
75
|
-
| 'consentProviderFlg'
|
|
76
|
-
| 'processPersonalDataLeadFlg'
|
|
77
|
-
| 'legalForm'
|
|
78
|
-
| 'organizationName'
|
|
79
|
-
| 'generalSeniority'
|
|
80
|
-
| 'lastJobExperience'
|
|
81
|
-
| 'experience5Years'
|
|
82
|
-
| 'jobsNumber'
|
|
83
|
-
| 'beginDate'
|
|
84
|
-
| 'fullAddress'
|
|
85
|
-
| 'familyStatus'
|
|
86
|
-
| 'children'
|
|
87
|
-
| 'familyMembers'
|
|
88
|
-
| 'dependents'
|
|
89
|
-
| 'totalIncome'
|
|
90
|
-
| 'expenses'
|
|
91
|
-
| 'snils'
|
|
92
|
-
| 'conscription'
|
|
93
|
-
| 'armyIdFlg';
|
|
94
19
|
|
|
95
20
|
export type ConditionFieldProps = {
|
|
96
21
|
/** @title Условия отображения полей формы */
|
|
@@ -38,6 +38,6 @@ const getRegion = (region?: Option): Record<string, string> =>
|
|
|
38
38
|
const getVedTypes = (vedTypes?: string): { vedTypes?: Record<string, boolean> } =>
|
|
39
39
|
vedTypes
|
|
40
40
|
? {
|
|
41
|
-
vedTypes: Object.fromEntries(VED_TYPES.map((
|
|
41
|
+
vedTypes: Object.fromEntries(VED_TYPES.map(({ id }) => [id, id === vedTypes])),
|
|
42
42
|
}
|
|
43
43
|
: {};
|
|
@@ -23,7 +23,12 @@ export default {
|
|
|
23
23
|
{
|
|
24
24
|
columns: 2,
|
|
25
25
|
inputs: [
|
|
26
|
-
{
|
|
26
|
+
{
|
|
27
|
+
fieldType: 'common',
|
|
28
|
+
name: 'participantAddress',
|
|
29
|
+
required: true,
|
|
30
|
+
dadata: true,
|
|
31
|
+
},
|
|
27
32
|
{ fieldType: 'common', name: 'name', required: true, dadata: true },
|
|
28
33
|
{ fieldType: 'common', name: 'middleName', dadata: true },
|
|
29
34
|
{ fieldType: 'common', name: 'birthday', required: true },
|
|
@@ -49,6 +54,64 @@ export default {
|
|
|
49
54
|
<DialogManager />
|
|
50
55
|
</div>
|
|
51
56
|
),
|
|
57
|
+
step1: (
|
|
58
|
+
<div className="container grid grid-cols-12">
|
|
59
|
+
<ApplicationLeadForm
|
|
60
|
+
className="col-span-12"
|
|
61
|
+
title="Заявка на кредит «Кредит на любые цели»"
|
|
62
|
+
typeForm="CORRUPTION"
|
|
63
|
+
endpoint="lead"
|
|
64
|
+
sections={[
|
|
65
|
+
{ title: 'Персональные данные', inputs: [] },
|
|
66
|
+
{
|
|
67
|
+
columns: 2,
|
|
68
|
+
inputs: [
|
|
69
|
+
{ fieldType: 'common', name: 'middleName', required: true },
|
|
70
|
+
{ fieldType: 'common', name: 'name', required: true },
|
|
71
|
+
{ fieldType: 'common', name: 'middleName' },
|
|
72
|
+
{ fieldType: 'common', name: 'sex', required: true },
|
|
73
|
+
{ fieldType: 'common', name: 'birthday', required: true },
|
|
74
|
+
{ fieldType: 'common', name: 'birthPlace', required: true },
|
|
75
|
+
{ fieldType: 'common', name: 'phone', required: true },
|
|
76
|
+
{ fieldType: 'common', name: 'email', required: true },
|
|
77
|
+
],
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
title: 'Паспортные данные',
|
|
81
|
+
inputs: [
|
|
82
|
+
{ fieldType: 'common', name: 'dulSerie', required: true },
|
|
83
|
+
{ fieldType: 'common', name: 'dulNumber', required: true },
|
|
84
|
+
{ fieldType: 'common', name: 'dulIssueDateField', required: true },
|
|
85
|
+
{ fieldType: 'common', name: 'dulSubdivisionCode', required: true },
|
|
86
|
+
],
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
inputs: [
|
|
90
|
+
{ fieldType: 'common', name: 'dulIssuedBy', required: true },
|
|
91
|
+
{
|
|
92
|
+
fieldType: 'common',
|
|
93
|
+
name: 'education',
|
|
94
|
+
required: true,
|
|
95
|
+
},
|
|
96
|
+
],
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
title: 'Адрес регистрации по месту жительства',
|
|
100
|
+
inputs: [],
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
inputs: [
|
|
104
|
+
{ fieldType: 'common', name: 'participantDateRegistration', required: true },
|
|
105
|
+
{ fieldType: 'common', name: 'participantAddress', required: true },
|
|
106
|
+
],
|
|
107
|
+
},
|
|
108
|
+
]}
|
|
109
|
+
button={button}
|
|
110
|
+
/>
|
|
111
|
+
<PopupManager />
|
|
112
|
+
<DialogManager />
|
|
113
|
+
</div>
|
|
114
|
+
),
|
|
52
115
|
employmentData: (
|
|
53
116
|
<div className="container grid grid-cols-12">
|
|
54
117
|
<ApplicationLeadForm
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
/* eslint-disable max-len */
|
|
2
|
-
|
|
3
1
|
import { type FormFieldRegisterer } from '../../hooks/useForm';
|
|
4
2
|
import { type LabelProps, type TextProps, type TitleProps } from '../../model/HeadlineType';
|
|
5
3
|
import { type LinkButtonVersion } from '../../model/LinkButtonVersion';
|
|
6
4
|
import { type Target } from '../../model/LinkProps';
|
|
5
|
+
import { type NameFieldDef } from '../../ui-kit/FormField/NameFieldDef';
|
|
7
6
|
import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
|
|
8
7
|
import { type FormState } from './getInitialFormState';
|
|
9
8
|
|
|
@@ -15,82 +14,6 @@ interface Required {
|
|
|
15
14
|
export type SubmitButtonProps = TextProps & {
|
|
16
15
|
version?: LinkButtonVersion;
|
|
17
16
|
};
|
|
18
|
-
/**
|
|
19
|
-
* @title Название поля ввода
|
|
20
|
-
* @required
|
|
21
|
-
* @enumNames ["Фамилия", "Имя", "Отчество", "Образование", "Тип жилья", "Информация о трудоустройстве", "Тип организации", "Количество работающих в организации", "Вид деятельности работодателя", "Вид организации работодателя", "Должность в организации", "Серия документа", "Номер документа", "Дата выдачи", "Код подразделения", "Кем выдан", "Email", "Телефон", "ФИО", "ИНН", "ОПФ", "Наименование организации", "Общий стаж", "Стаж на последнем рабочем месте", "Стаж", "Количество мест работы", "Дата начала работы на текущем месте", "Адрес работодателя", "Комментарий", "Регион", "Регион выездной сервис", "Адрес", "Тип формы", "День рождения", "Клиент банка", "Согласие на получение материалов", "Тип эквайринга", "Онлайн касса", "POS-терминал", "Направление обслуживания", "Ультра/Премиум", "Тип обратной связи", "Способ получения ответа", "Банковский служащий", "Дата и время обращения", "Дополнительный телефон", "ВЭД", "Срок (месяцев)", "Сумма ₽", "Годовой доход", "Количество объектов инкассации", "День встречи", "Продукт", "Комментарий партнёров", "Согласие на обработку", "Семейное положение", "Количество иждивенцев", "Количество членов семьи", "Количество детей до 18 лет", "Совокупный официальный доход в месяц после вычета налогов (зарплата, премии)", "Статус военнообязанного", "Обязательные расходы в месяц", "Наличие военного билета", "Обязательные расходы в месяц"]
|
|
22
|
-
*/
|
|
23
|
-
export type NameFieldDef =
|
|
24
|
-
| 'surname'
|
|
25
|
-
| 'name'
|
|
26
|
-
| 'middleName'
|
|
27
|
-
| 'education'
|
|
28
|
-
| 'housing'
|
|
29
|
-
| 'employment'
|
|
30
|
-
| 'organization'
|
|
31
|
-
| 'amountWorkers'
|
|
32
|
-
| 'employerActivities'
|
|
33
|
-
| 'employerOrganization'
|
|
34
|
-
| 'positionOrganization'
|
|
35
|
-
| 'dulSerie'
|
|
36
|
-
| 'dulNumber'
|
|
37
|
-
| 'dulIssueDateField'
|
|
38
|
-
| 'dulSubdivisionCode'
|
|
39
|
-
| 'dulIssuedBy'
|
|
40
|
-
| 'email'
|
|
41
|
-
| 'phone'
|
|
42
|
-
| 'fullName'
|
|
43
|
-
| 'inn'
|
|
44
|
-
| 'legalForm'
|
|
45
|
-
| 'organizationName'
|
|
46
|
-
| 'generalSeniority'
|
|
47
|
-
| 'lastJobExperience'
|
|
48
|
-
| 'experience5Years'
|
|
49
|
-
| 'jobsNumber'
|
|
50
|
-
| 'beginDate'
|
|
51
|
-
| 'fullAddress'
|
|
52
|
-
| 'comment'
|
|
53
|
-
| 'region'
|
|
54
|
-
| 'addressBranch'
|
|
55
|
-
| 'typeForm'
|
|
56
|
-
| 'birthday'
|
|
57
|
-
| 'isClient'
|
|
58
|
-
| 'consentToReceiveMaterials'
|
|
59
|
-
| 'acquiringType'
|
|
60
|
-
| 'onlineCheckout'
|
|
61
|
-
| 'posTerminal'
|
|
62
|
-
| 'serviceDirection'
|
|
63
|
-
| 'serviceType'
|
|
64
|
-
| 'feedbackMethod'
|
|
65
|
-
| 'bankEmpolee'
|
|
66
|
-
| 'applicationDate'
|
|
67
|
-
| 'secondaryPhone'
|
|
68
|
-
| 'vedTypes'
|
|
69
|
-
| 'term'
|
|
70
|
-
| 'amount'
|
|
71
|
-
| 'annualRevenue'
|
|
72
|
-
| 'collectionCount'
|
|
73
|
-
| 'desiredMeetingDate'
|
|
74
|
-
| 'product'
|
|
75
|
-
| 'localities'
|
|
76
|
-
| 'partnerComments'
|
|
77
|
-
| 'consentDataProcessing'
|
|
78
|
-
| 'consentInformFlg'
|
|
79
|
-
| 'consentCollectionFlg'
|
|
80
|
-
| 'consentAssignmentClaimsFlg'
|
|
81
|
-
| 'consentPhotoFlg'
|
|
82
|
-
| 'consentPfrFlg'
|
|
83
|
-
| 'consentProviderFlg'
|
|
84
|
-
| 'processPersonalDataLeadFlg'
|
|
85
|
-
| 'familyStatus'
|
|
86
|
-
| 'children'
|
|
87
|
-
| 'familyMembers'
|
|
88
|
-
| 'dependents'
|
|
89
|
-
| 'totalIncome'
|
|
90
|
-
| 'expenses'
|
|
91
|
-
| 'snils'
|
|
92
|
-
| 'conscription'
|
|
93
|
-
| 'armyIdFlg';
|
|
94
17
|
|
|
95
18
|
export type ConditionFieldProps = {
|
|
96
19
|
/** @title Условия отображения полей формы */
|
|
@@ -14,7 +14,10 @@ export interface FormState {
|
|
|
14
14
|
name?: string;
|
|
15
15
|
middleName?: string;
|
|
16
16
|
fullName?: string;
|
|
17
|
+
registrationDate?: Date;
|
|
17
18
|
birthday?: Date;
|
|
19
|
+
birthPlace?: string;
|
|
20
|
+
sex?: string;
|
|
18
21
|
phone?: string;
|
|
19
22
|
secondaryPhone?: string;
|
|
20
23
|
education?: string;
|
|
@@ -79,6 +82,8 @@ export interface FormState {
|
|
|
79
82
|
snils?: string;
|
|
80
83
|
conscription?: string;
|
|
81
84
|
armyIdFlg?: boolean;
|
|
85
|
+
participantAddress?: string;
|
|
86
|
+
participantDateRegistration?: Date;
|
|
82
87
|
}
|
|
83
88
|
|
|
84
89
|
const initialFormState = {
|
|
@@ -112,6 +117,8 @@ const initialFormState = {
|
|
|
112
117
|
consentAssignmentClaimsFlg: false,
|
|
113
118
|
consentCollectionFlg: false,
|
|
114
119
|
consentInformFlg: false,
|
|
120
|
+
participantAddress: '',
|
|
121
|
+
participantDateRegistration: undefined,
|
|
115
122
|
};
|
|
116
123
|
|
|
117
124
|
export const getInitialFormState = (inputs: FieldDef[], typeForm = ''): FormState => {
|