valtech-components 4.0.557 → 4.0.559
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/organisms/mini-games/chessimals-engine.mjs +8 -3
- package/esm2022/lib/components/organisms/mini-games/chessimals-game.component.mjs +149 -64
- package/esm2022/lib/components/organisms/mini-games/mini-games.i18n.mjs +5 -1
- package/esm2022/lib/components/organisms/mini-games/types.mjs +1 -1
- package/esm2022/lib/version.mjs +2 -2
- package/fesm2022/valtech-components.mjs +160 -66
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/atoms/rights-footer/rights-footer.component.d.ts +2 -2
- package/lib/components/atoms/user-avatar/user-avatar.component.d.ts +1 -1
- package/lib/components/molecules/features-list/features-list.component.d.ts +1 -1
- package/lib/components/molecules/media-object/media-object.component.d.ts +1 -1
- package/lib/components/molecules/operation-reference/operation-reference.component.d.ts +1 -1
- package/lib/components/molecules/phone-display/phone-display.component.d.ts +1 -1
- package/lib/components/organisms/article/article.component.d.ts +4 -4
- package/lib/components/organisms/mini-games/chessimals-game.component.d.ts +13 -9
- package/lib/components/organisms/mini-games/types.d.ts +1 -1
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/lib/assets/games/chessimals/mode-icons/challenge-borderless.png +0 -0
- package/src/lib/assets/games/chessimals/mode-icons/path-borderless.png +0 -0
- package/src/lib/assets/games/chessimals/mode-icons/solo-borderless.png +0 -0
|
@@ -39,11 +39,11 @@ export declare class RightsFooterComponent {
|
|
|
39
39
|
/**
|
|
40
40
|
* Computed helper for align prop in template.
|
|
41
41
|
*/
|
|
42
|
-
propsAlign: import("@angular/core").Signal<"
|
|
42
|
+
propsAlign: import("@angular/core").Signal<"center" | "left" | "right">;
|
|
43
43
|
/**
|
|
44
44
|
* Computed helper for color prop in template.
|
|
45
45
|
*/
|
|
46
|
-
propsColor: import("@angular/core").Signal<"success" | "
|
|
46
|
+
propsColor: import("@angular/core").Signal<"success" | "warning" | "medium" | "primary" | "secondary" | "tertiary" | "danger" | "light" | "dark">;
|
|
47
47
|
/**
|
|
48
48
|
* Computed helper for withMargin prop in template.
|
|
49
49
|
*/
|
|
@@ -38,7 +38,7 @@ export declare class UserAvatarComponent {
|
|
|
38
38
|
readonly imageUrl: import("@angular/core").Signal<string>;
|
|
39
39
|
/** Iniciales — 1-2 chars derivados de name (preferred) o email prefix. */
|
|
40
40
|
readonly initials: import("@angular/core").Signal<string>;
|
|
41
|
-
readonly sizeClass: import("@angular/core").Signal<"small" | "
|
|
41
|
+
readonly sizeClass: import("@angular/core").Signal<"small" | "xsmall" | "medium" | "large" | "xlarge">;
|
|
42
42
|
readonly shapeClass: import("@angular/core").Signal<"circle" | "square">;
|
|
43
43
|
/** Background — explicito o derivado deterministicamente del user. */
|
|
44
44
|
readonly bgColor: import("@angular/core").Signal<string>;
|
|
@@ -42,7 +42,7 @@ export declare class FeaturesListComponent {
|
|
|
42
42
|
iconSize: number;
|
|
43
43
|
mode: "horizontal" | "vertical";
|
|
44
44
|
gap: "small" | "medium" | "large";
|
|
45
|
-
alignment: "
|
|
45
|
+
alignment: "start" | "center";
|
|
46
46
|
imageShape: "circle" | "square";
|
|
47
47
|
maxVisible: number;
|
|
48
48
|
showMoreLabel?: string;
|
|
@@ -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, "circle" | "rounded" | "mediaWidth" | "reversed" | "align">>>;
|
|
34
34
|
getColor(): string;
|
|
35
35
|
handleLinkClick(event: MouseEvent): void;
|
|
36
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<MediaObjectComponent, never>;
|
|
@@ -6,7 +6,7 @@ export declare class OperationReferenceComponent {
|
|
|
6
6
|
protected label: import("@angular/core").Signal<string>;
|
|
7
7
|
protected copiedLabel: import("@angular/core").Signal<string>;
|
|
8
8
|
protected copyAriaLabel: import("@angular/core").Signal<string>;
|
|
9
|
-
protected align: import("@angular/core").Signal<"
|
|
9
|
+
protected align: import("@angular/core").Signal<"start" | "end" | "center">;
|
|
10
10
|
protected copyValue(): void;
|
|
11
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<OperationReferenceComponent, never>;
|
|
12
12
|
static ɵcmp: i0.ɵɵComponentDeclaration<OperationReferenceComponent, "val-operation-reference", never, { "props": { "alias": "props"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
@@ -6,7 +6,7 @@ export declare class PhoneDisplayComponent {
|
|
|
6
6
|
props: PhoneDisplayMetadata;
|
|
7
7
|
onClick: EventEmitter<string>;
|
|
8
8
|
protected rawPhone: import("@angular/core").Signal<string>;
|
|
9
|
-
protected mode: import("@angular/core").Signal<"
|
|
9
|
+
protected mode: import("@angular/core").Signal<"button" | "link" | "text">;
|
|
10
10
|
protected formatted: import("@angular/core").Signal<string>;
|
|
11
11
|
protected href: import("@angular/core").Signal<string>;
|
|
12
12
|
protected ariaLabel: import("@angular/core").Signal<string>;
|
|
@@ -57,7 +57,7 @@ export declare class ArticleComponent implements OnInit {
|
|
|
57
57
|
linkConfig?: import("valtech-components").LinkProcessorConfig;
|
|
58
58
|
allowPartialBold?: boolean;
|
|
59
59
|
authorColor?: import("@ionic/core").Color;
|
|
60
|
-
alignment?: "
|
|
60
|
+
alignment?: "center" | "left" | "right";
|
|
61
61
|
showQuoteMark?: boolean;
|
|
62
62
|
};
|
|
63
63
|
getHighlightTextProps(element: ArticleElement): {
|
|
@@ -76,7 +76,7 @@ export declare class ArticleComponent implements OnInit {
|
|
|
76
76
|
getHighlightColor(element: ArticleElement): string;
|
|
77
77
|
getButtonProps(element: ArticleElement): {
|
|
78
78
|
actionType?: import("valtech-components").ActionType;
|
|
79
|
-
expand?: "
|
|
79
|
+
expand?: "block" | "full";
|
|
80
80
|
link?: string;
|
|
81
81
|
href?: string;
|
|
82
82
|
routerLink?: string | any[];
|
|
@@ -95,8 +95,8 @@ export declare class ArticleComponent implements OnInit {
|
|
|
95
95
|
icon?: import("valtech-components").IconMetada;
|
|
96
96
|
shape?: "round";
|
|
97
97
|
size?: "default" | "small" | "large";
|
|
98
|
-
fill?: "default" | "
|
|
99
|
-
type: "
|
|
98
|
+
fill?: "default" | "outline" | "clear" | "solid";
|
|
99
|
+
type: "button" | "submit" | "reset";
|
|
100
100
|
token?: string;
|
|
101
101
|
ref?: any;
|
|
102
102
|
handler?: (value: any) => any;
|
|
@@ -2,8 +2,7 @@ import { OnDestroy, OnInit } from '@angular/core';
|
|
|
2
2
|
import { FormControl } from '@angular/forms';
|
|
3
3
|
import { MiniGameCalloutMetadata } from './mini-game-callout.component';
|
|
4
4
|
import { MiniGameScorePopMetadata } from './mini-game-score-pop.component';
|
|
5
|
-
import { ChessimalsAnimalType, ChessimalsBotDifficulty, ChessimalsBotProfile, ChessimalsBotProfileId, ChessimalsBoardSize, ChessimalsChallengeBot, ChessimalsChallengeRoundStats, ChessimalsChallengeRun, ChessimalsChallengeStats, ChessimalsGameState, ChessimalsHistoryEntry, ChessimalsLocalMode, ChessimalsMove, ChessimalsPiece, ChessimalsPlayerColor, ChessimalsPosition, ChessimalsStatsMode } from './types';
|
|
6
|
-
import { ModalLayoutActionEvent } from '../../molecules/modal-layout/types';
|
|
5
|
+
import { ChessimalsAnimalType, ChessimalsBotDifficulty, ChessimalsBotProfile, ChessimalsBotProfileId, ChessimalsBoardSize, ChessimalsChallengeBot, ChessimalsChallengeRoundStats, ChessimalsChallengeRun, ChessimalsChallengeStats, ChessimalsGameState, ChessimalsHistoryEntry, ChessimalsLocalMode, ChessimalsMove, ChessimalsOnlineParticipant, ChessimalsPiece, ChessimalsPlayerColor, ChessimalsPosition, ChessimalsStatsMode } from './types';
|
|
7
6
|
import { RangeInputMetadata, RangeValue } from '../../molecules/range-input/types';
|
|
8
7
|
import { ToggleInputMetadata } from '../../molecules/toggle-input/types';
|
|
9
8
|
import { UserAvatarMetadata } from '../../atoms/user-avatar/types';
|
|
@@ -115,8 +114,8 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
115
114
|
readonly botProfiles: ChessimalsBotProfile[];
|
|
116
115
|
readonly challengeLadder: ChessimalsChallengeBot[];
|
|
117
116
|
readonly animals: ChessimalsAnimalView[];
|
|
118
|
-
readonly valtechComponentsVersion = "4.0.
|
|
119
|
-
readonly screen: import("@angular/core").WritableSignal<"home" | "
|
|
117
|
+
readonly valtechComponentsVersion = "4.0.559";
|
|
118
|
+
readonly screen: import("@angular/core").WritableSignal<"home" | "challenge" | "path" | "game">;
|
|
120
119
|
readonly selectedBoardSize: import("@angular/core").WritableSignal<ChessimalsBoardSize>;
|
|
121
120
|
readonly selectedLocalMode: import("@angular/core").WritableSignal<ChessimalsLocalMode>;
|
|
122
121
|
readonly selectedBotDifficulty: import("@angular/core").WritableSignal<ChessimalsBotDifficulty>;
|
|
@@ -155,14 +154,14 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
155
154
|
private readonly confirmedAction;
|
|
156
155
|
readonly onlineJoinCode: import("@angular/core").WritableSignal<string>;
|
|
157
156
|
readonly onlineLoading: import("@angular/core").WritableSignal<boolean>;
|
|
158
|
-
readonly onlineAction: import("@angular/core").WritableSignal<"
|
|
157
|
+
readonly onlineAction: import("@angular/core").WritableSignal<"create" | "join" | "accept" | "reject">;
|
|
159
158
|
readonly onlineError: import("@angular/core").WritableSignal<string>;
|
|
160
159
|
readonly onlineUid: import("@angular/core").WritableSignal<string>;
|
|
161
160
|
readonly onlineHistory: import("@angular/core").WritableSignal<ChessimalsHistoryEntry[]>;
|
|
162
161
|
readonly resumeSplashVisible: import("@angular/core").WritableSignal<boolean>;
|
|
163
162
|
readonly rematchLoading: import("@angular/core").WritableSignal<boolean>;
|
|
164
163
|
readonly moveSyncing: import("@angular/core").WritableSignal<boolean>;
|
|
165
|
-
readonly onlineConnectionState: import("@angular/core").WritableSignal<"
|
|
164
|
+
readonly onlineConnectionState: import("@angular/core").WritableSignal<"idle" | "connecting" | "live" | "error">;
|
|
166
165
|
readonly reviewIndex: import("@angular/core").WritableSignal<number>;
|
|
167
166
|
readonly loggedInUser: import("@angular/core").Signal<import("valtech-components").AuthUser>;
|
|
168
167
|
readonly localPlayerProfile: import("@angular/core").Signal<import("./types").MiniGamePlayerProfile>;
|
|
@@ -170,6 +169,13 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
170
169
|
readonly loggedPlayerName: import("@angular/core").Signal<string>;
|
|
171
170
|
readonly loggedPlayerHandle: import("@angular/core").Signal<string>;
|
|
172
171
|
readonly loggedPlayerAvatarProps: import("@angular/core").Signal<UserAvatarMetadata>;
|
|
172
|
+
readonly turnPlayerParticipant: import("@angular/core").Signal<ChessimalsOnlineParticipant>;
|
|
173
|
+
readonly shouldUseTurnPlayerAvatar: import("@angular/core").Signal<boolean>;
|
|
174
|
+
readonly turnPlayerAvatarProps: import("@angular/core").Signal<UserAvatarMetadata>;
|
|
175
|
+
readonly turnPlayerFallbackAvatar: import("@angular/core").Signal<string>;
|
|
176
|
+
readonly turnPlayerEyebrow: import("@angular/core").Signal<string>;
|
|
177
|
+
readonly turnPlayerName: import("@angular/core").Signal<string>;
|
|
178
|
+
readonly turnPlayerHandle: import("@angular/core").Signal<string>;
|
|
173
179
|
readonly musicEnabledControl: FormControl<boolean>;
|
|
174
180
|
readonly sfxEnabledControl: FormControl<boolean>;
|
|
175
181
|
readonly musicVolumeControl: FormControl<number>;
|
|
@@ -207,7 +213,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
207
213
|
readonly displayRows: import("@angular/core").Signal<number[]>;
|
|
208
214
|
readonly displayCols: import("@angular/core").Signal<number[]>;
|
|
209
215
|
readonly boardOrientationColor: import("@angular/core").Signal<ChessimalsPlayerColor>;
|
|
210
|
-
readonly onlineRole: import("@angular/core").Signal<"waiting" | "pending" |
|
|
216
|
+
readonly onlineRole: import("@angular/core").Signal<ChessimalsPlayerColor | "waiting" | "pending" | "spectator">;
|
|
211
217
|
readonly canPlayCurrentTurn: import("@angular/core").Signal<boolean>;
|
|
212
218
|
readonly canControlCurrentGame: import("@angular/core").Signal<boolean>;
|
|
213
219
|
readonly rematchState: import("@angular/core").Signal<ChessimalsRematchState>;
|
|
@@ -250,7 +256,6 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
250
256
|
readonly confirmTitle: import("@angular/core").Signal<string>;
|
|
251
257
|
readonly confirmBody: import("@angular/core").Signal<string>;
|
|
252
258
|
readonly confirmActions: import("@angular/core").Signal<ButtonMetadata[]>;
|
|
253
|
-
readonly rulesActions: import("@angular/core").Signal<ButtonMetadata[]>;
|
|
254
259
|
readonly aboutActions: import("@angular/core").Signal<ButtonMetadata[]>;
|
|
255
260
|
readonly actionHint: import("@angular/core").Signal<string>;
|
|
256
261
|
constructor();
|
|
@@ -277,7 +282,6 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
277
282
|
private abandonChallengeRun;
|
|
278
283
|
startTutorial(): void;
|
|
279
284
|
startTutorialFromRules(): void;
|
|
280
|
-
handleRulesAction(event: ModalLayoutActionEvent): void;
|
|
281
285
|
createOnlineGame(): Promise<void>;
|
|
282
286
|
joinOnlineGameByCode(): Promise<void>;
|
|
283
287
|
openOnlineGame(gameId: string): Promise<void>;
|
|
@@ -48,7 +48,7 @@ export type ChessimalsBoardSize = 6 | 8;
|
|
|
48
48
|
export type ChessimalsPlayerColor = 'white' | 'black';
|
|
49
49
|
export type ChessimalsAnimalType = 'eagle' | 'bull' | 'kangaroo' | 'lion';
|
|
50
50
|
export type ChessimalsMoveKind = 'basic' | 'power';
|
|
51
|
-
export type ChessimalsWinReason = 'promotion' | 'elimination' | 'resignation';
|
|
51
|
+
export type ChessimalsWinReason = 'promotion' | 'elimination' | 'resignation' | 'blocked';
|
|
52
52
|
export type ChessimalsGameMode = 'local' | 'online';
|
|
53
53
|
export type ChessimalsLocalMode = 'one-device' | 'bot';
|
|
54
54
|
export type ChessimalsBotDifficulty = 'easy' | 'normal' | 'hard';
|
package/lib/version.d.ts
CHANGED
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|