valtech-components 4.0.167 → 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. */
@@ -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.167";
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.167",
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"