[19:00:08] [telegram] Is anyone here familiar here with OOUI? Do I really need to add such a wall of code as described here https://www.mediawiki.org/wiki/OOUI/Windows/Process_Dialogs just to render a hello word dialog? I want to build a userscript with a popup form, but it seems that it would be much easier to do it with jqueryui or something. Am I missing something? [19:01:44] [telegram] Is anyone here familiar with OOUI? Do I really need to add such a wall of code as described here https://www.mediawiki.org/wiki/OOUI/Windows/Process_Dialogs just to render a hello word dialog? I want to build a userscript with a popup form, but it seems that it would be much easier to do it with jqueryui or something. Am I missing something? [19:04:35] [telegram] (I have only basic knowledge of ECMAScript, so it might be that actually all that code can be refactored to use some nice syntatic sugar which would make it look better and shorter, but I do not know how to do that) [19:19:24] [telegram] You probably don't actually want just a hello world dialog for your application [19:24:21] [telegram] indeed, I what I want is not much more complicated. I want to build a pop-up with a form with fields corresponding to a template parameters which will insert the template into a list on page with the parameter values inherited from the form. [19:24:56] [telegram] Sounds like part of VE [19:25:00] [telegram] indeed, but what I want is not much more complicated. I want to build a pop-up with a form with fields corresponding to a template parameters which will insert the template into a list on page with the parameter values inherited from the form. [19:25:27] [telegram] haha [19:26:04] [telegram] except I do not want to open page for editing at all [19:27:59] Some of this stuff might be optional, like getBodyHeight [19:29:32] generally though this looks like roughly what I'd expect for a dialog in OOUI [19:32:09] [telegram] are there some façades available per chance? [20:48:07] you mean you'd like some simpler interface to interact with OOUI? [21:01:19] [telegram] Indeed (re @wmtelegram_bot: [irc] you mean you'd like some simpler interface to interact with OOUI?) [21:01:45] [telegram] https://tools-static.wmflabs.org/bridgebot/596c0fbf/giphy_gif.mp4 [22:19:14] [telegram] Another OOUI question — I fail to find an example for datepicker on https://doc.wikimedia.org/oojs-ui/master/demos/?page=widgets&theme=wikimediaui&direction=ltr&platform=desktop while judging from the ui on special pages it is possible to add one [22:23:54] [telegram] ah it is not a part of OOUI per se [22:24:08] [telegram] it seems that it's https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/mw.widgets.DateInputWidget [22:24:18] [telegram] so confusing [22:40:33] https://phabricator.wikimedia.org/T97425#1324320 [22:42:37] [telegram] it does not seem to work though :( (re @Thecladis: it seems that it's https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/mw.widgets.DateInputWidget) [22:43:01] [telegram] even on the documentation page preview shows "Uncaught TypeError: mw.widgets.DateInputWidget is not a constructor" [22:44:35] [telegram] and when I expand mw.loader.using(['oojs-ui-core', 'oojs-ui-windows']) with 'mw.widgets' my modal does not render anymore [22:50:56] You can see a working instance of the datepicker in the VisualEditor media upload dialog, if that helps. Not sure what's up with the documentation preview, beyond that it's clearly not actually loading the file. [23:03:20] [telegram] it seems that I needed an explicit load of the particular widget [23:03:20] [telegram] mw.loader.using([ [23:03:22] [telegram] 'oojs-ui-core', [23:03:23] [telegram] 'oojs-ui-windows', [23:03:24] [telegram] 'mediawiki.widgets', [23:03:25] [telegram] 'mediawiki.widgets.DateInputWidget', [23:03:27] [telegram] ]) [23:03:35] [telegram] found an example on https://ru.wikipedia.org/wiki/Участник:Iniquity/test.js :)