Page MenuHomePhabricator

Move non-MW specific widgets from mediawiki.widgets up into OOUI
Open, LowPublic

Description

If the widget is not specific to MW we should not restrict its usage to MW.

Currently I think this would include:

  • DateInputWidget or DateTimeInputWidget
  • CalendarWidget (whether that's mw.widgets.CalendarWidget or mw.widgets.datetime.CalendarWidget depends on the above)

and in VE-core that should be moved up:

  • LanguageSearchWidget

Event Timeline

Esanders raised the priority of this task from to Needs Triage.
Esanders updated the task description. (Show Details)
Esanders added a project: OOUI.
Esanders subscribed.

LanguageSearchWidget is also dependent on jQuery.uls.data, or some list of autonyms, to be useful.

CalendarWidget and DateInputWidget depend on moment.js. Either we'd have to add is as a dependency to OOjs UI, or reimplement them not to require it (which would primarily mean including our own translations for month and day names, and date and number formatting routines).

LanguageSearchWidget is also dependent on jQuery.uls.data, or some list of autonyms, to be useful.

I guess we could put a brain-dead version in OOUI (without data), and then have MW-widgets replace it (somehow?) so that VE-core's use of it magically uses an MW-ified version. Or VE-MW could over-ride the VE-core functionality?

So what you're saying is that we should specify a dependency on jquery.uls,
but not bundle it with OOjs UI.

So what you're saying is that we should specify a dependency on jquery.uls, but not bundle it with OOjs UI.

No, I was going to have OOUI's widget magically use the same data structure as jquery.uls.data, and let the platform infuse it with data.

Jdforrester-WMF set Security to None.
Volker_E renamed this task from Move non-MW specific widgets from mediawiki.widgets up into OOJSUI to Move non-MW specific widgets from mediawiki.widgets up into OOjs UI.Mar 10 2017, 11:38 PM
Volker_E renamed this task from Move non-MW specific widgets from mediawiki.widgets up into OOjs UI to Move non-MW specific widgets from mediawiki.widgets up into OOUI.Jan 10 2018, 1:08 AM