Skip to content

Commit

Permalink
Updated dependencies and fixed bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
northwalker committed Mar 20, 2019
1 parent f12c342 commit cf110b1
Show file tree
Hide file tree
Showing 15 changed files with 134 additions and 132 deletions.
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><meta name=robots content="index, follow"><meta name=author content=Northwaker><meta name=publisher content=Northwaker><meta name=description content="A pure Vue.js date range picker component without any other dependencies for hotels date range selection and multi-purpose."><meta name=keywords content="vue, vue.js, datepicker, date picker, date range datepicker, hotel datepicker, vue datepicker, vue hotel datepicker"><title>Vue Hotel Datepicker by Northwalker</title><meta property=og:title content=vue-hotel-datepicker><meta property=og:description content="A pure Vue.js date range picker component for hotels and multi-purpose."><meta property=og:type content=website><meta property=og:url content=https://northwalker.github.io/vue-hotel-datepicker/ ><link rel=canonical href=https://northwalker.github.io/vue-hotel-datepicker/ ><link rel=icon href=/vue-hotel-datepicker/favicon.ico><meta name=theme-color content=#0088ff><meta name=application-name content="Vue Hotel Datepicker"><meta name=copyright content=Northwalker><link href=/vue-hotel-datepicker/js/app.1bb7314b.js rel=preload as=script><link href=/vue-hotel-datepicker/js/chunk-vendors.a29a8339.js rel=preload as=script></head><body><noscript><strong>We're sorry but vue-hotel-datepicker github page doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=/vue-hotel-datepicker/js/chunk-vendors.a29a8339.js></script><script src=/vue-hotel-datepicker/js/app.1bb7314b.js></script></body></html>
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><meta name=robots content="index, follow"><meta name=author content=Northwaker><meta name=publisher content=Northwaker><meta name=description content="A pure Vue.js date range picker component without any other dependencies for hotels date range selection and multi-purpose."><meta name=keywords content="vue, vue.js, datepicker, date picker, date range datepicker, hotel datepicker, vue datepicker, vue hotel datepicker"><title>Vue Hotel Datepicker by Northwalker</title><meta property=og:title content=vue-hotel-datepicker><meta property=og:description content="A pure Vue.js date range picker component for hotels and multi-purpose."><meta property=og:type content=website><meta property=og:url content=https://northwalker.github.io/vue-hotel-datepicker/ ><link rel=canonical href=https://northwalker.github.io/vue-hotel-datepicker/ ><link rel=icon href=/vue-hotel-datepicker/favicon.ico><meta name=theme-color content=#0088ff><meta name=application-name content="Vue Hotel Datepicker"><meta name=copyright content=Northwalker><link href=/vue-hotel-datepicker/js/app.9a859735.js rel=preload as=script><link href=/vue-hotel-datepicker/js/chunk-vendors.a29a8339.js rel=preload as=script></head><body><noscript><strong>We're sorry but vue-hotel-datepicker github page doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=/vue-hotel-datepicker/js/chunk-vendors.a29a8339.js></script><script src=/vue-hotel-datepicker/js/app.9a859735.js></script></body></html>
2 changes: 0 additions & 2 deletions docs/js/app.1bb7314b.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/js/app.1bb7314b.js.map

This file was deleted.

2 changes: 2 additions & 0 deletions docs/js/app.9a859735.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/js/app.9a859735.js.map

Large diffs are not rendered by default.

94 changes: 47 additions & 47 deletions lib/vue-hotel-datepicker.common.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/vue-hotel-datepicker.common.js.map

Large diffs are not rendered by default.

94 changes: 47 additions & 47 deletions lib/vue-hotel-datepicker.umd.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/vue-hotel-datepicker.umd.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/vue-hotel-datepicker.umd.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/vue-hotel-datepicker.umd.min.js.map

Large diffs are not rendered by default.

45 changes: 23 additions & 22 deletions package-lock.json

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

12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@northwalker/vue-hotel-datepicker",
"version": "2.0.0",
"description": "A Vue.js date range picker",
"version": "2.0.1",
"description": "A vue.js date range picker for hotel and more.",
"main": "lib/vue-hotel-datepicker.umd.js",
"module": "lib/vue-hotel-datepicker.esm.js",
"unpkg": "lib/vue-hotel-datepicker.min.js",
Expand Down Expand Up @@ -39,9 +39,7 @@
"url": "https://github.com/northwalker/vue-hotel-datepicker/issues"
},
"homepage": "https://github.com/northwalker/vue-hotel-datepicker#readme",
"dependencies": {
"vue": "^2.5.22"
},
"dependencies": {},
"devDependencies": {
"@vue/cli-plugin-babel": "^3.5.0",
"@vue/cli-plugin-e2e-cypress": "^3.5.0",
Expand All @@ -57,8 +55,12 @@
"eslint-plugin-vue": "^5.0.0",
"node-sass": "^4.9.0",
"sass-loader": "^7.1.0",
"vue": "^2.6.6",
"vue-template-compiler": "^2.5.21"
},
"peerDependencies": {
"vue": "^2.6.6"
},
"directories": {
"doc": "docs",
"lib": "lib",
Expand Down
2 changes: 1 addition & 1 deletion src/components/VueHotelDatepicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ export default {
} else if (this.disabledDates.indexOf(this.displayDateText(datetime)) > -1) {
classList.push('disabled')
classList.push('forbidden')
} else if (this.selectStartDate && this.selectStartDate.getTime() > datetime.getTime() && this.selectForward) {
} else if (this.selectStartDate && this.selectStartDate.getTime() > datetime.getTime() && !this.selectForward) {
classList.push('disabled')
} else if (this.selectStartDate && this.selectStartDate.getTime() === datetime.getTime()) {
classList.push('start-date')
Expand Down
3 changes: 1 addition & 2 deletions src/views/Demo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<VueHotelDatepicker :minNight="4" :maxNight="8" />
</div>
<div class="demo-example">
<p>9. Allow to select end date before start date</p>
<p>9. Disallow to select end date before start date</p>
<VueHotelDatepicker :selectForward="false"/>
</div>
<div class="demo-example">
Expand Down Expand Up @@ -73,7 +73,6 @@ export default {
testEndDate: undefined,
testMinDate: undefined,
testMaxDate: undefined,
selectForwardDate: undefined,
disabledDates: []
}
},
Expand Down

0 comments on commit cf110b1

Please sign in to comment.