@seafile/seafile-calendar 0.0.29-alpha75 → 0.0.29-alpha77

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.
@@ -6917,11 +6917,11 @@ var CalendarRightPanel = function (_React$Component) {
6917
6917
  locale = _props.locale;
6918
6918
 
6919
6919
  var selectedDate = value.format().slice(0, String(value.format()).indexOf('T'));
6920
- console.log('selectedDate', value, selectedDate);
6920
+ console.log('value', value);
6921
+ console.log('selectedDate', selectedDate);
6921
6922
  var highlight = this.state.highlightTime;
6922
6923
  var highlightTime = highlight ? highlight.format().slice(11, 16) : null;
6923
6924
  var isZhcn = locale && locale.today === '今天';
6924
- console.log('1111', '' + selectedDate);
6925
6925
  return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(
6926
6926
  'div',
6927
6927
  { className: prefixCls + '-right-panel' },
@@ -6938,7 +6938,7 @@ var CalendarRightPanel = function (_React$Component) {
6938
6938
  null,
6939
6939
  this.times.map(function (time) {
6940
6940
  var parts = Object(__WEBPACK_IMPORTED_MODULE_6__util__["d" /* formatDateLocal */])(selectedDate, _this2.state.localeFormat);
6941
- var current = __WEBPACK_IMPORTED_MODULE_5_dayjs___default()(selectedDate + ' ' + time).year(parts[0]).month(parts[1] - 1).date(parts[2]);
6941
+ var current = __WEBPACK_IMPORTED_MODULE_5_dayjs___default()(selectedDate + ' ' + time).year(parts[0]).month(parts[1] - 1).date(parts[2]); // eslint-disable-line max-len
6942
6942
  current = isZhcn ? current.locale('zh-cn') : current.locale('en-gb');
6943
6943
  return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(
6944
6944
  'li',
@@ -6971,7 +6971,6 @@ CalendarRightPanel.propTypes = {
6971
6971
  locale: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object,
6972
6972
  defaultMinutesTime: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string,
6973
6973
  format: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string)])
6974
-
6975
6974
  };
6976
6975
  /* harmony default export */ __webpack_exports__["a"] = (CalendarRightPanel);
6977
6976
 
@@ -7359,6 +7358,7 @@ var DateInput = function (_React$Component) {
7359
7358
  }
7360
7359
  }
7361
7360
  }
7361
+
7362
7362
  return newState;
7363
7363
  };
7364
7364
 
@@ -7387,7 +7387,7 @@ var DateInput = function (_React$Component) {
7387
7387
  value: str,
7388
7388
  disabled: props.disabled,
7389
7389
  placeholder: placeholder,
7390
- onChange: this.onInputChangeAll,
7390
+ onChange: this.onInputChange,
7391
7391
  onKeyDown: this.onKeyDown,
7392
7392
  onFocus: this.onFocus,
7393
7393
  onBlur: this.onBlur,
@@ -7437,7 +7437,8 @@ var _initialiseProps = function _initialiseProps() {
7437
7437
  _this2.props.onClear(null);
7438
7438
  };
7439
7439
 
7440
- this.onInputChange = function (str) {
7440
+ this.onInputChange = function (event) {
7441
+ var str = event.target.value;
7441
7442
  var cananderStr = Object(__WEBPACK_IMPORTED_MODULE_9__util__["l" /* normalizeDateInput */])(str, _this2.state.localeFormat, _this2.state.delimiter);
7442
7443
  var _props = _this2.props,
7443
7444
  disabledDate = _props.disabledDate,
@@ -7475,17 +7476,11 @@ var _initialiseProps = function _initialiseProps() {
7475
7476
  }
7476
7477
 
7477
7478
  if (selectedValue !== value || selectedValue && value && !selectedValue.isSame(value)) {
7478
- // console.log(123)
7479
7479
  _this2.setState({ str: str });
7480
7480
  onChange(value);
7481
7481
  }
7482
7482
  };
7483
7483
 
7484
- this.onInputChangeAll = function (event) {
7485
- var str = event.target.value;
7486
- _this2.onInputChange(str);
7487
- };
7488
-
7489
7484
  this.onFocus = function () {
7490
7485
  _this2.setState({ hasFocus: true });
7491
7486
  };