From: Volker E Date: Wed, 17 Jan 2018 05:47:34 +0000 (-0800) Subject: Update OOUI to v0.25.1 X-Git-Tag: 1.31.0-rc.0~888^2 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=a3123006fe4b6414e1915f3f06ebe30b0cc1abad;p=lhc%2Fweb%2Fwiklou.git Update OOUI to v0.25.1 Release notes: https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.25.1 Depends-on: I4d0697f93fccd919fedd370b0c196af8a3046c50 Change-Id: I6413f052928b1980a6a1031df92a932ba1f14941 --- diff --git a/composer.json b/composer.json index 65da22ab20..4ae1f00d17 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.25.0", + "oojs/oojs-ui": "0.25.1", "oyejorge/less.php": "1.7.0.14", "php": ">=5.5.9", "psr/log": "1.0.2", diff --git a/resources/lib/oojs-ui/i18n/hy.json b/resources/lib/oojs-ui/i18n/hy.json index 341d0ff1b5..598fee35f0 100644 --- a/resources/lib/oojs-ui/i18n/hy.json +++ b/resources/lib/oojs-ui/i18n/hy.json @@ -4,7 +4,8 @@ "Vacio", "Xelgen", "Դավիթ Սարոյան", - "Vahe Gharakhanyan" + "Vahe Gharakhanyan", + "Kareyac" ] }, "ooui-outline-control-move-down": "Իջեցնել ներքև", @@ -13,6 +14,7 @@ "ooui-toolbar-more": "Ավելին", "ooui-toolgroup-expand": "Ավելին", "ooui-toolgroup-collapse": "Պակաս", + "ooui-item-remove": "Հեռացնել", "ooui-dialog-message-accept": "Լավ", "ooui-dialog-message-reject": "Չեղարկել", "ooui-dialog-process-error": "Ինչ-որ սխալ է տեղի ունեցել", diff --git a/resources/lib/oojs-ui/i18n/ja.json b/resources/lib/oojs-ui/i18n/ja.json index 960e9431c6..1c3f9c3143 100644 --- a/resources/lib/oojs-ui/i18n/ja.json +++ b/resources/lib/oojs-ui/i18n/ja.json @@ -9,14 +9,15 @@ "Los688", "Sujiniku", "Translatealcd", - "Otokoume" + "Otokoume", + "Rxy" ] }, "ooui-outline-control-move-down": "項目を下に移動させる", "ooui-outline-control-move-up": "項目を上に移動させる", "ooui-outline-control-remove": "項目を除去", "ooui-toolbar-more": "その他", - "ooui-toolgroup-expand": "その他", + "ooui-toolgroup-expand": "続き", "ooui-toolgroup-collapse": "折り畳む", "ooui-item-remove": "削除", "ooui-dialog-message-accept": "OK", diff --git a/resources/lib/oojs-ui/oojs-ui-apex.js b/resources/lib/oojs-ui/oojs-ui-apex.js index e51b40b003..3bbe11c74a 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.25.0 - * https://www.mediawiki.org/wiki/OOjs_UI + * OOUI v0.25.1 + * https://www.mediawiki.org/wiki/OOUI * - * Copyright 2011–2018 OOjs UI Team and other contributors. + * Copyright 2011–2018 OOUI Team and other contributors. * Released under the MIT license * http://oojs.mit-license.org * - * Date: 2018-01-10T00:26:02Z + * Date: 2018-01-17T01:47:15Z */ ( 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 a373e48ae2..38098c7b60 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.25.0 - * https://www.mediawiki.org/wiki/OOjs_UI + * OOUI v0.25.1 + * https://www.mediawiki.org/wiki/OOUI * - * Copyright 2011–2018 OOjs UI Team and other contributors. + * Copyright 2011–2018 OOUI Team and other contributors. * Released under the MIT license * http://oojs.mit-license.org * - * Date: 2018-01-10T00:26:07Z + * Date: 2018-01-17T01:47:20Z */ .oo-ui-element-hidden { display: none !important; @@ -511,8 +511,6 @@ body:not( :-moz-handler-blocked ) .oo-ui-fieldsetLayout { } .oo-ui-panelLayout-scrollable { overflow: auto; - -webkit-transform: translateZ(0); - transform: translateZ(0); } .oo-ui-panelLayout-expanded { position: absolute; @@ -532,9 +530,6 @@ body:not( :-moz-handler-blocked ) .oo-ui-fieldsetLayout { .oo-ui-panelLayout-padded.oo-ui-panelLayout-framed { margin: 1em 0; } -.oo-ui-panelLayout-scrollable { - background-color: #fff; -} .oo-ui-horizontalLayout > .oo-ui-widget { display: inline-block; vertical-align: middle; diff --git a/resources/lib/oojs-ui/oojs-ui-core-wikimediaui.css b/resources/lib/oojs-ui/oojs-ui-core-wikimediaui.css index c19b02f51e..f9183da934 100644 --- a/resources/lib/oojs-ui/oojs-ui-core-wikimediaui.css +++ b/resources/lib/oojs-ui/oojs-ui-core-wikimediaui.css @@ -1,12 +1,12 @@ /*! - * OOjs UI v0.25.0 - * https://www.mediawiki.org/wiki/OOjs_UI + * OOUI v0.25.1 + * https://www.mediawiki.org/wiki/OOUI * - * Copyright 2011–2018 OOjs UI Team and other contributors. + * Copyright 2011–2018 OOUI Team and other contributors. * Released under the MIT license * http://oojs.mit-license.org * - * Date: 2018-01-10T00:26:07Z + * Date: 2018-01-17T01:47:20Z */ /** * WikimediaUI Base v0.10.0 @@ -665,8 +665,6 @@ body:not( :-moz-handler-blocked ) .oo-ui-fieldsetLayout { } .oo-ui-panelLayout-scrollable { overflow: auto; - -webkit-transform: translateZ(0); - transform: translateZ(0); } .oo-ui-panelLayout-expanded { position: absolute; @@ -689,9 +687,6 @@ body:not( :-moz-handler-blocked ) .oo-ui-fieldsetLayout { .oo-ui-panelLayout-padded.oo-ui-panelLayout-framed { margin: 1em 0; } -.oo-ui-panelLayout-scrollable { - background-color: #fff; -} .oo-ui-horizontalLayout > .oo-ui-widget { display: inline-block; vertical-align: middle; diff --git a/resources/lib/oojs-ui/oojs-ui-core.js b/resources/lib/oojs-ui/oojs-ui-core.js index 92112c745f..96d730f7ad 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.25.0 - * https://www.mediawiki.org/wiki/OOjs_UI + * OOUI v0.25.1 + * https://www.mediawiki.org/wiki/OOUI * - * Copyright 2011–2018 OOjs UI Team and other contributors. + * Copyright 2011–2018 OOUI Team and other contributors. * Released under the MIT license * http://oojs.mit-license.org * - * Date: 2018-01-10T00:26:02Z + * Date: 2018-01-17T01:47:15Z */ ( function ( OO ) { @@ -68,7 +68,7 @@ OO.ui.elementId = 0; */ OO.ui.generateElementId = function () { OO.ui.elementId++; - return 'oojsui-' + OO.ui.elementId; + return 'ooui-' + OO.ui.elementId; }; /** @@ -411,7 +411,7 @@ OO.ui.infuse = function ( idOrNode ) { * * $.i18n().load( languageMap ).done( function() { * // Replace the built-in `msg` only once we've loaded the internationalization. - * // OOjs UI uses `OO.ui.deferMsg` for all initially-loaded messages. So long as + * // OOUI uses `OO.ui.deferMsg` for all initially-loaded messages. So long as * // you put off creating any widgets until this promise is complete, no English * // will be displayed. * OO.ui.msg = $.i18n; @@ -558,7 +558,7 @@ OO.ui.getViewportSpacing = function () { /** * Get the default overlay, which is used by various widgets when they are passed `$overlay: true`. - * See . + * See . * * @return {jQuery} Default overlay node */ @@ -575,7 +575,7 @@ OO.ui.getDefaultOverlay = function () { */ /** - * Namespace for OOjs UI mixins. + * Namespace for OOUI mixins. * * Mixins are named according to the type of object they are intended to * be mixed in to. For example, OO.ui.mixin.GroupElement is intended to be @@ -598,9 +598,9 @@ OO.ui.mixin = {}; * @constructor * @param {Object} [config] Configuration options * @cfg {string[]} [classes] The names of the CSS classes to apply to the element. CSS styles are added - * to the top level (e.g., the outermost div) of the element. See the [OOjs UI documentation on MediaWiki][2] + * to the top level (e.g., the outermost div) of the element. See the [OOUI documentation on MediaWiki][2] * for an example. - * [2]: https://www.mediawiki.org/wiki/OOjs_UI/Widgets/Buttons_and_Switches#cssExample + * [2]: https://www.mediawiki.org/wiki/OOUI/Widgets/Buttons_and_Switches#cssExample * @cfg {string} [id] The HTML id attribute used in the rendered tag. * @cfg {string} [text] Text to insert * @cfg {Array} [content] An array of content elements to append (after #text). @@ -1634,7 +1634,7 @@ OO.inheritClass( OO.ui.Layout, OO.ui.Element ); OO.mixinClass( OO.ui.Layout, OO.EventEmitter ); /** - * Widgets are compositions of one or more OOjs UI elements that users can both view + * Widgets are compositions of one or more OOUI elements that users can both view * and interact with. All widgets can be configured and modified via a standard API, * and their state can change dynamically according to a model. * @@ -2083,9 +2083,9 @@ OO.ui.mixin.TabIndexedElement.prototype.simulateLabelClick = function () { /** * ButtonElement is often mixed into other classes to generate a button, which is a clickable * interface element that can be configured with access keys for accessibility. - * See the [OOjs UI documentation on MediaWiki] [1] for examples. + * See the [OOUI documentation on MediaWiki] [1] for examples. * - * [1]: https://www.mediawiki.org/wiki/OOjs_UI/Widgets/Buttons_and_Switches#Buttons + * [1]: https://www.mediawiki.org/wiki/OOUI/Widgets/Buttons_and_Switches#Buttons * * @abstract * @class @@ -2340,12 +2340,12 @@ OO.ui.mixin.ButtonElement.prototype.isActive = function () { }; /** - * Any OOjs UI widget that contains other widgets (such as {@link OO.ui.ButtonWidget buttons} or + * Any OOUI widget that contains other widgets (such as {@link OO.ui.ButtonWidget buttons} or * {@link OO.ui.OptionWidget options}) mixes in GroupElement. Adding, removing, and clearing * items from the group is done through the interface the class provides. - * For more information, please see the [OOjs UI documentation on MediaWiki] [1]. + * For more information, please see the [OOUI documentation on MediaWiki] [1]. * - * [1]: https://www.mediawiki.org/wiki/OOjs_UI/Elements/Groups + * [1]: https://www.mediawiki.org/wiki/OOUI/Elements/Groups * * @abstract * @mixins OO.EmitterList @@ -2590,10 +2590,10 @@ OO.ui.mixin.GroupElement.prototype.clearItems = function () { * IconElement is often mixed into other classes to generate an icon. * Icons are graphics, about the size of normal text. They are used to aid the user * in locating a control or to convey information in a space-efficient way. See the - * [OOjs UI documentation on MediaWiki] [1] for a list of icons + * [OOUI documentation on MediaWiki] [1] for a list of icons * included in the library. * - * [1]: https://www.mediawiki.org/wiki/OOjs_UI/Widgets/Icons,_Indicators,_and_Labels#Icons + * [1]: https://www.mediawiki.org/wiki/OOUI/Widgets/Icons,_Indicators,_and_Labels#Icons * * @abstract * @class @@ -2619,8 +2619,8 @@ OO.ui.mixin.GroupElement.prototype.clearItems = function () { * Example of an i18n map: * * { default: 'bold-a', en: 'bold-b', de: 'bold-f' } - * See the [OOjs UI documentation on MediaWiki] [2] for a list of icons included in the library. - * [2]: https://www.mediawiki.org/wiki/OOjs_UI/Widgets/Icons,_Indicators,_and_Labels#Icons + * See the [OOUI documentation on MediaWiki] [2] for a list of icons included in the library. + * [2]: https://www.mediawiki.org/wiki/OOUI/Widgets/Icons,_Indicators,_and_Labels#Icons * @cfg {string|Function} [iconTitle] A text string used as the icon title, or a function that returns title * text. The icon title is displayed when users move the mouse over the icon. */ @@ -2786,9 +2786,9 @@ OO.ui.mixin.IconElement.prototype.getIconTitle = function () { * that opens a menu instead of performing an action directly, for example). * * For a list of indicators included in the library, please see the - * [OOjs UI documentation on MediaWiki] [1]. + * [OOUI documentation on MediaWiki] [1]. * - * [1]: https://www.mediawiki.org/wiki/OOjs_UI/Widgets/Icons,_Indicators,_and_Labels#Indicators + * [1]: https://www.mediawiki.org/wiki/OOUI/Widgets/Icons,_Indicators,_and_Labels#Indicators * * @abstract * @class @@ -2798,9 +2798,9 @@ OO.ui.mixin.IconElement.prototype.getIconTitle = function () { * @cfg {jQuery} [$indicator] The indicator element created by the class. If this * configuration is omitted, the indicator element will use a generated ``. * @cfg {string} [indicator] Symbolic name of the indicator (e.g., ‘alert’ or ‘down’). - * See the [OOjs UI documentation on MediaWiki][2] for a list of indicators included + * See the [OOUI documentation on MediaWiki][2] for a list of indicators included * in the library. - * [2]: https://www.mediawiki.org/wiki/OOjs_UI/Widgets/Icons,_Indicators,_and_Labels#Indicators + * [2]: https://www.mediawiki.org/wiki/OOUI/Widgets/Icons,_Indicators,_and_Labels#Indicators * @cfg {string|Function} [indicatorTitle] A text string used as the indicator title, * or a function that returns title text. The indicator title is displayed when users move * the mouse over the indicator. @@ -2950,9 +2950,9 @@ OO.ui.mixin.IndicatorElement.prototype.getIndicatorTitle = function () { /** * LabelElement is often mixed into other classes to generate a label, which * helps identify the function of an interface element. - * See the [OOjs UI documentation on MediaWiki] [1] for more information. + * See the [OOUI documentation on MediaWiki] [1] for more information. * - * [1]: https://www.mediawiki.org/wiki/OOjs_UI/Widgets/Icons,_Indicators,_and_Labels#Labels + * [1]: https://www.mediawiki.org/wiki/OOUI/Widgets/Icons,_Indicators,_and_Labels#Labels * * @abstract * @class @@ -2963,8 +2963,8 @@ OO.ui.mixin.IndicatorElement.prototype.getIndicatorTitle = function () { * configuration is omitted, the label element will use a generated ``. * @cfg {jQuery|string|Function|OO.ui.HtmlSnippet} [label] The label text. The label can be specified * as a plaintext string, a jQuery selection of elements, or a function that will produce a string - * in the future. See the [OOjs UI documentation on MediaWiki] [2] for examples. - * [2]: https://www.mediawiki.org/wiki/OOjs_UI/Widgets/Icons,_Indicators,_and_Labels#Labels + * in the future. See the [OOUI documentation on MediaWiki] [2] for examples. + * [2]: https://www.mediawiki.org/wiki/OOUI/Widgets/Icons,_Indicators,_and_Labels#Labels */ OO.ui.mixin.LabelElement = function OoUiMixinLabelElement( config ) { // Configuration initialization @@ -3165,9 +3165,9 @@ OO.ui.mixin.LabelElement.prototype.setLabelContent = function ( label ) { * $( 'body' ).append( button1.$element, button2.$element ); * * {@link OO.ui.ActionWidget ActionWidgets}, which are a special kind of button that execute an action, use these flags: **primary** and **safe**. - * Please see the [OOjs UI documentation on MediaWiki] [1] for more information. + * Please see the [OOUI documentation on MediaWiki] [1] for more information. * - * [1]: https://www.mediawiki.org/wiki/OOjs_UI/Elements/Flagged + * [1]: https://www.mediawiki.org/wiki/OOUI/Elements/Flagged * * @abstract * @class @@ -3175,8 +3175,8 @@ OO.ui.mixin.LabelElement.prototype.setLabelContent = function ( label ) { * @constructor * @param {Object} [config] Configuration options * @cfg {string|string[]} [flags] The name or names of the flags (e.g., 'progressive' or 'primary') to apply. - * Please see the [OOjs UI documentation on MediaWiki] [2] for more information about available flags. - * [2]: https://www.mediawiki.org/wiki/OOjs_UI/Elements/Flagged + * Please see the [OOUI documentation on MediaWiki] [2] for more information about available flags. + * [2]: https://www.mediawiki.org/wiki/OOUI/Elements/Flagged * @cfg {jQuery} [$flagged] The flagged element. By default, * the flagged functionality is applied to the element created by the class ($element). * If a different element is specified, the flagged functionality will be applied to it instead. @@ -3616,10 +3616,10 @@ OO.ui.mixin.AccessKeyedElement.prototype.formatTitleWithAccessKey = function ( t /** * ButtonWidget is a generic widget for buttons. A wide variety of looks, * feels, and functionality can be customized via the class’s configuration options - * and methods. Please see the [OOjs UI documentation on MediaWiki] [1] for more information + * and methods. Please see the [OOUI documentation on MediaWiki] [1] for more information * and examples. * - * [1]: https://www.mediawiki.org/wiki/OOjs_UI/Widgets/Buttons_and_Switches + * [1]: https://www.mediawiki.org/wiki/OOUI/Widgets/Buttons_and_Switches * * @example * // A button widget @@ -3924,7 +3924,7 @@ OO.ui.ButtonGroupWidget.prototype.simulateLabelClick = function () { /** * IconWidget is a generic widget for {@link OO.ui.mixin.IconElement icons}. In general, IconWidgets should be used with OO.ui.LabelWidget, - * which creates a label that identifies the icon’s function. See the [OOjs UI documentation on MediaWiki] [1] + * which creates a label that identifies the icon’s function. See the [OOUI documentation on MediaWiki] [1] * for a list of icons included in the library. * * @example @@ -3939,7 +3939,7 @@ OO.ui.ButtonGroupWidget.prototype.simulateLabelClick = function () { * } ); * $( 'body' ).append( myIcon.$element, iconLabel.$element ); * - * [1]: https://www.mediawiki.org/wiki/OOjs_UI/Widgets/Icons,_Indicators,_and_Labels#Icons + * [1]: https://www.mediawiki.org/wiki/OOUI/Widgets/Icons,_Indicators,_and_Labels#Icons * * @class * @extends OO.ui.Widget @@ -3984,7 +3984,7 @@ OO.ui.IconWidget.static.tagName = 'span'; /** * IndicatorWidgets create indicators, which are small graphics that are generally used to draw * attention to the status of an item or to clarify the function of a control. For a list of - * indicators included in the library, please see the [OOjs UI documentation on MediaWiki][1]. + * indicators included in the library, please see the [OOUI documentation on MediaWiki][1]. * * @example * // Example of an indicator widget @@ -3999,7 +3999,7 @@ OO.ui.IconWidget.static.tagName = 'span'; * ] ); * $( 'body' ).append( fieldset.$element ); * - * [1]: https://www.mediawiki.org/wiki/OOjs_UI/Widgets/Icons,_Indicators,_and_Labels#Indicators + * [1]: https://www.mediawiki.org/wiki/OOUI/Widgets/Icons,_Indicators,_and_Labels#Indicators * * @class * @extends OO.ui.Widget @@ -4098,7 +4098,6 @@ OO.ui.LabelWidget = function OoUiLabelWidget( config ) { } else { this.$label.on( 'click', function () { this.input.simulateLabelClick(); - return false; }.bind( this ) ); } } @@ -5070,7 +5069,7 @@ OO.ui.mixin.ClippableElement.prototype.clip = function () { /** * PopupWidget is a container for content. The popup is overlaid and positioned absolutely. * By default, each popup has an anchor that points toward its origin. - * Please see the [OOjs UI documentation on Mediawiki] [1] for more information and examples. + * Please see the [OOUI documentation on Mediawiki] [1] for more information and examples. * * Unlike most widgets, PopupWidget is initially hidden and must be shown by calling #toggle. * @@ -5086,7 +5085,7 @@ OO.ui.mixin.ClippableElement.prototype.clip = function () { * // To display the popup, toggle the visibility to 'true'. * popup.toggle( true ); * - * [1]: https://www.mediawiki.org/wiki/OOjs_UI/Widgets/Popups + * [1]: https://www.mediawiki.org/wiki/OOUI/Widgets/Popups * * @class * @extends OO.ui.Widget @@ -5123,16 +5122,16 @@ OO.ui.mixin.ClippableElement.prototype.clip = function () { * 'above' and 'below', or between 'before' and 'after', if there is not enough space in the * desired direction to display the popup without clipping * @cfg {jQuery} [$container] Constrain the popup to the boundaries of the specified container. - * See the [OOjs UI docs on MediaWiki][3] for an example. - * [3]: https://www.mediawiki.org/wiki/OOjs_UI/Widgets/Popups#containerExample + * See the [OOUI docs on MediaWiki][3] for an example. + * [3]: https://www.mediawiki.org/wiki/OOUI/Widgets/Popups#containerExample * @cfg {number} [containerPadding=10] Padding between the popup and its container, specified as a number of pixels. * @cfg {jQuery} [$content] Content to append to the popup's body * @cfg {jQuery} [$footer] Content to append to the popup's footer * @cfg {boolean} [autoClose=false] Automatically close the popup when it loses focus. * @cfg {jQuery} [$autoCloseIgnore] Elements that will not close the popup when clicked. - * This config option is only relevant if #autoClose is set to `true`. See the [OOjs UI docs on MediaWiki][2] + * This config option is only relevant if #autoClose is set to `true`. See the [OOUI documentation on MediaWiki][2] * for an example. - * [2]: https://www.mediawiki.org/wiki/OOjs_UI/Widgets/Popups#autocloseExample + * [2]: https://www.mediawiki.org/wiki/OOUI/Widgets/Popups#autocloseExample * @cfg {boolean} [head=false] Show a popup header that contains a #label (if specified) and close * button. * @cfg {boolean} [padded=false] Add padding to the popup's body @@ -5824,7 +5823,7 @@ OO.ui.mixin.PopupElement.prototype.getPopup = function () { * @cfg {jQuery} [$overlay] Render the popup into a separate layer. This configuration is useful in cases where * the expanded popup is larger than its containing `
`. The specified overlay layer is usually on top of the * containing `
` and has a larger area. By default, the popup uses relative positioning. - * See . + * See . */ OO.ui.PopupButtonWidget = function OoUiPopupButtonWidget( config ) { // Configuration initialization @@ -5971,9 +5970,9 @@ OO.ui.mixin.ItemWidget.prototype.setElementGroup = function ( group ) { * OptionWidgets are special elements that can be selected and configured with data. The * data is often unique for each option, but it does not have to be. OptionWidgets are used * with OO.ui.SelectWidget to create a selection of mutually exclusive options. For more information - * and examples, please see the [OOjs UI documentation on MediaWiki][1]. + * and examples, please see the [OOUI documentation on MediaWiki][1]. * - * [1]: https://www.mediawiki.org/wiki/OOjs_UI/Widgets/Selects_and_Options + * [1]: https://www.mediawiki.org/wiki/OOUI/Widgets/Selects_and_Options * * @class * @extends OO.ui.Widget @@ -6194,13 +6193,13 @@ OO.ui.OptionWidget.prototype.getMatchText = function () { }; /** - * A SelectWidget is of a generic selection of options. The OOjs UI library contains several types of + * A SelectWidget is of a generic selection of options. The OOUI library contains several types of * select widgets, including {@link OO.ui.ButtonSelectWidget button selects}, * {@link OO.ui.RadioSelectWidget radio selects}, and {@link OO.ui.MenuSelectWidget * menu selects}. * * This class should be used together with OO.ui.OptionWidget or OO.ui.DecoratedOptionWidget. For more - * information, please see the [OOjs UI documentation on MediaWiki][1]. + * information, please see the [OOUI documentation on MediaWiki][1]. * * @example * // Example of a select widget with three options @@ -6222,7 +6221,7 @@ OO.ui.OptionWidget.prototype.getMatchText = function () { * } ); * $( 'body' ).append( select.$element ); * - * [1]: https://www.mediawiki.org/wiki/OOjs_UI/Widgets/Selects_and_Options + * [1]: https://www.mediawiki.org/wiki/OOUI/Widgets/Selects_and_Options * * @abstract * @class @@ -6233,8 +6232,8 @@ OO.ui.OptionWidget.prototype.getMatchText = function () { * @param {Object} [config] Configuration options * @cfg {OO.ui.OptionWidget[]} [items] An array of options to add to the select. * Options are created with {@link OO.ui.OptionWidget OptionWidget} classes. See - * the [OOjs UI documentation on MediaWiki] [2] for examples. - * [2]: https://www.mediawiki.org/wiki/OOjs_UI/Widgets/Selects_and_Options + * the [OOUI documentation on MediaWiki] [2] for examples. + * [2]: https://www.mediawiki.org/wiki/OOUI/Widgets/Selects_and_Options */ OO.ui.SelectWidget = function OoUiSelectWidget( config ) { // Configuration initialization @@ -6347,7 +6346,7 @@ OO.ui.SelectWidget.prototype.onFocus = function ( event ) { if ( event.target === this.$element[ 0 ] ) { // This widget was focussed, e.g. by the user tabbing to it. // The styles for focus state depend on one of the items being selected. - if ( !this.getSelectedItem() ) { + if ( !this.findSelectedItem() ) { item = this.findFirstSelectableItem(); } } else { @@ -6484,7 +6483,7 @@ OO.ui.SelectWidget.prototype.onMouseLeave = function () { OO.ui.SelectWidget.prototype.onKeyDown = function ( e ) { var nextItem, handled = false, - currentItem = this.findHighlightedItem() || this.getSelectedItem(); + currentItem = this.findHighlightedItem() || this.findSelectedItem(); if ( !this.isDisabled() && this.isVisible() ) { switch ( e.keyCode ) { @@ -6610,7 +6609,7 @@ OO.ui.SelectWidget.prototype.onKeyPress = function ( e ) { } this.keyPressBufferTimer = setTimeout( this.clearKeyPressBuffer.bind( this ), 1500 ); - item = this.findHighlightedItem() || this.getSelectedItem(); + item = this.findHighlightedItem() || this.findSelectedItem(); if ( this.keyPressBuffer === c ) { // Common (if weird) special case: typing "xxxx" will cycle through all @@ -7104,7 +7103,7 @@ OO.ui.SelectWidget.prototype.setFocusOwner = function ( $focusOwner ) { * with an {@link OO.ui.mixin.IconElement icon} and/or {@link OO.ui.mixin.IndicatorElement indicator}. * This class is used with OO.ui.SelectWidget to create a selection of mutually exclusive * options. For more information about options and selects, please see the - * [OOjs UI documentation on MediaWiki][1]. + * [OOUI documentation on MediaWiki][1]. * * @example * // Decorated options in a select widget @@ -7124,7 +7123,7 @@ OO.ui.SelectWidget.prototype.setFocusOwner = function ( $focusOwner ) { * } ); * $( 'body' ).append( select.$element ); * - * [1]: https://www.mediawiki.org/wiki/OOjs_UI/Widgets/Selects_and_Options + * [1]: https://www.mediawiki.org/wiki/OOUI/Widgets/Selects_and_Options * * @class * @extends OO.ui.OptionWidget @@ -7158,9 +7157,9 @@ OO.mixinClass( OO.ui.DecoratedOptionWidget, OO.ui.mixin.IndicatorElement ); /** * MenuOptionWidget is an option widget that looks like a menu item. The class is used with * OO.ui.MenuSelectWidget to create a menu of mutually exclusive options. Please see - * the [OOjs UI documentation on MediaWiki] [1] for more information. + * the [OOUI documentation on MediaWiki] [1] for more information. * - * [1]: https://www.mediawiki.org/wiki/OOjs_UI/Widgets/Selects_and_Options#Menu_selects_and_options + * [1]: https://www.mediawiki.org/wiki/OOUI/Widgets/Selects_and_Options#Menu_selects_and_options * * @class * @extends OO.ui.DecoratedOptionWidget @@ -7272,8 +7271,8 @@ OO.ui.MenuSectionOptionWidget.static.highlightable = false; * * Unlike most widgets, MenuSelectWidget is initially hidden and must be shown by calling #toggle. * - * Please see the [OOjs UI documentation on MediaWiki][1] for more information. - * [1]: https://www.mediawiki.org/wiki/OOjs_UI/Widgets/Selects_and_Options + * Please see the [OOUI documentation on MediaWiki][1] for more information. + * [1]: https://www.mediawiki.org/wiki/OOUI/Widgets/Selects_and_Options * * @class * @extends OO.ui.SelectWidget @@ -7373,7 +7372,7 @@ OO.ui.MenuSelectWidget.prototype.onDocumentMouseDown = function ( e ) { * @inheritdoc */ OO.ui.MenuSelectWidget.prototype.onKeyDown = function ( e ) { - var currentItem = this.findHighlightedItem() || this.getSelectedItem(); + var currentItem = this.findHighlightedItem() || this.findSelectedItem(); if ( !this.isDisabled() && this.isVisible() ) { switch ( e.keyCode ) { @@ -7629,9 +7628,9 @@ OO.ui.MenuSelectWidget.prototype.toggle = function ( visible ) { this.$focusOwner.attr( 'aria-expanded', 'true' ); - if ( this.getSelectedItem() ) { - this.$focusOwner.attr( 'aria-activedescendant', this.getSelectedItem().getElementId() ); - this.getSelectedItem().scrollElementIntoView( { duration: 0 } ); + if ( this.findSelectedItem() ) { + this.$focusOwner.attr( 'aria-activedescendant', this.findSelectedItem().getElementId() ); + this.findSelectedItem().scrollElementIntoView( { duration: 0 } ); } // Auto-hide @@ -7688,11 +7687,11 @@ OO.ui.MenuSelectWidget.prototype.toggle = function ( visible ) { * * dropDown.getMenu().selectItemByData( 'b' ); * - * dropDown.getMenu().getSelectedItem().getData(); // returns 'b' + * dropDown.getMenu().findSelectedItem().getData(); // returns 'b' * - * For more information, please see the [OOjs UI documentation on MediaWiki] [1]. + * For more information, please see the [OOUI documentation on MediaWiki] [1]. * - * [1]: https://www.mediawiki.org/wiki/OOjs_UI/Widgets/Selects_and_Options#Menu_selects_and_options + * [1]: https://www.mediawiki.org/wiki/OOUI/Widgets/Selects_and_Options#Menu_selects_and_options * * @class * @extends OO.ui.Widget @@ -7708,7 +7707,7 @@ OO.ui.MenuSelectWidget.prototype.toggle = function ( visible ) { * @cfg {jQuery} [$overlay] Render the menu into a separate layer. This configuration is useful in cases where * the expanded menu is larger than its containing `
`. The specified overlay layer is usually on top of the * containing `
` and has a larger area. By default, the menu uses relative positioning. - * See . + * See . */ OO.ui.DropdownWidget = function OoUiDropdownWidget( config ) { // Configuration initialization @@ -7867,9 +7866,9 @@ OO.ui.DropdownWidget.prototype.onKeyDown = function ( e ) { /** * RadioOptionWidget is an option widget that looks like a radio button. * The class is used with OO.ui.RadioSelectWidget to create a selection of radio options. - * Please see the [OOjs UI documentation on MediaWiki] [1] for more information. + * Please see the [OOUI documentation on MediaWiki] [1] for more information. * - * [1]: https://www.mediawiki.org/wiki/OOjs_UI/Widgets/Selects_and_Options#Button_selects_and_option + * [1]: https://www.mediawiki.org/wiki/OOUI/Widgets/Selects_and_Options#Button_selects_and_option * * @class * @extends OO.ui.OptionWidget @@ -7959,7 +7958,7 @@ OO.ui.RadioOptionWidget.prototype.setDisabled = function ( disabled ) { * RadioSelectWidget is a {@link OO.ui.SelectWidget select widget} that contains radio * options and is used together with OO.ui.RadioOptionWidget. The RadioSelectWidget provides * an interface for adding, removing and selecting options. - * Please see the [OOjs UI documentation on MediaWiki][1] for more information. + * Please see the [OOUI documentation on MediaWiki][1] for more information. * * If you want to use this within an HTML form, such as a OO.ui.FormLayout, use * OO.ui.RadioSelectInputWidget instead. @@ -7985,7 +7984,7 @@ OO.ui.RadioOptionWidget.prototype.setDisabled = function ( disabled ) { * * $( 'body' ).append( radioSelect.$element ); * - * [1]: https://www.mediawiki.org/wiki/OOjs_UI/Widgets/Selects_and_Options + * [1]: https://www.mediawiki.org/wiki/OOUI/Widgets/Selects_and_Options * * @class @@ -8023,9 +8022,9 @@ OO.mixinClass( OO.ui.RadioSelectWidget, OO.ui.mixin.TabIndexedElement ); * MultioptionWidgets are special elements that can be selected and configured with data. The * data is often unique for each option, but it does not have to be. MultioptionWidgets are used * with OO.ui.SelectWidget to create a selection of mutually exclusive options. For more information - * and examples, please see the [OOjs UI documentation on MediaWiki][1]. + * and examples, please see the [OOUI documentation on MediaWiki][1]. * - * [1]: https://www.mediawiki.org/wiki/OOjs_UI/Widgets/Selects_and_Multioptions + * [1]: https://www.mediawiki.org/wiki/OOUI/Widgets/Selects_and_Multioptions * * @class * @extends OO.ui.Widget @@ -8105,9 +8104,9 @@ OO.ui.MultioptionWidget.prototype.setSelected = function ( state ) { /** * MultiselectWidget allows selecting multiple options from a list. * - * For more information about menus and options, please see the [OOjs UI documentation on MediaWiki][1]. + * For more information about menus and options, please see the [OOUI documentation on MediaWiki][1]. * - * [1]: https://www.mediawiki.org/wiki/OOjs_UI/Widgets/Selects_and_Options#Menu_selects_and_options + * [1]: https://www.mediawiki.org/wiki/OOUI/Widgets/Selects_and_Options#Menu_selects_and_options * * @class * @abstract @@ -8241,9 +8240,9 @@ OO.ui.MultiselectWidget.prototype.selectItemsByData = function ( datas ) { /** * CheckboxMultioptionWidget is an option widget that looks like a checkbox. * The class is used with OO.ui.CheckboxMultiselectWidget to create a selection of checkbox options. - * Please see the [OOjs UI documentation on MediaWiki] [1] for more information. + * Please see the [OOUI documentation on MediaWiki] [1] for more information. * - * [1]: https://www.mediawiki.org/wiki/OOjs_UI/Widgets/Selects_and_Options#Button_selects_and_option + * [1]: https://www.mediawiki.org/wiki/OOUI/Widgets/Selects_and_Options#Button_selects_and_option * * @class * @extends OO.ui.MultioptionWidget @@ -8346,7 +8345,7 @@ OO.ui.CheckboxMultioptionWidget.prototype.onKeyDown = function ( e ) { * CheckboxMultiselectWidget is a {@link OO.ui.MultiselectWidget multiselect widget} that contains * checkboxes and is used together with OO.ui.CheckboxMultioptionWidget. The * CheckboxMultiselectWidget provides an interface for adding, removing and selecting options. - * Please see the [OOjs UI documentation on MediaWiki][1] for more information. + * Please see the [OOUI documentation on MediaWiki][1] for more information. * * If you want to use this within an HTML form, such as a OO.ui.FormLayout, use * OO.ui.CheckboxMultiselectInputWidget instead. @@ -8370,7 +8369,7 @@ OO.ui.CheckboxMultioptionWidget.prototype.onKeyDown = function ( e ) { * * $( 'body' ).append( multiselect.$element ); * - * [1]: https://www.mediawiki.org/wiki/OOjs_UI/Widgets/Selects_and_Options + * [1]: https://www.mediawiki.org/wiki/OOUI/Widgets/Selects_and_Options * * @class * @extends OO.ui.MultiselectWidget @@ -8608,9 +8607,9 @@ OO.ui.ProgressBarWidget.prototype.setProgress = function ( progress ) { * InputWidget is the base class for all input widgets, which * include {@link OO.ui.TextInputWidget text inputs}, {@link OO.ui.CheckboxInputWidget checkbox inputs}, * {@link OO.ui.RadioInputWidget radio inputs}, and {@link OO.ui.ButtonInputWidget button inputs}. - * See the [OOjs UI documentation on MediaWiki] [1] for more information and examples. + * See the [OOUI documentation on MediaWiki] [1] for more information and examples. * - * [1]: https://www.mediawiki.org/wiki/OOjs_UI/Widgets/Inputs + * [1]: https://www.mediawiki.org/wiki/OOUI/Widgets/Inputs * * @abstract * @class @@ -8888,7 +8887,7 @@ OO.ui.HiddenInputWidget.static.tagName = 'input'; * a OO.ui.FormLayout. If you do not need the button to work with HTML forms, you probably * want to use OO.ui.ButtonWidget instead. Button input widgets can be rendered as either an * HTML `