@erplora/outfitkit
Advanced tools
@@ -60,5 +60,9 @@ import { LitElement } from 'lit'; | ||
| export interface ReceiptData { | ||
| /** Document title, FIRST line of the paper (e.g. «Cuenta» on a pre-bill). Mirrors the ESC/POS | ||
| * renderer, which titles non-fiscal papers so they cannot pass for a ticket; omit on receipts. */ | ||
| title?: string; | ||
| business: ReceiptBusiness; | ||
| /** Nº de tiquet/ticket. */ | ||
| number: string; | ||
| /** Receipt number. Absent on non-fiscal papers (pre-bill): the label is then not painted — | ||
| * calling «Receipt» the one paper whose point is NOT being a receipt would mislabel it. */ | ||
| number?: string; | ||
| /** Fecha/hora ya formateada o ISO (se muestra tal cual si es string legible). */ | ||
@@ -65,0 +69,0 @@ datetime?: string; |
@@ -56,2 +56,3 @@ import { LitElement, css, html, nothing } from "lit"; | ||
| .center { text-align: center; } | ||
| .doc-title { text-align: center; font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1mm; } | ||
| .biz-logo { max-width: 60%; max-height: 22mm; margin: 0 auto 2mm; display: block; } | ||
@@ -98,2 +99,3 @@ .biz-name { font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; } | ||
| return html`<div class="paper" part="paper"> | ||
| ${r.title ? html`<div class="doc-title">${r.title}</div>` : nothing} | ||
| ${this.renderHeader(r)} | ||
@@ -123,3 +125,3 @@ <hr class="sep" /> | ||
| return html`<div class="meta"> | ||
| <span>${this.t.receipt}: <strong>${r.number}</strong></span> | ||
| ${r.number ? html`<span>${this.t.receipt}: <strong>${r.number}</strong></span>` : html`<span></span>`} | ||
| ${r.datetime ? html`<span>${r.datetime}</span>` : nothing} | ||
@@ -126,0 +128,0 @@ </div> |
+1
-1
| { | ||
| "name": "@erplora/outfitkit", | ||
| "version": "0.1.36", | ||
| "version": "0.1.37", | ||
| "description": "OutfitKit — librería de Web Components (Lit) que CONSTRUYE lo que Ionic no tiene (tree, data-table rica, inline-feedback, kpi/stat, stepper/wizard, calendar, kanban…) sobre primitivos de Ionic. Ionic es la base; OutfitKit cubre los huecos. npm + CDN, imports individuales, CSP-safe. Tema vía tokens --ok-* (fallback a --ion-*).", | ||
@@ -5,0 +5,0 @@ "type": "module", |
Sorry, the diff of this file is too big to display
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
2114438
0.04%61071
0.01%291
-0.68%