x25 5.1.18 → 5.1.19
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/Inputs/DateInput.js
CHANGED
|
@@ -123,6 +123,12 @@ var DateInput = exports.DateInput = function DateInput(props) {
|
|
|
123
123
|
updateValue(targetValue);
|
|
124
124
|
};
|
|
125
125
|
|
|
126
|
+
_react2.default.useEffect(function () {
|
|
127
|
+
if ((0, _validation.isValidDate)(input.value)) {
|
|
128
|
+
updateValue(input.value);
|
|
129
|
+
}
|
|
130
|
+
}, [input.value]);
|
|
131
|
+
|
|
126
132
|
return _react2.default.createElement("input", _extends({}, input, {
|
|
127
133
|
className: (0, _classnames2.default)("form-control " + (customClass || ""), {
|
|
128
134
|
"is-invalid": touched && error
|
package/Inputs/DateTemplate.js
CHANGED
|
@@ -126,6 +126,12 @@ var DateTemplate = exports.DateTemplate = function DateTemplate(props) {
|
|
|
126
126
|
updateValue(targetValue);
|
|
127
127
|
};
|
|
128
128
|
|
|
129
|
+
_react2.default.useEffect(function () {
|
|
130
|
+
if ((0, _validation.isValidDate)(input.value)) {
|
|
131
|
+
updateValue(input.value);
|
|
132
|
+
}
|
|
133
|
+
}, [input.value]);
|
|
134
|
+
|
|
129
135
|
return _react2.default.createElement(
|
|
130
136
|
"div",
|
|
131
137
|
{
|
|
@@ -16,7 +16,7 @@ var up = 3;
|
|
|
16
16
|
var
|
|
17
17
|
// in LEI 16.01.2019
|
|
18
18
|
// in LEI 15.03.2022
|
|
19
|
-
pricePerMonth = exports.pricePerMonth =
|
|
19
|
+
pricePerMonth = exports.pricePerMonth = 24.99,
|
|
20
20
|
getPrice = exports.getPrice = function getPrice(months) {
|
|
21
21
|
return parseFloat(new _big2.default(months).times(new _big2.default(pricePerMonth)).round(0, up));
|
|
22
22
|
};
|