nexabase-report 0.1.3 → 0.1.5
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 +18 -13
- package/dist/{html2canvas-D50ZZ6bl.js → html2canvas-CtRpZAL9.js} +1 -1
- package/dist/{html2canvas-i0L2rKdt.js → html2canvas-fycKG4c0.js} +2 -2
- package/dist/{html2pdf-D668c5FJ.js → html2pdf-DAfIkGR7.js} +3 -3
- package/dist/{index-dmi6__Nc.js → index-B4Ct1aKv.js} +41028 -35770
- package/dist/{index.es-DrkNTh0H.js → index.es-BzbFENOR.js} +2 -2
- package/dist/{jspdf.es.min-N6hWbNim.js → jspdf.es.min-DGo7zNJF.js} +2 -2
- package/dist/nexabase-report.es.js +4 -5
- package/dist/nexabase-report.umd.js +258 -231
- package/docs/VIEWER_API.md +46 -37
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -181,26 +181,31 @@ export class AppComponent implements AfterViewInit {
|
|
|
181
181
|
| Prop | Tipo | Default | Descripción |
|
|
182
182
|
|------|------|---------|-------------|
|
|
183
183
|
| `definition` | `string \| object` | — | Definición del reporte (JSON o objeto) |
|
|
184
|
-
| `data` | `string \| any[] \| Record<string, any[]>` | — | Datos del reporte |
|
|
185
|
-
| `parameters` | `Record<string, any>` | `{}` | Valores
|
|
186
|
-
| `minimal` | `boolean \| string` | `false` |
|
|
187
|
-
| `
|
|
188
|
-
| `
|
|
189
|
-
| `
|
|
190
|
-
| `currentPage` | `number` | `1` | Página
|
|
184
|
+
| `data` | `string \| any[] \| Record<string, any[]>` | — | Datos del reporte (Array o Objeto con alias) |
|
|
185
|
+
| `parameters` | `Record<string, any>` | `{}` | Valores para parámetros del reporte |
|
|
186
|
+
| `minimal` | `boolean \| string` | `false` | Modo compacto: oculta toolbar y miniaturas |
|
|
187
|
+
| `showToolbar` | `boolean \| string` | `true` | Muestra/oculta barra de herramientas superior |
|
|
188
|
+
| `showThumbs` | `boolean \| string` | `true` | Muestra/oculta panel lateral de miniaturas |
|
|
189
|
+
| `skipParamsDialog` | `boolean` | `false` | Salta el diálogo inicial de parámetros |
|
|
190
|
+
| `currentPage` | `number` | `1` | Página inicial a mostrar |
|
|
191
|
+
| `apiBaseUrl` | `string` | — | URL base de NexaBase para carga dinámica |
|
|
192
|
+
| `apiKey` | `string` | — | API Key para autenticación de datos |
|
|
191
193
|
|
|
192
194
|
### Métodos (vía ref DOM)
|
|
193
195
|
|
|
194
196
|
```ts
|
|
195
197
|
const viewer = document.querySelector('nexa-viewer');
|
|
196
198
|
|
|
197
|
-
|
|
198
|
-
await viewer.
|
|
199
|
-
await viewer.
|
|
200
|
-
await viewer.
|
|
199
|
+
// Exportación
|
|
200
|
+
await viewer.exportPdf(); // PDF vectorial
|
|
201
|
+
await viewer.exportPdfWithBookmarks(); // PDF con panel de marcadores
|
|
202
|
+
await viewer.exportExcel(); // Excel (.xlsx)
|
|
203
|
+
await viewer.exportWord(); // Word (.docx)
|
|
204
|
+
await viewer.exportCsv(); // CSV (.csv)
|
|
201
205
|
|
|
202
|
-
|
|
203
|
-
viewer.
|
|
206
|
+
// Navegación y Datos
|
|
207
|
+
viewer.goToPage(3); // Cambiar a página específica
|
|
208
|
+
viewer.updateData(data); // Actualizar registros dinámicamente
|
|
204
209
|
```
|
|
205
210
|
|
|
206
211
|
### Eventos
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as c } from "./index-
|
|
2
|
-
import { r as f } from "./html2canvas-
|
|
1
|
+
import { a as c } from "./index-B4Ct1aKv.js";
|
|
2
|
+
import { r as f } from "./html2canvas-CtRpZAL9.js";
|
|
3
3
|
function l(r, n) {
|
|
4
4
|
for (var o = 0; o < n.length; o++) {
|
|
5
5
|
const e = n[o];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as De, a as Ke, c as Te } from "./index-
|
|
2
|
-
import { j as Ge } from "./jspdf.es.min-
|
|
3
|
-
import { r as Be } from "./html2canvas-
|
|
1
|
+
import { g as De, a as Ke, c as Te } from "./index-B4Ct1aKv.js";
|
|
2
|
+
import { j as Ge } from "./jspdf.es.min-DGo7zNJF.js";
|
|
3
|
+
import { r as Be } from "./html2canvas-CtRpZAL9.js";
|
|
4
4
|
function Ue(ge, we) {
|
|
5
5
|
for (var me = 0; me < we.length; me++) {
|
|
6
6
|
const ce = we[me];
|