@redneckz/wildless-cms-uni-blocks 0.14.550 → 0.14.552

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 (48) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +6 -5
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +20 -4
  5. package/bundle/model/AspectsProps.d.ts +1 -1
  6. package/dist/api/LeadServiceAPI.js +4 -3
  7. package/dist/api/LeadServiceAPI.js.map +1 -1
  8. package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +20 -4
  9. package/dist/model/AspectsProps.d.ts +1 -1
  10. package/dist/ui-kit/Radio/Radio.js +1 -1
  11. package/dist/ui-kit/Radio/Radio.js.map +1 -1
  12. package/lib/api/LeadServiceAPI.js +4 -3
  13. package/lib/api/LeadServiceAPI.js.map +1 -1
  14. package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +20 -4
  15. package/lib/model/AspectsProps.d.ts +1 -1
  16. package/lib/ui-kit/Radio/Radio.js +1 -1
  17. package/lib/ui-kit/Radio/Radio.js.map +1 -1
  18. package/mobile/bundle/bundle.umd.js +6 -5
  19. package/mobile/bundle/bundle.umd.min.js +1 -1
  20. package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +20 -4
  21. package/mobile/bundle/model/AspectsProps.d.ts +1 -1
  22. package/mobile/dist/api/LeadServiceAPI.js +4 -3
  23. package/mobile/dist/api/LeadServiceAPI.js.map +1 -1
  24. package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +20 -4
  25. package/mobile/dist/model/AspectsProps.d.ts +1 -1
  26. package/mobile/dist/ui-kit/Radio/Radio.js +1 -1
  27. package/mobile/dist/ui-kit/Radio/Radio.js.map +1 -1
  28. package/mobile/lib/api/LeadServiceAPI.js +4 -3
  29. package/mobile/lib/api/LeadServiceAPI.js.map +1 -1
  30. package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +20 -4
  31. package/mobile/lib/model/AspectsProps.d.ts +1 -1
  32. package/mobile/lib/ui-kit/Radio/Radio.js +1 -1
  33. package/mobile/lib/ui-kit/Radio/Radio.js.map +1 -1
  34. package/mobile/src/api/LeadServiceAPI.ts +5 -2
  35. package/mobile/src/components/ApplicationForm/ApplicationForm.example.json +4 -0
  36. package/mobile/src/components/ApplicationForm/ApplicationForm.ui.json +3 -0
  37. package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +24 -4
  38. package/mobile/src/model/AspectsProps.ts +1 -1
  39. package/mobile/src/ui-kit/Radio/Radio.tsx +1 -1
  40. package/package.json +1 -1
  41. package/src/api/LeadServiceAPI.ts +5 -2
  42. package/src/components/ApplicationForm/ApplicationForm.example.json +4 -0
  43. package/src/components/ApplicationForm/ApplicationForm.fixture.mobile.tsx +1 -0
  44. package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +1 -0
  45. package/src/components/ApplicationForm/ApplicationForm.ui.json +3 -0
  46. package/src/components/ApplicationForm/ApplicationFormContent.ts +24 -4
  47. package/src/model/AspectsProps.ts +1 -1
  48. package/src/ui-kit/Radio/Radio.tsx +1 -1
@@ -888,7 +888,7 @@
888
888
 
889
889
  function LeadServiceAPI() {
890
890
  async function send(body, isIndividualType = false) {
891
- const { typeForm, region, phone = '', email, birthday, inn, fullName, addressBranch, secondaryPhone = '', bankEmpolee, applicationDate, serviceDirection, ...staticBody } = body;
891
+ const { typeForm, region, phone = '', email, birthday, desiredMeetingDate, inn, fullName, addressBranch, secondaryPhone = '', bankEmpolee, applicationDate, serviceDirection, ...staticBody } = body;
892
892
  const isNaturalPerson = isIndividualType && serviceDirection !== 'Юридическое лицо / ИП';
893
893
  const url = isNaturalPerson ? '/api/v1/lead' : '/api/v1/sendcorporatelead';
894
894
  const submitBody = {
@@ -896,7 +896,8 @@
896
896
  ...getRegion$1(region, isNaturalPerson),
897
897
  ...getEmail(email, isNaturalPerson),
898
898
  ...getPhone(phone),
899
- ...(isNaturalPerson ? getBirthday(birthday) : { inn, fullName }),
899
+ ...getFormatDate(desiredMeetingDate, 'desiredMeetingDate'),
900
+ ...(isNaturalPerson ? getFormatDate(birthday) : { inn, fullName }),
900
901
  ...(typeForm === 'FEEDBACK'
901
902
  ? {}
902
903
  : {
@@ -929,7 +930,7 @@
929
930
  };
930
931
  }
931
932
  const getPhone = (phone) => (phone ? { phone: formatPhone(phone) } : {});
932
- const getBirthday = (birthday) => (birthday ? { birthday: formatDate(birthday) } : {});
933
+ const getFormatDate = (date, key = 'birthday') => date ? { [key]: formatDate(date) } : {};
933
934
  const getRegion$1 = (region, isNaturalPerson = true) => ({
934
935
  [isNaturalPerson ? 'regionBranch' : 'region']: region,
935
936
  });
@@ -1878,7 +1879,7 @@
1878
1879
 
1879
1880
  const UltraPremiumField = JSX(({ field }) => (jsx(SelectControl, { label: "\u0422\u0438\u043F \u043E\u0431\u0441\u043B\u0443\u0436\u0438\u0432\u0430\u043D\u0438\u044F", options: SERVICE_TYPES, ...withValidator(field('serviceType'), validatorObj.serviceType) })));
1880
1881
 
1881
- const Radio = JSX(({ name, text, value, checked, onChange, className }) => (jsx("div", { className: className, children: jsxs("label", { className: "font-sans flex gap-s items-center relative cursor-pointer", children: [jsx("input", { className: style(inputValidStyle, defaultCheckStyle, 'flex justify-center items-center after:block after:w-2.5 after:h-2.5 after:rounded-full rounded-full', 'checked:border-2 checked:!border-primary-main focus:checked:border-primary-main checked:after:bg-primary-main'), type: "radio", value: value, name: name, checked: checked, onChange: (_) => onChange?.(_.target.value), role: "radio" }), text ? jsx(Text, { color: "text-primary-text", children: text }) : null] }) })));
1882
+ const Radio = JSX(({ name, text, value, checked, onChange, className }) => (jsx("div", { className: className, children: jsxs("label", { className: "font-sans flex gap-s items-center relative cursor-pointer", children: [jsx("input", { className: style(inputValidStyle.split(' ').filter((_) => _ !== 'rounded'), defaultCheckStyle, 'flex justify-center items-center after:block after:w-2.5 after:h-2.5 after:rounded-full rounded-full', 'checked:border-2 checked:!border-primary-main focus:checked:border-primary-main checked:after:bg-primary-main'), type: "radio", value: value, name: name, checked: checked, onChange: (_) => onChange?.(_.target.value), role: "radio" }), text ? jsx(Text, { color: "text-primary-text", children: text }) : null] }) })));
1882
1883
 
1883
1884
  const VED_TYPES = [
1884
1885
  'currencyControl',
@@ -6553,7 +6554,7 @@
6553
6554
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
6554
6555
  });
6555
6556
 
6556
- const packageVersion = "0.14.549";
6557
+ const packageVersion = "0.14.551";
6557
6558
 
6558
6559
  exports.Blocks = Blocks;
6559
6560
  exports.ContentPage = ContentPage;