nexabase-report 0.4.16 → 0.4.18

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-CHj66Z80.js";
2
- import { j as Vl } from "./jspdf.es.min-Dj70V09k.js";
1
+ import { g as Pl, c as br, a as Nl } from "./index-9xg2Q72u.js";
2
+ import { j as Vl } from "./jspdf.es.min-D5IKwOGk.js";
3
3
  function Xl(Pe, jr) {
4
4
  for (var fe = 0; fe < jr.length; fe++) {
5
5
  const HA = jr[fe];
@@ -55845,7 +55845,7 @@ function Kr(t) {
55845
55845
  overflow: "visible",
55846
55846
  whiteSpace: "pre-wrap",
55847
55847
  lineHeight: "1.2",
55848
- padding: e.padding ? e.padding + "px" : "2px",
55848
+ padding: e.padding ? e.padding + "px" : ["Rectangle", "Ellipse", "Line", "Arrow"].includes(t.type) ? "0px" : "2px",
55849
55849
  boxSizing: "border-box"
55850
55850
  };
55851
55851
  }
@@ -57536,7 +57536,7 @@ const M6e = { class: "shape-renderer" }, I6e = ["src"], d8 = /* @__PURE__ */ Wa(
57536
57536
  key: 0,
57537
57537
  src: r.value,
57538
57538
  alt: "shape",
57539
- style: { width: "100%", height: "100%", "object-fit": "contain" }
57539
+ style: { width: "100%", height: "100%", "object-fit": "fill" }
57540
57540
  }, null, 8, I6e)) : Xt("", !0)
57541
57541
  ]));
57542
57542
  }
@@ -87757,7 +87757,7 @@ function x_e(t) {
87757
87757
  let c = null, A = null;
87758
87758
  try {
87759
87759
  await new Promise((D) => setTimeout(D, 50)), typeof document < "u" && ((u = document.fonts) != null && u.ready) && await document.fonts.ready, c = await _6e(t.reportPaperRef.value, t.apiBaseUrl), A = await N6e(t.reportPaperRef.value);
87760
- const { default: g } = await import("./html2pdf-juVLySfj.js").then((D) => D.h), d = t.reportDef.value, v = d.layout.page, p = (((h = d.metadata) == null ? void 0 : h.name) || "reporte") + ".pdf", E = t.reportPaperRef.value.querySelector(".report-page"), B = (E == null ? void 0 : E.offsetWidth) || t.reportPaperRef.value.offsetWidth || void 0, y = (E == null ? void 0 : E.offsetHeight) || void 0, m = Math.min(3, Math.max(2, (typeof window < "u" ? window.devicePixelRatio : 2) || 2)), w = (E == null ? void 0 : E.offsetWidth) || 794, M = (E == null ? void 0 : E.offsetHeight) || 1123, x = Math.max(1, t.pagination.value.totalPages), C = await g().set({
87760
+ const { default: g } = await import("./html2pdf-fV0Eqqxe.js").then((D) => D.h), d = t.reportDef.value, v = d.layout.page, p = (((h = d.metadata) == null ? void 0 : h.name) || "reporte") + ".pdf", E = t.reportPaperRef.value.querySelector(".report-page"), B = (E == null ? void 0 : E.offsetWidth) || t.reportPaperRef.value.offsetWidth || void 0, y = (E == null ? void 0 : E.offsetHeight) || void 0, m = Math.min(3, Math.max(2, (typeof window < "u" ? window.devicePixelRatio : 2) || 2)), w = (E == null ? void 0 : E.offsetWidth) || 794, M = (E == null ? void 0 : E.offsetHeight) || 1123, x = Math.max(1, t.pagination.value.totalPages), C = await g().set({
87761
87761
  filename: p,
87762
87762
  margin: 0,
87763
87763
  image: { type: "jpeg", quality: 0.98 },
@@ -87837,7 +87837,7 @@ function x_e(t) {
87837
87837
  const a = async () => {
87838
87838
  var H;
87839
87839
  if (await i()) return;
87840
- const { jsPDF: c } = await import("./jspdf.es.min-Dj70V09k.js").then((G) => G.j), A = t.reportDef.value, u = A.layout.page, h = u.orientation === "landscape";
87840
+ const { jsPDF: c } = await import("./jspdf.es.min-D5IKwOGk.js").then((G) => G.j), A = t.reportDef.value, u = A.layout.page, h = u.orientation === "landscape";
87841
87841
  let f = 210, g = 297;
87842
87842
  if (u.format === "Letter" ? (f = 215.9, g = 279.4) : u.format === "Ticket" && (f = 80, g = 200), h) {
87843
87843
  const G = f;
@@ -88589,7 +88589,7 @@ const D_e = {
88589
88589
  }
88590
88590
  return !!oe;
88591
88591
  }
88592
- const o = Gt(() => a(n.minimal)), s = Gt(() => a(n.fluid)), l = Gt(() => !o.value || a(n.showThumbs)), c = Gt(() => !o.value || a(n.showToolbar)), A = Ft(!1), u = Gt(() => "0.4.16"), h = Gt(() => "2026-05-21T17:50:09.543Z"), f = Gt(() => g.value), g = Ft(n.locale || "es"), d = Ft(!a(n.minimal)), v = Ft("pages"), p = Ft(""), E = Ft(!1), B = Gt(() => {
88592
+ const o = Gt(() => a(n.minimal)), s = Gt(() => a(n.fluid)), l = Gt(() => !o.value || a(n.showThumbs)), c = Gt(() => !o.value || a(n.showToolbar)), A = Ft(!1), u = Gt(() => "0.4.18"), h = Gt(() => "2026-05-22T13:29:34.222Z"), f = Gt(() => g.value), g = Ft(n.locale || "es"), d = Ft(!a(n.minimal)), v = Ft("pages"), p = Ft(""), E = Ft(!1), B = Gt(() => {
88593
88593
  const oe = p.value.toLowerCase().trim();
88594
88594
  return oe ? Mg.value.filter((ue) => ue.title.toLowerCase().includes(oe)) : Mg.value;
88595
88595
  });
@@ -88651,7 +88651,7 @@ const D_e = {
88651
88651
  let le = null;
88652
88652
  async function ve() {
88653
88653
  if (le) return le;
88654
- const oe = await import("./html2pdf-juVLySfj.js").then((ue) => ue.h);
88654
+ const oe = await import("./html2pdf-fV0Eqqxe.js").then((ue) => ue.h);
88655
88655
  return le = (oe == null ? void 0 : oe.default) || oe, le;
88656
88656
  }
88657
88657
  async function Be(oe) {
@@ -1,5 +1,5 @@
1
- import { c as Ke, a as Do } from "./index-CHj66Z80.js";
2
- import { _ as Xa } from "./jspdf.es.min-Dj70V09k.js";
1
+ import { c as Ke, a as Do } from "./index-9xg2Q72u.js";
2
+ import { _ as Xa } from "./jspdf.es.min-D5IKwOGk.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-2XR3UTrd.js")).catch(function(r) {
7306
+ return (Ht.canvg ? Promise.resolve(Ht.canvg) : import("./index.es-PpmjGpaM.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-CHj66Z80.js";
1
+ import { N as r, S as s, i as t, r as S } from "./index-9xg2Q72u.js";
2
2
  export {
3
3
  r as NexaViewerElement,
4
4
  s as SYSTEM_VARIABLES,