Update OOjs UI to v0.1.0
authorJames D. Forrester <jforrester@wikimedia.org>
Tue, 25 Mar 2014 00:35:46 +0000 (17:35 -0700)
committerJames D. Forrester <jforrester@wikimedia.org>
Tue, 25 Mar 2014 00:35:46 +0000 (17:35 -0700)
New changes:
4f4fc2c Localisation updates from https://translatewiki.net.
ea88cce Localisation updates from https://translatewiki.net.
37af34f Add the ability to clear the SearchWidget
1cd4b32 Make PopupWidget clippable.
81f2edc Localisation updates from https://translatewiki.net.
fa6e8e5 Make popup toolgroup labels a little closer to their icons

Change-Id: I63fb1f9edb24a86cc882b204075540427ac4d11b

resources/oojs-ui/i18n/frr.json
resources/oojs-ui/i18n/gu.json
resources/oojs-ui/i18n/pl.json
resources/oojs-ui/i18n/sco.json
resources/oojs-ui/oojs-ui.js
resources/oojs-ui/oojs-ui.svg.css

index ee95b8a..adf8ce8 100644 (file)
@@ -8,5 +8,6 @@
     "ooui-dialog-action-close": "Slütj",
     "ooui-outline-control-move-down": "Element efter onern sküüw",
     "ooui-outline-control-move-up": "Element efter boowen sküüw",
+    "ooui-outline-control-remove": "Element wechnem",
     "ooui-toolbar-more": "Muar"
 }
\ No newline at end of file
index 65ec22b..ccabf8d 100644 (file)
@@ -9,5 +9,6 @@
     "ooui-dialog-action-close": "બંધ કરો",
     "ooui-outline-control-move-down": "વસ્તુ નીચે ખસેડો",
     "ooui-outline-control-move-up": "વસ્તુ ઉપર ખસેડો",
+    "ooui-outline-control-remove": "વસ્તુ હટાવો",
     "ooui-toolbar-more": "વધુ"
 }
\ No newline at end of file
index 8798603..33ff886 100644 (file)
@@ -19,6 +19,6 @@
     "ooui-dialog-action-close": "Zamknij",
     "ooui-outline-control-move-down": "Przenieś niżej",
     "ooui-outline-control-move-up": "Przenieś wyżej",
-    "ooui-outline-control-remove": "Usuń przedmiot",
+    "ooui-outline-control-remove": "Usuń element",
     "ooui-toolbar-more": "Więcej"
 }
\ No newline at end of file
index dc3f1f5..f8dc77c 100644 (file)
@@ -4,5 +4,9 @@
             "John Reid"
         ]
     },
-    "ooui-outline-control-remove": "Remuiv eitem"
+    "ooui-dialog-action-close": "Claise",
+    "ooui-outline-control-move-down": "Muiv eetem doon",
+    "ooui-outline-control-move-up": "Muiv eetem up",
+    "ooui-outline-control-remove": "Remuiv eitem",
+    "ooui-toolbar-more": "Mair"
 }
\ No newline at end of file
index 8f3d980..19bcdfe 100644 (file)
@@ -1,12 +1,12 @@
 /*!
- * OOjs UI v0.1.0-pre (3b434d5388)
+ * OOjs UI v0.1.0
  * 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: Fri Mar 21 2014 11:06:28 GMT-0700 (PDT)
+ * Date: Mon Mar 24 2014 17:35:46 GMT-0700 (PDT)
  */
 ( function () {
 
@@ -7044,12 +7044,13 @@ OO.ui.PopupWidget = function OoUiPopupWidget( config ) {
 
        // Mixin constructors
        OO.ui.LabeledElement.call( this, this.$( '<div>' ), config );
+       OO.ui.ClippableElement.call( this, this.$( '<div>' ), config );
 
        // Properties
        this.visible = false;
        this.$popup = this.$( '<div>' );
        this.$head = this.$( '<div>' );
-       this.$body = this.$( '<div>' );
+       this.$body = this.$clippable;
        this.$tail = this.$( '<div>' );
        this.$container = config.$container || this.$( 'body' );
        this.autoClose = !!config.autoClose;
@@ -7087,6 +7088,8 @@ OO.inheritClass( OO.ui.PopupWidget, OO.ui.Widget );
 
 OO.mixinClass( OO.ui.PopupWidget, OO.ui.LabeledElement );
 
+OO.mixinClass( OO.ui.PopupWidget, OO.ui.ClippableElement );
+
 /* Events */
 
 /**
@@ -7192,6 +7195,7 @@ OO.ui.PopupWidget.prototype.hasTail = function () {
  */
 OO.ui.PopupWidget.prototype.show = function () {
        if ( !this.visible ) {
+               this.setClipping( true );
                this.$element.show();
                this.visible = true;
                this.emit( 'show' );
@@ -7211,6 +7215,7 @@ OO.ui.PopupWidget.prototype.show = function () {
  */
 OO.ui.PopupWidget.prototype.hide = function () {
        if ( this.visible ) {
+               this.setClipping( false );
                this.$element.hide();
                this.visible = false;
                this.emit( 'hide' );
@@ -7476,6 +7481,13 @@ OO.ui.SearchWidget.prototype.getQuery = function () {
        return this.query;
 };
 
+/**
+ * Reset the widget to initial value.
+ */
+OO.ui.SearchWidget.prototype.clear = function () {
+       this.query.setValue( '' );
+};
+
 /**
  * Get the results list.
  *
index dbce03d..b546253 100644 (file)
@@ -1,12 +1,12 @@
 /*!
- * OOjs UI v0.1.0-pre (3b434d5388)
+ * OOjs UI v0.1.0
  * 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: Fri Mar 21 2014 11:06:28 GMT-0700 (PDT)
+ * Date: Mon Mar 24 2014 17:35:46 GMT-0700 (PDT)
  */
 
 /* Textures */
 }
 
 .oo-ui-popupToolGroup.oo-ui-iconedElement .oo-ui-popupToolGroup-handle .oo-ui-labeledElement-label {
-  margin-left: 3.25em;
+  margin-left: 3em;
 }
 
 .oo-ui-popupToolGroup.oo-ui-indicatedElement .oo-ui-popupToolGroup-handle .oo-ui-labeledElement-label {
   display: inline-block;
   width: 2em;
   height: 2em;
-  margin-right: 0.5em;
+  margin-right: 0.25em;
   vertical-align: middle;
 }
 
   cursor: default;
 }
 
+.oo-ui-popupWidget-body {
+  clear: both;
+}
+
 .oo-ui-buttonGroupWidget {
   border-radius: 0.3em;
 }