@redneckz/wildless-cms-uni-blocks 0.14.280 → 0.14.281

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 (58) hide show
  1. package/bin/migration-scripts/0.14.280.js +21 -0
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +7 -4
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +27 -1
  6. package/bundle/model/LinkProps.d.ts +3 -3
  7. package/dist/components/ApplicationFormCustom/AddressBranchField.js +1 -1
  8. package/dist/components/ApplicationFormCustom/AddressBranchField.js.map +1 -1
  9. package/dist/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +27 -1
  10. package/dist/components/ApplicationFormCustom/VedField.js +1 -1
  11. package/dist/components/ApplicationFormCustom/VedField.js.map +1 -1
  12. package/dist/components/ApplicationFormCustom/getInitialFormState.js +4 -2
  13. package/dist/components/ApplicationFormCustom/getInitialFormState.js.map +1 -1
  14. package/dist/model/LinkProps.d.ts +3 -3
  15. package/lib/common.css +1 -1
  16. package/lib/components/ApplicationFormCustom/AddressBranchField.js +1 -1
  17. package/lib/components/ApplicationFormCustom/AddressBranchField.js.map +1 -1
  18. package/lib/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +27 -1
  19. package/lib/components/ApplicationFormCustom/VedField.js +1 -1
  20. package/lib/components/ApplicationFormCustom/VedField.js.map +1 -1
  21. package/lib/components/ApplicationFormCustom/getInitialFormState.js +4 -2
  22. package/lib/components/ApplicationFormCustom/getInitialFormState.js.map +1 -1
  23. package/lib/model/LinkProps.d.ts +3 -3
  24. package/mobile/bundle/bundle.umd.js +7 -4
  25. package/mobile/bundle/bundle.umd.min.js +1 -1
  26. package/mobile/bundle/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +27 -1
  27. package/mobile/bundle/model/LinkProps.d.ts +3 -3
  28. package/mobile/dist/components/ApplicationFormCustom/AddressBranchField.js +1 -1
  29. package/mobile/dist/components/ApplicationFormCustom/AddressBranchField.js.map +1 -1
  30. package/mobile/dist/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +27 -1
  31. package/mobile/dist/components/ApplicationFormCustom/VedField.js +1 -1
  32. package/mobile/dist/components/ApplicationFormCustom/VedField.js.map +1 -1
  33. package/mobile/dist/components/ApplicationFormCustom/getInitialFormState.js +4 -2
  34. package/mobile/dist/components/ApplicationFormCustom/getInitialFormState.js.map +1 -1
  35. package/mobile/dist/model/LinkProps.d.ts +3 -3
  36. package/mobile/lib/common.css +1 -1
  37. package/mobile/lib/components/ApplicationFormCustom/AddressBranchField.js +1 -1
  38. package/mobile/lib/components/ApplicationFormCustom/AddressBranchField.js.map +1 -1
  39. package/mobile/lib/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +27 -1
  40. package/mobile/lib/components/ApplicationFormCustom/VedField.js +1 -1
  41. package/mobile/lib/components/ApplicationFormCustom/VedField.js.map +1 -1
  42. package/mobile/lib/components/ApplicationFormCustom/getInitialFormState.js +4 -2
  43. package/mobile/lib/components/ApplicationFormCustom/getInitialFormState.js.map +1 -1
  44. package/mobile/lib/model/LinkProps.d.ts +3 -3
  45. package/mobile/src/components/ApplicationFormCustom/AddressBranchField.tsx +2 -2
  46. package/mobile/src/components/ApplicationFormCustom/ApplicationFormCustom.example.json +142 -64
  47. package/mobile/src/components/ApplicationFormCustom/ApplicationFormCustomContent.ts +31 -1
  48. package/mobile/src/components/ApplicationFormCustom/VedField.tsx +1 -1
  49. package/mobile/src/components/ApplicationFormCustom/getInitialFormState.tsx +5 -2
  50. package/mobile/src/model/LinkProps.ts +3 -3
  51. package/package.json +1 -1
  52. package/src/components/ApplicationFormCustom/AddressBranchField.tsx +2 -2
  53. package/src/components/ApplicationFormCustom/ApplicationFormCustom.example.json +142 -64
  54. package/src/components/ApplicationFormCustom/ApplicationFormCustom.fixture.tsx +159 -101
  55. package/src/components/ApplicationFormCustom/ApplicationFormCustomContent.ts +31 -1
  56. package/src/components/ApplicationFormCustom/VedField.tsx +1 -1
  57. package/src/components/ApplicationFormCustom/getInitialFormState.tsx +5 -2
  58. package/src/model/LinkProps.ts +3 -3
@@ -1468,7 +1468,7 @@
1468
1468
  field?.('addressBranch')?.onChange?.('');
1469
1469
  }
1470
1470
  }, [fieldRegion?.value]);
1471
- return (jsx(SelectControl, { label: "\u0410\u0434\u0440\u0435\u0441", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0430\u0434\u0440\u0435\u0441", options: (addressBranch || []).map(({ address = '' }) => ({
1471
+ return (jsx(SelectControl, { label: "\u041E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u0435", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043E\u0442\u0434\u0435\u043B\u0435\u043D\u0438\u0435", options: (addressBranch || []).map(({ address = '' }) => ({
1472
1472
  key: address,
1473
1473
  text: address,
1474
1474
  })), ...getValidation(field('addressBranch'), validatorObj.addressBranch, input?.required) }));
@@ -1634,7 +1634,7 @@
1634
1634
  field?.('region')?.onChange?.('');
1635
1635
  }
1636
1636
  }, [value]);
1637
- return (jsxs("div", { className: "py-m space-x-m grid @xl:flex @xl:items-center", children: [jsx(Radio, { name: "vedTypes", text: "\u0412\u0430\u043B\u044E\u0442\u043D\u044B\u0439 \u043A\u043E\u043D\u0442\u0440\u043E\u043B\u044C", value: "currencyControl", checked: value === 'currencyControl', onChange: onChange }), jsx(Radio, { name: "vedTypes", text: "\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0440\u043D\u044B\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438", value: "documentOperations", checked: value === 'documentOperations', onChange: onChange }), jsx(Radio, { name: "vedTypes", text: "\u041A\u043E\u043D\u0432\u0435\u0440\u0441\u0438\u043E\u043D\u043D\u044B\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438", value: "conversionTransactions", checked: value === 'conversionTransactions', onChange: onChange }), jsx(Radio, { name: "vedTypes", text: "\u0418\u043D\u044B\u0435 \u0432\u043E\u043F\u0440\u043E\u0441\u044B \u0412\u042D\u0414", value: "otherIssues", checked: value === 'otherIssues', onChange: onChange })] }));
1637
+ return (jsxs("div", { className: "py-m gap-m grid @xl:flex @xl:items-center", children: [jsx(Radio, { name: "vedTypes", text: "\u0412\u0430\u043B\u044E\u0442\u043D\u044B\u0439 \u043A\u043E\u043D\u0442\u0440\u043E\u043B\u044C", value: "currencyControl", checked: value === 'currencyControl', onChange: onChange }), jsx(Radio, { name: "vedTypes", text: "\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430\u0440\u043D\u044B\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438", value: "documentOperations", checked: value === 'documentOperations', onChange: onChange }), jsx(Radio, { name: "vedTypes", text: "\u041A\u043E\u043D\u0432\u0435\u0440\u0441\u0438\u043E\u043D\u043D\u044B\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438", value: "conversionTransactions", checked: value === 'conversionTransactions', onChange: onChange }), jsx(Radio, { name: "vedTypes", text: "\u0418\u043D\u044B\u0435 \u0432\u043E\u043F\u0440\u043E\u0441\u044B \u0412\u042D\u0414", value: "otherIssues", checked: value === 'otherIssues', onChange: onChange })] }));
1638
1638
  });
1639
1639
 
1640
1640
  const getField =
@@ -1742,7 +1742,10 @@
1742
1742
  consentDataProcessing: false,
1743
1743
  };
1744
1744
  const getInitialFormState = (inputs, typeForm = '') => {
1745
- const formState = Object.fromEntries(getNamesFromInput(inputs).map((_) => [_, initialFormState[_]]));
1745
+ const formState = Object.fromEntries(inputs.map((_) => [
1746
+ _.name,
1747
+ (_.fieldType === 'ved' && _?.defaultValue) || initialFormState[_.name],
1748
+ ]));
1746
1749
  if (formState?.serviceType && typeForm === 'PREMIUMSERVICE') {
1747
1750
  formState.serviceType = SERVICE_TYPES[1];
1748
1751
  }
@@ -5622,7 +5625,7 @@
5622
5625
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
5623
5626
  });
5624
5627
 
5625
- const packageVersion = "0.14.279";
5628
+ const packageVersion = "0.14.280";
5626
5629
 
5627
5630
  exports.Blocks = Blocks;
5628
5631
  exports.ContentPage = ContentPage;