@redneckz/wildless-cms-uni-blocks 0.14.185 → 0.14.186
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 +6 -1
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/components/Calculator/DepositCalculatorForm.js +6 -0
- package/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/DepositCalculatorForm.js +6 -0
- package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +6 -1
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/components/Calculator/DepositCalculatorForm.js +6 -0
- package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/DepositCalculatorForm.js +6 -0
- package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +9 -0
- package/package.json +1 -1
- package/src/components/Calculator/DepositCalculatorForm.tsx +9 -0
package/bundle/bundle.umd.js
CHANGED
|
@@ -2613,9 +2613,14 @@
|
|
|
2613
2613
|
const calculatorParams = getDepositCalculatorParams(userInputParams, calcSource, paramsViewSettings);
|
|
2614
2614
|
const { defaultMonth, rate, income, finalSum } = calculatorParams;
|
|
2615
2615
|
const { onChange: setMonthsValue } = field('monthsValue');
|
|
2616
|
+
const { onChange: setMoneyValue } = field('moneyValue');
|
|
2616
2617
|
useEffect(() => {
|
|
2617
2618
|
!userInputParams.monthsValue && setMonthsValue && setMonthsValue(defaultMonth);
|
|
2618
2619
|
}, [defaultMonth]);
|
|
2620
|
+
useEffect(() => {
|
|
2621
|
+
setMoneyValue &&
|
|
2622
|
+
setMoneyValue(clamp(userInputParams.moneyValue, calculatorParams.minSum, calculatorParams.maxSum));
|
|
2623
|
+
}, [calculatorParams.minSum, calculatorParams.maxSum]);
|
|
2619
2624
|
return (jsx(CalculatorFormLayout, { className: className, inputChildren: jsxs("div", { children: [renderWantedSumInput({
|
|
2620
2625
|
title: 'Сумма, ₽',
|
|
2621
2626
|
min: calculatorParams.minSum,
|
|
@@ -5989,7 +5994,7 @@
|
|
|
5989
5994
|
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
5990
5995
|
});
|
|
5991
5996
|
|
|
5992
|
-
const packageVersion = "0.14.
|
|
5997
|
+
const packageVersion = "0.14.185";
|
|
5993
5998
|
|
|
5994
5999
|
exports.Blocks = Blocks;
|
|
5995
6000
|
exports.ContentPage = ContentPage;
|