Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any suggestions for enhancement? #10

Open
5 of 9 tasks
motss opened this issue Apr 13, 2016 · 28 comments
Open
5 of 9 tasks

Any suggestions for enhancement? #10

motss opened this issue Apr 13, 2016 · 28 comments

Comments

@motss
Copy link
Owner

motss commented Apr 13, 2016

Features to be implemented:

Not under consideration

Feel free to leave comments down here for any suggestions to enhance this element.

@nicholaswmin
Copy link

nicholaswmin commented Apr 18, 2016

  • Debouncing the month-switching animations. I've went ahead and opened an Issue already

@nika-begiashvili
Copy link

format mm.dd.yyyy doesn't work

@motss
Copy link
Owner Author

motss commented Jul 22, 2016

@nika-begiashvili Please file the issue with description.

@nika-begiashvili
Copy link

maybe include time picking feature ?

@web-padawan
Copy link

@motss demo seems to be broken in Safari 9. PTAL.

I also recommend refactor using importHref to load polyfills. Current behavior can be broken on vulcanized app.

@motss
Copy link
Owner Author

motss commented Aug 2, 2016

@web-padawan Please file an issue with description of the problem. What kind of error message you receive that makes the demo seems broken in Safari 9?

@derooy
Copy link

derooy commented Aug 18, 2016

Is date range selection beyond what you imagine for your component?

@motss
Copy link
Owner Author

motss commented Aug 21, 2016

@derooy Do you mind opening an issue for that as feature request? It's a good-to-have feature. Hope you can be one of the contributors working on implementing this feature or providing feedbacks on the feature.

@motss
Copy link
Owner Author

motss commented Aug 22, 2016

@web-padawan Just a quick update. The issue has been fixed on Safari 9.x.

@cecilia-sanare
Copy link

cecilia-sanare commented Sep 8, 2016

@motss How about the ability to specify a list of invalid/valid dates?

I'd be game to submit a PR for this if you're open to the change.

@motss
Copy link
Owner Author

motss commented Sep 8, 2016

@nick-woodward A list of invalid/ valid dates? Not get it still.

On Thu, 8 Sep 2016 at 12:08 Nick Woodward notifications@github.com wrote:

@motss https://github.com/motss How about the ability to specify a list
of invalid/valid dates?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#10 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKHcjxfV0i3F890p0xeAwX07OQVWjYkIks5qn4oygaJpZM4IGJ16
.

@cecilia-sanare
Copy link

Essentially the same concept that you have with "disableDays", but at a date-level, rather then day of the week.

@motss
Copy link
Owner Author

motss commented Sep 8, 2016

I kind of get it but the user should input valid date and not to rely on a
datepicker to tell that the input date is not valid.

On Thu, 8 Sep 2016 at 13:06 Nick Woodward notifications@github.com wrote:

Essentially the same concept that you have with "disableDays", but at a
date-level, rather then day of the week.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#10 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKHcj0743TpWFzYMGK8gsWgiU-4EM97Rks5qn5fJgaJpZM4IGJ16
.

@cecilia-sanare
Copy link

cecilia-sanare commented Sep 8, 2016

Purposely allowing a user the ability to do something incorrectly when you can prevent it doesn't really make sense to me.

I'm going to walk through a bit of our app to give you an idea of what our use-case is

We have the user specify a date-range at a higher level that then determines the days a conference can take place. As you're well aware app-datepicker supports min and max dates

image

However a user isn't allowed to create multiple conference days for a given date. Since your component doesn't support an "invalidDates" or "disableDates" concept it leads to scenarios below where the user could select days that don't make sense

image

In contrast this is a component I wrote when the app was using Angular 1.x + Angular Material:

image

@motss
Copy link
Owner Author

motss commented Sep 9, 2016

@nick-woodward Now I just figured it out what you're trying to convey. It's definitely a fantastic idea. I totes agree with this suggestion. Please open an issue as a feature request before proceeding to any PR (if you want to). Once again, thank you very much for suggesting this proposal.

PS: What a nice piece of work you have there! Is it publicly accessible?

@cecilia-sanare
Copy link

cecilia-sanare commented Sep 9, 2016

Not at the moment, it was a quick datepicker I hacked together when I was using Angular Material.
It isn't nearly as fleshed out as yours since it doesn't animate and there isn't an area to select a year. (i.e. click the year and it brings up the list of possible years)

I do however have other components I've open sourced!

@panuhorsmalahti
Copy link
Contributor

panuhorsmalahti commented Oct 18, 2016

I think the autoUpdateDate attribute should be true by default, it's the typical use scenario. It took at least me a while to understand why the data binding didn't work. The user can actually use [[ ]] syntax for one-way data binding if they want to, or {{ }} for two-way data binding, which makes this attribute unnecessary.

@motss
Copy link
Owner Author

motss commented Oct 18, 2016

@panuhorsmalahti By default, app-datepicker needs buttons to confirm on selected date change. Let say app-datepicker was put into a dialog, the selected date should be updated only when the user click on the confirm button within the dialog. If autoUpdateDate was enabled by default, this would always update and fire when the selected date changes. Of course, you can say that let's turn it off when there are buttons or something like that. So this is basically the use case of why autoUpdateDate was proposed and set to false by default. Hope it answered your doubt!~

@panuhorsmalahti
Copy link
Contributor

Ah, that makes sense, I was only thinking about the dialog use case.

@Adesfire
Copy link

In our project, we have different type of dates. Some are available (and you can select them), some are blocked (and you can't thanks to the disabled-dates array) but some are both but we can't customize them. So, it could be nice to be able to customize the colors of some dates. That can be useful to inform our user about some events (if coupled with a legend) or in our case, to inform certain dates are not currently blocked but close to.

@RoXuS
Copy link

RoXuS commented Jul 25, 2017

For those who are interested in the range functionality, I have released a component that handles this case, pending app-datepicker !

See demo here : https://www.webcomponents.org/element/roxus/range-datepicker

@motss
Copy link
Owner Author

motss commented Jul 26, 2017

@RoXuS It looks awesome! Well done on the range datepicker!

@motss motss added this to TODO in app-datepicker@3.x Jan 31, 2018
@motss
Copy link
Owner Author

motss commented Dec 18, 2018

https://github.com/motss/app-datepicker/tree/lit-element-v1 is the latest branch with lit-html 1.0 RC and addressing many of the issues listed here.

@cintaccs
Copy link

cintaccs commented Feb 13, 2020

would it be possible to implement a:

  • simple month picker - similar to year picker - allowing quick jump to months ahead of current instead of clicking clicking clicking...?
  • months as chip seletors,
  • years as chips in a grid for more years on the same page as in the below spec.
  • option to multi-select to + from dates (a checkbox in the bottom part of the dialog could be used to indicate that "range" is being set. When checked the first selected date becomes the start and hovering to the second date should highlight the range. When clicking on the second date - the dialogue completes and returns the 2 selected dates in an object or arr.
  • transition carousel when moving from one months to the next

@cintaccs
Copy link

actually anything from here:
https://material.io/components/pickers/#desktop-pickers

@motss
Copy link
Owner Author

motss commented Feb 13, 2020

MD has a relatively new specs for the pickers and it is quite comprehensive for authors to implement it now. The goal is to implement according to the specs in terms of UI/ UX.

I already have plan to work on v5 once v4 goes stable.

The new specs looks promising for a datepicker author like myself and I'm going to work on datepickers for desktop and not prioritize any datepicker for mobile (might skip it and fallback to native datepickers on iOS or Android). Also, range datepickers also in the specs so it's definitely win-win for people who want that too.

@motss motss removed this from TODO in app-datepicker@3.x Feb 13, 2020
@3ximus
Copy link

3ximus commented Mar 3, 2021

Do you have any plans to implement a month picker ?

Repository owner deleted a comment from redtree0 Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

12 participants