nexabase-report 0.4.11 → 0.4.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/{html2pdf-ac57KHI-.js → html2pdf-B900bt94.js} +2 -2
- package/dist/{index-DTEqJqaE.js → index-ByKKt1Q6.js} +47 -29
- package/dist/{index.es-C-dsqiMd.js → index.es-DLEwwJ8h.js} +2 -2
- package/dist/{jspdf.es.min-DiEesoVB.js → jspdf.es.min-DKRa02iA.js} +1 -1
- package/dist/lib/styles/_designer.css +12 -6
- package/dist/lib/styles/_viewer.css +12 -6
- package/dist/nexabase-report.es.js +1 -1
- package/dist/nexabase-report.umd.js +90 -90
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as Pl, c as br, a as Nl } from "./index-
|
|
2
|
-
import { j as Vl } from "./jspdf.es.min-
|
|
1
|
+
import { g as Pl, c as br, a as Nl } from "./index-ByKKt1Q6.js";
|
|
2
|
+
import { j as Vl } from "./jspdf.es.min-DKRa02iA.js";
|
|
3
3
|
function Xl(Pe, jr) {
|
|
4
4
|
for (var fe = 0; fe < jr.length; fe++) {
|
|
5
5
|
const HA = jr[fe];
|
|
@@ -4228,12 +4228,18 @@ const xq = "/logo.png", Qq = {
|
|
|
4228
4228
|
back: { es: "Atrás", en: "Back", pt: "Voltar" },
|
|
4229
4229
|
actions: { es: "Acciones", en: "Actions", pt: "Ações" },
|
|
4230
4230
|
nexabase: { es: "NexaBase", en: "NexaBase", pt: "NexaBase" },
|
|
4231
|
+
nexaSettings: { es: "Ajustes de NexaBase", en: "NexaBase Settings", pt: "Ajustes do NexaBase" },
|
|
4232
|
+
nexa_help: { es: "Introduce la URL y Key del backend para recuperar y persistir datos.", en: "Enter the backend URL and Key to fetch and persist data.", pt: "Insira a URL e Key do backend para buscar e persistir dados." },
|
|
4233
|
+
nexa_url: { es: "URL de NexaBase", en: "NexaBase URL", pt: "URL do NexaBase" },
|
|
4234
|
+
nexa_key: { es: "Key de NexaBase", en: "NexaBase Key", pt: "Key do NexaBase" },
|
|
4231
4235
|
pin: { es: "Fijar", en: "Pin", pt: "Fixar" },
|
|
4232
4236
|
unpin: { es: "Desfijar", en: "Unpin", pt: "Desafixar" },
|
|
4233
4237
|
report: { es: "Reporte", en: "Report", pt: "Relatório" },
|
|
4234
4238
|
dashboard: { es: "Dashboard", en: "Dashboard", pt: "Dashboard" },
|
|
4235
4239
|
offline: { es: "Desconectado", en: "Offline", pt: "Desconectado" },
|
|
4236
4240
|
online: { es: "Conectado", en: "Online", pt: "Conectado" },
|
|
4241
|
+
horizontal: { es: "Horizontal", en: "Horizontal", pt: "Horizontal" },
|
|
4242
|
+
vertical: { es: "Vertical", en: "Vertical", pt: "Vertical" },
|
|
4237
4243
|
collapse_ribbon: { es: "Contraer Cinta", en: "Collapse Ribbon", pt: "Recolher Faixa" },
|
|
4238
4244
|
// Ribbon Tabs
|
|
4239
4245
|
tab_file: { es: "Archivo", en: "File", pt: "Arquivo" },
|
|
@@ -57446,33 +57452,45 @@ const Ewe = /* @__PURE__ */ qK({
|
|
|
57446
57452
|
}
|
|
57447
57453
|
}), mwe = ".qrcode-renderer[data-v-3e8dbaa7]{width:100%;height:100%;display:flex;align-items:center;justify-content:center}", fy = /* @__PURE__ */ ys(ywe, [["styles", [mwe]], ["__scopeId", "data-v-3e8dbaa7"]]), gy = /* @__PURE__ */ new Map();
|
|
57448
57454
|
function wwe(t) {
|
|
57449
|
-
var
|
|
57450
|
-
const e = ((
|
|
57451
|
-
if (
|
|
57452
|
-
const
|
|
57453
|
-
|
|
57454
|
-
const
|
|
57455
|
-
if (!
|
|
57456
|
-
const
|
|
57457
|
-
return gy.set(
|
|
57458
|
-
}
|
|
57459
|
-
if (
|
|
57460
|
-
const
|
|
57461
|
-
|
|
57455
|
+
var v, p, E, B, y, m;
|
|
57456
|
+
const e = ((v = t.options) == null ? void 0 : v.strokeWidth) ?? 2, r = e / 2, n = Math.max(1, t.width || 100), i = Math.max(1, t.height || 100), a = ((p = t.options) == null ? void 0 : p.lineColor) || "#333", o = ((E = t.options) == null ? void 0 : E.fillColor) || "", s = ((B = t.options) == null ? void 0 : B.shapeStyle) || "", l = ((y = t.options) == null ? void 0 : y.cornerRadius) ?? 2, c = t.shapeType || t.type || "", A = ((m = t.options) == null ? void 0 : m.orientation) || "horizontal", u = `${t.id}_${n}_${i}_${c}_${e}_${a}_${o}_${s}_${l}_${A}`, h = gy.get(u);
|
|
57457
|
+
if (h) return h;
|
|
57458
|
+
const f = document.createElement("canvas");
|
|
57459
|
+
f.width = n, f.height = i;
|
|
57460
|
+
const g = f.getContext("2d");
|
|
57461
|
+
if (!g) {
|
|
57462
|
+
const w = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==";
|
|
57463
|
+
return gy.set(u, w), w;
|
|
57464
|
+
}
|
|
57465
|
+
if (g.lineWidth = e, g.strokeStyle = a, s === "dashed" ? g.setLineDash([6, 4]) : s === "dotted" ? g.setLineDash([2, 2]) : g.setLineDash([]), c === "Rectangle" || c === "Rect") {
|
|
57466
|
+
const w = r, M = r, x = Math.max(1, n - e), I = Math.max(1, i - e);
|
|
57467
|
+
g.beginPath(), l > 0 && typeof g.roundRect == "function" ? g.roundRect(w, M, x, I, l) : g.rect(w, M, x, I), o && o !== "none" && (g.fillStyle = o, g.fill()), g.stroke();
|
|
57462
57468
|
} else if (c === "Ellipse") {
|
|
57463
|
-
const
|
|
57464
|
-
|
|
57469
|
+
const w = n / 2, M = i / 2, x = Math.max(0.5, n / 2 - r), I = Math.max(0.5, i / 2 - r);
|
|
57470
|
+
g.beginPath(), g.ellipse(w, M, x, I, 0, 0, Math.PI * 2), o && o !== "none" && (g.fillStyle = o, g.fill()), g.stroke();
|
|
57465
57471
|
} else if (c === "Line") {
|
|
57466
|
-
|
|
57467
|
-
|
|
57468
|
-
|
|
57469
|
-
|
|
57470
|
-
|
|
57471
|
-
|
|
57472
|
-
|
|
57473
|
-
|
|
57474
|
-
|
|
57475
|
-
|
|
57472
|
+
if (g.beginPath(), A === "vertical") {
|
|
57473
|
+
const w = n / 2;
|
|
57474
|
+
g.moveTo(w, 0), g.lineTo(w, i);
|
|
57475
|
+
} else {
|
|
57476
|
+
const w = i / 2;
|
|
57477
|
+
g.moveTo(0, w), g.lineTo(n, w);
|
|
57478
|
+
}
|
|
57479
|
+
g.stroke();
|
|
57480
|
+
} else if (c === "Arrow")
|
|
57481
|
+
if (g.beginPath(), A === "vertical") {
|
|
57482
|
+
const w = n / 2;
|
|
57483
|
+
g.moveTo(w, 0), g.lineTo(w, Math.max(0, i - 10)), g.stroke();
|
|
57484
|
+
const M = i, x = Math.max(0, i - 10);
|
|
57485
|
+
g.beginPath(), g.moveTo(w, M), g.lineTo(w - 5, x), g.lineTo(w + 5, x), g.closePath(), g.fillStyle = a, g.fill();
|
|
57486
|
+
} else {
|
|
57487
|
+
const w = i / 2;
|
|
57488
|
+
g.moveTo(0, w), g.lineTo(Math.max(0, n - 10), w), g.stroke();
|
|
57489
|
+
const M = n, x = Math.max(0, n - 10);
|
|
57490
|
+
g.beginPath(), g.moveTo(M, w), g.lineTo(x, w - 5), g.lineTo(x, w + 5), g.closePath(), g.fillStyle = a, g.fill();
|
|
57491
|
+
}
|
|
57492
|
+
const d = f.toDataURL("image/png");
|
|
57493
|
+
return gy.set(u, d), d;
|
|
57476
57494
|
}
|
|
57477
57495
|
const Mwe = { class: "shape-renderer" }, Iwe = ["src"], dy = /* @__PURE__ */ Wa({
|
|
57478
57496
|
__name: "ShapeRenderer",
|
|
@@ -87707,7 +87725,7 @@ function x_e(t) {
|
|
|
87707
87725
|
let c = null, A = null;
|
|
87708
87726
|
try {
|
|
87709
87727
|
await new Promise((D) => setTimeout(D, 50)), typeof document < "u" && ((u = document.fonts) != null && u.ready) && await document.fonts.ready, c = await _we(t.reportPaperRef.value, t.apiBaseUrl), A = await Nwe(t.reportPaperRef.value);
|
|
87710
|
-
const { default: g } = await import("./html2pdf-
|
|
87728
|
+
const { default: g } = await import("./html2pdf-B900bt94.js").then((D) => D.h), d = t.reportDef.value, v = d.layout.page, p = (((h = d.metadata) == null ? void 0 : h.name) || "reporte") + ".pdf", E = t.reportPaperRef.value.querySelector(".report-page"), B = (E == null ? void 0 : E.offsetWidth) || t.reportPaperRef.value.offsetWidth || void 0, y = (E == null ? void 0 : E.offsetHeight) || void 0, m = Math.min(3, Math.max(2, (typeof window < "u" ? window.devicePixelRatio : 2) || 2)), w = (E == null ? void 0 : E.offsetWidth) || 794, M = (E == null ? void 0 : E.offsetHeight) || 1123, x = Math.max(1, t.pagination.value.totalPages), C = await g().set({
|
|
87711
87729
|
filename: p,
|
|
87712
87730
|
margin: 0,
|
|
87713
87731
|
image: { type: "jpeg", quality: 0.98 },
|
|
@@ -87787,7 +87805,7 @@ function x_e(t) {
|
|
|
87787
87805
|
const a = async () => {
|
|
87788
87806
|
var H;
|
|
87789
87807
|
if (await i()) return;
|
|
87790
|
-
const { jsPDF: c } = await import("./jspdf.es.min-
|
|
87808
|
+
const { jsPDF: c } = await import("./jspdf.es.min-DKRa02iA.js").then((k) => k.j), A = t.reportDef.value, u = A.layout.page, h = u.orientation === "landscape";
|
|
87791
87809
|
let f = 210, g = 297;
|
|
87792
87810
|
if (u.format === "Letter" ? (f = 215.9, g = 279.4) : u.format === "Ticket" && (f = 80, g = 200), h) {
|
|
87793
87811
|
const k = f;
|
|
@@ -88522,7 +88540,7 @@ const D_e = {
|
|
|
88522
88540
|
}
|
|
88523
88541
|
return !!oe;
|
|
88524
88542
|
}
|
|
88525
|
-
const o = Gt(() => a(n.minimal)), s = Gt(() => a(n.fluid)), l = Gt(() => !o.value || a(n.showThumbs)), c = Gt(() => !o.value || a(n.showToolbar)), A = Ct(!1), u = Gt(() => "0.4.
|
|
88543
|
+
const o = Gt(() => a(n.minimal)), s = Gt(() => a(n.fluid)), l = Gt(() => !o.value || a(n.showThumbs)), c = Gt(() => !o.value || a(n.showToolbar)), A = Ct(!1), u = Gt(() => "0.4.12"), h = Gt(() => "2026-05-20T20:43:49.202Z"), f = Gt(() => g.value), g = Ct(n.locale || "es"), d = Ct(!a(n.minimal)), v = Ct("pages"), p = Ct(""), E = Ct(!1), B = Gt(() => {
|
|
88526
88544
|
const oe = p.value.toLowerCase().trim();
|
|
88527
88545
|
return oe ? Mg.value.filter((ue) => ue.title.toLowerCase().includes(oe)) : Mg.value;
|
|
88528
88546
|
});
|
|
@@ -88584,7 +88602,7 @@ const D_e = {
|
|
|
88584
88602
|
let le = null;
|
|
88585
88603
|
async function ve() {
|
|
88586
88604
|
if (le) return le;
|
|
88587
|
-
const oe = await import("./html2pdf-
|
|
88605
|
+
const oe = await import("./html2pdf-B900bt94.js").then((ue) => ue.h);
|
|
88588
88606
|
return le = (oe == null ? void 0 : oe.default) || oe, le;
|
|
88589
88607
|
}
|
|
88590
88608
|
async function Be(oe) {
|
|
@@ -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-ByKKt1Q6.js";
|
|
2
|
+
import { _ as Xa } from "./jspdf.es.min-DKRa02iA.js";
|
|
3
3
|
var vt = function(a) {
|
|
4
4
|
return a && a.Math === Math && a;
|
|
5
5
|
}, _ = (
|
|
@@ -7303,7 +7303,7 @@ function(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-DLEwwJ8h.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;
|
|
@@ -2113,9 +2113,12 @@
|
|
|
2113
2113
|
width: 100%;
|
|
2114
2114
|
height: 100%;
|
|
2115
2115
|
border: 1px solid var(--nd-border-strong);
|
|
2116
|
-
background:
|
|
2116
|
+
background: inherit;
|
|
2117
2117
|
overflow: hidden;
|
|
2118
2118
|
border-radius: 2px;
|
|
2119
|
+
font-size: inherit;
|
|
2120
|
+
font-family: inherit;
|
|
2121
|
+
color: inherit;
|
|
2119
2122
|
}
|
|
2120
2123
|
|
|
2121
2124
|
.nd-table-header {
|
|
@@ -2125,12 +2128,14 @@
|
|
|
2125
2128
|
flex-shrink: 0;
|
|
2126
2129
|
}
|
|
2127
2130
|
|
|
2128
|
-
.nd-table-row { display: flex; flex: 1; background:
|
|
2131
|
+
.nd-table-row { display: flex; flex: 1; background: inherit; }
|
|
2129
2132
|
|
|
2130
2133
|
.nd-table-cell {
|
|
2131
2134
|
padding: 4px 8px;
|
|
2132
2135
|
border-right: 1px solid var(--nd-border);
|
|
2133
|
-
font-size:
|
|
2136
|
+
font-size: inherit;
|
|
2137
|
+
font-family: inherit;
|
|
2138
|
+
color: inherit;
|
|
2134
2139
|
white-space: nowrap;
|
|
2135
2140
|
overflow: hidden;
|
|
2136
2141
|
text-overflow: ellipsis;
|
|
@@ -2141,11 +2146,12 @@
|
|
|
2141
2146
|
|
|
2142
2147
|
.nd-table-cell:last-child { border-right: none; }
|
|
2143
2148
|
|
|
2144
|
-
.nd-table-cell.head { font-weight: 600; color:
|
|
2149
|
+
.nd-table-cell.head { font-weight: 600; color: inherit; background: #f8fafc; }
|
|
2145
2150
|
|
|
2146
2151
|
.nd-table-cell.body {
|
|
2147
|
-
color:
|
|
2148
|
-
|
|
2152
|
+
color: inherit;
|
|
2153
|
+
opacity: 0.8;
|
|
2154
|
+
font-family: inherit;
|
|
2149
2155
|
font-style: italic;
|
|
2150
2156
|
}
|
|
2151
2157
|
|
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
.nexa-table {
|
|
7
7
|
width: 100%;
|
|
8
8
|
border-collapse: collapse;
|
|
9
|
-
font-size:
|
|
9
|
+
font-size: inherit;
|
|
10
|
+
font-family: inherit;
|
|
11
|
+
color: inherit;
|
|
10
12
|
}
|
|
11
13
|
|
|
12
14
|
.nexa-table thead tr {
|
|
@@ -17,7 +19,9 @@
|
|
|
17
19
|
.nexa-table th {
|
|
18
20
|
padding: 6px 8px;
|
|
19
21
|
font-weight: 600;
|
|
20
|
-
color:
|
|
22
|
+
color: inherit;
|
|
23
|
+
font-size: inherit;
|
|
24
|
+
font-family: inherit;
|
|
21
25
|
text-align: left;
|
|
22
26
|
border-right: 1px solid var(--nd-border, #e2e8f0);
|
|
23
27
|
}
|
|
@@ -28,7 +32,9 @@
|
|
|
28
32
|
padding: 5px 8px;
|
|
29
33
|
border-right: 1px solid var(--nd-border, #e2e8f0);
|
|
30
34
|
border-bottom: 1px solid var(--nd-border, #e2e8f0);
|
|
31
|
-
color:
|
|
35
|
+
color: inherit;
|
|
36
|
+
font-size: inherit;
|
|
37
|
+
font-family: inherit;
|
|
32
38
|
}
|
|
33
39
|
|
|
34
40
|
.nexa-table td:last-child { border-right: none; }
|
|
@@ -47,15 +53,15 @@
|
|
|
47
53
|
.nexa-table-group-header td {
|
|
48
54
|
font-weight: 700;
|
|
49
55
|
background: #e0e7ff;
|
|
50
|
-
color:
|
|
51
|
-
font-size:
|
|
56
|
+
color: inherit;
|
|
57
|
+
font-size: 1.1em;
|
|
52
58
|
padding: 4px 8px;
|
|
53
59
|
}
|
|
54
60
|
|
|
55
61
|
.nexa-table-group-footer td {
|
|
56
62
|
font-weight: 600;
|
|
57
63
|
background: #f1f5f9;
|
|
58
|
-
color:
|
|
64
|
+
color: inherit;
|
|
59
65
|
border-top: 1px solid #cbd5e1;
|
|
60
66
|
}
|
|
61
67
|
|