Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
5b3b1f4624 | |||
cf29de5650 | |||
15573a85ec | |||
20abb7f837 | |||
ebb6622637 | |||
dead3eeaec |
17
changelog.md
17
changelog.md
@ -1,5 +1,22 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 2024-12-05 - 1.6.5 - fix(contentinvoice)
|
||||||
|
Fix VAT group item number formatting and remove custom font style in invoice sums.
|
||||||
|
|
||||||
|
- Removed custom font-family style from the invoice sums.
|
||||||
|
- Corrected VAT group item numbers display by properly formatting and removing trailing comma.
|
||||||
|
|
||||||
|
## 2024-12-05 - 1.6.4 - fix(styling)
|
||||||
|
Consolidated shared styles for consistent font applied across various components.
|
||||||
|
|
||||||
|
- Added a shared style file for consistent font family across components
|
||||||
|
- Applied shared style to contentinvoice, letterheader, pagecontent, pagefooter, and pageheader components
|
||||||
|
|
||||||
|
## 2024-12-05 - 1.6.3 - fix(ui)
|
||||||
|
Corrects font family in contentinvoice element.
|
||||||
|
|
||||||
|
- Updated the font-family for line items in contentinvoice.ts
|
||||||
|
|
||||||
## 2024-12-05 - 1.6.2 - fix(translation)
|
## 2024-12-05 - 1.6.2 - fix(translation)
|
||||||
Corrected missing translation keys for VAT short form across multiple languages.
|
Corrected missing translation keys for VAT short form across multiple languages.
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@design.estate/dees-document",
|
"name": "@design.estate/dees-document",
|
||||||
"version": "1.6.2",
|
"version": "1.6.5",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "A sophisticated framework for dynamically generating and rendering business documents like invoices with modern web technologies, featuring PDF creation, templating, and automation.",
|
"description": "A sophisticated framework for dynamically generating and rendering business documents like invoices with modern web technologies, featuring PDF creation, templating, and automation.",
|
||||||
"main": "dist_ts_web/index.js",
|
"main": "dist_ts_web/index.js",
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@design.estate/dees-document',
|
name: '@design.estate/dees-document',
|
||||||
version: '1.6.2',
|
version: '1.6.5',
|
||||||
description: 'A sophisticated framework for dynamically generating and rendering business documents like invoices with modern web technologies, featuring PDF creation, templating, and automation.'
|
description: 'A sophisticated framework for dynamically generating and rendering business documents like invoices with modern web technologies, featuring PDF creation, templating, and automation.'
|
||||||
}
|
}
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@design.estate/dees-document',
|
name: '@design.estate/dees-document',
|
||||||
version: '1.6.2',
|
version: '1.6.5',
|
||||||
description: 'A sophisticated framework for dynamically generating and rendering business documents like invoices with modern web technologies, featuring PDF creation, templating, and automation.'
|
description: 'A sophisticated framework for dynamically generating and rendering business documents like invoices with modern web technologies, featuring PDF creation, templating, and automation.'
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,8 @@ import {
|
|||||||
} from '@design.estate/dees-element';
|
} from '@design.estate/dees-element';
|
||||||
import * as plugins from '../plugins.js';
|
import * as plugins from '../plugins.js';
|
||||||
|
|
||||||
|
import { dedocumentSharedStyle } from '../style.js';
|
||||||
|
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
interface HTMLElementTagNameMap {
|
interface HTMLElementTagNameMap {
|
||||||
@ -56,10 +58,10 @@ export class DeContentInvoice extends DeesElement {
|
|||||||
|
|
||||||
public static styles = [
|
public static styles = [
|
||||||
domtools.elementBasic.staticStyles,
|
domtools.elementBasic.staticStyles,
|
||||||
|
dedocumentSharedStyle,
|
||||||
css`
|
css`
|
||||||
:host {
|
:host {
|
||||||
color: #333;
|
color: #333;
|
||||||
font-family: inherit;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.trimmedContent {
|
.trimmedContent {
|
||||||
@ -215,7 +217,6 @@ export class DeContentInvoice extends DeesElement {
|
|||||||
.lineItem {
|
.lineItem {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
font-family: 'Dees Code', monospace;
|
|
||||||
border-right: 1px dashed #ccc;
|
border-right: 1px dashed #ccc;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -231,7 +232,6 @@ export class DeContentInvoice extends DeesElement {
|
|||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
padding-left: 50%;
|
padding-left: 50%;
|
||||||
font-family: 'Dees Code', monospace;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.sums .sumline {
|
.sums .sumline {
|
||||||
@ -322,9 +322,11 @@ export class DeContentInvoice extends DeesElement {
|
|||||||
</div>
|
</div>
|
||||||
${this.getVatGroups().map((vatGroupArg) => {
|
${this.getVatGroups().map((vatGroupArg) => {
|
||||||
let itemNumbers = '';
|
let itemNumbers = '';
|
||||||
|
let first = true;
|
||||||
for (const item of vatGroupArg.items) {
|
for (const item of vatGroupArg.items) {
|
||||||
const itemIndex = this.letterData.content.invoiceData.items.indexOf(item);
|
const itemIndex = this.letterData.content.invoiceData.items.indexOf(item);
|
||||||
itemNumbers += ` ${itemIndex + 1},`;
|
itemNumbers += `${first ? '' : ', '}${itemIndex + 1}`;
|
||||||
|
first = false;
|
||||||
}
|
}
|
||||||
return html`
|
return html`
|
||||||
<div class="sumline">
|
<div class="sumline">
|
||||||
|
@ -11,6 +11,7 @@ import {
|
|||||||
} from '@design.estate/dees-element';
|
} from '@design.estate/dees-element';
|
||||||
|
|
||||||
import * as plugins from '../plugins.js';
|
import * as plugins from '../plugins.js';
|
||||||
|
import { dedocumentSharedStyle } from '../style.js';
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
interface HTMLElementTagNameMap {
|
interface HTMLElementTagNameMap {
|
||||||
@ -49,6 +50,7 @@ export class DeLetterHeader extends DeesElement {
|
|||||||
|
|
||||||
public static styles = [
|
public static styles = [
|
||||||
domtools.elementBasic.staticStyles,
|
domtools.elementBasic.staticStyles,
|
||||||
|
dedocumentSharedStyle,
|
||||||
css`
|
css`
|
||||||
:host {
|
:host {
|
||||||
color: #333;
|
color: #333;
|
||||||
|
@ -11,6 +11,7 @@ import {
|
|||||||
} from '@design.estate/dees-element';
|
} from '@design.estate/dees-element';
|
||||||
|
|
||||||
import * as plugins from '../plugins.js';
|
import * as plugins from '../plugins.js';
|
||||||
|
import { dedocumentSharedStyle } from '../style.js';
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
interface HTMLElementTagNameMap {
|
interface HTMLElementTagNameMap {
|
||||||
@ -46,10 +47,10 @@ export class DePageContent extends DeesElement {
|
|||||||
|
|
||||||
public static styles = [
|
public static styles = [
|
||||||
domtools.elementBasic.staticStyles,
|
domtools.elementBasic.staticStyles,
|
||||||
|
dedocumentSharedStyle,
|
||||||
css`
|
css`
|
||||||
:host {
|
:host {
|
||||||
color: #333;
|
color: #333;
|
||||||
font-family: inherit;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
|
@ -11,6 +11,7 @@ import {
|
|||||||
} from '@design.estate/dees-element';
|
} from '@design.estate/dees-element';
|
||||||
|
|
||||||
import * as plugins from '../plugins.js';
|
import * as plugins from '../plugins.js';
|
||||||
|
import { dedocumentSharedStyle } from '../style.js';
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
interface HTMLElementTagNameMap {
|
interface HTMLElementTagNameMap {
|
||||||
@ -52,6 +53,7 @@ export class DePageFooter extends DeesElement {
|
|||||||
|
|
||||||
public static styles = [
|
public static styles = [
|
||||||
domtools.elementBasic.staticStyles,
|
domtools.elementBasic.staticStyles,
|
||||||
|
dedocumentSharedStyle,
|
||||||
css`
|
css`
|
||||||
:host {
|
:host {
|
||||||
color: #333;
|
color: #333;
|
||||||
|
@ -11,6 +11,7 @@ import {
|
|||||||
} from '@design.estate/dees-element';
|
} from '@design.estate/dees-element';
|
||||||
|
|
||||||
import * as plugins from '../plugins.js';
|
import * as plugins from '../plugins.js';
|
||||||
|
import { dedocumentSharedStyle } from '../style.js';
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
interface HTMLElementTagNameMap {
|
interface HTMLElementTagNameMap {
|
||||||
@ -52,6 +53,7 @@ export class DePageHeader extends DeesElement {
|
|||||||
|
|
||||||
public static styles = [
|
public static styles = [
|
||||||
domtools.elementBasic.staticStyles,
|
domtools.elementBasic.staticStyles,
|
||||||
|
dedocumentSharedStyle,
|
||||||
css`
|
css`
|
||||||
:host {
|
:host {
|
||||||
color: #333;
|
color: #333;
|
||||||
|
7
ts_web/style.ts
Normal file
7
ts_web/style.ts
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
import { css } from '@design.estate/dees-element';
|
||||||
|
|
||||||
|
export const dedocumentSharedStyle = css`
|
||||||
|
:host {
|
||||||
|
font-family: 'Exo 2';
|
||||||
|
}
|
||||||
|
`;
|
Reference in New Issue
Block a user