@seafile/seafile-calendar 0.0.31-Apph0.37 → 0.0.31-Apph0.38

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.
@@ -2805,7 +2805,8 @@ var Calendar = function (_React$Component) {
2805
2805
  inputMode = props.inputMode,
2806
2806
  showHourAndMinute = props.showHourAndMinute,
2807
2807
  firstDayOfWeek = props.firstDayOfWeek,
2808
- showWeekNumber = props.showWeekNumber;
2808
+ showWeekNumber = props.showWeekNumber,
2809
+ defaultCalendarValue = props.defaultCalendarValue;
2809
2810
  var value = state.value,
2810
2811
  selectedValue = state.selectedValue,
2811
2812
  mode = state.mode;
@@ -2845,6 +2846,7 @@ var Calendar = function (_React$Component) {
2845
2846
  disabledDate: disabledDate,
2846
2847
  onClear: this.onClear,
2847
2848
  prefixCls: prefixCls,
2849
+ defaultCalendarValue: defaultCalendarValue,
2848
2850
  selectedValue: selectedValue,
2849
2851
  onChange: this.onDateInputChange,
2850
2852
  onSelect: this.onDateInputSelect,
@@ -2980,7 +2982,8 @@ Calendar.propTypes = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__
2980
2982
  inputMode: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string,
2981
2983
  onBlur: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,
2982
2984
  onClickRightPanelTime: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,
2983
- firstDayOfWeek: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string
2985
+ firstDayOfWeek: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string,
2986
+ defaultCalendarValue: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.object
2984
2987
  });
2985
2988
  Calendar.defaultProps = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, __WEBPACK_IMPORTED_MODULE_14__mixin_CalendarMixin__["a" /* calendarMixinDefaultProps */], __WEBPACK_IMPORTED_MODULE_15__mixin_CommonMixin__["b" /* defaultProp */], {
2986
2989
  showToday: true,
@@ -7390,7 +7393,7 @@ var _initialiseProps = function _initialiseProps() {
7390
7393
  };
7391
7394
 
7392
7395
  this.onInputChange = function (event) {
7393
- console.log(_this2.props);
7396
+ console.log(_this2.props.defaultCalendarValue);
7394
7397
  var str = event.target.value;
7395
7398
  var calendarStr = Object(__WEBPACK_IMPORTED_MODULE_9__util__["g" /* initializeStr */])(str, _this2.state.localFormat) || '';
7396
7399
  var _props = _this2.props,
@@ -7409,9 +7412,9 @@ var _initialiseProps = function _initialiseProps() {
7409
7412
  var parsed = __WEBPACK_IMPORTED_MODULE_8_dayjs___default()(calendarStr, format[0]);
7410
7413
  var value = _this2.props.value.clone();
7411
7414
  value = value.year(parsed.year()).month(parsed.month()).date(parsed.date()).hour(parsed.hour()).minute(parsed.minute()).second(parsed.second());
7412
- console.log('calendarStr', calendarStr);
7415
+ // console.log('calendarStr',calendarStr)
7413
7416
 
7414
- console.log('value', value);
7417
+ // console.log('value',value)
7415
7418
  if (!value || disabledDate && disabledDate(value)) {
7416
7419
  _this2.setState({ str: str });
7417
7420
  return;