Eonasdan / tempus-dominus

A powerful Date/time picker widget.
https://getdatepicker.com
MIT License
7.15k stars 4.41k forks source link

v5 planning #841

Closed Eonasdan closed 8 years ago

Eonasdan commented 9 years ago

This is just a placeholder for things we would like to accomplish in the next major release. We try to follow SemVer as:

Please feel free to comment with additional ideas or requests

Features

tsjoberg commented 9 years ago

Could we add a silent: true to any function that would emit an event? ex. .date(date, options)

Eonasdan commented 9 years ago

@tsjoberg not sure what you mean. Can you expound?

webcmsdesigns commented 9 years ago

Add ability to show/hide the current day marker. Currently it only displays if useCurrent: true

If you want to take it a step further add the ability to mark other dates, with an event we can bind to, to provide additional info/data. dattimepicker-marked

could the markers inherit the styling bootstrap's label modifier classes (which are limited to background-color)?

GiraffeSlacks commented 9 years ago

Glad to see you're taking requests.

Eonasdan commented 9 years ago

@GiraffeSlacks

thanks for the suggestions

Grabstr commented 9 years ago

https://github.com/Eonasdan/bootstrap-datetimepicker/issues/879 A Library which is able to select multiple dates. ( Based on jQuery-UI Though) Don't know how much it will help.

http://multidatespickr.sourceforge.net/

z1m1n commented 9 years ago

How about IE8 support? Can be optional as additional file. Thanks.

geocine commented 9 years ago

879 @WhayP

bootstrap-datepicker has support for multiple dates http://eternicode.github.io/bootstrap-datepicker

Here is a fiddle: http://jsfiddle.net/51cfb3sg/

tschiela commented 9 years ago

the datepicker should be more responsive for usage on mobile devices. iam working on a PR for that

balticSD commented 9 years ago

Nice would be a responsive full width dock on small devices like this:

unbenannt

balticSD commented 9 years ago

Not forced binding to Input controls. A scenario is to bind the picker over knockut to a model property, open it via a button and show the model property value on a binded span.

balticSD commented 9 years ago

A new View Mode "Week" would be very nice. 2503

solhuebner commented 9 years ago

Full width would be great ☺

tsjoberg commented 9 years ago

Another request - some type of valid() to check if current selected date is a valid date (not within disabled dates)

vinay3206 commented 9 years ago

timezone support will be nice

nkovacs commented 9 years ago

Could you make the normal change event trigger appropriately (and not be swallowed every time)? The problem with dp.change is that it triggers too often (even when the initial value is read from the input), and third party code that depends on the normal change event won't work with dp.change. (in my case this: https://github.com/yiisoft/yii2/blob/2.0.4/framework/assets/yii.gridView.js#L62)

Ideally the change event should trigger on input blur if the value is valid and when the datetimepicker is closed and the user selected a new value (clicked on a new value causing the picker to close, or changed the value and then closed the picker).

kbtz commented 9 years ago

@Eonasdan about the localization again, there's also some tooltips that doesn't relay on icons. So it's probably a better decision to add locale support considering other strings that may coming in new features for v5.

munitras commented 9 years ago

+1 on Timezone Support

amarjeet commented 9 years ago

+1 on Timezone Support too!

MeLlamoPablo commented 9 years ago

Hello, I've got a suggestion: it would be nice to have an opt-in feature that would switch to the time picker inmediatly after a date is chosen, without having to press the clock button.

AboOmar commented 9 years ago

How about other Calendars support specially Hijri calendar for Arabic Saudi Arabia ?

PaitoAnderson commented 9 years ago

I would appreciate a time viewMode so if a user is adjusting a date and time but they are more likely to only adjust the time we could default to that.

Eonasdan commented 9 years ago

@munitras @amarjeet TZ support is planned

@MeLlamoPablo Being able to set the ViewMode/ViewDate to the timepicker is planned, however I'm not going to add a feature that will auto change/close the picker. There's just no go way to detect when a user is actually done picking the date.

@PaitoAnderson that's planned

@AboOmar I have no plans to support other calendar types at this time.

solhuebner commented 9 years ago

Can you give a really rough ETA?

Eonasdan commented 9 years ago

Important notice: I've decided to depreciate the nuget packages!

I'll update them to the first v5 release. Beyond that, you'll need to use bower or npm. See #1128

nicolasroux commented 9 years ago

I have got some suggestions (using it for a few days, and it's great):

(forget the last point, I have just discovered the stepping option...)

akhatri commented 9 years ago

Thanks for taking requests. I use this plugin for various web applications but each of them would like to have a custom style as per the brand. Would it be possible to implement a way whereby we can have an easy approach to style the buttons and panel etc.? perhaps through a CSS hook?

hantsy commented 9 years ago
  1. Mobile first design, provides full-screen pop modal in small screen, redesign the time picker, month/year picker UI to support slide/swipe gestures.
  2. AngularJS 1.x integration.
  3. Timezone support
Eonasdan commented 9 years ago

@akhatri you can build the LESS file all day long. It imports the default styles from BS when we build it, but if you customized bootstrap you can build the pickers LESS file with your changes.

@hantsy TZ support is planned. There should be Angular directives in the docs or a link to it. I don't use Angular so I can't add it.

rkyser commented 9 years ago

I spoke too soon. This already works. You just have configure using a moment.js format which looks something like: 'DD/MM/YYYY HHmm'

How about adding a 24h time entry mode? I imagine it would look something like:

24h-time-entry

Fruchtgummi commented 9 years ago

I hope that I can set to send a global date format so for POST & GET, so regardless of the output format.

Eonasdan commented 9 years ago

@Fruchtgummi huh?

Fruchtgummi commented 9 years ago

@Eonasdan

The output format for a ajax request is always the format from locale. Would be nice, i can set a unique value regardless of loaded locales.

kevin-brown commented 9 years ago

@Fruchtgummi It sounds like you might be referring to something like https://github.com/Eonasdan/bootstrap-datetimepicker/issues/1168?

Fruchtgummi commented 9 years ago

@kevin-brown

I had already tried with extraFormats, but doesn't work!

Here my Option:

$('.datepicker').datetimepicker({ locale: 'de', format: 'YYYY-MM-DD LT', extraFormats:['DD.MM.YYYY LT'], });

MY HTTP-POST REGUEST

myArray[von]:2015-06-25 23:00 <-- why?

If extraFormats would have worked, would have to request it to be so:

myArray[von]:25.06.2015 23:00

Yeah, well, what's wrong?

kenmorechalfant commented 8 years ago

+1 for a "week select" mode, as @balticSD said.

So you select a day and it actually highlights the whole week and sets the value to the start of that week.

And maybe even a "month select" mode.

Example, I use this library in a project to show all events for the selected date. But maybe they want to see all events for a certain week or month, etc.

Or perhaps it would be better to generalize this and say: give the ability to select a range. That'd be pretty cool. And then have a way to get the start and end.

netmajor commented 8 years ago

Could you configure NuGet package so it will be installed in standalone directory or in bootstrap if exist, than in main Scripts directory like nowdays?

Eonasdan commented 8 years ago

@netmajor the nuget packages are going a way. When .Net 5 goes RTM new projects will not be able to get content packages like this one via nuget. It's recommended to use bower.

warrendodsworth commented 8 years ago

Could use an event for clear. (dp.clear)

So when the clear button is pressed it would fire and allow us to do certain things like update an angular model for example.

Eonasdan commented 8 years ago

@warrendodsworth the clear button fires dp.change which will have e.date = false

warrendodsworth commented 8 years ago

@Eonasdan Aha.. sry. Thanks for the reply.

luketaverne commented 8 years ago

I looked around the other issues and suggestion for a while, but was unable to find anything similar to this. I apologize if this is a duplicate and I overlooked an existing request.

Recently I've been working on a project that utilizes a program that expects dates in a single, very specific format, like 2014-04-24T23:16:05Z, where 'T' and 'Z' are just character literals. Currently I'm simply formatting the string as '2014-04-24 23:16:05', then inserting the 'T' and 'Z' characters before I send the string to my other program.

My feature request is to provide a way to natively insert literal characters into the format parameter. And example for this can be found in the first answer here.

Taken from the answer for convenience:

Within date and time pattern strings, unquoted letters from 'A' to 'Z' and from 'a' to 'z' are interpreted as pattern letters representing the components of a date or time string. Text can be quoted using single quotes (') to avoid interpretation. "''" represents a single quote. All other characters are not interpreted; they're simply copied into the output string during formatting or matched against the input string during parsing.

"hh 'o''clock' a, zzzz" 12 o'clock PM, Pacific Daylight Time

Basically, can we render 'Z' as a literal Z, and 'd' as a literal d instead of day? The single quote format doesn't need to be the way it's done, we could do something like '\Z' like php.

Thanks for taking suggestions!

Eonasdan commented 8 years ago

@luketaverne put the literal strings inside of []

luketaverne commented 8 years ago

@Eonasdan Ahhh, thank you! That works perfectly. Apologies for not seeing that elsewhere.

albertoeps commented 8 years ago

Date ranges for disabled/enabled dates.

SKielty commented 8 years ago

Fantastic component!

I was just wondering if you could either change or add a different time selection mode. the other way is select from a clock as below.

image

There is already a clockpicker project that already does it.

I understand you don't want to copy peoples work, but I have a userbase that likes the clock but, I love the way your component includes both date and time selection.

Thanks!

Eonasdan commented 8 years ago

@SKielty I'm actually working on that

SKielty commented 8 years ago

I had a feeling you might be. With as involved as you have been in this project I figured you would want to do some cool HTML5 canvas work! Good luck and thanks a lot.

Is there an eta for this feature? Months? Weeks? Just trying to get a feel for my timing purposes.

shammancer commented 8 years ago

Could you add bootstrap four support?

Eonasdan commented 8 years ago

@shammancer dude.. BS4 is in Alpha! lol but yes, I will make it support bs4 :)