"ext-iconv": "*",
"liuggio/statsd-php-client": "1.0.18",
"mediawiki/at-ease": "1.1.0",
- "oojs/oojs-ui": "0.16.3",
+ "oojs/oojs-ui": "0.16.4",
"oyejorge/less.php": "1.7.0.10",
"php": ">=5.5.9",
"psr/log": "1.0.0",
"Assele",
"Haqmar",
"Sagan",
- "Рустам Нурыев"
+ "Рустам Нурыев",
+ "Азат Хәлилов"
]
},
- "ooui-outline-control-move-down": "Аҫҡа күсерергә",
- "ooui-outline-control-move-up": "Өҫкә күсерергә"
+ "ooui-outline-control-move-down": "Элементты аҫҡа күсерергә",
+ "ooui-outline-control-move-up": "Элементты өҫкә күсерергә",
+ "ooui-outline-control-remove": "Биттәрҙе юйырға",
+ "ooui-toolbar-more": "Тағы",
+ "ooui-toolgroup-expand": "Күберәк",
+ "ooui-toolgroup-collapse": "Аҙыраҡ",
+ "ooui-dialog-message-accept": "Тамам",
+ "ooui-dialog-message-reject": "Кире алырға",
+ "ooui-dialog-process-error": "Нимәлер килеп сыҡманы.",
+ "ooui-dialog-process-dismiss": "Йәшерергә",
+ "ooui-dialog-process-retry": "Ҡабатлап ҡарарға.",
+ "ooui-dialog-process-continue": "Дауам итергә",
+ "ooui-selectfile-button-select": "Файлды һайлағыҙ",
+ "ooui-selectfile-not-supported": "Файл һайлау хупланмай.",
+ "ooui-selectfile-placeholder": "Файл һайланмаған",
+ "ooui-selectfile-dragdrop-placeholder": "Файлды бында күсерегеҙ"
}
"Siddhartha Ghai",
"Goelujjwal",
"Ankita-ks",
- "Param Mudgal"
+ "Param Mudgal",
+ "Sfic"
]
},
"ooui-outline-control-move-down": "प्रविष्टि नीचे ले जाएँ",
"ooui-dialog-process-dismiss": "ख़ारिज करें",
"ooui-dialog-process-retry": "पुनः प्रयास करें",
"ooui-dialog-process-continue": "जारी रखें",
+ "ooui-selectfile-button-select": "फ़ाइल चुनें",
"ooui-selectfile-not-supported": "फ़ाइल का चयन समर्थित नहीं है",
- "ooui-selectfile-placeholder": "कोई फाइल चुनी नही गई हेै"
+ "ooui-selectfile-placeholder": "कोई फाइल चुनी नही गई हेै",
+ "ooui-selectfile-dragdrop-placeholder": "फ़ाइल यहाँ डालें"
}
/*!
- * OOjs UI v0.16.3
+ * OOjs UI v0.16.4
* https://www.mediawiki.org/wiki/OOjs_UI
*
* Copyright 2011–2016 OOjs UI Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
- * Date: 2016-03-16T19:20:22Z
+ * Date: 2016-03-22T22:48:21Z
*/
( function ( OO ) {
/*!
- * OOjs UI v0.16.3
+ * OOjs UI v0.16.4
* https://www.mediawiki.org/wiki/OOjs_UI
*
* Copyright 2011–2016 OOjs UI Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
- * Date: 2016-03-16T19:20:26Z
+ * Date: 2016-03-22T22:48:25Z
*/
.oo-ui-element-hidden {
display: none !important;
/*!
- * OOjs UI v0.16.3
+ * OOjs UI v0.16.4
* https://www.mediawiki.org/wiki/OOjs_UI
*
* Copyright 2011–2016 OOjs UI Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
- * Date: 2016-03-16T19:20:26Z
+ * Date: 2016-03-22T22:48:25Z
*/
.oo-ui-element-hidden {
display: none !important;
/*!
- * OOjs UI v0.16.3
+ * OOjs UI v0.16.4
* https://www.mediawiki.org/wiki/OOjs_UI
*
* Copyright 2011–2016 OOjs UI Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
- * Date: 2016-03-16T19:20:22Z
+ * Date: 2016-03-22T22:48:21Z
*/
( function ( OO ) {
*/
OO.ui.mixin.LabelElement.prototype.setLabel = function ( label ) {
label = typeof label === 'function' ? OO.ui.resolveMsg( label ) : label;
- label = ( ( typeof label === 'string' && label.length ) || label instanceof jQuery || label instanceof OO.ui.HtmlSnippet ) ? label : null;
-
- this.$element.toggleClass( 'oo-ui-labelElement', !!label );
+ label = ( ( typeof label === 'string' || label instanceof jQuery ) && label.length ) || ( label instanceof OO.ui.HtmlSnippet && label.toString().length ) ? label : null;
if ( this.label !== label ) {
if ( this.$label ) {
this.emit( 'labelChange' );
}
+ this.$element.toggleClass( 'oo-ui-labelElement', !!this.label );
+
return this;
};
/*!
- * OOjs UI v0.16.3
+ * OOjs UI v0.16.4
* https://www.mediawiki.org/wiki/OOjs_UI
*
* Copyright 2011–2016 OOjs UI Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
- * Date: 2016-03-16T19:20:22Z
+ * Date: 2016-03-22T22:48:21Z
*/
( function ( OO ) {
/*!
- * OOjs UI v0.16.3
+ * OOjs UI v0.16.4
* https://www.mediawiki.org/wiki/OOjs_UI
*
* Copyright 2011–2016 OOjs UI Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
- * Date: 2016-03-16T19:20:26Z
+ * Date: 2016-03-22T22:48:25Z
*/
.oo-ui-popupTool .oo-ui-popupWidget-popup,
.oo-ui-popupTool .oo-ui-popupWidget-anchor {
/*!
- * OOjs UI v0.16.3
+ * OOjs UI v0.16.4
* https://www.mediawiki.org/wiki/OOjs_UI
*
* Copyright 2011–2016 OOjs UI Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
- * Date: 2016-03-16T19:20:26Z
+ * Date: 2016-03-22T22:48:25Z
*/
.oo-ui-popupTool .oo-ui-popupWidget-popup,
.oo-ui-popupTool .oo-ui-popupWidget-anchor {
/*!
- * OOjs UI v0.16.3
+ * OOjs UI v0.16.4
* https://www.mediawiki.org/wiki/OOjs_UI
*
* Copyright 2011–2016 OOjs UI Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
- * Date: 2016-03-16T19:20:22Z
+ * Date: 2016-03-22T22:48:21Z
*/
( function ( OO ) {
/*!
- * OOjs UI v0.16.3
+ * OOjs UI v0.16.4
* https://www.mediawiki.org/wiki/OOjs_UI
*
* Copyright 2011–2016 OOjs UI Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
- * Date: 2016-03-16T19:20:26Z
+ * Date: 2016-03-22T22:48:25Z
*/
.oo-ui-draggableElement-handle,
.oo-ui-draggableElement-handle.oo-ui-widget {
border-bottom-left-radius: 0;
border-left-width: 0;
}
-.oo-ui-numberInputWidget .oo-ui-textInputWidget input {
+.oo-ui-numberInputWidget-buttoned .oo-ui-textInputWidget input {
border-radius: 0;
}
/*!
- * OOjs UI v0.16.3
+ * OOjs UI v0.16.4
* https://www.mediawiki.org/wiki/OOjs_UI
*
* Copyright 2011–2016 OOjs UI Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
- * Date: 2016-03-16T19:20:26Z
+ * Date: 2016-03-22T22:48:25Z
*/
.oo-ui-draggableElement-handle,
.oo-ui-draggableElement-handle.oo-ui-widget {
border-bottom-left-radius: 0;
border-left-width: 0;
}
-.oo-ui-numberInputWidget .oo-ui-textInputWidget input {
+.oo-ui-numberInputWidget-buttoned .oo-ui-textInputWidget input {
border-radius: 0;
}
/*!
- * OOjs UI v0.16.3
+ * OOjs UI v0.16.4
* https://www.mediawiki.org/wiki/OOjs_UI
*
* Copyright 2011–2016 OOjs UI Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
- * Date: 2016-03-16T19:20:22Z
+ * Date: 2016-03-22T22:48:21Z
*/
( function ( OO ) {
* @cfg {number} [max=Infinity] Maximum allowed value
* @cfg {number} [step=1] Delta when using the buttons or up/down arrow keys
* @cfg {number|null} [pageStep] Delta when using the page-up/page-down keys. Defaults to 10 times #step.
+ * @cfg {boolean} [showButtons=true] Whether to show the plus and minus buttons.
*/
OO.ui.NumberInputWidget = function OoUiNumberInputWidget( config ) {
// Configuration initialization
min: -Infinity,
max: Infinity,
step: 1,
- pageStep: null
+ pageStep: null,
+ showButtons: true
}, config );
// Parent constructor
},
config.input
) );
- this.minusButton = new OO.ui.ButtonWidget( $.extend(
- {
- disabled: this.isDisabled(),
- tabIndex: -1
- },
- config.minusButton,
- {
- classes: [ 'oo-ui-numberInputWidget-minusButton' ],
- label: '−'
- }
- ) );
- this.plusButton = new OO.ui.ButtonWidget( $.extend(
- {
- disabled: this.isDisabled(),
- tabIndex: -1
- },
- config.plusButton,
- {
- classes: [ 'oo-ui-numberInputWidget-plusButton' ],
- label: '+'
- }
- ) );
+ if ( config.showButtons ) {
+ this.minusButton = new OO.ui.ButtonWidget( $.extend(
+ {
+ disabled: this.isDisabled(),
+ tabIndex: -1
+ },
+ config.minusButton,
+ {
+ classes: [ 'oo-ui-numberInputWidget-minusButton' ],
+ label: '−'
+ }
+ ) );
+ this.plusButton = new OO.ui.ButtonWidget( $.extend(
+ {
+ disabled: this.isDisabled(),
+ tabIndex: -1
+ },
+ config.plusButton,
+ {
+ classes: [ 'oo-ui-numberInputWidget-plusButton' ],
+ label: '+'
+ }
+ ) );
+ }
// Events
this.input.connect( this, {
keydown: this.onKeyDown.bind( this ),
'wheel mousewheel DOMMouseScroll': this.onWheel.bind( this )
} );
- this.plusButton.connect( this, {
- click: [ 'onButtonClick', +1 ]
- } );
- this.minusButton.connect( this, {
- click: [ 'onButtonClick', -1 ]
- } );
+ if ( config.showButtons ) {
+ this.plusButton.connect( this, {
+ click: [ 'onButtonClick', +1 ]
+ } );
+ this.minusButton.connect( this, {
+ click: [ 'onButtonClick', -1 ]
+ } );
+ }
// Initialization
this.setIsInteger( !!config.isInteger );
this.setStep( config.step, config.pageStep );
this.$field = $( '<div>' ).addClass( 'oo-ui-numberInputWidget-field' )
- .append(
- this.minusButton.$element,
- this.input.$element,
- this.plusButton.$element
- );
+ .append( this.input.$element );
this.$element.addClass( 'oo-ui-numberInputWidget' ).append( this.$field );
+ if ( config.showButtons ) {
+ this.$field
+ .prepend( this.minusButton.$element )
+ .append( this.plusButton.$element );
+ this.$element.addClass( 'oo-ui-numberInputWidget-buttoned' );
+ }
this.input.setValidation( this.validateNumber.bind( this ) );
};
/*!
- * OOjs UI v0.16.3
+ * OOjs UI v0.16.4
* https://www.mediawiki.org/wiki/OOjs_UI
*
* Copyright 2011–2016 OOjs UI Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
- * Date: 2016-03-16T19:20:26Z
+ * Date: 2016-03-22T22:48:25Z
*/
.oo-ui-actionWidget.oo-ui-pendingElement-pending {
background-image: /* @embed */ url(themes/apex/images/textures/pending.gif);
/*!
- * OOjs UI v0.16.3
+ * OOjs UI v0.16.4
* https://www.mediawiki.org/wiki/OOjs_UI
*
* Copyright 2011–2016 OOjs UI Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
- * Date: 2016-03-16T19:20:26Z
+ * Date: 2016-03-22T22:48:25Z
*/
.oo-ui-window {
background: transparent;
/*!
- * OOjs UI v0.16.3
+ * OOjs UI v0.16.4
* https://www.mediawiki.org/wiki/OOjs_UI
*
* Copyright 2011–2016 OOjs UI Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
- * Date: 2016-03-16T19:20:22Z
+ * Date: 2016-03-22T22:48:21Z
*/
( function ( OO ) {