valtech-components 4.0.147 → 4.0.149

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.
@@ -26,6 +26,7 @@ export declare class TicketCardComponent {
26
26
  private qrService;
27
27
  private ticketCardImageService;
28
28
  private i18n;
29
+ private toast;
29
30
  /** QR generado (null mientras carga o si falló). */
30
31
  readonly qr: import("@angular/core").WritableSignal<QrResult>;
31
32
  /** Falló la generación del QR → fallback al token corto. */
@@ -44,6 +45,7 @@ export declare class TicketCardComponent {
44
45
  shareCard(): Promise<void>;
45
46
  downloadCard(): Promise<void>;
46
47
  private buildImageConfig;
48
+ private copyToClipboard;
47
49
  private triggerDownload;
48
50
  qrProps(q: QrResult): QrCodeMetadata;
49
51
  static ɵfac: i0.ɵɵFactoryDeclaration<TicketCardComponent, never>;
@@ -11,6 +11,8 @@ export declare const TICKET_CARD_I18N: {
11
11
  readonly statusCheckedIn: "Canjeada";
12
12
  readonly download: "Descargar";
13
13
  readonly share: "Compartir";
14
+ readonly copied: "Copiado";
15
+ readonly copiedUrl: "Link copiado";
14
16
  };
15
17
  readonly en: {
16
18
  readonly folio: "Folio";
@@ -18,5 +20,7 @@ export declare const TICKET_CARD_I18N: {
18
20
  readonly statusCheckedIn: "Checked in";
19
21
  readonly download: "Download";
20
22
  readonly share: "Share";
23
+ readonly copied: "Copied";
24
+ readonly copiedUrl: "Link copied";
21
25
  };
22
26
  };
@@ -42,6 +42,8 @@ export interface TicketCardMetadata {
42
42
  statusSoldLabel?: string;
43
43
  /** Label del badge cuando `status === 'checkedIn'` (default: "Canjeada"). */
44
44
  statusCheckedInLabel?: string;
45
+ /** URL pública para compartir (link). Si el native share falla, se copia al clipboard en su lugar. */
46
+ shareUrl?: string;
45
47
  /** URL del logo de marca para la tarjeta compartida. */
46
48
  shareLogoUrl?: string;
47
49
  /** Color de fondo del encabezado en la tarjeta compartida. Default: gradiente bingo. */
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.147";
5
+ export declare const VERSION = "4.0.149";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valtech-components",
3
- "version": "4.0.147",
3
+ "version": "4.0.149",
4
4
  "private": false,
5
5
  "bin": {
6
6
  "valtech-firebase-config": "./src/lib/services/firebase/scripts/generate-sw-config.js"