- Using CommonJS modules instead of global namespaces for these files:
- ExpertExtender/ExpertExtender.LanguageSelector.js
- ExpertExtender/ExpertExtender.UnitSelector.js
- jquery.valueview.ViewState.js
- jquery.valueview.valueview.js
- experts/MonolingualText.js
- experts/GeoShape.js
- experts/TimeInput.js
- experts/GlobeCoordinateInput.js
- experts/TabularData.js
- experts/QuantityInput.js
- experts/CommonsMediaType.js
- experts/StringValue.js
- Updated i18n message translations.
- Re-render "globecoordinate" values for preview.
- Updated some deprecated
jQuery.expr
statements. - Updated i18n message translations.
- Updated i18n message translations.
- Fixed
jQuery.ui.commonssuggester
not always displaying all thumbnails.
jQuery.valueview.ExpertExtender.Listrotator
constructor requires aMessageProvider
now.jQuery.ui.listrotator
requires amessageProvider
option now.- Made the library a pure JavaScript library.
- Removed MediaWiki extension credits registration.
- Removed MediaWiki i18n message registration.
- Removed MediaWiki ResourceLoader module definitions.
- Removed
VALUEVIEW_VERSION
constant. - Raised DataValues JavaScript library version requirement to 0.10.0.
- Removed
jQuery.valueview.ExpertExtender.CalendarHint
. - Removed dependency on
globeCoordinate.Formatter
. - Removed dependency on the Parameterize QUnit plugin.
- Fixed
jQuery.valueview.ExpertExtender.Preview.destroy
failing when called twice. - Fixed incomplete
jQuery.valueview.experts.GlobeCoordinateInput.destroy
. - Fixed incomplete
jQuery.valueview.experts.TimeInput.destroy
. - Made all tests compatible with QUnit 2.
- Fixed
jQuery.ui.suggester
andjQuery.animateWithEvent
tests.
- Removed
jQuery.valueview.ExpertExtender.Toggler
.
- All relevant
jQuery.valueview.experts.…
classes are now exported viamodule.exports
. - Raised required PHP version from 5.3 to 5.5.9.
- Replaces JSCS and JSLint with ESLint.
- Added support for the
tabular-data
data type. - Adjusted
jQuery.ui.listrotator
to obey the Wikimedia color scheme.
- Major changes to
jQuery.ui.commonssuggester
:- Now uses MediaWiki
search
API instead of OpenSearch. - Now searches all namespaces by default, instead of only the File namespace.
- Now shows thumbnails when searching the File namespace.
- Added required
apiUrl
option. - Added optional
contentModel
option. - Added
ui-commonssuggester-list
CSS class.
- Now uses MediaWiki
GeoShape
expert now only suggests GeoJSON pages.- Changes to
jQuery.valueview.valueview
:- Fixed a bug where certain consecutive changes were considered invalid.
getTextValue
andgetFormattedValue
never return null any more, but empty strings when not up to date, and the formatter API failed or did not responded yet.
- Maximized developer dependency ranges.
- Tests do not use
CompletenessTest
any more.
- Fixed
jQuery.ui.ooMenu
'scustomItems
initialization.
- Added support for
geo-shape
data type. - The close icon on inputextenders now follows MediaWiki standard.
- Fixed
jQuery.ui.ooMenu
'scustomItems
sharing state. - Fixed text overflow in listrotator dropdowns.
jQuery.ui.commonssuggester
now allows pasting full and partial Wikimedia Commons URLs.- Added support for
null
precision toGlobeCoordinateInput
.
- Handle null upstream values in
jQuery.valueview.ExpertExtender.LanguageSelector::onInitialShow
. - Properly forward API error messages in
jquery.ui.unitsuggester
.
- Fixed
jQuery.ui.suggester
font size.
- Moved
valueviewchange
event after actual changing the value. jQuery.ui.suggester
now also closes when tabbing out and reopens on click.jQuery.ui.toggler
now uses the default MediaWiki link color.
- Fixed
jQuery.focusAt
andjquery.valueview.ExpertExtender.Listrotator
QUnit tests.
GlobeCoordinateInput
andTimeInput
do not usejQuery.valueview.ExpertExtender.Toggler
any more.- Simplified
jQuery.ui.listrotator
widget:- Removed
$prev
and$next
elements as well asprev
,next
androtate
methods. - Replaced
$auto
element with "set manually" checkbox. - Removed all
animation
options. - Removed
isRTL
option.
- Removed
- Improved
jQuery.ui.inputextender
styles. - Made
jQuery.ui.inputextender
animations faster.
- Fix quantities without unit in
QuantityInput
- Changed
ValueView
to take twoValueFormatter
instances instead of aValueFormatterStore
- Changed
Expert::valueCharacteristics
definition so that it does not have to be statically callable anymore
- Correctly detect a changed language code when editing a
MonolingualTextValue
.
- Added compatibility with DataValues JavaScript 0.8.0.
- Fixed
jQuery.valueview.experts.GlobeCoordinateInput
failing when precision is null.
- Addded optional
visible
option tojQuery.ui.toggler
. - Fixed
jQuery.ui.languagesuggester
not propagating updates. - Fixed
jQuery.ui.languagesuggester::getSelectedValue
to returnnull
when the user changed the input's value and not yet selected a value. - Fixed
jQuery.valueview.ExpertExtender.LanguageSelector
to fall back on the language code when there's no label available.
- Introduced
toggle
andisCollapsed
methods onjQuery.ui.toggler
.
- Fixed
jQuery.valueview.ExpertExtender.UnitSelector
test.
jQuery.valueview.experts.QuantityInput
extracts an optional.wb-unit
node from the formatted value and passes it to the UnitSelector.- Both QuantityInput and UnitSelector use a different format in the
getUpstreamValue
callback. jQuery.ui.unitsuggester
now supports adefaultSelectedUrl
option.
- Fixed
jQuery.valueview.experts.QuantityInput
test.
jQuery.valueview.expert.valueCharacteristics
gets the output format passed in.jQuery.valueview.experts.QuantityInput
explicitely asksQuantityFormatter
to not apply rounding and units in plain text format.jQuery.valueview.valueview
passes avocabularyLookupApiUrl
option to all experts.jQuery.valueview.experts.QuantityInput
andjQuery.valueview.ExpertExtender.UnitSelector
now pass avocabularyLookupApiUrl
option tojQuery.ui.unitsuggester
.jQuery.ui.unitsuggester
uses theconcepturi
fromwbsearchentities
results, if available.
jQuery.valueview.experts.QuantityInput
also submits theunit
option if it's null.
jQuery.ui.unitsuggester
now queries thewbsearchentities
API for a specific language.- Fixed
jQuery.valueview.ExpertExtender.UnitSelector.destroy
.
- Removed deprecated constant
ValueView_VERSION
, useVALUEVIEW_VERSION
instead. - Removed
jQuery.valueview.disable
,jQuery.valueview.enable
andjQuery.valueview.isDisabled
. These function were used to mock nativejQuery.Widget
functionality while adding a fulldraw
cycle on top.jQuery.valueview.draw
does not consider the state anymore.
- Added
jQuery.valueview.experts.QuantityInput
expert. - Added
jQuery.valueview.ExpertExtender.UnitSelector
. - Added
jQuery.ui.unitsuggester
. jQuery.valueview.valueview
now passes alanguage
option to all experts.- Refined
jQuery.ui.listrotator
style to have a more obvious active state. - Set
jQuery.ui.commonssuggester
to always use https.
- Fixed
jQuery.valueview.ExpertExtender.CalendarHint
test broken due to DataValues JavaScript dependency update.
- Added expert for
UnDeserializableValue
s. - Updated DataValues JavaScript dependency to version 0.7.
- Fix premature afterparse handling (e.g. save) of parsed values.
- Remove qunit dependency to make QUnit tests work in Karma
- Make QUnit tests pass in PhantomJS
- Removed
jQuery.NativeEventHandler
.
jQuery.valueview.ExpertExtender.Listrotator
redraws on 0 value now.
- Turned
util.MessageProvider
into an interface - Introduced several implementations of
util.MessageProvider
util.HashMessageProvider
util.CombiningMessageProvider
util.PrefixingMessageProvider
- Replaced the
mw
option tovalueview
with amessageProvider
option
- Removed internal dependency on Universal Language Selector (ULS)
- Introduced
utils.ContentLanguages
jQuery.valueview.ExpertExtender.LanguageSelector
constructor requiresutils.ContentLanguages
now.
jQuery.ui.toggler
: Added parameter toanimation
event determining whether the toggler's subject will be visible or hidden.jQuery.ui.toggler
: Addedrefresh
function to be able to reflect visibility changes to the toggler's subject that have been applied externally.jQuery.ui.toggler
: Changed_reflectVisibilityOnToggleIcon
to be private.- Dropped
javascript:void(0)
placeholders from$.ui.toggler
,$.ui.listrotator
and$.ui.CalendarHint
.
$.fn.inputautoexpand
: Fixed height expansion mechanism.- Use
wgULSLanguages
instead ofjQuery.uls.data.languages
for MonolingualTextValue. This reduces the number of available languages, but makes it match the list used by the Wikibase backend validators.
$.ui.suggester
: Removedevent
parameter fromsearch()
.
$.ui.suggester
: AddedisSearching()
function to determine whether searching is in progress.- Added
force
parameter to$.AutoInputExpand.prototype.expand()
.
util.highlightSubstring
: ReplacedcaseInsensitive
option withcaseSensitive
option defaulting tofalse
.$.ui.suggester
: Moved protected_minTermLength
member tooptions
.
$.ui.suggester
: Fixed input element being refocused when selecting a suggestion via keyboard input.
$.ui.ooMenu.CustomItem
: AddedsetVisibility
,setAction
andsetCssClass
functions. Visibility may be set to a static (boolean) value.$.valueview.draw
($.valueview.valueview.draw
),$.valueview.drawContent
($.valueview.valueview.drawContent
) and$.valueview.Expert.draw
return jQuery promises.$.valueview.draw
($.valueview.valueview.draw
) triggersafterdraw
event.$.valueview.startEditing
($.valueview.valueview.startEditing
) triggersafterstartediting
event.$.valueview.stopEditing
($.valueview.valueview.stopEditing
) triggersafterstopediting
event.- Fixed precision auto-detection of
$.valueview.experts.GlobeCoordinateInput
.
- $.ui.suggester: Hitting the backspace or delete key if the input is empty already does not trigger search anymore.
- $.ui.suggester: Refocus input element after selecting a suggestion via mouse click.
- $.ui.suggester: Added "confineMinWidthTo" option for specifying an element, the suggestion list's minimum width shall be confined to.
- Replaced $.util.highlightMatchingCharacters with util.highlightSubstring.
- $.valueview(.valueview) requires new "language" option to be set.
- Implemented jQuery.ui.languagesuggester.
- Input extender extension will not be hidden on mousedown event.
- Updated DataValues JavaScript dependency to version 0.6.
- Renamed jQuery.ui.suggestCommons to jQuery.ui.commonssuggester.
- When pressing ESC on a suggester enhanced input element while the suggester menu is visible, the key event's propagation is stopped.
- Fixed eachchange event: Cancel event after it got removed.
- Fixed calendar switch to Julian (Bug 65847).
- Fixed bug that broke the ListRotator after edit and cancel (Bug 70294).
- Remove ResourceLoader dependencies on jquery and mediawiki (bug 69468)
- $.ui.suggester updates "lang" and "dir" attribute of its menu whenever repositioning the menu.
- $.ui.suggester issues "error" event in case of an error.
- LanguageSelector allows typing the language code instead of the name.
- Only attempt to close a suggester if it's open
- Fix bug 68386, black colored text on blue background in jquery.ui.suggester when hovered via keydown.
- Mouse clicks other than simple left clicks don't trigger events any more in all ooMenus
- Suggester items default to black even if they are links
- Suggesters z-index is now dynamically calculated with it's position on screen
- Fixed the QUnit tests
- Don't underline ooMenu/ suggester items
- Various small bug fixes
- Changed MonolingualText option from "lang" to "valuelang".
- Added setLink() function to jQuery.ui.ooMenu.CustomItem prototype allowing dynamic updates of the link target.
- Removed default "javascript:void(0);" link target of jQuery.ui.ooMenu.CustomItem instances.
- Reordered GlobeCoordinate precisions.
- Added expert for MonolingualText values.
- Support editing arbitrary precisions for GlobeCoordinates.
- Added support for options in the ui.toggler widget.
- Fixed wrong valueview-valueview-... class names after jQuery update.
- Fixed RTL related bug in ui.suggester.
- Fixed a bug where the values of inputs with a suggester on were set to an older value sometimes.
- Make the minimal term length of the suggester configurable.
- Add resource loader dependencies for jquery.ui.suggester, fixing bug 66268 and bug 66257.
- Re-created jQuery.ui.suggester widget removing dependencies on jQuery.ui.autocomplete and jQuery.ui.menu.
- Implemented jQuery.util.highlightMatchingCharacters
- Implemented jQuery.ui.ooMenu
- Implemented jQuery.ui.suggestCommons
- Removed CommonsMediaType expert dependency on SuggestedStringValue expert.
- Prevent enter-key from adding newline character in String expert
- Fixed bug 64658 which caused the inputextender widget being invisible
- Refactored inputextender usage of experts
- Added addExtension method to jQuery.ValueView.Expert
- Change TimeInput::valueCharacteristics() to not returning precision or calendarmodel if set to auto.
- Change TimeInput::draw() to update the rotators' values if they are in auto mode
- Change GlobeCoordinateInput::draw() to update the precision rotator value if it is in auto mode
- Renamed jQuery.valueView.ExpertFactory to jQuery.valueView.ExpertStore.
- Renamed jQuery.valueView option "expertProvider" to "expertStore".
- Renamed jQuery.valueView.ExpertFactory to jQuery.valueView.ExpertStore.
- Renamed jQuery.valueView option "expertProvider" to "expertStore".
- Renamed jQuery.valueView option "valueFormatterProvider" to "formatterStore".
- Renamed jQuery valueView option "valueParserProvider" to "parserStore".
- Updated DataValues JavaScript dependency to version 0.5.
- Removed setting default formatter provider/store and parser provider/store of jQuery.valueView in mw.ext.valueView since no defaults are provided by DataValues JavaScript as of version 0.5.0.
- Removed mw.ext.valueView module.
- Fixed ValueView to again support setting value to null
- jQuery.valueview expects the rejected promise that may be returned by ValueParser's parse() and ValueFormatter's format() to feature a single parameter only.
- Use DOM children of the ValueView as formatted value on initialization
- Don't parse and format a value if it did not change
- Updated DataValues JavaScript dependency to version 0.4.
- Remove trimming from StringValue expert
- Use ViewState::getFormattedValue for GlobeCoordinate formatting
- Make some of the animations user definable
- Use ViewState formatting and parsing in TimeValue
- Make ValueView responsible for static mode and remove BifidExpert
- Don't redraw ValueView in {en,dis}able if nothing changed
- Fix inputextender for time values
- REVERTED Use ViewState::getFormattedValue for GlobeCoordinate formatting
- Added "isRtl" option to jQuery.ui.listrotator.
- Use ViewState::getFormattedValue for Url formatting
- Use ViewState::getFormattedValue for GlobeCoordinate formatting
- Removed dependency on the DataTypes library.
- ExpertFactory may be initialized with a default expert now.
- Changed ExpertFactory mechanisms to comply with ValueFormatterFactory and ValueParserFactory:
- Removed generic registerExpert() method. registerDataTypeExpert() and registerDataValueExpert() should be used to register experts.
- Removed additional unused and obsolete functions:
- getCoveredDataValueTypes()
- getCoveredDataTypes()
- hasExpertFor()
- newExpert()
- Removed CommonsMediaType and UrlType expert registrations from mw.ext.valueView.js since these are supposed to be registered in Wikibase where the corresponding data types are instantiated.
- Replaced jQuery.valueview.valueview's "on" option with "dataTypeId" and "dataValueType" options.
- Updated DataValues JavaScript dependency to version 0.3.
- Renamed jQuery.valueview.preview to jQuery.ui.preview
- Renamed $.valueview.MessageProvider to util.MessageProvider
- Renamed
$.inputAutoExpand to $ .inputautoexpand - Renamed
$.nativeEventHandler to $ .NativeEventHandler - Moved
$.valueview.MockViewState to $ .valueview.tests.MockViewState - Corrected several MediaWiki resource loader module names (and some file names):
-
$.fn.focusAt -> $ .focusAt -
$.valueview.experts.commonsmediatype -> $ .valueview.experts.CommonsMediaType -
$.valueview.experts.emptyvalue -> $ .valueview.experts.EmptyValue -
$.valueview.experts.globecoordinateinput -> $ .valueview.experts.GlobeCoordinateInput -
$.valueview.experts.globecoordinatevalue -> $ .valueview.experts.GlobeCoordinateValue -
$.valueview.experts.mock -> $ .valueview.experts.Mock -
$.valueview.experts.quantitytype -> $ .valueview.experts.QuantityType -
$.valueview.experts.staticdom -> $ .valueview.experts.StaticDom -
$.valueview.experts.stringvalue -> $ .valueview.experts.StringValue -
$.valueview.experts.timeinput -> $ .valueview.experts.TimeInput -
$.valueview.experts.timevalue -> $ .valueview.experts.TimeValue -
$.valueview.experts.unsupportedvalue -> $ .valueview.experts.UnsupportedValue -
$.valueview.experts.urltype -> $ .valueview.experts.UrlType - Added $.valueview.experts.SuggestedStringValue as a separate resource loader module
- $.valueview.experts.CommonsMediaType does not format on its own, but relies on value formatters.
- #6 Added util.Notifier
Initial release.