Skip to content
This repository has been archived by the owner on Aug 20, 2022. It is now read-only.

Commit

Permalink
build: release 0.6.3
Browse files Browse the repository at this point in the history
  • Loading branch information
fengyuanchen committed Sep 29, 2017
1 parent 1945707 commit 9b2aa9a
Show file tree
Hide file tree
Showing 11 changed files with 56 additions and 28 deletions.
15 changes: 11 additions & 4 deletions dist/datepicker.common.js
@@ -1,11 +1,11 @@
/*!
* Datepicker v0.6.2
* Datepicker v0.6.3
* https://github.com/fengyuanchen/datepicker
*
* Copyright (c) 2014-2017 Fengyuan Chen
* Released under the MIT license
*
* Date: 2017-09-29T13:39:40.959Z
* Date: 2017-09-29T14:28:06.767Z
*/
'use strict';

Expand Down Expand Up @@ -173,8 +173,6 @@ function isLeapYear(year) {
}

function getDaysInMonth(year, month) {
month = (month + 12) % 12;

return [31, isLeapYear(year) ? 29 : 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][month];
}

Expand Down Expand Up @@ -644,6 +642,15 @@ var handlers = {
case 'month prev':
case 'month next':
viewMonth = view === 'month prev' ? viewMonth - 1 : viewMonth + 1;

if (viewMonth < 0) {
viewYear -= 1;
viewMonth += 12;
} else if (viewMonth > 11) {
viewYear += 1;
viewMonth -= 12;
}

this.viewDate = new Date(viewYear, viewMonth, getMinDay(viewYear, viewMonth, viewDay));
this.renderDays();
break;
Expand Down
4 changes: 2 additions & 2 deletions dist/datepicker.css
@@ -1,11 +1,11 @@
/*!
* Datepicker v0.6.2
* Datepicker v0.6.3
* https://github.com/fengyuanchen/datepicker
*
* Copyright (c) 2014-2017 Fengyuan Chen
* Released under the MIT license
*
* Date: 2017-09-29T13:39:36.324Z
* Date: 2017-09-29T14:28:02.764Z
*/
.datepicker-container {
background-color: #fff;
Expand Down
15 changes: 11 additions & 4 deletions dist/datepicker.esm.js
@@ -1,11 +1,11 @@
/*!
* Datepicker v0.6.2
* Datepicker v0.6.3
* https://github.com/fengyuanchen/datepicker
*
* Copyright (c) 2014-2017 Fengyuan Chen
* Released under the MIT license
*
* Date: 2017-09-29T13:39:40.959Z
* Date: 2017-09-29T14:28:06.767Z
*/
import $ from 'jquery';

Expand Down Expand Up @@ -169,8 +169,6 @@ function isLeapYear(year) {
}

function getDaysInMonth(year, month) {
month = (month + 12) % 12;

return [31, isLeapYear(year) ? 29 : 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][month];
}

Expand Down Expand Up @@ -640,6 +638,15 @@ var handlers = {
case 'month prev':
case 'month next':
viewMonth = view === 'month prev' ? viewMonth - 1 : viewMonth + 1;

if (viewMonth < 0) {
viewYear -= 1;
viewMonth += 12;
} else if (viewMonth > 11) {
viewYear += 1;
viewMonth -= 12;
}

this.viewDate = new Date(viewYear, viewMonth, getMinDay(viewYear, viewMonth, viewDay));
this.renderDays();
break;
Expand Down
15 changes: 11 additions & 4 deletions dist/datepicker.js
@@ -1,11 +1,11 @@
/*!
* Datepicker v0.6.2
* Datepicker v0.6.3
* https://github.com/fengyuanchen/datepicker
*
* Copyright (c) 2014-2017 Fengyuan Chen
* Released under the MIT license
*
* Date: 2017-09-29T13:39:40.959Z
* Date: 2017-09-29T14:28:06.767Z
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) :
Expand Down Expand Up @@ -175,8 +175,6 @@ function isLeapYear(year) {
}

function getDaysInMonth(year, month) {
month = (month + 12) % 12;

return [31, isLeapYear(year) ? 29 : 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][month];
}

Expand Down Expand Up @@ -646,6 +644,15 @@ var handlers = {
case 'month prev':
case 'month next':
viewMonth = view === 'month prev' ? viewMonth - 1 : viewMonth + 1;

if (viewMonth < 0) {
viewYear -= 1;
viewMonth += 12;
} else if (viewMonth > 11) {
viewYear += 1;
viewMonth -= 12;
}

this.viewDate = new Date(viewYear, viewMonth, getMinDay(viewYear, viewMonth, viewDay));
this.renderDays();
break;
Expand Down
4 changes: 2 additions & 2 deletions dist/datepicker.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions dist/datepicker.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/css/datepicker.css
@@ -1,11 +1,11 @@
/*!
* Datepicker v0.6.2
* Datepicker v0.6.3
* https://github.com/fengyuanchen/datepicker
*
* Copyright (c) 2014-2017 Fengyuan Chen
* Released under the MIT license
*
* Date: 2017-09-29T13:39:36.324Z
* Date: 2017-09-29T14:28:02.764Z
*/
.datepicker-container {
background-color: #fff;
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Expand Up @@ -46,7 +46,7 @@
<div class="container">
<div class="row">
<div class="col-md">
<h1>Datepicker <small class="h6">v0.6.2</small></h1>
<h1>Datepicker <small class="h6">v0.6.3</small></h1>
<p class="lead">A simple jQuery datepicker plugin.</p>
</div>
<div class="col-md">
Expand Down
15 changes: 11 additions & 4 deletions docs/js/datepicker.js
@@ -1,11 +1,11 @@
/*!
* Datepicker v0.6.2
* Datepicker v0.6.3
* https://github.com/fengyuanchen/datepicker
*
* Copyright (c) 2014-2017 Fengyuan Chen
* Released under the MIT license
*
* Date: 2017-09-29T13:39:40.959Z
* Date: 2017-09-29T14:28:06.767Z
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) :
Expand Down Expand Up @@ -175,8 +175,6 @@ function isLeapYear(year) {
}

function getDaysInMonth(year, month) {
month = (month + 12) % 12;

return [31, isLeapYear(year) ? 29 : 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][month];
}

Expand Down Expand Up @@ -646,6 +644,15 @@ var handlers = {
case 'month prev':
case 'month next':
viewMonth = view === 'month prev' ? viewMonth - 1 : viewMonth + 1;

if (viewMonth < 0) {
viewYear -= 1;
viewMonth += 12;
} else if (viewMonth > 11) {
viewYear += 1;
viewMonth -= 12;
}

this.viewDate = new Date(viewYear, viewMonth, getMinDay(viewYear, viewMonth, viewDay));
this.renderDays();
break;
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"name": "@fengyuanchen/datepicker",
"description": "A simple jQuery datepicker plugin.",
"version": "0.6.2",
"version": "0.6.3",
"main": "dist/datepicker.common.js",
"module": "dist/datepicker.esm.js",
"browser": "dist/datepicker.js",
Expand Down

0 comments on commit 9b2aa9a

Please sign in to comment.