react-survey-builder 1.0.35 → 1.0.37
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/dist/index.js +1 -1
- package/lib/survey-elements/index.js +22 -0
- package/package.json +1 -1
@@ -47,6 +47,11 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
47
47
|
var CustomPhoneInput = /*#__PURE__*/_react["default"].forwardRef(function (_ref, ref) {
|
48
48
|
var onChange = _ref.onChange,
|
49
49
|
otherProps = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
50
|
+
Object.keys(otherProps).forEach(function (key) {
|
51
|
+
if (otherProps[key] === undefined) {
|
52
|
+
delete otherProps[key];
|
53
|
+
}
|
54
|
+
});
|
50
55
|
return /*#__PURE__*/_react["default"].createElement(_reactImask.IMaskInput, (0, _extends2["default"])({}, otherProps, {
|
51
56
|
mask: '{+1} (#00) 000-0000',
|
52
57
|
lazy: false,
|
@@ -77,6 +82,12 @@ var CustomDateInput = /*#__PURE__*/_react["default"].forwardRef(function (_ref2,
|
|
77
82
|
formatMask = _ref2$formatMask === void 0 ? 'MM/DD/YYYY' : _ref2$formatMask,
|
78
83
|
otherProps = (0, _objectWithoutProperties2["default"])(_ref2, _excluded2);
|
79
84
|
console.log('otherProps', otherProps);
|
85
|
+
Object.keys(otherProps).forEach(function (key) {
|
86
|
+
if (otherProps[key] === undefined) {
|
87
|
+
delete otherProps[key];
|
88
|
+
}
|
89
|
+
});
|
90
|
+
console.log('otherProps', otherProps);
|
80
91
|
return /*#__PURE__*/_react["default"].createElement(_reactImask.IMaskInput, (0, _extends2["default"])({}, otherProps, {
|
81
92
|
mask: Date,
|
82
93
|
lazy: false,
|
@@ -569,6 +580,11 @@ var DatePicker = /*#__PURE__*/function (_React$Component9) {
|
|
569
580
|
}
|
570
581
|
console.log(this.props);
|
571
582
|
console.log(props);
|
583
|
+
Object.keys(props).forEach(function (key) {
|
584
|
+
if (props[key] === undefined) {
|
585
|
+
delete props[key];
|
586
|
+
}
|
587
|
+
});
|
572
588
|
if (this.props) {
|
573
589
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
574
590
|
style: _objectSpread({}, this.props.style),
|
@@ -587,6 +603,12 @@ var DatePicker = /*#__PURE__*/function (_React$Component9) {
|
|
587
603
|
})), /*#__PURE__*/_react["default"].createElement(_reactBootstrap.Form.Control, (0, _extends2["default"])({
|
588
604
|
id: props.name,
|
589
605
|
type: "text"
|
606
|
+
// onBlur={props.onBlur}
|
607
|
+
// onChange={props.onChange}
|
608
|
+
// value={props.value}
|
609
|
+
// name={props.name}
|
610
|
+
// ref={props.ref}
|
611
|
+
// isInvalid={props.isInvalid}
|
590
612
|
}, props, {
|
591
613
|
as: CustomDateInput
|
592
614
|
}))), this.props.item.help ? /*#__PURE__*/_react["default"].createElement(_reactBootstrap.Form.Text, {
|