mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-30 17:14:42 +00:00
Stop using deprecated aliases for OO.ui.mixin.*
These classes were renamed in OOUI v0.11.4. Change-Id: Ie932eb3bf5e65866ae4ba3bf2317facb1e740d3b
This commit is contained in:
parent
df79ed8c4b
commit
85b86fb45d
|
@ -10,14 +10,14 @@
|
||||||
*
|
*
|
||||||
* @class
|
* @class
|
||||||
* @abstract
|
* @abstract
|
||||||
* @mixins OO.ui.IconElement
|
* @mixins OO.ui.mixin.IconElement
|
||||||
*
|
*
|
||||||
* @constructor
|
* @constructor
|
||||||
* @param {Object} [config] Configuration options
|
* @param {Object} [config] Configuration options
|
||||||
*/
|
*/
|
||||||
ve.ce.MWAlienExtensionNode = function VeCeMWAlienExtensionNode( config ) {
|
ve.ce.MWAlienExtensionNode = function VeCeMWAlienExtensionNode( config ) {
|
||||||
// Mixin constructors
|
// Mixin constructors
|
||||||
OO.ui.IconElement.call( this, config );
|
OO.ui.mixin.IconElement.call( this, config );
|
||||||
|
|
||||||
// Events
|
// Events
|
||||||
this.connect( this, { setup: 'onAlienSetup' } );
|
this.connect( this, { setup: 'onAlienSetup' } );
|
||||||
|
@ -27,7 +27,7 @@ ve.ce.MWAlienExtensionNode = function VeCeMWAlienExtensionNode( config ) {
|
||||||
|
|
||||||
OO.initClass( ve.ce.MWAlienExtensionNode );
|
OO.initClass( ve.ce.MWAlienExtensionNode );
|
||||||
|
|
||||||
OO.mixinClass( ve.ce.MWAlienExtensionNode, OO.ui.IconElement );
|
OO.mixinClass( ve.ce.MWAlienExtensionNode, OO.ui.mixin.IconElement );
|
||||||
|
|
||||||
/* Static members */
|
/* Static members */
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
* @abstract
|
* @abstract
|
||||||
* @extends ve.ce.LeafNode
|
* @extends ve.ce.LeafNode
|
||||||
* @mixins ve.ce.FocusableNode
|
* @mixins ve.ce.FocusableNode
|
||||||
|
* @mixins OO.ui.mixin.IconElement
|
||||||
* @mixins ve.ce.GeneratedContentNode
|
* @mixins ve.ce.GeneratedContentNode
|
||||||
*
|
*
|
||||||
* @constructor
|
* @constructor
|
||||||
|
@ -24,7 +25,7 @@ ve.ce.MWTransclusionNode = function VeCeMWTransclusionNode( model, config ) {
|
||||||
|
|
||||||
// Mixin constructors
|
// Mixin constructors
|
||||||
ve.ce.FocusableNode.call( this );
|
ve.ce.FocusableNode.call( this );
|
||||||
OO.ui.IconElement.call( this, config );
|
OO.ui.mixin.IconElement.call( this, config );
|
||||||
ve.ce.GeneratedContentNode.call( this );
|
ve.ce.GeneratedContentNode.call( this );
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -34,7 +35,7 @@ OO.inheritClass( ve.ce.MWTransclusionNode, ve.ce.LeafNode );
|
||||||
|
|
||||||
OO.mixinClass( ve.ce.MWTransclusionNode, ve.ce.FocusableNode );
|
OO.mixinClass( ve.ce.MWTransclusionNode, ve.ce.FocusableNode );
|
||||||
OO.mixinClass( ve.ce.MWTransclusionNode, ve.ce.GeneratedContentNode );
|
OO.mixinClass( ve.ce.MWTransclusionNode, ve.ce.GeneratedContentNode );
|
||||||
OO.mixinClass( ve.ce.MWTransclusionNode, OO.ui.IconElement );
|
OO.mixinClass( ve.ce.MWTransclusionNode, OO.ui.mixin.IconElement );
|
||||||
|
|
||||||
/* Static Properties */
|
/* Static Properties */
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
* @class
|
* @class
|
||||||
* @abstract
|
* @abstract
|
||||||
* @extends OO.ui.ButtonWidget
|
* @extends OO.ui.ButtonWidget
|
||||||
* @mixins OO.ui.DraggableElement
|
* @mixins OO.ui.mixin.DraggableElement
|
||||||
*
|
*
|
||||||
* @constructor
|
* @constructor
|
||||||
* @param {Object} [config] Configuration options
|
* @param {Object} [config] Configuration options
|
||||||
|
@ -28,7 +28,7 @@ ve.ui.MWCategoryItemWidget = function VeUiMWCategoryItemWidget( config ) {
|
||||||
OO.ui.ButtonWidget.call( this, config );
|
OO.ui.ButtonWidget.call( this, config );
|
||||||
|
|
||||||
// Mixin constructors
|
// Mixin constructors
|
||||||
OO.ui.DraggableElement.call( this, config );
|
OO.ui.mixin.DraggableElement.call( this, config );
|
||||||
|
|
||||||
// Properties
|
// Properties
|
||||||
this.name = config.item.name;
|
this.name = config.item.name;
|
||||||
|
@ -61,7 +61,7 @@ ve.ui.MWCategoryItemWidget = function VeUiMWCategoryItemWidget( config ) {
|
||||||
|
|
||||||
OO.inheritClass( ve.ui.MWCategoryItemWidget, OO.ui.ButtonWidget );
|
OO.inheritClass( ve.ui.MWCategoryItemWidget, OO.ui.ButtonWidget );
|
||||||
|
|
||||||
OO.mixinClass( ve.ui.MWCategoryItemWidget, OO.ui.DraggableElement );
|
OO.mixinClass( ve.ui.MWCategoryItemWidget, OO.ui.mixin.DraggableElement );
|
||||||
|
|
||||||
/* Events */
|
/* Events */
|
||||||
|
|
||||||
|
|
|
@ -26,8 +26,8 @@ ve.ui.MWCategoryWidget = function VeUiMWCategoryWidget( config ) {
|
||||||
OO.ui.Widget.call( this, config );
|
OO.ui.Widget.call( this, config );
|
||||||
|
|
||||||
// Mixin constructors
|
// Mixin constructors
|
||||||
OO.ui.GroupElement.call( this, config );
|
OO.ui.mixin.GroupElement.call( this, config );
|
||||||
OO.ui.DraggableGroupElement.call( this, $.extend( {}, config, { orientation: 'horizontal' } ) );
|
OO.ui.mixin.DraggableGroupElement.call( this, $.extend( {}, config, { orientation: 'horizontal' } ) );
|
||||||
|
|
||||||
// Properties
|
// Properties
|
||||||
this.categories = {};
|
this.categories = {};
|
||||||
|
@ -183,7 +183,7 @@ ve.ui.MWCategoryWidget.prototype.onUpdateSortkey = function ( name, value ) {
|
||||||
* @inheritdoc
|
* @inheritdoc
|
||||||
*/
|
*/
|
||||||
ve.ui.MWCategoryWidget.prototype.clearItems = function () {
|
ve.ui.MWCategoryWidget.prototype.clearItems = function () {
|
||||||
OO.ui.GroupElement.prototype.clearItems.call( this );
|
OO.ui.mixin.GroupElement.prototype.clearItems.call( this );
|
||||||
this.categories = {};
|
this.categories = {};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -350,7 +350,7 @@ ve.ui.MWCategoryWidget.prototype.addItems = function ( items, index ) {
|
||||||
categoryItems.push( categoryItem );
|
categoryItems.push( categoryItem );
|
||||||
}
|
}
|
||||||
|
|
||||||
OO.ui.DraggableGroupElement.prototype.addItems.call( categoryWidget, categoryItems, index );
|
OO.ui.mixin.DraggableGroupElement.prototype.addItems.call( categoryWidget, categoryItems, index );
|
||||||
|
|
||||||
categoryWidget.fitInput();
|
categoryWidget.fitInput();
|
||||||
} );
|
} );
|
||||||
|
@ -371,7 +371,7 @@ ve.ui.MWCategoryWidget.prototype.removeItems = function ( items ) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
OO.ui.DraggableGroupElement.prototype.removeItems.call( this, items );
|
OO.ui.mixin.DraggableGroupElement.prototype.removeItems.call( this, items );
|
||||||
|
|
||||||
this.fitInput();
|
this.fitInput();
|
||||||
};
|
};
|
||||||
|
|
|
@ -25,7 +25,7 @@ ve.ui.MWLinkTargetInputWidget = function VeUiMWLinkTargetInputWidget( config ) {
|
||||||
ve.ui.MWLinkTargetInputWidget.super.call( this, config );
|
ve.ui.MWLinkTargetInputWidget.super.call( this, config );
|
||||||
|
|
||||||
// Mixin constructors
|
// Mixin constructors
|
||||||
OO.ui.LookupElement.call( this, config );
|
OO.ui.mixin.LookupElement.call( this, config );
|
||||||
|
|
||||||
// Initialization
|
// Initialization
|
||||||
this.$element.addClass( 've-ui-mwLinkTargetInputWidget' );
|
this.$element.addClass( 've-ui-mwLinkTargetInputWidget' );
|
||||||
|
@ -53,7 +53,7 @@ ve.ui.MWLinkTargetInputWidget = function VeUiMWLinkTargetInputWidget( config ) {
|
||||||
|
|
||||||
OO.inheritClass( ve.ui.MWLinkTargetInputWidget, OO.ui.TextInputWidget );
|
OO.inheritClass( ve.ui.MWLinkTargetInputWidget, OO.ui.TextInputWidget );
|
||||||
|
|
||||||
OO.mixinClass( ve.ui.MWLinkTargetInputWidget, OO.ui.LookupElement );
|
OO.mixinClass( ve.ui.MWLinkTargetInputWidget, OO.ui.mixin.LookupElement );
|
||||||
|
|
||||||
/* Methods */
|
/* Methods */
|
||||||
|
|
||||||
|
|
|
@ -10,8 +10,8 @@
|
||||||
*
|
*
|
||||||
* @class
|
* @class
|
||||||
* @extends OO.ui.Widget
|
* @extends OO.ui.Widget
|
||||||
* @mixins OO.ui.IconElement
|
* @mixins OO.ui.mixin.IconElement
|
||||||
* @mixins OO.ui.TitledElement
|
* @mixins OO.ui.mixin.TitledElement
|
||||||
*
|
*
|
||||||
* @constructor
|
* @constructor
|
||||||
* @param {Object} [config] Configuration options
|
* @param {Object} [config] Configuration options
|
||||||
|
@ -31,8 +31,8 @@ ve.ui.MWMediaInfoFieldWidget = function VeUiMWMediaInfoFieldWidget( content, con
|
||||||
ve.ui.MWMediaInfoFieldWidget.super.call( this, config );
|
ve.ui.MWMediaInfoFieldWidget.super.call( this, config );
|
||||||
|
|
||||||
// Mixin constructors
|
// Mixin constructors
|
||||||
OO.ui.IconElement.call( this, config );
|
OO.ui.mixin.IconElement.call( this, config );
|
||||||
OO.ui.LabelElement.call( this, $.extend( { $label: $( '<div>' ) }, config ) );
|
OO.ui.mixin.LabelElement.call( this, $.extend( { $label: $( '<div>' ) }, config ) );
|
||||||
|
|
||||||
this.$text = $( '<div>' )
|
this.$text = $( '<div>' )
|
||||||
.addClass( 've-ui-mwMediaInfoFieldWidget-text' );
|
.addClass( 've-ui-mwMediaInfoFieldWidget-text' );
|
||||||
|
@ -98,8 +98,8 @@ ve.ui.MWMediaInfoFieldWidget = function VeUiMWMediaInfoFieldWidget( content, con
|
||||||
/* Setup */
|
/* Setup */
|
||||||
|
|
||||||
OO.inheritClass( ve.ui.MWMediaInfoFieldWidget, OO.ui.Widget );
|
OO.inheritClass( ve.ui.MWMediaInfoFieldWidget, OO.ui.Widget );
|
||||||
OO.mixinClass( ve.ui.MWMediaInfoFieldWidget, OO.ui.IconElement );
|
OO.mixinClass( ve.ui.MWMediaInfoFieldWidget, OO.ui.mixin.IconElement );
|
||||||
OO.mixinClass( ve.ui.MWMediaInfoFieldWidget, OO.ui.LabelElement );
|
OO.mixinClass( ve.ui.MWMediaInfoFieldWidget, OO.ui.mixin.LabelElement );
|
||||||
|
|
||||||
/* Static Properties */
|
/* Static Properties */
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
*
|
*
|
||||||
* @class
|
* @class
|
||||||
* @extends OO.ui.Widget
|
* @extends OO.ui.Widget
|
||||||
* @mixins OO.ui.GroupElement
|
* @mixins OO.ui.mixin.GroupElement
|
||||||
*
|
*
|
||||||
* @constructor
|
* @constructor
|
||||||
* @param {Object} config TOC Item configuration
|
* @param {Object} config TOC Item configuration
|
||||||
|
@ -26,7 +26,7 @@ ve.ui.MWTocItemWidget = function VeCeMWTocItemWidget( config ) {
|
||||||
OO.ui.Widget.call( this, config );
|
OO.ui.Widget.call( this, config );
|
||||||
|
|
||||||
// Mixin Constructor
|
// Mixin Constructor
|
||||||
OO.ui.GroupElement.call( this, $.extend( {}, config, { $group: $( '<ul>' ) } ) );
|
OO.ui.mixin.GroupElement.call( this, $.extend( {}, config, { $group: $( '<ul>' ) } ) );
|
||||||
|
|
||||||
config = config || {};
|
config = config || {};
|
||||||
|
|
||||||
|
@ -59,7 +59,7 @@ ve.ui.MWTocItemWidget = function VeCeMWTocItemWidget( config ) {
|
||||||
|
|
||||||
OO.inheritClass( ve.ui.MWTocItemWidget, OO.ui.Widget );
|
OO.inheritClass( ve.ui.MWTocItemWidget, OO.ui.Widget );
|
||||||
|
|
||||||
OO.mixinClass( ve.ui.MWTocItemWidget, OO.ui.GroupElement );
|
OO.mixinClass( ve.ui.MWTocItemWidget, OO.ui.mixin.GroupElement );
|
||||||
|
|
||||||
/* Static Properties */
|
/* Static Properties */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue