nexabase-report 0.2.4 → 0.2.5

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,4 +1,4 @@
1
- import { c as MQ } from "./index-CouZHtsw.js";
1
+ import { c as MQ } from "./index-BMXrnXcU.js";
2
2
  var nt = { exports: {} };
3
3
  /*!
4
4
  * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
@@ -1,5 +1,5 @@
1
- import { a as c } from "./index-CouZHtsw.js";
2
- import { r as f } from "./html2canvas-C2dwKfu0.js";
1
+ import { a as c } from "./index-BMXrnXcU.js";
2
+ import { r as f } from "./html2canvas-BgHn22tW.js";
3
3
  function l(r, n) {
4
4
  for (var o = 0; o < n.length; o++) {
5
5
  const e = n[o];
@@ -1,6 +1,6 @@
1
- import { g as De, a as Ke, c as Te } from "./index-CouZHtsw.js";
2
- import { j as Ge } from "./jspdf.es.min-CFuhytts.js";
3
- import { r as Be } from "./html2canvas-C2dwKfu0.js";
1
+ import { g as De, a as Ke, c as Te } from "./index-BMXrnXcU.js";
2
+ import { j as Ge } from "./jspdf.es.min-COJHZz3j.js";
3
+ import { r as Be } from "./html2canvas-BgHn22tW.js";
4
4
  function Ue(ge, we) {
5
5
  for (var me = 0; me < we.length; me++) {
6
6
  const ce = we[me];
@@ -55170,30 +55170,25 @@ async function Yme(t, e) {
55170
55170
  return a;
55171
55171
  }
55172
55172
  async function zme(t) {
55173
- var a, o;
55173
+ var i, a;
55174
55174
  const e = /* @__PURE__ */ new Map(), r = Array.from(t.querySelectorAll(".chart-container[data-el-id]"));
55175
55175
  if (r.length === 0) return e;
55176
- let n = null;
55177
- try {
55178
- n = await Promise.resolve().then(() => ome);
55179
- } catch {
55180
- }
55181
- const i = (n == null ? void 0 : n.default) || n;
55182
- for (const s of r) {
55183
- const l = (s.getAttribute("data-el-id") || "").trim();
55184
- if (l && !e.has(l))
55176
+ const n = ome;
55177
+ for (const o of r) {
55178
+ const s = (o.getAttribute("data-el-id") || "").trim();
55179
+ if (s && !e.has(s))
55185
55180
  try {
55186
- const c = s.querySelector(".nexa-chart");
55187
- if (!c) continue;
55188
- const A = (a = i == null ? void 0 : i.getInstanceByDom) == null ? void 0 : a.call(i, c), u = (o = A == null ? void 0 : A.getDataURL) == null ? void 0 : o.call(A, { type: "png", pixelRatio: 2, backgroundColor: "#ffffff" });
55189
- if (typeof u == "string" && u.startsWith("data:")) {
55190
- e.set(l, u);
55181
+ const l = o.querySelector(".nexa-chart");
55182
+ if (!l) continue;
55183
+ const c = (i = n == null ? void 0 : n.getInstanceByDom) == null ? void 0 : i.call(n, l), A = (a = c == null ? void 0 : c.getDataURL) == null ? void 0 : a.call(c, { type: "png", pixelRatio: 2, backgroundColor: "#ffffff" });
55184
+ if (typeof A == "string" && A.startsWith("data:")) {
55185
+ e.set(s, A);
55191
55186
  continue;
55192
55187
  }
55193
- const h = s.querySelector("canvas");
55194
- if (h) {
55195
- const f = h.toDataURL("image/png");
55196
- f && f.startsWith("data:") && e.set(l, f);
55188
+ const u = o.querySelector("canvas");
55189
+ if (u) {
55190
+ const h = u.toDataURL("image/png");
55191
+ h && h.startsWith("data:") && e.set(s, h);
55197
55192
  }
55198
55193
  } catch {
55199
55194
  }
@@ -85208,7 +85203,7 @@ function TDe(t) {
85208
85203
  let l = null, c = null;
85209
85204
  try {
85210
85205
  await new Promise((F) => setTimeout(F, 50)), typeof document < "u" && ((A = document.fonts) != null && A.ready) && await document.fonts.ready, l = await Yme(t.reportPaperRef.value, t.apiBaseUrl), c = await zme(t.reportPaperRef.value);
85211
- const { default: f } = await import("./html2pdf-DddyW51S.js").then((F) => F.h), g = t.reportDef.value, d = g.layout.page, v = (((u = g.metadata) == null ? void 0 : u.name) || "reporte") + ".pdf", p = t.reportPaperRef.value.querySelector(".report-page"), E = (p == null ? void 0 : p.offsetWidth) || t.reportPaperRef.value.offsetWidth || void 0, B = (p == null ? void 0 : p.offsetHeight) || void 0, y = Math.min(3, Math.max(2, (typeof window < "u" ? window.devicePixelRatio : 2) || 2)), m = (p == null ? void 0 : p.offsetWidth) || 794, w = (p == null ? void 0 : p.offsetHeight) || 1123, M = Math.max(1, t.pagination.value.totalPages), I = await f().set({
85206
+ const { default: f } = await import("./html2pdf-CD2L5ngA.js").then((F) => F.h), g = t.reportDef.value, d = g.layout.page, v = (((u = g.metadata) == null ? void 0 : u.name) || "reporte") + ".pdf", p = t.reportPaperRef.value.querySelector(".report-page"), E = (p == null ? void 0 : p.offsetWidth) || t.reportPaperRef.value.offsetWidth || void 0, B = (p == null ? void 0 : p.offsetHeight) || void 0, y = Math.min(3, Math.max(2, (typeof window < "u" ? window.devicePixelRatio : 2) || 2)), m = (p == null ? void 0 : p.offsetWidth) || 794, w = (p == null ? void 0 : p.offsetHeight) || 1123, M = Math.max(1, t.pagination.value.totalPages), I = await f().set({
85212
85207
  filename: v,
85213
85208
  margin: 0,
85214
85209
  image: { type: "jpeg", quality: 0.98 },
@@ -85288,7 +85283,7 @@ function TDe(t) {
85288
85283
  const a = async () => {
85289
85284
  var k;
85290
85285
  if (await i()) return;
85291
- const { jsPDF: l } = await import("./jspdf.es.min-CFuhytts.js").then((P) => P.j), c = t.reportDef.value, A = c.layout.page, u = A.orientation === "landscape";
85286
+ const { jsPDF: l } = await import("./jspdf.es.min-COJHZz3j.js").then((P) => P.j), c = t.reportDef.value, A = c.layout.page, u = A.orientation === "landscape";
85292
85287
  let h = 210, f = 297;
85293
85288
  if (A.format === "Letter" ? (h = 215.9, f = 279.4) : A.format === "Ticket" && (h = 80, f = 200), u) {
85294
85289
  const P = h;
@@ -85747,7 +85742,7 @@ const NDe = {
85747
85742
  }
85748
85743
  return !!q;
85749
85744
  }
85750
- const A = rr(() => c(s.minimal)), u = rr(() => !A.value || c(s.showThumbs)), h = rr(() => !A.value || c(s.showToolbar)), f = Ot(!1), g = rr(() => "0.2.4"), d = rr(() => "2026-05-09T15:14:26.582Z"), v = Ot(1), p = rr(() => {
85745
+ const A = rr(() => c(s.minimal)), u = rr(() => !A.value || c(s.showThumbs)), h = rr(() => !A.value || c(s.showToolbar)), f = Ot(!1), g = rr(() => "0.2.5"), d = rr(() => "2026-05-09T15:37:15.349Z"), v = Ot(1), p = rr(() => {
85751
85746
  if (s.currentPage === void 0 || s.currentPage === null) return;
85752
85747
  const q = Number(s.currentPage);
85753
85748
  if (!(!Number.isFinite(q) || q < 1))
@@ -85798,7 +85793,7 @@ const NDe = {
85798
85793
  let T = null;
85799
85794
  async function _() {
85800
85795
  if (T) return T;
85801
- const q = await import("./html2pdf-DddyW51S.js").then((ae) => ae.h);
85796
+ const q = await import("./html2pdf-CD2L5ngA.js").then((ae) => ae.h);
85802
85797
  return T = (q == null ? void 0 : q.default) || q, T;
85803
85798
  }
85804
85799
  async function re(q) {
@@ -1,5 +1,5 @@
1
- import { c as Ke, a as Do } from "./index-CouZHtsw.js";
2
- import { _ as Xa } from "./jspdf.es.min-CFuhytts.js";
1
+ import { c as Ke, a as Do } from "./index-BMXrnXcU.js";
2
+ import { _ as Xa } from "./jspdf.es.min-COJHZz3j.js";
3
3
  var vt = function(a) {
4
4
  return a && a.Math === Math && a;
5
5
  }, _ = (
@@ -4180,7 +4180,7 @@ function(n) {
4180
4180
  }, n.loadImageFile = n.loadFile;
4181
4181
  }(Rt.API), function(n) {
4182
4182
  function e() {
4183
- return (Ht.html2canvas ? Promise.resolve(Ht.html2canvas) : import("./html2canvas-BnA5jytf.js").then((c) => c.h)).catch(function(c) {
4183
+ return (Ht.html2canvas ? Promise.resolve(Ht.html2canvas) : import("./html2canvas-MMZIlNQK.js").then((c) => c.h)).catch(function(c) {
4184
4184
  return Promise.reject(new Error("Could not load html2canvas: " + c));
4185
4185
  }).then(function(c) {
4186
4186
  return c.default ? c.default : c;
@@ -7302,7 +7302,7 @@ function(n) {
7302
7302
  */
7303
7303
  function(n) {
7304
7304
  function e() {
7305
- return (Ht.canvg ? Promise.resolve(Ht.canvg) : import("./index.es-CiHdU2_k.js")).catch(function(r) {
7305
+ return (Ht.canvg ? Promise.resolve(Ht.canvg) : import("./index.es-CtiZTNdc.js")).catch(function(r) {
7306
7306
  return Promise.reject(new Error("Could not load canvg: " + r));
7307
7307
  }).then(function(r) {
7308
7308
  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-CouZHtsw.js";
1
+ import { N as r, S as s, i as t, r as S } from "./index-BMXrnXcU.js";
2
2
  export {
3
3
  r as NexaViewerElement,
4
4
  s as SYSTEM_VARIABLES,