From: James D. Forrester Date: Wed, 19 Mar 2014 22:51:21 +0000 (-0700) Subject: Update OOjs UI to v0.1.0-pre (53f2410336) X-Git-Tag: 1.31.0-rc.0~16565^2 X-Git-Url: http://git.cyclocoop.org/data/%24self?a=commitdiff_plain;h=d957f3ea69554c9a0fdd5eda0332c810ec7bc693;p=lhc%2Fweb%2Fwiklou.git Update OOjs UI to v0.1.0-pre (53f2410336) New changes: 16a7989 Localisation updates from https://translatewiki.net. c5339e7 Localisation updates from https://translatewiki.net. 48b5403 Fix documentation of toolFactory 6fc6d7b Use super to call parent constructor b81b5f1 demo: Add ToggleSwitchWidget (disabled, checked) a72a6e3 Use super to call parent methods 53f2410 Localisation updates from https://translatewiki.net. Change-Id: I4aeb49dc9a139936c48f1cd790da9f39dc39c1c6 --- diff --git a/resources/oojs-ui/i18n/az.json b/resources/oojs-ui/i18n/az.json index 8bfcf88624..257680bcc5 100644 --- a/resources/oojs-ui/i18n/az.json +++ b/resources/oojs-ui/i18n/az.json @@ -8,5 +8,7 @@ }, "ooui-dialog-action-close": "Bağla", "ooui-outline-control-move-down": "Bəndi aşağı apar", - "ooui-outline-control-move-up": "Bəndi yuxarı apar" + "ooui-outline-control-move-up": "Bəndi yuxarı apar", + "ooui-outline-control-remove": "Bəndi sil", + "ooui-toolbar-more": "Daha artıq" } \ No newline at end of file diff --git a/resources/oojs-ui/i18n/bs.json b/resources/oojs-ui/i18n/bs.json index 7449f07041..95ba48dc34 100644 --- a/resources/oojs-ui/i18n/bs.json +++ b/resources/oojs-ui/i18n/bs.json @@ -7,5 +7,6 @@ "ooui-dialog-action-close": "Zatvori", "ooui-outline-control-move-down": "Premjesti stavku dole", "ooui-outline-control-move-up": "Premjesti stavku gore", + "ooui-outline-control-remove": "Ukloni stavku", "ooui-toolbar-more": "Više" } \ No newline at end of file diff --git a/resources/oojs-ui/i18n/kn.json b/resources/oojs-ui/i18n/kn.json new file mode 100644 index 0000000000..4932f6d831 --- /dev/null +++ b/resources/oojs-ui/i18n/kn.json @@ -0,0 +1,10 @@ +{ + "@metadata": { + "authors": [ + "Vikassy" + ] + }, + "ooui-dialog-action-close": "ಮುಚ್ಚಿ", + "ooui-outline-control-remove": "ವಸ್ತು ತೆಗೆ", + "ooui-toolbar-more": "ಹೆಚ್ಚು" +} \ No newline at end of file diff --git a/resources/oojs-ui/i18n/pfl.json b/resources/oojs-ui/i18n/pfl.json new file mode 100644 index 0000000000..40cc15d285 --- /dev/null +++ b/resources/oojs-ui/i18n/pfl.json @@ -0,0 +1,12 @@ +{ + "@metadata": { + "authors": [ + "Manuae" + ] + }, + "ooui-dialog-action-close": "Schließe", + "ooui-outline-control-move-down": "Bweeschs nunna", + "ooui-outline-control-move-up": "Bweeschs nuff", + "ooui-outline-control-remove": "Leschs", + "ooui-toolbar-more": "Mea" +} \ No newline at end of file diff --git a/resources/oojs-ui/i18n/sco.json b/resources/oojs-ui/i18n/sco.json new file mode 100644 index 0000000000..dc3f1f57f8 --- /dev/null +++ b/resources/oojs-ui/i18n/sco.json @@ -0,0 +1,8 @@ +{ + "@metadata": { + "authors": [ + "John Reid" + ] + }, + "ooui-outline-control-remove": "Remuiv eitem" +} \ No newline at end of file diff --git a/resources/oojs-ui/oojs-ui.js b/resources/oojs-ui/oojs-ui.js index a27c53ece2..a27dcc1b15 100644 --- a/resources/oojs-ui/oojs-ui.js +++ b/resources/oojs-ui/oojs-ui.js @@ -1,12 +1,12 @@ /*! - * OOjs UI v0.1.0-pre (ac0cc69508) + * OOjs UI v0.1.0-pre (53f2410336) * https://www.mediawiki.org/wiki/OOjs_UI * * Copyright 2011–2014 OOjs Team and other contributors. * Released under the MIT license * http://oojs.mit-license.org * - * Date: Thu Mar 13 2014 17:11:12 GMT-0700 (PDT) + * Date: Wed Mar 19 2014 15:51:16 GMT-0700 (PDT) */ ( function () { @@ -684,7 +684,7 @@ OO.ui.Element.prototype.scrollElementIntoView = function ( config ) { */ OO.ui.Frame = function OoUiFrame( config ) { // Parent constructor - OO.ui.Element.call( this, config ); + OO.ui.Frame.super.call( this, config ); // Mixin constructors OO.EventEmitter.call( this ); @@ -935,7 +935,7 @@ OO.ui.Frame.prototype.setSize = function ( width, height ) { */ OO.ui.Window = function OoUiWindow( config ) { // Parent constructor - OO.ui.Element.call( this, config ); + OO.ui.Window.super.call( this, config ); // Mixin constructors OO.EventEmitter.call( this ); @@ -1311,7 +1311,7 @@ OO.ui.Window.prototype.close = function ( data ) { */ OO.ui.WindowSet = function OoUiWindowSet( factory, config ) { // Parent constructor - OO.ui.Element.call( this, config ); + OO.ui.WindowSet.super.call( this, config ); // Mixin constructors OO.EventEmitter.call( this ); @@ -1497,7 +1497,7 @@ OO.ui.Dialog = function OoUiDialog( config ) { config = $.extend( { 'size': 'large' }, config ); // Parent constructor - OO.ui.Window.call( this, config ); + OO.ui.Dialog.super.call( this, config ); // Properties this.visible = false; @@ -1627,7 +1627,7 @@ OO.ui.Dialog.prototype.setSize = function ( size ) { */ OO.ui.Dialog.prototype.initialize = function () { // Parent method - OO.ui.Window.prototype.initialize.call( this ); + OO.ui.Dialog.super.prototype.initialize.call( this ); // Properties this.closeButton = new OO.ui.ButtonWidget( { @@ -1655,7 +1655,7 @@ OO.ui.Dialog.prototype.initialize = function () { */ OO.ui.Dialog.prototype.setup = function ( data ) { // Parent method - OO.ui.Window.prototype.setup.call( this, data ); + OO.ui.Dialog.super.prototype.setup.call( this, data ); // Prevent scrolling in top-level window this.$( window ).on( 'mousewheel', this.onWindowMouseWheelHandler ); @@ -1667,7 +1667,7 @@ OO.ui.Dialog.prototype.setup = function ( data ) { */ OO.ui.Dialog.prototype.teardown = function ( data ) { // Parent method - OO.ui.Window.prototype.teardown.call( this, data ); + OO.ui.Dialog.super.prototype.teardown.call( this, data ); // Allow scrolling in top-level window this.$( window ).off( 'mousewheel', this.onWindowMouseWheelHandler ); @@ -1685,7 +1685,7 @@ OO.ui.Dialog.prototype.close = function ( data ) { // Allow transition to complete before actually closing setTimeout( function () { // Parent method - OO.ui.Window.prototype.close.call( dialog, data ); + OO.ui.Dialog.super.prototype.close.call( dialog, data ); }, 250 ); } }; @@ -1705,7 +1705,7 @@ OO.ui.Layout = function OoUiLayout( config ) { config = config || {}; // Parent constructor - OO.ui.Element.call( this, config ); + OO.ui.Layout.super.call( this, config ); // Mixin constructors OO.EventEmitter.call( this ); @@ -1736,7 +1736,7 @@ OO.ui.Widget = function OoUiWidget( config ) { config = $.extend( { 'disabled': false }, config ); // Parent constructor - OO.ui.Element.call( this, config ); + OO.ui.Widget.super.call( this, config ); // Mixin constructors OO.EventEmitter.call( this ); @@ -2687,7 +2687,7 @@ OO.ui.Tool = function OoUiTool( toolGroup, config ) { config = config || {}; // Parent constructor - OO.ui.Widget.call( this, config ); + OO.ui.Tool.super.call( this, config ); // Mixin constructors OO.ui.IconedElement.call( this, this.$( '' ), config ); @@ -2922,7 +2922,7 @@ OO.ui.Tool.prototype.destroy = function () { * @mixins OO.ui.GroupElement * * @constructor - * @param {OO.Factory} toolFactory Factory for creating tools + * @param {OO.ui.ToolFactory} toolFactory Factory for creating tools * @param {Object} [config] Configuration options * @cfg {boolean} [actions] Add an actions section opposite to the tools * @cfg {boolean} [shadow] Add a shadow below the toolbar @@ -2932,7 +2932,7 @@ OO.ui.Toolbar = function OoUiToolbar( toolFactory, config ) { config = config || {}; // Parent constructor - OO.ui.Element.call( this, config ); + OO.ui.Toolbar.super.call( this, config ); // Mixin constructors OO.EventEmitter.call( this ); @@ -2977,7 +2977,7 @@ OO.mixinClass( OO.ui.Toolbar, OO.ui.GroupElement ); /** * Get the tool factory. * - * @return {OO.Factory} Tool factory + * @return {OO.ui.ToolFactory} Tool factory */ OO.ui.Toolbar.prototype.getToolFactory = function () { return this.toolFactory; @@ -3125,7 +3125,7 @@ OO.ui.Toolbar.prototype.getToolAccelerator = function () { */ OO.ui.ToolFactory = function OoUiToolFactory() { // Parent constructor - OO.Factory.call( this ); + OO.ui.ToolFactory.super.call( this ); }; /* Inheritance */ @@ -3256,7 +3256,7 @@ OO.ui.ToolGroup = function OoUiToolGroup( toolbar, config ) { config = config || {}; // Parent constructor - OO.ui.Widget.call( this, config ); + OO.ui.ToolGroup.super.call( this, config ); // Mixin constructors OO.ui.GroupElement.call( this, this.$( '
' ), config ); @@ -3529,7 +3529,7 @@ OO.ui.FieldsetLayout = function OoUiFieldsetLayout( config ) { config = config || {}; // Parent constructor - OO.ui.Layout.call( this, config ); + OO.ui.FieldsetLayout.super.call( this, config ); // Mixin constructors OO.ui.IconedElement.call( this, this.$( '
' ), config ); @@ -3583,7 +3583,7 @@ OO.ui.FieldLayout = function OoUiFieldLayout( field, config ) { config = $.extend( { 'align': 'left' }, config ); // Parent constructor - OO.ui.Layout.call( this, config ); + OO.ui.FieldLayout.super.call( this, config ); // Mixin constructors OO.ui.LabeledElement.call( this, this.$( '