Update OOUI to v0.38.1
Release notes: https://gerrit.wikimedia.org/g/oojs/ui/+/v0.38.1/History.md Bug: T208184 Bug: T244444 Bug: T246044 Bug: T248630 Depends-On: Iaf8fddc006d24e02e43f2634004a72b5948a8d2d Change-Id: If005f4f71d043d70feab1dae6217fcf1dd2ab602
|
|
@ -227,7 +227,7 @@ For notes on 1.34.x and older releases, see HISTORY.
|
|||
* pear/mail_mime was upgraded from 1.10.2 to 1.10.7.
|
||||
* wikimedia/less.php was upgraded from 1.8.0 to 3.0.0.
|
||||
* Updated oojs from 3.0.0 to 3.0.1.
|
||||
* Updated OOUI from 0.35.1 to 0.38.0.
|
||||
* Updated OOUI from 0.35.1 to 0.38.1.
|
||||
* zordius/lightncandy was upgraded from 0.23.0 to 1.2.5.
|
||||
* Updated nikic/php-parser from 3.1.5 to 4.4.0 (dev-only).
|
||||
* Updated jQuery from v3.3.1 to v3.4.1.
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@
|
|||
"ext-xml": "*",
|
||||
"guzzlehttp/guzzle": "6.5.2",
|
||||
"liuggio/statsd-php-client": "1.0.18",
|
||||
"oojs/oojs-ui": "0.38.0",
|
||||
"oojs/oojs-ui": "0.38.1",
|
||||
"pear/mail": "1.4.1",
|
||||
"pear/mail_mime": "1.10.7",
|
||||
"pear/net_smtp": "1.9.0",
|
||||
|
|
|
|||
|
|
@ -237,8 +237,8 @@ oojs-router:
|
|||
|
||||
ooui:
|
||||
type: tar
|
||||
src: https://registry.npmjs.org/oojs-ui/-/oojs-ui-0.38.0.tgz
|
||||
integrity: sha384-Y1Fd0zOQ55bysq3pypiXRffveV1Y2kKYTmwCpmU5lBSknkdF9yD+JDy1CK68sOPF
|
||||
src: https://registry.npmjs.org/oojs-ui/-/oojs-ui-0.38.1.tgz
|
||||
integrity: sha384-MmVhSlmp1hFagV3bgXlPIgqWBmhF/IBC+kLfoUCWnlW/C5ihj/93UtRQSCfvg36N
|
||||
|
||||
dest:
|
||||
# Main stuff
|
||||
|
|
|
|||
|
|
@ -1,4 +1,22 @@
|
|||
# OOUI Release History
|
||||
## v0.38.1 / 2020-05-01
|
||||
### Styles
|
||||
* icons: Add 'articlesSearch' icon (Volker E.)
|
||||
* icons: Unify 'referenceExisting' with other multi object ones (Volker E.)
|
||||
|
||||
### Code
|
||||
* Replace deprecate 'parent' with 'super' (Ed Sanders)
|
||||
* Element: Simplify instanceof check in infusion (Ed Sanders)
|
||||
* build: Bump phan to 0.10.2 (James D. Forrester)
|
||||
* build: Upgrade eslint-config-wikimedia to 0.15.3 (James D. Forrester)
|
||||
* build: Upgrade mediawiki-codesniffer from v29.0.0 to v30.0.0 (James D. Forrester)
|
||||
* build: Upgrade stylelint-config-wikimedia to 0.10.1 (James D. Forrester)
|
||||
* demos: Add 'invisibleLabel' to quiet ButtonMenuSelectWidget (Volker E.)
|
||||
* demos: Fix demo display for narrow ButtonMenuSelectWidget (Thalia Chan)
|
||||
* demos: Fix documentation for ButtonMenuSelect widget (Thalia Chan)
|
||||
* tests: Use assertStringContainsString for string contains, to support PHPUnit 9 (James D. Forrester)
|
||||
|
||||
|
||||
## v0.38.0 / 2020-04-14
|
||||
### Breaking changes
|
||||
* [BREAKING CHANGE] icons: Remove 'stripe*' icons, deprecated in v0.36.5 (Volker E.)
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@
|
|||
"ooui-dialog-process-dismiss": "Lukk",
|
||||
"ooui-dialog-process-retry": "Prøv igjen",
|
||||
"ooui-dialog-process-continue": "Fortsett",
|
||||
"ooui-combobox-button-label": "Rullegardinliste for komboboks",
|
||||
"ooui-combobox-button-label": "Vis/skjul valg",
|
||||
"ooui-selectfile-button-select": "Velg en fil",
|
||||
"ooui-selectfile-not-supported": "Filvalg er ikke støttet",
|
||||
"ooui-selectfile-placeholder": "Ingen fil er valgt",
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
/*!
|
||||
* OOUI v0.38.0
|
||||
* OOUI v0.38.1
|
||||
* https://www.mediawiki.org/wiki/OOUI
|
||||
*
|
||||
* Copyright 2011–2020 OOUI Team and other contributors.
|
||||
* Released under the MIT license
|
||||
* http://oojs.mit-license.org
|
||||
*
|
||||
* Date: 2020-04-15T01:28:08Z
|
||||
* Date: 2020-05-01T20:01:46Z
|
||||
*/
|
||||
( function ( OO ) {
|
||||
|
||||
|
|
@ -20,7 +20,7 @@
|
|||
*/
|
||||
OO.ui.ApexTheme = function OoUiApexTheme() {
|
||||
// Parent constructor
|
||||
OO.ui.ApexTheme.parent.call( this );
|
||||
OO.ui.ApexTheme.super.call( this );
|
||||
};
|
||||
|
||||
/* Setup */
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
{"version":3,"sources":["../src/intro.js.txt","../src/themes/apex/ApexTheme.js","../src/outro.js.txt"],"names":[],"mappings":";;;;;;;;;;AAAA,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AACnB;AACA,CAAC,GAAG,CAAC,MAAM,EAAE;;ACFb,GAAG;AACH,CAAC,CAAC,CAAC,CAAC,KAAK;AACT,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK;AACvB,CAAC,CAAC;AACF,CAAC,CAAC,CAAC,CAAC,WAAW;AACf,CAAC,EAAE;AACH,EAAE,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,EAAE,CAAC,CAAC;AAC5C,CAAC,EAAE,CAAC,MAAM,CAAC,WAAW;AACtB,CAAC,EAAE,CAAC,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,EAAE;AACrC,EAAE;AACF;AACA,EAAE,CAAC,KAAK,CAAC,EAAE;AACX;AACA,EAAE,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE;AAChD;AACA,EAAE,CAAC,OAAO,CAAC,EAAE;AACb;AACA,GAAG;AACH,CAAC,CAAC,CAAC,CAAC,UAAU;AACd,CAAC,EAAE;AACH,EAAE,CAAC,EAAE,CAAC,SAAS,CAAC,SAAS,CAAC,2BAA2B,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;AACrE,CAAC,MAAM,CAAC,GAAG,CAAC;AACZ,EAAE;AACF;AACA,EAAE,CAAC,aAAa,CAAC,EAAE;AACnB;AACA,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,SAAS,GAAG;;AC1BpC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE","file":"oojs-ui-apex.js","sourcesContent":["( function ( OO ) {\n\n'use strict';\n","/**\n * @class\n * @extends OO.ui.Theme\n *\n * @constructor\n */\nOO.ui.ApexTheme = function OoUiApexTheme() {\n\t// Parent constructor\n\tOO.ui.ApexTheme.parent.call( this );\n};\n\n/* Setup */\n\nOO.inheritClass( OO.ui.ApexTheme, OO.ui.Theme );\n\n/* Methods */\n\n/**\n * @inheritdoc\n */\nOO.ui.ApexTheme.prototype.getDialogTransitionDuration = function () {\n\treturn 250;\n};\n\n/* Instantiation */\n\nOO.ui.theme = new OO.ui.ApexTheme();\n","}( OO ) );\n"]}
|
||||
{"version":3,"sources":["../src/intro.js.txt","../src/themes/apex/ApexTheme.js","../src/outro.js.txt"],"names":[],"mappings":";;;;;;;;;;AAAA,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AACnB;AACA,CAAC,GAAG,CAAC,MAAM,EAAE;;ACFb,GAAG;AACH,CAAC,CAAC,CAAC,CAAC,KAAK;AACT,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK;AACvB,CAAC,CAAC;AACF,CAAC,CAAC,CAAC,CAAC,WAAW;AACf,CAAC,EAAE;AACH,EAAE,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,EAAE,CAAC,CAAC;AAC5C,CAAC,EAAE,CAAC,MAAM,CAAC,WAAW;AACtB,CAAC,EAAE,CAAC,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,EAAE;AACpC,EAAE;AACF;AACA,EAAE,CAAC,KAAK,CAAC,EAAE;AACX;AACA,EAAE,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE;AAChD;AACA,EAAE,CAAC,OAAO,CAAC,EAAE;AACb;AACA,GAAG;AACH,CAAC,CAAC,CAAC,CAAC,UAAU;AACd,CAAC,EAAE;AACH,EAAE,CAAC,EAAE,CAAC,SAAS,CAAC,SAAS,CAAC,2BAA2B,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;AACrE,CAAC,MAAM,CAAC,GAAG,CAAC;AACZ,EAAE;AACF;AACA,EAAE,CAAC,aAAa,CAAC,EAAE;AACnB;AACA,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,SAAS,GAAG;;AC1BpC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE","file":"oojs-ui-apex.js","sourcesContent":["( function ( OO ) {\n\n'use strict';\n","/**\n * @class\n * @extends OO.ui.Theme\n *\n * @constructor\n */\nOO.ui.ApexTheme = function OoUiApexTheme() {\n\t// Parent constructor\n\tOO.ui.ApexTheme.super.call( this );\n};\n\n/* Setup */\n\nOO.inheritClass( OO.ui.ApexTheme, OO.ui.Theme );\n\n/* Methods */\n\n/**\n * @inheritdoc\n */\nOO.ui.ApexTheme.prototype.getDialogTransitionDuration = function () {\n\treturn 250;\n};\n\n/* Instantiation */\n\nOO.ui.theme = new OO.ui.ApexTheme();\n","}( OO ) );\n"]}
|
||||
|
|
@ -1,12 +1,12 @@
|
|||
/*!
|
||||
* OOUI v0.38.0
|
||||
* OOUI v0.38.1
|
||||
* https://www.mediawiki.org/wiki/OOUI
|
||||
*
|
||||
* Copyright 2011–2020 OOUI Team and other contributors.
|
||||
* Released under the MIT license
|
||||
* http://oojs.mit-license.org
|
||||
*
|
||||
* Date: 2020-04-15T01:28:27Z
|
||||
* Date: 2020-05-01T20:02:07Z
|
||||
*/
|
||||
.oo-ui-element-hidden {
|
||||
display: none !important;
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
/*!
|
||||
* OOUI v0.38.0
|
||||
* OOUI v0.38.1
|
||||
* https://www.mediawiki.org/wiki/OOUI
|
||||
*
|
||||
* Copyright 2011–2020 OOUI Team and other contributors.
|
||||
* Released under the MIT license
|
||||
* http://oojs.mit-license.org
|
||||
*
|
||||
* Date: 2020-04-15T01:28:27Z
|
||||
* Date: 2020-05-01T20:02:07Z
|
||||
*/
|
||||
.oo-ui-element-hidden {
|
||||
display: none !important;
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
/*!
|
||||
* OOUI v0.38.0
|
||||
* OOUI v0.38.1
|
||||
* https://www.mediawiki.org/wiki/OOUI
|
||||
*
|
||||
* Copyright 2011–2020 OOUI Team and other contributors.
|
||||
* Released under the MIT license
|
||||
* http://oojs.mit-license.org
|
||||
*
|
||||
* Date: 2020-04-15T01:28:08Z
|
||||
* Date: 2020-05-01T20:01:46Z
|
||||
*/
|
||||
( function ( OO ) {
|
||||
|
||||
|
|
@ -697,7 +697,7 @@ OO.ui.Element.static.infuse = function ( node, config ) {
|
|||
*/
|
||||
OO.ui.Element.static.unsafeInfuse = function ( node, config, domPromise ) {
|
||||
// look for a cached result of a previous infusion.
|
||||
var error, data, cls, parts, parent, obj, top, state, infusedChildren,
|
||||
var error, data, cls, parts, obj, top, state, infusedChildren,
|
||||
$elem = $( node ),
|
||||
id = $elem.attr( 'id' );
|
||||
|
||||
|
|
@ -752,23 +752,8 @@ OO.ui.Element.static.unsafeInfuse = function ( node, config, domPromise ) {
|
|||
}
|
||||
parts = data._.split( '.' );
|
||||
cls = OO.getProp.apply( OO, [ window ].concat( parts ) );
|
||||
if ( cls === undefined ) {
|
||||
throw new Error( 'Unknown widget type: id: ' + id + ', class: ' + data._ );
|
||||
}
|
||||
|
||||
// Verify that we're creating an OO.ui.Element instance
|
||||
parent = cls.parent;
|
||||
|
||||
while ( parent !== undefined ) {
|
||||
if ( parent === OO.ui.Element ) {
|
||||
// Safe
|
||||
break;
|
||||
}
|
||||
|
||||
parent = parent.parent;
|
||||
}
|
||||
|
||||
if ( parent !== OO.ui.Element ) {
|
||||
if ( !( cls && ( cls === OO.ui.Element || cls.prototype instanceof OO.ui.Element ) ) ) {
|
||||
throw new Error( 'Unknown widget type: id: ' + id + ', class: ' + data._ );
|
||||
}
|
||||
|
||||
|
|
@ -1705,7 +1690,7 @@ OO.ui.Layout = function OoUiLayout( config ) {
|
|||
config = config || {};
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.Layout.parent.call( this, config );
|
||||
OO.ui.Layout.super.call( this, config );
|
||||
|
||||
// Mixin constructors
|
||||
OO.EventEmitter.call( this );
|
||||
|
|
@ -1754,7 +1739,7 @@ OO.ui.Widget = function OoUiWidget( config ) {
|
|||
config = $.extend( { disabled: false }, config );
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.Widget.parent.call( this, config );
|
||||
OO.ui.Widget.super.call( this, config );
|
||||
|
||||
// Mixin constructors
|
||||
OO.EventEmitter.call( this );
|
||||
|
|
@ -3815,7 +3800,7 @@ OO.ui.ButtonWidget = function OoUiButtonWidget( config ) {
|
|||
config = config || {};
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.ButtonWidget.parent.call( this, config );
|
||||
OO.ui.ButtonWidget.super.call( this, config );
|
||||
|
||||
// Mixin constructors
|
||||
OO.ui.mixin.ButtonElement.call( this, config );
|
||||
|
|
@ -4092,7 +4077,7 @@ OO.ui.ButtonGroupWidget = function OoUiButtonGroupWidget( config ) {
|
|||
config = config || {};
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.ButtonGroupWidget.parent.call( this, config );
|
||||
OO.ui.ButtonGroupWidget.super.call( this, config );
|
||||
|
||||
// Mixin constructors
|
||||
OO.ui.mixin.GroupElement.call( this, $.extend( {
|
||||
|
|
@ -4180,7 +4165,7 @@ OO.ui.IconWidget = function OoUiIconWidget( config ) {
|
|||
config = config || {};
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.IconWidget.parent.call( this, config );
|
||||
OO.ui.IconWidget.super.call( this, config );
|
||||
|
||||
// Mixin constructors
|
||||
OO.ui.mixin.IconElement.call( this, $.extend( {
|
||||
|
|
@ -4255,7 +4240,7 @@ OO.ui.IndicatorWidget = function OoUiIndicatorWidget( config ) {
|
|||
config = config || {};
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.IndicatorWidget.parent.call( this, config );
|
||||
OO.ui.IndicatorWidget.super.call( this, config );
|
||||
|
||||
// Mixin constructors
|
||||
OO.ui.mixin.IndicatorElement.call( this, $.extend( {
|
||||
|
|
@ -4336,7 +4321,7 @@ OO.ui.LabelWidget = function OoUiLabelWidget( config ) {
|
|||
config = config || {};
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.LabelWidget.parent.call( this, config );
|
||||
OO.ui.LabelWidget.super.call( this, config );
|
||||
|
||||
// Mixin constructors
|
||||
OO.ui.mixin.LabelElement.call( this, $.extend( {
|
||||
|
|
@ -4401,7 +4386,7 @@ OO.ui.MessageWidget = function OoUiMessageWidget( config ) {
|
|||
config = config || {};
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.MessageWidget.parent.call( this, config );
|
||||
OO.ui.MessageWidget.super.call( this, config );
|
||||
|
||||
// Mixin constructors
|
||||
OO.ui.mixin.IconElement.call( this, config );
|
||||
|
|
@ -4506,7 +4491,7 @@ OO.ui.MessageWidget.prototype.setType = function ( type ) {
|
|||
*
|
||||
* @example
|
||||
* function MessageDialog( config ) {
|
||||
* MessageDialog.parent.call( this, config );
|
||||
* MessageDialog.super.call( this, config );
|
||||
* }
|
||||
* OO.inheritClass( MessageDialog, OO.ui.MessageDialog );
|
||||
*
|
||||
|
|
@ -4517,7 +4502,7 @@ OO.ui.MessageWidget.prototype.setType = function ( type ) {
|
|||
* ];
|
||||
*
|
||||
* MessageDialog.prototype.initialize = function () {
|
||||
* MessageDialog.parent.prototype.initialize.apply( this, arguments );
|
||||
* MessageDialog.super.prototype.initialize.apply( this, arguments );
|
||||
* this.content = new OO.ui.PanelLayout( { padded: true } );
|
||||
* this.content.$element.append( '<p>Click the \'Done\' action widget to see its pending ' +
|
||||
* 'state. Note that action widgets can be marked pending in message dialogs but not ' +
|
||||
|
|
@ -4537,7 +4522,7 @@ OO.ui.MessageWidget.prototype.setType = function ( type ) {
|
|||
* dialog.getActions().get({actions: 'save'})[0].popPending();
|
||||
* } );
|
||||
* }
|
||||
* return MessageDialog.parent.prototype.getActionProcess.call( this, action );
|
||||
* return MessageDialog.super.prototype.getActionProcess.call( this, action );
|
||||
* };
|
||||
*
|
||||
* var windowManager = new OO.ui.WindowManager();
|
||||
|
|
@ -5537,7 +5522,7 @@ OO.ui.PopupWidget = function OoUiPopupWidget( config ) {
|
|||
config = config || {};
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.PopupWidget.parent.call( this, config );
|
||||
OO.ui.PopupWidget.super.call( this, config );
|
||||
|
||||
// Properties (must be set before ClippableElement constructor call)
|
||||
this.$body = $( '<div>' );
|
||||
|
|
@ -5801,7 +5786,7 @@ OO.ui.PopupWidget.prototype.toggle = function ( show ) {
|
|||
}
|
||||
|
||||
// Parent method
|
||||
OO.ui.PopupWidget.parent.prototype.toggle.call( this, show );
|
||||
OO.ui.PopupWidget.super.prototype.toggle.call( this, show );
|
||||
|
||||
if ( change ) {
|
||||
this.togglePositioning( show && !!this.$floatableContainer );
|
||||
|
|
@ -6257,7 +6242,7 @@ OO.ui.PopupButtonWidget = function OoUiPopupButtonWidget( config ) {
|
|||
config = config || {};
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.PopupButtonWidget.parent.call( this, config );
|
||||
OO.ui.PopupButtonWidget.super.call( this, config );
|
||||
|
||||
// Mixin constructors
|
||||
OO.ui.mixin.PopupElement.call( this, config );
|
||||
|
|
@ -6420,7 +6405,7 @@ OO.ui.OptionWidget = function OoUiOptionWidget( config ) {
|
|||
config = config || {};
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.OptionWidget.parent.call( this, config );
|
||||
OO.ui.OptionWidget.super.call( this, config );
|
||||
|
||||
// Mixin constructors
|
||||
OO.ui.mixin.ItemWidget.call( this );
|
||||
|
|
@ -6676,7 +6661,7 @@ OO.ui.SelectWidget = function OoUiSelectWidget( config ) {
|
|||
config = config || {};
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.SelectWidget.parent.call( this, config );
|
||||
OO.ui.SelectWidget.super.call( this, config );
|
||||
|
||||
// Mixin constructors
|
||||
OO.ui.mixin.GroupWidget.call( this, $.extend( {
|
||||
|
|
@ -7683,7 +7668,7 @@ OO.ui.SelectWidget.prototype.setFocusOwner = function ( $focusOwner ) {
|
|||
*/
|
||||
OO.ui.DecoratedOptionWidget = function OoUiDecoratedOptionWidget( config ) {
|
||||
// Parent constructor
|
||||
OO.ui.DecoratedOptionWidget.parent.call( this, config );
|
||||
OO.ui.DecoratedOptionWidget.super.call( this, config );
|
||||
|
||||
// Mixin constructors
|
||||
OO.ui.mixin.IconElement.call( this, config );
|
||||
|
|
@ -7717,7 +7702,7 @@ OO.mixinClass( OO.ui.DecoratedOptionWidget, OO.ui.mixin.IndicatorElement );
|
|||
*/
|
||||
OO.ui.MenuOptionWidget = function OoUiMenuOptionWidget( config ) {
|
||||
// Parent constructor
|
||||
OO.ui.MenuOptionWidget.parent.call( this, config );
|
||||
OO.ui.MenuOptionWidget.super.call( this, config );
|
||||
|
||||
// Properties
|
||||
this.checkIcon = new OO.ui.IconWidget( {
|
||||
|
|
@ -7783,7 +7768,7 @@ OO.ui.MenuOptionWidget.static.scrollIntoViewOnSelect = true;
|
|||
*/
|
||||
OO.ui.MenuSectionOptionWidget = function OoUiMenuSectionOptionWidget( config ) {
|
||||
// Parent constructor
|
||||
OO.ui.MenuSectionOptionWidget.parent.call( this, config );
|
||||
OO.ui.MenuSectionOptionWidget.super.call( this, config );
|
||||
|
||||
// Initialization
|
||||
this.$element
|
||||
|
|
@ -7868,7 +7853,7 @@ OO.ui.MenuSelectWidget = function OoUiMenuSelectWidget( config ) {
|
|||
config = config || {};
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.MenuSelectWidget.parent.call( this, config );
|
||||
OO.ui.MenuSelectWidget.super.call( this, config );
|
||||
|
||||
// Mixin constructors
|
||||
OO.ui.mixin.ClippableElement.call( this, $.extend( { $clippable: this.$group }, config ) );
|
||||
|
|
@ -7969,7 +7954,7 @@ OO.ui.MenuSelectWidget.prototype.onDocumentKeyDown = function ( e ) {
|
|||
case OO.ui.Keys.RIGHT:
|
||||
// Do nothing if a text field is associated, arrow keys will be handled natively
|
||||
if ( !this.$input ) {
|
||||
OO.ui.MenuSelectWidget.parent.prototype.onDocumentKeyDown.call( this, e );
|
||||
OO.ui.MenuSelectWidget.super.prototype.onDocumentKeyDown.call( this, e );
|
||||
}
|
||||
break;
|
||||
case OO.ui.Keys.ESCAPE:
|
||||
|
|
@ -7985,7 +7970,7 @@ OO.ui.MenuSelectWidget.prototype.onDocumentKeyDown = function ( e ) {
|
|||
}
|
||||
break;
|
||||
default:
|
||||
OO.ui.MenuSelectWidget.parent.prototype.onDocumentKeyDown.call( this, e );
|
||||
OO.ui.MenuSelectWidget.super.prototype.onDocumentKeyDown.call( this, e );
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
@ -8067,7 +8052,7 @@ OO.ui.MenuSelectWidget.prototype.bindDocumentKeyDownListener = function () {
|
|||
if ( this.$input ) {
|
||||
this.$input.on( 'keydown', this.onDocumentKeyDownHandler );
|
||||
} else {
|
||||
OO.ui.MenuSelectWidget.parent.prototype.bindDocumentKeyDownListener.call( this );
|
||||
OO.ui.MenuSelectWidget.super.prototype.bindDocumentKeyDownListener.call( this );
|
||||
}
|
||||
};
|
||||
|
||||
|
|
@ -8078,7 +8063,7 @@ OO.ui.MenuSelectWidget.prototype.unbindDocumentKeyDownListener = function () {
|
|||
if ( this.$input ) {
|
||||
this.$input.off( 'keydown', this.onDocumentKeyDownHandler );
|
||||
} else {
|
||||
OO.ui.MenuSelectWidget.parent.prototype.unbindDocumentKeyDownListener.call( this );
|
||||
OO.ui.MenuSelectWidget.super.prototype.unbindDocumentKeyDownListener.call( this );
|
||||
}
|
||||
};
|
||||
|
||||
|
|
@ -8095,7 +8080,7 @@ OO.ui.MenuSelectWidget.prototype.bindDocumentKeyPressListener = function () {
|
|||
this.updateItemVisibility();
|
||||
}
|
||||
} else {
|
||||
OO.ui.MenuSelectWidget.parent.prototype.bindDocumentKeyPressListener.call( this );
|
||||
OO.ui.MenuSelectWidget.super.prototype.bindDocumentKeyPressListener.call( this );
|
||||
}
|
||||
};
|
||||
|
||||
|
|
@ -8112,7 +8097,7 @@ OO.ui.MenuSelectWidget.prototype.unbindDocumentKeyPressListener = function () {
|
|||
this.updateItemVisibility();
|
||||
}
|
||||
} else {
|
||||
OO.ui.MenuSelectWidget.parent.prototype.unbindDocumentKeyPressListener.call( this );
|
||||
OO.ui.MenuSelectWidget.super.prototype.unbindDocumentKeyPressListener.call( this );
|
||||
}
|
||||
};
|
||||
|
||||
|
|
@ -8131,7 +8116,7 @@ OO.ui.MenuSelectWidget.prototype.unbindDocumentKeyPressListener = function () {
|
|||
* @return {OO.ui.Widget} The widget, for chaining
|
||||
*/
|
||||
OO.ui.MenuSelectWidget.prototype.chooseItem = function ( item ) {
|
||||
OO.ui.MenuSelectWidget.parent.prototype.chooseItem.call( this, item );
|
||||
OO.ui.MenuSelectWidget.super.prototype.chooseItem.call( this, item );
|
||||
if ( this.hideOnChoose ) {
|
||||
this.toggle( false );
|
||||
}
|
||||
|
|
@ -8143,7 +8128,7 @@ OO.ui.MenuSelectWidget.prototype.chooseItem = function ( item ) {
|
|||
*/
|
||||
OO.ui.MenuSelectWidget.prototype.addItems = function ( items, index ) {
|
||||
// Parent method
|
||||
OO.ui.MenuSelectWidget.parent.prototype.addItems.call( this, items, index );
|
||||
OO.ui.MenuSelectWidget.super.prototype.addItems.call( this, items, index );
|
||||
|
||||
this.updateItemVisibility();
|
||||
|
||||
|
|
@ -8155,7 +8140,7 @@ OO.ui.MenuSelectWidget.prototype.addItems = function ( items, index ) {
|
|||
*/
|
||||
OO.ui.MenuSelectWidget.prototype.removeItems = function ( items ) {
|
||||
// Parent method
|
||||
OO.ui.MenuSelectWidget.parent.prototype.removeItems.call( this, items );
|
||||
OO.ui.MenuSelectWidget.super.prototype.removeItems.call( this, items );
|
||||
|
||||
this.updateItemVisibility();
|
||||
|
||||
|
|
@ -8167,7 +8152,7 @@ OO.ui.MenuSelectWidget.prototype.removeItems = function ( items ) {
|
|||
*/
|
||||
OO.ui.MenuSelectWidget.prototype.clearItems = function () {
|
||||
// Parent method
|
||||
OO.ui.MenuSelectWidget.parent.prototype.clearItems.call( this );
|
||||
OO.ui.MenuSelectWidget.super.prototype.clearItems.call( this );
|
||||
|
||||
this.updateItemVisibility();
|
||||
|
||||
|
|
@ -8204,7 +8189,7 @@ OO.ui.MenuSelectWidget.prototype.toggle = function ( visible ) {
|
|||
}
|
||||
|
||||
// Parent method
|
||||
OO.ui.MenuSelectWidget.parent.prototype.toggle.call( this, visible );
|
||||
OO.ui.MenuSelectWidget.super.prototype.toggle.call( this, visible );
|
||||
|
||||
if ( change ) {
|
||||
if ( visible ) {
|
||||
|
|
@ -8352,7 +8337,7 @@ OO.ui.DropdownWidget = function OoUiDropdownWidget( config ) {
|
|||
config = $.extend( { indicator: 'down' }, config );
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.DropdownWidget.parent.call( this, config );
|
||||
OO.ui.DropdownWidget.super.call( this, config );
|
||||
|
||||
// Properties (must be set before TabIndexedElement constructor call)
|
||||
this.$handle = $( '<span>' );
|
||||
|
|
@ -8532,7 +8517,7 @@ OO.ui.RadioOptionWidget = function OoUiRadioOptionWidget( config ) {
|
|||
this.radio = new OO.ui.RadioInputWidget( { value: config.data, tabIndex: -1 } );
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.RadioOptionWidget.parent.call( this, config );
|
||||
OO.ui.RadioOptionWidget.super.call( this, config );
|
||||
|
||||
// Initialization
|
||||
// Remove implicit role, we're handling it ourselves
|
||||
|
|
@ -8581,7 +8566,7 @@ OO.ui.RadioOptionWidget.static.tagName = 'label';
|
|||
* @inheritdoc
|
||||
*/
|
||||
OO.ui.RadioOptionWidget.prototype.setSelected = function ( state ) {
|
||||
OO.ui.RadioOptionWidget.parent.prototype.setSelected.call( this, state );
|
||||
OO.ui.RadioOptionWidget.super.prototype.setSelected.call( this, state );
|
||||
|
||||
this.radio.setSelected( state );
|
||||
this.$element
|
||||
|
|
@ -8595,7 +8580,7 @@ OO.ui.RadioOptionWidget.prototype.setSelected = function ( state ) {
|
|||
* @inheritdoc
|
||||
*/
|
||||
OO.ui.RadioOptionWidget.prototype.setDisabled = function ( disabled ) {
|
||||
OO.ui.RadioOptionWidget.parent.prototype.setDisabled.call( this, disabled );
|
||||
OO.ui.RadioOptionWidget.super.prototype.setDisabled.call( this, disabled );
|
||||
|
||||
this.radio.setDisabled( this.isDisabled() );
|
||||
|
||||
|
|
@ -8642,7 +8627,7 @@ OO.ui.RadioOptionWidget.prototype.setDisabled = function ( disabled ) {
|
|||
*/
|
||||
OO.ui.RadioSelectWidget = function OoUiRadioSelectWidget( config ) {
|
||||
// Parent constructor
|
||||
OO.ui.RadioSelectWidget.parent.call( this, config );
|
||||
OO.ui.RadioSelectWidget.super.call( this, config );
|
||||
|
||||
// Mixin constructors
|
||||
OO.ui.mixin.TabIndexedElement.call( this, config );
|
||||
|
|
@ -8687,7 +8672,7 @@ OO.ui.MultioptionWidget = function OoUiMultioptionWidget( config ) {
|
|||
config = config || {};
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.MultioptionWidget.parent.call( this, config );
|
||||
OO.ui.MultioptionWidget.super.call( this, config );
|
||||
|
||||
// Mixin constructors
|
||||
OO.ui.mixin.ItemWidget.call( this );
|
||||
|
|
@ -8771,7 +8756,7 @@ OO.ui.MultioptionWidget.prototype.setSelected = function ( state ) {
|
|||
*/
|
||||
OO.ui.MultiselectWidget = function OoUiMultiselectWidget( config ) {
|
||||
// Parent constructor
|
||||
OO.ui.MultiselectWidget.parent.call( this, config );
|
||||
OO.ui.MultiselectWidget.super.call( this, config );
|
||||
|
||||
// Configuration initialization
|
||||
config = config || {};
|
||||
|
|
@ -8896,7 +8881,7 @@ OO.ui.CheckboxMultioptionWidget = function OoUiCheckboxMultioptionWidget( config
|
|||
this.checkbox = new OO.ui.CheckboxInputWidget();
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.CheckboxMultioptionWidget.parent.call( this, config );
|
||||
OO.ui.CheckboxMultioptionWidget.super.call( this, config );
|
||||
|
||||
// Events
|
||||
this.checkbox.on( 'change', this.onCheckboxChange.bind( this ) );
|
||||
|
|
@ -8935,7 +8920,7 @@ OO.ui.CheckboxMultioptionWidget.prototype.onCheckboxChange = function () {
|
|||
* @inheritdoc
|
||||
*/
|
||||
OO.ui.CheckboxMultioptionWidget.prototype.setSelected = function ( state ) {
|
||||
OO.ui.CheckboxMultioptionWidget.parent.prototype.setSelected.call( this, state );
|
||||
OO.ui.CheckboxMultioptionWidget.super.prototype.setSelected.call( this, state );
|
||||
this.checkbox.setSelected( state );
|
||||
return this;
|
||||
};
|
||||
|
|
@ -8944,7 +8929,7 @@ OO.ui.CheckboxMultioptionWidget.prototype.setSelected = function ( state ) {
|
|||
* @inheritdoc
|
||||
*/
|
||||
OO.ui.CheckboxMultioptionWidget.prototype.setDisabled = function ( disabled ) {
|
||||
OO.ui.CheckboxMultioptionWidget.parent.prototype.setDisabled.call( this, disabled );
|
||||
OO.ui.CheckboxMultioptionWidget.super.prototype.setDisabled.call( this, disabled );
|
||||
this.checkbox.setDisabled( this.isDisabled() );
|
||||
return this;
|
||||
};
|
||||
|
|
@ -9014,7 +8999,7 @@ OO.ui.CheckboxMultioptionWidget.prototype.onKeyDown = function ( e ) {
|
|||
*/
|
||||
OO.ui.CheckboxMultiselectWidget = function OoUiCheckboxMultiselectWidget( config ) {
|
||||
// Parent constructor
|
||||
OO.ui.CheckboxMultiselectWidget.parent.call( this, config );
|
||||
OO.ui.CheckboxMultiselectWidget.super.call( this, config );
|
||||
|
||||
// Properties
|
||||
this.$lastClicked = null;
|
||||
|
|
@ -9189,7 +9174,7 @@ OO.ui.ProgressBarWidget = function OoUiProgressBarWidget( config ) {
|
|||
config = config || {};
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.ProgressBarWidget.parent.call( this, config );
|
||||
OO.ui.ProgressBarWidget.super.call( this, config );
|
||||
|
||||
// Properties
|
||||
this.$bar = $( '<div>' );
|
||||
|
|
@ -9280,7 +9265,7 @@ OO.ui.InputWidget = function OoUiInputWidget( config ) {
|
|||
config = config || {};
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.InputWidget.parent.call( this, config );
|
||||
OO.ui.InputWidget.super.call( this, config );
|
||||
|
||||
// Properties
|
||||
// See #reusePreInfuseDOM about config.$input
|
||||
|
|
@ -9332,7 +9317,7 @@ OO.mixinClass( OO.ui.InputWidget, OO.ui.mixin.AccessKeyedElement );
|
|||
* @inheritdoc
|
||||
*/
|
||||
OO.ui.InputWidget.static.reusePreInfuseDOM = function ( node, config ) {
|
||||
config = OO.ui.InputWidget.parent.static.reusePreInfuseDOM( node, config );
|
||||
config = OO.ui.InputWidget.super.static.reusePreInfuseDOM( node, config );
|
||||
// Reusing `$input` lets browsers preserve inputted values across page reloads, see T114134.
|
||||
config.$input = $( node ).find( '.oo-ui-inputWidget-input' );
|
||||
return config;
|
||||
|
|
@ -9342,7 +9327,7 @@ OO.ui.InputWidget.static.reusePreInfuseDOM = function ( node, config ) {
|
|||
* @inheritdoc
|
||||
*/
|
||||
OO.ui.InputWidget.static.gatherPreInfuseState = function ( node, config ) {
|
||||
var state = OO.ui.InputWidget.parent.static.gatherPreInfuseState( node, config );
|
||||
var state = OO.ui.InputWidget.super.static.gatherPreInfuseState( node, config );
|
||||
if ( config.$input && config.$input.length ) {
|
||||
state.value = config.$input.val();
|
||||
// Might be better in TabIndexedElement, but it's awkward to do there because
|
||||
|
|
@ -9473,7 +9458,7 @@ OO.ui.InputWidget.prototype.cleanUpValue = function ( value ) {
|
|||
* @inheritdoc
|
||||
*/
|
||||
OO.ui.InputWidget.prototype.setDisabled = function ( state ) {
|
||||
OO.ui.InputWidget.parent.prototype.setDisabled.call( this, state );
|
||||
OO.ui.InputWidget.super.prototype.setDisabled.call( this, state );
|
||||
if ( this.$input ) {
|
||||
this.$input.prop( 'disabled', this.isDisabled() );
|
||||
}
|
||||
|
|
@ -9496,7 +9481,7 @@ OO.ui.InputWidget.prototype.setInputId = function ( id ) {
|
|||
* @inheritdoc
|
||||
*/
|
||||
OO.ui.InputWidget.prototype.restorePreInfuseState = function ( state ) {
|
||||
OO.ui.InputWidget.parent.prototype.restorePreInfuseState.call( this, state );
|
||||
OO.ui.InputWidget.super.prototype.restorePreInfuseState.call( this, state );
|
||||
if ( state.value !== undefined && state.value !== this.getValue() ) {
|
||||
this.setValue( state.value );
|
||||
}
|
||||
|
|
@ -9521,7 +9506,7 @@ OO.ui.HiddenInputWidget = function OoUiHiddenInputWidget( config ) {
|
|||
config = $.extend( { value: '', name: '' }, config );
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.HiddenInputWidget.parent.call( this, config );
|
||||
OO.ui.HiddenInputWidget.super.call( this, config );
|
||||
|
||||
// Initialization
|
||||
this.$element.attr( {
|
||||
|
|
@ -9593,7 +9578,7 @@ OO.ui.ButtonInputWidget = function OoUiButtonInputWidget( config ) {
|
|||
this.useInputTag = config.useInputTag;
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.ButtonInputWidget.parent.call( this, config );
|
||||
OO.ui.ButtonInputWidget.super.call( this, config );
|
||||
|
||||
// Mixin constructors
|
||||
OO.ui.mixin.ButtonElement.call( this, $.extend( {
|
||||
|
|
@ -9679,7 +9664,7 @@ OO.ui.ButtonInputWidget.prototype.setLabel = function ( label ) {
|
|||
*/
|
||||
OO.ui.ButtonInputWidget.prototype.setValue = function ( value ) {
|
||||
if ( !this.useInputTag ) {
|
||||
OO.ui.ButtonInputWidget.parent.prototype.setValue.call( this, value );
|
||||
OO.ui.ButtonInputWidget.super.prototype.setValue.call( this, value );
|
||||
}
|
||||
return this;
|
||||
};
|
||||
|
|
@ -9742,7 +9727,7 @@ OO.ui.CheckboxInputWidget = function OoUiCheckboxInputWidget( config ) {
|
|||
config = config || {};
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.CheckboxInputWidget.parent.call( this, config );
|
||||
OO.ui.CheckboxInputWidget.super.call( this, config );
|
||||
|
||||
// Properties
|
||||
this.checkIcon = new OO.ui.IconWidget( {
|
||||
|
|
@ -9788,7 +9773,7 @@ OO.ui.CheckboxInputWidget.static.tagName = 'span';
|
|||
* @inheritdoc
|
||||
*/
|
||||
OO.ui.CheckboxInputWidget.static.gatherPreInfuseState = function ( node, config ) {
|
||||
var state = OO.ui.CheckboxInputWidget.parent.static.gatherPreInfuseState( node, config );
|
||||
var state = OO.ui.CheckboxInputWidget.super.static.gatherPreInfuseState( node, config );
|
||||
state.checked = config.$input.prop( 'checked' );
|
||||
return state;
|
||||
};
|
||||
|
|
@ -9910,7 +9895,7 @@ OO.ui.CheckboxInputWidget.prototype.simulateLabelClick = function () {
|
|||
* @inheritdoc
|
||||
*/
|
||||
OO.ui.CheckboxInputWidget.prototype.restorePreInfuseState = function ( state ) {
|
||||
OO.ui.CheckboxInputWidget.parent.prototype.restorePreInfuseState.call( this, state );
|
||||
OO.ui.CheckboxInputWidget.super.prototype.restorePreInfuseState.call( this, state );
|
||||
if ( state.checked !== undefined && state.checked !== this.isSelected() ) {
|
||||
this.setSelected( state.checked );
|
||||
}
|
||||
|
|
@ -9971,7 +9956,7 @@ OO.ui.DropdownInputWidget = function OoUiDropdownInputWidget( config ) {
|
|||
this.setOptionsData( config.options || [] );
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.DropdownInputWidget.parent.call( this, config );
|
||||
OO.ui.DropdownInputWidget.super.call( this, config );
|
||||
|
||||
// Events
|
||||
this.dropdownWidget.getMenu().connect( this, {
|
||||
|
|
@ -10024,7 +10009,7 @@ OO.ui.DropdownInputWidget.prototype.setValue = function ( value ) {
|
|||
this.dropdownWidget.getMenu().findFirstSelectableItem();
|
||||
this.dropdownWidget.getMenu().selectItem( selected );
|
||||
value = selected ? selected.getData() : '';
|
||||
OO.ui.DropdownInputWidget.parent.prototype.setValue.call( this, value );
|
||||
OO.ui.DropdownInputWidget.super.prototype.setValue.call( this, value );
|
||||
if ( this.optionsDirty ) {
|
||||
// We reached this from the constructor or from #setOptions.
|
||||
// We have to update the <select> element.
|
||||
|
|
@ -10038,7 +10023,7 @@ OO.ui.DropdownInputWidget.prototype.setValue = function ( value ) {
|
|||
*/
|
||||
OO.ui.DropdownInputWidget.prototype.setDisabled = function ( state ) {
|
||||
this.dropdownWidget.setDisabled( state );
|
||||
OO.ui.DropdownInputWidget.parent.prototype.setDisabled.call( this, state );
|
||||
OO.ui.DropdownInputWidget.super.prototype.setDisabled.call( this, state );
|
||||
return this;
|
||||
};
|
||||
|
||||
|
|
@ -10246,7 +10231,7 @@ OO.ui.RadioInputWidget = function OoUiRadioInputWidget( config ) {
|
|||
config = config || {};
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.RadioInputWidget.parent.call( this, config );
|
||||
OO.ui.RadioInputWidget.super.call( this, config );
|
||||
|
||||
// Initialization
|
||||
this.$element
|
||||
|
|
@ -10274,7 +10259,7 @@ OO.ui.RadioInputWidget.static.tagName = 'span';
|
|||
* @inheritdoc
|
||||
*/
|
||||
OO.ui.RadioInputWidget.static.gatherPreInfuseState = function ( node, config ) {
|
||||
var state = OO.ui.RadioInputWidget.parent.static.gatherPreInfuseState( node, config );
|
||||
var state = OO.ui.RadioInputWidget.super.static.gatherPreInfuseState( node, config );
|
||||
state.checked = config.$input.prop( 'checked' );
|
||||
return state;
|
||||
};
|
||||
|
|
@ -10339,7 +10324,7 @@ OO.ui.RadioInputWidget.prototype.simulateLabelClick = function () {
|
|||
* @inheritdoc
|
||||
*/
|
||||
OO.ui.RadioInputWidget.prototype.restorePreInfuseState = function ( state ) {
|
||||
OO.ui.RadioInputWidget.parent.prototype.restorePreInfuseState.call( this, state );
|
||||
OO.ui.RadioInputWidget.super.prototype.restorePreInfuseState.call( this, state );
|
||||
if ( state.checked !== undefined && state.checked !== this.isSelected() ) {
|
||||
this.setSelected( state.checked );
|
||||
}
|
||||
|
|
@ -10384,7 +10369,7 @@ OO.ui.RadioSelectInputWidget = function OoUiRadioSelectInputWidget( config ) {
|
|||
this.setOptionsData( config.options || [] );
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.RadioSelectInputWidget.parent.call( this, config );
|
||||
OO.ui.RadioSelectInputWidget.super.call( this, config );
|
||||
|
||||
// Events
|
||||
this.radioSelectWidget.connect( this, {
|
||||
|
|
@ -10408,7 +10393,7 @@ OO.inheritClass( OO.ui.RadioSelectInputWidget, OO.ui.InputWidget );
|
|||
* @inheritdoc
|
||||
*/
|
||||
OO.ui.RadioSelectInputWidget.static.gatherPreInfuseState = function ( node, config ) {
|
||||
var state = OO.ui.RadioSelectInputWidget.parent.static.gatherPreInfuseState( node, config );
|
||||
var state = OO.ui.RadioSelectInputWidget.super.static.gatherPreInfuseState( node, config );
|
||||
state.value = $( node ).find( '.oo-ui-radioInputWidget .oo-ui-inputWidget-input:checked' ).val();
|
||||
return state;
|
||||
};
|
||||
|
|
@ -10417,7 +10402,7 @@ OO.ui.RadioSelectInputWidget.static.gatherPreInfuseState = function ( node, conf
|
|||
* @inheritdoc
|
||||
*/
|
||||
OO.ui.RadioSelectInputWidget.static.reusePreInfuseDOM = function ( node, config ) {
|
||||
config = OO.ui.RadioSelectInputWidget.parent.static.reusePreInfuseDOM( node, config );
|
||||
config = OO.ui.RadioSelectInputWidget.super.static.reusePreInfuseDOM( node, config );
|
||||
// Cannot reuse the `<input type=radio>` set
|
||||
delete config.$input;
|
||||
return config;
|
||||
|
|
@ -10456,7 +10441,7 @@ OO.ui.RadioSelectInputWidget.prototype.setValue = function ( value ) {
|
|||
this.radioSelectWidget.findFirstSelectableItem();
|
||||
this.radioSelectWidget.selectItem( selected );
|
||||
value = selected ? selected.getData() : '';
|
||||
OO.ui.RadioSelectInputWidget.parent.prototype.setValue.call( this, value );
|
||||
OO.ui.RadioSelectInputWidget.super.prototype.setValue.call( this, value );
|
||||
return this;
|
||||
};
|
||||
|
||||
|
|
@ -10465,7 +10450,7 @@ OO.ui.RadioSelectInputWidget.prototype.setValue = function ( value ) {
|
|||
*/
|
||||
OO.ui.RadioSelectInputWidget.prototype.setDisabled = function ( state ) {
|
||||
this.radioSelectWidget.setDisabled( state );
|
||||
OO.ui.RadioSelectInputWidget.parent.prototype.setDisabled.call( this, state );
|
||||
OO.ui.RadioSelectInputWidget.super.prototype.setDisabled.call( this, state );
|
||||
return this;
|
||||
};
|
||||
|
||||
|
|
@ -10568,7 +10553,7 @@ OO.ui.CheckboxMultiselectInputWidget = function OoUiCheckboxMultiselectInputWidg
|
|||
this.setOptionsData( config.options || [] );
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.CheckboxMultiselectInputWidget.parent.call( this, config );
|
||||
OO.ui.CheckboxMultiselectInputWidget.super.call( this, config );
|
||||
|
||||
// Events
|
||||
this.checkboxMultiselectWidget.connect( this, {
|
||||
|
|
@ -10593,7 +10578,7 @@ OO.inheritClass( OO.ui.CheckboxMultiselectInputWidget, OO.ui.InputWidget );
|
|||
* @inheritdoc
|
||||
*/
|
||||
OO.ui.CheckboxMultiselectInputWidget.static.gatherPreInfuseState = function ( node, config ) {
|
||||
var state = OO.ui.CheckboxMultiselectInputWidget.parent.static.gatherPreInfuseState(
|
||||
var state = OO.ui.CheckboxMultiselectInputWidget.super.static.gatherPreInfuseState(
|
||||
node, config
|
||||
);
|
||||
state.value = $( node ).find( '.oo-ui-checkboxInputWidget .oo-ui-inputWidget-input:checked' )
|
||||
|
|
@ -10605,7 +10590,7 @@ OO.ui.CheckboxMultiselectInputWidget.static.gatherPreInfuseState = function ( no
|
|||
* @inheritdoc
|
||||
*/
|
||||
OO.ui.CheckboxMultiselectInputWidget.static.reusePreInfuseDOM = function ( node, config ) {
|
||||
config = OO.ui.CheckboxMultiselectInputWidget.parent.static.reusePreInfuseDOM( node, config );
|
||||
config = OO.ui.CheckboxMultiselectInputWidget.super.static.reusePreInfuseDOM( node, config );
|
||||
// Cannot reuse the `<input type=checkbox>` set
|
||||
delete config.$input;
|
||||
return config;
|
||||
|
|
@ -10649,7 +10634,7 @@ OO.ui.CheckboxMultiselectInputWidget.prototype.getValue = function () {
|
|||
OO.ui.CheckboxMultiselectInputWidget.prototype.setValue = function ( value ) {
|
||||
value = this.cleanUpValue( value );
|
||||
this.checkboxMultiselectWidget.selectItemsByData( value );
|
||||
OO.ui.CheckboxMultiselectInputWidget.parent.prototype.setValue.call( this, value );
|
||||
OO.ui.CheckboxMultiselectInputWidget.super.prototype.setValue.call( this, value );
|
||||
if ( this.optionsDirty ) {
|
||||
// We reached this from the constructor or from #setOptions.
|
||||
// We have to update the <select> element.
|
||||
|
|
@ -10671,7 +10656,7 @@ OO.ui.CheckboxMultiselectInputWidget.prototype.cleanUpValue = function ( value )
|
|||
return cleanValue;
|
||||
}
|
||||
for ( i = 0; i < value.length; i++ ) {
|
||||
singleValue = OO.ui.CheckboxMultiselectInputWidget.parent.prototype.cleanUpValue
|
||||
singleValue = OO.ui.CheckboxMultiselectInputWidget.super.prototype.cleanUpValue
|
||||
.call( this, value[ i ] );
|
||||
// Remove options that we don't have here
|
||||
if ( !this.checkboxMultiselectWidget.findItemFromData( singleValue ) ) {
|
||||
|
|
@ -10687,7 +10672,7 @@ OO.ui.CheckboxMultiselectInputWidget.prototype.cleanUpValue = function ( value )
|
|||
*/
|
||||
OO.ui.CheckboxMultiselectInputWidget.prototype.setDisabled = function ( state ) {
|
||||
this.checkboxMultiselectWidget.setDisabled( state );
|
||||
OO.ui.CheckboxMultiselectInputWidget.parent.prototype.setDisabled.call( this, state );
|
||||
OO.ui.CheckboxMultiselectInputWidget.super.prototype.setDisabled.call( this, state );
|
||||
return this;
|
||||
};
|
||||
|
||||
|
|
@ -10730,7 +10715,7 @@ OO.ui.CheckboxMultiselectInputWidget.prototype.setOptionsData = function ( optio
|
|||
.clearItems()
|
||||
.addItems( options.map( function ( opt ) {
|
||||
var optValue, item, optDisabled;
|
||||
optValue = OO.ui.CheckboxMultiselectInputWidget.parent.prototype.cleanUpValue
|
||||
optValue = OO.ui.CheckboxMultiselectInputWidget.super.prototype.cleanUpValue
|
||||
.call( widget, opt.data );
|
||||
optDisabled = opt.disabled !== undefined ? opt.disabled : false;
|
||||
item = new OO.ui.CheckboxMultioptionWidget( {
|
||||
|
|
@ -10836,7 +10821,7 @@ OO.ui.TextInputWidget = function OoUiTextInputWidget( config ) {
|
|||
}, config );
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.TextInputWidget.parent.call( this, config );
|
||||
OO.ui.TextInputWidget.super.call( this, config );
|
||||
|
||||
// Mixin constructors
|
||||
OO.ui.mixin.IconElement.call( this, config );
|
||||
|
|
@ -11502,7 +11487,7 @@ OO.ui.SearchInputWidget = function OoUiSearchInputWidget( config ) {
|
|||
}, config );
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.SearchInputWidget.parent.call( this, config );
|
||||
OO.ui.SearchInputWidget.super.call( this, config );
|
||||
|
||||
// Events
|
||||
this.connect( this, {
|
||||
|
|
@ -11582,7 +11567,7 @@ OO.ui.SearchInputWidget.prototype.onDisable = function () {
|
|||
* @inheritdoc
|
||||
*/
|
||||
OO.ui.SearchInputWidget.prototype.setReadOnly = function ( state ) {
|
||||
OO.ui.SearchInputWidget.parent.prototype.setReadOnly.call( this, state );
|
||||
OO.ui.SearchInputWidget.super.prototype.setReadOnly.call( this, state );
|
||||
this.updateSearchIndicator();
|
||||
return this;
|
||||
};
|
||||
|
|
@ -11622,7 +11607,7 @@ OO.ui.MultilineTextInputWidget = function OoUiMultilineTextInputWidget( config )
|
|||
type: 'text'
|
||||
}, config );
|
||||
// Parent constructor
|
||||
OO.ui.MultilineTextInputWidget.parent.call( this, config );
|
||||
OO.ui.MultilineTextInputWidget.super.call( this, config );
|
||||
|
||||
// Properties
|
||||
this.autosize = !!config.autosize;
|
||||
|
|
@ -11667,7 +11652,7 @@ OO.inheritClass( OO.ui.MultilineTextInputWidget, OO.ui.TextInputWidget );
|
|||
* @inheritdoc
|
||||
*/
|
||||
OO.ui.MultilineTextInputWidget.static.gatherPreInfuseState = function ( node, config ) {
|
||||
var state = OO.ui.MultilineTextInputWidget.parent.static.gatherPreInfuseState( node, config );
|
||||
var state = OO.ui.MultilineTextInputWidget.super.static.gatherPreInfuseState( node, config );
|
||||
state.scrollTop = config.$input.scrollTop();
|
||||
return state;
|
||||
};
|
||||
|
|
@ -11678,7 +11663,7 @@ OO.ui.MultilineTextInputWidget.static.gatherPreInfuseState = function ( node, co
|
|||
* @inheritdoc
|
||||
*/
|
||||
OO.ui.MultilineTextInputWidget.prototype.onElementAttach = function () {
|
||||
OO.ui.MultilineTextInputWidget.parent.prototype.onElementAttach.call( this );
|
||||
OO.ui.MultilineTextInputWidget.super.prototype.onElementAttach.call( this );
|
||||
this.adjustSize();
|
||||
};
|
||||
|
||||
|
|
@ -11695,7 +11680,7 @@ OO.ui.MultilineTextInputWidget.prototype.onChange = function () {
|
|||
* @inheritdoc
|
||||
*/
|
||||
OO.ui.MultilineTextInputWidget.prototype.updatePosition = function () {
|
||||
OO.ui.MultilineTextInputWidget.parent.prototype.updatePosition.call( this );
|
||||
OO.ui.MultilineTextInputWidget.super.prototype.updatePosition.call( this );
|
||||
this.adjustSize();
|
||||
};
|
||||
|
||||
|
|
@ -11811,7 +11796,7 @@ OO.ui.MultilineTextInputWidget.prototype.isAutosizing = function () {
|
|||
* @inheritdoc
|
||||
*/
|
||||
OO.ui.MultilineTextInputWidget.prototype.restorePreInfuseState = function ( state ) {
|
||||
OO.ui.MultilineTextInputWidget.parent.prototype.restorePreInfuseState.call( this, state );
|
||||
OO.ui.MultilineTextInputWidget.super.prototype.restorePreInfuseState.call( this, state );
|
||||
if ( state.scrollTop !== undefined ) {
|
||||
this.$input.scrollTop( state.scrollTop );
|
||||
}
|
||||
|
|
@ -11900,7 +11885,7 @@ OO.ui.ComboBoxInputWidget = function OoUiComboBoxInputWidget( config ) {
|
|||
}
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.ComboBoxInputWidget.parent.call( this, config );
|
||||
OO.ui.ComboBoxInputWidget.super.call( this, config );
|
||||
|
||||
// Properties
|
||||
this.$overlay = ( config.$overlay === true ?
|
||||
|
|
@ -12081,7 +12066,7 @@ OO.ui.ComboBoxInputWidget.prototype.updateControlsDisabled = function () {
|
|||
*/
|
||||
OO.ui.ComboBoxInputWidget.prototype.setDisabled = function () {
|
||||
// Parent method
|
||||
OO.ui.ComboBoxInputWidget.parent.prototype.setDisabled.apply( this, arguments );
|
||||
OO.ui.ComboBoxInputWidget.super.prototype.setDisabled.apply( this, arguments );
|
||||
this.updateControlsDisabled();
|
||||
return this;
|
||||
};
|
||||
|
|
@ -12091,7 +12076,7 @@ OO.ui.ComboBoxInputWidget.prototype.setDisabled = function () {
|
|||
*/
|
||||
OO.ui.ComboBoxInputWidget.prototype.setReadOnly = function () {
|
||||
// Parent method
|
||||
OO.ui.ComboBoxInputWidget.parent.prototype.setReadOnly.apply( this, arguments );
|
||||
OO.ui.ComboBoxInputWidget.super.prototype.setReadOnly.apply( this, arguments );
|
||||
this.updateControlsDisabled();
|
||||
return this;
|
||||
};
|
||||
|
|
@ -12199,7 +12184,7 @@ OO.ui.FieldLayout = function OoUiFieldLayout( fieldWidget, config ) {
|
|||
config = $.extend( { align: 'left', helpInline: false }, config );
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.FieldLayout.parent.call( this, config );
|
||||
OO.ui.FieldLayout.super.call( this, config );
|
||||
|
||||
// Mixin constructors
|
||||
OO.ui.mixin.LabelElement.call( this, $.extend( {
|
||||
|
|
@ -12595,7 +12580,7 @@ OO.ui.ActionFieldLayout = function OoUiActionFieldLayout( fieldWidget, buttonWid
|
|||
}
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.ActionFieldLayout.parent.call( this, fieldWidget, config );
|
||||
OO.ui.ActionFieldLayout.super.call( this, fieldWidget, config );
|
||||
|
||||
// Properties
|
||||
this.buttonWidget = buttonWidget;
|
||||
|
|
@ -12677,7 +12662,7 @@ OO.ui.FieldsetLayout = function OoUiFieldsetLayout( config ) {
|
|||
config = config || {};
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.FieldsetLayout.parent.call( this, config );
|
||||
OO.ui.FieldsetLayout.super.call( this, config );
|
||||
|
||||
// Mixin constructors
|
||||
OO.ui.mixin.IconElement.call( this, config );
|
||||
|
|
@ -12814,7 +12799,7 @@ OO.ui.FormLayout = function OoUiFormLayout( config ) {
|
|||
config = config || {};
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.FormLayout.parent.call( this, config );
|
||||
OO.ui.FormLayout.super.call( this, config );
|
||||
|
||||
// Mixin constructors
|
||||
OO.ui.mixin.GroupElement.call( this, $.extend( { $group: this.$element }, config ) );
|
||||
|
|
@ -12914,7 +12899,7 @@ OO.ui.PanelLayout = function OoUiPanelLayout( config ) {
|
|||
}, config );
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.PanelLayout.parent.call( this, config );
|
||||
OO.ui.PanelLayout.super.call( this, config );
|
||||
|
||||
// Initialization
|
||||
this.$element.addClass( 'oo-ui-panelLayout' );
|
||||
|
|
@ -12942,7 +12927,7 @@ OO.inheritClass( OO.ui.PanelLayout, OO.ui.Layout );
|
|||
* @inheritdoc
|
||||
*/
|
||||
OO.ui.PanelLayout.static.reusePreInfuseDOM = function ( node, config ) {
|
||||
config = OO.ui.PanelLayout.parent.static.reusePreInfuseDOM( node, config );
|
||||
config = OO.ui.PanelLayout.super.static.reusePreInfuseDOM( node, config );
|
||||
if ( config.preserveContent !== false ) {
|
||||
config.$content = $( node ).contents();
|
||||
}
|
||||
|
|
@ -12990,7 +12975,7 @@ OO.ui.HorizontalLayout = function OoUiHorizontalLayout( config ) {
|
|||
config = config || {};
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.HorizontalLayout.parent.call( this, config );
|
||||
OO.ui.HorizontalLayout.super.call( this, config );
|
||||
|
||||
// Mixin constructors
|
||||
OO.ui.mixin.GroupElement.call( this, $.extend( { $group: this.$element }, config ) );
|
||||
|
|
@ -13055,7 +13040,7 @@ OO.ui.NumberInputWidget = function OoUiNumberInputWidget( config ) {
|
|||
this.input = this;
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.NumberInputWidget.parent.call( this, $.extend( config, {
|
||||
OO.ui.NumberInputWidget.super.call( this, $.extend( config, {
|
||||
type: 'number'
|
||||
} ) );
|
||||
|
||||
|
|
@ -13209,7 +13194,7 @@ OO.ui.NumberInputWidget.prototype.setValue = function ( value ) {
|
|||
// so here we make sure an 'empty' value is actually displayed as such.
|
||||
this.$input.val( '' );
|
||||
}
|
||||
return OO.ui.NumberInputWidget.parent.prototype.setValue.call( this, value );
|
||||
return OO.ui.NumberInputWidget.super.prototype.setValue.call( this, value );
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
@ -13393,7 +13378,7 @@ OO.ui.NumberInputWidget.prototype.updateControlsDisabled = function () {
|
|||
*/
|
||||
OO.ui.NumberInputWidget.prototype.setDisabled = function ( disabled ) {
|
||||
// Parent method
|
||||
OO.ui.NumberInputWidget.parent.prototype.setDisabled.call( this, disabled );
|
||||
OO.ui.NumberInputWidget.super.prototype.setDisabled.call( this, disabled );
|
||||
this.updateControlsDisabled();
|
||||
return this;
|
||||
};
|
||||
|
|
@ -13403,7 +13388,7 @@ OO.ui.NumberInputWidget.prototype.setDisabled = function ( disabled ) {
|
|||
*/
|
||||
OO.ui.NumberInputWidget.prototype.setReadOnly = function () {
|
||||
// Parent method
|
||||
OO.ui.NumberInputWidget.parent.prototype.setReadOnly.apply( this, arguments );
|
||||
OO.ui.NumberInputWidget.super.prototype.setReadOnly.apply( this, arguments );
|
||||
this.updateControlsDisabled();
|
||||
return this;
|
||||
};
|
||||
|
|
@ -13463,7 +13448,7 @@ OO.ui.SelectFileInputWidget = function OoUiSelectFileInputWidget( config ) {
|
|||
this.info.$input.attr( 'tabindex', -1 );
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.SelectFileInputWidget.parent.call( this, config );
|
||||
OO.ui.SelectFileInputWidget.super.call( this, config );
|
||||
|
||||
// Properties
|
||||
this.currentFiles = this.filterFiles( this.$input[ 0 ].files || [] );
|
||||
|
|
@ -13663,7 +13648,7 @@ OO.ui.SelectFileInputWidget.prototype.onKeyPress = function ( e ) {
|
|||
*/
|
||||
OO.ui.SelectFileInputWidget.prototype.setDisabled = function ( disabled ) {
|
||||
// Parent method
|
||||
OO.ui.SelectFileInputWidget.parent.prototype.setDisabled.call( this, disabled );
|
||||
OO.ui.SelectFileInputWidget.super.prototype.setDisabled.call( this, disabled );
|
||||
|
||||
this.selectButton.setDisabled( disabled );
|
||||
this.info.setDisabled( disabled );
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
/*!
|
||||
* OOUI v0.38.0
|
||||
* OOUI v0.38.1
|
||||
* https://www.mediawiki.org/wiki/OOUI
|
||||
*
|
||||
* Copyright 2011–2020 OOUI Team and other contributors.
|
||||
* Released under the MIT license
|
||||
* http://oojs.mit-license.org
|
||||
*
|
||||
* Date: 2020-04-15T01:28:27Z
|
||||
* Date: 2020-05-01T20:02:07Z
|
||||
*/
|
||||
.oo-ui-icon-arrowNext {
|
||||
background-image: url('themes/wikimediaui/images/icons/arrowNext-ltr.png');
|
||||
|
|
@ -267,6 +267,18 @@
|
|||
background-image: url('themes/wikimediaui/images/icons/articleSearch-progressive.png');
|
||||
background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/articleSearch-progressive.svg');
|
||||
}
|
||||
.oo-ui-icon-articlesSearch {
|
||||
background-image: url('themes/wikimediaui/images/icons/articlesSearch-ltr.png');
|
||||
background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/articlesSearch-ltr.svg');
|
||||
}
|
||||
.oo-ui-image-invert.oo-ui-icon-articlesSearch {
|
||||
background-image: url('themes/wikimediaui/images/icons/articlesSearch-ltr-invert.png');
|
||||
background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/articlesSearch-ltr-invert.svg');
|
||||
}
|
||||
.oo-ui-image-progressive.oo-ui-icon-articlesSearch {
|
||||
background-image: url('themes/wikimediaui/images/icons/articlesSearch-ltr-progressive.png');
|
||||
background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/articlesSearch-ltr-progressive.svg');
|
||||
}
|
||||
.oo-ui-icon-articleRedirect {
|
||||
background-image: url('themes/wikimediaui/images/icons/articleRedirect-ltr.png');
|
||||
background-image: linear-gradient(transparent, transparent), /* @embed */ url('themes/wikimediaui/images/icons/articleRedirect-ltr.svg');
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
/*!
|
||||
* OOUI v0.38.0
|
||||
* OOUI v0.38.1
|
||||
* https://www.mediawiki.org/wiki/OOUI
|
||||
*
|
||||
* Copyright 2011–2020 OOUI Team and other contributors.
|
||||
* Released under the MIT license
|
||||
* http://oojs.mit-license.org
|
||||
*
|
||||
* Date: 2020-04-15T01:28:27Z
|
||||
* Date: 2020-05-01T20:02:07Z
|
||||
*/
|
||||
.oo-ui-tool > .oo-ui-tool-link > .oo-ui-tool-checkIcon {
|
||||
display: none;
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
/*!
|
||||
* OOUI v0.38.0
|
||||
* OOUI v0.38.1
|
||||
* https://www.mediawiki.org/wiki/OOUI
|
||||
*
|
||||
* Copyright 2011–2020 OOUI Team and other contributors.
|
||||
* Released under the MIT license
|
||||
* http://oojs.mit-license.org
|
||||
*
|
||||
* Date: 2020-04-15T01:28:27Z
|
||||
* Date: 2020-05-01T20:02:07Z
|
||||
*/
|
||||
.oo-ui-tool {
|
||||
-webkit-box-sizing: border-box;
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
/*!
|
||||
* OOUI v0.38.0
|
||||
* OOUI v0.38.1
|
||||
* https://www.mediawiki.org/wiki/OOUI
|
||||
*
|
||||
* Copyright 2011–2020 OOUI Team and other contributors.
|
||||
* Released under the MIT license
|
||||
* http://oojs.mit-license.org
|
||||
*
|
||||
* Date: 2020-04-15T01:28:08Z
|
||||
* Date: 2020-05-01T20:01:46Z
|
||||
*/
|
||||
( function ( OO ) {
|
||||
|
||||
|
|
@ -50,7 +50,7 @@
|
|||
*
|
||||
* // Create a class inheriting from OO.ui.Tool
|
||||
* function SearchTool() {
|
||||
* SearchTool.parent.apply( this, arguments );
|
||||
* SearchTool.super.apply( this, arguments );
|
||||
* }
|
||||
* OO.inheritClass( SearchTool, OO.ui.Tool );
|
||||
* // Each tool must have a 'name' (used as an internal identifier, see later) and at least one
|
||||
|
|
@ -70,7 +70,7 @@
|
|||
*
|
||||
* // Register two more tools, nothing interesting here
|
||||
* function SettingsTool() {
|
||||
* SettingsTool.parent.apply( this, arguments );
|
||||
* SettingsTool.super.apply( this, arguments );
|
||||
* }
|
||||
* OO.inheritClass( SettingsTool, OO.ui.Tool );
|
||||
* SettingsTool.static.name = 'settings';
|
||||
|
|
@ -85,7 +85,7 @@
|
|||
*
|
||||
* // Register two more tools, nothing interesting here
|
||||
* function StuffTool() {
|
||||
* StuffTool.parent.apply( this, arguments );
|
||||
* StuffTool.super.apply( this, arguments );
|
||||
* }
|
||||
* OO.inheritClass( StuffTool, OO.ui.Tool );
|
||||
* StuffTool.static.name = 'stuff';
|
||||
|
|
@ -170,7 +170,7 @@
|
|||
*
|
||||
* // Create a class inheriting from OO.ui.Tool
|
||||
* function SearchTool() {
|
||||
* SearchTool.parent.apply( this, arguments );
|
||||
* SearchTool.super.apply( this, arguments );
|
||||
* }
|
||||
* OO.inheritClass( SearchTool, OO.ui.Tool );
|
||||
* // Each tool must have a 'name' (used as an internal identifier, see later) and at least one
|
||||
|
|
@ -190,7 +190,7 @@
|
|||
*
|
||||
* // Register two more tools, nothing interesting here
|
||||
* function SettingsTool() {
|
||||
* SettingsTool.parent.apply( this, arguments );
|
||||
* SettingsTool.super.apply( this, arguments );
|
||||
* this.reallyActive = false;
|
||||
* }
|
||||
* OO.inheritClass( SettingsTool, OO.ui.Tool );
|
||||
|
|
@ -210,7 +210,7 @@
|
|||
*
|
||||
* // Register two more tools, nothing interesting here
|
||||
* function StuffTool() {
|
||||
* StuffTool.parent.apply( this, arguments );
|
||||
* StuffTool.super.apply( this, arguments );
|
||||
* this.reallyActive = false;
|
||||
* }
|
||||
* OO.inheritClass( StuffTool, OO.ui.Tool );
|
||||
|
|
@ -310,7 +310,7 @@ OO.ui.Toolbar = function OoUiToolbar( toolFactory, toolGroupFactory, config ) {
|
|||
config = config || {};
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.Toolbar.parent.call( this, config );
|
||||
OO.ui.Toolbar.super.call( this, config );
|
||||
|
||||
// Mixin constructors
|
||||
OO.EventEmitter.call( this );
|
||||
|
|
@ -664,7 +664,7 @@ OO.ui.Tool = function OoUiTool( toolGroup, config ) {
|
|||
config = config || {};
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.Tool.parent.call( this, config );
|
||||
OO.ui.Tool.super.call( this, config );
|
||||
|
||||
// Properties
|
||||
this.toolGroup = toolGroup;
|
||||
|
|
@ -1003,7 +1003,7 @@ OO.ui.ToolGroup = function OoUiToolGroup( toolbar, config ) {
|
|||
config = config || {};
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.ToolGroup.parent.call( this, config );
|
||||
OO.ui.ToolGroup.super.call( this, config );
|
||||
|
||||
// Mixin constructors
|
||||
OO.ui.mixin.GroupElement.call( this, config );
|
||||
|
|
@ -1119,7 +1119,7 @@ OO.ui.ToolGroup.static.name = null;
|
|||
*/
|
||||
OO.ui.ToolGroup.prototype.isDisabled = function () {
|
||||
return this.autoDisabled ||
|
||||
OO.ui.ToolGroup.parent.prototype.isDisabled.apply( this, arguments );
|
||||
OO.ui.ToolGroup.super.prototype.isDisabled.apply( this, arguments );
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
@ -1138,7 +1138,7 @@ OO.ui.ToolGroup.prototype.updateDisabled = function () {
|
|||
}
|
||||
this.autoDisabled = allDisabled;
|
||||
}
|
||||
OO.ui.ToolGroup.parent.prototype.updateDisabled.apply( this, arguments );
|
||||
OO.ui.ToolGroup.super.prototype.updateDisabled.apply( this, arguments );
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
@ -1399,7 +1399,7 @@ OO.ui.ToolGroup.prototype.destroy = function () {
|
|||
*/
|
||||
OO.ui.ToolFactory = function OoUiToolFactory() {
|
||||
// Parent constructor
|
||||
OO.ui.ToolFactory.parent.call( this );
|
||||
OO.ui.ToolFactory.super.call( this );
|
||||
};
|
||||
|
||||
/* Setup */
|
||||
|
|
@ -1617,7 +1617,7 @@ OO.ui.PopupTool = function OoUiPopupTool( toolGroup, config ) {
|
|||
}
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.PopupTool.parent.call( this, toolGroup, config );
|
||||
OO.ui.PopupTool.super.call( this, toolGroup, config );
|
||||
|
||||
// Mixin constructors
|
||||
OO.ui.mixin.PopupElement.call( this, config );
|
||||
|
|
@ -1683,7 +1683,7 @@ OO.ui.PopupTool.prototype.onPopupToggle = function ( isVisible ) {
|
|||
* // defined elsewhere.
|
||||
*
|
||||
* function SettingsTool() {
|
||||
* SettingsTool.parent.apply( this, arguments );
|
||||
* SettingsTool.super.apply( this, arguments );
|
||||
* };
|
||||
* OO.inheritClass( SettingsTool, OO.ui.ToolGroupTool );
|
||||
* SettingsTool.static.name = 'settings';
|
||||
|
|
@ -1718,7 +1718,7 @@ OO.ui.ToolGroupTool = function OoUiToolGroupTool( toolGroup, config ) {
|
|||
}
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.ToolGroupTool.parent.call( this, toolGroup, config );
|
||||
OO.ui.ToolGroupTool.super.call( this, toolGroup, config );
|
||||
|
||||
// Properties
|
||||
this.innerToolGroup = this.createGroup( this.constructor.static.groupConfig );
|
||||
|
|
@ -1826,7 +1826,7 @@ OO.ui.ToolGroupTool.prototype.createGroup = function ( group ) {
|
|||
*
|
||||
* // Create a class inheriting from OO.ui.Tool
|
||||
* function SearchTool() {
|
||||
* SearchTool.parent.apply( this, arguments );
|
||||
* SearchTool.super.apply( this, arguments );
|
||||
* }
|
||||
* OO.inheritClass( SearchTool, OO.ui.Tool );
|
||||
* // Each tool must have a 'name' (used as an internal identifier, see later) and at least one
|
||||
|
|
@ -1911,7 +1911,7 @@ OO.ui.BarToolGroup = function OoUiBarToolGroup( toolbar, config ) {
|
|||
}
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.BarToolGroup.parent.call( this, toolbar, config );
|
||||
OO.ui.BarToolGroup.super.call( this, toolbar, config );
|
||||
|
||||
// Initialization
|
||||
this.$element.addClass( 'oo-ui-barToolGroup' );
|
||||
|
|
@ -1979,7 +1979,7 @@ OO.ui.PopupToolGroup = function OoUiPopupToolGroup( toolbar, config ) {
|
|||
}, config );
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.PopupToolGroup.parent.call( this, toolbar, config );
|
||||
OO.ui.PopupToolGroup.super.call( this, toolbar, config );
|
||||
|
||||
// Properties
|
||||
this.active = false;
|
||||
|
|
@ -2056,7 +2056,7 @@ OO.mixinClass( OO.ui.PopupToolGroup, OO.ui.mixin.TabIndexedElement );
|
|||
*/
|
||||
OO.ui.PopupToolGroup.prototype.setDisabled = function () {
|
||||
// Parent method
|
||||
OO.ui.PopupToolGroup.parent.prototype.setDisabled.apply( this, arguments );
|
||||
OO.ui.PopupToolGroup.super.prototype.setDisabled.apply( this, arguments );
|
||||
|
||||
if ( this.isDisabled() && this.isElementAttached() ) {
|
||||
this.setActive( false );
|
||||
|
|
@ -2095,7 +2095,7 @@ OO.ui.PopupToolGroup.prototype.onMouseKeyUp = function ( e ) {
|
|||
) {
|
||||
this.setActive( false );
|
||||
}
|
||||
return OO.ui.PopupToolGroup.parent.prototype.onMouseKeyUp.call( this, e );
|
||||
return OO.ui.PopupToolGroup.super.prototype.onMouseKeyUp.call( this, e );
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
@ -2125,7 +2125,7 @@ OO.ui.PopupToolGroup.prototype.onMouseKeyDown = function ( e ) {
|
|||
this.setActive( false );
|
||||
}
|
||||
}
|
||||
return OO.ui.PopupToolGroup.parent.prototype.onMouseKeyDown.call( this, e );
|
||||
return OO.ui.PopupToolGroup.super.prototype.onMouseKeyDown.call( this, e );
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
@ -2288,7 +2288,7 @@ OO.ui.PopupToolGroup.prototype.setActive = function ( value ) {
|
|||
*
|
||||
* // Configure and register two tools
|
||||
* function SettingsTool() {
|
||||
* SettingsTool.parent.apply( this, arguments );
|
||||
* SettingsTool.super.apply( this, arguments );
|
||||
* }
|
||||
* OO.inheritClass( SettingsTool, OO.ui.Tool );
|
||||
* SettingsTool.static.name = 'settings';
|
||||
|
|
@ -2301,7 +2301,7 @@ OO.ui.PopupToolGroup.prototype.setActive = function ( value ) {
|
|||
* toolFactory.register( SettingsTool );
|
||||
* // Register two more tools, nothing interesting here
|
||||
* function StuffTool() {
|
||||
* StuffTool.parent.apply( this, arguments );
|
||||
* StuffTool.super.apply( this, arguments );
|
||||
* }
|
||||
* OO.inheritClass( StuffTool, OO.ui.Tool );
|
||||
* StuffTool.static.name = 'stuff';
|
||||
|
|
@ -2380,7 +2380,7 @@ OO.ui.ListToolGroup = function OoUiListToolGroup( toolbar, config ) {
|
|||
this.collapsibleTools = [];
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.ListToolGroup.parent.call( this, toolbar, config );
|
||||
OO.ui.ListToolGroup.super.call( this, toolbar, config );
|
||||
|
||||
// Initialization
|
||||
this.$element.addClass( 'oo-ui-listToolGroup' );
|
||||
|
|
@ -2407,7 +2407,7 @@ OO.ui.ListToolGroup.static.name = 'list';
|
|||
OO.ui.ListToolGroup.prototype.populate = function () {
|
||||
var i, len, allowCollapse = [];
|
||||
|
||||
OO.ui.ListToolGroup.parent.prototype.populate.call( this );
|
||||
OO.ui.ListToolGroup.super.prototype.populate.call( this );
|
||||
|
||||
// Update the list of collapsible tools
|
||||
if ( this.allowCollapse !== undefined ) {
|
||||
|
|
@ -2439,7 +2439,7 @@ OO.ui.ListToolGroup.prototype.getExpandCollapseTool = function () {
|
|||
var ExpandCollapseTool;
|
||||
if ( this.expandCollapseTool === undefined ) {
|
||||
ExpandCollapseTool = function () {
|
||||
ExpandCollapseTool.parent.apply( this, arguments );
|
||||
ExpandCollapseTool.super.apply( this, arguments );
|
||||
};
|
||||
|
||||
OO.inheritClass( ExpandCollapseTool, OO.ui.Tool );
|
||||
|
|
@ -2475,9 +2475,9 @@ OO.ui.ListToolGroup.prototype.onMouseKeyUp = function ( e ) {
|
|||
// HACK: Prevent the popup list from being hidden. Skip the PopupToolGroup implementation
|
||||
// (which hides the popup list when a tool is selected) and call ToolGroup's implementation
|
||||
// directly.
|
||||
return OO.ui.ListToolGroup.parent.parent.prototype.onMouseKeyUp.call( this, e );
|
||||
return OO.ui.ListToolGroup.super.super.prototype.onMouseKeyUp.call( this, e );
|
||||
} else {
|
||||
return OO.ui.ListToolGroup.parent.prototype.onMouseKeyUp.call( this, e );
|
||||
return OO.ui.ListToolGroup.super.prototype.onMouseKeyUp.call( this, e );
|
||||
}
|
||||
};
|
||||
|
||||
|
|
@ -2527,7 +2527,7 @@ OO.ui.ListToolGroup.prototype.updateCollapsibleState = function () {
|
|||
* // Define the tools that we're going to place in our toolbar
|
||||
*
|
||||
* function SettingsTool() {
|
||||
* SettingsTool.parent.apply( this, arguments );
|
||||
* SettingsTool.super.apply( this, arguments );
|
||||
* this.reallyActive = false;
|
||||
* }
|
||||
* OO.inheritClass( SettingsTool, OO.ui.Tool );
|
||||
|
|
@ -2546,7 +2546,7 @@ OO.ui.ListToolGroup.prototype.updateCollapsibleState = function () {
|
|||
* toolFactory.register( SettingsTool );
|
||||
*
|
||||
* function StuffTool() {
|
||||
* StuffTool.parent.apply( this, arguments );
|
||||
* StuffTool.super.apply( this, arguments );
|
||||
* this.reallyActive = false;
|
||||
* }
|
||||
* OO.inheritClass( StuffTool, OO.ui.Tool );
|
||||
|
|
@ -2620,7 +2620,7 @@ OO.ui.MenuToolGroup = function OoUiMenuToolGroup( toolbar, config ) {
|
|||
config = config || {};
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.MenuToolGroup.parent.call( this, toolbar, config );
|
||||
OO.ui.MenuToolGroup.super.call( this, toolbar, config );
|
||||
|
||||
// Events
|
||||
this.toolbar.connect( this, {
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
/*!
|
||||
* OOUI v0.38.0
|
||||
* OOUI v0.38.1
|
||||
* https://www.mediawiki.org/wiki/OOUI
|
||||
*
|
||||
* Copyright 2011–2020 OOUI Team and other contributors.
|
||||
* Released under the MIT license
|
||||
* http://oojs.mit-license.org
|
||||
*
|
||||
* Date: 2020-04-15T01:28:27Z
|
||||
* Date: 2020-05-01T20:02:07Z
|
||||
*/
|
||||
.oo-ui-draggableElement-handle:not( .oo-ui-draggableElement-undraggable ).oo-ui-widget {
|
||||
cursor: move;
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
/*!
|
||||
* OOUI v0.38.0
|
||||
* OOUI v0.38.1
|
||||
* https://www.mediawiki.org/wiki/OOUI
|
||||
*
|
||||
* Copyright 2011–2020 OOUI Team and other contributors.
|
||||
* Released under the MIT license
|
||||
* http://oojs.mit-license.org
|
||||
*
|
||||
* Date: 2020-04-15T01:28:27Z
|
||||
* Date: 2020-05-01T20:02:07Z
|
||||
*/
|
||||
.oo-ui-draggableElement-handle:not( .oo-ui-draggableElement-undraggable ).oo-ui-widget {
|
||||
cursor: move;
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
/*!
|
||||
* OOUI v0.38.0
|
||||
* OOUI v0.38.1
|
||||
* https://www.mediawiki.org/wiki/OOUI
|
||||
*
|
||||
* Copyright 2011–2020 OOUI Team and other contributors.
|
||||
* Released under the MIT license
|
||||
* http://oojs.mit-license.org
|
||||
*
|
||||
* Date: 2020-04-15T01:28:08Z
|
||||
* Date: 2020-05-01T20:01:46Z
|
||||
*/
|
||||
( function ( OO ) {
|
||||
|
||||
|
|
@ -1038,7 +1038,7 @@ OO.ui.TabPanelLayout = function OoUiTabPanelLayout( name, config ) {
|
|||
config = $.extend( { scrollable: true }, config );
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.TabPanelLayout.parent.call( this, config );
|
||||
OO.ui.TabPanelLayout.super.call( this, config );
|
||||
|
||||
// Properties
|
||||
this.name = name;
|
||||
|
|
@ -1202,7 +1202,7 @@ OO.ui.PageLayout = function OoUiPageLayout( name, config ) {
|
|||
config = $.extend( { scrollable: true }, config );
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.PageLayout.parent.call( this, config );
|
||||
OO.ui.PageLayout.super.call( this, config );
|
||||
|
||||
// Properties
|
||||
this.name = name;
|
||||
|
|
@ -1359,7 +1359,7 @@ OO.ui.StackLayout = function OoUiStackLayout( config ) {
|
|||
config = $.extend( { scrollable: !!( config && config.continuous ) }, config );
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.StackLayout.parent.call( this, config );
|
||||
OO.ui.StackLayout.super.call( this, config );
|
||||
|
||||
// Mixin constructors
|
||||
OO.ui.mixin.GroupElement.call( this, $.extend( { $group: this.$element }, config ) );
|
||||
|
|
@ -1582,7 +1582,7 @@ OO.ui.StackLayout.prototype.setItem = function ( item ) {
|
|||
OO.ui.StackLayout.prototype.resetScroll = function () {
|
||||
if ( this.continuous ) {
|
||||
// Parent method
|
||||
return OO.ui.StackLayout.parent.prototype.resetScroll.call( this );
|
||||
return OO.ui.StackLayout.super.prototype.resetScroll.call( this );
|
||||
}
|
||||
// Reset each panel
|
||||
this.getItems().forEach( function ( panel ) {
|
||||
|
|
@ -1720,7 +1720,7 @@ OO.ui.MenuLayout = function OoUiMenuLayout( config ) {
|
|||
}, config );
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.MenuLayout.parent.call( this, config );
|
||||
OO.ui.MenuLayout.super.call( this, config );
|
||||
|
||||
this.menuPanel = null;
|
||||
this.contentPanel = null;
|
||||
|
|
@ -1891,7 +1891,7 @@ OO.ui.MenuLayout.prototype.resetScroll = function () {
|
|||
* // Example of a BookletLayout that contains two PageLayouts.
|
||||
*
|
||||
* function PageOneLayout( name, config ) {
|
||||
* PageOneLayout.parent.call( this, name, config );
|
||||
* PageOneLayout.super.call( this, name, config );
|
||||
* this.$element.append( '<p>First page</p><p>(This booklet has an outline, displayed on ' +
|
||||
* 'the left)</p>' );
|
||||
* }
|
||||
|
|
@ -1901,7 +1901,7 @@ OO.ui.MenuLayout.prototype.resetScroll = function () {
|
|||
* };
|
||||
*
|
||||
* function PageTwoLayout( name, config ) {
|
||||
* PageTwoLayout.parent.call( this, name, config );
|
||||
* PageTwoLayout.super.call( this, name, config );
|
||||
* this.$element.append( '<p>Second page</p>' );
|
||||
* }
|
||||
* OO.inheritClass( PageTwoLayout, OO.ui.PageLayout );
|
||||
|
|
@ -1936,7 +1936,7 @@ OO.ui.BookletLayout = function OoUiBookletLayout( config ) {
|
|||
config = config || {};
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.BookletLayout.parent.call( this, config );
|
||||
OO.ui.BookletLayout.super.call( this, config );
|
||||
|
||||
// Properties
|
||||
this.currentPageName = null;
|
||||
|
|
@ -2467,7 +2467,7 @@ OO.ui.BookletLayout.prototype.setPage = function ( name ) {
|
|||
*/
|
||||
OO.ui.BookletLayout.prototype.resetScroll = function () {
|
||||
// Parent method
|
||||
OO.ui.BookletLayout.parent.prototype.resetScroll.call( this );
|
||||
OO.ui.BookletLayout.super.prototype.resetScroll.call( this );
|
||||
|
||||
if (
|
||||
this.outlined &&
|
||||
|
|
@ -2508,7 +2508,7 @@ OO.ui.BookletLayout.prototype.selectFirstSelectablePage = function () {
|
|||
* // Example of a IndexLayout that contains two TabPanelLayouts.
|
||||
*
|
||||
* function TabPanelOneLayout( name, config ) {
|
||||
* TabPanelOneLayout.parent.call( this, name, config );
|
||||
* TabPanelOneLayout.super.call( this, name, config );
|
||||
* this.$element.append( '<p>First tab panel</p>' );
|
||||
* }
|
||||
* OO.inheritClass( TabPanelOneLayout, OO.ui.TabPanelLayout );
|
||||
|
|
@ -2542,7 +2542,7 @@ OO.ui.IndexLayout = function OoUiIndexLayout( config ) {
|
|||
config = $.extend( {}, config, { menuPosition: 'top' } );
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.IndexLayout.parent.call( this, config );
|
||||
OO.ui.IndexLayout.super.call( this, config );
|
||||
|
||||
// Properties
|
||||
this.currentTabPanelName = null;
|
||||
|
|
@ -2989,7 +2989,7 @@ OO.ui.ToggleWidget = function OoUiToggleWidget( config ) {
|
|||
config = config || {};
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.ToggleWidget.parent.call( this, config );
|
||||
OO.ui.ToggleWidget.super.call( this, config );
|
||||
|
||||
// Mixin constructor
|
||||
OO.ui.mixin.TitledElement.call( this, config );
|
||||
|
|
@ -3089,7 +3089,7 @@ OO.ui.ToggleButtonWidget = function OoUiToggleButtonWidget( config ) {
|
|||
config = config || {};
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.ToggleButtonWidget.parent.call( this, config );
|
||||
OO.ui.ToggleButtonWidget.super.call( this, config );
|
||||
|
||||
// Mixin constructors
|
||||
OO.ui.mixin.ButtonElement.call( this, $.extend( {
|
||||
|
|
@ -3159,7 +3159,7 @@ OO.ui.ToggleButtonWidget.prototype.setValue = function ( value ) {
|
|||
}
|
||||
|
||||
// Parent method
|
||||
OO.ui.ToggleButtonWidget.parent.prototype.setValue.call( this, value );
|
||||
OO.ui.ToggleButtonWidget.super.prototype.setValue.call( this, value );
|
||||
|
||||
return this;
|
||||
};
|
||||
|
|
@ -3213,7 +3213,7 @@ OO.ui.ToggleButtonWidget.prototype.setButtonElement = function ( $button ) {
|
|||
*/
|
||||
OO.ui.ToggleSwitchWidget = function OoUiToggleSwitchWidget( config ) {
|
||||
// Parent constructor
|
||||
OO.ui.ToggleSwitchWidget.parent.call( this, config );
|
||||
OO.ui.ToggleSwitchWidget.super.call( this, config );
|
||||
|
||||
// Mixin constructors
|
||||
OO.ui.mixin.TabIndexedElement.call( this, config );
|
||||
|
|
@ -3279,7 +3279,7 @@ OO.ui.ToggleSwitchWidget.prototype.onKeyPress = function ( e ) {
|
|||
* @inheritdoc
|
||||
*/
|
||||
OO.ui.ToggleSwitchWidget.prototype.setValue = function ( value ) {
|
||||
OO.ui.ToggleSwitchWidget.parent.prototype.setValue.call( this, value );
|
||||
OO.ui.ToggleSwitchWidget.super.prototype.setValue.call( this, value );
|
||||
this.$element.attr( 'aria-checked', this.value.toString() );
|
||||
return this;
|
||||
};
|
||||
|
|
@ -3323,7 +3323,7 @@ OO.ui.OutlineControlsWidget = function OoUiOutlineControlsWidget( outline, confi
|
|||
config = config || {};
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.OutlineControlsWidget.parent.call( this, config );
|
||||
OO.ui.OutlineControlsWidget.super.call( this, config );
|
||||
|
||||
// Mixin constructors
|
||||
OO.ui.mixin.GroupElement.call( this, config );
|
||||
|
|
@ -3466,7 +3466,7 @@ OO.ui.OutlineOptionWidget = function OoUiOutlineOptionWidget( config ) {
|
|||
config = config || {};
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.OutlineOptionWidget.parent.call( this, config );
|
||||
OO.ui.OutlineOptionWidget.super.call( this, config );
|
||||
|
||||
// Properties
|
||||
this.level = 0;
|
||||
|
|
@ -3547,7 +3547,7 @@ OO.ui.OutlineOptionWidget.prototype.getLevel = function () {
|
|||
* @inheritdoc
|
||||
*/
|
||||
OO.ui.OutlineOptionWidget.prototype.setPressed = function ( state ) {
|
||||
OO.ui.OutlineOptionWidget.parent.prototype.setPressed.call( this, state );
|
||||
OO.ui.OutlineOptionWidget.super.prototype.setPressed.call( this, state );
|
||||
return this;
|
||||
};
|
||||
|
||||
|
|
@ -3585,7 +3585,7 @@ OO.ui.OutlineOptionWidget.prototype.setRemovable = function ( removable ) {
|
|||
* @inheritdoc
|
||||
*/
|
||||
OO.ui.OutlineOptionWidget.prototype.setSelected = function ( state ) {
|
||||
OO.ui.OutlineOptionWidget.parent.prototype.setSelected.call( this, state );
|
||||
OO.ui.OutlineOptionWidget.super.prototype.setSelected.call( this, state );
|
||||
return this;
|
||||
};
|
||||
|
||||
|
|
@ -3631,7 +3631,7 @@ OO.ui.OutlineOptionWidget.prototype.setLevel = function ( level ) {
|
|||
*/
|
||||
OO.ui.OutlineSelectWidget = function OoUiOutlineSelectWidget( config ) {
|
||||
// Parent constructor
|
||||
OO.ui.OutlineSelectWidget.parent.call( this, config );
|
||||
OO.ui.OutlineSelectWidget.super.call( this, config );
|
||||
|
||||
// Mixin constructors
|
||||
OO.ui.mixin.TabIndexedElement.call( this, config );
|
||||
|
|
@ -3673,7 +3673,7 @@ OO.ui.ButtonOptionWidget = function OoUiButtonOptionWidget( config ) {
|
|||
config = config || {};
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.ButtonOptionWidget.parent.call( this, config );
|
||||
OO.ui.ButtonOptionWidget.super.call( this, config );
|
||||
|
||||
// Mixin constructors
|
||||
OO.ui.mixin.ButtonElement.call( this, config );
|
||||
|
|
@ -3716,7 +3716,7 @@ OO.ui.ButtonOptionWidget.static.highlightable = false;
|
|||
* @inheritdoc
|
||||
*/
|
||||
OO.ui.ButtonOptionWidget.prototype.setSelected = function ( state ) {
|
||||
OO.ui.ButtonOptionWidget.parent.prototype.setSelected.call( this, state );
|
||||
OO.ui.ButtonOptionWidget.super.prototype.setSelected.call( this, state );
|
||||
|
||||
if ( this.constructor.static.selectable ) {
|
||||
this.setActive( state );
|
||||
|
|
@ -3765,7 +3765,7 @@ OO.ui.ButtonOptionWidget.prototype.setSelected = function ( state ) {
|
|||
*/
|
||||
OO.ui.ButtonSelectWidget = function OoUiButtonSelectWidget( config ) {
|
||||
// Parent constructor
|
||||
OO.ui.ButtonSelectWidget.parent.call( this, config );
|
||||
OO.ui.ButtonSelectWidget.super.call( this, config );
|
||||
|
||||
// Mixin constructors
|
||||
OO.ui.mixin.TabIndexedElement.call( this, config );
|
||||
|
|
@ -3810,7 +3810,7 @@ OO.ui.TabOptionWidget = function OoUiTabOptionWidget( config ) {
|
|||
}
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.TabOptionWidget.parent.call( this, config );
|
||||
OO.ui.TabOptionWidget.super.call( this, config );
|
||||
|
||||
// Initialization
|
||||
this.$element
|
||||
|
|
@ -3879,7 +3879,7 @@ OO.ui.TabOptionWidget.prototype.scrollElementIntoView = function ( config ) {
|
|||
*/
|
||||
OO.ui.TabSelectWidget = function OoUiTabSelectWidget( config ) {
|
||||
// Parent constructor
|
||||
OO.ui.TabSelectWidget.parent.call( this, config );
|
||||
OO.ui.TabSelectWidget.super.call( this, config );
|
||||
|
||||
// Mixin constructors
|
||||
OO.ui.mixin.TabIndexedElement.call( this, config );
|
||||
|
|
@ -3991,7 +3991,7 @@ OO.ui.ButtonMenuSelectWidget = function OoUiButtonMenuSelectWidget( config ) {
|
|||
config = config || {};
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.ButtonMenuSelectWidget.parent.call( this, config );
|
||||
OO.ui.ButtonMenuSelectWidget.super.call( this, config );
|
||||
|
||||
this.$overlay = ( config.$overlay === true ?
|
||||
OO.ui.getDefaultOverlay() : config.$overlay ) || this.$element;
|
||||
|
|
@ -4093,7 +4093,7 @@ OO.ui.TagItemWidget = function OoUiTagItemWidget( config ) {
|
|||
config = config || {};
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.TagItemWidget.parent.call( this, config );
|
||||
OO.ui.TagItemWidget.super.call( this, config );
|
||||
|
||||
// Mixin constructors
|
||||
OO.ui.mixin.ItemWidget.call( this );
|
||||
|
|
@ -4226,7 +4226,7 @@ OO.ui.TagItemWidget.prototype.setDisabled = function ( state ) {
|
|||
OO.ui.warnDeprecation( 'TagItemWidget#setDisabled: Disabling individual items is deprecated and will result in inconsistent behavior. Use #setFixed instead. See T193571.' );
|
||||
}
|
||||
// Parent method
|
||||
OO.ui.TagItemWidget.parent.prototype.setDisabled.call( this, state );
|
||||
OO.ui.TagItemWidget.super.prototype.setDisabled.call( this, state );
|
||||
if (
|
||||
!state &&
|
||||
// Verify we have a group, and that the widget is ready
|
||||
|
|
@ -4414,7 +4414,7 @@ OO.ui.TagMultiselectWidget = function OoUiTagMultiselectWidget( config ) {
|
|||
config = config || {};
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.TagMultiselectWidget.parent.call( this, config );
|
||||
OO.ui.TagMultiselectWidget.super.call( this, config );
|
||||
|
||||
// Mixin constructors
|
||||
OO.ui.mixin.GroupWidget.call( this, config );
|
||||
|
|
@ -4832,7 +4832,7 @@ OO.ui.TagMultiselectWidget.prototype.onChangeTags = function () {
|
|||
*/
|
||||
OO.ui.TagMultiselectWidget.prototype.setDisabled = function ( isDisabled ) {
|
||||
// Parent method
|
||||
OO.ui.TagMultiselectWidget.parent.prototype.setDisabled.call( this, isDisabled );
|
||||
OO.ui.TagMultiselectWidget.super.prototype.setDisabled.call( this, isDisabled );
|
||||
|
||||
if ( this.hasInput && this.input ) {
|
||||
if ( !isDisabled ) {
|
||||
|
|
@ -5297,7 +5297,7 @@ OO.ui.PopupTagMultiselectWidget = function OoUiPopupTagMultiselectWidget( config
|
|||
config = config || {};
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.PopupTagMultiselectWidget.parent.call( this, $.extend( {
|
||||
OO.ui.PopupTagMultiselectWidget.super.call( this, $.extend( {
|
||||
inputPosition: 'none'
|
||||
}, config ) );
|
||||
|
||||
|
|
@ -5406,7 +5406,7 @@ OO.ui.PopupTagMultiselectWidget.prototype.onTagSelect = function ( item ) {
|
|||
this.popupInput.focus();
|
||||
} else {
|
||||
// Parent
|
||||
OO.ui.PopupTagMultiselectWidget.parent.prototype.onTagSelect.call( this, item );
|
||||
OO.ui.PopupTagMultiselectWidget.super.prototype.onTagSelect.call( this, item );
|
||||
}
|
||||
};
|
||||
|
||||
|
|
@ -5467,7 +5467,7 @@ OO.ui.MenuTagMultiselectWidget = function OoUiMenuTagMultiselectWidget( config )
|
|||
} );
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.MenuTagMultiselectWidget.parent.call( this, config );
|
||||
OO.ui.MenuTagMultiselectWidget.super.call( this, config );
|
||||
|
||||
$autoCloseIgnore = $autoCloseIgnore.add( this.$group );
|
||||
if ( this.hasInput ) {
|
||||
|
|
@ -5540,7 +5540,7 @@ OO.ui.MenuTagMultiselectWidget.prototype.onResize = function () {
|
|||
*/
|
||||
OO.ui.MenuTagMultiselectWidget.prototype.onInputFocus = function () {
|
||||
// Parent method
|
||||
OO.ui.MenuTagMultiselectWidget.parent.prototype.onInputFocus.call( this );
|
||||
OO.ui.MenuTagMultiselectWidget.super.prototype.onInputFocus.call( this );
|
||||
|
||||
this.menu.toggle( true );
|
||||
};
|
||||
|
|
@ -5613,7 +5613,7 @@ OO.ui.MenuTagMultiselectWidget.prototype.onTagSelect = function ( tagItem ) {
|
|||
|
||||
} else {
|
||||
// Use the default
|
||||
OO.ui.MenuTagMultiselectWidget.parent.prototype.onTagSelect.call( this, tagItem );
|
||||
OO.ui.MenuTagMultiselectWidget.super.prototype.onTagSelect.call( this, tagItem );
|
||||
}
|
||||
};
|
||||
|
||||
|
|
@ -5624,7 +5624,7 @@ OO.ui.MenuTagMultiselectWidget.prototype.removeItems = function ( items ) {
|
|||
var widget = this;
|
||||
|
||||
// Parent
|
||||
OO.ui.MenuTagMultiselectWidget.parent.prototype.removeItems.call( this, items );
|
||||
OO.ui.MenuTagMultiselectWidget.super.prototype.removeItems.call( this, items );
|
||||
|
||||
items.forEach( function ( tagItem ) {
|
||||
var menuItem = widget.menu.findItemFromData( tagItem.getData() );
|
||||
|
|
@ -5679,7 +5679,7 @@ OO.ui.MenuTagMultiselectWidget.prototype.setValue = function ( valueObject ) {
|
|||
*/
|
||||
OO.ui.MenuTagMultiselectWidget.prototype.setDisabled = function ( isDisabled ) {
|
||||
// Parent method
|
||||
OO.ui.MenuTagMultiselectWidget.parent.prototype.setDisabled.call( this, isDisabled );
|
||||
OO.ui.MenuTagMultiselectWidget.super.prototype.setDisabled.call( this, isDisabled );
|
||||
|
||||
if ( this.menu ) {
|
||||
// Protect against calling setDisabled() before the menu was initialized
|
||||
|
|
@ -5850,7 +5850,7 @@ OO.ui.SelectFileWidget = function OoUiSelectFileWidget( config ) {
|
|||
}
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.SelectFileWidget.parent.call( this, config );
|
||||
OO.ui.SelectFileWidget.super.call( this, config );
|
||||
|
||||
// Mixin constructors
|
||||
OO.ui.mixin.PendingElement.call( this );
|
||||
|
|
@ -6206,7 +6206,7 @@ OO.ui.SelectFileWidget.prototype.setDisabled = function ( disabled ) {
|
|||
disabled = disabled || !this.constructor.static.isSupported();
|
||||
|
||||
// Parent method
|
||||
OO.ui.SelectFileWidget.parent.prototype.setDisabled.call( this, disabled );
|
||||
OO.ui.SelectFileWidget.super.prototype.setDisabled.call( this, disabled );
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
@ -6238,7 +6238,7 @@ OO.ui.SearchWidget = function OoUiSearchWidget( config ) {
|
|||
config = config || {};
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.SearchWidget.parent.call( this, config );
|
||||
OO.ui.SearchWidget.super.call( this, config );
|
||||
|
||||
// Properties
|
||||
this.query = config.input || new OO.ui.SearchInputWidget( {
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
/*!
|
||||
* OOUI v0.38.0
|
||||
* OOUI v0.38.1
|
||||
* https://www.mediawiki.org/wiki/OOUI
|
||||
*
|
||||
* Copyright 2011–2020 OOUI Team and other contributors.
|
||||
* Released under the MIT license
|
||||
* http://oojs.mit-license.org
|
||||
*
|
||||
* Date: 2020-04-15T01:28:08Z
|
||||
* Date: 2020-05-01T20:01:46Z
|
||||
*/
|
||||
( function ( OO ) {
|
||||
|
||||
|
|
@ -20,7 +20,7 @@
|
|||
*/
|
||||
OO.ui.WikimediaUITheme = function OoUiWikimediaUITheme() {
|
||||
// Parent constructor
|
||||
OO.ui.WikimediaUITheme.parent.call( this );
|
||||
OO.ui.WikimediaUITheme.super.call( this );
|
||||
};
|
||||
|
||||
/* Setup */
|
||||
|
|
@ -44,7 +44,7 @@ OO.ui.WikimediaUITheme.prototype.getElementClasses = function ( element ) {
|
|||
success: false
|
||||
},
|
||||
// Parent method
|
||||
classes = OO.ui.WikimediaUITheme.parent.prototype.getElementClasses.call( this, element );
|
||||
classes = OO.ui.WikimediaUITheme.super.prototype.getElementClasses.call( this, element );
|
||||
|
||||
if (
|
||||
element instanceof OO.ui.IconWidget &&
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
/*!
|
||||
* OOUI v0.38.0
|
||||
* OOUI v0.38.1
|
||||
* https://www.mediawiki.org/wiki/OOUI
|
||||
*
|
||||
* Copyright 2011–2020 OOUI Team and other contributors.
|
||||
* Released under the MIT license
|
||||
* http://oojs.mit-license.org
|
||||
*
|
||||
* Date: 2020-04-15T01:28:27Z
|
||||
* Date: 2020-05-01T20:02:07Z
|
||||
*/
|
||||
|
||||
.oo-ui-window {
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
/*!
|
||||
* OOUI v0.38.0
|
||||
* OOUI v0.38.1
|
||||
* https://www.mediawiki.org/wiki/OOUI
|
||||
*
|
||||
* Copyright 2011–2020 OOUI Team and other contributors.
|
||||
* Released under the MIT license
|
||||
* http://oojs.mit-license.org
|
||||
*
|
||||
* Date: 2020-04-15T01:28:27Z
|
||||
* Date: 2020-05-01T20:02:07Z
|
||||
*/
|
||||
|
||||
.oo-ui-window {
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
/*!
|
||||
* OOUI v0.38.0
|
||||
* OOUI v0.38.1
|
||||
* https://www.mediawiki.org/wiki/OOUI
|
||||
*
|
||||
* Copyright 2011–2020 OOUI Team and other contributors.
|
||||
* Released under the MIT license
|
||||
* http://oojs.mit-license.org
|
||||
*
|
||||
* Date: 2020-04-15T01:28:08Z
|
||||
* Date: 2020-05-01T20:01:46Z
|
||||
*/
|
||||
( function ( OO ) {
|
||||
|
||||
|
|
@ -40,7 +40,7 @@ OO.ui.ActionWidget = function OoUiActionWidget( config ) {
|
|||
config = $.extend( { framed: false }, config );
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.ActionWidget.parent.call( this, config );
|
||||
OO.ui.ActionWidget.super.call( this, config );
|
||||
|
||||
// Mixin constructors
|
||||
OO.ui.mixin.PendingElement.call( this, config );
|
||||
|
|
@ -113,7 +113,7 @@ OO.ui.ActionWidget.prototype.getModes = function () {
|
|||
* @example
|
||||
* // Example: An action set used in a process dialog
|
||||
* function MyProcessDialog( config ) {
|
||||
* MyProcessDialog.parent.call( this, config );
|
||||
* MyProcessDialog.super.call( this, config );
|
||||
* }
|
||||
* OO.inheritClass( MyProcessDialog, OO.ui.ProcessDialog );
|
||||
* MyProcessDialog.static.title = 'An action set in a process dialog';
|
||||
|
|
@ -132,7 +132,7 @@ OO.ui.ActionWidget.prototype.getModes = function () {
|
|||
* ];
|
||||
*
|
||||
* MyProcessDialog.prototype.initialize = function () {
|
||||
* MyProcessDialog.parent.prototype.initialize.apply( this, arguments );
|
||||
* MyProcessDialog.super.prototype.initialize.apply( this, arguments );
|
||||
* this.panel1 = new OO.ui.PanelLayout( { padded: true, expanded: false } );
|
||||
* this.panel1.$element.append( '<p>This dialog uses an action set (continue, help, ' +
|
||||
* 'cancel, back) configured with modes. This is edit mode. Click \'help\' to see ' +
|
||||
|
|
@ -147,7 +147,7 @@ OO.ui.ActionWidget.prototype.getModes = function () {
|
|||
* this.$body.append( this.stackLayout.$element );
|
||||
* };
|
||||
* MyProcessDialog.prototype.getSetupProcess = function ( data ) {
|
||||
* return MyProcessDialog.parent.prototype.getSetupProcess.call( this, data )
|
||||
* return MyProcessDialog.super.prototype.getSetupProcess.call( this, data )
|
||||
* .next( function () {
|
||||
* this.actions.setMode( 'edit' );
|
||||
* }, this );
|
||||
|
|
@ -165,7 +165,7 @@ OO.ui.ActionWidget.prototype.getModes = function () {
|
|||
* dialog.close();
|
||||
* } );
|
||||
* }
|
||||
* return MyProcessDialog.parent.prototype.getActionProcess.call( this, action );
|
||||
* return MyProcessDialog.super.prototype.getActionProcess.call( this, action );
|
||||
* };
|
||||
* MyProcessDialog.prototype.getBodyHeight = function () {
|
||||
* return this.panel1.$element.outerHeight( true );
|
||||
|
|
@ -1035,7 +1035,7 @@ OO.ui.WindowManager = function OoUiWindowManager( config ) {
|
|||
config = config || {};
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.WindowManager.parent.call( this, config );
|
||||
OO.ui.WindowManager.super.call( this, config );
|
||||
|
||||
// Mixin constructors
|
||||
OO.EventEmitter.call( this );
|
||||
|
|
@ -1883,7 +1883,7 @@ OO.ui.Window = function OoUiWindow( config ) {
|
|||
config = config || {};
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.Window.parent.call( this, config );
|
||||
OO.ui.Window.super.call( this, config );
|
||||
|
||||
// Mixin constructors
|
||||
OO.EventEmitter.call( this );
|
||||
|
|
@ -2539,12 +2539,12 @@ OO.ui.Window.prototype.teardown = function ( data ) {
|
|||
* @example
|
||||
* // A simple dialog window.
|
||||
* function MyDialog( config ) {
|
||||
* MyDialog.parent.call( this, config );
|
||||
* MyDialog.super.call( this, config );
|
||||
* }
|
||||
* OO.inheritClass( MyDialog, OO.ui.Dialog );
|
||||
* MyDialog.static.name = 'myDialog';
|
||||
* MyDialog.prototype.initialize = function () {
|
||||
* MyDialog.parent.prototype.initialize.call( this );
|
||||
* MyDialog.super.prototype.initialize.call( this );
|
||||
* this.content = new OO.ui.PanelLayout( { padded: true, expanded: false } );
|
||||
* this.content.$element.append( '<p>A simple dialog window. Press Escape key to ' +
|
||||
* 'close.</p>' );
|
||||
|
|
@ -2575,7 +2575,7 @@ OO.ui.Window.prototype.teardown = function ( data ) {
|
|||
*/
|
||||
OO.ui.Dialog = function OoUiDialog( config ) {
|
||||
// Parent constructor
|
||||
OO.ui.Dialog.parent.call( this, config );
|
||||
OO.ui.Dialog.super.call( this, config );
|
||||
|
||||
// Mixin constructors
|
||||
OO.ui.mixin.PendingElement.call( this );
|
||||
|
|
@ -2755,7 +2755,7 @@ OO.ui.Dialog.prototype.getSetupProcess = function ( data ) {
|
|||
data = data || {};
|
||||
|
||||
// Parent method
|
||||
return OO.ui.Dialog.parent.prototype.getSetupProcess.call( this, data )
|
||||
return OO.ui.Dialog.super.prototype.getSetupProcess.call( this, data )
|
||||
.next( function () {
|
||||
var config = this.constructor.static,
|
||||
actions = data.actions !== undefined ? data.actions : config.actions,
|
||||
|
|
@ -2773,7 +2773,7 @@ OO.ui.Dialog.prototype.getSetupProcess = function ( data ) {
|
|||
*/
|
||||
OO.ui.Dialog.prototype.getTeardownProcess = function ( data ) {
|
||||
// Parent method
|
||||
return OO.ui.Dialog.parent.prototype.getTeardownProcess.call( this, data )
|
||||
return OO.ui.Dialog.super.prototype.getTeardownProcess.call( this, data )
|
||||
.first( function () {
|
||||
this.$element.off( 'keydown', this.onDialogKeyDownHandler );
|
||||
|
||||
|
|
@ -2787,7 +2787,7 @@ OO.ui.Dialog.prototype.getTeardownProcess = function ( data ) {
|
|||
*/
|
||||
OO.ui.Dialog.prototype.initialize = function () {
|
||||
// Parent method
|
||||
OO.ui.Dialog.parent.prototype.initialize.call( this );
|
||||
OO.ui.Dialog.super.prototype.initialize.call( this );
|
||||
|
||||
// Properties
|
||||
this.title = new OO.ui.LabelWidget();
|
||||
|
|
@ -2921,7 +2921,7 @@ OO.ui.Dialog.prototype.executeAction = function ( action ) {
|
|||
*/
|
||||
OO.ui.MessageDialog = function OoUiMessageDialog( config ) {
|
||||
// Parent constructor
|
||||
OO.ui.MessageDialog.parent.call( this, config );
|
||||
OO.ui.MessageDialog.super.call( this, config );
|
||||
|
||||
// Properties
|
||||
this.verticalActionLayout = null;
|
||||
|
|
@ -3014,7 +3014,7 @@ OO.ui.MessageDialog.prototype.getActionProcess = function ( action ) {
|
|||
this.close( { action: action } );
|
||||
}, this );
|
||||
}
|
||||
return OO.ui.MessageDialog.parent.prototype.getActionProcess.call( this, action );
|
||||
return OO.ui.MessageDialog.super.prototype.getActionProcess.call( this, action );
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
@ -3031,7 +3031,7 @@ OO.ui.MessageDialog.prototype.getSetupProcess = function ( data ) {
|
|||
data = data || {};
|
||||
|
||||
// Parent method
|
||||
return OO.ui.MessageDialog.parent.prototype.getSetupProcess.call( this, data )
|
||||
return OO.ui.MessageDialog.super.prototype.getSetupProcess.call( this, data )
|
||||
.next( function () {
|
||||
this.title.setLabel(
|
||||
data.title !== undefined ? data.title : this.constructor.static.title
|
||||
|
|
@ -3050,7 +3050,7 @@ OO.ui.MessageDialog.prototype.getReadyProcess = function ( data ) {
|
|||
data = data || {};
|
||||
|
||||
// Parent method
|
||||
return OO.ui.MessageDialog.parent.prototype.getReadyProcess.call( this, data )
|
||||
return OO.ui.MessageDialog.super.prototype.getReadyProcess.call( this, data )
|
||||
.next( function () {
|
||||
// Focus the primary action button
|
||||
var actions = this.actions.get();
|
||||
|
|
@ -3088,7 +3088,7 @@ OO.ui.MessageDialog.prototype.setDimensions = function ( dim ) {
|
|||
var
|
||||
dialog = this,
|
||||
$scrollable = this.container.$element;
|
||||
OO.ui.MessageDialog.parent.prototype.setDimensions.call( this, dim );
|
||||
OO.ui.MessageDialog.super.prototype.setDimensions.call( this, dim );
|
||||
|
||||
// Twiddle the overflow property, otherwise an unnecessary scrollbar will be produced.
|
||||
// Need to do it after transition completes (250ms), add 50ms just in case.
|
||||
|
|
@ -3123,7 +3123,7 @@ OO.ui.MessageDialog.prototype.setDimensions = function ( dim ) {
|
|||
*/
|
||||
OO.ui.MessageDialog.prototype.initialize = function () {
|
||||
// Parent method
|
||||
OO.ui.MessageDialog.parent.prototype.initialize.call( this );
|
||||
OO.ui.MessageDialog.super.prototype.initialize.call( this );
|
||||
|
||||
// Properties
|
||||
this.$actions = $( '<div>' );
|
||||
|
|
@ -3162,7 +3162,7 @@ OO.ui.MessageDialog.prototype.attachActions = function () {
|
|||
var i, len, special, others;
|
||||
|
||||
// Parent method
|
||||
OO.ui.MessageDialog.parent.prototype.attachActions.call( this );
|
||||
OO.ui.MessageDialog.super.prototype.attachActions.call( this );
|
||||
|
||||
special = this.actions.getSpecial();
|
||||
others = this.actions.getOthers();
|
||||
|
|
@ -3231,7 +3231,7 @@ OO.ui.MessageDialog.prototype.fitActions = function () {
|
|||
* @example
|
||||
* // Example: Creating and opening a process dialog window.
|
||||
* function MyProcessDialog( config ) {
|
||||
* MyProcessDialog.parent.call( this, config );
|
||||
* MyProcessDialog.super.call( this, config );
|
||||
* }
|
||||
* OO.inheritClass( MyProcessDialog, OO.ui.ProcessDialog );
|
||||
*
|
||||
|
|
@ -3243,7 +3243,7 @@ OO.ui.MessageDialog.prototype.fitActions = function () {
|
|||
* ];
|
||||
*
|
||||
* MyProcessDialog.prototype.initialize = function () {
|
||||
* MyProcessDialog.parent.prototype.initialize.apply( this, arguments );
|
||||
* MyProcessDialog.super.prototype.initialize.apply( this, arguments );
|
||||
* this.content = new OO.ui.PanelLayout( { padded: true, expanded: false } );
|
||||
* this.content.$element.append( '<p>This is a process dialog window. The header ' +
|
||||
* 'contains the title and two buttons: \'Cancel\' (a safe action) on the left and ' +
|
||||
|
|
@ -3257,7 +3257,7 @@ OO.ui.MessageDialog.prototype.fitActions = function () {
|
|||
* dialog.close( { action: action } );
|
||||
* } );
|
||||
* }
|
||||
* return MyProcessDialog.parent.prototype.getActionProcess.call( this, action );
|
||||
* return MyProcessDialog.super.prototype.getActionProcess.call( this, action );
|
||||
* };
|
||||
*
|
||||
* var windowManager = new OO.ui.WindowManager();
|
||||
|
|
@ -3278,7 +3278,7 @@ OO.ui.MessageDialog.prototype.fitActions = function () {
|
|||
*/
|
||||
OO.ui.ProcessDialog = function OoUiProcessDialog( config ) {
|
||||
// Parent constructor
|
||||
OO.ui.ProcessDialog.parent.call( this, config );
|
||||
OO.ui.ProcessDialog.super.call( this, config );
|
||||
|
||||
// Properties
|
||||
this.fitOnOpen = false;
|
||||
|
|
@ -3324,7 +3324,7 @@ OO.ui.ProcessDialog.prototype.onRetryButtonClick = function () {
|
|||
*/
|
||||
OO.ui.ProcessDialog.prototype.initialize = function () {
|
||||
// Parent method
|
||||
OO.ui.ProcessDialog.parent.prototype.initialize.call( this );
|
||||
OO.ui.ProcessDialog.super.prototype.initialize.call( this );
|
||||
|
||||
// Properties
|
||||
this.$navigation = $( '<div>' );
|
||||
|
|
@ -3417,7 +3417,7 @@ OO.ui.ProcessDialog.prototype.attachActions = function () {
|
|||
var i, len, other, special, others;
|
||||
|
||||
// Parent method
|
||||
OO.ui.ProcessDialog.parent.prototype.attachActions.call( this );
|
||||
OO.ui.ProcessDialog.super.prototype.attachActions.call( this );
|
||||
|
||||
special = this.actions.getSpecial();
|
||||
others = this.actions.getOthers();
|
||||
|
|
@ -3438,7 +3438,7 @@ OO.ui.ProcessDialog.prototype.attachActions = function () {
|
|||
*/
|
||||
OO.ui.ProcessDialog.prototype.executeAction = function ( action ) {
|
||||
var dialog = this;
|
||||
return OO.ui.ProcessDialog.parent.prototype.executeAction.call( this, action )
|
||||
return OO.ui.ProcessDialog.super.prototype.executeAction.call( this, action )
|
||||
.fail( function ( errors ) {
|
||||
dialog.showErrors( errors || [] );
|
||||
} );
|
||||
|
|
@ -3451,7 +3451,7 @@ OO.ui.ProcessDialog.prototype.setDimensions = function () {
|
|||
var dialog = this;
|
||||
|
||||
// Parent method
|
||||
OO.ui.ProcessDialog.parent.prototype.setDimensions.apply( this, arguments );
|
||||
OO.ui.ProcessDialog.super.prototype.setDimensions.apply( this, arguments );
|
||||
|
||||
this.fitLabel();
|
||||
|
||||
|
|
@ -3589,7 +3589,7 @@ OO.ui.ProcessDialog.prototype.hideErrors = function () {
|
|||
*/
|
||||
OO.ui.ProcessDialog.prototype.getTeardownProcess = function ( data ) {
|
||||
// Parent method
|
||||
return OO.ui.ProcessDialog.parent.prototype.getTeardownProcess.call( this, data )
|
||||
return OO.ui.ProcessDialog.super.prototype.getTeardownProcess.call( this, data )
|
||||
.first( function () {
|
||||
// Make sure to hide errors.
|
||||
this.hideErrors();
|
||||
|
|
|
|||
|
|
@ -38,6 +38,12 @@
|
|||
"articleSearch": {
|
||||
"file": "../wikimediaui/images/icons/articleSearch.svg"
|
||||
},
|
||||
"articlesSearch": {
|
||||
"file": {
|
||||
"ltr": "../wikimediaui/images/icons/articlesSearch-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/articlesSearch-rtl.svg"
|
||||
}
|
||||
},
|
||||
"articleRedirect": {
|
||||
"file": {
|
||||
"ltr": "../wikimediaui/images/icons/articleRedirect-ltr.svg",
|
||||
|
|
|
|||
|
|
@ -61,6 +61,12 @@
|
|||
"articleSearch": {
|
||||
"file": "images/icons/articleSearch.svg"
|
||||
},
|
||||
"articlesSearch": {
|
||||
"file": {
|
||||
"ltr": "images/icons/articlesSearch-ltr.svg",
|
||||
"rtl": "images/icons/articlesSearch-rtl.svg"
|
||||
}
|
||||
},
|
||||
"articleRedirect": {
|
||||
"file": {
|
||||
"ltr": "images/icons/articleRedirect-ltr.svg",
|
||||
|
|
|
|||
|
After Width: | Height: | Size: 282 B |
|
|
@ -0,0 +1 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><title>articles</title><g fill="#fff"><path d="M5 0v2h11v14h2V2a2 2 0 00-2-2z"/><path d="M10.8 15.6a4.6 4.7 0 01-2.3.6 4.6 4.7 0 113.7-1.9l2.8 3V4.9A1.9 1.9 0 0013.1 3H4a1.9 1.9 0 00-2 1.9V18a1.9 1.9 0 001.9 2H13a1.9 1.9 0 001.4-.6z"/><circle cx="8.5" cy="11.5" r="3"/></g></svg>
|
||||
|
After Width: | Height: | Size: 416 B |
|
After Width: | Height: | Size: 352 B |
|
|
@ -0,0 +1 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><title>articles</title><g fill="#36c"><path d="M5 0v2h11v14h2V2a2 2 0 00-2-2z"/><path d="M10.8 15.6a4.6 4.7 0 01-2.3.6 4.6 4.7 0 113.7-1.9l2.8 3V4.9A1.9 1.9 0 0013.1 3H4a1.9 1.9 0 00-2 1.9V18a1.9 1.9 0 001.9 2H13a1.9 1.9 0 001.4-.6z"/><circle cx="8.5" cy="11.5" r="3"/></g></svg>
|
||||
|
After Width: | Height: | Size: 416 B |
|
After Width: | Height: | Size: 280 B |
|
|
@ -0,0 +1 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><title>articles</title><path d="M5 0v2h11v14h2V2a2 2 0 00-2-2z"/><path d="M10.8 15.6a4.6 4.7 0 01-2.3.6 4.6 4.7 0 113.7-1.9l2.8 3V4.9A1.9 1.9 0 0013.1 3H4a1.9 1.9 0 00-2 1.9V18a1.9 1.9 0 001.9 2H13a1.9 1.9 0 001.4-.6z"/><circle cx="8.5" cy="11.5" r="3"/></svg>
|
||||
|
After Width: | Height: | Size: 397 B |
|
After Width: | Height: | Size: 286 B |
|
|
@ -0,0 +1 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><title>search articles</title><g fill="#fff"><path d="M15 0v2H4v14H2V2a2 2 0 012-2z"/><path d="M13.8 15.5a4.6 4.7 0 01-2.3.6 4.6 4.7 0 113.7-1.9l2.8 3V5a1.9 1.9 0 00-1.9-2H7a1.9 1.9 0 00-2 1.9V18a1.9 1.9 0 001.9 2H16a1.9 1.9 0 001.4-.6z"/><circle cx="11.5" cy="11.5" r="3"/></g></svg>
|
||||
|
After Width: | Height: | Size: 405 B |
|
After Width: | Height: | Size: 350 B |
|
|
@ -0,0 +1 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><title>search articles</title><g fill="#36c"><path d="M15 0v2H4v14H2V2a2 2 0 012-2z"/><path d="M13.8 15.5a4.6 4.7 0 01-2.3.6 4.6 4.7 0 113.7-1.9l2.8 3V5a1.9 1.9 0 00-1.9-2H7a1.9 1.9 0 00-2 1.9V18a1.9 1.9 0 001.9 2H16a1.9 1.9 0 001.4-.6z"/><circle cx="11.5" cy="11.5" r="3"/></g></svg>
|
||||
|
After Width: | Height: | Size: 405 B |
|
After Width: | Height: | Size: 277 B |
|
|
@ -0,0 +1 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><title>search articles</title><path d="M15 0v2H4v14H2V2a2 2 0 012-2z"/><path d="M13.8 15.5a4.6 4.7 0 01-2.3.6 4.6 4.7 0 113.7-1.9l2.8 3V5a1.9 1.9 0 00-1.9-2H7a1.9 1.9 0 00-2 1.9V18a1.9 1.9 0 001.9 2H16a1.9 1.9 0 001.4-.6z"/><circle cx="11.5" cy="11.5" r="3"/></svg>
|
||||
|
After Width: | Height: | Size: 386 B |
|
Before Width: | Height: | Size: 160 B After Width: | Height: | Size: 165 B |
|
|
@ -1 +1 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><title>existing reference</title><g fill="#fff"><path d="M16 9l-2.8-2.8L10.4 9V0H7C5.9 0 5 .9 5 2v13c0 1.1.9 2 2 2h9c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2z"/><path d="M4 4H2v14c0 1.1.9 2 2 2h11v-2H4z"/></g></svg>
|
||||
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><title>existing reference</title><g fill="#fff"><path d="M13 12l-2.8-2.8L7.4 12V3H4c-1.1 0-2 .9-2 2v13c0 1.1.9 2 2 2h9c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2v9z"/><path d="M16 16h2V2c0-1.1-.9-2-2-2H5v2h11v14z"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 327 B After Width: | Height: | Size: 335 B |
|
Before Width: | Height: | Size: 181 B After Width: | Height: | Size: 181 B |
|
|
@ -1 +1 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><title>existing reference</title><g fill="#36c"><path d="M16 9l-2.8-2.8L10.4 9V0H7C5.9 0 5 .9 5 2v13c0 1.1.9 2 2 2h9c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2z"/><path d="M4 4H2v14c0 1.1.9 2 2 2h11v-2H4z"/></g></svg>
|
||||
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><title>existing reference</title><g fill="#36c"><path d="M13 12l-2.8-2.8L7.4 12V3H4c-1.1 0-2 .9-2 2v13c0 1.1.9 2 2 2h9c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2v9z"/><path d="M16 16h2V2c0-1.1-.9-2-2-2H5v2h11v14z"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 327 B After Width: | Height: | Size: 335 B |
|
Before Width: | Height: | Size: 161 B After Width: | Height: | Size: 161 B |
|
|
@ -1 +1 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><title>existing reference</title><path d="M16 9l-2.8-2.8L10.4 9V0H7C5.9 0 5 .9 5 2v13c0 1.1.9 2 2 2h9c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2z"/><path d="M4 4H2v14c0 1.1.9 2 2 2h11v-2H4z"/></svg>
|
||||
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><title>existing reference</title><path d="M13 12l-2.8-2.8L7.4 12V3H4c-1.1 0-2 .9-2 2v13c0 1.1.9 2 2 2h9c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2v9z"/><path d="M16 16h2V2c0-1.1-.9-2-2-2H5v2h11v14z"/></svg>
|
||||
|
Before Width: | Height: | Size: 308 B After Width: | Height: | Size: 316 B |
|
Before Width: | Height: | Size: 165 B After Width: | Height: | Size: 166 B |
|
|
@ -1 +1 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><title>existing reference</title><g fill="#fff"><path d="M2 15c0 1.1.9 2 2 2h9c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2v9l-2.8-2.8L7.4 9V0H4C2.4 0 2 1.6 2 2z"/><path d="M16 18H5v2h11c1.1 0 2-.9 2-2V4h-2z"/></g></svg>
|
||||
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><title>existing reference</title><g fill="#fff"><path d="M5 18c0 1.1.9 2 2 2h9c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2v9l-2.8-2.8-2.8 2.8V3H7C5.4 3 5 4.6 5 5v13z"/><path d="M4 2h11V0H4C2.9 0 2 .9 2 2v14h2V2z"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 328 B After Width: | Height: | Size: 333 B |
|
Before Width: | Height: | Size: 189 B After Width: | Height: | Size: 188 B |
|
|
@ -1 +1 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><title>existing reference</title><g fill="#36c"><path d="M2 15c0 1.1.9 2 2 2h9c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2v9l-2.8-2.8L7.4 9V0H4C2.4 0 2 1.6 2 2z"/><path d="M16 18H5v2h11c1.1 0 2-.9 2-2V4h-2z"/></g></svg>
|
||||
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><title>existing reference</title><g fill="#36c"><path d="M5 18c0 1.1.9 2 2 2h9c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2v9l-2.8-2.8-2.8 2.8V3H7C5.4 3 5 4.6 5 5v13z"/><path d="M4 2h11V0H4C2.9 0 2 .9 2 2v14h2V2z"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 328 B After Width: | Height: | Size: 333 B |
|
Before Width: | Height: | Size: 165 B After Width: | Height: | Size: 164 B |
|
|
@ -1 +1 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><title>existing reference</title><path d="M2 15c0 1.1.9 2 2 2h9c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2v9l-2.8-2.8L7.4 9V0H4C2.4 0 2 1.6 2 2z"/><path d="M16 18H5v2h11c1.1 0 2-.9 2-2V4h-2z"/></svg>
|
||||
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><title>existing reference</title><path d="M5 18c0 1.1.9 2 2 2h9c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2v9l-2.8-2.8-2.8 2.8V3H7C5.4 3 5 4.6 5 5v13z"/><path d="M4 2h11V0H4C2.9 0 2 .9 2 2v14h2V2z"/></svg>
|
||||
|
Before Width: | Height: | Size: 309 B After Width: | Height: | Size: 314 B |