jquery-ui-rails 7.0.0 → 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 +4 -4
- data/.gitmodules +1 -1
- data/History.md +4 -0
- data/VERSIONS.md +1 -0
- data/app/assets/javascripts/jquery-ui/data.js +10 -16
- data/app/assets/javascripts/jquery-ui/disable-selection.js +5 -5
- data/app/assets/javascripts/jquery-ui/effect.js +17 -38
- data/app/assets/javascripts/jquery-ui/effects/effect-blind.js +6 -6
- data/app/assets/javascripts/jquery-ui/effects/effect-bounce.js +6 -6
- data/app/assets/javascripts/jquery-ui/effects/effect-clip.js +6 -6
- data/app/assets/javascripts/jquery-ui/effects/effect-drop.js +6 -6
- data/app/assets/javascripts/jquery-ui/effects/effect-explode.js +6 -6
- data/app/assets/javascripts/jquery-ui/effects/effect-fade.js +6 -6
- data/app/assets/javascripts/jquery-ui/effects/effect-fold.js +6 -6
- data/app/assets/javascripts/jquery-ui/effects/effect-highlight.js +6 -6
- data/app/assets/javascripts/jquery-ui/effects/effect-puff.js +6 -6
- data/app/assets/javascripts/jquery-ui/effects/effect-pulsate.js +6 -6
- data/app/assets/javascripts/jquery-ui/effects/effect-scale.js +6 -6
- data/app/assets/javascripts/jquery-ui/effects/effect-shake.js +6 -6
- data/app/assets/javascripts/jquery-ui/effects/effect-size.js +6 -6
- data/app/assets/javascripts/jquery-ui/effects/effect-slide.js +6 -6
- data/app/assets/javascripts/jquery-ui/effects/effect-transfer.js +7 -7
- data/app/assets/javascripts/jquery-ui/focusable.js +7 -17
- data/app/assets/javascripts/jquery-ui/form-reset-mixin.js +6 -8
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ar-DZ.js +2 -2
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ar.js +2 -2
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-az.js +2 -2
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-be.js +2 -2
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-bg.js +3 -3
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-bs.js +2 -2
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-cs.js +2 -2
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-da.js +2 -2
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-de-AT.js +2 -2
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-de.js +2 -2
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-el.js +1 -1
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-eo.js +2 -2
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-es.js +2 -2
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-eu.js +2 -2
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fa.js +2 -2
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fi.js +2 -2
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fo.js +2 -2
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-fr-CH.js +2 -2
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-gl.js +2 -2
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-he.js +2 -2
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-hr.js +2 -2
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-hy.js +2 -2
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-id.js +6 -5
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-is.js +2 -2
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-it-CH.js +2 -2
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-it.js +2 -2
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ja.js +2 -2
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ka.js +2 -2
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-kk.js +2 -2
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ky.js +2 -2
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-lt.js +2 -2
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-mk.js +2 -2
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ms.js +2 -2
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-nb.js +2 -2
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-nl-BE.js +2 -2
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-nl.js +3 -3
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-nn.js +2 -2
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-no.js +2 -2
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-pl.js +2 -2
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-pt-BR.js +2 -2
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-rm.js +2 -2
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ro.js +2 -2
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-ru.js +2 -2
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sk.js +2 -2
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sl.js +2 -2
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sq.js +2 -2
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sr-SR.js +2 -2
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sr.js +2 -2
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-sv.js +2 -2
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-th.js +2 -2
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-tj.js +2 -2
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-tr.js +2 -2
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-uk.js +2 -2
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-vi.js +2 -2
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-CN.js +2 -2
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-HK.js +2 -2
- data/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-TW.js +2 -2
- data/app/assets/javascripts/jquery-ui/jquery-patch.js +8 -41
- data/app/assets/javascripts/jquery-ui/keycode.js +5 -5
- data/app/assets/javascripts/jquery-ui/labels.js +8 -9
- data/app/assets/javascripts/jquery-ui/position.js +7 -7
- data/app/assets/javascripts/jquery-ui/scroll-parent.js +5 -5
- data/app/assets/javascripts/jquery-ui/tabbable.js +5 -5
- data/app/assets/javascripts/jquery-ui/unique-id.js +5 -5
- data/app/assets/javascripts/jquery-ui/vendor/jquery-color/jquery.color.js +19 -50
- data/app/assets/javascripts/jquery-ui/version.js +1 -1
- data/app/assets/javascripts/jquery-ui/widget.js +17 -10
- data/app/assets/javascripts/jquery-ui/widgets/accordion.js +18 -18
- data/app/assets/javascripts/jquery-ui/widgets/autocomplete.js +21 -55
- data/app/assets/javascripts/jquery-ui/widgets/button.js +11 -11
- data/app/assets/javascripts/jquery-ui/widgets/checkboxradio.js +22 -17
- data/app/assets/javascripts/jquery-ui/widgets/controlgroup.js +7 -7
- data/app/assets/javascripts/jquery-ui/widgets/datepicker.js +12 -15
- data/app/assets/javascripts/jquery-ui/widgets/dialog.js +25 -36
- data/app/assets/javascripts/jquery-ui/widgets/draggable.js +10 -14
- data/app/assets/javascripts/jquery-ui/widgets/droppable.js +8 -8
- data/app/assets/javascripts/jquery-ui/widgets/menu.js +9 -11
- data/app/assets/javascripts/jquery-ui/widgets/mouse.js +20 -35
- data/app/assets/javascripts/jquery-ui/widgets/progressbar.js +7 -7
- data/app/assets/javascripts/jquery-ui/widgets/resizable.js +82 -26
- data/app/assets/javascripts/jquery-ui/widgets/selectable.js +7 -7
- data/app/assets/javascripts/jquery-ui/widgets/selectmenu.js +22 -49
- data/app/assets/javascripts/jquery-ui/widgets/slider.js +7 -7
- data/app/assets/javascripts/jquery-ui/widgets/sortable.js +76 -85
- data/app/assets/javascripts/jquery-ui/widgets/spinner.js +11 -35
- data/app/assets/javascripts/jquery-ui/widgets/tabs.js +22 -56
- data/app/assets/javascripts/jquery-ui/widgets/tooltip.js +25 -27
- data/app/assets/javascripts/jquery-ui.js +0 -5
- 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 +5 -12
- 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 +6 -13
- data/app/assets/stylesheets/jquery-ui/tooltip.css +5 -5
- data/lib/jquery/ui/rails/version.rb +2 -2
- metadata +6 -11
- data/app/assets/javascripts/jquery-ui/core.js +0 -15
- data/app/assets/javascripts/jquery-ui/form.js +0 -25
- data/app/assets/javascripts/jquery-ui/ie.js +0 -20
- data/app/assets/javascripts/jquery-ui/safe-active-element.js +0 -46
- data/app/assets/javascripts/jquery-ui/safe-blur.js +0 -27
@@ -4,12 +4,12 @@
|
|
4
4
|
//= require jquery-ui/widget
|
5
5
|
|
6
6
|
/*!
|
7
|
-
* jQuery UI Accordion 1.
|
8
|
-
*
|
7
|
+
* jQuery UI Accordion 1.14.1
|
8
|
+
* https://jqueryui.com
|
9
9
|
*
|
10
|
-
* Copyright
|
10
|
+
* Copyright OpenJS Foundation and other contributors
|
11
11
|
* Released under the MIT license.
|
12
|
-
*
|
12
|
+
* https://jquery.org/license
|
13
13
|
*/
|
14
14
|
|
15
15
|
//>>label: Accordion
|
@@ -17,8 +17,8 @@
|
|
17
17
|
/* eslint-disable max-len */
|
18
18
|
//>>description: Displays collapsible content panels for presenting information in a limited amount of space.
|
19
19
|
/* eslint-enable max-len */
|
20
|
-
//>>docs:
|
21
|
-
//>>demos:
|
20
|
+
//>>docs: https://api.jqueryui.com/accordion/
|
21
|
+
//>>demos: https://jqueryui.com/accordion/
|
22
22
|
//>>css.structure: ../../themes/base/core.css
|
23
23
|
//>>css.structure: ../../themes/base/accordion.css
|
24
24
|
//>>css.theme: ../../themes/base/theme.css
|
@@ -45,7 +45,7 @@
|
|
45
45
|
"use strict";
|
46
46
|
|
47
47
|
return $.widget( "ui.accordion", {
|
48
|
-
version: "1.
|
48
|
+
version: "1.14.1",
|
49
49
|
options: {
|
50
50
|
active: 0,
|
51
51
|
animate: {},
|
@@ -57,7 +57,17 @@ return $.widget( "ui.accordion", {
|
|
57
57
|
collapsible: false,
|
58
58
|
event: "click",
|
59
59
|
header: function( elem ) {
|
60
|
-
return elem
|
60
|
+
return elem
|
61
|
+
.find( "> li > :first-child" )
|
62
|
+
.add(
|
63
|
+
elem.find( "> :not(li)" )
|
64
|
+
|
65
|
+
// Support: jQuery <3.5 only
|
66
|
+
// We could use `.even()` but that's unavailable in older jQuery.
|
67
|
+
.filter( function( i ) {
|
68
|
+
return i % 2 === 0;
|
69
|
+
} )
|
70
|
+
);
|
61
71
|
},
|
62
72
|
heightStyle: "auto",
|
63
73
|
icons: {
|
@@ -192,13 +202,7 @@ return $.widget( "ui.accordion", {
|
|
192
202
|
this._super( value );
|
193
203
|
|
194
204
|
this.element.attr( "aria-disabled", value );
|
195
|
-
|
196
|
-
// Support: IE8 Only
|
197
|
-
// #5332 / #6059 - opacity doesn't cascade to positioned elements in IE
|
198
|
-
// so we need to add the disabled class to the headers and panels
|
199
205
|
this._toggleClass( null, "ui-state-disabled", !!value );
|
200
|
-
this._toggleClass( this.headers.add( this.headers.next() ), null, "ui-state-disabled",
|
201
|
-
!!value );
|
202
206
|
},
|
203
207
|
|
204
208
|
_keydown: function( event ) {
|
@@ -616,10 +620,6 @@ return $.widget( "ui.accordion", {
|
|
616
620
|
this._removeClass( prev, "ui-accordion-header-active" )
|
617
621
|
._addClass( prev, "ui-accordion-header-collapsed" );
|
618
622
|
|
619
|
-
// Work around for rendering bug in IE (#5421)
|
620
|
-
if ( toHide.length ) {
|
621
|
-
toHide.parent()[ 0 ].className = toHide.parent()[ 0 ].className;
|
622
|
-
}
|
623
623
|
this._trigger( "activate", null, data );
|
624
624
|
}
|
625
625
|
} );
|
@@ -1,24 +1,23 @@
|
|
1
1
|
//= require jquery-ui/widgets/menu
|
2
2
|
//= require jquery-ui/keycode
|
3
3
|
//= require jquery-ui/position
|
4
|
-
//= require jquery-ui/safe-active-element
|
5
4
|
//= require jquery-ui/version
|
6
5
|
//= require jquery-ui/widget
|
7
6
|
|
8
7
|
/*!
|
9
|
-
* jQuery UI Autocomplete 1.
|
10
|
-
*
|
8
|
+
* jQuery UI Autocomplete 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: Autocomplete
|
18
17
|
//>>group: Widgets
|
19
18
|
//>>description: Lists suggested words as the user is typing.
|
20
|
-
//>>docs:
|
21
|
-
//>>demos:
|
19
|
+
//>>docs: https://api.jqueryui.com/autocomplete/
|
20
|
+
//>>demos: https://jqueryui.com/autocomplete/
|
22
21
|
//>>css.structure: ../../themes/base/core.css
|
23
22
|
//>>css.structure: ../../themes/base/autocomplete.css
|
24
23
|
//>>css.theme: ../../themes/base/theme.css
|
@@ -34,7 +33,6 @@
|
|
34
33
|
"./menu",
|
35
34
|
"../keycode",
|
36
35
|
"../position",
|
37
|
-
"../safe-active-element",
|
38
36
|
"../version",
|
39
37
|
"../widget"
|
40
38
|
], factory );
|
@@ -47,7 +45,7 @@
|
|
47
45
|
"use strict";
|
48
46
|
|
49
47
|
$.widget( "ui.autocomplete", {
|
50
|
-
version: "1.
|
48
|
+
version: "1.14.1",
|
51
49
|
defaultElement: "<input>",
|
52
50
|
options: {
|
53
51
|
appendTo: null,
|
@@ -73,6 +71,7 @@ $.widget( "ui.autocomplete", {
|
|
73
71
|
|
74
72
|
requestIndex: 0,
|
75
73
|
pending: 0,
|
74
|
+
liveRegionTimer: null,
|
76
75
|
|
77
76
|
_create: function() {
|
78
77
|
|
@@ -90,9 +89,9 @@ $.widget( "ui.autocomplete", {
|
|
90
89
|
|
91
90
|
// Textareas are always multi-line
|
92
91
|
// Inputs are always single-line, even if inside a contentEditable element
|
93
|
-
//
|
94
|
-
|
95
|
-
|
92
|
+
// All other element types are determined by whether they're contentEditable
|
93
|
+
this.isMultiLine = isTextarea ||
|
94
|
+
!isInput && this.element.prop( "contentEditable" ) === "true";
|
96
95
|
|
97
96
|
this.valueMethod = this.element[ isTextarea || isInput ? "val" : "text" ];
|
98
97
|
this.isNewMenu = true;
|
@@ -156,7 +155,6 @@ $.widget( "ui.autocomplete", {
|
|
156
155
|
|
157
156
|
// Different browsers have different default behavior for escape
|
158
157
|
// Single press can mean undo or clear
|
159
|
-
// Double press in IE means clear the whole form
|
160
158
|
event.preventDefault();
|
161
159
|
}
|
162
160
|
break;
|
@@ -225,16 +223,6 @@ $.widget( "ui.autocomplete", {
|
|
225
223
|
role: null
|
226
224
|
} )
|
227
225
|
.hide()
|
228
|
-
|
229
|
-
// Support: IE 11 only, Edge <= 14
|
230
|
-
// For other browsers, we preventDefault() on the mousedown event
|
231
|
-
// to keep the dropdown from taking focus from the input. This doesn't
|
232
|
-
// work for IE/Edge, causing problems with selection and scrolling (#9638)
|
233
|
-
// Happily, IE and Edge support an "unselectable" attribute that
|
234
|
-
// prevents an element from receiving focus, exactly what we want here.
|
235
|
-
.attr( {
|
236
|
-
"unselectable": "on"
|
237
|
-
} )
|
238
226
|
.menu( "instance" );
|
239
227
|
|
240
228
|
this._addClass( this.menu.element, "ui-autocomplete", "ui-front" );
|
@@ -247,7 +235,7 @@ $.widget( "ui.autocomplete", {
|
|
247
235
|
menufocus: function( event, ui ) {
|
248
236
|
var label, item;
|
249
237
|
|
250
|
-
//
|
238
|
+
// Support: Firefox
|
251
239
|
// Prevent accidental activation of menu items in Firefox (#7024 #9118)
|
252
240
|
if ( this.isNewMenu ) {
|
253
241
|
this.isNewMenu = false;
|
@@ -274,8 +262,10 @@ $.widget( "ui.autocomplete", {
|
|
274
262
|
// Announce the value in the liveRegion
|
275
263
|
label = ui.item.attr( "aria-label" ) || item.value;
|
276
264
|
if ( label && String.prototype.trim.call( label ).length ) {
|
277
|
-
this.
|
278
|
-
|
265
|
+
clearTimeout( this.liveRegionTimer );
|
266
|
+
this.liveRegionTimer = this._delay( function() {
|
267
|
+
this.liveRegion.html( $( "<div>" ).text( label ) );
|
268
|
+
}, 100 );
|
279
269
|
}
|
280
270
|
},
|
281
271
|
menuselect: function( event, ui ) {
|
@@ -283,17 +273,9 @@ $.widget( "ui.autocomplete", {
|
|
283
273
|
previous = this.previous;
|
284
274
|
|
285
275
|
// Only trigger when focus was lost (click on menu)
|
286
|
-
if ( this.element[ 0 ] !==
|
276
|
+
if ( this.element[ 0 ] !== this.document[ 0 ].activeElement ) {
|
287
277
|
this.element.trigger( "focus" );
|
288
278
|
this.previous = previous;
|
289
|
-
|
290
|
-
// #6109 - IE triggers two focus events and the second
|
291
|
-
// is asynchronous, so we need to reset the previous
|
292
|
-
// term synchronously and asynchronously :-(
|
293
|
-
this._delay( function() {
|
294
|
-
this.previous = previous;
|
295
|
-
this.selectedItem = item;
|
296
|
-
} );
|
297
279
|
}
|
298
280
|
|
299
281
|
if ( false !== this._trigger( "select", event, { item: item } ) ) {
|
@@ -612,24 +594,6 @@ $.widget( "ui.autocomplete", {
|
|
612
594
|
// Prevents moving cursor to beginning/end of the text field in some browsers
|
613
595
|
event.preventDefault();
|
614
596
|
}
|
615
|
-
},
|
616
|
-
|
617
|
-
// Support: Chrome <=50
|
618
|
-
// We should be able to just use this.element.prop( "isContentEditable" )
|
619
|
-
// but hidden elements always report false in Chrome.
|
620
|
-
// https://code.google.com/p/chromium/issues/detail?id=313082
|
621
|
-
_isContentEditable: function( element ) {
|
622
|
-
if ( !element.length ) {
|
623
|
-
return false;
|
624
|
-
}
|
625
|
-
|
626
|
-
var editable = element.prop( "contentEditable" );
|
627
|
-
|
628
|
-
if ( editable === "inherit" ) {
|
629
|
-
return this._isContentEditable( element.parent() );
|
630
|
-
}
|
631
|
-
|
632
|
-
return editable === "true";
|
633
597
|
}
|
634
598
|
} );
|
635
599
|
|
@@ -670,8 +634,10 @@ $.widget( "ui.autocomplete", $.ui.autocomplete, {
|
|
670
634
|
} else {
|
671
635
|
message = this.options.messages.noResults;
|
672
636
|
}
|
673
|
-
this.
|
674
|
-
|
637
|
+
clearTimeout( this.liveRegionTimer );
|
638
|
+
this.liveRegionTimer = this._delay( function() {
|
639
|
+
this.liveRegion.html( $( "<div>" ).text( message ) );
|
640
|
+
}, 100 );
|
675
641
|
}
|
676
642
|
} );
|
677
643
|
|
@@ -4,19 +4,19 @@
|
|
4
4
|
//= require jquery-ui/widget
|
5
5
|
|
6
6
|
/*!
|
7
|
-
* jQuery UI Button 1.
|
8
|
-
*
|
7
|
+
* jQuery UI Button 1.14.1
|
8
|
+
* https://jqueryui.com
|
9
9
|
*
|
10
|
-
* Copyright
|
10
|
+
* Copyright OpenJS Foundation and other contributors
|
11
11
|
* Released under the MIT license.
|
12
|
-
*
|
12
|
+
* https://jquery.org/license
|
13
13
|
*/
|
14
14
|
|
15
15
|
//>>label: Button
|
16
16
|
//>>group: Widgets
|
17
17
|
//>>description: Enhances a form with themeable buttons.
|
18
|
-
//>>docs:
|
19
|
-
//>>demos:
|
18
|
+
//>>docs: https://api.jqueryui.com/button/
|
19
|
+
//>>demos: https://jqueryui.com/button/
|
20
20
|
//>>css.structure: ../../themes/base/core.css
|
21
21
|
//>>css.structure: ../../themes/base/button.css
|
22
22
|
//>>css.theme: ../../themes/base/theme.css
|
@@ -47,7 +47,7 @@
|
|
47
47
|
"use strict";
|
48
48
|
|
49
49
|
$.widget( "ui.button", {
|
50
|
-
version: "1.
|
50
|
+
version: "1.14.1",
|
51
51
|
defaultElement: "<button>",
|
52
52
|
options: {
|
53
53
|
classes: {
|
@@ -114,9 +114,9 @@ $.widget( "ui.button", {
|
|
114
114
|
if ( event.keyCode === $.ui.keyCode.SPACE ) {
|
115
115
|
event.preventDefault();
|
116
116
|
|
117
|
-
//
|
118
|
-
//
|
119
|
-
//
|
117
|
+
// If a native click is available use it, so we
|
118
|
+
// actually cause navigation. Otherwise, just trigger
|
119
|
+
// a click event.
|
120
120
|
if ( this.element[ 0 ].click ) {
|
121
121
|
this.element[ 0 ].click();
|
122
122
|
} else {
|
@@ -292,7 +292,7 @@ $.widget( "ui.button", {
|
|
292
292
|
} );
|
293
293
|
|
294
294
|
// DEPRECATED
|
295
|
-
if ( $.uiBackCompat
|
295
|
+
if ( $.uiBackCompat === true ) {
|
296
296
|
|
297
297
|
// Text and Icons options
|
298
298
|
$.widget( "ui.button", $.ui.button, {
|
@@ -3,19 +3,19 @@
|
|
3
3
|
//= require jquery-ui/widget
|
4
4
|
|
5
5
|
/*!
|
6
|
-
* jQuery UI Checkboxradio 1.
|
7
|
-
*
|
6
|
+
* jQuery UI Checkboxradio 1.14.1
|
7
|
+
* https://jqueryui.com
|
8
8
|
*
|
9
|
-
* Copyright
|
9
|
+
* Copyright OpenJS Foundation and other contributors
|
10
10
|
* Released under the MIT license.
|
11
|
-
*
|
11
|
+
* https://jquery.org/license
|
12
12
|
*/
|
13
13
|
|
14
14
|
//>>label: Checkboxradio
|
15
15
|
//>>group: Widgets
|
16
16
|
//>>description: Enhances a form with multiple themeable checkboxes or radio buttons.
|
17
|
-
//>>docs:
|
18
|
-
//>>demos:
|
17
|
+
//>>docs: https://api.jqueryui.com/checkboxradio/
|
18
|
+
//>>demos: https://jqueryui.com/checkboxradio/
|
19
19
|
//>>css.structure: ../../themes/base/core.css
|
20
20
|
//>>css.structure: ../../themes/base/button.css
|
21
21
|
//>>css.structure: ../../themes/base/checkboxradio.css
|
@@ -42,7 +42,7 @@
|
|
42
42
|
"use strict";
|
43
43
|
|
44
44
|
$.widget( "ui.checkboxradio", [ $.ui.formResetMixin, {
|
45
|
-
version: "1.
|
45
|
+
version: "1.14.1",
|
46
46
|
options: {
|
47
47
|
disabled: null,
|
48
48
|
label: null,
|
@@ -54,8 +54,7 @@ $.widget( "ui.checkboxradio", [ $.ui.formResetMixin, {
|
|
54
54
|
},
|
55
55
|
|
56
56
|
_getCreateOptions: function() {
|
57
|
-
var disabled, labels;
|
58
|
-
var that = this;
|
57
|
+
var disabled, labels, labelContents;
|
59
58
|
var options = this._super() || {};
|
60
59
|
|
61
60
|
// We read the type here, because it makes more sense to throw a element type error first,
|
@@ -75,12 +74,18 @@ $.widget( "ui.checkboxradio", [ $.ui.formResetMixin, {
|
|
75
74
|
|
76
75
|
// We need to get the label text but this may also need to make sure it does not contain the
|
77
76
|
// input itself.
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
77
|
+
// The label contents could be text, html, or a mix. We wrap all elements
|
78
|
+
// and read the wrapper's `innerHTML` to get a string representation of
|
79
|
+
// the label, without the input as part of it.
|
80
|
+
labelContents = this.label.contents().not( this.element[ 0 ] );
|
81
|
+
|
82
|
+
if ( labelContents.length ) {
|
83
|
+
this.originalLabel += labelContents
|
84
|
+
.clone()
|
85
|
+
.wrapAll( "<div></div>" )
|
86
|
+
.parent()
|
87
|
+
.html();
|
88
|
+
}
|
84
89
|
|
85
90
|
// Set the label option if we found label text
|
86
91
|
if ( this.originalLabel ) {
|
@@ -155,7 +160,7 @@ $.widget( "ui.checkboxradio", [ $.ui.formResetMixin, {
|
|
155
160
|
_getRadioGroup: function() {
|
156
161
|
var group;
|
157
162
|
var name = this.element[ 0 ].name;
|
158
|
-
var nameSelector = "input[name='" +
|
163
|
+
var nameSelector = "input[name='" + CSS.escape( name ) + "']";
|
159
164
|
|
160
165
|
if ( !name ) {
|
161
166
|
return $( [] );
|
@@ -167,7 +172,7 @@ $.widget( "ui.checkboxradio", [ $.ui.formResetMixin, {
|
|
167
172
|
|
168
173
|
// Not inside a form, check all inputs that also are not inside a form
|
169
174
|
group = $( nameSelector ).filter( function() {
|
170
|
-
return $( this ).
|
175
|
+
return $( $( this ).prop( "form" ) ).length === 0;
|
171
176
|
} );
|
172
177
|
}
|
173
178
|
|
@@ -1,19 +1,19 @@
|
|
1
1
|
//= require jquery-ui/widget
|
2
2
|
|
3
3
|
/*!
|
4
|
-
* jQuery UI Controlgroup 1.
|
5
|
-
*
|
4
|
+
* jQuery UI Controlgroup 1.14.1
|
5
|
+
* https://jqueryui.com
|
6
6
|
*
|
7
|
-
* Copyright
|
7
|
+
* Copyright OpenJS Foundation and other contributors
|
8
8
|
* Released under the MIT license.
|
9
|
-
*
|
9
|
+
* https://jquery.org/license
|
10
10
|
*/
|
11
11
|
|
12
12
|
//>>label: Controlgroup
|
13
13
|
//>>group: Widgets
|
14
14
|
//>>description: Visually groups form control widgets
|
15
|
-
//>>docs:
|
16
|
-
//>>demos:
|
15
|
+
//>>docs: https://api.jqueryui.com/controlgroup/
|
16
|
+
//>>demos: https://jqueryui.com/controlgroup/
|
17
17
|
//>>css.structure: ../../themes/base/core.css
|
18
18
|
//>>css.structure: ../../themes/base/controlgroup.css
|
19
19
|
//>>css.theme: ../../themes/base/theme.css
|
@@ -39,7 +39,7 @@
|
|
39
39
|
var controlgroupCornerRegex = /ui-corner-([a-z]){2,6}/g;
|
40
40
|
|
41
41
|
return $.widget( "ui.controlgroup", {
|
42
|
-
version: "1.
|
42
|
+
version: "1.14.1",
|
43
43
|
defaultElement: "<div>",
|
44
44
|
options: {
|
45
45
|
direction: "horizontal",
|
@@ -3,19 +3,19 @@
|
|
3
3
|
|
4
4
|
/* eslint-disable max-len, camelcase */
|
5
5
|
/*!
|
6
|
-
* jQuery UI Datepicker 1.
|
7
|
-
*
|
6
|
+
* jQuery UI Datepicker 1.14.1
|
7
|
+
* https://jqueryui.com
|
8
8
|
*
|
9
|
-
* Copyright
|
9
|
+
* Copyright OpenJS Foundation and other contributors
|
10
10
|
* Released under the MIT license.
|
11
|
-
*
|
11
|
+
* https://jquery.org/license
|
12
12
|
*/
|
13
13
|
|
14
14
|
//>>label: Datepicker
|
15
15
|
//>>group: Widgets
|
16
16
|
//>>description: Displays a calendar from an input or inline for selecting dates.
|
17
|
-
//>>docs:
|
18
|
-
//>>demos:
|
17
|
+
//>>docs: https://api.jqueryui.com/datepicker/
|
18
|
+
//>>demos: https://jqueryui.com/datepicker/
|
19
19
|
//>>css.structure: ../../themes/base/core.css
|
20
20
|
//>>css.structure: ../../themes/base/datepicker.css
|
21
21
|
//>>css.theme: ../../themes/base/theme.css
|
@@ -39,7 +39,7 @@
|
|
39
39
|
} )( function( $ ) {
|
40
40
|
"use strict";
|
41
41
|
|
42
|
-
$.extend( $.ui, { datepicker: { version: "1.
|
42
|
+
$.extend( $.ui, { datepicker: { version: "1.14.1" } } );
|
43
43
|
|
44
44
|
var datepicker_instActive;
|
45
45
|
|
@@ -356,7 +356,7 @@ $.extend( Datepicker.prototype, {
|
|
356
356
|
}
|
357
357
|
|
358
358
|
// Set display:block in place of inst.dpDiv.show() which won't work on disconnected elements
|
359
|
-
//
|
359
|
+
// https://bugs.jqueryui.com/ticket/7552 - A Datepicker created on a detached div has zero height
|
360
360
|
inst.dpDiv.css( "display", "block" );
|
361
361
|
},
|
362
362
|
|
@@ -438,6 +438,7 @@ $.extend( Datepicker.prototype, {
|
|
438
438
|
$target.removeClass( this.markerClassName ).empty();
|
439
439
|
}
|
440
440
|
|
441
|
+
$.datepicker._hideDatepicker();
|
441
442
|
if ( datepicker_instActive === inst ) {
|
442
443
|
datepicker_instActive = null;
|
443
444
|
this._curInst = null;
|
@@ -913,11 +914,8 @@ $.extend( Datepicker.prototype, {
|
|
913
914
|
}
|
914
915
|
},
|
915
916
|
|
916
|
-
// #6694 - don't focus the input if it's already focused
|
917
|
-
// this breaks the change event in IE
|
918
|
-
// Support: IE and jQuery <1.9
|
919
917
|
_shouldFocusInput: function( inst ) {
|
920
|
-
return inst.input && inst.input.is( ":visible" ) && !inst.input.is( ":disabled" )
|
918
|
+
return inst.input && inst.input.is( ":visible" ) && !inst.input.is( ":disabled" );
|
921
919
|
},
|
922
920
|
|
923
921
|
/* Check positioning to remain on screen. */
|
@@ -974,8 +972,7 @@ $.extend( Datepicker.prototype, {
|
|
974
972
|
$.datepicker._tidyDialog( inst );
|
975
973
|
};
|
976
974
|
|
977
|
-
|
978
|
-
if ( $.effects && ( $.effects.effect[ showAnim ] || $.effects[ showAnim ] ) ) {
|
975
|
+
if ( $.effects && ( $.effects.effect[ showAnim ] ) ) {
|
979
976
|
inst.dpDiv.hide( showAnim, $.datepicker._get( inst, "showOptions" ), duration, postProcess );
|
980
977
|
} else {
|
981
978
|
inst.dpDiv[ ( showAnim === "slideDown" ? "slideUp" :
|
@@ -2236,7 +2233,7 @@ $.fn.datepicker = function( options ) {
|
|
2236
2233
|
$.datepicker = new Datepicker(); // singleton instance
|
2237
2234
|
$.datepicker.initialized = false;
|
2238
2235
|
$.datepicker.uuid = new Date().getTime();
|
2239
|
-
$.datepicker.version = "1.
|
2236
|
+
$.datepicker.version = "1.14.1";
|
2240
2237
|
|
2241
2238
|
return $.datepicker;
|
2242
2239
|
|