nexabase-report 0.1.0 → 0.1.2
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/README.md +280 -56
- package/dist/favicon.ico +0 -0
- package/dist/{html2canvas-CSJ68r_Q.js → html2canvas-Bt7A8WrM.js} +1 -1
- package/dist/{html2canvas-BXLDsEU4.js → html2canvas-ChtVTMFS.js} +2 -2
- package/dist/{html2pdf-DwP6YZUu.js → html2pdf-DsfBPN4L.js} +3 -3
- package/dist/{index-BJcVIdAR.js → index-D3l3xYdG.js} +21059 -20025
- package/dist/{index.es-CLzdqdqQ.js → index.es-CmGmMwAx.js} +2 -2
- package/dist/{jspdf.es.min-CDx0J4wI.js → jspdf.es.min-M0h3R1kR.js} +2 -2
- package/dist/logo.png +0 -0
- package/dist/nexabase-report.es.js +1 -1
- package/dist/nexabase-report.umd.js +170 -170
- package/dist/nexabase_report_logo_base.png +0 -0
- package/dist/nexabase_report_logo_base_transparente.png +0 -0
- package/dist/nexabase_report_logo_var1.png +0 -0
- package/dist/nexabase_report_logo_var2.png +0 -0
- package/dist/style.css +1001 -53
- package/examples/dashboards/activity_dashboard.json +80 -0
- package/examples/dashboards/inventory_dashboard.json +147 -0
- package/examples/dashboards/sales_dashboard.json +162 -0
- package/package.json +3 -3
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
{
|
|
2
|
+
"metadata": {
|
|
3
|
+
"name": "Actividad de Usuarios y App",
|
|
4
|
+
"version": "1.0",
|
|
5
|
+
"createdAt": "2026-04-28T10:10:00Z"
|
|
6
|
+
},
|
|
7
|
+
"documentType": "Dashboard",
|
|
8
|
+
"layout": {
|
|
9
|
+
"page": {
|
|
10
|
+
"format": "Dashboard",
|
|
11
|
+
"orientation": "landscape"
|
|
12
|
+
},
|
|
13
|
+
"widgets": [
|
|
14
|
+
{
|
|
15
|
+
"id": "w_active_users",
|
|
16
|
+
"type": "Indicator",
|
|
17
|
+
"title": "Usuarios Activos (24h)",
|
|
18
|
+
"x": 0,
|
|
19
|
+
"y": 0,
|
|
20
|
+
"w": 6,
|
|
21
|
+
"h": 3,
|
|
22
|
+
"dataSource": "activity",
|
|
23
|
+
"config": {
|
|
24
|
+
"valueField": "active_now"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"id": "w_avg_time",
|
|
29
|
+
"type": "Indicator",
|
|
30
|
+
"title": "Tiempo Promedio Sesión",
|
|
31
|
+
"x": 6,
|
|
32
|
+
"y": 0,
|
|
33
|
+
"w": 6,
|
|
34
|
+
"h": 3,
|
|
35
|
+
"dataSource": "activity",
|
|
36
|
+
"config": {
|
|
37
|
+
"valueField": "avg_session",
|
|
38
|
+
"suffix": " min"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"id": "w_activity_chart",
|
|
43
|
+
"type": "Chart",
|
|
44
|
+
"title": "Carga del Servidor vs Usuarios",
|
|
45
|
+
"x": 0,
|
|
46
|
+
"y": 3,
|
|
47
|
+
"w": 12,
|
|
48
|
+
"h": 6,
|
|
49
|
+
"dataSource": "server_stats",
|
|
50
|
+
"config": {
|
|
51
|
+
"chartType": "line",
|
|
52
|
+
"argumentField": "hora",
|
|
53
|
+
"valueField": "carga",
|
|
54
|
+
"smoothLine": true
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
"dataSources": [
|
|
60
|
+
{
|
|
61
|
+
"alias": "activity",
|
|
62
|
+
"isManual": true,
|
|
63
|
+
"manualData": [
|
|
64
|
+
{ "active_now": 1425, "avg_session": 12.4 }
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"alias": "server_stats",
|
|
69
|
+
"isManual": true,
|
|
70
|
+
"manualData": [
|
|
71
|
+
{ "hora": "00:00", "carga": 15 },
|
|
72
|
+
{ "hora": "04:00", "carga": 8 },
|
|
73
|
+
{ "hora": "08:00", "carga": 45 },
|
|
74
|
+
{ "hora": "12:00", "carga": 85 },
|
|
75
|
+
{ "hora": "16:00", "carga": 70 },
|
|
76
|
+
{ "hora": "20:00", "carga": 40 }
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
{
|
|
2
|
+
"metadata": {
|
|
3
|
+
"name": "Control de Inventario y Almacén",
|
|
4
|
+
"version": "1.0",
|
|
5
|
+
"createdAt": "2026-04-28T10:05:00Z"
|
|
6
|
+
},
|
|
7
|
+
"documentType": "Dashboard",
|
|
8
|
+
"layout": {
|
|
9
|
+
"page": {
|
|
10
|
+
"format": "Dashboard",
|
|
11
|
+
"orientation": "landscape"
|
|
12
|
+
},
|
|
13
|
+
"widgets": [
|
|
14
|
+
{
|
|
15
|
+
"id": "w_stock_value",
|
|
16
|
+
"type": "Indicator",
|
|
17
|
+
"title": "Valor del Inventario",
|
|
18
|
+
"x": 0,
|
|
19
|
+
"y": 0,
|
|
20
|
+
"w": 4,
|
|
21
|
+
"h": 2,
|
|
22
|
+
"dataSource": "inventory_summary",
|
|
23
|
+
"config": {
|
|
24
|
+
"valueField": "total_value",
|
|
25
|
+
"prefix": "$"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"id": "w_low_stock",
|
|
30
|
+
"type": "Indicator",
|
|
31
|
+
"title": "Items con Bajo Stock",
|
|
32
|
+
"x": 4,
|
|
33
|
+
"y": 0,
|
|
34
|
+
"w": 4,
|
|
35
|
+
"h": 2,
|
|
36
|
+
"dataSource": "inventory_summary",
|
|
37
|
+
"config": {
|
|
38
|
+
"valueField": "low_stock_count"
|
|
39
|
+
},
|
|
40
|
+
"style": {
|
|
41
|
+
"color": "#ef4444"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"id": "w_pending_orders",
|
|
46
|
+
"type": "Indicator",
|
|
47
|
+
"title": "Órdenes Pendientes",
|
|
48
|
+
"x": 8,
|
|
49
|
+
"y": 0,
|
|
50
|
+
"w": 4,
|
|
51
|
+
"h": 2,
|
|
52
|
+
"dataSource": "inventory_summary",
|
|
53
|
+
"config": {
|
|
54
|
+
"valueField": "pending_orders"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"id": "w_stock_by_warehouse",
|
|
59
|
+
"type": "Chart",
|
|
60
|
+
"title": "Capacidad por Almacén",
|
|
61
|
+
"x": 0,
|
|
62
|
+
"y": 2,
|
|
63
|
+
"w": 6,
|
|
64
|
+
"h": 5,
|
|
65
|
+
"dataSource": "warehouses",
|
|
66
|
+
"config": {
|
|
67
|
+
"chartType": "bar",
|
|
68
|
+
"argumentField": "nombre",
|
|
69
|
+
"valueField": "ocupacion",
|
|
70
|
+
"horizontal": true
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"id": "w_top_products",
|
|
75
|
+
"type": "Chart",
|
|
76
|
+
"title": "Productos con Mayor Stock",
|
|
77
|
+
"x": 6,
|
|
78
|
+
"y": 2,
|
|
79
|
+
"w": 6,
|
|
80
|
+
"h": 5,
|
|
81
|
+
"dataSource": "products",
|
|
82
|
+
"config": {
|
|
83
|
+
"chartType": "bar",
|
|
84
|
+
"argumentField": "nombre",
|
|
85
|
+
"valueField": "stock"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"id": "w_movement_trend",
|
|
90
|
+
"type": "Chart",
|
|
91
|
+
"title": "Entradas vs Salidas (Semanal)",
|
|
92
|
+
"x": 0,
|
|
93
|
+
"y": 7,
|
|
94
|
+
"w": 12,
|
|
95
|
+
"h": 4,
|
|
96
|
+
"dataSource": "movements",
|
|
97
|
+
"config": {
|
|
98
|
+
"chartType": "line",
|
|
99
|
+
"argumentField": "dia",
|
|
100
|
+
"valueField": "entradas",
|
|
101
|
+
"smoothLine": true
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
]
|
|
105
|
+
},
|
|
106
|
+
"dataSources": [
|
|
107
|
+
{
|
|
108
|
+
"alias": "inventory_summary",
|
|
109
|
+
"isManual": true,
|
|
110
|
+
"manualData": [
|
|
111
|
+
{ "total_value": 1584200, "low_stock_count": 24, "pending_orders": 15 }
|
|
112
|
+
]
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"alias": "warehouses",
|
|
116
|
+
"isManual": true,
|
|
117
|
+
"manualData": [
|
|
118
|
+
{ "nombre": "Almacén Central", "ocupacion": 85 },
|
|
119
|
+
{ "nombre": "Sucursal Norte", "ocupacion": 42 },
|
|
120
|
+
{ "nombre": "Sucursal Sur", "ocupacion": 68 },
|
|
121
|
+
{ "nombre": "Depósito Externo", "ocupacion": 15 }
|
|
122
|
+
]
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"alias": "products",
|
|
126
|
+
"isManual": true,
|
|
127
|
+
"manualData": [
|
|
128
|
+
{ "nombre": "Monitor 24\"", "stock": 450 },
|
|
129
|
+
{ "nombre": "Teclado RGB", "stock": 320 },
|
|
130
|
+
{ "nombre": "Mouse Gamer", "stock": 280 },
|
|
131
|
+
{ "nombre": "Laptop Pro", "stock": 150 },
|
|
132
|
+
{ "nombre": "Silla Ergonómica", "stock": 85 }
|
|
133
|
+
]
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"alias": "movements",
|
|
137
|
+
"isManual": true,
|
|
138
|
+
"manualData": [
|
|
139
|
+
{ "dia": "Lun", "entradas": 120, "salidas": 80 },
|
|
140
|
+
{ "dia": "Mar", "entradas": 90, "salidas": 110 },
|
|
141
|
+
{ "dia": "Mie", "entradas": 150, "salidas": 95 },
|
|
142
|
+
{ "dia": "Jue", "entradas": 80, "salidas": 130 },
|
|
143
|
+
{ "dia": "Vie", "entradas": 200, "salidas": 150 }
|
|
144
|
+
]
|
|
145
|
+
}
|
|
146
|
+
]
|
|
147
|
+
}
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
{
|
|
2
|
+
"metadata": {
|
|
3
|
+
"name": "Dashboard de Ventas Premium",
|
|
4
|
+
"version": "1.0",
|
|
5
|
+
"createdAt": "2026-04-28T10:00:00Z"
|
|
6
|
+
},
|
|
7
|
+
"documentType": "Dashboard",
|
|
8
|
+
"layout": {
|
|
9
|
+
"page": {
|
|
10
|
+
"format": "Dashboard",
|
|
11
|
+
"orientation": "landscape"
|
|
12
|
+
},
|
|
13
|
+
"widgets": [
|
|
14
|
+
{
|
|
15
|
+
"id": "w_total_sales",
|
|
16
|
+
"type": "Indicator",
|
|
17
|
+
"title": "Ingresos Totales",
|
|
18
|
+
"x": 0,
|
|
19
|
+
"y": 0,
|
|
20
|
+
"w": 3,
|
|
21
|
+
"h": 2,
|
|
22
|
+
"dataSource": "metrics",
|
|
23
|
+
"config": {
|
|
24
|
+
"valueField": "total",
|
|
25
|
+
"prefix": "$",
|
|
26
|
+
"suffix": " USD"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"id": "w_customers",
|
|
31
|
+
"type": "Indicator",
|
|
32
|
+
"title": "Nuevos Clientes",
|
|
33
|
+
"x": 3,
|
|
34
|
+
"y": 0,
|
|
35
|
+
"w": 3,
|
|
36
|
+
"h": 2,
|
|
37
|
+
"dataSource": "metrics",
|
|
38
|
+
"config": {
|
|
39
|
+
"valueField": "customers",
|
|
40
|
+
"suffix": " pers."
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"id": "w_conversion",
|
|
45
|
+
"type": "Indicator",
|
|
46
|
+
"title": "Tasa de Conversión",
|
|
47
|
+
"x": 6,
|
|
48
|
+
"y": 0,
|
|
49
|
+
"w": 3,
|
|
50
|
+
"h": 2,
|
|
51
|
+
"dataSource": "metrics",
|
|
52
|
+
"config": {
|
|
53
|
+
"valueField": "conversion",
|
|
54
|
+
"suffix": "%"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"id": "w_satisfaction",
|
|
59
|
+
"type": "Indicator",
|
|
60
|
+
"title": "Satisfacción",
|
|
61
|
+
"x": 9,
|
|
62
|
+
"y": 0,
|
|
63
|
+
"w": 3,
|
|
64
|
+
"h": 2,
|
|
65
|
+
"dataSource": "metrics",
|
|
66
|
+
"config": {
|
|
67
|
+
"valueField": "satisfaction",
|
|
68
|
+
"suffix": "/5"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"id": "w_sales_trend",
|
|
73
|
+
"type": "Chart",
|
|
74
|
+
"title": "Tendencia de Ventas Mensuales",
|
|
75
|
+
"x": 0,
|
|
76
|
+
"y": 2,
|
|
77
|
+
"w": 8,
|
|
78
|
+
"h": 5,
|
|
79
|
+
"dataSource": "sales_history",
|
|
80
|
+
"config": {
|
|
81
|
+
"chartType": "line",
|
|
82
|
+
"argumentField": "mes",
|
|
83
|
+
"valueField": "monto",
|
|
84
|
+
"showPoints": true,
|
|
85
|
+
"smoothLine": true
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"id": "w_category_split",
|
|
90
|
+
"type": "Chart",
|
|
91
|
+
"title": "Ventas por Categoría",
|
|
92
|
+
"x": 8,
|
|
93
|
+
"y": 2,
|
|
94
|
+
"w": 4,
|
|
95
|
+
"h": 5,
|
|
96
|
+
"dataSource": "categories",
|
|
97
|
+
"config": {
|
|
98
|
+
"chartType": "pie",
|
|
99
|
+
"argumentField": "nombre",
|
|
100
|
+
"valueField": "ventas",
|
|
101
|
+
"showLegend": true
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"id": "w_regional_sales",
|
|
106
|
+
"type": "Chart",
|
|
107
|
+
"title": "Ventas por Región",
|
|
108
|
+
"x": 0,
|
|
109
|
+
"y": 7,
|
|
110
|
+
"w": 12,
|
|
111
|
+
"h": 4,
|
|
112
|
+
"dataSource": "regions",
|
|
113
|
+
"config": {
|
|
114
|
+
"chartType": "bar",
|
|
115
|
+
"argumentField": "region",
|
|
116
|
+
"valueField": "total",
|
|
117
|
+
"horizontal": false
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
]
|
|
121
|
+
},
|
|
122
|
+
"dataSources": [
|
|
123
|
+
{
|
|
124
|
+
"alias": "metrics",
|
|
125
|
+
"isManual": true,
|
|
126
|
+
"manualData": [
|
|
127
|
+
{ "total": 245850, "customers": 128, "conversion": 14.5, "satisfaction": 4.8 }
|
|
128
|
+
]
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"alias": "sales_history",
|
|
132
|
+
"isManual": true,
|
|
133
|
+
"manualData": [
|
|
134
|
+
{ "mes": "Enero", "monto": 45000 },
|
|
135
|
+
{ "mes": "Febrero", "monto": 38000 },
|
|
136
|
+
{ "mes": "Marzo", "monto": 52000 },
|
|
137
|
+
{ "mes": "Abril", "monto": 61000 },
|
|
138
|
+
{ "mes": "Mayo", "monto": 49000 },
|
|
139
|
+
{ "mes": "Junio", "monto": 72000 }
|
|
140
|
+
]
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"alias": "categories",
|
|
144
|
+
"isManual": true,
|
|
145
|
+
"manualData": [
|
|
146
|
+
{ "nombre": "Electrónica", "ventas": 120000 },
|
|
147
|
+
{ "nombre": "Hogar", "ventas": 85000 },
|
|
148
|
+
{ "nombre": "Moda", "ventas": 40850 }
|
|
149
|
+
]
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"alias": "regions",
|
|
153
|
+
"isManual": true,
|
|
154
|
+
"manualData": [
|
|
155
|
+
{ "region": "Norte", "total": 85000 },
|
|
156
|
+
{ "region": "Sur", "total": 62000 },
|
|
157
|
+
{ "region": "Este", "total": 45000 },
|
|
158
|
+
{ "region": "Oeste", "total": 53850 }
|
|
159
|
+
]
|
|
160
|
+
}
|
|
161
|
+
]
|
|
162
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nexabase-report",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
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",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"preview": "vite preview"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@nexabase/sdk": "^2.
|
|
63
|
+
"@nexabase/sdk": "^2.17.6",
|
|
64
64
|
"@types/jsbarcode": "^3.11.4",
|
|
65
65
|
"axios": "1.7.7",
|
|
66
66
|
"docx": "^9.6.1",
|
|
@@ -85,4 +85,4 @@
|
|
|
85
85
|
"vite-plugin-dts": "^4.5.4",
|
|
86
86
|
"vue-tsc": "^3.2.6"
|
|
87
87
|
}
|
|
88
|
-
}
|
|
88
|
+
}
|