nexabase-report 0.28.12 → 0.28.14
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/NEXAREPORT.md +3 -3
- package/dist/{html2pdf-Cr1rvYJM.js → html2pdf-Bamad6w4.js} +2 -2
- package/dist/{index-Kjjqb83-.js → index-BNlU36ry.js} +7 -7
- package/dist/{index.es-CPNrd3WQ.js → index.es-iwEQSNeD.js} +2 -2
- package/dist/{jspdf.es.min-B-7x0Lwt.js → jspdf.es.min-D_12pTTG.js} +1 -1
- package/dist/nexabase-report.es.js +1 -1
- package/dist/nexabase-report.umd.js +2 -2
- package/dist/{pptxgen.es-BBBfHHX-.js → pptxgen.es-Dr-vTzc4.js} +1 -1
- package/package.json +1 -1
package/NEXAREPORT.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!-- nexabase-report@0.28.
|
|
1
|
+
<!-- nexabase-report@0.28.14 — generado por scripts/gen-ai-context.mjs, no editar a mano -->
|
|
2
2
|
# NexaReport — referencia para agentes de IA
|
|
3
3
|
|
|
4
4
|
> Este archivo se genera desde los tipos TypeScript reales del paquete (`src/lib/types/report.ts`
|
|
@@ -281,10 +281,10 @@ El schema formal completo (todas las interfaces, no solo bandas/elementos) está
|
|
|
281
281
|
`nexabase-report/schema`, así que es accesible sin instalar nada vía:
|
|
282
282
|
|
|
283
283
|
```
|
|
284
|
-
https://unpkg.com/nexabase-report@0.28.
|
|
284
|
+
https://unpkg.com/nexabase-report@0.28.14/schema/nexareport.schema.json
|
|
285
285
|
```
|
|
286
286
|
|
|
287
|
-
(cambia `@0.28.
|
|
287
|
+
(cambia `@0.28.14` por `@latest` para la versión más reciente). Valida el JSON generado
|
|
288
288
|
contra ese schema antes de darlo por bueno — evita que un campo inventado llegue al usuario.
|
|
289
289
|
|
|
290
290
|
Más ejemplos reales (subreportes, crosstab, master-detail, códigos de barras) en `examples/*.json`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as Nl, c as ut, d as Vl } from "./index-
|
|
2
|
-
import { j as Xl } from "./jspdf.es.min-
|
|
1
|
+
import { g as Nl, c as ut, d as Vl } from "./index-BNlU36ry.js";
|
|
2
|
+
import { j as Xl } from "./jspdf.es.min-D_12pTTG.js";
|
|
3
3
|
function Jl(Pe, br) {
|
|
4
4
|
for (var fe = 0; fe < br.length; fe++) {
|
|
5
5
|
const HA = br[fe];
|
|
@@ -93875,7 +93875,7 @@ function PWe(t) {
|
|
|
93875
93875
|
let A = null, p = null;
|
|
93876
93876
|
try {
|
|
93877
93877
|
await new Promise((j) => setTimeout(j, 50)), typeof document < "u" && ((g = document.fonts) != null && g.ready) && await document.fonts.ready, A = await jB(t.reportPaperRef.value, t.apiBaseUrl), p = await VB(t.reportPaperRef.value);
|
|
93878
|
-
const { default: y } = await import("./html2pdf-
|
|
93878
|
+
const { default: y } = await import("./html2pdf-Bamad6w4.js").then((j) => j.h), E = t.reportDef.value, B = E.layout.page, I = (((v = E.metadata) == null ? void 0 : v.name) || "reporte") + ".pdf", x = t.reportPaperRef.value.querySelector(".report-page"), S = (x == null ? void 0 : x.offsetWidth) || t.reportPaperRef.value.offsetWidth || void 0, M = (x == null ? void 0 : x.offsetHeight) || void 0, T = Math.min(3, Math.max(2, (typeof window < "u" ? window.devicePixelRatio : 2) || 2)), Q = (x == null ? void 0 : x.offsetWidth) || 794, C = (x == null ? void 0 : x.offsetHeight) || 1123, F = Math.max(1, t.pagination.value.totalPages), U = await y().set({
|
|
93879
93879
|
filename: I,
|
|
93880
93880
|
margin: 0,
|
|
93881
93881
|
image: { type: "jpeg", quality: 0.98 },
|
|
@@ -93906,7 +93906,7 @@ function PWe(t) {
|
|
|
93906
93906
|
}
|
|
93907
93907
|
async function a() {
|
|
93908
93908
|
var L;
|
|
93909
|
-
const h = t.reportDef.value, { jsPDF: A } = await import("./jspdf.es.min-
|
|
93909
|
+
const h = t.reportDef.value, { jsPDF: A } = await import("./jspdf.es.min-D_12pTTG.js").then((W) => W.j), p = h.layout.page, g = p.orientation === "landscape";
|
|
93910
93910
|
let v = 210, m = 297;
|
|
93911
93911
|
if (p.format === "Letter" ? (v = 215.9, m = 279.4) : p.format === "Ticket" && (v = 80, m = 200), g) {
|
|
93912
93912
|
const W = v;
|
|
@@ -94263,7 +94263,7 @@ function PWe(t) {
|
|
|
94263
94263
|
t.isExportingPdf.value = !0;
|
|
94264
94264
|
try {
|
|
94265
94265
|
await new Promise((U) => setTimeout(U, 50)), typeof document < "u" && ((A = document.fonts) != null && A.ready) && await document.fonts.ready;
|
|
94266
|
-
const v = await jB(t.reportPaperRef.value, t.apiBaseUrl), m = await VB(t.reportPaperRef.value), { default: y } = await import("./html2pdf-
|
|
94266
|
+
const v = await jB(t.reportPaperRef.value, t.apiBaseUrl), m = await VB(t.reportPaperRef.value), { default: y } = await import("./html2pdf-Bamad6w4.js").then((U) => U.h), B = t.reportDef.value.layout.page, I = t.reportPaperRef.value.querySelector(".report-page"), x = (I == null ? void 0 : I.offsetWidth) || t.reportPaperRef.value.offsetWidth || void 0, S = (I == null ? void 0 : I.offsetHeight) || void 0, M = Math.min(3, Math.max(2, (typeof window < "u" ? window.devicePixelRatio : 2) || 2)), T = (I == null ? void 0 : I.offsetWidth) || 794, Q = (I == null ? void 0 : I.offsetHeight) || 1123, C = Math.max(1, t.pagination.value.totalPages), b = await y().set({
|
|
94267
94267
|
filename: "report.pdf",
|
|
94268
94268
|
margin: 0,
|
|
94269
94269
|
image: { type: "jpeg", quality: 0.98 },
|
|
@@ -94447,7 +94447,7 @@ ${E.outerHTML}
|
|
|
94447
94447
|
t.isExportingPdf.value = !0;
|
|
94448
94448
|
try {
|
|
94449
94449
|
await new Promise((C) => setTimeout(C, 50)), typeof document < "u" && ((g = document.fonts) != null && g.ready) && await document.fonts.ready;
|
|
94450
|
-
const m = await jB(A, t.apiBaseUrl), y = await VB(A), { default: E } = await import("./html2pdf-
|
|
94450
|
+
const m = await jB(A, t.apiBaseUrl), y = await VB(A), { default: E } = await import("./html2pdf-Bamad6w4.js").then((C) => C.h), { default: B } = await import("./pptxgen.es-Dr-vTzc4.js"), I = Array.from(A.querySelectorAll(".report-page"));
|
|
94451
94451
|
if (I.length === 0) {
|
|
94452
94452
|
Qi("PPTX export — no rendered pages were found", null);
|
|
94453
94453
|
return;
|
|
@@ -94818,7 +94818,7 @@ const VWe = {
|
|
|
94818
94818
|
}
|
|
94819
94819
|
return !!de;
|
|
94820
94820
|
}
|
|
94821
|
-
const o = at(() => a(n.minimal)), s = at(() => a(n.fluid)), l = at(() => !o.value || a(n.showThumbs)), c = at(() => !o.value || a(n.showToolbar)), u = We(!1), f = at(() => "0.28.
|
|
94821
|
+
const o = at(() => a(n.minimal)), s = at(() => a(n.fluid)), l = at(() => !o.value || a(n.showThumbs)), c = at(() => !o.value || a(n.showToolbar)), u = We(!1), f = at(() => "0.28.14"), d = at(() => "2026-09-03T14:24:47.976Z"), h = at(() => A.value), A = We(n.locale || "es"), p = We(!a(n.minimal)), g = We("pages"), v = We(""), m = We(!1), y = at(() => {
|
|
94822
94822
|
const de = v.value.toLowerCase().trim();
|
|
94823
94823
|
return de ? we.value.filter((ve) => ve.title.toLowerCase().includes(de)) : we.value;
|
|
94824
94824
|
});
|
|
@@ -94880,7 +94880,7 @@ const VWe = {
|
|
|
94880
94880
|
let he = null;
|
|
94881
94881
|
async function Fe() {
|
|
94882
94882
|
if (he) return he;
|
|
94883
|
-
const de = await import("./html2pdf-
|
|
94883
|
+
const de = await import("./html2pdf-Bamad6w4.js").then((ve) => ve.h);
|
|
94884
94884
|
return he = (de == null ? void 0 : de.default) || de, he;
|
|
94885
94885
|
}
|
|
94886
94886
|
async function Ue(de) {
|
|
@@ -126204,7 +126204,7 @@ const MAt = { class: "nd-rt-toolbar" }, SAt = ["title"], bAt = ["title"], CAt =
|
|
|
126204
126204
|
function vh(te, D) {
|
|
126205
126205
|
Bc(te, D, k, R);
|
|
126206
126206
|
}
|
|
126207
|
-
const Hs = We(!1), Es = We(!1), Ot = We(!1), Ie = We("home"), rt = We(null), It = We(""), ur = at(() => "0.28.
|
|
126207
|
+
const Hs = We(!1), Es = We(!1), Ot = We(!1), Ie = We("home"), rt = We(null), It = We(""), ur = at(() => "0.28.14"), Ir = at(() => "2026-09-03T14:24:47.976Z"), Yr = at(() => ({
|
|
126208
126208
|
home: d("tab_file"),
|
|
126209
126209
|
new: d("new"),
|
|
126210
126210
|
open: d("open"),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as Va, d as il } from "./index-
|
|
2
|
-
import { _ as La } from "./jspdf.es.min-
|
|
1
|
+
import { c as Va, d as il } from "./index-BNlU36ry.js";
|
|
2
|
+
import { _ as La } from "./jspdf.es.min-D_12pTTG.js";
|
|
3
3
|
var fn = {}, cn = {}, cr, vn;
|
|
4
4
|
function Q() {
|
|
5
5
|
if (vn) return cr;
|
|
@@ -7303,7 +7303,7 @@ function wu(n) {
|
|
|
7303
7303
|
*/
|
|
7304
7304
|
(function(n) {
|
|
7305
7305
|
function e() {
|
|
7306
|
-
return (Ht.canvg ? Promise.resolve(Ht.canvg) : import("./index.es-
|
|
7306
|
+
return (Ht.canvg ? Promise.resolve(Ht.canvg) : import("./index.es-iwEQSNeD.js")).catch((function(r) {
|
|
7307
7307
|
return Promise.reject(new Error("Could not load canvg: " + r));
|
|
7308
7308
|
})).then((function(r) {
|
|
7309
7309
|
return r.default ? r.default : r;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as s, N as r, a as t, S as E, b as m, i, r as l, e as o, t as p } from "./index-
|
|
1
|
+
import { D as s, N as r, a as t, S as E, b as m, i, r as l, e as o, t as p } from "./index-BNlU36ry.js";
|
|
2
2
|
export {
|
|
3
3
|
s as DEFAULT_THEME,
|
|
4
4
|
r as NexaDesignerElement,
|