valtech-components 4.0.569 → 4.0.570
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/atoms/qr-code/qr-code.component.mjs +26 -3
- package/esm2022/lib/components/atoms/qr-code/types.mjs +1 -1
- package/esm2022/lib/components/molecules/ticket-card/ticket-card.component.mjs +6 -12
- package/esm2022/lib/components/organisms/mini-games/chessimals-engine.mjs +32 -13
- package/esm2022/lib/components/organisms/mini-games/chessimals-game.component.mjs +92 -27
- package/esm2022/lib/components/organisms/mini-games/mini-games.i18n.mjs +19 -19
- package/esm2022/lib/services/errors/valtech-error.service.mjs +3 -3
- package/esm2022/lib/services/ticket-card-image/ticket-card-image.service.mjs +32 -1
- package/esm2022/lib/services/ticket-card-image/types.mjs +1 -1
- package/esm2022/lib/version.mjs +2 -2
- package/fesm2022/valtech-components.mjs +204 -72
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/atoms/qr-code/qr-code.component.d.ts +1 -0
- package/lib/components/atoms/qr-code/types.d.ts +4 -0
- package/lib/components/organisms/mini-games/chessimals-game.component.d.ts +5 -1
- package/lib/services/errors/valtech-error.service.d.ts +3 -3
- package/lib/services/ticket-card-image/ticket-card-image.service.d.ts +2 -0
- package/lib/services/ticket-card-image/types.d.ts +2 -0
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -15,6 +15,7 @@ export declare class QrCodeComponent implements OnInit {
|
|
|
15
15
|
getBorderRadius(): string;
|
|
16
16
|
getPadding(): string;
|
|
17
17
|
getQrBorderRadius(): string;
|
|
18
|
+
getLogoSize(): string;
|
|
18
19
|
getContainerClasses(): string;
|
|
19
20
|
getContainerBackground(): string;
|
|
20
21
|
getShadow(): string;
|
|
@@ -67,6 +67,10 @@ export interface QrCodeMetadata {
|
|
|
67
67
|
cssClass?: string;
|
|
68
68
|
/** Size override (will scale the image) */
|
|
69
69
|
displaySize?: number;
|
|
70
|
+
/** Logo rendered over the QR when the generated bitmap cannot embed it reliably */
|
|
71
|
+
logoUrl?: string;
|
|
72
|
+
/** Logo size as a fraction of the displayed QR size. Default: 0.2 */
|
|
73
|
+
logoSizeRatio?: number;
|
|
70
74
|
/** Border radius for the container */
|
|
71
75
|
borderRadius?: number;
|
|
72
76
|
/** Show border around QR */
|
|
@@ -122,7 +122,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
122
122
|
readonly botProfiles: ChessimalsBotProfile[];
|
|
123
123
|
readonly challengeLadder: ChessimalsChallengeBot[];
|
|
124
124
|
readonly animals: ChessimalsAnimalView[];
|
|
125
|
-
readonly valtechComponentsVersion = "4.0.
|
|
125
|
+
readonly valtechComponentsVersion = "4.0.570";
|
|
126
126
|
readonly screen: import("@angular/core").WritableSignal<"home" | "challenge" | "path" | "game">;
|
|
127
127
|
readonly selectedBoardSize: import("@angular/core").WritableSignal<ChessimalsBoardSize>;
|
|
128
128
|
readonly selectedLocalMode: import("@angular/core").WritableSignal<ChessimalsLocalMode>;
|
|
@@ -196,6 +196,10 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
196
196
|
readonly availableBotProfiles: import("@angular/core").Signal<ChessimalsBotProfile[]>;
|
|
197
197
|
readonly selectedBotProfile: import("@angular/core").Signal<ChessimalsBotProfile>;
|
|
198
198
|
readonly gameBotProfile: import("@angular/core").Signal<ChessimalsBotProfile>;
|
|
199
|
+
readonly botOpponentProfile: import("@angular/core").Signal<ChessimalsBotProfile>;
|
|
200
|
+
readonly botOpponentEyebrow: import("@angular/core").Signal<string>;
|
|
201
|
+
readonly botOpponentTitle: import("@angular/core").Signal<string>;
|
|
202
|
+
readonly botOpponentDescription: import("@angular/core").Signal<string>;
|
|
199
203
|
readonly activeChallengeBot: import("@angular/core").Signal<ChessimalsChallengeBot>;
|
|
200
204
|
readonly resumableChallengeRun: import("@angular/core").Signal<ChessimalsChallengeRun>;
|
|
201
205
|
set onlineGameId(value: string | null | undefined);
|
|
@@ -33,9 +33,9 @@ export interface ValtechErrorHandleOptions {
|
|
|
33
33
|
/** Si mostrar un toast con el mensaje resuelto. Default: `true`. */
|
|
34
34
|
toast?: boolean;
|
|
35
35
|
/**
|
|
36
|
-
* Si incluir un botón "Copiar
|
|
37
|
-
* `operationId`. Útil para soporte: el usuario copia el ID y lo
|
|
38
|
-
* equipo para buscar en CloudWatch. Default: `false`.
|
|
36
|
+
* Si incluir un botón "Copiar código de error" en el toast cuando el backend
|
|
37
|
+
* devuelve un `operationId`. Útil para soporte: el usuario copia el ID y lo
|
|
38
|
+
* entrega al equipo para buscar en CloudWatch. Default: `false`.
|
|
39
39
|
*/
|
|
40
40
|
showOperationId?: boolean;
|
|
41
41
|
}
|
|
@@ -9,6 +9,8 @@ export declare class TicketCardImageService {
|
|
|
9
9
|
private drawFooter;
|
|
10
10
|
private fillWrappedText;
|
|
11
11
|
private drawDetail;
|
|
12
|
+
private drawQrLogo;
|
|
13
|
+
private drawBingoFallbackMark;
|
|
12
14
|
private roundRect;
|
|
13
15
|
private loadImage;
|
|
14
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<TicketCardImageService, never>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export interface TicketCardImageConfig {
|
|
2
2
|
/** QR code as dataUrl (PNG/base64) */
|
|
3
3
|
qrDataUrl: string;
|
|
4
|
+
/** Logo rendered in the center of the QR. URL or dataUrl. Optional. */
|
|
5
|
+
qrLogoUrl?: string;
|
|
4
6
|
/** Logo to show in the header. URL or dataUrl. Optional. */
|
|
5
7
|
logoUrl?: string;
|
|
6
8
|
/** Header background color (CSS color). Default: bingo gradient '#9b1fde' -> '#c93075'. */
|
package/lib/version.d.ts
CHANGED