nexabase-report 0.5.5 → 0.5.6

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-DY2GvroV.js";
2
- import { j as Vl } from "./jspdf.es.min-CuJqpYvq.js";
1
+ import { g as Pl, c as br, a as Nl } from "./index-CS_roD2I.js";
2
+ import { j as Vl } from "./jspdf.es.min-DTZNk4Sk.js";
3
3
  function Xl(Pe, jr) {
4
4
  for (var fe = 0; fe < jr.length; fe++) {
5
5
  const HA = jr[fe];
@@ -55923,16 +55923,16 @@ function Er(t, e = {}) {
55923
55923
  return t ? (t = t.replace(/\$\{[(.*?)]}/g, (r, n) => {
55924
55924
  try {
55925
55925
  const i = N_(n, e);
55926
- return i != null ? String(i) : `[${n}]`;
55926
+ return i != null ? String(i) : "";
55927
55927
  } catch {
55928
- return `[${n}]`;
55928
+ return "";
55929
55929
  }
55930
55930
  }), t = t.replace(/\{\[(.*?)\]\}/g, (r, n) => {
55931
55931
  try {
55932
55932
  const i = N_(n, e);
55933
- return i != null ? String(i) : `[${n}]`;
55933
+ return i != null ? String(i) : "";
55934
55934
  } catch {
55935
- return `[${n}]`;
55935
+ return "";
55936
55936
  }
55937
55937
  }), t = t.replace(/\{\{(\w+(?:\.\w+)*)\}\}/g, (r, n) => {
55938
55938
  const i = n;
@@ -55958,7 +55958,7 @@ function Er(t, e = {}) {
55958
55958
  if (i === "EvenRow") return String((e.rowNumber || 1) % 2 === 0);
55959
55959
  if (i === "OddRow") return String((e.rowNumber || 1) % 2 !== 0);
55960
55960
  const a = Fo(n, e.row || {});
55961
- return a != null && a !== "" ? String(a) : `[${n}]`;
55961
+ return a != null ? String(a) : "";
55962
55962
  }), t) : "";
55963
55963
  }
55964
55964
  function Xd(t) {
@@ -88109,7 +88109,7 @@ function tNe(t) {
88109
88109
  let u = null, A = null;
88110
88110
  try {
88111
88111
  await new Promise((S) => setTimeout(S, 50)), typeof document < "u" && ((h = document.fonts) != null && h.ready) && await document.fonts.ready, u = await P_(t.reportPaperRef.value, t.apiBaseUrl), A = await H_(t.reportPaperRef.value);
88112
- const { default: d } = await import("./html2pdf-DPlVv8Wr.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, Q = (B == null ? void 0 : B.offsetHeight) || 1123, I = Math.max(1, t.pagination.value.totalPages), D = await d().set({
88112
+ const { default: d } = await import("./html2pdf-CNjC5cdW.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, Q = (B == null ? void 0 : B.offsetHeight) || 1123, I = Math.max(1, t.pagination.value.totalPages), D = await d().set({
88113
88113
  filename: E,
88114
88114
  margin: 0,
88115
88115
  image: { type: "jpeg", quality: 0.98 },
@@ -88202,7 +88202,7 @@ function tNe(t) {
88202
88202
  return;
88203
88203
  }
88204
88204
  console.warn("[nexa-report] Falling back to native jsPDF engine - PDF may not match viewer exactly");
88205
- const { jsPDF: A } = await import("./jspdf.es.min-CuJqpYvq.js").then((V) => V.j), h = c.layout.page, f = h.orientation === "landscape";
88205
+ const { jsPDF: A } = await import("./jspdf.es.min-DTZNk4Sk.js").then((V) => V.j), h = c.layout.page, f = h.orientation === "landscape";
88206
88206
  let g = 210, d = 297;
88207
88207
  if (h.format === "Letter" ? (g = 215.9, d = 279.4) : h.format === "Ticket" && (g = 80, d = 200), f) {
88208
88208
  const V = g;
@@ -88493,7 +88493,7 @@ function tNe(t) {
88493
88493
  t.isExportingPdf.value = !0;
88494
88494
  try {
88495
88495
  await new Promise((L) => setTimeout(L, 50)), typeof document < "u" && ((R = document.fonts) != null && R.ready) && await document.fonts.ready;
88496
- const O = await P_(t.reportPaperRef.value, t.apiBaseUrl), P = await H_(t.reportPaperRef.value), { default: W } = await import("./html2pdf-DPlVv8Wr.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, J = (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), V = await W().set({
88496
+ const O = await P_(t.reportPaperRef.value, t.apiBaseUrl), P = await H_(t.reportPaperRef.value), { default: W } = await import("./html2pdf-CNjC5cdW.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, J = (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), V = await W().set({
88497
88497
  filename: "report.pdf",
88498
88498
  margin: 0,
88499
88499
  image: { type: "jpeg", quality: 0.98 },
@@ -88569,7 +88569,7 @@ function tNe(t) {
88569
88569
  t.isExportingPdf.value = k;
88570
88570
  }
88571
88571
  }
88572
- const c = t.reportDef.value, { jsPDF: u } = await import("./jspdf.es.min-CuJqpYvq.js").then((k) => k.j), A = c.layout.page, h = A.orientation === "landscape";
88572
+ const c = t.reportDef.value, { jsPDF: u } = await import("./jspdf.es.min-DTZNk4Sk.js").then((k) => k.j), A = c.layout.page, h = A.orientation === "landscape";
88573
88573
  let f = 210, g = 297;
88574
88574
  if (A.format === "Letter" ? (f = 215.9, g = 279.4) : A.format === "Ticket" && (f = 80, g = 200), h) {
88575
88575
  const k = f;
@@ -89304,7 +89304,7 @@ const lNe = {
89304
89304
  }
89305
89305
  return !!le;
89306
89306
  }
89307
- const o = Ct(() => a(n.minimal)), s = Ct(() => a(n.fluid)), l = Ct(() => !o.value || a(n.showThumbs)), c = Ct(() => !o.value || a(n.showToolbar)), u = St(!1), A = Ct(() => "0.5.5"), h = Ct(() => "2026-05-31T05:32:50.934Z"), f = Ct(() => g.value), g = St(n.locale || "es"), d = St(!a(n.minimal)), v = St("pages"), p = St(""), E = St(!1), B = Ct(() => {
89307
+ const o = Ct(() => a(n.minimal)), s = Ct(() => a(n.fluid)), l = Ct(() => !o.value || a(n.showThumbs)), c = Ct(() => !o.value || a(n.showToolbar)), u = St(!1), A = Ct(() => "0.5.6"), h = Ct(() => "2026-06-03T19:30:17.373Z"), f = Ct(() => g.value), g = St(n.locale || "es"), d = St(!a(n.minimal)), v = St("pages"), p = St(""), E = St(!1), B = Ct(() => {
89308
89308
  const le = p.value.toLowerCase().trim();
89309
89309
  return le ? Ig.value.filter((Ae) => Ae.title.toLowerCase().includes(le)) : Ig.value;
89310
89310
  });
@@ -89366,7 +89366,7 @@ const lNe = {
89366
89366
  let se = null;
89367
89367
  async function de() {
89368
89368
  if (se) return se;
89369
- const le = await import("./html2pdf-DPlVv8Wr.js").then((Ae) => Ae.h);
89369
+ const le = await import("./html2pdf-CNjC5cdW.js").then((Ae) => Ae.h);
89370
89370
  return se = (le == null ? void 0 : le.default) || le, se;
89371
89371
  }
89372
89372
  async function Be(le) {
@@ -1,5 +1,5 @@
1
- import { c as Ke, a as Do } from "./index-DY2GvroV.js";
2
- import { _ as Xa } from "./jspdf.es.min-CuJqpYvq.js";
1
+ import { c as Ke, a as Do } from "./index-CS_roD2I.js";
2
+ import { _ as Xa } from "./jspdf.es.min-DTZNk4Sk.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-DqK5_mR5.js")).catch(function(r) {
7306
+ return (Ht.canvg ? Promise.resolve(Ht.canvg) : import("./index.es-0guUZPLR.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-DY2GvroV.js";
1
+ import { N as r, S as s, i as t, r as S } from "./index-CS_roD2I.js";
2
2
  export {
3
3
  r as NexaViewerElement,
4
4
  s as SYSTEM_VARIABLES,