Commit Graph

6548 Commits

Author SHA1 Message Date
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
TJ VanToll
5fbe668d86 Datepicker: Various changes for the showWeek option
* Re-add `ui-datepicker-week-col` class name currently used.
* Add test suite.
* Support changing option after initialization.
2015-01-29 17:47:47 -05:00
TJ VanToll
b5893906df Datepicker: Support changing the appendTo option after init 2015-01-29 17:47:47 -05:00
TJ VanToll
8983fee991 Datepicker: Clean up tests 2015-01-29 17:47:47 -05:00
TJ VanToll
9bdb4783fd Datepicker: Only apply the ui-state-focus class name to one cell
This is specifically for multi month pickers. This makes the assumption that
the keyboard is always interacting with the first month in a multi month
calendar. The next step is to store which grid currently has focus and to base
the focus logic off of that.
2015-01-29 17:47:46 -05:00
Jörn Zaefferer
9ec69ccb73 Datepicker: Fix the eachDay option
Use the `eachDay` option in the other-months demo.
Fix handling of `extraClasses` property, split on space.
2015-01-29 17:47:46 -05:00
TJ VanToll
e50d6d3bd2 Datepicker: Update tests and demos for new structure 2015-01-29 17:47:46 -05:00
Scott González
5a7835595e Datepicker: Remove delayed focus 2015-01-29 17:47:40 -05:00
TJ VanToll
68f8e3c2e3 Datepicker: Initial commit of widget rewrite work from old branch
History is on the datepicker-dead branch.
2015-01-29 13:42:45 -05:00
TJ VanToll
912eb62ccb Dialog: Remove overflow: hidden and reposition resize handles
Fixes #10543
Closes gh-1439
2015-01-28 13:38:36 -05:00
Mike Sherov
9493839f23 Resizable: correct width when grid approaches zero
Fixes #10590
2015-01-27 22:08:05 -05:00
Mike Sherov
337e4110b0 Resizable: Whitespace Cleanup 2015-01-27 22:07:32 -05:00
Jasper de Groot
79c4fa1e7a Theme: Improve default theme styling
Changes tooltip to use the ui-widget-shadow class, which now applies the
box-shadow style. .ui-widget-shadow was created when box-shadow wasn't
available. By now, there's no point in faking a custom shadow anymore.
This removes the only non-structural CSS from a widget-specific file.

Updates demos to use the same font-family, removes unused images.

Will be available as the new default theme on ThemeRoller called "Base",
while "UI Smoothness" and "UI Lightness" will still be available in the
gallery.

Fixes #10617
Fixes #10880
Closes gh-1436
Ref jquery/download.jqueryui.com#248
2015-01-27 13:23:53 +01:00
Jörn Zaefferer
0aa4e989ef Build: Update QUnit to latest (1.17.1) 2015-01-26 16:49:03 +01:00
Jörn Zaefferer
2aabd427eb Tests: Fix style issues with missing or multiple line breaks
As pointed out by jscs, after a esformatter run. The latter doesn't
address these, so fixing them manually.
2015-01-24 17:10:20 +01:00
Michael Orchard
ac49929b07 All: Remove 1.6.x leftovers
Removes 1.6 versions from "All" tests and from the TestSwarm job.

Ref #10723
Ref gh-1422
Closes gh-1434
Closes gh-1435
2015-01-22 13:29:47 +01:00
Jörn Zaefferer
0bbd156918 Menu: Use ui-state-active consistently
So far we were using ui-state-active on active parent items,
ui-state-focus on active child items. The theme update highlighted the
visual inconsistency. With this change, only ui-state-active is used.

Fixes #10692
2015-01-21 18:07:43 +01:00
Alexander Schmitz
7137c90b18 Theme: Disabled elements can still be focused with a click
pointer-events: none; fixes this in chrome, safari, and firefox.
IE and opera both show no focus styles on click, so lack of
pointer-events support in old ie is not a problem.

Fixes #10573
Closes gh-1330
2015-01-16 08:56:22 -05:00
Scott González
3ecbe7867a Build: Update list of maintainers 2015-01-14 16:45:08 -05:00
Jörn Zaefferer
9d0f44fd7b All: Drop support for jQuery 1.6.x
Affects core, effects, position and widget. Only position has unit tests
that fail with jQuery 1.6 without the workaround.

Drops the 1.6.x copies jQuery of jQuery and removes them from the select
in the testsuites.

Fixes #10723
Closes gh-1422
2015-01-13 15:05:54 +01:00
Luke Page
8cc636dd44 Docs: Clarify PHP Usage
Clarify that PHP is not required for testing, add a link to the
CONTRIBUTING page and tidy up.

Closes gh-1418
2015-01-12 17:02:46 -05:00