diff -r 7b1b88e27a20 -r 48c4eec2b7e6 wp/wp-includes/js/jquery/ui/tabs.js --- a/wp/wp-includes/js/jquery/ui/tabs.js Thu Sep 29 08:06:27 2022 +0200 +++ b/wp/wp-includes/js/jquery/ui/tabs.js Fri Sep 05 18:40:08 2025 +0200 @@ -1,17 +1,17 @@ /*! - * jQuery UI Tabs 1.13.1 - * http://jqueryui.com + * jQuery UI Tabs 1.13.3 + * 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 @@ -24,7 +24,11 @@ // AMD. Register as an anonymous module. define( [ "jquery", - "./core" + "../keycode", + "../safe-active-element", + "../unique-id", + "../version", + "../widget" ], factory ); } else { @@ -35,7 +39,7 @@ "use strict"; $.widget( "ui.tabs", { - version: "1.13.1", + version: "1.13.3", delay: 300, options: { active: null, @@ -176,39 +180,39 @@ } switch ( event.keyCode ) { - case $.ui.keyCode.RIGHT: - case $.ui.keyCode.DOWN: - selectedIndex++; - break; - case $.ui.keyCode.UP: - case $.ui.keyCode.LEFT: - goingForward = false; - selectedIndex--; - break; - case $.ui.keyCode.END: - selectedIndex = this.anchors.length - 1; - break; - case $.ui.keyCode.HOME: - selectedIndex = 0; - break; - case $.ui.keyCode.SPACE: + case $.ui.keyCode.RIGHT: + case $.ui.keyCode.DOWN: + selectedIndex++; + break; + case $.ui.keyCode.UP: + case $.ui.keyCode.LEFT: + goingForward = false; + selectedIndex--; + break; + case $.ui.keyCode.END: + selectedIndex = this.anchors.length - 1; + break; + case $.ui.keyCode.HOME: + selectedIndex = 0; + break; + case $.ui.keyCode.SPACE: - // Activate only, no collapsing - event.preventDefault(); - clearTimeout( this.activating ); - this._activate( selectedIndex ); - return; - case $.ui.keyCode.ENTER: + // Activate only, no collapsing + event.preventDefault(); + clearTimeout( this.activating ); + this._activate( selectedIndex ); + return; + case $.ui.keyCode.ENTER: - // Toggle (cancel delayed activation, allow collapsing) - event.preventDefault(); - clearTimeout( this.activating ); + // Toggle (cancel delayed activation, allow collapsing) + event.preventDefault(); + clearTimeout( this.activating ); - // Determine if we should collapse or activate - this._activate( selectedIndex === this.options.active ? false : selectedIndex ); - return; - default: - return; + // Determine if we should collapse or activate + this._activate( selectedIndex === this.options.active ? false : selectedIndex ); + return; + default: + return; } // Focus the appropriate tab, based on which key was pressed @@ -330,7 +334,7 @@ options.active = false; this.active = $(); - // was active, but active tab is gone + // was active, but active tab is gone } else if ( this.active.length && !$.contains( this.tablist[ 0 ], this.active[ 0 ] ) ) { // all remaining tabs are disabled @@ -338,12 +342,12 @@ options.active = false; this.active = $(); - // activate previous tab + // activate previous tab } else { this._activate( this._findNextTab( Math.max( 0, options.active - 1 ), false ) ); } - // was active, active tab still exists + // was active, active tab still exists } else { // make sure active index is correct @@ -447,7 +451,7 @@ panelId = selector.substring( 1 ); panel = that.element.find( that._sanitizeSelector( selector ) ); - // remote tab + // remote tab } else { // If the tab doesn't already have aria-controls, @@ -605,17 +609,17 @@ if ( tab.hasClass( "ui-state-disabled" ) || - // tab is already loading - tab.hasClass( "ui-tabs-loading" ) || + // tab is already loading + tab.hasClass( "ui-tabs-loading" ) || - // can't switch durning an animation - this.running || + // can't switch durning an animation + this.running || - // click on active header, but not collapsible - ( clickedIsActive && !options.collapsible ) || + // click on active header, but not collapsible + ( clickedIsActive && !options.collapsible ) || - // allow canceling activation - ( this._trigger( "beforeActivate", event, eventData ) === false ) ) { + // allow canceling activation + ( this._trigger( "beforeActivate", event, eventData ) === false ) ) { return; } @@ -864,7 +868,7 @@ .done( function( response, status, jqXHR ) { // support: jQuery <1.8 - // http://bugs.jquery.com/ticket/11778 + // https://bugs.jquery.com/ticket/11778 setTimeout( function() { panel.html( response ); that._trigger( "load", event, eventData ); @@ -875,7 +879,7 @@ .fail( function( jqXHR, status ) { // support: jQuery <1.8 - // http://bugs.jquery.com/ticket/11778 + // https://bugs.jquery.com/ticket/11778 setTimeout( function() { complete( jqXHR, status ); }, 1 );