Update OOUI to v0.31.5

Release notes:
 https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.31.5

Bug: T218229
Bug: T221705
Depends-On: I89a829b50e318649ed80b4bd9ac2fea61d08a5d2
Change-Id: I89a829b50e318649ed80b4bd9ac2fea61d08a5d1
This commit is contained in:
James D. Forrester 2019-04-24 13:36:00 -05:00
parent b6e3d8df08
commit 133766e920
22 changed files with 98 additions and 80 deletions

View file

@ -46,7 +46,7 @@ For notes on 1.33.x and older releases, see HISTORY.
==== Changed external libraries ====
* Updated Mustache from 1.0.0 to v3.0.1.
* Updated OOUI from v0.31.3 to v0.31.4.
* Updated OOUI from v0.31.3 to v0.31.5.
* …
==== Removed external libraries ====

View file

@ -27,7 +27,7 @@
"ext-xml": "*",
"guzzlehttp/guzzle": "6.3.3",
"liuggio/statsd-php-client": "1.0.18",
"oojs/oojs-ui": "0.31.4",
"oojs/oojs-ui": "0.31.5",
"pear/mail": "1.4.1",
"pear/mail_mime": "1.10.2",
"pear/net_smtp": "1.8.1",

View file

@ -220,8 +220,8 @@ oojs-router:
ooui:
type: tar
src: https://registry.npmjs.org/oojs-ui/-/oojs-ui-0.31.4.tgz
integrity: sha384-wjuecyP+T8lOhBbetLnx02IET5sW71aR0wYRJLBorBhOF6ry7pZOwLTE+XpQtnLu
src: https://registry.npmjs.org/oojs-ui/-/oojs-ui-0.31.5.tgz
integrity: sha384-MTtD0LcsU35sXTob0qAM4+vufYPaO4zdskSYcnpGdEH7C/PG7xkMqJEpkCDI7Zu2
dest:
# Main stuff
package/dist/oojs-ui-core.js{,.map.json}:

View file

@ -1,4 +1,17 @@
# OOUI Release History
## v0.31.5 / 2019-04-24
### Features
* MenuSelectWidget: Fix highlight on re-display (Lucas Werkmeister)
* NumberInputWidget: Disable event listeners when disabled or readOnly (Ed Sanders)
### Styles
* PopupWidget: Fix stacking context problems caused by `filter: drop-shadow` (Bartosz Dziewoński)
### Code
* docs: {undefined/boolean} -> {undefined|boolean} (Ed Sanders)
* icons: Re-crush with 'svgmin' build task (Volker E.)
## v0.31.4 / 2019-04-16
### Features
* Element: Make `scrollIntoView()` more flexible (Ed Sanders)

View file

@ -9,7 +9,7 @@
]
},
"ooui-outline-control-move-down": "Lih barang mangisor",
"ooui-outline-control-move-up": "Lih barang mandhuwur",
"ooui-outline-control-move-up": "Lih barangé munggah",
"ooui-outline-control-remove": "Buwang barang",
"ooui-toolbar-more": "Liyané",
"ooui-toolgroup-expand": "Liyané",

View file

@ -1,12 +1,12 @@
/*!
* OOUI v0.31.4
* OOUI v0.31.5
* https://www.mediawiki.org/wiki/OOUI
*
* Copyright 20112019 OOUI Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
* Date: 2019-04-16T23:14:51Z
* Date: 2019-04-24T18:29:08Z
*/
( function ( OO ) {

View file

@ -1,12 +1,12 @@
/*!
* OOUI v0.31.4
* OOUI v0.31.5
* https://www.mediawiki.org/wiki/OOUI
*
* Copyright 20112019 OOUI Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
* Date: 2019-04-16T23:15:00Z
* Date: 2019-04-24T18:29:15Z
*/
.oo-ui-element-hidden {
display: none !important;
@ -861,15 +861,14 @@ body:not( :-moz-handler-blocked ) .oo-ui-fieldsetLayout {
.oo-ui-popupWidget {
position: absolute;
z-index: 1;
}
.oo-ui-popupWidget-popup {
position: relative;
overflow: hidden;
z-index: 1;
}
.oo-ui-popupWidget-anchor {
display: none;
z-index: 1;
}
.oo-ui-popupWidget-anchored .oo-ui-popupWidget-anchor {
display: block;

View file

@ -1,12 +1,12 @@
/*!
* OOUI v0.31.4
* OOUI v0.31.5
* https://www.mediawiki.org/wiki/OOUI
*
* Copyright 20112019 OOUI Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
* Date: 2019-04-16T23:15:00Z
* Date: 2019-04-24T18:29:15Z
*/
.oo-ui-element-hidden {
display: none !important;
@ -1017,15 +1017,14 @@ body:not( :-moz-handler-blocked ) .oo-ui-fieldsetLayout {
.oo-ui-popupWidget {
position: absolute;
z-index: 1;
}
.oo-ui-popupWidget-popup {
position: relative;
overflow: hidden;
z-index: 1;
}
.oo-ui-popupWidget-anchor {
display: none;
z-index: 1;
}
.oo-ui-popupWidget-anchored .oo-ui-popupWidget-anchor {
display: block;

View file

@ -1,12 +1,12 @@
/*!
* OOUI v0.31.4
* OOUI v0.31.5
* https://www.mediawiki.org/wiki/OOUI
*
* Copyright 20112019 OOUI Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
* Date: 2019-04-16T23:14:51Z
* Date: 2019-04-24T18:29:08Z
*/
( function ( OO ) {
@ -2285,7 +2285,7 @@ OO.ui.mixin.ButtonElement.prototype.setButtonElement = function ( $button ) {
*
* @protected
* @param {jQuery.Event} e Mouse down event
* @return {undefined/boolean} False to prevent default if event is handled
* @return {undefined|boolean} False to prevent default if event is handled
*/
OO.ui.mixin.ButtonElement.prototype.onMouseDown = function ( e ) {
if ( this.isDisabled() || e.which !== OO.ui.MouseButtons.LEFT ) {
@ -2322,7 +2322,7 @@ OO.ui.mixin.ButtonElement.prototype.onDocumentMouseUp = function ( e ) {
* @protected
* @param {jQuery.Event} e Mouse click event
* @fires click
* @return {undefined/boolean} False to prevent default if event is handled
* @return {undefined|boolean} False to prevent default if event is handled
*/
OO.ui.mixin.ButtonElement.prototype.onClick = function ( e ) {
if ( !this.isDisabled() && e.which === OO.ui.MouseButtons.LEFT ) {
@ -2369,7 +2369,7 @@ OO.ui.mixin.ButtonElement.prototype.onDocumentKeyUp = function ( e ) {
* @protected
* @param {jQuery.Event} e Key press event
* @fires click
* @return {undefined/boolean} False to prevent default if event is handled
* @return {undefined|boolean} False to prevent default if event is handled
*/
OO.ui.mixin.ButtonElement.prototype.onKeyPress = function ( e ) {
if ( !this.isDisabled() && ( e.which === OO.ui.Keys.SPACE || e.which === OO.ui.Keys.ENTER ) ) {
@ -6627,7 +6627,7 @@ OO.ui.SelectWidget.prototype.onFocus = function ( event ) {
*
* @private
* @param {jQuery.Event} e Mouse down event
* @return {undefined/boolean} False to prevent default if event is handled
* @return {undefined|boolean} False to prevent default if event is handled
*/
OO.ui.SelectWidget.prototype.onMouseDown = function ( e ) {
var item;
@ -6650,7 +6650,7 @@ OO.ui.SelectWidget.prototype.onMouseDown = function ( e ) {
*
* @private
* @param {MouseEvent} e Mouse up event
* @return {undefined/boolean} False to prevent default if event is handled
* @return {undefined|boolean} False to prevent default if event is handled
*/
OO.ui.SelectWidget.prototype.onDocumentMouseUp = function ( e ) {
var item;
@ -6697,7 +6697,7 @@ OO.ui.SelectWidget.prototype.onDocumentMouseMove = function ( e ) {
*
* @private
* @param {jQuery.Event} e Mouse over event
* @return {undefined/boolean} False to prevent default if event is handled
* @return {undefined|boolean} False to prevent default if event is handled
*/
OO.ui.SelectWidget.prototype.onMouseOver = function ( e ) {
var item;
@ -6716,7 +6716,7 @@ OO.ui.SelectWidget.prototype.onMouseOver = function ( e ) {
*
* @private
* @param {jQuery.Event} e Mouse over event
* @return {undefined/boolean} False to prevent default if event is handled
* @return {undefined|boolean} False to prevent default if event is handled
*/
OO.ui.SelectWidget.prototype.onMouseLeave = function () {
if ( !this.isDisabled() ) {
@ -6841,7 +6841,7 @@ OO.ui.SelectWidget.prototype.clearKeyPressBuffer = function () {
*
* @protected
* @param {KeyboardEvent} e Key press event
* @return {undefined/boolean} False to prevent default if event is handled
* @return {undefined|boolean} False to prevent default if event is handled
*/
OO.ui.SelectWidget.prototype.onDocumentKeyPress = function ( e ) {
var c, filter, item;
@ -8045,6 +8045,7 @@ OO.ui.MenuSelectWidget.prototype.toggle = function ( visible ) {
this.getElementDocument().removeEventListener( 'mousedown', this.onDocumentMouseDownHandler, true );
this.togglePositioning( false );
this.toggleClipping( false );
this.lastHighlightedItem = null;
}
}
@ -8232,7 +8233,7 @@ OO.ui.DropdownWidget.prototype.onMenuToggle = function ( isVisible ) {
*
* @private
* @param {jQuery.Event} e Mouse click event
* @return {undefined/boolean} False to prevent default if event is handled
* @return {undefined|boolean} False to prevent default if event is handled
*/
OO.ui.DropdownWidget.prototype.onClick = function ( e ) {
if ( !this.isDisabled() && e.which === OO.ui.MouseButtons.LEFT ) {
@ -8246,7 +8247,7 @@ OO.ui.DropdownWidget.prototype.onClick = function ( e ) {
*
* @private
* @param {jQuery.Event} e Key down event
* @return {undefined/boolean} False to prevent default if event is handled
* @return {undefined|boolean} False to prevent default if event is handled
*/
OO.ui.DropdownWidget.prototype.onKeyDown = function ( e ) {
if (
@ -10696,7 +10697,7 @@ OO.ui.TextInputWidget.static.validationPatterns = {
*
* @private
* @param {jQuery.Event} e Mouse down event
* @return {undefined/boolean} False to prevent default if event is handled
* @return {undefined|boolean} False to prevent default if event is handled
*/
OO.ui.TextInputWidget.prototype.onIconMouseDown = function ( e ) {
if ( e.which === OO.ui.MouseButtons.LEFT ) {
@ -10710,7 +10711,7 @@ OO.ui.TextInputWidget.prototype.onIconMouseDown = function ( e ) {
*
* @private
* @param {jQuery.Event} e Mouse down event
* @return {undefined/boolean} False to prevent default if event is handled
* @return {undefined|boolean} False to prevent default if event is handled
*/
OO.ui.TextInputWidget.prototype.onIndicatorMouseDown = function ( e ) {
if ( e.which === OO.ui.MouseButtons.LEFT ) {
@ -13051,12 +13052,16 @@ OO.ui.NumberInputWidget.prototype.onButtonClick = function ( dir ) {
*
* @private
* @param {jQuery.Event} event
* @return {undefined/boolean} False to prevent default if event is handled
* @return {undefined|boolean} False to prevent default if event is handled
*/
OO.ui.NumberInputWidget.prototype.onWheel = function ( event ) {
var delta = 0;
if ( !this.isDisabled() && this.$input.is( ':focus' ) ) {
if ( this.isDisabled() || this.isReadOnly() ) {
return;
}
if ( this.$input.is( ':focus' ) ) {
// Standard 'wheel' event
if ( event.originalEvent.deltaMode !== undefined ) {
this.sawWheelEvent = true;
@ -13094,24 +13099,26 @@ OO.ui.NumberInputWidget.prototype.onWheel = function ( event ) {
*
* @private
* @param {jQuery.Event} e Key down event
* @return {undefined/boolean} False to prevent default if event is handled
* @return {undefined|boolean} False to prevent default if event is handled
*/
OO.ui.NumberInputWidget.prototype.onKeyDown = function ( e ) {
if ( !this.isDisabled() ) {
switch ( e.which ) {
case OO.ui.Keys.UP:
this.adjustValue( this.buttonStep );
return false;
case OO.ui.Keys.DOWN:
this.adjustValue( -this.buttonStep );
return false;
case OO.ui.Keys.PAGEUP:
this.adjustValue( this.pageStep );
return false;
case OO.ui.Keys.PAGEDOWN:
this.adjustValue( -this.pageStep );
return false;
}
if ( this.isDisabled() || this.isReadOnly() ) {
return;
}
switch ( e.which ) {
case OO.ui.Keys.UP:
this.adjustValue( this.buttonStep );
return false;
case OO.ui.Keys.DOWN:
this.adjustValue( -this.buttonStep );
return false;
case OO.ui.Keys.PAGEUP:
this.adjustValue( this.pageStep );
return false;
case OO.ui.Keys.PAGEDOWN:
this.adjustValue( -this.pageStep );
return false;
}
};
@ -13389,7 +13396,7 @@ OO.ui.SelectFileInputWidget.prototype.onInfoChange = function ( value ) {
*
* @private
* @param {jQuery.Event} e Key press event
* @return {undefined/boolean} False to prevent default if event is handled
* @return {undefined|boolean} False to prevent default if event is handled
*/
OO.ui.SelectFileInputWidget.prototype.onKeyPress = function ( e ) {
if ( !this.isDisabled() && this.$input &&

File diff suppressed because one or more lines are too long

View file

@ -1,12 +1,12 @@
/*!
* OOUI v0.31.4
* OOUI v0.31.5
* https://www.mediawiki.org/wiki/OOUI
*
* Copyright 20112019 OOUI Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
* Date: 2019-04-16T23:15:00Z
* Date: 2019-04-24T18:29:15Z
*/
.oo-ui-tool > .oo-ui-tool-link > .oo-ui-tool-checkIcon {
display: none;

View file

@ -1,12 +1,12 @@
/*!
* OOUI v0.31.4
* OOUI v0.31.5
* https://www.mediawiki.org/wiki/OOUI
*
* Copyright 20112019 OOUI Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
* Date: 2019-04-16T23:15:00Z
* Date: 2019-04-24T18:29:15Z
*/
.oo-ui-tool {
-webkit-box-sizing: border-box;

View file

@ -1,12 +1,12 @@
/*!
* OOUI v0.31.4
* OOUI v0.31.5
* https://www.mediawiki.org/wiki/OOUI
*
* Copyright 20112019 OOUI Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
* Date: 2019-04-16T23:14:51Z
* Date: 2019-04-24T18:29:08Z
*/
( function ( OO ) {
@ -405,7 +405,7 @@ OO.ui.Toolbar.prototype.getToolGroupFactory = function () {
*
* @private
* @param {jQuery.Event} e Mouse down event
* @return {undefined/boolean} False to prevent default if event is handled
* @return {undefined|boolean} False to prevent default if event is handled
*/
OO.ui.Toolbar.prototype.onPointerDown = function ( e ) {
var $closestWidgetToEvent = $( e.target ).closest( '.oo-ui-widget' ),
@ -1155,7 +1155,7 @@ OO.ui.ToolGroup.prototype.onDisable = function ( isDisabled ) {
*
* @protected
* @param {jQuery.Event} e Mouse down or key down event
* @return {undefined/boolean} False to prevent default if event is handled
* @return {undefined|boolean} False to prevent default if event is handled
*/
OO.ui.ToolGroup.prototype.onMouseKeyDown = function ( e ) {
if (
@ -2131,7 +2131,7 @@ OO.ui.PopupToolGroup.prototype.onMouseKeyDown = function ( e ) {
*
* @protected
* @param {jQuery.Event} e Mouse up or key up event
* @return {undefined/boolean} False to prevent default if event is handled
* @return {undefined|boolean} False to prevent default if event is handled
*/
OO.ui.PopupToolGroup.prototype.onHandleMouseKeyUp = function ( e ) {
if (
@ -2150,7 +2150,7 @@ OO.ui.PopupToolGroup.prototype.onHandleMouseKeyUp = function ( e ) {
*
* @protected
* @param {jQuery.Event} e Mouse down or key down event
* @return {undefined/boolean} False to prevent default if event is handled
* @return {undefined|boolean} False to prevent default if event is handled
*/
OO.ui.PopupToolGroup.prototype.onHandleMouseKeyDown = function ( e ) {
var $focusable;

File diff suppressed because one or more lines are too long

View file

@ -1,12 +1,12 @@
/*!
* OOUI v0.31.4
* OOUI v0.31.5
* https://www.mediawiki.org/wiki/OOUI
*
* Copyright 20112019 OOUI Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
* Date: 2019-04-16T23:15:00Z
* Date: 2019-04-24T18:29:15Z
*/
.oo-ui-draggableElement-handle:not( .oo-ui-draggableElement-undraggable ).oo-ui-widget {
cursor: move;

View file

@ -1,12 +1,12 @@
/*!
* OOUI v0.31.4
* OOUI v0.31.5
* https://www.mediawiki.org/wiki/OOUI
*
* Copyright 20112019 OOUI Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
* Date: 2019-04-16T23:15:00Z
* Date: 2019-04-24T18:29:15Z
*/
.oo-ui-draggableElement-handle:not( .oo-ui-draggableElement-undraggable ).oo-ui-widget {
cursor: move;

View file

@ -1,12 +1,12 @@
/*!
* OOUI v0.31.4
* OOUI v0.31.5
* https://www.mediawiki.org/wiki/OOUI
*
* Copyright 20112019 OOUI Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
* Date: 2019-04-16T23:14:51Z
* Date: 2019-04-24T18:29:08Z
*/
( function ( OO ) {
@ -3213,7 +3213,7 @@ OO.mixinClass( OO.ui.ToggleSwitchWidget, OO.ui.mixin.TabIndexedElement );
*
* @private
* @param {jQuery.Event} e Mouse click event
* @return {undefined/boolean} False to prevent default if event is handled
* @return {undefined|boolean} False to prevent default if event is handled
*/
OO.ui.ToggleSwitchWidget.prototype.onClick = function ( e ) {
if ( !this.isDisabled() && e.which === OO.ui.MouseButtons.LEFT ) {
@ -3227,7 +3227,7 @@ OO.ui.ToggleSwitchWidget.prototype.onClick = function ( e ) {
*
* @private
* @param {jQuery.Event} e Key press event
* @return {undefined/boolean} False to prevent default if event is handled
* @return {undefined|boolean} False to prevent default if event is handled
*/
OO.ui.ToggleSwitchWidget.prototype.onKeyPress = function ( e ) {
if ( !this.isDisabled() && ( e.which === OO.ui.Keys.SPACE || e.which === OO.ui.Keys.ENTER ) ) {
@ -5848,7 +5848,7 @@ OO.ui.SelectFileWidget.prototype.onFileSelected = function ( e ) {
*
* @private
* @param {jQuery.Event} e Key press event
* @return {undefined/boolean} False to prevent default if event is handled
* @return {undefined|boolean} False to prevent default if event is handled
*/
OO.ui.SelectFileWidget.prototype.onDropTargetClick = function () {
if ( !this.isDisabled() && this.$input ) {
@ -5862,7 +5862,7 @@ OO.ui.SelectFileWidget.prototype.onDropTargetClick = function () {
*
* @private
* @param {jQuery.Event} e Drag event
* @return {undefined/boolean} False to prevent default if event is handled
* @return {undefined|boolean} False to prevent default if event is handled
*/
OO.ui.SelectFileWidget.prototype.onDragEnterOrOver = function ( e ) {
var itemsOrFiles,
@ -5916,7 +5916,7 @@ OO.ui.SelectFileWidget.prototype.onDragLeave = function () {
*
* @private
* @param {jQuery.Event} e Drop event
* @return {undefined/boolean} False to prevent default if event is handled
* @return {undefined|boolean} False to prevent default if event is handled
*/
OO.ui.SelectFileWidget.prototype.onDrop = function ( e ) {
var files,

File diff suppressed because one or more lines are too long

View file

@ -1,12 +1,12 @@
/*!
* OOUI v0.31.4
* OOUI v0.31.5
* https://www.mediawiki.org/wiki/OOUI
*
* Copyright 20112019 OOUI Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
* Date: 2019-04-16T23:14:51Z
* Date: 2019-04-24T18:29:08Z
*/
( function ( OO ) {

View file

@ -1,12 +1,12 @@
/*!
* OOUI v0.31.4
* OOUI v0.31.5
* https://www.mediawiki.org/wiki/OOUI
*
* Copyright 20112019 OOUI Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
* Date: 2019-04-16T23:15:00Z
* Date: 2019-04-24T18:29:15Z
*/
.oo-ui-window {

View file

@ -1,12 +1,12 @@
/*!
* OOUI v0.31.4
* OOUI v0.31.5
* https://www.mediawiki.org/wiki/OOUI
*
* Copyright 20112019 OOUI Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
* Date: 2019-04-16T23:15:00Z
* Date: 2019-04-24T18:29:15Z
*/
.oo-ui-window {

View file

@ -1,12 +1,12 @@
/*!
* OOUI v0.31.4
* OOUI v0.31.5
* https://www.mediawiki.org/wiki/OOUI
*
* Copyright 20112019 OOUI Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
* Date: 2019-04-16T23:14:51Z
* Date: 2019-04-24T18:29:08Z
*/
( function ( OO ) {