From 53d3675dc1fc9bafa5515357ae72f2ec32b0952e Mon Sep 17 00:00:00 2001 From: sylyx Date: Tue, 16 Jun 2026 13:23:39 +0200 Subject: [PATCH] Feature: Mail-Format .eml ODER PDF (nicht beides) + konfigurierbares Feld-Mapping MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Dialog/Optionen: mailFormat-Radio (.eml/PDF) + eigener Anhänge-Haken statt scope/optPdf; nie mehr eml UND pdf gleichzeitig. Migration storeEml/storePdf. - Feld-Zuordnung in den Einstellungen editierbar (MAIL_TOKENS/DEFAULT_FIELD_MAP in store.js); PREFILL -> TOKEN_FN + effectiveFieldMap/prefillFor. Co-Authored-By: Claude Opus 4.8 --- dialog/dialog.css | 3 ++ dialog/dialog.html | 10 ++-- dialog/dialog.js | 124 ++++++++++++++++++++----------------------- lib/store.js | 58 ++++++++++++++++++-- options/options.html | 31 +++++++++-- options/options.js | 63 +++++++++++++++++++++- 6 files changed, 210 insertions(+), 79 deletions(-) diff --git a/dialog/dialog.css b/dialog/dialog.css index 664415e..1e0d938 100644 --- a/dialog/dialog.css +++ b/dialog/dialog.css @@ -51,6 +51,9 @@ textarea { resize: vertical; min-height: 56px; } .field.prefilled input, .field.prefilled textarea { background: #f3f4f6; color: #4b5563; } .options { margin: 0; } +.format { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 5px 0; } +.format-label { font-weight: 500; } +.format .radio { margin: 0; } .radio, .check { display: flex; align-items: center; gap: 8px; margin: 5px 0; font-weight: 400; } .radio input, .check input { accent-color: #2563eb; } diff --git a/dialog/dialog.html b/dialog/dialog.html index aab2629..935ad43 100644 --- a/dialog/dialog.html +++ b/dialog/dialog.html @@ -68,10 +68,12 @@