nexabase-report 0.2.11 → 0.2.12
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/{html2canvas-BljFROJ3.js → html2canvas-CfXDaoV_.js} +2 -2
- package/dist/{html2canvas-9Wez5E_d.js → html2canvas-LflXVpnS.js} +1 -1
- package/dist/{html2pdf-BnHxGKGb.js → html2pdf-Bi79Idsl.js} +3 -3
- package/dist/{index-TaXb6NxF.js → index-Bg8Qh7hD.js} +75 -72
- package/dist/{index.es-Cfi8g62z.js → index.es-48wJ6bnG.js} +2 -2
- package/dist/{jspdf.es.min-BdLNvemB.js → jspdf.es.min-COz5Nq2T.js} +2 -2
- package/dist/nexabase-report.es.js +1 -1
- package/dist/nexabase-report.umd.js +1 -1
- package/examples/blazor-report/Components/Pages/Factura.razor +1 -1
- package/examples/blazor-report/bin/Debug/net10.0/blazor-report.dll +0 -0
- package/examples/blazor-report/bin/Debug/net10.0/blazor-report.exe +0 -0
- package/examples/blazor-report/bin/Debug/net10.0/blazor-report.pdb +0 -0
- package/examples/blazor-report/obj/Debug/net10.0/apphost.exe +0 -0
- package/examples/blazor-report/obj/Debug/net10.0/blazor-report.AssemblyInfo.cs +1 -1
- package/examples/blazor-report/obj/Debug/net10.0/blazor-report.AssemblyInfoInputs.cache +1 -1
- package/examples/blazor-report/obj/Debug/net10.0/blazor-report.dll +0 -0
- package/examples/blazor-report/obj/Debug/net10.0/blazor-report.pdb +0 -0
- package/examples/blazor-report/obj/Debug/net10.0/blazor-report.sourcelink.json +1 -1
- package/examples/blazor-report/obj/Debug/net10.0/ref/blazor-report.dll +0 -0
- package/examples/blazor-report/obj/Debug/net10.0/refint/blazor-report.dll +0 -0
- package/examples/blazor-report/obj/Debug/net10.0/rjsmcshtml.dswa.cache.json +1 -1
- package/examples/blazor-report/obj/Debug/net10.0/rjsmrazor.dswa.cache.json +1 -1
- package/examples/blazor-report/obj/Debug/net10.0/rpswa.dswa.cache.json +1 -1
- package/examples/viewer.html +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as c } from "./index-
|
|
2
|
-
import { r as f } from "./html2canvas-
|
|
1
|
+
import { a as c } from "./index-Bg8Qh7hD.js";
|
|
2
|
+
import { r as f } from "./html2canvas-LflXVpnS.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-
|
|
2
|
-
import { j as Ge } from "./jspdf.es.min-
|
|
3
|
-
import { r as Be } from "./html2canvas-
|
|
1
|
+
import { g as De, a as Ke, c as Te } from "./index-Bg8Qh7hD.js";
|
|
2
|
+
import { j as Ge } from "./jspdf.es.min-COz5Nq2T.js";
|
|
3
|
+
import { r as Be } from "./html2canvas-LflXVpnS.js";
|
|
4
4
|
function Ue(ge, we) {
|
|
5
5
|
for (var me = 0; me < we.length; me++) {
|
|
6
6
|
const ce = we[me];
|
|
@@ -87132,7 +87132,7 @@ function INe(t) {
|
|
|
87132
87132
|
let l = null, c = null;
|
|
87133
87133
|
try {
|
|
87134
87134
|
await new Promise((T) => setTimeout(T, 50)), typeof document < "u" && ((A = document.fonts) != null && A.ready) && await document.fonts.ready, l = await bwe(t.reportPaperRef.value, t.apiBaseUrl), c = await Nwe(t.reportPaperRef.value);
|
|
87135
|
-
const { default: f } = await import("./html2pdf-
|
|
87135
|
+
const { default: f } = await import("./html2pdf-Bi79Idsl.js").then((T) => T.h), g = t.reportDef.value, d = g.layout.page, p = (((u = g.metadata) == null ? void 0 : u.name) || "reporte") + ".pdf", v = t.reportPaperRef.value.querySelector(".report-page"), E = (v == null ? void 0 : v.offsetWidth) || t.reportPaperRef.value.offsetWidth || void 0, B = (v == null ? void 0 : v.offsetHeight) || void 0, y = Math.min(3, Math.max(2, (typeof window < "u" ? window.devicePixelRatio : 2) || 2)), m = (v == null ? void 0 : v.offsetWidth) || 794, w = (v == null ? void 0 : v.offsetHeight) || 1123, M = Math.max(1, t.pagination.value.totalPages), I = await f().set({
|
|
87136
87136
|
filename: p,
|
|
87137
87137
|
margin: 0,
|
|
87138
87138
|
image: { type: "jpeg", quality: 0.98 },
|
|
@@ -87212,7 +87212,7 @@ function INe(t) {
|
|
|
87212
87212
|
const a = async () => {
|
|
87213
87213
|
var k;
|
|
87214
87214
|
if (await i()) return;
|
|
87215
|
-
const { jsPDF: l } = await import("./jspdf.es.min-
|
|
87215
|
+
const { jsPDF: l } = await import("./jspdf.es.min-COz5Nq2T.js").then((P) => P.j), c = t.reportDef.value, A = c.layout.page, u = A.orientation === "landscape";
|
|
87216
87216
|
let h = 210, f = 297;
|
|
87217
87217
|
if (A.format === "Letter" ? (h = 215.9, f = 279.4) : A.format === "Ticket" && (h = 80, f = 200), u) {
|
|
87218
87218
|
const P = h;
|
|
@@ -87565,79 +87565,82 @@ class Yi {
|
|
|
87565
87565
|
}
|
|
87566
87566
|
// Fase 1: Generador de flujo
|
|
87567
87567
|
*generateStream() {
|
|
87568
|
-
var
|
|
87569
|
-
const e = this.reportDef.layout.bands || [], r = e.find((
|
|
87568
|
+
var u, h, f;
|
|
87569
|
+
const e = this.reportDef.layout.bands || [], r = e.find((g) => g.type === "ReportHeader"), n = e.find((g) => g.type === "ReportFooter"), i = e.filter((g) => !["ReportHeader", "PageHeader", "PageFooter", "ReportFooter"].includes(g.type));
|
|
87570
87570
|
r && (yield { band: r, computedHeight: r.height || 0 });
|
|
87571
|
-
const a = i.filter((
|
|
87572
|
-
for (const
|
|
87573
|
-
yield { band:
|
|
87574
|
-
if (a.length
|
|
87575
|
-
|
|
87576
|
-
|
|
87577
|
-
|
|
87578
|
-
|
|
87579
|
-
|
|
87580
|
-
|
|
87581
|
-
|
|
87582
|
-
|
|
87583
|
-
|
|
87584
|
-
|
|
87585
|
-
|
|
87586
|
-
|
|
87587
|
-
|
|
87588
|
-
|
|
87589
|
-
|
|
87590
|
-
|
|
87591
|
-
|
|
87592
|
-
|
|
87593
|
-
|
|
87594
|
-
|
|
87595
|
-
|
|
87596
|
-
|
|
87597
|
-
|
|
87598
|
-
|
|
87599
|
-
|
|
87600
|
-
|
|
87601
|
-
|
|
87602
|
-
|
|
87603
|
-
|
|
87604
|
-
|
|
87605
|
-
|
|
87606
|
-
|
|
87607
|
-
|
|
87608
|
-
|
|
87609
|
-
|
|
87610
|
-
|
|
87611
|
-
|
|
87612
|
-
|
|
87613
|
-
|
|
87614
|
-
|
|
87615
|
-
|
|
87616
|
-
|
|
87617
|
-
|
|
87618
|
-
|
|
87619
|
-
|
|
87620
|
-
for (const x of g) {
|
|
87621
|
-
const I = this.getBandData(x), T = Ui(x.masterField, w), b = I.filter((C) => d(Ui(x.childField, C)) === d(T));
|
|
87622
|
-
for (let C = 0; C < b.length; C++)
|
|
87623
|
-
yield {
|
|
87624
|
-
band: x,
|
|
87625
|
-
rows: [b[C]],
|
|
87626
|
-
rowIndex: C,
|
|
87627
|
-
totalRows: b.length,
|
|
87628
|
-
computedHeight: x.height || 0
|
|
87571
|
+
const a = i.filter((g) => g.type === "DataBand"), o = i.filter((g) => g.type === "DetailBand"), s = i.find((g) => g.type === "GroupHeader" && g.masterField), l = i.find((g) => g.type === "GroupFooter" && g.masterField), c = s == null ? void 0 : s.masterField, A = i.filter((g) => !["DataBand", "DetailBand", "GroupHeader", "GroupFooter"].includes(g.type));
|
|
87572
|
+
for (const g of A)
|
|
87573
|
+
yield { band: g, computedHeight: g.height || 0 };
|
|
87574
|
+
if (a.length !== 0) {
|
|
87575
|
+
for (const g of a) {
|
|
87576
|
+
const d = this.getBandData(g), p = g.dataSource || ((h = (u = this.reportDef.dataSources) == null ? void 0 : u[0]) == null ? void 0 : h.alias) || "main", v = o.filter((B) => !B.dataSource || !B.childField || !B.masterField ? !1 : (B.parentDataSource || p) === p), E = (B) => B == null ? "" : String(B);
|
|
87577
|
+
if (Rh(g)) {
|
|
87578
|
+
const B = (f = g.elements) == null ? void 0 : f.find((m) => m.type === "Table");
|
|
87579
|
+
let y = g.height || 0;
|
|
87580
|
+
B && B.tableGroupBy ? y = this.estimateGroupedTableHeight(B, d) : B && (y = Kd(B) + d.length * Xd(B)), yield {
|
|
87581
|
+
band: g,
|
|
87582
|
+
rows: d,
|
|
87583
|
+
computedHeight: y
|
|
87584
|
+
};
|
|
87585
|
+
} else {
|
|
87586
|
+
let B = null, y = /* @__PURE__ */ new Map();
|
|
87587
|
+
if (c)
|
|
87588
|
+
for (const m of d) {
|
|
87589
|
+
const w = E(Ui(c, m));
|
|
87590
|
+
y.set(w, (y.get(w) || 0) + 1);
|
|
87591
|
+
}
|
|
87592
|
+
for (let m = 0; m < d.length; m++) {
|
|
87593
|
+
const w = d[m], M = c ? E(Ui(c, w)) : "";
|
|
87594
|
+
c && (B === null && (B = M), M !== B ? (l && (yield {
|
|
87595
|
+
band: l,
|
|
87596
|
+
rows: [d[m - 1] || w],
|
|
87597
|
+
groupKey: B,
|
|
87598
|
+
groupCount: y.get(B) || 0,
|
|
87599
|
+
computedHeight: l.height || 0
|
|
87600
|
+
}), B = M, s && (yield {
|
|
87601
|
+
band: s,
|
|
87602
|
+
rows: [w],
|
|
87603
|
+
groupKey: B,
|
|
87604
|
+
groupCount: y.get(B) || 0,
|
|
87605
|
+
computedHeight: s.height || 0
|
|
87606
|
+
})) : m === 0 && s && (yield {
|
|
87607
|
+
band: s,
|
|
87608
|
+
rows: [w],
|
|
87609
|
+
groupKey: B,
|
|
87610
|
+
groupCount: y.get(B) || 0,
|
|
87611
|
+
computedHeight: s.height || 0
|
|
87612
|
+
})), yield {
|
|
87613
|
+
band: g,
|
|
87614
|
+
rows: [w],
|
|
87615
|
+
rowIndex: m,
|
|
87616
|
+
totalRows: d.length,
|
|
87617
|
+
groupKey: M,
|
|
87618
|
+
groupCount: y.get(M) || 0,
|
|
87619
|
+
computedHeight: g.height || 0
|
|
87629
87620
|
};
|
|
87621
|
+
for (const x of v) {
|
|
87622
|
+
const I = this.getBandData(x), T = Ui(x.masterField, w), b = I.filter((C) => E(Ui(x.childField, C)) === E(T));
|
|
87623
|
+
for (let C = 0; C < b.length; C++)
|
|
87624
|
+
yield {
|
|
87625
|
+
band: x,
|
|
87626
|
+
rows: [b[C]],
|
|
87627
|
+
rowIndex: C,
|
|
87628
|
+
totalRows: b.length,
|
|
87629
|
+
computedHeight: x.height || 0
|
|
87630
|
+
};
|
|
87631
|
+
}
|
|
87632
|
+
}
|
|
87633
|
+
c && l && B !== null && (yield {
|
|
87634
|
+
band: l,
|
|
87635
|
+
rows: [d[d.length - 1]],
|
|
87636
|
+
groupKey: B,
|
|
87637
|
+
groupCount: y.get(B) || 0,
|
|
87638
|
+
computedHeight: l.height || 0
|
|
87639
|
+
});
|
|
87630
87640
|
}
|
|
87631
87641
|
}
|
|
87632
|
-
|
|
87633
|
-
band: l,
|
|
87634
|
-
rows: [h[h.length - 1] || {}],
|
|
87635
|
-
groupKey: B,
|
|
87636
|
-
groupCount: y.get(B) || 0,
|
|
87637
|
-
computedHeight: l.height || 0
|
|
87638
|
-
});
|
|
87642
|
+
n && (yield { band: n, computedHeight: n.height || 0 });
|
|
87639
87643
|
}
|
|
87640
|
-
n && (yield { band: n, computedHeight: n.height || 0 });
|
|
87641
87644
|
}
|
|
87642
87645
|
// Fase 2: Paginador
|
|
87643
87646
|
async generatePages() {
|
|
@@ -87847,7 +87850,7 @@ const QNe = {
|
|
|
87847
87850
|
}
|
|
87848
87851
|
return !!se;
|
|
87849
87852
|
}
|
|
87850
|
-
const o = Vt(() => a(n.minimal)), s = Vt(() => !o.value || a(n.showThumbs)), l = Vt(() => !o.value || a(n.showToolbar)), c = Dt(!1), A = Vt(() => "0.2.
|
|
87853
|
+
const o = Vt(() => a(n.minimal)), s = Vt(() => !o.value || a(n.showThumbs)), l = Vt(() => !o.value || a(n.showToolbar)), c = Dt(!1), A = Vt(() => "0.2.12"), u = Vt(() => "2026-05-10T22:05:49.239Z"), h = Dt(1), f = Vt(() => {
|
|
87851
87854
|
if (n.currentPage === void 0 || n.currentPage === null) return;
|
|
87852
87855
|
const se = Number(n.currentPage);
|
|
87853
87856
|
if (!(!Number.isFinite(se) || se < 1))
|
|
@@ -87898,7 +87901,7 @@ const QNe = {
|
|
|
87898
87901
|
let D = null;
|
|
87899
87902
|
async function le() {
|
|
87900
87903
|
if (D) return D;
|
|
87901
|
-
const se = await import("./html2pdf-
|
|
87904
|
+
const se = await import("./html2pdf-Bi79Idsl.js").then((ue) => ue.h);
|
|
87902
87905
|
return D = (se == null ? void 0 : se.default) || se, D;
|
|
87903
87906
|
}
|
|
87904
87907
|
async function z(se) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as Ke, a as Do } from "./index-
|
|
2
|
-
import { _ as Xa } from "./jspdf.es.min-
|
|
1
|
+
import { c as Ke, a as Do } from "./index-Bg8Qh7hD.js";
|
|
2
|
+
import { _ as Xa } from "./jspdf.es.min-COz5Nq2T.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-
|
|
4183
|
+
return (Ht.html2canvas ? Promise.resolve(Ht.html2canvas) : import("./html2canvas-CfXDaoV_.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-
|
|
7305
|
+
return (Ht.canvg ? Promise.resolve(Ht.canvg) : import("./index.es-48wJ6bnG.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;
|