nexabase-report 0.25.5 → 0.25.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.
- package/dist/{html2pdf-CI4pXRBB.js → html2pdf-9nWFTf3Z.js} +2 -2
- package/dist/{index-u81FP0bV.js → index-DImmtRwH.js} +14 -11
- package/dist/{index.es-BccNNzSO.js → index.es-CQVwcR1V.js} +2 -2
- package/dist/{jspdf.es.min-Bvm901Fa.js → jspdf.es.min-B3BxXJbH.js} +1 -1
- package/dist/nexabase-report.es.js +1 -1
- package/dist/nexabase-report.umd.js +40 -40
- package/dist/{pptxgen.es-DQvKMrxG.js → pptxgen.es-D6xuhz5f.js} +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as Nl, c as ut, d as Vl } from "./index-
|
|
2
|
-
import { j as Xl } from "./jspdf.es.min-
|
|
1
|
+
import { g as Nl, c as ut, d as Vl } from "./index-DImmtRwH.js";
|
|
2
|
+
import { j as Xl } from "./jspdf.es.min-B3BxXJbH.js";
|
|
3
3
|
function Jl(Pe, br) {
|
|
4
4
|
for (var fe = 0; fe < br.length; fe++) {
|
|
5
5
|
const HA = br[fe];
|
|
@@ -62378,10 +62378,13 @@ class wi {
|
|
|
62378
62378
|
// would leave only 3px for the flattened subreport — forcing a page break.
|
|
62379
62379
|
*emitBandWithSubReports(e, r, n, i = {}) {
|
|
62380
62380
|
const a = (e.elements || []).filter((h) => h.type === "SubReport" && h.subReportDefinition), o = a.length > 0 ? (e.elements || []).filter((h) => !a.includes(h)) : e.elements || [], s = a.length > 0 ? { ...e, elements: o } : e, l = this.growBand(s, r, n.rowIdx, n.totalRows, n.groupKey, n.groupCount, void 0, n.groupRows), c = l.height, u = HV(this.reportDef), d = [];
|
|
62381
|
-
for (const h of a)
|
|
62382
|
-
|
|
62383
|
-
|
|
62384
|
-
|
|
62381
|
+
for (const h of a)
|
|
62382
|
+
if (h.subReportDataSource)
|
|
62383
|
+
this.resolveSubReportDataMap(h, r) && d.push(h);
|
|
62384
|
+
else {
|
|
62385
|
+
const A = this.computeSubReportContentHeight(h, r);
|
|
62386
|
+
c + A <= u && d.push(h);
|
|
62387
|
+
}
|
|
62385
62388
|
yield {
|
|
62386
62389
|
band: d.length < a.length ? { ...e, elements: (e.elements || []).filter((h) => !d.includes(h)) } : s,
|
|
62387
62390
|
rows: [r],
|
|
@@ -93265,7 +93268,7 @@ function WWe(t) {
|
|
|
93265
93268
|
let A = null, p = null;
|
|
93266
93269
|
try {
|
|
93267
93270
|
await new Promise((P) => setTimeout(P, 50)), typeof document < "u" && ((g = document.fonts) != null && g.ready) && await document.fonts.ready, A = await LB(t.reportPaperRef.value, t.apiBaseUrl), p = await HB(t.reportPaperRef.value);
|
|
93268
|
-
const { default: y } = await import("./html2pdf-
|
|
93271
|
+
const { default: y } = await import("./html2pdf-9nWFTf3Z.js").then((P) => P.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"), b = (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)), D = (I == null ? void 0 : I.offsetWidth) || 794, T = (I == null ? void 0 : I.offsetHeight) || 1123, R = Math.max(1, t.pagination.value.totalPages), k = await y().set({
|
|
93269
93272
|
filename: x,
|
|
93270
93273
|
margin: 0,
|
|
93271
93274
|
image: { type: "jpeg", quality: 0.98 },
|
|
@@ -93296,7 +93299,7 @@ function WWe(t) {
|
|
|
93296
93299
|
}
|
|
93297
93300
|
async function a() {
|
|
93298
93301
|
var j;
|
|
93299
|
-
const h = t.reportDef.value, { jsPDF: A } = await import("./jspdf.es.min-
|
|
93302
|
+
const h = t.reportDef.value, { jsPDF: A } = await import("./jspdf.es.min-B3BxXJbH.js").then((Q) => Q.j), p = h.layout.page, g = p.orientation === "landscape";
|
|
93300
93303
|
let v = 210, m = 297;
|
|
93301
93304
|
if (p.format === "Letter" ? (v = 215.9, m = 279.4) : p.format === "Ticket" && (v = 80, m = 200), g) {
|
|
93302
93305
|
const Q = v;
|
|
@@ -93540,7 +93543,7 @@ function WWe(t) {
|
|
|
93540
93543
|
t.isExportingPdf.value = !0;
|
|
93541
93544
|
try {
|
|
93542
93545
|
await new Promise((k) => setTimeout(k, 50)), typeof document < "u" && ((A = document.fonts) != null && A.ready) && await document.fonts.ready;
|
|
93543
|
-
const v = await LB(t.reportPaperRef.value, t.apiBaseUrl), m = await HB(t.reportPaperRef.value), { default: y } = await import("./html2pdf-
|
|
93546
|
+
const v = await LB(t.reportPaperRef.value, t.apiBaseUrl), m = await HB(t.reportPaperRef.value), { default: y } = await import("./html2pdf-9nWFTf3Z.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, b = (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, D = (x == null ? void 0 : x.offsetHeight) || 1123, T = Math.max(1, t.pagination.value.totalPages), S = await y().set({
|
|
93544
93547
|
filename: "report.pdf",
|
|
93545
93548
|
margin: 0,
|
|
93546
93549
|
image: { type: "jpeg", quality: 0.98 },
|
|
@@ -93724,7 +93727,7 @@ ${E.outerHTML}
|
|
|
93724
93727
|
t.isExportingPdf.value = !0;
|
|
93725
93728
|
try {
|
|
93726
93729
|
await new Promise((T) => setTimeout(T, 50)), typeof document < "u" && ((g = document.fonts) != null && g.ready) && await document.fonts.ready;
|
|
93727
|
-
const m = await LB(A, t.apiBaseUrl), y = await HB(A), { default: E } = await import("./html2pdf-
|
|
93730
|
+
const m = await LB(A, t.apiBaseUrl), y = await HB(A), { default: E } = await import("./html2pdf-9nWFTf3Z.js").then((T) => T.h), { default: B } = await import("./pptxgen.es-D6xuhz5f.js"), x = Array.from(A.querySelectorAll(".report-page"));
|
|
93728
93731
|
if (x.length === 0) {
|
|
93729
93732
|
gi("PPTX export — no rendered pages were found", null);
|
|
93730
93733
|
return;
|
|
@@ -94068,7 +94071,7 @@ const eKe = {
|
|
|
94068
94071
|
}
|
|
94069
94072
|
return !!ue;
|
|
94070
94073
|
}
|
|
94071
|
-
const o = dt(() => a(n.minimal)), s = dt(() => a(n.fluid)), l = dt(() => !o.value || a(n.showThumbs)), c = dt(() => !o.value || a(n.showToolbar)), u = Ke(!1), d = dt(() => "0.25.
|
|
94074
|
+
const o = dt(() => a(n.minimal)), s = dt(() => a(n.fluid)), l = dt(() => !o.value || a(n.showThumbs)), c = dt(() => !o.value || a(n.showToolbar)), u = Ke(!1), d = dt(() => "0.25.6"), f = dt(() => "2026-07-31T00:12:55.262Z"), h = dt(() => A.value), A = Ke(n.locale || "es"), p = Ke(!a(n.minimal)), g = Ke("pages"), v = Ke(""), m = Ke(!1), y = dt(() => {
|
|
94072
94075
|
const ue = v.value.toLowerCase().trim();
|
|
94073
94076
|
return ue ? Ae.value.filter((ve) => ve.title.toLowerCase().includes(ue)) : Ae.value;
|
|
94074
94077
|
});
|
|
@@ -94130,7 +94133,7 @@ const eKe = {
|
|
|
94130
94133
|
let pe = null;
|
|
94131
94134
|
async function Qe() {
|
|
94132
94135
|
if (pe) return pe;
|
|
94133
|
-
const ue = await import("./html2pdf-
|
|
94136
|
+
const ue = await import("./html2pdf-9nWFTf3Z.js").then((ve) => ve.h);
|
|
94134
94137
|
return pe = (ue == null ? void 0 : ue.default) || ue, pe;
|
|
94135
94138
|
}
|
|
94136
94139
|
async function De(ue) {
|
|
@@ -125046,7 +125049,7 @@ const WAt = { class: "nd-rt-toolbar" }, KAt = ["title"], XAt = ["title"], $At =
|
|
|
125046
125049
|
function Ta(ie, N) {
|
|
125047
125050
|
Xr(ie, N, O, X);
|
|
125048
125051
|
}
|
|
125049
|
-
const cs = Ke(!1), yi = Ke(!1), Oo = Ke(!1), un = Ke("home"), ua = Ke(null), co = Ke(""), Cr = dt(() => "0.25.
|
|
125052
|
+
const cs = Ke(!1), yi = Ke(!1), Oo = Ke(!1), un = Ke("home"), ua = Ke(null), co = Ke(""), Cr = dt(() => "0.25.6"), Xl = dt(() => "2026-07-31T00:12:55.262Z"), Ah = dt(() => ({
|
|
125050
125053
|
home: f("tab_file"),
|
|
125051
125054
|
new: f("new"),
|
|
125052
125055
|
open: f("open"),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as Va, d as il } from "./index-
|
|
2
|
-
import { _ as La } from "./jspdf.es.min-
|
|
1
|
+
import { c as Va, d as il } from "./index-DImmtRwH.js";
|
|
2
|
+
import { _ as La } from "./jspdf.es.min-B3BxXJbH.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-
|
|
7306
|
+
return (Ht.canvg ? Promise.resolve(Ht.canvg) : import("./index.es-CQVwcR1V.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-
|
|
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-DImmtRwH.js";
|
|
2
2
|
export {
|
|
3
3
|
s as DEFAULT_THEME,
|
|
4
4
|
r as NexaDesignerElement,
|