From a1789ddde42033f1b05cc4929491214ee6e79383 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Thu, 17 Dec 2015 09:15:42 +0100 Subject: Update to MediaWiki 1.26.0 --- vendor/oojs/oojs-ui/src/widgets/ActionWidget.js | 170 ------ .../oojs/oojs-ui/src/widgets/ButtonGroupWidget.js | 53 -- .../oojs/oojs-ui/src/widgets/ButtonInputWidget.js | 121 ---- .../oojs/oojs-ui/src/widgets/ButtonOptionWidget.js | 60 -- .../oojs/oojs-ui/src/widgets/ButtonSelectWidget.js | 62 -- vendor/oojs/oojs-ui/src/widgets/ButtonWidget.js | 215 ------- .../oojs-ui/src/widgets/CheckboxInputWidget.js | 110 ---- vendor/oojs/oojs-ui/src/widgets/ComboBoxWidget.js | 230 -------- .../oojs-ui/src/widgets/DecoratedOptionWidget.js | 55 -- .../oojs-ui/src/widgets/DropdownInputWidget.js | 137 ----- vendor/oojs/oojs-ui/src/widgets/DropdownWidget.js | 149 ----- vendor/oojs/oojs-ui/src/widgets/GroupWidget.js | 48 -- vendor/oojs/oojs-ui/src/widgets/IconWidget.js | 54 -- vendor/oojs/oojs-ui/src/widgets/IndicatorWidget.js | 52 -- vendor/oojs/oojs-ui/src/widgets/InputWidget.js | 207 ------- vendor/oojs/oojs-ui/src/widgets/ItemWidget.js | 48 -- vendor/oojs/oojs-ui/src/widgets/LabelWidget.js | 84 --- .../oojs/oojs-ui/src/widgets/MenuOptionWidget.js | 33 -- .../oojs-ui/src/widgets/MenuSectionOptionWidget.js | 55 -- .../oojs/oojs-ui/src/widgets/MenuSelectWidget.js | 254 --------- vendor/oojs/oojs-ui/src/widgets/OptionWidget.js | 177 ------ .../oojs-ui/src/widgets/OutlineControlsWidget.js | 145 ----- .../oojs-ui/src/widgets/OutlineOptionWidget.js | 130 ----- .../oojs-ui/src/widgets/OutlineSelectWidget.js | 34 -- .../oojs/oojs-ui/src/widgets/PopupButtonWidget.js | 57 -- vendor/oojs/oojs-ui/src/widgets/PopupWidget.js | 395 ------------- .../oojs/oojs-ui/src/widgets/ProgressBarWidget.js | 96 ---- .../oojs/oojs-ui/src/widgets/RadioInputWidget.js | 94 --- .../oojs/oojs-ui/src/widgets/RadioOptionWidget.js | 66 --- .../oojs/oojs-ui/src/widgets/RadioSelectWidget.js | 58 -- vendor/oojs/oojs-ui/src/widgets/SearchWidget.js | 176 ------ vendor/oojs/oojs-ui/src/widgets/SelectWidget.js | 630 --------------------- vendor/oojs/oojs-ui/src/widgets/TabOptionWidget.js | 31 - vendor/oojs/oojs-ui/src/widgets/TabSelectWidget.js | 33 -- .../src/widgets/TextInputMenuSelectWidget.js | 103 ---- vendor/oojs/oojs-ui/src/widgets/TextInputWidget.js | 535 ----------------- .../oojs/oojs-ui/src/widgets/ToggleButtonWidget.js | 114 ---- .../oojs/oojs-ui/src/widgets/ToggleSwitchWidget.js | 92 --- vendor/oojs/oojs-ui/src/widgets/ToggleWidget.js | 71 --- 39 files changed, 5234 deletions(-) delete mode 100644 vendor/oojs/oojs-ui/src/widgets/ActionWidget.js delete mode 100644 vendor/oojs/oojs-ui/src/widgets/ButtonGroupWidget.js delete mode 100644 vendor/oojs/oojs-ui/src/widgets/ButtonInputWidget.js delete mode 100644 vendor/oojs/oojs-ui/src/widgets/ButtonOptionWidget.js delete mode 100644 vendor/oojs/oojs-ui/src/widgets/ButtonSelectWidget.js delete mode 100644 vendor/oojs/oojs-ui/src/widgets/ButtonWidget.js delete mode 100644 vendor/oojs/oojs-ui/src/widgets/CheckboxInputWidget.js delete mode 100644 vendor/oojs/oojs-ui/src/widgets/ComboBoxWidget.js delete mode 100644 vendor/oojs/oojs-ui/src/widgets/DecoratedOptionWidget.js delete mode 100644 vendor/oojs/oojs-ui/src/widgets/DropdownInputWidget.js delete mode 100644 vendor/oojs/oojs-ui/src/widgets/DropdownWidget.js delete mode 100644 vendor/oojs/oojs-ui/src/widgets/GroupWidget.js delete mode 100644 vendor/oojs/oojs-ui/src/widgets/IconWidget.js delete mode 100644 vendor/oojs/oojs-ui/src/widgets/IndicatorWidget.js delete mode 100644 vendor/oojs/oojs-ui/src/widgets/InputWidget.js delete mode 100644 vendor/oojs/oojs-ui/src/widgets/ItemWidget.js delete mode 100644 vendor/oojs/oojs-ui/src/widgets/LabelWidget.js delete mode 100644 vendor/oojs/oojs-ui/src/widgets/MenuOptionWidget.js delete mode 100644 vendor/oojs/oojs-ui/src/widgets/MenuSectionOptionWidget.js delete mode 100644 vendor/oojs/oojs-ui/src/widgets/MenuSelectWidget.js delete mode 100644 vendor/oojs/oojs-ui/src/widgets/OptionWidget.js delete mode 100644 vendor/oojs/oojs-ui/src/widgets/OutlineControlsWidget.js delete mode 100644 vendor/oojs/oojs-ui/src/widgets/OutlineOptionWidget.js delete mode 100644 vendor/oojs/oojs-ui/src/widgets/OutlineSelectWidget.js delete mode 100644 vendor/oojs/oojs-ui/src/widgets/PopupButtonWidget.js delete mode 100644 vendor/oojs/oojs-ui/src/widgets/PopupWidget.js delete mode 100644 vendor/oojs/oojs-ui/src/widgets/ProgressBarWidget.js delete mode 100644 vendor/oojs/oojs-ui/src/widgets/RadioInputWidget.js delete mode 100644 vendor/oojs/oojs-ui/src/widgets/RadioOptionWidget.js delete mode 100644 vendor/oojs/oojs-ui/src/widgets/RadioSelectWidget.js delete mode 100644 vendor/oojs/oojs-ui/src/widgets/SearchWidget.js delete mode 100644 vendor/oojs/oojs-ui/src/widgets/SelectWidget.js delete mode 100644 vendor/oojs/oojs-ui/src/widgets/TabOptionWidget.js delete mode 100644 vendor/oojs/oojs-ui/src/widgets/TabSelectWidget.js delete mode 100644 vendor/oojs/oojs-ui/src/widgets/TextInputMenuSelectWidget.js delete mode 100644 vendor/oojs/oojs-ui/src/widgets/TextInputWidget.js delete mode 100644 vendor/oojs/oojs-ui/src/widgets/ToggleButtonWidget.js delete mode 100644 vendor/oojs/oojs-ui/src/widgets/ToggleSwitchWidget.js delete mode 100644 vendor/oojs/oojs-ui/src/widgets/ToggleWidget.js (limited to 'vendor/oojs/oojs-ui/src/widgets') diff --git a/vendor/oojs/oojs-ui/src/widgets/ActionWidget.js b/vendor/oojs/oojs-ui/src/widgets/ActionWidget.js deleted file mode 100644 index 789f04f1..00000000 --- a/vendor/oojs/oojs-ui/src/widgets/ActionWidget.js +++ /dev/null @@ -1,170 +0,0 @@ -/** - * An ActionWidget is a {@link OO.ui.ButtonWidget button widget} that executes an action. - * Action widgets are used with OO.ui.ActionSet, which manages the behavior and availability - * of the actions. - * - * Both actions and action sets are primarily used with {@link OO.ui.Dialog Dialogs}. - * Please see the [OOjs UI documentation on MediaWiki] [1] for more information - * and examples. - * - * [1]: https://www.mediawiki.org/wiki/OOjs_UI/Windows/Process_Dialogs#Action_sets - * - * @class - * @extends OO.ui.ButtonWidget - * @mixins OO.ui.PendingElement - * - * @constructor - * @param {Object} [config] Configuration options - * @cfg {string} [action] Symbolic name of the action (e.g., ‘continue’ or ‘cancel’). - * @cfg {string[]} [modes] Symbolic names of the modes (e.g., ‘edit’ or ‘read’) in which the action - * should be made available. See the action set's {@link OO.ui.ActionSet#setMode setMode} method - * for more information about setting modes. - * @cfg {boolean} [framed=false] Render the action button with a frame - */ -OO.ui.ActionWidget = function OoUiActionWidget( config ) { - // Configuration initialization - config = $.extend( { framed: false }, config ); - - // Parent constructor - OO.ui.ActionWidget.super.call( this, config ); - - // Mixin constructors - OO.ui.PendingElement.call( this, config ); - - // Properties - this.action = config.action || ''; - this.modes = config.modes || []; - this.width = 0; - this.height = 0; - - // Initialization - this.$element.addClass( 'oo-ui-actionWidget' ); -}; - -/* Setup */ - -OO.inheritClass( OO.ui.ActionWidget, OO.ui.ButtonWidget ); -OO.mixinClass( OO.ui.ActionWidget, OO.ui.PendingElement ); - -/* Events */ - -/** - * A resize event is emitted when the size of the widget changes. - * - * @event resize - */ - -/* Methods */ - -/** - * Check if the action is configured to be available in the specified `mode`. - * - * @param {string} mode Name of mode - * @return {boolean} The action is configured with the mode - */ -OO.ui.ActionWidget.prototype.hasMode = function ( mode ) { - return this.modes.indexOf( mode ) !== -1; -}; - -/** - * Get the symbolic name of the action (e.g., ‘continue’ or ‘cancel’). - * - * @return {string} - */ -OO.ui.ActionWidget.prototype.getAction = function () { - return this.action; -}; - -/** - * Get the symbolic name of the mode or modes for which the action is configured to be available. - * - * The current mode is set with the action set's {@link OO.ui.ActionSet#setMode setMode} method. - * Only actions that are configured to be avaiable in the current mode will be visible. All other actions - * are hidden. - * - * @return {string[]} - */ -OO.ui.ActionWidget.prototype.getModes = function () { - return this.modes.slice(); -}; - -/** - * Emit a resize event if the size has changed. - * - * @private - * @chainable - */ -OO.ui.ActionWidget.prototype.propagateResize = function () { - var width, height; - - if ( this.isElementAttached() ) { - width = this.$element.width(); - height = this.$element.height(); - - if ( width !== this.width || height !== this.height ) { - this.width = width; - this.height = height; - this.emit( 'resize' ); - } - } - - return this; -}; - -/** - * @inheritdoc - */ -OO.ui.ActionWidget.prototype.setIcon = function () { - // Mixin method - OO.ui.IconElement.prototype.setIcon.apply( this, arguments ); - this.propagateResize(); - - return this; -}; - -/** - * @inheritdoc - */ -OO.ui.ActionWidget.prototype.setLabel = function () { - // Mixin method - OO.ui.LabelElement.prototype.setLabel.apply( this, arguments ); - this.propagateResize(); - - return this; -}; - -/** - * @inheritdoc - */ -OO.ui.ActionWidget.prototype.setFlags = function () { - // Mixin method - OO.ui.FlaggedElement.prototype.setFlags.apply( this, arguments ); - this.propagateResize(); - - return this; -}; - -/** - * @inheritdoc - */ -OO.ui.ActionWidget.prototype.clearFlags = function () { - // Mixin method - OO.ui.FlaggedElement.prototype.clearFlags.apply( this, arguments ); - this.propagateResize(); - - return this; -}; - -/** - * Toggle the visibility of the action button. - * - * @param {boolean} [show] Show button, omit to toggle visibility - * @chainable - */ -OO.ui.ActionWidget.prototype.toggle = function () { - // Parent method - OO.ui.ActionWidget.super.prototype.toggle.apply( this, arguments ); - this.propagateResize(); - - return this; -}; diff --git a/vendor/oojs/oojs-ui/src/widgets/ButtonGroupWidget.js b/vendor/oojs/oojs-ui/src/widgets/ButtonGroupWidget.js deleted file mode 100644 index f1388ab8..00000000 --- a/vendor/oojs/oojs-ui/src/widgets/ButtonGroupWidget.js +++ /dev/null @@ -1,53 +0,0 @@ -/** - * A ButtonGroupWidget groups related buttons and is used together with OO.ui.ButtonWidget and - * its subclasses. Each button in a group is addressed by a unique reference. Buttons can be added, - * removed, and cleared from the group. - * - * @example - * // Example: A ButtonGroupWidget with two buttons - * var button1 = new OO.ui.PopupButtonWidget( { - * label: 'Select a category', - * icon: 'menu', - * popup: { - * $content: $( '

List of categories...

' ), - * padded: true, - * align: 'left' - * } - * } ); - * var button2 = new OO.ui.ButtonWidget( { - * label: 'Add item' - * }); - * var buttonGroup = new OO.ui.ButtonGroupWidget( { - * items: [button1, button2] - * } ); - * $( 'body' ).append( buttonGroup.$element ); - * - * @class - * @extends OO.ui.Widget - * @mixins OO.ui.GroupElement - * - * @constructor - * @param {Object} [config] Configuration options - * @cfg {OO.ui.ButtonWidget[]} [items] Buttons to add - */ -OO.ui.ButtonGroupWidget = function OoUiButtonGroupWidget( config ) { - // Configuration initialization - config = config || {}; - - // Parent constructor - OO.ui.ButtonGroupWidget.super.call( this, config ); - - // Mixin constructors - OO.ui.GroupElement.call( this, $.extend( {}, config, { $group: this.$element } ) ); - - // Initialization - this.$element.addClass( 'oo-ui-buttonGroupWidget' ); - if ( Array.isArray( config.items ) ) { - this.addItems( config.items ); - } -}; - -/* Setup */ - -OO.inheritClass( OO.ui.ButtonGroupWidget, OO.ui.Widget ); -OO.mixinClass( OO.ui.ButtonGroupWidget, OO.ui.GroupElement ); diff --git a/vendor/oojs/oojs-ui/src/widgets/ButtonInputWidget.js b/vendor/oojs/oojs-ui/src/widgets/ButtonInputWidget.js deleted file mode 100644 index 1d4d97fe..00000000 --- a/vendor/oojs/oojs-ui/src/widgets/ButtonInputWidget.js +++ /dev/null @@ -1,121 +0,0 @@ -/** - * ButtonInputWidget is used to submit HTML forms and is intended to be used within - * a OO.ui.FormLayout. If you do not need the button to work with HTML forms, you probably - * want to use OO.ui.ButtonWidget instead. Button input widgets can be rendered as either an - * HTML `