Update OOUI to v0.27.0
Release notes: https://phabricator.wikimedia.org/diffusion/GOJU/browse/master/History.md;v0.27.0 Depends-on: I40dc6a2441fcd37e785f11b7a5e2f5da932e94df Change-Id: I2acf232fd172d176b305d65d88db5b7bbfe34b88
|
|
@ -24,7 +24,7 @@
|
|||
"ext-mbstring": "*",
|
||||
"ext-xml": "*",
|
||||
"liuggio/statsd-php-client": "1.0.18",
|
||||
"oojs/oojs-ui": "0.26.5",
|
||||
"oojs/oojs-ui": "0.27.0",
|
||||
"oyejorge/less.php": "1.7.0.14",
|
||||
"php": ">=5.5.9",
|
||||
"psr/log": "1.0.2",
|
||||
|
|
|
|||
|
|
@ -2881,6 +2881,9 @@ return [
|
|||
'oojs-ui.styles.icons-alerts',
|
||||
'oojs-ui.styles.icons-interactions',
|
||||
],
|
||||
'messages' => [
|
||||
'ooui-field-help'
|
||||
],
|
||||
'targets' => [ 'desktop', 'mobile' ],
|
||||
],
|
||||
// This contains only the styles required by core widgets.
|
||||
|
|
|
|||
|
|
@ -1,4 +1,39 @@
|
|||
# OOUI Release History
|
||||
## v0.27.0 / 2018-05-08
|
||||
### Breaking changes
|
||||
* [BREAKING CHANGE] GroupElement: Remove getItem(s)FromData (Prateek Saxena)
|
||||
* [BREAKING CHANGE] MultiSelectWidget: Remove getSelectedItems and getSelectedItemsData (Prateek Saxena)
|
||||
* [BREAKING CHANGE] SelectWidget: Remove getSelectedItem (Prateek Saxena)
|
||||
* [BREAKING CHANGE] TagItemWidget: Replace 'disabled' items with 'fixed' (Moriel Schottlender)
|
||||
* [BREAKING CHANGE] indicators: Remove 'alert', deprecated in v0.25.2 (James D. Forrester)
|
||||
|
||||
### Deprecations
|
||||
* [DEPRECATING CHANGE] icons: Deprecate 'editing-citation' icons from 'content' (Volker E.)
|
||||
* [DEPRECATING CHANGE] icons: Rename 'settings' to 'pageSettings' (Volker E.)
|
||||
|
||||
### Features
|
||||
* Add an infusable PHP implementation of the NumberInputWidget (mainframe98)
|
||||
|
||||
### Styles
|
||||
* TextInputWidget: Hide IE10+'s clear button when it conflicts with labels (Thiemo Kreuz)
|
||||
* WikimediaUI theme: Don't add icon `padding` to menu tools with no icons (Ed Sanders)
|
||||
* WikimediaUI theme: Fix TagItem's label and close position (Volker E.)
|
||||
* WikimediaUI theme: Fix visual regression on toolbar menu border (Volker E.)
|
||||
* Apex theme: Fix position of help icon in FieldLayout align=top (Ed Sanders)
|
||||
* icons: Add 'editing-citation' pack (Volker E.)
|
||||
* icons: Add `title` elements to new icons in 'editing-citation' pack (Volker E.)
|
||||
|
||||
### Code
|
||||
* FieldLayout: Provide label to 'help' PopupButtonWidget in JS (Volker E.)
|
||||
* MenuTagMultiselect: Use default onTagSelect if allowArbitrary (Daimona Eaytoy)
|
||||
* NumberInputWidget: Add `aria-hidden` to buttons (Volker E.)
|
||||
* ProcessDialog: Fix footer height when actions or dialog size changes (Bartosz Dziewoński)
|
||||
* SelectFileWidget: Use `<label>` for select ButtonElement (Moriel Schottlender)
|
||||
* Harmonize icon JSONs code (Volker E.)
|
||||
* Improve test output in case of failures (Bartosz Dziewoński)
|
||||
* demos: Add ellipsis to “Publish changes” to follow production (Volker E.)
|
||||
|
||||
|
||||
## v0.26.5 / 2018-04-24
|
||||
### Styles
|
||||
* Add `overflow:hidden;` to dialog content (Ed Sanders)
|
||||
|
|
|
|||
|
|
@ -32,5 +32,6 @@
|
|||
"ooui-selectfile-button-select": "Select a file",
|
||||
"ooui-selectfile-not-supported": "File selection is not supported",
|
||||
"ooui-selectfile-placeholder": "No file is selected",
|
||||
"ooui-selectfile-dragdrop-placeholder": "Drop file here"
|
||||
"ooui-selectfile-dragdrop-placeholder": "Drop file here",
|
||||
"ooui-field-help": "Help"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,8 @@
|
|||
"@metadata": {
|
||||
"authors": [
|
||||
"Adam-Yourist",
|
||||
"ElizaMag"
|
||||
"ElizaMag",
|
||||
"Tusholi"
|
||||
]
|
||||
},
|
||||
"ooui-outline-control-move-down": "Элемент Iолохеяккха",
|
||||
|
|
@ -13,12 +14,12 @@
|
|||
"ooui-toolgroup-collapse": "КӀезига",
|
||||
"ooui-dialog-message-accept": "ОК",
|
||||
"ooui-dialog-message-reject": "Эшац",
|
||||
"ooui-dialog-process-error": "Харцахь хилар цхьа хIама",
|
||||
"ooui-dialog-process-error": "Харцахьа хилар цхьа хIама",
|
||||
"ooui-dialog-process-dismiss": "ДIакъовла",
|
||||
"ooui-dialog-process-retry": "Кхы цкъа де гIорта",
|
||||
"ooui-dialog-process-continue": "ДIаьхде",
|
||||
"ooui-selectfile-button-select": "Файл хьахаржа",
|
||||
"ooui-selectfile-not-supported": "Файл харжа вIаштаь дац",
|
||||
"ooui-selectfile-placeholder": "Файл хержа яц",
|
||||
"ooui-selectfile-dragdrop-placeholder": "Хьадехьаяккха файл укхаз"
|
||||
"ooui-selectfile-dragdrop-placeholder": "Укхаза хьадехьаяккха файл"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,5 +37,6 @@
|
|||
"ooui-selectfile-button-select": "Label for the file selection widget's select file button",
|
||||
"ooui-selectfile-not-supported": "Label for the file selection widget if file selection is not supported",
|
||||
"ooui-selectfile-placeholder": "Label for the file selection widget when no file is currently selected",
|
||||
"ooui-selectfile-dragdrop-placeholder": "Label for the file selection widget's drop target"
|
||||
"ooui-selectfile-dragdrop-placeholder": "Label for the file selection widget's drop target",
|
||||
"ooui-field-help": "Label for the help icon attached to a form field"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,7 +12,8 @@
|
|||
"Meelo",
|
||||
"McAang",
|
||||
"Uğurkent",
|
||||
"1917 Ekim Devrimi"
|
||||
"1917 Ekim Devrimi",
|
||||
"Hedda"
|
||||
]
|
||||
},
|
||||
"ooui-outline-control-move-down": "Ögeyi aşağı taşı",
|
||||
|
|
@ -21,6 +22,7 @@
|
|||
"ooui-toolbar-more": "Dahası",
|
||||
"ooui-toolgroup-expand": "Dahası",
|
||||
"ooui-toolgroup-collapse": "Daha az",
|
||||
"ooui-item-remove": "Kaldır",
|
||||
"ooui-dialog-message-accept": "Tamam",
|
||||
"ooui-dialog-message-reject": "İptal",
|
||||
"ooui-dialog-process-error": "Bir şeyler yanlış gitti",
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
"ooui-toolbar-more": "נאך",
|
||||
"ooui-toolgroup-expand": "נאך",
|
||||
"ooui-toolgroup-collapse": "ווייניגער",
|
||||
"ooui-item-remove": "אַראָפּנעמען",
|
||||
"ooui-dialog-message-accept": "יאָ",
|
||||
"ooui-dialog-message-reject": "אַנולירן",
|
||||
"ooui-dialog-process-error": "עפעס איז דורכגעפאלן",
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
/*!
|
||||
* OOUI v0.26.5
|
||||
* OOUI v0.27.0
|
||||
* https://www.mediawiki.org/wiki/OOUI
|
||||
*
|
||||
* Copyright 2011–2018 OOUI Team and other contributors.
|
||||
* Released under the MIT license
|
||||
* http://oojs.mit-license.org
|
||||
*
|
||||
* Date: 2018-04-24T23:29:01Z
|
||||
* Date: 2018-05-09T00:44:45Z
|
||||
*/
|
||||
( function ( OO ) {
|
||||
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
/*!
|
||||
* OOUI v0.26.5
|
||||
* OOUI v0.27.0
|
||||
* https://www.mediawiki.org/wiki/OOUI
|
||||
*
|
||||
* Copyright 2011–2018 OOUI Team and other contributors.
|
||||
* Released under the MIT license
|
||||
* http://oojs.mit-license.org
|
||||
*
|
||||
* Date: 2018-04-24T23:29:05Z
|
||||
* Date: 2018-05-09T00:44:50Z
|
||||
*/
|
||||
.oo-ui-element-hidden {
|
||||
display: none !important;
|
||||
|
|
@ -364,6 +364,18 @@
|
|||
.oo-ui-fieldLayout .oo-ui-fieldLayout-help {
|
||||
float: right;
|
||||
}
|
||||
.oo-ui-fieldLayout .oo-ui-fieldLayout-help > .oo-ui-buttonElement-button > .oo-ui-labelElement-label {
|
||||
display: block;
|
||||
position: absolute !important;
|
||||
/* stylelint-disable-line declaration-no-important */
|
||||
clip: rect(1px, 1px, 1px, 1px);
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
margin: -1px;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
.oo-ui-fieldLayout .oo-ui-fieldLayout-help > .oo-ui-popupWidget > .oo-ui-popupWidget-popup {
|
||||
z-index: 1;
|
||||
}
|
||||
|
|
@ -405,6 +417,7 @@
|
|||
.oo-ui-fieldLayout.oo-ui-fieldLayout-align-top .oo-ui-fieldLayout-help,
|
||||
.oo-ui-fieldLayout.oo-ui-fieldLayout-align-inline .oo-ui-fieldLayout-help {
|
||||
margin-top: -0.3em;
|
||||
margin-right: -0.625em;
|
||||
}
|
||||
.oo-ui-fieldLayout > .oo-ui-popupButtonWidget {
|
||||
margin-right: 0;
|
||||
|
|
@ -482,6 +495,18 @@ body:not( :-moz-handler-blocked ) .oo-ui-fieldsetLayout {
|
|||
.oo-ui-fieldsetLayout .oo-ui-fieldsetLayout-help {
|
||||
float: right;
|
||||
}
|
||||
.oo-ui-fieldsetLayout .oo-ui-fieldsetLayout-help > .oo-ui-buttonElement-button > .oo-ui-labelElement-label {
|
||||
display: block;
|
||||
position: absolute !important;
|
||||
/* stylelint-disable-line declaration-no-important */
|
||||
clip: rect(1px, 1px, 1px, 1px);
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
margin: -1px;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
.oo-ui-fieldsetLayout .oo-ui-fieldsetLayout-help > .oo-ui-popupWidget > .oo-ui-popupWidget-popup {
|
||||
z-index: 1;
|
||||
}
|
||||
|
|
@ -1070,6 +1095,9 @@ body:not( :-moz-handler-blocked ) .oo-ui-fieldsetLayout {
|
|||
.oo-ui-textInputWidget-labelPosition-after > .oo-ui-labelElement-label {
|
||||
right: 0;
|
||||
}
|
||||
.oo-ui-textInputWidget-labelPosition-after.oo-ui-labelElement ::-ms-clear {
|
||||
display: none;
|
||||
}
|
||||
.oo-ui-textInputWidget > .oo-ui-labelElement-label {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
|
|
@ -1519,6 +1547,41 @@ body:not( :-moz-handler-blocked ) .oo-ui-fieldsetLayout {
|
|||
transform: translate(350%);
|
||||
}
|
||||
}
|
||||
.oo-ui-numberInputWidget {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
max-width: 50em;
|
||||
}
|
||||
.oo-ui-numberInputWidget-buttoned .oo-ui-buttonWidget,
|
||||
.oo-ui-numberInputWidget-buttoned .oo-ui-inputWidget-input {
|
||||
display: table-cell;
|
||||
height: 100%;
|
||||
}
|
||||
.oo-ui-numberInputWidget-field {
|
||||
display: table;
|
||||
table-layout: fixed;
|
||||
width: 100%;
|
||||
}
|
||||
.oo-ui-numberInputWidget-field > .oo-ui-buttonWidget {
|
||||
width: 2.25em;
|
||||
}
|
||||
.oo-ui-numberInputWidget-buttoned .oo-ui-buttonElement-button .oo-ui-iconElement-icon {
|
||||
min-width: 20px;
|
||||
width: 1.5625em;
|
||||
}
|
||||
.oo-ui-numberInputWidget-buttoned .oo-ui-inputWidget-input {
|
||||
border-radius: 0;
|
||||
}
|
||||
.oo-ui-numberInputWidget-minusButton > .oo-ui-buttonElement-button {
|
||||
border-top-right-radius: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
border-right-width: 0;
|
||||
}
|
||||
.oo-ui-numberInputWidget-plusButton > .oo-ui-buttonElement-button {
|
||||
border-top-left-radius: 0;
|
||||
border-bottom-left-radius: 0;
|
||||
border-left-width: 0;
|
||||
}
|
||||
.oo-ui-defaultOverlay {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
/*!
|
||||
* OOUI v0.26.5
|
||||
* OOUI v0.27.0
|
||||
* https://www.mediawiki.org/wiki/OOUI
|
||||
*
|
||||
* Copyright 2011–2018 OOUI Team and other contributors.
|
||||
* Released under the MIT license
|
||||
* http://oojs.mit-license.org
|
||||
*
|
||||
* Date: 2018-04-24T23:29:05Z
|
||||
* Date: 2018-05-09T00:44:50Z
|
||||
*/
|
||||
/**
|
||||
* WikimediaUI Base v0.10.0
|
||||
|
|
@ -483,6 +483,18 @@
|
|||
.oo-ui-fieldLayout .oo-ui-fieldLayout-help {
|
||||
float: right;
|
||||
}
|
||||
.oo-ui-fieldLayout .oo-ui-fieldLayout-help > .oo-ui-buttonElement-button > .oo-ui-labelElement-label {
|
||||
display: block;
|
||||
position: absolute !important;
|
||||
/* stylelint-disable-line declaration-no-important */
|
||||
clip: rect(1px, 1px, 1px, 1px);
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
margin: -1px;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
.oo-ui-fieldLayout .oo-ui-fieldLayout-help > .oo-ui-popupWidget > .oo-ui-popupWidget-popup {
|
||||
z-index: 1;
|
||||
}
|
||||
|
|
@ -620,6 +632,18 @@ body:not( :-moz-handler-blocked ) .oo-ui-fieldsetLayout {
|
|||
.oo-ui-fieldsetLayout .oo-ui-fieldsetLayout-help {
|
||||
float: right;
|
||||
}
|
||||
.oo-ui-fieldsetLayout .oo-ui-fieldsetLayout-help > .oo-ui-buttonElement-button > .oo-ui-labelElement-label {
|
||||
display: block;
|
||||
position: absolute !important;
|
||||
/* stylelint-disable-line declaration-no-important */
|
||||
clip: rect(1px, 1px, 1px, 1px);
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
margin: -1px;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
.oo-ui-fieldsetLayout .oo-ui-fieldsetLayout-help > .oo-ui-popupWidget > .oo-ui-popupWidget-popup {
|
||||
z-index: 1;
|
||||
}
|
||||
|
|
@ -1416,6 +1440,9 @@ body:not( :-moz-handler-blocked ) .oo-ui-fieldsetLayout {
|
|||
.oo-ui-textInputWidget-labelPosition-after > .oo-ui-labelElement-label {
|
||||
right: 0;
|
||||
}
|
||||
.oo-ui-textInputWidget-labelPosition-after.oo-ui-labelElement ::-ms-clear {
|
||||
display: none;
|
||||
}
|
||||
.oo-ui-textInputWidget > .oo-ui-labelElement-label {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
|
|
@ -1925,6 +1952,51 @@ body:not( :-moz-handler-blocked ) .oo-ui-fieldsetLayout {
|
|||
transform: translate(350%);
|
||||
}
|
||||
}
|
||||
.oo-ui-numberInputWidget {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
max-width: 50em;
|
||||
}
|
||||
.oo-ui-numberInputWidget-buttoned .oo-ui-buttonWidget,
|
||||
.oo-ui-numberInputWidget-buttoned .oo-ui-inputWidget-input {
|
||||
display: table-cell;
|
||||
height: 100%;
|
||||
}
|
||||
.oo-ui-numberInputWidget-field {
|
||||
display: table;
|
||||
table-layout: fixed;
|
||||
width: 100%;
|
||||
}
|
||||
.oo-ui-numberInputWidget-buttoned .oo-ui-buttonWidget {
|
||||
width: 2.64285714em;
|
||||
}
|
||||
.oo-ui-numberInputWidget-buttoned .oo-ui-buttonWidget .oo-ui-buttonElement-button {
|
||||
display: block;
|
||||
min-width: 37px;
|
||||
min-height: 2.28571429em;
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
}
|
||||
.oo-ui-numberInputWidget-buttoned .oo-ui-buttonWidget .oo-ui-buttonElement-button .oo-ui-iconElement-icon {
|
||||
left: 0.57142857em;
|
||||
}
|
||||
.oo-ui-numberInputWidget-buttoned .oo-ui-inputWidget-input {
|
||||
border-radius: 0;
|
||||
max-height: 2.28571429em;
|
||||
}
|
||||
.oo-ui-numberInputWidget-minusButton > .oo-ui-buttonElement-button {
|
||||
border-top-right-radius: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
border-right-width: 0;
|
||||
}
|
||||
.oo-ui-numberInputWidget-plusButton > .oo-ui-buttonElement-button {
|
||||
border-top-left-radius: 0;
|
||||
border-bottom-left-radius: 0;
|
||||
border-left-width: 0;
|
||||
}
|
||||
.oo-ui-numberInputWidget.oo-ui-widget-disabled.oo-ui-numberInputWidget-buttoned .oo-ui-iconElement-icon {
|
||||
opacity: 1;
|
||||
}
|
||||
.oo-ui-defaultOverlay {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
/*!
|
||||
* OOUI v0.26.5
|
||||
* OOUI v0.27.0
|
||||
* https://www.mediawiki.org/wiki/OOUI
|
||||
*
|
||||
* Copyright 2011–2018 OOUI Team and other contributors.
|
||||
* Released under the MIT license
|
||||
* http://oojs.mit-license.org
|
||||
*
|
||||
* Date: 2018-04-24T23:29:01Z
|
||||
* Date: 2018-05-09T00:44:45Z
|
||||
*/
|
||||
( function ( OO ) {
|
||||
|
||||
|
|
@ -2425,18 +2425,6 @@ OO.ui.mixin.GroupElement.prototype.findItemFromData = function ( data ) {
|
|||
return null;
|
||||
};
|
||||
|
||||
/**
|
||||
* Get an item by its data.
|
||||
*
|
||||
* @deprecated Since v0.25.0; use {@link #findItemFromData} instead.
|
||||
* @param {Object} data Item data to search for
|
||||
* @return {OO.ui.Element|null} Item with equivalent data, `null` if none exists
|
||||
*/
|
||||
OO.ui.mixin.GroupElement.prototype.getItemFromData = function ( data ) {
|
||||
OO.ui.warnDeprecation( 'GroupElement#getItemFromData. Deprecated function. Use findItemFromData instead. See T76630' );
|
||||
return this.findItemFromData( data );
|
||||
};
|
||||
|
||||
/**
|
||||
* Find items by their data.
|
||||
*
|
||||
|
|
@ -2460,18 +2448,6 @@ OO.ui.mixin.GroupElement.prototype.findItemsFromData = function ( data ) {
|
|||
return items;
|
||||
};
|
||||
|
||||
/**
|
||||
* Find items by their data.
|
||||
*
|
||||
* @deprecated Since v0.25.0; use {@link #findItemsFromData} instead.
|
||||
* @param {Object} data Item data to search for
|
||||
* @return {OO.ui.Element[]} Items with equivalent data
|
||||
*/
|
||||
OO.ui.mixin.GroupElement.prototype.getItemsFromData = function ( data ) {
|
||||
OO.ui.warnDeprecation( 'GroupElement#getItemsFromData. Deprecated function. Use findItemsFromData instead. See T76630' );
|
||||
return this.findItemsFromData( data );
|
||||
};
|
||||
|
||||
/**
|
||||
* Add items to the group.
|
||||
*
|
||||
|
|
@ -6732,17 +6708,6 @@ OO.ui.SelectWidget.prototype.findSelectedItem = function () {
|
|||
return null;
|
||||
};
|
||||
|
||||
/**
|
||||
* Get selected item.
|
||||
*
|
||||
* @deprecated Since v0.25.0; use {@link #findSelectedItem} instead.
|
||||
* @return {OO.ui.OptionWidget|null} Selected item, `null` if no item is selected
|
||||
*/
|
||||
OO.ui.SelectWidget.prototype.getSelectedItem = function () {
|
||||
OO.ui.warnDeprecation( 'SelectWidget#getSelectedItem: Deprecated function. Use findSelectedItem instead. See T76630.' );
|
||||
return this.findSelectedItem();
|
||||
};
|
||||
|
||||
/**
|
||||
* Find highlighted item.
|
||||
*
|
||||
|
|
@ -8182,17 +8147,6 @@ OO.ui.MultiselectWidget.prototype.findSelectedItems = function () {
|
|||
} );
|
||||
};
|
||||
|
||||
/**
|
||||
* Get options that are selected.
|
||||
*
|
||||
* @deprecated Since v0.25.0; use {@link #findSelectedItems} instead.
|
||||
* @return {OO.ui.MultioptionWidget[]} Selected options
|
||||
*/
|
||||
OO.ui.MultiselectWidget.prototype.getSelectedItems = function () {
|
||||
OO.ui.warnDeprecation( 'MultiselectWidget#getSelectedItems: Deprecated function. Use findSelectedItems instead. See T76630.' );
|
||||
return this.findSelectedItems();
|
||||
};
|
||||
|
||||
/**
|
||||
* Find the data of options that are selected.
|
||||
*
|
||||
|
|
@ -8204,17 +8158,6 @@ OO.ui.MultiselectWidget.prototype.findSelectedItemsData = function () {
|
|||
} );
|
||||
};
|
||||
|
||||
/**
|
||||
* Get the data of options that are selected.
|
||||
*
|
||||
* @deprecated Since v0.25.0; use {@link #findSelectedItemsData} instead.
|
||||
* @return {Object[]|string[]} Values of selected options
|
||||
*/
|
||||
OO.ui.MultiselectWidget.prototype.getSelectedItemsData = function () {
|
||||
OO.ui.warnDeprecation( 'MultiselectWidget#getSelectedItemsData: Deprecated function. Use findSelectedItemsData instead. See T76630.' );
|
||||
return this.findSelectedItemsData();
|
||||
};
|
||||
|
||||
/**
|
||||
* Select options by reference. Options not mentioned in the `items` array will be deselected.
|
||||
*
|
||||
|
|
@ -11373,7 +11316,8 @@ OO.ui.FieldLayout = function OoUiFieldLayout( fieldWidget, config ) {
|
|||
},
|
||||
classes: [ 'oo-ui-fieldLayout-help' ],
|
||||
framed: false,
|
||||
icon: 'info'
|
||||
icon: 'info',
|
||||
label: OO.ui.msg( 'ooui-field-help' )
|
||||
} );
|
||||
if ( config.help instanceof OO.ui.HtmlSnippet ) {
|
||||
this.popupButtonWidget.getPopup().$body.html( config.help.toString() );
|
||||
|
|
@ -11744,7 +11688,8 @@ OO.ui.FieldsetLayout = function OoUiFieldsetLayout( config ) {
|
|||
},
|
||||
classes: [ 'oo-ui-fieldsetLayout-help' ],
|
||||
framed: false,
|
||||
icon: 'info'
|
||||
icon: 'info',
|
||||
label: OO.ui.msg( 'ooui-field-help' )
|
||||
} );
|
||||
if ( config.help instanceof OO.ui.HtmlSnippet ) {
|
||||
this.popupButtonWidget.getPopup().$body.html( config.help.toString() );
|
||||
|
|
@ -12030,6 +11975,371 @@ OO.ui.HorizontalLayout = function OoUiHorizontalLayout( config ) {
|
|||
OO.inheritClass( OO.ui.HorizontalLayout, OO.ui.Layout );
|
||||
OO.mixinClass( OO.ui.HorizontalLayout, OO.ui.mixin.GroupElement );
|
||||
|
||||
/**
|
||||
* NumberInputWidgets combine a {@link OO.ui.TextInputWidget text input} (where a value
|
||||
* can be entered manually) and two {@link OO.ui.ButtonWidget button widgets}
|
||||
* (to adjust the value in increments) to allow the user to enter a number.
|
||||
*
|
||||
* @example
|
||||
* // Example: A NumberInputWidget.
|
||||
* var numberInput = new OO.ui.NumberInputWidget( {
|
||||
* label: 'NumberInputWidget',
|
||||
* input: { value: 5 },
|
||||
* min: 1,
|
||||
* max: 10
|
||||
* } );
|
||||
* $( 'body' ).append( numberInput.$element );
|
||||
*
|
||||
* @class
|
||||
* @extends OO.ui.TextInputWidget
|
||||
*
|
||||
* @constructor
|
||||
* @param {Object} [config] Configuration options
|
||||
* @cfg {Object} [minusButton] Configuration options to pass to the {@link OO.ui.ButtonWidget decrementing button widget}.
|
||||
* @cfg {Object} [plusButton] Configuration options to pass to the {@link OO.ui.ButtonWidget incrementing button widget}.
|
||||
* @cfg {boolean} [allowInteger=false] Whether the field accepts only integer values.
|
||||
* @cfg {number} [min=-Infinity] Minimum allowed value
|
||||
* @cfg {number} [max=Infinity] Maximum allowed value
|
||||
* @cfg {number} [step=1] Delta when using the buttons or up/down arrow keys
|
||||
* @cfg {number|null} [pageStep] Delta when using the page-up/page-down keys. Defaults to 10 times #step.
|
||||
* @cfg {boolean} [showButtons=true] Whether to show the plus and minus buttons.
|
||||
*/
|
||||
OO.ui.NumberInputWidget = function OoUiNumberInputWidget( config ) {
|
||||
var $field = $( '<div>' )
|
||||
.addClass( 'oo-ui-numberInputWidget-field' );
|
||||
|
||||
// Configuration initialization
|
||||
config = $.extend( {
|
||||
allowInteger: false,
|
||||
min: -Infinity,
|
||||
max: Infinity,
|
||||
step: 1,
|
||||
pageStep: null,
|
||||
showButtons: true
|
||||
}, config );
|
||||
|
||||
// For backward compatibility
|
||||
$.extend( config, config.input );
|
||||
this.input = this;
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.NumberInputWidget.parent.call( this, $.extend( config, {
|
||||
type: 'number'
|
||||
} ) );
|
||||
|
||||
if ( config.showButtons ) {
|
||||
this.minusButton = new OO.ui.ButtonWidget( $.extend(
|
||||
{
|
||||
disabled: this.isDisabled(),
|
||||
tabIndex: -1,
|
||||
classes: [ 'oo-ui-numberInputWidget-minusButton' ],
|
||||
icon: 'subtract'
|
||||
},
|
||||
config.minusButton
|
||||
) );
|
||||
this.minusButton.$element.attr( 'aria-hidden', 'true' );
|
||||
this.plusButton = new OO.ui.ButtonWidget( $.extend(
|
||||
{
|
||||
disabled: this.isDisabled(),
|
||||
tabIndex: -1,
|
||||
classes: [ 'oo-ui-numberInputWidget-plusButton' ],
|
||||
icon: 'add'
|
||||
},
|
||||
config.plusButton
|
||||
) );
|
||||
this.plusButton.$element.attr( 'aria-hidden', 'true' );
|
||||
}
|
||||
|
||||
// Events
|
||||
this.$input.on( {
|
||||
keydown: this.onKeyDown.bind( this ),
|
||||
'wheel mousewheel DOMMouseScroll': this.onWheel.bind( this )
|
||||
} );
|
||||
if ( config.showButtons ) {
|
||||
this.plusButton.connect( this, {
|
||||
click: [ 'onButtonClick', +1 ]
|
||||
} );
|
||||
this.minusButton.connect( this, {
|
||||
click: [ 'onButtonClick', -1 ]
|
||||
} );
|
||||
}
|
||||
|
||||
// Build the field
|
||||
$field.append( this.$input );
|
||||
if ( config.showButtons ) {
|
||||
$field
|
||||
.prepend( this.minusButton.$element )
|
||||
.append( this.plusButton.$element );
|
||||
}
|
||||
|
||||
// Initialization
|
||||
this.setAllowInteger( config.allowInteger || config.isInteger );
|
||||
this.setRange( config.min, config.max );
|
||||
this.setStep( config.step, config.pageStep );
|
||||
// Set the validation method after we set allowInteger and range
|
||||
// so that it doesn't immediately call setValidityFlag
|
||||
this.setValidation( this.validateNumber.bind( this ) );
|
||||
|
||||
this.$element
|
||||
.addClass( 'oo-ui-numberInputWidget' )
|
||||
.toggleClass( 'oo-ui-numberInputWidget-buttoned', config.showButtons )
|
||||
.append( $field );
|
||||
};
|
||||
|
||||
/* Setup */
|
||||
|
||||
OO.inheritClass( OO.ui.NumberInputWidget, OO.ui.TextInputWidget );
|
||||
|
||||
/* Methods */
|
||||
|
||||
/**
|
||||
* Set whether only integers are allowed
|
||||
*
|
||||
* @param {boolean} flag
|
||||
*/
|
||||
OO.ui.NumberInputWidget.prototype.setAllowInteger = function ( flag ) {
|
||||
this.allowInteger = !!flag;
|
||||
this.setValidityFlag();
|
||||
};
|
||||
// Backward compatibility
|
||||
OO.ui.NumberInputWidget.prototype.setIsInteger = OO.ui.NumberInputWidget.prototype.setAllowInteger;
|
||||
|
||||
/**
|
||||
* Get whether only integers are allowed
|
||||
*
|
||||
* @return {boolean} Flag value
|
||||
*/
|
||||
OO.ui.NumberInputWidget.prototype.getAllowInteger = function () {
|
||||
return this.allowInteger;
|
||||
};
|
||||
// Backward compatibility
|
||||
OO.ui.NumberInputWidget.prototype.getIsInteger = OO.ui.NumberInputWidget.prototype.getAllowInteger;
|
||||
|
||||
/**
|
||||
* Set the range of allowed values
|
||||
*
|
||||
* @param {number} min Minimum allowed value
|
||||
* @param {number} max Maximum allowed value
|
||||
*/
|
||||
OO.ui.NumberInputWidget.prototype.setRange = function ( min, max ) {
|
||||
if ( min > max ) {
|
||||
throw new Error( 'Minimum (' + min + ') must not be greater than maximum (' + max + ')' );
|
||||
}
|
||||
this.min = min;
|
||||
this.max = max;
|
||||
this.$input.attr( 'min', this.min );
|
||||
this.$input.attr( 'max', this.max );
|
||||
this.setValidityFlag();
|
||||
};
|
||||
|
||||
/**
|
||||
* Get the current range
|
||||
*
|
||||
* @return {number[]} Minimum and maximum values
|
||||
*/
|
||||
OO.ui.NumberInputWidget.prototype.getRange = function () {
|
||||
return [ this.min, this.max ];
|
||||
};
|
||||
|
||||
/**
|
||||
* Set the stepping deltas
|
||||
*
|
||||
* @param {number} step Normal step
|
||||
* @param {number|null} pageStep Page step. If null, 10 * step will be used.
|
||||
*/
|
||||
OO.ui.NumberInputWidget.prototype.setStep = function ( step, pageStep ) {
|
||||
if ( step <= 0 ) {
|
||||
throw new Error( 'Step value must be positive' );
|
||||
}
|
||||
if ( pageStep === null ) {
|
||||
pageStep = step * 10;
|
||||
} else if ( pageStep <= 0 ) {
|
||||
throw new Error( 'Page step value must be positive' );
|
||||
}
|
||||
this.step = step;
|
||||
this.pageStep = pageStep;
|
||||
this.$input.attr( 'step', this.step );
|
||||
};
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
OO.ui.NumberInputWidget.prototype.setValue = function ( value ) {
|
||||
if ( value === '' ) {
|
||||
// Some browsers allow a value in the input even if there isn't one reported by $input.val()
|
||||
// so here we make sure an 'empty' value is actually displayed as such.
|
||||
this.$input.val( '' );
|
||||
}
|
||||
return OO.ui.NumberInputWidget.parent.prototype.setValue.call( this, value );
|
||||
};
|
||||
|
||||
/**
|
||||
* Get the current stepping values
|
||||
*
|
||||
* @return {number[]} Step and page step
|
||||
*/
|
||||
OO.ui.NumberInputWidget.prototype.getStep = function () {
|
||||
return [ this.step, this.pageStep ];
|
||||
};
|
||||
|
||||
/**
|
||||
* Get the current value of the widget as a number
|
||||
*
|
||||
* @return {number} May be NaN, or an invalid number
|
||||
*/
|
||||
OO.ui.NumberInputWidget.prototype.getNumericValue = function () {
|
||||
return +this.getValue();
|
||||
};
|
||||
|
||||
/**
|
||||
* Adjust the value of the widget
|
||||
*
|
||||
* @param {number} delta Adjustment amount
|
||||
*/
|
||||
OO.ui.NumberInputWidget.prototype.adjustValue = function ( delta ) {
|
||||
var n, v = this.getNumericValue();
|
||||
|
||||
delta = +delta;
|
||||
if ( isNaN( delta ) || !isFinite( delta ) ) {
|
||||
throw new Error( 'Delta must be a finite number' );
|
||||
}
|
||||
|
||||
if ( isNaN( v ) ) {
|
||||
n = 0;
|
||||
} else {
|
||||
n = v + delta;
|
||||
n = Math.max( Math.min( n, this.max ), this.min );
|
||||
if ( this.allowInteger ) {
|
||||
n = Math.round( n );
|
||||
}
|
||||
}
|
||||
|
||||
if ( n !== v ) {
|
||||
this.setValue( n );
|
||||
}
|
||||
};
|
||||
/**
|
||||
* Validate input
|
||||
*
|
||||
* @private
|
||||
* @param {string} value Field value
|
||||
* @return {boolean}
|
||||
*/
|
||||
OO.ui.NumberInputWidget.prototype.validateNumber = function ( value ) {
|
||||
var n = +value;
|
||||
if ( value === '' ) {
|
||||
return !this.isRequired();
|
||||
}
|
||||
|
||||
if ( isNaN( n ) || !isFinite( n ) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ( this.allowInteger && Math.floor( n ) !== n ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ( n < this.min || n > this.max ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
};
|
||||
|
||||
/**
|
||||
* Handle mouse click events.
|
||||
*
|
||||
* @private
|
||||
* @param {number} dir +1 or -1
|
||||
*/
|
||||
OO.ui.NumberInputWidget.prototype.onButtonClick = function ( dir ) {
|
||||
this.adjustValue( dir * this.step );
|
||||
};
|
||||
|
||||
/**
|
||||
* Handle mouse wheel events.
|
||||
*
|
||||
* @private
|
||||
* @param {jQuery.Event} event
|
||||
*/
|
||||
OO.ui.NumberInputWidget.prototype.onWheel = function ( event ) {
|
||||
var delta = 0;
|
||||
|
||||
if ( !this.isDisabled() && this.$input.is( ':focus' ) ) {
|
||||
// Standard 'wheel' event
|
||||
if ( event.originalEvent.deltaMode !== undefined ) {
|
||||
this.sawWheelEvent = true;
|
||||
}
|
||||
if ( event.originalEvent.deltaY ) {
|
||||
delta = -event.originalEvent.deltaY;
|
||||
} else if ( event.originalEvent.deltaX ) {
|
||||
delta = event.originalEvent.deltaX;
|
||||
}
|
||||
|
||||
// Non-standard events
|
||||
if ( !this.sawWheelEvent ) {
|
||||
if ( event.originalEvent.wheelDeltaX ) {
|
||||
delta = -event.originalEvent.wheelDeltaX;
|
||||
} else if ( event.originalEvent.wheelDeltaY ) {
|
||||
delta = event.originalEvent.wheelDeltaY;
|
||||
} else if ( event.originalEvent.wheelDelta ) {
|
||||
delta = event.originalEvent.wheelDelta;
|
||||
} else if ( event.originalEvent.detail ) {
|
||||
delta = -event.originalEvent.detail;
|
||||
}
|
||||
}
|
||||
|
||||
if ( delta ) {
|
||||
delta = delta < 0 ? -1 : 1;
|
||||
this.adjustValue( delta * this.step );
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Handle key down events.
|
||||
*
|
||||
* @private
|
||||
* @param {jQuery.Event} e Key down event
|
||||
*/
|
||||
OO.ui.NumberInputWidget.prototype.onKeyDown = function ( e ) {
|
||||
if ( !this.isDisabled() ) {
|
||||
switch ( e.which ) {
|
||||
case OO.ui.Keys.UP:
|
||||
this.adjustValue( this.step );
|
||||
return false;
|
||||
case OO.ui.Keys.DOWN:
|
||||
this.adjustValue( -this.step );
|
||||
return false;
|
||||
case OO.ui.Keys.PAGEUP:
|
||||
this.adjustValue( this.pageStep );
|
||||
return false;
|
||||
case OO.ui.Keys.PAGEDOWN:
|
||||
this.adjustValue( -this.pageStep );
|
||||
return false;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
OO.ui.NumberInputWidget.prototype.setDisabled = function ( disabled ) {
|
||||
// Parent method
|
||||
OO.ui.NumberInputWidget.parent.prototype.setDisabled.call( this, disabled );
|
||||
|
||||
if ( this.minusButton ) {
|
||||
this.minusButton.setDisabled( this.isDisabled() );
|
||||
}
|
||||
if ( this.plusButton ) {
|
||||
this.plusButton.setDisabled( this.isDisabled() );
|
||||
}
|
||||
|
||||
return this;
|
||||
};
|
||||
|
||||
}( OO ) );
|
||||
|
||||
//# sourceMappingURL=oojs-ui-core.js.map
|
||||
|
|
@ -1,12 +1,12 @@
|
|||
/*!
|
||||
* OOUI v0.26.5
|
||||
* OOUI v0.27.0
|
||||
* https://www.mediawiki.org/wiki/OOUI
|
||||
*
|
||||
* Copyright 2011–2018 OOUI Team and other contributors.
|
||||
* Released under the MIT license
|
||||
* http://oojs.mit-license.org
|
||||
*
|
||||
* Date: 2018-04-24T23:29:05Z
|
||||
* Date: 2018-05-09T00:44:50Z
|
||||
*/
|
||||
.oo-ui-tool.oo-ui-widget > .oo-ui-tool-link > .oo-ui-iconWidget.oo-ui-iconElement-icon.oo-ui-tool-checkIcon {
|
||||
display: none;
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
/*!
|
||||
* OOUI v0.26.5
|
||||
* OOUI v0.27.0
|
||||
* https://www.mediawiki.org/wiki/OOUI
|
||||
*
|
||||
* Copyright 2011–2018 OOUI Team and other contributors.
|
||||
* Released under the MIT license
|
||||
* http://oojs.mit-license.org
|
||||
*
|
||||
* Date: 2018-04-24T23:29:05Z
|
||||
* Date: 2018-05-09T00:44:50Z
|
||||
*/
|
||||
/**
|
||||
* WikimediaUI Base v0.10.0
|
||||
|
|
@ -271,14 +271,14 @@
|
|||
background-color: #fff;
|
||||
min-width: 16em;
|
||||
margin: 0 -1px;
|
||||
border: 1px solid #eaecf0;
|
||||
border: 1px solid #c8ccd1;
|
||||
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.25);
|
||||
}
|
||||
.oo-ui-popupToolGroup-tools .oo-ui-tool-link {
|
||||
padding: 1em 0.85714286em 0.92857143em 2.64285714em;
|
||||
padding: 1em 0.85714286em 0.92857143em 0.85714286em;
|
||||
}
|
||||
.oo-ui-toolbar-narrow .oo-ui-popupToolGroup-tools .oo-ui-tool-link {
|
||||
padding-left: 2.5em;
|
||||
padding-left: 0.71428571em;
|
||||
padding-right: 0.71428571em;
|
||||
}
|
||||
.oo-ui-popupToolGroup-tools .oo-ui-tool-link .oo-ui-tool-title {
|
||||
|
|
@ -294,6 +294,12 @@
|
|||
.oo-ui-toolbar-narrow .oo-ui-popupToolGroup-tools .oo-ui-tool-link .oo-ui-tool-accel:not( :empty ) {
|
||||
padding-left: 1.14285714em;
|
||||
}
|
||||
.oo-ui-popupToolGroup-tools .oo-ui-iconElement .oo-ui-tool-link {
|
||||
padding-left: 2.64285714em;
|
||||
}
|
||||
.oo-ui-toolbar-narrow .oo-ui-popupToolGroup-tools .oo-ui-iconElement .oo-ui-tool-link {
|
||||
padding-left: 2.5em;
|
||||
}
|
||||
.oo-ui-popupToolGroup.oo-ui-widget-enabled > .oo-ui-popupToolGroup-handle {
|
||||
-webkit-transition: background-color 100ms, box-shadow 100ms;
|
||||
-moz-transition: background-color 100ms, box-shadow 100ms;
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
/*!
|
||||
* OOUI v0.26.5
|
||||
* OOUI v0.27.0
|
||||
* https://www.mediawiki.org/wiki/OOUI
|
||||
*
|
||||
* Copyright 2011–2018 OOUI Team and other contributors.
|
||||
* Released under the MIT license
|
||||
* http://oojs.mit-license.org
|
||||
*
|
||||
* Date: 2018-04-24T23:29:01Z
|
||||
* Date: 2018-05-09T00:44:45Z
|
||||
*/
|
||||
( function ( OO ) {
|
||||
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
/*!
|
||||
* OOUI v0.26.5
|
||||
* OOUI v0.27.0
|
||||
* https://www.mediawiki.org/wiki/OOUI
|
||||
*
|
||||
* Copyright 2011–2018 OOUI Team and other contributors.
|
||||
* Released under the MIT license
|
||||
* http://oojs.mit-license.org
|
||||
*
|
||||
* Date: 2018-04-24T23:29:05Z
|
||||
* Date: 2018-05-09T00:44:50Z
|
||||
*/
|
||||
.oo-ui-draggableElement-handle:not( .oo-ui-draggableElement-undraggable ).oo-ui-widget {
|
||||
cursor: move;
|
||||
|
|
@ -900,6 +900,8 @@
|
|||
max-width: 100%;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
}
|
||||
.oo-ui-tagItemWidget.oo-ui-labelElement:not( .oo-ui-tagItemWidget-fixed ) .oo-ui-labelElement-label {
|
||||
cursor: text;
|
||||
}
|
||||
.oo-ui-tagItemWidget:focus {
|
||||
|
|
@ -1144,38 +1146,3 @@
|
|||
padding: 1em;
|
||||
line-height: 0;
|
||||
}
|
||||
.oo-ui-numberInputWidget {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
max-width: 50em;
|
||||
}
|
||||
.oo-ui-numberInputWidget-buttoned .oo-ui-buttonWidget,
|
||||
.oo-ui-numberInputWidget-buttoned .oo-ui-inputWidget-input {
|
||||
display: table-cell;
|
||||
height: 100%;
|
||||
}
|
||||
.oo-ui-numberInputWidget-field {
|
||||
display: table;
|
||||
table-layout: fixed;
|
||||
width: 100%;
|
||||
}
|
||||
.oo-ui-numberInputWidget-field > .oo-ui-buttonWidget {
|
||||
width: 2.25em;
|
||||
}
|
||||
.oo-ui-numberInputWidget-buttoned .oo-ui-buttonElement-button .oo-ui-iconElement-icon {
|
||||
min-width: 20px;
|
||||
width: 1.5625em;
|
||||
}
|
||||
.oo-ui-numberInputWidget-buttoned .oo-ui-inputWidget-input {
|
||||
border-radius: 0;
|
||||
}
|
||||
.oo-ui-numberInputWidget-minusButton > .oo-ui-buttonElement-button {
|
||||
border-top-right-radius: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
border-right-width: 0;
|
||||
}
|
||||
.oo-ui-numberInputWidget-plusButton > .oo-ui-buttonElement-button {
|
||||
border-top-left-radius: 0;
|
||||
border-bottom-left-radius: 0;
|
||||
border-left-width: 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
/*!
|
||||
* OOUI v0.26.5
|
||||
* OOUI v0.27.0
|
||||
* https://www.mediawiki.org/wiki/OOUI
|
||||
*
|
||||
* Copyright 2011–2018 OOUI Team and other contributors.
|
||||
* Released under the MIT license
|
||||
* http://oojs.mit-license.org
|
||||
*
|
||||
* Date: 2018-04-24T23:29:05Z
|
||||
* Date: 2018-05-09T00:44:50Z
|
||||
*/
|
||||
/**
|
||||
* WikimediaUI Base v0.10.0
|
||||
|
|
@ -972,12 +972,12 @@
|
|||
max-width: 100%;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
}
|
||||
.oo-ui-tagItemWidget.oo-ui-labelElement:not( .oo-ui-tagItemWidget-fixed ) .oo-ui-labelElement-label {
|
||||
cursor: text;
|
||||
}
|
||||
.oo-ui-tagItemWidget.oo-ui-widget-enabled {
|
||||
background-color: #f8f9fa;
|
||||
color: #222;
|
||||
padding-right: 1.5em;
|
||||
-webkit-transition: background-color 100ms, color 100ms, border-color 100ms, box-shadow 100ms;
|
||||
-moz-transition: background-color 100ms, color 100ms, border-color 100ms, box-shadow 100ms;
|
||||
transition: background-color 100ms, color 100ms, border-color 100ms, box-shadow 100ms;
|
||||
|
|
@ -992,6 +992,10 @@
|
|||
box-shadow: inset 0 0 0 1px #36c;
|
||||
outline: 0;
|
||||
}
|
||||
.oo-ui-tagItemWidget.oo-ui-widget-enabled:not( .oo-ui-tagItemWidget-fixed ) {
|
||||
background-color: #f8f9fa;
|
||||
padding-right: 1.5em;
|
||||
}
|
||||
.oo-ui-tagItemWidget.oo-ui-widget-enabled.oo-ui-flaggedElement-invalid {
|
||||
border-color: #d33;
|
||||
}
|
||||
|
|
@ -1002,6 +1006,9 @@
|
|||
border-color: #d33;
|
||||
box-shadow: inset 0 0 0 1px #d33;
|
||||
}
|
||||
.oo-ui-tagItemWidget.oo-ui-widget-enabled > .oo-ui-labelElement-label {
|
||||
margin-top: -1px;
|
||||
}
|
||||
.oo-ui-tagItemWidget.oo-ui-widget-enabled > .oo-ui-buttonElement {
|
||||
display: block;
|
||||
position: absolute;
|
||||
|
|
@ -1014,6 +1021,7 @@
|
|||
padding-left: 1.42857143em;
|
||||
}
|
||||
.oo-ui-tagItemWidget.oo-ui-widget-enabled .oo-ui-buttonElement-button .oo-ui-icon-close {
|
||||
left: 0.28571429em;
|
||||
min-width: 14px;
|
||||
width: 1em;
|
||||
}
|
||||
|
|
@ -1203,6 +1211,9 @@
|
|||
box-shadow: inset 0 0 0 1px #36c;
|
||||
outline: 0;
|
||||
}
|
||||
.oo-ui-capsuleItemWidget.oo-ui-widget-enabled > .oo-ui-labelElement-label {
|
||||
margin-top: -1px;
|
||||
}
|
||||
.oo-ui-capsuleItemWidget.oo-ui-widget-enabled > .oo-ui-buttonElement {
|
||||
display: block;
|
||||
position: absolute;
|
||||
|
|
@ -1215,6 +1226,7 @@
|
|||
padding-left: 1.42857143em;
|
||||
}
|
||||
.oo-ui-capsuleItemWidget.oo-ui-widget-enabled .oo-ui-buttonElement-button .oo-ui-icon-close {
|
||||
left: 0.28571429em;
|
||||
min-width: 14px;
|
||||
width: 1em;
|
||||
}
|
||||
|
|
@ -1262,48 +1274,3 @@
|
|||
padding: 1.14285714em;
|
||||
line-height: 0;
|
||||
}
|
||||
.oo-ui-numberInputWidget {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
max-width: 50em;
|
||||
}
|
||||
.oo-ui-numberInputWidget-buttoned .oo-ui-buttonWidget,
|
||||
.oo-ui-numberInputWidget-buttoned .oo-ui-inputWidget-input {
|
||||
display: table-cell;
|
||||
height: 100%;
|
||||
}
|
||||
.oo-ui-numberInputWidget-field {
|
||||
display: table;
|
||||
table-layout: fixed;
|
||||
width: 100%;
|
||||
}
|
||||
.oo-ui-numberInputWidget-buttoned .oo-ui-buttonWidget {
|
||||
width: 2.64285714em;
|
||||
}
|
||||
.oo-ui-numberInputWidget-buttoned .oo-ui-buttonWidget .oo-ui-buttonElement-button {
|
||||
display: block;
|
||||
min-width: 37px;
|
||||
min-height: 2.28571429em;
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
}
|
||||
.oo-ui-numberInputWidget-buttoned .oo-ui-buttonWidget .oo-ui-buttonElement-button .oo-ui-iconElement-icon {
|
||||
left: 0.57142857em;
|
||||
}
|
||||
.oo-ui-numberInputWidget-buttoned .oo-ui-inputWidget-input {
|
||||
border-radius: 0;
|
||||
max-height: 2.28571429em;
|
||||
}
|
||||
.oo-ui-numberInputWidget-minusButton > .oo-ui-buttonElement-button {
|
||||
border-top-right-radius: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
border-right-width: 0;
|
||||
}
|
||||
.oo-ui-numberInputWidget-plusButton > .oo-ui-buttonElement-button {
|
||||
border-top-left-radius: 0;
|
||||
border-bottom-left-radius: 0;
|
||||
border-left-width: 0;
|
||||
}
|
||||
.oo-ui-numberInputWidget.oo-ui-widget-disabled.oo-ui-numberInputWidget-buttoned .oo-ui-iconElement-icon {
|
||||
opacity: 1;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
/*!
|
||||
* OOUI v0.26.5
|
||||
* OOUI v0.27.0
|
||||
* https://www.mediawiki.org/wiki/OOUI
|
||||
*
|
||||
* Copyright 2011–2018 OOUI Team and other contributors.
|
||||
* Released under the MIT license
|
||||
* http://oojs.mit-license.org
|
||||
*
|
||||
* Date: 2018-04-24T23:29:01Z
|
||||
* Date: 2018-05-09T00:44:45Z
|
||||
*/
|
||||
( function ( OO ) {
|
||||
|
||||
|
|
@ -4513,6 +4513,8 @@ OO.ui.CapsuleMultiselectWidget.prototype.focus = function () {
|
|||
* @constructor
|
||||
* @param {Object} [config] Configuration object
|
||||
* @cfg {boolean} [valid=true] Item is valid
|
||||
* @cfg {boolean} [fixed] Item is fixed. This means the item is
|
||||
* always included in the values and cannot be removed.
|
||||
*/
|
||||
OO.ui.TagItemWidget = function OoUiTagItemWidget( config ) {
|
||||
config = config || {};
|
||||
|
|
@ -4528,6 +4530,7 @@ OO.ui.TagItemWidget = function OoUiTagItemWidget( config ) {
|
|||
OO.ui.mixin.DraggableElement.call( this, config );
|
||||
|
||||
this.valid = config.valid === undefined ? true : !!config.valid;
|
||||
this.fixed = !!config.fixed;
|
||||
|
||||
this.closeButton = new OO.ui.ButtonWidget( {
|
||||
framed: false,
|
||||
|
|
@ -4597,27 +4600,74 @@ OO.mixinClass( OO.ui.TagItemWidget, OO.ui.mixin.DraggableElement );
|
|||
*/
|
||||
|
||||
/**
|
||||
* @event disabled
|
||||
* @param {boolean} isDisabled Item is disabled
|
||||
* @event fixed
|
||||
* @param {boolean} isFixed Item is fixed
|
||||
*
|
||||
* Item disabled state has changed
|
||||
* Item fixed state has changed
|
||||
*/
|
||||
|
||||
/* Methods */
|
||||
|
||||
/**
|
||||
* Set this item as fixed, meaning it cannot be removed
|
||||
*
|
||||
* @param {string} [state] Item is fixed
|
||||
* @fires fixed
|
||||
*/
|
||||
OO.ui.TagItemWidget.prototype.setFixed = function ( state ) {
|
||||
state = state === undefined ? !this.fixed : !!state;
|
||||
|
||||
if ( this.fixed !== state ) {
|
||||
this.fixed = state;
|
||||
if ( this.closeButton ) {
|
||||
this.closeButton.toggle( !this.fixed );
|
||||
}
|
||||
|
||||
if ( !this.fixed && this.elementGroup && !this.elementGroup.isDraggable() ) {
|
||||
// Only enable the state of the item if the
|
||||
// entire group is draggable
|
||||
this.toggleDraggable( !this.fixed );
|
||||
}
|
||||
this.$element.toggleClass( 'oo-ui-tagItemWidget-fixed', this.fixed );
|
||||
|
||||
this.emit( 'fixed', this.isFixed() );
|
||||
}
|
||||
return this;
|
||||
};
|
||||
|
||||
/**
|
||||
* Check whether the item is fixed
|
||||
*/
|
||||
OO.ui.TagItemWidget.prototype.isFixed = function () {
|
||||
return this.fixed;
|
||||
};
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
* @fires disabled
|
||||
*/
|
||||
OO.ui.TagItemWidget.prototype.setDisabled = function ( state ) {
|
||||
if ( state && this.elementGroup && !this.elementGroup.isDisabled() ) {
|
||||
OO.ui.warnDeprecation( 'TagItemWidget#setDisabled: Disabling individual items is deprecated and will result in inconsistent behavior. Use #setFixed instead. See T193571.' );
|
||||
}
|
||||
// Parent method
|
||||
OO.ui.TagItemWidget.parent.prototype.setDisabled.call( this, state );
|
||||
if (
|
||||
!state &&
|
||||
// Verify we have a group, and that the widget is ready
|
||||
this.toggleDraggable && this.elementGroup &&
|
||||
!this.isFixed() &&
|
||||
!this.elementGroup.isDraggable()
|
||||
) {
|
||||
// Only enable the draggable state of the item if the
|
||||
// entire group is draggable to begin with, and if the
|
||||
// item is not fixed
|
||||
this.toggleDraggable( !state );
|
||||
}
|
||||
|
||||
if ( this.closeButton ) {
|
||||
this.closeButton.setDisabled( state );
|
||||
}
|
||||
|
||||
this.emit( 'disabled', this.isDisabled() );
|
||||
return this;
|
||||
};
|
||||
|
||||
|
|
@ -4648,7 +4698,7 @@ OO.ui.TagItemWidget.prototype.remove = function () {
|
|||
OO.ui.TagItemWidget.prototype.onKeyDown = function ( e ) {
|
||||
var movement;
|
||||
|
||||
if ( !this.isDisabled() && e.keyCode === OO.ui.Keys.BACKSPACE || e.keyCode === OO.ui.Keys.DELETE ) {
|
||||
if ( !this.isDisabled() && !this.isFixed() && e.keyCode === OO.ui.Keys.BACKSPACE || e.keyCode === OO.ui.Keys.DELETE ) {
|
||||
this.remove();
|
||||
return false;
|
||||
} else if ( e.keyCode === OO.ui.Keys.ENTER ) {
|
||||
|
|
@ -4825,12 +4875,12 @@ OO.ui.TagMultiselectWidget = function OoUiTagMultiselectWidget( config ) {
|
|||
remove: 'itemRemove',
|
||||
navigate: 'itemNavigate',
|
||||
select: 'itemSelect',
|
||||
disabled: 'itemDisabled'
|
||||
fixed: 'itemFixed'
|
||||
} );
|
||||
this.connect( this, {
|
||||
itemRemove: 'onTagRemove',
|
||||
itemSelect: 'onTagSelect',
|
||||
itemDisabled: 'onTagDisabled',
|
||||
itemFixed: 'onTagFixed',
|
||||
itemNavigate: 'onTagNavigate',
|
||||
change: 'onChangeTags'
|
||||
} );
|
||||
|
|
@ -5126,7 +5176,7 @@ OO.ui.TagMultiselectWidget.prototype.doInputArrow = function ( e, direction ) {
|
|||
* @param {OO.ui.TagItemWidget} item Selected item
|
||||
*/
|
||||
OO.ui.TagMultiselectWidget.prototype.onTagSelect = function ( item ) {
|
||||
if ( this.hasInput && this.allowEditTags ) {
|
||||
if ( this.hasInput && this.allowEditTags && !item.isFixed() ) {
|
||||
if ( this.input.getValue() ) {
|
||||
this.addTagFromInput();
|
||||
}
|
||||
|
|
@ -5140,16 +5190,21 @@ OO.ui.TagMultiselectWidget.prototype.onTagSelect = function ( item ) {
|
|||
};
|
||||
|
||||
/**
|
||||
* Respond to item disabled state change
|
||||
* Respond to item fixed state change
|
||||
*
|
||||
* @param {OO.ui.TagItemWidget} item Selected item
|
||||
* @param {boolean} isDisabled Item is disabled
|
||||
*/
|
||||
OO.ui.TagMultiselectWidget.prototype.onTagDisabled = function ( item, isDisabled ) {
|
||||
if ( isDisabled ) {
|
||||
// Move item to start if it is disabled
|
||||
this.addItems( item, 0 );
|
||||
OO.ui.TagMultiselectWidget.prototype.onTagFixed = function ( item ) {
|
||||
var i,
|
||||
items = this.getItems();
|
||||
|
||||
// Move item to the end of the static items
|
||||
for ( i = 0; i < items.length; i++ ) {
|
||||
if ( items[ i ] !== item && !items[ i ].isFixed() ) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
this.addItems( item, i );
|
||||
};
|
||||
/**
|
||||
* Respond to change event, where items were added, removed, or cleared.
|
||||
|
|
@ -5858,20 +5913,25 @@ OO.ui.MenuTagMultiselectWidget.prototype.onMenuToggle = function ( isVisible ) {
|
|||
*/
|
||||
OO.ui.MenuTagMultiselectWidget.prototype.onTagSelect = function ( tagItem ) {
|
||||
var menuItem = this.menu.findItemFromData( tagItem.getData() );
|
||||
// Override the base behavior from TagMultiselectWidget; the base behavior
|
||||
// in TagMultiselectWidget is to remove the tag to edit it in the input,
|
||||
// but in our case, we want to utilize the menu selection behavior, and
|
||||
// definitely not remove the item.
|
||||
if ( !this.allowArbitrary ) {
|
||||
// Override the base behavior from TagMultiselectWidget; the base behavior
|
||||
// in TagMultiselectWidget is to remove the tag to edit it in the input,
|
||||
// but in our case, we want to utilize the menu selection behavior, and
|
||||
// definitely not remove the item.
|
||||
|
||||
// If there is an input that is used for filtering, erase the value so we don't filter
|
||||
if ( this.hasInput && this.menu.filterFromInput ) {
|
||||
this.input.setValue( '' );
|
||||
// If there is an input that is used for filtering, erase the value so we don't filter
|
||||
if ( this.hasInput && this.menu.filterFromInput ) {
|
||||
this.input.setValue( '' );
|
||||
}
|
||||
|
||||
// Select the menu item
|
||||
this.menu.selectItem( menuItem );
|
||||
|
||||
this.focus();
|
||||
} else {
|
||||
// Use the default
|
||||
OO.ui.MenuTagMultiselectWidget.parent.prototype.onTagSelect.call( this, tagItem );
|
||||
}
|
||||
|
||||
// Select the menu item
|
||||
this.menu.selectItem( menuItem );
|
||||
|
||||
this.focus();
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
@ -6065,6 +6125,7 @@ OO.ui.SelectFileWidget = function OoUiSelectFileWidget( config ) {
|
|||
this.onFileSelectedHandler = this.onFileSelected.bind( this );
|
||||
|
||||
this.selectButton = new OO.ui.ButtonWidget( {
|
||||
$element: $( '<label>' ),
|
||||
classes: [ 'oo-ui-selectFileWidget-selectButton' ],
|
||||
label: OO.ui.msg( 'ooui-selectfile-button-select' ),
|
||||
disabled: this.disabled || !this.isSupported
|
||||
|
|
@ -6649,366 +6710,6 @@ OO.ui.SearchWidget.prototype.getResults = function () {
|
|||
return this.results;
|
||||
};
|
||||
|
||||
/**
|
||||
* NumberInputWidgets combine a {@link OO.ui.TextInputWidget text input} (where a value
|
||||
* can be entered manually) and two {@link OO.ui.ButtonWidget button widgets}
|
||||
* (to adjust the value in increments) to allow the user to enter a number.
|
||||
*
|
||||
* @example
|
||||
* // Example: A NumberInputWidget.
|
||||
* var numberInput = new OO.ui.NumberInputWidget( {
|
||||
* label: 'NumberInputWidget',
|
||||
* input: { value: 5 },
|
||||
* min: 1,
|
||||
* max: 10
|
||||
* } );
|
||||
* $( 'body' ).append( numberInput.$element );
|
||||
*
|
||||
* @class
|
||||
* @extends OO.ui.TextInputWidget
|
||||
*
|
||||
* @constructor
|
||||
* @param {Object} [config] Configuration options
|
||||
* @cfg {Object} [minusButton] Configuration options to pass to the {@link OO.ui.ButtonWidget decrementing button widget}.
|
||||
* @cfg {Object} [plusButton] Configuration options to pass to the {@link OO.ui.ButtonWidget incrementing button widget}.
|
||||
* @cfg {boolean} [allowInteger=false] Whether the field accepts only integer values.
|
||||
* @cfg {number} [min=-Infinity] Minimum allowed value
|
||||
* @cfg {number} [max=Infinity] Maximum allowed value
|
||||
* @cfg {number} [step=1] Delta when using the buttons or up/down arrow keys
|
||||
* @cfg {number|null} [pageStep] Delta when using the page-up/page-down keys. Defaults to 10 times #step.
|
||||
* @cfg {boolean} [showButtons=true] Whether to show the plus and minus buttons.
|
||||
*/
|
||||
OO.ui.NumberInputWidget = function OoUiNumberInputWidget( config ) {
|
||||
var $field = $( '<div>' )
|
||||
.addClass( 'oo-ui-numberInputWidget-field' );
|
||||
|
||||
// Configuration initialization
|
||||
config = $.extend( {
|
||||
allowInteger: false,
|
||||
min: -Infinity,
|
||||
max: Infinity,
|
||||
step: 1,
|
||||
pageStep: null,
|
||||
showButtons: true
|
||||
}, config );
|
||||
|
||||
// For backward compatibility
|
||||
$.extend( config, config.input );
|
||||
this.input = this;
|
||||
|
||||
// Parent constructor
|
||||
OO.ui.NumberInputWidget.parent.call( this, $.extend( config, {
|
||||
type: 'number'
|
||||
} ) );
|
||||
|
||||
if ( config.showButtons ) {
|
||||
this.minusButton = new OO.ui.ButtonWidget( $.extend(
|
||||
{
|
||||
disabled: this.isDisabled(),
|
||||
tabIndex: -1,
|
||||
classes: [ 'oo-ui-numberInputWidget-minusButton' ],
|
||||
icon: 'subtract'
|
||||
},
|
||||
config.minusButton
|
||||
) );
|
||||
this.plusButton = new OO.ui.ButtonWidget( $.extend(
|
||||
{
|
||||
disabled: this.isDisabled(),
|
||||
tabIndex: -1,
|
||||
classes: [ 'oo-ui-numberInputWidget-plusButton' ],
|
||||
icon: 'add'
|
||||
},
|
||||
config.plusButton
|
||||
) );
|
||||
}
|
||||
|
||||
// Events
|
||||
this.$input.on( {
|
||||
keydown: this.onKeyDown.bind( this ),
|
||||
'wheel mousewheel DOMMouseScroll': this.onWheel.bind( this )
|
||||
} );
|
||||
if ( config.showButtons ) {
|
||||
this.plusButton.connect( this, {
|
||||
click: [ 'onButtonClick', +1 ]
|
||||
} );
|
||||
this.minusButton.connect( this, {
|
||||
click: [ 'onButtonClick', -1 ]
|
||||
} );
|
||||
}
|
||||
|
||||
// Build the field
|
||||
$field.append( this.$input );
|
||||
if ( config.showButtons ) {
|
||||
$field
|
||||
.prepend( this.minusButton.$element )
|
||||
.append( this.plusButton.$element );
|
||||
}
|
||||
|
||||
// Initialization
|
||||
this.setAllowInteger( config.allowInteger || config.isInteger );
|
||||
this.setRange( config.min, config.max );
|
||||
this.setStep( config.step, config.pageStep );
|
||||
// Set the validation method after we set allowInteger and range
|
||||
// so that it doesn't immediately call setValidityFlag
|
||||
this.setValidation( this.validateNumber.bind( this ) );
|
||||
|
||||
this.$element
|
||||
.addClass( 'oo-ui-numberInputWidget' )
|
||||
.toggleClass( 'oo-ui-numberInputWidget-buttoned', config.showButtons )
|
||||
.append( $field );
|
||||
};
|
||||
|
||||
/* Setup */
|
||||
|
||||
OO.inheritClass( OO.ui.NumberInputWidget, OO.ui.TextInputWidget );
|
||||
|
||||
/* Methods */
|
||||
|
||||
/**
|
||||
* Set whether only integers are allowed
|
||||
*
|
||||
* @param {boolean} flag
|
||||
*/
|
||||
OO.ui.NumberInputWidget.prototype.setAllowInteger = function ( flag ) {
|
||||
this.allowInteger = !!flag;
|
||||
this.setValidityFlag();
|
||||
};
|
||||
// Backward compatibility
|
||||
OO.ui.NumberInputWidget.prototype.setIsInteger = OO.ui.NumberInputWidget.prototype.setAllowInteger;
|
||||
|
||||
/**
|
||||
* Get whether only integers are allowed
|
||||
*
|
||||
* @return {boolean} Flag value
|
||||
*/
|
||||
OO.ui.NumberInputWidget.prototype.getAllowInteger = function () {
|
||||
return this.allowInteger;
|
||||
};
|
||||
// Backward compatibility
|
||||
OO.ui.NumberInputWidget.prototype.getIsInteger = OO.ui.NumberInputWidget.prototype.getAllowInteger;
|
||||
|
||||
/**
|
||||
* Set the range of allowed values
|
||||
*
|
||||
* @param {number} min Minimum allowed value
|
||||
* @param {number} max Maximum allowed value
|
||||
*/
|
||||
OO.ui.NumberInputWidget.prototype.setRange = function ( min, max ) {
|
||||
if ( min > max ) {
|
||||
throw new Error( 'Minimum (' + min + ') must not be greater than maximum (' + max + ')' );
|
||||
}
|
||||
this.min = min;
|
||||
this.max = max;
|
||||
this.setValidityFlag();
|
||||
};
|
||||
|
||||
/**
|
||||
* Get the current range
|
||||
*
|
||||
* @return {number[]} Minimum and maximum values
|
||||
*/
|
||||
OO.ui.NumberInputWidget.prototype.getRange = function () {
|
||||
return [ this.min, this.max ];
|
||||
};
|
||||
|
||||
/**
|
||||
* Set the stepping deltas
|
||||
*
|
||||
* @param {number} step Normal step
|
||||
* @param {number|null} pageStep Page step. If null, 10 * step will be used.
|
||||
*/
|
||||
OO.ui.NumberInputWidget.prototype.setStep = function ( step, pageStep ) {
|
||||
if ( step <= 0 ) {
|
||||
throw new Error( 'Step value must be positive' );
|
||||
}
|
||||
if ( pageStep === null ) {
|
||||
pageStep = step * 10;
|
||||
} else if ( pageStep <= 0 ) {
|
||||
throw new Error( 'Page step value must be positive' );
|
||||
}
|
||||
this.step = step;
|
||||
this.pageStep = pageStep;
|
||||
};
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
OO.ui.NumberInputWidget.prototype.setValue = function ( value ) {
|
||||
if ( value === '' ) {
|
||||
// Some browsers allow a value in the input even if there isn't one reported by $input.val()
|
||||
// so here we make sure an 'empty' value is actually displayed as such.
|
||||
this.$input.val( '' );
|
||||
}
|
||||
return OO.ui.NumberInputWidget.parent.prototype.setValue.call( this, value );
|
||||
};
|
||||
|
||||
/**
|
||||
* Get the current stepping values
|
||||
*
|
||||
* @return {number[]} Step and page step
|
||||
*/
|
||||
OO.ui.NumberInputWidget.prototype.getStep = function () {
|
||||
return [ this.step, this.pageStep ];
|
||||
};
|
||||
|
||||
/**
|
||||
* Get the current value of the widget as a number
|
||||
*
|
||||
* @return {number} May be NaN, or an invalid number
|
||||
*/
|
||||
OO.ui.NumberInputWidget.prototype.getNumericValue = function () {
|
||||
return +this.getValue();
|
||||
};
|
||||
|
||||
/**
|
||||
* Adjust the value of the widget
|
||||
*
|
||||
* @param {number} delta Adjustment amount
|
||||
*/
|
||||
OO.ui.NumberInputWidget.prototype.adjustValue = function ( delta ) {
|
||||
var n, v = this.getNumericValue();
|
||||
|
||||
delta = +delta;
|
||||
if ( isNaN( delta ) || !isFinite( delta ) ) {
|
||||
throw new Error( 'Delta must be a finite number' );
|
||||
}
|
||||
|
||||
if ( isNaN( v ) ) {
|
||||
n = 0;
|
||||
} else {
|
||||
n = v + delta;
|
||||
n = Math.max( Math.min( n, this.max ), this.min );
|
||||
if ( this.allowInteger ) {
|
||||
n = Math.round( n );
|
||||
}
|
||||
}
|
||||
|
||||
if ( n !== v ) {
|
||||
this.setValue( n );
|
||||
}
|
||||
};
|
||||
/**
|
||||
* Validate input
|
||||
*
|
||||
* @private
|
||||
* @param {string} value Field value
|
||||
* @return {boolean}
|
||||
*/
|
||||
OO.ui.NumberInputWidget.prototype.validateNumber = function ( value ) {
|
||||
var n = +value;
|
||||
if ( value === '' ) {
|
||||
return !this.isRequired();
|
||||
}
|
||||
|
||||
if ( isNaN( n ) || !isFinite( n ) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ( this.allowInteger && Math.floor( n ) !== n ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ( n < this.min || n > this.max ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
};
|
||||
|
||||
/**
|
||||
* Handle mouse click events.
|
||||
*
|
||||
* @private
|
||||
* @param {number} dir +1 or -1
|
||||
*/
|
||||
OO.ui.NumberInputWidget.prototype.onButtonClick = function ( dir ) {
|
||||
this.adjustValue( dir * this.step );
|
||||
};
|
||||
|
||||
/**
|
||||
* Handle mouse wheel events.
|
||||
*
|
||||
* @private
|
||||
* @param {jQuery.Event} event
|
||||
*/
|
||||
OO.ui.NumberInputWidget.prototype.onWheel = function ( event ) {
|
||||
var delta = 0;
|
||||
|
||||
if ( !this.isDisabled() && this.$input.is( ':focus' ) ) {
|
||||
// Standard 'wheel' event
|
||||
if ( event.originalEvent.deltaMode !== undefined ) {
|
||||
this.sawWheelEvent = true;
|
||||
}
|
||||
if ( event.originalEvent.deltaY ) {
|
||||
delta = -event.originalEvent.deltaY;
|
||||
} else if ( event.originalEvent.deltaX ) {
|
||||
delta = event.originalEvent.deltaX;
|
||||
}
|
||||
|
||||
// Non-standard events
|
||||
if ( !this.sawWheelEvent ) {
|
||||
if ( event.originalEvent.wheelDeltaX ) {
|
||||
delta = -event.originalEvent.wheelDeltaX;
|
||||
} else if ( event.originalEvent.wheelDeltaY ) {
|
||||
delta = event.originalEvent.wheelDeltaY;
|
||||
} else if ( event.originalEvent.wheelDelta ) {
|
||||
delta = event.originalEvent.wheelDelta;
|
||||
} else if ( event.originalEvent.detail ) {
|
||||
delta = -event.originalEvent.detail;
|
||||
}
|
||||
}
|
||||
|
||||
if ( delta ) {
|
||||
delta = delta < 0 ? -1 : 1;
|
||||
this.adjustValue( delta * this.step );
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Handle key down events.
|
||||
*
|
||||
* @private
|
||||
* @param {jQuery.Event} e Key down event
|
||||
*/
|
||||
OO.ui.NumberInputWidget.prototype.onKeyDown = function ( e ) {
|
||||
if ( !this.isDisabled() ) {
|
||||
switch ( e.which ) {
|
||||
case OO.ui.Keys.UP:
|
||||
this.adjustValue( this.step );
|
||||
return false;
|
||||
case OO.ui.Keys.DOWN:
|
||||
this.adjustValue( -this.step );
|
||||
return false;
|
||||
case OO.ui.Keys.PAGEUP:
|
||||
this.adjustValue( this.pageStep );
|
||||
return false;
|
||||
case OO.ui.Keys.PAGEDOWN:
|
||||
this.adjustValue( -this.pageStep );
|
||||
return false;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
OO.ui.NumberInputWidget.prototype.setDisabled = function ( disabled ) {
|
||||
// Parent method
|
||||
OO.ui.NumberInputWidget.parent.prototype.setDisabled.call( this, disabled );
|
||||
|
||||
if ( this.minusButton ) {
|
||||
this.minusButton.setDisabled( this.isDisabled() );
|
||||
}
|
||||
if ( this.plusButton ) {
|
||||
this.plusButton.setDisabled( this.isDisabled() );
|
||||
}
|
||||
|
||||
return this;
|
||||
};
|
||||
|
||||
}( OO ) );
|
||||
|
||||
//# sourceMappingURL=oojs-ui-widgets.js.map
|
||||
|
|
@ -1,12 +1,12 @@
|
|||
/*!
|
||||
* OOUI v0.26.5
|
||||
* OOUI v0.27.0
|
||||
* https://www.mediawiki.org/wiki/OOUI
|
||||
*
|
||||
* Copyright 2011–2018 OOUI Team and other contributors.
|
||||
* Released under the MIT license
|
||||
* http://oojs.mit-license.org
|
||||
*
|
||||
* Date: 2018-04-24T23:29:01Z
|
||||
* Date: 2018-05-09T00:44:45Z
|
||||
*/
|
||||
( function ( OO ) {
|
||||
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
/*!
|
||||
* OOUI v0.26.5
|
||||
* OOUI v0.27.0
|
||||
* https://www.mediawiki.org/wiki/OOUI
|
||||
*
|
||||
* Copyright 2011–2018 OOUI Team and other contributors.
|
||||
* Released under the MIT license
|
||||
* http://oojs.mit-license.org
|
||||
*
|
||||
* Date: 2018-04-24T23:29:05Z
|
||||
* Date: 2018-05-09T00:44:50Z
|
||||
*/
|
||||
.oo-ui-actionWidget.oo-ui-pendingElement-pending {
|
||||
background-image: /* @embed */ url(themes/wikimediaui/images/textures/pending.gif);
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
/*!
|
||||
* OOUI v0.26.5
|
||||
* OOUI v0.27.0
|
||||
* https://www.mediawiki.org/wiki/OOUI
|
||||
*
|
||||
* Copyright 2011–2018 OOUI Team and other contributors.
|
||||
* Released under the MIT license
|
||||
* http://oojs.mit-license.org
|
||||
*
|
||||
* Date: 2018-04-24T23:29:05Z
|
||||
* Date: 2018-05-09T00:44:50Z
|
||||
*/
|
||||
/**
|
||||
* WikimediaUI Base v0.10.0
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
/*!
|
||||
* OOUI v0.26.5
|
||||
* OOUI v0.27.0
|
||||
* https://www.mediawiki.org/wiki/OOUI
|
||||
*
|
||||
* Copyright 2011–2018 OOUI Team and other contributors.
|
||||
* Released under the MIT license
|
||||
* http://oojs.mit-license.org
|
||||
*
|
||||
* Date: 2018-04-24T23:29:01Z
|
||||
* Date: 2018-05-09T00:44:45Z
|
||||
*/
|
||||
( function ( OO ) {
|
||||
|
||||
|
|
@ -2607,6 +2607,10 @@ OO.ui.Dialog.prototype.onActionsChange = function () {
|
|||
this.detachActions();
|
||||
if ( !this.isClosing() ) {
|
||||
this.attachActions();
|
||||
if ( !this.isOpening() ) {
|
||||
// If the dialog is currently opening, this will be called automatically soon.
|
||||
this.updateSize();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
@ -2857,34 +2861,6 @@ OO.ui.MessageDialog.static.actions = [
|
|||
|
||||
/* Methods */
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
OO.ui.MessageDialog.prototype.setManager = function ( manager ) {
|
||||
OO.ui.MessageDialog.parent.prototype.setManager.call( this, manager );
|
||||
|
||||
// Events
|
||||
this.manager.connect( this, {
|
||||
resize: 'onResize'
|
||||
} );
|
||||
|
||||
return this;
|
||||
};
|
||||
|
||||
/**
|
||||
* Handle window resized events.
|
||||
*
|
||||
* @private
|
||||
*/
|
||||
OO.ui.MessageDialog.prototype.onResize = function () {
|
||||
var dialog = this;
|
||||
dialog.fitActions();
|
||||
// Wait for CSS transition to finish and do it again :(
|
||||
setTimeout( function () {
|
||||
dialog.fitActions();
|
||||
}, 300 );
|
||||
};
|
||||
|
||||
/**
|
||||
* Toggle action layout between vertical and horizontal.
|
||||
*
|
||||
|
|
@ -2985,7 +2961,9 @@ OO.ui.MessageDialog.prototype.getBodyHeight = function () {
|
|||
* @inheritdoc
|
||||
*/
|
||||
OO.ui.MessageDialog.prototype.setDimensions = function ( dim ) {
|
||||
var $scrollable = this.container.$element;
|
||||
var
|
||||
dialog = this,
|
||||
$scrollable = this.container.$element;
|
||||
OO.ui.MessageDialog.parent.prototype.setDimensions.call( this, dim );
|
||||
|
||||
// Twiddle the overflow property, otherwise an unnecessary scrollbar will be produced.
|
||||
|
|
@ -3007,6 +2985,12 @@ OO.ui.MessageDialog.prototype.setDimensions = function ( dim ) {
|
|||
$scrollable[ 0 ].style.overflow = oldOverflow;
|
||||
}, 300 );
|
||||
|
||||
dialog.fitActions();
|
||||
// Wait for CSS transition to finish and do it again :(
|
||||
setTimeout( function () {
|
||||
dialog.fitActions();
|
||||
}, 300 );
|
||||
|
||||
return this;
|
||||
};
|
||||
|
||||
|
|
@ -3066,12 +3050,6 @@ OO.ui.MessageDialog.prototype.attachActions = function () {
|
|||
this.$actions.append( special.primary.$element );
|
||||
special.primary.toggleFramed( false );
|
||||
}
|
||||
|
||||
if ( !this.isOpening() ) {
|
||||
// If the dialog is currently opening, this will be called automatically soon.
|
||||
// This also calls #fitActions.
|
||||
this.updateSize();
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
@ -3304,9 +3282,6 @@ OO.ui.ProcessDialog.prototype.attachActions = function () {
|
|||
if ( special.safe ) {
|
||||
this.$safeActions.append( special.safe.$element );
|
||||
}
|
||||
|
||||
this.fitLabel();
|
||||
this.$body.css( 'bottom', this.$foot.outerHeight( true ) );
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
@ -3324,10 +3299,20 @@ OO.ui.ProcessDialog.prototype.executeAction = function ( action ) {
|
|||
* @inheritdoc
|
||||
*/
|
||||
OO.ui.ProcessDialog.prototype.setDimensions = function () {
|
||||
var dialog = this;
|
||||
|
||||
// Parent method
|
||||
OO.ui.ProcessDialog.parent.prototype.setDimensions.apply( this, arguments );
|
||||
|
||||
this.fitLabel();
|
||||
|
||||
// If there are many actions, they might be shown on multiple lines. Their layout can change when
|
||||
// resizing the dialog and when changing the actions. Adjust the height of the footer to fit them.
|
||||
dialog.$body.css( 'bottom', dialog.$foot.outerHeight( true ) );
|
||||
// Wait for CSS transition to finish and do it again :(
|
||||
setTimeout( function () {
|
||||
dialog.$body.css( 'bottom', dialog.$foot.outerHeight( true ) );
|
||||
}, 300 );
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -2,21 +2,35 @@
|
|||
"prefix": "oo-ui-icon",
|
||||
"intro": "@import '../../../../src/styles/common';",
|
||||
"images": {
|
||||
"bright": { "file": "../wikimediaui/images/icons/bright.svg" },
|
||||
"halfBright": { "file": {
|
||||
"ltr": "../wikimediaui/images/icons/halfBright-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/halfBright-rtl.svg"
|
||||
} },
|
||||
"notBright": { "file": "../wikimediaui/images/icons/notBright.svg" },
|
||||
"eye": { "file": "../wikimediaui/images/icons/eye.svg" },
|
||||
"eyeClosed": { "file": "../wikimediaui/images/icons/eyeClosed.svg" },
|
||||
"moon": { "file": "../wikimediaui/images/icons/moon.svg" },
|
||||
"bright": {
|
||||
"file": "../wikimediaui/images/icons/bright.svg"
|
||||
},
|
||||
"halfBright": {
|
||||
"file": {
|
||||
"ltr": "../wikimediaui/images/icons/halfBright-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/halfBright-rtl.svg"
|
||||
}
|
||||
},
|
||||
"notBright": {
|
||||
"file": "../wikimediaui/images/icons/notBright.svg"
|
||||
},
|
||||
"eye": {
|
||||
"file": "../wikimediaui/images/icons/eye.svg"
|
||||
},
|
||||
"eyeClosed": {
|
||||
"file": "../wikimediaui/images/icons/eyeClosed.svg"
|
||||
},
|
||||
"moon": {
|
||||
"file": "../wikimediaui/images/icons/moon.svg"
|
||||
},
|
||||
"largerText": {
|
||||
"file": "../wikimediaui/images/icons/largerText.svg"
|
||||
},
|
||||
"smallerText": {
|
||||
"file": "../wikimediaui/images/icons/smallerText.svg"
|
||||
},
|
||||
"visionSimulator": { "file": "../wikimediaui/images/icons/visionSimulator.svg" }
|
||||
"visionSimulator": {
|
||||
"file": "../wikimediaui/images/icons/visionSimulator.svg"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,8 +2,12 @@
|
|||
"prefix": "oo-ui-icon",
|
||||
"intro": "@import '../../../../src/styles/common';",
|
||||
"images": {
|
||||
"alert": { "file": "../wikimediaui/images/icons/alert.svg" },
|
||||
"bell": { "file": "../wikimediaui/images/icons/bell.svg" },
|
||||
"alert": {
|
||||
"file": "../wikimediaui/images/icons/alert.svg"
|
||||
},
|
||||
"bell": {
|
||||
"file": "../wikimediaui/images/icons/bell.svg"
|
||||
},
|
||||
"comment": {
|
||||
"file": {
|
||||
"ltr": "../wikimediaui/images/icons/speechBubble-ltr.svg",
|
||||
|
|
@ -11,20 +15,32 @@
|
|||
},
|
||||
"deprecated": "This will be removed in v0.28.0. Use 'speechBubble' instead."
|
||||
},
|
||||
"message": { "file": "../wikimediaui/images/icons/message.svg" },
|
||||
"notice": { "file": "../wikimediaui/images/icons/notice.svg" },
|
||||
"speechBubble": { "file": {
|
||||
"ltr": "../wikimediaui/images/icons/speechBubble-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/speechBubble-rtl.svg"
|
||||
} },
|
||||
"speechBubbleAdd": { "file": {
|
||||
"ltr": "../wikimediaui/images/icons/speechBubbleAdd-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/speechBubbleAdd-rtl.svg"
|
||||
} },
|
||||
"speechBubbles": { "file": {
|
||||
"ltr": "../wikimediaui/images/icons/speechBubbles-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/speechBubbles-rtl.svg"
|
||||
} },
|
||||
"tray": { "file": "../wikimediaui/images/icons/tray.svg" }
|
||||
"message": {
|
||||
"file": "../wikimediaui/images/icons/message.svg"
|
||||
},
|
||||
"notice": {
|
||||
"file": "../wikimediaui/images/icons/notice.svg"
|
||||
},
|
||||
"speechBubble": {
|
||||
"file": {
|
||||
"ltr": "../wikimediaui/images/icons/speechBubble-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/speechBubble-rtl.svg"
|
||||
}
|
||||
},
|
||||
"speechBubbleAdd": {
|
||||
"file": {
|
||||
"ltr": "../wikimediaui/images/icons/speechBubbleAdd-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/speechBubbleAdd-rtl.svg"
|
||||
}
|
||||
},
|
||||
"speechBubbles": {
|
||||
"file": {
|
||||
"ltr": "../wikimediaui/images/icons/speechBubbles-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/speechBubbles-rtl.svg"
|
||||
}
|
||||
},
|
||||
"tray": {
|
||||
"file": "../wikimediaui/images/icons/tray.svg"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,34 +30,56 @@
|
|||
"file": {
|
||||
"ltr": "../wikimediaui/images/icons/book-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/book-rtl.svg"
|
||||
}
|
||||
},
|
||||
"deprecated": "Moved since v0.27.0 to the 'editing-citation' pack."
|
||||
},
|
||||
"citeArticle": {
|
||||
"file": "../wikimediaui/images/icons/citeArticle.svg"
|
||||
"file": "../wikimediaui/images/icons/reference.svg",
|
||||
"deprecated": "Moved and renamed since v0.27.0. Use 'reference' from 'editing-citation' pack."
|
||||
},
|
||||
"die": {
|
||||
"file": "../wikimediaui/images/icons/die.svg"
|
||||
},
|
||||
"die": { "file": "../wikimediaui/images/icons/die.svg" },
|
||||
"download": {
|
||||
"file": "../wikimediaui/images/icons/download.svg"
|
||||
},
|
||||
"folderPlaceholder": { "file": {
|
||||
"ltr": "../wikimediaui/images/icons/folderPlaceholder-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/folderPlaceholder-rtl.svg"
|
||||
} },
|
||||
"history": { "file": "../wikimediaui/images/icons/history.svg" },
|
||||
"info": { "file": "../wikimediaui/images/icons/info.svg" },
|
||||
"journal": { "file": {
|
||||
"ltr": "../wikimediaui/images/icons/journal-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/journal-rtl.svg"
|
||||
} },
|
||||
"newspaper": { "file": {
|
||||
"ltr": "../wikimediaui/images/icons/newspaper-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/newspaper-rtl.svg"
|
||||
} },
|
||||
"tag": { "file": {
|
||||
"ltr": "../wikimediaui/images/icons/tag-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/tag-rtl.svg"
|
||||
} },
|
||||
"upload": { "file": "../wikimediaui/images/icons/upload.svg" },
|
||||
"window": { "file": "../wikimediaui/images/icons/window.svg" }
|
||||
"folderPlaceholder": {
|
||||
"file": {
|
||||
"ltr": "../wikimediaui/images/icons/folderPlaceholder-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/folderPlaceholder-rtl.svg"
|
||||
}
|
||||
},
|
||||
"history": {
|
||||
"file": "../wikimediaui/images/icons/history.svg"
|
||||
},
|
||||
"info": {
|
||||
"file": "../wikimediaui/images/icons/info.svg"
|
||||
},
|
||||
"journal": {
|
||||
"file": {
|
||||
"ltr": "../wikimediaui/images/icons/journal-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/journal-rtl.svg"
|
||||
},
|
||||
"deprecated": "Moved since v0.27.0 to the 'editing-citation' pack."
|
||||
},
|
||||
"newspaper": {
|
||||
"file": {
|
||||
"ltr": "../wikimediaui/images/icons/newspaper-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/newspaper-rtl.svg"
|
||||
},
|
||||
"deprecated": "Moved since v0.27.0 to the 'editing-citation' pack."
|
||||
},
|
||||
"tag": {
|
||||
"file": {
|
||||
"ltr": "../wikimediaui/images/icons/tag-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/tag-rtl.svg"
|
||||
}
|
||||
},
|
||||
"upload": {
|
||||
"file": "../wikimediaui/images/icons/upload.svg"
|
||||
},
|
||||
"window": {
|
||||
"file": "../wikimediaui/images/icons/window.svg"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,39 +2,67 @@
|
|||
"prefix": "oo-ui-icon",
|
||||
"intro": "@import '../../../../src/styles/common';",
|
||||
"images": {
|
||||
"alignCenter": { "file": "../wikimediaui/images/icons/alignCenter.svg" },
|
||||
"alignLeft": { "file": "../wikimediaui/images/icons/alignLeft.svg" },
|
||||
"alignRight": { "file": "../wikimediaui/images/icons/alignRight.svg" },
|
||||
"attachment": { "file": "../wikimediaui/images/icons/attachment.svg" },
|
||||
"calendar": { "file": "../wikimediaui/images/icons/calendar.svg" },
|
||||
"code": { "file": "../wikimediaui/images/icons/code.svg" },
|
||||
"alignCenter": {
|
||||
"file": "../wikimediaui/images/icons/alignCenter.svg"
|
||||
},
|
||||
"alignLeft": {
|
||||
"file": "../wikimediaui/images/icons/alignLeft.svg"
|
||||
},
|
||||
"alignRight": {
|
||||
"file": "../wikimediaui/images/icons/alignRight.svg"
|
||||
},
|
||||
"attachment": {
|
||||
"file": "../wikimediaui/images/icons/attachment.svg"
|
||||
},
|
||||
"calendar": {
|
||||
"file": "../wikimediaui/images/icons/calendar.svg"
|
||||
},
|
||||
"code": {
|
||||
"file": "../wikimediaui/images/icons/code.svg"
|
||||
},
|
||||
"find": {
|
||||
"file": "../wikimediaui/images/icons/articleSearch.svg",
|
||||
"deprecated": "Will be removed in v0.28.0, use 'articleSearch' of 'content' pack instead."
|
||||
},
|
||||
"language": { "file": "../wikimediaui/images/icons/language.svg" },
|
||||
"layout": { "file": {
|
||||
"ltr": "../wikimediaui/images/icons/layout-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/layout-rtl.svg"
|
||||
} },
|
||||
"markup": { "file": "../wikimediaui/images/icons/markup.svg" },
|
||||
"newline": { "file": {
|
||||
"ltr": "../wikimediaui/images/icons/newline-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/newline-rtl.svg"
|
||||
} },
|
||||
"noWikiText": { "file": "../wikimediaui/images/icons/noWikiText.svg" },
|
||||
"outline": { "file": {
|
||||
"ltr": "../wikimediaui/images/icons/outline-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/outline-rtl.svg"
|
||||
} },
|
||||
"puzzle": { "file": {
|
||||
"ltr": "../wikimediaui/images/icons/puzzle-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/puzzle-rtl.svg"
|
||||
} },
|
||||
"quotes": { "file": {
|
||||
"ltr": "../wikimediaui/images/icons/quotes-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/quotes-rtl.svg"
|
||||
} },
|
||||
"language": {
|
||||
"file": "../wikimediaui/images/icons/language.svg"
|
||||
},
|
||||
"layout": {
|
||||
"file": {
|
||||
"ltr": "../wikimediaui/images/icons/layout-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/layout-rtl.svg"
|
||||
}
|
||||
},
|
||||
"markup": {
|
||||
"file": "../wikimediaui/images/icons/markup.svg"
|
||||
},
|
||||
"newline": {
|
||||
"file": {
|
||||
"ltr": "../wikimediaui/images/icons/newline-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/newline-rtl.svg"
|
||||
}
|
||||
},
|
||||
"noWikiText": {
|
||||
"file": "../wikimediaui/images/icons/noWikiText.svg"
|
||||
},
|
||||
"outline": {
|
||||
"file": {
|
||||
"ltr": "../wikimediaui/images/icons/outline-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/outline-rtl.svg"
|
||||
}
|
||||
},
|
||||
"puzzle": {
|
||||
"file": {
|
||||
"ltr": "../wikimediaui/images/icons/puzzle-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/puzzle-rtl.svg"
|
||||
}
|
||||
},
|
||||
"quotes": {
|
||||
"file": {
|
||||
"ltr": "../wikimediaui/images/icons/quotes-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/quotes-rtl.svg"
|
||||
}
|
||||
},
|
||||
"searchCaseSensitive": {
|
||||
"file": "../wikimediaui/images/icons/searchCaseSensitive.svg"
|
||||
},
|
||||
|
|
@ -44,18 +72,36 @@
|
|||
"searchRegularExpression": {
|
||||
"file": "../wikimediaui/images/icons/searchRegularExpression.svg"
|
||||
},
|
||||
"signature": { "file": {
|
||||
"ltr": "../wikimediaui/images/icons/signature-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/signature-rtl.svg"
|
||||
} },
|
||||
"specialCharacter": { "file": "../wikimediaui/images/icons/specialCharacter.svg" },
|
||||
"table": { "file": "../wikimediaui/images/icons/table.svg" },
|
||||
"tableAddColumnAfter": { "file": "../wikimediaui/images/icons/tableAddColumnAfter.svg" },
|
||||
"tableAddColumnBefore": { "file": "../wikimediaui/images/icons/tableAddColumnBefore.svg" },
|
||||
"tableAddRowAfter": { "file": "../wikimediaui/images/icons/tableAddRowAfter.svg" },
|
||||
"tableAddRowBefore": { "file": "../wikimediaui/images/icons/tableAddRowBefore.svg" },
|
||||
"tableCaption": { "file": "../wikimediaui/images/icons/tableCaption.svg" },
|
||||
"tableMergeCells": { "file": "../wikimediaui/images/icons/tableMergeCells.svg" },
|
||||
"signature": {
|
||||
"file": {
|
||||
"ltr": "../wikimediaui/images/icons/signature-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/signature-rtl.svg"
|
||||
}
|
||||
},
|
||||
"specialCharacter": {
|
||||
"file": "../wikimediaui/images/icons/specialCharacter.svg"
|
||||
},
|
||||
"table": {
|
||||
"file": "../wikimediaui/images/icons/table.svg"
|
||||
},
|
||||
"tableAddColumnAfter": {
|
||||
"file": "../wikimediaui/images/icons/tableAddColumnAfter.svg"
|
||||
},
|
||||
"tableAddColumnBefore": {
|
||||
"file": "../wikimediaui/images/icons/tableAddColumnBefore.svg"
|
||||
},
|
||||
"tableAddRowAfter": {
|
||||
"file": "../wikimediaui/images/icons/tableAddRowAfter.svg"
|
||||
},
|
||||
"tableAddRowBefore": {
|
||||
"file": "../wikimediaui/images/icons/tableAddRowBefore.svg"
|
||||
},
|
||||
"tableCaption": {
|
||||
"file": "../wikimediaui/images/icons/tableCaption.svg"
|
||||
},
|
||||
"tableMergeCells": {
|
||||
"file": "../wikimediaui/images/icons/tableMergeCells.svg"
|
||||
},
|
||||
"tableMoveColumnAfter": {
|
||||
"file": "../wikimediaui/images/icons/tableMoveColumnAfter.svg"
|
||||
},
|
||||
|
|
@ -68,13 +114,17 @@
|
|||
"tableMoveRowBefore": {
|
||||
"file": "../wikimediaui/images/icons/tableMoveRowBefore.svg"
|
||||
},
|
||||
"templateAdd": { "file": {
|
||||
"ltr": "../wikimediaui/images/icons/templateAdd-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/templateAdd-rtl.svg"
|
||||
} },
|
||||
"templateAdd": {
|
||||
"file": {
|
||||
"ltr": "../wikimediaui/images/icons/templateAdd-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/templateAdd-rtl.svg"
|
||||
}
|
||||
},
|
||||
"translation": {
|
||||
"file": "../wikimediaui/images/icons/language.svg"
|
||||
},
|
||||
"wikiText": { "file": "../wikimediaui/images/icons/wikiText.svg" }
|
||||
"wikiText": {
|
||||
"file": "../wikimediaui/images/icons/wikiText.svg"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,42 @@
|
|||
{
|
||||
"prefix": "oo-ui-icon",
|
||||
"intro": "@import '../../../../src/styles/common';",
|
||||
"images": {
|
||||
"book": {
|
||||
"file": {
|
||||
"ltr": "../wikimediaui/images/icons/book-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/book-rtl.svg"
|
||||
}
|
||||
},
|
||||
"journal": {
|
||||
"file": {
|
||||
"ltr": "../wikimediaui/images/icons/journal-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/journal-rtl.svg"
|
||||
}
|
||||
},
|
||||
"newspaper": {
|
||||
"file": {
|
||||
"ltr": "../wikimediaui/images/icons/newspaper-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/newspaper-rtl.svg"
|
||||
}
|
||||
},
|
||||
"web": {
|
||||
"file": "../wikimediaui/images/icons/web.svg"
|
||||
},
|
||||
"reference": {
|
||||
"file": "../wikimediaui/images/icons/reference.svg"
|
||||
},
|
||||
"referenceExisting": {
|
||||
"file": {
|
||||
"ltr": "../wikimediaui/images/icons/referenceExisting-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/referenceExisting-rtl.svg"
|
||||
}
|
||||
},
|
||||
"references": {
|
||||
"file": {
|
||||
"ltr": "../wikimediaui/images/icons/references-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/references-rtl.svg"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -2,21 +2,29 @@
|
|||
"prefix": "oo-ui-icon",
|
||||
"intro": "@import '../../../../src/styles/common';",
|
||||
"images": {
|
||||
"indent": { "file": {
|
||||
"ltr": "../wikimediaui/images/icons/indent-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/indent-rtl.svg"
|
||||
} },
|
||||
"listBullet": { "file": {
|
||||
"ltr": "../wikimediaui/images/icons/listBullet-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/listBullet-rtl.svg"
|
||||
} },
|
||||
"listNumbered": { "file": {
|
||||
"ltr": "../wikimediaui/images/icons/listNumbered-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/listNumbered-rtl.svg"
|
||||
} },
|
||||
"outdent": { "file": {
|
||||
"ltr": "../wikimediaui/images/icons/outdent-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/outdent-rtl.svg"
|
||||
} }
|
||||
"indent": {
|
||||
"file": {
|
||||
"ltr": "../wikimediaui/images/icons/indent-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/indent-rtl.svg"
|
||||
}
|
||||
},
|
||||
"listBullet": {
|
||||
"file": {
|
||||
"ltr": "../wikimediaui/images/icons/listBullet-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/listBullet-rtl.svg"
|
||||
}
|
||||
},
|
||||
"listNumbered": {
|
||||
"file": {
|
||||
"ltr": "../wikimediaui/images/icons/listNumbered-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/listNumbered-rtl.svg"
|
||||
}
|
||||
},
|
||||
"outdent": {
|
||||
"file": {
|
||||
"ltr": "../wikimediaui/images/icons/outdent-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/outdent-rtl.svg"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,38 +2,51 @@
|
|||
"prefix": "oo-ui-icon",
|
||||
"intro": "@import '../../../../src/styles/common';",
|
||||
"images": {
|
||||
"bigger": { "file": "../wikimediaui/images/icons/bigger.svg" },
|
||||
"smaller": { "file": "../wikimediaui/images/icons/smaller.svg" },
|
||||
"subscript": { "file": {
|
||||
"ltr": "../wikimediaui/images/icons/subscript-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/subscript-rtl.svg"
|
||||
} },
|
||||
"superscript": { "file": {
|
||||
"ltr": "../wikimediaui/images/icons/superscript-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/superscript-rtl.svg"
|
||||
} },
|
||||
"bold": { "file": {
|
||||
"default": "../wikimediaui/images/icons/bold-a.svg",
|
||||
"lang": {
|
||||
"ar": "../wikimediaui/images/icons/bold-arab-ain.svg",
|
||||
"be": "../wikimediaui/images/icons/bold-cyrl-te.svg",
|
||||
"cs,en,he,ml,pl,sco": "../wikimediaui/images/icons/bold-b.svg",
|
||||
"da,de,hu,ksh,nn,no,sv": "../wikimediaui/images/icons/bold-f.svg",
|
||||
"es,gl,pt": "../wikimediaui/images/icons/bold-n.svg",
|
||||
"eu,fi": "../wikimediaui/images/icons/bold-l.svg",
|
||||
"fa": "../wikimediaui/images/icons/bold-arab-dad.svg",
|
||||
"fr,it": "../wikimediaui/images/icons/bold-g.svg",
|
||||
"hy": "../wikimediaui/images/icons/bold-armn-to.svg",
|
||||
"ka": "../wikimediaui/images/icons/bold-geor-man.svg",
|
||||
"ky,ru,uk": "../wikimediaui/images/icons/bold-cyrl-zhe.svg",
|
||||
"nl": "../wikimediaui/images/icons/bold-v.svg",
|
||||
"os": "../wikimediaui/images/icons/bold-cyrl-be.svg"
|
||||
"bigger": {
|
||||
"file": "../wikimediaui/images/icons/bigger.svg"
|
||||
},
|
||||
"smaller": {
|
||||
"file": "../wikimediaui/images/icons/smaller.svg"
|
||||
},
|
||||
"subscript": {
|
||||
"file": {
|
||||
"ltr": "../wikimediaui/images/icons/subscript-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/subscript-rtl.svg"
|
||||
}
|
||||
} },
|
||||
"highlight": { "file": "../wikimediaui/images/icons/highlight.svg" },
|
||||
"italic": { "file": {
|
||||
"default": "../wikimediaui/images/icons/italic-a.svg",
|
||||
"lang": {
|
||||
},
|
||||
"superscript": {
|
||||
"file": {
|
||||
"ltr": "../wikimediaui/images/icons/superscript-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/superscript-rtl.svg"
|
||||
}
|
||||
},
|
||||
"bold": {
|
||||
"file": {
|
||||
"default": "../wikimediaui/images/icons/bold-a.svg",
|
||||
"lang": {
|
||||
"ar": "../wikimediaui/images/icons/bold-arab-ain.svg",
|
||||
"be": "../wikimediaui/images/icons/bold-cyrl-te.svg",
|
||||
"cs,en,he,ml,pl,sco": "../wikimediaui/images/icons/bold-b.svg",
|
||||
"da,de,hu,ksh,nn,no,sv": "../wikimediaui/images/icons/bold-f.svg",
|
||||
"es,gl,pt": "../wikimediaui/images/icons/bold-n.svg",
|
||||
"eu,fi": "../wikimediaui/images/icons/bold-l.svg",
|
||||
"fa": "../wikimediaui/images/icons/bold-arab-dad.svg",
|
||||
"fr,it": "../wikimediaui/images/icons/bold-g.svg",
|
||||
"hy": "../wikimediaui/images/icons/bold-armn-to.svg",
|
||||
"ka": "../wikimediaui/images/icons/bold-geor-man.svg",
|
||||
"ky,ru,uk": "../wikimediaui/images/icons/bold-cyrl-zhe.svg",
|
||||
"nl": "../wikimediaui/images/icons/bold-v.svg",
|
||||
"os": "../wikimediaui/images/icons/bold-cyrl-be.svg"
|
||||
}
|
||||
}
|
||||
},
|
||||
"highlight": {
|
||||
"file": "../wikimediaui/images/icons/highlight.svg"
|
||||
},
|
||||
"italic": {
|
||||
"file": {
|
||||
"default": "../wikimediaui/images/icons/italic-a.svg",
|
||||
"lang": {
|
||||
"ar": "../wikimediaui/images/icons/italic-arab-meem.svg",
|
||||
"cs,en,fr,he,ml,pl,pt,sco": "../wikimediaui/images/icons/italic-i.svg",
|
||||
"be,da,de,fi,ky,nn,no,os,sv,ru,uk": "../wikimediaui/images/icons/italic-k.svg",
|
||||
|
|
@ -45,20 +58,25 @@
|
|||
"ksh": "../wikimediaui/images/icons/italic-s.svg",
|
||||
"ka": "../wikimediaui/images/icons/italic-geor-kan.svg"
|
||||
}
|
||||
} },
|
||||
"strikethrough": { "file": {
|
||||
"default": "../wikimediaui/images/icons/strikethrough-a.svg",
|
||||
"lang": {
|
||||
"en": "../wikimediaui/images/icons/strikethrough-s.svg",
|
||||
"fi": "../wikimediaui/images/icons/strikethrough-y.svg"
|
||||
}
|
||||
} },
|
||||
"underline": { "file": {
|
||||
"default": "../wikimediaui/images/icons/underline-a.svg",
|
||||
"lang": {
|
||||
"en,de": "../wikimediaui/images/icons/underline-u.svg"
|
||||
},
|
||||
"strikethrough": {
|
||||
"file": {
|
||||
"default": "../wikimediaui/images/icons/strikethrough-a.svg",
|
||||
"lang": {
|
||||
"en": "../wikimediaui/images/icons/strikethrough-s.svg",
|
||||
"fi": "../wikimediaui/images/icons/strikethrough-y.svg"
|
||||
}
|
||||
}
|
||||
} },
|
||||
},
|
||||
"underline": {
|
||||
"file": {
|
||||
"default": "../wikimediaui/images/icons/underline-a.svg",
|
||||
"lang": {
|
||||
"en,de": "../wikimediaui/images/icons/underline-u.svg"
|
||||
}
|
||||
}
|
||||
},
|
||||
"textLanguage": {
|
||||
"file": "../wikimediaui/images/icons/language.svg"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -2,48 +2,87 @@
|
|||
"prefix": "oo-ui-icon",
|
||||
"intro": "@import '../../../../src/styles/common';",
|
||||
"images": {
|
||||
"add": { "file": "../wikimediaui/images/icons/add.svg" },
|
||||
"advanced": { "file": "../wikimediaui/images/icons/advanced.svg" },
|
||||
"browser": { "file": {
|
||||
"ltr": "../wikimediaui/images/icons/browser-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/browser-rtl.svg"
|
||||
} },
|
||||
"cancel": { "file": "../wikimediaui/images/icons/cancel.svg" },
|
||||
"check": { "file": "../wikimediaui/images/icons/check.svg" },
|
||||
"checkAll": { "file": "../wikimediaui/images/icons/checkAll.svg" },
|
||||
"clear": { "file": "../wikimediaui/images/icons/clear.svg" },
|
||||
"clock": { "file": "../wikimediaui/images/icons/clock.svg" },
|
||||
"close": { "file": "../wikimediaui/images/icons/close.svg" },
|
||||
"ellipsis": { "file": "../wikimediaui/images/icons/ellipsis.svg" },
|
||||
"feedback": { "file": {
|
||||
"ltr": "../wikimediaui/images/icons/feedback-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/feedback-rtl.svg"
|
||||
} },
|
||||
"funnel": { "file": {
|
||||
"ltr": "../wikimediaui/images/icons/funnel-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/funnel-rtl.svg"
|
||||
} },
|
||||
"heart": { "file": "../wikimediaui/images/icons/heart.svg" },
|
||||
"help": { "file": {
|
||||
"ltr": "../wikimediaui/images/icons/help-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/help-rtl.svg",
|
||||
"lang": {
|
||||
"he,yi": "../wikimediaui/images/icons/help-ltr.svg"
|
||||
"add": {
|
||||
"file": "../wikimediaui/images/icons/add.svg"
|
||||
},
|
||||
"advanced": {
|
||||
"file": "../wikimediaui/images/icons/advanced.svg"
|
||||
},
|
||||
"browser": {
|
||||
"file": {
|
||||
"ltr": "../wikimediaui/images/icons/browser-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/browser-rtl.svg"
|
||||
}
|
||||
} },
|
||||
},
|
||||
"cancel": {
|
||||
"file": "../wikimediaui/images/icons/cancel.svg"
|
||||
},
|
||||
"check": {
|
||||
"file": "../wikimediaui/images/icons/check.svg"
|
||||
},
|
||||
"checkAll": {
|
||||
"file": "../wikimediaui/images/icons/checkAll.svg"
|
||||
},
|
||||
"clear": {
|
||||
"file": "../wikimediaui/images/icons/clear.svg"
|
||||
},
|
||||
"clock": {
|
||||
"file": "../wikimediaui/images/icons/clock.svg"
|
||||
},
|
||||
"close": {
|
||||
"file": "../wikimediaui/images/icons/close.svg"
|
||||
},
|
||||
"ellipsis": {
|
||||
"file": "../wikimediaui/images/icons/ellipsis.svg"
|
||||
},
|
||||
"feedback": {
|
||||
"file": {
|
||||
"ltr": "../wikimediaui/images/icons/feedback-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/feedback-rtl.svg"
|
||||
}
|
||||
},
|
||||
"funnel": {
|
||||
"file": {
|
||||
"ltr": "../wikimediaui/images/icons/funnel-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/funnel-rtl.svg"
|
||||
}
|
||||
},
|
||||
"heart": {
|
||||
"file": "../wikimediaui/images/icons/heart.svg"
|
||||
},
|
||||
"help": {
|
||||
"file": {
|
||||
"ltr": "../wikimediaui/images/icons/help-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/help-rtl.svg",
|
||||
"lang": {
|
||||
"he,yi": "../wikimediaui/images/icons/help-ltr.svg"
|
||||
}
|
||||
}
|
||||
},
|
||||
"key": {
|
||||
"file": "../wikimediaui/images/icons/key.svg"
|
||||
},
|
||||
"keyboard": { "file": "../wikimediaui/images/icons/keyboard.svg" },
|
||||
"lightbulb": { "file": "../wikimediaui/images/icons/lightbulb.svg" },
|
||||
"logOut": { "file": {
|
||||
"ltr": "../wikimediaui/images/icons/logOut-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/logOut-rtl.svg"
|
||||
} },
|
||||
"newWindow": { "file": {
|
||||
"ltr": "../wikimediaui/images/icons/newWindow-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/newWindow-rtl.svg"
|
||||
} },
|
||||
"keyboard": {
|
||||
"file": "../wikimediaui/images/icons/keyboard.svg"
|
||||
},
|
||||
"lightbulb": {
|
||||
"file": "../wikimediaui/images/icons/lightbulb.svg"
|
||||
},
|
||||
"logOut": {
|
||||
"file": {
|
||||
"ltr": "../wikimediaui/images/icons/logOut-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/logOut-rtl.svg"
|
||||
}
|
||||
},
|
||||
"newWindow": {
|
||||
"file": {
|
||||
"ltr": "../wikimediaui/images/icons/newWindow-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/newWindow-rtl.svg"
|
||||
}
|
||||
},
|
||||
"pageSettings": {
|
||||
"file": "../wikimediaui/images/icons/pageSettings.svg"
|
||||
},
|
||||
"printer": {
|
||||
"file": "../wikimediaui/images/icons/printer.svg"
|
||||
},
|
||||
|
|
@ -53,7 +92,12 @@
|
|||
"search": {
|
||||
"file": "../wikimediaui/images/icons/search.svg"
|
||||
},
|
||||
"settings": { "file": "../wikimediaui/images/icons/settings.svg" },
|
||||
"subtract": { "file": "../wikimediaui/images/icons/subtract.svg" }
|
||||
"settings": {
|
||||
"file": "../wikimediaui/images/icons/pageSettings.svg",
|
||||
"deprecated": "Renamed since v0.27.0, use 'pageSettings' instead."
|
||||
},
|
||||
"subtract": {
|
||||
"file": "../wikimediaui/images/icons/subtract.svg"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,23 +2,34 @@
|
|||
"prefix": "oo-ui-icon",
|
||||
"intro": "@import '../../../../src/styles/common';",
|
||||
"images": {
|
||||
"menu": { "file": "../wikimediaui/images/icons/menu.svg" },
|
||||
"stripeFlow": { "file": {
|
||||
"ltr": "../wikimediaui/images/icons/stripeFlow-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/stripeFlow-rtl.svg"
|
||||
} },
|
||||
"stripeSummary": { "file": {
|
||||
"ltr": "../wikimediaui/images/icons/stripeSummary-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/stripeSummary-rtl.svg"
|
||||
} },
|
||||
"stripeToC": { "file": {
|
||||
"ltr": "../wikimediaui/images/icons/stripeToC-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/stripeToC-rtl.svg"
|
||||
} },
|
||||
"viewCompact": { "file": "../wikimediaui/images/icons/viewCompact.svg" },
|
||||
"viewDetails": { "file": {
|
||||
"ltr": "../wikimediaui/images/icons/viewDetails-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/viewDetails-rtl.svg"
|
||||
} }
|
||||
"menu": {
|
||||
"file": "../wikimediaui/images/icons/menu.svg" },
|
||||
"stripeFlow": {
|
||||
"file": {
|
||||
"ltr": "../wikimediaui/images/icons/stripeFlow-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/stripeFlow-rtl.svg"
|
||||
}
|
||||
},
|
||||
"stripeSummary": {
|
||||
"file": {
|
||||
"ltr": "../wikimediaui/images/icons/stripeSummary-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/stripeSummary-rtl.svg"
|
||||
}
|
||||
},
|
||||
"stripeToC": {
|
||||
"file": {
|
||||
"ltr": "../wikimediaui/images/icons/stripeToC-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/stripeToC-rtl.svg"
|
||||
}
|
||||
},
|
||||
"viewCompact": {
|
||||
"file": "../wikimediaui/images/icons/viewCompact.svg"
|
||||
},
|
||||
"viewDetails": {
|
||||
"file": {
|
||||
"ltr": "../wikimediaui/images/icons/viewDetails-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/viewDetails-rtl.svg"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,11 +2,15 @@
|
|||
"prefix": "oo-ui-icon",
|
||||
"intro": "@import '../../../../src/styles/common';",
|
||||
"images": {
|
||||
"map": { "file": {
|
||||
"ltr": "../wikimediaui/images/icons/map-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/map-rtl.svg"
|
||||
} },
|
||||
"mapPin": { "file": "../wikimediaui/images/icons/mapPin.svg" },
|
||||
"map": {
|
||||
"file": {
|
||||
"ltr": "../wikimediaui/images/icons/map-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/map-rtl.svg"
|
||||
}
|
||||
},
|
||||
"mapPin": {
|
||||
"file": "../wikimediaui/images/icons/mapPin.svg"
|
||||
},
|
||||
"mapPinAdd": {
|
||||
"file": "../wikimediaui/images/icons/mapPinAdd.svg"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -5,7 +5,9 @@
|
|||
"exitFullscreen": {
|
||||
"file": "../wikimediaui/images/icons/exitFullscreen.svg"
|
||||
},
|
||||
"fullScreen": { "file": "../wikimediaui/images/icons/fullScreen.svg" },
|
||||
"fullScreen": {
|
||||
"file": "../wikimediaui/images/icons/fullScreen.svg"
|
||||
},
|
||||
"image": {
|
||||
"file": "../wikimediaui/images/icons/image.svg"
|
||||
},
|
||||
|
|
@ -36,6 +38,8 @@
|
|||
"play": {
|
||||
"file": "../wikimediaui/images/icons/play.svg"
|
||||
},
|
||||
"stop": { "file": "../wikimediaui/images/icons/stop.svg" }
|
||||
"stop": {
|
||||
"file": "../wikimediaui/images/icons/stop.svg"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,9 @@
|
|||
"bookmark": {
|
||||
"file": "../wikimediaui/images/icons/bookmark.svg"
|
||||
},
|
||||
"block": { "file": "../wikimediaui/images/icons/block.svg" },
|
||||
"block": {
|
||||
"file": "../wikimediaui/images/icons/block.svg"
|
||||
},
|
||||
"unBlock": {
|
||||
"file": "../wikimediaui/images/icons/unBlock.svg"
|
||||
},
|
||||
|
|
@ -20,34 +22,50 @@
|
|||
"file": "../wikimediaui/images/icons/bookmark.svg",
|
||||
"deprecated": "Renamed since v0.26.1, use 'bookmark' instead."
|
||||
},
|
||||
"flag": { "file": {
|
||||
"ltr": "../wikimediaui/images/icons/flag-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/flag-rtl.svg"
|
||||
} },
|
||||
"unFlag": { "file": {
|
||||
"ltr": "../wikimediaui/images/icons/unFlag-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/unFlag-rtl.svg"
|
||||
} },
|
||||
"flag": {
|
||||
"file": {
|
||||
"ltr": "../wikimediaui/images/icons/flag-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/flag-rtl.svg"
|
||||
}
|
||||
},
|
||||
"unFlag": {
|
||||
"file": {
|
||||
"ltr": "../wikimediaui/images/icons/unFlag-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/unFlag-rtl.svg"
|
||||
}
|
||||
},
|
||||
"lock": {
|
||||
"file": "../wikimediaui/images/icons/lock.svg"
|
||||
},
|
||||
"unLock": {
|
||||
"file": "../wikimediaui/images/icons/unLock.svg"
|
||||
},
|
||||
"star": { "file": "../wikimediaui/images/icons/star.svg" },
|
||||
"halfStar": { "file": {
|
||||
"ltr": "../wikimediaui/images/icons/halfStar-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/halfStar-rtl.svg"
|
||||
} },
|
||||
"unStar": { "file": "../wikimediaui/images/icons/unStar.svg" },
|
||||
"trash": { "file": "../wikimediaui/images/icons/trash.svg" },
|
||||
"star": {
|
||||
"file": "../wikimediaui/images/icons/star.svg"
|
||||
},
|
||||
"halfStar": {
|
||||
"file": {
|
||||
"ltr": "../wikimediaui/images/icons/halfStar-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/halfStar-rtl.svg"
|
||||
}
|
||||
},
|
||||
"unStar": {
|
||||
"file": "../wikimediaui/images/icons/unStar.svg"
|
||||
},
|
||||
"trash": {
|
||||
"file": "../wikimediaui/images/icons/trash.svg"
|
||||
},
|
||||
"unTrash": {
|
||||
"file": "../wikimediaui/images/icons/unTrash.svg"
|
||||
},
|
||||
"pushPin": { "file": "../wikimediaui/images/icons/pushPin.svg" },
|
||||
"ongoingConversation": { "file": {
|
||||
"ltr": "../wikimediaui/images/icons/ongoingConversation-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/ongoingConversation-rtl.svg"
|
||||
} }
|
||||
"pushPin": {
|
||||
"file": "../wikimediaui/images/icons/pushPin.svg"
|
||||
},
|
||||
"ongoingConversation": {
|
||||
"file": {
|
||||
"ltr": "../wikimediaui/images/icons/ongoingConversation-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/ongoingConversation-rtl.svg"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,41 +2,59 @@
|
|||
"prefix": "oo-ui-icon",
|
||||
"intro": "@import '../../../../src/styles/common';",
|
||||
"images": {
|
||||
"arrowNext": { "file": {
|
||||
"ltr": "../wikimediaui/images/icons/arrowNext-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/arrowNext-rtl.svg"
|
||||
} },
|
||||
"arrowPrevious": { "file": {
|
||||
"ltr": "../wikimediaui/images/icons/arrowPrevious-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/arrowPrevious-rtl.svg"
|
||||
} },
|
||||
"collapse": { "file": "../wikimediaui/images/icons/collapse.svg" },
|
||||
"downTriangle": { "file": "../wikimediaui/images/icons/downTriangle.svg" },
|
||||
"draggable": { "file": "../wikimediaui/images/icons/draggable.svg" },
|
||||
"expand": { "file": "../wikimediaui/images/icons/expand.svg" },
|
||||
"arrowNext": {
|
||||
"file": {
|
||||
"ltr": "../wikimediaui/images/icons/arrowNext-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/arrowNext-rtl.svg"
|
||||
}
|
||||
},
|
||||
"arrowPrevious": {
|
||||
"file": {
|
||||
"ltr": "../wikimediaui/images/icons/arrowPrevious-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/arrowPrevious-rtl.svg"
|
||||
}
|
||||
},
|
||||
"collapse": {
|
||||
"file": "../wikimediaui/images/icons/collapse.svg"
|
||||
},
|
||||
"downTriangle": {
|
||||
"file": "../wikimediaui/images/icons/downTriangle.svg"
|
||||
},
|
||||
"draggable": {
|
||||
"file": "../wikimediaui/images/icons/draggable.svg"
|
||||
},
|
||||
"expand": {
|
||||
"file": "../wikimediaui/images/icons/expand.svg"
|
||||
},
|
||||
"move": {
|
||||
"file": "../wikimediaui/images/icons/move.svg"
|
||||
},
|
||||
"next": { "file": {
|
||||
"ltr": "../wikimediaui/images/icons/next-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/next-rtl.svg"
|
||||
"next": {
|
||||
"file": {
|
||||
"ltr": "../wikimediaui/images/icons/next-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/next-rtl.svg"
|
||||
}
|
||||
},
|
||||
"previous": { "file": {
|
||||
"ltr": "../wikimediaui/images/icons/previous-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/previous-rtl.svg"
|
||||
"previous": {
|
||||
"file": {
|
||||
"ltr": "../wikimediaui/images/icons/previous-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/previous-rtl.svg"
|
||||
}
|
||||
},
|
||||
"last": { "file": {
|
||||
"ltr": "../wikimediaui/images/icons/moveLast-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/moveLast-rtl.svg"
|
||||
"last": {
|
||||
"file": {
|
||||
"ltr": "../wikimediaui/images/icons/moveLast-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/moveLast-rtl.svg"
|
||||
}
|
||||
},
|
||||
"first": { "file": {
|
||||
"ltr": "../wikimediaui/images/icons/moveFirst-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/moveFirst-rtl.svg"
|
||||
"first": {
|
||||
"file": {
|
||||
"ltr": "../wikimediaui/images/icons/moveFirst-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/moveFirst-rtl.svg"
|
||||
}
|
||||
},
|
||||
"upTriangle": { "file": "../wikimediaui/images/icons/upTriangle.svg" }
|
||||
"upTriangle": {
|
||||
"file": "../wikimediaui/images/icons/upTriangle.svg"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,9 +16,11 @@
|
|||
"file": "../wikimediaui/images/icons/userAnonymous.svg",
|
||||
"deprecated": "Renamed since v0.26.2, use 'userAnonymous' instead."
|
||||
},
|
||||
"userTalk": { "file": {
|
||||
"ltr": "../wikimediaui/images/icons/userTalk-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/userTalk-rtl.svg"
|
||||
} }
|
||||
"userTalk": {
|
||||
"file": {
|
||||
"ltr": "../wikimediaui/images/icons/userTalk-ltr.svg",
|
||||
"rtl": "../wikimediaui/images/icons/userTalk-rtl.svg"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,9 +2,17 @@
|
|||
"prefix": "oo-ui-icon",
|
||||
"intro": "@import '../../../../src/styles/common';",
|
||||
"images": {
|
||||
"logoCC": { "file": "../wikimediaui/images/icons/logo-CC.svg" },
|
||||
"logoWikimediaCommons": { "file": "../wikimediaui/images/icons/logo-Wikimedia-Commons.svg" },
|
||||
"logoWikimediaDiscovery": { "file": "../wikimediaui/images/icons/logo-Wikimedia-Discovery.svg" },
|
||||
"logoWikipedia": { "file": "../wikimediaui/images/icons/logo-Wikipedia.svg" }
|
||||
"logoCC": {
|
||||
"file": "../wikimediaui/images/icons/logo-CC.svg"
|
||||
},
|
||||
"logoWikimediaCommons": {
|
||||
"file": "../wikimediaui/images/icons/logo-Wikimedia-Commons.svg"
|
||||
},
|
||||
"logoWikimediaDiscovery": {
|
||||
"file": "../wikimediaui/images/icons/logo-Wikimedia-Discovery.svg"
|
||||
},
|
||||
"logoWikipedia": {
|
||||
"file": "../wikimediaui/images/icons/logo-Wikipedia.svg"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,14 +2,18 @@
|
|||
"prefix": "oo-ui-indicator",
|
||||
"intro": "@import '../../../../src/styles/common';",
|
||||
"images": {
|
||||
"alert": {
|
||||
"file": "../wikimediaui/images/indicators/alert.svg",
|
||||
"deprecated": "This will be removed in v0.27.0."
|
||||
"clear": {
|
||||
"file": "../wikimediaui/images/indicators/clear.svg"
|
||||
},
|
||||
"up": {
|
||||
"file": "../wikimediaui/images/indicators/up.svg"
|
||||
},
|
||||
"down": {
|
||||
"file": "../wikimediaui/images/indicators/down.svg"
|
||||
},
|
||||
"required": {
|
||||
"file": "../wikimediaui/images/indicators/required.svg"
|
||||
},
|
||||
"clear": { "file": "../wikimediaui/images/indicators/clear.svg" },
|
||||
"up": { "file": "../wikimediaui/images/indicators/up.svg" },
|
||||
"down": { "file": "../wikimediaui/images/indicators/down.svg" },
|
||||
"required": { "file": "../wikimediaui/images/indicators/required.svg" },
|
||||
"search": {
|
||||
"file": "../wikimediaui/images/indicators/search.svg"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,21 +19,35 @@
|
|||
}
|
||||
},
|
||||
"images": {
|
||||
"bright": { "file": "images/icons/bright.svg" },
|
||||
"halfBright": { "file": {
|
||||
"ltr": "images/icons/halfBright-ltr.svg",
|
||||
"rtl": "images/icons/halfBright-rtl.svg"
|
||||
} },
|
||||
"notBright": { "file": "images/icons/notBright.svg" },
|
||||
"eye": { "file": "images/icons/eye.svg" },
|
||||
"eyeClosed": { "file": "images/icons/eyeClosed.svg" },
|
||||
"moon": { "file": "images/icons/moon.svg" },
|
||||
"bright": {
|
||||
"file": "images/icons/bright.svg"
|
||||
},
|
||||
"halfBright": {
|
||||
"file": {
|
||||
"ltr": "images/icons/halfBright-ltr.svg",
|
||||
"rtl": "images/icons/halfBright-rtl.svg"
|
||||
}
|
||||
},
|
||||
"notBright": {
|
||||
"file": "images/icons/notBright.svg"
|
||||
},
|
||||
"eye": {
|
||||
"file": "images/icons/eye.svg"
|
||||
},
|
||||
"eyeClosed": {
|
||||
"file": "images/icons/eyeClosed.svg"
|
||||
},
|
||||
"moon": {
|
||||
"file": "images/icons/moon.svg"
|
||||
},
|
||||
"largerText": {
|
||||
"file": "images/icons/largerText.svg"
|
||||
},
|
||||
"smallerText": {
|
||||
"file": "images/icons/smallerText.svg"
|
||||
},
|
||||
"visionSimulator": { "file": "images/icons/visionSimulator.svg" }
|
||||
"visionSimulator": {
|
||||
"file": "images/icons/visionSimulator.svg"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,8 +19,13 @@
|
|||
}
|
||||
},
|
||||
"images": {
|
||||
"alert": { "file": "images/icons/alert.svg", "variants": [ "warning" ] },
|
||||
"bell": { "file": "images/icons/bell.svg" },
|
||||
"alert": {
|
||||
"file": "images/icons/alert.svg",
|
||||
"variants": [ "warning" ]
|
||||
},
|
||||
"bell": {
|
||||
"file": "images/icons/bell.svg"
|
||||
},
|
||||
"comment": {
|
||||
"file": {
|
||||
"ltr": "images/icons/speechBubble-ltr.svg",
|
||||
|
|
@ -28,20 +33,32 @@
|
|||
},
|
||||
"deprecated": "This will be removed in v0.28.0. Use 'speechBubble' instead."
|
||||
},
|
||||
"message": { "file": "images/icons/message.svg" },
|
||||
"notice": { "file": "images/icons/notice.svg" },
|
||||
"speechBubble": { "file": {
|
||||
"ltr": "images/icons/speechBubble-ltr.svg",
|
||||
"rtl": "images/icons/speechBubble-rtl.svg"
|
||||
} },
|
||||
"speechBubbleAdd": { "file": {
|
||||
"ltr": "images/icons/speechBubbleAdd-ltr.svg",
|
||||
"rtl": "images/icons/speechBubbleAdd-rtl.svg"
|
||||
} },
|
||||
"speechBubbles": { "file": {
|
||||
"ltr": "images/icons/speechBubbles-ltr.svg",
|
||||
"rtl": "images/icons/speechBubbles-rtl.svg"
|
||||
} },
|
||||
"tray": { "file": "images/icons/tray.svg" }
|
||||
"message": {
|
||||
"file": "images/icons/message.svg"
|
||||
},
|
||||
"notice": {
|
||||
"file": "images/icons/notice.svg"
|
||||
},
|
||||
"speechBubble": {
|
||||
"file": {
|
||||
"ltr": "images/icons/speechBubble-ltr.svg",
|
||||
"rtl": "images/icons/speechBubble-rtl.svg"
|
||||
}
|
||||
},
|
||||
"speechBubbleAdd": {
|
||||
"file": {
|
||||
"ltr": "images/icons/speechBubbleAdd-ltr.svg",
|
||||
"rtl": "images/icons/speechBubbleAdd-rtl.svg"
|
||||
}
|
||||
},
|
||||
"speechBubbles": {
|
||||
"file": {
|
||||
"ltr": "images/icons/speechBubbles-ltr.svg",
|
||||
"rtl": "images/icons/speechBubbles-rtl.svg"
|
||||
}
|
||||
},
|
||||
"tray": {
|
||||
"file": "images/icons/tray.svg"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -47,34 +47,57 @@
|
|||
"file": {
|
||||
"ltr": "images/icons/book-ltr.svg",
|
||||
"rtl": "images/icons/book-rtl.svg"
|
||||
}
|
||||
},
|
||||
"deprecated": "Moved since v0.27.0 to the 'editing-citation' pack."
|
||||
},
|
||||
"citeArticle": {
|
||||
"file": "images/icons/citeArticle.svg"
|
||||
"file": "images/icons/reference.svg",
|
||||
"deprecated": "Moved and renamed since v0.27.0. Use 'reference' from 'editing-citation' pack."
|
||||
},
|
||||
"die": {
|
||||
"file": "images/icons/die.svg"
|
||||
},
|
||||
"die": { "file": "images/icons/die.svg" },
|
||||
"download": {
|
||||
"file": "images/icons/download.svg"
|
||||
},
|
||||
"folderPlaceholder": { "file": {
|
||||
"ltr": "images/icons/folderPlaceholder-ltr.svg",
|
||||
"rtl": "images/icons/folderPlaceholder-rtl.svg"
|
||||
} },
|
||||
"history": { "file": "images/icons/history.svg" },
|
||||
"info": { "file": "images/icons/info.svg" },
|
||||
"journal": { "file": {
|
||||
"ltr": "images/icons/journal-ltr.svg",
|
||||
"rtl": "images/icons/journal-rtl.svg"
|
||||
} },
|
||||
"newspaper": { "file": {
|
||||
"ltr": "images/icons/newspaper-ltr.svg",
|
||||
"rtl": "images/icons/newspaper-rtl.svg"
|
||||
} },
|
||||
"tag": { "file": {
|
||||
"ltr": "images/icons/tag-ltr.svg",
|
||||
"rtl": "images/icons/tag-rtl.svg"
|
||||
}, "variants": [ "destructive", "warning" ] },
|
||||
"upload": { "file": "images/icons/upload.svg" },
|
||||
"window": { "file": "images/icons/window.svg" }
|
||||
"folderPlaceholder": {
|
||||
"file": {
|
||||
"ltr": "images/icons/folderPlaceholder-ltr.svg",
|
||||
"rtl": "images/icons/folderPlaceholder-rtl.svg"
|
||||
}
|
||||
},
|
||||
"history": {
|
||||
"file": "images/icons/history.svg"
|
||||
},
|
||||
"info": {
|
||||
"file": "images/icons/info.svg"
|
||||
},
|
||||
"journal": {
|
||||
"file": {
|
||||
"ltr": "images/icons/journal-ltr.svg",
|
||||
"rtl": "images/icons/journal-rtl.svg"
|
||||
},
|
||||
"deprecated": "Moved since v0.27.0 to the 'editing-citation' pack."
|
||||
},
|
||||
"newspaper": {
|
||||
"file": {
|
||||
"ltr": "images/icons/newspaper-ltr.svg",
|
||||
"rtl": "images/icons/newspaper-rtl.svg"
|
||||
},
|
||||
"deprecated": "Moved since v0.27.0 to the 'editing-citation' pack."
|
||||
},
|
||||
"tag": {
|
||||
"file": {
|
||||
"ltr": "images/icons/tag-ltr.svg",
|
||||
"rtl": "images/icons/tag-rtl.svg"
|
||||
},
|
||||
"variants": [ "destructive", "warning" ]
|
||||
},
|
||||
"upload": {
|
||||
"file": "images/icons/upload.svg"
|
||||
},
|
||||
"window": {
|
||||
"file": "images/icons/window.svg"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,14 +19,24 @@
|
|||
}
|
||||
},
|
||||
"images": {
|
||||
"alignCenter": { "file": "images/icons/alignCenter.svg" },
|
||||
"alignLeft": { "file": "images/icons/alignLeft.svg" },
|
||||
"alignRight": { "file": "images/icons/alignRight.svg" },
|
||||
"alignCenter": {
|
||||
"file": "images/icons/alignCenter.svg"
|
||||
},
|
||||
"alignLeft": {
|
||||
"file": "images/icons/alignLeft.svg"
|
||||
},
|
||||
"alignRight": {
|
||||
"file": "images/icons/alignRight.svg"
|
||||
},
|
||||
"attachment": {
|
||||
"file": "images/icons/attachment.svg"
|
||||
},
|
||||
"calendar": { "file": "images/icons/calendar.svg" },
|
||||
"code": { "file": "images/icons/code.svg" },
|
||||
"calendar": {
|
||||
"file": "images/icons/calendar.svg"
|
||||
},
|
||||
"code": {
|
||||
"file": "images/icons/code.svg"
|
||||
},
|
||||
"find": {
|
||||
"file": "images/icons/articleSearch.svg",
|
||||
"deprecated": "Will be removed in v0.28.0, use 'articleSearch' of 'content' pack instead."
|
||||
|
|
@ -34,28 +44,42 @@
|
|||
"language": {
|
||||
"file": "images/icons/language.svg"
|
||||
},
|
||||
"layout": { "file": {
|
||||
"ltr": "images/icons/layout-ltr.svg",
|
||||
"rtl": "images/icons/layout-rtl.svg"
|
||||
} },
|
||||
"markup": { "file": "images/icons/markup.svg" },
|
||||
"newline": { "file": {
|
||||
"ltr": "images/icons/newline-ltr.svg",
|
||||
"rtl": "images/icons/newline-rtl.svg"
|
||||
} },
|
||||
"noWikiText": { "file": "images/icons/noWikiText.svg" },
|
||||
"outline": { "file": {
|
||||
"ltr": "images/icons/outline-ltr.svg",
|
||||
"rtl": "images/icons/outline-rtl.svg"
|
||||
} },
|
||||
"puzzle": { "file": {
|
||||
"ltr": "images/icons/puzzle-ltr.svg",
|
||||
"rtl": "images/icons/puzzle-rtl.svg"
|
||||
} },
|
||||
"quotes": { "file": {
|
||||
"ltr": "images/icons/quotes-ltr.svg",
|
||||
"rtl": "images/icons/quotes-rtl.svg"
|
||||
} },
|
||||
"layout": {
|
||||
"file": {
|
||||
"ltr": "images/icons/layout-ltr.svg",
|
||||
"rtl": "images/icons/layout-rtl.svg"
|
||||
}
|
||||
},
|
||||
"markup": {
|
||||
"file": "images/icons/markup.svg"
|
||||
},
|
||||
"newline": {
|
||||
"file": {
|
||||
"ltr": "images/icons/newline-ltr.svg",
|
||||
"rtl": "images/icons/newline-rtl.svg"
|
||||
}
|
||||
},
|
||||
"noWikiText": {
|
||||
"file": "images/icons/noWikiText.svg"
|
||||
},
|
||||
"outline": {
|
||||
"file": {
|
||||
"ltr": "images/icons/outline-ltr.svg",
|
||||
"rtl": "images/icons/outline-rtl.svg"
|
||||
}
|
||||
},
|
||||
"puzzle": {
|
||||
"file": {
|
||||
"ltr": "images/icons/puzzle-ltr.svg",
|
||||
"rtl": "images/icons/puzzle-rtl.svg"
|
||||
}
|
||||
},
|
||||
"quotes": {
|
||||
"file": {
|
||||
"ltr": "images/icons/quotes-ltr.svg",
|
||||
"rtl": "images/icons/quotes-rtl.svg"
|
||||
}
|
||||
},
|
||||
"searchCaseSensitive": {
|
||||
"file": "images/icons/searchCaseSensitive.svg"
|
||||
},
|
||||
|
|
@ -65,18 +89,36 @@
|
|||
"searchRegularExpression": {
|
||||
"file": "images/icons/searchRegularExpression.svg"
|
||||
},
|
||||
"signature": { "file": {
|
||||
"ltr": "images/icons/signature-ltr.svg",
|
||||
"rtl": "images/icons/signature-rtl.svg"
|
||||
} },
|
||||
"specialCharacter": { "file": "images/icons/specialCharacter.svg" },
|
||||
"table": { "file": "images/icons/table.svg" },
|
||||
"tableAddColumnAfter": { "file": "images/icons/tableAddColumnAfter.svg" },
|
||||
"tableAddColumnBefore": { "file": "images/icons/tableAddColumnBefore.svg" },
|
||||
"tableAddRowAfter": { "file": "images/icons/tableAddRowAfter.svg" },
|
||||
"tableAddRowBefore": { "file": "images/icons/tableAddRowBefore.svg" },
|
||||
"tableCaption": { "file": "images/icons/tableCaption.svg" },
|
||||
"tableMergeCells": { "file": "images/icons/tableMergeCells.svg" },
|
||||
"signature": {
|
||||
"file": {
|
||||
"ltr": "images/icons/signature-ltr.svg",
|
||||
"rtl": "images/icons/signature-rtl.svg"
|
||||
}
|
||||
},
|
||||
"specialCharacter": {
|
||||
"file": "images/icons/specialCharacter.svg"
|
||||
},
|
||||
"table": {
|
||||
"file": "images/icons/table.svg"
|
||||
},
|
||||
"tableAddColumnAfter": {
|
||||
"file": "images/icons/tableAddColumnAfter.svg"
|
||||
},
|
||||
"tableAddColumnBefore": {
|
||||
"file": "images/icons/tableAddColumnBefore.svg"
|
||||
},
|
||||
"tableAddRowAfter": {
|
||||
"file": "images/icons/tableAddRowAfter.svg"
|
||||
},
|
||||
"tableAddRowBefore": {
|
||||
"file": "images/icons/tableAddRowBefore.svg"
|
||||
},
|
||||
"tableCaption": {
|
||||
"file": "images/icons/tableCaption.svg"
|
||||
},
|
||||
"tableMergeCells": {
|
||||
"file": "images/icons/tableMergeCells.svg"
|
||||
},
|
||||
"tableMoveColumnAfter": {
|
||||
"file": "images/icons/tableMoveColumnAfter.svg"
|
||||
},
|
||||
|
|
@ -89,13 +131,17 @@
|
|||
"tableMoveRowBefore": {
|
||||
"file": "images/icons/tableMoveRowBefore.svg"
|
||||
},
|
||||
"templateAdd": { "file": {
|
||||
"ltr": "images/icons/templateAdd-ltr.svg",
|
||||
"rtl": "images/icons/templateAdd-rtl.svg"
|
||||
} },
|
||||
"templateAdd": {
|
||||
"file": {
|
||||
"ltr": "images/icons/templateAdd-ltr.svg",
|
||||
"rtl": "images/icons/templateAdd-rtl.svg"
|
||||
}
|
||||
},
|
||||
"translation": {
|
||||
"file": "images/icons/language.svg"
|
||||
},
|
||||
"wikiText": { "file": "images/icons/wikiText.svg" }
|
||||
"wikiText": {
|
||||
"file": "images/icons/wikiText.svg"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,42 @@
|
|||
{
|
||||
"prefix": "oo-ui-icon",
|
||||
"intro": "@import '../../../../src/styles/common';",
|
||||
"images": {
|
||||
"book": {
|
||||
"file": {
|
||||
"ltr": "images/icons/book-ltr.svg",
|
||||
"rtl": "images/icons/book-rtl.svg"
|
||||
}
|
||||
},
|
||||
"journal": {
|
||||
"file": {
|
||||
"ltr": "images/icons/journal-ltr.svg",
|
||||
"rtl": "images/icons/journal-rtl.svg"
|
||||
}
|
||||
},
|
||||
"newspaper": {
|
||||
"file": {
|
||||
"ltr": "images/icons/newspaper-ltr.svg",
|
||||
"rtl": "images/icons/newspaper-rtl.svg"
|
||||
}
|
||||
},
|
||||
"web": {
|
||||
"file": "images/icons/web.svg"
|
||||
},
|
||||
"reference": {
|
||||
"file": "images/icons/reference.svg"
|
||||
},
|
||||
"referenceExisting": {
|
||||
"file": {
|
||||
"ltr": "images/icons/referenceExisting-ltr.svg",
|
||||
"rtl": "images/icons/referenceExisting-rtl.svg"
|
||||
}
|
||||
},
|
||||
"references": {
|
||||
"file": {
|
||||
"ltr": "images/icons/references-ltr.svg",
|
||||
"rtl": "images/icons/references-rtl.svg"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -19,21 +19,29 @@
|
|||
}
|
||||
},
|
||||
"images": {
|
||||
"indent": { "file": {
|
||||
"ltr": "images/icons/indent-ltr.svg",
|
||||
"rtl": "images/icons/indent-rtl.svg"
|
||||
} },
|
||||
"listBullet": { "file": {
|
||||
"ltr": "images/icons/listBullet-ltr.svg",
|
||||
"rtl": "images/icons/listBullet-rtl.svg"
|
||||
} },
|
||||
"listNumbered": { "file": {
|
||||
"ltr": "images/icons/listNumbered-ltr.svg",
|
||||
"rtl": "images/icons/listNumbered-rtl.svg"
|
||||
} },
|
||||
"outdent": { "file": {
|
||||
"ltr": "images/icons/outdent-ltr.svg",
|
||||
"rtl": "images/icons/outdent-rtl.svg"
|
||||
} }
|
||||
"indent": {
|
||||
"file": {
|
||||
"ltr": "images/icons/indent-ltr.svg",
|
||||
"rtl": "images/icons/indent-rtl.svg"
|
||||
}
|
||||
},
|
||||
"listBullet": {
|
||||
"file": {
|
||||
"ltr": "images/icons/listBullet-ltr.svg",
|
||||
"rtl": "images/icons/listBullet-rtl.svg"
|
||||
}
|
||||
},
|
||||
"listNumbered": {
|
||||
"file": {
|
||||
"ltr": "images/icons/listNumbered-ltr.svg",
|
||||
"rtl": "images/icons/listNumbered-rtl.svg"
|
||||
}
|
||||
},
|
||||
"outdent": {
|
||||
"file": {
|
||||
"ltr": "images/icons/outdent-ltr.svg",
|
||||
"rtl": "images/icons/outdent-rtl.svg"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,38 +19,51 @@
|
|||
}
|
||||
},
|
||||
"images": {
|
||||
"bigger": { "file": "images/icons/bigger.svg" },
|
||||
"smaller": { "file": "images/icons/smaller.svg" },
|
||||
"subscript": { "file": {
|
||||
"ltr": "images/icons/subscript-ltr.svg",
|
||||
"rtl": "images/icons/subscript-rtl.svg"
|
||||
} },
|
||||
"superscript": { "file": {
|
||||
"ltr": "images/icons/superscript-ltr.svg",
|
||||
"rtl": "images/icons/superscript-rtl.svg"
|
||||
} },
|
||||
"bold": { "file": {
|
||||
"default": "images/icons/bold-a.svg",
|
||||
"lang": {
|
||||
"ar": "images/icons/bold-arab-ain.svg",
|
||||
"be": "images/icons/bold-cyrl-te.svg",
|
||||
"cs,en,he,ml,pl,sco": "images/icons/bold-b.svg",
|
||||
"da,de,hu,ksh,nn,no,sv": "images/icons/bold-f.svg",
|
||||
"es,gl,pt": "images/icons/bold-n.svg",
|
||||
"eu,fi": "images/icons/bold-l.svg",
|
||||
"fa": "images/icons/bold-arab-dad.svg",
|
||||
"fr,it": "images/icons/bold-g.svg",
|
||||
"hy": "images/icons/bold-armn-to.svg",
|
||||
"ka": "images/icons/bold-geor-man.svg",
|
||||
"ky,ru,uk": "images/icons/bold-cyrl-zhe.svg",
|
||||
"nl": "images/icons/bold-v.svg",
|
||||
"os": "images/icons/bold-cyrl-be.svg"
|
||||
"bigger": {
|
||||
"file": "images/icons/bigger.svg"
|
||||
},
|
||||
"smaller": {
|
||||
"file": "images/icons/smaller.svg"
|
||||
},
|
||||
"subscript": {
|
||||
"file": {
|
||||
"ltr": "images/icons/subscript-ltr.svg",
|
||||
"rtl": "images/icons/subscript-rtl.svg"
|
||||
}
|
||||
} },
|
||||
"highlight": { "file": "images/icons/highlight.svg" },
|
||||
"italic": { "file": {
|
||||
"default": "images/icons/italic-a.svg",
|
||||
"lang": {
|
||||
},
|
||||
"superscript": {
|
||||
"file": {
|
||||
"ltr": "images/icons/superscript-ltr.svg",
|
||||
"rtl": "images/icons/superscript-rtl.svg"
|
||||
}
|
||||
},
|
||||
"bold": {
|
||||
"file": {
|
||||
"default": "images/icons/bold-a.svg",
|
||||
"lang": {
|
||||
"ar": "images/icons/bold-arab-ain.svg",
|
||||
"be": "images/icons/bold-cyrl-te.svg",
|
||||
"cs,en,he,ml,pl,sco": "images/icons/bold-b.svg",
|
||||
"da,de,hu,ksh,nn,no,sv": "images/icons/bold-f.svg",
|
||||
"es,gl,pt": "images/icons/bold-n.svg",
|
||||
"eu,fi": "images/icons/bold-l.svg",
|
||||
"fa": "images/icons/bold-arab-dad.svg",
|
||||
"fr,it": "images/icons/bold-g.svg",
|
||||
"hy": "images/icons/bold-armn-to.svg",
|
||||
"ka": "images/icons/bold-geor-man.svg",
|
||||
"ky,ru,uk": "images/icons/bold-cyrl-zhe.svg",
|
||||
"nl": "images/icons/bold-v.svg",
|
||||
"os": "images/icons/bold-cyrl-be.svg"
|
||||
}
|
||||
}
|
||||
},
|
||||
"highlight": {
|
||||
"file": "images/icons/highlight.svg"
|
||||
},
|
||||
"italic": {
|
||||
"file": {
|
||||
"default": "images/icons/italic-a.svg",
|
||||
"lang": {
|
||||
"ar": "images/icons/italic-arab-meem.svg",
|
||||
"cs,en,fr,he,ml,pl,pt,sco": "images/icons/italic-i.svg",
|
||||
"be,da,de,fi,ky,nn,no,os,sv,ru,uk": "images/icons/italic-k.svg",
|
||||
|
|
@ -62,20 +75,25 @@
|
|||
"ksh": "images/icons/italic-s.svg",
|
||||
"ka": "images/icons/italic-geor-kan.svg"
|
||||
}
|
||||
} },
|
||||
"strikethrough": { "file": {
|
||||
"default": "images/icons/strikethrough-a.svg",
|
||||
"lang": {
|
||||
"en": "images/icons/strikethrough-s.svg",
|
||||
"fi": "images/icons/strikethrough-y.svg"
|
||||
}
|
||||
} },
|
||||
"underline": { "file": {
|
||||
"default": "images/icons/underline-a.svg",
|
||||
"lang": {
|
||||
"en,de": "images/icons/underline-u.svg"
|
||||
},
|
||||
"strikethrough": {
|
||||
"file": {
|
||||
"default": "images/icons/strikethrough-a.svg",
|
||||
"lang": {
|
||||
"en": "images/icons/strikethrough-s.svg",
|
||||
"fi": "images/icons/strikethrough-y.svg"
|
||||
}
|
||||
}
|
||||
} },
|
||||
},
|
||||
"underline": {
|
||||
"file": {
|
||||
"default": "images/icons/underline-a.svg",
|
||||
"lang": {
|
||||
"en,de": "images/icons/underline-u.svg"
|
||||
}
|
||||
}
|
||||
},
|
||||
"textLanguage": {
|
||||
"file": "images/icons/language.svg"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -19,48 +19,89 @@
|
|||
}
|
||||
},
|
||||
"images": {
|
||||
"add": { "file": "images/icons/add.svg" },
|
||||
"advanced": { "file": "images/icons/advanced.svg" },
|
||||
"browser": { "file": {
|
||||
"ltr": "images/icons/browser-ltr.svg",
|
||||
"rtl": "images/icons/browser-rtl.svg"
|
||||
} },
|
||||
"cancel": { "file": "images/icons/cancel.svg", "variants": [ "destructive" ] },
|
||||
"check": { "file": "images/icons/check.svg", "variants": [ "destructive" ] },
|
||||
"checkAll": { "file": "images/icons/checkAll.svg" },
|
||||
"clear": { "file": "images/icons/clear.svg" },
|
||||
"clock": { "file": "images/icons/clock.svg" },
|
||||
"close": { "file": "images/icons/close.svg" },
|
||||
"ellipsis": { "file": "images/icons/ellipsis.svg" },
|
||||
"feedback": { "file": {
|
||||
"ltr": "images/icons/feedback-ltr.svg",
|
||||
"rtl": "images/icons/feedback-rtl.svg"
|
||||
} },
|
||||
"funnel": { "file": {
|
||||
"ltr": "images/icons/funnel-ltr.svg",
|
||||
"rtl": "images/icons/funnel-rtl.svg"
|
||||
} },
|
||||
"heart": { "file": "images/icons/heart.svg" },
|
||||
"help": { "file": {
|
||||
"ltr": "images/icons/help-ltr.svg",
|
||||
"rtl": "images/icons/help-rtl.svg",
|
||||
"lang": {
|
||||
"he,yi": "images/icons/help-ltr.svg"
|
||||
"add": {
|
||||
"file": "images/icons/add.svg"
|
||||
},
|
||||
"advanced": {
|
||||
"file": "images/icons/advanced.svg"
|
||||
},
|
||||
"browser": {
|
||||
"file": {
|
||||
"ltr": "images/icons/browser-ltr.svg",
|
||||
"rtl": "images/icons/browser-rtl.svg"
|
||||
}
|
||||
} },
|
||||
},
|
||||
"cancel": {
|
||||
"file": "images/icons/cancel.svg",
|
||||
"variants": [ "destructive" ]
|
||||
},
|
||||
"check": {
|
||||
"file": "images/icons/check.svg",
|
||||
"variants": [ "destructive" ]
|
||||
},
|
||||
"checkAll": {
|
||||
"file": "images/icons/checkAll.svg"
|
||||
},
|
||||
"clear": {
|
||||
"file": "images/icons/clear.svg"
|
||||
},
|
||||
"clock": {
|
||||
"file": "images/icons/clock.svg"
|
||||
},
|
||||
"close": {
|
||||
"file": "images/icons/close.svg"
|
||||
},
|
||||
"ellipsis": {
|
||||
"file": "images/icons/ellipsis.svg"
|
||||
},
|
||||
"feedback": {
|
||||
"file": {
|
||||
"ltr": "images/icons/feedback-ltr.svg",
|
||||
"rtl": "images/icons/feedback-rtl.svg"
|
||||
}
|
||||
},
|
||||
"funnel": {
|
||||
"file": {
|
||||
"ltr": "images/icons/funnel-ltr.svg",
|
||||
"rtl": "images/icons/funnel-rtl.svg"
|
||||
}
|
||||
},
|
||||
"heart": {
|
||||
"file": "images/icons/heart.svg"
|
||||
},
|
||||
"help": {
|
||||
"file": {
|
||||
"ltr": "images/icons/help-ltr.svg",
|
||||
"rtl": "images/icons/help-rtl.svg",
|
||||
"lang": {
|
||||
"he,yi": "images/icons/help-ltr.svg"
|
||||
}
|
||||
}
|
||||
},
|
||||
"key": {
|
||||
"file": "images/icons/key.svg"
|
||||
},
|
||||
"keyboard": { "file": "images/icons/keyboard.svg" },
|
||||
"lightbulb": { "file": "images/icons/lightbulb.svg" },
|
||||
"logOut": { "file": {
|
||||
"ltr": "images/icons/logOut-ltr.svg",
|
||||
"rtl": "images/icons/logOut-rtl.svg"
|
||||
} },
|
||||
"newWindow": { "file": {
|
||||
"ltr": "images/icons/newWindow-ltr.svg",
|
||||
"rtl": "images/icons/newWindow-rtl.svg"
|
||||
} },
|
||||
"keyboard": {
|
||||
"file": "images/icons/keyboard.svg"
|
||||
},
|
||||
"lightbulb": {
|
||||
"file": "images/icons/lightbulb.svg"
|
||||
},
|
||||
"logOut": {
|
||||
"file": {
|
||||
"ltr": "images/icons/logOut-ltr.svg",
|
||||
"rtl": "images/icons/logOut-rtl.svg"
|
||||
}
|
||||
},
|
||||
"newWindow": {
|
||||
"file": {
|
||||
"ltr": "images/icons/newWindow-ltr.svg",
|
||||
"rtl": "images/icons/newWindow-rtl.svg"
|
||||
}
|
||||
},
|
||||
"pageSettings": {
|
||||
"file": "images/icons/pageSettings.svg"
|
||||
},
|
||||
"printer": {
|
||||
"file": "images/icons/printer.svg"
|
||||
},
|
||||
|
|
@ -70,7 +111,12 @@
|
|||
"search": {
|
||||
"file": "images/icons/search.svg"
|
||||
},
|
||||
"settings": { "file": "images/icons/settings.svg" },
|
||||
"subtract": { "file": "images/icons/subtract.svg" }
|
||||
"settings": {
|
||||
"file": "images/icons/pageSettings.svg",
|
||||
"deprecated": "Renamed since v0.27.0, use 'pageSettings' instead."
|
||||
},
|
||||
"subtract": {
|
||||
"file": "images/icons/subtract.svg"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,23 +19,34 @@
|
|||
}
|
||||
},
|
||||
"images": {
|
||||
"menu": { "file": "images/icons/menu.svg" },
|
||||
"stripeFlow": { "file": {
|
||||
"ltr": "images/icons/stripeFlow-ltr.svg",
|
||||
"rtl": "images/icons/stripeFlow-rtl.svg"
|
||||
} },
|
||||
"stripeSummary": { "file": {
|
||||
"ltr": "images/icons/stripeSummary-ltr.svg",
|
||||
"rtl": "images/icons/stripeSummary-rtl.svg"
|
||||
} },
|
||||
"stripeToC": { "file": {
|
||||
"ltr": "images/icons/stripeToC-ltr.svg",
|
||||
"rtl": "images/icons/stripeToC-rtl.svg"
|
||||
} },
|
||||
"viewCompact": { "file": "images/icons/viewCompact.svg" },
|
||||
"viewDetails": { "file": {
|
||||
"ltr": "images/icons/viewDetails-ltr.svg",
|
||||
"rtl": "images/icons/viewDetails-rtl.svg"
|
||||
} }
|
||||
"menu": {
|
||||
"file": "images/icons/menu.svg" },
|
||||
"stripeFlow": {
|
||||
"file": {
|
||||
"ltr": "images/icons/stripeFlow-ltr.svg",
|
||||
"rtl": "images/icons/stripeFlow-rtl.svg"
|
||||
}
|
||||
},
|
||||
"stripeSummary": {
|
||||
"file": {
|
||||
"ltr": "images/icons/stripeSummary-ltr.svg",
|
||||
"rtl": "images/icons/stripeSummary-rtl.svg"
|
||||
}
|
||||
},
|
||||
"stripeToC": {
|
||||
"file": {
|
||||
"ltr": "images/icons/stripeToC-ltr.svg",
|
||||
"rtl": "images/icons/stripeToC-rtl.svg"
|
||||
}
|
||||
},
|
||||
"viewCompact": {
|
||||
"file": "images/icons/viewCompact.svg"
|
||||
},
|
||||
"viewDetails": {
|
||||
"file": {
|
||||
"ltr": "images/icons/viewDetails-ltr.svg",
|
||||
"rtl": "images/icons/viewDetails-rtl.svg"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,10 +21,13 @@
|
|||
"images": {
|
||||
"map": {
|
||||
"file": {
|
||||
"ltr": "images/icons/map-ltr.svg",
|
||||
"rtl": "images/icons/map-rtl.svg"
|
||||
} },
|
||||
"mapPin": { "file": "images/icons/mapPin.svg" },
|
||||
"ltr": "images/icons/map-ltr.svg",
|
||||
"rtl": "images/icons/map-rtl.svg"
|
||||
}
|
||||
},
|
||||
"mapPin": {
|
||||
"file": "images/icons/mapPin.svg"
|
||||
},
|
||||
"mapPinAdd": {
|
||||
"file": "images/icons/mapPinAdd.svg"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -22,7 +22,9 @@
|
|||
"exitFullscreen": {
|
||||
"file": "images/icons/exitFullscreen.svg"
|
||||
},
|
||||
"fullScreen": { "file": "images/icons/fullScreen.svg" },
|
||||
"fullScreen": {
|
||||
"file": "images/icons/fullScreen.svg"
|
||||
},
|
||||
"image": {
|
||||
"file": "images/icons/image.svg"
|
||||
},
|
||||
|
|
@ -53,6 +55,8 @@
|
|||
"play": {
|
||||
"file": "images/icons/play.svg"
|
||||
},
|
||||
"stop": { "file": "images/icons/stop.svg" }
|
||||
"stop": {
|
||||
"file": "images/icons/stop.svg"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,7 +25,10 @@
|
|||
"bookmark": {
|
||||
"file": "images/icons/bookmark.svg"
|
||||
},
|
||||
"block": { "file": "images/icons/block.svg", "variants": [ "destructive" ] },
|
||||
"block": {
|
||||
"file": "images/icons/block.svg",
|
||||
"variants": [ "destructive" ]
|
||||
},
|
||||
"unBlock": {
|
||||
"file": "images/icons/unBlock.svg"
|
||||
},
|
||||
|
|
@ -37,34 +40,53 @@
|
|||
"file": "images/icons/bookmark.svg",
|
||||
"deprecated": "Renamed since v0.26.1, use 'bookmark' instead."
|
||||
},
|
||||
"flag": { "file": {
|
||||
"ltr": "images/icons/flag-ltr.svg",
|
||||
"rtl": "images/icons/flag-rtl.svg"
|
||||
} },
|
||||
"unFlag": { "file": {
|
||||
"ltr": "images/icons/unFlag-ltr.svg",
|
||||
"rtl": "images/icons/unFlag-rtl.svg"
|
||||
} },
|
||||
"flag": {
|
||||
"file": {
|
||||
"ltr": "images/icons/flag-ltr.svg",
|
||||
"rtl": "images/icons/flag-rtl.svg"
|
||||
}
|
||||
},
|
||||
"unFlag": {
|
||||
"file": {
|
||||
"ltr": "images/icons/unFlag-ltr.svg",
|
||||
"rtl": "images/icons/unFlag-rtl.svg"
|
||||
}
|
||||
},
|
||||
"lock": {
|
||||
"file": "images/icons/lock.svg", "variants": [ "destructive" ]
|
||||
"file": "images/icons/lock.svg",
|
||||
"variants": [ "destructive" ]
|
||||
},
|
||||
"unLock": {
|
||||
"file": "images/icons/unLock.svg", "variants": [ "destructive" ]
|
||||
"file": "images/icons/unLock.svg",
|
||||
"variants": [ "destructive" ]
|
||||
},
|
||||
"star": {
|
||||
"file": "images/icons/star.svg"
|
||||
},
|
||||
"halfStar": {
|
||||
"file": {
|
||||
"ltr": "images/icons/halfStar-ltr.svg",
|
||||
"rtl": "images/icons/halfStar-rtl.svg"
|
||||
}
|
||||
},
|
||||
"unStar": {
|
||||
"file": "images/icons/unStar.svg"
|
||||
},
|
||||
"trash": {
|
||||
"file": "images/icons/trash.svg",
|
||||
"variants": [ "destructive" ]
|
||||
},
|
||||
"star": { "file": "images/icons/star.svg" },
|
||||
"halfStar": { "file": {
|
||||
"ltr": "images/icons/halfStar-ltr.svg",
|
||||
"rtl": "images/icons/halfStar-rtl.svg"
|
||||
} },
|
||||
"unStar": { "file": "images/icons/unStar.svg" },
|
||||
"trash": { "file": "images/icons/trash.svg", "variants": [ "destructive" ] },
|
||||
"unTrash": {
|
||||
"file": "images/icons/unTrash.svg"
|
||||
},
|
||||
"pushPin": { "file": "images/icons/pushPin.svg" },
|
||||
"ongoingConversation": { "file": {
|
||||
"ltr": "images/icons/ongoingConversation-ltr.svg",
|
||||
"rtl": "images/icons/ongoingConversation-rtl.svg"
|
||||
} }
|
||||
"pushPin": {
|
||||
"file": "images/icons/pushPin.svg"
|
||||
},
|
||||
"ongoingConversation": {
|
||||
"file": {
|
||||
"ltr": "images/icons/ongoingConversation-ltr.svg",
|
||||
"rtl": "images/icons/ongoingConversation-rtl.svg"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,41 +19,59 @@
|
|||
}
|
||||
},
|
||||
"images": {
|
||||
"arrowNext": { "file": {
|
||||
"ltr": "images/icons/arrowNext-ltr.svg",
|
||||
"rtl": "images/icons/arrowNext-rtl.svg"
|
||||
} },
|
||||
"arrowPrevious": { "file": {
|
||||
"ltr": "images/icons/arrowPrevious-ltr.svg",
|
||||
"rtl": "images/icons/arrowPrevious-rtl.svg"
|
||||
} },
|
||||
"collapse": { "file": "images/icons/collapse.svg" },
|
||||
"downTriangle": { "file": "images/icons/downTriangle.svg" },
|
||||
"draggable": { "file": "images/icons/draggable.svg" },
|
||||
"expand": { "file": "images/icons/expand.svg" },
|
||||
"arrowNext": {
|
||||
"file": {
|
||||
"ltr": "images/icons/arrowNext-ltr.svg",
|
||||
"rtl": "images/icons/arrowNext-rtl.svg"
|
||||
}
|
||||
},
|
||||
"arrowPrevious": {
|
||||
"file": {
|
||||
"ltr": "images/icons/arrowPrevious-ltr.svg",
|
||||
"rtl": "images/icons/arrowPrevious-rtl.svg"
|
||||
}
|
||||
},
|
||||
"collapse": {
|
||||
"file": "images/icons/collapse.svg"
|
||||
},
|
||||
"downTriangle": {
|
||||
"file": "images/icons/downTriangle.svg"
|
||||
},
|
||||
"draggable": {
|
||||
"file": "images/icons/draggable.svg"
|
||||
},
|
||||
"expand": {
|
||||
"file": "images/icons/expand.svg"
|
||||
},
|
||||
"move": {
|
||||
"file": "images/icons/move.svg"
|
||||
},
|
||||
"next": { "file": {
|
||||
"ltr": "images/icons/next-ltr.svg",
|
||||
"rtl": "images/icons/next-rtl.svg"
|
||||
"next": {
|
||||
"file": {
|
||||
"ltr": "images/icons/next-ltr.svg",
|
||||
"rtl": "images/icons/next-rtl.svg"
|
||||
}
|
||||
},
|
||||
"previous": { "file": {
|
||||
"ltr": "images/icons/previous-ltr.svg",
|
||||
"rtl": "images/icons/previous-rtl.svg"
|
||||
"previous": {
|
||||
"file": {
|
||||
"ltr": "images/icons/previous-ltr.svg",
|
||||
"rtl": "images/icons/previous-rtl.svg"
|
||||
}
|
||||
},
|
||||
"last": { "file": {
|
||||
"ltr": "images/icons/moveLast-ltr.svg",
|
||||
"rtl": "images/icons/moveLast-rtl.svg"
|
||||
"last": {
|
||||
"file": {
|
||||
"ltr": "images/icons/moveLast-ltr.svg",
|
||||
"rtl": "images/icons/moveLast-rtl.svg"
|
||||
}
|
||||
},
|
||||
"first": { "file": {
|
||||
"ltr": "images/icons/moveFirst-ltr.svg",
|
||||
"rtl": "images/icons/moveFirst-rtl.svg"
|
||||
"first": {
|
||||
"file": {
|
||||
"ltr": "images/icons/moveFirst-ltr.svg",
|
||||
"rtl": "images/icons/moveFirst-rtl.svg"
|
||||
}
|
||||
},
|
||||
"upTriangle": { "file": "images/icons/upTriangle.svg" }
|
||||
"upTriangle": {
|
||||
"file": "images/icons/upTriangle.svg"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,9 +33,11 @@
|
|||
"file": "images/icons/userAnonymous.svg",
|
||||
"deprecated": "Renamed since v0.26.2, use 'userAnonymous' instead."
|
||||
},
|
||||
"userTalk": { "file": {
|
||||
"ltr": "images/icons/userTalk-ltr.svg",
|
||||
"rtl": "images/icons/userTalk-rtl.svg"
|
||||
} }
|
||||
"userTalk": {
|
||||
"file": {
|
||||
"ltr": "images/icons/userTalk-ltr.svg",
|
||||
"rtl": "images/icons/userTalk-rtl.svg"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,9 +18,17 @@
|
|||
}
|
||||
},
|
||||
"images": {
|
||||
"logoCC": { "file": "images/icons/logo-CC.svg" },
|
||||
"logoWikimediaCommons": { "file": "images/icons/logo-Wikimedia-Commons.svg" },
|
||||
"logoWikimediaDiscovery": { "file": "images/icons/logo-Wikimedia-Discovery.svg" },
|
||||
"logoWikipedia": { "file": "images/icons/logo-Wikipedia.svg" }
|
||||
"logoCC": {
|
||||
"file": "images/icons/logo-CC.svg"
|
||||
},
|
||||
"logoWikimediaCommons": {
|
||||
"file": "images/icons/logo-Wikimedia-Commons.svg"
|
||||
},
|
||||
"logoWikimediaDiscovery": {
|
||||
"file": "images/icons/logo-Wikimedia-Discovery.svg"
|
||||
},
|
||||
"logoWikipedia": {
|
||||
"file": "images/icons/logo-Wikipedia.svg"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><g fill="#fff"><title>cite article</title><path d="M15 1v9l-2.78-2.78L9.44 10V1H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2z"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 280 B |
|
|
@ -1 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><g fill="#36c"><title>cite article</title><path d="M15 1v9l-2.78-2.78L9.44 10V1H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2z"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 280 B |
|
|
@ -1 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><title>cite article</title><path d="M15 1v9l-2.78-2.78L9.44 10V1H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2z"/></svg>
|
||||
|
Before Width: | Height: | Size: 261 B |
|
Before Width: | Height: | Size: 188 B After Width: | Height: | Size: 188 B |
|
Before Width: | Height: | Size: 660 B After Width: | Height: | Size: 660 B |
|
Before Width: | Height: | Size: 249 B After Width: | Height: | Size: 249 B |
|
Before Width: | Height: | Size: 660 B After Width: | Height: | Size: 660 B |
|
Before Width: | Height: | Size: 187 B After Width: | Height: | Size: 187 B |
|
Before Width: | Height: | Size: 641 B After Width: | Height: | Size: 641 B |
|
Before Width: | Height: | Size: 138 B After Width: | Height: | Size: 138 B |
|
|
@ -0,0 +1 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><g fill="#fff"><title>reference</title><path d="M15 1v9l-2.78-2.78L9.44 10V1H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2z"/></g></svg>
|
||||
|
After Width: | Height: | Size: 277 B |
|
Before Width: | Height: | Size: 158 B After Width: | Height: | Size: 158 B |
|
|
@ -0,0 +1 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><g fill="#36c"><title>reference</title><path d="M15 1v9l-2.78-2.78L9.44 10V1H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2z"/></g></svg>
|
||||
|
After Width: | Height: | Size: 277 B |
|
Before Width: | Height: | Size: 134 B After Width: | Height: | Size: 134 B |
|
|
@ -0,0 +1 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><title>reference</title><path d="M15 1v9l-2.78-2.78L9.44 10V1H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2z"/></svg>
|
||||
|
After Width: | Height: | Size: 258 B |
|
After Width: | Height: | Size: 134 B |
|
|
@ -0,0 +1 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="2 2 20 20"><title>exisiting reference</title><path d="M7 5v17h12c1 0 2-1 2-2V5H7zm12 14c0 1-1 1-1 1h-8V7h2v6l2-2 2 2V7h3v12zM5 18h-.3C3.2 18 2 16.8 2 15.3V1.8h3V18zM2 1h16v2H2z"/></svg>
|
||||
|
After Width: | Height: | Size: 295 B |
|
After Width: | Height: | Size: 126 B |
|
|
@ -0,0 +1 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="2 2 20 20"><title>existing reference</title><path d="M17 5v17H5c-1 0-2-1-2-2V5h14zM5 19c0 1 1 1 1 1h8V7h-2v6l-2-2-2 2V7H5v12zm14-1h.3c1.5 0 2.7-1.2 2.7-2.7V1.8h-3V18zm3-17H6v2h16z"/></svg>
|
||||
|
After Width: | Height: | Size: 298 B |
|
After Width: | Height: | Size: 213 B |
|
|
@ -0,0 +1 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="2 2 20 20"><title>references</title><path d="M3 6v12h4V6H3zm3 10H4v-1h2v1zm0-3H4v-1h2v1zm2-7v12h4V6H8zm3 10H9v-1h2v1zm0-3H9v-1h2v1zm.934-5.353L18 18l3.449-2.021-6.065-10.354-3.45 2.022zm7.643 7.111l-1.726 1.012-.506-.862 1.725-1.012.507.862zM18.06 12.17l-1.725 1.011-.506-.862 1.726-1.012.505.863z"/></svg>
|
||||
|
After Width: | Height: | Size: 416 B |
|
After Width: | Height: | Size: 225 B |
|
|
@ -0,0 +1 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="2 2 20 20"><title>references</title><path d="M21.449 6v12h-4V6h4zm-3 10h2v-1h-2v1zm0-3h2v-1h-2v1zm-2-7v12h-4V6h4zm-3 10h2v-1h-2v1zm0-3h2v-1h-2v1zm-.934-5.353L6.449 18 3 15.979 9.065 5.625l3.45 2.022zm-7.643 7.111l1.726 1.012.506-.862-1.725-1.012-.507.862zm1.517-2.588l1.725 1.011.506-.862-1.726-1.012-.505.863z"/></svg>
|
||||
|
After Width: | Height: | Size: 429 B |
BIN
resources/lib/oojs-ui/themes/wikimediaui/images/icons/web.png
Normal file
|
After Width: | Height: | Size: 120 B |
|
|
@ -0,0 +1 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="2 2 20 20"><path id="laptop" d="M22.78 18.46L21 16V4H3v12l-1.757 2.463a.974.974 0 0 0-.157 1.043c.157.347.533.494.914.494h20c.382 0 .783-.148.94-.496a.976.976 0 0 0-.16-1.044zM4 18l1-2V6h14v10l1 2H4z"/><path id="window" d="M7 16h10V8H7v8zm2-2v-3h6v3H9z"/></svg>
|
||||
|
After Width: | Height: | Size: 371 B |
|
Before Width: | Height: | Size: 191 B |
|
|
@ -1 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><g fill="#fff"><title>alert</title><path d="M10 0a10 10 0 1 0 10 10A10 10 0 0 0 10 0zm1 16H9v-2h2zm0-4H9V4h2z"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 243 B |
|
Before Width: | Height: | Size: 188 B |
|
|
@ -1 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><title>alert</title><path d="M10 0a10 10 0 1 0 10 10A10 10 0 0 0 10 0zm1 16H9v-2h2zm0-4H9V4h2z"/></svg>
|
||||
|
Before Width: | Height: | Size: 224 B |
|
|
@ -9,14 +9,18 @@
|
|||
}
|
||||
},
|
||||
"images": {
|
||||
"alert": {
|
||||
"file": "images/indicators/alert.svg",
|
||||
"deprecated": "This will be removed in v0.27.0."
|
||||
"clear": {
|
||||
"file": "images/indicators/clear.svg"
|
||||
},
|
||||
"up": {
|
||||
"file": "images/indicators/up.svg"
|
||||
},
|
||||
"down": {
|
||||
"file": "images/indicators/down.svg"
|
||||
},
|
||||
"required": {
|
||||
"file": "images/indicators/required.svg"
|
||||
},
|
||||
"clear": { "file": "images/indicators/clear.svg" },
|
||||
"up": { "file": "images/indicators/up.svg" },
|
||||
"down": { "file": "images/indicators/down.svg" },
|
||||
"required": { "file": "images/indicators/required.svg" },
|
||||
"search": {
|
||||
"file": "images/indicators/search.svg"
|
||||
}
|
||||
|
|
|
|||