This module is currently maintained in MediaWiki core.
Parent project: MediaWiki-User-Interface
This module is currently maintained in MediaWiki core.
Parent project: MediaWiki-User-Interface
Change #1047604 merged by jenkins-bot:
[mediawiki/core@master] Initialize calendar with default date in DateTimeInputWidget
Change #1047604 had a related patch set uploaded (by Daimona Eaytoy; author: Daimona Eaytoy):
[mediawiki/core@master] Initialize calendar with default date in DateTimeInputWidget
Considering cancelling this as the symptoms have change a bit. The initial mm/dd/yy format is no longer displaying (which was confusing as that was not a valid input format); the YYYY-MM-DD format is also accepted for keyboard input.
*On click the hint changes to "YYYY-MM-DD"
*On selection the date is reformatted to "Dayofweek, D, LongMonth, YYYY"
Thanks!
Change 953356 merged by jenkins-bot:
[mediawiki/core@master] CalendarWidget: Make clippable, scrollable
Change 953356 had a related patch set uploaded (by Chlod Alejandro; author: Chlod Alejandro):
[mediawiki/core@master] CalendarWidget: Make clippable, scrollable
Will submit the patch in a bit, thanks for checking it out! 😀
I tried out your patch and it works and makes sense to me. I'd be happy to merge that change if you submit it. Thanks for looking into it!
Comparing this with another widget which uses a popup (DropdownWidget), it looks like MenuSelectWidget.js:477 contains the code responsible for automatically flipping the direction that the menu appears when the dropdown is activated. It relies that ClippableElement is mixed in, however (since it needs to know whether or not the dialog will get clipped vertically, and that function is only exposed within ClippableElement). So the idea of making the calendar clippable/scrollable would solve both the issues with it being clipped when too close to the bottom of the screen and also allow the calendar to flip when the space below it is too little. A demonstration for this can be found with P51429. Not sure if this is the best solution for this yet so I've kept it a paste for now; do tell if this should be turned into a patch.
Change 951465 merged by jenkins-bot:
[mediawiki/core@master] DateInputWidget: add option to configure calendar