valtech-components 4.0.167 → 4.0.169
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.
- package/esm2022/lib/components/molecules/ticket-card/ticket-card.component.mjs +4 -1
- package/esm2022/lib/components/molecules/ticket-card/types.mjs +1 -1
- package/esm2022/lib/components/organisms/html-viewer-modal/html-viewer-modal.component.mjs +9 -4
- package/esm2022/lib/services/ticket-card-image/ticket-card-image.service.mjs +117 -41
- package/esm2022/lib/services/ticket-card-image/types.mjs +1 -1
- package/esm2022/lib/version.mjs +2 -2
- package/fesm2022/valtech-components.mjs +126 -43
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/molecules/cta-card/cta-card.component.d.ts +1 -1
- package/lib/components/molecules/media-object/media-object.component.d.ts +1 -1
- package/lib/components/molecules/ticket-card/types.d.ts +7 -1
- package/lib/components/organisms/article/article.component.d.ts +2 -2
- package/lib/components/organisms/auth-cta/auth-cta.component.d.ts +1 -1
- package/lib/components/organisms/html-viewer-modal/html-viewer-modal.component.d.ts +3 -0
- package/lib/services/ticket-card-image/ticket-card-image.service.d.ts +3 -0
- package/lib/services/ticket-card-image/types.d.ts +6 -0
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -35,7 +35,7 @@ export declare class CtaCardComponent {
|
|
|
35
35
|
/** Emitted with the token of the clicked action button */
|
|
36
36
|
onAction: EventEmitter<string>;
|
|
37
37
|
/** Merged configuration with defaults */
|
|
38
|
-
config: import("@angular/core").Signal<CtaCardMetadata & Required<Pick<CtaCardMetadata, "
|
|
38
|
+
config: import("@angular/core").Signal<CtaCardMetadata & Required<Pick<CtaCardMetadata, "align" | "borderRadius" | "bordered" | "shadowed" | "padding">>>;
|
|
39
39
|
getBackground(): string;
|
|
40
40
|
getColor(): string | null;
|
|
41
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<CtaCardComponent, never>;
|
|
@@ -30,7 +30,7 @@ export declare class MediaObjectComponent {
|
|
|
30
30
|
/** Emitted when the inline link is clicked */
|
|
31
31
|
onLinkClick: EventEmitter<string>;
|
|
32
32
|
/** Merged configuration with defaults */
|
|
33
|
-
config: import("@angular/core").Signal<MediaObjectMetadata & Required<Pick<MediaObjectMetadata, "
|
|
33
|
+
config: import("@angular/core").Signal<MediaObjectMetadata & Required<Pick<MediaObjectMetadata, "align" | "rounded" | "circle" | "mediaWidth" | "reversed">>>;
|
|
34
34
|
getColor(): string;
|
|
35
35
|
handleLinkClick(event: MouseEvent): void;
|
|
36
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<MediaObjectComponent, never>;
|
|
@@ -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 "
|
|
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. */
|
|
@@ -93,9 +93,9 @@ export declare class ArticleComponent implements OnInit {
|
|
|
93
93
|
contentInterpolation?: Record<string, string | number>;
|
|
94
94
|
icon?: import("valtech-components").IconMetada;
|
|
95
95
|
shape?: "round";
|
|
96
|
-
size?: "
|
|
96
|
+
size?: "small" | "default" | "large";
|
|
97
97
|
fill?: "default" | "clear" | "outline" | "solid";
|
|
98
|
-
type: "
|
|
98
|
+
type: "button" | "reset" | "submit";
|
|
99
99
|
token?: string;
|
|
100
100
|
ref?: any;
|
|
101
101
|
handler?: (value: any) => any;
|
|
@@ -35,7 +35,7 @@ export declare class AuthCtaComponent {
|
|
|
35
35
|
onRegister: EventEmitter<void>;
|
|
36
36
|
constructor();
|
|
37
37
|
/** Merged configuration with defaults */
|
|
38
|
-
config: import("@angular/core").Signal<AuthCtaMetadata & Required<Pick<AuthCtaMetadata, "
|
|
38
|
+
config: import("@angular/core").Signal<AuthCtaMetadata & Required<Pick<AuthCtaMetadata, "align" | "borderRadius" | "padding">>>;
|
|
39
39
|
loginLabel: import("@angular/core").Signal<string>;
|
|
40
40
|
registerLabel: import("@angular/core").Signal<string>;
|
|
41
41
|
topLogoProps: import("@angular/core").Signal<{
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SafeHtml } from '@angular/platform-browser';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
3
|
/**
|
|
3
4
|
* `val-html-viewer-modal` — Modal para visualizar y descargar/imprimir HTML.
|
|
@@ -21,6 +22,8 @@ export declare class HtmlViewerModalComponent {
|
|
|
21
22
|
_modalRef?: {
|
|
22
23
|
dismiss: () => Promise<boolean>;
|
|
23
24
|
};
|
|
25
|
+
private sanitizer;
|
|
26
|
+
get safeHtml(): SafeHtml;
|
|
24
27
|
dismiss(): void;
|
|
25
28
|
printContent(): void;
|
|
26
29
|
downloadContent(): void;
|
|
@@ -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