nexabase-report 0.3.2 → 0.4.0

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.
@@ -113,12 +113,12 @@ npm publish --registry=http://localhost:4873
113
113
  Una vez publicado en npm, automáticamente disponible en:
114
114
 
115
115
  ```html
116
- <!-- jsDelivr (recomendado, última minor) -->
117
- <script src="https://cdn.jsdelivr.net/npm/nexabase-report@0.2/dist/nexabase-report.umd.js"></script>
118
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/nexabase-report@0.2/dist/style.css">
116
+ <!-- jsDelivr (recomendado, latest tag) -->
117
+ <script src="https://cdn.jsdelivr.net/npm/nexabase-report/dist/nexabase-report.umd.js"></script>
118
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/nexabase-report/dist/style.css">
119
119
 
120
120
  <!-- unpkg -->
121
- <script src="https://unpkg.com/nexabase-report@0.2/dist/nexabase-report.umd.js"></script>
121
+ <script src="https://unpkg.com/nexabase-report/dist/nexabase-report.umd.js"></script>
122
122
 
123
123
  <!-- Uso -->
124
124
  <script>
@@ -110,6 +110,7 @@ function MiReporte({ definition, data, parameters }) {
110
110
  | `currentPage` | `number` | `1` | Página inicial que se debe mostrar. |
111
111
  | `apiBaseUrl` | `string` | — | URL base de NexaBase para reportes con datos dinámicos. |
112
112
  | `apiKey` | `string` | — | API Key para autenticación de datos desde NexaBase. |
113
+ | `licenseKey` | `string` | — | Clave de licencia comercial. Sin licencia válida se muestra un aviso "Sin licencia" en el visor. |
113
114
 
114
115
  ## Métodos (vía ref DOM)
115
116
 
@@ -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.12/dist/nexabase-report.umd.js"></script>
44
+ <script src="https://cdn.jsdelivr.net/npm/nexabase-report/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.12/dist/style.css" />
9
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/nexabase-report/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.12/dist/nexabase-report.umd.js"></script>
14
+ <script src="https://cdn.jsdelivr.net/npm/nexabase-report/dist/nexabase-report.umd.js"></script>
15
15
  <Routes />
16
16
  <ReconnectModal />
17
17
  <script src="_framework/blazor.web.js"></script>
@@ -7,7 +7,7 @@
7
7
  </div>
8
8
 
9
9
  <script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
10
- <script src="https://cdn.jsdelivr.net/npm/nexabase-report@0.2.12/dist/nexabase-report.umd.js"></script>
10
+ <script src="https://cdn.jsdelivr.net/npm/nexabase-report/dist/nexabase-report.umd.js"></script>
11
11
  <script>
12
12
  $.getJSON('factura_de_recolección_de_residuos.json', function(definition) {
13
13
  var residuos = [];
@@ -4,7 +4,7 @@
4
4
  <meta charset="UTF-8">
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
6
  <title>Reporte - Ejemplo jQuery + nexabase-report</title>
7
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/nexabase-report@0.2.10/dist/style.css">
7
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/nexabase-report/dist/style.css">
8
8
  <style>
9
9
  body { font-family: system-ui, sans-serif; margin: 20px; background: #f9fafb; }
10
10
  .report-container { height: 800px; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; background: white; }
@@ -33,7 +33,7 @@
33
33
  Los datos de factura e items son construidos dinámicamente en el cliente.
34
34
  </div>
35
35
 
36
- <script src="https://cdn.jsdelivr.net/npm/nexabase-report@0.2.10/dist/nexabase-report.umd.js"></script>
36
+ <script src="https://cdn.jsdelivr.net/npm/nexabase-report/dist/nexabase-report.umd.js"></script>
37
37
  <script>
38
38
  $(function() {
39
39
  // Registrar el custom element una vez
@@ -28,7 +28,7 @@
28
28
  </div>
29
29
 
30
30
  <script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
31
- <script src="https://cdn.jsdelivr.net/npm/nexabase-report@0.2.12/dist/nexabase-report.umd.js"></script>
31
+ <script src="https://cdn.jsdelivr.net/npm/nexabase-report/dist/nexabase-report.umd.js"></script>
32
32
  <script>
33
33
  $(function() {
34
34
  $.getJSON('factura_de_recolección_de_residuos.json', function(definition) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nexabase-report",
3
- "version": "0.3.2",
3
+ "version": "0.4.0",
4
4
  "description": "Professional report designer and viewer for NexaBase — drag & drop designer, PDF/Excel export, charts, crosstabs, subreports.",
5
5
  "license": "MIT",
6
6
  "author": "NexaBase Team",
@@ -66,7 +66,8 @@
66
66
  "release:major": "npm test && npm run build && npm version major",
67
67
  "prepack": "npm run build",
68
68
  "lint": "eslint src/lib/",
69
- "lint:fix": "eslint src/lib/ --fix"
69
+ "lint:fix": "eslint src/lib/ --fix",
70
+ "license:gen": "node scripts/gen-license.mjs"
70
71
  },
71
72
  "dependencies": {
72
73
  "@nexabase/sdk": "^2.17.6",