@redneckz/wildless-cms-uni-blocks 0.14.689 → 0.14.690
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/bundle.umd.js +50 -38
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/CreditCardForm/{getFirstStepData.d.ts → getCardData.d.ts} +1 -1
- package/bundle/ui-kit/FormField/SelectField.d.ts +1 -0
- package/dist/components/CreditCardForm/StepsNavigationButtons.js +1 -1
- package/dist/components/CreditCardForm/calculateInputs.js +2 -1
- package/dist/components/CreditCardForm/calculateInputs.js.map +1 -1
- package/dist/components/CreditCardForm/creditCardFormStepsData.js +18 -9
- package/dist/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
- package/dist/components/CreditCardForm/{getFirstStepData.d.ts → getCardData.d.ts} +1 -1
- package/{mobile/dist/components/CreditCardForm/getFirstStepData.js → dist/components/CreditCardForm/getCardData.js} +4 -4
- package/dist/components/CreditCardForm/getCardData.js.map +1 -0
- package/dist/components/CreditCardForm/getCreditCardFormTaskData.js +3 -2
- package/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/dist/components/CreditForm/calculateInputs.js +1 -1
- package/dist/components/CreditForm/calculateInputs.js.map +1 -1
- package/dist/components/CreditForm/creditFormStepsData.js +6 -6
- package/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/dist/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js +0 -1
- package/dist/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -1
- package/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +1 -1
- package/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/CreditInRshbCdField.js +3 -3
- package/dist/ui-kit/FormField/Fields/CreditInRshbCdField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/LegalEntityNameField.js +1 -1
- package/dist/ui-kit/FormField/Fields/LegalEntityNameField.js.map +1 -1
- package/dist/ui-kit/FormField/SelectField.d.ts +1 -0
- package/dist/ui-kit/FormField/SelectField.js +4 -2
- package/dist/ui-kit/FormField/SelectField.js.map +1 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.fixture.d.ts +1 -0
- package/lib/components/CreditCardForm/StepsNavigationButtons.js +1 -1
- package/lib/components/CreditCardForm/calculateInputs.js +2 -1
- package/lib/components/CreditCardForm/calculateInputs.js.map +1 -1
- package/lib/components/CreditCardForm/creditCardFormStepsData.js +18 -9
- package/lib/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
- package/lib/components/CreditCardForm/{getFirstStepData.d.ts → getCardData.d.ts} +1 -1
- package/lib/components/CreditCardForm/{getFirstStepData.js → getCardData.js} +2 -2
- package/lib/components/CreditCardForm/getCardData.js.map +1 -0
- package/lib/components/CreditCardForm/getCreditCardFormTaskData.js +3 -2
- package/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/lib/components/CreditForm/calculateInputs.js +1 -1
- package/lib/components/CreditForm/calculateInputs.js.map +1 -1
- package/lib/components/CreditForm/creditFormStepsData.js +6 -6
- package/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js +0 -1
- package/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -1
- package/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +1 -1
- package/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/CreditInRshbCdField.js +3 -3
- package/lib/ui-kit/FormField/Fields/CreditInRshbCdField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/LegalEntityNameField.js +1 -1
- package/lib/ui-kit/FormField/Fields/LegalEntityNameField.js.map +1 -1
- package/lib/ui-kit/FormField/SelectField.d.ts +1 -0
- package/lib/ui-kit/FormField/SelectField.js +4 -2
- package/lib/ui-kit/FormField/SelectField.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +50 -38
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/CreditCardForm/{getFirstStepData.d.ts → getCardData.d.ts} +1 -1
- package/mobile/bundle/ui-kit/FormField/SelectField.d.ts +1 -0
- package/mobile/dist/components/CreditCardForm/StepsNavigationButtons.js +1 -1
- package/mobile/dist/components/CreditCardForm/calculateInputs.js +2 -1
- package/mobile/dist/components/CreditCardForm/calculateInputs.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.js +18 -9
- package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/getCardData.d.ts +3 -0
- package/{dist/components/CreditCardForm/getFirstStepData.js → mobile/dist/components/CreditCardForm/getCardData.js} +4 -4
- package/mobile/dist/components/CreditCardForm/getCardData.js.map +1 -0
- package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js +3 -2
- package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/mobile/dist/components/CreditForm/calculateInputs.js +1 -1
- package/mobile/dist/components/CreditForm/calculateInputs.js.map +1 -1
- package/mobile/dist/components/CreditForm/creditFormStepsData.js +6 -6
- package/mobile/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/mobile/dist/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js +0 -1
- package/mobile/dist/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -1
- package/mobile/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +1 -1
- package/mobile/dist/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/CreditInRshbCdField.js +3 -3
- package/mobile/dist/ui-kit/FormField/Fields/CreditInRshbCdField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/LegalEntityNameField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/LegalEntityNameField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/SelectField.d.ts +1 -0
- package/mobile/dist/ui-kit/FormField/SelectField.js +4 -2
- package/mobile/dist/ui-kit/FormField/SelectField.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/StepsNavigationButtons.js +1 -1
- package/mobile/lib/components/CreditCardForm/calculateInputs.js +2 -1
- package/mobile/lib/components/CreditCardForm/calculateInputs.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.js +18 -9
- package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/getCardData.d.ts +3 -0
- package/mobile/lib/components/CreditCardForm/{getFirstStepData.js → getCardData.js} +2 -2
- package/mobile/lib/components/CreditCardForm/getCardData.js.map +1 -0
- package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js +3 -2
- package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/mobile/lib/components/CreditForm/calculateInputs.js +1 -1
- package/mobile/lib/components/CreditForm/calculateInputs.js.map +1 -1
- package/mobile/lib/components/CreditForm/creditFormStepsData.js +6 -6
- package/mobile/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/mobile/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js +0 -1
- package/mobile/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -1
- package/mobile/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js +1 -1
- package/mobile/lib/ui-kit/ConsentBkiDialog/useConsentBkiDialog.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/CreditInRshbCdField.js +3 -3
- package/mobile/lib/ui-kit/FormField/Fields/CreditInRshbCdField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/LegalEntityNameField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/LegalEntityNameField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/SelectField.d.ts +1 -0
- package/mobile/lib/ui-kit/FormField/SelectField.js +4 -2
- package/mobile/lib/ui-kit/FormField/SelectField.js.map +1 -1
- package/mobile/src/components/CreditCardForm/StepsNavigationButtons.tsx +1 -1
- package/mobile/src/components/CreditCardForm/calculateInputs.ts +6 -3
- package/mobile/src/components/CreditCardForm/creditCardFormStepsData.tsx +18 -9
- package/mobile/src/components/CreditCardForm/{getFirstStepData.tsx → getCardData.tsx} +1 -1
- package/mobile/src/components/CreditCardForm/getCreditCardFormTaskData.ts +3 -2
- package/mobile/src/components/CreditForm/calculateInputs.ts +3 -3
- package/mobile/src/components/CreditForm/creditFormStepsData.tsx +6 -6
- package/mobile/src/ui-kit/ConsentBkiDialog/ConsentBkiDialog.tsx +0 -1
- package/mobile/src/ui-kit/ConsentBkiDialog/useConsentBkiDialog.tsx +1 -1
- package/mobile/src/ui-kit/FormField/Fields/CreditInRshbCdField.tsx +3 -2
- package/mobile/src/ui-kit/FormField/Fields/LegalEntityNameField.tsx +1 -0
- package/mobile/src/ui-kit/FormField/SelectField.tsx +5 -4
- package/package.json +1 -1
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.fixture.tsx +13 -0
- package/src/components/CreditCardForm/StepsNavigationButtons.tsx +1 -1
- package/src/components/CreditCardForm/calculateInputs.ts +6 -3
- package/src/components/CreditCardForm/creditCardFormStepsData.tsx +18 -9
- package/src/components/CreditCardForm/{getFirstStepData.tsx → getCardData.tsx} +1 -1
- package/src/components/CreditCardForm/getCreditCardFormTaskData.ts +3 -2
- package/src/components/CreditForm/calculateInputs.ts +3 -3
- package/src/components/CreditForm/creditFormStepsData.tsx +6 -6
- package/src/ui-kit/ConsentBkiDialog/ConsentBkiDialog.tsx +0 -1
- package/src/ui-kit/ConsentBkiDialog/useConsentBkiDialog.tsx +1 -1
- package/src/ui-kit/FormField/Fields/CreditInRshbCdField.tsx +3 -2
- package/src/ui-kit/FormField/Fields/LegalEntityNameField.tsx +1 -0
- package/src/ui-kit/FormField/SelectField.tsx +5 -4
- package/dist/components/CreditCardForm/getFirstStepData.js.map +0 -1
- package/lib/components/CreditCardForm/getFirstStepData.js.map +0 -1
- package/mobile/dist/components/CreditCardForm/getFirstStepData.d.ts +0 -3
- package/mobile/dist/components/CreditCardForm/getFirstStepData.js.map +0 -1
- package/mobile/lib/components/CreditCardForm/getFirstStepData.d.ts +0 -3
- package/mobile/lib/components/CreditCardForm/getFirstStepData.js.map +0 -1
|
@@ -34,8 +34,8 @@ export const stepsSectionsMap: CreditCardSectionsProps[][] = [
|
|
|
34
34
|
{ fieldType: 'common', name: 'middleName', dadata: true, filledByEsia: true },
|
|
35
35
|
{ fieldType: 'common', name: 'sex', required: true },
|
|
36
36
|
{ fieldType: 'common', name: 'limitedBirthday', required: true, filledByEsia: true },
|
|
37
|
-
{ fieldType: 'common', name: 'birthPlace', required: true },
|
|
38
|
-
{ fieldType: 'common', name: 'phone', required: true },
|
|
37
|
+
{ fieldType: 'common', name: 'birthPlace', required: true, filledByEsia: true },
|
|
38
|
+
{ fieldType: 'common', name: 'phone', required: true, filledByEsia: true },
|
|
39
39
|
{ fieldType: 'common', name: 'email', required: true, dadata: true },
|
|
40
40
|
],
|
|
41
41
|
},
|
|
@@ -119,7 +119,7 @@ export const stepsSectionsMap: CreditCardSectionsProps[][] = [
|
|
|
119
119
|
},
|
|
120
120
|
{
|
|
121
121
|
inputs: [
|
|
122
|
-
{ fieldType: 'common', name: 'employment' },
|
|
122
|
+
{ fieldType: 'common', name: 'employment', required: true },
|
|
123
123
|
{ fieldType: 'common', name: 'organizationName', required: true, dadata: true },
|
|
124
124
|
],
|
|
125
125
|
},
|
|
@@ -132,15 +132,15 @@ export const stepsSectionsMap: CreditCardSectionsProps[][] = [
|
|
|
132
132
|
},
|
|
133
133
|
{
|
|
134
134
|
inputs: [
|
|
135
|
-
{ fieldType: 'common', name: 'organization', required:
|
|
136
|
-
{ fieldType: 'common', name: 'amountWorkers', required:
|
|
135
|
+
{ fieldType: 'common', name: 'organization', required: true },
|
|
136
|
+
{ fieldType: 'common', name: 'amountWorkers', required: true },
|
|
137
137
|
],
|
|
138
138
|
},
|
|
139
139
|
{
|
|
140
140
|
columns: 2,
|
|
141
141
|
inputs: [
|
|
142
|
-
{ fieldType: 'common', name: 'employerActivities', required:
|
|
143
|
-
{ fieldType: 'common', name: 'employerOrganization', required:
|
|
142
|
+
{ fieldType: 'common', name: 'employerActivities', required: true },
|
|
143
|
+
{ fieldType: 'common', name: 'employerOrganization', required: true },
|
|
144
144
|
{ fieldType: 'common', name: 'generalSeniority', required: true },
|
|
145
145
|
{ fieldType: 'common', name: 'lastJobExperience', required: true },
|
|
146
146
|
{ fieldType: 'common', name: 'experience5Years', required: true },
|
|
@@ -161,7 +161,7 @@ export const stepsSectionsMap: CreditCardSectionsProps[][] = [
|
|
|
161
161
|
{
|
|
162
162
|
columns: 2,
|
|
163
163
|
inputs: [
|
|
164
|
-
{ fieldType: 'common', name: 'positionOrganization', required:
|
|
164
|
+
{ fieldType: 'common', name: 'positionOrganization', required: true },
|
|
165
165
|
{
|
|
166
166
|
fieldType: 'common',
|
|
167
167
|
name: 'partInBusiness',
|
|
@@ -208,6 +208,10 @@ export const stepsSectionsMap: CreditCardSectionsProps[][] = [
|
|
|
208
208
|
},
|
|
209
209
|
],
|
|
210
210
|
},
|
|
211
|
+
{
|
|
212
|
+
columns: 1,
|
|
213
|
+
inputs: [{ fieldType: 'common', name: 'confirmationIncome', required: true }],
|
|
214
|
+
},
|
|
211
215
|
{
|
|
212
216
|
columns: 1,
|
|
213
217
|
inputs: [{ fieldType: 'common', name: 'wages', required: true }],
|
|
@@ -245,7 +249,12 @@ export const stepsSectionsMap: CreditCardSectionsProps[][] = [
|
|
|
245
249
|
inputs: [{ fieldType: 'common', name: 'shareholderFlg' }],
|
|
246
250
|
},
|
|
247
251
|
{
|
|
248
|
-
inputs: [
|
|
252
|
+
inputs: [
|
|
253
|
+
{
|
|
254
|
+
fieldType: 'common',
|
|
255
|
+
name: 'legalEntityName',
|
|
256
|
+
},
|
|
257
|
+
],
|
|
249
258
|
},
|
|
250
259
|
{
|
|
251
260
|
inputs: [{ fieldType: 'common', name: 'creditInRshbCd' }],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type Participant } from '../../api/RetailAPI/updateUserTask';
|
|
2
2
|
import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
3
3
|
|
|
4
|
-
export const
|
|
4
|
+
export const getCardData = (formData: FormState): Partial<Participant> => {
|
|
5
5
|
const { currency, paymentSystem, cardCategory, codeWord } = formData;
|
|
6
6
|
|
|
7
7
|
return {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type Participant, type UpdateUserTaskBody } from '../../api/RetailAPI/updateUserTask';
|
|
2
2
|
import { locationNavigator } from '../../external/locationNavigator';
|
|
3
3
|
import { type FormState } from '../ApplicationLeadForm/getInitialFormState';
|
|
4
|
+
import { getCardData } from './getCardData';
|
|
4
5
|
import { getFifthStepData } from './getFifthStepData';
|
|
5
|
-
import { getFirstStepData } from './getFirstStepData';
|
|
6
6
|
import { getFourthStepData } from './getFourthStepData';
|
|
7
7
|
import { getSecondStepData } from './getSecondStepData';
|
|
8
8
|
import { getDeliveryData, getOfficeCode, getSixthStepData } from './getSixthStepData';
|
|
@@ -46,6 +46,7 @@ export const getCreditCardFormTaskData = ({
|
|
|
46
46
|
...getCurrentStepData(step, formData),
|
|
47
47
|
},
|
|
48
48
|
],
|
|
49
|
+
...getCardData(formData),
|
|
49
50
|
...getDeliveryData(formData),
|
|
50
51
|
},
|
|
51
52
|
};
|
|
@@ -54,7 +55,7 @@ export const getCreditCardFormTaskData = ({
|
|
|
54
55
|
const getCurrentStepData = (step: number, formData: FormState): Partial<Participant> => {
|
|
55
56
|
switch (step) {
|
|
56
57
|
case 0:
|
|
57
|
-
return
|
|
58
|
+
return {};
|
|
58
59
|
case 1:
|
|
59
60
|
return getSecondStepData(formData);
|
|
60
61
|
case 2:
|
|
@@ -30,9 +30,6 @@ const checkIsRetiree = (step: number, getValue: GetValue) =>
|
|
|
30
30
|
const checkBusinessOwner = ({ name }: FieldDef, getValue: GetValue) =>
|
|
31
31
|
name === 'partInBusiness' && getValue('positionOrganization')?.key !== 'BUSINESS_OWNER';
|
|
32
32
|
|
|
33
|
-
const checkConsentPfrFlg = ({ name }: FieldDef, getValue: GetValue) =>
|
|
34
|
-
name === 'snils' && isSnilsRequired(getValue);
|
|
35
|
-
|
|
36
33
|
const checkAddressFillFromESIA = ({ name, filledByEsia }: FieldDef, getValue: GetValue) =>
|
|
37
34
|
name?.startsWith('address') && getValue('esiaAccountTypeCd')?.key && filledByEsia;
|
|
38
35
|
|
|
@@ -47,5 +44,8 @@ export const checkCondition = ({ condition }: FieldDef, getValue: GetValue) =>
|
|
|
47
44
|
return _ !== ((dataValue as Option)?.key ?? dataValue);
|
|
48
45
|
});
|
|
49
46
|
|
|
47
|
+
const checkConsentPfrFlg = ({ name }: FieldDef, getValue: GetValue) =>
|
|
48
|
+
name === 'snils' && isSnilsRequired(getValue);
|
|
49
|
+
|
|
50
50
|
const isSnilsRequired = (getValue: GetValue) =>
|
|
51
51
|
getValue('confirmationIncome')?.key !== 'PFR_CERTIFICATE';
|
|
@@ -116,7 +116,7 @@ export const stepsSectionsMap: SectionsProps[][] = [
|
|
|
116
116
|
},
|
|
117
117
|
{
|
|
118
118
|
inputs: [
|
|
119
|
-
{ fieldType: 'common', name: 'employment' },
|
|
119
|
+
{ fieldType: 'common', name: 'employment', required: true },
|
|
120
120
|
{ fieldType: 'common', name: 'organizationName', required: true, dadata: true },
|
|
121
121
|
],
|
|
122
122
|
},
|
|
@@ -129,15 +129,15 @@ export const stepsSectionsMap: SectionsProps[][] = [
|
|
|
129
129
|
},
|
|
130
130
|
{
|
|
131
131
|
inputs: [
|
|
132
|
-
{ fieldType: 'common', name: 'organization', required:
|
|
133
|
-
{ fieldType: 'common', name: 'amountWorkers', required:
|
|
132
|
+
{ fieldType: 'common', name: 'organization', required: true },
|
|
133
|
+
{ fieldType: 'common', name: 'amountWorkers', required: true },
|
|
134
134
|
],
|
|
135
135
|
},
|
|
136
136
|
{
|
|
137
137
|
columns: 2,
|
|
138
138
|
inputs: [
|
|
139
|
-
{ fieldType: 'common', name: 'employerActivities', required:
|
|
140
|
-
{ fieldType: 'common', name: 'employerOrganization', required:
|
|
139
|
+
{ fieldType: 'common', name: 'employerActivities', required: true },
|
|
140
|
+
{ fieldType: 'common', name: 'employerOrganization', required: true },
|
|
141
141
|
{ fieldType: 'common', name: 'generalSeniority', required: true },
|
|
142
142
|
{ fieldType: 'common', name: 'lastJobExperience', required: true },
|
|
143
143
|
{ fieldType: 'common', name: 'experience5Years', required: true },
|
|
@@ -158,7 +158,7 @@ export const stepsSectionsMap: SectionsProps[][] = [
|
|
|
158
158
|
{
|
|
159
159
|
columns: 2,
|
|
160
160
|
inputs: [
|
|
161
|
-
{ fieldType: 'common', name: 'positionOrganization', required:
|
|
161
|
+
{ fieldType: 'common', name: 'positionOrganization', required: true },
|
|
162
162
|
{
|
|
163
163
|
fieldType: 'common',
|
|
164
164
|
name: 'partInBusiness',
|
|
@@ -31,7 +31,7 @@ export const useConsentBkiDialog = (onClose: () => void) => {
|
|
|
31
31
|
if (confirmStatus === 'SIGNED' && phone) {
|
|
32
32
|
verifyPhoneDialog.open({
|
|
33
33
|
...verifyPhoneContent(phone),
|
|
34
|
-
|
|
34
|
+
onSuccess: handleSuccessVerify(profileId),
|
|
35
35
|
});
|
|
36
36
|
} else {
|
|
37
37
|
onClose();
|
|
@@ -3,8 +3,8 @@ import { useLeadFormData } from '../../../hooks/useLeadFormData';
|
|
|
3
3
|
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
4
4
|
import { SelectField } from '../SelectField';
|
|
5
5
|
|
|
6
|
-
const LABEL_TEXT = `Имеет ли юридическое лицо, акционером / участником / членом / пайщиком /
|
|
7
|
-
вкладчиком с долей участия более 20% уставного капитала руководителем,
|
|
6
|
+
const LABEL_TEXT = `Имеет ли юридическое лицо, акционером / участником / членом / пайщиком /
|
|
7
|
+
вкладчиком с долей участия более 20% уставного капитала руководителем,
|
|
8
8
|
которого Вы являетесь, кредит в АО «Россельхозбанк»`;
|
|
9
9
|
|
|
10
10
|
export const CreditInRshbCdField = JSX<CustomFieldProps>(({ field, input }) => {
|
|
@@ -17,6 +17,7 @@ export const CreditInRshbCdField = JSX<CustomFieldProps>(({ field, input }) => {
|
|
|
17
17
|
label={LABEL_TEXT}
|
|
18
18
|
fieldName="creditInRshbCd"
|
|
19
19
|
input={input}
|
|
20
|
+
disabled={!field?.('shareholderFlg')?.value}
|
|
20
21
|
/>
|
|
21
22
|
);
|
|
22
23
|
});
|
|
@@ -10,6 +10,7 @@ export const LegalEntityNameField = JSX<CustomFieldProps>(({ field, input }) =>
|
|
|
10
10
|
label="Наименование юридического лица"
|
|
11
11
|
{...input}
|
|
12
12
|
{...getValidation(field('legalEntityName'), validatorObj.legalEntityName, input?.required)}
|
|
13
|
+
disabled={!field?.('shareholderFlg')?.value}
|
|
13
14
|
/>
|
|
14
15
|
);
|
|
15
16
|
});
|
|
@@ -20,17 +20,19 @@ export interface SelectFieldProps extends CustomFieldProps, UniBlockProps {
|
|
|
20
20
|
fieldName: string;
|
|
21
21
|
placeholder?: string;
|
|
22
22
|
isSearch?: boolean;
|
|
23
|
+
disabled?: boolean;
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
export const SelectField = UniBlock<SelectFieldProps>(
|
|
26
27
|
({
|
|
27
28
|
field,
|
|
28
29
|
source,
|
|
29
|
-
label,
|
|
30
30
|
fieldName,
|
|
31
31
|
input,
|
|
32
32
|
placeholder = 'Выберите из списка',
|
|
33
|
-
|
|
33
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
34
|
+
options,
|
|
35
|
+
...rest
|
|
34
36
|
}) => {
|
|
35
37
|
const leadOptions: Option[] =
|
|
36
38
|
source?.map((_: LeadProps) => ({
|
|
@@ -41,10 +43,9 @@ export const SelectField = UniBlock<SelectFieldProps>(
|
|
|
41
43
|
return (
|
|
42
44
|
<SelectControl
|
|
43
45
|
placeholder={placeholder}
|
|
44
|
-
label={label}
|
|
45
46
|
options={leadOptions}
|
|
46
|
-
isSearch={isSearch}
|
|
47
47
|
{...getValidation(field(fieldName), validatorObj[fieldName], input?.required)}
|
|
48
|
+
{...rest}
|
|
48
49
|
/>
|
|
49
50
|
);
|
|
50
51
|
},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getFirstStepData.js","sourceRoot":"","sources":["../../../src/components/CreditCardForm/getFirstStepData.tsx"],"names":[],"mappings":";;AAGO,MAAM,gBAAgB,GAAG,CAAC,QAAmB,EAAwB,EAAE;IAC5E,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,YAAY,EAAE,QAAQ,EAAE,GAAG,QAAQ,CAAC;IAErE,OAAO;QACL,YAAY,EAAE,QAAQ;QACtB,mBAAmB,EAAE,aAAa;QAClC,SAAS,EAAE,YAAY;QACvB,QAAQ,EAAE,QAAQ;KACnB,CAAC;AACJ,CAAC,CAAC;AATW,QAAA,gBAAgB,oBAS3B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getFirstStepData.js","sourceRoot":"","sources":["../../../src/components/CreditCardForm/getFirstStepData.tsx"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,QAAmB,EAAwB,EAAE;IAC5E,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,YAAY,EAAE,QAAQ,EAAE,GAAG,QAAQ,CAAC;IAErE,OAAO;QACL,YAAY,EAAE,QAAQ;QACtB,mBAAmB,EAAE,aAAa;QAClC,SAAS,EAAE,YAAY;QACvB,QAAQ,EAAE,QAAQ;KACnB,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getFirstStepData.js","sourceRoot":"","sources":["../../../src/components/CreditCardForm/getFirstStepData.tsx"],"names":[],"mappings":";;AAGO,MAAM,gBAAgB,GAAG,CAAC,QAAmB,EAAwB,EAAE;IAC5E,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,YAAY,EAAE,QAAQ,EAAE,GAAG,QAAQ,CAAC;IAErE,OAAO;QACL,YAAY,EAAE,QAAQ;QACtB,mBAAmB,EAAE,aAAa;QAClC,SAAS,EAAE,YAAY;QACvB,QAAQ,EAAE,QAAQ;KACnB,CAAC;AACJ,CAAC,CAAC;AATW,QAAA,gBAAgB,oBAS3B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getFirstStepData.js","sourceRoot":"","sources":["../../../src/components/CreditCardForm/getFirstStepData.tsx"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,QAAmB,EAAwB,EAAE;IAC5E,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,YAAY,EAAE,QAAQ,EAAE,GAAG,QAAQ,CAAC;IAErE,OAAO;QACL,YAAY,EAAE,QAAQ;QACtB,mBAAmB,EAAE,aAAa;QAClC,SAAS,EAAE,YAAY;QACvB,QAAQ,EAAE,QAAQ;KACnB,CAAC;AACJ,CAAC,CAAC"}
|