valtech-components 4.0.555 → 4.0.557
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-game.component.mjs +209 -85
- package/esm2022/lib/components/organisms/mini-games/christianity-card.component.mjs +3 -3
- package/esm2022/lib/components/organisms/mini-games/christianity-game.component.mjs +3 -3
- package/esm2022/lib/components/organisms/mini-games/mini-games.i18n.mjs +39 -25
- package/esm2022/lib/version.mjs +2 -2
- package/fesm2022/valtech-components.mjs +251 -113
- 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/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 +8 -5
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/lib/assets/games/chessimals/mode-icons/challenge.jpg +0 -0
- package/src/lib/assets/games/chessimals/mode-icons/path.jpg +0 -0
- package/src/lib/assets/games/chessimals/mode-icons/solo.jpg +0 -0
- package/src/lib/assets/games/chessimals/rules/capture.jpg +0 -0
- package/src/lib/assets/games/chessimals/rules/final-step.jpg +0 -0
- package/src/lib/assets/games/chessimals/rules/finish.jpg +0 -0
- package/src/lib/assets/games/chessimals/rules/move.jpg +0 -0
- package/src/lib/assets/games/chessimals/rules/powers.jpg +0 -0
- package/src/lib/assets/games/chessimals/tutorial-solo.jpg +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<"left" | "center" | "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" | "medium" | "primary" | "secondary" | "tertiary" | "warning" | "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" | "medium" | "large" | "xlarge" | "xsmall">;
|
|
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: "center" | "start";
|
|
46
46
|
imageShape: "circle" | "square";
|
|
47
47
|
maxVisible: number;
|
|
48
48
|
showMoreLabel?: string;
|
|
@@ -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<"center" | "start" | "end">;
|
|
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<"link" | "text" | "button">;
|
|
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?: "left" | "center" | "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?: "full" | "block";
|
|
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" | "clear" | "outline" | "solid";
|
|
99
|
+
type: "reset" | "submit" | "button";
|
|
100
100
|
token?: string;
|
|
101
101
|
ref?: any;
|
|
102
102
|
handler?: (value: any) => any;
|
|
@@ -3,6 +3,7 @@ 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
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';
|
|
6
7
|
import { RangeInputMetadata, RangeValue } from '../../molecules/range-input/types';
|
|
7
8
|
import { ToggleInputMetadata } from '../../molecules/toggle-input/types';
|
|
8
9
|
import { UserAvatarMetadata } from '../../atoms/user-avatar/types';
|
|
@@ -114,8 +115,8 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
114
115
|
readonly botProfiles: ChessimalsBotProfile[];
|
|
115
116
|
readonly challengeLadder: ChessimalsChallengeBot[];
|
|
116
117
|
readonly animals: ChessimalsAnimalView[];
|
|
117
|
-
readonly valtechComponentsVersion = "4.0.
|
|
118
|
-
readonly screen: import("@angular/core").WritableSignal<"home" | "
|
|
118
|
+
readonly valtechComponentsVersion = "4.0.557";
|
|
119
|
+
readonly screen: import("@angular/core").WritableSignal<"home" | "path" | "challenge" | "game">;
|
|
119
120
|
readonly selectedBoardSize: import("@angular/core").WritableSignal<ChessimalsBoardSize>;
|
|
120
121
|
readonly selectedLocalMode: import("@angular/core").WritableSignal<ChessimalsLocalMode>;
|
|
121
122
|
readonly selectedBotDifficulty: import("@angular/core").WritableSignal<ChessimalsBotDifficulty>;
|
|
@@ -154,14 +155,14 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
154
155
|
private readonly confirmedAction;
|
|
155
156
|
readonly onlineJoinCode: import("@angular/core").WritableSignal<string>;
|
|
156
157
|
readonly onlineLoading: import("@angular/core").WritableSignal<boolean>;
|
|
157
|
-
readonly onlineAction: import("@angular/core").WritableSignal<"
|
|
158
|
+
readonly onlineAction: import("@angular/core").WritableSignal<"join" | "create" | "accept" | "reject">;
|
|
158
159
|
readonly onlineError: import("@angular/core").WritableSignal<string>;
|
|
159
160
|
readonly onlineUid: import("@angular/core").WritableSignal<string>;
|
|
160
161
|
readonly onlineHistory: import("@angular/core").WritableSignal<ChessimalsHistoryEntry[]>;
|
|
161
162
|
readonly resumeSplashVisible: import("@angular/core").WritableSignal<boolean>;
|
|
162
163
|
readonly rematchLoading: import("@angular/core").WritableSignal<boolean>;
|
|
163
164
|
readonly moveSyncing: import("@angular/core").WritableSignal<boolean>;
|
|
164
|
-
readonly onlineConnectionState: import("@angular/core").WritableSignal<"
|
|
165
|
+
readonly onlineConnectionState: import("@angular/core").WritableSignal<"error" | "connecting" | "idle" | "live">;
|
|
165
166
|
readonly reviewIndex: import("@angular/core").WritableSignal<number>;
|
|
166
167
|
readonly loggedInUser: import("@angular/core").Signal<import("valtech-components").AuthUser>;
|
|
167
168
|
readonly localPlayerProfile: import("@angular/core").Signal<import("./types").MiniGamePlayerProfile>;
|
|
@@ -206,7 +207,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
206
207
|
readonly displayRows: import("@angular/core").Signal<number[]>;
|
|
207
208
|
readonly displayCols: import("@angular/core").Signal<number[]>;
|
|
208
209
|
readonly boardOrientationColor: import("@angular/core").Signal<ChessimalsPlayerColor>;
|
|
209
|
-
readonly onlineRole: import("@angular/core").Signal<
|
|
210
|
+
readonly onlineRole: import("@angular/core").Signal<"waiting" | "pending" | ChessimalsPlayerColor | "spectator">;
|
|
210
211
|
readonly canPlayCurrentTurn: import("@angular/core").Signal<boolean>;
|
|
211
212
|
readonly canControlCurrentGame: import("@angular/core").Signal<boolean>;
|
|
212
213
|
readonly rematchState: import("@angular/core").Signal<ChessimalsRematchState>;
|
|
@@ -275,6 +276,8 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
275
276
|
private abandonChallengeIfNeeded;
|
|
276
277
|
private abandonChallengeRun;
|
|
277
278
|
startTutorial(): void;
|
|
279
|
+
startTutorialFromRules(): void;
|
|
280
|
+
handleRulesAction(event: ModalLayoutActionEvent): void;
|
|
278
281
|
createOnlineGame(): Promise<void>;
|
|
279
282
|
joinOnlineGameByCode(): Promise<void>;
|
|
280
283
|
openOnlineGame(gameId: string): Promise<void>;
|
package/lib/version.d.ts
CHANGED
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|