@redneckz/wildless-cms-uni-blocks 0.14.202 → 0.14.203

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 (39) hide show
  1. package/bin/migration-scripts/0.14.203.js +21 -0
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +7 -5
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +4 -4
  6. package/dist/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +4 -4
  7. package/dist/components/ApplicationFormCustom/getField.js +5 -4
  8. package/dist/components/ApplicationFormCustom/getField.js.map +1 -1
  9. package/dist/components/ApplicationFormCustom/getObjectValidator.js +1 -0
  10. package/dist/components/ApplicationFormCustom/getObjectValidator.js.map +1 -1
  11. package/lib/components/ApplicationFormCustom/ApplicationFormCustom.fixture.d.ts +2 -0
  12. package/lib/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +4 -4
  13. package/lib/components/ApplicationFormCustom/getField.js +5 -4
  14. package/lib/components/ApplicationFormCustom/getField.js.map +1 -1
  15. package/lib/components/ApplicationFormCustom/getObjectValidator.js +1 -0
  16. package/lib/components/ApplicationFormCustom/getObjectValidator.js.map +1 -1
  17. package/mobile/bundle/bundle.umd.js +7 -5
  18. package/mobile/bundle/bundle.umd.min.js +1 -1
  19. package/mobile/bundle/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +4 -4
  20. package/mobile/dist/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +4 -4
  21. package/mobile/dist/components/ApplicationFormCustom/getField.js +5 -4
  22. package/mobile/dist/components/ApplicationFormCustom/getField.js.map +1 -1
  23. package/mobile/dist/components/ApplicationFormCustom/getObjectValidator.js +1 -0
  24. package/mobile/dist/components/ApplicationFormCustom/getObjectValidator.js.map +1 -1
  25. package/mobile/lib/components/ApplicationFormCustom/ApplicationFormCustomContent.d.ts +4 -4
  26. package/mobile/lib/components/ApplicationFormCustom/getField.js +5 -4
  27. package/mobile/lib/components/ApplicationFormCustom/getField.js.map +1 -1
  28. package/mobile/lib/components/ApplicationFormCustom/getObjectValidator.js +1 -0
  29. package/mobile/lib/components/ApplicationFormCustom/getObjectValidator.js.map +1 -1
  30. package/mobile/src/components/ApplicationFormCustom/ApplicationFormCustom.example.json +87 -1
  31. package/mobile/src/components/ApplicationFormCustom/ApplicationFormCustomContent.ts +8 -5
  32. package/mobile/src/components/ApplicationFormCustom/getField.tsx +14 -3
  33. package/mobile/src/components/ApplicationFormCustom/getObjectValidator.tsx +1 -0
  34. package/package.json +1 -1
  35. package/src/components/ApplicationFormCustom/ApplicationFormCustom.example.json +87 -1
  36. package/src/components/ApplicationFormCustom/ApplicationFormCustom.fixture.tsx +60 -6
  37. package/src/components/ApplicationFormCustom/ApplicationFormCustomContent.ts +8 -5
  38. package/src/components/ApplicationFormCustom/getField.tsx +14 -3
  39. package/src/components/ApplicationFormCustom/getObjectValidator.tsx +1 -0
@@ -1207,6 +1207,7 @@
1207
1207
  email: defaultValidator,
1208
1208
  fullName: defaultValidator,
1209
1209
  inn: innValidator,
1210
+ partnerComments: defaultValidator,
1210
1211
  comment: defaultValidator,
1211
1212
  consentDataProcessing: checkboxValidator,
1212
1213
  };
@@ -1900,19 +1901,20 @@
1900
1901
  const CheckboxWithError = JSX(({ className, text, value, key, disabled, error, onChange }) => (jsxs("div", { className: style('shrink-0 w-full', className), children: [jsx(Checkbox, { text: text, value: value, disabled: disabled, onChange: onChange }, key), renderErrorText(error)] })));
1901
1902
 
1902
1903
  const getField = (field) => (input, index) => {
1903
- const { required } = input;
1904
+ const { required, ...rest } = input;
1904
1905
  const InputsMap = {
1905
1906
  surname: (jsx(InputControl, { label: "\u0424\u0430\u043C\u0438\u043B\u0438\u044F", ...getValidation(field('surname'), validatorObj.surname, required) })),
1906
- name: (jsx(InputControl, { label: "\u0418\u043C\u044F", ...getValidation(field('name'), validatorObj.name, required) })),
1907
+ name: (jsx(InputControl, { label: "\u0418\u043C\u044F", ...getValidation(field('name'), validatorObj.name, required), ...rest })),
1907
1908
  middleName: (jsx(InputControl, { label: "\u041E\u0442\u0447\u0435\u0441\u0442\u0432\u043E (\u041E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E, \u043F\u0440\u0438 \u043D\u0430\u043B\u0438\u0447\u0438\u0438)", ...field('middleName') })),
1908
1909
  phone: (jsx(PhoneInputControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...getValidation(field('phone'), validatorObj.phone, required) })),
1909
1910
  email: (jsx(InputControl, { label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...getValidation(field('email'), validatorObj.email, required) })),
1910
- fullName: (jsx(InputControl, { label: "\u0424\u0418\u041E", ...getValidation(field('fullName'), validatorObj.fullName, required) })),
1911
+ fullName: (jsx(InputControl, { label: "\u0424\u0418\u041E", ...getValidation(field('fullName'), validatorObj.fullName, required), ...rest })),
1911
1912
  inn: jsx(InputControl, { label: "\u0418\u041D\u041D", ...getValidation(field('inn'), validatorObj.inn, required) }),
1912
1913
  comment: (jsx(InputControl, { className: "col-span-2", ...getValidation(field('comment'), validatorObj.comment, required), placeholder: "\u0412\u0430\u0448\u0435 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435", isTextarea: true })),
1913
1914
  region: jsx(RegionField, { field: field, input: input }),
1914
1915
  birthday: (jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u0440\u043E\u0436\u0434\u0435\u043D\u0438\u044F", ...getValidation(field('birthday'), validatorObj.birthday, required) })),
1915
- client: (jsx(CheckboxWithError, { ...field('isClient'), text: '\u042F\u0432\u043B\u044F\u044E\u0441\u044C \u043A\u043B\u0438\u0435\u043D\u0442\u043E\u043C \u0431\u0430\u043D\u043A\u0430 \u0410\u041E "\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A"' })),
1916
+ isClient: (jsx(CheckboxWithError, { ...field('isClient'), text: '\u042F\u0432\u043B\u044F\u044E\u0441\u044C \u043A\u043B\u0438\u0435\u043D\u0442\u043E\u043C \u0431\u0430\u043D\u043A\u0430 \u0410\u041E "\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A"' })),
1917
+ partnerComments: (jsx(InputControl, { label: "\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u043E\u0431\u044A\u0435\u043A\u0442\u043E\u0432 \u0438\u043D\u043A\u0430\u0441\u0441\u0430\u0446\u0438\u0438", ...getValidation(field('partnerComments'), validatorObj.partnerComments, required) })),
1916
1918
  };
1917
1919
  return jsx("div", { children: InputsMap[input.name] }, String(index));
1918
1920
  };
@@ -6035,7 +6037,7 @@
6035
6037
  slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
6036
6038
  });
6037
6039
 
6038
- const packageVersion = "0.14.201";
6040
+ const packageVersion = "0.14.202";
6039
6041
 
6040
6042
  exports.Blocks = Blocks;
6041
6043
  exports.ContentPage = ContentPage;