jquery-ui-rails 6.0.1 → 8.0.0
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.
- checksums.yaml +5 -5
- data/History.md +11 -2
- data/README.md +12 -12
- data/Rakefile +8 -3
- data/VERSIONS.md +2 -0
- data/app/assets/images/jquery-ui/ui-icons_444444_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_555555_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_777620_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_777777_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_cc0000_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_ffffff_256x240.png +0 -0
- data/app/assets/javascripts/jquery-ui/data.js +16 -18
- data/app/assets/javascripts/jquery-ui/disable-selection.js +10 -7
- data/app/assets/javascripts/jquery-ui/effect.js +69 -752
- data/app/assets/javascripts/jquery-ui/effects/effect-blind.js +11 -8
- data/app/assets/javascripts/jquery-ui/effects/effect-bounce.js +11 -8
- data/app/assets/javascripts/jquery-ui/effects/effect-clip.js +11 -8
- data/app/assets/javascripts/jquery-ui/effects/effect-drop.js +11 -8
- data/app/assets/javascripts/jquery-ui/effects/effect-explode.js +13 -10
- data/app/assets/javascripts/jquery-ui/effects/effect-fade.js +11 -8
- data/app/assets/javascripts/jquery-ui/effects/effect-fold.js +11 -8
- data/app/assets/javascripts/jquery-ui/effects/effect-highlight.js +11 -8
- data/app/assets/javascripts/jquery-ui/effects/effect-puff.js +11 -8
- data/app/assets/javascripts/jquery-ui/effects/effect-pulsate.js +11 -8
- data/app/assets/javascripts/jquery-ui/effects/effect-scale.js +11 -8
- data/app/assets/javascripts/jquery-ui/effects/effect-shake.js +11 -8
- data/app/assets/javascripts/jquery-ui/effects/effect-size.js +13 -8
- data/app/assets/javascripts/jquery-ui/effects/effect-slide.js +11 -8
- data/app/assets/javascripts/jquery-ui/effects/effect-transfer.js +12 -9
- data/app/assets/javascripts/jquery-ui/focusable.js +13 -20
- data/app/assets/javascripts/jquery-ui/form-reset-mixin.js +11 -10
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-af.js +8 -5
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ar-DZ.js +8 -5
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ar.js +7 -4
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-az.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-be.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-bg.js +15 -12
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-bs.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ca.js +12 -9
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-cs.js +12 -9
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-cy-GB.js +8 -5
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-da.js +15 -12
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-de-AT.js +41 -0
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-de.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-el.js +13 -10
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-AU.js +8 -5
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-GB.js +8 -5
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-en-NZ.js +8 -5
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-eo.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-es.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-et.js +8 -5
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-eu.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fa.js +8 -5
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fi.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fo.js +13 -10
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr-CA.js +5 -2
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr-CH.js +7 -4
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr.js +6 -3
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-gl.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-he.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-hi.js +7 -4
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-hr.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-hu.js +9 -6
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-hy.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-id.js +16 -12
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-is.js +13 -10
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-it-CH.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-it.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ja.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ka.js +11 -8
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-kk.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-km.js +9 -6
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ko.js +12 -9
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ky.js +12 -9
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-lb.js +8 -5
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-lt.js +13 -10
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-lv.js +11 -8
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-mk.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ml.js +8 -5
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ms.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-nb.js +11 -8
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-nl-BE.js +7 -4
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-nl.js +8 -5
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-nn.js +11 -8
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-no.js +11 -8
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-pl.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-pt-BR.js +13 -10
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-pt.js +12 -9
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-rm.js +10 -7
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ro.js +10 -7
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ru.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sk.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sl.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sq.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sr-SR.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sr.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sv.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ta.js +10 -7
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-th.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-tj.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-tr.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-uk.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-vi.js +7 -4
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-CN.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-HK.js +14 -11
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-TW.js +15 -12
- data/app/assets/javascripts/jquery-ui/jquery-patch.js +58 -0
- data/app/assets/javascripts/jquery-ui/jquery-var-for-color.js +24 -0
- data/app/assets/javascripts/jquery-ui/keycode.js +11 -7
- data/app/assets/javascripts/jquery-ui/labels.js +18 -13
- data/app/assets/javascripts/jquery-ui/plugin.js +5 -2
- data/app/assets/javascripts/jquery-ui/position.js +30 -17
- data/app/assets/javascripts/jquery-ui/scroll-parent.js +10 -7
- data/app/assets/javascripts/jquery-ui/tabbable.js +11 -8
- data/app/assets/javascripts/jquery-ui/unique-id.js +10 -7
- data/app/assets/javascripts/jquery-ui/vendor/jquery-color/jquery.color.js +691 -0
- data/app/assets/javascripts/jquery-ui/version.js +6 -3
- data/app/assets/javascripts/jquery-ui/widget.js +56 -30
- data/app/assets/javascripts/jquery-ui/widgets/accordion.js +32 -23
- data/app/assets/javascripts/jquery-ui/widgets/autocomplete.js +31 -74
- data/app/assets/javascripts/jquery-ui/widgets/button.js +91 -28
- data/app/assets/javascripts/jquery-ui/widgets/checkboxradio.js +27 -24
- data/app/assets/javascripts/jquery-ui/widgets/controlgroup.js +15 -11
- data/app/assets/javascripts/jquery-ui/widgets/datepicker.js +185 -68
- data/app/assets/javascripts/jquery-ui/widgets/dialog.js +57 -54
- data/app/assets/javascripts/jquery-ui/widgets/draggable.js +30 -25
- data/app/assets/javascripts/jquery-ui/widgets/droppable.js +25 -19
- data/app/assets/javascripts/jquery-ui/widgets/menu.js +90 -52
- data/app/assets/javascripts/jquery-ui/widgets/mouse.js +36 -40
- data/app/assets/javascripts/jquery-ui/widgets/progressbar.js +14 -11
- data/app/assets/javascripts/jquery-ui/widgets/resizable.js +116 -42
- data/app/assets/javascripts/jquery-ui/widgets/selectable.js +18 -11
- data/app/assets/javascripts/jquery-ui/widgets/selectmenu.js +30 -52
- data/app/assets/javascripts/jquery-ui/widgets/slider.js +15 -12
- data/app/assets/javascripts/jquery-ui/widgets/sortable.js +193 -140
- data/app/assets/javascripts/jquery-ui/widgets/spinner.js +28 -45
- data/app/assets/javascripts/jquery-ui/widgets/tabs.js +32 -66
- data/app/assets/javascripts/jquery-ui/widgets/tooltip.js +38 -36
- data/app/assets/javascripts/jquery-ui.js +3 -7
- data/app/assets/stylesheets/jquery-ui/accordion.css +5 -5
- data/app/assets/stylesheets/jquery-ui/all.css +5 -5
- data/app/assets/stylesheets/jquery-ui/autocomplete.css +5 -5
- data/app/assets/stylesheets/jquery-ui/base.css +5 -5
- data/app/assets/stylesheets/jquery-ui/button.css +6 -11
- data/app/assets/stylesheets/jquery-ui/checkboxradio.css +5 -5
- data/app/assets/stylesheets/jquery-ui/controlgroup.css +5 -8
- data/app/assets/stylesheets/jquery-ui/core.css +5 -9
- data/app/assets/stylesheets/jquery-ui/datepicker.css +5 -5
- data/app/assets/stylesheets/jquery-ui/dialog.css +5 -5
- data/app/assets/stylesheets/jquery-ui/draggable.css +4 -5
- data/app/assets/stylesheets/jquery-ui/menu.css +5 -7
- data/app/assets/stylesheets/jquery-ui/progressbar.css +5 -6
- data/app/assets/stylesheets/jquery-ui/resizable.css +4 -5
- data/app/assets/stylesheets/jquery-ui/selectable.css +4 -5
- data/app/assets/stylesheets/jquery-ui/selectmenu.css +5 -5
- data/app/assets/stylesheets/jquery-ui/slider.css +6 -13
- data/app/assets/stylesheets/jquery-ui/sortable.css +4 -5
- data/app/assets/stylesheets/jquery-ui/spinner.css +5 -5
- data/app/assets/stylesheets/jquery-ui/tabs.css +5 -5
- data/app/assets/stylesheets/jquery-ui/theme.css.erb +10 -14
- data/app/assets/stylesheets/jquery-ui/tooltip.css +5 -5
- data/lib/jquery/ui/rails/version.rb +2 -2
- metadata +11 -15
- data/app/assets/javascripts/jquery-ui/core.js +0 -15
- data/app/assets/javascripts/jquery-ui/escape-selector.js +0 -23
- data/app/assets/javascripts/jquery-ui/form.js +0 -22
- data/app/assets/javascripts/jquery-ui/ie.js +0 -17
- data/app/assets/javascripts/jquery-ui/jquery-1-7.js +0 -91
- data/app/assets/javascripts/jquery-ui/safe-active-element.js +0 -42
- data/app/assets/javascripts/jquery-ui/safe-blur.js +0 -23
@@ -1,29 +1,30 @@
|
|
1
1
|
//= require jquery-ui/keycode
|
2
2
|
//= require jquery-ui/position
|
3
|
-
//= require jquery-ui/safe-active-element
|
4
3
|
//= require jquery-ui/unique-id
|
5
4
|
//= require jquery-ui/version
|
6
5
|
//= require jquery-ui/widget
|
7
6
|
|
8
7
|
/*!
|
9
|
-
* jQuery UI Menu 1.
|
10
|
-
*
|
8
|
+
* jQuery UI Menu 1.14.1
|
9
|
+
* https://jqueryui.com
|
11
10
|
*
|
12
|
-
* Copyright
|
11
|
+
* Copyright OpenJS Foundation and other contributors
|
13
12
|
* Released under the MIT license.
|
14
|
-
*
|
13
|
+
* https://jquery.org/license
|
15
14
|
*/
|
16
15
|
|
17
16
|
//>>label: Menu
|
18
17
|
//>>group: Widgets
|
19
18
|
//>>description: Creates nestable menus.
|
20
|
-
//>>docs:
|
21
|
-
//>>demos:
|
19
|
+
//>>docs: https://api.jqueryui.com/menu/
|
20
|
+
//>>demos: https://jqueryui.com/menu/
|
22
21
|
//>>css.structure: ../../themes/base/core.css
|
23
22
|
//>>css.structure: ../../themes/base/menu.css
|
24
23
|
//>>css.theme: ../../themes/base/theme.css
|
25
24
|
|
26
25
|
( function( factory ) {
|
26
|
+
"use strict";
|
27
|
+
|
27
28
|
if ( typeof define === "function" && define.amd ) {
|
28
29
|
|
29
30
|
// AMD. Register as an anonymous module.
|
@@ -31,7 +32,6 @@
|
|
31
32
|
"jquery",
|
32
33
|
"../keycode",
|
33
34
|
"../position",
|
34
|
-
"../safe-active-element",
|
35
35
|
"../unique-id",
|
36
36
|
"../version",
|
37
37
|
"../widget"
|
@@ -41,10 +41,11 @@
|
|
41
41
|
// Browser globals
|
42
42
|
factory( jQuery );
|
43
43
|
}
|
44
|
-
}( function( $ ) {
|
44
|
+
} )( function( $ ) {
|
45
|
+
"use strict";
|
45
46
|
|
46
47
|
return $.widget( "ui.menu", {
|
47
|
-
version: "1.
|
48
|
+
version: "1.14.1",
|
48
49
|
defaultElement: "<ul>",
|
49
50
|
delay: 300,
|
50
51
|
options: {
|
@@ -71,6 +72,7 @@ return $.widget( "ui.menu", {
|
|
71
72
|
// Flag used to prevent firing of the click handler
|
72
73
|
// as the event bubbles up through nested menus
|
73
74
|
this.mouseHandled = false;
|
75
|
+
this.lastMousePosition = { x: null, y: null };
|
74
76
|
this.element
|
75
77
|
.uniqueId()
|
76
78
|
.attr( {
|
@@ -85,10 +87,12 @@ return $.widget( "ui.menu", {
|
|
85
87
|
// them (focus should always stay on UL during navigation).
|
86
88
|
"mousedown .ui-menu-item": function( event ) {
|
87
89
|
event.preventDefault();
|
90
|
+
|
91
|
+
this._activateItem( event );
|
88
92
|
},
|
89
93
|
"click .ui-menu-item": function( event ) {
|
90
94
|
var target = $( event.target );
|
91
|
-
var active = $(
|
95
|
+
var active = $( this.document[ 0 ].activeElement );
|
92
96
|
if ( !this.mouseHandled && target.not( ".ui-state-disabled" ).length ) {
|
93
97
|
this.select( event );
|
94
98
|
|
@@ -114,36 +118,15 @@ return $.widget( "ui.menu", {
|
|
114
118
|
}
|
115
119
|
}
|
116
120
|
},
|
117
|
-
"mouseenter .ui-menu-item":
|
118
|
-
|
119
|
-
// Ignore mouse events while typeahead is active, see #10458.
|
120
|
-
// Prevents focusing the wrong item when typeahead causes a scroll while the mouse
|
121
|
-
// is over an item in the menu
|
122
|
-
if ( this.previousFilter ) {
|
123
|
-
return;
|
124
|
-
}
|
125
|
-
|
126
|
-
var actualTarget = $( event.target ).closest( ".ui-menu-item" ),
|
127
|
-
target = $( event.currentTarget );
|
128
|
-
|
129
|
-
// Ignore bubbled events on parent items, see #11641
|
130
|
-
if ( actualTarget[ 0 ] !== target[ 0 ] ) {
|
131
|
-
return;
|
132
|
-
}
|
133
|
-
|
134
|
-
// Remove ui-state-active class from siblings of the newly focused menu item
|
135
|
-
// to avoid a jump caused by adjacent elements both having a class with a border
|
136
|
-
this._removeClass( target.siblings().children( ".ui-state-active" ),
|
137
|
-
null, "ui-state-active" );
|
138
|
-
this.focus( event, target );
|
139
|
-
},
|
121
|
+
"mouseenter .ui-menu-item": "_activateItem",
|
122
|
+
"mousemove .ui-menu-item": "_activateItem",
|
140
123
|
mouseleave: "collapseAll",
|
141
124
|
"mouseleave .ui-menu": "collapseAll",
|
142
125
|
focus: function( event, keepActiveItem ) {
|
143
126
|
|
144
127
|
// If there's already an active item, keep it active
|
145
128
|
// If not, activate the first item
|
146
|
-
var item = this.active || this.
|
129
|
+
var item = this.active || this._menuItems().first();
|
147
130
|
|
148
131
|
if ( !keepActiveItem ) {
|
149
132
|
this.focus( event, item );
|
@@ -153,7 +136,7 @@ return $.widget( "ui.menu", {
|
|
153
136
|
this._delay( function() {
|
154
137
|
var notContained = !$.contains(
|
155
138
|
this.element[ 0 ],
|
156
|
-
|
139
|
+
this.document[ 0 ].activeElement
|
157
140
|
);
|
158
141
|
if ( notContained ) {
|
159
142
|
this.collapseAll( event );
|
@@ -169,7 +152,7 @@ return $.widget( "ui.menu", {
|
|
169
152
|
this._on( this.document, {
|
170
153
|
click: function( event ) {
|
171
154
|
if ( this._closeOnDocumentClick( event ) ) {
|
172
|
-
this.collapseAll( event );
|
155
|
+
this.collapseAll( event, true );
|
173
156
|
}
|
174
157
|
|
175
158
|
// Reset the mouseHandled flag
|
@@ -178,6 +161,46 @@ return $.widget( "ui.menu", {
|
|
178
161
|
} );
|
179
162
|
},
|
180
163
|
|
164
|
+
_activateItem: function( event ) {
|
165
|
+
|
166
|
+
// Ignore mouse events while typeahead is active, see #10458.
|
167
|
+
// Prevents focusing the wrong item when typeahead causes a scroll while the mouse
|
168
|
+
// is over an item in the menu
|
169
|
+
if ( this.previousFilter ) {
|
170
|
+
return;
|
171
|
+
}
|
172
|
+
|
173
|
+
// If the mouse didn't actually move, but the page was scrolled, ignore the event (#9356)
|
174
|
+
if ( event.clientX === this.lastMousePosition.x &&
|
175
|
+
event.clientY === this.lastMousePosition.y ) {
|
176
|
+
return;
|
177
|
+
}
|
178
|
+
|
179
|
+
this.lastMousePosition = {
|
180
|
+
x: event.clientX,
|
181
|
+
y: event.clientY
|
182
|
+
};
|
183
|
+
|
184
|
+
var actualTarget = $( event.target ).closest( ".ui-menu-item" ),
|
185
|
+
target = $( event.currentTarget );
|
186
|
+
|
187
|
+
// Ignore bubbled events on parent items, see #11641
|
188
|
+
if ( actualTarget[ 0 ] !== target[ 0 ] ) {
|
189
|
+
return;
|
190
|
+
}
|
191
|
+
|
192
|
+
// If the item is already active, there's nothing to do
|
193
|
+
if ( target.is( ".ui-state-active" ) ) {
|
194
|
+
return;
|
195
|
+
}
|
196
|
+
|
197
|
+
// Remove ui-state-active class from siblings of the newly focused menu item
|
198
|
+
// to avoid a jump caused by adjacent elements both having a class with a border
|
199
|
+
this._removeClass( target.siblings().children( ".ui-state-active" ),
|
200
|
+
null, "ui-state-active" );
|
201
|
+
this.focus( event, target );
|
202
|
+
},
|
203
|
+
|
181
204
|
_destroy: function() {
|
182
205
|
var items = this.element.find( ".ui-menu-item" )
|
183
206
|
.removeAttr( "role aria-disabled" ),
|
@@ -509,7 +532,7 @@ return $.widget( "ui.menu", {
|
|
509
532
|
this._removeClass( currentMenu.find( ".ui-state-active" ), null, "ui-state-active" );
|
510
533
|
|
511
534
|
this.activeMenu = currentMenu;
|
512
|
-
}, this.delay );
|
535
|
+
}, all ? 0 : this.delay );
|
513
536
|
},
|
514
537
|
|
515
538
|
// With no arguments, closes the currently active menu - if nothing is active
|
@@ -545,11 +568,7 @@ return $.widget( "ui.menu", {
|
|
545
568
|
},
|
546
569
|
|
547
570
|
expand: function( event ) {
|
548
|
-
var newItem = this.active &&
|
549
|
-
this.active
|
550
|
-
.children( ".ui-menu " )
|
551
|
-
.find( this.options.items )
|
552
|
-
.first();
|
571
|
+
var newItem = this.active && this._menuItems( this.active.children( ".ui-menu" ) ).first();
|
553
572
|
|
554
573
|
if ( newItem && newItem.length ) {
|
555
574
|
this._open( newItem.parent() );
|
@@ -577,21 +596,27 @@ return $.widget( "ui.menu", {
|
|
577
596
|
return this.active && !this.active.nextAll( ".ui-menu-item" ).length;
|
578
597
|
},
|
579
598
|
|
599
|
+
_menuItems: function( menu ) {
|
600
|
+
return ( menu || this.element )
|
601
|
+
.find( this.options.items )
|
602
|
+
.filter( ".ui-menu-item" );
|
603
|
+
},
|
604
|
+
|
580
605
|
_move: function( direction, filter, event ) {
|
581
606
|
var next;
|
582
607
|
if ( this.active ) {
|
583
608
|
if ( direction === "first" || direction === "last" ) {
|
584
609
|
next = this.active
|
585
610
|
[ direction === "first" ? "prevAll" : "nextAll" ]( ".ui-menu-item" )
|
586
|
-
.
|
611
|
+
.last();
|
587
612
|
} else {
|
588
613
|
next = this.active
|
589
614
|
[ direction + "All" ]( ".ui-menu-item" )
|
590
|
-
.
|
615
|
+
.first();
|
591
616
|
}
|
592
617
|
}
|
593
618
|
if ( !next || !next.length || !this.active ) {
|
594
|
-
next = this.
|
619
|
+
next = this._menuItems( this.activeMenu )[ filter ]();
|
595
620
|
}
|
596
621
|
|
597
622
|
this.focus( event, next );
|
@@ -609,7 +634,13 @@ return $.widget( "ui.menu", {
|
|
609
634
|
}
|
610
635
|
if ( this._hasScroll() ) {
|
611
636
|
base = this.active.offset().top;
|
612
|
-
height = this.element.
|
637
|
+
height = this.element.innerHeight();
|
638
|
+
|
639
|
+
// jQuery 3.2 doesn't include scrollbars in innerHeight, add it back.
|
640
|
+
if ( $.fn.jquery.indexOf( "3.2." ) === 0 ) {
|
641
|
+
height += this.element[ 0 ].offsetHeight - this.element.outerHeight();
|
642
|
+
}
|
643
|
+
|
613
644
|
this.active.nextAll( ".ui-menu-item" ).each( function() {
|
614
645
|
item = $( this );
|
615
646
|
return item.offset().top - base - height < 0;
|
@@ -617,7 +648,7 @@ return $.widget( "ui.menu", {
|
|
617
648
|
|
618
649
|
this.focus( event, item );
|
619
650
|
} else {
|
620
|
-
this.focus( event, this.
|
651
|
+
this.focus( event, this._menuItems( this.activeMenu )
|
621
652
|
[ !this.active ? "first" : "last" ]() );
|
622
653
|
}
|
623
654
|
},
|
@@ -633,7 +664,13 @@ return $.widget( "ui.menu", {
|
|
633
664
|
}
|
634
665
|
if ( this._hasScroll() ) {
|
635
666
|
base = this.active.offset().top;
|
636
|
-
height = this.element.
|
667
|
+
height = this.element.innerHeight();
|
668
|
+
|
669
|
+
// jQuery 3.2 doesn't include scrollbars in innerHeight, add it back.
|
670
|
+
if ( $.fn.jquery.indexOf( "3.2." ) === 0 ) {
|
671
|
+
height += this.element[ 0 ].offsetHeight - this.element.outerHeight();
|
672
|
+
}
|
673
|
+
|
637
674
|
this.active.prevAll( ".ui-menu-item" ).each( function() {
|
638
675
|
item = $( this );
|
639
676
|
return item.offset().top - base + height > 0;
|
@@ -641,7 +678,7 @@ return $.widget( "ui.menu", {
|
|
641
678
|
|
642
679
|
this.focus( event, item );
|
643
680
|
} else {
|
644
|
-
this.focus( event, this.
|
681
|
+
this.focus( event, this._menuItems( this.activeMenu ).first() );
|
645
682
|
}
|
646
683
|
},
|
647
684
|
|
@@ -672,9 +709,10 @@ return $.widget( "ui.menu", {
|
|
672
709
|
.filter( ".ui-menu-item" )
|
673
710
|
.filter( function() {
|
674
711
|
return regex.test(
|
675
|
-
|
712
|
+
String.prototype.trim.call(
|
713
|
+
$( this ).children( ".ui-menu-item-wrapper" ).text() ) );
|
676
714
|
} );
|
677
715
|
}
|
678
716
|
} );
|
679
717
|
|
680
|
-
} )
|
718
|
+
} );
|
@@ -1,28 +1,28 @@
|
|
1
|
-
//= require jquery-ui/ie
|
2
1
|
//= require jquery-ui/version
|
3
2
|
//= require jquery-ui/widget
|
4
3
|
|
5
4
|
/*!
|
6
|
-
* jQuery UI Mouse 1.
|
7
|
-
*
|
5
|
+
* jQuery UI Mouse 1.14.1
|
6
|
+
* https://jqueryui.com
|
8
7
|
*
|
9
|
-
* Copyright
|
8
|
+
* Copyright OpenJS Foundation and other contributors
|
10
9
|
* Released under the MIT license.
|
11
|
-
*
|
10
|
+
* https://jquery.org/license
|
12
11
|
*/
|
13
12
|
|
14
13
|
//>>label: Mouse
|
15
14
|
//>>group: Widgets
|
16
15
|
//>>description: Abstracts mouse-based interactions to assist in creating certain widgets.
|
17
|
-
//>>docs:
|
16
|
+
//>>docs: https://api.jqueryui.com/mouse/
|
18
17
|
|
19
18
|
( function( factory ) {
|
19
|
+
"use strict";
|
20
|
+
|
20
21
|
if ( typeof define === "function" && define.amd ) {
|
21
22
|
|
22
23
|
// AMD. Register as an anonymous module.
|
23
24
|
define( [
|
24
25
|
"jquery",
|
25
|
-
"../ie",
|
26
26
|
"../version",
|
27
27
|
"../widget"
|
28
28
|
], factory );
|
@@ -31,7 +31,8 @@
|
|
31
31
|
// Browser globals
|
32
32
|
factory( jQuery );
|
33
33
|
}
|
34
|
-
}( function( $ ) {
|
34
|
+
} )( function( $ ) {
|
35
|
+
"use strict";
|
35
36
|
|
36
37
|
var mouseHandled = false;
|
37
38
|
$( document ).on( "mouseup", function() {
|
@@ -39,7 +40,7 @@ $( document ).on( "mouseup", function() {
|
|
39
40
|
} );
|
40
41
|
|
41
42
|
return $.widget( "ui.mouse", {
|
42
|
-
version: "1.
|
43
|
+
version: "1.14.1",
|
43
44
|
options: {
|
44
45
|
cancel: "input, textarea, button, select, option",
|
45
46
|
distance: 1,
|
@@ -84,17 +85,17 @@ return $.widget( "ui.mouse", {
|
|
84
85
|
this._mouseMoved = false;
|
85
86
|
|
86
87
|
// We may have missed mouseup (out of window)
|
87
|
-
( this._mouseStarted
|
88
|
+
if ( this._mouseStarted ) {
|
89
|
+
this._mouseUp( event );
|
90
|
+
}
|
88
91
|
|
89
92
|
this._mouseDownEvent = event;
|
90
93
|
|
91
94
|
var that = this,
|
92
|
-
btnIsLeft =
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
elIsCancel = ( typeof this.options.cancel === "string" && event.target.nodeName ?
|
97
|
-
$( event.target ).closest( this.options.cancel ).length : false );
|
95
|
+
btnIsLeft = event.which === 1,
|
96
|
+
elIsCancel = typeof this.options.cancel === "string" ?
|
97
|
+
$( event.target ).closest( this.options.cancel ).length :
|
98
|
+
false;
|
98
99
|
if ( !btnIsLeft || elIsCancel || !this._mouseCapture( event ) ) {
|
99
100
|
return true;
|
100
101
|
}
|
@@ -140,28 +141,17 @@ return $.widget( "ui.mouse", {
|
|
140
141
|
_mouseMove: function( event ) {
|
141
142
|
|
142
143
|
// Only check for mouseups outside the document if you've moved inside the document
|
143
|
-
// at least once.
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
//
|
149
|
-
if (
|
150
|
-
|
144
|
+
// at least once.
|
145
|
+
if ( this._mouseMoved && !event.which ) {
|
146
|
+
|
147
|
+
// Support: Safari <=8 - 9
|
148
|
+
// Safari sets which to 0 if you press any of the following keys
|
149
|
+
// during a drag (#14461)
|
150
|
+
if ( event.originalEvent.altKey || event.originalEvent.ctrlKey ||
|
151
|
+
event.originalEvent.metaKey || event.originalEvent.shiftKey ) {
|
152
|
+
this.ignoreMissingWhich = true;
|
153
|
+
} else if ( !this.ignoreMissingWhich ) {
|
151
154
|
return this._mouseUp( event );
|
152
|
-
|
153
|
-
// Iframe mouseup check - mouseup occurred in another document
|
154
|
-
} else if ( !event.which ) {
|
155
|
-
|
156
|
-
// Support: Safari <=8 - 9
|
157
|
-
// Safari sets which to 0 if you press any of the following keys
|
158
|
-
// during a drag (#14461)
|
159
|
-
if ( event.originalEvent.altKey || event.originalEvent.ctrlKey ||
|
160
|
-
event.originalEvent.metaKey || event.originalEvent.shiftKey ) {
|
161
|
-
this.ignoreMissingWhich = true;
|
162
|
-
} else if ( !this.ignoreMissingWhich ) {
|
163
|
-
return this._mouseUp( event );
|
164
|
-
}
|
165
155
|
}
|
166
156
|
}
|
167
157
|
|
@@ -177,7 +167,11 @@ return $.widget( "ui.mouse", {
|
|
177
167
|
if ( this._mouseDistanceMet( event ) && this._mouseDelayMet( event ) ) {
|
178
168
|
this._mouseStarted =
|
179
169
|
( this._mouseStart( this._mouseDownEvent, event ) !== false );
|
180
|
-
( this._mouseStarted
|
170
|
+
if ( this._mouseStarted ) {
|
171
|
+
this._mouseDrag( event );
|
172
|
+
} else {
|
173
|
+
this._mouseUp( event );
|
174
|
+
}
|
181
175
|
}
|
182
176
|
|
183
177
|
return !this._mouseStarted;
|
@@ -224,7 +218,9 @@ return $.widget( "ui.mouse", {
|
|
224
218
|
_mouseStart: function( /* event */ ) {},
|
225
219
|
_mouseDrag: function( /* event */ ) {},
|
226
220
|
_mouseStop: function( /* event */ ) {},
|
227
|
-
_mouseCapture: function( /* event */ ) {
|
221
|
+
_mouseCapture: function( /* event */ ) {
|
222
|
+
return true;
|
223
|
+
}
|
228
224
|
} );
|
229
225
|
|
230
|
-
} )
|
226
|
+
} );
|
@@ -2,26 +2,28 @@
|
|
2
2
|
//= require jquery-ui/widget
|
3
3
|
|
4
4
|
/*!
|
5
|
-
* jQuery UI Progressbar 1.
|
6
|
-
*
|
5
|
+
* jQuery UI Progressbar 1.14.1
|
6
|
+
* https://jqueryui.com
|
7
7
|
*
|
8
|
-
* Copyright
|
8
|
+
* Copyright OpenJS Foundation and other contributors
|
9
9
|
* Released under the MIT license.
|
10
|
-
*
|
10
|
+
* https://jquery.org/license
|
11
11
|
*/
|
12
12
|
|
13
13
|
//>>label: Progressbar
|
14
14
|
//>>group: Widgets
|
15
|
-
|
15
|
+
/* eslint-disable max-len */
|
16
16
|
//>>description: Displays a status indicator for loading state, standard percentage, and other progress indicators.
|
17
|
-
|
18
|
-
//>>docs:
|
19
|
-
//>>demos:
|
17
|
+
/* eslint-enable max-len */
|
18
|
+
//>>docs: https://api.jqueryui.com/progressbar/
|
19
|
+
//>>demos: https://jqueryui.com/progressbar/
|
20
20
|
//>>css.structure: ../../themes/base/core.css
|
21
21
|
//>>css.structure: ../../themes/base/progressbar.css
|
22
22
|
//>>css.theme: ../../themes/base/theme.css
|
23
23
|
|
24
24
|
( function( factory ) {
|
25
|
+
"use strict";
|
26
|
+
|
25
27
|
if ( typeof define === "function" && define.amd ) {
|
26
28
|
|
27
29
|
// AMD. Register as an anonymous module.
|
@@ -35,10 +37,11 @@
|
|
35
37
|
// Browser globals
|
36
38
|
factory( jQuery );
|
37
39
|
}
|
38
|
-
}( function( $ ) {
|
40
|
+
} )( function( $ ) {
|
41
|
+
"use strict";
|
39
42
|
|
40
43
|
return $.widget( "ui.progressbar", {
|
41
|
-
version: "1.
|
44
|
+
version: "1.14.1",
|
42
45
|
options: {
|
43
46
|
classes: {
|
44
47
|
"ui-progressbar": "ui-corner-all",
|
@@ -178,4 +181,4 @@ return $.widget( "ui.progressbar", {
|
|
178
181
|
}
|
179
182
|
} );
|
180
183
|
|
181
|
-
} )
|
184
|
+
} );
|