Skip to content

Commit

Permalink
fix(Fix date bugs & moment.js inclusion): Switch from custom date fun…
Browse files Browse the repository at this point in the history
…ctions to moment.js

BREAKING CHANGE: rename startDate option to selectedDate

fix #80
  • Loading branch information
Wikiki committed Jun 22, 2018
1 parent a19a231 commit fe27357
Show file tree
Hide file tree
Showing 9 changed files with 19,741 additions and 3,610 deletions.
17,225 changes: 16,757 additions & 468 deletions dist/js/bulma-calendar.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/bulma-calendar.min.js

Large diffs are not rendered by default.

5,787 changes: 2,896 additions & 2,891 deletions package-lock.json

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"semantic-release": "semantic-release",
"watch:test": "jest test/*.test.js --watch",
"test": "jest test/*.test.js",
"build":"gulp build",
"clean":"gulp clean"
"build": "gulp build",
"clean": "gulp clean"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -67,6 +67,7 @@
},
"release": {
"prepare": [
"@semantic-release/npm",
{
"path": "@semantic-release/changelog",
"changelogFile": "CHANGELOG.md"
Expand All @@ -78,5 +79,8 @@
"src/**",
"LICENSE",
"README.md"
]
],
"dependencies": {
"moment": "^2.22.2"
}
}
5 changes: 2 additions & 3 deletions src/js/defaultOptions.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
const defaultOptions = {
startDate: new Date(),
selectedDate: new Date(),
weekStart: null,
minDate: null,
maxDate: null,
disabledDates: null,
dateFormat: 'yyyy-mm-dd', // the default data format `field` value
disabledDates: [],
lang: 'en', // internationalization
overlay: false,
closeOnOverlayClick: true,
Expand Down
Loading

0 comments on commit fe27357

Please sign in to comment.