@redneckz/wildless-cms-uni-blocks 0.14.766 → 0.14.767
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 +9 -5
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/getInitialFormState.d.ts +4 -2
- package/bundle/ui-kit/FormField/Fields/ApplierTypeField.d.ts +7 -0
- package/dist/components/ApplicationForm/getFormatData.js +5 -2
- package/dist/components/ApplicationForm/getFormatData.js.map +1 -1
- package/dist/components/ApplicationForm/getInitialFormState.d.ts +4 -2
- package/dist/components/ApplicationForm/getInitialFormState.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/ApplierTypeField.d.ts +7 -0
- package/dist/ui-kit/FormField/Fields/ApplierTypeField.js +7 -5
- package/dist/ui-kit/FormField/Fields/ApplierTypeField.js.map +1 -1
- package/lib/components/ApplicationForm/getFormatData.js +5 -2
- package/lib/components/ApplicationForm/getFormatData.js.map +1 -1
- package/lib/components/ApplicationForm/getInitialFormState.d.ts +4 -2
- package/lib/components/ApplicationForm/getInitialFormState.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/ApplierTypeField.d.ts +7 -0
- package/lib/ui-kit/FormField/Fields/ApplierTypeField.js +5 -3
- package/lib/ui-kit/FormField/Fields/ApplierTypeField.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +9 -5
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/getInitialFormState.d.ts +4 -2
- package/mobile/bundle/ui-kit/FormField/Fields/ApplierTypeField.d.ts +7 -0
- package/mobile/dist/components/ApplicationForm/getFormatData.js +5 -2
- package/mobile/dist/components/ApplicationForm/getFormatData.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/getInitialFormState.d.ts +4 -2
- package/mobile/dist/components/ApplicationForm/getInitialFormState.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/ApplierTypeField.d.ts +7 -0
- package/mobile/dist/ui-kit/FormField/Fields/ApplierTypeField.js +7 -5
- package/mobile/dist/ui-kit/FormField/Fields/ApplierTypeField.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/getFormatData.js +5 -2
- package/mobile/lib/components/ApplicationForm/getFormatData.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/getInitialFormState.d.ts +4 -2
- package/mobile/lib/components/ApplicationForm/getInitialFormState.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/ApplierTypeField.d.ts +7 -0
- package/mobile/lib/ui-kit/FormField/Fields/ApplierTypeField.js +5 -3
- package/mobile/lib/ui-kit/FormField/Fields/ApplierTypeField.js.map +1 -1
- package/mobile/src/components/ApplicationForm/getFormatData.tsx +7 -1
- package/mobile/src/components/ApplicationForm/getInitialFormState.tsx +4 -2
- package/mobile/src/ui-kit/FormField/Fields/ApplierTypeField.tsx +10 -3
- package/package.json +1 -1
- package/src/components/ApplicationForm/getFormatData.tsx +7 -1
- package/src/components/ApplicationForm/getInitialFormState.tsx +4 -2
- package/src/ui-kit/FormField/Fields/ApplierTypeField.tsx +10 -3
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ApplierType } from '../../ui-kit/FormField/Fields/ApplierTypeField';
|
|
1
2
|
import { type Option } from '../../ui-kit/Select/Option';
|
|
2
3
|
import { type FieldDef } from './ApplicationFormContent';
|
|
3
4
|
export interface FormState {
|
|
@@ -21,7 +22,8 @@ export interface FormState {
|
|
|
21
22
|
annualRevenue?: string;
|
|
22
23
|
consentDataProcessing?: boolean;
|
|
23
24
|
addressRetail?: Option;
|
|
24
|
-
sufferedFrom?:
|
|
25
|
-
situationDescription?:
|
|
25
|
+
sufferedFrom?: Option;
|
|
26
|
+
situationDescription?: string;
|
|
27
|
+
applierType?: ApplierType;
|
|
26
28
|
}
|
|
27
29
|
export declare const getInitialFormState: (inputs: FieldDef[], typeForm?: string) => FormState;
|
|
@@ -1,2 +1,9 @@
|
|
|
1
|
+
import { type Option } from '../../Select/Option';
|
|
1
2
|
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
3
|
+
export declare const CLIENT_KEY = "client";
|
|
4
|
+
export declare const REPRESENTATIVE_KEY = "representative";
|
|
5
|
+
export declare type ApplierType = Option & {
|
|
6
|
+
key: 'client' | 'representative';
|
|
7
|
+
};
|
|
8
|
+
export declare const APPLIER_TYPES: ApplierType[];
|
|
2
9
|
export declare const ApplierTypeField: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getFormatData = void 0;
|
|
4
|
+
const ApplierTypeField_1 = require("../../ui-kit/FormField/Fields/ApplierTypeField");
|
|
4
5
|
const VedField_1 = require("../../ui-kit/FormField/Fields/VedField");
|
|
5
6
|
const getPartnerComments_1 = require("./getPartnerComments");
|
|
6
7
|
const getFormatData = (data) => {
|
|
7
|
-
const { acquiringType, onlineCheckout, posTerminal, amount, term, annualRevenue, serviceType, vedTypes, region, inn, sufferedFrom, situationDescription, ...usedData } = data;
|
|
8
|
+
const { acquiringType, onlineCheckout, posTerminal, amount, term, annualRevenue, serviceType, vedTypes, region, inn, sufferedFrom, situationDescription, applierType, ...usedData } = data;
|
|
8
9
|
const partnerComments = acquiringType || annualRevenue ? (0, getPartnerComments_1.getPartnerComments)(data) : null;
|
|
9
10
|
const formatData = {
|
|
10
11
|
...usedData,
|
|
@@ -13,11 +14,13 @@ const getFormatData = (data) => {
|
|
|
13
14
|
...(inn && { inn }),
|
|
14
15
|
...(partnerComments ? { partnerComments } : {}),
|
|
15
16
|
...(serviceType ? { typeForm: serviceType } : {}),
|
|
16
|
-
...getIncidentComment(sufferedFrom, situationDescription
|
|
17
|
+
...getIncidentComment(sufferedFrom?.text, situationDescription),
|
|
18
|
+
...getIsClient(applierType),
|
|
17
19
|
};
|
|
18
20
|
return Object.fromEntries(Object.entries(formatData)?.map(([k, v]) => [k, v?.key || v]));
|
|
19
21
|
};
|
|
20
22
|
exports.getFormatData = getFormatData;
|
|
23
|
+
const getIsClient = (applierType) => applierType?.key ? { isClient: applierType?.key === ApplierTypeField_1.CLIENT_KEY } : {};
|
|
21
24
|
const getIncidentComment = (sufferedFrom, situationDescription) => sufferedFrom || situationDescription
|
|
22
25
|
? { comment: `${sufferedFrom || ''};${situationDescription || ''}` }
|
|
23
26
|
: {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getFormatData.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/getFormatData.tsx"],"names":[],"mappings":"AAAA,sDAAsD;;;AAEtD,qEAAmE;AAGnE,6DAA0D;AAEnD,MAAM,aAAa,GAAG,CAAC,IAAe,EAAuB,EAAE;IACpE,MAAM,EACJ,aAAa,EACb,cAAc,EACd,WAAW,EACX,MAAM,EACN,IAAI,EACJ,aAAa,EACb,WAAW,EACX,QAAQ,EACR,MAAM,EACN,GAAG,EACH,YAAY,EACZ,oBAAoB,EACpB,GAAG,QAAQ,EACZ,GAAG,IAAI,CAAC;IACT,MAAM,eAAe,GAAG,aAAa,IAAI,aAAa,CAAC,CAAC,CAAC,IAAA,uCAAkB,EAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IACzF,MAAM,UAAU,GAAG;QACjB,GAAG,QAAQ;QACX,GAAG,WAAW,CAAC,QAAQ,CAAC;QACxB,GAAG,SAAS,CAAC,MAAM,CAAC;QACpB,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,CAAC;QACnB,GAAG,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,eAAe,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC/C,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACjD,GAAG,kBAAkB,CAAC,YAAY,EAAE,
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AACJ,CAAC,CAAC;AAhCW,QAAA,aAAa,iBAgCxB;AAEF,MAAM,WAAW,GAAG,CAAC,WAAyB,EAAE,EAAE,CAChD,WAAW,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,GAAG,KAAK,6BAAU,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;AAExE,MAAM,kBAAkB,GAAG,CAAC,YAAqB,EAAE,oBAA6B,EAAE,EAAE,CAClF,YAAY,IAAI,oBAAoB;IAClC,CAAC,CAAC,EAAE,OAAO,EAAE,GAAG,YAAY,IAAI,EAAE,IAAI,oBAAoB,IAAI,EAAE,EAAE,EAAE;IACpE,CAAC,CAAC,EAAE,CAAC;AAET,MAAM,SAAS,GAAG,CAAC,MAAe,EAA0B,EAAE,CAC5D,MAAM,EAAE,GAAG,IAAI,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,IAAI,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;AAE7E,MAAM,WAAW,GAAG,CAAC,QAAiB,EAA0C,EAAE,CAChF,QAAQ;IACN,CAAC,CAAC;QACE,QAAQ,EAAE,MAAM,CAAC,WAAW,CAAC,oBAAS,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,KAAK,QAAQ,CAAC,CAAC,CAAC;KAC/E;IACH,CAAC,CAAC,EAAE,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ApplierType } from '../../ui-kit/FormField/Fields/ApplierTypeField';
|
|
1
2
|
import { type Option } from '../../ui-kit/Select/Option';
|
|
2
3
|
import { type FieldDef } from './ApplicationFormContent';
|
|
3
4
|
export interface FormState {
|
|
@@ -21,7 +22,8 @@ export interface FormState {
|
|
|
21
22
|
annualRevenue?: string;
|
|
22
23
|
consentDataProcessing?: boolean;
|
|
23
24
|
addressRetail?: Option;
|
|
24
|
-
sufferedFrom?:
|
|
25
|
-
situationDescription?:
|
|
25
|
+
sufferedFrom?: Option;
|
|
26
|
+
situationDescription?: string;
|
|
27
|
+
applierType?: ApplierType;
|
|
26
28
|
}
|
|
27
29
|
export declare const getInitialFormState: (inputs: FieldDef[], typeForm?: string) => FormState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getInitialFormState.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/getInitialFormState.tsx"],"names":[],"mappings":";;AAAA,gEAI0C;AAC1C,iFAA+E;
|
|
1
|
+
{"version":3,"file":"getInitialFormState.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/getInitialFormState.tsx"],"names":[],"mappings":";;AAAA,gEAI0C;AAC1C,iFAA+E;AAE/E,qEAAmE;AA8BnE,MAAM,gBAAgB,GAAG;IACvB,QAAQ,EAAE,EAAE;IACZ,MAAM,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;IAC7B,aAAa,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;IACpC,OAAO,EAAE,EAAE;IACX,IAAI,EAAE,EAAE;IACR,KAAK,EAAE,EAAE;IACT,cAAc,EAAE,EAAE;IAClB,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,EAAE;IACX,eAAe,EAAE,EAAE;IACnB,aAAa,EAAE,EAAE;IACjB,IAAI,EAAE,EAAE;IACR,MAAM,EAAE,MAAM;IACd,aAAa,EAAE,gCAAe,CAAC,CAAC,CAAC;IACjC,WAAW,EAAE,yBAAa,CAAC,CAAC,CAAC;IAC7B,cAAc,EAAE,2BAAe,CAAC,CAAC,CAAC;IAClC,gBAAgB,EAAE,8BAAkB,CAAC,CAAC,CAAC;IACvC,QAAQ,EAAE,oBAAS,CAAC,CAAC,CAAC,CAAC,EAAE;IACzB,QAAQ,EAAE,SAAS;IACnB,QAAQ,EAAE,KAAK;IACf,cAAc,EAAE,KAAK;IACrB,WAAW,EAAE,KAAK;IAClB,yBAAyB,EAAE,KAAK;IAChC,qBAAqB,EAAE,KAAK;IAC5B,aAAa,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;CACrC,CAAC;AAEK,MAAM,mBAAmB,GAAG,CAAC,MAAkB,EAAE,QAAQ,GAAG,EAAE,EAAa,EAAE;IAClF,MAAM,SAAS,GAAG,MAAM,CAAC,WAAW,CAClC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;QAChB,CAAC,CAAC,IAAI;QACN,CAAC,CAAC,EAAE,IAAI,KAAK,UAAU,IAAI,CAAC,EAAE,YAAY,CAAC,IAAI,gBAAgB,CAAC,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC;KAC9E,CAAC,CACH,CAAC;IAEF,OAAO,EAAE,GAAG,SAAS,EAAE,QAAQ,EAAE,EAAE,GAAG,EAAE,EAAE,IAAI,QAAQ,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,CAAC;AACvE,CAAC,CAAC;AATW,QAAA,mBAAmB,uBAS9B"}
|
|
@@ -1,2 +1,9 @@
|
|
|
1
|
+
import { type Option } from '../../Select/Option';
|
|
1
2
|
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
3
|
+
export declare const CLIENT_KEY = "client";
|
|
4
|
+
export declare const REPRESENTATIVE_KEY = "representative";
|
|
5
|
+
export declare type ApplierType = Option & {
|
|
6
|
+
key: 'client' | 'representative';
|
|
7
|
+
};
|
|
8
|
+
export declare const APPLIER_TYPES: ApplierType[];
|
|
2
9
|
export declare const ApplierTypeField: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
-
exports.ApplierTypeField = void 0;
|
|
2
|
+
exports.ApplierTypeField = exports.APPLIER_TYPES = exports.REPRESENTATIVE_KEY = exports.CLIENT_KEY = void 0;
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const SelectControl_1 = require("../../Select/SelectControl");
|
|
6
|
-
|
|
6
|
+
exports.CLIENT_KEY = 'client';
|
|
7
|
+
exports.REPRESENTATIVE_KEY = 'representative';
|
|
8
|
+
exports.APPLIER_TYPES = [
|
|
7
9
|
{
|
|
8
|
-
key:
|
|
10
|
+
key: exports.CLIENT_KEY,
|
|
9
11
|
text: 'Клиент',
|
|
10
12
|
},
|
|
11
13
|
{
|
|
12
|
-
key:
|
|
14
|
+
key: exports.REPRESENTATIVE_KEY,
|
|
13
15
|
text: 'Представитель клиента',
|
|
14
16
|
},
|
|
15
17
|
];
|
|
16
|
-
exports.ApplierTypeField = (0, uni_jsx_1.JSX)(({ field, input }) => ((0, jsx_runtime_1.jsx)(SelectControl_1.SelectControl, { label: "\u0422\u0438\u043F \u043E\u0431\u0440\u0430\u0442\u0438\u0432\u0448\u0435\u0433\u043E\u0441\u044F", ...input, options: APPLIER_TYPES, ...field('applierType') })));
|
|
18
|
+
exports.ApplierTypeField = (0, uni_jsx_1.JSX)(({ field, input }) => ((0, jsx_runtime_1.jsx)(SelectControl_1.SelectControl, { label: "\u0422\u0438\u043F \u043E\u0431\u0440\u0430\u0442\u0438\u0432\u0448\u0435\u0433\u043E\u0441\u044F", ...input, options: exports.APPLIER_TYPES, ...field('applierType') })));
|
|
17
19
|
//# sourceMappingURL=ApplierTypeField.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplierTypeField.js","sourceRoot":"","sources":["../../../../src/ui-kit/FormField/Fields/ApplierTypeField.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,8DAA2D;
|
|
1
|
+
{"version":3,"file":"ApplierTypeField.js","sourceRoot":"","sources":["../../../../src/ui-kit/FormField/Fields/ApplierTypeField.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,8DAA2D;AAG9C,QAAA,UAAU,GAAG,QAAQ,CAAC;AACtB,QAAA,kBAAkB,GAAG,gBAAgB,CAAC;AAMtC,QAAA,aAAa,GAAkB;IAC1C;QACE,GAAG,EAAE,kBAAU;QACf,IAAI,EAAE,QAAQ;KACf;IACD;QACE,GAAG,EAAE,0BAAkB;QACvB,IAAI,EAAE,uBAAuB;KAC9B;CACF,CAAC;AAEW,QAAA,gBAAgB,GAAG,IAAA,aAAG,EAAmB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAC1E,uBAAC,6BAAa,IACZ,KAAK,EAAC,mGAAmB,KACrB,KAAK,EACT,OAAO,EAAE,qBAAa,KAClB,KAAK,CAAC,aAAa,CAAC,GACxB,CACH,CAAC,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
|
+
import { CLIENT_KEY } from '../../ui-kit/FormField/Fields/ApplierTypeField.js';
|
|
2
3
|
import { VED_TYPES } from '../../ui-kit/FormField/Fields/VedField.js';
|
|
3
4
|
import { getPartnerComments } from './getPartnerComments.js';
|
|
4
5
|
export const getFormatData = (data) => {
|
|
5
|
-
const { acquiringType, onlineCheckout, posTerminal, amount, term, annualRevenue, serviceType, vedTypes, region, inn, sufferedFrom, situationDescription, ...usedData } = data;
|
|
6
|
+
const { acquiringType, onlineCheckout, posTerminal, amount, term, annualRevenue, serviceType, vedTypes, region, inn, sufferedFrom, situationDescription, applierType, ...usedData } = data;
|
|
6
7
|
const partnerComments = acquiringType || annualRevenue ? getPartnerComments(data) : null;
|
|
7
8
|
const formatData = {
|
|
8
9
|
...usedData,
|
|
@@ -11,10 +12,12 @@ export const getFormatData = (data) => {
|
|
|
11
12
|
...(inn && { inn }),
|
|
12
13
|
...(partnerComments ? { partnerComments } : {}),
|
|
13
14
|
...(serviceType ? { typeForm: serviceType } : {}),
|
|
14
|
-
...getIncidentComment(sufferedFrom, situationDescription
|
|
15
|
+
...getIncidentComment(sufferedFrom?.text, situationDescription),
|
|
16
|
+
...getIsClient(applierType),
|
|
15
17
|
};
|
|
16
18
|
return Object.fromEntries(Object.entries(formatData)?.map(([k, v]) => [k, v?.key || v]));
|
|
17
19
|
};
|
|
20
|
+
const getIsClient = (applierType) => applierType?.key ? { isClient: applierType?.key === CLIENT_KEY } : {};
|
|
18
21
|
const getIncidentComment = (sufferedFrom, situationDescription) => sufferedFrom || situationDescription
|
|
19
22
|
? { comment: `${sufferedFrom || ''};${situationDescription || ''}` }
|
|
20
23
|
: {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getFormatData.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/getFormatData.tsx"],"names":[],"mappings":"AAAA,sDAAsD;AAEtD,OAAO,EAAE,SAAS,EAAE,MAAM,wCAAwC,CAAC;AAGnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,IAAe,EAAuB,EAAE;IACpE,MAAM,EACJ,aAAa,EACb,cAAc,EACd,WAAW,EACX,MAAM,EACN,IAAI,EACJ,aAAa,EACb,WAAW,EACX,QAAQ,EACR,MAAM,EACN,GAAG,EACH,YAAY,EACZ,oBAAoB,EACpB,GAAG,QAAQ,EACZ,GAAG,IAAI,CAAC;IACT,MAAM,eAAe,GAAG,aAAa,IAAI,aAAa,CAAC,CAAC,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IACzF,MAAM,UAAU,GAAG;QACjB,GAAG,QAAQ;QACX,GAAG,WAAW,CAAC,QAAQ,CAAC;QACxB,GAAG,SAAS,CAAC,MAAM,CAAC;QACpB,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,CAAC;QACnB,GAAG,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,eAAe,EAAE,CAAC,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+
import { type ApplierType } from '../../ui-kit/FormField/Fields/ApplierTypeField';
|
|
1
2
|
import { type Option } from '../../ui-kit/Select/Option';
|
|
2
3
|
import { type FieldDef } from './ApplicationFormContent';
|
|
3
4
|
export interface FormState {
|
|
@@ -21,7 +22,8 @@ export interface FormState {
|
|
|
21
22
|
annualRevenue?: string;
|
|
22
23
|
consentDataProcessing?: boolean;
|
|
23
24
|
addressRetail?: Option;
|
|
24
|
-
sufferedFrom?:
|
|
25
|
-
situationDescription?:
|
|
25
|
+
sufferedFrom?: Option;
|
|
26
|
+
situationDescription?: string;
|
|
27
|
+
applierType?: ApplierType;
|
|
26
28
|
}
|
|
27
29
|
export declare const getInitialFormState: (inputs: FieldDef[], typeForm?: string) => FormState;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getInitialFormState.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/getInitialFormState.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,kBAAkB,EAClB,aAAa,GACd,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;
|
|
1
|
+
{"version":3,"file":"getInitialFormState.js","sourceRoot":"","sources":["../../../src/components/ApplicationForm/getInitialFormState.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,kBAAkB,EAClB,aAAa,GACd,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AAE/E,OAAO,EAAE,SAAS,EAAE,MAAM,wCAAwC,CAAC;AA8BnE,MAAM,gBAAgB,GAAG;IACvB,QAAQ,EAAE,EAAE;IACZ,MAAM,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;IAC7B,aAAa,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;IACpC,OAAO,EAAE,EAAE;IACX,IAAI,EAAE,EAAE;IACR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|
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
3
|
+
export declare const CLIENT_KEY = "client";
|
|
4
|
+
export declare const REPRESENTATIVE_KEY = "representative";
|
|
5
|
+
export declare type ApplierType = Option & {
|
|
6
|
+
key: 'client' | 'representative';
|
|
7
|
+
};
|
|
8
|
+
export declare const APPLIER_TYPES: ApplierType[];
|
|
2
9
|
export declare const ApplierTypeField: import("@redneckz/uni-jsx").UNIComponent<CustomFieldProps, any, any>;
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
3
|
import { SelectControl } from '../../Select/SelectControl.js';
|
|
4
|
-
const
|
|
4
|
+
export const CLIENT_KEY = 'client';
|
|
5
|
+
export const REPRESENTATIVE_KEY = 'representative';
|
|
6
|
+
export const APPLIER_TYPES = [
|
|
5
7
|
{
|
|
6
|
-
key:
|
|
8
|
+
key: CLIENT_KEY,
|
|
7
9
|
text: 'Клиент',
|
|
8
10
|
},
|
|
9
11
|
{
|
|
10
|
-
key:
|
|
12
|
+
key: REPRESENTATIVE_KEY,
|
|
11
13
|
text: 'Представитель клиента',
|
|
12
14
|
},
|
|
13
15
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApplierTypeField.js","sourceRoot":"","sources":["../../../../src/ui-kit/FormField/Fields/ApplierTypeField.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAG3D,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"ApplierTypeField.js","sourceRoot":"","sources":["../../../../src/ui-kit/FormField/Fields/ApplierTypeField.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAG3D,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC;AACnC,MAAM,CAAC,MAAM,kBAAkB,GAAG,gBAAgB,CAAC;AAMnD,MAAM,CAAC,MAAM,aAAa,GAAkB;IAC1C;QACE,GAAG,EAAE,UAAU;QACf,IAAI,EAAE,QAAQ;KACf;IACD;QACE,GAAG,EAAE,kBAAkB;QACvB,IAAI,EAAE,uBAAuB;KAC9B;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CAAmB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAC1E,KAAC,aAAa,IACZ,KAAK,EAAC,mGAAmB,KACrB,KAAK,EACT,OAAO,EAAE,aAAa,KAClB,KAAK,CAAC,aAAa,CAAC,GACxB,CACH,CAAC,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
2
|
|
|
3
|
+
import { CLIENT_KEY, type ApplierType } from '../../ui-kit/FormField/Fields/ApplierTypeField';
|
|
3
4
|
import { VED_TYPES } from '../../ui-kit/FormField/Fields/VedField';
|
|
4
5
|
import { type Option } from '../../ui-kit/Select/Option';
|
|
5
6
|
import { type FormState } from './getInitialFormState';
|
|
@@ -19,6 +20,7 @@ export const getFormatData = (data: FormState): Record<string, any> => {
|
|
|
19
20
|
inn,
|
|
20
21
|
sufferedFrom,
|
|
21
22
|
situationDescription,
|
|
23
|
+
applierType,
|
|
22
24
|
...usedData
|
|
23
25
|
} = data;
|
|
24
26
|
const partnerComments = acquiringType || annualRevenue ? getPartnerComments(data) : null;
|
|
@@ -29,7 +31,8 @@ export const getFormatData = (data: FormState): Record<string, any> => {
|
|
|
29
31
|
...(inn && { inn }),
|
|
30
32
|
...(partnerComments ? { partnerComments } : {}),
|
|
31
33
|
...(serviceType ? { typeForm: serviceType } : {}),
|
|
32
|
-
...getIncidentComment(sufferedFrom, situationDescription
|
|
34
|
+
...getIncidentComment(sufferedFrom?.text, situationDescription),
|
|
35
|
+
...getIsClient(applierType),
|
|
33
36
|
};
|
|
34
37
|
|
|
35
38
|
return Object.fromEntries(
|
|
@@ -37,6 +40,9 @@ export const getFormatData = (data: FormState): Record<string, any> => {
|
|
|
37
40
|
);
|
|
38
41
|
};
|
|
39
42
|
|
|
43
|
+
const getIsClient = (applierType?: ApplierType) =>
|
|
44
|
+
applierType?.key ? { isClient: applierType?.key === CLIENT_KEY } : {};
|
|
45
|
+
|
|
40
46
|
const getIncidentComment = (sufferedFrom?: string, situationDescription?: string) =>
|
|
41
47
|
sufferedFrom || situationDescription
|
|
42
48
|
? { comment: `${sufferedFrom || ''};${situationDescription || ''}` }
|
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
SERVICE_TYPES,
|
|
5
5
|
} from '../../ui-kit/FormField/constants';
|
|
6
6
|
import { ACQUIRING_TYPES } from '../../ui-kit/FormField/Fields/AcquiringField';
|
|
7
|
+
import { type ApplierType } from '../../ui-kit/FormField/Fields/ApplierTypeField';
|
|
7
8
|
import { VED_TYPES } from '../../ui-kit/FormField/Fields/VedField';
|
|
8
9
|
import { type Option } from '../../ui-kit/Select/Option';
|
|
9
10
|
import { type FieldDef } from './ApplicationFormContent';
|
|
@@ -29,8 +30,9 @@ export interface FormState {
|
|
|
29
30
|
annualRevenue?: string;
|
|
30
31
|
consentDataProcessing?: boolean;
|
|
31
32
|
addressRetail?: Option;
|
|
32
|
-
sufferedFrom?:
|
|
33
|
-
situationDescription?:
|
|
33
|
+
sufferedFrom?: Option;
|
|
34
|
+
situationDescription?: string;
|
|
35
|
+
applierType?: ApplierType;
|
|
34
36
|
}
|
|
35
37
|
|
|
36
38
|
const initialFormState = {
|
|
@@ -3,13 +3,20 @@ import { type Option } from '../../Select/Option';
|
|
|
3
3
|
import { SelectControl } from '../../Select/SelectControl';
|
|
4
4
|
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
5
5
|
|
|
6
|
-
const
|
|
6
|
+
export const CLIENT_KEY = 'client';
|
|
7
|
+
export const REPRESENTATIVE_KEY = 'representative';
|
|
8
|
+
|
|
9
|
+
export type ApplierType = Option & {
|
|
10
|
+
key: 'client' | 'representative';
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const APPLIER_TYPES: ApplierType[] = [
|
|
7
14
|
{
|
|
8
|
-
key:
|
|
15
|
+
key: CLIENT_KEY,
|
|
9
16
|
text: 'Клиент',
|
|
10
17
|
},
|
|
11
18
|
{
|
|
12
|
-
key:
|
|
19
|
+
key: REPRESENTATIVE_KEY,
|
|
13
20
|
text: 'Представитель клиента',
|
|
14
21
|
},
|
|
15
22
|
];
|
package/package.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
2
|
|
|
3
|
+
import { CLIENT_KEY, type ApplierType } from '../../ui-kit/FormField/Fields/ApplierTypeField';
|
|
3
4
|
import { VED_TYPES } from '../../ui-kit/FormField/Fields/VedField';
|
|
4
5
|
import { type Option } from '../../ui-kit/Select/Option';
|
|
5
6
|
import { type FormState } from './getInitialFormState';
|
|
@@ -19,6 +20,7 @@ export const getFormatData = (data: FormState): Record<string, any> => {
|
|
|
19
20
|
inn,
|
|
20
21
|
sufferedFrom,
|
|
21
22
|
situationDescription,
|
|
23
|
+
applierType,
|
|
22
24
|
...usedData
|
|
23
25
|
} = data;
|
|
24
26
|
const partnerComments = acquiringType || annualRevenue ? getPartnerComments(data) : null;
|
|
@@ -29,7 +31,8 @@ export const getFormatData = (data: FormState): Record<string, any> => {
|
|
|
29
31
|
...(inn && { inn }),
|
|
30
32
|
...(partnerComments ? { partnerComments } : {}),
|
|
31
33
|
...(serviceType ? { typeForm: serviceType } : {}),
|
|
32
|
-
...getIncidentComment(sufferedFrom, situationDescription
|
|
34
|
+
...getIncidentComment(sufferedFrom?.text, situationDescription),
|
|
35
|
+
...getIsClient(applierType),
|
|
33
36
|
};
|
|
34
37
|
|
|
35
38
|
return Object.fromEntries(
|
|
@@ -37,6 +40,9 @@ export const getFormatData = (data: FormState): Record<string, any> => {
|
|
|
37
40
|
);
|
|
38
41
|
};
|
|
39
42
|
|
|
43
|
+
const getIsClient = (applierType?: ApplierType) =>
|
|
44
|
+
applierType?.key ? { isClient: applierType?.key === CLIENT_KEY } : {};
|
|
45
|
+
|
|
40
46
|
const getIncidentComment = (sufferedFrom?: string, situationDescription?: string) =>
|
|
41
47
|
sufferedFrom || situationDescription
|
|
42
48
|
? { comment: `${sufferedFrom || ''};${situationDescription || ''}` }
|
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
SERVICE_TYPES,
|
|
5
5
|
} from '../../ui-kit/FormField/constants';
|
|
6
6
|
import { ACQUIRING_TYPES } from '../../ui-kit/FormField/Fields/AcquiringField';
|
|
7
|
+
import { type ApplierType } from '../../ui-kit/FormField/Fields/ApplierTypeField';
|
|
7
8
|
import { VED_TYPES } from '../../ui-kit/FormField/Fields/VedField';
|
|
8
9
|
import { type Option } from '../../ui-kit/Select/Option';
|
|
9
10
|
import { type FieldDef } from './ApplicationFormContent';
|
|
@@ -29,8 +30,9 @@ export interface FormState {
|
|
|
29
30
|
annualRevenue?: string;
|
|
30
31
|
consentDataProcessing?: boolean;
|
|
31
32
|
addressRetail?: Option;
|
|
32
|
-
sufferedFrom?:
|
|
33
|
-
situationDescription?:
|
|
33
|
+
sufferedFrom?: Option;
|
|
34
|
+
situationDescription?: string;
|
|
35
|
+
applierType?: ApplierType;
|
|
34
36
|
}
|
|
35
37
|
|
|
36
38
|
const initialFormState = {
|
|
@@ -3,13 +3,20 @@ import { type Option } from '../../Select/Option';
|
|
|
3
3
|
import { SelectControl } from '../../Select/SelectControl';
|
|
4
4
|
import { type CustomFieldProps } from '../CustomFieldProps';
|
|
5
5
|
|
|
6
|
-
const
|
|
6
|
+
export const CLIENT_KEY = 'client';
|
|
7
|
+
export const REPRESENTATIVE_KEY = 'representative';
|
|
8
|
+
|
|
9
|
+
export type ApplierType = Option & {
|
|
10
|
+
key: 'client' | 'representative';
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const APPLIER_TYPES: ApplierType[] = [
|
|
7
14
|
{
|
|
8
|
-
key:
|
|
15
|
+
key: CLIENT_KEY,
|
|
9
16
|
text: 'Клиент',
|
|
10
17
|
},
|
|
11
18
|
{
|
|
12
|
-
key:
|
|
19
|
+
key: REPRESENTATIVE_KEY,
|
|
13
20
|
text: 'Представитель клиента',
|
|
14
21
|
},
|
|
15
22
|
];
|