From fee894e895bb7c148ac3d5acee06e01dea144f59 Mon Sep 17 00:00:00 2001 From: tristan Date: Thu, 11 Jun 2026 16:03:04 +0200 Subject: [PATCH 1/2] feat(ui) : MalioDate/DateTime exposent update:valid + saisie clavier DateTime (#MUI-43) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - MalioDate : event update:valid (malforme/hors-plage => false), emis au montage - MalioDateTime : prop editable (saisie JJ/MM/AAAA HH:MM) + meme update:valid - CalendarField : masque maska configurable via prop mask - datetimeFormat : nouveau parseur parseDisplayToIsoDateTime - fix test Date « Entree » (key 'Enter' reel vs trigger keydown.enter) - doc COMPONENTS.md + CHANGELOG.md + champ editable dans le playground Co-Authored-By: Claude Opus 4.8 (1M context) --- .playground/pages/composant/date/datetime.vue | 16 ++ CHANGELOG.md | 2 + COMPONENTS.md | 14 +- app/components/malio/date/Date.test.ts | 73 ++++++++- app/components/malio/date/Date.vue | 28 +++- app/components/malio/date/DateTime.test.ts | 139 ++++++++++++++++++ app/components/malio/date/DateTime.vue | 51 ++++++- .../date/composables/datetimeFormat.test.ts | 29 ++++ .../malio/date/composables/datetimeFormat.ts | 12 +- .../malio/date/internal/CalendarField.vue | 4 +- 10 files changed, 350 insertions(+), 18 deletions(-) diff --git a/.playground/pages/composant/date/datetime.vue b/.playground/pages/composant/date/datetime.vue index f7d0938..4ffe173 100644 --- a/.playground/pages/composant/date/datetime.vue +++ b/.playground/pages/composant/date/datetime.vue @@ -13,6 +13,20 @@

Valeur (ISO naïf) : {{ value ?? 'null' }}

+ +
+

Valeur éditable (ISO naïf) : {{ editableValue ?? 'null' }}

+

+ Saisie valide : + {{ editableValid }} +

+