@redneckz/wildless-cms-uni-blocks 0.14.1051 → 0.14.1053

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 (36) hide show
  1. package/bundle/bundle.umd.js +12 -4
  2. package/bundle/bundle.umd.min.js +1 -1
  3. package/dist/components/DebitForm/DboClientStatusContent.js +1 -1
  4. package/dist/components/DebitForm/DboClientStatusContent.js.map +1 -1
  5. package/dist/components/DebitForm/DebitFormStatus.js +1 -1
  6. package/dist/components/DebitForm/DebitFormStatus.js.map +1 -1
  7. package/dist/retail/components/Fields/SelectField.js +10 -1
  8. package/dist/retail/components/Fields/SelectField.js.map +1 -1
  9. package/lib/components/DebitForm/DboClientStatusContent.js +1 -1
  10. package/lib/components/DebitForm/DboClientStatusContent.js.map +1 -1
  11. package/lib/components/DebitForm/DebitFormStatus.js +1 -1
  12. package/lib/components/DebitForm/DebitFormStatus.js.map +1 -1
  13. package/lib/retail/components/Fields/SelectField.js +10 -1
  14. package/lib/retail/components/Fields/SelectField.js.map +1 -1
  15. package/mobile/bundle/bundle.umd.js +12 -4
  16. package/mobile/bundle/bundle.umd.min.js +1 -1
  17. package/mobile/dist/components/DebitForm/DboClientStatusContent.js +1 -1
  18. package/mobile/dist/components/DebitForm/DboClientStatusContent.js.map +1 -1
  19. package/mobile/dist/components/DebitForm/DebitFormStatus.js +1 -1
  20. package/mobile/dist/components/DebitForm/DebitFormStatus.js.map +1 -1
  21. package/mobile/dist/retail/components/Fields/SelectField.js +10 -1
  22. package/mobile/dist/retail/components/Fields/SelectField.js.map +1 -1
  23. package/mobile/lib/components/DebitForm/DboClientStatusContent.js +1 -1
  24. package/mobile/lib/components/DebitForm/DboClientStatusContent.js.map +1 -1
  25. package/mobile/lib/components/DebitForm/DebitFormStatus.js +1 -1
  26. package/mobile/lib/components/DebitForm/DebitFormStatus.js.map +1 -1
  27. package/mobile/lib/retail/components/Fields/SelectField.js +10 -1
  28. package/mobile/lib/retail/components/Fields/SelectField.js.map +1 -1
  29. package/mobile/src/components/DebitForm/DboClientStatusContent.tsx +1 -1
  30. package/mobile/src/components/DebitForm/DebitFormStatus.tsx +2 -2
  31. package/mobile/src/retail/components/Fields/SelectField.tsx +13 -0
  32. package/package.json +1 -1
  33. package/src/components/DebitForm/DboClientStatusContent.tsx +1 -1
  34. package/src/components/DebitForm/DebitFormStatus.tsx +2 -2
  35. package/src/icons/IconName.ts +4 -4
  36. package/src/retail/components/Fields/SelectField.tsx +13 -0
@@ -5433,7 +5433,15 @@
5433
5433
  key: _.key || '',
5434
5434
  text: _.value,
5435
5435
  })) || [];
5436
- return (jsx(SelectControl, { placeholder: placeholder, options: leadOptions, ...field(fieldName), ...rest, onChange: onChange ?? field(fieldName)?.onChange }));
5436
+ const fieldProps = field(fieldName);
5437
+ const currentValue = fieldProps?.value;
5438
+ const updateValue = useMemo(() => {
5439
+ if (currentValue?.key && !currentValue?.text) {
5440
+ return leadOptions.find((opt) => opt.key === currentValue.key) ?? currentValue;
5441
+ }
5442
+ return currentValue;
5443
+ }, [currentValue, leadOptions]);
5444
+ return (jsx(SelectControl, { placeholder: placeholder, options: leadOptions, ...field(fieldName), value: updateValue, ...rest, onChange: onChange ?? field(fieldName)?.onChange }));
5437
5445
  });
5438
5446
 
5439
5447
  const AmountWorkersField = JSX(({ field, input }) => {
@@ -12127,7 +12135,7 @@
12127
12135
  window.location.href = url;
12128
12136
  };
12129
12137
  const DebitFormStatus = JSX(({ title, description: dsc, sectionInfo, buttonText, isDboClient, isOffice, ...props }) => {
12130
- return (jsxs(BlockWrapper, { ...props, children: [jsx("div", { className: "flex flex-col md:flex-row items-center", children: jsx(Headline, { headlineVersion: "M", title: title, description: dsc, align: "text-left", padding: "p-xl", className: "w-full" }) }), jsx(SectionInfo, { items: sectionInfo }), isOffice ? (jsxs("div", { className: "flex flex-col md:flex-row md:gap-lg", children: [jsx(Button, { onClick: () => openLink(PRELOGIN_LINK), className: "w-full mt-lg", version: "primary", children: "\u0423\u0437\u043D\u0430\u0442\u044C \u0441\u0442\u0430\u0442\u0443\u0441 \u0437\u0430\u044F\u0432\u043A\u0438" }), jsx(LinkButton, { href: "/natural", text: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430 \u0433\u043B\u0430\u0432\u043D\u0443\u044E", version: "primary", className: "w-full mt-lg" })] })) : null, !isOffice && buttonText ? (jsx(LinkButton, { href: "/natural", text: buttonText, version: "primary", className: "w-full mt-lg" })) : null, isDboClient ? (jsxs("div", { className: "flex flex-col md:flex-row md:gap-lg", children: [jsx(LinkButton, { href: "/natural/debetcards", text: "\u0417\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u044C \u0437\u0430\u043D\u043E\u0432\u043E", version: "primary", className: "w-full mt-lg" }), jsx(LinkButton, { href: INTERNET_BANK_LINK, text: "\u0412\u044B\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0432 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0438", version: "primary", className: "w-full mt-lg" })] })) : null] }));
12138
+ return (jsxs(BlockWrapper, { ...props, children: [jsx("div", { className: "flex flex-col md:flex-row items-center", children: jsx(Headline, { headlineVersion: "M", title: title, description: dsc, align: "text-left", padding: "p-xl", className: "w-full" }) }), jsx(SectionInfo, { items: sectionInfo }), isOffice ? (jsxs("div", { className: "flex flex-col md:flex-row md:gap-lg", children: [jsx(Button, { onClick: () => openLink(PRELOGIN_LINK), className: "w-full mt-lg", version: "primary", children: "\u0423\u0437\u043D\u0430\u0442\u044C \u0441\u0442\u0430\u0442\u0443\u0441 \u0437\u0430\u044F\u0432\u043A\u0438" }), jsx(LinkButton, { href: "/natural", text: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430 \u0433\u043B\u0430\u0432\u043D\u0443\u044E", version: "primary", className: "w-full mt-lg" })] })) : null, !isOffice && buttonText ? (jsx(LinkButton, { href: "/natural", text: buttonText, version: "primary", className: "w-full mt-lg" })) : null, isDboClient ? (jsxs("div", { className: "flex flex-col md:flex-row md:gap-lg", children: [jsx(LinkButton, { href: "/natural/debetcards#form", text: "\u0417\u0430\u043A\u0430\u0437\u0430\u0442\u044C \u0437\u0432\u043E\u043D\u043E\u043A", version: "primary", className: "w-full mt-lg" }), jsx(LinkButton, { href: INTERNET_BANK_LINK, text: "\u0412\u044B\u043F\u0443\u0441\u0442\u0438\u0442\u044C \u043A\u0430\u0440\u0442\u0443 \u0432 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0438", version: "primary", className: "w-full mt-lg" })] })) : null] }));
12131
12139
  });
12132
12140
  const SectionInfo = ({ title, items, }) => {
12133
12141
  if (!items) {
@@ -12139,7 +12147,7 @@
12139
12147
 
12140
12148
  const DboClientStatusContent = JSX(() => {
12141
12149
  const { leadForm } = useRetailFormStore();
12142
- return (jsx(DebitFormStatus, { title: `${leadForm?.name} ${leadForm?.middleName},`, description: "\u0418\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F \u043E \u0412\u0430\u0441 \u0443\u0436\u0435 \u0435\u0441\u0442\u044C \u0432 \u0441\u0438\u0441\u0442\u0435\u043C\u0430\u0445 \u0411\u0430\u043D\u043A\u0430, \u043E\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043D\u0438\u043C\u0430\u043D\u0438\u0435 \u043D\u0430 \u043A\u043E\u0440\u0440\u0435\u043A\u0442\u043D\u043E\u0441\u0442\u044C \u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u044F \u043F\u0430\u0441\u043F\u043E\u0440\u0442\u043D\u044B\u0445 \u0434\u0430\u043D\u043D\u044B\u0445", sectionInfo: [
12150
+ return (jsx(DebitFormStatus, { title: `${leadForm?.name} ${leadForm?.middleName},`, description: "\u0412\u0430\u043C \u0434\u043E\u0441\u0442\u0443\u043F\u043D\u043E \u043E\u0444\u043E\u0440\u043C\u043B\u0435\u043D\u0438\u0435 \u0437\u0430\u044F\u0432\u043A\u0438 \u0432 \u043C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u043C \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0438 \u0431\u0430\u043D\u043A\u0430 \u043B\u0438\u0431\u043E \u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u043E\u0431\u0440\u0430\u0442\u0438\u0442\u044C\u0441\u044F \u0437\u0430 \u043F\u043E\u043C\u043E\u0449\u044C\u044E \u0432 \u043A\u043E\u043D\u0442\u0430\u043A\u0442-\u0446\u0435\u043D\u0442\u0440 \u0411\u0430\u043D\u043A\u0430 \u043F\u043E \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0443 8 800 100-0-100", sectionInfo: [
12143
12151
  {
12144
12152
  label: 'Фамилия',
12145
12153
  description: leadForm?.surname,
@@ -14784,7 +14792,7 @@
14784
14792
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
14785
14793
  });
14786
14794
 
14787
- const packageVersion = "0.14.1050";
14795
+ const packageVersion = "0.14.1052";
14788
14796
 
14789
14797
  exports.Blocks = Blocks;
14790
14798
  exports.ContentPage = ContentPage;