Skip to content
This repository was archived by the owner on Jan 20, 2026. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
93 commits
Select commit Hold shift + click to select a range
ca1c613
add hour and minute
Michael18811380328 Aug 24, 2019
e4459ad
change default color
Michael18811380328 Aug 24, 2019
9a16248
update readme
Michael18811380328 Aug 24, 2019
7ce76f5
update version
Michael18811380328 Aug 24, 2019
0d74040
Merge pull request #1 from seafileltd/change-calendar
freeplant Aug 24, 2019
60e568a
change default time to 08:00
Michael18811380328 Aug 26, 2019
f8d9f87
Merge pull request #2 from seafileltd/update-default-time
freeplant Aug 26, 2019
09cef9c
update version
Michael18811380328 Aug 27, 2019
fda112b
Merge pull request #3 from seafileltd/update
Michael18811380328 Aug 27, 2019
b2c7387
set right panel locale
Michael18811380328 Aug 29, 2019
ac1d780
Merge pull request #4 from seafileltd/fix-right-panel-locale
freeplant Aug 29, 2019
ef7ee7b
update version
Michael18811380328 Aug 29, 2019
270b317
update version
Michael18811380328 Aug 29, 2019
bc069c4
set Sunday as the first day of the week
Michael18811380328 Dec 3, 2019
9e9d597
Merge pull request #5 from seafileltd/set-fisrt-day-of-week
freeplant Dec 3, 2019
edea8bd
update version
Michael18811380328 Dec 3, 2019
9ade165
update version
Michael18811380328 Dec 3, 2019
79d2b62
set default locale is enUS
Michael18811380328 Apr 23, 2020
25329ed
Merge pull request #6 from seafileltd/fix-French
freeplant Apr 23, 2020
ec2f95f
update
Michael18811380328 Apr 24, 2020
1462024
change classname
Michael18811380328 May 9, 2020
10a84ad
Merge pull request #7 from seafileltd/change-class
freeplant May 9, 2020
b6f9646
update version to 0.0.12
Michael18811380328 May 9, 2020
a1565d5
change right panel click callback
Michael18811380328 Sep 1, 2020
7b2b8e6
Merge pull request #8 from seafileltd/change-click-hour-callback
freeplant Sep 2, 2020
a3e5ade
Choose precise time to improve
zxj96 Apr 9, 2021
8a8c61f
Merge pull request #9 from seafileltd/precise-time
freeplant Apr 13, 2021
0627814
dayjs replace moment
zxj96 Feb 17, 2022
a26aa3a
fix: optimizated code
zxj96 Feb 22, 2022
49e5606
Merge pull request #10 from seafileltd/dayjs-replace-moment
freeplant Feb 23, 2022
170da48
fix: caldaner width bug
zxj96 Mar 2, 2022
c0643fb
Merge pull request #11 from seafileltd/repair-width-bug
freeplant Mar 3, 2022
c6b8e99
fix: dayjs does not introduce the loaneData plugin
zxj96 Apr 20, 2022
caf7540
Merge pull request #12 from seafileltd/fix-dayjs-bug
freeplant Apr 20, 2022
90c0a84
change click first or last year
Michael18811380328 Sep 8, 2022
c298053
Merge pull request #13 from seafileltd/change-year-click-UI
freeplant Sep 13, 2022
a1d40ae
update version
Michael18811380328 Sep 13, 2022
bd295da
feat: time second
Sep 18, 2024
3104a71
feat: update code
Sep 18, 2024
f573335
feat: update code
Sep 18, 2024
6281a29
feat: update code
YangGuoXuan-0503 Sep 18, 2024
9650d96
feat: update code
YangGuoXuan-0503 Sep 18, 2024
1fbc075
feat: update version
YangGuoXuan-0503 Sep 18, 2024
dc85a50
Merge pull request #15 from seafileltd/feat-time-second
YangGuoXuan-0503 Sep 19, 2024
4320e20
support customizing the first day of week
SailingBoat762 Apr 1, 2025
42c6bca
update
SailingBoat762 Apr 1, 2025
cf40ead
update
SailingBoat762 Apr 1, 2025
302684f
opt code
SailingBoat762 Apr 9, 2025
7e56370
Merge pull request #16 from SailingBoat762/support-customizing-the-fi…
YangGuoXuan-0503 Apr 9, 2025
02b5412
fix: code problems
Apr 15, 2025
aec3142
Merge pull request #17 from seafileltd/fix-code-problems
freeplant Apr 15, 2025
27f7058
add rules
gzcqqqqqqqq1 Jun 15, 2025
cbf92ef
add rules
gzcqqqqqqqq1 Jun 15, 2025
82bb7db
fix code
gzcqqqqqqqq1 Jun 16, 2025
0d363cc
fix code
gzcqqqqqqqq1 Jun 16, 2025
1e3c616
Merge pull request #21 from seafileltd/rule
LJHAAAAA Jun 19, 2025
1eb2dc7
Update version
LJHAAAAA Jun 21, 2025
950fbb9
Update version
LJHAAAAA Jun 21, 2025
739c012
eu and ru,and de init
gzcqqqqqqqq1 Jun 23, 2025
fa2d3b0
Merge pull request #22 from seafileltd/fix-demo
LJHAAAAA Jun 23, 2025
fb70162
add esc and enter logic for time type date
gzcqqqqqqqq1 Jun 27, 2025
60fc30b
update chokidar for node version
Michael18811380328 Jul 1, 2025
ef8b9a0
add enter logic
gzcqqqqqqqq1 Jul 3, 2025
be5aac0
fix time
gzcqqqqqqqq1 Jul 3, 2025
e4f8f45
add um
gzcqqqqqqqq1 Jul 4, 2025
b6a18fe
fix error
gzcqqqqqqqq1 Jul 4, 2025
f626a2c
fix time
gzcqqqqqqqq1 Jul 8, 2025
892ac4c
fix value name
gzcqqqqqqqq1 Jul 8, 2025
e56d03b
opt code
LJHAAAAA Jul 9, 2025
5be0e3a
Merge pull request #23 from seafileltd/escenter
LJHAAAAA Jul 9, 2025
0bae47b
Update version
LJHAAAAA Jul 9, 2025
4298054
fix error color
Michael18811380328 Jul 17, 2025
a9d1ff1
Merge pull request #24 from seafileltd/fix-error-color
LJHAAAAA Jul 17, 2025
fa2bfed
change date input auto focus
Michael18811380328 Aug 6, 2025
7f15192
Merge pull request #25 from seafileltd/new-change-date-input-focus
Michael18811380328 Aug 8, 2025
78a34cd
update calendar to support time input and selection
Oct 15, 2025
b381d8a
Merge pull request #27 from seafileltd/1.0
Michael18811380328 Oct 27, 2025
13ed682
update version
Michael18811380328 Oct 27, 2025
63559dc
feat(ui): update the width of year/month panel and improve style cons…
Aries-0331 Nov 11, 2025
f5e69c2
fix decade panel text color
Aries-0331 Nov 11, 2025
c66082d
update version
Aries-0331 Nov 14, 2025
8e66d8e
Merge pull request #28 from seafileltd/optimize_ui
Michael18811380328 Nov 14, 2025
0f649b0
feat: update calendar ux
Dec 2, 2025
95679a6
chore: reset examples
Dec 2, 2025
7d24541
fix: color style
Dec 3, 2025
78d7c20
fix: calendar width and btn ux
Dec 4, 2025
9453f4d
Merge pull request #29 from seafileltd/feature/update-calendar-style
Michael18811380328 Dec 4, 2025
5bdc743
Merge pull request #30 from seafileltd/update-npm-version
Aries-0331 Dec 4, 2025
b4d17c4
fix: keyboard handler and shortcut key
Dec 8, 2025
8a52d4e
fix: remove shortcut text
Dec 9, 2025
57357f6
Merge pull request #31 from seafileltd/fix/shortcut-key
Michael18811380328 Dec 9, 2025
6e63685
chore: release 1.0.3 (#32)
Aries-0331 Dec 9, 2025
586e8df
feature add disable style
Jan 20, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ sudo: false

notifications:
email:
- yiminghe@gmail.com
- hust2012jiangkai@gmail.com
- bing.an@seafile.com

node_js:
- 10
Expand Down
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,12 @@ http://react-component.github.io/calendar/examples/index.html
<td>auto</td>
<td>whether has ok button in footer</td>
</tr>
<tr>
<td>showHourAndMinute</td>
<td>Boolean</td>
<td>auto</td>
<td>whether has hour-minute chooser in the right panel(for dtable date column)</td>
</tr>
<tr>
<td>timePicker</td>
<td>React Element</td>
Expand Down Expand Up @@ -225,6 +231,12 @@ http://react-component.github.io/calendar/examples/index.html
<td></td>
<td>called when ok button is pressed, only if it's visible</td>
</tr>
<tr>
<td>onClickRightPanelTime</td>
<td>Function()</td>
<td></td>
<td>called when right panel hour and minute is clicked, only prop showHourAndMinute is true</td>
</tr>
<tr>
<td>dateInputPlaceholder</td>
<td>String</td>
Expand Down Expand Up @@ -744,3 +756,6 @@ open coverage/ dir
## License

rc-calendar is released under the MIT license.

# node version
>= 18.20.4
Comment on lines +760 to +761

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The requirement for Node.js version >= 18.20.4 is quite specific and recent. Is this a strict requirement for the package to function? To ensure broader compatibility for developers using this library, it's generally recommended to support active LTS (Long-Term Support) versions of Node.js. Consider relaxing this requirement to a broader range, such as >=18 or the lowest compatible LTS version, unless there's a specific feature from 18.20.4 that is essential.

22 changes: 11 additions & 11 deletions assets/common/Calendar.less
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
.@{prefixClass} {
&-input-wrap {
width: 100%;
position: relative;
padding: 6px;
border-bottom: 1px solid #e9e9e9;
&:after {
content: '';
clear: both;
}
}

&-date-input-wrap {
overflow: hidden;
}
&-time-picker {
position: absolute;
width: 100%;
Expand Down Expand Up @@ -50,8 +46,8 @@
&-input {
padding: 0;
border: 1px solid transparent;
outline: 0;;
height:22px;
outline: 0;
height: 22px;
}

&-icon {
Expand All @@ -63,15 +59,19 @@
&-input {
border: 1px solid transparent;
width: 100%;
color: #666;
color: #333;
cursor: text;
line-height: 1.5;
outline: 0;
height:22px;
height: 22px;

&-invalid {
border-color: red;
}

&::placeholder {
color: #868e96;
}
}

&-clear-btn {
Expand All @@ -89,7 +89,7 @@
}

&-clear-btn:after {
content: "x";
content: 'x';
font-size: 12px;
color: #aaa;
display: inline-block;
Expand All @@ -101,4 +101,4 @@
&-clear-btn:hover:after {
color: #666;
}
}
}
13 changes: 6 additions & 7 deletions assets/common/FullCalendar.less
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,12 @@
float: right;
display: inline-block;
&-normal:hover {
border-color: #23c0fa;
box-shadow: 0 0 2px rgba(45, 183, 245, 0.8);
border-color: #f09f4f;
cursor: pointer;
}
&-focus {
border-color: #3fc7fa;
background-color: #3fc7fa;
border-color: #f09f3f;
background-color: #f09f3f;
color: #fff;
}
> span {
Expand Down Expand Up @@ -79,13 +78,13 @@
}
&-selected-day .@{prefixClass}-date,
&-month-panel-selected-cell .@{prefixClass}-month-panel-month {
background-color: #ebfaff;
background-color: #fcecd9;
color: #666;
}
&-today .@{prefixClass}-date,
&-month-panel-selected-cell .@{prefixClass}-month-panel-month {
border-top-color: #3FC7FA;
color: #3FC7FA;
border-top-color: #f09f3f;
color: #f09f3f;
}
}
}
Loading