x25 5.1.16 → 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.
@@ -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
@@ -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
  {
@@ -149,7 +155,7 @@ var DateTemplate = exports.DateTemplate = function DateTemplate(props) {
149
155
  id: input.name,
150
156
  onBlur: handleBlur,
151
157
  onChange: handleChange,
152
- placeholder: placeholder || _utility.words.DateFormat,
158
+ placeholder: placeholder || "ZZ.LL.ANUL",
153
159
  ref: onRegisterRef,
154
160
  tabIndex: tabIndex,
155
161
  type: "text",
@@ -20,6 +20,8 @@ var _classnames2 = _interopRequireDefault(_classnames);
20
20
 
21
21
  var _common = require("./common");
22
22
 
23
+ var _utility = require("../utility");
24
+
23
25
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
24
26
 
25
27
  var NumericTemplate = exports.NumericTemplate = function NumericTemplate(props) {
@@ -33,7 +35,8 @@ var NumericTemplate = exports.NumericTemplate = function NumericTemplate(props)
33
35
  submitting = _props$meta.submitting,
34
36
  touched = _props$meta.touched,
35
37
  error = _props$meta.error,
36
- formatValue = props.formatValue,
38
+ _props$formatValue = props.formatValue,
39
+ formatValue = _props$formatValue === undefined ? _utility.formatZeroValue : _props$formatValue,
37
40
  type = props.type,
38
41
  autoFocus = props.autoFocus,
39
42
  inputClass = props.inputClass,
@@ -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 = 14.99,
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
  };
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.1.16",
2
+ "version": "5.1.19",
3
3
  "name": "x25",
4
4
  "description": "x25",
5
5
  "scripts": {
@@ -142,4 +142,4 @@
142
142
  "reselect": "^4.0.0",
143
143
  "superagent": "^5.1.1"
144
144
  }
145
- }
145
+ }