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.
Files changed (25) hide show
  1. package/dist/{html2canvas-BljFROJ3.js → html2canvas-CfXDaoV_.js} +2 -2
  2. package/dist/{html2canvas-9Wez5E_d.js → html2canvas-LflXVpnS.js} +1 -1
  3. package/dist/{html2pdf-BnHxGKGb.js → html2pdf-Bi79Idsl.js} +3 -3
  4. package/dist/{index-TaXb6NxF.js → index-Bg8Qh7hD.js} +75 -72
  5. package/dist/{index.es-Cfi8g62z.js → index.es-48wJ6bnG.js} +2 -2
  6. package/dist/{jspdf.es.min-BdLNvemB.js → jspdf.es.min-COz5Nq2T.js} +2 -2
  7. package/dist/nexabase-report.es.js +1 -1
  8. package/dist/nexabase-report.umd.js +1 -1
  9. package/examples/blazor-report/Components/Pages/Factura.razor +1 -1
  10. package/examples/blazor-report/bin/Debug/net10.0/blazor-report.dll +0 -0
  11. package/examples/blazor-report/bin/Debug/net10.0/blazor-report.exe +0 -0
  12. package/examples/blazor-report/bin/Debug/net10.0/blazor-report.pdb +0 -0
  13. package/examples/blazor-report/obj/Debug/net10.0/apphost.exe +0 -0
  14. package/examples/blazor-report/obj/Debug/net10.0/blazor-report.AssemblyInfo.cs +1 -1
  15. package/examples/blazor-report/obj/Debug/net10.0/blazor-report.AssemblyInfoInputs.cache +1 -1
  16. package/examples/blazor-report/obj/Debug/net10.0/blazor-report.dll +0 -0
  17. package/examples/blazor-report/obj/Debug/net10.0/blazor-report.pdb +0 -0
  18. package/examples/blazor-report/obj/Debug/net10.0/blazor-report.sourcelink.json +1 -1
  19. package/examples/blazor-report/obj/Debug/net10.0/ref/blazor-report.dll +0 -0
  20. package/examples/blazor-report/obj/Debug/net10.0/refint/blazor-report.dll +0 -0
  21. package/examples/blazor-report/obj/Debug/net10.0/rjsmcshtml.dswa.cache.json +1 -1
  22. package/examples/blazor-report/obj/Debug/net10.0/rjsmrazor.dswa.cache.json +1 -1
  23. package/examples/blazor-report/obj/Debug/net10.0/rpswa.dswa.cache.json +1 -1
  24. package/examples/viewer.html +1 -1
  25. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import { a as c } from "./index-TaXb6NxF.js";
2
- import { r as f } from "./html2canvas-9Wez5E_d.js";
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,4 +1,4 @@
1
- import { c as MQ } from "./index-TaXb6NxF.js";
1
+ import { c as MQ } from "./index-Bg8Qh7hD.js";
2
2
  var nt = { exports: {} };
3
3
  /*!
4
4
  * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
@@ -1,6 +1,6 @@
1
- import { g as De, a as Ke, c as Te } from "./index-TaXb6NxF.js";
2
- import { j as Ge } from "./jspdf.es.min-BdLNvemB.js";
3
- import { r as Be } from "./html2canvas-9Wez5E_d.js";
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-BnHxGKGb.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({
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-BdLNvemB.js").then((P) => P.j), c = t.reportDef.value, A = c.layout.page, u = A.orientation === "landscape";
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 p, v, E;
87569
- const e = this.reportDef.layout.bands || [], r = e.find((B) => B.type === "ReportHeader"), n = e.find((B) => B.type === "ReportFooter"), i = e.filter((B) => !["ReportHeader", "PageHeader", "PageFooter", "ReportFooter"].includes(B.type));
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((B) => B.type === "DataBand"), o = i.filter((B) => B.type === "DetailBand"), s = i.find((B) => B.type === "GroupHeader" && B.masterField), l = i.find((B) => B.type === "GroupFooter" && B.masterField), c = s == null ? void 0 : s.masterField, A = i.filter((B) => !["DataBand", "DetailBand", "GroupHeader", "GroupFooter"].includes(B.type));
87572
- for (const B of A)
87573
- yield { band: B, computedHeight: B.height || 0 };
87574
- if (a.length === 0) return;
87575
- const u = a[0], h = this.getBandData(u), f = u.dataSource || ((v = (p = this.reportDef.dataSources) == null ? void 0 : p[0]) == null ? void 0 : v.alias) || "main", g = o.filter((B) => !B.dataSource || !B.childField || !B.masterField ? !1 : (B.parentDataSource || f) === f), d = (B) => B == null ? "" : String(B);
87576
- if (Rh(u)) {
87577
- const B = (E = u.elements) == null ? void 0 : E.find((m) => m.type === "Table");
87578
- let y = u.height || 0;
87579
- B && B.tableGroupBy ? y = this.estimateGroupedTableHeight(B, h) : B && (y = Kd(B) + h.length * Xd(B)), yield {
87580
- band: u,
87581
- rows: h,
87582
- computedHeight: y
87583
- };
87584
- } else {
87585
- let B = null, y = /* @__PURE__ */ new Map();
87586
- if (c)
87587
- for (const m of h) {
87588
- const w = d(Ui(c, m));
87589
- y.set(w, (y.get(w) || 0) + 1);
87590
- }
87591
- for (let m = 0; m < h.length; m++) {
87592
- const w = h[m], M = c ? d(Ui(c, w)) : "";
87593
- c && (B === null && (B = M), M !== B ? (l && (yield {
87594
- band: l,
87595
- rows: [h[m - 1] || w],
87596
- groupKey: B,
87597
- groupCount: y.get(B) || 0,
87598
- computedHeight: l.height || 0
87599
- }), B = M, s && (yield {
87600
- band: s,
87601
- rows: [w],
87602
- groupKey: B,
87603
- groupCount: y.get(B) || 0,
87604
- computedHeight: s.height || 0
87605
- })) : m === 0 && s && (yield {
87606
- band: s,
87607
- rows: [w],
87608
- groupKey: B,
87609
- groupCount: y.get(B) || 0,
87610
- computedHeight: s.height || 0
87611
- })), yield {
87612
- band: u,
87613
- rows: [w],
87614
- rowIndex: m,
87615
- totalRows: h.length,
87616
- groupKey: M,
87617
- groupCount: y.get(M) || 0,
87618
- computedHeight: u.height || 0
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
- c && B !== null && l && (yield {
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.11"), u = Vt(() => "2026-05-10T21:48:51.842Z"), h = Dt(1), f = Vt(() => {
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-BnHxGKGb.js").then((ue) => ue.h);
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-TaXb6NxF.js";
2
- import { _ as Xa } from "./jspdf.es.min-BdLNvemB.js";
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-BljFROJ3.js").then((c) => c.h)).catch(function(c) {
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-Cfi8g62z.js")).catch(function(r) {
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;
@@ -1,4 +1,4 @@
1
- import { N as r, S as s, i as t, r as S } from "./index-TaXb6NxF.js";
1
+ import { N as r, S as s, i as t, r as S } from "./index-Bg8Qh7hD.js";
2
2
  export {
3
3
  r as NexaViewerElement,
4
4
  s as SYSTEM_VARIABLES,