nexabase-report 0.28.23 → 0.28.24

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 CHANGED
@@ -1,4 +1,4 @@
1
- <!-- nexabase-report@0.28.23 — generado por scripts/gen-ai-context.mjs, no editar a mano -->
1
+ <!-- nexabase-report@0.28.24 — 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.23/schema/nexareport.schema.json
284
+ https://unpkg.com/nexabase-report@0.28.24/schema/nexareport.schema.json
285
285
  ```
286
286
 
287
- (cambia `@0.28.23` por `@latest` para la versión más reciente). Valida el JSON generado
287
+ (cambia `@0.28.24` 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-D8-lpAeF.js";
2
- import { j as Xl } from "./jspdf.es.min-D3oaG-JI.js";
1
+ import { g as Nl, c as ut, d as Vl } from "./index-CD-9wup2.js";
2
+ import { j as Xl } from "./jspdf.es.min-B4Q7rZLJ.js";
3
3
  function Jl(Pe, br) {
4
4
  for (var fe = 0; fe < br.length; fe++) {
5
5
  const HA = br[fe];
@@ -60397,12 +60397,13 @@ function HDe(t, e, r, n) {
60397
60397
  return Pse(String(t), Math.max(1, e), i);
60398
60398
  }
60399
60399
  function xm(t, e, r, n) {
60400
- var c;
60401
- const i = V_((c = e.style) == null ? void 0 : c.fontSize), a = Math.ceil(i * 1.25), o = 12, s = zse(e.style, i);
60400
+ var h;
60401
+ const i = V_((h = e.style) == null ? void 0 : h.fontSize), a = Math.ceil(i * 1.25), o = 12, s = zse(e.style, i);
60402
60402
  let l = 1;
60403
- for (const u of r) {
60404
- const f = Math.max(10, u.width || 100) / 100, d = Math.max(1, n * f * 0.9), h = Wa(u.binding, t), A = HDe(h, d, i, s);
60405
- A > l && (l = A);
60403
+ const c = r.filter((A) => A.width), u = r.filter((A) => !A.width), f = c.reduce((A, p) => A + (Number(p.width) || 0), 0), d = u.length > 0 ? Math.max(10, (n - f) / u.length) : 0;
60404
+ for (const A of r) {
60405
+ const p = A.width ? Number(A.width) : d, g = Math.max(1, p * 0.9), v = Wa(A.binding, t), m = HDe(v, g, i, s);
60406
+ m > l && (l = m);
60406
60407
  }
60407
60408
  return l * a + o;
60408
60409
  }
@@ -93999,7 +94000,7 @@ function YWe(t) {
93999
94000
  let A = null, p = null;
94000
94001
  try {
94001
94002
  await new Promise((Y) => setTimeout(Y, 50)), await gX(t.reportPaperRef.value), typeof document < "u" && ((g = document.fonts) != null && g.ready) && await document.fonts.ready, A = await VB(t.reportPaperRef.value, t.apiBaseUrl), p = await JB(t.reportPaperRef.value);
94002
- const { default: y } = await import("./html2pdf-DqfEr1GY.js").then((Y) => Y.h), E = t.reportDef.value, B = E.layout.page, x = (((v = E.metadata) == null ? void 0 : v.name) || "reporte") + ".pdf", I = t.reportPaperRef.value.querySelector(".report-page"), S = (I == null ? void 0 : I.offsetWidth) || t.reportPaperRef.value.offsetWidth || void 0, M = (I == null ? void 0 : I.offsetHeight) || void 0, T = Math.min(3, Math.max(2, (typeof window < "u" ? window.devicePixelRatio : 2) || 2)), Q = (I == null ? void 0 : I.offsetWidth) || 794, C = (I == null ? void 0 : I.offsetHeight) || 1123, F = Math.max(1, t.pagination.value.totalPages), U = await y().set({
94003
+ const { default: y } = await import("./html2pdf-Ez7uULDp.js").then((Y) => Y.h), E = t.reportDef.value, B = E.layout.page, x = (((v = E.metadata) == null ? void 0 : v.name) || "reporte") + ".pdf", I = t.reportPaperRef.value.querySelector(".report-page"), S = (I == null ? void 0 : I.offsetWidth) || t.reportPaperRef.value.offsetWidth || void 0, M = (I == null ? void 0 : I.offsetHeight) || void 0, T = Math.min(3, Math.max(2, (typeof window < "u" ? window.devicePixelRatio : 2) || 2)), Q = (I == null ? void 0 : I.offsetWidth) || 794, C = (I == null ? void 0 : I.offsetHeight) || 1123, F = Math.max(1, t.pagination.value.totalPages), U = await y().set({
94003
94004
  filename: x,
94004
94005
  margin: 0,
94005
94006
  image: { type: "jpeg", quality: 0.98 },
@@ -94030,7 +94031,7 @@ function YWe(t) {
94030
94031
  }
94031
94032
  async function a() {
94032
94033
  var G;
94033
- const h = t.reportDef.value, { jsPDF: A } = await import("./jspdf.es.min-D3oaG-JI.js").then((J) => J.j), p = h.layout.page, g = p.orientation === "landscape";
94034
+ const h = t.reportDef.value, { jsPDF: A } = await import("./jspdf.es.min-B4Q7rZLJ.js").then((J) => J.j), p = h.layout.page, g = p.orientation === "landscape";
94034
94035
  let v = 210, m = 297;
94035
94036
  if (p.format === "Letter" ? (v = 215.9, m = 279.4) : p.format === "Ticket" && (v = 80, m = 200), g) {
94036
94037
  const J = v;
@@ -94387,7 +94388,7 @@ function YWe(t) {
94387
94388
  t.isExportingPdf.value = !0;
94388
94389
  try {
94389
94390
  await new Promise((U) => setTimeout(U, 50)), await gX(t.reportPaperRef.value), typeof document < "u" && ((A = document.fonts) != null && A.ready) && await document.fonts.ready;
94390
- const v = await VB(t.reportPaperRef.value, t.apiBaseUrl), m = await JB(t.reportPaperRef.value), { default: y } = await import("./html2pdf-DqfEr1GY.js").then((U) => U.h), B = t.reportDef.value.layout.page, x = t.reportPaperRef.value.querySelector(".report-page"), I = (x == null ? void 0 : x.offsetWidth) || t.reportPaperRef.value.offsetWidth || void 0, S = (x == null ? void 0 : x.offsetHeight) || void 0, M = Math.min(3, Math.max(2, (typeof window < "u" ? window.devicePixelRatio : 2) || 2)), T = (x == null ? void 0 : x.offsetWidth) || 794, Q = (x == null ? void 0 : x.offsetHeight) || 1123, C = Math.max(1, t.pagination.value.totalPages), b = await y().set({
94391
+ const v = await VB(t.reportPaperRef.value, t.apiBaseUrl), m = await JB(t.reportPaperRef.value), { default: y } = await import("./html2pdf-Ez7uULDp.js").then((U) => U.h), B = t.reportDef.value.layout.page, x = t.reportPaperRef.value.querySelector(".report-page"), I = (x == null ? void 0 : x.offsetWidth) || t.reportPaperRef.value.offsetWidth || void 0, S = (x == null ? void 0 : x.offsetHeight) || void 0, M = Math.min(3, Math.max(2, (typeof window < "u" ? window.devicePixelRatio : 2) || 2)), T = (x == null ? void 0 : x.offsetWidth) || 794, Q = (x == null ? void 0 : x.offsetHeight) || 1123, C = Math.max(1, t.pagination.value.totalPages), b = await y().set({
94391
94392
  filename: "report.pdf",
94392
94393
  margin: 0,
94393
94394
  image: { type: "jpeg", quality: 0.98 },
@@ -94571,7 +94572,7 @@ ${E.outerHTML}
94571
94572
  t.isExportingPdf.value = !0;
94572
94573
  try {
94573
94574
  await new Promise((C) => setTimeout(C, 50)), typeof document < "u" && ((g = document.fonts) != null && g.ready) && await document.fonts.ready;
94574
- const m = await VB(A, t.apiBaseUrl), y = await JB(A), { default: E } = await import("./html2pdf-DqfEr1GY.js").then((C) => C.h), { default: B } = await import("./pptxgen.es-nE5cnMnw.js"), x = Array.from(A.querySelectorAll(".report-page"));
94575
+ const m = await VB(A, t.apiBaseUrl), y = await JB(A), { default: E } = await import("./html2pdf-Ez7uULDp.js").then((C) => C.h), { default: B } = await import("./pptxgen.es-VEmoPkB9.js"), x = Array.from(A.querySelectorAll(".report-page"));
94575
94576
  if (x.length === 0) {
94576
94577
  Di("PPTX export — no rendered pages were found", null);
94577
94578
  return;
@@ -94939,7 +94940,7 @@ const JWe = {
94939
94940
  }
94940
94941
  return !!fe;
94941
94942
  }
94942
- const o = it(() => a(n.minimal)), s = it(() => a(n.fluid)), l = it(() => !o.value || a(n.showThumbs)), c = it(() => !o.value || a(n.showToolbar)), u = Je(!1), f = it(() => "0.28.23"), d = it(() => "2026-09-07T18:59:34.456Z"), h = it(() => A.value), A = Je(n.locale || "es"), p = Je(!a(n.minimal)), g = Je("pages"), v = Je(""), m = Je(!1), y = it(() => {
94943
+ const o = it(() => a(n.minimal)), s = it(() => a(n.fluid)), l = it(() => !o.value || a(n.showThumbs)), c = it(() => !o.value || a(n.showToolbar)), u = Je(!1), f = it(() => "0.28.24"), d = it(() => "2026-09-07T21:05:52.258Z"), h = it(() => A.value), A = Je(n.locale || "es"), p = Je(!a(n.minimal)), g = Je("pages"), v = Je(""), m = Je(!1), y = it(() => {
94943
94944
  const fe = v.value.toLowerCase().trim();
94944
94945
  return fe ? Ei.value.filter((me) => me.title.toLowerCase().includes(fe)) : Ei.value;
94945
94946
  });
@@ -95001,7 +95002,7 @@ const JWe = {
95001
95002
  let he = null;
95002
95003
  async function Ne() {
95003
95004
  if (he) return he;
95004
- const fe = await import("./html2pdf-DqfEr1GY.js").then((me) => me.h);
95005
+ const fe = await import("./html2pdf-Ez7uULDp.js").then((me) => me.h);
95005
95006
  return he = (fe == null ? void 0 : fe.default) || fe, he;
95006
95007
  }
95007
95008
  async function De(fe) {
@@ -126321,7 +126322,7 @@ const wAt = { class: "nd-rt-toolbar" }, xAt = ["title"], IAt = ["title"], MAt =
126321
126322
  function yh(re, D) {
126322
126323
  hu(re, D, k, R);
126323
126324
  }
126324
- const Xo = Je(!1), $o = Je(!1), kt = Je(!1), Se = Je("home"), rt = Je(null), xt = Je(""), ur = it(() => "0.28.23"), Sr = it(() => "2026-09-07T18:59:34.456Z"), yr = it(() => ({
126325
+ const Xo = Je(!1), $o = Je(!1), kt = Je(!1), Se = Je("home"), rt = Je(null), xt = Je(""), ur = it(() => "0.28.24"), Sr = it(() => "2026-09-07T21:05:52.258Z"), yr = it(() => ({
126325
126326
  home: d("tab_file"),
126326
126327
  new: d("new"),
126327
126328
  open: d("open"),
@@ -1,5 +1,5 @@
1
- import { c as Va, d as il } from "./index-D8-lpAeF.js";
2
- import { _ as La } from "./jspdf.es.min-D3oaG-JI.js";
1
+ import { c as Va, d as il } from "./index-CD-9wup2.js";
2
+ import { _ as La } from "./jspdf.es.min-B4Q7rZLJ.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-B2lXw2ll.js")).catch((function(r) {
7306
+ return (Ht.canvg ? Promise.resolve(Ht.canvg) : import("./index.es-CEgb1b_0.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-D8-lpAeF.js";
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-CD-9wup2.js";
2
2
  export {
3
3
  s as DEFAULT_THEME,
4
4
  r as NexaDesignerElement,