jquery-ui-rails 4.0.0 → 5.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of jquery-ui-rails might be problematic. Click here for more details.
- data/.travis.yml +0 -1
- data/Gemfile +1 -1
- data/History.md +62 -0
- data/README.md +86 -74
- data/Rakefile +69 -37
- data/VERSIONS.md +36 -0
- data/{vendor → app}/assets/images/jquery-ui/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/{vendor → app}/assets/images/jquery-ui/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/{vendor → app}/assets/images/jquery-ui/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/{vendor → app}/assets/images/jquery-ui/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/{vendor → app}/assets/images/jquery-ui/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/{vendor → app}/assets/images/jquery-ui/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/{vendor → app}/assets/images/jquery-ui/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/{vendor → app}/assets/images/jquery-ui/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/{vendor → app}/assets/images/jquery-ui/ui-icons_222222_256x240.png +0 -0
- data/{vendor → app}/assets/images/jquery-ui/ui-icons_2e83ff_256x240.png +0 -0
- data/{vendor → app}/assets/images/jquery-ui/ui-icons_454545_256x240.png +0 -0
- data/{vendor → app}/assets/images/jquery-ui/ui-icons_888888_256x240.png +0 -0
- data/{vendor → app}/assets/images/jquery-ui/ui-icons_cd0a0a_256x240.png +0 -0
- data/{vendor/assets/javascripts/jquery.ui.accordion.js → app/assets/javascripts/jquery-ui/accordion.js} +90 -74
- data/{vendor/assets/javascripts/jquery.ui.autocomplete.js → app/assets/javascripts/jquery-ui/autocomplete.js} +105 -91
- data/{vendor/assets/javascripts/jquery.ui.button.js → app/assets/javascripts/jquery-ui/button.js} +60 -68
- data/{vendor/assets/javascripts/jquery.ui.core.js → app/assets/javascripts/jquery-ui/core.js} +112 -132
- data/app/assets/javascripts/jquery-ui/datepicker-af.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-ar-DZ.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-ar.js +38 -0
- data/app/assets/javascripts/jquery-ui/datepicker-az.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-be.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-bg.js +38 -0
- data/app/assets/javascripts/jquery-ui/datepicker-bs.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-ca.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-cs.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-cy-GB.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-da.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-de.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-el.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-en-AU.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-en-GB.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-en-NZ.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-eo.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-es.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-et.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-eu.js +36 -0
- data/app/assets/javascripts/jquery-ui/datepicker-fa.js +73 -0
- data/app/assets/javascripts/jquery-ui/datepicker-fi.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-fo.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-fr-CA.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-fr-CH.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-fr.js +39 -0
- data/app/assets/javascripts/jquery-ui/datepicker-gl.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-he.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-hi.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-hr.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-hu.js +36 -0
- data/app/assets/javascripts/jquery-ui/datepicker-hy.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-id.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-is.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-it-CH.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-it.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-ja.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-ka.js +35 -0
- data/app/assets/javascripts/jquery-ui/datepicker-kk.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-km.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-ko.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-ky.js +38 -0
- data/app/assets/javascripts/jquery-ui/datepicker-lb.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-lt.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-lv.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-mk.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-ml.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-ms.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-nb.js +36 -0
- data/app/assets/javascripts/jquery-ui/datepicker-nl-BE.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-nl.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-nn.js +36 -0
- data/app/assets/javascripts/jquery-ui/datepicker-no.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-pl.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-pt-BR.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-pt.js +36 -0
- data/app/assets/javascripts/jquery-ui/datepicker-rm.js +35 -0
- data/app/assets/javascripts/jquery-ui/datepicker-ro.js +40 -0
- data/app/assets/javascripts/jquery-ui/datepicker-ru.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-sk.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-sl.js +38 -0
- data/app/assets/javascripts/jquery-ui/datepicker-sq.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-sr-SR.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-sr.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-sv.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-ta.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-th.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-tj.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-tr.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-uk.js +38 -0
- data/app/assets/javascripts/jquery-ui/datepicker-vi.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-zh-CN.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-zh-HK.js +37 -0
- data/app/assets/javascripts/jquery-ui/datepicker-zh-TW.js +37 -0
- data/{vendor/assets/javascripts/jquery.ui.datepicker.js → app/assets/javascripts/jquery-ui/datepicker.js} +120 -80
- data/{vendor/assets/javascripts/jquery.ui.dialog.js → app/assets/javascripts/jquery-ui/dialog.js} +298 -190
- data/app/assets/javascripts/jquery-ui/draggable.js +1132 -0
- data/app/assets/javascripts/jquery-ui/droppable.js +418 -0
- data/{vendor/assets/javascripts/jquery.ui.effect-blind.js → app/assets/javascripts/jquery-ui/effect-blind.js} +21 -13
- data/{vendor/assets/javascripts/jquery.ui.effect-bounce.js → app/assets/javascripts/jquery-ui/effect-bounce.js} +19 -9
- data/{vendor/assets/javascripts/jquery.ui.effect-clip.js → app/assets/javascripts/jquery-ui/effect-clip.js} +19 -9
- data/{vendor/assets/javascripts/jquery.ui.effect-drop.js → app/assets/javascripts/jquery-ui/effect-drop.js} +20 -10
- data/{vendor/assets/javascripts/jquery.ui.effect-explode.js → app/assets/javascripts/jquery-ui/effect-explode.js} +21 -11
- data/app/assets/javascripts/jquery-ui/effect-fade.js +42 -0
- data/{vendor/assets/javascripts/jquery.ui.effect-fold.js → app/assets/javascripts/jquery-ui/effect-fold.js} +19 -9
- data/{vendor/assets/javascripts/jquery.ui.effect-highlight.js → app/assets/javascripts/jquery-ui/effect-highlight.js} +19 -9
- data/app/assets/javascripts/jquery-ui/effect-puff.js +63 -0
- data/{vendor/assets/javascripts/jquery.ui.effect-pulsate.js → app/assets/javascripts/jquery-ui/effect-pulsate.js} +19 -9
- data/app/assets/javascripts/jquery-ui/effect-scale.js +92 -0
- data/{vendor/assets/javascripts/jquery.ui.effect-shake.js → app/assets/javascripts/jquery-ui/effect-shake.js} +20 -10
- data/{vendor/assets/javascripts/jquery.ui.effect-scale.js → app/assets/javascripts/jquery-ui/effect-size.js} +20 -105
- data/{vendor/assets/javascripts/jquery.ui.effect-slide.js → app/assets/javascripts/jquery-ui/effect-slide.js} +19 -9
- data/{vendor/assets/javascripts/jquery.ui.effect-transfer.js → app/assets/javascripts/jquery-ui/effect-transfer.js} +23 -13
- data/app/assets/javascripts/jquery-ui/effect.all.js +16 -0
- data/{vendor/assets/javascripts/jquery.ui.effect.js → app/assets/javascripts/jquery-ui/effect.js} +125 -92
- data/{vendor/assets/javascripts/jquery.ui.menu.js → app/assets/javascripts/jquery-ui/menu.js} +127 -102
- data/{vendor/assets/javascripts/jquery.ui.mouse.js → app/assets/javascripts/jquery-ui/mouse.js} +57 -27
- data/{vendor/assets/javascripts/jquery.ui.position.js → app/assets/javascripts/jquery-ui/position.js} +47 -27
- data/{vendor/assets/javascripts/jquery.ui.progressbar.js → app/assets/javascripts/jquery-ui/progressbar.js} +27 -13
- data/{vendor/assets/javascripts/jquery.ui.resizable.js → app/assets/javascripts/jquery-ui/resizable.js} +454 -243
- data/{vendor/assets/javascripts/jquery.ui.selectable.js → app/assets/javascripts/jquery-ui/selectable.js} +26 -16
- data/app/assets/javascripts/jquery-ui/selectmenu.js +620 -0
- data/{vendor/assets/javascripts/jquery.ui.slider.js → app/assets/javascripts/jquery-ui/slider.js} +159 -91
- data/{vendor/assets/javascripts/jquery.ui.sortable.js → app/assets/javascripts/jquery-ui/sortable.js} +168 -114
- data/{vendor/assets/javascripts/jquery.ui.spinner.js → app/assets/javascripts/jquery-ui/spinner.js} +54 -32
- data/{vendor/assets/javascripts/jquery.ui.tabs.js → app/assets/javascripts/jquery-ui/tabs.js} +108 -73
- data/{vendor/assets/javascripts/jquery.ui.tooltip.js → app/assets/javascripts/jquery-ui/tooltip.js} +134 -75
- data/{vendor/assets/javascripts/jquery.ui.widget.js → app/assets/javascripts/jquery-ui/widget.js} +81 -44
- data/app/assets/javascripts/jquery-ui.js +37 -0
- data/{vendor/assets/stylesheets/jquery.ui.accordion.css.erb → app/assets/stylesheets/jquery-ui/accordion.css} +7 -9
- data/app/assets/stylesheets/jquery-ui/all.css +14 -0
- data/app/assets/stylesheets/jquery-ui/autocomplete.css +21 -0
- data/app/assets/stylesheets/jquery-ui/base.css +30 -0
- data/{vendor/assets/stylesheets/jquery.ui.button.css.erb → app/assets/stylesheets/jquery-ui/button.css} +5 -5
- data/{vendor/assets/stylesheets/jquery.ui.core.css.erb → app/assets/stylesheets/jquery-ui/core.css} +8 -4
- data/{vendor/assets/stylesheets/jquery.ui.datepicker.css.erb → app/assets/stylesheets/jquery-ui/datepicker.css} +6 -9
- data/{vendor/assets/stylesheets/jquery.ui.dialog.css.erb → app/assets/stylesheets/jquery-ui/dialog.css} +10 -8
- data/app/assets/stylesheets/jquery-ui/draggable.css +16 -0
- data/app/assets/stylesheets/jquery-ui/menu.css +67 -0
- data/app/assets/stylesheets/jquery-ui/progressbar.css +32 -0
- data/{vendor/assets/stylesheets/jquery.ui.resizable.css.erb → app/assets/stylesheets/jquery-ui/resizable.css} +6 -6
- data/app/assets/stylesheets/jquery-ui/selectable.css +21 -0
- data/app/assets/stylesheets/jquery-ui/selectmenu.css +64 -0
- data/{vendor/assets/stylesheets/jquery.ui.slider.css.erb → app/assets/stylesheets/jquery-ui/slider.css} +8 -6
- data/app/assets/stylesheets/jquery-ui/sortable.css +16 -0
- data/{vendor/assets/stylesheets/jquery.ui.spinner.css.erb → app/assets/stylesheets/jquery-ui/spinner.css} +8 -8
- data/{vendor/assets/stylesheets/jquery.ui.tabs.css.erb → app/assets/stylesheets/jquery-ui/tabs.css} +11 -12
- data/{vendor/assets/stylesheets/jquery.ui.theme.css.erb → app/assets/stylesheets/jquery-ui/theme.css.erb} +29 -11
- data/{vendor/assets/stylesheets/jquery.ui.tooltip.css.erb → app/assets/stylesheets/jquery-ui/tooltip.css} +6 -4
- data/app/assets/stylesheets/jquery-ui.css +1 -0
- data/lib/jquery/ui/rails/version.rb +2 -1
- metadata +155 -161
- data/vendor/assets/javascripts/jquery.ui.all.js +0 -34
- data/vendor/assets/javascripts/jquery.ui.datepicker-af.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-ar-DZ.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-ar.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-az.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-be.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-bg.js +0 -24
- data/vendor/assets/javascripts/jquery.ui.datepicker-bs.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-ca.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-cs.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-cy-GB.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-da.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-de.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-el.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-en-AU.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-en-GB.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-en-NZ.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-eo.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-es.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-et.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-eu.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-fa.js +0 -59
- data/vendor/assets/javascripts/jquery.ui.datepicker-fi.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-fo.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-fr-CA.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-fr-CH.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-fr.js +0 -25
- data/vendor/assets/javascripts/jquery.ui.datepicker-gl.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-he.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-hi.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-hr.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-hu.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-hy.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-id.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-is.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-it.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-ja.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-ka.js +0 -21
- data/vendor/assets/javascripts/jquery.ui.datepicker-kk.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-km.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-ko.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-ky.js +0 -24
- data/vendor/assets/javascripts/jquery.ui.datepicker-lb.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-lt.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-lv.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-mk.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-ml.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-ms.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-nb.js +0 -22
- data/vendor/assets/javascripts/jquery.ui.datepicker-nl-BE.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-nl.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-nn.js +0 -22
- data/vendor/assets/javascripts/jquery.ui.datepicker-no.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-pl.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-pt-BR.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-pt.js +0 -22
- data/vendor/assets/javascripts/jquery.ui.datepicker-rm.js +0 -21
- data/vendor/assets/javascripts/jquery.ui.datepicker-ro.js +0 -26
- data/vendor/assets/javascripts/jquery.ui.datepicker-ru.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-sk.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-sl.js +0 -24
- data/vendor/assets/javascripts/jquery.ui.datepicker-sq.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-sr-SR.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-sr.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-sv.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-ta.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-th.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-tj.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-tr.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-uk.js +0 -24
- data/vendor/assets/javascripts/jquery.ui.datepicker-vi.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-zh-CN.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-zh-HK.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.datepicker-zh-TW.js +0 -23
- data/vendor/assets/javascripts/jquery.ui.draggable.js +0 -950
- data/vendor/assets/javascripts/jquery.ui.droppable.js +0 -376
- data/vendor/assets/javascripts/jquery.ui.effect-fade.js +0 -32
- data/vendor/assets/javascripts/jquery.ui.effect.all.js +0 -14
- data/vendor/assets/stylesheets/jquery.ui.all.css.erb +0 -14
- data/vendor/assets/stylesheets/jquery.ui.autocomplete.css.erb +0 -21
- data/vendor/assets/stylesheets/jquery.ui.base.css.erb +0 -27
- data/vendor/assets/stylesheets/jquery.ui.menu.css.erb +0 -81
- data/vendor/assets/stylesheets/jquery.ui.progressbar.css.erb +0 -32
- data/vendor/assets/stylesheets/jquery.ui.selectable.css.erb +0 -19
@@ -1,26 +1,56 @@
|
|
1
|
-
//= require jquery
|
1
|
+
//= require jquery-ui/core
|
2
2
|
|
3
3
|
/*!
|
4
|
-
* jQuery UI Datepicker 1.
|
4
|
+
* jQuery UI Datepicker 1.11.3
|
5
5
|
* http://jqueryui.com
|
6
6
|
*
|
7
|
-
* Copyright
|
7
|
+
* Copyright jQuery Foundation and other contributors
|
8
8
|
* Released under the MIT license.
|
9
9
|
* http://jquery.org/license
|
10
10
|
*
|
11
11
|
* http://api.jqueryui.com/datepicker/
|
12
|
-
*
|
13
|
-
* Depends:
|
14
|
-
* jquery.ui.core.js
|
15
12
|
*/
|
16
|
-
(function(
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
13
|
+
(function( factory ) {
|
14
|
+
if ( typeof define === "function" && define.amd ) {
|
15
|
+
|
16
|
+
// AMD. Register as an anonymous module.
|
17
|
+
define([
|
18
|
+
"jquery",
|
19
|
+
"./core"
|
20
|
+
], factory );
|
21
|
+
} else {
|
22
|
+
|
23
|
+
// Browser globals
|
24
|
+
factory( jQuery );
|
25
|
+
}
|
26
|
+
}(function( $ ) {
|
27
|
+
|
28
|
+
$.extend($.ui, { datepicker: { version: "1.11.3" } });
|
29
|
+
|
30
|
+
var datepicker_instActive;
|
31
|
+
|
32
|
+
function datepicker_getZindex( elem ) {
|
33
|
+
var position, value;
|
34
|
+
while ( elem.length && elem[ 0 ] !== document ) {
|
35
|
+
// Ignore z-index if position is set to a value where z-index is ignored by the browser
|
36
|
+
// This makes behavior of this function consistent across browsers
|
37
|
+
// WebKit always returns auto if the element is positioned
|
38
|
+
position = elem.css( "position" );
|
39
|
+
if ( position === "absolute" || position === "relative" || position === "fixed" ) {
|
40
|
+
// IE returns 0 when zIndex is not specified
|
41
|
+
// other browsers return a string
|
42
|
+
// we ignore the case of nested elements with an explicit value of 0
|
43
|
+
// <div style="z-index: -10;"><div style="z-index: 0;"></div></div>
|
44
|
+
value = parseInt( elem.css( "zIndex" ), 10 );
|
45
|
+
if ( !isNaN( value ) && value !== 0 ) {
|
46
|
+
return value;
|
47
|
+
}
|
48
|
+
}
|
49
|
+
elem = elem.parent();
|
50
|
+
}
|
23
51
|
|
52
|
+
return 0;
|
53
|
+
}
|
24
54
|
/* Date picker manager.
|
25
55
|
Use the singleton instance of this class, $.datepicker, to interact with the date picker.
|
26
56
|
Settings for (groups of) date pickers are maintained in an instance object,
|
@@ -111,7 +141,9 @@ function Datepicker() {
|
|
111
141
|
disabled: false // The initial disabled state
|
112
142
|
};
|
113
143
|
$.extend(this._defaults, this.regional[""]);
|
114
|
-
this.
|
144
|
+
this.regional.en = $.extend( true, {}, this.regional[ "" ]);
|
145
|
+
this.regional[ "en-US" ] = $.extend( true, {}, this.regional.en );
|
146
|
+
this.dpDiv = datepicker_bindHover($("<div id='" + this._mainDivId + "' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"));
|
115
147
|
}
|
116
148
|
|
117
149
|
$.extend(Datepicker.prototype, {
|
@@ -131,7 +163,7 @@ $.extend(Datepicker.prototype, {
|
|
131
163
|
* @return the manager object
|
132
164
|
*/
|
133
165
|
setDefaults: function(settings) {
|
134
|
-
|
166
|
+
datepicker_extendRemove(this._defaults, settings || {});
|
135
167
|
return this;
|
136
168
|
},
|
137
169
|
|
@@ -164,7 +196,7 @@ $.extend(Datepicker.prototype, {
|
|
164
196
|
drawMonth: 0, drawYear: 0, // month being drawn
|
165
197
|
inline: inline, // is datepicker inline or not
|
166
198
|
dpDiv: (!inline ? this.dpDiv : // presentation div
|
167
|
-
|
199
|
+
datepicker_bindHover($("<div class='" + this._inlineClass + " ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")))};
|
168
200
|
},
|
169
201
|
|
170
202
|
/* Attach the date picker to an input field. */
|
@@ -179,7 +211,7 @@ $.extend(Datepicker.prototype, {
|
|
179
211
|
input.addClass(this.markerClassName).keydown(this._doKeyDown).
|
180
212
|
keypress(this._doKeyPress).keyup(this._doKeyUp);
|
181
213
|
this._autoSize(inst);
|
182
|
-
$.data(target,
|
214
|
+
$.data(target, "datepicker", inst);
|
183
215
|
//If disabled option is true, disable the datepicker once it has been attached to the input (see ticket #5665)
|
184
216
|
if( inst.settings.disabled ) {
|
185
217
|
this._disableDatepicker( target );
|
@@ -269,7 +301,7 @@ $.extend(Datepicker.prototype, {
|
|
269
301
|
return;
|
270
302
|
}
|
271
303
|
divSpan.addClass(this.markerClassName).append(inst.dpDiv);
|
272
|
-
$.data(target,
|
304
|
+
$.data(target, "datepicker", inst);
|
273
305
|
this._setDate(inst, this._getDefaultDate(inst), true);
|
274
306
|
this._updateDatepicker(inst);
|
275
307
|
this._updateAlternate(inst);
|
@@ -305,9 +337,9 @@ $.extend(Datepicker.prototype, {
|
|
305
337
|
$("body").append(this._dialogInput);
|
306
338
|
inst = this._dialogInst = this._newInst(this._dialogInput, false);
|
307
339
|
inst.settings = {};
|
308
|
-
$.data(this._dialogInput[0],
|
340
|
+
$.data(this._dialogInput[0], "datepicker", inst);
|
309
341
|
}
|
310
|
-
|
342
|
+
datepicker_extendRemove(inst.settings, settings || {});
|
311
343
|
date = (date && date.constructor === Date ? this._formatDate(inst, date) : date);
|
312
344
|
this._dialogInput.val(date);
|
313
345
|
|
@@ -330,7 +362,7 @@ $.extend(Datepicker.prototype, {
|
|
330
362
|
if ($.blockUI) {
|
331
363
|
$.blockUI(this.dpDiv);
|
332
364
|
}
|
333
|
-
$.data(this._dialogInput[0],
|
365
|
+
$.data(this._dialogInput[0], "datepicker", inst);
|
334
366
|
return this;
|
335
367
|
},
|
336
368
|
|
@@ -340,14 +372,14 @@ $.extend(Datepicker.prototype, {
|
|
340
372
|
_destroyDatepicker: function(target) {
|
341
373
|
var nodeName,
|
342
374
|
$target = $(target),
|
343
|
-
inst = $.data(target,
|
375
|
+
inst = $.data(target, "datepicker");
|
344
376
|
|
345
377
|
if (!$target.hasClass(this.markerClassName)) {
|
346
378
|
return;
|
347
379
|
}
|
348
380
|
|
349
381
|
nodeName = target.nodeName.toLowerCase();
|
350
|
-
$.removeData(target,
|
382
|
+
$.removeData(target, "datepicker");
|
351
383
|
if (nodeName === "input") {
|
352
384
|
inst.append.remove();
|
353
385
|
inst.trigger.remove();
|
@@ -359,6 +391,10 @@ $.extend(Datepicker.prototype, {
|
|
359
391
|
} else if (nodeName === "div" || nodeName === "span") {
|
360
392
|
$target.removeClass(this.markerClassName).empty();
|
361
393
|
}
|
394
|
+
|
395
|
+
if ( datepicker_instActive === inst ) {
|
396
|
+
datepicker_instActive = null;
|
397
|
+
}
|
362
398
|
},
|
363
399
|
|
364
400
|
/* Enable the date picker to a jQuery selection.
|
@@ -367,7 +403,7 @@ $.extend(Datepicker.prototype, {
|
|
367
403
|
_enableDatepicker: function(target) {
|
368
404
|
var nodeName, inline,
|
369
405
|
$target = $(target),
|
370
|
-
inst = $.data(target,
|
406
|
+
inst = $.data(target, "datepicker");
|
371
407
|
|
372
408
|
if (!$target.hasClass(this.markerClassName)) {
|
373
409
|
return;
|
@@ -395,7 +431,7 @@ $.extend(Datepicker.prototype, {
|
|
395
431
|
_disableDatepicker: function(target) {
|
396
432
|
var nodeName, inline,
|
397
433
|
$target = $(target),
|
398
|
-
inst = $.data(target,
|
434
|
+
inst = $.data(target, "datepicker");
|
399
435
|
|
400
436
|
if (!$target.hasClass(this.markerClassName)) {
|
401
437
|
return;
|
@@ -441,7 +477,7 @@ $.extend(Datepicker.prototype, {
|
|
441
477
|
*/
|
442
478
|
_getInst: function(target) {
|
443
479
|
try {
|
444
|
-
return $.data(target,
|
480
|
+
return $.data(target, "datepicker");
|
445
481
|
}
|
446
482
|
catch (err) {
|
447
483
|
throw "Missing instance data for this datepicker";
|
@@ -481,7 +517,7 @@ $.extend(Datepicker.prototype, {
|
|
481
517
|
date = this._getDateDatepicker(target, true);
|
482
518
|
minDate = this._getMinMaxDate(inst, "min");
|
483
519
|
maxDate = this._getMinMaxDate(inst, "max");
|
484
|
-
|
520
|
+
datepicker_extendRemove(inst.settings, settings);
|
485
521
|
// reformat the old minDate/maxDate values if dateFormat changes and a new minDate/maxDate isn't provided
|
486
522
|
if (minDate !== null && settings.dateFormat !== undefined && settings.minDate === undefined) {
|
487
523
|
inst.settings.minDate = this._formatDate(inst, minDate);
|
@@ -709,7 +745,7 @@ $.extend(Datepicker.prototype, {
|
|
709
745
|
if(beforeShowSettings === false){
|
710
746
|
return;
|
711
747
|
}
|
712
|
-
|
748
|
+
datepicker_extendRemove(inst.settings, beforeShowSettings);
|
713
749
|
|
714
750
|
inst.lastVal = null;
|
715
751
|
$.datepicker._lastInput = input;
|
@@ -746,7 +782,7 @@ $.extend(Datepicker.prototype, {
|
|
746
782
|
if (!inst.inline) {
|
747
783
|
showAnim = $.datepicker._get(inst, "showAnim");
|
748
784
|
duration = $.datepicker._get(inst, "duration");
|
749
|
-
inst.dpDiv.
|
785
|
+
inst.dpDiv.css( "z-index", datepicker_getZindex( $( input ) ) + 1 );
|
750
786
|
$.datepicker._datepickerShowing = true;
|
751
787
|
|
752
788
|
if ( $.effects && $.effects.effect[ showAnim ] ) {
|
@@ -755,9 +791,10 @@ $.extend(Datepicker.prototype, {
|
|
755
791
|
inst.dpDiv[showAnim || "show"](showAnim ? duration : null);
|
756
792
|
}
|
757
793
|
|
758
|
-
if (
|
794
|
+
if ( $.datepicker._shouldFocusInput( inst ) ) {
|
759
795
|
inst.input.focus();
|
760
796
|
}
|
797
|
+
|
761
798
|
$.datepicker._curInst = inst;
|
762
799
|
}
|
763
800
|
},
|
@@ -765,15 +802,19 @@ $.extend(Datepicker.prototype, {
|
|
765
802
|
/* Generate the date picker content. */
|
766
803
|
_updateDatepicker: function(inst) {
|
767
804
|
this.maxRows = 4; //Reset the max number of rows being displayed (see #7043)
|
768
|
-
|
805
|
+
datepicker_instActive = inst; // for delegate hover events
|
769
806
|
inst.dpDiv.empty().append(this._generateHTML(inst));
|
770
807
|
this._attachHandlers(inst);
|
771
|
-
inst.dpDiv.find("." + this._dayOverClass + " a").mouseover();
|
772
808
|
|
773
809
|
var origyearshtml,
|
774
810
|
numMonths = this._getNumberOfMonths(inst),
|
775
811
|
cols = numMonths[1],
|
776
|
-
width = 17
|
812
|
+
width = 17,
|
813
|
+
activeCell = inst.dpDiv.find( "." + this._dayOverClass + " a" );
|
814
|
+
|
815
|
+
if ( activeCell.length > 0 ) {
|
816
|
+
datepicker_handleMouseover.apply( activeCell.get( 0 ) );
|
817
|
+
}
|
777
818
|
|
778
819
|
inst.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");
|
779
820
|
if (cols > 1) {
|
@@ -784,10 +825,7 @@ $.extend(Datepicker.prototype, {
|
|
784
825
|
inst.dpDiv[(this._get(inst, "isRTL") ? "add" : "remove") +
|
785
826
|
"Class"]("ui-datepicker-rtl");
|
786
827
|
|
787
|
-
|
788
|
-
// this breaks the change event in IE
|
789
|
-
if (inst === $.datepicker._curInst && $.datepicker._datepickerShowing && inst.input &&
|
790
|
-
inst.input.is(":visible") && !inst.input.is(":disabled") && inst.input[0] !== document.activeElement) {
|
828
|
+
if (inst === $.datepicker._curInst && $.datepicker._datepickerShowing && $.datepicker._shouldFocusInput( inst ) ) {
|
791
829
|
inst.input.focus();
|
792
830
|
}
|
793
831
|
|
@@ -804,16 +842,11 @@ $.extend(Datepicker.prototype, {
|
|
804
842
|
}
|
805
843
|
},
|
806
844
|
|
807
|
-
|
808
|
-
|
809
|
-
|
810
|
-
|
811
|
-
|
812
|
-
var convert = function(value) {
|
813
|
-
return {thin: 1, medium: 2, thick: 3}[value] || value;
|
814
|
-
};
|
815
|
-
return [parseFloat(convert(elem.css("border-left-width"))),
|
816
|
-
parseFloat(convert(elem.css("border-top-width")))];
|
845
|
+
// #6694 - don't focus the input if it's already focused
|
846
|
+
// this breaks the change event in IE
|
847
|
+
// Support: IE and jQuery <1.9
|
848
|
+
_shouldFocusInput: function( inst ) {
|
849
|
+
return inst.input && inst.input.is( ":visible" ) && !inst.input.is( ":disabled" ) && !inst.input.is( ":focus" );
|
817
850
|
},
|
818
851
|
|
819
852
|
/* Check positioning to remain on screen. */
|
@@ -859,7 +892,7 @@ $.extend(Datepicker.prototype, {
|
|
859
892
|
var showAnim, duration, postProcess, onClose,
|
860
893
|
inst = this._curInst;
|
861
894
|
|
862
|
-
if (!inst || (input && inst !== $.data(input,
|
895
|
+
if (!inst || (input && inst !== $.data(input, "datepicker"))) {
|
863
896
|
return;
|
864
897
|
}
|
865
898
|
|
@@ -1115,7 +1148,8 @@ $.extend(Datepicker.prototype, {
|
|
1115
1148
|
var isDoubled = lookAhead(match),
|
1116
1149
|
size = (match === "@" ? 14 : (match === "!" ? 20 :
|
1117
1150
|
(match === "y" && isDoubled ? 4 : (match === "o" ? 3 : 2)))),
|
1118
|
-
|
1151
|
+
minSize = (match === "y" ? size : 1),
|
1152
|
+
digits = new RegExp("^\\d{" + minSize + "," + size + "}"),
|
1119
1153
|
num = value.substring(iValue).match(digits);
|
1120
1154
|
if (!num) {
|
1121
1155
|
throw "Missing number at position " + iValue;
|
@@ -1560,27 +1594,27 @@ $.extend(Datepicker.prototype, {
|
|
1560
1594
|
inst.dpDiv.find("[data-handler]").map(function () {
|
1561
1595
|
var handler = {
|
1562
1596
|
prev: function () {
|
1563
|
-
|
1597
|
+
$.datepicker._adjustDate(id, -stepMonths, "M");
|
1564
1598
|
},
|
1565
1599
|
next: function () {
|
1566
|
-
|
1600
|
+
$.datepicker._adjustDate(id, +stepMonths, "M");
|
1567
1601
|
},
|
1568
1602
|
hide: function () {
|
1569
|
-
|
1603
|
+
$.datepicker._hideDatepicker();
|
1570
1604
|
},
|
1571
1605
|
today: function () {
|
1572
|
-
|
1606
|
+
$.datepicker._gotoToday(id);
|
1573
1607
|
},
|
1574
1608
|
selectDay: function () {
|
1575
|
-
|
1609
|
+
$.datepicker._selectDay(id, +this.getAttribute("data-month"), +this.getAttribute("data-year"), this);
|
1576
1610
|
return false;
|
1577
1611
|
},
|
1578
1612
|
selectMonth: function () {
|
1579
|
-
|
1613
|
+
$.datepicker._selectMonthYear(id, this, "M");
|
1580
1614
|
return false;
|
1581
1615
|
},
|
1582
1616
|
selectYear: function () {
|
1583
|
-
|
1617
|
+
$.datepicker._selectMonthYear(id, this, "Y");
|
1584
1618
|
return false;
|
1585
1619
|
}
|
1586
1620
|
};
|
@@ -1709,7 +1743,7 @@ $.extend(Datepicker.prototype, {
|
|
1709
1743
|
thead = (showWeek ? "<th class='ui-datepicker-week-col'>" + this._get(inst, "weekHeader") + "</th>" : "");
|
1710
1744
|
for (dow = 0; dow < 7; dow++) { // days of the week
|
1711
1745
|
day = (dow + firstDay) % 7;
|
1712
|
-
thead += "<th" + ((dow + firstDay + 6) % 7 >= 5 ? " class='ui-datepicker-week-end'" : "") + ">" +
|
1746
|
+
thead += "<th scope='col'" + ((dow + firstDay + 6) % 7 >= 5 ? " class='ui-datepicker-week-end'" : "") + ">" +
|
1713
1747
|
"<span title='" + dayNames[day] + "'>" + dayNamesMin[day] + "</span></th>";
|
1714
1748
|
}
|
1715
1749
|
calender += thead + "</tr></thead><tbody>";
|
@@ -1743,7 +1777,7 @@ $.extend(Datepicker.prototype, {
|
|
1743
1777
|
(otherMonth && !showOtherMonths ? "" : " " + daySettings[1] + // highlight custom dates
|
1744
1778
|
(printDate.getTime() === currentDate.getTime() ? " " + this._currentClass : "") + // highlight selected day
|
1745
1779
|
(printDate.getTime() === today.getTime() ? " ui-datepicker-today" : "")) + "'" + // highlight today (if different)
|
1746
|
-
((!otherMonth || showOtherMonths) && daySettings[2] ? " title='" + daySettings[2] + "'" : "") + // cell title
|
1780
|
+
((!otherMonth || showOtherMonths) && daySettings[2] ? " title='" + daySettings[2].replace(/'/g, "'") + "'" : "") + // cell title
|
1747
1781
|
(unselectable ? "" : " data-handler='selectDay' data-event='click' data-month='" + printDate.getMonth() + "' data-year='" + printDate.getFullYear() + "'") + ">" + // actions
|
1748
1782
|
(otherMonth && !showOtherMonths ? " " : // display for other months
|
1749
1783
|
(unselectable ? "<span class='ui-state-default'>" + printDate.getDate() + "</span>" : "<a class='ui-state-default" +
|
@@ -1920,8 +1954,14 @@ $.extend(Datepicker.prototype, {
|
|
1920
1954
|
if (years){
|
1921
1955
|
yearSplit = years.split(":");
|
1922
1956
|
currentYear = new Date().getFullYear();
|
1923
|
-
minYear = parseInt(yearSplit[0], 10)
|
1924
|
-
maxYear = parseInt(yearSplit[1], 10)
|
1957
|
+
minYear = parseInt(yearSplit[0], 10);
|
1958
|
+
maxYear = parseInt(yearSplit[1], 10);
|
1959
|
+
if ( yearSplit[0].match(/[+\-].*/) ) {
|
1960
|
+
minYear += currentYear;
|
1961
|
+
}
|
1962
|
+
if ( yearSplit[1].match(/[+\-].*/) ) {
|
1963
|
+
maxYear += currentYear;
|
1964
|
+
}
|
1925
1965
|
}
|
1926
1966
|
|
1927
1967
|
return ((!minDate || date.getTime() >= minDate.getTime()) &&
|
@@ -1957,9 +1997,9 @@ $.extend(Datepicker.prototype, {
|
|
1957
1997
|
/*
|
1958
1998
|
* Bind hover events for datepicker elements.
|
1959
1999
|
* Done via delegate so the binding only occurs once in the lifetime of the parent div.
|
1960
|
-
* Global
|
2000
|
+
* Global datepicker_instActive, set by _updateDatepicker allows the handlers to find their way back to the active picker.
|
1961
2001
|
*/
|
1962
|
-
function
|
2002
|
+
function datepicker_bindHover(dpDiv) {
|
1963
2003
|
var selector = "button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";
|
1964
2004
|
return dpDiv.delegate(selector, "mouseout", function() {
|
1965
2005
|
$(this).removeClass("ui-state-hover");
|
@@ -1970,22 +2010,24 @@ function bindHover(dpDiv) {
|
|
1970
2010
|
$(this).removeClass("ui-datepicker-next-hover");
|
1971
2011
|
}
|
1972
2012
|
})
|
1973
|
-
.delegate(selector, "mouseover",
|
1974
|
-
|
1975
|
-
|
1976
|
-
|
1977
|
-
|
1978
|
-
|
1979
|
-
|
1980
|
-
|
1981
|
-
|
1982
|
-
|
1983
|
-
|
1984
|
-
|
2013
|
+
.delegate( selector, "mouseover", datepicker_handleMouseover );
|
2014
|
+
}
|
2015
|
+
|
2016
|
+
function datepicker_handleMouseover() {
|
2017
|
+
if (!$.datepicker._isDisabledDatepicker( datepicker_instActive.inline? datepicker_instActive.dpDiv.parent()[0] : datepicker_instActive.input[0])) {
|
2018
|
+
$(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");
|
2019
|
+
$(this).addClass("ui-state-hover");
|
2020
|
+
if (this.className.indexOf("ui-datepicker-prev") !== -1) {
|
2021
|
+
$(this).addClass("ui-datepicker-prev-hover");
|
2022
|
+
}
|
2023
|
+
if (this.className.indexOf("ui-datepicker-next") !== -1) {
|
2024
|
+
$(this).addClass("ui-datepicker-next-hover");
|
2025
|
+
}
|
2026
|
+
}
|
1985
2027
|
}
|
1986
2028
|
|
1987
2029
|
/* jQuery extend now ignores nulls! */
|
1988
|
-
function
|
2030
|
+
function datepicker_extendRemove(target, props) {
|
1989
2031
|
$.extend(target, props);
|
1990
2032
|
for (var name in props) {
|
1991
2033
|
if (props[name] == null) {
|
@@ -2037,10 +2079,8 @@ $.fn.datepicker = function(options){
|
|
2037
2079
|
$.datepicker = new Datepicker(); // singleton instance
|
2038
2080
|
$.datepicker.initialized = false;
|
2039
2081
|
$.datepicker.uuid = new Date().getTime();
|
2040
|
-
$.datepicker.version = "1.
|
2082
|
+
$.datepicker.version = "1.11.3";
|
2041
2083
|
|
2042
|
-
|
2043
|
-
// Add another global to avoid noConflict issues with inline event handlers
|
2044
|
-
window["DP_jQuery_" + dpuuid] = $;
|
2084
|
+
return $.datepicker;
|
2045
2085
|
|
2046
|
-
})
|
2086
|
+
}));
|