@redneckz/wildless-cms-uni-blocks 0.14.715 → 0.14.716
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 +25 -20
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/ui-kit/FormField/Fields/Experience5YearsField.js +9 -1
- package/dist/ui-kit/FormField/Fields/Experience5YearsField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/PartInBusinessField.js +3 -3
- package/dist/ui-kit/FormField/Fields/PartInBusinessField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/Experience5YearsField.js +9 -1
- package/lib/ui-kit/FormField/Fields/Experience5YearsField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/PartInBusinessField.js +3 -3
- package/lib/ui-kit/FormField/Fields/PartInBusinessField.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +25 -20
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/Experience5YearsField.js +9 -1
- package/mobile/dist/ui-kit/FormField/Fields/Experience5YearsField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/PartInBusinessField.js +3 -3
- package/mobile/dist/ui-kit/FormField/Fields/PartInBusinessField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/Experience5YearsField.js +9 -1
- package/mobile/lib/ui-kit/FormField/Fields/Experience5YearsField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/PartInBusinessField.js +3 -3
- package/mobile/lib/ui-kit/FormField/Fields/PartInBusinessField.js.map +1 -1
- package/mobile/src/ui-kit/FormField/Fields/Experience5YearsField.tsx +24 -10
- package/mobile/src/ui-kit/FormField/Fields/PartInBusinessField.tsx +7 -5
- package/package.json +1 -1
- package/src/ui-kit/FormField/Fields/Experience5YearsField.tsx +24 -10
- package/src/ui-kit/FormField/Fields/PartInBusinessField.tsx +7 -5
package/bundle/bundle.umd.js
CHANGED
|
@@ -3123,8 +3123,8 @@
|
|
|
3123
3123
|
|
|
3124
3124
|
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) })));
|
|
3125
3125
|
|
|
3126
|
-
const FIELD_NAME$
|
|
3127
|
-
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$
|
|
3126
|
+
const FIELD_NAME$b = 'birthPlace';
|
|
3127
|
+
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$b) })));
|
|
3128
3128
|
|
|
3129
3129
|
const getCardTypes = async (paymentSystemTypeCd, creditProgramId) => {
|
|
3130
3130
|
const data = await fetchRetailJSON('/dictionaryFiltered', 'POST', {
|
|
@@ -3587,12 +3587,12 @@
|
|
|
3587
3587
|
};
|
|
3588
3588
|
const swap = (_) => Object.fromEntries(Object.entries(_).map(([k, v]) => [v, k]));
|
|
3589
3589
|
|
|
3590
|
-
const FIELD_NAME$
|
|
3590
|
+
const FIELD_NAME$a = 'calculator';
|
|
3591
3591
|
const CreditCalcField = JSX(({ field, params }) => {
|
|
3592
3592
|
const handleChange = useCallback((_) => {
|
|
3593
|
-
field(FIELD_NAME$
|
|
3593
|
+
field(FIELD_NAME$a).onChange?.(_);
|
|
3594
3594
|
}, []);
|
|
3595
|
-
return (jsx(CalculatorCredit, { ...params?.calcData, padding: "p-0", defaultParams: defaultValueAdapter(field(FIELD_NAME$
|
|
3595
|
+
return (jsx(CalculatorCredit, { ...params?.calcData, padding: "p-0", defaultParams: defaultValueAdapter(field(FIELD_NAME$a).value), onChange: handleChange }));
|
|
3596
3596
|
});
|
|
3597
3597
|
|
|
3598
3598
|
const LABEL_TEXT = `Имеет ли юридическое лицо, акционером / участником / членом / пайщиком /
|
|
@@ -3621,30 +3621,30 @@
|
|
|
3621
3621
|
|
|
3622
3622
|
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) })));
|
|
3623
3623
|
|
|
3624
|
-
const FIELD_NAME$
|
|
3625
|
-
const DulIssueDateField = JSX(({ field, input }) => (jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u0432\u044B\u0434\u0430\u0447\u0438", ...getValidation(field(FIELD_NAME$
|
|
3624
|
+
const FIELD_NAME$9 = 'dulIssueDateField';
|
|
3625
|
+
const DulIssueDateField = JSX(({ field, input }) => (jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u0432\u044B\u0434\u0430\u0447\u0438", ...getValidation(field(FIELD_NAME$9), validatorObj.dulIssueDateField, input?.required), disabled: input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME$9) })));
|
|
3626
3626
|
|
|
3627
|
-
const FIELD_NAME$
|
|
3627
|
+
const FIELD_NAME$8 = 'dulIssuedBy';
|
|
3628
3628
|
const DulIssuedByField = JSX(({ field, input }) => {
|
|
3629
3629
|
const { value: dulSubdivisionCode, onChange: changeDulSubdivisionCode } = field('dulSubdivisionCode');
|
|
3630
3630
|
const onDaDataChange = useCallback((item) => {
|
|
3631
3631
|
changeDulSubdivisionCode?.(item?.data?.code?.replace('-', ''));
|
|
3632
3632
|
}, []);
|
|
3633
|
-
return (jsx(InputControl, { disabled: input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME$
|
|
3633
|
+
return (jsx(InputControl, { disabled: input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME$8), label: "\u041A\u0435\u043C \u0432\u044B\u0434\u0430\u043D", ...input, ...getValidation(field(FIELD_NAME$8), validatorObj.dulIssuedBy, input?.required), onDaDataChange: onDaDataChange, daDataQueryPrefix: dulSubdivisionCode }));
|
|
3634
3634
|
});
|
|
3635
3635
|
|
|
3636
|
-
const FIELD_NAME$
|
|
3637
|
-
const DulNumberField = JSX(({ field, input }) => (jsx(InputControl, { disabled: input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME$
|
|
3636
|
+
const FIELD_NAME$7 = 'dulNumber';
|
|
3637
|
+
const DulNumberField = JSX(({ field, input }) => (jsx(InputControl, { disabled: input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME$7), label: "\u041D\u043E\u043C\u0435\u0440 \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430", isInteger: true, maxLength: 6, ...getValidation(field('dulNumber'), validatorObj.dulNumber, input?.required) })));
|
|
3638
3638
|
|
|
3639
|
-
const FIELD_NAME$
|
|
3640
|
-
const DulSerieField = JSX(({ field, input }) => (jsx(InputControl, { disabled: input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME$
|
|
3639
|
+
const FIELD_NAME$6 = 'dulSerie';
|
|
3640
|
+
const DulSerieField = JSX(({ field, input }) => (jsx(InputControl, { disabled: input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME$6), label: "\u0421\u0435\u0440\u0438\u044F \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430", isInteger: true, maxLength: 4, ...getValidation(field('dulSerie'), validatorObj.dulSerie, input?.required) })));
|
|
3641
3641
|
|
|
3642
|
-
const FIELD_NAME$
|
|
3642
|
+
const FIELD_NAME$5 = 'dulSubdivisionCode';
|
|
3643
3643
|
const DulSubdivisionCodeField = JSX(({ field, input }) => {
|
|
3644
3644
|
const onDaDataChange = useCallback((item) => {
|
|
3645
3645
|
field?.('dulIssuedBy')?.onChange?.(item?.data?.name);
|
|
3646
3646
|
}, []);
|
|
3647
|
-
return (jsx(InputControl, { disabled: input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME$
|
|
3647
|
+
return (jsx(InputControl, { disabled: input?.filledByEsia && isEsiaAuthorize(field, FIELD_NAME$5), label: "\u041A\u043E\u0434 \u043F\u043E\u0434\u0440\u0430\u0437\u0434\u0435\u043B\u0435\u043D\u0438\u044F", isInteger: true, maxLength: 6, ...input, ...getValidation(field(FIELD_NAME$5), validatorObj.dulSubdivisionCode, input?.required), onDaDataChange: onDaDataChange }));
|
|
3648
3648
|
});
|
|
3649
3649
|
|
|
3650
3650
|
const EducationField = JSX(({ field, input }) => {
|
|
@@ -3686,7 +3686,13 @@
|
|
|
3686
3686
|
|
|
3687
3687
|
const ExpensesField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u041E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u0435 \u0440\u0430\u0441\u0445\u043E\u0434\u044B \u0432 \u043C\u0435\u0441\u044F\u0446", placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435", isInteger: true, ...getValidation(field('expenses'), validatorObj.expenses, input?.required), ...input })));
|
|
3688
3688
|
|
|
3689
|
-
const
|
|
3689
|
+
const FIELD_NAME$4 = 'experience5Years';
|
|
3690
|
+
const MAX_YEARS = 5;
|
|
3691
|
+
const MIN_YEARS = 0;
|
|
3692
|
+
const Experience5YearsField = JSX(({ field, input }) => {
|
|
3693
|
+
const onChange = useCallback((value) => field(FIELD_NAME$4)?.onChange?.(String(clamp(Number(value), MIN_YEARS, MAX_YEARS))), []);
|
|
3694
|
+
return (jsx(InputControl, { label: "\u0421\u0442\u0430\u0436", placeholder: "\u0417\u0430 \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0438\u0435 5 \u043B\u0435\u0442", type: "number", ...getValidation(field(FIELD_NAME$4), validatorObj[FIELD_NAME$4], input?.required), ...input, onChange: onChange }));
|
|
3695
|
+
});
|
|
3690
3696
|
|
|
3691
3697
|
const FamilyMembersField = JSX(({ field }) => {
|
|
3692
3698
|
const { value, onChange } = field('familyMembers');
|
|
@@ -3938,11 +3944,10 @@
|
|
|
3938
3944
|
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) })));
|
|
3939
3945
|
|
|
3940
3946
|
const MAX_PART = 100;
|
|
3947
|
+
const MIN_PART = 0;
|
|
3941
3948
|
const FIELD_NAME$1 = 'partInBusiness';
|
|
3942
3949
|
const PartInBusinessField = JSX(({ field, input }) => {
|
|
3943
|
-
const onChange = useCallback((value) =>
|
|
3944
|
-
field(FIELD_NAME$1)?.onChange?.(String(Number(value) > MAX_PART ? MAX_PART : Number(value) || ''));
|
|
3945
|
-
}, []);
|
|
3950
|
+
const onChange = useCallback((value) => field(FIELD_NAME$1)?.onChange?.(String(clamp(Number(value), MIN_PART, MAX_PART))), []);
|
|
3946
3951
|
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 %", isInteger: true, maxLength: 3, ...getValidation(field(FIELD_NAME$1), validatorObj.partInBusiness, input?.required), ...input, onChange: onChange }));
|
|
3947
3952
|
});
|
|
3948
3953
|
|
|
@@ -10495,7 +10500,7 @@
|
|
|
10495
10500
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
10496
10501
|
});
|
|
10497
10502
|
|
|
10498
|
-
const packageVersion = "0.14.
|
|
10503
|
+
const packageVersion = "0.14.715";
|
|
10499
10504
|
|
|
10500
10505
|
exports.Blocks = Blocks;
|
|
10501
10506
|
exports.ContentPage = ContentPage;
|