@redneckz/wildless-cms-uni-blocks 0.14.798 → 0.14.800
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 +37 -7
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/CreditCardForm/getDeliveryCreditCardData.d.ts +1 -15
- package/bundle/components/DebitForm/getDeliveryDebitData.d.ts +1 -19
- package/bundle/retail/api/updateUserTask.d.ts +1 -1
- package/bundle/retail/components/Fields/DeliveryTimeField.d.ts +2 -0
- package/bundle/retail/inputs.d.ts +1 -0
- package/bundle/retail/model/LeadFormState.d.ts +1 -0
- package/bundle/retail/model/NameFieldDef.d.ts +1 -1
- package/dist/components/CalculatorDeposit/getDepositCalculatorParams.js +3 -1
- package/dist/components/CalculatorDeposit/getDepositCalculatorParams.js.map +1 -1
- package/dist/components/CreditCardForm/getDeliveryCreditCardData.d.ts +1 -15
- package/dist/components/CreditCardForm/getDeliveryCreditCardData.js +3 -2
- package/dist/components/CreditCardForm/getDeliveryCreditCardData.js.map +1 -1
- package/dist/components/DebitForm/getDeliveryDebitData.d.ts +1 -19
- package/dist/components/DebitForm/getDeliveryDebitData.js +4 -3
- package/dist/components/DebitForm/getDeliveryDebitData.js.map +1 -1
- package/dist/retail/api/updateUserTask.d.ts +1 -1
- package/dist/retail/components/Fields/DeliveryTimeField.d.ts +2 -0
- package/dist/retail/components/Fields/DeliveryTimeField.js +16 -0
- package/dist/retail/components/Fields/DeliveryTimeField.js.map +1 -0
- package/dist/retail/content.js +16 -0
- package/dist/retail/content.js.map +1 -1
- package/dist/retail/inputs.d.ts +1 -0
- package/dist/retail/inputs.js +2 -0
- package/dist/retail/inputs.js.map +1 -1
- package/dist/retail/model/LeadFormState.d.ts +1 -0
- package/dist/retail/model/NameFieldDef.d.ts +1 -1
- package/lib/components/CalculatorDeposit/getDepositCalculatorParams.js +3 -1
- package/lib/components/CalculatorDeposit/getDepositCalculatorParams.js.map +1 -1
- package/lib/components/CreditCardForm/getDeliveryCreditCardData.d.ts +1 -15
- package/lib/components/CreditCardForm/getDeliveryCreditCardData.js +3 -2
- package/lib/components/CreditCardForm/getDeliveryCreditCardData.js.map +1 -1
- package/lib/components/DebitForm/getDeliveryDebitData.d.ts +1 -19
- package/lib/components/DebitForm/getDeliveryDebitData.js +4 -3
- package/lib/components/DebitForm/getDeliveryDebitData.js.map +1 -1
- package/lib/retail/api/updateUserTask.d.ts +1 -1
- package/lib/retail/components/Fields/DeliveryTimeField.d.ts +2 -0
- package/lib/retail/components/Fields/DeliveryTimeField.js +14 -0
- package/lib/retail/components/Fields/DeliveryTimeField.js.map +1 -0
- package/lib/retail/content.js +16 -0
- package/lib/retail/content.js.map +1 -1
- package/lib/retail/inputs.d.ts +1 -0
- package/lib/retail/inputs.js +2 -0
- package/lib/retail/inputs.js.map +1 -1
- package/lib/retail/model/LeadFormState.d.ts +1 -0
- package/lib/retail/model/NameFieldDef.d.ts +1 -1
- package/mobile/bundle/bundle.umd.js +33 -4
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/CreditCardForm/getDeliveryCreditCardData.d.ts +1 -15
- package/mobile/bundle/components/DebitForm/getDeliveryDebitData.d.ts +1 -19
- package/mobile/bundle/retail/api/updateUserTask.d.ts +1 -1
- package/mobile/bundle/retail/components/Fields/DeliveryTimeField.d.ts +2 -0
- package/mobile/bundle/retail/inputs.d.ts +1 -0
- package/mobile/bundle/retail/model/LeadFormState.d.ts +1 -0
- package/mobile/bundle/retail/model/NameFieldDef.d.ts +1 -1
- package/mobile/dist/components/CalculatorDeposit/getDepositCalculatorParams.js +3 -1
- package/mobile/dist/components/CalculatorDeposit/getDepositCalculatorParams.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/getDeliveryCreditCardData.d.ts +1 -15
- package/mobile/dist/components/CreditCardForm/getDeliveryCreditCardData.js +3 -2
- package/mobile/dist/components/CreditCardForm/getDeliveryCreditCardData.js.map +1 -1
- package/mobile/dist/components/DebitForm/getDeliveryDebitData.d.ts +1 -19
- package/mobile/dist/components/DebitForm/getDeliveryDebitData.js +4 -3
- package/mobile/dist/components/DebitForm/getDeliveryDebitData.js.map +1 -1
- package/mobile/dist/retail/api/updateUserTask.d.ts +1 -1
- package/mobile/dist/retail/components/Fields/DeliveryTimeField.d.ts +2 -0
- package/mobile/dist/retail/components/Fields/DeliveryTimeField.js +16 -0
- package/mobile/dist/retail/components/Fields/DeliveryTimeField.js.map +1 -0
- package/mobile/dist/retail/content.js +16 -0
- package/mobile/dist/retail/content.js.map +1 -1
- package/mobile/dist/retail/inputs.d.ts +1 -0
- package/mobile/dist/retail/inputs.js +2 -0
- package/mobile/dist/retail/inputs.js.map +1 -1
- package/mobile/dist/retail/model/LeadFormState.d.ts +1 -0
- package/mobile/dist/retail/model/NameFieldDef.d.ts +1 -1
- package/mobile/lib/components/CalculatorDeposit/getDepositCalculatorParams.js +3 -1
- package/mobile/lib/components/CalculatorDeposit/getDepositCalculatorParams.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/getDeliveryCreditCardData.d.ts +1 -15
- package/mobile/lib/components/CreditCardForm/getDeliveryCreditCardData.js +3 -2
- package/mobile/lib/components/CreditCardForm/getDeliveryCreditCardData.js.map +1 -1
- package/mobile/lib/components/DebitForm/getDeliveryDebitData.d.ts +1 -19
- package/mobile/lib/components/DebitForm/getDeliveryDebitData.js +4 -3
- package/mobile/lib/components/DebitForm/getDeliveryDebitData.js.map +1 -1
- package/mobile/lib/retail/api/updateUserTask.d.ts +1 -1
- package/mobile/lib/retail/components/Fields/DeliveryTimeField.d.ts +2 -0
- package/mobile/lib/retail/components/Fields/DeliveryTimeField.js +14 -0
- package/mobile/lib/retail/components/Fields/DeliveryTimeField.js.map +1 -0
- package/mobile/lib/retail/content.js +16 -0
- package/mobile/lib/retail/content.js.map +1 -1
- package/mobile/lib/retail/inputs.d.ts +1 -0
- package/mobile/lib/retail/inputs.js +2 -0
- package/mobile/lib/retail/inputs.js.map +1 -1
- package/mobile/lib/retail/model/LeadFormState.d.ts +1 -0
- package/mobile/lib/retail/model/NameFieldDef.d.ts +1 -1
- package/mobile/src/components/CalculatorDeposit/getDepositCalculatorParams.ts +3 -1
- package/mobile/src/components/CreditCardForm/getDeliveryCreditCardData.ts +3 -2
- package/mobile/src/components/DebitForm/getDeliveryDebitData.ts +4 -3
- package/mobile/src/retail/api/updateUserTask.ts +1 -1
- package/mobile/src/retail/components/Fields/DeliveryTimeField.tsx +27 -0
- package/mobile/src/retail/content.tsx +16 -0
- package/mobile/src/retail/inputs.tsx +2 -0
- package/mobile/src/retail/model/LeadFormState.ts +1 -0
- package/mobile/src/retail/model/NameFieldDef.ts +1 -0
- package/package.json +1 -1
- package/src/components/CalculatorDeposit/getDepositCalculatorParams.ts +3 -1
- package/src/components/CreditCardForm/getDeliveryCreditCardData.ts +3 -2
- package/src/components/DebitForm/getDeliveryDebitData.ts +4 -3
- package/src/retail/api/updateUserTask.ts +1 -1
- package/src/retail/components/Fields/DeliveryTimeField.tsx +27 -0
- package/src/retail/content.tsx +16 -0
- package/src/retail/inputs.tsx +2 -0
- package/src/retail/model/LeadFormState.ts +1 -0
- package/src/retail/model/NameFieldDef.ts +1 -0
package/bundle/bundle.umd.js
CHANGED
|
@@ -4396,6 +4396,15 @@
|
|
|
4396
4396
|
|
|
4397
4397
|
const DeliveryDateFiels = JSX(({ field, input }) => (jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u0434\u043E\u0441\u0442\u0430\u0432\u043A\u0438", ...field(input?.name ?? '') })));
|
|
4398
4398
|
|
|
4399
|
+
const DeliveryTimeField = JSX(({ field, input }) => {
|
|
4400
|
+
const { data } = useLeadFormData('COURIER_DELIVERY_TIME');
|
|
4401
|
+
const deliveryTime = useMemo(() => data?.map((_) => ({
|
|
4402
|
+
id: _.key,
|
|
4403
|
+
text: _.value,
|
|
4404
|
+
})) ?? [], [data]);
|
|
4405
|
+
return (jsx(RadioButtonGroupControl, { label: "\u0412\u0440\u0435\u043C\u044F \u0434\u043E\u0441\u0442\u0430\u0432\u043A\u0438", className: "flex-row", items: deliveryTime, ...field(input?.name ?? '') }));
|
|
4406
|
+
});
|
|
4407
|
+
|
|
4399
4408
|
const DependentsField = JSX(({ field, input }) => (jsx(DaDataInputControl, { label: "\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0438\u043D\u044B\u0445 \u0438\u0436\u0434\u0438\u0432\u0435\u043D\u0446\u0435\u0432", placeholder: "\u0417\u0430 \u0438\u0441\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u0435\u043C \u0434\u0435\u0442\u0435\u0439 \u0434\u043E 18 \u043B\u0435\u0442", isInteger: true, maxLength: 2, ...field(input?.name ?? ''), ...input })));
|
|
4400
4409
|
|
|
4401
4410
|
const DulIssueDateField = JSX(({ field, input }) => (jsx(DatePickerControl, { label: "\u0414\u0430\u0442\u0430 \u0432\u044B\u0434\u0430\u0447\u0438", ...field(input?.name ?? ''), disabled: input?.filledByEsia && isEsiaAuthorize(field, input?.name ?? '') })));
|
|
@@ -4873,6 +4882,7 @@
|
|
|
4873
4882
|
deliveryDate: DeliveryDateFiels,
|
|
4874
4883
|
latinName: LatinNameField,
|
|
4875
4884
|
latinSurname: LatinSurnameField,
|
|
4885
|
+
deliveryTime: DeliveryTimeField,
|
|
4876
4886
|
};
|
|
4877
4887
|
|
|
4878
4888
|
const CONSENT_ALL_DOCS_TEXT = 'Согласие на все документы';
|
|
@@ -6816,7 +6826,9 @@
|
|
|
6816
6826
|
checkRangeByKeys(monthsValue || defaultMonth, ['minMonths', 'maxMonths'], row),
|
|
6817
6827
|
].every(Boolean)) || DEFAULT_DEPOSIT_CALCULATOR_PARAMS;
|
|
6818
6828
|
const { rate } = depositCalculatorSourceBookParams;
|
|
6819
|
-
const
|
|
6829
|
+
const extraPercent = userInputParams?.extraPercent?.key;
|
|
6830
|
+
const totalRate = Number(rate) + Number(extraPercent);
|
|
6831
|
+
const income = getDepositIncome(totalRate, userInputParams);
|
|
6820
6832
|
const finalSum = moneyValue + income;
|
|
6821
6833
|
const sourceBookRows = rows || [DEFAULT_DEPOSIT_CALCULATOR_PARAMS];
|
|
6822
6834
|
return {
|
|
@@ -7903,15 +7915,16 @@
|
|
|
7903
7915
|
};
|
|
7904
7916
|
|
|
7905
7917
|
const getDeliveryData$1 = (formData) => {
|
|
7906
|
-
const { methodObtain, deliveryDate = '' } = formData;
|
|
7918
|
+
const { methodObtain, deliveryDate = '', deliveryTime } = formData;
|
|
7907
7919
|
const isCourierDelivery = methodObtain === 'courier';
|
|
7920
|
+
const deliveryTimeCd = deliveryTime ? { deliveryTimeCd: { key: deliveryTime } } : {};
|
|
7908
7921
|
return isCourierDelivery
|
|
7909
7922
|
? {
|
|
7910
7923
|
courierDeliveryFlg: isCourierDelivery,
|
|
7911
7924
|
deliveryDate: dateToISO(deliveryDate.toString().replace(/(GMT)[+-]\d{4}/, 'GMT+0000')),
|
|
7912
|
-
deliveryTimeCd: { value: 'TIME_2' },
|
|
7913
7925
|
//TODO временный хардкод для тестирования, не забыть удалить
|
|
7914
7926
|
office: { id: '3' },
|
|
7927
|
+
...deliveryTimeCd,
|
|
7915
7928
|
}
|
|
7916
7929
|
: {};
|
|
7917
7930
|
};
|
|
@@ -8395,6 +8408,11 @@
|
|
|
8395
8408
|
},
|
|
8396
8409
|
required: true,
|
|
8397
8410
|
},
|
|
8411
|
+
],
|
|
8412
|
+
},
|
|
8413
|
+
{
|
|
8414
|
+
columns: 2,
|
|
8415
|
+
inputs: [
|
|
8398
8416
|
{
|
|
8399
8417
|
name: 'deliveryDate',
|
|
8400
8418
|
condition: {
|
|
@@ -8403,6 +8421,17 @@
|
|
|
8403
8421
|
},
|
|
8404
8422
|
required: true,
|
|
8405
8423
|
},
|
|
8424
|
+
{
|
|
8425
|
+
name: 'deliveryTime',
|
|
8426
|
+
condition: {
|
|
8427
|
+
name: 'methodObtain',
|
|
8428
|
+
values: ['courier'],
|
|
8429
|
+
},
|
|
8430
|
+
},
|
|
8431
|
+
],
|
|
8432
|
+
},
|
|
8433
|
+
{
|
|
8434
|
+
inputs: [
|
|
8406
8435
|
{
|
|
8407
8436
|
name: 'comment',
|
|
8408
8437
|
condition: {
|
|
@@ -9021,16 +9050,17 @@
|
|
|
9021
9050
|
];
|
|
9022
9051
|
|
|
9023
9052
|
const getDeliveryData = (formData) => {
|
|
9024
|
-
const { methodObtain, regionRetail, comment, deliveryDate = '' } = formData;
|
|
9053
|
+
const { methodObtain, regionRetail, comment, deliveryDate = '', deliveryTime } = formData;
|
|
9025
9054
|
const isCourierDelivery = methodObtain === 'courier';
|
|
9055
|
+
const deliveryTimeCd = deliveryTime ? { deliveryTimeCd: { key: deliveryTime } } : {};
|
|
9026
9056
|
return isCourierDelivery
|
|
9027
9057
|
? {
|
|
9028
9058
|
cardServiceRegionCd: regionRetail,
|
|
9029
9059
|
courierDeliveryFlg: true,
|
|
9030
|
-
|
|
9060
|
+
deliveryComment: comment,
|
|
9031
9061
|
deliveryDate: dateToISO(deliveryDate.toString().replace(/(GMT)[+-]\d{4}/, 'GMT+0000')),
|
|
9032
|
-
deliveryTimeCd: { key: 'TIME_2' },
|
|
9033
9062
|
office: { id: '' },
|
|
9063
|
+
...deliveryTimeCd,
|
|
9034
9064
|
}
|
|
9035
9065
|
: {};
|
|
9036
9066
|
};
|
|
@@ -11431,7 +11461,7 @@
|
|
|
11431
11461
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
11432
11462
|
});
|
|
11433
11463
|
|
|
11434
|
-
const packageVersion = "0.14.
|
|
11464
|
+
const packageVersion = "0.14.799";
|
|
11435
11465
|
|
|
11436
11466
|
exports.Blocks = Blocks;
|
|
11437
11467
|
exports.ContentPage = ContentPage;
|