nexabase-report 0.2.9 → 0.2.10
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-C7YA4nkW.js → html2canvas-BR5Zfk2I.js} +1 -1
- package/dist/{html2canvas-Ch6xQdU-.js → html2canvas-CX3Va04O.js} +2 -2
- package/dist/{html2pdf-BmsoJhgy.js → html2pdf-DWBRzG46.js} +3 -3
- package/dist/{index-TKDtDVn8.js → index-BPSYeQz4.js} +23190 -23260
- package/dist/{index.es-DVVUHaBy.js → index.es-tialsC4T.js} +2 -2
- package/dist/{jspdf.es.min-C0JdIV8T.js → jspdf.es.min-Dcx0wUQ4.js} +2 -2
- package/dist/nexabase-report.es.js +1 -1
- package/dist/nexabase-report.umd.js +158 -158
- package/examples/BlazorServer/Pages/FacturaReport.razor +1 -1
- package/examples/blazor-report/Components/App.razor +2 -2
- package/examples/blazor-report/Components/Layout/MainLayout.razor +7 -23
- package/examples/blazor-report/Components/Pages/Factura.razor +20 -15
- 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/bin/Debug/net10.0/blazor-report.staticwebassets.endpoints.json +1 -1
- package/examples/blazor-report/bin/Debug/net10.0/blazor-report.staticwebassets.runtime.json +1 -1
- package/examples/blazor-report/obj/Debug/net10.0/apphost.exe +0 -0
- package/examples/blazor-report/obj/Debug/net10.0/blazor-report.AssemblyInfo.cs +5 -6
- package/examples/blazor-report/obj/Debug/net10.0/blazor-report.AssemblyInfoInputs.cache +1 -1
- package/examples/blazor-report/obj/Debug/net10.0/blazor-report.csproj.FileListAbsolute.txt +2 -0
- 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/compressed/4oukg00khs-{0}-p3yawhb8cp-p3yawhb8cp.gz +0 -0
- package/examples/blazor-report/obj/Debug/net10.0/compressed/6vz3ynifev-{0}-z72ixxujkx-z72ixxujkx.gz +0 -0
- package/examples/blazor-report/obj/Debug/net10.0/rbcswa.dswa.cache.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/rjimswa.dswa.cache.json +1 -1
- 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/blazor-report/obj/Debug/net10.0/staticwebassets.build.endpoints.json +1 -1
- package/examples/blazor-report/obj/Debug/net10.0/staticwebassets.build.json +1 -1
- package/examples/blazor-report/obj/Debug/net10.0/staticwebassets.build.json.cache +1 -1
- package/examples/blazor-report/obj/Debug/net10.0/staticwebassets.development.json +1 -1
- package/examples/blazor-report/wwwroot/nexabase-report.umd.js +517 -0
- package/examples/blazor-report/wwwroot/style.css +7 -0
- package/examples/integration/integration-jquery.html +2 -2
- package/examples/viewer.html +1 -1
- package/package.json +1 -1
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
private async Task ExportExcel() => await JS.InvokeVoidAsync("nexaReportExportExcel", "viewer");
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
<script src="https://cdn.jsdelivr.net/npm/nexabase-report@0.2.
|
|
44
|
+
<script src="https://cdn.jsdelivr.net/npm/nexabase-report@0.2.9/dist/nexabase-report.umd.js"></script>
|
|
45
45
|
<script>
|
|
46
46
|
window.nexaReportRender = function(id, def, data) {
|
|
47
47
|
if (!window._nexaReg) { NexaReport.registerNexaReport(); window._nexaReg = true; }
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
<base href="/" />
|
|
7
7
|
<ImportMap />
|
|
8
8
|
<link rel="icon" type="image/png" href="favicon.png" />
|
|
9
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/nexabase-report@0.2.
|
|
9
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/nexabase-report@0.2.9/dist/style.css" />
|
|
10
10
|
<HeadOutlet />
|
|
11
11
|
</head>
|
|
12
12
|
<body>
|
|
13
13
|
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
|
|
14
|
-
<script src="https://cdn.jsdelivr.net/npm/nexabase-report@0.2.
|
|
14
|
+
<script src="https://cdn.jsdelivr.net/npm/nexabase-report@0.2.9/dist/nexabase-report.umd.js"></script>
|
|
15
15
|
<Routes />
|
|
16
16
|
<ReconnectModal />
|
|
17
17
|
<script src="_framework/blazor.web.js"></script>
|
|
@@ -1,23 +1,7 @@
|
|
|
1
|
-
@inherits LayoutComponentBase
|
|
2
|
-
|
|
3
|
-
<div
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
</
|
|
7
|
-
|
|
8
|
-
<main>
|
|
9
|
-
<div class="top-row px-4">
|
|
10
|
-
<a href="https://learn.microsoft.com/aspnet/core/" target="_blank">About</a>
|
|
11
|
-
</div>
|
|
12
|
-
|
|
13
|
-
<article class="content px-4">
|
|
14
|
-
@Body
|
|
15
|
-
</article>
|
|
16
|
-
</main>
|
|
17
|
-
</div>
|
|
18
|
-
|
|
19
|
-
<div id="blazor-error-ui" data-nosnippet>
|
|
20
|
-
An unhandled error has occurred.
|
|
21
|
-
<a href="." class="reload">Reload</a>
|
|
22
|
-
<span class="dismiss">🗙</span>
|
|
23
|
-
</div>
|
|
1
|
+
@inherits LayoutComponentBase
|
|
2
|
+
|
|
3
|
+
<div style="display:flex; flex-direction:column; height:100vh;">
|
|
4
|
+
<main style="flex:1; overflow:auto;">
|
|
5
|
+
@Body
|
|
6
|
+
</main>
|
|
7
|
+
</div>
|
|
@@ -2,31 +2,36 @@
|
|
|
2
2
|
|
|
3
3
|
<div style="padding:20px;">
|
|
4
4
|
<a href="/">← Volver</a>
|
|
5
|
-
<h1 style="color:#1e3a8a; margin-top:16px;">Factura</h1>
|
|
6
|
-
<nexa-viewer id="viewer" style="
|
|
5
|
+
<h1 style="color:#1e3a8a; margin-top:16px;">Factura de Recolección de Residuos</h1>
|
|
6
|
+
<nexa-viewer id="viewer" style="width:100%; height:1200px;"></nexa-viewer>
|
|
7
7
|
</div>
|
|
8
8
|
|
|
9
9
|
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
|
|
10
|
-
<script src="
|
|
10
|
+
<script src="/style.css" rel="stylesheet"></script>
|
|
11
|
+
<script src="/nexabase-report.umd.js"></script>
|
|
11
12
|
<script>
|
|
12
13
|
$.getJSON('factura_de_recolección_de_residuos.json', function(definition) {
|
|
14
|
+
var residuos = [];
|
|
15
|
+
var tipos = ['ÁCIDO CLORHÍDRICO', 'BIO SANITARIOS', 'CLORURO FÉRRICO', 'RESIDUO INDUSTRIAL', 'MATERIAL RECICLABLE'];
|
|
16
|
+
for (var i = 1; i <= 5000; i++) {
|
|
17
|
+
residuos.push({
|
|
18
|
+
nofactura: "34",
|
|
19
|
+
fechaRecoleccion: "2025-05-" + String(i % 30 + 1).padStart(2, '0'),
|
|
20
|
+
nombreResiduo: tipos[i % tipos.length],
|
|
21
|
+
cantidad: Math.floor(Math.random() * 20) + 1,
|
|
22
|
+
documentoRelacionado: String(20 + i)
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
|
|
13
26
|
var data = {
|
|
14
27
|
cliente: [{ nofactura: "34", nombre: "CLIENTE EJEMPLO S.A.S.", nit: "900.123.456-7", direccion: "Calle 100 # 15-20", ciudad: "Bogotá D.C.", fechaRecoleccion: "2025-05-01" }],
|
|
15
|
-
residuos:
|
|
16
|
-
{ nofactura: "34", fechaRecoleccion: "2025-05-01", nombreResiduo: "ÁCIDO CLORHÍDRICO", cantidad: 5, documentoRelacionado: "25" },
|
|
17
|
-
{ nofactura: "34", fechaRecoleccion: "2025-05-02", nombreResiduo: "ÁCIDO CLORHÍDRICO", cantidad: 3, documentoRelacionado: "26" },
|
|
18
|
-
{ nofactura: "34", fechaRecoleccion: "2025-05-01", nombreResiduo: "BIO SANITARIOS", cantidad: 5, documentoRelacionado: "28" },
|
|
19
|
-
{ nofactura: "34", fechaRecoleccion: "2025-05-03", nombreResiduo: "BIO SANITARIOS", cantidad: 2, documentoRelacionado: "30" },
|
|
20
|
-
{ nofactura: "34", fechaRecoleccion: "2025-05-01", nombreResiduo: "CLORURO FÉRRICO", cantidad: 8, documentoRelacionado: "31" }
|
|
21
|
-
],
|
|
28
|
+
residuos: residuos,
|
|
22
29
|
tarifas: [
|
|
23
30
|
{ nofactura: "34", facturacionMinima: 0, kilosMinimos: 0, precio: 52200, residuo: "ÁCIDO CLORHÍDRICO", tipoTarifa: "Tarifa x Kilo" },
|
|
24
31
|
{ nofactura: "34", facturacionMinima: 0, kilosMinimos: 0, precio: 52200, residuo: "BIO SANITARIOS", tipoTarifa: "Tarifa x Kilo" }
|
|
25
32
|
]
|
|
26
33
|
};
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
window._viewer = v;
|
|
31
|
-
}).fail(function() { console.error('No se pudo cargar factura_de_recolección_de_residuos.json'); });
|
|
34
|
+
document.getElementById('viewer').definition = definition;
|
|
35
|
+
document.getElementById('viewer').data = data;
|
|
36
|
+
});
|
|
32
37
|
</script>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|