@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.
Files changed (146) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +21 -31
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +1 -9
  5. package/bundle/components/CreditCardForm/renderStep.d.ts +1 -2
  6. package/bundle/components/CreditForm/renderStep.d.ts +1 -2
  7. package/bundle/services/retail/inputs.d.ts +1 -0
  8. package/bundle/services/retail/model/RetailFormContent.d.ts +3 -17
  9. package/bundle/ui-kit/FormField/Fields/InfoCardField.d.ts +2 -0
  10. package/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  11. package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +1 -9
  12. package/dist/components/CreditCardForm/renderStep.d.ts +1 -2
  13. package/dist/components/CreditCardForm/renderStep.js +1 -3
  14. package/dist/components/CreditCardForm/renderStep.js.map +1 -1
  15. package/dist/components/CreditForm/renderStep.d.ts +1 -2
  16. package/dist/components/CreditForm/renderStep.js +1 -2
  17. package/dist/components/CreditForm/renderStep.js.map +1 -1
  18. package/dist/services/retail/content.js +12 -8
  19. package/dist/services/retail/content.js.map +1 -1
  20. package/dist/services/retail/inputs.d.ts +1 -0
  21. package/dist/services/retail/inputs.js +2 -0
  22. package/dist/services/retail/inputs.js.map +1 -1
  23. package/dist/services/retail/model/RetailFormContent.d.ts +3 -17
  24. package/dist/ui-kit/FormField/Fields/CurrencyField.js +1 -4
  25. package/dist/ui-kit/FormField/Fields/CurrencyField.js.map +1 -1
  26. package/dist/ui-kit/FormField/Fields/InfoCardField.d.ts +2 -0
  27. package/dist/ui-kit/FormField/Fields/InfoCardField.js +7 -0
  28. package/dist/ui-kit/FormField/Fields/InfoCardField.js.map +1 -0
  29. package/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  30. package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +1 -9
  31. package/lib/components/CreditCardForm/renderStep.d.ts +1 -2
  32. package/lib/components/CreditCardForm/renderStep.js +2 -4
  33. package/lib/components/CreditCardForm/renderStep.js.map +1 -1
  34. package/lib/components/CreditForm/renderStep.d.ts +1 -2
  35. package/lib/components/CreditForm/renderStep.js +1 -2
  36. package/lib/components/CreditForm/renderStep.js.map +1 -1
  37. package/lib/services/retail/content.js +12 -8
  38. package/lib/services/retail/content.js.map +1 -1
  39. package/lib/services/retail/inputs.d.ts +1 -0
  40. package/lib/services/retail/inputs.js +2 -0
  41. package/lib/services/retail/inputs.js.map +1 -1
  42. package/lib/services/retail/model/RetailFormContent.d.ts +3 -17
  43. package/lib/ui-kit/FormField/Fields/CurrencyField.js +1 -4
  44. package/lib/ui-kit/FormField/Fields/CurrencyField.js.map +1 -1
  45. package/lib/ui-kit/FormField/Fields/InfoCardField.d.ts +2 -0
  46. package/lib/ui-kit/FormField/Fields/InfoCardField.js +5 -0
  47. package/lib/ui-kit/FormField/Fields/InfoCardField.js.map +1 -0
  48. package/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  49. package/mobile/bundle/bundle.umd.js +21 -31
  50. package/mobile/bundle/bundle.umd.min.js +1 -1
  51. package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +1 -9
  52. package/mobile/bundle/components/CreditCardForm/renderStep.d.ts +1 -2
  53. package/mobile/bundle/components/CreditForm/renderStep.d.ts +1 -2
  54. package/mobile/bundle/services/retail/inputs.d.ts +1 -0
  55. package/mobile/bundle/services/retail/model/RetailFormContent.d.ts +3 -17
  56. package/mobile/bundle/ui-kit/FormField/Fields/InfoCardField.d.ts +2 -0
  57. package/mobile/bundle/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  58. package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +1 -9
  59. package/mobile/dist/components/CreditCardForm/renderStep.d.ts +1 -2
  60. package/mobile/dist/components/CreditCardForm/renderStep.js +1 -3
  61. package/mobile/dist/components/CreditCardForm/renderStep.js.map +1 -1
  62. package/mobile/dist/components/CreditForm/renderStep.d.ts +1 -2
  63. package/mobile/dist/components/CreditForm/renderStep.js +1 -2
  64. package/mobile/dist/components/CreditForm/renderStep.js.map +1 -1
  65. package/mobile/dist/services/retail/content.js +12 -8
  66. package/mobile/dist/services/retail/content.js.map +1 -1
  67. package/mobile/dist/services/retail/inputs.d.ts +1 -0
  68. package/mobile/dist/services/retail/inputs.js +2 -0
  69. package/mobile/dist/services/retail/inputs.js.map +1 -1
  70. package/mobile/dist/services/retail/model/RetailFormContent.d.ts +3 -17
  71. package/mobile/dist/ui-kit/FormField/Fields/CurrencyField.js +1 -4
  72. package/mobile/dist/ui-kit/FormField/Fields/CurrencyField.js.map +1 -1
  73. package/mobile/dist/ui-kit/FormField/Fields/InfoCardField.d.ts +2 -0
  74. package/mobile/dist/ui-kit/FormField/Fields/InfoCardField.js +7 -0
  75. package/mobile/dist/ui-kit/FormField/Fields/InfoCardField.js.map +1 -0
  76. package/mobile/dist/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  77. package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +1 -9
  78. package/mobile/lib/components/CreditCardForm/renderStep.d.ts +1 -2
  79. package/mobile/lib/components/CreditCardForm/renderStep.js +2 -4
  80. package/mobile/lib/components/CreditCardForm/renderStep.js.map +1 -1
  81. package/mobile/lib/components/CreditForm/renderStep.d.ts +1 -2
  82. package/mobile/lib/components/CreditForm/renderStep.js +1 -2
  83. package/mobile/lib/components/CreditForm/renderStep.js.map +1 -1
  84. package/mobile/lib/services/retail/content.js +12 -8
  85. package/mobile/lib/services/retail/content.js.map +1 -1
  86. package/mobile/lib/services/retail/inputs.d.ts +1 -0
  87. package/mobile/lib/services/retail/inputs.js +2 -0
  88. package/mobile/lib/services/retail/inputs.js.map +1 -1
  89. package/mobile/lib/services/retail/model/RetailFormContent.d.ts +3 -17
  90. package/mobile/lib/ui-kit/FormField/Fields/CurrencyField.js +1 -4
  91. package/mobile/lib/ui-kit/FormField/Fields/CurrencyField.js.map +1 -1
  92. package/mobile/lib/ui-kit/FormField/Fields/InfoCardField.d.ts +2 -0
  93. package/mobile/lib/ui-kit/FormField/Fields/InfoCardField.js +5 -0
  94. package/mobile/lib/ui-kit/FormField/Fields/InfoCardField.js.map +1 -0
  95. package/mobile/lib/ui-kit/FormField/NameFieldDef.d.ts +1 -1
  96. package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +1 -11
  97. package/mobile/src/components/CreditCardForm/renderStep.tsx +2 -11
  98. package/mobile/src/components/CreditForm/renderStep.tsx +1 -5
  99. package/mobile/src/services/retail/content.tsx +12 -8
  100. package/mobile/src/services/retail/inputs.tsx +2 -0
  101. package/mobile/src/services/retail/model/RetailFormContent.ts +4 -20
  102. package/mobile/src/ui-kit/FormField/Fields/CurrencyField.tsx +1 -8
  103. package/mobile/src/ui-kit/FormField/Fields/InfoCardField.tsx +7 -0
  104. package/mobile/src/ui-kit/FormField/NameFieldDef.ts +2 -1
  105. package/package.json +1 -1
  106. package/src/components/ApplicationForm/ApplicationFormContent.ts +1 -11
  107. package/src/components/CreditCardForm/renderStep.tsx +2 -11
  108. package/src/components/CreditForm/renderStep.tsx +1 -5
  109. package/src/services/retail/content.tsx +12 -8
  110. package/src/services/retail/inputs.tsx +2 -0
  111. package/src/services/retail/model/RetailFormContent.ts +4 -20
  112. package/src/ui-kit/FormField/Fields/CurrencyField.tsx +1 -8
  113. package/src/ui-kit/FormField/Fields/InfoCardField.tsx +7 -0
  114. package/src/ui-kit/FormField/NameFieldDef.ts +2 -1
  115. package/bundle/components/CreditCardForm/renderInfo.d.ts +0 -2
  116. package/bundle/components/CreditForm/renderInfo.d.ts +0 -2
  117. package/dist/components/CreditCardForm/renderInfo.d.ts +0 -2
  118. package/dist/components/CreditCardForm/renderInfo.js +0 -12
  119. package/dist/components/CreditCardForm/renderInfo.js.map +0 -1
  120. package/dist/components/CreditForm/renderInfo.d.ts +0 -2
  121. package/dist/components/CreditForm/renderInfo.js +0 -12
  122. package/dist/components/CreditForm/renderInfo.js.map +0 -1
  123. package/lib/components/CreditCardForm/renderInfo.d.ts +0 -2
  124. package/lib/components/CreditCardForm/renderInfo.js +0 -9
  125. package/lib/components/CreditCardForm/renderInfo.js.map +0 -1
  126. package/lib/components/CreditForm/renderInfo.d.ts +0 -2
  127. package/lib/components/CreditForm/renderInfo.js +0 -9
  128. package/lib/components/CreditForm/renderInfo.js.map +0 -1
  129. package/mobile/bundle/components/CreditCardForm/renderInfo.d.ts +0 -2
  130. package/mobile/bundle/components/CreditForm/renderInfo.d.ts +0 -2
  131. package/mobile/dist/components/CreditCardForm/renderInfo.d.ts +0 -2
  132. package/mobile/dist/components/CreditCardForm/renderInfo.js +0 -12
  133. package/mobile/dist/components/CreditCardForm/renderInfo.js.map +0 -1
  134. package/mobile/dist/components/CreditForm/renderInfo.d.ts +0 -2
  135. package/mobile/dist/components/CreditForm/renderInfo.js +0 -12
  136. package/mobile/dist/components/CreditForm/renderInfo.js.map +0 -1
  137. package/mobile/lib/components/CreditCardForm/renderInfo.d.ts +0 -2
  138. package/mobile/lib/components/CreditCardForm/renderInfo.js +0 -9
  139. package/mobile/lib/components/CreditCardForm/renderInfo.js.map +0 -1
  140. package/mobile/lib/components/CreditForm/renderInfo.d.ts +0 -2
  141. package/mobile/lib/components/CreditForm/renderInfo.js +0 -9
  142. package/mobile/lib/components/CreditForm/renderInfo.js.map +0 -1
  143. package/mobile/src/components/CreditCardForm/renderInfo.tsx +0 -10
  144. package/mobile/src/components/CreditForm/renderInfo.tsx +0 -10
  145. package/src/components/CreditCardForm/renderInfo.tsx +0 -10
  146. package/src/components/CreditForm/renderInfo.tsx +0 -10
@@ -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 { data } = useLeadFormData('CURRENCY');
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
- const filteredInputs = inputs.filter((_) => !checkCondition(_, getValue$3(field)));
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: 'info',
7437
- text: 'Клиент на момент оформления заявки на кредит должен быть: официально трудоустроен более 6 месяцев, ' +
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: 'info',
7529
- text: 'Сумма основного и дополнительных доходов после вычета налога',
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: 'info',
7607
- text: 'Если представитель Банка помогал Вам в заведении заявки, введите здесь его код',
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: 'info',
7686
- text: 'Если представитель Банка помогал Вам в заведении заявки, введите здесь его код',
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: [renderInfo$1(inputs), renderTitle(title), renderInputs({ field, inputs, params })] }, `section-${i}`));
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.730";
10459
+ const packageVersion = "0.14.732";
10470
10460
 
10471
10461
  exports.Blocks = Blocks;
10472
10462
  exports.ContentPage = ContentPage;