A comment from one of my friends.
"Now that we have marked jquery.ui.dialog as an deprecated module and our willingness is to migrate current gadgets jquery.ui usages to OOjsUI for sake of UI/UX unification across different tools/gadgets, I guess it would be a good idea to provide some jquery.ui.dialog API OOjs-backed shim to provide simple things like movable dialogs, HTML content and '''CSS''' button but instead with an easy API and specially to not contain "static", "super" and other local and "OO" concepts, very similar to "jquery.ui.dialog" API, to encourage gadget developers the migration."
Description
Related Objects
- Mentioned Here
- T162127: Android's Virtual Keyboard UI will be closed while trying typing on OOUI input inside a dialog
T158494: Figure out which parts of OOjs UI documentation should be improved, and where they should live
T161959: options parameter of OO.ui.{alert|confirm|prompt} should accept proposed dialog size
Event Timeline
I'm not sure if this is really feasible. We could probably write something that would mostly work for a limited subset of jQuery UI dialog functionality, but there would be unexpectedly missing or broken features. And debugging issues with dialogs using such a thing would probably be a royal pain.
If you're looking for a simple API to display simple OOjs UI dialogs, there is OO.ui.alert() / OO.ui.confirm() (which apparently are not really documented other than https://doc.wikimedia.org/oojs-ui/master/js/#!/api/OO.ui-method-alert, whoops). You can pass a jQuery object with any HTML to them too, although the dialogs are rather too small for any interesting interface to be shown inside them.
Thank you so much @matmarex, I've found https://doc.wikimedia.org/oojs-ui/master/js/#!/api/OO.ui-method-alert (and its siblings and source) good and enough for our need and today most of Persian Wikipedia specific tools are converted to oojs-ui, there is one little issue with it however which is filed as T161959.
T158494: Where else should this be documented? Along with the Mediawiki documentation?
(They are also documented at https://www.mediawiki.org/wiki/OOjs_UI/Windows/Simple_messages now, looks like I wrote that just after the comment on this task.)
Another issue: T162127
(on the documentation, the interesting part for me was to pass a jQuery html object that's why I could quickly migrate legacy form elements to it, that probably worth to be mentioned somewhere on the documentation maybe also)