nexabase-report 0.26.2 → 0.26.3

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 Nl, c as ut, d as Vl } from "./index-DRt8rzWp.js";
2
- import { j as Xl } from "./jspdf.es.min-BUwNnbu8.js";
1
+ import { g as Nl, c as ut, d as Vl } from "./index-35TqocHc.js";
2
+ import { j as Xl } from "./jspdf.es.min-69sqBnsw.js";
3
3
  function Jl(Pe, br) {
4
4
  for (var fe = 0; fe < br.length; fe++) {
5
5
  const HA = br[fe];
@@ -60280,25 +60280,29 @@ function h_e(t, e) {
60280
60280
  return r;
60281
60281
  }
60282
60282
  function Xse(t, e, r, n, i, a, o, s, l, c) {
60283
- const u = (t.binding || "").trim();
60284
- if (!u) return "";
60285
- const f = Kf(e, r, n, i, a, o, s, l, void 0, void 0, void 0, c);
60286
- if (/^\{\{.*\}\}$/.test(u) || /^\{[\[].*\]\}$/.test(u)) {
60287
- const p = (Sn(u, f) ?? "").toString().trim();
60288
- return !p || /^\[.*\]$/.test(p) || /^\{\{.*\}\}$/.test(p) || /^\{[\[].*\]\}$/.test(p) ? "" : p;
60289
- }
60283
+ const u = (t.binding || "").trim(), f = Kf(e, r, n, i, a, o, s, l, void 0, void 0, void 0, c);
60290
60284
  if (u.startsWith("$") && c) {
60291
- const A = u.substring(1), p = c[A] ?? c[u];
60292
- if (p != null) return String(p);
60285
+ const d = u.substring(1), h = c[d] ?? c[u];
60286
+ if (h != null) return String(h);
60287
+ }
60288
+ if (u) {
60289
+ const d = /^\{\{.*\}\}$/.test(u) || /^\{[\[].*\]\}$/.test(u) ? u : `{{${u}}}`, A = (Sn(d, f) ?? "").toString().trim();
60290
+ if (A && !/^\[[^\]]+\]$/.test(A) && !/^\{\{[^{}]+\}\}$/.test(A) && !/^\{[\[].*\]\}$/.test(A)) return A;
60293
60291
  }
60294
- const h = (Sn(u, f) ?? "").toString().trim();
60295
- return !h || h === u || /^\[.*\]$/.test(h) ? "" : h;
60292
+ if (t.content) {
60293
+ const h = (Sn(t.content, f) ?? "").toString().trim();
60294
+ if (h && !/^\[[^\]]+\]$/.test(h)) return h;
60295
+ }
60296
+ return "";
60296
60297
  }
60297
60298
  function $se(t, e, r, n, i, a, o, s, l, c) {
60298
60299
  const u = (t.binding || "").trim();
60299
60300
  if (u) {
60300
- const f = Kf(e, r, n, i, a, o, s, l, void 0, void 0, void 0, c), h = (Sn(u, f) ?? "").toString().trim();
60301
- if (h && h !== u && !/^\[.*\]$/.test(h)) return h;
60301
+ const f = Kf(e, r, n, i, a, o, s, l, void 0, void 0, void 0, c), h = (Sn(
60302
+ /^\{\{.*\}\}$/.test(u) || /^\{[\[].*\]\}$/.test(u) ? u : `{{${u}}}`,
60303
+ f
60304
+ ) ?? "").toString().trim();
60305
+ if (h && !/^\[.*\]$/.test(h) && !/^\{?\{\{.*\}\}\}?$/.test(h) && !/^\{[\[].*\]\}$/.test(h)) return h;
60302
60306
  }
60303
60307
  if (t.content) {
60304
60308
  const d = (Sn(t.content, Kf(e, r, n, i, a, o, s, l, void 0, void 0, void 0, c)) ?? "").toString().trim();
@@ -93525,7 +93529,7 @@ function rKe(t) {
93525
93529
  let A = null, p = null;
93526
93530
  try {
93527
93531
  await new Promise((G) => setTimeout(G, 50)), typeof document < "u" && ((g = document.fonts) != null && g.ready) && await document.fonts.ready, A = await $5(t.reportPaperRef.value, t.apiBaseUrl), p = await Z5(t.reportPaperRef.value);
93528
- const { default: y } = await import("./html2pdf-lo0OPMZo.js").then((G) => G.h), E = t.reportDef.value, B = E.layout.page, x = (((v = E.metadata) == null ? void 0 : v.name) || "reporte") + ".pdf", I = t.reportPaperRef.value.querySelector(".report-page"), S = (I == null ? void 0 : I.offsetWidth) || t.reportPaperRef.value.offsetWidth || void 0, M = (I == null ? void 0 : I.offsetHeight) || void 0, C = Math.min(3, Math.max(2, (typeof window < "u" ? window.devicePixelRatio : 2) || 2)), Q = (I == null ? void 0 : I.offsetWidth) || 794, T = (I == null ? void 0 : I.offsetHeight) || 1123, F = Math.max(1, t.pagination.value.totalPages), k = await y().set({
93532
+ const { default: y } = await import("./html2pdf-DxtlCkep.js").then((G) => G.h), E = t.reportDef.value, B = E.layout.page, x = (((v = E.metadata) == null ? void 0 : v.name) || "reporte") + ".pdf", I = t.reportPaperRef.value.querySelector(".report-page"), S = (I == null ? void 0 : I.offsetWidth) || t.reportPaperRef.value.offsetWidth || void 0, M = (I == null ? void 0 : I.offsetHeight) || void 0, C = Math.min(3, Math.max(2, (typeof window < "u" ? window.devicePixelRatio : 2) || 2)), Q = (I == null ? void 0 : I.offsetWidth) || 794, T = (I == null ? void 0 : I.offsetHeight) || 1123, F = Math.max(1, t.pagination.value.totalPages), k = await y().set({
93529
93533
  filename: x,
93530
93534
  margin: 0,
93531
93535
  image: { type: "jpeg", quality: 0.98 },
@@ -93556,7 +93560,7 @@ function rKe(t) {
93556
93560
  }
93557
93561
  async function a() {
93558
93562
  var U;
93559
- const h = t.reportDef.value, { jsPDF: A } = await import("./jspdf.es.min-BUwNnbu8.js").then((L) => L.j), p = h.layout.page, g = p.orientation === "landscape";
93563
+ const h = t.reportDef.value, { jsPDF: A } = await import("./jspdf.es.min-69sqBnsw.js").then((L) => L.j), p = h.layout.page, g = p.orientation === "landscape";
93560
93564
  let v = 210, m = 297;
93561
93565
  if (p.format === "Letter" ? (v = 215.9, m = 279.4) : p.format === "Ticket" && (v = 80, m = 200), g) {
93562
93566
  const L = v;
@@ -93886,7 +93890,7 @@ function rKe(t) {
93886
93890
  t.isExportingPdf.value = !0;
93887
93891
  try {
93888
93892
  await new Promise((k) => setTimeout(k, 50)), typeof document < "u" && ((A = document.fonts) != null && A.ready) && await document.fonts.ready;
93889
- const v = await $5(t.reportPaperRef.value, t.apiBaseUrl), m = await Z5(t.reportPaperRef.value), { default: y } = await import("./html2pdf-lo0OPMZo.js").then((k) => k.h), B = t.reportDef.value.layout.page, x = t.reportPaperRef.value.querySelector(".report-page"), I = (x == null ? void 0 : x.offsetWidth) || t.reportPaperRef.value.offsetWidth || void 0, S = (x == null ? void 0 : x.offsetHeight) || void 0, M = Math.min(3, Math.max(2, (typeof window < "u" ? window.devicePixelRatio : 2) || 2)), C = (x == null ? void 0 : x.offsetWidth) || 794, Q = (x == null ? void 0 : x.offsetHeight) || 1123, T = Math.max(1, t.pagination.value.totalPages), b = await y().set({
93893
+ const v = await $5(t.reportPaperRef.value, t.apiBaseUrl), m = await Z5(t.reportPaperRef.value), { default: y } = await import("./html2pdf-DxtlCkep.js").then((k) => k.h), B = t.reportDef.value.layout.page, x = t.reportPaperRef.value.querySelector(".report-page"), I = (x == null ? void 0 : x.offsetWidth) || t.reportPaperRef.value.offsetWidth || void 0, S = (x == null ? void 0 : x.offsetHeight) || void 0, M = Math.min(3, Math.max(2, (typeof window < "u" ? window.devicePixelRatio : 2) || 2)), C = (x == null ? void 0 : x.offsetWidth) || 794, Q = (x == null ? void 0 : x.offsetHeight) || 1123, T = Math.max(1, t.pagination.value.totalPages), b = await y().set({
93890
93894
  filename: "report.pdf",
93891
93895
  margin: 0,
93892
93896
  image: { type: "jpeg", quality: 0.98 },
@@ -94070,7 +94074,7 @@ ${E.outerHTML}
94070
94074
  t.isExportingPdf.value = !0;
94071
94075
  try {
94072
94076
  await new Promise((T) => setTimeout(T, 50)), typeof document < "u" && ((g = document.fonts) != null && g.ready) && await document.fonts.ready;
94073
- const m = await $5(A, t.apiBaseUrl), y = await Z5(A), { default: E } = await import("./html2pdf-lo0OPMZo.js").then((T) => T.h), { default: B } = await import("./pptxgen.es-DD01xTKF.js"), x = Array.from(A.querySelectorAll(".report-page"));
94077
+ const m = await $5(A, t.apiBaseUrl), y = await Z5(A), { default: E } = await import("./html2pdf-DxtlCkep.js").then((T) => T.h), { default: B } = await import("./pptxgen.es-ChpReMqp.js"), x = Array.from(A.querySelectorAll(".report-page"));
94074
94078
  if (x.length === 0) {
94075
94079
  yi("PPTX export — no rendered pages were found", null);
94076
94080
  return;
@@ -94420,7 +94424,7 @@ const lKe = {
94420
94424
  }
94421
94425
  return !!de;
94422
94426
  }
94423
- const o = nt(() => a(n.minimal)), s = nt(() => a(n.fluid)), l = nt(() => !o.value || a(n.showThumbs)), c = nt(() => !o.value || a(n.showToolbar)), u = Xe(!1), f = nt(() => "0.26.2"), d = nt(() => "2026-08-03T20:05:33.865Z"), h = nt(() => A.value), A = Xe(n.locale || "es"), p = Xe(!a(n.minimal)), g = Xe("pages"), v = Xe(""), m = Xe(!1), y = nt(() => {
94427
+ const o = nt(() => a(n.minimal)), s = nt(() => a(n.fluid)), l = nt(() => !o.value || a(n.showThumbs)), c = nt(() => !o.value || a(n.showToolbar)), u = Xe(!1), f = nt(() => "0.26.3"), d = nt(() => "2026-08-03T21:16:20.532Z"), h = nt(() => A.value), A = Xe(n.locale || "es"), p = Xe(!a(n.minimal)), g = Xe("pages"), v = Xe(""), m = Xe(!1), y = nt(() => {
94424
94428
  const de = v.value.toLowerCase().trim();
94425
94429
  return de ? ve.value.filter((ge) => ge.title.toLowerCase().includes(de)) : ve.value;
94426
94430
  });
@@ -94482,7 +94486,7 @@ const lKe = {
94482
94486
  let pe = null;
94483
94487
  async function Re() {
94484
94488
  if (pe) return pe;
94485
- const de = await import("./html2pdf-lo0OPMZo.js").then((ge) => ge.h);
94489
+ const de = await import("./html2pdf-DxtlCkep.js").then((ge) => ge.h);
94486
94490
  return pe = (de == null ? void 0 : de.default) || de, pe;
94487
94491
  }
94488
94492
  async function De(de) {
@@ -126138,7 +126142,7 @@ const qpt = { class: "nd-rt-toolbar" }, egt = ["title"], tgt = ["title"], rgt =
126138
126142
  function Qr(ie, N) {
126139
126143
  aa(ie, N, O, Z);
126140
126144
  }
126141
- const vu = Xe(!1), Al = Xe(!1), Zl = Xe(!1), Gn = Xe("home"), ql = Xe(null), Os = Xe(""), co = nt(() => "0.26.2"), Go = nt(() => "2026-08-03T20:05:33.865Z"), ph = nt(() => ({
126145
+ const vu = Xe(!1), Al = Xe(!1), Zl = Xe(!1), Gn = Xe("home"), ql = Xe(null), Os = Xe(""), co = nt(() => "0.26.3"), Go = nt(() => "2026-08-03T21:16:20.532Z"), ph = nt(() => ({
126142
126146
  home: d("tab_file"),
126143
126147
  new: d("new"),
126144
126148
  open: d("open"),
@@ -1,5 +1,5 @@
1
- import { c as Va, d as il } from "./index-DRt8rzWp.js";
2
- import { _ as La } from "./jspdf.es.min-BUwNnbu8.js";
1
+ import { c as Va, d as il } from "./index-35TqocHc.js";
2
+ import { _ as La } from "./jspdf.es.min-69sqBnsw.js";
3
3
  var fn = {}, cn = {}, cr, vn;
4
4
  function Q() {
5
5
  if (vn) return cr;
@@ -7303,7 +7303,7 @@ function wu(n) {
7303
7303
  */
7304
7304
  (function(n) {
7305
7305
  function e() {
7306
- return (Ht.canvg ? Promise.resolve(Ht.canvg) : import("./index.es-CyMPKR8v.js")).catch((function(r) {
7306
+ return (Ht.canvg ? Promise.resolve(Ht.canvg) : import("./index.es-7h9BlTTU.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 { D as s, N as r, a as t, S as E, b as m, i, r as l, e as o, t as p } from "./index-DRt8rzWp.js";
1
+ import { D as s, N as r, a as t, S as E, b as m, i, r as l, e as o, t as p } from "./index-35TqocHc.js";
2
2
  export {
3
3
  s as DEFAULT_THEME,
4
4
  r as NexaDesignerElement,