Update OOjs UI to v0.12.4
authorJames D. Forrester <jforrester@wikimedia.org>
Thu, 13 Aug 2015 21:06:45 +0000 (14:06 -0700)
committerJames D. Forrester <jforrester@wikimedia.org>
Thu, 13 Aug 2015 21:06:45 +0000 (14:06 -0700)
Release notes:
 https://git.wikimedia.org/blob/oojs%2Fui.git/v0.12.4/History.md

Change-Id: I3d5a027e06a6d81289988a5199e56a7b1b25d35c

composer.json
resources/lib/oojs-ui/i18n/km.json
resources/lib/oojs-ui/oojs-ui-apex-noimages.css
resources/lib/oojs-ui/oojs-ui-apex.js
resources/lib/oojs-ui/oojs-ui-mediawiki-noimages.css
resources/lib/oojs-ui/oojs-ui-mediawiki.js
resources/lib/oojs-ui/oojs-ui.js

index fb3d91b..005ae7f 100644 (file)
@@ -21,7 +21,7 @@
                "leafo/lessphp": "0.5.0",
                "liuggio/statsd-php-client": "1.0.16",
                "mediawiki/at-ease": "1.0.0",
-               "oojs/oojs-ui": "0.12.3",
+               "oojs/oojs-ui": "0.12.4",
                "php": ">=5.3.3",
                "psr/log": "1.0.0",
                "wikimedia/cdb": "1.0.1",
index c0d72c4..0a8bfac 100644 (file)
@@ -1,11 +1,20 @@
 {
        "@metadata": {
                "authors": [
-                       "Sovichet"
+                       "Sovichet",
+                       "គីមស៊្រុន"
                ]
        },
-       "ooui-outline-control-move-down": "រុញ​ទៅ​ក្រោម",
-       "ooui-outline-control-move-up": "រុញ​ទៅ​លើ",
-       "ooui-outline-control-remove": "ដក​វត្ថុ​ចេញ",
-       "ooui-toolbar-more": "បន្ថែម"
+       "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": "បន្ត"
 }
index 4c95ebe..6340e18 100644 (file)
@@ -1,12 +1,12 @@
 /*!
- * OOjs UI v0.12.3
+ * OOjs UI v0.12.4
  * https://www.mediawiki.org/wiki/OOjs_UI
  *
  * Copyright 2011–2015 OOjs UI Team and other contributors.
  * Released under the MIT license
  * http://oojs.mit-license.org
  *
- * Date: 2015-08-11T22:34:09Z
+ * Date: 2015-08-13T21:01:12Z
  */
 @-webkit-keyframes oo-ui-progressBarWidget-slide {
        from {
 .oo-ui-capsuleMultiSelectWidget-handle {
        background: #ffffff;
        cursor: text;
-       min-height: 2.35em;
+       min-height: 2.4em;
        margin-right: 0.5em;
        padding: 0.25em 0;
        border: 1px solid rgba(0, 0, 0, 0.1);
           -moz-box-sizing: border-box;
                box-sizing: border-box;
        vertical-align: middle;
-       padding: 0.2em;
+       padding: 0 0.4em;
        margin: 0 0.1em;
-       height: 1.675em;
+       height: 1.7em;
+       line-height: 1.7em;
        background: #eeeeee;
        filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#ffffff', endColorstr='#dddddd');
        background-image: -webkit-gradient(linear, right top, right bottom, color-stop(0%, #ffffff), color-stop(100%, #dddddd));
        background-image:         linear-gradient(to bottom, #ffffff 0%, #dddddd 100%);
        border: 1px solid #cccccc;
        color: #555555;
-       border-radius: 0.5em;
+       border-radius: 0.25em;
 }
 .oo-ui-capsuleItemWidget > .oo-ui-iconElement-icon {
        cursor: pointer;
 }
 .oo-ui-capsuleItemWidget.oo-ui-indicatorElement > .oo-ui-indicatorElement-indicator {
        position: absolute;
-       right: 0.2em;
+       right: 0.4em;
        top: 0;
        width: 0.9375em;
        height: 100%;
        background-repeat: no-repeat;
 }
+.oo-ui-capsuleItemWidget.oo-ui-indicatorElement > .oo-ui-indicator-clear {
+       cursor: pointer;
+}
 .oo-ui-capsuleItemWidget.oo-ui-widget-disabled {
        opacity: 0.5;
        -webkit-transform: translate3d(0, 0, 0);
index f8be2bb..8c93afe 100644 (file)
@@ -1,12 +1,12 @@
 /*!
- * OOjs UI v0.12.3
+ * OOjs UI v0.12.4
  * https://www.mediawiki.org/wiki/OOjs_UI
  *
  * Copyright 2011–2015 OOjs UI Team and other contributors.
  * Released under the MIT license
  * http://oojs.mit-license.org
  *
- * Date: 2015-08-11T22:34:00Z
+ * Date: 2015-08-13T21:01:04Z
  */
 /**
  * @class
index da5f890..b6f8de8 100644 (file)
@@ -1,12 +1,12 @@
 /*!
- * OOjs UI v0.12.3
+ * OOjs UI v0.12.4
  * https://www.mediawiki.org/wiki/OOjs_UI
  *
  * Copyright 2011–2015 OOjs UI Team and other contributors.
  * Released under the MIT license
  * http://oojs.mit-license.org
  *
- * Date: 2015-08-11T22:34:09Z
+ * Date: 2015-08-13T21:01:12Z
  */
 @-webkit-keyframes oo-ui-progressBarWidget-slide {
        from {
 .oo-ui-capsuleMultiSelectWidget-handle {
        background: #ffffff;
        cursor: text;
-       min-height: 2.35em;
+       min-height: 2.4em;
        margin-right: 0.5em;
        padding: 0.25em 0;
        border: 1px solid #cccccc;
           -moz-box-sizing: border-box;
                box-sizing: border-box;
        vertical-align: middle;
-       padding: 0.2em;
+       padding: 0 0.4em;
        margin: 0 0.1em;
-       height: 1.675em;
-       background-color: #ffffff;
+       height: 1.7em;
+       line-height: 1.7em;
+       background-color: #eeeeee;
        border: 1px solid #cccccc;
        color: #555555;
-       border-radius: 0.2em;
+       border-radius: 0.1em;
 }
 .oo-ui-capsuleItemWidget > .oo-ui-iconElement-icon {
        cursor: pointer;
 }
 .oo-ui-capsuleItemWidget.oo-ui-indicatorElement > .oo-ui-indicatorElement-indicator {
        position: absolute;
-       right: 0.2em;
+       right: 0.4em;
        top: 0;
        width: 0.9375em;
        height: 100%;
index cb47582..ed93566 100644 (file)
@@ -1,12 +1,12 @@
 /*!
- * OOjs UI v0.12.3
+ * OOjs UI v0.12.4
  * https://www.mediawiki.org/wiki/OOjs_UI
  *
  * Copyright 2011–2015 OOjs UI Team and other contributors.
  * Released under the MIT license
  * http://oojs.mit-license.org
  *
- * Date: 2015-08-11T22:34:00Z
+ * Date: 2015-08-13T21:01:04Z
  */
 /**
  * @class
index dd93fe3..ce067fc 100644 (file)
@@ -1,12 +1,12 @@
 /*!
- * OOjs UI v0.12.3
+ * OOjs UI v0.12.4
  * https://www.mediawiki.org/wiki/OOjs_UI
  *
  * Copyright 2011–2015 OOjs UI Team and other contributors.
  * Released under the MIT license
  * http://oojs.mit-license.org
  *
- * Date: 2015-08-11T22:34:00Z
+ * Date: 2015-08-13T21:01:04Z
  */
 ( function ( OO ) {
 
@@ -12739,6 +12739,10 @@ OO.ui.CapsuleMultiSelectWidget = function OoUiCapsuleMultiSelectWidget( config )
                $tabFocus.on( {
                        focus: this.onFocusForPopup.bind( this )
                } );
+               this.popup.$element.on( 'focusout', this.onPopupFocusOut.bind( this ) );
+               if ( this.popup.$autoCloseIgnore ) {
+                       this.popup.$autoCloseIgnore.on( 'focusout', this.onPopupFocusOut.bind( this ) );
+               }
                this.popup.connect( this, {
                        toggle: function ( visible ) {
                                $tabFocus.toggle( !visible );
@@ -13023,6 +13027,26 @@ OO.ui.CapsuleMultiSelectWidget.prototype.onFocusForPopup = function () {
        }
 };
 
+/**
+ * Handles popup focus out events.
+ *
+ * @private
+ * @param {Event} e Focus out event
+ */
+OO.ui.CapsuleMultiSelectWidget.prototype.onPopupFocusOut = function () {
+       var widget = this.popup;
+
+       setTimeout( function () {
+               if (
+                       widget.isVisible() &&
+                       !OO.ui.contains( widget.$element[0], document.activeElement, true ) &&
+                       ( !widget.$autoCloseIgnore || !widget.$autoCloseIgnore.has( document.activeElement ).length )
+               ) {
+                       widget.toggle( false );
+               }
+       } );
+};
+
 /**
  * Handle mouse click events.
  *
@@ -16575,10 +16599,6 @@ OO.ui.PopupWidget = function OoUiPopupWidget( config ) {
 
        // Events
        this.closeButton.connect( this, { click: 'onCloseButtonClick' } );
-       this.$element.on( 'focusout', this.onFocusOut.bind( this ) );
-       if ( this.$autoCloseIgnore ) {
-               this.$autoCloseIgnore.on( 'focusout', this.onFocusOut.bind( this ) );
-       }
 
        // Initialization
        this.toggleAnchor( config.anchor === undefined || config.anchor );
@@ -16619,26 +16639,6 @@ OO.mixinClass( OO.ui.PopupWidget, OO.ui.mixin.ClippableElement );
 
 /* Methods */
 
-/**
- * Handles focus out events.
- *
- * @private
- * @param {Event} e Focus out event
- */
-OO.ui.PopupWidget.prototype.onFocusOut = function () {
-       var widget = this;
-
-       setTimeout( function () {
-               if (
-                       widget.isVisible() &&
-                       !OO.ui.contains( widget.$element, document.activeElement, true ) &&
-                       ( !widget.$autoCloseIgnore || !widget.$autoCloseIgnore.has( document.activeElement ).length )
-               ) {
-                       widget.toggle( false );
-               }
-       } );
-};
-
 /**
  * Handles mouse down events.
  *
@@ -18160,7 +18160,7 @@ OO.ui.MenuSelectWidget = function OoUiMenuSelectWidget( config ) {
        this.$input = config.$input ? config.$input : config.input ? config.input.$input : null;
        this.$widget = config.widget ? config.widget.$element : null;
        this.onDocumentMouseDownHandler = this.onDocumentMouseDown.bind( this );
-       this.onInputKeyPressHandler = OO.ui.debounce( this.updateItemVisibility.bind( this ), 100 );
+       this.onInputEditHandler = OO.ui.debounce( this.updateItemVisibility.bind( this ), 100 );
 
        // Initialization
        this.$element
@@ -18231,7 +18231,7 @@ OO.ui.MenuSelectWidget.prototype.onKeyDown = function ( e ) {
 };
 
 /**
- * Update menu item visibility after input key press
+ * Update menu item visibility after input changes.
  * @protected
  */
 OO.ui.MenuSelectWidget.prototype.updateItemVisibility = function () {
@@ -18279,7 +18279,7 @@ OO.ui.MenuSelectWidget.prototype.unbindKeyDownListener = function () {
 OO.ui.MenuSelectWidget.prototype.bindKeyPressListener = function () {
        if ( this.$input ) {
                if ( this.filterFromInput ) {
-                       this.$input.on( 'keypress', this.onInputKeyPressHandler );
+                       this.$input.on( 'keydown mouseup cut paste change input select', this.onInputEditHandler );
                }
        } else {
                OO.ui.MenuSelectWidget.parent.prototype.bindKeyPressListener.call( this );
@@ -18292,7 +18292,7 @@ OO.ui.MenuSelectWidget.prototype.bindKeyPressListener = function () {
 OO.ui.MenuSelectWidget.prototype.unbindKeyPressListener = function () {
        if ( this.$input ) {
                if ( this.filterFromInput ) {
-                       this.$input.off( 'keypress', this.onInputKeyPressHandler );
+                       this.$input.off( 'keydown mouseup cut paste change input select', this.onInputEditHandler );
                        this.updateItemVisibility();
                }
        } else {