@seafile/seafile-calendar 0.0.31 → 0.0.32-alpha.jh6

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.
Files changed (163) hide show
  1. package/dist/rc-calendar.js +69 -49
  2. package/dist/rc-calendar.js.map +1 -1
  3. package/dist/rc-calendar.min.js +1 -1
  4. package/package.json +1 -1
  5. package/assets/index.css +0 -1177
  6. package/es/Calendar.js +0 -443
  7. package/es/FullCalendar.js +0 -182
  8. package/es/MonthCalendar.js +0 -135
  9. package/es/Picker.js +0 -245
  10. package/es/RangeCalendar.js +0 -876
  11. package/es/calendar/CalendarFooter.js +0 -93
  12. package/es/calendar/CalendarHeader.js +0 -257
  13. package/es/calendar/CalendarRightPanel.js +0 -126
  14. package/es/calendar/OkButton.js +0 -22
  15. package/es/calendar/TimePickerButton.js +0 -28
  16. package/es/calendar/TodayButton.js +0 -28
  17. package/es/date/DateConstants.js +0 -19
  18. package/es/date/DateInput.js +0 -210
  19. package/es/date/DateTBody.js +0 -280
  20. package/es/date/DateTHead.js +0 -86
  21. package/es/date/DateTable.js +0 -32
  22. package/es/decade/DecadePanel.js +0 -181
  23. package/es/full-calendar/CalendarHeader.js +0 -180
  24. package/es/index.js +0 -3
  25. package/es/locale/ar_EG.js +0 -27
  26. package/es/locale/bg_BG.js +0 -27
  27. package/es/locale/ca_ES.js +0 -27
  28. package/es/locale/cs_CZ.js +0 -27
  29. package/es/locale/da_DK.js +0 -27
  30. package/es/locale/de_DE.js +0 -27
  31. package/es/locale/el_GR.js +0 -27
  32. package/es/locale/en_GB.js +0 -27
  33. package/es/locale/en_US.js +0 -28
  34. package/es/locale/es_ES.js +0 -27
  35. package/es/locale/et_EE.js +0 -27
  36. package/es/locale/fa_IR.js +0 -27
  37. package/es/locale/fi_FI.js +0 -27
  38. package/es/locale/fr_BE.js +0 -27
  39. package/es/locale/fr_FR.js +0 -27
  40. package/es/locale/he_IL.js +0 -28
  41. package/es/locale/hi_IN.js +0 -28
  42. package/es/locale/hr_HR.js +0 -28
  43. package/es/locale/hu_HU.js +0 -27
  44. package/es/locale/id_ID.js +0 -28
  45. package/es/locale/is_IS.js +0 -27
  46. package/es/locale/it_IT.js +0 -27
  47. package/es/locale/ja_JP.js +0 -26
  48. package/es/locale/kn_IN.js +0 -28
  49. package/es/locale/ko_KR.js +0 -27
  50. package/es/locale/ku_IQ.js +0 -27
  51. package/es/locale/lv_LV.js +0 -27
  52. package/es/locale/mm_MM.js +0 -28
  53. package/es/locale/mn_MN.js +0 -28
  54. package/es/locale/ms_MY.js +0 -27
  55. package/es/locale/nb_NO.js +0 -27
  56. package/es/locale/nl_BE.js +0 -27
  57. package/es/locale/nl_NL.js +0 -27
  58. package/es/locale/pl_PL.js +0 -27
  59. package/es/locale/pt_BR.js +0 -27
  60. package/es/locale/pt_PT.js +0 -27
  61. package/es/locale/ro_RO.js +0 -28
  62. package/es/locale/ru_RU.js +0 -27
  63. package/es/locale/sk_SK.js +0 -27
  64. package/es/locale/sl_SI.js +0 -27
  65. package/es/locale/sr_RS.js +0 -27
  66. package/es/locale/sv_SE.js +0 -27
  67. package/es/locale/ta_IN.js +0 -28
  68. package/es/locale/th_TH.js +0 -27
  69. package/es/locale/tr_TR.js +0 -27
  70. package/es/locale/ug_CN.js +0 -26
  71. package/es/locale/uk_UA.js +0 -27
  72. package/es/locale/vi_VN.js +0 -28
  73. package/es/locale/zh_CN.js +0 -27
  74. package/es/locale/zh_TW.js +0 -26
  75. package/es/mixin/CalendarMixin.js +0 -123
  76. package/es/mixin/CommonMixin.js +0 -85
  77. package/es/month/MonthPanel.js +0 -154
  78. package/es/month/MonthTable.js +0 -156
  79. package/es/picker/placements.js +0 -35
  80. package/es/range-calendar/CalendarPart.js +0 -151
  81. package/es/util/dayjs.js +0 -17
  82. package/es/util/index.js +0 -545
  83. package/es/util/toTime.js +0 -21
  84. package/es/year/YearPanel.js +0 -194
  85. package/lib/Calendar.js +0 -506
  86. package/lib/FullCalendar.js +0 -221
  87. package/lib/MonthCalendar.js +0 -172
  88. package/lib/Picker.js +0 -282
  89. package/lib/RangeCalendar.js +0 -925
  90. package/lib/calendar/CalendarFooter.js +0 -134
  91. package/lib/calendar/CalendarHeader.js +0 -290
  92. package/lib/calendar/CalendarRightPanel.js +0 -151
  93. package/lib/calendar/OkButton.js +0 -32
  94. package/lib/calendar/TimePickerButton.js +0 -41
  95. package/lib/calendar/TodayButton.js +0 -39
  96. package/lib/date/DateConstants.js +0 -23
  97. package/lib/date/DateInput.js +0 -243
  98. package/lib/date/DateTBody.js +0 -307
  99. package/lib/date/DateTHead.js +0 -106
  100. package/lib/date/DateTable.js +0 -54
  101. package/lib/decade/DecadePanel.js +0 -207
  102. package/lib/full-calendar/CalendarHeader.js +0 -201
  103. package/lib/index.js +0 -12
  104. package/lib/locale/ar_EG.js +0 -31
  105. package/lib/locale/bg_BG.js +0 -31
  106. package/lib/locale/ca_ES.js +0 -31
  107. package/lib/locale/cs_CZ.js +0 -31
  108. package/lib/locale/da_DK.js +0 -31
  109. package/lib/locale/de_DE.js +0 -31
  110. package/lib/locale/el_GR.js +0 -31
  111. package/lib/locale/en_GB.js +0 -31
  112. package/lib/locale/en_US.js +0 -32
  113. package/lib/locale/es_ES.js +0 -31
  114. package/lib/locale/et_EE.js +0 -31
  115. package/lib/locale/fa_IR.js +0 -31
  116. package/lib/locale/fi_FI.js +0 -31
  117. package/lib/locale/fr_BE.js +0 -31
  118. package/lib/locale/fr_FR.js +0 -31
  119. package/lib/locale/he_IL.js +0 -32
  120. package/lib/locale/hi_IN.js +0 -32
  121. package/lib/locale/hr_HR.js +0 -32
  122. package/lib/locale/hu_HU.js +0 -31
  123. package/lib/locale/id_ID.js +0 -32
  124. package/lib/locale/is_IS.js +0 -31
  125. package/lib/locale/it_IT.js +0 -31
  126. package/lib/locale/ja_JP.js +0 -30
  127. package/lib/locale/kn_IN.js +0 -32
  128. package/lib/locale/ko_KR.js +0 -31
  129. package/lib/locale/ku_IQ.js +0 -31
  130. package/lib/locale/lv_LV.js +0 -31
  131. package/lib/locale/mm_MM.js +0 -32
  132. package/lib/locale/mn_MN.js +0 -32
  133. package/lib/locale/ms_MY.js +0 -31
  134. package/lib/locale/nb_NO.js +0 -31
  135. package/lib/locale/nl_BE.js +0 -31
  136. package/lib/locale/nl_NL.js +0 -31
  137. package/lib/locale/pl_PL.js +0 -31
  138. package/lib/locale/pt_BR.js +0 -31
  139. package/lib/locale/pt_PT.js +0 -31
  140. package/lib/locale/ro_RO.js +0 -32
  141. package/lib/locale/ru_RU.js +0 -31
  142. package/lib/locale/sk_SK.js +0 -31
  143. package/lib/locale/sl_SI.js +0 -31
  144. package/lib/locale/sr_RS.js +0 -31
  145. package/lib/locale/sv_SE.js +0 -31
  146. package/lib/locale/ta_IN.js +0 -32
  147. package/lib/locale/th_TH.js +0 -31
  148. package/lib/locale/tr_TR.js +0 -31
  149. package/lib/locale/ug_CN.js +0 -30
  150. package/lib/locale/uk_UA.js +0 -31
  151. package/lib/locale/vi_VN.js +0 -32
  152. package/lib/locale/zh_CN.js +0 -31
  153. package/lib/locale/zh_TW.js +0 -30
  154. package/lib/mixin/CalendarMixin.js +0 -153
  155. package/lib/mixin/CommonMixin.js +0 -106
  156. package/lib/month/MonthPanel.js +0 -179
  157. package/lib/month/MonthTable.js +0 -181
  158. package/lib/picker/placements.js +0 -39
  159. package/lib/range-calendar/CalendarPart.js +0 -184
  160. package/lib/util/dayjs.js +0 -46
  161. package/lib/util/index.js +0 -580
  162. package/lib/util/toTime.js +0 -28
  163. package/lib/year/YearPanel.js +0 -219
@@ -180,7 +180,7 @@ if (process.env.NODE_ENV !== 'production') {
180
180
  module.exports = __webpack_require__(106)();
181
181
  }
182
182
 
183
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(19)))
183
+ /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(20)))
184
184
 
185
185
  /***/ }),
186
186
  /* 5 */
@@ -207,7 +207,7 @@ if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
207
207
  /***/ (function(module, exports, __webpack_require__) {
208
208
 
209
209
  // Thank's IE8 for his funny defineProperty
210
- module.exports = !__webpack_require__(18)(function () {
210
+ module.exports = !__webpack_require__(19)(function () {
211
211
  return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
212
212
  });
213
213
 
@@ -338,7 +338,7 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
338
338
  /* harmony export (immutable) */ __webpack_exports__["g"] = initializeStr;
339
339
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(26);
340
340
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);
341
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_dayjs__ = __webpack_require__(20);
341
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_dayjs__ = __webpack_require__(16);
342
342
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_dayjs___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_dayjs__);
343
343
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_dayjs_plugin_utc__ = __webpack_require__(58);
344
344
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_dayjs_plugin_utc___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_dayjs_plugin_utc__);
@@ -822,7 +822,7 @@ function initializeStr(str, format) {
822
822
  return '' + _day10 + dateDelimater + _month10 + dateDelimater + _year10;
823
823
  } else if (inputStrLength >= 1 && inputStrLength <= 8) {
824
824
  var _dateStr6 = inputStr.slice(0, 2);
825
- var _monthStr6 = inputStr.slice(2, 4);
825
+ var _monthStr6 = inputStr.slice(2, 4) || getCurrentMonth();
826
826
  var _yearStr6 = inputStr.slice(4, inputStr.length);
827
827
  var _validateYear11 = validateCalendarYear(_yearStr6);
828
828
 
@@ -866,7 +866,7 @@ function initializeStr(str, format) {
866
866
  return '' + _day12 + dateDelimater + _month12 + dateDelimater + _year12 + ' ' + time;
867
867
  } else if (_datePart2.length >= 1 && _datePart2.length <= 8) {
868
868
  var _dateStr7 = _datePart2.slice(0, 2);
869
- var _monthStr7 = _datePart2.slice(2, 4);
869
+ var _monthStr7 = _datePart2.slice(2, 4) || getCurrentMonth();
870
870
  var _yearStr7 = _datePart2.slice(4, _datePart2.length);
871
871
  var _timeParts2 = tokenizeFormattedDate(inputStr, format);
872
872
  time = validateTime(_timeParts2[1] + ':' + _timeParts2[2]);
@@ -906,7 +906,7 @@ module.exports = __webpack_require__(7) ? function (object, key, value) {
906
906
  /* 12 */
907
907
  /***/ (function(module, exports, __webpack_require__) {
908
908
 
909
- var anObject = __webpack_require__(17);
909
+ var anObject = __webpack_require__(18);
910
910
  var IE8_DOM_DEFINE = __webpack_require__(44);
911
911
  var toPrimitive = __webpack_require__(27);
912
912
  var dP = Object.defineProperty;
@@ -966,6 +966,12 @@ $exports.store = store;
966
966
  /* 16 */
967
967
  /***/ (function(module, exports, __webpack_require__) {
968
968
 
969
+ !function(t,e){ true?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).dayjs=e()}(this,(function(){"use strict";var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",f="month",h="quarter",c="year",d="date",$="Invalid Date",l=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},g={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,f),s=n-i<0,u=e.clone().add(r+(s?-1:1),f);return+(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:f,y:c,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:h}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},D="en",v={};v[D]=M;var p=function(t){return t instanceof _},S=function(t,e,n){var r;if(!t)return D;if("string"==typeof t)v[t]&&(r=t),e&&(v[t]=e,r=t);else{var i=t.name;v[i]=t,r=i}return!n&&r&&(D=r),r||!n&&D},w=function(t,e){if(p(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},O=g;O.l=S,O.i=p,O.w=function(t,e){return w(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=S(t.locale,null,!0),this.parse(t)}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(O.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(l);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return O},m.isValid=function(){return!(this.$d.toString()===$)},m.isSame=function(t,e){var n=w(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return w(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<w(t)},m.$g=function(t,e,n){return O.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!O.u(e)||e,h=O.p(t),$=function(t,e){var i=O.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},l=function(t,e){return O.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,g="set"+(this.$u?"UTC":"");switch(h){case c:return r?$(1,0):$(31,11);case f:return r?$(1,M):$(0,M+1);case o:var D=this.$locale().weekStart||0,v=(y<D?y+7:y)-D;return $(r?m-v:m+(6-v),M);case a:case d:return l(g+"Hours",0);case u:return l(g+"Minutes",1);case s:return l(g+"Seconds",2);case i:return l(g+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=O.p(t),h="set"+(this.$u?"UTC":""),$=(n={},n[a]=h+"Date",n[d]=h+"Date",n[f]=h+"Month",n[c]=h+"FullYear",n[u]=h+"Hours",n[s]=h+"Minutes",n[i]=h+"Seconds",n[r]=h+"Milliseconds",n)[o],l=o===a?this.$D+(e-this.$W):e;if(o===f||o===c){var y=this.clone().set(d,1);y.$d[$](l),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d}else $&&this.$d[$](l);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[O.p(t)]()},m.add=function(r,h){var d,$=this;r=Number(r);var l=O.p(h),y=function(t){var e=w($);return O.w(e.date(e.date()+Math.round(t*r)),$)};if(l===f)return this.set(f,this.$M+r);if(l===c)return this.set(c,this.$y+r);if(l===a)return y(1);if(l===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[l]||1,m=this.$d.getTime()+r*M;return O.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||$;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=O.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,f=n.months,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].substr(0,s)},c=function(t){return O.s(s%12||12,t,"0")},d=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},l={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:O.s(a+1,2,"0"),MMM:h(n.monthsShort,a,f,3),MMMM:h(f,a),D:this.$D,DD:O.s(this.$D,2,"0"),d:String(this.$W),dd:h(n.weekdaysMin,this.$W,o,2),ddd:h(n.weekdaysShort,this.$W,o,3),dddd:o[this.$W],H:String(s),HH:O.s(s,2,"0"),h:c(1),hh:c(2),a:d(s,u,!0),A:d(s,u,!1),m:String(u),mm:O.s(u,2,"0"),s:String(this.$s),ss:O.s(this.$s,2,"0"),SSS:O.s(this.$ms,3,"0"),Z:i};return r.replace(y,(function(t,e){return e||l[t]||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,$){var l,y=O.p(d),M=w(r),m=(M.utcOffset()-this.utcOffset())*e,g=this-M,D=O.m(this,M);return D=(l={},l[c]=D/12,l[f]=D,l[h]=D/3,l[o]=(g-m)/6048e5,l[a]=(g-m)/864e5,l[u]=g/n,l[s]=g/e,l[i]=g/t,l)[y]||g,$?D:O.a(D)},m.daysInMonth=function(){return this.endOf(f).$D},m.$locale=function(){return v[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=S(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return O.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),b=_.prototype;return w.prototype=b,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",f],["$y",c],["$D",d]].forEach((function(t){b[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),w.extend=function(t,e){return t.$i||(t(e,_,w),t.$i=!0),w},w.locale=S,w.isDayjs=p,w.unix=function(t){return w(1e3*t)},w.en=v[D],w.Ls=v,w.p={},w}));
970
+
971
+ /***/ }),
972
+ /* 17 */
973
+ /***/ (function(module, exports, __webpack_require__) {
974
+
969
975
  var global = __webpack_require__(5);
970
976
  var core = __webpack_require__(6);
971
977
  var ctx = __webpack_require__(43);
@@ -1031,7 +1037,7 @@ module.exports = $export;
1031
1037
 
1032
1038
 
1033
1039
  /***/ }),
1034
- /* 17 */
1040
+ /* 18 */
1035
1041
  /***/ (function(module, exports, __webpack_require__) {
1036
1042
 
1037
1043
  var isObject = __webpack_require__(13);
@@ -1042,7 +1048,7 @@ module.exports = function (it) {
1042
1048
 
1043
1049
 
1044
1050
  /***/ }),
1045
- /* 18 */
1051
+ /* 19 */
1046
1052
  /***/ (function(module, exports) {
1047
1053
 
1048
1054
  module.exports = function (exec) {
@@ -1055,7 +1061,7 @@ module.exports = function (exec) {
1055
1061
 
1056
1062
 
1057
1063
  /***/ }),
1058
- /* 19 */
1064
+ /* 20 */
1059
1065
  /***/ (function(module, exports) {
1060
1066
 
1061
1067
  // shim for using process in browser
@@ -1244,12 +1250,6 @@ process.chdir = function (dir) {
1244
1250
  process.umask = function() { return 0; };
1245
1251
 
1246
1252
 
1247
- /***/ }),
1248
- /* 20 */
1249
- /***/ (function(module, exports, __webpack_require__) {
1250
-
1251
- !function(t,e){ true?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).dayjs=e()}(this,(function(){"use strict";var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",f="month",h="quarter",c="year",d="date",$="Invalid Date",l=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},g={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,f),s=n-i<0,u=e.clone().add(r+(s?-1:1),f);return+(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:f,y:c,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:h}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},D="en",v={};v[D]=M;var p=function(t){return t instanceof _},S=function(t,e,n){var r;if(!t)return D;if("string"==typeof t)v[t]&&(r=t),e&&(v[t]=e,r=t);else{var i=t.name;v[i]=t,r=i}return!n&&r&&(D=r),r||!n&&D},w=function(t,e){if(p(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},O=g;O.l=S,O.i=p,O.w=function(t,e){return w(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=S(t.locale,null,!0),this.parse(t)}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(O.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(l);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return O},m.isValid=function(){return!(this.$d.toString()===$)},m.isSame=function(t,e){var n=w(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return w(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<w(t)},m.$g=function(t,e,n){return O.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!O.u(e)||e,h=O.p(t),$=function(t,e){var i=O.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},l=function(t,e){return O.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,g="set"+(this.$u?"UTC":"");switch(h){case c:return r?$(1,0):$(31,11);case f:return r?$(1,M):$(0,M+1);case o:var D=this.$locale().weekStart||0,v=(y<D?y+7:y)-D;return $(r?m-v:m+(6-v),M);case a:case d:return l(g+"Hours",0);case u:return l(g+"Minutes",1);case s:return l(g+"Seconds",2);case i:return l(g+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=O.p(t),h="set"+(this.$u?"UTC":""),$=(n={},n[a]=h+"Date",n[d]=h+"Date",n[f]=h+"Month",n[c]=h+"FullYear",n[u]=h+"Hours",n[s]=h+"Minutes",n[i]=h+"Seconds",n[r]=h+"Milliseconds",n)[o],l=o===a?this.$D+(e-this.$W):e;if(o===f||o===c){var y=this.clone().set(d,1);y.$d[$](l),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d}else $&&this.$d[$](l);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[O.p(t)]()},m.add=function(r,h){var d,$=this;r=Number(r);var l=O.p(h),y=function(t){var e=w($);return O.w(e.date(e.date()+Math.round(t*r)),$)};if(l===f)return this.set(f,this.$M+r);if(l===c)return this.set(c,this.$y+r);if(l===a)return y(1);if(l===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[l]||1,m=this.$d.getTime()+r*M;return O.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||$;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=O.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,f=n.months,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].substr(0,s)},c=function(t){return O.s(s%12||12,t,"0")},d=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},l={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:O.s(a+1,2,"0"),MMM:h(n.monthsShort,a,f,3),MMMM:h(f,a),D:this.$D,DD:O.s(this.$D,2,"0"),d:String(this.$W),dd:h(n.weekdaysMin,this.$W,o,2),ddd:h(n.weekdaysShort,this.$W,o,3),dddd:o[this.$W],H:String(s),HH:O.s(s,2,"0"),h:c(1),hh:c(2),a:d(s,u,!0),A:d(s,u,!1),m:String(u),mm:O.s(u,2,"0"),s:String(this.$s),ss:O.s(this.$s,2,"0"),SSS:O.s(this.$ms,3,"0"),Z:i};return r.replace(y,(function(t,e){return e||l[t]||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,$){var l,y=O.p(d),M=w(r),m=(M.utcOffset()-this.utcOffset())*e,g=this-M,D=O.m(this,M);return D=(l={},l[c]=D/12,l[f]=D,l[h]=D/3,l[o]=(g-m)/6048e5,l[a]=(g-m)/864e5,l[u]=g/n,l[s]=g/e,l[i]=g/t,l)[y]||g,$?D:O.a(D)},m.daysInMonth=function(){return this.endOf(f).$D},m.$locale=function(){return v[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=S(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return O.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),b=_.prototype;return w.prototype=b,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",f],["$y",c],["$D",d]].forEach((function(t){b[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),w.extend=function(t,e){return t.$i||(t(e,_,w),t.$i=!0),w},w.locale=S,w.isDayjs=p,w.unix=function(t){return w(1e3*t)},w.en=v[D],w.Ls=v,w.p={},w}));
1252
-
1253
1253
  /***/ }),
1254
1254
  /* 21 */
1255
1255
  /***/ (function(module, exports) {
@@ -1441,7 +1441,7 @@ module.exports = {};
1441
1441
  /***/ (function(module, exports, __webpack_require__) {
1442
1442
 
1443
1443
  // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
1444
- var anObject = __webpack_require__(17);
1444
+ var anObject = __webpack_require__(18);
1445
1445
  var dPs = __webpack_require__(77);
1446
1446
  var enumBugKeys = __webpack_require__(32);
1447
1447
  var IE_PROTO = __webpack_require__(30)('IE_PROTO');
@@ -1739,7 +1739,7 @@ module.exports = function (fn, that, length) {
1739
1739
  /* 44 */
1740
1740
  /***/ (function(module, exports, __webpack_require__) {
1741
1741
 
1742
- module.exports = !__webpack_require__(7) && !__webpack_require__(18)(function () {
1742
+ module.exports = !__webpack_require__(7) && !__webpack_require__(19)(function () {
1743
1743
  return Object.defineProperty(__webpack_require__(45)('div'), 'a', { get: function () { return 7; } }).a != 7;
1744
1744
  });
1745
1745
 
@@ -1837,7 +1837,7 @@ exports.default = typeof _symbol2.default === "function" && _typeof(_iterator2.d
1837
1837
  "use strict";
1838
1838
 
1839
1839
  var LIBRARY = __webpack_require__(23);
1840
- var $export = __webpack_require__(16);
1840
+ var $export = __webpack_require__(17);
1841
1841
  var redefine = __webpack_require__(51);
1842
1842
  var hide = __webpack_require__(11);
1843
1843
  var Iterators = __webpack_require__(35);
@@ -1961,7 +1961,7 @@ if (process.env.NODE_ENV === 'production') {
1961
1961
  module.exports = __webpack_require__(102);
1962
1962
  }
1963
1963
 
1964
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(19)))
1964
+ /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(20)))
1965
1965
 
1966
1966
  /***/ }),
1967
1967
  /* 55 */
@@ -2695,7 +2695,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
2695
2695
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_prop_types__);
2696
2696
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_rc_util_es_KeyCode__ = __webpack_require__(56);
2697
2697
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_react_lifecycles_compat__ = __webpack_require__(42);
2698
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_dayjs__ = __webpack_require__(20);
2698
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_dayjs__ = __webpack_require__(16);
2699
2699
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_dayjs___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_dayjs__);
2700
2700
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__date_DateTable__ = __webpack_require__(107);
2701
2701
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__calendar_CalendarHeader__ = __webpack_require__(110);
@@ -2760,7 +2760,8 @@ var Calendar = function (_React$Component) {
2760
2760
  _this.state = {
2761
2761
  mode: _this.props.mode || 'date',
2762
2762
  value: getMomentObjectIfValid(props.value) || getMomentObjectIfValid(props.defaultValue) || __WEBPACK_IMPORTED_MODULE_9_dayjs___default()(),
2763
- selectedValue: props.selectedValue || props.defaultSelectedValue
2763
+ selectedValue: props.selectedValue || props.defaultSelectedValue,
2764
+ currentStatus: 'selectDateTime'
2764
2765
  };
2765
2766
  return _this;
2766
2767
  }
@@ -2808,7 +2809,8 @@ var Calendar = function (_React$Component) {
2808
2809
  showWeekNumber = props.showWeekNumber;
2809
2810
  var value = state.value,
2810
2811
  selectedValue = state.selectedValue,
2811
- mode = state.mode;
2812
+ mode = state.mode,
2813
+ currentStatus = state.currentStatus;
2812
2814
 
2813
2815
  var showTimePicker = mode === 'time';
2814
2816
  var disabledTimeConfig = showTimePicker && disabledTime && timePicker ? Object(__WEBPACK_IMPORTED_MODULE_17__util__["c" /* getTimeConfig */])(selectedValue, disabledTime) : null;
@@ -2833,9 +2835,10 @@ var Calendar = function (_React$Component) {
2833
2835
  timePickerEle = __WEBPACK_IMPORTED_MODULE_4_react___default.a.cloneElement(timePicker, timePickerProps);
2834
2836
  }
2835
2837
  var calendarInputPlaceholder = dateInputPlaceholder || (Array.isArray(this.getFormat()) ? this.getFormat()[0] : this.getFormat());
2838
+ var inputFormat = Array.isArray(this.getFormat()) ? this.getFormat() : [this.getFormat()];
2836
2839
 
2837
2840
  var dateInputElement = props.showDateInput ? __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_16__date_DateInput__["a" /* default */], {
2838
- format: this.getFormat(),
2841
+ format: inputFormat,
2839
2842
  key: 'date-input',
2840
2843
  value: value,
2841
2844
  locale: locale,
@@ -2900,7 +2903,8 @@ var Calendar = function (_React$Component) {
2900
2903
  onSelect: this.onDateTableSelect,
2901
2904
  disabledDate: disabledDate,
2902
2905
  showWeekNumber: showWeekNumber,
2903
- firstDayOfWeek: firstDayOfWeek
2906
+ firstDayOfWeek: firstDayOfWeek,
2907
+ currentStatus: currentStatus
2904
2908
  })
2905
2909
  ),
2906
2910
  __WEBPACK_IMPORTED_MODULE_4_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_12__calendar_CalendarFooter__["a" /* default */], {
@@ -2932,7 +2936,7 @@ var Calendar = function (_React$Component) {
2932
2936
  onSelect: this.onDateTableSelect,
2933
2937
  onClickRightPanelTime: onClickRightPanelTime,
2934
2938
  defaultMinutesTime: this.props.defaultMinutesTime,
2935
- format: this.getFormat()
2939
+ format: inputFormat
2936
2940
  })
2937
2941
  )
2938
2942
  ));
@@ -3075,6 +3079,7 @@ var _initialiseProps = function _initialiseProps() {
3075
3079
  this.onClear = function () {
3076
3080
  _this2.onSelect(null);
3077
3081
  _this2.props.onClear();
3082
+ _this2.setState({ currentStatus: 'todayTime' });
3078
3083
  };
3079
3084
 
3080
3085
  this.onOk = function () {
@@ -3101,6 +3106,7 @@ var _initialiseProps = function _initialiseProps() {
3101
3106
  var timePicker = _this2.props.timePicker;
3102
3107
  var selectedValue = _this2.state.selectedValue;
3103
3108
 
3109
+ _this2.setState({ currentStatus: 'selectDateTime' });
3104
3110
  if (!selectedValue && timePicker) {
3105
3111
  var timePickerDefaultValue = timePicker.props.defaultValue;
3106
3112
  if (timePickerDefaultValue) {
@@ -3175,7 +3181,7 @@ module.exports = __webpack_require__(6).Object.assign;
3175
3181
  /***/ (function(module, exports, __webpack_require__) {
3176
3182
 
3177
3183
  // 19.1.3.1 Object.assign(target, source)
3178
- var $export = __webpack_require__(16);
3184
+ var $export = __webpack_require__(17);
3179
3185
 
3180
3186
  $export($export.S + $export.F, 'Object', { assign: __webpack_require__(68) });
3181
3187
 
@@ -3206,7 +3212,7 @@ var IObject = __webpack_require__(47);
3206
3212
  var $assign = Object.assign;
3207
3213
 
3208
3214
  // should work with symbols and should have deterministic property order (V8 bug)
3209
- module.exports = !$assign || __webpack_require__(18)(function () {
3215
+ module.exports = !$assign || __webpack_require__(19)(function () {
3210
3216
  var A = {};
3211
3217
  var B = {};
3212
3218
  // eslint-disable-next-line no-undef
@@ -3376,7 +3382,7 @@ module.exports = function (Constructor, NAME, next) {
3376
3382
  /***/ (function(module, exports, __webpack_require__) {
3377
3383
 
3378
3384
  var dP = __webpack_require__(12);
3379
- var anObject = __webpack_require__(17);
3385
+ var anObject = __webpack_require__(18);
3380
3386
  var getKeys = __webpack_require__(22);
3381
3387
 
3382
3388
  module.exports = __webpack_require__(7) ? Object.defineProperties : function defineProperties(O, Properties) {
@@ -3526,10 +3532,10 @@ module.exports = __webpack_require__(6).Symbol;
3526
3532
  var global = __webpack_require__(5);
3527
3533
  var has = __webpack_require__(8);
3528
3534
  var DESCRIPTORS = __webpack_require__(7);
3529
- var $export = __webpack_require__(16);
3535
+ var $export = __webpack_require__(17);
3530
3536
  var redefine = __webpack_require__(51);
3531
3537
  var META = __webpack_require__(87).KEY;
3532
- var $fails = __webpack_require__(18);
3538
+ var $fails = __webpack_require__(19);
3533
3539
  var shared = __webpack_require__(31);
3534
3540
  var setToStringTag = __webpack_require__(37);
3535
3541
  var uid = __webpack_require__(24);
@@ -3538,7 +3544,7 @@ var wksExt = __webpack_require__(38);
3538
3544
  var wksDefine = __webpack_require__(39);
3539
3545
  var enumKeys = __webpack_require__(88);
3540
3546
  var isArray = __webpack_require__(89);
3541
- var anObject = __webpack_require__(17);
3547
+ var anObject = __webpack_require__(18);
3542
3548
  var isObject = __webpack_require__(13);
3543
3549
  var toObject = __webpack_require__(34);
3544
3550
  var toIObject = __webpack_require__(14);
@@ -3781,7 +3787,7 @@ var id = 0;
3781
3787
  var isExtensible = Object.isExtensible || function () {
3782
3788
  return true;
3783
3789
  };
3784
- var FREEZE = !__webpack_require__(18)(function () {
3790
+ var FREEZE = !__webpack_require__(19)(function () {
3785
3791
  return isExtensible(Object.preventExtensions({}));
3786
3792
  });
3787
3793
  var setMeta = function (it) {
@@ -3924,7 +3930,7 @@ module.exports = __webpack_require__(6).Object.setPrototypeOf;
3924
3930
  /***/ (function(module, exports, __webpack_require__) {
3925
3931
 
3926
3932
  // 19.1.3.19 Object.setPrototypeOf(O, proto)
3927
- var $export = __webpack_require__(16);
3933
+ var $export = __webpack_require__(17);
3928
3934
  $export($export.S, 'Object', { setPrototypeOf: __webpack_require__(97).set });
3929
3935
 
3930
3936
 
@@ -3935,7 +3941,7 @@ $export($export.S, 'Object', { setPrototypeOf: __webpack_require__(97).set });
3935
3941
  // Works with __proto__ only. Old v8 can't work with null proto objects.
3936
3942
  /* eslint-disable no-proto */
3937
3943
  var isObject = __webpack_require__(13);
3938
- var anObject = __webpack_require__(17);
3944
+ var anObject = __webpack_require__(18);
3939
3945
  var check = function (O, proto) {
3940
3946
  anObject(O);
3941
3947
  if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!");
@@ -3980,7 +3986,7 @@ module.exports = function create(P, D) {
3980
3986
  /* 100 */
3981
3987
  /***/ (function(module, exports, __webpack_require__) {
3982
3988
 
3983
- var $export = __webpack_require__(16);
3989
+ var $export = __webpack_require__(17);
3984
3990
  // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
3985
3991
  $export($export.S, 'Object', { create: __webpack_require__(36) });
3986
3992
 
@@ -4194,7 +4200,7 @@ exports.typeOf = typeOf;
4194
4200
  })();
4195
4201
  }
4196
4202
 
4197
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(19)))
4203
+ /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(20)))
4198
4204
 
4199
4205
  /***/ }),
4200
4206
  /* 103 */
@@ -4812,7 +4818,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
4812
4818
  return ReactPropTypes;
4813
4819
  };
4814
4820
 
4815
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(19)))
4821
+ /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(20)))
4816
4822
 
4817
4823
  /***/ }),
4818
4824
  /* 104 */
@@ -5020,7 +5026,7 @@ checkPropTypes.resetWarningCache = function() {
5020
5026
 
5021
5027
  module.exports = checkPropTypes;
5022
5028
 
5023
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(19)))
5029
+ /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(20)))
5024
5030
 
5025
5031
  /***/ }),
5026
5032
  /* 106 */
@@ -5262,6 +5268,9 @@ var DateTHead = function (_React$Component) {
5262
5268
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__);
5263
5269
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__DateConstants__ = __webpack_require__(57);
5264
5270
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__util___ = __webpack_require__(10);
5271
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_dayjs__ = __webpack_require__(16);
5272
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_dayjs___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_dayjs__);
5273
+
5265
5274
 
5266
5275
 
5267
5276
 
@@ -5316,7 +5325,8 @@ var DateTBody = function (_React$Component) {
5316
5325
  dateRender = props.dateRender,
5317
5326
  disabledDate = props.disabledDate,
5318
5327
  hoverValue = props.hoverValue,
5319
- firstDayOfWeek = props.firstDayOfWeek;
5328
+ firstDayOfWeek = props.firstDayOfWeek,
5329
+ currentStatus = props.currentStatus;
5320
5330
 
5321
5331
  var iIndex = void 0;
5322
5332
  var jIndex = void 0;
@@ -5384,7 +5394,11 @@ var DateTBody = function (_React$Component) {
5384
5394
  for (jIndex = 0; jIndex < DATE_ROW_COLUMN_COUNT.DATE_COL_COUNT; jIndex++) {
5385
5395
  var next = null;
5386
5396
  var last = null;
5387
- current = dateTable[passed];
5397
+ if (currentStatus === 'todayTime') {
5398
+ current = dateTable[passed].hour(__WEBPACK_IMPORTED_MODULE_8_dayjs___default()().hour()).minute(__WEBPACK_IMPORTED_MODULE_8_dayjs___default()().minute()).second(__WEBPACK_IMPORTED_MODULE_8_dayjs___default()().second()); // eslint-disable-line max-len
5399
+ } else {
5400
+ current = dateTable[passed];
5401
+ }
5388
5402
  if (jIndex < DATE_ROW_COLUMN_COUNT.DATE_COL_COUNT - 1) {
5389
5403
  next = dateTable[passed + 1];
5390
5404
  }
@@ -5536,7 +5550,8 @@ DateTBody.propTypes = {
5536
5550
  value: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object,
5537
5551
  hoverValue: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.any,
5538
5552
  showWeekNumber: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.bool,
5539
- firstDayOfWeek: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string
5553
+ firstDayOfWeek: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string,
5554
+ currentStatus: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string
5540
5555
  };
5541
5556
  DateTBody.defaultProps = {
5542
5557
  hoverValue: []
@@ -6820,7 +6835,7 @@ function TimePickerButton(_ref) {
6820
6835
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react__);
6821
6836
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types__ = __webpack_require__(4);
6822
6837
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_prop_types__);
6823
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_dayjs__ = __webpack_require__(20);
6838
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_dayjs__ = __webpack_require__(16);
6824
6839
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_dayjs___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_dayjs__);
6825
6840
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__util__ = __webpack_require__(10);
6826
6841
 
@@ -6971,7 +6986,7 @@ CalendarRightPanel.propTypes = {
6971
6986
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_prop_types__);
6972
6987
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames__ = __webpack_require__(9);
6973
6988
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_classnames__);
6974
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_dayjs__ = __webpack_require__(20);
6989
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_dayjs__ = __webpack_require__(16);
6975
6990
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_dayjs___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_dayjs__);
6976
6991
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__util_index__ = __webpack_require__(10);
6977
6992
 
@@ -7254,7 +7269,7 @@ var commonMixinWrapper = function commonMixinWrapper(ComposeComponent) {
7254
7269
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_prop_types__);
7255
7270
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_rc_util_es_KeyCode__ = __webpack_require__(56);
7256
7271
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react_lifecycles_compat__ = __webpack_require__(42);
7257
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_dayjs__ = __webpack_require__(20);
7272
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_dayjs__ = __webpack_require__(16);
7258
7273
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_dayjs___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_dayjs__);
7259
7274
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__util__ = __webpack_require__(10);
7260
7275
 
@@ -7290,6 +7305,7 @@ var DateInput = function (_React$Component) {
7290
7305
  _this.state = {
7291
7306
  str: Object(__WEBPACK_IMPORTED_MODULE_9__util__["a" /* formatDate */])(selectedValue, _this.props.format),
7292
7307
  hasFocus: false,
7308
+ emptyValue: false,
7293
7309
  localFormat: _this.props.format[0]
7294
7310
  };
7295
7311
  return _this;
@@ -7397,14 +7413,14 @@ var _initialiseProps = function _initialiseProps() {
7397
7413
  format = _props.format,
7398
7414
  onChange = _props.onChange,
7399
7415
  selectedValue = _props.selectedValue;
7400
-
7401
7416
  // 没有内容,合法并直接退出
7402
7417
 
7403
- if (!calendarStr) {
7404
- onChange(null);
7405
- _this2.setState({ str: '' });
7418
+ if (!str || !calendarStr) {
7419
+ _this2.setState({ emptyValue: true });
7420
+ _this2.onClear();
7406
7421
  return;
7407
7422
  }
7423
+ if (_this2.state.emptyValue) _this2.setState({ emptyValue: false });
7408
7424
  var parsed = __WEBPACK_IMPORTED_MODULE_8_dayjs___default()(calendarStr, format[0]);
7409
7425
  var value = _this2.props.value.clone();
7410
7426
  value = value.year(parsed.year()).month(parsed.month()).date(parsed.date()).hour(parsed.hour()).minute(parsed.minute()).second(parsed.second());
@@ -7443,7 +7459,11 @@ var _initialiseProps = function _initialiseProps() {
7443
7459
  if (keyCode === __WEBPACK_IMPORTED_MODULE_6_rc_util_es_KeyCode__["a" /* default */].ENTER && onSelect) {
7444
7460
  var validateDate = !disabledDate || !disabledDate(value);
7445
7461
  if (validateDate) {
7446
- onSelect(value.clone());
7462
+ if (_this2.state.emptyValue) {
7463
+ onSelect(null);
7464
+ } else {
7465
+ onSelect(value.clone());
7466
+ }
7447
7467
  }
7448
7468
  event.preventDefault();
7449
7469
  }