valtech-components 4.0.166 → 4.0.168

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.
@@ -52,8 +52,14 @@ export interface TicketCardMetadata {
52
52
  shareBrandColorTo?: string;
53
53
  /** Nombre de evento / marca en la tarjeta compartida. */
54
54
  shareBrandName?: string;
55
- /** Label del folio en la tarjeta compartida. Default "Entrada". */
55
+ /** Label del folio en la tarjeta compartida. Default "Cartón". */
56
56
  shareFolioLabel?: string;
57
+ /** Fecha del evento para la tarjeta compartida (ya formateada para mostrar). */
58
+ shareEventDate?: string;
59
+ /** Lugar del evento para la tarjeta compartida. */
60
+ shareEventLocation?: string;
61
+ /** Texto hint bajo el QR en la tarjeta compartida. */
62
+ shareScanHint?: string;
57
63
  /** Label del share button. */
58
64
  shareLabel?: string;
59
65
  /** Label del download button. */
@@ -48,6 +48,14 @@ export declare class AppVersionService {
48
48
  * Si no, activa la versión SW si está disponible y recarga la página.
49
49
  */
50
50
  applyUpdate(): Promise<void>;
51
+ /**
52
+ * Espera a que el SW reporte un bundle nuevo listo (`VERSION_READY`), o hasta
53
+ * `timeoutMs`. Evita el reload "en seco" cuando el update lo detectó el path
54
+ * HTTP antes de que el SW descargara el bundle. Si el timeout vence (ej.
55
+ * Android Chrome donde VERSION_READY es poco confiable), resuelve igual y el
56
+ * caller recarga como último recurso.
57
+ */
58
+ private waitForSwReady;
51
59
  /**
52
60
  * Descarta el banner de actualización opcional.
53
61
  * No tiene efecto sobre el estado `update-required` (hard gate).
@@ -5,7 +5,10 @@ export declare class TicketCardImageService {
5
5
  share(config: TicketCardImageConfig, shareTitle?: string): Promise<boolean>;
6
6
  private drawHeader;
7
7
  private drawQrZone;
8
+ private drawPerforated;
8
9
  private drawFooter;
10
+ private fillWrappedText;
11
+ private fillLetterSpaced;
9
12
  private loadImage;
10
13
  static ɵfac: i0.ɵɵFactoryDeclaration<TicketCardImageService, never>;
11
14
  static ɵprov: i0.ɵɵInjectableDeclaration<TicketCardImageService>;
@@ -17,4 +17,10 @@ export interface TicketCardImageConfig {
17
17
  buyerName?: string;
18
18
  /** Canvas width (default 560). */
19
19
  width?: number;
20
+ /** Event date string to show in header (already formatted for display, e.g. "martes, 24 de junio"). */
21
+ eventDate?: string;
22
+ /** Event location to show in header. */
23
+ eventLocation?: string;
24
+ /** Hint text below the QR code. Default: "Muestra este QR en la puerta para canjear tu entrada." */
25
+ scanHint?: string;
20
26
  }
package/lib/version.d.ts CHANGED
@@ -2,4 +2,4 @@
2
2
  * Current version of valtech-components.
3
3
  * This is automatically updated during the publish process.
4
4
  */
5
- export declare const VERSION = "4.0.166";
5
+ export declare const VERSION = "4.0.168";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valtech-components",
3
- "version": "4.0.166",
3
+ "version": "4.0.168",
4
4
  "private": false,
5
5
  "bin": {
6
6
  "valtech-firebase-config": "./src/lib/services/firebase/scripts/generate-sw-config.js"