@design.estate/dees-document 1.6.6 → 1.6.7

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.6",
3
+ "version": "1.6.7",
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.6',
6
+ version: '1.6.7',
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',
6
+ version: '1.6.7',
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
  }
@@ -115,11 +115,35 @@ export class DeDocument extends DeesElement {
115
115
  }
116
116
 
117
117
  public async firstUpdated(_changedProperties: Map<string | number | symbol, unknown>) {
118
- domtools.plugins.smartdelay.delayFor(0).then(() => {
118
+ domtools.plugins.smartdelay.delayFor(0).then(async () => {
119
119
  this.documentSettings = {
120
120
  ...defaultDocumentSettings,
121
121
  ...this.documentSettings,
122
122
  }
123
+
124
+ while (false) {
125
+ await domtools.plugins.smartdelay.delayFor(1000);
126
+ this.letterData = {
127
+ ...this.letterData,
128
+ content: {
129
+ ...this.letterData.content,
130
+ invoiceData: {
131
+ ...this.letterData.content.invoiceData,
132
+ items: [
133
+ ...this.letterData.content.invoiceData.items,
134
+ {
135
+ name: 'Test Item',
136
+ unitQuantity: 1,
137
+ unitNetPrice: 100,
138
+ unitType: 'hours',
139
+ vatPercentage: 19,
140
+ position: 1,
141
+ },
142
+ ],
143
+ },
144
+ }
145
+ }
146
+ }
123
147
  });
124
148
  const resizeObserver = new ResizeObserver((entries) => {
125
149
  for (const entry of entries) {
@@ -77,6 +77,7 @@ export class DePage extends DeesElement {
77
77
  css`
78
78
  :host {
79
79
  display: block;
80
+ overflow: hidden;
80
81
  }
81
82
 
82
83
  #scaleWrapper {
@@ -211,7 +212,6 @@ export class DePage extends DeesElement {
211
212
 
212
213
  // Adjust the outer dimensions so they match the scaled content
213
214
 
214
- this.style.overflow = 'hidden';
215
215
  this.style.width = `${plugins.shared.a4Width * scale}px`;
216
216
  this.style.height = `${plugins.shared.a4Height * scale}px`;
217
217
  }