Changeset 51794
- Timestamp:
- 09/10/2021 12:01:24 AM (3 years ago)
- Location:
- trunk/src
- Files:
-
- 38 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/_enqueues/vendor/jquery/ui/accordion.js
r49134 r51794 1 1 /*! 2 * jQuery UI Accordion 1.1 2.12 * jQuery UI Accordion 1.13.0-rc.2 3 3 * http://jqueryui.com 4 4 * … … 10 10 //>>label: Accordion 11 11 //>>group: Widgets 12 / / jscs:disable maximumLineLength12 /* eslint-disable max-len */ 13 13 //>>description: Displays collapsible content panels for presenting information in a limited amount of space. 14 / / jscs:enable maximumLineLength14 /* eslint-enable max-len */ 15 15 //>>docs: http://api.jqueryui.com/accordion/ 16 16 //>>demos: http://jqueryui.com/accordion/ … … 20 20 21 21 ( function( factory ) { 22 "use strict"; 23 22 24 if ( typeof define === "function" && define.amd ) { 23 25 … … 32 34 factory( jQuery ); 33 35 } 34 }( function( $ ) { 36 } )( function( $ ) { 37 "use strict"; 35 38 36 39 return $.widget( "ui.accordion", { 37 version: "1.1 2.1",40 version: "1.13.0-rc.2", 38 41 options: { 39 42 active: 0, … … 46 49 collapsible: false, 47 50 event: "click", 48 header: "> li > :first-child, > :not(li):even", 51 header: function( elem ) { 52 return elem.find( "> li > :first-child" ).add( elem.find( "> :not(li)" ).even() ); 53 }, 49 54 heightStyle: "auto", 50 55 icons: { … … 277 282 prevPanels = this.panels; 278 283 279 this.headers = this.element.find( this.options.header ); 284 if ( typeof this.options.header === "function" ) { 285 this.headers = this.options.header( this.element ); 286 } else { 287 this.headers = this.element.find( this.options.header ); 288 } 280 289 this._addClass( this.headers, "ui-accordion-header ui-accordion-header-collapsed", 281 290 "ui-state-default" ); … … 608 617 } ); 609 618 610 } ) );619 } ); -
trunk/src/js/_enqueues/vendor/jquery/ui/autocomplete.js
r49134 r51794 1 1 /*! 2 * jQuery UI Autocomplete 1.1 2.12 * jQuery UI Autocomplete 1.13.0-rc.2 3 3 * http://jqueryui.com 4 4 * … … 18 18 19 19 ( function( factory ) { 20 "use strict"; 21 20 22 if ( typeof define === "function" && define.amd ) { 21 23 … … 31 33 factory( jQuery ); 32 34 } 33 }( function( $ ) { 35 } )( function( $ ) { 36 "use strict"; 34 37 35 38 $.widget( "ui.autocomplete", { 36 version: "1.1 2.1",39 version: "1.13.0-rc.2", 37 40 defaultElement: "<input>", 38 41 options: { … … 197 200 }, 198 201 blur: function( event ) { 199 if ( this.cancelBlur ) {200 delete this.cancelBlur;201 return;202 }203 204 202 clearTimeout( this.searching ); 205 203 this.close( event ); … … 217 215 } ) 218 216 .hide() 217 218 // Support: IE 11 only, Edge <= 14 219 // For other browsers, we preventDefault() on the mousedown event 220 // to keep the dropdown from taking focus from the input. This doesn't 221 // work for IE/Edge, causing problems with selection and scrolling (#9638) 222 // Happily, IE and Edge support an "unselectable" attribute that 223 // prevents an element from receiving focus, exactly what we want here. 224 .attr( { 225 "unselectable": "on" 226 } ) 219 227 .menu( "instance" ); 220 228 … … 223 231 mousedown: function( event ) { 224 232 225 // prevent moving focus out of the text field233 // Prevent moving focus out of the text field 226 234 event.preventDefault(); 227 228 // IE doesn't prevent moving focus even with event.preventDefault()229 // so we set a flag to know when we should ignore the blur event230 this.cancelBlur = true;231 this._delay( function() {232 delete this.cancelBlur;233 234 // Support: IE 8 only235 // Right clicking a menu item or selecting text from the menu items will236 // result in focus moving out of the input. However, we've already received237 // and ignored the blur event because of the cancelBlur flag set above. So238 // we restore focus to ensure that the menu closes properly based on the user's239 // next actions.240 if ( this.element[ 0 ] !== $.ui.safeActiveElement( this.document[ 0 ] ) ) {241 this.element.trigger( "focus" );242 }243 } );244 235 }, 245 236 menufocus: function( event, ui ) { … … 272 263 // Announce the value in the liveRegion 273 264 label = ui.item.attr( "aria-label" ) || item.value; 274 if ( label && $.trim( label ).length ) {265 if ( label && String.prototype.trim.call( label ).length ) { 275 266 this.liveRegion.children().hide(); 276 267 $( "<div>" ).text( label ).appendTo( this.liveRegion ); … … 384 375 var array, url, 385 376 that = this; 386 if ( $.isArray( this.options.source ) ) {377 if ( Array.isArray( this.options.source ) ) { 387 378 array = this.options.source; 388 379 this.source = function( request, response ) { … … 456 447 var index = ++this.requestIndex; 457 448 458 return $.proxy(function( content ) {449 return function( content ) { 459 450 if ( index === this.requestIndex ) { 460 451 this.__response( content ); … … 465 456 this._removeClass( "ui-autocomplete-loading" ); 466 457 } 467 } ,this );458 }.bind( this ); 468 459 }, 469 460 … … 625 616 626 617 if ( editable === "inherit" ) { 627 618 return this._isContentEditable( element.parent() ); 628 619 } 629 620 … … 676 667 return $.ui.autocomplete; 677 668 678 } ) );669 } ); -
trunk/src/js/_enqueues/vendor/jquery/ui/button.js
r49134 r51794 1 1 /*! 2 * jQuery UI Button 1.1 2.12 * jQuery UI Button 1.13.0-rc.2 3 3 * http://jqueryui.com 4 4 * … … 18 18 19 19 ( function( factory ) { 20 "use strict"; 21 20 22 if ( typeof define === "function" && define.amd ) { 21 23 … … 36 38 factory( jQuery ); 37 39 } 38 }( function( $ ) { 40 } )( function( $ ) { 41 "use strict"; 39 42 40 43 $.widget( "ui.button", { 41 version: "1.1 2.1",44 version: "1.13.0-rc.2", 42 45 defaultElement: "<button>", 43 46 options: { … … 263 266 this.element[ 0 ].disabled = value; 264 267 if ( value ) { 265 this.element. blur();268 this.element.trigger( "blur" ); 266 269 } 267 270 } … … 342 345 343 346 $.fn.button = ( function( orig ) { 344 return function() { 345 if ( !this.length || ( this.length && this[ 0 ].tagName !== "INPUT" ) || 346 ( this.length && this[ 0 ].tagName === "INPUT" && ( 347 this.attr( "type" ) !== "checkbox" && this.attr( "type" ) !== "radio" 348 ) ) ) { 349 return orig.apply( this, arguments ); 350 } 351 if ( !$.ui.checkboxradio ) { 352 $.error( "Checkboxradio widget missing" ); 353 } 354 if ( arguments.length === 0 ) { 355 return this.checkboxradio( { 356 "icon": false 347 return function( options ) { 348 var isMethodCall = typeof options === "string"; 349 var args = Array.prototype.slice.call( arguments, 1 ); 350 var returnValue = this; 351 352 if ( isMethodCall ) { 353 354 // If this is an empty collection, we need to have the instance method 355 // return undefined instead of the jQuery instance 356 if ( !this.length && options === "instance" ) { 357 returnValue = undefined; 358 } else { 359 this.each( function() { 360 var methodValue; 361 var type = $( this ).attr( "type" ); 362 var name = type !== "checkbox" && type !== "radio" ? 363 "button" : 364 "checkboxradio"; 365 var instance = $.data( this, "ui-" + name ); 366 367 if ( options === "instance" ) { 368 returnValue = instance; 369 return false; 370 } 371 372 if ( !instance ) { 373 return $.error( "cannot call methods on button" + 374 " prior to initialization; " + 375 "attempted to call method '" + options + "'" ); 376 } 377 378 if ( typeof instance[ options ] !== "function" || 379 options.charAt( 0 ) === "_" ) { 380 return $.error( "no such method '" + options + "' for button" + 381 " widget instance" ); 382 } 383 384 methodValue = instance[ options ].apply( instance, args ); 385 386 if ( methodValue !== instance && methodValue !== undefined ) { 387 returnValue = methodValue && methodValue.jquery ? 388 returnValue.pushStack( methodValue.get() ) : 389 methodValue; 390 return false; 391 } 392 } ); 393 } 394 } else { 395 396 // Allow multiple hashes to be passed on init 397 if ( args.length ) { 398 options = $.widget.extend.apply( null, [ options ].concat( args ) ); 399 } 400 401 this.each( function() { 402 var type = $( this ).attr( "type" ); 403 var name = type !== "checkbox" && type !== "radio" ? "button" : "checkboxradio"; 404 var instance = $.data( this, "ui-" + name ); 405 406 if ( instance ) { 407 instance.option( options || {} ); 408 if ( instance._init ) { 409 instance._init(); 410 } 411 } else { 412 if ( name === "button" ) { 413 orig.call( $( this ), options ); 414 return; 415 } 416 417 $( this ).checkboxradio( $.extend( { icon: false }, options ) ); 418 } 357 419 } ); 358 420 } 359 return this.checkboxradio.apply( this, arguments ); 421 422 return returnValue; 360 423 }; 361 424 } )( $.fn.button ); … … 383 446 return $.ui.button; 384 447 385 } ) );448 } ); -
trunk/src/js/_enqueues/vendor/jquery/ui/checkboxradio.js
r49134 r51794 1 1 /*! 2 * jQuery UI Checkboxradio 1.1 2.12 * jQuery UI Checkboxradio 1.13.0-rc.2 3 3 * http://jqueryui.com 4 4 * … … 19 19 20 20 ( function( factory ) { 21 "use strict"; 22 21 23 if ( typeof define === "function" && define.amd ) { 22 24 … … 31 33 factory( jQuery ); 32 34 } 33 }( function( $ ) { 35 } )( function( $ ) { 36 "use strict"; 34 37 35 38 $.widget( "ui.checkboxradio", [ $.ui.formResetMixin, { 36 version: "1.1 2.1",39 version: "1.13.0-rc.2", 37 40 options: { 38 41 disabled: null, … … 113 116 if ( checked ) { 114 117 this._addClass( this.label, "ui-checkboxradio-checked", "ui-state-active" ); 115 if ( this.icon ) {116 this._addClass( this.icon, null, "ui-state-hover" );117 }118 118 } 119 119 … … 150 150 var group; 151 151 var name = this.element[ 0 ].name; 152 var nameSelector = "input[name='" + $. ui.escapeSelector( name ) + "']";152 var nameSelector = "input[name='" + $.escapeSelector( name ) + "']"; 153 153 154 154 if ( !name ) { … … 162 162 // Not inside a form, check all inputs that also are not inside a form 163 163 group = $( nameSelector ).filter( function() { 164 return $( this ). form().length === 0;164 return $( this )._form().length === 0; 165 165 } ); 166 166 } … … 281 281 return $.ui.checkboxradio; 282 282 283 } ) );283 } ); -
trunk/src/js/_enqueues/vendor/jquery/ui/controlgroup.js
r49134 r51794 1 1 /*! 2 * jQuery UI Controlgroup 1.1 2.12 * jQuery UI Controlgroup 1.13.0-rc.2 3 3 * http://jqueryui.com 4 4 * … … 18 18 19 19 ( function( factory ) { 20 "use strict"; 21 20 22 if ( typeof define === "function" && define.amd ) { 21 23 … … 30 32 factory( jQuery ); 31 33 } 32 }( function( $ ) { 34 } )( function( $ ) { 35 "use strict"; 36 33 37 var controlgroupCornerRegex = /ui-corner-([a-z]){2,6}/g; 34 38 35 39 return $.widget( "ui.controlgroup", { 36 version: "1.1 2.1",40 version: "1.13.0-rc.2", 37 41 defaultElement: "<div>", 38 42 options: { … … 151 155 } ); 152 156 153 this.childWidgets = $( $.unique ( childWidgets ) );157 this.childWidgets = $( $.uniqueSort( childWidgets ) ); 154 158 this._addClass( this.childWidgets, "ui-controlgroup-item" ); 155 159 }, … … 235 239 $.each( classes, function( key ) { 236 240 var current = instance.options.classes[ key ] || ""; 237 current = $.trim( current.replace( controlgroupCornerRegex, "" ) );241 current = String.prototype.trim.call( current.replace( controlgroupCornerRegex, "" ) ); 238 242 result[ key ] = ( current + " " + classes[ key ] ).replace( /\s+/g, " " ); 239 243 } ); … … 296 300 } 297 301 } ); 298 } ) );302 } ); -
trunk/src/js/_enqueues/vendor/jquery/ui/core.js
r49134 r51794 1 /*! jQuery UI - v1.1 2.1 - 2020-09-251 /*! jQuery UI - v1.13.0-rc.2 - 2021-09-05 2 2 * http://jqueryui.com 3 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 4 4 * Copyright jQuery Foundation and other contributors; Licensed */ 5 5 ( function( factory ) { 6 "use strict"; 7 6 8 if ( typeof define === "function" && define.amd ) { 7 9 … … 14 16 } 15 17 } ( function( $ ) { 18 "use strict"; 16 19 17 20 // Source: version.js 18 21 $.ui = $.ui || {}; 19 22 20 $.ui.version = "1.1 2.1";23 $.ui.version = "1.13.0-rc.2"; 21 24 22 25 // Source: data.js 23 26 /*! 24 * jQuery UI :data 1.1 2.127 * jQuery UI :data 1.13.0-rc.2 25 28 * http://jqueryui.com 26 29 * … … 35 38 //>>docs: http://api.jqueryui.com/data-selector/ 36 39 37 $.extend( $.expr [ ":" ], {40 $.extend( $.expr.pseudos, { 38 41 data: $.expr.createPseudo ? 39 42 $.expr.createPseudo( function( dataName ) { … … 49 52 } ); 50 53 51 52 54 // Source: disable-selection.js 53 55 /*! 54 * jQuery UI Disable Selection 1.1 2.156 * jQuery UI Disable Selection 1.13.0-rc.2 55 57 * http://jqueryui.com 56 58 * … … 84 86 } ); 85 87 86 // Source: escape-selector.js87 // Internal use only88 $.ui.escapeSelector = ( function() {89 var selectorEscape = /([!"#$%&'()*+,./:;<=>?@[\]^`{|}~])/g;90 return function( selector ) {91 return selector.replace( selectorEscape, "\\$1" );92 };93 } )();94 95 88 // Source: focusable.js 96 89 /*! 97 * jQuery UI Focusable 1.1 2.190 * jQuery UI Focusable 1.13.0-rc.2 98 91 * http://jqueryui.com 99 92 * … … 154 147 visibility = element.css( "visibility" ); 155 148 } 156 return visibility !== "hidden";149 return visibility === "visible"; 157 150 } 158 151 159 $.extend( $.expr [ ":" ], {152 $.extend( $.expr.pseudos, { 160 153 focusable: function( element ) { 161 154 return $.ui.focusable( element, $.attr( element, "tabindex" ) != null ); … … 167 160 // IE8 does not support the form attribute and when it is supplied. It overwrites the form prop 168 161 // with a string, so we need to find the proper form. 169 $.fn. form = function() {162 $.fn._form = function() { 170 163 return typeof this[ 0 ].form === "string" ? this.closest( "form" ) : $( this[ 0 ].form ); 171 164 }; … … 173 166 // Source: form-reset-mixin.js 174 167 /*! 175 * jQuery UI Form Reset Mixin 1.1 2.1168 * jQuery UI Form Reset Mixin 1.13.0-rc.2 176 169 * http://jqueryui.com 177 170 * … … 200 193 201 194 _bindFormResetHandler: function() { 202 this.form = this.element. form();195 this.form = this.element._form(); 203 196 if ( !this.form.length ) { 204 197 return; … … 236 229 $.ui.ie = !!/msie [\w.]+/.exec( navigator.userAgent.toLowerCase() ); 237 230 238 // Source: jquery- 1-7.js231 // Source: jquery-patch.js 239 232 /*! 240 * jQuery UI Support for jQuery core 1. 7.x 1.12.1233 * jQuery UI Support for jQuery core 1.8.x and newer 1.13.0-rc.2 241 234 * http://jqueryui.com 242 235 * … … 247 240 */ 248 241 249 //>>label: jQuery 1. 7Support242 //>>label: jQuery 1.8+ Support 250 243 //>>group: Core 251 //>>description: Support version 1.7.x of jQuery core 252 253 // Support: jQuery 1.7 only 254 // Not a great way to check versions, but since we only support 1.7+ and only 255 // need to detect <1.8, this is a simple check that should suffice. Checking 256 // for "1.7." would be a bit safer, but the version string is 1.7, not 1.7.0 257 // and we'll never reach 1.70.0 (if we do, we certainly won't be supporting 258 // 1.7 anymore). See #11197 for why we're not using feature detection. 259 if ( $.fn.jquery.substring( 0, 3 ) === "1.7" ) { 260 261 // Setters for .innerWidth(), .innerHeight(), .outerWidth(), .outerHeight() 262 // Unlike jQuery Core 1.8+, these only support numeric values to set the 263 // dimensions in pixels 264 $.each( [ "Width", "Height" ], function( i, name ) { 265 var side = name === "Width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ], 266 type = name.toLowerCase(), 267 orig = { 268 innerWidth: $.fn.innerWidth, 269 innerHeight: $.fn.innerHeight, 270 outerWidth: $.fn.outerWidth, 271 outerHeight: $.fn.outerHeight 272 }; 273 274 function reduce( elem, size, border, margin ) { 275 $.each( side, function() { 276 size -= parseFloat( $.css( elem, "padding" + this ) ) || 0; 277 if ( border ) { 278 size -= parseFloat( $.css( elem, "border" + this + "Width" ) ) || 0; 279 } 280 if ( margin ) { 281 size -= parseFloat( $.css( elem, "margin" + this ) ) || 0; 282 } 283 } ); 284 return size; 285 } 286 287 $.fn[ "inner" + name ] = function( size ) { 288 if ( size === undefined ) { 289 return orig[ "inner" + name ].call( this ); 290 } 291 292 return this.each( function() { 293 $( this ).css( type, reduce( this, size ) + "px" ); 294 } ); 295 }; 296 297 $.fn[ "outer" + name ] = function( size, margin ) { 298 if ( typeof size !== "number" ) { 299 return orig[ "outer" + name ].call( this, size ); 300 } 301 302 return this.each( function() { 303 $( this ).css( type, reduce( this, size, true, margin ) + "px" ); 304 } ); 305 }; 306 } ); 307 308 $.fn.addBack = function( selector ) { 309 return this.add( selector == null ? 310 this.prevObject : this.prevObject.filter( selector ) 311 ); 244 //>>description: Support version 1.8.x and newer of jQuery core 245 246 // Support: jQuery 1.9.x or older 247 // $.expr[ ":" ] is deprecated. 248 if ( !$.expr.pseudos ) { 249 $.expr.pseudos = $.expr[ ":" ]; 250 } 251 252 // Support: jQuery 1.11.x or older 253 // $.unique has been renamed to $.uniqueSort 254 if ( !$.uniqueSort ) { 255 $.uniqueSort = $.unique; 256 } 257 258 // Support: jQuery 2.2.x or older. 259 // This method has been defined in jQuery 3.0.0. 260 // Code from https://github.com/jquery/jquery/blob/e539bac79e666bba95bba86d690b4e609dca2286/src/selector/escapeSelector.js 261 if ( !$.escapeSelector ) { 262 263 // CSS string/identifier serialization 264 // https://drafts.csswg.org/cssom/#common-serializing-idioms 265 var rcssescape = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g; 266 267 var fcssescape = function( ch, asCodePoint ) { 268 if ( asCodePoint ) { 269 270 // U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER 271 if ( ch === "\0" ) { 272 return "\uFFFD"; 273 } 274 275 // Control characters and (dependent upon position) numbers get escaped as code points 276 return ch.slice( 0, -1 ) + "\\" + ch.charCodeAt( ch.length - 1 ).toString( 16 ) + " "; 277 } 278 279 // Other potentially-special ASCII characters get backslash-escaped 280 return "\\" + ch; 281 }; 282 283 $.escapeSelector = function( sel ) { 284 return ( sel + "" ).replace( rcssescape, fcssescape ); 312 285 }; 313 286 } 314 287 288 // Support: jQuery 3.4.x or older 289 // These methods have been defined in jQuery 3.5.0. 290 if ( !$.fn.even || !$.fn.odd ) { 291 $.fn.extend( { 292 even: function() { 293 return this.filter( function( i ) { 294 return i % 2 === 0; 295 } ); 296 }, 297 odd: function() { 298 return this.filter( function( i ) { 299 return i % 2 === 1; 300 } ); 301 } 302 } ); 303 } 304 315 305 // Source: keycode.js 316 306 /*! 317 * jQuery UI Keycode 1.1 2.1307 * jQuery UI Keycode 1.13.0-rc.2 318 308 * http://jqueryui.com 319 309 * … … 349 339 // Source: labels.js 350 340 /*! 351 * jQuery UI Labels 1.1 2.1341 * jQuery UI Labels 1.13.0-rc.2 352 342 * http://jqueryui.com 353 343 * … … 365 355 var ancestor, selector, id, labels, ancestors; 366 356 357 if ( !this.length ) { 358 return this.pushStack( [] ); 359 } 360 367 361 // Check control.labels first 368 362 if ( this[ 0 ].labels && this[ 0 ].labels.length ) { … … 387 381 388 382 // Create a selector for the label based on the id 389 selector = "label[for='" + $. ui.escapeSelector( id ) + "']";383 selector = "label[for='" + $.escapeSelector( id ) + "']"; 390 384 391 385 labels = labels.add( ancestors.find( selector ).addBack( selector ) ); … … 431 425 // Source: position.js 432 426 /*! 433 * jQuery UI Position 1.1 2.1427 * jQuery UI Position 1.13.0-rc.2 434 428 * http://jqueryui.com 435 429 * … … 469 463 } 470 464 465 function isWindow( obj ) { 466 return obj != null && obj === obj.window; 467 } 468 471 469 function getDimensions( elem ) { 472 470 var raw = elem[ 0 ]; … … 478 476 }; 479 477 } 480 if ( $.isWindow( raw ) ) {478 if ( isWindow( raw ) ) { 481 479 return { 482 480 width: elem.width(), … … 505 503 } 506 504 var w1, w2, 507 div = $( "<div " +508 " style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'>" +509 "<div style='height: 100px;width:auto;'></div></div>" ),505 div = $( "<div style=" + 506 "'display:block;position:absolute;width:200px;height:200px;overflow:hidden;'>" + 507 "<div style='height:300px;width:auto;'></div></div>" ), 510 508 innerDiv = div.children()[ 0 ]; 511 509 … … 540 538 getWithinInfo: function( element ) { 541 539 var withinElement = $( element || window ), 542 is Window = $.isWindow( withinElement[ 0 ] ),540 isElemWindow = isWindow( withinElement[ 0 ] ), 543 541 isDocument = !!withinElement[ 0 ] && withinElement[ 0 ].nodeType === 9, 544 hasOffset = !is Window && !isDocument;542 hasOffset = !isElemWindow && !isDocument; 545 543 return { 546 544 element: withinElement, 547 isWindow: is Window,545 isWindow: isElemWindow, 548 546 isDocument: isDocument, 549 547 offset: hasOffset ? $( element ).offset() : { left: 0, top: 0 }, … … 565 563 566 564 var atOffset, targetWidth, targetHeight, targetOffset, basePosition, dimensions, 567 target = $( options.of ), 565 566 // Make sure string options are treated as CSS selectors 567 target = typeof options.of === "string" ? 568 $( document ).find( options.of ) : 569 $( options.of ), 570 568 571 within = $.position.getWithinInfo( options.within ), 569 572 scrollInfo = $.position.getScrollInfo( within ), … … 955 958 // Source: scroll-parent.js 956 959 /*! 957 * jQuery UI Scroll Parent 1.1 2.1960 * jQuery UI Scroll Parent 1.13.0-rc.2 958 961 * http://jqueryui.com 959 962 * … … 988 991 // Source: tabbable.js 989 992 /*! 990 * jQuery UI Tabbable 1.1 2.1993 * jQuery UI Tabbable 1.13.0-rc.2 991 994 * http://jqueryui.com 992 995 * … … 1001 1004 //>>docs: http://api.jqueryui.com/tabbable-selector/ 1002 1005 1003 $.extend( $.expr [ ":" ], {1006 $.extend( $.expr.pseudos, { 1004 1007 tabbable: function( element ) { 1005 1008 var tabIndex = $.attr( element, "tabindex" ), … … 1011 1014 // Source: unique-id.js 1012 1015 /*! 1013 * jQuery UI Unique ID 1.1 2.11016 * jQuery UI Unique ID 1.13.0-rc.2 1014 1017 * http://jqueryui.com 1015 1018 * … … 1048 1051 // Source: widget.js 1049 1052 /*! 1050 * jQuery UI Widget 1.1 2.11053 * jQuery UI Widget 1.13.0-rc.2 1051 1054 * http://jqueryui.com 1052 1055 * … … 1063 1066 1064 1067 var widgetUuid = 0; 1068 var widgetHasOwnProperty = Array.prototype.hasOwnProperty; 1065 1069 var widgetSlice = Array.prototype.slice; 1066 1070 … … 1069 1073 var events, elem, i; 1070 1074 for ( i = 0; ( elem = elems[ i ] ) != null; i++ ) { 1071 try { 1072 1073 // Only trigger remove when necessary to save time 1074 events = $._data( elem, "events" ); 1075 if ( events && events.remove ) { 1076 $( elem ).triggerHandler( "remove" ); 1077 } 1078 1079 // Http://bugs.jquery.com/ticket/8235 1080 } catch ( e ) {} 1075 1076 // Only trigger remove when necessary to save time 1077 events = $._data( elem, "events" ); 1078 if ( events && events.remove ) { 1079 $( elem ).triggerHandler( "remove" ); 1080 } 1081 1081 } 1082 1082 orig( elems ); … … 1100 1100 } 1101 1101 1102 if ( $.isArray( prototype ) ) {1102 if ( Array.isArray( prototype ) ) { 1103 1103 prototype = $.extend.apply( null, [ {} ].concat( prototype ) ); 1104 1104 } 1105 1105 1106 1106 // Create selector for plugin 1107 $.expr [ ":" ][ fullName.toLowerCase() ] = function( elem ) {1107 $.expr.pseudos[ fullName.toLowerCase() ] = function( elem ) { 1108 1108 return !!$.data( elem, fullName ); 1109 1109 }; … … 1145 1145 basePrototype.options = $.widget.extend( {}, basePrototype.options ); 1146 1146 $.each( prototype, function( prop, value ) { 1147 if ( !$.isFunction( value )) {1147 if ( typeof value !== "function" ) { 1148 1148 proxiedPrototype[ prop ] = value; 1149 1149 return; … … 1224 1224 for ( key in input[ inputIndex ] ) { 1225 1225 value = input[ inputIndex ][ key ]; 1226 if ( input[ inputIndex ].hasOwnProperty(key ) && value !== undefined ) {1226 if ( widgetHasOwnProperty.call( input[ inputIndex ], key ) && value !== undefined ) { 1227 1227 1228 1228 // Clone objects … … 1273 1273 } 1274 1274 1275 if ( !$.isFunction( instance[ options ] ) || options.charAt( 0 ) === "_" ) { 1275 if ( typeof instance[ options ] !== "function" || 1276 options.charAt( 0 ) === "_" ) { 1276 1277 return $.error( "no such method '" + options + "' for " + name + 1277 1278 " widget instance" ); … … 1534 1535 }, options ); 1535 1536 1537 function bindRemoveEvent() { 1538 options.element.each( function( _, element ) { 1539 var isTracked = $.map( that.classesElementLookup, function( elements ) { 1540 return elements; 1541 } ) 1542 .some( function( elements ) { 1543 return elements.is( element ); 1544 } ); 1545 1546 if ( !isTracked ) { 1547 that._on( $( element ), { 1548 remove: "_untrackClassesElement" 1549 } ); 1550 } 1551 } ); 1552 } 1553 1536 1554 function processClassString( classes, checkOption ) { 1537 1555 var current, i; … … 1539 1557 current = that.classesElementLookup[ classes[ i ] ] || $(); 1540 1558 if ( options.add ) { 1541 current = $( $.unique( current.get().concat( options.element.get() ) ) ); 1559 bindRemoveEvent(); 1560 current = $( $.uniqueSort( current.get().concat( options.element.get() ) ) ); 1542 1561 } else { 1543 1562 current = $( current.not( options.element ).get() ); … … 1550 1569 } 1551 1570 } 1552 1553 this._on( options.element, {1554 "remove": "_untrackClassesElement"1555 } );1556 1571 1557 1572 if ( options.keys ) { … … 1572 1587 } 1573 1588 } ); 1589 1590 this._off( $( event.target ) ); 1574 1591 }, 1575 1592 … … 1652 1669 eventName = ( eventName || "" ).split( " " ).join( this.eventNamespace + " " ) + 1653 1670 this.eventNamespace; 1654 element.off( eventName ) .off( eventName );1671 element.off( eventName ); 1655 1672 1656 1673 // Clear the stack to avoid memory leaks (#10056) … … 1718 1735 1719 1736 this.element.trigger( event, data ); 1720 return !( $.isFunction( callback )&&1737 return !( typeof callback === "function" && 1721 1738 callback.apply( this.element[ 0 ], [ event ].concat( data ) ) === false || 1722 1739 event.isDefaultPrevented() ); … … 1740 1757 if ( typeof options === "number" ) { 1741 1758 options = { duration: options }; 1759 } else if ( options === true ) { 1760 options = {}; 1742 1761 } 1743 1762 -
trunk/src/js/_enqueues/vendor/jquery/ui/datepicker.js
r49134 r51794 1 // jscs:disable maximumLineLength 2 /* jscs:disable requireCamelCaseOrUpperCaseIdentifiers */ 1 /* eslint-disable max-len, camelcase */ 3 2 /*! 4 * jQuery UI Datepicker 1.1 2.13 * jQuery UI Datepicker 1.13.0-rc.2 5 4 * http://jqueryui.com 6 5 * … … 20 19 21 20 ( function( factory ) { 21 "use strict"; 22 22 23 if ( typeof define === "function" && define.amd ) { 23 24 … … 32 33 factory( jQuery ); 33 34 } 34 }( function( $ ) { 35 36 $.extend( $.ui, { datepicker: { version: "1.12.1" } } ); 35 } )( function( $ ) { 36 "use strict"; 37 38 $.extend( $.ui, { datepicker: { version: "1.13.0-rc.2" } } ); 37 39 38 40 var datepicker_instActive; … … 62 64 return 0; 63 65 } 66 64 67 /* Date picker manager. 65 68 Use the singleton instance of this class, $.datepicker, to interact with the date picker. … … 88 91 nextText: "Next", // Display text for next month link 89 92 currentText: "Today", // Display text for current month link 90 monthNames: [ "January", "February","March","April","May","June",91 "July", "August","September","October","November","December" ], // Names of months for drop-down and formatting93 monthNames: [ "January", "February", "March", "April", "May", "June", 94 "July", "August", "September", "October", "November", "December" ], // Names of months for drop-down and formatting 92 95 monthNamesShort: [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" ], // For formatting 93 96 dayNames: [ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" ], // For formatting 94 97 dayNamesShort: [ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" ], // For formatting 95 dayNamesMin: [ "Su", "Mo","Tu","We","Th","Fr","Sa" ], // Column headings for days starting at Sunday98 dayNamesMin: [ "Su", "Mo", "Tu", "We", "Th", "Fr", "Sa" ], // Column headings for days starting at Sunday 96 99 weekHeader: "Wk", // Column header for week of the year 97 100 dateFormat: "mm/dd/yy", // See format options on parseDate … … 99 102 isRTL: false, // True if right-to-left language, false if left-to-right 100 103 showMonthAfterYear: false, // True if the year select precedes month, false for month then year 101 yearSuffix: "" // Additional text to append to the year in the month headers 104 yearSuffix: "", // Additional text to append to the year in the month headers, 105 selectMonthLabel: "Select month", // Invisible label for month selector 106 selectYearLabel: "Select year" // Invisible label for year selector 102 107 }; 103 108 this._defaults = { // Global defaults for all the date picker instances … … 140 145 onChangeMonthYear: null, // Define a callback function when the month or year is changed 141 146 onClose: null, // Define a callback function when the datepicker is closed 147 onUpdateDatepicker: null, // Define a callback function when the datepicker is updated 142 148 numberOfMonths: 1, // Number of months to show at a time 143 149 showCurrentAtPos: 0, // The position in multipe months at which to show the current month (starting at 0) … … 158 164 159 165 $.extend( Datepicker.prototype, { 166 160 167 /* Class name added to elements to indicate already configured with a date picker. */ 161 168 markerClassName: "hasDatepicker", … … 240 247 } 241 248 if ( appendText ) { 242 inst.append = $( "<span class='" + this._appendClass + "'>" + appendText + "</span>" ); 249 inst.append = $( "<span>" ) 250 .addClass( this._appendClass ) 251 .text( appendText ); 243 252 input[ isRTL ? "before" : "after" ]( inst.append ); 244 253 } … … 257 266 buttonText = this._get( inst, "buttonText" ); 258 267 buttonImage = this._get( inst, "buttonImage" ); 259 inst.trigger = $( this._get( inst, "buttonImageOnly" ) ? 260 $( "<img/>" ).addClass( this._triggerClass ). 261 attr( { src: buttonImage, alt: buttonText, title: buttonText } ) : 262 $( "<button type='button'></button>" ).addClass( this._triggerClass ). 263 html( !buttonImage ? buttonText : $( "<img/>" ).attr( 264 { src:buttonImage, alt:buttonText, title:buttonText } ) ) ); 268 269 if ( this._get( inst, "buttonImageOnly" ) ) { 270 inst.trigger = $( "<img>" ) 271 .addClass( this._triggerClass ) 272 .attr( { 273 src: buttonImage, 274 alt: buttonText, 275 title: buttonText 276 } ); 277 } else { 278 inst.trigger = $( "<button type='button'>" ) 279 .addClass( this._triggerClass ); 280 if ( buttonImage ) { 281 inst.trigger.html( 282 $( "<img>" ) 283 .attr( { 284 src: buttonImage, 285 alt: buttonText, 286 title: buttonText 287 } ) 288 ); 289 } else { 290 inst.trigger.text( buttonText ); 291 } 292 } 293 265 294 input[ isRTL ? "before" : "after" ]( inst.trigger ); 266 295 inst.trigger.on( "click", function() { … … 408 437 if ( datepicker_instActive === inst ) { 409 438 datepicker_instActive = null; 439 this._curInst = null; 410 440 } 411 441 }, … … 427 457 target.disabled = false; 428 458 inst.trigger.filter( "button" ). 429 each( function() { this.disabled = false; } ).end(). 459 each( function() { 460 this.disabled = false; 461 } ).end(). 430 462 filter( "img" ).css( { opacity: "1.0", cursor: "" } ); 431 463 } else if ( nodeName === "div" || nodeName === "span" ) { … … 436 468 } 437 469 this._disabledInputs = $.map( this._disabledInputs, 438 function( value ) { return ( value === target ? null : value ); } ); // delete entry 470 471 // Delete entry 472 function( value ) { 473 return ( value === target ? null : value ); 474 } ); 439 475 }, 440 476 … … 455 491 target.disabled = true; 456 492 inst.trigger.filter( "button" ). 457 each( function() { this.disabled = true; } ).end(). 493 each( function() { 494 this.disabled = true; 495 } ).end(). 458 496 filter( "img" ).css( { opacity: "0.5", cursor: "default" } ); 459 497 } else if ( nodeName === "div" || nodeName === "span" ) { … … 464 502 } 465 503 this._disabledInputs = $.map( this._disabledInputs, 466 function( value ) { return ( value === target ? null : value ); } ); // delete entry 504 505 // Delete entry 506 function( value ) { 507 return ( value === target ? null : value ); 508 } ); 467 509 this._disabledInputs[ this._disabledInputs.length ] = target; 468 510 }, … … 492 534 try { 493 535 return $.data( target, "datepicker" ); 494 } 495 catch ( err ) { 536 } catch ( err ) { 496 537 throw "Missing instance data for this datepicker"; 497 538 } … … 726 767 $.datepicker._updateDatepicker( inst ); 727 768 } 728 } 729 catch ( err ) { 769 } catch ( err ) { 730 770 } 731 771 } … … 832 872 cols = numMonths[ 1 ], 833 873 width = 17, 834 activeCell = inst.dpDiv.find( "." + this._dayOverClass + " a" ); 874 activeCell = inst.dpDiv.find( "." + this._dayOverClass + " a" ), 875 onUpdateDatepicker = $.datepicker._get( inst, "onUpdateDatepicker" ); 835 876 836 877 if ( activeCell.length > 0 ) { … … 858 899 //assure that inst.yearshtml didn't change. 859 900 if ( origyearshtml === inst.yearshtml && inst.yearshtml ) { 860 inst.dpDiv.find( "select.ui-datepicker-year :first").replaceWith( inst.yearshtml );901 inst.dpDiv.find( "select.ui-datepicker-year" ).first().replaceWith( inst.yearshtml ); 861 902 } 862 903 origyearshtml = inst.yearshtml = null; 863 904 }, 0 ); 905 } 906 907 if ( onUpdateDatepicker ) { 908 onUpdateDatepicker.apply( ( inst.input ? inst.input[ 0 ] : null ), [ inst ] ); 864 909 } 865 910 }, … … 900 945 isRTL = this._get( inst, "isRTL" ); 901 946 902 while ( obj && ( obj.type === "hidden" || obj.nodeType !== 1 || $.expr. filters.hidden( obj ) ) ) {947 while ( obj && ( obj.type === "hidden" || obj.nodeType !== 1 || $.expr.pseudos.hidden( obj ) ) ) { 903 948 obj = obj[ isRTL ? "previousSibling" : "nextSibling" ]; 904 949 } … … 988 1033 return; 989 1034 } 990 this._adjustInstDate( inst, offset + 991 ( period === "M" ? this._get( inst, "showCurrentAtPos" ) : 0 ), // undo positioning 992 period ); 1035 this._adjustInstDate( inst, offset, period ); 993 1036 this._updateDatepicker( inst ); 994 1037 }, … … 1037 1080 1038 1081 inst = this._getInst( target[ 0 ] ); 1039 inst.selectedDay = inst.currentDay = $( "a", td ).html();1082 inst.selectedDay = inst.currentDay = parseInt( $( "a", td ).attr( "data-date" ) ); 1040 1083 inst.selectedMonth = inst.currentMonth = month; 1041 1084 inst.selectedYear = inst.currentYear = year; … … 1090 1133 date = this._getDate( inst ); 1091 1134 dateStr = this.formatDate( altFormat, date, this._getFormatConfig( inst ) ); 1092 $( altField ).val( dateStr );1135 $( document ).find( altField ).val( dateStr ); 1093 1136 } 1094 1137 }, … … 1529 1572 return $.datepicker.parseDate( $.datepicker._get( inst, "dateFormat" ), 1530 1573 offset, $.datepicker._getFormatConfig( inst ) ); 1531 } 1532 catch ( e ) { 1574 } catch ( e ) { 1533 1575 1534 1576 // Ignore … … 1704 1746 this._getFormatConfig( inst ) ) ); 1705 1747 1706 prev = ( this._canAdjustMonth( inst, -1, drawYear, drawMonth ) ? 1707 "<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click'" + 1708 " title='" + prevText + "'><span class='ui-icon ui-icon-circle-triangle-" + ( isRTL ? "e" : "w" ) + "'>" + prevText + "</span></a>" : 1709 ( hideIfNoPrevNext ? "" : "<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='" + prevText + "'><span class='ui-icon ui-icon-circle-triangle-" + ( isRTL ? "e" : "w" ) + "'>" + prevText + "</span></a>" ) ); 1748 if ( this._canAdjustMonth( inst, -1, drawYear, drawMonth ) ) { 1749 prev = $( "<a>" ) 1750 .attr( { 1751 "class": "ui-datepicker-prev ui-corner-all", 1752 "data-handler": "prev", 1753 "data-event": "click", 1754 title: prevText 1755 } ) 1756 .append( 1757 $( "<span>" ) 1758 .addClass( "ui-icon ui-icon-circle-triangle-" + 1759 ( isRTL ? "e" : "w" ) ) 1760 .text( prevText ) 1761 )[ 0 ].outerHTML; 1762 } else if ( hideIfNoPrevNext ) { 1763 prev = ""; 1764 } else { 1765 prev = $( "<a>" ) 1766 .attr( { 1767 "class": "ui-datepicker-prev ui-corner-all ui-state-disabled", 1768 title: prevText 1769 } ) 1770 .append( 1771 $( "<span>" ) 1772 .addClass( "ui-icon ui-icon-circle-triangle-" + 1773 ( isRTL ? "e" : "w" ) ) 1774 .text( prevText ) 1775 )[ 0 ].outerHTML; 1776 } 1710 1777 1711 1778 nextText = this._get( inst, "nextText" ); … … 1714 1781 this._getFormatConfig( inst ) ) ); 1715 1782 1716 next = ( this._canAdjustMonth( inst, +1, drawYear, drawMonth ) ? 1717 "<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click'" + 1718 " title='" + nextText + "'><span class='ui-icon ui-icon-circle-triangle-" + ( isRTL ? "w" : "e" ) + "'>" + nextText + "</span></a>" : 1719 ( hideIfNoPrevNext ? "" : "<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='" + nextText + "'><span class='ui-icon ui-icon-circle-triangle-" + ( isRTL ? "w" : "e" ) + "'>" + nextText + "</span></a>" ) ); 1783 if ( this._canAdjustMonth( inst, +1, drawYear, drawMonth ) ) { 1784 next = $( "<a>" ) 1785 .attr( { 1786 "class": "ui-datepicker-next ui-corner-all", 1787 "data-handler": "next", 1788 "data-event": "click", 1789 title: nextText 1790 } ) 1791 .append( 1792 $( "<span>" ) 1793 .addClass( "ui-icon ui-icon-circle-triangle-" + 1794 ( isRTL ? "w" : "e" ) ) 1795 .text( nextText ) 1796 )[ 0 ].outerHTML; 1797 } else if ( hideIfNoPrevNext ) { 1798 next = ""; 1799 } else { 1800 next = $( "<a>" ) 1801 .attr( { 1802 "class": "ui-datepicker-next ui-corner-all ui-state-disabled", 1803 title: nextText 1804 } ) 1805 .append( 1806 $( "<span>" ) 1807 .attr( "class", "ui-icon ui-icon-circle-triangle-" + 1808 ( isRTL ? "w" : "e" ) ) 1809 .text( nextText ) 1810 )[ 0 ].outerHTML; 1811 } 1720 1812 1721 1813 currentText = this._get( inst, "currentText" ); … … 1724 1816 this.formatDate( currentText, gotoDate, this._getFormatConfig( inst ) ) ); 1725 1817 1726 controls = ( !inst.inline ? "<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>" + 1727 this._get( inst, "closeText" ) + "</button>" : "" ); 1728 1729 buttonPanel = ( showButtonPanel ) ? "<div class='ui-datepicker-buttonpane ui-widget-content'>" + ( isRTL ? controls : "" ) + 1730 ( this._isInRange( inst, gotoDate ) ? "<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'" + 1731 ">" + currentText + "</button>" : "" ) + ( isRTL ? "" : controls ) + "</div>" : ""; 1818 controls = ""; 1819 if ( !inst.inline ) { 1820 controls = $( "<button>" ) 1821 .attr( { 1822 type: "button", 1823 "class": "ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all", 1824 "data-handler": "hide", 1825 "data-event": "click" 1826 } ) 1827 .text( this._get( inst, "closeText" ) )[ 0 ].outerHTML; 1828 } 1829 1830 buttonPanel = ""; 1831 if ( showButtonPanel ) { 1832 buttonPanel = $( "<div class='ui-datepicker-buttonpane ui-widget-content'>" ) 1833 .append( isRTL ? controls : "" ) 1834 .append( this._isInRange( inst, gotoDate ) ? 1835 $( "<button>" ) 1836 .attr( { 1837 type: "button", 1838 "class": "ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all", 1839 "data-handler": "today", 1840 "data-event": "click" 1841 } ) 1842 .text( currentText ) : 1843 "" ) 1844 .append( isRTL ? "" : controls )[ 0 ].outerHTML; 1845 } 1732 1846 1733 1847 firstDay = parseInt( this._get( inst, "firstDay" ), 10 ); … … 1817 1931 ( printDate.getTime() === currentDate.getTime() ? " ui-state-active" : "" ) + // highlight selected day 1818 1932 ( otherMonth ? " ui-priority-secondary" : "" ) + // distinguish dates from other months 1819 "' href='#'>" + printDate.getDate() + "</a>" ) ) + "</td>"; // display selectable date 1933 "' href='#' aria-current='" + ( printDate.getTime() === currentDate.getTime() ? "true" : "false" ) + // mark date as selected for screen reader 1934 "' data-date='" + printDate.getDate() + // store date as data 1935 "'>" + printDate.getDate() + "</a>" ) ) + "</td>"; // display selectable date 1820 1936 printDate.setDate( printDate.getDate() + 1 ); 1821 1937 printDate = this._daylightSavingAdjust( printDate ); … … 1847 1963 changeYear = this._get( inst, "changeYear" ), 1848 1964 showMonthAfterYear = this._get( inst, "showMonthAfterYear" ), 1965 selectMonthLabel = this._get( inst, "selectMonthLabel" ), 1966 selectYearLabel = this._get( inst, "selectYearLabel" ), 1849 1967 html = "<div class='ui-datepicker-title'>", 1850 1968 monthHtml = ""; … … 1856 1974 inMinYear = ( minDate && minDate.getFullYear() === drawYear ); 1857 1975 inMaxYear = ( maxDate && maxDate.getFullYear() === drawYear ); 1858 monthHtml += "<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>";1976 monthHtml += "<select class='ui-datepicker-month' aria-label='" + selectMonthLabel + "' data-handler='selectMonth' data-event='change'>"; 1859 1977 for ( month = 0; month < 12; month++ ) { 1860 1978 if ( ( !inMinYear || month >= minDate.getMonth() ) && ( !inMaxYear || month <= maxDate.getMonth() ) ) { … … 1891 2009 year = ( minDate ? Math.max( year, minDate.getFullYear() ) : year ); 1892 2010 endYear = ( maxDate ? Math.min( endYear, maxDate.getFullYear() ) : endYear ); 1893 inst.yearshtml += "<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";2011 inst.yearshtml += "<select class='ui-datepicker-year' aria-label='" + selectYearLabel + "' data-handler='selectYear' data-event='change'>"; 1894 2012 for ( ; year <= endYear; year++ ) { 1895 2013 inst.yearshtml += "<option value='" + year + "'" + … … 2103 2221 } 2104 2222 return this.each( function() { 2105 typeof options === "string" ? 2106 $.datepicker[ "_" + options + "Datepicker" ]. 2107 apply( $.datepicker, [ this ].concat( otherArgs ) ) : 2223 if ( typeof options === "string" ) { 2224 $.datepicker[ "_" + options + "Datepicker" ] 2225 .apply( $.datepicker, [ this ].concat( otherArgs ) ); 2226 } else { 2108 2227 $.datepicker._attachDatepicker( this, options ); 2228 } 2109 2229 } ); 2110 2230 }; … … 2113 2233 $.datepicker.initialized = false; 2114 2234 $.datepicker.uuid = new Date().getTime(); 2115 $.datepicker.version = "1.1 2.1";2235 $.datepicker.version = "1.13.0-rc.2"; 2116 2236 2117 2237 return $.datepicker; 2118 2238 2119 } ) );2239 } ); -
trunk/src/js/_enqueues/vendor/jquery/ui/dialog.js
r49134 r51794 1 1 /*! 2 * jQuery UI Dialog 1.1 2.12 * jQuery UI Dialog 1.13.0-rc.2 3 3 * http://jqueryui.com 4 4 * … … 18 18 19 19 ( function( factory ) { 20 "use strict"; 21 20 22 if ( typeof define === "function" && define.amd ) { 21 23 … … 34 36 factory( jQuery ); 35 37 } 36 }( function( $ ) { 38 } )( function( $ ) { 39 "use strict"; 37 40 38 41 $.widget( "ui.dialog", { 39 version: "1.1 2.1",42 version: "1.13.0-rc.2", 40 43 options: { 41 44 appendTo: "body", … … 282 285 } ); 283 286 284 // Track the dialog immediately upon open ening in case a focus event287 // Track the dialog immediately upon opening in case a focus event 285 288 // somehow occurs outside of the dialog before an element inside the 286 289 // dialog is focused (#10152) … … 318 321 }, 319 322 323 _restoreTabbableFocus: function() { 324 var activeElement = $.ui.safeActiveElement( this.document[ 0 ] ), 325 isActive = this.uiDialog[ 0 ] === activeElement || 326 $.contains( this.uiDialog[ 0 ], activeElement ); 327 if ( !isActive ) { 328 this._focusTabbable(); 329 } 330 }, 331 320 332 _keepFocus: function( event ) { 321 function checkFocus() {322 var activeElement = $.ui.safeActiveElement( this.document[ 0 ] ),323 isActive = this.uiDialog[ 0 ] === activeElement ||324 $.contains( this.uiDialog[ 0 ], activeElement );325 if ( !isActive ) {326 this._focusTabbable();327 }328 }329 333 event.preventDefault(); 330 checkFocus.call( this);334 this._restoreTabbableFocus(); 331 335 332 336 // support: IE 333 337 // IE <= 8 doesn't prevent moving focus even with event.preventDefault() 334 338 // so we check again later 335 this._delay( checkFocus );339 this._delay( this._restoreTabbableFocus ); 336 340 }, 337 341 … … 362 366 } 363 367 var tabbables = this.uiDialog.find( ":tabbable" ), 364 first = tabbables.fi lter( ":first"),365 last = tabbables. filter( ":last");368 first = tabbables.first(), 369 last = tabbables.last(); 366 370 367 371 if ( ( event.target === last[ 0 ] || event.target === this.uiDialog[ 0 ] ) && … … 474 478 this.uiButtonSet.empty(); 475 479 476 if ( $.isEmptyObject( buttons ) || ( $.isArray( buttons ) && !buttons.length ) ) {480 if ( $.isEmptyObject( buttons ) || ( Array.isArray( buttons ) && !buttons.length ) ) { 477 481 this._removeClass( this.uiDialog, "ui-dialog-buttons" ); 478 482 return; … … 481 485 $.each( buttons, function( name, props ) { 482 486 var click, buttonOptions; 483 props = $.isFunction( props )?487 props = typeof props === "function" ? 484 488 { click: props, text: name } : 485 489 props; … … 846 850 } 847 851 852 var jqMinor = $.fn.jquery.substring( 0, 4 ); 853 848 854 // We use a delay in case the overlay is created from an 849 855 // event that we're going to be cancelling (#2804) … … 856 862 857 863 // Prevent use of anchors and inputs 858 // Using _on() for an event handler shared across many instances is 859 // safe because the dialogs stack and must be closed in reverse order 860 this._on( this.document, { 861 focusin: function( event ) { 862 if ( isOpening ) { 863 return; 864 } 865 866 if ( !this._allowInteraction( event ) ) { 867 event.preventDefault(); 868 this._trackingInstances()[ 0 ]._focusTabbable(); 864 // This doesn't use `_on()` because it is a shared event handler 865 // across all open modal dialogs. 866 this.document.on( "focusin.ui-dialog", function( event ) { 867 if ( isOpening ) { 868 return; 869 } 870 871 var instance = this._trackingInstances()[ 0 ]; 872 if ( !instance._allowInteraction( event ) ) { 873 event.preventDefault(); 874 instance._focusTabbable(); 875 876 // Support: jQuery >=3.4 <3.6 only 877 // Focus re-triggering in jQuery 3.4/3.5 makes the original element 878 // have its focus event propagated last, breaking the re-targeting. 879 // Trigger focus in a delay in addition if needed to avoid the issue 880 // See https://github.com/jquery/jquery/issues/4382 881 if ( jqMinor === "3.4." || jqMinor === "3.5." ) { 882 instance._delay( instance._restoreTabbableFocus ); 869 883 } 870 884 } 871 } );885 }.bind( this ) ); 872 886 } 873 887 … … 892 906 893 907 if ( !overlays ) { 894 this. _off( this.document, "focusin" );908 this.document.off( "focusin.ui-dialog" ); 895 909 this.document.removeData( "ui-dialog-overlays" ); 896 910 } else { … … 930 944 return $.ui.dialog; 931 945 932 } ) );946 } ); -
trunk/src/js/_enqueues/vendor/jquery/ui/draggable.js
r49134 r51794 1 1 /*! 2 * jQuery UI Draggable 1.1 2.12 * jQuery UI Draggable 1.13.0-rc.2 3 3 * http://jqueryui.com 4 4 * … … 16 16 17 17 ( function( factory ) { 18 "use strict"; 19 18 20 if ( typeof define === "function" && define.amd ) { 19 21 … … 29 31 factory( jQuery ); 30 32 } 31 }( function( $ ) { 33 } )( function( $ ) { 34 "use strict"; 32 35 33 36 $.widget( "ui.draggable", $.ui.mouse, { 34 version: "1.1 2.1",37 version: "1.13.0-rc.2", 35 38 widgetEventPrefix: "drag", 36 39 options: { … … 196 199 197 200 //Adjust the mouse offset relative to the helper if "cursorAt" is supplied 198 ( o.cursorAt && this._adjustOffsetFromHelper( o.cursorAt ) ); 201 if ( o.cursorAt ) { 202 this._adjustOffsetFromHelper( o.cursorAt ); 203 } 199 204 200 205 //Set a containment if given in the options … … 291 296 if ( ( this.options.revert === "invalid" && !dropped ) || 292 297 ( this.options.revert === "valid" && dropped ) || 293 this.options.revert === true || ( $.isFunction( this.options.revert )&&298 this.options.revert === true || ( typeof this.options.revert === "function" && 294 299 this.options.revert.call( this.element, dropped ) ) 295 300 ) { … … 363 368 364 369 var o = this.options, 365 helperIsFunction = $.isFunction( o.helper ),370 helperIsFunction = typeof o.helper === "function", 366 371 helper = helperIsFunction ? 367 372 $( o.helper.apply( this.element[ 0 ], [ event ] ) ) : … … 402 407 obj = obj.split( " " ); 403 408 } 404 if ( $.isArray( obj ) ) {409 if ( Array.isArray( obj ) ) { 405 410 obj = { left: +obj[ 0 ], top: +obj[ 1 ] || 0 }; 406 411 } … … 1111 1116 inst.snapElements[ i ].item ) ) { 1112 1117 if ( inst.snapElements[ i ].snapping ) { 1113 ( inst.options.snap.release &&1118 if ( inst.options.snap.release ) { 1114 1119 inst.options.snap.release.call( 1115 1120 inst.element, 1116 1121 event, 1117 1122 $.extend( inst._uiHash(), { snapItem: inst.snapElements[ i ].item } ) 1118 ) ); 1123 ); 1124 } 1119 1125 } 1120 1126 inst.snapElements[ i ].snapping = false; … … 1187 1193 1188 1194 if ( !inst.snapElements[ i ].snapping && ( ts || bs || ls || rs || first ) ) { 1189 ( inst.options.snap.snap &&1195 if ( inst.options.snap.snap ) { 1190 1196 inst.options.snap.snap.call( 1191 1197 inst.element, … … 1193 1199 $.extend( inst._uiHash(), { 1194 1200 snapItem: inst.snapElements[ i ].item 1195 } ) ) ); 1201 } ) ); 1202 } 1196 1203 } 1197 1204 inst.snapElements[ i ].snapping = ( ts || bs || ls || rs || first ); … … 1211 1218 } ); 1212 1219 1213 if ( !group.length ) { return; } 1220 if ( !group.length ) { 1221 return; 1222 } 1214 1223 1215 1224 min = parseInt( $( group[ 0 ] ).css( "zIndex" ), 10 ) || 0; … … 1242 1251 return $.ui.draggable; 1243 1252 1244 } ) );1253 } ); -
trunk/src/js/_enqueues/vendor/jquery/ui/droppable.js
r49134 r51794 1 1 /*! 2 * jQuery UI Droppable 1.1 2.12 * jQuery UI Droppable 1.13.0-rc.2 3 3 * http://jqueryui.com 4 4 * … … 15 15 16 16 ( function( factory ) { 17 "use strict"; 18 17 19 if ( typeof define === "function" && define.amd ) { 18 20 … … 29 31 factory( jQuery ); 30 32 } 31 }( function( $ ) { 33 } )( function( $ ) { 34 "use strict"; 32 35 33 36 $.widget( "ui.droppable", { 34 version: "1.1 2.1",37 version: "1.13.0-rc.2", 35 38 widgetEventPrefix: "drop", 36 39 options: { … … 57 60 this.isout = true; 58 61 59 this.accept = $.isFunction( accept )? accept : function( d ) {62 this.accept = typeof accept === "function" ? accept : function( d ) { 60 63 return d.is( accept ); 61 64 }; … … 80 83 this._addToManager( o.scope ); 81 84 82 o.addClasses && this._addClass( "ui-droppable" ); 85 if ( o.addClasses ) { 86 this._addClass( "ui-droppable" ); 87 } 83 88 84 89 }, … … 109 114 110 115 if ( key === "accept" ) { 111 this.accept = $.isFunction( value )? value : function( d ) {116 this.accept = typeof value === "function" ? value : function( d ) { 112 117 return d.is( value ); 113 118 }; … … 199 204 inst.element[ 0 ], ( draggable.currentItem || draggable.element ) 200 205 ) && 201 intersect(206 $.ui.intersect( 202 207 draggable, 203 208 $.extend( inst, { offset: inst.element.offset() } ), … … 206 211 ) { 207 212 childrenIntersection = true; 208 return false; } 213 return false; 214 } 209 215 } ); 210 216 if ( childrenIntersection ) { … … 235 241 236 242 // Extension points just to make backcompat sane and avoid duplicating logic 237 // TODO: Remove in 1.1 3along with call to it below243 // TODO: Remove in 1.14 along with call to it below 238 244 _addHoverClass: function() { 239 245 this._addClass( "ui-droppable-hover" ); … … 253 259 } ); 254 260 255 var intersect =$.ui.intersect = ( function() {261 $.ui.intersect = ( function() { 256 262 function isOverAxis( x, reference, size ) { 257 263 return ( x >= reference ) && ( x < ( reference + size ) ); … … 361 367 } 362 368 if ( !this.options.disabled && this.visible && 363 intersect( draggable, this, this.options.tolerance, event ) ) {369 $.ui.intersect( draggable, this, this.options.tolerance, event ) ) { 364 370 dropped = this._drop.call( this, event ) || dropped; 365 371 } … … 402 408 403 409 var parentInstance, scope, parent, 404 intersects = intersect( draggable, this, this.options.tolerance, event ),410 intersects = $.ui.intersect( draggable, this, this.options.tolerance, event ), 405 411 c = !intersects && this.isover ? 406 412 "isout" : … … 494 500 return $.ui.droppable; 495 501 496 } ) );502 } ); -
trunk/src/js/_enqueues/vendor/jquery/ui/effect-blind.js
r49134 r51794 1 1 /*! 2 * jQuery UI Effects Blind 1.1 2.12 * jQuery UI Effects Blind 1.13.0-rc.2 3 3 * http://jqueryui.com 4 4 * … … 15 15 16 16 ( function( factory ) { 17 "use strict"; 18 17 19 if ( typeof define === "function" && define.amd ) { 18 20 … … 27 29 factory( jQuery ); 28 30 } 29 }( function( $ ) { 31 } )( function( $ ) { 32 "use strict"; 30 33 31 34 return $.effects.define( "blind", "hide", function( options, done ) { … … 67 70 } ); 68 71 69 } ) );72 } ); -
trunk/src/js/_enqueues/vendor/jquery/ui/effect-bounce.js
r49134 r51794 1 1 /*! 2 * jQuery UI Effects Bounce 1.1 2.12 * jQuery UI Effects Bounce 1.13.0-rc.2 3 3 * http://jqueryui.com 4 4 * … … 15 15 16 16 ( function( factory ) { 17 "use strict"; 18 17 19 if ( typeof define === "function" && define.amd ) { 18 20 … … 27 29 factory( jQuery ); 28 30 } 29 }( function( $ ) { 31 } )( function( $ ) { 32 "use strict"; 30 33 31 34 return $.effects.define( "bounce", function( options, done ) { … … 107 110 } ); 108 111 109 } ) );112 } ); -
trunk/src/js/_enqueues/vendor/jquery/ui/effect-clip.js
r49134 r51794 1 1 /*! 2 * jQuery UI Effects Clip 1.1 2.12 * jQuery UI Effects Clip 1.13.0-rc.2 3 3 * http://jqueryui.com 4 4 * … … 15 15 16 16 ( function( factory ) { 17 "use strict"; 18 17 19 if ( typeof define === "function" && define.amd ) { 18 20 … … 27 29 factory( jQuery ); 28 30 } 29 }( function( $ ) { 31 } )( function( $ ) { 32 "use strict"; 30 33 31 34 return $.effects.define( "clip", "hide", function( options, done ) { … … 62 65 } ); 63 66 64 } ) );67 } ); -
trunk/src/js/_enqueues/vendor/jquery/ui/effect-drop.js
r49134 r51794 1 1 /*! 2 * jQuery UI Effects Drop 1.1 2.12 * jQuery UI Effects Drop 1.13.0-rc.2 3 3 * http://jqueryui.com 4 4 * … … 15 15 16 16 ( function( factory ) { 17 "use strict"; 18 17 19 if ( typeof define === "function" && define.amd ) { 18 20 … … 27 29 factory( jQuery ); 28 30 } 29 }( function( $ ) { 31 } )( function( $ ) { 32 "use strict"; 30 33 31 34 return $.effects.define( "drop", "hide", function( options, done ) { … … 66 69 } ); 67 70 68 } ) );71 } ); -
trunk/src/js/_enqueues/vendor/jquery/ui/effect-explode.js
r49134 r51794 1 1 /*! 2 * jQuery UI Effects Explode 1.1 2.12 * jQuery UI Effects Explode 1.13.0-rc.2 3 3 * http://jqueryui.com 4 4 * … … 10 10 //>>label: Explode Effect 11 11 //>>group: Effects 12 / / jscs:disable maximumLineLength12 /* eslint-disable max-len */ 13 13 //>>description: Explodes an element in all directions into n pieces. Implodes an element to its original wholeness. 14 / / jscs:enable maximumLineLength14 /* eslint-enable max-len */ 15 15 //>>docs: http://api.jqueryui.com/explode-effect/ 16 16 //>>demos: http://jqueryui.com/effect/ 17 17 18 18 ( function( factory ) { 19 "use strict"; 20 19 21 if ( typeof define === "function" && define.amd ) { 20 22 … … 29 31 factory( jQuery ); 30 32 } 31 }( function( $ ) { 33 } )( function( $ ) { 34 "use strict"; 32 35 33 36 return $.effects.define( "explode", "hide", function( options, done ) { … … 108 111 } ); 109 112 110 } ) );113 } ); -
trunk/src/js/_enqueues/vendor/jquery/ui/effect-fade.js
r49134 r51794 1 1 /*! 2 * jQuery UI Effects Fade 1.1 2.12 * jQuery UI Effects Fade 1.13.0-rc.2 3 3 * http://jqueryui.com 4 4 * … … 15 15 16 16 ( function( factory ) { 17 "use strict"; 18 17 19 if ( typeof define === "function" && define.amd ) { 18 20 … … 27 29 factory( jQuery ); 28 30 } 29 }( function( $ ) { 31 } )( function( $ ) { 32 "use strict"; 30 33 31 34 return $.effects.define( "fade", "toggle", function( options, done ) { … … 44 47 } ); 45 48 46 } ) );49 } ); -
trunk/src/js/_enqueues/vendor/jquery/ui/effect-fold.js
r49134 r51794 1 1 /*! 2 * jQuery UI Effects Fold 1.1 2.12 * jQuery UI Effects Fold 1.13.0-rc.2 3 3 * http://jqueryui.com 4 4 * … … 15 15 16 16 ( function( factory ) { 17 "use strict"; 18 17 19 if ( typeof define === "function" && define.amd ) { 18 20 … … 27 29 factory( jQuery ); 28 30 } 29 }( function( $ ) { 31 } )( function( $ ) { 32 "use strict"; 30 33 31 34 return $.effects.define( "fold", "hide", function( options, done ) { … … 86 89 } ); 87 90 88 } ) );91 } ); -
trunk/src/js/_enqueues/vendor/jquery/ui/effect-highlight.js
r49134 r51794 1 1 /*! 2 * jQuery UI Effects Highlight 1.1 2.12 * jQuery UI Effects Highlight 1.13.0-rc.2 3 3 * http://jqueryui.com 4 4 * … … 15 15 16 16 ( function( factory ) { 17 "use strict"; 18 17 19 if ( typeof define === "function" && define.amd ) { 18 20 … … 27 29 factory( jQuery ); 28 30 } 29 }( function( $ ) { 31 } )( function( $ ) { 32 "use strict"; 30 33 31 34 return $.effects.define( "highlight", "show", function( options, done ) { … … 54 57 } ); 55 58 56 } ) );59 } ); -
trunk/src/js/_enqueues/vendor/jquery/ui/effect-puff.js
r49134 r51794 1 1 /*! 2 * jQuery UI Effects Puff 1.1 2.12 * jQuery UI Effects Puff 1.13.0-rc.2 3 3 * http://jqueryui.com 4 4 * … … 15 15 16 16 ( function( factory ) { 17 "use strict"; 18 17 19 if ( typeof define === "function" && define.amd ) { 18 20 … … 28 30 factory( jQuery ); 29 31 } 30 }( function( $ ) { 32 } )( function( $ ) { 33 "use strict"; 31 34 32 35 return $.effects.define( "puff", "hide", function( options, done ) { … … 39 42 } ); 40 43 41 } ) );44 } ); -
trunk/src/js/_enqueues/vendor/jquery/ui/effect-pulsate.js
r49134 r51794 1 1 /*! 2 * jQuery UI Effects Pulsate 1.1 2.12 * jQuery UI Effects Pulsate 1.13.0-rc.2 3 3 * http://jqueryui.com 4 4 * … … 15 15 16 16 ( function( factory ) { 17 "use strict"; 18 17 19 if ( typeof define === "function" && define.amd ) { 18 20 … … 27 29 factory( jQuery ); 28 30 } 29 }( function( $ ) { 31 } )( function( $ ) { 32 "use strict"; 30 33 31 34 return $.effects.define( "pulsate", "show", function( options, done ) { … … 61 64 } ); 62 65 63 } ) );66 } ); -
trunk/src/js/_enqueues/vendor/jquery/ui/effect-scale.js
r49134 r51794 1 1 /*! 2 * jQuery UI Effects Scale 1.1 2.12 * jQuery UI Effects Scale 1.13.0-rc.2 3 3 * http://jqueryui.com 4 4 * … … 15 15 16 16 ( function( factory ) { 17 "use strict"; 18 17 19 if ( typeof define === "function" && define.amd ) { 18 20 … … 28 30 factory( jQuery ); 29 31 } 30 }( function( $ ) { 32 } )( function( $ ) { 33 "use strict"; 31 34 32 35 return $.effects.define( "scale", function( options, done ) { … … 53 56 } ); 54 57 55 } ) );58 } ); -
trunk/src/js/_enqueues/vendor/jquery/ui/effect-shake.js
r49134 r51794 1 1 /*! 2 * jQuery UI Effects Shake 1.1 2.12 * jQuery UI Effects Shake 1.13.0-rc.2 3 3 * http://jqueryui.com 4 4 * … … 15 15 16 16 ( function( factory ) { 17 "use strict"; 18 17 19 if ( typeof define === "function" && define.amd ) { 18 20 … … 27 29 factory( jQuery ); 28 30 } 29 }( function( $ ) { 31 } )( function( $ ) { 32 "use strict"; 30 33 31 34 return $.effects.define( "shake", function( options, done ) { … … 71 74 } ); 72 75 73 } ) );76 } ); -
trunk/src/js/_enqueues/vendor/jquery/ui/effect-size.js
r49134 r51794 1 1 /*! 2 * jQuery UI Effects Size 1.1 2.12 * jQuery UI Effects Size 1.13.0-rc.2 3 3 * http://jqueryui.com 4 4 * … … 15 15 16 16 ( function( factory ) { 17 "use strict"; 18 17 19 if ( typeof define === "function" && define.amd ) { 18 20 … … 27 29 factory( jQuery ); 28 30 } 29 }( function( $ ) { 31 } )( function( $ ) { 32 "use strict"; 30 33 31 34 return $.effects.define( "size", function( options, done ) { … … 105 108 to.left = ( original.outerWidth - to.outerWidth ) * baseline.x + pos.left; 106 109 } 110 delete from.outerHeight; 111 delete from.outerWidth; 107 112 element.css( from ); 108 113 … … 188 193 } ); 189 194 190 } ) );195 } ); -
trunk/src/js/_enqueues/vendor/jquery/ui/effect-slide.js
r49134 r51794 1 1 /*! 2 * jQuery UI Effects Slide 1.1 2.12 * jQuery UI Effects Slide 1.13.0-rc.2 3 3 * http://jqueryui.com 4 4 * … … 15 15 16 16 ( function( factory ) { 17 "use strict"; 18 17 19 if ( typeof define === "function" && define.amd ) { 18 20 … … 27 29 factory( jQuery ); 28 30 } 29 }( function( $ ) { 31 } )( function( $ ) { 32 "use strict"; 30 33 31 34 return $.effects.define( "slide", "show", function( options, done ) { … … 73 76 } ); 74 77 75 } ) );78 } ); -
trunk/src/js/_enqueues/vendor/jquery/ui/effect-transfer.js
r49134 r51794 1 1 /*! 2 * jQuery UI Effects Transfer 1.1 2.12 * jQuery UI Effects Transfer 1.13.0-rc.2 3 3 * http://jqueryui.com 4 4 * … … 15 15 16 16 ( function( factory ) { 17 "use strict"; 18 17 19 if ( typeof define === "function" && define.amd ) { 18 20 … … 27 29 factory( jQuery ); 28 30 } 29 }( function( $ ) { 31 } )( function( $ ) { 32 "use strict"; 30 33 31 34 var effect; … … 37 40 return effect; 38 41 39 } ) );42 } ); -
trunk/src/js/_enqueues/vendor/jquery/ui/effect.js
r49134 r51794 1 1 /*! 2 * jQuery UI Effects 1.1 2.12 * jQuery UI Effects 1.13.0-rc.2 3 3 * http://jqueryui.com 4 4 * … … 10 10 //>>label: Effects Core 11 11 //>>group: Effects 12 / / jscs:disable maximumLineLength12 /* eslint-disable max-len */ 13 13 //>>description: Extends the internal jQuery effects. Includes morphing and easing. Required by all other effects. 14 / / jscs:enable maximumLineLength14 /* eslint-enable max-len */ 15 15 //>>docs: http://api.jqueryui.com/category/effects-core/ 16 16 //>>demos: http://jqueryui.com/effect/ 17 17 18 18 ( function( factory ) { 19 "use strict"; 20 19 21 if ( typeof define === "function" && define.amd ) { 20 22 … … 26 28 factory( jQuery ); 27 29 } 28 }( function( $ ) { 30 } )( function( $ ) { 31 "use strict"; 29 32 30 33 // Include version.js 31 34 $.ui = $.ui || {}; 32 $.ui.version = "1.12.1"; 33 34 var dataSpace = "ui-effects-", 35 dataSpaceStyle = "ui-effects-style", 36 dataSpaceAnimated = "ui-effects-animated", 37 38 // Create a local jQuery because jQuery Color relies on it and the 39 // global may not exist with AMD and a custom build (#10199) 40 jQuery = $; 41 42 $.effects = { 43 effect: {} 44 }; 35 $.ui.version = "1.13.0-rc.2"; 36 37 // Source: jquery-var-for-color.js 38 // Create a local jQuery because jQuery Color relies on it and the 39 // global may not exist with AMD and a custom build (#10199). 40 // This module is a noop if used as a regular AMD module. 41 // eslint-disable-next-line no-unused-vars 42 var jQuery = $; 43 45 44 46 45 /*! 47 * jQuery Color Animations v2. 1.246 * jQuery Color Animations v2.2.0 48 47 * https://github.com/jquery/jquery-color 49 48 * 50 * Copyright 2014 jQueryFoundation and other contributors49 * Copyright OpenJS Foundation and other contributors 51 50 * Released under the MIT license. 52 51 * http://jquery.org/license 53 52 * 54 * Date: Wed Jan 16 08:47:09 2013 -060053 * Date: Sun May 10 09:02:36 2020 +0200 55 54 */ 56 ( function( jQuery, undefined ) {57 55 58 56 var stepHooks = "backgroundColor borderBottomColor borderLeftColor borderRightColor " + 59 57 "borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor", 60 58 61 // Plusequals test for += 100 -= 100 59 class2type = {}, 60 toString = class2type.toString, 61 62 // plusequals test for += 100 -= 100 62 63 rplusequals = /^([\-+])=\s*(\d+\.?\d*)/, 63 64 64 // Aset of RE's that can match strings and generate color tuples.65 // a set of RE's that can match strings and generate color tuples. 65 66 stringParsers = [ { 66 67 re: /rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/, … … 85 86 }, { 86 87 87 // This regex ignores A-F because it's compared against an already lowercased string88 re: /#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2}) /,88 // this regex ignores A-F because it's compared against an already lowercased string 89 re: /#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})?/, 89 90 parse: function( execResult ) { 90 91 return [ 91 92 parseInt( execResult[ 1 ], 16 ), 92 93 parseInt( execResult[ 2 ], 16 ), 93 parseInt( execResult[ 3 ], 16 ) 94 parseInt( execResult[ 3 ], 16 ), 95 execResult[ 4 ] ? 96 ( parseInt( execResult[ 4 ], 16 ) / 255 ).toFixed( 2 ) : 97 1 94 98 ]; 95 99 } 96 100 }, { 97 101 98 // This regex ignores A-F because it's compared against an already lowercased string99 re: /#([a-f0-9])([a-f0-9])([a-f0-9]) /,102 // this regex ignores A-F because it's compared against an already lowercased string 103 re: /#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?/, 100 104 parse: function( execResult ) { 101 105 return [ 102 106 parseInt( execResult[ 1 ] + execResult[ 1 ], 16 ), 103 107 parseInt( execResult[ 2 ] + execResult[ 2 ], 16 ), 104 parseInt( execResult[ 3 ] + execResult[ 3 ], 16 ) 108 parseInt( execResult[ 3 ] + execResult[ 3 ], 16 ), 109 execResult[ 4 ] ? 110 ( parseInt( execResult[ 4 ] + execResult[ 4 ], 16 ) / 255 ) 111 .toFixed( 2 ) : 112 1 105 113 ]; 106 114 } … … 118 126 } ], 119 127 120 // JQuery.Color( )128 // jQuery.Color( ) 121 129 color = jQuery.Color = function( color, green, blue, alpha ) { 122 130 return new jQuery.Color.fn.parse( color, green, blue, alpha ); … … 172 180 support = color.support = {}, 173 181 174 // Element for support tests182 // element for support tests 175 183 supportElem = jQuery( "<p>" )[ 0 ], 176 184 177 // Colors = jQuery.Color.names185 // colors = jQuery.Color.names 178 186 colors, 179 187 180 // Local aliases of functions called often188 // local aliases of functions called often 181 189 each = jQuery.each; 182 190 183 // Determine rgba support immediately191 // determine rgba support immediately 184 192 supportElem.style.cssText = "background-color:rgba(1,1,1,.5)"; 185 193 support.rgba = supportElem.style.backgroundColor.indexOf( "rgba" ) > -1; 186 194 187 // Define cache name and alpha properties195 // define cache name and alpha properties 188 196 // for rgba and hsla spaces 189 197 each( spaces, function( spaceName, space ) { … … 196 204 } ); 197 205 206 // Populate the class2type map 207 jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ), 208 function( _i, name ) { 209 class2type[ "[object " + name + "]" ] = name.toLowerCase(); 210 } ); 211 212 function getType( obj ) { 213 if ( obj == null ) { 214 return obj + ""; 215 } 216 217 return typeof obj === "object" ? 218 class2type[ toString.call( obj ) ] || "object" : 219 typeof obj; 220 } 221 198 222 function clamp( value, prop, allowEmpty ) { 199 223 var type = propTypes[ prop.type ] || {}; … … 214 238 if ( type.mod ) { 215 239 216 // We add mod before modding to make sure that negatives values240 // we add mod before modding to make sure that negatives values 217 241 // get converted properly: -10 -> 350 218 242 return ( value + type.mod ) % type.mod; 219 243 } 220 244 221 // For now all property types without mod have min and max222 return 0 > value ? 0 : type.max < value ? type.max : value;245 // for now all property types without mod have min and max 246 return Math.min( type.max, Math.max( 0, value ) ); 223 247 } 224 248 … … 229 253 string = string.toLowerCase(); 230 254 231 each( stringParsers, function( i, parser ) {255 each( stringParsers, function( _i, parser ) { 232 256 var parsed, 233 257 match = parser.re.exec( string ), … … 238 262 parsed = inst[ spaceName ]( values ); 239 263 240 // If this was an rgba parse the assignment might happen twice264 // if this was an rgba parse the assignment might happen twice 241 265 // oh well.... 242 266 inst[ spaces[ spaceName ].cache ] = parsed[ spaces[ spaceName ].cache ]; 243 267 rgba = inst._rgba = parsed._rgba; 244 268 245 // Exit each( stringParsers ) here because we matched269 // exit each( stringParsers ) here because we matched 246 270 return false; 247 271 } … … 251 275 if ( rgba.length ) { 252 276 253 // If this came from a parsed string, force "transparent" when alpha is 0277 // if this came from a parsed string, force "transparent" when alpha is 0 254 278 // chrome, (and maybe others) return "transparent" as rgba(0,0,0,0) 255 279 if ( rgba.join() === "0,0,0,0" ) { … … 259 283 } 260 284 261 // Named colors285 // named colors 262 286 return colors[ string ]; 263 287 } … … 275 299 276 300 var inst = this, 277 type = jQuery.type( red ),301 type = getType( red ), 278 302 rgba = this._rgba = []; 279 303 280 // More than 1 argument specified - assume ( red, green, blue, alpha )304 // more than 1 argument specified - assume ( red, green, blue, alpha ) 281 305 if ( green !== undefined ) { 282 306 red = [ red, green, blue, alpha ]; … … 289 313 290 314 if ( type === "array" ) { 291 each( spaces.rgba.props, function( key, prop ) {315 each( spaces.rgba.props, function( _key, prop ) { 292 316 rgba[ prop.idx ] = clamp( red[ prop.idx ], prop ); 293 317 } ); … … 297 321 if ( type === "object" ) { 298 322 if ( red instanceof color ) { 299 each( spaces, function( spaceName, space ) {323 each( spaces, function( _spaceName, space ) { 300 324 if ( red[ space.cache ] ) { 301 325 inst[ space.cache ] = red[ space.cache ].slice(); … … 303 327 } ); 304 328 } else { 305 each( spaces, function( spaceName, space ) {329 each( spaces, function( _spaceName, space ) { 306 330 var cache = space.cache; 307 331 each( space.props, function( key, prop ) { 308 332 309 // If the cache doesn't exist, and we know how to convert333 // if the cache doesn't exist, and we know how to convert 310 334 if ( !inst[ cache ] && space.to ) { 311 335 312 // If the value was null, we don't need to copy it336 // if the value was null, we don't need to copy it 313 337 // if the key was alpha, we don't need to copy it either 314 338 if ( key === "alpha" || red[ key ] == null ) { … … 318 342 } 319 343 320 // This is the only case where we allow nulls for ALL properties.344 // this is the only case where we allow nulls for ALL properties. 321 345 // call clamp with alwaysAllowEmpty 322 346 inst[ cache ][ prop.idx ] = clamp( red[ key ], prop, true ); 323 347 } ); 324 348 325 // Everything defined but alpha? 326 if ( inst[ cache ] && 327 jQuery.inArray( null, inst[ cache ].slice( 0, 3 ) ) < 0 ) { 328 329 // Use the default of 1 330 inst[ cache ][ 3 ] = 1; 349 // everything defined but alpha? 350 if ( inst[ cache ] && jQuery.inArray( null, inst[ cache ].slice( 0, 3 ) ) < 0 ) { 351 352 // use the default of 1 353 if ( inst[ cache ][ 3 ] == null ) { 354 inst[ cache ][ 3 ] = 1; 355 } 356 331 357 if ( space.from ) { 332 358 inst._rgba = space.from( inst[ cache ] ); … … 378 404 379 405 end = end[ space.cache ]; 380 each( space.props, function( key, prop ) {406 each( space.props, function( _key, prop ) { 381 407 var index = prop.idx, 382 408 startValue = start[ index ], … … 384 410 type = propTypes[ prop.type ] || {}; 385 411 386 // If null, don't override start value412 // if null, don't override start value 387 413 if ( endValue === null ) { 388 414 return; 389 415 } 390 416 391 // If null - use end417 // if null - use end 392 418 if ( startValue === null ) { 393 419 result[ index ] = endValue; … … 407 433 blend: function( opaque ) { 408 434 409 // If we are already opaque - return ourself435 // if we are already opaque - return ourself 410 436 if ( this._rgba[ 3 ] === 1 ) { 411 437 return this; … … 423 449 var prefix = "rgba(", 424 450 rgba = jQuery.map( this._rgba, function( v, i ) { 425 return v == null ? ( i > 2 ? 1 : 0 ) : v; 451 if ( v != null ) { 452 return v; 453 } 454 return i > 2 ? 1 : 0; 426 455 } ); 427 456 … … 440 469 } 441 470 442 // Catch 1 and 2471 // catch 1 and 2 443 472 if ( i && i < 3 ) { 444 473 v = Math.round( v * 100 ) + "%"; … … 463 492 return "#" + jQuery.map( rgba, function( v ) { 464 493 465 // Default to 0 when nulls exist494 // default to 0 when nulls exist 466 495 v = ( v || 0 ).toString( 16 ); 467 496 return v.length === 1 ? "0" + v : v; … … 474 503 color.fn.parse.prototype = color.fn; 475 504 476 // Hsla conversions adapted from:505 // hsla conversions adapted from: 477 506 // https://code.google.com/p/maashaack/source/browse/packages/graphics/trunk/src/graphics/colors/HUE2RGB.as?r=5021 478 507 … … 516 545 } 517 546 518 // Chroma (diff) == 0 means greyscale which, by definition, saturation = 0%547 // chroma (diff) == 0 means greyscale which, by definition, saturation = 0% 519 548 // otherwise, saturation is based on the ratio of chroma (diff) to lightness (add) 520 549 if ( diff === 0 ) { … … 547 576 }; 548 577 578 549 579 each( spaces, function( spaceName, space ) { 550 580 var props = space.props, … … 553 583 from = space.from; 554 584 555 // Makes rgba() and hsla()585 // makes rgba() and hsla() 556 586 color.fn[ spaceName ] = function( value ) { 557 587 558 // Generate a cache for this space if it doesn't exist588 // generate a cache for this space if it doesn't exist 559 589 if ( to && !this[ cache ] ) { 560 590 this[ cache ] = to( this._rgba ); … … 565 595 566 596 var ret, 567 type = jQuery.type( value ),597 type = getType( value ), 568 598 arr = ( type === "array" || type === "object" ) ? value : arguments, 569 599 local = this[ cache ].slice(); … … 586 616 }; 587 617 588 // Makes red() green() blue() alpha() hue() saturation() lightness()618 // makes red() green() blue() alpha() hue() saturation() lightness() 589 619 each( props, function( key, prop ) { 590 620 591 // Alpha is included in more than one space621 // alpha is included in more than one space 592 622 if ( color.fn[ key ] ) { 593 623 return; 594 624 } 595 625 color.fn[ key ] = function( value ) { 596 var vtype = jQuery.type( value ), 597 fn = ( key === "alpha" ? ( this._hsla ? "hsla" : "rgba" ) : spaceName ), 598 local = this[ fn ](), 599 cur = local[ prop.idx ], 600 match; 626 var local, cur, match, fn, 627 vtype = getType( value ); 628 629 if ( key === "alpha" ) { 630 fn = this._hsla ? "hsla" : "rgba"; 631 } else { 632 fn = spaceName; 633 } 634 local = this[ fn ](); 635 cur = local[ prop.idx ]; 601 636 602 637 if ( vtype === "undefined" ) { … … 606 641 if ( vtype === "function" ) { 607 642 value = value.call( this, cur ); 608 vtype = jQuery.type( value );643 vtype = getType( value ); 609 644 } 610 645 if ( value == null && prop.empty ) { … … 623 658 } ); 624 659 625 // Add cssHook and .fx.step function for each named hook.660 // add cssHook and .fx.step function for each named hook. 626 661 // accept a space separated string of properties 627 662 color.hook = function( hook ) { 628 663 var hooks = hook.split( " " ); 629 each( hooks, function( i, hook ) {664 each( hooks, function( _i, hook ) { 630 665 jQuery.cssHooks[ hook ] = { 631 666 set: function( elem, value ) { … … 633 668 backgroundColor = ""; 634 669 635 if ( value !== "transparent" && ( jQuery.type( value ) !== "string" || 636 ( parsed = stringParse( value ) ) ) ) { 670 if ( value !== "transparent" && ( getType( value ) !== "string" || ( parsed = stringParse( value ) ) ) ) { 637 671 value = color( parsed || value ); 638 672 if ( !support.rgba && value._rgba[ 3 ] !== 1 ) { … … 660 694 } catch ( e ) { 661 695 662 // Wrapped to prevent IE from throwing errors on "invalid" values like 663 // 'auto' or 'inherit' 696 // wrapped to prevent IE from throwing errors on "invalid" values like 'auto' or 'inherit' 664 697 } 665 698 } … … 683 716 var expanded = {}; 684 717 685 each( [ "Top", "Right", "Bottom", "Left" ], function( i, part ) {718 each( [ "Top", "Right", "Bottom", "Left" ], function( _i, part ) { 686 719 expanded[ "border" + part + "Color" ] = value; 687 720 } ); … … 719 752 }; 720 753 721 } )( jQuery ); 754 755 var dataSpace = "ui-effects-", 756 dataSpaceStyle = "ui-effects-style", 757 dataSpaceAnimated = "ui-effects-animated"; 758 759 $.effects = { 760 effect: {} 761 }; 722 762 723 763 /******************************************************************************/ … … 751 791 ); 752 792 793 function camelCase( string ) { 794 return string.replace( /-([\da-z])/gi, function( all, letter ) { 795 return letter.toUpperCase(); 796 } ); 797 } 798 753 799 function getElementStyles( elem ) { 754 800 var key, len, … … 763 809 key = style[ len ]; 764 810 if ( typeof style[ key ] === "string" ) { 765 styles[ $.camelCase( key ) ] = style[ key ];811 styles[ camelCase( key ) ] = style[ key ]; 766 812 } 767 813 } … … 937 983 ( function() { 938 984 939 if ( $.expr && $.expr. filters && $.expr.filters.animated ) {940 $.expr. filters.animated = ( function( orig ) {985 if ( $.expr && $.expr.pseudos && $.expr.pseudos.animated ) { 986 $.expr.pseudos.animated = ( function( orig ) { 941 987 return function( elem ) { 942 988 return !!$( elem ).data( dataSpaceAnimated ) || orig( elem ); 943 989 }; 944 } )( $.expr. filters.animated );990 } )( $.expr.pseudos.animated ); 945 991 } 946 992 … … 1011 1057 // https://bugzilla.mozilla.org/show_bug.cgi?id=561664 1012 1058 try { 1059 // eslint-disable-next-line no-unused-expressions 1013 1060 active.id; 1014 1061 } catch ( e ) { … … 1073 1120 1074 1121 $.extend( $.effects, { 1075 version: "1.1 2.1",1122 version: "1.13.0-rc.2", 1076 1123 1077 1124 define: function( name, mode, effect ) { … … 1289 1336 1290 1337 // Catch (effect, callback) 1291 if ( $.isFunction( options )) {1338 if ( typeof options === "function" ) { 1292 1339 callback = options; 1293 1340 speed = null; … … 1303 1350 1304 1351 // Catch (effect, options, callback) 1305 if ( $.isFunction( speed )) {1352 if ( typeof speed === "function" ) { 1306 1353 callback = speed; 1307 1354 speed = null; … … 1337 1384 1338 1385 // Complete callback 1339 if ( $.isFunction( option )) {1386 if ( typeof option === "function" ) { 1340 1387 return true; 1341 1388 } … … 1364 1411 normalizedMode = $.effects.mode( el, mode ) || defaultMode; 1365 1412 1366 // Sentinel for duck-punching the :animated ps uedo-selector1413 // Sentinel for duck-punching the :animated pseudo-selector 1367 1414 el.data( dataSpaceAnimated, true ); 1368 1415 … … 1372 1419 modes.push( normalizedMode ); 1373 1420 1374 // See $.uiBackCompat inside of run() for removal of defaultMode in 1.1 31421 // See $.uiBackCompat inside of run() for removal of defaultMode in 1.14 1375 1422 if ( defaultMode && ( normalizedMode === "show" || 1376 1423 ( normalizedMode === defaultMode && normalizedMode === "hide" ) ) ) { … … 1382 1429 } 1383 1430 1384 if ( $.isFunction( next )) {1431 if ( typeof next === "function" ) { 1385 1432 next(); 1386 1433 } … … 1417 1464 1418 1465 function done() { 1419 if ( $.isFunction( complete )) {1466 if ( typeof complete === "function" ) { 1420 1467 complete.call( elem[ 0 ] ); 1421 1468 } 1422 1469 1423 if ( $.isFunction( next )) {1470 if ( typeof next === "function" ) { 1424 1471 next(); 1425 1472 } … … 1530 1577 }, 1531 1578 startPosition = element.offset(), 1532 transfer = $( "<div class='ui-effects-transfer'></div>" ) 1533 .appendTo( "body" ) 1534 .addClass( options.className ) 1535 .css( { 1536 top: startPosition.top - fixTop, 1537 left: startPosition.left - fixLeft, 1538 height: element.innerHeight(), 1539 width: element.innerWidth(), 1540 position: targetFixed ? "fixed" : "absolute" 1541 } ) 1542 .animate( animation, options.duration, options.easing, function() { 1543 transfer.remove(); 1544 if ( $.isFunction( done ) ) { 1545 done(); 1546 } 1547 } ); 1579 transfer = $( "<div class='ui-effects-transfer'></div>" ); 1580 1581 transfer 1582 .appendTo( "body" ) 1583 .addClass( options.className ) 1584 .css( { 1585 top: startPosition.top - fixTop, 1586 left: startPosition.left - fixLeft, 1587 height: element.innerHeight(), 1588 width: element.innerWidth(), 1589 position: targetFixed ? "fixed" : "absolute" 1590 } ) 1591 .animate( animation, options.duration, options.easing, function() { 1592 transfer.remove(); 1593 if ( typeof done === "function" ) { 1594 done(); 1595 } 1596 } ); 1548 1597 } 1549 1598 } ); … … 1637 1686 return $.effects; 1638 1687 1639 } ) );1688 } ); -
trunk/src/js/_enqueues/vendor/jquery/ui/menu.js
r49134 r51794 1 1 /*! 2 * jQuery UI Menu 1.1 2.12 * jQuery UI Menu 1.13.0-rc.2 3 3 * http://jqueryui.com 4 4 * … … 18 18 19 19 ( function( factory ) { 20 "use strict"; 21 20 22 if ( typeof define === "function" && define.amd ) { 21 23 … … 30 32 factory( jQuery ); 31 33 } 32 }( function( $ ) { 34 } )( function( $ ) { 35 "use strict"; 33 36 34 37 return $.widget( "ui.menu", { 35 version: "1.1 2.1",38 version: "1.13.0-rc.2", 36 39 defaultElement: "<ul>", 37 40 delay: 300, … … 60 63 // as the event bubbles up through nested menus 61 64 this.mouseHandled = false; 65 this.lastMousePosition = { x: null, y: null }; 62 66 this.element 63 67 .uniqueId() … … 74 78 "mousedown .ui-menu-item": function( event ) { 75 79 event.preventDefault(); 80 81 this._activateItem( event ); 76 82 }, 77 83 "click .ui-menu-item": function( event ) { … … 103 109 } 104 110 }, 105 "mouseenter .ui-menu-item": function( event ) { 106 107 // Ignore mouse events while typeahead is active, see #10458. 108 // Prevents focusing the wrong item when typeahead causes a scroll while the mouse 109 // is over an item in the menu 110 if ( this.previousFilter ) { 111 return; 112 } 113 114 var actualTarget = $( event.target ).closest( ".ui-menu-item" ), 115 target = $( event.currentTarget ); 116 117 // Ignore bubbled events on parent items, see #11641 118 if ( actualTarget[ 0 ] !== target[ 0 ] ) { 119 return; 120 } 121 122 // Remove ui-state-active class from siblings of the newly focused menu item 123 // to avoid a jump caused by adjacent elements both having a class with a border 124 this._removeClass( target.siblings().children( ".ui-state-active" ), 125 null, "ui-state-active" ); 126 this.focus( event, target ); 127 }, 111 "mouseenter .ui-menu-item": "_activateItem", 112 "mousemove .ui-menu-item": "_activateItem", 128 113 mouseleave: "collapseAll", 129 114 "mouseleave .ui-menu": "collapseAll", … … 132 117 // If there's already an active item, keep it active 133 118 // If not, activate the first item 134 var item = this.active || this. element.find( this.options.items ).eq( 0);119 var item = this.active || this._menuItems().first(); 135 120 136 121 if ( !keepActiveItem ) { … … 158 143 click: function( event ) { 159 144 if ( this._closeOnDocumentClick( event ) ) { 160 this.collapseAll( event );145 this.collapseAll( event, true ); 161 146 } 162 147 … … 165 150 } 166 151 } ); 152 }, 153 154 _activateItem: function( event ) { 155 156 // Ignore mouse events while typeahead is active, see #10458. 157 // Prevents focusing the wrong item when typeahead causes a scroll while the mouse 158 // is over an item in the menu 159 if ( this.previousFilter ) { 160 return; 161 } 162 163 // If the mouse didn't actually move, but the page was scrolled, ignore the event (#9356) 164 if ( event.clientX === this.lastMousePosition.x && 165 event.clientY === this.lastMousePosition.y ) { 166 return; 167 } 168 169 this.lastMousePosition = { 170 x: event.clientX, 171 y: event.clientY 172 }; 173 174 var actualTarget = $( event.target ).closest( ".ui-menu-item" ), 175 target = $( event.currentTarget ); 176 177 // Ignore bubbled events on parent items, see #11641 178 if ( actualTarget[ 0 ] !== target[ 0 ] ) { 179 return; 180 } 181 182 // If the item is already active, there's nothing to do 183 if ( target.is( ".ui-state-active" ) ) { 184 return; 185 } 186 187 // Remove ui-state-active class from siblings of the newly focused menu item 188 // to avoid a jump caused by adjacent elements both having a class with a border 189 this._removeClass( target.siblings().children( ".ui-state-active" ), 190 null, "ui-state-active" ); 191 this.focus( event, target ); 167 192 }, 168 193 … … 498 523 499 524 this.activeMenu = currentMenu; 500 }, this.delay );525 }, all ? 0 : this.delay ); 501 526 }, 502 527 … … 534 559 535 560 expand: function( event ) { 536 var newItem = this.active && 537 this.active 538 .children( ".ui-menu " ) 539 .find( this.options.items ) 540 .first(); 561 var newItem = this.active && this._menuItems( this.active.children( ".ui-menu" ) ).first(); 541 562 542 563 if ( newItem && newItem.length ) { … … 564 585 isLastItem: function() { 565 586 return this.active && !this.active.nextAll( ".ui-menu-item" ).length; 587 }, 588 589 _menuItems: function( menu ) { 590 return ( menu || this.element ) 591 .find( this.options.items ) 592 .filter( ".ui-menu-item" ); 566 593 }, 567 594 … … 572 599 next = this.active 573 600 [ direction === "first" ? "prevAll" : "nextAll" ]( ".ui-menu-item" ) 574 . eq( -1);601 .last(); 575 602 } else { 576 603 next = this.active 577 604 [ direction + "All" ]( ".ui-menu-item" ) 578 . eq( 0);605 .first(); 579 606 } 580 607 } 581 608 if ( !next || !next.length || !this.active ) { 582 next = this. activeMenu.find( this.options.items)[ filter ]();609 next = this._menuItems( this.activeMenu )[ filter ](); 583 610 } 584 611 … … 598 625 if ( this._hasScroll() ) { 599 626 base = this.active.offset().top; 600 height = this.element.height(); 627 height = this.element.innerHeight(); 628 629 // jQuery 3.2 doesn't include scrollbars in innerHeight, add it back. 630 if ( $.fn.jquery.indexOf( "3.2." ) === 0 ) { 631 height += this.element[ 0 ].offsetHeight - this.element.outerHeight(); 632 } 633 601 634 this.active.nextAll( ".ui-menu-item" ).each( function() { 602 635 item = $( this ); … … 606 639 this.focus( event, item ); 607 640 } else { 608 this.focus( event, this. activeMenu.find( this.options.items)641 this.focus( event, this._menuItems( this.activeMenu ) 609 642 [ !this.active ? "first" : "last" ]() ); 610 643 } … … 622 655 if ( this._hasScroll() ) { 623 656 base = this.active.offset().top; 624 height = this.element.height(); 657 height = this.element.innerHeight(); 658 659 // jQuery 3.2 doesn't include scrollbars in innerHeight, add it back. 660 if ( $.fn.jquery.indexOf( "3.2." ) === 0 ) { 661 height += this.element[ 0 ].offsetHeight - this.element.outerHeight(); 662 } 663 625 664 this.active.prevAll( ".ui-menu-item" ).each( function() { 626 665 item = $( this ); … … 630 669 this.focus( event, item ); 631 670 } else { 632 this.focus( event, this. activeMenu.find( this.options.items).first() );671 this.focus( event, this._menuItems( this.activeMenu ).first() ); 633 672 } 634 673 }, … … 661 700 .filter( function() { 662 701 return regex.test( 663 $.trim( $( this ).children( ".ui-menu-item-wrapper" ).text() ) ); 702 String.prototype.trim.call( 703 $( this ).children( ".ui-menu-item-wrapper" ).text() ) ); 664 704 } ); 665 705 } 666 706 } ); 667 707 668 } ) );708 } ); -
trunk/src/js/_enqueues/vendor/jquery/ui/mouse.js
r49134 r51794 1 1 /*! 2 * jQuery UI Mouse 1.1 2.12 * jQuery UI Mouse 1.13.0-rc.2 3 3 * http://jqueryui.com 4 4 * … … 14 14 15 15 ( function( factory ) { 16 "use strict"; 17 16 18 if ( typeof define === "function" && define.amd ) { 17 19 … … 26 28 factory( jQuery ); 27 29 } 28 }( function( $ ) { 30 } )( function( $ ) { 31 "use strict"; 29 32 30 33 var mouseHandled = false; … … 34 37 35 38 return $.widget( "ui.mouse", { 36 version: "1.1 2.1",39 version: "1.13.0-rc.2", 37 40 options: { 38 41 cancel: "input, textarea, button, select, option", … … 79 82 80 83 // We may have missed mouseup (out of window) 81 ( this._mouseStarted && this._mouseUp( event ) ); 84 if ( this._mouseStarted ) { 85 this._mouseUp( event ); 86 } 82 87 83 88 this._mouseDownEvent = event; … … 172 177 this._mouseStarted = 173 178 ( this._mouseStart( this._mouseDownEvent, event ) !== false ); 174 ( this._mouseStarted ? this._mouseDrag( event ) : this._mouseUp( event ) ); 179 if ( this._mouseStarted ) { 180 this._mouseDrag( event ); 181 } else { 182 this._mouseUp( event ); 183 } 175 184 } 176 185 … … 219 228 _mouseDrag: function( /* event */ ) {}, 220 229 _mouseStop: function( /* event */ ) {}, 221 _mouseCapture: function( /* event */ ) { return true; } 230 _mouseCapture: function( /* event */ ) { 231 return true; 232 } 222 233 } ); 223 234 224 } ) );235 } ); -
trunk/src/js/_enqueues/vendor/jquery/ui/progressbar.js
r49134 r51794 1 1 /*! 2 * jQuery UI Progressbar 1.1 2.12 * jQuery UI Progressbar 1.13.0-rc.2 3 3 * http://jqueryui.com 4 4 * … … 10 10 //>>label: Progressbar 11 11 //>>group: Widgets 12 / / jscs:disable maximumLineLength12 /* eslint-disable max-len */ 13 13 //>>description: Displays a status indicator for loading state, standard percentage, and other progress indicators. 14 / / jscs:enable maximumLineLength14 /* eslint-enable max-len */ 15 15 //>>docs: http://api.jqueryui.com/progressbar/ 16 16 //>>demos: http://jqueryui.com/progressbar/ … … 20 20 21 21 ( function( factory ) { 22 "use strict"; 23 22 24 if ( typeof define === "function" && define.amd ) { 23 25 … … 32 34 factory( jQuery ); 33 35 } 34 }( function( $ ) { 36 } )( function( $ ) { 37 "use strict"; 35 38 36 39 return $.widget( "ui.progressbar", { 37 version: "1.1 2.1",40 version: "1.13.0-rc.2", 38 41 options: { 39 42 classes: { … … 175 178 } ); 176 179 177 } ) );180 } ); -
trunk/src/js/_enqueues/vendor/jquery/ui/resizable.js
r49134 r51794 1 1 /*! 2 * jQuery UI Resizable 1.1 2.12 * jQuery UI Resizable 1.13.0-rc.2 3 3 * http://jqueryui.com 4 4 * … … 18 18 19 19 ( function( factory ) { 20 "use strict"; 21 20 22 if ( typeof define === "function" && define.amd ) { 21 23 … … 31 33 factory( jQuery ); 32 34 } 33 }( function( $ ) { 35 } )( function( $ ) { 36 "use strict"; 34 37 35 38 $.widget( "ui.resizable", $.ui.mouse, { 36 version: "1.1 2.1",39 version: "1.13.0-rc.2", 37 40 widgetEventPrefix: "resize", 38 41 options: { … … 89 92 // if the element doesn't have the scroll set, see if it's possible to 90 93 // set the scroll 91 el[ scroll ] = 1; 92 has = ( el[ scroll ] > 0 ); 93 el[ scroll ] = 0; 94 try { 95 el[ scroll ] = 1; 96 has = ( el[ scroll ] > 0 ); 97 el[ scroll ] = 0; 98 } catch ( e ) { 99 100 // `el` might be a string, then setting `scroll` will throw 101 // an error in strict mode; ignore it. 102 } 94 103 return has; 95 104 }, … … 114 123 115 124 this.element.wrap( 116 $( "<div class='ui-wrapper' style='overflow: hidden;'></div>" ).css( { 125 $( "<div class='ui-wrapper'></div>" ).css( { 126 overflow: "hidden", 117 127 position: this.element.css( "position" ), 118 128 width: this.element.outerWidth(), … … 185 195 186 196 this._mouseDestroy(); 197 this._addedHandles.remove(); 187 198 188 199 var wrapper, … … 191 202 .removeData( "resizable" ) 192 203 .removeData( "ui-resizable" ) 193 .off( ".resizable" ) 194 .find( ".ui-resizable-handle" ) 195 .remove(); 204 .off( ".resizable" ); 196 205 }; 197 206 … … 223 232 this._removeHandles(); 224 233 this._setupHandles(); 234 break; 235 case "aspectRatio": 236 this._aspectRatio = !!value; 225 237 break; 226 238 default: … … 245 257 246 258 this._handles = $(); 259 this._addedHandles = $(); 247 260 if ( this.handles.constructor === String ) { 248 261 … … 256 269 for ( i = 0; i < n.length; i++ ) { 257 270 258 handle = $.trim( n[ i ] );271 handle = String.prototype.trim.call( n[ i ] ); 259 272 hname = "ui-resizable-" + handle; 260 273 axis = $( "<div>" ); … … 264 277 265 278 this.handles[ handle ] = ".ui-resizable-" + handle; 266 this.element.append( axis ); 279 if ( !this.element.children( this.handles[ handle ] ).length ) { 280 this.element.append( axis ); 281 this._addedHandles = this._addedHandles.add( axis ); 282 } 267 283 } 268 284 … … 330 346 331 347 _removeHandles: function() { 332 this._ handles.remove();348 this._addedHandles.remove(); 333 349 }, 334 350 … … 710 726 if ( this._helper ) { 711 727 712 this.helper = this.helper || $( "<div style='overflow:hidden;'></div>");728 this.helper = this.helper || $( "<div></div>" ).css( { overflow: "hidden" } ); 713 729 714 730 this._addClass( this.helper, this._helper ); … … 767 783 _propagate: function( n, event ) { 768 784 $.ui.plugin.call( this, n, [ event, this.ui() ] ); 769 ( n !== "resize" && this._trigger( n, event, this.ui() ) ); 785 if ( n !== "resize" ) { 786 this._trigger( n, event, this.ui() ); 787 } 770 788 }, 771 789 … … 888 906 ch = that.containerSize.height; 889 907 cw = that.containerSize.width; 890 width = ( that._hasScroll 891 height = ( that._hasScroll ( ce ) ? ce.scrollHeight : ch );908 width = ( that._hasScroll( ce, "left" ) ? ce.scrollWidth : cw ); 909 height = ( that._hasScroll( ce ) ? ce.scrollHeight : ch ); 892 910 893 911 that.parentData = { … … 1196 1214 return $.ui.resizable; 1197 1215 1198 } ) );1216 } ); -
trunk/src/js/_enqueues/vendor/jquery/ui/selectable.js
r49134 r51794 1 1 /*! 2 * jQuery UI Selectable 1.1 2.12 * jQuery UI Selectable 1.13.0-rc.2 3 3 * http://jqueryui.com 4 4 * … … 16 16 17 17 ( function( factory ) { 18 "use strict"; 19 18 20 if ( typeof define === "function" && define.amd ) { 19 21 … … 29 31 factory( jQuery ); 30 32 } 31 }( function( $ ) { 33 } )( function( $ ) { 34 "use strict"; 32 35 33 36 return $.widget( "ui.selectable", $.ui.mouse, { 34 version: "1.1 2.1",37 version: "1.13.0-rc.2", 35 38 options: { 36 39 appendTo: "body", … … 183 186 y2 = event.pageY; 184 187 185 if ( x1 > x2 ) { tmp = x2; x2 = x1; x1 = tmp; } 186 if ( y1 > y2 ) { tmp = y2; y2 = y1; y1 = tmp; } 188 if ( x1 > x2 ) { 189 tmp = x2; x2 = x1; x1 = tmp; 190 } 191 if ( y1 > y2 ) { 192 tmp = y2; y2 = y1; y1 = tmp; 193 } 187 194 this.helper.css( { left: x1, top: y1, width: x2 - x1, height: y2 - y1 } ); 188 195 … … 307 314 } ); 308 315 309 } ) );316 } ); -
trunk/src/js/_enqueues/vendor/jquery/ui/selectmenu.js
r49134 r51794 1 1 /*! 2 * jQuery UI Selectmenu 1.1 2.12 * jQuery UI Selectmenu 1.13.0-rc.2 3 3 * http://jqueryui.com 4 4 * … … 10 10 //>>label: Selectmenu 11 11 //>>group: Widgets 12 / / jscs:disable maximumLineLength12 /* eslint-disable max-len */ 13 13 //>>description: Duplicates and extends the functionality of a native HTML select element, allowing it to be customizable in behavior and appearance far beyond the limitations of a native select. 14 / / jscs:enable maximumLineLength14 /* eslint-enable max-len */ 15 15 //>>docs: http://api.jqueryui.com/selectmenu/ 16 16 //>>demos: http://jqueryui.com/selectmenu/ … … 20 20 21 21 ( function( factory ) { 22 "use strict"; 23 22 24 if ( typeof define === "function" && define.amd ) { 23 25 … … 33 35 factory( jQuery ); 34 36 } 35 }( function( $ ) { 37 } )( function( $ ) { 38 "use strict"; 36 39 37 40 return $.widget( "ui.selectmenu", [ $.ui.formResetMixin, { 38 version: "1.1 2.1",41 version: "1.13.0-rc.2", 39 42 defaultElement: "<select>", 40 43 options: { … … 91 94 this._on( this.labels, { 92 95 click: function( event ) { 93 this.button. focus();96 this.button.trigger( "focus" ); 94 97 event.preventDefault(); 95 98 } … … 419 422 420 423 if ( !$( event.target ).closest( ".ui-selectmenu-menu, #" + 421 $.ui.escapeSelector( this.ids.button ) ).length ) {424 $.escapeSelector( this.ids.button ) ).length ) { 422 425 this.close( event ); 423 426 } … … 650 653 data = []; 651 654 options.each( function( index, item ) { 655 if ( item.hidden ) { 656 return; 657 } 658 652 659 data.push( that._parseOption( $( item ), index ) ); 653 660 } ); … … 678 685 } ] ); 679 686 680 } ) );687 } ); -
trunk/src/js/_enqueues/vendor/jquery/ui/slider.js
r49134 r51794 1 1 /*! 2 * jQuery UI Slider 1.1 2.12 * jQuery UI Slider 1.13.0-rc.2 3 3 * http://jqueryui.com 4 4 * … … 18 18 19 19 ( function( factory ) { 20 "use strict"; 21 20 22 if ( typeof define === "function" && define.amd ) { 21 23 … … 31 33 factory( jQuery ); 32 34 } 33 }( function( $ ) { 35 } )( function( $ ) { 36 "use strict"; 34 37 35 38 return $.widget( "ui.slider", $.ui.mouse, { 36 version: "1.1 2.1",39 version: "1.13.0-rc.2", 37 40 widgetEventPrefix: "slide", 38 41 … … 131 134 } else if ( options.values.length && options.values.length !== 2 ) { 132 135 options.values = [ options.values[ 0 ], options.values[ 0 ] ]; 133 } else if ( $.isArray( options.values ) ) {136 } else if ( Array.isArray( options.values ) ) { 134 137 options.values = options.values.slice( 0 ); 135 138 } … … 394 397 395 398 if ( arguments.length ) { 396 if ( $.isArray( arguments[ 0 ] ) ) {399 if ( Array.isArray( arguments[ 0 ] ) ) { 397 400 vals = this.options.values; 398 401 newValues = arguments[ 0 ]; … … 428 431 } 429 432 430 if ( $.isArray( this.options.values ) ) {433 if ( Array.isArray( this.options.values ) ) { 431 434 valsLength = this.options.values.length; 432 435 } … … 748 751 } ); 749 752 750 } ) );753 } ); -
trunk/src/js/_enqueues/vendor/jquery/ui/sortable.js
r49134 r51794 1 1 /*! 2 * jQuery UI Sortable 1.1 2.12 * jQuery UI Sortable 1.13.0-rc.2 3 3 * http://jqueryui.com 4 4 * … … 16 16 17 17 ( function( factory ) { 18 "use strict"; 19 18 20 if ( typeof define === "function" && define.amd ) { 19 21 … … 29 31 factory( jQuery ); 30 32 } 31 }( function( $ ) { 33 } )( function( $ ) { 34 "use strict"; 32 35 33 36 return $.widget( "ui.sortable", $.ui.mouse, { 34 version: "1.1 2.1",37 version: "1.13.0-rc.2", 35 38 widgetEventPrefix: "sort", 36 39 ready: false, … … 192 195 this.refreshPositions(); 193 196 197 //Prepare the dragged items parent 198 this.appendTo = $( o.appendTo !== "parent" ? 199 o.appendTo : 200 this.currentItem.parent() ); 201 194 202 //Create and append the visible helper 195 203 this.helper = this._createHelper( event ); … … 205 213 //Cache the margins of the original element 206 214 this._cacheMargins(); 207 208 //Get the next scrolling parent209 this.scrollParent = this.helper.scrollParent();210 215 211 216 //The element's absolute position on the page minus margins … … 221 226 top: event.pageY - this.offset.top 222 227 }, 223 parent: this._getParentOffset(),224 228 225 229 // This is a relative to absolute position minus the actual position calculation - … … 228 232 } ); 229 233 230 // Only after we got the offset, we can change the helper's position to absolute 234 // After we get the helper offset, but before we get the parent offset we can 235 // change the helper's position to absolute 231 236 // TODO: Still need to figure out a way to make relative sorting possible 232 237 this.helper.css( "position", "absolute" ); 233 238 this.cssPosition = this.helper.css( "position" ); 234 239 235 //Generate the original position236 this.originalPosition = this._generatePosition( event );237 this.originalPageX = event.pageX;238 this.originalPageY = event.pageY;239 240 240 //Adjust the mouse offset relative to the helper if "cursorAt" is supplied 241 ( o.cursorAt && this._adjustOffsetFromHelper( o.cursorAt ) ); 241 if ( o.cursorAt ) { 242 this._adjustOffsetFromHelper( o.cursorAt ); 243 } 242 244 243 245 //Cache the former DOM position … … 256 258 this._createPlaceholder(); 257 259 260 //Get the next scrolling parent 261 this.scrollParent = this.placeholder.scrollParent(); 262 263 $.extend( this.offset, { 264 parent: this._getParentOffset() 265 } ); 266 258 267 //Set a containment if given in the options 259 268 if ( o.containment ) { … … 272 281 } 273 282 283 // We need to make sure to grab the zIndex before setting the 284 // opacity, because setting the opacity to anything lower than 1 285 // causes the zIndex to change from "auto" to 0. 286 if ( o.zIndex ) { // zIndex option 287 if ( this.helper.css( "zIndex" ) ) { 288 this._storedZIndex = this.helper.css( "zIndex" ); 289 } 290 this.helper.css( "zIndex", o.zIndex ); 291 } 292 274 293 if ( o.opacity ) { // opacity option 275 294 if ( this.helper.css( "opacity" ) ) { … … 277 296 } 278 297 this.helper.css( "opacity", o.opacity ); 279 }280 281 if ( o.zIndex ) { // zIndex option282 if ( this.helper.css( "zIndex" ) ) {283 this._storedZIndex = this.helper.css( "zIndex" );284 }285 this.helper.css( "zIndex", o.zIndex );286 298 } 287 299 … … 320 332 this._addClass( this.helper, "ui-sortable-helper" ); 321 333 322 // Execute the drag once - this causes the helper not to be visiblebefore getting its 323 // correct position 334 //Move the helper, if needed 335 if ( !this.helper.parent().is( this.appendTo ) ) { 336 this.helper.detach().appendTo( this.appendTo ); 337 338 //Update position 339 this.offset.parent = this._getParentOffset(); 340 } 341 342 //Generate the original position 343 this.position = this.originalPosition = this._generatePosition( event ); 344 this.originalPageX = event.pageX; 345 this.originalPageY = event.pageY; 346 this.lastPositionAbs = this.positionAbs = this._convertPositionTo( "absolute" ); 347 324 348 this._mouseDrag( event ); 349 325 350 return true; 326 351 352 }, 353 354 _scroll: function( event ) { 355 var o = this.options, 356 scrolled = false; 357 358 if ( this.scrollParent[ 0 ] !== this.document[ 0 ] && 359 this.scrollParent[ 0 ].tagName !== "HTML" ) { 360 361 if ( ( this.overflowOffset.top + this.scrollParent[ 0 ].offsetHeight ) - 362 event.pageY < o.scrollSensitivity ) { 363 this.scrollParent[ 0 ].scrollTop = 364 scrolled = this.scrollParent[ 0 ].scrollTop + o.scrollSpeed; 365 } else if ( event.pageY - this.overflowOffset.top < o.scrollSensitivity ) { 366 this.scrollParent[ 0 ].scrollTop = 367 scrolled = this.scrollParent[ 0 ].scrollTop - o.scrollSpeed; 368 } 369 370 if ( ( this.overflowOffset.left + this.scrollParent[ 0 ].offsetWidth ) - 371 event.pageX < o.scrollSensitivity ) { 372 this.scrollParent[ 0 ].scrollLeft = scrolled = 373 this.scrollParent[ 0 ].scrollLeft + o.scrollSpeed; 374 } else if ( event.pageX - this.overflowOffset.left < o.scrollSensitivity ) { 375 this.scrollParent[ 0 ].scrollLeft = scrolled = 376 this.scrollParent[ 0 ].scrollLeft - o.scrollSpeed; 377 } 378 379 } else { 380 381 if ( event.pageY - this.document.scrollTop() < o.scrollSensitivity ) { 382 scrolled = this.document.scrollTop( this.document.scrollTop() - o.scrollSpeed ); 383 } else if ( this.window.height() - ( event.pageY - this.document.scrollTop() ) < 384 o.scrollSensitivity ) { 385 scrolled = this.document.scrollTop( this.document.scrollTop() + o.scrollSpeed ); 386 } 387 388 if ( event.pageX - this.document.scrollLeft() < o.scrollSensitivity ) { 389 scrolled = this.document.scrollLeft( 390 this.document.scrollLeft() - o.scrollSpeed 391 ); 392 } else if ( this.window.width() - ( event.pageX - this.document.scrollLeft() ) < 393 o.scrollSensitivity ) { 394 scrolled = this.document.scrollLeft( 395 this.document.scrollLeft() + o.scrollSpeed 396 ); 397 } 398 399 } 400 401 return scrolled; 327 402 }, 328 403 329 404 _mouseDrag: function( event ) { 330 405 var i, item, itemElement, intersection, 331 o = this.options, 332 scrolled = false; 406 o = this.options; 333 407 334 408 //Compute the helpers position … … 336 410 this.positionAbs = this._convertPositionTo( "absolute" ); 337 411 338 if ( !this.lastPositionAbs ) {339 this.lastPositionAbs = this.positionAbs;340 }341 342 //Do scrolling343 if ( this.options.scroll ) {344 if ( this.scrollParent[ 0 ] !== this.document[ 0 ] &&345 this.scrollParent[ 0 ].tagName !== "HTML" ) {346 347 if ( ( this.overflowOffset.top + this.scrollParent[ 0 ].offsetHeight ) -348 event.pageY < o.scrollSensitivity ) {349 this.scrollParent[ 0 ].scrollTop =350 scrolled = this.scrollParent[ 0 ].scrollTop + o.scrollSpeed;351 } else if ( event.pageY - this.overflowOffset.top < o.scrollSensitivity ) {352 this.scrollParent[ 0 ].scrollTop =353 scrolled = this.scrollParent[ 0 ].scrollTop - o.scrollSpeed;354 }355 356 if ( ( this.overflowOffset.left + this.scrollParent[ 0 ].offsetWidth ) -357 event.pageX < o.scrollSensitivity ) {358 this.scrollParent[ 0 ].scrollLeft = scrolled =359 this.scrollParent[ 0 ].scrollLeft + o.scrollSpeed;360 } else if ( event.pageX - this.overflowOffset.left < o.scrollSensitivity ) {361 this.scrollParent[ 0 ].scrollLeft = scrolled =362 this.scrollParent[ 0 ].scrollLeft - o.scrollSpeed;363 }364 365 } else {366 367 if ( event.pageY - this.document.scrollTop() < o.scrollSensitivity ) {368 scrolled = this.document.scrollTop( this.document.scrollTop() - o.scrollSpeed );369 } else if ( this.window.height() - ( event.pageY - this.document.scrollTop() ) <370 o.scrollSensitivity ) {371 scrolled = this.document.scrollTop( this.document.scrollTop() + o.scrollSpeed );372 }373 374 if ( event.pageX - this.document.scrollLeft() < o.scrollSensitivity ) {375 scrolled = this.document.scrollLeft(376 this.document.scrollLeft() - o.scrollSpeed377 );378 } else if ( this.window.width() - ( event.pageX - this.document.scrollLeft() ) <379 o.scrollSensitivity ) {380 scrolled = this.document.scrollLeft(381 this.document.scrollLeft() + o.scrollSpeed382 );383 }384 385 }386 387 if ( scrolled !== false && $.ui.ddmanager && !o.dropBehaviour ) {388 $.ui.ddmanager.prepareOffsets( this, event );389 }390 }391 392 //Regenerate the absolute position used for position checks393 this.positionAbs = this._convertPositionTo( "absolute" );394 395 412 //Set the helper position 396 413 if ( !this.options.axis || this.options.axis !== "y" ) { … … 401 418 } 402 419 403 //Rearrange404 for ( i = this.items.length - 1; i >= 0; i-- ) {405 406 //Cache variables and intersection, continue if no intersection407 item = this.items[ i ];408 itemElement = item.item[ 0 ];409 intersection = this._intersectsWithPointer( item );410 if ( !intersection ) {411 continue;412 }413 414 // Only put the placeholder inside the current Container, skip all415 // items from other containers. This works because when moving416 // an item from one container to another the417 // currentContainer is switched before the placeholder is moved.418 //419 // Without this, moving items in "sub-sortables" can cause420 // the placeholder to jitter between the outer and inner container.421 if ( item.instance !== this.currentContainer ) {422 continue;423 }424 425 // Cannot intersect with itself426 // no useless actions that have been done before427 // no action if the item moved is the parent of the item checked428 if ( itemElement !== this.currentItem[ 0 ] &&429 this.placeholder[ intersection === 1 ? "next" : "prev" ]()[ 0 ] !== itemElement &&430 !$.contains( this.placeholder[ 0 ], itemElement ) &&431 ( this.options.type === "semi-dynamic" ?432 !$.contains( this.element[ 0 ], itemElement ) :433 true434 )435 ) {436 437 this.direction = intersection === 1 ? "down" : "up";438 439 if ( this.options.tolerance === "pointer" || this._intersectsWithSides( item ) ) {440 this._rearrange( event, item );441 } else {442 break;443 }444 445 this._trigger( "change", event, this._uiHash() );446 break;447 }448 }449 450 420 //Post events to containers 451 421 this._contactContainers( event ); 422 423 if ( this.innermostContainer !== null ) { 424 425 //Do scrolling 426 if ( o.scroll ) { 427 if ( this._scroll( event ) !== false ) { 428 429 //Update item positions used in position checks 430 this._refreshItemPositions( true ); 431 432 if ( $.ui.ddmanager && !o.dropBehaviour ) { 433 $.ui.ddmanager.prepareOffsets( this, event ); 434 } 435 } 436 } 437 438 this.dragDirection = { 439 vertical: this._getDragVerticalDirection(), 440 horizontal: this._getDragHorizontalDirection() 441 }; 442 443 //Rearrange 444 for ( i = this.items.length - 1; i >= 0; i-- ) { 445 446 //Cache variables and intersection, continue if no intersection 447 item = this.items[ i ]; 448 itemElement = item.item[ 0 ]; 449 intersection = this._intersectsWithPointer( item ); 450 if ( !intersection ) { 451 continue; 452 } 453 454 // Only put the placeholder inside the current Container, skip all 455 // items from other containers. This works because when moving 456 // an item from one container to another the 457 // currentContainer is switched before the placeholder is moved. 458 // 459 // Without this, moving items in "sub-sortables" can cause 460 // the placeholder to jitter between the outer and inner container. 461 if ( item.instance !== this.currentContainer ) { 462 continue; 463 } 464 465 // Cannot intersect with itself 466 // no useless actions that have been done before 467 // no action if the item moved is the parent of the item checked 468 if ( itemElement !== this.currentItem[ 0 ] && 469 this.placeholder[ intersection === 1 ? 470 "next" : "prev" ]()[ 0 ] !== itemElement && 471 !$.contains( this.placeholder[ 0 ], itemElement ) && 472 ( this.options.type === "semi-dynamic" ? 473 !$.contains( this.element[ 0 ], itemElement ) : 474 true 475 ) 476 ) { 477 478 this.direction = intersection === 1 ? "down" : "up"; 479 480 if ( this.options.tolerance === "pointer" || 481 this._intersectsWithSides( item ) ) { 482 this._rearrange( event, item ); 483 } else { 484 break; 485 } 486 487 this._trigger( "change", event, this._uiHash() ); 488 break; 489 } 490 } 491 } 452 492 453 493 //Interconnect with droppables … … 653 693 } 654 694 655 verticalDirection = this. _getDragVerticalDirection();656 horizontalDirection = this. _getDragHorizontalDirection();695 verticalDirection = this.dragDirection.vertical; 696 horizontalDirection = this.dragDirection.horizontal; 657 697 658 698 return this.floating ? 659 ( ( horizontalDirection === "right" || verticalDirection === "down" ) ? 2 : 1 ) 660 :( verticalDirection && ( verticalDirection === "down" ? 2 : 1 ) );699 ( ( horizontalDirection === "right" || verticalDirection === "down" ) ? 2 : 1 ) : 700 ( verticalDirection && ( verticalDirection === "down" ? 2 : 1 ) ); 661 701 662 702 }, … … 668 708 isOverRightHalf = this._isOverAxis( this.positionAbs.left + 669 709 this.offset.click.left, item.left + ( item.width / 2 ), item.width ), 670 verticalDirection = this. _getDragVerticalDirection(),671 horizontalDirection = this. _getDragHorizontalDirection();710 verticalDirection = this.dragDirection.vertical, 711 horizontalDirection = this.dragDirection.horizontal; 672 712 673 713 if ( this.floating && horizontalDirection ) { … … 718 758 inst = $.data( cur[ j ], this.widgetFullName ); 719 759 if ( inst && inst !== this && !inst.options.disabled ) { 720 queries.push( [ $.isFunction( inst.options.items )?760 queries.push( [ typeof inst.options.items === "function" ? 721 761 inst.options.items.call( inst.element ) : 722 762 $( inst.options.items, inst.element ) … … 728 768 } 729 769 730 queries.push( [ $.isFunction( this.options.items )?770 queries.push( [ typeof this.options.items === "function" ? 731 771 this.options.items 732 772 .call( this.element, null, { options: this.options, item: this.currentItem } ) : … … 768 808 var i, j, cur, inst, targetData, _queries, item, queriesLength, 769 809 items = this.items, 770 queries = [ [ $.isFunction( this.options.items )?810 queries = [ [ typeof this.options.items === "function" ? 771 811 this.options.items.call( this.element[ 0 ], event, { item: this.currentItem } ) : 772 812 $( this.options.items, this.element ), this ] ], … … 780 820 inst = $.data( cur[ j ], this.widgetFullName ); 781 821 if ( inst && inst !== this && !inst.options.disabled ) { 782 queries.push( [ $.isFunction( inst.options.items )?822 queries.push( [ typeof inst.options.items === "function" ? 783 823 inst.options.items 784 824 .call( inst.element[ 0 ], event, { item: this.currentItem } ) : … … 811 851 }, 812 852 853 _refreshItemPositions: function( fast ) { 854 var i, item, t, p; 855 856 for ( i = this.items.length - 1; i >= 0; i-- ) { 857 item = this.items[ i ]; 858 859 //We ignore calculating positions of all connected containers when we're not over them 860 if ( this.currentContainer && item.instance !== this.currentContainer && 861 item.item[ 0 ] !== this.currentItem[ 0 ] ) { 862 continue; 863 } 864 865 t = this.options.toleranceElement ? 866 $( this.options.toleranceElement, item.item ) : 867 item.item; 868 869 if ( !fast ) { 870 item.width = t.outerWidth(); 871 item.height = t.outerHeight(); 872 } 873 874 p = t.offset(); 875 item.left = p.left; 876 item.top = p.top; 877 } 878 }, 879 813 880 refreshPositions: function( fast ) { 814 881 … … 818 885 false; 819 886 820 //This has to be redone because due to the item being moved out/into the offsetParent, 821 // the offsetParent's position will change 822 if ( this.offsetParent && this.helper ) { 823 this.offset.parent = this._getParentOffset(); 824 } 825 826 var i, item, t, p; 827 828 for ( i = this.items.length - 1; i >= 0; i-- ) { 829 item = this.items[ i ]; 830 831 //We ignore calculating positions of all connected containers when we're not over them 832 if ( item.instance !== this.currentContainer && this.currentContainer && 833 item.item[ 0 ] !== this.currentItem[ 0 ] ) { 834 continue; 835 } 836 837 t = this.options.toleranceElement ? 838 $( this.options.toleranceElement, item.item ) : 839 item.item; 840 841 if ( !fast ) { 842 item.width = t.outerWidth(); 843 item.height = t.outerHeight(); 844 } 845 846 p = t.offset(); 847 item.left = p.left; 848 item.top = p.top; 849 } 887 if ( this.innermostContainer !== null ) { 888 this._refreshItemPositions( fast ); 889 } 890 891 var i, p; 850 892 851 893 if ( this.options.custom && this.options.custom.refreshContainers ) { … … 868 910 _createPlaceholder: function( that ) { 869 911 that = that || this; 870 var className, 912 var className, nodeName, 871 913 o = that.options; 872 914 873 915 if ( !o.placeholder || o.placeholder.constructor === String ) { 874 916 className = o.placeholder; 917 nodeName = that.currentItem[ 0 ].nodeName.toLowerCase(); 875 918 o.placeholder = { 876 919 element: function() { 877 920 878 var nodeName = that.currentItem[ 0 ].nodeName.toLowerCase(), 879 element = $( "<" + nodeName + ">", that.document[ 0 ] ); 880 881 that._addClass( element, "ui-sortable-placeholder", 882 className || that.currentItem[ 0 ].className ) 883 ._removeClass( element, "ui-sortable-helper" ); 921 var element = $( "<" + nodeName + ">", that.document[ 0 ] ); 922 923 that._addClass( element, "ui-sortable-placeholder", 924 className || that.currentItem[ 0 ].className ) 925 ._removeClass( element, "ui-sortable-helper" ); 884 926 885 927 if ( nodeName === "tbody" ) { … … 910 952 } 911 953 912 //If the element doesn't have a actual height by itself (without styles coming 913 // from a stylesheet), it receives the inline height from the dragged item 914 if ( !p.height() ) { 954 // If the element doesn't have a actual height or width by itself (without 955 // styles coming from a stylesheet), it receives the inline height and width 956 // from the dragged item. Or, if it's a tbody or tr, it's going to have a height 957 // anyway since we're populating them with <td>s above, but they're unlikely to 958 // be the correct height on their own if the row heights are dynamic, so we'll 959 // always assign the height of the dragged item given forcePlaceholderSize 960 // is true. 961 if ( !p.height() || ( o.forcePlaceholderSize && 962 ( nodeName === "tbody" || nodeName === "tr" ) ) ) { 915 963 p.height( 916 964 that.currentItem.innerHeight() - … … 987 1035 } 988 1036 1037 this.innermostContainer = innermostContainer; 1038 989 1039 // If no intersecting containers found, return 990 1040 if ( !innermostContainer ) { … … 1045 1095 } 1046 1096 1047 itemWithLeastDistance ? 1048 this._rearrange( event, itemWithLeastDistance, null, true ) : 1097 if ( itemWithLeastDistance ) { 1098 this._rearrange( event, itemWithLeastDistance, null, true ); 1099 } else { 1049 1100 this._rearrange( event, null, this.containers[ innermostIndex ].element, true ); 1101 } 1050 1102 this._trigger( "change", event, this._uiHash() ); 1051 1103 this.containers[ innermostIndex ]._trigger( "change", event, this._uiHash( this ) ); … … 1055 1107 this.options.placeholder.update( this.currentContainer, this.placeholder ); 1056 1108 1109 //Update scrollParent 1110 this.scrollParent = this.placeholder.scrollParent(); 1111 1112 //Update overflowOffset 1113 if ( this.scrollParent[ 0 ] !== this.document[ 0 ] && 1114 this.scrollParent[ 0 ].tagName !== "HTML" ) { 1115 this.overflowOffset = this.scrollParent.offset(); 1116 } 1117 1057 1118 this.containers[ innermostIndex ]._trigger( "over", event, this._uiHash( this ) ); 1058 1119 this.containers[ innermostIndex ].containerCache.over = 1; … … 1064 1125 1065 1126 var o = this.options, 1066 helper = $.isFunction( o.helper )?1127 helper = typeof o.helper === "function" ? 1067 1128 $( o.helper.apply( this.element[ 0 ], [ event, this.currentItem ] ) ) : 1068 1129 ( o.helper === "clone" ? this.currentItem.clone() : this.currentItem ); … … 1070 1131 //Add the helper to the DOM if that didn't happen already 1071 1132 if ( !helper.parents( "body" ).length ) { 1072 $( o.appendTo !== "parent" ? 1073 o.appendTo : 1074 this.currentItem[ 0 ].parentNode )[ 0 ].appendChild( helper[ 0 ] ); 1133 this.appendTo[ 0 ].appendChild( helper[ 0 ] ); 1075 1134 } 1076 1135 … … 1100 1159 obj = obj.split( " " ); 1101 1160 } 1102 if ( $.isArray( obj ) ) {1161 if ( Array.isArray( obj ) ) { 1103 1162 obj = { left: +obj[ 0 ], top: +obj[ 1 ] || 0 }; 1104 1163 } … … 1380 1439 _rearrange: function( event, i, a, hardRefresh ) { 1381 1440 1382 a ? a[ 0 ].appendChild( this.placeholder[ 0 ] ) : 1441 if ( a ) { 1442 a[ 0 ].appendChild( this.placeholder[ 0 ] ); 1443 } else { 1383 1444 i.item[ 0 ].parentNode.insertBefore( this.placeholder[ 0 ], 1384 1445 ( this.direction === "down" ? i.item[ 0 ] : i.item[ 0 ].nextSibling ) ); 1446 } 1385 1447 1386 1448 //Various things done here to improve the performance: … … 1548 1610 } ); 1549 1611 1550 } ) );1612 } ); -
trunk/src/js/_enqueues/vendor/jquery/ui/spinner.js
r49134 r51794 1 1 /*! 2 * jQuery UI Spinner 1.1 2.12 * jQuery UI Spinner 1.13.0-rc.2 3 3 * http://jqueryui.com 4 4 * … … 18 18 19 19 ( function( factory ) { 20 "use strict"; 21 20 22 if ( typeof define === "function" && define.amd ) { 21 23 … … 31 33 factory( jQuery ); 32 34 } 33 }( function( $ ) { 34 35 function spinnerModifer( fn ) { 35 } )( function( $ ) { 36 "use strict"; 37 38 function spinnerModifier( fn ) { 36 39 return function() { 37 40 var previous = this.element.val(); … … 45 48 46 49 $.widget( "ui.spinner", { 47 version: "1.1 2.1",50 version: "1.13.0-rc.2", 48 51 defaultElement: "<input>", 49 52 widgetEventPrefix: "spin", … … 138 141 }, 139 142 mousewheel: function( event, delta ) { 140 if ( !delta ) { 143 var activeElement = $.ui.safeActiveElement( this.document[ 0 ] ); 144 var isActive = this.element[ 0 ] === activeElement; 145 146 if ( !isActive || !delta ) { 141 147 return; 142 148 } 149 143 150 if ( !this.spinning && !this._start( event ) ) { 144 151 return false; … … 338 345 339 346 if ( incremental ) { 340 return $.isFunction( incremental )?347 return typeof incremental === "function" ? 341 348 incremental( i ) : 342 349 Math.floor( i * i * i / 50000 - i * i / 500 + 17 * i / 200 + 1 ); … … 436 443 }, 437 444 438 _setOptions: spinnerModif er( function( options ) {445 _setOptions: spinnerModifier( function( options ) { 439 446 this._super( options ); 440 447 } ), … … 503 510 }, 504 511 505 stepUp: spinnerModif er( function( steps ) {512 stepUp: spinnerModifier( function( steps ) { 506 513 this._stepUp( steps ); 507 514 } ), … … 513 520 }, 514 521 515 stepDown: spinnerModif er( function( steps ) {522 stepDown: spinnerModifier( function( steps ) { 516 523 this._stepDown( steps ); 517 524 } ), … … 523 530 }, 524 531 525 pageUp: spinnerModif er( function( pages ) {532 pageUp: spinnerModifier( function( pages ) { 526 533 this._stepUp( ( pages || 1 ) * this.options.page ); 527 534 } ), 528 535 529 pageDown: spinnerModif er( function( pages ) {536 pageDown: spinnerModifier( function( pages ) { 530 537 this._stepDown( ( pages || 1 ) * this.options.page ); 531 538 } ), … … 535 542 return this._parse( this.element.val() ); 536 543 } 537 spinnerModif er( this._value ).call( this, newVal );544 spinnerModifier( this._value ).call( this, newVal ); 538 545 }, 539 546 … … 570 577 return $.ui.spinner; 571 578 572 } ) );579 } ); -
trunk/src/js/_enqueues/vendor/jquery/ui/tabs.js
r49134 r51794 1 1 /*! 2 * jQuery UI Tabs 1.1 2.12 * jQuery UI Tabs 1.13.0-rc.2 3 3 * http://jqueryui.com 4 4 * … … 18 18 19 19 ( function( factory ) { 20 "use strict"; 21 20 22 if ( typeof define === "function" && define.amd ) { 21 23 … … 30 32 factory( jQuery ); 31 33 } 32 }( function( $ ) { 34 } )( function( $ ) { 35 "use strict"; 33 36 34 37 $.widget( "ui.tabs", { 35 version: "1.1 2.1",38 version: "1.13.0-rc.2", 36 39 delay: 300, 37 40 options: { … … 91 94 // Take disabling tabs via class attribute from HTML 92 95 // into account and update option properly. 93 if ( $.isArray( options.disabled ) ) {94 options.disabled = $.unique ( options.disabled.concat(96 if ( Array.isArray( options.disabled ) ) { 97 options.disabled = $.uniqueSort( options.disabled.concat( 95 98 $.map( this.tabs.filter( ".ui-state-disabled" ), function( li ) { 96 99 return that.tabs.index( li ); … … 427 430 } ) 428 431 .attr( { 429 role: "presentation",430 432 tabIndex: -1 431 433 } ); … … 499 501 var currentItem, li, i; 500 502 501 if ( $.isArray( disabled ) ) {503 if ( Array.isArray( disabled ) ) { 502 504 if ( !disabled.length ) { 503 505 disabled = false; … … 730 732 if ( typeof index === "string" ) { 731 733 index = this.anchors.index( this.anchors.filter( "[href$='" + 732 $. ui.escapeSelector( index ) + "']" ) );734 $.escapeSelector( index ) + "']" ) ); 733 735 } 734 736 … … 787 789 } else { 788 790 index = this._getIndex( index ); 789 if ( $.isArray( disabled ) ) {791 if ( Array.isArray( disabled ) ) { 790 792 disabled = $.map( disabled, function( num ) { 791 793 return num !== index ? num : null; … … 813 815 return; 814 816 } 815 if ( $.isArray( disabled ) ) {817 if ( Array.isArray( disabled ) ) { 816 818 disabled = $.merge( [ index ], disabled ).sort(); 817 819 } else { … … 917 919 return $.ui.tabs; 918 920 919 } ) );921 } ); -
trunk/src/js/_enqueues/vendor/jquery/ui/tooltip.js
r49134 r51794 1 1 /*! 2 * jQuery UI Tooltip 1.1 2.12 * jQuery UI Tooltip 1.13.0-rc.2 3 3 * http://jqueryui.com 4 4 * … … 18 18 19 19 ( function( factory ) { 20 "use strict"; 21 20 22 if ( typeof define === "function" && define.amd ) { 21 23 … … 30 32 factory( jQuery ); 31 33 } 32 }( function( $ ) { 34 } )( function( $ ) { 35 "use strict"; 33 36 34 37 $.widget( "ui.tooltip", { 35 version: "1.1 2.1",38 version: "1.13.0-rc.2", 36 39 options: { 37 40 classes: { … … 39 42 }, 40 43 content: function() { 41 42 // support: IE<9, Opera in jQuery <1.7 43 // .text() can't accept undefined, so coerce to a string 44 var title = $( this ).attr( "title" ) || ""; 44 var title = $( this ).attr( "title" ); 45 45 46 46 // Escape title, since we're going from an attribute to raw HTML … … 69 69 elem 70 70 .data( "ui-tooltip-id", id ) 71 .attr( "aria-describedby", $.trim( describedby.join( " " ) ) );71 .attr( "aria-describedby", String.prototype.trim.call( describedby.join( " " ) ) ); 72 72 }, 73 73 … … 82 82 83 83 elem.removeData( "ui-tooltip-id" ); 84 describedby = $.trim( describedby.join( " " ) );84 describedby = String.prototype.trim.call( describedby.join( " " ) ); 85 85 if ( describedby ) { 86 86 elem.attr( "aria-describedby", describedby ); … … 328 328 clearInterval( delayedShow ); 329 329 } 330 }, $.fx.interval);330 }, 13 ); 331 331 } 332 332 … … 449 449 450 450 _removeTooltip: function( tooltip ) { 451 452 // Clear the interval for delayed tracking tooltips 453 clearInterval( this.delayedShow ); 454 451 455 tooltip.remove(); 452 456 delete this.tooltips[ tooltip.attr( "id" ) ]; … … 514 518 return $.ui.tooltip; 515 519 516 } ) );520 } ); -
trunk/src/wp-includes/script-loader.php
r51692 r51794 757 757 // the source files were flattened and included with some modifications for AMD loading. 758 758 // A notable change is that 'jquery-ui-core' now contains 'jquery-ui-position' and 'jquery-ui-widget'. 759 $scripts->add( 'jquery-ui-core', "/wp-includes/js/jquery/ui/core$suffix.js", array( 'jquery' ), '1.1 2.1', 1 );760 $scripts->add( 'jquery-effects-core', "/wp-includes/js/jquery/ui/effect$suffix.js", array( 'jquery' ), '1.1 2.1', 1 );761 762 $scripts->add( 'jquery-effects-blind', "/wp-includes/js/jquery/ui/effect-blind$suffix.js", array( 'jquery-effects-core' ), '1.1 2.1', 1 );763 $scripts->add( 'jquery-effects-bounce', "/wp-includes/js/jquery/ui/effect-bounce$suffix.js", array( 'jquery-effects-core' ), '1.1 2.1', 1 );764 $scripts->add( 'jquery-effects-clip', "/wp-includes/js/jquery/ui/effect-clip$suffix.js", array( 'jquery-effects-core' ), '1.1 2.1', 1 );765 $scripts->add( 'jquery-effects-drop', "/wp-includes/js/jquery/ui/effect-drop$suffix.js", array( 'jquery-effects-core' ), '1.1 2.1', 1 );766 $scripts->add( 'jquery-effects-explode', "/wp-includes/js/jquery/ui/effect-explode$suffix.js", array( 'jquery-effects-core' ), '1.1 2.1', 1 );767 $scripts->add( 'jquery-effects-fade', "/wp-includes/js/jquery/ui/effect-fade$suffix.js", array( 'jquery-effects-core' ), '1.1 2.1', 1 );768 $scripts->add( 'jquery-effects-fold', "/wp-includes/js/jquery/ui/effect-fold$suffix.js", array( 'jquery-effects-core' ), '1.1 2.1', 1 );769 $scripts->add( 'jquery-effects-highlight', "/wp-includes/js/jquery/ui/effect-highlight$suffix.js", array( 'jquery-effects-core' ), '1.1 2.1', 1 );770 $scripts->add( 'jquery-effects-puff', "/wp-includes/js/jquery/ui/effect-puff$suffix.js", array( 'jquery-effects-core', 'jquery-effects-scale' ), '1.1 2.1', 1 );771 $scripts->add( 'jquery-effects-pulsate', "/wp-includes/js/jquery/ui/effect-pulsate$suffix.js", array( 'jquery-effects-core' ), '1.1 2.1', 1 );772 $scripts->add( 'jquery-effects-scale', "/wp-includes/js/jquery/ui/effect-scale$suffix.js", array( 'jquery-effects-core', 'jquery-effects-size' ), '1.1 2.1', 1 );773 $scripts->add( 'jquery-effects-shake', "/wp-includes/js/jquery/ui/effect-shake$suffix.js", array( 'jquery-effects-core' ), '1.1 2.1', 1 );774 $scripts->add( 'jquery-effects-size', "/wp-includes/js/jquery/ui/effect-size$suffix.js", array( 'jquery-effects-core' ), '1.1 2.1', 1 );775 $scripts->add( 'jquery-effects-slide', "/wp-includes/js/jquery/ui/effect-slide$suffix.js", array( 'jquery-effects-core' ), '1.1 2.1', 1 );776 $scripts->add( 'jquery-effects-transfer', "/wp-includes/js/jquery/ui/effect-transfer$suffix.js", array( 'jquery-effects-core' ), '1.1 2.1', 1 );759 $scripts->add( 'jquery-ui-core', "/wp-includes/js/jquery/ui/core$suffix.js", array( 'jquery' ), '1.13.0-rc.2', 1 ); 760 $scripts->add( 'jquery-effects-core', "/wp-includes/js/jquery/ui/effect$suffix.js", array( 'jquery' ), '1.13.0-rc.2', 1 ); 761 762 $scripts->add( 'jquery-effects-blind', "/wp-includes/js/jquery/ui/effect-blind$suffix.js", array( 'jquery-effects-core' ), '1.13.0-rc.2', 1 ); 763 $scripts->add( 'jquery-effects-bounce', "/wp-includes/js/jquery/ui/effect-bounce$suffix.js", array( 'jquery-effects-core' ), '1.13.0-rc.2', 1 ); 764 $scripts->add( 'jquery-effects-clip', "/wp-includes/js/jquery/ui/effect-clip$suffix.js", array( 'jquery-effects-core' ), '1.13.0-rc.2', 1 ); 765 $scripts->add( 'jquery-effects-drop', "/wp-includes/js/jquery/ui/effect-drop$suffix.js", array( 'jquery-effects-core' ), '1.13.0-rc.2', 1 ); 766 $scripts->add( 'jquery-effects-explode', "/wp-includes/js/jquery/ui/effect-explode$suffix.js", array( 'jquery-effects-core' ), '1.13.0-rc.2', 1 ); 767 $scripts->add( 'jquery-effects-fade', "/wp-includes/js/jquery/ui/effect-fade$suffix.js", array( 'jquery-effects-core' ), '1.13.0-rc.2', 1 ); 768 $scripts->add( 'jquery-effects-fold', "/wp-includes/js/jquery/ui/effect-fold$suffix.js", array( 'jquery-effects-core' ), '1.13.0-rc.2', 1 ); 769 $scripts->add( 'jquery-effects-highlight', "/wp-includes/js/jquery/ui/effect-highlight$suffix.js", array( 'jquery-effects-core' ), '1.13.0-rc.2', 1 ); 770 $scripts->add( 'jquery-effects-puff', "/wp-includes/js/jquery/ui/effect-puff$suffix.js", array( 'jquery-effects-core', 'jquery-effects-scale' ), '1.13.0-rc.2', 1 ); 771 $scripts->add( 'jquery-effects-pulsate', "/wp-includes/js/jquery/ui/effect-pulsate$suffix.js", array( 'jquery-effects-core' ), '1.13.0-rc.2', 1 ); 772 $scripts->add( 'jquery-effects-scale', "/wp-includes/js/jquery/ui/effect-scale$suffix.js", array( 'jquery-effects-core', 'jquery-effects-size' ), '1.13.0-rc.2', 1 ); 773 $scripts->add( 'jquery-effects-shake', "/wp-includes/js/jquery/ui/effect-shake$suffix.js", array( 'jquery-effects-core' ), '1.13.0-rc.2', 1 ); 774 $scripts->add( 'jquery-effects-size', "/wp-includes/js/jquery/ui/effect-size$suffix.js", array( 'jquery-effects-core' ), '1.13.0-rc.2', 1 ); 775 $scripts->add( 'jquery-effects-slide', "/wp-includes/js/jquery/ui/effect-slide$suffix.js", array( 'jquery-effects-core' ), '1.13.0-rc.2', 1 ); 776 $scripts->add( 'jquery-effects-transfer', "/wp-includes/js/jquery/ui/effect-transfer$suffix.js", array( 'jquery-effects-core' ), '1.13.0-rc.2', 1 ); 777 777 778 778 // Widgets 779 $scripts->add( 'jquery-ui-accordion', "/wp-includes/js/jquery/ui/accordion$suffix.js", array( 'jquery-ui-core' ), '1.1 2.1', 1 );780 $scripts->add( 'jquery-ui-autocomplete', "/wp-includes/js/jquery/ui/autocomplete$suffix.js", array( 'jquery-ui-menu', 'wp-a11y' ), '1.1 2.1', 1 );781 $scripts->add( 'jquery-ui-button', "/wp-includes/js/jquery/ui/button$suffix.js", array( 'jquery-ui-core', 'jquery-ui-controlgroup', 'jquery-ui-checkboxradio' ), '1.1 2.1', 1 );782 $scripts->add( 'jquery-ui-datepicker', "/wp-includes/js/jquery/ui/datepicker$suffix.js", array( 'jquery-ui-core' ), '1.1 2.1', 1 );783 $scripts->add( 'jquery-ui-dialog', "/wp-includes/js/jquery/ui/dialog$suffix.js", array( 'jquery-ui-resizable', 'jquery-ui-draggable', 'jquery-ui-button' ), '1.1 2.1', 1 );784 $scripts->add( 'jquery-ui-menu', "/wp-includes/js/jquery/ui/menu$suffix.js", array( 'jquery-ui-core' ), '1.1 2.1', 1 );785 $scripts->add( 'jquery-ui-mouse', "/wp-includes/js/jquery/ui/mouse$suffix.js", array( 'jquery-ui-core' ), '1.1 2.1', 1 );786 $scripts->add( 'jquery-ui-progressbar', "/wp-includes/js/jquery/ui/progressbar$suffix.js", array( 'jquery-ui-core' ), '1.1 2.1', 1 );787 $scripts->add( 'jquery-ui-selectmenu', "/wp-includes/js/jquery/ui/selectmenu$suffix.js", array( 'jquery-ui-menu' ), '1.1 2.1', 1 );788 $scripts->add( 'jquery-ui-slider', "/wp-includes/js/jquery/ui/slider$suffix.js", array( 'jquery-ui-mouse' ), '1.1 2.1', 1 );789 $scripts->add( 'jquery-ui-spinner', "/wp-includes/js/jquery/ui/spinner$suffix.js", array( 'jquery-ui-button' ), '1.1 2.1', 1 );790 $scripts->add( 'jquery-ui-tabs', "/wp-includes/js/jquery/ui/tabs$suffix.js", array( 'jquery-ui-core' ), '1.1 2.1', 1 );791 $scripts->add( 'jquery-ui-tooltip', "/wp-includes/js/jquery/ui/tooltip$suffix.js", array( 'jquery-ui-core' ), '1.1 2.1', 1 );779 $scripts->add( 'jquery-ui-accordion', "/wp-includes/js/jquery/ui/accordion$suffix.js", array( 'jquery-ui-core' ), '1.13.0-rc.2', 1 ); 780 $scripts->add( 'jquery-ui-autocomplete', "/wp-includes/js/jquery/ui/autocomplete$suffix.js", array( 'jquery-ui-menu', 'wp-a11y' ), '1.13.0-rc.2', 1 ); 781 $scripts->add( 'jquery-ui-button', "/wp-includes/js/jquery/ui/button$suffix.js", array( 'jquery-ui-core', 'jquery-ui-controlgroup', 'jquery-ui-checkboxradio' ), '1.13.0-rc.2', 1 ); 782 $scripts->add( 'jquery-ui-datepicker', "/wp-includes/js/jquery/ui/datepicker$suffix.js", array( 'jquery-ui-core' ), '1.13.0-rc.2', 1 ); 783 $scripts->add( 'jquery-ui-dialog', "/wp-includes/js/jquery/ui/dialog$suffix.js", array( 'jquery-ui-resizable', 'jquery-ui-draggable', 'jquery-ui-button' ), '1.13.0-rc.2', 1 ); 784 $scripts->add( 'jquery-ui-menu', "/wp-includes/js/jquery/ui/menu$suffix.js", array( 'jquery-ui-core' ), '1.13.0-rc.2', 1 ); 785 $scripts->add( 'jquery-ui-mouse', "/wp-includes/js/jquery/ui/mouse$suffix.js", array( 'jquery-ui-core' ), '1.13.0-rc.2', 1 ); 786 $scripts->add( 'jquery-ui-progressbar', "/wp-includes/js/jquery/ui/progressbar$suffix.js", array( 'jquery-ui-core' ), '1.13.0-rc.2', 1 ); 787 $scripts->add( 'jquery-ui-selectmenu', "/wp-includes/js/jquery/ui/selectmenu$suffix.js", array( 'jquery-ui-menu' ), '1.13.0-rc.2', 1 ); 788 $scripts->add( 'jquery-ui-slider', "/wp-includes/js/jquery/ui/slider$suffix.js", array( 'jquery-ui-mouse' ), '1.13.0-rc.2', 1 ); 789 $scripts->add( 'jquery-ui-spinner', "/wp-includes/js/jquery/ui/spinner$suffix.js", array( 'jquery-ui-button' ), '1.13.0-rc.2', 1 ); 790 $scripts->add( 'jquery-ui-tabs', "/wp-includes/js/jquery/ui/tabs$suffix.js", array( 'jquery-ui-core' ), '1.13.0-rc.2', 1 ); 791 $scripts->add( 'jquery-ui-tooltip', "/wp-includes/js/jquery/ui/tooltip$suffix.js", array( 'jquery-ui-core' ), '1.13.0-rc.2', 1 ); 792 792 793 793 // New in 1.12.1 794 $scripts->add( 'jquery-ui-checkboxradio', "/wp-includes/js/jquery/ui/checkboxradio$suffix.js", array( 'jquery-ui-core' ), '1.1 2.1', 1 );795 $scripts->add( 'jquery-ui-controlgroup', "/wp-includes/js/jquery/ui/controlgroup$suffix.js", array( 'jquery-ui-core' ), '1.1 2.1', 1 );794 $scripts->add( 'jquery-ui-checkboxradio', "/wp-includes/js/jquery/ui/checkboxradio$suffix.js", array( 'jquery-ui-core' ), '1.13.0-rc.2', 1 ); 795 $scripts->add( 'jquery-ui-controlgroup', "/wp-includes/js/jquery/ui/controlgroup$suffix.js", array( 'jquery-ui-core' ), '1.13.0-rc.2', 1 ); 796 796 797 797 // Interactions 798 $scripts->add( 'jquery-ui-draggable', "/wp-includes/js/jquery/ui/draggable$suffix.js", array( 'jquery-ui-mouse' ), '1.1 2.1', 1 );799 $scripts->add( 'jquery-ui-droppable', "/wp-includes/js/jquery/ui/droppable$suffix.js", array( 'jquery-ui-draggable' ), '1.1 2.1', 1 );800 $scripts->add( 'jquery-ui-resizable', "/wp-includes/js/jquery/ui/resizable$suffix.js", array( 'jquery-ui-mouse' ), '1.1 2.1', 1 );801 $scripts->add( 'jquery-ui-selectable', "/wp-includes/js/jquery/ui/selectable$suffix.js", array( 'jquery-ui-mouse' ), '1.1 2.1', 1 );802 $scripts->add( 'jquery-ui-sortable', "/wp-includes/js/jquery/ui/sortable$suffix.js", array( 'jquery-ui-mouse' ), '1.1 2.1', 1 );798 $scripts->add( 'jquery-ui-draggable', "/wp-includes/js/jquery/ui/draggable$suffix.js", array( 'jquery-ui-mouse' ), '1.13.0-rc.2', 1 ); 799 $scripts->add( 'jquery-ui-droppable', "/wp-includes/js/jquery/ui/droppable$suffix.js", array( 'jquery-ui-draggable' ), '1.13.0-rc.2', 1 ); 800 $scripts->add( 'jquery-ui-resizable', "/wp-includes/js/jquery/ui/resizable$suffix.js", array( 'jquery-ui-mouse' ), '1.13.0-rc.2', 1 ); 801 $scripts->add( 'jquery-ui-selectable', "/wp-includes/js/jquery/ui/selectable$suffix.js", array( 'jquery-ui-mouse' ), '1.13.0-rc.2', 1 ); 802 $scripts->add( 'jquery-ui-sortable', "/wp-includes/js/jquery/ui/sortable$suffix.js", array( 'jquery-ui-mouse' ), '1.13.0-rc.2', 1 ); 803 803 804 804 // As of 1.12.1 `jquery-ui-position` and `jquery-ui-widget` are part of `jquery-ui-core`. 805 805 // Listed here for back-compat. 806 $scripts->add( 'jquery-ui-position', false, array( 'jquery-ui-core' ), '1.1 2.1', 1 );807 $scripts->add( 'jquery-ui-widget', false, array( 'jquery-ui-core' ), '1.1 2.1', 1 );806 $scripts->add( 'jquery-ui-position', false, array( 'jquery-ui-core' ), '1.13.0-rc.2', 1 ); 807 $scripts->add( 'jquery-ui-widget', false, array( 'jquery-ui-core' ), '1.13.0-rc.2', 1 ); 808 808 809 809 // Strings for 'jquery-ui-autocomplete' live region messages.
Note: See TracChangeset
for help on using the changeset viewer.