nexabase-report 0.5.11 → 0.5.12

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.
@@ -1,5 +1,5 @@
1
- import { g as Pl, c as br, a as Nl } from "./index-nGj1z2wm.js";
2
- import { j as Vl } from "./jspdf.es.min-Bc5WHf-t.js";
1
+ import { g as Pl, c as br, a as Nl } from "./index-BvGLpxpz.js";
2
+ import { j as Vl } from "./jspdf.es.min-DHE53KpH.js";
3
3
  function Xl(Pe, jr) {
4
4
  for (var fe = 0; fe < jr.length; fe++) {
5
5
  const HA = jr[fe];
@@ -88162,7 +88162,7 @@ function $_e(t) {
88162
88162
  let u = null, A = null;
88163
88163
  try {
88164
88164
  await new Promise((S) => setTimeout(S, 50)), typeof document < "u" && ((h = document.fonts) != null && h.ready) && await document.fonts.ready, u = await H_(t.reportPaperRef.value, t.apiBaseUrl), A = await O_(t.reportPaperRef.value);
88165
- const { default: d } = await import("./html2pdf-CECe4Lar.js").then((S) => S.h), v = t.reportDef.value, p = v.layout.page, E = (((f = v.metadata) == null ? void 0 : f.name) || "reporte") + ".pdf", B = t.reportPaperRef.value.querySelector(".report-page"), y = (B == null ? void 0 : B.offsetWidth) || t.reportPaperRef.value.offsetWidth || void 0, m = (B == null ? void 0 : B.offsetHeight) || void 0, w = Math.min(3, Math.max(2, (typeof window < "u" ? window.devicePixelRatio : 2) || 2)), M = (B == null ? void 0 : B.offsetWidth) || 794, x = (B == null ? void 0 : B.offsetHeight) || 1123, I = Math.max(1, t.pagination.value.totalPages), b = await d().set({
88165
+ const { default: d } = await import("./html2pdf-CyrjNJBM.js").then((S) => S.h), v = t.reportDef.value, p = v.layout.page, E = (((f = v.metadata) == null ? void 0 : f.name) || "reporte") + ".pdf", B = t.reportPaperRef.value.querySelector(".report-page"), y = (B == null ? void 0 : B.offsetWidth) || t.reportPaperRef.value.offsetWidth || void 0, m = (B == null ? void 0 : B.offsetHeight) || void 0, w = Math.min(3, Math.max(2, (typeof window < "u" ? window.devicePixelRatio : 2) || 2)), M = (B == null ? void 0 : B.offsetWidth) || 794, x = (B == null ? void 0 : B.offsetHeight) || 1123, I = Math.max(1, t.pagination.value.totalPages), b = await d().set({
88166
88166
  filename: E,
88167
88167
  margin: 0,
88168
88168
  image: { type: "jpeg", quality: 0.98 },
@@ -88255,7 +88255,7 @@ function $_e(t) {
88255
88255
  return;
88256
88256
  }
88257
88257
  console.warn("[nexa-report] Falling back to native jsPDF engine - PDF may not match viewer exactly");
88258
- const { jsPDF: A } = await import("./jspdf.es.min-Bc5WHf-t.js").then((J) => J.j), h = c.layout.page, f = h.orientation === "landscape";
88258
+ const { jsPDF: A } = await import("./jspdf.es.min-DHE53KpH.js").then((J) => J.j), h = c.layout.page, f = h.orientation === "landscape";
88259
88259
  let g = 210, d = 297;
88260
88260
  if (h.format === "Letter" ? (g = 215.9, d = 279.4) : h.format === "Ticket" && (g = 80, d = 200), f) {
88261
88261
  const J = g;
@@ -88546,7 +88546,7 @@ function $_e(t) {
88546
88546
  t.isExportingPdf.value = !0;
88547
88547
  try {
88548
88548
  await new Promise((L) => setTimeout(L, 50)), typeof document < "u" && ((R = document.fonts) != null && R.ready) && await document.fonts.ready;
88549
- const H = await H_(t.reportPaperRef.value, t.apiBaseUrl), P = await O_(t.reportPaperRef.value), { default: W } = await import("./html2pdf-CECe4Lar.js").then((L) => L.h), oe = t.reportDef.value.layout.page, q = t.reportPaperRef.value.querySelector(".report-page"), _ = (q == null ? void 0 : q.offsetWidth) || t.reportPaperRef.value.offsetWidth || void 0, V = (q == null ? void 0 : q.offsetHeight) || void 0, X = Math.min(3, Math.max(2, (typeof window < "u" ? window.devicePixelRatio : 2) || 2)), te = (q == null ? void 0 : q.offsetWidth) || 794, re = (q == null ? void 0 : q.offsetHeight) || 1123, G = Math.max(1, t.pagination.value.totalPages), J = await W().set({
88549
+ const H = await H_(t.reportPaperRef.value, t.apiBaseUrl), P = await O_(t.reportPaperRef.value), { default: W } = await import("./html2pdf-CyrjNJBM.js").then((L) => L.h), oe = t.reportDef.value.layout.page, q = t.reportPaperRef.value.querySelector(".report-page"), _ = (q == null ? void 0 : q.offsetWidth) || t.reportPaperRef.value.offsetWidth || void 0, V = (q == null ? void 0 : q.offsetHeight) || void 0, X = Math.min(3, Math.max(2, (typeof window < "u" ? window.devicePixelRatio : 2) || 2)), te = (q == null ? void 0 : q.offsetWidth) || 794, re = (q == null ? void 0 : q.offsetHeight) || 1123, G = Math.max(1, t.pagination.value.totalPages), J = await W().set({
88550
88550
  filename: "report.pdf",
88551
88551
  margin: 0,
88552
88552
  image: { type: "jpeg", quality: 0.98 },
@@ -88622,7 +88622,7 @@ function $_e(t) {
88622
88622
  t.isExportingPdf.value = k;
88623
88623
  }
88624
88624
  }
88625
- const c = t.reportDef.value, { jsPDF: u } = await import("./jspdf.es.min-Bc5WHf-t.js").then((k) => k.j), A = c.layout.page, h = A.orientation === "landscape";
88625
+ const c = t.reportDef.value, { jsPDF: u } = await import("./jspdf.es.min-DHE53KpH.js").then((k) => k.j), A = c.layout.page, h = A.orientation === "landscape";
88626
88626
  let f = 210, g = 297;
88627
88627
  if (A.format === "Letter" ? (f = 215.9, g = 279.4) : A.format === "Ticket" && (f = 80, g = 200), h) {
88628
88628
  const k = f;
@@ -89129,8 +89129,8 @@ class Kn {
89129
89129
  let x = [...p.rows];
89130
89130
  for (; x.length > 0; ) {
89131
89131
  let I = l - h;
89132
- I < w + M && (f(), I = l);
89133
- let F = Math.floor((I - w) / M);
89132
+ I < y + w + M && (f(), I = l);
89133
+ let F = Math.floor((I - y - w) / M);
89134
89134
  F <= 0 && (F = 1);
89135
89135
  const b = x.splice(0, F), S = y + w + b.length * M;
89136
89136
  A.push({
@@ -89177,7 +89177,7 @@ class Kn {
89177
89177
  let E = r.top;
89178
89178
  for (const B of p.bands) {
89179
89179
  if (B.band.type === "PageFooter") {
89180
- B.y = e - r.bottom - (B.band.height || 0);
89180
+ B.y = e + r.top - (B.band.height || 0);
89181
89181
  continue;
89182
89182
  }
89183
89183
  B.y = E, E += B.computedHeight || 0;
@@ -89358,7 +89358,7 @@ const oNe = {
89358
89358
  }
89359
89359
  return !!le;
89360
89360
  }
89361
- const o = St(() => a(n.minimal)), s = St(() => a(n.fluid)), l = St(() => !o.value || a(n.showThumbs)), c = St(() => !o.value || a(n.showToolbar)), u = Qt(!1), A = St(() => "0.5.11"), h = St(() => "2026-06-08T02:26:37.841Z"), f = St(() => g.value), g = Qt(n.locale || "es"), d = Qt(!a(n.minimal)), v = Qt("pages"), p = Qt(""), E = Qt(!1), B = St(() => {
89361
+ const o = St(() => a(n.minimal)), s = St(() => a(n.fluid)), l = St(() => !o.value || a(n.showThumbs)), c = St(() => !o.value || a(n.showToolbar)), u = Qt(!1), A = St(() => "0.5.12"), h = St(() => "2026-06-12T17:12:45.562Z"), f = St(() => g.value), g = Qt(n.locale || "es"), d = Qt(!a(n.minimal)), v = Qt("pages"), p = Qt(""), E = Qt(!1), B = St(() => {
89362
89362
  const le = p.value.toLowerCase().trim();
89363
89363
  return le ? xg.value.filter((Ae) => Ae.title.toLowerCase().includes(le)) : xg.value;
89364
89364
  });
@@ -89420,7 +89420,7 @@ const oNe = {
89420
89420
  let se = null;
89421
89421
  async function de() {
89422
89422
  if (se) return se;
89423
- const le = await import("./html2pdf-CECe4Lar.js").then((Ae) => Ae.h);
89423
+ const le = await import("./html2pdf-CyrjNJBM.js").then((Ae) => Ae.h);
89424
89424
  return se = (le == null ? void 0 : le.default) || le, se;
89425
89425
  }
89426
89426
  async function Be(le) {
@@ -1,5 +1,5 @@
1
- import { c as Ke, a as Do } from "./index-nGj1z2wm.js";
2
- import { _ as Xa } from "./jspdf.es.min-Bc5WHf-t.js";
1
+ import { c as Ke, a as Do } from "./index-BvGLpxpz.js";
2
+ import { _ as Xa } from "./jspdf.es.min-DHE53KpH.js";
3
3
  var vt = function(a) {
4
4
  return a && a.Math === Math && a;
5
5
  }, _ = (
@@ -7303,7 +7303,7 @@ function(n) {
7303
7303
  */
7304
7304
  function(n) {
7305
7305
  function e() {
7306
- return (Ht.canvg ? Promise.resolve(Ht.canvg) : import("./index.es-CnBWL9rx.js")).catch(function(r) {
7306
+ return (Ht.canvg ? Promise.resolve(Ht.canvg) : import("./index.es-DLtoK965.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 { N as r, S as s, i as t, r as S } from "./index-nGj1z2wm.js";
1
+ import { N as r, S as s, i as t, r as S } from "./index-BvGLpxpz.js";
2
2
  export {
3
3
  r as NexaViewerElement,
4
4
  s as SYSTEM_VARIABLES,