@seafile/seafile-calendar 0.0.29-alpha.2 → 0.0.29
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/assets/index.css +1177 -0
- package/dist/rc-calendar.css +1179 -0
- package/dist/rc-calendar.css.map +1 -0
- package/dist/rc-calendar.js +7076 -0
- package/dist/rc-calendar.js.map +1 -0
- package/dist/rc-calendar.min.css +1179 -0
- package/dist/rc-calendar.min.css.map +1 -0
- package/dist/rc-calendar.min.js +1 -0
- package/es/Calendar.js +441 -0
- package/es/FullCalendar.js +182 -0
- package/es/MonthCalendar.js +135 -0
- package/es/Picker.js +245 -0
- package/es/RangeCalendar.js +876 -0
- package/es/calendar/CalendarFooter.js +93 -0
- package/es/calendar/CalendarHeader.js +257 -0
- package/es/calendar/CalendarRightPanel.js +121 -0
- package/es/calendar/OkButton.js +22 -0
- package/es/calendar/TimePickerButton.js +28 -0
- package/es/calendar/TodayButton.js +28 -0
- package/es/date/DateConstants.js +19 -0
- package/es/date/DateInput.js +233 -0
- package/es/date/DateTBody.js +280 -0
- package/es/date/DateTHead.js +85 -0
- package/es/date/DateTable.js +32 -0
- package/es/decade/DecadePanel.js +181 -0
- package/es/full-calendar/CalendarHeader.js +180 -0
- package/es/index.js +3 -0
- package/es/locale/ar_EG.js +27 -0
- package/es/locale/bg_BG.js +27 -0
- package/es/locale/ca_ES.js +27 -0
- package/es/locale/cs_CZ.js +27 -0
- package/es/locale/da_DK.js +27 -0
- package/es/locale/de_DE.js +27 -0
- package/es/locale/el_GR.js +27 -0
- package/es/locale/en_GB.js +27 -0
- package/es/locale/en_US.js +28 -0
- package/es/locale/es_ES.js +27 -0
- package/es/locale/et_EE.js +27 -0
- package/es/locale/fa_IR.js +27 -0
- package/es/locale/fi_FI.js +27 -0
- package/es/locale/fr_BE.js +27 -0
- package/es/locale/fr_FR.js +27 -0
- package/es/locale/he_IL.js +28 -0
- package/es/locale/hi_IN.js +28 -0
- package/es/locale/hr_HR.js +28 -0
- package/es/locale/hu_HU.js +27 -0
- package/es/locale/id_ID.js +28 -0
- package/es/locale/is_IS.js +27 -0
- package/es/locale/it_IT.js +27 -0
- package/es/locale/ja_JP.js +26 -0
- package/es/locale/kn_IN.js +28 -0
- package/es/locale/ko_KR.js +27 -0
- package/es/locale/ku_IQ.js +27 -0
- package/es/locale/lv_LV.js +27 -0
- package/es/locale/mm_MM.js +28 -0
- package/es/locale/mn_MN.js +28 -0
- package/es/locale/ms_MY.js +27 -0
- package/es/locale/nb_NO.js +27 -0
- package/es/locale/nl_BE.js +27 -0
- package/es/locale/nl_NL.js +27 -0
- package/es/locale/pl_PL.js +27 -0
- package/es/locale/pt_BR.js +27 -0
- package/es/locale/pt_PT.js +27 -0
- package/es/locale/ro_RO.js +28 -0
- package/es/locale/ru_RU.js +27 -0
- package/es/locale/sk_SK.js +27 -0
- package/es/locale/sl_SI.js +27 -0
- package/es/locale/sr_RS.js +27 -0
- package/es/locale/sv_SE.js +27 -0
- package/es/locale/ta_IN.js +28 -0
- package/es/locale/th_TH.js +27 -0
- package/es/locale/tr_TR.js +27 -0
- package/es/locale/ug_CN.js +26 -0
- package/es/locale/uk_UA.js +27 -0
- package/es/locale/vi_VN.js +28 -0
- package/es/locale/zh_CN.js +27 -0
- package/es/locale/zh_TW.js +26 -0
- package/es/mixin/CalendarMixin.js +123 -0
- package/es/mixin/CommonMixin.js +85 -0
- package/es/month/MonthPanel.js +154 -0
- package/es/month/MonthTable.js +156 -0
- package/es/picker/placements.js +35 -0
- package/es/range-calendar/CalendarPart.js +151 -0
- package/es/util/dayjs.js +17 -0
- package/es/util/index.js +105 -0
- package/es/util/toTime.js +21 -0
- package/es/year/YearPanel.js +194 -0
- package/lib/Calendar.js +504 -0
- package/lib/FullCalendar.js +221 -0
- package/lib/MonthCalendar.js +172 -0
- package/lib/Picker.js +282 -0
- package/lib/RangeCalendar.js +925 -0
- package/lib/calendar/CalendarFooter.js +134 -0
- package/lib/calendar/CalendarHeader.js +290 -0
- package/lib/calendar/CalendarRightPanel.js +145 -0
- package/lib/calendar/OkButton.js +32 -0
- package/lib/calendar/TimePickerButton.js +41 -0
- package/lib/calendar/TodayButton.js +39 -0
- package/lib/date/DateConstants.js +23 -0
- package/lib/date/DateInput.js +265 -0
- package/lib/date/DateTBody.js +307 -0
- package/lib/date/DateTHead.js +105 -0
- package/lib/date/DateTable.js +54 -0
- package/lib/decade/DecadePanel.js +207 -0
- package/lib/full-calendar/CalendarHeader.js +201 -0
- package/lib/index.js +12 -0
- package/lib/locale/ar_EG.js +31 -0
- package/lib/locale/bg_BG.js +31 -0
- package/lib/locale/ca_ES.js +31 -0
- package/lib/locale/cs_CZ.js +31 -0
- package/lib/locale/da_DK.js +31 -0
- package/lib/locale/de_DE.js +31 -0
- package/lib/locale/el_GR.js +31 -0
- package/lib/locale/en_GB.js +31 -0
- package/lib/locale/en_US.js +32 -0
- package/lib/locale/es_ES.js +31 -0
- package/lib/locale/et_EE.js +31 -0
- package/lib/locale/fa_IR.js +31 -0
- package/lib/locale/fi_FI.js +31 -0
- package/lib/locale/fr_BE.js +31 -0
- package/lib/locale/fr_FR.js +31 -0
- package/lib/locale/he_IL.js +32 -0
- package/lib/locale/hi_IN.js +32 -0
- package/lib/locale/hr_HR.js +32 -0
- package/lib/locale/hu_HU.js +31 -0
- package/lib/locale/id_ID.js +32 -0
- package/lib/locale/is_IS.js +31 -0
- package/lib/locale/it_IT.js +31 -0
- package/lib/locale/ja_JP.js +30 -0
- package/lib/locale/kn_IN.js +32 -0
- package/lib/locale/ko_KR.js +31 -0
- package/lib/locale/ku_IQ.js +31 -0
- package/lib/locale/lv_LV.js +31 -0
- package/lib/locale/mm_MM.js +32 -0
- package/lib/locale/mn_MN.js +32 -0
- package/lib/locale/ms_MY.js +31 -0
- package/lib/locale/nb_NO.js +31 -0
- package/lib/locale/nl_BE.js +31 -0
- package/lib/locale/nl_NL.js +31 -0
- package/lib/locale/pl_PL.js +31 -0
- package/lib/locale/pt_BR.js +31 -0
- package/lib/locale/pt_PT.js +31 -0
- package/lib/locale/ro_RO.js +32 -0
- package/lib/locale/ru_RU.js +31 -0
- package/lib/locale/sk_SK.js +31 -0
- package/lib/locale/sl_SI.js +31 -0
- package/lib/locale/sr_RS.js +31 -0
- package/lib/locale/sv_SE.js +31 -0
- package/lib/locale/ta_IN.js +32 -0
- package/lib/locale/th_TH.js +31 -0
- package/lib/locale/tr_TR.js +31 -0
- package/lib/locale/ug_CN.js +30 -0
- package/lib/locale/uk_UA.js +31 -0
- package/lib/locale/vi_VN.js +32 -0
- package/lib/locale/zh_CN.js +31 -0
- package/lib/locale/zh_TW.js +30 -0
- package/lib/mixin/CalendarMixin.js +153 -0
- package/lib/mixin/CommonMixin.js +106 -0
- package/lib/month/MonthPanel.js +179 -0
- package/lib/month/MonthTable.js +181 -0
- package/lib/picker/placements.js +39 -0
- package/lib/range-calendar/CalendarPart.js +184 -0
- package/lib/util/dayjs.js +46 -0
- package/lib/util/index.js +130 -0
- package/lib/util/toTime.js +28 -0
- package/lib/year/YearPanel.js +219 -0
- package/package.json +1 -1
@@ -0,0 +1,181 @@
|
|
1
|
+
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
|
2
|
+
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
|
3
|
+
import _inherits from 'babel-runtime/helpers/inherits';
|
4
|
+
import React from 'react';
|
5
|
+
import PropTypes from 'prop-types';
|
6
|
+
var ROW = 4;
|
7
|
+
var COL = 3;
|
8
|
+
import classnames from 'classnames';
|
9
|
+
|
10
|
+
function goYear(direction) {
|
11
|
+
var next = this.state.value.clone();
|
12
|
+
next = next.add(direction, 'years');
|
13
|
+
this.setState({
|
14
|
+
value: next
|
15
|
+
});
|
16
|
+
}
|
17
|
+
|
18
|
+
function chooseDecade(year, event) {
|
19
|
+
var next = this.state.value.clone();
|
20
|
+
next = next.year(year);
|
21
|
+
next = next.month(this.state.value.month());
|
22
|
+
this.props.onSelect(next);
|
23
|
+
event.preventDefault();
|
24
|
+
}
|
25
|
+
|
26
|
+
var DecadePanel = function (_React$Component) {
|
27
|
+
_inherits(DecadePanel, _React$Component);
|
28
|
+
|
29
|
+
function DecadePanel(props) {
|
30
|
+
_classCallCheck(this, DecadePanel);
|
31
|
+
|
32
|
+
var _this = _possibleConstructorReturn(this, _React$Component.call(this, props));
|
33
|
+
|
34
|
+
_this.state = {
|
35
|
+
value: props.value || props.defaultValue
|
36
|
+
};
|
37
|
+
|
38
|
+
// bind methods
|
39
|
+
_this.prefixCls = props.rootPrefixCls + '-decade-panel';
|
40
|
+
_this.nextCentury = goYear.bind(_this, 100);
|
41
|
+
_this.previousCentury = goYear.bind(_this, -100);
|
42
|
+
return _this;
|
43
|
+
}
|
44
|
+
|
45
|
+
DecadePanel.prototype.render = function render() {
|
46
|
+
var _this2 = this;
|
47
|
+
|
48
|
+
var value = this.state.value;
|
49
|
+
var _props = this.props,
|
50
|
+
locale = _props.locale,
|
51
|
+
renderFooter = _props.renderFooter;
|
52
|
+
|
53
|
+
var currentYear = value.year();
|
54
|
+
var startYear = parseInt(currentYear / 100, 10) * 100;
|
55
|
+
var preYear = startYear - 10;
|
56
|
+
var endYear = startYear + 99;
|
57
|
+
var decades = [];
|
58
|
+
var index = 0;
|
59
|
+
var prefixCls = this.prefixCls;
|
60
|
+
|
61
|
+
for (var rowIndex = 0; rowIndex < ROW; rowIndex++) {
|
62
|
+
decades[rowIndex] = [];
|
63
|
+
for (var colIndex = 0; colIndex < COL; colIndex++) {
|
64
|
+
var startDecade = preYear + index * 10;
|
65
|
+
var endDecade = preYear + index * 10 + 9;
|
66
|
+
decades[rowIndex][colIndex] = {
|
67
|
+
startDecade: startDecade,
|
68
|
+
endDecade: endDecade
|
69
|
+
};
|
70
|
+
index++;
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
74
|
+
var footer = renderFooter && renderFooter('decade');
|
75
|
+
|
76
|
+
var decadesEls = decades.map(function (row, decadeIndex) {
|
77
|
+
var tds = row.map(function (decadeData) {
|
78
|
+
var _classNameMap;
|
79
|
+
|
80
|
+
var dStartDecade = decadeData.startDecade;
|
81
|
+
var dEndDecade = decadeData.endDecade;
|
82
|
+
var isLast = dStartDecade < startYear;
|
83
|
+
var isNext = dEndDecade > endYear;
|
84
|
+
var classNameMap = (_classNameMap = {}, _classNameMap[prefixCls + '-cell'] = 1, _classNameMap[prefixCls + '-selected-cell'] = dStartDecade <= currentYear && currentYear <= dEndDecade, _classNameMap[prefixCls + '-last-century-cell'] = isLast, _classNameMap[prefixCls + '-next-century-cell'] = isNext, _classNameMap);
|
85
|
+
var content = dStartDecade + '-' + dEndDecade;
|
86
|
+
var clickHandler = void 0;
|
87
|
+
if (isLast) {
|
88
|
+
clickHandler = _this2.previousCentury;
|
89
|
+
} else if (isNext) {
|
90
|
+
clickHandler = _this2.nextCentury;
|
91
|
+
} else {
|
92
|
+
clickHandler = chooseDecade.bind(_this2, dStartDecade);
|
93
|
+
}
|
94
|
+
return React.createElement(
|
95
|
+
'td',
|
96
|
+
{
|
97
|
+
key: dStartDecade,
|
98
|
+
onClick: clickHandler,
|
99
|
+
role: 'gridcell',
|
100
|
+
className: classnames(classNameMap)
|
101
|
+
},
|
102
|
+
React.createElement(
|
103
|
+
'a',
|
104
|
+
{
|
105
|
+
className: prefixCls + '-decade'
|
106
|
+
},
|
107
|
+
content
|
108
|
+
)
|
109
|
+
);
|
110
|
+
});
|
111
|
+
return React.createElement(
|
112
|
+
'tr',
|
113
|
+
{ key: decadeIndex, role: 'row' },
|
114
|
+
tds
|
115
|
+
);
|
116
|
+
});
|
117
|
+
|
118
|
+
return React.createElement(
|
119
|
+
'div',
|
120
|
+
{ className: this.prefixCls },
|
121
|
+
React.createElement(
|
122
|
+
'div',
|
123
|
+
{ className: prefixCls + '-header' },
|
124
|
+
React.createElement('a', {
|
125
|
+
className: prefixCls + '-prev-century-btn',
|
126
|
+
role: 'button',
|
127
|
+
onClick: this.previousCentury,
|
128
|
+
title: locale.previousCentury
|
129
|
+
}),
|
130
|
+
React.createElement(
|
131
|
+
'div',
|
132
|
+
{ className: prefixCls + '-century' },
|
133
|
+
startYear,
|
134
|
+
'-',
|
135
|
+
endYear
|
136
|
+
),
|
137
|
+
React.createElement('a', {
|
138
|
+
className: prefixCls + '-next-century-btn',
|
139
|
+
role: 'button',
|
140
|
+
onClick: this.nextCentury,
|
141
|
+
title: locale.nextCentury
|
142
|
+
})
|
143
|
+
),
|
144
|
+
React.createElement(
|
145
|
+
'div',
|
146
|
+
{ className: prefixCls + '-body' },
|
147
|
+
React.createElement(
|
148
|
+
'table',
|
149
|
+
{ className: prefixCls + '-table', cellSpacing: '0', role: 'grid' },
|
150
|
+
React.createElement(
|
151
|
+
'tbody',
|
152
|
+
{ className: prefixCls + '-tbody' },
|
153
|
+
decadesEls
|
154
|
+
)
|
155
|
+
)
|
156
|
+
),
|
157
|
+
footer && React.createElement(
|
158
|
+
'div',
|
159
|
+
{ className: prefixCls + '-footer' },
|
160
|
+
footer
|
161
|
+
)
|
162
|
+
);
|
163
|
+
};
|
164
|
+
|
165
|
+
return DecadePanel;
|
166
|
+
}(React.Component);
|
167
|
+
|
168
|
+
export default DecadePanel;
|
169
|
+
|
170
|
+
|
171
|
+
DecadePanel.propTypes = {
|
172
|
+
locale: PropTypes.object,
|
173
|
+
value: PropTypes.object,
|
174
|
+
defaultValue: PropTypes.object,
|
175
|
+
rootPrefixCls: PropTypes.string,
|
176
|
+
renderFooter: PropTypes.func
|
177
|
+
};
|
178
|
+
|
179
|
+
DecadePanel.defaultProps = {
|
180
|
+
onSelect: function onSelect() {}
|
181
|
+
};
|
@@ -0,0 +1,180 @@
|
|
1
|
+
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
|
2
|
+
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
|
3
|
+
import _inherits from 'babel-runtime/helpers/inherits';
|
4
|
+
import React, { Component } from 'react';
|
5
|
+
import PropTypes from 'prop-types';
|
6
|
+
import { getMonthName } from '../util';
|
7
|
+
|
8
|
+
function noop() {}
|
9
|
+
|
10
|
+
var CalendarHeader = function (_Component) {
|
11
|
+
_inherits(CalendarHeader, _Component);
|
12
|
+
|
13
|
+
function CalendarHeader() {
|
14
|
+
_classCallCheck(this, CalendarHeader);
|
15
|
+
|
16
|
+
return _possibleConstructorReturn(this, _Component.apply(this, arguments));
|
17
|
+
}
|
18
|
+
|
19
|
+
CalendarHeader.prototype.onYearChange = function onYearChange(year) {
|
20
|
+
var newValue = this.props.value.clone();
|
21
|
+
newValue = newValue.year(parseInt(year, 10));
|
22
|
+
this.props.onValueChange(newValue);
|
23
|
+
};
|
24
|
+
|
25
|
+
CalendarHeader.prototype.onMonthChange = function onMonthChange(month) {
|
26
|
+
var newValue = this.props.value.clone();
|
27
|
+
newValue = newValue.month(parseInt(month, 10));
|
28
|
+
this.props.onValueChange(newValue);
|
29
|
+
};
|
30
|
+
|
31
|
+
CalendarHeader.prototype.yearSelectElement = function yearSelectElement(year) {
|
32
|
+
var _props = this.props,
|
33
|
+
yearSelectOffset = _props.yearSelectOffset,
|
34
|
+
yearSelectTotal = _props.yearSelectTotal,
|
35
|
+
prefixCls = _props.prefixCls,
|
36
|
+
Select = _props.Select;
|
37
|
+
|
38
|
+
var start = year - yearSelectOffset;
|
39
|
+
var end = start + yearSelectTotal;
|
40
|
+
|
41
|
+
var options = [];
|
42
|
+
for (var index = start; index < end; index++) {
|
43
|
+
options.push(React.createElement(
|
44
|
+
Select.Option,
|
45
|
+
{ key: '' + index },
|
46
|
+
index
|
47
|
+
));
|
48
|
+
}
|
49
|
+
return React.createElement(
|
50
|
+
Select,
|
51
|
+
{
|
52
|
+
className: prefixCls + '-header-year-select',
|
53
|
+
onChange: this.onYearChange.bind(this),
|
54
|
+
dropdownStyle: { zIndex: 2000 },
|
55
|
+
dropdownMenuStyle: { maxHeight: 250, overflow: 'auto', fontSize: 12 },
|
56
|
+
optionLabelProp: 'children',
|
57
|
+
value: String(year),
|
58
|
+
showSearch: false
|
59
|
+
},
|
60
|
+
options
|
61
|
+
);
|
62
|
+
};
|
63
|
+
|
64
|
+
CalendarHeader.prototype.monthSelectElement = function monthSelectElement(month) {
|
65
|
+
var props = this.props;
|
66
|
+
var t = props.value.clone();
|
67
|
+
var prefixCls = props.prefixCls;
|
68
|
+
|
69
|
+
var options = [];
|
70
|
+
var Select = props.Select;
|
71
|
+
|
72
|
+
for (var index = 0; index < 12; index++) {
|
73
|
+
t = t.month(index);
|
74
|
+
options.push(React.createElement(
|
75
|
+
Select.Option,
|
76
|
+
{ key: '' + index },
|
77
|
+
getMonthName(t)
|
78
|
+
));
|
79
|
+
}
|
80
|
+
|
81
|
+
return React.createElement(
|
82
|
+
Select,
|
83
|
+
{
|
84
|
+
className: prefixCls + '-header-month-select',
|
85
|
+
dropdownStyle: { zIndex: 2000 },
|
86
|
+
dropdownMenuStyle: { maxHeight: 250, overflow: 'auto', overflowX: 'hidden', fontSize: 12 },
|
87
|
+
optionLabelProp: 'children',
|
88
|
+
value: String(month),
|
89
|
+
showSearch: false,
|
90
|
+
onChange: this.onMonthChange.bind(this)
|
91
|
+
},
|
92
|
+
options
|
93
|
+
);
|
94
|
+
};
|
95
|
+
|
96
|
+
CalendarHeader.prototype.changeTypeToDate = function changeTypeToDate() {
|
97
|
+
this.props.onTypeChange('date');
|
98
|
+
};
|
99
|
+
|
100
|
+
CalendarHeader.prototype.changeTypeToMonth = function changeTypeToMonth() {
|
101
|
+
this.props.onTypeChange('month');
|
102
|
+
};
|
103
|
+
|
104
|
+
CalendarHeader.prototype.render = function render() {
|
105
|
+
var _props2 = this.props,
|
106
|
+
value = _props2.value,
|
107
|
+
locale = _props2.locale,
|
108
|
+
prefixCls = _props2.prefixCls,
|
109
|
+
type = _props2.type,
|
110
|
+
showTypeSwitch = _props2.showTypeSwitch,
|
111
|
+
headerComponents = _props2.headerComponents;
|
112
|
+
|
113
|
+
var year = value.year();
|
114
|
+
var month = value.month();
|
115
|
+
var yearSelect = this.yearSelectElement(year);
|
116
|
+
var monthSelect = type === 'month' ? null : this.monthSelectElement(month);
|
117
|
+
var switchCls = prefixCls + '-header-switcher';
|
118
|
+
var typeSwitcher = showTypeSwitch ? React.createElement(
|
119
|
+
'span',
|
120
|
+
{ className: switchCls },
|
121
|
+
type === 'date' ? React.createElement(
|
122
|
+
'span',
|
123
|
+
{ className: switchCls + '-focus' },
|
124
|
+
locale.month
|
125
|
+
) : React.createElement(
|
126
|
+
'span',
|
127
|
+
{
|
128
|
+
onClick: this.changeTypeToDate.bind(this),
|
129
|
+
className: switchCls + '-normal'
|
130
|
+
},
|
131
|
+
locale.month
|
132
|
+
),
|
133
|
+
type === 'month' ? React.createElement(
|
134
|
+
'span',
|
135
|
+
{ className: switchCls + '-focus' },
|
136
|
+
locale.year
|
137
|
+
) : React.createElement(
|
138
|
+
'span',
|
139
|
+
{
|
140
|
+
onClick: this.changeTypeToMonth.bind(this),
|
141
|
+
className: switchCls + '-normal'
|
142
|
+
},
|
143
|
+
locale.year
|
144
|
+
)
|
145
|
+
) : null;
|
146
|
+
|
147
|
+
return React.createElement(
|
148
|
+
'div',
|
149
|
+
{ className: prefixCls + '-header' },
|
150
|
+
typeSwitcher,
|
151
|
+
monthSelect,
|
152
|
+
yearSelect,
|
153
|
+
headerComponents
|
154
|
+
);
|
155
|
+
};
|
156
|
+
|
157
|
+
return CalendarHeader;
|
158
|
+
}(Component);
|
159
|
+
|
160
|
+
CalendarHeader.propTypes = {
|
161
|
+
value: PropTypes.object,
|
162
|
+
locale: PropTypes.object,
|
163
|
+
yearSelectOffset: PropTypes.number,
|
164
|
+
yearSelectTotal: PropTypes.number,
|
165
|
+
onValueChange: PropTypes.func,
|
166
|
+
onTypeChange: PropTypes.func,
|
167
|
+
Select: PropTypes.func,
|
168
|
+
prefixCls: PropTypes.string,
|
169
|
+
type: PropTypes.string,
|
170
|
+
showTypeSwitch: PropTypes.bool,
|
171
|
+
headerComponents: PropTypes.array
|
172
|
+
};
|
173
|
+
CalendarHeader.defaultProps = {
|
174
|
+
yearSelectOffset: 10,
|
175
|
+
yearSelectTotal: 20,
|
176
|
+
onValueChange: noop,
|
177
|
+
onTypeChange: noop
|
178
|
+
};
|
179
|
+
|
180
|
+
export default CalendarHeader;
|
package/es/index.js
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
export default {
|
2
|
+
today: 'اليوم',
|
3
|
+
now: 'الأن',
|
4
|
+
backToToday: 'العودة إلى اليوم',
|
5
|
+
ok: 'تأكيد',
|
6
|
+
clear: 'مسح',
|
7
|
+
month: 'الشهر',
|
8
|
+
year: 'السنة',
|
9
|
+
timeSelect: 'اختيار الوقت',
|
10
|
+
dateSelect: 'اختيار التاريخ',
|
11
|
+
monthSelect: 'اختيار الشهر',
|
12
|
+
yearSelect: 'اختيار السنة',
|
13
|
+
decadeSelect: 'اختيار العقد',
|
14
|
+
yearFormat: 'YYYY',
|
15
|
+
dateFormat: 'M/D/YYYY',
|
16
|
+
dayFormat: 'D',
|
17
|
+
dateTimeFormat: 'M/D/YYYY HH:mm:ss',
|
18
|
+
monthBeforeYear: true,
|
19
|
+
previousMonth: 'الشهر السابق (PageUp)',
|
20
|
+
nextMonth: 'الشهر التالى(PageDown)',
|
21
|
+
previousYear: 'العام السابق (Control + left)',
|
22
|
+
nextYear: 'العام التالى (Control + right)',
|
23
|
+
previousDecade: 'العقد السابق',
|
24
|
+
nextDecade: 'العقد التالى',
|
25
|
+
previousCentury: 'القرن السابق',
|
26
|
+
nextCentury: 'القرن التالى'
|
27
|
+
};
|
@@ -0,0 +1,27 @@
|
|
1
|
+
export default {
|
2
|
+
today: 'Днес',
|
3
|
+
now: 'Сега',
|
4
|
+
backToToday: 'Към днес',
|
5
|
+
ok: 'Добре',
|
6
|
+
clear: 'Изчистване',
|
7
|
+
month: 'Месец',
|
8
|
+
year: 'Година',
|
9
|
+
timeSelect: 'Избор на час',
|
10
|
+
dateSelect: 'Избор на дата',
|
11
|
+
monthSelect: 'Избор на месец',
|
12
|
+
yearSelect: 'Избор на година',
|
13
|
+
decadeSelect: 'Десетилетие',
|
14
|
+
yearFormat: 'YYYY',
|
15
|
+
dateFormat: 'D M YYYY',
|
16
|
+
dayFormat: 'D',
|
17
|
+
dateTimeFormat: 'D M YYYY HH:mm:ss',
|
18
|
+
monthBeforeYear: true,
|
19
|
+
previousMonth: 'Предишен месец (PageUp)',
|
20
|
+
nextMonth: 'Следващ месец (PageDown)',
|
21
|
+
previousYear: 'Последна година (Control + left)',
|
22
|
+
nextYear: 'Следваща година (Control + right)',
|
23
|
+
previousDecade: 'Предишно десетилетие',
|
24
|
+
nextDecade: 'Следващо десетилетие',
|
25
|
+
previousCentury: 'Последен век',
|
26
|
+
nextCentury: 'Следващ век'
|
27
|
+
};
|
@@ -0,0 +1,27 @@
|
|
1
|
+
export default {
|
2
|
+
today: 'Avui',
|
3
|
+
now: 'Ara',
|
4
|
+
backToToday: 'Tornar a avui',
|
5
|
+
ok: 'Acceptar',
|
6
|
+
clear: 'Netejar',
|
7
|
+
month: 'Mes',
|
8
|
+
year: 'Any',
|
9
|
+
timeSelect: 'Seleccionar hora',
|
10
|
+
dateSelect: 'Seleccionar data',
|
11
|
+
monthSelect: 'Escollir un mes',
|
12
|
+
yearSelect: 'Escollir un any',
|
13
|
+
decadeSelect: 'Escollir una dècada',
|
14
|
+
yearFormat: 'YYYY',
|
15
|
+
dateFormat: 'D/M/YYYY',
|
16
|
+
dayFormat: 'D',
|
17
|
+
dateTimeFormat: 'D/M/YYYY HH:mm:ss',
|
18
|
+
monthBeforeYear: true,
|
19
|
+
previousMonth: 'Mes anterior (PageUp)',
|
20
|
+
nextMonth: 'Mes següent (PageDown)',
|
21
|
+
previousYear: 'Any anterior (Control + left)',
|
22
|
+
nextYear: 'Mes següent (Control + right)',
|
23
|
+
previousDecade: 'Dècada anterior',
|
24
|
+
nextDecade: 'Dècada següent',
|
25
|
+
previousCentury: 'Segle anterior',
|
26
|
+
nextCentury: 'Segle següent'
|
27
|
+
};
|
@@ -0,0 +1,27 @@
|
|
1
|
+
export default {
|
2
|
+
today: 'Dnes',
|
3
|
+
now: 'Nyní',
|
4
|
+
backToToday: 'Zpět na dnešek',
|
5
|
+
ok: 'Ok',
|
6
|
+
clear: 'Vymazat',
|
7
|
+
month: 'Měsíc',
|
8
|
+
year: 'Rok',
|
9
|
+
timeSelect: 'Vybrat čas',
|
10
|
+
dateSelect: 'Vybrat datum',
|
11
|
+
monthSelect: 'Vyberte měsíc',
|
12
|
+
yearSelect: 'Vyberte rok',
|
13
|
+
decadeSelect: 'Vyberte dekádu',
|
14
|
+
yearFormat: 'YYYY',
|
15
|
+
dateFormat: 'D.M.YYYY',
|
16
|
+
dayFormat: 'D',
|
17
|
+
dateTimeFormat: 'D.M.YYYY HH:mm:ss',
|
18
|
+
monthBeforeYear: true,
|
19
|
+
previousMonth: 'Předchozí měsíc (PageUp)',
|
20
|
+
nextMonth: 'Následující (PageDown)',
|
21
|
+
previousYear: 'Předchozí rok (Control + left)',
|
22
|
+
nextYear: 'Následující rok (Control + right)',
|
23
|
+
previousDecade: 'Předchozí dekáda',
|
24
|
+
nextDecade: 'Následující dekáda',
|
25
|
+
previousCentury: 'Předchozí století',
|
26
|
+
nextCentury: 'Následující století'
|
27
|
+
};
|
@@ -0,0 +1,27 @@
|
|
1
|
+
export default {
|
2
|
+
today: 'I dag',
|
3
|
+
now: 'Nu',
|
4
|
+
backToToday: 'Gå til i dag',
|
5
|
+
ok: 'Ok',
|
6
|
+
clear: 'Annuller',
|
7
|
+
month: 'Måned',
|
8
|
+
year: 'År',
|
9
|
+
timeSelect: 'Vælg tidspunkt',
|
10
|
+
dateSelect: 'Vælg dato',
|
11
|
+
monthSelect: 'Vælg måned',
|
12
|
+
yearSelect: 'Vælg år',
|
13
|
+
decadeSelect: 'Vælg årti',
|
14
|
+
yearFormat: 'YYYY',
|
15
|
+
dateFormat: 'D/M/YYYY',
|
16
|
+
dayFormat: 'D',
|
17
|
+
dateTimeFormat: 'D/M/YYYY HH:mm:ss',
|
18
|
+
monthBeforeYear: true,
|
19
|
+
previousMonth: 'Forrige måned(PageUp)',
|
20
|
+
nextMonth: 'Næste måned (PageDown)',
|
21
|
+
previousYear: 'Forrige år (Control + left)',
|
22
|
+
nextYear: 'Næste r (Control + right)',
|
23
|
+
previousDecade: 'Forrige årti',
|
24
|
+
nextDecade: 'Næste årti',
|
25
|
+
previousCentury: 'Forrige århundrede',
|
26
|
+
nextCentury: 'Næste århundrede'
|
27
|
+
};
|
@@ -0,0 +1,27 @@
|
|
1
|
+
export default {
|
2
|
+
today: 'Heute',
|
3
|
+
now: 'Jetzt',
|
4
|
+
backToToday: 'Zurück zu Heute',
|
5
|
+
ok: 'OK',
|
6
|
+
clear: 'Zurücksetzen',
|
7
|
+
month: 'Monat',
|
8
|
+
year: 'Jahr',
|
9
|
+
timeSelect: 'Zeit wählen',
|
10
|
+
dateSelect: 'Datum wählen',
|
11
|
+
monthSelect: 'Wähle einen Monat',
|
12
|
+
yearSelect: 'Wähle ein Jahr',
|
13
|
+
decadeSelect: 'Wähle ein Jahrzehnt',
|
14
|
+
yearFormat: 'YYYY',
|
15
|
+
dateFormat: 'D.M.YYYY',
|
16
|
+
dayFormat: 'D',
|
17
|
+
dateTimeFormat: 'D.M.YYYY HH:mm:ss',
|
18
|
+
monthBeforeYear: true,
|
19
|
+
previousMonth: 'Vorheriger Monat (PageUp)',
|
20
|
+
nextMonth: 'Nächster Monat (PageDown)',
|
21
|
+
previousYear: 'Vorheriges Jahr (Ctrl + left)',
|
22
|
+
nextYear: 'Nächstes Jahr (Ctrl + right)',
|
23
|
+
previousDecade: 'Vorheriges Jahrzehnt',
|
24
|
+
nextDecade: 'Nächstes Jahrzehnt',
|
25
|
+
previousCentury: 'Vorheriges Jahrhundert',
|
26
|
+
nextCentury: 'Nächstes Jahrhundert'
|
27
|
+
};
|
@@ -0,0 +1,27 @@
|
|
1
|
+
export default {
|
2
|
+
today: 'Σήμερα',
|
3
|
+
now: 'Τώρα',
|
4
|
+
backToToday: 'Πίσω στη σημερινή μέρα',
|
5
|
+
ok: 'Ok',
|
6
|
+
clear: 'Καθαρισμός',
|
7
|
+
month: 'Μήνας',
|
8
|
+
year: 'Έτος',
|
9
|
+
timeSelect: 'Επιλογή ώρας',
|
10
|
+
dateSelect: 'Επιλογή ημερομηνίας',
|
11
|
+
monthSelect: 'Επιλογή μήνα',
|
12
|
+
yearSelect: 'Επιλογή έτους',
|
13
|
+
decadeSelect: 'Επιλογή δεκαετίας',
|
14
|
+
yearFormat: 'YYYY',
|
15
|
+
dateFormat: 'D/M/YYYY',
|
16
|
+
dayFormat: 'D',
|
17
|
+
dateTimeFormat: 'D/M/YYYY HH:mm:ss',
|
18
|
+
monthBeforeYear: true,
|
19
|
+
previousMonth: 'Προηγούμενος μήνας (PageUp)',
|
20
|
+
nextMonth: 'Επόμενος μήνας (PageDown)',
|
21
|
+
previousYear: 'Προηγούμενο έτος (Control + αριστερά)',
|
22
|
+
nextYear: 'Επόμενο έτος (Control + δεξιά)',
|
23
|
+
previousDecade: 'Προηγούμενη δεκαετία',
|
24
|
+
nextDecade: 'Επόμενη δεκαετία',
|
25
|
+
previousCentury: 'Προηγούμενος αιώνας',
|
26
|
+
nextCentury: 'Επόμενος αιώνας'
|
27
|
+
};
|
@@ -0,0 +1,27 @@
|
|
1
|
+
export default {
|
2
|
+
today: 'Today',
|
3
|
+
now: 'Now',
|
4
|
+
backToToday: 'Back to today',
|
5
|
+
ok: 'Ok',
|
6
|
+
clear: 'Clear',
|
7
|
+
month: 'Month',
|
8
|
+
year: 'Year',
|
9
|
+
timeSelect: 'Select time',
|
10
|
+
dateSelect: 'Select date',
|
11
|
+
monthSelect: 'Choose a month',
|
12
|
+
yearSelect: 'Choose a year',
|
13
|
+
decadeSelect: 'Choose a decade',
|
14
|
+
yearFormat: 'YYYY',
|
15
|
+
dateFormat: 'D/M/YYYY',
|
16
|
+
dayFormat: 'D',
|
17
|
+
dateTimeFormat: 'D/M/YYYY HH:mm:ss',
|
18
|
+
monthBeforeYear: true,
|
19
|
+
previousMonth: 'Previous month (PageUp)',
|
20
|
+
nextMonth: 'Next month (PageDown)',
|
21
|
+
previousYear: 'Last year (Control + left)',
|
22
|
+
nextYear: 'Next year (Control + right)',
|
23
|
+
previousDecade: 'Last decade',
|
24
|
+
nextDecade: 'Next decade',
|
25
|
+
previousCentury: 'Last century',
|
26
|
+
nextCentury: 'Next century'
|
27
|
+
};
|
@@ -0,0 +1,28 @@
|
|
1
|
+
export default {
|
2
|
+
today: 'Today',
|
3
|
+
now: 'Now',
|
4
|
+
backToToday: 'Back to today',
|
5
|
+
ok: 'Ok',
|
6
|
+
clear: 'Clear',
|
7
|
+
month: 'Month',
|
8
|
+
year: 'Year',
|
9
|
+
timeSelect: 'select time',
|
10
|
+
dateSelect: 'select date',
|
11
|
+
weekSelect: 'Choose a week',
|
12
|
+
monthSelect: 'Choose a month',
|
13
|
+
yearSelect: 'Choose a year',
|
14
|
+
decadeSelect: 'Choose a decade',
|
15
|
+
yearFormat: 'YYYY',
|
16
|
+
dateFormat: 'M/D/YYYY',
|
17
|
+
dayFormat: 'D',
|
18
|
+
dateTimeFormat: 'M/D/YYYY HH:mm:ss',
|
19
|
+
monthBeforeYear: true,
|
20
|
+
previousMonth: 'Previous month (PageUp)',
|
21
|
+
nextMonth: 'Next month (PageDown)',
|
22
|
+
previousYear: 'Last year (Control + left)',
|
23
|
+
nextYear: 'Next year (Control + right)',
|
24
|
+
previousDecade: 'Last decade',
|
25
|
+
nextDecade: 'Next decade',
|
26
|
+
previousCentury: 'Last century',
|
27
|
+
nextCentury: 'Next century'
|
28
|
+
};
|
@@ -0,0 +1,27 @@
|
|
1
|
+
export default {
|
2
|
+
today: 'Hoy',
|
3
|
+
now: 'Ahora',
|
4
|
+
backToToday: 'Volver a hoy',
|
5
|
+
ok: 'Aceptar',
|
6
|
+
clear: 'Limpiar',
|
7
|
+
month: 'Mes',
|
8
|
+
year: 'Año',
|
9
|
+
timeSelect: 'Seleccionar hora',
|
10
|
+
dateSelect: 'Seleccionar fecha',
|
11
|
+
monthSelect: 'Elegir un mes',
|
12
|
+
yearSelect: 'Elegir un año',
|
13
|
+
decadeSelect: 'Elegir una década',
|
14
|
+
yearFormat: 'YYYY',
|
15
|
+
dateFormat: 'D/M/YYYY',
|
16
|
+
dayFormat: 'D',
|
17
|
+
dateTimeFormat: 'D/M/YYYY HH:mm:ss',
|
18
|
+
monthBeforeYear: true,
|
19
|
+
previousMonth: 'Mes anterior (PageUp)',
|
20
|
+
nextMonth: 'Mes siguiente (PageDown)',
|
21
|
+
previousYear: 'Año anterior (Control + left)',
|
22
|
+
nextYear: 'Año siguiente (Control + right)',
|
23
|
+
previousDecade: 'Década anterior',
|
24
|
+
nextDecade: 'Década siguiente',
|
25
|
+
previousCentury: 'Siglo anterior',
|
26
|
+
nextCentury: 'Siglo siguiente'
|
27
|
+
};
|
@@ -0,0 +1,27 @@
|
|
1
|
+
export default {
|
2
|
+
today: 'Täna',
|
3
|
+
now: 'Praegu',
|
4
|
+
backToToday: 'Tagasi tänase juurde',
|
5
|
+
ok: 'Ok',
|
6
|
+
clear: 'Tühista',
|
7
|
+
month: 'Kuu',
|
8
|
+
year: 'Aasta',
|
9
|
+
timeSelect: 'Vali aeg',
|
10
|
+
dateSelect: 'Vali kuupäev',
|
11
|
+
monthSelect: 'Vali kuu',
|
12
|
+
yearSelect: 'Vali aasta',
|
13
|
+
decadeSelect: 'Vali dekaad',
|
14
|
+
yearFormat: 'YYYY',
|
15
|
+
dateFormat: 'D.M.YYYY',
|
16
|
+
dayFormat: 'D',
|
17
|
+
dateTimeFormat: 'D.M.YYYY HH:mm:ss',
|
18
|
+
monthBeforeYear: true,
|
19
|
+
previousMonth: 'Eelmine kuu (PageUp)',
|
20
|
+
nextMonth: 'Järgmine kuu (PageDown)',
|
21
|
+
previousYear: 'Eelmine aasta (Control + left)',
|
22
|
+
nextYear: 'Järgmine aasta (Control + right)',
|
23
|
+
previousDecade: 'Eelmine dekaad',
|
24
|
+
nextDecade: 'Järgmine dekaad',
|
25
|
+
previousCentury: 'Eelmine sajand',
|
26
|
+
nextCentury: 'Järgmine sajand'
|
27
|
+
};
|