@seafile/seafile-calendar 0.0.12 → 0.0.16
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.
- package/README.md +6 -0
- package/dist/rc-calendar.js +63 -35
- package/dist/rc-calendar.js.map +1 -1
- package/dist/rc-calendar.min.js +1 -1
- package/index.d.ts +12 -11
- package/package.json +2 -2
- package/assets/index.css +0 -1186
- package/es/Calendar.js +0 -424
- package/es/FullCalendar.js +0 -182
- package/es/MonthCalendar.js +0 -135
- package/es/Picker.js +0 -245
- package/es/RangeCalendar.js +0 -876
- package/es/calendar/CalendarFooter.js +0 -93
- package/es/calendar/CalendarHeader.js +0 -257
- package/es/calendar/CalendarRightPanel.js +0 -108
- package/es/calendar/OkButton.js +0 -22
- package/es/calendar/TimePickerButton.js +0 -28
- package/es/calendar/TodayButton.js +0 -28
- package/es/date/DateConstants.js +0 -4
- package/es/date/DateInput.js +0 -233
- package/es/date/DateTBody.js +0 -275
- package/es/date/DateTHead.js +0 -81
- package/es/date/DateTable.js +0 -32
- package/es/decade/DecadePanel.js +0 -181
- package/es/full-calendar/CalendarHeader.js +0 -180
- package/es/index.js +0 -3
- package/es/locale/ar_EG.js +0 -27
- package/es/locale/bg_BG.js +0 -27
- package/es/locale/ca_ES.js +0 -27
- package/es/locale/cs_CZ.js +0 -27
- package/es/locale/da_DK.js +0 -27
- package/es/locale/de_DE.js +0 -27
- package/es/locale/el_GR.js +0 -27
- package/es/locale/en_GB.js +0 -27
- package/es/locale/en_US.js +0 -28
- package/es/locale/es_ES.js +0 -27
- package/es/locale/et_EE.js +0 -27
- package/es/locale/fa_IR.js +0 -27
- package/es/locale/fi_FI.js +0 -27
- package/es/locale/fr_BE.js +0 -27
- package/es/locale/fr_FR.js +0 -27
- package/es/locale/he_IL.js +0 -28
- package/es/locale/hi_IN.js +0 -28
- package/es/locale/hr_HR.js +0 -28
- package/es/locale/hu_HU.js +0 -27
- package/es/locale/id_ID.js +0 -28
- package/es/locale/is_IS.js +0 -27
- package/es/locale/it_IT.js +0 -27
- package/es/locale/ja_JP.js +0 -26
- package/es/locale/kn_IN.js +0 -28
- package/es/locale/ko_KR.js +0 -27
- package/es/locale/ku_IQ.js +0 -27
- package/es/locale/lv_LV.js +0 -27
- package/es/locale/mm_MM.js +0 -28
- package/es/locale/mn_MN.js +0 -28
- package/es/locale/ms_MY.js +0 -27
- package/es/locale/nb_NO.js +0 -27
- package/es/locale/nl_BE.js +0 -27
- package/es/locale/nl_NL.js +0 -27
- package/es/locale/pl_PL.js +0 -27
- package/es/locale/pt_BR.js +0 -27
- package/es/locale/pt_PT.js +0 -27
- package/es/locale/ro_RO.js +0 -28
- package/es/locale/ru_RU.js +0 -27
- package/es/locale/sk_SK.js +0 -27
- package/es/locale/sl_SI.js +0 -27
- package/es/locale/sr_RS.js +0 -27
- package/es/locale/sv_SE.js +0 -27
- package/es/locale/ta_IN.js +0 -28
- package/es/locale/th_TH.js +0 -27
- package/es/locale/tr_TR.js +0 -27
- package/es/locale/ug_CN.js +0 -26
- package/es/locale/uk_UA.js +0 -27
- package/es/locale/vi_VN.js +0 -28
- package/es/locale/zh_CN.js +0 -27
- package/es/locale/zh_TW.js +0 -26
- package/es/mixin/CalendarMixin.js +0 -123
- package/es/mixin/CommonMixin.js +0 -85
- package/es/month/MonthPanel.js +0 -154
- package/es/month/MonthTable.js +0 -156
- package/es/picker/placements.js +0 -35
- package/es/range-calendar/CalendarPart.js +0 -151
- package/es/util/index.js +0 -102
- package/es/util/toTime.js +0 -21
- package/es/year/YearPanel.js +0 -202
- package/lib/Calendar.js +0 -477
- package/lib/FullCalendar.js +0 -221
- package/lib/MonthCalendar.js +0 -172
- package/lib/Picker.js +0 -282
- package/lib/RangeCalendar.js +0 -925
- package/lib/calendar/CalendarFooter.js +0 -134
- package/lib/calendar/CalendarHeader.js +0 -290
- package/lib/calendar/CalendarRightPanel.js +0 -132
- package/lib/calendar/OkButton.js +0 -32
- package/lib/calendar/TimePickerButton.js +0 -41
- package/lib/calendar/TodayButton.js +0 -39
- package/lib/date/DateConstants.js +0 -8
- package/lib/date/DateInput.js +0 -265
- package/lib/date/DateTBody.js +0 -302
- package/lib/date/DateTHead.js +0 -104
- package/lib/date/DateTable.js +0 -54
- package/lib/decade/DecadePanel.js +0 -207
- package/lib/full-calendar/CalendarHeader.js +0 -201
- package/lib/index.js +0 -12
- package/lib/locale/ar_EG.js +0 -31
- package/lib/locale/bg_BG.js +0 -31
- package/lib/locale/ca_ES.js +0 -31
- package/lib/locale/cs_CZ.js +0 -31
- package/lib/locale/da_DK.js +0 -31
- package/lib/locale/de_DE.js +0 -31
- package/lib/locale/el_GR.js +0 -31
- package/lib/locale/en_GB.js +0 -31
- package/lib/locale/en_US.js +0 -32
- package/lib/locale/es_ES.js +0 -31
- package/lib/locale/et_EE.js +0 -31
- package/lib/locale/fa_IR.js +0 -31
- package/lib/locale/fi_FI.js +0 -31
- package/lib/locale/fr_BE.js +0 -31
- package/lib/locale/fr_FR.js +0 -31
- package/lib/locale/he_IL.js +0 -32
- package/lib/locale/hi_IN.js +0 -32
- package/lib/locale/hr_HR.js +0 -32
- package/lib/locale/hu_HU.js +0 -31
- package/lib/locale/id_ID.js +0 -32
- package/lib/locale/is_IS.js +0 -31
- package/lib/locale/it_IT.js +0 -31
- package/lib/locale/ja_JP.js +0 -30
- package/lib/locale/kn_IN.js +0 -32
- package/lib/locale/ko_KR.js +0 -31
- package/lib/locale/ku_IQ.js +0 -31
- package/lib/locale/lv_LV.js +0 -31
- package/lib/locale/mm_MM.js +0 -32
- package/lib/locale/mn_MN.js +0 -32
- package/lib/locale/ms_MY.js +0 -31
- package/lib/locale/nb_NO.js +0 -31
- package/lib/locale/nl_BE.js +0 -31
- package/lib/locale/nl_NL.js +0 -31
- package/lib/locale/pl_PL.js +0 -31
- package/lib/locale/pt_BR.js +0 -31
- package/lib/locale/pt_PT.js +0 -31
- package/lib/locale/ro_RO.js +0 -32
- package/lib/locale/ru_RU.js +0 -31
- package/lib/locale/sk_SK.js +0 -31
- package/lib/locale/sl_SI.js +0 -31
- package/lib/locale/sr_RS.js +0 -31
- package/lib/locale/sv_SE.js +0 -31
- package/lib/locale/ta_IN.js +0 -32
- package/lib/locale/th_TH.js +0 -31
- package/lib/locale/tr_TR.js +0 -31
- package/lib/locale/ug_CN.js +0 -30
- package/lib/locale/uk_UA.js +0 -31
- package/lib/locale/vi_VN.js +0 -32
- package/lib/locale/zh_CN.js +0 -31
- package/lib/locale/zh_TW.js +0 -30
- package/lib/mixin/CalendarMixin.js +0 -153
- package/lib/mixin/CommonMixin.js +0 -106
- package/lib/month/MonthPanel.js +0 -179
- package/lib/month/MonthTable.js +0 -181
- package/lib/picker/placements.js +0 -39
- package/lib/range-calendar/CalendarPart.js +0 -184
- package/lib/util/index.js +0 -124
- package/lib/util/toTime.js +0 -28
- package/lib/year/YearPanel.js +0 -227
package/README.md
CHANGED
@@ -231,6 +231,12 @@ http://react-component.github.io/calendar/examples/index.html
|
|
231
231
|
<td></td>
|
232
232
|
<td>called when ok button is pressed, only if it's visible</td>
|
233
233
|
</tr>
|
234
|
+
<tr>
|
235
|
+
<td>onClickRightPanelTime</td>
|
236
|
+
<td>Function()</td>
|
237
|
+
<td></td>
|
238
|
+
<td>called when right panel hour and minute is clicked, only prop showHourAndMinute is true</td>
|
239
|
+
</tr>
|
234
240
|
<tr>
|
235
241
|
<td>dateInputPlaceholder</td>
|
236
242
|
<td>String</td>
|
package/dist/rc-calendar.js
CHANGED
@@ -198,7 +198,7 @@ if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
|
|
198
198
|
/* 6 */
|
199
199
|
/***/ (function(module, exports) {
|
200
200
|
|
201
|
-
var core = module.exports = { version: '2.6.
|
201
|
+
var core = module.exports = { version: '2.6.12' };
|
202
202
|
if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
|
203
203
|
|
204
204
|
|
@@ -227,7 +227,7 @@ module.exports = function (it, key) {
|
|
227
227
|
/***/ (function(module, exports, __webpack_require__) {
|
228
228
|
|
229
229
|
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
230
|
-
Copyright (c)
|
230
|
+
Copyright (c) 2018 Jed Watson.
|
231
231
|
Licensed under the MIT License (MIT), see
|
232
232
|
http://jedwatson.github.io/classnames
|
233
233
|
*/
|
@@ -238,7 +238,7 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
|
238
238
|
|
239
239
|
var hasOwn = {}.hasOwnProperty;
|
240
240
|
|
241
|
-
function classNames
|
241
|
+
function classNames() {
|
242
242
|
var classes = [];
|
243
243
|
|
244
244
|
for (var i = 0; i < arguments.length; i++) {
|
@@ -249,16 +249,22 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
|
249
249
|
|
250
250
|
if (argType === 'string' || argType === 'number') {
|
251
251
|
classes.push(arg);
|
252
|
-
} else if (Array.isArray(arg)
|
253
|
-
|
254
|
-
|
255
|
-
|
252
|
+
} else if (Array.isArray(arg)) {
|
253
|
+
if (arg.length) {
|
254
|
+
var inner = classNames.apply(null, arg);
|
255
|
+
if (inner) {
|
256
|
+
classes.push(inner);
|
257
|
+
}
|
256
258
|
}
|
257
259
|
} else if (argType === 'object') {
|
258
|
-
|
259
|
-
|
260
|
-
|
260
|
+
if (arg.toString === Object.prototype.toString) {
|
261
|
+
for (var key in arg) {
|
262
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
263
|
+
classes.push(key);
|
264
|
+
}
|
261
265
|
}
|
266
|
+
} else {
|
267
|
+
classes.push(arg.toString());
|
262
268
|
}
|
263
269
|
}
|
264
270
|
}
|
@@ -360,7 +366,7 @@ $exports.store = store;
|
|
360
366
|
/***/ (function(module, exports) {
|
361
367
|
|
362
368
|
//! moment.js
|
363
|
-
//! version : 2.
|
369
|
+
//! version : 2.29.1
|
364
370
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
365
371
|
//! license : MIT
|
366
372
|
//! momentjs.com
|
@@ -2901,8 +2907,7 @@ $exports.store = store;
|
|
2901
2907
|
hooks.createFromInputFallback = deprecate(
|
2902
2908
|
'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ' +
|
2903
2909
|
'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ' +
|
2904
|
-
'discouraged
|
2905
|
-
'http://momentjs.com/guides/#/warnings/js-date/ for more info.',
|
2910
|
+
'discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.',
|
2906
2911
|
function (config) {
|
2907
2912
|
config._d = new Date(config._i + (config._useUTC ? ' UTC' : ''));
|
2908
2913
|
}
|
@@ -3124,8 +3129,6 @@ $exports.store = store;
|
|
3124
3129
|
token = tokens[i];
|
3125
3130
|
parsedInput = (string.match(getParseRegexForToken(token, config)) ||
|
3126
3131
|
[])[0];
|
3127
|
-
// console.log('token', token, 'parsedInput', parsedInput,
|
3128
|
-
// 'regex', getParseRegexForToken(token, config));
|
3129
3132
|
if (parsedInput) {
|
3130
3133
|
skipped = string.substr(0, string.indexOf(parsedInput));
|
3131
3134
|
if (skipped.length > 0) {
|
@@ -4089,7 +4092,10 @@ $exports.store = store;
|
|
4089
4092
|
function calendar$1(time, formats) {
|
4090
4093
|
// Support for single parameter, formats only overload to the calendar function
|
4091
4094
|
if (arguments.length === 1) {
|
4092
|
-
if (
|
4095
|
+
if (!arguments[0]) {
|
4096
|
+
time = undefined;
|
4097
|
+
formats = undefined;
|
4098
|
+
} else if (isMomentInput(arguments[0])) {
|
4093
4099
|
time = arguments[0];
|
4094
4100
|
formats = undefined;
|
4095
4101
|
} else if (isCalendarSpec(arguments[0])) {
|
@@ -4767,7 +4773,7 @@ $exports.store = store;
|
|
4767
4773
|
eras = this.localeData().eras();
|
4768
4774
|
for (i = 0, l = eras.length; i < l; ++i) {
|
4769
4775
|
// truncate time
|
4770
|
-
val = this.startOf('day').valueOf();
|
4776
|
+
val = this.clone().startOf('day').valueOf();
|
4771
4777
|
|
4772
4778
|
if (eras[i].since <= val && val <= eras[i].until) {
|
4773
4779
|
return eras[i].name;
|
@@ -4787,7 +4793,7 @@ $exports.store = store;
|
|
4787
4793
|
eras = this.localeData().eras();
|
4788
4794
|
for (i = 0, l = eras.length; i < l; ++i) {
|
4789
4795
|
// truncate time
|
4790
|
-
val = this.startOf('day').valueOf();
|
4796
|
+
val = this.clone().startOf('day').valueOf();
|
4791
4797
|
|
4792
4798
|
if (eras[i].since <= val && val <= eras[i].until) {
|
4793
4799
|
return eras[i].narrow;
|
@@ -4807,7 +4813,7 @@ $exports.store = store;
|
|
4807
4813
|
eras = this.localeData().eras();
|
4808
4814
|
for (i = 0, l = eras.length; i < l; ++i) {
|
4809
4815
|
// truncate time
|
4810
|
-
val = this.startOf('day').valueOf();
|
4816
|
+
val = this.clone().startOf('day').valueOf();
|
4811
4817
|
|
4812
4818
|
if (eras[i].since <= val && val <= eras[i].until) {
|
4813
4819
|
return eras[i].abbr;
|
@@ -4830,7 +4836,7 @@ $exports.store = store;
|
|
4830
4836
|
dir = eras[i].since <= eras[i].until ? +1 : -1;
|
4831
4837
|
|
4832
4838
|
// truncate time
|
4833
|
-
val = this.startOf('day').valueOf();
|
4839
|
+
val = this.clone().startOf('day').valueOf();
|
4834
4840
|
|
4835
4841
|
if (
|
4836
4842
|
(eras[i].since <= val && val <= eras[i].until) ||
|
@@ -5981,7 +5987,7 @@ $exports.store = store;
|
|
5981
5987
|
|
5982
5988
|
//! moment.js
|
5983
5989
|
|
5984
|
-
hooks.version = '2.
|
5990
|
+
hooks.version = '2.29.1';
|
5985
5991
|
|
5986
5992
|
setHookCallback(createLocal);
|
5987
5993
|
|
@@ -6582,7 +6588,7 @@ var store = global[SHARED] || (global[SHARED] = {});
|
|
6582
6588
|
})('versions', []).push({
|
6583
6589
|
version: core.version,
|
6584
6590
|
mode: __webpack_require__(23) ? 'pure' : 'global',
|
6585
|
-
copyright: '©
|
6591
|
+
copyright: '© 2020 Denis Pushkarev (zloirock.ru)'
|
6586
6592
|
});
|
6587
6593
|
|
6588
6594
|
|
@@ -7943,6 +7949,7 @@ var Calendar = function (_React$Component) {
|
|
7943
7949
|
disabledDate = props.disabledDate,
|
7944
7950
|
dateInputPlaceholder = props.dateInputPlaceholder,
|
7945
7951
|
timePicker = props.timePicker,
|
7952
|
+
onClickRightPanelTime = props.onClickRightPanelTime,
|
7946
7953
|
disabledTime = props.disabledTime,
|
7947
7954
|
clearIcon = props.clearIcon,
|
7948
7955
|
renderFooter = props.renderFooter,
|
@@ -8069,7 +8076,9 @@ var Calendar = function (_React$Component) {
|
|
8069
8076
|
prefixCls: prefixCls,
|
8070
8077
|
value: value,
|
8071
8078
|
locale: locale,
|
8072
|
-
onSelect: this.onDateTableSelect
|
8079
|
+
onSelect: this.onDateTableSelect,
|
8080
|
+
onClickRightPanelTime: onClickRightPanelTime,
|
8081
|
+
defaultMinutesTime: this.props.defaultMinutesTime
|
8073
8082
|
})
|
8074
8083
|
)
|
8075
8084
|
));
|
@@ -8098,6 +8107,7 @@ Calendar.propTypes = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__
|
|
8098
8107
|
showToday: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool,
|
8099
8108
|
showOk: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool,
|
8100
8109
|
showHourAndMinute: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool,
|
8110
|
+
defaultMinutesTime: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string,
|
8101
8111
|
onSelect: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,
|
8102
8112
|
onOk: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,
|
8103
8113
|
onKeyDown: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,
|
@@ -8114,7 +8124,8 @@ Calendar.propTypes = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__
|
|
8114
8124
|
clearIcon: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.node,
|
8115
8125
|
focusablePanel: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.bool,
|
8116
8126
|
inputMode: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.string,
|
8117
|
-
onBlur: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func
|
8127
|
+
onBlur: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func,
|
8128
|
+
onClickRightPanelTime: __WEBPACK_IMPORTED_MODULE_6_prop_types___default.a.func
|
8118
8129
|
});
|
8119
8130
|
Calendar.defaultProps = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, __WEBPACK_IMPORTED_MODULE_13__mixin_CalendarMixin__["a" /* calendarMixinDefaultProps */], __WEBPACK_IMPORTED_MODULE_14__mixin_CommonMixin__["b" /* defaultProp */], {
|
8120
8131
|
showToday: true,
|
@@ -8123,6 +8134,7 @@ Calendar.defaultProps = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extend
|
|
8123
8134
|
timePicker: null,
|
8124
8135
|
onOk: noop,
|
8125
8136
|
onPanelChange: noop,
|
8137
|
+
onClickRightPanelTime: noop,
|
8126
8138
|
focusablePanel: true
|
8127
8139
|
});
|
8128
8140
|
|
@@ -11948,11 +11960,23 @@ var CalendarRightPanel = function (_React$Component) {
|
|
11948
11960
|
|
11949
11961
|
var _this = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_possibleConstructorReturn___default()(this, _React$Component.call(this, props));
|
11950
11962
|
|
11963
|
+
_this.getTimes = function () {
|
11964
|
+
var times = [];
|
11965
|
+
for (var i = 0; i < 24; i++) {
|
11966
|
+
var str = (String(i) + ':00').padStart(5, '0');
|
11967
|
+
var str1 = (String(i) + ':30').padStart(5, '0');
|
11968
|
+
times.push(str);
|
11969
|
+
times.push(str1);
|
11970
|
+
}
|
11971
|
+
return times;
|
11972
|
+
};
|
11973
|
+
|
11951
11974
|
_this.onSelect = function (value) {
|
11952
11975
|
_this.setState({
|
11953
11976
|
highlightTime: value
|
11954
11977
|
});
|
11955
11978
|
_this.props.onSelect(value);
|
11979
|
+
_this.props.onClickRightPanelTime();
|
11956
11980
|
};
|
11957
11981
|
|
11958
11982
|
_this.scrollUp = function () {
|
@@ -11967,12 +11991,20 @@ var CalendarRightPanel = function (_React$Component) {
|
|
11967
11991
|
highlightTime: _this.props.value || null
|
11968
11992
|
};
|
11969
11993
|
_this.timeRef = __WEBPACK_IMPORTED_MODULE_3_react___default.a.createRef();
|
11994
|
+
_this.times = _this.getTimes();
|
11970
11995
|
return _this;
|
11971
11996
|
}
|
11972
11997
|
|
11973
11998
|
CalendarRightPanel.prototype.componentDidMount = function componentDidMount() {
|
11974
|
-
|
11975
|
-
|
11999
|
+
var defaultMinutesTime = this.props.defaultMinutesTime;
|
12000
|
+
|
12001
|
+
|
12002
|
+
var showTimeIndex = this.times.findIndex(function (item) {
|
12003
|
+
return item === defaultMinutesTime;
|
12004
|
+
});
|
12005
|
+
|
12006
|
+
var scrollTimeIndex = showTimeIndex > -1 ? showTimeIndex : 16;
|
12007
|
+
this.timeRef.current.scrollTo(0, 34 * scrollTimeIndex);
|
11976
12008
|
};
|
11977
12009
|
|
11978
12010
|
CalendarRightPanel.prototype.render = function render() {
|
@@ -11984,13 +12016,7 @@ var CalendarRightPanel = function (_React$Component) {
|
|
11984
12016
|
locale = _props.locale;
|
11985
12017
|
|
11986
12018
|
var selectedDate = value.format().slice(0, 10);
|
11987
|
-
|
11988
|
-
for (var i = 0; i < 24; i++) {
|
11989
|
-
var str = (String(i) + ':00').padStart(5, '0');
|
11990
|
-
var str1 = (String(i) + ':30').padStart(5, '0');
|
11991
|
-
times.push(str);
|
11992
|
-
times.push(str1);
|
11993
|
-
}
|
12019
|
+
|
11994
12020
|
var highlight = this.state.highlightTime;
|
11995
12021
|
var highlightTime = highlight ? highlight.format().slice(11, 16) : null;
|
11996
12022
|
var isZhcn = locale && locale.today === '今天';
|
@@ -12008,7 +12034,7 @@ var CalendarRightPanel = function (_React$Component) {
|
|
12008
12034
|
__WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(
|
12009
12035
|
'ul',
|
12010
12036
|
null,
|
12011
|
-
times.map(function (time) {
|
12037
|
+
this.times.map(function (time) {
|
12012
12038
|
var current = __WEBPACK_IMPORTED_MODULE_5_moment___default()(selectedDate + ' ' + time);
|
12013
12039
|
current = isZhcn ? current.locale('zh-cn') : current.locale('en-gb');
|
12014
12040
|
return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(
|
@@ -12038,7 +12064,9 @@ CalendarRightPanel.propTypes = {
|
|
12038
12064
|
prefixCls: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string,
|
12039
12065
|
value: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object,
|
12040
12066
|
onSelect: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
|
12041
|
-
|
12067
|
+
onClickRightPanelTime: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
|
12068
|
+
locale: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object,
|
12069
|
+
defaultMinutesTime: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string
|
12042
12070
|
};
|
12043
12071
|
/* harmony default export */ __webpack_exports__["a"] = (CalendarRightPanel);
|
12044
12072
|
|