@htmlbricks/hb-page-invoice 0.71.35 → 0.71.37

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/manifest.json CHANGED
@@ -18,16 +18,30 @@
18
18
  "additionalProperties": false,
19
19
  "properties": {
20
20
  "headers": {
21
- "$ref": "#/definitions/IHeaders"
21
+ "anyOf": [
22
+ {
23
+ "$ref": "#/definitions/IHeaders"
24
+ },
25
+ {
26
+ "type": "string"
27
+ }
28
+ ]
22
29
  },
23
30
  "id": {
24
31
  "type": "string"
25
32
  },
26
33
  "items": {
27
- "items": {
28
- "$ref": "#/definitions/IItem"
29
- },
30
- "type": "array"
34
+ "anyOf": [
35
+ {
36
+ "items": {
37
+ "$ref": "#/definitions/IItem"
38
+ },
39
+ "type": "array"
40
+ },
41
+ {
42
+ "type": "string"
43
+ }
44
+ ]
31
45
  },
32
46
  "printer": {
33
47
  "enum": [
@@ -40,10 +54,6 @@
40
54
  "type": "string"
41
55
  }
42
56
  },
43
- "required": [
44
- "items",
45
- "headers"
46
- ],
47
57
  "type": "object"
48
58
  },
49
59
  "ICompany": {
@@ -228,7 +238,7 @@
228
238
  "name": "--bulma-text",
229
239
  "valueType": "color",
230
240
  "defaultValue": "#363636",
231
- "description": "Invoice body text."
241
+ "description": "Default text color for invoice headings, addresses, line descriptions, and table totals."
232
242
  },
233
243
  {
234
244
  "name": "--bulma-border",
@@ -241,6 +251,12 @@
241
251
  "valueType": "color",
242
252
  "defaultValue": "#ffffff",
243
253
  "description": "Page background inside the host."
254
+ },
255
+ {
256
+ "name": "--bulma-block-spacing",
257
+ "valueType": "string",
258
+ "defaultValue": "1.5rem",
259
+ "description": "Vertical margin block for the invoice host section."
244
260
  }
245
261
  ],
246
262
  "parts": []
@@ -430,7 +446,7 @@
430
446
  }
431
447
  }
432
448
  ],
433
- "iifeIntegrity": "sha384-iUBOelcjtJ9v6zkkUFdsHwNr4LueZcfvA4wQNAM2FHoxLRmygUmScJA5kkE7SZBA",
449
+ "iifeIntegrity": "sha384-uzolmLNOA06LRJNAscMsX+yv1FM/mejMU/9SGbTTitzPFwcGKysKP1jCSC7h5wy6",
434
450
  "dependencies": [
435
451
  {
436
452
  "name": "hb-table",
@@ -580,5 +596,5 @@
580
596
  "size": {},
581
597
  "iifePath": "main.iife.js",
582
598
  "repoName": "@htmlbricks/hb-page-invoice",
583
- "version": "0.71.35"
599
+ "version": "0.71.37"
584
600
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-page-invoice",
3
- "version": "0.71.35",
3
+ "version": "0.71.37",
4
4
  "contributors": [],
5
5
  "description": "Printable invoice page: shows seller and buyer from headers, invoice date and serial, line items in hb-table with price, quantity, VAT and row totals, plus subtotal, tax and grand total in the invoice currency. When printer is not yes, offers print and open-in-window actions.",
6
6
  "licenses": [
@@ -6,16 +6,30 @@
6
6
  "additionalProperties": false,
7
7
  "properties": {
8
8
  "headers": {
9
- "$ref": "#/definitions/IHeaders"
9
+ "anyOf": [
10
+ {
11
+ "$ref": "#/definitions/IHeaders"
12
+ },
13
+ {
14
+ "type": "string"
15
+ }
16
+ ]
10
17
  },
11
18
  "id": {
12
19
  "type": "string"
13
20
  },
14
21
  "items": {
15
- "items": {
16
- "$ref": "#/definitions/IItem"
17
- },
18
- "type": "array"
22
+ "anyOf": [
23
+ {
24
+ "items": {
25
+ "$ref": "#/definitions/IItem"
26
+ },
27
+ "type": "array"
28
+ },
29
+ {
30
+ "type": "string"
31
+ }
32
+ ]
19
33
  },
20
34
  "printer": {
21
35
  "enum": [
@@ -28,10 +42,6 @@
28
42
  "type": "string"
29
43
  }
30
44
  },
31
- "required": [
32
- "items",
33
- "headers"
34
- ],
35
45
  "type": "object"
36
46
  },
37
47
  "ICompany": {
@@ -1,39 +1,39 @@
1
1
  export interface IItem {
2
- unit?: string;
3
- desc: string;
4
- unitaryPrice: number;
5
- taxPercentage: number;
6
- quantity?: number;
7
- discount?: {
8
- type: "gross" | "item";
9
- includeVat?: boolean;
10
- };
2
+ unit?: string;
3
+ desc: string;
4
+ unitaryPrice: number;
5
+ taxPercentage: number;
6
+ quantity?: number;
7
+ discount?: {
8
+ type: "gross" | "item";
9
+ includeVat?: boolean;
10
+ };
11
11
  }
12
12
  export interface ICompany {
13
- piva: string;
14
- name: string;
15
- address: string;
16
- email: string;
17
- phone: string;
18
- iban?: string;
13
+ piva: string;
14
+ name: string;
15
+ address: string;
16
+ email: string;
17
+ phone: string;
18
+ iban?: string;
19
19
  }
20
20
 
21
21
  export interface IHeaders {
22
- country?: "it" | "eu" | "us";
23
- serial: string;
24
- date?: Date;
25
- expirationDate?: Date;
26
- category?: "items" | "services";
27
- from: ICompany & { logo: string; shortName: string };
28
- to: ICompany;
22
+ country?: "it" | "eu" | "us";
23
+ serial: string;
24
+ date?: Date;
25
+ expirationDate?: Date;
26
+ category?: "items" | "services";
27
+ from: ICompany & { logo: string; shortName: string };
28
+ to: ICompany;
29
29
  }
30
30
 
31
31
  export type Component = {
32
- id?: string;
33
- style?: string;
34
- printer?: "yes" | "no";
35
- items: IItem[];
36
- headers: IHeaders;
32
+ id?: string;
33
+ style?: string;
34
+ printer?: "yes" | "no";
35
+ items?: IItem[] | string;
36
+ headers?: IHeaders | string;
37
37
  };
38
38
 
39
39
  export type Events = {};