nexabase-report 0.1.2 → 0.1.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.
- package/dist/{html2canvas-Bt7A8WrM.js → html2canvas-D50ZZ6bl.js} +1 -1
- package/dist/{html2canvas-ChtVTMFS.js → html2canvas-i0L2rKdt.js} +2 -2
- package/dist/{html2pdf-DsfBPN4L.js → html2pdf-D668c5FJ.js} +3 -3
- package/dist/{index-D3l3xYdG.js → index-dmi6__Nc.js} +43 -17
- package/dist/{index.es-CmGmMwAx.js → index.es-DrkNTh0H.js} +2 -2
- package/dist/{jspdf.es.min-M0h3R1kR.js → jspdf.es.min-N6hWbNim.js} +2 -2
- package/dist/nexabase-report.es.js +1 -1
- package/dist/nexabase-report.umd.js +2 -2
- 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-dmi6__Nc.js";
|
|
2
|
+
import { r as f } from "./html2canvas-D50ZZ6bl.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-dmi6__Nc.js";
|
|
2
|
+
import { j as Ge } from "./jspdf.es.min-N6hWbNim.js";
|
|
3
|
+
import { r as Be } from "./html2canvas-D50ZZ6bl.js";
|
|
4
4
|
function Ue(ge, we) {
|
|
5
5
|
for (var me = 0; me < we.length; me++) {
|
|
6
6
|
const ce = we[me];
|
|
@@ -66343,18 +66343,43 @@ const fme = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
66343
66343
|
var u;
|
|
66344
66344
|
const { type: c, config: l } = t.widget, A = t.data || [];
|
|
66345
66345
|
if (c === "Chart") {
|
|
66346
|
-
const h = l.chartType || "bar", f =
|
|
66346
|
+
const h = l.chartType || "bar", f = ["#6366f1", "#10b981", "#f59e0b", "#ef4444", "#8b5cf6", "#06b6d4", "#ec4899"];
|
|
66347
|
+
if (h === "pie" || h === "doughnut")
|
|
66348
|
+
return {
|
|
66349
|
+
color: f,
|
|
66350
|
+
tooltip: { trigger: "item", formatter: "{b}: {c} ({d}%)" },
|
|
66351
|
+
legend: { bottom: 5, left: "center", itemWidth: 10, itemHeight: 10, textStyle: { fontSize: 10 } },
|
|
66352
|
+
series: [{
|
|
66353
|
+
type: "pie",
|
|
66354
|
+
radius: h === "doughnut" ? ["45%", "75%"] : "75%",
|
|
66355
|
+
center: ["50%", "45%"],
|
|
66356
|
+
avoidLabelOverlap: !0,
|
|
66357
|
+
itemStyle: {
|
|
66358
|
+
borderRadius: 6,
|
|
66359
|
+
borderColor: "#fff",
|
|
66360
|
+
borderWidth: 2
|
|
66361
|
+
},
|
|
66362
|
+
label: { show: !1 },
|
|
66363
|
+
emphasis: { label: { show: !0, fontWeight: "bold" } },
|
|
66364
|
+
data: A.map((v) => ({
|
|
66365
|
+
name: String(v[l.argumentField] || ""),
|
|
66366
|
+
value: Number(v[l.valueField]) || 0
|
|
66367
|
+
}))
|
|
66368
|
+
}]
|
|
66369
|
+
};
|
|
66370
|
+
const g = A.map((v) => String(v[l.argumentField] || "")), d = A.map((v) => Number(v[l.valueField]) || 0);
|
|
66347
66371
|
return {
|
|
66348
|
-
|
|
66372
|
+
color: f,
|
|
66373
|
+
grid: { top: 20, right: 10, bottom: 40, left: 40, containLabel: !0 },
|
|
66349
66374
|
tooltip: { trigger: "axis" },
|
|
66350
|
-
xAxis: { type: "category", data:
|
|
66351
|
-
yAxis: { type: "value" },
|
|
66375
|
+
xAxis: { type: "category", data: g, axisLabel: { fontSize: 10 } },
|
|
66376
|
+
yAxis: { type: "value", axisLabel: { fontSize: 10 } },
|
|
66352
66377
|
series: [{
|
|
66353
|
-
data:
|
|
66378
|
+
data: d,
|
|
66354
66379
|
type: h === "area" ? "line" : h,
|
|
66355
66380
|
smooth: !0,
|
|
66356
66381
|
areaStyle: h === "area" ? { opacity: 0.3 } : void 0,
|
|
66357
|
-
itemStyle: {
|
|
66382
|
+
itemStyle: { borderRadius: [4, 4, 0, 0] }
|
|
66358
66383
|
}]
|
|
66359
66384
|
};
|
|
66360
66385
|
} else if (c === "Gauge") {
|
|
@@ -66365,21 +66390,22 @@ const fme = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
66365
66390
|
startAngle: 180,
|
|
66366
66391
|
endAngle: 0,
|
|
66367
66392
|
center: ["50%", "75%"],
|
|
66368
|
-
radius: "
|
|
66393
|
+
radius: "100%",
|
|
66369
66394
|
min: l.min || 0,
|
|
66370
66395
|
max: l.max || 100,
|
|
66371
|
-
progress: { show: !0, width: 12 },
|
|
66372
|
-
axisLine: { lineStyle: { width: 12 } },
|
|
66396
|
+
progress: { show: !0, width: 12, itemStyle: { color: "#6366f1" } },
|
|
66397
|
+
axisLine: { lineStyle: { width: 12, color: [[1, "#e2e8f0"]] } },
|
|
66373
66398
|
axisTick: { show: !1 },
|
|
66374
66399
|
splitLine: { show: !1 },
|
|
66375
66400
|
axisLabel: { show: !1 },
|
|
66376
|
-
pointer: { show: !0, length: "60%", width: 4 },
|
|
66401
|
+
pointer: { show: !0, length: "60%", width: 4, itemStyle: { color: "#475569" } },
|
|
66377
66402
|
detail: {
|
|
66378
66403
|
valueAnimation: !0,
|
|
66379
66404
|
formatter: "{value}",
|
|
66380
66405
|
offsetCenter: [0, "15%"],
|
|
66381
|
-
fontSize:
|
|
66382
|
-
fontWeight: "bold"
|
|
66406
|
+
fontSize: 20,
|
|
66407
|
+
fontWeight: "bold",
|
|
66408
|
+
color: "#1e293b"
|
|
66383
66409
|
},
|
|
66384
66410
|
data: [{ value: h }]
|
|
66385
66411
|
}]
|
|
@@ -66421,7 +66447,7 @@ const fme = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
66421
66447
|
]);
|
|
66422
66448
|
};
|
|
66423
66449
|
}
|
|
66424
|
-
}), Rme = ".nexa-widget-content-root[data-v-
|
|
66450
|
+
}), Rme = ".nexa-widget-content-root[data-v-8181effa]{width:100%;height:100%;display:flex;flex-direction:column;overflow:hidden}.nexa-indicator-box[data-v-8181effa]{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center}.nexa-ind-value[data-v-8181effa]{font-size:2.2rem;font-weight:800;line-height:1;margin-bottom:4px}.nexa-ind-pre[data-v-8181effa],.nexa-ind-suf[data-v-8181effa]{font-size:1rem;font-weight:600;opacity:.6}.nexa-ind-label[data-v-8181effa]{font-size:.75rem;font-weight:600;color:#64748b;text-transform:uppercase;letter-spacing:.05em}.nexa-widget-chart-container[data-v-8181effa]{flex:1;width:100%;height:100%}.nexa-widget-fallback[data-v-8181effa]{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#94a3b8;font-size:.8rem}", Dme = /* @__PURE__ */ hp(Fme, [["styles", [Rme]], ["__scopeId", "data-v-8181effa"]]);
|
|
66425
66451
|
function R6(r, e) {
|
|
66426
66452
|
return e.reduce((t, n) => t + (Number(Qo(r, n)) || 0), 0);
|
|
66427
66453
|
}
|
|
@@ -81228,7 +81254,7 @@ const Hxe = {
|
|
|
81228
81254
|
}
|
|
81229
81255
|
return !!P;
|
|
81230
81256
|
}
|
|
81231
|
-
const o = fr(() => a(n.minimal)), s = fr(() => !o.value || a(n.showThumbs)), c = fr(() => !o.value || a(n.showToolbar)), l = tr(!1), A = fr(() => "0.1.
|
|
81257
|
+
const o = fr(() => a(n.minimal)), s = fr(() => !o.value || a(n.showThumbs)), c = fr(() => !o.value || a(n.showToolbar)), l = tr(!1), A = fr(() => "0.1.2"), u = fr(() => "2026-05-02T23:21:41.475Z"), h = tr(1), f = fr(() => {
|
|
81232
81258
|
if (n.currentPage === void 0 || n.currentPage === null) return;
|
|
81233
81259
|
const P = Number(n.currentPage);
|
|
81234
81260
|
if (!(!Number.isFinite(P) || P < 1))
|
|
@@ -81295,7 +81321,7 @@ const Hxe = {
|
|
|
81295
81321
|
let Q = null;
|
|
81296
81322
|
async function F() {
|
|
81297
81323
|
if (Q) return Q;
|
|
81298
|
-
const P = await import("./html2pdf-
|
|
81324
|
+
const P = await import("./html2pdf-D668c5FJ.js").then((V) => V.h);
|
|
81299
81325
|
return Q = (P == null ? void 0 : P.default) || P, Q;
|
|
81300
81326
|
}
|
|
81301
81327
|
async function Y(P) {
|
|
@@ -82775,7 +82801,7 @@ const Hxe = {
|
|
|
82775
82801
|
let V = null, Ae = null;
|
|
82776
82802
|
try {
|
|
82777
82803
|
await Ro(), await new Promise((Lt) => setTimeout(Lt, 50)), typeof document < "u" && ((de = document.fonts) != null && de.ready) && await document.fonts.ready, V = await ZL(E.value), Ae = await qL(E.value);
|
|
82778
|
-
const { default: Me } = await import("./html2pdf-
|
|
82804
|
+
const { default: Me } = await import("./html2pdf-D668c5FJ.js").then((Lt) => Lt.h), fe = Nt.value, He = fe.layout.page, be = (((Ee = fe.metadata) == null ? void 0 : Ee.name) || "reporte") + ".pdf", Xe = E.value.querySelector(".report-page"), at = (Xe == null ? void 0 : Xe.offsetWidth) || E.value.offsetWidth || void 0, Kt = (Xe == null ? void 0 : Xe.offsetHeight) || void 0, Ut = Math.min(3, Math.max(2, (typeof window < "u" ? window.devicePixelRatio : 2) || 2)), Zt = (Xe == null ? void 0 : Xe.offsetWidth) || 794, Mr = (Xe == null ? void 0 : Xe.offsetHeight) || 1123, Xr = Math.max(1, oe.value.totalPages), we = await Me().set({
|
|
82779
82805
|
filename: be,
|
|
82780
82806
|
margin: 0,
|
|
82781
82807
|
image: { type: "jpeg", quality: 0.98 },
|
|
@@ -82855,7 +82881,7 @@ const Hxe = {
|
|
|
82855
82881
|
const Sp = async () => {
|
|
82856
82882
|
var rt;
|
|
82857
82883
|
if (await $L()) return;
|
|
82858
|
-
const { jsPDF: V } = await import("./jspdf.es.min-
|
|
82884
|
+
const { jsPDF: V } = await import("./jspdf.es.min-N6hWbNim.js").then((Je) => Je.j), Ae = Nt.value, de = Ae.layout.page, Ee = de.orientation === "landscape";
|
|
82859
82885
|
let ye = 210, Me = 297;
|
|
82860
82886
|
if (de.format === "Letter" ? (ye = 215.9, Me = 279.4) : de.format === "Ticket" && (ye = 80, Me = 200), Ee) {
|
|
82861
82887
|
const Je = ye;
|
|
@@ -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-dmi6__Nc.js";
|
|
2
|
+
import { _ as Xa } from "./jspdf.es.min-N6hWbNim.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-i0L2rKdt.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-DrkNTh0H.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;
|