@design.estate/dees-document 1.6.3 → 1.6.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@design.estate/dees-document",
3
- "version": "1.6.3",
3
+ "version": "1.6.6",
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",
@@ -3,6 +3,6 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@design.estate/dees-document',
6
- version: '1.6.3',
6
+ version: '1.6.6',
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.3',
6
+ version: '1.6.6',
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: 'Exo 2';
63
65
  }
64
66
 
65
67
  .trimmedContent {
@@ -230,7 +232,6 @@ export class DeContentInvoice extends DeesElement {
230
232
  margin-top: 5px;
231
233
  font-size: 12px;
232
234
  padding-left: 50%;
233
- font-family: 'Dees Code', monospace;
234
235
  }
235
236
 
236
237
  .sums .sumline {
@@ -321,9 +322,11 @@ export class DeContentInvoice extends DeesElement {
321
322
  </div>
322
323
  ${this.getVatGroups().map((vatGroupArg) => {
323
324
  let itemNumbers = '';
325
+ let first = true;
324
326
  for (const item of vatGroupArg.items) {
325
327
  const itemIndex = this.letterData.content.invoiceData.items.indexOf(item);
326
- itemNumbers += ` ${itemIndex + 1},`;
328
+ itemNumbers += `${first ? '' : ', '}${itemIndex + 1}`;
329
+ first = false;
327
330
  }
328
331
  return html`
329
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;
@@ -77,7 +77,6 @@ export class DePage extends DeesElement {
77
77
  css`
78
78
  :host {
79
79
  display: block;
80
- font-family: inherit;
81
80
  }
82
81
 
83
82
  #scaleWrapper {
@@ -212,7 +211,8 @@ export class DePage extends DeesElement {
212
211
 
213
212
  // Adjust the outer dimensions so they match the scaled content
214
213
 
215
- // this.style.width = `${shared.a4Width * scale}px`;
214
+ this.style.overflow = 'hidden';
215
+ this.style.width = `${plugins.shared.a4Width * scale}px`;
216
216
  this.style.height = `${plugins.shared.a4Height * scale}px`;
217
217
  }
218
218
  }
@@ -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;
@@ -0,0 +1,7 @@
1
+ import { css } from '@design.estate/dees-element';
2
+
3
+ export const dedocumentSharedStyle = css`
4
+ :host {
5
+ font-family: 'Exo 2';
6
+ }
7
+ `;