Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
15573a85ec | |||
20abb7f837 | |||
ebb6622637 | |||
dead3eeaec | |||
23031d06b7 | |||
5b849b316f | |||
47b6d4f0b9 | |||
2464d28a19 |
20
changelog.md
20
changelog.md
@ -1,5 +1,25 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 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)
|
||||||
|
Corrected missing translation keys for VAT short form across multiple languages.
|
||||||
|
|
||||||
|
- Fixed missing 'vatShort' translation for English, German, Spanish, French, and Italian in translation.ts file.
|
||||||
|
|
||||||
|
## 2024-12-05 - 1.6.1 - fix(core)
|
||||||
|
Ensure consistent project structure and code organization without additional changes.
|
||||||
|
|
||||||
|
|
||||||
## 2024-12-05 - 1.6.0 - feat(documentSettings + translations + vat in itemLines)
|
## 2024-12-05 - 1.6.0 - feat(documentSettings + translations + vat in itemLines)
|
||||||
Updated dependencies in package.json
|
Updated dependencies in package.json
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@design.estate/dees-document",
|
"name": "@design.estate/dees-document",
|
||||||
"version": "1.6.0",
|
"version": "1.6.4",
|
||||||
"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.0',
|
version: '1.6.4',
|
||||||
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.'
|
||||||
}
|
}
|
||||||
|
@ -19,6 +19,7 @@ export const EN_translations = {
|
|||||||
continuesOnPage: 'Continues on page',
|
continuesOnPage: 'Continues on page',
|
||||||
finalPageStatement: 'This is the final page of this document.',
|
finalPageStatement: 'This is the final page of this document.',
|
||||||
page: 'Page',
|
page: 'Page',
|
||||||
|
vatShort: 'VAT',
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
// Infer keys of EN_translations
|
// Infer keys of EN_translations
|
||||||
@ -49,6 +50,7 @@ export const DE_translations: TTranslationImplementation = {
|
|||||||
continuesOnPage: 'Fortsetzung auf Seite',
|
continuesOnPage: 'Fortsetzung auf Seite',
|
||||||
finalPageStatement: 'Dies ist die letzte Seite dieses Dokuments.',
|
finalPageStatement: 'Dies ist die letzte Seite dieses Dokuments.',
|
||||||
page: 'Seite',
|
page: 'Seite',
|
||||||
|
vatShort: 'USt',
|
||||||
};
|
};
|
||||||
|
|
||||||
// Define Spanish translations
|
// Define Spanish translations
|
||||||
@ -70,6 +72,7 @@ export const ES_translations: TTranslationImplementation = {
|
|||||||
continuesOnPage: 'Continúa en la página',
|
continuesOnPage: 'Continúa en la página',
|
||||||
finalPageStatement: 'Esta es la última página de este documento.',
|
finalPageStatement: 'Esta es la última página de este documento.',
|
||||||
page: 'Página',
|
page: 'Página',
|
||||||
|
vatShort: 'IVA',
|
||||||
};
|
};
|
||||||
|
|
||||||
// Define French translations
|
// Define French translations
|
||||||
@ -92,6 +95,7 @@ export const FR_translations: TTranslationImplementation = {
|
|||||||
continuesOnPage: 'Continue sur la page',
|
continuesOnPage: 'Continue sur la page',
|
||||||
finalPageStatement: 'Ceci est la dernière page de ce document.',
|
finalPageStatement: 'Ceci est la dernière page de ce document.',
|
||||||
page: 'Page',
|
page: 'Page',
|
||||||
|
vatShort: 'TVA',
|
||||||
};
|
};
|
||||||
|
|
||||||
// Define Italian translations
|
// Define Italian translations
|
||||||
@ -113,6 +117,7 @@ export const IT_translations: TTranslationImplementation = {
|
|||||||
continuesOnPage: 'Continua alla pagina',
|
continuesOnPage: 'Continua alla pagina',
|
||||||
finalPageStatement: 'Questa è l\'ultima pagina di questo documento.',
|
finalPageStatement: 'Questa è l\'ultima pagina di questo documento.',
|
||||||
page: 'Pagina',
|
page: 'Pagina',
|
||||||
|
vatShort: 'IVA',
|
||||||
};
|
};
|
||||||
|
|
||||||
// Language Code Map
|
// Language Code Map
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@design.estate/dees-document',
|
name: '@design.estate/dees-document',
|
||||||
version: '1.6.0',
|
version: '1.6.4',
|
||||||
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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