From de0565f5b35ec85cc39a9302637329bba3d4c83a Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 29 Aug 2024 11:24:06 +0100 Subject: [PATCH] Updated jquery UI Signed-off-by: snipe --- package-lock.json | 9 +- package.json | 2 +- public/js/build/app.js | 4 +- public/js/build/vendor.js | 745 +++++++++++-------------------------- public/js/dist/all.js | 749 +++++++++++--------------------------- public/mix-manifest.json | 6 +- 6 files changed, 433 insertions(+), 1082 deletions(-) diff --git a/package-lock.json b/package-lock.json index f4d51c45a3c9..30770cde8a49 100644 --- a/package-lock.json +++ b/package-lock.json @@ -23,7 +23,7 @@ "ekko-lightbox": "^5.1.1", "imagemin": "^8.0.1", "jquery-slimscroll": "^1.3.8", - "jquery-ui": "^1.13.3", + "jquery-ui": "^1.14.0", "jquery-validation": "^1.21.0", "jquery.iframe-transport": "^1.0.0", "jspdf-autotable": "^3.8.2", @@ -7067,10 +7067,11 @@ "license": "BSD-2-Clause" }, "node_modules/jquery-ui": { - "version": "1.13.3", - "license": "MIT", + "version": "1.14.0", + "resolved": "https://registry.npmjs.org/jquery-ui/-/jquery-ui-1.14.0.tgz", + "integrity": "sha512-mPfYKBoRCf0MzaT2cyW5i3IuZ7PfTITaasO5OFLAQxrHuI+ZxruPa+4/K1OMNT8oElLWGtIxc9aRbyw20BKr8g==", "dependencies": { - "jquery": ">=1.8.0 <4.0.0" + "jquery": ">=1.12.0 <5.0.0" } }, "node_modules/jquery-validation": { diff --git a/package.json b/package.json index a36144a17bcf..d0ce13579dbd 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "ekko-lightbox": "^5.1.1", "imagemin": "^8.0.1", "jquery-slimscroll": "^1.3.8", - "jquery-ui": "^1.13.3", + "jquery-ui": "^1.14.0", "jquery-validation": "^1.21.0", "jquery.iframe-transport": "^1.0.0", "jspdf-autotable": "^3.8.2", diff --git a/public/js/build/app.js b/public/js/build/app.js index c188a713b4e2..3c80510129f3 100644 --- a/public/js/build/app.js +++ b/public/js/build/app.js @@ -4047,7 +4047,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ $.ui = $.ui || {}; -return $.ui.version = "1.13.3"; +return $.ui.version = "1.14.0"; } ); @@ -4061,7 +4061,7 @@ return $.ui.version = "1.13.3"; /***/ ((module, exports, __webpack_require__) => { var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! - * jQuery UI Widget 1.13.3 + * jQuery UI Widget 1.14.0 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors diff --git a/public/js/build/vendor.js b/public/js/build/vendor.js index 102713f1f3bf..6f934b73d07c 100644 --- a/public/js/build/vendor.js +++ b/public/js/build/vendor.js @@ -12707,14 +12707,14 @@ return Tether; })); -/*! jQuery UI - v1.13.3 - 2024-04-26 +/*! jQuery UI - v1.14.0 - 2024-08-05 * https://jqueryui.com * Includes: widget.js, position.js, data.js, disable-selection.js, effect.js, effects/effect-blind.js, effects/effect-bounce.js, effects/effect-clip.js, effects/effect-drop.js, effects/effect-explode.js, effects/effect-fade.js, effects/effect-fold.js, effects/effect-highlight.js, effects/effect-puff.js, effects/effect-pulsate.js, effects/effect-scale.js, effects/effect-shake.js, effects/effect-size.js, effects/effect-slide.js, effects/effect-transfer.js, focusable.js, form-reset-mixin.js, jquery-patch.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/accordion.js, widgets/autocomplete.js, widgets/button.js, widgets/checkboxradio.js, widgets/controlgroup.js, widgets/datepicker.js, widgets/dialog.js, widgets/draggable.js, widgets/droppable.js, widgets/menu.js, widgets/mouse.js, widgets/progressbar.js, widgets/resizable.js, widgets/selectable.js, widgets/selectmenu.js, widgets/slider.js, widgets/sortable.js, widgets/spinner.js, widgets/tabs.js, widgets/tooltip.js * Copyright OpenJS Foundation and other contributors; Licensed MIT */ ( function( factory ) { "use strict"; - + if ( typeof define === "function" && define.amd ) { // AMD. Register as an anonymous module. @@ -12729,11 +12729,11 @@ return Tether; $.ui = $.ui || {}; -var version = $.ui.version = "1.13.3"; +var version = $.ui.version = "1.14.0"; /*! - * jQuery UI Widget 1.13.3 + * jQuery UI Widget 1.14.0 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors @@ -13475,7 +13475,7 @@ var widget = $.widget; /*! - * jQuery UI Position 1.13.3 + * jQuery UI Position 1.14.0 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors @@ -13972,7 +13972,7 @@ var position = $.ui.position; /*! - * jQuery UI :data 1.13.3 + * jQuery UI :data 1.14.0 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors @@ -13987,21 +13987,15 @@ var position = $.ui.position; var data = $.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 ); + }; + } ) } ); /*! - * jQuery UI Disable Selection 1.13.3 + * jQuery UI Disable Selection 1.14.0 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors @@ -14044,18 +14038,17 @@ var jQuery = $; /*! - * 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. * https://jquery.org/license * - * Date: Sun May 10 09:02:36 2020 +0200 + * Date: Wed May 15 16:49:44 2024 +0200 */ - var stepHooks = "backgroundColor borderBottomColor borderLeftColor borderRightColor " + "borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor", @@ -14180,10 +14173,6 @@ var jQuery = $; floor: true } }, - support = color.support = {}, - - // element for support tests - supportElem = jQuery( "

" )[ 0 ], // colors = jQuery.Color.names colors, @@ -14191,10 +14180,6 @@ var jQuery = $; // 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 ) { @@ -14232,12 +14217,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 @@ -14350,7 +14329,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 ) { @@ -14462,7 +14444,7 @@ color.fn = jQuery.extend( color.prototype, { prefix = "rgb("; } - return prefix + rgba.join() + ")"; + return prefix + rgba.join( ", " ) + ")"; }, toHslaString: function() { var prefix = "hsla(", @@ -14482,7 +14464,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(), @@ -14495,12 +14477,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; @@ -14667,37 +14648,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 ) { @@ -14756,7 +14715,7 @@ colors = jQuery.Color.names = { /*! - * jQuery UI Effects 1.13.3 + * jQuery UI Effects 1.14.0 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors @@ -14819,26 +14778,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 ]; } } @@ -14863,15 +14810,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 ); @@ -15011,7 +14949,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 @@ -15140,7 +15078,7 @@ if ( $.uiBackCompat !== false ) { } $.extend( $.effects, { - version: "1.13.3", + version: "1.14.0", define: function( name, mode, effect ) { if ( !effect ) { @@ -15497,7 +15435,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 @@ -15708,7 +15646,7 @@ var effect = $.effects; /*! - * jQuery UI Effects Blind 1.13.3 + * jQuery UI Effects Blind 1.14.0 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors @@ -15763,7 +15701,7 @@ var effectsEffectBlind = $.effects.define( "blind", "hide", function( options, d /*! - * jQuery UI Effects Bounce 1.13.3 + * jQuery UI Effects Bounce 1.14.0 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors @@ -15858,7 +15796,7 @@ var effectsEffectBounce = $.effects.define( "bounce", function( options, done ) /*! - * jQuery UI Effects Clip 1.13.3 + * jQuery UI Effects Clip 1.14.0 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors @@ -15908,7 +15846,7 @@ var effectsEffectClip = $.effects.define( "clip", "hide", function( options, don /*! - * jQuery UI Effects Drop 1.13.3 + * jQuery UI Effects Drop 1.14.0 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors @@ -15962,7 +15900,7 @@ var effectsEffectDrop = $.effects.define( "drop", "hide", function( options, don /*! - * jQuery UI Effects Explode 1.13.3 + * jQuery UI Effects Explode 1.14.0 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors @@ -16058,7 +15996,7 @@ var effectsEffectExplode = $.effects.define( "explode", "hide", function( option /*! - * jQuery UI Effects Fade 1.13.3 + * jQuery UI Effects Fade 1.14.0 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors @@ -16090,7 +16028,7 @@ var effectsEffectFade = $.effects.define( "fade", "toggle", function( options, d /*! - * jQuery UI Effects Fold 1.13.3 + * jQuery UI Effects Fold 1.14.0 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors @@ -16164,7 +16102,7 @@ var effectsEffectFold = $.effects.define( "fold", "hide", function( options, don /*! - * jQuery UI Effects Highlight 1.13.3 + * jQuery UI Effects Highlight 1.14.0 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors @@ -16206,7 +16144,7 @@ var effectsEffectHighlight = $.effects.define( "highlight", "show", function( op /*! - * jQuery UI Effects Size 1.13.3 + * jQuery UI Effects Size 1.14.0 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors @@ -16384,7 +16322,7 @@ var effectsEffectSize = $.effects.define( "size", function( options, done ) { /*! - * jQuery UI Effects Scale 1.13.3 + * jQuery UI Effects Scale 1.14.0 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors @@ -16424,7 +16362,7 @@ var effectsEffectScale = $.effects.define( "scale", function( options, done ) { /*! - * jQuery UI Effects Puff 1.13.3 + * jQuery UI Effects Puff 1.14.0 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors @@ -16450,7 +16388,7 @@ var effectsEffectPuff = $.effects.define( "puff", "hide", function( options, don /*! - * jQuery UI Effects Pulsate 1.13.3 + * jQuery UI Effects Pulsate 1.14.0 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors @@ -16499,7 +16437,7 @@ var effectsEffectPulsate = $.effects.define( "pulsate", "show", function( option /*! - * jQuery UI Effects Shake 1.13.3 + * jQuery UI Effects Shake 1.14.0 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors @@ -16558,7 +16496,7 @@ var effectsEffectShake = $.effects.define( "shake", function( options, done ) { /*! - * jQuery UI Effects Slide 1.13.3 + * jQuery UI Effects Slide 1.14.0 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors @@ -16619,7 +16557,7 @@ var effectsEffectSlide = $.effects.define( "slide", "show", function( options, d /*! - * jQuery UI Effects Transfer 1.13.3 + * jQuery UI Effects Transfer 1.14.0 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors @@ -16635,7 +16573,7 @@ var effectsEffectSlide = $.effects.define( "slide", "show", function( options, d var effect; -if ( $.uiBackCompat !== false ) { +if ( $.uiBackCompat === true ) { effect = $.effects.define( "transfer", function( options, done ) { $( this ).transfer( options, done ); } ); @@ -16644,7 +16582,7 @@ var effectsEffectTransfer = effect; /*! - * jQuery UI Focusable 1.13.3 + * jQuery UI Focusable 1.14.0 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors @@ -16693,20 +16631,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 ); @@ -16716,17 +16644,8 @@ $.extend( $.expr.pseudos, { var focusable = $.ui.focusable; - -// 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. -var form = $.fn._form = function() { - return typeof this[ 0 ].form === "string" ? this.closest( "form" ) : $( this[ 0 ].form ); -}; - - /*! - * jQuery UI Form Reset Mixin 1.13.3 + * jQuery UI Form Reset Mixin 1.14.0 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors @@ -16754,7 +16673,7 @@ var formResetMixin = $.ui.formResetMixin = { }, _bindFormResetHandler: function() { - this.form = this.element._form(); + this.form = $( this.element.prop( "form" ) ); if ( !this.form.length ) { return; } @@ -16788,7 +16707,7 @@ var formResetMixin = $.ui.formResetMixin = { /*! - * jQuery UI Support for jQuery core 1.8.x and newer 1.13.3 + * jQuery UI Legacy jQuery Core patches 1.14.0 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors @@ -16797,50 +16716,17 @@ var formResetMixin = $.ui.formResetMixin = { * */ -//>>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) -// 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 + "" ); }; } @@ -16863,7 +16749,7 @@ if ( !$.fn.even || !$.fn.odd ) { ; /*! - * jQuery UI Keycode 1.13.3 + * jQuery UI Keycode 1.14.0 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors @@ -16898,7 +16784,7 @@ var keycode = $.ui.keyCode = { /*! - * jQuery UI Labels 1.13.3 + * jQuery UI Labels 1.14.0 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors @@ -16924,9 +16810,8 @@ var labels = $.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 @@ -16941,7 +16826,7 @@ var labels = $.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 ) ); @@ -16953,7 +16838,7 @@ var labels = $.fn.labels = function() { /*! - * jQuery UI Scroll Parent 1.13.3 + * jQuery UI Scroll Parent 1.14.0 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors @@ -16987,7 +16872,7 @@ var scrollParent = $.fn.scrollParent = function( includeHidden ) { /*! - * jQuery UI Tabbable 1.13.3 + * jQuery UI Tabbable 1.14.0 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors @@ -17011,7 +16896,7 @@ var tabbable = $.extend( $.expr.pseudos, { /*! - * jQuery UI Unique ID 1.13.3 + * jQuery UI Unique ID 1.14.0 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors @@ -17049,7 +16934,7 @@ var uniqueId = $.fn.extend( { /*! - * jQuery UI Accordion 1.13.3 + * jQuery UI Accordion 1.14.0 * https://jqueryui.com * * Copyright OpenJS Foundation and other contributors @@ -17070,7 +16955,7 @@ var uniqueId = $.fn.extend( { var widgetsAccordion = $.widget( "ui.accordion", { - version: "1.13.3", + version: "1.14.0", options: { active: 0, animate: {}, @@ -17082,7 +16967,17 @@ var widgetsAccordion = $.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: { @@ -17217,13 +17112,7 @@ var widgetsAccordion = $.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 ) { @@ -17641,47 +17530,13 @@ var widgetsAccordion = $.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 ); } } ); - -var safeActiveElement = $.ui.safeActiveElement = function( document ) { - var activeElement; - - // Support: IE 9 only - // IE9 throws an "Unspecified error" accessing document.activeElement from an