valtech-components 4.0.456 → 4.0.458
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 +9 -18
- package/esm2022/lib/components/organisms/mini-games/chessimals-engine.mjs +29 -107
- package/esm2022/lib/components/organisms/mini-games/chessimals-game.component.mjs +155 -20
- package/esm2022/lib/components/organisms/mini-games/memory-game.component.mjs +9 -18
- package/esm2022/lib/components/organisms/mini-games/mini-games.i18n.mjs +15 -161
- package/esm2022/lib/components/organisms/mini-games/simon-game.component.mjs +9 -18
- 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 +2 -34
- package/esm2022/public-api.mjs +1 -3
- package/fesm2022/valtech-components-mini-games.mjs +2 -34
- package/fesm2022/valtech-components-mini-games.mjs.map +1 -1
- package/fesm2022/valtech-components.mjs +223 -2169
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/organisms/mini-games/bubble-blitz-game.component.d.ts +0 -2
- package/lib/components/organisms/mini-games/chessimals-game.component.d.ts +18 -3
- package/lib/components/organisms/mini-games/memory-game.component.d.ts +0 -2
- package/lib/components/organisms/mini-games/simon-game.component.d.ts +0 -2
- package/lib/components/organisms/mini-games/types.d.ts +1 -75
- package/lib/version.d.ts +1 -1
- package/mini-games/public-api.d.ts +0 -4
- package/package.json +1 -2
- package/public-api.d.ts +0 -2
- package/esm2022/lib/components/organisms/mini-games/christianity-game.component.mjs +0 -1780
- package/esm2022/lib/directives/light-ripple.directive.mjs +0 -57
- package/lib/components/organisms/mini-games/christianity-game.component.d.ts +0 -113
- package/lib/directives/light-ripple.directive.d.ts +0 -8
- package/src/lib/assets/games/christianity/card-symbol.svg +0 -51
|
@@ -44,7 +44,6 @@ 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;
|
|
48
47
|
readonly config: import("@angular/core").Signal<BubbleBlitzModeConfig>;
|
|
49
48
|
readonly feverReady: import("@angular/core").Signal<boolean>;
|
|
50
49
|
readonly feverProgress: import("@angular/core").Signal<number>;
|
|
@@ -74,7 +73,6 @@ export declare class BubbleBlitzGameComponent implements OnDestroy {
|
|
|
74
73
|
requestChangeMode(): void;
|
|
75
74
|
requestChangeGame(): void;
|
|
76
75
|
closeConfirmModal(): void;
|
|
77
|
-
handleConfirmModalDismissed(): void;
|
|
78
76
|
confirmPendingAction(token?: string): void;
|
|
79
77
|
private startTimer;
|
|
80
78
|
private stopTimer;
|
|
@@ -60,6 +60,10 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
60
60
|
private moveEffectStartTimer;
|
|
61
61
|
private moveEffectClearTimer;
|
|
62
62
|
private powerUnlockTimer;
|
|
63
|
+
private turnTimerInterval;
|
|
64
|
+
private turnTimerKey;
|
|
65
|
+
private turnTimerDeadline;
|
|
66
|
+
private turnTimerExpiredKey;
|
|
63
67
|
private pendingOnlineGameId;
|
|
64
68
|
private openingOnlineGameId;
|
|
65
69
|
private openedOnlineGameId;
|
|
@@ -72,7 +76,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
72
76
|
readonly botProfiles: ChessimalsBotProfile[];
|
|
73
77
|
readonly challengeLadder: ChessimalsChallengeBot[];
|
|
74
78
|
readonly animals: ChessimalsAnimalView[];
|
|
75
|
-
readonly valtechComponentsVersion = "4.0.
|
|
79
|
+
readonly valtechComponentsVersion = "4.0.458";
|
|
76
80
|
readonly screen: import("@angular/core").WritableSignal<"home" | "game">;
|
|
77
81
|
readonly selectedBoardSize: import("@angular/core").WritableSignal<ChessimalsBoardSize>;
|
|
78
82
|
readonly selectedLocalMode: import("@angular/core").WritableSignal<ChessimalsLocalMode>;
|
|
@@ -89,6 +93,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
89
93
|
readonly challengeLastBot: import("@angular/core").WritableSignal<ChessimalsChallengeBot>;
|
|
90
94
|
readonly challengeLastRoundStats: import("@angular/core").WritableSignal<ChessimalsChallengeRoundStats>;
|
|
91
95
|
readonly challengeNewRecord: import("@angular/core").WritableSignal<boolean>;
|
|
96
|
+
readonly turnSecondsRemaining: import("@angular/core").WritableSignal<number>;
|
|
92
97
|
readonly selectedPieceId: import("@angular/core").WritableSignal<string>;
|
|
93
98
|
readonly selectedAnimal: import("@angular/core").WritableSignal<ChessimalsAnimalType>;
|
|
94
99
|
readonly isRulesModalOpen: import("@angular/core").WritableSignal<boolean>;
|
|
@@ -102,7 +107,6 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
102
107
|
readonly moveTrail: import("@angular/core").Signal<ChessimalsMoveTrailView>;
|
|
103
108
|
readonly botThinking: import("@angular/core").WritableSignal<boolean>;
|
|
104
109
|
readonly confirmAction: import("@angular/core").WritableSignal<ChessimalsConfirmAction>;
|
|
105
|
-
private readonly confirmedAction;
|
|
106
110
|
readonly onlineJoinCode: import("@angular/core").WritableSignal<string>;
|
|
107
111
|
readonly onlineLoading: import("@angular/core").WritableSignal<boolean>;
|
|
108
112
|
readonly onlineAction: import("@angular/core").WritableSignal<"create" | "join" | "accept" | "reject">;
|
|
@@ -173,6 +177,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
173
177
|
readonly winBody: import("@angular/core").Signal<string>;
|
|
174
178
|
readonly winReasonLabel: import("@angular/core").Signal<string>;
|
|
175
179
|
readonly movesSummary: import("@angular/core").Signal<string>;
|
|
180
|
+
readonly capturesByColor: import("@angular/core").Signal<Record<ChessimalsPlayerColor, number>>;
|
|
176
181
|
readonly resultCaptures: import("@angular/core").Signal<number>;
|
|
177
182
|
readonly resultPowers: import("@angular/core").Signal<ChessimalsAnimalType[]>;
|
|
178
183
|
readonly resultStats: import("@angular/core").Signal<{
|
|
@@ -226,7 +231,6 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
226
231
|
requestChangeGame(): void;
|
|
227
232
|
requestResign(): void;
|
|
228
233
|
closeConfirmModal(): void;
|
|
229
|
-
handleConfirmModalDismissed(): void;
|
|
230
234
|
confirmPendingAction(token?: string): void;
|
|
231
235
|
private resignGame;
|
|
232
236
|
openRulesModal(): void;
|
|
@@ -242,6 +246,14 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
242
246
|
private createTutorialGame;
|
|
243
247
|
private basicMovesForColor;
|
|
244
248
|
selectCell(position: ChessimalsPosition): void;
|
|
249
|
+
private commitChessimalsMove;
|
|
250
|
+
private syncTurnTimer;
|
|
251
|
+
private tickTurnTimer;
|
|
252
|
+
private clearTurnTimer;
|
|
253
|
+
private turnTimerDurationSeconds;
|
|
254
|
+
private handleTurnTimerExpired;
|
|
255
|
+
private chooseAutomaticTurnMove;
|
|
256
|
+
private isPromotionMove;
|
|
245
257
|
private animateMove;
|
|
246
258
|
private applyAnimatedMove;
|
|
247
259
|
private playPowerUnlockSound;
|
|
@@ -281,6 +293,9 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
281
293
|
showRankLabel(col: number): boolean;
|
|
282
294
|
showFileLabel(row: number): boolean;
|
|
283
295
|
playerLabel(color: ChessimalsPlayerColor): string;
|
|
296
|
+
capturesScoreLabel(): string;
|
|
297
|
+
turnTimerLabel(): string;
|
|
298
|
+
isTurnTimerLow(): boolean;
|
|
284
299
|
turnStateLabel(): string;
|
|
285
300
|
turnStateBody(): string;
|
|
286
301
|
winnerDisplayName(): string;
|
|
@@ -41,7 +41,6 @@ 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;
|
|
45
44
|
private timer?;
|
|
46
45
|
private firstPick?;
|
|
47
46
|
readonly profileConfig: import("@angular/core").Signal<{
|
|
@@ -76,7 +75,6 @@ export declare class MemoryGameComponent implements OnDestroy {
|
|
|
76
75
|
requestChangeMode(): void;
|
|
77
76
|
requestChangeGame(): void;
|
|
78
77
|
closeConfirmModal(): void;
|
|
79
|
-
handleConfirmModalDismissed(): void;
|
|
80
78
|
confirmPendingAction(token?: string): void;
|
|
81
79
|
flip(card: MemoryGameCard): void;
|
|
82
80
|
private startTimer;
|
|
@@ -32,7 +32,6 @@ 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;
|
|
36
35
|
readonly modeConfig: import("@angular/core").Signal<SimonModeConfig>;
|
|
37
36
|
readonly bestRound: import("@angular/core").Signal<number>;
|
|
38
37
|
readonly modeLeaderboard: import("@angular/core").Signal<SimonLeaderboardEntry[]>;
|
|
@@ -53,7 +52,6 @@ export declare class SimonGameComponent implements OnDestroy {
|
|
|
53
52
|
requestChangeMode(): void;
|
|
54
53
|
requestChangeGame(): void;
|
|
55
54
|
closeConfirmModal(): void;
|
|
56
|
-
handleConfirmModalDismissed(): void;
|
|
57
55
|
confirmPendingAction(token?: string): void;
|
|
58
56
|
tap(pad: SimonPad): void;
|
|
59
57
|
scoreText(entry: SimonLeaderboardEntry): string;
|
|
@@ -52,7 +52,7 @@ export type ChessimalsWinReason = 'promotion' | 'elimination' | 'resignation';
|
|
|
52
52
|
export type ChessimalsGameMode = 'local' | 'online';
|
|
53
53
|
export type ChessimalsLocalMode = 'one-device' | 'bot';
|
|
54
54
|
export type ChessimalsBotDifficulty = 'easy' | 'normal' | 'hard';
|
|
55
|
-
export type ChessimalsBotProfileId = 'explorer' | 'impulsive' | 'runner' | 'hunter' | 'guardian' | 'jumper' | 'strategist' | 'predator' | 'sprinter' | 'sentinel'
|
|
55
|
+
export type ChessimalsBotProfileId = 'explorer' | 'impulsive' | 'runner' | 'hunter' | 'guardian' | 'jumper' | 'strategist' | 'predator' | 'sprinter' | 'sentinel';
|
|
56
56
|
export type ChessimalsGameStatus = 'waiting' | 'in_progress' | 'finished' | 'expired';
|
|
57
57
|
export interface ChessimalsBotProfile {
|
|
58
58
|
id: ChessimalsBotProfileId;
|
|
@@ -233,77 +233,3 @@ export interface ChessimalsGameState {
|
|
|
233
233
|
moveHistory?: ChessimalsMoveHistoryEntry[];
|
|
234
234
|
online?: ChessimalsOnlineState;
|
|
235
235
|
}
|
|
236
|
-
export type ChristianitySeat = 'P1' | 'P2';
|
|
237
|
-
export type ChristianityGameStatus = 'in_progress' | 'finished';
|
|
238
|
-
export type ChristianityGameMode = 'solo_bot' | 'two_player' | 'local_pass';
|
|
239
|
-
export type ChristianityCardType = 'character' | 'offering';
|
|
240
|
-
export type ChristianityCardRarity = 'normal' | 'uncommon' | 'rare' | 'legendary';
|
|
241
|
-
export interface ChristianityCardDefinition {
|
|
242
|
-
id: string;
|
|
243
|
-
name: string;
|
|
244
|
-
type: ChristianityCardType;
|
|
245
|
-
cost: number;
|
|
246
|
-
attack: number;
|
|
247
|
-
life: number;
|
|
248
|
-
abilityName?: string;
|
|
249
|
-
abilityText?: string;
|
|
250
|
-
abilityCost?: number;
|
|
251
|
-
imageUrl?: string;
|
|
252
|
-
verseText?: string;
|
|
253
|
-
scripture?: string;
|
|
254
|
-
edition?: string;
|
|
255
|
-
collectorNumber?: string;
|
|
256
|
-
author?: string;
|
|
257
|
-
year?: string;
|
|
258
|
-
rarity?: ChristianityCardRarity;
|
|
259
|
-
}
|
|
260
|
-
export interface ChristianityCharacterInstance {
|
|
261
|
-
instanceId: string;
|
|
262
|
-
cardId: string;
|
|
263
|
-
name: string;
|
|
264
|
-
owner: ChristianitySeat;
|
|
265
|
-
controller: ChristianitySeat;
|
|
266
|
-
slot?: number;
|
|
267
|
-
attack: number;
|
|
268
|
-
currentHp: number;
|
|
269
|
-
maxHp: number;
|
|
270
|
-
canAttack: boolean;
|
|
271
|
-
}
|
|
272
|
-
export interface ChristianityOfferingInstance {
|
|
273
|
-
instanceId: string;
|
|
274
|
-
cardId: string;
|
|
275
|
-
name: string;
|
|
276
|
-
owner: ChristianitySeat;
|
|
277
|
-
ready: boolean;
|
|
278
|
-
value: number;
|
|
279
|
-
abilityName?: string;
|
|
280
|
-
abilityText?: string;
|
|
281
|
-
abilityCost?: number;
|
|
282
|
-
}
|
|
283
|
-
export interface ChristianityPlayerState {
|
|
284
|
-
seat: ChristianitySeat;
|
|
285
|
-
displayName: string;
|
|
286
|
-
avatar?: string;
|
|
287
|
-
avatarColor?: string;
|
|
288
|
-
leaderName: string;
|
|
289
|
-
leaderHp: number;
|
|
290
|
-
leaderMaxHp: number;
|
|
291
|
-
offerings: ChristianityOfferingInstance[];
|
|
292
|
-
offeringPlayedThisTurn: boolean;
|
|
293
|
-
hand?: string[];
|
|
294
|
-
handCount?: number;
|
|
295
|
-
battleZone: ChristianityCharacterInstance[];
|
|
296
|
-
}
|
|
297
|
-
export interface ChristianityGameState {
|
|
298
|
-
gameId: string;
|
|
299
|
-
status: ChristianityGameStatus;
|
|
300
|
-
mode: ChristianityGameMode;
|
|
301
|
-
turnOwner: ChristianitySeat;
|
|
302
|
-
revision: number;
|
|
303
|
-
turnCount: number;
|
|
304
|
-
matchScore: Record<ChristianitySeat, number>;
|
|
305
|
-
sharedDeck: string[];
|
|
306
|
-
historyZone: string[];
|
|
307
|
-
players: Record<ChristianitySeat, ChristianityPlayerState>;
|
|
308
|
-
log: string[];
|
|
309
|
-
}
|
package/lib/version.d.ts
CHANGED
|
@@ -27,10 +27,6 @@ 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
|
-
}
|
|
34
30
|
export declare class ChessimalsOnlineGamePageComponent {
|
|
35
31
|
private readonly route;
|
|
36
32
|
readonly gameId: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "valtech-components",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.458",
|
|
4
4
|
"private": false,
|
|
5
5
|
"bin": {
|
|
6
6
|
"valtech-firebase-config": "./src/lib/services/firebase/scripts/generate-sw-config.js"
|
|
@@ -39,7 +39,6 @@
|
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@angular/cdk": "^18.2.14",
|
|
43
42
|
"@capacitor/app-launcher": "^6.0.4",
|
|
44
43
|
"@capacitor/browser": "^6.0.3",
|
|
45
44
|
"@zxing/browser": "^0.2.0",
|
package/public-api.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export * from './lib/version';
|
|
2
2
|
export * from './lib/directives/has-permission.directive';
|
|
3
|
-
export * from './lib/directives/light-ripple.directive';
|
|
4
3
|
export * from './lib/components/atoms/avatar/avatar.component';
|
|
5
4
|
export * from './lib/components/atoms/avatar/types';
|
|
6
5
|
export * from './lib/components/atoms/box/box.component';
|
|
@@ -341,7 +340,6 @@ export * from './lib/components/organisms/member-import-modal/member-import-moda
|
|
|
341
340
|
export * from './lib/components/organisms/mini-games/chessimals-engine';
|
|
342
341
|
export * from './lib/components/organisms/mini-games/chessimals-game.component';
|
|
343
342
|
export * from './lib/components/organisms/mini-games/chessimals-online.service';
|
|
344
|
-
export * from './lib/components/organisms/mini-games/christianity-game.component';
|
|
345
343
|
export * from './lib/components/organisms/mini-games/bubble-blitz-game.component';
|
|
346
344
|
export * from './lib/components/organisms/mini-games/memory-game.component';
|
|
347
345
|
export * from './lib/components/organisms/mini-games/mini-game-player-profile.service';
|