@redneckz/wildless-cms-uni-blocks 0.14.731 → 0.14.732
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 +20 -28
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +1 -9
- package/bundle/components/CreditCardForm/renderStep.d.ts +1 -2
- package/bundle/components/CreditForm/renderStep.d.ts +1 -2
- package/bundle/services/retail/inputs.d.ts +1 -0
- package/bundle/services/retail/model/RetailFormContent.d.ts +3 -17
- package/bundle/ui-kit/FormField/Fields/InfoCardField.d.ts +2 -0
- package/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +1 -9
- package/dist/components/CreditCardForm/renderStep.d.ts +1 -2
- package/dist/components/CreditCardForm/renderStep.js +1 -3
- package/dist/components/CreditCardForm/renderStep.js.map +1 -1
- package/dist/components/CreditForm/renderStep.d.ts +1 -2
- package/dist/components/CreditForm/renderStep.js +1 -2
- package/dist/components/CreditForm/renderStep.js.map +1 -1
- package/dist/services/retail/content.js +12 -8
- package/dist/services/retail/content.js.map +1 -1
- package/dist/services/retail/inputs.d.ts +1 -0
- package/dist/services/retail/inputs.js +2 -0
- package/dist/services/retail/inputs.js.map +1 -1
- package/dist/services/retail/model/RetailFormContent.d.ts +3 -17
- package/dist/ui-kit/FormField/Fields/InfoCardField.d.ts +2 -0
- package/dist/ui-kit/FormField/Fields/InfoCardField.js +7 -0
- package/dist/ui-kit/FormField/Fields/InfoCardField.js.map +1 -0
- package/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +1 -9
- package/lib/components/CreditCardForm/renderStep.d.ts +1 -2
- package/lib/components/CreditCardForm/renderStep.js +2 -4
- package/lib/components/CreditCardForm/renderStep.js.map +1 -1
- package/lib/components/CreditForm/renderStep.d.ts +1 -2
- package/lib/components/CreditForm/renderStep.js +1 -2
- package/lib/components/CreditForm/renderStep.js.map +1 -1
- package/lib/services/retail/content.js +12 -8
- package/lib/services/retail/content.js.map +1 -1
- package/lib/services/retail/inputs.d.ts +1 -0
- package/lib/services/retail/inputs.js +2 -0
- package/lib/services/retail/inputs.js.map +1 -1
- package/lib/services/retail/model/RetailFormContent.d.ts +3 -17
- package/lib/ui-kit/FormField/Fields/InfoCardField.d.ts +2 -0
- package/lib/ui-kit/FormField/Fields/InfoCardField.js +5 -0
- package/lib/ui-kit/FormField/Fields/InfoCardField.js.map +1 -0
- package/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/mobile/bundle/bundle.umd.js +20 -28
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +1 -9
- package/mobile/bundle/components/CreditCardForm/renderStep.d.ts +1 -2
- package/mobile/bundle/components/CreditForm/renderStep.d.ts +1 -2
- package/mobile/bundle/services/retail/inputs.d.ts +1 -0
- package/mobile/bundle/services/retail/model/RetailFormContent.d.ts +3 -17
- package/mobile/bundle/ui-kit/FormField/Fields/InfoCardField.d.ts +2 -0
- package/mobile/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +1 -9
- package/mobile/dist/components/CreditCardForm/renderStep.d.ts +1 -2
- package/mobile/dist/components/CreditCardForm/renderStep.js +1 -3
- package/mobile/dist/components/CreditCardForm/renderStep.js.map +1 -1
- package/mobile/dist/components/CreditForm/renderStep.d.ts +1 -2
- package/mobile/dist/components/CreditForm/renderStep.js +1 -2
- package/mobile/dist/components/CreditForm/renderStep.js.map +1 -1
- package/mobile/dist/services/retail/content.js +12 -8
- package/mobile/dist/services/retail/content.js.map +1 -1
- package/mobile/dist/services/retail/inputs.d.ts +1 -0
- package/mobile/dist/services/retail/inputs.js +2 -0
- package/mobile/dist/services/retail/inputs.js.map +1 -1
- package/mobile/dist/services/retail/model/RetailFormContent.d.ts +3 -17
- package/mobile/dist/ui-kit/FormField/Fields/InfoCardField.d.ts +2 -0
- package/mobile/dist/ui-kit/FormField/Fields/InfoCardField.js +7 -0
- package/mobile/dist/ui-kit/FormField/Fields/InfoCardField.js.map +1 -0
- package/mobile/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +1 -9
- package/mobile/lib/components/CreditCardForm/renderStep.d.ts +1 -2
- package/mobile/lib/components/CreditCardForm/renderStep.js +2 -4
- package/mobile/lib/components/CreditCardForm/renderStep.js.map +1 -1
- package/mobile/lib/components/CreditForm/renderStep.d.ts +1 -2
- package/mobile/lib/components/CreditForm/renderStep.js +1 -2
- package/mobile/lib/components/CreditForm/renderStep.js.map +1 -1
- package/mobile/lib/services/retail/content.js +12 -8
- package/mobile/lib/services/retail/content.js.map +1 -1
- package/mobile/lib/services/retail/inputs.d.ts +1 -0
- package/mobile/lib/services/retail/inputs.js +2 -0
- package/mobile/lib/services/retail/inputs.js.map +1 -1
- package/mobile/lib/services/retail/model/RetailFormContent.d.ts +3 -17
- package/mobile/lib/ui-kit/FormField/Fields/InfoCardField.d.ts +2 -0
- package/mobile/lib/ui-kit/FormField/Fields/InfoCardField.js +5 -0
- package/mobile/lib/ui-kit/FormField/Fields/InfoCardField.js.map +1 -0
- package/mobile/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +1 -11
- package/mobile/src/components/CreditCardForm/renderStep.tsx +2 -11
- package/mobile/src/components/CreditForm/renderStep.tsx +1 -5
- package/mobile/src/services/retail/content.tsx +12 -8
- package/mobile/src/services/retail/inputs.tsx +2 -0
- package/mobile/src/services/retail/model/RetailFormContent.ts +4 -20
- package/mobile/src/ui-kit/FormField/Fields/InfoCardField.tsx +7 -0
- package/mobile/src/ui-kit/FormField/NameFieldDef.ts +2 -1
- package/package.json +1 -1
- package/src/components/ApplicationForm/ApplicationFormContent.ts +1 -11
- package/src/components/CreditCardForm/renderStep.tsx +2 -11
- package/src/components/CreditForm/renderStep.tsx +1 -5
- package/src/services/retail/content.tsx +12 -8
- package/src/services/retail/inputs.tsx +2 -0
- package/src/services/retail/model/RetailFormContent.ts +4 -20
- package/src/ui-kit/FormField/Fields/InfoCardField.tsx +7 -0
- package/src/ui-kit/FormField/NameFieldDef.ts +2 -1
- package/bundle/components/CreditCardForm/renderInfo.d.ts +0 -2
- package/bundle/components/CreditForm/renderInfo.d.ts +0 -2
- package/dist/components/CreditCardForm/renderInfo.d.ts +0 -2
- package/dist/components/CreditCardForm/renderInfo.js +0 -12
- package/dist/components/CreditCardForm/renderInfo.js.map +0 -1
- package/dist/components/CreditForm/renderInfo.d.ts +0 -2
- package/dist/components/CreditForm/renderInfo.js +0 -12
- package/dist/components/CreditForm/renderInfo.js.map +0 -1
- package/lib/components/CreditCardForm/renderInfo.d.ts +0 -2
- package/lib/components/CreditCardForm/renderInfo.js +0 -9
- package/lib/components/CreditCardForm/renderInfo.js.map +0 -1
- package/lib/components/CreditForm/renderInfo.d.ts +0 -2
- package/lib/components/CreditForm/renderInfo.js +0 -9
- package/lib/components/CreditForm/renderInfo.js.map +0 -1
- package/mobile/bundle/components/CreditCardForm/renderInfo.d.ts +0 -2
- package/mobile/bundle/components/CreditForm/renderInfo.d.ts +0 -2
- package/mobile/dist/components/CreditCardForm/renderInfo.d.ts +0 -2
- package/mobile/dist/components/CreditCardForm/renderInfo.js +0 -12
- package/mobile/dist/components/CreditCardForm/renderInfo.js.map +0 -1
- package/mobile/dist/components/CreditForm/renderInfo.d.ts +0 -2
- package/mobile/dist/components/CreditForm/renderInfo.js +0 -12
- package/mobile/dist/components/CreditForm/renderInfo.js.map +0 -1
- package/mobile/lib/components/CreditCardForm/renderInfo.d.ts +0 -2
- package/mobile/lib/components/CreditCardForm/renderInfo.js +0 -9
- package/mobile/lib/components/CreditCardForm/renderInfo.js.map +0 -1
- package/mobile/lib/components/CreditForm/renderInfo.d.ts +0 -2
- package/mobile/lib/components/CreditForm/renderInfo.js +0 -9
- package/mobile/lib/components/CreditForm/renderInfo.js.map +0 -1
- package/mobile/src/components/CreditCardForm/renderInfo.tsx +0 -10
- package/mobile/src/components/CreditForm/renderInfo.tsx +0 -10
- package/src/components/CreditCardForm/renderInfo.tsx +0 -10
- package/src/components/CreditForm/renderInfo.tsx +0 -10
package/bundle/bundle.umd.js
CHANGED
|
@@ -4232,6 +4232,10 @@
|
|
|
4232
4232
|
return (jsx(SelectField, { field: field, source: housing, label: "\u0422\u0438\u043F \u0436\u0438\u043B\u044C\u044F", fieldName: "housing", input: input }));
|
|
4233
4233
|
});
|
|
4234
4234
|
|
|
4235
|
+
const InfoCard = JSX(({ __html, icon = 'InfoCircleIcon', iconVersion = 'black', link }) => (jsxs("div", { className: "flex flex-row items-center w-full min-h-14 bg-main-gray rounded-lg gap-m p-m", children: [jsx("div", { className: "rounded-full bg-white p-xs", children: jsx(Icon, { name: icon, width: "24", height: "24", iconVersion: iconVersion }) }), jsxs("div", { className: "", children: [jsx(RichText, { __html: __html }), link?.text ? jsx(LinkButton, { className: "text-primary-main", children: link.text }) : null] })] })));
|
|
4236
|
+
|
|
4237
|
+
const InfoCardField = JSX(({ input }) => (jsx(InfoCard, { __html: input?.label })));
|
|
4238
|
+
|
|
4235
4239
|
const JobsNumberField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u043C\u0435\u0441\u0442 \u0440\u0430\u0431\u043E\u0442\u044B \u0437\u0430 \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0438\u0435 5 \u043B\u0435\u0442", placeholder: "\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u043C\u0435\u0441\u0442", isInteger: true, maxLength: 2, ...getValidation(field('jobsNumber'), validatorObj.jobsNumber, input?.required), ...input })));
|
|
4236
4240
|
|
|
4237
4241
|
const LastJobExperienceField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u0421\u0442\u0430\u0436 \u043D\u0430 \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0435\u043C \u0440\u0430\u0431\u043E\u0447\u0435\u043C \u043C\u0435\u0441\u0442\u0435", placeholder: "\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u043B\u0435\u0442", type: "number", maxLength: 2, ...getValidation(field('lastJobExperience'), validatorObj.lastJobExperience, input?.required), ...input })));
|
|
@@ -4441,6 +4445,7 @@
|
|
|
4441
4445
|
bankEmployeeCode: (props) => jsx(BankEmpoleeCodeField, { ...props }),
|
|
4442
4446
|
partInBusiness: (props) => jsx(PartInBusinessField, { ...props }),
|
|
4443
4447
|
regionRetail: (props) => jsx(RegionRetailField, { ...props }),
|
|
4448
|
+
infoCard: (props) => jsx(InfoCardField, { ...props }),
|
|
4444
4449
|
calculator: (props) => jsx(CreditCalcField, { ...props }),
|
|
4445
4450
|
};
|
|
4446
4451
|
const InputRetailCardMap = {
|
|
@@ -6827,8 +6832,6 @@
|
|
|
6827
6832
|
return clearTimer;
|
|
6828
6833
|
};
|
|
6829
6834
|
|
|
6830
|
-
const InfoCard = JSX(({ __html, icon = 'InfoCircleIcon', iconVersion = 'black', link }) => (jsxs("div", { className: "flex flex-row items-center w-full min-h-14 bg-main-gray rounded-lg gap-m p-m", children: [jsx("div", { className: "rounded-full bg-white p-xs", children: jsx(Icon, { name: icon, width: "24", height: "24", iconVersion: iconVersion }) }), jsxs("div", { className: "", children: [jsx(RichText, { __html: __html }), link?.text ? jsx(LinkButton, { className: "text-primary-main", children: link.text }) : null] })] })));
|
|
6831
|
-
|
|
6832
6835
|
const TimerCircle = JSX(({ interval = 0, intervalExpireAction = () => null, title, __html }) => {
|
|
6833
6836
|
const [time, setTime] = useState(interval);
|
|
6834
6837
|
const setTimeWithHandleExpire = (value) => {
|
|
@@ -6987,19 +6990,11 @@
|
|
|
6987
6990
|
const checkConsentPfrFlg = ({ name }, getValue) => name === 'snils' && isSnilsRequired(getValue);
|
|
6988
6991
|
const isSnilsRequired = (getValue) => getValue('confirmationIncome')?.key !== 'PFR_CERTIFICATE';
|
|
6989
6992
|
|
|
6990
|
-
const renderInfo$2 = (inputs = []) => {
|
|
6991
|
-
const infoInputs = inputs.filter((_) => _.fieldType === 'info');
|
|
6992
|
-
return infoInputs.length
|
|
6993
|
-
? infoInputs.map(({ text, name }, i) => jsx(InfoCard, { __html: text }, `${name}_${i}`))
|
|
6994
|
-
: null;
|
|
6995
|
-
};
|
|
6996
|
-
|
|
6997
6993
|
const renderInputs$1 = ({ field, inputs, params }) => inputs.map(getField(field, params, { ...InputsRetailMap, ...InputRetailCardMap }));
|
|
6998
6994
|
|
|
6999
6995
|
const renderStep$2 = ({ sections, field, step, params }) => sections?.map(({ inputs: origInputs = [], columns, title }, i) => {
|
|
7000
6996
|
const inputs = calculateInputs(getValue$3(field))(origInputs, step);
|
|
7001
|
-
|
|
7002
|
-
return (jsxs("div", { className: style(inputColumnStyles(columns), 'grid gap-x-m'), children: [renderInfo$2(filteredInputs), renderTitle(title), renderInputs$1({ field, inputs, params })] }, `section-${i}`));
|
|
6997
|
+
return (jsxs("div", { className: style(inputColumnStyles(columns), 'grid gap-x-m'), children: [renderTitle(title), renderInputs$1({ field, inputs, params })] }, `section-${i}`));
|
|
7003
6998
|
});
|
|
7004
6999
|
const getValue$3 = (field) => (name) => field(name)?.value;
|
|
7005
7000
|
|
|
@@ -7433,8 +7428,9 @@
|
|
|
7433
7428
|
{
|
|
7434
7429
|
inputs: [
|
|
7435
7430
|
{
|
|
7436
|
-
fieldType: '
|
|
7437
|
-
|
|
7431
|
+
fieldType: 'common',
|
|
7432
|
+
name: 'infoCard',
|
|
7433
|
+
label: 'Клиент на момент оформления заявки на кредит должен быть: официально трудоустроен более 6 месяцев, ' +
|
|
7438
7434
|
'если Клиент получает з/п на счет РСХБ, то трудоустроен более 3 месяцев, не должен находиться в декретном отпуске',
|
|
7439
7435
|
},
|
|
7440
7436
|
],
|
|
@@ -7525,8 +7521,9 @@
|
|
|
7525
7521
|
{
|
|
7526
7522
|
inputs: [
|
|
7527
7523
|
{
|
|
7528
|
-
fieldType: '
|
|
7529
|
-
|
|
7524
|
+
fieldType: 'common',
|
|
7525
|
+
name: 'infoCard',
|
|
7526
|
+
label: 'Сумма основного и дополнительных доходов после вычета налога',
|
|
7530
7527
|
},
|
|
7531
7528
|
],
|
|
7532
7529
|
},
|
|
@@ -7603,8 +7600,9 @@
|
|
|
7603
7600
|
{
|
|
7604
7601
|
inputs: [
|
|
7605
7602
|
{
|
|
7606
|
-
fieldType: '
|
|
7607
|
-
|
|
7603
|
+
fieldType: 'common',
|
|
7604
|
+
name: 'infoCard',
|
|
7605
|
+
label: 'Если представитель Банка помогал Вам в заведении заявки, введите здесь его код',
|
|
7608
7606
|
},
|
|
7609
7607
|
],
|
|
7610
7608
|
},
|
|
@@ -7682,8 +7680,9 @@
|
|
|
7682
7680
|
{
|
|
7683
7681
|
inputs: [
|
|
7684
7682
|
{
|
|
7685
|
-
fieldType: '
|
|
7686
|
-
|
|
7683
|
+
fieldType: 'common',
|
|
7684
|
+
name: 'infoCard',
|
|
7685
|
+
label: 'Если представитель Банка помогал Вам в заведении заявки, введите здесь его код',
|
|
7687
7686
|
condition: {
|
|
7688
7687
|
name: 'methodObtain',
|
|
7689
7688
|
values: ['office'],
|
|
@@ -7892,18 +7891,11 @@
|
|
|
7892
7891
|
return statusesMap[status] || jsx(ReworkStatusContent, {});
|
|
7893
7892
|
};
|
|
7894
7893
|
|
|
7895
|
-
const renderInfo$1 = (inputs = []) => {
|
|
7896
|
-
const infoInputs = inputs.filter((_) => _.fieldType === 'info');
|
|
7897
|
-
return infoInputs.length
|
|
7898
|
-
? infoInputs.map(({ text, name }, i) => jsx(InfoCard, { __html: text }, `${name}_${i}`))
|
|
7899
|
-
: null;
|
|
7900
|
-
};
|
|
7901
|
-
|
|
7902
7894
|
const renderInputs = ({ field, inputs, params }) => inputs.map(getField(field, params, { ...InputsRetailMap }));
|
|
7903
7895
|
|
|
7904
7896
|
const renderStep$1 = ({ sections, field, step, params }) => sections?.map(({ inputs: origInputs = [], columns, title }, i) => {
|
|
7905
7897
|
const inputs = calculateInputs(getValue$1(field))(origInputs, step);
|
|
7906
|
-
return (jsxs("div", { className: style(inputColumnStyles(columns), 'grid gap-x-m'), children: [
|
|
7898
|
+
return (jsxs("div", { className: style(inputColumnStyles(columns), 'grid gap-x-m'), children: [renderTitle(title), renderInputs({ field, inputs, params })] }, `section-${i}`));
|
|
7907
7899
|
});
|
|
7908
7900
|
const getValue$1 = (field) => (name) => field(name)?.value;
|
|
7909
7901
|
|
|
@@ -10466,7 +10458,7 @@
|
|
|
10466
10458
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
10467
10459
|
});
|
|
10468
10460
|
|
|
10469
|
-
const packageVersion = "0.14.
|
|
10461
|
+
const packageVersion = "0.14.731";
|
|
10470
10462
|
|
|
10471
10463
|
exports.Blocks = Blocks;
|
|
10472
10464
|
exports.ContentPage = ContentPage;
|