infor-design / enterprise-wc

Enterprise-grade web component library for the Infor Design System
Apache License 2.0
27 stars 26 forks source link

IdsDatepicker: Add apply button setting #2304

Open kenneth-acejo opened 4 months ago

kenneth-acejo commented 4 months ago

When you click on a date from a datetime popup, the modal closes automatically. It would be nice to have the old Apply button back from enterprise-ng version of datepicker.

Web component datepicker:

newdate

Angular wrapped datepicker:

olddate

Label should be team:M3 but I can't add the label.

tmcconechy commented 4 months ago

@kenneth-acejo FYI we show the apply button when there is more than one action (like clicking time and dates) or the range. But maybe we can make it a setting for other cases

NichlasKarlsson commented 4 months ago

@tmcconechy, Currently, AFAIU, you need to first select Hours and Minutes, and then click on a date, when the modal closes automatically. To me it is more logical to first select the date, and then the time. Also, if you accidentally pick the wrong date, the modal closes and you need to open it again (or edit the field textually). I think this modal (for date plus time selection) should always have the Clear and Apply buttons, as it has in SoHo. A setting for other cases (which is single date selection, I guess) would be nice to have.

kenneth-acejo commented 4 months ago

Apply button does not also show in date time picker from WC Demo page:

datetimewcdemo
inforandy commented 2 months ago

design task for next sprint https://inforwiki.atlassian.net/browse/IDS-2405