From 0fb7b1aa6ef60fc42ee184046717db496131e143 Mon Sep 17 00:00:00 2001 From: Daniel Naab Date: Wed, 28 Feb 2024 15:59:01 -0600 Subject: [PATCH] - PDF field mappings - working on drag/drop for preview page --- apps/spotlight/src/layouts/Layout.astro | 7 +- packages/design/sass/styles.scss | 22 +-- packages/design/src/Form/index.tsx | 28 ++-- .../FormManager/FormEdit/DraggableList.tsx | 128 ++++++++++++++++++ .../FormManager/FormEdit/FormElementEdit.tsx | 85 ++++++------ .../src/FormManager/FormEdit/Preview.tsx | 63 ++++++--- .../src/FormManager/FormEdit/context.tsx | 52 +++++++ .../design/src/FormManager/FormEdit/index.tsx | 83 ++++-------- .../src/config/edit/InputElementEdit.tsx | 14 ++ .../src/config/view/TextInput/index.tsx | 3 + packages/documents/src/pdf/mock-api.ts | 4 +- .../forms/src/config/elements/paragraph.ts | 9 +- .../forms/src/config/elements/sequence.ts | 11 +- packages/forms/src/element.ts | 16 +++ packages/forms/src/pattern.ts | 1 + 15 files changed, 374 insertions(+), 152 deletions(-) create mode 100644 packages/design/src/FormManager/FormEdit/DraggableList.tsx create mode 100644 packages/design/src/FormManager/FormEdit/context.tsx diff --git a/apps/spotlight/src/layouts/Layout.astro b/apps/spotlight/src/layouts/Layout.astro index bf87c867..4b87ba98 100644 --- a/apps/spotlight/src/layouts/Layout.astro +++ b/apps/spotlight/src/layouts/Layout.astro @@ -45,7 +45,10 @@ const context = getAppContext(); /> - + {title} @@ -54,7 +57,7 @@ const context = getAppContext();
-