From d969a58e746181435297863ebd53ad4ec1bfabc9 Mon Sep 17 00:00:00 2001 From: Volker E Date: Tue, 14 Feb 2017 15:52:58 -0800 Subject: [PATCH] Update OOjs UI to v0.19.2 Release notes: https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.19.2 Depends-On: If351020ee7f29d038eeea8258e0bd607c4134060 Change-Id: I2dbc0fb49cb500f8a378b5f9c8175fd1dabebf17 --- composer.json | 2 +- resources/lib/oojs-ui/oojs-ui-apex.js | 4 +- resources/lib/oojs-ui/oojs-ui-core-apex.css | 13 ++- .../lib/oojs-ui/oojs-ui-core-mediawiki.css | 13 ++- resources/lib/oojs-ui/oojs-ui-core.js | 79 ++++++++++++------ resources/lib/oojs-ui/oojs-ui-mediawiki.js | 4 +- .../lib/oojs-ui/oojs-ui-toolbars-apex.css | 4 +- .../oojs-ui/oojs-ui-toolbars-mediawiki.css | 4 +- resources/lib/oojs-ui/oojs-ui-toolbars.js | 8 +- .../lib/oojs-ui/oojs-ui-widgets-apex.css | 4 +- .../lib/oojs-ui/oojs-ui-widgets-mediawiki.css | 4 +- resources/lib/oojs-ui/oojs-ui-widgets.js | 36 ++++++-- .../lib/oojs-ui/oojs-ui-windows-apex.css | 4 +- .../lib/oojs-ui/oojs-ui-windows-mediawiki.css | 4 +- resources/lib/oojs-ui/oojs-ui-windows.js | 33 +------- .../oojs-ui/themes/apex/images/icons/eye.png | Bin 311 -> 311 bytes .../oojs-ui/themes/apex/images/icons/eye.svg | 4 +- .../mediawiki/images/icons/eye-invert.png | Bin 332 -> 333 bytes .../mediawiki/images/icons/eye-invert.svg | 4 +- .../images/icons/eye-progressive.png | Bin 393 -> 391 bytes .../images/icons/eye-progressive.svg | 4 +- .../themes/mediawiki/images/icons/eye.png | Bin 311 -> 311 bytes .../themes/mediawiki/images/icons/eye.svg | 4 +- 23 files changed, 126 insertions(+), 106 deletions(-) diff --git a/composer.json b/composer.json index d41492ef6b..112552964f 100644 --- a/composer.json +++ b/composer.json @@ -25,7 +25,7 @@ "ext-xml": "*", "liuggio/statsd-php-client": "1.0.18", "mediawiki/at-ease": "1.1.0", - "oojs/oojs-ui": "0.19.1", + "oojs/oojs-ui": "0.19.2", "oyejorge/less.php": "1.7.0.10", "php": ">=5.5.9", "psr/log": "1.0.2", diff --git a/resources/lib/oojs-ui/oojs-ui-apex.js b/resources/lib/oojs-ui/oojs-ui-apex.js index 3fc8b45574..2307413d75 100644 --- a/resources/lib/oojs-ui/oojs-ui-apex.js +++ b/resources/lib/oojs-ui/oojs-ui-apex.js @@ -1,12 +1,12 @@ /*! - * OOjs UI v0.19.1 + * OOjs UI v0.19.2 * https://www.mediawiki.org/wiki/OOjs_UI * * Copyright 2011–2017 OOjs UI Team and other contributors. * Released under the MIT license * http://oojs.mit-license.org * - * Date: 2017-02-08T00:38:31Z + * Date: 2017-02-14T22:47:20Z */ ( function ( OO ) { diff --git a/resources/lib/oojs-ui/oojs-ui-core-apex.css b/resources/lib/oojs-ui/oojs-ui-core-apex.css index 31447341ca..524c16bb93 100644 --- a/resources/lib/oojs-ui/oojs-ui-core-apex.css +++ b/resources/lib/oojs-ui/oojs-ui-core-apex.css @@ -1,12 +1,12 @@ /*! - * OOjs UI v0.19.1 + * OOjs UI v0.19.2 * https://www.mediawiki.org/wiki/OOjs_UI * * Copyright 2011–2017 OOjs UI Team and other contributors. * Released under the MIT license * http://oojs.mit-license.org * - * Date: 2017-02-08T00:38:35Z + * Date: 2017-02-14T22:47:25Z */ .oo-ui-element-hidden { display: none !important; @@ -236,6 +236,9 @@ box-sizing: border-box; min-height: 3.125em; } +.oo-ui-floatableElement { + position: absolute; +} .oo-ui-iconElement .oo-ui-iconElement-icon, .oo-ui-iconElement.oo-ui-iconElement-icon { background-size: contain; @@ -647,7 +650,6 @@ body:not( :-moz-handler-blocked ) .oo-ui-fieldsetLayout { } .oo-ui-popupWidget { position: absolute; - /* @noflip */ left: 0; } .oo-ui-popupWidget-popup { @@ -662,8 +664,7 @@ body:not( :-moz-handler-blocked ) .oo-ui-fieldsetLayout { .oo-ui-popupWidget-anchored .oo-ui-popupWidget-anchor { display: block; position: absolute; - /* `top` property is to be set in theme's selector due to specific `@size-anchor` values - /* @noflip */ + /* `top` property is to be set in theme's selector due to specific `@size-anchor` values */ left: 0; background-repeat: no-repeat; } @@ -748,11 +749,9 @@ body:not( :-moz-handler-blocked ) .oo-ui-fieldsetLayout { cursor: auto; } .oo-ui-popupWidget.oo-ui-popupButtonWidget-frameless-popup { - /* @noflip */ margin-left: 0.9375em; } .oo-ui-popupWidget.oo-ui-popupButtonWidget-framed-popup { - /* @noflip */ margin-left: 1.2375em; } .oo-ui-inputWidget { diff --git a/resources/lib/oojs-ui/oojs-ui-core-mediawiki.css b/resources/lib/oojs-ui/oojs-ui-core-mediawiki.css index d1d4a573e5..f3b3fce1bb 100644 --- a/resources/lib/oojs-ui/oojs-ui-core-mediawiki.css +++ b/resources/lib/oojs-ui/oojs-ui-core-mediawiki.css @@ -1,12 +1,12 @@ /*! - * OOjs UI v0.19.1 + * OOjs UI v0.19.2 * https://www.mediawiki.org/wiki/OOjs_UI * * Copyright 2011–2017 OOjs UI Team and other contributors. * Released under the MIT license * http://oojs.mit-license.org * - * Date: 2017-02-08T00:38:35Z + * Date: 2017-02-14T22:47:25Z */ .oo-ui-element-hidden { display: none !important; @@ -382,6 +382,9 @@ box-sizing: border-box; min-height: 3.125em; } +.oo-ui-floatableElement { + position: absolute; +} .oo-ui-iconElement .oo-ui-iconElement-icon, .oo-ui-iconElement.oo-ui-iconElement-icon { background-size: contain; @@ -803,7 +806,6 @@ body:not( :-moz-handler-blocked ) .oo-ui-fieldsetLayout { } .oo-ui-popupWidget { position: absolute; - /* @noflip */ left: 0; } .oo-ui-popupWidget-popup { @@ -818,8 +820,7 @@ body:not( :-moz-handler-blocked ) .oo-ui-fieldsetLayout { .oo-ui-popupWidget-anchored .oo-ui-popupWidget-anchor { display: block; position: absolute; - /* `top` property is to be set in theme's selector due to specific `@size-anchor` values - /* @noflip */ + /* `top` property is to be set in theme's selector due to specific `@size-anchor` values */ left: 0; background-repeat: no-repeat; } @@ -904,11 +905,9 @@ body:not( :-moz-handler-blocked ) .oo-ui-fieldsetLayout { cursor: auto; } .oo-ui-popupWidget.oo-ui-popupButtonWidget-frameless-popup { - /* @noflip */ margin-left: 0.9375em; } .oo-ui-popupWidget.oo-ui-popupButtonWidget-framed-popup { - /* @noflip */ margin-left: 1.5em; } .oo-ui-inputWidget { diff --git a/resources/lib/oojs-ui/oojs-ui-core.js b/resources/lib/oojs-ui/oojs-ui-core.js index 53ddf48cbf..e327e5f4ed 100644 --- a/resources/lib/oojs-ui/oojs-ui-core.js +++ b/resources/lib/oojs-ui/oojs-ui-core.js @@ -1,12 +1,12 @@ /*! - * OOjs UI v0.19.1 + * OOjs UI v0.19.2 * https://www.mediawiki.org/wiki/OOjs_UI * * Copyright 2011–2017 OOjs UI Team and other contributors. * Released under the MIT license * http://oojs.mit-license.org * - * Date: 2017-02-08T00:38:31Z + * Date: 2017-02-14T22:47:20Z */ ( function ( OO ) { @@ -3816,7 +3816,9 @@ OO.ui.LabelWidget = function OoUiLabelWidget( config ) { // Initialization if ( this.input instanceof OO.ui.InputWidget ) { - this.$element.attr( 'for', this.input.getInputId() ); + if ( this.input.getInputId() ) { + this.$element.attr( 'for', this.input.getInputId() ); + } } this.$element.addClass( 'oo-ui-labelWidget' ); }; @@ -4086,7 +4088,7 @@ OO.ui.mixin.FloatableElement.prototype.togglePositioning = function ( positionin this.$floatableClosestScrollable = null; } - this.$floatable.css( { left: '', top: '' } ); + this.$floatable.css( { left: '', right: '', top: '' } ); } } @@ -4161,9 +4163,14 @@ OO.ui.mixin.FloatableElement.prototype.position = function () { } pos = OO.ui.Element.static.getRelativePosition( this.$floatableContainer, this.$floatable.offsetParent() ); - // Position under container pos.top += this.$floatableContainer.height(); + // In LTR, we position from the left, and pos.left is already set + // In RTL, we position from the right instead. + if ( this.$floatableContainer.css( 'direction' ) === 'rtl' ) { + pos.right = this.$floatable.offsetParent().width() - pos.left - this.$floatableContainer.outerWidth(); + delete pos.left; + } this.$floatable.css( pos ); // We updated the position, so re-evaluate the clipping state. @@ -4421,8 +4428,11 @@ OO.ui.mixin.ClippableElement.prototype.clip = function () { clipHeight = allotedHeight < naturalHeight; if ( clipWidth ) { + // The order matters here. If overflow is not set first, Chrome displays bogus scrollbars. (T157672) + // Forcing a reflow is a smaller workaround than calling reconsiderScrollbars() for this case. + this.$clippable.css( 'overflowX', 'scroll' ); + void this.$clippable[ 0 ].offsetHeight; // Force reflow this.$clippable.css( { - overflowX: 'scroll', width: Math.max( 0, allotedWidth ), maxWidth: '' } ); @@ -4434,8 +4444,11 @@ OO.ui.mixin.ClippableElement.prototype.clip = function () { } ); } if ( clipHeight ) { + // The order matters here. If overflow is not set first, Chrome displays bogus scrollbars. (T157672) + // Forcing a reflow is a smaller workaround than calling reconsiderScrollbars() for this case. + this.$clippable.css( 'overflowY', 'scroll' ); + void this.$clippable[ 0 ].offsetHeight; // Force reflow this.$clippable.css( { - overflowY: 'scroll', height: Math.max( 0, allotedHeight ), maxHeight: '' } ); @@ -4766,14 +4779,27 @@ OO.ui.PopupWidget.prototype.setSize = function ( width, height, transition ) { */ OO.ui.PopupWidget.prototype.updateDimensions = function ( transition ) { var popupOffset, originOffset, containerLeft, containerWidth, containerRight, - popupLeft, popupRight, overlapLeft, overlapRight, anchorWidth, - align = this.align, + popupLeft, popupRight, overlapLeft, overlapRight, anchorWidth, direction, + dirFactor, align, + alignMap = { + ltr: { + 'force-left': 'backwards', + 'force-right': 'forwards' + }, + rtl: { + 'force-left': 'forwards', + 'force-right': 'backwards' + } + }, widget = this; if ( !this.$container ) { // Lazy-initialize $container if not specified in constructor this.$container = $( this.getClosestScrollableElementContainer() ); } + direction = this.$container.css( 'direction' ); + dirFactor = direction === 'rtl' ? -1 : 1; + align = alignMap[ direction ][ this.align ] || this.align; // Set height and width before measuring things, since it might cause our measurements // to change (e.g. due to scrollbars appearing or disappearing) @@ -4782,34 +4808,24 @@ OO.ui.PopupWidget.prototype.updateDimensions = function ( transition ) { height: this.height !== null ? this.height : 'auto' } ); - // If we are in RTL, we need to flip the alignment, unless it is center - if ( align === 'forwards' || align === 'backwards' ) { - if ( this.$container.css( 'direction' ) === 'rtl' ) { - align = ( { forwards: 'force-left', backwards: 'force-right' } )[ this.align ]; - } else { - align = ( { forwards: 'force-right', backwards: 'force-left' } )[ this.align ]; - } - - } - // Compute initial popupOffset based on alignment - popupOffset = this.width * ( { 'force-left': -1, center: -0.5, 'force-right': 0 } )[ align ]; + popupOffset = this.width * ( { backwards: -1, center: -0.5, forwards: 0 } )[ align ]; // Figure out if this will cause the popup to go beyond the edge of the container originOffset = this.$element.offset().left; containerLeft = this.$container.offset().left; containerWidth = this.$container.innerWidth(); containerRight = containerLeft + containerWidth; - popupLeft = popupOffset - this.containerPadding; - popupRight = popupOffset + this.containerPadding + this.width + this.containerPadding; + popupLeft = dirFactor * popupOffset - this.containerPadding; + popupRight = dirFactor * popupOffset + this.containerPadding + this.width + this.containerPadding; overlapLeft = ( originOffset + popupLeft ) - containerLeft; overlapRight = containerRight - ( originOffset + popupRight ); // Adjust offset to make the popup not go beyond the edge, if needed if ( overlapRight < 0 ) { - popupOffset += overlapRight; + popupOffset += dirFactor * overlapRight; } else if ( overlapLeft < 0 ) { - popupOffset -= overlapLeft; + popupOffset -= dirFactor * overlapLeft; } // Adjust offset to avoid anchor being rendered too close to the edge @@ -4830,7 +4846,7 @@ OO.ui.PopupWidget.prototype.updateDimensions = function ( transition ) { } // Position body relative to anchor - this.$popup.css( 'margin-left', popupOffset ); + this.$popup.css( direction === 'rtl' ? 'margin-right' : 'margin-left', popupOffset ); if ( transition ) { // Prevent transitioning after transition is complete @@ -9562,6 +9578,15 @@ OO.ui.TextInputWidget.prototype.getValidity = function () { } } + // Check browser validity and reject if it is invalid + if ( + this.$input[ 0 ].checkValidity !== undefined && + this.$input[ 0 ].checkValidity() === false + ) { + return rejectOrResolve( false ); + } + + // Run our checks if the browser thinks the field is valid if ( this.validate instanceof Function ) { result = this.validate( this.getValue() ); if ( result && $.isFunction( result.promise ) ) { @@ -10112,7 +10137,9 @@ OO.ui.FieldLayout = function OoUiFieldLayout( fieldWidget, config ) { // Initialization if ( fieldWidget.constructor.static.supportsSimpleLabel ) { - this.$label.attr( 'for', this.fieldWidget.getInputId() ); + if ( this.fieldWidget.getInputId() ) { + this.$label.attr( 'for', this.fieldWidget.getInputId() ); + } } this.$element .addClass( 'oo-ui-fieldLayout' ) diff --git a/resources/lib/oojs-ui/oojs-ui-mediawiki.js b/resources/lib/oojs-ui/oojs-ui-mediawiki.js index 32422c351d..3989caa2f4 100644 --- a/resources/lib/oojs-ui/oojs-ui-mediawiki.js +++ b/resources/lib/oojs-ui/oojs-ui-mediawiki.js @@ -1,12 +1,12 @@ /*! - * OOjs UI v0.19.1 + * OOjs UI v0.19.2 * https://www.mediawiki.org/wiki/OOjs_UI * * Copyright 2011–2017 OOjs UI Team and other contributors. * Released under the MIT license * http://oojs.mit-license.org * - * Date: 2017-02-08T00:38:31Z + * Date: 2017-02-14T22:47:20Z */ ( function ( OO ) { diff --git a/resources/lib/oojs-ui/oojs-ui-toolbars-apex.css b/resources/lib/oojs-ui/oojs-ui-toolbars-apex.css index d211747e4d..b154288d81 100644 --- a/resources/lib/oojs-ui/oojs-ui-toolbars-apex.css +++ b/resources/lib/oojs-ui/oojs-ui-toolbars-apex.css @@ -1,12 +1,12 @@ /*! - * OOjs UI v0.19.1 + * OOjs UI v0.19.2 * https://www.mediawiki.org/wiki/OOjs_UI * * Copyright 2011–2017 OOjs UI Team and other contributors. * Released under the MIT license * http://oojs.mit-license.org * - * Date: 2017-02-08T00:38:35Z + * Date: 2017-02-14T22:47:25Z */ .oo-ui-popupTool .oo-ui-popupWidget-popup, .oo-ui-popupTool .oo-ui-popupWidget-anchor { diff --git a/resources/lib/oojs-ui/oojs-ui-toolbars-mediawiki.css b/resources/lib/oojs-ui/oojs-ui-toolbars-mediawiki.css index aa2254f6e9..5d313abffc 100644 --- a/resources/lib/oojs-ui/oojs-ui-toolbars-mediawiki.css +++ b/resources/lib/oojs-ui/oojs-ui-toolbars-mediawiki.css @@ -1,12 +1,12 @@ /*! - * OOjs UI v0.19.1 + * OOjs UI v0.19.2 * https://www.mediawiki.org/wiki/OOjs_UI * * Copyright 2011–2017 OOjs UI Team and other contributors. * Released under the MIT license * http://oojs.mit-license.org * - * Date: 2017-02-08T00:38:35Z + * Date: 2017-02-14T22:47:25Z */ .oo-ui-tool.oo-ui-widget-enabled { -webkit-transition: background-color 100ms; diff --git a/resources/lib/oojs-ui/oojs-ui-toolbars.js b/resources/lib/oojs-ui/oojs-ui-toolbars.js index c219770775..e89a734fa3 100644 --- a/resources/lib/oojs-ui/oojs-ui-toolbars.js +++ b/resources/lib/oojs-ui/oojs-ui-toolbars.js @@ -1,12 +1,12 @@ /*! - * OOjs UI v0.19.1 + * OOjs UI v0.19.2 * https://www.mediawiki.org/wiki/OOjs_UI * * Copyright 2011–2017 OOjs UI Team and other contributors. * Released under the MIT license * http://oojs.mit-license.org * - * Date: 2017-02-08T00:38:31Z + * Date: 2017-02-14T22:47:20Z */ ( function ( OO ) { @@ -793,10 +793,10 @@ OO.ui.Tool.prototype.setActive = function ( state ) { this.active = !!state; if ( this.active ) { this.$element.addClass( 'oo-ui-tool-active' ); - this.setFlags( 'progressive' ); + this.setFlags( { progressive: true } ); } else { this.$element.removeClass( 'oo-ui-tool-active' ); - this.clearFlags(); + this.setFlags( { progressive: false } ); } }; diff --git a/resources/lib/oojs-ui/oojs-ui-widgets-apex.css b/resources/lib/oojs-ui/oojs-ui-widgets-apex.css index 92099014aa..b8445e9639 100644 --- a/resources/lib/oojs-ui/oojs-ui-widgets-apex.css +++ b/resources/lib/oojs-ui/oojs-ui-widgets-apex.css @@ -1,12 +1,12 @@ /*! - * OOjs UI v0.19.1 + * OOjs UI v0.19.2 * https://www.mediawiki.org/wiki/OOjs_UI * * Copyright 2011–2017 OOjs UI Team and other contributors. * Released under the MIT license * http://oojs.mit-license.org * - * Date: 2017-02-08T00:38:35Z + * Date: 2017-02-14T22:47:25Z */ .oo-ui-draggableElement-handle, .oo-ui-draggableElement-handle.oo-ui-widget { diff --git a/resources/lib/oojs-ui/oojs-ui-widgets-mediawiki.css b/resources/lib/oojs-ui/oojs-ui-widgets-mediawiki.css index 2fc1889e00..aab3b6212f 100644 --- a/resources/lib/oojs-ui/oojs-ui-widgets-mediawiki.css +++ b/resources/lib/oojs-ui/oojs-ui-widgets-mediawiki.css @@ -1,12 +1,12 @@ /*! - * OOjs UI v0.19.1 + * OOjs UI v0.19.2 * https://www.mediawiki.org/wiki/OOjs_UI * * Copyright 2011–2017 OOjs UI Team and other contributors. * Released under the MIT license * http://oojs.mit-license.org * - * Date: 2017-02-08T00:38:35Z + * Date: 2017-02-14T22:47:25Z */ .oo-ui-draggableElement-handle, .oo-ui-draggableElement-handle.oo-ui-widget { diff --git a/resources/lib/oojs-ui/oojs-ui-widgets.js b/resources/lib/oojs-ui/oojs-ui-widgets.js index a1b70c111c..d5a796bfdc 100644 --- a/resources/lib/oojs-ui/oojs-ui-widgets.js +++ b/resources/lib/oojs-ui/oojs-ui-widgets.js @@ -1,12 +1,12 @@ /*! - * OOjs UI v0.19.1 + * OOjs UI v0.19.2 * https://www.mediawiki.org/wiki/OOjs_UI * * Copyright 2011–2017 OOjs UI Team and other contributors. * Released under the MIT license * http://oojs.mit-license.org * - * Date: 2017-02-08T00:38:31Z + * Date: 2017-02-14T22:47:20Z */ ( function ( OO ) { @@ -3123,9 +3123,9 @@ OO.ui.OutlineOptionWidget.prototype.getLevel = function () { OO.ui.OutlineOptionWidget.prototype.setPressed = function ( state ) { OO.ui.OutlineOptionWidget.parent.prototype.setPressed.call( this, state ); if ( this.pressed ) { - this.setFlags( 'progressive' ); + this.setFlags( { progressive: true } ); } else if ( !this.selected ) { - this.clearFlags(); + this.setFlags( { progressive: false } ); } return this; }; @@ -3164,9 +3164,9 @@ OO.ui.OutlineOptionWidget.prototype.setRemovable = function ( removable ) { OO.ui.OutlineOptionWidget.prototype.setSelected = function ( state ) { OO.ui.OutlineOptionWidget.parent.prototype.setSelected.call( this, state ); if ( this.selected ) { - this.setFlags( 'progressive' ); + this.setFlags( { progressive: true } ); } else { - this.clearFlags(); + this.setFlags( { progressive: false } ); } return this; }; @@ -3757,6 +3757,10 @@ OO.mixinClass( OO.ui.CapsuleMultiselectWidget, OO.ui.mixin.TabIndexedElement ); OO.mixinClass( OO.ui.CapsuleMultiselectWidget, OO.ui.mixin.IndicatorElement ); OO.mixinClass( OO.ui.CapsuleMultiselectWidget, OO.ui.mixin.IconElement ); +/* Static Properties */ + +OO.ui.CapsuleMultiselectWidget.static.supportsSimpleLabel = true; + /* Events */ /** @@ -3792,6 +3796,26 @@ OO.ui.CapsuleMultiselectWidget.prototype.createItemWidget = function ( data, lab return new OO.ui.CapsuleItemWidget( { data: data, label: label } ); }; +/** + * Get the widget's input's id, or generate one, if it has an input. + * + * @return {string} + */ +OO.ui.CapsuleMultiselectWidget.prototype.getInputId = function () { + var id; + if ( !this.$input ) { + return false; + } + + id = this.$input.attr( 'id' ); + if ( id === undefined ) { + id = OO.ui.generateElementId(); + this.$input.attr( 'id', id ); + } + + return id; +}; + /** * Get the data of the items in the capsule * diff --git a/resources/lib/oojs-ui/oojs-ui-windows-apex.css b/resources/lib/oojs-ui/oojs-ui-windows-apex.css index 1c407164df..310d616913 100644 --- a/resources/lib/oojs-ui/oojs-ui-windows-apex.css +++ b/resources/lib/oojs-ui/oojs-ui-windows-apex.css @@ -1,12 +1,12 @@ /*! - * OOjs UI v0.19.1 + * OOjs UI v0.19.2 * https://www.mediawiki.org/wiki/OOjs_UI * * Copyright 2011–2017 OOjs UI Team and other contributors. * Released under the MIT license * http://oojs.mit-license.org * - * Date: 2017-02-08T00:38:35Z + * Date: 2017-02-14T22:47:25Z */ .oo-ui-actionWidget.oo-ui-pendingElement-pending { background-image: /* @embed */ url(themes/apex/images/textures/pending.gif); diff --git a/resources/lib/oojs-ui/oojs-ui-windows-mediawiki.css b/resources/lib/oojs-ui/oojs-ui-windows-mediawiki.css index 3503b4c993..4b99fa651c 100644 --- a/resources/lib/oojs-ui/oojs-ui-windows-mediawiki.css +++ b/resources/lib/oojs-ui/oojs-ui-windows-mediawiki.css @@ -1,12 +1,12 @@ /*! - * OOjs UI v0.19.1 + * OOjs UI v0.19.2 * https://www.mediawiki.org/wiki/OOjs_UI * * Copyright 2011–2017 OOjs UI Team and other contributors. * Released under the MIT license * http://oojs.mit-license.org * - * Date: 2017-02-08T00:38:35Z + * Date: 2017-02-14T22:47:25Z */ .oo-ui-window { background: transparent; diff --git a/resources/lib/oojs-ui/oojs-ui-windows.js b/resources/lib/oojs-ui/oojs-ui-windows.js index 25f4bdf0c9..c842c6233b 100644 --- a/resources/lib/oojs-ui/oojs-ui-windows.js +++ b/resources/lib/oojs-ui/oojs-ui-windows.js @@ -1,12 +1,12 @@ /*! - * OOjs UI v0.19.1 + * OOjs UI v0.19.2 * https://www.mediawiki.org/wiki/OOjs_UI * * Copyright 2011–2017 OOjs UI Team and other contributors. * Released under the MIT license * http://oojs.mit-license.org * - * Date: 2017-02-08T00:38:31Z + * Date: 2017-02-14T22:47:20Z */ ( function ( OO ) { @@ -2399,7 +2399,6 @@ OO.ui.Dialog = function OoUiDialog( config ) { // Events this.actions.connect( this, { click: 'onActionClick', - resize: 'onActionResize', change: 'onActionsChange' } ); @@ -2493,16 +2492,6 @@ OO.ui.Dialog.prototype.onDialogKeyDown = function ( e ) { } }; -/** - * Handle action resized events. - * - * @private - * @param {OO.ui.ActionWidget} action Action that was resized - */ -OO.ui.Dialog.prototype.onActionResize = function () { - // Override in subclass -}; - /** * Handle action click events. * @@ -2800,14 +2789,6 @@ OO.ui.MessageDialog.prototype.setManager = function ( manager ) { return this; }; -/** - * @inheritdoc - */ -OO.ui.MessageDialog.prototype.onActionResize = function ( action ) { - this.fitActions(); - return OO.ui.MessageDialog.parent.prototype.onActionResize.call( this, action ); -}; - /** * Handle window resized events. * @@ -3146,16 +3127,6 @@ OO.ui.ProcessDialog.prototype.onRetryButtonClick = function () { this.executeAction( this.currentAction ); }; -/** - * @inheritdoc - */ -OO.ui.ProcessDialog.prototype.onActionResize = function ( action ) { - if ( this.actions.isSpecial( action ) ) { - this.fitLabel(); - } - return OO.ui.ProcessDialog.parent.prototype.onActionResize.call( this, action ); -}; - /** * @inheritdoc */ diff --git a/resources/lib/oojs-ui/themes/apex/images/icons/eye.png b/resources/lib/oojs-ui/themes/apex/images/icons/eye.png index 62c82c0b7549ce580f42ed2e1dd25f6c61f627bb..eb5f963534719a5bbb75d8a46d485c392158c159 100644 GIT binary patch delta 37 scmdnaw4G@}1Jgg|iOq8*Z2z?h->58T`h($ delta 37 rcmdnaw4G@}19R0M)`?AX#s4=8_iZU?)9ASu&j19Tu6{1-oD!M - - + + diff --git a/resources/lib/oojs-ui/themes/mediawiki/images/icons/eye-invert.png b/resources/lib/oojs-ui/themes/mediawiki/images/icons/eye-invert.png index b4564780e6b9f44666192d59d540c202666fad6b..4e11ebcb811bcdce8f6ea393b162223f1af7cfa8 100644 GIT binary patch delta 285 zcmV+&0pkA50?h)DIe-62L_t(YiS3j9xrPcGBH{O}ql}3#CD}pWo@FXddlt_w=-b?zF z^d1Dk*Ik)`Igrzh9EgS(Pk=3Ou9=iT3e0S!#{J@KF_SLy7=I|7KP-W%M>}>8R_$BveZ*7vD+mGmO%(dchU jAClhgekw+c=oXDDPj44S@a=!L00000NkvXXu0mjfRUeA= delta 284 zcmV+%0ptG70?Y!CIe-31L_t(YiS3j1IGU@1wX&duo$+*8c|utcx^ zl>M80cC-gz)_ktpn6CIerkT}zYWu4B)nb~*)JYTp+nOd;v8Canb$u${CA~>{Hu_uA ir=<16PsM - - + + diff --git a/resources/lib/oojs-ui/themes/mediawiki/images/icons/eye-progressive.png b/resources/lib/oojs-ui/themes/mediawiki/images/icons/eye-progressive.png index 383c78e96c83b6771f7490aad04550bc55168875..94524c044c0e6959931cdbcceb3bd57f07539a4a 100644 GIT binary patch delta 192 zcmV;x06+hU1BU~U&wryyL_t&-8O6azQo}$10KrjQMN4vy#QFalS;>@(1KeCiHwy)K z%!(F}2V0fjO?`d%x{R9)?n_8lt9B%YoUdcGeO!kU2T4S48XFsG|>|CpF4n uxGOf3R%w={XZ_d|{FEF{*X!w!@O)oudJpH0000PHc-{MMKk{iP)v6(CDzzM#t!ig2K|2GPvwB6e&W$?y5PDLh w{DHe-GijA(S$fu&O~F^m;dH&84hg^Z1|aqi`c}hr;s5{u07*qoM6N<$f-O*67XSbN diff --git a/resources/lib/oojs-ui/themes/mediawiki/images/icons/eye-progressive.svg b/resources/lib/oojs-ui/themes/mediawiki/images/icons/eye-progressive.svg index a1e69e8ca1..ae456857ec 100644 --- a/resources/lib/oojs-ui/themes/mediawiki/images/icons/eye-progressive.svg +++ b/resources/lib/oojs-ui/themes/mediawiki/images/icons/eye-progressive.svg @@ -1,5 +1,5 @@ - - + + diff --git a/resources/lib/oojs-ui/themes/mediawiki/images/icons/eye.png b/resources/lib/oojs-ui/themes/mediawiki/images/icons/eye.png index 62c82c0b7549ce580f42ed2e1dd25f6c61f627bb..eb5f963534719a5bbb75d8a46d485c392158c159 100644 GIT binary patch delta 37 scmdnaw4G@}1Jgg|iOq8*Z2z?h->58T`h($ delta 37 rcmdnaw4G@}19R0M)`?AX#s4=8_iZU?)9ASu&j19Tu6{1-oD!M - - + + -- 2.20.1