From: James D. Forrester Date: Wed, 30 Nov 2016 00:12:08 +0000 (-0800) Subject: Update OOjs UI to v0.18.1 X-Git-Tag: 1.31.0-rc.0~4720^2 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=b47fbb4fde9ddddc6f94d07638150834d49bc73b Update OOjs UI to v0.18.1 Release notes: https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.18.1 Change-Id: I5fe3129c9ccf3fa20494b5934bca7487d8d36879 --- diff --git a/composer.json b/composer.json index e1d9f47962..19ca2380fd 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.18.0", + "oojs/oojs-ui": "0.18.1", "oyejorge/less.php": "1.7.0.10", "php": ">=5.5.9", "psr/log": "1.0.0", diff --git a/resources/lib/oojs-ui/i18n/el.json b/resources/lib/oojs-ui/i18n/el.json index 85384179b6..98835d538b 100644 --- a/resources/lib/oojs-ui/i18n/el.json +++ b/resources/lib/oojs-ui/i18n/el.json @@ -24,6 +24,7 @@ "ooui-dialog-process-dismiss": "Απόρριψη", "ooui-dialog-process-retry": "Δοκιμάστε ξανά", "ooui-dialog-process-continue": "Συνέχεια", + "ooui-selectfile-button-select": "Επιλέξτε ένα αρχείο", "ooui-selectfile-not-supported": "Επιλογή αρχείου δεν υποστηρίζεται", "ooui-selectfile-placeholder": "Κανένα αρχείο δεν είναι επιλεγμένο", "ooui-selectfile-dragdrop-placeholder": "Σύρετε το αρχείο εδώ" diff --git a/resources/lib/oojs-ui/oojs-ui-apex.js b/resources/lib/oojs-ui/oojs-ui-apex.js index 542447dcc3..a96ae13789 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.18.0 + * OOjs UI v0.18.1 * https://www.mediawiki.org/wiki/OOjs_UI * * Copyright 2011–2016 OOjs UI Team and other contributors. * Released under the MIT license * http://oojs.mit-license.org * - * Date: 2016-11-09T00:52:37Z + * Date: 2016-11-29T22:57:37Z */ ( 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 bcc3778cc2..e5e62520c6 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.18.0 + * OOjs UI v0.18.1 * https://www.mediawiki.org/wiki/OOjs_UI * * Copyright 2011–2016 OOjs UI Team and other contributors. * Released under the MIT license * http://oojs.mit-license.org * - * Date: 2016-11-09T00:52:42Z + * Date: 2016-11-29T22:57:42Z */ .oo-ui-element-hidden { display: none !important; diff --git a/resources/lib/oojs-ui/oojs-ui-core-mediawiki.css b/resources/lib/oojs-ui/oojs-ui-core-mediawiki.css index e7c2ee03c8..6a31fe8eae 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.18.0 + * OOjs UI v0.18.1 * https://www.mediawiki.org/wiki/OOjs_UI * * Copyright 2011–2016 OOjs UI Team and other contributors. * Released under the MIT license * http://oojs.mit-license.org * - * Date: 2016-11-09T00:52:42Z + * Date: 2016-11-29T22:57:42Z */ .oo-ui-element-hidden { display: none !important; @@ -143,14 +143,14 @@ box-shadow: none; } .oo-ui-buttonElement-frameless.oo-ui-widget-enabled.oo-ui-flaggedElement-destructive > .oo-ui-buttonElement-button > .oo-ui-labelElement-label { - color: #c33; + color: #d33; } .oo-ui-buttonElement-frameless.oo-ui-widget-enabled.oo-ui-flaggedElement-destructive > .oo-ui-buttonElement-button:hover > .oo-ui-labelElement-label { - color: #e53939; + color: #ff4242; } .oo-ui-buttonElement-frameless.oo-ui-widget-enabled.oo-ui-flaggedElement-destructive > .oo-ui-buttonElement-button:active > .oo-ui-labelElement-label, .oo-ui-buttonElement-frameless.oo-ui-widget-enabled.oo-ui-flaggedElement-destructive.oo-ui-buttonElement-pressed > .oo-ui-buttonElement-button > .oo-ui-labelElement-label { - color: #873636; + color: #b32424; box-shadow: none; } .oo-ui-buttonElement-frameless.oo-ui-widget-enabled[class*='oo-ui-flaggedElement'] > .oo-ui-buttonElement-button > .oo-ui-iconElement-icon, @@ -224,7 +224,7 @@ } .oo-ui-buttonElement-framed.oo-ui-widget-enabled > .oo-ui-buttonElement-button:active, .oo-ui-buttonElement-framed.oo-ui-widget-enabled.oo-ui-buttonElement-pressed > .oo-ui-buttonElement-button { - background-color: #d9d9d9; + background-color: #c8ccd1; color: #000; border-color: #72777d; } @@ -278,7 +278,7 @@ box-shadow: inset 0 0 0 1px #36c; } .oo-ui-buttonElement-framed.oo-ui-widget-enabled.oo-ui-flaggedElement-destructive > .oo-ui-buttonElement-button { - color: #c33; + color: #d33; } .oo-ui-buttonElement-framed.oo-ui-widget-enabled.oo-ui-flaggedElement-destructive > .oo-ui-buttonElement-button:hover { background-color: #fff; @@ -288,14 +288,14 @@ .oo-ui-buttonElement-framed.oo-ui-widget-enabled.oo-ui-flaggedElement-destructive > .oo-ui-buttonElement-button:active:focus, .oo-ui-buttonElement-framed.oo-ui-widget-enabled.oo-ui-flaggedElement-destructive.oo-ui-buttonElement-pressed > .oo-ui-buttonElement-button, .oo-ui-buttonElement-framed.oo-ui-widget-enabled.oo-ui-flaggedElement-destructive.oo-ui-buttonElement-active > .oo-ui-buttonElement-button { - background-color: #fbf4f4; - color: #873636; - border-color: #873636; + background-color: #ffffff; + color: #b32424; + border-color: #b32424; box-shadow: none; } .oo-ui-buttonElement-framed.oo-ui-widget-enabled.oo-ui-flaggedElement-destructive > .oo-ui-buttonElement-button:focus { - border-color: #c33; - box-shadow: inset 0 0 0 1px #c33; + border-color: #d33; + box-shadow: inset 0 0 0 1px #d33; } .oo-ui-buttonElement-framed.oo-ui-widget-enabled.oo-ui-flaggedElement-primary.oo-ui-flaggedElement-progressive > .oo-ui-buttonElement-button { color: #fff; @@ -343,25 +343,25 @@ } .oo-ui-buttonElement-framed.oo-ui-widget-enabled.oo-ui-flaggedElement-primary.oo-ui-flaggedElement-destructive > .oo-ui-buttonElement-button { color: #fff; - background-color: #c33; - border-color: #c33; + background-color: #d33; + border-color: #d33; } .oo-ui-buttonElement-framed.oo-ui-widget-enabled.oo-ui-flaggedElement-primary.oo-ui-flaggedElement-destructive > .oo-ui-buttonElement-button:hover { - background-color: #e53939; - border-color: #e53939; + background-color: #ff4242; + border-color: #ff4242; } .oo-ui-buttonElement-framed.oo-ui-widget-enabled.oo-ui-flaggedElement-primary.oo-ui-flaggedElement-destructive > .oo-ui-buttonElement-button:active, .oo-ui-buttonElement-framed.oo-ui-widget-enabled.oo-ui-flaggedElement-primary.oo-ui-flaggedElement-destructive > .oo-ui-buttonElement-button:active:focus, .oo-ui-buttonElement-framed.oo-ui-widget-enabled.oo-ui-flaggedElement-primary.oo-ui-flaggedElement-destructive.oo-ui-buttonElement-pressed > .oo-ui-buttonElement-button, .oo-ui-buttonElement-framed.oo-ui-widget-enabled.oo-ui-flaggedElement-primary.oo-ui-flaggedElement-destructive.oo-ui-buttonElement-active > .oo-ui-buttonElement-button { color: #fff; - background-color: #873636; - border-color: #873636; + background-color: #b32424; + border-color: #b32424; box-shadow: none; } .oo-ui-buttonElement-framed.oo-ui-widget-enabled.oo-ui-flaggedElement-primary.oo-ui-flaggedElement-destructive > .oo-ui-buttonElement-button:focus { - border-color: #c33; - box-shadow: inset 0 0 0 1px #c33, inset 0 0 0 2px #fff; + border-color: #d33; + box-shadow: inset 0 0 0 1px #d33, inset 0 0 0 2px #fff; } .oo-ui-buttonElement-framed.oo-ui-widget-enabled.oo-ui-flaggedElement-primary > .oo-ui-buttonElement-button > .oo-ui-iconElement-icon, .oo-ui-buttonElement-framed.oo-ui-widget-enabled.oo-ui-flaggedElement-primary > .oo-ui-buttonElement-button > .oo-ui-indicatorElement-indicator { @@ -403,7 +403,7 @@ } .oo-ui-fieldLayout { display: block; - margin-bottom: 1em; + margin-top: 1.640625em; } .oo-ui-fieldLayout:before, .oo-ui-fieldLayout:after { @@ -444,28 +444,33 @@ padding: 0.5em 0.75em; line-height: 1.5; } -.oo-ui-fieldLayout:last-child { - margin-bottom: 0; +.oo-ui-fieldLayout.oo-ui-labelElement, +.oo-ui-fieldLayout.oo-ui-fieldLayout-align-inline { + margin-top: 1.171875em; } -.oo-ui-fieldLayout.oo-ui-fieldLayout-align-left.oo-ui-labelElement > .oo-ui-fieldLayout-body > .oo-ui-labelElement-label, -.oo-ui-fieldLayout.oo-ui-fieldLayout-align-right.oo-ui-labelElement > .oo-ui-fieldLayout-body > .oo-ui-labelElement-label { - padding-top: 0.5em; - margin-right: 5%; - width: 35%; +.oo-ui-fieldLayout:first-child, +.oo-ui-fieldLayout.oo-ui-labelElement:first-child, +.oo-ui-fieldLayout.oo-ui-fieldLayout-align-inline:first-child { + margin-top: 0; } -.oo-ui-fieldLayout.oo-ui-fieldLayout-align-left > .oo-ui-fieldLayout-body > .oo-ui-fieldLayout-field, -.oo-ui-fieldLayout.oo-ui-fieldLayout-align-right > .oo-ui-fieldLayout-body > .oo-ui-fieldLayout-field { - width: 60%; +.oo-ui-fieldLayout.oo-ui-labelElement > .oo-ui-fieldLayout-body > .oo-ui-labelElement-label { + padding-bottom: 0.3125em; } -.oo-ui-fieldLayout.oo-ui-fieldLayout-align-inline { - margin-bottom: 1.25em; +.oo-ui-fieldLayout.oo-ui-labelElement.oo-ui-fieldLayout-align-inline > .oo-ui-fieldLayout-body > .oo-ui-labelElement-label { + padding: 0.3125em 0.46875em; +} +.oo-ui-fieldLayout.oo-ui-labelElement.oo-ui-fieldLayout-align-left > .oo-ui-fieldLayout-body > .oo-ui-labelElement-label, +.oo-ui-fieldLayout.oo-ui-labelElement.oo-ui-fieldLayout-align-right > .oo-ui-fieldLayout-body > .oo-ui-labelElement-label { + width: 35%; + margin-right: 5%; + padding-top: 0.3125em; } -.oo-ui-fieldLayout.oo-ui-fieldLayout-align-inline.oo-ui-labelElement > .oo-ui-fieldLayout-body > .oo-ui-labelElement-label { - padding: 0.25em 0.25em 0.25em 0.5em; +.oo-ui-fieldLayout.oo-ui-labelElement.oo-ui-fieldLayout-align-left > .oo-ui-fieldLayout-body > .oo-ui-fieldLayout-field, +.oo-ui-fieldLayout.oo-ui-labelElement.oo-ui-fieldLayout-align-right > .oo-ui-fieldLayout-body > .oo-ui-fieldLayout-field { + width: 60%; } -.oo-ui-fieldLayout.oo-ui-fieldLayout-align-top.oo-ui-labelElement > .oo-ui-fieldLayout-body > .oo-ui-labelElement-label { - padding-top: 0.25em; - padding-bottom: 0.5em; +.oo-ui-fieldLayout-disabled > .oo-ui-fieldLayout-body > .oo-ui-labelElement-label { + color: #72777d; } .oo-ui-fieldLayout > .oo-ui-popupButtonWidget { margin-right: 0; @@ -473,9 +478,6 @@ .oo-ui-fieldLayout > .oo-ui-popupButtonWidget:last-child { margin-right: 0; } -.oo-ui-fieldLayout-disabled > .oo-ui-fieldLayout-body > .oo-ui-labelElement-label { - color: #72777d; -} .oo-ui-fieldLayout-messages { list-style: none none; margin: 0.25em 0 0 0.25em; @@ -488,11 +490,10 @@ } .oo-ui-fieldLayout-messages .oo-ui-iconWidget { display: table-cell; - border-right: 0.5em solid transparent; } .oo-ui-fieldLayout-messages .oo-ui-labelWidget { display: table-cell; - padding: 0.1em 0; + padding: 0.1em 0 0.1em 0.3125em; line-height: 1.5; vertical-align: middle; } @@ -552,7 +553,7 @@ body:not( :-moz-handler-blocked ) .oo-ui-fieldsetLayout { margin-top: 2em; } .oo-ui-fieldsetLayout.oo-ui-labelElement > .oo-ui-labelElement-label { - margin-bottom: 0.5em; + margin-bottom: 0.56818em; font-size: 1.1em; font-weight: bold; } @@ -687,7 +688,7 @@ body:not( :-moz-handler-blocked ) .oo-ui-fieldsetLayout { background-color: transparent; } .oo-ui-radioOptionWidget.oo-ui-labelElement .oo-ui-labelElement-label { - padding: 0.25em 0.25em 0.25em 0.5em; + padding: 0.25em 0.25em 0.25em 0.46875em; } .oo-ui-radioOptionWidget .oo-ui-radioInputWidget { margin-right: 0; @@ -1469,12 +1470,17 @@ body:not( :-moz-handler-blocked ) .oo-ui-fieldsetLayout { } .oo-ui-dropdownWidget.oo-ui-widget-enabled .oo-ui-dropdownWidget-handle:hover { background-color: #fff; + color: #444; border-color: #a2a9b1; } .oo-ui-dropdownWidget.oo-ui-widget-enabled .oo-ui-dropdownWidget-handle:hover .oo-ui-iconElement-icon, .oo-ui-dropdownWidget.oo-ui-widget-enabled .oo-ui-dropdownWidget-handle:hover .oo-ui-indicatorElement-indicator { opacity: 0.73; } +.oo-ui-dropdownWidget.oo-ui-widget-enabled .oo-ui-dropdownWidget-handle:active { + color: #000; + border-color: #72777d; +} .oo-ui-dropdownWidget.oo-ui-widget-enabled .oo-ui-dropdownWidget-handle:focus { border-color: #36c; outline: 0; @@ -1610,7 +1616,7 @@ body:not( :-moz-handler-blocked ) .oo-ui-fieldsetLayout { vertical-align: middle; } .oo-ui-checkboxMultioptionWidget.oo-ui-labelElement .oo-ui-labelElement-label { - padding: 0.25em 0.25em 0.25em 0.5em; + padding: 0.25em 0.25em 0.25em 0.46875em; } .oo-ui-checkboxMultioptionWidget .oo-ui-checkboxInputWidget { margin-right: 0; diff --git a/resources/lib/oojs-ui/oojs-ui-core.js b/resources/lib/oojs-ui/oojs-ui-core.js index fd4e033ab3..66dfbe84ce 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.18.0 + * OOjs UI v0.18.1 * https://www.mediawiki.org/wiki/OOjs_UI * * Copyright 2011–2016 OOjs UI Team and other contributors. * Released under the MIT license * http://oojs.mit-license.org * - * Date: 2016-11-09T00:52:37Z + * Date: 2016-11-29T22:57:37Z */ ( function ( OO ) { @@ -414,7 +414,7 @@ OO.ui.infuse = function ( idOrNode ) { } return message; }; -} )(); +}() ); /** * Package a message and arguments for deferred resolution. @@ -4308,8 +4308,7 @@ OO.mixinClass( OO.ui.PopupWidget, OO.ui.mixin.ClippableElement ); OO.ui.PopupWidget.prototype.onMouseDown = function ( e ) { if ( this.isVisible() && - !$.contains( this.$element[ 0 ], e.target ) && - ( !this.$autoCloseIgnore || !this.$autoCloseIgnore.has( e.target ).length ) + !OO.ui.contains( this.$element.add( this.$autoCloseIgnore ).get(), e.target, true ) ) { this.toggle( false ); } @@ -4597,7 +4596,7 @@ OO.ui.mixin.PopupElement = function OoUiMixinPopupElement( config ) { this.popup = new OO.ui.PopupWidget( $.extend( { autoClose: true }, config.popup, - { $autoCloseIgnore: this.$element } + { $autoCloseIgnore: this.$element.add( config.popup && config.popup.$autoCloseIgnore ) } ) ); }; @@ -9797,7 +9796,7 @@ OO.ui.ComboBoxInputWidget.prototype.setOptions = function ( options ) { * @throws {Error} An error is thrown if no widget is specified */ OO.ui.FieldLayout = function OoUiFieldLayout( fieldWidget, config ) { - var hasInputWidget, div; + var hasInputWidget, $div; // Allow passing positional parameters inside the config object if ( OO.isPlainObject( fieldWidget ) && config === undefined ) { @@ -9837,14 +9836,14 @@ OO.ui.FieldLayout = function OoUiFieldLayout( fieldWidget, config ) { icon: 'info' } ); - div = $( '
' ); + $div = $( '
' ); if ( config.help instanceof OO.ui.HtmlSnippet ) { - div.html( config.help.toString() ); + $div.html( config.help.toString() ); } else { - div.text( config.help ); + $div.text( config.help ); } this.popupButtonWidget.getPopup().$body.append( - div.addClass( 'oo-ui-fieldLayout-help-content' ) + $div.addClass( 'oo-ui-fieldLayout-help-content' ) ); this.$help = this.popupButtonWidget.$element; } else { @@ -10138,8 +10137,13 @@ OO.inheritClass( OO.ui.ActionFieldLayout, OO.ui.FieldLayout ); * @constructor * @param {Object} [config] Configuration options * @cfg {OO.ui.FieldLayout[]} [items] An array of fields to add to the fieldset. See OO.ui.FieldLayout for more information about fields. + * @cfg {string|OO.ui.HtmlSnippet} [help] Help text. When help text is specified, a "help" icon will appear + * in the upper-right corner of the rendered field; clicking it will display the text in a popup. + * For important messages, you are advised to use `notices`, as they are always shown. */ OO.ui.FieldsetLayout = function OoUiFieldsetLayout( config ) { + var $div; + // Configuration initialization config = config || {}; @@ -10158,10 +10162,14 @@ OO.ui.FieldsetLayout = function OoUiFieldsetLayout( config ) { icon: 'info' } ); + $div = $( '
' ); + if ( config.help instanceof OO.ui.HtmlSnippet ) { + $div.html( config.help.toString() ); + } else { + $div.text( config.help ); + } this.popupButtonWidget.getPopup().$body.append( - $( '
' ) - .text( config.help ) - .addClass( 'oo-ui-fieldsetLayout-help-content' ) + $div.addClass( 'oo-ui-fieldsetLayout-help-content' ) ); this.$help = this.popupButtonWidget.$element; } else { diff --git a/resources/lib/oojs-ui/oojs-ui-mediawiki.js b/resources/lib/oojs-ui/oojs-ui-mediawiki.js index 17bca7e491..962db9abc3 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.18.0 + * OOjs UI v0.18.1 * https://www.mediawiki.org/wiki/OOjs_UI * * Copyright 2011–2016 OOjs UI Team and other contributors. * Released under the MIT license * http://oojs.mit-license.org * - * Date: 2016-11-09T00:52:37Z + * Date: 2016-11-29T22:57:37Z */ ( 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 7fb36c4d8d..4b598766ce 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.18.0 + * OOjs UI v0.18.1 * https://www.mediawiki.org/wiki/OOjs_UI * * Copyright 2011–2016 OOjs UI Team and other contributors. * Released under the MIT license * http://oojs.mit-license.org * - * Date: 2016-11-09T00:52:42Z + * Date: 2016-11-29T22:57:42Z */ .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 cb9660a05d..c3b0c98b05 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.18.0 + * OOjs UI v0.18.1 * https://www.mediawiki.org/wiki/OOjs_UI * * Copyright 2011–2016 OOjs UI Team and other contributors. * Released under the MIT license * http://oojs.mit-license.org * - * Date: 2016-11-09T00:52:42Z + * Date: 2016-11-29T22:57:42Z */ .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 e17f511a16..f57e2dbd8a 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.18.0 + * OOjs UI v0.18.1 * https://www.mediawiki.org/wiki/OOjs_UI * * Copyright 2011–2016 OOjs UI Team and other contributors. * Released under the MIT license * http://oojs.mit-license.org * - * Date: 2016-11-09T00:52:37Z + * Date: 2016-11-29T22:57:37Z */ ( function ( OO ) { diff --git a/resources/lib/oojs-ui/oojs-ui-widgets-apex.css b/resources/lib/oojs-ui/oojs-ui-widgets-apex.css index d6ba00b71b..884e48e95f 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.18.0 + * OOjs UI v0.18.1 * https://www.mediawiki.org/wiki/OOjs_UI * * Copyright 2011–2016 OOjs UI Team and other contributors. * Released under the MIT license * http://oojs.mit-license.org * - * Date: 2016-11-09T00:52:42Z + * Date: 2016-11-29T22:57:42Z */ .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 bf50532b0b..cfbea3ea00 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.18.0 + * OOjs UI v0.18.1 * https://www.mediawiki.org/wiki/OOjs_UI * * Copyright 2011–2016 OOjs UI Team and other contributors. * Released under the MIT license * http://oojs.mit-license.org * - * Date: 2016-11-09T00:52:42Z + * Date: 2016-11-29T22:57:42Z */ .oo-ui-draggableElement-handle, .oo-ui-draggableElement-handle.oo-ui-widget { @@ -824,6 +824,23 @@ .oo-ui-capsuleMultiselectWidget-handle > .oo-ui-iconElement-icon { position: absolute; } +.oo-ui-capsuleMultiselectWidget-handle > .oo-ui-capsuleMultiselectWidget-content :-moz-placeholder { + color: #72777d; + opacity: 1; +} +.oo-ui-capsuleMultiselectWidget-handle > .oo-ui-capsuleMultiselectWidget-content ::-moz-placeholder { + color: #72777d; + opacity: 1; +} +.oo-ui-capsuleMultiselectWidget-handle > .oo-ui-capsuleMultiselectWidget-content :-ms-input-placeholder { + color: #72777d; +} +.oo-ui-capsuleMultiselectWidget-handle > .oo-ui-capsuleMultiselectWidget-content ::-webkit-input-placeholder { + color: #72777d; +} +.oo-ui-capsuleMultiselectWidget-handle > .oo-ui-capsuleMultiselectWidget-content :placeholder-shown { + color: #72777d; +} .oo-ui-capsuleMultiselectWidget-handle > .oo-ui-capsuleMultiselectWidget-content > input { border: 0; line-height: 1.675; diff --git a/resources/lib/oojs-ui/oojs-ui-widgets.js b/resources/lib/oojs-ui/oojs-ui-widgets.js index 6962c92909..8242c86c7d 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.18.0 + * OOjs UI v0.18.1 * https://www.mediawiki.org/wiki/OOjs_UI * * Copyright 2011–2016 OOjs UI Team and other contributors. * Released under the MIT license * http://oojs.mit-license.org * - * Date: 2016-11-09T00:52:37Z + * Date: 2016-11-29T22:57:37Z */ ( function ( OO ) { @@ -4074,8 +4074,7 @@ OO.ui.CapsuleMultiselectWidget.prototype.onPopupFocusOut = function () { setTimeout( function () { if ( widget.isVisible() && - !OO.ui.contains( widget.$element[ 0 ], document.activeElement, true ) && - ( !widget.$autoCloseIgnore || !widget.$autoCloseIgnore.has( document.activeElement ).length ) + !OO.ui.contains( widget.$element.add( widget.$autoCloseIgnore ).get(), document.activeElement, true ) ) { widget.toggle( false ); } diff --git a/resources/lib/oojs-ui/oojs-ui-windows-apex.css b/resources/lib/oojs-ui/oojs-ui-windows-apex.css index 6258b84372..40de1d763e 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.18.0 + * OOjs UI v0.18.1 * https://www.mediawiki.org/wiki/OOjs_UI * * Copyright 2011–2016 OOjs UI Team and other contributors. * Released under the MIT license * http://oojs.mit-license.org * - * Date: 2016-11-09T00:52:42Z + * Date: 2016-11-29T22:57:42Z */ .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 359c469340..d1b35e870b 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.18.0 + * OOjs UI v0.18.1 * https://www.mediawiki.org/wiki/OOjs_UI * * Copyright 2011–2016 OOjs UI Team and other contributors. * Released under the MIT license * http://oojs.mit-license.org * - * Date: 2016-11-09T00:52:42Z + * Date: 2016-11-29T22:57:42Z */ .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 8b614c650e..f6e2a39a10 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.18.0 + * OOjs UI v0.18.1 * https://www.mediawiki.org/wiki/OOjs_UI * * Copyright 2011–2016 OOjs UI Team and other contributors. * Released under the MIT license * http://oojs.mit-license.org * - * Date: 2016-11-09T00:52:37Z + * Date: 2016-11-29T22:57:37Z */ ( function ( OO ) { @@ -1286,7 +1286,8 @@ OO.ui.WindowManager.prototype.getCurrentWindow = function () { * * @param {OO.ui.Window|string} win Window object or symbolic name of window to open * @param {Object} [data] Window opening data - * @param {jQuery} [data.$returnFocusTo] Element to which the window will return focus when closed. + * @param {jQuery|null} [data.$returnFocusTo] Element to which the window will return focus when closed. + * Defaults the current activeElement. If set to null, focus isn't changed on close. * @return {jQuery.Promise} An `opening` promise resolved when the window is done opening. * See {@link #event-opening 'opening' event} for more information about `opening` promises. * @fires opening @@ -1418,7 +1419,9 @@ OO.ui.WindowManager.prototype.closeWindow = function ( win, data ) { manager.toggleGlobalEvents( false ); manager.toggleAriaIsolation( false ); } - manager.$returnFocusTo[ 0 ].focus(); + if ( manager.$returnFocusTo && manager.$returnFocusTo.length ) { + manager.$returnFocusTo[ 0 ].focus(); + } manager.closing = null; manager.currentWindow = null; closing.resolve( data ); diff --git a/resources/lib/oojs-ui/themes/mediawiki/icons-alerts.json b/resources/lib/oojs-ui/themes/mediawiki/icons-alerts.json index f5694a1567..e6fa863c12 100644 --- a/resources/lib/oojs-ui/themes/mediawiki/icons-alerts.json +++ b/resources/lib/oojs-ui/themes/mediawiki/icons-alerts.json @@ -15,7 +15,7 @@ "color": "#36c" }, "destructive": { - "color": "#c33" + "color": "#d33" }, "warning": { "color": "#ff5d00" diff --git a/resources/lib/oojs-ui/themes/mediawiki/icons-content.json b/resources/lib/oojs-ui/themes/mediawiki/icons-content.json index 651cddfa06..80bbcaf2b3 100644 --- a/resources/lib/oojs-ui/themes/mediawiki/icons-content.json +++ b/resources/lib/oojs-ui/themes/mediawiki/icons-content.json @@ -15,7 +15,7 @@ "color": "#36c" }, "destructive": { - "color": "#c33" + "color": "#d33" }, "warning": { "color": "#ff5d00" diff --git a/resources/lib/oojs-ui/themes/mediawiki/icons-editing-advanced.json b/resources/lib/oojs-ui/themes/mediawiki/icons-editing-advanced.json index 6b9e490493..21efb82e48 100644 --- a/resources/lib/oojs-ui/themes/mediawiki/icons-editing-advanced.json +++ b/resources/lib/oojs-ui/themes/mediawiki/icons-editing-advanced.json @@ -15,7 +15,7 @@ "color": "#36c" }, "destructive": { - "color": "#c33" + "color": "#d33" }, "warning": { "color": "#ff5d00" diff --git a/resources/lib/oojs-ui/themes/mediawiki/icons-editing-core.json b/resources/lib/oojs-ui/themes/mediawiki/icons-editing-core.json index 11fcef7fd2..4515405b41 100644 --- a/resources/lib/oojs-ui/themes/mediawiki/icons-editing-core.json +++ b/resources/lib/oojs-ui/themes/mediawiki/icons-editing-core.json @@ -15,7 +15,7 @@ "color": "#36c" }, "destructive": { - "color": "#c33" + "color": "#d33" }, "warning": { "color": "#ff5d00" diff --git a/resources/lib/oojs-ui/themes/mediawiki/icons-editing-list.json b/resources/lib/oojs-ui/themes/mediawiki/icons-editing-list.json index cd4087efb7..3edb545470 100644 --- a/resources/lib/oojs-ui/themes/mediawiki/icons-editing-list.json +++ b/resources/lib/oojs-ui/themes/mediawiki/icons-editing-list.json @@ -15,7 +15,7 @@ "color": "#36c" }, "destructive": { - "color": "#c33" + "color": "#d33" }, "warning": { "color": "#ff5d00" diff --git a/resources/lib/oojs-ui/themes/mediawiki/icons-editing-styling.json b/resources/lib/oojs-ui/themes/mediawiki/icons-editing-styling.json index d168364924..c97d770273 100644 --- a/resources/lib/oojs-ui/themes/mediawiki/icons-editing-styling.json +++ b/resources/lib/oojs-ui/themes/mediawiki/icons-editing-styling.json @@ -15,7 +15,7 @@ "color": "#36c" }, "destructive": { - "color": "#c33" + "color": "#d33" }, "warning": { "color": "#ff5d00" diff --git a/resources/lib/oojs-ui/themes/mediawiki/icons-interactions.json b/resources/lib/oojs-ui/themes/mediawiki/icons-interactions.json index 7efe53169e..f110a0462a 100644 --- a/resources/lib/oojs-ui/themes/mediawiki/icons-interactions.json +++ b/resources/lib/oojs-ui/themes/mediawiki/icons-interactions.json @@ -15,7 +15,7 @@ "color": "#36c" }, "destructive": { - "color": "#c33" + "color": "#d33" }, "warning": { "color": "#ff5d00" diff --git a/resources/lib/oojs-ui/themes/mediawiki/icons-layout.json b/resources/lib/oojs-ui/themes/mediawiki/icons-layout.json index 765b8fefe0..6ff4a0e0d3 100644 --- a/resources/lib/oojs-ui/themes/mediawiki/icons-layout.json +++ b/resources/lib/oojs-ui/themes/mediawiki/icons-layout.json @@ -15,7 +15,7 @@ "color": "#36c" }, "destructive": { - "color": "#c33" + "color": "#d33" }, "warning": { "color": "#ff5d00" diff --git a/resources/lib/oojs-ui/themes/mediawiki/icons-location.json b/resources/lib/oojs-ui/themes/mediawiki/icons-location.json index c844449a81..7098f2304b 100644 --- a/resources/lib/oojs-ui/themes/mediawiki/icons-location.json +++ b/resources/lib/oojs-ui/themes/mediawiki/icons-location.json @@ -15,7 +15,7 @@ "color": "#36c" }, "destructive": { - "color": "#c33" + "color": "#d33" }, "warning": { "color": "#ff5d00" diff --git a/resources/lib/oojs-ui/themes/mediawiki/icons-media.json b/resources/lib/oojs-ui/themes/mediawiki/icons-media.json index 8c7b84554a..afdb9e527f 100644 --- a/resources/lib/oojs-ui/themes/mediawiki/icons-media.json +++ b/resources/lib/oojs-ui/themes/mediawiki/icons-media.json @@ -15,7 +15,7 @@ "color": "#36c" }, "destructive": { - "color": "#c33" + "color": "#d33" }, "warning": { "color": "#ff5d00" diff --git a/resources/lib/oojs-ui/themes/mediawiki/icons-moderation.json b/resources/lib/oojs-ui/themes/mediawiki/icons-moderation.json index e98012fd93..3779ae3fc0 100644 --- a/resources/lib/oojs-ui/themes/mediawiki/icons-moderation.json +++ b/resources/lib/oojs-ui/themes/mediawiki/icons-moderation.json @@ -15,7 +15,7 @@ "color": "#36c" }, "destructive": { - "color": "#c33" + "color": "#d33" }, "warning": { "color": "#ff5d00" diff --git a/resources/lib/oojs-ui/themes/mediawiki/icons-movement.json b/resources/lib/oojs-ui/themes/mediawiki/icons-movement.json index c545a49dbb..059073f408 100644 --- a/resources/lib/oojs-ui/themes/mediawiki/icons-movement.json +++ b/resources/lib/oojs-ui/themes/mediawiki/icons-movement.json @@ -15,7 +15,7 @@ "color": "#36c" }, "destructive": { - "color": "#c33" + "color": "#d33" }, "warning": { "color": "#ff5d00" diff --git a/resources/lib/oojs-ui/themes/mediawiki/icons-user.json b/resources/lib/oojs-ui/themes/mediawiki/icons-user.json index 39fdda5d2f..5a70c5ead8 100644 --- a/resources/lib/oojs-ui/themes/mediawiki/icons-user.json +++ b/resources/lib/oojs-ui/themes/mediawiki/icons-user.json @@ -15,7 +15,7 @@ "color": "#36c" }, "destructive": { - "color": "#c33" + "color": "#d33" }, "warning": { "color": "#ff5d00" diff --git a/resources/lib/oojs-ui/themes/mediawiki/icons-wikimedia.json b/resources/lib/oojs-ui/themes/mediawiki/icons-wikimedia.json index bac97683ee..61aec85d21 100644 --- a/resources/lib/oojs-ui/themes/mediawiki/icons-wikimedia.json +++ b/resources/lib/oojs-ui/themes/mediawiki/icons-wikimedia.json @@ -15,7 +15,7 @@ "color": "#36c" }, "destructive": { - "color": "#c33" + "color": "#d33" }, "warning": { "color": "#ff5d00" diff --git a/resources/lib/oojs-ui/themes/mediawiki/icons.json b/resources/lib/oojs-ui/themes/mediawiki/icons.json index 6a7c5659fa..4666fd1a59 100644 --- a/resources/lib/oojs-ui/themes/mediawiki/icons.json +++ b/resources/lib/oojs-ui/themes/mediawiki/icons.json @@ -15,7 +15,7 @@ "color": "#36c" }, "destructive": { - "color": "#c33" + "color": "#d33" }, "warning": { "color": "#ff5d00" diff --git a/resources/lib/oojs-ui/themes/mediawiki/images/icons/block-destructive.png b/resources/lib/oojs-ui/themes/mediawiki/images/icons/block-destructive.png index 53460bea18..54b9f62ffa 100644 Binary files a/resources/lib/oojs-ui/themes/mediawiki/images/icons/block-destructive.png and b/resources/lib/oojs-ui/themes/mediawiki/images/icons/block-destructive.png differ diff --git a/resources/lib/oojs-ui/themes/mediawiki/images/icons/block-destructive.svg b/resources/lib/oojs-ui/themes/mediawiki/images/icons/block-destructive.svg index abf656f313..f01a7790d4 100644 --- a/resources/lib/oojs-ui/themes/mediawiki/images/icons/block-destructive.svg +++ b/resources/lib/oojs-ui/themes/mediawiki/images/icons/block-destructive.svg @@ -1,4 +1,4 @@ - + diff --git a/resources/lib/oojs-ui/themes/mediawiki/images/icons/cancel-destructive.png b/resources/lib/oojs-ui/themes/mediawiki/images/icons/cancel-destructive.png index 000e529e3c..f574a39231 100644 Binary files a/resources/lib/oojs-ui/themes/mediawiki/images/icons/cancel-destructive.png and b/resources/lib/oojs-ui/themes/mediawiki/images/icons/cancel-destructive.png differ diff --git a/resources/lib/oojs-ui/themes/mediawiki/images/icons/cancel-destructive.svg b/resources/lib/oojs-ui/themes/mediawiki/images/icons/cancel-destructive.svg index b2b01790ca..3391d4e8eb 100644 --- a/resources/lib/oojs-ui/themes/mediawiki/images/icons/cancel-destructive.svg +++ b/resources/lib/oojs-ui/themes/mediawiki/images/icons/cancel-destructive.svg @@ -1,5 +1,5 @@ - + diff --git a/resources/lib/oojs-ui/themes/mediawiki/images/icons/check-destructive.png b/resources/lib/oojs-ui/themes/mediawiki/images/icons/check-destructive.png index 0cc9169ee5..305f41d5e6 100644 Binary files a/resources/lib/oojs-ui/themes/mediawiki/images/icons/check-destructive.png and b/resources/lib/oojs-ui/themes/mediawiki/images/icons/check-destructive.png differ diff --git a/resources/lib/oojs-ui/themes/mediawiki/images/icons/check-destructive.svg b/resources/lib/oojs-ui/themes/mediawiki/images/icons/check-destructive.svg index 7e3dc53dc9..059f0bd146 100644 --- a/resources/lib/oojs-ui/themes/mediawiki/images/icons/check-destructive.svg +++ b/resources/lib/oojs-ui/themes/mediawiki/images/icons/check-destructive.svg @@ -1,4 +1,4 @@ - + diff --git a/resources/lib/oojs-ui/themes/mediawiki/images/icons/lock-ltr-destructive.png b/resources/lib/oojs-ui/themes/mediawiki/images/icons/lock-ltr-destructive.png index 42311de116..e16f04292f 100644 Binary files a/resources/lib/oojs-ui/themes/mediawiki/images/icons/lock-ltr-destructive.png and b/resources/lib/oojs-ui/themes/mediawiki/images/icons/lock-ltr-destructive.png differ diff --git a/resources/lib/oojs-ui/themes/mediawiki/images/icons/lock-ltr-destructive.svg b/resources/lib/oojs-ui/themes/mediawiki/images/icons/lock-ltr-destructive.svg index a9900c18e2..2cfa62e84f 100644 --- a/resources/lib/oojs-ui/themes/mediawiki/images/icons/lock-ltr-destructive.svg +++ b/resources/lib/oojs-ui/themes/mediawiki/images/icons/lock-ltr-destructive.svg @@ -1,4 +1,4 @@ - + diff --git a/resources/lib/oojs-ui/themes/mediawiki/images/icons/lock-rtl-destructive.png b/resources/lib/oojs-ui/themes/mediawiki/images/icons/lock-rtl-destructive.png index 72d6a7b6b4..29cd2b57a2 100644 Binary files a/resources/lib/oojs-ui/themes/mediawiki/images/icons/lock-rtl-destructive.png and b/resources/lib/oojs-ui/themes/mediawiki/images/icons/lock-rtl-destructive.png differ diff --git a/resources/lib/oojs-ui/themes/mediawiki/images/icons/lock-rtl-destructive.svg b/resources/lib/oojs-ui/themes/mediawiki/images/icons/lock-rtl-destructive.svg index 2811b252d6..2daea47b1a 100644 --- a/resources/lib/oojs-ui/themes/mediawiki/images/icons/lock-rtl-destructive.svg +++ b/resources/lib/oojs-ui/themes/mediawiki/images/icons/lock-rtl-destructive.svg @@ -1,4 +1,4 @@ - + diff --git a/resources/lib/oojs-ui/themes/mediawiki/images/icons/tag-destructive.png b/resources/lib/oojs-ui/themes/mediawiki/images/icons/tag-destructive.png index 55ab6c435e..cf85c4d052 100644 Binary files a/resources/lib/oojs-ui/themes/mediawiki/images/icons/tag-destructive.png and b/resources/lib/oojs-ui/themes/mediawiki/images/icons/tag-destructive.png differ diff --git a/resources/lib/oojs-ui/themes/mediawiki/images/icons/tag-destructive.svg b/resources/lib/oojs-ui/themes/mediawiki/images/icons/tag-destructive.svg index 7048a402b2..0732f2ebe6 100644 --- a/resources/lib/oojs-ui/themes/mediawiki/images/icons/tag-destructive.svg +++ b/resources/lib/oojs-ui/themes/mediawiki/images/icons/tag-destructive.svg @@ -1,4 +1,4 @@ - + diff --git a/resources/lib/oojs-ui/themes/mediawiki/images/icons/trash-destructive.png b/resources/lib/oojs-ui/themes/mediawiki/images/icons/trash-destructive.png index c1d2a66790..c367e77b0f 100644 Binary files a/resources/lib/oojs-ui/themes/mediawiki/images/icons/trash-destructive.png and b/resources/lib/oojs-ui/themes/mediawiki/images/icons/trash-destructive.png differ diff --git a/resources/lib/oojs-ui/themes/mediawiki/images/icons/trash-destructive.svg b/resources/lib/oojs-ui/themes/mediawiki/images/icons/trash-destructive.svg index 3ebc63b862..59ad3f280b 100644 --- a/resources/lib/oojs-ui/themes/mediawiki/images/icons/trash-destructive.svg +++ b/resources/lib/oojs-ui/themes/mediawiki/images/icons/trash-destructive.svg @@ -1,4 +1,4 @@ - + diff --git a/resources/lib/oojs-ui/themes/mediawiki/images/icons/unLock-ltr-destructive.png b/resources/lib/oojs-ui/themes/mediawiki/images/icons/unLock-ltr-destructive.png index 8fb039ca5c..2cb27f157c 100644 Binary files a/resources/lib/oojs-ui/themes/mediawiki/images/icons/unLock-ltr-destructive.png and b/resources/lib/oojs-ui/themes/mediawiki/images/icons/unLock-ltr-destructive.png differ diff --git a/resources/lib/oojs-ui/themes/mediawiki/images/icons/unLock-ltr-destructive.svg b/resources/lib/oojs-ui/themes/mediawiki/images/icons/unLock-ltr-destructive.svg index 7ee7522a4f..d45ebac277 100644 --- a/resources/lib/oojs-ui/themes/mediawiki/images/icons/unLock-ltr-destructive.svg +++ b/resources/lib/oojs-ui/themes/mediawiki/images/icons/unLock-ltr-destructive.svg @@ -1,4 +1,4 @@ - + diff --git a/resources/lib/oojs-ui/themes/mediawiki/images/icons/unLock-rtl-destructive.png b/resources/lib/oojs-ui/themes/mediawiki/images/icons/unLock-rtl-destructive.png index 7c2786d4c4..fac51b9fdd 100644 Binary files a/resources/lib/oojs-ui/themes/mediawiki/images/icons/unLock-rtl-destructive.png and b/resources/lib/oojs-ui/themes/mediawiki/images/icons/unLock-rtl-destructive.png differ diff --git a/resources/lib/oojs-ui/themes/mediawiki/images/icons/unLock-rtl-destructive.svg b/resources/lib/oojs-ui/themes/mediawiki/images/icons/unLock-rtl-destructive.svg index a5f2721672..5e6d2055a2 100644 --- a/resources/lib/oojs-ui/themes/mediawiki/images/icons/unLock-rtl-destructive.svg +++ b/resources/lib/oojs-ui/themes/mediawiki/images/icons/unLock-rtl-destructive.svg @@ -1,4 +1,4 @@ - + diff --git a/resources/lib/oojs-ui/themes/mediawiki/indicators.json b/resources/lib/oojs-ui/themes/mediawiki/indicators.json index 349227a4f5..91d0358d19 100644 --- a/resources/lib/oojs-ui/themes/mediawiki/indicators.json +++ b/resources/lib/oojs-ui/themes/mediawiki/indicators.json @@ -15,7 +15,7 @@ "color": "#36c" }, "destructive": { - "color": "#c33" + "color": "#d33" }, "warning": { "color": "#ff5d00"