[de-xbl] Replace datepicker widgets (timepicker, datetimepicker-base, datepicker, datepicker-grid, datepicker-popup) with non-XBL elements
Categories
(Calendar :: General, enhancement)
Tracking
(Not tracked)
People
(Reporter: darktrojan, Assigned: darktrojan)
References
(Depends on 1 open bug, Blocks 1 open bug)
Details
Attachments
(3 files, 4 obsolete files)
(deleted),
image/png
|
Details | |
(deleted),
patch
|
Fallen
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
Details | Diff | Splinter Review |
The widgets are pretty broken right now on account of bug 1518932. I think now is the time to replace them (and possibly the minimonth) completely without XBL.
Comment 2•6 years ago
|
||
https://searchfox.org/comm-central/source/common/bindings/datetimepicker.xml
Note toolkit has DateTimePickerPanel.jsm and DateTimePickerParent.jsm. Need to investigate if we can/want/should move to using that.
Assignee | ||
Comment 3•6 years ago
|
||
This is a work in progress. I haven't made any attempt to check what it looks like on Windows or Mac yet (although most of the styling is in common CSS files). It does pass the tests.
Assignee | ||
Comment 4•6 years ago
|
||
As I said to Philipp, I've had to remove the month/year picker popups as the menuitems in them interfere with the menulist. I think this is a reasonable replacement, and it's the same as seen on Ubuntu and probably other Linux variants.
Comment 5•6 years ago
|
||
Checked on Windows and it looks good.
Assignee | ||
Comment 6•6 years ago
|
||
Okay, now that I've discovered the timepicker grid can't handle keyboard input, I won't try to fix that here. This is ready, I think.
Assignee | ||
Updated•6 years ago
|
Comment 7•6 years ago
|
||
Even if the dropdwon in the menulist isn't supported anymore out of the box, we should find a different way to retain the capability to quickly switch to a distant month. Having to press the arrow buttons multiple times is a pita.
Comment 8•6 years ago
|
||
How do you switch to a distant month? I use "Lightning Calendar Tabs" to at least switch a few months back and forward.
Comment 9•6 years ago
|
||
This bug is about the datepicker (see the screenshot Geoff posted), not the calendar view (and deferring to an addon is not appropriate here - a datepicker is an essential part of a calendar apprlication). The month and year labels are dropdown controls.
Comment 10•6 years ago
|
||
Assignee | ||
Comment 11•6 years ago
|
||
(In reply to Richard Marti (:Paenglab) from comment #10)
Please could you try to move the month- and year label a bit upwards? They don't look centered like the arrow buttons.
Yeah, it does look a bit wrong. There's also something odd going on with the styling of the header I haven't got to the bottom of yet.
When the popup menu is no more possible then this solution is okay for me. To switch the month it's also possible with the mouse scroll wheel, and this can be fast.
Although I notice that scrolling the year changes months, I'd better fix that.
(In reply to [:MakeMyDay] from comment #7)
Even if the dropdwon in the menulist isn't supported anymore out of the box, we should find a different way to retain the capability to quickly switch to a distant month. Having to press the arrow buttons multiple times is a pita.
I'm thinking about a click-and-hold behaviour, although I haven't got further than thinking about it yet.
Assignee | ||
Comment 12•6 years ago
|
||
Richard, I know you already looked at this, but I was looking at mail/themes/*/mail/datetimepicker.css and can't see anything of any value. Is there any reason I shouldn't eliminate those stylesheets?
Assignee | ||
Updated•6 years ago
|
Comment 13•6 years ago
|
||
The mail/themes/*/mail/datetimepicker.css are for the datetimepicker in common/bindings/datetimepicker.xml. Mostly used for the Birthday picker in addressbook and for extensions. We forked it from toolkit when they removed this bindings. It would be great if we could move it to use the calendar datetimepicker and delete this one.
Comment 14•6 years ago
|
||
<input type="date"> actually has a pretty similar picker. But bug 1527615 :(
Comment 15•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 16•6 years ago
|
||
Assignee | ||
Comment 17•6 years ago
|
||
Bug 1524457 now has review, and this needs to land with it.
Comment 18•6 years ago
|
||
Comment 19•6 years ago
|
||
Assignee | ||
Comment 20•6 years ago
|
||
Requested changes and all the other stuff I've discovered today. :(
The interdiff would work if it ignored white-space. I'd intended to do the indent, just not at the point ESLint started complaining, and then I forgot.
Assignee | ||
Comment 21•6 years ago
|
||
Here, this might make it easier.
Comment 22•6 years ago
|
||
Comment 23•6 years ago
|
||
Comment 24•6 years ago
|
||
I'd appreciate a followup bug for restoring the functionality the dropdowns provided. It doesn't have to be a dropdown, but something to make it easier to go to distant dates is good. I said I would not complain if Richard ui-r+'d it, but since MakeMyDay mentions as well I think it is worth considering to bring it back.
Assignee | ||
Comment 25•6 years ago
|
||
taking the super comment from above into account
There is no super function to call.
(In reply to Philipp Kewisch [:Fallen] [:📆] from comment #24)
I'd appreciate a followup bug for restoring the functionality the dropdowns provided. It doesn't have to be a dropdown, but something to make it easier to go to distant dates is good. I said I would not complain if Richard ui-r+'d it, but since MakeMyDay mentions as well I think it is worth considering to bring it back.
You can scroll the months and years, and as I mentioned I'll add click-and-hold on the arrows. Having a popup on a popup is … problematic.
Comment 26•6 years ago
|
||
(In reply to Geoff Lankow (:darktrojan) from comment #25)
I'd appreciate a followup bug for restoring the functionality the dropdowns provided. It doesn't have to be a dropdown, but something to make it easier to go to distant dates is good. I said I would not complain if Richard ui-r+'d it, but since MakeMyDay mentions as well I think it is worth considering to bring it back.
You can scroll the months and years, and as I mentioned I'll add click-and-hold on the arrows. Having a popup on a popup is … problematic.
What about click to turn the year into a textbox?
Comment 27•6 years ago
|
||
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/753ca1edaf65
Convert datepicker and timepicker classes to custom elements; r=Fallen
Assignee | ||
Updated•6 years ago
|
Comment 28•6 years ago
|
||
Comment 29•6 years ago
|
||
Ah I read the https://bugzilla.mozilla.org/show_bug.cgi?id=1524456#c6 and https://bugzilla.mozilla.org/show_bug.cgi?id=1524456#c4
now. Example of mpicker usuage is https://searchfox.org/comm-central/source/calendar/resources/content/datetimepickers/datetimepickers.xml#738 . As of now, I ll leave it as it is in Bug 1512941.
Comment 30•6 years ago
|
||
Could this change be responsible for Bug 1536517?
Assignee | ||
Updated•5 years ago
|
Description
•