diff --git a/changelog.md b/changelog.md index b88c2b0..57f912e 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,13 @@ # Changelog +## 2024-12-08 - 1.6.9 - fix(contentinvoice.ts) +Improve invoice item layout and fix alignment issues. + +- Fixed missing border on last invoice item. +- Added highlighted style for invoice lines. +- Corrected alignment and display of invoice item details. +- Included VAT percentage display adjustments. + ## 2024-12-07 - 1.6.8 - fix(rendering and logging) Removed debug logging from document rendering process. diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 9e0bbea..85f57bf 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@design.estate/dees-document', - version: '1.6.8', + version: '1.6.9', description: 'A sophisticated framework for dynamically generating and rendering business documents like invoices with modern web technologies, featuring PDF creation, templating, and automation.' } diff --git a/ts_web/00_commitinfo_data.ts b/ts_web/00_commitinfo_data.ts index 9e0bbea..85f57bf 100644 --- a/ts_web/00_commitinfo_data.ts +++ b/ts_web/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@design.estate/dees-document', - version: '1.6.8', + version: '1.6.9', description: 'A sophisticated framework for dynamically generating and rendering business documents like invoices with modern web technologies, featuring PDF creation, templating, and automation.' } diff --git a/ts_web/elements/contentinvoice.ts b/ts_web/elements/contentinvoice.ts index 2600a37..2ea8732 100644 --- a/ts_web/elements/contentinvoice.ts +++ b/ts_web/elements/contentinvoice.ts @@ -18,7 +18,6 @@ import * as plugins from '../plugins.js'; import { dedocumentSharedStyle } from '../style.js'; - declare global { interface HTMLElementTagNameMap { 'dedocument-contentinvoice': DeContentInvoice; @@ -219,14 +218,26 @@ export class DeContentInvoice extends DeesElement { border-right: 1px dashed #ccc; } + .lineItem:last-child { + border-right: none; + } + .lineItem.rightAlign { text-align: right; } .invoiceLine { + background: #ffffff00; border-bottom: 1px dotted #ccc; } + .invoiceLine.highlighted { + transition: background 0.2s; + background: #ffc18f; + border: 1px solid #ff9d4d; + box-sizing: content-box; + } + .sums { margin-top: 5px; font-size: 12px; @@ -286,33 +297,77 @@ export class DeContentInvoice extends DeesElement {