nexabase-report 0.1.6 → 0.2.0
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/{html2canvas-C6NW7TDZ.js → html2canvas-DeDxn_1B.js} +2 -2
- package/dist/{html2canvas-DnLy7Bvt.js → html2canvas-JyIFSCoX.js} +1 -1
- package/dist/{html2pdf-CE-MkL8X.js → html2pdf-Ns6I-qbl.js} +3 -3
- package/dist/{index-82W7YhuN.js → index-DGgZte1M.js} +5631 -5624
- package/dist/{index.es-Dwx39Zhh.js → index.es-m--eTKUr.js} +2 -2
- package/dist/{jspdf.es.min-BrmVrj1R.js → jspdf.es.min-BDbMkhon.js} +2 -2
- package/dist/nexabase-report.es.js +1 -1
- package/dist/nexabase-report.umd.js +85 -85
- package/examples/report-anexo-factura.json +74 -0
- package/examples/rh_logo.png +0 -0
- package/package.json +1 -1
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{
|
|
2
|
+
"metadata": {
|
|
3
|
+
"name": "Anexo Factura de Venta",
|
|
4
|
+
"version": "2.0",
|
|
5
|
+
"description": "Reporte profesional con múltiples orígenes de datos"
|
|
6
|
+
},
|
|
7
|
+
"layout": {
|
|
8
|
+
"page": {
|
|
9
|
+
"format": "Letter",
|
|
10
|
+
"orientation": "portrait",
|
|
11
|
+
"margins": { "top": 1, "right": 1, "bottom": 1, "left": 1 }
|
|
12
|
+
},
|
|
13
|
+
"bands": [
|
|
14
|
+
{
|
|
15
|
+
"id": "header_band",
|
|
16
|
+
"type": "ReportHeader",
|
|
17
|
+
"height": 180,
|
|
18
|
+
"dataSource": "cliente",
|
|
19
|
+
"elements": [
|
|
20
|
+
{ "id": "el_title", "type": "Text", "content": "ANEXO DE FACTURA", "x": 0, "y": 0, "width": 750, "height": 40, "style": { "fontSize": "24px", "fontWeight": "bold", "textAlign": "center" } },
|
|
21
|
+
{ "id": "el_cli", "type": "Text", "content": "Cliente: {{nombre}}", "x": 20, "y": 60, "width": 400, "height": 20, "style": { "fontWeight": "bold" } },
|
|
22
|
+
{ "id": "el_nit", "type": "Text", "content": "NIT: {{nit}}", "x": 20, "y": 85, "width": 400, "height": 20 },
|
|
23
|
+
{ "id": "el_dir", "type": "Text", "content": "Dirección: {{direccion}}", "x": 20, "y": 110, "width": 400, "height": 20 },
|
|
24
|
+
{ "id": "el_ciu", "type": "Text", "content": "Ciudad: {{ciudad}}", "x": 20, "y": 135, "width": 400, "height": 20 }
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"id": "data_band",
|
|
29
|
+
"type": "DataBand",
|
|
30
|
+
"height": 200,
|
|
31
|
+
"dataSource": "main",
|
|
32
|
+
"elements": [
|
|
33
|
+
{
|
|
34
|
+
"id": "el_table",
|
|
35
|
+
"type": "Table",
|
|
36
|
+
"x": 0, "y": 10, "width": 750, "height": 180,
|
|
37
|
+
"tableColumns": [
|
|
38
|
+
{ "id": "c1", "title": "CÓDIGO", "binding": "sku", "width": 100 },
|
|
39
|
+
{ "id": "c2", "title": "PRODUCTO", "binding": "nombre", "width": 400 },
|
|
40
|
+
{ "id": "c3", "title": "CANT.", "binding": "cantidad", "width": 80 },
|
|
41
|
+
{ "id": "c4", "title": "PRECIO", "binding": "precio", "width": 170 }
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
"dataSources": [
|
|
49
|
+
{
|
|
50
|
+
"id": "ds_cliente",
|
|
51
|
+
"alias": "cliente",
|
|
52
|
+
"isManual": true,
|
|
53
|
+
"manualData": [
|
|
54
|
+
{
|
|
55
|
+
"nombre": "CLIENTE EJEMPLO S.A.S.",
|
|
56
|
+
"nit": "900.123.456-7",
|
|
57
|
+
"direccion": "Calle 100 # 15-20",
|
|
58
|
+
"ciudad": "Bogotá D.C."
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"id": "ds_main",
|
|
64
|
+
"alias": "main",
|
|
65
|
+
"isManual": true,
|
|
66
|
+
"manualData": [
|
|
67
|
+
{ "sku": "P001", "nombre": "Camiseta Básica Blanca", "cantidad": 5, "precio": 25000 },
|
|
68
|
+
{ "sku": "P002", "nombre": "Jean Slim Fit Azul", "cantidad": 2, "precio": 85000 },
|
|
69
|
+
{ "sku": "P003", "nombre": "Zapatos Deportivos Runner", "cantidad": 1, "precio": 120000 },
|
|
70
|
+
{ "sku": "P010", "nombre": "Reloj Digital Sport", "cantidad": 1, "precio": 110000 }
|
|
71
|
+
]
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
}
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nexabase-report",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Professional report designer and viewer for NexaBase — drag & drop designer, PDF/Excel export, charts, crosstabs, subreports.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "NexaBase Team",
|