Commit Graph

11 Commits

Author SHA1 Message Date
pk b32fd403ec fix(tp-date-input): validate correctly when change event hasn't fired yet
validate() relied on this.value, which is only set by _inputChanged on
the change event. Submitting via Enter while focus is still in an input
field skips that event, leaving this.value undefined and causing valid
dates to fail validation.

Introduce _valueFromInputs() as the single parsing source: it reads the
three sub-inputs directly and returns a UTC-midnight DateTime.
validate()
now falls back to it when this.value is not set. _inputChanged is
refactored to call _valueFromInputs() as well, removing the duplicated
format-mapping logic.
2026-06-10 22:42:27 +02:00
pk 8f14196418 Make sure component always returns midnight utc 2026-04-10 09:52:43 +02:00
pk acf1728cb9 timeZone property sets timezone for display. Value is always expected to be UTC (in- and outbound) 2026-03-24 11:56:00 +01:00
pk 722e674526 Make sure value is always UTC and timeZone is applied to the user input if provided. 2026-03-24 11:45:09 +01:00
pk 3641de7ebd Parsing part was not migrated to luxon 2025-06-27 10:54:39 +02:00
pk 9fc38c42e8 Migrate to luxon 2025-06-27 10:29:11 +02:00
pk 7fb1757174 Fix date-fns import 2025-03-24 10:42:07 +01:00
pk f5377e83ad Some fixes 2025-02-06 22:30:13 +01:00
pk b55e71d144 Add part for inner inputs 2023-09-16 22:32:00 +02:00
pk 49025783ed Lot of fixes 2023-01-27 12:46:53 +01:00
pk 774b682936 A somewhat working version 2022-11-15 20:22:58 +01:00