@seafile/seafile-calendar 0.0.30-beta.1 → 0.0.30-beta.3
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 +7500 -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 +454 -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 +135 -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 +444 -0
- package/es/date/DateTBody.js +280 -0
- package/es/date/DateTHead.js +86 -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 +272 -0
- package/es/util/toTime.js +21 -0
- package/es/year/YearPanel.js +194 -0
- package/lib/Calendar.js +517 -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 +160 -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 +476 -0
- package/lib/date/DateTBody.js +307 -0
- package/lib/date/DateTHead.js +106 -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 +307 -0
- package/lib/util/toTime.js +28 -0
- package/lib/year/YearPanel.js +219 -0
- package/package.json +2 -1
@@ -0,0 +1,31 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
exports.__esModule = true;
|
4
|
+
exports['default'] = {
|
5
|
+
today: 'Hoje',
|
6
|
+
now: 'Agora',
|
7
|
+
backToToday: 'Voltar para hoje',
|
8
|
+
ok: 'Ok',
|
9
|
+
clear: 'Limpar',
|
10
|
+
month: 'Mês',
|
11
|
+
year: 'Ano',
|
12
|
+
timeSelect: 'Selecionar tempo',
|
13
|
+
dateSelect: 'Selecionar data',
|
14
|
+
monthSelect: 'Escolher mês',
|
15
|
+
yearSelect: 'Escolher ano',
|
16
|
+
decadeSelect: 'Escolher década',
|
17
|
+
yearFormat: 'YYYY',
|
18
|
+
dateFormat: 'D/M/YYYY',
|
19
|
+
dayFormat: 'D',
|
20
|
+
dateTimeFormat: 'D/M/YYYY HH:mm:ss',
|
21
|
+
monthBeforeYear: false,
|
22
|
+
previousMonth: 'Mês anterior (PageUp)',
|
23
|
+
nextMonth: 'Próximo mês (PageDown)',
|
24
|
+
previousYear: 'Ano anterior (Control + esquerda)',
|
25
|
+
nextYear: 'Próximo ano (Control + direita)',
|
26
|
+
previousDecade: 'Década anterior',
|
27
|
+
nextDecade: 'Próxima década',
|
28
|
+
previousCentury: 'Século anterior',
|
29
|
+
nextCentury: 'Próximo século'
|
30
|
+
};
|
31
|
+
module.exports = exports['default'];
|
@@ -0,0 +1,31 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
exports.__esModule = true;
|
4
|
+
exports['default'] = {
|
5
|
+
today: 'Hoje',
|
6
|
+
now: 'Agora',
|
7
|
+
backToToday: 'Hoje',
|
8
|
+
ok: 'Ok',
|
9
|
+
clear: 'Limpar',
|
10
|
+
month: 'Mês',
|
11
|
+
year: 'Ano',
|
12
|
+
timeSelect: 'Selecionar hora',
|
13
|
+
dateSelect: 'Selecionar data',
|
14
|
+
monthSelect: 'Selecionar mês',
|
15
|
+
yearSelect: 'Selecionar ano',
|
16
|
+
decadeSelect: 'Selecionar década',
|
17
|
+
yearFormat: 'YYYY',
|
18
|
+
dateFormat: 'D/M/YYYY',
|
19
|
+
dayFormat: 'D',
|
20
|
+
dateTimeFormat: 'D/M/YYYY HH:mm:ss',
|
21
|
+
monthBeforeYear: true,
|
22
|
+
previousMonth: 'Mês anterior (PageUp)',
|
23
|
+
nextMonth: 'Mês seguinte (PageDown)',
|
24
|
+
previousYear: 'Ano anterior (Control + left)',
|
25
|
+
nextYear: 'Ano seguinte (Control + right)',
|
26
|
+
previousDecade: 'Década anterior',
|
27
|
+
nextDecade: 'Década seguinte',
|
28
|
+
previousCentury: 'Século anterior',
|
29
|
+
nextCentury: 'Século seguinte'
|
30
|
+
};
|
31
|
+
module.exports = exports['default'];
|
@@ -0,0 +1,32 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
exports.__esModule = true;
|
4
|
+
exports['default'] = {
|
5
|
+
today: 'Azi',
|
6
|
+
now: 'Acum',
|
7
|
+
backToToday: 'Înapoi la azi',
|
8
|
+
ok: 'Ok',
|
9
|
+
clear: 'Șterge',
|
10
|
+
month: 'Lună',
|
11
|
+
year: 'An',
|
12
|
+
timeSelect: 'selectează timpul',
|
13
|
+
dateSelect: 'selectează data',
|
14
|
+
weekSelect: 'Alege o săptămână',
|
15
|
+
monthSelect: 'Alege o lună',
|
16
|
+
yearSelect: 'Alege un an',
|
17
|
+
decadeSelect: 'Alege un deceniu',
|
18
|
+
yearFormat: 'YYYY',
|
19
|
+
dateFormat: 'D/M/YYYY',
|
20
|
+
dayFormat: 'D',
|
21
|
+
dateTimeFormat: 'D/M/YYYY HH:mm:ss',
|
22
|
+
monthBeforeYear: true,
|
23
|
+
previousMonth: 'Luna anterioară (PageUp)',
|
24
|
+
nextMonth: 'Luna următoare (PageDown)',
|
25
|
+
previousYear: 'Anul anterior (Control + stânga)',
|
26
|
+
nextYear: 'Anul următor (Control + dreapta)',
|
27
|
+
previousDecade: 'Deceniul anterior',
|
28
|
+
nextDecade: 'Deceniul următor',
|
29
|
+
previousCentury: 'Secolul anterior',
|
30
|
+
nextCentury: 'Secolul următor'
|
31
|
+
};
|
32
|
+
module.exports = exports['default'];
|
@@ -0,0 +1,31 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
exports.__esModule = true;
|
4
|
+
exports['default'] = {
|
5
|
+
today: 'Сегодня',
|
6
|
+
now: 'Сейчас',
|
7
|
+
backToToday: 'Текущая дата',
|
8
|
+
ok: 'Ok',
|
9
|
+
clear: 'Очистить',
|
10
|
+
month: 'Месяц',
|
11
|
+
year: 'Год',
|
12
|
+
timeSelect: 'Выбрать время',
|
13
|
+
dateSelect: 'Выбрать дату',
|
14
|
+
monthSelect: 'Выбрать месяц',
|
15
|
+
yearSelect: 'Выбрать год',
|
16
|
+
decadeSelect: 'Выбрать десятилетие',
|
17
|
+
yearFormat: 'YYYY',
|
18
|
+
dateFormat: 'D-M-YYYY',
|
19
|
+
dayFormat: 'D',
|
20
|
+
dateTimeFormat: 'D-M-YYYY HH:mm:ss',
|
21
|
+
monthBeforeYear: true,
|
22
|
+
previousMonth: 'Предыдущий месяц (PageUp)',
|
23
|
+
nextMonth: 'Следующий месяц (PageDown)',
|
24
|
+
previousYear: 'Предыдущий год (Control + left)',
|
25
|
+
nextYear: 'Следующий год (Control + right)',
|
26
|
+
previousDecade: 'Предыдущее десятилетие',
|
27
|
+
nextDecade: 'Следущее десятилетие',
|
28
|
+
previousCentury: 'Предыдущий век',
|
29
|
+
nextCentury: 'Следующий век'
|
30
|
+
};
|
31
|
+
module.exports = exports['default'];
|
@@ -0,0 +1,31 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
exports.__esModule = true;
|
4
|
+
exports['default'] = {
|
5
|
+
today: 'Dnes',
|
6
|
+
now: 'Teraz',
|
7
|
+
backToToday: 'Späť na dnes',
|
8
|
+
ok: 'Ok',
|
9
|
+
clear: 'Vymazať',
|
10
|
+
month: 'Mesiac',
|
11
|
+
year: 'Rok',
|
12
|
+
timeSelect: 'Vybrať čas',
|
13
|
+
dateSelect: 'Vybrať dátum',
|
14
|
+
monthSelect: 'Vybrať mesiac',
|
15
|
+
yearSelect: 'Vybrať rok',
|
16
|
+
decadeSelect: 'Vybrať dekádu',
|
17
|
+
yearFormat: 'YYYY',
|
18
|
+
dateFormat: 'D.M.YYYY',
|
19
|
+
dayFormat: 'D',
|
20
|
+
dateTimeFormat: 'D.M.YYYY HH:mm:ss',
|
21
|
+
monthBeforeYear: true,
|
22
|
+
previousMonth: 'Predchádzajúci mesiac (PageUp)',
|
23
|
+
nextMonth: 'Nasledujúci mesiac (PageDown)',
|
24
|
+
previousYear: 'Predchádzajúci rok (Control + left)',
|
25
|
+
nextYear: 'Nasledujúci rok (Control + right)',
|
26
|
+
previousDecade: 'Predchádzajúca dekáda',
|
27
|
+
nextDecade: 'Nasledujúca dekáda',
|
28
|
+
previousCentury: 'Predchádzajúce storočie',
|
29
|
+
nextCentury: 'Nasledujúce storočie'
|
30
|
+
};
|
31
|
+
module.exports = exports['default'];
|
@@ -0,0 +1,31 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
exports.__esModule = true;
|
4
|
+
exports['default'] = {
|
5
|
+
today: 'Danes',
|
6
|
+
now: 'Trenutno',
|
7
|
+
backToToday: 'Nazaj na danes',
|
8
|
+
ok: 'V redu',
|
9
|
+
clear: 'Počisti',
|
10
|
+
month: 'Mesec',
|
11
|
+
year: 'Leto',
|
12
|
+
timeSelect: 'Izberite čas',
|
13
|
+
dateSelect: 'Izberite datum',
|
14
|
+
monthSelect: 'Izberite mesec',
|
15
|
+
yearSelect: 'Izberite leto',
|
16
|
+
decadeSelect: 'Izberite desetletje',
|
17
|
+
yearFormat: 'YYYY',
|
18
|
+
dateFormat: 'DD.MM.YYYY',
|
19
|
+
dayFormat: 'D',
|
20
|
+
dateTimeFormat: 'DD.MM.YYYY HH:mm:ss',
|
21
|
+
monthBeforeYear: true,
|
22
|
+
previousMonth: 'Prejšnji mesec (PageUp)',
|
23
|
+
nextMonth: 'Naslednji mesec (PageDown)',
|
24
|
+
previousYear: 'Prejšnje leto (Control + left)',
|
25
|
+
nextYear: 'Naslednje leto (Control + right)',
|
26
|
+
previousDecade: 'Prejšnje desetletje',
|
27
|
+
nextDecade: 'Naslednje desetletje',
|
28
|
+
previousCentury: 'Prejšnje stoletje',
|
29
|
+
nextCentury: 'Naslednje stoletje'
|
30
|
+
};
|
31
|
+
module.exports = exports['default'];
|
@@ -0,0 +1,31 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
exports.__esModule = true;
|
4
|
+
exports['default'] = {
|
5
|
+
today: 'Danas',
|
6
|
+
now: 'Sada',
|
7
|
+
backToToday: 'Vrati se na danas',
|
8
|
+
ok: 'U redu',
|
9
|
+
clear: 'Obriši',
|
10
|
+
month: 'Mesec',
|
11
|
+
year: 'Godina',
|
12
|
+
timeSelect: 'Izaberi vreme',
|
13
|
+
dateSelect: 'Izaberi datum',
|
14
|
+
monthSelect: 'Izaberi mesec',
|
15
|
+
yearSelect: 'Izaberi godinu',
|
16
|
+
decadeSelect: 'Izaberi deceniju',
|
17
|
+
yearFormat: 'YYYY',
|
18
|
+
dateFormat: 'DD.MM.YYYY',
|
19
|
+
dayFormat: 'D',
|
20
|
+
dateTimeFormat: 'DD.MM.YYYY HH:mm:ss',
|
21
|
+
monthBeforeYear: true,
|
22
|
+
previousMonth: 'Prethodni mesec (PageUp)',
|
23
|
+
nextMonth: 'Sledeći mesec (PageDown)',
|
24
|
+
previousYear: 'Prethodna godina (Control + left)',
|
25
|
+
nextYear: 'Sledeća godina (Control + right)',
|
26
|
+
previousDecade: 'Prethodna decenija',
|
27
|
+
nextDecade: 'Sledeća decenija',
|
28
|
+
previousCentury: 'Prethodni vek',
|
29
|
+
nextCentury: 'Sledeći vek'
|
30
|
+
};
|
31
|
+
module.exports = exports['default'];
|
@@ -0,0 +1,31 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
exports.__esModule = true;
|
4
|
+
exports['default'] = {
|
5
|
+
today: 'I dag',
|
6
|
+
now: 'Nu',
|
7
|
+
backToToday: 'Till idag',
|
8
|
+
ok: 'Ok',
|
9
|
+
clear: 'Avbryt',
|
10
|
+
month: 'Månad',
|
11
|
+
year: 'År',
|
12
|
+
timeSelect: 'Välj tidpunkt',
|
13
|
+
dateSelect: 'Välj datum',
|
14
|
+
monthSelect: 'Välj månad',
|
15
|
+
yearSelect: 'Välj år',
|
16
|
+
decadeSelect: 'Välj årtionde',
|
17
|
+
yearFormat: 'YYYY',
|
18
|
+
dateFormat: 'YYYY-MM-DD',
|
19
|
+
dayFormat: 'D',
|
20
|
+
dateTimeFormat: 'YYYY-MM-DD H:mm:ss',
|
21
|
+
monthBeforeYear: true,
|
22
|
+
previousMonth: 'Förra månaden (PageUp)',
|
23
|
+
nextMonth: 'Nästa månad (PageDown)',
|
24
|
+
previousYear: 'Föreg år (Control + left)',
|
25
|
+
nextYear: 'Nästa år (Control + right)',
|
26
|
+
previousDecade: 'Föreg årtionde',
|
27
|
+
nextDecade: 'Nästa årtionde',
|
28
|
+
previousCentury: 'Föreg århundrade',
|
29
|
+
nextCentury: 'Nästa århundrade'
|
30
|
+
};
|
31
|
+
module.exports = exports['default'];
|
@@ -0,0 +1,32 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
exports.__esModule = true;
|
4
|
+
exports['default'] = {
|
5
|
+
today: 'இன்று',
|
6
|
+
now: 'இப்போது',
|
7
|
+
backToToday: 'இன்றுக்கு திரும்பு',
|
8
|
+
ok: 'சரி',
|
9
|
+
clear: 'அழி',
|
10
|
+
month: 'மாதம்',
|
11
|
+
year: 'வருடம்',
|
12
|
+
timeSelect: 'நேரத்தைத் தேர்ந்தெடு',
|
13
|
+
dateSelect: 'தேதியைத் தேர்ந்தெடு',
|
14
|
+
weekSelect: 'வாரத்தைத் தேர்வுசெய்க',
|
15
|
+
monthSelect: 'மாதத்தைத் தேர்வுசெய்க',
|
16
|
+
yearSelect: 'வருடத்தைத் தேர்வுசெய்க',
|
17
|
+
decadeSelect: 'தசாப்தத்தைத் தேர்வுசெய்க',
|
18
|
+
yearFormat: 'YYYY',
|
19
|
+
dateFormat: 'M/D/YYYY',
|
20
|
+
dayFormat: 'D',
|
21
|
+
dateTimeFormat: 'M/D/YYYY HH:mm:ss',
|
22
|
+
monthBeforeYear: true,
|
23
|
+
previousMonth: 'முந்தைய மாதம் (PageUp)',
|
24
|
+
nextMonth: 'அடுத்த மாதம் (PageDown)',
|
25
|
+
previousYear: 'முந்தைய வருடம் (Control + left)',
|
26
|
+
nextYear: 'அடுத்த வருடம் (Control + right)',
|
27
|
+
previousDecade: 'முந்தைய தசாப்தம்',
|
28
|
+
nextDecade: 'அடுத்த தசாப்தம்',
|
29
|
+
previousCentury: 'முந்தைய நூற்றாண்டு',
|
30
|
+
nextCentury: 'அடுத்த நூற்றாண்டு'
|
31
|
+
};
|
32
|
+
module.exports = exports['default'];
|
@@ -0,0 +1,31 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
exports.__esModule = true;
|
4
|
+
exports['default'] = {
|
5
|
+
today: 'วันนี้',
|
6
|
+
now: 'ตอนนี้',
|
7
|
+
backToToday: 'กลับไปยังวันนี้',
|
8
|
+
ok: 'ตกลง',
|
9
|
+
clear: 'ลบล้าง',
|
10
|
+
month: 'เดือน',
|
11
|
+
year: 'ปี',
|
12
|
+
timeSelect: 'เลือกเวลา',
|
13
|
+
dateSelect: 'เลือกวัน',
|
14
|
+
monthSelect: 'เลือกเดือน',
|
15
|
+
yearSelect: 'เลือกปี',
|
16
|
+
decadeSelect: 'เลือกทศวรรษ',
|
17
|
+
yearFormat: 'YYYY',
|
18
|
+
dateFormat: 'D/M/YYYY',
|
19
|
+
dayFormat: 'D',
|
20
|
+
dateTimeFormat: 'D/M/YYYY HH:mm:ss',
|
21
|
+
monthBeforeYear: true,
|
22
|
+
previousMonth: 'เดือนก่อนหน้า (PageUp)',
|
23
|
+
nextMonth: 'เดือนถัดไป (PageDown)',
|
24
|
+
previousYear: 'ปีก่อนหน้า (Control + left)',
|
25
|
+
nextYear: 'ปีถัดไป (Control + right)',
|
26
|
+
previousDecade: 'ทศวรรษก่อนหน้า',
|
27
|
+
nextDecade: 'ทศวรรษถัดไป',
|
28
|
+
previousCentury: 'ศตวรรษก่อนหน้า',
|
29
|
+
nextCentury: 'ศตวรรษถัดไป'
|
30
|
+
};
|
31
|
+
module.exports = exports['default'];
|
@@ -0,0 +1,31 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
exports.__esModule = true;
|
4
|
+
exports['default'] = {
|
5
|
+
today: 'Bugün',
|
6
|
+
now: 'Şimdi',
|
7
|
+
backToToday: 'Bugüne Geri Dön',
|
8
|
+
ok: 'tamam',
|
9
|
+
clear: 'Temizle',
|
10
|
+
month: 'Ay',
|
11
|
+
year: 'Yıl',
|
12
|
+
timeSelect: 'Zaman Seç',
|
13
|
+
dateSelect: 'Tarih Seç',
|
14
|
+
monthSelect: 'Ay Seç',
|
15
|
+
yearSelect: 'Yıl Seç',
|
16
|
+
decadeSelect: 'On Yıl Seç',
|
17
|
+
yearFormat: 'YYYY',
|
18
|
+
dateFormat: 'M/D/YYYY',
|
19
|
+
dayFormat: 'D',
|
20
|
+
dateTimeFormat: 'M/D/YYYY HH:mm:ss',
|
21
|
+
monthBeforeYear: true,
|
22
|
+
previousMonth: 'Önceki Ay (PageUp)',
|
23
|
+
nextMonth: 'Sonraki Ay (PageDown)',
|
24
|
+
previousYear: 'Önceki Yıl (Control + Sol)',
|
25
|
+
nextYear: 'Sonraki Yıl (Control + Sağ)',
|
26
|
+
previousDecade: 'Önceki On Yıl',
|
27
|
+
nextDecade: 'Sonraki On Yıl',
|
28
|
+
previousCentury: 'Önceki Yüzyıl',
|
29
|
+
nextCentury: 'Sonraki Yüzyıl'
|
30
|
+
};
|
31
|
+
module.exports = exports['default'];
|
@@ -0,0 +1,30 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
exports.__esModule = true;
|
4
|
+
exports['default'] = {
|
5
|
+
today: 'بۈگۈن',
|
6
|
+
now: 'ھازىر',
|
7
|
+
backToToday: 'بۈگۈنگە قايتىش',
|
8
|
+
ok: 'مۇقىملاشتۇرۇش',
|
9
|
+
timeSelect: 'ۋاقىت تاللاش',
|
10
|
+
dateSelect: 'كۈن تاللاش',
|
11
|
+
clear: 'تازىلاش',
|
12
|
+
month: 'ئاي',
|
13
|
+
year: 'يىل',
|
14
|
+
previousMonth: 'ئالدىنقى ئاي(ئالدىنقى بەت )',
|
15
|
+
nextMonth: 'كېلەركى ئاي (كېلەركى بەت)',
|
16
|
+
monthSelect: 'ئاي تاللاش',
|
17
|
+
yearSelect: 'يىل تاللاش',
|
18
|
+
decadeSelect: 'يىللارنى تاللاش',
|
19
|
+
yearFormat: 'YYYY-يىلى',
|
20
|
+
dayFormat: 'D-كۈنى',
|
21
|
+
dateFormat: 'YYYY-يىلىM-ئاينىڭD-كۈنى',
|
22
|
+
dateTimeFormat: 'YYYY-يىلىM—ئاينىڭD-كۈنى، HH:mm:ss',
|
23
|
+
previousYear: 'ئالدىنقى يىلى (Controlبىلەن يۆنىلىش كونۇپكىسى)',
|
24
|
+
nextYear: 'كېلەركى يىلى (Controlبىلەن يۆنىلىش كونۇپكىسى)',
|
25
|
+
previousDecade: 'ئالدىنقى يىللار',
|
26
|
+
nextDecade: 'كېيىنكى يىللار',
|
27
|
+
previousCentury: 'ئالدىنقى ئەسىر',
|
28
|
+
nextCentury: 'كېيىنكى ئەسىر'
|
29
|
+
};
|
30
|
+
module.exports = exports['default'];
|
@@ -0,0 +1,31 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
exports.__esModule = true;
|
4
|
+
exports['default'] = {
|
5
|
+
today: 'Сьогодні',
|
6
|
+
now: 'Зараз',
|
7
|
+
backToToday: 'Поточна дата',
|
8
|
+
ok: 'Ok',
|
9
|
+
clear: 'Очистити',
|
10
|
+
month: 'Місяць',
|
11
|
+
year: 'Рік',
|
12
|
+
timeSelect: 'Обрати час',
|
13
|
+
dateSelect: 'Обрати дату',
|
14
|
+
monthSelect: 'Обрати місяць',
|
15
|
+
yearSelect: 'Обрати рік',
|
16
|
+
decadeSelect: 'Обрати десятиріччя',
|
17
|
+
yearFormat: 'YYYY',
|
18
|
+
dateFormat: 'D-M-YYYY',
|
19
|
+
dayFormat: 'D',
|
20
|
+
dateTimeFormat: 'D-M-YYYY HH:mm:ss',
|
21
|
+
monthBeforeYear: true,
|
22
|
+
previousMonth: 'Попередній місяць (PageUp)',
|
23
|
+
nextMonth: 'Наступний місяць (PageDown)',
|
24
|
+
previousYear: 'Попередній рік (Control + left)',
|
25
|
+
nextYear: 'Наступний рік (Control + right)',
|
26
|
+
previousDecade: 'Попереднє десятиріччя',
|
27
|
+
nextDecade: 'Наступне десятиріччя',
|
28
|
+
previousCentury: 'Попереднє століття',
|
29
|
+
nextCentury: 'Наступне століття'
|
30
|
+
};
|
31
|
+
module.exports = exports['default'];
|
@@ -0,0 +1,32 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
exports.__esModule = true;
|
4
|
+
exports['default'] = {
|
5
|
+
today: 'Hôm nay',
|
6
|
+
now: 'Bây giờ',
|
7
|
+
backToToday: 'Trở về hôm nay',
|
8
|
+
ok: 'Ok',
|
9
|
+
clear: 'Xóa',
|
10
|
+
month: 'Tháng',
|
11
|
+
year: 'Năm',
|
12
|
+
timeSelect: 'Chọn thời gian',
|
13
|
+
dateSelect: 'Chọn ngày',
|
14
|
+
weekSelect: 'Chọn tuần',
|
15
|
+
monthSelect: 'Chọn tháng',
|
16
|
+
yearSelect: 'Chọn năm',
|
17
|
+
decadeSelect: 'Chọn thập kỷ',
|
18
|
+
yearFormat: 'YYYY',
|
19
|
+
dateFormat: 'D/M/YYYY',
|
20
|
+
dayFormat: 'D',
|
21
|
+
dateTimeFormat: 'D/M/YYYY HH:mm:ss',
|
22
|
+
monthBeforeYear: true,
|
23
|
+
previousMonth: 'Tháng trước (PageUp)',
|
24
|
+
nextMonth: 'Tháng sau (PageDown)',
|
25
|
+
previousYear: 'Năm trước (Control + left)',
|
26
|
+
nextYear: 'Năm sau (Control + right)',
|
27
|
+
previousDecade: 'Thập kỷ trước',
|
28
|
+
nextDecade: 'Thập kỷ sau',
|
29
|
+
previousCentury: 'Thế kỷ trước',
|
30
|
+
nextCentury: 'Thế kỷ sau'
|
31
|
+
};
|
32
|
+
module.exports = exports['default'];
|
@@ -0,0 +1,31 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
exports.__esModule = true;
|
4
|
+
exports['default'] = {
|
5
|
+
today: '今天',
|
6
|
+
now: '此刻',
|
7
|
+
backToToday: '返回今天',
|
8
|
+
ok: '确定',
|
9
|
+
timeSelect: '选择时间',
|
10
|
+
dateSelect: '选择日期',
|
11
|
+
weekSelect: '选择周',
|
12
|
+
clear: '清除',
|
13
|
+
month: '月',
|
14
|
+
year: '年',
|
15
|
+
previousMonth: '上个月 (翻页上键)',
|
16
|
+
nextMonth: '下个月 (翻页下键)',
|
17
|
+
monthSelect: '选择月份',
|
18
|
+
yearSelect: '选择年份',
|
19
|
+
decadeSelect: '选择年代',
|
20
|
+
yearFormat: 'YYYY年',
|
21
|
+
dayFormat: 'D日',
|
22
|
+
dateFormat: 'YYYY年M月D日',
|
23
|
+
dateTimeFormat: 'YYYY年M月D日 HH时mm分ss秒',
|
24
|
+
previousYear: '上一年 (Control键加左方向键)',
|
25
|
+
nextYear: '下一年 (Control键加右方向键)',
|
26
|
+
previousDecade: '上一年代',
|
27
|
+
nextDecade: '下一年代',
|
28
|
+
previousCentury: '上一世纪',
|
29
|
+
nextCentury: '下一世纪'
|
30
|
+
};
|
31
|
+
module.exports = exports['default'];
|
@@ -0,0 +1,30 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
exports.__esModule = true;
|
4
|
+
exports['default'] = {
|
5
|
+
today: '今天',
|
6
|
+
now: '此刻',
|
7
|
+
backToToday: '返回今天',
|
8
|
+
ok: '確定',
|
9
|
+
timeSelect: '選擇時間',
|
10
|
+
dateSelect: '選擇日期',
|
11
|
+
clear: '清除',
|
12
|
+
month: '月',
|
13
|
+
year: '年',
|
14
|
+
previousMonth: '上個月 (翻頁上鍵)',
|
15
|
+
nextMonth: '下個月 (翻頁下鍵)',
|
16
|
+
monthSelect: '選擇月份',
|
17
|
+
yearSelect: '選擇年份',
|
18
|
+
decadeSelect: '選擇年代',
|
19
|
+
yearFormat: 'YYYY年',
|
20
|
+
dayFormat: 'D日',
|
21
|
+
dateFormat: 'YYYY年M月D日',
|
22
|
+
dateTimeFormat: 'YYYY年M月D日 HH時mm分ss秒',
|
23
|
+
previousYear: '上一年 (Control鍵加左方向鍵)',
|
24
|
+
nextYear: '下一年 (Control鍵加右方向鍵)',
|
25
|
+
previousDecade: '上一年代',
|
26
|
+
nextDecade: '下一年代',
|
27
|
+
previousCentury: '上一世紀',
|
28
|
+
nextCentury: '下一世紀'
|
29
|
+
};
|
30
|
+
module.exports = exports['default'];
|
@@ -0,0 +1,153 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
exports.__esModule = true;
|
4
|
+
exports.calendarMixinWrapper = exports.calendarMixinDefaultProps = exports.calendarMixinPropTypes = undefined;
|
5
|
+
|
6
|
+
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
|
7
|
+
|
8
|
+
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
|
9
|
+
|
10
|
+
var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');
|
11
|
+
|
12
|
+
var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
|
13
|
+
|
14
|
+
var _inherits2 = require('babel-runtime/helpers/inherits');
|
15
|
+
|
16
|
+
var _inherits3 = _interopRequireDefault(_inherits2);
|
17
|
+
|
18
|
+
exports.getNowByCurrentStateValue = getNowByCurrentStateValue;
|
19
|
+
|
20
|
+
var _react = require('react');
|
21
|
+
|
22
|
+
var _react2 = _interopRequireDefault(_react);
|
23
|
+
|
24
|
+
var _propTypes = require('prop-types');
|
25
|
+
|
26
|
+
var _propTypes2 = _interopRequireDefault(_propTypes);
|
27
|
+
|
28
|
+
var _classnames = require('classnames');
|
29
|
+
|
30
|
+
var _classnames2 = _interopRequireDefault(_classnames);
|
31
|
+
|
32
|
+
var _dayjs = require('dayjs');
|
33
|
+
|
34
|
+
var _dayjs2 = _interopRequireDefault(_dayjs);
|
35
|
+
|
36
|
+
var _index = require('../util/index');
|
37
|
+
|
38
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
39
|
+
|
40
|
+
function noop() {}
|
41
|
+
|
42
|
+
function getNowByCurrentStateValue(value) {
|
43
|
+
var ret = void 0;
|
44
|
+
if (value) {
|
45
|
+
ret = (0, _index.getTodayTime)(value);
|
46
|
+
} else {
|
47
|
+
ret = (0, _dayjs2['default'])();
|
48
|
+
}
|
49
|
+
return ret;
|
50
|
+
}
|
51
|
+
|
52
|
+
var calendarMixinPropTypes = exports.calendarMixinPropTypes = {
|
53
|
+
value: _propTypes2['default'].object,
|
54
|
+
defaultValue: _propTypes2['default'].object,
|
55
|
+
onKeyDown: _propTypes2['default'].func
|
56
|
+
};
|
57
|
+
|
58
|
+
var calendarMixinDefaultProps = exports.calendarMixinDefaultProps = {
|
59
|
+
onKeyDown: noop
|
60
|
+
};
|
61
|
+
|
62
|
+
var calendarMixinWrapper = exports.calendarMixinWrapper = function calendarMixinWrapper(ComposeComponent) {
|
63
|
+
var _class, _temp2;
|
64
|
+
|
65
|
+
return _temp2 = _class = function (_ComposeComponent) {
|
66
|
+
(0, _inherits3['default'])(_class, _ComposeComponent);
|
67
|
+
|
68
|
+
function _class() {
|
69
|
+
var _temp, _this, _ret;
|
70
|
+
|
71
|
+
(0, _classCallCheck3['default'])(this, _class);
|
72
|
+
|
73
|
+
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
|
74
|
+
args[_key] = arguments[_key];
|
75
|
+
}
|
76
|
+
|
77
|
+
return _ret = (_temp = (_this = (0, _possibleConstructorReturn3['default'])(this, _ComposeComponent.call.apply(_ComposeComponent, [this].concat(args))), _this), _this.onSelect = function (value, cause) {
|
78
|
+
if (value) {
|
79
|
+
_this.setValue(value);
|
80
|
+
}
|
81
|
+
_this.setSelectedValue(value, cause);
|
82
|
+
}, _this.renderRoot = function (newProps) {
|
83
|
+
var _className;
|
84
|
+
|
85
|
+
var props = _this.props;
|
86
|
+
var prefixCls = props.prefixCls;
|
87
|
+
|
88
|
+
var className = (_className = {}, _className[prefixCls] = 1, _className[prefixCls + '-hidden'] = !props.visible, _className[props.className] = !!props.className, _className[newProps.className] = !!newProps.className, _className);
|
89
|
+
|
90
|
+
return _react2['default'].createElement(
|
91
|
+
'div',
|
92
|
+
{
|
93
|
+
ref: _this.saveRoot,
|
94
|
+
className: '' + (0, _classnames2['default'])(className),
|
95
|
+
style: _this.props.style,
|
96
|
+
tabIndex: '0',
|
97
|
+
onKeyDown: _this.onKeyDown,
|
98
|
+
onBlur: _this.onBlur
|
99
|
+
},
|
100
|
+
newProps.children
|
101
|
+
);
|
102
|
+
}, _this.setSelectedValue = function (selectedValue, cause) {
|
103
|
+
// if (this.isAllowedDate(selectedValue)) {
|
104
|
+
if (!('selectedValue' in _this.props)) {
|
105
|
+
_this.setState({
|
106
|
+
selectedValue: selectedValue
|
107
|
+
});
|
108
|
+
}
|
109
|
+
if (_this.props.onSelect) {
|
110
|
+
_this.props.onSelect(selectedValue, cause);
|
111
|
+
}
|
112
|
+
// }
|
113
|
+
}, _this.setValue = function (value) {
|
114
|
+
var originalValue = _this.state.value;
|
115
|
+
if (!('value' in _this.props)) {
|
116
|
+
_this.setState({
|
117
|
+
value: value
|
118
|
+
});
|
119
|
+
}
|
120
|
+
if (originalValue && value && !originalValue.isSame(value) || !originalValue && value || originalValue && !value) {
|
121
|
+
_this.props.onChange(value);
|
122
|
+
}
|
123
|
+
}, _this.isAllowedDate = function (value) {
|
124
|
+
var disabledDate = _this.props.disabledDate;
|
125
|
+
var disabledTime = _this.props.disabledTime;
|
126
|
+
return (0, _index.isAllowedDate)(value, disabledDate, disabledTime);
|
127
|
+
}, _temp), (0, _possibleConstructorReturn3['default'])(_this, _ret);
|
128
|
+
}
|
129
|
+
|
130
|
+
_class.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, prevState) {
|
131
|
+
// Use origin function if provided
|
132
|
+
if (ComposeComponent.getDerivedStateFromProps) {
|
133
|
+
return ComposeComponent.getDerivedStateFromProps(nextProps, prevState);
|
134
|
+
}
|
135
|
+
|
136
|
+
var value = nextProps.value,
|
137
|
+
selectedValue = nextProps.selectedValue;
|
138
|
+
|
139
|
+
var newState = {};
|
140
|
+
|
141
|
+
if ('value' in nextProps) {
|
142
|
+
newState.value = value || nextProps.defaultValue || getNowByCurrentStateValue(prevState.value);
|
143
|
+
}
|
144
|
+
if ('selectedValue' in nextProps) {
|
145
|
+
newState.selectedValue = selectedValue;
|
146
|
+
}
|
147
|
+
|
148
|
+
return newState;
|
149
|
+
};
|
150
|
+
|
151
|
+
return _class;
|
152
|
+
}(ComposeComponent), _class.displayName = 'CalendarMixinWrapper', _class.defaultProps = ComposeComponent.defaultProps, _temp2;
|
153
|
+
};
|