@htmlbricks/hb-page-invoice 0.8.37 → 0.8.43
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/extra/docs.ts +43 -6
- package/package.json +10 -8
- package/release/docs.js +40 -4
- package/release/docs.js.map +1 -1
- package/release/docs.mjs +68 -0
- package/release/docs.ts +43 -6
- package/release/manifest.json +308 -0
- package/release/release.js +1 -1
- package/release/release.js.map +1 -1
- package/release/webcomponent.type.d.json +1 -4
- package/release/webcomponent_events.type.d.json +10 -0
- package/release/docs.type.d.json +0 -67
package/extra/docs.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { CssPart, CssVar, HtmlSlot, i18nLang, StyleSetup } from "@htmlbricks/hb-jsutils/main";
|
|
1
|
+
import type { CssPart, CssVar, HtmlSlot, i18nLang, StyleSetup, ComponentSetup } from "@htmlbricks/hb-jsutils/main";
|
|
2
|
+
import type { Component } from "../app/types/webcomponent.type";
|
|
2
3
|
|
|
3
4
|
export const storybookArgs = {
|
|
4
5
|
printer: { control: { type: "text" } },
|
|
@@ -23,14 +24,50 @@ export const styleSetup: StyleSetup = {
|
|
|
23
24
|
parts: cssParts,
|
|
24
25
|
};
|
|
25
26
|
|
|
26
|
-
|
|
27
|
+
const examples: Component[] = [
|
|
28
|
+
{
|
|
29
|
+
headers: {
|
|
30
|
+
serial: "seriale1",
|
|
31
|
+
from: {
|
|
32
|
+
piva: "piva",
|
|
33
|
+
name: "companyfrom",
|
|
34
|
+
address: "address",
|
|
35
|
+
email: "email",
|
|
36
|
+
phone: "phone",
|
|
37
|
+
logo: "https://upload.wikimedia.org/wikipedia/commons/a/af/Free_Content_Logo.svg",
|
|
38
|
+
shortName: "Acme SpA",
|
|
39
|
+
},
|
|
40
|
+
to: {
|
|
41
|
+
piva: "to iva",
|
|
42
|
+
name: "to name",
|
|
43
|
+
address: "to address",
|
|
44
|
+
email: "to@email.com",
|
|
45
|
+
phone: "tototo",
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
items: [
|
|
49
|
+
{
|
|
50
|
+
unitaryPrice: 2,
|
|
51
|
+
taxPercentage: 3,
|
|
52
|
+
desc: "testitem",
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
unitaryPrice: 5,
|
|
56
|
+
taxPercentage: 7,
|
|
57
|
+
desc: "testitem2",
|
|
58
|
+
},
|
|
59
|
+
],
|
|
60
|
+
},
|
|
61
|
+
];
|
|
62
|
+
export const componentSetup: ComponentSetup & { examples: Component[] } = {
|
|
63
|
+
definitions: null,
|
|
27
64
|
storybookArgs,
|
|
28
65
|
styleSetup,
|
|
29
66
|
htmlSlots,
|
|
30
67
|
i18n: i18nLanguages,
|
|
31
|
-
examples
|
|
32
|
-
name: "",
|
|
33
|
-
category: "",
|
|
34
|
-
tags: [],
|
|
68
|
+
examples,
|
|
69
|
+
name: "hb-page-invoice",
|
|
70
|
+
category: "page",
|
|
71
|
+
tags: ["page"],
|
|
35
72
|
size: {},
|
|
36
73
|
};
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@htmlbricks/hb-page-invoice",
|
|
3
3
|
"displayName": "Svelte Invoice WebComponent",
|
|
4
4
|
"description": "Svelte Invoice WebComponent",
|
|
5
|
-
"version": "0.8.
|
|
5
|
+
"version": "0.8.43",
|
|
6
6
|
"main": "release/release.js",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
@@ -20,15 +20,18 @@
|
|
|
20
20
|
"start": "sirv dist",
|
|
21
21
|
"dev": "rm -rf ./dist && rollup -c -w",
|
|
22
22
|
"build": "rm -rf ./dist && rollup -c",
|
|
23
|
-
"generate-
|
|
24
|
-
"generate-schema": "ts-json-schema-generator --path 'app/types/webcomponent.type.d.ts' > dist/webcomponent.type.d.json",
|
|
23
|
+
"generate-manifest": "npm run generate-schemes && manifester --dir $PWD",
|
|
24
|
+
"generate-component-schema": "ts-json-schema-generator --type 'Component' --path 'app/types/webcomponent.type.d.ts' > dist/webcomponent.type.d.json",
|
|
25
|
+
"generate-events-schema": "ts-json-schema-generator --type 'Events' --path 'app/types/webcomponent.type.d.ts' > dist/webcomponent_events.type.d.json",
|
|
26
|
+
"generate-schemes": "npm run generate-events-schema && npm run generate-component-schema",
|
|
25
27
|
"copydest": "rm -rf release && mkdir -p release && mkdir -p release && cp dist/* ./release/",
|
|
26
28
|
"build-extra": "tsc --moduleResolution node --module es2020 --esModuleInterop true --outDir dist --sourceMap --skipLibCheck extra/*",
|
|
27
|
-
"build:release": "PRODUCTION=true npm run build && npm run build-extra && npm run generate-
|
|
29
|
+
"build:release": "PRODUCTION=true npm run build && npm run build-extra && npm run generate-manifest && npm run copydest",
|
|
28
30
|
"prepublish": "npm run build:release"
|
|
29
31
|
},
|
|
30
32
|
"devDependencies": {
|
|
31
|
-
"@htmlbricks/hb-jsutils": "^0.8.
|
|
33
|
+
"@htmlbricks/hb-jsutils": "^0.8.43",
|
|
34
|
+
"@htmlbricks/manifester": "^0.0.5",
|
|
32
35
|
"@rollup/plugin-alias": "^3.1.2",
|
|
33
36
|
"@rollup/plugin-commonjs": "^18.0.0",
|
|
34
37
|
"@rollup/plugin-json": "^4.1.0",
|
|
@@ -42,7 +45,6 @@
|
|
|
42
45
|
"eslint": "^7.25.0",
|
|
43
46
|
"eslint-plugin-jsdoc": "^33.0.0",
|
|
44
47
|
"eslint-plugin-svelte3": "^3.2.0",
|
|
45
|
-
"generate-json-from-js-object": "^0.0.17",
|
|
46
48
|
"node-sass": "^6.0.1",
|
|
47
49
|
"postcss": "^8.2.13",
|
|
48
50
|
"postcss-load-config": "^3.0.1",
|
|
@@ -68,7 +70,7 @@
|
|
|
68
70
|
"typescript-transform-paths": "^2.2.3"
|
|
69
71
|
},
|
|
70
72
|
"dependencies": {
|
|
71
|
-
"@htmlbricks/hb-table": "^0.8.
|
|
73
|
+
"@htmlbricks/hb-table": "^0.8.43",
|
|
72
74
|
"dayjs": "^1.10.7",
|
|
73
75
|
"debounce": "^1.2.1"
|
|
74
76
|
},
|
|
@@ -79,5 +81,5 @@
|
|
|
79
81
|
"html5-webcomponents"
|
|
80
82
|
],
|
|
81
83
|
"contributors": [],
|
|
82
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "00bfec0d080db03f42972124577a880c9bf2570e"
|
|
83
85
|
}
|
package/release/docs.js
CHANGED
|
@@ -18,15 +18,51 @@ export var styleSetup = {
|
|
|
18
18
|
vars: cssVars,
|
|
19
19
|
parts: cssParts
|
|
20
20
|
};
|
|
21
|
+
var examples = [
|
|
22
|
+
{
|
|
23
|
+
headers: {
|
|
24
|
+
serial: "seriale1",
|
|
25
|
+
from: {
|
|
26
|
+
piva: "piva",
|
|
27
|
+
name: "companyfrom",
|
|
28
|
+
address: "address",
|
|
29
|
+
email: "email",
|
|
30
|
+
phone: "phone",
|
|
31
|
+
logo: "https://upload.wikimedia.org/wikipedia/commons/a/af/Free_Content_Logo.svg",
|
|
32
|
+
shortName: "Acme SpA"
|
|
33
|
+
},
|
|
34
|
+
to: {
|
|
35
|
+
piva: "to iva",
|
|
36
|
+
name: "to name",
|
|
37
|
+
address: "to address",
|
|
38
|
+
email: "to@email.com",
|
|
39
|
+
phone: "tototo"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
items: [
|
|
43
|
+
{
|
|
44
|
+
unitaryPrice: 2,
|
|
45
|
+
taxPercentage: 3,
|
|
46
|
+
desc: "testitem"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
unitaryPrice: 5,
|
|
50
|
+
taxPercentage: 7,
|
|
51
|
+
desc: "testitem2"
|
|
52
|
+
},
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
];
|
|
21
56
|
export var componentSetup = {
|
|
57
|
+
definitions: null,
|
|
22
58
|
storybookArgs: storybookArgs,
|
|
23
59
|
styleSetup: styleSetup,
|
|
24
60
|
htmlSlots: htmlSlots,
|
|
25
61
|
i18n: i18nLanguages,
|
|
26
|
-
examples:
|
|
27
|
-
name: "",
|
|
28
|
-
category: "",
|
|
29
|
-
tags: [],
|
|
62
|
+
examples: examples,
|
|
63
|
+
name: "hb-page-invoice",
|
|
64
|
+
category: "page",
|
|
65
|
+
tags: ["page"],
|
|
30
66
|
size: {}
|
|
31
67
|
};
|
|
32
68
|
//# sourceMappingURL=docs.js.map
|
package/release/docs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docs.js","sourceRoot":"","sources":["../extra/docs.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"docs.js","sourceRoot":"","sources":["../extra/docs.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,IAAM,aAAa,GAAG;IAC5B,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IACtC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IACxC,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;CACrC,CAAC;AAEF,IAAM,OAAO,GAAa;IACzB,EAAE,IAAI,EAAE,cAAc,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,SAAS,EAAE;IACzF,EAAE,IAAI,EAAE,gBAAgB,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,SAAS,EAAE;IAC3F,EAAE,IAAI,EAAE,cAAc,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,SAAS,EAAE;IACzF,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,SAAS,EAAE;IACtF,EAAE,IAAI,EAAE,cAAc,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,SAAS,EAAE;IACzF,EAAE,IAAI,EAAE,aAAa,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,SAAS,EAAE;CACxF,CAAC;AACF,MAAM,CAAC,IAAM,QAAQ,GAAc,EAAE,CAAC;AACtC,MAAM,CAAC,IAAM,SAAS,GAAe,EAAE,CAAC;AACxC,MAAM,CAAC,IAAM,aAAa,GAAe,EAAE,CAAC;AAE5C,MAAM,CAAC,IAAM,UAAU,GAAe;IACrC,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,QAAQ;CACf,CAAC;AAEF,IAAM,QAAQ,GAAgB;IAC7B;QACC,OAAO,EAAE;YACR,MAAM,EAAE,UAAU;YAClB,IAAI,EAAE;gBACL,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,aAAa;gBACnB,OAAO,EAAE,SAAS;gBAClB,KAAK,EAAE,OAAO;gBACd,KAAK,EAAE,OAAO;gBACd,IAAI,EAAE,2EAA2E;gBACjF,SAAS,EAAE,UAAU;aACrB;YACD,EAAE,EAAE;gBACH,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,YAAY;gBACrB,KAAK,EAAE,cAAc;gBACrB,KAAK,EAAE,QAAQ;aACf;SACD;QACD,KAAK,EAAE;YACN;gBACC,YAAY,EAAE,CAAC;gBACf,aAAa,EAAE,CAAC;gBAChB,IAAI,EAAE,UAAU;aAChB;YACD;gBACC,YAAY,EAAE,CAAC;gBACf,aAAa,EAAE,CAAC;gBAChB,IAAI,EAAE,WAAW;aACjB;SACD;KACD;CACD,CAAC;AACF,MAAM,CAAC,IAAM,cAAc,GAA+C;IACzE,WAAW,EAAE,IAAI;IACjB,aAAa,eAAA;IACb,UAAU,YAAA;IACV,SAAS,WAAA;IACT,IAAI,EAAE,aAAa;IACnB,QAAQ,UAAA;IACR,IAAI,EAAE,iBAAiB;IACvB,QAAQ,EAAE,MAAM;IAChB,IAAI,EAAE,CAAC,MAAM,CAAC;IACd,IAAI,EAAE,EAAE;CACR,CAAC"}
|
package/release/docs.mjs
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
export var storybookArgs = {
|
|
2
|
+
printer: { control: { type: "text" } },
|
|
3
|
+
headers: { control: { type: "object" } },
|
|
4
|
+
items: { control: { type: "array" } }
|
|
5
|
+
};
|
|
6
|
+
var cssVars = [
|
|
7
|
+
{ name: "--bs-primary", valueType: "color", theme: "bootstrap", defaultValue: "#07689f" },
|
|
8
|
+
{ name: "--bs-secondary", valueType: "color", theme: "bootstrap", defaultValue: "#c9d6df" },
|
|
9
|
+
{ name: "--bs-success", valueType: "color", theme: "bootstrap", defaultValue: "#11d3bc" },
|
|
10
|
+
{ name: "--bs-info", valueType: "color", theme: "bootstrap", defaultValue: "#a2d5f2" },
|
|
11
|
+
{ name: "--bs-warning", valueType: "color", theme: "bootstrap", defaultValue: "#ffc107" },
|
|
12
|
+
{ name: "--bs-danger", valueType: "color", theme: "bootstrap", defaultValue: "#f67280" },
|
|
13
|
+
];
|
|
14
|
+
export var cssParts = [];
|
|
15
|
+
export var htmlSlots = [];
|
|
16
|
+
export var i18nLanguages = [];
|
|
17
|
+
export var styleSetup = {
|
|
18
|
+
vars: cssVars,
|
|
19
|
+
parts: cssParts
|
|
20
|
+
};
|
|
21
|
+
var examples = [
|
|
22
|
+
{
|
|
23
|
+
headers: {
|
|
24
|
+
serial: "seriale1",
|
|
25
|
+
from: {
|
|
26
|
+
piva: "piva",
|
|
27
|
+
name: "companyfrom",
|
|
28
|
+
address: "address",
|
|
29
|
+
email: "email",
|
|
30
|
+
phone: "phone",
|
|
31
|
+
logo: "https://upload.wikimedia.org/wikipedia/commons/a/af/Free_Content_Logo.svg",
|
|
32
|
+
shortName: "Acme SpA"
|
|
33
|
+
},
|
|
34
|
+
to: {
|
|
35
|
+
piva: "to iva",
|
|
36
|
+
name: "to name",
|
|
37
|
+
address: "to address",
|
|
38
|
+
email: "to@email.com",
|
|
39
|
+
phone: "tototo"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
items: [
|
|
43
|
+
{
|
|
44
|
+
unitaryPrice: 2,
|
|
45
|
+
taxPercentage: 3,
|
|
46
|
+
desc: "testitem"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
unitaryPrice: 5,
|
|
50
|
+
taxPercentage: 7,
|
|
51
|
+
desc: "testitem2"
|
|
52
|
+
},
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
];
|
|
56
|
+
export var componentSetup = {
|
|
57
|
+
definitions: null,
|
|
58
|
+
storybookArgs: storybookArgs,
|
|
59
|
+
styleSetup: styleSetup,
|
|
60
|
+
htmlSlots: htmlSlots,
|
|
61
|
+
i18n: i18nLanguages,
|
|
62
|
+
examples: examples,
|
|
63
|
+
name: "hb-page-invoice",
|
|
64
|
+
category: "page",
|
|
65
|
+
tags: ["page"],
|
|
66
|
+
size: {}
|
|
67
|
+
};
|
|
68
|
+
//# sourceMappingURL=docs.js.map
|
package/release/docs.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { CssPart, CssVar, HtmlSlot, i18nLang, StyleSetup } from "@htmlbricks/hb-jsutils/main";
|
|
1
|
+
import type { CssPart, CssVar, HtmlSlot, i18nLang, StyleSetup, ComponentSetup } from "@htmlbricks/hb-jsutils/main";
|
|
2
|
+
import type { Component } from "../app/types/webcomponent.type";
|
|
2
3
|
|
|
3
4
|
export const storybookArgs = {
|
|
4
5
|
printer: { control: { type: "text" } },
|
|
@@ -23,14 +24,50 @@ export const styleSetup: StyleSetup = {
|
|
|
23
24
|
parts: cssParts,
|
|
24
25
|
};
|
|
25
26
|
|
|
26
|
-
|
|
27
|
+
const examples: Component[] = [
|
|
28
|
+
{
|
|
29
|
+
headers: {
|
|
30
|
+
serial: "seriale1",
|
|
31
|
+
from: {
|
|
32
|
+
piva: "piva",
|
|
33
|
+
name: "companyfrom",
|
|
34
|
+
address: "address",
|
|
35
|
+
email: "email",
|
|
36
|
+
phone: "phone",
|
|
37
|
+
logo: "https://upload.wikimedia.org/wikipedia/commons/a/af/Free_Content_Logo.svg",
|
|
38
|
+
shortName: "Acme SpA",
|
|
39
|
+
},
|
|
40
|
+
to: {
|
|
41
|
+
piva: "to iva",
|
|
42
|
+
name: "to name",
|
|
43
|
+
address: "to address",
|
|
44
|
+
email: "to@email.com",
|
|
45
|
+
phone: "tototo",
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
items: [
|
|
49
|
+
{
|
|
50
|
+
unitaryPrice: 2,
|
|
51
|
+
taxPercentage: 3,
|
|
52
|
+
desc: "testitem",
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
unitaryPrice: 5,
|
|
56
|
+
taxPercentage: 7,
|
|
57
|
+
desc: "testitem2",
|
|
58
|
+
},
|
|
59
|
+
],
|
|
60
|
+
},
|
|
61
|
+
];
|
|
62
|
+
export const componentSetup: ComponentSetup & { examples: Component[] } = {
|
|
63
|
+
definitions: null,
|
|
27
64
|
storybookArgs,
|
|
28
65
|
styleSetup,
|
|
29
66
|
htmlSlots,
|
|
30
67
|
i18n: i18nLanguages,
|
|
31
|
-
examples
|
|
32
|
-
name: "",
|
|
33
|
-
category: "",
|
|
34
|
-
tags: [],
|
|
68
|
+
examples,
|
|
69
|
+
name: "hb-page-invoice",
|
|
70
|
+
category: "page",
|
|
71
|
+
tags: ["page"],
|
|
35
72
|
size: {},
|
|
36
73
|
};
|
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
{
|
|
2
|
+
"definitions": {
|
|
3
|
+
"events": {
|
|
4
|
+
"$ref": "#/definitions/Events",
|
|
5
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
6
|
+
"definitions": {
|
|
7
|
+
"Events": {
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"type": "object"
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"component": {
|
|
14
|
+
"$ref": "#/definitions/Component",
|
|
15
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
16
|
+
"definitions": {
|
|
17
|
+
"Component": {
|
|
18
|
+
"additionalProperties": false,
|
|
19
|
+
"properties": {
|
|
20
|
+
"headers": {
|
|
21
|
+
"$ref": "#/definitions/IHeaders"
|
|
22
|
+
},
|
|
23
|
+
"id": {
|
|
24
|
+
"type": "string"
|
|
25
|
+
},
|
|
26
|
+
"items": {
|
|
27
|
+
"items": {
|
|
28
|
+
"$ref": "#/definitions/IItem"
|
|
29
|
+
},
|
|
30
|
+
"type": "array"
|
|
31
|
+
},
|
|
32
|
+
"printer": {
|
|
33
|
+
"enum": [
|
|
34
|
+
"yes",
|
|
35
|
+
"no"
|
|
36
|
+
],
|
|
37
|
+
"type": "string"
|
|
38
|
+
},
|
|
39
|
+
"style": {
|
|
40
|
+
"type": "string"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"required": [
|
|
44
|
+
"items",
|
|
45
|
+
"headers"
|
|
46
|
+
],
|
|
47
|
+
"type": "object"
|
|
48
|
+
},
|
|
49
|
+
"ICompany": {
|
|
50
|
+
"additionalProperties": false,
|
|
51
|
+
"properties": {
|
|
52
|
+
"address": {
|
|
53
|
+
"type": "string"
|
|
54
|
+
},
|
|
55
|
+
"email": {
|
|
56
|
+
"type": "string"
|
|
57
|
+
},
|
|
58
|
+
"iban": {
|
|
59
|
+
"type": "string"
|
|
60
|
+
},
|
|
61
|
+
"name": {
|
|
62
|
+
"type": "string"
|
|
63
|
+
},
|
|
64
|
+
"phone": {
|
|
65
|
+
"type": "string"
|
|
66
|
+
},
|
|
67
|
+
"piva": {
|
|
68
|
+
"type": "string"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"required": [
|
|
72
|
+
"piva",
|
|
73
|
+
"name",
|
|
74
|
+
"address",
|
|
75
|
+
"email",
|
|
76
|
+
"phone"
|
|
77
|
+
],
|
|
78
|
+
"type": "object"
|
|
79
|
+
},
|
|
80
|
+
"IHeaders": {
|
|
81
|
+
"additionalProperties": false,
|
|
82
|
+
"properties": {
|
|
83
|
+
"category": {
|
|
84
|
+
"enum": [
|
|
85
|
+
"items",
|
|
86
|
+
"services"
|
|
87
|
+
],
|
|
88
|
+
"type": "string"
|
|
89
|
+
},
|
|
90
|
+
"country": {
|
|
91
|
+
"enum": [
|
|
92
|
+
"it",
|
|
93
|
+
"eu",
|
|
94
|
+
"us"
|
|
95
|
+
],
|
|
96
|
+
"type": "string"
|
|
97
|
+
},
|
|
98
|
+
"date": {
|
|
99
|
+
"format": "date-time",
|
|
100
|
+
"type": "string"
|
|
101
|
+
},
|
|
102
|
+
"expirationDate": {
|
|
103
|
+
"format": "date-time",
|
|
104
|
+
"type": "string"
|
|
105
|
+
},
|
|
106
|
+
"from": {
|
|
107
|
+
"additionalProperties": false,
|
|
108
|
+
"properties": {
|
|
109
|
+
"address": {
|
|
110
|
+
"type": "string"
|
|
111
|
+
},
|
|
112
|
+
"email": {
|
|
113
|
+
"type": "string"
|
|
114
|
+
},
|
|
115
|
+
"iban": {
|
|
116
|
+
"type": "string"
|
|
117
|
+
},
|
|
118
|
+
"logo": {
|
|
119
|
+
"type": "string"
|
|
120
|
+
},
|
|
121
|
+
"name": {
|
|
122
|
+
"type": "string"
|
|
123
|
+
},
|
|
124
|
+
"phone": {
|
|
125
|
+
"type": "string"
|
|
126
|
+
},
|
|
127
|
+
"piva": {
|
|
128
|
+
"type": "string"
|
|
129
|
+
},
|
|
130
|
+
"shortName": {
|
|
131
|
+
"type": "string"
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"required": [
|
|
135
|
+
"address",
|
|
136
|
+
"email",
|
|
137
|
+
"logo",
|
|
138
|
+
"name",
|
|
139
|
+
"phone",
|
|
140
|
+
"piva",
|
|
141
|
+
"shortName"
|
|
142
|
+
],
|
|
143
|
+
"type": "object"
|
|
144
|
+
},
|
|
145
|
+
"serial": {
|
|
146
|
+
"type": "string"
|
|
147
|
+
},
|
|
148
|
+
"to": {
|
|
149
|
+
"$ref": "#/definitions/ICompany"
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"required": [
|
|
153
|
+
"serial",
|
|
154
|
+
"from",
|
|
155
|
+
"to"
|
|
156
|
+
],
|
|
157
|
+
"type": "object"
|
|
158
|
+
},
|
|
159
|
+
"IItem": {
|
|
160
|
+
"additionalProperties": false,
|
|
161
|
+
"properties": {
|
|
162
|
+
"desc": {
|
|
163
|
+
"type": "string"
|
|
164
|
+
},
|
|
165
|
+
"discount": {
|
|
166
|
+
"additionalProperties": false,
|
|
167
|
+
"properties": {
|
|
168
|
+
"includeVat": {
|
|
169
|
+
"type": "boolean"
|
|
170
|
+
},
|
|
171
|
+
"type": {
|
|
172
|
+
"enum": [
|
|
173
|
+
"gross",
|
|
174
|
+
"item"
|
|
175
|
+
],
|
|
176
|
+
"type": "string"
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
"required": [
|
|
180
|
+
"type"
|
|
181
|
+
],
|
|
182
|
+
"type": "object"
|
|
183
|
+
},
|
|
184
|
+
"quantity": {
|
|
185
|
+
"type": "number"
|
|
186
|
+
},
|
|
187
|
+
"taxPercentage": {
|
|
188
|
+
"type": "number"
|
|
189
|
+
},
|
|
190
|
+
"unit": {
|
|
191
|
+
"type": "string"
|
|
192
|
+
},
|
|
193
|
+
"unitaryPrice": {
|
|
194
|
+
"type": "number"
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
"required": [
|
|
198
|
+
"desc",
|
|
199
|
+
"unitaryPrice",
|
|
200
|
+
"taxPercentage"
|
|
201
|
+
],
|
|
202
|
+
"type": "object"
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
"storybookArgs": {
|
|
208
|
+
"printer": {
|
|
209
|
+
"control": {
|
|
210
|
+
"type": "text"
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
"headers": {
|
|
214
|
+
"control": {
|
|
215
|
+
"type": "object"
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
"items": {
|
|
219
|
+
"control": {
|
|
220
|
+
"type": "array"
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
"styleSetup": {
|
|
225
|
+
"vars": [
|
|
226
|
+
{
|
|
227
|
+
"name": "--bs-primary",
|
|
228
|
+
"valueType": "color",
|
|
229
|
+
"theme": "bootstrap",
|
|
230
|
+
"defaultValue": "#07689f"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"name": "--bs-secondary",
|
|
234
|
+
"valueType": "color",
|
|
235
|
+
"theme": "bootstrap",
|
|
236
|
+
"defaultValue": "#c9d6df"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"name": "--bs-success",
|
|
240
|
+
"valueType": "color",
|
|
241
|
+
"theme": "bootstrap",
|
|
242
|
+
"defaultValue": "#11d3bc"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"name": "--bs-info",
|
|
246
|
+
"valueType": "color",
|
|
247
|
+
"theme": "bootstrap",
|
|
248
|
+
"defaultValue": "#a2d5f2"
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"name": "--bs-warning",
|
|
252
|
+
"valueType": "color",
|
|
253
|
+
"theme": "bootstrap",
|
|
254
|
+
"defaultValue": "#ffc107"
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"name": "--bs-danger",
|
|
258
|
+
"valueType": "color",
|
|
259
|
+
"theme": "bootstrap",
|
|
260
|
+
"defaultValue": "#f67280"
|
|
261
|
+
}
|
|
262
|
+
],
|
|
263
|
+
"parts": []
|
|
264
|
+
},
|
|
265
|
+
"htmlSlots": [],
|
|
266
|
+
"i18n": [],
|
|
267
|
+
"examples": [
|
|
268
|
+
{
|
|
269
|
+
"headers": {
|
|
270
|
+
"serial": "seriale1",
|
|
271
|
+
"from": {
|
|
272
|
+
"piva": "piva",
|
|
273
|
+
"name": "companyfrom",
|
|
274
|
+
"address": "address",
|
|
275
|
+
"email": "email",
|
|
276
|
+
"phone": "phone",
|
|
277
|
+
"logo": "https://upload.wikimedia.org/wikipedia/commons/a/af/Free_Content_Logo.svg",
|
|
278
|
+
"shortName": "Acme SpA"
|
|
279
|
+
},
|
|
280
|
+
"to": {
|
|
281
|
+
"piva": "to iva",
|
|
282
|
+
"name": "to name",
|
|
283
|
+
"address": "to address",
|
|
284
|
+
"email": "to@email.com",
|
|
285
|
+
"phone": "tototo"
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
"items": [
|
|
289
|
+
{
|
|
290
|
+
"unitaryPrice": 2,
|
|
291
|
+
"taxPercentage": 3,
|
|
292
|
+
"desc": "testitem"
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
"unitaryPrice": 5,
|
|
296
|
+
"taxPercentage": 7,
|
|
297
|
+
"desc": "testitem2"
|
|
298
|
+
}
|
|
299
|
+
]
|
|
300
|
+
}
|
|
301
|
+
],
|
|
302
|
+
"name": "hb-page-invoice",
|
|
303
|
+
"category": "page",
|
|
304
|
+
"tags": [
|
|
305
|
+
"page"
|
|
306
|
+
],
|
|
307
|
+
"size": {}
|
|
308
|
+
}
|