@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.
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +6 -5
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +20 -4
- package/bundle/model/AspectsProps.d.ts +1 -1
- package/dist/api/LeadServiceAPI.js +4 -3
- package/dist/api/LeadServiceAPI.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +20 -4
- package/dist/model/AspectsProps.d.ts +1 -1
- package/dist/ui-kit/Radio/Radio.js +1 -1
- package/dist/ui-kit/Radio/Radio.js.map +1 -1
- package/lib/api/LeadServiceAPI.js +4 -3
- package/lib/api/LeadServiceAPI.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +20 -4
- package/lib/model/AspectsProps.d.ts +1 -1
- package/lib/ui-kit/Radio/Radio.js +1 -1
- package/lib/ui-kit/Radio/Radio.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +6 -5
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +20 -4
- package/mobile/bundle/model/AspectsProps.d.ts +1 -1
- package/mobile/dist/api/LeadServiceAPI.js +4 -3
- package/mobile/dist/api/LeadServiceAPI.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +20 -4
- package/mobile/dist/model/AspectsProps.d.ts +1 -1
- package/mobile/dist/ui-kit/Radio/Radio.js +1 -1
- package/mobile/dist/ui-kit/Radio/Radio.js.map +1 -1
- package/mobile/lib/api/LeadServiceAPI.js +4 -3
- package/mobile/lib/api/LeadServiceAPI.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +20 -4
- package/mobile/lib/model/AspectsProps.d.ts +1 -1
- package/mobile/lib/ui-kit/Radio/Radio.js +1 -1
- package/mobile/lib/ui-kit/Radio/Radio.js.map +1 -1
- package/mobile/src/api/LeadServiceAPI.ts +5 -2
- package/mobile/src/components/ApplicationForm/ApplicationForm.example.json +4 -0
- package/mobile/src/components/ApplicationForm/ApplicationForm.ui.json +3 -0
- package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +24 -4
- package/mobile/src/model/AspectsProps.ts +1 -1
- package/mobile/src/ui-kit/Radio/Radio.tsx +1 -1
- package/package.json +1 -1
- package/src/api/LeadServiceAPI.ts +5 -2
- package/src/components/ApplicationForm/ApplicationForm.example.json +4 -0
- package/src/components/ApplicationForm/ApplicationForm.fixture.mobile.tsx +1 -0
- package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +1 -0
- package/src/components/ApplicationForm/ApplicationForm.ui.json +3 -0
- package/src/components/ApplicationForm/ApplicationFormContent.ts +24 -4
- package/src/model/AspectsProps.ts +1 -1
- package/src/ui-kit/Radio/Radio.tsx +1 -1
package/bundle/bundle.umd.js
CHANGED
|
@@ -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
|
-
...(
|
|
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
|
|
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.
|
|
6557
|
+
const packageVersion = "0.14.551";
|
|
6557
6558
|
|
|
6558
6559
|
exports.Blocks = Blocks;
|
|
6559
6560
|
exports.ContentPage = ContentPage;
|