From bb8fbe490794986c60970fb45e1fac2cc9d4e2ab Mon Sep 17 00:00:00 2001 From: tristan Date: Thu, 29 Jan 2026 17:45:52 +0100 Subject: [PATCH] feat : mise en place de composant UI pour les select, checkbox, date, text --- .idea/workspace.xml | 27 +- .../components/reception/reception-form.vue | 329 +++++++----------- .../reception/reception-product-received.vue | 64 ++-- frontend/components/ui/UiCheckbox.vue | 76 ++++ frontend/components/ui/UiDateInput.vue | 62 ++++ frontend/components/ui/UiSelect.vue | 85 +++++ frontend/components/ui/UiTextInput.vue | 68 ++++ .../components/ui/license-plate-input.vue | 27 +- 8 files changed, 456 insertions(+), 282 deletions(-) create mode 100644 frontend/components/ui/UiCheckbox.vue create mode 100644 frontend/components/ui/UiDateInput.vue create mode 100644 frontend/components/ui/UiSelect.vue create mode 100644 frontend/components/ui/UiTextInput.vue diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 2e31409..b3e2025 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -6,15 +6,10 @@ - - - - - - - - + + + @@ -635,7 +638,6 @@ - @@ -660,7 +662,8 @@ - diff --git a/frontend/components/reception/reception-form.vue b/frontend/components/reception/reception-form.vue index ab2088f..a07a8f8 100644 --- a/frontend/components/reception/reception-form.vue +++ b/frontend/components/reception/reception-form.vue @@ -3,181 +3,96 @@

Réception

-
- - -
+ -
- - -
+ -
- - -
+ -
- - -
+ -
- - -
+ -
- - -
+ -
- - -
+ -
- - -
+
-
- - -
+
@@ -80,13 +79,7 @@ const handleInput = (event: Event) => { emit('update:modelValue', target.value) } -const toggleAllowAny = (event: Event) => { - const target = event.target as HTMLInputElement | null - if (!target) { - return - } - - const nextValue = target.checked +const handleAllowAnyChange = (nextValue: boolean) => { emit('update:allowAny', nextValue) if (!nextValue) { emit('update:modelValue', props.modelValue)