Commit Graph

6768 Commits

Author SHA1 Message Date
Felix Nagel
4778efc2c6 Datepicker: Fix visual tests 2015-01-29 18:01:31 -05:00
Felix Nagel
91ff2cac46 Datepicker: Run datepicker tests in Grunt qunit task 2015-01-29 18:01:31 -05:00
Felix Nagel
cc91adf4b6 Calendar: Use document.activeElement for retrieving focused element
Fixes unit tests in phantom.
2015-01-29 18:01:30 -05:00
Felix Nagel
33b1820958 Calendar: Clean up demos. 2015-01-29 18:01:30 -05:00
Felix Nagel
9d423e5b6f Calendar: Sanitize active descendant id selector 2015-01-29 18:01:30 -05:00
Felix Nagel
43f66b8b67 Calendar: Make use of _setOptions to call refresh
Prevents refresh from being called multiple times.
2015-01-29 18:01:30 -05:00
Felix Nagel
ee83c37e0f Calendar: Remove option method overwrite 2015-01-29 18:01:30 -05:00
Felix Nagel
32891588f4 Datepicker: Add missing handling for disabled option 2015-01-29 18:01:30 -05:00
Felix Nagel
e507477603 Calendar: Use _on for link hover events 2015-01-29 18:01:30 -05:00
Felix Nagel
95fd20fbf6 Datepicker tests: Remove pass-through options unit tests
Add Test if these options are set on the underlying calendar instance
2015-01-29 18:01:30 -05:00
Felix Nagel
50f477f847 Calendar: Adjust files to match reorganization of external directory 2015-01-29 18:01:30 -05:00
Felix Nagel
9461f6680b Calendar: Add buttons option 2015-01-29 18:01:29 -05:00
Felix Nagel
5df6d39d13 Datepicker: Improve localization handling, code style 2015-01-29 18:01:29 -05:00
Felix Nagel
2e2787dcfe Calendar: Fix hover event setting and removing 2015-01-29 18:01:29 -05:00
Felix Nagel
b9d8f624ba Datepicker: Several minor code improvements
Several minor code improvements and make suppressExpandOnFocus
an internal variable, remove partial button widget usage in header
2015-01-29 18:01:29 -05:00
Felix Nagel
40e8519437 Datepicker: Fix localization demo 2015-01-29 18:01:29 -05:00
Felix Nagel
fd3a68cfa3 Calendar: Fix German localization 2015-01-29 18:01:29 -05:00
Felix Nagel
35842c8125 Calendar: Fix multiple calendar styles 2015-01-29 18:01:29 -05:00
Felix Nagel
398ce1bd82 Datepicker tests: Rewrite event unit tests 2015-01-29 18:01:29 -05:00
Felix Nagel
90c704f1a8 Calendar: Fix broken day table cell attributes 2015-01-29 18:01:28 -05:00
Felix Nagel
43025392c5 Datepicker: Improve document click event 2015-01-29 18:01:28 -05:00
Felix Nagel
6dfcd937f9 Datepicker tests: Add open and close unit tests 2015-01-29 18:01:28 -05:00
Felix Nagel
258a3ff4e5 Datepicker: Simplify usage of calendar options and avoid duplications 2015-01-29 18:01:28 -05:00
Felix Nagel
63bdc3ef81 Datepicker: Remove unwanted keyboard shortcut
Remove shortcut for closing the calendar and erasing the date (CTRL+END).
Remove unwanted CTRL+HOME shortcut and support for enter key on input.
2015-01-29 18:01:28 -05:00
Felix Nagel
57736406f1 Datepicker: Code clean up for events 2015-01-29 18:01:22 -05:00
Felix Nagel
6ef023f0e4 Calendar: Remove select callback reference 2015-01-29 17:52:50 -05:00
Felix Nagel
f88a06352a Calendar: Add min and max option.
Improve render day cell mechanism.
2015-01-29 17:52:50 -05:00
Felix Nagel
510ba08cff Calendar: Add calendar widget
Add calendar widget by copying and renaming datepicker widget files.
Remove datepicker functionality, options and methods from Calendar.
Remove calendar functionality, options and methods from Datepicker.
Adjust tests due to split and changed specification. Remove duplicated
demo files and fix some demos. Simplify calendar generation, use CSS
instead of inline styles. Fix destroy method. Make use of uniqueId
method. Fix focus highlighting when month is changed. Add version
property. Add common unit tests. Fix input keyboard handling.
2015-01-29 17:52:46 -05:00
Felix Nagel
35b52a0dfc Datepicker: Introduce value option
Change status caching, fix existing value related methods, introduce
$.date construction with date object, selected property is null by
default, add selected getter
2015-01-29 17:48:26 -05:00
Felix Nagel
a11e87c98e Datepicker: Fix icon trigger demo 2015-01-29 17:48:25 -05:00
Felix Nagel
6324828ba0 Datepicker: Fix populate alternate field demo 2015-01-29 17:48:25 -05:00
Felix Nagel
ab2cb90240 Datepicker: Properly define default for dateFormat option 2015-01-29 17:48:25 -05:00
Felix Nagel
9c66d2e92f Datepicker: Use short instead of abbreviated format for table header
Revert to old behavior with two instead of three chars.
Fixes layout issue with wrong day table cell width.
2015-01-29 17:48:25 -05:00
Felix Nagel
f28b70eb7a Datepicker: Rename select() method to _select()
Make `select()` a private method as it's not part of the specification.
2015-01-29 17:48:25 -05:00
Felix Nagel
cfea8df90a Datepicker: Fix code style issues 2015-01-29 17:48:19 -05:00
TJ VanToll
77d7dd21a7 Date: Make $.date() a constructor function
Move methods to prototype.
2015-01-29 17:47:50 -05:00
TJ VanToll
a9d6a65651 Date: Update test suite to coding standards 2015-01-29 17:47:50 -05:00
TJ VanToll
fd215f1863 Datepicker: Update the picker as the user types valid dates 2015-01-29 17:47:50 -05:00
TJ VanToll
feedc57486 Datepicker: Handle invalid values in value() and valueAsDate() 2015-01-29 17:47:50 -05:00
TJ VanToll
b4fe65a134 Datepicker: Add an isValid() method 2015-01-29 17:47:50 -05:00
TJ VanToll
104f3e6be0 Datepicker: Re-adding mouse tests 2015-01-29 17:47:49 -05:00
TJ VanToll
605387d6fc Datepicker: Update key handling implementation and tests 2015-01-29 17:47:49 -05:00
Rafael Xavier de Souza
ffc8ab2710 Datepicker: Use Globalize 1.0.0 2015-01-29 17:47:48 -05:00
TJ VanToll
ff4bfd643d Datepicker: Fix key handling implementation and tests 2015-01-29 17:47:48 -05:00
TJ VanToll
e87a5d8c05 Datepicker: Add value() and valueAsDate() methods 2015-01-29 17:47:48 -05:00
TJ VanToll
cc5a4bc5c8 Datepicker: Support destroying inline datepickers 2015-01-29 17:47:48 -05:00
TJ VanToll
bfd8f26bb4 Datepicker: Add test to ensure the <input>'s value is preselected 2015-01-29 17:47:48 -05:00
TJ VanToll
ab94999105 Datepicker: Allow dateFormat to be changed after init 2015-01-29 17:47:48 -05:00
TJ VanToll
13cd6c2fe5 Datepicker: Support changing eachDay after initialization 2015-01-29 17:47:47 -05:00
TJ VanToll
1a83120fff Datepicker: Support position option changes after init 2015-01-29 17:47:47 -05:00