From 36940139b91eb5e8d51958b32c0fad5abc66d200 Mon Sep 17 00:00:00 2001 From: tristan Date: Tue, 9 Jun 2026 11:46:25 +0200 Subject: [PATCH] =?UTF-8?q?docs(date)=20:=20plan=20impl=C3=A9mentation=20s?= =?UTF-8?q?aisie=20manuelle=20MalioDate?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../2026-06-09-maliodate-saisie-manuelle.md | 635 ++++++++++++++++++ 1 file changed, 635 insertions(+) create mode 100644 docs/superpowers/plans/2026-06-09-maliodate-saisie-manuelle.md diff --git a/docs/superpowers/plans/2026-06-09-maliodate-saisie-manuelle.md b/docs/superpowers/plans/2026-06-09-maliodate-saisie-manuelle.md new file mode 100644 index 0000000..6c1dfa7 --- /dev/null +++ b/docs/superpowers/plans/2026-06-09-maliodate-saisie-manuelle.md @@ -0,0 +1,635 @@ +# MalioDate — saisie manuelle au clavier — Implementation Plan + +> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking. + +**Goal:** Permettre la saisie clavier `JJ/MM/AAAA` dans `MalioDate` (opt-in via prop `editable`), en plus de la sélection au calendrier, avec validation au blur et état d'erreur visuel. + +**Architecture:** `CalendarField` (interne, partagé) gagne un mode `editable` : input non `readonly`, masque `maska`, buffer local `draft` synchronisé sur `displayValue`, émission d'un event `commit(text)` au blur / à Entrée. `MalioDate` conserve toute la logique date : parse (`parseDisplayToIso`), validation bornes (`isDateInRange`), état d'erreur interne fusionné avec la prop `error` du consommateur. `CalendarField` reste agnostique au format. + +**Tech Stack:** Nuxt 4 layer, Vue 3 `