nexabase-report 0.28.6 → 0.28.7
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-CurI_6V4.js → html2pdf-Cqwtmhg2.js} +2 -2
- package/dist/{index-BRzMVWJD.js → index-CbeX1DRC.js} +8 -8
- package/dist/{index.es-CHPXQFqo.js → index.es-hcXQwKwC.js} +2 -2
- package/dist/{jspdf.es.min-jqd67Mq5.js → jspdf.es.min-CRu7jxNm.js} +1 -1
- package/dist/nexabase-report.es.js +1 -1
- package/dist/nexabase-report.umd.js +3 -3
- package/dist/{pptxgen.es-BEURDTsA.js → pptxgen.es-DgWoEfAr.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.7 — 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.7/schema/nexareport.schema.json
|
|
285
285
|
```
|
|
286
286
|
|
|
287
|
-
(cambia `@0.28.
|
|
287
|
+
(cambia `@0.28.7` 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-CbeX1DRC.js";
|
|
2
|
+
import { j as Xl } from "./jspdf.es.min-CRu7jxNm.js";
|
|
3
3
|
function Jl(Pe, br) {
|
|
4
4
|
for (var fe = 0; fe < br.length; fe++) {
|
|
5
5
|
const HA = br[fe];
|
|
@@ -93609,7 +93609,7 @@ function kWe(t) {
|
|
|
93609
93609
|
let A = null, p = null;
|
|
93610
93610
|
try {
|
|
93611
93611
|
await new Promise((V) => setTimeout(V, 50)), typeof document < "u" && ((g = document.fonts) != null && g.ready) && await document.fonts.ready, A = await JB(t.reportPaperRef.value, t.apiBaseUrl), p = await WB(t.reportPaperRef.value);
|
|
93612
|
-
const { default: y } = await import("./html2pdf-
|
|
93612
|
+
const { default: y } = await import("./html2pdf-Cqwtmhg2.js").then((V) => V.h), E = t.reportDef.value, w = E.layout.page, I = (((v = E.metadata) == null ? void 0 : v.name) || "reporte") + ".pdf", x = t.reportPaperRef.value.querySelector(".report-page"), b = (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, R = Math.max(1, t.pagination.value.totalPages), U = await y().set({
|
|
93613
93613
|
filename: I,
|
|
93614
93614
|
margin: 0,
|
|
93615
93615
|
image: { type: "jpeg", quality: 0.98 },
|
|
@@ -93640,7 +93640,7 @@ function kWe(t) {
|
|
|
93640
93640
|
}
|
|
93641
93641
|
async function a() {
|
|
93642
93642
|
var L;
|
|
93643
|
-
const h = t.reportDef.value, { jsPDF: A } = await import("./jspdf.es.min-
|
|
93643
|
+
const h = t.reportDef.value, { jsPDF: A } = await import("./jspdf.es.min-CRu7jxNm.js").then((W) => W.j), p = h.layout.page, g = p.orientation === "landscape";
|
|
93644
93644
|
let v = 210, m = 297;
|
|
93645
93645
|
if (p.format === "Letter" ? (v = 215.9, m = 279.4) : p.format === "Ticket" && (v = 80, m = 200), g) {
|
|
93646
93646
|
const W = v;
|
|
@@ -93997,7 +93997,7 @@ function kWe(t) {
|
|
|
93997
93997
|
t.isExportingPdf.value = !0;
|
|
93998
93998
|
try {
|
|
93999
93999
|
await new Promise((U) => setTimeout(U, 50)), typeof document < "u" && ((A = document.fonts) != null && A.ready) && await document.fonts.ready;
|
|
94000
|
-
const v = await JB(t.reportPaperRef.value, t.apiBaseUrl), m = await WB(t.reportPaperRef.value), { default: y } = await import("./html2pdf-
|
|
94000
|
+
const v = await JB(t.reportPaperRef.value, t.apiBaseUrl), m = await WB(t.reportPaperRef.value), { default: y } = await import("./html2pdf-Cqwtmhg2.js").then((U) => U.h), w = 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, b = (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), S = await y().set({
|
|
94001
94001
|
filename: "report.pdf",
|
|
94002
94002
|
margin: 0,
|
|
94003
94003
|
image: { type: "jpeg", quality: 0.98 },
|
|
@@ -94181,7 +94181,7 @@ ${E.outerHTML}
|
|
|
94181
94181
|
t.isExportingPdf.value = !0;
|
|
94182
94182
|
try {
|
|
94183
94183
|
await new Promise((C) => setTimeout(C, 50)), typeof document < "u" && ((g = document.fonts) != null && g.ready) && await document.fonts.ready;
|
|
94184
|
-
const m = await JB(A, t.apiBaseUrl), y = await WB(A), { default: E } = await import("./html2pdf-
|
|
94184
|
+
const m = await JB(A, t.apiBaseUrl), y = await WB(A), { default: E } = await import("./html2pdf-Cqwtmhg2.js").then((C) => C.h), { default: w } = await import("./pptxgen.es-DgWoEfAr.js"), I = Array.from(A.querySelectorAll(".report-page"));
|
|
94185
94185
|
if (I.length === 0) {
|
|
94186
94186
|
Ri("PPTX export — no rendered pages were found", null);
|
|
94187
94187
|
return;
|
|
@@ -94546,7 +94546,7 @@ const LWe = {
|
|
|
94546
94546
|
}
|
|
94547
94547
|
return !!fe;
|
|
94548
94548
|
}
|
|
94549
|
-
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), d = at(() => "0.28.
|
|
94549
|
+
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), d = at(() => "0.28.7"), f = at(() => "2026-09-02T14:04:36.619Z"), h = at(() => A.value), A = We(n.locale || "es"), p = We(!a(n.minimal)), g = We("pages"), v = We(""), m = We(!1), y = at(() => {
|
|
94550
94550
|
const fe = v.value.toLowerCase().trim();
|
|
94551
94551
|
return fe ? ge.value.filter((ve) => ve.title.toLowerCase().includes(fe)) : ge.value;
|
|
94552
94552
|
});
|
|
@@ -94608,7 +94608,7 @@ const LWe = {
|
|
|
94608
94608
|
let he = null;
|
|
94609
94609
|
async function Qe() {
|
|
94610
94610
|
if (he) return he;
|
|
94611
|
-
const fe = await import("./html2pdf-
|
|
94611
|
+
const fe = await import("./html2pdf-Cqwtmhg2.js").then((ve) => ve.h);
|
|
94612
94612
|
return he = (fe == null ? void 0 : fe.default) || fe, he;
|
|
94613
94613
|
}
|
|
94614
94614
|
async function Ue(fe) {
|
|
@@ -118184,7 +118184,7 @@ const kst = ["onMousedown"], Ost = { class: "nd-widget-inner" }, zst = {
|
|
|
118184
118184
|
}
|
|
118185
118185
|
}), nlt = ".nd-dashboard-canvas-wrapper[data-v-89fc10e2]{flex:1;overflow:auto;background:#f1f5f9;padding:40px;display:flex;justify-content:center}.nd-dashboard-canvas[data-v-89fc10e2]{position:relative;transition:transform .15s ease-out}.nd-widget[data-v-89fc10e2]{position:relative;background:transparent;display:flex;flex-direction:column;cursor:move;transition:box-shadow .2s;padding:0;border:1px solid transparent}.nd-widget-inner[data-v-89fc10e2]{background:#fff;border-radius:12px;overflow:hidden;border:1px solid #e2e8f0;box-shadow:0 4px 6px -1px #0000001a;display:flex;flex-direction:column;width:100%;height:100%;transition:all .2s}.nd-widget.selected .nd-widget-inner[data-v-89fc10e2]{border-color:#3b82f6;box-shadow:0 0 0 2px #3b82f680,0 10px 15px -3px #0000001a}.nd-widget-header[data-v-89fc10e2]{padding:8px 12px;background:#f8fafc;border-bottom:1px solid #f1f5f9;font-size:11px;font-weight:700;color:#475569;-webkit-user-select:none;user-select:none}.nd-widget-content[data-v-89fc10e2]{flex:1;display:flex;align-items:center;justify-content:center;padding:16px}.nd-resize-handle[data-v-89fc10e2]{position:absolute;width:10px;height:10px;background:#3b82f6;border:2px solid white;border-radius:50%;z-index:100;box-shadow:0 0 4px #0003}.nd-resize-handle.top-left[data-v-89fc10e2]{top:-5px;left:-5px;cursor:nw-resize}.nd-resize-handle.top-right[data-v-89fc10e2]{top:-5px;right:-5px;cursor:ne-resize}.nd-resize-handle.bottom-left[data-v-89fc10e2]{bottom:-5px;left:-5px;cursor:sw-resize}.nd-resize-handle.bottom-right[data-v-89fc10e2]{bottom:-5px;right:-5px;cursor:se-resize}.nd-resize-handle.top-center[data-v-89fc10e2]{top:-5px;left:50%;transform:translate(-50%);cursor:n-resize}.nd-resize-handle.bottom-center[data-v-89fc10e2]{bottom:-5px;left:50%;transform:translate(-50%);cursor:s-resize}.nd-resize-handle.left-center[data-v-89fc10e2]{left:-5px;top:50%;transform:translateY(-50%);cursor:w-resize}.nd-resize-handle.right-center[data-v-89fc10e2]{right:-5px;top:50%;transform:translateY(-50%);cursor:e-resize}.nd-widget.selected .nd-widget-header[data-v-89fc10e2]{background:#eff6ff;border-bottom-color:#bfdbfe}", ilt = /* @__PURE__ */ Kl(rlt, [["styles", [nlt]], ["__scopeId", "data-v-89fc10e2"]]), Zs = 37.8;
|
|
118186
118186
|
function va(t) {
|
|
118187
|
-
return
|
|
118187
|
+
return Math.round(t * Zs * 100) / 100;
|
|
118188
118188
|
}
|
|
118189
118189
|
function alt(t) {
|
|
118190
118190
|
return Number((t / Zs).toFixed(2));
|
|
@@ -126303,7 +126303,7 @@ const Rpt = { class: "nd-rt-toolbar" }, Fpt = ["title"], Qpt = ["title"], Dpt =
|
|
|
126303
126303
|
function Ec(ne, D) {
|
|
126304
126304
|
_r(ne, D, j, ee);
|
|
126305
126305
|
}
|
|
126306
|
-
const ys = We(!1), Es = We(!1), pl = We(!1), On = We("home"), Eo = We(null), O0 = We(""), Wo = at(() => "0.28.
|
|
126306
|
+
const ys = We(!1), Es = We(!1), pl = We(!1), On = We("home"), Eo = We(null), O0 = We(""), Wo = at(() => "0.28.7"), e0 = at(() => "2026-09-02T14:04:36.619Z"), kt = at(() => ({
|
|
126307
126307
|
home: f("tab_file"),
|
|
126308
126308
|
new: f("new"),
|
|
126309
126309
|
open: f("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-CbeX1DRC.js";
|
|
2
|
+
import { _ as La } from "./jspdf.es.min-CRu7jxNm.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-hcXQwKwC.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-CbeX1DRC.js";
|
|
2
2
|
export {
|
|
3
3
|
s as DEFAULT_THEME,
|
|
4
4
|
r as NexaDesignerElement,
|