Update OOUI to v0.30.3
Release notes: https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.30.3 Bug: T215559 Bug: T216070 Bug: T216075 Bug: T216578 Bug: T216582 Depends-On: Ic5a4598bbb222fa4b98c2706fe909aa9eb297f4b Change-Id: Ic5a4598bbb222fa4b98c2706fe909aa9eb297f4a
This commit is contained in:
parent
1005e91c8c
commit
ac1cee5e25
27 changed files with 174 additions and 111 deletions
|
|
@ -66,7 +66,7 @@ production.
|
|||
* Added jakub-onderka/php-console-highlighter 0.3.2 explicitly (dev-only).
|
||||
|
||||
==== Changed external libraries ====
|
||||
* Updated OOUI from v0.29.2 to v0.30.2.
|
||||
* Updated OOUI from v0.29.2 to v0.30.3.
|
||||
* Updated OOjs Router from pre-release to v0.2.0.
|
||||
* Updated wikimedia/xmp-reader from 0.6.0 to 0.6.2.
|
||||
* Updated wikimedia/scoped-callback from 2.0.0 to 3.0.0.
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@
|
|||
"ext-xml": "*",
|
||||
"guzzlehttp/guzzle": "6.3.3",
|
||||
"liuggio/statsd-php-client": "1.0.18",
|
||||
"oojs/oojs-ui": "0.30.2",
|
||||
"oojs/oojs-ui": "0.30.3",
|
||||
"pear/mail": "1.4.1",
|
||||
"pear/mail_mime": "1.10.2",
|
||||
"pear/net_smtp": "1.8.1",
|
||||
|
|
|
|||
|
|
@ -122,8 +122,8 @@ oojs-router:
|
|||
|
||||
ooui:
|
||||
type: tar
|
||||
src: https://registry.npmjs.org/oojs-ui/-/oojs-ui-0.30.2.tgz
|
||||
integrity: sha384-f/tDddk/tGQa/8sNSVM16fDUfhXbaLvtlklWRJc2NLzdj0od7Uvmcqco62GV6kbO
|
||||
src: https://registry.npmjs.org/oojs-ui/-/oojs-ui-0.30.3.tgz
|
||||
integrity: sha384-lKv5WHjcSDfly2Vd2u9JJErkfo+1yFi/+pfFL0bmOu3hKpcZQmaLvu6gmhkzH5WN
|
||||
dest:
|
||||
# Main stuff
|
||||
package/dist/oojs-ui-core.js{,.map.json}:
|
||||
|
|
|
|||
|
|
@ -1,4 +1,30 @@
|
|||
# OOUI Release History
|
||||
## v0.30.3 / 2019-02-20
|
||||
### Styles
|
||||
* WikimediaUI theme: Align TagItemWidget's close icon correctly (Volker E.)
|
||||
* WikimediaUI theme: Provide single-line TextInputWidgets with a distinct height (Volker E.)
|
||||
* WikimediaUI theme: Unify `padding-top` and `padding-bottom` values (Volker E.)
|
||||
* WikimediaUI theme: Use consistent base size for TagMultiselectWidget's input (Volker E.)
|
||||
* WikimediaUI theme: Use distinct `height` for NumberInputWidget's widgets (Volker E.)
|
||||
|
||||
### Code
|
||||
* Deprecation warnings for this.$ (Bartosz Dziewoński)
|
||||
* ComboBoxInputWidget: Disable controls when widget is set to read-only (Ed Sanders)
|
||||
* MenuSelectWidget: Documentation fix (Ed Sanders)
|
||||
* ProgressBarWidget: Fix irregularities in indeterminate styling (Bartosz Dziewoński)
|
||||
* TagMultiselectWidget: Populate input with item label on backspace (Thalia Chan)
|
||||
* Update getScrollLeft from upstream (Ed Sanders)
|
||||
* themes: Replace element by class attribute selector (Volker E.)
|
||||
* WikimediaUI theme: Remove variables with duplicated values (Volker E.)
|
||||
* build: Enforce selector prefixes in tutorials by stylelint (Ed Sanders)
|
||||
* build: Update eslint-config-wikimedia from 0.10.0 to 0.10.1 (James D. Forrester)
|
||||
* build: Updating mediawiki/mediawiki-codesniffer to 24.0.0 (libraryupgrader)
|
||||
* demos: Address oversized ButtonWidget (icon-only) in IE & Edge (Volker E.)
|
||||
* demos: Render demo header cleaner from top (Volker E.)
|
||||
* demos: Use `demo-root` class in PHP demos as well (Volker E.)
|
||||
* docs: Fix URI in description (Volker E.)
|
||||
|
||||
|
||||
## v0.30.2 / 2019-01-22
|
||||
### Features
|
||||
* Allow dropdown menu items to be disabled (Sam Wilson)
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
"ooui-toolbar-more": "অধিক",
|
||||
"ooui-toolgroup-expand": "অধিক",
|
||||
"ooui-toolgroup-collapse": "কম দেখাওক",
|
||||
"ooui-item-remove": "আঁতৰাওক",
|
||||
"ooui-dialog-message-accept": "বাৰু",
|
||||
"ooui-dialog-message-reject": "বাতিল কৰক",
|
||||
"ooui-dialog-process-error": "কিবা ত্ৰুটি হৈছে",
|
||||
|
|
@ -21,5 +22,6 @@
|
|||
"ooui-selectfile-button-select": "ফাইল নিৰ্বাচন কৰক",
|
||||
"ooui-selectfile-not-supported": "নথি নিৰ্বাচন সমৰ্থন কৰা নাই",
|
||||
"ooui-selectfile-placeholder": "কোনো নথি নিৰ্বাচিত কৰা হোৱা নাই",
|
||||
"ooui-selectfile-dragdrop-placeholder": "ইয়াত ফাইল এৰক"
|
||||
"ooui-selectfile-dragdrop-placeholder": "ইয়াত ফাইল এৰক",
|
||||
"ooui-field-help": "সহায়"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,8 @@
|
|||
"Marmase",
|
||||
"Mirzali",
|
||||
"Se4598",
|
||||
"Kumkumuk"
|
||||
"Kumkumuk",
|
||||
"Orbot707"
|
||||
]
|
||||
},
|
||||
"ooui-outline-control-move-down": "Bendi bere cêr",
|
||||
|
|
@ -16,12 +17,14 @@
|
|||
"ooui-toolbar-more": "Zewbi",
|
||||
"ooui-toolgroup-expand": "Dehana",
|
||||
"ooui-toolgroup-collapse": "Deha tayn",
|
||||
"ooui-item-remove": "Wedare",
|
||||
"ooui-dialog-message-accept": "TEMAM",
|
||||
"ooui-dialog-message-reject": "Bıtexelne",
|
||||
"ooui-dialog-process-error": "Tayê çi ğelet şi...",
|
||||
"ooui-dialog-process-dismiss": "Racın",
|
||||
"ooui-dialog-process-retry": "Fına bıcerbın",
|
||||
"ooui-dialog-process-continue": "Dewam ke",
|
||||
"ooui-combobox-button-label": "Seba qutiya abiyaye menu",
|
||||
"ooui-selectfile-button-select": "Yu dosya weçinê",
|
||||
"ooui-selectfile-not-supported": "Dosya weçinayış desteg nêvine na",
|
||||
"ooui-selectfile-placeholder": "Dosya nêwçineya",
|
||||
|
|
|
|||
|
|
@ -9,7 +9,8 @@
|
|||
"Ankita-ks",
|
||||
"Param Mudgal",
|
||||
"Sfic",
|
||||
"Rishi.Singh"
|
||||
"Rishi.Singh",
|
||||
"Prong$31"
|
||||
]
|
||||
},
|
||||
"ooui-outline-control-move-down": "प्रविष्टि नीचे ले जाएँ",
|
||||
|
|
@ -28,5 +29,6 @@
|
|||
"ooui-selectfile-button-select": "फ़ाइल चुनें",
|
||||
"ooui-selectfile-not-supported": "फ़ाइल का चयन समर्थित नहीं है",
|
||||
"ooui-selectfile-placeholder": "कोई फाइल चुनी नही गई हेै",
|
||||
"ooui-selectfile-dragdrop-placeholder": "फ़ाइल यहाँ डालें"
|
||||
"ooui-selectfile-dragdrop-placeholder": "फ़ाइल यहाँ डालें",
|
||||
"ooui-field-help": "सहायता"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@
|
|||
"ooui-dialog-process-dismiss": "Tutup",
|
||||
"ooui-dialog-process-retry": "Coba lagi",
|
||||
"ooui-dialog-process-continue": "Lanjutkan",
|
||||
"ooui-combobox-button-label": "Daftar turun bawah untuk kotak kombo",
|
||||
"ooui-selectfile-button-select": "Pilih berkas",
|
||||
"ooui-selectfile-not-supported": "Peilihan berkas tidak didukung",
|
||||
"ooui-selectfile-placeholder": "Tidak ada berkas yang terpilih",
|
||||
|
|
|
|||
|
|
@ -8,26 +8,27 @@
|
|||
"Gertakapllani",
|
||||
"Techlik",
|
||||
"Liridon",
|
||||
"Arianit"
|
||||
"Arianit",
|
||||
"Besnik b"
|
||||
]
|
||||
},
|
||||
"ooui-outline-control-move-down": "Zhvendose artikullin më poshtë",
|
||||
"ooui-outline-control-move-up": "Zhvendose artikullin më lart",
|
||||
"ooui-outline-control-remove": "Hiq artikullin",
|
||||
"ooui-toolbar-more": "Më tepër...",
|
||||
"ooui-toolgroup-expand": "Më tepër...",
|
||||
"ooui-outline-control-move-down": "Zbrite objektin poshtë",
|
||||
"ooui-outline-control-move-up": "Ngjite objektin sipër",
|
||||
"ooui-outline-control-remove": "Hiqe objektin",
|
||||
"ooui-toolbar-more": "Më tepër",
|
||||
"ooui-toolgroup-expand": "Më tepër",
|
||||
"ooui-toolgroup-collapse": "Më pak",
|
||||
"ooui-item-remove": "Hiqe",
|
||||
"ooui-dialog-message-accept": "Në rregull",
|
||||
"ooui-dialog-message-reject": "Anullo",
|
||||
"ooui-dialog-process-error": "Diçka shkoi keq",
|
||||
"ooui-dialog-process-dismiss": "Largoje",
|
||||
"ooui-dialog-process-retry": "Provo përsëri",
|
||||
"ooui-dialog-message-accept": "OK",
|
||||
"ooui-dialog-message-reject": "Anuloje",
|
||||
"ooui-dialog-process-error": "Diç shkoi ters",
|
||||
"ooui-dialog-process-dismiss": "Mos e merr parasysh",
|
||||
"ooui-dialog-process-retry": "Riprovoni",
|
||||
"ooui-dialog-process-continue": "Vazhdo",
|
||||
"ooui-combobox-button-label": "Menyja rënse për combobox",
|
||||
"ooui-selectfile-button-select": "Përzgjidhni një skedë",
|
||||
"ooui-selectfile-not-supported": "Skedari i përzgjedhur nuk përkrahet",
|
||||
"ooui-selectfile-placeholder": "Nuk është zgjedhur asnjë skedar",
|
||||
"ooui-selectfile-dragdrop-placeholder": "Vendose skedën këtu",
|
||||
"ooui-combobox-button-label": "Menu hapmbyll për combobox-in",
|
||||
"ooui-selectfile-button-select": "Përzgjidhni një kartelë",
|
||||
"ooui-selectfile-not-supported": "Nuk mbulohet përzgjedhje kartelash",
|
||||
"ooui-selectfile-placeholder": "S’është përzgjedhur kartelë",
|
||||
"ooui-selectfile-dragdrop-placeholder": "Hidheni kartelën këtu",
|
||||
"ooui-field-help": "Ndihmë"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
/*!
|
||||
* OOUI v0.30.2
|
||||
* OOUI v0.30.3
|
||||
* https://www.mediawiki.org/wiki/OOUI
|
||||
*
|
||||
* Copyright 2011–2019 OOUI Team and other contributors.
|
||||
* Released under the MIT license
|
||||
* http://oojs.mit-license.org
|
||||
*
|
||||
* Date: 2019-01-23T01:14:20Z
|
||||
* Date: 2019-02-21T10:57:07Z
|
||||
*/
|
||||
( function ( OO ) {
|
||||
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
/*!
|
||||
* OOUI v0.30.2
|
||||
* OOUI v0.30.3
|
||||
* https://www.mediawiki.org/wiki/OOUI
|
||||
*
|
||||
* Copyright 2011–2019 OOUI Team and other contributors.
|
||||
* Released under the MIT license
|
||||
* http://oojs.mit-license.org
|
||||
*
|
||||
* Date: 2019-01-23T01:14:27Z
|
||||
* Date: 2019-02-21T10:57:15Z
|
||||
*/
|
||||
.oo-ui-element-hidden {
|
||||
display: none !important;
|
||||
|
|
@ -451,7 +451,7 @@
|
|||
margin-top: 0.25em;
|
||||
margin-left: 0.25em;
|
||||
}
|
||||
.oo-ui-fieldLayout-messages > li {
|
||||
.oo-ui-fieldLayout-messages > [class|='oo-ui-fieldLayout-messages'] {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
|
@ -1564,7 +1564,7 @@ body:not( :-moz-handler-blocked ) .oo-ui-fieldsetLayout {
|
|||
}
|
||||
.oo-ui-progressBarWidget-indeterminate .oo-ui-progressBarWidget-bar {
|
||||
width: 40%;
|
||||
border-left: 1px solid #a6cee1;
|
||||
border-left: 1px solid #ccc;
|
||||
-webkit-animation: oo-ui-progressBarWidget-slide 2s infinite linear;
|
||||
-moz-animation: oo-ui-progressBarWidget-slide 2s infinite linear;
|
||||
animation: oo-ui-progressBarWidget-slide 2s infinite linear;
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
/*!
|
||||
* OOUI v0.30.2
|
||||
* OOUI v0.30.3
|
||||
* https://www.mediawiki.org/wiki/OOUI
|
||||
*
|
||||
* Copyright 2011–2019 OOUI Team and other contributors.
|
||||
* Released under the MIT license
|
||||
* http://oojs.mit-license.org
|
||||
*
|
||||
* Date: 2019-01-23T01:14:27Z
|
||||
* Date: 2019-02-21T10:57:15Z
|
||||
*/
|
||||
.oo-ui-element-hidden {
|
||||
display: none !important;
|
||||
|
|
@ -65,7 +65,7 @@
|
|||
}
|
||||
.oo-ui-buttonElement.oo-ui-labelElement > input.oo-ui-buttonElement-button,
|
||||
.oo-ui-buttonElement.oo-ui-labelElement > .oo-ui-buttonElement-button > .oo-ui-labelElement-label {
|
||||
line-height: 1.07142857em;
|
||||
line-height: 1;
|
||||
}
|
||||
.oo-ui-buttonElement.oo-ui-labelElement.oo-ui-indicatorElement > .oo-ui-buttonElement-button {
|
||||
padding-right: 2.28571429em;
|
||||
|
|
@ -134,7 +134,7 @@
|
|||
border-color: transparent;
|
||||
border-style: solid;
|
||||
border-width: 1px;
|
||||
padding: 0.57142857em 0.14285714em 0.5em;
|
||||
padding: 0.57142857em 0.14285714em;
|
||||
}
|
||||
.oo-ui-buttonElement-frameless.oo-ui-labelElement.oo-ui-iconElement > .oo-ui-buttonElement-button {
|
||||
padding-left: 2.14285714em;
|
||||
|
|
@ -259,7 +259,7 @@
|
|||
}
|
||||
.oo-ui-buttonElement-framed.oo-ui-labelElement > .oo-ui-buttonElement-button {
|
||||
padding-top: 0.57142857em;
|
||||
padding-bottom: 0.5em;
|
||||
padding-bottom: 0.57142857em;
|
||||
}
|
||||
.oo-ui-buttonElement-framed.oo-ui-widget-disabled > .oo-ui-buttonElement-button {
|
||||
background-color: #c8ccd1;
|
||||
|
|
@ -586,7 +586,7 @@
|
|||
margin: 0;
|
||||
padding: 0.28571429em 0.85714286em;
|
||||
}
|
||||
.oo-ui-fieldLayout-messages > li {
|
||||
.oo-ui-fieldLayout-messages > [class|='oo-ui-fieldLayout-messages'] {
|
||||
display: table;
|
||||
margin: 0.28571429em 0 0;
|
||||
padding: 0;
|
||||
|
|
@ -794,7 +794,7 @@ body:not( :-moz-handler-blocked ) .oo-ui-fieldsetLayout {
|
|||
}
|
||||
|
||||
.oo-ui-decoratedOptionWidget {
|
||||
padding: 0.57142857em 0.85714286em 0.57142857em;
|
||||
padding: 0.57142857em 0.85714286em;
|
||||
line-height: 1;
|
||||
}
|
||||
.oo-ui-decoratedOptionWidget.oo-ui-iconElement {
|
||||
|
|
@ -1130,7 +1130,7 @@ body:not( :-moz-handler-blocked ) .oo-ui-fieldsetLayout {
|
|||
}
|
||||
.oo-ui-popupWidget-head > .oo-ui-labelElement-label {
|
||||
margin: 0.64285714em 2.64285714em 0.57142857em 0.85714286em;
|
||||
line-height: 1.07142857em;
|
||||
line-height: 1;
|
||||
}
|
||||
.oo-ui-popupWidget-head > .oo-ui-buttonWidget {
|
||||
right: 0;
|
||||
|
|
@ -1295,7 +1295,7 @@ body:not( :-moz-handler-blocked ) .oo-ui-fieldsetLayout {
|
|||
box-sizing: border-box;
|
||||
border: 1px solid #a2a9b1;
|
||||
border-radius: 2px;
|
||||
padding: 0.57142857em 0.85714286em 0.5em;
|
||||
padding: 0.57142857em 0.85714286em;
|
||||
font-size: inherit;
|
||||
font-family: inherit;
|
||||
vertical-align: middle;
|
||||
|
|
@ -1521,10 +1521,11 @@ body:not( :-moz-handler-blocked ) .oo-ui-fieldsetLayout {
|
|||
color: #000;
|
||||
border: 1px solid #a2a9b1;
|
||||
border-radius: 2px;
|
||||
padding: 0.57142857em 0.57142857em 0.5em;
|
||||
padding: 0.57142857em 0.57142857em;
|
||||
}
|
||||
.oo-ui-textInputWidget input {
|
||||
line-height: 1.07142857em;
|
||||
height: 2.28571429em;
|
||||
line-height: 1;
|
||||
}
|
||||
.oo-ui-textInputWidget textarea {
|
||||
line-height: 1.286;
|
||||
|
|
@ -1633,8 +1634,8 @@ body:not( :-moz-handler-blocked ) .oo-ui-fieldsetLayout {
|
|||
.oo-ui-textInputWidget > .oo-ui-labelElement-label {
|
||||
color: #72777d;
|
||||
margin-top: 1px;
|
||||
padding: 0.57142857em 0.85714286em 0.5em 0.57142857em;
|
||||
line-height: 1.07142857em;
|
||||
padding: 0.57142857em 0.85714286em 0.57142857em 0.57142857em;
|
||||
line-height: 1;
|
||||
}
|
||||
.oo-ui-textInputWidget.oo-ui-indicatorElement input,
|
||||
.oo-ui-textInputWidget.oo-ui-indicatorElement textarea {
|
||||
|
|
@ -1758,7 +1759,7 @@ body:not( :-moz-handler-blocked ) .oo-ui-fieldsetLayout {
|
|||
min-height: 2.28571429em;
|
||||
border: 1px solid #a2a9b1;
|
||||
border-radius: 2px;
|
||||
padding: 0.57142857em 0.85714286em 0.5em;
|
||||
padding: 0.57142857em 0.85714286em;
|
||||
line-height: 1;
|
||||
}
|
||||
.oo-ui-dropdownWidget-handle .oo-ui-iconElement-icon {
|
||||
|
|
@ -1768,7 +1769,7 @@ body:not( :-moz-handler-blocked ) .oo-ui-fieldsetLayout {
|
|||
right: 0.78571429em;
|
||||
}
|
||||
.oo-ui-dropdownWidget-handle .oo-ui-labelElement-label {
|
||||
line-height: 1.07142857em;
|
||||
line-height: 1;
|
||||
}
|
||||
.oo-ui-dropdownWidget.oo-ui-iconElement .oo-ui-dropdownWidget-handle {
|
||||
padding-left: 2.64285714em;
|
||||
|
|
@ -1981,7 +1982,6 @@ body:not( :-moz-handler-blocked ) .oo-ui-fieldsetLayout {
|
|||
-moz-transform: translate(-25%);
|
||||
-ms-transform: translate(-25%);
|
||||
transform: translate(-25%);
|
||||
border-left-width: 1px;
|
||||
}
|
||||
.oo-ui-progressBarWidget.oo-ui-widget-enabled .oo-ui-progressBarWidget-bar {
|
||||
background-color: #36c;
|
||||
|
|
@ -2047,6 +2047,10 @@ body:not( :-moz-handler-blocked ) .oo-ui-fieldsetLayout {
|
|||
table-layout: fixed;
|
||||
width: 100%;
|
||||
}
|
||||
.oo-ui-numberInputWidget-buttoned .oo-ui-buttonWidget,
|
||||
.oo-ui-numberInputWidget-buttoned .oo-ui-inputWidget-input {
|
||||
height: 2.28571429em;
|
||||
}
|
||||
.oo-ui-numberInputWidget-buttoned .oo-ui-buttonWidget {
|
||||
width: 2.64285714em;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
/*!
|
||||
* OOUI v0.30.2
|
||||
* OOUI v0.30.3
|
||||
* https://www.mediawiki.org/wiki/OOUI
|
||||
*
|
||||
* Copyright 2011–2019 OOUI Team and other contributors.
|
||||
* Released under the MIT license
|
||||
* http://oojs.mit-license.org
|
||||
*
|
||||
* Date: 2019-01-23T01:14:20Z
|
||||
* Date: 2019-02-21T10:57:07Z
|
||||
*/
|
||||
( function ( OO ) {
|
||||
|
||||
|
|
@ -624,7 +624,10 @@ OO.ui.Element = function OoUiElement( config ) {
|
|||
config = config || {};
|
||||
|
||||
// Properties
|
||||
this.$ = $;
|
||||
this.$ = function () {
|
||||
OO.ui.warnDeprecation( 'this.$ is deprecated, use global $ instead' );
|
||||
return $.apply( this, arguments );
|
||||
};
|
||||
this.elementId = null;
|
||||
this.visible = true;
|
||||
this.data = config.data;
|
||||
|
|
@ -1150,8 +1153,8 @@ OO.ui.Element.static.getScrollLeft = ( function () {
|
|||
function test() {
|
||||
var $definer = $( '<div>' ).attr( {
|
||||
dir: 'rtl',
|
||||
style: 'font-size: 14px; width: 1px; height: 1px; position: absolute; top: -1000px; overflow: scroll;'
|
||||
} ).text( 'A' ),
|
||||
style: 'font-size: 14px; width: 4px; height: 1px; position: absolute; top: -1000px; overflow: scroll;'
|
||||
} ).text( 'ABCD' ),
|
||||
definer = $definer[ 0 ];
|
||||
|
||||
$definer.appendTo( 'body' );
|
||||
|
|
@ -2102,7 +2105,7 @@ OO.ui.mixin.TabIndexedElement.prototype.isLabelableNode = function ( $node ) {
|
|||
*/
|
||||
OO.ui.mixin.TabIndexedElement.prototype.focus = function () {
|
||||
if ( !this.isDisabled() ) {
|
||||
this.$tabIndexed.focus();
|
||||
this.$tabIndexed.trigger( 'focus' );
|
||||
}
|
||||
return this;
|
||||
};
|
||||
|
|
@ -2114,7 +2117,7 @@ OO.ui.mixin.TabIndexedElement.prototype.focus = function () {
|
|||
* @return {OO.ui.Element} The element, for chaining
|
||||
*/
|
||||
OO.ui.mixin.TabIndexedElement.prototype.blur = function () {
|
||||
this.$tabIndexed.blur();
|
||||
this.$tabIndexed.trigger( 'blur' );
|
||||
return this;
|
||||
};
|
||||
|
||||
|
|
@ -6566,7 +6569,7 @@ OO.ui.SelectWidget.prototype.onFocus = function ( event ) {
|
|||
}
|
||||
|
||||
if ( event.target !== this.$element[ 0 ] ) {
|
||||
this.$focusOwner.focus();
|
||||
this.$focusOwner.trigger( 'focus' );
|
||||
}
|
||||
};
|
||||
|
||||
|
|
@ -7555,7 +7558,8 @@ OO.ui.MenuSectionOptionWidget.static.highlightable = false;
|
|||
* @cfg {boolean} [hideOnChoose=true] Hide the menu when the user chooses an option.
|
||||
* @cfg {boolean} [filterFromInput=false] Filter the displayed options from the input
|
||||
* @cfg {boolean} [highlightOnFilter] Highlight the first result when filtering
|
||||
* @cfg {number} [width] Width of the menu
|
||||
* @param {number|string} [width] Width of the menu as a number of pixels or CSS string with unit suffix,
|
||||
* used by {@link OO.ui.mixin.ClippableElement ClippableElement}
|
||||
*/
|
||||
OO.ui.MenuSelectWidget = function OoUiMenuSelectWidget( config ) {
|
||||
// Configuration initialization
|
||||
|
|
@ -8328,7 +8332,7 @@ OO.mixinClass( OO.ui.RadioSelectWidget, OO.ui.mixin.TabIndexedElement );
|
|||
* with OO.ui.SelectWidget to create a selection of mutually exclusive options. For more information
|
||||
* and examples, please see the [OOUI documentation on MediaWiki][1].
|
||||
*
|
||||
* [1]: https://www.mediawiki.org/wiki/OOUI/Widgets/Selects_and_Multioptions
|
||||
* [1]: https://www.mediawiki.org/wiki/OOUI/Widgets/Selects_and_Options
|
||||
*
|
||||
* @class
|
||||
* @extends OO.ui.Widget
|
||||
|
|
@ -9481,7 +9485,7 @@ OO.ui.CheckboxInputWidget.prototype.isSelected = function () {
|
|||
*/
|
||||
OO.ui.CheckboxInputWidget.prototype.simulateLabelClick = function () {
|
||||
if ( !this.isDisabled() ) {
|
||||
this.$input.click();
|
||||
this.$handle.trigger( 'click' );
|
||||
}
|
||||
this.focus();
|
||||
};
|
||||
|
|
@ -9900,7 +9904,7 @@ OO.ui.RadioInputWidget.prototype.isSelected = function () {
|
|||
*/
|
||||
OO.ui.RadioInputWidget.prototype.simulateLabelClick = function () {
|
||||
if ( !this.isDisabled() ) {
|
||||
this.$input.click();
|
||||
this.$input.trigger( 'click' );
|
||||
}
|
||||
this.focus();
|
||||
};
|
||||
|
|
@ -11606,19 +11610,40 @@ OO.ui.ComboBoxInputWidget.prototype.onMenuToggle = function ( isVisible ) {
|
|||
};
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
* Update the disabled state of the controls
|
||||
*
|
||||
* @chainable
|
||||
* @protected
|
||||
* @return {OO.ui.ComboBoxInputWidget} The widget, for chaining
|
||||
*/
|
||||
OO.ui.ComboBoxInputWidget.prototype.setDisabled = function ( disabled ) {
|
||||
// Parent method
|
||||
OO.ui.ComboBoxInputWidget.parent.prototype.setDisabled.call( this, disabled );
|
||||
|
||||
OO.ui.ComboBoxInputWidget.prototype.updateControlsDisabled = function () {
|
||||
var disabled = this.isDisabled() || this.isReadOnly();
|
||||
if ( this.dropdownButton ) {
|
||||
this.dropdownButton.setDisabled( this.isDisabled() );
|
||||
this.dropdownButton.setDisabled( disabled );
|
||||
}
|
||||
if ( this.menu ) {
|
||||
this.menu.setDisabled( this.isDisabled() );
|
||||
this.menu.setDisabled( disabled );
|
||||
}
|
||||
return this;
|
||||
};
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
OO.ui.ComboBoxInputWidget.prototype.setDisabled = function () {
|
||||
// Parent method
|
||||
OO.ui.ComboBoxInputWidget.parent.prototype.setDisabled.apply( this, arguments );
|
||||
this.updateControlsDisabled();
|
||||
return this;
|
||||
};
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
OO.ui.ComboBoxInputWidget.prototype.setReadOnly = function () {
|
||||
// Parent method
|
||||
OO.ui.ComboBoxInputWidget.parent.prototype.setReadOnly.apply( this, arguments );
|
||||
this.updateControlsDisabled();
|
||||
return this;
|
||||
};
|
||||
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -1,12 +1,12 @@
|
|||
/*!
|
||||
* OOUI v0.30.2
|
||||
* OOUI v0.30.3
|
||||
* https://www.mediawiki.org/wiki/OOUI
|
||||
*
|
||||
* Copyright 2011–2019 OOUI Team and other contributors.
|
||||
* Released under the MIT license
|
||||
* http://oojs.mit-license.org
|
||||
*
|
||||
* Date: 2019-01-23T01:14:27Z
|
||||
* Date: 2019-02-21T10:57:15Z
|
||||
*/
|
||||
.oo-ui-tool > .oo-ui-tool-link > .oo-ui-tool-checkIcon {
|
||||
display: none;
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
/*!
|
||||
* OOUI v0.30.2
|
||||
* OOUI v0.30.3
|
||||
* https://www.mediawiki.org/wiki/OOUI
|
||||
*
|
||||
* Copyright 2011–2019 OOUI Team and other contributors.
|
||||
* Released under the MIT license
|
||||
* http://oojs.mit-license.org
|
||||
*
|
||||
* Date: 2019-01-23T01:14:27Z
|
||||
* Date: 2019-02-21T10:57:15Z
|
||||
*/
|
||||
.oo-ui-tool {
|
||||
-webkit-box-sizing: border-box;
|
||||
|
|
@ -38,7 +38,7 @@
|
|||
left: 0.71428571em;
|
||||
}
|
||||
.oo-ui-tool .oo-ui-tool-title {
|
||||
line-height: 1.07142857em;
|
||||
line-height: 1;
|
||||
}
|
||||
.oo-ui-tool.oo-ui-widget-enabled {
|
||||
-webkit-transition: background-color 100ms;
|
||||
|
|
@ -232,7 +232,7 @@
|
|||
padding: 1em 0.85714286em 0.92857143em;
|
||||
}
|
||||
.oo-ui-popupToolGroup.oo-ui-labelElement .oo-ui-popupToolGroup-handle .oo-ui-labelElement-label {
|
||||
line-height: 1.07142857em;
|
||||
line-height: 1;
|
||||
}
|
||||
.oo-ui-toolbar-narrow .oo-ui-popupToolGroup.oo-ui-labelElement .oo-ui-popupToolGroup-handle {
|
||||
padding-left: 0.71428571em;
|
||||
|
|
@ -287,7 +287,7 @@
|
|||
}
|
||||
.oo-ui-popupToolGroup-tools .oo-ui-tool-link .oo-ui-tool-accel {
|
||||
color: #72777d;
|
||||
line-height: 1.07142857em;
|
||||
line-height: 1;
|
||||
}
|
||||
.oo-ui-popupToolGroup-tools .oo-ui-tool-link .oo-ui-tool-accel:not( :empty ) {
|
||||
padding-left: 1.28571429em;
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
/*!
|
||||
* OOUI v0.30.2
|
||||
* OOUI v0.30.3
|
||||
* https://www.mediawiki.org/wiki/OOUI
|
||||
*
|
||||
* Copyright 2011–2019 OOUI Team and other contributors.
|
||||
* Released under the MIT license
|
||||
* http://oojs.mit-license.org
|
||||
*
|
||||
* Date: 2019-01-23T01:14:20Z
|
||||
* Date: 2019-02-21T10:57:07Z
|
||||
*/
|
||||
( function ( OO ) {
|
||||
|
||||
|
|
@ -2032,7 +2032,7 @@ OO.ui.PopupToolGroup.prototype.onMouseKeyDown = function ( e ) {
|
|||
$focused = $( document.activeElement );
|
||||
$firstFocusable = OO.ui.findFocusable( this.$group );
|
||||
if ( $focused[ 0 ] === $firstFocusable[ 0 ] && e.shiftKey ) {
|
||||
this.$handle.focus();
|
||||
this.$handle.trigger( 'focus' );
|
||||
return false;
|
||||
}
|
||||
$lastFocusable = OO.ui.findFocusable( this.$group, true );
|
||||
|
|
@ -2040,7 +2040,7 @@ OO.ui.PopupToolGroup.prototype.onMouseKeyDown = function ( e ) {
|
|||
// Focus this group's handle and let the browser's tab handling happen (no 'return false').
|
||||
// This way we don't have to fiddle with other ToolGroups' business, or worry what to do
|
||||
// if the next group is not a PopupToolGroup or doesn't exist at all.
|
||||
this.$handle.focus();
|
||||
this.$handle.trigger( 'focus' );
|
||||
// Close the popup so that we don't move back inside it (if this is the last group).
|
||||
this.setActive( false );
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -1,12 +1,12 @@
|
|||
/*!
|
||||
* OOUI v0.30.2
|
||||
* OOUI v0.30.3
|
||||
* https://www.mediawiki.org/wiki/OOUI
|
||||
*
|
||||
* Copyright 2011–2019 OOUI Team and other contributors.
|
||||
* Released under the MIT license
|
||||
* http://oojs.mit-license.org
|
||||
*
|
||||
* Date: 2019-01-23T01:14:27Z
|
||||
* Date: 2019-02-21T10:57:15Z
|
||||
*/
|
||||
.oo-ui-draggableElement-handle:not( .oo-ui-draggableElement-undraggable ).oo-ui-widget {
|
||||
cursor: move;
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
/*!
|
||||
* OOUI v0.30.2
|
||||
* OOUI v0.30.3
|
||||
* https://www.mediawiki.org/wiki/OOUI
|
||||
*
|
||||
* Copyright 2011–2019 OOUI Team and other contributors.
|
||||
* Released under the MIT license
|
||||
* http://oojs.mit-license.org
|
||||
*
|
||||
* Date: 2019-01-23T01:14:27Z
|
||||
* Date: 2019-02-21T10:57:15Z
|
||||
*/
|
||||
.oo-ui-draggableElement-handle:not( .oo-ui-draggableElement-undraggable ).oo-ui-widget {
|
||||
cursor: move;
|
||||
|
|
@ -578,11 +578,11 @@
|
|||
right: 2.85714286em;
|
||||
padding-top: 0.57142857em;
|
||||
padding-left: 0.57142857em;
|
||||
padding-bottom: 0.5em;
|
||||
padding-bottom: 0.57142857em;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.oo-ui-selectFileWidget.oo-ui-labelElement .oo-ui-selectFileWidget-label {
|
||||
line-height: 1.07142857em;
|
||||
line-height: 1;
|
||||
}
|
||||
.oo-ui-selectFileWidget-fileName {
|
||||
display: block;
|
||||
|
|
@ -816,8 +816,8 @@
|
|||
}
|
||||
.oo-ui-tabOptionWidget .oo-ui-labelElement-label {
|
||||
border-bottom: 2px solid transparent;
|
||||
padding: 0.57142857em 0.35714286em 0.35714286em;
|
||||
line-height: 1.07142857em;
|
||||
padding: 0.57142857em 0.35714286em 0.42857143em;
|
||||
line-height: 1;
|
||||
-webkit-transition: border-color 100ms;
|
||||
-moz-transition: border-color 100ms;
|
||||
transition: border-color 100ms;
|
||||
|
|
@ -895,11 +895,15 @@
|
|||
.oo-ui-tagMultiselectWidget-handle > .oo-ui-tagMultiselectWidget-content > input {
|
||||
background-color: transparent;
|
||||
color: #000;
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
height: 2.14285714em;
|
||||
border: 0;
|
||||
padding: 0.57142857em 0 0.5em 0.57142857em;
|
||||
padding: 0.57142857em 0 0.57142857em 0.57142857em;
|
||||
font-family: inherit;
|
||||
font-size: inherit;
|
||||
line-height: 1.07142857em;
|
||||
line-height: 1;
|
||||
vertical-align: top;
|
||||
}
|
||||
.oo-ui-tagMultiselectWidget-handle > .oo-ui-tagMultiselectWidget-content > input::-webkit-input-placeholder {
|
||||
|
|
@ -1082,7 +1086,7 @@
|
|||
background-color: #c8ccd1;
|
||||
}
|
||||
.oo-ui-tagItemWidget.oo-ui-widget-enabled .oo-ui-buttonElement-button .oo-ui-icon-close {
|
||||
left: 0.28571429em;
|
||||
left: 0.21428571em;
|
||||
min-width: 14px;
|
||||
width: 1em;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
/*!
|
||||
* OOUI v0.30.2
|
||||
* OOUI v0.30.3
|
||||
* https://www.mediawiki.org/wiki/OOUI
|
||||
*
|
||||
* Copyright 2011–2019 OOUI Team and other contributors.
|
||||
* Released under the MIT license
|
||||
* http://oojs.mit-license.org
|
||||
*
|
||||
* Date: 2019-01-23T01:14:20Z
|
||||
* Date: 2019-02-21T10:57:07Z
|
||||
*/
|
||||
( function ( OO ) {
|
||||
|
||||
|
|
@ -2359,7 +2359,6 @@ OO.ui.BookletLayout.prototype.setPage = function ( name ) {
|
|||
) {
|
||||
$focused = previousPage.$element.find( ':focus' );
|
||||
if ( $focused.length ) {
|
||||
// eslint-disable-next-line jquery/no-event-shorthand
|
||||
$focused[ 0 ].blur();
|
||||
}
|
||||
}
|
||||
|
|
@ -2372,7 +2371,6 @@ OO.ui.BookletLayout.prototype.setPage = function ( name ) {
|
|||
// blurred when it was hidden, but browsers are not very consistent about this.
|
||||
$focused = previousPage.$element.find( ':focus' );
|
||||
if ( $focused.length ) {
|
||||
// eslint-disable-next-line jquery/no-event-shorthand
|
||||
$focused[ 0 ].blur();
|
||||
}
|
||||
}
|
||||
|
|
@ -2828,7 +2826,6 @@ OO.ui.IndexLayout.prototype.setTabPanel = function ( name ) {
|
|||
) {
|
||||
$focused = previousTabPanel.$element.find( ':focus' );
|
||||
if ( $focused.length ) {
|
||||
// eslint-disable-next-line jquery/no-event-shorthand
|
||||
$focused[ 0 ].blur();
|
||||
}
|
||||
}
|
||||
|
|
@ -2841,7 +2838,6 @@ OO.ui.IndexLayout.prototype.setTabPanel = function ( name ) {
|
|||
// blurred when it was hidden, but browsers are not very consistent about this.
|
||||
$focused = previousTabPanel.$element.find( ':focus' );
|
||||
if ( $focused.length ) {
|
||||
// eslint-disable-next-line jquery/no-event-shorthand
|
||||
$focused[ 0 ].blur();
|
||||
}
|
||||
}
|
||||
|
|
@ -4387,7 +4383,7 @@ OO.ui.TagMultiselectWidget.prototype.doInputBackspace = function ( e, withMetaKe
|
|||
// If Ctrl/Cmd was pressed, delete item entirely.
|
||||
// Otherwise put it into the text field for editing.
|
||||
if ( !withMetaKey ) {
|
||||
this.input.setValue( item.getData() );
|
||||
this.input.setValue( item.getLabel() );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -5798,7 +5794,7 @@ OO.ui.SelectFileWidget.prototype.onKeyPress = function ( e ) {
|
|||
if ( this.isSupported && !this.isDisabled() && this.$input &&
|
||||
( e.which === OO.ui.Keys.SPACE || e.which === OO.ui.Keys.ENTER )
|
||||
) {
|
||||
this.$input.click();
|
||||
this.$input.trigger( 'click' );
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
|
@ -5812,7 +5808,7 @@ OO.ui.SelectFileWidget.prototype.onKeyPress = function ( e ) {
|
|||
*/
|
||||
OO.ui.SelectFileWidget.prototype.onDropTargetClick = function () {
|
||||
if ( this.isSupported && !this.isDisabled() && this.$input ) {
|
||||
this.$input.click();
|
||||
this.$input.trigger( 'click' );
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -1,12 +1,12 @@
|
|||
/*!
|
||||
* OOUI v0.30.2
|
||||
* OOUI v0.30.3
|
||||
* https://www.mediawiki.org/wiki/OOUI
|
||||
*
|
||||
* Copyright 2011–2019 OOUI Team and other contributors.
|
||||
* Released under the MIT license
|
||||
* http://oojs.mit-license.org
|
||||
*
|
||||
* Date: 2019-01-23T01:14:20Z
|
||||
* Date: 2019-02-21T10:57:07Z
|
||||
*/
|
||||
( function ( OO ) {
|
||||
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
/*!
|
||||
* OOUI v0.30.2
|
||||
* OOUI v0.30.3
|
||||
* https://www.mediawiki.org/wiki/OOUI
|
||||
*
|
||||
* Copyright 2011–2019 OOUI Team and other contributors.
|
||||
* Released under the MIT license
|
||||
* http://oojs.mit-license.org
|
||||
*
|
||||
* Date: 2019-01-23T01:14:27Z
|
||||
* Date: 2019-02-21T10:57:15Z
|
||||
*/
|
||||
.oo-ui-actionWidget.oo-ui-pendingElement-pending {
|
||||
background-image: /* @embed */ url(themes/wikimediaui/images/textures/pending.gif);
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
/*!
|
||||
* OOUI v0.30.2
|
||||
* OOUI v0.30.3
|
||||
* https://www.mediawiki.org/wiki/OOUI
|
||||
*
|
||||
* Copyright 2011–2019 OOUI Team and other contributors.
|
||||
* Released under the MIT license
|
||||
* http://oojs.mit-license.org
|
||||
*
|
||||
* Date: 2019-01-23T01:14:27Z
|
||||
* Date: 2019-02-21T10:57:15Z
|
||||
*/
|
||||
|
||||
.oo-ui-window {
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
/*!
|
||||
* OOUI v0.30.2
|
||||
* OOUI v0.30.3
|
||||
* https://www.mediawiki.org/wiki/OOUI
|
||||
*
|
||||
* Copyright 2011–2019 OOUI Team and other contributors.
|
||||
* Released under the MIT license
|
||||
* http://oojs.mit-license.org
|
||||
*
|
||||
* Date: 2019-01-23T01:14:20Z
|
||||
* Date: 2019-02-21T10:57:07Z
|
||||
*/
|
||||
( function ( OO ) {
|
||||
|
||||
|
|
@ -2312,7 +2312,7 @@ OO.ui.Window.prototype.onFocusTrapFocused = function ( event ) {
|
|||
// properly trapped. It's not a *meaningful* focus, since it's just
|
||||
// the content-div for the Window, but it's better than letting focus
|
||||
// escape into the page.
|
||||
this.$content.focus();
|
||||
this.$content.trigger( 'focus' );
|
||||
}
|
||||
};
|
||||
|
||||
|
|
@ -2395,7 +2395,7 @@ OO.ui.Window.prototype.setup = function ( data ) {
|
|||
OO.ui.Window.prototype.ready = function ( data ) {
|
||||
var win = this;
|
||||
|
||||
this.$content.focus();
|
||||
this.$content.trigger( 'focus' );
|
||||
return this.getReadyProcess( data ).execute().then( function () {
|
||||
// Force redraw by asking the browser to measure the elements' widths
|
||||
win.$element.addClass( 'oo-ui-window-ready' ).width();
|
||||
|
|
@ -2421,7 +2421,6 @@ OO.ui.Window.prototype.hold = function ( data ) {
|
|||
|
||||
// Blur the focused element
|
||||
if ( $focus.length ) {
|
||||
// eslint-disable-next-line jquery/no-event-shorthand
|
||||
$focus[ 0 ].blur();
|
||||
}
|
||||
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue