Patterns icon indicating copy to clipboard operation
Patterns copied to clipboard

pat-datetime-picker is undocumented

Open jensens opened this issue 3 years ago • 4 comments

There not a single bit of documentation around for pat-datetime-picker. Neither here https://patternslib.com/demos/index nor in its source. Neither it exists in the Github labels.

Since this pattern is used by default in Plone 6 for any date/time related input this is very bad.

jensens avatar Aug 10 '22 08:08 jensens

cc @ale-rt @thet

jensens avatar Aug 10 '22 08:08 jensens

Update @petschki wrote on Discord: "it seems to me, that pat-date-picker is the successor of pat-datetime-picker".

jensens avatar Aug 10 '22 10:08 jensens

Probably this helps: https://patternslib.com/demos/date-picker. Anyway wait for @thet because he knows better!

ale-rt avatar Aug 22 '22 08:08 ale-rt

The pat-date-time picker is undocumented because it's not an official pattern for the Patternslib distribution yet. I built it around 2016 in order to replace Pickadate for a customer project and used it for PLIP‌ 2150 https://github.com/plone/Products.CMFPlone/issues/2150

My goal is to align it with the recent developments of pat-date-picker (e.g. allowing to make the date/time dependent on another date/time field and changing the date with an offset if the other changes - e.g. end date must be after start date, optionally showing a formatted date instead of the dateinput and allow only changing the dates via the calendar popup, etc.).

I'll do that as soon as time allows - if someone else wants to step in you're welcome!

thet avatar Aug 22 '22 08:08 thet