From cc77a1e8078788e286e70829242958d4b02a8fa1 Mon Sep 17 00:00:00 2001 From: Fabio Tacke Date: Thu, 18 Jan 2024 16:32:43 +0100 Subject: [PATCH] Refactor date chips RISDEV-3075 --- frontend/src/fields/caselaw/coreDataFields.ts | 2 +- .../components/input/ChipsDateInput.vue | 335 ++---------------- .../shared/components/input/ChipsInput.vue | 4 + .../components/input/chipsDateInput.spec.ts | 228 ++++-------- 4 files changed, 111 insertions(+), 458 deletions(-) diff --git a/frontend/src/fields/caselaw/coreDataFields.ts b/frontend/src/fields/caselaw/coreDataFields.ts index 01c7eb1be4..95e50914e6 100644 --- a/frontend/src/fields/caselaw/coreDataFields.ts +++ b/frontend/src/fields/caselaw/coreDataFields.ts @@ -197,7 +197,7 @@ export const coreDataFields: InputField[] = [ "Entscheidungsdatum", "Entscheidungsdatum", ), - child: defineChipsField( + child: defineChipsDateField( "deviatingDecisionDates", "Abweichendes Entscheidungsdatum", "Abweichendes Entscheidungsdatum", diff --git a/frontend/src/shared/components/input/ChipsDateInput.vue b/frontend/src/shared/components/input/ChipsDateInput.vue index f80737f7a2..04a3d17c02 100644 --- a/frontend/src/shared/components/input/ChipsDateInput.vue +++ b/frontend/src/shared/components/input/ChipsDateInput.vue @@ -1,10 +1,9 @@ - - diff --git a/frontend/src/shared/components/input/ChipsInput.vue b/frontend/src/shared/components/input/ChipsInput.vue index cafd6609f9..0e6f9a2fa5 100644 --- a/frontend/src/shared/components/input/ChipsInput.vue +++ b/frontend/src/shared/components/input/ChipsInput.vue @@ -1,5 +1,6 @@