x25 5.1.15 → 5.1.18

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.
@@ -149,7 +149,7 @@ var DateTemplate = exports.DateTemplate = function DateTemplate(props) {
149
149
  id: input.name,
150
150
  onBlur: handleBlur,
151
151
  onChange: handleChange,
152
- placeholder: placeholder || _utility.words.DateFormat,
152
+ placeholder: placeholder || "ZZ.LL.ANUL",
153
153
  ref: onRegisterRef,
154
154
  tabIndex: tabIndex,
155
155
  type: "text",
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ exports.NumericInput = undefined;
6
7
 
7
8
  var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }(); /* eslint-disable require-unicode-regexp */
8
9
  /* eslint-disable no-magic-numbers */
@@ -22,7 +23,7 @@ var _common = require("./common");
22
23
 
23
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
24
25
 
25
- var NumericInput = function NumericInput(props) {
26
+ var NumericInput = exports.NumericInput = function NumericInput(props) {
26
27
  var customClass = props.customClass,
27
28
  input = props.input,
28
29
  label = props.label,
@@ -99,6 +100,4 @@ var NumericInput = function NumericInput(props) {
99
100
  )
100
101
  )
101
102
  );
102
- };
103
-
104
- exports.default = NumericInput;
103
+ };
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ exports.NumericTemplate = undefined;
6
7
 
7
8
  var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
8
9
  /* eslint-disable require-unicode-regexp */
@@ -19,9 +20,11 @@ var _classnames2 = _interopRequireDefault(_classnames);
19
20
 
20
21
  var _common = require("./common");
21
22
 
23
+ var _utility = require("../utility");
24
+
22
25
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
23
26
 
24
- var NumericTemplate = function NumericTemplate(props) {
27
+ var NumericTemplate = exports.NumericTemplate = function NumericTemplate(props) {
25
28
  var input = props.input,
26
29
  right = props.right,
27
30
  tabIndex = props.tabIndex,
@@ -32,7 +35,8 @@ var NumericTemplate = function NumericTemplate(props) {
32
35
  submitting = _props$meta.submitting,
33
36
  touched = _props$meta.touched,
34
37
  error = _props$meta.error,
35
- formatValue = props.formatValue,
38
+ _props$formatValue = props.formatValue,
39
+ formatValue = _props$formatValue === undefined ? _utility.formatZeroValue : _props$formatValue,
36
40
  type = props.type,
37
41
  autoFocus = props.autoFocus,
38
42
  inputClass = props.inputClass,
@@ -107,6 +111,4 @@ var NumericTemplate = function NumericTemplate(props) {
107
111
  )
108
112
  )
109
113
  );
110
- };
111
-
112
- exports.default = NumericTemplate;
114
+ };
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.1.15",
2
+ "version": "5.1.18",
3
3
  "name": "x25",
4
4
  "description": "x25",
5
5
  "scripts": {