@design.estate/dees-document 1.6.2 → 1.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist_bundle/bundle.js +129 -129
- package/dist_bundle/bundle.js.map +4 -4
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts_web/00_commitinfo_data.js +1 -1
- package/dist_ts_web/elements/contentinvoice.js +6 -5
- package/dist_ts_web/elements/letterheader.js +3 -1
- package/dist_ts_web/elements/pagecontent.js +3 -2
- package/dist_ts_web/elements/pagefooter.js +3 -1
- package/dist_ts_web/elements/pageheader.js +3 -1
- package/dist_ts_web/style.d.ts +1 -0
- package/dist_ts_web/style.js +7 -0
- package/dist_watch/bundle.js +25 -10
- package/dist_watch/bundle.js.map +3 -3
- package/package.json +1 -1
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/elements/contentinvoice.ts +6 -4
- package/ts_web/elements/letterheader.ts +2 -0
- package/ts_web/elements/pagecontent.ts +2 -1
- package/ts_web/elements/pagefooter.ts +2 -0
- package/ts_web/elements/pageheader.ts +2 -0
- package/ts_web/style.ts +7 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@design.estate/dees-document",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A sophisticated framework for dynamically generating and rendering business documents like invoices with modern web technologies, featuring PDF creation, templating, and automation.",
|
|
6
6
|
"main": "dist_ts_web/index.js",
|
package/ts/00_commitinfo_data.ts
CHANGED
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@design.estate/dees-document',
|
|
6
|
-
version: '1.6.
|
|
6
|
+
version: '1.6.5',
|
|
7
7
|
description: 'A sophisticated framework for dynamically generating and rendering business documents like invoices with modern web technologies, featuring PDF creation, templating, and automation.'
|
|
8
8
|
}
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@design.estate/dees-document',
|
|
6
|
-
version: '1.6.
|
|
6
|
+
version: '1.6.5',
|
|
7
7
|
description: 'A sophisticated framework for dynamically generating and rendering business documents like invoices with modern web technologies, featuring PDF creation, templating, and automation.'
|
|
8
8
|
}
|
|
@@ -16,6 +16,8 @@ import {
|
|
|
16
16
|
} from '@design.estate/dees-element';
|
|
17
17
|
import * as plugins from '../plugins.js';
|
|
18
18
|
|
|
19
|
+
import { dedocumentSharedStyle } from '../style.js';
|
|
20
|
+
|
|
19
21
|
|
|
20
22
|
declare global {
|
|
21
23
|
interface HTMLElementTagNameMap {
|
|
@@ -56,10 +58,10 @@ export class DeContentInvoice extends DeesElement {
|
|
|
56
58
|
|
|
57
59
|
public static styles = [
|
|
58
60
|
domtools.elementBasic.staticStyles,
|
|
61
|
+
dedocumentSharedStyle,
|
|
59
62
|
css`
|
|
60
63
|
:host {
|
|
61
64
|
color: #333;
|
|
62
|
-
font-family: inherit;
|
|
63
65
|
}
|
|
64
66
|
|
|
65
67
|
.trimmedContent {
|
|
@@ -215,7 +217,6 @@ export class DeContentInvoice extends DeesElement {
|
|
|
215
217
|
.lineItem {
|
|
216
218
|
font-size: 12px;
|
|
217
219
|
padding: 5px;
|
|
218
|
-
font-family: 'Dees Code', monospace;
|
|
219
220
|
border-right: 1px dashed #ccc;
|
|
220
221
|
}
|
|
221
222
|
|
|
@@ -231,7 +232,6 @@ export class DeContentInvoice extends DeesElement {
|
|
|
231
232
|
margin-top: 5px;
|
|
232
233
|
font-size: 12px;
|
|
233
234
|
padding-left: 50%;
|
|
234
|
-
font-family: 'Dees Code', monospace;
|
|
235
235
|
}
|
|
236
236
|
|
|
237
237
|
.sums .sumline {
|
|
@@ -322,9 +322,11 @@ export class DeContentInvoice extends DeesElement {
|
|
|
322
322
|
</div>
|
|
323
323
|
${this.getVatGroups().map((vatGroupArg) => {
|
|
324
324
|
let itemNumbers = '';
|
|
325
|
+
let first = true;
|
|
325
326
|
for (const item of vatGroupArg.items) {
|
|
326
327
|
const itemIndex = this.letterData.content.invoiceData.items.indexOf(item);
|
|
327
|
-
itemNumbers +=
|
|
328
|
+
itemNumbers += `${first ? '' : ', '}${itemIndex + 1}`;
|
|
329
|
+
first = false;
|
|
328
330
|
}
|
|
329
331
|
return html`
|
|
330
332
|
<div class="sumline">
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
} from '@design.estate/dees-element';
|
|
12
12
|
|
|
13
13
|
import * as plugins from '../plugins.js';
|
|
14
|
+
import { dedocumentSharedStyle } from '../style.js';
|
|
14
15
|
|
|
15
16
|
declare global {
|
|
16
17
|
interface HTMLElementTagNameMap {
|
|
@@ -49,6 +50,7 @@ export class DeLetterHeader extends DeesElement {
|
|
|
49
50
|
|
|
50
51
|
public static styles = [
|
|
51
52
|
domtools.elementBasic.staticStyles,
|
|
53
|
+
dedocumentSharedStyle,
|
|
52
54
|
css`
|
|
53
55
|
:host {
|
|
54
56
|
color: #333;
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
} from '@design.estate/dees-element';
|
|
12
12
|
|
|
13
13
|
import * as plugins from '../plugins.js';
|
|
14
|
+
import { dedocumentSharedStyle } from '../style.js';
|
|
14
15
|
|
|
15
16
|
declare global {
|
|
16
17
|
interface HTMLElementTagNameMap {
|
|
@@ -46,10 +47,10 @@ export class DePageContent extends DeesElement {
|
|
|
46
47
|
|
|
47
48
|
public static styles = [
|
|
48
49
|
domtools.elementBasic.staticStyles,
|
|
50
|
+
dedocumentSharedStyle,
|
|
49
51
|
css`
|
|
50
52
|
:host {
|
|
51
53
|
color: #333;
|
|
52
|
-
font-family: inherit;
|
|
53
54
|
}
|
|
54
55
|
|
|
55
56
|
.content {
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
} from '@design.estate/dees-element';
|
|
12
12
|
|
|
13
13
|
import * as plugins from '../plugins.js';
|
|
14
|
+
import { dedocumentSharedStyle } from '../style.js';
|
|
14
15
|
|
|
15
16
|
declare global {
|
|
16
17
|
interface HTMLElementTagNameMap {
|
|
@@ -52,6 +53,7 @@ export class DePageFooter extends DeesElement {
|
|
|
52
53
|
|
|
53
54
|
public static styles = [
|
|
54
55
|
domtools.elementBasic.staticStyles,
|
|
56
|
+
dedocumentSharedStyle,
|
|
55
57
|
css`
|
|
56
58
|
:host {
|
|
57
59
|
color: #333;
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
} from '@design.estate/dees-element';
|
|
12
12
|
|
|
13
13
|
import * as plugins from '../plugins.js';
|
|
14
|
+
import { dedocumentSharedStyle } from '../style.js';
|
|
14
15
|
|
|
15
16
|
declare global {
|
|
16
17
|
interface HTMLElementTagNameMap {
|
|
@@ -52,6 +53,7 @@ export class DePageHeader extends DeesElement {
|
|
|
52
53
|
|
|
53
54
|
public static styles = [
|
|
54
55
|
domtools.elementBasic.staticStyles,
|
|
56
|
+
dedocumentSharedStyle,
|
|
55
57
|
css`
|
|
56
58
|
:host {
|
|
57
59
|
color: #333;
|