nexabase-report 0.5.13 → 0.5.15

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.
@@ -0,0 +1,463 @@
1
+ {
2
+ "metadata": {
3
+ "version": "1.0",
4
+ "name": "Factura Estándar (Nueva)",
5
+ "description": "Factura comercial con campos de cliente y detalle",
6
+ "author": "Antigravity",
7
+ "createdAt": "2026-07-11T00:00:00.000Z"
8
+ },
9
+ "layout": {
10
+ "page": {
11
+ "format": "A4",
12
+ "orientation": "portrait",
13
+ "margins": {
14
+ "top": 25,
15
+ "right": 25,
16
+ "bottom": 25,
17
+ "left": 25
18
+ }
19
+ },
20
+ "bands": [
21
+ {
22
+ "id": "band_invoice_header",
23
+ "type": "GroupHeader",
24
+ "height": 220,
25
+ "dataSource": "main",
26
+ "groupExpression": "folio",
27
+ "elements": [
28
+ {
29
+ "id": "el_logo_rect",
30
+ "type": "Rectangle",
31
+ "x": 30,
32
+ "y": 10,
33
+ "width": 180,
34
+ "height": 60,
35
+ "shapeType": "Rectangle",
36
+ "options": {
37
+ "lineColor": "#3b82f6",
38
+ "strokeWidth": 2
39
+ }
40
+ },
41
+ {
42
+ "id": "el_company",
43
+ "type": "Text",
44
+ "x": 40,
45
+ "y": 20,
46
+ "width": 160,
47
+ "height": 20,
48
+ "content": "MI EMPRESA S.A.",
49
+ "style": {
50
+ "fontSize": "14px",
51
+ "fontWeight": "bold",
52
+ "color": "#3b82f6"
53
+ }
54
+ },
55
+ {
56
+ "id": "el_invoice_title",
57
+ "type": "Text",
58
+ "x": 400,
59
+ "y": 15,
60
+ "width": 300,
61
+ "height": 30,
62
+ "content": "FACTURA ELECTRÓNICA",
63
+ "style": {
64
+ "fontSize": "18px",
65
+ "fontWeight": "bold",
66
+ "color": "#1e293b",
67
+ "textAlign": "right"
68
+ }
69
+ },
70
+ {
71
+ "id": "el_invoice_num",
72
+ "type": "Text",
73
+ "x": 400,
74
+ "y": 50,
75
+ "width": 300,
76
+ "height": 16,
77
+ "content": "Nº {{folio}}",
78
+ "style": {
79
+ "fontSize": "12px",
80
+ "color": "#64748b",
81
+ "textAlign": "right"
82
+ }
83
+ },
84
+ {
85
+ "id": "el_invoice_date",
86
+ "type": "Text",
87
+ "x": 400,
88
+ "y": 68,
89
+ "width": 300,
90
+ "height": 16,
91
+ "content": "Fecha: {{fecha_emision}}",
92
+ "style": {
93
+ "fontSize": "11px",
94
+ "color": "#64748b",
95
+ "textAlign": "right"
96
+ }
97
+ },
98
+ {
99
+ "id": "el_client_label",
100
+ "type": "Text",
101
+ "x": 30,
102
+ "y": 90,
103
+ "width": 100,
104
+ "height": 16,
105
+ "content": "Cliente:",
106
+ "style": {
107
+ "fontSize": "10px",
108
+ "fontWeight": "bold",
109
+ "color": "#64748b"
110
+ }
111
+ },
112
+ {
113
+ "id": "el_client_name",
114
+ "type": "Text",
115
+ "x": 130,
116
+ "y": 90,
117
+ "width": 350,
118
+ "height": 16,
119
+ "content": "{{cliente_nombre}}",
120
+ "style": {
121
+ "fontSize": "12px",
122
+ "color": "#1e293b",
123
+ "fontWeight": "bold"
124
+ }
125
+ },
126
+ {
127
+ "id": "el_client_rut",
128
+ "type": "Text",
129
+ "x": 130,
130
+ "y": 108,
131
+ "width": 200,
132
+ "height": 14,
133
+ "content": "RUT: {{cliente_rut}}",
134
+ "style": {
135
+ "fontSize": "10px",
136
+ "color": "#64748b"
137
+ }
138
+ },
139
+ {
140
+ "id": "el_client_addr",
141
+ "type": "Text",
142
+ "x": 130,
143
+ "y": 124,
144
+ "width": 350,
145
+ "height": 14,
146
+ "content": "{{cliente_direccion}}",
147
+ "style": {
148
+ "fontSize": "10px",
149
+ "color": "#64748b"
150
+ }
151
+ },
152
+ {
153
+ "id": "el_barcode",
154
+ "type": "Barcode",
155
+ "x": 550,
156
+ "y": 95,
157
+ "width": 180,
158
+ "height": 50,
159
+ "binding": "folio",
160
+ "options": {
161
+ "barcodeFormat": "CODE128",
162
+ "displayValue": true
163
+ }
164
+ },
165
+ {
166
+ "id": "el_header_line",
167
+ "type": "Line",
168
+ "x": 30,
169
+ "y": 185,
170
+ "width": 700,
171
+ "height": 2,
172
+ "shapeType": "Line",
173
+ "options": {
174
+ "lineColor": "#3b82f6",
175
+ "strokeWidth": 2
176
+ }
177
+ },
178
+ {
179
+ "id": "lbl_cod",
180
+ "type": "Text",
181
+ "x": 30,
182
+ "y": 195,
183
+ "width": 50,
184
+ "height": 16,
185
+ "content": "Cód",
186
+ "style": {
187
+ "fontSize": "11px",
188
+ "fontWeight": "bold",
189
+ "color": "#1e293b"
190
+ }
191
+ },
192
+ {
193
+ "id": "lbl_desc",
194
+ "type": "Text",
195
+ "x": 90,
196
+ "y": 195,
197
+ "width": 300,
198
+ "height": 16,
199
+ "content": "Descripción",
200
+ "style": {
201
+ "fontSize": "11px",
202
+ "fontWeight": "bold",
203
+ "color": "#1e293b"
204
+ }
205
+ },
206
+ {
207
+ "id": "lbl_cant",
208
+ "type": "Text",
209
+ "x": 400,
210
+ "y": 195,
211
+ "width": 60,
212
+ "height": 16,
213
+ "content": "Cant",
214
+ "style": {
215
+ "fontSize": "11px",
216
+ "fontWeight": "bold",
217
+ "color": "#1e293b",
218
+ "textAlign": "right"
219
+ }
220
+ },
221
+ {
222
+ "id": "lbl_precio",
223
+ "type": "Text",
224
+ "x": 480,
225
+ "y": 195,
226
+ "width": 100,
227
+ "height": 16,
228
+ "content": "Precio U.",
229
+ "style": {
230
+ "fontSize": "11px",
231
+ "fontWeight": "bold",
232
+ "color": "#1e293b",
233
+ "textAlign": "right"
234
+ }
235
+ },
236
+ {
237
+ "id": "lbl_total",
238
+ "type": "Text",
239
+ "x": 600,
240
+ "y": 195,
241
+ "width": 130,
242
+ "height": 16,
243
+ "content": "Total",
244
+ "style": {
245
+ "fontSize": "11px",
246
+ "fontWeight": "bold",
247
+ "color": "#1e293b",
248
+ "textAlign": "right"
249
+ }
250
+ },
251
+ {
252
+ "id": "el_header_line_2",
253
+ "type": "Line",
254
+ "x": 30,
255
+ "y": 215,
256
+ "width": 700,
257
+ "height": 2,
258
+ "shapeType": "Line",
259
+ "options": {
260
+ "lineColor": "#e2e8f0",
261
+ "strokeWidth": 1
262
+ }
263
+ }
264
+ ]
265
+ },
266
+ {
267
+ "id": "band_items",
268
+ "type": "DataBand",
269
+ "height": 30,
270
+ "dataSource": "main",
271
+ "elements": [
272
+ {
273
+ "id": "txt_cod",
274
+ "type": "Text",
275
+ "x": 30,
276
+ "y": 5,
277
+ "width": 50,
278
+ "height": 16,
279
+ "content": "{{codigo}}",
280
+ "style": {
281
+ "fontSize": "11px",
282
+ "color": "#475569"
283
+ }
284
+ },
285
+ {
286
+ "id": "txt_desc",
287
+ "type": "Text",
288
+ "x": 90,
289
+ "y": 5,
290
+ "width": 300,
291
+ "height": 16,
292
+ "content": "{{descripcion}}",
293
+ "style": {
294
+ "fontSize": "11px",
295
+ "color": "#475569"
296
+ }
297
+ },
298
+ {
299
+ "id": "txt_cant",
300
+ "type": "Text",
301
+ "x": 400,
302
+ "y": 5,
303
+ "width": 60,
304
+ "height": 16,
305
+ "content": "{{cantidad}}",
306
+ "style": {
307
+ "fontSize": "11px",
308
+ "color": "#475569",
309
+ "textAlign": "right"
310
+ }
311
+ },
312
+ {
313
+ "id": "txt_precio",
314
+ "type": "Text",
315
+ "x": 480,
316
+ "y": 5,
317
+ "width": 100,
318
+ "height": 16,
319
+ "content": "$ {[precio_unitario]}",
320
+ "style": {
321
+ "fontSize": "11px",
322
+ "color": "#475569",
323
+ "textAlign": "right"
324
+ }
325
+ },
326
+ {
327
+ "id": "txt_total",
328
+ "type": "Text",
329
+ "x": 600,
330
+ "y": 5,
331
+ "width": 130,
332
+ "height": 16,
333
+ "content": "$ {[total_linea]}",
334
+ "style": {
335
+ "fontSize": "11px",
336
+ "color": "#475569",
337
+ "textAlign": "right"
338
+ }
339
+ },
340
+ {
341
+ "id": "el_row_line",
342
+ "type": "Line",
343
+ "x": 30,
344
+ "y": 25,
345
+ "width": 700,
346
+ "height": 1,
347
+ "shapeType": "Line",
348
+ "options": {
349
+ "lineColor": "#f1f5f9",
350
+ "strokeWidth": 1
351
+ }
352
+ }
353
+ ]
354
+ },
355
+ {
356
+ "id": "band_totals",
357
+ "type": "GroupFooter",
358
+ "height": 140,
359
+ "dataSource": "main",
360
+ "elements": [
361
+ {
362
+ "id": "el_sep_totals",
363
+ "type": "Line",
364
+ "x": 400,
365
+ "y": 10,
366
+ "width": 330,
367
+ "height": 1,
368
+ "shapeType": "Line",
369
+ "options": {
370
+ "lineColor": "#94a3b8",
371
+ "strokeWidth": 1
372
+ }
373
+ },
374
+ {
375
+ "id": "el_total_final_label",
376
+ "type": "Text",
377
+ "x": 410,
378
+ "y": 40,
379
+ "width": 150,
380
+ "height": 24,
381
+ "content": "TOTAL:",
382
+ "style": {
383
+ "fontSize": "16px",
384
+ "fontWeight": "bold",
385
+ "color": "#1e293b",
386
+ "textAlign": "right"
387
+ }
388
+ },
389
+ {
390
+ "id": "el_total_final_val",
391
+ "type": "Text",
392
+ "x": 580,
393
+ "y": 40,
394
+ "width": 150,
395
+ "height": 24,
396
+ "content": "$ {[sum(total_linea)]}",
397
+ "style": {
398
+ "fontSize": "16px",
399
+ "fontWeight": "bold",
400
+ "color": "#1e293b",
401
+ "textAlign": "right"
402
+ }
403
+ }
404
+ ]
405
+ },
406
+ {
407
+ "id": "band_page_footer",
408
+ "type": "PageFooter",
409
+ "height": 30,
410
+ "elements": [
411
+ {
412
+ "id": "el_footer_line",
413
+ "type": "Line",
414
+ "x": 30,
415
+ "y": 5,
416
+ "width": 700,
417
+ "height": 1,
418
+ "shapeType": "Line",
419
+ "options": {
420
+ "lineColor": "#cbd5e1",
421
+ "strokeWidth": 1
422
+ }
423
+ },
424
+ {
425
+ "id": "el_footer_text",
426
+ "type": "Text",
427
+ "x": 30,
428
+ "y": 12,
429
+ "width": 300,
430
+ "height": 14,
431
+ "content": "Generado por Nexabase Report",
432
+ "style": {
433
+ "fontSize": "10px",
434
+ "color": "#94a3b8"
435
+ }
436
+ },
437
+ {
438
+ "id": "el_page_number",
439
+ "type": "Text",
440
+ "x": 580,
441
+ "y": 12,
442
+ "width": 150,
443
+ "height": 14,
444
+ "content": "Página {[Page]} de {[TotalPages]}",
445
+ "style": {
446
+ "fontSize": "10px",
447
+ "color": "#94a3b8",
448
+ "textAlign": "right"
449
+ }
450
+ }
451
+ ]
452
+ }
453
+ ]
454
+ },
455
+ "dataSources": [
456
+ {
457
+ "id": "ds_main",
458
+ "collection": "facturas",
459
+ "alias": "main",
460
+ "enabled": true
461
+ }
462
+ ]
463
+ }