changeset 21 | 48c4eec2b7e6 |
parent 19 | 3d72ae0968f4 |
20:7b1b88e27a20 | 21:48c4eec2b7e6 |
---|---|
1 /*! jQuery UI - v1.13.1 - 2022-01-20 |
1 /*! jQuery UI - v1.13.3 - 2024-04-26 |
2 * http://jqueryui.com |
2 * https://jqueryui.com |
3 * Includes: data.js, disable-selection.js, escape-selector.js, focusable.js, form-reset-mixin.js, form.js, ie.js, jquery-1-7.js, keycode.js, labels.js, plugin.js, position.js, safe-active-element.js, safe-blur.js, scroll-parent.js, tabbable.js, unique-id.js, version.js, widget.js |
3 * Includes: widget.js, position.js, data.js, disable-selection.js, effect.js, effects/effect-blind.js, effects/effect-bounce.js, effects/effect-clip.js, effects/effect-drop.js, effects/effect-explode.js, effects/effect-fade.js, effects/effect-fold.js, effects/effect-highlight.js, effects/effect-puff.js, effects/effect-pulsate.js, effects/effect-scale.js, effects/effect-shake.js, effects/effect-size.js, effects/effect-slide.js, effects/effect-transfer.js, focusable.js, form-reset-mixin.js, jquery-patch.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/accordion.js, widgets/autocomplete.js, widgets/button.js, widgets/checkboxradio.js, widgets/controlgroup.js, widgets/datepicker.js, widgets/dialog.js, widgets/draggable.js, widgets/droppable.js, widgets/menu.js, widgets/mouse.js, widgets/progressbar.js, widgets/resizable.js, widgets/selectable.js, widgets/selectmenu.js, widgets/slider.js, widgets/sortable.js, widgets/spinner.js, widgets/tabs.js, widgets/tooltip.js |
4 * Copyright jQuery Foundation and other contributors; Licensed */ |
4 * Copyright jQuery Foundation and other contributors; Licensed MIT */ |
5 ( function( factory ) { |
5 ( function( factory ) { |
6 "use strict"; |
6 "use strict"; |
7 |
7 |
8 if ( typeof define === "function" && define.amd ) { |
8 if ( typeof define === "function" && define.amd ) { |
9 |
9 |
18 "use strict"; |
18 "use strict"; |
19 |
19 |
20 // Source: version.js |
20 // Source: version.js |
21 $.ui = $.ui || {}; |
21 $.ui = $.ui || {}; |
22 |
22 |
23 $.ui.version = "1.13.1"; |
23 $.ui.version = "1.13.3"; |
24 |
24 |
25 // Source: data.js |
25 // Source: data.js |
26 /*! |
26 /*! |
27 * jQuery UI :data 1.13.1 |
27 * jQuery UI :data 1.13.3 |
28 * http://jqueryui.com |
28 * https://jqueryui.com |
29 * |
29 * |
30 * Copyright jQuery Foundation and other contributors |
30 * Copyright OpenJS Foundation and other contributors |
31 * Released under the MIT license. |
31 * Released under the MIT license. |
32 * http://jquery.org/license |
32 * https://jquery.org/license |
33 */ |
33 */ |
34 |
34 |
35 //>>label: :data Selector |
35 //>>label: :data Selector |
36 //>>group: Core |
36 //>>group: Core |
37 //>>description: Selects elements which have data stored under the specified key. |
37 //>>description: Selects elements which have data stored under the specified key. |
38 //>>docs: http://api.jqueryui.com/data-selector/ |
38 //>>docs: https://api.jqueryui.com/data-selector/ |
39 |
39 |
40 $.extend( $.expr.pseudos, { |
40 $.extend( $.expr.pseudos, { |
41 data: $.expr.createPseudo ? |
41 data: $.expr.createPseudo ? |
42 $.expr.createPseudo( function( dataName ) { |
42 $.expr.createPseudo( function( dataName ) { |
43 return function( elem ) { |
43 return function( elem ) { |
51 } |
51 } |
52 } ); |
52 } ); |
53 |
53 |
54 // Source: disable-selection.js |
54 // Source: disable-selection.js |
55 /*! |
55 /*! |
56 * jQuery UI Disable Selection 1.13.1 |
56 * jQuery UI Disable Selection 1.13.3 |
57 * http://jqueryui.com |
57 * https://jqueryui.com |
58 * |
58 * |
59 * Copyright jQuery Foundation and other contributors |
59 * Copyright OpenJS Foundation and other contributors |
60 * Released under the MIT license. |
60 * Released under the MIT license. |
61 * http://jquery.org/license |
61 * https://jquery.org/license |
62 */ |
62 */ |
63 |
63 |
64 //>>label: disableSelection |
64 //>>label: disableSelection |
65 //>>group: Core |
65 //>>group: Core |
66 //>>description: Disable selection of text content within the set of matched elements. |
66 //>>description: Disable selection of text content within the set of matched elements. |
67 //>>docs: http://api.jqueryui.com/disableSelection/ |
67 //>>docs: https://api.jqueryui.com/disableSelection/ |
68 |
68 |
69 // This file is deprecated |
69 // This file is deprecated |
70 $.fn.extend( { |
70 $.fn.extend( { |
71 disableSelection: ( function() { |
71 disableSelection: ( function() { |
72 var eventType = "onselectstart" in document.createElement( "div" ) ? |
72 var eventType = "onselectstart" in document.createElement( "div" ) ? |
85 } |
85 } |
86 } ); |
86 } ); |
87 |
87 |
88 // Source: focusable.js |
88 // Source: focusable.js |
89 /*! |
89 /*! |
90 * jQuery UI Focusable 1.13.1 |
90 * jQuery UI Focusable 1.13.3 |
91 * http://jqueryui.com |
91 * https://jqueryui.com |
92 * |
92 * |
93 * Copyright jQuery Foundation and other contributors |
93 * Copyright OpenJS Foundation and other contributors |
94 * Released under the MIT license. |
94 * Released under the MIT license. |
95 * http://jquery.org/license |
95 * https://jquery.org/license |
96 */ |
96 */ |
97 |
97 |
98 //>>label: :focusable Selector |
98 //>>label: :focusable Selector |
99 //>>group: Core |
99 //>>group: Core |
100 //>>description: Selects elements which can be focused. |
100 //>>description: Selects elements which can be focused. |
101 //>>docs: http://api.jqueryui.com/focusable-selector/ |
101 //>>docs: https://api.jqueryui.com/focusable-selector/ |
102 |
102 |
103 // Selectors |
103 // Selectors |
104 $.ui.focusable = function( element, hasTabindex ) { |
104 $.ui.focusable = function( element, hasTabindex ) { |
105 var map, mapName, img, focusableIfVisible, fieldset, |
105 var map, mapName, img, focusableIfVisible, fieldset, |
106 nodeName = element.nodeName.toLowerCase(); |
106 nodeName = element.nodeName.toLowerCase(); |
162 return typeof this[ 0 ].form === "string" ? this.closest( "form" ) : $( this[ 0 ].form ); |
162 return typeof this[ 0 ].form === "string" ? this.closest( "form" ) : $( this[ 0 ].form ); |
163 }; |
163 }; |
164 |
164 |
165 // Source: form-reset-mixin.js |
165 // Source: form-reset-mixin.js |
166 /*! |
166 /*! |
167 * jQuery UI Form Reset Mixin 1.13.1 |
167 * jQuery UI Form Reset Mixin 1.13.3 |
168 * http://jqueryui.com |
168 * https://jqueryui.com |
169 * |
169 * |
170 * Copyright jQuery Foundation and other contributors |
170 * Copyright OpenJS Foundation and other contributors |
171 * Released under the MIT license. |
171 * Released under the MIT license. |
172 * http://jquery.org/license |
172 * https://jquery.org/license |
173 */ |
173 */ |
174 |
174 |
175 //>>label: Form Reset Mixin |
175 //>>label: Form Reset Mixin |
176 //>>group: Core |
176 //>>group: Core |
177 //>>description: Refresh input widgets when their form is reset |
177 //>>description: Refresh input widgets when their form is reset |
178 //>>docs: http://api.jqueryui.com/form-reset-mixin/ |
178 //>>docs: https://api.jqueryui.com/form-reset-mixin/ |
179 |
179 |
180 $.ui.formResetMixin = { |
180 $.ui.formResetMixin = { |
181 _formResetHandler: function() { |
181 _formResetHandler: function() { |
182 var form = $( this ); |
182 var form = $( this ); |
183 |
183 |
227 // This file is deprecated |
227 // This file is deprecated |
228 $.ui.ie = !!/msie [\w.]+/.exec( navigator.userAgent.toLowerCase() ); |
228 $.ui.ie = !!/msie [\w.]+/.exec( navigator.userAgent.toLowerCase() ); |
229 |
229 |
230 // Source: jquery-patch.js |
230 // Source: jquery-patch.js |
231 /*! |
231 /*! |
232 * jQuery UI Support for jQuery core 1.8.x and newer 1.13.0 |
232 * jQuery UI Support for jQuery core 1.8.x and newer 1.13.3 |
233 * http://jqueryui.com |
233 * https://jqueryui.com |
234 * |
234 * |
235 * Copyright jQuery Foundation and other contributors |
235 * Copyright OpenJS Foundation and other contributors |
236 * Released under the MIT license. |
236 * Released under the MIT license. |
237 * http://jquery.org/license |
237 * https://jquery.org/license |
238 * |
238 * |
239 */ |
239 */ |
240 |
240 |
241 //>>label: jQuery 1.8+ Support |
241 //>>label: jQuery 1.8+ Support |
242 //>>group: Core |
242 //>>group: Core |
301 } ); |
301 } ); |
302 } |
302 } |
303 |
303 |
304 // Source: keycode.js |
304 // Source: keycode.js |
305 /*! |
305 /*! |
306 * jQuery UI Keycode 1.13.1 |
306 * jQuery UI Keycode 1.13.3 |
307 * http://jqueryui.com |
307 * https://jqueryui.com |
308 * |
308 * |
309 * Copyright jQuery Foundation and other contributors |
309 * Copyright OpenJS Foundation and other contributors |
310 * Released under the MIT license. |
310 * Released under the MIT license. |
311 * http://jquery.org/license |
311 * https://jquery.org/license |
312 */ |
312 */ |
313 |
313 |
314 //>>label: Keycode |
314 //>>label: Keycode |
315 //>>group: Core |
315 //>>group: Core |
316 //>>description: Provide keycodes as keynames |
316 //>>description: Provide keycodes as keynames |
317 //>>docs: http://api.jqueryui.com/jQuery.ui.keyCode/ |
317 //>>docs: https://api.jqueryui.com/jQuery.ui.keyCode/ |
318 |
318 |
319 $.ui.keyCode = { |
319 $.ui.keyCode = { |
320 BACKSPACE: 8, |
320 BACKSPACE: 8, |
321 COMMA: 188, |
321 COMMA: 188, |
322 DELETE: 46, |
322 DELETE: 46, |
335 UP: 38 |
335 UP: 38 |
336 }; |
336 }; |
337 |
337 |
338 // Source: labels.js |
338 // Source: labels.js |
339 /*! |
339 /*! |
340 * jQuery UI Labels 1.13.1 |
340 * jQuery UI Labels 1.13.3 |
341 * http://jqueryui.com |
341 * https://jqueryui.com |
342 * |
342 * |
343 * Copyright jQuery Foundation and other contributors |
343 * Copyright OpenJS Foundation and other contributors |
344 * Released under the MIT license. |
344 * Released under the MIT license. |
345 * http://jquery.org/license |
345 * https://jquery.org/license |
346 */ |
346 */ |
347 |
347 |
348 //>>label: labels |
348 //>>label: labels |
349 //>>group: Core |
349 //>>group: Core |
350 //>>description: Find all the labels associated with a given input |
350 //>>description: Find all the labels associated with a given input |
351 //>>docs: http://api.jqueryui.com/labels/ |
351 //>>docs: https://api.jqueryui.com/labels/ |
352 |
352 |
353 $.fn.labels = function() { |
353 $.fn.labels = function() { |
354 var ancestor, selector, id, labels, ancestors; |
354 var ancestor, selector, id, labels, ancestors; |
355 |
355 |
356 if ( !this.length ) { |
356 if ( !this.length ) { |
407 if ( !set ) { |
407 if ( !set ) { |
408 return; |
408 return; |
409 } |
409 } |
410 |
410 |
411 if ( !allowDisconnected && ( !instance.element[ 0 ].parentNode || |
411 if ( !allowDisconnected && ( !instance.element[ 0 ].parentNode || |
412 instance.element[ 0 ].parentNode.nodeType === 11 ) ) { |
412 instance.element[ 0 ].parentNode.nodeType === 11 ) ) { |
413 return; |
413 return; |
414 } |
414 } |
415 |
415 |
416 for ( i = 0; i < set.length; i++ ) { |
416 for ( i = 0; i < set.length; i++ ) { |
417 if ( instance.options[ set[ i ][ 0 ] ] ) { |
417 if ( instance.options[ set[ i ][ 0 ] ] ) { |
421 } |
421 } |
422 }; |
422 }; |
423 |
423 |
424 // Source: position.js |
424 // Source: position.js |
425 /*! |
425 /*! |
426 * jQuery UI Position 1.13.1 |
426 * jQuery UI Position 1.13.3 |
427 * http://jqueryui.com |
427 * https://jqueryui.com |
428 * |
428 * |
429 * Copyright jQuery Foundation and other contributors |
429 * Copyright OpenJS Foundation and other contributors |
430 * Released under the MIT license. |
430 * Released under the MIT license. |
431 * http://jquery.org/license |
431 * https://jquery.org/license |
432 * |
432 * |
433 * http://api.jqueryui.com/position/ |
433 * https://api.jqueryui.com/position/ |
434 */ |
434 */ |
435 |
435 |
436 //>>label: Position |
436 //>>label: Position |
437 //>>group: Core |
437 //>>group: Core |
438 //>>description: Positions elements relative to other elements. |
438 //>>description: Positions elements relative to other elements. |
439 //>>docs: http://api.jqueryui.com/position/ |
439 //>>docs: https://api.jqueryui.com/position/ |
440 //>>demos: http://jqueryui.com/position/ |
440 //>>demos: https://jqueryui.com/position/ |
441 |
441 |
442 ( function() { |
442 ( function() { |
443 var cachedScrollbarWidth, |
443 var cachedScrollbarWidth, |
444 max = Math.max, |
444 max = Math.max, |
445 abs = Math.abs, |
445 abs = Math.abs, |
954 } |
954 } |
955 }; |
955 }; |
956 |
956 |
957 // Source: scroll-parent.js |
957 // Source: scroll-parent.js |
958 /*! |
958 /*! |
959 * jQuery UI Scroll Parent 1.13.1 |
959 * jQuery UI Scroll Parent 1.13.3 |
960 * http://jqueryui.com |
960 * https://jqueryui.com |
961 * |
961 * |
962 * Copyright jQuery Foundation and other contributors |
962 * Copyright OpenJS Foundation and other contributors |
963 * Released under the MIT license. |
963 * Released under the MIT license. |
964 * http://jquery.org/license |
964 * https://jquery.org/license |
965 */ |
965 */ |
966 |
966 |
967 //>>label: scrollParent |
967 //>>label: scrollParent |
968 //>>group: Core |
968 //>>group: Core |
969 //>>description: Get the closest ancestor element that is scrollable. |
969 //>>description: Get the closest ancestor element that is scrollable. |
970 //>>docs: http://api.jqueryui.com/scrollParent/ |
970 //>>docs: https://api.jqueryui.com/scrollParent/ |
971 |
971 |
972 $.fn.scrollParent = function( includeHidden ) { |
972 $.fn.scrollParent = function( includeHidden ) { |
973 var position = this.css( "position" ), |
973 var position = this.css( "position" ), |
974 excludeStaticParent = position === "absolute", |
974 excludeStaticParent = position === "absolute", |
975 overflowRegex = includeHidden ? /(auto|scroll|hidden)/ : /(auto|scroll)/, |
975 overflowRegex = includeHidden ? /(auto|scroll|hidden)/ : /(auto|scroll)/, |
987 scrollParent; |
987 scrollParent; |
988 }; |
988 }; |
989 |
989 |
990 // Source: tabbable.js |
990 // Source: tabbable.js |
991 /*! |
991 /*! |
992 * jQuery UI Tabbable 1.13.1 |
992 * jQuery UI Tabbable 1.13.3 |
993 * http://jqueryui.com |
993 * https://jqueryui.com |
994 * |
994 * |
995 * Copyright jQuery Foundation and other contributors |
995 * Copyright OpenJS Foundation and other contributors |
996 * Released under the MIT license. |
996 * Released under the MIT license. |
997 * http://jquery.org/license |
997 * https://jquery.org/license |
998 */ |
998 */ |
999 |
999 |
1000 //>>label: :tabbable Selector |
1000 //>>label: :tabbable Selector |
1001 //>>group: Core |
1001 //>>group: Core |
1002 //>>description: Selects elements which can be tabbed to. |
1002 //>>description: Selects elements which can be tabbed to. |
1003 //>>docs: http://api.jqueryui.com/tabbable-selector/ |
1003 //>>docs: https://api.jqueryui.com/tabbable-selector/ |
1004 |
1004 |
1005 $.extend( $.expr.pseudos, { |
1005 $.extend( $.expr.pseudos, { |
1006 tabbable: function( element ) { |
1006 tabbable: function( element ) { |
1007 var tabIndex = $.attr( element, "tabindex" ), |
1007 var tabIndex = $.attr( element, "tabindex" ), |
1008 hasTabindex = tabIndex != null; |
1008 hasTabindex = tabIndex != null; |
1010 } |
1010 } |
1011 } ); |
1011 } ); |
1012 |
1012 |
1013 // Source: unique-id.js |
1013 // Source: unique-id.js |
1014 /*! |
1014 /*! |
1015 * jQuery UI Unique ID 1.13.1 |
1015 * jQuery UI Unique ID 1.13.3 |
1016 * http://jqueryui.com |
1016 * https://jqueryui.com |
1017 * |
1017 * |
1018 * Copyright jQuery Foundation and other contributors |
1018 * Copyright OpenJS Foundation and other contributors |
1019 * Released under the MIT license. |
1019 * Released under the MIT license. |
1020 * http://jquery.org/license |
1020 * https://jquery.org/license |
1021 */ |
1021 */ |
1022 |
1022 |
1023 //>>label: uniqueId |
1023 //>>label: uniqueId |
1024 //>>group: Core |
1024 //>>group: Core |
1025 //>>description: Functions to generate and remove uniqueId's |
1025 //>>description: Functions to generate and remove uniqueId's |
1026 //>>docs: http://api.jqueryui.com/uniqueId/ |
1026 //>>docs: https://api.jqueryui.com/uniqueId/ |
1027 |
1027 |
1028 $.fn.extend( { |
1028 $.fn.extend( { |
1029 uniqueId: ( function() { |
1029 uniqueId: ( function() { |
1030 var uuid = 0; |
1030 var uuid = 0; |
1031 |
1031 |
1047 } |
1047 } |
1048 } ); |
1048 } ); |
1049 |
1049 |
1050 // Source: widget.js |
1050 // Source: widget.js |
1051 /*! |
1051 /*! |
1052 * jQuery UI Widget 1.13.1 |
1052 * jQuery UI Widget 1.13.3 |
1053 * http://jqueryui.com |
1053 * https://jqueryui.com |
1054 * |
1054 * |
1055 * Copyright jQuery Foundation and other contributors |
1055 * Copyright OpenJS Foundation and other contributors |
1056 * Released under the MIT license. |
1056 * Released under the MIT license. |
1057 * http://jquery.org/license |
1057 * https://jquery.org/license |
1058 */ |
1058 */ |
1059 |
1059 |
1060 //>>label: Widget |
1060 //>>label: Widget |
1061 //>>group: Core |
1061 //>>group: Core |
1062 //>>description: Provides a factory for creating stateful widgets with a common API. |
1062 //>>description: Provides a factory for creating stateful widgets with a common API. |
1063 //>>docs: http://api.jqueryui.com/jQuery.widget/ |
1063 //>>docs: https://api.jqueryui.com/jQuery.widget/ |
1064 //>>demos: http://jqueryui.com/widget/ |
1064 //>>demos: https://jqueryui.com/widget/ |
1065 |
1065 |
1066 var widgetUuid = 0; |
1066 var widgetUuid = 0; |
1067 var widgetHasOwnProperty = Array.prototype.hasOwnProperty; |
1067 var widgetHasOwnProperty = Array.prototype.hasOwnProperty; |
1068 var widgetSlice = Array.prototype.slice; |
1068 var widgetSlice = Array.prototype.slice; |
1069 |
1069 |
1230 $.widget.extend( {}, target[ key ], value ) : |
1230 $.widget.extend( {}, target[ key ], value ) : |
1231 |
1231 |
1232 // Don't extend strings, arrays, etc. with objects |
1232 // Don't extend strings, arrays, etc. with objects |
1233 $.widget.extend( {}, value ); |
1233 $.widget.extend( {}, value ); |
1234 |
1234 |
1235 // Copy everything else by reference |
1235 // Copy everything else by reference |
1236 } else { |
1236 } else { |
1237 target[ key ] = value; |
1237 target[ key ] = value; |
1238 } |
1238 } |
1239 } |
1239 } |
1240 } |
1240 } |
1479 var classKey, elements, currentElements; |
1479 var classKey, elements, currentElements; |
1480 |
1480 |
1481 for ( classKey in value ) { |
1481 for ( classKey in value ) { |
1482 currentElements = this.classesElementLookup[ classKey ]; |
1482 currentElements = this.classesElementLookup[ classKey ]; |
1483 if ( value[ classKey ] === this.options.classes[ classKey ] || |
1483 if ( value[ classKey ] === this.options.classes[ classKey ] || |
1484 !currentElements || |
1484 !currentElements || |
1485 !currentElements.length ) { |
1485 !currentElements.length ) { |
1486 continue; |
1486 continue; |
1487 } |
1487 } |
1488 |
1488 |
1489 // We are doing this to create a new jQuery object because the _removeClass() call |
1489 // We are doing this to create a new jQuery object because the _removeClass() call |
1490 // on the next line is going to destroy the reference to the current elements being |
1490 // on the next line is going to destroy the reference to the current elements being |
1640 |
1640 |
1641 // Allow widgets to customize the disabled handling |
1641 // Allow widgets to customize the disabled handling |
1642 // - disabled as an array instead of boolean |
1642 // - disabled as an array instead of boolean |
1643 // - disabled class as method for disabling individual parts |
1643 // - disabled class as method for disabling individual parts |
1644 if ( !suppressDisabledCheck && |
1644 if ( !suppressDisabledCheck && |
1645 ( instance.options.disabled === true || |
1645 ( instance.options.disabled === true || |
1646 $( this ).hasClass( "ui-state-disabled" ) ) ) { |
1646 $( this ).hasClass( "ui-state-disabled" ) ) ) { |
1647 return; |
1647 return; |
1648 } |
1648 } |
1649 return ( typeof handler === "string" ? instance[ handler ] : handler ) |
1649 return ( typeof handler === "string" ? instance[ handler ] : handler ) |
1650 .apply( instance, arguments ); |
1650 .apply( instance, arguments ); |