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

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