rc-calendar
Advanced tools
Comparing version 9.4.0 to 9.5.0
@@ -20,2 +20,3 @@ import _extends from 'babel-runtime/helpers/extends'; | ||
locale: PropTypes.any, | ||
showDateInput: PropTypes.bool, | ||
showTimePicker: PropTypes.bool, | ||
@@ -71,18 +72,21 @@ format: PropTypes.any, | ||
})); | ||
var dateInputElement = props.showDateInput && React.createElement(DateInput, { | ||
format: format, | ||
locale: locale, | ||
prefixCls: prefixCls, | ||
timePicker: timePicker, | ||
disabledDate: disabledDate, | ||
placeholder: placeholder, | ||
disabledTime: disabledTime, | ||
value: value, | ||
showClear: false, | ||
selectedValue: selectedValue[index], | ||
onChange: onInputSelect | ||
}); | ||
return React.createElement( | ||
'div', | ||
{ className: rangeClassName + '-part ' + rangeClassName + '-' + direction }, | ||
React.createElement(DateInput, { | ||
format: format, | ||
locale: locale, | ||
prefixCls: prefixCls, | ||
timePicker: timePicker, | ||
disabledDate: disabledDate, | ||
placeholder: placeholder, | ||
disabledTime: disabledTime, | ||
value: value, | ||
showClear: false, | ||
selectedValue: selectedValue[index], | ||
onChange: onInputSelect | ||
}), | ||
dateInputElement, | ||
React.createElement( | ||
@@ -89,0 +93,0 @@ 'div', |
@@ -71,2 +71,3 @@ import _extends from 'babel-runtime/helpers/extends'; | ||
} | ||
this.props.onInputSelect(selectedValue); | ||
this.fireSelectValueChange(selectedValue); | ||
@@ -85,2 +86,3 @@ } | ||
mode: PropTypes.arrayOf(PropTypes.oneOf(['date', 'month', 'year', 'decade'])), | ||
showDateInput: PropTypes.bool, | ||
timePicker: PropTypes.any, | ||
@@ -116,3 +118,5 @@ showOk: PropTypes.bool, | ||
disabledTime: noop, | ||
showToday: true | ||
onInputSelect: noop, | ||
showToday: true, | ||
showDateInput: true | ||
}; | ||
@@ -549,2 +553,3 @@ }, | ||
onPanelChange: this.onStartPanelChange, | ||
showDateInput: this.props.showDateInput, | ||
timePicker: timePicker, | ||
@@ -571,2 +576,3 @@ showTimePicker: showTimePicker, | ||
onPanelChange: this.onEndPanelChange, | ||
showDateInput: this.props.showDateInput, | ||
timePicker: timePicker, | ||
@@ -573,0 +579,0 @@ showTimePicker: showTimePicker, |
# History | ||
---- | ||
## 9.5.0 / 2017-12-26 | ||
- Add Kurdish | ||
## 9.4.0 / 2017-12-26 | ||
@@ -5,0 +8,0 @@ |
@@ -47,2 +47,3 @@ 'use strict'; | ||
locale: _propTypes2['default'].any, | ||
showDateInput: _propTypes2['default'].bool, | ||
showTimePicker: _propTypes2['default'].bool, | ||
@@ -98,18 +99,21 @@ format: _propTypes2['default'].any, | ||
})); | ||
var dateInputElement = props.showDateInput && _react2['default'].createElement(_DateInput2['default'], { | ||
format: format, | ||
locale: locale, | ||
prefixCls: prefixCls, | ||
timePicker: timePicker, | ||
disabledDate: disabledDate, | ||
placeholder: placeholder, | ||
disabledTime: disabledTime, | ||
value: value, | ||
showClear: false, | ||
selectedValue: selectedValue[index], | ||
onChange: onInputSelect | ||
}); | ||
return _react2['default'].createElement( | ||
'div', | ||
{ className: rangeClassName + '-part ' + rangeClassName + '-' + direction }, | ||
_react2['default'].createElement(_DateInput2['default'], { | ||
format: format, | ||
locale: locale, | ||
prefixCls: prefixCls, | ||
timePicker: timePicker, | ||
disabledDate: disabledDate, | ||
placeholder: placeholder, | ||
disabledTime: disabledTime, | ||
value: value, | ||
showClear: false, | ||
selectedValue: selectedValue[index], | ||
onChange: onInputSelect | ||
}), | ||
dateInputElement, | ||
_react2['default'].createElement( | ||
@@ -116,0 +120,0 @@ 'div', |
@@ -110,2 +110,3 @@ 'use strict'; | ||
} | ||
this.props.onInputSelect(selectedValue); | ||
this.fireSelectValueChange(selectedValue); | ||
@@ -124,2 +125,3 @@ } | ||
mode: _propTypes2['default'].arrayOf(_propTypes2['default'].oneOf(['date', 'month', 'year', 'decade'])), | ||
showDateInput: _propTypes2['default'].bool, | ||
timePicker: _propTypes2['default'].any, | ||
@@ -155,3 +157,5 @@ showOk: _propTypes2['default'].bool, | ||
disabledTime: noop, | ||
showToday: true | ||
onInputSelect: noop, | ||
showToday: true, | ||
showDateInput: true | ||
}; | ||
@@ -588,2 +592,3 @@ }, | ||
onPanelChange: this.onStartPanelChange, | ||
showDateInput: this.props.showDateInput, | ||
timePicker: timePicker, | ||
@@ -610,2 +615,3 @@ showTimePicker: showTimePicker, | ||
onPanelChange: this.onEndPanelChange, | ||
showDateInput: this.props.showDateInput, | ||
timePicker: timePicker, | ||
@@ -612,0 +618,0 @@ showTimePicker: showTimePicker, |
{ | ||
"name": "rc-calendar", | ||
"version": "9.4.0", | ||
"version": "9.5.0", | ||
"description": "React Calendar", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -340,2 +340,8 @@ # rc-calendar | ||
<tr> | ||
<td>onInputSelect</td> | ||
<td>Function(date: moment[])</td> | ||
<td></td> | ||
<td>called when a valid date entered in input</td> | ||
</tr> | ||
<tr> | ||
<td>onChange</td> | ||
@@ -359,2 +365,8 @@ <td>Function(date: moment[])</td> | ||
<tr> | ||
<td>showDateInput</td> | ||
<td>Boolean</td> | ||
<td>true</td> | ||
<td>whether to show date inputs on top of calendar panels</td> | ||
</tr> | ||
<tr> | ||
<td>type</td> | ||
@@ -361,0 +373,0 @@ <td>enum('both','start', 'end')</td> |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1422705
138
22116
699