valtech-components 4.0.426 → 4.0.428
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/bubble-blitz-game.component.mjs +18 -9
- package/esm2022/lib/components/organisms/mini-games/chessimals-game.component.mjs +18 -9
- package/esm2022/lib/components/organisms/mini-games/christianity-game.component.mjs +528 -0
- package/esm2022/lib/components/organisms/mini-games/memory-game.component.mjs +18 -9
- package/esm2022/lib/components/organisms/mini-games/mini-games.i18n.mjs +51 -1
- package/esm2022/lib/components/organisms/mini-games/simon-game.component.mjs +18 -9
- package/esm2022/lib/components/organisms/mini-games/types.mjs +1 -1
- package/esm2022/lib/version.mjs +2 -2
- package/esm2022/mini-games/public-api.mjs +34 -2
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/valtech-components-mini-games.mjs +34 -2
- package/fesm2022/valtech-components-mini-games.mjs.map +1 -1
- package/fesm2022/valtech-components.mjs +644 -34
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/organisms/mini-games/bubble-blitz-game.component.d.ts +2 -0
- package/lib/components/organisms/mini-games/chessimals-game.component.d.ts +3 -1
- package/lib/components/organisms/mini-games/christianity-game.component.d.ts +36 -0
- package/lib/components/organisms/mini-games/memory-game.component.d.ts +2 -0
- package/lib/components/organisms/mini-games/simon-game.component.d.ts +2 -0
- package/lib/components/organisms/mini-games/types.d.ts +45 -0
- package/lib/version.d.ts +1 -1
- package/mini-games/public-api.d.ts +4 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -44,6 +44,7 @@ export declare class BubbleBlitzGameComponent implements OnDestroy {
|
|
|
44
44
|
readonly animating: import("@angular/core").WritableSignal<boolean>;
|
|
45
45
|
readonly leaderboard: import("@angular/core").WritableSignal<BubbleLeaderboardEntry[]>;
|
|
46
46
|
readonly confirmAction: import("@angular/core").WritableSignal<BubbleConfirmAction>;
|
|
47
|
+
private readonly confirmedAction;
|
|
47
48
|
readonly config: import("@angular/core").Signal<BubbleBlitzModeConfig>;
|
|
48
49
|
readonly feverReady: import("@angular/core").Signal<boolean>;
|
|
49
50
|
readonly feverProgress: import("@angular/core").Signal<number>;
|
|
@@ -73,6 +74,7 @@ export declare class BubbleBlitzGameComponent implements OnDestroy {
|
|
|
73
74
|
requestChangeMode(): void;
|
|
74
75
|
requestChangeGame(): void;
|
|
75
76
|
closeConfirmModal(): void;
|
|
77
|
+
handleConfirmModalDismissed(): void;
|
|
76
78
|
confirmPendingAction(token?: string): void;
|
|
77
79
|
private startTimer;
|
|
78
80
|
private stopTimer;
|
|
@@ -65,7 +65,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
65
65
|
readonly botDifficulties: ChessimalsBotDifficulty[];
|
|
66
66
|
readonly botProfiles: ChessimalsBotProfile[];
|
|
67
67
|
readonly animals: ChessimalsAnimalView[];
|
|
68
|
-
readonly valtechComponentsVersion = "4.0.
|
|
68
|
+
readonly valtechComponentsVersion = "4.0.428";
|
|
69
69
|
readonly screen: import("@angular/core").WritableSignal<"home" | "game">;
|
|
70
70
|
readonly selectedBoardSize: import("@angular/core").WritableSignal<ChessimalsBoardSize>;
|
|
71
71
|
readonly selectedLocalMode: import("@angular/core").WritableSignal<ChessimalsLocalMode>;
|
|
@@ -86,6 +86,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
86
86
|
readonly moveTrail: import("@angular/core").Signal<ChessimalsMoveTrailView>;
|
|
87
87
|
readonly botThinking: import("@angular/core").WritableSignal<boolean>;
|
|
88
88
|
readonly confirmAction: import("@angular/core").WritableSignal<ChessimalsConfirmAction>;
|
|
89
|
+
private readonly confirmedAction;
|
|
89
90
|
readonly onlineJoinCode: import("@angular/core").WritableSignal<string>;
|
|
90
91
|
readonly onlineLoading: import("@angular/core").WritableSignal<boolean>;
|
|
91
92
|
readonly onlineAction: import("@angular/core").WritableSignal<"create" | "join" | "accept" | "reject">;
|
|
@@ -200,6 +201,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
200
201
|
requestChangeGame(): void;
|
|
201
202
|
requestResign(): void;
|
|
202
203
|
closeConfirmModal(): void;
|
|
204
|
+
handleConfirmModalDismissed(): void;
|
|
203
205
|
confirmPendingAction(token?: string): void;
|
|
204
206
|
private resignGame;
|
|
205
207
|
openRulesModal(): void;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ChristianityCardDefinition, ChristianityCharacterInstance, ChristianityGameState, ChristianityPlayerState, ChristianitySeat } from './types';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ChristianityGameComponent {
|
|
4
|
+
private i18n;
|
|
5
|
+
protected readonly game: import("@angular/core").WritableSignal<ChristianityGameState>;
|
|
6
|
+
protected readonly selectedHandCard: import("@angular/core").WritableSignal<string>;
|
|
7
|
+
protected readonly selectedAttacker: import("@angular/core").WritableSignal<ChristianityCharacterInstance>;
|
|
8
|
+
protected readonly showHistory: import("@angular/core").WritableSignal<boolean>;
|
|
9
|
+
protected readonly player: import("@angular/core").Signal<ChristianityPlayerState>;
|
|
10
|
+
protected readonly opponent: import("@angular/core").Signal<ChristianityPlayerState>;
|
|
11
|
+
protected readonly currentPlayer: import("@angular/core").Signal<ChristianityPlayerState>;
|
|
12
|
+
protected readonly isOwnTurn: import("@angular/core").Signal<boolean>;
|
|
13
|
+
protected readonly opponentHandCount: import("@angular/core").Signal<number>;
|
|
14
|
+
protected readonly statusText: import("@angular/core").Signal<string>;
|
|
15
|
+
constructor();
|
|
16
|
+
protected t(key: string): string;
|
|
17
|
+
protected cardDefinition(cardId: string): ChristianityCardDefinition;
|
|
18
|
+
protected battleSlots(seat: ChristianitySeat): Array<{
|
|
19
|
+
trackId: string;
|
|
20
|
+
card?: ChristianityCharacterInstance;
|
|
21
|
+
}>;
|
|
22
|
+
protected offeringCards(player: ChristianityPlayerState): unknown[];
|
|
23
|
+
protected canPlay(card: ChristianityCardDefinition): boolean;
|
|
24
|
+
protected canPlaySelected(): boolean;
|
|
25
|
+
protected selectHandCard(cardId: string): void;
|
|
26
|
+
protected playSelectedCard(): void;
|
|
27
|
+
protected selectAttacker(card: ChristianityCharacterInstance): void;
|
|
28
|
+
protected attackLeader(): void;
|
|
29
|
+
protected attackCharacter(target: ChristianityCharacterInstance): void;
|
|
30
|
+
protected endTurn(): void;
|
|
31
|
+
protected resetMock(): void;
|
|
32
|
+
protected historyNames(): string;
|
|
33
|
+
private cleanupDestroyed;
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChristianityGameComponent, never>;
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChristianityGameComponent, "val-christianity-game", never, {}, {}, never, never, true, never>;
|
|
36
|
+
}
|
|
@@ -41,6 +41,7 @@ export declare class MemoryGameComponent implements OnDestroy {
|
|
|
41
41
|
readonly lockBoard: import("@angular/core").WritableSignal<boolean>;
|
|
42
42
|
readonly leaderboard: import("@angular/core").WritableSignal<MemoryLeaderboardEntry[]>;
|
|
43
43
|
readonly confirmAction: import("@angular/core").WritableSignal<MemoryConfirmAction>;
|
|
44
|
+
private readonly confirmedAction;
|
|
44
45
|
private timer?;
|
|
45
46
|
private firstPick?;
|
|
46
47
|
readonly profileConfig: import("@angular/core").Signal<{
|
|
@@ -75,6 +76,7 @@ export declare class MemoryGameComponent implements OnDestroy {
|
|
|
75
76
|
requestChangeMode(): void;
|
|
76
77
|
requestChangeGame(): void;
|
|
77
78
|
closeConfirmModal(): void;
|
|
79
|
+
handleConfirmModalDismissed(): void;
|
|
78
80
|
confirmPendingAction(token?: string): void;
|
|
79
81
|
flip(card: MemoryGameCard): void;
|
|
80
82
|
private startTimer;
|
|
@@ -32,6 +32,7 @@ export declare class SimonGameComponent implements OnDestroy {
|
|
|
32
32
|
readonly activePad: import("@angular/core").WritableSignal<string>;
|
|
33
33
|
readonly leaderboard: import("@angular/core").WritableSignal<SimonLeaderboardEntry[]>;
|
|
34
34
|
readonly confirmAction: import("@angular/core").WritableSignal<SimonConfirmAction>;
|
|
35
|
+
private readonly confirmedAction;
|
|
35
36
|
readonly modeConfig: import("@angular/core").Signal<SimonModeConfig>;
|
|
36
37
|
readonly bestRound: import("@angular/core").Signal<number>;
|
|
37
38
|
readonly modeLeaderboard: import("@angular/core").Signal<SimonLeaderboardEntry[]>;
|
|
@@ -52,6 +53,7 @@ export declare class SimonGameComponent implements OnDestroy {
|
|
|
52
53
|
requestChangeMode(): void;
|
|
53
54
|
requestChangeGame(): void;
|
|
54
55
|
closeConfirmModal(): void;
|
|
56
|
+
handleConfirmModalDismissed(): void;
|
|
55
57
|
confirmPendingAction(token?: string): void;
|
|
56
58
|
tap(pad: SimonPad): void;
|
|
57
59
|
scoreText(entry: SimonLeaderboardEntry): string;
|
|
@@ -177,3 +177,48 @@ export interface ChessimalsGameState {
|
|
|
177
177
|
moveHistory?: ChessimalsMoveHistoryEntry[];
|
|
178
178
|
online?: ChessimalsOnlineState;
|
|
179
179
|
}
|
|
180
|
+
export type ChristianitySeat = 'P1' | 'P2';
|
|
181
|
+
export type ChristianityGameStatus = 'in_progress' | 'finished';
|
|
182
|
+
export type ChristianityGameMode = 'solo_bot' | 'two_player' | 'local_pass';
|
|
183
|
+
export interface ChristianityCardDefinition {
|
|
184
|
+
id: string;
|
|
185
|
+
name: string;
|
|
186
|
+
cost: number;
|
|
187
|
+
attack: number;
|
|
188
|
+
life: number;
|
|
189
|
+
}
|
|
190
|
+
export interface ChristianityCharacterInstance {
|
|
191
|
+
instanceId: string;
|
|
192
|
+
cardId: string;
|
|
193
|
+
name: string;
|
|
194
|
+
owner: ChristianitySeat;
|
|
195
|
+
controller: ChristianitySeat;
|
|
196
|
+
attack: number;
|
|
197
|
+
currentHp: number;
|
|
198
|
+
maxHp: number;
|
|
199
|
+
canAttack: boolean;
|
|
200
|
+
}
|
|
201
|
+
export interface ChristianityPlayerState {
|
|
202
|
+
seat: ChristianitySeat;
|
|
203
|
+
displayName: string;
|
|
204
|
+
leaderName: string;
|
|
205
|
+
leaderHp: number;
|
|
206
|
+
leaderMaxHp: number;
|
|
207
|
+
maxOfferings: number;
|
|
208
|
+
offeringPoints: number;
|
|
209
|
+
hand?: string[];
|
|
210
|
+
handCount?: number;
|
|
211
|
+
battleZone: ChristianityCharacterInstance[];
|
|
212
|
+
}
|
|
213
|
+
export interface ChristianityGameState {
|
|
214
|
+
gameId: string;
|
|
215
|
+
status: ChristianityGameStatus;
|
|
216
|
+
mode: ChristianityGameMode;
|
|
217
|
+
turnOwner: ChristianitySeat;
|
|
218
|
+
revision: number;
|
|
219
|
+
turnCount: number;
|
|
220
|
+
sharedDeckCount: number;
|
|
221
|
+
historyZone: string[];
|
|
222
|
+
players: Record<ChristianitySeat, ChristianityPlayerState>;
|
|
223
|
+
log: string[];
|
|
224
|
+
}
|
package/lib/version.d.ts
CHANGED
|
@@ -27,6 +27,10 @@ export declare class ChessimalsGamePageComponent {
|
|
|
27
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<ChessimalsGamePageComponent, never>;
|
|
28
28
|
static ɵcmp: i0.ɵɵComponentDeclaration<ChessimalsGamePageComponent, "val-chessimals-game-page", never, {}, {}, never, never, true, never>;
|
|
29
29
|
}
|
|
30
|
+
export declare class ChristianityGamePageComponent {
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChristianityGamePageComponent, never>;
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChristianityGamePageComponent, "val-christianity-game-page", never, {}, {}, never, never, true, never>;
|
|
33
|
+
}
|
|
30
34
|
export declare class ChessimalsOnlineGamePageComponent {
|
|
31
35
|
private readonly route;
|
|
32
36
|
readonly gameId: string;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -340,6 +340,7 @@ export * from './lib/components/organisms/member-import-modal/member-import-moda
|
|
|
340
340
|
export * from './lib/components/organisms/mini-games/chessimals-engine';
|
|
341
341
|
export * from './lib/components/organisms/mini-games/chessimals-game.component';
|
|
342
342
|
export * from './lib/components/organisms/mini-games/chessimals-online.service';
|
|
343
|
+
export * from './lib/components/organisms/mini-games/christianity-game.component';
|
|
343
344
|
export * from './lib/components/organisms/mini-games/bubble-blitz-game.component';
|
|
344
345
|
export * from './lib/components/organisms/mini-games/memory-game.component';
|
|
345
346
|
export * from './lib/components/organisms/mini-games/mini-game-player-profile.service';
|