Giter Club home page Giter Club logo

vue-hotel-datepicker's Introduction

Hi there 👋

vue-hotel-datepicker's People

Contributors

northwalker avatar tobiasj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

vue-hotel-datepicker's Issues

Dynamic minNight

Hi,

Is there an event triggered on months change?
I would need to set MinNight only for selected months?

Any idea on how I could get this done please?

Best regards

Found some issues

Hello there!

First of all, nice component!
I've found 2 issues related to the documentation vs. real implementation:

Prop 'separator' have a typo. The documentation states it is 'separator' but it is implementated as 'seperator'.
The documentation states this two properties 'maxNights' and 'minNights' ending with the letter 's'. It seems it's implementated without the 's' as 'maxNight' and 'minNight'.

I also found another little bug. If you set your min date to the first day of 2019, for example, the control disable the 'previous arrow' for every start of year.

Best regards!

Issue when closing calendar on mobile

Hello,

Using Desktop, it's OK, when I select arrival date, and close the calendar to reopen it nothing changes.

But using mobile, when I close calendar, the dates somehow resets and I can select dates that I should not be able to select.

To illustrate this:

First calendar opening is OK

Capture d’écran 2023-03-16 à 12 36 42

If I select March 26th I can't select departure as 26th can't be an arrival day (by the way, half days do not have specific css class to show if it's just an arrival open date or departure open date).

Capture d’écran 2023-03-16 à 12 37 14

If I close the calendar to reopen it arrival date is still selected but all other dates reappear which allows the user tu select March 28th for departure which leads to double / overlapping bookings.

Capture d’écran 2023-03-16 à 12 37 54

Capture d’écran 2023-03-16 à 12 45 02

This is only happening on mobile layout.
Any idea on how to solve this?
Is an event triggered on close only on mobile?

Got error using typescript

Hello and thanks for the amazing component.

When i try to import it in a Vue Typescript project, I encounter this error.

37:32 Could not find a declaration file for module '@northwalker/vue-hotel-datepicker'. '/your/project/root/node_modules/@northwalker/vue-hotel-datepicker/lib/vue-hotel-datepicker.umd.js' implicitly has an 'any' type.
  Try `npm install @types/northwalker__vue-hotel-datepicker` if it exists or add a new declaration (.d.ts) file containing `declare module '@northwalker/vue-hotel-datepicker';

Can you please fix this?

Thanks again ❤️

previous arrow not visible if minDate from previous month but startDate not specified

Hi! Thank you so much for this component! 😄 I was trying this component out, and I found that if we specify a previous month minDate and some future maxDate as props, the previous month arrow is not visible to navigate to a previous date. However, if we specify minDate, maxDate, startDate as well as endDate making sure that the startDate lies in a previous month, then only the previous month arrow is visible. It will create an issue for users to select a previous month start date in cases where there is no default date range initialized.

So I checked the code and it seems, there is a function called disabledPreviousArrow that decides whether 'disabled' class is to be added for the previous-arrow. The decision there takes place based on startDate, but I guess it should also depend on minDate. In cases where startDate is not specified but a minDate from a previous month is specified, 'disabled' class should not be added.

Localization support

Hi,

Could we have some doc on localization support please?
I can't manage to translate my datepicker.

onfocus event not supported

From an UI point of view it would be awesome to support tab enter like events

IMHO a very simple solution is to treat the @focus event as a click.

Do you have any solution to do that from a prop point of view?

peerDependencies for vue?

Hi,

Thank you for maintaining this great component. There are not a lot to choose from for this use case.

Reviewing the v2.0.0 I noticed you declared vue in the dependencies section of packages.json. Shouldn't it be declared in the peerDependencies section?

Max night issue

<VueHotelDatepicker :ref="datepickerId" :datepickerd="datepickerId" :selectForward="selectForward" :maxNights="maxNights" v-on:update="getDate($event)"
format="MM-DD-YYYY" :placeholder="placeholder"

is there anything wrong?

add @open event

priority

Can you add @OPEN event, so that on opening datepicker popup I can add my script.

Usage

My usage is to add input field for inputing time & date.
On opening popup, I have added script to append those input fields in .vhd-calendar-left & .vhd-calendar-right

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.