diff --git a/History.md b/History.md index 31e7fec..9811ba9 100644 --- a/History.md +++ b/History.md @@ -1,5 +1,9 @@ # master +# 8.0.0 + +* Update to jQuery UI 1.14.1 + # 7.0.0 * Update to jQuery UI 1.13.0 diff --git a/VERSIONS.md b/VERSIONS.md index 5cf4d77..f9d7d53 100644 --- a/VERSIONS.md +++ b/VERSIONS.md @@ -2,6 +2,7 @@ | Gem | jQuery UI | |--------|-----------| +| 8.0.0 | 1.14.1 | | 7.0.0 | 1.13.0 | | 6.0.1 | 1.12.1 | | 6.0.0 | 1.12.1 | diff --git a/app/assets/javascripts/jquery-ui.js b/app/assets/javascripts/jquery-ui.js index ba93277..7e472de 100644 --- a/app/assets/javascripts/jquery-ui.js +++ b/app/assets/javascripts/jquery-ui.js @@ -1,19 +1,14 @@ -//= require jquery-ui/core //= require jquery-ui/data //= require jquery-ui/disable-selection //= require jquery-ui/effect //= require jquery-ui/focusable //= require jquery-ui/form-reset-mixin -//= require jquery-ui/form -//= require jquery-ui/ie //= require jquery-ui/jquery-patch //= require jquery-ui/jquery-var-for-color //= require jquery-ui/keycode //= require jquery-ui/labels //= require jquery-ui/plugin //= require jquery-ui/position -//= require jquery-ui/safe-active-element -//= require jquery-ui/safe-blur //= require jquery-ui/scroll-parent //= require jquery-ui/tabbable //= require jquery-ui/unique-id diff --git a/app/assets/javascripts/jquery-ui/core.js b/app/assets/javascripts/jquery-ui/core.js deleted file mode 100644 index 1832703..0000000 --- a/app/assets/javascripts/jquery-ui/core.js +++ /dev/null @@ -1,15 +0,0 @@ -//= require jquery-ui/data -//= require jquery-ui/disable-selection -//= require jquery-ui/focusable -//= require jquery-ui/form -//= require jquery-ui/ie -//= require jquery-ui/keycode -//= require jquery-ui/labels -//= require jquery-ui/jquery-patch -//= require jquery-ui/plugin -//= require jquery-ui/safe-active-element -//= require jquery-ui/safe-blur -//= require jquery-ui/scroll-parent -//= require jquery-ui/tabbable -//= require jquery-ui/unique-id -//= require jquery-ui/version diff --git a/app/assets/javascripts/jquery-ui/data.js b/app/assets/javascripts/jquery-ui/data.js index 46ea691..cca24b0 100644 --- a/app/assets/javascripts/jquery-ui/data.js +++ b/app/assets/javascripts/jquery-ui/data.js @@ -1,18 +1,18 @@ //= require jquery-ui/version /*! - * jQuery UI :data 1.13.0 - * http://jqueryui.com + * jQuery UI :data 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license */ //>>label: :data Selector //>>group: Core //>>description: Selects elements which have data stored under the specified key. -//>>docs: http://api.jqueryui.com/data-selector/ +//>>docs: https://api.jqueryui.com/data-selector/ ( function( factory ) { "use strict"; @@ -30,16 +30,10 @@ "use strict"; return $.extend( $.expr.pseudos, { - data: $.expr.createPseudo ? - $.expr.createPseudo( function( dataName ) { - return function( elem ) { - return !!$.data( elem, dataName ); - }; - } ) : - - // Support: jQuery <1.8 - function( elem, i, match ) { - return !!$.data( elem, match[ 3 ] ); - } + data: $.expr.createPseudo( function( dataName ) { + return function( elem ) { + return !!$.data( elem, dataName ); + }; + } ) } ); } ); diff --git a/app/assets/javascripts/jquery-ui/disable-selection.js b/app/assets/javascripts/jquery-ui/disable-selection.js index f4561f6..ca7a453 100644 --- a/app/assets/javascripts/jquery-ui/disable-selection.js +++ b/app/assets/javascripts/jquery-ui/disable-selection.js @@ -1,18 +1,18 @@ //= require jquery-ui/version /*! - * jQuery UI Disable Selection 1.13.0 - * http://jqueryui.com + * jQuery UI Disable Selection 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license */ //>>label: disableSelection //>>group: Core //>>description: Disable selection of text content within the set of matched elements. -//>>docs: http://api.jqueryui.com/disableSelection/ +//>>docs: https://api.jqueryui.com/disableSelection/ // This file is deprecated ( function( factory ) { diff --git a/app/assets/javascripts/jquery-ui/effect.js b/app/assets/javascripts/jquery-ui/effect.js index 711c7ae..6b7b02e 100644 --- a/app/assets/javascripts/jquery-ui/effect.js +++ b/app/assets/javascripts/jquery-ui/effect.js @@ -3,12 +3,12 @@ //= require jquery-ui/version /*! - * jQuery UI Effects 1.13.0 - * http://jqueryui.com + * jQuery UI Effects 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license */ //>>label: Effects Core @@ -16,8 +16,8 @@ /* eslint-disable max-len */ //>>description: Extends the internal jQuery effects. Includes morphing and easing. Required by all other effects. /* eslint-enable max-len */ -//>>docs: http://api.jqueryui.com/category/effects-core/ -//>>demos: http://jqueryui.com/effect/ +//>>docs: https://api.jqueryui.com/category/effects-core/ +//>>demos: https://jqueryui.com/effect/ ( function( factory ) { "use strict"; @@ -85,26 +85,14 @@ function camelCase( string ) { function getElementStyles( elem ) { var key, len, - style = elem.ownerDocument.defaultView ? - elem.ownerDocument.defaultView.getComputedStyle( elem, null ) : - elem.currentStyle, + style = elem.ownerDocument.defaultView.getComputedStyle( elem ), styles = {}; - if ( style && style.length && style[ 0 ] && style[ style[ 0 ] ] ) { - len = style.length; - while ( len-- ) { - key = style[ len ]; - if ( typeof style[ key ] === "string" ) { - styles[ camelCase( key ) ] = style[ key ]; - } - } - - // Support: Opera, IE <9 - } else { - for ( key in style ) { - if ( typeof style[ key ] === "string" ) { - styles[ key ] = style[ key ]; - } + len = style.length; + while ( len-- ) { + key = style[ len ]; + if ( typeof style[ key ] === "string" ) { + styles[ camelCase( key ) ] = style[ key ]; } } @@ -129,15 +117,6 @@ function styleDifference( oldStyle, newStyle ) { return diff; } -// Support: jQuery <1.8 -if ( !$.fn.addBack ) { - $.fn.addBack = function( selector ) { - return this.add( selector == null ? - this.prevObject : this.prevObject.filter( selector ) - ); - }; -} - $.effects.animateClass = function( value, duration, easing, callback ) { var o = $.speed( duration, easing, callback ); @@ -277,7 +256,7 @@ if ( $.expr && $.expr.pseudos && $.expr.pseudos.animated ) { } )( $.expr.pseudos.animated ); } -if ( $.uiBackCompat !== false ) { +if ( $.uiBackCompat === true ) { $.extend( $.effects, { // Saves a set of properties in a data storage @@ -406,7 +385,7 @@ if ( $.uiBackCompat !== false ) { } $.extend( $.effects, { - version: "1.13.0", + version: "1.14.1", define: function( name, mode, effect ) { if ( !effect ) { @@ -529,7 +508,7 @@ $.extend( $.effects, { // Lock in margins first to account for form elements, which // will change margin if you explicitly set height - // see: http://jsfiddle.net/JZSMt/3/ https://bugs.webkit.org/show_bug.cgi?id=107380 + // see: https://jsfiddle.net/JZSMt/3/ https://bugs.webkit.org/show_bug.cgi?id=107380 // Support: Safari element.css( { marginTop: element.css( "marginTop" ), @@ -763,7 +742,7 @@ $.fn.extend( { // as toggle can be either show or hide depending on element state args.mode = modes.shift(); - if ( $.uiBackCompat !== false && !defaultMode ) { + if ( $.uiBackCompat === true && !defaultMode ) { if ( elem.is( ":hidden" ) ? mode === "hide" : mode === "show" ) { // Call the core method to track "olddisplay" properly @@ -923,7 +902,7 @@ $.fx.step.clip = function( fx ) { ( function() { -// Based on easing equations from Robert Penner (http://www.robertpenner.com/easing) +// Based on easing equations from Robert Penner (http://robertpenner.com/easing) var baseEasings = {}; diff --git a/app/assets/javascripts/jquery-ui/effects/effect-blind.js b/app/assets/javascripts/jquery-ui/effects/effect-blind.js index f442f01..b9002f6 100644 --- a/app/assets/javascripts/jquery-ui/effects/effect-blind.js +++ b/app/assets/javascripts/jquery-ui/effects/effect-blind.js @@ -2,19 +2,19 @@ //= require jquery-ui/effect /*! - * jQuery UI Effects Blind 1.13.0 - * http://jqueryui.com + * jQuery UI Effects Blind 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license */ //>>label: Blind Effect //>>group: Effects //>>description: Blinds the element. -//>>docs: http://api.jqueryui.com/blind-effect/ -//>>demos: http://jqueryui.com/effect/ +//>>docs: https://api.jqueryui.com/blind-effect/ +//>>demos: https://jqueryui.com/effect/ ( function( factory ) { "use strict"; diff --git a/app/assets/javascripts/jquery-ui/effects/effect-bounce.js b/app/assets/javascripts/jquery-ui/effects/effect-bounce.js index 7325966..107ccb7 100644 --- a/app/assets/javascripts/jquery-ui/effects/effect-bounce.js +++ b/app/assets/javascripts/jquery-ui/effects/effect-bounce.js @@ -2,19 +2,19 @@ //= require jquery-ui/effect /*! - * jQuery UI Effects Bounce 1.13.0 - * http://jqueryui.com + * jQuery UI Effects Bounce 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license */ //>>label: Bounce Effect //>>group: Effects //>>description: Bounces an element horizontally or vertically n times. -//>>docs: http://api.jqueryui.com/bounce-effect/ -//>>demos: http://jqueryui.com/effect/ +//>>docs: https://api.jqueryui.com/bounce-effect/ +//>>demos: https://jqueryui.com/effect/ ( function( factory ) { "use strict"; diff --git a/app/assets/javascripts/jquery-ui/effects/effect-clip.js b/app/assets/javascripts/jquery-ui/effects/effect-clip.js index c6653b2..d096d2c 100644 --- a/app/assets/javascripts/jquery-ui/effects/effect-clip.js +++ b/app/assets/javascripts/jquery-ui/effects/effect-clip.js @@ -2,19 +2,19 @@ //= require jquery-ui/effect /*! - * jQuery UI Effects Clip 1.13.0 - * http://jqueryui.com + * jQuery UI Effects Clip 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license */ //>>label: Clip Effect //>>group: Effects //>>description: Clips the element on and off like an old TV. -//>>docs: http://api.jqueryui.com/clip-effect/ -//>>demos: http://jqueryui.com/effect/ +//>>docs: https://api.jqueryui.com/clip-effect/ +//>>demos: https://jqueryui.com/effect/ ( function( factory ) { "use strict"; diff --git a/app/assets/javascripts/jquery-ui/effects/effect-drop.js b/app/assets/javascripts/jquery-ui/effects/effect-drop.js index 963d5db..e84ee3b 100644 --- a/app/assets/javascripts/jquery-ui/effects/effect-drop.js +++ b/app/assets/javascripts/jquery-ui/effects/effect-drop.js @@ -2,19 +2,19 @@ //= require jquery-ui/effect /*! - * jQuery UI Effects Drop 1.13.0 - * http://jqueryui.com + * jQuery UI Effects Drop 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license */ //>>label: Drop Effect //>>group: Effects //>>description: Moves an element in one direction and hides it at the same time. -//>>docs: http://api.jqueryui.com/drop-effect/ -//>>demos: http://jqueryui.com/effect/ +//>>docs: https://api.jqueryui.com/drop-effect/ +//>>demos: https://jqueryui.com/effect/ ( function( factory ) { "use strict"; diff --git a/app/assets/javascripts/jquery-ui/effects/effect-explode.js b/app/assets/javascripts/jquery-ui/effects/effect-explode.js index 5e2bd2d..b39f713 100644 --- a/app/assets/javascripts/jquery-ui/effects/effect-explode.js +++ b/app/assets/javascripts/jquery-ui/effects/effect-explode.js @@ -2,12 +2,12 @@ //= require jquery-ui/effect /*! - * jQuery UI Effects Explode 1.13.0 - * http://jqueryui.com + * jQuery UI Effects Explode 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license */ //>>label: Explode Effect @@ -15,8 +15,8 @@ /* eslint-disable max-len */ //>>description: Explodes an element in all directions into n pieces. Implodes an element to its original wholeness. /* eslint-enable max-len */ -//>>docs: http://api.jqueryui.com/explode-effect/ -//>>demos: http://jqueryui.com/effect/ +//>>docs: https://api.jqueryui.com/explode-effect/ +//>>demos: https://jqueryui.com/effect/ ( function( factory ) { "use strict"; diff --git a/app/assets/javascripts/jquery-ui/effects/effect-fade.js b/app/assets/javascripts/jquery-ui/effects/effect-fade.js index f3be78b..ba4c3ee 100644 --- a/app/assets/javascripts/jquery-ui/effects/effect-fade.js +++ b/app/assets/javascripts/jquery-ui/effects/effect-fade.js @@ -2,19 +2,19 @@ //= require jquery-ui/effect /*! - * jQuery UI Effects Fade 1.13.0 - * http://jqueryui.com + * jQuery UI Effects Fade 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license */ //>>label: Fade Effect //>>group: Effects //>>description: Fades the element. -//>>docs: http://api.jqueryui.com/fade-effect/ -//>>demos: http://jqueryui.com/effect/ +//>>docs: https://api.jqueryui.com/fade-effect/ +//>>demos: https://jqueryui.com/effect/ ( function( factory ) { "use strict"; diff --git a/app/assets/javascripts/jquery-ui/effects/effect-fold.js b/app/assets/javascripts/jquery-ui/effects/effect-fold.js index 2b04670..314fe9e 100644 --- a/app/assets/javascripts/jquery-ui/effects/effect-fold.js +++ b/app/assets/javascripts/jquery-ui/effects/effect-fold.js @@ -2,19 +2,19 @@ //= require jquery-ui/effect /*! - * jQuery UI Effects Fold 1.13.0 - * http://jqueryui.com + * jQuery UI Effects Fold 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license */ //>>label: Fold Effect //>>group: Effects //>>description: Folds an element first horizontally and then vertically. -//>>docs: http://api.jqueryui.com/fold-effect/ -//>>demos: http://jqueryui.com/effect/ +//>>docs: https://api.jqueryui.com/fold-effect/ +//>>demos: https://jqueryui.com/effect/ ( function( factory ) { "use strict"; diff --git a/app/assets/javascripts/jquery-ui/effects/effect-highlight.js b/app/assets/javascripts/jquery-ui/effects/effect-highlight.js index 6de44cb..ad2d287 100644 --- a/app/assets/javascripts/jquery-ui/effects/effect-highlight.js +++ b/app/assets/javascripts/jquery-ui/effects/effect-highlight.js @@ -2,19 +2,19 @@ //= require jquery-ui/effect /*! - * jQuery UI Effects Highlight 1.13.0 - * http://jqueryui.com + * jQuery UI Effects Highlight 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license */ //>>label: Highlight Effect //>>group: Effects //>>description: Highlights the background of an element in a defined color for a custom duration. -//>>docs: http://api.jqueryui.com/highlight-effect/ -//>>demos: http://jqueryui.com/effect/ +//>>docs: https://api.jqueryui.com/highlight-effect/ +//>>demos: https://jqueryui.com/effect/ ( function( factory ) { "use strict"; diff --git a/app/assets/javascripts/jquery-ui/effects/effect-puff.js b/app/assets/javascripts/jquery-ui/effects/effect-puff.js index 58550cc..a27dd6f 100644 --- a/app/assets/javascripts/jquery-ui/effects/effect-puff.js +++ b/app/assets/javascripts/jquery-ui/effects/effect-puff.js @@ -3,19 +3,19 @@ //= require jquery-ui/effects/effect-scale /*! - * jQuery UI Effects Puff 1.13.0 - * http://jqueryui.com + * jQuery UI Effects Puff 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license */ //>>label: Puff Effect //>>group: Effects //>>description: Creates a puff effect by scaling the element up and hiding it at the same time. -//>>docs: http://api.jqueryui.com/puff-effect/ -//>>demos: http://jqueryui.com/effect/ +//>>docs: https://api.jqueryui.com/puff-effect/ +//>>demos: https://jqueryui.com/effect/ ( function( factory ) { "use strict"; diff --git a/app/assets/javascripts/jquery-ui/effects/effect-pulsate.js b/app/assets/javascripts/jquery-ui/effects/effect-pulsate.js index 112e831..7e9fbe0 100644 --- a/app/assets/javascripts/jquery-ui/effects/effect-pulsate.js +++ b/app/assets/javascripts/jquery-ui/effects/effect-pulsate.js @@ -2,19 +2,19 @@ //= require jquery-ui/effect /*! - * jQuery UI Effects Pulsate 1.13.0 - * http://jqueryui.com + * jQuery UI Effects Pulsate 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license */ //>>label: Pulsate Effect //>>group: Effects //>>description: Pulsates an element n times by changing the opacity to zero and back. -//>>docs: http://api.jqueryui.com/pulsate-effect/ -//>>demos: http://jqueryui.com/effect/ +//>>docs: https://api.jqueryui.com/pulsate-effect/ +//>>demos: https://jqueryui.com/effect/ ( function( factory ) { "use strict"; diff --git a/app/assets/javascripts/jquery-ui/effects/effect-scale.js b/app/assets/javascripts/jquery-ui/effects/effect-scale.js index 828cb53..3f11fc8 100644 --- a/app/assets/javascripts/jquery-ui/effects/effect-scale.js +++ b/app/assets/javascripts/jquery-ui/effects/effect-scale.js @@ -3,19 +3,19 @@ //= require jquery-ui/effects/effect-size /*! - * jQuery UI Effects Scale 1.13.0 - * http://jqueryui.com + * jQuery UI Effects Scale 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license */ //>>label: Scale Effect //>>group: Effects //>>description: Grows or shrinks an element and its content. -//>>docs: http://api.jqueryui.com/scale-effect/ -//>>demos: http://jqueryui.com/effect/ +//>>docs: https://api.jqueryui.com/scale-effect/ +//>>demos: https://jqueryui.com/effect/ ( function( factory ) { "use strict"; diff --git a/app/assets/javascripts/jquery-ui/effects/effect-shake.js b/app/assets/javascripts/jquery-ui/effects/effect-shake.js index 7fe519b..9857564 100644 --- a/app/assets/javascripts/jquery-ui/effects/effect-shake.js +++ b/app/assets/javascripts/jquery-ui/effects/effect-shake.js @@ -2,19 +2,19 @@ //= require jquery-ui/effect /*! - * jQuery UI Effects Shake 1.13.0 - * http://jqueryui.com + * jQuery UI Effects Shake 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license */ //>>label: Shake Effect //>>group: Effects //>>description: Shakes an element horizontally or vertically n times. -//>>docs: http://api.jqueryui.com/shake-effect/ -//>>demos: http://jqueryui.com/effect/ +//>>docs: https://api.jqueryui.com/shake-effect/ +//>>demos: https://jqueryui.com/effect/ ( function( factory ) { "use strict"; diff --git a/app/assets/javascripts/jquery-ui/effects/effect-size.js b/app/assets/javascripts/jquery-ui/effects/effect-size.js index 6477053..269b420 100644 --- a/app/assets/javascripts/jquery-ui/effects/effect-size.js +++ b/app/assets/javascripts/jquery-ui/effects/effect-size.js @@ -2,19 +2,19 @@ //= require jquery-ui/effect /*! - * jQuery UI Effects Size 1.13.0 - * http://jqueryui.com + * jQuery UI Effects Size 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license */ //>>label: Size Effect //>>group: Effects //>>description: Resize an element to a specified width and height. -//>>docs: http://api.jqueryui.com/size-effect/ -//>>demos: http://jqueryui.com/effect/ +//>>docs: https://api.jqueryui.com/size-effect/ +//>>demos: https://jqueryui.com/effect/ ( function( factory ) { "use strict"; diff --git a/app/assets/javascripts/jquery-ui/effects/effect-slide.js b/app/assets/javascripts/jquery-ui/effects/effect-slide.js index d971381..92e8018 100644 --- a/app/assets/javascripts/jquery-ui/effects/effect-slide.js +++ b/app/assets/javascripts/jquery-ui/effects/effect-slide.js @@ -2,19 +2,19 @@ //= require jquery-ui/effect /*! - * jQuery UI Effects Slide 1.13.0 - * http://jqueryui.com + * jQuery UI Effects Slide 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license */ //>>label: Slide Effect //>>group: Effects //>>description: Slides an element in and out of the viewport. -//>>docs: http://api.jqueryui.com/slide-effect/ -//>>demos: http://jqueryui.com/effect/ +//>>docs: https://api.jqueryui.com/slide-effect/ +//>>demos: https://jqueryui.com/effect/ ( function( factory ) { "use strict"; diff --git a/app/assets/javascripts/jquery-ui/effects/effect-transfer.js b/app/assets/javascripts/jquery-ui/effects/effect-transfer.js index 4f5d80b..0ec494c 100644 --- a/app/assets/javascripts/jquery-ui/effects/effect-transfer.js +++ b/app/assets/javascripts/jquery-ui/effects/effect-transfer.js @@ -2,19 +2,19 @@ //= require jquery-ui/effect /*! - * jQuery UI Effects Transfer 1.13.0 - * http://jqueryui.com + * jQuery UI Effects Transfer 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license */ //>>label: Transfer Effect //>>group: Effects //>>description: Displays a transfer effect from one element to another. -//>>docs: http://api.jqueryui.com/transfer-effect/ -//>>demos: http://jqueryui.com/effect/ +//>>docs: https://api.jqueryui.com/transfer-effect/ +//>>demos: https://jqueryui.com/effect/ ( function( factory ) { "use strict"; @@ -36,7 +36,7 @@ "use strict"; var effect; -if ( $.uiBackCompat !== false ) { +if ( $.uiBackCompat === true ) { effect = $.effects.define( "transfer", function( options, done ) { $( this ).transfer( options, done ); } ); diff --git a/app/assets/javascripts/jquery-ui/focusable.js b/app/assets/javascripts/jquery-ui/focusable.js index 8114340..5fd3132 100644 --- a/app/assets/javascripts/jquery-ui/focusable.js +++ b/app/assets/javascripts/jquery-ui/focusable.js @@ -1,18 +1,18 @@ //= require jquery-ui/version /*! - * jQuery UI Focusable 1.13.0 - * http://jqueryui.com + * jQuery UI Focusable 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license */ //>>label: :focusable Selector //>>group: Core //>>description: Selects elements which can be focused. -//>>docs: http://api.jqueryui.com/focusable-selector/ +//>>docs: https://api.jqueryui.com/focusable-selector/ ( function( factory ) { "use strict"; @@ -64,20 +64,10 @@ $.ui.focusable = function( element, hasTabindex ) { focusableIfVisible = hasTabindex; } - return focusableIfVisible && $( element ).is( ":visible" ) && visible( $( element ) ); + return focusableIfVisible && $( element ).is( ":visible" ) && + $( element ).css( "visibility" ) === "visible"; }; -// Support: IE 8 only -// IE 8 doesn't resolve inherit to visible/hidden for computed values -function visible( element ) { - var visibility = element.css( "visibility" ); - while ( visibility === "inherit" ) { - element = element.parent(); - visibility = element.css( "visibility" ); - } - return visibility === "visible"; -} - $.extend( $.expr.pseudos, { focusable: function( element ) { return $.ui.focusable( element, $.attr( element, "tabindex" ) != null ); diff --git a/app/assets/javascripts/jquery-ui/form-reset-mixin.js b/app/assets/javascripts/jquery-ui/form-reset-mixin.js index df8c38f..fc3c9ba 100644 --- a/app/assets/javascripts/jquery-ui/form-reset-mixin.js +++ b/app/assets/javascripts/jquery-ui/form-reset-mixin.js @@ -1,19 +1,18 @@ -//= require jquery-ui/form //= require jquery-ui/version /*! - * jQuery UI Form Reset Mixin 1.13.0 - * http://jqueryui.com + * jQuery UI Form Reset Mixin 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license */ //>>label: Form Reset Mixin //>>group: Core //>>description: Refresh input widgets when their form is reset -//>>docs: http://api.jqueryui.com/form-reset-mixin/ +//>>docs: https://api.jqueryui.com/form-reset-mixin/ ( function( factory ) { "use strict"; @@ -23,7 +22,6 @@ // AMD. Register as an anonymous module. define( [ "jquery", - "./form", "./version" ], factory ); } else { @@ -48,7 +46,7 @@ return $.ui.formResetMixin = { }, _bindFormResetHandler: function() { - this.form = this.element._form(); + this.form = $( this.element.prop( "form" ) ); if ( !this.form.length ) { return; } diff --git a/app/assets/javascripts/jquery-ui/form.js b/app/assets/javascripts/jquery-ui/form.js deleted file mode 100644 index 95b4783..0000000 --- a/app/assets/javascripts/jquery-ui/form.js +++ /dev/null @@ -1,25 +0,0 @@ -//= require jquery-ui/version - -( function( factory ) { - "use strict"; - - if ( typeof define === "function" && define.amd ) { - - // AMD. Register as an anonymous module. - define( [ "jquery", "./version" ], factory ); - } else { - - // Browser globals - factory( jQuery ); - } -} )( function( $ ) { -"use strict"; - -// Support: IE8 Only -// IE8 does not support the form attribute and when it is supplied. It overwrites the form prop -// with a string, so we need to find the proper form. -return $.fn._form = function() { - return typeof this[ 0 ].form === "string" ? this.closest( "form" ) : $( this[ 0 ].form ); -}; - -} ); diff --git a/app/assets/javascripts/jquery-ui/i18n/datepicker-ar-DZ.js b/app/assets/javascripts/jquery-ui/i18n/datepicker-ar-DZ.js index 8dc8059..2bcdf47 100644 --- a/app/assets/javascripts/jquery-ui/i18n/datepicker-ar-DZ.js +++ b/app/assets/javascripts/jquery-ui/i18n/datepicker-ar-DZ.js @@ -20,8 +20,8 @@ datepicker.regional[ "ar-DZ" ] = { closeText: "إغلاق", - prevText: "<السابق", - nextText: "التالي>", + prevText: "السابق", + nextText: "التالي", currentText: "اليوم", monthNames: [ "جانفي", "فيفري", "مارس", "أفريل", "ماي", "جوان", "جويلية", "أوت", "سبتمبر", "أكتوبر", "نوفمبر", "ديسمبر" ], diff --git a/app/assets/javascripts/jquery-ui/i18n/datepicker-ar.js b/app/assets/javascripts/jquery-ui/i18n/datepicker-ar.js index 31d7ee5..0776841 100644 --- a/app/assets/javascripts/jquery-ui/i18n/datepicker-ar.js +++ b/app/assets/javascripts/jquery-ui/i18n/datepicker-ar.js @@ -20,8 +20,8 @@ datepicker.regional.ar = { closeText: "إغلاق", - prevText: "<السابق", - nextText: "التالي>", + prevText: "السابق", + nextText: "التالي", currentText: "اليوم", monthNames: [ "يناير", "فبراير", "مارس", "أبريل", "مايو", "يونيو", "يوليو", "أغسطس", "سبتمبر", "أكتوبر", "نوفمبر", "ديسمبر" ], diff --git a/app/assets/javascripts/jquery-ui/i18n/datepicker-az.js b/app/assets/javascripts/jquery-ui/i18n/datepicker-az.js index d02d356..8d59547 100644 --- a/app/assets/javascripts/jquery-ui/i18n/datepicker-az.js +++ b/app/assets/javascripts/jquery-ui/i18n/datepicker-az.js @@ -17,8 +17,8 @@ datepicker.regional.az = { closeText: "Bağla", - prevText: "<Geri", - nextText: "İrəli>", + prevText: "Geri", + nextText: "İrəli", currentText: "Bugün", monthNames: [ "Yanvar", "Fevral", "Mart", "Aprel", "May", "İyun", "İyul", "Avqust", "Sentyabr", "Oktyabr", "Noyabr", "Dekabr" ], diff --git a/app/assets/javascripts/jquery-ui/i18n/datepicker-be.js b/app/assets/javascripts/jquery-ui/i18n/datepicker-be.js index 51ddd6e..125ed0f 100644 --- a/app/assets/javascripts/jquery-ui/i18n/datepicker-be.js +++ b/app/assets/javascripts/jquery-ui/i18n/datepicker-be.js @@ -17,8 +17,8 @@ datepicker.regional.be = { closeText: "Зачыніць", - prevText: "←Папяр.", - nextText: "Наст.→", + prevText: "Папяр.", + nextText: "Наст.", currentText: "Сёньня", monthNames: [ "Студзень", "Люты", "Сакавік", "Красавік", "Травень", "Чэрвень", "Ліпень", "Жнівень", "Верасень", "Кастрычнік", "Лістапад", "Сьнежань" ], diff --git a/app/assets/javascripts/jquery-ui/i18n/datepicker-bg.js b/app/assets/javascripts/jquery-ui/i18n/datepicker-bg.js index 0344de4..62be734 100644 --- a/app/assets/javascripts/jquery-ui/i18n/datepicker-bg.js +++ b/app/assets/javascripts/jquery-ui/i18n/datepicker-bg.js @@ -1,5 +1,5 @@ /* Bulgarian initialisation for the jQuery UI date picker plugin. */ -/* Written by Stoyan Kyosev (http://svest.org). */ +/* Written by Stoyan Kyosev. */ ( function( factory ) { "use strict"; @@ -17,8 +17,8 @@ datepicker.regional.bg = { closeText: "затвори", - prevText: "<назад", - nextText: "напред>", + prevText: "назад", + nextText: "напред", nextBigText: ">>", currentText: "днес", monthNames: [ "Януари", "Февруари", "Март", "Април", "Май", "Юни", diff --git a/app/assets/javascripts/jquery-ui/i18n/datepicker-bs.js b/app/assets/javascripts/jquery-ui/i18n/datepicker-bs.js index a5c145a..3ee9db4 100644 --- a/app/assets/javascripts/jquery-ui/i18n/datepicker-bs.js +++ b/app/assets/javascripts/jquery-ui/i18n/datepicker-bs.js @@ -17,8 +17,8 @@ datepicker.regional.bs = { closeText: "Zatvori", - prevText: "<", - nextText: ">", + prevText: "Prethodno", + nextText: "Sljedeći", currentText: "Danas", monthNames: [ "Januar", "Februar", "Mart", "April", "Maj", "Juni", "Juli", "August", "Septembar", "Oktobar", "Novembar", "Decembar" ], diff --git a/app/assets/javascripts/jquery-ui/i18n/datepicker-cs.js b/app/assets/javascripts/jquery-ui/i18n/datepicker-cs.js index 201fac7..6e5552c 100644 --- a/app/assets/javascripts/jquery-ui/i18n/datepicker-cs.js +++ b/app/assets/javascripts/jquery-ui/i18n/datepicker-cs.js @@ -17,8 +17,8 @@ datepicker.regional.cs = { closeText: "Zavřít", - prevText: "<Dříve", - nextText: "Později>", + prevText: "Dříve", + nextText: "Později", currentText: "Nyní", monthNames: [ "leden", "únor", "březen", "duben", "květen", "červen", "červenec", "srpen", "září", "říjen", "listopad", "prosinec" ], diff --git a/app/assets/javascripts/jquery-ui/i18n/datepicker-da.js b/app/assets/javascripts/jquery-ui/i18n/datepicker-da.js index 90409c0..d2de755 100644 --- a/app/assets/javascripts/jquery-ui/i18n/datepicker-da.js +++ b/app/assets/javascripts/jquery-ui/i18n/datepicker-da.js @@ -17,8 +17,8 @@ datepicker.regional.da = { closeText: "Luk", - prevText: "<Forrige", - nextText: "Næste>", + prevText: "Forrige", + nextText: "Næste", currentText: "I dag", monthNames: [ "Januar", "Februar", "Marts", "April", "Maj", "Juni", "Juli", "August", "September", "Oktober", "November", "December" ], diff --git a/app/assets/javascripts/jquery-ui/i18n/datepicker-de-AT.js b/app/assets/javascripts/jquery-ui/i18n/datepicker-de-AT.js index 814e74f..4a8b781 100644 --- a/app/assets/javascripts/jquery-ui/i18n/datepicker-de-AT.js +++ b/app/assets/javascripts/jquery-ui/i18n/datepicker-de-AT.js @@ -18,8 +18,8 @@ datepicker.regional[ "de-AT" ] = { closeText: "Schließen", - prevText: "<Zurück", - nextText: "Vor>", + prevText: "Zurück", + nextText: "Vor", currentText: "Heute", monthNames: [ "Jänner", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember" ], diff --git a/app/assets/javascripts/jquery-ui/i18n/datepicker-de.js b/app/assets/javascripts/jquery-ui/i18n/datepicker-de.js index 5baf6d1..8a08ebf 100644 --- a/app/assets/javascripts/jquery-ui/i18n/datepicker-de.js +++ b/app/assets/javascripts/jquery-ui/i18n/datepicker-de.js @@ -17,8 +17,8 @@ datepicker.regional.de = { closeText: "Schließen", - prevText: "<Zurück", - nextText: "Vor>", + prevText: "Zurück", + nextText: "Vor", currentText: "Heute", monthNames: [ "Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember" ], diff --git a/app/assets/javascripts/jquery-ui/i18n/datepicker-el.js b/app/assets/javascripts/jquery-ui/i18n/datepicker-el.js index 054a5e2..9716e41 100644 --- a/app/assets/javascripts/jquery-ui/i18n/datepicker-el.js +++ b/app/assets/javascripts/jquery-ui/i18n/datepicker-el.js @@ -1,5 +1,5 @@ /* Greek (el) initialisation for the jQuery UI date picker plugin. */ -/* Written by Alex Cicovic (http://www.alexcicovic.com) */ +/* Written by Alex Cicovic (https://alexcicovic.com) */ ( function( factory ) { "use strict"; diff --git a/app/assets/javascripts/jquery-ui/i18n/datepicker-eo.js b/app/assets/javascripts/jquery-ui/i18n/datepicker-eo.js index 3867a62..08aa96e 100644 --- a/app/assets/javascripts/jquery-ui/i18n/datepicker-eo.js +++ b/app/assets/javascripts/jquery-ui/i18n/datepicker-eo.js @@ -17,8 +17,8 @@ datepicker.regional.eo = { closeText: "Fermi", - prevText: "<Anta", - nextText: "Sekv>", + prevText: "Anta", + nextText: "Sekv", currentText: "Nuna", monthNames: [ "Januaro", "Februaro", "Marto", "Aprilo", "Majo", "Junio", "Julio", "Aŭgusto", "Septembro", "Oktobro", "Novembro", "Decembro" ], diff --git a/app/assets/javascripts/jquery-ui/i18n/datepicker-es.js b/app/assets/javascripts/jquery-ui/i18n/datepicker-es.js index 9a74577..dbb1f0a 100644 --- a/app/assets/javascripts/jquery-ui/i18n/datepicker-es.js +++ b/app/assets/javascripts/jquery-ui/i18n/datepicker-es.js @@ -17,8 +17,8 @@ datepicker.regional.es = { closeText: "Cerrar", - prevText: "<Ant", - nextText: "Sig>", + prevText: "Ant", + nextText: "Sig", currentText: "Hoy", monthNames: [ "enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre" ], diff --git a/app/assets/javascripts/jquery-ui/i18n/datepicker-eu.js b/app/assets/javascripts/jquery-ui/i18n/datepicker-eu.js index 754a172..0de057c 100644 --- a/app/assets/javascripts/jquery-ui/i18n/datepicker-eu.js +++ b/app/assets/javascripts/jquery-ui/i18n/datepicker-eu.js @@ -16,8 +16,8 @@ datepicker.regional.eu = { closeText: "Egina", - prevText: "<Aur", - nextText: "Hur>", + prevText: "Aur", + nextText: "Hur", currentText: "Gaur", monthNames: [ "urtarrila", "otsaila", "martxoa", "apirila", "maiatza", "ekaina", "uztaila", "abuztua", "iraila", "urria", "azaroa", "abendua" ], diff --git a/app/assets/javascripts/jquery-ui/i18n/datepicker-fa.js b/app/assets/javascripts/jquery-ui/i18n/datepicker-fa.js index 193a3dc..ac30752 100644 --- a/app/assets/javascripts/jquery-ui/i18n/datepicker-fa.js +++ b/app/assets/javascripts/jquery-ui/i18n/datepicker-fa.js @@ -18,8 +18,8 @@ datepicker.regional.fa = { closeText: "بستن", - prevText: "<قبلی", - nextText: "بعدی>", + prevText: "قبلی", + nextText: "بعدی", currentText: "امروز", monthNames: [ "ژانویه", diff --git a/app/assets/javascripts/jquery-ui/i18n/datepicker-fi.js b/app/assets/javascripts/jquery-ui/i18n/datepicker-fi.js index dd4ca59..d355e9e 100644 --- a/app/assets/javascripts/jquery-ui/i18n/datepicker-fi.js +++ b/app/assets/javascripts/jquery-ui/i18n/datepicker-fi.js @@ -17,8 +17,8 @@ datepicker.regional.fi = { closeText: "Sulje", - prevText: "«Edellinen", - nextText: "Seuraava»", + prevText: "Edellinen", + nextText: "Seuraava", currentText: "Tänään", monthNames: [ "Tammikuu", "Helmikuu", "Maaliskuu", "Huhtikuu", "Toukokuu", "Kesäkuu", "Heinäkuu", "Elokuu", "Syyskuu", "Lokakuu", "Marraskuu", "Joulukuu" ], diff --git a/app/assets/javascripts/jquery-ui/i18n/datepicker-fo.js b/app/assets/javascripts/jquery-ui/i18n/datepicker-fo.js index f024ac6..d2ec9d7 100644 --- a/app/assets/javascripts/jquery-ui/i18n/datepicker-fo.js +++ b/app/assets/javascripts/jquery-ui/i18n/datepicker-fo.js @@ -17,8 +17,8 @@ datepicker.regional.fo = { closeText: "Lat aftur", - prevText: "<Fyrra", - nextText: "Næsta>", + prevText: "Fyrra", + nextText: "Næsta", currentText: "Í dag", monthNames: [ "Januar", "Februar", "Mars", "Apríl", "Mei", "Juni", "Juli", "August", "September", "Oktober", "November", "Desember" ], diff --git a/app/assets/javascripts/jquery-ui/i18n/datepicker-fr-CH.js b/app/assets/javascripts/jquery-ui/i18n/datepicker-fr-CH.js index b75c683..7221d14 100644 --- a/app/assets/javascripts/jquery-ui/i18n/datepicker-fr-CH.js +++ b/app/assets/javascripts/jquery-ui/i18n/datepicker-fr-CH.js @@ -17,8 +17,8 @@ datepicker.regional[ "fr-CH" ] = { closeText: "Fermer", - prevText: "<Préc", - nextText: "Suiv>", + prevText: "Préc", + nextText: "Suiv", currentText: "Courant", monthNames: [ "janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre" ], diff --git a/app/assets/javascripts/jquery-ui/i18n/datepicker-gl.js b/app/assets/javascripts/jquery-ui/i18n/datepicker-gl.js index f3ebc46..27abb02 100644 --- a/app/assets/javascripts/jquery-ui/i18n/datepicker-gl.js +++ b/app/assets/javascripts/jquery-ui/i18n/datepicker-gl.js @@ -17,8 +17,8 @@ datepicker.regional.gl = { closeText: "Pechar", - prevText: "<Ant", - nextText: "Seg>", + prevText: "Ant", + nextText: "Seg", currentText: "Hoxe", monthNames: [ "Xaneiro", "Febreiro", "Marzo", "Abril", "Maio", "Xuño", "Xullo", "Agosto", "Setembro", "Outubro", "Novembro", "Decembro" ], diff --git a/app/assets/javascripts/jquery-ui/i18n/datepicker-he.js b/app/assets/javascripts/jquery-ui/i18n/datepicker-he.js index c487e78..fbe3c40 100644 --- a/app/assets/javascripts/jquery-ui/i18n/datepicker-he.js +++ b/app/assets/javascripts/jquery-ui/i18n/datepicker-he.js @@ -17,8 +17,8 @@ datepicker.regional.he = { closeText: "סגור", - prevText: "<הקודם", - nextText: "הבא>", + prevText: "הקודם", + nextText: "הבא", currentText: "היום", monthNames: [ "ינואר", "פברואר", "מרץ", "אפריל", "מאי", "יוני", "יולי", "אוגוסט", "ספטמבר", "אוקטובר", "נובמבר", "דצמבר" ], diff --git a/app/assets/javascripts/jquery-ui/i18n/datepicker-hr.js b/app/assets/javascripts/jquery-ui/i18n/datepicker-hr.js index 23ea414..2898d5c 100644 --- a/app/assets/javascripts/jquery-ui/i18n/datepicker-hr.js +++ b/app/assets/javascripts/jquery-ui/i18n/datepicker-hr.js @@ -17,8 +17,8 @@ datepicker.regional.hr = { closeText: "Zatvori", - prevText: "<", - nextText: ">", + prevText: "Prethodno", + nextText: "Sljedeći", currentText: "Danas", monthNames: [ "Siječanj", "Veljača", "Ožujak", "Travanj", "Svibanj", "Lipanj", "Srpanj", "Kolovoz", "Rujan", "Listopad", "Studeni", "Prosinac" ], diff --git a/app/assets/javascripts/jquery-ui/i18n/datepicker-hy.js b/app/assets/javascripts/jquery-ui/i18n/datepicker-hy.js index 2cc74da..7d4da5a 100644 --- a/app/assets/javascripts/jquery-ui/i18n/datepicker-hy.js +++ b/app/assets/javascripts/jquery-ui/i18n/datepicker-hy.js @@ -17,8 +17,8 @@ datepicker.regional.hy = { closeText: "Փակել", - prevText: "<Նախ.", - nextText: "Հաջ.>", + prevText: "Նախ.", + nextText: "Հաջ.", currentText: "Այսօր", monthNames: [ "Հունվար", "Փետրվար", "Մարտ", "Ապրիլ", "Մայիս", "Հունիս", "Հուլիս", "Օգոստոս", "Սեպտեմբեր", "Հոկտեմբեր", "Նոյեմբեր", "Դեկտեմբեր" ], diff --git a/app/assets/javascripts/jquery-ui/i18n/datepicker-id.js b/app/assets/javascripts/jquery-ui/i18n/datepicker-id.js index 52f709c..17082e9 100644 --- a/app/assets/javascripts/jquery-ui/i18n/datepicker-id.js +++ b/app/assets/javascripts/jquery-ui/i18n/datepicker-id.js @@ -1,5 +1,6 @@ /* Indonesian initialisation for the jQuery UI date picker plugin. */ /* Written by Deden Fathurahman (dedenf@gmail.com). */ +/* Fixed by Denny Septian Panggabean (xamidimura@gmail.com) */ ( function( factory ) { "use strict"; @@ -17,16 +18,16 @@ datepicker.regional.id = { closeText: "Tutup", - prevText: "<mundur", - nextText: "maju>", - currentText: "hari ini", + prevText: "Mundur", + nextText: "Maju", + currentText: "Hari ini", monthNames: [ "Januari", "Februari", "Maret", "April", "Mei", "Juni", "Juli", "Agustus", "September", "Oktober", "Nopember", "Desember" ], monthNamesShort: [ "Jan", "Feb", "Mar", "Apr", "Mei", "Jun", "Jul", "Agus", "Sep", "Okt", "Nop", "Des" ], dayNames: [ "Minggu", "Senin", "Selasa", "Rabu", "Kamis", "Jumat", "Sabtu" ], - dayNamesShort: [ "Min", "Sen", "Sel", "Rab", "kam", "Jum", "Sab" ], - dayNamesMin: [ "Mg", "Sn", "Sl", "Rb", "Km", "jm", "Sb" ], + dayNamesShort: [ "Min", "Sen", "Sel", "Rab", "Kam", "Jum", "Sab" ], + dayNamesMin: [ "Mg", "Sn", "Sl", "Rb", "Km", "Jm", "Sb" ], weekHeader: "Mg", dateFormat: "dd/mm/yy", firstDay: 0, diff --git a/app/assets/javascripts/jquery-ui/i18n/datepicker-is.js b/app/assets/javascripts/jquery-ui/i18n/datepicker-is.js index 0ebffd3..c453fa4 100644 --- a/app/assets/javascripts/jquery-ui/i18n/datepicker-is.js +++ b/app/assets/javascripts/jquery-ui/i18n/datepicker-is.js @@ -17,8 +17,8 @@ datepicker.regional.is = { closeText: "Loka", - prevText: "< Fyrri", - nextText: "Næsti >", + prevText: "Fyrri", + nextText: "Næsti ", currentText: "Í dag", monthNames: [ "Janúar", "Febrúar", "Mars", "Apríl", "Maí", "Júní", "Júlí", "Ágúst", "September", "Október", "Nóvember", "Desember" ], diff --git a/app/assets/javascripts/jquery-ui/i18n/datepicker-it-CH.js b/app/assets/javascripts/jquery-ui/i18n/datepicker-it-CH.js index 8c6d105..73b7918 100644 --- a/app/assets/javascripts/jquery-ui/i18n/datepicker-it-CH.js +++ b/app/assets/javascripts/jquery-ui/i18n/datepicker-it-CH.js @@ -17,8 +17,8 @@ datepicker.regional[ "it-CH" ] = { closeText: "Chiudi", - prevText: "<Prec", - nextText: "Succ>", + prevText: "Prec", + nextText: "Succ", currentText: "Oggi", monthNames: [ "Gennaio", "Febbraio", "Marzo", "Aprile", "Maggio", "Giugno", "Luglio", "Agosto", "Settembre", "Ottobre", "Novembre", "Dicembre" ], diff --git a/app/assets/javascripts/jquery-ui/i18n/datepicker-it.js b/app/assets/javascripts/jquery-ui/i18n/datepicker-it.js index 0210e41..d1d4980 100644 --- a/app/assets/javascripts/jquery-ui/i18n/datepicker-it.js +++ b/app/assets/javascripts/jquery-ui/i18n/datepicker-it.js @@ -17,8 +17,8 @@ datepicker.regional.it = { closeText: "Chiudi", - prevText: "<Prec", - nextText: "Succ>", + prevText: "Prec", + nextText: "Succ", currentText: "Oggi", monthNames: [ "Gennaio", "Febbraio", "Marzo", "Aprile", "Maggio", "Giugno", "Luglio", "Agosto", "Settembre", "Ottobre", "Novembre", "Dicembre" ], diff --git a/app/assets/javascripts/jquery-ui/i18n/datepicker-ja.js b/app/assets/javascripts/jquery-ui/i18n/datepicker-ja.js index 404bbfd..95fa6fd 100644 --- a/app/assets/javascripts/jquery-ui/i18n/datepicker-ja.js +++ b/app/assets/javascripts/jquery-ui/i18n/datepicker-ja.js @@ -17,8 +17,8 @@ datepicker.regional.ja = { closeText: "閉じる", - prevText: "<前", - nextText: "次>", + prevText: "前", + nextText: "次", currentText: "今日", monthNames: [ "1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月" ], diff --git a/app/assets/javascripts/jquery-ui/i18n/datepicker-ka.js b/app/assets/javascripts/jquery-ui/i18n/datepicker-ka.js index fd740da..d347de8 100644 --- a/app/assets/javascripts/jquery-ui/i18n/datepicker-ka.js +++ b/app/assets/javascripts/jquery-ui/i18n/datepicker-ka.js @@ -17,8 +17,8 @@ datepicker.regional.ka = { closeText: "დახურვა", - prevText: "< წინა", - nextText: "შემდეგი >", + prevText: "წინა", + nextText: "შემდეგი ", currentText: "დღეს", monthNames: [ "იანვარი", diff --git a/app/assets/javascripts/jquery-ui/i18n/datepicker-kk.js b/app/assets/javascripts/jquery-ui/i18n/datepicker-kk.js index c40391d..20a8486 100644 --- a/app/assets/javascripts/jquery-ui/i18n/datepicker-kk.js +++ b/app/assets/javascripts/jquery-ui/i18n/datepicker-kk.js @@ -17,8 +17,8 @@ datepicker.regional.kk = { closeText: "Жабу", - prevText: "<Алдыңғы", - nextText: "Келесі>", + prevText: "Алдыңғы", + nextText: "Келесі", currentText: "Бүгін", monthNames: [ "Қаңтар", "Ақпан", "Наурыз", "Сәуір", "Мамыр", "Маусым", "Шілде", "Тамыз", "Қыркүйек", "Қазан", "Қараша", "Желтоқсан" ], diff --git a/app/assets/javascripts/jquery-ui/i18n/datepicker-ky.js b/app/assets/javascripts/jquery-ui/i18n/datepicker-ky.js index e74c927..05dc5dd 100644 --- a/app/assets/javascripts/jquery-ui/i18n/datepicker-ky.js +++ b/app/assets/javascripts/jquery-ui/i18n/datepicker-ky.js @@ -17,8 +17,8 @@ datepicker.regional.ky = { closeText: "Жабуу", - prevText: "<Мур", - nextText: "Кий>", + prevText: "Мур", + nextText: "Кий", currentText: "Бүгүн", monthNames: [ "Январь", "Февраль", "Март", "Апрель", "Май", "Июнь", "Июль", "Август", "Сентябрь", "Октябрь", "Ноябрь", "Декабрь" ], diff --git a/app/assets/javascripts/jquery-ui/i18n/datepicker-lt.js b/app/assets/javascripts/jquery-ui/i18n/datepicker-lt.js index 279af0c..5f45734 100644 --- a/app/assets/javascripts/jquery-ui/i18n/datepicker-lt.js +++ b/app/assets/javascripts/jquery-ui/i18n/datepicker-lt.js @@ -17,8 +17,8 @@ datepicker.regional.lt = { closeText: "Uždaryti", - prevText: "<Atgal", - nextText: "Pirmyn>", + prevText: "Atgal", + nextText: "Pirmyn", currentText: "Šiandien", monthNames: [ "Sausis", "Vasaris", "Kovas", "Balandis", "Gegužė", "Birželis", "Liepa", "Rugpjūtis", "Rugsėjis", "Spalis", "Lapkritis", "Gruodis" ], diff --git a/app/assets/javascripts/jquery-ui/i18n/datepicker-mk.js b/app/assets/javascripts/jquery-ui/i18n/datepicker-mk.js index f7999ba..6f430e9 100644 --- a/app/assets/javascripts/jquery-ui/i18n/datepicker-mk.js +++ b/app/assets/javascripts/jquery-ui/i18n/datepicker-mk.js @@ -17,8 +17,8 @@ datepicker.regional.mk = { closeText: "Затвори", - prevText: "<", - nextText: ">", + prevText: "Претходна", + nextText: "Следно", currentText: "Денес", monthNames: [ "Јануари", "Февруари", "Март", "Април", "Мај", "Јуни", "Јули", "Август", "Септември", "Октомври", "Ноември", "Декември" ], diff --git a/app/assets/javascripts/jquery-ui/i18n/datepicker-ms.js b/app/assets/javascripts/jquery-ui/i18n/datepicker-ms.js index 344b768..4170519 100644 --- a/app/assets/javascripts/jquery-ui/i18n/datepicker-ms.js +++ b/app/assets/javascripts/jquery-ui/i18n/datepicker-ms.js @@ -17,8 +17,8 @@ datepicker.regional.ms = { closeText: "Tutup", - prevText: "<Sebelum", - nextText: "Selepas>", + prevText: "Sebelum", + nextText: "Selepas", currentText: "hari ini", monthNames: [ "Januari", "Februari", "Mac", "April", "Mei", "Jun", "Julai", "Ogos", "September", "Oktober", "November", "Disember" ], diff --git a/app/assets/javascripts/jquery-ui/i18n/datepicker-nb.js b/app/assets/javascripts/jquery-ui/i18n/datepicker-nb.js index b4fd237..19bb0bc 100644 --- a/app/assets/javascripts/jquery-ui/i18n/datepicker-nb.js +++ b/app/assets/javascripts/jquery-ui/i18n/datepicker-nb.js @@ -17,8 +17,8 @@ datepicker.regional.nb = { closeText: "Lukk", - prevText: "«Forrige", - nextText: "Neste»", + prevText: "Forrige", + nextText: "Neste", currentText: "I dag", monthNames: [ "januar", diff --git a/app/assets/javascripts/jquery-ui/i18n/datepicker-nl-BE.js b/app/assets/javascripts/jquery-ui/i18n/datepicker-nl-BE.js index ae57473..1b37288 100644 --- a/app/assets/javascripts/jquery-ui/i18n/datepicker-nl-BE.js +++ b/app/assets/javascripts/jquery-ui/i18n/datepicker-nl-BE.js @@ -17,8 +17,8 @@ datepicker.regional[ "nl-BE" ] = { closeText: "Sluiten", - prevText: "←", - nextText: "→", + prevText: "Vorig", + nextText: "Volgende", currentText: "Vandaag", monthNames: [ "januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december" ], diff --git a/app/assets/javascripts/jquery-ui/i18n/datepicker-nl.js b/app/assets/javascripts/jquery-ui/i18n/datepicker-nl.js index 19df79c..6ac5d07 100644 --- a/app/assets/javascripts/jquery-ui/i18n/datepicker-nl.js +++ b/app/assets/javascripts/jquery-ui/i18n/datepicker-nl.js @@ -1,5 +1,5 @@ /* Dutch (UTF-8) initialisation for the jQuery UI date picker plugin. */ -/* Written by Mathias Bynens */ +/* Written by Mathias Bynens */ ( function( factory ) { "use strict"; @@ -17,8 +17,8 @@ datepicker.regional.nl = { closeText: "Sluiten", - prevText: "←", - nextText: "→", + prevText: "Vorig", + nextText: "Volgende", currentText: "Vandaag", monthNames: [ "januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december" ], diff --git a/app/assets/javascripts/jquery-ui/i18n/datepicker-nn.js b/app/assets/javascripts/jquery-ui/i18n/datepicker-nn.js index 967351c..5eccb4a 100644 --- a/app/assets/javascripts/jquery-ui/i18n/datepicker-nn.js +++ b/app/assets/javascripts/jquery-ui/i18n/datepicker-nn.js @@ -17,8 +17,8 @@ datepicker.regional.nn = { closeText: "Lukk", - prevText: "«Førre", - nextText: "Neste»", + prevText: "Førre", + nextText: "Neste", currentText: "I dag", monthNames: [ "januar", diff --git a/app/assets/javascripts/jquery-ui/i18n/datepicker-no.js b/app/assets/javascripts/jquery-ui/i18n/datepicker-no.js index 4b1b54f..becc8bf 100644 --- a/app/assets/javascripts/jquery-ui/i18n/datepicker-no.js +++ b/app/assets/javascripts/jquery-ui/i18n/datepicker-no.js @@ -18,8 +18,8 @@ datepicker.regional.no = { closeText: "Lukk", - prevText: "«Forrige", - nextText: "Neste»", + prevText: "Forrige", + nextText: "Neste", currentText: "I dag", monthNames: [ "januar", diff --git a/app/assets/javascripts/jquery-ui/i18n/datepicker-pl.js b/app/assets/javascripts/jquery-ui/i18n/datepicker-pl.js index 60f9fbb..4d31086 100644 --- a/app/assets/javascripts/jquery-ui/i18n/datepicker-pl.js +++ b/app/assets/javascripts/jquery-ui/i18n/datepicker-pl.js @@ -17,8 +17,8 @@ datepicker.regional.pl = { closeText: "Zamknij", - prevText: "<Poprzedni", - nextText: "Następny>", + prevText: "Poprzedni", + nextText: "Następny", currentText: "Dziś", monthNames: [ "Styczeń", "Luty", "Marzec", "Kwiecień", "Maj", "Czerwiec", "Lipiec", "Sierpień", "Wrzesień", "Październik", "Listopad", "Grudzień" ], diff --git a/app/assets/javascripts/jquery-ui/i18n/datepicker-pt-BR.js b/app/assets/javascripts/jquery-ui/i18n/datepicker-pt-BR.js index 1c84bf3..3c3984f 100644 --- a/app/assets/javascripts/jquery-ui/i18n/datepicker-pt-BR.js +++ b/app/assets/javascripts/jquery-ui/i18n/datepicker-pt-BR.js @@ -17,8 +17,8 @@ datepicker.regional[ "pt-BR" ] = { closeText: "Fechar", - prevText: "<Anterior", - nextText: "Próximo>", + prevText: "Anterior", + nextText: "Próximo", currentText: "Hoje", monthNames: [ "Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro" ], diff --git a/app/assets/javascripts/jquery-ui/i18n/datepicker-rm.js b/app/assets/javascripts/jquery-ui/i18n/datepicker-rm.js index 439e8c8..4f150c5 100644 --- a/app/assets/javascripts/jquery-ui/i18n/datepicker-rm.js +++ b/app/assets/javascripts/jquery-ui/i18n/datepicker-rm.js @@ -17,8 +17,8 @@ datepicker.regional.rm = { closeText: "Serrar", - prevText: "<Suandant", - nextText: "Precedent>", + prevText: "Suandant", + nextText: "Precedent", currentText: "Actual", monthNames: [ "Schaner", diff --git a/app/assets/javascripts/jquery-ui/i18n/datepicker-ro.js b/app/assets/javascripts/jquery-ui/i18n/datepicker-ro.js index f03ee15..60f56ae 100644 --- a/app/assets/javascripts/jquery-ui/i18n/datepicker-ro.js +++ b/app/assets/javascripts/jquery-ui/i18n/datepicker-ro.js @@ -20,8 +20,8 @@ datepicker.regional.ro = { closeText: "Închide", - prevText: "« Luna precedentă", - nextText: "Luna următoare »", + prevText: "Luna precedentă", + nextText: "Luna următoare ", currentText: "Azi", monthNames: [ "Ianuarie", "Februarie", "Martie", "Aprilie", "Mai", "Iunie", "Iulie", "August", "Septembrie", "Octombrie", "Noiembrie", "Decembrie" ], diff --git a/app/assets/javascripts/jquery-ui/i18n/datepicker-ru.js b/app/assets/javascripts/jquery-ui/i18n/datepicker-ru.js index 61d1151..5a8b3b7 100644 --- a/app/assets/javascripts/jquery-ui/i18n/datepicker-ru.js +++ b/app/assets/javascripts/jquery-ui/i18n/datepicker-ru.js @@ -17,8 +17,8 @@ datepicker.regional.ru = { closeText: "Закрыть", - prevText: "<Пред", - nextText: "След>", + prevText: "Пред", + nextText: "След", currentText: "Сегодня", monthNames: [ "Январь", "Февраль", "Март", "Апрель", "Май", "Июнь", "Июль", "Август", "Сентябрь", "Октябрь", "Ноябрь", "Декабрь" ], diff --git a/app/assets/javascripts/jquery-ui/i18n/datepicker-sk.js b/app/assets/javascripts/jquery-ui/i18n/datepicker-sk.js index c28750c..826dfcb 100644 --- a/app/assets/javascripts/jquery-ui/i18n/datepicker-sk.js +++ b/app/assets/javascripts/jquery-ui/i18n/datepicker-sk.js @@ -17,8 +17,8 @@ datepicker.regional.sk = { closeText: "Zavrieť", - prevText: "<Predchádzajúci", - nextText: "Nasledujúci>", + prevText: "Predchádzajúci", + nextText: "Nasledujúci", currentText: "Dnes", monthNames: [ "január", "február", "marec", "apríl", "máj", "jún", "júl", "august", "september", "október", "november", "december" ], diff --git a/app/assets/javascripts/jquery-ui/i18n/datepicker-sl.js b/app/assets/javascripts/jquery-ui/i18n/datepicker-sl.js index 15aa9e4..4b329e2 100644 --- a/app/assets/javascripts/jquery-ui/i18n/datepicker-sl.js +++ b/app/assets/javascripts/jquery-ui/i18n/datepicker-sl.js @@ -18,8 +18,8 @@ datepicker.regional.sl = { closeText: "Zapri", - prevText: "<Prejšnji", - nextText: "Naslednji>", + prevText: "Prejšnji", + nextText: "Naslednji", currentText: "Trenutni", monthNames: [ "Januar", "Februar", "Marec", "April", "Maj", "Junij", "Julij", "Avgust", "September", "Oktober", "November", "December" ], diff --git a/app/assets/javascripts/jquery-ui/i18n/datepicker-sq.js b/app/assets/javascripts/jquery-ui/i18n/datepicker-sq.js index 470a030..9952fb1 100644 --- a/app/assets/javascripts/jquery-ui/i18n/datepicker-sq.js +++ b/app/assets/javascripts/jquery-ui/i18n/datepicker-sq.js @@ -17,8 +17,8 @@ datepicker.regional.sq = { closeText: "mbylle", - prevText: "<mbrapa", - nextText: "Përpara>", + prevText: "mbrapa", + nextText: "Përpara", currentText: "sot", monthNames: [ "Janar", "Shkurt", "Mars", "Prill", "Maj", "Qershor", "Korrik", "Gusht", "Shtator", "Tetor", "Nëntor", "Dhjetor" ], diff --git a/app/assets/javascripts/jquery-ui/i18n/datepicker-sr-SR.js b/app/assets/javascripts/jquery-ui/i18n/datepicker-sr-SR.js index 2b75c40..b28ceed 100644 --- a/app/assets/javascripts/jquery-ui/i18n/datepicker-sr-SR.js +++ b/app/assets/javascripts/jquery-ui/i18n/datepicker-sr-SR.js @@ -17,8 +17,8 @@ datepicker.regional[ "sr-SR" ] = { closeText: "Zatvori", - prevText: "<", - nextText: ">", + prevText: "Prethodno", + nextText: "Sljedeći", currentText: "Danas", monthNames: [ "Januar", "Februar", "Mart", "April", "Maj", "Jun", "Jul", "Avgust", "Septembar", "Oktobar", "Novembar", "Decembar" ], diff --git a/app/assets/javascripts/jquery-ui/i18n/datepicker-sr.js b/app/assets/javascripts/jquery-ui/i18n/datepicker-sr.js index c64069a..8b04d9b 100644 --- a/app/assets/javascripts/jquery-ui/i18n/datepicker-sr.js +++ b/app/assets/javascripts/jquery-ui/i18n/datepicker-sr.js @@ -17,8 +17,8 @@ datepicker.regional.sr = { closeText: "Затвори", - prevText: "<", - nextText: ">", + prevText: "Претходна", + nextText: "Следећи", currentText: "Данас", monthNames: [ "Јануар", "Фебруар", "Март", "Април", "Мај", "Јун", "Јул", "Август", "Септембар", "Октобар", "Новембар", "Децембар" ], diff --git a/app/assets/javascripts/jquery-ui/i18n/datepicker-sv.js b/app/assets/javascripts/jquery-ui/i18n/datepicker-sv.js index 6fe51e3..ee9296e 100644 --- a/app/assets/javascripts/jquery-ui/i18n/datepicker-sv.js +++ b/app/assets/javascripts/jquery-ui/i18n/datepicker-sv.js @@ -17,8 +17,8 @@ datepicker.regional.sv = { closeText: "Stäng", - prevText: "«Förra", - nextText: "Nästa»", + prevText: "Förra", + nextText: "Nästa", currentText: "Idag", monthNames: [ "januari", "februari", "mars", "april", "maj", "juni", "juli", "augusti", "september", "oktober", "november", "december" ], diff --git a/app/assets/javascripts/jquery-ui/i18n/datepicker-th.js b/app/assets/javascripts/jquery-ui/i18n/datepicker-th.js index 10c2833..41cef52 100644 --- a/app/assets/javascripts/jquery-ui/i18n/datepicker-th.js +++ b/app/assets/javascripts/jquery-ui/i18n/datepicker-th.js @@ -17,8 +17,8 @@ datepicker.regional.th = { closeText: "ปิด", - prevText: "« ย้อน", - nextText: "ถัดไป »", + prevText: "ย้อน", + nextText: "ถัดไป", currentText: "วันนี้", monthNames: [ "มกราคม", "กุมภาพันธ์", "มีนาคม", "เมษายน", "พฤษภาคม", "มิถุนายน", "กรกฎาคม", "สิงหาคม", "กันยายน", "ตุลาคม", "พฤศจิกายน", "ธันวาคม" ], diff --git a/app/assets/javascripts/jquery-ui/i18n/datepicker-tj.js b/app/assets/javascripts/jquery-ui/i18n/datepicker-tj.js index bdc71f1..a3669da 100644 --- a/app/assets/javascripts/jquery-ui/i18n/datepicker-tj.js +++ b/app/assets/javascripts/jquery-ui/i18n/datepicker-tj.js @@ -17,8 +17,8 @@ datepicker.regional.tj = { closeText: "Идома", - prevText: "<Қафо", - nextText: "Пеш>", + prevText: "Қафо", + nextText: "Пеш", currentText: "Имрӯз", monthNames: [ "Январ", "Феврал", "Март", "Апрел", "Май", "Июн", "Июл", "Август", "Сентябр", "Октябр", "Ноябр", "Декабр" ], diff --git a/app/assets/javascripts/jquery-ui/i18n/datepicker-tr.js b/app/assets/javascripts/jquery-ui/i18n/datepicker-tr.js index 220d66e..32eb3ed 100644 --- a/app/assets/javascripts/jquery-ui/i18n/datepicker-tr.js +++ b/app/assets/javascripts/jquery-ui/i18n/datepicker-tr.js @@ -17,8 +17,8 @@ datepicker.regional.tr = { closeText: "kapat", - prevText: "<geri", - nextText: "ileri>", + prevText: "geri", + nextText: "ileri", currentText: "bugün", monthNames: [ "Ocak", "Şubat", "Mart", "Nisan", "Mayıs", "Haziran", "Temmuz", "Ağustos", "Eylül", "Ekim", "Kasım", "Aralık" ], diff --git a/app/assets/javascripts/jquery-ui/i18n/datepicker-uk.js b/app/assets/javascripts/jquery-ui/i18n/datepicker-uk.js index 0834628..c273fd6 100644 --- a/app/assets/javascripts/jquery-ui/i18n/datepicker-uk.js +++ b/app/assets/javascripts/jquery-ui/i18n/datepicker-uk.js @@ -18,8 +18,8 @@ datepicker.regional.uk = { closeText: "Закрити", - prevText: "<", - nextText: ">", + prevText: "Попередній", + nextText: "найближчий", currentText: "Сьогодні", monthNames: [ "Січень", "Лютий", "Березень", "Квітень", "Травень", "Червень", "Липень", "Серпень", "Вересень", "Жовтень", "Листопад", "Грудень" ], diff --git a/app/assets/javascripts/jquery-ui/i18n/datepicker-vi.js b/app/assets/javascripts/jquery-ui/i18n/datepicker-vi.js index e06b702..8664c4f 100644 --- a/app/assets/javascripts/jquery-ui/i18n/datepicker-vi.js +++ b/app/assets/javascripts/jquery-ui/i18n/datepicker-vi.js @@ -17,8 +17,8 @@ datepicker.regional.vi = { closeText: "Đóng", - prevText: "<Trước", - nextText: "Tiếp>", + prevText: "Trước", + nextText: "Tiếp", currentText: "Hôm nay", monthNames: [ "Tháng Một", "Tháng Hai", "Tháng Ba", "Tháng Tư", "Tháng Năm", "Tháng Sáu", "Tháng Bảy", "Tháng Tám", "Tháng Chín", "Tháng Mười", "Tháng Mười Một", "Tháng Mười Hai" ], diff --git a/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-CN.js b/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-CN.js index 8409290..a00553e 100644 --- a/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-CN.js +++ b/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-CN.js @@ -17,8 +17,8 @@ datepicker.regional[ "zh-CN" ] = { closeText: "关闭", - prevText: "<上月", - nextText: "下月>", + prevText: "上月", + nextText: "下月", currentText: "今天", monthNames: [ "一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月" ], diff --git a/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-HK.js b/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-HK.js index 80d5c76..e61bf66 100644 --- a/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-HK.js +++ b/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-HK.js @@ -17,8 +17,8 @@ datepicker.regional[ "zh-HK" ] = { closeText: "關閉", - prevText: "<上月", - nextText: "下月>", + prevText: "上月", + nextText: "下月", currentText: "今天", monthNames: [ "一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月" ], diff --git a/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-TW.js b/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-TW.js index 9e79a45..f5e02a6 100644 --- a/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-TW.js +++ b/app/assets/javascripts/jquery-ui/i18n/datepicker-zh-TW.js @@ -17,8 +17,8 @@ datepicker.regional[ "zh-TW" ] = { closeText: "關閉", - prevText: "<上個月", - nextText: "下個月>", + prevText: "上個月", + nextText: "下個月", currentText: "今天", monthNames: [ "一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月" ], diff --git a/app/assets/javascripts/jquery-ui/ie.js b/app/assets/javascripts/jquery-ui/ie.js deleted file mode 100644 index a758a1b..0000000 --- a/app/assets/javascripts/jquery-ui/ie.js +++ /dev/null @@ -1,20 +0,0 @@ -//= require jquery-ui/version - -( function( factory ) { - "use strict"; - - if ( typeof define === "function" && define.amd ) { - - // AMD. Register as an anonymous module. - define( [ "jquery", "./version" ], factory ); - } else { - - // Browser globals - factory( jQuery ); - } -} )( function( $ ) { -"use strict"; - -// This file is deprecated -return $.ui.ie = !!/msie [\w.]+/.exec( navigator.userAgent.toLowerCase() ); -} ); diff --git a/app/assets/javascripts/jquery-ui/jquery-patch.js b/app/assets/javascripts/jquery-ui/jquery-patch.js index e86f70b..34fe8e1 100644 --- a/app/assets/javascripts/jquery-ui/jquery-patch.js +++ b/app/assets/javascripts/jquery-ui/jquery-patch.js @@ -1,18 +1,18 @@ //= require jquery-ui/version /*! - * jQuery UI Support for jQuery core 1.8.x and newer 1.13.0 - * http://jqueryui.com + * jQuery UI Legacy jQuery Core patches 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license * */ -//>>label: jQuery 1.8+ Support +//>>label: Legacy jQuery Core patches //>>group: Core -//>>description: Support version 1.8.x and newer of jQuery core +//>>description: Backport `.even()`, `.odd()` and `$.escapeSelector` to older jQuery Core versions (deprecated) ( function( factory ) { "use strict"; @@ -29,45 +29,12 @@ } )( function( $ ) { "use strict"; -// Support: jQuery 1.9.x or older -// $.expr[ ":" ] is deprecated. -if ( !$.expr.pseudos ) { - $.expr.pseudos = $.expr[ ":" ]; -} - -// Support: jQuery 1.11.x or older -// $.unique has been renamed to $.uniqueSort -if ( !$.uniqueSort ) { - $.uniqueSort = $.unique; -} - // Support: jQuery 2.2.x or older. // This method has been defined in jQuery 3.0.0. // Code from https://github.com/jquery/jquery/blob/e539bac79e666bba95bba86d690b4e609dca2286/src/selector/escapeSelector.js if ( !$.escapeSelector ) { - - // CSS string/identifier serialization - // https://drafts.csswg.org/cssom/#common-serializing-idioms - var rcssescape = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g; - - var fcssescape = function( ch, asCodePoint ) { - if ( asCodePoint ) { - - // U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER - if ( ch === "\0" ) { - return "\uFFFD"; - } - - // Control characters and (dependent upon position) numbers get escaped as code points - return ch.slice( 0, -1 ) + "\\" + ch.charCodeAt( ch.length - 1 ).toString( 16 ) + " "; - } - - // Other potentially-special ASCII characters get backslash-escaped - return "\\" + ch; - }; - - $.escapeSelector = function( sel ) { - return ( sel + "" ).replace( rcssescape, fcssescape ); + $.escapeSelector = function( id ) { + return CSS.escape( id + "" ); }; } diff --git a/app/assets/javascripts/jquery-ui/keycode.js b/app/assets/javascripts/jquery-ui/keycode.js index a9bdecf..e2dfe97 100644 --- a/app/assets/javascripts/jquery-ui/keycode.js +++ b/app/assets/javascripts/jquery-ui/keycode.js @@ -1,18 +1,18 @@ //= require jquery-ui/version /*! - * jQuery UI Keycode 1.13.0 - * http://jqueryui.com + * jQuery UI Keycode 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license */ //>>label: Keycode //>>group: Core //>>description: Provide keycodes as keynames -//>>docs: http://api.jqueryui.com/jQuery.ui.keyCode/ +//>>docs: https://api.jqueryui.com/jQuery.ui.keyCode/ ( function( factory ) { "use strict"; diff --git a/app/assets/javascripts/jquery-ui/labels.js b/app/assets/javascripts/jquery-ui/labels.js index 6795b13..9f0aad5 100644 --- a/app/assets/javascripts/jquery-ui/labels.js +++ b/app/assets/javascripts/jquery-ui/labels.js @@ -1,18 +1,18 @@ //= require jquery-ui/version /*! - * jQuery UI Labels 1.13.0 - * http://jqueryui.com + * jQuery UI Labels 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license */ //>>label: labels //>>group: Core //>>description: Find all the labels associated with a given input -//>>docs: http://api.jqueryui.com/labels/ +//>>docs: https://api.jqueryui.com/labels/ ( function( factory ) { "use strict"; @@ -41,9 +41,8 @@ return $.fn.labels = function() { return this.pushStack( this[ 0 ].labels ); } - // Support: IE <= 11, FF <= 37, Android <= 2.3 only - // Above browsers do not support control.labels. Everything below is to support them - // as well as document fragments. control.labels does not work on document fragments + // If `control.labels` is empty - e.g. inside of document fragments - find + // the labels manually labels = this.eq( 0 ).parents( "label" ); // Look for the label based on the id @@ -58,7 +57,7 @@ return $.fn.labels = function() { ancestors = ancestor.add( ancestor.length ? ancestor.siblings() : this.siblings() ); // Create a selector for the label based on the id - selector = "label[for='" + $.escapeSelector( id ) + "']"; + selector = "label[for='" + CSS.escape( id ) + "']"; labels = labels.add( ancestors.find( selector ).addBack( selector ) ); diff --git a/app/assets/javascripts/jquery-ui/position.js b/app/assets/javascripts/jquery-ui/position.js index 4724c22..d653932 100644 --- a/app/assets/javascripts/jquery-ui/position.js +++ b/app/assets/javascripts/jquery-ui/position.js @@ -1,21 +1,21 @@ //= require jquery-ui/version /*! - * jQuery UI Position 1.13.0 - * http://jqueryui.com + * jQuery UI Position 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license * - * http://api.jqueryui.com/position/ + * https://api.jqueryui.com/position/ */ //>>label: Position //>>group: Core //>>description: Positions elements relative to other elements. -//>>docs: http://api.jqueryui.com/position/ -//>>demos: http://jqueryui.com/position/ +//>>docs: https://api.jqueryui.com/position/ +//>>demos: https://jqueryui.com/position/ ( function( factory ) { "use strict"; diff --git a/app/assets/javascripts/jquery-ui/safe-active-element.js b/app/assets/javascripts/jquery-ui/safe-active-element.js deleted file mode 100644 index 101fe1f..0000000 --- a/app/assets/javascripts/jquery-ui/safe-active-element.js +++ /dev/null @@ -1,46 +0,0 @@ -//= require jquery-ui/version - -( function( factory ) { - "use strict"; - - if ( typeof define === "function" && define.amd ) { - - // AMD. Register as an anonymous module. - define( [ "jquery", "./version" ], factory ); - } else { - - // Browser globals - factory( jQuery ); - } -} )( function( $ ) { -"use strict"; - -return $.ui.safeActiveElement = function( document ) { - var activeElement; - - // Support: IE 9 only - // IE9 throws an "Unspecified error" accessing document.activeElement from an - try { - activeElement = document.activeElement; - } catch ( error ) { - activeElement = document.body; - } - - // Support: IE 9 - 11 only - // IE may return null instead of an element - // Interestingly, this only seems to occur when NOT in an iframe - if ( !activeElement ) { - activeElement = document.body; - } - - // Support: IE 11 only - // IE11 returns a seemingly empty object in some cases when accessing - // document.activeElement from an - if ( !activeElement.nodeName ) { - activeElement = document.body; - } - - return activeElement; -}; - -} ); diff --git a/app/assets/javascripts/jquery-ui/safe-blur.js b/app/assets/javascripts/jquery-ui/safe-blur.js deleted file mode 100644 index 65609f5..0000000 --- a/app/assets/javascripts/jquery-ui/safe-blur.js +++ /dev/null @@ -1,27 +0,0 @@ -//= require jquery-ui/version - -( function( factory ) { - "use strict"; - - if ( typeof define === "function" && define.amd ) { - - // AMD. Register as an anonymous module. - define( [ "jquery", "./version" ], factory ); - } else { - - // Browser globals - factory( jQuery ); - } -} )( function( $ ) { -"use strict"; - -return $.ui.safeBlur = function( element ) { - - // Support: IE9 - 10 only - // If the is blurred, IE will switch windows, see #9420 - if ( element && element.nodeName.toLowerCase() !== "body" ) { - $( element ).trigger( "blur" ); - } -}; - -} ); diff --git a/app/assets/javascripts/jquery-ui/scroll-parent.js b/app/assets/javascripts/jquery-ui/scroll-parent.js index 82f8464..75d07cf 100644 --- a/app/assets/javascripts/jquery-ui/scroll-parent.js +++ b/app/assets/javascripts/jquery-ui/scroll-parent.js @@ -1,18 +1,18 @@ //= require jquery-ui/version /*! - * jQuery UI Scroll Parent 1.13.0 - * http://jqueryui.com + * jQuery UI Scroll Parent 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license */ //>>label: scrollParent //>>group: Core //>>description: Get the closest ancestor element that is scrollable. -//>>docs: http://api.jqueryui.com/scrollParent/ +//>>docs: https://api.jqueryui.com/scrollParent/ ( function( factory ) { "use strict"; diff --git a/app/assets/javascripts/jquery-ui/tabbable.js b/app/assets/javascripts/jquery-ui/tabbable.js index 0a1b829..4929f7b 100644 --- a/app/assets/javascripts/jquery-ui/tabbable.js +++ b/app/assets/javascripts/jquery-ui/tabbable.js @@ -2,18 +2,18 @@ //= require jquery-ui/focusable /*! - * jQuery UI Tabbable 1.13.0 - * http://jqueryui.com + * jQuery UI Tabbable 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license */ //>>label: :tabbable Selector //>>group: Core //>>description: Selects elements which can be tabbed to. -//>>docs: http://api.jqueryui.com/tabbable-selector/ +//>>docs: https://api.jqueryui.com/tabbable-selector/ ( function( factory ) { "use strict"; diff --git a/app/assets/javascripts/jquery-ui/unique-id.js b/app/assets/javascripts/jquery-ui/unique-id.js index 9ce7e27..543da1c 100644 --- a/app/assets/javascripts/jquery-ui/unique-id.js +++ b/app/assets/javascripts/jquery-ui/unique-id.js @@ -1,18 +1,18 @@ //= require jquery-ui/version /*! - * jQuery UI Unique ID 1.13.0 - * http://jqueryui.com + * jQuery UI Unique ID 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license */ //>>label: uniqueId //>>group: Core //>>description: Functions to generate and remove uniqueId's -//>>docs: http://api.jqueryui.com/uniqueId/ +//>>docs: https://api.jqueryui.com/uniqueId/ ( function( factory ) { "use strict"; diff --git a/app/assets/javascripts/jquery-ui/vendor/jquery-color/jquery.color.js b/app/assets/javascripts/jquery-ui/vendor/jquery-color/jquery.color.js index c291d96..5fde068 100644 --- a/app/assets/javascripts/jquery-ui/vendor/jquery-color/jquery.color.js +++ b/app/assets/javascripts/jquery-ui/vendor/jquery-color/jquery.color.js @@ -1,15 +1,17 @@ /*! - * jQuery Color Animations v2.2.0 + * jQuery Color Animations v3.0.0 * https://github.com/jquery/jquery-color * * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license * - * Date: Sun May 10 09:02:36 2020 +0200 + * Date: Wed May 15 16:49:44 2024 +0200 */ ( function( root, factory ) { + "use strict"; + if ( typeof define === "function" && define.amd ) { // AMD. Register as an anonymous module. @@ -20,6 +22,7 @@ factory( root.jQuery ); } } )( this, function( jQuery, undefined ) { + "use strict"; var stepHooks = "backgroundColor borderBottomColor borderLeftColor borderRightColor " + "borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor", @@ -145,10 +148,6 @@ floor: true } }, - support = color.support = {}, - - // element for support tests - supportElem = jQuery( "" )[ 0 ], // colors = jQuery.Color.names colors, @@ -156,10 +155,6 @@ // local aliases of functions called often each = jQuery.each; -// determine rgba support immediately -supportElem.style.cssText = "background-color:rgba(1,1,1,.5)"; -support.rgba = supportElem.style.backgroundColor.indexOf( "rgba" ) > -1; - // define cache name and alpha properties // for rgba and hsla spaces each( spaces, function( spaceName, space ) { @@ -197,12 +192,6 @@ function clamp( value, prop, allowEmpty ) { // ~~ is an short way of doing floor for positive numbers value = type.floor ? ~~value : parseFloat( value ); - // IE will pass in empty strings as value for alpha, - // which will hit this case - if ( isNaN( value ) ) { - return prop.def; - } - if ( type.mod ) { // we add mod before modding to make sure that negatives values @@ -315,7 +304,10 @@ color.fn = jQuery.extend( color.prototype, { } ); // everything defined but alpha? - if ( inst[ cache ] && jQuery.inArray( null, inst[ cache ].slice( 0, 3 ) ) < 0 ) { + if ( inst[ cache ] && jQuery.inArray( + null, + inst[ cache ].slice( 0, 3 ) + ) < 0 ) { // use the default of 1 if ( inst[ cache ][ 3 ] == null ) { @@ -427,7 +419,7 @@ color.fn = jQuery.extend( color.prototype, { prefix = "rgb("; } - return prefix + rgba.join() + ")"; + return prefix + rgba.join( ", " ) + ")"; }, toHslaString: function() { var prefix = "hsla(", @@ -447,7 +439,7 @@ color.fn = jQuery.extend( color.prototype, { hsla.pop(); prefix = "hsl("; } - return prefix + hsla.join() + ")"; + return prefix + hsla.join( ", " ) + ")"; }, toHexString: function( includeAlpha ) { var rgba = this._rgba.slice(), @@ -460,12 +452,11 @@ color.fn = jQuery.extend( color.prototype, { return "#" + jQuery.map( rgba, function( v ) { // default to 0 when nulls exist - v = ( v || 0 ).toString( 16 ); - return v.length === 1 ? "0" + v : v; + return ( "0" + ( v || 0 ).toString( 16 ) ).substr( -2 ); } ).join( "" ); }, toString: function() { - return this._rgba[ 3 ] === 0 ? "transparent" : this.toRgbaString(); + return this.toRgbaString(); } } ); color.fn.parse.prototype = color.fn; @@ -632,37 +623,15 @@ color.hook = function( hook ) { each( hooks, function( _i, hook ) { jQuery.cssHooks[ hook ] = { set: function( elem, value ) { - var parsed, curElem, - backgroundColor = ""; + var parsed; - if ( value !== "transparent" && ( getType( value ) !== "string" || ( parsed = stringParse( value ) ) ) ) { + if ( value !== "transparent" && + ( getType( value ) !== "string" || + ( parsed = stringParse( value ) ) ) ) { value = color( parsed || value ); - if ( !support.rgba && value._rgba[ 3 ] !== 1 ) { - curElem = hook === "backgroundColor" ? elem.parentNode : elem; - while ( - ( backgroundColor === "" || backgroundColor === "transparent" ) && - curElem && curElem.style - ) { - try { - backgroundColor = jQuery.css( curElem, "backgroundColor" ); - curElem = curElem.parentNode; - } catch ( e ) { - } - } - - value = value.blend( backgroundColor && backgroundColor !== "transparent" ? - backgroundColor : - "_default" ); - } - value = value.toRgbaString(); } - try { - elem.style[ hook ] = value; - } catch ( e ) { - - // wrapped to prevent IE from throwing errors on "invalid" values like 'auto' or 'inherit' - } + elem.style[ hook ] = value; } }; jQuery.fx.step[ hook ] = function( fx ) { diff --git a/app/assets/javascripts/jquery-ui/version.js b/app/assets/javascripts/jquery-ui/version.js index 267dfe9..56c4a01 100644 --- a/app/assets/javascripts/jquery-ui/version.js +++ b/app/assets/javascripts/jquery-ui/version.js @@ -15,6 +15,6 @@ $.ui = $.ui || {}; -return $.ui.version = "1.13.0"; +return $.ui.version = "1.14.1"; } ); diff --git a/app/assets/javascripts/jquery-ui/widget.js b/app/assets/javascripts/jquery-ui/widget.js index df22731..89dff1a 100644 --- a/app/assets/javascripts/jquery-ui/widget.js +++ b/app/assets/javascripts/jquery-ui/widget.js @@ -1,19 +1,19 @@ //= require jquery-ui/version /*! - * jQuery UI Widget 1.13.0 - * http://jqueryui.com + * jQuery UI Widget 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license */ //>>label: Widget //>>group: Core //>>description: Provides a factory for creating stateful widgets with a common API. -//>>docs: http://api.jqueryui.com/jQuery.widget/ -//>>demos: http://jqueryui.com/widget/ +//>>docs: https://api.jqueryui.com/jQuery.widget/ +//>>demos: https://jqueryui.com/widget/ ( function( factory ) { "use strict"; @@ -58,6 +58,9 @@ $.widget = function( name, base, prototype ) { var namespace = name.split( "." )[ 0 ]; name = name.split( "." )[ 1 ]; + if ( name === "__proto__" || name === "constructor" ) { + return $.error( "Invalid widget name: " + name ); + } var fullName = namespace + "-" + name; if ( !prototype ) { @@ -79,7 +82,7 @@ $.widget = function( name, base, prototype ) { constructor = $[ namespace ][ name ] = function( options, element ) { // Allow instantiation without "new" keyword - if ( !this._createWidget ) { + if ( !this || !this._createWidget ) { return new constructor( options, element ); } @@ -501,6 +504,8 @@ $.Widget.prototype = { }, options ); function bindRemoveEvent() { + var nodesToBind = []; + options.element.each( function( _, element ) { var isTracked = $.map( that.classesElementLookup, function( elements ) { return elements; @@ -510,11 +515,13 @@ $.Widget.prototype = { } ); if ( !isTracked ) { - that._on( $( element ), { - remove: "_untrackClassesElement" - } ); + nodesToBind.push( element ); } } ); + + that._on( $( nodesToBind ), { + remove: "_untrackClassesElement" + } ); } function processClassString( classes, checkOption ) { diff --git a/app/assets/javascripts/jquery-ui/widgets/accordion.js b/app/assets/javascripts/jquery-ui/widgets/accordion.js index c9af264..aba6333 100644 --- a/app/assets/javascripts/jquery-ui/widgets/accordion.js +++ b/app/assets/javascripts/jquery-ui/widgets/accordion.js @@ -4,12 +4,12 @@ //= require jquery-ui/widget /*! - * jQuery UI Accordion 1.13.0 - * http://jqueryui.com + * jQuery UI Accordion 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license */ //>>label: Accordion @@ -17,8 +17,8 @@ /* eslint-disable max-len */ //>>description: Displays collapsible content panels for presenting information in a limited amount of space. /* eslint-enable max-len */ -//>>docs: http://api.jqueryui.com/accordion/ -//>>demos: http://jqueryui.com/accordion/ +//>>docs: https://api.jqueryui.com/accordion/ +//>>demos: https://jqueryui.com/accordion/ //>>css.structure: ../../themes/base/core.css //>>css.structure: ../../themes/base/accordion.css //>>css.theme: ../../themes/base/theme.css @@ -45,7 +45,7 @@ "use strict"; return $.widget( "ui.accordion", { - version: "1.13.0", + version: "1.14.1", options: { active: 0, animate: {}, @@ -57,7 +57,17 @@ return $.widget( "ui.accordion", { collapsible: false, event: "click", header: function( elem ) { - return elem.find( "> li > :first-child" ).add( elem.find( "> :not(li)" ).even() ); + return elem + .find( "> li > :first-child" ) + .add( + elem.find( "> :not(li)" ) + + // Support: jQuery <3.5 only + // We could use `.even()` but that's unavailable in older jQuery. + .filter( function( i ) { + return i % 2 === 0; + } ) + ); }, heightStyle: "auto", icons: { @@ -192,13 +202,7 @@ return $.widget( "ui.accordion", { this._super( value ); this.element.attr( "aria-disabled", value ); - - // Support: IE8 Only - // #5332 / #6059 - opacity doesn't cascade to positioned elements in IE - // so we need to add the disabled class to the headers and panels this._toggleClass( null, "ui-state-disabled", !!value ); - this._toggleClass( this.headers.add( this.headers.next() ), null, "ui-state-disabled", - !!value ); }, _keydown: function( event ) { @@ -616,10 +620,6 @@ return $.widget( "ui.accordion", { this._removeClass( prev, "ui-accordion-header-active" ) ._addClass( prev, "ui-accordion-header-collapsed" ); - // Work around for rendering bug in IE (#5421) - if ( toHide.length ) { - toHide.parent()[ 0 ].className = toHide.parent()[ 0 ].className; - } this._trigger( "activate", null, data ); } } ); diff --git a/app/assets/javascripts/jquery-ui/widgets/autocomplete.js b/app/assets/javascripts/jquery-ui/widgets/autocomplete.js index 2e928fd..56b9868 100644 --- a/app/assets/javascripts/jquery-ui/widgets/autocomplete.js +++ b/app/assets/javascripts/jquery-ui/widgets/autocomplete.js @@ -1,24 +1,23 @@ //= require jquery-ui/widgets/menu //= require jquery-ui/keycode //= require jquery-ui/position -//= require jquery-ui/safe-active-element //= require jquery-ui/version //= require jquery-ui/widget /*! - * jQuery UI Autocomplete 1.13.0 - * http://jqueryui.com + * jQuery UI Autocomplete 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license */ //>>label: Autocomplete //>>group: Widgets //>>description: Lists suggested words as the user is typing. -//>>docs: http://api.jqueryui.com/autocomplete/ -//>>demos: http://jqueryui.com/autocomplete/ +//>>docs: https://api.jqueryui.com/autocomplete/ +//>>demos: https://jqueryui.com/autocomplete/ //>>css.structure: ../../themes/base/core.css //>>css.structure: ../../themes/base/autocomplete.css //>>css.theme: ../../themes/base/theme.css @@ -34,7 +33,6 @@ "./menu", "../keycode", "../position", - "../safe-active-element", "../version", "../widget" ], factory ); @@ -47,7 +45,7 @@ "use strict"; $.widget( "ui.autocomplete", { - version: "1.13.0", + version: "1.14.1", defaultElement: "", options: { appendTo: null, @@ -73,6 +71,7 @@ $.widget( "ui.autocomplete", { requestIndex: 0, pending: 0, + liveRegionTimer: null, _create: function() { @@ -90,9 +89,9 @@ $.widget( "ui.autocomplete", { // Textareas are always multi-line // Inputs are always single-line, even if inside a contentEditable element - // IE also treats inputs as contentEditable - // All other element types are determined by whether or not they're contentEditable - this.isMultiLine = isTextarea || !isInput && this._isContentEditable( this.element ); + // All other element types are determined by whether they're contentEditable + this.isMultiLine = isTextarea || + !isInput && this.element.prop( "contentEditable" ) === "true"; this.valueMethod = this.element[ isTextarea || isInput ? "val" : "text" ]; this.isNewMenu = true; @@ -156,7 +155,6 @@ $.widget( "ui.autocomplete", { // Different browsers have different default behavior for escape // Single press can mean undo or clear - // Double press in IE means clear the whole form event.preventDefault(); } break; @@ -225,16 +223,6 @@ $.widget( "ui.autocomplete", { role: null } ) .hide() - - // Support: IE 11 only, Edge <= 14 - // For other browsers, we preventDefault() on the mousedown event - // to keep the dropdown from taking focus from the input. This doesn't - // work for IE/Edge, causing problems with selection and scrolling (#9638) - // Happily, IE and Edge support an "unselectable" attribute that - // prevents an element from receiving focus, exactly what we want here. - .attr( { - "unselectable": "on" - } ) .menu( "instance" ); this._addClass( this.menu.element, "ui-autocomplete", "ui-front" ); @@ -247,7 +235,7 @@ $.widget( "ui.autocomplete", { menufocus: function( event, ui ) { var label, item; - // support: Firefox + // Support: Firefox // Prevent accidental activation of menu items in Firefox (#7024 #9118) if ( this.isNewMenu ) { this.isNewMenu = false; @@ -274,8 +262,10 @@ $.widget( "ui.autocomplete", { // Announce the value in the liveRegion label = ui.item.attr( "aria-label" ) || item.value; if ( label && String.prototype.trim.call( label ).length ) { - this.liveRegion.children().hide(); - $( "" ).text( label ).appendTo( this.liveRegion ); + clearTimeout( this.liveRegionTimer ); + this.liveRegionTimer = this._delay( function() { + this.liveRegion.html( $( "" ).text( label ) ); + }, 100 ); } }, menuselect: function( event, ui ) { @@ -283,17 +273,9 @@ $.widget( "ui.autocomplete", { previous = this.previous; // Only trigger when focus was lost (click on menu) - if ( this.element[ 0 ] !== $.ui.safeActiveElement( this.document[ 0 ] ) ) { + if ( this.element[ 0 ] !== this.document[ 0 ].activeElement ) { this.element.trigger( "focus" ); this.previous = previous; - - // #6109 - IE triggers two focus events and the second - // is asynchronous, so we need to reset the previous - // term synchronously and asynchronously :-( - this._delay( function() { - this.previous = previous; - this.selectedItem = item; - } ); } if ( false !== this._trigger( "select", event, { item: item } ) ) { @@ -612,24 +594,6 @@ $.widget( "ui.autocomplete", { // Prevents moving cursor to beginning/end of the text field in some browsers event.preventDefault(); } - }, - - // Support: Chrome <=50 - // We should be able to just use this.element.prop( "isContentEditable" ) - // but hidden elements always report false in Chrome. - // https://code.google.com/p/chromium/issues/detail?id=313082 - _isContentEditable: function( element ) { - if ( !element.length ) { - return false; - } - - var editable = element.prop( "contentEditable" ); - - if ( editable === "inherit" ) { - return this._isContentEditable( element.parent() ); - } - - return editable === "true"; } } ); @@ -670,8 +634,10 @@ $.widget( "ui.autocomplete", $.ui.autocomplete, { } else { message = this.options.messages.noResults; } - this.liveRegion.children().hide(); - $( "" ).text( message ).appendTo( this.liveRegion ); + clearTimeout( this.liveRegionTimer ); + this.liveRegionTimer = this._delay( function() { + this.liveRegion.html( $( "" ).text( message ) ); + }, 100 ); } } ); diff --git a/app/assets/javascripts/jquery-ui/widgets/button.js b/app/assets/javascripts/jquery-ui/widgets/button.js index dcd2a1d..6aee878 100644 --- a/app/assets/javascripts/jquery-ui/widgets/button.js +++ b/app/assets/javascripts/jquery-ui/widgets/button.js @@ -4,19 +4,19 @@ //= require jquery-ui/widget /*! - * jQuery UI Button 1.13.0 - * http://jqueryui.com + * jQuery UI Button 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license */ //>>label: Button //>>group: Widgets //>>description: Enhances a form with themeable buttons. -//>>docs: http://api.jqueryui.com/button/ -//>>demos: http://jqueryui.com/button/ +//>>docs: https://api.jqueryui.com/button/ +//>>demos: https://jqueryui.com/button/ //>>css.structure: ../../themes/base/core.css //>>css.structure: ../../themes/base/button.css //>>css.theme: ../../themes/base/theme.css @@ -47,7 +47,7 @@ "use strict"; $.widget( "ui.button", { - version: "1.13.0", + version: "1.14.1", defaultElement: "", options: { classes: { @@ -114,9 +114,9 @@ $.widget( "ui.button", { if ( event.keyCode === $.ui.keyCode.SPACE ) { event.preventDefault(); - // Support: PhantomJS <= 1.9, IE 8 Only - // If a native click is available use it so we actually cause navigation - // otherwise just trigger a click event + // If a native click is available use it, so we + // actually cause navigation. Otherwise, just trigger + // a click event. if ( this.element[ 0 ].click ) { this.element[ 0 ].click(); } else { @@ -292,7 +292,7 @@ $.widget( "ui.button", { } ); // DEPRECATED -if ( $.uiBackCompat !== false ) { +if ( $.uiBackCompat === true ) { // Text and Icons options $.widget( "ui.button", $.ui.button, { diff --git a/app/assets/javascripts/jquery-ui/widgets/checkboxradio.js b/app/assets/javascripts/jquery-ui/widgets/checkboxradio.js index dac61b0..210a74b 100644 --- a/app/assets/javascripts/jquery-ui/widgets/checkboxradio.js +++ b/app/assets/javascripts/jquery-ui/widgets/checkboxradio.js @@ -3,19 +3,19 @@ //= require jquery-ui/widget /*! - * jQuery UI Checkboxradio 1.13.0 - * http://jqueryui.com + * jQuery UI Checkboxradio 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license */ //>>label: Checkboxradio //>>group: Widgets //>>description: Enhances a form with multiple themeable checkboxes or radio buttons. -//>>docs: http://api.jqueryui.com/checkboxradio/ -//>>demos: http://jqueryui.com/checkboxradio/ +//>>docs: https://api.jqueryui.com/checkboxradio/ +//>>demos: https://jqueryui.com/checkboxradio/ //>>css.structure: ../../themes/base/core.css //>>css.structure: ../../themes/base/button.css //>>css.structure: ../../themes/base/checkboxradio.css @@ -42,7 +42,7 @@ "use strict"; $.widget( "ui.checkboxradio", [ $.ui.formResetMixin, { - version: "1.13.0", + version: "1.14.1", options: { disabled: null, label: null, @@ -54,8 +54,7 @@ $.widget( "ui.checkboxradio", [ $.ui.formResetMixin, { }, _getCreateOptions: function() { - var disabled, labels; - var that = this; + var disabled, labels, labelContents; var options = this._super() || {}; // We read the type here, because it makes more sense to throw a element type error first, @@ -75,12 +74,18 @@ $.widget( "ui.checkboxradio", [ $.ui.formResetMixin, { // We need to get the label text but this may also need to make sure it does not contain the // input itself. - this.label.contents().not( this.element[ 0 ] ).each( function() { - - // The label contents could be text, html, or a mix. We concat each element to get a - // string representation of the label, without the input as part of it. - that.originalLabel += this.nodeType === 3 ? $( this ).text() : this.outerHTML; - } ); + // The label contents could be text, html, or a mix. We wrap all elements + // and read the wrapper's `innerHTML` to get a string representation of + // the label, without the input as part of it. + labelContents = this.label.contents().not( this.element[ 0 ] ); + + if ( labelContents.length ) { + this.originalLabel += labelContents + .clone() + .wrapAll( "" ) + .parent() + .html(); + } // Set the label option if we found label text if ( this.originalLabel ) { @@ -155,7 +160,7 @@ $.widget( "ui.checkboxradio", [ $.ui.formResetMixin, { _getRadioGroup: function() { var group; var name = this.element[ 0 ].name; - var nameSelector = "input[name='" + $.escapeSelector( name ) + "']"; + var nameSelector = "input[name='" + CSS.escape( name ) + "']"; if ( !name ) { return $( [] ); @@ -167,7 +172,7 @@ $.widget( "ui.checkboxradio", [ $.ui.formResetMixin, { // Not inside a form, check all inputs that also are not inside a form group = $( nameSelector ).filter( function() { - return $( this )._form().length === 0; + return $( $( this ).prop( "form" ) ).length === 0; } ); } diff --git a/app/assets/javascripts/jquery-ui/widgets/controlgroup.js b/app/assets/javascripts/jquery-ui/widgets/controlgroup.js index a455b76..7730413 100644 --- a/app/assets/javascripts/jquery-ui/widgets/controlgroup.js +++ b/app/assets/javascripts/jquery-ui/widgets/controlgroup.js @@ -1,19 +1,19 @@ //= require jquery-ui/widget /*! - * jQuery UI Controlgroup 1.13.0 - * http://jqueryui.com + * jQuery UI Controlgroup 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license */ //>>label: Controlgroup //>>group: Widgets //>>description: Visually groups form control widgets -//>>docs: http://api.jqueryui.com/controlgroup/ -//>>demos: http://jqueryui.com/controlgroup/ +//>>docs: https://api.jqueryui.com/controlgroup/ +//>>demos: https://jqueryui.com/controlgroup/ //>>css.structure: ../../themes/base/core.css //>>css.structure: ../../themes/base/controlgroup.css //>>css.theme: ../../themes/base/theme.css @@ -39,7 +39,7 @@ var controlgroupCornerRegex = /ui-corner-([a-z]){2,6}/g; return $.widget( "ui.controlgroup", { - version: "1.13.0", + version: "1.14.1", defaultElement: "", options: { direction: "horizontal", diff --git a/app/assets/javascripts/jquery-ui/widgets/datepicker.js b/app/assets/javascripts/jquery-ui/widgets/datepicker.js index 4cf031b..18b6017 100644 --- a/app/assets/javascripts/jquery-ui/widgets/datepicker.js +++ b/app/assets/javascripts/jquery-ui/widgets/datepicker.js @@ -3,19 +3,19 @@ /* eslint-disable max-len, camelcase */ /*! - * jQuery UI Datepicker 1.13.0 - * http://jqueryui.com + * jQuery UI Datepicker 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license */ //>>label: Datepicker //>>group: Widgets //>>description: Displays a calendar from an input or inline for selecting dates. -//>>docs: http://api.jqueryui.com/datepicker/ -//>>demos: http://jqueryui.com/datepicker/ +//>>docs: https://api.jqueryui.com/datepicker/ +//>>demos: https://jqueryui.com/datepicker/ //>>css.structure: ../../themes/base/core.css //>>css.structure: ../../themes/base/datepicker.css //>>css.theme: ../../themes/base/theme.css @@ -39,7 +39,7 @@ } )( function( $ ) { "use strict"; -$.extend( $.ui, { datepicker: { version: "1.13.0" } } ); +$.extend( $.ui, { datepicker: { version: "1.14.1" } } ); var datepicker_instActive; @@ -356,7 +356,7 @@ $.extend( Datepicker.prototype, { } // Set display:block in place of inst.dpDiv.show() which won't work on disconnected elements - // http://bugs.jqueryui.com/ticket/7552 - A Datepicker created on a detached div has zero height + // https://bugs.jqueryui.com/ticket/7552 - A Datepicker created on a detached div has zero height inst.dpDiv.css( "display", "block" ); }, @@ -438,6 +438,7 @@ $.extend( Datepicker.prototype, { $target.removeClass( this.markerClassName ).empty(); } + $.datepicker._hideDatepicker(); if ( datepicker_instActive === inst ) { datepicker_instActive = null; this._curInst = null; @@ -913,11 +914,8 @@ $.extend( Datepicker.prototype, { } }, - // #6694 - don't focus the input if it's already focused - // this breaks the change event in IE - // Support: IE and jQuery <1.9 _shouldFocusInput: function( inst ) { - return inst.input && inst.input.is( ":visible" ) && !inst.input.is( ":disabled" ) && !inst.input.is( ":focus" ); + return inst.input && inst.input.is( ":visible" ) && !inst.input.is( ":disabled" ); }, /* Check positioning to remain on screen. */ @@ -974,8 +972,7 @@ $.extend( Datepicker.prototype, { $.datepicker._tidyDialog( inst ); }; - // DEPRECATED: after BC for 1.8.x $.effects[ showAnim ] is not needed - if ( $.effects && ( $.effects.effect[ showAnim ] || $.effects[ showAnim ] ) ) { + if ( $.effects && ( $.effects.effect[ showAnim ] ) ) { inst.dpDiv.hide( showAnim, $.datepicker._get( inst, "showOptions" ), duration, postProcess ); } else { inst.dpDiv[ ( showAnim === "slideDown" ? "slideUp" : @@ -2236,7 +2233,7 @@ $.fn.datepicker = function( options ) { $.datepicker = new Datepicker(); // singleton instance $.datepicker.initialized = false; $.datepicker.uuid = new Date().getTime(); -$.datepicker.version = "1.13.0"; +$.datepicker.version = "1.14.1"; return $.datepicker; diff --git a/app/assets/javascripts/jquery-ui/widgets/dialog.js b/app/assets/javascripts/jquery-ui/widgets/dialog.js index 27ddf52..33f6ab1 100644 --- a/app/assets/javascripts/jquery-ui/widgets/dialog.js +++ b/app/assets/javascripts/jquery-ui/widgets/dialog.js @@ -5,27 +5,25 @@ //= require jquery-ui/focusable //= require jquery-ui/keycode //= require jquery-ui/position -//= require jquery-ui/safe-active-element -//= require jquery-ui/safe-blur //= require jquery-ui/tabbable //= require jquery-ui/unique-id //= require jquery-ui/version //= require jquery-ui/widget /*! - * jQuery UI Dialog 1.13.0 - * http://jqueryui.com + * jQuery UI Dialog 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license */ //>>label: Dialog //>>group: Widgets //>>description: Displays customizable dialog windows. -//>>docs: http://api.jqueryui.com/dialog/ -//>>demos: http://jqueryui.com/dialog/ +//>>docs: https://api.jqueryui.com/dialog/ +//>>demos: https://jqueryui.com/dialog/ //>>css.structure: ../../themes/base/core.css //>>css.structure: ../../themes/base/dialog.css //>>css.theme: ../../themes/base/theme.css @@ -45,8 +43,6 @@ "../focusable", "../keycode", "../position", - "../safe-active-element", - "../safe-blur", "../tabbable", "../unique-id", "../version", @@ -61,7 +57,7 @@ "use strict"; $.widget( "ui.dialog", { - version: "1.13.0", + version: "1.14.1", options: { appendTo: "body", autoOpen: true, @@ -97,6 +93,7 @@ $.widget( "ui.dialog", { resizable: true, show: null, title: null, + uiDialogTitleHeadingLevel: 0, width: 300, // Callbacks @@ -243,7 +240,7 @@ $.widget( "ui.dialog", { // Hiding a focused element doesn't trigger blur in WebKit // so in case we have nothing to focus on, explicitly blur the active element // https://bugs.webkit.org/show_bug.cgi?id=47182 - $.ui.safeBlur( $.ui.safeActiveElement( this.document[ 0 ] ) ); + $( this.document[ 0 ].activeElement ).trigger( "blur" ); } this._hide( this.uiDialog, this.options.hide, function() { @@ -287,7 +284,7 @@ $.widget( "ui.dialog", { } this._isOpen = true; - this.opener = $( $.ui.safeActiveElement( this.document[ 0 ] ) ); + this.opener = $( this.document[ 0 ].activeElement ); this._size(); this._position(); @@ -343,7 +340,7 @@ $.widget( "ui.dialog", { }, _restoreTabbableFocus: function() { - var activeElement = $.ui.safeActiveElement( this.document[ 0 ] ), + var activeElement = this.document[ 0 ].activeElement, isActive = this.uiDialog[ 0 ] === activeElement || $.contains( this.uiDialog[ 0 ], activeElement ); if ( !isActive ) { @@ -354,11 +351,6 @@ $.widget( "ui.dialog", { _keepFocus: function( event ) { event.preventDefault(); this._restoreTabbableFocus(); - - // support: IE - // IE <= 8 doesn't prevent moving focus even with event.preventDefault() - // so we check again later - this._delay( this._restoreTabbableFocus ); }, _createWrapper: function() { @@ -368,7 +360,8 @@ $.widget( "ui.dialog", { // Setting tabIndex makes the div focusable tabIndex: -1, - role: "dialog" + role: "dialog", + "aria-modal": this.options.modal ? "true" : null } ) .appendTo( this._appendTo() ); @@ -441,9 +434,6 @@ $.widget( "ui.dialog", { } } ); - // Support: IE - // Use type="button" to prevent enter keypresses in textboxes from closing the - // dialog in IE (#9312) this.uiDialogTitlebarClose = $( "" ) .button( { label: $( "" ).text( this.options.closeText ).html(), @@ -460,7 +450,13 @@ $.widget( "ui.dialog", { } } ); - uiDialogTitle = $( "" ).uniqueId().prependTo( this.uiDialogTitlebar ); + var uiDialogHeadingLevel = Number.isInteger( this.options.uiDialogTitleHeadingLevel ) && + this.options.uiDialogTitleHeadingLevel > 0 && + this.options.uiDialogTitleHeadingLevel <= 6 ? + "h" + this.options.uiDialogTitleHeadingLevel : "span"; + + uiDialogTitle = $( "<" + uiDialogHeadingLevel + ">" ) + .uniqueId().prependTo( this.uiDialogTitlebar ); this._addClass( uiDialogTitle, "ui-dialog-title" ); this._title( uiDialogTitle ); @@ -786,6 +782,10 @@ $.widget( "ui.dialog", { if ( key === "title" ) { this._title( this.uiDialogTitlebar.find( ".ui-dialog-title" ) ); } + + if ( key === "modal" ) { + uiDialog.attr( "aria-modal", value ? "true" : null ); + } }, _size: function() { @@ -871,8 +871,6 @@ $.widget( "ui.dialog", { return; } - var jqMinor = $.fn.jquery.substring( 0, 4 ); - // We use a delay in case the overlay is created from an // event that we're going to be cancelling (#2804) var isOpening = true; @@ -894,15 +892,6 @@ $.widget( "ui.dialog", { if ( !instance._allowInteraction( event ) ) { event.preventDefault(); instance._focusTabbable(); - - // Support: jQuery >=3.4 <3.6 only - // Focus re-triggering in jQuery 3.4/3.5 makes the original element - // have its focus event propagated last, breaking the re-targeting. - // Trigger focus in a delay in addition if needed to avoid the issue - // See https://github.com/jquery/jquery/issues/4382 - if ( jqMinor === "3.4." || jqMinor === "3.5." ) { - instance._delay( instance._restoreTabbableFocus ); - } } }.bind( this ) ); } @@ -941,7 +930,7 @@ $.widget( "ui.dialog", { // DEPRECATED // TODO: switch return back to widget declaration at top of file when this is removed -if ( $.uiBackCompat !== false ) { +if ( $.uiBackCompat === true ) { // Backcompat for dialogClass option $.widget( "ui.dialog", $.ui.dialog, { diff --git a/app/assets/javascripts/jquery-ui/widgets/draggable.js b/app/assets/javascripts/jquery-ui/widgets/draggable.js index 9b13f10..2565685 100644 --- a/app/assets/javascripts/jquery-ui/widgets/draggable.js +++ b/app/assets/javascripts/jquery-ui/widgets/draggable.js @@ -1,26 +1,24 @@ //= require jquery-ui/widgets/mouse //= require jquery-ui/data //= require jquery-ui/plugin -//= require jquery-ui/safe-active-element -//= require jquery-ui/safe-blur //= require jquery-ui/scroll-parent //= require jquery-ui/version //= require jquery-ui/widget /*! - * jQuery UI Draggable 1.13.0 - * http://jqueryui.com + * jQuery UI Draggable 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license */ //>>label: Draggable //>>group: Interactions //>>description: Enables dragging functionality for any element. -//>>docs: http://api.jqueryui.com/draggable/ -//>>demos: http://jqueryui.com/draggable/ +//>>docs: https://api.jqueryui.com/draggable/ +//>>demos: https://jqueryui.com/draggable/ //>>css.structure: ../../themes/base/draggable.css ( function( factory ) { @@ -34,8 +32,6 @@ "./mouse", "../data", "../plugin", - "../safe-active-element", - "../safe-blur", "../scroll-parent", "../version", "../widget" @@ -49,7 +45,7 @@ "use strict"; $.widget( "ui.draggable", $.ui.mouse, { - version: "1.13.0", + version: "1.14.1", widgetEventPrefix: "drag", options: { addClasses: true, @@ -156,7 +152,7 @@ $.widget( "ui.draggable", $.ui.mouse, { }, _blurActiveElement: function( event ) { - var activeElement = $.ui.safeActiveElement( this.document[ 0 ] ), + var activeElement = this.document[ 0 ].activeElement, target = $( event.target ); // Don't blur if the event occurred on an element that is within @@ -167,7 +163,7 @@ $.widget( "ui.draggable", $.ui.mouse, { } // Blur any element that currently has focus, see #4261 - $.ui.safeBlur( activeElement ); + $( activeElement ).trigger( "blur" ); }, _mouseStart: function( event ) { @@ -395,7 +391,7 @@ $.widget( "ui.draggable", $.ui.mouse, { o.appendTo ) ); } - // Http://bugs.jqueryui.com/ticket/9446 + // https://bugs.jqueryui.com/ticket/9446 // a helper function can return the original element // which wouldn't have been set to relative in _create if ( helperIsFunction && helper[ 0 ] === this.element[ 0 ] ) { diff --git a/app/assets/javascripts/jquery-ui/widgets/droppable.js b/app/assets/javascripts/jquery-ui/widgets/droppable.js index c73c296..9b8071c 100644 --- a/app/assets/javascripts/jquery-ui/widgets/droppable.js +++ b/app/assets/javascripts/jquery-ui/widgets/droppable.js @@ -4,19 +4,19 @@ //= require jquery-ui/widget /*! - * jQuery UI Droppable 1.13.0 - * http://jqueryui.com + * jQuery UI Droppable 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license */ //>>label: Droppable //>>group: Interactions //>>description: Enables drop targets for draggable elements. -//>>docs: http://api.jqueryui.com/droppable/ -//>>demos: http://jqueryui.com/droppable/ +//>>docs: https://api.jqueryui.com/droppable/ +//>>demos: https://jqueryui.com/droppable/ ( function( factory ) { "use strict"; @@ -40,7 +40,7 @@ "use strict"; $.widget( "ui.droppable", { - version: "1.13.0", + version: "1.14.1", widgetEventPrefix: "drop", options: { accept: "*", @@ -468,7 +468,7 @@ $.ui.ddmanager = { // DEPRECATED // TODO: switch return back to widget declaration at top of file when this is removed -if ( $.uiBackCompat !== false ) { +if ( $.uiBackCompat === true ) { // Backcompat for activeClass and hoverClass options $.widget( "ui.droppable", $.ui.droppable, { diff --git a/app/assets/javascripts/jquery-ui/widgets/menu.js b/app/assets/javascripts/jquery-ui/widgets/menu.js index 205f4b6..f65a260 100644 --- a/app/assets/javascripts/jquery-ui/widgets/menu.js +++ b/app/assets/javascripts/jquery-ui/widgets/menu.js @@ -1,24 +1,23 @@ //= require jquery-ui/keycode //= require jquery-ui/position -//= require jquery-ui/safe-active-element //= require jquery-ui/unique-id //= require jquery-ui/version //= require jquery-ui/widget /*! - * jQuery UI Menu 1.13.0 - * http://jqueryui.com + * jQuery UI Menu 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license */ //>>label: Menu //>>group: Widgets //>>description: Creates nestable menus. -//>>docs: http://api.jqueryui.com/menu/ -//>>demos: http://jqueryui.com/menu/ +//>>docs: https://api.jqueryui.com/menu/ +//>>demos: https://jqueryui.com/menu/ //>>css.structure: ../../themes/base/core.css //>>css.structure: ../../themes/base/menu.css //>>css.theme: ../../themes/base/theme.css @@ -33,7 +32,6 @@ "jquery", "../keycode", "../position", - "../safe-active-element", "../unique-id", "../version", "../widget" @@ -47,7 +45,7 @@ "use strict"; return $.widget( "ui.menu", { - version: "1.13.0", + version: "1.14.1", defaultElement: "", delay: 300, options: { @@ -94,7 +92,7 @@ return $.widget( "ui.menu", { }, "click .ui-menu-item": function( event ) { var target = $( event.target ); - var active = $( $.ui.safeActiveElement( this.document[ 0 ] ) ); + var active = $( this.document[ 0 ].activeElement ); if ( !this.mouseHandled && target.not( ".ui-state-disabled" ).length ) { this.select( event ); @@ -138,7 +136,7 @@ return $.widget( "ui.menu", { this._delay( function() { var notContained = !$.contains( this.element[ 0 ], - $.ui.safeActiveElement( this.document[ 0 ] ) + this.document[ 0 ].activeElement ); if ( notContained ) { this.collapseAll( event ); diff --git a/app/assets/javascripts/jquery-ui/widgets/mouse.js b/app/assets/javascripts/jquery-ui/widgets/mouse.js index 5a46829..92b6967 100644 --- a/app/assets/javascripts/jquery-ui/widgets/mouse.js +++ b/app/assets/javascripts/jquery-ui/widgets/mouse.js @@ -1,20 +1,19 @@ -//= require jquery-ui/ie //= require jquery-ui/version //= require jquery-ui/widget /*! - * jQuery UI Mouse 1.13.0 - * http://jqueryui.com + * jQuery UI Mouse 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license */ //>>label: Mouse //>>group: Widgets //>>description: Abstracts mouse-based interactions to assist in creating certain widgets. -//>>docs: http://api.jqueryui.com/mouse/ +//>>docs: https://api.jqueryui.com/mouse/ ( function( factory ) { "use strict"; @@ -24,7 +23,6 @@ // AMD. Register as an anonymous module. define( [ "jquery", - "../ie", "../version", "../widget" ], factory ); @@ -42,7 +40,7 @@ $( document ).on( "mouseup", function() { } ); return $.widget( "ui.mouse", { - version: "1.13.0", + version: "1.14.1", options: { cancel: "input, textarea, button, select, option", distance: 1, @@ -94,12 +92,10 @@ return $.widget( "ui.mouse", { this._mouseDownEvent = event; var that = this, - btnIsLeft = ( event.which === 1 ), - - // event.target.nodeName works around a bug in IE 8 with - // disabled inputs (#7620) - elIsCancel = ( typeof this.options.cancel === "string" && event.target.nodeName ? - $( event.target ).closest( this.options.cancel ).length : false ); + btnIsLeft = event.which === 1, + elIsCancel = typeof this.options.cancel === "string" ? + $( event.target ).closest( this.options.cancel ).length : + false; if ( !btnIsLeft || elIsCancel || !this._mouseCapture( event ) ) { return true; } @@ -145,28 +141,17 @@ return $.widget( "ui.mouse", { _mouseMove: function( event ) { // Only check for mouseups outside the document if you've moved inside the document - // at least once. This prevents the firing of mouseup in the case of IE<9, which will - // fire a mousemove event if content is placed under the cursor. See #7778 - // Support: IE <9 - if ( this._mouseMoved ) { - - // IE mouseup check - mouseup happened when mouse was out of window - if ( $.ui.ie && ( !document.documentMode || document.documentMode < 9 ) && - !event.button ) { + // at least once. + if ( this._mouseMoved && !event.which ) { + + // Support: Safari <=8 - 9 + // Safari sets which to 0 if you press any of the following keys + // during a drag (#14461) + if ( event.originalEvent.altKey || event.originalEvent.ctrlKey || + event.originalEvent.metaKey || event.originalEvent.shiftKey ) { + this.ignoreMissingWhich = true; + } else if ( !this.ignoreMissingWhich ) { return this._mouseUp( event ); - - // Iframe mouseup check - mouseup occurred in another document - } else if ( !event.which ) { - - // Support: Safari <=8 - 9 - // Safari sets which to 0 if you press any of the following keys - // during a drag (#14461) - if ( event.originalEvent.altKey || event.originalEvent.ctrlKey || - event.originalEvent.metaKey || event.originalEvent.shiftKey ) { - this.ignoreMissingWhich = true; - } else if ( !this.ignoreMissingWhich ) { - return this._mouseUp( event ); - } } } diff --git a/app/assets/javascripts/jquery-ui/widgets/progressbar.js b/app/assets/javascripts/jquery-ui/widgets/progressbar.js index 8e04a5b..7ba1958 100644 --- a/app/assets/javascripts/jquery-ui/widgets/progressbar.js +++ b/app/assets/javascripts/jquery-ui/widgets/progressbar.js @@ -2,12 +2,12 @@ //= require jquery-ui/widget /*! - * jQuery UI Progressbar 1.13.0 - * http://jqueryui.com + * jQuery UI Progressbar 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license */ //>>label: Progressbar @@ -15,8 +15,8 @@ /* eslint-disable max-len */ //>>description: Displays a status indicator for loading state, standard percentage, and other progress indicators. /* eslint-enable max-len */ -//>>docs: http://api.jqueryui.com/progressbar/ -//>>demos: http://jqueryui.com/progressbar/ +//>>docs: https://api.jqueryui.com/progressbar/ +//>>demos: https://jqueryui.com/progressbar/ //>>css.structure: ../../themes/base/core.css //>>css.structure: ../../themes/base/progressbar.css //>>css.theme: ../../themes/base/theme.css @@ -41,7 +41,7 @@ "use strict"; return $.widget( "ui.progressbar", { - version: "1.13.0", + version: "1.14.1", options: { classes: { "ui-progressbar": "ui-corner-all", diff --git a/app/assets/javascripts/jquery-ui/widgets/resizable.js b/app/assets/javascripts/jquery-ui/widgets/resizable.js index 78c326f..fd7e909 100644 --- a/app/assets/javascripts/jquery-ui/widgets/resizable.js +++ b/app/assets/javascripts/jquery-ui/widgets/resizable.js @@ -5,19 +5,19 @@ //= require jquery-ui/widget /*! - * jQuery UI Resizable 1.13.0 - * http://jqueryui.com + * jQuery UI Resizable 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license */ //>>label: Resizable //>>group: Interactions //>>description: Enables resize functionality for any element. -//>>docs: http://api.jqueryui.com/resizable/ -//>>demos: http://jqueryui.com/resizable/ +//>>docs: https://api.jqueryui.com/resizable/ +//>>demos: https://jqueryui.com/resizable/ //>>css.structure: ../../themes/base/core.css //>>css.structure: ../../themes/base/resizable.css //>>css.theme: ../../themes/base/theme.css @@ -45,7 +45,7 @@ "use strict"; $.widget( "ui.resizable", $.ui.mouse, { - version: "1.13.0", + version: "1.14.1", widgetEventPrefix: "resize", options: { alsoResize: false, @@ -86,12 +86,18 @@ $.widget( "ui.resizable", $.ui.mouse, { _hasScroll: function( el, a ) { - if ( $( el ).css( "overflow" ) === "hidden" ) { + var scroll, + has = false, + overflow = $( el ).css( "overflow" ); + + if ( overflow === "hidden" ) { return false; } + if ( overflow === "scroll" ) { + return true; + } - var scroll = ( a && a === "left" ) ? "scrollLeft" : "scrollTop", - has = false; + scroll = ( a && a === "left" ) ? "scrollLeft" : "scrollTop"; if ( el[ scroll ] > 0 ) { return true; @@ -155,9 +161,8 @@ $.widget( "ui.resizable", $.ui.mouse, { }; this.element.css( margins ); - this.originalElement.css( "margin", 0 ); - // support: Safari + // Support: Safari // Prevent Safari textarea resize this.originalResizeStyle = this.originalElement.css( "resize" ); this.originalElement.css( "resize", "none" ); @@ -168,10 +173,6 @@ $.widget( "ui.resizable", $.ui.mouse, { display: "block" } ) ); - // Support: IE9 - // avoid IE jump (hard set the margin) - this.originalElement.css( margins ); - this._proportionallyResize(); } @@ -373,7 +374,7 @@ $.widget( "ui.resizable", $.ui.mouse, { _mouseStart: function( event ) { - var curleft, curtop, cursor, + var curleft, curtop, cursor, calculatedSize, o = this.options, el = this.element; @@ -392,20 +393,24 @@ $.widget( "ui.resizable", $.ui.mouse, { this.offset = this.helper.offset(); this.position = { left: curleft, top: curtop }; + if ( !this._helper ) { + calculatedSize = this._calculateAdjustedElementDimensions( el ); + } + this.size = this._helper ? { width: this.helper.width(), height: this.helper.height() } : { - width: el.width(), - height: el.height() + width: calculatedSize.width, + height: calculatedSize.height }; this.originalSize = this._helper ? { width: el.outerWidth(), height: el.outerHeight() } : { - width: el.width(), - height: el.height() + width: calculatedSize.width, + height: calculatedSize.height }; this.sizeDiff = { @@ -539,15 +544,18 @@ $.widget( "ui.resizable", $.ui.mouse, { if ( this.position.left !== this.prevPosition.left ) { props.left = this.position.left + "px"; } + + this.helper.css( props ); + if ( this.size.width !== this.prevSize.width ) { props.width = this.size.width + "px"; + this.helper.width( props.width ); } if ( this.size.height !== this.prevSize.height ) { props.height = this.size.height + "px"; + this.helper.height( props.height ); } - this.helper.css( props ); - return props; }, @@ -698,6 +706,52 @@ $.widget( "ui.resizable", $.ui.mouse, { }; }, + _calculateAdjustedElementDimensions: function( element ) { + var elWidth, elHeight, paddingBorder, + ce = element.get( 0 ); + + if ( element.css( "box-sizing" ) !== "content-box" || + ( !this._hasScroll( ce ) && !this._hasScroll( ce, "left" ) ) ) { + return { + height: parseFloat( element.css( "height" ) ), + width: parseFloat( element.css( "width" ) ) + }; + } + + // Check if CSS inline styles are set and use those (usually from previous resizes) + elWidth = parseFloat( ce.style.width ); + elHeight = parseFloat( ce.style.height ); + + paddingBorder = this._getPaddingPlusBorderDimensions( element ); + elWidth = isNaN( elWidth ) ? + this._getElementTheoreticalSize( element, paddingBorder, "width" ) : + elWidth; + elHeight = isNaN( elHeight ) ? + this._getElementTheoreticalSize( element, paddingBorder, "height" ) : + elHeight; + + return { + height: elHeight, + width: elWidth + }; + }, + + _getElementTheoreticalSize: function( element, extraSize, dimension ) { + + // offsetWidth/offsetHeight is a rounded sum of content, padding, scroll gutter, and border + var size = Math.max( 0, Math.ceil( + element.get( 0 )[ "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ) ] - + extraSize[ dimension ] - + 0.5 + + // If offsetWidth/offsetHeight is unknown, then we can't determine theoretical size. + // Use an explicit zero to avoid NaN. + // See https://github.com/jquery/jquery/issues/3964 + ) ) || 0; + + return size; + }, + _proportionallyResize: function() { if ( !this._proportionallyResizeElements.length ) { @@ -1052,9 +1106,11 @@ $.ui.plugin.add( "resizable", "alsoResize", { o = that.options; $( o.alsoResize ).each( function() { - var el = $( this ); + var el = $( this ), + elSize = that._calculateAdjustedElementDimensions( el ); + el.data( "ui-resizable-alsoresize", { - width: parseFloat( el.width() ), height: parseFloat( el.height() ), + width: elSize.width, height: elSize.height, left: parseFloat( el.css( "left" ) ), top: parseFloat( el.css( "top" ) ) } ); } ); @@ -1116,7 +1172,7 @@ $.ui.plugin.add( "resizable", "ghost", { // DEPRECATED // TODO: remove after 1.12 - if ( $.uiBackCompat !== false && typeof that.options.ghost === "string" ) { + if ( $.uiBackCompat === true && typeof that.options.ghost === "string" ) { // Ghost option that.ghost.addClass( this.options.ghost ); diff --git a/app/assets/javascripts/jquery-ui/widgets/selectable.js b/app/assets/javascripts/jquery-ui/widgets/selectable.js index 947a9bb..323dd88 100644 --- a/app/assets/javascripts/jquery-ui/widgets/selectable.js +++ b/app/assets/javascripts/jquery-ui/widgets/selectable.js @@ -3,19 +3,19 @@ //= require jquery-ui/widget /*! - * jQuery UI Selectable 1.13.0 - * http://jqueryui.com + * jQuery UI Selectable 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license */ //>>label: Selectable //>>group: Interactions //>>description: Allows groups of elements to be selected with the mouse. -//>>docs: http://api.jqueryui.com/selectable/ -//>>demos: http://jqueryui.com/selectable/ +//>>docs: https://api.jqueryui.com/selectable/ +//>>demos: https://jqueryui.com/selectable/ //>>css.structure: ../../themes/base/selectable.css ( function( factory ) { @@ -39,7 +39,7 @@ "use strict"; return $.widget( "ui.selectable", $.ui.mouse, { - version: "1.13.0", + version: "1.14.1", options: { appendTo: "body", autoRefresh: true, diff --git a/app/assets/javascripts/jquery-ui/widgets/selectmenu.js b/app/assets/javascripts/jquery-ui/widgets/selectmenu.js index 99cbdf4..a8b8d72 100644 --- a/app/assets/javascripts/jquery-ui/widgets/selectmenu.js +++ b/app/assets/javascripts/jquery-ui/widgets/selectmenu.js @@ -8,12 +8,12 @@ //= require jquery-ui/widget /*! - * jQuery UI Selectmenu 1.13.0 - * http://jqueryui.com + * jQuery UI Selectmenu 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license */ //>>label: Selectmenu @@ -21,8 +21,8 @@ /* eslint-disable max-len */ //>>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. /* eslint-enable max-len */ -//>>docs: http://api.jqueryui.com/selectmenu/ -//>>demos: http://jqueryui.com/selectmenu/ +//>>docs: https://api.jqueryui.com/selectmenu/ +//>>demos: https://jqueryui.com/selectmenu/ //>>css.structure: ../../themes/base/core.css //>>css.structure: ../../themes/base/selectmenu.css, ../../themes/base/button.css //>>css.theme: ../../themes/base/theme.css @@ -53,7 +53,7 @@ "use strict"; return $.widget( "ui.selectmenu", [ $.ui.formResetMixin, { - version: "1.13.0", + version: "1.14.1", defaultElement: "", options: { appendTo: null, @@ -176,12 +176,6 @@ return $.widget( "ui.selectmenu", [ $.ui.formResetMixin, { role: "listbox", select: function( event, ui ) { event.preventDefault(); - - // Support: IE8 - // If the item was selected via a click, the text selection - // will be destroyed in IE - that._setSelection(); - that._select( ui.item.data( "ui-selectmenu-item" ), event ); }, focus: function( event, ui ) { @@ -363,7 +357,12 @@ return $.widget( "ui.selectmenu", [ $.ui.formResetMixin, { if ( item.disabled ) { this._addClass( li, null, "ui-state-disabled" ); } - this._setText( wrapper, item.label ); + + if ( item.hidden ) { + li.prop( "hidden", true ); + } else { + this._setText( wrapper, item.label ); + } return li.append( wrapper ).appendTo( ul ); }, @@ -413,20 +412,9 @@ return $.widget( "ui.selectmenu", [ $.ui.formResetMixin, { return; } - if ( window.getSelection ) { - selection = window.getSelection(); - selection.removeAllRanges(); - selection.addRange( this.range ); - - // Support: IE8 - } else { - this.range.select(); - } - - // Support: IE - // Setting the text selection kills the button focus in IE, but - // restoring the focus doesn't kill the selection. - this.button.focus(); + selection = window.getSelection(); + selection.removeAllRanges(); + selection.addRange( this.range ); }, _documentClick: { @@ -436,7 +424,7 @@ return $.widget( "ui.selectmenu", [ $.ui.formResetMixin, { } if ( !$( event.target ).closest( ".ui-selectmenu-menu, #" + - $.escapeSelector( this.ids.button ) ).length ) { + CSS.escape( this.ids.button ) ).length ) { this.close( event ); } } @@ -446,17 +434,9 @@ return $.widget( "ui.selectmenu", [ $.ui.formResetMixin, { // Prevent text selection from being reset when interacting with the selectmenu (#10144) mousedown: function() { - var selection; - - if ( window.getSelection ) { - selection = window.getSelection(); - if ( selection.rangeCount ) { - this.range = selection.getRangeAt( 0 ); - } - - // Support: IE8 - } else { - this.range = document.selection.createRange(); + var selection = window.getSelection(); + if ( selection.rangeCount ) { + this.range = selection.getRangeAt( 0 ); } }, @@ -647,11 +627,7 @@ return $.widget( "ui.selectmenu", [ $.ui.formResetMixin, { _resizeMenu: function() { this.menu.outerWidth( Math.max( this.button.outerWidth(), - - // Support: IE10 - // IE10 wraps long text (possibly a rounding bug) - // so we add 1px to avoid the wrapping - this.menu.width( "" ).outerWidth() + 1 + this.menu.width( "" ).outerWidth() ) ); }, @@ -667,10 +643,6 @@ return $.widget( "ui.selectmenu", [ $.ui.formResetMixin, { var that = this, data = []; options.each( function( index, item ) { - if ( item.hidden ) { - return; - } - data.push( that._parseOption( $( item ), index ) ); } ); this.items = data; @@ -684,6 +656,7 @@ return $.widget( "ui.selectmenu", [ $.ui.formResetMixin, { index: index, value: option.val(), label: option.text(), + hidden: optgroup.prop( "hidden" ) || option.prop( "hidden" ), optgroup: optgroup.attr( "label" ) || "", disabled: optgroup.prop( "disabled" ) || option.prop( "disabled" ) }; diff --git a/app/assets/javascripts/jquery-ui/widgets/slider.js b/app/assets/javascripts/jquery-ui/widgets/slider.js index 5ecf2c7..da2fbc2 100644 --- a/app/assets/javascripts/jquery-ui/widgets/slider.js +++ b/app/assets/javascripts/jquery-ui/widgets/slider.js @@ -4,19 +4,19 @@ //= require jquery-ui/widget /*! - * jQuery UI Slider 1.13.0 - * http://jqueryui.com + * jQuery UI Slider 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license */ //>>label: Slider //>>group: Widgets //>>description: Displays a flexible slider with ranges and accessibility via keyboard. -//>>docs: http://api.jqueryui.com/slider/ -//>>demos: http://jqueryui.com/slider/ +//>>docs: https://api.jqueryui.com/slider/ +//>>demos: https://jqueryui.com/slider/ //>>css.structure: ../../themes/base/core.css //>>css.structure: ../../themes/base/slider.css //>>css.theme: ../../themes/base/theme.css @@ -43,7 +43,7 @@ "use strict"; return $.widget( "ui.slider", $.ui.mouse, { - version: "1.13.0", + version: "1.14.1", widgetEventPrefix: "slide", options: { diff --git a/app/assets/javascripts/jquery-ui/widgets/sortable.js b/app/assets/javascripts/jquery-ui/widgets/sortable.js index be33877..94e07bb 100644 --- a/app/assets/javascripts/jquery-ui/widgets/sortable.js +++ b/app/assets/javascripts/jquery-ui/widgets/sortable.js @@ -1,24 +1,23 @@ //= require jquery-ui/widgets/mouse //= require jquery-ui/data -//= require jquery-ui/ie //= require jquery-ui/scroll-parent //= require jquery-ui/version //= require jquery-ui/widget /*! - * jQuery UI Sortable 1.13.0 - * http://jqueryui.com + * jQuery UI Sortable 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license */ //>>label: Sortable //>>group: Interactions //>>description: Enables items in a list to be sorted using the mouse. -//>>docs: http://api.jqueryui.com/sortable/ -//>>demos: http://jqueryui.com/sortable/ +//>>docs: https://api.jqueryui.com/sortable/ +//>>demos: https://jqueryui.com/sortable/ //>>css.structure: ../../themes/base/sortable.css ( function( factory ) { @@ -31,7 +30,6 @@ "jquery", "./mouse", "../data", - "../ie", "../scroll-parent", "../version", "../widget" @@ -45,7 +43,7 @@ "use strict"; return $.widget( "ui.sortable", $.ui.mouse, { - version: "1.13.0", + version: "1.14.1", widgetEventPrefix: "sort", ready: false, options: { @@ -283,11 +281,7 @@ return $.widget( "ui.sortable", $.ui.mouse, { if ( o.cursor && o.cursor !== "auto" ) { // cursor option body = this.document.find( "body" ); - // Support: IE - this.storedCursor = body.css( "cursor" ); - body.css( "cursor", o.cursor ); - - this.storedStylesheet = + this._storedStylesheet = $( "" ).appendTo( body ); } @@ -428,79 +422,76 @@ return $.widget( "ui.sortable", $.ui.mouse, { this.helper[ 0 ].style.top = this.position.top + "px"; } - //Post events to containers - this._contactContainers( event ); - - if ( this.innermostContainer !== null ) { + //Do scrolling + if ( o.scroll ) { + if ( this._scroll( event ) !== false ) { - //Do scrolling - if ( o.scroll ) { - if ( this._scroll( event ) !== false ) { + //Update item positions used in position checks + this._refreshItemPositions( true ); - //Update item positions used in position checks - this._refreshItemPositions( true ); - - if ( $.ui.ddmanager && !o.dropBehaviour ) { - $.ui.ddmanager.prepareOffsets( this, event ); - } + if ( $.ui.ddmanager && !o.dropBehaviour ) { + $.ui.ddmanager.prepareOffsets( this, event ); } } + } - this.dragDirection = { - vertical: this._getDragVerticalDirection(), - horizontal: this._getDragHorizontalDirection() - }; - - //Rearrange - for ( i = this.items.length - 1; i >= 0; i-- ) { - - //Cache variables and intersection, continue if no intersection - item = this.items[ i ]; - itemElement = item.item[ 0 ]; - intersection = this._intersectsWithPointer( item ); - if ( !intersection ) { - continue; - } - - // Only put the placeholder inside the current Container, skip all - // items from other containers. This works because when moving - // an item from one container to another the - // currentContainer is switched before the placeholder is moved. - // - // Without this, moving items in "sub-sortables" can cause - // the placeholder to jitter between the outer and inner container. - if ( item.instance !== this.currentContainer ) { - continue; - } + this.dragDirection = { + vertical: this._getDragVerticalDirection(), + horizontal: this._getDragHorizontalDirection() + }; - // Cannot intersect with itself - // no useless actions that have been done before - // no action if the item moved is the parent of the item checked - if ( itemElement !== this.currentItem[ 0 ] && - this.placeholder[ intersection === 1 ? - "next" : "prev" ]()[ 0 ] !== itemElement && - !$.contains( this.placeholder[ 0 ], itemElement ) && - ( this.options.type === "semi-dynamic" ? - !$.contains( this.element[ 0 ], itemElement ) : - true - ) - ) { + //Rearrange + for ( i = this.items.length - 1; i >= 0; i-- ) { - this.direction = intersection === 1 ? "down" : "up"; + //Cache variables and intersection, continue if no intersection + item = this.items[ i ]; + itemElement = item.item[ 0 ]; + intersection = this._intersectsWithPointer( item ); + if ( !intersection ) { + continue; + } - if ( this.options.tolerance === "pointer" || - this._intersectsWithSides( item ) ) { - this._rearrange( event, item ); - } else { - break; - } + // Only put the placeholder inside the current Container, skip all + // items from other containers. This works because when moving + // an item from one container to another the + // currentContainer is switched before the placeholder is moved. + // + // Without this, moving items in "sub-sortables" can cause + // the placeholder to jitter between the outer and inner container. + if ( item.instance !== this.currentContainer ) { + continue; + } - this._trigger( "change", event, this._uiHash() ); + // Cannot intersect with itself + // no useless actions that have been done before + // no action if the item moved is the parent of the item checked + if ( itemElement !== this.currentItem[ 0 ] && + this.placeholder[ intersection === 1 ? + "next" : "prev" ]()[ 0 ] !== itemElement && + !$.contains( this.placeholder[ 0 ], itemElement ) && + ( this.options.type === "semi-dynamic" ? + !$.contains( this.element[ 0 ], itemElement ) : + true + ) + ) { + + this.direction = intersection === 1 ? "down" : "up"; + + if ( this.options.tolerance === "pointer" || + this._intersectsWithSides( item ) ) { + this._rearrange( event, item ); + } else { break; } + + this._trigger( "change", event, this._uiHash() ); + break; } } + //Post events to containers + this._contactContainers( event ); + //Interconnect with droppables if ( $.ui.ddmanager ) { $.ui.ddmanager.drag( this, event ); @@ -895,10 +886,14 @@ return $.widget( "ui.sortable", $.ui.mouse, { this.options.axis === "x" || this._isFloating( this.items[ 0 ].item ) : false; - if ( this.innermostContainer !== null ) { - this._refreshItemPositions( fast ); + // This has to be redone because due to the item being moved out/into the offsetParent, + // the offsetParent's position will change + if ( this.offsetParent && this.helper ) { + this.offset.parent = this._getParentOffset(); } + this._refreshItemPositions( fast ); + var i, p; if ( this.options.custom && this.options.custom.refreshContainers ) { @@ -1045,8 +1040,6 @@ return $.widget( "ui.sortable", $.ui.mouse, { } - this.innermostContainer = innermostContainer; - // If no intersecting containers found, return if ( !innermostContainer ) { return; @@ -1205,11 +1198,9 @@ return $.widget( "ui.sortable", $.ui.mouse, { po.top += this.scrollParent.scrollTop(); } - // This needs to be actually done for all browsers, since pageX/pageY includes this - // information with an ugly IE fix - if ( this.offsetParent[ 0 ] === this.document[ 0 ].body || - ( this.offsetParent[ 0 ].tagName && - this.offsetParent[ 0 ].tagName.toLowerCase() === "html" && $.ui.ie ) ) { + // This needs to be actually done for all browsers, since pageX/pageY includes + // this information. + if ( this.offsetParent[ 0 ] === this.document[ 0 ].body ) { po = { top: 0, left: 0 }; } @@ -1557,9 +1548,9 @@ return $.widget( "ui.sortable", $.ui.mouse, { } //Do what was originally in plugins - if ( this.storedCursor ) { - this.document.find( "body" ).css( "cursor", this.storedCursor ); - this.storedStylesheet.remove(); + if ( this._storedStylesheet ) { + this._storedStylesheet.remove(); + this._storedStylesheet = null; } if ( this._storedOpacity ) { this.helper.css( "opacity", this._storedOpacity ); diff --git a/app/assets/javascripts/jquery-ui/widgets/spinner.js b/app/assets/javascripts/jquery-ui/widgets/spinner.js index 54323bc..cf04fec 100644 --- a/app/assets/javascripts/jquery-ui/widgets/spinner.js +++ b/app/assets/javascripts/jquery-ui/widgets/spinner.js @@ -1,23 +1,22 @@ //= require jquery-ui/widgets/button //= require jquery-ui/version //= require jquery-ui/keycode -//= require jquery-ui/safe-active-element //= require jquery-ui/widget /*! - * jQuery UI Spinner 1.13.0 - * http://jqueryui.com + * jQuery UI Spinner 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license */ //>>label: Spinner //>>group: Widgets //>>description: Displays buttons to easily input numbers via the keyboard or mouse. -//>>docs: http://api.jqueryui.com/spinner/ -//>>demos: http://jqueryui.com/spinner/ +//>>docs: https://api.jqueryui.com/spinner/ +//>>demos: https://jqueryui.com/spinner/ //>>css.structure: ../../themes/base/core.css //>>css.structure: ../../themes/base/spinner.css //>>css.theme: ../../themes/base/theme.css @@ -33,7 +32,6 @@ "./button", "../version", "../keycode", - "../safe-active-element", "../widget" ], factory ); } else { @@ -56,7 +54,7 @@ function spinnerModifier( fn ) { } $.widget( "ui.spinner", { - version: "1.13.0", + version: "1.14.1", defaultElement: "", widgetEventPrefix: "spin", options: { @@ -137,11 +135,6 @@ $.widget( "ui.spinner", { this.previous = this.element.val(); }, blur: function( event ) { - if ( this.cancelBlur ) { - delete this.cancelBlur; - return; - } - this._stop(); this._refresh(); if ( this.previous !== this.element.val() ) { @@ -149,7 +142,7 @@ $.widget( "ui.spinner", { } }, mousewheel: function( event, delta ) { - var activeElement = $.ui.safeActiveElement( this.document[ 0 ] ); + var activeElement = this.document[ 0 ].activeElement; var isActive = this.element[ 0 ] === activeElement; if ( !isActive || !delta ) { @@ -177,20 +170,13 @@ $.widget( "ui.spinner", { // If the input is focused then this.previous is properly set from // when the input first received focus. If the input is not focused // then we need to set this.previous based on the value before spinning. - previous = this.element[ 0 ] === $.ui.safeActiveElement( this.document[ 0 ] ) ? + previous = this.element[ 0 ] === this.document[ 0 ].activeElement ? this.previous : this.element.val(); function checkFocus() { - var isActive = this.element[ 0 ] === $.ui.safeActiveElement( this.document[ 0 ] ); + var isActive = this.element[ 0 ] === this.document[ 0 ].activeElement; if ( !isActive ) { this.element.trigger( "focus" ); this.previous = previous; - - // support: IE - // IE sets focus asynchronously, so we need to check if focus - // moved off of the input because the user clicked on the button. - this._delay( function() { - this.previous = previous; - } ); } } @@ -198,16 +184,6 @@ $.widget( "ui.spinner", { event.preventDefault(); checkFocus.call( this ); - // Support: IE - // IE doesn't prevent moving focus even with event.preventDefault() - // so we set a flag to know when we should ignore the blur event - // and check (again) if focus moved off of the input. - this.cancelBlur = true; - this._delay( function() { - delete this.cancelBlur; - checkFocus.call( this ); - } ); - if ( this._start( event ) === false ) { return; } @@ -560,7 +536,7 @@ $.widget( "ui.spinner", { // DEPRECATED // TODO: switch return back to widget declaration at top of file when this is removed -if ( $.uiBackCompat !== false ) { +if ( $.uiBackCompat === true ) { // Backcompat for spinner html extension points $.widget( "ui.spinner", $.ui.spinner, { diff --git a/app/assets/javascripts/jquery-ui/widgets/tabs.js b/app/assets/javascripts/jquery-ui/widgets/tabs.js index e6a584d..18691dd 100644 --- a/app/assets/javascripts/jquery-ui/widgets/tabs.js +++ b/app/assets/javascripts/jquery-ui/widgets/tabs.js @@ -1,23 +1,22 @@ //= require jquery-ui/keycode -//= require jquery-ui/safe-active-element //= require jquery-ui/unique-id //= require jquery-ui/version //= require jquery-ui/widget /*! - * jQuery UI Tabs 1.13.0 - * http://jqueryui.com + * jQuery UI Tabs 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license */ //>>label: Tabs //>>group: Widgets //>>description: Transforms a set of container elements into a tab structure. -//>>docs: http://api.jqueryui.com/tabs/ -//>>demos: http://jqueryui.com/tabs/ +//>>docs: https://api.jqueryui.com/tabs/ +//>>demos: https://jqueryui.com/tabs/ //>>css.structure: ../../themes/base/core.css //>>css.structure: ../../themes/base/tabs.css //>>css.theme: ../../themes/base/theme.css @@ -31,7 +30,6 @@ define( [ "jquery", "../keycode", - "../safe-active-element", "../unique-id", "../version", "../widget" @@ -45,7 +43,7 @@ "use strict"; $.widget( "ui.tabs", { - version: "1.13.0", + version: "1.14.1", delay: 300, options: { active: null, @@ -128,14 +126,14 @@ $.widget( "ui.tabs", { _initialActive: function() { var active = this.options.active, collapsible = this.options.collapsible, - locationHash = location.hash.substring( 1 ); + locationHashDecoded = decodeURIComponent( location.hash.substring( 1 ) ); if ( active === null ) { // check the fragment identifier in the URL - if ( locationHash ) { + if ( locationHashDecoded ) { this.tabs.each( function( i, tab ) { - if ( $( tab ).attr( "aria-controls" ) === locationHash ) { + if ( $( tab ).attr( "aria-controls" ) === locationHashDecoded ) { active = i; return false; } @@ -177,7 +175,7 @@ $.widget( "ui.tabs", { }, _tabKeydown: function( event ) { - var focusedTab = $( $.ui.safeActiveElement( this.document[ 0 ] ) ).closest( "li" ), + var focusedTab = $( this.document[ 0 ].activeElement ).closest( "li" ), selectedIndex = this.tabs.index( focusedTab ), goingForward = true; @@ -319,10 +317,6 @@ $.widget( "ui.tabs", { } }, - _sanitizeSelector: function( hash ) { - return hash ? hash.replace( /[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g, "\\$&" ) : ""; - }, - refresh: function() { var options = this.options, lis = this.tablist.children( ":has(a[href])" ); @@ -414,18 +408,6 @@ $.widget( "ui.tabs", { if ( $( this ).is( ".ui-state-disabled" ) ) { event.preventDefault(); } - } ) - - // Support: IE <9 - // Preventing the default action in mousedown doesn't prevent IE - // from focusing the element, so if the anchor gets focused, blur. - // We don't have to worry about focusing the previously focused - // element since clicking on a non-focusable element should focus - // the body anyway. - .on( "focus" + this.eventNamespace, ".ui-tabs-anchor", function() { - if ( $( this ).closest( "li" ).is( ".ui-state-disabled" ) ) { - this.blur(); - } } ); this.tabs = this.tablist.find( "> li:has(a[href])" ) @@ -453,9 +435,9 @@ $.widget( "ui.tabs", { // Inline tab if ( that._isLocal( anchor ) ) { - selector = anchor.hash; + selector = decodeURIComponent( anchor.hash ); panelId = selector.substring( 1 ); - panel = that.element.find( that._sanitizeSelector( selector ) ); + panel = that.element.find( "#" + CSS.escape( panelId ) ); // remote tab } else { @@ -741,7 +723,7 @@ $.widget( "ui.tabs", { // meta-function to give users option to provide a href string instead of a numerical index. if ( typeof index === "string" ) { index = this.anchors.index( this.anchors.filter( "[href$='" + - $.escapeSelector( index ) + "']" ) ); + CSS.escape( index ) + "']" ) ); } return index; @@ -863,32 +845,19 @@ $.widget( "ui.tabs", { this.xhr = $.ajax( this._ajaxSettings( anchor, event, eventData ) ); - // Support: jQuery <1.8 - // jQuery <1.8 returns false if the request is canceled in beforeSend, - // but as of 1.8, $.ajax() always returns a jqXHR object. - if ( this.xhr && this.xhr.statusText !== "canceled" ) { + if ( this.xhr.statusText !== "canceled" ) { this._addClass( tab, "ui-tabs-loading" ); panel.attr( "aria-busy", "true" ); this.xhr .done( function( response, status, jqXHR ) { + panel.html( response ); + that._trigger( "load", event, eventData ); - // support: jQuery <1.8 - // http://bugs.jquery.com/ticket/11778 - setTimeout( function() { - panel.html( response ); - that._trigger( "load", event, eventData ); - - complete( jqXHR, status ); - }, 1 ); + complete( jqXHR, status ); } ) .fail( function( jqXHR, status ) { - - // support: jQuery <1.8 - // http://bugs.jquery.com/ticket/11778 - setTimeout( function() { - complete( jqXHR, status ); - }, 1 ); + complete( jqXHR, status ); } ); } }, @@ -896,10 +865,7 @@ $.widget( "ui.tabs", { _ajaxSettings: function( anchor, event, eventData ) { var that = this; return { - - // Support: IE <11 only - // Strip any hash that exists to prevent errors with the Ajax request - url: anchor.attr( "href" ).replace( /#.*$/, "" ), + url: anchor.attr( "href" ), beforeSend: function( jqXHR, settings ) { return that._trigger( "beforeLoad", event, $.extend( { jqXHR: jqXHR, ajaxSettings: settings }, eventData ) ); @@ -909,13 +875,13 @@ $.widget( "ui.tabs", { _getPanelForTab: function( tab ) { var id = $( tab ).attr( "aria-controls" ); - return this.element.find( this._sanitizeSelector( "#" + id ) ); + return this.element.find( "#" + CSS.escape( id ) ); } } ); // DEPRECATED // TODO: Switch return back to widget declaration at top of file when this is removed -if ( $.uiBackCompat !== false ) { +if ( $.uiBackCompat === true ) { // Backcompat for ui-tab class (now ui-tabs-tab) $.widget( "ui.tabs", $.ui.tabs, { diff --git a/app/assets/javascripts/jquery-ui/widgets/tooltip.js b/app/assets/javascripts/jquery-ui/widgets/tooltip.js index 53c2e70..9c8d8de 100644 --- a/app/assets/javascripts/jquery-ui/widgets/tooltip.js +++ b/app/assets/javascripts/jquery-ui/widgets/tooltip.js @@ -5,19 +5,19 @@ //= require jquery-ui/widget /*! - * jQuery UI Tooltip 1.13.0 - * http://jqueryui.com + * jQuery UI Tooltip 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license */ //>>label: Tooltip //>>group: Widgets //>>description: Shows additional information for any element on hover or focus. -//>>docs: http://api.jqueryui.com/tooltip/ -//>>demos: http://jqueryui.com/tooltip/ +//>>docs: https://api.jqueryui.com/tooltip/ +//>>demos: https://jqueryui.com/tooltip/ //>>css.structure: ../../themes/base/core.css //>>css.structure: ../../themes/base/tooltip.css //>>css.theme: ../../themes/base/theme.css @@ -45,7 +45,7 @@ "use strict"; $.widget( "ui.tooltip", { - version: "1.13.0", + version: "1.14.1", options: { classes: { "ui-tooltip": "ui-corner-all ui-widget-shadow" @@ -233,25 +233,20 @@ $.widget( "ui.tooltip", { content = contentOption.call( target[ 0 ], function( response ) { - // IE may instantly serve a cached response for ajax requests - // delay this call to _open so the other call to _open runs first - that._delay( function() { - - // Ignore async response if tooltip was closed already - if ( !target.data( "ui-tooltip-open" ) ) { - return; - } + // Ignore async response if tooltip was closed already + if ( !target.data( "ui-tooltip-open" ) ) { + return; + } - // JQuery creates a special event for focusin when it doesn't - // exist natively. To improve performance, the native event - // object is reused and the type is changed. Therefore, we can't - // rely on the type being correct after the event finished - // bubbling, so we set it back to the previous value. (#8740) - if ( event ) { - event.type = eventType; - } - this._open( event, target, response ); - } ); + // JQuery creates a special event for focusin when it doesn't + // exist natively. To improve performance, the native event + // object is reused and the type is changed. Therefore, we can't + // rely on the type being correct after the event finished + // bubbling, so we set it back to the previous value. (#8740) + if ( event ) { + event.type = eventType; + } + that._open( event, target, response ); } ); if ( content ) { this._open( event, target, content ); @@ -358,7 +353,10 @@ $.widget( "ui.tooltip", { // tooltips will handle this in destroy. if ( target[ 0 ] !== this.element[ 0 ] ) { events.remove = function() { - this._removeTooltip( this._find( target ).tooltip ); + var targetElement = this._find( target ); + if ( targetElement ) { + this._removeTooltip( targetElement.tooltip ); + } }; } @@ -508,7 +506,7 @@ $.widget( "ui.tooltip", { // DEPRECATED // TODO: Switch return back to widget declaration at top of file when this is removed -if ( $.uiBackCompat !== false ) { +if ( $.uiBackCompat === true ) { // Backcompat for tooltipClass option $.widget( "ui.tooltip", $.ui.tooltip, { diff --git a/app/assets/stylesheets/jquery-ui/accordion.css b/app/assets/stylesheets/jquery-ui/accordion.css index 90492ec..f28f2cf 100644 --- a/app/assets/stylesheets/jquery-ui/accordion.css +++ b/app/assets/stylesheets/jquery-ui/accordion.css @@ -1,12 +1,12 @@ /*! - * jQuery UI Accordion 1.13.0 - * http://jqueryui.com + * jQuery UI Accordion 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license * - * http://api.jqueryui.com/accordion/#theming + * https://api.jqueryui.com/accordion/#theming */ /* *= require jquery-ui/theme diff --git a/app/assets/stylesheets/jquery-ui/all.css b/app/assets/stylesheets/jquery-ui/all.css index a29f24f..d4918b8 100644 --- a/app/assets/stylesheets/jquery-ui/all.css +++ b/app/assets/stylesheets/jquery-ui/all.css @@ -1,12 +1,12 @@ /*! - * jQuery UI CSS Framework 1.13.0 - * http://jqueryui.com + * jQuery UI CSS Framework 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license * - * http://api.jqueryui.com/category/theming/ + * https://api.jqueryui.com/category/theming/ */ /* *= require jquery-ui/base diff --git a/app/assets/stylesheets/jquery-ui/autocomplete.css b/app/assets/stylesheets/jquery-ui/autocomplete.css index aa3dd5b..5e63c00 100644 --- a/app/assets/stylesheets/jquery-ui/autocomplete.css +++ b/app/assets/stylesheets/jquery-ui/autocomplete.css @@ -1,12 +1,12 @@ /*! - * jQuery UI Autocomplete 1.13.0 - * http://jqueryui.com + * jQuery UI Autocomplete 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license * - * http://api.jqueryui.com/autocomplete/#theming + * https://api.jqueryui.com/autocomplete/#theming */ /* *= require jquery-ui/theme diff --git a/app/assets/stylesheets/jquery-ui/base.css b/app/assets/stylesheets/jquery-ui/base.css index 43b0605..9ec3b5a 100644 --- a/app/assets/stylesheets/jquery-ui/base.css +++ b/app/assets/stylesheets/jquery-ui/base.css @@ -1,12 +1,12 @@ /*! - * jQuery UI CSS Framework 1.13.0 - * http://jqueryui.com + * jQuery UI CSS Framework 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license * - * http://api.jqueryui.com/category/theming/ + * https://api.jqueryui.com/category/theming/ */ /* *= require jquery-ui/core diff --git a/app/assets/stylesheets/jquery-ui/button.css b/app/assets/stylesheets/jquery-ui/button.css index bc1e2bd..6a259cd 100644 --- a/app/assets/stylesheets/jquery-ui/button.css +++ b/app/assets/stylesheets/jquery-ui/button.css @@ -1,12 +1,12 @@ /*! - * jQuery UI Button 1.13.0 - * http://jqueryui.com + * jQuery UI Button 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license * - * http://api.jqueryui.com/button/#theming + * https://api.jqueryui.com/button/#theming */ /* *= require jquery-ui/theme @@ -21,12 +21,7 @@ vertical-align: middle; text-align: center; -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; user-select: none; - - /* Support: IE <= 11 */ - overflow: visible; } .ui-button, @@ -77,7 +72,7 @@ input.ui-button.ui-icon-notext .ui-icon { } /* workarounds */ -/* Support: Firefox 5 - 40 */ +/* Support: Firefox 5 - 125+ */ input.ui-button::-moz-focus-inner, button.ui-button::-moz-focus-inner { border: 0; diff --git a/app/assets/stylesheets/jquery-ui/checkboxradio.css b/app/assets/stylesheets/jquery-ui/checkboxradio.css index 2497d3f..a26ff23 100644 --- a/app/assets/stylesheets/jquery-ui/checkboxradio.css +++ b/app/assets/stylesheets/jquery-ui/checkboxradio.css @@ -1,12 +1,12 @@ /*! - * jQuery UI Checkboxradio 1.13.0 - * http://jqueryui.com + * jQuery UI Checkboxradio 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license * - * http://api.jqueryui.com/checkboxradio/#theming + * https://api.jqueryui.com/checkboxradio/#theming */ /* *= require jquery-ui/theme diff --git a/app/assets/stylesheets/jquery-ui/controlgroup.css b/app/assets/stylesheets/jquery-ui/controlgroup.css index af07c09..cec4f19 100644 --- a/app/assets/stylesheets/jquery-ui/controlgroup.css +++ b/app/assets/stylesheets/jquery-ui/controlgroup.css @@ -1,12 +1,12 @@ /*! - * jQuery UI Controlgroup 1.13.0 - * http://jqueryui.com + * jQuery UI Controlgroup 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license * - * http://api.jqueryui.com/controlgroup/#theming + * https://api.jqueryui.com/controlgroup/#theming */ /* *= require jquery-ui/theme @@ -57,9 +57,6 @@ /* Spinner specific style fixes */ .ui-controlgroup-vertical .ui-spinner-input { - - /* Support: IE8 only, Android < 4.4 only */ - width: 75%; width: calc( 100% - 2.4em ); } .ui-controlgroup-vertical .ui-spinner .ui-spinner-up { diff --git a/app/assets/stylesheets/jquery-ui/core.css b/app/assets/stylesheets/jquery-ui/core.css index d0afd54..6417871 100644 --- a/app/assets/stylesheets/jquery-ui/core.css +++ b/app/assets/stylesheets/jquery-ui/core.css @@ -1,15 +1,12 @@ /*! - * jQuery UI CSS Framework 1.13.0 - * http://jqueryui.com + * jQuery UI CSS Framework 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license * - * http://api.jqueryui.com/category/theming/ - */ -/* - *= require jquery-ui/theme + * https://api.jqueryui.com/category/theming/ */ /* Layout helpers @@ -53,7 +50,6 @@ left: 0; position: absolute; opacity: 0; - -ms-filter: "alpha(opacity=0)"; /* support: IE8 */ } .ui-front { diff --git a/app/assets/stylesheets/jquery-ui/datepicker.css b/app/assets/stylesheets/jquery-ui/datepicker.css index 766467a..9932b3f 100644 --- a/app/assets/stylesheets/jquery-ui/datepicker.css +++ b/app/assets/stylesheets/jquery-ui/datepicker.css @@ -1,12 +1,12 @@ /*! - * jQuery UI Datepicker 1.13.0 - * http://jqueryui.com + * jQuery UI Datepicker 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license * - * http://api.jqueryui.com/datepicker/#theming + * https://api.jqueryui.com/datepicker/#theming */ /* *= require jquery-ui/theme diff --git a/app/assets/stylesheets/jquery-ui/dialog.css b/app/assets/stylesheets/jquery-ui/dialog.css index 4cd2b14..b66cc2b 100644 --- a/app/assets/stylesheets/jquery-ui/dialog.css +++ b/app/assets/stylesheets/jquery-ui/dialog.css @@ -1,12 +1,12 @@ /*! - * jQuery UI Dialog 1.13.0 - * http://jqueryui.com + * jQuery UI Dialog 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license * - * http://api.jqueryui.com/dialog/#theming + * https://api.jqueryui.com/dialog/#theming */ /* *= require jquery-ui/theme diff --git a/app/assets/stylesheets/jquery-ui/draggable.css b/app/assets/stylesheets/jquery-ui/draggable.css index 96940d4..4d80990 100644 --- a/app/assets/stylesheets/jquery-ui/draggable.css +++ b/app/assets/stylesheets/jquery-ui/draggable.css @@ -1,15 +1,14 @@ /*! - * jQuery UI Draggable 1.13.0 - * http://jqueryui.com + * jQuery UI Draggable 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license */ /* *= require jquery-ui/theme */ .ui-draggable-handle { - -ms-touch-action: none; touch-action: none; } diff --git a/app/assets/stylesheets/jquery-ui/menu.css b/app/assets/stylesheets/jquery-ui/menu.css index 4f7fe0a..42077bf 100644 --- a/app/assets/stylesheets/jquery-ui/menu.css +++ b/app/assets/stylesheets/jquery-ui/menu.css @@ -1,12 +1,12 @@ /*! - * jQuery UI Menu 1.13.0 - * http://jqueryui.com + * jQuery UI Menu 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license * - * http://api.jqueryui.com/menu/#theming + * https://api.jqueryui.com/menu/#theming */ /* *= require jquery-ui/theme @@ -24,8 +24,6 @@ .ui-menu .ui-menu-item { margin: 0; cursor: pointer; - /* support: IE10, see #8844 */ - list-style-image: url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"); } .ui-menu .ui-menu-item-wrapper { position: relative; diff --git a/app/assets/stylesheets/jquery-ui/progressbar.css b/app/assets/stylesheets/jquery-ui/progressbar.css index 1003e29..039d4f0 100644 --- a/app/assets/stylesheets/jquery-ui/progressbar.css +++ b/app/assets/stylesheets/jquery-ui/progressbar.css @@ -1,12 +1,12 @@ /*! - * jQuery UI Progressbar 1.13.0 - * http://jqueryui.com + * jQuery UI Progressbar 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license * - * http://api.jqueryui.com/progressbar/#theming + * https://api.jqueryui.com/progressbar/#theming */ /* *= require jquery-ui/theme @@ -23,7 +23,6 @@ .ui-progressbar .ui-progressbar-overlay { background: url("data:image/gif;base64,R0lGODlhKAAoAIABAAAAAP///yH/C05FVFNDQVBFMi4wAwEAAAAh+QQJAQABACwAAAAAKAAoAAACkYwNqXrdC52DS06a7MFZI+4FHBCKoDeWKXqymPqGqxvJrXZbMx7Ttc+w9XgU2FB3lOyQRWET2IFGiU9m1frDVpxZZc6bfHwv4c1YXP6k1Vdy292Fb6UkuvFtXpvWSzA+HycXJHUXiGYIiMg2R6W459gnWGfHNdjIqDWVqemH2ekpObkpOlppWUqZiqr6edqqWQAAIfkECQEAAQAsAAAAACgAKAAAApSMgZnGfaqcg1E2uuzDmmHUBR8Qil95hiPKqWn3aqtLsS18y7G1SzNeowWBENtQd+T1JktP05nzPTdJZlR6vUxNWWjV+vUWhWNkWFwxl9VpZRedYcflIOLafaa28XdsH/ynlcc1uPVDZxQIR0K25+cICCmoqCe5mGhZOfeYSUh5yJcJyrkZWWpaR8doJ2o4NYq62lAAACH5BAkBAAEALAAAAAAoACgAAAKVDI4Yy22ZnINRNqosw0Bv7i1gyHUkFj7oSaWlu3ovC8GxNso5fluz3qLVhBVeT/Lz7ZTHyxL5dDalQWPVOsQWtRnuwXaFTj9jVVh8pma9JjZ4zYSj5ZOyma7uuolffh+IR5aW97cHuBUXKGKXlKjn+DiHWMcYJah4N0lYCMlJOXipGRr5qdgoSTrqWSq6WFl2ypoaUAAAIfkECQEAAQAsAAAAACgAKAAAApaEb6HLgd/iO7FNWtcFWe+ufODGjRfoiJ2akShbueb0wtI50zm02pbvwfWEMWBQ1zKGlLIhskiEPm9R6vRXxV4ZzWT2yHOGpWMyorblKlNp8HmHEb/lCXjcW7bmtXP8Xt229OVWR1fod2eWqNfHuMjXCPkIGNileOiImVmCOEmoSfn3yXlJWmoHGhqp6ilYuWYpmTqKUgAAIfkECQEAAQAsAAAAACgAKAAAApiEH6kb58biQ3FNWtMFWW3eNVcojuFGfqnZqSebuS06w5V80/X02pKe8zFwP6EFWOT1lDFk8rGERh1TTNOocQ61Hm4Xm2VexUHpzjymViHrFbiELsefVrn6XKfnt2Q9G/+Xdie499XHd2g4h7ioOGhXGJboGAnXSBnoBwKYyfioubZJ2Hn0RuRZaflZOil56Zp6iioKSXpUAAAh+QQJAQABACwAAAAAKAAoAAACkoQRqRvnxuI7kU1a1UU5bd5tnSeOZXhmn5lWK3qNTWvRdQxP8qvaC+/yaYQzXO7BMvaUEmJRd3TsiMAgswmNYrSgZdYrTX6tSHGZO73ezuAw2uxuQ+BbeZfMxsexY35+/Qe4J1inV0g4x3WHuMhIl2jXOKT2Q+VU5fgoSUI52VfZyfkJGkha6jmY+aaYdirq+lQAACH5BAkBAAEALAAAAAAoACgAAAKWBIKpYe0L3YNKToqswUlvznigd4wiR4KhZrKt9Upqip61i9E3vMvxRdHlbEFiEXfk9YARYxOZZD6VQ2pUunBmtRXo1Lf8hMVVcNl8JafV38aM2/Fu5V16Bn63r6xt97j09+MXSFi4BniGFae3hzbH9+hYBzkpuUh5aZmHuanZOZgIuvbGiNeomCnaxxap2upaCZsq+1kAACH5BAkBAAEALAAAAAAoACgAAAKXjI8By5zf4kOxTVrXNVlv1X0d8IGZGKLnNpYtm8Lr9cqVeuOSvfOW79D9aDHizNhDJidFZhNydEahOaDH6nomtJjp1tutKoNWkvA6JqfRVLHU/QUfau9l2x7G54d1fl995xcIGAdXqMfBNadoYrhH+Mg2KBlpVpbluCiXmMnZ2Sh4GBqJ+ckIOqqJ6LmKSllZmsoq6wpQAAAh+QQJAQABACwAAAAAKAAoAAAClYx/oLvoxuJDkU1a1YUZbJ59nSd2ZXhWqbRa2/gF8Gu2DY3iqs7yrq+xBYEkYvFSM8aSSObE+ZgRl1BHFZNr7pRCavZ5BW2142hY3AN/zWtsmf12p9XxxFl2lpLn1rseztfXZjdIWIf2s5dItwjYKBgo9yg5pHgzJXTEeGlZuenpyPmpGQoKOWkYmSpaSnqKileI2FAAACH5BAkBAAEALAAAAAAoACgAAAKVjB+gu+jG4kORTVrVhRlsnn2dJ3ZleFaptFrb+CXmO9OozeL5VfP99HvAWhpiUdcwkpBH3825AwYdU8xTqlLGhtCosArKMpvfa1mMRae9VvWZfeB2XfPkeLmm18lUcBj+p5dnN8jXZ3YIGEhYuOUn45aoCDkp16hl5IjYJvjWKcnoGQpqyPlpOhr3aElaqrq56Bq7VAAAOw=="); height: 100%; - -ms-filter: "alpha(opacity=25)"; /* support: IE8 */ opacity: 0.25; } .ui-progressbar-indeterminate .ui-progressbar-value { diff --git a/app/assets/stylesheets/jquery-ui/resizable.css b/app/assets/stylesheets/jquery-ui/resizable.css index 943b8c8..0889118 100644 --- a/app/assets/stylesheets/jquery-ui/resizable.css +++ b/app/assets/stylesheets/jquery-ui/resizable.css @@ -1,10 +1,10 @@ /*! - * jQuery UI Resizable 1.13.0 - * http://jqueryui.com + * jQuery UI Resizable 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license */ /* *= require jquery-ui/theme @@ -16,7 +16,6 @@ position: absolute; font-size: 0.1px; display: block; - -ms-touch-action: none; touch-action: none; } .ui-resizable-disabled .ui-resizable-handle, diff --git a/app/assets/stylesheets/jquery-ui/selectable.css b/app/assets/stylesheets/jquery-ui/selectable.css index 21b031c..8d26f0b 100644 --- a/app/assets/stylesheets/jquery-ui/selectable.css +++ b/app/assets/stylesheets/jquery-ui/selectable.css @@ -1,16 +1,15 @@ /*! - * jQuery UI Selectable 1.13.0 - * http://jqueryui.com + * jQuery UI Selectable 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license */ /* *= require jquery-ui/theme */ .ui-selectable { - -ms-touch-action: none; touch-action: none; } .ui-selectable-helper { diff --git a/app/assets/stylesheets/jquery-ui/selectmenu.css b/app/assets/stylesheets/jquery-ui/selectmenu.css index ad407d8..6e29470 100644 --- a/app/assets/stylesheets/jquery-ui/selectmenu.css +++ b/app/assets/stylesheets/jquery-ui/selectmenu.css @@ -1,12 +1,12 @@ /*! - * jQuery UI Selectmenu 1.13.0 - * http://jqueryui.com + * jQuery UI Selectmenu 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license * - * http://api.jqueryui.com/selectmenu/#theming + * https://api.jqueryui.com/selectmenu/#theming */ /* *= require jquery-ui/theme diff --git a/app/assets/stylesheets/jquery-ui/slider.css b/app/assets/stylesheets/jquery-ui/slider.css index f49dcf7..a0ad2a5 100644 --- a/app/assets/stylesheets/jquery-ui/slider.css +++ b/app/assets/stylesheets/jquery-ui/slider.css @@ -1,12 +1,12 @@ /*! - * jQuery UI Slider 1.13.0 - * http://jqueryui.com + * jQuery UI Slider 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license * - * http://api.jqueryui.com/slider/#theming + * https://api.jqueryui.com/slider/#theming */ /* *= require jquery-ui/theme @@ -21,7 +21,6 @@ width: 1.2em; height: 1.2em; cursor: pointer; - -ms-touch-action: none; touch-action: none; } .ui-slider .ui-slider-range { @@ -33,12 +32,6 @@ background-position: 0 0; } -/* support: IE8 - See #6727 */ -.ui-slider.ui-state-disabled .ui-slider-handle, -.ui-slider.ui-state-disabled .ui-slider-range { - filter: inherit; -} - .ui-slider-horizontal { height: .8em; } diff --git a/app/assets/stylesheets/jquery-ui/sortable.css b/app/assets/stylesheets/jquery-ui/sortable.css index fd1db9e..2f71e13 100644 --- a/app/assets/stylesheets/jquery-ui/sortable.css +++ b/app/assets/stylesheets/jquery-ui/sortable.css @@ -1,15 +1,14 @@ /*! - * jQuery UI Sortable 1.13.0 - * http://jqueryui.com + * jQuery UI Sortable 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license */ /* *= require jquery-ui/theme */ .ui-sortable-handle { - -ms-touch-action: none; touch-action: none; } diff --git a/app/assets/stylesheets/jquery-ui/spinner.css b/app/assets/stylesheets/jquery-ui/spinner.css index 3e9c4df..c9d842d 100644 --- a/app/assets/stylesheets/jquery-ui/spinner.css +++ b/app/assets/stylesheets/jquery-ui/spinner.css @@ -1,12 +1,12 @@ /*! - * jQuery UI Spinner 1.13.0 - * http://jqueryui.com + * jQuery UI Spinner 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license * - * http://api.jqueryui.com/spinner/#theming + * https://api.jqueryui.com/spinner/#theming */ /* *= require jquery-ui/theme diff --git a/app/assets/stylesheets/jquery-ui/tabs.css b/app/assets/stylesheets/jquery-ui/tabs.css index 9869a47..e082316 100644 --- a/app/assets/stylesheets/jquery-ui/tabs.css +++ b/app/assets/stylesheets/jquery-ui/tabs.css @@ -1,12 +1,12 @@ /*! - * jQuery UI Tabs 1.13.0 - * http://jqueryui.com + * jQuery UI Tabs 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license * - * http://api.jqueryui.com/tabs/#theming + * https://api.jqueryui.com/tabs/#theming */ /* *= require jquery-ui/theme diff --git a/app/assets/stylesheets/jquery-ui/theme.css.erb b/app/assets/stylesheets/jquery-ui/theme.css.erb index 453e00e..d24f338 100644 --- a/app/assets/stylesheets/jquery-ui/theme.css.erb +++ b/app/assets/stylesheets/jquery-ui/theme.css.erb @@ -1,14 +1,14 @@ /*! - * jQuery UI CSS Framework 1.13.0 - * http://jqueryui.com + * jQuery UI CSS Framework 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license * - * http://api.jqueryui.com/category/theming/ + * https://api.jqueryui.com/category/theming/ * - * To view and modify this theme, visit http://jqueryui.com/themeroller/ + * To view and modify this theme, visit https://jqueryui.com/themeroller/ */ /* @@ -182,19 +182,14 @@ a.ui-button:active, .ui-widget-content .ui-priority-secondary, .ui-widget-header .ui-priority-secondary { opacity: .7; - -ms-filter: "alpha(opacity=70)"; /* support: IE8 */ font-weight: normal; } .ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled { opacity: .35; - -ms-filter: "alpha(opacity=35)"; /* support: IE8 */ background-image: none; } -.ui-state-disabled .ui-icon { - -ms-filter: "alpha(opacity=35)"; /* support: IE8 - See #6059 */ -} /* Icons ----------------------------------*/ @@ -448,9 +443,7 @@ a.ui-button:active, .ui-widget-overlay { background: #aaaaaa/*{bgColorOverlay}*/ /*{bgImgUrlOverlay}*/ /*{bgOverlayXPos}*/ /*{bgOverlayYPos}*/ /*{bgOverlayRepeat}*/; opacity: .3/*{opacityOverlay}*/; - -ms-filter: "alpha(opacity=30)"/*{opacityFilterOverlay}*/; /* support: IE8 */ } .ui-widget-shadow { - -webkit-box-shadow: 0/*{offsetLeftShadow}*/ 0/*{offsetTopShadow}*/ 5px/*{thicknessShadow}*/ #666666/*{bgColorShadow}*/; box-shadow: 0/*{offsetLeftShadow}*/ 0/*{offsetTopShadow}*/ 5px/*{thicknessShadow}*/ #666666/*{bgColorShadow}*/; } diff --git a/app/assets/stylesheets/jquery-ui/tooltip.css b/app/assets/stylesheets/jquery-ui/tooltip.css index 2f80a6d..d302ae5 100644 --- a/app/assets/stylesheets/jquery-ui/tooltip.css +++ b/app/assets/stylesheets/jquery-ui/tooltip.css @@ -1,12 +1,12 @@ /*! - * jQuery UI Tooltip 1.13.0 - * http://jqueryui.com + * jQuery UI Tooltip 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license * - * http://api.jqueryui.com/tooltip/#theming + * https://api.jqueryui.com/tooltip/#theming */ /* *= require jquery-ui/theme diff --git a/jquery-ui b/jquery-ui index 6d072c5..ca5af71 160000 --- a/jquery-ui +++ b/jquery-ui @@ -1 +1 @@ -Subproject commit 6d072c596a81d99a77fc36c14caf3eb3a803689e +Subproject commit ca5af712bdd620c82a8fc55265ab2afad70121b0 diff --git a/lib/jquery/ui/rails/version.rb b/lib/jquery/ui/rails/version.rb index 2c710b9..5067af8 100644 --- a/lib/jquery/ui/rails/version.rb +++ b/lib/jquery/ui/rails/version.rb @@ -2,7 +2,7 @@ module Jquery module Ui module Rails VERSION = "7.0.0" - JQUERY_UI_VERSION = "1.13.0" + JQUERY_UI_VERSION = "1.14.1" end end end
" )[ 0 ], // colors = jQuery.Color.names colors, @@ -156,10 +155,6 @@ // local aliases of functions called often each = jQuery.each; -// determine rgba support immediately -supportElem.style.cssText = "background-color:rgba(1,1,1,.5)"; -support.rgba = supportElem.style.backgroundColor.indexOf( "rgba" ) > -1; - // define cache name and alpha properties // for rgba and hsla spaces each( spaces, function( spaceName, space ) { @@ -197,12 +192,6 @@ function clamp( value, prop, allowEmpty ) { // ~~ is an short way of doing floor for positive numbers value = type.floor ? ~~value : parseFloat( value ); - // IE will pass in empty strings as value for alpha, - // which will hit this case - if ( isNaN( value ) ) { - return prop.def; - } - if ( type.mod ) { // we add mod before modding to make sure that negatives values @@ -315,7 +304,10 @@ color.fn = jQuery.extend( color.prototype, { } ); // everything defined but alpha? - if ( inst[ cache ] && jQuery.inArray( null, inst[ cache ].slice( 0, 3 ) ) < 0 ) { + if ( inst[ cache ] && jQuery.inArray( + null, + inst[ cache ].slice( 0, 3 ) + ) < 0 ) { // use the default of 1 if ( inst[ cache ][ 3 ] == null ) { @@ -427,7 +419,7 @@ color.fn = jQuery.extend( color.prototype, { prefix = "rgb("; } - return prefix + rgba.join() + ")"; + return prefix + rgba.join( ", " ) + ")"; }, toHslaString: function() { var prefix = "hsla(", @@ -447,7 +439,7 @@ color.fn = jQuery.extend( color.prototype, { hsla.pop(); prefix = "hsl("; } - return prefix + hsla.join() + ")"; + return prefix + hsla.join( ", " ) + ")"; }, toHexString: function( includeAlpha ) { var rgba = this._rgba.slice(), @@ -460,12 +452,11 @@ color.fn = jQuery.extend( color.prototype, { return "#" + jQuery.map( rgba, function( v ) { // default to 0 when nulls exist - v = ( v || 0 ).toString( 16 ); - return v.length === 1 ? "0" + v : v; + return ( "0" + ( v || 0 ).toString( 16 ) ).substr( -2 ); } ).join( "" ); }, toString: function() { - return this._rgba[ 3 ] === 0 ? "transparent" : this.toRgbaString(); + return this.toRgbaString(); } } ); color.fn.parse.prototype = color.fn; @@ -632,37 +623,15 @@ color.hook = function( hook ) { each( hooks, function( _i, hook ) { jQuery.cssHooks[ hook ] = { set: function( elem, value ) { - var parsed, curElem, - backgroundColor = ""; + var parsed; - if ( value !== "transparent" && ( getType( value ) !== "string" || ( parsed = stringParse( value ) ) ) ) { + if ( value !== "transparent" && + ( getType( value ) !== "string" || + ( parsed = stringParse( value ) ) ) ) { value = color( parsed || value ); - if ( !support.rgba && value._rgba[ 3 ] !== 1 ) { - curElem = hook === "backgroundColor" ? elem.parentNode : elem; - while ( - ( backgroundColor === "" || backgroundColor === "transparent" ) && - curElem && curElem.style - ) { - try { - backgroundColor = jQuery.css( curElem, "backgroundColor" ); - curElem = curElem.parentNode; - } catch ( e ) { - } - } - - value = value.blend( backgroundColor && backgroundColor !== "transparent" ? - backgroundColor : - "_default" ); - } - value = value.toRgbaString(); } - try { - elem.style[ hook ] = value; - } catch ( e ) { - - // wrapped to prevent IE from throwing errors on "invalid" values like 'auto' or 'inherit' - } + elem.style[ hook ] = value; } }; jQuery.fx.step[ hook ] = function( fx ) { diff --git a/app/assets/javascripts/jquery-ui/version.js b/app/assets/javascripts/jquery-ui/version.js index 267dfe9..56c4a01 100644 --- a/app/assets/javascripts/jquery-ui/version.js +++ b/app/assets/javascripts/jquery-ui/version.js @@ -15,6 +15,6 @@ $.ui = $.ui || {}; -return $.ui.version = "1.13.0"; +return $.ui.version = "1.14.1"; } ); diff --git a/app/assets/javascripts/jquery-ui/widget.js b/app/assets/javascripts/jquery-ui/widget.js index df22731..89dff1a 100644 --- a/app/assets/javascripts/jquery-ui/widget.js +++ b/app/assets/javascripts/jquery-ui/widget.js @@ -1,19 +1,19 @@ //= require jquery-ui/version /*! - * jQuery UI Widget 1.13.0 - * http://jqueryui.com + * jQuery UI Widget 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license */ //>>label: Widget //>>group: Core //>>description: Provides a factory for creating stateful widgets with a common API. -//>>docs: http://api.jqueryui.com/jQuery.widget/ -//>>demos: http://jqueryui.com/widget/ +//>>docs: https://api.jqueryui.com/jQuery.widget/ +//>>demos: https://jqueryui.com/widget/ ( function( factory ) { "use strict"; @@ -58,6 +58,9 @@ $.widget = function( name, base, prototype ) { var namespace = name.split( "." )[ 0 ]; name = name.split( "." )[ 1 ]; + if ( name === "__proto__" || name === "constructor" ) { + return $.error( "Invalid widget name: " + name ); + } var fullName = namespace + "-" + name; if ( !prototype ) { @@ -79,7 +82,7 @@ $.widget = function( name, base, prototype ) { constructor = $[ namespace ][ name ] = function( options, element ) { // Allow instantiation without "new" keyword - if ( !this._createWidget ) { + if ( !this || !this._createWidget ) { return new constructor( options, element ); } @@ -501,6 +504,8 @@ $.Widget.prototype = { }, options ); function bindRemoveEvent() { + var nodesToBind = []; + options.element.each( function( _, element ) { var isTracked = $.map( that.classesElementLookup, function( elements ) { return elements; @@ -510,11 +515,13 @@ $.Widget.prototype = { } ); if ( !isTracked ) { - that._on( $( element ), { - remove: "_untrackClassesElement" - } ); + nodesToBind.push( element ); } } ); + + that._on( $( nodesToBind ), { + remove: "_untrackClassesElement" + } ); } function processClassString( classes, checkOption ) { diff --git a/app/assets/javascripts/jquery-ui/widgets/accordion.js b/app/assets/javascripts/jquery-ui/widgets/accordion.js index c9af264..aba6333 100644 --- a/app/assets/javascripts/jquery-ui/widgets/accordion.js +++ b/app/assets/javascripts/jquery-ui/widgets/accordion.js @@ -4,12 +4,12 @@ //= require jquery-ui/widget /*! - * jQuery UI Accordion 1.13.0 - * http://jqueryui.com + * jQuery UI Accordion 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license */ //>>label: Accordion @@ -17,8 +17,8 @@ /* eslint-disable max-len */ //>>description: Displays collapsible content panels for presenting information in a limited amount of space. /* eslint-enable max-len */ -//>>docs: http://api.jqueryui.com/accordion/ -//>>demos: http://jqueryui.com/accordion/ +//>>docs: https://api.jqueryui.com/accordion/ +//>>demos: https://jqueryui.com/accordion/ //>>css.structure: ../../themes/base/core.css //>>css.structure: ../../themes/base/accordion.css //>>css.theme: ../../themes/base/theme.css @@ -45,7 +45,7 @@ "use strict"; return $.widget( "ui.accordion", { - version: "1.13.0", + version: "1.14.1", options: { active: 0, animate: {}, @@ -57,7 +57,17 @@ return $.widget( "ui.accordion", { collapsible: false, event: "click", header: function( elem ) { - return elem.find( "> li > :first-child" ).add( elem.find( "> :not(li)" ).even() ); + return elem + .find( "> li > :first-child" ) + .add( + elem.find( "> :not(li)" ) + + // Support: jQuery <3.5 only + // We could use `.even()` but that's unavailable in older jQuery. + .filter( function( i ) { + return i % 2 === 0; + } ) + ); }, heightStyle: "auto", icons: { @@ -192,13 +202,7 @@ return $.widget( "ui.accordion", { this._super( value ); this.element.attr( "aria-disabled", value ); - - // Support: IE8 Only - // #5332 / #6059 - opacity doesn't cascade to positioned elements in IE - // so we need to add the disabled class to the headers and panels this._toggleClass( null, "ui-state-disabled", !!value ); - this._toggleClass( this.headers.add( this.headers.next() ), null, "ui-state-disabled", - !!value ); }, _keydown: function( event ) { @@ -616,10 +620,6 @@ return $.widget( "ui.accordion", { this._removeClass( prev, "ui-accordion-header-active" ) ._addClass( prev, "ui-accordion-header-collapsed" ); - // Work around for rendering bug in IE (#5421) - if ( toHide.length ) { - toHide.parent()[ 0 ].className = toHide.parent()[ 0 ].className; - } this._trigger( "activate", null, data ); } } ); diff --git a/app/assets/javascripts/jquery-ui/widgets/autocomplete.js b/app/assets/javascripts/jquery-ui/widgets/autocomplete.js index 2e928fd..56b9868 100644 --- a/app/assets/javascripts/jquery-ui/widgets/autocomplete.js +++ b/app/assets/javascripts/jquery-ui/widgets/autocomplete.js @@ -1,24 +1,23 @@ //= require jquery-ui/widgets/menu //= require jquery-ui/keycode //= require jquery-ui/position -//= require jquery-ui/safe-active-element //= require jquery-ui/version //= require jquery-ui/widget /*! - * jQuery UI Autocomplete 1.13.0 - * http://jqueryui.com + * jQuery UI Autocomplete 1.14.1 + * https://jqueryui.com * - * Copyright jQuery Foundation and other contributors + * Copyright OpenJS Foundation and other contributors * Released under the MIT license. - * http://jquery.org/license + * https://jquery.org/license */ //>>label: Autocomplete //>>group: Widgets //>>description: Lists suggested words as the user is typing. -//>>docs: http://api.jqueryui.com/autocomplete/ -//>>demos: http://jqueryui.com/autocomplete/ +//>>docs: https://api.jqueryui.com/autocomplete/ +//>>demos: https://jqueryui.com/autocomplete/ //>>css.structure: ../../themes/base/core.css //>>css.structure: ../../themes/base/autocomplete.css //>>css.theme: ../../themes/base/theme.css @@ -34,7 +33,6 @@ "./menu", "../keycode", "../position", - "../safe-active-element", "../version", "../widget" ], factory ); @@ -47,7 +45,7 @@ "use strict"; $.widget( "ui.autocomplete", { - version: "1.13.0", + version: "1.14.1", defaultElement: "", options: { appendTo: null, @@ -73,6 +71,7 @@ $.widget( "ui.autocomplete", { requestIndex: 0, pending: 0, + liveRegionTimer: null, _create: function() { @@ -90,9 +89,9 @@ $.widget( "ui.autocomplete", { // Textareas are always multi-line // Inputs are always single-line, even if inside a contentEditable element - // IE also treats inputs as contentEditable - // All other element types are determined by whether or not they're contentEditable - this.isMultiLine = isTextarea || !isInput && this._isContentEditable( this.element ); + // All other element types are determined by whether they're contentEditable + this.isMultiLine = isTextarea || + !isInput && this.element.prop( "contentEditable" ) === "true"; this.valueMethod = this.element[ isTextarea || isInput ? "val" : "text" ]; this.isNewMenu = true; @@ -156,7 +155,6 @@ $.widget( "ui.autocomplete", { // Different browsers have different default behavior for escape // Single press can mean undo or clear - // Double press in IE means clear the whole form event.preventDefault(); } break; @@ -225,16 +223,6 @@ $.widget( "ui.autocomplete", { role: null } ) .hide() - - // Support: IE 11 only, Edge <= 14 - // For other browsers, we preventDefault() on the mousedown event - // to keep the dropdown from taking focus from the input. This doesn't - // work for IE/Edge, causing problems with selection and scrolling (#9638) - // Happily, IE and Edge support an "unselectable" attribute that - // prevents an element from receiving focus, exactly what we want here. - .attr( { - "unselectable": "on" - } ) .menu( "instance" ); this._addClass( this.menu.element, "ui-autocomplete", "ui-front" ); @@ -247,7 +235,7 @@ $.widget( "ui.autocomplete", { menufocus: function( event, ui ) { var label, item; - // support: Firefox + // Support: Firefox // Prevent accidental activation of menu items in Firefox (#7024 #9118) if ( this.isNewMenu ) { this.isNewMenu = false; @@ -274,8 +262,10 @@ $.widget( "ui.autocomplete", { // Announce the value in the liveRegion label = ui.item.attr( "aria-label" ) || item.value; if ( label && String.prototype.trim.call( label ).length ) { - this.liveRegion.children().hide(); - $( "