@redneckz/wildless-cms-uni-blocks 0.14.678 → 0.14.680
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 +35 -27
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/CreditCardForm/creditCardFormStepsData.js +6 -1
- package/dist/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
- package/dist/components/CreditForm/creditFormStepsData.js +6 -1
- package/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/dist/ui-kit/CaptchaDialog/CaptchaDialog.js +1 -1
- package/dist/ui-kit/CaptchaDialog/CaptchaDialog.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/PartInBusinessField.js +6 -7
- package/dist/ui-kit/FormField/Fields/PartInBusinessField.js.map +1 -1
- package/lib/components/CreditCardForm/creditCardFormStepsData.js +6 -1
- package/lib/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
- package/lib/components/CreditForm/creditFormStepsData.js +6 -1
- package/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/lib/ui-kit/CaptchaDialog/CaptchaDialog.js +1 -1
- package/lib/ui-kit/CaptchaDialog/CaptchaDialog.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/PartInBusinessField.js +6 -7
- package/lib/ui-kit/FormField/Fields/PartInBusinessField.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +35 -27
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.js +6 -1
- package/mobile/dist/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
- package/mobile/dist/components/CreditForm/creditFormStepsData.js +6 -1
- package/mobile/dist/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/mobile/dist/ui-kit/CaptchaDialog/CaptchaDialog.js +1 -1
- package/mobile/dist/ui-kit/CaptchaDialog/CaptchaDialog.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/PartInBusinessField.js +6 -7
- package/mobile/dist/ui-kit/FormField/Fields/PartInBusinessField.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.js +6 -1
- package/mobile/lib/components/CreditCardForm/creditCardFormStepsData.js.map +1 -1
- package/mobile/lib/components/CreditForm/creditFormStepsData.js +6 -1
- package/mobile/lib/components/CreditForm/creditFormStepsData.js.map +1 -1
- package/mobile/lib/ui-kit/CaptchaDialog/CaptchaDialog.js +1 -1
- package/mobile/lib/ui-kit/CaptchaDialog/CaptchaDialog.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/PartInBusinessField.js +6 -7
- package/mobile/lib/ui-kit/FormField/Fields/PartInBusinessField.js.map +1 -1
- package/mobile/src/components/CreditCardForm/creditCardFormStepsData.tsx +6 -1
- package/mobile/src/components/CreditForm/creditFormStepsData.tsx +6 -1
- package/mobile/src/ui-kit/CaptchaDialog/CaptchaDialog.tsx +1 -1
- package/mobile/src/ui-kit/FormField/Fields/PartInBusinessField.tsx +7 -13
- package/package.json +1 -1
- package/src/components/CreditCardForm/creditCardFormStepsData.tsx +6 -1
- package/src/components/CreditForm/creditFormStepsData.tsx +6 -1
- package/src/ui-kit/CaptchaDialog/CaptchaDialog.tsx +1 -1
- package/src/ui-kit/FormField/Fields/PartInBusinessField.tsx +7 -13
package/bundle/bundle.umd.js
CHANGED
|
@@ -3027,8 +3027,8 @@
|
|
|
3027
3027
|
|
|
3028
3028
|
const BirthdayField = JSX(({ field, input }) => (jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u0440\u043E\u0436\u0434\u0435\u043D\u0438\u044F", ...getValidation(field('birthday'), validatorObj.birthday, input?.required) })));
|
|
3029
3029
|
|
|
3030
|
-
const FIELD_NAME$
|
|
3031
|
-
const BirthPlaceField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u041C\u0435\u0441\u0442\u043E \u0440\u043E\u0436\u0434\u0435\u043D\u0438\u044F", ...getValidation(field('birthPlace'), validatorObj.birthPlace, input?.required), ...input, disabled: input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME$
|
|
3030
|
+
const FIELD_NAME$9 = 'birthPlace';
|
|
3031
|
+
const BirthPlaceField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u041C\u0435\u0441\u0442\u043E \u0440\u043E\u0436\u0434\u0435\u043D\u0438\u044F", ...getValidation(field('birthPlace'), validatorObj.birthPlace, input?.required), ...input, disabled: input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME$9) })));
|
|
3032
3032
|
|
|
3033
3033
|
const getCardTypes = async (paymentSystemType) => {
|
|
3034
3034
|
const response = await doRequest('/dictionaryFiltered', 'POST', {
|
|
@@ -3160,30 +3160,30 @@
|
|
|
3160
3160
|
|
|
3161
3161
|
const DisablePeopleFlgField = JSX(({ field, input }) => (jsx(CheckboxWithError, { text: "\u042F\u0432\u043B\u044F\u044E\u0441\u044C \u0438\u043D\u0432\u0430\u043B\u0438\u0434\u043E\u043C", ...getValidation(field('disablePeopleFlg'), validatorObj.disablePeopleFlg, input?.required) })));
|
|
3162
3162
|
|
|
3163
|
-
const FIELD_NAME$
|
|
3164
|
-
const DulIssueDateField = JSX(({ field, input }) => (jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u0432\u044B\u0434\u0430\u0447\u0438", ...getValidation(field(FIELD_NAME$
|
|
3163
|
+
const FIELD_NAME$8 = 'dulIssueDateField';
|
|
3164
|
+
const DulIssueDateField = JSX(({ field, input }) => (jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u0432\u044B\u0434\u0430\u0447\u0438", ...getValidation(field(FIELD_NAME$8), validatorObj.dulIssueDateField, input?.required), disabled: input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME$8) })));
|
|
3165
3165
|
|
|
3166
|
-
const FIELD_NAME$
|
|
3166
|
+
const FIELD_NAME$7 = 'dulIssuedBy';
|
|
3167
3167
|
const DulIssuedByField = JSX(({ field, input }) => {
|
|
3168
3168
|
const { value: dulSubdivisionCode, onChange: changeDulSubdivisionCode } = field('dulSubdivisionCode');
|
|
3169
3169
|
const onDaDataChange = useCallback((item) => {
|
|
3170
3170
|
changeDulSubdivisionCode?.(item?.data?.code?.replace('-', ''));
|
|
3171
3171
|
}, []);
|
|
3172
|
-
return (jsx(InputControl, { disabled: input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME$
|
|
3172
|
+
return (jsx(InputControl, { disabled: input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME$7), label: "\u041A\u0435\u043C \u0432\u044B\u0434\u0430\u043D", ...input, ...getValidation(field(FIELD_NAME$7), validatorObj.dulIssuedBy, input?.required), onDaDataChange: onDaDataChange, daDataQueryPrefix: dulSubdivisionCode }));
|
|
3173
3173
|
});
|
|
3174
3174
|
|
|
3175
|
-
const FIELD_NAME$
|
|
3176
|
-
const DulNumberField = JSX(({ field, input }) => (jsx(InputControl, { disabled: input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME$
|
|
3175
|
+
const FIELD_NAME$6 = 'dulNumber';
|
|
3176
|
+
const DulNumberField = JSX(({ field, input }) => (jsx(InputControl, { disabled: input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME$6), label: "\u041D\u043E\u043C\u0435\u0440 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430", type: "number", maxLength: 6, ...getValidation(field('dulNumber'), validatorObj.dulNumber, input?.required) })));
|
|
3177
3177
|
|
|
3178
|
-
const FIELD_NAME$
|
|
3179
|
-
const DulSerieField = JSX(({ field, input }) => (jsx(InputControl, { disabled: input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME$
|
|
3178
|
+
const FIELD_NAME$5 = 'dulSerie';
|
|
3179
|
+
const DulSerieField = JSX(({ field, input }) => (jsx(InputControl, { disabled: input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME$5), label: "\u0421\u0435\u0440\u0438\u044F \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430", type: "number", maxLength: 4, ...getValidation(field('dulSerie'), validatorObj.dulSerie, input?.required) })));
|
|
3180
3180
|
|
|
3181
|
-
const FIELD_NAME$
|
|
3181
|
+
const FIELD_NAME$4 = 'dulSubdivisionCode';
|
|
3182
3182
|
const DulSubdivisionCodeField = JSX(({ field, input }) => {
|
|
3183
3183
|
const onDaDataChange = useCallback((item) => {
|
|
3184
3184
|
field?.('dulIssuedBy')?.onChange?.(item?.data?.name);
|
|
3185
3185
|
}, []);
|
|
3186
|
-
return (jsx(InputControl, { disabled: input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME$
|
|
3186
|
+
return (jsx(InputControl, { disabled: input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME$4), label: "\u041A\u043E\u0434 \u043F\u043E\u0434\u0440\u0430\u0437\u0434\u0435\u043B\u0435\u043D\u0438\u044F", type: "number", maxLength: 6, ...input, ...getValidation(field(FIELD_NAME$4), validatorObj.dulSubdivisionCode, input?.required), onDaDataChange: onDaDataChange }));
|
|
3187
3187
|
});
|
|
3188
3188
|
|
|
3189
3189
|
const EducationField = JSX(({ field, input }) => {
|
|
@@ -3277,8 +3277,8 @@
|
|
|
3277
3277
|
|
|
3278
3278
|
const LegalFormField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u041E\u041F\u0424", placeholder: "\u041E\u041E\u041E, \u041F\u0410\u041E \u0438 \u0434\u0440.", ...getValidation(field('legalForm'), validatorObj.legalForm, input?.required), ...input })));
|
|
3279
3279
|
|
|
3280
|
-
const FIELD_NAME$
|
|
3281
|
-
const LimitedBirthdayField = JSX(({ field, input }) => (jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u0440\u043E\u0436\u0434\u0435\u043D\u0438\u044F", ...getValidation(field(FIELD_NAME$
|
|
3280
|
+
const FIELD_NAME$3 = 'limitedBirthday';
|
|
3281
|
+
const LimitedBirthdayField = JSX(({ field, input }) => (jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u0440\u043E\u0436\u0434\u0435\u043D\u0438\u044F", ...getValidation(field(FIELD_NAME$3), validatorObj.limitedBirthday, input?.required), disabled: input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME$3) })));
|
|
3282
3282
|
|
|
3283
3283
|
const OUT_SERVICE_BASE_URL = `${API_BASE_URI}/outservice`;
|
|
3284
3284
|
const EMPTY_REGIONS$1 = [];
|
|
@@ -3310,7 +3310,7 @@
|
|
|
3310
3310
|
];
|
|
3311
3311
|
const MethodObtainField = JSX(({ field, input }) => (jsx(RadioButtonGroupControl, { orientation: "horizontal", items: METHODS_OF_OBTAIN, ...getValidation(field('methodObtain'), validatorObj.methodObtain, input?.required) })));
|
|
3312
3312
|
|
|
3313
|
-
const FIELD_NAME$
|
|
3313
|
+
const FIELD_NAME$2 = 'middleName';
|
|
3314
3314
|
const MiddleNameField = JSX(({ field, input }) => {
|
|
3315
3315
|
const onDaDataChange = useCallback((item) => {
|
|
3316
3316
|
const dadataGender = item?.data?.gender;
|
|
@@ -3318,7 +3318,7 @@
|
|
|
3318
3318
|
field('sex')?.onChange?.(dadataGender.toLowerCase());
|
|
3319
3319
|
}
|
|
3320
3320
|
}, []);
|
|
3321
|
-
return (jsx(InputControl, { label: "\u041E\u0442\u0447\u0435\u0441\u0442\u0432\u043E (\u041E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E, \u043F\u0440\u0438 \u043D\u0430\u043B\u0438\u0447\u0438\u0438)", maxLength: 60, disabled: input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME$
|
|
3321
|
+
return (jsx(InputControl, { label: "\u041E\u0442\u0447\u0435\u0441\u0442\u0432\u043E (\u041E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E, \u043F\u0440\u0438 \u043D\u0430\u043B\u0438\u0447\u0438\u0438)", maxLength: 60, disabled: input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME$2), ...getValidation(field(FIELD_NAME$2), validatorObj.middleName, input?.required), ...input, onDaDataChange: onDaDataChange }));
|
|
3322
3322
|
});
|
|
3323
3323
|
|
|
3324
3324
|
const NameField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u0418\u043C\u044F", maxLength: 60, disabled: input?.filledByEsia && isEsiaAuthorize(field, input.name ?? ''), ...getValidation(field('name'), validatorObj.name, input?.required), ...input })));
|
|
@@ -3345,14 +3345,12 @@
|
|
|
3345
3345
|
const ParticipantDateRegistrationField = JSX(({ field, input }) => (jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043F\u043E \u043C\u0435\u0441\u0442\u0443 \u0436\u0438\u0442\u0435\u043B\u044C\u0441\u0442\u0432\u0430", ...getValidation(field('participantDateRegistration'), validatorObj.participantDateRegistration, input?.required) })));
|
|
3346
3346
|
|
|
3347
3347
|
const MAX_PART = 100;
|
|
3348
|
+
const FIELD_NAME$1 = 'partInBusiness';
|
|
3348
3349
|
const PartInBusinessField = JSX(({ field, input }) => {
|
|
3349
|
-
const
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
};
|
|
3353
|
-
const handleChange = (value) => partInBusinessField?.onChange &&
|
|
3354
|
-
partInBusinessField?.onChange(String(Number(value) > MAX_PART ? MAX_PART : Number(value) || ''));
|
|
3355
|
-
return (jsx(InputControl, { label: "\u0414\u043E\u043B\u044F \u0443\u0447\u0430\u0441\u0442\u0438\u044F \u0432 \u0431\u0438\u0437\u043D\u0435\u0441\u0435", placeholder: "\u0432 %", type: "number", maxLength: 3, ...partInBusinessField, ...input, onChange: handleChange, value: isBusinessOwner ? partInBusinessField?.value : '', disabled: !isBusinessOwner }));
|
|
3350
|
+
const onChange = useCallback((value) => {
|
|
3351
|
+
field(FIELD_NAME$1)?.onChange?.(String(Number(value) > MAX_PART ? MAX_PART : Number(value) || ''));
|
|
3352
|
+
}, []);
|
|
3353
|
+
return (jsx(InputControl, { label: "\u0414\u043E\u043B\u044F \u0443\u0447\u0430\u0441\u0442\u0438\u044F \u0432 \u0431\u0438\u0437\u043D\u0435\u0441\u0435", placeholder: "\u0432 %", type: "number", maxLength: 3, ...getValidation(field(FIELD_NAME$1), validatorObj.partInBusiness, input?.required), ...input, onChange: onChange }));
|
|
3356
3354
|
});
|
|
3357
3355
|
|
|
3358
3356
|
const PartnerCommentsField = JSX(({ field, input }) => {
|
|
@@ -3977,7 +3975,7 @@
|
|
|
3977
3975
|
else {
|
|
3978
3976
|
setHasError(isValidCode);
|
|
3979
3977
|
}
|
|
3980
|
-
}, []);
|
|
3978
|
+
}, [code]);
|
|
3981
3979
|
const handleCreateCaptcha = useCallback(() => {
|
|
3982
3980
|
(async () => setCaptcha(URL.createObjectURL(await createCaptcha(phoneNumber))))();
|
|
3983
3981
|
}, []);
|
|
@@ -6918,7 +6916,12 @@
|
|
|
6918
6916
|
columns: 2,
|
|
6919
6917
|
inputs: [
|
|
6920
6918
|
{ fieldType: 'common', name: 'positionOrganization', required: false },
|
|
6921
|
-
{
|
|
6919
|
+
{
|
|
6920
|
+
fieldType: 'common',
|
|
6921
|
+
name: 'partInBusiness',
|
|
6922
|
+
required: true,
|
|
6923
|
+
condition: { name: 'positionOrganization', values: ['BUSINESS_OWNER'] },
|
|
6924
|
+
},
|
|
6922
6925
|
],
|
|
6923
6926
|
},
|
|
6924
6927
|
{
|
|
@@ -7761,7 +7764,12 @@
|
|
|
7761
7764
|
columns: 2,
|
|
7762
7765
|
inputs: [
|
|
7763
7766
|
{ fieldType: 'common', name: 'positionOrganization', required: false },
|
|
7764
|
-
{
|
|
7767
|
+
{
|
|
7768
|
+
fieldType: 'common',
|
|
7769
|
+
name: 'partInBusiness',
|
|
7770
|
+
required: true,
|
|
7771
|
+
condition: { name: 'positionOrganization', values: ['BUSINESS_OWNER'] },
|
|
7772
|
+
},
|
|
7765
7773
|
],
|
|
7766
7774
|
},
|
|
7767
7775
|
{
|
|
@@ -10316,7 +10324,7 @@
|
|
|
10316
10324
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
10317
10325
|
});
|
|
10318
10326
|
|
|
10319
|
-
const packageVersion = "0.14.
|
|
10327
|
+
const packageVersion = "0.14.679";
|
|
10320
10328
|
|
|
10321
10329
|
exports.Blocks = Blocks;
|
|
10322
10330
|
exports.ContentPage = ContentPage;
|