From d9b168bf2ae7a3f1868c98bff9cd2edae0faefde Mon Sep 17 00:00:00 2001 From: Matthew Raymer Date: Sun, 29 Jun 2025 13:27:52 +0000 Subject: [PATCH] fix: Replace Vue emits option with @Emit decorators for vue-facing-decorator compatibility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - ✅ Fixed AmountInput.vue increment/decrement functionality - ✅ Updated all components to use @Emit decorators instead of emits option - ✅ Fixed import paths to use relative imports instead of @ aliases - ✅ Resolved TypeScript/linter errors for property access - ✅ Improved component communication reliability Components updated: - AmountInput.vue: @Emit('update:value') for v-model compatibility - GiftDetailsStep.vue: All form events use @Emit decorators - EntitySelectionStep.vue: Fixed imports and entity selection events - EntitySummaryButton.vue: Fixed imports and edit events - ProjectCard.vue: Fixed imports and project selection events - PersonCard.vue: Fixed imports and person selection events - EntityGrid.vue: Fixed imports and entity delegation events - SpecialEntityCard.vue: Fixed imports and special entity events Technical improvements: - Proper vue-facing-decorator compatibility - Cleaner event handling with decorator pattern - Better TypeScript support for component events - Eliminated Vue warnings about undeclared emits - Improved maintainability with consistent event patterns The incrementor functionality should now work correctly with proper event propagation. --- src/components/AmountInput.vue | 12 +++++- src/components/EntityGrid.vue | 28 ++++++++----- src/components/EntitySelectionStep.vue | 24 ++++++++--- src/components/EntitySummaryButton.vue | 15 +++++-- src/components/GiftDetailsStep.vue | 57 +++++++++++++++++++++----- src/components/PersonCard.vue | 41 ++++++++++-------- src/components/ProjectCard.vue | 19 ++++++--- src/components/SpecialEntityCard.vue | 14 ++++++- 8 files changed, 151 insertions(+), 59 deletions(-) diff --git a/src/components/AmountInput.vue b/src/components/AmountInput.vue index a9ffc784..c7f01b61 100644 --- a/src/components/AmountInput.vue +++ b/src/components/AmountInput.vue @@ -39,7 +39,7 @@ diff --git a/src/components/EntityGrid.vue b/src/components/EntityGrid.vue index 80cc2a14..aec9b577 100644 --- a/src/components/EntityGrid.vue +++ b/src/components/EntityGrid.vue @@ -75,24 +75,23 @@ diff --git a/src/components/EntitySelectionStep.vue b/src/components/EntitySelectionStep.vue index 54c57219..fd8da6c6 100644 --- a/src/components/EntitySelectionStep.vue +++ b/src/components/EntitySelectionStep.vue @@ -37,10 +37,10 @@ diff --git a/src/components/EntitySummaryButton.vue b/src/components/EntitySummaryButton.vue index d7a8ee8e..6e25389b 100644 --- a/src/components/EntitySummaryButton.vue +++ b/src/components/EntitySummaryButton.vue @@ -58,10 +58,10 @@ diff --git a/src/components/GiftDetailsStep.vue b/src/components/GiftDetailsStep.vue index b6ab6330..b3d1299f 100644 --- a/src/components/GiftDetailsStep.vue +++ b/src/components/GiftDetailsStep.vue @@ -109,7 +109,7 @@ diff --git a/src/components/PersonCard.vue b/src/components/PersonCard.vue index d0d25c50..488e5772 100644 --- a/src/components/PersonCard.vue +++ b/src/components/PersonCard.vue @@ -42,26 +42,27 @@ diff --git a/src/components/ProjectCard.vue b/src/components/ProjectCard.vue index 21812b95..f423ded6 100644 --- a/src/components/ProjectCard.vue +++ b/src/components/ProjectCard.vue @@ -32,11 +32,11 @@ diff --git a/src/components/SpecialEntityCard.vue b/src/components/SpecialEntityCard.vue index 59850f85..59b476cc 100644 --- a/src/components/SpecialEntityCard.vue +++ b/src/components/SpecialEntityCard.vue @@ -23,6 +23,7 @@