@redneckz/wildless-cms-uni-blocks 0.14.731 → 0.14.733
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 +21 -31
- 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/CurrencyField.js +1 -4
- package/dist/ui-kit/FormField/Fields/CurrencyField.js.map +1 -1
- 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/CurrencyField.js +1 -4
- package/lib/ui-kit/FormField/Fields/CurrencyField.js.map +1 -1
- 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 +21 -31
- 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/CurrencyField.js +1 -4
- package/mobile/dist/ui-kit/FormField/Fields/CurrencyField.js.map +1 -1
- 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/CurrencyField.js +1 -4
- package/mobile/lib/ui-kit/FormField/Fields/CurrencyField.js.map +1 -1
- 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/CurrencyField.tsx +1 -8
- 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/CurrencyField.tsx +1 -8
- 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
|
@@ -4125,11 +4125,9 @@
|
|
|
4125
4125
|
|
|
4126
4126
|
const RadioButtonGroupControl = JSX(({ className, label, onChange, error, ...rest }) => (jsxs("div", { className: style('shrink-0 w-full', className), children: [jsx(RadioButtonGroup, { label: getRequiredLabel({ label, errors: rest?.errors }), onChange: (_) => onChange && onChange(_), ...rest }), renderErrorText(error)] })));
|
|
4127
4127
|
|
|
4128
|
-
const DEFAULT_CURRENCY_TYPES = [{ id: '810', text: 'Рубли' }];
|
|
4129
4128
|
const CurrencyField = JSX(({ field, input }) => {
|
|
4130
4129
|
const { value, onChange } = field('currency');
|
|
4131
|
-
const {
|
|
4132
|
-
const currencyTypes = data?.map((_) => ({ id: _.key, text: _.value })) ?? DEFAULT_CURRENCY_TYPES;
|
|
4130
|
+
const currencyTypes = [{ id: '810', text: 'Рубли' }];
|
|
4133
4131
|
return (jsx(RadioButtonGroupControl, { label: "\u0412\u0430\u043B\u044E\u0442\u0430", orientation: "horizontal", items: currencyTypes, value: value, onChange: (_) => onChange?.(_), ...getValidation(field('currency'), validatorObj.currency, input?.required) }));
|
|
4134
4132
|
});
|
|
4135
4133
|
|
|
@@ -4232,6 +4230,10 @@
|
|
|
4232
4230
|
return (jsx(SelectField, { field: field, source: housing, label: "\u0422\u0438\u043F \u0436\u0438\u043B\u044C\u044F", fieldName: "housing", input: input }));
|
|
4233
4231
|
});
|
|
4234
4232
|
|
|
4233
|
+
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] })] })));
|
|
4234
|
+
|
|
4235
|
+
const InfoCardField = JSX(({ input }) => (jsx(InfoCard, { __html: input?.label })));
|
|
4236
|
+
|
|
4235
4237
|
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
4238
|
|
|
4237
4239
|
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 +4443,7 @@
|
|
|
4441
4443
|
bankEmployeeCode: (props) => jsx(BankEmpoleeCodeField, { ...props }),
|
|
4442
4444
|
partInBusiness: (props) => jsx(PartInBusinessField, { ...props }),
|
|
4443
4445
|
regionRetail: (props) => jsx(RegionRetailField, { ...props }),
|
|
4446
|
+
infoCard: (props) => jsx(InfoCardField, { ...props }),
|
|
4444
4447
|
calculator: (props) => jsx(CreditCalcField, { ...props }),
|
|
4445
4448
|
};
|
|
4446
4449
|
const InputRetailCardMap = {
|
|
@@ -6827,8 +6830,6 @@
|
|
|
6827
6830
|
return clearTimer;
|
|
6828
6831
|
};
|
|
6829
6832
|
|
|
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
6833
|
const TimerCircle = JSX(({ interval = 0, intervalExpireAction = () => null, title, __html }) => {
|
|
6833
6834
|
const [time, setTime] = useState(interval);
|
|
6834
6835
|
const setTimeWithHandleExpire = (value) => {
|
|
@@ -6987,19 +6988,11 @@
|
|
|
6987
6988
|
const checkConsentPfrFlg = ({ name }, getValue) => name === 'snils' && isSnilsRequired(getValue);
|
|
6988
6989
|
const isSnilsRequired = (getValue) => getValue('confirmationIncome')?.key !== 'PFR_CERTIFICATE';
|
|
6989
6990
|
|
|
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
6991
|
const renderInputs$1 = ({ field, inputs, params }) => inputs.map(getField(field, params, { ...InputsRetailMap, ...InputRetailCardMap }));
|
|
6998
6992
|
|
|
6999
6993
|
const renderStep$2 = ({ sections, field, step, params }) => sections?.map(({ inputs: origInputs = [], columns, title }, i) => {
|
|
7000
6994
|
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}`));
|
|
6995
|
+
return (jsxs("div", { className: style(inputColumnStyles(columns), 'grid gap-x-m'), children: [renderTitle(title), renderInputs$1({ field, inputs, params })] }, `section-${i}`));
|
|
7003
6996
|
});
|
|
7004
6997
|
const getValue$3 = (field) => (name) => field(name)?.value;
|
|
7005
6998
|
|
|
@@ -7433,8 +7426,9 @@
|
|
|
7433
7426
|
{
|
|
7434
7427
|
inputs: [
|
|
7435
7428
|
{
|
|
7436
|
-
fieldType: '
|
|
7437
|
-
|
|
7429
|
+
fieldType: 'common',
|
|
7430
|
+
name: 'infoCard',
|
|
7431
|
+
label: 'Клиент на момент оформления заявки на кредит должен быть: официально трудоустроен более 6 месяцев, ' +
|
|
7438
7432
|
'если Клиент получает з/п на счет РСХБ, то трудоустроен более 3 месяцев, не должен находиться в декретном отпуске',
|
|
7439
7433
|
},
|
|
7440
7434
|
],
|
|
@@ -7525,8 +7519,9 @@
|
|
|
7525
7519
|
{
|
|
7526
7520
|
inputs: [
|
|
7527
7521
|
{
|
|
7528
|
-
fieldType: '
|
|
7529
|
-
|
|
7522
|
+
fieldType: 'common',
|
|
7523
|
+
name: 'infoCard',
|
|
7524
|
+
label: 'Сумма основного и дополнительных доходов после вычета налога',
|
|
7530
7525
|
},
|
|
7531
7526
|
],
|
|
7532
7527
|
},
|
|
@@ -7603,8 +7598,9 @@
|
|
|
7603
7598
|
{
|
|
7604
7599
|
inputs: [
|
|
7605
7600
|
{
|
|
7606
|
-
fieldType: '
|
|
7607
|
-
|
|
7601
|
+
fieldType: 'common',
|
|
7602
|
+
name: 'infoCard',
|
|
7603
|
+
label: 'Если представитель Банка помогал Вам в заведении заявки, введите здесь его код',
|
|
7608
7604
|
},
|
|
7609
7605
|
],
|
|
7610
7606
|
},
|
|
@@ -7682,8 +7678,9 @@
|
|
|
7682
7678
|
{
|
|
7683
7679
|
inputs: [
|
|
7684
7680
|
{
|
|
7685
|
-
fieldType: '
|
|
7686
|
-
|
|
7681
|
+
fieldType: 'common',
|
|
7682
|
+
name: 'infoCard',
|
|
7683
|
+
label: 'Если представитель Банка помогал Вам в заведении заявки, введите здесь его код',
|
|
7687
7684
|
condition: {
|
|
7688
7685
|
name: 'methodObtain',
|
|
7689
7686
|
values: ['office'],
|
|
@@ -7892,18 +7889,11 @@
|
|
|
7892
7889
|
return statusesMap[status] || jsx(ReworkStatusContent, {});
|
|
7893
7890
|
};
|
|
7894
7891
|
|
|
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
7892
|
const renderInputs = ({ field, inputs, params }) => inputs.map(getField(field, params, { ...InputsRetailMap }));
|
|
7903
7893
|
|
|
7904
7894
|
const renderStep$1 = ({ sections, field, step, params }) => sections?.map(({ inputs: origInputs = [], columns, title }, i) => {
|
|
7905
7895
|
const inputs = calculateInputs(getValue$1(field))(origInputs, step);
|
|
7906
|
-
return (jsxs("div", { className: style(inputColumnStyles(columns), 'grid gap-x-m'), children: [
|
|
7896
|
+
return (jsxs("div", { className: style(inputColumnStyles(columns), 'grid gap-x-m'), children: [renderTitle(title), renderInputs({ field, inputs, params })] }, `section-${i}`));
|
|
7907
7897
|
});
|
|
7908
7898
|
const getValue$1 = (field) => (name) => field(name)?.value;
|
|
7909
7899
|
|
|
@@ -10466,7 +10456,7 @@
|
|
|
10466
10456
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
10467
10457
|
});
|
|
10468
10458
|
|
|
10469
|
-
const packageVersion = "0.14.
|
|
10459
|
+
const packageVersion = "0.14.732";
|
|
10470
10460
|
|
|
10471
10461
|
exports.Blocks = Blocks;
|
|
10472
10462
|
exports.ContentPage = ContentPage;
|