nexabase-report 0.5.1 → 0.5.2

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-CQZowfwe.js";
2
- import { j as Vl } from "./jspdf.es.min-CoEBUy-h.js";
1
+ import { g as Pl, c as br, a as Nl } from "./index-C4D4Q1y8.js";
2
+ import { j as Vl } from "./jspdf.es.min-C-AdA_et.js";
3
3
  function Xl(Pe, jr) {
4
4
  for (var fe = 0; fe < jr.length; fe++) {
5
5
  const HA = jr[fe];
@@ -56122,7 +56122,7 @@ function Zr(t) {
56122
56122
  textAlign: e.textAlign || "left",
56123
56123
  backgroundColor: e.backgroundColor || "transparent",
56124
56124
  border: e.border || "none",
56125
- overflow: "hidden",
56125
+ overflow: "visible",
56126
56126
  whiteSpace: "pre-wrap",
56127
56127
  lineHeight: "1.2",
56128
56128
  padding: e.padding ? e.padding + "px" : ["Rectangle", "Ellipse", "Line", "Arrow"].includes(t.type) ? "0px" : "2px",
@@ -88108,7 +88108,7 @@ function tNe(t) {
88108
88108
  let u = null, A = null;
88109
88109
  try {
88110
88110
  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);
88111
- const { default: d } = await import("./html2pdf-BQumrlR3.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({
88111
+ const { default: d } = await import("./html2pdf-DM7YH2Ic.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
88112
  filename: E,
88113
88113
  margin: 0,
88114
88114
  image: { type: "jpeg", quality: 0.98 },
@@ -88201,7 +88201,7 @@ function tNe(t) {
88201
88201
  return;
88202
88202
  }
88203
88203
  console.warn("[nexa-report] Falling back to native jsPDF engine - PDF may not match viewer exactly");
88204
- const { jsPDF: A } = await import("./jspdf.es.min-CoEBUy-h.js").then((V) => V.j), h = c.layout.page, f = h.orientation === "landscape";
88204
+ const { jsPDF: A } = await import("./jspdf.es.min-C-AdA_et.js").then((V) => V.j), h = c.layout.page, f = h.orientation === "landscape";
88205
88205
  let g = 210, d = 297;
88206
88206
  if (h.format === "Letter" ? (g = 215.9, d = 279.4) : h.format === "Ticket" && (g = 80, d = 200), f) {
88207
88207
  const V = g;
@@ -88492,7 +88492,7 @@ function tNe(t) {
88492
88492
  t.isExportingPdf.value = !0;
88493
88493
  try {
88494
88494
  await new Promise((L) => setTimeout(L, 50)), typeof document < "u" && ((R = document.fonts) != null && R.ready) && await document.fonts.ready;
88495
- const O = await P_(t.reportPaperRef.value, t.apiBaseUrl), P = await H_(t.reportPaperRef.value), { default: W } = await import("./html2pdf-BQumrlR3.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({
88495
+ const O = await P_(t.reportPaperRef.value, t.apiBaseUrl), P = await H_(t.reportPaperRef.value), { default: W } = await import("./html2pdf-DM7YH2Ic.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
88496
  filename: "report.pdf",
88497
88497
  margin: 0,
88498
88498
  image: { type: "jpeg", quality: 0.98 },
@@ -88568,7 +88568,7 @@ function tNe(t) {
88568
88568
  t.isExportingPdf.value = k;
88569
88569
  }
88570
88570
  }
88571
- const c = t.reportDef.value, { jsPDF: u } = await import("./jspdf.es.min-CoEBUy-h.js").then((k) => k.j), A = c.layout.page, h = A.orientation === "landscape";
88571
+ const c = t.reportDef.value, { jsPDF: u } = await import("./jspdf.es.min-C-AdA_et.js").then((k) => k.j), A = c.layout.page, h = A.orientation === "landscape";
88572
88572
  let f = 210, g = 297;
88573
88573
  if (A.format === "Letter" ? (f = 215.9, g = 279.4) : A.format === "Ticket" && (f = 80, g = 200), h) {
88574
88574
  const k = f;
@@ -89303,7 +89303,7 @@ const lNe = {
89303
89303
  }
89304
89304
  return !!le;
89305
89305
  }
89306
- 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.1"), h = Ct(() => "2026-05-31T03:20:30.365Z"), f = Ct(() => g.value), g = St(n.locale || "es"), d = St(!a(n.minimal)), v = St("pages"), p = St(""), E = St(!1), B = Ct(() => {
89306
+ 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.2"), h = Ct(() => "2026-05-31T05:19:55.138Z"), 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
89307
  const le = p.value.toLowerCase().trim();
89308
89308
  return le ? Ig.value.filter((Ae) => Ae.title.toLowerCase().includes(le)) : Ig.value;
89309
89309
  });
@@ -89365,7 +89365,7 @@ const lNe = {
89365
89365
  let se = null;
89366
89366
  async function de() {
89367
89367
  if (se) return se;
89368
- const le = await import("./html2pdf-BQumrlR3.js").then((Ae) => Ae.h);
89368
+ const le = await import("./html2pdf-DM7YH2Ic.js").then((Ae) => Ae.h);
89369
89369
  return se = (le == null ? void 0 : le.default) || le, se;
89370
89370
  }
89371
89371
  async function Be(le) {
@@ -1,5 +1,5 @@
1
- import { c as Ke, a as Do } from "./index-CQZowfwe.js";
2
- import { _ as Xa } from "./jspdf.es.min-CoEBUy-h.js";
1
+ import { c as Ke, a as Do } from "./index-C4D4Q1y8.js";
2
+ import { _ as Xa } from "./jspdf.es.min-C-AdA_et.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-BMLCPpMt.js")).catch(function(r) {
7306
+ return (Ht.canvg ? Promise.resolve(Ht.canvg) : import("./index.es-CzmWgfOi.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-CQZowfwe.js";
1
+ import { N as r, S as s, i as t, r as S } from "./index-C4D4Q1y8.js";
2
2
  export {
3
3
  r as NexaViewerElement,
4
4
  s as SYSTEM_VARIABLES,