@redneckz/wildless-cms-uni-blocks 0.14.559 → 0.14.560
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/bundle.umd.js +40 -29
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/MiddleNameField.d.ts +2 -0
- package/bundle/components/ApplicationForm/NameField.d.ts +2 -0
- package/bundle/components/ApplicationForm/PhoneField.d.ts +2 -0
- package/bundle/components/ApplicationForm/SurnameField.d.ts +2 -0
- package/dist/components/ApplicationForm/MiddleNameField.d.ts +2 -0
- package/dist/components/ApplicationForm/MiddleNameField.js +7 -0
- package/dist/components/ApplicationForm/MiddleNameField.js.map +1 -0
- package/dist/components/ApplicationForm/NameField.d.ts +2 -0
- package/dist/components/ApplicationForm/NameField.js +12 -0
- package/dist/components/ApplicationForm/NameField.js.map +1 -0
- package/dist/components/ApplicationForm/PhoneField.d.ts +2 -0
- package/dist/components/ApplicationForm/PhoneField.js +9 -0
- package/dist/components/ApplicationForm/PhoneField.js.map +1 -0
- package/dist/components/ApplicationForm/SurnameField.d.ts +2 -0
- package/dist/components/ApplicationForm/SurnameField.js +9 -0
- package/dist/components/ApplicationForm/SurnameField.js.map +1 -0
- package/dist/components/ApplicationForm/getField.js +8 -5
- package/dist/components/ApplicationForm/getField.js.map +1 -1
- package/lib/components/ApplicationForm/MiddleNameField.d.ts +2 -0
- package/lib/components/ApplicationForm/MiddleNameField.js +5 -0
- package/lib/components/ApplicationForm/MiddleNameField.js.map +1 -0
- package/lib/components/ApplicationForm/NameField.d.ts +2 -0
- package/lib/components/ApplicationForm/NameField.js +10 -0
- package/lib/components/ApplicationForm/NameField.js.map +1 -0
- package/lib/components/ApplicationForm/PhoneField.d.ts +2 -0
- package/lib/components/ApplicationForm/PhoneField.js +7 -0
- package/lib/components/ApplicationForm/PhoneField.js.map +1 -0
- package/lib/components/ApplicationForm/SurnameField.d.ts +2 -0
- package/lib/components/ApplicationForm/SurnameField.js +7 -0
- package/lib/components/ApplicationForm/SurnameField.js.map +1 -0
- package/lib/components/ApplicationForm/getField.js +8 -5
- package/lib/components/ApplicationForm/getField.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +40 -29
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/MiddleNameField.d.ts +2 -0
- package/mobile/bundle/components/ApplicationForm/NameField.d.ts +2 -0
- package/mobile/bundle/components/ApplicationForm/PhoneField.d.ts +2 -0
- package/mobile/bundle/components/ApplicationForm/SurnameField.d.ts +2 -0
- package/mobile/dist/components/ApplicationForm/MiddleNameField.d.ts +2 -0
- package/mobile/dist/components/ApplicationForm/MiddleNameField.js +7 -0
- package/mobile/dist/components/ApplicationForm/MiddleNameField.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/NameField.d.ts +2 -0
- package/mobile/dist/components/ApplicationForm/NameField.js +12 -0
- package/mobile/dist/components/ApplicationForm/NameField.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/PhoneField.d.ts +2 -0
- package/mobile/dist/components/ApplicationForm/PhoneField.js +9 -0
- package/mobile/dist/components/ApplicationForm/PhoneField.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/SurnameField.d.ts +2 -0
- package/mobile/dist/components/ApplicationForm/SurnameField.js +9 -0
- package/mobile/dist/components/ApplicationForm/SurnameField.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/getField.js +8 -5
- package/mobile/dist/components/ApplicationForm/getField.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/MiddleNameField.d.ts +2 -0
- package/mobile/lib/components/ApplicationForm/MiddleNameField.js +5 -0
- package/mobile/lib/components/ApplicationForm/MiddleNameField.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/NameField.d.ts +2 -0
- package/mobile/lib/components/ApplicationForm/NameField.js +10 -0
- package/mobile/lib/components/ApplicationForm/NameField.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/PhoneField.d.ts +2 -0
- package/mobile/lib/components/ApplicationForm/PhoneField.js +7 -0
- package/mobile/lib/components/ApplicationForm/PhoneField.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/SurnameField.d.ts +2 -0
- package/mobile/lib/components/ApplicationForm/SurnameField.js +7 -0
- package/mobile/lib/components/ApplicationForm/SurnameField.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/getField.js +8 -5
- package/mobile/lib/components/ApplicationForm/getField.js.map +1 -1
- package/mobile/src/components/ApplicationForm/MiddleNameField.tsx +7 -0
- package/mobile/src/components/ApplicationForm/NameField.tsx +18 -0
- package/mobile/src/components/ApplicationForm/PhoneField.tsx +12 -0
- package/mobile/src/components/ApplicationForm/SurnameField.tsx +12 -0
- package/mobile/src/components/ApplicationForm/getField.tsx +8 -23
- package/package.json +1 -1
- package/src/components/ApplicationForm/MiddleNameField.tsx +7 -0
- package/src/components/ApplicationForm/NameField.tsx +18 -0
- package/src/components/ApplicationForm/PhoneField.tsx +12 -0
- package/src/components/ApplicationForm/SurnameField.tsx +12 -0
- package/src/components/ApplicationForm/getField.tsx +8 -23
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.MiddleNameField = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const InputControl_1 = require("../../ui-kit/Input/InputControl");
|
|
6
|
+
exports.MiddleNameField = (0, uni_jsx_1.JSX)(({ field }) => ((0, jsx_runtime_1.jsx)(InputControl_1.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') })));
|
|
7
|
+
//# sourceMappingURL=MiddleNameField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MiddleNameField.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/MiddleNameField.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,kEAA+D;AAGlD,QAAA,eAAe,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAClE,uBAAC,2BAAY,IAAC,KAAK,EAAC,sLAAqC,KAAK,KAAK,CAAC,YAAY,CAAC,GAAI,CACtF,CAAC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.NameField = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const InputControl_1 = require("../../ui-kit/Input/InputControl");
|
|
6
|
+
const getObjectValidator_1 = require("./getObjectValidator");
|
|
7
|
+
const getValidation_1 = require("./getValidation");
|
|
8
|
+
exports.NameField = (0, uni_jsx_1.JSX)(({ field, input }) => {
|
|
9
|
+
const { required, ...rest } = input;
|
|
10
|
+
return ((0, jsx_runtime_1.jsx)(InputControl_1.InputControl, { label: "\u0418\u043C\u044F", ...(0, getValidation_1.getValidation)(field('name'), getObjectValidator_1.validatorObj.name, required), ...rest }));
|
|
11
|
+
});
|
|
12
|
+
//# sourceMappingURL=NameField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NameField.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/NameField.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,kEAA+D;AAG/D,6DAAoD;AACpD,mDAAgD;AAEnC,QAAA,SAAS,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE;IAClE,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,KAAiB,CAAC;IAEhD,OAAO,CACL,uBAAC,2BAAY,IACX,KAAK,EAAC,oBAAK,KACP,IAAA,6BAAa,EAAC,KAAK,CAAC,MAAM,CAAC,EAAE,iCAAY,CAAC,IAAI,EAAE,QAAQ,CAAC,KACzD,IAAI,GACR,CACH,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.PhoneField = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const InputPhoneControl_1 = require("../../ui-kit/Input/InputPhoneControl");
|
|
6
|
+
const getObjectValidator_1 = require("./getObjectValidator");
|
|
7
|
+
const getValidation_1 = require("./getValidation");
|
|
8
|
+
exports.PhoneField = (0, uni_jsx_1.JSX)(({ field, input }) => ((0, jsx_runtime_1.jsx)(InputPhoneControl_1.InputPhoneControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...(0, getValidation_1.getValidation)(field('phone'), getObjectValidator_1.validatorObj.phone, input?.required) })));
|
|
9
|
+
//# sourceMappingURL=PhoneField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PhoneField.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/PhoneField.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,4EAAyE;AAEzE,6DAAoD;AACpD,mDAAgD;AAEnC,QAAA,UAAU,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CACpE,uBAAC,qCAAiB,IAChB,KAAK,EAAC,4CAAS,KACX,IAAA,6BAAa,EAAC,KAAK,CAAC,OAAO,CAAC,EAAE,iCAAY,CAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,CAAC,GACtE,CACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.SurnameField = void 0;
|
|
3
|
+
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
|
+
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
|
+
const InputControl_1 = require("../../ui-kit/Input/InputControl");
|
|
6
|
+
const getObjectValidator_1 = require("./getObjectValidator");
|
|
7
|
+
const getValidation_1 = require("./getValidation");
|
|
8
|
+
exports.SurnameField = (0, uni_jsx_1.JSX)(({ field, input }) => ((0, jsx_runtime_1.jsx)(InputControl_1.InputControl, { label: "\u0424\u0430\u043C\u0438\u043B\u0438\u044F", ...(0, getValidation_1.getValidation)(field('surname'), getObjectValidator_1.validatorObj.surname, input?.required) })));
|
|
9
|
+
//# sourceMappingURL=SurnameField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SurnameField.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/SurnameField.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,kEAA+D;AAE/D,6DAAoD;AACpD,mDAAgD;AAEnC,QAAA,YAAY,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CACtE,uBAAC,2BAAY,IACX,KAAK,EAAC,4CAAS,KACX,IAAA,6BAAa,EAAC,KAAK,CAAC,SAAS,CAAC,EAAE,iCAAY,CAAC,OAAO,EAAE,KAAK,EAAE,QAAQ,CAAC,GAC1E,CACH,CAAC,CAAC"}
|
|
@@ -4,7 +4,6 @@ const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
|
4
4
|
const CheckboxWithError_1 = require("../../ui-kit/Checkbox/CheckboxWithError");
|
|
5
5
|
const DatePickerControl_1 = require("../../ui-kit/DatePicker/DatePickerControl");
|
|
6
6
|
const InputControl_1 = require("../../ui-kit/Input/InputControl");
|
|
7
|
-
const InputPhoneControl_1 = require("../../ui-kit/Input/InputPhoneControl");
|
|
8
7
|
const AcquiringField_1 = require("./AcquiringField");
|
|
9
8
|
const AddressBranchField_1 = require("./AddressBranchField");
|
|
10
9
|
const AmountField_1 = require("./AmountField");
|
|
@@ -17,14 +16,18 @@ const getValidation_1 = require("./getValidation");
|
|
|
17
16
|
const IsClientField_1 = require("./IsClientField");
|
|
18
17
|
const isRenderField_1 = require("./isRenderField");
|
|
19
18
|
const LocalitiesField_1 = require("./LocalitiesField");
|
|
19
|
+
const MiddleNameField_1 = require("./MiddleNameField");
|
|
20
|
+
const NameField_1 = require("./NameField");
|
|
20
21
|
const OnlineCheckoutField_1 = require("./OnlineCheckoutField");
|
|
21
22
|
const PartnerCommentsField_1 = require("./PartnerCommentsField");
|
|
23
|
+
const PhoneField_1 = require("./PhoneField");
|
|
22
24
|
const PosTerminalField_1 = require("./PosTerminalField");
|
|
23
25
|
const ProductField_1 = require("./ProductField");
|
|
24
26
|
const RegionField_1 = require("./RegionField");
|
|
25
27
|
const RegionPremiumField_1 = require("./RegionPremiumField");
|
|
26
28
|
const SecondaryPhoneField_1 = require("./SecondaryPhoneField");
|
|
27
29
|
const ServiceDirectionField_1 = require("./ServiceDirectionField");
|
|
30
|
+
const SurnameField_1 = require("./SurnameField");
|
|
28
31
|
const TermField_1 = require("./TermField");
|
|
29
32
|
const UltraPremiumField_1 = require("./UltraPremiumField");
|
|
30
33
|
const VedField_1 = require("./VedField");
|
|
@@ -34,10 +37,10 @@ const getField =
|
|
|
34
37
|
const { required, ...rest } = input;
|
|
35
38
|
const isPremium = typeForm === 'ULTRASERVICE' || typeForm === 'PREMIUMSERVICE';
|
|
36
39
|
const InputsMap = {
|
|
37
|
-
surname: (
|
|
38
|
-
name: (
|
|
39
|
-
middleName: (
|
|
40
|
-
phone: (
|
|
40
|
+
surname: (0, jsx_runtime_1.jsx)(SurnameField_1.SurnameField, { field: field, input: input }),
|
|
41
|
+
name: (0, jsx_runtime_1.jsx)(NameField_1.NameField, { field: field, input: input }),
|
|
42
|
+
middleName: (0, jsx_runtime_1.jsx)(MiddleNameField_1.MiddleNameField, { field: field }),
|
|
43
|
+
phone: (0, jsx_runtime_1.jsx)(PhoneField_1.PhoneField, { field: field, input: input }),
|
|
41
44
|
email: ((0, jsx_runtime_1.jsx)(InputControl_1.InputControl, { label: "\u042D\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u0430\u044F \u043F\u043E\u0447\u0442\u0430", ...(0, getValidation_1.getValidation)(field('email'), getObjectValidator_1.validatorObj.email, required), ...rest })),
|
|
42
45
|
fullName: ((0, jsx_runtime_1.jsx)(InputControl_1.InputControl, { label: "\u0424\u0418\u041E", ...(0, getValidation_1.getValidation)(field('fullName'), getObjectValidator_1.validatorObj.fullName, required), ...rest })),
|
|
43
46
|
inn: ((0, jsx_runtime_1.jsx)(InputControl_1.InputControl, { label: "\u0418\u041D\u041D", type: "number", ...(0, getValidation_1.getValidation)(field('inn'), getObjectValidator_1.validatorObj.inn, required) })),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getField.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/getField.tsx"],"names":[],"mappings":";;;AACA,+EAA4E;AAC5E,iFAA8E;AAC9E,kEAA+D;AAC/D,
|
|
1
|
+
{"version":3,"file":"getField.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/getField.tsx"],"names":[],"mappings":";;;AACA,+EAA4E;AAC5E,iFAA8E;AAC9E,kEAA+D;AAC/D,qDAAkD;AAClD,6DAA0D;AAC1D,+CAA4C;AAE5C,iDAA8C;AAC9C,+DAA4D;AAC5D,2DAAwD;AACxD,6DAAoD;AACpD,iDAA8C;AAC9C,mDAAgD;AAChD,mDAAgD;AAChD,mDAAgD;AAChD,uDAAoD;AACpD,uDAAoD;AACpD,2CAAwC;AACxC,+DAA4D;AAC5D,iEAA8D;AAC9D,6CAA0C;AAC1C,yDAAsD;AACtD,iDAA8C;AAC9C,+CAA4C;AAC5C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;QACD,cAAc,EAAE,uBAAC,yCAAmB,IAAC,KAAK,EAAE,KAAK,GAAI;KACtD,CAAC;IAEF,OAAO,IAAA,6BAAa,EAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,CACvC,0CAAsB,SAAS,CAAC,KAAK,EAAE,IAAI,CAAC,IAAlC,MAAM,CAAC,CAAC,CAAC,CAAgC,CACpD,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CAAC;AAnGS,QAAA,QAAQ,YAmGjB"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
+
import { InputControl } from '../../ui-kit/Input/InputControl.js';
|
|
4
|
+
export const MiddleNameField = JSX(({ field }) => (_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') })));
|
|
5
|
+
//# sourceMappingURL=MiddleNameField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MiddleNameField.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/MiddleNameField.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAG/D,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAmB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAClE,KAAC,YAAY,IAAC,KAAK,EAAC,sLAAqC,KAAK,KAAK,CAAC,YAAY,CAAC,GAAI,CACtF,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
+
import { InputControl } from '../../ui-kit/Input/InputControl.js';
|
|
4
|
+
import { validatorObj } from './getObjectValidator.js';
|
|
5
|
+
import { getValidation } from './getValidation.js';
|
|
6
|
+
export const NameField = JSX(({ field, input }) => {
|
|
7
|
+
const { required, ...rest } = input;
|
|
8
|
+
return (_jsx(InputControl, { label: "\u0418\u043C\u044F", ...getValidation(field('name'), validatorObj.name, required), ...rest }));
|
|
9
|
+
});
|
|
10
|
+
//# sourceMappingURL=NameField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NameField.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/NameField.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAG/D,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,CAAmB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE;IAClE,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,KAAiB,CAAC;IAEhD,OAAO,CACL,KAAC,YAAY,IACX,KAAK,EAAC,oBAAK,KACP,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,YAAY,CAAC,IAAI,EAAE,QAAQ,CAAC,KACzD,IAAI,GACR,CACH,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
+
import { InputPhoneControl } from '../../ui-kit/Input/InputPhoneControl.js';
|
|
4
|
+
import { validatorObj } from './getObjectValidator.js';
|
|
5
|
+
import { getValidation } from './getValidation.js';
|
|
6
|
+
export const PhoneField = JSX(({ field, input }) => (_jsx(InputPhoneControl, { label: "\u0422\u0435\u043B\u0435\u0444\u043E\u043D", ...getValidation(field('phone'), validatorObj.phone, input?.required) })));
|
|
7
|
+
//# sourceMappingURL=PhoneField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PhoneField.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/PhoneField.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAEzE,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,CAAmB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CACpE,KAAC,iBAAiB,IAChB,KAAK,EAAC,4CAAS,KACX,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY,CAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,CAAC,GACtE,CACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
+
import { InputControl } from '../../ui-kit/Input/InputControl.js';
|
|
4
|
+
import { validatorObj } from './getObjectValidator.js';
|
|
5
|
+
import { getValidation } from './getValidation.js';
|
|
6
|
+
export const SurnameField = JSX(({ field, input }) => (_jsx(InputControl, { label: "\u0424\u0430\u043C\u0438\u043B\u0438\u044F", ...getValidation(field('surname'), validatorObj.surname, input?.required) })));
|
|
7
|
+
//# sourceMappingURL=SurnameField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SurnameField.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/SurnameField.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAE/D,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAAmB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CACtE,KAAC,YAAY,IACX,KAAK,EAAC,4CAAS,KACX,aAAa,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,YAAY,CAAC,OAAO,EAAE,KAAK,EAAE,QAAQ,CAAC,GAC1E,CACH,CAAC,CAAC"}
|
|
@@ -2,7 +2,6 @@ import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
|
2
2
|
import { CheckboxWithError } from '../../ui-kit/Checkbox/CheckboxWithError.js';
|
|
3
3
|
import { DatePickerControl } from '../../ui-kit/DatePicker/DatePickerControl.js';
|
|
4
4
|
import { InputControl } from '../../ui-kit/Input/InputControl.js';
|
|
5
|
-
import { InputPhoneControl } from '../../ui-kit/Input/InputPhoneControl.js';
|
|
6
5
|
import { AcquiringField } from './AcquiringField.js';
|
|
7
6
|
import { AddressBranchField } from './AddressBranchField.js';
|
|
8
7
|
import { AmountField } from './AmountField.js';
|
|
@@ -15,14 +14,18 @@ import { getValidation } from './getValidation.js';
|
|
|
15
14
|
import { IsClientField } from './IsClientField.js';
|
|
16
15
|
import { isRenderField } from './isRenderField.js';
|
|
17
16
|
import { LocalitiesField } from './LocalitiesField.js';
|
|
17
|
+
import { MiddleNameField } from './MiddleNameField.js';
|
|
18
|
+
import { NameField } from './NameField.js';
|
|
18
19
|
import { OnlineCheckoutField } from './OnlineCheckoutField.js';
|
|
19
20
|
import { PartnerCommentsField } from './PartnerCommentsField.js';
|
|
21
|
+
import { PhoneField } from './PhoneField.js';
|
|
20
22
|
import { PosTerminalField } from './PosTerminalField.js';
|
|
21
23
|
import { ProductField } from './ProductField.js';
|
|
22
24
|
import { RegionField } from './RegionField.js';
|
|
23
25
|
import { RegionPremiumField } from './RegionPremiumField.js';
|
|
24
26
|
import { SecondaryPhoneField } from './SecondaryPhoneField.js';
|
|
25
27
|
import { ServiceDirectionField } from './ServiceDirectionField.js';
|
|
28
|
+
import { SurnameField } from './SurnameField.js';
|
|
26
29
|
import { TermField } from './TermField.js';
|
|
27
30
|
import { UltraPremiumField } from './UltraPremiumField.js';
|
|
28
31
|
import { VedField } from './VedField.js';
|
|
@@ -32,10 +35,10 @@ export const getField =
|
|
|
32
35
|
const { required, ...rest } = input;
|
|
33
36
|
const isPremium = typeForm === 'ULTRASERVICE' || typeForm === 'PREMIUMSERVICE';
|
|
34
37
|
const InputsMap = {
|
|
35
|
-
surname:
|
|
36
|
-
name:
|
|
37
|
-
middleName:
|
|
38
|
-
phone:
|
|
38
|
+
surname: _jsx(SurnameField, { field: field, input: input }),
|
|
39
|
+
name: _jsx(NameField, { field: field, input: input }),
|
|
40
|
+
middleName: _jsx(MiddleNameField, { field: field }),
|
|
41
|
+
phone: _jsx(PhoneField, { field: field, input: input }),
|
|
39
42
|
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), ...rest })),
|
|
40
43
|
fullName: (_jsx(InputControl, { label: "\u0424\u0418\u041E", ...getValidation(field('fullName'), validatorObj.fullName, required), ...rest })),
|
|
41
44
|
inn: (_jsx(InputControl, { label: "\u0418\u041D\u041D", type: "number", ...getValidation(field('inn'), validatorObj.inn, required) })),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getField.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/getField.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAC5E,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"getField.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/getField.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAC5E,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,C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AE,KAAK,GAAI;QACpC,YAAY,EAAE,KAAC,iBAAiB,IAAC,KAAK,EAAE,KAAK,GAAI;QACjD,cAAc,EAAE,KAAC,mBAAmB,IAAC,KAAK,EAAE,KAAK,GAAI;QACrD,gBAAgB,EAAE,KAAC,qBAAqB,IAAC,KAAK,EAAE,KAAK,GAAI;QACzD,WAAW,EAAE,CACX,KAAC,YAAY,IACX,KAAK,EAAC,kSAAuD,KACzD,KAAK,CAAC,aAAa,CAAC,GACxB,CACH;QACD,eAAe,EAAE,CACf,KAAC,YAAY,IAAC,KAAK,EAAC,uJAA+B,KAAK,KAAK,CAAC,iBAAiB,CAAC,GAAI,CACrF;QACD,cAAc,EAAE,KAAC,mBAAmB,IAAC,KAAK,EAAE,KAAK,GAAI;KACtD,CAAC;IAEF,OAAO,aAAa,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,CACvC,wBAAsB,SAAS,CAAC,KAAK,EAAE,IAAI,CAAC,IAAlC,MAAM,CAAC,CAAC,CAAC,CAAgC,CACpD,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { InputControl } from '../../ui-kit/Input/InputControl';
|
|
3
|
+
import { type CustomFieldProps } from './CustomFieldProps';
|
|
4
|
+
|
|
5
|
+
export const MiddleNameField = JSX<CustomFieldProps>(({ field }) => (
|
|
6
|
+
<InputControl label="Отчество (Обязательно, при наличии)" {...field('middleName')} />
|
|
7
|
+
));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { InputControl } from '../../ui-kit/Input/InputControl';
|
|
3
|
+
import type { FieldDef } from './ApplicationFormContent';
|
|
4
|
+
import { type CustomFieldProps } from './CustomFieldProps';
|
|
5
|
+
import { validatorObj } from './getObjectValidator';
|
|
6
|
+
import { getValidation } from './getValidation';
|
|
7
|
+
|
|
8
|
+
export const NameField = JSX<CustomFieldProps>(({ field, input }) => {
|
|
9
|
+
const { required, ...rest } = input as FieldDef;
|
|
10
|
+
|
|
11
|
+
return (
|
|
12
|
+
<InputControl
|
|
13
|
+
label="Имя"
|
|
14
|
+
{...getValidation(field('name'), validatorObj.name, required)}
|
|
15
|
+
{...rest}
|
|
16
|
+
/>
|
|
17
|
+
);
|
|
18
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { InputPhoneControl } from '../../ui-kit/Input/InputPhoneControl';
|
|
3
|
+
import { type CustomFieldProps } from './CustomFieldProps';
|
|
4
|
+
import { validatorObj } from './getObjectValidator';
|
|
5
|
+
import { getValidation } from './getValidation';
|
|
6
|
+
|
|
7
|
+
export const PhoneField = JSX<CustomFieldProps>(({ field, input }) => (
|
|
8
|
+
<InputPhoneControl
|
|
9
|
+
label="Телефон"
|
|
10
|
+
{...getValidation(field('phone'), validatorObj.phone, input?.required)}
|
|
11
|
+
/>
|
|
12
|
+
));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { InputControl } from '../../ui-kit/Input/InputControl';
|
|
3
|
+
import { type CustomFieldProps } from './CustomFieldProps';
|
|
4
|
+
import { validatorObj } from './getObjectValidator';
|
|
5
|
+
import { getValidation } from './getValidation';
|
|
6
|
+
|
|
7
|
+
export const SurnameField = JSX<CustomFieldProps>(({ field, input }) => (
|
|
8
|
+
<InputControl
|
|
9
|
+
label="Фамилия"
|
|
10
|
+
{...getValidation(field('surname'), validatorObj.surname, input?.required)}
|
|
11
|
+
/>
|
|
12
|
+
));
|
|
@@ -2,7 +2,6 @@ import { type FormFieldRegisterer } from '../../hooks/useForm';
|
|
|
2
2
|
import { CheckboxWithError } from '../../ui-kit/Checkbox/CheckboxWithError';
|
|
3
3
|
import { DatePickerControl } from '../../ui-kit/DatePicker/DatePickerControl';
|
|
4
4
|
import { InputControl } from '../../ui-kit/Input/InputControl';
|
|
5
|
-
import { InputPhoneControl } from '../../ui-kit/Input/InputPhoneControl';
|
|
6
5
|
import { AcquiringField } from './AcquiringField';
|
|
7
6
|
import { AddressBranchField } from './AddressBranchField';
|
|
8
7
|
import { AmountField } from './AmountField';
|
|
@@ -16,14 +15,18 @@ import { getValidation } from './getValidation';
|
|
|
16
15
|
import { IsClientField } from './IsClientField';
|
|
17
16
|
import { isRenderField } from './isRenderField';
|
|
18
17
|
import { LocalitiesField } from './LocalitiesField';
|
|
18
|
+
import { MiddleNameField } from './MiddleNameField';
|
|
19
|
+
import { NameField } from './NameField';
|
|
19
20
|
import { OnlineCheckoutField } from './OnlineCheckoutField';
|
|
20
21
|
import { PartnerCommentsField } from './PartnerCommentsField';
|
|
22
|
+
import { PhoneField } from './PhoneField';
|
|
21
23
|
import { PosTerminalField } from './PosTerminalField';
|
|
22
24
|
import { ProductField } from './ProductField';
|
|
23
25
|
import { RegionField } from './RegionField';
|
|
24
26
|
import { RegionPremiumField } from './RegionPremiumField';
|
|
25
27
|
import { SecondaryPhoneField } from './SecondaryPhoneField';
|
|
26
28
|
import { ServiceDirectionField } from './ServiceDirectionField';
|
|
29
|
+
import { SurnameField } from './SurnameField';
|
|
27
30
|
import { TermField } from './TermField';
|
|
28
31
|
import { UltraPremiumField } from './UltraPremiumField';
|
|
29
32
|
import { VedField } from './VedField';
|
|
@@ -35,28 +38,10 @@ export const getField =
|
|
|
35
38
|
const isPremium = typeForm === 'ULTRASERVICE' || typeForm === 'PREMIUMSERVICE';
|
|
36
39
|
|
|
37
40
|
const InputsMap = {
|
|
38
|
-
surname:
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
/>
|
|
43
|
-
),
|
|
44
|
-
name: (
|
|
45
|
-
<InputControl
|
|
46
|
-
label="Имя"
|
|
47
|
-
{...getValidation(field('name'), validatorObj.name, required)}
|
|
48
|
-
{...rest}
|
|
49
|
-
/>
|
|
50
|
-
),
|
|
51
|
-
middleName: (
|
|
52
|
-
<InputControl label="Отчество (Обязательно, при наличии)" {...field('middleName')} />
|
|
53
|
-
),
|
|
54
|
-
phone: (
|
|
55
|
-
<InputPhoneControl
|
|
56
|
-
label="Телефон"
|
|
57
|
-
{...getValidation(field('phone'), validatorObj.phone, required)}
|
|
58
|
-
/>
|
|
59
|
-
),
|
|
41
|
+
surname: <SurnameField field={field} input={input} />,
|
|
42
|
+
name: <NameField field={field} input={input} />,
|
|
43
|
+
middleName: <MiddleNameField field={field} />,
|
|
44
|
+
phone: <PhoneField field={field} input={input} />,
|
|
60
45
|
email: (
|
|
61
46
|
<InputControl
|
|
62
47
|
label="Электронная почта"
|
package/package.json
CHANGED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { InputControl } from '../../ui-kit/Input/InputControl';
|
|
3
|
+
import { type CustomFieldProps } from './CustomFieldProps';
|
|
4
|
+
|
|
5
|
+
export const MiddleNameField = JSX<CustomFieldProps>(({ field }) => (
|
|
6
|
+
<InputControl label="Отчество (Обязательно, при наличии)" {...field('middleName')} />
|
|
7
|
+
));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { InputControl } from '../../ui-kit/Input/InputControl';
|
|
3
|
+
import type { FieldDef } from './ApplicationFormContent';
|
|
4
|
+
import { type CustomFieldProps } from './CustomFieldProps';
|
|
5
|
+
import { validatorObj } from './getObjectValidator';
|
|
6
|
+
import { getValidation } from './getValidation';
|
|
7
|
+
|
|
8
|
+
export const NameField = JSX<CustomFieldProps>(({ field, input }) => {
|
|
9
|
+
const { required, ...rest } = input as FieldDef;
|
|
10
|
+
|
|
11
|
+
return (
|
|
12
|
+
<InputControl
|
|
13
|
+
label="Имя"
|
|
14
|
+
{...getValidation(field('name'), validatorObj.name, required)}
|
|
15
|
+
{...rest}
|
|
16
|
+
/>
|
|
17
|
+
);
|
|
18
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { InputPhoneControl } from '../../ui-kit/Input/InputPhoneControl';
|
|
3
|
+
import { type CustomFieldProps } from './CustomFieldProps';
|
|
4
|
+
import { validatorObj } from './getObjectValidator';
|
|
5
|
+
import { getValidation } from './getValidation';
|
|
6
|
+
|
|
7
|
+
export const PhoneField = JSX<CustomFieldProps>(({ field, input }) => (
|
|
8
|
+
<InputPhoneControl
|
|
9
|
+
label="Телефон"
|
|
10
|
+
{...getValidation(field('phone'), validatorObj.phone, input?.required)}
|
|
11
|
+
/>
|
|
12
|
+
));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { JSX } from '@redneckz/uni-jsx';
|
|
2
|
+
import { InputControl } from '../../ui-kit/Input/InputControl';
|
|
3
|
+
import { type CustomFieldProps } from './CustomFieldProps';
|
|
4
|
+
import { validatorObj } from './getObjectValidator';
|
|
5
|
+
import { getValidation } from './getValidation';
|
|
6
|
+
|
|
7
|
+
export const SurnameField = JSX<CustomFieldProps>(({ field, input }) => (
|
|
8
|
+
<InputControl
|
|
9
|
+
label="Фамилия"
|
|
10
|
+
{...getValidation(field('surname'), validatorObj.surname, input?.required)}
|
|
11
|
+
/>
|
|
12
|
+
));
|
|
@@ -2,7 +2,6 @@ import { type FormFieldRegisterer } from '../../hooks/useForm';
|
|
|
2
2
|
import { CheckboxWithError } from '../../ui-kit/Checkbox/CheckboxWithError';
|
|
3
3
|
import { DatePickerControl } from '../../ui-kit/DatePicker/DatePickerControl';
|
|
4
4
|
import { InputControl } from '../../ui-kit/Input/InputControl';
|
|
5
|
-
import { InputPhoneControl } from '../../ui-kit/Input/InputPhoneControl';
|
|
6
5
|
import { AcquiringField } from './AcquiringField';
|
|
7
6
|
import { AddressBranchField } from './AddressBranchField';
|
|
8
7
|
import { AmountField } from './AmountField';
|
|
@@ -16,14 +15,18 @@ import { getValidation } from './getValidation';
|
|
|
16
15
|
import { IsClientField } from './IsClientField';
|
|
17
16
|
import { isRenderField } from './isRenderField';
|
|
18
17
|
import { LocalitiesField } from './LocalitiesField';
|
|
18
|
+
import { MiddleNameField } from './MiddleNameField';
|
|
19
|
+
import { NameField } from './NameField';
|
|
19
20
|
import { OnlineCheckoutField } from './OnlineCheckoutField';
|
|
20
21
|
import { PartnerCommentsField } from './PartnerCommentsField';
|
|
22
|
+
import { PhoneField } from './PhoneField';
|
|
21
23
|
import { PosTerminalField } from './PosTerminalField';
|
|
22
24
|
import { ProductField } from './ProductField';
|
|
23
25
|
import { RegionField } from './RegionField';
|
|
24
26
|
import { RegionPremiumField } from './RegionPremiumField';
|
|
25
27
|
import { SecondaryPhoneField } from './SecondaryPhoneField';
|
|
26
28
|
import { ServiceDirectionField } from './ServiceDirectionField';
|
|
29
|
+
import { SurnameField } from './SurnameField';
|
|
27
30
|
import { TermField } from './TermField';
|
|
28
31
|
import { UltraPremiumField } from './UltraPremiumField';
|
|
29
32
|
import { VedField } from './VedField';
|
|
@@ -35,28 +38,10 @@ export const getField =
|
|
|
35
38
|
const isPremium = typeForm === 'ULTRASERVICE' || typeForm === 'PREMIUMSERVICE';
|
|
36
39
|
|
|
37
40
|
const InputsMap = {
|
|
38
|
-
surname:
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
/>
|
|
43
|
-
),
|
|
44
|
-
name: (
|
|
45
|
-
<InputControl
|
|
46
|
-
label="Имя"
|
|
47
|
-
{...getValidation(field('name'), validatorObj.name, required)}
|
|
48
|
-
{...rest}
|
|
49
|
-
/>
|
|
50
|
-
),
|
|
51
|
-
middleName: (
|
|
52
|
-
<InputControl label="Отчество (Обязательно, при наличии)" {...field('middleName')} />
|
|
53
|
-
),
|
|
54
|
-
phone: (
|
|
55
|
-
<InputPhoneControl
|
|
56
|
-
label="Телефон"
|
|
57
|
-
{...getValidation(field('phone'), validatorObj.phone, required)}
|
|
58
|
-
/>
|
|
59
|
-
),
|
|
41
|
+
surname: <SurnameField field={field} input={input} />,
|
|
42
|
+
name: <NameField field={field} input={input} />,
|
|
43
|
+
middleName: <MiddleNameField field={field} />,
|
|
44
|
+
phone: <PhoneField field={field} input={input} />,
|
|
60
45
|
email: (
|
|
61
46
|
<InputControl
|
|
62
47
|
label="Электронная почта"
|