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 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 de parámetros |
186
- | `minimal` | `boolean \| string` | `false` | Oculta la toolbar de exportación |
187
- | `skipParamsDialog` | `boolean` | `false` | Salta el diálogo de parámetros |
188
- | `showToolbar` | `boolean \| string` | `true` | Muestra/oculta toolbar |
189
- | `showThumbs` | `boolean \| string` | `true` | Muestra/oculta panel de miniaturas |
190
- | `currentPage` | `number` | `1` | Página actual (control externo) |
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
- await viewer.exportPdf();
198
- await viewer.exportExcel();
199
- await viewer.exportWord();
200
- await viewer.exportCsv();
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
- viewer.goToPage(3);
203
- viewer.updateData({ main: [...] });
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,4 +1,4 @@
1
- import { c as MQ } from "./index-dmi6__Nc.js";
1
+ import { c as MQ } from "./index-B4Ct1aKv.js";
2
2
  var nt = { exports: {} };
3
3
  /*!
4
4
  * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
@@ -1,5 +1,5 @@
1
- import { a as c } from "./index-dmi6__Nc.js";
2
- import { r as f } from "./html2canvas-D50ZZ6bl.js";
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-dmi6__Nc.js";
2
- import { j as Ge } from "./jspdf.es.min-N6hWbNim.js";
3
- import { r as Be } from "./html2canvas-D50ZZ6bl.js";
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];