@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
@@ -21,7 +21,7 @@ export interface SubmitButtonProps {
21
21
  /**
22
22
  * @title Название поля ввода
23
23
  * @required
24
- * @enumNames ["Фамилия", "Имя", "Отчество", "Email", "Телефон", "ФИО", "ИНН", "Комментарий", "Регион", "Тип формы", "День рождения", "Клиент банка", "Продукт", "Согласие на обработку"]
24
+ * @enumNames ["Фамилия", "Имя", "Отчество", "Email", "Телефон", "ФИО", "ИНН", "Комментарий", "Регион", "Тип формы", "День рождения", "Клиент банка", "Продукт", "Комментарий партнёров", "Согласие на обработку"]
25
25
  */
26
26
  export type NameFieldDef =
27
27
  | 'surname'
@@ -35,8 +35,9 @@ export type NameFieldDef =
35
35
  | 'region'
36
36
  | 'typeForm'
37
37
  | 'birthday'
38
- | 'client'
38
+ | 'isClient'
39
39
  | 'product'
40
+ | 'partnerComments'
40
41
  | 'consentDataProcessing';
41
42
 
42
43
  export type FieldDef = Required &
@@ -47,16 +48,18 @@ export type FieldDef = Required &
47
48
  /**
48
49
  * @title Тип формы
49
50
  * @required
50
- * @enumNames ["", "Эквайринг", "Предупреждение о мошенничестве", "Заявка на бизнес-карту", "Факты коррупции", "Самоинкассация", "Заявка для ФЛ"]
51
+ * @enumNames ["", "Эквайринг", "Предупреждение о мошенничестве", "Заявка на бизнес-карту", "Открытие брокерского счета ФЛ", "Инкассация", "Факты коррупции", "Заявка для ФЛ", "Самоинкассация"]
51
52
  */
52
53
  type TypeFormFieldDef =
53
54
  | ''
54
55
  | 'ACQR'
55
56
  | 'ANTIFRAUD'
56
57
  | 'BCRD'
58
+ | 'BROKACCOUNT'
59
+ | 'COLLECTION'
57
60
  | 'CORRUPTION'
58
- | 'SELFCOLLECTION'
59
- | 'DPST';
61
+ | 'DPST'
62
+ | 'SELFCOLLECTION';
60
63
 
61
64
  /**
62
65
  * @title Количество колнок
@@ -10,7 +10,7 @@ import { type FieldDef } from './ApplicationFormCustomContent';
10
10
  import { validatorObj } from './getObjectValidator';
11
11
 
12
12
  export const getField = (field: FormFieldRegisterer<any>) => (input: FieldDef, index: number) => {
13
- const { required } = input;
13
+ const { required, ...rest } = input;
14
14
  const InputsMap = {
15
15
  surname: (
16
16
  <InputControl
@@ -19,7 +19,11 @@ export const getField = (field: FormFieldRegisterer<any>) => (input: FieldDef, i
19
19
  />
20
20
  ),
21
21
  name: (
22
- <InputControl label="Имя" {...getValidation(field('name'), validatorObj.name, required)} />
22
+ <InputControl
23
+ label="Имя"
24
+ {...getValidation(field('name'), validatorObj.name, required)}
25
+ {...rest}
26
+ />
23
27
  ),
24
28
  middleName: (
25
29
  <InputControl label="Отчество (Обязательно, при наличии)" {...field('middleName')} />
@@ -40,6 +44,7 @@ export const getField = (field: FormFieldRegisterer<any>) => (input: FieldDef, i
40
44
  <InputControl
41
45
  label="ФИО"
42
46
  {...getValidation(field('fullName'), validatorObj.fullName, required)}
47
+ {...rest}
43
48
  />
44
49
  ),
45
50
  inn: <InputControl label="ИНН" {...getValidation(field('inn'), validatorObj.inn, required)} />,
@@ -58,9 +63,15 @@ export const getField = (field: FormFieldRegisterer<any>) => (input: FieldDef, i
58
63
  {...getValidation(field('birthday'), validatorObj.birthday, required)}
59
64
  />
60
65
  ),
61
- client: (
66
+ isClient: (
62
67
  <CheckboxWithError {...field('isClient')} text='Являюсь клиентом банка АО "Россельхозбанк"' />
63
68
  ),
69
+ partnerComments: (
70
+ <InputControl
71
+ label="Количество объектов инкассации"
72
+ {...getValidation(field('partnerComments'), validatorObj.partnerComments, required)}
73
+ />
74
+ ),
64
75
  };
65
76
 
66
77
  return <div key={String(index)}>{InputsMap[input.name]}</div>;
@@ -20,6 +20,7 @@ export const validatorObj: Record<string, Validator> = {
20
20
  email: defaultValidator,
21
21
  fullName: defaultValidator,
22
22
  inn: innValidator,
23
+ partnerComments: defaultValidator,
23
24
  comment: defaultValidator,
24
25
  consentDataProcessing: checkboxValidator,
25
26
  };