@redneckz/wildless-cms-uni-blocks 0.14.699 → 0.14.700
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/api/RetailAPI/getPaymentSystems.d.ts +2 -4
- package/bundle/api/RetailAPI/updateUserTask.d.ts +5 -1
- package/bundle/bundle.umd.js +20 -21
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationLeadForm/LeadFormState.d.ts +2 -2
- package/dist/api/RetailAPI/getPaymentSystems.d.ts +2 -4
- package/dist/api/RetailAPI/getPaymentSystems.js +1 -4
- package/dist/api/RetailAPI/getPaymentSystems.js.map +1 -1
- package/dist/api/RetailAPI/updateUserTask.d.ts +5 -1
- package/dist/api/RetailAPI/updateUserTask.js.map +1 -1
- package/dist/components/ApplicationLeadForm/LeadFormState.d.ts +2 -2
- package/dist/components/ApplicationLeadForm/getInitialFormState.js +1 -1
- package/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/dist/components/CreditCardForm/formStateMap.js +1 -1
- package/dist/components/CreditCardForm/formStateMap.js.map +1 -1
- package/dist/components/GrantSupport/GrantSupport.js +1 -1
- package/dist/components/GrantSupport/GrantSupport.js.map +1 -1
- package/dist/ui-kit/ApplicationFormLayout/ApplicationFormLayout.js +1 -1
- package/dist/ui-kit/ApplicationFormLayout/ApplicationFormLayout.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/CardCategoryField.js +1 -1
- package/dist/ui-kit/FormField/Fields/CardCategoryField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/PaymentSystemField.js +3 -1
- package/dist/ui-kit/FormField/Fields/PaymentSystemField.js.map +1 -1
- package/dist/ui-kit/FormField/getObjectValidator.js +10 -10
- package/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/lib/api/RetailAPI/getPaymentSystems.d.ts +2 -4
- package/lib/api/RetailAPI/getPaymentSystems.js +1 -4
- package/lib/api/RetailAPI/getPaymentSystems.js.map +1 -1
- package/lib/api/RetailAPI/updateUserTask.d.ts +5 -1
- package/lib/api/RetailAPI/updateUserTask.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationLeadForm/LeadFormState.d.ts +2 -2
- package/lib/components/ApplicationLeadForm/getInitialFormState.js +1 -1
- package/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/lib/components/CreditCardForm/formStateMap.js +1 -1
- package/lib/components/CreditCardForm/formStateMap.js.map +1 -1
- package/lib/components/GrantSupport/GrantSupport.js +1 -1
- package/lib/components/GrantSupport/GrantSupport.js.map +1 -1
- package/lib/ui-kit/ApplicationFormLayout/ApplicationFormLayout.js +1 -1
- package/lib/ui-kit/ApplicationFormLayout/ApplicationFormLayout.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/CardCategoryField.js +1 -1
- package/lib/ui-kit/FormField/Fields/CardCategoryField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/PaymentSystemField.js +4 -2
- package/lib/ui-kit/FormField/Fields/PaymentSystemField.js.map +1 -1
- package/lib/ui-kit/FormField/getObjectValidator.js +10 -10
- package/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/bundle/api/RetailAPI/getPaymentSystems.d.ts +2 -4
- package/mobile/bundle/api/RetailAPI/updateUserTask.d.ts +5 -1
- package/mobile/bundle/bundle.umd.js +20 -21
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationLeadForm/LeadFormState.d.ts +2 -2
- package/mobile/dist/api/RetailAPI/getPaymentSystems.d.ts +2 -4
- package/mobile/dist/api/RetailAPI/getPaymentSystems.js +1 -4
- package/mobile/dist/api/RetailAPI/getPaymentSystems.js.map +1 -1
- package/mobile/dist/api/RetailAPI/updateUserTask.d.ts +5 -1
- package/mobile/dist/api/RetailAPI/updateUserTask.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/LeadFormState.d.ts +2 -2
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js +1 -1
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/formStateMap.js +1 -1
- package/mobile/dist/components/CreditCardForm/formStateMap.js.map +1 -1
- package/mobile/dist/components/GrantSupport/GrantSupport.js +1 -1
- package/mobile/dist/components/GrantSupport/GrantSupport.js.map +1 -1
- package/mobile/dist/ui-kit/ApplicationFormLayout/ApplicationFormLayout.js +1 -1
- package/mobile/dist/ui-kit/ApplicationFormLayout/ApplicationFormLayout.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/CardCategoryField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/CardCategoryField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/PaymentSystemField.js +3 -1
- package/mobile/dist/ui-kit/FormField/Fields/PaymentSystemField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js +10 -10
- package/mobile/dist/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/lib/api/RetailAPI/getPaymentSystems.d.ts +2 -4
- package/mobile/lib/api/RetailAPI/getPaymentSystems.js +1 -4
- package/mobile/lib/api/RetailAPI/getPaymentSystems.js.map +1 -1
- package/mobile/lib/api/RetailAPI/updateUserTask.d.ts +5 -1
- package/mobile/lib/api/RetailAPI/updateUserTask.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationLeadForm/LeadFormState.d.ts +2 -2
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js +1 -1
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/formStateMap.js +1 -1
- package/mobile/lib/components/CreditCardForm/formStateMap.js.map +1 -1
- package/mobile/lib/components/GrantSupport/GrantSupport.js +1 -1
- package/mobile/lib/components/GrantSupport/GrantSupport.js.map +1 -1
- package/mobile/lib/ui-kit/ApplicationFormLayout/ApplicationFormLayout.js +1 -1
- package/mobile/lib/ui-kit/ApplicationFormLayout/ApplicationFormLayout.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/CardCategoryField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/CardCategoryField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/PaymentSystemField.js +4 -2
- package/mobile/lib/ui-kit/FormField/Fields/PaymentSystemField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js +10 -10
- package/mobile/lib/ui-kit/FormField/getObjectValidator.js.map +1 -1
- package/mobile/src/api/RetailAPI/getPaymentSystems.ts +3 -10
- package/mobile/src/api/RetailAPI/updateUserTask.ts +6 -1
- package/mobile/src/components/ApplicationLeadForm/LeadFormState.ts +2 -2
- package/mobile/src/components/ApplicationLeadForm/getInitialFormState.tsx +1 -1
- package/mobile/src/components/CreditCardForm/formStateMap.tsx +1 -1
- package/mobile/src/components/GrantSupport/GrantSupport.tsx +1 -1
- package/mobile/src/ui-kit/ApplicationFormLayout/ApplicationFormLayout.tsx +1 -1
- package/mobile/src/ui-kit/FormField/Fields/CardCategoryField.tsx +1 -1
- package/mobile/src/ui-kit/FormField/Fields/PaymentSystemField.tsx +14 -6
- package/mobile/src/ui-kit/FormField/getObjectValidator.tsx +10 -10
- package/package.json +1 -1
- package/src/api/RetailAPI/getPaymentSystems.ts +3 -10
- package/src/api/RetailAPI/updateUserTask.ts +6 -1
- package/src/components/ApplicationLeadForm/LeadFormState.ts +2 -2
- package/src/components/ApplicationLeadForm/getInitialFormState.tsx +1 -1
- package/src/components/CreditCardForm/formStateMap.tsx +1 -1
- package/src/components/GrantSupport/GrantSupport.tsx +1 -1
- package/src/ui-kit/ApplicationFormLayout/ApplicationFormLayout.tsx +1 -1
- package/src/ui-kit/FormField/Fields/CardCategoryField.tsx +1 -1
- package/src/ui-kit/FormField/Fields/PaymentSystemField.tsx +14 -6
- package/src/ui-kit/FormField/getObjectValidator.tsx +10 -10
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
text: string;
|
|
4
|
-
}[]>;
|
|
1
|
+
import { type PaymentSystem } from './updateUserTask';
|
|
2
|
+
export declare const getPaymentSystems: (creditProgramId: string) => Promise<PaymentSystem[]>;
|
|
@@ -28,6 +28,10 @@ export declare type PaymentType = {
|
|
|
28
28
|
key: 'ANNUITY' | 'DIFFERENTIAL';
|
|
29
29
|
value: string;
|
|
30
30
|
};
|
|
31
|
+
export declare type PaymentSystem = {
|
|
32
|
+
name: string;
|
|
33
|
+
type: string;
|
|
34
|
+
};
|
|
31
35
|
export declare type Participant = {
|
|
32
36
|
birthDate?: string;
|
|
33
37
|
id: number;
|
|
@@ -94,7 +98,7 @@ export declare type Participant = {
|
|
|
94
98
|
currencyCode?: {
|
|
95
99
|
key: string;
|
|
96
100
|
};
|
|
97
|
-
paymentSystemTypeCd?:
|
|
101
|
+
paymentSystemTypeCd?: PaymentSystem;
|
|
98
102
|
classCard?: Option;
|
|
99
103
|
codeWord?: string;
|
|
100
104
|
};
|
package/bundle/bundle.umd.js
CHANGED
|
@@ -1202,7 +1202,7 @@
|
|
|
1202
1202
|
|
|
1203
1203
|
const ApplicationFormLayout = JSX((props) => {
|
|
1204
1204
|
const { className, title, children, ...rest } = props;
|
|
1205
|
-
return (jsx(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: jsxs("div", { className: "container
|
|
1205
|
+
return (jsx(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: jsxs("div", { className: "container space-y-lg", children: [title ? jsx(Heading, { headingType: "h3", title: title, className: "@xl:text-center" }) : null, children] }) }));
|
|
1206
1206
|
});
|
|
1207
1207
|
|
|
1208
1208
|
function useDialog(Dialog, initialProps = {}) {
|
|
@@ -1624,14 +1624,14 @@
|
|
|
1624
1624
|
birthday: defaultValidator('Укажите дату рождения'),
|
|
1625
1625
|
limitedBirthday: limitedBirthdayValidator(),
|
|
1626
1626
|
birthPlace: defaultValidator('Укажите место рождения'),
|
|
1627
|
-
education:
|
|
1628
|
-
housing:
|
|
1629
|
-
employment:
|
|
1630
|
-
organization:
|
|
1631
|
-
amountWorkers:
|
|
1632
|
-
employerActivities:
|
|
1633
|
-
employerOrganization:
|
|
1634
|
-
positionOrganization:
|
|
1627
|
+
education: defaultSelectValidator('Выберите ваше образование'),
|
|
1628
|
+
housing: defaultSelectValidator('Выберите тип жилья'),
|
|
1629
|
+
employment: defaultSelectValidator('Выберите информацию о трудоустройстве'),
|
|
1630
|
+
organization: defaultSelectValidator('Выберите тип организации'),
|
|
1631
|
+
amountWorkers: defaultSelectValidator('Выберите информацию о количестве сотрудников'),
|
|
1632
|
+
employerActivities: defaultSelectValidator('Выберите вид деятельности организации'),
|
|
1633
|
+
employerOrganization: defaultSelectValidator('Выберите вид организации'),
|
|
1634
|
+
positionOrganization: defaultSelectValidator('Выберите вашу должность'),
|
|
1635
1635
|
dulSerie: serieValidator('Укажите серию паспорта'),
|
|
1636
1636
|
dulNumber: numberValidator('Укажите номер паспорта'),
|
|
1637
1637
|
dulIssueDateField: defaultValidator('Укажите дату выдачи паспорта'),
|
|
@@ -1667,7 +1667,7 @@
|
|
|
1667
1667
|
consentPfrFlg: agreementValidator,
|
|
1668
1668
|
consentOthersFlg: agreementValidator,
|
|
1669
1669
|
consentInformFlg: agreementValidator,
|
|
1670
|
-
familyStatus:
|
|
1670
|
+
familyStatus: defaultSelectValidator('Выберите семейное положение'),
|
|
1671
1671
|
children: lengthStringValidator(2, 'Укажите количество детей'),
|
|
1672
1672
|
familyMembers: lengthStringValidator(2, 'Укажите количество членов семьи'),
|
|
1673
1673
|
dependents: lengthStringValidator(2, 'Укажите количество иждивенцев'),
|
|
@@ -1693,7 +1693,7 @@
|
|
|
1693
1693
|
addressRetail: defaultSelectValidator('Выберите адрес банка'),
|
|
1694
1694
|
addressMatch: defaultValidator(),
|
|
1695
1695
|
codeWord: codeWordValidator('Необходимо ввести кодовое слово'),
|
|
1696
|
-
confirmationIncome:
|
|
1696
|
+
confirmationIncome: defaultSelectValidator(),
|
|
1697
1697
|
deliveryDate: defaultValidator('Укажите дату доставки'),
|
|
1698
1698
|
addressCourier: addressDaDataValidator(),
|
|
1699
1699
|
cardCategory: defaultValidator('Укажите категорию карты'),
|
|
@@ -3157,7 +3157,7 @@
|
|
|
3157
3157
|
const [cardTypes, setCardTypes] = useState([]);
|
|
3158
3158
|
const [programId] = useLocalStorage('programId');
|
|
3159
3159
|
const { value: selectedCardCategory, onChange: cardCategoryChange } = field('cardCategory');
|
|
3160
|
-
const selectedPaymentSystem = field('paymentSystem')
|
|
3160
|
+
const selectedPaymentSystem = field('paymentSystem')?.value?.type;
|
|
3161
3161
|
useEffect(() => {
|
|
3162
3162
|
if (selectedPaymentSystem && programId) {
|
|
3163
3163
|
(async () => {
|
|
@@ -3939,10 +3939,7 @@
|
|
|
3939
3939
|
const data = await fetchRetailJSON('/public-data/creditProgramConditions', 'POST', {
|
|
3940
3940
|
creditProgramId,
|
|
3941
3941
|
});
|
|
3942
|
-
return
|
|
3943
|
-
id: paymentSystem.type,
|
|
3944
|
-
text: paymentSystem.name,
|
|
3945
|
-
})) ?? []);
|
|
3942
|
+
return data?.paymentSystems || [];
|
|
3946
3943
|
};
|
|
3947
3944
|
|
|
3948
3945
|
const PaymentSystemField = JSX(({ field, input }) => {
|
|
@@ -3957,8 +3954,10 @@
|
|
|
3957
3954
|
})();
|
|
3958
3955
|
}
|
|
3959
3956
|
}, []);
|
|
3960
|
-
|
|
3957
|
+
const handleChange = useCallback((type) => onChange?.(paymentSystemOptions?.find((_) => _.type === type)), [paymentSystemOptions, onChange]);
|
|
3958
|
+
return (jsx(RadioButtonGroupControl, { label: "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430", orientation: "horizontal", items: formatPaymentSystems(paymentSystemOptions), ...getValidation(field('paymentSystem'), validatorObj.paymentSystem, input?.required), value: value?.type, onChange: handleChange }));
|
|
3961
3959
|
});
|
|
3960
|
+
const formatPaymentSystems = (paymentSystems) => paymentSystems?.map((_) => ({ id: _.type, text: _.name })) ?? [];
|
|
3962
3961
|
|
|
3963
3962
|
const isPlaceholder = (_) => _ === '_';
|
|
3964
3963
|
const isDigit = (_) => /\d/.test(_);
|
|
@@ -5019,7 +5018,7 @@
|
|
|
5019
5018
|
addressRegistration: '',
|
|
5020
5019
|
participantDateRegistration: undefined,
|
|
5021
5020
|
currency: '',
|
|
5022
|
-
paymentSystem: '',
|
|
5021
|
+
paymentSystem: { name: '', type: '' },
|
|
5023
5022
|
cardCategory: { key: '', text: '' },
|
|
5024
5023
|
codeWord: '',
|
|
5025
5024
|
addressRetail: { key: '', text: '' },
|
|
@@ -6680,7 +6679,7 @@
|
|
|
6680
6679
|
|
|
6681
6680
|
const formStateMap$1 = [
|
|
6682
6681
|
{
|
|
6683
|
-
paymentSystem: '',
|
|
6682
|
+
paymentSystem: { name: '', type: '' },
|
|
6684
6683
|
currency: '810',
|
|
6685
6684
|
codeWord: '',
|
|
6686
6685
|
},
|
|
@@ -8921,7 +8920,7 @@
|
|
|
8921
8920
|
});
|
|
8922
8921
|
const regionHref = regions?.find((_) => _.name === region.key)?.href;
|
|
8923
8922
|
const buttonText = button?.text ? button.text : 'Перейти';
|
|
8924
|
-
return (jsx(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: jsxs("div", { className: "container
|
|
8923
|
+
return (jsx(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: jsxs("div", { className: "container space-y-m", children: [title ? jsx(Heading, { headingType: "h3", title: title, className: "@xl:text-center" }) : null, regions ? (jsx(SelectControl, { label: "\u0412\u0430\u0448 \u0440\u0435\u0433\u0438\u043E\u043D", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0440\u0435\u0433\u0438\u043E\u043D", isSearch: true, options: regions.map(({ name = '' }) => ({ key: name, text: name })), value: region, onChange: setRegion })) : null, regionHref ? (jsx("div", { className: "text-center", children: jsx(LinkButton, { href: regionHref, target: "_blank", className: style('p-m w-full @xl:w-auto', buttonStyle), data: getAspectsWithInclude(data, region?.key), children: buttonText }) })) : null] }) }));
|
|
8925
8924
|
});
|
|
8926
8925
|
|
|
8927
8926
|
function useActiveRoute(items = []) {
|
|
@@ -10545,7 +10544,7 @@
|
|
|
10545
10544
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
10546
10545
|
});
|
|
10547
10546
|
|
|
10548
|
-
const packageVersion = "0.14.
|
|
10547
|
+
const packageVersion = "0.14.699";
|
|
10549
10548
|
|
|
10550
10549
|
exports.Blocks = Blocks;
|
|
10551
10550
|
exports.ContentPage = ContentPage;
|