@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
package/bundle/bundle.umd.js
CHANGED
|
@@ -1588,13 +1588,15 @@
|
|
|
1588
1588
|
|
|
1589
1589
|
const AnnualRevenueField = JSX(({ field, input }) => (jsx(InputControl, { label: "\u0413\u043E\u0434\u043E\u0432\u0430\u044F \u0432\u044B\u0440\u0443\u0447\u043A\u0430, \u20BD", ...field(input?.name ?? '') })));
|
|
1590
1590
|
|
|
1591
|
+
const CLIENT_KEY = 'client';
|
|
1592
|
+
const REPRESENTATIVE_KEY = 'representative';
|
|
1591
1593
|
const APPLIER_TYPES = [
|
|
1592
1594
|
{
|
|
1593
|
-
key:
|
|
1595
|
+
key: CLIENT_KEY,
|
|
1594
1596
|
text: 'Клиент',
|
|
1595
1597
|
},
|
|
1596
1598
|
{
|
|
1597
|
-
key:
|
|
1599
|
+
key: REPRESENTATIVE_KEY,
|
|
1598
1600
|
text: 'Представитель клиента',
|
|
1599
1601
|
},
|
|
1600
1602
|
];
|
|
@@ -2303,7 +2305,7 @@
|
|
|
2303
2305
|
|
|
2304
2306
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2305
2307
|
const getFormatData = (data) => {
|
|
2306
|
-
const { acquiringType, onlineCheckout, posTerminal, amount, term, annualRevenue, serviceType, vedTypes, region, inn, sufferedFrom, situationDescription, ...usedData } = data;
|
|
2308
|
+
const { acquiringType, onlineCheckout, posTerminal, amount, term, annualRevenue, serviceType, vedTypes, region, inn, sufferedFrom, situationDescription, applierType, ...usedData } = data;
|
|
2307
2309
|
const partnerComments = acquiringType || annualRevenue ? getPartnerComments(data) : null;
|
|
2308
2310
|
const formatData = {
|
|
2309
2311
|
...usedData,
|
|
@@ -2312,10 +2314,12 @@
|
|
|
2312
2314
|
...(inn && { inn }),
|
|
2313
2315
|
...(partnerComments ? { partnerComments } : {}),
|
|
2314
2316
|
...(serviceType ? { typeForm: serviceType } : {}),
|
|
2315
|
-
...getIncidentComment(sufferedFrom, situationDescription
|
|
2317
|
+
...getIncidentComment(sufferedFrom?.text, situationDescription),
|
|
2318
|
+
...getIsClient(applierType),
|
|
2316
2319
|
};
|
|
2317
2320
|
return Object.fromEntries(Object.entries(formatData)?.map(([k, v]) => [k, v?.key || v]));
|
|
2318
2321
|
};
|
|
2322
|
+
const getIsClient = (applierType) => applierType?.key ? { isClient: applierType?.key === CLIENT_KEY } : {};
|
|
2319
2323
|
const getIncidentComment = (sufferedFrom, situationDescription) => sufferedFrom || situationDescription
|
|
2320
2324
|
? { comment: `${sufferedFrom || ''};${situationDescription || ''}` }
|
|
2321
2325
|
: {};
|
|
@@ -7005,7 +7009,7 @@
|
|
|
7005
7009
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
7006
7010
|
});
|
|
7007
7011
|
|
|
7008
|
-
const packageVersion = "0.14.
|
|
7012
|
+
const packageVersion = "0.14.766";
|
|
7009
7013
|
|
|
7010
7014
|
exports.Blocks = Blocks;
|
|
7011
7015
|
exports.ContentPage = ContentPage;
|